(()=>{var e={};e.id=931,e.ids=[931],e.modules={47849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},71017:e=>{"use strict";e.exports=require("path")},85477:e=>{"use strict";e.exports=require("punycode")},12781:e=>{"use strict";e.exports=require("stream")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},59796:e=>{"use strict";e.exports=require("zlib")},10144:()=>{},77640:()=>{},58359:()=>{},93739:()=>{},56974:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>s.a,__next_app__:()=>m,originalPathname:()=>f,pages:()=>p,routeModule:()=>g,tree:()=>d}),r(71852),r(11506),r(35866);var i=r(23191),a=r(88716),o=r(37922),s=r.n(o),l=r(95231),u={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(u[e]=()=>l[e]);r.d(t,u);let d=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,71852)),"/mnt/c/Users/jojo/aimodels/webapps/logoichat_v2/app/page.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,57481))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,11506)),"/mnt/c/Users/jojo/aimodels/webapps/logoichat_v2/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,35866,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,57481))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],p=["/mnt/c/Users/jojo/aimodels/webapps/logoichat_v2/app/page.tsx"],f="/page",m={require:r,loadChunk:()=>Promise.resolve()},g=new i.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},17151:()=>{},16497:(e,t,r)=>{Promise.resolve().then(r.bind(r,4349)),Promise.resolve().then(r.t.bind(r,79404,23))},82014:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,12994,23)),Promise.resolve().then(r.t.bind(r,96114,23)),Promise.resolve().then(r.t.bind(r,9727,23)),Promise.resolve().then(r.t.bind(r,79671,23)),Promise.resolve().then(r.t.bind(r,41868,23)),Promise.resolve().then(r.t.bind(r,84759,23))},4349:(e,t,r)=>{"use strict";let i,a,o,s,l,u,d,p,f,m,g,v;r.d(t,{default:()=>zg});var b,y,_,w,k,x,E,F,C,S,D,j,T,O,P,R,M,L,A,I,N,B,U,z,H,q,V,W,$,G,Y,K,Z,J,X,Q,ee={};r.r(ee),r.d(ee,{hasBrowserEnv:()=>tw,hasStandardBrowserEnv:()=>tk,hasStandardBrowserWebWorkerEnv:()=>tx,origin:()=>tE});var et={};r.r(et),r.d(et,{attentionMarkers:()=>lt,contentInitial:()=>s6,disable:()=>ln,document:()=>s4,flow:()=>s8,flowInitial:()=>s5,insideSpan:()=>le,string:()=>s9,text:()=>s7});var en={};r.r(en),r.d(en,{boolean:()=>lW,booleanish:()=>l$,commaOrSpaceSeparated:()=>lJ,commaSeparated:()=>lZ,number:()=>lY,overloadedBoolean:()=>lG,spaceSeparated:()=>lK});var er={};r.r(er),r.d(er,{fixNegotiationNeeded:()=>yZ,shimAddTrackRemoveTrack:()=>yY,shimAddTrackRemoveTrackWithNative:()=>yG,shimGetDisplayMedia:()=>yz,shimGetSendersWithDtmf:()=>yV,shimGetStats:()=>yW,shimGetUserMedia:()=>yU,shimMediaStream:()=>yH,shimOnTrack:()=>yq,shimPeerConnection:()=>yK,shimSenderReceiverGetStats:()=>y$});var ei={};r.r(ei),r.d(ei,{shimAddTransceiver:()=>y6,shimCreateAnswer:()=>y9,shimCreateOffer:()=>y8,shimGetDisplayMedia:()=>yX,shimGetParameters:()=>y5,shimGetUserMedia:()=>yJ,shimOnTrack:()=>yQ,shimPeerConnection:()=>y0,shimRTCDataChannel:()=>y4,shimReceiverGetStats:()=>y2,shimRemoveStream:()=>y3,shimSenderGetStats:()=>y1});var ea={};r.r(ea),r.d(ea,{shimAudioContext:()=>_s,shimCallbacksAPI:()=>_t,shimConstraints:()=>_r,shimCreateOfferLegacy:()=>_o,shimGetUserMedia:()=>_n,shimLocalStreamsAPI:()=>y7,shimRTCIceServerUrls:()=>_i,shimRemoteStreamsAPI:()=>_e,shimTrackEventTransceiver:()=>_a});var eo={};r.r(eo),r.d(eo,{removeExtmapAllowMixed:()=>_m,shimAddIceCandidateNullOrEmpty:()=>_g,shimConnectionState:()=>_h,shimMaxMessageSize:()=>_p,shimParameterlessSetLocalDescription:()=>_v,shimRTCIceCandidate:()=>_u,shimRTCIceCandidateRelayProtocol:()=>_d,shimSendThrowTypeError:()=>_f});var es=r(10326),el=r(17577),ec=r.n(el),eu=r(714),ed=r(65684),ep=r.n(ed),ef=r(12054),eh=r.n(ef),em=r(2718),eg=r.n(em),ev=r(84653),eb=r.n(ev),ey=r(50231),e_=r.n(ey),ew=r(68326),ek=r.n(ew),ex=r(42706),eE=r.n(ex),eF=r(61092),eC=r.n(eF),eS=r(16477),eD=r.n(eS);function ej(e,t){return function(){return e.apply(t,arguments)}}let{toString:eT}=Object.prototype,{getPrototypeOf:eO}=Object,eP=(f=Object.create(null),e=>{let t=eT.call(e);return f[t]||(f[t]=t.slice(8,-1).toLowerCase())}),eR=e=>(e=e.toLowerCase(),t=>eP(t)===e),eM=e=>t=>typeof t===e,{isArray:eL}=Array,eA=eM("undefined"),eI=eR("ArrayBuffer"),eN=eM("string"),eB=eM("function"),eU=eM("number"),ez=e=>null!==e&&"object"==typeof e,eH=e=>{if("object"!==eP(e))return!1;let t=eO(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},eq=eR("Date"),eV=eR("File"),eW=eR("Blob"),e$=eR("FileList"),eG=eR("URLSearchParams"),[eY,eK,eZ,eJ]=["ReadableStream","Request","Response","Headers"].map(eR);function eX(e,t,{allOwnKeys:r=!1}={}){let i,a;if(null!=e){if("object"!=typeof e&&(e=[e]),eL(e))for(i=0,a=e.length;i0;)if(t===(r=i[a]).toLowerCase())return r;return null}let e0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,e1=e=>!eA(e)&&e!==e0,e2=(m="undefined"!=typeof Uint8Array&&eO(Uint8Array),e=>m&&e instanceof m),e3=eR("HTMLFormElement"),e4=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),e6=eR("RegExp"),e5=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};eX(r,(r,a)=>{let o;!1!==(o=t(r,a,e))&&(i[a]=o||r)}),Object.defineProperties(e,i)},e8="abcdefghijklmnopqrstuvwxyz",e9="0123456789",e7={DIGIT:e9,ALPHA:e8,ALPHA_DIGIT:e8+e8.toUpperCase()+e9},te=eR("AsyncFunction"),tt={isArray:eL,isArrayBuffer:eI,isBuffer:function(e){return null!==e&&!eA(e)&&null!==e.constructor&&!eA(e.constructor)&&eB(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eB(e.append)&&("formdata"===(t=eP(e))||"object"===t&&eB(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&eI(e.buffer)},isString:eN,isNumber:eU,isBoolean:e=>!0===e||!1===e,isObject:ez,isPlainObject:eH,isReadableStream:eY,isRequest:eK,isResponse:eZ,isHeaders:eJ,isUndefined:eA,isDate:eq,isFile:eV,isBlob:eW,isRegExp:e6,isFunction:eB,isStream:e=>ez(e)&&eB(e.pipe),isURLSearchParams:eG,isTypedArray:e2,isFileList:e$,forEach:eX,merge:function e(){let{caseless:t}=e1(this)&&this||{},r={},i=(i,a)=>{let o=t&&eQ(r,a)||a;eH(r[o])&&eH(i)?r[o]=e(r[o],i):eH(i)?r[o]=e({},i):eL(i)?r[o]=i.slice():r[o]=i};for(let e=0,t=arguments.length;e(eX(t,(t,i)=>{r&&eB(t)?e[i]=ej(t,r):e[i]=t},{allOwnKeys:i}),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,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let a,o,s;let l={};if(t=t||{},null==e)return t;do{for(o=(a=Object.getOwnPropertyNames(e)).length;o-- >0;)s=a[o],(!i||i(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=!1!==r&&eO(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:eP,kindOfTest:eR,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(eL(e))return e;let t=e.length;if(!eU(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let i=(e&&e[Symbol.iterator]).call(e);for(;(r=i.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r;let i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:e3,hasOwnProperty:e4,hasOwnProp:e4,reduceDescriptors:e5,freezeMethods:e=>{e5(e,(t,r)=>{if(eB(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(eB(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(eL(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:eQ,global:e0,isContextDefined:e1,ALPHABET:e7,generateString:(e=16,t=e7.ALPHA_DIGIT)=>{let r="",{length:i}=t;for(;e--;)r+=t[Math.random()*i|0];return r},isSpecCompliantForm:function(e){return!!(e&&eB(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,i)=>{if(ez(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;let a=eL(e)?[]:{};return eX(e,(e,t)=>{let o=r(e,i+1);eA(o)||(a[t]=o)}),t[i]=void 0,a}}return e};return r(e,0)},isAsyncFn:te,isThenable:e=>e&&(ez(e)||eB(e))&&eB(e.then)&&eB(e.catch)};function tn(e,t,r,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a)}tt.inherits(tn,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:tt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let tr=tn.prototype,ti={};["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=>{ti[e]={value:e}}),Object.defineProperties(tn,ti),Object.defineProperty(tr,"isAxiosError",{value:!0}),tn.from=(e,t,r,i,a,o)=>{let s=Object.create(tr);return tt.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),tn.call(s,e.message,t,r,i,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var ta=r(54127),to=r.n(ta);function ts(e){return tt.isPlainObject(e)||tt.isArray(e)}function tl(e){return tt.endsWith(e,"[]")?e.slice(0,-2):e}function tc(e,t,r){return e?e.concat(t).map(function(e,t){return e=tl(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let tu=tt.toFlatObject(tt,{},null,function(e){return/^is[A-Z]/.test(e)}),td=function(e,t,r){if(!tt.isObject(e))throw TypeError("target must be an object");t=t||new(ta||FormData);let i=(r=tt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!tt.isUndefined(t[e])})).metaTokens,a=r.visitor||d,o=r.dots,s=r.indexes,l=(r.Blob||"undefined"!=typeof Blob&&Blob)&&tt.isSpecCompliantForm(t);if(!tt.isFunction(a))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(tt.isDate(e))return e.toISOString();if(!l&&tt.isBlob(e))throw new tn("Blob is not supported. Use a Buffer instead.");return tt.isArrayBuffer(e)||tt.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,r,a){let l=e;if(e&&!a&&"object"==typeof e){if(tt.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else{var d;if(tt.isArray(e)&&(d=e,tt.isArray(d)&&!d.some(ts))||(tt.isFileList(e)||tt.endsWith(r,"[]"))&&(l=tt.toArray(e)))return r=tl(r),l.forEach(function(e,i){tt.isUndefined(e)||null===e||t.append(!0===s?tc([r],i,o):null===s?r:r+"[]",u(e))}),!1}}return!!ts(e)||(t.append(tc(a,r,o),u(e)),!1)}let p=[],f=Object.assign(tu,{defaultVisitor:d,convertValue:u,isVisitable:ts});if(!tt.isObject(e))throw TypeError("data must be an object");return function e(r,i){if(!tt.isUndefined(r)){if(-1!==p.indexOf(r))throw Error("Circular reference detected in "+i.join("."));p.push(r),tt.forEach(r,function(r,o){!0===(!(tt.isUndefined(r)||null===r)&&a.call(t,r,tt.isString(o)?o.trim():o,i,f))&&e(r,i?i.concat(o):[o])}),p.pop()}}(e),t};function tp(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function tf(e,t){this._pairs=[],e&&td(e,this,t)}let th=tf.prototype;function tm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tg(e,t,r){let i;if(!t)return e;let a=r&&r.encode||tm,o=r&&r.serialize;if(i=o?o(t,r):tt.isURLSearchParams(t)?t.toString():new tf(t,r).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}th.append=function(e,t){this._pairs.push([e,t])},th.toString=function(e){let t=e?function(t){return e.call(this,t,tp)}:tp;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class tv{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){tt.forEach(this.handlers,function(t){null!==t&&e(t)})}}let tb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var ty=r(57310);let t_={isNode:!0,classes:{URLSearchParams:ty.URLSearchParams,FormData:ta,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]},tw="undefined"!=typeof window&&"undefined"!=typeof document,tk=(g="undefined"!=typeof navigator&&navigator.product,tw&&0>["ReactNative","NativeScript","NS"].indexOf(g)),tx="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tE=tw&&window.location.href||"http://localhost",tF={...ee,...t_},tC=function(e){if(tt.isFormData(e)&&tt.isFunction(e.entries)){let t={};return tt.forEachEntry(e,(e,r)=>{!function e(t,r,i,a){let o=t[a++];if("__proto__"===o)return!0;let s=Number.isFinite(+o),l=a>=t.length;return(o=!o&&tt.isArray(i)?i.length:o,l)?tt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r:(i[o]&&tt.isObject(i[o])||(i[o]=[]),e(t,r,i[o],a)&&tt.isArray(i[o])&&(i[o]=function(e){let t,r;let i={},a=Object.keys(e),o=a.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},tS={transitional:tb,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let i=t.getContentType()||"",a=i.indexOf("application/json")>-1,o=tt.isObject(e);if(o&&tt.isHTMLForm(e)&&(e=new FormData(e)),tt.isFormData(e))return a?JSON.stringify(tC(e)):e;if(tt.isArrayBuffer(e)||tt.isBuffer(e)||tt.isStream(e)||tt.isFile(e)||tt.isBlob(e)||tt.isReadableStream(e))return e;if(tt.isArrayBufferView(e))return e.buffer;if(tt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=e,l=this.formSerializer,td(s,new tF.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,i){return tF.isNode&&tt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},l))).toString()}if((r=tt.isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return td(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),function(e,t,r){if(tt.isString(e))try{return(0,JSON.parse)(e),tt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||tS.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(tt.isResponse(e)||tt.isReadableStream(e))return e;if(e&&tt.isString(e)&&(r&&!this.responseType||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw tn.from(e,tn.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:tF.classes.FormData,Blob:tF.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};tt.forEach(["delete","get","head","post","put","patch"],e=>{tS.headers[e]={}});let tD=tt.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"]),tj=e=>{let t,r,i;let a={};return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!t||a[t]&&tD[t]||("set-cookie"===t?a[t]?a[t].push(r):a[t]=[r]:a[t]=a[t]?a[t]+", "+r:r)}),a},tT=Symbol("internals");function tO(e){return e&&String(e).trim().toLowerCase()}function tP(e){return!1===e||null==e?e:tt.isArray(e)?e.map(tP):String(e)}let tR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tM(e,t,r,i,a){if(tt.isFunction(i))return i.call(this,t,r);if(a&&(t=r),tt.isString(t)){if(tt.isString(i))return -1!==t.indexOf(i);if(tt.isRegExp(i))return i.test(t)}}class tL{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function a(e,t,r){let a=tO(t);if(!a)throw Error("header name must be a non-empty string");let o=tt.findKey(i,a);o&&void 0!==i[o]&&!0!==r&&(void 0!==r||!1===i[o])||(i[o||t]=tP(e))}let o=(e,t)=>tt.forEach(e,(e,r)=>a(e,r,t));if(tt.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(tt.isString(e)&&(e=e.trim())&&!tR(e))o(tj(e),t);else if(tt.isHeaders(e))for(let[t,i]of e.entries())a(i,t,r);else null!=e&&a(t,e,r);return this}get(e,t){if(e=tO(e)){let r=tt.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}(e);if(tt.isFunction(t))return t.call(this,e,r);if(tt.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tO(e)){let r=tt.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||tM(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function a(e){if(e=tO(e)){let a=tt.findKey(r,e);a&&(!t||tM(r,r[a],a,t))&&(delete r[a],i=!0)}}return tt.isArray(e)?e.forEach(a):a(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let a=t[r];(!e||tM(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){let t=this,r={};return tt.forEach(this,(i,a)=>{let o=tt.findKey(r,a);if(o){t[o]=tP(i),delete t[a];return}let s=e?a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(a).trim();s!==a&&delete t[a],t[s]=tP(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return tt.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&tt.isArray(r)?r.join(", "):r)}),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 r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[tT]=this[tT]={accessors:{}}).accessors,r=this.prototype;function i(e){let i=tO(e);t[i]||(function(e,t){let r=tt.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,a){return this[i].call(this,t,e,r,a)},configurable:!0})})}(r,e),t[i]=!0)}return tt.isArray(e)?e.forEach(i):i(e),this}}function tA(e,t){let r=this||tS,i=t||r,a=tL.from(i.headers),o=i.data;return tt.forEach(e,function(e){o=e.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function tI(e){return!!(e&&e.__CANCEL__)}function tN(e,t,r){tn.call(this,null==e?"canceled":e,tn.ERR_CANCELED,t,r),this.name="CanceledError"}function tB(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new tn("Request failed with status code "+r.status,[tn.ERR_BAD_REQUEST,tn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function tU(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}tL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),tt.reduceDescriptors(tL.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),tt.freezeMethods(tL),tt.inherits(tN,tn,{__CANCEL__:!0});var tz=r(13304),tH=r(13685),tq=r(95687),tV=r.n(tq),tW=r(73837),t$=r(19831),tG=r(59796);let tY="1.7.2";function tK(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}let tZ=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;var tJ=r(12781);let tX=function(e,t){let r=0,i=1e3/t,a=null;return function(){let t=Date.now();if(this===!0||t-r>i)return a&&(clearTimeout(a),a=null),r=t,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,r=Date.now(),e.apply(null,arguments)),i-(t-r)))}},tQ=function(e,t){let r;let i=Array(e=e||10),a=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(l){let u=Date.now(),d=a[s];r||(r=u),i[o]=l,a[o]=u;let p=s,f=0;for(;p!==o;)f+=i[p++],p%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),u-r!tt.isUndefined(t[e]))).chunkSize});let t=this,r=this[t0]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=tQ(r.ticksRate*e.samplesCount,r.timeWindow);this.on("newListener",e=>{"progress"!==e||r.isCaptured||(r.isCaptured=!0)});let a=0;r.updateProgress=tX(function(){let e=r.length,o=r.bytesSeen,s=o-a;if(!s||t.destroyed)return;let l=i(s);a=o,process.nextTick(()=>{t.emit("progress",{loaded:o,total:e,progress:e?o/e:void 0,bytes:s,rate:l||void 0,estimated:l&&e&&o<=e?(e-o)/l:void 0,lengthComputable:null!=e})})},r.ticksRate);let o=()=>{r.updateProgress.call(!0)};this.once("end",o),this.once("error",o)}_read(e){let t=this[t0];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,r){let i=this,a=this[t0],o=a.maxRate,s=this.readableHighWaterMark,l=a.timeWindow,u=o/(1e3/l),d=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*u):0,p=(e,t)=>{let r;let p=Buffer.byteLength(e),f=null,m=s,g=0;if(o){let e=Date.now();(!a.ts||(g=e-a.ts)>=l)&&(a.ts=e,r=u-a.bytes,a.bytes=r<0?-r:0,g=0),r=u-a.bytes}if(o){if(r<=0)return setTimeout(()=>{t(null,e)},l-g);rm&&p-m>d&&(f=e.subarray(m),e=e.subarray(0,m)),function(e,t){let r=Buffer.byteLength(e);a.bytesSeen+=r,a.bytes+=r,a.isCaptured&&a.updateProgress(),i.push(e)?process.nextTick(t):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(t)}}(e,f?()=>{process.nextTick(t,null,f)}:t)};p(e,function e(t,i){if(t)return r(t);i?p(i,e):r(null)})}setLength(e){return this[t0].length=+e,this}}var t2=r(82361);let{asyncIterator:t3}=Symbol,t4=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[t3]?yield*e[t3]():yield e},t6=tt.ALPHABET.ALPHA_DIGIT+"-_",t5=new tW.TextEncoder,t8=t5.encode("\r\n");class t9{constructor(e,t){let{escapeName:r}=this.constructor,i=tt.isString(t),a=`Content-Disposition: form-data; name="${r(e)}"${!i&&t.name?`; filename="${r(t.name)}"`:""}\r `;i?t=t5.encode(String(t).replace(/\r?\n|\r\n?/g,"\r\n")):a+=`Content-Type: ${t.type||"application/octet-stream"}\r `,this.headers=t5.encode(a+"\r\n"),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async *encode(){yield this.headers;let{value:e}=this;tt.isTypedArray(e)?yield e:yield*t4(e),yield t8}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"})[e])}}let t7=(e,t,r)=>{let{tag:i="form-data-boundary",size:a=25,boundary:o=i+"-"+tt.generateString(a,t6)}=r||{};if(!tt.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");let s=t5.encode("--"+o+"\r\n"),l=t5.encode("--"+o+"--\r\n\r\n"),u=l.byteLength,d=Array.from(e.entries()).map(([e,t])=>{let r=new t9(e,t);return u+=r.size,r});u+=s.byteLength*d.length;let p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(u=tt.toFiniteNumber(u))&&(p["Content-Length"]=u),t&&t(p),tJ.Readable.from(async function*(){for(let e of d)yield s,yield*e.encode();yield l}())};class ne extends tJ.Transform{__transform(e,t,r){this.push(e),r()}_transform(e,t,r){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){let e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,r)}}let nt=(e,t)=>tt.isAsyncFn(e)?function(...r){let i=r.pop();e.apply(this,r).then(e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}},i)}:e,nn={flush:tG.constants.Z_SYNC_FLUSH,finishFlush:tG.constants.Z_SYNC_FLUSH},nr={flush:tG.constants.BROTLI_OPERATION_FLUSH,finishFlush:tG.constants.BROTLI_OPERATION_FLUSH},ni=tt.isFunction(tG.createBrotliDecompress),{http:na,https:no}=t$,ns=/https:?/,nl=tF.protocols.map(e=>e+":");function nc(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}let nu="undefined"!=typeof process&&"process"===tt.kindOf(process),nd=e=>new Promise((t,r)=>{let i,a;let o=(e,t)=>{!a&&(a=!0,i&&i(e,t))},s=e=>{o(e,!0),r(e)};e(e=>{o(e),t(e)},s,e=>i=e).catch(s)}),np=({address:e,family:t})=>{if(!tt.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(0>e.indexOf(".")?6:4)}},nf=(e,t)=>np(tt.isObject(e)?e:{address:e,family:t}),nh=nu&&function(e){return nd(async function(t,r,i){let a,o,s,l,u,d,p,{data:f,lookup:m,family:g}=e,{responseType:v,responseEncoding:b}=e,y=e.method.toUpperCase(),_=!1;if(m){let e=nt(m,e=>tt.isArray(e)?e:[e]);m=(t,r,i)=>{e(t,r,(e,t,a)=>{if(e)return i(e);let o=tt.isArray(t)?t.map(e=>nf(e)):[nf(t,a)];r.all?i(e,o):i(e,o[0].address,o[0].family)})}}let w=new t2.EventEmitter,k=()=>{e.cancelToken&&e.cancelToken.unsubscribe(x),e.signal&&e.signal.removeEventListener("abort",x),w.removeAllListeners()};function x(t){w.emit("abort",!t||t.type?new tN(null,e,u):t)}i((e,t)=>{l=!0,t&&(_=!0,k())}),w.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(x),e.signal&&(e.signal.aborted?x():e.signal.addEventListener("abort",x)));let E=new URL(tU(e.baseURL,e.url),"http://localhost"),F=E.protocol||nl[0];if("data:"===F){let i;if("GET"!==y)return tB(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,r){let i=r&&r.Blob||tF.classes.Blob,a=tK(e);if(void 0===t&&i&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;let r=tZ.exec(e);if(!r)throw new tn("Invalid URL",tn.ERR_INVALID_URL);let o=r[1],s=r[2],l=r[3],u=Buffer.from(decodeURIComponent(l),s?"base64":"utf8");if(t){if(!i)throw new tn("Blob is not supported",tn.ERR_NOT_SUPPORT);return new i([u],{type:o})}return u}throw new tn("Unsupported protocol "+a,tn.ERR_NOT_SUPPORT)}(e.url,"blob"===v,{Blob:e.env&&e.env.Blob})}catch(t){throw tn.from(t,tn.ERR_BAD_REQUEST,e)}return"text"===v?(i=i.toString(b),b&&"utf8"!==b||(i=tt.stripBOM(i))):"stream"===v&&(i=tJ.Readable.from(i)),tB(t,r,{data:i,status:200,statusText:"OK",headers:new tL,config:e})}if(-1===nl.indexOf(F))return r(new tn("Unsupported protocol "+F,tn.ERR_BAD_REQUEST,e));let C=tL.from(e.headers).normalize();C.set("User-Agent","axios/"+tY,!1);let S=e.onDownloadProgress,D=e.onUploadProgress,j=e.maxRate;if(tt.isSpecCompliantForm(f)){let e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);f=t7(f,e=>{C.set(e)},{tag:`axios-${tY}-boundary`,boundary:e&&e[1]||void 0})}else if(tt.isFormData(f)&&tt.isFunction(f.getHeaders)){if(C.set(f.getHeaders()),!C.hasContentLength())try{let e=await tW.promisify(f.getLength).call(f);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(tt.isBlob(f))f.size&&C.setContentType(f.type||"application/octet-stream"),C.setContentLength(f.size||0),f=tJ.Readable.from(t4(f));else if(f&&!tt.isStream(f)){if(Buffer.isBuffer(f));else if(tt.isArrayBuffer(f))f=Buffer.from(new Uint8Array(f));else{if(!tt.isString(f))return r(new tn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",tn.ERR_BAD_REQUEST,e));f=Buffer.from(f,"utf-8")}if(C.setContentLength(f.length,!1),e.maxBodyLength>-1&&f.length>e.maxBodyLength)return r(new tn("Request body larger than maxBodyLength limit",tn.ERR_BAD_REQUEST,e))}let T=tt.toFiniteNumber(C.getContentLength());tt.isArray(j)?(a=j[0],o=j[1]):a=o=j,f&&(D||a)&&(tt.isStream(f)||(f=tJ.Readable.from(f,{objectMode:!1})),f=tJ.pipeline([f,new t1({length:T,maxRate:tt.toFiniteNumber(a)})],tt.noop),D&&f.on("progress",e=>{D(Object.assign(e,{upload:!0}))})),e.auth&&(s=(e.auth.username||"")+":"+(e.auth.password||"")),!s&&E.username&&(s=E.username+":"+E.password),s&&C.delete("authorization");try{d=tg(E.pathname+E.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(i){let t=Error(i.message);return t.config=e,t.url=e.url,t.exists=!0,r(t)}C.set("Accept-Encoding","gzip, compress, deflate"+(ni?", br":""),!1);let O={path:d,method:y,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:s,protocol:F,family:g,beforeRedirect:nc,beforeRedirects:{}};tt.isUndefined(m)||(O.lookup=m),e.socketPath?O.socketPath=e.socketPath:(O.hostname=E.hostname,O.port=E.port,function e(t,r,i){let a=r;if(!a&&!1!==a){let e=(0,tz.j)(i);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));let e=Buffer.from(a.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+e}t.headers.host=t.hostname+(t.port?":"+t.port:"");let e=a.hostname||a.host;t.hostname=e,t.host=e,t.port=a.port,t.path=i,a.protocol&&(t.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}t.beforeRedirects.proxy=function(t){e(t,r,t.href)}}(O,e.proxy,F+"//"+E.hostname+(E.port?":"+E.port:"")+O.path));let P=ns.test(O.protocol);if(O.agent=P?e.httpsAgent:e.httpAgent,e.transport?p=e.transport:0===e.maxRedirects?p=P?tq:tH:(e.maxRedirects&&(O.maxRedirects=e.maxRedirects),e.beforeRedirect&&(O.beforeRedirects.config=e.beforeRedirect),p=P?no:na),e.maxBodyLength>-1?O.maxBodyLength=e.maxBodyLength:O.maxBodyLength=1/0,e.insecureHTTPParser&&(O.insecureHTTPParser=e.insecureHTTPParser),u=p.request(O,function(i){if(u.destroyed)return;let a=[i],s=+i.headers["content-length"];if(S){let e=new t1({length:tt.toFiniteNumber(s),maxRate:tt.toFiniteNumber(o)});S&&e.on("progress",e=>{S(Object.assign(e,{download:!0}))}),a.push(e)}let l=i,d=i.req||u;if(!1!==e.decompress&&i.headers["content-encoding"])switch(("HEAD"===y||204===i.statusCode)&&delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(tG.createUnzip(nn)),delete i.headers["content-encoding"];break;case"deflate":a.push(new ne),a.push(tG.createUnzip(nn)),delete i.headers["content-encoding"];break;case"br":ni&&(a.push(tG.createBrotliDecompress(nr)),delete i.headers["content-encoding"])}l=a.length>1?tJ.pipeline(a,tt.noop):a[0];let p=tJ.finished(l,()=>{p(),k()}),f={status:i.statusCode,statusText:i.statusMessage,headers:new tL(i.headers),config:e,request:d};if("stream"===v)f.data=l,tB(t,r,f);else{let i=[],a=0;l.on("data",function(t){i.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(_=!0,l.destroy(),r(new tn("maxContentLength size of "+e.maxContentLength+" exceeded",tn.ERR_BAD_RESPONSE,e,d)))}),l.on("aborted",function(){if(_)return;let t=new tn("maxContentLength size of "+e.maxContentLength+" exceeded",tn.ERR_BAD_RESPONSE,e,d);l.destroy(t),r(t)}),l.on("error",function(t){u.destroyed||r(tn.from(t,null,e,d))}),l.on("end",function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"===v||(e=e.toString(b),b&&"utf8"!==b||(e=tt.stripBOM(e))),f.data=e}catch(t){return r(tn.from(t,null,e,f.request,f))}tB(t,r,f)})}w.once("abort",e=>{l.destroyed||(l.emit("error",e),l.destroy())})}),w.once("abort",e=>{r(e),u.destroy(e)}),u.on("error",function(t){r(tn.from(t,null,e,u))}),u.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){let t=parseInt(e.timeout,10);if(Number.isNaN(t)){r(new tn("error trying to parse `config.timeout` to int",tn.ERR_BAD_OPTION_VALUE,e,u));return}u.setTimeout(t,function(){if(l)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||tb;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new tn(t,i.clarifyTimeoutError?tn.ETIMEDOUT:tn.ECONNABORTED,e,u)),x()})}if(tt.isStream(f)){let t=!1,r=!1;f.on("end",()=>{t=!0}),f.once("error",e=>{r=!0,u.destroy(e)}),f.on("close",()=>{t||r||x(new tN("Request stream has been aborted",e,u))}),f.pipe(u)}else u.end(f)})},nm=(e,t,r=3)=>{let i=0,a=tQ(50,250);return tX(r=>{let o=r.loaded,s=r.lengthComputable?r.total:void 0,l=o-i,u=a(l);i=o;let d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&o<=s?(s-o)/u:void 0,event:r,lengthComputable:null!=s};d[t?"download":"upload"]=!0,e(d)},r)},ng=tF.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){let i=e;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){let r=tt.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},nv=tF.hasStandardBrowserEnv?{write(e,t,r,i,a,o){let s=[e+"="+encodeURIComponent(t)];tt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),tt.isString(i)&&s.push("path="+i),tt.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.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(){}},nb=e=>e instanceof tL?{...e}:e;function ny(e,t){t=t||{};let r={};function i(e,t,r){return tt.isPlainObject(e)&&tt.isPlainObject(t)?tt.merge.call({caseless:r},e,t):tt.isPlainObject(t)?tt.merge({},t):tt.isArray(t)?t.slice():t}function a(e,t,r){return tt.isUndefined(t)?tt.isUndefined(e)?void 0:i(void 0,e,r):i(e,t,r)}function o(e,t){if(!tt.isUndefined(t))return i(void 0,t)}function s(e,t){return tt.isUndefined(t)?tt.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function l(r,a,o){return o in t?i(r,a):o in e?i(void 0,r):void 0}let u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(e,t)=>a(nb(e),nb(t),!0)};return tt.forEach(Object.keys(Object.assign({},e,t)),function(i){let o=u[i]||a,s=o(e[i],t[i],i);tt.isUndefined(s)&&o!==l||(r[i]=s)}),r}let n_=e=>{let t;let r=ny({},e),{data:i,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:u}=r;if(r.headers=l=tL.from(l),r.url=tg(tU(r.baseURL,r.url),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),tt.isFormData(i)){if(tF.hasStandardBrowserEnv||tF.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(t=l.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...r].join("; "))}}if(tF.hasStandardBrowserEnv&&(a&&tt.isFunction(a)&&(a=a(r)),a||!1!==a&&ng(r.url))){let e=o&&s&&nv.read(s);e&&l.set(o,e)}return r},nw="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let i;let a=n_(e),o=a.data,s=tL.from(a.headers).normalize(),{responseType:l}=a;function u(){a.cancelToken&&a.cancelToken.unsubscribe(i),a.signal&&a.signal.removeEventListener("abort",i)}let d=new XMLHttpRequest;function p(){if(!d)return;let i=tL.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders());tB(function(e){t(e),u()},function(e){r(e),u()},{data:l&&"text"!==l&&"json"!==l?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:i,config:e,request:d}),d=null}d.open(a.method.toUpperCase(),a.url,!0),d.timeout=a.timeout,"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(p)},d.onabort=function(){d&&(r(new tn("Request aborted",tn.ECONNABORTED,a,d)),d=null)},d.onerror=function(){r(new tn("Network Error",tn.ERR_NETWORK,a,d)),d=null},d.ontimeout=function(){let e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",t=a.transitional||tb;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),r(new tn(e,t.clarifyTimeoutError?tn.ETIMEDOUT:tn.ECONNABORTED,a,d)),d=null},void 0===o&&s.setContentType(null),"setRequestHeader"in d&&tt.forEach(s.toJSON(),function(e,t){d.setRequestHeader(t,e)}),tt.isUndefined(a.withCredentials)||(d.withCredentials=!!a.withCredentials),l&&"json"!==l&&(d.responseType=a.responseType),"function"==typeof a.onDownloadProgress&&d.addEventListener("progress",nm(a.onDownloadProgress,!0)),"function"==typeof a.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",nm(a.onUploadProgress)),(a.cancelToken||a.signal)&&(i=t=>{d&&(r(!t||t.type?new tN(null,e,d):t),d.abort(),d=null)},a.cancelToken&&a.cancelToken.subscribe(i),a.signal&&(a.signal.aborted?i():a.signal.addEventListener("abort",i)));let f=tK(a.url);if(f&&-1===tF.protocols.indexOf(f)){r(new tn("Unsupported protocol "+f+":",tn.ERR_BAD_REQUEST,e));return}d.send(o||null)})},nk=(e,t)=>{let r,i=new AbortController,a=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;i.abort(t instanceof tn?t:new tN(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{a(new tn(`timeout ${t} of ms exceeded`,tn.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",a):e.unsubscribe(a))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",a));let{signal:l}=i;return l.unsubscribe=s,[l,()=>{o&&clearTimeout(o),o=null}]},nx=function*(e,t){let r,i=e.byteLength;if(!t||i{let o=nE(e,t,a),s=0;return new ReadableStream({type:"bytes",async pull(e){let{done:t,value:a}=await o.next();if(t){e.close(),i();return}let l=a.byteLength;r&&r(s+=l),e.enqueue(new Uint8Array(a))},cancel:e=>(i(e),o.return())},{highWaterMark:2})},nC=(e,t)=>{let r=null!=e;return i=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:i}))},nS="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nD=nS&&"function"==typeof ReadableStream,nj=nS&&("function"==typeof TextEncoder?(v=new TextEncoder,e=>v.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),nT=nD&&(()=>{let e=!1,t=new Request(tF.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),nO=nD&&!!(()=>{try{return tt.isReadableStream(new Response("").body)}catch(e){}})(),nP={stream:nO&&(e=>e.body)};nS&&(b=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{nP[e]||(nP[e]=tt.isFunction(b[e])?t=>t[e]():(t,r)=>{throw new tn(`Response type '${e}' is not supported`,tn.ERR_NOT_SUPPORT,r)})}));let nR=async e=>null==e?0:tt.isBlob(e)?e.size:tt.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:tt.isArrayBufferView(e)?e.byteLength:(tt.isURLSearchParams(e)&&(e+=""),tt.isString(e))?(await nj(e)).byteLength:void 0,nM=async(e,t)=>{let r=tt.toFiniteNumber(e.getContentLength());return null==r?nR(t):r},nL={http:nh,xhr:nw,fetch:nS&&(async e=>{let t,r,i,{url:a,method:o,data:s,signal:l,cancelToken:u,timeout:d,onDownloadProgress:p,onUploadProgress:f,responseType:m,headers:g,withCredentials:v="same-origin",fetchOptions:b}=n_(e);m=m?(m+"").toLowerCase():"text";let[y,_]=l||u||d?nk([l,u],d):[],w=()=>{t||setTimeout(()=>{y&&y.unsubscribe()}),t=!0};try{if(f&&nT&&"get"!==o&&"head"!==o&&0!==(i=await nM(g,s))){let e,t=new Request(a,{method:"POST",body:s,duplex:"half"});tt.isFormData(s)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body&&(s=nF(t.body,65536,nC(i,nm(f)),null,nj))}tt.isString(v)||(v=v?"cors":"omit"),r=new Request(a,{...b,signal:y,method:o.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",withCredentials:v});let t=await fetch(r),l=nO&&("stream"===m||"response"===m);if(nO&&(p||l)){let e={};["status","statusText","headers"].forEach(r=>{e[r]=t[r]});let r=tt.toFiniteNumber(t.headers.get("content-length"));t=new Response(nF(t.body,65536,p&&nC(r,nm(p,!0)),l&&w,nj),e)}m=m||"text";let u=await nP[tt.findKey(nP,m)||"text"](t,e);return l||w(),_&&_(),await new Promise((i,a)=>{tB(i,a,{data:u,headers:tL.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(w(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new tn("Network Error",tn.ERR_NETWORK,e,r),{cause:t.cause||t});throw tn.from(t,t&&t.code,e,r)}})};tt.forEach(nL,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let nA=e=>`- ${e}`,nI=e=>tt.isFunction(e)||null===e||!1===e,nN={getAdapter:e=>{let t,r;let{length:i}=e=tt.isArray(e)?e:[e],a={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new tn("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(nA).join("\n"):" "+nA(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r}};function nB(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tN(null,e)}function nU(e){return nB(e),e.headers=tL.from(e.headers),e.data=tA.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nN.getAdapter(e.adapter||tS.adapter)(e).then(function(t){return nB(e),t.data=tA.call(e,e.transformResponse,t),t.headers=tL.from(t.headers),t},function(t){return!tI(t)&&(nB(e),t&&t.response&&(t.response.data=tA.call(e,e.transformResponse,t.response),t.response.headers=tL.from(t.response.headers))),Promise.reject(t)})}let nz={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nz[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let nH={};nz.transitional=function(e,t,r){function i(e,t){return"[Axios v"+tY+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,o)=>{if(!1===e)throw new tn(i(a," has been removed"+(t?" in "+t:"")),tn.ERR_DEPRECATED);return t&&!nH[a]&&(nH[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,o)}};let nq={assertOptions:function(e,t,r){if("object"!=typeof e)throw new tn("options must be an object",tn.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),a=i.length;for(;a-- >0;){let o=i[a],s=t[o];if(s){let t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new tn("option "+o+" must be "+r,tn.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new tn("Unknown option "+o,tn.ERR_BAD_OPTION)}},validators:nz},nV=nq.validators;class nW{constructor(e){this.defaults=e,this.interceptors={request:new tv,response:new tv}}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 r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:a,paramsSerializer:o,headers:s}=t=ny(this.defaults,t);void 0!==a&&nq.assertOptions(a,{silentJSONParsing:nV.transitional(nV.boolean),forcedJSONParsing:nV.transitional(nV.boolean),clarifyTimeoutError:nV.transitional(nV.boolean)},!1),null!=o&&(tt.isFunction(o)?t.paramsSerializer={serialize:o}:nq.assertOptions(o,{encode:nV.function,serialize:nV.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=s&&tt.merge(s.common,s[t.method]);s&&tt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=tL.concat(l,s);let u=[],d=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(d=d&&e.synchronous,u.unshift(e.fulfilled,e.rejected))});let p=[];this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});let f=0;if(!d){let e=[nU.bind(this),void 0];for(e.unshift.apply(e,u),e.push.apply(e,p),i=e.length,r=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,a){r.reason||(r.reason=new tN(e,i,a),t(r.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 n$(function(t){e=t}),cancel:e}}}let nG={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(nG).forEach(([e,t])=>{nG[t]=e});let nY=function e(t){let r=new nW(t),i=ej(nW.prototype.request,r);return tt.extend(i,nW.prototype,r,{allOwnKeys:!0}),tt.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(ny(t,r))},i}(tS);nY.Axios=nW,nY.CanceledError=tN,nY.CancelToken=n$,nY.isCancel=tI,nY.VERSION=tY,nY.toFormData=td,nY.AxiosError=tn,nY.Cancel=nY.CanceledError,nY.all=function(e){return Promise.all(e)},nY.spread=function(e){return function(t){return e.apply(null,t)}},nY.isAxiosError=function(e){return tt.isObject(e)&&!0===e.isAxiosError},nY.mergeConfig=ny,nY.AxiosHeaders=tL,nY.formToJSON=e=>tC(tt.isHTMLForm(e)?new FormData(e):e),nY.getAdapter=nN.getAdapter,nY.HttpStatusCode=nG,nY.default=nY;var nK=r(35895),nZ=r.n(nK),nJ=r(9247),nX=r.n(nJ),nQ=r(98327),n0=r.n(nQ),n1=r(6113),n2=r.n(n1),n3=r(33002),n4=r.n(n3),n6=r(59356),n5=r.n(n6),n8=r(83041),n9=r.n(n8),n7=r(89899),re=r.n(n7),rt=r(71799),rn=r.n(rt);function rr(e){return"string"==typeof e}var ri=function(e){var t,r,i,a={},o=String.fromCharCode,s=e.length,l=0,u=0,d="";for(t=0;t<64;t++)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(r=0;r=8;)((i=l>>>(u-=8)&255)||re.length)&&(t=e.length);for(var r=0,i=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){throw e}),f:a}}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,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){l=!0,o=e}),f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}(Array.isArray(e)?e:[e]);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=Object.entries(a);o.length>1&&console.warn("client._buildSort() - multiple fields in a single sort object detected. Object's field order is not guaranteed");for(var s=0;s2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"created_at",a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=a||r,s=e;r&&(s=s.filter(function(e){return!(e.id&&t.id===e.id)}));var l=s.length;if(0===l&&o)return s.concat(t);if(0===l)return eb()(s);var u=t[i].getTime(),d=s[l-1][i].getTime()-1&&l.splice(u,1)}s.own_votes=l;var d=rk(rk({},o),{},{poll:s});i.addMessageSorted(d,!1,!1)}}),eC()(this,"updatePoll",function(e,t){var r,a=i.findMessage(t);if(a){var o=rk(rk({},e),{},{own_votes:eb()((null===(r=a.poll)||void 0===r?void 0:r.own_votes)||[])}),s=rk(rk({},a),{},{poll:o});i.addMessageSorted(s,!1,!1)}}),eC()(this,"updateUserMessages",function(e){var t=function(e,t){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest";return this.addMessagesSorted([e],t,!1,r,i)}},{key:"formatMessage",value:function(e){return rk(rk({},e),{},{__html:e.html,pinned_at:e.pinned_at?new Date(e.pinned_at):null,created_at:e.created_at?new Date(e.created_at):new Date,updated_at:e.updated_at?new Date(e.updated_at):new Date,status:e.status||"received"})}},{key:"addMessagesSorted",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"current",o=this.findTargetMessageSet(e,i,a),s=o.messagesToAdd,l=o.targetMessageSetIndex,u=0;uthis.last_message_at.getTime()&&(this.last_message_at=new Date(f.created_at.getTime())));var m=f.parent_id;if((!m||f.show_in_channel)&&-1!==l&&(this.messageSets[l].messages=this._addToMessageList(this.messageSets[l].messages,f,t,"created_at",i)),m&&!r){var g=this.threads[m]||[];this.threads[m]=this._addToMessageList(g,f,t,"created_at",i)}}return{messageSet:this.messageSets[l]}}},{key:"addPinnedMessages",value:function(e){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"created_at",a=!(arguments.length>4)||void 0===arguments[4]||arguments[4];return r_(e,t,r,i,a)}},{key:"removeMessage",value:function(e){var t=!1;if(e.parent_id&&this.threads[e.parent_id]){var r=this.removeMessageFromArray(this.threads[e.parent_id],e),i=r.removed,a=r.result;this.threads[e.parent_id]=a,t=i}else{var o,s=null!==(o=e.messageSetIndex)&&void 0!==o?o:this.findMessageSetIndex(e);if(-1!==s){var l=this.removeMessageFromArray(this.messageSets[s].messages,e),u=l.removed,d=l.result;this.messageSets[s].messages=d,t=u}}return t}},{key:"filterErrorMessages",value:function(){var e=this.latestMessages.filter(function(e){return"error"!==e.type});this.latestMessages=e}},{key:"clean",value:function(){for(var e=new Date,t=0,r=Object.entries(this.typing);t7e3&&(delete this.typing[a],this._channel.getClient().dispatchEvent({cid:this._channel.cid,type:"typing.stop",user:{id:a}}))}}},{key:"clearMessages",value:function(){this.initMessages(),this.pinnedMessages=[]}},{key:"initMessages",value:function(){this.messageSets=[{messages:[],isLatest:!0,isCurrent:!0}]}},{key:"loadMessageIntoState",value:(e=e_()(eD().mark(function e(t,r){var i,a,o,s,l,u,d=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=d.length>2&&void 0!==d[2]?d[2]:25,s=!1,l=!1,u=r||t,"latest"!==t){e.next=10;break}if(this.messages!==this.latestMessages){e.next=7;break}return e.abrupt("return");case 7:o=this.messageSets.findIndex(function(e){return e.isLatest}),e.next=11;break;case 10:o=this.findMessageSetIndex({id:u});case 11:if(-1!==o&&(this.switchToMessageSet(o),s=!0),l=!r||!!(null!==(i=this.threads[r])&&void 0!==i&&i.find(function(e){return e.id===t})),!(s&&l)){e.next=15;break}return e.abrupt("return");case 15:if(s){e.next=18;break}return e.next=18,this._channel.query({messages:{id_around:u,limit:a}},"new");case 18:if(!(!l&&r)){e.next=21;break}return e.next=21,this._channel.getReplies(r,{id_around:t,limit:a});case 21:-1!==(o=this.findMessageSetIndex({id:u}))&&this.switchToMessageSet(o);case 23:case"end":return e.stop()}},e,this)})),function(t,r){return e.apply(this,arguments)})},{key:"findMessage",value:function(e,t){if(t){var r=this.threads[t];if(!r)return;return r.find(function(t){return t.id===e})}var i=this.findMessageSetIndex({id:e});if(-1!==i)return this.messageSets[i].messages.find(function(t){return t.id===e})}},{key:"switchToMessageSet",value:function(e){var t=this.messageSets.find(function(e){return e.isCurrent});t&&(t.isCurrent=!1,this.messageSets[e].isCurrent=!0)}},{key:"areMessageSetsOverlap",value:function(e,t){return e.some(function(e){return t.find(function(t){return e.id===t.id})})}},{key:"findMessageSetIndex",value:function(e){return this.messageSets.findIndex(function(t){return!!t.messages.find(function(t){return t.id===e.id})})}},{key:"findTargetMessageSet",value:function(e){var t,r=this,i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"current",o=e;if(i){var s=this.messageSets.map(function(e,t){return t}).filter(function(t){return r.areMessageSetsOverlap(r.messageSets[t].messages,e)});switch(a){case"new":s.length>0?t=s[0]:e.some(function(e){return!e.parent_id})&&(this.messageSets.push({messages:[],isCurrent:!1,isLatest:!1}),t=this.messageSets.length-1);break;case"current":t=this.messageSets.findIndex(function(e){return e.isCurrent});break;case"latest":t=this.messageSets.findIndex(function(e){return e.isLatest});break;default:t=-1}var l=s.splice(0,1)[0],u=eb()(s);if(void 0!==l&&l!==t&&u.push(t),u.length>0){var d=this.messageSets[l],p=this.messageSets.filter(function(e,t){return -1!==u.indexOf(t)});p.forEach(function(e){d.isLatest=d.isLatest||e.isLatest,d.isCurrent=d.isCurrent||e.isCurrent,o=[].concat(eb()(o),eb()(e.messages))}),p.forEach(function(e){return r.messageSets.splice(r.messageSets.indexOf(e),1)}),t=this.messageSets.findIndex(function(t){return r.areMessageSetsOverlap(t.messages,e)})}}else t=this.findMessageSetIndex(e[0]);return{targetMessageSetIndex:t,messagesToAdd:o}}}]),t}();function rE(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return rF(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rF(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function rF(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r1&&void 0!==a[1]?a[1]:{}).offset&&r.next)){e.next=3;break}throw Error("Cannot specify offset with next");case 3:if(i=rS(rS({filter_conditions:{cid:this.cid}},r),{},{sort:r.sort?rp(r.sort):void 0}),"string"!=typeof t){e.next=8;break}i.query=t,e.next=13;break;case 8:if("object"!==eh()(t)){e.next=12;break}i.message_filter_conditions=t,e.next=13;break;case 12:throw Error("Invalid type ".concat(eh()(t)," for query parameter"));case 13:return e.next=15,this.getClient().wsPromise;case 15:return e.next=17,this.getClient().get(this.getClient().baseURL+"/search",{payload:i});case 17:return e.abrupt("return",e.sent);case 18:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"queryMembers",value:(i=e_()(eD().mark(function e(t){var r,i,a,o,s,l,u=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.length>1&&void 0!==u[1]?u[1]:[],a=u.length>2&&void 0!==u[2]?u[2]:{},s=this.type,this.id?o=this.id:null!==(r=this.data)&&void 0!==r&&r.members&&Array.isArray(this.data.members)&&(l=this.data.members),e.next=6,this.getClient().get(this.getClient().baseURL+"/members",{payload:rS({type:s,id:o,members:l,sort:rp(i),filter_conditions:t},a)});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"sendReaction",value:(a=e_()(eD().mark(function e(t,r,i){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw Error("Message id is missing");case 2:if(!(!r||0===Object.keys(r).length)){e.next=4;break}throw Error("Reaction object is missing");case 4:return e.next=6,this.getClient().post(this.getClient().baseURL+"/messages/".concat(t,"/reaction"),rS({reaction:r},i));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)})),function(e,t,r){return a.apply(this,arguments)})},{key:"deleteReaction",value:function(e,t,r){if(this._checkInitialized(),!t||!e)throw Error("Deleting a reaction requires specifying both the message and reaction type");var i=this.getClient().baseURL+"/messages/".concat(e,"/reaction/").concat(t);return r?this.getClient().delete(i,{user_id:r}):this.getClient().delete(i,{})}},{key:"update",value:(o=e_()(eD().mark(function e(){var t,r,i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1?a[1]:void 0,i=a.length>2?a[2]:void 0,["config","cid","created_by","id","member_count","type","created_at","updated_at","last_message_at","own_capabilities"].forEach(function(e){delete t[e]}),e.next=7,this._update(rS({message:r,data:t},i));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"updatePartial",value:(s=e_()(eD().mark(function e(t){var r,i,a,o;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().patch(this._channelURL(),t);case 2:return a=e.sent,o=eb()(a.channel.own_capabilities||[]).sort().join()!==eb()(Array.isArray(null===(r=this.data)||void 0===r?void 0:r.own_capabilities)?null===(i=this.data)||void 0===i?void 0:i.own_capabilities:[]).sort().join(),this.data=a.channel,o&&this.getClient().dispatchEvent({type:"capabilities.changed",cid:this.cid,own_capabilities:a.channel.own_capabilities}),e.abrupt("return",a);case 7:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"enableSlowMode",value:(l=e_()(eD().mark(function e(t){var r;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().post(this._channelURL(),{cooldown:t});case 2:return r=e.sent,this.data=r.channel,e.abrupt("return",r);case 5:case"end":return e.stop()}},e,this)})),function(e){return l.apply(this,arguments)})},{key:"disableSlowMode",value:(u=e_()(eD().mark(function e(){var t;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().post(this._channelURL(),{cooldown:0});case 2:return t=e.sent,this.data=t.channel,e.abrupt("return",t);case 5:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})},{key:"delete",value:(d=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.getClient().delete(this._channelURL(),rS({},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"truncate",value:(p=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.getClient().post(this._channelURL()+"/truncate",t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return p.apply(this,arguments)})},{key:"acceptInvite",value:(f=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this._update(rS({accept_invite:!0},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"rejectInvite",value:(m=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this._update(rS({reject_invite:!0},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"addMembers",value:(g=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this._update(rS({add_members:t,message:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return g.apply(this,arguments)})},{key:"addModerators",value:(v=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this._update(rS({add_moderators:t,message:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return v.apply(this,arguments)})},{key:"assignRoles",value:(b=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this._update(rS({assign_roles:t,message:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return b.apply(this,arguments)})},{key:"inviteMembers",value:(y=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this._update(rS({invites:t,message:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return y.apply(this,arguments)})},{key:"removeMembers",value:(_=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this._update(rS({remove_members:t,message:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return _.apply(this,arguments)})},{key:"demoteModerators",value:(w=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this._update(rS({demote_moderators:t,message:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return w.apply(this,arguments)})},{key:"_update",value:(k=e_()(eD().mark(function e(t){var r;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().post(this._channelURL(),t);case 2:return r=e.sent,this.data=r.channel,e.abrupt("return",r);case 5:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)})},{key:"mute",value:(x=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.getClient().post(this.getClient().baseURL+"/moderation/mute/channel",rS({channel_cid:this.cid},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return x.apply(this,arguments)})},{key:"unmute",value:(E=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.getClient().post(this.getClient().baseURL+"/moderation/unmute/channel",rS({channel_cid:this.cid},t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return E.apply(this,arguments)})},{key:"muteStatus",value:function(){return this._checkInitialized(),this.getClient()._muteStatus(this.cid)}},{key:"sendAction",value:function(e,t){if(this._checkInitialized(),!e)throw Error("Message id is missing");return this.getClient().post(this.getClient().baseURL+"/messages/".concat(e,"/action"),{message_id:e,form_data:t,id:this.id,type:this.type})}},{key:"keystroke",value:(F=e_()(eD().mark(function e(t,r){var i,a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._isTypingIndicatorsEnabled()){e.next=2;break}return e.abrupt("return");case 2:if(i=new Date,a=this.lastTypingEvent&&i.getTime()-this.lastTypingEvent.getTime(),this.lastKeyStroke=i,this.isTyping=!0,!(null===a||a>2e3)){e.next=10;break}return this.lastTypingEvent=new Date,e.next=10,this.sendEvent(rS({type:"typing.start",parent_id:t},r||{}));case 10:case"end":return e.stop()}},e,this)})),function(e,t){return F.apply(this,arguments)})},{key:"stopTyping",value:(C=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._isTypingIndicatorsEnabled()){e.next=2;break}return e.abrupt("return");case 2:return this.lastTypingEvent=null,this.isTyping=!1,e.next=6,this.sendEvent(rS({type:"typing.stop",parent_id:t},r||{}));case 6:case"end":return e.stop()}},e,this)})),function(e,t){return C.apply(this,arguments)})},{key:"_isTypingIndicatorsEnabled",value:function(){var e,t,r,i,a;return null!==(e=this.getConfig())&&void 0!==e&&!!e.typing_events&&(null===(t=null===(r=this.getClient().user)||void 0===r?void 0:null===(i=r.privacy_settings)||void 0===i?void 0:null===(a=i.typing_indicators)||void 0===a?void 0:a.enabled)||void 0===t||t)}},{key:"lastMessage",value:function(){var e=this.state.latestMessages.length-5;e<0&&(e=0);var t=this.state.latestMessages.length+1,r=this.state.latestMessages.slice(e,t);return r.sort(function(e,t){return t.created_at.getTime()-e.created_at.getTime()}),r[0]}},{key:"markRead",value:(S=e_()(eD().mark(function e(){var t,r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=i.length>0&&void 0!==i[0]?i[0]:{},this._checkInitialized(),!(!(null!==(t=this.getConfig())&&void 0!==t&&t.read_events)&&!this.getClient()._isUsingServerAuth())){e.next=4;break}return e.abrupt("return",Promise.resolve(null));case 4:return e.next=6,this.getClient().post(this._channelURL()+"/read",rS({},r));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)})),function(){return S.apply(this,arguments)})},{key:"markUnread",value:(D=e_()(eD().mark(function e(t){var r;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._checkInitialized(),!(!(null!==(r=this.getConfig())&&void 0!==r&&r.read_events)&&!this.getClient()._isUsingServerAuth())){e.next=3;break}return e.abrupt("return",Promise.resolve(null));case 3:return e.next=5,this.getClient().post(this._channelURL()+"/unread",rS({},t));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(e){return D.apply(this,arguments)})},{key:"clean",value:function(){this.lastKeyStroke&&new Date().getTime()-this.lastKeyStroke.getTime()>1e3&&this.isTyping&&rl(this.stopTyping(),"stop typing event"),this.state.clean()}},{key:"watch",value:(j=e_()(eD().mark(function e(t){var r,i,a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={state:!0,watch:!0,presence:!1},e.next=3,this.getClient().wsPromise;case 3:return this.getClient()._hasConnectionID()||(r.watch=!1),i=rS(rS({},r),t),e.next=7,this.query(i,"latest");case 7:return a=e.sent,this.initialized=!0,this.data=a.channel,this._client.logger("info","channel:watch() - started watching channel ".concat(this.cid),{tags:["channel"],channel:this}),e.abrupt("return",a);case 12:case"end":return e.stop()}},e,this)})),function(e){return j.apply(this,arguments)})},{key:"stopWatching",value:(T=e_()(eD().mark(function e(){var t;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().post(this._channelURL()+"/stop-watching",{});case 2:return t=e.sent,this._client.logger("info","channel:watch() - stopped watching channel ".concat(this.cid),{tags:["channel"],channel:this}),e.abrupt("return",t);case 5:case"end":return e.stop()}},e,this)})),function(){return T.apply(this,arguments)})},{key:"getReplies",value:(O=e_()(eD().mark(function e(t,r,i){var a,o;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=i?rp(i):void 0,e.next=3,this.getClient().get(this.getClient().baseURL+"/messages/".concat(t,"/replies"),rS({sort:a},r));case 3:return(o=e.sent).messages&&this.state.addMessagesSorted(o.messages),e.abrupt("return",o);case 6:case"end":return e.stop()}},e,this)})),function(e,t,r){return O.apply(this,arguments)})},{key:"getPinnedMessages",value:(P=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:[],e.next=3,this.getClient().get(this.getClient().baseURL+"/channels/".concat(this.type,"/").concat(this.id,"/pinned_messages"),{payload:rS(rS({},t),{},{sort:rp(r)})});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return P.apply(this,arguments)})},{key:"getReactions",value:function(e,t){return this.getClient().get(this.getClient().baseURL+"/messages/".concat(e,"/reactions"),rS({},t))}},{key:"getMessagesById",value:function(e){return this.getClient().get(this._channelURL()+"/messages",{ids:e.join(",")})}},{key:"lastRead",value:function(){var e=this.getClient().userID;if(e)return this.state.read[e]?this.state.read[e].last_read:null}},{key:"_countMessageAsUnread",value:function(e){var t,r,i,a;return!(e.shadowed||e.silent||e.parent_id&&!e.show_in_channel||(null===(t=e.user)||void 0===t?void 0:t.id)===this.getClient().userID||null!==(r=e.user)&&void 0!==r&&r.id&&this.getClient().userMuteStatus(e.user.id)||"system"===e.type||Array.isArray(null===(i=this.data)||void 0===i?void 0:i.own_capabilities)&&!(null!==(a=this.data)&&void 0!==a&&a.own_capabilities.includes("read-events")))&&!this.muteStatus().muted}},{key:"countUnread",value:function(e){if(!e)return this.state.unreadCount;for(var t=0,r=0;re&&this._countMessageAsUnread(i)&&t++}return t}},{key:"countUnreadMentions",value:function(){for(var e=this.lastRead(),t=this.getClient().userID,r=0,i=0;ie)&&null!==(a=o.mentioned_users)&&void 0!==a&&a.some(function(e){return e.id===t})&&r++}return r}},{key:"query",value:(R=e_()(eD().mark(function e(t){var r,i,a,o,s,l,u,d,p,f=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=f.length>1&&void 0!==f[1]?f[1]:"current",e.next=3,this.getClient().wsPromise;case 3:return o="".concat(this.getClient().baseURL,"/channels/").concat(this.type),this.id&&(o+="/".concat(this.id)),e.next=7,this.getClient().post(o+"/query",rS({data:this._data,state:!0},t));case 7:return s=e.sent,this.id||(this.id=s.channel.id,this.cid=s.channel.cid,l=s.members.map(function(e){var t;return e.user_id||(null===(t=e.user)||void 0===t?void 0:t.id)}).sort().join(","),(u="".concat(this.type,":!members-").concat(l))in this.getClient().activeChannels&&delete this.getClient().activeChannels[u],this.cid in this.getClient().activeChannels||(this.getClient().activeChannels[this.cid]=this)),this.getClient()._addChannelConfig(s.channel),d=this._initializeState(s,a).messageSet,p=eb()(s.channel.own_capabilities||[]).sort().join()!==eb()(Array.isArray(null===(r=this.data)||void 0===r?void 0:r.own_capabilities)?null===(i=this.data)||void 0===i?void 0:i.own_capabilities:[]).sort().join(),this.data=s.channel,this.offlineMode=!1,p&&this.getClient().dispatchEvent({type:"capabilities.changed",cid:this.cid,own_capabilities:s.channel.own_capabilities}),this.getClient().dispatchEvent({type:"channels.queried",queriedChannels:{channels:[s],isLatestMessageSet:d.isLatest}}),e.abrupt("return",s);case 17:case"end":return e.stop()}},e,this)})),function(e){return R.apply(this,arguments)})},{key:"banUser",value:(M=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkInitialized(),e.next=3,this.getClient().banUser(t,rS(rS({},r),{},{type:this.type,id:this.id}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return M.apply(this,arguments)})},{key:"hide",value:(L=e_()(eD().mark(function e(){var t,r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:null,r=i.length>1&&void 0!==i[1]&&i[1],this._checkInitialized(),e.next=5,this.getClient().post("".concat(this._channelURL(),"/hide"),{user_id:t,clear_history:r});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(){return L.apply(this,arguments)})},{key:"show",value:(A=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:null,this._checkInitialized(),e.next=4,this.getClient().post("".concat(this._channelURL(),"/show"),{user_id:t});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return A.apply(this,arguments)})},{key:"unbanUser",value:(I=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkInitialized(),e.next=3,this.getClient().unbanUser(t,{type:this.type,id:this.id});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return I.apply(this,arguments)})},{key:"shadowBan",value:(N=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkInitialized(),e.next=3,this.getClient().shadowBan(t,rS(rS({},r),{},{type:this.type,id:this.id}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return N.apply(this,arguments)})},{key:"removeShadowBan",value:(B=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkInitialized(),e.next=3,this.getClient().removeShadowBan(t,{type:this.type,id:this.id});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return B.apply(this,arguments)})},{key:"createCall",value:(U=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().post(this._channelURL()+"/call",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return U.apply(this,arguments)})},{key:"vote",value:(z=e_()(eD().mark(function e(t,r,i){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().castPollVote(t,r,i);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t,r){return z.apply(this,arguments)})},{key:"removeVote",value:(H=e_()(eD().mark(function e(t,r,i){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getClient().removePollVote(t,r,i);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t,r){return H.apply(this,arguments)})},{key:"on",value:function(e,t){var r=this,i=t?e:"all",a=t||e;return i in this.listeners||(this.listeners[i]=[]),this._client.logger("info","Attaching listener for ".concat(i," event on channel ").concat(this.cid),{tags:["event","channel"],channel:this}),this.listeners[i].push(a),{unsubscribe:function(){r._client.logger("info","Removing listener for ".concat(i," event from channel ").concat(r.cid),{tags:["event","channel"],channel:r}),r.listeners[i]=r.listeners[i].filter(function(e){return e!==a})}}}},{key:"off",value:function(e,t){var r=t?e:"all",i=t||e;r in this.listeners||(this.listeners[r]=[]),this._client.logger("info","Removing listener for ".concat(r," event from channel ").concat(this.cid),{tags:["event","channel"],channel:this}),this.listeners[r]=this.listeners[r].filter(function(e){return e!==i})}},{key:"_handleChannelEvent",value:function(e){this._client.logger("info","channel:_handleChannelEvent - Received event of type { ".concat(e.type," } on ").concat(this.cid),{tags:["event","channel"],channel:this});var t,r,i,a,o,s,l,u,d=this.state;switch(e.type){case"typing.start":null!==(v=e.user)&&void 0!==v&&v.id&&(d.typing[e.user.id]=e);break;case"typing.stop":null!==(b=e.user)&&void 0!==b&&b.id&&delete d.typing[e.user.id];break;case"message.read":null!==(y=e.user)&&void 0!==y&&y.id&&e.created_at&&(d.read[e.user.id]={last_read:new Date(e.created_at),last_read_message_id:e.last_read_message_id,user:e.user,unread_messages:0},(null===(j=e.user)||void 0===j?void 0:j.id)===(null===(T=this.getClient().user)||void 0===T?void 0:T.id)&&(d.unreadCount=0));break;case"user.watching.start":case"user.updated":null!==(_=e.user)&&void 0!==_&&_.id&&(d.watchers[e.user.id]=e.user);break;case"user.watching.stop":null!==(w=e.user)&&void 0!==w&&w.id&&delete d.watchers[e.user.id];break;case"message.deleted":e.message&&(this._extendEventWithOwnReactions(e),e.hard_delete?d.removeMessage(e.message):d.addMessageSorted(e.message,!1,!1),d.removeQuotedMessageReferences(e.message),e.message.pinned&&d.removePinnedMessage(e.message));break;case"message.new":if(e.message){var p,f,m,g,v,b,y,_,w,k,x,E,F,C,S,D,j,T,O,P,R,M=(null===(O=e.user)||void 0===O?void 0:O.id)===(null===(P=this.getClient().user)||void 0===P?void 0:P.id),L=e.message.parent_id&&!e.message.show_in_channel;if((this.state.isUpToDate||L)&&d.addMessageSorted(e.message,M),e.message.pinned&&d.addPinnedMessage(e.message),M||L)break;if(null!==(R=e.user)&&void 0!==R&&R.id)for(var A in d.read)A===e.user.id?d.read[e.user.id]={last_read:new Date(e.created_at),user:e.user,unread_messages:0}:d.read[A].unread_messages+=1;this._countMessageAsUnread(e.message)&&(d.unreadCount=d.unreadCount+1)}break;case"message.updated":case"message.undeleted":e.message&&(this._extendEventWithOwnReactions(e),d.addMessageSorted(e.message,!1,!1),d._updateQuotedMessageReferences({message:e.message}),e.message.pinned?d.addPinnedMessage(e.message):d.removePinnedMessage(e.message));break;case"channel.truncated":if(null!==(k=e.channel)&&void 0!==k&&k.truncated_at){var I=+new Date(e.channel.truncated_at);d.messageSets.forEach(function(e,t){e.messages.forEach(function(e){var r=e.created_at,i=e.id;I>+r&&d.removeMessage({id:i,messageSetIndex:t})})}),d.pinnedMessages.forEach(function(e){var t=e.id;I>+e.created_at&&d.removePinnedMessage({id:t})})}else d.clearMessages();d.unreadCount=0,e.message&&(d.addMessageSorted(e.message),e.message.pinned&&d.addPinnedMessage(e.message));break;case"member.added":case"member.updated":null!==(x=e.member)&&void 0!==x&&x.user_id&&(d.members[e.member.user_id]=e.member);break;case"member.removed":null!==(E=e.user)&&void 0!==E&&E.id&&delete d.members[e.user.id];break;case"notification.mark_unread":if(!((null===(N=e.user)||void 0===N?void 0:N.id)===(null===(B=this.getClient().user)||void 0===B?void 0:B.id)&&e.user))break;var N,B,U,z=null!==(U=e.unread_messages)&&void 0!==U?U:0;d.read[e.user.id]={first_unread_message_id:e.first_unread_message_id,last_read:new Date(e.last_read_at),last_read_message_id:e.last_read_message_id,user:e.user,unread_messages:z},d.unreadCount=z;break;case"channel.updated":e.channel&&((null===(t=e.channel)||void 0===t?void 0:t.frozen)!==void 0&&e.channel.frozen!==(null===(r=this.data)||void 0===r?void 0:r.frozen)&&this.query({state:!1,messages:{limit:0},watchers:{limit:0}}),this.data=rS(rS({},e.channel),{},{hidden:null!==(i=null===(a=e.channel)||void 0===a?void 0:a.hidden)&&void 0!==i?i:null===(o=this.data)||void 0===o?void 0:o.hidden,own_capabilities:null!==(s=null===(l=e.channel)||void 0===l?void 0:l.own_capabilities)&&void 0!==s?s:null===(u=this.data)||void 0===u?void 0:u.own_capabilities}));break;case"poll.updated":e.poll&&d.updatePoll(e.poll,(null===(p=e.message)||void 0===p?void 0:p.id)||"");break;case"poll.vote_casted":e.poll_vote&&e.poll&&d.addPollVote(e.poll_vote,e.poll,(null===(f=e.message)||void 0===f?void 0:f.id)||"");break;case"poll.vote_changed":e.poll_vote&&e.poll&&d.updatePollVote(e.poll_vote,e.poll,(null===(m=e.message)||void 0===m?void 0:m.id)||"");break;case"poll.vote_removed":e.poll_vote&&e.poll&&d.removePollVote(e.poll_vote,e.poll,(null===(g=e.message)||void 0===g?void 0:g.id)||"");break;case"poll.closed":e.message&&d.addMessageSorted(e.message,!1,!1);break;case"reaction.new":e.message&&e.reaction&&(e.message=d.addReaction(e.reaction,e.message));break;case"reaction.deleted":e.reaction&&(e.message=d.removeReaction(e.reaction,e.message));break;case"reaction.updated":e.reaction&&(e.message=d.addReaction(e.reaction,e.message,!0));break;case"channel.hidden":this.data=rS(rS({},this.data),{},{hidden:!0}),e.clear_history&&d.clearMessages();break;case"channel.visible":this.data=rS(rS({},this.data),{},{hidden:!1});break;case"user.banned":if(!(null!==(F=e.user)&&void 0!==F&&F.id))break;d.members[e.user.id]=rS(rS({},d.members[e.user.id]||{}),{},{shadow_banned:!!e.shadow,banned:!e.shadow,user:rS(rS({},(null===(C=d.members[e.user.id])||void 0===C?void 0:C.user)||{}),e.user)});break;case"user.unbanned":if(!(null!==(S=e.user)&&void 0!==S&&S.id))break;d.members[e.user.id]=rS(rS({},d.members[e.user.id]||{}),{},{shadow_banned:!1,banned:!1,user:rS(rS({},(null===(D=d.members[e.user.id])||void 0===D?void 0:D.user)||{}),e.user)})}void 0!==e.watcher_count&&(this.state.watcher_count=e.watcher_count)}},{key:"_checkInitialized",value:function(){if(!this.initialized&&!this.offlineMode&&!this.getClient()._isUsingServerAuth())throw Error("Channel ".concat(this.cid," hasn't been initialized yet. Make sure to call .watch() and wait for it to resolve"))}},{key:"_initializeState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"latest",r=this.getClient(),i=r.state,a=r.user,o=r.userID;if(e.members){var s,l=rE(e.members);try{for(l.s();!(s=l.n()).done;){var u=s.value;u.user&&i.updateUserReference(u.user,this.cid)}}catch(e){l.e(e)}finally{l.f()}}this.state.membership=e.membership||{};var d=e.messages||[];this.state.messages||this.state.initMessages();var p=this.state.addMessagesSorted(d,!1,!0,!0,t).messageSet;if(this.state.pinnedMessages||(this.state.pinnedMessages=[]),this.state.addPinnedMessages(e.pinned_messages||[]),e.pending_messages&&(this.state.pending_messages=e.pending_messages),void 0!==e.watcher_count&&(this.state.watcher_count=e.watcher_count),e.watchers){var f,m=rE(e.watchers);try{for(m.s();!(f=m.n()).done;){var g=f.value;g&&(i.updateUserReference(g,this.cid),this.state.watchers[g.id]=g)}}catch(e){m.e(e)}finally{m.f()}}if(null!=o){var v=this.state.last_message_at||new Date;a&&(this.state.read[a.id]={user:a,last_read:v,unread_messages:0})}if(e.read){var b,y=rE(e.read);try{for(y.s();!(b=y.n()).done;){var _,w=b.value;this.state.read[w.user.id]={last_read:new Date(w.last_read),last_read_message_id:w.last_read_message_id,unread_messages:null!==(_=w.unread_messages)&&void 0!==_?_:0,user:w.user},w.user.id===(null==a?void 0:a.id)&&(this.state.unreadCount=this.state.read[w.user.id].unread_messages)}}catch(e){y.e(e)}finally{y.f()}}return e.members&&(this.state.members=e.members.reduce(function(e,t){return t.user&&(e[t.user.id]=t),e},{})),{messageSet:p}}},{key:"_extendEventWithOwnReactions",value:function(e){if(e.message){var t=this.state.findMessage(e.message.id,e.message.parent_id);t&&(e.message.own_reactions=t.own_reactions)}}},{key:"_disconnect",value:function(){this._client.logger("info","channel:disconnect() - Disconnecting the channel ".concat(this.cid),{tags:["connection","channel"],channel:this}),this.disconnected=!0,this.state.setIsUpToDate(!1)}}]),q}();function rj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.updateUser(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"updateUser",value:function(e){null!=e&&(this.users[e.id]=e)}},{key:"updateUserReference",value:function(e,t){null!=e&&(this.updateUser(e),this.userChannelReferences[e.id]||(this.userChannelReferences[e.id]={}),this.userChannelReferences[e.id][t]=!0)}},{key:"deleteAllChannelReference",value:function(e){for(var t in this.userChannelReferences)delete this.userChannelReferences[t][e]}}]),e}();function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function rP(e){for(var t=1;t1)||void 0===arguments[1]||arguments[1];void 0!==e.code&&(r=e.code,i="unknown",a=e.reason),void 0!==e.error&&(r=e.error.code,i=e.error.StatusCode,a=e.error.message),t._log("_errorFromWSEvent() - WS failed with code ".concat(r),{event:e},"warn");var s=Error("WS failed with code ".concat(r," and reason - ").concat(a));return s.code=r,s.StatusCode=i,s.isWSFailure=o,s}),eC()(this,"_setupConnectionPromise",function(){t.isResolved=!1,t.connectionOpen=new Promise(function(e,r){t.resolvePromise=e,t.rejectPromise=r})}),eC()(this,"scheduleNextPing",function(){t.healthCheckTimeoutRef&&clearTimeout(t.healthCheckTimeoutRef),t.healthCheckTimeoutRef=setTimeout(function(){var e,r=[{type:"health.check",client_id:t.client.clientID}];try{null===(e=t.ws)||void 0===e||e.send(JSON.stringify(r))}catch(e){}},t.pingInterval)}),eC()(this,"scheduleConnectionCheck",function(){t.connectionCheckTimeoutRef&&clearTimeout(t.connectionCheckTimeoutRef),t.connectionCheckTimeoutRef=setTimeout(function(){var e=new Date;t.lastEvent&&e.getTime()-t.lastEvent.getTime()>t.connectionCheckTimeout&&(t._log("scheduleConnectionCheck - going to reconnect"),t._setHealth(!1),t._reconnect())},t.connectionCheckTimeout)}),this.client=r,this.consecutiveFailures=0,this.totalFailures=0,this.isConnecting=!1,this.isDisconnected=!1,this.isResolved=!1,this.isHealthy=!1,this.wsID=1,this.lastEvent=null,this.pingInterval=25e3,this.connectionCheckTimeout=this.pingInterval+1e4,this.onlineStatusChanged}return eE()(a,[{key:"_log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info";this.client.logger(r,"connection:"+e,function(e){for(var t=1;t0&&void 0!==i[0]?i[0]:15e3,!this.isConnecting){e.next=3;break}throw Error("You've called connect twice, can only attempt 1 connection at the time");case 3:return this.isDisconnected=!1,e.prev=4,e.next=7,this._connect();case 7:r=e.sent,this.consecutiveFailures=0,this._log("connect() - Established ws connection with healthcheck: ".concat(r)),e.next=23;break;case 12:if(e.prev=12,e.t0=e.catch(4),this.isHealthy=!1,this.consecutiveFailures+=1,!(e.t0.code===rd.TOKEN_EXPIRED&&!this.client.tokenManager.isStatic())){e.next=21;break}this._log("connect() - WS failure due to expired token, so going to try to reload token and reconnect"),this._reconnect({refreshToken:!0}),e.next=23;break;case 21:if(e.t0.isWSFailure){e.next=23;break}throw Error(JSON.stringify({code:e.t0.code,StatusCode:e.t0.StatusCode,message:e.t0.message,isWSFailure:e.t0.isWSFailure}));case 23:return e.next=25,this._waitForHealthy(t);case 25:return e.abrupt("return",e.sent);case 26:case"end":return e.stop()}},e,this,[[4,12]])})),function(){return e.apply(this,arguments)})},{key:"_waitForHealthy",value:(t=e_()(eD().mark(function e(){var t,r=this,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:15e3,e.abrupt("return",Promise.race([e_()(eD().mark(function e(){var i,a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=50,a=0;case 2:if(!(a<=t)){e.next=18;break}return e.prev=3,e.next=6,r.connectionOpen;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),a!==t){e.next=13;break}throw Error(JSON.stringify({code:e.t0.code,StatusCode:e.t0.StatusCode,message:e.t0.message,isWSFailure:e.t0.isWSFailure}));case 13:return e.next=15,rc(i);case 15:a+=i,e.next=2;break;case 18:case"end":return e.stop()}},e,null,[[3,9]])}))(),e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rc(t);case 2:throw r.isConnecting=!1,Error(JSON.stringify({code:"",StatusCode:"",message:"initial WS connection could not be established",isWSFailure:!0}));case 4:case"end":return e.stop()}},e)}))()]));case 2:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"disconnect",value:function(e){var t,r=this;this._log("disconnect() - Closing the websocket connection for wsID ".concat(this.wsID)),this.wsID+=1,this.isConnecting=!1,this.isDisconnected=!0,this.healthCheckTimeoutRef&&clearInterval(this.healthCheckTimeoutRef),this.connectionCheckTimeoutRef&&clearInterval(this.connectionCheckTimeoutRef),this.onlineStatusChanged,this.isHealthy=!1,this.ws&&this.ws.removeAllListeners&&this.ws.removeAllListeners();var i=this.ws;return i&&i.close&&i.readyState===i.OPEN?(t=new Promise(function(t){var a=function(e){r._log("disconnect() - resolving isClosedPromise ".concat(e?"with":"without"," close frame"),{event:e}),t()};i.onclose=a,setTimeout(a,null!=e?e:1e3)}),this._log("disconnect() - Manually closed connection by calling client.disconnect()"),i.close(rd.WS_CLOSED_SUCCESS,"Manually closed connection by calling client.disconnect()")):(this._log("disconnect() - ws connection doesn't exist or it is already closed."),t=Promise.resolve()),delete this.ws,t}},{key:"_connect",value:(r=e_()(eD().mark(function e(){var t,r,i,a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.isConnecting||this.isDisconnected&&this.client.options.enableWSFallback)){e.next=2;break}return e.abrupt("return");case 2:return this.isConnecting=!0,this.requestID=rm(),this.client.insightMetrics.connectionStartTimestamp=new Date().getTime(),t=!1,e.prev=6,this._log("_connect() - waiting for token"),e.next=10,this.client.tokenManager.tokenReady();case 10:t=!0,e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:if(e.prev=15,t){e.next=20;break}return this._log("_connect() - tokenProvider failed before, so going to retry"),e.next=20,this.client.tokenManager.loadToken();case 20:return this._setupConnectionPromise(),r=this._buildUrl(),this._log("_connect() - Connecting to ".concat(r),{wsURL:r,requestID:this.requestID}),this.ws=new(nX())(r),this.ws.onopen=this.onopen.bind(this,this.wsID),this.ws.onclose=this.onclose.bind(this,this.wsID),this.ws.onerror=this.onerror.bind(this,this.wsID),this.ws.onmessage=this.onmessage.bind(this,this.wsID),e.next=30,this.connectionOpen;case 30:if(i=e.sent,this.isConnecting=!1,!i){e.next=36;break}return this.connectionID=i.connection_id,this.client.insightMetrics.wsConsecutiveFailures>0&&this.client.options.enableInsights&&(rM("ws_success_after_failure",rL(this)),this.client.insightMetrics.wsConsecutiveFailures=0),e.abrupt("return",i);case 36:e.next=44;break;case 38:throw e.prev=38,e.t1=e.catch(15),this.isConnecting=!1,this._log("_connect() - Error - ",e.t1),this.client.options.enableInsights&&(this.client.insightMetrics.wsConsecutiveFailures++,this.client.insightMetrics.wsTotalFailures++,a=rP(rP({},function(e){var t={};if(!e)return t;try{Object.getOwnPropertyNames(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})}catch(e){return{error:"failed to serialize the error"}}return t}(e.t1)),rL(this)),null==rM||rM("ws_fatal",a)),e.t1;case 44:case"end":return e.stop()}},e,this,[[6,13],[15,38]])})),function(){return r.apply(this,arguments)})},{key:"_reconnect",value:(i=e_()(eD().mark(function e(){var t,r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},this._log("_reconnect() - Initiating the reconnect"),!(this.isConnecting||this.isHealthy)){e.next=5;break}return this._log("_reconnect() - Abort (1) since already connecting or healthy"),e.abrupt("return");case 5:return(r=t.interval)||(r=rf(this.consecutiveFailures)),e.next=9,rc(r);case 9:if(!(this.isConnecting||this.isHealthy)){e.next=12;break}return this._log("_reconnect() - Abort (2) since already connecting or healthy"),e.abrupt("return");case 12:if(!(this.isDisconnected&&this.client.options.enableWSFallback)){e.next=15;break}return this._log("_reconnect() - Abort (3) since disconnect() is called"),e.abrupt("return");case 15:if(this._log("_reconnect() - Destroying current WS connection"),this._destroyCurrentWSConnection(),!t.refreshToken){e.next=20;break}return e.next=20,this.client.tokenManager.loadToken();case 20:return e.prev=20,e.next=23,this._connect();case 23:return this._log("_reconnect() - Waiting for recoverCallBack"),e.next=26,this.client.recoverState();case 26:this._log("_reconnect() - Finished recoverCallBack"),this.consecutiveFailures=0,e.next=38;break;case 30:if(e.prev=30,e.t0=e.catch(20),this.isHealthy=!1,this.consecutiveFailures+=1,!(e.t0.code===rd.TOKEN_EXPIRED&&!this.client.tokenManager.isStatic())){e.next=37;break}return this._log("_reconnect() - WS failure due to expired token, so going to try to reload token and reconnect"),e.abrupt("return",this._reconnect({refreshToken:!0}));case 37:e.t0.isWSFailure&&(this._log("_reconnect() - WS failure, so going to try to reconnect"),this._reconnect());case 38:this._log("_reconnect() - == END ==");case 39:case"end":return e.stop()}},e,this,[[20,30]])})),function(){return i.apply(this,arguments)})},{key:"_destroyCurrentWSConnection",value:function(){this.wsID+=1;try{var e,t;this===null||void 0===this||null===(e=this.ws)||void 0===e||e.removeAllListeners(),this===null||void 0===this||null===(t=this.ws)||void 0===t||t.close()}catch(e){}}}]),a}();function rN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function rB(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"!=typeof t)throw TypeError("userId should be a string");var a=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=ep()({algorithm:"HS256",noTimestamp:!0},t);return n0().sign({server:!0},e,r)}var rz=function e(t){var r,i=this;ek()(this,e),eC()(this,"loadTokenPromise",void 0),eC()(this,"type",void 0),eC()(this,"secret",void 0),eC()(this,"token",void 0),eC()(this,"tokenProvider",void 0),eC()(this,"user",void 0),eC()(this,"setTokenOrProvider",(r=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.validateToken(t,r),i.user=r,ru(t)&&(i.tokenProvider=t,i.type="provider"),"string"==typeof t&&(i.token=t,i.type="static"),!t&&i.user&&i.secret&&(i.token=rB(i.secret,r.id,{},{}),i.type="static"),e.next=7,i.loadToken();case 7:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})),eC()(this,"reset",function(){i.token=void 0,i.user=void 0,i.loadTokenPromise=null}),eC()(this,"validateToken",function(e,t){if(!t||!t.anon||e){if(!i.secret&&!e)throw Error("User token can not be empty");if(e&&"string"!=typeof e&&!ru(e))throw Error("user token should either be a string or a function");if("string"==typeof e){if(t.anon&&""===e)return;var r,a=3!==(r=e.split(".")).length?"":JSON.parse(ri(r[1])).user_id;if(null!=e&&(null==a||""===a||a!==t.id))throw Error("userToken does not have a user_id or is not matching with user.id")}}}),eC()(this,"tokenReady",function(){return i.loadTokenPromise}),eC()(this,"loadToken",function(){var e;return i.loadTokenPromise=new Promise((e=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("static"!==i.type){e.next=2;break}return e.abrupt("return",t(i.token));case 2:if(!(i.tokenProvider&&"string"!=typeof i.tokenProvider)){e.next=13;break}return e.prev=3,e.next=6,i.tokenProvider();case 6:i.token=e.sent,e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(3),e.abrupt("return",r(Error("Call to tokenProvider failed with message: ".concat(e.t0))));case 12:t(i.token);case 13:case"end":return e.stop()}},e,null,[[3,9]])})),function(t,r){return e.apply(this,arguments)})),i.loadTokenPromise}),eC()(this,"getToken",function(){if(i.token||i.user&&i.user.anon&&!i.token)return i.token;if(i.secret)return rU(i.secret);throw Error("Both secret and user tokens are not set. Either client.connectUser wasn't called or client.disconnect was called")}),eC()(this,"isStatic",function(){return"static"===i.type}),this.loadTokenPromise=null,t&&(this.secret=t),this.type="static",this.secret&&(this.token=rU(this.secret))},rH={"-1":{name:"InternalSystemError",retryable:!0},2:{name:"AccessKeyError",retryable:!1},3:{name:"AuthenticationFailedError",retryable:!0},4:{name:"InputError",retryable:!1},6:{name:"DuplicateUsernameError",retryable:!1},9:{name:"RateLimitError",retryable:!0},16:{name:"DoesNotExistError",retryable:!1},17:{name:"NotAllowedError",retryable:!1},18:{name:"EventNotSupportedError",retryable:!1},19:{name:"ChannelFeatureNotSupportedError",retryable:!1},20:{name:"MessageTooLongError",retryable:!1},21:{name:"MultipleNestingLevelError",retryable:!1},22:{name:"PayloadTooBigError",retryable:!1},23:{name:"RequestTimeoutError",retryable:!0},24:{name:"MaxHeaderSizeExceededError",retryable:!1},40:{name:"AuthErrorTokenExpired",retryable:!1},41:{name:"AuthErrorTokenNotValidYet",retryable:!1},42:{name:"AuthErrorTokenUsedBeforeIssuedAt",retryable:!1},43:{name:"AuthErrorTokenSignatureInvalid",retryable:!1},44:{name:"CustomCommandEndpointMissingError",retryable:!1},45:{name:"CustomCommandEndpointCallError",retryable:!0},46:{name:"ConnectionIDNotFoundError",retryable:!1},60:{name:"CoolDownError",retryable:!0},69:{name:"ErrWrongRegion",retryable:!1},70:{name:"ErrQueryChannelPermissions",retryable:!1},71:{name:"ErrTooManyConnections",retryable:!0},99:{name:"AppSuspendedError",retryable:!1}};function rq(e){if(!e.code)return!1;var t=rH["".concat(e.code)];return!!t&&t.retryable}function rV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function rW(e){for(var t=1;t0&&void 0!==a[0]&&a[0],i.state!==y.Connecting){e.next=4;break}return i._log("connect() - connecting already in progress",{reconnect:t},"warn"),e.abrupt("return");case 4:if(i.state!==y.Connected){e.next=7;break}return i._log("connect() - already connected and polling",{reconnect:t},"warn"),e.abrupt("return");case 7:return i._setState(y.Connecting),i.connectionID=void 0,e.prev=9,e.next=12,i._req({json:i.client._buildWSPayload()},{timeout:8e3},t);case 12:return r=e.sent.event,i._setState(y.Connected),i.connectionID=r.connection_id,i.client.dispatchEvent(r),i._poll(),t&&i.client.recoverState(),e.abrupt("return",r);case 22:throw e.prev=22,e.t0=e.catch(9),i._setState(y.Closed),e.t0;case 26:case"end":return e.stop()}},e,null,[[9,22]])}))),eC()(this,"isHealthy",function(){return!!i.connectionID&&i.state===y.Connected}),eC()(this,"disconnect",e_()(eD().mark(function e(){var t,r,a,o=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:2e3,i._onlineStatusChanged,i._setState(y.Disconnected),null===(t=i.cancelToken)||void 0===t||t.cancel("disconnect() is called"),i.cancelToken=void 0,a=i.connectionID,i.connectionID=void 0,e.prev=7,e.next=10,i._req({close:!0,connection_id:a},{timeout:r},!1);case 10:i._log("disconnect() - Closed connectionID"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),i._log("disconnect() - Failed",{err:e.t0},"error");case 16:case"end":return e.stop()}},e,null,[[7,13]])}))),this.client=a,this.state=y.Init,this.consecutiveFailures=0,this._onlineStatusChanged}return eE()(e,[{key:"_log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info";this.client.logger(r,"WSConnectionFallback:"+e,rW({tags:["connection_fallback","connection"]},t))}},{key:"_setState",value:function(e){this._log("_setState() - ".concat(e)),this.state===y.Connecting&&e===y.Connected&&this.client.dispatchEvent({type:"connection.changed",online:!0}),(e===y.Closed||e===y.Disconnected)&&this.client.dispatchEvent({type:"connection.changed",online:!1}),this.state=e}}]),e}(),rG=function(){var e,t,r,i,a,o;function s(e,t,r){ek()(this,s),eC()(this,"id",void 0),eC()(this,"data",void 0),eC()(this,"client",void 0),this.client=e,this.id=t,this.data=r}return eE()(s,[{key:"create",value:(e=e_()(eD().mark(function e(){var t,r,i,a,o,s,l,u,d,p;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d={id:this.id,message_template:null===(t=this.data)||void 0===t?void 0:t.message_template,segment_ids:null===(r=this.data)||void 0===r?void 0:r.segment_ids,sender_id:null===(i=this.data)||void 0===i?void 0:i.sender_id,channel_template:null===(a=this.data)||void 0===a?void 0:a.channel_template,create_channels:null===(o=this.data)||void 0===o?void 0:o.create_channels,description:null===(s=this.data)||void 0===s?void 0:s.description,name:null===(l=this.data)||void 0===l?void 0:l.name,user_ids:null===(u=this.data)||void 0===u?void 0:u.user_ids},e.next=3,this.client.createCampaign(d);case 3:return p=e.sent,this.id=p.campaign.id,this.data=p.campaign,e.abrupt("return",p);case 7:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"verifyCampaignId",value:function(){if(!this.id)throw Error("Campaign id is missing. Either create the campaign using campaign.create() or set the id during instantiation - const campaign = client.campaign(id)")}},{key:"start",value:(t=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifyCampaignId(),e.next=3,this.client.startCampaign(this.id,t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"update",value:(r=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifyCampaignId(),e.abrupt("return",this.client.updateCampaign(this.id,t));case 2:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"delete",value:(i=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifyCampaignId(),e.next=3,this.client.deleteCampaign(this.id);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"stop",value:(a=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifyCampaignId(),e.abrupt("return",this.client.stopCampaign(this.id));case 2:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"get",value:(o=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifyCampaignId(),e.abrupt("return",this.client.getCampaign(this.id));case 2:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})}]),s}(),rY=function(){var e,t,r,i,a,o,s,l;function u(e,t,r,i){ek()(this,u),eC()(this,"type",void 0),eC()(this,"id",void 0),eC()(this,"client",void 0),eC()(this,"data",void 0),this.client=e,this.type=t,this.id=r,this.data=i}return eE()(u,[{key:"create",value:(e=e_()(eD().mark(function e(){var t,r,i,a,o,s;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s={name:null===(t=this.data)||void 0===t?void 0:t.name,filter:null===(r=this.data)||void 0===r?void 0:r.filter,description:null===(i=this.data)||void 0===i?void 0:i.description,all_sender_channels:null===(a=this.data)||void 0===a?void 0:a.all_sender_channels,all_users:null===(o=this.data)||void 0===o?void 0:o.all_users},e.abrupt("return",this.client.createSegment(this.type,this.id,s));case 2:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"verifySegmentId",value:function(){if(!this.id)throw Error("Segment id is missing. Either create the segment using segment.create() or set the id during instantiation - const segment = client.segment(id)")}},{key:"get",value:(t=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifySegmentId(),e.abrupt("return",this.client.getSegment(this.id));case 2:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"update",value:(r=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifySegmentId(),e.abrupt("return",this.client.updateSegment(this.id,t));case 2:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"addTargets",value:(i=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifySegmentId(),e.abrupt("return",this.client.addSegmentTargets(this.id,t));case 2:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"removeTargets",value:(a=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifySegmentId(),e.abrupt("return",this.client.removeSegmentTargets(this.id,t));case 2:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"delete",value:(o=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifySegmentId(),e.abrupt("return",this.client.deleteSegment(this.id));case 2:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"targetExists",value:(s=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.verifySegmentId(),e.abrupt("return",this.client.segmentTargetExists(this.id,t));case 2:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"queryTargets",value:(l=e_()(eD().mark(function e(){var t,r,i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1&&void 0!==a[1]?a[1]:[],i=a.length>2&&void 0!==a[2]?a[2]:{},this.verifySegmentId(),e.abrupt("return",this.client.querySegmentTargets(this.id,t,r,i));case 5:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})}]),u}(),rK=function(e){n5()(i,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=re()(i);return e=t?Reflect.construct(r,arguments,re()(this).constructor):r.apply(this,arguments),n9()(this,e)});function i(){var e;ek()(this,i);for(var t=arguments.length,a=Array(t),o=0;oe.length)&&(t=e.length);for(var r=0,i=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}(d);try{for(m.s();!(f=m.n()).done;){var g=f.value;this.read[g.user.id]=rX(rX({},g),{},{last_read:new Date(g.last_read)})}}catch(e){m.e(e)}finally{m.f()}}this.data=p}return eE()(e,[{key:"getClient",value:function(){return this._client}},{key:"addReply",value:function(e){if(e.parent_id!==this.message.id)throw Error("Message does not belong to this thread");this.latestReplies=r_(this.latestReplies,ry(e),!0)}},{key:"updateReply",value:function(e){this.latestReplies=this.latestReplies.map(function(t){return t.id===e.id?ry(e):t})}},{key:"updateMessageOrReplyIfExists",value:function(e){if((e.parent_id||e.id===this.message.id)&&(!e.parent_id||e.parent_id===this.message.id)){if(e.parent_id&&e.parent_id===this.message.id){this.updateReply(e);return}e.parent_id||e.id!==this.message.id||(this.message=ry(e))}}},{key:"addReaction",value:function(e,t,r){var i=this;t&&(this.latestReplies=this.latestReplies.map(function(a){return a.id===t.id?ry(i._channel.state.addReaction(e,t,r)):a}))}},{key:"removeReaction",value:function(e,t){var r=this;t&&(this.latestReplies=this.latestReplies.map(function(i){return i.id===t.id?ry(r._channel.state.removeReaction(e,t)):i}))}}]),e}(),r1=["created_at","updated_at","last_active","online"],r2=["params","headers"];function r3(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return r4(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r4(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function r4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r3&&void 0!==d[3]?d[3]:{},e.next=3,u.tokenManager.tokenReady();case 3:o=u._enrichAxiosOptions(a),e.prev=4,u._logApiRequest(t,r,i,o),e.t0=t,e.next="get"===e.t0?9:"delete"===e.t0?13:"post"===e.t0?17:"postForm"===e.t0?21:"put"===e.t0?25:"patch"===e.t0?29:"options"===e.t0?33:37;break;case 9:return e.next=11,u.axiosInstance.get(r,o);case 11:case 15:case 19:case 23:case 27:case 31:case 35:return s=e.sent,e.abrupt("break",38);case 13:return e.next=15,u.axiosInstance.delete(r,o);case 17:return e.next=19,u.axiosInstance.post(r,i,o);case 21:return e.next=23,u.axiosInstance.postForm(r,i,o);case 25:return e.next=27,u.axiosInstance.put(r,i,o);case 29:return e.next=31,u.axiosInstance.patch(r,i,o);case 33:return e.next=35,u.axiosInstance.options(r,o);case 37:throw Error("Invalid request type");case 38:return u._logApiResponse(t,r,s),u.consecutiveFailures=0,e.abrupt("return",u.handleResponse(s));case 43:if(e.prev=43,e.t1=e.catch(4),e.t1.client_request_id=null===(l=o.headers)||void 0===l?void 0:l["x-client-request-id"],u._logApiError(t,r,e.t1),u.consecutiveFailures+=1,!e.t1.response){e.next=60;break}if(!(e.t1.response.data.code===rd.TOKEN_EXPIRED&&!u.tokenManager.isStatic())){e.next=57;break}if(!(u.consecutiveFailures>1)){e.next=53;break}return e.next=53,rc(rf(u.consecutiveFailures));case 53:return u.tokenManager.loadToken(),e.next=56,u.doAxiosRequest(t,r,i,a);case 56:return e.abrupt("return",e.sent);case 57:return e.abrupt("return",u.handleResponse(e.t1.response));case 60:throw e.t1;case 61:case"end":return e.stop()}},e,null,[[4,43]])})),function(e,t,r){return s.apply(this,arguments)})),eC()(this,"dispatchEvent",function(e){e.received_at||(e.received_at=new Date);var t=u._handleClientEvent(e),r=e.cid,i=r?u.activeChannels[r]:void 0;i&&i._handleChannelEvent(e),u._callClientListeners(e),i&&i._callChannelListeners(e),t.forEach(function(e){return e()})}),eC()(this,"handleEvent",function(e){var t=JSON.parse(e.data);u.dispatchEvent(t)}),eC()(this,"_updateMemberWatcherReferences",function(e){var t=u.state.userChannelReferences[e.id]||{};for(var r in t){var i=u.activeChannels[r];null!=i&&i.state&&(i.state.members[e.id]&&(i.state.members[e.id].user=e),i.state.watchers[e.id]&&(i.state.watchers[e.id]=e),i.state.read[e.id]&&(i.state.read[e.id].user=e))}}),eC()(this,"_updateUserReferences",this._updateMemberWatcherReferences),eC()(this,"_updateUserMessageReferences",function(e){var t=u.state.userChannelReferences[e.id]||{};for(var r in t){var i=u.activeChannels[r];if(i){var a=i.state;null==a||a.updateUserMessages(e)}}}),eC()(this,"_deleteUserMessageReference",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=u.state.userChannelReferences[e.id]||{};for(var i in r){var a=u.activeChannels[i].state;null==a||a.deleteUserMessages(e,t)}}),eC()(this,"_handleUserEvent",function(e){if(e.user){if("user.presence.changed"===e.type||"user.updated"===e.type){if(e.user.id===u.userID){var t=r5({},u.user||{}),r=r5({},u._user||{});for(var i in u.user)i in e.user||({channel_mutes:!0,devices:!0,mutes:!0,total_unread_count:!0,unread_channels:!0,unread_count:!0,unread_threads:!0,invisible:!0,privacy_settings:!0,roles:!0})[i]||(delete t[i],delete r[i]);for(var a in e.user)r&&a in r&&(r[a]=e.user[a]);u._user=r5({},r),u.user=r5(r5({},t),e.user)}u.state.updateUser(e.user),u._updateMemberWatcherReferences(e.user)}"user.updated"===e.type&&u._updateUserMessageReferences(e.user),"user.deleted"===e.type&&e.user.deleted_at&&(e.mark_messages_deleted||e.hard_delete)&&u._deleteUserMessageReference(e.user,e.hard_delete)}}),eC()(this,"_callClientListeners",function(e){var t=[];u.listeners.all&&t.push.apply(t,eb()(u.listeners.all)),u.listeners[e.type]&&t.push.apply(t,eb()(u.listeners[e.type]));for(var r=0;r0&&(a.data=r,a._data=r),a}var o=new rD(u,e,t,r);return u.activeChannels[o.cid]=o,o}),eC()(this,"updateUsers",this.upsertUsers),eC()(this,"updateUser",this.upsertUser),eC()(this,"_unblockMessage",this.unblockMessage),eC()(this,"markAllRead",this.markChannelsRead),eC()(this,"_isUsingServerAuth",function(){return!!u.secret}),eC()(this,"_buildWSPayload",function(e){return JSON.stringify({user_id:u.userID,user_details:u._user,device:u.options.device,client_request_id:e})}),this.key=e,this.listeners={},this.state=new rT,this.mutedChannels=[],this.mutedUsers=[],t&&r8(t)&&(this.secret=t);var d=r||(t&&!r8(t)?t:{});this.browser=void 0!==d.browser&&d.browser,this.node=!this.browser,this.options=r5({timeout:3e3,withCredentials:!1,warmUp:!1,recoverStateOnReconnect:!0},d),this.node&&!this.options.httpsAgent&&(this.options.httpsAgent=new(tV()).Agent({keepAlive:!0,keepAliveMsecs:3e3})),this.axiosInstance=nY.create(this.options),this.setBaseURL(this.options.baseURL||"https://chat.stream-io-api.com"),"undefined"!=typeof process&&process.env.STREAM_LOCAL_TEST_RUN&&this.setBaseURL("http://localhost:3030"),"undefined"!=typeof process&&process.env.STREAM_LOCAL_TEST_HOST&&this.setBaseURL("http://"+process.env.STREAM_LOCAL_TEST_HOST),this.wsConnection=null,this.wsPromise=null,this.setUserPromise=null,this.activeChannels={},this.configs={},this.anonymous=!1,this.persistUserOnConnectionFailure=null===(l=this.options)||void 0===l?void 0:l.persistUserOnConnectionFailure,this.tokenManager=new rz(this.secret),this.consecutiveFailures=0,this.insightMetrics=new rR,this.defaultWSTimeoutWithFallback=6e3,this.defaultWSTimeout=15e3,this.axiosInstance.defaults.paramsSerializer=rb,this.logger=ru(d.logger)?d.logger:function(){return null},this.recoverStateOnReconnect=this.options.recoverStateOnReconnect}return eE()(tr,[{key:"devToken",value:function(e){var t;return["eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",(t=JSON.stringify({user_id:e}),(0,eu.JQ)(new Uint8Array(function(e,t){var r=[];if(rr(e)&&t&&rr(e)){for(var i=0,a=e.length;i1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/check_push",r5(r5(r5(r5(r5(r5(r5({user_id:t},r.messageID?{message_id:r.messageID}:{}),r.apnTemplate?{apn_template:r.apnTemplate}:{}),r.firebaseTemplate?{firebase_template:r.firebaseTemplate}:{}),r.firebaseDataTemplate?{firebase_data_template:r.firebaseDataTemplate}:{}),r.skipDevices?{skip_devices:!0}:{}),r.pushProviderName?{push_provider_name:r.pushProviderName}:{}),r.pushProviderType?{push_provider_type:r.pushProviderType}:{}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return o.apply(this,arguments)})},{key:"testSQSSettings",value:(s=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post(this.baseURL+"/check_sqs",t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"testSNSSettings",value:(l=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post(this.baseURL+"/check_sns",t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"setGuestUser",value:(u=e_()(eD().mark(function e(t){var r,i,a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.anonymous=!0,e.prev=1,e.next=4,this.post(this.baseURL+"/guest",{user:t});case 4:r=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),this.anonymous=!1,e.t0;case 11:return this.anonymous=!1,(i=r.user).created_at,i.updated_at,i.last_active,i.online,a=eg()(i,r1),e.next=15,this.connectUser(a,r.access_token);case 15:return e.abrupt("return",e.sent);case 16:case"end":return e.stop()}},e,this,[[1,7]])})),function(e){return u.apply(this,arguments)})},{key:"createToken",value:function(e,t,r){if(null==this.secret)throw Error("tokens can only be created server-side using the API Secret");var i={};return t&&(i.exp=t),r&&(i.iat=r),rB(this.secret,e,i,{})}},{key:"on",value:function(e,t){var r=this,i=t?e:"all",a=t||e;return i in this.listeners||(this.listeners[i]=[]),this.logger("info","Attaching listener for ".concat(i," event"),{tags:["event","client"]}),this.listeners[i].push(a),{unsubscribe:function(){r.logger("info","Removing listener for ".concat(i," event"),{tags:["event","client"]}),r.listeners[i]=r.listeners[i].filter(function(e){return e!==a})}}}},{key:"off",value:function(e,t){var r=t?e:"all",i=t||e;r in this.listeners||(this.listeners[r]=[]),this.logger("info","Removing listener for ".concat(r," event"),{tags:["event","client"]}),this.listeners[r]=this.listeners[r].filter(function(e){return e!==i})}},{key:"_logApiRequest",value:function(e,t,r,i){this.logger("info","client: ".concat(e," - Request - ").concat(t),{tags:["api","api_request","client"],url:t,payload:r,config:i})}},{key:"_logApiResponse",value:function(e,t,r){this.logger("info","client:".concat(e," - Response - url: ").concat(t," > status ").concat(r.status),{tags:["api","api_response","client"],url:t,response:r})}},{key:"_logApiError",value:function(e,t,r){this.logger("error","client:".concat(e," - Error - url: ").concat(t),{tags:["api","api_response","client"],url:t,error:r})}},{key:"get",value:function(e,t){return this.doAxiosRequest("get",e,null,{params:t})}},{key:"put",value:function(e,t){return this.doAxiosRequest("put",e,t)}},{key:"post",value:function(e,t){return this.doAxiosRequest("post",e,t)}},{key:"patch",value:function(e,t){return this.doAxiosRequest("patch",e,t)}},{key:"delete",value:function(e,t){return this.doAxiosRequest("delete",e,null,{params:t})}},{key:"sendFile",value:function(e,t,r,i,a){var o,s,l,u,d=(o=t,s=r,l=i||"multipart/form-data",u=new(to()),null!==o&&"object"===eh()(o)&&(o.readable||"function"==typeof o._read)||null!=o&&null!=o.constructor&&"function"==typeof o.constructor.isBuffer&&o.constructor.isBuffer(o)?s?u.append("file",o,s):u.append("file",o):u.append("file",{uri:o,name:s||o.split("/").reverse()[0],contentType:l||void 0,type:l||void 0}),u);return null!=a&&d.append("user",JSON.stringify(a)),this.doAxiosRequest("postForm",e,d,{headers:d.getHeaders?d.getHeaders():{},config:{timeout:0,maxContentLength:1/0,maxBodyLength:1/0}})}},{key:"errorFromResponse",value:function(e){var t;return t=new rK("StreamChat error HTTP code: ".concat(e.status)),e.data&&e.data.code&&((t=Error("StreamChat error code ".concat(e.data.code,": ").concat(e.data.message))).code=e.data.code),t.response=e,t.status=e.status,t}},{key:"handleResponse",value:function(e){var t=e.data;if(!e.status||e.status<200||300<=e.status)throw this.errorFromResponse(e);return t}},{key:"_handleClientEvent",value:function(e){var t,r,i,a=this,o=[];return this.logger("info","client:_handleClientEvent - Received event of type { ".concat(e.type," }"),{tags:["event","client"],event:e}),("user.presence.changed"===e.type||"user.updated"===e.type||"user.deleted"===e.type)&&this._handleUserEvent(e),"health.check"===e.type&&e.me&&(this.user=e.me,this.state.updateUser(e.me),this.mutedChannels=e.me.channel_mutes,this.mutedUsers=e.me.mutes),e.channel&&"notification.message_new"===e.type&&this._addChannelConfig(e.channel),"notification.channel_mutes_updated"===e.type&&null!==(r=e.me)&&void 0!==r&&r.channel_mutes&&(this.mutedChannels=e.me.channel_mutes),"notification.mutes_updated"===e.type&&null!==(i=e.me)&&void 0!==i&&i.mutes&&(this.mutedUsers=e.me.mutes),"notification.mark_read"===e.type&&0===e.unread_channels&&Object.keys(this.activeChannels).forEach(function(e){return a.activeChannels[e].state.unreadCount=0}),("channel.deleted"===e.type||"notification.channel_deleted"===e.type)&&e.cid&&(this.state.deleteAllChannelReference(e.cid),null===(t=this.activeChannels[e.cid])||void 0===t||t._disconnect(),o.push(function(){e.cid&&delete a.activeChannels[e.cid]})),o}},{key:"_muteStatus",value:function(e){for(var t,r=0;rnew Date().getTime(),createdAt:a.created_at?new Date(a.created_at):new Date,expiresAt:a.expires?new Date(a.expires):null};break}}return t||{muted:!1,createdAt:null,expiresAt:null}}},{key:"connect",value:(d=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!this.userID||!this._user)){e.next=2;break}throw Error("Call connectUser or connectAnonymousUser before starting the connection");case 2:if(this.wsBaseURL){e.next=4;break}throw Error("Websocket base url not set");case 4:if(this.clientID){e.next=6;break}throw Error("clientID is not set");case 6:if(!this.wsConnection&&(this.options.warmUp||this.options.enableInsights)&&this._sayHi(),this.options.wsConnection&&this.node?(this.options.wsConnection.setClient(this),this.wsConnection=this.options.wsConnection):this.wsConnection=new rI({client:this}),e.prev=8,!this.wsFallback){e.next=13;break}return e.next=12,this.wsFallback.connect();case 12:case 15:case 28:return e.abrupt("return",e.sent);case 13:return e.next=15,this.wsConnection.connect(this.options.enableWSFallback?this.defaultWSTimeoutWithFallback:this.defaultWSTimeout);case 18:if(e.prev=18,e.t0=e.catch(8),!(this.options.enableWSFallback&&function(e){if("boolean"==typeof e.isWSFailure)return e.isWSFailure;try{return JSON.parse(e.message).isWSFailure}catch(e){return!1}}(e.t0)&&function(){var e="undefined"!=typeof navigator?navigator:void 0;return e?"boolean"!=typeof e.onLine||e.onLine:(console.warn("isOnline failed to access window.navigator and assume browser is online"),!0)}())){e.next=29;break}return this.logger("info","client:connect() - WS failed, fallback to longpoll",{tags:["connection","client"]}),this.dispatchEvent({type:"transport.changed",mode:"longpoll"}),this.wsConnection._destroyCurrentWSConnection(),this.wsConnection.disconnect().then(),this.wsFallback=new r$({client:this}),e.next=28,this.wsFallback.connect();case 29:throw e.t0;case 30:case"end":return e.stop()}},e,this,[[8,18]])})),function(){return d.apply(this,arguments)})},{key:"_sayHi",value:function(){var e=this,t=rm();this.doAxiosRequest("get",this.baseURL+"/hi",null,{headers:{"x-client-request-id":t}}).catch(function(r){e.options.enableInsights&&rM("http_hi_failed",{api_key:e.key,err:r,client_request_id:t})})}},{key:"queryUsers",value:(p=e_()(eD().mark(function e(t){var r,i,a,o,s=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:[],i=s.length>2&&void 0!==s[2]?s[2]:{},a={presence:!1},e.next=5,this.wsPromise;case 5:return this._hasConnectionID()||(a.presence=!1),e.next=8,this.get(this.baseURL+"/users",{payload:r5(r5({filter_conditions:t,sort:rp(r)},a),i)});case 8:return o=e.sent,this.state.updateUsers(o.users),e.abrupt("return",o);case 11:case"end":return e.stop()}},e,this)})),function(e){return p.apply(this,arguments)})},{key:"queryBannedUsers",value:(f=e_()(eD().mark(function e(){var t,r,i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1&&void 0!==a[1]?a[1]:[],i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=5,this.get(this.baseURL+"/query_banned_users",{payload:r5({filter_conditions:t,sort:rp(r)},i)});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"queryMessageFlags",value:(m=e_()(eD().mark(function e(){var t,r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=4,this.get(this.baseURL+"/moderation/flags/message",{payload:r5({filter_conditions:t},r)});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"queryChannels",value:(g=e_()(eD().mark(function e(t){var r,i,a,o,s,l,u=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:[],i=u.length>2&&void 0!==u[2]?u[2]:{},a=u.length>3&&void 0!==u[3]?u[3]:{},o={state:!0,watch:!0,presence:!1},e.next=6,this.wsPromise;case 6:return this._hasConnectionID()||(o.watch=!1),s=r5(r5({filter_conditions:t,sort:rp(r)},o),i),e.next=10,this.post(this.baseURL+"/channels",s);case 10:return l=e.sent,this.dispatchEvent({type:"channels.queried",queriedChannels:{channels:l.channels,isLatestMessageSet:!0}}),e.abrupt("return",this.hydrateActiveChannels(l.channels,a));case 13:case"end":return e.stop()}},e,this)})),function(e){return g.apply(this,arguments)})},{key:"queryReactions",value:(v=e_()(eD().mark(function e(t,r){var i,a,o,s=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:[],a=s.length>3&&void 0!==s[3]?s[3]:{},e.next=4,this.wsPromise;case 4:return o=r5({filter:r,sort:rp(i)},a),e.next=7,this.post(this.baseURL+"/messages/"+t+"/reactions",o);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}},e,this)})),function(e,t){return v.apply(this,arguments)})},{key:"hydrateActiveChannels",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.skipInitialization,a=r.offlineMode,o=void 0!==a&&a,s=r3(t);try{for(s.s();!(e=s.n()).done;){var l=e.value;this._addChannelConfig(l.channel)}}catch(e){s.e(e)}finally{s.f()}var u,d=[],p=r3(t);try{for(p.s();!(u=p.n()).done;){var f=u.value,m=this.channel(f.channel.type,f.channel.id);m.data=f.channel,m.offlineMode=o,m.initialized=!o,void 0===i?m._initializeState(f,"latest"):i.includes(f.channel.id)||(m.state.clearMessages(),m._initializeState(f,"latest")),d.push(m)}}catch(e){p.e(e)}finally{p.f()}return d}},{key:"search",value:(b=e_()(eD().mark(function e(t,r){var i,a,o=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((i=o.length>2&&void 0!==o[2]?o[2]:{}).offset&&i.next)){e.next=3;break}throw Error("Cannot specify offset with next");case 3:if(a=r5(r5({filter_conditions:t},i),{},{sort:i.sort?rp(i.sort):void 0}),"string"!=typeof r){e.next=8;break}a.query=r,e.next=13;break;case 8:if("object"!==eh()(r)){e.next=12;break}a.message_filter_conditions=r,e.next=13;break;case 12:throw Error("Invalid type ".concat(eh()(r)," for query parameter"));case 13:return e.next=15,this.wsPromise;case 15:return e.next=17,this.get(this.baseURL+"/search",{payload:a});case 17:return e.abrupt("return",e.sent);case 18:case"end":return e.stop()}},e,this)})),function(e,t){return b.apply(this,arguments)})},{key:"setLocalDevice",value:function(e){var t,r,i;if(null!==(t=this.wsConnection)&&void 0!==t&&t.isConnecting&&this.wsPromise||(null!==(r=this.wsConnection)&&void 0!==r&&r.isHealthy||null!==(i=this.wsFallback)&&void 0!==i&&i.isHealthy())&&this._hasConnectionID())throw Error("you can only set device before opening a websocket connection");this.options.device=e}},{key:"addDevice",value:(y=e_()(eD().mark(function e(t,r,i,a){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/devices",r5(r5({id:t,push_provider:r},null!=i?{user_id:i}:{}),null!=a?{push_provider_name:a}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t,r,i){return y.apply(this,arguments)})},{key:"getDevices",value:(_=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/devices",t?{user_id:t}:{});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return _.apply(this,arguments)})},{key:"getUnreadCount",value:(w=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/unread",t?{user_id:t}:{});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return w.apply(this,arguments)})},{key:"getUnreadCountBatch",value:(k=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/unread_batch",{user_ids:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)})},{key:"removeDevice",value:(x=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete(this.baseURL+"/devices",r5({id:t},r?{user_id:r}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return x.apply(this,arguments)})},{key:"getRateLimits",value:(E=e_()(eD().mark(function e(t){var r,i,a,o,s,l;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).serverSide,a=r.web,o=r.android,s=r.ios,l=r.endpoints,e.abrupt("return",this.get(this.baseURL+"/rate_limits",{server_side:i,web:a,android:o,ios:s,endpoints:l?l.join(","):void 0}));case 2:case"end":return e.stop()}},e,this)})),function(e){return E.apply(this,arguments)})},{key:"_addChannelConfig",value:function(e){var t=e.cid,r=e.config;this.configs[t]=r}},{key:"channel",value:function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.userID&&!this._isUsingServerAuth())throw Error("Call connectUser or connectAnonymousUser before creating a channel");if(~e.indexOf(":"))throw Error("Invalid channel group ".concat(e,", can't contain the : character"));return t&&"object"===eh()(t)?this.getChannelByMembers(e,t):!t&&"object"===eh()(i)&&null!==(r=i.members)&&void 0!==r&&r.length?this.getChannelByMembers(e,i):t?this.getChannelById(e,t,i):new rD(this,e,void 0,i)}},{key:"partialUpdateUser",value:(F=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.partialUpdateUsers([t]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return F.apply(this,arguments)})},{key:"upsertUsers",value:(C=e_()(eD().mark(function e(t){var r,i,a,o;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r={},i=r3(t),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=11;break}if((o=a.value).id){e.next=8;break}throw Error("User ID is required when updating a user");case 8:r[o.id]=o;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),i.e(e.t0);case 16:return e.prev=16,i.f(),e.finish(16);case 19:return e.next=21,this.post(this.baseURL+"/users",{users:r});case 21:return e.abrupt("return",e.sent);case 22:case"end":return e.stop()}},e,this,[[2,13,16,19]])})),function(e){return C.apply(this,arguments)})},{key:"upsertUser",value:function(e){return this.upsertUsers([e])}},{key:"partialUpdateUsers",value:(S=e_()(eD().mark(function e(t){var r,i;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=r3(t),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=9;break}if(i.value.id){e.next=7;break}throw Error("User ID is required when updating a user");case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),r.e(e.t0);case 14:return e.prev=14,r.f(),e.finish(14);case 17:return e.next=19,this.patch(this.baseURL+"/users",{users:t});case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}},e,this,[[1,11,14,17]])})),function(e){return S.apply(this,arguments)})},{key:"deleteUser",value:(D=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete(this.baseURL+"/users/".concat(t),r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return D.apply(this,arguments)})},{key:"restoreUsers",value:(j=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/restore",{user_ids:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return j.apply(this,arguments)})},{key:"reactivateUser",value:(T=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/".concat(t,"/reactivate"),r5({},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return T.apply(this,arguments)})},{key:"reactivateUsers",value:(O=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/reactivate",r5({user_ids:t},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return O.apply(this,arguments)})},{key:"deactivateUser",value:(P=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/".concat(t,"/deactivate"),r5({},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return P.apply(this,arguments)})},{key:"deactivateUsers",value:(R=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/deactivate",r5({user_ids:t},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return R.apply(this,arguments)})},{key:"exportUser",value:(M=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/users/".concat(t,"/export"),r5({},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return M.apply(this,arguments)})},{key:"banUser",value:(L=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/moderation/ban",r5({target_user_id:t},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return L.apply(this,arguments)})},{key:"unbanUser",value:(A=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete(this.baseURL+"/moderation/ban",r5({target_user_id:t},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return A.apply(this,arguments)})},{key:"shadowBan",value:(I=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.banUser(t,r5({shadow:!0},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return I.apply(this,arguments)})},{key:"removeShadowBan",value:(N=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.unbanUser(t,r5({shadow:!0},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return N.apply(this,arguments)})},{key:"blockUser",value:(B=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/block",r5({blocked_user_id:t},r?{user_id:r}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return B.apply(this,arguments)})},{key:"getBlockedUsers",value:(U=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/users/block",r5({},t?{user_id:t}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return U.apply(this,arguments)})},{key:"unBlockUser",value:(z=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/users/unblock",r5({blocked_user_id:t},r?{user_id:r}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return z.apply(this,arguments)})},{key:"muteUser",value:(H=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this.post(this.baseURL+"/moderation/mute",r5(r5({target_id:t},r?{user_id:r}:{}),i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return H.apply(this,arguments)})},{key:"unmuteUser",value:(q=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/moderation/unmute",r5({target_id:t},r?{user_id:r}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return q.apply(this,arguments)})},{key:"userMuteStatus",value:function(e){if(!this.user||!this.wsPromise)throw Error("Make sure to await connectUser() first.");for(var t=0;t1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/moderation/flag",r5({target_message_id:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return V.apply(this,arguments)})},{key:"flagUser",value:(W=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/moderation/flag",r5({target_user_id:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return W.apply(this,arguments)})},{key:"unflagMessage",value:($=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/moderation/unflag",r5({target_message_id:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)})},{key:"unflagUser",value:(G=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/moderation/unflag",r5({target_user_id:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return G.apply(this,arguments)})},{key:"getCallToken",value:(Y=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/calls/".concat(t),r5({},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return Y.apply(this,arguments)})},{key:"_queryFlags",value:(K=e_()(eD().mark(function e(){var t,r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=4,this.post(this.baseURL+"/moderation/flags",r5({filter_conditions:t},r));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return K.apply(this,arguments)})},{key:"_queryFlagReports",value:(Z=e_()(eD().mark(function e(){var t,r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=4,this.post(this.baseURL+"/moderation/reports",r5({filter_conditions:t},r));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return Z.apply(this,arguments)})},{key:"_reviewFlagReport",value:(J=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this.patch(this.baseURL+"/moderation/reports/".concat(t),r5({review_result:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return J.apply(this,arguments)})},{key:"unblockMessage",value:(X=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/moderation/unblock_message",r5({target_message_id:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return X.apply(this,arguments)})},{key:"markChannelsRead",value:(Q=e_()(eD().mark(function e(){var t,r=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post(this.baseURL+"/channels/read",r5({},t));case 3:case"end":return e.stop()}},e,this)})),function(){return Q.apply(this,arguments)})},{key:"createCommand",value:function(e){return this.post(this.baseURL+"/commands",e)}},{key:"getCommand",value:function(e){return this.get(this.baseURL+"/commands/".concat(e))}},{key:"updateCommand",value:function(e,t){return this.put(this.baseURL+"/commands/".concat(e),t)}},{key:"deleteCommand",value:function(e){return this.delete(this.baseURL+"/commands/".concat(e))}},{key:"listCommands",value:function(){return this.get(this.baseURL+"/commands")}},{key:"createChannelType",value:function(e){var t=ep()({},{commands:["all"]},e);return this.post(this.baseURL+"/channeltypes",t)}},{key:"getChannelType",value:function(e){return this.get(this.baseURL+"/channeltypes/".concat(e))}},{key:"updateChannelType",value:function(e,t){return this.put(this.baseURL+"/channeltypes/".concat(e),t)}},{key:"deleteChannelType",value:function(e){return this.delete(this.baseURL+"/channeltypes/".concat(e))}},{key:"listChannelTypes",value:function(){return this.get(this.baseURL+"/channeltypes")}},{key:"translateMessage",value:(ee=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/messages/".concat(t,"/translate"),{language:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return ee.apply(this,arguments)})},{key:"_normalizeExpiration",value:function(e){var t=null;if("number"==typeof e){var r=new Date;r.setSeconds(r.getSeconds()+e),t=r.toISOString()}else r8(e)?t=e:e instanceof Date&&(t=e.toISOString());return t}},{key:"_validateAndGetMessageId",value:function(e,t){var r;if("string"==typeof e)r=e;else{if(!e.id)throw Error(t);r=e.id}return r}},{key:"pinMessage",value:function(e,t,r,i){var a=this._validateAndGetMessageId(e,"Please specify the message id when calling unpinMessage");return this.partialUpdateMessage(a,{set:{pinned:!0,pin_expires:this._normalizeExpiration(t),pinned_at:this._normalizeExpiration(i)}},r)}},{key:"unpinMessage",value:function(e,t){var r=this._validateAndGetMessageId(e,"Please specify the message id when calling unpinMessage");return this.partialUpdateMessage(r,{set:{pinned:!1}},t)}},{key:"updateMessage",value:(et=e_()(eD().mark(function e(t,r,i){var a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.id){e.next=2;break}throw Error("Please specify the message id when calling updateMessage");case 2:return a=ep()({},t),delete a.id,["command","created_at","html","latest_reactions","own_reactions","quoted_message","reaction_counts","reply_count","type","updated_at","user","__html"].forEach(function(e){null!=a[e]&&delete a[e]}),null!=r&&(r8(r)?a.user_id=r:a.user={id:r.id}),Array.isArray(a.mentioned_users)&&!r8(a.mentioned_users[0])&&(a.mentioned_users=a.mentioned_users.map(function(e){return e.id})),e.next=10,this.post(this.baseURL+"/messages/".concat(t.id),r5({message:a},i));case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}},e,this)})),function(e,t,r){return et.apply(this,arguments)})},{key:"partialUpdateMessage",value:(en=e_()(eD().mark(function e(t,r,i,a){var o;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw Error("Please specify the message id when calling partialUpdateMessage");case 2:return o=i,null!=i&&r8(i)&&(o={id:i}),e.next=6,this.put(this.baseURL+"/messages/".concat(t),r5(r5(r5({},r),a),{},{user:o}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)})),function(e,t,r,i){return en.apply(this,arguments)})},{key:"deleteMessage",value:(er=e_()(eD().mark(function e(t,r){var i;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i={},r&&(i={hard:!0}),e.next=4,this.delete(this.baseURL+"/messages/".concat(t),i);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(e,t){return er.apply(this,arguments)})},{key:"undeleteMessage",value:(ei=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/messages/".concat(t,"/undelete"),{undeleted_by:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return ei.apply(this,arguments)})},{key:"getMessage",value:(ea=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/messages/".concat(encodeURIComponent(t)),r5({},r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return ea.apply(this,arguments)})},{key:"queryThreads",value:(eo=e_()(eD().mark(function e(t){var r,i,a=this;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r5({limit:10,participant_limit:10,reply_limit:3,watch:!0},t),e.next=3,this.post(this.baseURL+"/threads",r);case 3:return i=e.sent,e.abrupt("return",{threads:i.threads.map(function(e){return new r0(a,e)}),next:i.next});case 5:case"end":return e.stop()}},e,this)})),function(e){return eo.apply(this,arguments)})},{key:"getThread",value:(es=e_()(eD().mark(function e(t){var r,i,a,o=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.length>1&&void 0!==o[1]?o[1]:{},t){e.next=3;break}throw Error("Please specify the message id when calling partialUpdateThread");case 3:return i=r5({participant_limit:100,reply_limit:3,watch:!0},r),e.next=6,this.get(this.baseURL+"/threads/".concat(t),i);case 6:return a=e.sent,e.abrupt("return",new r0(this,a.thread));case 8:case"end":return e.stop()}},e,this)})),function(e){return es.apply(this,arguments)})},{key:"partialUpdateThread",value:(el=e_()(eD().mark(function e(t,r){var i,a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw Error("Please specify the message id when calling partialUpdateThread");case 2:i=["created_at","id","last_message_at","type","updated_at","user","reply_count","participants","channel"],e.t0=eD().keys(r5(r5({},r.set),r.unset));case 4:if((e.t1=e.t0()).done){e.next=10;break}if(a=e.t1.value,!i.includes(a)){e.next=8;break}throw Error("You cannot set ".concat(a," field on Thread object. ").concat(a," is reserved for server-side use. Please omit ").concat(a," from your set object."));case 8:e.next=4;break;case 10:return e.next=12,this.patch(this.baseURL+"/threads/".concat(t),r);case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}},e,this)})),function(e,t){return el.apply(this,arguments)})},{key:"getUserAgent",value:function(){return this.userAgent||"stream-chat-javascript-client-".concat(this.node?"node":"browser","-","8.37.0")}},{key:"setUserAgent",value:function(e){this.userAgent=e}},{key:"_enrichAxiosOptions",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{params:{},headers:{},config:{}},r=this._getToken(),i=null;null!==this.nextRequestAbortController&&(i=this.nextRequestAbortController.signal,this.nextRequestAbortController=null),null!==(e=t.headers)&&void 0!==e&&e["x-client-request-id"]||(t.headers=r5(r5({},t.headers),{},{"x-client-request-id":rm()}));var a=this.options.axiosRequestConfig||{},o=a.params,s=a.headers,l=eg()(a,r2);return r5(r5(r5({params:r5(r5({user_id:this.userID,connection_id:this._getConnectionID(),api_key:this.key},t.params),o||{}),headers:r5(r5(r5({},r?{Authorization:r}:void 0),{},{"stream-auth-type":this.getAuthType(),"X-Stream-Client":this.getUserAgent()},t.headers),s||{})},i?{signal:i}:{}),t.config),l||{})}},{key:"_getToken",value:function(){return!this.tokenManager||this.anonymous?null:this.tokenManager.getToken()}},{key:"_startCleaning",value:function(){var e=this;null==this.cleaningIntervalRef&&(this.cleaningIntervalRef=setInterval(function(){for(var t=0,r=Object.values(e.activeChannels);t2&&void 0!==arguments[2]?arguments[2]:{};return this.post("".concat(this.baseURL,"/sync"),r5({channel_cids:e,last_sync_at:t},r))}},{key:"sendUserCustomEvent",value:(ec=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("".concat(this.baseURL,"/users/").concat(t,"/event"),{event:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return ec.apply(this,arguments)})},{key:"createBlockList",value:function(e){return this.post("".concat(this.baseURL,"/blocklists"),e)}},{key:"listBlockLists",value:function(){return this.get("".concat(this.baseURL,"/blocklists"))}},{key:"getBlockList",value:function(e){return this.get("".concat(this.baseURL,"/blocklists/").concat(e))}},{key:"updateBlockList",value:function(e,t){return this.put("".concat(this.baseURL,"/blocklists/").concat(e),t)}},{key:"deleteBlockList",value:function(e){return this.delete("".concat(this.baseURL,"/blocklists/").concat(e))}},{key:"exportChannels",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=r5({channels:e},t);return this.post("".concat(this.baseURL,"/export_channels"),r)}},{key:"exportUsers",value:function(e){return this.post("".concat(this.baseURL,"/export/users"),e)}},{key:"exportChannel",value:function(e,t){return this.exportChannels([e],t)}},{key:"getExportChannelStatus",value:function(e){return this.get("".concat(this.baseURL,"/export_channels/").concat(e))}},{key:"campaign",value:function(e,t){return e&&"object"===eh()(e)?new rG(this,null,e):new rG(this,e,t)}},{key:"segment",value:function(e,t,r){return"string"==typeof t?new rY(this,e,t,r):new rY(this,e,null,t)}},{key:"validateServerSideAuth",value:function(){if(!this.secret)throw Error("Campaigns is a server-side only feature. Please initialize the client with a secret to use this feature.")}},{key:"createSegment",value:(ed=e_()(eD().mark(function e(t,r,i){var a;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),a=r5({id:r,type:t},i),e.abrupt("return",this.post(this.baseURL+"/segments",a));case 3:case"end":return e.stop()}},e,this)})),function(e,t,r){return ed.apply(this,arguments)})},{key:"createUserSegment",value:(ef=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.createSegment("user",t,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return ef.apply(this,arguments)})},{key:"createChannelSegment",value:(em=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.createSegment("channel",t,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return em.apply(this,arguments)})},{key:"getSegment",value:(ev=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.get(this.baseURL+"/segments/".concat(t)));case 2:case"end":return e.stop()}},e,this)})),function(e){return ev.apply(this,arguments)})},{key:"updateSegment",value:(ey=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.put(this.baseURL+"/segments/".concat(t),r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return ey.apply(this,arguments)})},{key:"addSegmentTargets",value:(ew=e_()(eD().mark(function e(t,r){var i;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),i={target_ids:r},e.abrupt("return",this.post(this.baseURL+"/segments/".concat(t,"/addtargets"),i));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return ew.apply(this,arguments)})},{key:"querySegmentTargets",value:(ex=e_()(eD().mark(function e(t){var r,i,a,o=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},i=o.length>2&&void 0!==o[2]?o[2]:[],a=o.length>3&&void 0!==o[3]?o[3]:{},this.validateServerSideAuth(),e.abrupt("return",this.post(this.baseURL+"/segments/".concat(t,"/targets/query"),r5({filter:r||{},sort:i||[]},a)));case 5:case"end":return e.stop()}},e,this)})),function(e){return ex.apply(this,arguments)})},{key:"removeSegmentTargets",value:(eF=e_()(eD().mark(function e(t,r){var i;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),i={target_ids:r},e.abrupt("return",this.post(this.baseURL+"/segments/".concat(t,"/deletetargets"),i));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return eF.apply(this,arguments)})},{key:"querySegments",value:(eS=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},this.validateServerSideAuth(),e.abrupt("return",this.post(this.baseURL+"/segments/query",r5({filter:t,sort:r},i)));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return eS.apply(this,arguments)})},{key:"deleteSegment",value:(ej=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.delete(this.baseURL+"/segments/".concat(t)));case 2:case"end":return e.stop()}},e,this)})),function(e){return ej.apply(this,arguments)})},{key:"segmentTargetExists",value:(eT=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.get(this.baseURL+"/segments/".concat(t,"/target/").concat(r)));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return eT.apply(this,arguments)})},{key:"createCampaign",value:(eO=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.post(this.baseURL+"/campaigns",r5({},t)));case 2:case"end":return e.stop()}},e,this)})),function(e){return eO.apply(this,arguments)})},{key:"getCampaign",value:(eP=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.get(this.baseURL+"/campaigns/".concat(t)));case 2:case"end":return e.stop()}},e,this)})),function(e){return eP.apply(this,arguments)})},{key:"startCampaign",value:(eR=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.post(this.baseURL+"/campaigns/".concat(t,"/start"),{scheduled_for:null==r?void 0:r.scheduledFor,stop_at:null==r?void 0:r.stopAt}));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return eR.apply(this,arguments)})},{key:"queryCampaigns",value:(eM=e_()(eD().mark(function e(t,r,i){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.next=3,this.post(this.baseURL+"/campaigns/query",r5({filter:t,sort:r},i||{}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t,r){return eM.apply(this,arguments)})},{key:"updateCampaign",value:(eL=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.put(this.baseURL+"/campaigns/".concat(t),r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return eL.apply(this,arguments)})},{key:"deleteCampaign",value:(eA=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.delete(this.baseURL+"/campaigns/".concat(t)));case 2:case"end":return e.stop()}},e,this)})),function(e){return eA.apply(this,arguments)})},{key:"stopCampaign",value:(eI=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateServerSideAuth(),e.abrupt("return",this.post(this.baseURL+"/campaigns/".concat(t,"/stop")));case 2:case"end":return e.stop()}},e,this)})),function(e){return eI.apply(this,arguments)})},{key:"enrichURL",value:(eN=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.get(this.baseURL+"/og",{url:t}));case 1:case"end":return e.stop()}},e,this)})),function(e){return eN.apply(this,arguments)})},{key:"getTask",value:(eB=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.get("".concat(this.baseURL,"/tasks/").concat(t)));case 1:case"end":return e.stop()}},e,this)})),function(e){return eB.apply(this,arguments)})},{key:"deleteChannels",value:(eU=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.post(this.baseURL+"/channels/delete",r5({cids:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return eU.apply(this,arguments)})},{key:"deleteUsers",value:(ez=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==(r=i.length>1&&void 0!==i[1]?i[1]:{}).user&&!["soft","hard","pruning"].includes(r.user))){e.next=3;break}throw Error("Invalid delete user options. user must be one of [soft hard pruning]");case 3:if(!(void 0!==r.conversations&&!["soft","hard"].includes(r.conversations))){e.next=5;break}throw Error("Invalid delete user options. conversations must be one of [soft hard]");case 5:if(!(void 0!==r.messages&&!["soft","hard","pruning"].includes(r.messages))){e.next=7;break}throw Error("Invalid delete user options. messages must be one of [soft hard pruning]");case 7:return e.next=9,this.post(this.baseURL+"/users/delete",r5({user_ids:t},r));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}},e,this)})),function(e){return ez.apply(this,arguments)})},{key:"_createImportURL",value:(eH=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/import_urls",{filename:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return eH.apply(this,arguments)})},{key:"_createImport",value:(eq=e_()(eD().mark(function e(t){var r,i=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{mode:"upsert"},e.next=3,this.post(this.baseURL+"/imports",r5({path:t},r));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return eq.apply(this,arguments)})},{key:"_getImport",value:(eV=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/imports/".concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return eV.apply(this,arguments)})},{key:"_listImports",value:(eW=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/imports",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return eW.apply(this,arguments)})},{key:"upsertPushProvider",value:(e$=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/push_providers",{push_provider:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return e$.apply(this,arguments)})},{key:"deletePushProvider",value:(eG=e_()(eD().mark(function e(t){var r,i;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.type,i=t.name,e.next=3,this.delete(this.baseURL+"/push_providers/".concat(r,"/").concat(i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e){return eG.apply(this,arguments)})},{key:"listPushProviders",value:(eY=e_()(eD().mark(function e(){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/push_providers");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(){return eY.apply(this,arguments)})},{key:"createAbortControllerForNextRequest",value:function(){return this.nextRequestAbortController=new AbortController}},{key:"commitMessage",value:(eK=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/messages/".concat(t,"/commit"));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return eK.apply(this,arguments)})},{key:"createPoll",value:(eZ=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/polls",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return eZ.apply(this,arguments)})},{key:"getPoll",value:(eJ=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/polls/".concat(t),r5({},r?{user_id:r}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return eJ.apply(this,arguments)})},{key:"updatePoll",value:(eX=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.put(this.baseURL+"/polls",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e){return eX.apply(this,arguments)})},{key:"partialUpdatePoll",value:(eQ=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.patch(this.baseURL+"/polls/".concat(t),r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return eQ.apply(this,arguments)})},{key:"deletePoll",value:(e0=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete(this.baseURL+"/polls/".concat(t),r5({},r?{user_id:r}:{}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return e0.apply(this,arguments)})},{key:"closePoll",value:(e1=e_()(eD().mark(function e(t){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.partialUpdatePoll(t,{set:{is_closed:!0}}));case 1:case"end":return e.stop()}},e,this)})),function(e){return e1.apply(this,arguments)})},{key:"createPollOption",value:(e2=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post(this.baseURL+"/polls/".concat(t,"/options"),r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return e2.apply(this,arguments)})},{key:"getPollOption",value:(e3=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(this.baseURL+"/polls/".concat(t,"/options/").concat(r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return e3.apply(this,arguments)})},{key:"updatePollOption",value:(e4=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.put(this.baseURL+"/polls/".concat(t,"/options"),r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return e4.apply(this,arguments)})},{key:"deletePollOption",value:(e6=e_()(eD().mark(function e(t,r){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete(this.baseURL+"/polls/".concat(t,"/options/").concat(r));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return e6.apply(this,arguments)})},{key:"castPollVote",value:(e5=e_()(eD().mark(function e(t,r,i){var a,o=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:{},e.next=3,this.post(this.baseURL+"/messages/".concat(t,"/polls/").concat(r,"/vote"),r5({vote:i},a));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t,r){return e5.apply(this,arguments)})},{key:"addPollAnswer",value:(e8=e_()(eD().mark(function e(t,r,i){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.castPollVote(t,r,{answer_text:i}));case 1:case"end":return e.stop()}},e,this)})),function(e,t,r){return e8.apply(this,arguments)})},{key:"removePollVote",value:(e9=e_()(eD().mark(function e(t,r,i){return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete(this.baseURL+"/messages/".concat(t,"/polls/").concat(r,"/vote/").concat(i));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(e,t,r){return e9.apply(this,arguments)})},{key:"queryPolls",value:(e7=e_()(eD().mark(function e(){var t,r,i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1&&void 0!==a[1]?a[1]:[],i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=5,this.post(this.baseURL+"/polls/query",r5({filter:t,sort:rp(r)},i));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(){return e7.apply(this,arguments)})},{key:"queryPollVotes",value:(te=e_()(eD().mark(function e(t){var r,i,a,o=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},i=o.length>2&&void 0!==o[2]?o[2]:[],a=o.length>3&&void 0!==o[3]?o[3]:{},e.next=5,this.post(this.baseURL+"/polls/".concat(t,"/votes"),r5({filter:r,sort:rp(i)},a));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(e){return te.apply(this,arguments)})},{key:"queryMessageHistory",value:(tt=e_()(eD().mark(function e(){var t,r,i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},r=a.length>1&&void 0!==a[1]?a[1]:[],i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=5,this.post(this.baseURL+"/messages/history",r5({filter:t,sort:rp(r)},i));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(){return tt.apply(this,arguments)})},{key:"updateFlags",value:(tn=e_()(eD().mark(function e(t,r){var i,a=arguments;return eD().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,this.post(this.baseURL+"/automod/v1/moderation/update_flags",r5({message_ids:t,reviewed_by:r},i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(e,t){return tn.apply(this,arguments)})}],[{key:"getInstance",value:function(e,t,r){return tr._instance||("string"==typeof t?tr._instance=new tr(e,t,r):tr._instance=new tr(e,t)),tr._instance}}]),tr}();eC()(r9,"_instance",void 0);var r7="Allow",ie=["*"],it=["*"],ir=function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:it,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:r7;ek()(this,e),eC()(this,"name",void 0),eC()(this,"action",void 0),eC()(this,"owner",void 0),eC()(this,"priority",void 0),eC()(this,"resources",void 0),eC()(this,"roles",void 0),this.name=t,this.action=s,this.owner=o,this.priority=r,this.resources=i,this.roles=a};new ir("Allow all",999,ie,it,!1,r7),new ir("Deny all",1,ie,it,!1,"Deny");var ii=function(e,t){return(ii=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ia(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var io=function(){return(io=Object.assign||function(e){for(var t,r=1,i=arguments.length;rt.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);at.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function il(e,t,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,l)}u((i=i.apply(e,t||[])).next())})}function ic(e,t){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(u){return function(l){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(r=1,i&&(a=2&l[0]?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,i=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function id(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}function ip(e,t,r){if(r||2==arguments.length)for(var i,a=0,o=t.length;ae.length)&&(t=e.length);for(var r=0,i=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{};ik(this,e),this.init(t,r)}return iF(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||iL,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),r=0;r1?t-1:0),i=1;i-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(a())return{};var s=i(o.shift());!e[s]&&r&&(e[s]=new r),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return a()?{}:{obj:e,k:i(o.shift())}}function iz(e,t,r){var i=iU(e,t,Object);i.obj[i.k]=r}function iH(e,t){var r=iU(e,t),i=r.obj,a=r.k;if(i)return i[a]}function iq(e,t,r){var i=iH(e,r);return void 0!==i?i:iH(t,r)}function iV(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var iW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function i$(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return iW[e]}):e}var iG="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,iY=[" ",",","?","!",";"];function iK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function iZ(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ik(this,i),t=r.call(this),iG&&iI.call(iC(t)),t.data=e||{},t.options=a,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return iF(i,[{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,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."));var l=iH(this.data,s);return l||!o||"string"!=typeof r?l:function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[r])return t[r];for(var a=r.split(i),o=t,s=0;ss+l;)l++,d=o[u=a.slice(s,s+l).join(i)];if(void 0===d)return;if(null===d)return null;if(r.endsWith(u)){if("string"==typeof d)return d;if(u&&"string"==typeof d[u])return d[u]}var p=a.slice(s+l).join(i);if(p)return e(d,p,i);return}o=o[a[s]]}return o}}(this.data&&this.data[e]&&this.data[e][t],r,a)}},{key:"addResource",value:function(e,t,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),i=t,t=s[1]),this.addNamespaces(t),iz(this.data,s,i),a.silent||this.emit("added",e,t,r,i)}},{key:"addResources",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)("string"==typeof r[a]||"[object Array]"===Object.prototype.toString.apply(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});i.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,i,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=t,t=s[1]),this.addNamespaces(t);var l=iH(this.data,s)||{};i?function e(t,r,i){for(var a in r)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof r[a]||r[a]instanceof String?i&&(t[a]=r[a]):e(t[a],r[a],i):t[a]=r[a]);return t}(l,r,a):l=iZ(iZ({},l),r),iz(this.data,s,l),o.silent||this.emit("added",e,t,r)}},{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)?iZ(iZ({},{}),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}}]),i}(iI),iX={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,a){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,a))}),t}};function iQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function i0(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return ik(this,i),t=r.call(this),iG&&iI.call(iC(t)),function(e,t,r){e.forEach(function(e){t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,iC(t)),t.options=a,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=iA.create("translator"),t}return iF(i,[{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 r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";var i=iY.filter(function(e){return 0>t.indexOf(e)&&0>r.indexOf(e)});if(0===i.length)return!0;var a=new RegExp("(".concat(i.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!a.test(e);if(!o){var s=e.indexOf(r);s>0&&!a.test(e.substring(0,s))&&(o=!0)}return o}(e,r,i);if(o&&!s){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:a};var u=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(i)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,t,r){var a=this;if("object"!==iw(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=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,d=l.namespaces,p=d[d.length-1],f=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(m){var g=t.nsSeparator||this.options.nsSeparator;return o?(v.res="".concat(p).concat(g).concat(u),v):"".concat(p).concat(g).concat(u)}return o?(v.res=u,v):u}var v=this.resolve(e,t),b=v&&v.res,y=v&&v.usedKey||u,_=v&&v.exactUsedKey||u,w=Object.prototype.toString.apply(b),k=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof b&&"boolean"!=typeof b&&"number"!=typeof b;if(x&&b&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(w)&&!("string"==typeof k&&"[object Array]"===w)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,b,i0(i0({},t),{},{ns:d})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(v.res=F,v):F}if(s){var C="[object Array]"===w,S=C?[]:{},D=C?_:y;for(var j in b)if(Object.prototype.hasOwnProperty.call(b,j)){var T="".concat(D).concat(s).concat(j);S[j]=this.translate(T,i0(i0({},t),{joinArrays:!1,ns:d})),S[j]===T&&(S[j]=b[j])}b=S}}else if(x&&"string"==typeof k&&"[object Array]"===w)(b=b.join(k))&&(b=this.extendTranslation(b,e,t,r));else{var O=!1,P=!1,R=void 0!==t.count&&"string"!=typeof t.count,M=i.hasDefaultValue(t),L=R?this.pluralResolver.getSuffix(f,t.count,t):"",A=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(b)&&M&&(O=!0,b=A),this.isValidLookup(b)||(P=!0,b=u);var I=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:b,N=M&&A!==b&&this.options.updateMissing;if(P||O||N){if(this.logger.log(N?"updateKey":"missingKey",f,p,u,N?A:b),s){var B=this.resolve(u,i0(i0({},t),{},{keySeparator:!1}));B&&B.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 U=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var H=0;H1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!s.isValidLookup(t)){var u=s.extractFromKey(e,l),d=u.key;r=d;var p=u.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,m=f&&!l.ordinal&&0===l.count&&s.pluralResolver.shouldUseIntlApi(),g=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(e){s.isValidLookup(t)||(o=e,!i1["".concat(v[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(i1["".concat(v[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(r,'" for languages "').concat(v.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!!!")),v.forEach(function(r){if(!s.isValidLookup(t)){a=r;var o,u=[d];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(u,d,r,e,l);else{f&&(p=s.pluralResolver.getSuffix(r,l.count,l));var p,v="".concat(s.options.pluralSeparator,"zero");if(f&&(u.push(d+p),m&&u.push(d+v)),g){var b="".concat(d).concat(s.options.contextSeparator).concat(l.context);u.push(b),f&&(u.push(b+p),m&&u.push(b+v))}}for(;o=u.pop();)s.isValidLookup(t)||(i=o,t=s.getResource(r,e,o,l))}}))})}}),{res:t,usedKey:r,exactUsedKey:i,usedLng:a,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,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),i}(iI);function i3(e){return e.charAt(0).toUpperCase()+e.slice(1)}var i4=function(){function e(t){ik(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=iA.create("languageUtils")}return iF(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"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=i3(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=i3(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=i3(r[2].toLowerCase()))),r.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,r=this;return e?(e.forEach(function(e){if(!t){var i=r.formatLanguageCode(e);(!r.options.supportedLngs||r.isSupportedCode(i))&&(t=i)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var i=r.getLanguagePartFromCode(e);if(r.isSupportedCode(i))return t=i;t=r.options.supportedLngs.find(function(e){if(0===e.indexOf(i))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 r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(r.isSupportedCode(e)?a.push(e):r.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)),i.forEach(function(e){0>a.indexOf(e)&&o(r.formatLanguageCode(e))}),a}}]),e}(),i6=[{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}],i5={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)}},i8=["v1","v2","v3"],i9={zero:0,one:1,two:2,few:3,many:4,other:5},i7=function(){function e(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ik(this,e),this.languageUtils=t,this.options=i,this.logger=iA.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=(r={},i6.forEach(function(e){e.lngs.forEach(function(t){r[t]={numbers:e.nr,plurals:i5[e.fc]}})}),r)}return iF(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]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,r);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(e,t){return i9[e]-i9[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):i.numbers.map(function(i){return t.getSuffix(e,i,r)}):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,r);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),a=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!i8.includes(this.options.compatibilityJSON)}}]),e}();function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function at(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ik(this,e),this.logger=iA.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return iF(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:i$,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?iV(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?iV(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?iV(t.nestingPrefix):t.nestingPrefixEscaped||iV("$t("),this.nestingSuffix=t.nestingSuffix?iV(t.nestingSuffix):t.nestingSuffixEscaped||iV(")"),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 r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,i){var a,o,s,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(e){return e.replace(/\$/g,"$$$$")}var p=function(e){if(0>e.indexOf(l.formatSeparator)){var a=iq(t,u,e);return l.alwaysFormat?l.format(a,void 0,r,at(at(at({},i),t),{},{interpolationkey:e})):a}var o=e.split(l.formatSeparator),s=o.shift().trim(),d=o.join(l.formatSeparator).trim();return l.format(iq(t,u,s),d,r,at(at(at({},i),t),{},{interpolationkey:s}))};this.resetRegExp();var f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return d(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?d(l.escape(e)):d(e)}}].forEach(function(t){for(s=0;a=t.regex.exec(e);){var r=a[1].trim();if(void 0===(o=p(r))){if("function"==typeof f){var u=f(e,a,i);o="string"==typeof u?u:""}else if(i&&i.hasOwnProperty(r))o="";else if(m){o=a[0];continue}else l.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),o=""}else"string"==typeof o||l.useRawValueToEscape||(o=iB(o));var d=t.safeValue(o);if(e=e.replace(a[0],d),m?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++s>=l.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var r,i,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=at({},o);function l(e,t){var r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;var i=e.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(i[1]);e=i[0];var o=(a=this.interpolate(a,s)).match(/'/g),l=a.match(/"/g);(o&&o.length%2==0&&!l||l.length%2!=0)&&(a=a.replace(/'/g,'"'));try{s=JSON.parse(a),t&&(s=at(at({},t),s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(a)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(e);){var u=[],d=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var p=r[1].split(this.formatSeparator).map(function(e){return e.trim()});r[1]=p.shift(),u=p,d=!0}if((i=t(l.call(this,r[1].trim(),s),s))&&r[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=iB(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),i=""),d&&(i=u.reduce(function(e,t){return a.format(e,t,o.lng,at(at({},o),{},{interpolationkey:r[1].trim()}))},i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}]),e}();function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function ai(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ik(this,e),this.logger=iA.create("formatter"),this.options=t,this.formats={number:aa(function(e,t){var r=new Intl.NumberFormat(e,t);return function(e){return r.format(e)}}),currency:aa(function(e,t){var r=new Intl.NumberFormat(e,ai(ai({},t),{},{style:"currency"}));return function(e){return r.format(e)}}),datetime:aa(function(e,t){var r=new Intl.DateTimeFormat(e,ai({},t));return function(e){return r.format(e)}}),relativetime:aa(function(e,t){var r=new Intl.RelativeTimeFormat(e,ai({},t));return function(e){return r.format(e,t.range||"day")}}),list:aa(function(e,t){var r=new Intl.ListFormat(e,ai({},t));return function(e){return r.format(e)}})},this.init(t)}return iF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=aa(t)}},{key:"format",value:function(e,t,r,i){var a=this;return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var a=i[1].substring(0,i[1].length-1);"currency"===t&&0>a.indexOf(":")?r.currency||(r.currency=a.trim()):"relativetime"===t&&0>a.indexOf(":")?r.range||(r.range=a.trim()):a.split(";").forEach(function(e){if(e){var t,i=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return iP(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?iP(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],o=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[a.trim()]||(r[a.trim()]=o),"false"===o&&(r[a.trim()]=!1),"true"===o&&(r[a.trim()]=!0),isNaN(o)||(r[a.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:r}}(t),s=o.formatName,l=o.formatOptions;if(a.formats[s]){var u=e;try{var d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=d.locale||d.lng||i.locale||i.lng||r;u=a.formats[s](e,p,ai(ai(ai({},l),i),d))}catch(e){a.logger.warn(e)}return u}return a.logger.warn("there was no format function for ".concat(s)),e},e)}}]),e}();function as(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function al(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return ik(this,i),o=r.call(this),iG&&iI.call(iC(o)),o.backend=e,o.store=t,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=iA.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return iF(i,[{key:"queueLoad",value:function(e,t,r,i){var a=this,o={},s={},l={},u={};return e.forEach(function(e){var i=!0;t.forEach(function(t){var l="".concat(e,"|").concat(t);!r.reload&&a.store.hasResourceBundle(e,t)?a.state[l]=2:a.state[l]<0||(1===a.state[l]?void 0===s[l]&&(s[l]=!0):(a.state[l]=1,i=!1,void 0===s[l]&&(s[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===u[t]&&(u[t]=!0)))}),i||(l[e]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,r){var i=e.split("|"),a=i[0],o=i[1];t&&this.emit("failedLoading",a,o,t),r&&this.store.addResourceBundle(a,o,r),this.state[e]=t?-1:2;var s={};this.queue.forEach(function(r){var i,l,u,d;(u=(l=iU(r.loaded,[a],Object)).obj)[d=l.k]=u[d]||[],i||u[d].push(o),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(function(e){s[e]||(s[e]={});var t=r.loaded[e];t.length&&t.forEach(function(t){void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:a,wait:o,callback:s});return}return this.readingCalls++,this.backend[r](e,t,function(l,u){if(i.readingCalls--,i.waitingReads.length>0){var d=i.waitingReads.shift();i.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(l&&u&&a2&&void 0!==arguments[2]?arguments[2]:{},a=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."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),a=i[0],o=i[1];this.read(a,o,"read",void 0,void 0,function(i,s){i&&t.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(a," failed"),i),!i&&s&&t.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(a),s),t.loaded(e,i,s)})}},{key:"saveMissing",value:function(e,t,r,i,a){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(r,'" 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!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,al(al({},o),{},{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),i}(iI);function au(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 ad(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function ap(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(ik(this,i),e=r.call(this),iG&&iI.call(iC(e)),e.options=au(t),e.services={},e.logger=iA,e.modules={external:[]},function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(iC(e)),a&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,a),ij(e,iC(e));setTimeout(function(){e.init(t,a)},0)}return e}return iF(i,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=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 i={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"===iw(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===iw(e[2])||"object"===iw(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function a(e){return e?"function"==typeof e?new e:e:null}if(this.options=ap(ap(ap({},i),this.options),au(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ap(ap({},i.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?iA.init(a(this.modules.logger),this.options):iA.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=ao);var o,s=new i4(this.options);this.store=new iJ(this.options.resources,this.options);var l=this.services;l.logger=iA,l.resourceStore=this.store,l.languageUtils=s,l.pluralResolver=new i7(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(l.formatter=a(o),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new an(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new ac(a(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a0&&"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 r;return(r=e.store)[t].apply(r,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}});var d=iN(),p=function(){var t=function(t,i){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),d.resolve(i),r(t,i)};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?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:af,i=r,a="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return i();var o=[],s=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a?s(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return s(e)}),this.options.preload&&this.options.preload.forEach(function(e){return s(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)})}else i(null)}},{key:"reloadResources",value:function(e,t,r){var i=iN();return e||(e=this.languages),t||(t=this.options.ns),r||(r=af),this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{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&&iX.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(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var i=iN();this.emit("languageChanging",e);var a=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},o=function(e,o){o?(a(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,i.resolve(function(){return r.t.apply(r,arguments)}),t&&t(e,function(){return r.t.apply(r,arguments)})},s=function(t){e||t||!r.services.languageDetector||(t=[]);var i="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);i&&(r.language||a(i),r.translator.language||r.translator.changeLanguage(i),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(i)),r.loadResources(i,function(e){o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,r){var i=this,a=function e(t,a){if("object"!==iw(a)){for(var o,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 i=this.resolvedLanguage||this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function(e,r){var i=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===i||2===i};if(r.precheck){var l=r.precheck(this,s);if(void 0!==l)return l}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!a||s(o,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,i=iN();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=iN();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],a=e.filter(function(e){return 0>i.indexOf(e)});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(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]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:af,a=ap(ap(ap({},this.options),t),{isClone:!0}),o=new i(a);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=ap({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new i2(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ah(e,t)});var am=ah.createInstance();am.createInstance=ah.createInstance,am.createInstance,am.init,am.loadResources,am.reloadResources,am.use,am.changeLanguage,am.getFixedT,am.t,am.exists,am.setDefaultNamespace,am.hasLoadedNamespace,am.loadNamespaces,am.loadLanguages;var ag=r(89047),av=r.n(ag),ab=r(7846),ay=r.n(ab),a_=r(62989),aw=r.n(a_),ak=r(8534),ax=r.n(ak),aE=r(69748),aF=r.n(aE);let aC=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..."}'),aS=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..."}'),aD=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..."}'),aj=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..."}'),aT=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 अटैचमेंट"}'),aO=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..."}'),aP=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 アタッチメント..."}'),aR=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 부착..."}'),aM=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..."}'),aL=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..."}'),aA=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 Вложение..."}'),aI=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..."}');r(61622),r(81123),r(34197),r(50748),r(44586),r(52572),r(15181),r(27446),r(78630),r(92562),r(1655),r(41699);var aN="translation";ig().extend(av()),ig().extend(ax()),ig().extend(aF()),ig().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"}}),ig().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"}}),ig().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"}}),ig().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:/रात|सुबह|दोपहर|शाम/}),ig().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"}}),ig().updateLocale("ja",{calendar:{lastDay:"[昨日] LT",lastWeek:"dddd LT",nextDay:"[明日] LT",nextWeek:"[次の] dddd LT",sameDay:"[今日] LT",sameElse:"L"}}),ig().updateLocale("ko",{calendar:{lastDay:"[어제] LT",lastWeek:"[지난] dddd LT",nextDay:"[내일] LT",nextWeek:"dddd LT",sameDay:"[오늘] LT",sameElse:"L"}}),ig().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"}}),ig().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"}}),ig().updateLocale("ru",{calendar:{lastDay:"[Вчера, в] LT",nextDay:"[Завтра, в] LT",sameDay:"[Сегодня, в] LT"}}),ig().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 aB={formats:{},months:["January","February","March","April","May","June","July","August","September","October","November","December"],relativeTime:{},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},aU=function(e){return void 0!==e.extend},az=function(e){return void 0!==e.tz},aH={DateTimeParser:ig(),dayjsLocaleConfigForLanguage:null,debug:!1,disableDateTimeTranslations:!1,language:"en",logger:function(e){return console.warn(e)}},aq=function(e){return e},aV=function(){function e(e){void 0===e&&(e={});var t,r,i,a,o,s,l,u,d,p,f,m,g,v,b=this;this.i18nInstance=am.createInstance(),this.Dayjs=null,this.setLanguageCallback=function(){return null},this.initialized=!1,this.t=aq,this.translations={de:((t={})[aN]=aC,t),en:((r={})[aN]=aS,r),es:((i={})[aN]=aD,i),fr:((a={})[aN]=aj,a),hi:((o={})[aN]=aT,o),it:((s={})[aN]=aO,s),ja:((l={})[aN]=aP,l),ko:((u={})[aN]=aR,u),nl:((d={})[aN]=aM,d),pt:((p={})[aN]=aL,p),ru:((f={})[aN]=aA,f),tr:((m={})[aN]=aI,m)},this.dayjsLocales={},this.localeExists=function(e){return!!b.isCustomDateTimeParser||Object.keys(ig().Ls).indexOf(e)>-1},this.validateCurrentLanguage=function(){-1===Object.keys(b.translations).indexOf(b.currentLanguage)&&(b.logger("Streami18n: '".concat(b.currentLanguage,"' language is not registered.")+" Please make sure to call streami18n.registerTranslation('".concat(b.currentLanguage,"', {...}) or ")+"use one the built-in supported languages - ".concat(b.getAvailableLanguages())),b.currentLanguage="en")},this.geti18Instance=function(){return b.i18nInstance},this.getAvailableLanguages=function(){return Object.keys(b.translations)},this.getTranslations=function(){return b.translations};var y=io(io({},aH),e);this.logger=y.logger,this.currentLanguage=y.language,this.DateTimeParser=y.DateTimeParser,this.timezone=y.timezone;try{this.DateTimeParser&&aU(this.DateTimeParser)&&(this.DateTimeParser.extend(i_()),this.DateTimeParser.extend(ib()),this.DateTimeParser.extend(ay()),this.DateTimeParser.extend(aw()))}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.translationsForLanguage;_&&(this.translations[this.currentLanguage]=((g={})[aN]=this.translations[this.currentLanguage]&&this.translations[this.currentLanguage][aN]?io(io({},this.translations[this.currentLanguage][aN]),_):_,g)),this.translations[this.currentLanguage]||(this.translations[this.currentLanguage]=((v={})[aN]={},v)),this.i18nextConfig={debug:y.debug,fallbackLng:!1,interpolation:{escapeValue:!1},keySeparator:!1,lng:this.currentLanguage,nsSeparator:!1},y.parseMissingKeyHandler&&(this.i18nextConfig.parseMissingKeyHandler=y.parseMissingKeyHandler),this.validateCurrentLanguage();var w=y.dayjsLocaleConfigForLanguage;w?this.addOrUpdateLocale(this.currentLanguage,io({},w)):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=y.disableDateTimeTranslations||!b.localeExists(b.currentLanguage)?"en":b.currentLanguage;return aU(b.DateTimeParser)?az(b.DateTimeParser)?b.DateTimeParser(e).tz(b.timezone).locale(t):b.DateTimeParser(e).locale(t):az(b.DateTimeParser)&&b.timezone?b.DateTimeParser(e).tz(b.timezone).locale(t):b.DateTimeParser(e).locale(t)}}return e.prototype.init=function(){return il(this,void 0,void 0,function(){var e,t;return ic(this,function(r){switch(r.label){case 0:this.validateCurrentLanguage(),r.label=1;case 1:return r.trys.push([1,3,,4]),e=this,[4,this.i18nInstance.init(io(io({},this.i18nextConfig),{lng:this.currentLanguage,resources:this.translations}))];case 2:return e.t=r.sent(),this.initialized=!0,[3,4];case 3:return t=r.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 il(this,void 0,void 0,function(){return ic(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,r){var i;if(!t){this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) called without translation");return}this.translations[e]?this.translations[e][aN]=t:this.translations[e]=((i={})[aN]=t,i),r?this.dayjsLocales[e]=io({},r):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,aN,t)},e.prototype.addOrUpdateLocale=function(e,t){this.localeExists(e)?ig().updateLocale(e,io({},t)):ig().locale(io(io({name:e},aB),t),void 0,!0)},e.prototype.setLanguage=function(e){return il(this,void 0,void 0,function(){var t,r;return ic(this,function(i){switch(i.label){case 0:if(this.currentLanguage=e,!this.initialized)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.i18nInstance.changeLanguage(e)];case 2:return t=i.sent(),this.dayjsLocales[e]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),this.setLanguageCallback(t),[2,t];case 3:return r=i.sent(),this.logger("Failed to set language: ".concat(JSON.stringify(r))),[2,this.t];case 4:return[2]}})})},e.prototype.registerSetLanguageCallback=function(e){this.setLanguageCallback=e},e}();ig().extend(ib()),ig().extend(i_());var aW=function(e){return!!(null==e?void 0:e.isSame)},a$=function(e){return!!(null==e?void 0:e.getMonth)},aG=function(e){return ig()(e)},aY=ec().createContext({t:aq,tDateTimeParser:aG,userLanguage:"en"}),aK=function(e){var t=e.children,r=e.value;return ec().createElement(aY.Provider,{value:r},t)},aZ=function(e){return(0,el.useContext)(aY)||(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.")),{})},aJ=function(e){var t,r,i=e.client,a=e.defaultLanguage,o=void 0===a?"en":a,s=e.i18nInstance,l=e.initialNavOpen,u=(0,el.useState)({t:function(e){return e},tDateTimeParser:aG,userLanguage:"en"}),d=u[0],p=u[1],f=(0,el.useState)(),m=f[0],g=f[1],v=(0,el.useState)([]),b=v[0],y=v[1],_=(0,el.useState)(l),w=_[0],k=_[1],x=(0,el.useState)({}),E=x[0],F=x[1],C=(null===(t=i.user)||void 0===t?void 0:t.mutes)||[],S=function(){return k(!1)},D=(0,el.useRef)(null);(0,el.useEffect)(function(){if(i){var e=i.getUserAgent();e.includes("stream-chat-react")||i.setUserAgent("stream-chat-react-".concat("10.22.3","-").concat(e))}},[i]),(0,el.useEffect)(function(){y(C);var e=function(e){var t;y((null===(t=e.me)||void 0===t?void 0:t.mutes)||[])};return i.on("notification.mutes_updated",e),function(){return i.off("notification.mutes_updated",e)}},[null==C?void 0:C.length]),(0,el.useEffect)(function(){var e,t=null===(e=i.user)||void 0===e?void 0:e.language;if(!t){var r=window.navigator.language.slice(0,2);t=["de","en","es","fr","hi","it","ja","ko","nl","pt","ru","tr"].some(function(e){return r===e})?r:o}var a=s||new aV({language:t});a.registerSetLanguageCallback(function(e){return p(function(t){return io(io({},t),{t:e})})}),a.getTranslators().then(function(e){p(io(io({},e),{userLanguage:t||o}))})},[s]);var j=(0,el.useCallback)(function(e,t,r){return void 0===t&&(t={}),il(void 0,void 0,void 0,function(){return ic(this,function(i){switch(i.label){case 0:if(r&&r.preventDefault&&r.preventDefault(),!(e&&Object.keys(t).length))return[3,2];return[4,e.query({watch:!0,watchers:t})];case 1:i.sent(),i.label=2;case 2:return g(e),S(),[2]}})})},[]);return(0,el.useEffect)(function(){F({})},[null===(r=i.user)||void 0===r?void 0:r.id]),{channel:m,closeMobileNav:S,getAppSettings:function(){return D.current||(D.current=i.getAppSettings()),D.current},latestMessageDatesByChannels:E,mutes:b,navOpen:w,openMobileNav:function(){return setTimeout(function(){return k(!0)},100)},setActiveChannel:j,translators:d}},aX=function(e){var t,r=e.channel,i=e.channelsQueryState,a=e.client,o=e.closeMobileNav,s=e.customClasses,l=e.getAppSettings,u=e.latestMessageDatesByChannels,d=e.mutes,p=e.navOpen,f=e.openMobileNav,m=e.setActiveChannel,g=e.theme,v=e.themeVersion,b=e.useImageFlagEmojisOnWindows,y=null==r?void 0:r.cid,_=i.error,w=i.queryInProgress,k="".concat(a.clientID).concat(Object.keys(a.activeChannels).length).concat(Object.keys(a.listeners).length).concat(a.mutedChannels.length,"\n ").concat(null===(t=a.user)||void 0===t?void 0:t.id),x=d.length;return(0,el.useMemo)(function(){return{channel:r,channelsQueryState:i,client:a,closeMobileNav:o,customClasses:s,getAppSettings:l,latestMessageDatesByChannels:u,mutes:d,navOpen:p,openMobileNav:f,setActiveChannel:m,theme:g,themeVersion:v,useImageFlagEmojisOnWindows:b}},[y,_,w,k,l,x,p])},aQ=function(){var e=(0,el.useState)(null),t=e[0],r=e[1],i=(0,el.useState)("uninitialized");return{error:t,queryInProgress:i[0],setError:r,setQueryInProgress:i[1]}},a0={"--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"},a1=function(e){if(e)for(var t=0,r=Object.entries(e);t-1&&i.channel?(e[u].data=io(io({},i.channel),{hidden:null!==(r=null===(t=i.channel)||void 0===t?void 0:t.hidden)&&void 0!==r?r:null===(a=e[u].data)||void 0===a?void 0:a.hidden,own_capabilities:null!==(s=null===(o=i.channel)||void 0===o?void 0:o.own_capabilities)&&void 0!==s?s:null===(l=e[u].data)||void 0===l?void 0:l.own_capabilities}),ip([],e,!0)):e}),r&&r(),t&&"function"==typeof t&&t(e,i)};return i.on("channel.updated",a),function(){i.off("channel.updated",a)}},[t])},oo=r(88807),os=r.n(oo),ol={},oc=function(e){var t=e.channel,r=e.client,i=e.id,a=e.members,o=e.options,s=e.type;return il(void 0,void 0,void 0,function(){var e,l,u;return ic(this,function(d){switch(d.label){case 0:if(!t&&!s)throw Error("Channel or channel type have to be provided to query a channel.");if(!(l=(null==(e=t||r.channel(s,i,{members:a}))?void 0:e.id)?e.cid:a&&a.length?ou(e.type,a):void 0))throw Error("Channel ID or channel members array have to be provided to query a channel.");if(!(u=ol[l]))return[3,2];return[4,u];case 1:return d.sent(),[3,4];case 2:return ol[l]=e.watch(o),[4,ol[l]];case 3:d.sent(),delete ol[l],d.label=4;case 4:return[2,e]}})})},ou=function(e,t){if(t){var r=ip([],t,!0).sort().join(",");return"".concat(e,":!members-").concat(r)}},od=function(e,t){var r=a4("useChannelVisibleListener").client;(0,el.useEffect)(function(){var i=function(i){return il(void 0,void 0,void 0,function(){var a;return ic(this,function(o){switch(o.label){case 0:if(!(t&&"function"==typeof t))return[3,1];return t(e,i),[3,3];case 1:if(!(i.type&&i.channel_type&&i.channel_id))return[3,3];return[4,oc({client:r,id:i.channel_id,type:i.channel_type})];case 2:a=o.sent(),e(function(e){return os()(ip([a],e,!0),"cid")}),o.label=3;case 3:return[2]}})})};return r.on("channel.visible",i),function(){r.off("channel.visible",i)}},[t])},op=function(e){var t=a4("useConnectionRecoveredListener").client;(0,el.useEffect)(function(){var r=function(){e&&e()};return t.on("connection.recovered",r),function(){t.off("connection.recovered",r)}},[])},of=function(e){var t=e.activeChannel,r=e.channels,i=e.cid,a=r.findIndex(function(e){return e.cid===i});if(!t&&a<=0)return r;var o=t||r[a];return os()(ip([o],r,!0),"cid")},oh=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0);var i=a4("useMessageNewListener").client;(0,el.useEffect)(function(){var a=function(a){e(function(e){if(!(e.filter(function(e){return e.cid===a.cid}).length>0)&&r&&a.channel_type){var o=i.channel(a.channel_type,a.channel_id);return os()(ip([o],e,!0),"cid")}return t?e:of({channels:e,cid:a.cid||""})})};return i.on("message.new",a),function(){i.off("message.new",a)}},[t])},om=function(e,t,r){(0,el.useEffect)(function(){var i=function(i){r&&e.current&&!e.current.contains(i.target)&&t&&r()};return document.addEventListener("click",i),function(){document.removeEventListener("click",i)}},[e,r,t])},og=function(e,t,r){void 0===r&&(r=!0);var i=a4("useNotificationAddedToChannelListener").client;(0,el.useEffect)(function(){var a=function(a){return il(void 0,void 0,void 0,function(){var o,s,l;return ic(this,function(u){switch(u.label){case 0:if(!(t&&"function"==typeof t))return[3,1];return t(e,a),[3,3];case 1:if(!(r&&(null===(s=a.channel)||void 0===s?void 0:s.type)))return[3,3];return[4,oc({client:i,id:a.channel.id,members:null===(l=a.channel.members)||void 0===l?void 0:l.reduce(function(e,t){var r=t.user,i=t.user_id||(null==r?void 0:r.id);return i&&e.push(i),e},[]),type:a.channel.type})];case 2:o=u.sent(),e(function(e){return os()(ip([o],e,!0),"cid")}),u.label=3;case 3:return[2]}})})};return i.on("notification.added_to_channel",a),function(){i.off("notification.added_to_channel",a)}},[t])},ov=function(e,t,r){void 0===r&&(r=!0);var i=a4("useNotificationMessageNewListener").client;(0,el.useEffect)(function(){var a=function(a){return il(void 0,void 0,void 0,function(){var o,s;return ic(this,function(l){switch(l.label){case 0:if(!(t&&"function"==typeof t))return[3,1];return t(e,a),[3,3];case 1:if(!(r&&(null===(s=a.channel)||void 0===s?void 0:s.type)))return[3,3];return[4,oc({client:i,id:a.channel.id,type:a.channel.type})];case 2:o=l.sent(),e(function(e){return os()(ip([o],e,!0),"cid")}),l.label=3;case 3:return[2]}})})};return i.on("notification.message_new",a),function(){i.off("notification.message_new",a)}},[t])},ob=function(e,t){var r=a4("useNotificationRemovedFromChannelListener").client;(0,el.useEffect)(function(){var i=function(r){t&&"function"==typeof t?t(e,r):e(function(e){return e.filter(function(e){var t;return e.cid!==(null===(t=r.channel)||void 0===t?void 0:t.cid)})})};return r.on("notification.removed_from_channel",i),function(){r.off("notification.removed_from_channel",i)}},[t])},oy=function(e,t,r,i,a,o){void 0===o&&(o=5e3);var s=a4("usePaginatedChannels").channelsQueryState,l=s.error,u=s.setError,d=s.setQueryInProgress,p=(0,el.useState)([]),f=p[0],m=p[1],g=(0,el.useState)(!0),v=g[0],b=g[1],y=(0,el.useRef)(),_=o<2e3?2e3:o||5e3,w=(0,el.useMemo)(function(){return JSON.stringify(t)},[t]),k=(0,el.useMemo)(function(){return JSON.stringify(r)},[r]),x=function(o){return il(void 0,void 0,void 0,function(){var s,l,p,g,v,y;return ic(this,function(_){switch(_.label){case 0:u(null),"reload"===o?(m([]),d("reload")):d("load-more"),s="reload"===o?0:f.length,l=io({limit:null!==(y=null==i?void 0:i.limit)&&void 0!==y?y:30,offset:s},i),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,e.queryChannels(t,r||{},l)];case 2:return p=_.sent(),m(g="reload"===o?p:os()(ip(ip([],f,!0),p,!0),"cid")),b(p.length>=l.limit),!s&&a&&a(g,m),[3,4];case 3:return console.warn(v=_.sent()),u(v),[3,4];case 4:return d(null),[2]}})})},E=(0,el.useCallback)(function(){var e=Date.now(),t=!y.current,r=y.current?e-y.current:0;(t||!(r<_)||l)&&(y.current=e,x("reload"))},[l,x,_]);return(0,el.useEffect)(function(){if(!e.recoverStateOnReconnect){var t=e.on("connection.recovered",E).unsubscribe;return function(){t()}}},[e,E]),(0,el.useEffect)(function(){x("reload")},[w,k]),{channels:f,hasNextPage:v,loadNextPage:function(){x()},setChannels:m}},o_=function(e){var t=a4("useUserPresenceChangedListener").client;(0,el.useEffect)(function(){var r=function(t){e(function(e){return ip([],e.map(function(e){var r;return(null===(r=t.user)||void 0===r?void 0:r.id)&&e.state.members[t.user.id]&&(e.state.members[t.user.id].user=t.user),e}),!0)})};return t.on("user.presence.changed",r),function(){t.off("user.presence.changed",r)}},[])},ow=function(e,t){var r=e.charCodeAt(t);if(Number.isNaN(r))return"";if(r<55296||r>57343)return e.charAt(t);if(55296<=r&&r<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var i=e.charCodeAt(t+1);if(56320>i||i>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 a=e.charCodeAt(t-1);if(55296>a||a>56319)throw"Low surrogate without preceding high surrogate";return""},ok=function(e){var t=e.image,r=e.name,i=e.onClick,a=e.onMouseOver,o=e.shape,s=e.size,l=void 0===s?32:s,u=(0,el.useState)(!1),d=u[0],p=u[1],f=(0,el.useState)(!1),m=f[0],g=f[1];(0,el.useEffect)(function(){p(!1),g(!1)},[t]);var v=ow((null==r?void 0:r.toString())||"",0);return ec().createElement("div",{className:"str-chat__avatar str-chat__avatar--".concat(void 0===o?"circle":o," str-chat__message-sender-avatar"),"data-testid":"avatar",onClick:void 0===i?function(){}:i,onMouseOver:void 0===a?function(){}:a,style:{flexBasis:"".concat(l,"px"),fontSize:"".concat(l/2,"px"),height:"".concat(l,"px"),lineHeight:"".concat(l,"px"),width:"".concat(l,"px")},title:r},t&&!d?ec().createElement("img",{alt:v,className:"str-chat__avatar-image".concat(m?" str-chat__avatar-image--loaded":""),"data-testid":"avatar-img",onError:function(){return p(!0)},onLoad:function(){return g(!0)},src:t,style:{flexBasis:"".concat(l,"px"),height:"".concat(l,"px"),objectFit:"cover",width:"".concat(l,"px")}}):ec().createElement("div",{className:"str-chat__avatar-fallback","data-testid":"avatar-fallback"},v))},ox=ec().memo(function(e){var t,r,i=e.active,a=e.Avatar,o=e.channel,s=e.className,l=e.displayImage,u=e.displayTitle,d=e.latestMessage,p=e.onSelect,f=e.setActiveChannel,m=e.unread,g=e.watchers,v=(0,el.useRef)(null),b=u||(null===(r=null===(t=o.state.messages[o.state.messages.length-1])||void 0===t?void 0:t.user)||void 0===r?void 0:r.id);return ec().createElement("button",{"aria-label":"Select Channel: ".concat(u||""),"aria-selected":i,className:a5("str-chat__channel-preview-messenger str-chat__channel-preview",i&&"str-chat__channel-preview-messenger--active",m&&m>=1&&"str-chat__channel-preview-messenger--unread",void 0===s?"":s),"data-testid":"channel-preview-button",onClick:function(e){p?p(e):f&&f(o,g),(null==v?void 0:v.current)&&v.current.blur()},ref:v,role:"option"},ec().createElement("div",{className:"str-chat__channel-preview-messenger--left"},ec().createElement(void 0===a?ok:a,{image:l,name:b,size:40})),ec().createElement("div",{className:"str-chat__channel-preview-messenger--right str-chat__channel-preview-end"},ec().createElement("div",{className:"str-chat__channel-preview-end-first-row"},ec().createElement("div",{className:"str-chat__channel-preview-messenger--name"},ec().createElement("span",null,u)),!!m&&ec().createElement("div",{className:"str-chat__channel-preview-unread-badge","data-testid":"unread-badge"},m)),ec().createElement("div",{className:"str-chat__channel-preview-messenger--last-message"},d)))}),oE=function(e){var t=a4("useIsChannelMuted").client,r=(0,el.useState)(e.muteStatus()),i=r[0],a=r[1];return(0,el.useEffect)(function(){var r=function(){return a(e.muteStatus())};return t.on("notification.channel_mutes_updated",r),function(){return t.off("notification.channel_mutes_updated",r)}},[i]),i},oF=r(98238);function oC(e){return e&&"object"==typeof e?"position"in e||"type"in e?oD(e.position):"start"in e||"end"in e?oD(e):"line"in e||"column"in e?oS(e):"":""}function oS(e){return oj(e&&e.line)+":"+oj(e&&e.column)}function oD(e){return oS(e&&e.start)+"-"+oS(e&&e.end)}function oj(e){return e&&"number"==typeof e?e:1}class oT extends Error{constructor(e,t,r){let i=[null,null],a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){let e=r.indexOf(":");-1===e?i[1]=r:(i[0]=r.slice(0,e),i[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(a=t.position):"start"in t||"end"in t?a=t:("line"in t||"column"in t)&&(a.start=t)),this.name=oC(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=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}oT.prototype.file="",oT.prototype.name="",oT.prototype.reason="",oT.prototype.message="",oT.prototype.stack="",oT.prototype.fatal=null,oT.prototype.column=null,oT.prototype.line=null,oT.prototype.source=null,oT.prototype.ruleId=null,oT.prototype.position=null;var oO=r(71017);let oP=require("process");function oR(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let oM=["history","path","basename","stem","extname","dirname"];class oL{constructor(e){let t,r;t=e?"string"==typeof e||oF(e)?{value:e}:oR(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=oP.cwd(),this.value,this.stored,this.result,this.map;let i=-1;for(;++it.length;s&&t.push(i);try{o=e.apply(this,t)}catch(e){if(s&&r)throw e;return i(e)}s||(o&&o.then&&"function"==typeof o.then?o.then(a,i):o instanceof Error?i(o):a(o))};function i(e,...a){r||(r=!0,t(e,...a))}function a(e){i(null,e)}})(l,a)(...s):i(null,...s)})(null,...t)},use:function(r){if("function"!=typeof r)throw TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}(),i=[],a={},o=-1;return s.data=function(e,r){return"string"==typeof e?2==arguments.length?(oG("data",t),a[e]=r,s):oq.call(a,e)&&a[e]||null:e?(oG("data",t),a=e,s):a},s.Parser=void 0,s.Compiler=void 0,s.freeze=function(){if(t)return s;for(;++o{if(!e&&t&&r){let i=s.stringify(t,r);null==i||("string"==typeof i||oF(i)?r.value=i:r.result=i),o(e,r)}else o(e)})}r(null,t)},s.processSync=function(e){let t;s.freeze(),oW("processSync",s.Parser),o$("processSync",s.Compiler);let r=oZ(e);return s.process(r,function(e){t=!0,oB(e)}),oK("processSync","process",t),r},s;function s(){let t=e(),r=-1;for(;++ro?0:o+t:t>o?o:t,r=r>0?r:0,i.length<1e4)(a=Array.from(i)).unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);s0?(o0(e,e.length,0,t),e):t}let o2={}.hasOwnProperty;function o3(e){let t={},r=-1;for(;++ri))return;let l=a.events.length,u=l;for(;u--;)if("exit"===a.events[u][0]&&"chunkFlow"===a.events[u][1].type){if(e){r=a.events[u][1].end;break}e=!0}for(y(s),o=l;ot;){let t=o[r];a.containerState=t[1],t[0].exit.call(a,e)}o.length=t}function _(){t.write([null]),r=void 0,t=void 0,a.containerState._closeFlow=void 0}}},su={tokenize:function(e,t,r){return ss(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},sd={tokenize:function(e,t,r){return function(t){return sr(t)?ss(e,i,"linePrefix")(t):i(t)};function i(e){return null===e||st(e)?t(e):r(e)}},partial:!0};function sp(e){let t,r,i,a,o,s,l;let u={},d=-1;for(;++d=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}},partial:!0},sm={tokenize:function(e){let t=this,r=e.attempt(sd,function(i){if(null===i){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r},e.attempt(this.parser.constructs.flowInitial,i,ss(e,e.attempt(this.parser.constructs.flow,i,e.attempt(sf,i)),"linePrefix")));return r;function i(i){if(null===i){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}},sg={resolveAll:s_()},sv=sy("string"),sb=sy("text");function sy(e){return{tokenize:function(t){let r=this,i=this.parser.constructs[e],a=t.attempt(i,o,s);return o;function o(e){return u(e)?a(e):s(e)}function s(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return u(e)?(t.exit("data"),a(e)):(t.consume(e),l)}function u(e){if(null===e)return!0;let t=i[e],a=-1;if(t)for(;++a=3&&(null===s||st(s))?(e.exit("thematicBreak"),t(s)):r(s)}(o)}}},sE={name:"list",tokenize:function(e,t,r){let i=this,a=i.events[i.events.length-1],o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){let a=i.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!i.containerState.marker||t===i.containerState.marker:o9(t)){if(i.containerState.type||(i.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(sx,r,l)(t):l(t);if(!i.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(a){return o9(a)&&++s<10?(e.consume(a),t):(!i.interrupt||s<2)&&(i.containerState.marker?a===i.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),l(a)):r(a)}(t)}return r(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||t,e.check(sd,i.interrupt?r:u,e.attempt(sF,p,d))}function u(e){return i.containerState.initialBlankLine=!0,o++,p(e)}function d(t){return sr(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),p):r(t)}function p(r){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){let i=this;return i.containerState._closeFlow=void 0,e.check(sd,function(r){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ss(e,t,"listItemIndent",i.containerState.size+1)(r)},function(r){return i.containerState.furtherBlankLines||!sr(r)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(r)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(sC,t,a)(r))});function a(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,ss(e,e.attempt(sE,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)}},sF={tokenize:function(e,t,r){let i=this;return ss(e,function(e){let a=i.events[i.events.length-1];return!sr(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):r(e)},"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},sC={tokenize:function(e,t,r){let i=this;return ss(e,function(e){let a=i.events[i.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(e):r(e)},"listItemIndent",i.containerState.size+1)},partial:!0},sS={name:"blockQuote",tokenize:function(e,t,r){let i=this;return function(t){if(62===t){let r=i.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return r(t)};function a(r){return sr(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){let i=this;return function(t){return sr(t)?ss(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(i){return e.attempt(sS,t,r)(i)}}},exit:function(e){e.exit("blockQuote")}};function sD(e,t,r,i,a,o,s,l,u){let d=u||Number.POSITIVE_INFINITY,p=0;return function(t){return 60===t?(e.enter(i),e.enter(a),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||o8(t)?r(t):(e.enter(i),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(t))};function f(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(a),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(r))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(l),f(t)):null===t||60===t||st(t)?r(t):(e.consume(t),92===t?g:m)}function g(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function v(a){return!p&&(null===a||41===a||sn(a))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(i),t(a)):p999||null===f||91===f||93===f&&!s||94===f&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?r(f):93===f?(e.exit(o),e.enter(a),e.consume(f),e.exit(a),e.exit(i),t):st(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(t){return null===t||91===t||93===t||st(t)||u++>999?(e.exit("chunkString"),d(t)):(e.consume(t),s||(s=!sr(t)),92===t?f:p)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,p):p(t)}}function sT(e,t,r,i,a,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(i),e.enter(a),e.consume(t),e.exit(a),s=40===t?41:t,l):r(t)};function l(r){return r===s?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),t):(e.enter(o),u(r))}function u(t){return t===s?(e.exit(o),l(s)):null===t?r(t):st(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ss(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===s||null===t||st(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?p:d)}function p(t){return t===s||92===t?(e.consume(t),d):d(t)}}function sO(e,t){let r;return function i(a){return st(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i):sr(a)?ss(e,i,r?"linePrefix":"lineSuffix")(a):t(a)}}function sP(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let sR={tokenize:function(e,t,r){return function(t){return sn(t)?sO(e,i)(t):r(t)};function i(t){return sT(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return sr(t)?ss(e,o,"whitespace")(t):o(t)}function o(e){return null===e||st(e)?t(e):r(e)}},partial:!0},sM={name:"codeIndented",tokenize:function(e,t,r){let i=this;return function(t){return e.enter("codeIndented"),ss(e,a,"linePrefix",5)(t)};function a(t){let a=i.events[i.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?function t(r){return null===r?o(r):st(r)?e.attempt(sL,t,o)(r):(e.enter("codeFlowValue"),function r(i){return null===i||st(i)?(e.exit("codeFlowValue"),t(i)):(e.consume(i),r)}(r))}(t):r(t)}function o(r){return e.exit("codeIndented"),t(r)}}},sL={tokenize:function(e,t,r){let i=this;return a;function a(t){return i.parser.lazy[i.now().line]?r(t):st(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):ss(e,o,"linePrefix",5)(t)}function o(e){let o=i.events[i.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):st(e)?a(e):r(e)}},partial:!0},sA={name:"setextUnderline",tokenize:function(e,t,r){let i;let a=this;return function(t){let s,l=a.events.length;for(;l--;)if("lineEnding"!==a.events[l][1].type&&"linePrefix"!==a.events[l][1].type&&"content"!==a.events[l][1].type){s="paragraph"===a.events[l][1].type;break}return!a.parser.lazy[a.now().line]&&(a.interrupt||s)?(e.enter("setextHeadingLine"),i=t,e.enter("setextHeadingLineSequence"),function t(r){return r===i?(e.consume(r),t):(e.exit("setextHeadingLineSequence"),sr(r)?ss(e,o,"lineSuffix")(r):o(r))}(t)):r(t)};function o(i){return null===i||st(i)?(e.exit("setextHeadingLine"),t(i)):r(i)}},resolveTo:function(e,t){let r,i,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(i=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);let s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}},sI=["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"],sN=["pre","script","style","textarea"],sB={tokenize:function(e,t,r){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(sd,t,r)}},partial:!0},sU={tokenize:function(e,t,r){let i=this;return function(t){return st(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):r(t)};function a(e){return i.parser.lazy[i.now().line]?r(e):t(e)}},partial:!0},sz={tokenize:function(e,t,r){let i=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return i.parser.lazy[i.now().line]?r(e):t(e)}},partial:!0},sH={name:"codeFenced",tokenize:function(e,t,r){let i;let a=this,o={tokenize:function(e,t,r){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),sr(t)?ss(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),function t(a){return a===i?(o++,e.consume(a),t):o>=l?(e.exit("codeFencedFenceSequence"),sr(a)?ss(e,d,"whitespace")(a):d(a)):r(a)}(t)):r(t)}function d(i){return null===i||st(i)?(e.exit("codeFencedFence"),t(i)):r(i)}},partial:!0},s=0,l=0;return function(t){return function(t){let o=a.events[a.events.length-1];return s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(a){return a===i?(l++,e.consume(a),t):l<3?r(a):(e.exit("codeFencedFenceSequence"),sr(a)?ss(e,u,"whitespace")(a):u(a))}(t)}(t)};function u(o){return null===o||st(o)?(e.exit("codeFencedFence"),a.interrupt?t(o):e.check(sz,p,v)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||st(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(a)):sr(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ss(e,d,"whitespace")(a)):96===a&&a===i?r(a):(e.consume(a),t)}(o))}function d(t){return null===t||st(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||st(a)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(a)):96===a&&a===i?r(a):(e.consume(a),t)}(t))}function p(t){return e.attempt(o,v,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&sr(t)?ss(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||st(t)?e.check(sz,p,v)(t):(e.enter("codeFlowValue"),function t(r){return null===r||st(r)?(e.exit("codeFlowValue"),g(r)):(e.consume(r),t)}(t))}function v(r){return e.exit("codeFenced"),t(r)}},concrete:!0},sq={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},sV={}.hasOwnProperty;function sW(e){return!!sV.call(sq,e)&&sq[e]}let s$={name:"characterReference",tokenize:function(e,t,r){let i,a;let o=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,a=o6,d(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=o7,d):(e.enter("characterReferenceValue"),i=7,a=o9,d(t))}function d(l){if(59===l&&s){let i=e.exit("characterReferenceValue");return a!==o6||sW(o.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(l)}return a(l)&&s++1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;let f=Object.assign({},e[r][1].end),m=Object.assign({},e[p][1].start);s2(f,-l),s2(m,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[p][1].start),end:m},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[p][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[p][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=o1(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=o1(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=o1(u,sk(t.parser.constructs.insideSpan.null,e.slice(r+1,p),t)),u=o1(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[p][1].end.offset-e[p][1].start.offset?(d=2,u=o1(u,[["enter",e[p][1],t],["exit",e[p][1],t]])):d=0,o0(e,r-1,p-r+3,u),p=r+u.length-d-2;break}}for(p=-1;++po&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4),a>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},i={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},o0(e,o,a-o+1,[["enter",r,t],["enter",i,t],["exit",i,t],["exit",r,t]])),e}},42:sx,45:[sA,sx],60:{name:"htmlFlow",tokenize:function(e,t,r){let i,a,o,s,l;let u=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),d};function d(s){return 33===s?(e.consume(s),p):47===s?(e.consume(s),a=!0,g):63===s?(e.consume(s),i=3,u.interrupt?t:L):o4(s)?(e.consume(s),o=String.fromCharCode(s),v):r(s)}function p(a){return 45===a?(e.consume(a),i=2,f):91===a?(e.consume(a),i=5,s=0,m):o4(a)?(e.consume(a),i=4,u.interrupt?t:L):r(a)}function f(i){return 45===i?(e.consume(i),u.interrupt?t:L):r(i)}function m(i){let a="CDATA[";return i===a.charCodeAt(s++)?(e.consume(i),s===a.length)?u.interrupt?t:S:m:r(i)}function g(t){return o4(t)?(e.consume(t),o=String.fromCharCode(t),v):r(t)}function v(s){if(null===s||47===s||62===s||sn(s)){let l=47===s,d=o.toLowerCase();return!l&&!a&&sN.includes(d)?(i=1,u.interrupt?t(s):S(s)):sI.includes(o.toLowerCase())?(i=6,l)?(e.consume(s),b):u.interrupt?t(s):S(s):(i=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(s):a?function t(r){return sr(r)?(e.consume(r),t):F(r)}(s):y(s))}return 45===s||o6(s)?(e.consume(s),o+=String.fromCharCode(s),v):r(s)}function b(i){return 62===i?(e.consume(i),u.interrupt?t:S):r(i)}function y(t){return 47===t?(e.consume(t),F):58===t||95===t||o4(t)?(e.consume(t),_):sr(t)?(e.consume(t),y):F(t)}function _(t){return 45===t||46===t||58===t||95===t||o6(t)?(e.consume(t),_):w(t)}function w(t){return 61===t?(e.consume(t),k):sr(t)?(e.consume(t),w):y(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,x):sr(t)?(e.consume(t),k):function t(r){return null===r||34===r||39===r||47===r||60===r||61===r||62===r||96===r||sn(r)?w(r):(e.consume(r),t)}(t)}function x(t){return t===l?(e.consume(t),l=null,E):null===t||st(t)?r(t):(e.consume(t),x)}function E(e){return 47===e||62===e||sr(e)?y(e):r(e)}function F(t){return 62===t?(e.consume(t),C):r(t)}function C(t){return null===t||st(t)?S(t):sr(t)?(e.consume(t),C):r(t)}function S(t){return 45===t&&2===i?(e.consume(t),O):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),A):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),M):st(t)&&(6===i||7===i)?(e.exit("htmlFlowData"),e.check(sB,I,D)(t)):null===t||st(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),S)}function D(t){return e.check(sU,j,I)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||st(t)?D(t):(e.enter("htmlFlowData"),S(t))}function O(t){return 45===t?(e.consume(t),L):S(t)}function P(t){return 47===t?(e.consume(t),o="",R):S(t)}function R(t){if(62===t){let r=o.toLowerCase();return sN.includes(r)?(e.consume(t),A):S(t)}return o4(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),R):S(t)}function M(t){return 93===t?(e.consume(t),L):S(t)}function L(t){return 62===t?(e.consume(t),A):45===t&&2===i?(e.consume(t),L):S(t)}function A(t){return null===t||st(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),A)}function I(r){return e.exit("htmlFlow"),t(r)}},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:sA,95:sx,96:sH,126:sH},s9={38:s$,92:sG},s7={[-5]:sY,[-4]:sY,[-3]:sY,33:sQ,38:s$,42:s1,60:[{name:"autolink",tokenize:function(e,t,r){let i=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return o4(t)?(e.consume(t),o):l(t)}function o(t){return 43===t||45===t||46===t||o6(t)?(i=1,function t(r){return 58===r?(e.consume(r),i=0,s):(43===r||45===r||46===r||o6(r))&&i++<32?(e.consume(r),t):(i=0,l(r))}(t)):l(t)}function s(i){return 62===i?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):null===i||32===i||60===i||o8(i)?r(i):(e.consume(i),s)}function l(t){return 64===t?(e.consume(t),u):o5(t)?(e.consume(t),l):r(t)}function u(a){return o6(a)?function a(o){return 46===o?(e.consume(o),i=0,u):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||o6(o))&&i++<63){let r=45===o?t:a;return e.consume(o),r}return r(o)}(o)}(a):r(a)}}},{name:"htmlText",tokenize:function(e,t,r){let i,a,o;let s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),x):63===t?(e.consume(t),w):o4(t)?(e.consume(t),F):r(t)}function u(t){return 45===t?(e.consume(t),d):91===t?(e.consume(t),a=0,g):o4(t)?(e.consume(t),_):r(t)}function d(t){return 45===t?(e.consume(t),m):r(t)}function p(t){return null===t?r(t):45===t?(e.consume(t),f):st(t)?(o=p,R(t)):(e.consume(t),p)}function f(t){return 45===t?(e.consume(t),m):p(t)}function m(e){return 62===e?P(e):45===e?f(e):p(e)}function g(t){let i="CDATA[";return t===i.charCodeAt(a++)?(e.consume(t),a===i.length?v:g):r(t)}function v(t){return null===t?r(t):93===t?(e.consume(t),b):st(t)?(o=v,R(t)):(e.consume(t),v)}function b(t){return 93===t?(e.consume(t),y):v(t)}function y(t){return 62===t?P(t):93===t?(e.consume(t),y):v(t)}function _(t){return null===t||62===t?P(t):st(t)?(o=_,R(t)):(e.consume(t),_)}function w(t){return null===t?r(t):63===t?(e.consume(t),k):st(t)?(o=w,R(t)):(e.consume(t),w)}function k(e){return 62===e?P(e):w(e)}function x(t){return o4(t)?(e.consume(t),E):r(t)}function E(t){return 45===t||o6(t)?(e.consume(t),E):function t(r){return st(r)?(o=t,R(r)):sr(r)?(e.consume(r),t):P(r)}(t)}function F(t){return 45===t||o6(t)?(e.consume(t),F):47===t||62===t||sn(t)?C(t):r(t)}function C(t){return 47===t?(e.consume(t),P):58===t||95===t||o4(t)?(e.consume(t),S):st(t)?(o=C,R(t)):sr(t)?(e.consume(t),C):P(t)}function S(t){return 45===t||46===t||58===t||95===t||o6(t)?(e.consume(t),S):function t(r){return 61===r?(e.consume(r),D):st(r)?(o=t,R(r)):sr(r)?(e.consume(r),t):C(r)}(t)}function D(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,j):st(t)?(o=D,R(t)):sr(t)?(e.consume(t),D):(e.consume(t),T)}function j(t){return t===i?(e.consume(t),i=void 0,O):null===t?r(t):st(t)?(o=j,R(t)):(e.consume(t),j)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||sn(t)?C(t):(e.consume(t),T)}function O(e){return 47===e||62===e||sn(e)?C(e):r(e)}function P(i){return 62===i?(e.consume(i),e.exit("htmlTextData"),e.exit("htmlText"),t):r(i)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return sr(t)?ss(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),o(t)}}}],91:s3,92:[{name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),i};function i(i){return st(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}},sG],93:sK,95:s1,96:{name:"codeText",tokenize:function(e,t,r){let i,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(r){return 96===r?(e.consume(r),o++,t):(e.exit("codeTextSequence"),s(r))}(t)};function s(u){return null===u?r(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),s):96===u?(a=e.enter("codeTextSequence"),i=0,function r(s){return 96===s?(e.consume(s),i++,r):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(a.type="codeTextData",l(s))}(u)):st(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(u))}function l(t){return null===t||32===t||96===t||st(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}},resolve:function(e){let t,r,i=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[i][1].type||"space"===e[i][1].type)){for(t=a;++t13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(65535&r)==65535||(65535&r)==65534||r>1114111?"�":String.fromCharCode(r)}let la=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lo(e){return e.replace(la,ls)}function ls(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){let e=r.charCodeAt(1),t=120===e||88===e;return li(r.slice(t?2:1),t?16:10)}return sW(r)||e}let ll={}.hasOwnProperty,lc=function(e,t,r){let i,a,o,s;return"string"!=typeof t&&(r=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(k),autolinkProtocol:f,autolinkEmail:f,atxHeading:o(y),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:f,characterReference:f,codeFenced:o(b),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(b,s),codeText:o(function(){return{type:"inlineCode",value:""}},s),codeTextData:f,data:f,codeFlowValue:f,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(_),hardBreakTrailing:o(_),htmlFlow:o(w,s),htmlFlowData:f,htmlText:o(w,s),htmlTextData:f,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:s,link:o(k),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){r.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),r.expectingFirstListItemValue=void 0)},listOrdered:o(x,function(){r.expectingFirstListItemValue=!0}),listUnordered:o(x),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){r.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(y),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:u(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let r=this.sliceSerialize(e).length;t.depth=r}},autolink:u(),autolinkEmail:function(e){m.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){m.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:u(),characterEscapeValue:m,characterReferenceMarkerHexadecimal:v,characterReferenceMarkerNumeric:v,characterReferenceValue:function(e){let t;let i=this.sliceSerialize(e),a=r.characterReferenceType;a?(t=li(i,"characterReferenceMarkerNumeric"===a?10:16),r.characterReferenceType=void 0):t=sW(i);let o=this.stack.pop();o.value+=t,o.position.end=lu(e.end)},codeFenced:u(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r.flowCodeInside=void 0}),codeFencedFence:function(){!r.flowCodeInside&&(this.buffer(),r.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:m,codeIndented:u(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:u(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:m,data:m,definition:u(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=sP(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:u(),hardBreakEscape:u(g),hardBreakTrailing:u(g),htmlFlow:u(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:m,htmlText:u(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:m,image:u(function(){let e=this.stack[this.stack.length-1];if(r.inReference){let t=r.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;r.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),i=this.stack[this.stack.length-1];if(r.inReference=!0,"link"===i.type){let t=e.children;i.children=t}else i.alt=t},labelText:function(e){let t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=lo(t),r.identifier=sP(t).toLowerCase()},lineEnding:function(e){let i=this.stack[this.stack.length-1];if(r.atHardBreak){i.children[i.children.length-1].position.end=lu(e.end),r.atHardBreak=void 0;return}!r.setextHeadingSlurpLineEnding&&t.canContainEols.includes(i.type)&&(f.call(this,e),m.call(this,e))},link:u(function(){let e=this.stack[this.stack.length-1];if(r.inReference){let t=r.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;r.referenceType=void 0}),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:function(e){let t=this.resume(),i=this.stack[this.stack.length-1];i.label=t,i.identifier=sP(this.sliceSerialize(e)).toLowerCase(),r.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){r.inReference=void 0},setextHeading:u(function(){r.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){r.setextHeadingSlurpLineEnding=!0},strong:u(),thematicBreak:u()}};(function e(t,r){let i=-1;for(;++i0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ld).call(o,void 0,e[0])}for(r.position={start:lu(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lu(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f-1){let e=r[0];"string"==typeof e?r[0]=e.slice(a):r.shift()}s>0&&r.push(e[o].slice(0,s))}return r}(s,e)}function m(){let{line:e,column:t,offset:r,_index:a,_bufferIndex:o}=i;return{line:e,column:t,offset:r,_index:a,_bufferIndex:o}}function g(e,t){t.restore()}function v(e,t){return function(r,a,o){let s,p,f,g;return Array.isArray(r)?v(r):"tokenize"in r?v([r]):function(e){let t=null!==e&&r[e],i=null!==e&&r.null;return v([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(i)?i:i?[i]:[]])(e)};function v(e){return(s=e,p=0,0===e.length)?o:b(e[p])}function b(e){return function(r){return(g=function(){let e=m(),t=d.previous,r=d.currentConstruct,a=d.events.length,o=Array.from(l);return{restore:function(){i=e,d.previous=t,d.currentConstruct=r,d.events.length=a,l=o,y()},from:a}}(),f=e,e.partial||(d.currentConstruct=e),e.name&&d.parser.constructs.disable.null.includes(e.name))?w(r):e.tokenize.call(t?Object.assign(Object.create(d),t):d,u,_,w)(r)}}function _(t){return e(f,g),a}function w(e){return(g.restore(),++plc(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}function lf(e){let t=[],r=-1,i=0,a=0;for(;++r55295&&o<57344){let t=e.charCodeAt(r+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),a=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(i)}let lh=function(e){if(null==e)return lg;if("string"==typeof e)return lm(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],r=-1;for(;++r":"")+"\x1b[39m)"})}return p;function p(){var d;let p,f,m,g=[];if((!t||a(s,l,u[u.length-1]||null))&&!1===(g=Array.isArray(d=r(s,u))?d:"number"==typeof d?[!0,d]:[d])[0])return g;if(s.children&&"skip"!==g[0])for(f=(i?s.children.length:-1)+o,m=u.concat(s);f>-1&&f-1?r.offset:null}}}let lk={}.hasOwnProperty;function lx(e){return String(e||"").toUpperCase()}function lE(e,t){let r;let i=String(t.identifier).toUpperCase(),a=lf(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);-1===o?(e.footnoteOrder.push(i),e.footnoteCounts[i]=1,r=e.footnoteOrder.length):(e.footnoteCounts[i]++,r=o+1);let s=e.footnoteCounts[i],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+a,id:e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function lF(e,t){let r=t.referenceType,i="]";if("collapsed"===r?i+="[]":"full"===r&&(i+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+i};let a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});let s=a[a.length-1];return s&&"text"===s.type?s.value+=i:a.push({type:"text",value:i}),a}function lC(e){let t=e.spread;return null==t?e.children.length>1:t}function lS(e,t,r){let i=0,a=e.length;if(t){let t=e.codePointAt(i);for(;9===t||32===t;)i++,t=e.codePointAt(i)}if(r){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}let lD={blockquote:function(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){let r=t.value?t.value+"\n":"",i=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,a={};i&&(a.className=["language-"+i]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};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 r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:lE,footnote:function(e,t){let r=e.footnoteById,i=1;for(;(i in r);)i++;let a=String(i);return r[a]={type:"footnoteDefinition",identifier:a,children:[{type:"paragraph",children:t.children}],position:t.position},lE(e,{type:"footnoteReference",identifier:a,position:t.position})},heading:function(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.dangerous){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}return null},imageReference:function(e,t){let r=e.definition(t.identifier);if(!r)return lF(e,t);let i={src:lf(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let r={src:lf(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);let i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},inlineCode:function(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)},linkReference:function(e,t){let r=e.definition(t.identifier);if(!r)return lF(e,t);let i={href:lf(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let r={href:lf(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);let i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},listItem:function(e,t,r){let i=e.all(t),a=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let r=e.children,i=-1;for(;!t&&++i0&&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 l=-1;for(;++l0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=ly(t.children[1]),s=l_(t.children[t.children.length-1]);o.line&&s.line&&(i.position={start:o,end:s}),a.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){let i=r?r.children:void 0,a=0===(i?i.indexOf(t):1)?"th":"td",o=r&&"table"===r.type?r.align:void 0,s=o?o.length:t.children.length,l=-1,u=[];for(;++l0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return o.push(lS(t.slice(a),a>0,!1)),o.join("")}(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:lj,yaml:lj,definition:lj,footnoteDefinition:lj};function lj(){return null}let lT={}.hasOwnProperty;function lO(e,t){e.position&&(t.position={start:ly(e),end:l_(e)})}function lP(e,t){let r=t;if(e&&e.data){let t=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:[]}),"element"===r.type&&a&&(r.properties={...r.properties,...a}),"children"in r&&r.children&&null!=i&&(r.children=i)}return r}function lR(e,t,r){let i=t&&t.type;if(!i)throw Error("Expected node, got `"+t+"`");return lT.call(e.handlers,i)?e.handlers[i](e,t,r):e.passThrough&&e.passThrough.includes(i)?"children"in t?{...t,children:lM(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,r):function(e,t){let r=t.data||{},i="value"in t&&!(lT.call(r,"hProperties")||lT.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:lM(e,t)};return e.patch(t,i),e.applyData(t,i)}(e,t)}function lM(e,t){let r=[];if("children"in t){let i=t.children,a=-1;for(;++a0&&r.push({type:"text",value:"\n"}),r}function lA(e,t){let r=function(e,t){let r=t||{},i=r.allowDangerousHtml||!1,a={};return s.dangerous=i,s.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,s.footnoteLabel=r.footnoteLabel||"Footnotes",s.footnoteLabelTagName=r.footnoteLabelTagName||"h2",s.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},s.footnoteBackLabel=r.footnoteBackLabel||"Back to content",s.unknownHandler=r.unknownHandler,s.passThrough=r.passThrough,s.handlers={...lD,...r.handlers},s.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return lb(e,"definition",e=>{let r=lx(e.identifier);r&&!lk.call(t,r)&&(t[r]=e)}),function(e){let r=lx(e);return r&&lk.call(t,r)?t[r]:null}}(e),s.footnoteById=a,s.footnoteOrder=[],s.footnoteCounts={},s.patch=lO,s.applyData=lP,s.one=function(e,t){return lR(s,e,t)},s.all=function(e){return lM(s,e)},s.wrap=lL,s.augment=o,lb(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();lT.call(a,t)||(a[t]=e)}),s;function o(e,t){if(e&&"data"in e&&e.data){let r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){let r="type"in e?e:{position:e};!r||!r.position||!r.position.start||!r.position.start.line||!r.position.start.column||!r.position.end||!r.position.end.line||!r.position.end.column||(t.position={start:ly(r),end:l_(r)})}return t}function s(e,t,r,i){return Array.isArray(r)&&(i=r,r={}),o(e,{type:"element",tagName:t,properties:r||{},children:i||[]})}}(e,t),i=r.one(e,null),a=function(e){let t=[],r=-1;for(;++r1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(t)}let d=a[a.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...u)}else a.push(...u);let p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+s},children:e.wrap(a,!0)};e.patch(i,p),t.push(p)}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"}]}}(r);return a&&i.children.push({type:"text",value:"\n"},a),Array.isArray(i)?{type:"root",children:i}:i}let lI=function(e,t){var r;return e&&"run"in e?(r,i,a)=>{e.run(lA(r,t),i,e=>{a(e)})}:(r=e||t,e=>lA(e,r))};var lN=r(78439),lB=r.n(lN);class lU{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function lz(e,t){let r={},i={},a=-1;for(;++a"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),l4=l2({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function l6(e,t){return t in e?e[t]:t}function l5(e,t){return l6(e,t.toLowerCase())}let l8=l2({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:l5,properties:{xmlns:null,xmlnsXLink:null}}),l9=l2({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:l$,ariaAutoComplete:null,ariaBusy:l$,ariaChecked:l$,ariaColCount:lY,ariaColIndex:lY,ariaColSpan:lY,ariaControls:lK,ariaCurrent:null,ariaDescribedBy:lK,ariaDetails:null,ariaDisabled:l$,ariaDropEffect:lK,ariaErrorMessage:null,ariaExpanded:l$,ariaFlowTo:lK,ariaGrabbed:l$,ariaHasPopup:null,ariaHidden:l$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lK,ariaLevel:lY,ariaLive:null,ariaModal:l$,ariaMultiLine:l$,ariaMultiSelectable:l$,ariaOrientation:null,ariaOwns:lK,ariaPlaceholder:null,ariaPosInSet:lY,ariaPressed:l$,ariaReadOnly:l$,ariaRelevant:null,ariaRequired:l$,ariaRoleDescription:lK,ariaRowCount:lY,ariaRowIndex:lY,ariaRowSpan:lY,ariaSelected:l$,ariaSetSize:lY,ariaSort:null,ariaValueMax:lY,ariaValueMin:lY,ariaValueNow:lY,ariaValueText:null,role:null}}),l7=l2({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:l5,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lZ,acceptCharset:lK,accessKey:lK,action:null,allow:null,allowFullScreen:lW,allowPaymentRequest:lW,allowUserMedia:lW,alt:null,as:null,async:lW,autoCapitalize:null,autoComplete:lK,autoFocus:lW,autoPlay:lW,blocking:lK,capture:null,charSet:null,checked:lW,cite:null,className:lK,cols:lY,colSpan:null,content:null,contentEditable:l$,controls:lW,controlsList:lK,coords:lY|lZ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lW,defer:lW,dir:null,dirName:null,disabled:lW,download:lG,draggable:l$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lW,formTarget:null,headers:lK,height:lY,hidden:lW,high:lY,href:null,hrefLang:null,htmlFor:lK,httpEquiv:lK,id:null,imageSizes:null,imageSrcSet:null,inert:lW,inputMode:null,integrity:null,is:null,isMap:lW,itemId:null,itemProp:lK,itemRef:lK,itemScope:lW,itemType:lK,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lW,low:lY,manifest:null,max:null,maxLength:lY,media:null,method:null,min:null,minLength:lY,multiple:lW,muted:lW,name:null,nonce:null,noModule:lW,noValidate:lW,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:lW,optimum:lY,pattern:null,ping:lK,placeholder:null,playsInline:lW,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:lW,referrerPolicy:null,rel:lK,required:lW,reversed:lW,rows:lY,rowSpan:lY,sandbox:lK,scope:null,scoped:lW,seamless:lW,selected:lW,shadowRootClonable:lW,shadowRootDelegatesFocus:lW,shadowRootMode:null,shape:null,size:lY,sizes:null,slot:null,span:lY,spellCheck:l$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:lY,step:null,style:null,tabIndex:lY,target:null,title:null,translate:null,type:null,typeMustMatch:lW,useMap:null,value:l$,width:lY,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lK,axis:null,background:null,bgColor:null,border:lY,borderColor:null,bottomMargin:lY,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:lW,declare:lW,event:null,face:null,frame:null,frameBorder:null,hSpace:lY,leftMargin:lY,link:null,longDesc:null,lowSrc:null,marginHeight:lY,marginWidth:lY,noResize:lW,noHref:lW,noShade:lW,noWrap:lW,object:null,profile:null,prompt:null,rev:null,rightMargin:lY,rules:null,scheme:null,scrolling:l$,standby:null,summary:null,text:null,topMargin:lY,valueType:null,version:null,vAlign:null,vLink:null,vSpace:lY,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:lW,disableRemotePlayback:lW,prefix:null,property:null,results:lY,security:null,unselectable:null}}),ce=l2({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:l6,properties:{about:lJ,accentHeight:lY,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:lY,amplitude:lY,arabicForm:null,ascent:lY,attributeName:null,attributeType:null,azimuth:lY,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:lY,by:null,calcMode:null,capHeight:lY,className:lK,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:lY,diffuseConstant:lY,direction:null,display:null,dur:null,divisor:lY,dominantBaseline:null,download:lW,dx:null,dy:null,edgeMode:null,editable:null,elevation:lY,enableBackground:null,end:null,event:null,exponent:lY,externalResourcesRequired:null,fill:null,fillOpacity:lY,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:lZ,g2:lZ,glyphName:lZ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:lY,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:lY,horizOriginX:lY,horizOriginY:lY,id:null,ideographic:lY,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:lY,k:lY,k1:lY,k2:lY,k3:lY,k4:lY,kernelMatrix:lJ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:lY,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:lY,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:lY,overlineThickness:lY,paintOrder:null,panose1:null,path:null,pathLength:lY,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lK,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:lY,pointsAtY:lY,pointsAtZ:lY,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lJ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lJ,rev:lJ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lJ,requiredFeatures:lJ,requiredFonts:lJ,requiredFormats:lJ,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:lY,specularExponent:lY,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:lY,strikethroughThickness:lY,string:null,stroke:null,strokeDashArray:lJ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:lY,strokeOpacity:lY,strokeWidth:null,style:null,surfaceScale:lY,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:lJ,tabIndex:lY,tableValues:null,target:null,targetX:lY,targetY:lY,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:lJ,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:lY,underlineThickness:lY,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:lY,values:null,vAlphabetic:lY,vMathematical:lY,vectorEffect:null,vHanging:lY,vIdeographic:lY,version:null,vertAdvY:lY,vertOriginX:lY,vertOriginY:lY,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:lY,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ct=lz([l4,l3,l8,l9,l7],"html"),cn=lz([l4,l3,l8,l9,ce],"svg");function cr(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=>{lb(t,"element",(t,r,i)=>{let a;if(e.allowedElements?a=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(t.tagName)),!a&&e.allowElement&&"number"==typeof r&&(a=!e.allowElement(t,r,i)),a&&"number"==typeof r)return e.unwrapDisallowed&&t.children?i.children.splice(r,1,...t.children):i.children.splice(r,1),r})}}var ci=r(68167);let ca=/^data[-\w.:]+$/i,co=/-[a-z]/g,cs=/[A-Z]/g;function cl(e){return"-"+e.toLowerCase()}function cc(e){return e.charAt(1).toUpperCase()}let cu={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 cd=r(69200);let cp=["http","https","mailto","tel"];function cf(e){let t=(e||"").trim(),r=t.charAt(0);if("#"===r||"/"===r)return t;let i=t.indexOf(":");if(-1===i)return t;let a=-1;for(;++aa||-1!==(a=t.indexOf("#"))&&i>a?t:"javascript:void(0)"}let ch={}.hasOwnProperty,cm=new Set(["table","thead","tbody","tfoot","tr"]);function cg(e,t){let r=-1,i=0;for(;++r for more info)`),delete cy[t]}let t=oH().use(lp).use(e.remarkPlugins||[]).use(lI,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(cr,e),r=new oL;"string"==typeof e.children?r.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 i=t.runSync(t.parse(r),r);if("root"!==i.type)throw TypeError("Expected a `root` node");let a=el.createElement(el.Fragment,{},function e(t,r){let i;let a=[],o=-1;for(;++o4&&"data"===r.slice(0,4)&&ca.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(co,cc);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!co.test(e)){let r=e.replace(cs,cl);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}a=l0}return new a(i,t)}(i.schema,t),o=r;null!=o&&o==o&&(Array.isArray(o)&&(o=a.commaSeparated?function(e,t){let r={};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}(o):o.join(" ").trim()),"style"===a.property&&"string"==typeof o&&(o=function(e){let t={};try{cd(e,function(e,r){t[("-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e).replace(/-([a-z])/g,cv)]=r})}catch{}return t}(o)),a.space&&a.property?e[ch.call(cu,a.property)?cu[a.property]:a.property]=o:a.attribute&&(e[a.attribute]=o))}(p,o,r.properties[o],t);("ol"===d||"ul"===d)&&t.listDepth++;let m=e(t,r);("ol"===d||"ul"===d)&&t.listDepth--,t.schema=u;let g=r.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},v=s.components&&ch.call(s.components,d)?s.components[d]:d,b="string"==typeof v||v===el.Fragment;if(!ci.isValidElementType(v))throw TypeError(`Component for name \`${d}\` not defined or is not renderable`);if(p.key=i,"a"===d&&s.linkTarget&&(p.target="function"==typeof s.linkTarget?s.linkTarget(String(p.href||""),r.children,"string"==typeof p.title?p.title:null):s.linkTarget),"a"===d&&l&&(p.href=l(String(p.href||""),r.children,"string"==typeof p.title?p.title:null)),b||"code"!==d||"element"!==a.type||"pre"===a.tagName||(p.inline=!0),b||"h1"!==d&&"h2"!==d&&"h3"!==d&&"h4"!==d&&"h5"!==d&&"h6"!==d||(p.level=Number.parseInt(d.charAt(1),10)),"img"===d&&s.transformImageUri&&(p.src=s.transformImageUri(String(p.src||""),String(p.alt||""),"string"==typeof p.title?p.title:null)),!b&&"li"===d&&"element"===a.type){let e=function(e){let t=-1;for(;++t0?el.createElement(v,p,m):el.createElement(v,p)}(t,i,o,r)):"text"===i.type?"element"===r.type&&cm.has(r.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,"")}(i)||a.push(i.value):"raw"!==i.type||t.options.skipHtml||a.push(i.value);return a}({options:e,schema:ct,listDepth:0},i));return e.className&&(a=el.createElement("div",{className:e.className},a)),a}c_.propTypes={children:lN.string,className:lN.string,allowElement:lN.func,allowedElements:lN.arrayOf(lN.string),disallowedElements:lN.arrayOf(lN.string),unwrapDisallowed:lN.bool,remarkPlugins:lN.arrayOf(lN.oneOfType([lN.object,lN.func,lN.arrayOf(lN.oneOfType([lN.bool,lN.string,lN.object,lN.func,lN.arrayOf(lN.any)]))])),rehypePlugins:lN.arrayOf(lN.oneOfType([lN.object,lN.func,lN.arrayOf(lN.oneOfType([lN.bool,lN.string,lN.object,lN.func,lN.arrayOf(lN.any)]))])),sourcePos:lN.bool,rawSourcePos:lN.bool,skipHtml:lN.bool,includeElementIndex:lN.bool,transformLinkUri:lN.oneOfType([lN.func,lN.bool]),linkTarget:lN.oneOfType([lN.func,lN.string]),transformImageUri:lN.func,components:lN.object};var cw=function(e,t,r){void 0===r&&(r="en");var i,a,o=e.state.messages[e.state.messages.length-1],s=(null===(i=null==o?void 0:o.i18n)||void 0===i?void 0:i["".concat(r,"_text")])||(null==o?void 0:o.text);return o?o.deleted_at?t("Message deleted"):s?ec().createElement(c_,{skipHtml:!0},s):o.command?"/".concat(o.command):t((null===(a=o.attachments)||void 0===a?void 0:a.length)?"\uD83C\uDFD9 Attachment...":"Empty message..."):t("Nothing yet...")},ck=function(e,t){var r,i,a=null===(r=e.data)||void 0===r?void 0:r.name,o=Object.values(e.state.members);if(!a&&2===o.length){var s=o.find(function(e){var r;return(null===(r=e.user)||void 0===r?void 0:r.id)!==(null==t?void 0:t.id)});(null===(i=null==s?void 0:s.user)||void 0===i?void 0:i.name)&&(a=s.user.name)}return a},cx=function(e,t){var r,i,a=null===(r=e.data)||void 0===r?void 0:r.image,o=Object.values(e.state.members);if(!a&&2===o.length){var s=o.find(function(e){var r;return(null===(r=e.user)||void 0===r?void 0:r.id)!==(null==t?void 0:t.id)});(null===(i=null==s?void 0:s.user)||void 0===i?void 0:i.image)&&(a=s.user.image)}return a},cE=function(e){var t=e.channel,r=e.overrideImage,i=e.overrideTitle,a=a4("ChannelPreview").client,o=(0,el.useState)(ck(t,a.user)),s=o[0],l=o[1],u=(0,el.useState)(cx(t,a.user)),d=u[0],p=u[1];return(0,el.useEffect)(function(){var e=function(){l(function(e){var r=ck(t,a.user);return e!==r?r:e}),p(function(e){var r=cx(t,a.user);return e!==r?r:e})};return a.on("user.updated",e),function(){a.off("user.updated",e)}},[]),{displayImage:r||d,displayTitle:i||s}};!function(e){e.DELIVERED="delivered",e.READ="read"}(w||(w={}));var cF=function(e){var t=e.channel,r=e.lastMessage,i=a4().client,a=(0,el.useState)(),o=a[0],s=a[1],l=(0,el.useCallback)(function(e){var t;return i.user&&(null===(t=null==e?void 0:e.user)||void 0===t?void 0:t.id)===i.user.id},[i]);return(0,el.useEffect)(function(){var e=l(r);if((null==r?void 0:r.created_at)&&e){var a="string"==typeof r.created_at?new Date(r.created_at):r.created_at;s(Object.values(t.state.read).some(function(e){var t=e.last_read,r=e.user;return i.user&&r.id!==i.user.id&&a0}),"data-testid":"channel-search"},"2"===w?ec().createElement(void 0===u?cI:u,{activateSearch:x,AppMenu:t,ClearInputIcon:r,clearState:E,disabled:_.disabled,exitSearch:F,ExitSearchIcon:i,inputIsFocused:C,inputRef:S,MenuIcon:a,onSearch:D,placeholder:o,query:j,searchBarRef:O,SearchInput:f,SearchInputIcon:g}):ec().createElement(f,{clearState:E,disabled:_.disabled,inputRef:S,onSearch:D,placeholder:o,query:j}),j&&ec().createElement(cq,{popupResults:l,results:T,SearchEmpty:d,searching:P,SearchLoading:m,SearchResultItem:v,SearchResultsHeader:y,SearchResultsList:b,selectResult:R}))}),cW=function(){return ec().createElement("svg",{"data-testid":"chat-bubble",fill:"none",height:"96",viewBox:"0 0 136 136",width:"96",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{d:"M106 24.5H30C24.775 24.5 20.5 28.775 20.5 34V119.5L39.5 100.5H106C111.225 100.5 115.5 96.225 115.5 91V34C115.5 28.775 111.225 24.5 106 24.5ZM106 91H39.5L30 100.5V34H106V91Z",fill:"#B4B7BB"}))},c$=ec().memo(function(e){var t=e.listType,r=aZ("EmptyStateIndicator").t;if("thread"===t)return null;if("channel"===t){var i=r("You have no channels currently");return ec().createElement(ec().Fragment,null,ec().createElement("div",{className:"str-chat__channel-list-empty"},ec().createElement(cW,null),ec().createElement("p",{role:"listitem"},i)),ec().createElement("p",{className:"str-chat__channel-list-empty-v1",role:"listitem"},i))}if("message"===t){var i=r("No chats here yet…");return ec().createElement("div",{className:"str-chat__empty-channel"},ec().createElement(cW,null),ec().createElement("p",{className:"str-chat__empty-channel-text",role:"listitem"},i))}return ec().createElement("p",null,"No items exist")}),cG=ec().memo(function(e){var t=e.color,r=void 0===t?"#006CFF":t,i=e.size,a=void 0===i?15:i;return ec().createElement("div",{className:"str-chat__loading-indicator","data-testid":"loading-indicator-wrapper",style:{height:a,width:a}},ec().createElement("svg",{height:a,viewBox:"0 0 30 30",width:a,xmlns:"http://www.w3.org/2000/svg"},ec().createElement("defs",null,ec().createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"100%"},ec().createElement("stop",{offset:"0%",stopColor:"#FFF",stopOpacity:"0"}),ec().createElement("stop",{"data-testid":"loading-indicator-circle",offset:"100%",stopColor:r,stopOpacity:"1",style:{stopColor:r}}))),ec().createElement("path",{d:"M2.518 23.321l1.664-1.11A12.988 12.988 0 0 0 15 28c7.18 0 13-5.82 13-13S22.18 2 15 2V0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-5.206 0-9.792-2.652-12.482-6.679z",fill:"url(#a)",fillRule:"evenodd"})))},function(e,t){return e.color===t.color&&e.size===t.size}),cY=function(e,t){e.forEach(function(e){var r=[Object.entries(e[0])[0],Object.entries(e[1])[0]],i=r[0],a=i[0],o=i[1],s=r[1],l=s[0],u=s[1];(void 0!==o&&void 0===u||void 0!==o&&void 0!==u)&&console.warn("[Deprecation notice (".concat(t,")]: prefer using prop ").concat(l," instead of ").concat(a))})},cK=ec().memo(function(e){var t=e.children,r=e.isLoading,i=e.onClick,a=e.refreshing,o=aZ("UnMemoizedLoadMoreButton").t,s=null!=t?t:o("Load more"),l=void 0!==r?r:a;return(0,el.useEffect)(function(){cY([[{refreshing:a},{isLoading:r}]],"LoadMoreButton")},[]),ec().createElement("div",{className:"str-chat__load-more-button"},ec().createElement("button",{"aria-label":"Load More Channels",className:"str-chat__load-more-button__button str-chat__cta-button","data-testid":"load-more-button",disabled:l,onClick:i},l?ec().createElement(cG,null):s))}),cZ=ec().memo(function(e){var t=e.children,r=e.hasNextPage,i=e.isLoading,a=e.LoadMoreButton,o=e.loadNextPage,s=e.refreshing,l=e.reverse,u=void 0!==i?i:s;return(0,el.useEffect)(function(){cY([[{refreshing:s},{isLoading:i}]],"LoadMorePaginator")},[]),ec().createElement(ec().Fragment,null,!l&&t,r&&ec().createElement(void 0===a?cK:a,{isLoading:u,onClick:o}),l&&t)}),cJ=(0,el.createContext)(void 0),cX=function(e){var t=e.children,r=e.value;return ec().createElement(cJ.Provider,{value:r},t)},cQ={},c0={},c1={},c2=ec().memo(function(e){var t,r,i=e.additionalChannelSearchProps,a=e.Avatar,o=void 0===a?ok:a,s=e.allowNewMessagesFromUnfilteredChannels,l=e.channelRenderFilterFn,u=e.ChannelSearch,d=e.customActiveChannel,p=e.EmptyStateIndicator,f=void 0===p?c$:p,m=e.filters,g=e.LoadingErrorIndicator,v=e.LoadingIndicator,b=e.List,y=e.lockChannelOrder,_=e.onAddedToChannel,w=e.onChannelDeleted,k=e.onChannelHidden,x=e.onChannelTruncated,E=e.onChannelUpdated,F=e.onChannelVisible,C=e.onMessageNew,S=e.onRemovedFromChannel,D=e.options,j=e.Paginator,T=e.Preview,O=e.recoveryThrottleIntervalMs,P=e.renderChannels,R=e.sendChannelsToList,M=e.setActiveChannelOnMount,L=void 0===M||M,A=e.showChannelSearch,I=e.sort,N=e.watchers,B=void 0===N?{}:N,U=a4("ChannelList"),z=U.channel,H=U.channelsQueryState,q=U.client,V=U.closeMobileNav,W=U.customClasses,$=U.navOpen,G=void 0!==$&&$,Y=U.setActiveChannel,K=U.theme,Z=U.useImageFlagEmojisOnWindows,J=(0,el.useRef)(null),X=(0,el.useState)(0),Q=X[0],ee=X[1],et=(0,el.useState)(!1),en=et[0],er=et[1],ei=function(){return ee(function(e){return e+1})},ea=(0,el.useCallback)(function(e){var t;e.target.value?er(!0):er(!1),null===(t=null==i?void 0:i.onSearch)||void 0===t||t.call(i,e)},[]),eo=(0,el.useCallback)(function(){var e;er(!1),null===(e=null==i?void 0:i.onSearchExit)||void 0===e||e.call(i)},[]),es=oy(q,m||cQ,(void 0===I?c1:I)||c1,D||c0,function(e,t){return il(void 0,void 0,void 0,function(){var r;return ic(this,function(i){switch(i.label){case 0:if(!e.length||e.length>((null==D?void 0:D.limit)||30))return[2];if(!d)return[3,3];if(r=e.find(function(e){return e.id===d}))return[3,2];return[4,q.queryChannels({id:d})];case 1:r=i.sent()[0],i.label=2;case 2:return r&&(Y(r,B),t(of({activeChannel:r,channels:e,cid:r.cid}))),[2];case 3:return L&&Y(e[0],B),[2]}})})},O),eu=es.channels,ed=es.hasNextPage,ep=es.loadNextPage,ef=es.setChannels,eh=l?l(eu):eu;om(J,G,V),oh(ef,y,s),ov(ef,C,s),og(ef,_,s),ob(ef,S),on(ef,w),or(ef,k),od(ef,F),oi(ef,x,ei),oa(ef,E,ei),op(ei),o_(ef),(0,el.useEffect)(function(){var e=function(e){e.cid===(null==z?void 0:z.cid)&&Y()};return q.on("channel.deleted",e),q.on("channel.hidden",e),function(){q.off("channel.deleted",e),q.off("channel.hidden",e)}},[null==z?void 0:z.cid]);var em=function(e){var t={activeChannel:z,Avatar:o,channel:e,channelUpdateCount:Q,key:e.id,Preview:T,setActiveChannel:Y,watchers:B};return ec().createElement(cC,io({},t))},eg=a5(null!==(t=null==W?void 0:W.chat)&&void 0!==t?t:"str-chat",K,null!==(r=null==W?void 0:W.channelList)&&void 0!==r?r:"str-chat-channel-list str-chat__channel-list str-chat__channel-list-react",{"str-chat--windows-flags":Z&&navigator.userAgent.match(/Win/),"str-chat-channel-list--open":G}),ev=!en||(null==i?void 0:i.popupResults);return ec().createElement(cX,{value:{channels:eu,setChannels:ef}},ec().createElement("div",{className:eg,ref:J},void 0!==A&&A&&ec().createElement(void 0===u?cV:u,io({onSearch:ea,onSearchExit:eo,setChannels:ef},i)),ev&&ec().createElement(void 0===b?ot:b,{error:H.error,loadedChannels:void 0!==R&&R?eh:void 0,loading:!!H.queryInProgress&&["reload","uninitialized"].includes(H.queryInProgress),LoadingErrorIndicator:void 0===g?a9:g,LoadingIndicator:void 0===v?oe:v,setChannels:ef},(null==eh?void 0:eh.length)?ec().createElement(void 0===j?cZ:j,{hasNextPage:ed,isLoading:"load-more"===H.queryInProgress,loadNextPage:ep},P?P(eh,em):eh.map(function(e){return em(e)})):ec().createElement(f,{listType:"channel"}))))}),c3=r(91594),c4=r.n(c3);let c6=e=>{!i||i.lengthi.length&&(n1.randomFillSync(i),a=0),a+=e},c5=e=>(c6(e-=0),i.subarray(a-e,a)),c8=(e,t,r)=>{let i=(2<<31-Math.clz32(e.length-1|1))-1,a=Math.ceil(1.6*i*t/e.length);return (o=t)=>{let s="";for(;;){let t=r(a),l=a;for(;l--;)if((s+=e[t[l]&i]||"").length===o)return s}}},c9=(e=21)=>{c6(e-=0);let t="";for(let r=a-e;r{for(let r in t)e[r]=t[r];return e},uh="numeric",um="ascii",ug="alpha",uv="asciinumeric",ub="alphanumeric",uy="domain",u_="emoji",uw="whitespace";function uk(e,t,r){for(let i in t[uh]&&(t[uv]=!0,t[ub]=!0),t[um]&&(t[uv]=!0,t[ug]=!0),t[uv]&&(t[ub]=!0),t[ug]&&(t[ub]=!0),t[ub]&&(t[uy]=!0),t[u_]&&(t[uy]=!0),t){let t=(i in r||(r[i]=[]),r[i]);0>t.indexOf(e)&&t.push(e)}}function ux(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}ux.groups={},ux.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t=0&&(r[i]=!0);return r}(a.t,i),r),i):r&&uk(t,r,i)),a.t=t),this.j[e]=a,a}};let uE=(e,t,r,i,a)=>e.ta(t,r,i,a),uF=(e,t,r,i,a)=>e.tr(t,r,i,a),uC=(e,t,r,i,a)=>e.ts(t,r,i,a),uS=(e,t,r,i,a)=>e.tt(t,r,i,a),uD="WORD",uj="UWORD",uT="LOCALHOST",uO="UTLD",uP="SCHEME",uR="SLASH_SCHEME",uM="OPENBRACE",uL="CLOSEBRACE",uA="OPENBRACKET",uI="CLOSEBRACKET",uN="OPENPAREN",uB="CLOSEPAREN",uU="OPENANGLEBRACKET",uz="CLOSEANGLEBRACKET",uH="FULLWIDTHLEFTPAREN",uq="FULLWIDTHRIGHTPAREN",uV="LEFTCORNERBRACKET",uW="RIGHTCORNERBRACKET",u$="LEFTWHITECORNERBRACKET",uG="RIGHTWHITECORNERBRACKET",uY="FULLWIDTHLESSTHAN",uK="FULLWIDTHGREATERTHAN",uZ="AMPERSAND",uJ="APOSTROPHE",uX="ASTERISK",uQ="BACKSLASH",u0="BACKTICK",u1="CARET",u2="COLON",u3="COMMA",u4="DOLLAR",u6="EQUALS",u5="EXCLAMATION",u8="HYPHEN",u9="PERCENT",u7="PIPE",de="PLUS",dt="POUND",dn="QUERY",dr="QUOTE",di="SEMI",da="SLASH",ds="TILDE",dl="UNDERSCORE",dc="EMOJI";var du=Object.freeze({__proto__:null,WORD:uD,UWORD:uj,LOCALHOST:uT,TLD:"TLD",UTLD:uO,SCHEME:uP,SLASH_SCHEME:uR,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:uM,CLOSEBRACE:uL,OPENBRACKET:uA,CLOSEBRACKET:uI,OPENPAREN:uN,CLOSEPAREN:uB,OPENANGLEBRACKET:uU,CLOSEANGLEBRACKET:uz,FULLWIDTHLEFTPAREN:uH,FULLWIDTHRIGHTPAREN:uq,LEFTCORNERBRACKET:uV,RIGHTCORNERBRACKET:uW,LEFTWHITECORNERBRACKET:u$,RIGHTWHITECORNERBRACKET:uG,FULLWIDTHLESSTHAN:uY,FULLWIDTHGREATERTHAN:uK,AMPERSAND:uZ,APOSTROPHE:uJ,ASTERISK:uX,AT:"AT",BACKSLASH:uQ,BACKTICK:u0,CARET:u1,COLON:u2,COMMA:u3,DOLLAR:u4,DOT:"DOT",EQUALS:u6,EXCLAMATION:u5,HYPHEN:u8,PERCENT:u9,PIPE:u7,PLUS:de,POUND:dt,QUERY:dn,QUOTE:dr,SEMI:di,SLASH:da,TILDE:ds,UNDERSCORE:dl,EMOJI:dc,SYM:"SYM"});let dd=/[a-z]/,dp=/\p{L}/u,df=/\p{Emoji}/u,dh=/\d/,dm=/\s/,dg=null,dv=null;function db(e,t,r,i,a){let o;let s=t.length;for(let r=0;r=0;)a++;if(a>0){t.push(r.join(""));for(let t=parseInt(e.substring(i,i+a),10);t>0;t--)r.pop();i+=a}else r.push(e[i]),i++}return t}let d_={defaultProtocol:"http",events:null,format:dk,formatHref:dk,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function dw(e,t){void 0===t&&(t=null);let r=uf({},d_);e&&(r=uf(r,e instanceof dw?e.o:e));let i=r.ignoreTags,a=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let i=null!=t,a=this.o[e];return a&&("object"==typeof a?"function"==typeof(a=r.t in a?a[r.t]:d_[e])&&i&&(a=a(t,r)):"function"==typeof a&&i&&(a=a(t,r.t,r))),a},getObj(e,t,r){let i=this.o[e];return"function"==typeof i&&null!=t&&(i=i(t,r.t,r)),i},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},dx.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),i=e.get("format",t,this);return r&&i.length>r?i.substring(0,r)+"…":i},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=d_.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")),r=e.get("formatHref",t,this),i=e.get("tagName",t,this),a=this.toFormattedString(e),o={},s=e.get("className",t,this),l=e.get("target",t,this),u=e.get("rel",t,this),d=e.getObj("attributes",t,this),p=e.getObj("events",t,this);return o.href=r,s&&(o.class=s),l&&(o.target=l),u&&(o.rel=u),d&&uf(o,d),{tagName:i,attributes:o,content:a,eventListeners:p}}};let dF=dE("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),dC=dE("text"),dS=dE("nl"),dD=dE("url",{isLink:!0,toHref(e){return void 0===e&&(e=d_.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==uT&&e[1].t===u2}}),dj=e=>new ux(e);function dT(e,t,r){let i=r[0].s,a=r[r.length-1].e;return new e(t.slice(i,a),r)}"undefined"!=typeof console&&console&&console.warn||(()=>{});let dO={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function dP(e){return dO.initialized||function(){dO.scanner=function(e){void 0===e&&(e=[]);let t={};ux.groups=t;let r=new ux;null==dg&&(dg=dy("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==dv&&(dv=dy("ελ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")),uS(r,"'",uJ),uS(r,"{",uM),uS(r,"}",uL),uS(r,"[",uA),uS(r,"]",uI),uS(r,"(",uN),uS(r,")",uB),uS(r,"<",uU),uS(r,">",uz),uS(r,"(",uH),uS(r,")",uq),uS(r,"「",uV),uS(r,"」",uW),uS(r,"『",u$),uS(r,"』",uG),uS(r,"<",uY),uS(r,">",uK),uS(r,"&",uZ),uS(r,"*",uX),uS(r,"@","AT"),uS(r,"`",u0),uS(r,"^",u1),uS(r,":",u2),uS(r,",",u3),uS(r,"$",u4),uS(r,".","DOT"),uS(r,"=",u6),uS(r,"!",u5),uS(r,"-",u8),uS(r,"%",u9),uS(r,"|",u7),uS(r,"+",de),uS(r,"#",dt),uS(r,"?",dn),uS(r,'"',dr),uS(r,"/",da),uS(r,";",di),uS(r,"~",ds),uS(r,"_",dl),uS(r,"\\",uQ);let i=uF(r,dh,"NUM",{[uh]:!0});uF(i,dh,i);let a=uF(r,dd,uD,{[um]:!0});uF(a,dd,a);let o=uF(r,dp,uj,{[ug]:!0});uF(o,dd),uF(o,dp,o);let s=uF(r,dm,"WS",{[uw]:!0});uS(r,"\n","NL",{[uw]:!0}),uS(s,"\n"),uF(s,dm,s);let l=uF(r,df,dc,{[u_]:!0});uF(l,df,l),uS(l,"️",l),uF(uS(l,"‍"),df,l);let u=[[dd,a]],d=[[dd,null],[dp,o]];for(let e=0;ee[0]>t[0]?1:-1);for(let t=0;t=0?a[uy]=!0:dd.test(i)?dh.test(i)?a[uv]=!0:a[um]=!0:a[uh]=!0,uC(r,i,i,a)}return uC(r,"localhost",uT,{ascii:!0}),r.jd=new ux("SYM"),{start:r,tokens:uf({groups:t},du)}}(dO.customSchemes);for(let e=0;e=0&&m++,a++,p++;if(m<0)(a-=p)0&&(o.push(dT(dC,t,s)),s=[]),a-=m,p-=m;let e=f.t,i=r.slice(a-p,a);o.push(dT(e,t,i))}}return s.length>0&&o.push(dT(dC,t,s)),o}(dO.parser.start,e,function(e,t){let r=function(e){let t=[],r=e.length,i=0;for(;i56319||i+1===r||(a=e.charCodeAt(i+1))<56320||a>57343?e[i]:e.slice(i,i+2);t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),i=r.length,a=[],o=0,s=0;for(;s=0&&(f+=r[s].length,m++),d+=r[s].length,o+=r[s].length,s++;o-=f,s-=m,d-=f,a.push({t:p.t,v:t.slice(o-d,o),s:o-d,e:o})}return a}(dO.scanner.start,e))}function dR(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let i=new dw(r),a=dP(e),o=[];for(let e=0;e4?ec().createElement("button",io({className:"str-chat__gallery-placeholder","data-testid":"gallery-image-last",key:"gallery-image-".concat(i),onClick:function(){return b(i)},style:io({backgroundImage:"url(".concat(t[3].previewUrl||t[3].image_url||t[3].thumb_url,")")},e.style)},(null==r?void 0:r.current)&&{ref:function(e){return r.current[i]=e}}),ec().createElement("p",null,g("{{ imageCount }} more",{imageCount:t.length-4}))):ec().createElement("button",{className:"str-chat__gallery-image","data-testid":"gallery-image",key:"gallery-image-".concat(i),onClick:function(){return b(i)}},ec().createElement(f,io({alt:(null==e?void 0:e.fallback)||v,src:(0,dH.Nm)(e.previewUrl||e.image_url||e.thumb_url),style:e.style,title:(null==e?void 0:e.fallback)||v},(null==r?void 0:r.current)&&{ref:function(e){return r.current[i]=e}})))}),_=a5("str-chat__gallery",{"str-chat__gallery--square":t.length>3,"str-chat__gallery-two-rows":t.length>2});return ec().createElement("div",{className:_},y,ec().createElement(dQ,{onClose:function(){return u(function(e){return!e})},open:l},ec().createElement(void 0===m?d4:m,{images:t,index:a})))}),d7=function(e){var t=e.dimensions,r=e.fallback,i=e.image_url,a=e.thumb_url,o=e.innerRef,s=e.previewUrl,l=e.style,u=(0,el.useState)(!1),d=u[0],p=u[1],f=d8("ImageComponent"),m=f.BaseImage,g=f.ModalGallery,v=(0,dH.Nm)(s||i||a),b=function(){return p(function(e){return!e})};return ec().createElement(ec().Fragment,null,ec().createElement(void 0===m?dJ:m,io({alt:r,className:"str-chat__message-attachment--img","data-testid":"image-test",onClick:b,src:v,style:l,tabIndex:0,title:r},void 0===t?{}:t,o&&{ref:o})),ec().createElement(dQ,{onClose:b,open:d},ec().createElement(void 0===g?d4:g,{images:[e],index:0})))},pe=ec().createContext(void 0),pt=function(e){var t=e.children,r=e.value;return ec().createElement(pe.Provider,{value:r},t)},pn=function(e){return(0,el.useContext)(pe)||(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.")),{})},pr=function(e){return null!=e?e.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").split("/")[0]:null},pi=function(e){var t,r=e.type,i=aZ("Card").t;return ec().createElement("div",{className:a5("str-chat__message-attachment-card",((t={})["str-chat__message-attachment-card--".concat(r)]=r,t))},ec().createElement("div",{className:"str-chat__message-attachment-card--content"},ec().createElement("div",{className:"str-chat__message-attachment-card--text"},i("this content could not be displayed"))))},pa=function(e){var t=e.asset_url,r=e.giphy,i=e.image_url,a=e.og_scrape_url,o=e.text,s=e.thumb_url,l=e.title,u=e.title_link,d=e.type,p=pn("Card").giphyVersion,f=s||i,m={};if("giphy"===d&&void 0!==r){var g=r[p];f=g.url,m.height=g.height,m.width=g.width}return l||u||t||f?u||a?ec().createElement("div",{className:"str-chat__message-attachment-card str-chat__message-attachment-card--".concat(d)},ec().createElement(ps,io({},e,{dimensions:m,image:f})),"video"!==d&&ec().createElement("div",{className:"str-chat__message-attachment-card--content"},ec().createElement("div",{className:"str-chat__message-attachment-card--flex"},l&&ec().createElement("div",{className:"str-chat__message-attachment-card--title"},l),o&&ec().createElement("div",{className:"str-chat__message-attachment-card--text"},o),(u||a)&&ec().createElement(dq,{className:"str-chat__message-attachment-card--url",href:u||a,rel:"noopener noreferrer",target:"_blank"},pr(u||a))))):null:ec().createElement(pi,{type:d})},po=function(e){var t=e.author_name,r=e.url;return ec().createElement("div",{className:"str-chat__message-attachment-card--source-link","data-testid":"card-source-link"},ec().createElement(dq,{className:"str-chat__message-attachment-card--url",href:r,rel:"noopener noreferrer",target:"_blank"},t||pr(r)))},ps=function(e){var t=e.asset_url,r=e.dimensions,i=e.image,a=e.image_url,o=e.thumb_url,s=e.title,l=e.type,u=null;return t&&"video"===l?u=ec().createElement(uc.Z,{className:"react-player",controls:!0,height:"100%",url:t,width:"100%"}):i&&(u=ec().createElement(d7,{dimensions:r,fallback:s||i,image_url:a,thumb_url:o})),u?ec().createElement("div",{className:"str-chat__message-attachment-card--header str-chat__message-attachment-card-react--header","data-testid":"card-header"},u):null},pl=function(e){var t=e.author_name,r=e.og_scrape_url,i=e.text,a=e.title,o=e.title_link,s=e.type,l=o||r;return ec().createElement("div",{className:"str-chat__message-attachment-card--content"},"audio"===s?ec().createElement(pu,{og:e}):ec().createElement("div",{className:"str-chat__message-attachment-card--flex"},l&&ec().createElement(po,{author_name:t,url:l}),a&&ec().createElement("div",{className:"str-chat__message-attachment-card--title"},a),i&&ec().createElement("div",{className:"str-chat__message-attachment-card--text"},i)))},pc=function(e){var t=e.asset_url,r=e.giphy,i=e.image_url,a=e.thumb_url,o=e.title,s=e.title_link,l=e.type,u=pn("CardHeader").giphyVersion,d=a||i,p={};if("giphy"===l&&void 0!==r){var f=r[u];d=f.url,p.height=f.height,p.width=f.width}return o||s||t||d?ec().createElement("div",{className:"str-chat__message-attachment-card str-chat__message-attachment-card--".concat(l)},ec().createElement(ps,io({},e,{dimensions:p,image:d})),ec().createElement(pl,io({},e))):ec().createElement(pi,null)},pu=function(e){var t=e.og,r=t.asset_url,i=t.author_name,a=t.og_scrape_url,o=t.text,s=t.title,l=t.title_link,u=dW(),d=u.audioRef,p=u.isPlaying,f=u.progress,m=u.seek,g=u.togglePlay,v=l||a;return ec().createElement("div",{className:"str-chat__message-attachment-card-audio-widget","data-testid":"card-audio-widget"},r&&ec().createElement(ec().Fragment,null,ec().createElement("audio",{ref:d},ec().createElement("source",{"data-testid":"audio-source",src:r,type:"audio/mp3"})),ec().createElement("div",{className:"str-chat__message-attachment-card-audio-widget--first-row"},ec().createElement("div",{className:"str-chat__message-attachment-audio-widget--play-controls"},ec().createElement(dG,{isPlaying:p,onClick:g})),ec().createElement(dY,{onClick:m,progress:f}))),ec().createElement("div",{className:"str-chat__message-attachment-audio-widget--second-row"},v&&ec().createElement(po,{author_name:i,url:v}),s&&ec().createElement("div",{className:"str-chat__message-attachment-audio-widget--title"},s),o&&ec().createElement("div",{className:"str-chat__message-attachment-audio-widget--description"},o)))},pd=ec().memo(function(e){return"2"===a4("Card").themeVersion?ec().createElement(pc,io({},e)):ec().createElement(pa,io({},e))}),pp=function(e){var t=e.className,r=e.size,i=void 0===r?40:r,a=is(e,["className","size"]);return ec().createElement("svg",io({className:"rfu-file-pdf ".concat(void 0===t?"":t).trim(),fill:"none",height:i,viewBox:"0 0 34 40",width:i,xmlns:"http://www.w3.org/2000/svg"},a),ec().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"}),ec().createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#E71A01"}),ec().createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),ec().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"}),ec().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"}))},pf=function(e){var t=e.className,r=e.size,i=void 0===r?40:r,a=is(e,["className","size"]);return ec().createElement("svg",io({className:"rfu-file-fallback ".concat(void 0===t?"":t).trim(),fill:"none",height:i,viewBox:"0 0 34 40",width:i,xmlns:"http://www.w3.org/2000/svg"},a),ec().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)"}),ec().createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),ec().createElement("path",{clipRule:"evenodd",d:"M8 13H23V15H8V13Z",fill:"#CFCFCF",fillRule:"evenodd"}),ec().createElement("path",{clipRule:"evenodd",d:"M8 17H18V19H8V17Z",fill:"#CFCFCF",fillRule:"evenodd"}),ec().createElement("path",{clipRule:"evenodd",d:"M8 21H23V23H8V21Z",fill:"#CFCFCF",fillRule:"evenodd"}),ec().createElement("defs",null,ec().createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear",x1:"0",x2:"0",y1:"0",y2:"40"},ec().createElement("stop",{stopColor:"white"}),ec().createElement("stop",{offset:"1",stopColor:"#DBDBDB"}))))},ph=function(e){var t=e.className,r=e.size,i=void 0===r?40:r,a=is(e,["className","size"]);return ec().createElement("svg",io({className:"rfu-file-image ".concat(void 0===t?"":t).trim(),height:i,viewBox:"0 0 384 512",width:i,xmlns:"http://www.w3.org/2000/svg"},a),ec().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"}))},pm=["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"],pg=["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"],pv=["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"],pb=["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"],py=["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 p_(e){for(var t=e.FileArchiveIcon,r=e.FileCodeIcon,i=e.FileExcelIcon,a=e.FilePdfIcon,o=e.FilePowerPointIcon,s=e.FileWordIcon,l={"application/pdf":a},u=0;u1?a:1e6,t["--original-height"]=i>1?i:1e6}return t}var pO=function(e){var t=e.attachment,r=e.Gallery,i=(0,el.useRef)([]),a=pn().imageAttachmentSizeHandler,o=(0,el.useState)([]),s=o[0],l=o[1];(0,el.useLayoutEffect)(function(){if(i.current&&i.current.every(function(e){return!!e})&&a){var e=[];i.current.forEach(function(r,i){var o=a(t.images[i],r);e.push(o)}),l(e)}},[i,a,t]);var u=t.images.map(function(e,r){var i,a,o;return io(io({},e),{previewUrl:(null===(i=s[r])||void 0===i?void 0:i.url)||"about:blank",style:pT((null===(a=t.images[r])||void 0===a?void 0:a.image_url)||(null===(o=t.images[r])||void 0===o?void 0:o.thumb_url)||"")})});return ec().createElement(pD,{attachment:t,componentType:"gallery"},ec().createElement(void 0===r?d9:r,{images:u||[],innerRefs:i,key:"gallery"}))},pP=function(e){var t=e.attachment,r=e.Image,i=void 0===r?d7:r,a="image",o=(0,el.useRef)(null),s=pn().imageAttachmentSizeHandler,l=(0,el.useState)(void 0),u=l[0],d=l[1];(0,el.useLayoutEffect)(function(){o.current&&s&&d(s(t,o.current))},[o,s,t]);var p=io(io({},t),{previewUrl:(null==u?void 0:u.url)||"about:blank",style:pT(t.image_url||t.thumb_url||"")});return t.actions&&t.actions.length?ec().createElement(pD,{attachment:t,componentType:a},ec().createElement("div",{className:"str-chat__attachment"},ec().createElement(i,io({},p,{innerRef:o})),ec().createElement(pj,io({},e)))):ec().createElement(pD,{attachment:t,componentType:a},ec().createElement(i,io({},p,{innerRef:o})))},pR={audio:function(e){var t=e.attachment,r=e.Audio;return ec().createElement(pD,{attachment:t,componentType:"audio"},ec().createElement("div",{className:"str-chat__attachment"},ec().createElement(void 0===r?dZ:r,{og:t})))},card:function(e){var t=e.attachment,r=e.Card,i=void 0===r?pd:r,a="card";return t.actions&&t.actions.length?ec().createElement(pD,{attachment:t,componentType:a},ec().createElement("div",{className:"str-chat__attachment"},ec().createElement(i,io({},t)),ec().createElement(pj,io({},e)))):ec().createElement(pD,{attachment:t,componentType:a},ec().createElement(i,io({},t)))},file:function(e){var t=e.attachment,r=e.File;return t.asset_url?ec().createElement(pD,{attachment:t,componentType:"file"},ec().createElement(void 0===r?pC:r,{attachment:t})):null},media:function(e){var t,r=e.attachment,i=e.Media,a=void 0===i?uc.Z:i,o="media",s=pn(),l=s.shouldGenerateVideoThumbnail,u=s.videoAttachmentSizeHandler,d=(0,el.useRef)(null),p=(0,el.useState)(),f=p[0],m=p[1];(0,el.useLayoutEffect)(function(){d.current&&u&&m(u(r,d.current,l))},[d,u,r]);var g=ec().createElement("div",{className:"str-chat__player-wrapper","data-testid":"video-wrapper",ref:d,style:pT(r.thumb_url||"")},ec().createElement(a,{className:"react-player",config:{file:{attributes:{poster:null==f?void 0:f.thumbUrl}}},controls:!0,height:"100%",url:null==f?void 0:f.url,width:"100%"}));return(null===(t=r.actions)||void 0===t?void 0:t.length)?ec().createElement(pD,{attachment:r,componentType:o},ec().createElement("div",{className:"str-chat__attachment str-chat__attachment-media"},g,ec().createElement(pj,io({},e)))):ec().createElement(pD,{attachment:r,componentType:o},g)},unsupported:function(e){var t=e.attachment,r=e.UnsupportedAttachment;return ec().createElement(ec().Fragment,null,ec().createElement(void 0===r?pS:r,{attachment:t}))}},pM=["card","gallery","image","media","audio","file","unsupported"],pL=function(e){var t=e.attachments,r=(0,el.useMemo)(function(){return pA(e)},[t]);return ec().createElement("div",{className:"str-chat__attachment-list"},pM.reduce(function(e,t){return ip(ip([],e,!0),r[t],!0)},[]))},pA=function(e){var t=e.attachments,r=is(e,["attachments"]),i=t.filter(function(e){return up(e)}),a=t.filter(function(e){return!up(e)}).reduce(function(e,t){var i=pI(t),a=pR[i];return e[i].push(ec().createElement(a,io({key:"".concat(i,"-").concat(e[i].length)},r,{attachment:t}))),e},{audio:[],card:[],file:[],media:[],unsupported:[],image:[],gallery:[]});return i.length>1?a.gallery=[ec().createElement(pO,io({key:"gallery-container"},r,{attachment:{images:i,type:"gallery"}}))]:1===i.length&&(a.image=[ec().createElement(pP,io({key:"image-container"},r,{attachment:i[0]}))]),a},pI=function(e){return ud(e)?"card":e.mime_type&&-1!==uu.indexOf(e.mime_type)||"video"===e.type?"media":"audio"===e.type?"audio":"file"===e.type||e.mime_type&&-1===uu.indexOf(e.mime_type)&&"video"!==e.type?"file":"unsupported"},pN=ec().memo(function(e){var t=e.error,r=aZ("LoadingErrorIndicator").t;return t?ec().createElement("div",null,r("Error: {{ errorMessage }}",{errorMessage:t.message})):null},function(e,t){var r,i;return(null===(r=e.error)||void 0===r?void 0:r.message)===(null===(i=t.error)||void 0===i?void 0:i.message)}),pB=function(){return ec().createElement("div",{className:"str-chat__loading-channel-message"},ec().createElement("div",{className:"str-chat__loading-channel-message-avatar"}),ec().createElement("div",{className:"str-chat__loading-channel-message-end"},ec().createElement("div",{className:"str-chat__loading-channel-message-sender"}),ec().createElement("div",{className:"str-chat__loading-channel-message-last-row"},ec().createElement("div",{className:"str-chat__loading-channel-message-text"}),ec().createElement("div",{className:"str-chat__loading-channel-message-date"}))))},pU=function(){return ec().createElement("div",{className:"str-chat__loading-channel-message-input-row"},ec().createElement("div",{className:"str-chat__loading-channel-message-input"}),ec().createElement("div",{className:"str-chat__loading-channel-message-send"}))},pz=function(){return ec().createElement("div",{className:"str-chat__loading-channel-header"},ec().createElement("div",{className:"str-chat__loading-channel-header-avatar"}),ec().createElement("div",{className:"str-chat__loading-channel-header-end"},ec().createElement("div",{className:"str-chat__loading-channel-header-name"}),ec().createElement("div",{className:"str-chat__loading-channel-header-info"})))},pH=function(){return ec().createElement("div",{className:"str-chat__loading-channel"},ec().createElement(pz,null),ec().createElement("div",{className:"str-chat__loading-channel-message-list"},Array.from([,,,]).map(function(e,t){return ec().createElement(pB,{key:"loading-message-".concat(t)})})),ec().createElement(pU,null))},pq=function(e){var t=e.className;return ec().createElement("svg",{className:void 0===t?"":t,height:"4",viewBox:"0 0 11 4",width:"11",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},pV=function(){return ec().createElement("svg",{"data-testid":"reply-icon",height:"15",width:"18",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},pW=function(){return ec().createElement("svg",{height:"16",width:"16",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},p$=function(e){var t=e.className;return ec().createElement("svg",{className:void 0===t?"":t,height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},ec().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"}),ec().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"})))},pG=function(e){var t=e.className;return ec().createElement("svg",{className:void 0===t?"":t,height:"10",width:"14",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},pY=function(){return ec().createElement("svg",{"data-testid":"delivered-icon",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},pK=function(){return ec().createElement("div",{className:"str-chat__message-error-icon"},ec().createElement("svg",{"data-testid":"error",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().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"}),ec().createElement("path",{d:"M13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"white"})))},pZ=function(e,t,r){var i,a,o,s=pn("useUserRole"),l=s.channel,u=s.channelCapabilities,d=void 0===u?{}:u,p=a4("useUserRole").client,f=(null===(i=p.user)||void 0===i?void 0:i.role)==="admin"||"admin"===l.state.membership.role,m="owner"===l.state.membership.role,g=(null===(a=p.user)||void 0===a?void 0:a.role)==="channel_moderator"||"channel_moderator"===l.state.membership.role||"moderator"===l.state.membership.role||!0===l.state.membership.is_moderator||"channel_moderator"===l.state.membership.channel_role,v=p.userID===(null===(o=e.user)||void 0===o?void 0:o.id),b=!t&&d["update-any-message"]||v&&d["update-own-message"];return{canDelete:d["delete-any-message"]||v&&d["delete-own-message"],canEdit:b,canFlag:!v&&d["flag-message"],canMute:!v&&d["mute-channel"],canQuote:!r&&d["quote-message"],canReact:d["send-reaction"],canReply:d["send-reply"],isAdmin:f,isModerator:g,isMyMessage:v,isOwner:m}},pJ=function(e){var t=e.message,r=aZ("MessageDeleted").t,i=pZ(t).isMyMessage;return ec().createElement("div",{className:"".concat(i?"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},ec().createElement("div",{className:"str-chat__message--deleted-inner"},r("This message was deleted...")))},pX=r(86725),pQ=r.n(pX),p0=r(45718),p1=r.n(p0),p2=function(e,t){if(!e||"function"!=typeof e)return null;t instanceof Array||(t=[t]);var r=e.apply(void 0,t);return"string"!=typeof r?null:r},p3=function(e,t){return!!t&&!!e&&!!t.filter(function(t){var r;return t.target.id===(null===(r=e.user)||void 0===r?void 0:r.id)}).length},p4={delete:"delete",edit:"edit",flag:"flag",mute:"mute",pin:"pin",quote:"quote",react:"react",reply:"reply"},p6={commerce:{admin:!0,anonymous:!1,channel_member:!1,channel_moderator:!0,guest:!1,member:!1,moderator:!0,owner:!0,user:!1},gaming:{admin:!0,anonymous:!1,channel_member:!1,channel_moderator:!0,guest:!1,member:!1,moderator:!0,owner:!1,user:!1},livestream:{admin:!0,anonymous:!1,channel_member:!1,channel_moderator:!0,guest:!1,member:!1,moderator:!0,owner:!0,user:!1},messaging:{admin:!0,anonymous:!1,channel_member:!0,channel_moderator:!0,guest:!1,member:!0,moderator:!0,owner:!0,user:!1},team:{admin:!0,anonymous:!1,channel_member:!0,channel_moderator:!0,guest:!1,member:!0,moderator:!0,owner:!0,user:!1}},p5=function(e,t){var r=t.canDelete,i=t.canEdit,a=t.canFlag,o=t.canMute,s=t.canPin,l=t.canQuote,u=t.canReact,d=t.canReply,p=[],f=[];if(e&&"boolean"==typeof e)f=Object.keys(p4);else{if(!e||!(e.length>0))return[];f=ip([],e,!0)}return r&&f.indexOf(p4.delete)>-1&&p.push(p4.delete),i&&f.indexOf(p4.edit)>-1&&p.push(p4.edit),a&&f.indexOf(p4.flag)>-1&&p.push(p4.flag),o&&f.indexOf(p4.mute)>-1&&p.push(p4.mute),s&&f.indexOf(p4.pin)>-1&&p.push(p4.pin),l&&f.indexOf(p4.quote)>-1&&p.push(p4.quote),u&&f.indexOf(p4.react)>-1&&p.push(p4.react),d&&f.indexOf(p4.reply)>-1&&p.push(p4.reply),p},p8=["pin","react","reply"],p9=function(e,t){var r,i,a,o,s,l;return e.deleted_at===t.deleted_at&&(null===(r=e.latest_reactions)||void 0===r?void 0:r.length)===(null===(i=t.latest_reactions)||void 0===i?void 0:i.length)&&(null===(a=e.own_reactions)||void 0===a?void 0:a.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===(s=e.user)||void 0===s?void 0:s.updated_at)===(null===(l=t.user)||void 0===l?void 0:l.updated_at)},p7=function(e){return!!(null==e?void 0:e.attachments)&&!!e.attachments.length},fe=function(e){return e.name||e.id},ft=function(e,t,r,i){var a="";if(!t)throw Error("getReadByTooltipText was called, but translation function is not available");if(!i)throw Error("getReadByTooltipText was called, but tooltipUserNameMapper function is not available");var o=e.filter(function(e){return e&&(null==r?void 0:r.user)&&e.id!==r.user.id}).map(i),s=o.slice(0,5),l=o.length-s.length;if(1===s.length)a="".concat(s[0]," ");else if(2===s.length)a=t("{{ firstUser }} and {{ secondUser }}",{firstUser:s[0],secondUser:s[1]});else if(s.length>2){if(0===l){var u=s.splice(s.length-1,1);a=t("{{ commaSeparatedUsers }}, and {{ lastUser }}",{commaSeparatedUsers:s.join(", "),lastUser:u})}else a=t("{{ commaSeparatedUsers }} and {{ moreCount }} more",{commaSeparatedUsers:s.join(", "),moreCount:l})}return a},fn=ec().createContext(void 0),fr=function(e){var t=e.children,r=e.value;return ec().createElement(fn.Provider,{value:r},t)},fi=function(e){return(0,el.useContext)(fn)||(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.")),{})},fa=ec().createContext(void 0),fo=function(e){var t=e.children,r=e.value;return ec().createElement(fa.Provider,{value:r},t)},fs=function(e){return(0,el.useContext)(fa)||(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.")),{})},fl=function(e){var t=e.customMessageActions,r=e.message,i=Object.keys(t);return ec().createElement(ec().Fragment,null,i.map(function(e){var i=t[e];return ec().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 i(r,e)},role:"option"},e)}))},fc=ec().memo(function(e){var t=e.getMessageActions,r=e.handleDelete,i=e.handleEdit,a=e.handleFlag,o=e.handleMute,s=e.handlePin,l=e.isUserMuted,u=e.mine,d=e.open,p=void 0!==d&&d,f=fi("MessageActionsBox").setQuotedMessage,m=fs("MessageActionsBox"),g=m.customMessageActions,v=m.message,b=m.messageListRect,y=aZ("MessageActionsBox").t,_=(0,el.useState)(!1),w=_[0],k=_[1],x=t(),E=(0,el.useCallback)(function(e){if(!e){k(!1);return}if(p){var t=e.getBoundingClientRect();u?k(!!b&&t.leftb.right)}},[b,u,p]),F=a5("str-chat__message-actions-box",{"str-chat__message-actions-box--mine":u,"str-chat__message-actions-box--open":p,"str-chat__message-actions-box--reverse":w}),C="str-chat__message-actions-list-item str-chat__message-actions-list-item-button";return ec().createElement("div",{className:F,"data-testid":"message-actions-box",ref:E},ec().createElement("div",{"aria-label":"Message Options",className:"str-chat__message-actions-list",role:"listbox"},g&&ec().createElement(fl,{customMessageActions:g,message:v}),x.indexOf(p4.quote)>-1&&ec().createElement("button",{"aria-selected":"false",className:C,onClick:function(){f(v);var e=(v.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"},y("Reply")),x.indexOf(p4.pin)>-1&&!v.parent_id&&ec().createElement("button",{"aria-selected":"false",className:C,onClick:s,role:"option"},y(v.pinned?"Unpin":"Pin")),x.indexOf(p4.flag)>-1&&ec().createElement("button",{"aria-selected":"false",className:C,onClick:a,role:"option"},y("Flag")),x.indexOf(p4.mute)>-1&&ec().createElement("button",{"aria-selected":"false",className:C,onClick:o,role:"option"},y(l()?"Unmute":"Mute")),x.indexOf(p4.edit)>-1&&ec().createElement("button",{"aria-selected":"false",className:C,onClick:i,role:"option"},y("Edit Message")),x.indexOf(p4.delete)>-1&&ec().createElement("button",{"aria-selected":"false",className:C,onClick:r,role:"option"},y("Delete"))))}),fu=function(e){var t=e.ActionsIcon,r=e.customWrapperClass,i=e.getMessageActions,a=e.handleDelete,o=e.handleFlag,s=e.handleMute,l=e.handlePin,u=e.inline,d=e.message,p=e.messageWrapperRef,f=e.mine,m=a4("MessageActions").mutes,g=fs("MessageActions"),v=g.customMessageActions,b=g.getMessageActions,y=g.handleDelete,_=g.handleFlag,w=g.handleMute,k=g.handlePin,x=g.isMyMessage,E=g.message,F=g.setEditingState,C=i||b,S=d||E,D=(0,el.useState)(!1),j=D[0],T=D[1],O=(0,el.useCallback)(function(){return p3(S,m)},[S,m]),P=(0,el.useCallback)(function(e){e instanceof KeyboardEvent&&"Escape"!==e.key||T(!1)},[]),R=C(),M=!!(null==S?void 0:S.deleted_at);return((0,el.useEffect)(function(){(null==p?void 0:p.current)&&p.current.addEventListener("mouseleave",P)},[P,p]),(0,el.useEffect)(function(){M&&document.removeEventListener("click",P)},[P,M]),(0,el.useEffect)(function(){if(j)return document.addEventListener("click",P),document.addEventListener("keyup",P),function(){document.removeEventListener("click",P),document.removeEventListener("keyup",P)}},[j,P]),R.length||v)?ec().createElement(fd,{customWrapperClass:void 0===r?"":r,inline:u,setActionsBoxOpen:T},ec().createElement(fc,{getMessageActions:C,handleDelete:a||y,handleEdit:F,handleFlag:o||_,handleMute:s||w,handlePin:l||k,isUserMuted:O,mine:f?f():x(),open:j}),ec().createElement("button",{"aria-expanded":j,"aria-haspopup":"true","aria-label":"Open Message Actions Menu",className:"str-chat__message-actions-box-button"},ec().createElement(void 0===t?pq:t,{className:"str-chat__message-action-icon"}))):null},fd=function(e){var t=e.children,r=e.customWrapperClass,i=e.inline,a=e.setActionsBoxOpen,o={className:r||"\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 i?ec().createElement("span",io({},o),t):ec().createElement("div",io({},o),t)},fp=ec().memo(function(e){var t=e.ActionsIcon,r=e.displayReplies,i=e.handleOpenThread,a=e.messageWrapperRef,o=e.ReactionIcon,s=e.theme,l=void 0===s?"simple":s,u=e.ThreadIcon,d=fs("MessageOptions"),p=d.customMessageActions,f=d.getMessageActions,m=d.handleOpenThread,g=d.initialMessage,v=d.message,b=d.onReactionListClick,y=d.threadList,_=f(),w=!(0===_.length||y&&0===_.filter(function(e){return!p8.includes(e)}).length||1===_.length&&(_.includes("react")||_.includes("reply"))||2===_.length&&_.includes("react")&&_.includes("reply"))||!!p,k=_.indexOf(p4.react)>-1,x=_.indexOf(p4.reply)>-1&&(void 0===r||r)&&!y;if(!v.type||"error"===v.type||"system"===v.type||"ephemeral"===v.type||"failed"===v.status||"sending"===v.status||g)return null;var E="str-chat__message-".concat(l,"__actions str-chat__message-options");return ec().createElement("div",{className:E,"data-testid":"message-options"},w&&ec().createElement(fu,{ActionsIcon:void 0===t?pq:t,messageWrapperRef:a}),x&&ec().createElement("button",{"aria-label":"Open Thread",className:"str-chat__message-".concat(l,"__actions__action str-chat__message-").concat(l,"__actions__action--thread str-chat__message-reply-in-thread-button"),"data-testid":"thread-action",onClick:i||m},ec().createElement(void 0===u?pG:u,{className:"str-chat__message-action-icon"})),k&&ec().createElement("button",{"aria-label":"Open Reaction Selector",className:"str-chat__message-".concat(l,"__actions__action str-chat__message-").concat(l,"__actions__action--reactions str-chat__message-reactions-button"),"data-testid":"message-reaction-action",onClick:b},ec().createElement(void 0===o?p$:o,{className:"str-chat__message-action-icon"})))}),ff=ec().memo(function(e){var t=e.labelPlural,r=e.labelSingle,i=e.onClick,a=e.reply_count,o=void 0===a?0:a,s=aZ("MessageRepliesCountButton").t,l=a4("MessageRepliesCountButton").themeVersion;if(!o)return null;var u=s("replyCount",{count:o});return t&&o>1?u="".concat(o," ").concat(t):r&&(u="1 ".concat(r)),ec().createElement("div",{className:"str-chat__message-simple-reply-button str-chat__message-replies-count-button-wrapper"},ec().createElement("button",{className:"str-chat__message-replies-count-button","data-testid":"replies-count-button",onClick:i},"1"===l&&ec().createElement(pV,null),u))}),fh=r(60962);function fm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fg(e){var t=fm(e).Element;return e instanceof t||e instanceof Element}function fv(e){var t=fm(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fb(e){if("undefined"==typeof ShadowRoot)return!1;var t=fm(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var fy=Math.max,f_=Math.min,fw=Math.round;function fk(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function fx(){return!/^((?!chrome|android).)*safari/i.test(fk())}function fE(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var i=e.getBoundingClientRect(),a=1,o=1;t&&fv(e)&&(a=e.offsetWidth>0&&fw(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fw(i.height)/e.offsetHeight||1);var s=(fg(e)?fm(e):window).visualViewport,l=!fx()&&r,u=(i.left+(l&&s?s.offsetLeft:0))/a,d=(i.top+(l&&s?s.offsetTop:0))/o,p=i.width/a,f=i.height/o;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function fF(e){var t=fm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fC(e){return e?(e.nodeName||"").toLowerCase():null}function fS(e){return((fg(e)?e.ownerDocument:e.document)||window.document).documentElement}function fD(e){return fE(fS(e)).left+fF(e).scrollLeft}function fj(e){return fm(e).getComputedStyle(e)}function fT(e){var t=fj(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function fO(e){var t=fE(e),r=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function fP(e){return"html"===fC(e)?e:e.assignedSlot||e.parentNode||(fb(e)?e.host:null)||fS(e)}function fR(e,t){void 0===t&&(t=[]);var r,i=function e(t){return["html","body","#document"].indexOf(fC(t))>=0?t.ownerDocument.body:fv(t)&&fT(t)?t:e(fP(t))}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=fm(i),s=a?[o].concat(o.visualViewport||[],fT(i)?i:[]):i,l=t.concat(s);return a?l:l.concat(fR(fP(s)))}function fM(e){return fv(e)&&"fixed"!==fj(e).position?e.offsetParent:null}function fL(e){for(var t=fm(e),r=fM(e);r&&["table","td","th"].indexOf(fC(r))>=0&&"static"===fj(r).position;)r=fM(r);return r&&("html"===fC(r)||"body"===fC(r)&&"static"===fj(r).position)?t:r||function(e){var t=/firefox/i.test(fk());if(/Trident/i.test(fk())&&fv(e)&&"fixed"===fj(e).position)return null;var r=fP(e);for(fb(r)&&(r=r.host);fv(r)&&0>["html","body"].indexOf(fC(r));){var i=fj(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(e)||t}var fA="bottom",fI="right",fN="left",fB="auto",fU=["top",fA,fI,fN],fz="start",fH="viewport",fq="popper",fV=fU.reduce(function(e,t){return e.concat([t+"-"+fz,t+"-end"])},[]),fW=[].concat(fU,[fB]).reduce(function(e,t){return e.concat([t,t+"-"+fz,t+"-end"])},[]),f$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],fG={placement:"bottom",modifiers:[],strategy:"absolute"};function fY(){for(var e=arguments.length,t=Array(e),r=0;r=0?"x":"y"}function fQ(e){var t,r=e.reference,i=e.element,a=e.placement,o=a?fZ(a):null,s=a?fJ(a):null,l=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2;switch(o){case"top":t={x:l,y:r.y-i.height};break;case fA:t={x:l,y:r.y+r.height};break;case fI:t={x:r.x+r.width,y:u};break;case fN:t={x:r.x-i.width,y:u};break;default:t={x:r.x,y:r.y}}var d=o?fX(o):null;if(null!=d){var p="y"===d?"height":"width";switch(s){case fz:t[d]=t[d]-(r[p]/2-i[p]/2);break;case"end":t[d]=t[d]+(r[p]/2-i[p]/2)}}return t}var f0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f1(e){var t,r,i,a,o,s,l,u=e.popper,d=e.popperRect,p=e.placement,f=e.variation,m=e.offsets,g=e.position,v=e.gpuAcceleration,b=e.adaptive,y=e.roundOffsets,_=e.isFixed,w=m.x,k=void 0===w?0:w,x=m.y,E=void 0===x?0:x,F="function"==typeof y?y({x:k,y:E}):{x:k,y:E};k=F.x,E=F.y;var C=m.hasOwnProperty("x"),S=m.hasOwnProperty("y"),D=fN,j="top",T=window;if(b){var O=fL(u),P="clientHeight",R="clientWidth";O===fm(u)&&"static"!==fj(O=fS(u)).position&&"absolute"===g&&(P="scrollHeight",R="scrollWidth"),("top"===p||(p===fN||p===fI)&&"end"===f)&&(j=fA,E-=(_&&O===T&&T.visualViewport?T.visualViewport.height:O[P])-d.height,E*=v?1:-1),(p===fN||("top"===p||p===fA)&&"end"===f)&&(D=fI,k-=(_&&O===T&&T.visualViewport?T.visualViewport.width:O[R])-d.width,k*=v?1:-1)}var M=Object.assign({position:g},b&&f0),L=!0===y?(t={x:k,y:E},r=fm(u),i=t.x,a=t.y,{x:fw(i*(o=r.devicePixelRatio||1))/o||0,y:fw(a*o)/o||0}):{x:k,y:E};return(k=L.x,E=L.y,v)?Object.assign({},M,((l={})[j]=S?"0":"",l[D]=C?"0":"",l.transform=1>=(T.devicePixelRatio||1)?"translate("+k+"px, "+E+"px)":"translate3d("+k+"px, "+E+"px, 0)",l)):Object.assign({},M,((s={})[j]=S?E+"px":"",s[D]=C?k+"px":"",s.transform="",s))}var f2={left:"right",right:"left",bottom:"top",top:"bottom"};function f3(e){return e.replace(/left|right|bottom|top/g,function(e){return f2[e]})}var f4={start:"end",end:"start"};function f6(e){return e.replace(/start|end/g,function(e){return f4[e]})}function f5(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&fb(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function f8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f9(e,t,r){var i,a,o,s,l,u,d,p,f,m;return t===fH?f8(function(e,t){var r=fm(e),i=fS(e),a=r.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;var d=fx();(d||!d&&"fixed"===t)&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l+fD(e),y:u}}(e,r)):fg(t)?((i=fE(t,!1,"fixed"===r)).top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i):f8((a=fS(e),s=fS(a),l=fF(a),u=null==(o=a.ownerDocument)?void 0:o.body,d=fy(s.scrollWidth,s.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),p=fy(s.scrollHeight,s.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),f=-l.scrollLeft+fD(a),m=-l.scrollTop,"rtl"===fj(u||s).direction&&(f+=fy(s.clientWidth,u?u.clientWidth:0)-d),{width:d,height:p,x:f,y:m}))}function f7(){return{top:0,right:0,bottom:0,left:0}}function he(e){return Object.assign({},f7(),e)}function ht(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function hn(e,t){void 0===t&&(t={});var r,i,a,o,s,l,u,d,p=t,f=p.placement,m=void 0===f?e.placement:f,g=p.strategy,v=void 0===g?e.strategy:g,b=p.boundary,y=p.rootBoundary,_=p.elementContext,w=void 0===_?fq:_,k=p.altBoundary,x=p.padding,E=void 0===x?0:x,F=he("number"!=typeof E?E:ht(E,fU)),C=e.rects.popper,S=e.elements[void 0!==k&&k?w===fq?"reference":fq:w],D=(r=fg(S)?S:S.contextElement||fS(e.elements.popper),i=void 0===b?"clippingParents":b,a=void 0===y?fH:y,u=(l=[].concat("clippingParents"===i?(o=fR(fP(r)),fg(s=["absolute","fixed"].indexOf(fj(r).position)>=0&&fv(r)?fL(r):r)?o.filter(function(e){return fg(e)&&f5(e,s)&&"body"!==fC(e)}):[]):[].concat(i),[a]))[0],(d=l.reduce(function(e,t){var i=f9(r,t,v);return e.top=fy(i.top,e.top),e.right=f_(i.right,e.right),e.bottom=f_(i.bottom,e.bottom),e.left=fy(i.left,e.left),e},f9(r,u,v))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),j=fE(e.elements.reference),T=fQ({reference:j,element:C,strategy:"absolute",placement:m}),O=f8(Object.assign({},C,T)),P=w===fq?O:j,R={top:D.top-P.top+F.top,bottom:P.bottom-D.bottom+F.bottom,left:D.left-P.left+F.left,right:P.right-D.right+F.right},M=e.modifiersData.offset;if(w===fq&&M){var L=M[m];Object.keys(R).forEach(function(e){var t=[fI,fA].indexOf(e)>=0?1:-1,r=["top",fA].indexOf(e)>=0?"y":"x";R[e]+=L[r]*t})}return R}function hr(e,t,r){return fy(e,f_(t,r))}function hi(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ha(e){return["top",fI,fA,fN].some(function(t){return e[t]>=0})}var ho=function(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,i=void 0===r?[]:r,a=t.defaultOptions,o=void 0===a?fG:a;return function(e,t,r){void 0===r&&(r=o);var a,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},fG,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],d=!1,p={state:l,setOptions:function(r){var a,s,d,m,g,v="function"==typeof r?r(l.options):r;f(),l.options=Object.assign({},o,l.options,v),l.scrollParents={reference:fg(e)?fR(e):e.contextElement?fR(e.contextElement):[],popper:fR(t)};var b=(s=Object.keys(a=[].concat(i,l.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return a[e]}),d=new Map,m=new Set,g=[],s.forEach(function(e){d.set(e.name,e)}),s.forEach(function(e){m.has(e.name)||function e(t){m.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!m.has(t)){var r=d.get(t);r&&e(r)}}),g.push(t)}(e)}),f$.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return l.orderedModifiers=b.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,i=e.effect;if("function"==typeof i){var a=i({state:l,name:t,instance:p,options:void 0===r?{}:r});u.push(a||function(){})}}),p.update()},forceUpdate:function(){if(!d){var e,t,r,i,a,o,s,u,f,m,g,v,b=l.elements,y=b.reference,_=b.popper;if(fY(y,_)){l.rects={reference:(t=fL(_),r="fixed"===l.options.strategy,i=fv(t),u=fv(t)&&(o=fw((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=fw(a.height)/t.offsetHeight||1,1!==o||1!==s),f=fS(t),m=fE(y,u,r),g={scrollLeft:0,scrollTop:0},v={x:0,y:0},(i||!i&&!r)&&(("body"!==fC(t)||fT(f))&&(g=(e=t)!==fm(e)&&fv(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:fF(e)),fv(t)?(v=fE(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):f&&(v.x=fD(f))),{x:m.left+g.scrollLeft-v.x,y:m.top+g.scrollTop-v.y,width:m.width,height:m.height}),popper:fO(_)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var w=0;w=0?-1:1,u=(l="function"==typeof o?o(Object.assign({},i,{placement:r})):o)[0],d=l[1],u=u||0,d=(d||0)*s,[fN,fI].indexOf(a)>=0?{x:d,y:u}:{x:u,y:d}),e},{}),l=s[t.placement],u=l.x,d=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,o=void 0===a||a,s=r.altAxis,l=void 0===s||s,u=r.fallbackPlacements,d=r.padding,p=r.boundary,f=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,v=void 0===g||g,b=r.allowedAutoPlacements,y=t.options.placement,_=fZ(y)===y,w=u||(_||!v?[f3(y)]:function(e){if(fZ(e)===fB)return[];var t=f3(e);return[f6(e),t,f6(t)]}(y)),k=[y].concat(w).reduce(function(e,r){var i,a,o,s,l,u,m,g,y,_,w,k;return e.concat(fZ(r)===fB?(a=(i={placement:r,boundary:p,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:b}).placement,o=i.boundary,s=i.rootBoundary,l=i.padding,u=i.flipVariations,g=void 0===(m=i.allowedAutoPlacements)?fW:m,0===(w=(_=(y=fJ(a))?u?fV:fV.filter(function(e){return fJ(e)===y}):fU).filter(function(e){return g.indexOf(e)>=0})).length&&(w=_),Object.keys(k=w.reduce(function(e,r){return e[r]=hn(t,{placement:r,boundary:o,rootBoundary:s,padding:l})[fZ(r)],e},{})).sort(function(e,t){return k[e]-k[t]})):r)},[]),x=t.rects.reference,E=t.rects.popper,F=new Map,C=!0,S=k[0],D=0;D=0,R=P?"width":"height",M=hn(t,{placement:j,boundary:p,rootBoundary:f,altBoundary:m,padding:d}),L=P?O?fI:fN:O?fA:"top";x[R]>E[R]&&(L=f3(L));var A=f3(L),I=[];if(o&&I.push(M[T]<=0),l&&I.push(M[L]<=0,M[A]<=0),I.every(function(e){return e})){S=j,C=!1;break}F.set(j,I)}if(C)for(var N=v?3:1,B=function(e){var t=k.find(function(t){var r=F.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},U=N;U>0&&"break"!==B(U);U--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,o=r.altAxis,s=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,g=void 0===m?0:m,v=hn(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:u}),b=fZ(t.placement),y=fJ(t.placement),_=!y,w=fX(b),k="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,F=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(x){if(void 0===a||a){var T,O="y"===w?"top":fN,P="y"===w?fA:fI,R="y"===w?"height":"width",M=x[w],L=M+v[O],A=M-v[P],I=f?-F[R]/2:0,N=y===fz?E[R]:F[R],B=y===fz?-F[R]:-E[R],U=t.elements.arrow,z=f&&U?fO(U):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:f7(),q=H[O],V=H[P],W=hr(0,E[R],z[R]),$=_?E[R]/2-I-W-q-S.mainAxis:N-W-q-S.mainAxis,G=_?-E[R]/2+I+W+V+S.mainAxis:B+W+V+S.mainAxis,Y=t.elements.arrow&&fL(t.elements.arrow),K=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,Z=null!=(T=null==D?void 0:D[w])?T:0,J=hr(f?f_(L,M+$-Z-K):L,M,f?fy(A,M+G-Z):A);x[w]=J,j[w]=J-M}if(void 0!==o&&o){var X,Q,ee="x"===w?"top":fN,et="x"===w?fA:fI,en=x[k],er="y"===k?"height":"width",ei=en+v[ee],ea=en-v[et],eo=-1!==["top",fN].indexOf(b),es=null!=(Q=null==D?void 0:D[k])?Q:0,el=eo?ei:en-E[er]-F[er]-es+S.altAxis,ec=eo?en+E[er]+F[er]-es-S.altAxis:ea,eu=f&&eo?(X=hr(el,en,ec))>ec?ec:X:hr(f?el:ei,en,f?ec:ea);x[k]=eu,j[k]=eu-en}t.modifiersData[i]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,i=e.state,a=e.name,o=e.options,s=i.elements.arrow,l=i.modifiersData.popperOffsets,u=fZ(i.placement),d=fX(u),p=[fN,fI].indexOf(u)>=0?"height":"width";if(s&&l){var f=he("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:ht(t,fU)),m=fO(s),g="y"===d?"top":fN,v="y"===d?fA:fI,b=i.rects.reference[p]+i.rects.reference[d]-l[d]-i.rects.popper[p],y=l[d]-i.rects.reference[d],_=fL(s),w=_?"y"===d?_.clientHeight||0:_.clientWidth||0:0,k=f[g],x=w-m[p]-f[v],E=w/2-m[p]/2+(b/2-y/2),F=hr(k,E,x);i.modifiersData[a]=((r={})[d]=F,r.centerOffset=F-E,r)}},effect:function(e){var t=e.state,r=e.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&f5(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=hn(t,{elementContext:"reference"}),l=hn(t,{altBoundary:!0}),u=hi(s,i),d=hi(l,a,o),p=ha(u),f=ha(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),hs=function(e){return e.reduce(function(e,t){var r=t[0],i=t[1];return e[r]=i,e},{})},hl="undefined"!=typeof window&&window.document&&window.document.createElement?el.useLayoutEffect:el.useEffect,hc=[],hu=function(e,t,r){void 0===r&&(r={});var i=el.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||hc},o=el.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=o[0],l=o[1],u=el.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);fh.flushSync(function(){l({styles:hs(r.map(function(e){return[e,t.styles[e]||{}]})),attributes:hs(r.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),d=el.useMemo(function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return pQ()(i.current,e)?i.current||e:(i.current=e,e)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),p=el.useRef();return hl(function(){p.current&&p.current.setOptions(d)},[d]),hl(function(){if(null!=e&&null!=t){var i=(r.createPopper||ho)(e,t,d);return p.current=i,function(){i.destroy(),p.current=null}}},[e,t,r.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},hd=function(e){var t=e.children,r=is(e,["children"]);return ec().createElement("div",io({className:"str-chat__tooltip"},r),t)},hp=function(e){var t=e.children,r=e.offset,i=e.referenceElement,a=e.placement,o=e.visible,s=(0,el.useState)(null),l=s[0],u=s[1],d=hu(i,l,{modifiers:[{name:"offset",options:{offset:void 0===r?[0,10]:r}}],placement:void 0===a?"top":a}),p=d.attributes,f=d.styles;return void 0!==o&&o?ec().createElement("div",io({className:"str-chat__tooltip",ref:u,style:f.popper},p.popper),t):null},hf=function(e){var t=void 0===e?{}:e,r=t.onMouseEnter,i=t.onMouseLeave,a=(0,el.useState)(!1),o=a[0],s=a[1];return{handleEnter:(0,el.useCallback)(function(e){s(!0),null==r||r(e)},[r]),handleLeave:(0,el.useCallback)(function(e){s(!1),null==i||i(e)},[i]),tooltipVisible:o}},hh=ec().memo(function(e){var t,r=e.Avatar,i=e.messageType,a=void 0===i?"simple":i,o=e.tooltipUserNameMapper,s=void 0===o?fe:o,l=hf(),u=l.handleEnter,d=l.handleLeave,p=l.tooltipVisible,f=a4("MessageStatus").client,m=d8("MessageStatus").Avatar,g=fs("MessageStatus"),v=g.isMyMessage,b=g.lastReceivedId,y=g.message,_=g.readBy,w=g.threadList,k=aZ("MessageStatus").t,x=a4("MessageStatus").themeVersion,E=(0,el.useState)(null),F=E[0],C=E[1];if(!v()||"error"===y.type)return null;var S=(null==_?void 0:_.length)===1&&_[0].id===(null===(t=f.user)||void 0===t?void 0:t.id),D="sending"===y.status,j="received"===y.status&&y.id===b&&!w,T=!!((null==_?void 0:_.length)&&!w&&!S),O=(T?_.filter(function(e){var t;return e.id!==(null===(t=f.user)||void 0===t?void 0:t.id)}):[])[0];return ec().createElement("span",{className:"str-chat__message-".concat(a,"-status str-chat__message-status"),"data-testid":a5({"message-status-read-by":T,"message-status-received":j&&!T,"message-status-sending":D}),onMouseEnter:u,onMouseLeave:d,ref:C},D&&ec().createElement(ec().Fragment,null,"1"===x&&ec().createElement(hd,null,k("Sending...")),"2"===x&&ec().createElement(hp,{offset:[0,5],referenceElement:F,visible:p},k("Sending...")),ec().createElement(cG,null)),j&&!T&&ec().createElement(ec().Fragment,null,"1"===x&&ec().createElement(hd,null,k("Delivered")),"2"===x&&ec().createElement(hp,{offset:[0,5],referenceElement:F,visible:p},k("Delivered")),"2"===x?ec().createElement(pY,null):ec().createElement(pW,null)),T&&ec().createElement(ec().Fragment,null,"1"===x&&ec().createElement(hd,null,ft(_,k,f,s)),"2"===x&&ec().createElement(hp,{offset:[0,5],referenceElement:F,visible:p},ft(_,k,f,s)),ec().createElement(r||m||ok,{image:O.image,name:O.name||O.id,size:15,user:O}),_.length>2&&ec().createElement("span",{className:"str-chat__message-".concat(a,"-status-number"),"data-testid":"message-status-read-by-many"},_.length-1)))}),hm=function(){var e,t,r,i=d8("QuotedMessage"),a=i.Attachment,o=i.Avatar,s=fs("QuotedMessage"),l=s.isMyMessage,u=s.message,d=aZ("QuotedMessage"),p=d.t,f=d.userLanguage,m=fi("QuotedMessage").jumpToMessage,g=u.quoted_message;if(!g)return null;var v=g.deleted_at||"deleted"===g.type,b=v?p("This message was deleted..."):(null===(e=g.i18n)||void 0===e?void 0:e["".concat(f,"_text")])||g.text,y=(null===(t=g.attachments)||void 0===t?void 0:t.length)&&!v?g.attachments[0]:null;return b||y?ec().createElement(ec().Fragment,null,ec().createElement("div",{className:a5("str-chat__quoted-message-preview quoted-message",{mine:l()}),"data-testid":"quoted-message",onClickCapture:function(e){e.stopPropagation(),e.preventDefault(),m(g.id)}},g.user&&ec().createElement(o||ok,{image:g.user.image,name:g.user.name||g.user.id,size:20,user:g.user}),ec().createElement("div",{className:"quoted-message-inner str-chat__quoted-message-bubble","data-testid":"quoted-message-contents"},y&&ec().createElement(a,{attachments:[y]}),ec().createElement("div",{"data-testid":"quoted-message-text"},b))),(null===(r=u.attachments)||void 0===r?void 0:r.length)?ec().createElement(a,{attachments:u.attachments}):null):null};let hg={tokenize:function(e,t,r){let i=0;return function t(o){return(87===o||119===o)&&i<3?(i++,e.consume(o),t):46===o&&3===i?(e.consume(o),a):r(o)};function a(e){return null===e?r(e):t(e)}},partial:!0},hv={tokenize:function(e,t,r){let i,a,o;return s;function s(t){return 46===t||95===t?e.check(hy,u,l)(t):null===t||sn(t)||sa(t)||45!==t&&si(t)?u(t):(o=!0,e.consume(t),s)}function l(t){return 95===t?i=!0:(a=i,i=void 0),e.consume(t),s}function u(e){return a||i||!o?r(e):t(e)}},partial:!0},hb={tokenize:function(e,t){let r=0,i=0;return a;function a(s){return 40===s?(r++,e.consume(s),a):41===s&&i0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}hE[43]=hx,hE[45]=hx,hE[46]=hx,hE[95]=hx,hE[72]=[hx,hk],hE[104]=[hx,hk],hE[87]=[hx,hw],hE[119]=[hx,hw];let hP={tokenize:function(e,t,r){let i=this;return ss(e,function(e){let a=i.events[i.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function hR(e,t,r){let i;let a=this,o=a.events.length,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);for(;o--;){let e=a.events[o][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!i||!i._balanced)return r(o);let l=sP(a.sliceSerialize({start:i.end,end:a.now()}));return 94===l.codePointAt(0)&&s.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):r(o)}}function hM(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function hL(e,t,r){let i;let a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){if(s>999||93===l&&!i||null===l||91===l||sn(l))return r(l);if(93===l){e.exit("chunkString");let i=e.exit("gfmFootnoteCallString");return o.includes(sP(a.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(l)}return sn(l)||(i=!0),s++,e.consume(l),92===l?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function hA(e,t,r){let i,a;let o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(t)}function d(t){if(l>999||93===t&&!a||null===t||91===t||sn(t))return r(t);if(93===t){e.exit("chunkString");let r=e.exit("gfmFootnoteDefinitionLabelString");return i=sP(o.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return sn(t)||(a=!0),l++,e.consume(t),92===t?p:d}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,d):d(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(i)||s.push(i),ss(e,m,"gfmFootnoteDefinitionWhitespace")):r(t)}function m(e){return t(e)}}function hI(e,t,r){return e.check(sd,t,e.attempt(hP,t,r))}function hN(e){e.exit("gfmFootnoteDefinition")}class hB{constructor(){this.map=[]}add(e,t,r){(function(e,t,r,i){let a=0;if(0!==r||0!==i.length){for(;ae[0]-t[0]),0===this.map.length)return;let t=this.map.length,r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1])),r.push(this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let i=r.pop();for(;i;)e.push(...i),i=r.pop();this.map.length=0}}let hU={flow:{null:{tokenize:function(e,t,r){let i;let a=this,o=0,s=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let i=t>-1?a.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?w:l;return o===w&&a.parser.lazy[a.now().line]?r(e):o(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(i=!0,s+=1),u(t)}function u(t){return null===t?r(t):st(t)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):r(t):sr(t)?ss(e,u,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,u):(e.enter("data"),d(t))}function d(t){return null===t||124===t||sn(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?p:d)}function p(t){return 92===t||124===t?(e.consume(t),d):d(t)}function f(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?r(t):(e.enter("tableDelimiterRow"),i=!1,sr(t))?ss(e,m,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):m(t)}function m(t){return 45===t||58===t?v(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):r(t)}function g(t){return sr(t)?ss(e,v,"whitespace")(t):v(t)}function v(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):45===t?(s+=1,b(t)):null===t||st(t)?_(t):r(t)}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(r){return 45===r?(e.consume(r),t):58===r?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(r),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(r))}(t)):r(t)}function y(t){return sr(t)?ss(e,_,"whitespace")(t):_(t)}function _(a){return 124===a?m(a):null===a||st(a)?i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):r(a):r(a)}function w(t){return e.enter("tableRow"),k(t)}function k(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),k):null===r||st(r)?(e.exit("tableRow"),t(r)):sr(r)?ss(e,k,"whitespace")(r):(e.enter("data"),x(r))}function x(t){return null===t||124===t||sn(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){let r,i,a,o=-1,s=!0,l=0,u=[0,0,0,0],d=[0,0,0,0],p=!1,f=0,m=new hB;for(;++or[2]+1){let t=r[2]+1,i=r[3]-r[2]-1;e.add(t,i,[])}}e.add(r[3]+1,0,[["exit",s,t]])}return void 0!==a&&(o.end=Object.assign({},hq(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function hH(e,t,r,i,a){let o=[],s=hq(t.events,r);a&&(a.end=Object.assign({},s),o.push(["exit",a,t])),i.end=Object.assign({},s),o.push(["exit",i,t]),e.add(r+1,0,o)}function hq(e,t){let r=e[t],i="enter"===r[0]?"start":"end";return r[1][i]}let hV={text:{91:{tokenize:function(e,t,r){let i=this;return function(t){return null===i.previous&&i._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):r(t)};function a(t){return sn(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):r(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(t)}function s(i){return st(i)?t(i):sr(i)?e.check({tokenize:hW},t,r)(i):r(i)}}}}};function hW(e,t,r){return ss(e,function(e){return null===e?r(e):t(e)},"whitespace")}function h$(e,t){let r=String(e);if("string"!=typeof t)throw TypeError("Expected character");let i=0,a=r.indexOf(t);for(;-1!==a;)i++,a=r.indexOf(t,a+t.length);return i}function hG(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let hY={}.hasOwnProperty,hK=function(e,t,r,i){let a,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],a=i):(o=t,a=r),a||(a={});let s=lh(a.ignore||[]),l=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r0?{type:"text",value:l}:void 0),!1!==l&&(o!==r&&p.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(l)?p.push(...l):l&&p.push(l),o=r+f[0].length,d=!0),!i.global)break;f=i.exec(e.value)}return d?(oe}let hX="phrasing",hQ=["autolink","link","image","label"],h0={transforms:[function(e){hK(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,h3],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,h4]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:h2,literalAutolinkHttp:h2,literalAutolinkWww:h2},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)}}},h1={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hX,notInConstruct:hQ},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hX,notInConstruct:hQ},{character:":",before:"[ps]",after:"\\/",inConstruct:hX,notInConstruct:hQ}]};function h2(e){this.config.enter.autolinkProtocol.call(this,e)}function h3(e,t,r,i,a){let o="";if(!h6(a)||(/^w/i.test(t)&&(r=t+r,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])))}(r)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")"),a=h$(e,"("),o=h$(e,")");for(;-1!==i&&a>o;)e+=r.slice(0,i+1),i=(r=r.slice(i+1)).indexOf(")"),o++;return[e,r]}(r+i);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function h4(e,t,r,i){return!(!h6(i,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function h6(e,t){let r=e.input.charCodeAt(e.index-1);return(0===e.index||sa(r)||si(r))&&(!t||47!==r)}function h5(e){return e.label||!e.identifier?e.label||"":lo(e.identifier)}let h8=/\r?\n|\r/g;function h9(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 h7(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let i=-1;for(;++i=p)&&(!(e+10?" ":"")),a.shift(4),o+=a.move(function(e,t){let r;let i=[],a=0,o=0;for(;r=h8.exec(e);)s(e.slice(a,r.index)),i.push(r[0]),a=r.index+r[0].length,o++;return s(e.slice(a)),i.join("");function s(e){i.push(t(e,o,!e))}}(function(e,t,r){let i=t.indexStack,a=e.children||[],o=t.createTracker(r),s=[],l=-1;for(i.push(-1);++l\n\n"}return"\n\n"}(r,a[l+1],e,t)))}return i.pop(),s.join("")}(e,r,a.current()),mh)),s(),o}function mh(e,t,r){return 0===t?e:(r?"":" ")+e}function mm(e,t,r){let i=t.indexStack,a=e.children||[],o=[],s=-1,l=r.before;i.push(-1);let u=t.createTracker(r);for(;++s0&&("\r"===l||"\n"===l)&&"html"===p.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",(u=t.createTracker(r)).move(o.join(""))),o.push(u.move(t.handle(p,e,t,{...u.current(),before:l,after:d}))),l=o[o.length-1].slice(-1)}return i.pop(),o.join("")}mp.peek=function(){return"["},mb.peek=function(){return"~"};let mg={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},mv={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:mb}};function mb(e,t,r,i){let a=mr(i),o=r.enter("strikethrough"),s=a.move("~~");return s+=mm(e,r,{...a.current(),before:s,after:"~"})+a.move("~~"),o(),s}function my(e,t,r){let i=e.value||"",a="`",o=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:mE,tableHeader:mE,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,mF)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:mx,tableHeader:mx,tableRow:mx}};function mx(e){this.exit(e)}function mE(e){this.enter({type:"tableCell",children:[]},e)}function mF(e,t){return"|"===t?t:e}let mC={exit:{taskListCheckValueChecked:mD,taskListCheckValueUnchecked:mD,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],r=e.children[0];if(r&&"text"===r.type){let i;let a=t.children,o=-1;for(;++o-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let l=r.createTracker(i);l.move(o+" ".repeat(s-o.length)),l.shift(s);let u=r.enter("listItem"),d=r.indentLines(r.containerFlow(e,l.current()),function(e,t,r){return t?(r?"":" ".repeat(s))+e:(r?o:o+" ".repeat(s-o.length))+e});return u(),d}(e,t,r,{...i,...l.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),u}}};function mD(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function mj(e={}){let t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",o3([hF,{document:{91:{tokenize:hA,continuation:{tokenize:hI},exit:hN}},text:{91:{tokenize:hL},93:{add:"after",tokenize:hR,resolveTo:hM}}},function(e){let t=(e||{}).singleTilde,r={tokenize:function(e,r,i){let a=this.previous,o=this.events,s=0;return function(l){return 126===a&&"characterEscape"!==o[o.length-1][1].type?i(l):(e.enter("strikethroughSequenceTemporary"),function o(l){let u=s0(a);if(126===l)return s>1?i(l):(e.consume(l),s++,o);if(s<2&&!t)return i(l);let d=e.exit("strikethroughSequenceTemporary"),p=s0(l);return d._open=!p||2===p&&!!u,d._close=!u||2===u&&!!p,r(l)}(l))}},resolveAll:function(e,t){let r=-1;for(;++ru&&(u=e[d].length);++fl[f])&&(l[f]=e)}r.push(o)}o[d]=r,s[d]=a}let f=-1;if("object"==typeof r&&"length"in r)for(;++fl[f]&&(l[f]=o),g[f]=o),m[f]=s}o.splice(1,0,m),s.splice(1,0,g),d=-1;let v=[];for(;++d0?{type:"text",value:l}:void 0),!1!==l&&(o!==r&&p.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(l)?p.push(...l):l&&p.push(l),o=r+f[0].length,d=!0),!i.global)break;f=i.exec(e.value)}return d?(oe}let mz=function(e,t,r){let i={type:String(e)};return null==r&&("string"==typeof t||Array.isArray(t))?r=t:Object.assign(i,t),Array.isArray(r)?i.children=r:null!=r&&(i.value=String(r)),i};var mH=function(){var e=function(e){return mz("element",{tagName:"emoji"},[mz("text",e)])};return function(t){return mN(t,p1()(),e)}},mq=["html","text","br","p","em","strong","a","ol","ul","li","code","pre","blockquote","del","emoji","mention"];function mV(e){try{return encodeURI(decodeURIComponent(e))}catch(t){return e}}var mW=function(e){return e.startsWith("app://")?e:cf(e)},m$=function(e){return e},mG={a:function(e){var t=e.children,r=e.href,i=null==r?void 0:r.startsWith("mailto:"),a=null==r?void 0:r.startsWith("http");return r&&(i||a)?ec().createElement("a",{className:a5({"str-chat__message-url-link":a}),href:r,rel:"nofollow noreferrer noopener",target:"_blank"},t):ec().createElement(ec().Fragment,null,t)},emoji:function(e){var t=e.children;return ec().createElement("span",{className:"inline-text-emoji","data-testid":"inline-text-emoji"},t)},mention:function(e){var t=e.children,r=e.node.mentionedUser;return ec().createElement("span",{className:"str-chat__message-mention","data-user-id":r.id},t)}},mY=function(e,t,r){var i=void 0===r?{}:r,a=i.allowedTagNames,o=i.customMarkDownRenderers,s=i.getRehypePlugins,l=i.getRemarkPlugins;if(!e)return null;if(1===e.trim().length)return ec().createElement(ec().Fragment,null,e);var u=e,d=mP(u),p=u.match(/```[a-z]*\n[\s\S]*?\n```|`[a-z]*[\s\S]*?`/gm)||[];os()(ip(ip([],dR(u,"email"),!0),dR(u,"url"),!0),"value").forEach(function(e){var r=e.href,i=e.type,a=e.value,o=p.some(function(e){return null==e?void 0:e.includes(a)});if(!((d&&d.filter(function(e){var t=null==r?void 0:r.replace(mO,""),i=null==e?void 0:e.replace(mO,"");return!!t&&!!i&&(t.includes(i)||i.includes(t))})).length>0)&&!o)try{if("email"===i&&t&&t.some(function(e){return e.name===a})){u=u.replace(RegExp(mT(a),"g"),function(e,t){return"@"===u.charAt(t-1)?e:"[".concat(e,"](").concat(mV(r),")")});return}var s="email"===i?a:function(e){try{return decodeURIComponent(e).replace(mO,"")}catch(t){return e}}(r);u=u.replace(RegExp(mT(a),"g"),"[".concat(s,"](").concat(mV(r),")"))}catch(e){}});var f=[mH];if((null==t?void 0:t.length)&&f.push(function(){var e=t.map(function(e){return e.name||e.id}).filter(Boolean).map(mT),r=RegExp(e.map(function(e){return"@".concat(e)}).join("|"),"g"),i=function(e){var r=e.replace("@","");return mz("element",{mentionedUser:t.find(function(e){var t=e.id;return e.name===r||t===r}),tagName:"mention"},[mz("text",e)])};return function(t){return e.length?(lb(t,function(e,t,r){if(null!==t&&r){var i,a=r.children.at(t+1),o=null===(i=null==a?void 0:a.properties)||void 0===i?void 0:i.href;if("text"===e.type&&/.?\s?@$|^@$/.test(e.value)&&(null==o?void 0:o.startsWith("mailto:"))){var s=e.value.replace(/@$/,""),l=o.replace("mailto:","");r.children[t]=mz("text",s),r.children[t+1]=mz("text","@".concat(l))}}}),mN(t,r,i)):t}}),null==o?void 0:o.mention){var m=o.mention;o.mention=function(e){var t=e.node,r=is(e,["node"]);return ec().createElement(m,io({mentioned_user:t.mentionedUser,node:io({mentioned_user:t.mentionedUser},t)},r))}}var g=io(io({},mG),o);return ec().createElement(c_,{allowedElements:void 0===a?mq:a,components:g,rehypePlugins:(void 0===s?m$:s)(f),remarkPlugins:(void 0===l?m$:l)([[mj,{singleTilde:!1}]]),skipHtml:!0,transformLinkUri:mW,unwrapDisallowed:!0},u)},mK=ec().memo(function(e){var t,r,i,a=e.customInnerClass,o=e.customWrapperClass,s=e.message,l=e.renderText,u=e.theme,d=void 0===u?"simple":u,p=d8("MessageText").QuotedMessage,f=fs("MessageText"),m=f.message,g=f.onMentionsClickMessage,v=f.onMentionsHoverMessage,b=f.renderText,y=f.unsafeHTML,_=null!==(r=null!=l?l:b)&&void 0!==r?r:mY,w=aZ("MessageText"),k=w.t,x=w.userLanguage,E=s||m,F=p7(E),C=(null===(i=E.i18n)||void 0===i?void 0:i["".concat(x,"_text")])||E.text,S=(0,el.useMemo)(function(){return _(C,E.mentioned_users)},[E.mentioned_users,C]);return C||E.quoted_message?ec().createElement("div",{className:(void 0===o?"":o)||"str-chat__message-text",tabIndex:0},ec().createElement("div",{className:"\n ".concat(a||"str-chat__message-text-inner str-chat__message-".concat(d,"-text-inner"),"\n ").concat(F?" str-chat__message-".concat(d,"-text-inner--has-attachment"):"","\n ").concat((t=E.text)&&!t.replace(p1()(),"").replace(/[\s\n]/gm,"")&&!E.quoted_message?" str-chat__message-".concat(d,"-text-inner--is-emoji"):"","\n ").trim(),"data-testid":"message-text-inner-wrapper",onClick:g,onMouseOver:v},E.quoted_message&&ec().createElement(void 0===p?hm:p,null),"error"===E.type&&ec().createElement("div",{className:"str-chat__".concat(d,"-message--error-message str-chat__message--error-message")},k("Error \xb7 Unsent")),"failed"===E.status&&ec().createElement("div",{className:"str-chat__".concat(d,"-message--error-message str-chat__message--error-message")},k(403!==E.errorStatusCode?"Message Failed \xb7 Click to try again":"Message Failed \xb7 Unauthorized")),y&&E.html?ec().createElement("div",{dangerouslySetInnerHTML:{__html:E.html}}):ec().createElement("div",null,S))):null});function mZ(e){var t=e.calendar,r=e.format,i=e.formatDate,a=e.messageCreatedAt,o=e.tDateTimeParser;if(!a||"string"==typeof a&&!Date.parse(a))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(a));if(!o)return console.warn("MessageTimestamp was called but there is no datetime parsing function available"),null;var s=o(a);return aW(s)?t&&s.calendar?s.calendar():s.format(r):a$(s)?s.toDateString():"string"==typeof s||"number"==typeof s?s:null}var mJ=ec().memo(function(e){var t=e.calendar,r=void 0!==t&&t,i=e.customClass,a=e.format,o=void 0===a?"h:mmA":a,s=e.message,l=fs("MessageTimestamp"),u=l.formatDate,d=l.message,p=aZ("MessageTimestamp").tDateTimeParser,f=s||d,m=f.created_at&&a$(f.created_at)?f.created_at.toISOString():f.created_at,g=(0,el.useMemo)(function(){return mZ({calendar:r,format:o,formatDate:u,messageCreatedAt:m,tDateTimeParser:p})},[u,r,p,o,m]);return g?ec().createElement("time",{className:void 0===i?"":i,dateTime:m,title:m},g):null}),mX={date:"message.date",intro:"channel.intro"},mQ=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 m0(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),i=mQ.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var i=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof i&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var m1=[".DS_Store","Thumbs.db"];function m2(e){return"object"==typeof e&&null!==e}function m3(e){return e.filter(function(e){return -1===m1.indexOf(e.name)})}function m4(e){if(null===e)return[];for(var t=[],r=0;re.length)&&(t=e.length);for(var r=0,i=Array(t);rr)return[!1,gl(r)];if(e.sizer)return[!1,gl(r)]}return[!0,null]}function gf(e){return null!=e}function gh(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function gm(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 gg(e){e.preventDefault()}function gv(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),a=1;ae.length)&&(t=e.length);for(var r=0,i=Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var gO=(0,el.forwardRef)(function(e,t){var r=e.children,i=gM(gT(e,g_)),a=i.open,o=gT(i,gw);return(0,el.useImperativeHandle)(t,function(){return{open:a}},[a]),ec().createElement(el.Fragment,null,r(gD(gD({},o),{},{open:a})))});gO.displayName="Dropzone";var gP={disabled:!1,getFilesFromEvent:function(e){return il(this,void 0,void 0,function(){return ic(this,function(t){return m2(e)&&m2(e.dataTransfer)?[2,function(e,t){return il(this,void 0,void 0,function(){var r;return ic(this,function(i){switch(i.label){case 0:if(!e.items)return[3,2];if(r=m4(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,r];return[4,Promise.all(r.map(m6))];case 1:return[2,m3(function e(t){return t.reduce(function(t,r){return ip(ip([],id(t),!1),id(Array.isArray(r)?e(r):[r]),!1)},[])}(i.sent()))];case 2:return[2,m3(m4(e.files).map(function(e){return m0(e)}))]}})})}(e.dataTransfer,e.type)]:m2(e)&&m2(e.target)?[2,m4(e.target.files).map(function(e){return m0(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return il(this,void 0,void 0,function(){return ic(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 m0(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};gO.defaultProps=gP,gO.propTypes={children:lB().func,accept:lB().objectOf(lB().arrayOf(lB().string)),multiple:lB().bool,preventDropOnDocument:lB().bool,noClick:lB().bool,noKeyboard:lB().bool,noDrag:lB().bool,noDragEventsBubbling:lB().bool,minSize:lB().number,maxSize:lB().number,maxFiles:lB().number,disabled:lB().bool,getFilesFromEvent:lB().func,onFileDialogCancel:lB().func,onFileDialogOpen:lB().func,useFsAccessApi:lB().bool,autoFocus:lB().bool,onDragEnter:lB().func,onDragLeave:lB().func,onDragOver:lB().func,onDrop:lB().func,onDropAccepted:lB().func,onDropRejected:lB().func,onError:lB().func,validator:lB().func};var gR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function gM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=gD(gD({},gP),e),r=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,f=t.onDragOver,m=t.onDrop,g=t.onDropAccepted,v=t.onDropRejected,b=t.onFileDialogCancel,y=t.onFileDialogOpen,_=t.useFsAccessApi,w=t.autoFocus,k=t.preventDropOnDocument,x=t.noClick,E=t.noKeyboard,F=t.noDrag,C=t.noDragEventsBubbling,S=t.onError,D=t.validator,j=(0,el.useMemo)(function(){return function(e){if(gf(e))return Object.entries(e).reduce(function(e,t){var r=gi(t,2),i=r[0],a=r[1];return[].concat(ge(e),[i],ge(a))},[]).filter(function(e){return gb(e)||gy(e)}).join(",")}(r)},[r]),T=(0,el.useMemo)(function(){return gf(r)?[{description:"Files",accept:Object.entries(r).filter(function(e){var t=gi(e,2),r=t[0],i=t[1],a=!0;return gb(r)||(console.warn('Skipped "'.concat(r,'" 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.')),a=!1),Array.isArray(i)&&i.every(gy)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(e,t){var r=gi(t,2),i=r[0],a=r[1];return gn(gn({},e),{},gr({},i,a))},{})}]:r},[r]),O=(0,el.useMemo)(function(){return"function"==typeof y?y:gA},[y]),P=(0,el.useMemo)(function(){return"function"==typeof b?b:gA},[b]),R=(0,el.useRef)(null),M=(0,el.useRef)(null),L=gE((0,el.useReducer)(gL,gR),2),A=L[0],I=L[1],N=A.isFocused,B=A.isFileDialogActive,U=(0,el.useRef)("undefined"!=typeof window&&window.isSecureContext&&_&&"showOpenFilePicker"in window),z=function(){!U.current&&B&&setTimeout(function(){M.current&&!M.current.files.length&&(I({type:"closeDialog"}),P())},300)};(0,el.useEffect)(function(){return window.addEventListener("focus",z,!1),function(){window.removeEventListener("focus",z,!1)}},[M,B,P,U]);var H=(0,el.useRef)([]),q=function(e){R.current&&R.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,el.useEffect)(function(){return k&&(document.addEventListener("dragover",gg,!1),document.addEventListener("drop",q,!1)),function(){k&&(document.removeEventListener("dragover",gg),document.removeEventListener("drop",q))}},[R,k]),(0,el.useEffect)(function(){return!i&&w&&R.current&&R.current.focus(),function(){}},[R,w,i]);var V=(0,el.useCallback)(function(e){S?S(e):console.error(e)},[S]),W=(0,el.useCallback)(function(e){var t;e.preventDefault(),e.persist(),ei(e),H.current=[].concat(function(e){if(Array.isArray(e))return gC(e)}(t=H.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||gF(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]),gm(e)&&Promise.resolve(a(e)).then(function(t){if(!gh(e)||C){var r,i,a,p,f,m,g,v,b=t.length,y=b>0&&(i=(r={files:t,accept:j,minSize:s,maxSize:o,multiple:l,maxFiles:u,validator:D}).files,a=r.accept,p=r.minSize,f=r.maxSize,m=r.multiple,g=r.maxFiles,v=r.validator,(!!m||!(i.length>1))&&(!m||!(g>=1)||!(i.length>g))&&i.every(function(e){var t=gi(gd(e,a),1)[0],r=gi(gp(e,p,f),1)[0],i=v?v(e):null;return t&&r&&!i}));I({isDragAccept:y,isDragReject:b>0&&!y,isDragActive:!0,type:"setDraggedFiles"}),d&&d(e)}}).catch(function(e){return V(e)})},[a,d,V,C,j,s,o,l,u,D]),$=(0,el.useCallback)(function(e){e.preventDefault(),e.persist(),ei(e);var t=gm(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,C]),G=(0,el.useCallback)(function(e){e.preventDefault(),e.persist(),ei(e);var t=H.current.filter(function(e){return R.current&&R.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),H.current=t,!(t.length>0)&&(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),gm(e)&&p&&p(e))},[R,p,C]),Y=(0,el.useCallback)(function(e,t){var r=[],i=[];e.forEach(function(e){var t=gE(gd(e,j),2),a=t[0],l=t[1],u=gE(gp(e,s,o),2),d=u[0],p=u[1],f=D?D(e):null;if(a&&d&&!f)r.push(e);else{var m=[l,p];f&&(m=m.concat(f)),i.push({file:e,errors:m.filter(function(e){return e})})}}),(!l&&r.length>1||l&&u>=1&&r.length>u)&&(r.forEach(function(e){i.push({file:e,errors:[gu]})}),r.splice(0)),I({acceptedFiles:r,fileRejections:i,type:"setFiles"}),m&&m(r,i,t),i.length>0&&v&&v(i,t),r.length>0&&g&&g(r,t)},[I,l,j,s,o,u,m,g,v,D]),K=(0,el.useCallback)(function(e){e.preventDefault(),e.persist(),ei(e),H.current=[],gm(e)&&Promise.resolve(a(e)).then(function(t){(!gh(e)||C)&&Y(t,e)}).catch(function(e){return V(e)}),I({type:"reset"})},[a,Y,V,C]),Z=(0,el.useCallback)(function(){if(U.current){I({type:"openDialog"}),O(),window.showOpenFilePicker({multiple:l,types:T}).then(function(e){return a(e)}).then(function(e){Y(e,null),I({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(P(e),I({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(U.current=!1,M.current?(M.current.value=null,M.current.click()):V(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."))):V(e)});return}M.current&&(I({type:"openDialog"}),O(),M.current.value=null,M.current.click())},[I,O,P,_,Y,V,T,l]),J=(0,el.useCallback)(function(e){R.current&&R.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),Z())},[R,Z]),X=(0,el.useCallback)(function(){I({type:"focus"})},[]),Q=(0,el.useCallback)(function(){I({type:"blur"})},[]),ee=(0,el.useCallback)(function(){x||(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(Z,0):Z())},[x,Z]),et=function(e){return i?null:e},en=function(e){return E?null:et(e)},er=function(e){return F?null:et(e)},ei=function(e){C&&e.stopPropagation()},ea=(0,el.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=e.role,a=e.onKeyDown,o=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,d=e.onDragOver,p=e.onDragLeave,f=e.onDrop,m=gT(e,gk);return gD(gD(gj({onKeyDown:en(gv(a,J)),onFocus:en(gv(o,X)),onBlur:en(gv(s,Q)),onClick:et(gv(l,ee)),onDragEnter:er(gv(u,W)),onDragOver:er(gv(d,$)),onDragLeave:er(gv(p,G)),onDrop:er(gv(f,K)),role:"string"==typeof r&&""!==r?r:"presentation"},void 0===t?"ref":t,R),i||E?{}:{tabIndex:0}),m)}},[R,J,X,Q,ee,W,$,G,K,E,F,i]),eo=(0,el.useCallback)(function(e){e.stopPropagation()},[]),es=(0,el.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=e.onChange,i=e.onClick,a=gT(e,gx);return gD(gD({},gj({accept:j,multiple:l,type:"file",style:{display:"none"},onChange:et(gv(r,K)),onClick:et(gv(i,eo)),tabIndex:-1},void 0===t?"ref":t,M)),a)}},[M,r,l,K,i]);return gD(gD({},A),{},{isFocused:N&&!i,getRootProps:ea,getInputProps:es,rootRef:R,inputRef:M,open:et(Z)})}function gL(e,t){switch(t.type){case"focus":return gD(gD({},e),{},{isFocused:!0});case"blur":return gD(gD({},e),{},{isFocused:!1});case"openDialog":return gD(gD({},gR),{},{isFileDialogActive:!0});case"closeDialog":return gD(gD({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return gD(gD({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return gD(gD({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return gD({},gR);default:return e}}function gA(){}var gI=function(e){var t=e.accept,r=void 0===t?[]:t,i=e.children,a=e.disabled,o=e.handleFiles,s=e.maxNumberOfFiles,l=e.multiple,u=aZ("ImageDropzone").t,d=(0,el.useCallback)(function(e){o&&e&&e.length&&o(e)},[o]),p=gM({accept:(0,el.useMemo)(function(){return("string"==typeof r?r.split(","):r).reduce(function(e,t){var r;return null!==(r=e[t])&&void 0!==r||(e[t]=[]),e},{})},[r]),disabled:a,maxFiles:s,multiple:l,noClick:!0,onDrop:d}),f=p.getRootProps,m=p.isDragAccept,g=p.isDragReject;return ec().createElement("div",io({},f({className:a5("rfu-dropzone",{"rfu-dropzone--accept":m,"rfu-dropzone--reject":g}),style:{position:"relative"}}),{tabIndex:-1}),ec().createElement("div",{className:"rfu-dropzone__notifier"},ec().createElement("div",{className:"rfu-dropzone__inner"},ec().createElement("svg",{height:"41",viewBox:"0 0 41 41",width:"41",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{d:"M40.517 28.002V3.997c0-2.197-1.808-3.992-4.005-3.992H12.507a4.004 4.004 0 0 0-3.992 3.993v24.004a4.004 4.004 0 0 0 3.992 3.993h24.005c2.197 0 4.005-1.795 4.005-3.993zm-22.002-7.997l4.062 5.42 5.937-7.423 7.998 10H12.507l6.008-7.997zM.517 8.003V36c0 2.198 1.795 4.005 3.993 4.005h27.997V36H4.51V8.002H.517z",fill:"#000",fillRule:"nonzero"})),ec().createElement("p",null,u("Drag your files here to add to your post")))),i)},gN=function(){return ec().createElement("svg",{height:"20",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),ec().createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},gB=function(e){var t,r=e.onFileChange,i=e.resetOnChange,a=is(e,["onFileChange","resetOnChange"]),o=(void 0===(t=void 0===i||i)&&(t=!1),(0,el.useCallback)(function(e){var i=e.currentTarget,a=i.files;if(a){try{null==r||r(Array.from(a))}catch(e){console.error(e)}t&&(i.value="")}},[r,t]));return ec().createElement("input",io({onChange:o,type:"file"},a))},gU=function(e){var t=e.disabled,r=void 0!==t&&t,i=e.multiple,a=e.children,o=void 0===a?ec().createElement(gN,null):a,s=e.handleFiles,l=e.accepts,u=e.resetOnChange,d="rfu-file-upload-button";return r&&(d="".concat(d," rfu-file-upload-button--disabled")),ec().createElement("div",{className:d},ec().createElement("label",null,ec().createElement(gB,{accept:Array.isArray(l)?l.join(","):l,"aria-label":"File input",className:"rfu-file-input",disabled:r,multiple:void 0!==i&&i,onFileChange:s,resetOnChange:void 0===u||u}),o))},gz=r(95242),gH=ec().lazy(function(){return r.e(181).then(r.bind(r,13181))}),gq=ec().lazy(function(){return r.e(441).then(r.bind(r,60441))}),gV=ec().createContext(void 0),gW=function(e){var t=e.children,r=e.value,i=r.Emoji,a=r.emojiConfig,o=r.EmojiIndex,s=void 0===o?gz.default:o,l=r.EmojiPicker;return ec().createElement(gV.Provider,{value:{Emoji:void 0===i?gH:i,emojiConfig:a,EmojiIndex:s,EmojiPicker:void 0===l?gq:l}},t)},g$=function(e){return(0,el.useContext)(gV)||(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.")),{})},gG=(0,el.createContext)(void 0),gY=function(e){var t=e.children,r=e.value;return ec().createElement(gG.Provider,{value:r},t)},gK=function(e){return(0,el.useContext)(gG)||(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.")),{})},gZ=function(e){return!("White Smiling Face"===e.name||"White Frowning Face"===e.name)},gJ=function(e){var t=e.small,r=g$("EmojiPicker"),i=r.emojiConfig,a=r.EmojiPicker,o=aZ("EmojiPicker").t,s=gK("EmojiPicker"),l=s.emojiPickerIsOpen,u=s.emojiPickerRef,d=s.onSelectEmoji,p=(i||{}).emojiData;return l&&p?ec().createElement("div",{className:a5("str-chat__emoji-picker-container",{"str-chat__input--emojipicker":!t,"str-chat__small-message-input-emojipicker":t}),ref:u},ec().createElement(el.Suspense,{fallback:null},ec().createElement(a,{color:"#006CFF",data:p,emoji:"point_up",emojisToShowFilter:gZ,native:!0,onSelect:d,set:"facebook",showPreview:!1,showSkinTones:!1,title:o("Pick your emoji"),useButton:!0}))):null},gX=function(){var e=aZ("EmojiIconLarge").t;return ec().createElement("svg",{height:"28",width:"28",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,e("Open emoji picker")),ec().createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},ec().createElement("path",{d:"M14 4.4C8.6 4.4 4.4 8.6 4.4 14c0 5.4 4.2 9.6 9.6 9.6c5.4 0 9.6-4.2 9.6-9.6c0-5.4-4.2-9.6-9.6-9.6zM2 14c0-6.6 5.4-12 12-12s12 5.4 12 12s-5.4 12-12 12s-12-5.4-12-12zM12.8 11c0 1-.8 1.8-1.8 1.8s-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8s1.8.8 1.8 1.8zM18.8 11c0 1-.8 1.8-1.8 1.8s-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8s1.8.8 1.8 1.8zM8.6 15.4c.6-.4 1.2-.2 1.6.2c.6.8 1.6 1.8 3 2c1.2.4 2.8.2 4.8-2c.4-.4 1.2-.6 1.6 0c.4.4.6 1.2 0 1.6c-2.2 2.6-4.8 3.4-7 3c-2-.4-3.6-1.8-4.4-3c-.4-.6-.2-1.2.4-1.8z"})))},gQ=function(){var e=aZ("EmojiIconSmall").t;return ec().createElement("svg",{height:"14",width:"14",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,e("Open emoji picker")),ec().createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},ec().createElement("path",{d:"M6.7 1.42C3.73 1.42 1.42 3.73 1.42 6.7c0 2.97 2.31 5.28 5.28 5.28c2.97 0 5.28-2.31 5.28-5.28c0-2.97-2.31-5.28-5.28-5.28zM.1 6.7c0-3.63 2.97-6.6 6.6-6.6s6.6 2.97 6.6 6.6s-2.97 6.6-6.6 6.6s-6.6-2.97-6.6-6.6zM6.04 5.05c0 .55-.44.99-.99.99s-.99-.44-.99-.99s.44-.99.99-.99s.99.44.99.99zM9.34 5.05c0 .55-.44.99-.99.99s-.99-.44-.99-.99s.44-.99.99-.99s.99.44.99.99zM3.73 7.47c.33-.22.66-.11.88.11c.33.44.88.99 1.65 1.1c.66.22 1.54.11 2.64-1.1c.22-.22.66-.33.88 0c.22.22.33.66 0 .88c-1.21 1.43-2.64 1.87-3.85 1.65c-1.1-.22-1.98-.99-2.42-1.65c-.22-.33-.11-.66.22-.99z"})))},g0=function(){return ec().createElement("svg",{preserveAspectRatio:"xMinYMin",viewBox:"0 0 28 28",width:"100%",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},ec().createElement("path",{d:"M14 4.4C8.6 4.4 4.4 8.6 4.4 14c0 5.4 4.2 9.6 9.6 9.6c5.4 0 9.6-4.2 9.6-9.6c0-5.4-4.2-9.6-9.6-9.6zM2 14c0-6.6 5.4-12 12-12s12 5.4 12 12s-5.4 12-12 12s-12-5.4-12-12zM12.8 11c0 1-.8 1.8-1.8 1.8s-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8s1.8.8 1.8 1.8zM18.8 11c0 1-.8 1.8-1.8 1.8s-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8s1.8.8 1.8 1.8zM8.6 15.4c.6-.4 1.2-.2 1.6.2c.6.8 1.6 1.8 3 2c1.2.4 2.8.2 4.8-2c.4-.4 1.2-.6 1.6 0c.4.4.6 1.2 0 1.6c-2.2 2.6-4.8 3.4-7 3c-2-.4-3.6-1.8-4.4-3c-.4-.6-.2-1.2.4-1.8z"})))},g1=function(){var e=aZ("FileUploadIcon").t;return ec().createElement("svg",{height:"14",width:"14",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,e("Attach files")),ec().createElement("path",{d:"M7 .5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5S.5 10.59.5 7 3.41.5 7 .5zm0 12c3.031 0 5.5-2.469 5.5-5.5S10.031 1.5 7 1.5A5.506 5.506 0 0 0 1.5 7c0 3.034 2.469 5.5 5.5 5.5zM7.506 3v3.494H11v1.05H7.506V11h-1.05V7.544H3v-1.05h3.456V3h1.05z",fillRule:"nonzero"}))},g2=function(){var e=aZ("FileUploadIconFlat").t;return ec().createElement("svg",{height:"14",width:"14",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,e("Attach files")),ec().createElement("path",{d:"M1.667.333h10.666c.737 0 1.334.597 1.334 1.334v10.666c0 .737-.597 1.334-1.334 1.334H1.667a1.333 1.333 0 0 1-1.334-1.334V1.667C.333.93.93.333 1.667.333zm2 1.334a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333zm-2 9.333v1.333h10.666v-4l-2-2-4 4-2-2L1.667 11z",fillRule:"nonzero"}))},g3=function(e){var t=e.size,r=void 0===t?20:t,i=(0,el.useMemo)(function(){return c9()},[]);return ec().createElement("div",{className:"str-chat__loading-indicator"},ec().createElement("svg",{"data-testid":"loading-indicator",height:r,viewBox:"0 0 30 30",width:r,xmlns:"http://www.w3.org/2000/svg"},ec().createElement("defs",null,ec().createElement("linearGradient",{id:"".concat(i,"-linear-gradient"),x1:"50%",x2:"50%",y1:"0%",y2:"100%"},ec().createElement("stop",{offset:"0%",stopColor:"#FFF",stopOpacity:"0"}),ec().createElement("stop",{"data-testid":"stop-color",offset:"100%",stopOpacity:"1"}))),ec().createElement("path",{d:"M2.518 23.321l1.664-1.11A12.988 12.988 0 0 0 15 28c7.18 0 13-5.82 13-13S22.18 2 15 2V0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-5.206 0-9.792-2.652-12.482-6.679z",fill:"url(#".concat(i,"-linear-gradient)"),fillRule:"evenodd"})))},g4=function(){return ec().createElement("svg",{"data-testid":"attach",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("g",{clipPath:"url(#clip0_10878_5)"},ec().createElement("path",{d:"M12.9997 6.99993L10.9997 6.99993L10.9997 10.9999L6.99972 10.9999L6.99972 12.9999L10.9997 12.9999L10.9997 16.9999L12.9997 16.9999L12.9997 12.9999L16.9997 12.9999L16.9997 10.9999L12.9997 10.9999L12.9997 6.99993ZM11.9997 1.99992C6.47972 1.99992 1.99972 6.47993 1.99972 11.9999C1.99972 17.5199 6.47972 21.9999 11.9997 21.9999C17.5197 21.9999 21.9997 17.5199 21.9997 11.9999C21.9997 6.47993 17.5197 1.99992 11.9997 1.99992ZM11.9997 19.9999C7.58972 19.9999 3.99972 16.4099 3.99972 11.9999C3.99972 7.58993 7.58972 3.99993 11.9997 3.99993C16.4097 3.99993 19.9997 7.58993 19.9997 11.9999C19.9997 16.4099 16.4097 19.9999 11.9997 19.9999Z",fill:"black"})),ec().createElement("defs",null,ec().createElement("clipPath",{id:"clip0_10878_5"},ec().createElement("rect",{fill:"white",height:"24",width:"24"}))))},g6=function(){return ec().createElement("svg",{"data-testid":"close-no-outline",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},g5=function(){return ec().createElement("svg",{"data-testid":"retry",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{d:"M17.6449 6.35C16.1949 4.9 14.2049 4 11.9949 4C7.57488 4 4.00488 7.58 4.00488 12C4.00488 16.42 7.57488 20 11.9949 20C15.7249 20 18.8349 17.45 19.7249 14H17.6449C16.8249 16.33 14.6049 18 11.9949 18C8.68488 18 5.99488 15.31 5.99488 12C5.99488 8.69 8.68488 6 11.9949 6C13.6549 6 15.1349 6.69 16.2149 7.78L12.9949 11H19.9949V4L17.6449 6.35Z",fill:"black"}))},g8=function(){return ec().createElement("svg",{"data-testid":"download",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04ZM19 18H6C3.79 18 2 16.21 2 14C2 11.95 3.53 10.24 5.56 10.03L6.63 9.92L7.13 8.97C8.08 7.14 9.94 6 12 6C14.62 6 16.88 7.86 17.39 10.43L17.69 11.93L19.22 12.04C20.78 12.14 22 13.45 22 15C22 16.65 20.65 18 19 18ZM13.45 10H10.55V13H8L12 17L16 13H13.45V10Z",fill:"black"}))},g9=function(){return ec().createElement("svg",{fill:"none",height:"11",viewBox:"0 0 20 11",width:"20",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{clipRule:"evenodd",d:"M1.9 5.5C1.9 3.79 3.29 2.4 5 2.4H8.05C8.57467 2.4 9 1.97467 9 1.45C9 0.925329 8.57467 0.5 8.05 0.5H5C2.24 0.5 0 2.74 0 5.5C0 8.26 2.24 10.5 5 10.5H8.05C8.57467 10.5 9 10.0747 9 9.55C9 9.02533 8.57467 8.6 8.05 8.6H5C3.29 8.6 1.9 7.21 1.9 5.5ZM6 5.5C6 6.05228 6.44772 6.5 7 6.5H13C13.5523 6.5 14 6.05228 14 5.5C14 4.94772 13.5523 4.5 13 4.5H7C6.44772 4.5 6 4.94772 6 5.5ZM15 0.5H11.95C11.4253 0.5 11 0.925329 11 1.45C11 1.97467 11.4253 2.4 11.95 2.4H15C16.71 2.4 18.1 3.79 18.1 5.5C18.1 7.21 16.71 8.6 15 8.6H11.95C11.4253 8.6 11 9.02533 11 9.55C11 10.0747 11.4253 10.5 11.95 10.5H15C17.76 10.5 20 8.26 20 5.5C20 2.74 17.76 0.5 15 0.5Z",fill:"#005DFF",fillRule:"evenodd"}))},g7=function(){var e=aZ("SendButton").t;return ec().createElement("svg",{height:"17",viewBox:"0 0 18 17",width:"18",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,e("Send")),ec().createElement("path",{d:"M0 17.015l17.333-8.508L0 0v6.617l12.417 1.89L0 10.397z",fill:"#006cff",fillRule:"evenodd"}))},ve=function(){var e=aZ("SendButton").t;return ec().createElement("svg",{"data-testid":"send",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,e("Send")),ec().createElement("path",{d:"M4.00952 22L24 12L4.00952 2L4 9.77778L18.2857 12L4 14.2222L4.00952 22Z",fill:"black"}))},vt=function(e){var t=e.sendMessage,r=is(e,["sendMessage"]),i=a4("SendButton").themeVersion;return ec().createElement("button",io({"aria-label":"Send",className:"str-chat__send-button","data-testid":"send-button",onClick:t,type:"button"},r),"2"===i?ec().createElement(ve,null):ec().createElement(g7,null))},vn=function(e){var t=e.backgroundColor,r=e.color,i=e.size,a=void 0===i?20:i,o=e.width;return ec().createElement("div",{className:"rfu-loading-indicator__spinner",style:{borderColor:t||"",borderTopColor:r||"",borderWidth:(void 0===o?2:o)||"",height:a||"",margin:"0 auto",width:a||""}})},vr=function(e){var t=e.children,r=e.onClick;return ec().createElement("button",{"aria-label":"Cancel upload",className:"rfu-icon-button","data-testid":"cancel-upload-button",onClick:r,type:"button"},t)},vi=function(){return ec().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"},ec().createElement("defs",null,ec().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"}),ec().createElement("filter",{filterUnits:"objectBoundingBox",height:"160%",id:"a",width:"160%",x:"-30%",y:"-30%"},ec().createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),ec().createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"2"}),ec().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"}))),ec().createElement("g",{fill:"none",fillRule:"nonzero",transform:"translate(-451 -1)"},ec().createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),ec().createElement("use",{fill:"#FFF",fillRule:"evenodd",xlinkHref:"#b"})))},va=function(e){return ec().createElement("svg",io({role:"img",viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},e),ec().createElement("g",null,ec().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"}),ec().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"})))},vo=function(e){var t=e.alt,r=e.handleClose,i=e.image,a=e.size,o=void 0===a?100:a,s=(0,el.useCallback)(function(e){return null==r?void 0:r(e)},[r]);return ec().createElement("div",{className:"rfu-thumbnail__wrapper",style:{height:o,width:o}},ec().createElement("div",{className:"rfu-thumbnail__overlay"},r?ec().createElement(vr,{onClick:s},ec().createElement(vi,null)):null),i?ec().createElement("img",{alt:null!=t?t:"",className:"rfu-thumbnail__image",src:i}):ec().createElement(va,{className:"rfu-thumbnail__image",preserveAspectRatio:"xMinYMin slice"}))},vs=function(){return ec().createElement("svg",{height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},vl=function(e){var t=e.multiple,r=e.disabled,i=e.handleFiles,a=e.children,o=void 0===a?ec().createElement(vs,null):a,s=e.resetOnChange;return ec().createElement("div",{className:"rfu-image-upload-button"},ec().createElement("label",null,ec().createElement(gB,{accept:"image/*","aria-label":"Image input",className:"rfu-image-input",disabled:void 0!==r&&r,multiple:void 0!==t&&t,onFileChange:i,resetOnChange:void 0!==s&&s}),o))},vc=function(e){var t=e.handleFiles,r=e.multiple;return ec().createElement(vl,{handleFiles:t,multiple:void 0!==r&&r},ec().createElement("div",{className:"rfu-thumbnail-placeholder"},ec().createElement("svg",{height:"15",viewBox:"0 0 14 15",width:"14",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("path",{d:"M14 8.998H8v6H6v-6H0v-2h6v-6h2v6h6z",fill:"#A0B2B8",fillRule:"nonzero"}))))},vu=function(){return ec().createElement("svg",{height:"20",viewBox:"0 0 22 20",width:"22",xmlns:"http://www.w3.org/2000/svg"},ec().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"}))},vd=function(e){var t=e.disabled,r=e.handleFiles,i=e.handleRemove,a=e.handleRetry,o=e.imageUploads,s=e.multiple,l=(0,el.useCallback)(function(e,t){if(!e)return console.warn('image.id of closed image was "null", this shouldn\'t happen');null==i||i(e,t)},[i]);return ec().createElement("div",{className:"rfu-image-previewer"},null==o?void 0:o.map(function(e){var t=e.url||e.previewUri;return ec().createElement("div",{className:a5("rfu-image-previewer__image","finished"===e.state&&"rfu-image-previewer__image--loaded"),key:e.id},"failed"===e.state&&ec().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"},ec().createElement(vu,null)),t&&ec().createElement(vo,{handleClose:function(t){return l(e.id,t)},image:t}),"uploading"===e.state&&ec().createElement(vn,{backgroundColor:"#ffffff19",color:"#ffffffb2"}))}),r&&!(void 0!==t&&t)&&ec().createElement(vc,{handleFiles:r,multiple:void 0===s||s}))},vp=function(e){var t=e.fileIconProps,r=void 0===t?{}:t,i=e.uploads,a=e.handleRemove,o=e.handleRetry;return ec().createElement("div",{className:"rfu-file-previewer"},ec().createElement("ol",null,null==i?void 0:i.map(function(e){return ec().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},ec().createElement(px,io({mimeType:e.file.type},r)),ec().createElement("a",{download:!0,href:e.url},e.file.name,"failed"===e.state&&ec().createElement(ec().Fragment,null,ec().createElement("div",{className:"rfu-file-previewer__failed",onClick:function(){return null==o?void 0:o(e.id)}},"failed"),ec().createElement("div",{className:"rfu-file-previewer__retry",onClick:function(){return null==o?void 0:o(e.id)}},"retry"))),ec().createElement("span",{className:"rfu-file-previewer__close-button",onClick:a&&function(){return a(e.id)}},"✘"),"uploading"===e.state&&ec().createElement("div",{className:"rfu-file-previewer__loading-indicator"},ec().createElement(vn,null)))})))},vf=function(){var e=a4("UploadsPreview").themeVersion,t=pn("UploadsPreview"),r=t.maxNumberOfFiles,i=t.multipleUploads,a=gK("UploadsPreview"),o=a.fileOrder,s=a.fileUploads,l=a.imageOrder,u=a.imageUploads,d=a.numberOfUploads,p=a.removeFile,f=a.removeImage,m=a.uploadFile,g=a.uploadImage,v=a.uploadNewFiles,b=l.map(function(e){return u[e]}).filter(function(e){return!e.og_scrape_url}),y=o.map(function(e){return s[e]});return ec().createElement(ec().Fragment,null,l.length>0&&ec().createElement(vd,{disabled:!i||(void 0===d?0:d)>=(void 0===r?0:r),handleFiles:v,handleRemove:f,handleRetry:g,imageUploads:b,multiple:i}),o.length>0&&ec().createElement(vp,{fileIconProps:{className:"str-chat__file-icon",version:e},handleFiles:v,handleRemove:p,handleRetry:m,uploads:y}))};function vh(){return(vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&!r?ec().createElement("div",{className:"str-chat__link-preview-list"},Array.from(t.values()).map(function(e){return e.state===k.LOADED?ec().createElement(vI,{key:e.og_scrape_url,linkPreview:e}):null})):null},vI=function(e){var t=e.linkPreview,r=gK().dismissLinkPreview,i=hf(),a=i.handleEnter,o=i.handleLeave,s=i.tooltipVisible,l=(0,el.useState)(null),u=l[0],d=l[1];return ec().createElement("div",{className:a5("str-chat__link-preview-card",{"str-chat__link-preview-card--loading":t.state===k.LOADING}),"data-testid":"link-preview-card"},ec().createElement(hp,{offset:[0,5],referenceElement:u,visible:s},t.og_scrape_url),ec().createElement("div",{className:"str-chat__link-preview-card__icon-container",onMouseEnter:a,onMouseLeave:o,ref:d},ec().createElement(g9,null)),ec().createElement("div",{className:"str-chat__link-preview-card__content"},ec().createElement("div",{className:"str-chat__link-preview-card__content-title"},t.title),ec().createElement("div",{className:"str-chat__link-preview-card__content-description"},t.text)),ec().createElement("button",{className:"str-chat__link-preview-card__dismiss-button","data-testid":"link-preview-card-dismiss-btn",onClick:function(){return r(t)}},ec().createElement(g6,null)))},vN=function(e){var t=e.cooldownInterval,r=e.setCooldownRemaining,i=(0,el.useState)(t),a=i[0],o=i[1];return(0,el.useEffect)(function(){var e=setInterval(function(){a>0?o(a-1):r(0)},1e3);return function(){return clearInterval(e)}}),ec().createElement("div",{className:"str-chat__message-input-cooldown","data-testid":"cooldown-timer"},a)},vB=function(){var e=pn("MessageInputFlat").quotedMessage,t=fi("MessageInputFlat").setQuotedMessage,r=a4("MessageInputFlat"),i=r.channel,a=r.themeVersion;return(0,el.useEffect)(function(){var r=function(r){var i;if((null===(i=r.message)||void 0===i?void 0:i.id)===(null==e?void 0:e.id)){if("message.deleted"===r.type){t(void 0);return}t(r.message)}};return null==i||i.on("message.deleted",r),null==i||i.on("message.updated",r),function(){null==i||i.off("message.deleted",r),null==i||i.off("message.updated",r)}},[i,e]),"2"===a?ec().createElement(vz,null):ec().createElement(vU,null)},vU=function(){var e=pn("MessageInputFlat"),t=e.acceptedFiles,r=e.multipleUploads,i=e.quotedMessage,a=aZ("MessageInputFlat").t,o=gK("MessageInputFlat"),s=o.closeEmojiPicker,l=o.cooldownRemaining,u=o.emojiPickerIsOpen,d=o.handleSubmit,p=o.hideSendButton,f=o.isUploadEnabled,m=o.maxFilesLeft,g=o.numberOfUploads,v=o.openEmojiPicker,b=o.setCooldownRemaining,y=o.uploadNewFiles,_=d8("MessageInputFlat"),w=_.CooldownTimer,k=_.EmojiIcon,x=_.FileUploadIcon,E=_.QuotedMessagePreview,F=_.SendButton,C=void 0===F?vt:F,S=_.AttachmentPreviewList;return ec().createElement("div",{className:a5("str-chat__input-flat","str-chat__message-input",{"str-chat__input-flat--send-button-active":!!C,"str-chat__input-flat-has-attachments":g,"str-chat__input-flat-quoted":i&&!i.parent_id})},ec().createElement(gI,{accept:t,disabled:!f||0===m||!!l,handleFiles:y,maxNumberOfFiles:m,multiple:r},i&&!i.parent_id&&ec().createElement(void 0===E?vP:E,{quotedMessage:i}),ec().createElement("div",{className:"str-chat__input-flat-wrapper"},f&&ec().createElement(void 0===S?vf:S,null),ec().createElement("div",{className:"str-chat__input-flat--textarea-wrapper"},ec().createElement("div",{className:"str-chat__emojiselect-wrapper"},ec().createElement(hd,null,a(u?"Close emoji picker":"Open emoji picker")),ec().createElement("button",{"aria-label":"Emoji picker",className:"str-chat__input-flat-emojiselect",onClick:u?s:v},l?ec().createElement("div",{className:"str-chat__input-flat-cooldown"},ec().createElement(void 0===w?vN:w,{cooldownInterval:l,setCooldownRemaining:b})):ec().createElement(void 0===k?gX:k,null))),ec().createElement(gJ,null),ec().createElement(vT,null),f&&!l&&ec().createElement("div",{className:"str-chat__fileupload-wrapper","data-testid":"fileinput"},ec().createElement(hd,null,a(m?"Attach files":"You've reached the maximum number of files")),ec().createElement(gU,{accepts:t,disabled:0===m,handleFiles:y,multiple:r},ec().createElement("span",{className:"str-chat__input-flat-fileupload"},ec().createElement(void 0===x?g2:x,null))))),!(l||p)&&ec().createElement(C,{sendMessage:d}))))},vz=function(){var e=pn("MessageInputV2"),t=e.acceptedFiles,r=void 0===t?[]:t,i=e.multipleUploads,a=e.quotedMessage,o=aZ("MessageInputV2").t,s=gK("MessageInputV2"),l=s.closeEmojiPicker,u=s.cooldownRemaining,d=s.emojiPickerIsOpen,p=s.findAndEnqueueURLsToEnrich,f=s.handleSubmit,m=s.hideSendButton,g=s.isUploadEnabled,v=s.linkPreviews,b=s.maxFilesLeft,y=s.message,_=s.numberOfUploads,w=s.openEmojiPicker,k=s.setCooldownRemaining,x=s.text,E=s.uploadNewFiles,F=d8("MessageInputV2"),C=F.AttachmentPreviewList,S=F.CooldownTimer,D=F.EmojiIcon,j=F.FileUploadIcon,T=F.LinkPreviewList,O=F.QuotedMessagePreview,P=F.SendButton,R=(0,el.useState)(null),M=R[0],L=R[1],A=(0,el.useState)(null),I=A[0],N=A[1],B=hu(M,I,{placement:"top-end"}),U=B.attributes,z=B.styles,H=(0,el.useMemo)(function(){return c9()},[]),q=gM({accept:(0,el.useMemo)(function(){return r.reduce(function(e,t){var r;return null!==(r=e[t])&&void 0!==r||(e[t]=[]),e},{})},[r]),disabled:!g||0===b,multiple:i,noClick:!0,onDrop:E}),V=q.getRootProps,W=q.isDragActive,$=q.isDragReject,G=!y&&a&&!a.parent_id;return ec().createElement(ec().Fragment,null,ec().createElement("div",io({},V({className:"str-chat__message-input"})),p&&ec().createElement(void 0===T?vA:T,{linkPreviews:Array.from(v.values())}),W&&ec().createElement("div",{className:a5("str-chat__dropzone-container",{"str-chat__dropzone-container--not-accepted":$})},!$&&ec().createElement("p",null,o("Drag your files here")),$&&ec().createElement("p",null,o("Some of the files will not be accepted"))),G&&ec().createElement(vO,null),ec().createElement("div",{className:"str-chat__message-input-inner"},ec().createElement("div",{className:"str-chat__file-input-container","data-testid":"file-upload-button"},ec().createElement(gB,{accept:null==r?void 0:r.join(","),"aria-label":"File upload",className:"str-chat__file-input","data-testid":"file-input",disabled:!g||0===b,id:H,multiple:i,onFileChange:E}),ec().createElement("label",{className:"str-chat__file-input-label",htmlFor:H},ec().createElement(void 0===j?g4:j,null))),ec().createElement("div",{className:"str-chat__message-textarea-container"},G&&ec().createElement(void 0===O?vP:O,{quotedMessage:a}),g&&!!_&&ec().createElement(void 0===C?vR:C,null),ec().createElement("div",{className:"str-chat__message-textarea-with-emoji-picker"},ec().createElement(vT,null),ec().createElement("div",{className:"str-chat__message-textarea-emoji-picker"},d&&ec().createElement("div",io({className:"str-chat__message-textarea-emoji-picker-container",style:z.popper},U.popper,{ref:N}),ec().createElement(gJ,null)),ec().createElement("button",{"aria-label":"Emoji picker",className:"str-chat__emoji-picker-button",onClick:d?l:w,ref:L,type:"button"},ec().createElement(void 0===D?g0:D,null))))),!m&&ec().createElement(ec().Fragment,null,u?ec().createElement(void 0===S?vN:S,{cooldownInterval:u,setCooldownRemaining:k}):ec().createElement(void 0===P?vt:P,{disabled:!_&&!x.length,sendMessage:f})))))},vH=function(){var e=pn("EditMessageForm"),t=e.acceptedFiles,r=e.multipleUploads,i=aZ("EditMessageForm").t,a=gK("EditMessageForm"),o=a.clearEditingState,s=a.closeEmojiPicker,l=a.emojiPickerIsOpen,u=a.handleSubmit,d=a.isUploadEnabled,p=a.maxFilesLeft,f=a.openEmojiPicker,m=a.uploadNewFiles,g=d8("EditMessageForm"),v=g.EmojiIcon,b=g.FileUploadIcon,y=a4("EditMessageForm").themeVersion;return((0,el.useEffect)(function(){var e=function(e){"Escape"===e.key&&(null==o||o())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[o]),"2"===y)?ec().createElement("form",{className:"str-chat__edit-message-form",onSubmit:u},ec().createElement(vB,null),ec().createElement("div",{className:"str-chat__edit-message-form-options"},ec().createElement("button",{className:"str-chat__edit-message-cancel","data-testid":"cancel-button",onClick:o},i("Cancel")),ec().createElement("button",{className:"str-chat__edit-message-send","data-testid":"send-button",type:"submit"},i("Send")))):ec().createElement("div",{className:"str-chat__edit-message-form"},ec().createElement(gI,{accept:t,disabled:!d||0===p,handleFiles:m,maxNumberOfFiles:p,multiple:r},ec().createElement("form",{onSubmit:u},d&&ec().createElement(vf,null),ec().createElement(gJ,{small:!0}),ec().createElement(vT,null),ec().createElement("div",{className:"str-chat__message-team-form-footer"},ec().createElement("div",{className:"str-chat__edit-message-form-options"},ec().createElement("button",{"aria-label":"Open Emoji Picker",className:"str-chat__input-emojiselect",onClick:l?s:f},ec().createElement(void 0===v?gQ:v,null)),d&&ec().createElement("div",{className:"str-chat__fileupload-wrapper","data-testid":"fileinput"},ec().createElement(hd,null,i(p?"Attach files":"You've reached the maximum number of files")),ec().createElement(gU,{accepts:t,disabled:0===p,handleFiles:m,multiple:r},ec().createElement("span",{className:"str-chat__input-fileupload"},ec().createElement(void 0===b?g1:b,null))))),ec().createElement("div",null,ec().createElement("button",{className:"str-chat__edit-message-cancel",onClick:o},i("Cancel")),ec().createElement("button",{className:"str-chat__edit-message-send",type:"submit"},i("Send")))))))},vq=function(){var e=a4("useCommandTrigger").themeVersion,t=pn("useCommandTrigger").channelConfig,r=aZ("useCommandTrigger").t,i=null==t?void 0:t.commands;return{component:vS,dataProvider:function(t,a,o){if(0!==a.indexOf("/")||!i)return[];var s=i.filter(function(e){var r;return(null===(r=e.name)||void 0===r?void 0:r.indexOf(t))!==-1});s.sort(function(e,r){var i,a,o=null===(i=e.name)||void 0===i?void 0:i.toLowerCase(),s=null===(a=r.name)||void 0===a?void 0:a.toLowerCase();if((null==o?void 0:o.indexOf(t))===0&&(o="0".concat(o)),(null==s?void 0:s.indexOf(t))===0&&(s="0".concat(s)),null!=o&&null!=s){if(os)return 1}return 0});var l=s.slice(0,"2"===e?5:10);return o&&o(l.filter(function(e){return void 0!==e.name}).map(function(e){var t={name:e.name};return e.args&&(t.args=r("".concat(e.name,"-command-args"),{defaultValue:e.args})),e.description&&(t.description=r("".concat(e.name,"-command-description"),{defaultValue:e.description})),t}),t),l},output:function(e){return{caretPosition:"next",key:e.name,text:"/".concat(e.name)}}}},vV=ec().memo(function(e){var t=e.entity,r=Object.keys(t).length,i=null==t?void 0:t.itemNameParts;return ec().createElement("div",{className:"str-chat__emoji-item"},ec().createElement("span",{className:"str-chat__emoji-item--entity"},t.native),ec().createElement("span",{className:"str-chat__emoji-item--name"},r?r&&i.parts.map(function(e,t){return e.toLowerCase()===i.match.toLowerCase()?ec().createElement("span",{className:"str-chat__emoji-item--highlight",key:"part-".concat(t)},e):ec().createElement("span",{className:"str-chat__emoji-item--part",key:"part-".concat(t)},e)}):null))}),vW=function(e){var t=a4("useEmojiTrigger").themeVersion;return{component:vV,dataProvider:function(r,i,a){if(0===r.length||r.charAt(0).match(/[^a-zA-Z0-9+-]/))return[];var o=((null==e?void 0:e.search(r))||[]).filter(Boolean).slice(0,"2"===t?7:10);return a&&a(o,r),o},output:function(e){return{caretPosition:"next",key:e.id,text:"".concat("native"in e?e.native:"")}}}},v$={a:"\xe1|\xe0|\xe3|\xe2|\xc0|\xc1|\xc3|\xc2",c:"\xe7|\xc7",e:"\xe9|\xe8|\xea|\xc9|\xc8|\xca",i:"\xed|\xec|\xee|\xcd|\xcc|\xce",n:"\xf1|\xd1",o:"\xf3|\xf2|\xf4|ő|\xf5|\xd3|\xd2|\xd4|\xd5",u:"\xfa|\xf9|\xfb|\xfc|\xda|\xd9|\xdb|\xdc"},vG=function(e){return e?Object.keys(v$).reduce(function(e,t){return e.replace(RegExp(v$[t],"g"),t)},e):""},vY=function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var r,i,a=[];for(r=0;r<=t.length;r++)a[r]=[r];for(i=0;i<=e.length;i++)a[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?a[r][i]=a[r-1][i-1]:a[r][i]=Math.min(a[r-1][i-1]+1,Math.min(a[r][i-1]+1,a[r-1][i]+1));return a[t.length][e.length]},vK=function(e){var t=e.ownUserId,i=e.query,a=e.text,o=e.useMentionsTransliteration;return e.users.filter(function(e){if(e.id===t)return!1;if(!i)return!0;var s=vG(e.id).toLowerCase(),l=vG(e.name).toLowerCase(),u=vG(i).toLowerCase();o&&il(void 0,void 0,void 0,function(){var t;return ic(this,function(a){switch(a.label){case 0:return[4,r.e(539).then(r.bind(r,90539))];case 1:return l=(t=a.sent().default)(e.name||"").toLowerCase(),u=t(i).toLowerCase(),s=t(e.id).toLowerCase(),[2]}})});var d=a.slice(-4).includes("@");if(l){var p=vY(u,l);if(l.includes(u)||p<=3&&d)return!0}var f=vY(u,s);return s.includes(u)||f<=3&&d})},vZ=function(e){return il(void 0,void 0,void 0,function(){var t,r,i,a,o,s,l,u,d,p,f,m,g,v;return ic(this,function(b){switch(b.label){case 0:return t=e.addNotification,r=e.file,i=e.getAppSettings,a=e.t,o=e.uploadType,s=null,[4,i()];case 1:if(s=b.sent(),u=(l=("image"===o?null===(g=null==s?void 0:s.app)||void 0===g?void 0:g.image_upload_config:null===(v=null==s?void 0:s.app)||void 0===v?void 0:v.file_upload_config)||{}).allowed_file_extensions,d=l.allowed_mime_types,p=l.blocked_file_extensions,f=l.blocked_mime_types,m=function(){return t(a('Upload type: "{{ type }}" is not allowed',{type:r.type||"unknown type"}),"error")},(null==u?void 0:u.length)&&!u.some(function(e){return r.name.toLowerCase().endsWith(e.toLowerCase())})||(null==p?void 0:p.length)&&p.some(function(e){return r.name.toLowerCase().endsWith(e.toLowerCase())})||(null==d?void 0:d.length)&&!d.some(function(e){var t;return e.toLowerCase()===(null===(t=r.type)||void 0===t?void 0:t.toLowerCase())})||(null==f?void 0:f.length)&&f.some(function(e){var t;return e.toLowerCase()===(null===(t=r.type)||void 0===t?void 0:t.toLowerCase())}))return m(),[2,!1];return[2,!0]}})})},vJ=function(e){var t=e.disableMentions,r=e.mentionAllAppUsers,i=e.mentionQueryParams,a=void 0===i?{}:i,o=e.onSelectUser,s=e.useMentionsTransliteration,l=(0,el.useState)(!1),u=l[0],d=l[1],p=a4("useUserTrigger"),f=p.client,m=p.mutes,g=p.themeVersion,v=pn("useUserTrigger").channel,b=v.state.members,y=v.state.watchers,_=(0,el.useCallback)(function(){var e=b?Object.values(b).map(function(e){return e.user}):[],t=y?Object.values(y):[],r=ip(ip([],e,!0),t,!0),i={};return r.forEach(function(e){e&&!i[e.id]&&(i[e.id]=e)}),Object.values(i)},[b,y]),w=(0,el.useCallback)(c4()(function(e,t){return il(void 0,void 0,void 0,function(){var r;return ic(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,v.queryMembers({name:{$autocomplete:e}})];case 1:return r=i.sent().members.map(function(e){return e.user}),t&&r.length?t(r):t([]),[3,3];case 2:return console.log({error:i.sent()}),[3,3];case 3:return[2]}})})},200),[v]),k=c4()(function(e,t){return il(void 0,void 0,void 0,function(){var r;return ic(this,function(i){switch(i.label){case 0:if(!e||u)return[2];d(!0),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,f.queryUsers(io({$or:[{id:{$autocomplete:e}},{name:{$autocomplete:e}}],id:{$ne:f.userID}},"function"==typeof a.filters?a.filters(e):a.filters),Array.isArray(a.sort)?ip([{id:1}],a.sort,!0):io({id:1},a.sort),io({limit:10},a.options))];case 2:return r=i.sent().users,t&&r.length?t(r):t([]),[3,4];case 3:return console.log({error:i.sent()}),[3,4];case 4:return d(!1),[2]}})})},200);return{callback:function(e){return o(e)},component:vD,dataProvider:function(e,i,o){if(!t){var l,u,d=function(e){return i.includes("/unmute")&&!m.length?[]:m.length?i.includes("/unmute")?e.filter(function(e){return m.some(function(t){return t.target.id===e.id})}):e.filter(function(e){return m.every(function(t){return t.target.id!==e.id})}):e};if(r)return k(e,function(t){o&&o(d(t),e)});if(!e||Object.values(b||{}).length<100){var p=_(),v=vK({ownUserId:f.userID,query:e,text:i,useMentionsTransliteration:s,users:p}),y=null!==(u=null===(l=a.options)||void 0===l?void 0:l.limit)&&void 0!==u?u:"2"===g?7:10,x=v.slice(0,y);return o&&o(d(x),e),x}return w(e,function(t){o&&o(d(t),e)})}},output:function(e){return{caretPosition:"next",key:e.id,text:"@".concat(e.name||e.id)}}}},vX=function(e){var t=e.children,r=gK("DefaultTriggerProvider"),i={"/":vq(),":":vW(r.emojiIndex),"@":vJ({disableMentions:r.disableMentions,mentionAllAppUsers:r.mentionAllAppUsers,mentionQueryParams:r.mentionQueryParams,onSelectUser:r.onSelectUser,useMentionsTransliteration:r.useMentionsTransliteration})},a=io(io({},r),{autocompleteTriggers:i});return ec().createElement(gY,{value:a},t)},vQ=function(){var e,t=a4("useCooldownTimer"),r=t.client,i=t.latestMessageDatesByChannels,a=pn("useCooldownTimer"),o=a.channel,s=a.messages,l=void 0===s?[]:s,u=(0,el.useState)(),d=u[0],p=u[1],f=o.data||{},m=f.cooldown,g=void 0===m?0:m,v=f.own_capabilities,b=null==v?void 0:v.includes("skip-slow-mode"),y=(0,el.useMemo)(function(){var e,t;return null!==(e=i[o.cid])&&void 0!==e?e:null===(t=ip([],l,!0).sort(function(e,t){var r,i;return(null===(r=t.created_at)||void 0===r?void 0:r.getTime())-(null===(i=e.created_at)||void 0===i?void 0:i.getTime())}).find(function(e){var t,i;return(null===(t=e.user)||void 0===t?void 0:t.id)===(null===(i=r.user)||void 0===i?void 0:i.id)}))||void 0===t?void 0:t.created_at},[l,null===(e=r.user)||void 0===e?void 0:e.id,i,o.cid]);return(0,el.useEffect)(function(){var e=y?Math.max(0,(new Date().getTime()-y.getTime())/1e3):void 0;p(!b&&void 0!==e&&g>e?Math.round(g-e):0)},[g,y,b]),{cooldownInterval:g,cooldownRemaining:d,setCooldownRemaining:p}},v0=function(e){var t=e.additionalTextareaProps,r=e.attachments,i=e.autocompleteTriggers,a=e.cancelURLEnrichment,o=e.clearEditingState,s=e.closeCommandsList,l=e.closeEmojiPicker,u=e.closeMentionsList,d=e.cooldownInterval,p=e.cooldownRemaining,f=e.disabled,m=e.disableMentions,g=e.dismissLinkPreview,v=e.doFileUploadRequest,b=e.doImageUploadRequest,y=e.emojiIndex,_=e.emojiPickerIsOpen,w=e.emojiPickerRef,k=e.errorHandler,x=e.fileOrder,E=e.fileUploads,F=e.findAndEnqueueURLsToEnrich,C=e.focus,S=e.grow,D=e.handleChange,j=e.handleEmojiKeyDown,T=e.handleSubmit,O=e.hideSendButton,P=e.imageOrder,R=e.imageUploads,M=e.insertText,L=e.isUploadEnabled,A=e.linkPreviews,I=e.maxFilesLeft,N=e.maxRows,B=e.mentionAllAppUsers,U=e.mentioned_users,z=e.mentionQueryParams,H=e.message,q=e.noFiles,V=e.numberOfUploads,W=e.onPaste,$=e.onSelectEmoji,G=e.onSelectUser,Y=e.openCommandsList,K=e.openEmojiPicker,Z=e.openMentionsList,J=e.overrideSubmitHandler,X=e.parent,Q=e.publishTypingEvent,ee=e.removeFile,et=e.removeImage,en=e.setCooldownRemaining,er=e.setText,ei=e.shouldSubmit,ea=e.showCommandsList,eo=e.showMentionsList,es=e.text,ec=e.textareaRef,eu=e.uploadFile,ed=e.uploadImage,ep=e.uploadNewFiles,ef=e.useMentionsTransliteration,eh=null==H?void 0:H.editing,em=Object.entries(E).map(function(e){return e[0],e[1].state}).join(),eg=Object.entries(R).map(function(e){return e[0],e[1].state}).join(),ev=Array.from(A.values()).join(),eb=U.length,ey=null==X?void 0:X.id;return(0,el.useMemo)(function(){return{additionalTextareaProps:t,attachments:r,autocompleteTriggers:i,cancelURLEnrichment:a,clearEditingState:o,closeCommandsList:s,closeEmojiPicker:l,closeMentionsList:u,cooldownInterval:d,cooldownRemaining:p,disabled:f,disableMentions:m,dismissLinkPreview:g,doFileUploadRequest:v,doImageUploadRequest:b,emojiIndex:y,emojiPickerIsOpen:_,emojiPickerRef:w,errorHandler:k,fileOrder:x,fileUploads:E,findAndEnqueueURLsToEnrich:F,focus:C,grow:S,handleChange:D,handleEmojiKeyDown:j,handleSubmit:T,hideSendButton:O,imageOrder:P,imageUploads:R,insertText:M,isUploadEnabled:L,linkPreviews:A,maxFilesLeft:I,maxRows:N,mentionAllAppUsers:B,mentioned_users:U,mentionQueryParams:z,message:H,noFiles:q,numberOfUploads:V,onPaste:W,onSelectEmoji:$,onSelectUser:G,openCommandsList:Y,openEmojiPicker:K,openMentionsList:Z,overrideSubmitHandler:J,parent:X,publishTypingEvent:Q,removeFile:ee,removeImage:et,setCooldownRemaining:en,setText:er,shouldSubmit:ei,showCommandsList:ea,showMentionsList:eo,text:es,textareaRef:ec,uploadFile:eu,uploadImage:ed,uploadNewFiles:ep,useMentionsTransliteration:ef}},[a,d,p,g,eh,_,em,F,O,eg,L,ev,eb,ey,Q,ea,eo,es,T])},v1=function(){var e=g$("useEmojiIndex"),t=e.emojiConfig,r=e.EmojiIndex,i=(t||{}).emojiData;return(0,el.useMemo)(function(){if(r)return new r(i)},[i,r])},v2=function(e,t,r){var i=e.doImageUploadRequest,a=e.errorHandler,o=t.imageUploads,s=pn("useImageUploads").channel,l=a4("useImageUploads").getAppSettings,u=fi("useImageUploads").addNotification,d=aZ("useImageUploads").t,p=(0,el.useCallback)(function(e){r({id:e,type:"removeImageUpload"})},[]),f=(0,el.useCallback)(function(e){return il(void 0,void 0,void 0,function(){var t,f,m,g,v,b;return ic(this,function(y){switch(y.label){case 0:if(!(t=o[e]))return[2];return f=t.file,"uploading"!==t.state&&r({id:e,state:"uploading",type:"setImageUpload"}),[4,vZ({addNotification:u,file:f,getAppSettings:l,t:d,uploadType:"image"})];case 1:if(!y.sent())return[2,p(e)];y.label=2;case 2:if(y.trys.push([2,7,,8]),!i)return[3,4];return[4,i(f,s)];case 3:return m=y.sent(),[3,6];case 4:return[4,s.sendImage(f)];case 5:m=y.sent(),y.label=6;case 6:return[3,8];case 7:return u("string"==typeof(g=y.sent()).message?g.message:d("Error uploading image"),"error"),v=!1,o[e]?r({id:e,state:"failed",type:"setImageUpload"}):v=!0,!v&&a&&a(g,"upload-image",io(io({},f),{id:e})),[2];case 8:if(!m)return p(e),[2];return t.previewUri&&(null===(b=URL.revokeObjectURL)||void 0===b||b.call(URL,t.previewUri)),r({id:e,previewUri:void 0,state:"finished",type:"setImageUpload",url:m.file}),[2]}})})},[o,s,i,a,p]);return(0,el.useEffect)(function(){var e=Object.values(o).find(function(e){return"uploading"===e.state&&e.file});e&&f(e.id)},[o,f]),{removeImage:p,uploadImage:f}},v3=function(e,t,r){var i=e.doFileUploadRequest,a=e.errorHandler,o=t.fileUploads,s=pn("useFileUploads").channel,l=fi("useFileUploads").addNotification,u=a4("useFileUploads").getAppSettings,d=aZ("useFileUploads").t,p=(0,el.useCallback)(function(e){r({id:e,state:"uploading",type:"setFileUpload"})},[]),f=(0,el.useCallback)(function(e){r({id:e,type:"removeFileUpload"})},[]);return(0,el.useEffect)(function(){il(void 0,void 0,void 0,function(){var e,t,p,m,g,v;return ic(this,function(b){switch(b.label){case 0:if(!(e=Object.values(o).find(function(e){return"uploading"===e.state&&e.file})))return[2];return t=e.file,p=e.id,[4,vZ({addNotification:l,file:t,getAppSettings:u,t:d,uploadType:"file"})];case 1:if(!b.sent())return[2,f(p)];b.label=2;case 2:if(b.trys.push([2,7,,8]),!i)return[3,4];return[4,i(t,s)];case 3:return m=b.sent(),[3,6];case 4:return[4,s.sendFile(t)];case 5:m=b.sent(),b.label=6;case 6:return[3,8];case 7:return l("string"==typeof(g=b.sent()).message?g.message:d("Error uploading file"),"error"),v=!1,o[p]?r({id:p,state:"failed",type:"setFileUpload"}):v=!0,!v&&a&&a(g,"upload-file",t),[2];case 8:if(!m)return f(p),[2];return r({id:p,state:"finished",thumb_url:m.thumb_url,type:"setFileUpload",url:m.file}),[2]}})})},[o,s,i,a,f]),{removeFile:f,uploadFile:p}},v4=function(e,t,r,i){var a=e.noFiles,o=t.fileUploads,s=t.imageUploads,l=pn("useAttachments"),u=l.maxNumberOfFiles,d=l.multipleUploads,p=v3(e,t,r),f=p.removeFile,m=p.uploadFile,g=v2(e,t,r),v=g.removeImage,b=g.uploadImage,y=Object.values(s).filter(function(e){var t=e.og_scrape_url;return"failed"!==e.state&&!t}).length+Object.values(o).filter(function(e){return"failed"!==e.state}).length,_=(d?u||10:1)-y,w=(0,el.useCallback)(function(e){var t;Array.from(e).slice(0,_).forEach(function(e){var t,i=c9();e.type.startsWith("image/")&&!e.type.endsWith(".photoshop")?r({file:e,id:i,previewUri:null===(t=URL.createObjectURL)||void 0===t?void 0:t.call(URL,e),state:"uploading",type:"setImageUpload"}):e instanceof File&&!a&&r({file:e,id:i,state:"uploading",type:"setFileUpload"})}),null===(t=null==i?void 0:i.current)||void 0===t||t.focus()},[_,a]);return{maxFilesLeft:_,numberOfUploads:y,removeFile:f,removeImage:v,uploadFile:m,uploadImage:b,uploadNewFiles:w}},v6=function(e,t,r,i){var a=pn("useMessageInputText").channel,o=e.additionalTextareaProps,s=e.focus,l=e.parent,u=e.publishTypingEvent,d=void 0===u||u,p=t.text,f=(0,el.useRef)();(0,el.useEffect)(function(){s&&f.current&&f.current.focus()},[s]);var m=(0,el.useRef)(),g=(0,el.useCallback)(function(e){var t=(o||{}).maxLength;if(!f.current){r({getNewText:function(r){var i=r+e;return t&&i.length>t?i.slice(0,t):i},type:"setText"});return}var i=f.current,a=i.selectionEnd,s=i.selectionStart;m.current=s+e.length,r({getNewText:function(r){var i=r.slice(0,s)+e+r.slice(a);return t&&i.length>t?i.slice(0,t):i},type:"setText"})},[o,m,f]);return(0,el.useEffect)(function(){var e=f.current;e&&void 0!==m.current&&(e.selectionStart=m.current,e.selectionEnd=m.current,m.current=void 0)},[p,m]),{handleChange:(0,el.useCallback)(function(e){if(e.preventDefault(),e&&e.target){var t=e.target.value;r({getNewText:function(){return t},type:"setText"}),null==i||i(t),d&&t&&a&&rl(a.keystroke(null==l?void 0:l.id),"start typing event")}},[a,i,l,d]),insertText:g,textareaRef:f}},v5=function(e,t,r,i,a){var o=(0,el.useRef)(null),s=(0,el.useCallback)(function(e){e.preventDefault(),o.current&&!o.current.contains(e.target)&&t({type:"setEmojiPickerIsOpen",value:!1})},[o]),l=(0,el.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,el.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:o,handleEmojiKeyDown:function(e){(" "===e.key||"Enter"===e.key||"Spacebar"===e.key)&&(e.preventDefault(),l(e))},onSelectEmoji:(0,el.useCallback)(function(e){var o;r(e.native),a&&t({type:"setEmojiPickerIsOpen",value:!1}),null===(o=null==i?void 0:i.current)||void 0===o||o.focus()},[r]),openEmojiPicker:l}},v8=function(e,t,r,i,a){var o=e.clearEditingState,s=e.message,l=e.overrideSubmitHandler,u=e.parent,d=e.publishTypingEvent,p=t.attachments,f=t.fileOrder,m=t.fileUploads,g=t.imageOrder,v=t.imageUploads,b=t.linkPreviews,y=t.mentioned_users,_=t.text,w=a.cancelURLEnrichment,x=a.findAndEnqueueURLsToEnrich,E=pn("useSubmitHandler").channel,F=fi("useSubmitHandler"),C=F.addNotification,S=F.editMessage,D=F.sendMessage,j=aZ("useSubmitHandler").t,T=(0,el.useRef)({hasChanged:!1,initialText:_});(0,el.useEffect)(function(){if(!T.current.initialText.length){T.current.initialText=_;return}T.current.hasChanged=_!==T.current.initialText},[_]);var O=function(){var e=g.map(function(e){return v[e]}).filter(function(e){return"failed"!==e.state}).filter(function(e,t,r){var i=e.id,a=e.url;return r.every(function(e){return e.id===i||e.url!==a})}).filter(function(e){return!T.current.hasChanged||!e.og_scrape_url}).map(function(e){var t=e.file.name,r=e.url,i=is(e,["file","url"]);return{author_name:i.author_name,fallback:t,image_url:r,og_scrape_url:i.og_scrape_url,text:i.text,title:i.title,title_link:i.title_link,type:"image"}}),t=f.map(function(e){return m[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 ip(ip(ip([],p,!0),e,!0),t,!0)};return{handleSubmit:function(e,t){return il(void 0,void 0,void 0,function(){var a,p,f,g,F,T,P,R,M,L;return ic(this,function(A){switch(A.label){case 0:if(e.preventDefault(),(""===(a=_.trim())||">"===a||"``````"===a||"``"===a||"**"===a||"____"===a||"__"===a||"****"===a)&&0===i)return[2];if(Object.values(v).some(function(e){return"uploading"===e.state})||Object.values(m).some(function(e){return"uploading"===e.state}))return[2,C(j("Wait until all attachments have uploaded"),"error")];if(p=O(),f=[],x&&(p=p.filter(function(e){return!e.og_scrape_url}),w(),g=Array.from(b.values()).some(function(e){return[k.QUEUED,k.LOADING].includes(e.state)}),F=Array.from(b.values()).some(function(e){return e.state===k.DISMISSED}),g||(f=Array.from(b.values()).filter(function(e){return e.state===k.LOADED&&!p.find(function(t){return t.og_scrape_url===e.og_scrape_url})}).map(function(e){return e.state,is(e,["state"])}))),P={attachments:ip(ip([],p,!0),f,!0),mentioned_users:T=Array.from(new Set(y.filter(function(e){var t=e.id,r=e.name;return _.includes("@".concat(t))||_.includes("@".concat(r))}))),text:_},M=(R=!!x)&&(!g&&f.length>0||F),L=R?{skip_enrich_url:M}:void 0,!s)return[3,5];delete s.i18n,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,S(io(io(io({},s),P),t),L)];case 2:return A.sent(),null==o||o(),r({type:"clear"}),[3,4];case 3:return A.sent(),C(j("Edit message request failed"),"error"),[3,4];case 4:return[3,13];case 5:if(A.trys.push([5,12,,13]),r({type:"clear"}),!l)return[3,7];return[4,l(io(io({},P),{parent:u}),E.cid,t,L)];case 6:return A.sent(),[3,9];case 7:return[4,D(io(io({},P),{parent:u}),t,L)];case 8:A.sent(),A.label=9;case 9:if(!d)return[3,11];return[4,E.stopTyping()];case 10:A.sent(),A.label=11;case 11:return[3,13];case 12:return A.sent(),r({getNewText:function(){return _},type:"setText"}),null==T||T.forEach(function(e){r({type:"addMentionedUser",user:e})}),C(j("Send message request failed"),"error"),[3,13];case 13:return[2]}})})}}},v9=function(e){var t,r=e.debounceURLEnrichmentMs,i=e.dispatch,a=e.enrichURLForPreview,o=e.findURLFn,s=e.linkPreviews,l=e.onLinkPreviewDismissed,u=a4().client,d=pn(),p=d.channelConfig,f=d.debounceURLEnrichmentMs,m=d.findURLFn,g=d.onLinkPreviewDismissed,v=(0,el.useRef)(!1),b=null!=o?o:m,y=null!=l?l:g,_=null!==(t=null!=r?r:f)&&void 0!==t?t:1500,w=(0,el.useCallback)(function(e){null==y||y(e);var t=new Map;e.state=k.DISMISSED,t.set(e.og_scrape_url,e),i({linkPreviews:t,mode:x.UPSERT,type:"setLinkPreviews"})},[y]),E=(0,el.useCallback)(cD()(function(e,t){void 0===t&&(t=x.SET);var r=b?b(e):dR(e,"url").reduce(function(e,t){return t.isLink&&e.push(t.href),e},[]);v.current=0===r.length,i({linkPreviews:r.reduce(function(e,t){return e.set(t,{og_scrape_url:t,state:k.QUEUED}),e},new Map),mode:t,type:"setLinkPreviews"})},_,{leading:!1,trailing:!0}),[_,v,b]),F=(0,el.useCallback)(function(){E.cancel(),E(""),E.flush()},[E]);return(0,el.useEffect)(function(){var e=Array.from(s.values()).reduce(function(e,t){if("queued"===t.state){var r=io(io({},t),{state:k.LOADING});e.set(t.og_scrape_url,r)}return e},new Map);e.size&&(i({linkPreviews:e,mode:x.UPSERT,type:"setLinkPreviews"}),e.forEach(function(e){u.enrichURL(e.og_scrape_url).then(function(t){t.duration;var r=is(t,["duration"]);if(!v.current){var a=new Map;a.set(e.og_scrape_url,io(io({},r),{state:k.LOADED})),i({linkPreviews:a,mode:x.UPSERT,type:"setLinkPreviews"})}}).catch(function(){var t=new Map;t.set(e.og_scrape_url,io(io({},e),{state:k.FAILED})),i({linkPreviews:t,mode:x.UPSERT,type:"setLinkPreviews"})})}))},[v,s]),{cancelURLEnrichment:F,dismissLinkPreview:w,findAndEnqueueURLsToEnrich:(null==p?void 0:p.url_enrichment)&&void 0!==a&&a?E:void 0}},v7=function(){return{attachments:[],emojiPickerIsOpen:!1,fileOrder:[],fileUploads:{},imageOrder:[],imageUploads:{},linkPreviews:new Map,mentioned_users:[],setText:function(){return null},text:""}},be=function(e){if(!e)return v7();var t,r,i,a,o,s,l,u=null!==(r=null===(t=e.attachments)||void 0===t?void 0:t.filter(function(e){return"image"===e.type}).reduce(function(e,t){var r=t.author_name,i=t.fallback,a=t.image_url,o=t.og_scrape_url,s=t.text,l=t.title,u=t.title_link,d=c9();return e[d]={author_name:r,file:{name:void 0===i?"":i},id:d,og_scrape_url:o,state:"finished",text:s,title:l,title_link:u,url:a},e},{}))&&void 0!==r?r:{},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 r=t.asset_url,i=t.file_size,a=t.mime_type,o=t.thumb_url,s=t.title,l=c9();return e[l]={file:{name:void 0===s?"":s,size:i,type:a},id:l,state:"finished",thumb_url:o,url:r},e},{}))&&void 0!==a?a:{},p=null!==(s=null===(o=e.attachments)||void 0===o?void 0:o.reduce(function(e,t){return t.og_scrape_url&&e.set(t.og_scrape_url,io(io({},t),{state:k.LOADED})),e},new Map))&&void 0!==s?s:new Map,f=Object.keys(u),m=Object.keys(d);return{attachments:(null===(l=e.attachments)||void 0===l?void 0:l.filter(function(e){var t=e.type;return"file"!==t&&"image"!==t}))||[],emojiPickerIsOpen:!1,fileOrder:m,fileUploads:d,imageOrder:f,imageUploads:u,linkPreviews:p,mentioned_users:e.mentioned_users||[],setText:function(){return null},text:e.text||""}},bt=function(e,t){var r,i;switch(t.type){case"setEmojiPickerIsOpen":return io(io({},e),{emojiPickerIsOpen:t.value});case"setText":return io(io({},e),{text:t.getNewText(e.text)});case"clear":return v7();case"setImageUpload":var a=e.imageUploads[t.id];if(!a&&!t.file)return e;var o=a?e.imageOrder:e.imageOrder.concat(t.id),s=io({},t);return delete s.type,io(io({},e),{imageOrder:o,imageUploads:io(io({},e.imageUploads),((r={})[t.id]=io(io({},e.imageUploads[t.id]),s),r))});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=io({},t);return delete s.type,io(io({},e),{fileOrder:u,fileUploads:io(io({},e.fileUploads),((i={})[t.id]=io(io({},e.fileUploads[t.id]),s),i))});case"setLinkPreviews":var d=new Map(e.linkPreviews);return t.mode===x.REMOVE?Array.from(t.linkPreviews.keys()).forEach(function(e){d.delete(e)}):(Array.from(t.linkPreviews.values()).reduce(function(e,t){var r=e.get(t.og_scrape_url),i=t.state===k.QUEUED&&(null==r?void 0:r.state)!==k.FAILED;return r&&i||e.set(t.og_scrape_url,t),e},d),t.mode===x.SET&&Array.from(e.linkPreviews.keys()).forEach(function(e){t.linkPreviews.get(e)||d.delete(e)})),io(io({},e),{linkPreviews:d});case"removeImageUpload":if(!e.imageUploads[t.id])return e;var p=io({},e.imageUploads);return delete p[t.id],io(io({},e),{imageOrder:e.imageOrder.filter(function(e){return e!==t.id}),imageUploads:p});case"removeFileUpload":if(!e.fileUploads[t.id])return e;var f=io({},e.fileUploads);return delete f[t.id],io(io({},e),{fileOrder:e.fileOrder.filter(function(e){return e!==t.id}),fileUploads:f});case"addMentionedUser":return io(io({},e),{mentioned_users:e.mentioned_users.concat(t.user)});default:return e}},bn=function(e){var t,r,i=e.additionalTextareaProps,a=e.closeEmojiPickerOnClick,o=e.getDefaultValue,s=e.message,l=e.urlEnrichmentConfig,u=pn("useMessageInputState"),d=u.channelCapabilities,p=u.channelConfig,f=u.enrichURLForPreview,m=(null==o?void 0:o())||(null==i?void 0:i.defaultValue),g=s||(Array.isArray(m)?{text:m.join("")}:{text:null==m?void 0:m.toString()}),v=(0,el.useReducer)(bt,g,be),b=v[0],y=v[1],_=v9(io(io({dispatch:y,linkPreviews:b.linkPreviews},l),{enrichURLForPreview:null!==(r=null==l?void 0:l.enrichURLForPreview)&&void 0!==r?r:f})),w=v6(e,b,y,_.findAndEnqueueURLsToEnrich),k=w.handleChange,E=w.insertText,F=w.textareaRef,C=(0,el.useState)(!1),S=C[0],D=C[1],j=(0,el.useState)(!1),T=j[0],O=j[1],P=v5(b,y,E,F,a),R=P.closeEmojiPicker,M=P.emojiPickerRef,L=P.handleEmojiKeyDown,A=P.onSelectEmoji,I=P.openEmojiPicker,N=v4(e,b,y,F),B=N.maxFilesLeft,U=N.numberOfUploads,z=N.removeFile,H=N.removeImage,q=N.uploadFile,V=N.uploadImage,W=N.uploadNewFiles,$=v8(e,b,y,U,_).handleSubmit,G=(null==p?void 0:p.uploads)!==!1&&!1!==(void 0===d?{}:d)["upload-file"],Y=(t=_.findAndEnqueueURLsToEnrich,{onPaste:(0,el.useCallback)(function(e){G&&il(void 0,void 0,void 0,function(){var r,i,a,o,s,l;return ic(this,function(u){switch(u.label){case 0:if(!function(e){if(!e||!e.length)return!1;for(var t=0;t0;t-=1)if("received"===e[t].status)return e[t].id;return null},bw=function(e,t,r){void 0===t&&(t={});var i={};return Object.values(t).forEach(function(t){var a;t.last_read&&(e.forEach(function(e){e.created_at&&e.created_at0,m=!r||r.customType===mX.date||"system"===r.type||r.customType===mX.intro||(null===(u=r.attachments)||void 0===u?void 0:u.length)!==0||(null===(d=e.user)||void 0===d?void 0:d.id)!==(null===(p=r.user)||void 0===p?void 0:p.id)||"error"===r.type||r.deleted_at||r.reaction_counts&&Object.keys(r.reaction_counts).length>0;return f||m?m?f||e.deleted_at||"error"===e.type?"single":"bottom":f?"top":"":e.deleted_at||"error"===e.type?"single":"middle"},bE=function(e,t){return e===t};let bF=JSON.parse('{"compressed":true,"categories":[{"id":"people","name":"Smileys & People","emojis":["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","shushing_face","thinking_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","smirk","unamused","face_with_rolling_eyes","grimacing","lying_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","exploding_head","face_with_cowboy_hat","partying_face","sunglasses","nerd_face","face_with_monocle","confused","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","ok_hand","pinching_hand","v","crossed_fingers","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","tooth","bone","eyes","eye","tongue","lips","baby","child","boy","girl","adult","man","bearded_person","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","curly_haired_woman","white_haired_woman","bald_woman","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","man-frowning","woman-frowning","man-pouting","woman-pouting","man-gesturing-no","woman-gesturing-no","man-gesturing-ok","woman-gesturing-ok","man-tipping-hand","woman-tipping-hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","man-bowing","woman-bowing","man-facepalming","woman-facepalming","man-shrugging","woman-shrugging","male-doctor","female-doctor","male-student","female-student","male-teacher","female-teacher","male-judge","female-judge","male-farmer","female-farmer","male-cook","female-cook","male-mechanic","female-mechanic","male-factory-worker","female-factory-worker","male-office-worker","female-office-worker","male-scientist","female-scientist","male-technologist","female-technologist","male-singer","female-singer","male-artist","female-artist","male-pilot","female-pilot","male-astronaut","female-astronaut","male-firefighter","female-firefighter","male-police-officer","female-police-officer","male-guard","female-guard","male-construction-worker","female-construction-worker","prince","princess","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","man_in_tuxedo","bride_with_veil","pregnant_woman","breast-feeding","angel","santa","mrs_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","man-getting-massage","woman-getting-massage","man-getting-haircut","woman-getting-haircut","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","man_with_probing_cane","woman_with_probing_cane","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","man-with-bunny-ears-partying","woman-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","man-surfing","woman-surfing","man-rowing-boat","woman-rowing-boat","man-swimming","woman-swimming","man-biking","woman-biking","man-mountain-biking","woman-mountain-biking","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","man-playing-water-polo","woman-playing-water-polo","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","couple","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","footprints","kiss","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","brown_heart","black_heart","white_heart","100","anger","boom","dizzy","sweat_drops","dash","hole","bomb","speech_balloon","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{"id":"nature","name":"Animals & Nature","emojis":["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","lion_face","tiger","tiger2","leopard","horse","racehorse","unicorn_face","zebra_face","deer","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","hedgehog","bat","bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","flamingo","peacock","parrot","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","fish","tropical_fish","blowfish","shark","octopus","shell","snail","butterfly","bug","ant","bee","beetle","cricket","spider","spider_web","scorpion","mosquito","microbe","bouquet","cherry_blossom","white_flower","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","seedling","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves"]},{"id":"foods","name":"Food & Drink","emojis":["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","kiwifruit","tomato","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","cucumber","leafy_green","broccoli","garlic","onion","mushroom","peanuts","chestnut","bread","croissant","baguette_bread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","cup_with_straw","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","amphora"]},{"id":"activity","name":"Activities","emojis":["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","8ball","crystal_ball","nazar_amulet","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","yarn"]},{"id":"places","name":"Travel & Places","emojis":["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","busstop","motorway","railway_track","oil_drum","fuelpump","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{"id":"objects","name":"Objects","emojis":["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","purse","handbag","pouch","shopping_bags","school_satchel","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","crown","womans_hat","tophat","mortar_board","billed_cap","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","iphone","calling","phone","telephone_receiver","pager","fax","battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","currency_exchange","heavy_dollar_sign","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","gun","bow_and_arrow","shield","wrench","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","toolbox","magnet","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","stethoscope","door","bed","couch_and_lamp","chair","toilet","shower","bathtub","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","soap","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","funeral_urn","moyai"]},{"id":"symbols","name":"Symbols","emojis":["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","vibration_mode","mobile_phone_off","female_sign","male_sign","medical_symbol","infinity","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","heavy_multiplication_x","x","negative_squared_cross_mark","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","tm","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{"id":"flags","name":"Flags","emojis":["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],"emojis":{"100":{"a":"Hundred Points Symbol","b":"1F4AF","j":["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],"k":[26,5],"o":2},"1234":{"a":"Input Symbol for Numbers","b":"1F522","j":["numbers","blue-square"],"k":[28,5],"o":2},"grinning":{"a":"Grinning Face","b":"1F600","j":["face","smile","happy","joy",":D","grin"],"k":[30,35],"m":":D","o":2},"monkey_face":{"a":"Monkey Face","b":"1F435","j":["animal","nature","circus"],"k":[12,25],"l":[":o)"],"o":2},"grapes":{"a":"Grapes","b":"1F347","j":["fruit","food","wine"],"k":[6,31],"o":2},"eyeglasses":{"a":"Eyeglasses","b":"1F453","j":["fashion","accessories","eyesight","nerdy","dork","geek"],"k":[14,7],"o":2},"checkered_flag":{"a":"Chequered Flag","b":"1F3C1","j":["contest","finishline","race","gokart"],"k":[8,39],"o":2},"jack_o_lantern":{"a":"Jack-O-Lantern","b":"1F383","j":["halloween","light","pumpkin","creepy","fall"],"k":[7,34],"o":2},"wave":{"a":"Waving Hand Sign","b":"1F44B","j":["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],"k":[13,26],"o":2},"earth_africa":{"a":"Earth Globe Europe-Africa","b":"1F30D","j":["globe","world","international"],"k":[5,32],"o":2},"atm":{"a":"Automated Teller Machine","b":"1F3E7","j":["money","sales","cash","blue-square","payment","bank"],"k":[11,1],"o":2},"melon":{"a":"Melon","b":"1F348","j":["fruit","nature","food"],"k":[6,32],"o":2},"triangular_flag_on_post":{"a":"Triangular Flag on Post","b":"1F6A9","j":["mark","milestone","place"],"k":[35,0],"o":2},"put_litter_in_its_place":{"a":"Put Litter in Its Place Symbol","b":"1F6AE","j":["blue-square","sign","human","info"],"k":[35,5],"o":2},"christmas_tree":{"a":"Christmas Tree","b":"1F384","j":["festival","vacation","december","xmas","celebration"],"k":[7,35],"o":2},"monkey":{"a":"Monkey","b":"1F412","j":["animal","nature","banana","circus"],"k":[11,46],"o":2},"earth_americas":{"a":"Earth Globe Americas","b":"1F30E","j":["globe","world","USA","international"],"k":[5,33],"o":2},"dark_sunglasses":{"a":"Dark Sunglasses","b":"1F576-FE0F","c":"1F576","j":["face","cool","accessories"],"k":[29,33],"o":2},"raised_back_of_hand":{"a":"Raised Back of Hand","b":"1F91A","j":["fingers","raised","backhand"],"k":[37,43],"o":4},"smiley":{"a":"Smiling Face with Open Mouth","b":"1F603","j":["face","happy","joy","haha",":D",":)","smile","funny"],"k":[30,38],"l":["=)","=-)"],"m":":)","o":2},"earth_asia":{"a":"Earth Globe Asia-Australia","b":"1F30F","j":["globe","world","east","international"],"k":[5,34],"o":2},"crossed_flags":{"a":"Crossed Flags","b":"1F38C","j":["japanese","nation","country","border"],"k":[7,48],"o":2},"watermelon":{"a":"Watermelon","b":"1F349","j":["fruit","food","picnic","summer"],"k":[6,33],"o":2},"goggles":{"a":"Goggles","b":"1F97D","k":[42,15],"o":11},"raised_hand_with_fingers_splayed":{"a":"Raised Hand with Fingers Splayed","b":"1F590-FE0F","c":"1F590","j":["hand","fingers","palm"],"k":[29,48],"o":2},"smile":{"a":"Smiling Face with Open Mouth and Smiling Eyes","b":"1F604","j":["face","happy","joy","funny","haha","laugh","like",":D",":)"],"k":[30,39],"l":["C:","c:",":D",":-D"],"m":":)","o":2},"potable_water":{"a":"Potable Water Symbol","b":"1F6B0","j":["blue-square","liquid","restroom","cleaning","faucet"],"k":[35,7],"o":2},"fireworks":{"a":"Fireworks","b":"1F386","j":["photo","festival","carnival","congratulations"],"k":[7,42],"o":2},"gorilla":{"a":"Gorilla","b":"1F98D","j":["animal","nature","circus"],"k":[42,31],"o":4},"lab_coat":{"a":"Lab Coat","b":"1F97C","k":[42,14],"o":11},"tangerine":{"a":"Tangerine","b":"1F34A","j":["food","fruit","nature","orange"],"k":[6,34],"o":2},"wheelchair":{"a":"Wheelchair Symbol","b":"267F","j":["blue-square","disabled","a11y","accessibility"],"k":[53,40],"o":2},"waving_black_flag":{"a":"Waving Black Flag","b":"1F3F4","k":[11,17],"o":2},"orangutan":{"a":"Orangutan","b":"1F9A7","k":[42,55],"o":12},"sparkler":{"a":"Firework Sparkler","b":"1F387","j":["stars","night","shine"],"k":[7,43],"o":2},"globe_with_meridians":{"a":"Globe with Meridians","b":"1F310","j":["earth","international","world","internet","interweb","i18n"],"k":[5,35],"o":2},"grin":{"a":"Grinning Face with Smiling Eyes","b":"1F601","j":["face","happy","smile","joy","kawaii"],"k":[30,36],"o":2},"hand":{"a":"Raised Hand","b":"270B","k":[54,49],"n":["raised_hand"],"o":2},"firecracker":{"a":"Firecracker","b":"1F9E8","k":[51,27],"o":11},"lemon":{"a":"Lemon","b":"1F34B","j":["fruit","nature"],"k":[6,35],"o":2},"dog":{"a":"Dog Face","b":"1F436","j":["animal","friend","nature","woof","puppy","pet","faithful"],"k":[12,26],"o":2},"mens":{"a":"Mens Symbol","b":"1F6B9","j":["toilet","restroom","wc","blue-square","gender","male"],"k":[36,10],"o":2},"spock-hand":{"a":"Raised Hand with Part Between Middle and Ring Fingers","b":"1F596","k":[30,3],"o":2},"world_map":{"a":"World Map","b":"1F5FA-FE0F","c":"1F5FA","j":["location","direction"],"k":[30,29],"o":2},"laughing":{"a":"Smiling Face with Open Mouth and Tightly-Closed Eyes","b":"1F606","j":["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],"k":[30,41],"l":[":>",":->"],"n":["satisfied"],"o":2},"waving_white_flag":{"a":"Waving White Flag","b":"1F3F3-FE0F","c":"1F3F3","k":[11,12],"o":2},"safety_vest":{"a":"Safety Vest","b":"1F9BA","k":[43,54],"o":12},"sweat_smile":{"a":"Smiling Face with Open Mouth and Cold Sweat","b":"1F605","j":["face","hot","happy","laugh","sweat","smile","relief"],"k":[30,40],"o":2},"sparkles":{"a":"Sparkles","b":"2728","j":["stars","shine","shiny","cool","awesome","good","magic"],"k":[55,16],"o":2},"banana":{"a":"Banana","b":"1F34C","j":["fruit","food","monkey"],"k":[6,36],"o":2},"rainbow-flag":{"a":"Rainbow Flag","b":"1F3F3-FE0F-200D-1F308","c":"1F3F3-200D-1F308","k":[11,11],"o":4},"ok_hand":{"a":"Ok Hand Sign","b":"1F44C","j":["fingers","limbs","perfect","ok","okay"],"k":[13,32],"o":2},"japan":{"a":"Silhouette of Japan","b":"1F5FE","j":["nation","country","japanese","asia"],"k":[30,33],"o":2},"dog2":{"a":"Dog","b":"1F415","j":["animal","nature","friend","doge","pet","faithful"],"k":[11,50],"o":2},"womens":{"a":"Womens Symbol","b":"1F6BA","j":["purple-square","woman","female","toilet","loo","restroom","gender"],"k":[36,11],"o":2},"necktie":{"a":"Necktie","b":"1F454","j":["shirt","suitup","formal","fashion","cloth","business"],"k":[14,8],"o":2},"pirate_flag":{"a":"Pirate Flag","b":"1F3F4-200D-2620-FE0F","c":"1F3F4-200D-2620","k":[11,13],"o":11},"guide_dog":{"a":"Guide Dog","b":"1F9AE","k":[43,2],"o":12},"restroom":{"a":"Restroom","b":"1F6BB","j":["blue-square","toilet","refresh","wc","gender"],"k":[36,12],"o":2},"compass":{"a":"Compass","b":"1F9ED","k":[51,32],"o":11},"rolling_on_the_floor_laughing":{"a":"Rolling on the Floor Laughing","b":"1F923","k":[38,20],"o":4},"balloon":{"a":"Balloon","b":"1F388","j":["party","celebration","birthday","circus"],"k":[7,44],"o":2},"pinching_hand":{"a":"Pinching Hand","b":"1F90F","k":[37,17],"o":12},"pineapple":{"a":"Pineapple","b":"1F34D","j":["fruit","nature","food"],"k":[6,37],"o":2},"shirt":{"a":"T-Shirt","b":"1F455","k":[14,9],"n":["tshirt"],"o":2},"service_dog":{"a":"Service Dog","b":"1F415-200D-1F9BA","k":[11,49],"o":12},"baby_symbol":{"a":"Baby Symbol","b":"1F6BC","j":["orange-square","child"],"k":[36,13],"o":2},"joy":{"a":"Face with Tears of Joy","b":"1F602","j":["face","cry","tears","weep","happy","happytears","haha"],"k":[30,37],"o":2},"tada":{"a":"Party Popper","b":"1F389","j":["party","congratulations","birthday","magic","circus","celebration"],"k":[7,45],"o":2},"mango":{"a":"Mango","b":"1F96D","k":[42,3],"o":11},"v":{"a":"Victory Hand","b":"270C-FE0F","c":"270C","j":["fingers","ohyeah","hand","peace","victory","two"],"k":[54,55],"o":2},"snow_capped_mountain":{"a":"Snow Capped Mountain","b":"1F3D4-FE0F","c":"1F3D4","k":[10,39],"o":2},"flag-ac":{"a":"Ascension Island Flag","b":"1F1E6-1F1E8","k":[0,31],"o":2},"jeans":{"a":"Jeans","b":"1F456","j":["fashion","shopping"],"k":[14,10],"o":2},"poodle":{"a":"Poodle","b":"1F429","j":["dog","animal","101","nature","pet"],"k":[12,13],"o":2},"crossed_fingers":{"a":"Hand with Index and Middle Fingers Crossed","b":"1F91E","j":["good","lucky"],"k":[38,5],"n":["hand_with_index_and_middle_fingers_crossed"],"o":4},"flag-ad":{"a":"Andorra Flag","b":"1F1E6-1F1E9","k":[0,32],"o":2},"slightly_smiling_face":{"a":"Slightly Smiling Face","b":"1F642","j":["face","smile"],"k":[31,44],"l":[":)","(:",":-)"],"o":2},"apple":{"a":"Red Apple","b":"1F34E","j":["fruit","mac","school"],"k":[6,38],"o":2},"wc":{"a":"Water Closet","b":"1F6BE","j":["toilet","restroom","blue-square"],"k":[36,15],"o":2},"scarf":{"a":"Scarf","b":"1F9E3","k":[51,22],"o":5},"mountain":{"a":"Mountain","b":"26F0-FE0F","c":"26F0","j":["photo","nature","environment"],"k":[54,11],"o":2},"confetti_ball":{"a":"Confetti Ball","b":"1F38A","j":["festival","party","birthday","circus"],"k":[7,46],"o":2},"i_love_you_hand_sign":{"a":"I Love You Hand Sign","b":"1F91F","k":[38,11],"o":5},"wolf":{"a":"Wolf Face","b":"1F43A","j":["animal","nature","wild"],"k":[12,30],"o":2},"gloves":{"a":"Gloves","b":"1F9E4","k":[51,23],"o":5},"flag-ae":{"a":"United Arab Emirates Flag","b":"1F1E6-1F1EA","k":[0,33],"o":2},"upside_down_face":{"a":"Upside-Down Face","b":"1F643","j":["face","flipped","silly","smile"],"k":[31,45],"o":2},"green_apple":{"a":"Green Apple","b":"1F34F","j":["fruit","nature"],"k":[6,39],"o":2},"passport_control":{"a":"Passport Control","b":"1F6C2","j":["custom","blue-square"],"k":[36,24],"o":2},"volcano":{"a":"Volcano","b":"1F30B","j":["photo","nature","disaster"],"k":[5,30],"o":2},"tanabata_tree":{"a":"Tanabata Tree","b":"1F38B","j":["plant","nature","branch","summer"],"k":[7,47],"o":2},"customs":{"a":"Customs","b":"1F6C3","j":["passport","border","blue-square"],"k":[36,25],"o":2},"coat":{"a":"Coat","b":"1F9E5","k":[51,24],"o":5},"wink":{"a":"Winking Face","b":"1F609","j":["face","happy","mischievous","secret",";)","smile","eye"],"k":[30,44],"l":[";)",";-)"],"m":";)","o":2},"bamboo":{"a":"Pine Decoration","b":"1F38D","j":["plant","nature","vegetable","panda","pine_decoration"],"k":[7,49],"o":2},"flag-af":{"a":"Afghanistan Flag","b":"1F1E6-1F1EB","k":[0,34],"o":2},"fox_face":{"a":"Fox Face","b":"1F98A","j":["animal","nature","face"],"k":[42,28],"o":4},"pear":{"a":"Pear","b":"1F350","j":["fruit","nature","food"],"k":[6,40],"o":2},"mount_fuji":{"a":"Mount Fuji","b":"1F5FB","j":["photo","mountain","nature","japanese"],"k":[30,30],"o":2},"the_horns":{"a":"Sign of the Horns","b":"1F918","k":[37,31],"n":["sign_of_the_horns"],"o":2},"call_me_hand":{"a":"Call Me Hand","b":"1F919","j":["hands","gesture"],"k":[37,37],"o":4},"flag-ag":{"a":"Antigua & Barbuda Flag","b":"1F1E6-1F1EC","k":[0,35],"o":2},"raccoon":{"a":"Raccoon","b":"1F99D","k":[42,47],"o":11},"dolls":{"a":"Japanese Dolls","b":"1F38E","j":["japanese","toy","kimono"],"k":[7,50],"o":2},"blush":{"a":"Smiling Face with Smiling Eyes","b":"1F60A","j":["face","smile","happy","flushed","crush","embarrassed","shy","joy"],"k":[30,45],"m":":)","o":2},"peach":{"a":"Peach","b":"1F351","j":["fruit","nature","food"],"k":[6,41],"o":2},"baggage_claim":{"a":"Baggage Claim","b":"1F6C4","j":["blue-square","airport","transport"],"k":[36,26],"o":2},"socks":{"a":"Socks","b":"1F9E6","k":[51,25],"o":5},"camping":{"a":"Camping","b":"1F3D5-FE0F","c":"1F3D5","j":["photo","outdoors","tent"],"k":[10,40],"o":2},"dress":{"a":"Dress","b":"1F457","j":["clothes","fashion","shopping"],"k":[14,11],"o":2},"beach_with_umbrella":{"a":"Beach with Umbrella","b":"1F3D6-FE0F","c":"1F3D6","k":[10,41],"o":2},"cherries":{"a":"Cherries","b":"1F352","j":["food","fruit"],"k":[6,42],"o":2},"cat":{"a":"Cat Face","b":"1F431","j":["animal","meow","nature","pet","kitten"],"k":[12,21],"o":2},"point_left":{"a":"White Left Pointing Backhand Index","b":"1F448","j":["direction","fingers","hand","left"],"k":[13,8],"o":2},"left_luggage":{"a":"Left Luggage","b":"1F6C5","j":["blue-square","travel"],"k":[36,27],"o":2},"flag-ai":{"a":"Anguilla Flag","b":"1F1E6-1F1EE","k":[0,36],"o":2},"innocent":{"a":"Smiling Face with Halo","b":"1F607","j":["face","angel","heaven","halo"],"k":[30,42],"o":2},"flags":{"a":"Carp Streamer","b":"1F38F","j":["fish","japanese","koinobori","carp","banner"],"k":[7,51],"o":2},"warning":{"a":"Warning Sign","b":"26A0-FE0F","c":"26A0","j":["exclamation","wip","alert","error","problem","issue"],"k":[53,50],"o":2},"strawberry":{"a":"Strawberry","b":"1F353","j":["fruit","food","nature"],"k":[6,43],"o":2},"point_right":{"a":"White Right Pointing Backhand Index","b":"1F449","j":["fingers","hand","direction","right"],"k":[13,14],"o":2},"desert":{"a":"Desert","b":"1F3DC-FE0F","c":"1F3DC","j":["photo","warm","saharah"],"k":[10,47],"o":2},"kimono":{"a":"Kimono","b":"1F458","j":["dress","fashion","women","female","japanese"],"k":[14,12],"o":2},"flag-al":{"a":"Albania Flag","b":"1F1E6-1F1F1","k":[0,37],"o":2},"wind_chime":{"a":"Wind Chime","b":"1F390","j":["nature","ding","spring","bell"],"k":[7,52],"o":2},"smiling_face_with_3_hearts":{"a":"Smiling Face with Smiling Eyes and Three Hearts","b":"1F970","k":[42,6],"o":11},"cat2":{"a":"Cat","b":"1F408","j":["animal","meow","pet","cats"],"k":[11,36],"o":2},"rice_scene":{"a":"Moon Viewing Ceremony","b":"1F391","j":["photo","japan","asia","tsukimi"],"k":[7,53],"o":2},"heart_eyes":{"a":"Smiling Face with Heart-Shaped Eyes","b":"1F60D","j":["face","love","like","affection","valentines","infatuation","crush","heart"],"k":[30,48],"o":2},"sari":{"a":"Sari","b":"1F97B","k":[42,13],"o":12},"flag-am":{"a":"Armenia Flag","b":"1F1E6-1F1F2","k":[0,38],"o":2},"lion_face":{"a":"Lion Face","b":"1F981","k":[42,19],"o":2},"desert_island":{"a":"Desert Island","b":"1F3DD-FE0F","c":"1F3DD","j":["photo","tropical","mojito"],"k":[10,48],"o":2},"point_up_2":{"a":"White Up Pointing Backhand Index","b":"1F446","j":["fingers","hand","direction","up"],"k":[12,53],"o":2},"kiwifruit":{"a":"Kiwifruit","b":"1F95D","k":[41,44],"o":4},"children_crossing":{"a":"Children Crossing","b":"1F6B8","j":["school","warning","danger","sign","driving","yellow-diamond"],"k":[36,9],"o":2},"national_park":{"a":"National Park","b":"1F3DE-FE0F","c":"1F3DE","j":["photo","environment","nature"],"k":[10,49],"o":2},"no_entry":{"a":"No Entry","b":"26D4","j":["limit","security","privacy","bad","denied","stop","circle"],"k":[54,8],"o":2},"one-piece_swimsuit":{"a":"One-Piece Swimsuit","b":"1FA71","k":[51,52],"o":12},"tiger":{"a":"Tiger Face","b":"1F42F","j":["animal","cat","danger","wild","nature","roar"],"k":[12,19],"o":2},"red_envelope":{"a":"Red Gift Envelope","b":"1F9E7","k":[51,26],"o":11},"star-struck":{"a":"Grinning Face with Star Eyes","b":"1F929","k":[38,43],"n":["grinning_face_with_star_eyes"],"o":5},"middle_finger":{"a":"Reversed Hand with Middle Finger Extended","b":"1F595","k":[29,54],"n":["reversed_hand_with_middle_finger_extended"],"o":2},"flag-ao":{"a":"Angola Flag","b":"1F1E6-1F1F4","k":[0,39],"o":2},"tomato":{"a":"Tomato","b":"1F345","j":["fruit","vegetable","nature","food"],"k":[6,29],"o":2},"coconut":{"a":"Coconut","b":"1F965","k":[41,52],"o":5},"ribbon":{"a":"Ribbon","b":"1F380","j":["decoration","pink","girl","bowtie"],"k":[7,31],"o":2},"no_entry_sign":{"a":"No Entry Sign","b":"1F6AB","j":["forbid","stop","limit","denied","disallow","circle"],"k":[35,2],"o":2},"point_down":{"a":"White Down Pointing Backhand Index","b":"1F447","j":["fingers","hand","direction","down"],"k":[13,2],"o":2},"flag-aq":{"a":"Antarctica Flag","b":"1F1E6-1F1F6","k":[0,40],"o":2},"briefs":{"a":"Briefs","b":"1FA72","k":[51,53],"o":12},"kissing_heart":{"a":"Face Throwing a Kiss","b":"1F618","j":["face","love","like","affection","valentines","infatuation","kiss"],"k":[31,2],"l":[":*",":-*"],"o":2},"tiger2":{"a":"Tiger","b":"1F405","j":["animal","nature","roar"],"k":[11,33],"o":2},"stadium":{"a":"Stadium","b":"1F3DF-FE0F","c":"1F3DF","j":["photo","place","sports","concert","venue"],"k":[10,50],"o":2},"leopard":{"a":"Leopard","b":"1F406","j":["animal","nature"],"k":[11,34],"o":2},"no_bicycles":{"a":"No Bicycles","b":"1F6B3","j":["cyclist","prohibited","circle"],"k":[35,10],"o":2},"kissing":{"a":"Kissing Face","b":"1F617","j":["love","like","face","3","valentines","infatuation","kiss"],"k":[31,1],"o":2},"flag-ar":{"a":"Argentina Flag","b":"1F1E6-1F1F7","k":[0,41],"o":2},"avocado":{"a":"Avocado","b":"1F951","j":["fruit","food"],"k":[41,32],"o":4},"point_up":{"a":"White Up Pointing Index","b":"261D-FE0F","c":"261D","j":["hand","fingers","direction","up"],"k":[53,2],"o":2},"gift":{"a":"Wrapped Present","b":"1F381","j":["present","birthday","christmas","xmas"],"k":[7,32],"o":2},"classical_building":{"a":"Classical Building","b":"1F3DB-FE0F","c":"1F3DB","j":["art","culture","history"],"k":[10,46],"o":2},"shorts":{"a":"Shorts","b":"1FA73","k":[51,54],"o":12},"+1":{"a":"Thumbs Up Sign","b":"1F44D","j":["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"k":[13,38],"n":["thumbsup"],"o":2},"horse":{"a":"Horse Face","b":"1F434","j":["animal","brown","nature"],"k":[12,24],"o":2},"bikini":{"a":"Bikini","b":"1F459","j":["swimming","female","woman","girl","fashion","beach","summer"],"k":[14,13],"o":2},"no_smoking":{"a":"No Smoking Symbol","b":"1F6AD","j":["cigarette","blue-square","smell","smoke"],"k":[35,4],"o":2},"eggplant":{"a":"Aubergine","b":"1F346","j":["vegetable","nature","food","aubergine"],"k":[6,30],"o":2},"flag-as":{"a":"American Samoa Flag","b":"1F1E6-1F1F8","k":[0,42],"o":2},"reminder_ribbon":{"a":"Reminder Ribbon","b":"1F397-FE0F","c":"1F397","j":["sports","cause","support","awareness"],"k":[8,0],"o":2},"building_construction":{"a":"Building Construction","b":"1F3D7-FE0F","c":"1F3D7","j":["wip","working","progress"],"k":[10,42],"o":2},"relaxed":{"a":"White Smiling Face","b":"263A-FE0F","c":"263A","j":["face","blush","massage","happiness"],"k":[53,17],"o":2},"kissing_closed_eyes":{"a":"Kissing Face with Closed Eyes","b":"1F61A","j":["face","love","like","affection","valentines","infatuation","kiss"],"k":[31,4],"o":2},"-1":{"a":"Thumbs Down Sign","b":"1F44E","j":["thumbsdown","no","dislike","hand"],"k":[13,44],"n":["thumbsdown"],"o":2},"admission_tickets":{"a":"Admission Tickets","b":"1F39F-FE0F","c":"1F39F","k":[8,5],"o":2},"flag-at":{"a":"Austria Flag","b":"1F1E6-1F1F9","k":[0,43],"o":2},"womans_clothes":{"a":"Womans Clothes","b":"1F45A","j":["fashion","shopping_bags","female"],"k":[14,14],"o":2},"do_not_litter":{"a":"Do Not Litter Symbol","b":"1F6AF","j":["trash","bin","garbage","circle"],"k":[35,6],"o":2},"potato":{"a":"Potato","b":"1F954","j":["food","tuber","vegatable","starch"],"k":[41,35],"o":4},"racehorse":{"a":"Horse","b":"1F40E","j":["animal","gamble","luck"],"k":[11,42],"o":2},"bricks":{"a":"Brick","b":"1F9F1","k":[51,36],"o":11},"fist":{"a":"Raised Fist","b":"270A","j":["fingers","hand","grasp"],"k":[54,43],"o":2},"house_buildings":{"a":"House Buildings","b":"1F3D8-FE0F","c":"1F3D8","k":[10,43],"o":2},"carrot":{"a":"Carrot","b":"1F955","j":["vegetable","food","orange"],"k":[41,36],"o":4},"ticket":{"a":"Ticket","b":"1F3AB","j":["event","concert","pass"],"k":[8,17],"o":2},"flag-au":{"a":"Australia Flag","b":"1F1E6-1F1FA","k":[0,44],"o":2},"non-potable_water":{"a":"Non-Potable Water Symbol","b":"1F6B1","j":["drink","faucet","tap","circle"],"k":[35,8],"o":2},"purse":{"a":"Purse","b":"1F45B","j":["fashion","accessories","money","sales","shopping"],"k":[14,15],"o":2},"unicorn_face":{"a":"Unicorn Face","b":"1F984","k":[42,22],"o":2},"kissing_smiling_eyes":{"a":"Kissing Face with Smiling Eyes","b":"1F619","j":["face","affection","valentines","infatuation","kiss"],"k":[31,3],"o":2},"facepunch":{"a":"Fisted Hand Sign","b":"1F44A","j":["angry","violence","fist","hit","attack","hand"],"k":[13,20],"n":["punch"],"o":2},"medal":{"a":"Medal","b":"1F396-FE0F","c":"1F396","k":[7,56],"o":2},"zebra_face":{"a":"Zebra Face","b":"1F993","k":[42,37],"o":5},"handbag":{"a":"Handbag","b":"1F45C","j":["fashion","accessory","accessories","shopping"],"k":[14,16],"o":2},"derelict_house_building":{"a":"Derelict House Building","b":"1F3DA-FE0F","c":"1F3DA","k":[10,45],"o":2},"yum":{"a":"Face Savouring Delicious Food","b":"1F60B","j":["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],"k":[30,46],"o":2},"corn":{"a":"Ear of Maize","b":"1F33D","j":["food","vegetable","plant"],"k":[6,21],"o":2},"flag-aw":{"a":"Aruba Flag","b":"1F1E6-1F1FC","k":[0,45],"o":2},"no_pedestrians":{"a":"No Pedestrians","b":"1F6B7","j":["rules","crossing","walking","circle"],"k":[36,8],"o":2},"house":{"a":"House Building","b":"1F3E0","j":["building","home"],"k":[10,51],"o":2},"hot_pepper":{"a":"Hot Pepper","b":"1F336-FE0F","c":"1F336","j":["food","spicy","chilli","chili"],"k":[6,14],"o":2},"flag-ax":{"a":"\xc5land Islands Flag","b":"1F1E6-1F1FD","k":[0,46],"o":2},"trophy":{"a":"Trophy","b":"1F3C6","j":["win","award","contest","place","ftw","ceremony"],"k":[9,26],"o":2},"deer":{"a":"Deer","b":"1F98C","j":["animal","nature","horns","venison"],"k":[42,30],"o":4},"left-facing_fist":{"a":"Left-Facing Fist","b":"1F91B","k":[37,49],"o":4},"stuck_out_tongue":{"a":"Face with Stuck-out Tongue","b":"1F61B","j":["face","prank","childish","playful","mischievous","smile","tongue"],"k":[31,5],"l":[":p",":-p",":P",":-P",":b",":-b"],"m":":p","o":2},"pouch":{"a":"Pouch","b":"1F45D","j":["bag","accessories","shopping"],"k":[14,17],"o":2},"no_mobile_phones":{"a":"No Mobile Phones","b":"1F4F5","j":["iphone","mute","circle"],"k":[27,18],"o":2},"stuck_out_tongue_winking_eye":{"a":"Face with Stuck-out Tongue and Winking Eye","b":"1F61C","j":["face","prank","childish","playful","mischievous","smile","wink","tongue"],"k":[31,6],"l":[";p",";-p",";b",";-b",";P",";-P"],"m":";p","o":2},"sports_medal":{"a":"Sports Medal","b":"1F3C5","k":[9,25],"o":2},"cucumber":{"a":"Cucumber","b":"1F952","j":["fruit","food","pickle"],"k":[41,33],"o":4},"cow":{"a":"Cow Face","b":"1F42E","j":["beef","ox","animal","nature","moo","milk"],"k":[12,18],"o":2},"underage":{"a":"No One Under Eighteen Symbol","b":"1F51E","j":["18","drink","pub","night","minor","circle"],"k":[28,1],"o":2},"flag-az":{"a":"Azerbaijan Flag","b":"1F1E6-1F1FF","k":[0,47],"o":2},"shopping_bags":{"a":"Shopping Bags","b":"1F6CD-FE0F","c":"1F6CD","k":[36,35],"o":2},"right-facing_fist":{"a":"Right-Facing Fist","b":"1F91C","k":[37,55],"o":4},"house_with_garden":{"a":"House with Garden","b":"1F3E1","j":["home","plant","nature"],"k":[10,52],"o":2},"clap":{"a":"Clapping Hands Sign","b":"1F44F","j":["hands","praise","applause","congrats","yay"],"k":[13,50],"o":2},"leafy_green":{"a":"Leafy Green","b":"1F96C","k":[42,2],"o":11},"office":{"a":"Office Building","b":"1F3E2","j":["building","bureau","work"],"k":[10,53],"o":2},"flag-ba":{"a":"Bosnia & Herzegovina Flag","b":"1F1E7-1F1E6","k":[0,48],"o":2},"zany_face":{"a":"Grinning Face with One Large and One Small Eye","b":"1F92A","k":[38,44],"n":["grinning_face_with_one_large_and_one_small_eye"],"o":5},"first_place_medal":{"a":"First Place Medal","b":"1F947","k":[41,22],"o":4},"ox":{"a":"Ox","b":"1F402","j":["animal","cow","beef"],"k":[11,30],"o":2},"school_satchel":{"a":"School Satchel","b":"1F392","j":["student","education","bag","backpack"],"k":[7,54],"o":2},"radioactive_sign":{"a":"Radioactive Sign","b":"2622-FE0F","c":"2622","k":[53,9],"o":2},"second_place_medal":{"a":"Second Place Medal","b":"1F948","k":[41,23],"o":4},"stuck_out_tongue_closed_eyes":{"a":"Face with Stuck-out Tongue and Tightly-Closed Eyes","b":"1F61D","j":["face","prank","playful","mischievous","smile","tongue"],"k":[31,7],"o":2},"broccoli":{"a":"Broccoli","b":"1F966","k":[41,53],"o":5},"biohazard_sign":{"a":"Biohazard Sign","b":"2623-FE0F","c":"2623","k":[53,10],"o":2},"mans_shoe":{"a":"Mans Shoe","b":"1F45E","j":["fashion","male"],"k":[14,18],"n":["shoe"],"o":2},"raised_hands":{"a":"Person Raising Both Hands in Celebration","b":"1F64C","j":["gesture","hooray","yea","celebration","hands"],"k":[33,8],"o":2},"post_office":{"a":"Japanese Post Office","b":"1F3E3","j":["building","envelope","communication"],"k":[10,54],"o":2},"flag-bb":{"a":"Barbados Flag","b":"1F1E7-1F1E7","k":[0,49],"o":2},"water_buffalo":{"a":"Water Buffalo","b":"1F403","j":["animal","nature","ox","cow"],"k":[11,31],"o":2},"third_place_medal":{"a":"Third Place Medal","b":"1F949","k":[41,24],"o":4},"european_post_office":{"a":"European Post Office","b":"1F3E4","j":["building","email"],"k":[10,55],"o":2},"athletic_shoe":{"a":"Athletic Shoe","b":"1F45F","j":["shoes","sports","sneakers"],"k":[14,19],"o":2},"arrow_up":{"a":"Upwards Black Arrow","b":"2B06-FE0F","c":"2B06","j":["blue-square","continue","top","direction"],"k":[55,38],"o":2},"cow2":{"a":"Cow","b":"1F404","j":["beef","ox","animal","nature","moo","milk"],"k":[11,32],"o":2},"open_hands":{"a":"Open Hands Sign","b":"1F450","j":["fingers","butterfly","hands","open"],"k":[13,56],"o":2},"garlic":{"a":"Garlic","b":"1F9C4","k":[44,12],"o":12},"money_mouth_face":{"a":"Money-Mouth Face","b":"1F911","j":["face","rich","dollar","money"],"k":[37,24],"o":2},"flag-bd":{"a":"Bangladesh Flag","b":"1F1E7-1F1E9","k":[0,50],"o":2},"soccer":{"a":"Soccer Ball","b":"26BD","j":["sports","football"],"k":[53,56],"o":2},"hugging_face":{"a":"Hugging Face","b":"1F917","k":[37,30],"o":2},"onion":{"a":"Onion","b":"1F9C5","k":[44,13],"o":12},"arrow_upper_right":{"a":"North East Arrow","b":"2197-FE0F","c":"2197","j":["blue-square","point","direction","diagonal","northeast"],"k":[52,17],"o":2},"palms_up_together":{"a":"Palms Up Together","b":"1F932","k":[39,5],"o":5},"pig":{"a":"Pig Face","b":"1F437","j":["animal","oink","nature"],"k":[12,27],"o":2},"hospital":{"a":"Hospital","b":"1F3E5","j":["building","health","surgery","doctor"],"k":[10,56],"o":2},"hiking_boot":{"a":"Hiking Boot","b":"1F97E","k":[42,16],"o":11},"flag-be":{"a":"Belgium Flag","b":"1F1E7-1F1EA","k":[0,51],"o":2},"flag-bf":{"a":"Burkina Faso Flag","b":"1F1E7-1F1EB","k":[0,52],"o":2},"mushroom":{"a":"Mushroom","b":"1F344","j":["plant","vegetable"],"k":[6,28],"o":2},"pig2":{"a":"Pig","b":"1F416","j":["animal","nature"],"k":[11,51],"o":2},"baseball":{"a":"Baseball","b":"26BE","j":["sports","balls"],"k":[54,0],"o":2},"face_with_hand_over_mouth":{"a":"Smiling Face with Smiling Eyes and Hand Covering Mouth","b":"1F92D","k":[38,47],"n":["smiling_face_with_smiling_eyes_and_hand_covering_mouth"],"o":5},"handshake":{"a":"Handshake","b":"1F91D","j":["agreement","shake"],"k":[38,4],"o":4},"womans_flat_shoe":{"a":"Flat Shoe","b":"1F97F","k":[42,17],"o":11},"bank":{"a":"Bank","b":"1F3E6","j":["building","money","sales","cash","business","enterprise"],"k":[11,0],"o":2},"arrow_right":{"a":"Black Rightwards Arrow","b":"27A1-FE0F","c":"27A1","j":["blue-square","next"],"k":[55,32],"o":2},"peanuts":{"a":"Peanuts","b":"1F95C","j":["food","nut"],"k":[41,43],"o":4},"shushing_face":{"a":"Face with Finger Covering Closed Lips","b":"1F92B","k":[38,45],"n":["face_with_finger_covering_closed_lips"],"o":5},"pray":{"a":"Person with Folded Hands","b":"1F64F","j":["please","hope","wish","namaste","highfive"],"k":[33,50],"o":2},"softball":{"a":"Softball","b":"1F94E","k":[41,29],"o":11},"high_heel":{"a":"High-Heeled Shoe","b":"1F460","j":["fashion","shoes","female","pumps","stiletto"],"k":[14,20],"o":2},"flag-bg":{"a":"Bulgaria Flag","b":"1F1E7-1F1EC","k":[0,53],"o":2},"arrow_lower_right":{"a":"South East Arrow","b":"2198-FE0F","c":"2198","j":["blue-square","direction","diagonal","southeast"],"k":[52,18],"o":2},"hotel":{"a":"Hotel","b":"1F3E8","j":["building","accomodation","checkin"],"k":[11,2],"o":2},"boar":{"a":"Boar","b":"1F417","j":["animal","nature"],"k":[11,52],"o":2},"sandal":{"a":"Womans Sandal","b":"1F461","j":["shoes","fashion","flip flops"],"k":[14,21],"o":2},"flag-bh":{"a":"Bahrain Flag","b":"1F1E7-1F1ED","k":[0,54],"o":2},"arrow_down":{"a":"Downwards Black Arrow","b":"2B07-FE0F","c":"2B07","j":["blue-square","direction","bottom"],"k":[55,39],"o":2},"thinking_face":{"a":"Thinking Face","b":"1F914","k":[37,27],"o":2},"writing_hand":{"a":"Writing Hand","b":"270D-FE0F","c":"270D","j":["lower_left_ballpoint_pen","stationery","write","compose"],"k":[55,4],"o":2},"chestnut":{"a":"Chestnut","b":"1F330","j":["food","squirrel"],"k":[6,8],"o":2},"basketball":{"a":"Basketball and Hoop","b":"1F3C0","j":["sports","balls","NBA"],"k":[8,38],"o":2},"pig_nose":{"a":"Pig Nose","b":"1F43D","j":["animal","oink"],"k":[12,33],"o":2},"love_hotel":{"a":"Love Hotel","b":"1F3E9","j":["like","affection","dating"],"k":[11,3],"o":2},"nail_care":{"a":"Nail Polish","b":"1F485","j":["beauty","manicure","finger","fashion","nail"],"k":[24,33],"o":2},"volleyball":{"a":"Volleyball","b":"1F3D0","j":["sports","balls"],"k":[10,35],"o":2},"flag-bi":{"a":"Burundi Flag","b":"1F1E7-1F1EE","k":[0,55],"o":2},"arrow_lower_left":{"a":"South West Arrow","b":"2199-FE0F","c":"2199","j":["blue-square","direction","diagonal","southwest"],"k":[52,19],"o":2},"ram":{"a":"Ram","b":"1F40F","j":["animal","sheep","nature"],"k":[11,43],"o":2},"ballet_shoes":{"a":"Ballet Shoes","b":"1FA70","k":[51,51],"o":12},"zipper_mouth_face":{"a":"Zipper-Mouth Face","b":"1F910","j":["face","sealed","zipper","secret"],"k":[37,23],"o":2},"bread":{"a":"Bread","b":"1F35E","j":["food","wheat","breakfast","toast"],"k":[6,54],"o":2},"convenience_store":{"a":"Convenience Store","b":"1F3EA","j":["building","shopping","groceries"],"k":[11,4],"o":2},"boot":{"a":"Womans Boots","b":"1F462","j":["shoes","fashion"],"k":[14,22],"o":2},"sheep":{"a":"Sheep","b":"1F411","j":["animal","nature","wool","shipit"],"k":[11,45],"o":2},"face_with_raised_eyebrow":{"a":"Face with One Eyebrow Raised","b":"1F928","k":[38,42],"n":["face_with_one_eyebrow_raised"],"o":5},"flag-bj":{"a":"Benin Flag","b":"1F1E7-1F1EF","k":[0,56],"o":2},"arrow_left":{"a":"Leftwards Black Arrow","b":"2B05-FE0F","c":"2B05","j":["blue-square","previous","back"],"k":[55,37],"o":2},"selfie":{"a":"Selfie","b":"1F933","j":["camera","phone"],"k":[39,11],"o":4},"croissant":{"a":"Croissant","b":"1F950","j":["food","bread","french"],"k":[41,31],"o":4},"school":{"a":"School","b":"1F3EB","j":["building","student","education","learn","teach"],"k":[11,5],"o":2},"football":{"a":"American Football","b":"1F3C8","j":["sports","balls","NFL"],"k":[9,33],"o":2},"goat":{"a":"Goat","b":"1F410","j":["animal","nature"],"k":[11,44],"o":2},"department_store":{"a":"Department Store","b":"1F3EC","j":["building","shopping","mall"],"k":[11,6],"o":2},"flag-bl":{"a":"St. Barth\xe9lemy Flag","b":"1F1E7-1F1F1","k":[1,0],"o":2},"crown":{"a":"Crown","b":"1F451","j":["king","kod","leader","royalty","lord"],"k":[14,5],"o":2},"arrow_upper_left":{"a":"North West Arrow","b":"2196-FE0F","c":"2196","j":["blue-square","point","direction","diagonal","northwest"],"k":[52,16],"o":2},"neutral_face":{"a":"Neutral Face","b":"1F610","j":["indifference","meh",":|","neutral"],"k":[30,51],"l":[":|",":-|"],"o":2},"rugby_football":{"a":"Rugby Football","b":"1F3C9","j":["sports","team"],"k":[9,34],"o":2},"muscle":{"a":"Flexed Biceps","b":"1F4AA","j":["arm","flex","hand","summer","strong","biceps"],"k":[25,52],"o":2},"baguette_bread":{"a":"Baguette Bread","b":"1F956","j":["food","bread","french"],"k":[41,37],"o":4},"expressionless":{"a":"Expressionless Face","b":"1F611","j":["face","indifferent","-_-","meh","deadpan"],"k":[30,52],"o":2},"womans_hat":{"a":"Womans Hat","b":"1F452","j":["fashion","accessories","female","lady","spring"],"k":[14,6],"o":2},"pretzel":{"a":"Pretzel","b":"1F968","k":[41,55],"o":5},"mechanical_arm":{"a":"Mechanical Arm","b":"1F9BE","k":[44,6],"o":12},"arrow_up_down":{"a":"Up Down Arrow","b":"2195-FE0F","c":"2195","j":["blue-square","direction","way","vertical"],"k":[52,15],"o":2},"dromedary_camel":{"a":"Dromedary Camel","b":"1F42A","j":["animal","hot","desert","hump"],"k":[12,14],"o":2},"tennis":{"a":"Tennis Racquet and Ball","b":"1F3BE","j":["sports","balls","green"],"k":[8,36],"o":2},"flag-bm":{"a":"Bermuda Flag","b":"1F1E7-1F1F2","k":[1,1],"o":2},"factory":{"a":"Factory","b":"1F3ED","j":["building","industry","pollution","smoke"],"k":[11,7],"o":2},"japanese_castle":{"a":"Japanese Castle","b":"1F3EF","j":["photo","building"],"k":[11,9],"o":2},"no_mouth":{"a":"Face Without Mouth","b":"1F636","j":["face","hellokitty"],"k":[31,32],"o":2},"mechanical_leg":{"a":"Mechanical Leg","b":"1F9BF","k":[44,7],"o":12},"bagel":{"a":"Bagel","b":"1F96F","k":[42,5],"o":11},"camel":{"a":"Bactrian Camel","b":"1F42B","j":["animal","nature","hot","desert","hump"],"k":[12,15],"o":2},"tophat":{"a":"Top Hat","b":"1F3A9","j":["magic","gentleman","classy","circus"],"k":[8,15],"o":2},"left_right_arrow":{"a":"Left Right Arrow","b":"2194-FE0F","c":"2194","j":["shape","direction","horizontal","sideways"],"k":[52,14],"o":2},"flag-bn":{"a":"Brunei Flag","b":"1F1E7-1F1F3","k":[1,2],"o":2},"flying_disc":{"a":"Flying Disc","b":"1F94F","k":[41,30],"o":11},"smirk":{"a":"Smirking Face","b":"1F60F","j":["face","smile","mean","prank","smug","sarcasm"],"k":[30,50],"o":2},"mortar_board":{"a":"Graduation Cap","b":"1F393","j":["school","college","degree","university","graduation","cap","hat","legal","learn","education"],"k":[7,55],"o":2},"european_castle":{"a":"European Castle","b":"1F3F0","j":["building","royalty","history"],"k":[11,10],"o":2},"leg":{"a":"Leg","b":"1F9B5","k":[43,5],"o":11},"pancakes":{"a":"Pancakes","b":"1F95E","j":["food","breakfast","flapjacks","hotcakes"],"k":[41,45],"o":4},"leftwards_arrow_with_hook":{"a":"Leftwards Arrow with Hook","b":"21A9-FE0F","c":"21A9","j":["back","return","blue-square","undo","enter"],"k":[52,20],"o":2},"flag-bo":{"a":"Bolivia Flag","b":"1F1E7-1F1F4","k":[1,3],"o":2},"bowling":{"a":"Bowling","b":"1F3B3","j":["sports","fun","play"],"k":[8,25],"o":2},"llama":{"a":"Llama","b":"1F999","k":[42,43],"o":11},"arrow_right_hook":{"a":"Rightwards Arrow with Hook","b":"21AA-FE0F","c":"21AA","j":["blue-square","return","rotate","direction"],"k":[52,21],"o":2},"wedding":{"a":"Wedding","b":"1F492","j":["love","like","affection","couple","marriage","bride","groom"],"k":[25,28],"o":2},"flag-bq":{"a":"Caribbean Netherlands Flag","b":"1F1E7-1F1F6","k":[1,4],"o":2},"foot":{"a":"Foot","b":"1F9B6","k":[43,11],"o":11},"giraffe_face":{"a":"Giraffe Face","b":"1F992","k":[42,36],"o":5},"unamused":{"a":"Unamused Face","b":"1F612","j":["indifference","bored","straight face","serious","sarcasm"],"k":[30,53],"m":":(","o":2},"billed_cap":{"a":"Billed Cap","b":"1F9E2","k":[51,21],"o":5},"waffle":{"a":"Waffle","b":"1F9C7","k":[44,15],"o":12},"cricket_bat_and_ball":{"a":"Cricket Bat and Ball","b":"1F3CF","k":[10,34],"o":2},"helmet_with_white_cross":{"a":"Helmet with White Cross","b":"26D1-FE0F","c":"26D1","k":[54,6],"o":2},"ear":{"a":"Ear","b":"1F442","j":["face","hear","sound","listen"],"k":[12,39],"o":2},"elephant":{"a":"Elephant","b":"1F418","j":["animal","nature","nose","th","circus"],"k":[11,53],"o":2},"cheese_wedge":{"a":"Cheese Wedge","b":"1F9C0","k":[44,8],"o":2},"tokyo_tower":{"a":"Tokyo Tower","b":"1F5FC","j":["photo","japanese"],"k":[30,31],"o":2},"arrow_heading_up":{"a":"Arrow Pointing Rightwards Then Curving Upwards","b":"2934-FE0F","c":"2934","j":["blue-square","direction","top"],"k":[55,35],"o":2},"field_hockey_stick_and_ball":{"a":"Field Hockey Stick and Ball","b":"1F3D1","k":[10,36],"o":2},"flag-br":{"a":"Brazil Flag","b":"1F1E7-1F1F7","k":[1,5],"o":2},"face_with_rolling_eyes":{"a":"Face with Rolling Eyes","b":"1F644","k":[31,46],"o":2},"ear_with_hearing_aid":{"a":"Ear with Hearing Aid","b":"1F9BB","k":[43,55],"o":12},"arrow_heading_down":{"a":"Arrow Pointing Rightwards Then Curving Downwards","b":"2935-FE0F","c":"2935","j":["blue-square","direction","bottom"],"k":[55,36],"o":2},"ice_hockey_stick_and_puck":{"a":"Ice Hockey Stick and Puck","b":"1F3D2","k":[10,37],"o":2},"meat_on_bone":{"a":"Meat on Bone","b":"1F356","j":["good","food","drumstick"],"k":[6,46],"o":2},"prayer_beads":{"a":"Prayer Beads","b":"1F4FF","j":["dhikr","religious"],"k":[27,27],"o":2},"statue_of_liberty":{"a":"Statue of Liberty","b":"1F5FD","j":["american","newyork"],"k":[30,32],"o":2},"grimacing":{"a":"Grimacing Face","b":"1F62C","j":["face","grimace","teeth"],"k":[31,22],"o":2},"flag-bs":{"a":"Bahamas Flag","b":"1F1E7-1F1F8","k":[1,6],"o":2},"rhinoceros":{"a":"Rhinoceros","b":"1F98F","j":["animal","nature","horn"],"k":[42,33],"o":4},"lacrosse":{"a":"Lacrosse Stick and Ball","b":"1F94D","k":[41,28],"o":11},"poultry_leg":{"a":"Poultry Leg","b":"1F357","j":["food","meat","drumstick","bird","chicken","turkey"],"k":[6,47],"o":2},"hippopotamus":{"a":"Hippopotamus","b":"1F99B","k":[42,45],"o":11},"nose":{"a":"Nose","b":"1F443","j":["smell","sniff"],"k":[12,45],"o":2},"arrows_clockwise":{"a":"Clockwise Downwards and Upwards Open Circle Arrows","b":"1F503","j":["sync","cycle","round","repeat"],"k":[27,31],"o":2},"flag-bt":{"a":"Bhutan Flag","b":"1F1E7-1F1F9","k":[1,7],"o":2},"church":{"a":"Church","b":"26EA","j":["building","religion","christ"],"k":[54,10],"o":2},"lipstick":{"a":"Lipstick","b":"1F484","j":["female","girl","fashion","woman"],"k":[24,32],"o":2},"lying_face":{"a":"Lying Face","b":"1F925","j":["face","lie","pinocchio"],"k":[38,22],"o":4},"arrows_counterclockwise":{"a":"Anticlockwise Downwards and Upwards Open Circle Arrows","b":"1F504","j":["blue-square","sync","cycle"],"k":[27,32],"o":2},"flag-bv":{"a":"Bouvet Island Flag","b":"1F1E7-1F1FB","k":[1,8],"o":2},"cut_of_meat":{"a":"Cut of Meat","b":"1F969","k":[41,56],"o":5},"mosque":{"a":"Mosque","b":"1F54C","j":["islam","worship","minaret"],"k":[28,36],"o":2},"ring":{"a":"Ring","b":"1F48D","j":["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"k":[25,23],"o":2},"brain":{"a":"Brain","b":"1F9E0","k":[51,19],"o":5},"table_tennis_paddle_and_ball":{"a":"Table Tennis Paddle and Ball","b":"1F3D3","k":[10,38],"o":2},"relieved":{"a":"Relieved Face","b":"1F60C","j":["face","relaxed","phew","massage","happiness"],"k":[30,47],"o":2},"mouse":{"a":"Mouse Face","b":"1F42D","j":["animal","nature","cheese_wedge","rodent"],"k":[12,17],"o":2},"hindu_temple":{"a":"Hindu Temple","b":"1F6D5","k":[36,41],"o":12},"back":{"a":"Back with Leftwards Arrow Above","b":"1F519","j":["arrow","words","return"],"k":[27,53],"o":2},"gem":{"a":"Gem Stone","b":"1F48E","j":["blue","ruby","diamond","jewelry"],"k":[25,24],"o":2},"pensive":{"a":"Pensive Face","b":"1F614","j":["face","sad","depressed","upset"],"k":[30,55],"o":2},"flag-bw":{"a":"Botswana Flag","b":"1F1E7-1F1FC","k":[1,9],"o":2},"mouse2":{"a":"Mouse","b":"1F401","j":["animal","nature","rodent"],"k":[11,29],"o":2},"bacon":{"a":"Bacon","b":"1F953","j":["food","breakfast","pork","pig","meat"],"k":[41,34],"o":4},"tooth":{"a":"Tooth","b":"1F9B7","k":[43,17],"o":11},"badminton_racquet_and_shuttlecock":{"a":"Badminton Racquet and Shuttlecock","b":"1F3F8","k":[11,20],"o":2},"rat":{"a":"Rat","b":"1F400","j":["animal","mouse","rodent"],"k":[11,28],"o":2},"synagogue":{"a":"Synagogue","b":"1F54D","j":["judaism","worship","temple","jewish"],"k":[28,37],"o":2},"end":{"a":"End with Leftwards Arrow Above","b":"1F51A","j":["words","arrow"],"k":[27,54],"o":2},"bone":{"a":"Bone","b":"1F9B4","k":[43,4],"o":11},"boxing_glove":{"a":"Boxing Glove","b":"1F94A","j":["sports","fighting"],"k":[41,25],"o":4},"mute":{"a":"Speaker with Cancellation Stroke","b":"1F507","j":["sound","volume","silence","quiet"],"k":[27,35],"o":2},"hamburger":{"a":"Hamburger","b":"1F354","j":["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],"k":[6,44],"o":2},"flag-by":{"a":"Belarus Flag","b":"1F1E7-1F1FE","k":[1,10],"o":2},"sleepy":{"a":"Sleepy Face","b":"1F62A","j":["face","tired","rest","nap"],"k":[31,20],"o":2},"on":{"a":"On with Exclamation Mark with Left Right Arrow Above","b":"1F51B","j":["arrow","words"],"k":[27,55],"o":2},"martial_arts_uniform":{"a":"Martial Arts Uniform","b":"1F94B","j":["judo","karate","taekwondo"],"k":[41,26],"o":4},"speaker":{"a":"Speaker","b":"1F508","j":["sound","volume","silence","broadcast"],"k":[27,36],"o":2},"drooling_face":{"a":"Drooling Face","b":"1F924","j":["face"],"k":[38,21],"o":4},"eyes":{"a":"Eyes","b":"1F440","j":["look","watch","stalk","peek","see"],"k":[12,36],"o":2},"flag-bz":{"a":"Belize Flag","b":"1F1E7-1F1FF","k":[1,11],"o":2},"hamster":{"a":"Hamster Face","b":"1F439","j":["animal","nature"],"k":[12,29],"o":2},"shinto_shrine":{"a":"Shinto Shrine","b":"26E9-FE0F","c":"26E9","j":["temple","japan","kyoto"],"k":[54,9],"o":2},"fries":{"a":"French Fries","b":"1F35F","j":["chips","snack","fast food"],"k":[6,55],"o":2},"goal_net":{"a":"Goal Net","b":"1F945","j":["sports"],"k":[41,21],"o":4},"kaaba":{"a":"Kaaba","b":"1F54B","j":["mecca","mosque","islam"],"k":[28,35],"o":2},"soon":{"a":"Soon with Rightwards Arrow Above","b":"1F51C","j":["arrow","words"],"k":[27,56],"o":2},"flag-ca":{"a":"Canada Flag","b":"1F1E8-1F1E6","k":[1,12],"o":2},"rabbit":{"a":"Rabbit Face","b":"1F430","j":["animal","nature","pet","spring","magic","bunny"],"k":[12,20],"o":2},"eye":{"a":"Eye","b":"1F441-FE0F","c":"1F441","j":["face","look","see","watch","stare"],"k":[12,38],"o":2},"sleeping":{"a":"Sleeping Face","b":"1F634","j":["face","tired","sleepy","night","zzz"],"k":[31,30],"o":2},"pizza":{"a":"Slice of Pizza","b":"1F355","j":["food","party"],"k":[6,45],"o":2},"sound":{"a":"Speaker with One Sound Wave","b":"1F509","j":["volume","speaker","broadcast"],"k":[27,37],"o":2},"rabbit2":{"a":"Rabbit","b":"1F407","j":["animal","nature","pet","magic","spring"],"k":[11,35],"o":2},"fountain":{"a":"Fountain","b":"26F2","j":["photo","summer","water","fresh"],"k":[54,13],"o":2},"golf":{"a":"Flag in Hole","b":"26F3","j":["sports","business","flag","hole","summer"],"k":[54,14],"o":2},"top":{"a":"Top with Upwards Arrow Above","b":"1F51D","j":["words","blue-square"],"k":[28,0],"o":2},"mask":{"a":"Face with Medical Mask","b":"1F637","j":["face","sick","ill","disease"],"k":[31,33],"o":2},"flag-cc":{"a":"Cocos (keeling) Islands Flag","b":"1F1E8-1F1E8","k":[1,13],"o":2},"hotdog":{"a":"Hot Dog","b":"1F32D","j":["food","frankfurter"],"k":[6,5],"o":2},"loud_sound":{"a":"Speaker with Three Sound Waves","b":"1F50A","j":["volume","noise","noisy","speaker","broadcast"],"k":[27,38],"o":2},"tongue":{"a":"Tongue","b":"1F445","j":["mouth","playful"],"k":[12,52],"o":2},"place_of_worship":{"a":"Place of Worship","b":"1F6D0","j":["religion","church","temple","prayer"],"k":[36,38],"o":2},"ice_skate":{"a":"Ice Skate","b":"26F8-FE0F","c":"26F8","j":["sports"],"k":[54,18],"o":2},"sandwich":{"a":"Sandwich","b":"1F96A","k":[42,0],"o":5},"chipmunk":{"a":"Chipmunk","b":"1F43F-FE0F","c":"1F43F","j":["animal","nature","rodent","squirrel"],"k":[12,35],"o":2},"loudspeaker":{"a":"Public Address Loudspeaker","b":"1F4E2","j":["volume","sound"],"k":[26,56],"o":2},"lips":{"a":"Mouth","b":"1F444","j":["mouth","kiss"],"k":[12,51],"o":2},"flag-cd":{"a":"Congo - Kinshasa Flag","b":"1F1E8-1F1E9","k":[1,14],"o":2},"tent":{"a":"Tent","b":"26FA","j":["photo","camping","outdoors"],"k":[54,37],"o":2},"face_with_thermometer":{"a":"Face with Thermometer","b":"1F912","j":["sick","temperature","thermometer","cold","fever"],"k":[37,25],"o":2},"taco":{"a":"Taco","b":"1F32E","j":["food","mexican"],"k":[6,6],"o":2},"foggy":{"a":"Foggy","b":"1F301","j":["photo","mountain"],"k":[5,20],"o":2},"flag-cf":{"a":"Central African Republic Flag","b":"1F1E8-1F1EB","k":[1,15],"o":2},"baby":{"a":"Baby","b":"1F476","j":["child","boy","girl","toddler"],"k":[23,4],"o":2},"atom_symbol":{"a":"Atom Symbol","b":"269B-FE0F","c":"269B","j":["science","physics","chemistry"],"k":[53,48],"o":2},"fishing_pole_and_fish":{"a":"Fishing Pole and Fish","b":"1F3A3","j":["food","hobby","summer"],"k":[8,9],"o":2},"hedgehog":{"a":"Hedgehog","b":"1F994","k":[42,38],"o":5},"face_with_head_bandage":{"a":"Face with Head-Bandage","b":"1F915","j":["injured","clumsy","bandage","hurt"],"k":[37,28],"o":2},"mega":{"a":"Cheering Megaphone","b":"1F4E3","j":["sound","speaker","volume"],"k":[27,0],"o":2},"nauseated_face":{"a":"Nauseated Face","b":"1F922","j":["face","vomit","gross","green","sick","throw up","ill"],"k":[38,19],"o":4},"child":{"a":"Child","b":"1F9D2","k":[48,16],"o":5},"flag-cg":{"a":"Congo - Brazzaville Flag","b":"1F1E8-1F1EC","k":[1,16],"o":2},"bat":{"a":"Bat","b":"1F987","j":["animal","nature","blind","vampire"],"k":[42,25],"o":4},"diving_mask":{"a":"Diving Mask","b":"1F93F","k":[41,15],"o":12},"burrito":{"a":"Burrito","b":"1F32F","j":["food","mexican"],"k":[6,7],"o":2},"postal_horn":{"a":"Postal Horn","b":"1F4EF","j":["instrument","music"],"k":[27,12],"o":2},"night_with_stars":{"a":"Night with Stars","b":"1F303","j":["evening","city","downtown"],"k":[5,22],"o":2},"om_symbol":{"a":"Om Symbol","b":"1F549-FE0F","c":"1F549","k":[28,33],"o":2},"star_of_david":{"a":"Star of David","b":"2721-FE0F","c":"2721","j":["judaism"],"k":[55,15],"o":2},"boy":{"a":"Boy","b":"1F466","j":["man","male","guy","teenager"],"k":[14,26],"o":2},"bell":{"a":"Bell","b":"1F514","j":["sound","notification","christmas","xmas","chime"],"k":[27,48],"o":2},"flag-ch":{"a":"Switzerland Flag","b":"1F1E8-1F1ED","k":[1,17],"o":2},"running_shirt_with_sash":{"a":"Running Shirt with Sash","b":"1F3BD","j":["play","pageant"],"k":[8,35],"o":2},"stuffed_flatbread":{"a":"Stuffed Flatbread","b":"1F959","j":["food","flatbread","stuffed","gyro"],"k":[41,40],"o":4},"bear":{"a":"Bear Face","b":"1F43B","j":["animal","nature","wild"],"k":[12,31],"o":2},"cityscape":{"a":"Cityscape","b":"1F3D9-FE0F","c":"1F3D9","j":["photo","night life","urban"],"k":[10,44],"o":2},"face_vomiting":{"a":"Face with Open Mouth Vomiting","b":"1F92E","k":[38,48],"n":["face_with_open_mouth_vomiting"],"o":5},"wheel_of_dharma":{"a":"Wheel of Dharma","b":"2638-FE0F","c":"2638","j":["hinduism","buddhism","sikhism","jainism"],"k":[53,15],"o":2},"ski":{"a":"Ski and Ski Boot","b":"1F3BF","j":["sports","winter","cold","snow"],"k":[8,37],"o":2},"girl":{"a":"Girl","b":"1F467","j":["female","woman","teenager"],"k":[14,32],"o":2},"falafel":{"a":"Falafel","b":"1F9C6","k":[44,14],"o":12},"sneezing_face":{"a":"Sneezing Face","b":"1F927","j":["face","gesundheit","sneeze","sick","allergy"],"k":[38,41],"o":4},"no_bell":{"a":"Bell with Cancellation Stroke","b":"1F515","j":["sound","volume","mute","quiet","silent"],"k":[27,49],"o":2},"koala":{"a":"Koala","b":"1F428","j":["animal","nature"],"k":[12,12],"o":2},"sunrise_over_mountains":{"a":"Sunrise over Mountains","b":"1F304","j":["view","vacation","photo"],"k":[5,23],"o":2},"flag-ci":{"a":"C\xf4te D’ivoire Flag","b":"1F1E8-1F1EE","k":[1,18],"o":2},"sunrise":{"a":"Sunrise","b":"1F305","j":["morning","view","vacation","photo"],"k":[5,24],"o":2},"yin_yang":{"a":"Yin Yang","b":"262F-FE0F","c":"262F","j":["balance"],"k":[53,14],"o":2},"adult":{"a":"Adult","b":"1F9D1","k":[48,10],"o":5},"hot_face":{"a":"Overheated Face","b":"1F975","k":[42,10],"o":11},"musical_score":{"a":"Musical Score","b":"1F3BC","j":["treble","clef","compose"],"k":[8,34],"o":2},"sled":{"a":"Sled","b":"1F6F7","k":[36,56],"o":5},"egg":{"a":"Egg","b":"1F95A","j":["food","chicken","breakfast"],"k":[41,41],"o":4},"panda_face":{"a":"Panda Face","b":"1F43C","j":["animal","nature","panda"],"k":[12,32],"o":2},"flag-ck":{"a":"Cook Islands Flag","b":"1F1E8-1F1F0","k":[1,19],"o":2},"flag-cl":{"a":"Chile Flag","b":"1F1E8-1F1F1","k":[1,20],"o":2},"sloth":{"a":"Sloth","b":"1F9A5","k":[42,53],"o":12},"latin_cross":{"a":"Latin Cross","b":"271D-FE0F","c":"271D","j":["christianity"],"k":[55,14],"o":2},"curling_stone":{"a":"Curling Stone","b":"1F94C","k":[41,27],"o":5},"cold_face":{"a":"Freezing Face","b":"1F976","k":[42,11],"o":11},"fried_egg":{"a":"Cooking","b":"1F373","j":["food","breakfast","kitchen","egg"],"k":[7,18],"n":["cooking"],"o":2},"city_sunset":{"a":"Cityscape at Dusk","b":"1F306","j":["photo","evening","sky","buildings"],"k":[5,25],"o":2},"musical_note":{"a":"Musical Note","b":"1F3B5","j":["score","tone","sound"],"k":[8,27],"o":2},"flag-cm":{"a":"Cameroon Flag","b":"1F1E8-1F1F2","k":[1,21],"o":2},"notes":{"a":"Multiple Musical Notes","b":"1F3B6","j":["music","score"],"k":[8,28],"o":2},"woozy_face":{"a":"Face with Uneven Eyes and Wavy Mouth","b":"1F974","k":[42,9],"o":11},"dart":{"a":"Direct Hit","b":"1F3AF","j":["game","play","bar"],"k":[8,21],"o":2},"orthodox_cross":{"a":"Orthodox Cross","b":"2626-FE0F","c":"2626","j":["suppedaneum","religion"],"k":[53,11],"o":2},"shallow_pan_of_food":{"a":"Shallow Pan of Food","b":"1F958","j":["food","cooking","casserole","paella"],"k":[41,39],"o":4},"otter":{"a":"Otter","b":"1F9A6","k":[42,54],"o":12},"man":{"a":"Man","b":"1F468","j":["mustache","father","dad","guy","classy","sir","moustache"],"k":[17,22],"o":2},"city_sunrise":{"a":"Sunset over Buildings","b":"1F307","j":["photo","good morning","dawn"],"k":[5,26],"o":2},"bearded_person":{"a":"Bearded Person","b":"1F9D4","k":[48,28],"o":5},"skunk":{"a":"Skunk","b":"1F9A8","k":[42,56],"o":12},"stew":{"a":"Pot of Food","b":"1F372","j":["food","meat","soup"],"k":[7,17],"o":2},"cn":{"a":"China Flag","b":"1F1E8-1F1F3","j":["china","chinese","prc","flag","country","nation","banner"],"k":[1,22],"n":["flag-cn"],"o":2},"studio_microphone":{"a":"Studio Microphone","b":"1F399-FE0F","c":"1F399","j":["sing","recording","artist","talkshow"],"k":[8,1],"o":2},"star_and_crescent":{"a":"Star and Crescent","b":"262A-FE0F","c":"262A","j":["islam"],"k":[53,12],"o":2},"yo-yo":{"a":"Yo-Yo","b":"1FA80","k":[52,1],"o":12},"bridge_at_night":{"a":"Bridge at Night","b":"1F309","j":["photo","sanfrancisco"],"k":[5,28],"o":2},"dizzy_face":{"a":"Dizzy Face","b":"1F635","j":["spent","unconscious","xox","dizzy"],"k":[31,31],"o":2},"red_haired_man":{"a":"Red Haired Man","b":"1F468-200D-1F9B0","k":[16,23],"o":11},"kite":{"a":"Kite","b":"1FA81","k":[52,2],"o":12},"bowl_with_spoon":{"a":"Bowl with Spoon","b":"1F963","k":[41,50],"o":5},"flag-co":{"a":"Colombia Flag","b":"1F1E8-1F1F4","k":[1,23],"o":2},"peace_symbol":{"a":"Peace Symbol","b":"262E-FE0F","c":"262E","j":["hippie"],"k":[53,13],"o":2},"kangaroo":{"a":"Kangaroo","b":"1F998","k":[42,42],"o":11},"hotsprings":{"a":"Hot Springs","b":"2668-FE0F","c":"2668","j":["bath","warm","relax"],"k":[53,37],"o":2},"exploding_head":{"a":"Shocked Face with Exploding Head","b":"1F92F","k":[38,49],"n":["shocked_face_with_exploding_head"],"o":5},"level_slider":{"a":"Level Slider","b":"1F39A-FE0F","c":"1F39A","j":["scale"],"k":[8,2],"o":2},"badger":{"a":"Badger","b":"1F9A1","k":[42,51],"o":11},"8ball":{"a":"Billiards","b":"1F3B1","j":["pool","hobby","game","luck","magic"],"k":[8,23],"o":2},"curly_haired_man":{"a":"Curly Haired Man","b":"1F468-200D-1F9B1","k":[16,29],"o":11},"flag-cp":{"a":"Clipperton Island Flag","b":"1F1E8-1F1F5","k":[1,24],"o":2},"carousel_horse":{"a":"Carousel Horse","b":"1F3A0","j":["photo","carnival"],"k":[8,6],"o":2},"face_with_cowboy_hat":{"a":"Face with Cowboy Hat","b":"1F920","k":[38,17],"o":4},"menorah_with_nine_branches":{"a":"Menorah with Nine Branches","b":"1F54E","k":[28,38],"o":2},"green_salad":{"a":"Green Salad","b":"1F957","j":["food","healthy","lettuce"],"k":[41,38],"o":4},"control_knobs":{"a":"Control Knobs","b":"1F39B-FE0F","c":"1F39B","j":["dial"],"k":[8,3],"o":2},"popcorn":{"a":"Popcorn","b":"1F37F","j":["food","movie theater","films","snack"],"k":[7,30],"o":2},"six_pointed_star":{"a":"Six Pointed Star with Middle Dot","b":"1F52F","j":["purple-square","religion","jewish","hexagram"],"k":[28,18],"o":2},"feet":{"a":"Paw Prints","b":"1F43E","k":[12,34],"n":["paw_prints"],"o":2},"ferris_wheel":{"a":"Ferris Wheel","b":"1F3A1","j":["photo","carnival","londoneye"],"k":[8,7],"o":2},"microphone":{"a":"Microphone","b":"1F3A4","j":["sound","music","PA","sing","talkshow"],"k":[8,10],"o":2},"crystal_ball":{"a":"Crystal Ball","b":"1F52E","j":["disco","party","magic","circus","fortune_teller"],"k":[28,17],"o":2},"partying_face":{"a":"Face with Party Horn and Party Hat","b":"1F973","k":[42,8],"o":11},"flag-cr":{"a":"Costa Rica Flag","b":"1F1E8-1F1F7","k":[1,25],"o":2},"white_haired_man":{"a":"White Haired Man","b":"1F468-200D-1F9B3","k":[16,41],"o":11},"headphones":{"a":"Headphone","b":"1F3A7","j":["music","score","gadgets"],"k":[8,13],"o":2},"bald_man":{"a":"Bald Man","b":"1F468-200D-1F9B2","k":[16,35],"o":11},"sunglasses":{"a":"Smiling Face with Sunglasses","b":"1F60E","j":["face","cool","smile","summer","beach","sunglass"],"k":[30,49],"l":["8)"],"o":2},"butter":{"a":"Butter","b":"1F9C8","k":[44,16],"o":12},"roller_coaster":{"a":"Roller Coaster","b":"1F3A2","j":["carnival","playground","photo","fun"],"k":[8,8],"o":2},"turkey":{"a":"Turkey","b":"1F983","j":["animal","bird"],"k":[42,21],"o":2},"nazar_amulet":{"a":"Nazar Amulet","b":"1F9FF","k":[51,50],"o":11},"flag-cu":{"a":"Cuba Flag","b":"1F1E8-1F1FA","k":[1,26],"o":2},"aries":{"a":"Aries","b":"2648","j":["sign","purple-square","zodiac","astrology"],"k":[53,20],"o":2},"flag-cv":{"a":"Cape Verde Flag","b":"1F1E8-1F1FB","k":[1,27],"o":2},"barber":{"a":"Barber Pole","b":"1F488","j":["hair","salon","style"],"k":[25,18],"o":2},"taurus":{"a":"Taurus","b":"2649","j":["purple-square","sign","zodiac","astrology"],"k":[53,21],"o":2},"salt":{"a":"Salt Shaker","b":"1F9C2","k":[44,10],"o":11},"woman":{"a":"Woman","b":"1F469","j":["female","girls","lady"],"k":[20,9],"o":2},"video_game":{"a":"Video Game","b":"1F3AE","j":["play","console","PS4","controller"],"k":[8,20],"o":2},"chicken":{"a":"Chicken","b":"1F414","j":["animal","cluck","nature","bird"],"k":[11,48],"o":2},"radio":{"a":"Radio","b":"1F4FB","j":["communication","music","podcast","program"],"k":[27,24],"o":2},"nerd_face":{"a":"Nerd Face","b":"1F913","j":["face","nerdy","geek","dork"],"k":[37,26],"o":2},"red_haired_woman":{"a":"Red Haired Woman","b":"1F469-200D-1F9B0","k":[19,8],"o":11},"circus_tent":{"a":"Circus Tent","b":"1F3AA","j":["festival","carnival","party"],"k":[8,16],"o":2},"face_with_monocle":{"a":"Face with Monocle","b":"1F9D0","k":[45,16],"o":5},"canned_food":{"a":"Canned Food","b":"1F96B","k":[42,1],"o":5},"flag-cw":{"a":"Cura\xe7ao Flag","b":"1F1E8-1F1FC","k":[1,28],"o":2},"gemini":{"a":"Gemini","b":"264A","j":["sign","zodiac","purple-square","astrology"],"k":[53,22],"o":2},"saxophone":{"a":"Saxophone","b":"1F3B7","j":["music","instrument","jazz","blues"],"k":[8,29],"o":2},"rooster":{"a":"Rooster","b":"1F413","j":["animal","nature","chicken"],"k":[11,47],"o":2},"joystick":{"a":"Joystick","b":"1F579-FE0F","c":"1F579","j":["game","play"],"k":[29,36],"o":2},"guitar":{"a":"Guitar","b":"1F3B8","j":["music","instrument"],"k":[8,30],"o":2},"slot_machine":{"a":"Slot Machine","b":"1F3B0","j":["bet","gamble","vegas","fruit machine","luck","casino"],"k":[8,22],"o":2},"bento":{"a":"Bento Box","b":"1F371","j":["food","japanese","box"],"k":[7,16],"o":2},"steam_locomotive":{"a":"Steam Locomotive","b":"1F682","j":["transportation","vehicle","train"],"k":[34,1],"o":2},"confused":{"a":"Confused Face","b":"1F615","j":["face","indifference","huh","weird","hmmm",":/"],"k":[30,56],"l":[":\\\\",":-\\\\",":/",":-/"],"o":2},"flag-cx":{"a":"Christmas Island Flag","b":"1F1E8-1F1FD","k":[1,29],"o":2},"hatching_chick":{"a":"Hatching Chick","b":"1F423","j":["animal","chicken","egg","born","baby","bird"],"k":[12,7],"o":2},"cancer":{"a":"Cancer","b":"264B","j":["sign","zodiac","purple-square","astrology"],"k":[53,23],"o":2},"flag-cy":{"a":"Cyprus Flag","b":"1F1E8-1F1FE","k":[1,30],"o":2},"worried":{"a":"Worried Face","b":"1F61F","j":["face","concern","nervous",":("],"k":[31,9],"o":2},"railway_car":{"a":"Railway Car","b":"1F683","j":["transportation","vehicle"],"k":[34,2],"o":2},"leo":{"a":"Leo","b":"264C","j":["sign","purple-square","zodiac","astrology"],"k":[53,24],"o":2},"curly_haired_woman":{"a":"Curly Haired Woman","b":"1F469-200D-1F9B1","k":[19,14],"o":11},"baby_chick":{"a":"Baby Chick","b":"1F424","j":["animal","chicken","bird"],"k":[12,8],"o":2},"musical_keyboard":{"a":"Musical Keyboard","b":"1F3B9","j":["piano","instrument","compose"],"k":[8,31],"o":2},"game_die":{"a":"Game Die","b":"1F3B2","j":["dice","random","tabletop","play","luck"],"k":[8,24],"o":2},"rice_cracker":{"a":"Rice Cracker","b":"1F358","j":["food","japanese"],"k":[6,48],"o":2},"virgo":{"a":"Virgo","b":"264D","j":["sign","zodiac","purple-square","astrology"],"k":[53,25],"o":2},"flag-cz":{"a":"Czechia Flag","b":"1F1E8-1F1FF","k":[1,31],"o":2},"rice_ball":{"a":"Rice Ball","b":"1F359","j":["food","japanese"],"k":[6,49],"o":2},"hatched_chick":{"a":"Front-Facing Baby Chick","b":"1F425","j":["animal","chicken","baby","bird"],"k":[12,9],"o":2},"jigsaw":{"a":"Jigsaw Puzzle Piece","b":"1F9E9","k":[51,28],"o":11},"trumpet":{"a":"Trumpet","b":"1F3BA","j":["music","brass"],"k":[8,32],"o":2},"slightly_frowning_face":{"a":"Slightly Frowning Face","b":"1F641","j":["face","frowning","disappointed","sad","upset"],"k":[31,43],"o":2},"bullettrain_side":{"a":"High-Speed Train","b":"1F684","j":["transportation","vehicle"],"k":[34,3],"o":2},"libra":{"a":"Libra","b":"264E","j":["sign","purple-square","zodiac","astrology"],"k":[53,26],"o":2},"de":{"a":"Germany Flag","b":"1F1E9-1F1EA","j":["german","nation","flag","country","banner"],"k":[1,32],"n":["flag-de"],"o":2},"rice":{"a":"Cooked Rice","b":"1F35A","j":["food","china","asian"],"k":[6,50],"o":2},"violin":{"a":"Violin","b":"1F3BB","j":["music","instrument","orchestra","symphony"],"k":[8,33],"o":2},"white_haired_woman":{"a":"White Haired Woman","b":"1F469-200D-1F9B3","k":[19,26],"o":11},"bird":{"a":"Bird","b":"1F426","j":["animal","nature","fly","tweet","spring"],"k":[12,10],"o":2},"white_frowning_face":{"a":"White Frowning Face","b":"2639-FE0F","c":"2639","k":[53,16],"o":2},"bullettrain_front":{"a":"High-Speed Train with Bullet Nose","b":"1F685","j":["transportation","vehicle","speed","fast","public","travel"],"k":[34,4],"o":2},"teddy_bear":{"a":"Teddy Bear","b":"1F9F8","k":[51,43],"o":11},"spades":{"a":"Black Spade Suit","b":"2660-FE0F","c":"2660","j":["poker","cards","suits","magic"],"k":[53,33],"o":2},"banjo":{"a":"Banjo","b":"1FA95","k":[52,9],"o":12},"train2":{"a":"Train","b":"1F686","j":["transportation","vehicle"],"k":[34,5],"o":2},"scorpius":{"a":"Scorpius","b":"264F","j":["sign","zodiac","purple-square","astrology","scorpio"],"k":[53,27],"o":2},"curry":{"a":"Curry and Rice","b":"1F35B","j":["food","spicy","hot","indian"],"k":[6,51],"o":2},"open_mouth":{"a":"Face with Open Mouth","b":"1F62E","j":["face","surprise","impressed","wow","whoa",":O"],"k":[31,24],"l":[":o",":-o",":O",":-O"],"o":2},"flag-dg":{"a":"Diego Garcia Flag","b":"1F1E9-1F1EC","k":[1,33],"o":2},"penguin":{"a":"Penguin","b":"1F427","j":["animal","nature"],"k":[12,11],"o":2},"hearts":{"a":"Black Heart Suit","b":"2665-FE0F","c":"2665","j":["poker","cards","magic","suits"],"k":[53,35],"o":2},"ramen":{"a":"Steaming Bowl","b":"1F35C","j":["food","japanese","noodle","chopsticks"],"k":[6,52],"o":2},"sagittarius":{"a":"Sagittarius","b":"2650","j":["sign","zodiac","purple-square","astrology"],"k":[53,28],"o":2},"bald_woman":{"a":"Bald Woman","b":"1F469-200D-1F9B2","k":[19,20],"o":11},"dove_of_peace":{"a":"Dove of Peace","b":"1F54A-FE0F","c":"1F54A","k":[28,34],"o":2},"hushed":{"a":"Hushed Face","b":"1F62F","j":["face","woo","shh"],"k":[31,25],"o":2},"metro":{"a":"Metro","b":"1F687","j":["transportation","blue-square","mrt","underground","tube"],"k":[34,6],"o":2},"flag-dj":{"a":"Djibouti Flag","b":"1F1E9-1F1EF","k":[1,34],"o":2},"drum_with_drumsticks":{"a":"Drum with Drumsticks","b":"1F941","k":[41,17],"o":4},"spaghetti":{"a":"Spaghetti","b":"1F35D","j":["food","italian","noodle"],"k":[6,53],"o":2},"eagle":{"a":"Eagle","b":"1F985","j":["animal","nature","bird"],"k":[42,23],"o":4},"astonished":{"a":"Astonished Face","b":"1F632","j":["face","xox","surprised","poisoned"],"k":[31,28],"o":2},"capricorn":{"a":"Capricorn","b":"2651","j":["sign","zodiac","purple-square","astrology"],"k":[53,29],"o":2},"light_rail":{"a":"Light Rail","b":"1F688","j":["transportation","vehicle"],"k":[34,7],"o":2},"flag-dk":{"a":"Denmark Flag","b":"1F1E9-1F1F0","k":[1,35],"o":2},"iphone":{"a":"Mobile Phone","b":"1F4F1","j":["technology","apple","gadgets","dial"],"k":[27,14],"o":2},"diamonds":{"a":"Black Diamond Suit","b":"2666-FE0F","c":"2666","j":["poker","cards","magic","suits"],"k":[53,36],"o":2},"clubs":{"a":"Black Club Suit","b":"2663-FE0F","c":"2663","j":["poker","cards","magic","suits"],"k":[53,34],"o":2},"aquarius":{"a":"Aquarius","b":"2652","j":["sign","purple-square","zodiac","astrology"],"k":[53,30],"o":2},"sweet_potato":{"a":"Roasted Sweet Potato","b":"1F360","j":["food","nature"],"k":[6,56],"o":2},"flag-dm":{"a":"Dominica Flag","b":"1F1E9-1F1F2","k":[1,36],"o":2},"duck":{"a":"Duck","b":"1F986","j":["animal","nature","bird","mallard"],"k":[42,24],"o":4},"calling":{"a":"Mobile Phone with Rightwards Arrow at Left","b":"1F4F2","j":["iphone","incoming"],"k":[27,15],"o":2},"station":{"a":"Station","b":"1F689","j":["transportation","vehicle","public"],"k":[34,8],"o":2},"blond-haired-woman":{"a":"Blond Haired Woman","b":"1F471-200D-2640-FE0F","c":"1F471-200D-2640","k":[22,7],"o":4},"flushed":{"a":"Flushed Face","b":"1F633","j":["face","blush","shy","flattered"],"k":[31,29],"o":2},"pisces":{"a":"Pisces","b":"2653","j":["purple-square","sign","zodiac","astrology"],"k":[53,31],"o":2},"chess_pawn":{"a":"Chess Pawn","b":"265F-FE0F","c":"265F","k":[53,32],"o":11},"blond-haired-man":{"obsoletes":"1F471","a":"Blond Haired Man","b":"1F471-200D-2642-FE0F","c":"1F471-200D-2642","k":[22,13],"o":4},"phone":{"a":"Black Telephone","b":"260E-FE0F","c":"260E","j":["technology","communication","dial","telephone"],"k":[52,54],"n":["telephone"],"o":2},"oden":{"a":"Oden","b":"1F362","j":["food","japanese"],"k":[7,1],"o":2},"flag-do":{"a":"Dominican Republic Flag","b":"1F1E9-1F1F4","k":[1,37],"o":2},"tram":{"a":"Tram","b":"1F68A","j":["transportation","vehicle"],"k":[34,9],"o":2},"swan":{"a":"Swan","b":"1F9A2","k":[42,52],"o":11},"pleading_face":{"a":"Face with Pleading Eyes","b":"1F97A","k":[42,12],"o":11},"flag-dz":{"a":"Algeria Flag","b":"1F1E9-1F1FF","k":[1,38],"o":2},"monorail":{"a":"Monorail","b":"1F69D","j":["transportation","vehicle"],"k":[34,28],"o":2},"owl":{"a":"Owl","b":"1F989","j":["animal","nature","bird","hoot"],"k":[42,27],"o":4},"sushi":{"a":"Sushi","b":"1F363","j":["food","fish","japanese","rice"],"k":[7,2],"o":2},"telephone_receiver":{"a":"Telephone Receiver","b":"1F4DE","j":["technology","communication","dial"],"k":[26,52],"o":2},"black_joker":{"a":"Playing Card Black Joker","b":"1F0CF","j":["poker","cards","game","play","magic"],"k":[0,15],"o":2},"ophiuchus":{"a":"Ophiuchus","b":"26CE","j":["sign","purple-square","constellation","astrology"],"k":[54,4],"o":2},"frowning":{"a":"Frowning Face with Open Mouth","b":"1F626","j":["face","aw","what"],"k":[31,16],"o":2},"older_adult":{"a":"Older Adult","b":"1F9D3","k":[48,22],"o":5},"flag-ea":{"a":"Ceuta & Melilla Flag","b":"1F1EA-1F1E6","k":[1,39],"o":2},"flamingo":{"a":"Flamingo","b":"1F9A9","k":[43,0],"o":12},"pager":{"a":"Pager","b":"1F4DF","j":["bbcall","oldschool","90s"],"k":[26,53],"o":2},"mountain_railway":{"a":"Mountain Railway","b":"1F69E","j":["transportation","vehicle"],"k":[34,29],"o":2},"mahjong":{"a":"Mahjong Tile Red Dragon","b":"1F004","j":["game","play","chinese","kanji"],"k":[0,14],"o":2},"older_man":{"a":"Older Man","b":"1F474","j":["human","male","men","old","elder","senior"],"k":[22,49],"o":2},"twisted_rightwards_arrows":{"a":"Twisted Rightwards Arrows","b":"1F500","j":["blue-square","shuffle","music","random"],"k":[27,28],"o":2},"fried_shrimp":{"a":"Fried Shrimp","b":"1F364","j":["food","animal","appetizer","summer"],"k":[7,3],"o":2},"anguished":{"a":"Anguished Face","b":"1F627","j":["face","stunned","nervous"],"k":[31,17],"l":["D:"],"o":2},"repeat":{"a":"Clockwise Rightwards and Leftwards Open Circle Arrows","b":"1F501","j":["loop","record"],"k":[27,29],"o":2},"fish_cake":{"a":"Fish Cake with Swirl Design","b":"1F365","j":["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],"k":[7,4],"o":2},"fax":{"a":"Fax Machine","b":"1F4E0","j":["communication","technology"],"k":[26,54],"o":2},"older_woman":{"a":"Older Woman","b":"1F475","j":["human","female","women","lady","old","elder","senior"],"k":[22,55],"o":2},"flag-ec":{"a":"Ecuador Flag","b":"1F1EA-1F1E8","k":[1,40],"o":2},"peacock":{"a":"Peacock","b":"1F99A","k":[42,44],"o":11},"fearful":{"a":"Fearful Face","b":"1F628","j":["face","scared","terrified","nervous","oops","huh"],"k":[31,18],"o":2},"train":{"a":"Tram Car","b":"1F68B","j":["transportation","vehicle","carriage","public","travel"],"k":[34,10],"o":2},"flower_playing_cards":{"a":"Flower Playing Cards","b":"1F3B4","j":["game","sunset","red"],"k":[8,26],"o":2},"repeat_one":{"a":"Clockwise Rightwards and Leftwards Open Circle Arrows with Circled One Overlay","b":"1F502","j":["blue-square","loop"],"k":[27,30],"o":2},"moon_cake":{"a":"Moon Cake","b":"1F96E","k":[42,4],"o":11},"performing_arts":{"a":"Performing Arts","b":"1F3AD","j":["acting","theater","drama"],"k":[8,19],"o":2},"cold_sweat":{"a":"Face with Open Mouth and Cold Sweat","b":"1F630","j":["face","nervous","sweat"],"k":[31,26],"o":2},"flag-ee":{"a":"Estonia Flag","b":"1F1EA-1F1EA","k":[1,41],"o":2},"battery":{"a":"Battery","b":"1F50B","j":["power","energy","sustain"],"k":[27,39],"o":2},"parrot":{"a":"Parrot","b":"1F99C","k":[42,46],"o":11},"bus":{"a":"Bus","b":"1F68C","j":["car","vehicle","transportation"],"k":[34,11],"o":2},"flag-eg":{"a":"Egypt Flag","b":"1F1EA-1F1EC","k":[1,42],"o":2},"arrow_forward":{"a":"Black Right-Pointing Triangle","b":"25B6-FE0F","c":"25B6","j":["blue-square","right","direction","play"],"k":[52,43],"o":2},"man-frowning":{"a":"Man Frowning","b":"1F64D-200D-2642-FE0F","c":"1F64D-200D-2642","k":[33,20],"o":4},"disappointed_relieved":{"a":"Disappointed but Relieved Face","b":"1F625","j":["face","phew","sweat","nervous"],"k":[31,15],"o":2},"electric_plug":{"a":"Electric Plug","b":"1F50C","j":["charger","power"],"k":[27,40],"o":2},"frame_with_picture":{"a":"Frame with Picture","b":"1F5BC-FE0F","c":"1F5BC","k":[30,14],"o":2},"oncoming_bus":{"a":"Oncoming Bus","b":"1F68D","j":["vehicle","transportation"],"k":[34,12],"o":2},"dango":{"a":"Dango","b":"1F361","j":["food","dessert","sweet","japanese","barbecue","meat"],"k":[7,0],"o":2},"frog":{"a":"Frog Face","b":"1F438","j":["animal","nature","croak","toad"],"k":[12,28],"o":2},"computer":{"a":"Personal Computer","b":"1F4BB","j":["technology","laptop","screen","display","monitor"],"k":[26,17],"o":2},"art":{"a":"Artist Palette","b":"1F3A8","j":["design","paint","draw","colors"],"k":[8,14],"o":2},"flag-eh":{"a":"Western Sahara Flag","b":"1F1EA-1F1ED","k":[1,43],"o":2},"fast_forward":{"a":"Black Right-Pointing Double Triangle","b":"23E9","j":["blue-square","play","speed","continue"],"k":[52,26],"o":2},"cry":{"a":"Crying Face","b":"1F622","j":["face","tears","sad","depressed","upset",":\'("],"k":[31,12],"l":[":\'("],"m":":\'(","o":2},"woman-frowning":{"obsoletes":"1F64D","a":"Woman Frowning","b":"1F64D-200D-2640-FE0F","c":"1F64D-200D-2640","k":[33,14],"o":4},"trolleybus":{"a":"Trolleybus","b":"1F68E","j":["bart","transportation","vehicle"],"k":[34,13],"o":2},"crocodile":{"a":"Crocodile","b":"1F40A","j":["animal","nature","reptile","lizard","alligator"],"k":[11,38],"o":2},"dumpling":{"a":"Dumpling","b":"1F95F","k":[41,46],"o":5},"black_right_pointing_double_triangle_with_vertical_bar":{"a":"Black Right Pointing Double Triangle with Vertical Bar","b":"23ED-FE0F","c":"23ED","k":[52,30],"o":2},"desktop_computer":{"a":"Desktop Computer","b":"1F5A5-FE0F","c":"1F5A5","j":["technology","computing","screen"],"k":[30,10],"o":2},"turtle":{"a":"Turtle","b":"1F422","j":["animal","slow","nature","tortoise"],"k":[12,6],"o":2},"sob":{"a":"Loudly Crying Face","b":"1F62D","j":["face","cry","tears","sad","upset","depressed"],"k":[31,23],"m":":\'(","o":2},"flag-er":{"a":"Eritrea Flag","b":"1F1EA-1F1F7","k":[1,44],"o":2},"thread":{"a":"Spool of Thread","b":"1F9F5","k":[51,40],"o":11},"minibus":{"a":"Minibus","b":"1F690","j":["vehicle","car","transportation"],"k":[34,15],"o":2},"fortune_cookie":{"a":"Fortune Cookie","b":"1F960","k":[41,47],"o":5},"yarn":{"a":"Ball of Yarn","b":"1F9F6","k":[51,41],"o":11},"takeout_box":{"a":"Takeout Box","b":"1F961","k":[41,48],"o":5},"man-pouting":{"a":"Man Pouting","b":"1F64E-200D-2642-FE0F","c":"1F64E-200D-2642","k":[33,38],"o":4},"printer":{"a":"Printer","b":"1F5A8-FE0F","c":"1F5A8","j":["paper","ink"],"k":[30,11],"o":2},"scream":{"a":"Face Screaming in Fear","b":"1F631","j":["face","munch","scared","omg"],"k":[31,27],"o":2},"es":{"a":"Spain Flag","b":"1F1EA-1F1F8","j":["spain","flag","nation","country","banner"],"k":[1,45],"n":["flag-es"],"o":2},"ambulance":{"a":"Ambulance","b":"1F691","j":["health","911","hospital"],"k":[34,16],"o":2},"black_right_pointing_triangle_with_double_vertical_bar":{"a":"Black Right Pointing Triangle with Double Vertical Bar","b":"23EF-FE0F","c":"23EF","k":[52,32],"o":2},"lizard":{"a":"Lizard","b":"1F98E","j":["animal","nature","reptile"],"k":[42,32],"o":4},"flag-et":{"a":"Ethiopia Flag","b":"1F1EA-1F1F9","k":[1,46],"o":2},"keyboard":{"a":"Keyboard","b":"2328-FE0F","c":"2328","j":["technology","computer","type","input","text"],"k":[52,24],"o":2},"crab":{"a":"Crab","b":"1F980","j":["animal","crustacean"],"k":[42,18],"o":2},"confounded":{"a":"Confounded Face","b":"1F616","j":["face","confused","sick","unwell","oops",":S"],"k":[31,0],"o":2},"snake":{"a":"Snake","b":"1F40D","j":["animal","evil","nature","hiss","python"],"k":[11,41],"o":2},"woman-pouting":{"obsoletes":"1F64E","a":"Woman Pouting","b":"1F64E-200D-2640-FE0F","c":"1F64E-200D-2640","k":[33,32],"o":4},"arrow_backward":{"a":"Black Left-Pointing Triangle","b":"25C0-FE0F","c":"25C0","j":["blue-square","left","direction"],"k":[52,44],"o":2},"fire_engine":{"a":"Fire Engine","b":"1F692","j":["transportation","cars","vehicle"],"k":[34,17],"o":2},"rewind":{"a":"Black Left-Pointing Double Triangle","b":"23EA","j":["play","blue-square"],"k":[52,27],"o":2},"three_button_mouse":{"a":"Three Button Mouse","b":"1F5B1-FE0F","c":"1F5B1","k":[30,12],"o":2},"police_car":{"a":"Police Car","b":"1F693","j":["vehicle","cars","transportation","law","legal","enforcement"],"k":[34,18],"o":2},"dragon_face":{"a":"Dragon Face","b":"1F432","j":["animal","myth","nature","chinese","green"],"k":[12,22],"o":2},"persevere":{"a":"Persevering Face","b":"1F623","j":["face","sick","no","upset","oops"],"k":[31,13],"o":2},"lobster":{"a":"Lobster","b":"1F99E","k":[42,48],"o":11},"flag-eu":{"a":"European Union Flag","b":"1F1EA-1F1FA","k":[1,47],"o":2},"disappointed":{"a":"Disappointed Face","b":"1F61E","j":["face","sad","upset","depressed",":("],"k":[31,8],"l":["):",":(",":-("],"m":":(","o":2},"shrimp":{"a":"Shrimp","b":"1F990","j":["animal","ocean","nature","seafood"],"k":[42,34],"o":4},"dragon":{"a":"Dragon","b":"1F409","j":["animal","myth","nature","chinese","green"],"k":[11,37],"o":2},"man-gesturing-no":{"a":"Man Gesturing No","b":"1F645-200D-2642-FE0F","c":"1F645-200D-2642","k":[31,53],"o":4},"flag-fi":{"a":"Finland Flag","b":"1F1EB-1F1EE","k":[1,48],"o":2},"trackball":{"a":"Trackball","b":"1F5B2-FE0F","c":"1F5B2","j":["technology","trackpad"],"k":[30,13],"o":2},"black_left_pointing_double_triangle_with_vertical_bar":{"a":"Black Left Pointing Double Triangle with Vertical Bar","b":"23EE-FE0F","c":"23EE","k":[52,31],"o":2},"oncoming_police_car":{"a":"Oncoming Police Car","b":"1F694","j":["vehicle","law","legal","enforcement","911"],"k":[34,19],"o":2},"minidisc":{"a":"Minidisc","b":"1F4BD","j":["technology","record","data","disk","90s"],"k":[26,19],"o":2},"sweat":{"a":"Face with Cold Sweat","b":"1F613","j":["face","hot","sad","tired","exercise"],"k":[30,54],"o":2},"squid":{"a":"Squid","b":"1F991","j":["animal","nature","ocean","sea"],"k":[42,35],"o":4},"sauropod":{"a":"Sauropod","b":"1F995","k":[42,39],"o":5},"arrow_up_small":{"a":"Up-Pointing Small Red Triangle","b":"1F53C","j":["blue-square","triangle","direction","point","forward","top"],"k":[28,31],"o":2},"flag-fj":{"a":"Fiji Flag","b":"1F1EB-1F1EF","k":[1,49],"o":2},"woman-gesturing-no":{"obsoletes":"1F645","a":"Woman Gesturing No","b":"1F645-200D-2640-FE0F","c":"1F645-200D-2640","k":[31,47],"o":4},"taxi":{"a":"Taxi","b":"1F695","j":["uber","vehicle","cars","transportation"],"k":[34,20],"o":2},"flag-fk":{"a":"Falkland Islands Flag","b":"1F1EB-1F1F0","k":[1,50],"o":2},"floppy_disk":{"a":"Floppy Disk","b":"1F4BE","j":["oldschool","technology","save","90s","80s"],"k":[26,20],"o":2},"t-rex":{"a":"T-Rex","b":"1F996","k":[42,40],"o":5},"oyster":{"a":"Oyster","b":"1F9AA","k":[43,1],"o":12},"arrow_double_up":{"a":"Black Up-Pointing Double Triangle","b":"23EB","j":["blue-square","direction","top"],"k":[52,28],"o":2},"oncoming_taxi":{"a":"Oncoming Taxi","b":"1F696","j":["vehicle","cars","uber"],"k":[34,21],"o":2},"weary":{"a":"Weary Face","b":"1F629","j":["face","tired","sleepy","sad","frustrated","upset"],"k":[31,19],"o":2},"man-gesturing-ok":{"a":"Man Gesturing Ok","b":"1F646-200D-2642-FE0F","c":"1F646-200D-2642","k":[32,14],"o":4},"arrow_down_small":{"a":"Down-Pointing Small Red Triangle","b":"1F53D","j":["blue-square","direction","bottom"],"k":[28,32],"o":2},"tired_face":{"a":"Tired Face","b":"1F62B","j":["sick","whine","upset","frustrated"],"k":[31,21],"o":2},"car":{"a":"Automobile","b":"1F697","k":[34,22],"n":["red_car"],"o":2},"icecream":{"a":"Soft Ice Cream","b":"1F366","j":["food","hot","dessert","summer"],"k":[7,5],"o":2},"cd":{"a":"Optical Disc","b":"1F4BF","j":["technology","dvd","disk","disc","90s"],"k":[26,21],"o":2},"whale":{"a":"Spouting Whale","b":"1F433","j":["animal","nature","sea","ocean"],"k":[12,23],"o":2},"flag-fm":{"a":"Micronesia Flag","b":"1F1EB-1F1F2","k":[1,51],"o":2},"oncoming_automobile":{"a":"Oncoming Automobile","b":"1F698","j":["car","vehicle","transportation"],"k":[34,23],"o":2},"arrow_double_down":{"a":"Black Down-Pointing Double Triangle","b":"23EC","j":["blue-square","direction","bottom"],"k":[52,29],"o":2},"woman-gesturing-ok":{"obsoletes":"1F646","a":"Woman Gesturing Ok","b":"1F646-200D-2640-FE0F","c":"1F646-200D-2640","k":[32,8],"o":4},"yawning_face":{"a":"Yawning Face","b":"1F971","k":[42,7],"o":12},"dvd":{"a":"Dvd","b":"1F4C0","j":["cd","disk","disc"],"k":[26,22],"o":2},"whale2":{"a":"Whale","b":"1F40B","j":["animal","nature","sea","ocean"],"k":[11,39],"o":2},"flag-fo":{"a":"Faroe Islands Flag","b":"1F1EB-1F1F4","k":[1,52],"o":2},"shaved_ice":{"a":"Shaved Ice","b":"1F367","j":["hot","dessert","summer"],"k":[7,6],"o":2},"double_vertical_bar":{"a":"Double Vertical Bar","b":"23F8-FE0F","c":"23F8","k":[52,37],"o":2},"dolphin":{"a":"Dolphin","b":"1F42C","j":["animal","nature","fish","sea","ocean","flipper","fins","beach"],"k":[12,16],"n":["flipper"],"o":2},"blue_car":{"a":"Recreational Vehicle","b":"1F699","j":["transportation","vehicle"],"k":[34,24],"o":2},"ice_cream":{"a":"Ice Cream","b":"1F368","j":["food","hot","dessert"],"k":[7,7],"o":2},"fr":{"a":"France Flag","b":"1F1EB-1F1F7","j":["banner","flag","nation","france","french","country"],"k":[1,53],"n":["flag-fr"],"o":2},"triumph":{"a":"Face with Look of Triumph","b":"1F624","j":["face","gas","phew","proud","pride"],"k":[31,14],"o":2},"abacus":{"a":"Abacus","b":"1F9EE","k":[51,33],"o":11},"man-tipping-hand":{"a":"Man Tipping Hand","b":"1F481-200D-2642-FE0F","c":"1F481-200D-2642","k":[23,53],"o":4},"doughnut":{"a":"Doughnut","b":"1F369","j":["food","dessert","snack","sweet","donut"],"k":[7,8],"o":2},"fish":{"a":"Fish","b":"1F41F","j":["animal","food","nature"],"k":[12,3],"o":2},"truck":{"a":"Delivery Truck","b":"1F69A","j":["cars","transportation"],"k":[34,25],"o":2},"movie_camera":{"a":"Movie Camera","b":"1F3A5","j":["film","record"],"k":[8,11],"o":2},"flag-ga":{"a":"Gabon Flag","b":"1F1EC-1F1E6","k":[1,54],"o":2},"rage":{"a":"Pouting Face","b":"1F621","j":["angry","mad","hate","despise"],"k":[31,11],"o":2},"black_square_for_stop":{"a":"Black Square for Stop","b":"23F9-FE0F","c":"23F9","k":[52,38],"o":2},"articulated_lorry":{"a":"Articulated Lorry","b":"1F69B","j":["vehicle","cars","transportation","express"],"k":[34,26],"o":2},"angry":{"a":"Angry Face","b":"1F620","j":["mad","face","annoyed","frustrated"],"k":[31,10],"l":[">:(",">:-("],"o":2},"cookie":{"a":"Cookie","b":"1F36A","j":["food","snack","oreo","chocolate","sweet","dessert"],"k":[7,9],"o":2},"gb":{"a":"United Kingdom Flag","b":"1F1EC-1F1E7","k":[1,55],"n":["uk","flag-gb"],"o":2},"tropical_fish":{"a":"Tropical Fish","b":"1F420","j":["animal","swim","ocean","beach","nemo"],"k":[12,4],"o":2},"woman-tipping-hand":{"obsoletes":"1F481","a":"Woman Tipping Hand","b":"1F481-200D-2640-FE0F","c":"1F481-200D-2640","k":[23,47],"o":4},"black_circle_for_record":{"a":"Black Circle for Record","b":"23FA-FE0F","c":"23FA","k":[52,39],"o":2},"film_frames":{"a":"Film Frames","b":"1F39E-FE0F","c":"1F39E","k":[8,4],"o":2},"film_projector":{"a":"Film Projector","b":"1F4FD-FE0F","c":"1F4FD","j":["video","tape","record","movie"],"k":[27,26],"o":2},"flag-gd":{"a":"Grenada Flag","b":"1F1EC-1F1E9","k":[1,56],"o":2},"blowfish":{"a":"Blowfish","b":"1F421","j":["animal","nature","food","sea","ocean"],"k":[12,5],"o":2},"face_with_symbols_on_mouth":{"a":"Serious Face with Symbols Covering Mouth","b":"1F92C","k":[38,46],"n":["serious_face_with_symbols_covering_mouth"],"o":5},"birthday":{"a":"Birthday Cake","b":"1F382","j":["food","dessert","cake"],"k":[7,33],"o":2},"eject":{"a":"Eject","b":"23CF-FE0F","c":"23CF","k":[52,25],"o":2},"tractor":{"a":"Tractor","b":"1F69C","j":["vehicle","car","farming","agriculture"],"k":[34,27],"o":2},"flag-ge":{"a":"Georgia Flag","b":"1F1EC-1F1EA","k":[2,0],"o":2},"smiling_imp":{"a":"Smiling Face with Horns","b":"1F608","j":["devil","horns"],"k":[30,43],"o":2},"racing_car":{"a":"Racing Car","b":"1F3CE-FE0F","c":"1F3CE","j":["sports","race","fast","formula","f1"],"k":[10,33],"o":2},"cinema":{"a":"Cinema","b":"1F3A6","j":["blue-square","record","film","movie","curtain","stage","theater"],"k":[8,12],"o":2},"clapper":{"a":"Clapper Board","b":"1F3AC","j":["movie","film","record"],"k":[8,18],"o":2},"shark":{"a":"Shark","b":"1F988","j":["animal","nature","fish","sea","ocean","jaws","fins","beach"],"k":[42,26],"o":4},"cake":{"a":"Shortcake","b":"1F370","j":["food","dessert"],"k":[7,15],"o":2},"man-raising-hand":{"a":"Man Raising Hand","b":"1F64B-200D-2642-FE0F","c":"1F64B-200D-2642","k":[32,53],"o":4},"octopus":{"a":"Octopus","b":"1F419","j":["animal","creature","ocean","sea","nature","beach"],"k":[11,54],"o":2},"woman-raising-hand":{"obsoletes":"1F64B","a":"Woman Raising Hand","b":"1F64B-200D-2640-FE0F","c":"1F64B-200D-2640","k":[32,47],"o":4},"flag-gf":{"a":"French Guiana Flag","b":"1F1EC-1F1EB","k":[2,1],"o":2},"tv":{"a":"Television","b":"1F4FA","j":["technology","program","oldschool","show","television"],"k":[27,23],"o":2},"imp":{"a":"Imp","b":"1F47F","j":["devil","angry","horns"],"k":[23,45],"o":2},"cupcake":{"a":"Cupcake","b":"1F9C1","k":[44,9],"o":11},"racing_motorcycle":{"a":"Racing Motorcycle","b":"1F3CD-FE0F","c":"1F3CD","k":[10,32],"o":2},"low_brightness":{"a":"Low Brightness Symbol","b":"1F505","j":["sun","afternoon","warm","summer"],"k":[27,33],"o":2},"shell":{"a":"Spiral Shell","b":"1F41A","j":["nature","sea","beach"],"k":[11,55],"o":2},"flag-gg":{"a":"Guernsey Flag","b":"1F1EC-1F1EC","k":[2,2],"o":2},"high_brightness":{"a":"High Brightness Symbol","b":"1F506","j":["sun","light"],"k":[27,34],"o":2},"deaf_person":{"a":"Deaf Person","b":"1F9CF","k":[45,10],"o":12},"skull":{"a":"Skull","b":"1F480","j":["dead","skeleton","creepy","death"],"k":[23,46],"o":2},"motor_scooter":{"a":"Motor Scooter","b":"1F6F5","j":["vehicle","vespa","sasha"],"k":[36,54],"o":4},"camera":{"a":"Camera","b":"1F4F7","j":["gadgets","photography"],"k":[27,20],"o":2},"pie":{"a":"Pie","b":"1F967","k":[41,54],"o":5},"flag-gh":{"a":"Ghana Flag","b":"1F1EC-1F1ED","k":[2,3],"o":2},"deaf_man":{"a":"Deaf Man","b":"1F9CF-200D-2642-FE0F","c":"1F9CF-200D-2642","k":[45,4],"o":12},"skull_and_crossbones":{"a":"Skull and Crossbones","b":"2620-FE0F","c":"2620","j":["poison","danger","deadly","scary","death","pirate","evil"],"k":[53,8],"o":2},"camera_with_flash":{"a":"Camera with Flash","b":"1F4F8","k":[27,21],"o":2},"signal_strength":{"a":"Antenna with Bars","b":"1F4F6","j":["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],"k":[27,19],"o":2},"chocolate_bar":{"a":"Chocolate Bar","b":"1F36B","j":["food","snack","dessert","sweet"],"k":[7,10],"o":2},"manual_wheelchair":{"a":"Manual Wheelchair","b":"1F9BD","k":[44,5],"o":12},"snail":{"a":"Snail","b":"1F40C","j":["slow","animal","shell"],"k":[11,40],"o":2},"motorized_wheelchair":{"a":"Motorized Wheelchair","b":"1F9BC","k":[44,4],"o":12},"flag-gi":{"a":"Gibraltar Flag","b":"1F1EC-1F1EE","k":[2,4],"o":2},"hankey":{"a":"Pile of Poo","b":"1F4A9","k":[25,51],"n":["poop","shit"],"o":2},"vibration_mode":{"a":"Vibration Mode","b":"1F4F3","j":["orange-square","phone"],"k":[27,16],"o":2},"deaf_woman":{"a":"Deaf Woman","b":"1F9CF-200D-2640-FE0F","c":"1F9CF-200D-2640","k":[44,55],"o":12},"butterfly":{"a":"Butterfly","b":"1F98B","j":["animal","insect","nature","caterpillar"],"k":[42,29],"o":4},"video_camera":{"a":"Video Camera","b":"1F4F9","j":["film","record"],"k":[27,22],"o":2},"candy":{"a":"Candy","b":"1F36C","j":["snack","dessert","sweet","lolly"],"k":[7,11],"o":2},"auto_rickshaw":{"a":"Auto Rickshaw","b":"1F6FA","k":[37,2],"o":12},"mobile_phone_off":{"a":"Mobile Phone off","b":"1F4F4","j":["mute","orange-square","silence","quiet"],"k":[27,17],"o":2},"clown_face":{"a":"Clown Face","b":"1F921","j":["face"],"k":[38,18],"o":4},"lollipop":{"a":"Lollipop","b":"1F36D","j":["food","snack","candy","sweet"],"k":[7,12],"o":2},"flag-gl":{"a":"Greenland Flag","b":"1F1EC-1F1F1","k":[2,5],"o":2},"vhs":{"a":"Videocassette","b":"1F4FC","j":["record","video","oldschool","90s","80s"],"k":[27,25],"o":2},"bug":{"a":"Bug","b":"1F41B","j":["animal","insect","nature","worm"],"k":[11,56],"o":2},"bike":{"a":"Bicycle","b":"1F6B2","j":["sports","bicycle","exercise","hipster"],"k":[35,9],"o":2},"man-bowing":{"obsoletes":"1F647","a":"Man Bowing","b":"1F647-200D-2642-FE0F","c":"1F647-200D-2642","k":[32,32],"o":4},"female_sign":{"a":"Female Sign","b":"2640-FE0F","c":"2640","k":[53,18],"o":4},"japanese_ogre":{"a":"Japanese Ogre","b":"1F479","j":["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],"k":[23,34],"o":2},"custard":{"a":"Custard","b":"1F36E","j":["dessert","food"],"k":[7,13],"o":2},"ant":{"a":"Ant","b":"1F41C","j":["animal","insect","nature","bug"],"k":[12,0],"o":2},"mag":{"a":"Left-Pointing Magnifying Glass","b":"1F50D","j":["search","zoom","find","detective"],"k":[27,41],"o":2},"flag-gm":{"a":"Gambia Flag","b":"1F1EC-1F1F2","k":[2,6],"o":2},"honey_pot":{"a":"Honey Pot","b":"1F36F","j":["bees","sweet","kitchen"],"k":[7,14],"o":2},"woman-bowing":{"a":"Woman Bowing","b":"1F647-200D-2640-FE0F","c":"1F647-200D-2640","k":[32,26],"o":4},"male_sign":{"a":"Male Sign","b":"2642-FE0F","c":"2642","k":[53,19],"o":4},"mag_right":{"a":"Right-Pointing Magnifying Glass","b":"1F50E","j":["search","zoom","find","detective"],"k":[27,42],"o":2},"japanese_goblin":{"a":"Japanese Goblin","b":"1F47A","j":["red","evil","mask","monster","scary","creepy","japanese","goblin"],"k":[23,35],"o":2},"scooter":{"a":"Scooter","b":"1F6F4","k":[36,53],"o":4},"bee":{"a":"Honeybee","b":"1F41D","k":[12,1],"n":["honeybee"],"o":2},"flag-gn":{"a":"Guinea Flag","b":"1F1EC-1F1F3","k":[2,7],"o":2},"candle":{"a":"Candle","b":"1F56F-FE0F","c":"1F56F","j":["fire","wax"],"k":[29,6],"o":2},"skateboard":{"a":"Skateboard","b":"1F6F9","k":[37,1],"o":11},"medical_symbol":{"a":"Medical Symbol","b":"2695-FE0F","c":"2695","k":[53,44],"n":["staff_of_aesculapius"],"o":4},"ghost":{"a":"Ghost","b":"1F47B","j":["halloween","spooky","scary"],"k":[23,36],"o":2},"beetle":{"a":"Lady Beetle","b":"1F41E","j":["animal","insect","nature","ladybug"],"k":[12,2],"o":2},"flag-gp":{"a":"Guadeloupe Flag","b":"1F1EC-1F1F5","k":[2,8],"o":2},"baby_bottle":{"a":"Baby Bottle","b":"1F37C","j":["food","container","milk"],"k":[7,27],"o":2},"infinity":{"a":"Infinity","b":"267E-FE0F","c":"267E","k":[53,39],"o":11},"glass_of_milk":{"a":"Glass of Milk","b":"1F95B","k":[41,42],"o":4},"man-facepalming":{"a":"Man Facepalming","b":"1F926-200D-2642-FE0F","c":"1F926-200D-2642","k":[38,29],"o":4},"cricket":{"a":"Cricket","b":"1F997","j":["sports"],"k":[42,41],"o":5},"busstop":{"a":"Bus Stop","b":"1F68F","j":["transportation","wait"],"k":[34,14],"o":2},"flag-gq":{"a":"Equatorial Guinea Flag","b":"1F1EC-1F1F6","k":[2,9],"o":2},"alien":{"a":"Extraterrestrial Alien","b":"1F47D","j":["UFO","paul","weird","outer_space"],"k":[23,43],"o":2},"bulb":{"a":"Electric Light Bulb","b":"1F4A1","j":["light","electricity","idea"],"k":[25,43],"o":2},"woman-facepalming":{"a":"Woman Facepalming","b":"1F926-200D-2640-FE0F","c":"1F926-200D-2640","k":[38,23],"o":4},"spider":{"a":"Spider","b":"1F577-FE0F","c":"1F577","j":["animal","arachnid"],"k":[29,34],"o":2},"space_invader":{"a":"Alien Monster","b":"1F47E","j":["game","arcade","play"],"k":[23,44],"o":2},"motorway":{"a":"Motorway","b":"1F6E3-FE0F","c":"1F6E3","j":["road","cupertino","interstate","highway"],"k":[36,45],"o":2},"flag-gr":{"a":"Greece Flag","b":"1F1EC-1F1F7","k":[2,10],"o":2},"recycle":{"a":"Black Universal Recycling Symbol","b":"267B-FE0F","c":"267B","j":["arrow","environment","garbage","trash"],"k":[53,38],"o":2},"coffee":{"a":"Hot Beverage","b":"2615","j":["beverage","caffeine","latte","espresso"],"k":[53,0],"o":2},"flashlight":{"a":"Electric Torch","b":"1F526","j":["dark","camping","sight","night"],"k":[28,9],"o":2},"spider_web":{"a":"Spider Web","b":"1F578-FE0F","c":"1F578","j":["animal","insect","arachnid","silk"],"k":[29,35],"o":2},"izakaya_lantern":{"a":"Izakaya Lantern","b":"1F3EE","j":["light","paper","halloween","spooky"],"k":[11,8],"n":["lantern"],"o":2},"flag-gs":{"a":"South Georgia & South Sandwich Islands Flag","b":"1F1EC-1F1F8","k":[2,11],"o":2},"fleur_de_lis":{"a":"Fleur De Lis","b":"269C-FE0F","c":"269C","j":["decorative","scout"],"k":[53,49],"o":2},"robot_face":{"a":"Robot Face","b":"1F916","k":[37,29],"o":2},"railway_track":{"a":"Railway Track","b":"1F6E4-FE0F","c":"1F6E4","j":["train","transportation"],"k":[36,46],"o":2},"tea":{"a":"Teacup Without Handle","b":"1F375","j":["drink","bowl","breakfast","green","british"],"k":[7,20],"o":2},"flag-gt":{"a":"Guatemala Flag","b":"1F1EC-1F1F9","k":[2,12],"o":2},"oil_drum":{"a":"Oil Drum","b":"1F6E2-FE0F","c":"1F6E2","j":["barrell"],"k":[36,44],"o":2},"diya_lamp":{"a":"Diya Lamp","b":"1FA94","k":[52,8],"o":12},"sake":{"a":"Sake Bottle and Cup","b":"1F376","j":["wine","drink","drunk","beverage","japanese","alcohol","booze"],"k":[7,21],"o":2},"trident":{"a":"Trident Emblem","b":"1F531","j":["weapon","spear"],"k":[28,20],"o":2},"man-shrugging":{"a":"Man Shrugging","b":"1F937-200D-2642-FE0F","c":"1F937-200D-2642","k":[39,41],"o":4},"smiley_cat":{"a":"Smiling Cat Face with Open Mouth","b":"1F63A","j":["animal","cats","happy","smile"],"k":[31,36],"o":2},"scorpion":{"a":"Scorpion","b":"1F982","j":["animal","arachnid"],"k":[42,20],"o":2},"woman-shrugging":{"a":"Woman Shrugging","b":"1F937-200D-2640-FE0F","c":"1F937-200D-2640","k":[39,35],"o":4},"notebook_with_decorative_cover":{"a":"Notebook with Decorative Cover","b":"1F4D4","j":["classroom","notes","record","paper","study"],"k":[26,42],"o":2},"fuelpump":{"a":"Fuel Pump","b":"26FD","j":["gas station","petroleum"],"k":[54,38],"o":2},"name_badge":{"a":"Name Badge","b":"1F4DB","j":["fire","forbid"],"k":[26,49],"o":2},"mosquito":{"a":"Mosquito","b":"1F99F","k":[42,49],"o":11},"flag-gu":{"a":"Guam Flag","b":"1F1EC-1F1FA","k":[2,13],"o":2},"smile_cat":{"a":"Grinning Cat Face with Smiling Eyes","b":"1F638","j":["animal","cats","smile"],"k":[31,34],"o":2},"champagne":{"a":"Bottle with Popping Cork","b":"1F37E","j":["drink","wine","bottle","celebration"],"k":[7,29],"o":2},"joy_cat":{"a":"Cat Face with Tears of Joy","b":"1F639","j":["animal","cats","haha","happy","tears"],"k":[31,35],"o":2},"closed_book":{"a":"Closed Book","b":"1F4D5","j":["read","library","knowledge","textbook","learn"],"k":[26,43],"o":2},"rotating_light":{"a":"Police Cars Revolving Light","b":"1F6A8","j":["police","ambulance","911","emergency","alert","error","pinged","law","legal"],"k":[34,56],"o":2},"microbe":{"a":"Microbe","b":"1F9A0","k":[42,50],"o":11},"flag-gw":{"a":"Guinea-Bissau Flag","b":"1F1EC-1F1FC","k":[2,14],"o":2},"wine_glass":{"a":"Wine Glass","b":"1F377","j":["drink","beverage","drunk","alcohol","booze"],"k":[7,22],"o":2},"beginner":{"a":"Japanese Symbol for Beginner","b":"1F530","j":["badge","shield"],"k":[28,19],"o":2},"bouquet":{"a":"Bouquet","b":"1F490","j":["flowers","nature","spring"],"k":[25,26],"o":2},"heart_eyes_cat":{"a":"Smiling Cat Face with Heart-Shaped Eyes","b":"1F63B","j":["animal","love","like","affection","cats","valentines","heart"],"k":[31,37],"o":2},"male-doctor":{"a":"Male Doctor","b":"1F468-200D-2695-FE0F","c":"1F468-200D-2695","k":[17,2],"o":4},"book":{"a":"Open Book","b":"1F4D6","k":[26,44],"n":["open_book"],"o":2},"traffic_light":{"a":"Horizontal Traffic Light","b":"1F6A5","j":["transportation","signal"],"k":[34,53],"o":2},"cocktail":{"a":"Cocktail Glass","b":"1F378","j":["drink","drunk","alcohol","beverage","booze","mojito"],"k":[7,23],"o":2},"o":{"a":"Heavy Large Circle","b":"2B55","j":["circle","round"],"k":[55,43],"o":2},"flag-gy":{"a":"Guyana Flag","b":"1F1EC-1F1FE","k":[2,15],"o":2},"female-doctor":{"a":"Female Doctor","b":"1F469-200D-2695-FE0F","c":"1F469-200D-2695","k":[19,44],"o":4},"smirk_cat":{"a":"Cat Face with Wry Smile","b":"1F63C","j":["animal","cats","smirk"],"k":[31,38],"o":2},"green_book":{"a":"Green Book","b":"1F4D7","j":["read","library","knowledge","study"],"k":[26,45],"o":2},"cherry_blossom":{"a":"Cherry Blossom","b":"1F338","j":["nature","plant","spring","flower"],"k":[6,16],"o":2},"flag-hk":{"a":"Hong Kong Sar China Flag","b":"1F1ED-1F1F0","k":[2,16],"o":2},"vertical_traffic_light":{"a":"Vertical Traffic Light","b":"1F6A6","j":["transportation","driving"],"k":[34,54],"o":2},"white_check_mark":{"a":"White Heavy Check Mark","b":"2705","j":["green-square","ok","agree","vote","election","answer","tick"],"k":[54,40],"o":2},"tropical_drink":{"a":"Tropical Drink","b":"1F379","j":["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"k":[7,24],"o":2},"kissing_cat":{"a":"Kissing Cat Face with Closed Eyes","b":"1F63D","j":["animal","cats","kiss"],"k":[31,39],"o":2},"flag-hm":{"a":"Heard & Mcdonald Islands Flag","b":"1F1ED-1F1F2","k":[2,17],"o":2},"octagonal_sign":{"a":"Octagonal Sign","b":"1F6D1","k":[36,39],"o":4},"white_flower":{"a":"White Flower","b":"1F4AE","j":["japanese","spring"],"k":[26,4],"o":2},"ballot_box_with_check":{"a":"Ballot Box with Check","b":"2611-FE0F","c":"2611","j":["ok","agree","confirm","black-square","vote","election","yes","tick"],"k":[52,55],"o":2},"blue_book":{"a":"Blue Book","b":"1F4D8","j":["read","library","knowledge","learn","study"],"k":[26,46],"o":2},"beer":{"a":"Beer Mug","b":"1F37A","j":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"k":[7,25],"o":2},"construction":{"a":"Construction Sign","b":"1F6A7","j":["wip","progress","caution","warning"],"k":[34,55],"o":2},"rosette":{"a":"Rosette","b":"1F3F5-FE0F","c":"1F3F5","j":["flower","decoration","military"],"k":[11,18],"o":2},"heavy_check_mark":{"a":"Heavy Check Mark","b":"2714-FE0F","c":"2714","j":["ok","nike","answer","yes","tick"],"k":[55,12],"o":2},"scream_cat":{"a":"Weary Cat Face","b":"1F640","j":["animal","cats","munch","scared","scream"],"k":[31,42],"o":2},"orange_book":{"a":"Orange Book","b":"1F4D9","j":["read","library","knowledge","textbook","study"],"k":[26,47],"o":2},"beers":{"a":"Clinking Beer Mugs","b":"1F37B","j":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"k":[7,26],"o":2},"male-student":{"a":"Male Student","b":"1F468-200D-1F393","k":[14,50],"o":4},"flag-hn":{"a":"Honduras Flag","b":"1F1ED-1F1F3","k":[2,18],"o":2},"crying_cat_face":{"a":"Crying Cat Face","b":"1F63F","j":["animal","tears","weep","sad","cats","upset","cry"],"k":[31,41],"o":2},"anchor":{"a":"Anchor","b":"2693","j":["ship","ferry","sea","boat"],"k":[53,42],"o":2},"flag-hr":{"a":"Croatia Flag","b":"1F1ED-1F1F7","k":[2,19],"o":2},"heavy_multiplication_x":{"a":"Heavy Multiplication X","b":"2716-FE0F","c":"2716","j":["math","calculation"],"k":[55,13],"o":2},"female-student":{"a":"Female Student","b":"1F469-200D-1F393","k":[17,40],"o":4},"rose":{"a":"Rose","b":"1F339","j":["flowers","valentines","love","spring"],"k":[6,17],"o":2},"books":{"a":"Books","b":"1F4DA","j":["literature","library","study"],"k":[26,48],"o":2},"clinking_glasses":{"a":"Clinking Glasses","b":"1F942","j":["beverage","drink","party","alcohol","celebrate","cheers"],"k":[41,18],"o":4},"x":{"a":"Cross Mark","b":"274C","j":["no","delete","remove","cancel"],"k":[55,21],"o":2},"pouting_cat":{"a":"Pouting Cat Face","b":"1F63E","j":["animal","cats"],"k":[31,40],"o":2},"wilted_flower":{"a":"Wilted Flower","b":"1F940","j":["plant","nature","flower"],"k":[41,16],"o":4},"boat":{"a":"Sailboat","b":"26F5","k":[54,16],"n":["sailboat"],"o":2},"flag-ht":{"a":"Haiti Flag","b":"1F1ED-1F1F9","k":[2,20],"o":2},"tumbler_glass":{"a":"Tumbler Glass","b":"1F943","j":["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],"k":[41,19],"o":4},"notebook":{"a":"Notebook","b":"1F4D3","j":["stationery","record","notes","paper","study"],"k":[26,41],"o":2},"male-teacher":{"a":"Male Teacher","b":"1F468-200D-1F3EB","k":[15,11],"o":4},"ledger":{"a":"Ledger","b":"1F4D2","j":["notes","paper"],"k":[26,40],"o":2},"flag-hu":{"a":"Hungary Flag","b":"1F1ED-1F1FA","k":[2,21],"o":2},"cup_with_straw":{"a":"Cup with Straw","b":"1F964","k":[41,51],"o":5},"hibiscus":{"a":"Hibiscus","b":"1F33A","j":["plant","vegetable","flowers","beach"],"k":[6,18],"o":2},"see_no_evil":{"a":"See-No-Evil Monkey","b":"1F648","j":["monkey","animal","nature","haha"],"k":[32,44],"o":2},"canoe":{"a":"Canoe","b":"1F6F6","j":["boat","paddle","water","ship"],"k":[36,55],"o":4},"negative_squared_cross_mark":{"a":"Negative Squared Cross Mark","b":"274E","j":["x","green-square","no","deny"],"k":[55,22],"o":2},"flag-ic":{"a":"Canary Islands Flag","b":"1F1EE-1F1E8","k":[2,22],"o":2},"beverage_box":{"a":"Beverage Box","b":"1F9C3","k":[44,11],"o":12},"speedboat":{"a":"Speedboat","b":"1F6A4","j":["ship","transportation","vehicle","summer"],"k":[34,52],"o":2},"heavy_plus_sign":{"a":"Heavy Plus Sign","b":"2795","j":["math","calculation","addition","more","increase"],"k":[55,29],"o":2},"sunflower":{"a":"Sunflower","b":"1F33B","j":["nature","plant","fall"],"k":[6,19],"o":2},"page_with_curl":{"a":"Page with Curl","b":"1F4C3","j":["documents","office","paper"],"k":[26,25],"o":2},"female-teacher":{"a":"Female Teacher","b":"1F469-200D-1F3EB","k":[18,1],"o":4},"hear_no_evil":{"a":"Hear-No-Evil Monkey","b":"1F649","j":["animal","monkey","nature"],"k":[32,45],"o":2},"mate_drink":{"a":"Mate Drink","b":"1F9C9","k":[44,17],"o":12},"passenger_ship":{"a":"Passenger Ship","b":"1F6F3-FE0F","c":"1F6F3","j":["yacht","cruise","ferry"],"k":[36,52],"o":2},"scroll":{"a":"Scroll","b":"1F4DC","j":["documents","ancient","history","paper"],"k":[26,50],"o":2},"blossom":{"a":"Blossom","b":"1F33C","j":["nature","flowers","yellow"],"k":[6,20],"o":2},"flag-id":{"a":"Indonesia Flag","b":"1F1EE-1F1E9","k":[2,23],"o":2},"speak_no_evil":{"a":"Speak-No-Evil Monkey","b":"1F64A","j":["monkey","animal","nature","omg"],"k":[32,46],"o":2},"heavy_minus_sign":{"a":"Heavy Minus Sign","b":"2796","j":["math","calculation","subtract","less"],"k":[55,30],"o":2},"flag-ie":{"a":"Ireland Flag","b":"1F1EE-1F1EA","k":[2,24],"o":2},"ice_cube":{"a":"Ice Cube","b":"1F9CA","k":[44,18],"o":12},"page_facing_up":{"a":"Page Facing Up","b":"1F4C4","j":["documents","office","paper","information"],"k":[26,26],"o":2},"male-judge":{"a":"Male Judge","b":"1F468-200D-2696-FE0F","c":"1F468-200D-2696","k":[17,8],"o":4},"tulip":{"a":"Tulip","b":"1F337","j":["flowers","plant","nature","summer","spring"],"k":[6,15],"o":2},"ferry":{"a":"Ferry","b":"26F4-FE0F","c":"26F4","j":["boat","ship","yacht"],"k":[54,15],"o":2},"kiss":{"a":"Kiss Mark","b":"1F48B","j":["face","lips","love","like","affection","valentines"],"k":[25,21],"o":2},"heavy_division_sign":{"a":"Heavy Division Sign","b":"2797","j":["divide","math","calculation"],"k":[55,31],"o":2},"newspaper":{"a":"Newspaper","b":"1F4F0","j":["press","headline"],"k":[27,13],"o":2},"female-judge":{"a":"Female Judge","b":"1F469-200D-2696-FE0F","c":"1F469-200D-2696","k":[19,50],"o":4},"seedling":{"a":"Seedling","b":"1F331","j":["plant","nature","grass","lawn","spring"],"k":[6,9],"o":2},"love_letter":{"a":"Love Letter","b":"1F48C","j":["email","like","affection","envelope","valentines"],"k":[25,22],"o":2},"chopsticks":{"a":"Chopsticks","b":"1F962","k":[41,49],"o":5},"motor_boat":{"a":"Motor Boat","b":"1F6E5-FE0F","c":"1F6E5","j":["ship"],"k":[36,47],"o":2},"flag-il":{"a":"Israel Flag","b":"1F1EE-1F1F1","k":[2,25],"o":2},"curly_loop":{"a":"Curly Loop","b":"27B0","j":["scribble","draw","shape","squiggle"],"k":[55,33],"o":2},"flag-im":{"a":"Isle of Man Flag","b":"1F1EE-1F1F2","k":[2,26],"o":2},"evergreen_tree":{"a":"Evergreen Tree","b":"1F332","j":["plant","nature"],"k":[6,10],"o":2},"cupid":{"a":"Heart with Arrow","b":"1F498","j":["love","like","heart","affection","valentines"],"k":[25,34],"o":2},"loop":{"a":"Double Curly Loop","b":"27BF","j":["tape","cassette"],"k":[55,34],"o":2},"ship":{"a":"Ship","b":"1F6A2","j":["transportation","titanic","deploy"],"k":[34,33],"o":2},"rolled_up_newspaper":{"a":"Rolled Up Newspaper","b":"1F5DE-FE0F","c":"1F5DE","k":[30,23],"o":2},"knife_fork_plate":{"a":"Knife Fork Plate","b":"1F37D-FE0F","c":"1F37D","k":[7,28],"o":2},"fork_and_knife":{"a":"Fork and Knife","b":"1F374","j":["cutlery","kitchen"],"k":[7,19],"o":2},"male-farmer":{"a":"Male Farmer","b":"1F468-200D-1F33E","k":[14,38],"o":4},"bookmark_tabs":{"a":"Bookmark Tabs","b":"1F4D1","j":["favorite","save","order","tidy"],"k":[26,39],"o":2},"part_alternation_mark":{"a":"Part Alternation Mark","b":"303D-FE0F","c":"303D","j":["graph","presentation","stats","business","economics","bad"],"k":[55,45],"o":2},"flag-in":{"a":"India Flag","b":"1F1EE-1F1F3","k":[2,27],"o":2},"gift_heart":{"a":"Heart with Ribbon","b":"1F49D","j":["love","valentines"],"k":[25,39],"o":2},"airplane":{"a":"Airplane","b":"2708-FE0F","c":"2708","j":["vehicle","transportation","flight","fly"],"k":[54,41],"o":2},"deciduous_tree":{"a":"Deciduous Tree","b":"1F333","j":["plant","nature"],"k":[6,11],"o":2},"spoon":{"a":"Spoon","b":"1F944","j":["cutlery","kitchen","tableware"],"k":[41,20],"o":4},"flag-io":{"a":"British Indian Ocean Territory Flag","b":"1F1EE-1F1F4","k":[2,28],"o":2},"palm_tree":{"a":"Palm Tree","b":"1F334","j":["plant","vegetable","nature","summer","beach","mojito","tropical"],"k":[6,12],"o":2},"sparkling_heart":{"a":"Sparkling Heart","b":"1F496","j":["love","like","affection","valentines"],"k":[25,32],"o":2},"female-farmer":{"a":"Female Farmer","b":"1F469-200D-1F33E","k":[17,28],"o":4},"eight_spoked_asterisk":{"a":"Eight Spoked Asterisk","b":"2733-FE0F","c":"2733","j":["star","sparkle","green-square"],"k":[55,17],"o":2},"small_airplane":{"a":"Small Airplane","b":"1F6E9-FE0F","c":"1F6E9","j":["flight","transportation","fly","vehicle"],"k":[36,48],"o":2},"bookmark":{"a":"Bookmark","b":"1F516","j":["favorite","label","save"],"k":[27,50],"o":2},"eight_pointed_black_star":{"a":"Eight Pointed Black Star","b":"2734-FE0F","c":"2734","j":["orange-square","shape","polygon"],"k":[55,18],"o":2},"heartpulse":{"a":"Growing Heart","b":"1F497","j":["like","love","affection","valentines","pink"],"k":[25,33],"o":2},"label":{"a":"Label","b":"1F3F7-FE0F","c":"1F3F7","j":["sale","tag"],"k":[11,19],"o":2},"flag-iq":{"a":"Iraq Flag","b":"1F1EE-1F1F6","k":[2,29],"o":2},"hocho":{"a":"Hocho","b":"1F52A","j":["knife","blade","cutlery","kitchen","weapon"],"k":[28,13],"n":["knife"],"o":2},"cactus":{"a":"Cactus","b":"1F335","j":["vegetable","plant","nature"],"k":[6,13],"o":2},"airplane_departure":{"a":"Airplane Departure","b":"1F6EB","k":[36,49],"o":2},"airplane_arriving":{"a":"Airplane Arriving","b":"1F6EC","k":[36,50],"o":2},"ear_of_rice":{"a":"Ear of Rice","b":"1F33E","j":["nature","plant"],"k":[6,22],"o":2},"flag-ir":{"a":"Iran Flag","b":"1F1EE-1F1F7","k":[2,30],"o":2},"moneybag":{"a":"Money Bag","b":"1F4B0","j":["dollar","payment","coins","sale"],"k":[26,6],"o":2},"male-cook":{"a":"Male Cook","b":"1F468-200D-1F373","k":[14,44],"o":4},"heartbeat":{"a":"Beating Heart","b":"1F493","j":["love","like","affection","valentines","pink","heart"],"k":[25,29],"o":2},"sparkle":{"a":"Sparkle","b":"2747-FE0F","c":"2747","j":["stars","green-square","awesome","good","fireworks"],"k":[55,20],"o":2},"amphora":{"a":"Amphora","b":"1F3FA","j":["vase","jar"],"k":[11,22],"o":2},"yen":{"a":"Banknote with Yen Sign","b":"1F4B4","j":["money","sales","japanese","dollar","currency"],"k":[26,10],"o":2},"revolving_hearts":{"a":"Revolving Hearts","b":"1F49E","j":["love","like","affection","valentines"],"k":[25,40],"o":2},"bangbang":{"a":"Double Exclamation Mark","b":"203C-FE0F","c":"203C","j":["exclamation","surprise"],"k":[52,10],"o":2},"parachute":{"a":"Parachute","b":"1FA82","k":[52,3],"o":12},"herb":{"a":"Herb","b":"1F33F","j":["vegetable","plant","medicine","weed","grass","lawn"],"k":[6,23],"o":2},"flag-is":{"a":"Iceland Flag","b":"1F1EE-1F1F8","k":[2,31],"o":2},"female-cook":{"a":"Female Cook","b":"1F469-200D-1F373","k":[17,34],"o":4},"interrobang":{"a":"Exclamation Question Mark","b":"2049-FE0F","c":"2049","j":["wat","punctuation","surprise"],"k":[52,11],"o":2},"seat":{"a":"Seat","b":"1F4BA","j":["sit","airplane","transport","bus","flight","fly"],"k":[26,16],"o":2},"dollar":{"a":"Banknote with Dollar Sign","b":"1F4B5","j":["money","sales","bill","currency"],"k":[26,11],"o":2},"two_hearts":{"a":"Two Hearts","b":"1F495","j":["love","like","affection","valentines","heart"],"k":[25,31],"o":2},"it":{"a":"Italy Flag","b":"1F1EE-1F1F9","j":["italy","flag","nation","country","banner"],"k":[2,32],"n":["flag-it"],"o":2},"shamrock":{"a":"Shamrock","b":"2618-FE0F","c":"2618","j":["vegetable","plant","nature","irish","clover"],"k":[53,1],"o":2},"four_leaf_clover":{"a":"Four Leaf Clover","b":"1F340","j":["vegetable","plant","nature","lucky","irish"],"k":[6,24],"o":2},"euro":{"a":"Banknote with Euro Sign","b":"1F4B6","j":["money","sales","dollar","currency"],"k":[26,12],"o":2},"question":{"a":"Black Question Mark Ornament","b":"2753","j":["doubt","confused"],"k":[55,23],"o":2},"helicopter":{"a":"Helicopter","b":"1F681","j":["transportation","vehicle","fly"],"k":[34,0],"o":2},"heart_decoration":{"a":"Heart Decoration","b":"1F49F","j":["purple-square","love","like"],"k":[25,41],"o":2},"flag-je":{"a":"Jersey Flag","b":"1F1EF-1F1EA","k":[2,33],"o":2},"male-mechanic":{"a":"Male Mechanic","b":"1F468-200D-1F527","k":[15,50],"o":4},"suspension_railway":{"a":"Suspension Railway","b":"1F69F","j":["vehicle","transportation"],"k":[34,30],"o":2},"heavy_heart_exclamation_mark_ornament":{"a":"Heavy Heart Exclamation Mark Ornament","b":"2763-FE0F","c":"2763","k":[55,27],"o":2},"female-mechanic":{"a":"Female Mechanic","b":"1F469-200D-1F527","k":[18,35],"o":4},"flag-jm":{"a":"Jamaica Flag","b":"1F1EF-1F1F2","k":[2,34],"o":2},"grey_question":{"a":"White Question Mark Ornament","b":"2754","j":["doubts","gray","huh","confused"],"k":[55,24],"o":2},"maple_leaf":{"a":"Maple Leaf","b":"1F341","j":["nature","plant","vegetable","ca","fall"],"k":[6,25],"o":2},"pound":{"a":"Banknote with Pound Sign","b":"1F4B7","j":["british","sterling","money","sales","bills","uk","england","currency"],"k":[26,13],"o":2},"money_with_wings":{"a":"Money with Wings","b":"1F4B8","j":["dollar","bills","payment","sale"],"k":[26,14],"o":2},"flag-jo":{"a":"Jordan Flag","b":"1F1EF-1F1F4","k":[2,35],"o":2},"fallen_leaf":{"a":"Fallen Leaf","b":"1F342","j":["nature","plant","vegetable","leaves"],"k":[6,26],"o":2},"broken_heart":{"a":"Broken Heart","b":"1F494","j":["sad","sorry","break","heart","heartbreak"],"k":[25,30],"l":["0&&eo(),document.addEventListener("visibilitychange",r),j.on("connection.changed",eu),j.on("connection.recovered",eu),j.on("user.updated",eu),j.on("user.deleted",eu),a.on(eu)),[2]}})}),function(){!e&&t&&(document.removeEventListener("visibilitychange",r),null==a||a.off(eu),j.off("connection.changed",eu),j.off("connection.recovered",eu),j.off("user.updated",eu),j.off("user.deleted",eu),K.forEach(clearTimeout))}},[a.cid,o,u,null==z?void 0:z.read_events,y]),(0,el.useEffect)(function(){if(J.thread){var e,t=null===(e=J.messages)||void 0===e?void 0:e.find(function(e){var t;return e.id===(null===(t=J.thread)||void 0===t?void 0:t.id)});t&&X({message:t,type:"setThread"})}},[J.messages,J.thread]);var ed=function(e,t){if("string"==typeof e&&("success"===t||"error"===t)){var r=c9();W(function(i){return ip(ip([],i,!0),[{id:r,text:e,type:t}],!1)});var i=setTimeout(function(){return W(function(e){return e.filter(function(e){return e.id!==r})})},5e3);K.push(i)}},ep=cD()(function(e,t){Q.current&&X({hasMore:e,messages:t,type:"loadMoreFinished"})},2e3,{leading:!0,trailing:!0}),ef=function(e){return void 0===e&&(e=100),il(void 0,void 0,void 0,function(){var t,r,i,o,s;return ic(this,function(l){switch(l.label){case 0:if(!en.current||!window.navigator.onLine||!J.hasMore||(t=null===(s=null==J?void 0:J.messages)||void 0===s?void 0:s[0],J.loadingMore||J.loadingMoreNewer||(null==t?void 0:t.status)!=="received"))return[2,0];X({loadingMore:!0,type:"setLoadingMore"}),r=null==t?void 0:t.id,i=e,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,a.query({messages:{id_lt:r,limit:i},watchers:{limit:i}})];case 2:return o=l.sent(),[3,4];case 3:return console.warn("message pagination request failed with error",l.sent()),X({loadingMore:!1,type:"setLoadingMore"}),[2,0];case 4:return ep(o.messages.length===i,a.state.messages),[2,o.messages.length]}})})},eh=function(e){return void 0===e&&(e=100),il(void 0,void 0,void 0,function(){var t,r,i,o,s,l;return ic(this,function(u){switch(u.label){case 0:if(!en.current||!window.navigator.onLine||(t=null===(s=null==J?void 0:J.messages)||void 0===s?void 0:s[(null===(l=null==J?void 0:J.messages)||void 0===l?void 0:l.length)-1],J.loadingMore||J.loadingMoreNewer))return[2,0];X({loadingMoreNewer:!0,type:"setLoadingMoreNewer"}),r=null==t?void 0:t.id,i=e,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,a.query({messages:{id_gt:r,limit:i},watchers:{limit:i}})];case 2:return o=u.sent(),[3,4];case 3:return console.warn("message pagination request failed with error",u.sent()),X({loadingMoreNewer:!1,type:"setLoadingMoreNewer"}),[2,0];case 4:return X({hasMoreNewer:a.state.messages!==a.state.latestMessages,messages:a.state.messages,type:"loadMoreNewerFinished"}),[2,o.messages.length]}})})},em=(0,el.useRef)(null),eg=function(e,t){return void 0===t&&(t=100),il(void 0,void 0,void 0,function(){return ic(this,function(r){switch(r.label){case 0:return X({loadingMore:!0,type:"setLoadingMore"}),[4,a.state.loadMessageIntoState(e,void 0,t)];case 1:return r.sent(),ep(a.state.messages.findIndex(function(t){return t.id===e})>=Math.floor(t/2),a.state.messages),X({hasMoreNewer:a.state.messages!==a.state.latestMessages,highlightedMessageId:e,type:"jumpToMessageFinished"}),em.current&&clearTimeout(em.current),em.current=setTimeout(function(){em.current=null,X({type:"clearHighlightedMessage"})},500),[2]}})})},ev=function(){return il(void 0,void 0,void 0,function(){return ic(this,function(e){switch(e.label){case 0:return[4,a.state.loadMessageIntoState("latest")];case 1:return e.sent(),ep(a.state.messages.length>=25,a.state.messages),X({type:"jumpToLatestMessage"}),[2]}})})},eb=(0,el.useCallback)(function(e){return il(void 0,void 0,void 0,function(){var t;return ic(this,function(r){switch(r.label){case 0:if(!(null==e?void 0:e.id))throw Error("Cannot delete a message - missing message ID.");if(!l)return[3,2];return[4,l(e)];case 1:return t=r.sent(),[3,4];case 2:return[4,j.deleteMessage(e.id)];case 3:t=r.sent().message,r.label=4;case 4:return[2,t]}})})},[j,l]),ey=function(e){a.state.addMessageSorted(e,!0),X({channel:a,parentId:J.thread&&e.parent_id,type:"copyMessagesFromChannel"})},e_=function(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.id)!=null},ew=function(e,t,r){return il(void 0,void 0,void 0,function(){var i,o,s,l,u,p,f,m,g,v,b,y,_,w,k,x,E;return ic(this,function(F){switch(F.label){case 0:i=e.attachments,o=e.id,l=void 0===(s=e.mentioned_users)?[]:s,u=e.parent_id,p=e.text,f=e_(l)?l.map(function(e){return e.id}):l,m=io({attachments:i,id:o,mentioned_users:f,parent_id:u,quoted_message_id:u===(null==G?void 0:G.parent_id)?null==G?void 0:G.id:void 0,text:p},t),F.label=1;case 1:if(F.trys.push([1,6,,7]),g=void 0,!d)return[3,3];return[4,d(a.cid,m,r)];case 2:return g=F.sent(),[3,5];case 3:return[4,a.sendMessage(m,r)];case 4:g=F.sent(),F.label=5;case 5:for(v=void 0,b=a.state.messages.length-1;b>=0;b--)if((y=a.state.messages[b]).id===m.id){v=y;break}return _=new Date((null===(x=null==g?void 0:g.message)||void 0===x?void 0:x.updated_at)||0).getTime()>((null===(E=null==v?void 0:v.updated_at)||void 0===E?void 0:E.getTime())||0),(null==g?void 0:g.message)&&(_||(null==v?void 0:v.status)==="sending")&&ey(io(io({},g.message),{status:"received"})),G&&u===(null==G?void 0:G.parent_id)&&Y(void 0),[3,7];case 6:return k=(w=JSON.stringify(F.sent()))?JSON.parse(w):{},ey(io(io({},e),{error:k,errorStatusCode:k.status||void 0,status:"failed"})),[3,7];case 7:return[2]}})})},ek=function(e,t,r){var i=e.attachments,o=void 0===i?[]:i,s=e.mentioned_users,l=void 0===s?[]:s,u=e.parent,d=e.text,p=void 0===d?"":d;return il(void 0,void 0,void 0,function(){var e,i;return ic(this,function(s){switch(s.label){case 0:return a.state.filterErrorMessages(),ey(e=io({__html:p,attachments:o,created_at:new Date,html:p,id:null!==(i=null==t?void 0:t.id)&&void 0!==i?i:"".concat(j.userID,"-").concat(c9()),mentioned_users:l,reactions:[],status:"sending",text:p,type:"regular",user:j.user},(null==u?void 0:u.id)?{parent_id:u.id}:null)),[4,ew(e,t,r)];case 1:return s.sent(),[2]}})})},ex=function(e){return il(void 0,void 0,void 0,function(){return ic(this,function(t){switch(t.label){case 0:return ey(io(io({},e),{errorStatusCode:void 0,status:"sending"})),e.attachments&&(e.attachments=e.attachments.filter(function(e){return!e.og_scrape_url})),[4,ew(e)];case 1:return t.sent(),[2]}})})},eE=function(e){a.state.removeMessage(e),X({channel:a,parentId:J.thread&&e.parent_id,type:"copyMessagesFromChannel"})},eF=function(e,t){null==t||t.preventDefault(),Y(function(t){if((null==t?void 0:t.parent_id)===(null==e?void 0:e.parent_id))return t}),X({channel:a,message:e,type:"openThread"})},eC=function(e){null==e||e.preventDefault(),X({type:"closeThread"})},eS=cD()(function(e,t){X({threadHasMore:e,threadMessages:t,type:"loadMoreThreadFinished"})},2e3,{leading:!0,trailing:!0}),eD=function(e){return void 0===e&&(e=50),il(void 0,void 0,void 0,function(){var t,r,i,o;return ic(this,function(s){switch(s.label){case 0:if(J.threadLoadingMore||!J.thread)return[2];if(X({type:"startLoadingThread"}),!(t=J.thread.id))return[2,X({type:"closeThread"})];i=null===(o=(r=a.state.threads[t]||[])[0])||void 0===o?void 0:o.id,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,a.getReplies(t,{id_lt:i,limit:e})];case 2:return eS(bE(s.sent().messages.length,e),a.state.threads[t]||[]),[3,4];case 3:return s.sent(),eS(!1,r),[3,4];case 4:return[2]}})})},ej=(0,el.useCallback)(function(e,t){if((F||E)&&e.target instanceof HTMLElement){var r=e.target.innerHTML.replace("*","");if("@"===r[0]){var i=r.replace("@",""),a=null==t?void 0:t.find(function(e){var t=e.id;return e.name===i||t===i});F&&"function"==typeof F&&"mouseover"===e.type&&F(e,a),E&&"click"===e.type&&"function"==typeof E&&E(e,a)}}},[E,F]),eT=us(p),eO=J.typing,eP=is(J,["typing"]),eR=ua(io(io({},eP),{acceptedFiles:r,channel:a,channelCapabilitiesArray:er,channelConfig:z,debounceURLEnrichmentMs:null==v?void 0:v.debounceURLEnrichmentMs,dragAndDropWindow:m,enrichURLForPreview:e.enrichURLForPreview,findURLFn:null==v?void 0:v.findURLFn,giphyVersion:e.giphyVersion||"fixed_height",imageAttachmentSizeHandler:e.imageAttachmentSizeHandler||bS,maxNumberOfFiles:k,multipleUploads:void 0===x||x,mutes:P,notifications:V,onLinkPreviewDismissed:null==v?void 0:v.onLinkPreviewDismissed,quotedMessage:G,shouldGenerateVideoThumbnail:e.shouldGenerateVideoThumbnail||!0,videoAttachmentSizeHandler:e.videoAttachmentSizeHandler||bD,watcher_count:J.watcherCount})),eM=(0,el.useMemo)(function(){return{addNotification:ed,closeThread:eC,deleteMessage:eb,dispatch:X,editMessage:eT,jumpToLatestMessage:ev,jumpToMessage:eg,loadMore:ef,loadMoreNewer:eh,loadMoreThread:eD,onMentionsClick:ej,onMentionsHover:ej,openThread:eF,removeMessage:eE,retrySendMessage:ex,sendMessage:ek,setQuotedMessage:Y,skipMessageDataMemoization:S,updateMessage:ey}},[a.cid,eb,null==v?void 0:v.findURLFn,null==v?void 0:v.onLinkPreviewDismissed,ef,eh,G,eg,ev]),eL=(0,el.useMemo)(function(){return{Attachment:e.Attachment||pL,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||bf,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}},[]),eA=(0,el.useMemo)(function(){return{Emoji:e.Emoji,emojiConfig:ei,EmojiIndex:e.EmojiIndex,EmojiPicker:e.EmojiPicker}},[]),eI=uo({typing:eO}),eN=a5(I,R,A);return J.error?ec().createElement("div",{className:eN},ec().createElement(void 0===_?pN:_,{error:J.error})):J.loading?ec().createElement("div",{className:eN},ec().createElement(void 0===w?pH:w,null)):a.watch?ec().createElement("div",{className:a5(eN,B)},ec().createElement(pt,{value:eR},ec().createElement(fr,{value:eM},ec().createElement(d5,{value:eL},ec().createElement(gW,{value:eA},ec().createElement(bv,{value:eI},ec().createElement("div",{className:"".concat(N)},m&&ec().createElement(bm,io({},void 0===C?{}:C),s),!m&&ec().createElement(ec().Fragment,null,s)))))))):ec().createElement("div",{className:eN},ec().createElement("div",null,M("Channel Missing")))},bL=ec().memo(function(e){var t=e.channel,r=e.EmptyPlaceholder,i=e.LoadingErrorIndicator,a=e.LoadingIndicator,o=void 0===a?pH:a,s=a4("Channel"),l=s.channel,u=s.channelsQueryState,d=s.customClasses,p=s.theme,f=bC({customClasses:d}),m=f.channelClass,g=f.chatClass,v=t||l,b=a5(g,p,m);return"reload"===u.queryInProgress&&o?ec().createElement("div",{className:b},ec().createElement(o,null)):u.error&&i?ec().createElement("div",{className:b},ec().createElement(i,{error:u.error})):(null==v?void 0:v.cid)?ec().createElement(bM,io({},e,{channel:v,key:v.cid})):ec().createElement("div",{className:b},void 0===r?null:r)}),bA=ec().memo(function(e){var t=e.children,r=e.hideOnThread,i=e.thread,a=pn("Window").thread;return ec().createElement("div",{className:a5("str-chat__main-panel",{"str-chat__main-panel--hideOnThread":void 0!==r&&r&&(a||i)})},t)}),bI=(0,el.createContext)(void 0),bN=function(e){var t=e.children,r=e.value;return ec().createElement(bI.Provider,{value:r},t)},bB=function(e){e instanceof WheelEvent&&1===e.deltaY&&e.preventDefault()},bU=function(e){var t=e.children,r=e.element,i=e.hasMore,a=e.hasMoreNewer,o=e.hasNextPage,s=e.hasPreviousPage,l=e.head,u=e.initialLoad,d=e.isLoading,p=e.listenToScroll,f=e.loader,m=e.loadMore,g=e.loadMoreNewer,v=e.loadNextPage,b=e.loadPreviousPage,y=e.threshold,_=void 0===y?250:y,w=e.useCapture,k=void 0!==w&&w,x=is(e,["children","element","hasMore","hasMoreNewer","hasNextPage","hasPreviousPage","head","initialLoad","isLoading","listenToScroll","loader","loadMore","loadMoreNewer","loadNextPage","loadPreviousPage","threshold","useCapture"]),E=v||g,F=b||m,C=o||a,S=s||i,D=(0,el.useRef)(),j=(0,el.useCallback)(function(){var e=D.current;if(e&&null!==e.offsetParent){var t=e.parentElement,r=e.scrollHeight-t.scrollTop-t.clientHeight,i=t.scrollTop;p&&p(r,i,_),!d&&(i3,o=(a?e.slice(0,3):i).join(", ").trim();return a?t("{{ users }} and more are typing...",{users:o}):t("{{ users }} and {{ user }} are typing...",{user:r,users:o})},bH=ec().memo(function(e){var t=e.Avatar,r=e.avatarSize,i=void 0===r?32:r,a=e.threadList,o=pn("TypingIndicator"),s=o.channelConfig,l=o.thread,u=a4("TypingIndicator"),d=u.client,p=u.themeVersion,f=d8("TypingIndicator").Avatar,m=((0,el.useContext)(bg)||(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("TypingIndicator"," component.")),{})).typing,g=void 0===m?{}:m,v=t||f||ok,b=a?[]:Object.values(g).filter(function(e){var t,r=e.parent_id,i=e.user;return(null==i?void 0:i.id)!==(null===(t=d.user)||void 0===t?void 0:t.id)&&!r}),y=a?Object.values(g).filter(function(e){var t,r=e.parent_id,i=e.user;return(null==i?void 0:i.id)!==(null===(t=d.user)||void 0===t?void 0:t.id)&&r===(null==l?void 0:l.id)}):[],_=bz((a?y:b).map(function(e){var t=e.user;return(null==t?void 0:t.name)||(null==t?void 0:t.id)}).filter(Boolean)),w=a&&y.length||!a&&b.length;return(null==s?void 0:s.typing_events)===!1?null:"2"===p?w?ec().createElement("div",{className:a5("str-chat__typing-indicator",{"str-chat__typing-indicator--typing":w}),"data-testid":"typing-indicator"},ec().createElement("div",{className:"str-chat__typing-indicator__dots"},ec().createElement("span",{className:"str-chat__typing-indicator__dot"}),ec().createElement("span",{className:"str-chat__typing-indicator__dot"}),ec().createElement("span",{className:"str-chat__typing-indicator__dot"})),ec().createElement("div",{className:"str-chat__typing-indicator__users","data-testid":"typing-users"},_)):null:ec().createElement("div",{className:a5("str-chat__typing-indicator",{"str-chat__typing-indicator--typing":w})},ec().createElement("div",{className:"str-chat__typing-indicator__avatars"},(a?y:b).map(function(e,t){var r=e.user;return ec().createElement(v,{image:null==r?void 0:r.image,key:"".concat(null==r?void 0:r.id,"-").concat(t),name:(null==r?void 0:r.name)||(null==r?void 0:r.id),size:i,user:r})})),ec().createElement("div",{className:"str-chat__typing-indicator__dots"},ec().createElement("span",{className:"str-chat__typing-indicator__dot"}),ec().createElement("span",{className:"str-chat__typing-indicator__dot"}),ec().createElement("span",{className:"str-chat__typing-indicator__dot"})))}),bq=function(e){var t,r,i,a,o,s,l,u,d,p,f,m=e.loadMoreScrollThreshold,g=e.messages,v=e.scrolledUpThreshold,b=void 0===v?200:v,y=e.hasMoreNewer,_=e.suppressAutoscroll,w=e.listElement,k=(0,el.useState)(!1),x=k[0],E=k[1],F=(0,el.useState)(),C=F[0],S=F[1],D=(0,el.useState)(!0),j=D[0],T=D[1],O=(0,el.useRef)(!1),P=(0,el.useRef)(!1),R=(0,el.useRef)({autoScroll:0,scroll:0}),M=(0,el.useCallback)(function(){(null==w?void 0:w.scrollTo)&&!y&&!_&&(R.current.autoScroll+=1,w.scrollTo({top:w.scrollHeight}),E(!1))},[w,y,_]);(0,el.useLayoutEffect)(function(){w&&(S(w.getBoundingClientRect()),M())},[w,y]);var L=(r=(t={loadMoreScrollThreshold:m,messages:void 0===g?[]:g,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:b,scrollToBottom:M,showNewMessages:function(){return E(!0)}}).loadMoreScrollThreshold,i=t.onScrollBy,a=t.scrollContainerMeasures,o=t.scrolledUpThreshold,s=t.scrollToBottom,l=t.showNewMessages,u=a4("useMessageListScrollManager").client,d=(0,el.useRef)({offsetHeight:0,scrollHeight:0}),p=(0,el.useRef)(),f=(0,el.useRef)(0),(0,el.useLayoutEffect)(function(){var e,m,g,v=d.current,b=p.current,y=t.messages,_=y[y.length-1]||{},w=null==b?void 0:b[b.length-1],k=a(),x=v.scrollHeight-v.offsetHeight-f.current1?o[s]--:delete o[s];var u=e?ip([t],(null==r?void 0:r.latest_reactions)||[],!0):null===(i=r.latest_reactions)||void 0===i?void 0:i.filter(function(e){return!(e.type===t.type&&e.user_id===t.user_id)}),d=e?ip([t],(null==r?void 0:r.own_reactions)||[],!0):null===(a=null==r?void 0:r.own_reactions)||void 0===a?void 0:a.filter(function(e){return e.type!==t.type});return io(io({},r),{latest_reactions:u||r.latest_reactions,own_reactions:d,reaction_counts:o,reaction_scores:o})},[o.user,o.userID]),l=function(t){var r;return{message_id:null==e?void 0:e.id,score:1,type:t,user:o.user,user_id:null===(r=o.user)||void 0===r?void 0:r.id}},u=c4()(function(r,o,u){return il(void 0,void 0,void 0,function(){var d,p;return ic(this,function(f){switch(f.label){case 0:if(!e||!a["send-reaction"])return[2];d=s(u,l(o),e),f.label=1;case 1:if(f.trys.push([1,6,,7]),t(d),!u)return[3,3];return[4,i.sendReaction(r,{type:o})];case 2:return p=f.sent(),[3,5];case 3:return[4,i.deleteReaction(r,o)];case 4:p=f.sent(),f.label=5;case 5:return t(p.message),[3,7];case 6:return f.sent(),t(e),[3,7];case 7:return[2]}})})},1e3);return function(t,r){return il(void 0,void 0,void 0,function(){var i;return ic(this,function(a){switch(a.label){case 0:if((null==r?void 0:r.preventDefault)&&r.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&&o.userID===e.user.id&&e.type===t?i=e:e.user&&o.userID!==e.user.id&&console.warn("message.own_reactions contained reactions from a different user, this indicates a bug")}),a.label=1;case 1:if(a.trys.push([1,6,,7]),!i)return[3,3];return[4,u(e.id,i.type,!1)];case 2:return a.sent(),[3,5];case 3:return[4,u(e.id,t,!0)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:return console.log({error:a.sent()}),[3,7];case 7:return[2]}})})}},bJ=function(e,t,r,i){var a=pn("useReactionClick").channelCapabilities,o=(0,el.useState)(!1),s=o[0],l=o[1],u=(0,el.useRef)(!1),d=(void 0===a?{}:a)["send-reaction"],p=!!(null==e?void 0:e.deleted_at),f=(0,el.useCallback)(function(e){var r;(!(e.target instanceof HTMLElement&&(null===(r=null==t?void 0:t.current)||void 0===r?void 0:r.contains(e.target)))||i)&&l(!1)},[l,t]);return(0,el.useEffect)(function(){var e=null==r?void 0:r.current;return s&&!u.current&&(u.current=!0,document.addEventListener("click",f),e&&e.addEventListener("mouseleave",f)),!s&&u.current&&(document.removeEventListener("click",f),e&&e.removeEventListener("mouseleave",f),u.current=!1),function(){u.current&&(document.removeEventListener("click",f),e&&e.removeEventListener("mouseleave",f),u.current=!1)}},[s,f,r]),(0,el.useEffect)(function(){var e=null==r?void 0:r.current;p&&u.current&&(document.removeEventListener("click",f),e&&e.removeEventListener("mouseleave",f),u.current=!1)},[p,f,r]),{isReactionEnabled:d,onReactionListClick:function(e){var t;null===(t=null==e?void 0:e.stopPropagation)||void 0===t||t.call(e),l(function(e){return!e})},showDetailedReactions:s}},bX=function(e){var t=fi("useRetryHandler").retrySendMessage,r=e||t;return function(e){return il(void 0,void 0,void 0,function(){return ic(this,function(t){switch(t.label){case 0:if(!e)return[3,2];return[4,r(e)];case 1:t.sent(),t.label=2;case 2:return[2]}})})}},bQ=function(e,t){void 0===t&&(t={});var r=t.getErrorNotification,i=t.notify,a=fi("useDeleteHandler"),o=a.deleteMessage,s=a.updateMessage,l=a4("useDeleteHandler").client,u=aZ("useDeleteHandler").t;return function(t){return il(void 0,void 0,void 0,function(){var a;return ic(this,function(d){switch(d.label){case 0:if(t.preventDefault(),!(null==e?void 0:e.id)||!l||!s)return[2];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,o(e)];case 2:return s(d.sent()),[3,4];case 3:return d.sent(),a=r&&p2(r,[e]),i&&i(a||u("Error deleting message"),"error"),[3,4];case 4:return[2]}})})}},b0=function(e,t){void 0===t&&(t={});var r=a4("useFlagHandler").client,i=aZ("useFlagHandler").t;return function(a){return il(void 0,void 0,void 0,function(){var o,s,l,u,d,p;return ic(this,function(f){switch(f.label){case 0:if(a.preventDefault(),o=t.getErrorNotification,s=t.getSuccessNotification,l=t.notify,!r||!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===(p=r.user)||void 0===p?void 0:p.banned)return[2,l(i("Error adding flag"),"error")];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,r.flagMessage(e.id)];case 2:return f.sent(),u=s&&p2(s,[e]),l(u||i("Message has been successfully flagged"),"success"),[3,4];case 3:return f.sent(),d=o&&p2(o,[e]),l(d||i("Error adding flag"),"error"),[3,4];case 4:return[2]}})})}},b1=function(e,t){void 0===t&&(t={});var r=pn("useMuteHandler").mutes,i=a4("useMuteHandler").client,a=aZ("useMuteHandler").t;return function(o){return il(void 0,void 0,void 0,function(){var s,l,u,d,p,f;return ic(this,function(m){switch(m.label){case 0:if(o.preventDefault(),s=t.getErrorNotification,l=t.getSuccessNotification,u=t.notify,!a||!(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(p3(e,r))return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,i.muteUser(e.user.id)];case 2:return m.sent(),d=l&&p2(l,[e.user]),u(d||a("{{ user }} has been muted",{user:e.user.name||e.user.id}),"success"),[3,4];case 3:return m.sent(),p=s&&p2(s,[e.user]),u(p||a("Error muting a user ..."),"error"),[3,4];case 4:return[3,8];case 5:return m.trys.push([5,7,,8]),[4,i.unmuteUser(e.user.id)];case 6:return m.sent(),f=a("{{ user }} has been unmuted",{user:e.user.name||e.user.id}),"string"==typeof(d=l&&p2(l,[e.user])||f)&&u(d,"success"),[3,8];case 7:return m.sent(),"string"==typeof(p=s&&p2(s,[e.user])||a("Error unmuting a user ..."))&&u(p,"error"),[3,8];case 8:return[2]}})})}};function b2(e,t){return function(r){var i;"function"==typeof e&&(null===(i=null==t?void 0:t.mentioned_users)||void 0===i?void 0:i.length)&&e(r,t.mentioned_users)}}var b3=function(e,t){var r=fi("useMentionsHandler"),i=r.onMentionsClick,a=r.onMentionsHover,o=(null==t?void 0:t.onMentionsClick)||i||function(){return null},s=(null==t?void 0:t.onMentionsHover)||a||function(){return null};return{onMentionsClick:b2(o,e),onMentionsHover:b2(s,e)}},b4=function(e,t,r){void 0===t&&(t=p6),void 0===r&&(r={});var i=r.getErrorNotification,a=r.notify,o=fi("usePinHandler").updateMessage,s=pn("usePinHandler").channelCapabilities,l=a4("usePinHandler").client,u=aZ("usePinHandler").t;return{canPin:!!(void 0===s?{}:s)["pin-message"],handlePin:function(t){return il(void 0,void 0,void 0,function(){var r;return ic(this,function(s){switch(s.label){case 0:if(t.preventDefault(),!e)return[2];if(e.pinned)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),o(io(io({},e),{pinned:!0,pinned_at:new Date,pinned_by:l.user})),[4,l.pinMessage(e)];case 2:return s.sent(),[3,4];case 3:return s.sent(),r=i&&p2(i,[e]),a&&a(r||u("Error pinning message"),"error"),o(e),[3,4];case 4:return[3,8];case 5:return s.trys.push([5,7,,8]),o(io(io({},e),{pin_expires:null,pinned:!1,pinned_at:null,pinned_by:null})),[4,l.unpinMessage(e)];case 6:return s.sent(),[3,8];case 7:return s.sent(),r=i&&p2(i,[e]),a&&a(r||u("Error removing message pin"),"error"),o(e),[3,8];case 8:return[2]}})})}}},b6=ec().memo(function(e){var t,r=e.canPin,i=e.groupedByUser,a=e.Message,o=e.message,s=e.messageActions,l=void 0===s?Object.keys(p4):s,u=e.onUserClick,d=e.onUserHover,p=e.userRoles,f=d8("Message").Message,m="regular"===o.type&&"received"===o.status,g=bY(),v=g.clearEdit,b=g.editing,y=g.setEdit,_=(t={onUserClickHandler:u,onUserHoverHandler:d},{onUserClick:function(e){"function"==typeof(null==t?void 0:t.onUserClickHandler)&&(null==o?void 0:o.user)&&t.onUserClickHandler(e,o.user)},onUserHover:function(e){"function"==typeof(null==t?void 0:t.onUserHoverHandler)&&(null==o?void 0:o.user)&&t.onUserHoverHandler(e,o.user)}}),w=_.onUserClick,k=_.onUserHover,x=p.canDelete,E=p.canEdit,F=p.canFlag,C=p.canMute,S=p.canQuote,D=p.canReact,j=p.canReply,T=p.isMyMessage,O=(0,el.useCallback)(function(){return p5(l,{canDelete:x,canEdit:E,canFlag:F,canMute:C,canPin:r,canQuote:S,canReact:D,canReply:j})},[l,x,E,F,C,r,S,D,j]);e.canPin,e.messageActions,e.onlySenderCanEdit,e.onUserClick,e.onUserHover,e.userRoles;var P=is(e,["canPin","messageActions","onlySenderCanEdit","onUserClick","onUserHover","userRoles"]),R=io(io({},P),{actionsEnabled:m,clearEditingState:v,editing:b,getMessageActions:O,handleEdit:y,isMyMessage:function(){return T},onUserClick:w,onUserHover:k,setEditingState:y});return ec().createElement(fo,{value:R},ec().createElement(a||f,{groupedByUser:i}))},function(e,t){var r=e.message,i=e.Message,a=t.message;return!!(i===t.Message&&e.endOfGroup===t.endOfGroup&&t.showDetailedReactions===e.showDetailedReactions&&p9(r,a)&&pQ()(t.messageActions,e.messageActions)&&pQ()(t.readBy,e.readBy)&&pQ()(t.highlighted,e.highlighted)&&pQ()(t.groupStyles,e.groupStyles)&&pQ()(t.mutes,e.mutes)&&pQ()(t.lastReceivedId,e.lastReceivedId))&&e.messageListRect===t.messageListRect}),b5=function(e){var t=e.closeReactionSelectorOnClick,r=e.disableQuotedMessages,i=e.getDeleteMessageErrorNotification,a=e.getFlagMessageErrorNotification,o=e.getFlagMessageSuccessNotification,s=e.getMuteUserErrorNotification,l=e.getMuteUserSuccessNotification,u=e.getPinMessageErrorNotification,d=e.message,p=e.onlySenderCanEdit,f=e.onMentionsClick,m=e.onMentionsHover,g=e.openThread,v=e.pinPermissions,b=e.retrySendMessage,y=fi("Message").addNotification,_=pn("Message"),w=_.highlightedMessageId,k=_.mutes,x=(0,el.useRef)(null),E=function(e){var t=this,r=fi("useActionHandler"),i=r.removeMessage,a=r.updateMessage,o=pn("useActionHandler").channel;return function(r,s,l){return il(t,void 0,void 0,function(){var t,u,d;return ic(this,function(p){switch(p.label){case 0:if(l&&l.preventDefault(),!e||!a||!i||!o)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 r?u[r]=s:u=io({},r),!t)return[3,2];return[4,o.sendAction(t,u)];case 1:(null==(d=p.sent())?void 0:d.message)?a(d.message):i(e),p.label=2;case 2:return[2]}})})}}(d),F=bK(d,g),C=bZ(d),S=bX(b),D=pZ(d,void 0!==p&&p,r),j=bQ(d,{getErrorNotification:i,notify:y}),T=b0(d,{getErrorNotification:a,getSuccessNotification:o,notify:y}),O=b1(d,{getErrorNotification:s,getSuccessNotification:l,notify:y}),P=b3(d,{onMentionsClick:f,onMentionsHover:m}),R=P.onMentionsClick,M=P.onMentionsHover,L=b4(d,v,{getErrorNotification:u,notify:y}),A=L.canPin,I=L.handlePin,N=bJ(d,x,void 0,t),B=N.isReactionEnabled,U=N.onReactionListClick,z=N.showDetailedReactions,H=w===d.id;return ec().createElement(b6,{additionalMessageInputProps:e.additionalMessageInputProps,autoscrollToBottom:e.autoscrollToBottom,canPin:A,customMessageActions:e.customMessageActions,disableQuotedMessages:e.disableQuotedMessages,endOfGroup:e.endOfGroup,firstOfGroup:e.firstOfGroup,formatDate:e.formatDate,groupedByUser:e.groupedByUser,groupStyles:e.groupStyles,handleAction:E,handleDelete:j,handleFlag:T,handleMute:O,handleOpenThread:F,handlePin:I,handleReaction:C,handleRetry:S,highlighted:H,initialMessage:e.initialMessage,isReactionEnabled:B,lastReceivedId:e.lastReceivedId,message:d,Message:e.Message,messageActions:e.messageActions,messageListRect:e.messageListRect,mutes:k,onMentionsClickMessage:R,onMentionsHoverMessage:M,onReactionListClick:U,onUserClick:e.onUserClick,onUserHover:e.onUserHover,pinPermissions:e.pinPermissions,reactionSelectorRef:x,readBy:e.readBy,renderText:e.renderText,showDetailedReactions:z,threadList:e.threadList,unsafeHTML:e.unsafeHTML,userRoles:D})},b8=function(e){var t=e.enrichedMessages,r=e.internalMessageProps,i=e.messageGroupStyles,a=e.read,o=e.returnAllReadData,s=e.threadList,l=a4("useMessageListElements"),u=l.client,d=l.customClasses,p=d8("useMessageListElements"),f=p.DateSeparator,m=void 0===f?b$:f,g=p.HeaderComponent,v=p.MessageSystem,b=void 0===v?bG:v,y=bW({messages:t,read:a,returnAllReadData:o,userID:u.userID}),_=(0,el.useMemo)(function(){return b_(t)},[t]);return(0,el.useMemo)(function(){return t.map(function(e){if(e.customType===mX.date&&e.date&&a$(e.date))return ec().createElement("li",{key:"".concat(e.date.toISOString(),"-i")},ec().createElement(m,{date:e.date,formatDate:r.formatDate,unread:e.unread}));if(e.customType===mX.intro&&g)return ec().createElement("li",{key:"intro"},ec().createElement(g,null));if("system"===e.type)return ec().createElement("li",{key:e.id||e.created_at},ec().createElement(b,{message:e}));var t=i[e.id]||"",a=(null==d?void 0:d.message)||"str-chat__li str-chat__li--".concat(t);return ec().createElement("li",{className:a,"data-message-id":e.id,"data-testid":a,key:e.id||e.created_at},ec().createElement(b5,io({groupStyles:[t],lastReceivedId:_,message:e,readBy:y[e.id]||[],threadList:s},r)))})},[t,r,_,i,y,s])},b9=function(e){var t=e.children;return"2"===a4("MessageListMainPanel").themeVersion?ec().createElement("div",{className:"str-chat__main-panel-inner"},t):ec().createElement(ec().Fragment,null,t)},b7=ec().memo(function(e){var t=e.active,r=e.children,i=e.className,a=e.type;return t?ec().createElement("div",{"aria-live":"polite",className:a5("str-chat__custom-notification notification-".concat(a),"str-chat__notification","str-chat-react__notification",i),"data-testid":"custom-notification"},r):null}),ye=ec().memo(function(){var e=a4("ConnectionStatus").client,t=aZ("ConnectionStatus").t,r=(0,el.useState)(!0),i=r[0],a=r[1];return(0,el.useEffect)(function(){var t=function(e){var t=e.online,r=void 0!==t&&t;i!==r&&a(r)};return e.on("connection.changed",t),function(){return e.off("connection.changed",t)}},[e,i]),ec().createElement(b7,{active:!i,className:"str-chat__connection-status-notification",type:"error"},t("Connection failure, reconnecting now..."))}),yt=function(e){var t=e.hasNewMessages,r=e.isMessageListScrolledToBottom,i=e.isNotAtLatestMessageSet,a=e.MessageNotification,o=e.notifications,s=e.scrollToBottom,l=e.threadList,u=aZ("MessageListNotifications").t;return ec().createElement("div",{className:"str-chat__list-notifications"},o.map(function(e){return ec().createElement(b7,{active:!0,key:e.id,type:e.type},e.text)}),ec().createElement(ye,null),ec().createElement(a,{isMessageListScrolledToBottom:r,onClick:s,showNotification:t||i,threadList:l},u(i?"Latest Messages":"New Messages!")))},yn=ec().memo(function(e){var t=e.children,r=e.onClick,i=e.showNotification;return void 0===i||i?ec().createElement("button",{"aria-live":"polite",className:"str-chat__message-notification","data-testid":"message-notification",onClick:r},t):null});async function yr(e,t){try{let r=await fetch("http://localhost:5001/predict",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e,direction:t})});if(r.ok){let e=await r.json();return"Translation: "+e.translation}{let e=await r.text();return"Error during the inference process: "+e}}catch(e){return"Error during the inference process: "+e.message}}var yi=function(e){let[t,r]=ec().useState(e.messages),[i,a]=ec().useState({});ec().useEffect(()=>{r(e.messages.map(e=>i[e.id]?{...e,text:i[e.id].text}:e))},[e.messages,i]),ec().useEffect(()=>{(async()=>{let o=t.length;if(o>0){let s=o-1,l=e.channel._client.userID;if(t[s].user.id!==l&&!i[t[s].id]){let e=t[s].text,i=await yr(e,"eng_to_fra");console.log(i);let o=[...t];o[s]={...o[s],text:i},r(o),a(e=>({...e,[t[s].id]:{text:i}}))}}})()},[t,i,e.channel._client.userID]);var o=e.channel,s=e.disableDateSeparator,l=e.groupStyles,u=e.hideDeletedMessages,d=e.hideNewMessageSeparator,p=e.internalInfiniteScrollProps,f=e.messageActions,m=void 0===f?Object.keys(p4):f,g=(e.messages,e.notifications),v=e.noGroupByUser,b=e.pinPermissions,y=e.returnAllReadData,_=e.threadList,w=void 0!==_&&_,k=e.unsafeHTML,x=e.headerPosition,E=e.read,F=e.messageLimit,C=void 0===F?100:F,S=e.loadMore,D=e.loadMoreNewer,j=e.hasMoreNewer,T=void 0!==j&&j,O=e.suppressAutoscroll,P=e.highlightedMessageId,R=e.jumpToLatestMessage,M=void 0===R?function(){return Promise.resolve()}:R,L=ec().useState(null),A=L[0],I=L[1],N=ec().useState(null),B=N[0],U=N[1],z=a4("MessageList").customClasses,H=d8("MessageList"),q=H.EmptyStateIndicator,V=void 0===q?c$:q,W=H.LoadingIndicator,$=H.MessageListNotifications,G=H.MessageNotification,Y=H.TypingIndicator,K=(null==p?void 0:p.threshold)||250,Z=bq({hasMoreNewer:T,listElement:A,loadMoreScrollThreshold:K,messages:t,scrolledUpThreshold:e.scrolledUpThreshold,suppressAutoscroll:O}),J=Z.hasNewMessages,X=Z.isMessageListScrolledToBottom,Q=Z.onScroll,ee=Z.scrollToBottom,et=Z.wrapperRect,en=bV({channel:o,disableDateSeparator:void 0!==s&&s,groupStyles:l,headerPosition:x,hideDeletedMessages:void 0!==u&&u,hideNewMessageSeparator:void 0!==d&&d,messages:t,noGroupByUser:void 0!==v&&v}),er=en.messageGroupStyles,ei=b8({enrichedMessages:en.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:m,messageListRect:et,onlySenderCanEdit:e.onlySenderCanEdit,onMentionsClick:e.onMentionsClick,onMentionsHover:e.onMentionsHover,onUserClick:e.onUserClick,onUserHover:e.onUserHover,openThread:e.openThread,pinPermissions:void 0===b?p6:b,renderText:e.renderText,retrySendMessage:e.retrySendMessage,unsafeHTML:void 0!==k&&k},messageGroupStyles:er,read:E,returnAllReadData:void 0!==y&&y,threadList:w}),ea=(null==z?void 0:z.messageList)||"str-chat__list",eo=w?(null==z?void 0:z.threadList)||"str-chat__list--thread str-chat__thread-list":"",es=ec().useCallback(function(){S&&S(C)},[S,C]),el=ec().useCallback(function(){D&&D(C)},[D,C]),eu=ec().useCallback(function(){return il(void 0,void 0,void 0,function(){return ic(this,function(e){switch(e.label){case 0:if(!T)return[3,2];return[4,M()];case 1:return e.sent(),[3,3];case 2:ee(),e.label=3;case 3:return[2]}})})},[ee,T]);ec().useLayoutEffect(function(){if(P){var e=null==B?void 0:B.querySelector("[data-message-id='".concat(P,"']"));null==e||e.scrollIntoView({block:"center"})}},[P]);var ed=0===ei.length&&!w;return ec().createElement(bN,{value:{listElement:A,scrollToBottom:ee}},ec().createElement(b9,null,ec().createElement("div",{className:"".concat(ea," ").concat(eo),onScroll:Q,ref:I,tabIndex:0},ed?ec().createElement(V,{key:"empty-state-indicator",listType:w?"thread":"message"}):ec().createElement(bU,io({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:ec().createElement("div",{className:"str-chat__list__loading",key:"loading-indicator"},e.loadingMore&&ec().createElement(void 0===W?cG:W,{size:20})),loadNextPage:el,loadPreviousPage:es},e.internalInfiniteScrollProps,{threshold:K}),ec().createElement("ul",{className:"str-chat__ul",ref:U},ei),ec().createElement(void 0===Y?bH:Y,{threadList:w}),ec().createElement("div",{key:"bottom"})))),ec().createElement(void 0===$?yt:$,{hasNewMessages:J,isMessageListScrolledToBottom:X,isNotAtLatestMessageSet:T,MessageNotification:void 0===G?yn:G,notifications:g,scrollToBottom:eu,threadList:w}))},ya=function(e){var t=fi("MessageList"),r=t.jumpToLatestMessage,i=t.loadMore,a=t.loadMoreNewer,o=pn("MessageList"),s=(o.members,o.mutes,o.watchers,is(o,["members","mutes","watchers"]));return ec().createElement(yi,io({jumpToLatestMessage:r,loadMore:i,loadMoreNewer:a},s,e))},yo=function(){var e=pn("MessageInputSmall"),t=e.acceptedFiles,r=e.multipleUploads,i=e.quotedMessage,a=fi("MessageInputSmall").setQuotedMessage,o=aZ("MessageInputSmall").t,s=a4("MessageInputSmall").channel,l=gK("MessageInputSmall"),u=l.closeEmojiPicker,d=l.cooldownRemaining,p=l.emojiPickerIsOpen,f=l.handleSubmit,m=l.hideSendButton,g=l.isUploadEnabled,v=l.maxFilesLeft,b=l.numberOfUploads,y=l.openEmojiPicker,_=l.setCooldownRemaining,w=l.uploadNewFiles,k=d8("MessageInputSmall"),x=k.CooldownTimer,E=k.EmojiIcon,F=k.FileUploadIcon,C=k.SendButton,S=void 0===C?vt:C,D=k.QuotedMessagePreview;return(0,el.useEffect)(function(){var e=function(e){var t;if(i&&(null===(t=e.message)||void 0===t?void 0:t.id)===i.id){if("message.deleted"===e.type){a(void 0);return}a(e.message)}};return null==s||s.on("message.deleted",e),null==s||s.on("message.updated",e),function(){null==s||s.off("message.deleted",e),null==s||s.off("message.updated",e)}},[s,i]),ec().createElement("div",{className:"str-chat__small-message-input__wrapper"},ec().createElement(gI,{accept:t,disabled:!g||0===v||!!d,handleFiles:w,maxNumberOfFiles:v,multiple:r},ec().createElement("div",{className:"str-chat__small-message-input ".concat(S?"str-chat__small-message-input--send-button-active":""," ").concat(i&&i.parent_id?"str-chat__input-flat-quoted":""," ").concat(b?"str-chat__small-message-input-has-attachments":""," ")},i&&i.parent_id&&ec().createElement(void 0===D?vP:D,{quotedMessage:i}),g&&ec().createElement(vf,null),ec().createElement("div",{className:"str-chat__small-message-input--textarea-wrapper"},ec().createElement(vT,null),d?ec().createElement("div",{className:"str-chat__input-small-cooldown"},ec().createElement(void 0===x?vN:x,{cooldownInterval:d,setCooldownRemaining:_})):ec().createElement(ec().Fragment,null,g&&ec().createElement("div",{className:"str-chat__fileupload-wrapper","data-testid":"fileinput"},ec().createElement(hd,null,o(v?"Attach files":"You've reached the maximum number of files")),ec().createElement(gU,{accepts:t,disabled:0===v,handleFiles:w,multiple:r},ec().createElement("span",{className:"str-chat__small-message-input-fileupload"},ec().createElement(void 0===F?g2:F,null)))),ec().createElement("div",{className:"str-chat__emojiselect-wrapper"},ec().createElement(hd,null,o(p?"Close emoji picker":"Open emoji picker")),ec().createElement("button",{"aria-label":"Emoji picker",className:"str-chat__small-message-input-emojiselect",onClick:p?u:y},ec().createElement(void 0===E?gQ:E,null)))),ec().createElement(gJ,{small:!0})),!(d||m)&&ec().createElement(S,{sendMessage:f}))))},ys=r(82311),yl=function(e){var t=e.message;return ec().createElement("div",{className:"giphy-preview-message"},ec().createElement(b5,{message:t}))},yc=function(e){var t=(0,el.useState)(),r=t[0],i=t[1],a=a4("useGiphyPreview").client;return(0,el.useEffect)(function(){var t=function(e){var t=e.message,r=e.user;(null==t?void 0:t.command)==="giphy"&&(null==r?void 0:r.id)===a.userID&&i(void 0)};return e&&a.on("message.new",t),function(){return a.off("message.new",t)}},[e]),{giphyPreviewMessage:r,setGiphyPreviewMessage:i}},yu=function(e){var t=e.messages,r=e.scrollToBottom,i=e.scrollToLatestMessageOnFocus,a=ec().useState(!1),o=a[0],s=a[1],l=(0,el.useCallback)(function(){s(!1)},[]);(0,el.useEffect)(function(){s(!0)},[t]);var u=(0,el.useCallback)(function(e){i&&o&&e.target===window&&setTimeout(r,100)},[i,r,o]);(0,el.useEffect)(function(){return"undefined"!=typeof window&&(window.addEventListener("focus",u),window.addEventListener("blur",l)),function(){window.removeEventListener("focus",u),window.removeEventListener("blur",l)}},[u])},yd={failed:!0,sending:!0},yp=function(e){var t=e.messages,r=(0,el.useState)(+new Date),i=r[0],a=r[1],o=(0,el.useRef)();return(0,el.useEffect)(function(){var e;(null==t?void 0:t.find(function(e){return e.id===o.current}))||a(+new Date),o.current=null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.id},[t]),{messageSetKey:i}};function yf(e,t){return e+t-1e7}var yh=function(e){var t,r,i=e.context,a=is(e,["context"]);if(!i)return ec().createElement(ec().Fragment,null);var o=i.processedMessages[yf(a["data-item-index"],i.numItemsPrepended)],s=i.messageGroupStyles[o.id];return ec().createElement("div",io({},a,{className:(null===(r=null==i?void 0:i.customClasses)||void 0===r?void 0:r.virtualMessage)||a5("str-chat__virtual-list-message-wrapper str-chat__li",((t={})["str-chat__li--".concat(s)]=s,t))}))},ym=function(e){var t=e.context,r=d8("VirtualizedMessageListHeader").LoadingIndicator,i=void 0===r?cG:r;return(null==t?void 0:t.loadingMore)?i?ec().createElement("div",{className:"str-chat__virtual-list__loading"},ec().createElement(i,{size:20})):(null==t?void 0:t.head)||null:null},yg=function(e){var t=e.context,r=d8("VirtualizedMessageList").EmptyStateIndicator,i=void 0===r?c$:r;return ec().createElement(ec().Fragment,null,i&&ec().createElement(i,{listType:(null==t?void 0:t.threadList)?"thread":"message"}))},yv=function(){var e=d8("VirtualizedMessageList").TypingIndicator;return e?ec().createElement(e,{avatarSize:24}):null},yb=function(e,t,r){var i,a,o,s,l,u,d,p,f,m=r.additionalMessageInputProps,g=r.closeReactionSelectorOnClick,v=r.customMessageActions,b=r.customMessageRenderer,y=r.DateSeparator,_=r.lastReceivedMessageId,w=r.Message,k=r.messageActions,x=r.MessageSystem,E=r.numItemsPrepended,F=r.ownMessagesReadByOthers,C=r.processedMessages,S=r.shouldGroupByUser,D=r.virtuosoRef,j=yf(e,E);if(b)return b(C,j);var T=C[j];if(!T)return ec().createElement("div",{style:{height:"1px"}});if(T.customType===mX.date&&T.date&&a$(T.date))return y?ec().createElement(y,{date:T.date,unread:T.unread}):null;if("system"===T.type)return x?ec().createElement(x,{message:T}):null;var O=S&&j>0&&(null===(i=T.user)||void 0===i?void 0:i.id)===(null===(a=C[j-1].user)||void 0===a?void 0:a.id),P=S&&(null===(o=T.user)||void 0===o?void 0:o.id)!==(null===(l=null===(s=C[j-1])||void 0===s?void 0:s.user)||void 0===l?void 0:l.id),R=S&&(null===(u=T.user)||void 0===u?void 0:u.id)!==(null===(p=null===(d=C[j+1])||void 0===d?void 0:d.user)||void 0===p?void 0:p.id);return ec().createElement(b5,{additionalMessageInputProps:m,autoscrollToBottom:null===(f=D.current)||void 0===f?void 0:f.autoscrollToBottom,closeReactionSelectorOnClick:g,customMessageActions:v,endOfGroup:R,firstOfGroup:P,groupedByUser:O,lastReceivedId:_,message:T,Message:w,messageActions:k,readBy:F[T.id]||[]})};function yy(e){("ResizeObserver loop completed with undelivered notifications."===e.message||"ResizeObserver loop limit exceeded"===e.message)&&e.stopImmediatePropagation()}function y_(e){return e.getBoundingClientRect().height}function yw(e,t){return e.findIndex(function(e){return e.id===t})}var yk=function(e){var t,r,i,a,o,s,l,u,d,p,f,m,g,v,b=e.additionalMessageInputProps,y=e.additionalVirtuosoProps,_=void 0===y?{}:y,w=e.channel,k=e.closeReactionSelectorOnClick,x=e.customMessageActions,E=e.customMessageRenderer,F=e.defaultItemHeight,C=e.disableDateSeparator,S=void 0===C||C,D=e.groupStyles,j=e.hasMore,T=e.hasMoreNewer,O=e.head,P=e.hideDeletedMessages,R=void 0!==P&&P,M=e.hideNewMessageSeparator,L=void 0!==M&&M,A=e.highlightedMessageId,I=e.jumpToLatestMessage,N=e.loadingMore,B=e.loadMore,U=e.loadMoreNewer,z=e.Message,H=e.messageActions,q=e.messageLimit,V=void 0===q?100:q,W=e.messages,$=e.notifications,G=e.overscan,Y=e.read,K=e.returnAllReadData,Z=e.scrollSeekPlaceHolder,J=e.scrollToLatestMessageOnFocus,X=e.separateGiphyPreview,Q=void 0!==X&&X,ee=e.shouldGroupByUser,et=void 0!==ee&&ee,en=e.stickToBottomScrollBehavior,er=void 0===en?"smooth":en,ei=e.suppressAutoscroll,ea=e.threadList,eo=_.components,es=is(_,["components"]);(0,el.useEffect)(function(){return window.addEventListener("error",yy),function(){window.removeEventListener("error",yy)}},[]);var eu=d8("VirtualizedMessageList"),ed=eu.DateSeparator,ep=eu.GiphyPreviewMessage,ef=eu.MessageListNotifications,eh=eu.MessageNotification,em=eu.MessageSystem,eg=eu.VirtualMessage,ev=a4("VirtualizedMessageList"),eb=ev.client,ey=ev.customClasses,e_=(0,el.useRef)(null),ew=(0,el.useMemo)(function(){var e;return null===(e=w.lastRead)||void 0===e?void 0:e.call(w)},[w]),ek=yc(Q),ex=ek.giphyPreviewMessage,eE=ek.setGiphyPreviewMessage,eF=(0,el.useMemo)(function(){return void 0===W?[]:S&&!R&&L&&!Q?W:bb({enableDateSeparator:!S,hideDeletedMessages:R,hideNewMessageSeparator:L,lastRead:ew,messages:W,setGiphyPreviewMessage:eE,userId:eb.userID||""})},[S,R,L,ew,W,null==W?void 0:W.length,eb.userID]),eC=bW({messages:eF,read:Y,returnAllReadData:void 0!==K&&K,userID:eb.userID}),eS=(0,el.useMemo)(function(){return b_(eF)},[eF]),eD=D||bx,ej=(0,el.useMemo)(function(){return eF.reduce(function(e,t,r){var i=eD(t,eF[r-1],eF[r+1],!et);return i&&(e[t.id]=i),e},{})},[eF.length,et,eD]),eT=(t=eb.userID,i=(r=(0,el.useState)(!1))[0],a=r[1],s=(o=(0,el.useState)(!0))[0],l=o[1],u=(0,el.useRef)(!1),d=(0,el.useRef)(""),p=(0,el.useRef)(!1),(0,el.useEffect)(function(){if(T){a(!0);return}if(null==eF?void 0:eF.length){var e,r=eF[eF.length-1],i=d.current;d.current=r.id||"",r.id!==i&&(p.current||((null===(e=r.user)||void 0===e?void 0:e.id)!==t&&u.current&&a(!0),u.current=!0))}},[t,eF,T]),{atBottom:p,isMessageListScrolledToBottom:s,newMessagesNotification:i,setIsMessageListScrolledToBottom:l,setNewMessagesNotification:a}),eO=eT.atBottom,eP=eT.isMessageListScrolledToBottom,eR=eT.newMessagesNotification,eM=eT.setIsMessageListScrolledToBottom,eL=eT.setNewMessagesNotification,eA=(0,el.useCallback)(function(){return il(void 0,void 0,void 0,function(){return ic(this,function(e){switch(e.label){case 0:if(!T)return[3,2];return[4,I()];case 1:return e.sent(),[2];case 2:return e_.current&&e_.current.scrollToIndex(eF.length-1),eL(!1),[2]}})})},[e_,eF,eL,eF.length,T,I]);yu({messages:W,scrollToBottom:eA,scrollToLatestMessageOnFocus:void 0!==J&&J});var eI=(f=S?0:1,m=(0,el.useRef)(),g=(0,el.useRef)(),v=(0,el.useRef)(0),(0,el.useMemo)(function(){if(!eF||!eF.length)return v.current=0,0;var e,t,r=null==eF?void 0:eF[f],i=(null==r?void 0:r.id)===(null===(e=g.current)||void 0===e?void 0:e.id),a=(null==r?void 0:r.status)&&yd[r.status];if(i||a)return v.current;m.current||(m.current=r),g.current=r;for(var o=v.current;o0){var a=e[e.length-1];if((null===(i=a.user)||void 0===i?void 0:i.id)===t&&r.current!==a.id)return r.current=a.id,!0}return!1}return(0,el.useEffect)(function(){e&&e.length&&!i.current&&(i.current=!0,a())},[e,null==e?void 0:e.length]),a}(eF,eb.userID),eU=(0,el.useCallback)(function(e,t,r){var i=r.numItemsPrepended;return r.processedMessages[yf(e,i)].id},[]);return((0,el.useEffect)(function(){var e;if(A){var t=yw(eF,A);-1!==t&&(null===(e=e_.current)||void 0===e||e.scrollToIndex({align:"center",index:t}))}},[A]),eF)?ec().createElement(ec().Fragment,null,ec().createElement(b9,null,ec().createElement("div",{className:(null==ey?void 0:ey.virtualizedMessageList)||"str-chat__virtual-list"},ec().createElement(ys.OO,io({atBottomStateChange:function(e){eO.current=e,eM(e),e&&eR&&eL(!1)},atBottomThreshold:200,className:"str-chat__message-list-scroll",components:io({EmptyPlaceholder:yg,Footer:yv,Header:ym,Item:yh},eo),computeItemKey:eU,context:{additionalMessageInputProps:b,closeReactionSelectorOnClick:k,customClasses:ey,customMessageActions:x,customMessageRenderer:E,DateSeparator:void 0===ed?b$:ed,head:O,lastReceivedMessageId:eS,loadingMore:N,Message:z||(void 0===eg?bf:eg),messageActions:H,messageGroupStyles:ej,MessageSystem:void 0===em?bG:em,numItemsPrepended:eI,ownMessagesReadByOthers:eC,processedMessages:eF,shouldGroupByUser:et,threadList:ea,virtuosoRef:e_},endReached:function(){T&&U&&U(V)},firstItemIndex:1e7-eI,followOutput:function(e){return!T&&!ei&&(eB()?e?er:"auto":!!e&&er)},increaseViewportBy:{bottom:200,top:0},initialTopMostItemIndex:function(e,t){if(t){var r=yw(e,t);if(-1!==r)return{align:"center",index:r}}return e.length-1}(eF,A),itemContent:yb,itemSize:y_,key:eN,overscan:void 0===G?0:G,ref:e_,startReached:function(){j&&B&&B(V)},style:{overflowX:"hidden"},totalCount:eF.length},es,Z?{scrollSeek:Z}:{},F?{defaultItemHeight:F}:{})))),ec().createElement(void 0===ef?yt:ef,{hasNewMessages:eR,isMessageListScrolledToBottom:eP,isNotAtLatestMessageSet:T,MessageNotification:void 0===eh?yn:eh,notifications:$,scrollToBottom:eA,threadList:ea}),ex&&ec().createElement(void 0===ep?yl:ep,{message:ex})):null};function yx(e){var t=fi("VirtualizedMessageList"),r=t.jumpToLatestMessage,i=t.loadMore,a=t.loadMoreNewer,o=pn("VirtualizedMessageList"),s=o.channel,l=o.hasMore,u=o.hasMoreNewer,d=o.highlightedMessageId,p=o.loadingMore,f=o.loadingMoreNewer,m=o.messages,g=o.notifications,v=o.read,b=o.suppressAutoscroll,y=e.messages||m;return ec().createElement(yk,io({channel:s,hasMore:!!l,hasMoreNewer:!!u,highlightedMessageId:d,jumpToLatestMessage:r,loadingMore:!!p,loadingMoreNewer:!!f,loadMore:i,loadMoreNewer:a,messages:y,notifications:g,read:v,suppressAutoscroll:b},e))}var yE=function(e){var t=e.title,r=aZ("CloseIcon").t;return ec().createElement("svg",{"data-testid":"close-no-outline",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ec().createElement("title",null,null!=t?t:r("Close")),ec().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"}))},yF=function(e){var t=e.closeThread,r=e.overrideImage,i=e.overrideTitle,a=aZ("ThreadHeader").t,o=cE({channel:pn("").channel,overrideImage:r,overrideTitle:i}).displayTitle;return ec().createElement("div",{className:"str-chat__thread-header"},ec().createElement("div",{className:"str-chat__thread-header-details"},ec().createElement("div",{className:"str-chat__thread-header-title"},a("Thread")),ec().createElement("div",{className:"str-chat__thread-header-subtitle"},o)),ec().createElement("button",{"aria-label":"Close thread",className:"str-chat__square-button str-chat__close-thread-button","data-testid":"close-button",onClick:t},ec().createElement(yE,null)))},yC=function(){var e=pn("ThreadStart").thread,t=aZ("ThreadStart").t;return(null==e?void 0:e.reply_count)?ec().createElement("div",{className:"str-chat__thread-start"},t("replyCount",{count:e.reply_count})):null},yS=function(e){var t=d8("ThreadHead").ThreadStart;return ec().createElement("div",{className:"str-chat__parent-message-li"},ec().createElement(b5,io({initialMessage:!0,threadList:!0},e)),ec().createElement(void 0===t?yC:t,null))},yD=function(e){var t=pn("Thread"),r=t.channel,i=t.channelConfig,a=t.thread;return a&&(null==i?void 0:i.replies)!==!1?ec().createElement(yj,io({},e,{key:"thread-".concat(a.id,"-").concat(null==r?void 0:r.cid)})):null},yj=function(e){var t,r,i=e.additionalMessageInputProps,a=e.additionalMessageListProps,o=e.additionalParentMessageProps,s=e.additionalVirtualizedMessageListProps,l=e.autoFocus,u=e.enableDateSeparator,d=e.fullWidth,p=e.Input,f=e.Message,m=e.messageActions,g=void 0===m?Object.keys(p4):m,v=e.virtualized,b=pn("Thread"),y=b.thread,_=b.threadHasMore,w=b.threadLoadingMore,k=b.threadMessages,x=b.threadSuppressAutoscroll,E=fi("Thread"),F=E.closeThread,C=E.loadMoreThread,S=a4("Thread"),D=S.customClasses,j=S.themeVersion,T=d8("Thread"),O=T.ThreadInput,P=T.Message,R=T.ThreadHead,M=T.ThreadHeader,L=T.VirtualMessage,A=null!==(r=null!==(t=null!=p?p:null==i?void 0:i.Input)&&void 0!==t?t:O)&&void 0!==r?r:"2"===j?vB:yo,I=f||(null==a?void 0:a.Message)||(v&&L?L:P),N=v?yx:ya;if((0,el.useEffect)(function(){(null==y?void 0:y.id)&&(null==y?void 0:y.reply_count)&&C()},[]),!y)return null;var B=(null==D?void 0:D.thread)||a5("str-chat__thread-container str-chat__thread",{"str-chat__thread--full":void 0!==d&&d,"str-chat__thread--virtualized":v}),U=ec().createElement(void 0===R?yS:R,io({key:y.id,message:y,Message:I},o));return ec().createElement("div",{className:B},ec().createElement(void 0===M?yF:M,{closeThread:F,thread:y}),ec().createElement(N,io({disableDateSeparator:!(void 0!==u&&u),hasMore:_,head:U,loadingMore:w,loadMore:C,Message:I,messageActions:g,messages:k||[],suppressAutoscroll:x,threadList:!0},v?s:a)),ec().createElement(bi,io({focus:void 0===l||l,Input:A,parent:y,publishTypingEvent:!1},i)))};let yT=!0,yO=!0;function yP(e,t,r){let i=e.match(t);return i&&i.length>=r&&parseInt(i[r],10)}function yR(e,t,r){if(!e.RTCPeerConnection)return;let i=e.RTCPeerConnection.prototype,a=i.addEventListener;i.addEventListener=function(e,i){if(e!==t)return a.apply(this,arguments);let o=e=>{let t=r(e);t&&(i.handleEvent?i.handleEvent(t):i(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(i,o),a.apply(this,[e,o])};let o=i.removeEventListener;i.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t]||!this._eventMap[t].has(r))return o.apply(this,arguments);let i=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,i])},Object.defineProperty(i,"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 yM(e){return"boolean"!=typeof e?Error("Argument type: "+typeof e+". Please use a boolean."):(yT=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function yL(e){return"boolean"!=typeof e?Error("Argument type: "+typeof e+". Please use a boolean."):(yO=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function yA(){"object"!=typeof window||yT||"undefined"==typeof console||"function"!=typeof console.log||console.log.apply(console,arguments)}function yI(e,t){yO&&console.warn(e+" is deprecated, please use "+t+" instead.")}function yN(e){return"[object Object]"===Object.prototype.toString.call(e)}function yB(e,t,r){let i=r?"outbound-rtp":"inbound-rtp",a=new Map;if(null===t)return a;let o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(r=>{r.type===i&&r.trackId===t.id&&function e(t,r,i){!r||i.has(r.id)||(i.set(r.id,r),Object.keys(r).forEach(a=>{a.endsWith("Id")?e(t,t.get(r[a]),i):a.endsWith("Ids")&&r[a].forEach(r=>{e(t,t.get(r),i)})}))}(e,r,a)})}),a}function yU(e,t){let r=e&&e.navigator;if(!r.mediaDevices)return;let i=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;let t={};return Object.keys(e).forEach(r=>{if("require"===r||"advanced"===r||"mediaSource"===r)return;let i="object"==typeof e[r]?e[r]:{ideal:e[r]};void 0!==i.exact&&"number"==typeof i.exact&&(i.min=i.max=i.exact);let a=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==i.ideal){t.optional=t.optional||[];let e={};"number"==typeof i.ideal?(e[a("min",r)]=i.ideal,t.optional.push(e),(e={})[a("max",r)]=i.ideal):e[a("",r)]=i.ideal,t.optional.push(e)}void 0!==i.exact&&"number"!=typeof i.exact?(t.mandatory=t.mandatory||{},t.mandatory[a("",r)]=i.exact):["min","max"].forEach(e=>{void 0!==i[e]&&(t.mandatory=t.mandatory||{},t.mandatory[a(e,r)]=i[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},a=function(e,a){if(t.version>=61)return a(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){let t=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=i(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});let s=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&!(r.mediaDevices.getSupportedConstraints&&r.mediaDevices.getSupportedConstraints().facingMode&&!s)){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 r.mediaDevices.enumerateDevices().then(r=>{let s=(r=r.filter(e=>"videoinput"===e.kind)).find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!s&&r.length&&t.includes("back")&&(s=r[r.length-1]),s&&(e.video.deviceId=o.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=i(e.video),yA("chrome: "+JSON.stringify(e)),a(e)})}e.video=i(e.video)}return yA("chrome: "+JSON.stringify(e)),a(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(r.getUserMedia=(function(e,t,i){a(e,e=>{r.webkitGetUserMedia(e,t,e=>{i&&i(o(e))})})}).bind(r),r.mediaDevices.getUserMedia){let e=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(t){return a(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 yz(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(r){return t(r).then(t=>{let i=r.video&&r.video.width,a=r.video&&r.video.height,o=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},i&&(r.video.mandatory.maxWidth=i),a&&(r.video.mandatory.maxHeight=a),e.navigator.mediaDevices.getUserMedia(r)})}}}function yH(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function yq(e){if("object"!=typeof e||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype)yR(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",r=>{let i;i=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===r.track.id):{track:r.track};let a=new Event("track");a.track=r.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[t.stream],this.dispatchEvent(a)}),t.stream.getTracks().forEach(r=>{let i;i=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===r.id):{track:r};let a=new Event("track");a.track=r,a.receiver=i,a.transceiver={receiver:i},a.streams=[t.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}}function yV(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 r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,i){let a=r.apply(this,arguments);return a||(a=t(this,e),this._senders.push(a)),a};let i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){i.apply(this,arguments);let t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}let r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};let i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],i.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 yW(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,r,i]=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 a=function(e){let t={};return e.result().forEach(e=>{let r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{r[t]=e.stat(t)}),t[r.id]=r}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};return arguments.length>=2?t.apply(this,[function(e){r(o(a(e)))},e]):new Promise((e,r)=>{t.apply(this,[function(t){e(o(a(t)))},r])}).then(r,i)}}function y$(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 r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>yB(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}),yR(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>yB(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,r;let i=arguments[0];return(this.getSenders().forEach(t=>{t.track===i&&(e?r=!0:e=t)}),this.getReceivers().forEach(e=>(e.track===i&&(t?r=!0:t=e),e.track===i)),r||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 yG(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,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let i=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(i)&&this._shimmedLocalStreams[r.id].push(i):this._shimmedLocalStreams[r.id]=[r,i],i};let r=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();r.apply(this,arguments);let i=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(i)};let i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],i.apply(this,arguments)};let a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{let r=this._shimmedLocalStreams[t].indexOf(e);-1!==r&&this._shimmedLocalStreams[t].splice(r,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),a.apply(this,arguments)}}function yY(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return yG(e);let r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){let e=r.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};let i=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 r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}i.apply(this,[t])};let a=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{let i=e._reverseStreams[t],a=e._streams[i.id];r=r.replace(RegExp(a.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},a.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,r){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let i=[].slice.call(arguments,1);if(1!==i.length||!i[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 a=this._streams[r.id];if(a)a.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let i=new e.MediaStream([t]);this._streams[r.id]=i,this._reverseStreams[i.id]=r,this.addStream(i)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach(function(t){let r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){let e=arguments,t=arguments.length&&"function"==typeof arguments[0];return t?r.apply(this,[t=>{let r=o(this,t);e[0].apply(null,[r])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):r.apply(this,arguments).then(e=>o(this,e))}})[t]});let s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){var e,t;let r;return arguments.length&&arguments[0].type&&(arguments[0]=(e=this,t=arguments[0],r=t.sdp,Object.keys(e._reverseStreams||[]).forEach(t=>{let i=e._reverseStreams[t],a=e._streams[i.id];r=r.replace(RegExp(i.id,"g"),a.id)}),new RTCSessionDescription({type:t.type,sdp:r}))),s.apply(this,arguments)};let l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){let e=l.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(r=>{this._streams[r].getTracks().find(t=>e.track===t)&&(t=this._streams[r])}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function yK(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}})[t]})}function yZ(e,t){yR(e,"negotiationneeded",e=>{let r=e.target;if(!(t.version<72)&&(!r.getConfiguration||"plan-b"!==r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e})}function yJ(e,t){let r=e&&e.navigator,i=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,i){yI("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,i)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){let e=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},t=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(r){return"object"==typeof r&&"object"==typeof r.audio&&(e((r=JSON.parse(JSON.stringify(r))).audio,"autoGainControl","mozAutoGainControl"),e(r.audio,"noiseSuppression","mozNoiseSuppression")),t(r)},i&&i.prototype.getSettings){let t=i.prototype.getSettings;i.prototype.getSettings=function(){let r=t.apply(this,arguments);return e(r,"mozAutoGainControl","autoGainControl"),e(r,"mozNoiseSuppression","noiseSuppression"),r}}if(i&&i.prototype.applyConstraints){let t=i.prototype.applyConstraints;i.prototype.applyConstraints=function(r){return"audio"===this.kind&&"object"==typeof r&&(e(r=JSON.parse(JSON.stringify(r)),"autoGainControl","mozAutoGainControl"),e(r,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[r])}}}}function yX(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){let e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===r.video?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function yQ(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 y0(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 r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}})[t]});let r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,a,o]=arguments;return i.apply(this,[e||null]).then(e=>{if(t.version<53&&!a)try{e.forEach(e=>{e.type=r[e.type]||e.type})}catch(t){if("TypeError"!==t.name)throw t;e.forEach((t,i)=>{e.set(i,Object.assign({},t,{type:r[t.type]||t.type}))})}return e}).then(a,o)}}function y1(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 r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=r.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 y2(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}),yR(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function y3(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){yI("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function y4(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function y6(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 r=(e=[...e]).length>0;r&&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 i=t.apply(this,arguments);if(r){let{sender:t}=i,r=t.getParameters();"encodings"in r&&(1!==r.encodings.length||0!==Object.keys(r.encodings[0]).length)||(r.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(r).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return i})}function y5(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 y8(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 y9(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 y7(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(r=>t.call(this,r,e)),e.getVideoTracks().forEach(r=>t.call(this,r,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...r){return r&&r.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 r=e.getTracks();this.getSenders().forEach(e=>{r.includes(e.track)&&this.removeTrack(e)})})}}function _e(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 r=new Event("addstream");r.stream=t,e.dispatchEvent(r)})}),t.apply(e,arguments)}}}function _t(e){if("object"!=typeof e||!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype,r=t.createOffer,i=t.createAnswer,a=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){let i=arguments.length>=2?arguments[2]:arguments[0],a=r.apply(this,[i]);return t?(a.then(e,t),Promise.resolve()):a},t.createAnswer=function(e,t){let r=arguments.length>=2?arguments[2]:arguments[0],a=i.apply(this,[r]);return t?(a.then(e,t),Promise.resolve()):a};let l=function(e,t,r){let i=a.apply(this,[e]);return r?(i.then(t,r),Promise.resolve()):i};t.setLocalDescription=l,l=function(e,t,r){let i=o.apply(this,[e]);return r?(i.then(t,r),Promise.resolve()):i},t.setRemoteDescription=l,l=function(e,t,r){let i=s.apply(this,[e]);return r?(i.then(t,r),Promise.resolve()):i},t.addIceCandidate=l}function _n(e){let t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){let e=t.mediaDevices,r=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>r(_r(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(e,r,i){t.mediaDevices.getUserMedia(e).then(r,i)}).bind(t))}function _r(e){return e&&void 0!==e.video?Object.assign({},e,{video:function e(t){return yN(t)?Object.keys(t).reduce(function(r,i){let a=yN(t[i]),o=a?e(t[i]):t[i],s=a&&!Object.keys(o).length;return void 0===o||s?r:Object.assign(r,{[i]:o})},{}):t}(e.video)}):e}function _i(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){let t=[];for(let r=0;rt.generateCertificate})}function _a(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 _o(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 r=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function _s(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var _l=r(2752),_c=r.n(_l);function _u(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 r=new t(e),i=_c().parseCandidate(e.candidate);for(let e in i)e in r||Object.defineProperty(r,e,{value:i[e]});return r.toJSON=function(){return{candidate:r.candidate,sdpMid:r.sdpMid,sdpMLineIndex:r.sdpMLineIndex,usernameFragment:r.usernameFragment}},r}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,yR(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function _d(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||yR(e,"icecandidate",e=>{if(e.candidate){let t=_c().parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol=({0:"tls",1:"tcp",2:"udp"})[t.priority>>24])}return e})}function _p(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 r=function(e){if(!e||!e.sdp)return!1;let t=_c().splitSections(e.sdp);return t.shift(),t.some(e=>{let t=_c().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},i=function(e){let t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return -1;let r=parseInt(t[1],10);return r!=r?-1:r},a=function(e){let r=65536;return"firefox"===t.browser&&(r=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),r},o=function(e,r){let i=65536;"firefox"===t.browser&&57===t.version&&(i=65535);let a=_c().matchPrefix(e.sdp,"a=max-message-size:");return a.length>0?i=parseInt(a[0].substring(19),10):"firefox"===t.browser&&-1!==r&&(i=2147483637),i},s=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(r(arguments[0])){let e;let t=i(arguments[0]),r=a(t),s=o(arguments[0],t);e=0===r&&0===s?Number.POSITIVE_INFINITY:0===r||0===s?Math.max(r,s):Math.min(r,s);let l={};Object.defineProperty(l,"maxMessageSize",{get:()=>e}),this._sctp=l}return s.apply(this,arguments)}}function _f(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){let r=e.send;e.send=function(){let i=arguments[0],a=i.length||i.size||i.byteLength;if("open"===e.readyState&&t.sctp&&a>t.sctp.maxMessageSize)throw TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}let r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){let e=r.apply(this,arguments);return t(e,this),e},yR(e,"datachannel",e=>(t(e.channel,e.target),e))}function _h(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 r=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 r=new Event("connectionstatechange",e);t.dispatchEvent(r)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function _m(e,t){if(!e.RTCPeerConnection||"chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)return;let r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){let r=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:r}):t.sdp=r}return r.apply(this,arguments)}}function _g(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let r=e.RTCPeerConnection.prototype.addIceCandidate;r&&0!==r.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():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function _v(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let r=e.RTCPeerConnection.prototype.setLocalDescription;r&&0!==r.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return r.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?r.apply(this,[e]):("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then(e=>r.apply(this,[e]))})}!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let r=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:r}=e;return r.mozGetUserMedia?(t.browser="firefox",t.version=yP(r.userAgent,/Firefox\/(\d+)\./,1)):r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection?(t.browser="chrome",t.version=yP(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2)):e.RTCPeerConnection&&r.userAgent.match(/AppleWebKit\/(\d+)\./)?(t.browser="safari",t.version=yP(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype):t.browser="Not a supported browser.",t}(e),i={browserDetails:r,commonShim:eo,extractVersion:yP,disableLog:yM,disableWarnings:yL,sdp:_l};switch(r.browser){case"chrome":if(!er||!yK||!t.shimChrome){yA("Chrome shim is not included in this adapter release.");break}if(null===r.version){yA("Chrome shim can not determine version, not shimming.");break}yA("adapter.js shimming chrome."),i.browserShim=er,_g(e,r),_v(e,r),yU(e,r),yH(e,r),yK(e,r),yq(e,r),yY(e,r),yV(e,r),yW(e,r),y$(e,r),yZ(e,r),_u(e,r),_d(e,r),_h(e,r),_p(e,r),_f(e,r),_m(e,r);break;case"firefox":if(!ei||!y0||!t.shimFirefox){yA("Firefox shim is not included in this adapter release.");break}yA("adapter.js shimming firefox."),i.browserShim=ei,_g(e,r),_v(e,r),yJ(e,r),y0(e,r),yQ(e,r),y3(e,r),y1(e,r),y2(e,r),y4(e,r),y6(e,r),y5(e,r),y8(e,r),y9(e,r),_u(e,r),_h(e,r),_p(e,r),_f(e,r);break;case"safari":if(!ea||!t.shimSafari){yA("Safari shim is not included in this adapter release.");break}yA("adapter.js shimming safari."),i.browserShim=ea,_g(e,r),_v(e,r),_i(e,r),_o(e,r),_t(e,r),y7(e,r),_e(e,r),_a(e,r),_n(e,r),_s(e,r),_u(e,r),_d(e,r),_p(e,r),_f(e,r),_m(e,r);break;default:yA("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});let _b=Symbol.for("protobuf-ts/message-type");function _y(e){let t=!1,r=[];for(let i=0;i!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];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}}(a))return!1;if(void 0===a.oneofKind)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let i of this.fields)if(void 0===i.oneof&&!this.field(e[i.localName],i,r,t))return!1;return!0}field(e,t,r,i){let a=t.repeat;switch(t.kind){case"scalar":if(void 0===e)return t.opt;if(a)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(void 0===e)return t.opt;if(a)return this.scalars(e,E.INT32,i);return this.scalar(e,E.INT32);case"message":if(void 0===e)break;if(a)return this.messages(e,t.T(),r,i);return this.message(e,t.T(),r,i);case"map":if("object"!=typeof e||null===e)return!1;if(i<2)break;if(!this.mapKeys(e,t.K,i))return!1;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),E.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),r,i)}}return!0}message(e,t,r,i){return r?t.isAssignable(e,i):t.is(e,i)}messages(e,t,r,i){if(!Array.isArray(e))return!1;if(i<2)return!0;if(r){for(let r=0;rparseInt(e)),t,r);case E.BOOL:return this.scalars(i.slice(0,r).map(e=>"true"==e||"false"!=e&&e),t,r);default:return this.scalars(i,t,r,F.STRING)}}}function _k(e){let t=typeof e;if("object"==t){if(Array.isArray(e))return"array";if(null===e)return"null"}return t}function _x(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}let _E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_F=[];for(let e=0;e<_E.length;e++)_F[_E[e].charCodeAt(0)]=e;function _C(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(127&i)<>4,(128&r)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(127&i)<>>i,o=!(a>>>7==0&&0==t),s=(o?128|a:a)&255;if(r.push(s),!o)return}let i=e>>>28&15|(7&t)<<4,a=t>>3!=0;if(r.push((a?128|i:i)&255),a){for(let e=3;e<31;e+=7){let i=t>>>e,a=i>>>7!=0,o=(a?128|i:i)&255;if(r.push(o),!a)return}r.push(t>>>31&1)}}function _D(e){let t="-"==e[0];t&&(e=e.slice(1));let r=0,i=0;function a(t,a){let o=Number(e.slice(t,a));i*=1e6,(r=1e6*r+o)>=4294967296&&(i+=r/4294967296|0,r%=4294967296)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),[t,r,i]}function _j(e,t){if(t>>>0<=2097151)return""+(4294967296*t+(e>>>0));let r=(e>>>24|t<<8)>>>0&16777215,i=t>>16&65535,a=(16777215&e)+6777216*r+6710656*i,o=r+8147497*i,s=2*i;function l(e,t){let r=e?String(e):"";return t?"0000000".slice(r.length)+r:r}return a>=1e7&&(o+=Math.floor(a/1e7),a%=1e7),o>=1e7&&(s+=Math.floor(o/1e7),o%=1e7),l(s,0)+l(o,s)+l(a,1)}function _T(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let r=0;r<9;r++)t.push(127&e|128),e>>=7;t.push(1)}}function _O(){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}function _P(e){if(!e)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}_F["-".charCodeAt(0)]=_E.indexOf("+"),_F["_".charCodeAt(0)]=_E.indexOf("/"),function(){let e=new DataView(new ArrayBuffer(8));o=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 _R=/^-?[0-9]+$/;class _M{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 _M{static from(e){if(o)switch(typeof e){case"string":if("0"==e)return this.ZERO;if(""==e)throw Error("string is no integer");e=o.C(e);case"number":if(0===e)return this.ZERO;e=o.C(e);case"bigint":if(!e)return this.ZERO;if(eo.UMAX)throw Error("ulong too large");return o.V.setBigUint64(0,e,!0),new _L(o.V.getInt32(0,!0),o.V.getInt32(4,!0))}else switch(typeof e){case"string":if("0"==e)return this.ZERO;if(e=e.trim(),!_R.test(e))throw Error("string is no integer");let[t,r,i]=_D(e);if(t)throw Error("signed value for ulong");return new _L(r,i);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 o?this.toBigInt().toString():_j(this.lo,this.hi)}toBigInt(){return _P(o),o.V.setInt32(0,this.lo,!0),o.V.setInt32(4,this.hi,!0),o.V.getBigUint64(0,!0)}}_L.ZERO=new _L(0,0);class _A extends _M{static from(e){if(o)switch(typeof e){case"string":if("0"==e)return this.ZERO;if(""==e)throw Error("string is no integer");e=o.C(e);case"number":if(0===e)return this.ZERO;e=o.C(e);case"bigint":if(!e)return this.ZERO;if(eo.MAX)throw Error("signed long too large");return o.V.setBigInt64(0,e,!0),new _A(o.V.getInt32(0,!0),o.V.getInt32(4,!0))}else switch(typeof e){case"string":if("0"==e)return this.ZERO;if(e=e.trim(),!_R.test(e))throw Error("string is no integer");let[t,r,i]=_D(e);if(t){if(i>2147483648||2147483648==i&&0!=r)throw Error("signed long too small")}else if(i>=2147483648)throw Error("signed long too large");let a=new _A(r,i);return t?a.negate():a;case"number":if(0==e)return this.ZERO;if(!Number.isSafeInteger(e))throw Error("number is no integer");return e>0?new _A(e,e/4294967296):new _A(-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 _A(t,e)}toString(){if(o)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+_j(e.lo,e.hi)}return _j(this.lo,this.hi)}toBigInt(){return _P(o),o.V.setInt32(0,this.lo,!0),o.V.setInt32(4,this.hi,!0),o.V.getBigInt64(0,!0)}}function _I(e,t){if(!e)throw Error(t)}function _N(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 _B(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 _U(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)}function _z(e,t){switch(t){case F.BIGINT:return e.toBigInt();case F.NUMBER:return e.toNumber();default:return e.toString()}}_A.ZERO=new _A(0,0);class _H{constructor(e){this.info=e}prepare(){var e;if(void 0===this.fMap)for(let t of(this.fMap={},null!==(e=this.info.fields)&&void 0!==e?e:[]))this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}assert(e,t,r){if(!e){let e=_k(r);throw("number"==e||"boolean"==e)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,r){this.prepare();let i=[];for(let[a,o]of Object.entries(e)){let e;let s=this.fMap[a];if(!s){if(!r.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${a}`);continue}let l=s.localName;if(s.oneof){if(null===o&&("enum"!==s.kind||"google.protobuf.NullValue"!==s.T()[0]))continue;if(i.includes(s.oneof))throw Error(`Multiple members of the oneof group "${s.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(s.oneof),e=t[s.oneof]={oneofKind:l}}else e=t;if("map"==s.kind){if(null===o)continue;this.assert(_x(o),s.name,o);let t=e[l];for(let[e,i]of Object.entries(o)){let a;switch(this.assert(null!==i,s.name+" map value",null),s.V.kind){case"message":a=s.V.T().internalJsonRead(i,r);break;case"enum":if(!1===(a=this.enum(s.V.T(),i,s.name,r.ignoreUnknownFields)))continue;break;case"scalar":a=this.scalar(i,s.V.T,s.V.L,s.name)}this.assert(void 0!==a,s.name+" map value",i);let o=e;s.K==E.BOOL&&(o="true"==o||"false"!=o&&o),t[o=this.scalar(o,s.K,F.STRING,s.name).toString()]=a}}else if(s.repeat){if(null===o)continue;this.assert(Array.isArray(o),s.name,o);let t=e[l];for(let e of o){let i;switch(this.assert(null!==e,s.name,null),s.kind){case"message":i=s.T().internalJsonRead(e,r);break;case"enum":if(!1===(i=this.enum(s.T(),e,s.name,r.ignoreUnknownFields)))continue;break;case"scalar":i=this.scalar(e,s.T,s.L,s.name)}this.assert(void 0!==i,s.name,o),t.push(i)}}else switch(s.kind){case"message":if(null===o&&"google.protobuf.Value"!=s.T().typeName){this.assert(void 0===s.oneof,s.name+" (oneof member)",null);continue}e[l]=s.T().internalJsonRead(o,r,e[l]);break;case"enum":let u=this.enum(s.T(),o,s.name,r.ignoreUnknownFields);if(!1===u)continue;e[l]=u;break;case"scalar":e[l]=this.scalar(o,s.T,s.L,s.name)}}}enum(e,t,r,i){if("google.protobuf.NullValue"==e[0]&&_I(null===t||"NULL_VALUE"===t,`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} only accepts null.`),null===t)return 0;switch(typeof t){case"number":return _I(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${r}, enum can only be integral number, got ${t}.`),t;case"string":let a=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(a=t.substring(e[2].length));let o=e[1][a];if(void 0===o&&i)return!1;return _I("number"==typeof o,`Unable to parse field ${this.info.typeName}#${r}, enum ${e[0]} has no value for "${t}".`),o}_I(!1,`Unable to parse field ${this.info.typeName}#${r}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,r,i){let a;try{switch(t){case E.DOUBLE:case E.FLOAT:if(null===e)return 0;if("NaN"===e)return Number.NaN;if("Infinity"===e)return Number.POSITIVE_INFINITY;if("-Infinity"===e)return Number.NEGATIVE_INFINITY;if(""===e){a="empty string";break}if("string"==typeof e&&e.trim().length!==e.length){a="extra whitespace";break}if("string"!=typeof e&&"number"!=typeof e)break;let i=Number(e);if(Number.isNaN(i)){a="not a number";break}if(!Number.isFinite(i)){a="too large or small";break}return t==E.FLOAT&&_U(i),i;case E.INT32:case E.FIXED32:case E.SFIXED32:case E.SINT32:case E.UINT32:let o;if(null===e)return 0;if("number"==typeof e?o=e:""===e?a="empty string":"string"==typeof e&&(e.trim().length!==e.length?a="extra whitespace":o=Number(e)),void 0===o)break;return t==E.UINT32?_B(o):_N(o),o;case E.INT64:case E.SFIXED64:case E.SINT64:if(null===e)return _z(_A.ZERO,r);if("number"!=typeof e&&"string"!=typeof e)break;return _z(_A.from(e),r);case E.FIXED64:case E.UINT64:if(null===e)return _z(_L.ZERO,r);if("number"!=typeof e&&"string"!=typeof e)break;return _z(_L.from(e),r);case E.BOOL:if(null===e)return!1;if("boolean"!=typeof e)break;return e;case E.STRING:if(null===e)return"";if("string"!=typeof e){a="extra whitespace";break}try{encodeURIComponent(e)}catch(e){break}return e;case E.BYTES:if(null===e||""===e)return new Uint8Array(0);if("string"!=typeof e)break;return function(e){let t=3*e.length/4;"="==e[e.length-2]?t-=2:"="==e[e.length-1]&&(t-=1);let r=new Uint8Array(t),i=0,a=0,o,s=0;for(let t=0;t>4,s=o,a=2;break;case 2:r[i++]=(15&s)<<4|(60&o)>>2,s=o,a=3;break;case 3:r[i++]=(3&s)<<6|o,a=0}}if(1==a)throw Error("invalid base64 string.");return r.subarray(0,i)}(e)}}catch(e){a=e.message}this.assert(!1,i+(a?" - "+a:""),e)}}class _q{constructor(e){var t;this.fields=null!==(t=e.fields)&&void 0!==t?t:[]}write(e,t){let r={};for(let i of this.fields){if(!i.oneof){let a=this.field(i,e[i.localName],t);void 0!==a&&(r[t.useProtoFieldName?i.name:i.jsonName]=a);continue}let a=e[i.oneof];if(a.oneofKind!==i.localName)continue;let o="scalar"==i.kind||"enum"==i.kind?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(i,a[i.localName],o);_I(void 0!==s),r[t.useProtoFieldName?i.name:i.jsonName]=s}return r}field(e,t,r){let i;if("map"==e.kind){_I("object"==typeof t&&null!==t);let a={};switch(e.V.kind){case"scalar":for(let[r,i]of Object.entries(t)){let t=this.scalar(e.V.T,i,e.name,!1,!0);_I(void 0!==t),a[r.toString()]=t}break;case"message":let o=e.V.T();for(let[i,s]of Object.entries(t)){let t=this.message(o,s,e.name,r);_I(void 0!==t),a[i.toString()]=t}break;case"enum":let s=e.V.T();for(let[i,o]of Object.entries(t)){_I(void 0===o||"number"==typeof o);let t=this.enum(s,o,e.name,!1,!0,r.enumAsInteger);_I(void 0!==t),a[i.toString()]=t}}(r.emitDefaultValues||Object.keys(a).length>0)&&(i=a)}else if(e.repeat){_I(Array.isArray(t));let a=[];switch(e.kind){case"scalar":for(let r=0;r0||r.emitDefaultValues)&&(i=a)}else switch(e.kind){case"scalar":i=this.scalar(e.T,t,e.name,e.opt,r.emitDefaultValues);break;case"enum":i=this.enum(e.T(),t,e.name,e.opt,r.emitDefaultValues,r.enumAsInteger);break;case"message":i=this.message(e.T(),t,e.name,r)}return i}enum(e,t,r,i,a,o){if("google.protobuf.NullValue"==e[0])return a||i?null:void 0;if(void 0===t){_I(i);return}if(0!==t||a||i)return(_I("number"==typeof t),_I(Number.isInteger(t)),o||!e[1].hasOwnProperty(t))?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,r,i){return void 0===t?i.emitDefaultValues?null:void 0:e.internalJsonWrite(t,i)}scalar(e,t,r,i,a){if(void 0===t){_I(i);return}let o=a||i;switch(e){case E.INT32:case E.SFIXED32:case E.SINT32:if(0===t)return o?0:void 0;return _N(t),t;case E.FIXED32:case E.UINT32:if(0===t)return o?0:void 0;return _B(t),t;case E.FLOAT:_U(t);case E.DOUBLE:if(0===t)return o?0:void 0;if(_I("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 E.STRING:if(""===t)return o?"":void 0;return _I("string"==typeof t),t;case E.BOOL:if(!1===t)return!o&&void 0;return _I("boolean"==typeof t),t;case E.UINT64:case E.FIXED64:_I("number"==typeof t||"string"==typeof t||"bigint"==typeof t);let s=_L.from(t);if(s.isZero()&&!o)return;return s.toString();case E.INT64:case E.SFIXED64:case E.SINT64:_I("number"==typeof t||"string"==typeof t||"bigint"==typeof t);let l=_A.from(t);if(l.isZero()&&!o)return;return l.toString();case E.BYTES:if(_I(t instanceof Uint8Array),!t.byteLength)return o?"":void 0;return function(e){let t="",r=0,i,a=0;for(let o=0;o>2],a=(3&i)<<4,r=1;break;case 1:t+=_E[a|i>>4],a=(15&i)<<2,r=2;break;case 2:t+=_E[a|i>>6]+_E[63&i],r=0}return r&&(t+=_E[a]+"=",1==r&&(t+="=")),t}(t)}}}function _V(e,t=F.STRING){switch(e){case E.BOOL:return!1;case E.UINT64:case E.FIXED64:return _z(_L.ZERO,t);case E.INT64:case E.SFIXED64:case E.SINT64:return _z(_A.ZERO,t);case E.DOUBLE:case E.FLOAT:return 0;case E.BYTES:return new Uint8Array(0);case E.STRING:return"";default:return 0}}(function(e){e.symbol=Symbol.for("protobuf-ts/unknown"),e.onRead=(r,i,a,o,s)=>{(t(i)?i[e.symbol]:i[e.symbol]=[]).push({no:a,wireType:o,data:s})},e.onWrite=(t,r,i)=>{for(let{no:t,wireType:a,data:o}of e.list(r))i.tag(t,a).raw(o)},e.list=(r,i)=>{if(t(r)){let t=r[e.symbol];return i?t.filter(e=>e.no==i):t}return[]},e.last=(t,r)=>e.list(t,r).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(S||(S={})),function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(D||(D={}));class _W{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,r,i){this.prepare();let a=void 0===i?e.len:e.pos+i;for(;e.pose.no-t.no)}}write(e,t,r){for(let i of(this.prepare(),this.fields)){let a,o,s=i.repeat,l=i.localName;if(i.oneof){let t=e[i.oneof];if(t.oneofKind!==l)continue;a=t[l],o=!0}else a=e[l],o=!1;switch(i.kind){case"scalar":case"enum":let u="enum"==i.kind?E.INT32:i.T;if(s){if(_I(Array.isArray(a)),s==C.PACKED)this.packed(t,u,i.no,a);else for(let e of a)this.scalar(t,u,i.no,e,!0)}else void 0===a?_I(i.opt):this.scalar(t,u,i.no,a,o||i.opt);break;case"message":if(s)for(let e of(_I(Array.isArray(a)),a))this.message(t,r,i.T(),i.no,e);else this.message(t,r,i.T(),i.no,a);break;case"map":for(let[e,o]of(_I("object"==typeof a&&null!==a),Object.entries(a)))this.mapEntry(t,r,i,e,o)}}let i=r.writeUnknownFields;!1!==i&&(!0===i?S.onWrite:i)(this.info.typeName,e,t)}mapEntry(e,t,r,i,a){e.tag(r.no,D.LengthDelimited),e.fork();let o=i;switch(r.K){case E.INT32:case E.FIXED32:case E.UINT32:case E.SFIXED32:case E.SINT32:o=Number.parseInt(i);break;case E.BOOL:_I("true"==i||"false"==i),o="true"==i}switch(this.scalar(e,r.K,1,o,!0),r.V.kind){case"scalar":this.scalar(e,r.V.T,2,a,!0);break;case"enum":this.scalar(e,E.INT32,2,a,!0);break;case"message":this.message(e,t,r.V.T(),2,a)}e.join()}message(e,t,r,i,a){void 0!==a&&(r.internalBinaryWrite(a,e.tag(i,D.LengthDelimited).fork(),t),e.join())}scalar(e,t,r,i,a){let[o,s,l]=this.scalarInfo(t,i);(!l||a)&&(e.tag(r,o),e[s](i))}packed(e,t,r,i){if(!i.length)return;_I(t!==E.BYTES&&t!==E.STRING),e.tag(r,D.LengthDelimited),e.fork();let[,a]=this.scalarInfo(t);for(let t=0;tnew _1};class _1{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(_B(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return _N(e),_T(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){_U(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){_B(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){_N(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return _N(e),_T(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),i=_A.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),i=_L.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(t)}int64(e){let t=_A.from(e);return _S(t.lo,t.hi,this.buf),this}sint64(e){let t=_A.from(e),r=t.hi>>31;return _S(t.lo<<1^r,(t.hi<<1|t.lo>>>31)^r,this.buf),this}uint64(e){let t=_L.from(e);return _S(t.lo,t.hi,this.buf),this}}let _2={readUnknownField:!0,readerFactory:e=>new _3(e)};class _3{constructor(e,t){this.varint64=_C,this.uint32=_O,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,r=7&e;if(t<=0||r<0||r>5)throw Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e){let t=this.pos;switch(e){case D.Varint:for(;128&this.buf[this.pos++];);break;case D.Bit64:this.pos+=4;case D.Bit32:this.pos+=4;break;case D.LengthDelimited:let r=this.uint32();this.pos+=r;break;case D.StartGroup:let i;for(;(i=this.tag()[1])!==D.EndGroup;)this.skip(i);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 _A(...this.varint64())}uint64(){return new _L(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(1&e);return new _A(e=(e>>>1|(1&t)<<31)^r,t=t>>>1^r)}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 _L(this.sfixed32(),this.sfixed32())}sfixed64(){return new _A(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 _4=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));class _6{constructor(e,t,r){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(__),this.options=null!=r?r:{},this.messagePrototype=Object.create(null,Object.assign(Object.assign({},_4),{[_b]:{value:this}})),this.refTypeCheck=new _w(this),this.refJsonReader=new _H(this),this.refJsonWriter=new _q(this),this.refBinReader=new _W(this),this.refBinWriter=new _$(this)}create(e){let t=function(e){let t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},_b,{value:e});for(let r of e.fields){let e=r.localName;if(!r.opt){if(r.oneof)t[r.oneof]={oneofKind:void 0};else if(r.repeat)t[e]=[];else switch(r.kind){case"scalar":t[e]=_V(r.T,r.L);break;case"enum":t[e]=0;break;case"map":t[e]={}}}}return t}(this);return void 0!==e&&_G(this,t,e),t}clone(e){let t=this.create();return _G(this,t,e),t}equals(e,t){return function(e,t,r){if(t===r)return!0;if(!t||!r)return!1;for(let i of e.fields){let e=i.localName,a=i.oneof?t[i.oneof][e]:t[e],o=i.oneof?r[i.oneof][e]:r[e];switch(i.kind){case"enum":case"scalar":let s="enum"==i.kind?E.INT32:i.T;if(!(i.repeat?_X(s,a,o):_J(s,a,o)))return!1;break;case"map":if(!("message"==i.V.kind?_Q(i.V.T(),_Z(a),_Z(o)):_X("enum"==i.V.kind?E.INT32:i.V.T,_Z(a),_Z(o))))return!1;break;case"message":let l=i.T();if(!(i.repeat?_Q(l,a,o):l.equals(a,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){_G(this,e,t)}fromBinary(e,t){let r=t?Object.assign(Object.assign({},_2),t):_2;return this.internalBinaryRead(r.readerFactory(e),e.byteLength,r)}fromJson(e,t){return this.internalJsonRead(e,t?Object.assign(Object.assign({},_K),t):_K)}fromJsonString(e,t){let r=JSON.parse(e);return this.fromJson(r,t)}toJson(e,t){return this.internalJsonWrite(e,t?Object.assign(Object.assign({},_Y),t):_Y)}toJsonString(e,t){var r;return JSON.stringify(this.toJson(e,t),null,null!==(r=null==t?void 0:t.prettySpaces)&&void 0!==r?r:0)}toBinary(e,t){let r=t?Object.assign(Object.assign({},_0),t):_0;return this.internalBinaryWrite(e,r.writerFactory(),r).finish()}internalJsonRead(e,t,r){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){let i=null!=r?r:this.create();return this.refJsonReader.read(e,i,t),i}throw Error(`Unable to parse message ${this.typeName} from JSON ${_k(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,r){return this.refBinWriter.write(e,t,r),t}internalBinaryRead(e,t,r,i){let a=null!=i?i:this.create();return this.refBinReader.read(e,a,r,t),a}}class _5{constructor(e,t,r){this.typeName=e,this.methods=t.map(e=>(function(e,t){var r,i,a;return e.service=t,e.localName=null!==(r=e.localName)&&void 0!==r?r:_y(e.name),e.serverStreaming=!!e.serverStreaming,e.clientStreaming=!!e.clientStreaming,e.options=null!==(i=e.options)&&void 0!==i?i:{},e.idempotency=null!==(a=e.idempotency)&&void 0!==a?a:void 0,e})(e,this)),this.options=null!=r?r:{}}}let{Axios:_8,AxiosError:_9,CanceledError:_7,isCancel:we,CancelToken:wt,VERSION:wn,all:wr,Cancel:wi,isAxiosError:wa,spread:wo,toFormData:ws,AxiosHeaders:wl,HttpStatusCode:wc,formToJSON:wu,getAdapter:wd,mergeConfig:wp}=nY;function wf(e){return"function"==typeof e}function wh(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}!function(e){e[e.cancelled=0]="cancelled",e[e.unknown=1]="unknown",e[e.invalid_argument=2]="invalid_argument",e[e.malformed=3]="malformed",e[e.deadline_exceeded=4]="deadline_exceeded",e[e.not_found=5]="not_found",e[e.bad_route=6]="bad_route",e[e.already_exists=7]="already_exists",e[e.permission_denied=8]="permission_denied",e[e.unauthenticated=9]="unauthenticated",e[e.resource_exhausted=10]="resource_exhausted",e[e.failed_precondition=11]="failed_precondition",e[e.aborted=12]="aborted",e[e.out_of_range=13]="out_of_range",e[e.unimplemented=14]="unimplemented",e[e.internal=15]="internal",e[e.unavailable=16]="unavailable",e[e.dataloss=17]="dataloss"}(j||(j={})),!function(e){e[e.PENDING=0]="PENDING",e[e.REJECTED=1]="REJECTED",e[e.RESOLVED=2]="RESOLVED"}(T||(T={}));var wm=wh(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}});function wg(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var wv=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,r,i,a,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var s=iu(o),l=s.next();!l.done;l=s.next())l.value.remove(this)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this)}var u=this.initialTeardown;if(wf(u))try{u()}catch(e){a=e instanceof wm?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=iu(d),f=p.next();!f.done;f=p.next()){var m=f.value;try{w_(m)}catch(e){a=null!=a?a:[],e instanceof wm?a=ip(ip([],id(a)),id(e.errors)):a.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}if(a)throw new wm(a)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)w_(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&wg(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&wg(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),wb=wv.EMPTY;function wy(e){return e instanceof wv||e&&"closed"in e&&wf(e.remove)&&wf(e.add)&&wf(e.unsubscribe)}function w_(e){wf(e)?e():e.unsubscribe()}var ww={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wk={setTimeout:function(e,t){for(var r=[],i=2;i0},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,r=this.hasError,i=this.isStopped,a=this.observers;return r||i?wb:(this.currentObservers=null,a.push(e),new wv(function(){t.currentObservers=null,wg(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new wB;return e.source=this,e},t.create=function(e,t){return new wq(e,t)},t}(wB),wq=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return ia(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:wb},t}(wH),wV={now:function(){return(wV.delegate||Date).now()},delegate:void 0},wW=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=wV);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,r),a}return ia(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,a=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(i.push(t),a||i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),a=0;a1||l(e,t)})},t&&(i[e]=t(i[e])))}function l(e,t){try{var r;(r=a[e](t)).value instanceof ih?Promise.resolve(r.value.v).then(u,d):p(o[0][2],r)}catch(e){p(o[0][3],e)}}function u(e){l("next",e)}function d(e){l("throw",e)}function p(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function(){var t,r,i;return ic(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ih(t.read())];case 3:if(i=(r=a.sent()).value,!r.done)return[3,5];return[4,ih(void 0)];case 4:return[2,a.sent()];case 5:return[4,ih(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function w3(e){return wf(null==e?void 0:e.getReader)}function w4(e){if(e instanceof wB)return e;if(null!=e){if(wf(e[wI]))return new wB(function(t){var r=e[wI]();if(wf(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(wZ(e))return new wB(function(t){for(var r=0;r0&&(t=new wR({next:function(e){return b.next(e)},error:function(e){u=!0,p(),r=ku(m,l,e),b.error(e)},complete:function(){s=!0,p(),r=ku(m,d),b.complete()}}),w4(e).subscribe(t))})(e)}}function kp(e,t){return e===t}var kf=function(e){function t(t,r){return e.call(this)||this}return ia(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(wv),kh={setInterval:function(e,t){for(var r=[],i=2;ikS}}])}internalJsonWrite(e,t){let r={};for(let[t,i]of Object.entries(e.fields))r[t]=kS.toJson(i);return r}internalJsonRead(e,t,r){if(!_x(e))throw new globalThis.Error("Unable to parse message "+this.typeName+" from JSON "+_k(e)+".");for(let[t,i]of(r||(r=this.create()),globalThis.Object.entries(e)))r.fields[t]=kS.fromJson(i);return r}create(e){let t={fields:{}};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["google.protobuf.NullValue",O]},{no:2,name:"number_value",kind:"scalar",oneof:"kind",T:1},{no:3,name:"string_value",kind:"scalar",oneof:"kind",T:9},{no:4,name:"bool_value",kind:"scalar",oneof:"kind",T:8},{no:5,name:"struct_value",kind:"message",oneof:"kind",T:()=>kF},{no:6,name:"list_value",kind:"message",oneof:"kind",T:()=>kj}])}internalJsonWrite(e,t){if(void 0===e.kind.oneofKind)throw new globalThis.Error;switch(e.kind.oneofKind){case void 0:throw new globalThis.Error;case"boolValue":return e.kind.boolValue;case"nullValue":return null;case"numberValue":return e.kind.numberValue;case"stringValue":return e.kind.stringValue;case"listValue":let r=this.fields.find(e=>6===e.no);if(r?.kind!=="message")throw new globalThis.Error;return r.T().toJson(e.kind.listValue);case"structValue":let i=this.fields.find(e=>5===e.no);if(i?.kind!=="message")throw new globalThis.Error;return i.T().toJson(e.kind.structValue)}}internalJsonRead(e,t,r){switch(r||(r=this.create()),typeof e){case"number":r.kind={oneofKind:"numberValue",numberValue:e};break;case"string":r.kind={oneofKind:"stringValue",stringValue:e};break;case"boolean":r.kind={oneofKind:"boolValue",boolValue:e};break;case"object":null===e?r.kind={oneofKind:"nullValue",nullValue:O.NULL_VALUE}:globalThis.Array.isArray(e)?r.kind={oneofKind:"listValue",listValue:kj.fromJson(e)}:r.kind={oneofKind:"structValue",structValue:kF.fromJson(e)};break;default:throw new globalThis.Error("Unable to parse "+this.typeName+" from JSON "+_k(e))}return r}create(e){let t={kind:{oneofKind:void 0}};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskS}])}internalJsonWrite(e,t){return e.values.map(e=>kS.toJson(e))}internalJsonRead(e,t,r){if(!globalThis.Array.isArray(e))throw new globalThis.Error("Unable to parse "+this.typeName+" from JSON "+_k(e));r||(r=this.create());let i=e.map(e=>kS.fromJson(e));return r.values.push(...i),r}create(e){let t={values:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posDate.parse("9999-12-31T23:59:59Z"))throw Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let i="Z";if(e.nanos>0){let t=(e.nanos+1e9).toString().substring(1);i="000000"===t.substring(3)?"."+t.substring(0,3)+"Z":"000"===t.substring(6)?"."+t.substring(0,6)+"Z":"."+t+"Z"}return new Date(r).toISOString().replace(".000Z",i)}internalJsonRead(e,t,r){if("string"!=typeof e)throw Error("Unable to parse Timestamp from JSON "+_k(e)+".");let i=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!i)throw Error("Unable to parse Timestamp from JSON. Invalid format.");let a=Date.parse(i[1]+"-"+i[2]+"-"+i[3]+"T"+i[4]+":"+i[5]+":"+i[6]+(i[8]?i[8]:"Z"));if(Number.isNaN(a))throw Error("Unable to parse Timestamp from JSON. Invalid value.");if(aDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return r||(r=this.create()),r.seconds=_A.from(a/1e3).toString(),r.nanos=0,i[7]&&(r.nanos=parseInt("1"+i[7]+"0".repeat(9-i[7].length))-1e9),r}create(e){let t={seconds:"0",nanos:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskB},{no:2,name:"started_at",kind:"message",T:()=>kO},{no:3,name:"participant_count",kind:"message",T:()=>kL},{no:4,name:"pins",kind:"message",repeat:1,T:()=>kI}])}create(e){let t={participants:[],pins:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.TrackType",L,"TRACK_TYPE_"]},{no:4,name:"joined_at",kind:"message",T:()=>kO},{no:5,name:"track_lookup_prefix",kind:"scalar",T:9},{no:6,name:"connection_quality",kind:"enum",T:()=>["stream.video.sfu.models.ConnectionQuality",R,"CONNECTION_QUALITY_"]},{no:7,name:"is_speaking",kind:"scalar",T:8},{no:8,name:"is_dominant_speaker",kind:"scalar",T:8},{no:9,name:"audio_level",kind:"scalar",T:2},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"image",kind:"scalar",T:9},{no:12,name:"custom",kind:"message",T:()=>kF},{no:13,name:"roles",kind:"scalar",repeat:2,T:9}])}create(e){let t={userId:"",sessionId:"",publishedTracks:[],trackLookupPrefix:"",connectionQuality:0,isSpeaking:!1,isDominantSpeaker:!1,audioLevel:0,name:"",image:"",roles:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.VideoQuality",M,"VIDEO_QUALITY_"]},{no:2,name:"user_id",kind:"scalar",T:9}])}create(e){let t={videoQuality:0,userId:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskq},{no:4,name:"bitrate",kind:"scalar",T:13},{no:5,name:"fps",kind:"scalar",T:13},{no:6,name:"quality",kind:"enum",T:()=>["stream.video.sfu.models.VideoQuality",M,"VIDEO_QUALITY_"]}])}create(e){let t={rid:"",bitrate:0,fps:0,quality:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.PeerType",P,"PEER_TYPE_"]},{no:2,name:"ice_candidate",kind:"scalar",T:9},{no:3,name:"session_id",kind:"scalar",T:9}])}create(e){let t={peerType:0,iceCandidate:"",sessionId:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.TrackType",L,"TRACK_TYPE_"]},{no:5,name:"layers",kind:"message",repeat:1,T:()=>kW},{no:6,name:"mid",kind:"scalar",T:9},{no:7,name:"dtx",kind:"scalar",T:8},{no:8,name:"stereo",kind:"scalar",T:8},{no:9,name:"red",kind:"scalar",T:8}])}create(e){let t={trackId:"",trackType:0,layers:[],mid:"",dtx:!1,stereo:!1,red:!1};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskF},{no:6,name:"created_at",kind:"message",T:()=>kO},{no:7,name:"updated_at",kind:"message",T:()=>kO}])}create(e){let t={type:"",id:"",createdByUserId:"",hostUserId:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.ErrorCode",A,"ERROR_CODE_"]},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"should_retry",kind:"scalar",T:8}])}create(e){let t={code:0,message:"",shouldRetry:!1};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posk3},{no:2,name:"os",kind:"message",T:()=>k6},{no:3,name:"browser",kind:"message",T:()=>k8},{no:4,name:"device",kind:"message",T:()=>k7}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.SdkType",I,"SDK_TYPE_"]},{no:2,name:"major",kind:"scalar",T:9},{no:3,name:"minor",kind:"scalar",T:9},{no:4,name:"patch",kind:"scalar",T:9}])}create(e){let t={type:0,major:"",minor:"",patch:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.PeerType",P,"PEER_TYPE_"]}])}create(e){let t={sessionId:"",peerType:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posxp}])}create(e){let t={sessionId:"",muteStates:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.TrackType",L,"TRACK_TYPE_"]},{no:2,name:"muted",kind:"scalar",T:8}])}create(e){let t={trackType:0,muted:!1};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posx_}])}create(e){let t={sessionId:"",tracks:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.TrackType",L,"TRACK_TYPE_"]},{no:4,name:"dimension",kind:"message",T:()=>kq}])}create(e){let t={userId:"",sessionId:"",trackType:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.PeerType",P,"PEER_TYPE_"]},{no:2,name:"sdp",kind:"scalar",T:9},{no:3,name:"session_id",kind:"scalar",T:9}])}create(e){let t={peerType:0,sdp:"",sessionId:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskZ}])}create(e){let t={sdp:"",sessionId:"",tracks:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={sdp:"",sessionId:"",iceRestart:!1};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posx4},{no:2,name:"publisher_answer",kind:"message",oneof:"eventPayload",T:()=>x5},{no:3,name:"connection_quality_changed",kind:"message",oneof:"eventPayload",T:()=>x9},{no:4,name:"audio_level_changed",kind:"message",oneof:"eventPayload",T:()=>Eo},{no:5,name:"ice_trickle",kind:"message",oneof:"eventPayload",T:()=>kY},{no:6,name:"change_publish_quality",kind:"message",oneof:"eventPayload",T:()=>Eb},{no:10,name:"participant_joined",kind:"message",oneof:"eventPayload",T:()=>x0},{no:11,name:"participant_left",kind:"message",oneof:"eventPayload",T:()=>x2},{no:12,name:"dominant_speaker_changed",kind:"message",oneof:"eventPayload",T:()=>En},{no:13,name:"join_response",kind:"message",oneof:"eventPayload",T:()=>xX},{no:14,name:"health_check_response",kind:"message",oneof:"eventPayload",T:()=>xH},{no:16,name:"track_published",kind:"message",oneof:"eventPayload",T:()=>xV},{no:17,name:"track_unpublished",kind:"message",oneof:"eventPayload",T:()=>x$},{no:18,name:"error",kind:"message",oneof:"eventPayload",T:()=>xM},{no:19,name:"call_grants_updated",kind:"message",oneof:"eventPayload",T:()=>E_},{no:20,name:"go_away",kind:"message",oneof:"eventPayload",T:()=>Ek},{no:21,name:"ice_restart",kind:"message",oneof:"eventPayload",T:()=>xI},{no:22,name:"pins_updated",kind:"message",oneof:"eventPayload",T:()=>xP}])}create(e){let t={eventPayload:{oneofKind:void 0}};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskI}])}create(e){let t={pins:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskQ}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.PeerType",P,"PEER_TYPE_"]},{no:2,name:"ice_candidate",kind:"scalar",T:9}])}create(e){let t={peerType:0,iceCandidate:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.PeerType",P,"PEER_TYPE_"]}])}create(e){let t={peerType:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posxY},{no:2,name:"health_check_request",kind:"message",oneof:"requestPayload",T:()=>xU}])}create(e){let t={requestPayload:{oneofKind:void 0}};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskL}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.TrackType",L,"TRACK_TYPE_"]},{no:4,name:"participant",kind:"message",T:()=>kB}])}create(e){let t={userId:"",sessionId:"",type:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.TrackType",L,"TRACK_TYPE_"]},{no:4,name:"cause",kind:"enum",T:()=>["stream.video.sfu.models.TrackUnpublishReason",N,"TRACK_UNPUBLISH_REASON_"]},{no:5,name:"participant",kind:"message",T:()=>kB}])}create(e){let t={userId:"",sessionId:"",type:0,cause:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posk1},{no:5,name:"migration",kind:"message",T:()=>xZ},{no:6,name:"fast_reconnect",kind:"scalar",T:8}])}create(e){let t={token:"",sessionId:"",subscriberSdp:"",fastReconnect:!1};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskZ},{no:3,name:"subscriptions",kind:"message",repeat:1,T:()=>x_}])}create(e){let t={fromSfuId:"",announcedTracks:[],subscriptions:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskR},{no:2,name:"reconnected",kind:"scalar",T:8}])}create(e){let t={reconnected:!1};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskB}])}create(e){let t={callCid:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.poskB}])}create(e){let t={callCid:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posEe}])}create(e){let t={connectionQualityUpdates:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.ConnectionQuality",R,"CONNECTION_QUALITY_"]}])}create(e){let t={userId:"",sessionId:"",connectionQuality:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posEi}])}create(e){let t={audioLevels:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posEl},{no:2,name:"codec",kind:"message",T:()=>kG}])}create(e){let t={};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.event.VideoLayerSetting.Priority",U,"PRIORITY_"]},{no:6,name:"codec",kind:"message",T:()=>kG},{no:7,name:"max_framerate",kind:"scalar",T:13}])}create(e){let t={name:"",active:!1,maxBitrate:0,scaleResolutionDownBy:0,priority:0,maxFramerate:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posEp},{no:2,name:"codec",kind:"message",T:()=>kG},{no:3,name:"layers",kind:"message",repeat:1,T:()=>Eh}])}create(e){let t={layers:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posEu},{no:2,name:"video_senders",kind:"message",repeat:1,T:()=>Eg}])}create(e){let t={audioSenders:[],videoSenders:[]};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.posxt},{no:2,name:"message",kind:"scalar",T:9}])}create(e){let t={message:""};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos["stream.video.sfu.models.GoAwayReason",B,"GO_AWAY_REASON_"]}])}create(e){let t={reason:0};return globalThis.Object.defineProperty(t,_b,{enumerable:!1,value:this}),void 0!==e&&_G(this,t,e),t}internalBinaryRead(e,t,r,i){let a=i??this.create(),o=e.pos+t;for(;e.pos!!e.isLocalParticipant,EE=Object.freeze({trace:0,debug:1,info:2,warn:3,error:4}),EF=(e,t,...r)=>{let i;switch(e){case"error":i=console.error;break;case"warn":i=console.warn;break;case"info":i=console.info;break;case"trace":i=console.trace;break;default:i=console.log}i(t,...r)},EC=e=>{let t=s||EF,r=(e||[]).join(":");return(e,i,...a)=>{EE[e]>=EE.info&&t(e,`[${r}]: ${i}`,...a)}};EC(["Publisher"]),EC(["Subscriber"]),"undefined"!=typeof crypto&&void 0!==crypto?.getRandomValues?crypto.getRandomValues.bind(crypto):"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);let ES=e=>"function"==typeof e,ED=e=>{let t,r;if(kl([e]).subscribe({next:([e])=>{t=e},error:e=>{r=e}}).unsubscribe(),r)throw r;return t},Ej=(e,t)=>{let r=ES(t)?t(ED(e)):t;return e.next(r),r};var ET=Object.freeze({__proto__:null,createSubscription:(e,t)=>{let r=e.subscribe(t);return()=>{r.unsubscribe()}},getCurrentValue:ED,setCurrentValue:Ej});let EO=(...e)=>(t,r)=>{for(let i of e){let e=i(t,r);if(0!==e)return e}return 0},EP=e=>t=>(r,i)=>e(r,i)?t(r,i):0,ER=(e,t)=>e.isDominantSpeaker&&!t.isDominantSpeaker?-1:!e.isDominantSpeaker&&t.isDominantSpeaker?1:0,EM=(e,t)=>e.isSpeaking&&!t.isSpeaking?-1:!e.isSpeaking&&t.isSpeaking?1:0,EL=(e,t)=>Ez(e)&&!Ez(t)?-1:!Ez(e)&&Ez(t)?1:0,EA=(e,t)=>EH(e)&&!EH(t)?-1:!EH(e)&&EH(t)?1:0,EI=(e,t)=>Eq(e)&&!Eq(t)?-1:!Eq(e)&&Eq(t)?1:0,EN=(e,t)=>{if(e.pin&&t.pin){if(!e.pin.isLocalPin&&t.pin.isLocalPin)return -1;if(e.pin.isLocalPin&&!t.pin.isLocalPin)return 1;if(e.pin.pinnedAt>t.pin.pinnedAt)return -1;if(e.pin.pinnedAt(t,r)=>t.reaction?.type===e&&r.reaction?.type!==e?-1:t.reaction?.type!==e&&r.reaction?.type===e?1:0,EU=(e,t)=>(e.roles||[]).some(e=>t.includes(e)),Ez=e=>e.publishedTracks.includes(L.SCREEN_SHARE),EH=e=>e.publishedTracks.includes(L.VIDEO),Eq=e=>e.publishedTracks.includes(L.AUDIO),EV=EP((e,t)=>e.viewportVisibilityState?.videoTrack===z.INVISIBLE||t.viewportVisibilityState?.videoTrack===z.INVISIBLE),EW=EP((e,t)=>e.viewportVisibilityState?.videoTrack===z.INVISIBLE||e.viewportVisibilityState?.videoTrack===z.UNKNOWN||t.viewportVisibilityState?.videoTrack===z.INVISIBLE||t.viewportVisibilityState?.videoTrack===z.UNKNOWN),E$=EO(EN,EL,EV(EO(ER,EM,EB("raised-hand"),EA,EI)));EO(EN,EL,ER,EV(EO(EM,EB("raised-hand"),EA,EI)));let EG=EO(EN,EW(EO(ER,EM,EB("raised-hand"),EA,EI))),EY=EO(EV(EO(ER,EM,EB("raised-hand"),EA,EI)),((...e)=>(t,r)=>EU(t,e)&&!EU(r,e)?-1:!EU(t,e)&&EU(r,e)?1:0)("admin","host","speaker"));!function(e){e.UNKNOWN="unknown",e.IDLE="idle",e.RINGING="ringing",e.JOINING="joining",e.JOINED="joined",e.LEFT="left",e.RECONNECTING="reconnecting",e.MIGRATING="migrating",e.RECONNECTING_FAILED="reconnecting-failed",e.OFFLINE="offline"}(q||(q={}));class EK{constructor(){this.backstageSubject=new kc(!0),this.blockedUserIdsSubject=new kc([]),this.createdAtSubject=new kc(new Date),this.endedAtSubject=new kc(void 0),this.startsAtSubject=new kc(void 0),this.updatedAtSubject=new kc(new Date),this.createdBySubject=new kc(void 0),this.customSubject=new kc({}),this.egressSubject=new kc(void 0),this.ingressSubject=new kc(void 0),this.recordingSubject=new kc(!1),this.sessionSubject=new kc(void 0),this.settingsSubject=new kc(void 0),this.transcribingSubject=new kc(!1),this.endedBySubject=new kc(void 0),this.thumbnailsSubject=new kc(void 0),this.membersSubject=new kc([]),this.ownCapabilitiesSubject=new kc([]),this.callingStateSubject=new kc(q.UNKNOWN),this.startedAtSubject=new kc(void 0),this.participantCountSubject=new kc(0),this.anonymousParticipantCountSubject=new kc(0),this.participantsSubject=new kc([]),this.callStatsReportSubject=new kc(void 0),this.sortParticipantsBy=E$,this.setSortParticipantsBy=e=>{this.sortParticipantsBy=e,this.setCurrentValue(this.participantsSubject,e=>e)},this.getCurrentValue=ED,this.setCurrentValue=Ej,this.setParticipantCount=e=>this.setCurrentValue(this.participantCountSubject,e),this.setStartedAt=e=>this.setCurrentValue(this.startedAtSubject,e),this.setAnonymousParticipantCount=e=>this.setCurrentValue(this.anonymousParticipantCountSubject,e),this.setParticipants=e=>this.setCurrentValue(this.participantsSubject,e),this.setCallingState=e=>this.setCurrentValue(this.callingStateSubject,e),this.setCallStatsReport=e=>this.setCurrentValue(this.callStatsReportSubject,e),this.setMembers=e=>{this.setCurrentValue(this.membersSubject,e)},this.setOwnCapabilities=e=>this.setCurrentValue(this.ownCapabilitiesSubject,e),this.findParticipantBySessionId=e=>this.participants.find(t=>t.sessionId===e),this.getParticipantLookupBySessionId=()=>this.participants.reduce((e,t)=>(e[t.sessionId]=t,e),{}),this.updateParticipant=(e,t)=>{let r=this.findParticipantBySessionId(e);if(!r){this.logger("warn",`Participant with sessionId ${e} not found`);return}let i="function"==typeof t?t(r):t,a={...r,...i};return this.setParticipants(t=>t.map(t=>t.sessionId===e?a:t))},this.updateOrAddParticipant=(e,t)=>this.findParticipantBySessionId(e)?this.setParticipants(r=>r.map(r=>r.sessionId===e?{...r,...t}:r)):this.setParticipants(e=>[...e,t]),this.updateParticipants=e=>{if(0!==Object.keys(e).length)return this.setParticipants(t=>t.map(t=>{let r=e[t.sessionId];return r?{...t,...r}:t}))},this.updateFromEvent=e=>{let t=this.eventHandlers[e.type];t&&t(e)},this.setServerSidePins=e=>{let t=e.reduce((e,t)=>(e[t.sessionId]=Date.now(),e),{});return this.setParticipants(e=>e.map(e=>{let r=t[e.sessionId];return r?{...e,pin:{isLocalPin:!1,pinnedAt:r}}:e.pin&&!e.pin.isLocalPin?{...e,pin:void 0}:e}))},this.updateFromCallResponse=e=>{this.setCurrentValue(this.backstageSubject,e.backstage),this.setCurrentValue(this.blockedUserIdsSubject,e.blocked_user_ids),this.setCurrentValue(this.createdAtSubject,new Date(e.created_at)),this.setCurrentValue(this.updatedAtSubject,new Date(e.updated_at)),this.setCurrentValue(this.startsAtSubject,e.starts_at?new Date(e.starts_at):void 0),this.setCurrentValue(this.endedAtSubject,e.ended_at?new Date(e.ended_at):void 0),this.setCurrentValue(this.createdBySubject,e.created_by),this.setCurrentValue(this.customSubject,e.custom),this.setCurrentValue(this.egressSubject,e.egress),this.setCurrentValue(this.ingressSubject,e.ingress),this.setCurrentValue(this.recordingSubject,e.recording),this.setCurrentValue(this.sessionSubject,e.session),this.setCurrentValue(this.settingsSubject,e.settings),this.setCurrentValue(this.transcribingSubject,e.transcribing),this.setCurrentValue(this.thumbnailsSubject,e.thumbnails)},this.updateFromMemberRemoved=e=>{this.setCurrentValue(this.membersSubject,t=>t.filter(t=>-1===e.members.indexOf(t.user_id)))},this.updateFromMemberAdded=e=>{this.setCurrentValue(this.membersSubject,t=>[...t,...e.members])},this.updateFromHLSBroadcastStopped=()=>{this.setCurrentValue(this.egressSubject,e=>({...e,broadcasting:!1}))},this.updateFromHLSBroadcastingFailed=()=>{this.setCurrentValue(this.egressSubject,e=>({...e,broadcasting:!1}))},this.updateFromHLSBroadcastStarted=e=>{this.setCurrentValue(this.egressSubject,t=>({...t,broadcasting:!0,hls:{...t.hls,playlist_url:e.hls_playlist_url}}))},this.updateFromSessionParticipantLeft=e=>{this.setCurrentValue(this.sessionSubject,t=>{if(!t)return this.logger("warn","Received call.session_participant_left event but no session is available.",e),t;let{participants:r,participants_count_by_role:i}=t,{user:a,user_session_id:o}=e.participant;return{...t,participants:r.filter(e=>e.user_session_id!==o),participants_count_by_role:{...i,[a.role]:Math.max(0,(i[a.role]||0)-1)}}})},this.updateFromSessionParticipantJoined=e=>{this.setCurrentValue(this.sessionSubject,t=>{if(!t)return this.logger("warn","Received call.session_participant_joined event but no session is available.",e),t;let{participants:r,participants_count_by_role:i}=t,{user:a}=e.participant;return{...t,participants:[...r,e.participant],participants_count_by_role:{...i,[a.role]:(i[a.role]||0)+1}}})},this.updateMembers=e=>{this.setCurrentValue(this.membersSubject,t=>t.map(t=>e.members.find(e=>e.user_id===t.user_id)||t))},this.updateParticipantReaction=e=>{let{user:t,custom:r,type:i,emoji_code:a}=e.reaction;this.setParticipants(e=>e.map(e=>e.userId!==t.id?e:{...e,reaction:{type:i,emoji_code:a,custom:r}}))},this.unblockUser=e=>{this.setCurrentValue(this.blockedUserIdsSubject,t=>t?t.filter(t=>t!==e.user.id):t)},this.blockUser=e=>{this.setCurrentValue(this.blockedUserIdsSubject,t=>[...t||[],e.user.id])},this.updateOwnCapabilities=e=>{e.user.id===this.localParticipant?.userId&&this.setCurrentValue(this.ownCapabilitiesSubject,e.own_capabilities)},this.logger=EC(["CallState"]),this.participants$=this.participantsSubject.asObservable().pipe(ki(e=>e.sort(this.sortParticipantsBy)),kd({bufferSize:1,refCount:!0})),this.localParticipant$=this.participants$.pipe(ki(e=>e.find(Ex)),kd({bufferSize:1,refCount:!0})),this.remoteParticipants$=this.participants$.pipe(ki(e=>e.filter(e=>!e.isLocalParticipant)),kd({bufferSize:1,refCount:!0})),this.pinnedParticipants$=this.participants$.pipe(ki(e=>e.filter(e=>!!e.pin)),kd({bufferSize:1,refCount:!0})),this.dominantSpeaker$=this.participants$.pipe(ki(e=>e.find(e=>e.isDominantSpeaker)),kd({bufferSize:1,refCount:!0})),this.hasOngoingScreenShare$=this.participants$.pipe(ki(e=>e.some(e=>e.publishedTracks.includes(L.SCREEN_SHARE))),function(e,t){return void 0===t&&(t=wN),e=null!=e?e:kp,w8(function(r,i){var a,o=!0;r.subscribe(w9(i,function(r){var s=t(r);(o||!e(a,s))&&(o=!1,a=s,i.next(r))}))})}(),kd({bufferSize:1,refCount:!0})),this.startedAt$=this.startedAtSubject.asObservable(),this.participantCount$=this.participantCountSubject.asObservable(),this.anonymousParticipantCount$=this.anonymousParticipantCountSubject.asObservable(),this.callStatsReport$=this.callStatsReportSubject.asObservable(),this.members$=this.membersSubject.asObservable(),this.ownCapabilities$=this.ownCapabilitiesSubject.asObservable(),this.callingState$=this.callingStateSubject.asObservable(),this.backstage$=this.backstageSubject.asObservable(),this.blockedUserIds$=this.blockedUserIdsSubject.asObservable(),this.createdAt$=this.createdAtSubject.asObservable(),this.endedAt$=this.endedAtSubject.asObservable(),this.startsAt$=this.startsAtSubject.asObservable(),this.updatedAt$=this.updatedAtSubject.asObservable(),this.createdBy$=this.createdBySubject.asObservable(),this.custom$=this.customSubject.asObservable(),this.egress$=this.egressSubject.asObservable(),this.ingress$=this.ingressSubject.asObservable(),this.recording$=this.recordingSubject.asObservable(),this.session$=this.sessionSubject.asObservable(),this.settings$=this.settingsSubject.asObservable(),this.transcribing$=this.transcribingSubject.asObservable(),this.endedBy$=this.endedBySubject.asObservable(),this.thumbnails$=this.thumbnailsSubject.asObservable(),this.eventHandlers={"call.permission_request":void 0,"call.recording_failed":void 0,"call.recording_ready":void 0,"call.user_muted":void 0,"connection.error":void 0,"connection.ok":void 0,"health.check":void 0,custom:void 0,"call.accepted":e=>this.updateFromCallResponse(e.call),"call.blocked_user":this.blockUser,"call.created":e=>this.updateFromCallResponse(e.call),"call.ended":e=>{this.updateFromCallResponse(e.call),this.setCurrentValue(this.endedBySubject,e.user)},"call.hls_broadcasting_failed":this.updateFromHLSBroadcastingFailed,"call.hls_broadcasting_started":this.updateFromHLSBroadcastStarted,"call.hls_broadcasting_stopped":this.updateFromHLSBroadcastStopped,"call.live_started":e=>this.updateFromCallResponse(e.call),"call.member_added":this.updateFromMemberAdded,"call.member_removed":this.updateFromMemberRemoved,"call.member_updated_permission":this.updateMembers,"call.member_updated":this.updateMembers,"call.notification":e=>{this.updateFromCallResponse(e.call),this.setMembers(e.members)},"call.permissions_updated":this.updateOwnCapabilities,"call.reaction_new":this.updateParticipantReaction,"call.recording_started":()=>this.setCurrentValue(this.recordingSubject,!0),"call.recording_stopped":()=>this.setCurrentValue(this.recordingSubject,!1),"call.rejected":e=>this.updateFromCallResponse(e.call),"call.ring":e=>this.updateFromCallResponse(e.call),"call.session_ended":e=>this.updateFromCallResponse(e.call),"call.session_participant_joined":this.updateFromSessionParticipantJoined,"call.session_participant_left":this.updateFromSessionParticipantLeft,"call.session_started":e=>this.updateFromCallResponse(e.call),"call.unblocked_user":this.unblockUser,"call.updated":e=>this.updateFromCallResponse(e.call)}}get participantCount(){return this.getCurrentValue(this.participantCount$)}get startedAt(){return this.getCurrentValue(this.startedAt$)}get anonymousParticipantCount(){return this.getCurrentValue(this.anonymousParticipantCount$)}get participants(){return this.getCurrentValue(this.participants$)}get localParticipant(){return this.getCurrentValue(this.localParticipant$)}get remoteParticipants(){return this.getCurrentValue(this.remoteParticipants$)}get dominantSpeaker(){return this.getCurrentValue(this.dominantSpeaker$)}get pinnedParticipants(){return this.getCurrentValue(this.pinnedParticipants$)}get hasOngoingScreenShare(){return this.getCurrentValue(this.hasOngoingScreenShare$)}get callingState(){return this.getCurrentValue(this.callingState$)}get callStatsReport(){return this.getCurrentValue(this.callStatsReport$)}get members(){return this.getCurrentValue(this.members$)}get ownCapabilities(){return this.getCurrentValue(this.ownCapabilities$)}get backstage(){return this.getCurrentValue(this.backstage$)}get blockedUserIds(){return this.getCurrentValue(this.blockedUserIds$)}get createdAt(){return this.getCurrentValue(this.createdAt$)}get endedAt(){return this.getCurrentValue(this.endedAt$)}get startsAt(){return this.getCurrentValue(this.startsAt$)}get updatedAt(){return this.getCurrentValue(this.updatedAt$)}get createdBy(){return this.getCurrentValue(this.createdBy$)}get custom(){return this.getCurrentValue(this.custom$)}get egress(){return this.getCurrentValue(this.egress$)}get ingress(){return this.getCurrentValue(this.ingress$)}get recording(){return this.getCurrentValue(this.recording$)}get session(){return this.getCurrentValue(this.session$)}get settings(){return this.getCurrentValue(this.settings$)}get transcribing(){return this.getCurrentValue(this.transcribing$)}get endedBy(){return this.getCurrentValue(this.endedBy$)}get thumbnails(){return this.getCurrentValue(this.thumbnails$)}}EC(["events"]);var EZ=Object.freeze({__proto__:null,isChrome:()=>"undefined"!=typeof navigator&&navigator.userAgent?.includes("Chrome"),isFirefox:()=>"undefined"!=typeof navigator&&navigator.userAgent?.includes("Firefox"),isSafari:()=>"undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent||"")});z.UNKNOWN,z.UNKNOWN;class EJ{constructor(e,t={sortParticipantsBy:E$}){this.name=e,this.options=t}}class EX{constructor(e){this.register=e=>{this.callTypes[e.name]=e},this.unregister=e=>{delete this.callTypes[e]},this.get=e=>(this.callTypes[e]||this.register(new EJ(e)),this.callTypes[e]),this.callTypes=e.reduce((e,t)=>(e[t.name]=t,e),{})}}let EQ=new EX([new EJ("default",{sortParticipantsBy:E$}),new EJ("development",{sortParticipantsBy:E$}),new EJ("livestream",{sortParticipantsBy:EY}),new EJ("audio_room",{sortParticipantsBy:EY})]),E0=e=>new wB(t=>{navigator.mediaDevices.getUserMedia(e).then(e=>{navigator.mediaDevices.enumerateDevices().then(r=>{t.next(r),Fp(e),t.complete()})}).catch(e=>{EC(["devices"])("error","Failed to get devices",e),t.error(e)})}),E1=()=>"undefined"!=typeof document&&void 0!==document.createElement("audio").sinkId,E2={audio:{autoGainControl:!0,noiseSuppression:!0,echoCancellation:!0}},E3={video:{width:1280,height:720}},E4=e=>{let t;return()=>(t||(t=e()),t)},E6=E4(()=>new wB(e=>{if(!navigator.mediaDevices.addEventListener)return;let t=()=>e.next();return navigator.mediaDevices.addEventListener("devicechange",t),()=>{navigator.mediaDevices.removeEventListener("devicechange",t)}}).pipe(function(e,t){return void 0===t&&(t=kv),w8(function(e,r){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,r.next(e)}};function l(){var e=o+500,a=t.now();if(akr(navigator.mediaDevices.enumerateDevices())),kd(1))),E5=E4(()=>k_(E0(E2),E6()).pipe(kd(1))),E8=E4(()=>k_(E0(E3),E6()).pipe(kd(1))),E9=()=>E5().pipe(ki(e=>e.filter(e=>"audioinput"===e.kind))),E7=()=>E8().pipe(ki(e=>e.filter(e=>"videoinput"===e.kind))),Fe=()=>E5().pipe(ki(e=>e.filter(e=>"audiooutput"===e.kind))),Ft=async e=>{try{return await navigator.mediaDevices.getUserMedia(e)}catch(t){throw EC(["devices"])("error","Failed get user media",{error:t,constraints:e}),t}},Fn=async e=>Ft({audio:{...E2.audio,...e}}),Fr=async e=>Ft({video:{...E3.video,...e}}),Fi=async e=>{try{return await navigator.mediaDevices.getDisplayMedia({video:!0,audio:{channelCount:{ideal:2},echoCancellation:!1,autoGainControl:!1,noiseSuppression:!1},systemAudio:"include",...e})}catch(e){throw EC(["devices"])("error","Failed to get screen share stream",e),e}},Fa=(e,t)=>{let r;switch(e){case"audioinput":r=E9();break;case"videoinput":r=E7();break;case"audiooutput":r=Fe()}return kl([r,t]).pipe(kw(([e,t])=>!!t&&!e.find(e=>e.deviceId===t)),ki(()=>!0))},Fo=e=>Fa("audioinput",e),Fs=e=>Fa("videoinput",e),Fl=e=>Fa("audiooutput",e),Fc=e=>{let t;switch(e){case"audioinput":t=E9();break;case"videoinput":t=E7();break;case"audiooutput":t=Fe();break;default:throw Error("Unknown MediaDeviceKind",e)}return t.pipe(w8(function(e,t){var r,i=!1;e.subscribe(w9(t,function(e){var a=r;r=e,i&&t.next([a,e]),i=!0}))}),kw(([e,t])=>{let r=e.find(e=>"default"===e.deviceId),i=t.find(e=>"default"===e.deviceId);return!!(t.length>e.length&&r&&i&&r.groupId!==i.groupId)}),ki(()=>!0))},Fu=()=>Fc("audioinput"),Fd=()=>Fc("videoinput"),Fp=e=>{e.active&&(e.getTracks().forEach(t=>{t.stop(),e.removeTrack(t)}),"function"==typeof e.release&&e.release())},Ff=(e,t,r={})=>{let{detectionFrequencyInMs:i=500,audioLevelThreshold:a=150,fftSize:o=128,destroyStreamOnStop:s=!0}=r,l=new AudioContext,u=l.createAnalyser();u.fftSize=o;let d=l.createMediaStreamSource(e);d.connect(u);let p=setInterval(()=>{let r=new Uint8Array(u.frequencyBinCount);u.getByteFrequencyData(r);let i=r.some(e=>e>=a),o=r.reduce((e,t)=>e+t,0)/r.length,s=o>a?100:Math.round(o/a*100);e.getAudioTracks()[0]?.enabled?t({isSoundDetected:i,audioLevel:s}):t({isSoundDetected:!1,audioLevel:0})},i);return async function(){clearInterval(p),d.disconnect(),u.disconnect(),await l.close(),s&&e.getTracks().forEach(t=>{t.stop(),e.removeTrack(t)})}};(function(e){e.Closed="CLOSED",e.Connected="CONNECTED",e.Connecting="CONNECTING",e.Disconnected="DISCONNECTED",e.Init="INIT"})(V||(V={})),EC(["location"]);let Fh={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 Fm{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||Fh,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+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,r=Array(t>1?t-1:0),i=1;i{let[t,i]=e;for(let e=0;e{let[i,a]=t;for(let t=0;t{e=r,t=i});return r.resolve=e,r.reject=t,r}function Fy(e){return null==e?"":""+e}let F_=/###/g;function Fw(e,t,r){function i(e){return e&&e.indexOf("###")>-1?e.replace(F_,"."):e}function a(){return!e||"string"==typeof e}let o="string"!=typeof t?t:t.split("."),s=0;for(;s":">",'"':""","'":"'","/":"/"};function FC(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>FF[e]):e}class FS{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 r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let FD=[" ",",","?","!",";"],Fj=new FS(20);function FT(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(r),a=e;for(let e=0;e-1&&s0?e.replace("_","-"):e}class FP extends Fv{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,r){let i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,s=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):"string"==typeof r&&o?i.push(...r.split(o)):i.push(r)));let l=Fx(this.data,i);return(!l&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),l||!s||"string"!=typeof r)?l:FT(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),i=t,t=s[1]),this.addNamespaces(t),Fk(this.data,s,i),a.silent||this.emit("added",e,t,r,i)}addResources(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let i in r)("string"==typeof r[i]||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,a){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=t,t=s[1]),this.addNamespaces(t);let l=Fx(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?function e(t,r,i){for(let a in r)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof r[a]||r[a]instanceof String?i&&(t[a]=r[a]):e(t[a],r[a],i):t[a]=r[a]);return t}(l,r,a):l={...l,...r},Fk(this.data,s,l),o.silent||this.emit("added",e,t,r)}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 FR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,i,a){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,i,a))}),t}};let FM={};class FL extends Fv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,r){e.forEach(e=>{t[e]&&(r[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=Fg.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 r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";let i=FD.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===i.length)return!0;let a=Fj.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),o=!a.test(e);if(!o){let t=e.indexOf(r);t>0&&!a.test(e.substring(0,t))&&(o=!0)}return o}(e,r,i);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:a};let o=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(o[0])>-1)&&(a=o.shift()),e=o.join(i)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}translate(e,t,r){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 i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),l=s[s.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){let e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:o}let p=this.resolve(e,t),f=p&&p.res,m=p&&p.usedKey||o,g=p&&p.exactUsedKey||o,v=Object.prototype.toString.apply(f),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(y&&f&&_&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&!("string"==typeof b&&Array.isArray(f))){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(m,f,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(a){let e=Array.isArray(f),r=e?[]:{},i=e?g:m;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let o=`${i}${a}${e}`;r[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),r[e]===o&&(r[e]=f[e])}f=r}}else if(y&&"string"==typeof b&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,t,r));else{let i=!1,s=!1,d=void 0!==t.count&&"string"!=typeof t.count,m=FL.hasDefaultValue(t),g=d?this.pluralResolver.getSuffix(u,t.count,t):"",v=t.ordinal&&d?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",b=d&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=b&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${g}`]||t[`defaultValue${v}`]||t.defaultValue;!this.isValidLookup(f)&&m&&(i=!0,f=y),this.isValidLookup(f)||(s=!0,f=o);let _=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,w=m&&y!==f&&this.options.updateMissing;if(s||i||w){if(this.logger.log(w?"updateKey":"missingKey",u,l,o,w?y:f),a){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=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t{let a=m&&i!==f?i:_;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,r,a,w,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,r,a,w,t),this.emit("missingKey",e,l,r,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&d?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);b&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{i([e],o+r,t[`defaultValue${r}`]||y)})}):i(e,o,y))}f=this.extendTranslation(f,e,t,p,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,i?f:void 0):this.options.parseMissingKeyHandler(f))}return i?(p.res=f,p.usedParams=this.getUsedParamsDetails(t),p):f}extendTranslation(e,t,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),l){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(r.lng=i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,s),u=l.key;r=u;let d=l.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let p=void 0!==s.count&&"string"!=typeof s.count,f=p&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,g=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);d.forEach(e=>{this.isValidLookup(t)||(o=e,!FM[`${g[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(FM[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${g.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!!!")),g.forEach(r=>{let o;if(this.isValidLookup(t))return;a=r;let l=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,u,r,e,s);else{let e;p&&(e=this.pluralResolver.getSuffix(r,s.count,s));let t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(l.push(u+e),s.ordinal&&0===e.indexOf(i)&&l.push(u+e.replace(i,this.options.pluralSeparator)),f&&l.push(u+t)),m){let r=`${u}${this.options.contextSeparator}${s.context}`;l.push(r),p&&(l.push(r+e),s.ordinal&&0===e.indexOf(i)&&l.push(r+e.replace(i,this.options.pluralSeparator)),f&&l.push(r+t))}}for(;o=l.pop();)this.isValidLookup(t)||(i=o,t=this.getResource(r,e,o,s))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function FA(e){return e.charAt(0).toUpperCase()+e.slice(1)}class FI{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fg.create("languageUtils")}getScriptPartFromCode(e){if(!(e=FO(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=FO(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"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=FA(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=FA(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=FA(r[2].toLowerCase()))),r.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 r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.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 r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=e=>{e&&(this.isSupportedCode(e)?i.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&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach(e=>{0>i.indexOf(e)&&a(this.formatLanguageCode(e))}),i}}let FN=[{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}],FB={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)}},FU=["v1","v2","v3"],Fz=["v4"],FH={zero:0,one:1,two:2,few:3,many:4,other:5};class Fq{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Fg.create("pluralResolver"),(!this.options.compatibilityJSON||Fz.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 FN.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:FB[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(FO("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]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>FH[e]-FH[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let 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=""));let a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!FU.includes(this.options.compatibilityJSON)}}function FV(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=function(e,t,r){let i=Fx(e,r);return void 0!==i?i:Fx(t,r)}(e,t,r);return!o&&a&&"string"==typeof r&&void 0===(o=FT(e,r,i))&&(o=FT(t,r,i)),o}class FW{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Fg.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:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:p,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:g,nestingSuffixEscaped:v,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:_}=e.interpolation;this.escape=void 0!==t?t:FC,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=a?FE(a):o||"{{",this.suffix=s?FE(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?FE(f):m||FE("$t("),this.nestingSuffix=g?FE(g):v||FE(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==_&&_,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,r,i){let a,o,s;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}let d=e=>{if(0>e.indexOf(this.formatSeparator)){let a=FV(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,r,{...i,...t,interpolationkey:e}):a}let a=e.split(this.formatSeparator),o=a.shift().trim(),s=a.join(this.formatSeparator).trim();return this.format(FV(t,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:o})};this.resetRegExp();let p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(s=0;a=t.regex.exec(e);){let r=a[1].trim();if(void 0===(o=d(r))){if("function"==typeof p){let t=p(e,a,i);o="string"==typeof t?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))o="";else if(f){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=Fy(o));let l=t.safeValue(o);if(e=e.replace(a[0],l),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){let r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let i=e.split(RegExp(`${r}[ ]*{`)),o=`{${i[1]}`;e=i[0];let s=(o=this.interpolate(o,a)).match(/'/g),l=o.match(/"/g);(s&&s.length%2==0&&!l||l.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${o}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let l=[];(a=(a={...o}).replace&&"string"!=typeof a.replace?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),l=e,u=!0}if((i=t(s.call(this,r[1].trim(),a),a))&&r[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Fy(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}function F$(e){let t={};return function(r,i,a){let o=i+JSON.stringify(a),s=t[o];return s||(s=e(FO(i),a),t[o]=s),s(r)}}class FG{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Fg.create("formatter"),this.options=e,this.formats={number:F$((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:F$((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:F$((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:F$((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:F$((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=F$(t)}format(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:a,formatOptions:o}=function(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let a=i[1].substring(0,i[1].length-1);"currency"===t&&0>a.indexOf(":")?r.currency||(r.currency=a.trim()):"relativetime"===t&&0>a.indexOf(":")?r.range||(r.range=a.trim()):a.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),a=i.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=a),"false"===a&&(r[o]=!1),"true"===a&&(r[o]=!0),isNaN(a)||(r[o]=parseInt(a,10))}})}return{formatName:t,formatOptions:r}}(t);if(this.formats[a]){let t=e;try{let s=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},l=s.locale||s.lng||i.locale||i.lng||r;t=this.formats[a](e,l,{...o,...i,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}}class FY extends Fv{constructor(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Fg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,t,r,i){let a={},o={},s={},l={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[t]&&(l[t]=!0)))}),i||(s[e]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){let i=e.split("|"),a=i[0],o=i[1];t&&this.emit("failedLoading",a,o,t),r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let s={};this.queue.forEach(r=>{(function(e,t,r,i){let{obj:a,k:o}=Fw(e,t,Object);a[o]=a[o]||[],a[o].push(r)})(r.loaded,[a],o),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=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:r,tried:i,wait:a,callback:o});return}this.readingCalls++;let s=(s,l)=>{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(s&&l&&i{this.read.call(this,e,t,r,i+1,2*a,o)},a);return}o(s,l)},l=this.backend[r].bind(this.backend);if(2===l.length){try{let r=l(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return l(e,t,s)}prepareLoading(e,t){let r=arguments.length>2&&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]);let a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${a} for language ${i}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,i,a){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=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 "${r}" 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!=r&&""!==r){if(this.backend&&this.backend.create){let l={...o,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let a;(a=5===u.length?u(e,t,r,i,l):u(e,t,r,i))&&"function"==typeof a.then?a.then(e=>s(null,e)).catch(s):s(null,a)}catch(e){s(e)}else u(e,t,r,i,s,l)}e&&e[0]&&this.store.addResource(e[0],t,r,i)}}}function FK(){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 r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function FZ(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 FJ(){}class FX extends Fv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=FZ(e),this.services={},this.logger=Fg,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]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=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 i=FK();function a(e){return e?"function"==typeof e?new e:e:null}if(this.options={...i,...this.options,...FZ(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.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?Fg.init(a(this.modules.logger),this.options):Fg.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=FG);let r=new FI(this.options);this.store=new FP(this.options.resources,this.options);let o=this.services;o.logger=Fg,o.resourceStore=this.store,o.languageUtils=r,o.pluralResolver=new Fq(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(o.formatter=a(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new FW(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new FY(a(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=FJ),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=Fb(),s=()=>{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),r(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?s():setTimeout(s,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FJ,r=t,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};i?t(i):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),r(e)})}else r(null)}reloadResources(e,t,r){let i=Fb();return e||(e=this.languages),t||(t=this.options.ns),r||(r=FJ),this.services.backendConnector.reload(e,t,e=>{i.resolve(),r(e)}),i}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&&FR.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 r=this;this.isLanguageChangingTo=e;let i=Fb();this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(a(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};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(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),i}getFixedT(e,t,r){var i=this;let a=function(e,t){let o,s;if("object"!=typeof t){for(var l=arguments.length,u=Array(l>2?l-2:0),d=2;d`${o.keyPrefix}${p}${e}`):o.keyPrefix?`${o.keyPrefix}${p}${e}`:e,i.t(s,o)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=r,a}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 r=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}loadNamespaces(e,t){let r=Fb();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=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=Fb();"string"==typeof e&&(e=[e]);let i=this.options.preload||[],a=e.filter(e=>0>i.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=i.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(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 FI(FK())).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 FX(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FJ,r=e.forkResourceStore;r&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},a=new FX(i);return(void 0!==e.debug||void 0!==e.prefix)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new FP(this.store.data,i),a.services.resourceStore=a.store),a.translator=new FL(a.services,i),a.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i{let{call:t,children:r}=e;return(0,es.jsx)(F0.Provider,{value:t,children:r})},F2=()=>(0,el.useContext)(F0),F3="stream-video",F4={debug:!1,currentLanguage:"en"},F6=Object.entries({}).reduce((e,[t,r])=>(e[t]={[F3]:r},e),{}),F5=e=>e;class F8{constructor(e={}){this.t=F5,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 r="undefined"!=typeof window&&window.navigator?window.navigator.language:void 0;await this.i18nInstance.changeLanguage(e||r),t?.(this.currentLanguage)},this.registerTranslationsForLanguage=({lng:e,translations:t})=>{this._checkIsInitialized()&&this.i18nInstance.addResourceBundle(e,F3,t,!0,!0)},this._checkIsInitialized=()=>(this.i18nInstance.isInitialized||console.warn("I18n instance is not initialized. Call yourStreamI18nInstance.init()."),this.i18nInstance.isInitialized);let{debug:t=F4.debug,currentLanguage:r=F4.currentLanguage,translationsOverrides:i}=e;this.i18nInstance=FQ.createInstance({debug:t,defaultNS:F3,fallbackLng:!1,interpolation:{escapeValue:!1},keySeparator:!1,lng:r,nsSeparator:!1,parseMissingKeyHandler:e=>e,resources:F6}),i&&this.i18nInstance.on("initialized",()=>{Object.entries(i).forEach(([e,t])=>{this.registerTranslationsForLanguage({lng:e,translations:t})})})}get currentLanguage(){return this._checkIsInitialized(),this.i18nInstance.language}get isInitialized(){return this.i18nInstance.isInitialized}}let F9=(0,el.createContext)({t:F5}),F7=({children:e,...t})=>{let{i18n:r,t:i}=Ce(t);return(0,es.jsx)(F9.Provider,{value:{t:i,i18n:r},children:e})},Ce=({i18nInstance:e,language:t,translationsOverrides:r})=>{let[i]=(0,el.useState)(()=>e||new F8({currentLanguage:t,translationsOverrides:r})),[a,o]=(0,el.useState)(()=>F5);return(0,el.useEffect)(()=>{let{isInitialized:e}=i;if(!e){i.init().then(e=>o(()=>e.i18nInstance.t));return}t&&i?.currentLanguage!==t&&i.changeLanguage(t).catch(e=>{console.log("Error while changing language",e)})},[i,e,t,r]),{i18n:i,t:a}},Ct=()=>(0,el.useContext)(F9),Cn=(0,el.createContext)(void 0),Cr=({children:e,client:t,i18nInstance:r,language:i,translationsOverrides:a})=>(0,es.jsx)(Cn.Provider,{value:t,children:(0,es.jsx)(F7,{i18nInstance:r,language:i,translationsOverrides:a,children:e})}),Ci=()=>(0,el.useContext)(Cn),Ca=e=>{let[t,r]=(0,el.useState)(()=>ET.getCurrentValue(e));return(0,el.useEffect)(()=>{let t=e.subscribe(r);return()=>{t.unsubscribe()}},[e]),t},Co=()=>{let e=F2();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 EK)};var Cs=Object.freeze({__proto__:null,useAnonymousParticipantCount:()=>{let{anonymousParticipantCount$:e}=Co();return Ca(e)},useCallBlockedUserIds:()=>{let{blockedUserIds$:e}=Co();return Ca(e)},useCallCallingState:()=>{let{callingState$:e}=Co();return Ca(e)},useCallCreatedAt:()=>{let{createdAt$:e}=Co();return Ca(e)},useCallCreatedBy:()=>{let{createdBy$:e}=Co();return Ca(e)},useCallCustomData:()=>{let{custom$:e}=Co();return Ca(e)},useCallEgress:()=>{let{egress$:e}=Co();return Ca(e)},useCallEndedAt:()=>{let{endedAt$:e}=Co();return Ca(e)},useCallEndedBy:()=>{let{endedBy$:e}=Co();return Ca(e)},useCallIngress:()=>{let{ingress$:e}=Co();return Ca(e)},useCallMembers:()=>{let{members$:e}=Co();return Ca(e)},useCallSession:()=>{let{session$:e}=Co();return Ca(e)},useCallSettings:()=>{let{settings$:e}=Co();return Ca(e)},useCallStartedAt:()=>{let{startedAt$:e}=Co();return Ca(e)},useCallStartsAt:()=>{let{startsAt$:e}=Co();return Ca(e)},useCallState:Co,useCallStatsReport:()=>{let{callStatsReport$:e}=Co();return Ca(e)},useCallThumbnail:()=>{let{thumbnails$:e}=Co();return Ca(e)},useCallUpdatedAt:()=>{let{updatedAt$:e}=Co();return Ca(e)},useCameraState:()=>{let{camera:e}=F2();return{status:Ca(e.state.status$),direction:Ca(e.state.direction$)}},useDominantSpeaker:()=>{let{dominantSpeaker$:e}=Co();return Ca(e)},useHasOngoingScreenShare:()=>{let{hasOngoingScreenShare$:e}=Co();return Ca(e)},useIsCallBroadcastingInProgress:()=>{let{egress$:e}=Co(),t=Ca(e);return!!t&&t.broadcasting},useIsCallLive:()=>{let{backstage$:e}=Co();return!Ca(e)},useIsCallRecordingInProgress:()=>{let{recording$:e}=Co();return Ca(e)},useIsCallTranscribingInProgress:()=>{let{transcribing$:e}=Co();return Ca(e)},useLocalParticipant:()=>{let{localParticipant$:e}=Co();return Ca(e)},useMicrophoneState:()=>{let{microphone:e}=F2();return{status:Ca(e.state.status$),selectedDevice:Ca(e.state.selectedDevice$)}},useParticipantCount:()=>{let{participantCount$:e}=Co();return Ca(e)},useParticipants:({sortBy:e}={})=>{let{participants$:t}=Co(),r=Ca(t);return(0,el.useMemo)(()=>e?[...r].sort(e):r,[r,e])},useRemoteParticipants:()=>{let{remoteParticipants$:e}=Co();return Ca(e)},useScreenShareState:()=>{let{screenShare:e}=F2();return{status:Ca(e.state.status$)}}});let Cl=(...e)=>{let t=Cc();return e.every(e=>t?.includes(e))},Cc=()=>{let{ownCapabilities$:e}=Co();return Ca(e)},Cu=()=>{let e=Ci();if(!e)throw Error("StreamVideoClient isn't initialized or this hook is called outside of context.");return e.readOnlyStateStore},Cd=()=>{let{calls$:e}=Cu();return Ca(e)},Cp=()=>{let{connectedUser$:e}=Cu();return Ca(e)},Cf=()=>Cs,Ch=({canRequestOnly:e,hasPermissionsOnly:t,requiredGrants:r,requireAll:i=!0,children:a})=>{let o=F2(),s=Cc(),l=r[i?"every":"some"](e=>s?.includes(e));if(t)return l?(0,es.jsx)(es.Fragment,{children:a}):null;let u=r.some(e=>!!o&&o.permissionsContext.canRequest(e));return e?u?(0,es.jsx)(es.Fragment,{children:a}):null:l||u?(0,es.jsx)(es.Fragment,{children:a}):null};var Cm=r(29775);let Cg=Math.min,Cv=Math.max,Cb=Math.round,Cy=Math.floor,C_=e=>({x:e,y:e}),Cw={left:"right",right:"left",bottom:"top",top:"bottom"},Ck={start:"end",end:"start"};function Cx(e,t){return"function"==typeof e?e(t):e}function CE(e){return e.split("-")[0]}function CF(e){return e.split("-")[1]}function CC(e){return"x"===e?"y":"x"}function CS(e){return"y"===e?"height":"width"}function CD(e){return["top","bottom"].includes(CE(e))?"y":"x"}function Cj(e){return e.replace(/start|end/g,e=>Ck[e])}function CT(e){return e.replace(/left|right|bottom|top/g,e=>Cw[e])}function CO(e){let{x:t,y:r,width:i,height:a}=e;return{width:i,height:a,top:r,left:t,right:t+i,bottom:r+a,x:t,y:r}}function CP(e,t,r){let i,{reference:a,floating:o}=e,s=CD(t),l=CC(CD(t)),u=CS(l),d=CE(t),p="y"===s,f=a.x+a.width/2-o.width/2,m=a.y+a.height/2-o.height/2,g=a[u]/2-o[u]/2;switch(d){case"top":i={x:f,y:a.y-o.height};break;case"bottom":i={x:f,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:m};break;case"left":i={x:a.x-o.width,y:m};break;default:i={x:a.x,y:a.y}}switch(CF(t)){case"start":i[l]-=g*(r&&p?-1:1);break;case"end":i[l]+=g*(r&&p?-1:1)}return i}let CR=async(e,t,r)=>{let{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:f}=CP(d,i,u),m=i,g={},v=0;for(let r=0;r{try{return e.matches(t)}catch(e){return!1}})}function CW(e){let t=C$(),r=CY(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function C$(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function CG(e){return["html","body","#document"].includes(CA(e))}function CY(e){return CI(e).getComputedStyle(e)}function CK(e){return CU(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function CZ(e){if("html"===CA(e))return e;let t=e.assignedSlot||e.parentNode||CH(e)&&e.host||CN(e);return CH(t)?t.host:t}function CJ(e,t,r){var i;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=CZ(t);return CG(r)?t.ownerDocument?t.ownerDocument.body:t.body:Cz(r)&&Cq(r)?r:e(r)}(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),s=CI(a);return o?t.concat(s,s.visualViewport||[],Cq(a)?a:[],s.frameElement&&r?CJ(s.frameElement):[]):t.concat(a,CJ(a,[],r))}function CX(e){let t=CY(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=Cz(e),o=a?e.offsetWidth:r,s=a?e.offsetHeight:i,l=Cb(r)!==o||Cb(i)!==s;return l&&(r=o,i=s),{width:r,height:i,$:l}}function CQ(e){return CU(e)?e:e.contextElement}function C0(e){let t=CQ(e);if(!Cz(t))return C_(1);let r=t.getBoundingClientRect(),{width:i,height:a,$:o}=CX(t),s=(o?Cb(r.width):r.width)/i,l=(o?Cb(r.height):r.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let C1=C_(0);function C2(e){let t=CI(e);return C$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:C1}function C3(e,t,r,i){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=CQ(e),l=C_(1);t&&(i?CU(i)&&(l=C0(i)):l=C0(e));let u=(void 0===(a=r)&&(a=!1),i&&(!a||i===CI(s))&&a)?C2(s):C_(0),d=(o.left+u.x)/l.x,p=(o.top+u.y)/l.y,f=o.width/l.x,m=o.height/l.y;if(s){let e=CI(s),t=i&&CU(i)?CI(i):i,r=e,a=r.frameElement;for(;a&&i&&t!==r;){let e=C0(a),t=a.getBoundingClientRect(),i=CY(a),o=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;d*=e.x,p*=e.y,f*=e.x,m*=e.y,d+=o,p+=s,a=(r=CI(a)).frameElement}}return CO({width:f,height:m,x:d,y:p})}function C4(e){return C3(CN(e)).left+CK(e).scrollLeft}function C6(e,t,r){let i;if("viewport"===t)i=function(e,t){let r=CI(e),i=CN(e),a=r.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;let e=C$();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l,y:u}}(e,r);else if("document"===t)i=function(e){let t=CN(e),r=CK(e),i=e.ownerDocument.body,a=Cv(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Cv(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+C4(e),l=-r.scrollTop;return"rtl"===CY(i).direction&&(s+=Cv(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:l}}(CN(e));else if(CU(t))i=function(e,t){let r=C3(e,!0,"fixed"===t),i=r.top+e.clientTop,a=r.left+e.clientLeft,o=Cz(e)?C0(e):C_(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,r);else{let r=C2(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return CO(i)}function C5(e){return"static"===CY(e).position}function C8(e,t){return Cz(e)&&"fixed"!==CY(e).position?t?t(e):e.offsetParent:null}function C9(e,t){let r=CI(e);if(CV(e))return r;if(!Cz(e)){let t=CZ(e);for(;t&&!CG(t);){if(CU(t)&&!C5(t))return t;t=CZ(t)}return r}let i=C8(e,t);for(;i&&["table","td","th"].includes(CA(i))&&C5(i);)i=C8(i,t);return i&&CG(i)&&C5(i)&&!CW(i)?r:i||function(e){let t=CZ(e);for(;Cz(t)&&!CG(t)&&!CV(t);){if(CW(t))return t;t=CZ(t)}return null}(e)||r}let C7=async function(e){let t=this.getOffsetParent||C9,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=Cz(t),a=CN(t),o="fixed"===r,s=C3(e,!0,o,t),l={scrollLeft:0,scrollTop:0},u=C_(0);if(i||!i&&!o){if(("body"!==CA(t)||Cq(a))&&(l=CK(t)),i){let e=C3(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=C4(a))}return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},Se={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:a}=e,o="fixed"===a,s=CN(i),l=!!t&&CV(t.floating);if(i===s||l&&o)return r;let u={scrollLeft:0,scrollTop:0},d=C_(1),p=C_(0),f=Cz(i);if((f||!f&&!o)&&(("body"!==CA(i)||Cq(s))&&(u=CK(i)),Cz(i))){let e=C3(i);d=C0(i),p.x=e.x+i.clientLeft,p.y=e.y+i.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x,y:r.y*d.y-u.scrollTop*d.y+p.y}},getDocumentElement:CN,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:a}=e,o=[..."clippingAncestors"===r?CV(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let i=CJ(e,[],!1).filter(e=>CU(e)&&"body"!==CA(e)),a=null,o="fixed"===CY(e).position,s=o?CZ(e):e;for(;CU(s)&&!CG(s);){let t=CY(s),r=CW(s);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&!!a&&["absolute","fixed"].includes(a.position)||Cq(s)&&!r&&function e(t,r){let i=CZ(t);return!(i===r||!CU(i)||CG(i))&&("fixed"===CY(i).position||e(i,r))}(e,s))?i=i.filter(e=>e!==s):a=t,s=CZ(s)}return t.set(e,i),i}(t,this._c):[].concat(r),i],s=o[0],l=o.reduce((e,r)=>{let i=C6(t,r,a);return e.top=Cv(i.top,e.top),e.right=Cg(i.right,e.right),e.bottom=Cg(i.bottom,e.bottom),e.left=Cv(i.left,e.left),e},C6(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:C9,getElementRects:C7,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=CX(e);return{width:t,height:r}},getScale:C0,isElement:CU,isRTL:function(e){return"rtl"===CY(e).direction}},St=(e,t,r)=>{let i=new Map,a={platform:Se,...r},o={...a.platform,_c:i};return CR(e,t,{...a,platform:o})};var Sn="undefined"!=typeof document?el.useLayoutEffect:el.useEffect;function Sr(e,t){let r,i,a;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((r=e.length)!=t.length)return!1;for(i=r;0!=i--;)if(!Sr(e[i],t[i]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(("_owner"!==r||!e.$$typeof)&&!Sr(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Si(e){let t=el.useRef(e);return Sn(()=>{t.current=e}),t}var Sa="undefined"!=typeof document?el.useLayoutEffect:el.useEffect;let So=!1,Ss=0,Sl=()=>"floating-ui-"+Ss++,Sc=el["useId".toString()]||function(){let[e,t]=el.useState(()=>So?Sl():void 0);return Sa(()=>{null==e&&t(Sl())},[]),el.useEffect(()=>{So||(So=!0)},[]),e},Su=el.createContext(null),Sd=()=>el.useContext(Su);function Sp(e){var t;return!!e&&e instanceof(((null==(t=e)?void 0:t.ownerDocument)||document).defaultView||window).Element}let Sf=el["useInsertionEffect".toString()]||(e=>e()),Sh=ST(),Sm=e=>SC(e,Sh),Sg=ST();Sm.write=e=>SC(e,Sg);let Sv=ST();Sm.onStart=e=>SC(e,Sv);let Sb=ST();Sm.onFrame=e=>SC(e,Sb);let Sy=ST();Sm.onFinish=e=>SC(e,Sy);let S_=[];Sm.setTimeout=(e,t)=>{let r=Sm.now()+t,i=()=>{let e=S_.findIndex(e=>e.cancel==i);~e&&S_.splice(e,1),SE-=~e?1:0},a={time:r,handler:e,cancel:i};return S_.splice(Sw(r),0,a),SE+=1,SS(),a};let Sw=e=>~(~S_.findIndex(t=>t.time>e)||~S_.length);Sm.cancel=e=>{Sv.delete(e),Sb.delete(e),Sh.delete(e),Sg.delete(e),Sy.delete(e)},Sm.sync=e=>{SF=!0,Sm.batchedUpdates(e),SF=!1},Sm.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function i(...e){t=e,Sm.onStart(r)}return i.handler=e,i.cancel=()=>{Sv.delete(r),t=null},i};let Sk="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Sm.use=e=>Sk=e,Sm.now="undefined"!=typeof performance?()=>performance.now():Date.now,Sm.batchedUpdates=e=>e(),Sm.catch=console.error,Sm.frameLoop="always",Sm.advance=()=>{"demand"!==Sm.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Sj()};let Sx=-1,SE=0,SF=!1;function SC(e,t){SF?(t.delete(e),e(0)):(t.add(e),SS())}function SS(){Sx<0&&(Sx=0,"demand"!==Sm.frameLoop&&Sk(SD))}function SD(){~Sx&&(Sk(SD),Sm.batchedUpdates(Sj))}function Sj(){let e=Sx,t=Sw(Sx=Sm.now());t&&(SO(S_.splice(0,t),e=>e.handler()),SE-=t),Sv.flush(),Sh.flush(e?Math.min(64,Sx-e):16.667),Sb.flush(),Sg.flush(),Sy.flush(),SE||(Sx=-1)}function ST(){let e=new Set,t=e;return{add(r){SE+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(SE-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,SE-=t.size,SO(t,t=>t(r)&&e.add(t)),SE+=e.size,t=e)}}}function SO(e,t){e.forEach(e=>{try{t(e)}catch(e){Sm.catch(e)}})}function SP(){}let SR=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),SM={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 SL(e,t){if(SM.arr(e)){if(!SM.arr(t)||e.length!==t.length)return!1;for(let r=0;re.forEach(t);function SI(e,t,r){if(SM.arr(e)){for(let i=0;iSM.und(e)?[]:SM.arr(e)?e:[e];function SB(e,t){if(e.size){let r=Array.from(e);e.clear(),SA(r,t)}}let SU=(e,...t)=>SB(e,e=>e(...t)),Sz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),SH=null,Sq=!1,SV=SP;var SW=Object.freeze({__proto__:null,get createStringInterpolator(){return l},get to(){return u},get colors(){return SH},get skipAnimation(){return Sq},get willAdvance(){return SV},assign:e=>{e.to&&(u=e.to),e.now&&(Sm.now=e.now),void 0!==e.colors&&(SH=e.colors),null!=e.skipAnimation&&(Sq=e.skipAnimation),e.createStringInterpolator&&(l=e.createStringInterpolator),e.requestAnimationFrame&&Sm.use(e.requestAnimationFrame),e.batchedUpdates&&(Sm.batchedUpdates=e.batchedUpdates),e.willAdvance&&(SV=e.willAdvance),e.frameLoop&&(Sm.frameLoop=e.frameLoop)}});let S$=new Set,SG=[],SY=[],SK=0,SZ={get idle(){return!S$.size&&!SG.length},start(e){SK>e.priority?(S$.add(e),Sm.onStart(SJ)):(SX(e),Sm(S0))},advance:S0,sort(e){if(SK)Sm.onFrame(()=>SZ.sort(e));else{let t=SG.indexOf(e);~t&&(SG.splice(t,1),SQ(e))}},clear(){SG=[],S$.clear()}};function SJ(){S$.forEach(SX),S$.clear(),Sm(S0)}function SX(e){SG.includes(e)||SQ(e)}function SQ(e){SG.splice(function(e,t){let r=e.findIndex(t);return r<0?e.length:r}(SG,t=>t.priority>e.priority),0,e)}function S0(e){let t=SY;for(let r=0;r0}let S1="[-+]?\\d*\\.?\\d+",S2=S1+"%";function S3(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let S4=RegExp("rgb"+S3(S1,S1,S1)),S6=RegExp("rgba"+S3(S1,S1,S1,S1)),S5=RegExp("hsl"+S3(S1,S2,S2)),S8=RegExp("hsla"+S3(S1,S2,S2,S1)),S9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,S7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,De=/^#([0-9a-fA-F]{6})$/,Dt=/^#([0-9a-fA-F]{8})$/;function Dn(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Dr(e,t,r){let i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;return Math.round(255*Dn(a,i,e+1/3))<<24|Math.round(255*Dn(a,i,e))<<16|Math.round(255*Dn(a,i,e-1/3))<<8}function Di(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Da(e){return(parseFloat(e)%360+360)%360/360}function Do(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ds(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dl(e){let t;let r="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=De.exec(e))?parseInt(t[1]+"ff",16)>>>0:SH&&void 0!==SH[e]?SH[e]:(t=S4.exec(e))?(Di(t[1])<<24|Di(t[2])<<16|Di(t[3])<<8|255)>>>0:(t=S6.exec(e))?(Di(t[1])<<24|Di(t[2])<<16|Di(t[3])<<8|Do(t[4]))>>>0:(t=S9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Dt.exec(e))?parseInt(t[1],16)>>>0:(t=S7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=S5.exec(e))?(255|Dr(Da(t[1]),Ds(t[2]),Ds(t[3])))>>>0:(t=S8.exec(e))?(Dr(Da(t[1]),Ds(t[2]),Ds(t[3]))|Do(t[4]))>>>0:null;if(null===r)return e;let i=(4278190080&(r=r||0))>>>24,a=(16711680&r)>>>16,o=(65280&r)>>>8,s=(255&r)/255;return`rgba(${i}, ${a}, ${o}, ${s})`}let Dc=(e,t,r)=>{if(SM.fun(e))return e;if(SM.arr(e))return Dc({range:e,output:t,extrapolate:r});if(SM.str(e.output[0]))return l(e);let i=e.output,a=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",s=e.extrapolateRight||e.extrapolate||"extend",u=e.easing||(e=>e);return t=>{let r=function(e,t){for(var r=1;r=e);++r);return r-1}(t,a);return function(e,t,r,i,a,o,s,l,u){let d=u?u(e):e;if(dr){if("identity"===l)return d;"clamp"===l&&(d=r)}return i===a?i:t===r?e<=t?i:a:(t===-1/0?d=-d:r===1/0?d-=t:d=(d-t)/(r-t),d=o(d),i===-1/0?d=-d:a===1/0?d+=i:d=d*(a-i)+i,d)}(t,a[r],a[r+1],i[r],i[r+1],u,o,s,e.map)}};function Du(){return(Du=Object.assign||function(e){for(var t=1;t!!(e&&e[Dd]),Dh=e=>e&&e[Dd]?e[Dd]():e,Dm=e=>e[Dp]||null;function Dg(e,t){let r=e[Dp];r&&r.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}class Dv{constructor(e){if(this[Dd]=void 0,this[Dp]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Db(this,e)}}let Db=(e,t)=>Dw(e,Dd,t);function Dy(e,t){if(e[Dd]){let r=e[Dp];r||Dw(e,Dp,r=new Set),!r.has(t)&&(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function D_(e,t){let r=e[Dp];if(r&&r.has(t)){let i=r.size-1;i?r.delete(t):e[Dp]=null,e.observerRemoved&&e.observerRemoved(i,t)}}let Dw=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Dk=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Dx=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,DE=RegExp(`(${Dk.source})(%|[a-z]+)`,"i"),DF=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,DC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,DS=e=>{let[t,r]=DD(e);if(!t||Sz())return e;let i=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(i)return i.trim();if(r&&r.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(e)return e}else if(r&&DC.test(r))return DS(r);else if(r)return r;return e},DD=e=>{let t=DC.exec(e);if(!t)return[,];let[,r,i]=t;return[r,i]},Dj=(e,t,r,i,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(i)}, ${a})`,DT=e=>{d||(d=SH?RegExp(`(${Object.keys(SH).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>Dh(e).replace(DC,DS).replace(Dx,Dl).replace(d,Dl)),r=t.map(e=>e.match(Dk).map(Number)),i=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>Dc(Du({},e,{output:t})));return e=>{var r;let a=!DE.test(t[0])&&(null==(r=t.find(e=>DE.test(e)))?void 0:r.replace(Dk,"")),o=0;return t[0].replace(Dk,()=>`${i[o++](e)}${a||""}`).replace(DF,Dj)}},DO="react-spring: ",DP=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${DO}once requires a function parameter`);return(...r)=>{t||(e(...r),t=!0)}},DR=DP(console.warn),DM=DP(console.warn);function DL(e){return SM.str(e)&&("#"==e[0]||/\d/.test(e)||!Sz()&&DC.test(e)||e in(SH||{}))}let DA="undefined"!=typeof window&&window.document&&window.document.createElement?el.useLayoutEffect:el.useEffect,DI=()=>{let e=(0,el.useRef)(!1);return DA(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function DN(){let e=(0,el.useState)()[1],t=DI();return()=>{t.current&&e(Math.random())}}let DB=e=>(0,el.useEffect)(e,DU),DU=[];function Dz(e){let t=(0,el.useRef)();return(0,el.useEffect)(()=>{t.current=e}),t.current}let DH=Symbol.for("Animated:node"),Dq=e=>!!e&&e[DH]===e,DV=e=>e&&e[DH],DW=(e,t)=>SR(e,DH,t),D$=e=>e&&e[DH]&&e[DH].getPayload();class DG{constructor(){this.payload=void 0,DW(this,this)}getPayload(){return this.payload||[]}}class DY extends DG{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,SM.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new DY(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return SM.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,SM.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class DK extends DY{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Dc({output:[e,e]})}static create(e){return new DK(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(SM.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=Dc({output:[this.getValue(),e]})),this._value=0,super.reset()}}let DZ={dependencies:null};class DJ extends DG{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return SI(this.source,(r,i)=>{Dq(r)?t[i]=r.getValue(e):Df(r)?t[i]=Dh(r):e||(t[i]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&SA(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return SI(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){DZ.dependencies&&Df(e)&&DZ.dependencies.add(e);let t=D$(e);t&&SA(t,e=>this.add(e))}}class DX extends DJ{constructor(e){super(e)}static create(e){return new DX(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(DQ)),!0)}}function DQ(e){return(DL(e)?DK:DY).create(e)}function D0(e){let t=DV(e);return t?t.constructor:SM.arr(e)?DX:DL(e)?DK:DY}function D1(){return(D1=Object.assign||function(e){for(var t=1;t{let r=!SM.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,el.forwardRef)((i,a)=>{let o=(0,el.useRef)(null),s=r&&(0,el.useCallback)(e=>{o.current=function(e,t){return e&&(SM.fun(e)?e(t):e.current=t),t}(a,e)},[a]),[l,u]=function(e,t){let r=new Set;return DZ.dependencies=r,e.style&&(e=D1({},e,{style:t.createAnimatedStyle(e.style)})),e=new DJ(e),DZ.dependencies=null,[e,r]}(i,t),d=DN(),p=()=>{let e=o.current;(!r||e)&&!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},f=new D3(p,u),m=(0,el.useRef)();DA(()=>(m.current=f,SA(u,e=>Dy(e,f)),()=>{m.current&&(SA(m.current.deps,e=>D_(e,m.current)),Sm.cancel(m.current.update))})),(0,el.useEffect)(p,[]),DB(()=>()=>{let e=m.current;SA(e.deps,t=>D_(t,e))});let g=t.getComponentProps(l.getValue());return el.createElement(e,D1({},g,{ref:s}))})};class D3{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Sm.write(this.update)}}let D4=Symbol.for("AnimatedComponent"),D6=e=>SM.str(e)?e:e&&SM.str(e.displayName)?e.displayName:SM.fun(e)&&e.name||null;function D5(){return(D5=Object.assign||function(e){for(var t=1;t!0===e||!!(t&&e&&(SM.fun(e)?e(t):SN(e).includes(t))),D7=(e,t)=>SM.obj(e)?t&&e[t]:e,je=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,jt=e=>e,jn=(e,t=jt)=>{let r=jr;e.default&&!0!==e.default&&(r=Object.keys(e=e.default));let i={};for(let a of r){let r=t(e[a],a);SM.und(r)||(i[a]=r)}return i},jr=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ji={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 ja(e){let t=function(e){let t={},r=0;if(SI(e,(e,i)=>{!ji[i]&&(t[i]=e,r++)}),r)return t}(e);if(t){let r={to:t};return SI(e,(e,i)=>i in t||(r[i]=e)),r}return D5({},e)}function jo(e){return e=Dh(e),SM.arr(e)?e.map(jo):DL(e)?SW.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function js(e){for(let t in e)return!0;return!1}function jl(e){return SM.fun(e)||SM.arr(e)&&SM.obj(e[0])}function jc(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function ju(e,t){if(t&&e.ref!==t){var r;null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t}}let jd={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}},jp=D5({},jd.default,{mass:1,damping:1,easing:e=>e,clamp:!1});class jf{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,jp)}}function jh(e,t){if(SM.und(t.decay)){let r=!SM.und(t.tension)||!SM.und(t.friction);!r&&SM.und(t.frequency)&&SM.und(t.damping)&&SM.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}let jm=[];class jg{constructor(){this.changed=!1,this.values=jm,this.toValues=null,this.fromValues=jm,this.to=void 0,this.from=void 0,this.config=new jf,this.immediate=!1}}function jv(e,{key:t,props:r,defaultProps:i,state:a,actions:o}){return new Promise((s,l)=>{var u;let d,p;let f=D9(null!=(u=r.cancel)?u:null==i?void 0:i.cancel,t);if(f)v();else{SM.und(r.pause)||(a.paused=D9(r.pause,t));let e=null==i?void 0:i.pause;!0!==e&&(e=a.paused||D9(e,t)),d=D8(r.delay||0,t),e?(a.resumeQueue.add(g),o.pause()):(o.resume(),g())}function m(){a.resumeQueue.add(g),a.timeouts.delete(p),p.cancel(),d=p.time-Sm.now()}function g(){d>0&&!SW.skipAnimation?(a.delayed=!0,p=Sm.setTimeout(v,d),a.pauseQueue.add(m),a.timeouts.add(p)):v()}function v(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(p),e<=(a.cancelId||0)&&(f=!0);try{o.start(D5({},r,{callId:e,cancel:f}),s)}catch(e){l(e)}}})}let jb=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?jw(e.get()):t.every(e=>e.noop)?jy(e.get()):j_(e.get(),t.every(e=>e.finished)),jy=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),j_=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),jw=e=>({value:e,cancelled:!0,finished:!1});function jk(e,t,r,i){let{callId:a,parentId:o,onRest:s}=t,{asyncTo:l,promise:u}=r;return o||e!==l||t.reset?r.promise=(async()=>{let d,p,f;r.asyncId=a,r.asyncTo=e;let m=jn(t,(e,t)=>"onRest"===t?void 0:e),g=new Promise((e,t)=>(d=e,p=t)),v=e=>{let t=a<=(r.cancelId||0)&&jw(i)||a!==r.asyncId&&j_(i,!1);if(t)throw e.result=t,p(e),e},b=(e,t)=>{let o=new jE,s=new jF;return(async()=>{if(SW.skipAnimation)throw jx(r),s.result=j_(i,!1),p(s),s;v(o);let l=SM.obj(e)?D5({},e):D5({},t,{to:e});l.parentId=a,SI(m,(e,t)=>{SM.und(l[t])&&(l[t]=e)});let u=await i.start(l);return v(o),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),u})()};if(SW.skipAnimation)return jx(r),j_(i,!1);try{let t;t=SM.arr(e)?(async e=>{for(let t of e)await b(t)})(e):Promise.resolve(e(b,i.stop.bind(i))),await Promise.all([t.then(d),g]),f=j_(i.get(),!0,!1)}catch(e){if(e instanceof jE)f=e.result;else if(e instanceof jF)f=e.result;else throw e}finally{a==r.asyncId&&(r.asyncId=o,r.asyncTo=o?l:void 0,r.promise=o?u:void 0)}return SM.fun(s)&&Sm.batchedUpdates(()=>{s(f,i,i.item)}),f})():u}function jx(e,t){SB(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class jE 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 jF extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}let jC=e=>e instanceof jD,jS=1;class jD extends Dv{constructor(...e){super(...e),this.id=jS++,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=DV(this);return e&&e.getValue()}to(...e){return SW.to(this,e)}interpolate(...e){return DR(`${DO}The "interpolate" function is deprecated in v9 (use "to" instead)`),SW.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){Dg(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||SZ.sort(this),Dg(this,{type:"priority",parent:this,priority:e})}}let jj=Symbol.for("SpringPhase"),jT=e=>(1&e[jj])>0,jO=e=>(2&e[jj])>0,jP=e=>(4&e[jj])>0,jR=(e,t)=>t?e[jj]|=3:e[jj]&=-3,jM=(e,t)=>t?e[jj]|=4:e[jj]&=-5;class jL extends jD{constructor(e,t){if(super(),this.key=void 0,this.animation=new jg,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,!SM.und(e)||!SM.und(t)){let r=SM.obj(e)?D5({},e):D5({},t,{from:e});SM.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(jO(this)||this._state.asyncTo)||jP(this)}get goal(){return Dh(this.animation.to)}get velocity(){let e=DV(this);return e instanceof DY?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return jT(this)}get isAnimating(){return jO(this)}get isPaused(){return jP(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,i=this.animation,{config:a,toValues:o}=i,s=D$(i.to);!s&&Df(i.to)&&(o=SN(Dh(i.to))),i.values.forEach((l,u)=>{if(l.done)return;let d=l.constructor==DK?1:s?s[u].lastPosition:o[u],p=i.immediate,f=d;if(!p){let t;if(f=l.lastPosition,a.tension<=0){l.done=!0;return}let r=l.elapsedTime+=e,o=i.fromValues[u],s=null!=l.v0?l.v0:l.v0=SM.arr(a.velocity)?a.velocity[u]:a.velocity;if(SM.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,i=Math.exp(-(1-e)*r);f=o+s/(1-e)*(1-i),p=.1>Math.abs(l.lastPosition-f),t=s*i}else{t=null==l.lastVelocity?s:l.lastVelocity;let r=a.precision||(o==d?.005:Math.min(1,.001*Math.abs(d-o))),i=a.restVelocity||r/10,u=a.clamp?0:a.bounce,m=!SM.und(u),g=o==d?l.v0>0:oi)&&(p=Math.abs(d-f)<=r));++e){m&&(f==d||f>d==g)&&(t=-t*u,f=d);let e=(-(1e-6*a.tension)*(f-d)+-(.001*a.friction)*t)/a.mass;t+=1*e,f+=1*t}}}else{let i=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,r=l.elapsedTime+=e)),i=(i=(a.progress||0)+r/this._memoizedDuration)>1?1:i<0?0:i,l.durationProgress=i),t=((f=o+a.easing(i)*(d-o))-l.lastPosition)/e,p=1==i}l.lastVelocity=t,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),p=!0)}s&&!s[u].done&&(p=!1),p?l.done=!0:t=!1,l.setValue(f,a.round)&&(r=!0)});let l=DV(this),u=l.getValue();if(t){let e=Dh(i.to);(u!==e||r)&&!a.decay?(l.setValue(e),this._onChange(e)):r&&a.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return Sm.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(jO(this)){let{to:e,config:t}=this.animation;Sm.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 r;return SM.und(e)?(r=this.queue||[],this.queue=[]):r=[SM.obj(e)?e:D5({},t,{to:e})],Promise.all(r.map(e=>this._update(e))).then(e=>jb(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),jx(this._state,e&&this._lastCallId),Sm.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:r,from:i}=e;(null==(r=SM.obj(r)?r[t]:r)||jl(r))&&(r=void 0),null==(i=SM.obj(i)?i[t]:i)&&(i=void 0);let a={to:r,from:i};return jT(this)||(e.reverse&&([r,i]=[i,r]),i=Dh(i),SM.und(i)?DV(this)||this._set(r):this._set(i)),a}_update(e,t){let r=D5({},e),{key:i,defaultProps:a}=this;r.default&&Object.assign(a,jn(r,(e,t)=>/^on/.test(t)?D7(e,i):e)),jz(this,r,"onProps"),jH(this,"onProps",r,this);let o=this._prepareNode(r);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 s=this._state;return jv(++this._lastCallId,{key:i,props:r,defaultProps:a,state:s,actions:{pause:()=>{jP(this)||(jM(this,!0),SU(s.pauseQueue),jH(this,"onPause",j_(this,jA(this,this.animation.to)),this))},resume:()=>{jP(this)&&(jM(this,!1),jO(this)&&this._resume(),SU(s.resumeQueue),jH(this,"onResume",j_(this,jA(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(e=>{if(r.loop&&e.finished&&!(t&&e.noop)){let e=jI(r);if(e)return this._update(e,!0)}return e})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(jw(this));let i=!SM.und(e.to),a=!SM.und(e.from);if(i||a){if(!(t.callId>this._lastToId))return r(jw(this));this._lastToId=t.callId}let{key:o,defaultProps:s,animation:l}=this,{to:u,from:d}=l,{to:p=u,from:f=d}=e;a&&!i&&(!t.default||SM.und(p))&&(p=f),t.reverse&&([p,f]=[f,p]);let m=!SL(f,d);m&&(l.from=f),f=Dh(f);let g=!SL(p,u);g&&this._focus(p);let v=jl(t.to),{config:b}=l,{decay:y,velocity:_}=b;(i||a)&&(b.velocity=0),t.config&&!v&&function(e,t,r){for(let i in r&&(jh(r=D5({},r),t),t=D5({},r,t)),jh(e,t),Object.assign(e,t),jp)null==e[i]&&(e[i]=jp[i]);let{mass:i,frequency:a,damping:o}=e;SM.und(a)||(a<.01&&(a=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/a,2)*i,e.friction=4*Math.PI*o*i/a)}(b,D8(t.config,o),t.config!==s.config?D8(s.config,o):void 0);let w=DV(this);if(!w||SM.und(p))return r(j_(this,!0));let k=SM.und(t.reset)?a&&!t.default:!SM.und(f)&&D9(t.reset,o),x=k?f:this.get(),E=jo(p),F=SM.num(E)||SM.arr(E)||DL(E),C=!v&&(!F||D9(s.immediate||t.immediate,o));if(g){let e=D0(p);if(e!==w.constructor){if(C)w=this._set(E);else throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let S=w.constructor,D=Df(p),j=!1;if(!D){let e=k||!jT(this)&&m;(g||e)&&(D=!(j=SL(jo(x),E))),(SL(l.immediate,C)||C)&&SL(b.decay,y)&&SL(b.velocity,_)||(D=!0)}if(j&&jO(this)&&(l.changed&&!k?D=!0:D||this._stop(u)),!v&&((D||Df(u))&&(l.values=w.getPayload(),l.toValues=Df(p)?null:S==DK?[1]:SN(E)),l.immediate==C||(l.immediate=C,C||k||this._set(u)),D)){let{onRest:e}=l;SA(jU,e=>jz(this,t,e));let i=j_(this,jA(this,u));SU(this._pendingCalls,i),this._pendingCalls.add(r),l.changed&&Sm.batchedUpdates(()=>{l.changed=!k,null==e||e(i,this),k?D8(s.onRest,i):null==l.onStart||l.onStart(i,this)})}k&&this._set(x),v?r(jk(t.to,t,this._state,this)):D?this._start():jO(this)&&!g?this._pendingCalls.add(r):r(jy(x))}_focus(e){let t=this.animation;e!==t.to&&(Dm(this)&&this._detach(),t.to=e,Dm(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;Df(t)&&(Dy(t,this),jC(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Df(e)&&D_(e,this)}_set(e,t=!0){let r=Dh(e);if(!SM.und(r)){let e=DV(this);if(!e||!SL(r,e.getValue())){let i=D0(r);e&&e.constructor==i?e.setValue(r):DW(this,i.create(r)),e&&Sm.batchedUpdates(()=>{this._onChange(r,t)})}}return DV(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,jH(this,"onStart",j_(this,jA(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),D8(this.animation.onChange,e,this)),D8(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;DV(this).reset(Dh(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),jO(this)||(jR(this,!0),jP(this)||this._resume())}_resume(){SW.skipAnimation?this.finish():SZ.start(this)}_stop(e,t){if(jO(this)){jR(this,!1);let r=this.animation;SA(r.values,e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Dg(this,{type:"idle",parent:this});let i=t?jw(this.get()):j_(this.get(),jA(this,null!=e?e:r.to));SU(this._pendingCalls,i),r.changed&&(r.changed=!1,jH(this,"onRest",i,this))}}}function jA(e,t){let r=jo(t);return SL(jo(e.get()),r)}function jI(e,t=e.loop,r=e.to){let i=D8(t);if(i){let a=!0!==i&&ja(i),o=(a||e).reverse,s=!a||a.reset;return jN(D5({},e,{loop:t,default:!1,pause:void 0,to:!o||jl(r)?r:void 0,from:s?e.from:void 0,reset:s},a))}}function jN(e){let{to:t,from:r}=e=ja(e),i=new Set;return SM.obj(t)&&jB(t,i),SM.obj(r)&&jB(r,i),e.keys=i.size?Array.from(i):null,e}function jB(e,t){SI(e,(e,r)=>null!=e&&t.add(r))}let jU=["onStart","onRest","onChange","onPause","onResume"];function jz(e,t,r){e.animation[r]=t[r]!==je(t,r)?D7(t[r],e.key):void 0}function jH(e,t,...r){var i,a,o,s;null==(i=(a=e.animation)[t])||i.call(a,...r),null==(o=(s=e.defaultProps)[t])||o.call(s,...r)}let jq=["onStart","onChange","onRest"],jV=1;class jW{constructor(e,t){this.id=jV++,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(D5({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,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];SM.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(jN(e)),this}start(e){let{queue:t}=this;return(e?t=SN(e).map(jN):this.queue=[],this._flush)?this._flush(this,t):(jX(this,t),j$(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let r=this.springs;SA(SN(t),t=>r[t].stop(!!e))}else jx(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(SM.und(e))this.start({pause:!0});else{let t=this.springs;SA(SN(e),e=>t[e].pause())}return this}resume(e){if(SM.und(e))this.start({pause:!1});else{let t=this.springs;SA(SN(e),e=>t[e].resume())}return this}each(e){SI(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,i=this._active.size>0,a=this._changed.size>0;(i&&!this._started||a&&!this._started)&&(this._started=!0,SB(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!i&&this._started,s=a||o&&r.size?this.get():null;a&&t.size&&SB(t,([e,t])=>{t.value=s,e(t,this,this._item)}),o&&(this._started=!1,SB(r,([e,t])=>{t.value=s,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)}Sm.onFrame(this._onFrame)}}function j$(e,t){return Promise.all(t.map(t=>jG(e,t))).then(t=>jb(e,t))}async function jG(e,t,r){let{keys:i,to:a,from:o,loop:s,onRest:l,onResolve:u}=t,d=SM.obj(t.default)&&t.default;s&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);let p=SM.arr(a)||SM.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):SA(jq,r=>{let i=t[r];if(SM.fun(i)){let a=e._events[r];t[r]=({finished:e,cancelled:t})=>{let r=a.get(i);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.set(i,{value:null,finished:e||!1,cancelled:t||!1})},d&&(d[r]=t[r])}});let f=e._state;!f.paused===t.pause?(f.paused=t.pause,SU(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let m=(i||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),g=!0===t.cancel||!0===je(t,"cancel");(p||g&&f.asyncId)&&m.push(jv(++e._lastAsyncId,{props:t,state:f,actions:{pause:SP,resume:SP,start(t,r){g?(jx(f,e._lastAsyncId),r(jw(e))):(t.onRest=l,r(jk(p,t,f,e)))}}})),f.paused&&await new Promise(e=>{f.resumeQueue.add(e)});let v=jb(e,await Promise.all(m));if(s&&v.finished&&!(r&&v.noop)){let r=jI(t,s,a);if(r)return jX(e,[r]),jG(e,r,!0)}return u&&Sm.batchedUpdates(()=>u(v,e,e.item)),v}function jY(e,t){let r=D5({},e.springs);return t&&SA(SN(t),e=>{SM.und(e.keys)&&(e=jN(e)),SM.obj(e.to)||(e=D5({},e,{to:void 0})),jJ(r,e,e=>jZ(e))}),jK(e,r),r}function jK(e,t){SI(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,Dy(t,e))})}function jZ(e,t){let r=new jL;return r.key=e,t&&Dy(r,t),r}function jJ(e,t,r){t.keys&&SA(t.keys,i=>{(e[i]||(e[i]=r(i)))._prepareNode(t)})}function jX(e,t){SA(t,t=>{jJ(e.springs,t,t=>jZ(t,e))})}let jQ=["children"],j0=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,i,a={},o=Object.keys(e);for(i=0;i=0||(a[r]=e[r]);return a}(e,jQ),i=(0,el.useContext)(j1),a=r.pause||!!i.pause,o=r.immediate||!!i.immediate;r=function(e,t){let[r]=(0,el.useState)(()=>({inputs:t,result:e()})),i=(0,el.useRef)(),a=i.current,o=a;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r{i.current=o,a==r&&(r.inputs=r.result=void 0)},[o]),o.result}(()=>({pause:a,immediate:o}),[a,o]);let{Provider:s}=j1;return el.createElement(s,{value:r},t)},j1=function(e,t){return Object.assign(e,el.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(j0,{});j0.Provider=j1.Provider,j0.Consumer=j1.Consumer;let j2=()=>{let e=[],t=function(t){DM(`${DO}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 i=[];return SA(e,(e,a)=>{if(SM.und(t))i.push(e.start());else{let o=r(t,e,a);o&&i.push(e.start(o))}}),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return SA(e,e=>e.pause(...arguments)),this},t.resume=function(){return SA(e,e=>e.resume(...arguments)),this},t.set=function(t){SA(e,e=>e.set(t))},t.start=function(t){let r=[];return SA(e,(e,i)=>{if(SM.und(t))r.push(e.start());else{let a=this._getProps(t,e,i);a&&r.push(e.start(a))}}),r},t.stop=function(){return SA(e,e=>e.stop(...arguments)),this},t.update=function(t){return SA(e,(e,r)=>e.update(this._getProps(t,e,r))),this};let r=function(e,t,r){return SM.fun(e)?e(r,t):e};return t._getProps=r,t};function j3(e,t){let r=SM.fun(e),[[i],a]=function(e,t,r){let i=SM.fun(t)&&t;i&&!r&&(r=[]);let a=(0,el.useMemo)(()=>i||3==arguments.length?j2():void 0,[]),o=(0,el.useRef)(0),s=DN(),l=(0,el.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let r=jY(e,t);return!(o.current>0)||l.queue.length||Object.keys(r).some(t=>!e.springs[t])?new Promise(i=>{jK(e,r),l.queue.push(()=>{i(j$(e,t))}),s()}):j$(e,t)}}),[]),u=(0,el.useRef)([...l.ctrls]),d=[],p=Dz(e)||0;function f(e,r){for(let a=e;a{SA(u.current.slice(e,p),e=>{jc(e,a),e.stop(!0)}),u.current.length=e,f(p,e)},[e]),(0,el.useMemo)(()=>{f(0,Math.min(p,e))},r);let m=u.current.map((e,t)=>jY(e,d[t])),g=(0,el.useContext)(j0),v=Dz(g),b=g!==v&&js(g);DA(()=>{o.current++,l.ctrls=u.current;let{queue:e}=l;e.length&&(l.queue=[],SA(e,e=>e())),SA(u.current,(e,t)=>{null==a||a.add(e),b&&e.start({default:g});let r=d[t];r&&(ju(e,r.ref),e.ref?e.queue.push(r):e.start(r))})}),DB(()=>()=>{SA(l.ctrls,e=>e.stop(!0))});let y=m.map(e=>D5({},e));return a?[y,a]:y}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[i,a]:i}function j4(e,t,r){let i=SM.fun(t)&&t,{reset:a,sort:o,trail:s=0,expires:l=!0,exitBeforeEnter:u=!1,onDestroyed:d,ref:f,config:m}=i?i():t,g=(0,el.useMemo)(()=>i||3==arguments.length?j2():void 0,[]),v=SN(e),b=[],y=(0,el.useRef)(null),_=a?null:y.current;DA(()=>{y.current=b}),DB(()=>(SA(y.current,e=>{var t;null==(t=e.ctrl.ref)||t.add(e.ctrl);let r=S.get(e);r&&e.ctrl.start(r.payload)}),()=>{SA(y.current,e=>{e.expired&&clearTimeout(e.expirationId),jc(e.ctrl,g),e.ctrl.stop(!0)})}));let w=function(e,{key:t,keys:r=t},i){if(null===r){let t=new Set;return e.map(e=>{let r=i&&i.find(r=>r.item===e&&r.phase!==p.LEAVE&&!t.has(r));return r?(t.add(r),r.key):j6++})}return SM.und(r)?e:SM.fun(r)?e.map(r):SN(r)}(v,i?i():t,_),k=a&&y.current||[];DA(()=>SA(k,({ctrl:e,item:t,key:r})=>{jc(e,g),D8(d,t,r)}));let x=[];if(_&&SA(_,(e,t)=>{e.expired?(clearTimeout(e.expirationId),k.push(e)):~(t=x[t]=w.indexOf(e.key))&&(b[t]=e)}),SA(v,(e,t)=>{b[t]||(b[t]={key:w[t],item:e,phase:p.MOUNT,ctrl:new jW},b[t].ctrl.item=e)}),x.length){let e=-1,{leave:r}=i?i():t;SA(x,(t,i)=>{let a=_[i];~t?(e=b.indexOf(a),b[e]=D5({},a,{item:v[t]})):r&&b.splice(++e,0,a)})}SM.fun(o)&&b.sort((e,t)=>o(e.item,t.item));let E=-s,F=DN(),C=jn(t),S=new Map,D=(0,el.useRef)(new Map),j=(0,el.useRef)(!1);SA(b,(e,r)=>{let a,o;let d=e.key,g=e.phase,v=i?i():t,b=D8(v.delay||0,d);if(g==p.MOUNT)a=v.enter,o=p.ENTER;else{let e=0>w.indexOf(d);if(g!=p.LEAVE){if(e)a=v.leave,o=p.LEAVE;else{if(!(a=v.update))return;o=p.UPDATE}}else{if(e)return;a=v.enter,o=p.ENTER}}if(a=D8(a,e.item,r),!(a=SM.obj(a)?ja(a):{to:a}).config){let t=m||C.config;a.config=D8(t,e.item,r,o)}E+=s;let k=D5({},C,{delay:b+E,ref:f,immediate:v.immediate,reset:!1},a);if(o==p.ENTER&&SM.und(k.from)){let a=i?i():t,o=SM.und(a.initial)||_?a.from:a.initial;k.from=D8(o,e.item,r)}let{onResolve:x}=k;k.onResolve=e=>{D8(x,e);let t=y.current,r=t.find(e=>e.key===d);if(r){if(e.cancelled&&r.phase!=p.UPDATE)return;if(r.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(r.phase==p.LEAVE){let t=D8(l,r.item);if(!1!==t){let i=!0===t?0:t;if(r.expired=!0,!e&&i>0){i<=2147483647&&(r.expirationId=setTimeout(F,i));return}}}e&&t.some(e=>e.expired)&&(D.current.delete(r),u&&(j.current=!0),F())}}};let T=jY(e.ctrl,k);o===p.LEAVE&&u?D.current.set(e,{phase:o,springs:T,payload:k}):S.set(e,{phase:o,springs:T,payload:k})});let T=(0,el.useContext)(j0),O=Dz(T),P=T!==O&&js(T);DA(()=>{P&&SA(b,e=>{e.ctrl.start({default:T})})},[T]),SA(S,(e,t)=>{if(D.current.size){let e=b.findIndex(e=>e.key===t.key);b.splice(e,1)}}),DA(()=>{SA(D.current.size?D.current:S,({phase:e,payload:t},r)=>{let{ctrl:i}=r;r.phase=e,null==g||g.add(i),P&&e==p.ENTER&&i.start({default:T}),t&&(ju(i,t.ref),i.ref&&!j.current?i.update(t):(i.start(t),j.current&&(j.current=!1)))})},a?void 0:r);let R=e=>el.createElement(el.Fragment,null,b.map((t,r)=>{let{springs:i}=S.get(t)||t.ctrl,a=e(D5({},i),t.item,t,r);return a&&a.type?el.createElement(a.type,D5({},a.props,{key:SM.str(t.key)||SM.num(t.key)?t.key:t.ctrl.id,ref:a.ref})):a}));return g?[R,g]:R}!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(p||(p={}));let j6=1;class j5 extends jD{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Dc(...t);let r=this._get();DW(this,D0(r).create(r))}advance(e){let t=this._get();SL(t,this.get())||(DV(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&j9(this._active)&&j7(this)}_get(){let e=SM.arr(this.source)?this.source.map(Dh):SN(Dh(this.source));return this.calc(...e)}_start(){this.idle&&!j9(this._active)&&(this.idle=!1,SA(D$(this),e=>{e.done=!1}),SW.skipAnimation?(Sm.batchedUpdates(()=>this.advance()),j7(this)):SZ.start(this))}_attach(){let e=1;SA(SN(this.source),t=>{Df(t)&&Dy(t,this),jC(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){SA(SN(this.source),e=>{Df(e)&&D_(e,this)}),this._active.clear(),j7(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=SN(this.source).reduce((e,t)=>Math.max(e,(jC(t)?t.priority:0)+1),0))}}function j8(e){return!1!==e.idle}function j9(e){return!e.size||Array.from(e).every(j8)}function j7(e){e.idle||(e.idle=!0,SA(D$(e),e=>{e.done=!0}),Dg(e,{type:"idle",parent:e}))}let Te=(e,...t)=>new j5(e,t);function Tt(e,t){if(null==e)return{};var r,i,a={},o=Object.keys(e);for(i=0;i=0||(a[r]=e[r]);return a}SW.assign({createStringInterpolator:DT,to:(e,t)=>new j5(e,t)}),SZ.advance;let Tn=["style","children","scrollTop","scrollLeft"],Tr=/^--/,Ti={},Ta={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},To=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Ts=["Webkit","Ms","Moz","O"];Ta=Object.keys(Ta).reduce((e,t)=>(Ts.forEach(r=>e[To(r,t)]=e[t]),e),Ta);let Tl=["x","y","z"],Tc=/^(matrix|translate|scale|rotate|skew)/,Tu=/^(translate)/,Td=/^(rotate|skew)/,Tp=(e,t)=>SM.num(e)&&0!==e?e+t:e,Tf=(e,t)=>SM.arr(e)?e.every(e=>Tf(e,t)):SM.num(e)?e===t:parseFloat(e)===t;class Th extends DJ{constructor(e){let{x:t,y:r,z:i}=e,a=Tt(e,Tl),o=[],s=[];(t||r||i)&&(o.push([t||0,r||0,i||0]),s.push(e=>[`translate3d(${e.map(e=>Tp(e,"px")).join(",")})`,Tf(e,0)])),SI(a,(e,t)=>{if("transform"===t)o.push([e||""]),s.push(e=>[e,""===e]);else if(Tc.test(t)){if(delete a[t],SM.und(e))return;let r=Tu.test(t)?"px":Td.test(t)?"deg":"";o.push(SN(e)),s.push("rotate3d"===t?([e,t,i,a])=>[`rotate3d(${e},${t},${i},${Tp(a,r)})`,Tf(a,0)]:e=>[`${t}(${e.map(e=>Tp(e,r)).join(",")})`,Tf(e,t.startsWith("scale")?1:0)])}}),o.length&&(a.transform=new Tm(o,s)),super(a)}}class Tm extends Dv{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 SA(this.inputs,(r,i)=>{let a=Dh(r[0]),[o,s]=this.transforms[i](SM.arr(a)?a:r.map(Dh));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){1==e&&SA(this.inputs,e=>SA(e,e=>Df(e)&&Dy(e,this)))}observerRemoved(e){0==e&&SA(this.inputs,e=>SA(e,e=>Df(e)&&D_(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Dg(this,e)}}let Tg=["scrollTop","scrollLeft"];SW.assign({batchedUpdates:fh.unstable_batchedUpdates,createStringInterpolator:DT,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 Tv=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new DJ(e),getComponentProps:i=e=>e}={})=>{let a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:i},o=e=>{let t=D6(e)||"Anonymous";return(e=SM.str(e)?o[e]||(o[e]=D2(e,a)):e[D4]||(e[D4]=D2(e,a))).displayName=`Animated(${t})`,e};return SI(e,(t,r)=>{SM.arr(e)&&(r=D6(t)),o[r]=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 r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:i,children:a,scrollTop:o,scrollLeft:s}=t,l=Tt(t,Tn),u=Object.values(l),d=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:Ti[t]||(Ti[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==a&&(e.textContent=a),i)if(i.hasOwnProperty(t)){var p;let r=null==(p=i[t])||"boolean"==typeof p||""===p?"":"number"!=typeof p||0===p||Tr.test(t)||Ta.hasOwnProperty(t)&&Ta[t]?(""+p).trim():p+"px";Tr.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach((t,r)=>{e.setAttribute(t,u[r])}),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new Th(e),getComponentProps:e=>Tt(e,Tg)}).animated;function Tb(){return(Tb=Object.assign||function(e){for(var t=1;t0&&f.height>0,y=Math.round(r[0]),_=Math.round(r[1]);b&&("top"===i?(y-=f.width/2,_-=f.height+14):"right"===i?(y+=14,_-=f.height/2):"bottom"===i?(y-=f.width/2,_+=14):"left"===i?(y-=f.width+14,_-=f.height/2):"center"===i&&(y-=f.width/2,_-=f.height/2),g={transform:T_(y,_)},m.current||(v=!0),m.current=[y,_]);var w=j3({to:g,config:u,immediate:!l||v}),k=Tb({},Ty,o.tooltip,{transform:null!=(t=w.transform)?t:T_(y,_)});return(0,es.jsx)(Tv.div,{ref:p,style:k,children:a})});Tw.displayName="TooltipWrapper";var Tk=(0,el.memo)(function(e){var t=e.size,r=void 0===t?12:t,i=e.color,a=e.style;return(0,es.jsx)("span",{style:Tb({display:"block",width:r,height:r,background:i},void 0===a?{}:a)})}),Tx=(0,el.memo)(function(e){var t,r=e.id,i=e.value,a=e.format,o=e.enableChip,s=e.color,l=e.renderContent,u=Lz(),d=LI(a);if("function"==typeof l)t=l();else{var p=i;void 0!==d&&void 0!==p&&(p=d(p)),t=(0,es.jsxs)("div",{style:u.tooltip.basic,children:[void 0!==o&&o&&(0,es.jsx)(Tk,{color:s,style:u.tooltip.chip}),void 0!==p?(0,es.jsxs)("span",{children:[r,": ",(0,es.jsx)("strong",{children:""+p})]}):r]})}return(0,es.jsx)("div",{style:u.tooltip.container,children:t})}),TE={width:"100%",borderCollapse:"collapse"},TF=(0,el.memo)(function(e){var t,r=e.title,i=e.rows,a=void 0===i?[]:i,o=e.renderContent,s=Lz();return a.length?(t="function"==typeof o?o():(0,es.jsxs)("div",{children:[r&&r,(0,es.jsx)("table",{style:Tb({},TE,s.tooltip.table),children:(0,es.jsx)("tbody",{children:a.map(function(e,t){return(0,es.jsx)("tr",{children:e.map(function(e,t){return(0,es.jsx)("td",{style:s.tooltip.tableCell,children:e},t)})},t)})})})]}),(0,es.jsx)("div",{style:s.tooltip.container,children:t})):null});TF.displayName="TableTooltip";var TC=(0,el.memo)(function(e){var t=e.x0,r=e.x1,i=e.y0,a=e.y1,o=Lz(),s=Lx(),l=s.animate,u=s.config,d=(0,el.useMemo)(function(){return Tb({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),p=j3({x1:t,x2:r,y1:i,y2:a,config:u,immediate:!l});return(0,es.jsx)(Tv.line,Tb({},p,{fill:"none",style:d}))});TC.displayName="CrosshairLine";var TS=(0,el.memo)(function(e){var t,r,i=e.width,a=e.height,o=e.type,s=e.x,l=e.y;return"cross"===o?(t={x0:s,x1:s,y0:0,y1:a},r={x0:0,x1:i,y0:l,y1:l}):"top-left"===o?(t={x0:s,x1:s,y0:0,y1:l},r={x0:0,x1:s,y0:l,y1:l}):"top"===o?t={x0:s,x1:s,y0:0,y1:l}:"top-right"===o?(t={x0:s,x1:s,y0:0,y1:l},r={x0:s,x1:i,y0:l,y1:l}):"right"===o?r={x0:s,x1:i,y0:l,y1:l}:"bottom-right"===o?(t={x0:s,x1:s,y0:l,y1:a},r={x0:s,x1:i,y0:l,y1:l}):"bottom"===o?t={x0:s,x1:s,y0:l,y1:a}:"bottom-left"===o?(t={x0:s,x1:s,y0:l,y1:a},r={x0:0,x1:s,y0:l,y1:l}):"left"===o?r={x0:0,x1:s,y0:l,y1:l}:"x"===o?t={x0:s,x1:s,y0:0,y1:a}:"y"===o&&(r={x0:0,x1:i,y0:l,y1:l}),(0,es.jsxs)(es.Fragment,{children:[t&&(0,es.jsx)(TC,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),r&&(0,es.jsx)(TC,{x0:r.x0,x1:r.x1,y0:r.y0,y1:r.y1})]})});TS.displayName="Crosshair";var TD=(0,el.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Tj={isVisible:!1,position:[null,null],content:null,anchor:null},TT=(0,el.createContext)(Tj),TO=function(e){var t=(0,el.useState)(Tj),r=t[0],i=t[1],a=(0,el.useCallback)(function(e,t,r){void 0===r&&(r="top"),i({isVisible:!0,position:[t[0],t[1]],anchor:r,content:e})},[i]),o=(0,el.useCallback)(function(t,r,a){void 0===a&&(a="top");var o=e.current.getBoundingClientRect(),s=e.current.offsetWidth,l=s===o.width?1:s/o.width,u=(r.clientX-o.left)*l,d=(r.clientY-o.top)*l;"left"!==a&&"right"!==a||(a=ul&&(s=t.slice(l,s),d[u]?d[u]+=s:d[++u]=s),(a=a[0])===(o=o[0])?d[u]?d[u]+=o:d[++u]=o:(d[++u]=null,p.push({i:u,x:TH(a,o)})),l=TV.lastIndex;return l>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ol(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ol(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=T8.exec(e))?new Od(t[1],t[2],t[3],1):(t=T9.exec(e))?new Od(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=T7.exec(e))?Ol(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?Ol(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ot.exec(e))?Om(t[1],t[2]/100,t[3]/100,1):(t=On.exec(e))?Om(t[1],t[2]/100,t[3]/100,t[4]):Or.hasOwnProperty(e)?Os(Or[e]):"transparent"===e?new Od(NaN,NaN,NaN,0):null}function Os(e){return new Od(e>>16&255,e>>8&255,255&e,1)}function Ol(e,t,r,i){return i<=0&&(e=t=r=NaN),new Od(e,t,r,i)}function Oc(e){return(e instanceof T2||(e=Oo(e)),e)?new Od((e=e.rgb()).r,e.g,e.b,e.opacity):new Od}function Ou(e,t,r,i){return 1==arguments.length?Oc(e):new Od(e,t,r,null==i?1:i)}function Od(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function Op(){return"#"+Oh(this.r)+Oh(this.g)+Oh(this.b)}function Of(){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 Oh(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Om(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ov(e,t,r,i)}function Og(e){if(e instanceof Ov)return new Ov(e.h,e.s,e.l,e.opacity);if(e instanceof T2||(e=Oo(e)),!e)return new Ov;if(e instanceof Ov)return e;var t=(e=e.rgb()).r/255,r=e.g/255,i=e.b/255,a=Math.min(t,r,i),o=Math.max(t,r,i),s=NaN,l=o-a,u=(o+a)/2;return l?(s=t===o?(r-i)/l+(r0&&u<1?0:s,new Ov(s,l,u,e.opacity)}function Ov(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function Ob(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function Oy(e,t,r,i,a){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*r+(1+3*e+3*o-3*s)*i+s*a)/6}T0(T2,Oo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Oi,formatHex:Oi,formatHsl:function(){return Og(this).formatHsl()},formatRgb:Oa,toString:Oa}),T0(Od,Ou,T1(T2,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Od(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Od(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:Op,formatHex:Op,formatRgb:Of,toString:Of})),T0(Ov,function(e,t,r,i){return 1==arguments.length?Og(e):new Ov(e,t,r,null==i?1:i)},T1(T2,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Ov(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ov(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,r=this.l,i=r+(r<.5?r:1-r)*t,a=2*r-i;return new Od(Ob(e>=240?e-240:e+120,a,i),Ob(e,a,i),Ob(e<120?e+240:e-120,a,i),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+")")}}));let O_=e=>()=>e;function Ow(e,t){return function(r){return e+r*t}}function Ok(e,t){var r=t-e;return r?Ow(e,r):O_(isNaN(e)?t:e)}let Ox=function e(t){var r,i=1==(r=+(r=t))?Ok:function(e,t){var i,a,o;return t-e?(i=e,a=t,i=Math.pow(i,o=r),a=Math.pow(a,o)-i,o=1/o,function(e){return Math.pow(i+e*a,o)}):O_(isNaN(e)?t:e)};function a(e,t){var r=i((e=Ou(e)).r,(t=Ou(t)).r),a=i(e.g,t.g),o=i(e.b,t.b),s=Ok(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=o(t),e.opacity=s(t),e+""}}return a.gamma=e,a}(1);function OE(e){return function(t){var r,i,a=t.length,o=Array(a),s=Array(a),l=Array(a);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),a=e[i],o=e[i+1],s=i>0?e[i-1]:2*a-o,l=iOF(e[e.length-1]);var OS=[,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(TQ);let OD=OC(OS);var Oj=[,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(TQ);let OT=OC(Oj);var OO=[,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(TQ);let OP=OC(OO);var OR=[,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(TQ);let OM=OC(OR);var OL=[,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(TQ);let OA=OC(OL);var OI=[,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(TQ);let ON=OC(OI);var OB=[,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(TQ);let OU=OC(OB);var Oz=[,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(TQ);let OH=OC(Oz);var Oq=[,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(TQ);let OV=OC(Oq);var OW=[,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(TQ);let O$=OC(OW);var OG=[,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(TQ);let OY=OC(OG);var OK=[,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(TQ);let OZ=OC(OK);var OJ=[,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(TQ);let OX=OC(OJ);var OQ=[,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(TQ);let O0=OC(OQ);var O1=[,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(TQ);let O2=OC(O1);var O3=[,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(TQ);let O4=OC(O3);var O6=[,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(TQ);let O5=OC(O6);var O8=[,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(TQ);let O9=OC(O8);var O7=[,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(TQ);let Pe=OC(O7);var Pt=[,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(TQ);let Pn=OC(Pt);var Pr=[,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(TQ);let Pi=OC(Pr);var Pa=[,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(TQ);let Po=OC(Pa);var Ps=[,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(TQ);let Pl=OC(Ps);var Pc=[,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(TQ);let Pu=OC(Pc);var Pd=[,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(TQ);let Pp=OC(Pd);var Pf=[,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(TQ);let Ph=OC(Pf);var Pm=[,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(TQ);let Pg=OC(Pm),Pv=TQ("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Pb=TQ("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Py=TQ("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),P_=TQ("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Pw=TQ("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Pk=TQ("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Px=TQ("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),PE=TQ("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),PF=TQ("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function PC(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}let PS=PC(TQ("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var PD=PC(TQ("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Pj=PC(TQ("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),PT=PC(TQ("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));let PO=Math.PI/180,PP=180/Math.PI;var PR=-1.78277*.29227-.1347134789;function PM(e,t,r,i){return 1==arguments.length?function(e){if(e instanceof PL)return new PL(e.h,e.s,e.l,e.opacity);e instanceof Od||(e=Oc(e));var t=e.r/255,r=e.g/255,i=e.b/255,a=(PR*i+-1.7884503806*t-3.5172982438*r)/(PR+-1.7884503806-3.5172982438),o=i-a,s=-((1.97294*(r-a)- -.29227*o)/.90649),l=Math.sqrt(s*s+o*o)/(1.97294*a*(1-a)),u=l?Math.atan2(s,o)*PP-120:NaN;return new PL(u<0?u+360:u,l,a,e.opacity)}(e):new PL(e,t,r,null==i?1:i)}function PL(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function PA(e){return function t(r){function i(t,i){var a=e((t=PM(t)).h,(i=PM(i)).h),o=Ok(t.s,i.s),s=Ok(t.l,i.l),l=Ok(t.opacity,i.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(Math.pow(e,r)),t.opacity=l(e),t+""}}return r=+r,i.gamma=t,i}(1)}T0(PL,PM,T1(T2,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new PL(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new PL(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*PO,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),a=Math.sin(e);return new Od(255*(t+r*(-.14861*i+1.78277*a)),255*(t+r*(-.29227*i+-.90649*a)),255*(t+1.97294*i*r),this.opacity)}})),PA(function(e,t){var r=t-e;return r?Ow(e,r>180||r<-180?r-360*Math.round(r/360):r):O_(isNaN(e)?t:e)});var PI=PA(Ok),PN=PI(PM(-100,.75,.35),PM(80,1.5,.8)),PB=PI(PM(260,.75,.35),PM(80,1.5,.8)),PU=PM();let Pz=PI(PM(300,.5,0),PM(-240,.5,1));var PH=Ou(),Pq=Math.PI/3,PV=2*Math.PI/3,PW=r(85586),P$=r.n(PW),PG=r(49037),PY=r.n(PG);function PK(e,t,r){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+r)/6)}function PZ(e){this._context=e}function PJ(){}function PX(e){this._context=e}function PQ(e){this._context=e}function P0(e,t){this._basis=new PZ(e),this._beta=t}PZ.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:PK(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:PK(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},PX.prototype={areaStart:PJ,areaEnd:PJ,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:PK(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},PQ.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 r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:PK(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},P0.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i,a=e[0],o=t[0],s=e[r]-a,l=t[r]-o,u=-1;++u<=r;)i=u/r,this._basis.point(this._beta*e[u]+(1-this._beta)*(a+i*s),this._beta*t[u]+(1-this._beta)*(o+i*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let P1=function e(t){function r(e){return 1===t?new PZ(e):new P0(e,t)}return r.beta=function(t){return e(+t)},r}(.85);function P2(e,t,r){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-r),e._x2,e._y2)}function P3(e,t){this._context=e,this._k=(1-t)/6}P3.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:P2(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:P2(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}};let P4=function e(t){function r(e){return new P3(e,t)}return r.tension=function(t){return e(+t)},r}(0);function P6(e,t){this._context=e,this._k=(1-t)/6}P6.prototype={areaStart:PJ,areaEnd:PJ,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:P2(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}};let P5=function e(t){function r(e){return new P6(e,t)}return r.tension=function(t){return e(+t)},r}(0);function P8(e,t){this._context=e,this._k=(1-t)/6}P8.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:P2(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}};let P9=function e(t){function r(e){return new P8(e,t)}return r.tension=function(t){return e(+t)},r}(0);function P7(e,t,r){var i=e._x1,a=e._y1,o=e._x2,s=e._y2;if(e._l01_a>1e-12){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var d=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,p=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*d+e._x1*e._l23_2a-t*e._l12_2a)/p,s=(s*d+e._y1*e._l23_2a-r*e._l12_2a)/p}e._context.bezierCurveTo(i,a,o,s,e._x2,e._y2)}function Re(e,t){this._context=e,this._alpha=t}Re.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 r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:P7(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}};let Rt=function e(t){function r(e){return t?new Re(e,t):new P3(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function Rn(e,t){this._context=e,this._alpha=t}Rn.prototype={areaStart:PJ,areaEnd:PJ,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 r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:P7(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}};let Rr=function e(t){function r(e){return t?new Rn(e,t):new P6(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function Ri(e,t){this._context=e,this._alpha=t}Ri.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 r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:P7(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}};let Ra=function e(t){function r(e){return t?new Ri(e,t):new P8(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function Ro(e){this._context=e}function Rs(e){return new Ro(e)}function Rl(e){this._context=e}function Rc(e,t,r){var i=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(i||a<0&&-0),s=(r-e._y1)/(a||i<0&&-0);return((o<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs((o*a+s*i)/(i+a)))||0}function Ru(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Rd(e,t,r){var i=e._x0,a=e._y0,o=e._x1,s=e._y1,l=(o-i)/3;e._context.bezierCurveTo(i+l,a+l*t,o-l,s-l*r,o,s)}function Rp(e){this._context=e}function Rf(e){this._context=new Rh(e)}function Rh(e){this._context=e}function Rm(e){this._context=e}function Rg(e){var t,r,i=e.length-1,a=Array(i),o=Array(i),s=Array(i);for(a[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t=0;--t)a[t]=(s[t]-a[t+1])/o[t];for(t=0,o[i-1]=(e[i]+a[i-1])/2;t1)for(var r,i,a,o=1,s=e[t[0]],l=s.length;o1?i[0]+i.slice(2):i,+e.slice(r+1)]}function Rw(e){return(e=R_(Math.abs(e)))?e[1]:NaN}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Rd(this,this._t0,Ru(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){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,Rd(this,Ru(this,r=Rc(this,e,t)),r);break;default:Rd(this,this._t0,r=Rc(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(Rf.prototype=Object.create(Rp.prototype)).point=function(e,t){Rp.prototype.point.call(this,t,e)},Rh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,a,o){this._context.bezierCurveTo(t,e,i,r,o,a)}},Rm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var i=Rg(e),a=Rg(t),o=0,s=1;s=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Rk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rx(e){var t;if(!(t=Rk.exec(e)))throw Error("invalid format: "+e);return new RE({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 RE(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 RF(e,t){var r=R_(e,t);if(!r)return e+"";var i=r[0],a=r[1];return a<0?"0."+Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+Array(a-i.length+2).join("0")}Rx.prototype=RE.prototype,RE.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};let RC={"%":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 RF(100*e,t)},r:RF,s:function(e,t){var r=R_(e,t);if(!r)return e+"";var i=r[0],a=r[1],o=a-(W=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+R_(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 RS(e){return e}var RD=Array.prototype.map,Rj=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];G=($=function(e){var t,r,i,a=void 0===e.grouping||void 0===e.thousands?RS:(t=RD.call(e.grouping,Number),r=e.thousands+"",function(e,i){for(var a=e.length,o=[],s=0,l=t[0],u=0;a>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),o.push(e.substring(a-=l,a+l)),!((u+=l+1)>i));)l=t[s=(s+1)%t.length];return o.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?RS:(i=RD.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),d=void 0===e.percent?"%":e.percent+"",p=void 0===e.minus?"-":e.minus+"",f=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=Rx(e)).fill,r=e.align,i=e.sign,m=e.symbol,g=e.zero,v=e.width,b=e.comma,y=e.precision,_=e.trim,w=e.type;"n"===w?(b=!0,w="g"):RC[w]||(void 0===y&&(y=12),_=!0,w="g"),(g||"0"===t&&"="===r)&&(g=!0,t="0",r="=");var k="$"===m?o:"#"===m&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x="$"===m?s:/[%p]/.test(w)?d:"",E=RC[w],F=/[defgprs%]/.test(w);function C(e){var o,s,d,m=k,C=x;if("c"===w)C=E(e)+C,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?f:E(Math.abs(e),y),_&&(e=function(e){e:for(var t,r=e.length,i=1,a=-1;i0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==i&&(S=!1),m=(S?"("===i?i:p:"-"===i||"("===i?"":i)+m,C=("s"===w?Rj[8+W/3]:"")+C+(S&&"("===i?")":""),F){for(o=-1,s=e.length;++o(d=e.charCodeAt(o))||d>57){C=(46===d?l+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}}b&&!g&&(e=a(e,1/0));var D=m.length+e.length+C.length,j=D>1)+m+e+C+j.slice(D);break;default:e=j+m+e+C}return u(e)}return y=void 0===y?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:m,formatPrefix:function(e,t){var r=m(((e=Rx(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(Rw(t)/3))),a=Math.pow(10,-i),o=Rj[8+i/3];return function(e){return r(a*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,Y=$.formatPrefix;var RT=new Date,RO=new Date;function RP(e,t,r,i){function a(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return a.floor=function(t){return e(t=new Date(+t)),t},a.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},a.round=function(e){var t=a(e),r=a.ceil(e);return e-t0))return l;do l.push(s=new Date(+r)),t(r,o),e(r);while(s=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,i){if(e>=e){if(i<0)for(;++i<=0;)for(;t(e,-1),!r(e););else for(;--i>=0;)for(;t(e,1),!r(e););}})},r&&(a.count=function(t,i){return RT.setTime(+t),RO.setTime(+i),e(RT),e(RO),Math.floor(r(RT,RO))},a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?a.filter(i?function(t){return i(t)%e==0}:function(t){return a.count(0,t)%e==0}):a:null}),a}function RR(e){return RP(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 RM=RR(0),RL=RR(1),RA=RR(2),RI=RR(3),RN=RR(4),RB=RR(5),RU=RR(6);RM.range,RL.range,RA.range,RI.range,RN.range,RB.range,RU.range;var Rz=RP(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 RH(e){return RP(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})}Rz.range;var Rq=RH(0),RV=RH(1),RW=RH(2),R$=RH(3),RG=RH(4),RY=RH(5),RK=RH(6);Rq.range,RV.range,RW.range,R$.range,RG.range,RY.range,RK.range;var RZ=RP(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});RZ.range;var RJ=RP(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()});RJ.every=function(e){return isFinite(e=Math.floor(e))&&e>0?RP(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},RJ.range;var RX=RP(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 RQ(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 R0(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 R1(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}RX.every=function(e){return isFinite(e=Math.floor(e))&&e>0?RP(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},RX.range;var R2={"-":"",_:" ",0:"0"},R3=/^\s*\d+/,R4=/^%/,R6=/[\\^$*+?|[\]().{}]/g;function R5(e,t,r){var i=e<0?"-":"",a=(i?-e:e)+"",o=a.length;return i+(o[e.toLowerCase(),t]))}function Me(e,t,r){var i=R3.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function Mt(e,t,r){var i=R3.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function Mn(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function Mr(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function Mi(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function Ma(e,t,r){var i=R3.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function Mo(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Ms(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Ml(e,t,r){var i=R3.exec(t.slice(r,r+1));return i?(e.q=3*i[0]-3,r+i[0].length):-1}function Mc(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function Mu(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Md(e,t,r){var i=R3.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function Mp(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Mf(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Mh(e,t,r){var i=R3.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Mm(e,t,r){var i=R3.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Mg(e,t,r){var i=R3.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Mv(e,t,r){var i=R4.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Mb(e,t,r){var i=R3.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function My(e,t,r){var i=R3.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function M_(e,t){return R5(e.getDate(),t,2)}function Mw(e,t){return R5(e.getHours(),t,2)}function Mk(e,t){return R5(e.getHours()%12||12,t,2)}function Mx(e,t){return R5(1+RZ.count(RJ(e),e),t,3)}function ME(e,t){return R5(e.getMilliseconds(),t,3)}function MF(e,t){return ME(e,t)+"000"}function MC(e,t){return R5(e.getMonth()+1,t,2)}function MS(e,t){return R5(e.getMinutes(),t,2)}function MD(e,t){return R5(e.getSeconds(),t,2)}function Mj(e){var t=e.getDay();return 0===t?7:t}function MT(e,t){return R5(Rq.count(RJ(e)-1,e),t,2)}function MO(e){var t=e.getDay();return t>=4||0===t?RG(e):RG.ceil(e)}function MP(e,t){return e=MO(e),R5(RG.count(RJ(e),e)+(4===RJ(e).getDay()),t,2)}function MR(e){return e.getDay()}function MM(e,t){return R5(RV.count(RJ(e)-1,e),t,2)}function ML(e,t){return R5(e.getFullYear()%100,t,2)}function MA(e,t){return R5((e=MO(e)).getFullYear()%100,t,2)}function MI(e,t){return R5(e.getFullYear()%1e4,t,4)}function MN(e,t){var r=e.getDay();return R5((e=r>=4||0===r?RG(e):RG.ceil(e)).getFullYear()%1e4,t,4)}function MB(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+R5(t/60|0,"0",2)+R5(t%60,"0",2)}function MU(e,t){return R5(e.getUTCDate(),t,2)}function Mz(e,t){return R5(e.getUTCHours(),t,2)}function MH(e,t){return R5(e.getUTCHours()%12||12,t,2)}function Mq(e,t){return R5(1+Rz.count(RX(e),e),t,3)}function MV(e,t){return R5(e.getUTCMilliseconds(),t,3)}function MW(e,t){return MV(e,t)+"000"}function M$(e,t){return R5(e.getUTCMonth()+1,t,2)}function MG(e,t){return R5(e.getUTCMinutes(),t,2)}function MY(e,t){return R5(e.getUTCSeconds(),t,2)}function MK(e){var t=e.getUTCDay();return 0===t?7:t}function MZ(e,t){return R5(RM.count(RX(e)-1,e),t,2)}function MJ(e){var t=e.getUTCDay();return t>=4||0===t?RN(e):RN.ceil(e)}function MX(e,t){return e=MJ(e),R5(RN.count(RX(e),e)+(4===RX(e).getUTCDay()),t,2)}function MQ(e){return e.getUTCDay()}function M0(e,t){return R5(RL.count(RX(e)-1,e),t,2)}function M1(e,t){return R5(e.getUTCFullYear()%100,t,2)}function M2(e,t){return R5((e=MJ(e)).getUTCFullYear()%100,t,2)}function M3(e,t){return R5(e.getUTCFullYear()%1e4,t,4)}function M4(e,t){var r=e.getUTCDay();return R5((e=r>=4||0===r?RN(e):RN.ceil(e)).getUTCFullYear()%1e4,t,4)}function M6(){return"+0000"}function M5(){return"%"}function M8(e){return+e}function M9(e){return Math.floor(+e/1e3)}Z=(K=function(e){var t=e.dateTime,r=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,d=R9(a),p=R7(a),f=R9(o),m=R7(o),g=R9(s),v=R7(s),b=R9(l),y=R7(l),_=R9(u),w=R7(u),k={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:M_,e:M_,f:MF,g:MA,G:MN,H:Mw,I:Mk,j:Mx,L:ME,m:MC,M:MS,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:M8,s:M9,S:MD,u:Mj,U:MT,V:MP,w:MR,W:MM,x:null,X:null,y:ML,Y:MI,Z:MB,"%":M5},x={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:MU,e:MU,f:MW,g:M2,G:M4,H:Mz,I:MH,j:Mq,L:MV,m:M$,M:MG,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:M8,s:M9,S:MY,u:MK,U:MZ,V:MX,w:MQ,W:M0,x:null,X:null,y:M1,Y:M3,Z:M6,"%":M5},E={a:function(e,t,r){var i=g.exec(t.slice(r));return i?(e.w=v.get(i[0].toLowerCase()),r+i[0].length):-1},A:function(e,t,r){var i=f.exec(t.slice(r));return i?(e.w=m.get(i[0].toLowerCase()),r+i[0].length):-1},b:function(e,t,r){var i=_.exec(t.slice(r));return i?(e.m=w.get(i[0].toLowerCase()),r+i[0].length):-1},B:function(e,t,r){var i=b.exec(t.slice(r));return i?(e.m=y.get(i[0].toLowerCase()),r+i[0].length):-1},c:function(e,r,i){return S(e,t,r,i)},d:Mu,e:Mu,f:Mg,g:Mo,G:Ma,H:Mp,I:Mp,j:Md,L:Mm,m:Mc,M:Mf,p:function(e,t,r){var i=d.exec(t.slice(r));return i?(e.p=p.get(i[0].toLowerCase()),r+i[0].length):-1},q:Ml,Q:Mb,s:My,S:Mh,u:Mt,U:Mn,V:Mr,w:Me,W:Mi,x:function(e,t,i){return S(e,r,t,i)},X:function(e,t,r){return S(e,i,t,r)},y:Mo,Y:Ma,Z:Ms,"%":Mv};function F(e,t){return function(r){var i,a,o,s=[],l=-1,u=0,d=e.length;for(r instanceof Date||(r=new Date(+r));++l53)return null;"w"in o||(o.w=1),"Z"in o?(i=(a=(i=R0(R1(o.y,0,1))).getUTCDay())>4||0===a?RL.ceil(i):RL(i),i=Rz.offset(i,(o.V-1)*7),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(i=(a=(i=RQ(R1(o.y,0,1))).getDay())>4||0===a?RV.ceil(i):RV(i),i=RZ.offset(i,(o.V-1)*7),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.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),a="Z"in o?R0(R1(o.y,0,1)).getUTCDay():RQ(R1(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(a+5)%7:o.w+7*o.U-(a+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,R0(o)):RQ(o)}}function S(e,t,r,i){for(var a,o,s=0,l=t.length,u=r.length;s=u)return -1;if(37===(a=t.charCodeAt(s++))){if(!(o=E[(a=t.charAt(s++))in R2?t.charAt(s++):a])||(i=o(e,r,i))<0)return -1}else if(a!=r.charCodeAt(i++))return -1}return i}return k.x=F(r,k),k.X=F(i,k),k.c=F(t,k),x.x=F(r,x),x.X=F(i,x),x.c=F(t,x),{format:function(e){var t=F(e+="",k);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=F(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(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,J=K.parse,X=K.utcFormat,Q=K.utcParse,Object.prototype.hasOwnProperty;var M7=r(81711),Le=r.n(M7),Lt=r(36153),Ln=r.n(Lt),Lr=r(41686),Li=r.n(Lr);function La(){return(La=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}var Ll={fill:lB().string,fontSize:lB().number,fontFamily:lB().string},Lc=lB().shape({domain:lB().shape({line:lB().shape({stroke:lB().string.isRequired,strokeWidth:lB().number.isRequired,strokeDasharray:lB().string}).isRequired}).isRequired,ticks:lB().shape({line:lB().shape({stroke:lB().string.isRequired,strokeWidth:lB().number.isRequired,strokeDasharray:lB().string}).isRequired,text:lB().shape(La({},Ll)).isRequired}).isRequired,legend:lB().shape({text:lB().shape(La({},Ll)).isRequired}).isRequired}),Lu=lB().shape({line:lB().shape({stroke:lB().string.isRequired,strokeWidth:lB().number.isRequired,strokeDasharray:lB().string}).isRequired}),Ld=lB().shape({hidden:lB().shape({symbol:lB().shape({fill:lB().string.isRequired,opacity:lB().number}).isRequired,text:lB().shape(La({},Ll,{opacity:lB().number})).isRequired}).isRequired,text:lB().shape(La({},Ll)).isRequired}),Lp=lB().shape({text:lB().shape(La({},Ll)).isRequired}),Lf=lB().shape({text:lB().shape(La({},Ll)).isRequired}),Lh=lB().shape({text:lB().shape(La({},Ll)).isRequired}),Lm=lB().shape({line:lB().shape({stroke:lB().string.isRequired,strokeWidth:lB().number.isRequired,strokeDasharray:lB().string}).isRequired}),Lg=lB().shape({text:lB().shape(La({},Ll,{outlineWidth:lB().number.isRequired,outlineColor:lB().string.isRequired})).isRequired,link:lB().shape({stroke:lB().string.isRequired,strokeWidth:lB().number.isRequired,outlineWidth:lB().number.isRequired,outlineColor:lB().string.isRequired}).isRequired,outline:lB().shape({stroke:lB().string.isRequired,strokeWidth:lB().number.isRequired,outlineWidth:lB().number.isRequired,outlineColor:lB().string.isRequired}).isRequired,symbol:lB().shape({fill:lB().string.isRequired,outlineWidth:lB().number.isRequired,outlineColor:lB().string.isRequired}).isRequired}),Lv=(lB().shape({background:lB().string.isRequired,fontFamily:lB().string.isRequired,fontSize:lB().number.isRequired,textColor:lB().string.isRequired,axis:Lc.isRequired,grid:Lu.isRequired,legends:Ld.isRequired,labels:Lp.isRequired,dots:Lf.isRequired,markers:Lh,crosshair:Lm.isRequired,annotations:Lg.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}}}),Lb=["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"],Ly=function(e,t){var r=TI()({},e,t);return Lb.forEach(function(e){void 0===TB()(r,e+".fontFamily")&&Tz()(r,e+".fontFamily",r.fontFamily),void 0===TB()(r,e+".fontSize")&&Tz()(r,e+".fontSize",r.fontSize),void 0===TB()(r,e+".fill")&&Tz()(r,e+".fill",r.textColor)}),r},L_=(0,el.createContext)(),Lw=function(e){var t=e.children,r=e.animate,i=e.stiffness,a=e.damping,o=e.config,s=(0,el.useMemo)(function(){return{animate:r,springConfig:{stiffness:i,damping:a},config:TG()(o)?jd[o]:o}},[r,i,a,o]);return(0,es.jsx)(L_.Provider,{value:s,children:t})},Lk={animate:lB().bool,motionStiffness:lB().number,motionDamping:lB().number,motionConfig:lB().oneOfType([lB().oneOf(Object.keys(jd)),lB().shape({mass:lB().number,tension:lB().number,friction:lB().number,clamp:lB().bool,precision:lB().number,velocity:lB().number,duration:lB().number,easing:lB().func})])};Lw.propTypes={children:lB().node.isRequired,animate:Lk.animate,stiffness:Lk.motionStiffness,damping:Lk.motionDamping,config:Lk.motionConfig},Lw.defaultProps={animate:!0,stiffness:90,damping:15,config:"default"};var Lx=function(){return(0,el.useContext)(L_)},LE=function(e){var t,r=Lx(),i=r.animate,a=r.config,o=(t=(0,el.useRef)(),(0,el.useEffect)(function(){t.current=e},[e]),t.current),s=(0,el.useMemo)(function(){return TW(o,e)},[o,e]);return Te(j3({from:{value:0},to:{value:1},reset:!0,config:a,immediate:!i}).value,s)},LF=Object.keys({nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:TK()(OS),PRGn:TK()(Oj),PiYG:TK()(OO),PuOr:TK()(OR),RdBu:TK()(OL),RdGy:TK()(OI),RdYlBu:TK()(OB),RdYlGn:TK()(Oz),spectral:TK()(Oq),blues:TK()(OW),greens:TK()(OG),greys:TK()(OK),oranges:TK()(OJ),purples:TK()(OQ),reds:TK()(O1),BuGn:TK()(O3),BuPu:TK()(O6),GnBu:TK()(O8),OrRd:TK()(O7),PuBuGn:TK()(Pt),PuBu:TK()(Pr),PuRd:TK()(Pa),RdPu:TK()(Ps),YlGnBu:TK()(Pc),YlGn:TK()(Pd),YlOrBr:TK()(Pf),YlOrRd:TK()(Pm)}),LC=(TK()(OS),TK()(Oj),TK()(OO),TK()(OR),TK()(OL),TK()(OI),TK()(OB),TK()(Oz),TK()(Oq),TK()(OW),TK()(OG),TK()(OK),TK()(OJ),TK()(OQ),TK()(O1),TK()(O3),TK()(O6),TK()(O8),TK()(O7),TK()(Pt),TK()(Pr),TK()(Pa),TK()(Ps),TK()(Pc),TK()(Pd),TK()(Pf),TK()(Pm),lB().oneOfType([lB().oneOf(LF),lB().func,lB().arrayOf(lB().string)]),{basis:function(e){return new PZ(e)},basisClosed:function(e){return new PX(e)},basisOpen:function(e){return new PQ(e)},bundle:P1,cardinal:P4,cardinalClosed:P5,cardinalOpen:P9,catmullRom:Rt,catmullRomClosed:Rr,catmullRomOpen:Ra,linear:Rs,linearClosed:function(e){return new Rl(e)},monotoneX:function(e){return new Rp(e)},monotoneY:function(e){return new Rf(e)},natural:function(e){return new Rm(e)},step:function(e){return new Rv(e,.5)},stepAfter:function(e){return new Rv(e,1)},stepBefore:function(e){return new Rv(e,0)}}),LS=Object.keys(LC),LD=(lB().oneOf(LS),LS.filter(function(e){return e.endsWith("Closed")}),PY()(LS,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),PY()(LS,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed")),Lj=lB().oneOf(LD),LT=function(e){if(!LC[e])throw TypeError("'"+e+"', is not a valid curve interpolator identifier.");return LC[e]},LO={defs:lB().arrayOf(lB().shape({id:lB().string.isRequired})).isRequired,fill:lB().arrayOf(lB().shape({id:lB().string.isRequired,match:lB().oneOfType([lB().oneOf(["*"]),lB().object,lB().func]).isRequired})).isRequired},LP=Object.keys((lB().oneOf(["ascending","descending","insideOut","none","reverse"]),{expand:function(e,t){if((i=e.length)>0){for(var r,i,a,o=0,s=e[0].length;o0)for(var r,i,a,o,s,l,u=0,d=e[t[0]].length;u0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)},none:Ry,silhouette:function(e,t){if((r=e.length)>0){for(var r,i=0,a=e[t[0]],o=a.length;i0&&(i=(r=e[t[0]]).length)>0){for(var r,i,a,o=0,s=1;s0&&a.height>0;return(0,es.jsx)("div",{ref:i,style:{width:"100%",height:"100%"},children:o&&t({width:a.width,height:a.height})})};LW.propTypes={children:lB().func.isRequired};var L$=["id","colors"],LG=function(e){var t=e.id,r=e.colors,i=Ls(e,L$);return(0,es.jsx)("linearGradient",La({id:t,x1:0,x2:0,y1:0,y2:1},i,{children:r.map(function(e){var t=e.offset,r=e.color,i=e.opacity;return(0,es.jsx)("stop",{offset:t+"%",stopColor:r,stopOpacity:void 0!==i?i:1},t)})}))};LG.propTypes={id:lB().string.isRequired,colors:lB().arrayOf(lB().shape({offset:lB().number.isRequired,color:lB().string.isRequired,opacity:lB().number})).isRequired,gradientTransform:lB().string};var LY={linearGradient:LG},LK=(0,el.memo)(function(e){var t=e.id,r=e.background,i=e.color,a=e.size,o=e.padding,s=e.stagger,l=a+o,u=a/2,d=o/2;return!0===s&&(l=2*a+2*o),(0,es.jsxs)("pattern",{id:t,width:l,height:l,patternUnits:"userSpaceOnUse",children:[(0,es.jsx)("rect",{width:l,height:l,fill:r}),(0,es.jsx)("circle",{cx:d+u,cy:d+u,r:u,fill:i}),s&&(0,es.jsx)("circle",{cx:1.5*o+a+u,cy:1.5*o+a+u,r:u,fill:i})]})});LK.displayName="PatternDots",LK.propTypes={id:lB().string.isRequired,color:lB().string.isRequired,background:lB().string.isRequired,size:lB().number.isRequired,padding:lB().number.isRequired,stagger:lB().bool.isRequired},LK.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var LZ=function(e){return e*Math.PI/180},LJ={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"}}},LX=(0,el.memo)(function(e){var t=e.id,r=e.spacing,i=e.rotation,a=e.background,o=e.color,s=e.lineWidth,l=Math.round(i)%360,u=Math.abs(r);l>180?l-=360:l>90?l-=180:l<-180?l+=360:l<-90&&(l+=180);var d,p=u,f=u;return 0===l?d="\n M 0 0 L "+p+" 0\n M 0 "+f+" L "+p+" "+f+"\n ":90===l?d="\n M 0 0 L 0 "+f+"\n M "+p+" 0 L "+p+" "+f+"\n ":(p=Math.abs(u/Math.sin(LZ(l))),f=u/Math.sin(LZ(90-l)),d=l>0?"\n M 0 "+-f+" L "+2*p+" "+f+"\n M "+-p+" "+-f+" L "+p+" "+f+"\n M "+-p+" 0 L "+p+" "+2*f+"\n ":"\n M "+-p+" "+f+" L "+p+" "+-f+"\n M "+-p+" "+2*f+" L "+2*p+" "+-f+"\n M 0 "+2*f+" L "+2*p+" 0\n "),(0,es.jsxs)("pattern",{id:t,width:p,height:f,patternUnits:"userSpaceOnUse",children:[(0,es.jsx)("rect",{width:p,height:f,fill:a,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),(0,es.jsx)("path",{d:d,strokeWidth:s,stroke:o,strokeLinecap:"square"})]})});LX.displayName="PatternLines",LX.propTypes={id:lB().string.isRequired,spacing:lB().number.isRequired,rotation:lB().number.isRequired,background:lB().string.isRequired,color:lB().string.isRequired,lineWidth:lB().number.isRequired},LX.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var LQ=(0,el.memo)(function(e){var t=e.id,r=e.background,i=e.color,a=e.size,o=e.padding,s=e.stagger,l=a+o,u=o/2;return!0===s&&(l=2*a+2*o),(0,es.jsxs)("pattern",{id:t,width:l,height:l,patternUnits:"userSpaceOnUse",children:[(0,es.jsx)("rect",{width:l,height:l,fill:r}),(0,es.jsx)("rect",{x:u,y:u,width:a,height:a,fill:i}),s&&(0,es.jsx)("rect",{x:1.5*o+a,y:1.5*o+a,width:a,height:a,fill:i})]})});LQ.displayName="PatternSquares",LQ.propTypes={id:lB().string.isRequired,color:lB().string.isRequired,background:lB().string.isRequired,size:lB().number.isRequired,padding:lB().number.isRequired,stagger:lB().bool.isRequired},LQ.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var L0={patternDots:LK,patternLines:LX,patternSquares:LQ},L1=["type"],L2=La({},LY,L0),L3=function(e){var t=e.defs;return!t||t.length<1?null:(0,es.jsx)("defs",{"aria-hidden":!0,children:t.map(function(e){var t=e.type,r=Ls(e,L1);return L2[t]?(0,el.createElement)(L2[t],La({key:r.id},r)):null})})};L3.propTypes={defs:lB().arrayOf(lB().shape({type:lB().oneOf(Object.keys(L2)).isRequired,id:lB().string.isRequired}))};var L4=(0,el.memo)(L3),L6=function(e){var t=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,s=e.role,l=e.ariaLabel,u=e.ariaLabelledBy,d=e.ariaDescribedBy,p=e.isFocusable,f=Lz();return(0,es.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,role:s,"aria-label":l,"aria-labelledby":u,"aria-describedby":d,focusable:p,tabIndex:p?0:void 0,children:[(0,es.jsx)(L4,{defs:a}),(0,es.jsx)("rect",{width:t,height:r,fill:f.background}),(0,es.jsx)("g",{transform:"translate("+i.left+","+i.top+")",children:o})]})};L6.propTypes={width:lB().number.isRequired,height:lB().number.isRequired,margin:lB().shape({top:lB().number.isRequired,left:lB().number.isRequired}).isRequired,defs:lB().array,children:lB().oneOfType([lB().arrayOf(lB().node),lB().node]).isRequired,role:lB().string,isFocusable:lB().bool,ariaLabel:lB().string,ariaLabelledBy:lB().string,ariaDescribedBy:lB().string};var L5=function(e){var t=e.size,r=e.color,i=e.borderWidth,a=e.borderColor;return(0,es.jsx)("circle",{r:t/2,fill:r,stroke:a,strokeWidth:i,style:{pointerEvents:"none"}})};L5.propTypes={size:lB().number.isRequired,color:lB().string.isRequired,borderWidth:lB().number.isRequired,borderColor:lB().string.isRequired};var L8=(0,el.memo)(L5),L9=function(e){var t=e.x,r=e.y,i=e.symbol,a=void 0===i?L8:i,o=e.size,s=e.datum,l=e.color,u=e.borderWidth,d=e.borderColor,p=e.label,f=e.labelTextAnchor,m=e.labelYOffset,g=Lz(),v=Lx(),b=v.animate,y=j3({transform:"translate("+t+", "+r+")",config:v.config,immediate:!b});return(0,es.jsxs)(Tv.g,{transform:y.transform,style:{pointerEvents:"none"},children:[(0,el.createElement)(a,{size:o,color:l,datum:s,borderWidth:u,borderColor:d}),p&&(0,es.jsx)("text",{textAnchor:void 0===f?"middle":f,y:void 0===m?-12:m,style:g.dots.text,children:p})]})};L9.propTypes={x:lB().number.isRequired,y:lB().number.isRequired,datum:lB().object.isRequired,size:lB().number.isRequired,color:lB().string.isRequired,borderWidth:lB().number.isRequired,borderColor:lB().string.isRequired,symbol:lB().oneOfType([lB().func,lB().object]),label:lB().oneOfType([lB().string,lB().number]),labelTextAnchor:lB().oneOf(["start","middle","end"]),labelYOffset:lB().number};var L7=(0,el.memo)(L9),Ae=function(e){var t=e.width,r=e.height,i=e.axis,a=e.scale,o=e.value,s=e.lineStyle,l=e.textStyle,u=e.legend,d=e.legendPosition,p=e.legendOffsetX,f=e.legendOffsetY,m=e.legendOrientation,g=Lz(),v=0,b=0,y=0,_=0;"y"===i?(y=a(o),b=t):(v=a(o),_=r);var w=null;if(u){var k=function(e){var t=e.axis,r=e.width,i=e.height,a=e.position,o=e.offsetX,s=e.offsetY,l=e.orientation,u=0,d=0,p="start";if("x"===t)switch(a){case"top-left":u=-o,d=s,p="end";break;case"top":d=-s,p="horizontal"===l?"middle":"start";break;case"top-right":u=o,d=s,p="horizontal"===l?"start":"end";break;case"right":u=o,d=i/2,p="horizontal"===l?"start":"middle";break;case"bottom-right":u=o,d=i-s,p="start";break;case"bottom":d=i+s,p="horizontal"===l?"middle":"end";break;case"bottom-left":d=i-s,u=-o,p="horizontal"===l?"end":"start";break;case"left":u=-o,d=i/2,p="horizontal"===l?"end":"middle"}else switch(a){case"top-left":u=o,d=-s,p="start";break;case"top":u=r/2,d=-s,p="horizontal"===l?"middle":"start";break;case"top-right":u=r-o,d=-s,p="horizontal"===l?"end":"start";break;case"right":u=r+o,p="horizontal"===l?"start":"middle";break;case"bottom-right":u=r-o,d=s,p="end";break;case"bottom":u=r/2,d=s,p="horizontal"===l?"middle":"end";break;case"bottom-left":u=o,d=s,p="horizontal"===l?"start":"end";break;case"left":u=-o,p="horizontal"===l?"end":"middle"}return{x:u,y:d,rotation:"vertical"===l?-90:0,textAnchor:p}}({axis:i,width:t,height:r,position:d,offsetX:p,offsetY:f,orientation:m});w=(0,es.jsx)("text",{transform:"translate("+k.x+", "+k.y+") rotate("+k.rotation+")",textAnchor:k.textAnchor,dominantBaseline:"central",style:l,children:u})}return(0,es.jsxs)("g",{transform:"translate("+v+", "+y+")",children:[(0,es.jsx)("line",{x1:0,x2:b,y1:0,y2:_,stroke:g.markers.lineColor,strokeWidth:g.markers.lineStrokeWidth,style:s}),w]})};Ae.propTypes={width:lB().number.isRequired,height:lB().number.isRequired,axis:lB().oneOf(["x","y"]).isRequired,scale:lB().func.isRequired,value:lB().oneOfType([lB().number,lB().string,lB().instanceOf(Date)]).isRequired,lineStyle:lB().object,textStyle:lB().object,legend:lB().string,legendPosition:lB().oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:lB().number.isRequired,legendOffsetY:lB().number.isRequired,legendOrientation:lB().oneOf(["horizontal","vertical"]).isRequired},Ae.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var At=(0,el.memo)(Ae),An=function(e){var t=e.markers,r=e.width,i=e.height,a=e.xScale,o=e.yScale;return t&&0!==t.length?t.map(function(e,t){return(0,es.jsx)(At,La({},e,{width:r,height:i,scale:"y"===e.axis?o:a}),t)}):null};An.propTypes={width:lB().number.isRequired,height:lB().number.isRequired,xScale:lB().func.isRequired,yScale:lB().func.isRequired,markers:lB().arrayOf(lB().shape({axis:lB().oneOf(["x","y"]).isRequired,value:lB().oneOfType([lB().number,lB().string,lB().instanceOf(Date)]).isRequired,lineStyle:lB().object,textStyle:lB().object}))};var Ar=(0,el.memo)(An),Ai=["theme","renderWrapper","animate","motionStiffness","motionDamping","motionConfig"],Aa=function(e){return function(t){function r(){return t.apply(this,arguments)||this}return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,Lo(r,t),r.prototype.render=function(){var t=this.props,r=t.theme,i=t.renderWrapper,a=t.animate,o=t.motionStiffness,s=t.motionDamping,l=t.motionConfig,u=Ls(t,Ai);return(0,es.jsx)(LV,{theme:r,renderWrapper:i,isInteractive:u.isInteractive,animate:a,motionStiffness:o,motionDamping:s,motionConfig:l,children:(0,es.jsx)(e,La({},u))})},r}(el.Component)},Ao=function(e,t){var r,i=P$()(e)?e:function(t){return TB()(t,e)};return t&&(r=P$()(t)?t:G(t)),r?function(e){return r(i(e))}:i},As=function(e,t){var r=t.clientX,i=t.clientY,a=e.getBoundingClientRect(),o=e.getBBox(),s=o.width===a.width?1:o.width/a.width;return[(r-a.left)*s,(i-a.top)*s]},Al=Object.keys(LY),Ac=Object.keys(L0),Au=function(e,t,r){if("*"===e)return!0;if(P$()(e))return e(t);if(Ln()(e)){var i=r?TB()(t,r):t;return Le()(Li()(i,Object.keys(e)),e)}return!1},Ad=function(e,t,r,i){var a=void 0===i?{}:i,o=a.dataKey,s=a.colorKey,l=void 0===s?"color":s,u=a.targetKey,d=void 0===u?"fill":u,p=[],f={};return e.length&&t.length&&(p=[].concat(e),t.forEach(function(t){for(var i=0;ie.length)&&(t=e.length);for(var r=0,i=Array(t);r1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return PU.h=360*e-100,PU.s=1.5-1.5*t,PU.l=.8-.9*t,PU+""},sinebow:function(e){var t;return e=(.5-e)*Math.PI,PH.r=255*(t=Math.sin(e))*t,PH.g=255*(t=Math.sin(e+Pq))*t,PH.b=255*(t=Math.sin(e+PV))*t,PH+""}}),Ax=(Object.keys(Ak),function(e,t){if("function"==typeof e)return e;if(Ln()(e)){if(void 0!==e.theme){if(void 0===t)throw Error("Unable to use color from theme as no theme was provided");var r=TB()(t,e.theme);if(void 0===r)throw Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return r}}if(void 0!==e.from){var i=function(t){return TB()(t,e.from)};if(Array.isArray(e.modifiers)){for(var a,o=[],s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Af(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Af(e,void 0):void 0}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}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);!(a=s()).done;)!function(){var e=a.value,t=e[0],r=e[1];if("brighter"===t)o.push(function(e){return e.brighter(r)});else if("darker"===t)o.push(function(e){return e.darker(r)});else{if("opacity"!==t)throw Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(e){return e.opacity=r,e})}}();return 0===o.length?i:function(e){return o.reduce(function(e,t){return t(e)},Ou(i(e))).toString()}}return i}throw Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}),AE=function(e,t){return(0,el.useMemo)(function(){return Ax(e,t)},[e,t])},AF=lB().oneOfType([lB().func,lB().arrayOf(lB().string),lB().shape({scheme:lB().oneOf(Aw).isRequired,size:lB().number}),lB().shape({datum:lB().string.isRequired}),lB().string]),AC=(lB().oneOfType([lB().string,lB().func,lB().shape({theme:lB().string.isRequired}),lB().shape({from:lB().string.isRequired,modifiers:lB().arrayOf(lB().array)})]),{scheme:"turbo"}),AS={scheme:"red_yellow_blue",divergeAt:.5},AD={scheme:"turbo",steps:7},Aj=function(e,t){if("function"==typeof e)return e;var r="function"==typeof t?t:function(e){return TB()(e,t)};if(Array.isArray(e)){var i=TX(e),a=function(e){return i(r(e))};return a.scale=i,a}if(Ln()(e)){if(void 0!==e.datum)return function(t){return TB()(t,e.datum)};if(void 0!==e.scheme){if(o=e.scheme,Am.includes(o)){var o,s,l,u=TX(A_[e.scheme]),d=function(e){return u(r(e))};return d.scale=u,d}if(s=e.scheme,Av.includes(s)){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 p=TX(A_[e.scheme][e.size||11]),f=function(e){return p(r(e))};return f.scale=p,f}if(l=e.scheme,Ay.includes(l)){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 m=TX(A_[e.scheme][e.size||9]),g=function(e){return m(r(e))};return g.scale=m,g}}throw Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},AT=r(7379),AO=r.n(AT),AP=r(82511),AR=r.n(AP),AM=r(77529),AL=r.n(AM),AA=r(16851),AI=r.n(AA),AN=Math.sqrt(50),AB=Math.sqrt(10),AU=Math.sqrt(2);function Az(e,t,r){var i,a,o,s,l=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((i=t0){let r=Math.round(e/s),i=Math.round(t/s);for(r*st&&--i,o=Array(a=i-r+1);++lt&&--i,o=Array(a=i-r+1);++l=0?(o>=AN?10:o>=AB?5:o>=AU?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(o>=AN?10:o>=AB?5:o>=AU?2:1)}function Aq(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=AN?a*=10:o>=AB?a*=5:o>=AU&&(a*=2),tt?1:e>=t?0:NaN}function AW(e){let t=e,r=e;function i(e,t,i,a){for(null==i&&(i=0),null==a&&(a=e.length);i>>1;0>r(e[o],t)?i=o+1:a=o}return i}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>AV(e(t),r)),{left:i,center:function(e,r,a,o){null==a&&(a=0),null==o&&(o=e.length);let s=i(e,r,a,o-1);return s>a&&t(e[s-1],r)>-t(e[s],r)?s-1:s},right:function(e,t,i,a){for(null==i&&(i=0),null==a&&(a=e.length);i>>1;r(e[o],t)>0?a=o:i=o+1}return i}}}let A$=AW(AV),AG=A$.right;A$.left,AW(function(e){return null===e?NaN:+e}).center;function AY(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function AK(e){return+e}var AZ=[0,1];function AJ(e){return e}function AX(e,t){var r;return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r})}function AQ(e,t,r){var i=e[0],a=e[1],o=t[0],s=t[1];return at&&(r=e,e=t,t=r),d=function(r){return Math.max(e,Math.min(t,r))}),i=u>2?A0:AQ,a=o=null,f}function f(t){return null==t||isNaN(t=+t)?r:(a||(a=i(s.map(e),l,u)))(e(d(t)))}return f.invert=function(r){return d(t((o||(o=i(l,s.map(e),TH)))(r)))},f.domain=function(e){return arguments.length?(s=Array.from(e,AK),p()):s.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),p()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=AY,p()},f.clamp=function(e){return arguments.length?(d=!!e||AJ,p()):d!==AJ},f.interpolate=function(e){return arguments.length?(u=e,p()):u},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,i){return e=r,t=i,p()}}function A3(e){var t=e.domain;return e.ticks=function(e){var r=t();return Az(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var i=t();return function(e,t,r,i){var a,o,s=Aq(e,t,r);switch((i=Rx(null==i?",f":i)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=i.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rw(l)/3)))-Rw(Math.abs(s))))||(i.precision=o),Y(i,l);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Math.max(0,Rw(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(a=Math.abs(a=s)))-Rw(a))+1)||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Math.max(0,-Rw(Math.abs(s))))||(i.precision=o-("%"===i.type)*2)}return G(i)}(i[0],i[i.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var i,a,o=t(),s=0,l=o.length-1,u=o[s],d=o[l],p=10;for(d0;){if((a=AH(u,d,r))===i)return o[s]=u,o[l]=d,t(o);if(a>0)u=Math.floor(u/a)*a,d=Math.ceil(d/a)*a;else if(a<0)u=Math.ceil(u*a)/a,d=Math.floor(d*a)/a;else break;i=a}return e},e}function A4(){var e,t,r=TX().unknown(void 0),i=r.domain,a=r.range,o=0,s=1,l=!1,u=0,d=0,p=.5;function f(){var r=i().length,f=s0))return l;do l.push(s=new Date(+r)),t(r,o),e(r);while(s=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,i){if(e>=e){if(i<0)for(;++i<=0;)for(;t(e,-1),!r(e););else for(;--i>=0;)for(;t(e,1),!r(e););}})},r&&(a.count=function(t,i){return A6.setTime(+t),A5.setTime(+i),e(A6),e(A5),Math.floor(r(A6,A5))},a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?a.filter(i?function(t){return i(t)%e==0}:function(t){return a.count(0,t)%e==0}):a:null}),a}var A9=A8(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});A9.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?A8(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):A9:null},A9.range;var A7=A8(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()});A7.range;var Ie=A8(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()});Ie.range;var It=A8(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()});It.range;var In=A8(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 Ir(e){return A8(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})}In.range;var Ii=Ir(0),Ia=Ir(1),Io=Ir(2),Is=Ir(3),Il=Ir(4),Ic=Ir(5),Iu=Ir(6);Ii.range,Ia.range,Io.range,Is.range,Il.range,Ic.range,Iu.range;var Id=A8(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()});Id.range;var Ip=A8(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()});Ip.every=function(e){return isFinite(e=Math.floor(e))&&e>0?A8(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},Ip.range;var If=A8(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()});If.range;var Ih=A8(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()});Ih.range;var Im=A8(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 Ig(e){return A8(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})}Im.range;var Iv=Ig(0),Ib=Ig(1),Iy=Ig(2),I_=Ig(3),Iw=Ig(4),Ik=Ig(5),Ix=Ig(6);Iv.range,Ib.range,Iy.range,I_.range,Iw.range,Ik.range,Ix.range;var IE=A8(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()});IE.range;var IF=A8(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 IC(e,t,r,i,a,o){let s=[[A7,1,1e3],[A7,5,5e3],[A7,15,15e3],[A7,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,r,i){let a=Math.abs(r-t)/i,o=AW(([,,e])=>e).right(s,a);if(o===s.length)return e.every(Aq(t/31536e6,r/31536e6,i));if(0===o)return A9.every(Math.max(Aq(t,r,i),1));let[l,u]=s[a/s[o-1][2]0?A8(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},IF.range;let[IS,ID]=IC(IF,IE,Iv,Im,Ih,If),[Ij,IT]=IC(Ip,Id,Ii,In,It,Ie);function IO(e,t){e=e.slice();var r,i=0,a=e.length-1,o=e[i],s=e[a];return s0?e>1?RP(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Iq:null},Iq.range;var IV=RP(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()});IV.range;var IW=RP(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()});IW.range;var I$=RP(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()});I$.range;var IG=RP(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()});IG.range;var IY=RP(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()});IY.range;var IK=RP(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()});IK.range;var IZ=RP(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 IJ(){return(IJ=Object.assign||function(e){for(var t=1;t0){for(;m<=g;++m)for(p=1,d=r(m);pu)break;b.push(f)}}else for(;m<=g;++m)for(p=o-1,d=r(m);p>=1;--p)if(!((f=d*p)u)break;b.push(f)}2*b.length0?(y=f.align[b?"left":"right"],_=f.baseline.center):("after"===a&&u>0||"before"===a&&u<0)&&(y=f.align[b?"right":"left"],_=f.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=m(e))?t:0}},g.lineX=s*("after"===a?1:-1),v.textX=(s+l)*("after"===a?1:-1),y="after"===a?f.align.left:f.align.right),{ticks:p.map(function(e){return Nf({key:e instanceof Date?""+e.valueOf():""+e,value:e},t(e),g,v)}),textAlign:y,textBaseline:_}},Nm=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var r=Z(e);return function(e){return r(e instanceof Date?e:new Date(e))}}return G(e)},Ng=function(e){var t=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(Array.isArray(o)?o:void 0)||Np(i,o),l="bandwidth"in i?Nc(i):i;return"x"===a?s.map(function(e){var t,i;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=l(e))?t:0,x2:null!=(i=l(e))?i:0,y1:0,y2:r}}):s.map(function(e){var r,i;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:t,y1:null!=(r=l(e))?r:0,y2:null!=(i=l(e))?i:0}})},Nv=(0,el.memo)(function(e){var t,r=e.value,i=e.format,a=e.lineX,o=e.lineY,s=e.onClick,l=e.textBaseline,u=e.textAnchor,d=e.animatedProps,p=Lz(),f=null!=(t=null==i?void 0:i(r))?t:r,m=(0,el.useMemo)(function(){var e={opacity:d.opacity};return s?{style:Nf({},e,{cursor:"pointer"}),onClick:function(e){return s(e,f)}}:{style:e}},[d.opacity,s,f]);return(0,es.jsxs)(Tv.g,Nf({transform:d.transform},m,{children:[(0,es.jsx)("line",{x1:0,x2:a,y1:0,y2:o,style:p.axis.ticks.line}),(0,es.jsx)(Tv.text,{dominantBaseline:l,textAnchor:u,transform:d.textTransform,style:p.axis.ticks.text,children:f})]}))}),Nb=(0,el.memo)(function(e){var t=e.axis,r=e.scale,i=e.x,a=e.y,o=e.length,s=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=e.tickPadding,p=e.tickRotation,f=void 0===p?0:p,m=e.format,g=e.renderTick,v=void 0===g?Nv:g,b=e.legend,y=e.legendPosition,_=void 0===y?"end":y,w=e.legendOffset,k=void 0===w?0:w,x=e.onClick,E=e.ariaHidden,F=Lz(),C=(0,el.useMemo)(function(){return Nm(m,r)},[m,r]),S=Nh({axis:t,scale:r,ticksPosition:s,tickValues:l,tickSize:void 0===u?5:u,tickPadding:void 0===d?5:d,tickRotation:f}),D=S.ticks,j=S.textAlign,T=S.textBaseline,O=null;if(void 0!==b){var P,R=0,M=0,L=0;"y"===t?(L=-90,R=k,"start"===_?(P="start",M=o):"middle"===_?(P="middle",M=o/2):"end"===_&&(P="end")):(M=k,"start"===_?P="start":"middle"===_?(P="middle",R=o/2):"end"===_&&(P="end",R=o)),O=(0,es.jsx)("text",{transform:"translate("+R+", "+M+") rotate("+L+")",textAnchor:P,style:Nf({dominantBaseline:"central"},F.axis.legend.text),children:b})}var A=Lx(),I=A.animate,N=A.config,B=j3({transform:"translate("+(void 0===i?0:i)+","+(void 0===a?0:a)+")",lineX2:"x"===t?o:0,lineY2:"x"===t?0:o,config:N,immediate:!I}),U=j4(D,{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("+f+")"}},from:function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+f+")"}},enter:function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+f+")"}},update:function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+f+")"}},leave:{opacity:0},config:N,immediate:!I});return(0,es.jsxs)(Tv.g,{transform:B.transform,"aria-hidden":E,children:[U(function(e,t,r,i){return el.createElement(v,Nf({tickIndex:i,format:C,rotate:f,textBaseline:T,textAnchor:j,animatedProps:e},t,x?{onClick:x}:{}))}),(0,es.jsx)(Tv.line,{style:F.axis.domain.line,x1:0,x2:B.lineX2,y1:0,y2:B.lineY2}),O]})}),Ny={ticksPosition:lB().oneOf(["before","after"]),tickValues:lB().oneOfType([lB().number,lB().arrayOf(lB().oneOfType([lB().number,lB().string,lB().instanceOf(Date)])),lB().string]),tickSize:lB().number,tickPadding:lB().number,tickRotation:lB().number,format:lB().oneOfType([lB().func,lB().string]),renderTick:lB().func,legend:lB().node,legendPosition:lB().oneOf(["start","middle","end"]),legendOffset:lB().number,ariaHidden:lB().bool},N_=lB().shape(Ny),Nw=["top","right","bottom","left"],Nk=(0,el.memo)(function(e){var t=e.xScale,r=e.yScale,i=e.width,a=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,es.jsx)(es.Fragment,{children:Nw.map(function(e){var s=o[e];if(!s)return null;var l="top"===e||"bottom"===e;return(0,es.jsx)(Nb,Nf({},s,{axis:l?"x":"y",x:"right"===e?i:0,y:"bottom"===e?a:0,scale:l?t:r,length:l?i:a,ticksPosition:"top"===e||"left"===e?"before":"after"}),e)})})}),Nx=(0,el.memo)(function(e){var t=e.animatedProps,r=Lz();return(0,es.jsx)(Tv.line,Nf({},t,r.grid.line))}),NE=(0,el.memo)(function(e){var t=e.lines,r=Lx(),i=r.animate,a=j4(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:r.config,immediate:!i});return(0,es.jsx)("g",{children:a(function(e,t){return(0,el.createElement)(Nx,Nf({},t,{key:t.key,animatedProps:e}))})})}),NF=(0,el.memo)(function(e){var t=e.width,r=e.height,i=e.xScale,a=e.yScale,o=e.xValues,s=e.yValues,l=(0,el.useMemo)(function(){return!!i&&Ng({width:t,height:r,scale:i,axis:"x",values:o})},[i,o,t,r]),u=(0,el.useMemo)(function(){return!!a&&Ng({width:t,height:r,scale:a,axis:"y",values:s})},[r,t,a,s]);return(0,es.jsxs)(es.Fragment,{children:[l&&(0,es.jsx)(NE,{lines:l}),u&&(0,es.jsx)(NE,{lines:u})]})}),NC=function(e,t){var r,i=t.axis,a=t.scale,o=t.x,s=t.y,l=t.length,u=t.ticksPosition,d=t.tickValues,p=t.tickSize,f=t.tickPadding,m=t.tickRotation,g=void 0===m?0:m,v=t.format,b=t.legend,y=t.legendPosition,_=void 0===y?"end":y,w=t.legendOffset,k=void 0===w?0:w,x=t.theme,E=Nh({axis:i,scale:a,ticksPosition:u,tickValues:d,tickSize:void 0===p?5:p,tickPadding:void 0===f?5:f,tickRotation:g,engine:"canvas"}),F=E.ticks,C=E.textAlign,S=E.textBaseline;e.save(),e.translate(void 0===o?0:o,void 0===s?0:s),e.textAlign=C,e.textBaseline=S,e.font=(x.axis.ticks.text.fontWeight?x.axis.ticks.text.fontWeight+" ":"")+x.axis.ticks.text.fontSize+"px "+x.axis.ticks.text.fontFamily,(null!=(r=x.axis.domain.line.strokeWidth)?r:0)>0&&(e.lineWidth=Number(x.axis.domain.line.strokeWidth),e.lineCap="square",x.axis.domain.line.stroke&&(e.strokeStyle=x.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===i?l:0,"x"===i?0:l),e.stroke());var D="function"==typeof v?v:function(e){return""+e};if(F.forEach(function(t){(null!=(r=x.axis.ticks.line.strokeWidth)?r:0)>0&&(e.lineWidth=Number(x.axis.ticks.line.strokeWidth),e.lineCap="square",x.axis.ticks.line.stroke&&(e.strokeStyle=x.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 r,i=D(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(LZ(g)),x.axis.ticks.text.fill&&(e.fillStyle=x.axis.ticks.text.fill),e.fillText(String(i),0,0),e.restore()}),void 0!==b){var j=0,T=0,O=0,P="center";"y"===i?(O=-90,j=k,"start"===_?(P="start",T=l):"middle"===_?(P="center",T=l/2):"end"===_&&(P="end")):(T=k,"start"===_?P="start":"middle"===_?(P="center",j=l/2):"end"===_&&(P="end",j=l)),e.translate(j,T),e.rotate(LZ(O)),e.font=(x.axis.legend.text.fontWeight?x.axis.legend.text.fontWeight+" ":"")+x.axis.legend.text.fontSize+"px "+x.axis.legend.text.fontFamily,x.axis.legend.text.fill&&(e.fillStyle=x.axis.legend.text.fill),e.textAlign=P,e.textBaseline="middle",e.fillText(b,0,0)}e.restore()},NS=function(e,t){var r=t.xScale,i=t.yScale,a=t.width,o=t.height,s=t.top,l=t.right,u=t.bottom,d=t.left,p=t.theme,f={top:s,right:l,bottom:u,left:d};Nw.forEach(function(t){var s=f[t];if(!s)return null;var l="top"===t||"bottom"===t,u=l?r:i,d=Nm(s.format,u);NC(e,Nf({},s,{axis:l?"x":"y",x:"right"===t?a:0,y:"bottom"===t?o:0,scale:u,format:d,length:l?a:o,ticksPosition:"top"===t||"left"===t?"before":"after",theme:p}))})},ND=function(e,t){Ng({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 Nj(){return(Nj=Object.assign||function(e){for(var t=1;t1e-6){if(Math.abs(p*l-u*d)>1e-6&&a){var m=r-o,g=i-s,v=l*l+u*u,b=Math.sqrt(v),y=Math.sqrt(f),_=a*Math.tan((NH-Math.acos((v+f-(m*m+g*g))/(2*b*y)))/2),w=_/y,k=_/b;Math.abs(w-1)>1e-6&&(this._+="L"+(e+w*d)+","+(t+w*p)),this._+="A"+a+","+a+",0,0,"+ +(p*m>d*g)+","+(this._x1=e+k*l)+","+(this._y1=t+k*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,r,i,a,o){e=+e,t=+t,r=+r,o=!!o;var s=r*Math.cos(i),l=r*Math.sin(i),u=e+s,d=t+l,p=1^o,f=o?i-a:a-i;if(r<0)throw Error("negative radius: "+r);null===this._x1?this._+="M"+u+","+d:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+u+","+d),r&&(f<0&&(f=f%Nq+Nq),f>NV?this._+="A"+r+","+r+",0,1,"+p+","+(e-s)+","+(t-l)+"A"+r+","+r+",0,1,"+p+","+(this._x1=u)+","+(this._y1=d):f>1e-6&&(this._+="A"+r+","+r+",0,"+ +(f>=NH)+","+p+","+(this._x1=e+r*Math.cos(a))+","+(this._y1=t+r*Math.sin(a))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};let NJ=new Uint32Array(512);class NX{static from(e,t=N4,r=N6){let i=e.length,a=new Float64Array(2*i);for(let o=0;o>1;if(t>0&&"number"!=typeof e[0])throw Error("Expected coords to contain numbers.");this.coords=e;let r=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*r),this._halfedges=new Int32Array(3*r),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,r;let{coords:i,_hullPrev:a,_hullNext:o,_hullTri:s,_hullHash:l}=this,u=i.length>>1,d=1/0,p=1/0,f=-1/0,m=-1/0;for(let e=0;ef&&(f=t),r>m&&(m=r),this._ids[e]=e}let g=(d+f)/2,v=(p+m)/2,b=1/0;for(let t=0;t0&&(t=r,b=a)}let w=i[2*t],k=i[2*t+1],x=1/0;for(let a=0;ai&&(e[t++]=a,i=this._dists[a])}this.hull=e.subarray(0,t),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(N1(y,_,w,k,E,F)){let e=t,i=w,a=k;t=r,w=E,k=F,r=e,E=i,F=a}let C=function(e,t,r,i,a,o){let s=r-e,l=i-t,u=a-e,d=o-t,p=s*s+l*l,f=u*u+d*d,m=.5/(s*d-l*u);return{x:e+(d*p-l*f)*m,y:t+(s*f-u*p)*m}}(y,_,w,k,E,F);this._cx=C.x,this._cy=C.y;for(let e=0;e0&&2220446049250313e-31>=Math.abs(m-d)&&2220446049250313e-31>=Math.abs(g-p)||(d=m,p=g,f===e||f===t||f===r))continue;let v=0;for(let e=0,t=this._hashKey(m,g);e0?3-r:1+r)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:t,_halfedges:r,coords:i}=this,a=0,o=0;for(;;){let s=r[e],l=e-e%3;if(o=l+(e+2)%3,-1===s){if(0===a)break;e=NJ[--a];continue}let u=s-s%3,d=l+(e+1)%3,p=u+(s+2)%3,f=t[o],m=t[e],g=t[d],v=t[p];if(function(e,t,r,i,a,o,s,l){let u=e-s,d=t-l,p=r-s,f=i-l,m=a-s,g=o-l,v=p*p+f*f,b=m*m+g*g;return u*(f*b-v*g)-d*(p*b-v*m)+(u*u+d*d)*(p*g-f*m)<0}(i[2*f],i[2*f+1],i[2*m],i[2*m+1],i[2*g],i[2*g+1],i[2*v],i[2*v+1])){t[e]=v,t[s]=f;let i=r[p];if(-1===i){let t=this._hullStart;do{if(this._hullTri[t]===p){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,i),this._link(s,r[o]),this._link(o,p);let l=u+(s+1)%3;a=33306690738754716e-32*Math.abs(s+l)?s-l:0}function N1(e,t,r,i,a,o){return 0>(N0(a,o,e,t,r,i)||N0(e,t,r,i,a,o)||N0(r,i,a,o,e,t))}function N2(e,t,r,i){if(i-r<=20)for(let a=r+1;a<=i;a++){let i=e[a],o=t[i],s=a-1;for(;s>=r&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=i}else{let a=r+i>>1,o=r+1,s=i;N3(e,a,o),t[e[r]]>t[e[i]]&&N3(e,r,i),t[e[o]]>t[e[i]]&&N3(e,o,i),t[e[r]]>t[e[o]]&&N3(e,r,o);let l=e[o],u=t[l];for(;;){do o++;while(t[e[o]]u);if(s=s-r?(N2(e,t,o,i),N2(e,t,r,s-1)):(N2(e,t,r,s-1),N2(e,t,o,i))}}function N3(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function N4(e){return e[0]}function N6(e){return e[1]}class N5{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,r){e=+e,t=+t;let i=e+(r=+r),a=t;if(r<0)throw Error("negative radius");null===this._x1?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-a)>1e-6)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${e-r},${t}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(e,t,r,i){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class N8{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 N9{constructor(e,[t,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(t=+t))||!((a=+a)>=(r=+r)))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=i,this.xmin=t,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let{delaunay:{points:e,hull:t,triangles:r},vectors:i}=this,a=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let t=0,i=0,o=r.length,s,l;tMath.abs(F))s=(p+v)/2,l=(f+b)/2;else{let e=1/F;s=p+(k*x-_*E)*e,l=f+(y*E-w*x)*e}}else s=(p+v)/2-1e8*k,l=(f+b)/2+1e8*w;a[i]=s,a[i+1]=l}let o=t[t.length-1],s,l=4*o,u,d=e[2*o],p,f=e[2*o+1];i.fill(0);for(let r=0;r1;)a-=2;for(let e=2;e4)for(let e=0;e0){if(t>=this.ymax)return null;(o=(this.ymax-t)/i)0){if(e>=this.xmax)return null;(o=(this.xmax-e)/r)this.xmax?2:0)|(tthis.ymax?8:0)}}let N7=2*Math.PI,Be=Math.pow;function Bt(e){return e[0]}function Bn(e){return e[1]}class Br{static from(e,t=Bt,r=Bn,i){return new Br("length"in e?function(e,t,r,i){let a=e.length,o=new Float64Array(2*a);for(let s=0;s2&&function(e){let{triangles:t,coords:r}=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,r)=>t[2*e]-t[2*r]||t[2*e+1]-t[2*r+1]);let e=this.collinear[0],a=this.collinear[this.collinear.length-1],o=[t[2*e],t[2*e+1],t[2*a],t[2*a+1]],s=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let e=0,a=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],l[o[0]]=1,2===o.length&&(l[o[1]]=0))}voronoi(e){return new N9(this,e)}*neighbors(e){let{inedges:t,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){let t=s.indexOf(e);t>0&&(yield s[t-1]),t=0&&i!==r&&i!==a;)r=i;return i}_step(e,t,r){let{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:l,points:u}=this;if(-1===i[e]||!u.length)return(e+1)%(u.length>>1);let d=e,p=Be(t-u[2*e],2)+Be(r-u[2*e+1],2),f=i[e],m=f;do{let i=l[m],f=Be(t-u[2*i],2)+Be(r-u[2*i+1],2);if(f=p;--f)l.point(y[f],_[f]);l.lineEnd(),l.areaEnd()}}b&&(y[d]=+e(m,d,u),_[d]=+r(m,d,u),l.point(t?+t(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(g)return l=null,g+""||null}function d(){return NZ().defined(a).curve(s).context(o)}return u.x=function(r){return arguments.length?(e="function"==typeof r?r:NG(+r),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:NG(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:NG(+e),u):t},u.y=function(e){return arguments.length?(r="function"==typeof e?e:NG(+e),i=null,u):r},u.y0=function(e){return arguments.length?(r="function"==typeof e?e:NG(+e),u):r},u.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:NG(+e),u):i},u.lineX0=u.lineY0=function(){return d().x(e).y(r)},u.lineY1=function(){return d().x(e).y(i)},u.lineX1=function(){return d().x(t).y(r)},u.defined=function(e){return arguments.length?(a="function"==typeof e?e:NG(!!e),u):a},u.curve=function(e){return arguments.length?(s=e,null!=o&&(l=s(o)),u):s},u.context=function(e){return arguments.length?(null==e?o=l=null:l=s(o=e),u):o},u})().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y1(function(e){return e.y}).curve(LT(t)).y0(r(i))},[t,r,i])},BS=function(e){var t=e.enableSlices,r=e.points,i=e.width,a=e.height;return(0,el.useMemo)(function(){if(!1===t)return[];if("x"===t){var e=new Map;return r.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,r){var o,s=e[0],l=e[1],u=r[t-1],d=r[t+1];return{id:s,x0:o=u?s-(s-u[0])/2:s,x:s,y0:0,y:0,width:d?s-o+(d[0]-s)/2:i-o,height:a,points:l.reverse()}})}if("y"===t){var o=new Map;return r.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,r){var o,s,l=e[0],u=e[1],d=r[t-1],p=r[t+1];return o=d?l-(l-d[0])/2:l,s=p?l-o+(p[0]-l)/2:a-o,{id:l,x0:0,x:0,y0:o,y:l,width:i,height:s,points:u.reverse()}})}},[t,r])},BD=function(e){var t,r,i,a,o,s,l=e.data,u=e.xScale,d=void 0===u?Bx.xScale:u,p=e.xFormat,f=e.yScale,m=void 0===f?Bx.yScale:f,g=e.yFormat,v=e.width,b=e.height,y=e.colors,_=void 0===y?Bx.colors:y,w=e.curve,k=void 0===w?Bx.curve:w,x=e.areaBaselineValue,E=void 0===x?Bx.areaBaselineValue:x,F=e.pointColor,C=void 0===F?Bx.pointColor:F,S=e.pointBorderColor,D=void 0===S?Bx.pointBorderColor:S,j=e.enableSlices,T=void 0===j?Bx.enableSlicesTooltip:j,O=LI(p),P=LI(g),R=(0,el.useMemo)(function(){return Aj(_,"id")},[_,"id"]),M=Lz(),L=AE(C,M),A=AE(D,M),I=(0,el.useState)([]),N=I[0],B=I[1],U=(0,el.useMemo)(function(){return Nr(l.filter(function(e){return -1===N.indexOf(e.id)}),d,m,v,b)},[l,N,d,m,v,b]),z=U.xScale,H=U.yScale,q=U.series,V=(0,el.useMemo)(function(){var e=l.map(function(e){return{id:e.id,label:e.id,color:R(e)}}),t=e.map(function(e){return Bh({},q.find(function(t){return t.id===e.id}),{color:e.color})}).filter(function(e){return!!e.id});return{legendData:e.map(function(e){return Bh({},e,{hidden:!t.find(function(t){return t.id===e.id})})}).reverse(),series:t}},[l,q,R]),W=V.legendData,$=V.series,G=(0,el.useCallback)(function(e){B(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),Y=(r=(t={series:$,getPointColor:L,getPointBorderColor:A,formatX:O,formatY:P}).series,i=t.getPointColor,a=t.getPointBorderColor,o=t.formatX,s=t.formatY,(0,el.useMemo)(function(){return r.reduce(function(e,t){return[].concat(e,t.data.filter(function(e){return null!==e.position.x&&null!==e.position.y}).map(function(r,l){var u={id:t.id+"."+l,index:e.length+l,serieId:t.id,serieColor:t.color,x:r.position.x,y:r.position.y};return u.color=i(t),u.borderColor=a(u),u.data=Bh({},r.data,{xFormatted:o(r.data.x),yFormatted:s(r.data.y)}),u}))},[])},[r,i,a,o,s])),K=BS({enableSlices:T,points:Y,width:v,height:b});return{legendData:W,toggleSerie:G,lineGenerator:BF({curve:k}),areaGenerator:BC({curve:k,yScale:H,areaBaselineValue:E}),getColor:R,series:$,xScale:z,yScale:H,slices:K,points:Y}},Bj=function(e){var t=e.areaBlendMode,r=e.areaOpacity,i=e.color,a=e.fill,o=e.path,s=Lx(),l=s.animate,u=s.config,d=LE(o),p=j3({color:i,config:u,immediate:!l});return(0,es.jsx)(Tv.path,{d:d,fill:a||p.color,fillOpacity:r,strokeWidth:0,style:{mixBlendMode:t}})};Bj.propTypes={areaBlendMode:LR.isRequired,areaOpacity:lB().number.isRequired,color:lB().string,fill:lB().string,path:lB().string.isRequired};var BT=function(e){var t=e.areaGenerator,r=e.areaOpacity,i=e.areaBlendMode,a=e.lines.slice(0).reverse();return(0,es.jsx)("g",{children:a.map(function(e){return(0,es.jsx)(Bj,Bh({path:t(e.data.map(function(e){return e.position}))},Bh({areaOpacity:r,areaBlendMode:i},e)),e.id)})})};BT.propTypes={areaGenerator:lB().func.isRequired,areaOpacity:lB().number.isRequired,areaBlendMode:LR.isRequired,lines:lB().arrayOf(lB().object).isRequired};var BO=(0,el.memo)(BT),BP=function(e){var t=e.lineGenerator,r=e.points,i=e.color,a=e.thickness,o=LE((0,el.useMemo)(function(){return t(r)},[t,r]));return(0,es.jsx)(Tv.path,{d:o,fill:"none",strokeWidth:a,stroke:i})};BP.propTypes={points:lB().arrayOf(lB().shape({x:lB().oneOfType([lB().string,lB().number]),y:lB().oneOfType([lB().string,lB().number])})),lineGenerator:lB().func.isRequired,color:lB().string.isRequired,thickness:lB().number.isRequired};var BR=(0,el.memo)(BP),BM=function(e){var t=e.lines,r=e.lineGenerator,i=e.lineWidth;return t.slice(0).reverse().map(function(e){var t=e.id,a=e.data,o=e.color;return(0,es.jsx)(BR,{id:t,points:a.map(function(e){return e.position}),lineGenerator:r,color:o,thickness:i},t)})};BM.propTypes={lines:lB().arrayOf(lB().shape({id:lB().oneOfType([lB().string,lB().number]).isRequired,color:lB().string.isRequired,data:lB().arrayOf(lB().shape({data:lB().shape({x:lB().oneOfType([lB().string,lB().number,lB().instanceOf(Date)]),y:lB().oneOfType([lB().string,lB().number,lB().instanceOf(Date)])}).isRequired,position:lB().shape({x:lB().number,y:lB().number}).isRequired})).isRequired})).isRequired,lineWidth:lB().number.isRequired,lineGenerator:lB().func.isRequired};var BL=(0,el.memo)(BM),BA=function(e){var t=e.slice,r=e.axis,i=e.debug,a=e.tooltip,o=e.isCurrent,s=e.setCurrent,l=TP(),u=l.showTooltipFromEvent,d=l.hideTooltip,p=(0,el.useCallback)(function(e){u((0,el.createElement)(a,{slice:t,axis:r}),e,"right"),s(t)},[u,a,t]),f=(0,el.useCallback)(function(e){u((0,el.createElement)(a,{slice:t,axis:r}),e,"right")},[u,a,t]),m=(0,el.useCallback)(function(){d(),s(null)},[d]);return(0,es.jsx)("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&i?.35:0,onMouseEnter:p,onMouseMove:f,onMouseLeave:m})};BA.propTypes={slice:lB().object.isRequired,axis:lB().oneOf(["x","y"]).isRequired,debug:lB().bool.isRequired,height:lB().number.isRequired,tooltip:lB().oneOfType([lB().func,lB().object]),isCurrent:lB().bool.isRequired,setCurrent:lB().func.isRequired};var BI=(0,el.memo)(BA),BN=function(e){var t=e.slices,r=e.axis,i=e.debug,a=e.height,o=e.tooltip,s=e.current,l=e.setCurrent;return t.map(function(e){return(0,es.jsx)(BI,{slice:e,axis:r,debug:i,height:a,tooltip:o,setCurrent:l,isCurrent:null!==s&&s.id===e.id},e.id)})};BN.propTypes={slices:lB().arrayOf(lB().shape({id:lB().oneOfType([lB().number,lB().string,lB().instanceOf(Date)]).isRequired,x:lB().number.isRequired,y:lB().number.isRequired,points:lB().arrayOf(lB().object).isRequired})).isRequired,axis:lB().oneOf(["x","y"]).isRequired,debug:lB().bool.isRequired,height:lB().number.isRequired,tooltip:lB().oneOfType([lB().func,lB().object]).isRequired,current:lB().object,setCurrent:lB().func.isRequired};var BB=(0,el.memo)(BN),BU=function(e){var t=e.points,r=e.symbol,i=e.size,a=e.borderWidth,o=e.enableLabel,s=e.label,l=e.labelYOffset,u=Lz(),d=Ao(s),p=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?d(e.data):null}});return(0,es.jsx)("g",{children:p.map(function(e){return(0,es.jsx)(L7,{x:e.x,y:e.y,datum:e.datum,symbol:r,size:i,color:e.fill,borderWidth:a,borderColor:e.stroke,label:e.label,labelYOffset:l,theme:u},e.id)})})};BU.propTypes={points:lB().arrayOf(lB().object),symbol:lB().func,size:lB().number.isRequired,color:lB().func.isRequired,borderWidth:lB().number.isRequired,borderColor:lB().func.isRequired,enableLabel:lB().bool.isRequired,label:lB().oneOfType([lB().string,lB().func]).isRequired,labelYOffset:lB().number};var Bz=(0,el.memo)(BU),BH=function(e){var t=e.points,r=e.width,i=e.height,a=e.margin,o=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,p=e.tooltip,f=e.debug,m=TP(),g=m.showTooltipAt,v=m.hideTooltip,b=(0,el.useCallback)(function(e,t){g((0,el.createElement)(p,{point:e}),[e.x+a.left,e.y+a.top],"top"),o(e),s&&s(e,t)},[o,g,p,s,a]),y=(0,el.useCallback)(function(e,t){g((0,el.createElement)(p,{point:e}),[e.x+a.left,e.y+a.top],"top"),o(e),l&&l(e,t)},[o,g,p,l]),_=(0,el.useCallback)(function(e,t){v(),o(null),u&&u(e,t)},[v,o,u]),w=(0,el.useCallback)(function(e,t){d&&d(e,t)},[d]);return(0,es.jsx)(Bd,{nodes:t,width:r,height:i,onMouseEnter:b,onMouseMove:y,onMouseLeave:_,onClick:w,debug:f})};BH.propTypes={points:lB().arrayOf(lB().object).isRequired,width:lB().number.isRequired,height:lB().number.isRequired,margin:lB().object.isRequired,setCurrent:lB().func.isRequired,onMouseEnter:lB().func,onMouseMove:lB().func,onMouseLeave:lB().func,onClick:lB().func,tooltip:lB().oneOfType([lB().func,lB().object]).isRequired,debug:lB().bool.isRequired};var Bq=(0,el.memo)(BH),BV=function(e){var t=e.data,r=e.xScale,i=e.xFormat,a=e.yScale,o=e.yFormat,s=e.layers,l=e.curve,u=e.areaBaselineValue,d=e.colors,p=e.margin,f=e.width,m=e.height,g=e.axisTop,v=e.axisRight,b=e.axisBottom,y=e.axisLeft,_=e.enableGridX,w=e.enableGridY,k=e.gridXValues,x=e.gridYValues,E=e.lineWidth,F=e.enableArea,C=e.areaOpacity,S=e.areaBlendMode,D=e.enablePoints,j=e.pointSymbol,T=e.pointSize,O=e.pointColor,P=e.pointBorderWidth,R=e.pointBorderColor,M=e.enablePointLabel,L=e.pointLabel,A=e.pointLabelYOffset,I=e.defs,N=e.fill,B=e.markers,U=e.legends,z=e.isInteractive,H=e.useMesh,q=e.debugMesh,V=e.onMouseEnter,W=e.onMouseMove,$=e.onMouseLeave,G=e.onClick,Y=e.tooltip,K=e.enableSlices,Z=e.debugSlices,J=e.sliceTooltip,X=e.enableCrosshair,Q=e.crosshairType,ee=e.role,et=LL(f,m,p),en=et.margin,er=et.innerWidth,ei=et.innerHeight,ea=et.outerWidth,eo=et.outerHeight,ec=BD({data:t,xScale:r,xFormat:i,yScale:a,yFormat:o,width:er,height:ei,colors:d,curve:l,areaBaselineValue:u,pointColor:O,pointBorderColor:R,enableSlices:K}),eu=ec.legendData,ed=ec.toggleSerie,ep=ec.lineGenerator,ef=ec.areaGenerator,eh=ec.series,em=ec.xScale,eg=ec.yScale,ev=ec.slices,eb=ec.points,ey=Lz(),e_=AE(O,ey),ew=AE(R,ey),ek=(0,el.useState)(null),ex=ek[0],eE=ek[1],eF=(0,el.useState)(null),eC=eF[0],eS=eF[1],eD={grid:(0,es.jsx)(NF,{theme:ey,width:er,height:ei,xScale:_?em:null,yScale:w?eg:null,xValues:k,yValues:x},"grid"),markers:(0,es.jsx)(Ar,{markers:B,width:er,height:ei,xScale:em,yScale:eg,theme:ey},"markers"),axes:(0,es.jsx)(Nk,{xScale:em,yScale:eg,width:er,height:ei,theme:ey,top:g,right:v,bottom:b,left:y},"axes"),areas:null,lines:(0,es.jsx)(BL,{lines:eh,lineGenerator:ep,lineWidth:E},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:U.map(function(e,t){return(0,es.jsx)(NN,Bh({},e,{containerWidth:er,containerHeight:ei,data:e.data||eu,theme:ey,toggleSerie:e.toggleSerie?ed:void 0}),"legend."+t)})},ej=Ad(I,eh,N);return F&&(eD.areas=(0,es.jsx)(BO,{areaGenerator:ef,areaOpacity:C,areaBlendMode:S,lines:eh},"areas")),z&&!1!==K&&(eD.slices=(0,es.jsx)(BB,{slices:ev,axis:K,debug:Z,height:ei,tooltip:J,current:eC,setCurrent:eS},"slices")),D&&(eD.points=(0,es.jsx)(Bz,{points:eb,symbol:j,size:T,color:e_,borderWidth:P,borderColor:ew,enableLabel:M,label:L,labelYOffset:A},"points")),z&&X&&(null!==ex&&(eD.crosshair=(0,es.jsx)(TS,{width:er,height:ei,x:ex.x,y:ex.y,type:Q},"crosshair")),null!==eC&&(eD.crosshair=(0,es.jsx)(TS,{width:er,height:ei,x:eC.x,y:eC.y,type:K},"crosshair"))),z&&H&&!1===K&&(eD.mesh=(0,es.jsx)(Bq,{points:eb,width:er,height:ei,margin:en,current:ex,setCurrent:eE,onMouseEnter:V,onMouseMove:W,onMouseLeave:$,onClick:G,tooltip:Y,debug:q},"mesh")),(0,es.jsx)(L6,{defs:ej,width:ea,height:eo,margin:en,role:ee,children:s.map(function(t,r){return"function"==typeof t?(0,es.jsx)(el.Fragment,{children:t(Bh({},e,{innerWidth:er,innerHeight:ei,series:eh,slices:ev,points:eb,xScale:em,yScale:eg,lineGenerator:ep,areaGenerator:ef,currentPoint:ex,setCurrentPoint:eE,currentSlice:eC,setCurrentSlice:eS}))},r):eD[t]})})};BV.propTypes=B_,BV.defaultProps=Bx,Aa(BV);var BW=function(e){var t=e.width,r=e.height,i=e.margin,a=e.pixelRatio,o=e.data,s=e.xScale,l=e.xFormat,u=e.yScale,d=e.yFormat,p=e.curve,f=e.layers,m=e.colors,g=e.lineWidth,v=e.enableArea,b=e.areaBaselineValue,y=e.areaOpacity,_=e.enablePoints,w=e.pointSize,k=e.pointColor,x=e.pointBorderWidth,E=e.pointBorderColor,F=e.enableGridX,C=e.gridXValues,S=e.enableGridY,D=e.gridYValues,j=e.axisTop,T=e.axisRight,O=e.axisBottom,P=e.axisLeft,R=e.legends,M=e.isInteractive,L=e.debugMesh,A=e.onMouseLeave,I=e.onClick,N=e.tooltip,B=e.canvasRef,U=(0,el.useRef)(null),z=LL(t,r,i),H=z.margin,q=z.innerWidth,V=z.innerHeight,W=z.outerWidth,$=z.outerHeight,G=Lz(),Y=(0,el.useState)(null),K=Y[0],Z=Y[1],J=BD({data:o,xScale:s,xFormat:l,yScale:u,yFormat:d,width:q,height:V,colors:m,curve:p,areaBaselineValue:b,pointColor:k,pointBorderColor:E}),X=J.lineGenerator,Q=J.areaGenerator,ee=J.series,et=J.xScale,en=J.yScale,er=J.points,ei=Bl({points:er,width:q,height:V,debug:L}),ea=ei.delaunay,eo=ei.voronoi;(0,el.useEffect)(function(){B&&(B.current=U.current),U.current.width=W*a,U.current.height=$*a;var e=U.current.getContext("2d");e.scale(a,a),e.fillStyle=G.background,e.fillRect(0,0,W,$),e.translate(H.left,H.top),f.forEach(function(t){if("function"==typeof t&&t({ctx:e,innerWidth:q,innerHeight:V,series:ee,points:er,xScale:et,yScale:en,lineWidth:g,lineGenerator:X,areaGenerator:Q,currentPoint:K,setCurrentPoint:Z}),"grid"===t&&G.grid.line.strokeWidth>0&&(e.lineWidth=G.grid.line.strokeWidth,e.strokeStyle=G.grid.line.stroke,F&&ND(e,{width:q,height:V,scale:et,axis:"x",values:C}),S&&ND(e,{width:q,height:V,scale:en,axis:"y",values:D})),"axes"===t&&NS(e,{xScale:et,yScale:en,width:q,height:V,top:j,right:T,bottom:O,left:P,theme:G}),"areas"===t&&!0===v&&(e.save(),e.globalAlpha=y,Q.context(e),ee.forEach(function(t){e.fillStyle=t.color,e.beginPath(),Q(t.data.map(function(e){return e.position})),e.fill()}),e.restore()),"lines"===t&&(X.context(e),ee.forEach(function(t){e.strokeStyle=t.color,e.lineWidth=g,e.beginPath(),X(t.data.map(function(e){return e.position})),e.stroke()})),"points"===t&&!0===_&&w>0&&er.forEach(function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,w/2,0,2*Math.PI),e.fill(),x>0&&(e.strokeStyle=t.borderColor,e.lineWidth=x,e.stroke())}),"mesh"===t&&!0===L&&(Bp(e,eo),K&&Bf(e,eo,K.index)),"legends"===t){var r=ee.map(function(e){return{id:e.id,label:e.id,color:e.color}}).reverse();R.forEach(function(t){NU(e,Bh({},t,{data:t.data||r,containerWidth:q,containerHeight:V,theme:G}))})}})},[U,W,$,f,G,X,ee,et,en,F,C,S,D,j,T,O,P,R,er,_,w,K]);var ec=(0,el.useCallback)(function(e){var t,r,i=As(U.current,e),a=i[0],o=i[1];return(t=H.left,r=H.top,t<=a&&a<=t+q&&r<=o&&o<=r+V)?er[ea.find(a-H.left,o-H.top)]:null},[U,H,q,V,ea]),eu=TP(),ed=eu.showTooltipFromEvent,ep=eu.hideTooltip,ef=(0,el.useCallback)(function(e){var t=ec(e);Z(t),t?ed((0,el.createElement)(N,{point:t}),e):ep()},[ec,Z,ed,ep,N]),eh=(0,el.useCallback)(function(e){ep(),Z(null),K&&A&&A(K,e)},[ep,Z,A]),em=(0,el.useCallback)(function(e){if(I){var t=ec(e);t&&I(t,e)}},[ec,I]);return(0,es.jsx)("canvas",{ref:U,width:W*a,height:$*a,style:{width:W,height:$,cursor:M?"auto":"normal"},onMouseEnter:M?ef:void 0,onMouseMove:M?ef:void 0,onMouseLeave:M?eh:void 0,onClick:M?em:void 0})};BW.propTypes=Bw,BW.defaultProps=BE;var B$=Aa(BW),BG=(0,el.forwardRef)(function(e,t){return(0,es.jsx)(B$,Bh({},e,{canvasRef:t}))});(0,el.forwardRef)(function(e,t){return(0,es.jsx)(LW,{children:function(r){var i=r.width,a=r.height;return(0,es.jsx)(BG,Bh({width:i,height:a},e,{ref:t}))}})});let BY=({participant:e,trackType:t="audioTrack",...r})=>{let i=F2(),[a,o]=(0,el.useState)(null),{userId:s,sessionId:l}=e;return(0,el.useEffect)(()=>{if(!i||!a)return;let e=i.bindAudioElement(a,l,t);return()=>{e?.()}},[i,l,a,t]),(0,es.jsx)("audio",{autoPlay:!0,...r,ref:o,"data-user-id":s,"data-session-id":l,"data-track-type":t})},BK=e=>{let{participants:t,audioProps:r}=e;return(0,es.jsx)(es.Fragment,{children:t.map(e=>{if(e.isLocalParticipant)return null;let t=e.publishedTracks.includes(xn.TrackType.AUDIO),i=e.publishedTracks.includes(xn.TrackType.SCREEN_SHARE_AUDIO);return t&&e.audioStream?(0,el.createElement)(BY,{...r,trackType:"audioTrack",participant:e,key:e.sessionId}):i&&e.screenShareAudioStream?(0,el.createElement)(BY,{...r,trackType:"screenShareAudioTrack",participant:e,key:e.sessionId}):null})})},BZ=e=>null!==e&&!(0,el.isValidElement)(e),BJ=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(r,i)=>e.slice(t*i,t*i+t)),BX=(e,t)=>{if(e){if("function"==typeof e)return e(t);e.current=t}};(0,el.forwardRef)(({stream:e,...t},r)=>{let[i,a]=(0,el.useState)(null);return(0,el.useEffect)(()=>{if(i&&e&&e!==i.srcObject)return i.srcObject=e,(EZ.isSafari()||EZ.isFirefox())&&setTimeout(()=>{i.srcObject=e,i.play().catch(e=>{console.error("Failed to play stream",e)})},0),()=>{i.pause(),i.srcObject=null}},[e,i]),(0,es.jsx)("video",{autoPlay:!0,playsInline:!0,...t,ref:e=>{BX(r,e),a(e)}})});let BQ=(0,el.forwardRef)(({participant:e,style:t},r)=>{let[i,a]=(0,el.useState)(!1),o=e.name||e.userId;return(0,es.jsxs)("div",{className:"str-video__video-placeholder",style:t,ref:r,children:[(!e.image||i)&&(o?(0,es.jsx)("div",{className:"str-video__video-placeholder__initials-fallback",children:(0,es.jsx)("div",{children:o[0]})}):(0,es.jsx)("div",{children:"Video is disabled"})),e.image&&!i&&(0,es.jsx)("img",{onError:()=>a(!0),alt:"video-placeholder",className:"str-video__video-placeholder__avatar",src:e.image})]})}),B0=({trackType:e,participant:t,className:r,VideoPlaceholder:i=BQ,refs:a,...o})=>{let{sessionId:s,videoStream:l,screenShareStream:u,publishedTracks:d,viewportVisibilityState:p,isLocalParticipant:f,userId:m}=t,g=F2(),[v,b]=(0,el.useState)(null),[y,_]=(0,el.useState)(!0),[w,k]=(0,el.useState)(!0),x="videoTrack"===e?l:"screenShareTrack"===e?u:void 0;if((0,el.useLayoutEffect)(()=>{if(!g||!v||"none"===e)return;let t=g.bindVideoElement(v,s,e);return()=>{t?.()}},[g,e,s,v]),(0,el.useEffect)(()=>{if(!x||!v)return;let[e]=x.getVideoTracks();if(!e)return;let t=()=>{_(v.paused);let{width:t=0,height:r=0}=e.getSettings();k(t>=r)};return _(v.paused),v.addEventListener("play",t),v.addEventListener("pause",t),e.addEventListener("unmute",t),()=>{v.removeEventListener("play",t),v.removeEventListener("pause",t),e.removeEventListener("unmute",t),_(!0)}},[x,v]),!g)return null;let E="videoTrack"===e?d.includes(xn.TrackType.VIDEO):"screenShareTrack"===e&&d.includes(xn.TrackType.SCREEN_SHARE),F="none"===e||p?.[e]===z.INVISIBLE,C=!E||F,S=f&&"videoTrack"===e,D="screenShareTrack"===e;return(0,es.jsxs)(es.Fragment,{children:[!C&&(0,es.jsx)("video",{...o,className:a5(r,"str-video__video",{"str-video__video--not-playing":y,"str-video__video--tall":!w,"str-video__video--mirror":S,"str-video__video--screen-share":D}),"data-user-id":m,"data-session-id":s,ref:e=>{b(e),a?.setVideoElement?.(e)}}),(C||y)&&(0,es.jsx)(i,{style:{position:"absolute"},participant:t,ref:a?.setVideoPlaceholderElement})]})},B1=e=>{let[t,r]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{let t;let i=e=>{let{state:t}=e.target;r("granted"===t)};return(async()=>{try{(t=await navigator.permissions.query({name:e})).addEventListener("change",i),r("granted"===t.state)}catch(e){r(!0)}})(),()=>{t?.removeEventListener("change",i)}},[e]),t},B2=e=>{let[t,r]=(0,el.useState)([]);return(0,el.useEffect)(()=>{let t=e().subscribe(r);return()=>{t.unsubscribe()}},[e]),t},B3=()=>B2(E7),B4=()=>B2(E9),B6=(e,t,r,i)=>{(0,el.useEffect)(()=>{if(!e)return;let a=t.pipe().subscribe(e=>{e.find(e=>e.deviceId===i)||r()});return()=>{a.unsubscribe()}},[e,t,i,r])},B5=(e,t,r)=>B6(t,E7(),e,r),B8=(e,t,r)=>B6(t,E9(),e,r),B9=(e,t,r)=>B6(t,Fe(),e,r),B7=({initialAudioMuted:e,audioDeviceId:t})=>{let r=F2(),{useCallState:i,useCallCallingState:a,useLocalParticipant:o}=Cf(),s=i(),l=a(),u=o(),d=B1("microphone"),{localParticipant$:p}=s,f=u?.publishedTracks.includes(xn.TrackType.AUDIO),m=(0,el.useCallback)(async()=>{if(r){if(!r.permissionsContext.hasPermission(kk.SEND_AUDIO))throw Error("No permission to publish audio");try{let e=await Fn({deviceId:t});await r.publishAudioStream(e)}catch(e){console.log("Failed to publish audio stream",e)}}},[t,r]),g=(0,el.useRef)(t);(0,el.useEffect)(()=>{l===q.JOINED&&t!==g.current&&(g.current=t,m().catch(e=>{console.error("Failed to publish audio stream",e)}))},[t,l,m]);let v=(0,el.useRef)(!1);return(0,el.useEffect)(()=>{l!==q.JOINED||v.current||e||(m().catch(e=>{console.error("Failed to publish audio stream",e)}),v.current=!0)},[l,e,m]),(0,el.useEffect)(()=>{if(!p||!d)return;let e=Fo(p.pipe(ki(e=>e?.audioDeviceId))).subscribe(async()=>{r&&(r.setAudioDevice(void 0),await r.stopPublish(xn.TrackType.AUDIO))});return()=>{e.unsubscribe()}},[d,p,r]),(0,el.useEffect)(()=>{if(!u?.audioStream||!r||!f)return;let[e]=u.audioStream.getAudioTracks(),i=e.getSettings().deviceId,a=Fu().subscribe(async()=>{if(!(r&&u.audioStream&&"default"===i))return;e.stop();let t=await Fn({deviceId:"default"});await r.publishAudioStream(t)}),o=async()=>{if(i===t){let e=await Fn({deviceId:t});await r.publishAudioStream(e)}};return e.addEventListener("ended",o),()=>{e.removeEventListener("ended",o),a.unsubscribe()}},[t,r,u?.audioStream,f]),m},Ue=()=>(0,el.useMemo)(()=>"undefined"==typeof window?null:new URLSearchParams(window.location.search),[]),Ut=()=>{let e=Ue();return!!e?.get("debug")},Un=()=>{let e=Ue();return e?.get("video_codec")},Ur=({initialVideoMuted:e,videoDeviceId:t})=>{let r=F2(),{useCallState:i,useCallCallingState:a,useLocalParticipant:o,useCallSettings:s}=Cf(),l=i(),u=a(),d=o(),p=B1("camera"),{localParticipant$:f}=l,m=Un(),g=d?.publishedTracks.includes(xn.TrackType.VIDEO),v=s(),b=v?.video,y=b?.target_resolution,_=(0,el.useCallback)(async()=>{if(r){if(!r.permissionsContext.hasPermission(kk.SEND_VIDEO))throw Error("No permission to publish video");try{let e=await Fr({deviceId:t,width:y?.width,height:y?.height,facingMode:Ui(b?.camera_facing)});await r.publishVideoStream(e,{preferredCodec:m})}catch(e){console.log("Failed to publish video stream",e)}}},[r,m,y?.height,y?.width,t,b?.camera_facing]),w=(0,el.useRef)(t);(0,el.useEffect)(()=>{u===q.JOINED&&t!==w.current&&(w.current=t,_().catch(e=>{console.error("Failed to publish video stream",e)}))},[_,t,u]);let k=(0,el.useRef)(!1);return(0,el.useEffect)(()=>{u!==q.JOINED||k.current||e||(_().catch(e=>{console.error("Failed to publish video stream",e)}),k.current=!0)},[u,e,_]),(0,el.useEffect)(()=>{if(!f||!p)return;let e=Fs(f.pipe((0,Cm.UI)(e=>e?.videoDeviceId))).subscribe(async()=>{r&&(r.setVideoDevice(void 0),await r.stopPublish(xn.TrackType.VIDEO))});return()=>{e.unsubscribe()}},[p,f,r]),(0,el.useEffect)(()=>{if(!d?.videoStream||!r||!g)return;let[e]=d.videoStream.getVideoTracks(),i=e.getSettings().deviceId,a=Fd().subscribe(async()=>{if(!(r&&d.videoStream&&"default"===i))return;e.stop();let t=await Fr({deviceId:"default"});await r.publishVideoStream(t)}),o=async()=>{if(i===t){let e=await Fr({deviceId:t});await r.publishVideoStream(e)}};return e.addEventListener("ended",o),()=>{e.removeEventListener("ended",o),a.unsubscribe()}},[t,r,d?.videoStream,g]),_},Ui=e=>{switch(e){case kx.FRONT:return"user";case kx.BACK:return"environment";default:return}},Ua=({trackedElement:e,dynascaleManager:t,sessionId:r,trackType:i})=>{let a=F2(),o=t??a?.dynascaleManager;(0,el.useEffect)(()=>{if(!e||!o||!a||"none"===i)return;let t=o.trackElementVisibility(e,r,i);return()=>{t()}},[e,o,a,r,i])},Uo=({imageSrc:e,name:t,style:r,className:i,...a})=>{let[o,s]=(0,el.useState)(!1);return(0,es.jsxs)(es.Fragment,{children:[(!e||o)&&t&&(0,es.jsx)(Us,{className:i,style:r,names:[t]}),e&&!o&&(0,es.jsx)("img",{onError:()=>s(!0),alt:"avatar",className:a5("str-video__avatar",i),src:e,style:r,...a})]})},Us=({className:e,names:t,style:r})=>(0,es.jsx)("div",{className:a5("str-video__avatar--initials-fallback",e),style:r,children:(0,es.jsxs)("div",{children:[t[0][0],t[1]?.[0]]})}),Ul=({placement:e,strategy:t})=>{let{refs:r,x:i,y:a,update:o,elements:{domReference:s,floating:l}}=function(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:r,nodeId:i}=e,a=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,whileElementsMounted:o,open:s}=e,[l,u]=el.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=el.useState(i);Sr(d,i)||p(i);let f=el.useRef(null),m=el.useRef(null),g=el.useRef(l),v=Si(o),b=Si(a),[y,_]=el.useState(null),[w,k]=el.useState(null),x=el.useCallback(e=>{f.current!==e&&(f.current=e,_(e))},[]),E=el.useCallback(e=>{m.current!==e&&(m.current=e,k(e))},[]),F=el.useCallback(()=>{if(!f.current||!m.current)return;let e={placement:t,strategy:r,middleware:d};b.current&&(e.platform=b.current),St(f.current,m.current,e).then(e=>{let t={...e,isPositioned:!0};C.current&&!Sr(g.current,t)&&(g.current=t,fh.flushSync(()=>{u(t)}))})},[d,t,r,b]);Sn(()=>{!1===s&&g.current.isPositioned&&(g.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[s]);let C=el.useRef(!1);Sn(()=>(C.current=!0,()=>{C.current=!1}),[]),Sn(()=>{if(y&&w){if(v.current)return v.current(y,w,F);F()}},[y,w,F,v]);let S=el.useMemo(()=>({reference:f,floating:m,setReference:x,setFloating:E}),[x,E]),D=el.useMemo(()=>({reference:y,floating:w}),[y,w]);return el.useMemo(()=>({...l,update:F,refs:S,elements:D,reference:x,floating:E}),[l,F,S,D,x,E])}(e),o=Sd(),s=el.useRef(null),l=el.useRef({}),u=el.useState(()=>(function(){let e=new Map;return{emit(t,r){var i;null==(i=e.get(t))||i.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var i;e.set(t,(null==(i=e.get(t))?void 0:i.filter(e=>e!==r))||[])}}})())[0],d=Sc(),[p,f]=el.useState(null),m=el.useCallback(e=>{let t=Sp(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a.refs.setReference(t)},[a.refs]),g=el.useCallback(e=>{(Sp(e)||null===e)&&(s.current=e,f(e)),(Sp(a.refs.reference.current)||null===a.refs.reference.current||null!==e&&!Sp(e))&&a.refs.setReference(e)},[a.refs]),v=el.useMemo(()=>({...a.refs,setReference:g,setPositionReference:m,domReference:s}),[a.refs,g,m]),b=el.useMemo(()=>({...a.elements,domReference:p}),[a.elements,p]),y=function(e){let t=el.useRef(()=>{});return Sf(()=>{t.current=e}),el.useCallback(function(){for(var e=arguments.length,r=Array(e),i=0;i({...a,refs:v,elements:b,dataRef:l,nodeId:i,floatingId:d,events:u,open:t,onOpenChange:y}),[a,i,d,u,t,y,v,b]);return Sa(()=>{let e=null==o?void 0:o.nodesRef.current.find(e=>e.id===i);e&&(e.context=_)}),el.useMemo(()=>({...a,context:_,refs:v,elements:b,reference:g,positionReference:m}),[a,v,b,_,g,m])}({placement:e,strategy:t,middleware:[function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,i;let{x:a,y:o,placement:s,middlewareData:l}=t,u=await CL(t,e);return s===(null==(r=l.offset)?void 0:r.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:a+u.x,y:o+u.y,data:{...u,placement:s}}}}}(10),function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=Cx(e,t),d={x:r,y:i},p=await CM(t,u),f=CD(CE(a)),m=CC(f),g=d[m],v=d[f];if(o){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",r=g+p[e],i=g-p[t];g=Cv(r,Cg(g,i))}if(s){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=v+p[e],i=v-p[t];v=Cv(r,Cg(v,i))}let b=l.fn({...t,[m]:g,[f]:v});return{...b,data:{x:b.x-r,y:b.y-i}}}}}(),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,a,o,s;let{placement:l,middlewareData:u,rects:d,initialPlacement:p,platform:f,elements:m}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0,...k}=Cx(e,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let x=CE(l),E=CD(p),F=CE(p)===p,C=await (null==f.isRTL?void 0:f.isRTL(m.floating)),S=b||(F||!w?[CT(p)]:function(e){let t=CT(e);return[Cj(e),t,Cj(t)]}(p)),D="none"!==_;!b&&D&&S.push(...function(e,t,r,i){let a=CF(e),o=function(e,t,r){let i=["left","right"],a=["right","left"];switch(e){case"top":case"bottom":if(r)return t?a:i;return t?i:a;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(CE(e),"start"===r,i);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(Cj)))),o}(p,w,_,C));let j=[p,...S],T=await CM(t,k),O=[],P=(null==(i=u.flip)?void 0:i.overflows)||[];if(g&&O.push(T[x]),v){let e=function(e,t,r){void 0===r&&(r=!1);let i=CF(e),a=CC(CD(e)),o=CS(a),s="x"===a?i===(r?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=CT(s)),[s,CT(s)]}(l,d,C);O.push(T[e[0]],T[e[1]])}if(P=[...P,{placement:l,overflows:O}],!O.every(e=>e<=0)){let e=((null==(a=u.flip)?void 0:a.index)||0)+1,t=j[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let r=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(y){case"bestFit":{let e=null==(s=P.filter(e=>{if(D){let t=CD(e.placement);return t===E||"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:s[0];e&&(r=e);break}case"initialPlacement":r=p}if(l!==r)return{reset:{placement:r}}}return{}}}}(),function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,i;let{placement:a,rects:o,platform:s,elements:l}=t,{apply:u=()=>{},...d}=Cx(e,t),p=await CM(t,d),f=CE(a),m=CF(a),g="y"===CD(a),{width:v,height:b}=o.floating;"top"===f||"bottom"===f?(r=f,i=m===(await (null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(i=f,r="end"===m?"top":"bottom");let y=b-p.top-p.bottom,_=v-p.left-p.right,w=Cg(b-p[r],y),k=Cg(v-p[i],_),x=!t.middlewareData.shift,E=w,F=k;if(g?F=m||x?Cg(k,_):_:E=m||x?Cg(w,y):y,x&&!m){let e=Cv(p.left,0),t=Cv(p.right,0),r=Cv(p.top,0),i=Cv(p.bottom,0);g?F=v-2*(0!==e||0!==t?e+t:Cv(p.left,p.right)):E=b-2*(0!==r||0!==i?r+i:Cv(p.top,p.bottom))}await u({...t,availableWidth:F,availableHeight:E});let C=await s.getDimensions(l.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}}({padding:10,apply:({availableHeight:e,elements:t})=>{Object.assign(t.floating.style,{maxHeight:`${e}px`})}})]});return(0,el.useEffect)(()=>{if(!s||!l)return;let e=function(e,t,r,i){let a;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,p=CQ(e),f=o||s?[...p?CJ(p):[],...CJ(t)]:[];f.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let m=p&&u?function(e,t){let r,i=null,a=CN(e);function o(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();let{left:d,top:p,width:f,height:m}=e.getBoundingClientRect();if(l||t(),!f||!m)return;let g=Cy(p),v=Cy(a.clientWidth-(d+f)),b={rootMargin:-g+"px "+-v+"px "+-Cy(a.clientHeight-(p+m))+"px "+-Cy(d)+"px",threshold:Cv(0,Cg(1,u))||1},y=!0;function _(e){let t=e[0].intersectionRatio;if(t!==u){if(!y)return s();t?s(!1,t):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{i=new IntersectionObserver(_,{...b,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(_,b)}i.observe(e)}(!0),o}(p,r):null,g=-1,v=null;l&&(v=new ResizeObserver(e=>{let[i]=e;i&&i.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),p&&!d&&v.observe(p),v.observe(t));let b=d?C3(e):null;return d&&function t(){let i=C3(e);b&&(i.x!==b.x||i.y!==b.y||i.width!==b.width||i.height!==b.height)&&r(),b=i,a=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(a)}}(s,l,o);return()=>e()},[s,l,o]),{refs:r,x:i,y:a,domReference:s,floating:l,strategy:t}},Uc=e=>{let t=F2(),r=Cl(e),[i,a]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{r&&a(!1)},[r]),{requestPermission:(0,el.useCallback)(async()=>{if(r)return!0;let o=!!t?.permissionsContext.canRequest(e);if(i||!o)return!1;a(!0);try{await t?.requestPermissions({permissions:[e]})}catch(e){throw a(!1),Error(`requestPermission failed: ${e}`)}return!1},[t,r,i,e]),hasPermission:r,canRequestPermission:!!t?.permissionsContext.canRequest(e),isAwaitingPermission:i}},Uu=()=>{let{publishAudioStream:e,stopPublishingAudio:t}=U3(),{useLocalParticipant:r}=Cf(),i=r(),{isAwaitingPermission:a,requestPermission:o}=Uc(kk.SEND_AUDIO),s=(0,el.useRef)(!1);return s.current=!i?.publishedTracks.includes(xn.TrackType.AUDIO),{toggleAudioMuteState:(0,el.useCallback)(async()=>{if(s.current&&await o())return e();s.current||await t()},[e,o,t]),isAwaitingPermission:a}},Ud=()=>{let{publishVideoStream:e,stopPublishingVideo:t}=U3(),{useLocalParticipant:r}=Cf(),i=r(),{isAwaitingPermission:a,requestPermission:o}=Uc(kk.SEND_VIDEO),s=(0,el.useRef)(!1);return s.current=!i?.publishedTracks.includes(xn.TrackType.VIDEO),{toggleVideoMuteState:(0,el.useCallback)(async()=>{if(s.current&&await o())return e();s.current||await t()},[e,o,t]),isAwaitingPermission:a}},Up=()=>{let{useLocalParticipant:e}=Cf(),t=e(),r=F2(),i=(0,el.useRef)(!1),{isAwaitingPermission:a,requestPermission:o}=Uc(kk.SCREENSHARE),s=!!t?.publishedTracks.includes(xn.TrackType.SCREEN_SHARE);return i.current=s,{toggleScreenShare:(0,el.useCallback)(async()=>{if(!i.current){if(!await o())return;let e=await Fi().catch(e=>{console.log(`Can't share screen: ${e}`)});if(e)return r?.publishScreenShareStream(e)}await r?.stopPublish(xn.TrackType.SCREEN_SHARE)},[r,o]),isAwaitingPermission:a,isScreenSharing:s}},Uf=({ToggleButton:e,placement:t="top-start",strategy:r="absolute",children:i})=>{let[a,o]=(0,el.useState)(!1),{floating:s,domReference:l,refs:u,x:d,y:p}=Ul({placement:t,strategy:r});return(0,el.useEffect)(()=>{let e=e=>{!s&&l?.contains(e.target)?o(!0):s&&!s?.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)}},[s,l]),(0,es.jsxs)(es.Fragment,{children:[a&&(0,es.jsx)("div",{className:"str-video__menu-container",ref:u.setFloating,style:{position:r,top:p??0,left:d??0,overflowY:"auto"},children:i}),(0,es.jsx)(e,{menuShown:a,ref:u.setReference})]})},Uh=({children:e})=>(0,es.jsx)("ul",{className:"str-video__generic-menu",children:e}),Um=({children:e,...t})=>(0,es.jsx)("li",{className:"str-video__generic-menu--item",children:(0,es.jsx)("button",{...t,children:e})}),Ug=({icon:e})=>(0,es.jsx)("span",{className:a5("str-video__icon",e&&`str-video__icon--${e}`)}),Uv=(0,el.forwardRef)((e,t)=>{let{icon:r,enabled:i,variant:a,onClick:o,className:s,...l}=e;return(0,es.jsx)("button",{className:a5("str-video__call-controls__button",s,{[`str-video__call-controls__button--variant-${a}`]:a,"str-video__call-controls__button--enabled":i}),onClick:e=>{e.preventDefault(),o?.(e)},ref:t,...l,children:(0,es.jsx)(Ug,{icon:r})})}),Ub=(0,el.forwardRef)(({caption:e,children:t,active:r,Menu:i,menuPlacement:a},o)=>(0,es.jsxs)("div",{className:"str-video__composite-button",ref:o,children:[(0,es.jsxs)("div",{className:a5("str-video__composite-button__button-group",{"str-video__composite-button__button-group--active":r}),children:[t,i&&(0,es.jsx)(Uf,{placement:a,ToggleButton:Uy,children:BZ(i)?(0,es.jsx)(i,{}):i})]}),e&&(0,es.jsx)("div",{className:"str-video__composite-button__caption",children:e})]})),Uy=(0,el.forwardRef)(({menuShown:e},t)=>{let{t:r}=Ct();return(0,es.jsx)(Uv,{className:"str-video__menu-toggle-button",icon:e?"caret-down":"caret-up",title:r("Toggle device menu"),ref:t})});(0,el.forwardRef)(({Button:e,className:t,copyValue:r,onClick:i,onError:a,onSuccess:o,...s},l)=>{let u=(0,el.useCallback)(async e=>{i&&i(e);let t="function"==typeof r?r():r;try{await navigator?.clipboard.writeText(t),o?.(e.target)}catch(t){a?.(e.target,t)}},[r,i,a,o]),d={...s,ref:l,className:a5("str-video__copy-to-clipboard-button",t),onClick:u};return e?(0,es.jsx)(e,{...d}):(0,es.jsx)("button",{...d})});let U_=({disabled:e,onAccept:t,onClick:r})=>{let i=F2(),a=(0,el.useCallback)(async e=>{r?r(e):i&&(await i.join(),t?.())},[r,t,i]);return(0,es.jsx)(Uv,{disabled:e,icon:"call-accept",variant:"success",onClick:a})},Uw=e=>{let{isVisible:t,message:r,children:i,visibilityTimeout:a,resetIsVisible:o,placement:s="top",iconClassName:l="str-video__notification__icon"}=e,{refs:u,x:d,y:p,strategy:f}=Ul({placement:s,strategy:"absolute"});return(0,el.useEffect)(()=>{if(!t||!a||!o)return;let e=setTimeout(()=>{o()},a);return()=>clearTimeout(e)},[t,o,a]),(0,es.jsxs)("div",{ref:u.setReference,children:[t&&(0,es.jsxs)("div",{className:"str-video__notification",ref:u.setFloating,style:{position:f,top:p??0,left:d??0,overflowY:"auto"},children:[l&&(0,es.jsx)("i",{className:l}),(0,es.jsx)("span",{className:"str-video__notification__message",children:r})]}),i]})},Uk=e=>{let{permission:t,isAwaitingApproval:r,messageApproved:i,messageAwaitingApproval:a,messageRevoked:o,visibilityTimeout:s=3500,children:l}=e,u=Cl(t),d=(0,el.useRef)(u),[p,f]=(0,el.useState)();(0,el.useEffect)(()=>{u&&!d.current?(f("granted"),d.current=!0):!u&&d.current&&(f("revoked"),d.current=!1)},[u]);let m=(0,el.useCallback)(()=>f(void 0),[]);return r?(0,es.jsx)(Uw,{isVisible:r&&!u,message:a,children:l}):(0,es.jsx)(Uw,{isVisible:!!p,visibilityTimeout:s,resetIsVisible:m,message:"granted"===p?i:o,children:l})},Ux=({children:e,text:t})=>{let{useLocalParticipant:r}=Cf(),i=r(),{getAudioStream:a}=U3(),{t:o}=Ct(),s=t??o("You are muted. Unmute to speak."),l=!i?.publishedTracks.includes(xn.TrackType.AUDIO),u=i?.audioDeviceId,[d,p]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{if(!l)return;let e=a({deviceId:u}).then(e=>Ff(e,({isSoundDetected:e})=>{p(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)}),p(!1)}},[u,a,l]),(0,el.useEffect)(()=>{if(!d)return;let e=setTimeout(()=>{p(!1)},3500);return()=>{clearTimeout(e),p(!1)}},[d]),(0,es.jsx)(Uw,{message:s,isVisible:d,children:e})},UE=e=>{let{label:t,value:r}=e;return(0,es.jsxs)("div",{className:"str-video__call-stats__card",children:[(0,es.jsx)("div",{className:"str-video__call-stats__card_label",children:t}),(0,es.jsx)("div",{className:"str-video__call-stats__card_value",children:r})]})};(0,el.forwardRef)(({menuShown:e},t)=>(0,es.jsx)(Ub,{ref:t,active:e,caption:"Stats",children:(0,es.jsx)(Uv,{icon:"stats",title:"Statistics"})}));let UF=({disabled:e,onClick:t,onLeave:r})=>{let i=F2(),a=(0,el.useCallback)(async e=>{t?t(e):i&&(await i.leave(),r?.())},[t,r,i]);return(0,es.jsx)(Uv,{disabled:e,icon:"call-end",variant:"danger",onClick:a})},UC={":like:":"\uD83D\uDC4D",":raise-hand:":"✋",":fireworks:":"\uD83C\uDF89",":dislike:":"\uD83D\uDC4E",":heart:":"❤️",":smile:":"\uD83D\uDE00"},US=({participant:{reaction:e,sessionId:t},hideAfterTimeoutInMs:r=5500,emojiReactionMap:i=UC})=>{let a=F2();if((0,el.useEffect)(()=>{if(!a||!e)return;let i=setTimeout(()=>{a.resetReaction(t)},r);return()=>{clearTimeout(i)}},[a,r,e,t]),!e)return null;let{emoji_code:o}=e;return(0,es.jsx)("div",{className:"str-video__reaction",children:(0,es.jsx)("span",{className:"str-video__reaction__emoji",children:o&&i[o]})})},UD=e=>{let t=F2(),{useHasOngoingScreenShare:r}=Cf(),i=r(),{t:a}=Ct(),{caption:o=a("Screen Share")}=e,{toggleScreenShare:s,isAwaitingPermission:l,isScreenSharing:u}=Up();return(0,es.jsx)(Ch,{requiredGrants:[kk.SCREENSHARE],children:(0,es.jsx)(Uk,{permission:kk.SCREENSHARE,isAwaitingApproval:l,messageApproved:a("You can now share your screen."),messageAwaitingApproval:a("Awaiting for an approval to share screen."),messageRevoked:a("You can no longer share your screen."),children:(0,es.jsx)(Ub,{active:i,caption:o,children:(0,es.jsx)(Uv,{icon:u?"screen-share-on":"screen-share-off",title:a("Share screen"),disabled:!u&&i||!t,onClick:s})})})})},Uj=({disabled:e,id:t,label:r,onChange:i,name:a,selected:o,defaultChecked:s,value:l})=>(0,es.jsxs)("label",{className:a5("str-video__device-settings__option",{"str-video__device-settings__option--selected":o,"str-video__device-settings__option--disabled":e}),htmlFor:t,children:[(0,es.jsx)("input",{type:"radio",name:a,onChange:i,value:l,id:t,checked:o,defaultChecked:s,disabled:e}),r]}),UT=e=>{let{devices:t=[],selectedDeviceId:r,title:i,onChange:a}=e,o=i.replace(" ","-").toLowerCase(),s=r;return t.length>0&&!t.find(e=>e.deviceId===s)&&(s=t[0].deviceId),(0,es.jsxs)("div",{className:"str-video__device-settings__device-kind",children:[(0,es.jsx)("div",{className:"str-video__device-settings__device-selector-title",children:i}),t.length?t.map(e=>(0,es.jsx)(Uj,{id:`${o}--${e.deviceId}`,value:e.deviceId,label:e.label,onChange:e=>{a?.(e.target.value)},name:o,selected:e.deviceId===s||1===t.length},e.deviceId)):(0,es.jsx)(Uj,{id:`${o}--default`,label:"Default",name:o,defaultChecked:!0,value:"default"})]})},UO=({title:e="Select a Mic"})=>{let{selectedAudioInputDeviceId:t,switchDevice:r}=U3(),i=B4();return(0,es.jsx)(UT,{devices:i,selectedDeviceId:t,onChange:e=>{r("audioinput",e)},title:e})},UP=({title:e})=>{let{selectedVideoDeviceId:t,switchDevice:r}=U3(),i=B3();return(0,es.jsx)(UT,{devices:i,selectedDeviceId:t,onChange:e=>{r("videoinput",e)},title:e||"Select a Camera"})};(0,el.forwardRef)(({menuShown:e},t)=>{let{t:r}=Ct();return(0,es.jsx)(Uv,{className:a5("str-video__device-settings__button",{"str-video__device-settings__button--active":e}),title:r("Toggle device menu"),icon:"device-settings",ref:t})});let UR=e=>{let{useLocalParticipant:t}=Cf(),r=t(),{t:i}=Ct(),{caption:a=i("Mic"),Menu:o=UO}=e,s=!r?.publishedTracks.includes(xn.TrackType.AUDIO),{toggleAudioMuteState:l,isAwaitingPermission:u}=Uu();return(0,es.jsx)(Ch,{requiredGrants:[kk.SEND_AUDIO],children:(0,es.jsx)(Uk,{permission:kk.SEND_AUDIO,isAwaitingApproval:u,messageApproved:i("You can now speak."),messageAwaitingApproval:i("Awaiting for an approval to speak."),messageRevoked:i("You can no longer speak."),children:(0,es.jsx)(Ub,{Menu:o,active:s,caption:a,children:(0,es.jsx)(Uv,{icon:s?"mic-off":"mic",onClick:l})})})})},UM=e=>{let{useLocalParticipant:t}=Cf(),r=t(),{t:i}=Ct(),{caption:a=i("Video"),Menu:o=UP}=e,s=!r?.publishedTracks.includes(xn.TrackType.VIDEO),{toggleVideoMuteState:l,isAwaitingPermission:u}=Ud();return(0,es.jsx)(Ch,{requiredGrants:[kk.SEND_VIDEO],children:(0,es.jsx)(Uk,{permission:kk.SEND_VIDEO,isAwaitingApproval:u,messageApproved:i("You can now share your video."),messageAwaitingApproval:i("Awaiting for an approval to share your video."),messageRevoked:i("You can no longer share your video."),children:(0,es.jsx)(Ub,{Menu:o,active:s,caption:a,children:(0,es.jsx)(Uv,{icon:s?"camera-off":"camera",onClick:l})})})})};(0,el.forwardRef)((e,t)=>(0,es.jsx)(Uv,{enabled:e.menuShown,icon:"ellipsis",ref:t}));let UL=({participant:e,participantViewElement:t,videoElement:r})=>{let[i,a]=(0,el.useState)(!!document.fullscreenElement),[o,s]=(0,el.useState)(document.pictureInPictureElement),l=F2(),{t:u}=Ct(),{pin:d,publishedTracks:p,sessionId:f,userId:m}=e,g=p.includes(xn.TrackType.AUDIO),v=p.includes(xn.TrackType.VIDEO),b=p.includes(xn.TrackType.SCREEN_SHARE),y=p.includes(xn.TrackType.SCREEN_SHARE_AUDIO),_=e=>()=>{l?.updateUserPermissions({user_id:m,grant_permissions:[e]})},w=e=>()=>{l?.updateUserPermissions({user_id:m,revoke_permissions:[e]})};return(0,el.useEffect)(()=>{if(!r)return;let e=()=>{s(document.pictureInPictureElement)};return r.addEventListener("enterpictureinpicture",e),r.addEventListener("leavepictureinpicture",e),()=>{r.removeEventListener("enterpictureinpicture",e),r.removeEventListener("leavepictureinpicture",e)}},[r]),(0,es.jsxs)(Uh,{children:[(0,es.jsxs)(Um,{onClick:()=>{d?l?.unpin(f):l?.pin(f)},disabled:d&&!d.isLocalPin,children:[(0,es.jsx)(Ug,{icon:"pin"}),u(d?"Unpin":"Pin")]}),(0,es.jsxs)(Ch,{requiredGrants:[kk.PIN_FOR_EVERYONE],children:[(0,es.jsxs)(Um,{onClick:()=>{l?.pinForEveryone({user_id:m,session_id:f}).catch(e=>{console.error(`Failed to pin participant ${m}`,e)})},disabled:d&&!d.isLocalPin,children:[(0,es.jsx)(Ug,{icon:"pin"}),u("Pin for everyone")]}),(0,es.jsxs)(Um,{onClick:()=>{l?.unpinForEveryone({user_id:m,session_id:f}).catch(e=>{console.error(`Failed to unpin participant ${m}`,e)})},disabled:!d||d.isLocalPin,children:[(0,es.jsx)(Ug,{icon:"pin"}),u("Unpin for everyone")]})]}),(0,es.jsx)(Ch,{requiredGrants:[kk.BLOCK_USERS],children:(0,es.jsxs)(Um,{onClick:()=>l?.blockUser(m),children:[(0,es.jsx)(Ug,{icon:"not-allowed"}),u("Block")]})}),(0,es.jsxs)(Ch,{requiredGrants:[kk.MUTE_USERS],children:[(0,es.jsxs)(Um,{disabled:!v,onClick:()=>l?.muteUser(m,"video"),children:[(0,es.jsx)(Ug,{icon:"camera-off-outline"}),u("Turn off video")]}),(0,es.jsxs)(Um,{disabled:!b,onClick:()=>l?.muteUser(m,"screenshare"),children:[(0,es.jsx)(Ug,{icon:"screen-share-off"}),u("Turn off screen share")]}),(0,es.jsxs)(Um,{disabled:!g,onClick:()=>l?.muteUser(m,"audio"),children:[(0,es.jsx)(Ug,{icon:"no-audio"}),u("Mute audio")]}),(0,es.jsxs)(Um,{disabled:!y,onClick:()=>l?.muteUser(m,"screenshare_audio"),children:[(0,es.jsx)(Ug,{icon:"no-audio"}),u("Mute screen share audio")]})]}),t&&(0,es.jsx)(Um,{onClick:()=>{if(!i)return t?.requestFullscreen().then(()=>a(!0)).catch(console.error);document.exitFullscreen().catch(console.error).finally(()=>a(!1))},children:u("{{ direction }} fullscreen",{direction:u(i?"Leave":"Enter")})}),r&&document.pictureInPictureEnabled&&(0,es.jsx)(Um,{onClick:()=>{if(r&&o!==r)return r.requestPictureInPicture().catch(console.error);document.exitPictureInPicture().catch(console.error)},children:u("{{ direction }} picture-in-picture",{direction:u(o===r?"Leave":"Enter")})}),(0,es.jsxs)(Ch,{requiredGrants:[kk.UPDATE_CALL_PERMISSIONS],children:[(0,es.jsx)(Um,{onClick:_(kk.SEND_AUDIO),children:u("Allow audio")}),(0,es.jsx)(Um,{onClick:_(kk.SEND_VIDEO),children:u("Allow video")}),(0,es.jsx)(Um,{onClick:_(kk.SCREENSHARE),children:u("Allow screen sharing")}),(0,es.jsx)(Um,{onClick:w(kk.SEND_AUDIO),children:u("Disable audio")}),(0,es.jsx)(Um,{onClick:w(kk.SEND_VIDEO),children:u("Disable video")}),(0,es.jsx)(Um,{onClick:w(kk.SCREENSHARE),children:u("Disable screen sharing")})]})]})};(0,el.forwardRef)((e,t)=>(0,es.jsx)(Uv,{enabled:e.menuShown,icon:"filter",ref:t})),(0,el.forwardRef)(({className:e,...t},r)=>(0,es.jsxs)("button",{...t,className:a5("str-video__invite-link-button",e),ref:r,children:[(0,es.jsx)("div",{className:"str-video__invite-participant-icon"}),(0,es.jsx)("div",{className:"str-video__invite-link-button__text",children:"Invite Link"})]})),(0,el.forwardRef)((e,t)=>(0,es.jsx)("button",{...e,className:a5("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,es.jsx)("span",{className:a5("str-video__call-recording-list-item__action-button-icon","str-video__copy-button--icon")})}));let UA=()=>{let e=F2(),{useCallCallingState:t}=Cf(),r=t();if(!e)return null;let i=r!==q.RINGING;return(0,es.jsx)("div",{className:"str-video__pending-call-controls",children:e.isCreatedByMe?(0,es.jsx)(UF,{disabled:i}):(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(U_,{disabled:i}),(0,es.jsx)(UF,{onClick:()=>e.leave({reject:!0}),disabled:i})]})})},UI={[q.JOINING]:"Joining",[q.RINGING]:"Ringing",[q.MIGRATING]:"Migrating",[q.RECONNECTING]:"Re-connecting",[q.RECONNECTING_FAILED]:"Failed",[q.OFFLINE]:"No internet connection",[q.IDLE]:"",[q.UNKNOWN]:"",[q.JOINED]:"Joined",[q.LEFT]:"Left call"},UN=e=>{let{includeSelf:t=!1,totalMembersToShow:r=3}=e,i=F2(),{t:a}=Ct(),{useCallCallingState:o,useCallMembers:s}=Cf(),l=o(),u=s(),d=Cp();if(!i)return null;let p=(u||[]).slice(0,r).map(({user:e})=>e).filter(e=>e.id!==d?.id||t);if(t&&!p.find(e=>e.id===d?.id)){let e=u.find(({user:e})=>e.id===d?.id);e&&p.splice(0,1,e.user)}let f=UI[l];return(0,es.jsxs)("div",{className:"str-video__call-panel str-video__call-panel--ringing",children:[(0,es.jsx)("div",{className:"str-video__call-panel__members-list",children:p.map(e=>(0,es.jsxs)("div",{className:"str-video__call-panel__member-box",children:[(0,es.jsx)(Uo,{name:e.name,imageSrc:e.image}),e.name&&(0,es.jsx)("div",{className:"str-video__member_details",children:(0,es.jsx)("span",{className:"str-video__member_name",children:e.name})})]},e.id))}),f&&(0,es.jsx)("div",{className:"str-video__call-panel__calling-state-label",children:a(f)}),[q.RINGING,q.JOINING].includes(l)&&(0,es.jsx)(UA,{})]})};(0,el.forwardRef)((e,t)=>{let{permissionRequests:r,handleUpdatePermission:i,...a}=e,{t:o}=Ct();return(0,es.jsx)("div",{className:"str-video__permission-requests-list",ref:t,...a,children:r.map((e,t)=>{let{user:r,permissions:a}=e;return(0,es.jsx)(el.Fragment,{children:a.map(t=>(0,es.jsxs)("div",{className:"str-video__permission-request",children:[(0,es.jsx)("div",{className:"str-video__permission-request__message",children:UU(r.name||r.id,t,o)}),(0,es.jsx)(UB,{className:"str-video__permission-request__button--allow",type:"button",onClick:i(e,"grant"),children:o("Allow")}),(0,es.jsx)(UB,{className:"str-video__permission-request__button--reject",type:"button",onClick:i(e,"revoke"),children:o("Revoke")}),(0,es.jsx)(UB,{className:"str-video__permission-request__button--reject",type:"button",onClick:i(e,"dismiss"),children:o("Dismiss")})]},t))},`${r.id}/${t}`)})})});let UB=e=>{let{className:t,...r}=e;return(0,es.jsx)("button",{className:a5("str-video__permission-request__button",t),...r})},UU=(e,t,r)=>{switch(t){case kk.SEND_AUDIO:return r("{{ userName }} is requesting to speak",{userName:e});case kk.SEND_VIDEO:return r("{{ userName }} is requesting to share their camera",{userName:e});case kk.SCREENSHARE:return r("{{ userName }} is requesting to present their screen",{userName:e});default:return r("{{ userName }} is requesting permission: {{ permission }}",{userName:e,permission:t})}},Uz=({as:e="div",className:t,children:r,...i})=>(0,es.jsx)(e,{...i,className:a5("str-video",t),children:r}),UH=e=>{let{call:t,participant:r}=e,[i,a]=(0,el.useState)(),[o,s]=(0,el.useState)(()=>({f:!0,h:!0,q:!0}));return(0,el.useEffect)(()=>t.on("changePublishQuality",e=>{if("changePublishQuality"!==e.eventPayload.oneofKind)return;let{videoSenders:t}=e.eventPayload.changePublishQuality,[r]=t.map(({layers:e})=>e.map(e=>({[e.name]:e.active})));s(e=>({...e,...r}))}),[t]),(0,es.jsxs)("select",{title:`Published tracks: ${JSON.stringify(o)}`,value:i,onChange:e=>{let i=e.target.value;a(i);let o=960,s=540;"h"===i?(o/=2,s/=2):"q"===i&&(o/=4,s/=4),t.updateSubscriptionsPartial("video",{[r.sessionId]:{dimension:{width:o,height:s}}})},children:[(0,es.jsx)("option",{value:"f",children:"High (f)"}),(0,es.jsx)("option",{value:"h",children:"Medium (h)"}),(0,es.jsx)("option",{value:"q",children:"Low (q)"})]})},Uq=e=>{let{call:t,mediaStream:r,sessionId:i,userId:a}=e,{useCallStatsReport:o}=Cf(),s=o();(0,el.useEffect)(()=>(t.startReportingStatsFor(i),()=>{t.stopReportingStatsFor(i)}),[t,i]);let l=s?.participants[i],u=l?.flatMap(e=>e.streams),d=(0,el.useRef)({f:0,h:0,q:0}),p=(0,el.useRef)({f:0,h:0,q:0});u?.forEach(e=>{if("video"!==e.kind)return;let{frameWidth:t=0,frameHeight:r=0,rid:o=""}=e;if(t!==d.current[o]||r!==p.current[o]){let e=`${t}x${r}`;console.log(`Track stats (${a}/${i}): ${o}(${e})`),d.current[o]=t,p.current[o]=r}});let{refs:f,strategy:m,y:g,x:v}=Ul({placement:"top",strategy:"absolute"}),[b,y]=(0,el.useState)(!1),[_]=r?.getVideoTracks()??[],w=_?.getSettings();return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)("span",{className:"str-video__debug__track-stats-icon",tabIndex:0,ref:f.setReference,title:w&&`${w.width}x${w.height}@${Math.round(w.frameRate||0)}`,onClick:()=>{y(e=>!e)}}),b&&(0,es.jsxs)("div",{className:"str-video__debug__track-stats str-video__call-stats",ref:f.setFloating,style:{position:m,top:g??0,left:v??0,overflowY:"auto"},children:[(0,es.jsx)("h3",{children:"Participant stats"}),(0,es.jsx)("div",{className:"str-video__call-stats__card-container",children:u?.map(e=>"video"===e.kind?es.jsx(UE,{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?es.jsx(UE,{label:e.codec||"N/A",value:`Jitter: ${e.jitter||0}ms`},`${e.ssrc}/${e.codec}/${e.kind}`):null).filter(Boolean)}),l?.map((e,t)=>es.jsx("pre",{children:JSON.stringify(UV(e.rawStats),null,2)},t))]})]})},UV=e=>{let t={};return e?.forEach(e=>{t[e.id]=e}),t},UW=(0,el.forwardRef)((e,t)=>(0,es.jsx)(Uv,{enabled:e.menuShown,icon:"ellipsis",ref:t})),U$=()=>{let e=F2();return(0,es.jsxs)("div",{className:"str-video__screen-share-overlay",children:[(0,es.jsx)(Ug,{icon:"screen-share-off"}),(0,es.jsx)("span",{className:"str-video__screen-share-overlay__title",children:"You are presenting your screen"}),(0,es.jsxs)("button",{onClick:()=>{e?.stopPublish(xn.TrackType.SCREEN_SHARE).catch(console.error)},className:"str-video__screen-share-overlay__button",children:[(0,es.jsx)(Ug,{icon:"close"})," Stop Screen Sharing"]})]})},UG=({indicatorsVisible:e=!0,menuPlacement:t="bottom-end",showMenuButton:r=!0})=>{let{participant:i,participantViewElement:a,trackType:o,videoElement:s}=UZ(),{publishedTracks:l}=i,u=l.includes(xn.TrackType.SCREEN_SHARE);return i.isLocalParticipant&&u&&"screenShareTrack"===o?(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(U$,{}),(0,es.jsx)(UY,{indicatorsVisible:e})]}):(0,es.jsxs)(es.Fragment,{children:[r&&(0,es.jsx)(Uf,{strategy:"fixed",placement:t,ToggleButton:UW,children:(0,es.jsx)(UL,{participantViewElement:a,participant:i,videoElement:s})}),(0,es.jsx)(US,{participant:i}),(0,es.jsx)(UY,{indicatorsVisible:e})]})},UY=({indicatorsVisible:e=!0})=>{let{participant:t}=UZ(),{isDominantSpeaker:r,isLocalParticipant:i,connectionQuality:a,publishedTracks:o,pin:s,sessionId:l,name:u,userId:d,videoStream:p}=t,f=F2(),m=!!a&&xn.ConnectionQuality[a].toLowerCase(),g=o.includes(xn.TrackType.AUDIO),v=o.includes(xn.TrackType.VIDEO),b=!!s&&s.isLocalPin,y=Ut();return(0,es.jsxs)("div",{className:"str-video__participant-details",children:[(0,es.jsxs)("span",{className:"str-video__participant-details__name",children:[u||d,e&&r&&(0,es.jsx)("span",{className:"str-video__participant-details__name--dominant_speaker",title:"Dominant speaker"}),e&&(0,es.jsx)(Uw,{isVisible:i&&a===xn.ConnectionQuality.POOR,message:"Poor connection quality. Please check your internet connection.",children:m&&(0,es.jsx)("span",{className:a5("str-video__participant-details__connection-quality",`str-video__participant-details__connection-quality--${m}`),title:m})}),e&&!g&&(0,es.jsx)("span",{className:"str-video__participant-details__name--audio-muted"}),e&&!v&&(0,es.jsx)("span",{className:"str-video__participant-details__name--video-muted"}),e&&b&&(0,es.jsx)("span",{title:"Unpin",onClick:()=>f?.unpin(l),style:{cursor:"pointer"},className:"str-video__participant-details__name--pinned"})]}),y&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(UH,{participant:t,call:f}),(0,es.jsx)(Uq,{call:f,sessionId:l,userId:d,mediaStream:p})]})]})},UK=(0,el.createContext)(void 0),UZ=()=>(0,el.useContext)(UK),UJ=(0,el.forwardRef)(({participant:e,trackType:t="videoTrack",muteAudio:r,refs:{setVideoElement:i,setVideoPlaceholderElement:a}={},className:o,VideoPlaceholder:s,ParticipantViewUI:l=UG},u)=>{let{isLocalParticipant:d,isSpeaking:p,isDominantSpeaker:f,publishedTracks:m,sessionId:g}=e,v=m.includes(xn.TrackType.AUDIO),b=m.includes(xn.TrackType.VIDEO),y=m.includes(xn.TrackType.SCREEN_SHARE_AUDIO),[_,w]=(0,el.useState)(null),[k,x]=(0,el.useState)(null),[E,F]=(0,el.useState)(null);Ua({sessionId:g,trackedElement:_,trackType:t});let C=(0,el.useMemo)(()=>({participant:e,participantViewElement:_,videoElement:k,videoPlaceholderElement:E,trackType:t}),[k,E,e,_,t]),S=(0,el.useMemo)(()=>({setVideoElement:e=>{i?.(e),x(e)},setVideoPlaceholderElement:e=>{a?.(e),F(e)}}),[i,a]);return(0,es.jsx)("div",{"data-testid":"participant-view",ref:e=>{BX(u,e),w(e)},className:a5("str-video__participant-view",f&&"str-video__participant-view--dominant-speaker",p&&"str-video__participant-view--speaking",!b&&"str-video__participant-view--no-video",!v&&"str-video__participant-view--no-audio",o),children:(0,es.jsxs)(UK.Provider,{value:C,children:[!d&&!r&&(0,es.jsxs)(es.Fragment,{children:[v&&(0,es.jsx)(BY,{participant:e,trackType:"audioTrack"}),y&&(0,es.jsx)(BY,{participant:e,trackType:"screenShareAudioTrack"})]}),(0,es.jsx)(B0,{VideoPlaceholder:s,participant:e,trackType:t,refs:S,autoPlay:!0}),BZ(l)?(0,es.jsx)(l,{}):l]})})}),UX={starting:"stopped",playing:"stopped",stopped:"starting",uninitialized:"starting",error:"starting"},UQ={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}},U0="default",U1=(0,el.createContext)(null),U2=({children:e,initialAudioEnabled:t,initialVideoEnabled:r,initialVideoInputDeviceId:i=U0,initialAudioOutputDeviceId:a=U0,initialAudioInputDeviceId:o=U0})=>{let s=F2(),{useCallCallingState:l,useCallState:u,useCallSettings:d}=Cf(),p=l(),{localParticipant$:f}=u(),m=B1("camera"),g=B1("microphone"),[v,b]=(0,el.useState)(o),[y,_]=(0,el.useState)(a),[w,k]=(0,el.useState)(i),[x]=(0,el.useState)(()=>E1()),[E,F]=(0,el.useState)(!!t),[C,S]=(0,el.useState)(()=>r?UQ.starting:UQ.uninitialized),D=d();(0,el.useEffect)(()=>{if(!D)return;let{audio:e,video:i}=D;void 0===t&&e.mic_default_on&&F(e.mic_default_on),void 0===r&&i.camera_default_on&&S(UQ.starting)},[t,r,D]);let j=Ur({initialVideoMuted:!C.enabled,videoDeviceId:w}),T=B7({initialAudioMuted:!E,audioDeviceId:v}),O=(0,el.useCallback)(async()=>{p===q.IDLE||p===q.RINGING?F(!1):s?.stopPublish(xn.TrackType.AUDIO)},[s,p]),P=(0,el.useCallback)(async()=>{p===q.IDLE||p===q.RINGING?S(UQ.stopped):s?.stopPublish(xn.TrackType.VIDEO)},[s,p]),R=(0,el.useCallback)(()=>F(e=>!e),[]),M=(0,el.useCallback)(()=>S(e=>UQ[UX[e.type]]),[]),L=(0,el.useCallback)((e,t)=>{"videoinput"===e&&k(t),"audioinput"===e&&b(t),"audiooutput"===e&&_(t)},[]);return B8(()=>L("audioinput",U0),g,v),B9(()=>L("audiooutput",U0),g,y),B5(()=>L("videoinput",U0),m,w),(0,el.useEffect)(()=>{s&&p===q.JOINED&&s.setAudioOutputDevice(y)},[s,p,y]),(0,el.useEffect)(()=>{if(!f||!g)return;let e=Fl(f.pipe(ki(e=>e?.audioOutputDeviceId))).subscribe(async()=>{_(U0)});return()=>{e.unsubscribe()}},[g,f]),(0,es.jsx)(U1.Provider,{value:{disposeOfMediaStream:Fp,getAudioStream:Fn,getVideoStream:Fr,isAudioOutputChangeSupported:x,selectedAudioInputDeviceId:v,selectedAudioOutputDeviceId:y,selectedVideoDeviceId:w,switchDevice:L,initialAudioEnabled:E,initialVideoState:C,setInitialAudioEnabled:F,setInitialVideoState:S,toggleInitialAudioMuteState:R,toggleInitialVideoMuteState:M,publishAudioStream:T,publishVideoStream:j,stopPublishingAudio:O,stopPublishingVideo:P},children:e})},U3=()=>{let e=(0,el.useContext)(U1);return e||console.warn("Null MediaDevicesContext"),e},U4=({children:e,call:t,mediaDevicesProviderProps:r})=>(0,es.jsx)(F1,{call:t,children:(0,es.jsx)(U2,{...r,children:e})}),U6={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 }}"}},U5=e=>(0,es.jsx)(Cr,{translationsOverrides:U6,...e}),U8=e=>{(0,el.useEffect)(()=>{if(e)return e.setSortParticipantsBy(EG),()=>{U9(e)}},[e])},U9=e=>{let t=EQ.get(e.type);e.setSortParticipantsBy(t.options.sortParticipantsBy||E$)},U7=16,ze=({group:e,VideoPlaceholder:t,ParticipantViewUI:r})=>(0,es.jsx)("div",{className:a5("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,es.jsx)(UJ,{participant:e,muteAudio:!0,VideoPlaceholder:t,ParticipantViewUI:r},e.sessionId))}),zt=({groupSize:e=U7,excludeLocalParticipant:t=!1,pageArrowsVisible:r=!0,VideoPlaceholder:i,ParticipantViewUI:a=UG})=>{let[o,s]=(0,el.useState)(0),[l,u]=(0,el.useState)(null),d=F2(),{useParticipants:p,useRemoteParticipants:f}=Cf(),m=p(),g=f();U8(d),(0,el.useEffect)(()=>{if(!l||!d)return;let e=d.setViewport(l);return()=>e()},[l,d]);let v=(0,el.useMemo)(()=>BJ(t?g:m,e),[t,g,m,e]),b=v.length;(0,el.useEffect)(()=>{o>b-1&&s(Math.max(0,b-1))},[o,b]);let y=v[o];return d?(0,es.jsxs)("div",{className:"str-video__paginated-grid-layout__wrapper",ref:u,children:[(0,es.jsx)(BK,{participants:g}),(0,es.jsxs)("div",{className:"str-video__paginated-grid-layout",children:[r&&b>1&&(0,es.jsx)(Uv,{icon:"caret-left",disabled:0===o,onClick:()=>s(e=>Math.max(0,e-1))}),y&&(0,es.jsx)(ze,{group:v[o],VideoPlaceholder:i,ParticipantViewUI:a}),r&&b>1&&(0,es.jsx)(Uv,{disabled:o===b-1,icon:"caret-right",onClick:()=>s(e=>Math.min(b-1,e+1))})]})]}):null},[zn,zr,zi]="0.3.47".split(".");xn.SdkType.REACT;let za=((e,t=21)=>c8(e,t,c5))("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",10),zo=()=>{let e=Ci(),{channel:t}=pn(),r=(0,el.useCallback)(()=>{e?.call("default",function(e=12){return za(e)}()).getOrCreate({ring:!0,data:{custom:{channelCid:t.cid},members:Object.values(t.state.members).map(e=>({user_id:e.user_id}))}}).then(e=>{console.log("call",e)})},[e,t.cid,t.state.members]),i=!e;return es.jsx("button",{className:"rmc__button rmc__button--green",disabled:i,onClick:r,children:es.jsx("span",{children:"Start a call"})})},zs=()=>(0,es.jsxs)("svg",{"data-testid":"menu-icon",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg",children:[es.jsx("title",{children:"Menu"}),es.jsx("path",{d:"M0 88C0 74.75 10.75 64 24 64H424C437.3 64 448 74.75 448 88C448 101.3 437.3 112 424 112H24C10.75 112 0 101.3 0 88zM0 248C0 234.7 10.75 224 24 224H424C437.3 224 448 234.7 448 248C448 261.3 437.3 272 424 272H24C10.75 272 0 261.3 0 248zM424 432H24C10.75 432 0 421.3 0 408C0 394.7 10.75 384 24 384H424C437.3 384 448 394.7 448 408C448 421.3 437.3 432 424 432z",fill:"currentColor"})]}),zl=ec().memo(e=>{let{image:t,live:r,title:i}=e,{channel:a,watcher_count:o}=pn("ChannelHeader"),{openMobileNav:s}=a4("ChannelHeader"),{t:l}=aZ("ChannelHeader"),{displayImage:u,displayTitle:d}=cE({channel:a,overrideImage:t,overrideTitle:i}),{member_count:p,subtitle:f}=a?.data||{};return(0,es.jsxs)("div",{className:"str-chat__header-livestream str-chat__channel-header",children:[es.jsx("button",{"aria-label":"Menu",className:"str-chat__header-hamburger",onClick:s,children:es.jsx(zs,{})}),es.jsx(ok,{image:u,name:d,shape:"rounded",size:a?.type==="commerce"?60:40}),(0,es.jsxs)("div",{className:"str-chat__header-livestream-left str-chat__channel-header-end",children:[(0,es.jsxs)("p",{className:"str-chat__header-livestream-left--title str-chat__channel-header-title",children:[d," ",r&&es.jsx("span",{className:"str-chat__header-livestream-left--livelabel",children:l("live")})]}),!!f&&es.jsx("p",{className:"str-chat__header-livestream-left--subtitle",children:l("{{ subtitle }}",{subtitle:f})}),(0,es.jsxs)("p",{className:"str-chat__header-livestream-left--members str-chat__channel-header-info",children:[!r&&!!p&&p>0&&(0,es.jsxs)(es.Fragment,{children:[l("{{ memberCount }} members",{memberCount:p}),","," "]}),l("{{ watcherCount }} online",{watcherCount:o})]})]}),es.jsx(zo,{})]})}),zc=()=>(0,es.jsxs)(bL,{children:[(0,es.jsxs)(bA,{children:[es.jsx(zl,{}),es.jsx(ya,{}),es.jsx(bi,{focus:!0})]}),es.jsx(yD,{})]}),zu=(e,t)=>{let r=Date.now();return i=>{r+t-Date.now()<=0&&(e(i),r=Date.now())}},zd=e=>{let t=(0,el.useRef)(null);(0,el.useEffect)(()=>{if(!e)return;let r=r=>{if(!(0===r.button&&1===r.buttons))return;let{left:i,top:a}=e.getBoundingClientRect();t.current={x:r.clientX-i,y:r.clientY-a}},i=()=>{document.removeEventListener("mousemove",a),t.current=null},a=r=>{if(!t.current)return;let i=r.pageX-t.current.x,a=r.pageY-t.current.y;e.style.left=i+"px",e.style.top=a+"px"};return e.addEventListener("mousedown",r),document.addEventListener("mouseup",i),document.addEventListener("mousemove",zu(a,100)),()=>{e.removeEventListener("mousedown",r),document.removeEventListener("mouseup",i),document.removeEventListener("mousemove",a)}},[e])},zp=()=>{let e=F2(),{useCallCallingState:t,useCallCustomData:r}=Cf(),i=t(),a=r(),{channel:o}=a4(),[s,l]=(0,el.useState)(null);if(zd(s),!e)return null;let u=o?.cid===a.channelCid;return q.RINGING!==i||u?i===q.JOINED?(0,es.jsxs)("div",{className:"str-video__call-panel rmc__call-panel-wrapper",ref:l,children:[es.jsx(zt,{groupSize:4}),(0,es.jsxs)("div",{className:"rmc__active-call-controls",children:[es.jsx(UD,{}),es.jsx(Ux,{children:es.jsx(UR,{})}),es.jsx(UM,{}),es.jsx(UF,{})]})]}):[q.RINGING,q.JOINING].includes(i)?es.jsx("div",{className:"rmc__call-panel-wrapper",ref:l,children:es.jsx(UN,{})}):null:null},zf=()=>{let e=Cd();return es.jsx(es.Fragment,{children:e.map(e=>es.jsx(U4,{call:e,children:es.jsx(zp,{})},e.cid))})};function zh(){return es.jsx("form",{action:"/auth/sign-out",method:"post",className:"w-6 h-6 flex items-center",children:es.jsx("button",{children:es.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:es.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75"})})})})}function zm({user:e}){return(0,es.jsxs)("div",{className:"text-white flex items-center justify-between profile-row p-4",children:[es.jsx(ok,{image:`https://getstream.io/random_png/?id=${e?.id||"undefined"}&name=${e?.name||"undefined"}`,shape:"rounded",size:50}),(0,es.jsxs)("div",{className:"flex items-center",children:[es.jsx("button",{className:"w-6 h-6",children:es.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:es.jsx("path",{fillRule:"evenodd",d:"M12 2.25c-2.429 0-4.817.178-7.152.521C2.87 3.061 1.5 4.795 1.5 6.741v6.018c0 1.946 1.37 3.68 3.348 3.97.877.129 1.761.234 2.652.316V21a.75.75 0 001.28.53l4.184-4.183a.39.39 0 01.266-.112c2.006-.05 3.982-.22 5.922-.506 1.978-.29 3.348-2.023 3.348-3.97V6.741c0-1.947-1.37-3.68-3.348-3.97A49.145 49.145 0 0012 2.25zM8.25 8.625a1.125 1.125 0 100 2.25 1.125 1.125 0 000-2.25zm2.625 1.125a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875-1.125a1.125 1.125 0 100 2.25 1.125 1.125 0 000-2.25z",clipRule:"evenodd"})})}),es.jsx(zh,{})]})]})}function zg({user:e}){let[t,r]=(0,el.useState)(!0),i=r9.getInstance("5nz6vmfhyptn"),[a,o]=(0,el.useState)(),s={type:"messaging",members:{$in:[e.id]}},l=i.user;return(0,es.jsxs)(es.Fragment,{children:[t&&es.jsx("div",{className:"text-white w-full flex items-center justify-center",children:es.jsx("p",{children:"Loading…"})}),!t&&a&&es.jsx("div",{id:"root",children:es.jsx(a6,{client:i,children:es.jsx(U5,{client:a,children:(0,es.jsxs)(Uz,{as:"main",className:"main-container",children:[(0,es.jsxs)("div",{className:"channel-list-container",children:[es.jsx(zm,{user:l}),es.jsx(c2,{sort:{last_message_at:-1},filters:s,showChannelSearch:!0})]}),es.jsx(zc,{}),es.jsx(zf,{})]})})})})]})}r(86418),r(15044),r(6698)},56230:(e,t)=>{"use strict";t.Nm=t.Rq=void 0;var r=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|:)/gim,l=[".","/"];t.Rq="about:blank",t.Nm=function(e){if(!e)return t.Rq;var u=e.replace(o,"").replace(i,function(e,t){return String.fromCharCode(t)}).replace(a,"").replace(o,"").trim();if(!u)return t.Rq;if(l.indexOf(u[0])>-1)return u;var d=u.match(s);if(!d)return u;var p=d[0];return r.test(p)?t.Rq:u}},73930:(e,t,r)=>{e.exports={parallel:r(37638),serial:r(70545),serialOrdered:r(57779)}},89774:e=>{e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}};function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}},1281:(e,t,r)=>{var i=r(19336);e.exports=function(e){var t=!1;return i(function(){t=!0}),function(r,a){t?e(r,a):i(function(){e(r,a)})}}},19336:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},72534:(e,t,r)=>{var i=r(1281),a=r(89774);e.exports=function(e,t,r,o){var s,l,u=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[u]=(s=e[u],l=function(e,t){u in r.jobs&&(delete r.jobs[u],e?a(r):r.results[u]=t,o(e,r.results))},2==t.length?t(s,i(l)):t(s,u,i(l)))}},66807:e=>{e.exports=function(e,t){var r=!Array.isArray(e),i={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&i.keyedList.sort(r?t:function(r,i){return t(e[r],e[i])}),i}},19867:(e,t,r)=>{var i=r(89774),a=r(1281);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,i(this),a(e)(null,this.results))}},37638:(e,t,r)=>{var i=r(72534),a=r(66807),o=r(19867);e.exports=function(e,t,r){for(var s=a(e);s.index<(s.keyedList||e).length;)i(e,t,s,function(e,t){if(e){r(e,t);return}if(0===Object.keys(s.jobs).length){r(null,s.results);return}}),s.index++;return o.bind(s,r)}},70545:(e,t,r)=>{var i=r(57779);e.exports=function(e,t,r){return i(e,t,null,r)}},57779:(e,t,r)=>{var i=r(72534),a=r(66807),o=r(19867);function s(e,t){return et?1:0}e.exports=function(e,t,r,s){var l=a(e,r);return i(e,t,l,function r(a,o){if(a){s(a,o);return}if(l.index++,l.index<(l.keyedList||e).length){i(e,t,l,r);return}s(null,l.results)}),o.bind(l,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return -1*s(e,t)}},34191:(e,t)=>{"use strict";t.Z=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),i=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?i.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):a===t})}return!0}},714:(e,t)=>{"use strict";t.JQ=function(e){for(var t,i=e.length,a=i%3,o=[],s=0,l=i-a;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}(e,s,s+16383>l?l:s+16383));return 1===a?o.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===a&&o.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],i=[],a=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),o=0,s=a.length;o{"use strict";var i=r(14300).Buffer,a=r(14300).SlowBuffer;function o(e,t){if(!i.isBuffer(e)||!i.isBuffer(t)||e.length!==t.length)return!1;for(var r=0,a=0;a{var i=r(73837),a=r(12781).Stream,o=r(4130);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,i.inherits(s,a),s.create=function(e){var t=new this;for(var r in e=e||{})t[r]=e[r];return t},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,t){return a.prototype.pipe.call(this,e,t),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},s.prototype._realGetNext=function(){var e=this._streams.shift();if(void 0===e){this.end();return}if("function"!=typeof e){this._pipeNext(e);return}e((function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}).bind(this))},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e)){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}this.write(e),this._getNext()},s.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},88295:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",i="hour",a="week",o="month",s="quarter",l="year",u="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},g="en",v={};v[g]={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"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var b="$isDayjsObject",y=function(e){return e instanceof x||!(!e||!e[b])},_=function e(t,r,i){var a;if(!t)return g;if("string"==typeof t){var o=t.toLowerCase();v[o]&&(a=o),r&&(v[o]=r,a=o);var s=t.split("-");if(!a&&s.length>1)return e(s[0])}else{var l=t.name;v[l]=t,a=l}return!i&&a&&(g=a),a||!i&&g},w=function(e,t){if(y(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new x(r)},k={s:m,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+m(Math.floor(r/60),2,"0")+":"+m(r%60,2,"0")},m:function e(t,r){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=i(r(88295))},78630:function(e,t,r){var i;i=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=i(r(88295))},92562:function(e,t,r){var i;i=function(e){"use strict";var t="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),r="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),i="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),a="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function s(e,t,r){var i,a;return"m"===r?t?"минута":"минуту":e+" "+(i=+e,a=({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"})[r].split("_"),i%10==1&&i%100!=11?a[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?a[1]:a[2])}var l=function(e,i){return o.test(i)?t[e.month()]:r[e.month()]};l.s=r,l.f=t;var u=function(e,t){return o.test(t)?i[e.month()]:a[e.month()]};u.s=a,u.f=i;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:l,monthsShort:u,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:s,mm:s,h:"час",hh:s,d:"день",dd:s,M:"месяц",MM:s,y:"год",yy:s},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(d,null,!0),d},e.exports=i(r(88295))},1655:function(e,t,r){var i;i=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=i(r(88295))},74392:function(e){var t;t=function(){return function(e,t,r){var i="h:mm A",a={lastDay:"[Yesterday at] "+i,sameDay:"[Today at] "+i,nextDay:"[Tomorrow at] "+i,nextWeek:"dddd [at] "+i,lastWeek:"[Last] dddd [at] "+i,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var i=t||this.$locale().calendar||a,o=r(e||void 0).startOf("d"),s=this.diff(o,"d",!0),l="sameElse",u=s<-6?l:s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":l,d=i[u]||a[u];return"function"==typeof d?d.call(this,r()):this.format(d)}}},e.exports=t()},7846:function(e){var t;t=function(){return function(e,t,r){var i=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,r,i,o){var s=e.name?e:e.$locale(),l=a(s[t]),u=a(s[r]),d=l||u.map(function(e){return e.slice(0,i)});if(!o)return d;var p=s.weekStart;return d.map(function(e,t){return d[(t+(p||0))%7]})},s=function(){return r.Ls[r.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})},u=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 l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return u.bind(this)()},r.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},r.months=function(){return o(s(),"months")},r.monthsShort=function(){return o(s(),"monthsShort","months",3)},r.weekdays=function(e){return o(s(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return o(s(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return o(s(),"weekdaysMin","weekdays",2,e)}}},e.exports=t()},53616: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,r,i){var a=r.prototype,o=a.format;i.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var r,i,a=this.$locale().formats,s=(r=t,i=void 0===a?{}:a,r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,a){var o=a&&a.toUpperCase();return r||i[a]||e[a]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})}));return o.call(this,s)}}},e.exports=t()},62989:function(e){var t;t=function(){return function(e,t,r){e=e||{};var i=t.prototype,a={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,r,a){return i.fromToBase(e,t,r,a)}r.en.relativeTime=a,i.fromToBase=function(t,i,o,s,l){for(var u,d,p,f=o.$locale().relativeTime||a,m=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"}],g=m.length,v=0;v0,y<=b.r||!b.r){y<=1&&v>0&&(b=m[v-1]);var _=f[b.l];l&&(y=l(""+y)),d="string"==typeof _?_.replace("%d",y):_(y,i,b.l,p);break}}if(i)return d;var w=p?f.future:f.past;return"function"==typeof w?w(d):w.replace("%s",d)},i.to=function(e,t){return o(e,t,this,!0)},i.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?r.utc():r()};i.toNow=function(e){return this.to(s(this),e)},i.fromNow=function(e){return this.from(s(this),e)}}},e.exports=t()},69748: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(r,i,a){var o,s=function(e,r,i){void 0===i&&(i={});var a,o,s,l,u=new Date(e);return(void 0===(a=i)&&(a={}),(l=t[s=r+"|"+(o=a.timeZoneName||"short")])||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[s]=l),l).formatToParts(u)},l=function(t,r){for(var i=s(t,r),o=[],l=0;l=0&&(o[f]=parseInt(p,10))}var m=o[3],g=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===m?0:m)+":"+o[4]+":"+o[5]+":000",v=+t;return(a.utc(g).valueOf()-(v-=v%1e3))/6e4},u=i.prototype;u.tz=function(e,t){void 0===e&&(e=o);var r=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),l=Math.round((i-new Date(s))/1e3/60),u=a(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(-(15*Math.round(i.getTimezoneOffset()/15))-l,!0);if(t){var d=u.utcOffset();u=u.add(r-d,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||a.tz.guess(),r=s(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var d=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return d.call(this,e,t);var r=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return d.call(r,e,t).tz(this.$x.$timezone,!0)},a.tz=function(e,t,r){var i=r&&t,s=r||t||o,u=l(+a(),s);if("string"!=typeof e)return a(e).tz(s);var d=function(e,t,r){var i=e-60*t*1e3,a=l(i,r);if(t===a)return[i,t];var o=l(i-=60*(a-t)*1e3,r);return a===o?[i,a]:[e-60*Math.min(a,o)*1e3,Math.max(a,o)]}(a.utc(e,i).valueOf(),u,s),p=d[0],f=d[1],m=a(p).utcOffset(f);return m.$x.$timezone=s,m},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(e){o=e}}},e.exports=t()},89047:function(e){var t;t=function(){return function(e,t,r){r.updateLocale=function(e,t){var i=r.Ls[e];if(i)return(t?Object.keys(t):[]).forEach(function(e){i[e]=t[e]}),i}}},e.exports=t()},8534:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(i,a,o){var s=a.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},s.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var l=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),l.call(this,e)};var u=s.init;s.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 u.call(this)};var d=s.utcOffset;s.utcOffset=function(i,a){var o=this.$utils().u;if(o(i))return this.$u?0:o(this.$offset)?d.call(this):this.$offset;if("string"==typeof i&&null===(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var a=(""+i[0]).match(r)||["-",0,0],o=a[0],s=60*+a[1]+ +a[2];return 0===s?0:"+"===o?s:-s}(i)))return this;var s=16>=Math.abs(i)?60*i:i,l=this;if(a)return l.$offset=s,l.$u=0===i,l;if(0!==i){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(l=this.local().add(s+u,e)).$offset=s,l.$x.$localOffset=u}else l=this.utc();return l};var p=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var m=s.diff;s.diff=function(e,t,r){if(e&&this.$u===e.$u)return m.call(this,e,t,r);var i=this.local(),a=o(e).local();return m.call(i,a,t,r)}}},e.exports=t()},5719:e=>{function t(e,t,r,i){return Math.round(e/r)+" "+i+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var i,a,o=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===o&&isFinite(e))return r.long?(i=Math.abs(e))>=864e5?t(e,i,864e5,"day"):i>=36e5?t(e,i,36e5,"hour"):i>=6e4?t(e,i,6e4,"minute"):i>=1e3?t(e,i,1e3,"second"):e+" ms":(a=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":a>=36e5?Math.round(e/36e5)+"h":a>=6e4?Math.round(e/6e4)+"m":a>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},39662:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))}),t.splice(a,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(47507)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},47507:(e,t,r)=>{e.exports=function(e){function t(e){let r,a,o;let s=null;function l(...e){if(!l.enabled)return;let i=Number(new Date),a=i-(r||i);l.diff=a,l.prev=r,l.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";o++;let a=t.formatters[i];if("function"==typeof a){let t=e[o];r=a.call(l,t),e.splice(o,1),o--}return r}),t.formatArgs.call(l,e),(l.log||t.log).apply(l,e)}return l.namespace=e,l.useColors=t.useColors(),l.color=t.selectColor(e),l.extend=i,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(l),l}function i(e,r){let i=t(this.namespace+(void 0===r?":":r)+e);return i.log=this.log,i}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let i=("string"==typeof e?e:"").split(/[\s,]+/),a=i.length;for(r=0;r{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"undefined"==typeof process||"renderer"===process.type||process.__nwjs?e.exports=r(39662):e.exports=r(56027)},56027:(e,t,r)=>{let i=r(76224),a=r(73837);t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let i=0;i{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r(2362);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[r]=i,e},{}),e.exports=r(47507)(t);let{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},10909: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!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function a(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,r,u){(u=u||{}).arrayMerge=u.arrayMerge||a,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=i;var d,p,f=Array.isArray(r);return f!==Array.isArray(e)?i(r,u):f?u.arrayMerge(e,r,u):(p={},(d=u).isMergeableObject(e)&&o(e).forEach(function(t){p[t]=i(e[t],d)}),o(r).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(e,t)&&d.isMergeableObject(r[t])?p[t]=(function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l})(t,d)(e[t],r[t],d):p[t]=i(r[t],d))}),p)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})},e.exports=l},4130:(e,t,r)=>{var i=r(12781).Stream,a=r(73837);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,a.inherits(o,i),o.create=function(e,t){var r=new this;for(var i in t=t||{})r[i]=t[i];r.source=e;var a=e.emit;return e.emit=function(){return r._handleEmit(arguments),a.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(e){this.emit.apply(this,e)}).bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}"data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(e))}}},3164:(e,t,r)=>{"use strict";var i=r(90892).Buffer,a=r(21887);function o(e){if(i.isBuffer(e))return e;if("string"==typeof e)return i.from(e,"base64");throw TypeError("ECDSA signature must be a Base64 string or a Buffer")}function s(e,t,r){for(var i=0;t+i=128&&--i,i}e.exports={derToJose:function(e,t){e=o(e);var r=a(t),s=r+1,l=e.length,u=0;if(48!==e[u++])throw Error('Could not find expected "seq"');var d=e[u++];if(129===d&&(d=e[u++]),l-u{"use strict";function t(e){return(e/8|0)+(e%8==0?0:1)}var r={ES256:t(256),ES384:t(384),ES512:t(521)};e.exports=function(e){var t=r[e];if(t)return t;throw Error('Unknown algorithm "'+e+'"')}},45718: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}},71771:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var i,a=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!o)return!1;for(i in e);return void 0===i||t.call(e,i)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(a)return a(e,r).value}return e[r]};e.exports=function e(){var t,r,i,a,d,p,f=arguments[0],m=1,g=arguments.length,v=!1;for("boolean"==typeof f&&(v=f,f=arguments[1]||{},m=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});m{var i;e.exports=function(){if(!i){try{i=r(8589)("follow-redirects")}catch(e){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},19831:(e,t,r)=>{var i=r(57310),a=i.URL,o=r(13685),s=r(95687),l=r(12781).Writable,u=r(39491),d=r(59057),p=!1;try{u(new a)}catch(e){p="ERR_INVALID_URL"===e.code}var f=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],m=["abort","aborted","connect","error","socket","timeout"],g=Object.create(null);m.forEach(function(e){g[e]=function(t,r,i){this._redirectable.emit(e,t,r,i)}});var v=T("ERR_INVALID_URL","Invalid URL",TypeError),b=T("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),y=T("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",b),_=T("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),w=T("ERR_STREAM_WRITE_AFTER_END","write after end"),k=l.prototype.destroy||F;function x(e,t){l.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof b?e:new b({cause:e}))}},this._performRequest()}function E(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(i){var o=i+":",s=r[o]=e[i],l=t[i]=Object.create(s);Object.defineProperties(l,{request:{value:function(e,i,s){var l;return(l=e,a&&l instanceof a)?e=D(e):P(e)?e=D(C(e)):(s=i,i=S(e),e={protocol:o}),R(i)&&(s=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=r,P(i.host)||P(i.hostname)||(i.hostname="::1"),u.equal(i.protocol,o,"protocol mismatch"),d("options",i),new x(i,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var i=l.request(e,t,r);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})}),t}function F(){}function C(e){var t;if(p)t=new a(e);else if(!P((t=S(i.parse(e))).protocol))throw new v({input:e});return t}function S(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new v({input:e.href||e});return e}function D(e,t){var r=t||{};for(var i of f)r[i]=e[i];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function j(e,t){var r;for(var i in t)e.test(i)&&(r=t[i],delete t[i]);return null==r?void 0:String(r).trim()}function T(e,t,r){function i(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(r||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function O(e,t){for(var r of m)e.removeListener(r,g[r]);e.on("error",F),e.destroy(t)}function P(e){return"string"==typeof e||e instanceof String}function R(e){return"function"==typeof e}x.prototype=Object.create(l.prototype),x.prototype.abort=function(){O(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},x.prototype.destroy=function(e){return O(this._currentRequest,e),k.call(this,e),this},x.prototype.write=function(e,t,r){if(this._ending)throw new w;if(!P(e)&&!("object"==typeof e&&"length"in e))throw TypeError("data should be a string, Buffer or Uint8Array");if(R(t)&&(r=t,t=null),0===e.length){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new _),this.abort())},x.prototype.end=function(e,t,r){if(R(e)?(r=e,e=t=null):R(t)&&(r=t,t=null),e){var i=this,a=this._currentRequest;this.write(e,t,function(){i._ended=!0,a.end(null,null,r)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},x.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},x.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},x.prototype.setTimeout=function(e,t){var r=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),i(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),r.removeListener("close",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){x.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(x.prototype,e,{get:function(){return this._currentRequest[e]}})}),x.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},x.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(a._redirectable=this,m))a.on(o,g[o]);if(this._currentUrl=/^\//.test(this._options.path)?i.format(this._options):this._options.path,this._isRedirect){var s=0,l=this,u=this._requestBodyBuffers;!function e(t){if(a===l._currentRequest){if(t)l.emit("error",t);else if(s=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(O(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new y;var f=this._options.beforeRedirect;f&&(o=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var m=this._options.method;(301!==s&&302!==s||"POST"!==this._options.method)&&(303!==s||/^(?:GET|HEAD)$/.test(this._options.method))||(this._options.method="GET",this._requestBodyBuffers=[],j(/^content-/i,this._options.headers));var g=j(/^host$/i,this._options.headers),v=C(this._currentUrl),b=g||v.host,_=/^\w+:/.test(l)?this._currentUrl:i.format(Object.assign(v,{host:b})),w=p?new a(l,_):C(i.resolve(_,l));if(d("redirecting to",w.href),this._isRedirect=!0,D(w,this._options),(w.protocol===v.protocol||"https:"===w.protocol)&&(w.host===b||(u(P(t=w.host)&&P(b)),(r=t.length-b.length-1)>0&&"."===t[r]&&t.endsWith(b)))||j(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),R(f)){var k={headers:e.headers,statusCode:s},x={url:_,method:m,headers:o};f(this._options,k,x),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=E({http:o,https:s}),e.exports.wrap=E},54127:(e,t,r)=>{var i=r(38726),a=r(73837),o=r(71017),s=r(13685),l=r(95687),u=r(57310).parse,d=r(57147),p=r(12781).Stream,f=r(70045),m=r(73930),g=r(6578);function v(e){if(!(this instanceof v))return new v(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[t]=e[t]}e.exports=v,a.inherits(v,i),v.LINE_BREAK="\r\n",v.DEFAULT_CONTENT_TYPE="application/octet-stream",v.prototype.append=function(e,t,r){"string"==typeof(r=r||{})&&(r={filename:r});var o=i.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),a.isArray(t)){this._error(Error("Arrays are not supported."));return}var s=this._multiPartHeader(e,t,r),l=this._multiPartFooter();o(s),o(t),o(l),this._trackLength(s,t,r)},v.prototype._trackLength=function(e,t,r){var i=0;null!=r.knownLength?i+=+r.knownLength:Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+v.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof p)&&(r.knownLength||this._valuesToMeasure.push(t))},v.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?void 0!=e.end&&e.end!=1/0&&void 0!=e.start?t(null,e.end+1-(e.start?e.start:0)):d.stat(e.path,function(r,i){if(r){t(r);return}t(null,i.size-(e.start?e.start:0))}):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",function(r){e.pause(),t(null,+r.headers["content-length"])}),e.resume()):t("Unknown stream")},v.prototype._multiPartHeader=function(e,t,r){if("string"==typeof r.header)return r.header;var i,a=this._getContentDisposition(t,r),o=this._getContentType(t,r),s="",l={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(o||[])};for(var u in"object"==typeof r.header&&g(l,r.header),l)if(l.hasOwnProperty(u)){if(null==(i=l[u]))continue;Array.isArray(i)||(i=[i]),i.length&&(s+=u+": "+i.join("; ")+v.LINE_BREAK)}return"--"+this.getBoundary()+v.LINE_BREAK+s+v.LINE_BREAK},v.prototype._getContentDisposition=function(e,t){var r,i;return"string"==typeof t.filepath?r=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?r=o.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(r=o.basename(e.client._httpMessage.path||"")),r&&(i='filename="'+r+'"'),i},v.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e.name&&(r=f.lookup(e.name)),!r&&e.path&&(r=f.lookup(e.path)),!r&&e.readable&&e.hasOwnProperty("httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=f.lookup(t.filepath||t.filename)),r||"object"!=typeof e||(r=v.DEFAULT_CONTENT_TYPE),r},v.prototype._multiPartFooter=function(){return(function(e){var t=v.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}).bind(this)},v.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+v.LINE_BREAK},v.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(r[t.toLowerCase()]=e[t]);return r},v.prototype.setBoundary=function(e){this._boundary=e},v.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},v.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,i=this._streams.length;r{e.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}},6007:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g;function d(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var p=1,f=1;function m(e){var t=e.match(r);t&&(p+=t.length);var i=e.lastIndexOf("\n");f=~i?e.length-i:f+e.length}function g(){var e={line:p,column:f};return function(t){return t.position=new v(e),_(i),t}}function v(e){this.start=e,this.end={line:p,column:f},this.source=u.source}v.prototype.content=e;var b=[];function y(t){var r=Error(u.source+":"+p+":"+f+": "+t);if(r.reason=t,r.filename=u.source,r.line=p,r.column=f,r.source=e,u.silent)b.push(r);else throw r}function _(t){var r=t.exec(e);if(r){var i=r[0];return m(i),e=e.slice(i.length),r}}function w(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return y("End of comment missing");var i=e.slice(2,r-2);return f+=2,m(i),e=e.slice(r),f+=2,t({type:"comment",comment:i})}}return _(i),function(){var e,r=[];for(w(r);e=function(){var e=g(),r=_(a);if(r){if(k(),!_(o))return y("property missing ':'");var i=_(s),u=e({type:"declaration",property:d(r[0].replace(t,"")),value:i?d(i[0].replace(t,"")):""});return _(l),u}}();)!1!==e&&(r.push(e),w(r));return r}()}},98238:e=>{/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},73512:(e,t,r)=>{"use strict";e.exports=r(13154)},85911:(e,t,r)=>{var i=r(8287);e.exports=function(e,t){t=t||{};var r=i.decode(e,t);if(!r)return null;var a=r.payload;if("string"==typeof a)try{var o=JSON.parse(a);null!==o&&"object"==typeof o&&(a=o)}catch(e){}return!0===t.complete?{header:r.header,payload:a,signature:r.signature}:a}},98327:(e,t,r)=>{e.exports={decode:r(85911),verify:r(17910),sign:r(85917),JsonWebTokenError:r(69062),NotBeforeError:r(13020),TokenExpiredError:r(82504)}},69062:e=>{var t=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,e.exports=t},13020:(e,t,r)=>{var i=r(69062),a=function(e,t){i.call(this,e),this.name="NotBeforeError",this.date=t};a.prototype=Object.create(i.prototype),a.prototype.constructor=a,e.exports=a},82504:(e,t,r)=>{var i=r(69062),a=function(e,t){i.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};a.prototype=Object.create(i.prototype),a.prototype.constructor=a,e.exports=a},2511:(e,t,r)=>{let i=r(86315);e.exports=i.satisfies(process.version,">=15.7.0")},20499:(e,t,r)=>{var i=r(86315);e.exports=i.satisfies(process.version,"^6.12.0 || >=8.0.0")},80980:(e,t,r)=>{let i=r(86315);e.exports=i.satisfies(process.version,">=16.9.0")},59477:(e,t,r)=>{var i=r(87914);e.exports=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var a=i(e);if(void 0===a)return;return Math.floor(r+a/1e3)}if("number"==typeof e)return r+e}},40451:(e,t,r)=>{let i=r(2511),a=r(80980),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},s={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;let r=t.asymmetricKeyType;if(!r)return;let l=o[r];if(!l)throw Error(`Unknown key type "${r}".`);if(!l.includes(e))throw Error(`"alg" parameter for "${r}" key type must be one of: ${l.join(", ")}.`);if(i)switch(r){case"ec":let u=t.asymmetricKeyDetails.namedCurve,d=s[e];if(u!==d)throw Error(`"alg" parameter "${e}" requires curve "${d}".`);break;case"rsa-pss":if(a){let r=parseInt(e.slice(-3),10),{hashAlgorithm:i,mgf1HashAlgorithm:a,saltLength:o}=t.asymmetricKeyDetails;if(i!==`sha${r}`||a!==i)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},85917:(e,t,r)=>{let i=r(59477),a=r(20499),o=r(40451),s=r(8287),l=r(48905),u=r(69006),d=r(47139),p=r(32904),f=r(8247),m=r(82743),g=r(27599),{KeyObject:v,createSecretKey:b,createPrivateKey:y}=r(6113),_=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];a&&_.splice(3,0,"PS256","PS384","PS512");let w={expiresIn:{isValid:function(e){return d(e)||m(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return d(e)||m(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return m(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:l.bind(null,_),message:'"algorithm" must be a valid string enum value'},header:{isValid:f,message:'"header" must be an object'},encoding:{isValid:m,message:'"encoding" must be a string'},issuer:{isValid:m,message:'"issuer" must be a string'},subject:{isValid:m,message:'"subject" must be a string'},jwtid:{isValid:m,message:'"jwtid" must be a string'},noTimestamp:{isValid:u,message:'"noTimestamp" must be a boolean'},keyid:{isValid:m,message:'"keyid" must be a string'},mutatePayload:{isValid:u,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:u,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:u,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},k={iat:{isValid:p,message:'"iat" should be a number of seconds'},exp:{isValid:p,message:'"exp" should be a number of seconds'},nbf:{isValid:p,message:'"nbf" should be a number of seconds'}};function x(e,t,r,i){if(!f(r))throw Error('Expected "'+i+'" to be a plain object.');Object.keys(r).forEach(function(a){let o=e[a];if(!o){if(!t)throw Error('"'+a+'" is not allowed in "'+i+'"');return}if(!o.isValid(r[a]))throw Error(o.message)})}let E={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},F=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,t,r,a){var l,u;"function"==typeof r?(a=r,r={}):r=r||{};let d="object"==typeof e&&!Buffer.isBuffer(e),p=Object.assign({alg:r.algorithm||"HS256",typ:d?"JWT":void 0,kid:r.keyid},r.header);function f(e){if(a)return a(e);throw e}if(!t&&"none"!==r.algorithm)return f(Error("secretOrPrivateKey must have a value"));if(null!=t&&!(t instanceof v))try{t=y(t)}catch(e){try{t=b("string"==typeof t?Buffer.from(t):t)}catch(e){return f(Error("secretOrPrivateKey is not valid key material"))}}if(p.alg.startsWith("HS")&&"secret"!==t.type)return f(Error(`secretOrPrivateKey must be a symmetric key when using ${p.alg}`));if(/^(?:RS|PS|ES)/.test(p.alg)){if("private"!==t.type)return f(Error(`secretOrPrivateKey must be an asymmetric key when using ${p.alg}`));if(!r.allowInsecureKeySizes&&!p.alg.startsWith("ES")&&void 0!==t.asymmetricKeyDetails&&t.asymmetricKeyDetails.modulusLength<2048)return f(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${p.alg}`))}if(void 0===e)return f(Error("payload is required"));if(d){try{l=e,x(k,!0,l,"payload")}catch(e){return f(e)}r.mutatePayload||(e=Object.assign({},e))}else{let t=F.filter(function(e){return void 0!==r[e]});if(t.length>0)return f(Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return f(Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return f(Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{u=r,x(w,!1,u,"options")}catch(e){return f(e)}if(!r.allowInvalidAsymmetricKeyTypes)try{o(p.alg,t)}catch(e){return f(e)}let m=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:d&&(e.iat=m),void 0!==r.notBefore){try{e.nbf=i(r.notBefore,m)}catch(e){return f(e)}if(void 0===e.nbf)return f(Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=i(r.expiresIn,m)}catch(e){return f(e)}if(void 0===e.exp)return f(Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(E).forEach(function(t){let i=E[t];if(void 0!==r[t]){if(void 0!==e[i])return f(Error('Bad "options.'+t+'" option. The payload already has an "'+i+'" property.'));e[i]=r[t]}});let _=r.encoding||"utf8";if("function"==typeof a)a=a&&g(a),s.createSign({header:p,privateKey:t,payload:e,encoding:_}).once("error",a).once("done",function(e){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(p.alg)&&e.length<256)return a(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${p.alg}`));a(null,e)});else{let i=s.sign({header:p,payload:e,secret:t,encoding:_});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(p.alg)&&i.length<256)throw Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${p.alg}`);return i}}},17910:(e,t,r)=>{let i=r(69062),a=r(13020),o=r(82504),s=r(85911),l=r(59477),u=r(40451),d=r(20499),p=r(8287),{KeyObject:f,createSecretKey:m,createPublicKey:g}=r(6113),v=["RS256","RS384","RS512"],b=["ES256","ES384","ES512"],y=["RS256","RS384","RS512"],_=["HS256","HS384","HS512"];d&&(v.splice(v.length,0,"PS256","PS384","PS512"),y.splice(y.length,0,"PS256","PS384","PS512")),e.exports=function(e,t,r,d){let w,k,x;if("function"!=typeof r||d||(d=r,r={}),r||(r={}),r=Object.assign({},r),w=d||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return w(new i("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return w(new i("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return w(new i("allowInvalidAsymmetricKeyTypes must be a boolean"));let E=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return w(new i("jwt must be provided"));if("string"!=typeof e)return w(new i("jwt must be a string"));let F=e.split(".");if(3!==F.length)return w(new i("jwt malformed"));try{k=s(e,{complete:!0})}catch(e){return w(e)}if(!k)return w(new i("invalid token"));let C=k.header;if("function"==typeof t){if(!d)return w(new i("verify must be called asynchronous if secret or public key is provided as a callback"));x=t}else x=function(e,r){return r(null,t)};return x(C,function(t,s){let d;if(t)return w(new i("error in secret or public key callback: "+t.message));let x=""!==F[2].trim();if(!x&&s)return w(new i("jwt signature is required"));if(x&&!s)return w(new i("secret or public key must be provided"));if(!x&&!r.algorithms)return w(new i('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=s&&!(s instanceof f))try{s=g(s)}catch(e){try{s=m("string"==typeof s?Buffer.from(s):s)}catch(e){return w(new i("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===s.type?r.algorithms=_:["rsa","rsa-pss"].includes(s.asymmetricKeyType)?r.algorithms=y:"ec"===s.asymmetricKeyType?r.algorithms=b:r.algorithms=v),-1===r.algorithms.indexOf(k.header.alg))return w(new i("invalid algorithm"));if(C.alg.startsWith("HS")&&"secret"!==s.type)return w(new i(`secretOrPublicKey must be a symmetric key when using ${C.alg}`));if(/^(?:RS|PS|ES)/.test(C.alg)&&"public"!==s.type)return w(new i(`secretOrPublicKey must be an asymmetric key when using ${C.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{u(C.alg,s)}catch(e){return w(e)}try{d=p.verify(e,k.header.alg,s)}catch(e){return w(e)}if(!d)return w(new i("invalid signature"));let S=k.payload;if(void 0!==S.nbf&&!r.ignoreNotBefore){if("number"!=typeof S.nbf)return w(new i("invalid nbf value"));if(S.nbf>E+(r.clockTolerance||0))return w(new a("jwt not active",new Date(1e3*S.nbf)))}if(void 0!==S.exp&&!r.ignoreExpiration){if("number"!=typeof S.exp)return w(new i("invalid exp value"));if(E>=S.exp+(r.clockTolerance||0))return w(new o("jwt expired",new Date(1e3*S.exp)))}if(r.audience){let e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(S.aud)?S.aud:[S.aud]).some(function(t){return e.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return w(new i("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&S.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(S.iss)))return w(new i("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&S.sub!==r.subject)return w(new i("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&S.jti!==r.jwtid)return w(new i("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&S.nonce!==r.nonce)return w(new i("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof S.iat)return w(new i("iat required when maxAge is specified"));let e=l(r.maxAge,S.iat);if(void 0===e)return w(new i('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(E>=e+(r.clockTolerance||0))return w(new o("maxAge exceeded",new Date(1e3*e)))}return!0===r.complete?w(null,{header:C,payload:S,signature:k.signature}):w(null,S)})}},95350:(e,t,r)=>{var i=r(29916),a=r(90892).Buffer,o=r(6113),s=r(3164),l=r(73837),u="secret must be a string or buffer",d="key must be a string or a buffer",p="function"==typeof o.createPublicKey;function f(e){if(!a.isBuffer(e)&&"string"!=typeof e&&(!p||"object"!=typeof e||"string"!=typeof e.type||"string"!=typeof e.asymmetricKeyType||"function"!=typeof e.export))throw b(d)}function m(e){if(!a.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw b("key must be a string, a buffer or an object")}function g(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function v(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r{var i=r(99505),a=r(55850);t.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],t.sign=i.sign,t.verify=a.verify,t.decode=a.decode,t.isValid=a.isValid,t.createSign=function(e){return new i(e)},t.createVerify=function(e){return new a(e)}},34630:(e,t,r)=>{var i=r(90892).Buffer,a=r(12781);function o(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=i.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=i.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,process.nextTick((function(){this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)),this;throw TypeError("Unexpected data type ("+typeof e+")")}r(73837).inherits(o,a),o.prototype.write=function(e){this.buffer=i.concat([this.buffer,i.from(e)]),this.emit("data",e)},o.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},e.exports=o},99505:(e,t,r)=>{var i=r(90892).Buffer,a=r(34630),o=r(95350),s=r(12781),l=r(60904),u=r(73837);function d(e,t){return i.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function p(e){var t,r,i,a=e.header,s=e.payload,p=e.secret||e.privateKey,f=e.encoding,m=o(a.alg),g=(t=(t=f)||"utf8",r=d(l(a),"binary"),i=d(l(s),t),u.format("%s.%s",r,i)),v=m.sign(g,p);return u.format("%s.%s",g,v)}function f(e){var t=new a(e.secret||e.privateKey||e.key);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=t,this.payload=new a(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}u.inherits(f,s),f.prototype.sign=function(){try{var e=p({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},f.sign=p,e.exports=f},60904:(e,t,r)=>{var i=r(14300).Buffer;e.exports=function(e){return"string"==typeof e?e:"number"==typeof e||i.isBuffer(e)?e.toString():JSON.stringify(e)}},55850:(e,t,r)=>{var i=r(90892).Buffer,a=r(34630),o=r(95350),s=r(12781),l=r(60904),u=r(73837),d=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function p(e){var t=e.split(".",1)[0];return function(e){if("[object Object]"===Object.prototype.toString.call(e))return e;try{return JSON.parse(e)}catch(e){return}}(i.from(t,"base64").toString("binary"))}function f(e){return e.split(".")[2]}function m(e){return d.test(e)&&!!p(e)}function g(e,t,r){if(!t){var i=Error("Missing algorithm parameter for jws.verify");throw i.code="MISSING_ALGORITHM",i}var a=f(e=l(e)),s=e.split(".",2).join(".");return o(t).verify(s,a,r)}function v(e,t){if(t=t||{},!m(e=l(e)))return null;var r,a,o=p(e);if(!o)return null;var s=(r=r||"utf8",a=e.split(".")[1],i.from(a,"base64").toString(r));return("JWT"===o.typ||t.json)&&(s=JSON.parse(s,t.encoding)),{header:o,payload:s,signature:f(e)}}function b(e){var t=new a((e=e||{}).secret||e.publicKey||e.key);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=t,this.signature=new a(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}u.inherits(b,s),b.prototype.verify=function(){try{var e=g(this.signature.buffer,this.algorithm,this.key.buffer),t=v(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},b.decode=v,b.isValid=m,b.verify=g,e.exports=b},20812:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,r,i){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof r&&(i=r,r={}),r=r||{},i=i||function(){},o.type=r.type||"text/javascript",o.charset=r.charset||"utf8",o.async=!("async"in r)||!!r.async,o.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(o,r.attrs),r.text&&(o.text=""+r.text),("onload"in o?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(o,i),o.onload||t(o,i),a.appendChild(o)}},97964:e=>{var t=0/0,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,d=l||u||Function("return this")(),p=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return d.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if("symbol"==typeof(l=e)||l&&"object"==typeof l&&"[object Symbol]"==p.call(l))return t;if(v(e)){var l,u="function"==typeof e.valueOf?e.valueOf():e;e=v(u)?u+"":u}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var d=a.test(e);return d||o.test(e)?s(e.slice(2),d?2:8):i.test(e)?t:+e}e.exports=function(e,t,r){var i,a,o,s,l,u,d=0,p=!1,y=!1,_=!0;if("function"!=typeof e)throw TypeError("Expected a function");function w(t){var r=i,o=a;return i=a=void 0,d=t,s=e.apply(o,r)}function k(e){var r=e-u,i=e-d;return void 0===u||r>=t||r<0||y&&i>=o}function x(){var e,r,i,a=g();if(k(a))return E(a);l=setTimeout(x,(e=a-u,r=a-d,i=t-e,y?m(i,o-r):i))}function E(e){return(l=void 0,_&&i)?w(e):(i=a=void 0,s)}function F(){var e,r=g(),o=k(r);if(i=arguments,a=this,u=r,o){if(void 0===l)return d=e=u,l=setTimeout(x,t),p?w(e):s;if(y)return l=setTimeout(x,t),w(u)}return void 0===l&&(l=setTimeout(x,t)),s}return t=b(t)||0,v(r)&&(p=!!r.leading,o=(y="maxWait"in r)?f(b(r.maxWait)||0,t):o,_="trailing"in r?!!r.trailing:_),F.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=u=a=l=void 0},F.flush=function(){return void 0===l?s:E(g())},F}},48905:e=>{var t,r,i=1/0,a=0/0,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,p=parseInt;function f(e){return e!=e}var m=Object.prototype,g=m.hasOwnProperty,v=m.toString,b=m.propertyIsEnumerable,y=(t=Object.keys,r=Object,function(e){return t(r(e))}),_=Math.max,w=Array.isArray;function k(e){var t,r;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991&&!("[object Function]"==(r=x(e)?v.call(e):"")||"[object GeneratorFunction]"==r)}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}e.exports=function(e,t,r,F){e=k(e)?e:(C=e)?function(e,t){for(var r=-1,i=e?e.length:0,a=Array(i);++r-1&&s%1==0&&s-1:!!O&&function(e,t,r){if(t!=t)return function(e,t,r,i){for(var a=e.length,o=r+-1;++o-1}},69006:e=>{var t=Object.prototype.toString;e.exports=function(e){return!0===e||!1===e||!!e&&"object"==typeof e&&"[object Boolean]"==t.call(e)}},47139:e=>{var t=1/0,r=0/0,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u=Object.prototype.toString;function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){var p,f,m;return"number"==typeof e&&e==(m=(f=(p=e)?(p=function(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==u.call(t))return r;if(d(e)){var t,p="function"==typeof e.valueOf?e.valueOf():e;e=d(p)?p+"":p}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var f=o.test(e);return f||s.test(e)?l(e.slice(2),f?2:8):a.test(e)?r:+e}(p))===t||p===-t?(p<0?-1:1)*17976931348623157e292:p==p?p:0:0===p?p:0)%1,f==f?m?f-m:f:0)}},32904:e=>{var t=Object.prototype.toString;e.exports=function(e){return"number"==typeof e||!!e&&"object"==typeof e&&"[object Number]"==t.call(e)}},8247:e=>{var t,r,i=Object.prototype,a=Function.prototype.toString,o=i.hasOwnProperty,s=a.call(Object),l=i.toString,u=(t=Object.getPrototypeOf,r=Object,function(e){return t(r(e))});e.exports=function(e){if(!(e&&"object"==typeof e)||"[object Object]"!=l.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=u(e);if(null===t)return!0;var r=o.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==s}},82743:e=>{var t=Object.prototype.toString,r=Array.isArray;e.exports=function(e){var i;return"string"==typeof e||!r(e)&&!!(i=e)&&"object"==typeof i&&"[object String]"==t.call(e)}},27599:e=>{var t=1/0,r=0/0,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u=Object.prototype.toString;function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return function(e,p){var f,m,g,v;if("function"!=typeof p)throw TypeError("Expected a function");return v=(g=(m=e)?(m=function(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==u.call(t))return r;if(d(e)){var t,p="function"==typeof e.valueOf?e.valueOf():e;e=d(p)?p+"":p}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var f=o.test(e);return f||s.test(e)?l(e.slice(2),f?2:8):a.test(e)?r:+e}(m))===t||m===-t?(m<0?-1:1)*17976931348623157e292:m==m?m:0:0===m?m:0)%1,e=g==g?v?g-v:g:0,function(){return--e>0&&(f=p.apply(this,arguments)),e<=1&&(p=void 0),f}}(2,e)}},91594:e=>{var t="Expected a function",r=0/0,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,p=u||d||Function("return this")(),f=Object.prototype.toString,m=Math.max,g=Math.min,v=function(){return p.Date.now()};function b(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]"==f.call(t))return r;if(b(e)){var t,u="function"==typeof e.valueOf?e.valueOf():e;e=b(u)?u+"":u}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var d=o.test(e);return d||s.test(e)?l(e.slice(2),d?2:8):a.test(e)?r:+e}e.exports=function(e,r,i){var a=!0,o=!0;if("function"!=typeof e)throw TypeError(t);return b(i)&&(a="leading"in i?!!i.leading:a,o="trailing"in i?!!i.trailing:o),function(e,r,i){var a,o,s,l,u,d,p=0,f=!1,_=!1,w=!0;if("function"!=typeof e)throw TypeError(t);function k(t){var r=a,i=o;return a=o=void 0,p=t,l=e.apply(i,r)}function x(e){var t=e-d,i=e-p;return void 0===d||t>=r||t<0||_&&i>=s}function E(){var e,t,i,a=v();if(x(a))return F(a);u=setTimeout(E,(e=a-d,t=a-p,i=r-e,_?g(i,s-t):i))}function F(e){return(u=void 0,w&&a)?k(e):(a=o=void 0,l)}function C(){var e,t=v(),i=x(t);if(a=arguments,o=this,d=t,i){if(void 0===u)return p=e=d,u=setTimeout(E,r),f?k(e):l;if(_)return u=setTimeout(E,r),k(d)}return void 0===u&&(u=setTimeout(E,r)),l}return r=y(r)||0,b(i)&&(f=!!i.leading,s=(_="maxWait"in i)?m(y(i.maxWait)||0,r):s,w="trailing"in i?!!i.trailing:w),C.cancel=function(){void 0!==u&&clearTimeout(u),p=0,a=d=o=u=void 0},C.flush=function(){return void 0===u?l:F(v())},C}(e,r,{leading:a,maxWait:r,trailing:o})}},88807:(e,t,r)=>{e=r.nmd(e);var i,a,o="__lodash_hash_undefined__",s=1/0,l="[object Arguments]",u="[object Array]",d="[object Boolean]",p="[object Date]",f="[object Error]",m="[object Function]",g="[object Map]",v="[object Number]",b="[object Object]",y="[object Promise]",_="[object RegExp]",w="[object Set]",k="[object String]",x="[object Symbol]",E="[object WeakMap]",F="[object ArrayBuffer]",C="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D=/^\w*$/,j=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,P=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[u]=M[F]=M[d]=M[C]=M[p]=M[f]=M[m]=M[g]=M[v]=M[b]=M[_]=M[w]=M[k]=M[E]=!1;var L="object"==typeof global&&global&&global.Object===Object&&global,A="object"==typeof self&&self&&self.Object===Object&&self,I=L||A||Function("return this")(),N=t&&!t.nodeType&&t,B=N&&e&&!e.nodeType&&e,U=B&&B.exports===N&&L.process,z=function(){try{return U&&U.binding("util")}catch(e){}}(),H=z&&z.isTypedArray;function q(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,i){for(var a=e.length,o=-1;++o-1}function V(e){return e!=e}function W(e,t){return e.has(t)}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function Y(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var K=Array.prototype,Z=Function.prototype,J=Object.prototype,X=I["__core-js_shared__"],Q=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ee=Z.toString,et=J.hasOwnProperty,en=J.toString,er=RegExp("^"+ee.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ei=I.Symbol,ea=I.Uint8Array,eo=J.propertyIsEnumerable,es=K.splice,el=(i=Object.keys,a=Object,function(e){return i(a(e))}),ec=eL(I,"DataView"),eu=eL(I,"Map"),ed=eL(I,"Promise"),ep=eL(I,"Set"),ef=eL(I,"WeakMap"),eh=eL(Object,"create"),em=eH(ec),eg=eH(eu),ev=eH(ed),eb=eH(ep),ey=eH(ef),e_=ei?ei.prototype:void 0,ew=e_?e_.valueOf:void 0,ek=e_?e_.toString:void 0;function ex(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},eE.prototype.set=function(e,t){var r=this.__data__,i=eD(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},eF.prototype.clear=function(){this.__data__={hash:new ex,map:new(eu||eE),string:new ex}},eF.prototype.delete=function(e){return eM(this,e).delete(e)},eF.prototype.get=function(e){return eM(this,e).get(e)},eF.prototype.has=function(e){return eM(this,e).has(e)},eF.prototype.set=function(e,t){return eM(this,e).set(e,t),this},eC.prototype.add=eC.prototype.push=function(e){return this.__data__.set(e,o),this},eC.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.clear=function(){this.__data__=new eE},eS.prototype.delete=function(e){return this.__data__.delete(e)},eS.prototype.get=function(e){return this.__data__.get(e)},eS.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eE){var i=r.__data__;if(!eu||i.length<199)return i.push([e,t]),this;r=this.__data__=new eF(i)}return r.set(e,t),this};var eP=ep&&1/Y(new ep([,-0]))[1]==s?function(e){return new ep(e)}:function(){};function eR(e,t,r,i,a,o){var s=2&a,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var p=-1,f=!0,m=1&a?new eC:void 0;for(o.set(e,t),o.set(t,e);++p-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 eJ(e){return!!e&&"object"==typeof e}function eX(e){return"symbol"==typeof e||eJ(e)&&en.call(e)==x}var eQ=H?function(e){return H(e)}:function(e){return eJ(e)&&eK(e.length)&&!!M[en.call(e)]};function e0(e){return eG(e)?function(e,t){var r=e$(e)||eW(e)?function(e,t){for(var r=-1,i=Array(e);++r=200){var d=t?null:eP(e);if(d)return Y(d);s=!1,a=W,u=new eC}else u=t?[]:l;n:for(;++i{var i=r(7017)(r(39288),"DataView");e.exports=i},27513:(e,t,r)=>{var i=r(7392),a=r(29247),o=r(84190),s=r(66193),l=r(66681);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var i=r(38048),a=r(82142),o=r(83226),s=r(84001),l=r(31127);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var i=r(7017)(r(39288),"Map");e.exports=i},30095:(e,t,r)=>{var i=r(86487),a=r(93976),o=r(91053),s=r(29941),l=r(70144);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var i=r(7017)(r(39288),"Promise");e.exports=i},39746:(e,t,r)=>{var i=r(7017)(r(39288),"Set");e.exports=i},43484:(e,t,r)=>{var i=r(30095),a=r(51793),o=r(59191);function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new i;++t{var i=r(58148),a=r(82795),o=r(9113),s=r(80934),l=r(68732),u=r(5525);function d(e){var t=this.__data__=new i(e);this.size=t.size}d.prototype.clear=a,d.prototype.delete=o,d.prototype.get=s,d.prototype.has=l,d.prototype.set=u,e.exports=d},76245:(e,t,r)=>{var i=r(39288).Symbol;e.exports=i},89377:(e,t,r)=>{var i=r(39288).Uint8Array;e.exports=i},35803:(e,t,r)=>{var i=r(7017)(r(39288),"WeakMap");e.exports=i},39137:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},17536:e=>{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length,a=0,o=[];++r{var i=r(44658);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},19544:e=>{e.exports=function(e,t,r){for(var i=-1,a=null==e?0:e.length;++i{var i=r(84643),a=r(46148),o=r(32966),s=r(10750),l=r(19699),u=r(42191),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),p=!r&&a(e),f=!r&&!p&&s(e),m=!r&&!p&&!f&&u(e),g=r||p||f||m,v=g?i(e.length,String):[],b=v.length;for(var y in e)(t||d.call(e,y))&&!(g&&("length"==y||f&&("offset"==y||"parent"==y)||m&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,b)))&&v.push(y);return v}},29738:e=>{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length,a=Array(i);++r{e.exports=function(e,t){for(var r=-1,i=t.length,a=e.length;++r{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length;++r{var i=r(15216),a=r(64111);e.exports=function(e,t,r){(void 0===r||a(e[t],r))&&(void 0!==r||t in e)||i(e,t,r)}},29126:(e,t,r)=>{var i=r(15216),a=r(64111),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];o.call(e,t)&&a(s,r)&&(void 0!==r||t in e)||i(e,t,r)}},33646:(e,t,r)=>{var i=r(64111);e.exports=function(e,t){for(var r=e.length;r--;)if(i(e[r][0],t))return r;return -1}},15216:(e,t,r)=>{var i=r(99e3);e.exports=function(e,t,r){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},39016:(e,t,r)=>{var i=r(62880),a=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(a)return a(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},49834:(e,t,r)=>{var i=r(43484),a=r(34776),o=r(19544),s=r(29738),l=r(96291),u=r(5354);e.exports=function(e,t,r,d){var p=-1,f=a,m=!0,g=e.length,v=[],b=t.length;if(!g)return v;r&&(t=s(t,l(r))),d?(f=o,m=!1):t.length>=200&&(f=u,m=!1,t=new i(t));n:for(;++p{var i=r(47851),a=r(15271)(i);e.exports=a},47941:e=>{e.exports=function(e,t,r,i){for(var a=e.length,o=r+(i?1:-1);i?o--:++o{var i=r(18939),a=r(62565);e.exports=function e(t,r,o,s,l){var u=-1,d=t.length;for(o||(o=a),l||(l=[]);++u0&&o(p)?r>1?e(p,r-1,o,s,l):i(l,p):s||(l[l.length]=p)}return l}},67917:(e,t,r)=>{var i=r(13012)();e.exports=i},47851:(e,t,r)=>{var i=r(67917),a=r(85865);e.exports=function(e,t){return e&&i(e,t,a)}},57305:(e,t,r)=>{var i=r(80204),a=r(1094);e.exports=function(e,t){t=i(t,e);for(var r=0,o=t.length;null!=e&&r{var i=r(18939),a=r(32966);e.exports=function(e,t,r){var o=t(e);return a(e)?o:i(o,r(e))}},1534:(e,t,r)=>{var i=r(76245),a=r(34244),o=r(13390),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?a(e):o(e)}},50045:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},44658:(e,t,r)=>{var i=r(47941),a=r(22570),o=r(936);e.exports=function(e,t,r){return t==t?o(e,t,r):i(e,a,r)}},79574:(e,t,r)=>{var i=r(1534),a=r(91380);e.exports=function(e){return a(e)&&"[object Arguments]"==i(e)}},78768:(e,t,r)=>{var i=r(1534),a=r(91380);e.exports=function(e){return a(e)&&"[object Date]"==i(e)}},88132:(e,t,r)=>{var i=r(80588),a=r(91380);e.exports=function e(t,r,o,s,l){return t===r||(null!=t&&null!=r&&(a(t)||a(r))?i(t,r,o,s,e,l):t!=t&&r!=r)}},80588:(e,t,r)=>{var i=r(82006),a=r(12317),o=r(99487),s=r(1958),l=r(74963),u=r(32966),d=r(10750),p=r(42191),f="[object Arguments]",m="[object Array]",g="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,y,_){var w=u(e),k=u(t),x=w?m:l(e),E=k?m:l(t);x=x==f?g:x,E=E==f?g:E;var F=x==g,C=E==g,S=x==E;if(S&&d(e)){if(!d(t))return!1;w=!0,F=!1}if(S&&!F)return _||(_=new i),w||p(e)?a(e,t,r,b,y,_):o(e,t,x,r,b,y,_);if(!(1&r)){var D=F&&v.call(e,"__wrapped__"),j=C&&v.call(t,"__wrapped__");if(D||j){var T=D?e.value():e,O=j?t.value():t;return _||(_=new i),y(T,O,r,b,_)}}return!!S&&(_||(_=new i),s(e,t,r,b,y,_))}},7240:(e,t,r)=>{var i=r(82006),a=r(88132);e.exports=function(e,t,r,o){var s=r.length,l=s,u=!o;if(null==e)return!l;for(e=Object(e);s--;){var d=r[s];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++s{e.exports=function(e){return e!=e}},74104:(e,t,r)=>{var i=r(85586),a=r(15621),o=r(62880),s=r(81708),l=/^\[object .+?Constructor\]$/,u=Object.prototype,d=Function.prototype.toString,p=u.hasOwnProperty,f=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(i(e)?f:l).test(s(e))}},17633:(e,t,r)=>{var i=r(1534),a=r(99002),o=r(91380),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!s[i(e)]}},44729:(e,t,r)=>{var i=r(71069),a=r(44723),o=r(24576),s=r(32966),l=r(94416);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?a(e[0],e[1]):i(e):l(e)}},54190:(e,t,r)=>{var i=r(83314),a=r(66045),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return a(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},75806:(e,t,r)=>{var i=r(62880),a=r(83314),o=r(22350),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=a(e),r=[];for(var l in e)"constructor"==l&&(t||!s.call(e,l))||r.push(l);return r}},64635:(e,t,r)=>{var i=r(57706),a=r(17632);e.exports=function(e,t){var r=-1,o=a(e)?Array(e.length):[];return i(e,function(e,i,a){o[++r]=t(e,i,a)}),o}},71069:(e,t,r)=>{var i=r(7240),a=r(35906),o=r(17106);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||i(r,e,t)}}},44723:(e,t,r)=>{var i=r(88132),a=r(9459),o=r(1433),s=r(76958),l=r(61623),u=r(17106),d=r(1094);e.exports=function(e,t){return s(e)&&l(t)?u(d(e),t):function(r){var s=a(r,e);return void 0===s&&s===t?o(r,e):i(t,s,3)}}},50076:(e,t,r)=>{var i=r(82006),a=r(80512),o=r(67917),s=r(97503),l=r(62880),u=r(58698),d=r(38599);e.exports=function e(t,r,p,f,m){t!==r&&o(r,function(o,u){if(m||(m=new i),l(o))s(t,r,u,p,e,f,m);else{var g=f?f(d(t,u),o,u+"",t,r,m):void 0;void 0===g&&(g=o),a(t,u,g)}},u)}},97503:(e,t,r)=>{var i=r(80512),a=r(70892),o=r(68845),s=r(11160),l=r(71814),u=r(46148),d=r(32966),p=r(16400),f=r(10750),m=r(85586),g=r(62880),v=r(36153),b=r(42191),y=r(38599),_=r(38018);e.exports=function(e,t,r,w,k,x,E){var F=y(e,r),C=y(t,r),S=E.get(C);if(S){i(e,r,S);return}var D=x?x(F,C,r+"",e,t,E):void 0,j=void 0===D;if(j){var T=d(C),O=!T&&f(C),P=!T&&!O&&b(C);D=C,T||O||P?d(F)?D=F:p(F)?D=s(F):O?(j=!1,D=a(C,!0)):P?(j=!1,D=o(C,!0)):D=[]:v(C)||u(C)?(D=F,u(F)?D=_(F):(!g(F)||m(F))&&(D=l(C))):j=!1}j&&(E.set(C,D),k(D,C,w,x,E),E.delete(C)),i(e,r,D)}},40620:(e,t,r)=>{var i=r(29738),a=r(57305),o=r(44729),s=r(64635),l=r(12704),u=r(96291),d=r(52463),p=r(24576),f=r(32966);e.exports=function(e,t,r){t=t.length?i(t,function(e){return f(e)?function(t){return a(t,1===e.length?e[0]:e)}:e}):[p];var m=-1;return t=i(t,u(o)),l(s(e,function(e,r,a){return{criteria:i(t,function(t){return t(e)}),index:++m,value:e}}),function(e,t){return d(e,t,r)})}},79064:(e,t,r)=>{var i=r(3648),a=r(1433);e.exports=function(e,t){return i(e,t,function(t,r){return a(e,r)})}},3648:(e,t,r)=>{var i=r(57305),a=r(15517),o=r(80204);e.exports=function(e,t,r){for(var s=-1,l=t.length,u={};++s{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},3243:(e,t,r)=>{var i=r(57305);e.exports=function(e){return function(t){return i(t,e)}}},44563:(e,t,r)=>{var i=r(24576),a=r(21112),o=r(234);e.exports=function(e,t){return o(a(e,t,i),e+"")}},15517:(e,t,r)=>{var i=r(29126),a=r(80204),o=r(19699),s=r(62880),l=r(1094);e.exports=function(e,t,r,u){if(!s(e))return e;t=a(t,e);for(var d=-1,p=t.length,f=p-1,m=e;null!=m&&++d{var i=r(44347),a=r(99e3),o=r(24576),s=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},12704:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},84643:e=>{e.exports=function(e,t){for(var r=-1,i=Array(e);++r{var i=r(76245),a=r(29738),o=r(32966),s=r(76871),l=1/0,u=i?i.prototype:void 0,d=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(s(t))return d?d.call(t):"";var r=t+"";return"0"==r&&1/t==-l?"-0":r}},96291:e=>{e.exports=function(e){return function(t){return e(t)}}},21213:(e,t,r)=>{var i=r(43484),a=r(34776),o=r(19544),s=r(5354),l=r(51512),u=r(78874);e.exports=function(e,t,r){var d=-1,p=a,f=e.length,m=!0,g=[],v=g;if(r)m=!1,p=o;else if(f>=200){var b=t?null:l(e);if(b)return u(b);m=!1,p=s,v=new i}else v=t?[]:g;n:for(;++d{e.exports=function(e,t){return e.has(t)}},80204:(e,t,r)=>{var i=r(32966),a=r(76958),o=r(31364),s=r(41029);e.exports=function(e,t){return i(e)?e:a(e,t)?[e]:o(s(e))}},8265:(e,t,r)=>{var i=r(89377);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},70892:(e,t,r)=>{e=r.nmd(e);var i=r(39288),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?i.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,i=l?l(r):new e.constructor(r);return e.copy(i),i}},68845:(e,t,r)=>{var i=r(8265);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},17523:(e,t,r)=>{var i=r(76871);e.exports=function(e,t){if(e!==t){var r=void 0!==e,a=null===e,o=e==e,s=i(e),l=void 0!==t,u=null===t,d=t==t,p=i(t);if(!u&&!p&&!s&&e>t||s&&l&&d&&!u&&!p||a&&l&&d||!r&&d||!o)return 1;if(!a&&!s&&!p&&e{var i=r(17523);e.exports=function(e,t,r){for(var a=-1,o=e.criteria,s=t.criteria,l=o.length,u=r.length;++a=u)return d;return d*("desc"==r[a]?-1:1)}}return e.index-t.index}},11160:e=>{e.exports=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r{var i=r(29126),a=r(15216);e.exports=function(e,t,r,o){var s=!r;r||(r={});for(var l=-1,u=t.length;++l{var i=r(39288)["__core-js_shared__"];e.exports=i},58958:(e,t,r)=>{var i=r(44563),a=r(47760);e.exports=function(e){return i(function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,l&&a(r[0],r[1],l)&&(s=o<3?void 0:s,o=1),t=Object(t);++i{var i=r(17632);e.exports=function(e,t){return function(r,a){if(null==r)return r;if(!i(r))return e(r,a);for(var o=r.length,s=t?o:-1,l=Object(r);(t?s--:++s{e.exports=function(e){return function(t,r,i){for(var a=-1,o=Object(t),s=i(t),l=s.length;l--;){var u=s[e?l:++a];if(!1===r(o[u],u,o))break}return t}}},51512:(e,t,r)=>{var i=r(39746),a=r(73525),o=r(78874),s=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:a;e.exports=s},99e3:(e,t,r)=>{var i=r(7017),a=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},12317:(e,t,r)=>{var i=r(43484),a=r(83057),o=r(5354);e.exports=function(e,t,r,s,l,u){var d=1&r,p=e.length,f=t.length;if(p!=f&&!(d&&f>p))return!1;var m=u.get(e),g=u.get(t);if(m&&g)return m==t&&g==e;var v=-1,b=!0,y=2&r?new i:void 0;for(u.set(e,t),u.set(t,e);++v{var i=r(76245),a=r(89377),o=r(64111),s=r(12317),l=r(59616),u=r(78874),d=i?i.prototype:void 0,p=d?d.valueOf:void 0;e.exports=function(e,t,r,i,d,f,m){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new a(e),new a(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var g=l;case"[object Set]":var v=1&i;if(g||(g=u),e.size!=t.size&&!v)break;var b=m.get(e);if(b)return b==t;i|=2,m.set(e,t);var y=s(g(e),g(t),i,d,f,m);return m.delete(e),y;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1}},1958:(e,t,r)=>{var i=r(67),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,s,l){var u=1&r,d=i(e),p=d.length;if(p!=i(t).length&&!u)return!1;for(var f=p;f--;){var m=d[f];if(!(u?m in t:a.call(t,m)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var b=!0;l.set(e,t),l.set(t,e);for(var y=u;++f{var i=r(7450),a=r(21112),o=r(234);e.exports=function(e){return o(a(e,void 0,i),e+"")}},37611:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},67:(e,t,r)=>{var i=r(24003),a=r(26102),o=r(85865);e.exports=function(e){return i(e,o,a)}},4326:(e,t,r)=>{var i=r(24587);e.exports=function(e,t){var r=e.__data__;return i(t)?r["string"==typeof t?"string":"hash"]:r.map}},35906:(e,t,r)=>{var i=r(61623),a=r(85865);e.exports=function(e){for(var t=a(e),r=t.length;r--;){var o=t[r],s=e[o];t[r]=[o,s,i(s)]}return t}},7017:(e,t,r)=>{var i=r(74104),a=r(12751);e.exports=function(e,t){var r=a(e,t);return i(r)?r:void 0}},89083:(e,t,r)=>{var i=r(87181)(Object.getPrototypeOf,Object);e.exports=i},34244:(e,t,r)=>{var i=r(76245),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,l=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,l),r=e[l];try{e[l]=void 0;var i=!0}catch(e){}var a=s.call(e);return i&&(t?e[l]=r:delete e[l]),a}},26102:(e,t,r)=>{var i=r(17536),a=r(95252),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:i(s(e=Object(e)),function(t){return o.call(e,t)})}:a;e.exports=l},74963:(e,t,r)=>{var i=r(44654),a=r(67926),o=r(9186),s=r(39746),l=r(35803),u=r(1534),d=r(81708),p="[object Map]",f="[object Promise]",m="[object Set]",g="[object WeakMap]",v="[object DataView]",b=d(i),y=d(a),_=d(o),w=d(s),k=d(l),x=u;(i&&x(new i(new ArrayBuffer(1)))!=v||a&&x(new a)!=p||o&&x(o.resolve())!=f||s&&x(new s)!=m||l&&x(new l)!=g)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,i=r?d(r):"";if(i)switch(i){case b:return v;case y:return p;case _:return f;case w:return m;case k:return g}return t}),e.exports=x},12751:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},23932:(e,t,r)=>{var i=r(80204),a=r(46148),o=r(32966),s=r(19699),l=r(99002),u=r(1094);e.exports=function(e,t,r){t=i(t,e);for(var d=-1,p=t.length,f=!1;++d{var i=r(67193);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},29247:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},84190:(e,t,r)=>{var i=r(67193),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(t,e)?t[e]:void 0}},66193:(e,t,r)=>{var i=r(67193),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}},66681:(e,t,r)=>{var i=r(67193);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},71814:(e,t,r)=>{var i=r(39016),a=r(89083),o=r(83314);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:i(a(e))}},62565:(e,t,r)=>{var i=r(76245),a=r(46148),o=r(32966),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||a(e)||!!(s&&e&&e[s])}},19699:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var i=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e{var i=r(64111),a=r(17632),o=r(19699),s=r(62880);e.exports=function(e,t,r){if(!s(r))return!1;var l=typeof t;return("number"==l?!!(a(r)&&o(t,r.length)):"string"==l&&t in r)&&i(r[t],e)}},76958:(e,t,r)=>{var i=r(32966),a=r(76871),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||a(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},24587:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15621:(e,t,r)=>{var i=r(35987),a=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},83314:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},61623:(e,t,r)=>{var i=r(62880);e.exports=function(e){return e==e&&!i(e)}},38048:e=>{e.exports=function(){this.__data__=[],this.size=0}},82142:(e,t,r)=>{var i=r(33646),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=i(t,e);return!(r<0)&&(r==t.length-1?t.pop():a.call(t,r,1),--this.size,!0)}},83226:(e,t,r)=>{var i=r(33646);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},84001:(e,t,r)=>{var i=r(33646);e.exports=function(e){return i(this.__data__,e)>-1}},31127:(e,t,r)=>{var i=r(33646);e.exports=function(e,t){var r=this.__data__,a=i(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}},86487:(e,t,r)=>{var i=r(27513),a=r(58148),o=r(67926);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},93976:(e,t,r)=>{var i=r(4326);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},91053:(e,t,r)=>{var i=r(4326);e.exports=function(e){return i(this,e).get(e)}},29941:(e,t,r)=>{var i=r(4326);e.exports=function(e){return i(this,e).has(e)}},70144:(e,t,r)=>{var i=r(4326);e.exports=function(e,t){var r=i(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}},59616:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}},17106:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},85244:(e,t,r)=>{var i=r(97300);e.exports=function(e){var t=i(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},67193:(e,t,r)=>{var i=r(7017)(Object,"create");e.exports=i},66045:(e,t,r)=>{var i=r(87181)(Object.keys,Object);e.exports=i},22350:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},7553:(e,t,r)=>{e=r.nmd(e);var i=r(37611),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a&&i.process,l=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l},13390:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},87181:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},21112:(e,t,r)=>{var i=r(39137),a=Math.max;e.exports=function(e,t,r){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,l=a(o.length-t,0),u=Array(l);++s{var i=r(37611),a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")();e.exports=o},38599:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},51793:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},59191:e=>{e.exports=function(e){return this.__data__.has(e)}},78874:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},234:(e,t,r)=>{var i=r(44578),a=r(72347)(i);e.exports=a},72347:e=>{var t=Date.now;e.exports=function(e){var r=0,i=0;return function(){var a=t(),o=16-(a-i);if(i=a,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},82795:(e,t,r)=>{var i=r(58148);e.exports=function(){this.__data__=new i,this.size=0}},9113:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},80934:e=>{e.exports=function(e){return this.__data__.get(e)}},68732:e=>{e.exports=function(e){return this.__data__.has(e)}},5525:(e,t,r)=>{var i=r(58148),a=r(67926),o=r(30095);e.exports=function(e,t){var r=this.__data__;if(r instanceof i){var s=r.__data__;if(!a||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},936:e=>{e.exports=function(e,t,r){for(var i=r-1,a=e.length;++i{var i=r(85244),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,r,i,a){t.push(i?a.replace(o,"$1"):r||e)}),t});e.exports=s},1094:(e,t,r)=>{var i=r(76871),a=1/0;e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},81708:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},44347:e=>{e.exports=function(e){return function(){return e}}},64111:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7450:(e,t,r)=>{var i=r(24354);e.exports=function(e){return(null==e?0:e.length)?i(e,1):[]}},9459:(e,t,r)=>{var i=r(57305);e.exports=function(e,t,r){var a=null==e?void 0:i(e,t);return void 0===a?r:a}},1433:(e,t,r)=>{var i=r(50045),a=r(23932);e.exports=function(e,t){return null!=e&&a(e,t,i)}},24576:e=>{e.exports=function(e){return e}},46148:(e,t,r)=>{var i=r(79574),a=r(91380),o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable,u=i(function(){return arguments}())?i:function(e){return a(e)&&s.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},32966:e=>{var t=Array.isArray;e.exports=t},17632:(e,t,r)=>{var i=r(85586),a=r(99002);e.exports=function(e){return null!=e&&a(e.length)&&!i(e)}},16400:(e,t,r)=>{var i=r(17632),a=r(91380);e.exports=function(e){return a(e)&&i(e)}},10750:(e,t,r)=>{e=r.nmd(e);var i=r(39288),a=r(89531),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,l=s&&s.exports===o?i.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||a},16851:(e,t,r)=>{var i=r(78768),a=r(96291),o=r(7553),s=o&&o.isDate,l=s?a(s):i;e.exports=l},81711:(e,t,r)=>{var i=r(88132);e.exports=function(e,t){return i(e,t)}},85586:(e,t,r)=>{var i=r(1534),a=r(62880);e.exports=function(e){if(!a(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},99002:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},62880:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},91380:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},36153:(e,t,r)=>{var i=r(1534),a=r(89083),o=r(91380),s=Object.prototype,l=Function.prototype.toString,u=s.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=i(e))return!1;var t=a(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==d}},4891:(e,t,r)=>{var i=r(1534),a=r(32966),o=r(91380);e.exports=function(e){return"string"==typeof e||!a(e)&&o(e)&&"[object String]"==i(e)}},76871:(e,t,r)=>{var i=r(1534),a=r(91380);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==i(e)}},42191:(e,t,r)=>{var i=r(17633),a=r(96291),o=r(7553),s=o&&o.isTypedArray,l=s?a(s):i;e.exports=l},85865:(e,t,r)=>{var i=r(77133),a=r(54190),o=r(17632);e.exports=function(e){return o(e)?i(e):a(e)}},58698:(e,t,r)=>{var i=r(77133),a=r(75806),o=r(17632);e.exports=function(e){return o(e)?i(e,!0):a(e)}},90601:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},97300:(e,t,r)=>{var i=r(30095);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,i);return r.cache=o.set(a,s)||o,s};return r.cache=new(a.Cache||i),r}a.Cache=i,e.exports=a},86506:(e,t,r)=>{var i=r(50076),a=r(58958)(function(e,t,r){i(e,t,r)});e.exports=a},73525:e=>{e.exports=function(){}},41686:(e,t,r)=>{var i=r(79064),a=r(77991)(function(e,t){return null==e?{}:i(e,t)});e.exports=a},94416:(e,t,r)=>{var i=r(78974),a=r(3243),o=r(76958),s=r(1094);e.exports=function(e){return o(e)?i(s(e)):a(e)}},76629:(e,t,r)=>{var i=r(15517);e.exports=function(e,t,r){return null==e?e:i(e,t,r)}},77529:(e,t,r)=>{var i=r(24354),a=r(40620),o=r(44563),s=r(47760),l=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&s(e,t[0],t[1])?t=[]:r>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),a(e,i(t,1),[])});e.exports=l},95252:e=>{e.exports=function(){return[]}},89531:e=>{e.exports=function(){return!1}},38018:(e,t,r)=>{var i=r(44295),a=r(58698);e.exports=function(e){return i(e,a(e))}},41029:(e,t,r)=>{var i=r(96115);e.exports=function(e){return null==e?"":i(e)}},7379:(e,t,r)=>{var i=r(21213);e.exports=function(e){return e&&e.length?i(e):[]}},82511:(e,t,r)=>{var i=r(44729),a=r(21213);e.exports=function(e,t){return e&&e.length?a(e,i(t,2)):[]}},49037:(e,t,r)=>{var i=r(49834),a=r(44563),o=r(16400),s=a(function(e,t){return o(e)?i(e,t):[]});e.exports=s},39542:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var i=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function a(e,t){if(e.length!==t.length)return!1;for(var r,a,o=0;o{/*! * mime-db * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed */e.exports=r(40572)},70045:(e,t,r)=>{"use strict";/*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */var i=r(46866),a=r(71017).extname,o=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=o.exec(e),r=t&&i[t[1].toLowerCase()];return r&&r.charset?r.charset:!!(t&&s.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var r=-1===e.indexOf("/")?t.lookup(e):e;if(!r)return!1;if(-1===r.indexOf("charset")){var i=t.charset(r);i&&(r+="; charset="+i.toLowerCase())}return r},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var r=o.exec(e),i=r&&t.extensions[r[1].toLowerCase()];return!!i&&!!i.length&&i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var r=a("x."+e).toLowerCase().substr(1);return!!r&&(t.types[r]||!1)},t.types=Object.create(null),function(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(i).forEach(function(a){var o=i[a],s=o.extensions;if(s&&s.length){e[a]=s;for(var l=0;lp||d===p&&"application/"===t[u].substr(0,12)))continue}t[u]=a}}})}(t.extensions,t.types)},87914:e=>{function t(e,t,r,i){return Math.round(e/r)+" "+i+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var i,a,o=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===o&&isFinite(e))return r.long?(i=Math.abs(e))>=864e5?t(e,i,864e5,"day"):i>=36e5?t(e,i,36e5,"hour"):i>=6e4?t(e,i,6e4,"minute"):i>=1e3?t(e,i,1e3,"second"):e+" ms":(a=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":a>=36e5?Math.round(e/36e5)+"h":a>=6e4?Math.round(e/6e4)+"m":a>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},21100:e=>{"use strict";let t=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],a=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],o=(e,t,r)=>{let i=e;return"string"==typeof t||Array.isArray(t)?i=e.toLocaleString(t,r):(!0===t||void 0!==r)&&(i=e.toLocaleString(void 0,r)),i};e.exports=(e,s)=>{let l;if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let u=(s=Object.assign({bits:!1,binary:!1},s)).bits?s.binary?a:i:s.binary?r:t;if(s.signed&&0===e)return` 0 ${u[0]}`;let d=e<0,p=d?"-":s.signed?"+":"";if(d&&(e=-e),void 0!==s.minimumFractionDigits&&(l={minimumFractionDigits:s.minimumFractionDigits}),void 0!==s.maximumFractionDigits&&(l=Object.assign({maximumFractionDigits:s.maximumFractionDigits},l)),e<1)return p+o(e,s.locale,l)+" "+u[0];let f=Math.min(Math.floor(s.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),u.length-1);return e/=Math.pow(s.binary?1024:1e3,f),l||(e=e.toPrecision(3)),p+o(Number(e),s.locale,l)+" "+u[f]}},99899:(e,t,r)=>{"use strict";var i=r(56715);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,s){if(s!==i){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={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:a};return r.PropTypes=r,r}},78439:(e,t,r)=>{e.exports=r(99899)()},56715:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},13304:(e,t,r)=>{"use strict";var i=r(57310).parse,a={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},o=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function s(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.j=function(e){var t,r,l,u="string"==typeof e?i(e):e||{},d=u.protocol,p=u.host,f=u.port;if("string"!=typeof p||!p||"string"!=typeof d||(d=d.split(":",1)[0],t=p=p.replace(/:\d*$/,""),r=f=parseInt(f)||a[d]||0,!(!(l=(s("npm_config_no_proxy")||s("no_proxy")).toLowerCase())||"*"!==l&&l.split(/[,\s]/).every(function(e){if(!e)return!0;var i=e.match(/^(.+):(\d+)$/),a=i?i[1]:e,s=i?parseInt(i[2]):0;return!!s&&s!==r||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!o.call(t,a)):t!==a)}))))return"";var m=s("npm_config_"+d+"_proxy")||s(d+"_proxy")||s("npm_config_proxy")||s("all_proxy");return m&&-1===m.indexOf("://")&&(m=d+"://"+m),m}},86725:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,s){if(o===s)return!0;if(o&&s&&"object"==typeof o&&"object"==typeof s){var l,u,d,p;if(o.constructor!==s.constructor)return!1;if(Array.isArray(o)){if((l=o.length)!=s.length)return!1;for(u=l;0!=u--;)if(!e(o[u],s[u]))return!1;return!0}if(r&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(p=o.entries();!(u=p.next()).done;)if(!s.has(u.value[0]))return!1;for(p=o.entries();!(u=p.next()).done;)if(!e(u.value[1],s.get(u.value[0])))return!1;return!0}if(i&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(p=o.entries();!(u=p.next()).done;)if(!s.has(u.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if((l=o.length)!=s.length)return!1;for(u=l;0!=u--;)if(o[u]!==s[u])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof s.valueOf)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof s.toString)return o.toString()===s.toString();if((l=(d=Object.keys(o)).length)!==Object.keys(s).length)return!1;for(u=l;0!=u--;)if(!Object.prototype.hasOwnProperty.call(s,d[u]))return!1;if(t&&o instanceof Element)return!1;for(u=l;0!=u--;)if(("_owner"!==d[u]&&"__v"!==d[u]&&"__o"!==d[u]||!o.$$typeof)&&!e(o[d[u]],s[d[u]]))return!1;return!0}return o!=o&&s!=s}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},49268:function(e,t,r){var i;i=function(e){return(()=>{var t={703:(e,t,r)=>{"use strict";var i=r(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,s){if(s!==i){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={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:a};return r.PropTypes=r,r}},697:(e,t,r)=>{e.exports=r(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,s){if(o===s)return!0;if(o&&s&&"object"==typeof o&&"object"==typeof s){var l,u,d,p;if(o.constructor!==s.constructor)return!1;if(Array.isArray(o)){if((l=o.length)!=s.length)return!1;for(u=l;0!=u--;)if(!e(o[u],s[u]))return!1;return!0}if(r&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(p=o.entries();!(u=p.next()).done;)if(!s.has(u.value[0]))return!1;for(p=o.entries();!(u=p.next()).done;)if(!e(u.value[1],s.get(u.value[0])))return!1;return!0}if(i&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(p=o.entries();!(u=p.next()).done;)if(!s.has(u.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if((l=o.length)!=s.length)return!1;for(u=l;0!=u--;)if(o[u]!==s[u])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===s.toString();if((l=(d=Object.keys(o)).length)!==Object.keys(s).length)return!1;for(u=l;0!=u--;)if(!Object.prototype.hasOwnProperty.call(s,d[u]))return!1;if(t&&o instanceof Element)return!1;for(u=l;0!=u--;)if(("_owner"!==d[u]&&"__v"!==d[u]&&"__o"!==d[u]||!o.$$typeof)&&!e(o[d[u]],s[d[u]]))return!1;return!0}return o!=o&&s!=s}(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,r){!function(e,t){function r(){return(r=Object.assign||function(e){for(var t=1;t1||e(function(e,i){i.trackMouse&&(document.addEventListener(u,f),document.addEventListener(d,g));var a="touches"in t?t.touches[0]:t,o=p([a.clientX,a.clientY],i.rotationAngle);return r({},e,l,{initial:[].concat(o),xy:o,start:t.timeStamp||0})})},f=function(t){e(function(e,s){if("touches"in t&&t.touches.length>1)return e;var l="touches"in t?t.touches[0]:t,u=p([l.clientX,l.clientY],s.rotationAngle),d=u[0],f=u[1],m=d-e.xy[0],g=f-e.xy[1],v=Math.abs(m),b=Math.abs(g),y=(t.timeStamp||0)-e.start;if(vb?m>0?a:i:g>0?o:"Up",w={absX:v,absY:b,deltaX:m,deltaY:g,dir:_,event:t,first:e.first,initial:e.initial,velocity:Math.sqrt(v*v+b*b)/(y||1),vxvy:[m/(y||1),g/(y||1)]};s.onSwiping&&s.onSwiping(w);var k=!1;return(s.onSwiping||s.onSwiped||"onSwiped"+_ in s)&&(k=!0),k&&s.preventDefaultTouchmoveEvent&&s.trackTouch&&t.cancelable&&t.preventDefault(),r({},e,{first:!1,eventData:w,swiping:!0})})},m=function(t){e(function(e,i){var a;if(e.swiping&&e.eventData){a=r({},e.eventData,{event:t}),i.onSwiped&&i.onSwiped(a);var o="onSwiped"+a.dir;o in i&&i[o](a)}else i.onTap&&i.onTap({event:t});return r({},e,l,{eventData:a})})},g=function(e){document.removeEventListener(u,f),document.removeEventListener(d,g),m(e)},_=function(e,t){var r=function(){};if(e&&e.addEventListener){var i=[["touchstart",s],["touchmove",f],["touchend",m]];i.forEach(function(r){var i=r[0],a=r[1];return e.addEventListener(i,a,{passive:t})}),r=function(){return i.forEach(function(t){var r=t[0],i=t[1];return e.removeEventListener(r,i)})}}return r},w={ref:function(t){null!==t&&e(function(e,i){if(e.el===t)return e;var a={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),a.cleanUpTouch=void 0),i.trackTouch&&t&&(a.cleanUpTouch=_(t,!i.preventDefaultTouchmoveEvent)),r({},e,{el:t},a)})}},t.trackMouse&&(w.onMouseDown=s),[w,_]},[v]),w=_[0],k=_[1];return b.current=(f=b.current,m=y.current,g={},!m.trackTouch&&f.cleanUpTouch?(f.cleanUpTouch(),g.cleanUpTouch=void 0):m.trackTouch&&!f.cleanUpTouch&&f.el&&(g.cleanUpTouch=k(f.el,!m.preventDefaultTouchmoveEvent)),r({},f,g)),w}}(t,r(888))},888:t=>{"use strict";t.exports=e}},r={};function i(e){var a=r[e];if(void 0!==a)return a.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 r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 a={};return(()=>{"use strict";function e(){for(var e,t,r=0,i="";re_});var t=i(888),r=i.n(t);let o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},s="object"==typeof global&&global&&global.Object===Object&&global;var l="object"==typeof self&&self&&self.Object===Object&&self;let u=s||l||Function("return this")(),d=function(){return u.Date.now()};var p=/\s/,f=/^\s+/;let m=u.Symbol;var g=Object.prototype,v=g.hasOwnProperty,b=g.toString,y=m?m.toStringTag:void 0,_=Object.prototype.toString,w=m?m.toStringTag:void 0,k=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,F=parseInt;let C=function(e){if("number"==typeof e)return e;if("symbol"==typeof(r=e)||null!=r&&"object"==typeof r&&"[object Symbol]"==(null==(t=r)?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?function(e){var t=v.call(e,y),r=e[y];try{e[y]=void 0;var i=!0}catch(e){}var a=b.call(e);return i&&(t?e[y]=r:delete e[y]),a}(t):_.call(t)))return NaN;if(o(e)){var t,r,i,a="function"==typeof e.valueOf?e.valueOf():e;e=o(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=(i=e)?i.slice(0,function(e){for(var t=e.length;t--&&p.test(e.charAt(t)););return t}(i)+1).replace(f,""):i;var s=x.test(e);return s||E.test(e)?F(e.slice(2),s?2:8):k.test(e)?NaN:+e};var S=Math.max,D=Math.min;let j=function(e,t,r){var i,a,s,l,u,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=i,o=a;return i=a=void 0,f=t,l=e.apply(o,r)}function y(e){var r=e-p;return void 0===p||r>=t||r<0||g&&e-f>=s}function _(){var e,r=d();if(y(r))return w(r);u=setTimeout(_,(e=t-(r-p),g?D(e,s-(r-f)):e))}function w(e){return u=void 0,v&&i?b(e):(i=a=void 0,l)}function k(){var e,r=d(),o=y(r);if(i=arguments,a=this,p=r,o){if(void 0===u)return f=e=p,u=setTimeout(_,t),m?b(e):l;if(g)return clearTimeout(u),u=setTimeout(_,t),b(p)}return void 0===u&&(u=setTimeout(_,t)),l}return t=C(t)||0,o(r)&&(m=!!r.leading,s=(g="maxWait"in r)?S(C(r.maxWait)||0,t):s,v="trailing"in r?!!r.trailing:v),k.cancel=function(){void 0!==u&&clearTimeout(u),f=0,i=p=a=u=void 0},k.flush=function(){return void 0===u?l:w(d())},k},T=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),j(e,t,{leading:i,maxWait:t,trailing:a})};var O=i(590),P=i.n(O),R=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,i){return e[0]===t&&(r=i,!0)}),r}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 r=e(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,r){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,i=e(r,t);~i&&r.splice(i,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 r=0,i=this.__entries__;r0},e.prototype.connect_=function(){M&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),N?(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(){M&&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,r=void 0===t?"":t;I.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),U=function(e,t){for(var r=0,i=Object.keys(t);r0},e}(),Z="undefined"!=typeof WeakMap?new WeakMap:new R,J=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 r=new K(t,B.getInstance(),this);Z.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){J.prototype[e]=function(){var t;return(t=Z.get(this))[e].apply(t,arguments)}});let X=void 0!==L.ResizeObserver?L.ResizeObserver:J;var Q=i(37),ee=i(697),et=r().memo(function(e){var t=e.description,i=e.fullscreen,a=e.handleImageLoaded,o=e.isFullscreen,s=e.onImageError,l=e.original,u=e.originalAlt,d=e.originalHeight,p=e.originalWidth,f=e.originalTitle,m=e.sizes,g=e.srcSet,v=e.loading,b=o&&i||l;return r().createElement(r().Fragment,null,r().createElement("img",{className:"image-gallery-image",src:b,alt:u,srcSet:g,height:d,width:p,sizes:m,title:f,onLoad:function(e){return a(e,l)},onError:s,loading:v}),t&&r().createElement("span",{className:"image-gallery-description"},t))});et.displayName="Item",et.propTypes={description:ee.string,fullscreen:ee.string,handleImageLoaded:ee.func.isRequired,isFullscreen:ee.bool,onImageError:ee.func.isRequired,original:ee.string.isRequired,originalAlt:ee.string,originalHeight:ee.string,originalWidth:ee.string,originalTitle:ee.string,sizes:ee.string,srcSet:ee.string,loading:ee.string},et.defaultProps={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"};var en={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"}))},er=function(e){var t=e.strokeWidth,i=e.viewBox,a=e.icon;return r().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:i,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"},en[a])};er.propTypes={strokeWidth:ee.number,viewBox:ee.string,icon:(0,ee.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired},er.defaultProps={strokeWidth:1,viewBox:"0 0 24 24"};var ei=r().memo(function(e){var t=e.isFullscreen,i=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:i,"aria-label":"Open Fullscreen"},r().createElement(er,{strokeWidth:2,icon:t?"minimize":"maximize"}))});ei.displayName="Fullscreen",ei.propTypes={isFullscreen:ee.bool.isRequired,onClick:ee.func.isRequired};var ea=r().memo(function(e){var t=e.disabled,i=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:i,"aria-label":"Previous Slide"},r().createElement(er,{icon:"left",viewBox:"6 0 12 24"}))});ea.displayName="LeftNav",ea.propTypes={disabled:ee.bool.isRequired,onClick:ee.func.isRequired};var eo=r().memo(function(e){var t=e.disabled,i=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:i,"aria-label":"Next Slide"},r().createElement(er,{icon:"right",viewBox:"6 0 12 24"}))});eo.displayName="RightNav",eo.propTypes={disabled:ee.bool.isRequired,onClick:ee.func.isRequired};var es=r().memo(function(e){var t=e.isPlaying,i=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:i,"aria-label":"Play or Pause Slideshow"},r().createElement(er,{strokeWidth:2,icon:t?"pause":"play"}))});function el(){return(el=Object.assign||function(e){for(var t=1;t=3&&i&&(0===e&&t===a.length-1?o=" ".concat(l):e===a.length-1&&0===t&&(o=" ".concat(s))),o}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,r=t.currentIndex,i=t.currentSlideOffset,a=t.previousIndex,o=0===e&&1===r,s=1===e&&0===r,l=0===i,u=-100*r+100*e+i;return i>0?this.direction="left":i<0&&(this.direction="right"),s&&i>0&&(u=-100+i),o&&i<0&&(u=100+i),r!==a?0===e&&0===a&&l&&"left"===this.direction?u=100:1===e&&1===a&&l&&"right"===this.direction&&(u=-100):(s&&l&&"left"===this.direction&&(u=-100),o&&l&&"right"===this.direction&&(u=100)),u}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,r=t.currentIndex,i=t.currentSlideOffset,a=t.slideStyle,o=this.props,s=o.infinite,l=o.items,u=o.useTranslate3D,d=o.isRTL,p=l.length-1,f=(-100*r+100*e)*(d?-1:1)+i;s&&l.length>2&&(0===r&&e===p?f=-100*(d?-1:1)+i:r===p&&0===e&&(f=100*(d?-1:1)+i)),s&&2===l.length&&(f=this.getTranslateXForTwoSlide(e));var m="translate(".concat(f,"%, 0)");return u&&(m="translate3d(".concat(f,"%, 0, 0)")),ep({display:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:m,MozTransform:m,msTransform:m,OTransform:m,transform:m},a)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,r=t.useTranslate3D,i=t.isRTL,a=this.state,o=a.thumbsTranslate,s=a.thumbsStyle,l=i?-1*o:o;return this.isThumbnailVertical()?(e="translate(0, ".concat(o,"px)"),r&&(e="translate3d(0, ".concat(o,"px, 0)"))):(e="translate(".concat(l,"px, 0)"),r&&(e="translate3d(".concat(l,"px, 0, 0)"))),ep({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},s)}},{key:"getSlideItems",value:function(){var t=this,i=this.state.currentIndex,a=this.props,o=a.items,s=a.slideOnThumbnailOver,l=a.onClick,u=a.lazyLoad,d=a.onTouchMove,p=a.onTouchEnd,f=a.onTouchStart,m=a.onMouseOver,g=a.onMouseLeave,v=a.renderItem,b=a.renderThumbInner,y=a.showThumbnails,_=a.showBullets,w=[],k=[],x=[];return o.forEach(function(a,o){var E=t.getAlignmentClassName(o),F=a.originalClass?" ".concat(a.originalClass):"",C=a.thumbnailClass?" ".concat(a.thumbnailClass):"",S=a.renderItem||v||t.renderItem,D=a.renderThumbInner||b||t.renderThumbInner,j=!u||E||t.lazyLoaded[o];j&&u&&!t.lazyLoaded[o]&&(t.lazyLoaded[o]=!0);var T=t.getSlideStyle(o),O=r().createElement("div",{"aria-label":"Go to Slide ".concat(o+1),key:"slide-".concat(o),tabIndex:"-1",className:"image-gallery-slide ".concat(E," ").concat(F),style:T,onClick:l,onKeyUp:t.handleSlideKeyUp,onTouchMove:d,onTouchEnd:p,onTouchStart:f,onMouseOver:m,onFocus:m,onMouseLeave:g,role:"button"},j?S(a):r().createElement("div",{style:{height:"100%"}}));if(w.push(O),y&&a.thumbnail){var P=e("image-gallery-thumbnail",C,{active:i===o});k.push(r().createElement("button",{key:"thumbnail-".concat(o),type:"button",tabIndex:"0","aria-pressed":i===o?"true":"false","aria-label":"Go to Slide ".concat(o+1),className:P,onMouseLeave:s?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)}},D(a)))}if(_){var R=e("image-gallery-bullet",a.bulletClass,{active:i===o});x.push(r().createElement("button",{type:"button",key:"bullet-".concat(o),className:R,onClick:function(e){return a.bulletOnClick&&a.bulletOnClick({item:a,itemIndex:o,currentIndex:i}),e.target.blur(),t.slideToIndex.call(t,o,e)},"aria-pressed":i===o?"true":"false","aria-label":"Go to Slide ".concat(o+1)}))}}),{slides:w,thumbnails:k,bullets:x}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,r=t.previousIndex,i=t.currentIndex,a=e.length-1;return Math.abs(r-i)>1&&!(0===r&&i===a)&&!(r===a&&0===i)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,r=t.isTransitioning,i=t.previousIndex,a=t.currentIndex;return r&&!(e===i||e===a)}},{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,r=e.isSwipingThumbnail,i=-this.getThumbsTranslate(t);r||(0===t?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:i,thumbsSwipedTranslate:i}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){var e=this.props,t=e.infinite,r=e.isRTL;return t||(r?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,r=e.isRTL;return t||(r?this.canSlidePrevious():this.canSlideNext())}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex=100&&(v=100),this.setState({currentSlideOffset:g*v,slideStyle:{transition:"transform ".concat(m,"ms ease-out")}})}}}else p||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,r=e.absX,i=e.absY,a=e.dir,o=this.props,s=o.stopPropagation,l=o.swipingThumbnailTransitionDuration,u=this.state,d=u.thumbsSwipedTranslate,p=u.thumbnailsWrapperHeight,f=u.thumbnailsWrapperWidth,m=u.swipingUpDown,g=u.swipingLeftRight;if(this.isThumbnailVertical()){if((a===Q.LEFT||a===Q.RIGHT||g)&&!m)return void(g||this.setState({swipingLeftRight:!0}));a!==Q.UP&&a!==Q.DOWN||m||this.setState({swipingUpDown:!0})}else{if((a===Q.UP||a===Q.DOWN||m)&&!g)return void(m||this.setState({swipingUpDown:!0}));a!==Q.LEFT&&a!==Q.RIGHT||g||this.setState({swipingLeftRight:!0})}var v,b,y,_,w=this.thumbnails&&this.thumbnails.current;this.isThumbnailVertical()?(b=Math.abs(v=d+(a===Q.DOWN?i:-i))>w.scrollHeight-p+20,y=v>20,_=w.scrollHeight<=p):(b=Math.abs(v=d+(a===Q.RIGHT?r:-r))>w.scrollWidth-f+20,y=v>20,_=w.scrollWidth<=f),_||(a===Q.LEFT||a===Q.UP)&&b||(a===Q.RIGHT||a===Q.DOWN)&&y||(s&&t.stopPropagation(),this.setState({thumbsTranslate:v,thumbsStyle:{transition:"transform ".concat(l,"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,r=e.swipingLeftRight;t&&this.setState({swipingUpDown:!1}),r&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(e){var t=e.event,r=e.dir,i=e.velocity,a=this.props,o=a.disableSwipe,s=a.stopPropagation,l=a.flickThreshold;if(!o){var u=this.props.isRTL;s&&t.stopPropagation(),this.resetSwipingDirection();var d=(r===Q.LEFT?1:-1)*(u?-1:1),p=r===Q.UP||r===Q.DOWN;this.handleOnSwipedTo(d,i>l&&!p)}}},{key:"handleOnSwipedTo",value:function(e,t){var r=this.state,i=r.currentIndex,a=r.isTransitioning,o=i;(this.sufficientSwipe()||t)&&!a&&(o+=e),(-1!==e||this.canSlideLeft())&&(1!==e||this.canSlideRight())||(o=i),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,r=t.disableKeyDown,i=t.useBrowserFullscreen,a=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!r)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:a&&!i&&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 X(j(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 X(j(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,r=e.useBrowserFullscreen,i=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,a=this.imageGallery.current===i;t&&t(a),r&&this.setState({isFullscreen:a})}},{key:"slideToIndex",value:function(e,t){var r=this.state,i=r.currentIndex,a=r.isTransitioning,o=this.props,s=o.items,l=o.slideDuration,u=o.onBeforeSlide;if(!a){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var d=s.length-1,p=e;e<0?p=d:e>d&&(p=0),u&&p!==i&&u(p),this.setState({previousIndex:i,currentIndex:p,isTransitioning:p!==i,currentSlideOffset:0,slideStyle:{transition:"all ".concat(l,"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 r=this,i=this.state,a=i.currentIndex,o=i.currentSlideOffset,s=i.isTransitioning,l=this.props.items,u=a+("left"===t?-1:1);s||(2===l.length?this.setState({currentSlideOffset:o+("left"===t?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return r.slideToIndex(u,e)},25)}):this.slideToIndex(u,e))}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){eb(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){eb(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;eg.forEach(function(t){document.addEventListener(t,e.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var e=this;eg.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,r=t.onPlay,i=t.slideInterval,a=t.slideDuration,o=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(i,a)),r&&e&&r(o))}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,r=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(r))}},{key:"isImageLoaded",value:function(e){return!!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var r=this.props.onImageLoad;!this.loadedImages[t]&&r&&(this.loadedImages[t]=!0,r(e))}},{key:"renderItem",value:function(e){var t=this.state.isFullscreen,i=this.props.onImageError||this.handleImageError;return r().createElement(et,{description:e.description,fullscreen:e.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:t,onImageError:i,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,i=t.currentIndex,a=t.isFullscreen,o=t.modalFullscreen,s=t.isPlaying,l=this.props,u=l.additionalClass,d=l.disableThumbnailSwipe,p=l.indexSeparator,f=l.isRTL,m=l.items,g=l.thumbnailPosition,v=l.renderFullscreenButton,b=l.renderCustomControls,y=l.renderLeftNav,_=l.renderRightNav,w=l.showBullets,k=l.showFullscreenButton,x=l.showIndex,E=l.showThumbnails,F=l.showNav,C=l.showPlayButton,S=l.renderPlayPauseButton,D=this.getThumbnailStyle(),j=this.getSlideItems(),T=j.slides,O=j.thumbnails,P=j.bullets,R=e("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(g),{"image-gallery-rtl":f}),M=r().createElement("div",{ref:this.imageGallerySlideWrapper,className:R},b&&b(),this.canSlide()?r().createElement(r().Fragment,null,F&&r().createElement(r().Fragment,null,y(this.slideLeft,!this.canSlideLeft()),_(this.slideRight,!this.canSlideRight())),r().createElement(ec,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},r().createElement("div",{className:"image-gallery-slides"},T))):r().createElement("div",{className:"image-gallery-slides"},T),C&&S(this.togglePlay,s),w&&r().createElement("div",{className:"image-gallery-bullets"},r().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},P)),k&&v(this.toggleFullScreen,a),x&&r().createElement("div",{className:"image-gallery-index"},r().createElement("span",{className:"image-gallery-index-current"},i+1),r().createElement("span",{className:"image-gallery-index-separator"},p),r().createElement("span",{className:"image-gallery-index-total"},m.length))),L=e("image-gallery",u,{"fullscreen-modal":o}),A=e("image-gallery-content",this.getThumbnailPositionClassName(g),{fullscreen:a}),I=e("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(g),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&f},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!d},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!d});return r().createElement("div",{ref:this.imageGallery,className:L,"aria-live":"polite"},r().createElement("div",{className:A},("bottom"===g||"right"===g)&&M,E&&O.length>0?r().createElement(ec,{className:I,delta:0,onSwiping:!d&&this.handleThumbnailSwiping,onSwiped:!d&&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:D,"aria-label":"Thumbnail Navigation"},O))):null,("top"===g||"left"===g)&&M))}}],function(e,t){for(var r=0;r{"use strict";/** * @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 r,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case o:case l:case s:case m:case g:return e;default:switch(e=e&&e.$$typeof){case p:case d:case f:case b:case v:case u:return e;default:return t}}case a:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=d,t.ContextProvider=u,t.Element=i,t.ForwardRef=f,t.Fragment=o,t.Lazy=b,t.Memo=v,t.Portal=a,t.Profiler=l,t.StrictMode=s,t.Suspense=m,t.SuspenseList=g,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return _(e)===d},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===b},t.isMemo=function(e){return _(e)===v},t.isPortal=function(e){return _(e)===a},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===m},t.isSuspenseList=function(e){return _(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===s||e===m||e===g||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===u||e.$$typeof===d||e.$$typeof===f||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=_},68167:(e,t,r)=>{"use strict";e.exports=r(20868)},52495:(e,t,r)=>{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=function(e){return e&&e.__esModule?e:{default:e}}(r(86725)),s=r(16969),l=r(33948);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(){return(d=Object.assign||function(e){for(var t=1;t0&&e<1){var i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction –\xa0duration not yet available");return}this.player.seekTo(i*e);return}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?a.default.createElement(e,d({},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 r=0;r{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,t&&t.set(e,r),r}(r(17577));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function l(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0;var i=F(r(17577)),a=p(r(10909)),o=p(r(39542)),s=p(r(86725)),l=r(16969),u=r(33948),d=p(r(52495));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="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)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function g(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,i=Array(t);r0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(e):null}),x(w(r),"seekTo",function(e,t){if(!r.player)return null;r.player.seekTo(e,t)}),x(w(r),"handleReady",function(){r.props.onReady(w(r))}),x(w(r),"getActivePlayer",(0,o.default)(function(r){for(var i=0,a=[].concat(O,b(e));i{"use strict";t.Z=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(r(61424)),a=r(15642),o=i.default[i.default.length-1],s=(0,a.createReactPlayer)(i.default,o);t.Z=s},8613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0;var i=r(33948);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,s,l=!0,u=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return l=e.done,e},e:function(e){u=!0,s=e},f:function(){try{l||null==o.return||o.return()}finally{if(u)throw s}}}}(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;if("string"==typeof s&&e(s)||e(s.src))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}return!!((0,i.isMediaStream)(t)||(0,i.isBlobUrl)(t))||w.test(t)||k.test(t)||x.test(t)||E.test(t)||F.test(t)}}},76499:(e,t,r)=>{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t1,b=g&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||v)&&!window.MSStream,y=/www\.dropbox\.com\/.+/,_=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,w=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&&d(e,t)}(g,e);var t,r,l=(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,r=f(g);return e=t?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:p(this)});function g(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,r=Array(t),i=0;iparseInt(s)?t.dash.getDebug().setLogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:r.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",l),"flvjs").then(function(r){t.flv=r.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.on(r.Events.ERROR,function(e,i){t.props.onError(e,i,t.flv,r)}),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,r=e.seekable;return t===1/0&&r.length>0?r.end(r.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),r=this.getDuration();return t>r?r:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),r=this.shouldUseDASH(e),i=this.shouldUseFLV(e);return e instanceof Array||(0,o.isMediaStream)(e)||t||r||i?void 0:y.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,r=e.playing,i=e.loop,o=e.controls,s=e.muted,l=e.config,d=e.width,p=e.height,f=this.shouldUseAudio(this.props);return a.default.createElement(f?"audio":"video",u({ref:this.ref,src:this.getSource(t),style:{width:"auto"===d?d:"100%",height:"auto"===p?p:"100%"},preload:"auto",autoPlay:r||void 0,controls:o,muted:s,loop:i},l.attributes),t instanceof Array&&t.map(this.renderSourceElement),l.tracks.map(this.renderTrack))}}],function(e,t){for(var r=0;r{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=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)}(l,e);var t,r,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,r=p(l);return e=t?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:d(this)});function l(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=Array(t),i=0;i{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e){for(var t=1;t{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e){for(var t=1;t{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=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)}(m,e);var t,r,l=(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,r=p(m);return e=t?Reflect.construct(r,arguments,p(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:d(this)});function m(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,r=Array(t),i=0;i{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=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&&d(e,t)}(g,e);var t,r,l=(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,r=f(g);return e=t?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:p(this)});function g(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,r=Array(t),i=0;i{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=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&&d(e,t)}(g,e);var t,r,l=(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,r=f(g);return e=t?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:p(this)});function g(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,r=Array(t),i=0;i{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=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&&d(e,t)}(l,e);var t,r,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,r=f(l);return e=t?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:p(this)});function l(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=Array(t),i=0;i{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=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&&d(e,t)}(g,e);var t,r,l=(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,r=f(g);return e=t?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),e&&("object"===i(e)||"function"==typeof e)?e:p(this)});function g(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,r=Array(t),i=0;i{"use strict";function i(e){return(i="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 a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(17577)),o=r(33948),s=r(8613);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function d(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,i=Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(17577),a=r(33948),o=r(8613);function s(e){return(s="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)}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}var d=[{key:"youtube",name:"YouTube",canPlay:o.canPlay.youtube,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(91247))})})},{key:"soundcloud",name:"SoundCloud",canPlay:o.canPlay.soundcloud,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(98890))})})},{key:"vimeo",name:"Vimeo",canPlay:o.canPlay.vimeo,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(10225))})})},{key:"facebook",name:"Facebook",canPlay:o.canPlay.facebook,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(76750))})})},{key:"streamable",name:"Streamable",canPlay:o.canPlay.streamable,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(42013))})})},{key:"wistia",name:"Wistia",canPlay:o.canPlay.wistia,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(26904))})})},{key:"twitch",name:"Twitch",canPlay:o.canPlay.twitch,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(75851))})})},{key:"dailymotion",name:"DailyMotion",canPlay:o.canPlay.dailymotion,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(76499))})})},{key:"mixcloud",name:"Mixcloud",canPlay:o.canPlay.mixcloud,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(8515))})})},{key:"vidyard",name:"Vidyard",canPlay:o.canPlay.vidyard,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(61033))})})},{key:"kaltura",name:"Kaltura",canPlay:o.canPlay.kaltura,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(60011))})})},{key:"file",name:"FilePlayer",canPlay:o.canPlay.file,canEnablePIP:function(e){return o.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,a.supportsWebKitPresentationMode)())&&!o.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return u(r(43758))})})}];t.default=d},16969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.propTypes=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(r(78439)),a=i.default.string,o=i.default.bool,s=i.default.number,l=i.default.array,u=i.default.oneOfType,d=i.default.shape,p=i.default.object,f=i.default.func,m=i.default.node,g={url:u([a,l,p]),playing:o,loop:o,controls:o,volume:s,muted:o,playbackRate:s,width:u([a,s]),height:u([a,s]),style:p,progressInterval:s,playsinline:o,pip:o,stopOnUnmount:o,light:u([o,a]),playIcon:m,previewTabIndex:s,fallback:m,oEmbedUrl:a,wrapper:u([a,f,d({render:f.isRequired})]),config:d({soundcloud:d({options:p}),youtube:d({playerVars:p,embedOptions:p,onUnstarted:f}),facebook:d({appId:a,version:a,playerId:a,attributes:p}),dailymotion:d({params:p}),vimeo:d({playerOptions:p,title:a}),file:d({attributes:p,tracks:l,forceVideo:o,forceAudio:o,forceHLS:o,forceDASH:o,forceFLV:o,hlsOptions:p,hlsVersion:a,dashVersion:a,flvVersion:a}),wistia:d({options:p,playerId:a,customControls:l}),mixcloud:d({options:p}),twitch:d({options:p,playerId:a}),vidyard:d({options:p})}),onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onPlaybackRateChange:f,onProgress:f,onClickPreview:f,onEnablePIP:f,onDisablePIP:f};t.propTypes=g;var v=function(){};t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:v},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:v,onStart:v,onPlay:v,onPause:v,onBuffer:v,onBufferEnd:v,onEnded:v,onError:v,onDuration:v,onSeek:v,onPlaybackRateChange:v,onProgress:v,onClickPreview:v,onEnablePIP:v,onDisablePIP:v}},33948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return f(e,l)},t.parseEndTime=function(e){return f(e,u)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")},t.getSDK=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.default,s=m(t);return s&&a(s)?Promise.resolve(s):new Promise(function(i,a){if(g[e]){g[e].push({resolve:i,reject:a});return}g[e]=[{resolve:i,reject:a}];var s=function(t){g[e].forEach(function(e){return e.resolve(t)})};if(r){var l=window[r];window[r]=function(){l&&l(),s(m(t))}}o(e,function(i){i?(g[e].forEach(function(e){return e.reject(i)}),g[e]=null):r||s(m(t))})})},t.getConfig=function(e,t){return(0,a.default)(t.config,e.config)},t.omit=function(e){for(var t,r=arguments.length,i=Array(r>1?r-1:0),a=1;a1?i-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 i=o(r(20812)),a=o(r(10909));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r{"use strict";r.d(t,{OO:()=>nf});var i=r(17577);function a(e,t){return function(r){return e(t(r))}}function o(e,t){return t(e)}function s(e,t){return function(r){return e(t,r)}}function l(e,t){return function(){return e(t)}}function u(){for(var e=arguments.length,t=Array(e),r=0;r-1&&e.splice(t,1)};case 0:e.slice().forEach(function(e){e(r)});return;default:throw Error("unrecognized action "+t)}}}function k(e){var t=e,r=w();return function(e,i){switch(e){case 1:i(t);break;case 0:t=i;break;case 4:return t}return r(e,i)}}function x(e){var t;return y(e,t=w()),t}function E(e,t){var r;return y(e,r=k(t)),r}function F(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),i=1;i0?e--:t(r)}}}function M(e){var t,r;return function(i){return function(a){t=a,r||(r=setTimeout(function(){r=void 0,i(t)},e))}}}function L(e){var t,r;return function(i){return function(a){t=a,r&&clearTimeout(r),r=setTimeout(function(){i(t)},e)}}}function A(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var r=0,i=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var V=["children"],W="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function $(e,t,r){var a=Object.keys(t.required||{}),o=Object.keys(t.optional||{}),u=Object.keys(t.methods||{}),d=Object.keys(t.events||{}),f=(0,i.createContext)({});function y(e,r){e.propsReady&&g(e.propsReady,!1);for(var i,s=q(a);!(i=s()).done;){var l=i.value;g(e[t.required[l]],r[l])}for(var u,d=q(o);!(u=d()).done;){var p=u.value;p in r&&g(e[t.optional[p]],r[p])}e.propsReady&&g(e.propsReady,!0)}function _(e){return d.reduce(function(r,i){var a,o,s,l;return r[i]=(a=e[t.events[i]],l=function(){return o&&o()},function(e,t){switch(e){case 1:if(!t)return l(),m;if(s===t)return;return l(),s=t,o=a(1,t);case 2:l(),s=null;return;default:throw Error("unrecognized action "+e)}}),r},{})}return{Component:(0,i.forwardRef)(function(s,m){var b=s.children,w=function(e,t){if(null==e)return{};var r,i,a={},o=Object.keys(e);for(i=0;i=0||(a[r]=e[r]);return a}(s,V),k=(0,i.useState)(function(){var t,r;return t=new Map,y(r=function e(r){var i=r.id,a=r.constructor,o=r.dependencies,s=r.singleton;if(s&&t.has(i))return t.get(i);var l=a(o.map(function(t){return e(t)}));return s&&t.set(i,l),l}(e),w),r})[0],x=(0,i.useState)(l(_,k))[0];return W(function(){for(var e,t=q(d);!(e=t()).done;){var r=e.value;r in w&&(0,x[r])(1,w[r])}return function(){Object.values(x).map(v)}},[w,x,k]),W(function(){y(k,w)}),(0,i.useImperativeHandle)(m,p(u.reduce(function(e,r){return e[r]=function(e){g(k[t.methods[r]],e)},e},{}))),(0,i.createElement)(f.Provider,{value:k},r?(0,i.createElement)(r,function(e,t){for(var r={},i={},a=0,o=e.length;a=0||(a[r]=e[r]);return a}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var X,Q,ee="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;!function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(Q||(Q={}));var et=((X={})[Q.DEBUG]="debug",X[Q.INFO]="log",X[Q.WARN]="warn",X[Q.ERROR]="error",X),en=U(function(){var e=k(Q.ERROR);return{log:k(function(t,r,i){var a;void 0===i&&(i=Q.INFO),i>=(null!=(a=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?a:b(e))&&console[et[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,r)}),logLevel:e}},[],{singleton:!0});function er(e,t){void 0===t&&(t=!0);var r=(0,i.useRef)(null),a=function(e){};if("undefined"!=typeof ResizeObserver){var o=new ResizeObserver(function(t){var r=t[0].target;null!==r.offsetParent&&e(r)});a=function(e){e&&t?(o.observe(e),r.current=e):(r.current&&o.unobserve(r.current),r.current=null)}}return{ref:r,callbackRef:a}}function ei(e,t){return void 0===t&&(t=!0),er(e,t).callbackRef}function ea(e,t,r,i,a,o,s){return er(function(r){for(var l,u=function(e,t,r,i){var a=e.length;if(0===a)return null;for(var o=[],s=0;sMath.abs(e-t)}function el(e,t,r,a,o){void 0===a&&(a=m);var s=(0,i.useRef)(null),l=(0,i.useRef)(null),u=(0,i.useRef)(null),d=(0,i.useRef)(!1),p=(0,i.useCallback)(function(r){var i=r.target,a=i===window||i===document,o=a?window.pageYOffset||document.documentElement.scrollTop:i.scrollTop,s=a?document.documentElement.scrollHeight:i.scrollHeight,p=a?window.innerHeight:i.offsetHeight,f=function(){e({scrollTop:Math.max(o,0),scrollHeight:s,viewportHeight:p})};d.current?(0,G.flushSync)(f):f(),d.current=!1,null!==l.current&&(o===l.current||o<=0||o===s-p)&&(l.current=null,t(!0),u.current&&(clearTimeout(u.current),u.current=null))},[e,t]);return(0,i.useEffect)(function(){var e=o||s.current;return a(o||s.current),p({target:e}),e.addEventListener("scroll",p,{passive:!0}),function(){a(null),e.removeEventListener("scroll",p)}},[s,p,r,a,o]),{scrollerRef:s,scrollByCallback:function(e){d.current=!0,s.current.scrollBy(e)},scrollToCallback:function(r){var i=s.current;if(i&&(!("offsetHeight"in i)||0!==i.offsetHeight)){var a,o,d,p="smooth"===r.behavior;if(i===window?(o=Math.max(eo(document.documentElement,"height"),document.documentElement.scrollHeight),a=window.innerHeight,d=document.documentElement.scrollTop):(o=i.scrollHeight,a=eo(i,"height"),d=i.scrollTop),r.top=Math.ceil(Math.max(Math.min(o-a,r.top),0)),es(a,o)||r.top===d)return e({scrollTop:d,scrollHeight:o,viewportHeight:a}),void(p&&t(!0));p?(l.current=r.top,u.current&&clearTimeout(u.current),u.current=setTimeout(function(){u.current=null,l.current=null,t(!0)},1e3)):l.current=null,i.scrollTo(r)}}}}var ec=U(function(){var e=w(),t=w(),r=k(0),i=w(),a=k(0),o=w(),s=w(),l=k(0),u=k(0),d=k(0),p=k(0),f=w(),m=w(),g=k(!1),v=k(!1);return y(C(e,T(function(e){return e.scrollTop})),t),y(C(e,T(function(e){return e.scrollHeight})),s),y(t,a),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:l,fixedHeaderHeight:u,fixedFooterHeight:d,footerHeight:p,scrollHeight:s,smoothScrollTargetReached:i,react18ConcurrentRendering:v,scrollTo:f,scrollBy:m,statefulScrollTop:a,deviation:r,scrollingInProgress:g}},[],{singleton:!0}),eu={lvl:0};function ed(e,t,r,i,a){return void 0===i&&(i=eu),void 0===a&&(a=eu),{k:e,v:t,lvl:r,l:i,r:a}}function ep(e){return e===eu}function ef(e,t,r){if(void 0===r&&(r="k"),ep(e))return[-1/0,void 0];if(e[r]===t)return[e.k,e.v];if(e[r]e.r.lvl}function eb(e){var t=e.l,r=e.r,i=e.lvl;if(r.lvl>=i-1&&t.lvl>=i-1)return e;if(i>r.lvl+1){if(ev(t))return ek(eg(e,{lvl:i-1}));if(ep(t)||ep(t.r))throw Error("Unexpected empty nodes");return eg(t.r,{l:eg(t,{r:t.r.l}),r:eg(e,{l:t.r.r,lvl:i-1}),lvl:i})}if(ev(e))return ew(eg(e,{lvl:i-1}));if(ep(r)||ep(r.l))throw Error("Unexpected empty nodes");var a=r.l,o=ev(a)?r.lvl-1:r.lvl;return eg(a,{l:eg(e,{r:a.l,lvl:i-1}),r:ew(eg(r,{l:a.r,lvl:o})),lvl:a.lvl+1})}function ey(e,t,r){return ep(e)?[]:e_(function e(t,r,i){if(ep(t))return[];var a=t.k,o=t.v,s=t.r,l=[];return a>r&&(l=l.concat(e(t.l,r,i))),a>=r&&a<=i&&l.push({k:a,v:o}),a<=i&&(l=l.concat(e(s,r,i))),l}(e,ef(e,t)[0],r),function(e){return{index:e.k,value:e.v}})}function e_(e,t){var r=e.length;if(0===r)return[];for(var i=t(e[0]),a=i.index,o=i.value,s=[],l=1;l0&&(0,t[2])("received item sizes",r,Q.DEBUG);var o=e.sizeTree,s=o,l=0;if(i.length>0&&ep(o)&&2===r.length){var u=r[0].size,d=r[1].size;s=i.reduce(function(e,t){return eh(eh(e,t,u),t+1,d)},s)}else{var p=function(e,t){for(var r,i=ep(e)?0:1/0,a=J(t);!(r=a()).done;){var o=r.value,s=o.size,l=o.startIndex,u=o.endIndex;if(i=Math.min(i,l),ep(e))e=eh(e,0,s);else{var d=ey(e,l-1,u+1);if(!d.some(function(e){var t=e.size,r=e.startIndex,i=e.endIndex;return function(e){return e.start===r&&(e.end===i||1/0===e.end)&&e.value===t}}(o))){for(var p,f=!1,m=!1,g=J(d);!(p=g()).done;){var v=p.value,b=v.start,y=v.end,_=v.value;f?(u>=b||s===_)&&(e=function e(t,r){if(ep(t))return eu;var i=t.k,a=t.l,o=t.r;if(r===i){if(ep(a))return o;if(ep(o))return a;var s=function e(t){return ep(t.r)?[t.k,t.v]:e(t.r)}(a);return eb(eg(t,{k:s[0],v:s[1],l:function e(t){return ep(t.r)?t.l:eb(eg(t,{r:e(t.r)}))}(a)}))}return eb(eg(t,ru&&u>=b&&_!==s&&(e=eh(e,u+1,_))}m&&(e=eh(e,l,s))}}}return[e,i]}(s,r);s=p[0],l=p[1]}if(s===o)return e;var f=eD(e.offsetTree,l,s,a),m=f.offsetTree;return{sizeTree:s,offsetTree:m,lastIndex:f.lastIndex,lastOffset:f.lastOffset,lastSize:f.lastSize,groupOffsetTree:i.reduce(function(e,t){return eh(e,t,eT(t,m,a))},eu),groupIndices:i}}function eT(e,t,r){if(0===t.length)return 0;var i=t[ex(t,e,eF)],a=e-i.index,o=i.size*a+(a-1)*r+i.offset;return o>0?o+r:o}function eO(e,t,r){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;var i=eP("LAST"===e.index?r:e.index,t);return Math.max(0,i,Math.min(r,i))}function eP(e,t){if(!eR(t))return e;for(var r=0;t.groupIndices[r]<=e+r;)r++;return e+r}function eR(e){return!ep(e.groupOffsetTree)}var eM={offsetHeight:"height",offsetWidth:"width"},eL=U(function(e){var t=e[0].log,r=e[1].recalcInProgress,i=w(),a=w(),o=E(a,0),s=w(),l=w(),u=k(0),d=k([]),p=k(void 0),f=k(void 0),m=k(function(e,t){return eo(e,eM[t])}),v=k(void 0),_=k(0),F={offsetTree:[],sizeTree:eu,groupOffsetTree:eu,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},S=E(C(i,A(d,t,_),P(ej,F),D()),F);y(C(d,j(function(e){return e.length>0}),A(S,_),T(function(e){var t=e[0],r=e[1],i=e[2],a=t.reduce(function(e,t,a){return eh(e,t,eT(t,r.offsetTree,i)||a)},eu);return Y({},r,{groupIndices:t,groupOffsetTree:a})})),S),y(C(a,A(S),j(function(e){return e[0]0?(g(r,!0),g(s,e)):e<0&&g(l,e)}),C(u,A(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:u},Q.ERROR)});var M=x(s);y(C(s,A(S),T(function(e){var t=e[0],r=e[1];if(r.groupIndices.length>0)throw Error("Virtuoso: prepending items does not work with groups");return em(r.sizeTree).reduce(function(e,r){var i=r.k,a=r.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:i+t-1,size:e.prevSize}]),prevIndex:i+t,prevSize:a}},{ranges:[],prevIndex:0,prevSize:r.lastSize}).ranges})),i);var L=x(C(l,A(S,_),T(function(e){return eT(-e[0],e[1].offsetTree,e[2])})));return y(C(l,A(S,_),T(function(e){var t=e[0],r=e[1],i=e[2];if(r.groupIndices.length>0)throw Error("Virtuoso: shifting items does not work with groups");var a=em(r.sizeTree).reduce(function(e,r){var i=r.v;return eh(e,Math.max(0,r.k+t),i)},eu);return Y({},r,{sizeTree:a},eD(r.offsetTree,0,a,i))})),S),{data:v,totalCount:a,sizeRanges:i,groupIndices:d,defaultItemSize:f,fixedItemSize:p,unshiftWith:s,shiftWith:l,shiftWithOffset:L,beforeUnshiftWith:M,firstItemIndex:u,gap:_,sizes:S,listRefresh:R,statefulTotalCount:o,trackItemSizes:O,itemSize:m}},u(en,eE),{singleton:!0}),eA="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function eI(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eA||(t.behavior="auto"),t.offset||(t.offset=0),t}var eN=U(function(e){var t=e[0],r=t.sizes,i=t.totalCount,a=t.listRefresh,o=t.gap,s=e[1],l=s.scrollingInProgress,u=s.viewportHeight,d=s.scrollTo,p=s.smoothScrollTargetReached,f=s.headerHeight,m=s.footerHeight,v=s.fixedHeaderHeight,b=s.fixedFooterHeight,x=e[2].log,E=w(),F=k(0),S=null,D=null,j=null;function O(){S&&(S(),S=null),j&&(j(),j=null),D&&(clearTimeout(D),D=null),g(l,!1)}return y(C(E,A(r,u,i,F,f,m,x),A(o,v,b),T(function(e){var t=e[0],r=t[0],i=t[1],o=t[2],s=t[3],u=t[4],d=t[5],f=t[6],m=t[7],v=e[1],b=e[2],y=e[3],w=eI(r),k=w.align,x=w.behavior,F=w.offset,T=s-1,P=eO(w,i,T),R=eT(P,i.offsetTree,v)+d;"end"===k?(R+=b+ef(i.sizeTree,P)[1]-o+y,P===T&&(R+=f)):"center"===k?R+=(b+ef(i.sizeTree,P)[1]-o+y)/2:R-=u,F&&(R+=F);var M=function(e){O(),e?(m("retrying to scroll to",{location:r},Q.DEBUG),g(E,r)):m("list did not change, scroll successful",{},Q.DEBUG)};if(O(),"smooth"===x){var L=!1;j=a(1,function(e){L=L||e}),S=_(p,function(){M(L)})}else S=_(C(a,function(e){var t=setTimeout(function(){e(!1)},150);return function(r){r&&(e(!0),clearTimeout(t))}}),M);return D=setTimeout(function(){O()},1200),g(l,!0),m("scrolling from index to",{index:P,top:R,behavior:x},Q.DEBUG),{top:R,behavior:x}})),d),{scrollToIndex:E,topListHeight:F}},u(eL,ec,en),{singleton:!0}),eB={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},eU=U(function(e){var t=e[0],r=t.scrollContainerState,i=t.scrollTop,a=t.viewportHeight,o=t.headerHeight,s=t.footerHeight,l=t.scrollBy,u=k(!1),d=k(!0),p=w(),f=w(),m=k(4),g=k(0),v=E(C(I(C(N(i),R(1),O(!0)),C(N(i),R(1),O(!1),L(100))),D()),!1),_=E(C(I(C(l,O(!0)),C(l,O(!1),L(200))),D()),!1);y(C(B(N(i),N(g)),T(function(e){return e[0]<=e[1]}),D()),d),y(C(d,M(50)),f);var F=x(C(B(r,N(a),N(o),N(s),N(m)),P(function(e,t){var r,i,a=t[0],o=a.scrollTop,s=a.scrollHeight,l=t[1],u={viewportHeight:l,scrollTop:o,scrollHeight:s};return o+l-s>-t[4]?(o>e.state.scrollTop?(r="SCROLLED_DOWN",i=e.state.scrollTop-o):(r="SIZE_DECREASED",i=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,state:u,atBottomBecause:r,scrollTopDelta:i}):{atBottom:!1,notAtBottomBecause:u.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":lt+m-b&&(v="up"),(s-=d)0){s=e[0].offset;var u=e[e.length-1];l=u.offset+u.size}var d=r-a.lastIndex,p=s,f=a.lastOffset+d*a.lastSize+(d-1)*i-l;return{items:eQ(e,a,o),topItems:eQ(t,a,o),topListHeight:t.reduce(function(e,t){return t.size+e},0),offsetTop:s,offsetBottom:f,top:p,bottom:l,totalCount:r,firstItemIndex:o}}var e1=U(function(e){var t=e[0],r=t.sizes,i=t.totalCount,a=t.data,o=t.firstItemIndex,s=t.gap,l=e[1],u=e[2],d=u.visibleRange,p=u.listBoundary,f=u.topListHeight,m=e[3],g=m.scrolledToInitialItem,v=m.initialTopMostItemIndex,b=e[4].topListHeight,_=e[5],F=e[6].didMount,S=e[7].recalcInProgress,O=k([]),P=w();y(l.topItemsIndexes,O);var R=E(C(B(F,S,N(d,eG),N(i),N(r),N(v),g,N(O),N(o),N(s),a),j(function(e){return e[0]&&!e[1]}),T(function(e){var t,r,i,a,o,s,l,u=e[2],d=u[0],p=u[1],f=e[3],m=e[5],g=e[6],v=e[7],b=e[8],y=e[9],_=e[10],w=e[4],k=w.sizeTree,x=w.offsetTree;if(0===f||0===d&&0===p)return Y({},eX,{totalCount:f});if(ep(k))return e0(function(e,t,r){if(eR(t)){var i=eP(e,t);return[{index:ef(t.groupOffsetTree,i)[0],size:0,offset:0},{index:i,size:0,offset:0,data:r&&r[0]}]}return[{index:e,size:0,offset:0,data:r&&r[0]}]}("number"==typeof m?m:"LAST"===m.index?f-1:m.index,w,_),[],f,y,w,b);var E=[];if(v.length>0)for(var F,C=v[0],S=v[v.length-1],D=0,j=J(ey(k,C,S));!(F=j()).done;)for(var T=F.value,O=T.value,P=Math.max(T.start,C),R=Math.min(T.end,S),M=P;M<=R;M++)E.push({index:M,size:O,offset:D,data:_&&_[M]}),D+=O;if(!g)return e0([],E,f,y,w,b);var L=v.length>0?v[v.length-1]+1:0,A=(t=x,r=d,i=p,void 0===(a=L)&&(a=0),a>0&&(r=Math.max(r,t[ex(t,a,eF)].offset)),e_((o=ex(t,r,eC),s=ex(t,i,eC,o),t.slice(o,s+1)),eS));if(0===A.length)return null;var I=f-1;return e0((function(e){for(var t,r=J(A);!(t=r()).done;){var i=t.value,a=i.value,o=a.offset,s=i.start,l=a.size;if(a.offset=p);m++)e.push({index:m,size:l,offset:o,data:_&&_[m]}),o+=l+y}}(l=[]),l),E,f,y,w,b)}),j(function(e){return null!==e}),D()),eX);return y(C(a,j(function(e){return void 0!==e}),T(function(e){return e.length})),i),y(C(R,T(function(e){return e.topListHeight})),b),y(b,f),y(C(R,T(function(e){return[e.top,e.bottom]})),p),y(C(R,T(function(e){return e.items})),P),Y({listState:R,topItemsIndexes:O,endReached:x(C(R,j(function(e){return e.items.length>0}),A(i,a),j(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]]}),D(eG),T(function(e){return e[0]}))),startReached:x(C(R,M(200),j(function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length}),T(function(e){return e.items[0].index}),D())),rangeChanged:x(C(R,j(function(e){return e.items.length>0}),T(function(e){for(var t=e.items,r=0,i=t.length-1;"group"===t[r].type&&rr;)i--;return{startIndex:t[r].index,endIndex:t[i].index}}),D(eY))),itemsRendered:P},_)},u(eL,e$,eJ,eH,eN,eU,ez,eE),{singleton:!0}),e2=U(function(e){var t=e[0],r=t.sizes,i=t.firstItemIndex,a=t.data,o=t.gap,s=e[1].listState,l=e[2].didMount,u=k(0);return y(C(l,A(u),j(function(e){return 0!==e[1]}),A(r,i,o,a),T(function(e){var t=e[0][1],r=e[1],i=e[2],a=e[3],o=e[4],s=void 0===o?[]:o,l=0;if(r.groupIndices.length>0)for(var u,d=J(r.groupIndices);!((u=d()).done||u.value-l>=t);)l++;var p=t+l;return e0(Array.from({length:p}).map(function(e,t){return{index:t,size:0,offset:0,data:s[t]}}),[],p,a,r,i)})),s),{initialItemCount:u}},u(eL,e1,ez),{singleton:!0}),e3=U(function(e){var t=e[0].scrollVelocity,r=k(!1),i=w(),a=k(!1);return y(C(t,A(a,r,i),j(function(e){return!!e[1]}),T(function(e){var t=e[0],r=e[1],i=e[2],a=e[3],o=r.enter;if(i){if((0,r.exit)(t,a))return!1}else if(o(t,a))return!0;return i}),D()),r),C(B(r,t,i),A(a))(1,function(e){var t=e[0],r=e[1];return t[0]&&r&&r.change&&r.change(t[1],t[2])}),{isSeeking:r,scrollSeekConfiguration:a,scrollVelocity:t,scrollSeekRangeChanged:i}},u(eU),{singleton:!0}),e4=U(function(e){var t=e[0].topItemsIndexes,r=k(0);return y(C(r,j(function(e){return e>0}),T(function(e){return Array.from({length:e}).map(function(e,t){return t})})),t),{topItemCount:r}},u(e1)),e6=U(function(e){var t=e[0],r=t.footerHeight,i=t.headerHeight,a=t.fixedHeaderHeight,o=t.fixedFooterHeight,s=e[1].listState,l=w(),u=E(C(B(r,o,i,a,s),T(function(e){var t=e[4];return e[0]+e[1]+e[2]+e[3]+t.offsetBottom+t.bottom})),0);return y(N(u),l),{totalListHeight:u,totalListHeightChanged:l}},u(ec,e1),{singleton:!0});function e5(e){var t,r=!1;return function(){return r||(r=!0,t=e()),t}}var e8=e5(function(){return/iP(ad|hone|od).+Version\/[\d.]+.*Safari/i.test(navigator.userAgent)}),e9=U(function(e){var t=e[0],r=t.scrollBy,i=t.scrollTop,a=t.deviation,o=t.scrollingInProgress,s=e[1],l=s.isScrolling,u=s.isAtBottom,d=s.scrollDirection,p=e[3],f=p.beforeUnshiftWith,m=p.shiftWithOffset,v=p.sizes,b=p.gap,_=e[4].log,w=e[5].recalcInProgress,k=x(C(e[2].listState,A(s.lastJumpDueToItemResize),P(function(e,t){var r=e[1],i=t[0],a=i.items,o=i.totalCount,s=i.bottom+i.offsetBottom,l=0;return e[2]===o&&r.length>0&&a.length>0&&(0===a[0].originalIndex&&0===r[0].originalIndex||0!=(l=s-e[3])&&(l+=t[1])),[l,a,o,s]},[0,[],0,0]),j(function(e){return 0!==e[0]}),A(i,d,o,u,_),j(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},Q.DEBUG),t})));function F(e){e>0?(g(r,{top:-e,behavior:"auto"}),g(a,0)):(g(a,0),g(r,{top:-e,behavior:"auto"}))}return C(k,A(a,l))(1,function(e){var t=e[0],r=e[1];e[2]&&e8()?g(a,r-t):F(-t)}),C(B(E(l,!1),a,w),j(function(e){return!e[0]&&!e[2]&&0!==e[1]}),T(function(e){return e[1]}),M(1))(1,F),y(C(m,T(function(e){return{top:-e}})),r),C(f,A(v,b),T(function(e){var t=e[0];return t*e[1].lastSize+t*e[2]}))(1,function(e){g(a,e),requestAnimationFrame(function(){g(r,{top:e}),requestAnimationFrame(function(){g(a,0),g(w,!1)})})}),{deviation:a}},u(ec,eU,e1,eL,en,eE)),e7=U(function(e){var t=e[0].totalListHeight,r=e[1].didMount,i=e[2].scrollTo,a=k(0);return C(r,A(a),j(function(e){return 0!==e[1]}),T(function(e){return{top:e[1]}}))(1,function(e){_(C(t,j(function(e){return 0!==e})),function(){setTimeout(function(){g(i,e)})})}),{initialScrollTop:a}},u(e6,ez,ec),{singleton:!0}),te=U(function(e){var t=e[0].viewportHeight,r=e[1].totalListHeight,i=k(!1);return{alignToBottom:i,paddingTopAddition:E(C(B(i,t,r),j(function(e){return e[0]}),T(function(e){return Math.max(0,e[1]-e[2])}),D()),0)}},u(ec,e6),{singleton:!0}),tt=U(function(e){var t=e[0],r=t.scrollTo,i=t.scrollContainerState,a=w(),o=w(),s=w(),l=k(!1),u=k(void 0);return y(C(B(a,o),T(function(e){var t=e[0],r=t.viewportHeight,i=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:i,viewportHeight:r}})),i),y(C(r,A(o),T(function(e){var t=e[0];return Y({},t,{top:t.top+e[1].offsetTop})})),s),{useWindowScroll:l,customScrollParent:u,windowScrollContainerState:a,windowViewportRect:o,windowScrollTo:s}},u(ec)),tn=["done","behavior","align"],tr=U(function(e){var t=e[0],r=t.sizes,i=t.totalCount,a=t.gap,o=e[1],s=o.scrollTop,l=o.viewportHeight,u=o.headerHeight,d=o.fixedHeaderHeight,p=o.fixedFooterHeight,f=o.scrollingInProgress,m=e[2].scrollToIndex,g=w();return y(C(g,A(r,l,i,u,d,p,s),A(a),T(function(e){var t=e[0],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],d=t[7],p=e[1],m=r.done,g=r.behavior,v=r.align,b=K(r,tn),y=null,w=eO(r,i,o-1),k=eT(w,i.offsetTree,p)+s+l;return kd+a-u&&(y=Y({},b,{behavior:g,align:null!=v?v:"end"})),y?m&&_(C(f,R(1),j(function(e){return!1===e})),m):m&&m(),y}),j(function(e){return null!==e})),m),{scrollIntoView:g}},u(eL,ec,eN,e1,en),{singleton:!0}),ti=["listState","topItemsIndexes"],ta=U(function(e){return Y({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},u(eJ,e2,ez,e3,e6,e7,te,tt,tr)),to=U(function(e){var t=e[0],r=t.totalCount,i=t.sizeRanges,a=t.fixedItemSize,o=t.defaultItemSize,s=t.trackItemSizes,l=t.itemSize,u=t.data,d=t.firstItemIndex,p=t.groupIndices,f=t.statefulTotalCount,m=t.gap,g=e[1],v=g.initialTopMostItemIndex,b=g.scrolledToInitialItem,_=e[2],w=e[3],k=e[4],x=k.listState,E=k.topItemsIndexes,F=K(k,ti),S=e[5].scrollToIndex,D=e[7].topItemCount,j=e[8].groupCounts,O=e[9],P=e[10];return y(F.rangeChanged,O.scrollSeekRangeChanged),y(C(O.windowViewportRect,T(function(e){return e.visibleHeight})),_.viewportHeight),Y({totalCount:r,data:u,firstItemIndex:d,sizeRanges:i,initialTopMostItemIndex:v,scrolledToInitialItem:b,topItemsIndexes:E,topItemCount:D,groupCounts:j,fixedItemHeight:a,defaultItemHeight:o,gap:m},w,{statefulTotalCount:f,listState:x,scrollToIndex:S,trackItemSizes:s,itemSize:l,groupIndices:p},F,O,_,P)},u(eL,eH,ec,eV,e1,eN,e9,e4,e$,ta,en)),ts=e5(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 tl(e,t){var r=(0,i.useRef)(null),a=(0,i.useCallback)(function(i){if(null!==i&&i.offsetParent){var a,o,s=i.getBoundingClientRect(),l=s.width;if(t){var u=t.getBoundingClientRect(),d=s.top-u.top;a=u.height-Math.max(0,d),o=d+t.scrollTop}else a=window.innerHeight-Math.max(0,s.top),o=s.top+window.pageYOffset;r.current={offsetTop:o,visibleHeight:a,visibleWidth:l},e(r.current)}},[e,t]),o=er(a),s=o.callbackRef,l=o.ref,u=(0,i.useCallback)(function(){a(l.current)},[a,l]);return(0,i.useEffect)(function(){if(t){t.addEventListener("scroll",u);var e=new ResizeObserver(u);return e.observe(t),function(){t.removeEventListener("scroll",u),e.unobserve(t)}}return window.addEventListener("scroll",u),window.addEventListener("resize",u),function(){window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}},[u,t]),s}var tc=i.createContext(void 0),tu=["placeholder"],td=["style","children"],tp=["style","children"];function tf(e){return e}var th=U(function(){var e=k(function(e){return"Item "+e}),t=k(null),r=k(function(e){return"Group "+e}),i=k({}),a=k(tf),o=k("div"),s=k(m),l=function(e,t){return void 0===t&&(t=null),E(C(i,T(function(t){return t[e]}),D()),t)};return{context:t,itemContent:e,groupContent:r,components:i,computeItemKey:a,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),TopItemListComponent:l("TopItemList"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),GroupComponent:l("Group","div"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder")}});function tm(e,t){var r=w();return r(1,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")}),y(r,e),r}var tg=U(function(e){var t=e[0],r=e[1],i={item:tm(r.itemContent,"Rename the %citem%c prop to %citemContent."),group:tm(r.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:tm(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:tm(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:tm(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:w(),maxHeightCacheSize:w(),footer:w(),header:w(),HeaderContainer:w(),FooterContainer:w(),ItemContainer:w(),ScrollContainer:w(),GroupContainer:w(),ListContainer:w(),emptyComponent:w(),scrollSeek:w()};function a(e,t,i){y(C(e,A(r.components),T(function(e){var r,a=e[0],o=e[1];return console.warn("react-virtuoso: "+i+" property is deprecated. Pass components."+t+" instead."),Y({},o,((r={})[t]=a,r))})),r.components)}return(0,i.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,i.maxHeightCacheSize)(1,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")}),(0,i.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,i.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,i.scrollSeek)(1,function(e){var i=e.placeholder,a=K(e,tu);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),g(r.components,Y({},b(r.components),{ScrollSeekPlaceholder:i})),g(t.scrollSeekConfiguration,a)}),a(i.footer,"Footer","footer"),a(i.header,"Header","header"),a(i.ItemContainer,"Item","ItemContainer"),a(i.ListContainer,"List","ListContainer"),a(i.ScrollContainer,"Scroller","ScrollContainer"),a(i.emptyComponent,"EmptyPlaceholder","emptyComponent"),a(i.GroupContainer,"Group","GroupContainer"),Y({},t,r,i)},u(to,th)),tv=function(e){return i.createElement("div",{style:{height:e.height}})},tb={position:ts(),zIndex:1,overflowAnchor:"none"},ty={overflowAnchor:"none"},t_=i.memo(function(e){var t=e.showTopList,r=void 0!==t&&t,a=tL("listState"),o=tM("sizeRanges"),s=tL("useWindowScroll"),l=tL("customScrollParent"),u=tM("windowScrollContainerState"),d=tM("scrollContainerState"),p=tL("itemContent"),f=tL("context"),g=tL("groupContent"),v=tL("trackItemSizes"),b=ea(o,tL("itemSize"),v,r?m:l||s?u:d,tL("log"),tM("gap"),l).callbackRef,y=i.useState(0),_=y[0],w=y[1];tA("deviation",function(e){_!==e&&w(e)});var k=tL("EmptyPlaceholder"),x=tL("ScrollSeekPlaceholder")||tv,E=tL("ListComponent"),F=tL("ItemComponent"),C=tL("GroupComponent"),S=tL("computeItemKey"),D=tL("isSeeking"),j=tL("groupIndices").length>0,T=tL("paddingTopAddition"),O=r?{}:{boxSizing:"border-box",paddingTop:a.offsetTop+T,paddingBottom:a.offsetBottom,marginTop:_};return!r&&0===a.totalCount&&k?(0,i.createElement)(k,tE(k,f)):(0,i.createElement)(E,Y({},tE(E,f),{ref:b,style:O,"data-test-id":r?"virtuoso-top-item-list":"virtuoso-item-list"}),(r?a.topItems:a.items).map(function(e){var t=e.originalIndex,r=S(t+a.firstItemIndex,e.data,f);return D?(0,i.createElement)(x,Y({},tE(x,f),{key:r,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,i.createElement)(C,Y({},tE(C,f),{key:r,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:tb}),g(e.index)):(0,i.createElement)(F,Y({},tE(F,f),{key:r,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:ty}),j?p(e.index,e.groupIndex,e.data,f):p(e.index,e.data,f))}))}),tw={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tk={width:"100%",height:"100%",position:"absolute",top:0},tx={width:"100%",position:ts(),top:0};function tE(e,t){if("string"!=typeof e)return{context:t}}var tF=i.memo(function(){var e=tL("HeaderComponent"),t=tM("headerHeight"),r=tL("headerFooterTag"),a=ei(function(e){return t(eo(e,"height"))}),o=tL("context");return e?(0,i.createElement)(r,{ref:a},(0,i.createElement)(e,tE(e,o))):null}),tC=i.memo(function(){var e=tL("FooterComponent"),t=tM("footerHeight"),r=tL("headerFooterTag"),a=ei(function(e){return t(eo(e,"height"))}),o=tL("context");return e?(0,i.createElement)(r,{ref:a},(0,i.createElement)(e,tE(e,o))):null});function tS(e){var t=e.usePublisher,r=e.useEmitter,a=e.useEmitterValue;return i.memo(function(e){var o=e.style,s=e.children,l=K(e,td),u=t("scrollContainerState"),d=a("ScrollerComponent"),p=t("smoothScrollTargetReached"),f=a("scrollerRef"),m=a("context"),g=el(u,p,d,f),v=g.scrollerRef,b=g.scrollByCallback;return r("scrollTo",g.scrollToCallback),r("scrollBy",b),(0,i.createElement)(d,Y({ref:v,style:Y({},tw,o),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},l,tE(d,m)),s)})}function tD(e){var t=e.usePublisher,r=e.useEmitter,a=e.useEmitterValue;return i.memo(function(e){var o=e.style,s=e.children,l=K(e,tp),u=t("windowScrollContainerState"),d=a("ScrollerComponent"),p=t("smoothScrollTargetReached"),f=a("totalListHeight"),g=a("deviation"),v=a("customScrollParent"),b=a("context"),y=el(u,p,d,m,v),_=y.scrollerRef,w=y.scrollByCallback,k=y.scrollToCallback;return ee(function(){return _.current=v||window,function(){_.current=null}},[_,v]),r("windowScrollTo",k),r("scrollBy",w),(0,i.createElement)(d,Y({style:Y({position:"relative"},o,0!==f?{height:f+g}:{}),"data-virtuoso-scroller":!0},l,tE(d,b)),s)})}var tj=function(e){var t=e.children,r=(0,i.useContext)(tc),o=tM("viewportHeight"),s=tM("fixedItemHeight"),l=ei(a(o,function(e){return eo(e,"height")}));return i.useEffect(function(){r&&(o(r.viewportHeight),s(r.itemHeight))},[r,o,s]),i.createElement("div",{style:tk,ref:l,"data-viewport-type":"element"},t)},tT=function(e){var t=e.children,r=(0,i.useContext)(tc),a=tM("windowViewportRect"),o=tM("fixedItemHeight"),s=tl(a,tL("customScrollParent"));return i.useEffect(function(){r&&(o(r.itemHeight),a({offsetTop:0,visibleHeight:r.viewportHeight,visibleWidth:100}))},[r,a,o]),i.createElement("div",{ref:s,style:tk,"data-viewport-type":"window"},t)},tO=function(e){var t=e.children,r=tL("TopItemListComponent"),a=tL("headerHeight"),o=Y({},tx,{marginTop:a+"px"}),s=tL("context");return(0,i.createElement)(r||"div",{style:o,context:s},t)},tP=$(tg,{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=tL("useWindowScroll"),r=tL("topItemsIndexes").length>0,a=tL("customScrollParent");return i.createElement(a||t?tN:tI,Y({},e),i.createElement(a||t?tT:tj,null,i.createElement(tF,null),i.createElement(t_,null),i.createElement(tC,null)),r&&i.createElement(tO,null,i.createElement(t_,{showTopList:!0})))})),tR=tP.Component,tM=tP.usePublisher,tL=tP.useEmitterValue,tA=tP.useEmitter,tI=tS({usePublisher:tM,useEmitterValue:tL,useEmitter:tA}),tN=tD({usePublisher:tM,useEmitterValue:tL,useEmitter:tA}),tB={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tU={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tz=Math.round,tH=Math.ceil,tq=Math.floor,tV=Math.min,tW=Math.max;function t$(e,t){return Array.from({length:t-e+1}).map(function(t,r){return{index:r+e}})}function tG(e,t){return e&&e.column===t.column&&e.row===t.row}var tY=U(function(e){var t=e[0],r=t.overscan,i=t.visibleRange,a=t.listBoundary,o=e[1],s=o.scrollTop,l=o.viewportHeight,u=o.scrollBy,d=o.scrollTo,p=o.smoothScrollTargetReached,f=o.scrollContainerState,m=e[2],g=e[3],v=e[4],b=v.propsReady,_=v.didMount,F=e[5],S=F.windowViewportRect,P=F.windowScrollTo,R=F.useWindowScroll,M=F.customScrollParent,L=F.windowScrollContainerState,I=e[6],U=k(0),z=k(0),H=k(tB),q=k({height:0,width:0}),V=k({height:0,width:0}),W=w(),$=w(),G=k(0),K=k({row:0,column:0});y(C(_,A(z),j(function(e){return 0!==e[1]}),T(function(e){return{items:t$(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}})),H),y(C(B(N(U),i,N(K,tG),N(V,function(e,t){return e&&e.width===t.width&&e.height===t.height})),A(q),T(function(e){var t,r=e[0],i=r[0],a=r[1],o=a[0],s=a[1],l=r[2],u=r[3],d=e[1],p=l.row,f=u.height,m=u.width,g=d.width;if(0===i||0===g)return tB;if(0===m)return tU;var v=tW(1,tq((g+(t=l.column))/(m+t))),b=v*tq((o+p)/(f+p)),y=v*tH((s+p)/(f+p))-1;y=tW(0,tV(i-1,y));var _=t$(b=tV(y,tW(0,b)),y),w=tK(d,l,u,_),k=w.top,x=w.bottom,E=tH(i/v);return{items:_,offsetTop:k,offsetBottom:E*f+(E-1)*p-x,top:k,bottom:x,itemHeight:f,itemWidth:m}})),H),y(C(q,T(function(e){return e.height})),l),y(C(B(q,V,H,K),T(function(e){var t=tK(e[0],e[3],e[1],e[2].items);return[t.top,t.bottom]}),D(eG)),a);var Z=x(C(N(H),j(function(e){return e.items.length>0}),A(U),j(function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1}),T(function(e){return e[1]-1}),D())),J=x(C(N(H),j(function(e){var t=e.items;return t.length>0&&0===t[0].index}),O(0),D())),X=x(C(N(H),j(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}}),D(eY)));y(X,g.scrollSeekRangeChanged),y(C(W,A(q,V,U,K),T(function(e){var t=e[1],r=e[2],i=e[3],a=e[4],o=eI(e[0]),s=o.align,l=o.behavior,u=o.offset,d=o.index;"LAST"===d&&(d=i-1);var p=tZ(t,a,r,d=tW(0,d,tV(i-1,d)));return"end"===s?p=tz(p-t.height+r.height):"center"===s&&(p=tz(p-t.height/2+r.height/2)),u&&(p+=u),{top:p,behavior:l}})),d);var Q=E(C(H,T(function(e){return e.offsetBottom+e.bottom})),0);return y(C(S,T(function(e){return{width:e.visibleWidth,height:e.visibleHeight}})),q),Y({totalCount:U,viewportDimensions:q,itemDimensions:V,scrollTop:s,scrollHeight:$,overscan:r,scrollBy:u,scrollTo:d,scrollToIndex:W,smoothScrollTargetReached:p,windowViewportRect:S,windowScrollTo:P,useWindowScroll:R,customScrollParent:M,windowScrollContainerState:L,deviation:G,scrollContainerState:f,initialItemCount:z,gap:K},g,{gridState:H,totalListHeight:Q},m,{startReached:J,endReached:Z,rangeChanged:X,propsReady:b},I)},u(eJ,ec,eU,e3,ez,tt,en));function tK(e,t,r,i){var a=r.height;return void 0===a||0===i.length?{top:0,bottom:0}:{top:tZ(e,t,r,i[0].index),bottom:tZ(e,t,r,i[i.length-1].index)+a}}function tZ(e,t,r,i){var a,o,s,l=tq(i/(a=e.width,o=r.width,tW(1,tq((a+(s=t.column))/(o+s))))),u=l*r.height+tW(0,l-1)*t.row;return u>0?u+t.row:u}var tJ=["placeholder"],tX=U(function(){var e=k(function(e){return"Item "+e}),t=k({}),r=k(null),i=k("virtuoso-grid-item"),a=k("virtuoso-grid-list"),o=k(tf),s=k(m),l=function(e,r){return void 0===r&&(r=null),E(C(t,T(function(t){return t[e]}),D()),r)};return{context:r,itemContent:e,components:t,computeItemKey:o,itemClassName:i,listClassName:a,scrollerRef:s,ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),tQ=U(function(e){var t=e[0],r=e[1],i={item:tm(r.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:w(),ScrollContainer:w(),ListContainer:w(),emptyComponent:w(),scrollSeek:w()};function a(e,t,i){y(C(e,A(r.components),T(function(e){var r,a=e[0],o=e[1];return console.warn("react-virtuoso: "+i+" property is deprecated. Pass components."+t+" instead."),Y({},o,((r={})[t]=a,r))})),r.components)}return(0,i.scrollSeek)(1,function(e){var i=e.placeholder,a=K(e,tJ);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),g(r.components,Y({},b(r.components),{ScrollSeekPlaceholder:i})),g(t.scrollSeekConfiguration,a)}),a(i.ItemContainer,"Item","ItemContainer"),a(i.ListContainer,"List","ListContainer"),a(i.ScrollContainer,"Scroller","ScrollContainer"),Y({},t,r,i)},u(tY,tX)),t0=i.memo(function(){var e=t6("gridState"),t=t6("listClassName"),r=t6("itemClassName"),a=t6("itemContent"),o=t6("computeItemKey"),s=t6("isSeeking"),l=t4("scrollHeight"),u=t6("ItemComponent"),d=t6("ListComponent"),p=t6("ScrollSeekPlaceholder"),f=t6("context"),m=t4("itemDimensions"),g=t4("gap"),v=t6("log"),b=ei(function(e){l(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&m(t.getBoundingClientRect()),g({row:t7("row-gap",getComputedStyle(e).rowGap,v),column:t7("column-gap",getComputedStyle(e).columnGap,v)})});return(0,i.createElement)(d,Y({ref:b,className:t},tE(d,f),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map(function(t){var l=o(t.index);return s?(0,i.createElement)(p,Y({key:l},tE(p,f),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,i.createElement)(u,Y({},tE(u,f),{className:r,"data-index":t.index,key:l}),a(t.index,f))}))}),t1=function(e){var t=e.children,r=t4("viewportDimensions"),a=ei(function(e){r(e.getBoundingClientRect())});return i.createElement("div",{style:tk,ref:a},t)},t2=function(e){var t=e.children,r=tl(t4("windowViewportRect"),t6("customScrollParent"));return i.createElement("div",{ref:r,style:tk},t)},t3=$(tQ,{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=Y({},e),r=t6("useWindowScroll"),a=t6("customScrollParent");return i.createElement(a||r?t9:t8,Y({},t),i.createElement(a||r?t2:t1,null,i.createElement(t0,null)))})),t4=(t3.Component,t3.usePublisher),t6=t3.useEmitterValue,t5=t3.useEmitter,t8=tS({usePublisher:t4,useEmitterValue:t6,useEmitter:t5}),t9=tD({usePublisher:t4,useEmitterValue:t6,useEmitter:t5});function t7(e,t,r){return"normal"===t||null!=t&&t.endsWith("px")||r(e+" was not resolved to pixel value correctly",t,Q.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var ne=U(function(){var e=k(function(e){return i.createElement("td",null,"Item $",e)}),t=k(null),r=k(null),a=k(null),o=k({}),s=k(tf),l=k(m),u=function(e,t){return void 0===t&&(t=null),E(C(o,T(function(t){return t[e]}),D()),t)};return{context:t,itemContent:e,fixedHeaderContent:r,fixedFooterContent:a,components:o,computeItemKey:s,scrollerRef:l,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}}),nt=U(function(e){return Y({},e[0],e[1])},u(to,ne)),nn=function(e){return i.createElement("tr",null,i.createElement("td",{style:{height:e.height}}))},nr=function(e){return i.createElement("tr",null,i.createElement("td",{style:{height:e.height,padding:0,border:0}}))},ni=i.memo(function(){var e=nc("listState"),t=nl("sizeRanges"),r=nc("useWindowScroll"),a=nc("customScrollParent"),o=nl("windowScrollContainerState"),s=nl("scrollContainerState"),l=nc("itemContent"),u=nc("trackItemSizes"),d=ea(t,nc("itemSize"),u,a||r?o:s,nc("log"),void 0,a),p=d.callbackRef,f=d.ref,m=i.useState(0),g=m[0],v=m[1];nu("deviation",function(e){g!==e&&(f.current.style.marginTop=e+"px",v(e))});var b=nc("EmptyPlaceholder"),y=nc("ScrollSeekPlaceholder")||nn,_=nc("FillerRow")||nr,w=nc("TableBodyComponent"),k=nc("TableRowComponent"),x=nc("computeItemKey"),E=nc("isSeeking"),F=nc("paddingTopAddition"),C=nc("firstItemIndex"),S=nc("statefulTotalCount"),D=nc("context");if(0===S&&b)return(0,i.createElement)(b,tE(b,D));var j=e.offsetTop+F+g,T=e.offsetBottom,O=j>0?i.createElement(_,{height:j,key:"padding-top"}):null,P=T>0?i.createElement(_,{height:T,key:"padding-bottom"}):null,R=e.items.map(function(e){var t=e.originalIndex,r=x(t+C,e.data,D);return E?(0,i.createElement)(y,Y({},tE(y,D),{key:r,index:e.index,height:e.size,type:e.type||"item"})):(0,i.createElement)(k,Y({},tE(k,D),{key:r,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),l(e.index,e.data,D))});return(0,i.createElement)(w,Y({ref:p,"data-test-id":"virtuoso-item-list"},tE(w,D)),[O].concat(R,[P]))}),na=function(e){var t=e.children,r=(0,i.useContext)(tc),o=nl("viewportHeight"),s=nl("fixedItemHeight"),l=ei(a(o,function(e){return eo(e,"height")}));return i.useEffect(function(){r&&(o(r.viewportHeight),s(r.itemHeight))},[r,o,s]),i.createElement("div",{style:tk,ref:l,"data-viewport-type":"element"},t)},no=function(e){var t=e.children,r=(0,i.useContext)(tc),a=nl("windowViewportRect"),o=nl("fixedItemHeight"),s=tl(a,nc("customScrollParent"));return i.useEffect(function(){r&&(o(r.itemHeight),a({offsetTop:0,visibleHeight:r.viewportHeight,visibleWidth:100}))},[r,a,o]),i.createElement("div",{ref:s,style:tk,"data-viewport-type":"window"},t)},ns=$(nt,{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=nc("useWindowScroll"),r=nc("customScrollParent"),o=nl("fixedHeaderHeight"),s=nl("fixedFooterHeight"),l=nc("fixedHeaderContent"),u=nc("fixedFooterContent"),d=nc("context"),p=ei(a(o,function(e){return eo(e,"height")})),f=ei(a(s,function(e){return eo(e,"height")})),m=r||t?np:nd,g=r||t?no:na,v=nc("TableComponent"),b=nc("TableHeadComponent"),y=nc("TableFooterComponent"),_=l?i.createElement(b,Y({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:p},tE(b,d)),l()):null,w=u?i.createElement(y,Y({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:f},tE(y,d)),u()):null;return i.createElement(m,Y({},e),i.createElement(g,null,i.createElement(v,Y({style:{borderSpacing:0}},tE(v,d)),[_,i.createElement(ni,{key:"TableBody"}),w])))})),nl=(ns.Component,ns.usePublisher),nc=ns.useEmitterValue,nu=ns.useEmitter,nd=tS({usePublisher:nl,useEmitterValue:nc,useEmitter:nu}),np=tD({usePublisher:nl,useEmitterValue:nc,useEmitter:nu}),nf=tR},8008:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this._hasValue,i=this._value,a=this.thrownError,o=this.isStopped,s=this._isComplete;t?e.error(a):(o||s)&&(r&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this._hasValue,r=this._value;this._isComplete||(this._isComplete=!0,t&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(r(45164).Subject);t.AsyncSubject=a},40290:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var a=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(45164).Subject);t.BehaviorSubject=a},24666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var i=r(3874),a=r(22651),o=r(90512),s=r(53062);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(t.NotificationKind||(t.NotificationKind={}));var l=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var i=this.kind,a=this.value,o=this.error;return"N"===i?null==e?void 0:e(a):"E"===i?null==t?void 0:t(o):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return s.isFunction(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,s="N"===e?a.of(t):"E"===e?o.throwError(function(){return r}):"C"===e?i.EMPTY:0;if(!s)throw TypeError("Unexpected notification kind "+e);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,i,a,o=e.kind,s=e.value,l=e.error;if("string"!=typeof o)throw TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,s):"E"===o?null===(i=t.error)||void 0===i||i.call(t,l):null===(a=t.complete)||void 0===a||a.call(t)}t.Notification=l,t.observeNotification=u},19158:(e,t)=>{"use strict";function r(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=r("C",void 0,void 0),t.errorNotification=function(e){return r("E",void 0,e)},t.nextNotification=function(e){return r("N",e,void 0)},t.createNotification=r},10693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var i=r(94971),a=r(48268),o=r(17336),s=r(95348),l=r(9261),u=r(53062),d=r(68653),p=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,s=this,l=(o=e)&&o instanceof i.Subscriber||o&&u.isFunction(o.next)&&u.isFunction(o.error)&&u.isFunction(o.complete)&&a.isSubscription(o)?e:new i.SafeSubscriber(e,t,r);return d.errorContext(function(){var e=s.operator,t=s.source;l.add(e?e.call(l,t):t?s._subscribe(l):s._trySubscribe(l))}),l},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=f(t))(function(t,a){var o=new i.SafeSubscriber({next:function(t){try{e(t)}catch(e){a(e),o.unsubscribe()}},error:a,complete:t});r.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.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var a=r(45164),o=r(25530),s=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=o.dateTimestampProvider);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,r),a}return i(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,a=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(i.push(t),a||i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var i=r(25530),a=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=i.dateTimestampProvider.now,e}();t.Scheduler=a},45164:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var o=r(10693),s=r(48268),l=r(30166),u=r(62929),d=r(68653),p=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;d.errorContext(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;d.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;d.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},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,r=this.hasError,i=this.isStopped,a=this.observers;return r||i?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(e),new s.Subscription(function(){t.currentObservers=null,u.arrRemove(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new o.Observable;return e.source=this,e},t.create=function(e,t){return new f(e,t)},t}(o.Observable);t.Subject=p;var f=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:s.EMPTY_SUBSCRIPTION},t}(p);t.AnonymousSubject=f},94971:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var a=r(53062),o=r(48268),s=r(9261),l=r(24210),u=r(73355),d=r(19158),p=r(31957),f=r(68653),m=function(e){function r(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,o.isSubscription(r)&&r.add(i)):i.destination=t.EMPTY_OBSERVER,i}return i(r,e),r.create=function(e,t,r){return new y(e,t,r)},r.prototype.next=function(e){this.isStopped?w(d.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?w(d.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?w(d.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(o.Subscription);t.Subscriber=m;var g=Function.prototype.bind;function v(e,t){return g.call(e,t)}var b=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){_(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){_(e)}else _(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){_(e)}},e}(),y=function(e){function t(t,r,i){var o,l,u=e.call(this)||this;return a.isFunction(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=i?i:void 0}:u&&s.config.useDeprecatedNextContext?((l=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},o={next:t.next&&v(t.next,l),error:t.error&&v(t.error,l),complete:t.complete&&v(t.complete,l)}):o=t,u.destination=new b(o),u}return i(t,e),t}(m);function _(e){s.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):l.reportUnhandledError(e)}function w(e,t){var r=s.config.onStoppedNotification;r&&p.timeoutProvider.setTimeout(function(){return r(e,t)})}t.SafeSubscriber=y,t.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}},48268:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},o=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9422:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var a=r(10693),o=r(48268),s=r(26638),l=r(96526),u=r(31714),d=function(e){function t(t,r){var i=e.call(this)||this;return i.source=t,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,u.hasLift(t)&&(i.lift=t.lift),i}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new o.Subscription;var r=this.getSubject();t.add(this.source.subscribe(l.createOperatorSubscriber(r,void 0,function(){e._teardown(),r.complete()},function(t){e._teardown(),r.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=o.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return s.refCount()(this)},t}(a.Observable);t.ConnectableObservable=d},89469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var i=r(10693),a=r(62338),o=r(24988),s=r(31487),l=r(1031),u=r(13261),d=r(72733),p=r(96526),f=r(53946);function m(e,t,r){return void 0===r&&(r=s.identity),function(i){g(t,function(){for(var a=e.length,s=Array(a),l=a,u=a,d=function(a){g(t,function(){var d=o.from(e[a],t),f=!1;d.subscribe(p.createOperatorSubscriber(i,function(e){s[a]=e,!f&&(f=!0,u--),u||i.next(r(s.slice()))},function(){--l||i.complete()}))},i)},f=0;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var i=r(79429),a=r(13261),o=r(24988);t.concat=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var i=r(10693);t.EMPTY=new i.Observable(function(e){return e.complete()}),t.empty=function(e){return e?new i.Observable(function(t){return e.schedule(function(){return t.complete()})}):t.EMPTY}},24988:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var i=r(26568),a=r(21435);t.from=function(e,t){return t?i.scheduled(e,t):a.innerFrom(e)}},11867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var i=r(10693);t.fromSubscribable=function(e){return new i.Observable(function(t){return e.subscribe(t)})}},21435:(e,t,r)=>{"use strict";var i=function(e,t){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var s=r(78685),l=r(57452),u=r(10693),d=r(99105),p=r(28220),f=r(83205),m=r(31214),g=r(36696),v=r(53062),b=r(24210),y=r(17336);function _(e){return new u.Observable(function(t){var r=e[y.observable]();if(v.isFunction(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function w(e){return new u.Observable(function(t){for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var i=r(69210),a=r(50603);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=i.asyncScheduler),e<0&&(e=0),a.timer(e,e,t)}},22651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var i=r(13261),a=r(24988);t.of=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var i=r(10693),a=r(14841),o=r(96526),s=r(73355),l=r(21435);t.onErrorResumeNext=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var i=r(10693),a=r(21435),o=r(14841),s=r(96526);function l(e){return function(t){for(var r=[],i=function(i){r.push(a.innerFrom(e[i]).subscribe(s.createOperatorSubscriber(t,function(e){if(r){for(var a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var i=r(10693),a=r(53062);t.throwError=function(e,t){var r=a.isFunction(e)?e:function(){return e},o=function(e){return e.error(r())};return new i.Observable(t?function(e){return t.schedule(o,0,e)}:o)}},50603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var i=r(10693),a=r(69210),o=r(2773),s=r(68699);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=a.async);var l=-1;return null!=t&&(o.isScheduler(t)?r=t:l=t),new i.Observable(function(t){var i=s.isValidDate(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){t.closed||(t.next(a++),0<=l?this.schedule(void 0,l):t.complete())},i)})}},69555:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var a=r(94971);t.createOperatorSubscriber=function(e,t,r,i,a){return new o(e,t,r,i,a)};var o=function(e){function t(t,r,i,a,o,s){var l=e.call(this,t)||this;return l.onFinalize=o,l.shouldUnsubscribe=s,l._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,l._error=a?function(e){try{a(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,l}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(a.Subscriber);t.OperatorSubscriber=o},29750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var i=r(31714),a=r(21435),o=r(96526);t.audit=function(e){return i.operate(function(t,r){var i=!1,s=null,l=null,u=!1,d=function(){if(null==l||l.unsubscribe(),l=null,i){i=!1;var e=s;s=null,r.next(e)}u&&r.complete()},p=function(){l=null,u&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,function(t){i=!0,s=t,l||a.innerFrom(e(t)).subscribe(l=o.createOperatorSubscriber(r,d,p))},function(){u=!0,i&&l&&!l.closed||r.complete()}))})}},57070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var i=r(69210),a=r(29750),o=r(50603);t.auditTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),a.audit(function(){return o.timer(e,t)})}},84768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var i=r(31714),a=r(73355),o=r(96526),s=r(21435);t.buffer=function(e){return i.operate(function(t,r){var i=[];return t.subscribe(o.createOperatorSubscriber(r,function(e){return i.push(e)},function(){r.next(i),r.complete()})),s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){var e=i;i=[],r.next(e)},a.noop)),function(){i=null}})}},59152:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var a=r(31714),o=r(96526),s=r(62929);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,a.operate(function(r,a){var l=[],u=0;r.subscribe(o.createOperatorSubscriber(a,function(r){var o,d,p,f,m=null;u++%t==0&&l.push([]);try{for(var g=i(l),v=g.next();!v.done;v=g.next()){var b=v.value;b.push(r),e<=b.length&&(m=null!=m?m:[]).push(b)}}catch(e){o={error:e}}finally{try{v&&!v.done&&(d=g.return)&&d.call(g)}finally{if(o)throw o.error}}if(m)try{for(var y=i(m),_=y.next();!_.done;_=y.next()){var b=_.value;s.arrRemove(l,b),a.next(b)}}catch(e){p={error:e}}finally{try{_&&!_.done&&(f=y.return)&&f.call(y)}finally{if(p)throw p.error}}},function(){var e,t;try{for(var r=i(l),o=r.next();!o.done;o=r.next()){var s=o.value;a.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}a.complete()},void 0,function(){l=null}))})}},11915:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var a=r(48268),o=r(31714),s=r(96526),l=r(62929),u=r(69210),d=r(13261),p=r(53946);t.bufferTime=function(e){for(var t,r,f=[],m=1;m=0?p.executeSchedule(r,g,f,v,!0):u=!0,f();var m=s.createOperatorSubscriber(r,function(e){var t,r,a=o.slice();try{for(var s=i(a),l=s.next();!l.done;l=s.next()){var u=l.value,p=u.buffer;p.push(e),b<=p.length&&d(u)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}},function(){for(;null==o?void 0:o.length;)r.next(o.shift().buffer);null==m||m.unsubscribe(),r.complete(),r.unsubscribe()},void 0,function(){return o=null});t.subscribe(m)})}},24612:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var a=r(48268),o=r(31714),s=r(21435),l=r(96526),u=r(73355),d=r(62929);t.bufferToggle=function(e,t){return o.operate(function(r,o){var p=[];s.innerFrom(e).subscribe(l.createOperatorSubscriber(o,function(e){var r=[];p.push(r);var i=new a.Subscription;i.add(s.innerFrom(t(e)).subscribe(l.createOperatorSubscriber(o,function(){d.arrRemove(p,r),o.next(r),i.unsubscribe()},u.noop)))},u.noop)),r.subscribe(l.createOperatorSubscriber(o,function(e){var t,r;try{for(var a=i(p),o=a.next();!o.done;o=a.next())o.value.push(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},function(){for(;p.length>0;)o.next(p.shift());o.complete()}))})}},35162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var i=r(31714),a=r(73355),o=r(96526),s=r(21435);t.bufferWhen=function(e){return i.operate(function(t,r){var i=null,l=null,u=function(){null==l||l.unsubscribe();var t=i;i=[],t&&r.next(t),s.innerFrom(e()).subscribe(l=o.createOperatorSubscriber(r,u,a.noop))};u(),t.subscribe(o.createOperatorSubscriber(r,function(e){return null==i?void 0:i.push(e)},function(){i&&r.next(i),r.complete()},void 0,function(){return i=l=null}))})}},26173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var i=r(21435),a=r(96526),o=r(31714);t.catchError=function e(t){return o.operate(function(r,o){var s,l=null,u=!1;l=r.subscribe(a.createOperatorSubscriber(o,void 0,void 0,function(a){s=i.innerFrom(t(a,e(t)(r))),l?(l.unsubscribe(),l=null,s.subscribe(o)):u=!0})),u&&(l.unsubscribe(),l=null,s.subscribe(o))})}},24162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var i=r(67619);t.combineAll=i.combineLatestAll},93697:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var i=r(89469),a=r(1452);t.combineLatestAll=function(e){return a.joinAllInternals(i.combineLatest,e)}},7588:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var i=r(79791);t.concatAll=function(){return i.mergeAll(1)}},42408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var i=r(30714),a=r(53062);t.concatMap=function(e,t){return a.isFunction(t)?i.mergeMap(e,t,1):i.mergeMap(e,1)}},45327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var i=r(42408),a=r(53062);t.concatMapTo=function(e,t){return a.isFunction(t)?i.concatMap(function(){return e},t):i.concatMap(function(){return e})}},86162:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var i=r(45164),a=r(21435),o=r(31714),s=r(11867),l={connector:function(){return new i.Subject}};t.connect=function(e,t){void 0===t&&(t=l);var r=t.connector;return o.operate(function(t,i){var o=r();a.innerFrom(e(s.fromSubscribable(o))).subscribe(i),i.add(t.subscribe(o))})}},31354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var i=r(98839);t.count=function(e){return i.reduce(function(t,r,i){return!e||e(r,i)?t+1:t},0)}},25831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var i=r(31714),a=r(73355),o=r(96526),s=r(21435);t.debounce=function(e){return i.operate(function(t,r){var i=!1,l=null,u=null,d=function(){if(null==u||u.unsubscribe(),u=null,i){i=!1;var e=l;l=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,function(t){null==u||u.unsubscribe(),i=!0,l=t,u=o.createOperatorSubscriber(r,d,a.noop),s.innerFrom(e(t)).subscribe(u)},function(){d(),r.complete()},void 0,function(){l=u=null}))})}},18338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var i=r(69210),a=r(31714),o=r(96526);t.debounceTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),a.operate(function(r,i){var a=null,s=null,l=null,u=function(){if(a){a.unsubscribe(),a=null;var e=s;s=null,i.next(e)}};function d(){var r=l+e,o=t.now();if(o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var i=r(31714),a=r(96526);t.defaultIfEmpty=function(e){return i.operate(function(t,r){var i=!1;t.subscribe(a.createOperatorSubscriber(r,function(e){i=!0,r.next(e)},function(){i||r.next(e),r.complete()}))})}},10296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var i=r(69210),a=r(1558),o=r(50603);t.delay=function(e,t){void 0===t&&(t=i.asyncScheduler);var r=o.timer(e,t);return a.delayWhen(function(){return r})}},1558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var i=r(73691),a=r(20261),o=r(67549),s=r(51084),l=r(30714),u=r(21435);t.delayWhen=function e(t,r){return r?function(s){return i.concat(r.pipe(a.take(1),o.ignoreElements()),s.pipe(e(t)))}:l.mergeMap(function(e,r){return u.innerFrom(t(e,r)).pipe(a.take(1),s.mapTo(e))})}},33681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var i=r(24666),a=r(31714),o=r(96526);t.dematerialize=function(){return a.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){return i.observeNotification(e,t)}))})}},8472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var i=r(31714),a=r(96526),o=r(73355),s=r(21435);t.distinct=function(e,t){return i.operate(function(r,i){var l=new Set;r.subscribe(a.createOperatorSubscriber(i,function(t){var r=e?e(t):t;l.has(r)||(l.add(r),i.next(t))})),t&&s.innerFrom(t).subscribe(a.createOperatorSubscriber(i,function(){return l.clear()},o.noop))})}},1035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var i=r(31487),a=r(31714),o=r(96526);function s(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=i.identity),e=null!=e?e:s,a.operate(function(r,i){var a,s=!0;r.subscribe(o.createOperatorSubscriber(i,function(r){var o=t(r);(s||!e(a,o))&&(s=!1,a=o,i.next(r))}))})}},54238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var i=r(1035);t.distinctUntilKeyChanged=function(e,t){return i.distinctUntilChanged(function(r,i){return t?t(r[e],i[e]):r[e]===i[e]})}},66235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var i=r(26531),a=r(56235),o=r(47846),s=r(11683),l=r(20261);t.elementAt=function(e,t){if(e<0)throw new i.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(u){return u.pipe(a.filter(function(t,r){return r===e}),l.take(1),r?s.defaultIfEmpty(t):o.throwIfEmpty(function(){return new i.ArgumentOutOfRangeError}))}}},44905:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var i=r(31714),a=r(96526);t.every=function(e,t){return i.operate(function(r,i){var o=0;r.subscribe(a.createOperatorSubscriber(i,function(a){e.call(t,a,o++,r)||(i.next(!1),i.complete())},function(){i.next(!0),i.complete()}))})}},75359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var i=r(37210);t.exhaust=i.exhaustAll},37210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var i=r(2115),a=r(31487);t.exhaustAll=function(){return i.exhaustMap(a.identity)}},2115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var i=r(71971),a=r(21435),o=r(31714),s=r(96526);t.exhaustMap=function e(t,r){return r?function(o){return o.pipe(e(function(e,o){return a.innerFrom(t(e,o)).pipe(i.map(function(t,i){return r(e,t,o,i)}))}))}:o.operate(function(e,r){var i=0,o=null,l=!1;e.subscribe(s.createOperatorSubscriber(r,function(e){o||(o=s.createOperatorSubscriber(r,void 0,function(){o=null,l&&r.complete()}),a.innerFrom(t(e,i++)).subscribe(o))},function(){l=!0,o||r.complete()}))})}},60806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var i=r(31714),a=r(29078);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=1>(t||0)?1/0:t,i.operate(function(i,o){return a.mergeInternals(i,o,e,t,void 0,!0,r)})}},56235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var i=r(31714),a=r(96526);t.filter=function(e,t){return i.operate(function(r,i){var o=0;r.subscribe(a.createOperatorSubscriber(i,function(r){return e.call(t,r,o++)&&i.next(r)}))})}},33699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var i=r(31714);t.finalize=function(e){return i.operate(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}},71851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var i=r(31714),a=r(96526);function o(e,t,r){var i="index"===r;return function(r,o){var s=0;r.subscribe(a.createOperatorSubscriber(o,function(a){var l=s++;e.call(t,a,l,r)&&(o.next(i?l:a),o.complete())},function(){o.next(i?-1:void 0),o.complete()}))}}t.find=function(e,t){return i.operate(o(e,t,"value"))},t.createFind=o},77568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var i=r(31714),a=r(71851);t.findIndex=function(e,t){return i.operate(a.createFind(e,t,"index"))}},44252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var i=r(30206),a=r(56235),o=r(20261),s=r(11683),l=r(47846),u=r(31487);t.first=function(e,t){var r=arguments.length>=2;return function(d){return d.pipe(e?a.filter(function(t,r){return e(t,r,d)}):u.identity,o.take(1),r?s.defaultIfEmpty(t):l.throwIfEmpty(function(){return new i.EmptyError}))}}},5543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var i=r(30714);t.flatMap=i.mergeMap},58807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var i=r(10693),a=r(21435),o=r(45164),s=r(31714),l=r(96526);t.groupBy=function(e,t,r,u){return s.operate(function(s,d){t&&"function"!=typeof t?(r=t.duration,p=t.element,u=t.connector):p=t;var p,f=new Map,m=function(e){f.forEach(e),e(d)},g=function(e){return m(function(t){return t.error(e)})},v=0,b=!1,y=new l.OperatorSubscriber(d,function(t){try{var s=e(t),m=f.get(s);if(!m){f.set(s,m=u?u():new o.Subject);var _,w,k=(_=m,(w=new i.Observable(function(e){v++;var t=_.subscribe(e);return function(){t.unsubscribe(),0==--v&&b&&y.unsubscribe()}})).key=s,w);if(d.next(k),r){var x=l.createOperatorSubscriber(m,function(){m.complete(),null==x||x.unsubscribe()},void 0,void 0,function(){return f.delete(s)});y.add(a.innerFrom(r(k)).subscribe(x))}}m.next(p?p(t):t)}catch(e){g(e)}},function(){return m(function(e){return e.complete()})},g,function(){return f.clear()},function(){return b=!0,0===v});s.subscribe(y)})}},67549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var i=r(31714),a=r(96526),o=r(73355);t.ignoreElements=function(){return i.operate(function(e,t){e.subscribe(a.createOperatorSubscriber(t,o.noop))})}},26192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var i=r(31714),a=r(96526);t.isEmpty=function(){return i.operate(function(e,t){e.subscribe(a.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}},1452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var i=r(31487),a=r(1031),o=r(95348),s=r(30714),l=r(54301);t.joinAllInternals=function(e,t){return o.pipe(l.toArray(),s.mergeMap(function(t){return e(t)}),t?a.mapOneOrManyArgs(t):i.identity)}},55777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var i=r(30206),a=r(56235),o=r(54894),s=r(47846),l=r(11683),u=r(31487);t.last=function(e,t){var r=arguments.length>=2;return function(d){return d.pipe(e?a.filter(function(t,r){return e(t,r,d)}):u.identity,o.takeLast(1),r?l.defaultIfEmpty(t):s.throwIfEmpty(function(){return new i.EmptyError}))}}},71971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var i=r(31714),a=r(96526);t.map=function(e,t){return i.operate(function(r,i){var o=0;r.subscribe(a.createOperatorSubscriber(i,function(r){i.next(e.call(t,r,o++))}))})}},51084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var i=r(71971);t.mapTo=function(e){return i.map(function(){return e})}},4329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var i=r(24666),a=r(31714),o=r(96526);t.materialize=function(){return a.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){t.next(i.Notification.createNext(e))},function(){t.next(i.Notification.createComplete()),t.complete()},function(e){t.next(i.Notification.createError(e)),t.complete()}))})}},21471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var i=r(98839),a=r(53062);t.max=function(e){return i.reduce(a.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},4449:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var i=r(30714),a=r(31487);t.mergeAll=function(e){return void 0===e&&(e=1/0),i.mergeMap(a.identity,e)}},29078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var i=r(21435),a=r(53946),o=r(96526);t.mergeInternals=function(e,t,r,s,l,u,d,p){var f=[],m=0,g=0,v=!1,b=function(){!v||f.length||m||t.complete()},y=function(e){return m{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var i=r(71971),a=r(21435),o=r(31714),s=r(29078),l=r(53062);t.mergeMap=function e(t,r,u){return(void 0===u&&(u=1/0),l.isFunction(r))?e(function(e,o){return i.map(function(t,i){return r(e,t,o,i)})(a.innerFrom(t(e,o)))},u):("number"==typeof r&&(u=r),o.operate(function(e,r){return s.mergeInternals(e,r,t,u)}))}},64407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var i=r(30714),a=r(53062);t.mergeMapTo=function(e,t,r){return(void 0===r&&(r=1/0),a.isFunction(t))?i.mergeMap(function(){return e},t,r):("number"==typeof t&&(r=t),i.mergeMap(function(){return e},r))}},56801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var i=r(31714),a=r(29078);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),i.operate(function(i,o){var s=t;return a.mergeInternals(i,o,function(t,r){return e(s,t,r)},r,function(e){s=e},!1,void 0,function(){return s=null})})}},27828:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var i=r(98839),a=r(53062);t.min=function(e){return i.reduce(a.isFunction(e)?function(t,r){return 0>e(t,r)?t:r}:function(e,t){return e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var i=r(9422),a=r(53062),o=r(40841);t.multicast=function(e,t){var r=a.isFunction(e)?e:function(){return e};return a.isFunction(t)?o.connect(t,{connector:r}):function(e){return new i.ConnectableObservable(e,r)}}},87195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var i=r(53946),a=r(31714),o=r(96526);t.observeOn=function(e,t){return void 0===t&&(t=0),a.operate(function(r,a){r.subscribe(o.createOperatorSubscriber(a,function(r){return i.executeSchedule(a,e,function(){return a.next(r)},t)},function(){return i.executeSchedule(a,e,function(){return a.complete()},t)},function(r){return i.executeSchedule(a,e,function(){return a.error(r)},t)}))})}},96466:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var i=r(31714),a=r(96526);t.pairwise=function(){return i.operate(function(e,t){var r,i=!1;e.subscribe(a.createOperatorSubscriber(t,function(e){var a=r;r=e,i&&t.next([a,e]),i=!0}))})}},19124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var i=r(12340),a=r(56235);t.partition=function(e,t){return function(r){return[a.filter(e,t)(r),a.filter(i.not(e,t))(r)]}}},67954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var i=r(71971);t.pluck=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var i=r(45164),a=r(54707),o=r(40841);t.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return a.multicast(new i.Subject)(e)}}},63408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var i=r(40290),a=r(9422);t.publishBehavior=function(e){return function(t){var r=new i.BehaviorSubject(e);return new a.ConnectableObservable(t,function(){return r})}}},37937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var i=r(8008),a=r(9422);t.publishLast=function(){return function(e){var t=new i.AsyncSubject;return new a.ConnectableObservable(e,function(){return t})}}},8602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var i=r(84936),a=r(54707),o=r(53062);t.publishReplay=function(e,t,r,s){r&&!o.isFunction(r)&&(s=r);var l=o.isFunction(r)?r:void 0;return function(r){return a.multicast(new i.ReplaySubject(e,t,s),l)(r)}}},55098:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var i=r(31885),a=r(31714);t.reduce=function(e,t){return a.operate(i.scanInternals(e,t,arguments.length>=2,!1,!0))}},26638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var i=r(31714),a=r(96526);t.refCount=function(){return i.operate(function(e,t){var r=null;e._refCount++;var i=a.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var i=e._connection,a=r;r=null,i&&(!a||i===a)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(i),i.closed||(r=e.connect())})}},42251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var i=r(3874),a=r(31714),o=r(96526),s=r(21435),l=r(50603);t.repeat=function(e){var t,r,u=1/0;return null!=e&&("object"==typeof e?(u=void 0===(t=e.count)?1/0:t,r=e.delay):u=e),u<=0?function(){return i.EMPTY}:a.operate(function(e,t){var i,a=0,d=function(){if(null==i||i.unsubscribe(),i=null,null!=r){var e="number"==typeof r?l.timer(r):s.innerFrom(r(a)),u=o.createOperatorSubscriber(t,function(){u.unsubscribe(),p()});e.subscribe(u)}else p()},p=function(){var r=!1;i=e.subscribe(o.createOperatorSubscriber(t,void 0,function(){++a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var i=r(21435),a=r(45164),o=r(31714),s=r(96526);t.repeatWhen=function(e){return o.operate(function(t,r){var o,l,u=!1,d=!1,p=!1,f=function(){return p&&d&&(r.complete(),!0)},m=function(){p=!1,o=t.subscribe(s.createOperatorSubscriber(r,void 0,function(){p=!0,f()||(l||(l=new a.Subject,i.innerFrom(e(l)).subscribe(s.createOperatorSubscriber(r,function(){o?m():u=!0},function(){d=!0,f()}))),l).next()})),u&&(o.unsubscribe(),o=null,u=!1,m())};m()})}},40685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var i=r(31714),a=r(96526),o=r(31487),s=r(50603),l=r(21435);t.retry=function(e){void 0===e&&(e=1/0);var t,r=(t=e&&"object"==typeof e?e:{count:e}).count,u=void 0===r?1/0:r,d=t.delay,p=t.resetOnSuccess,f=void 0!==p&&p;return u<=0?o.identity:i.operate(function(e,t){var r,i=0,o=function(){var p=!1;r=e.subscribe(a.createOperatorSubscriber(t,function(e){f&&(i=0),t.next(e)},void 0,function(e){if(i++{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var i=r(21435),a=r(45164),o=r(31714),s=r(96526);t.retryWhen=function(e){return o.operate(function(t,r){var o,l,u=!1,d=function(){o=t.subscribe(s.createOperatorSubscriber(r,void 0,void 0,function(t){l||(l=new a.Subject,i.innerFrom(e(l)).subscribe(s.createOperatorSubscriber(r,function(){return o?d():u=!0}))),l&&l.next(t)})),u&&(o.unsubscribe(),o=null,u=!1,d())};d()})}},17591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var i=r(21435),a=r(31714),o=r(73355),s=r(96526);t.sample=function(e){return a.operate(function(t,r){var a=!1,l=null;t.subscribe(s.createOperatorSubscriber(r,function(e){a=!0,l=e})),i.innerFrom(e).subscribe(s.createOperatorSubscriber(r,function(){if(a){a=!1;var e=l;l=null,r.next(e)}},o.noop))})}},53732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var i=r(69210),a=r(17591),o=r(37945);t.sampleTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),a.sample(o.interval(e,t))}},89857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var i=r(31714),a=r(31885);t.scan=function(e,t){return i.operate(a.scanInternals(e,t,arguments.length>=2,!0))}},31885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var i=r(96526);t.scanInternals=function(e,t,r,a,o){return function(s,l){var u=r,d=t,p=0;s.subscribe(i.createOperatorSubscriber(l,function(t){var r=p++;d=u?e(d,t,r):(u=!0,t),a&&l.next(d)},o&&function(){u&&l.next(d),l.complete()}))}}},50739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var i=r(31714),a=r(96526),o=r(21435);function s(){return{buffer:[],complete:!1}}t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),i.operate(function(r,i){var l=s(),u=s(),d=function(e){i.next(e),i.complete()},p=function(e,r){var o=a.createOperatorSubscriber(i,function(i){var a=r.buffer,o=r.complete;0===a.length?o?d(!1):e.buffer.push(i):t(i,a.shift())||d(!1)},function(){e.complete=!0;var t=r.complete,i=r.buffer;t&&d(0===i.length),null==o||o.unsubscribe()});return o};r.subscribe(p(l,u)),o.innerFrom(e).subscribe(p(u,l))})}},78998:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r0&&(t=new l.SafeSubscriber({next:function(e){return w.next(e)},error:function(e){v=!0,b(),i=d(y,a,e),w.error(e)},complete:function(){m=!0,b(),i=d(y,f),w.complete()}}),o.innerFrom(e).subscribe(t))})(e)}}},82335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var i=r(84936),a=r(78998);t.shareReplay=function(e,t,r){var o,s,l,u,d=!1;return e&&"object"==typeof e?(u=void 0===(o=e.bufferSize)?1/0:o,t=void 0===(s=e.windowTime)?1/0:s,d=void 0!==(l=e.refCount)&&l,r=e.scheduler):u=null!=e?e:1/0,a.share({connector:function(){return new i.ReplaySubject(u,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:d})}},57234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var i=r(30206),a=r(20425),o=r(33),s=r(31714),l=r(96526);t.single=function(e){return s.operate(function(t,r){var s,u=!1,d=!1,p=0;t.subscribe(l.createOperatorSubscriber(r,function(i){d=!0,(!e||e(i,p++,t))&&(u&&r.error(new a.SequenceError("Too many matching values")),u=!0,s=i)},function(){u?(r.next(s),r.complete()):r.error(d?new o.NotFoundError("No matching values"):new i.EmptyError)}))})}},20747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var i=r(56235);t.skip=function(e){return i.filter(function(t,r){return e<=r})}},35508:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var i=r(31487),a=r(31714),o=r(96526);t.skipLast=function(e){return e<=0?i.identity:a.operate(function(t,r){var i=Array(e),a=0;return t.subscribe(o.createOperatorSubscriber(r,function(t){var o=a++;if(o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var i=r(31714),a=r(96526),o=r(21435),s=r(73355);t.skipUntil=function(e){return i.operate(function(t,r){var i=!1,l=a.createOperatorSubscriber(r,function(){null==l||l.unsubscribe(),i=!0},s.noop);o.innerFrom(e).subscribe(l),t.subscribe(a.createOperatorSubscriber(r,function(e){return i&&r.next(e)}))})}},23659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var i=r(31714),a=r(96526);t.skipWhile=function(e){return i.operate(function(t,r){var i=!1,o=0;t.subscribe(a.createOperatorSubscriber(r,function(t){return(i||(i=!e(t,o++)))&&r.next(t)}))})}},34928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var i=r(73691),a=r(13261),o=r(31714);t.startWith=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var i=r(31714);t.subscribeOn=function(e,t){return void 0===t&&(t=0),i.operate(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}},63114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var i=r(92684),a=r(31487);t.switchAll=function(){return i.switchMap(a.identity)}},92684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var i=r(21435),a=r(31714),o=r(96526);t.switchMap=function(e,t){return a.operate(function(r,a){var s=null,l=0,u=!1,d=function(){return u&&!s&&a.complete()};r.subscribe(o.createOperatorSubscriber(a,function(r){null==s||s.unsubscribe();var u=0,p=l++;i.innerFrom(e(r,p)).subscribe(s=o.createOperatorSubscriber(a,function(e){return a.next(t?t(r,e,p,u++):e)},function(){s=null,d()}))},function(){u=!0,d()}))})}},99594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var i=r(92684),a=r(53062);t.switchMapTo=function(e,t){return a.isFunction(t)?i.switchMap(function(){return e},t):i.switchMap(function(){return e})}},24507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var i=r(92684),a=r(31714);t.switchScan=function(e,t){return a.operate(function(r,a){var o=t;return i.switchMap(function(t,r){return e(o,t,r)},function(e,t){return o=t,t})(r).subscribe(a),function(){o=null}})}},20261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var i=r(3874),a=r(31714),o=r(96526);t.take=function(e){return e<=0?function(){return i.EMPTY}:a.operate(function(t,r){var i=0;t.subscribe(o.createOperatorSubscriber(r,function(t){++i<=e&&(r.next(t),e<=i&&r.complete())}))})}},54894:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var a=r(3874),o=r(31714),s=r(96526);t.takeLast=function(e){return e<=0?function(){return a.EMPTY}:o.operate(function(t,r){var a=[];t.subscribe(s.createOperatorSubscriber(r,function(t){a.push(t),e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var i=r(31714),a=r(96526),o=r(21435),s=r(73355);t.takeUntil=function(e){return i.operate(function(t,r){o.innerFrom(e).subscribe(a.createOperatorSubscriber(r,function(){return r.complete()},s.noop)),r.closed||t.subscribe(r)})}},65439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var i=r(31714),a=r(96526);t.takeWhile=function(e,t){return void 0===t&&(t=!1),i.operate(function(r,i){var o=0;r.subscribe(a.createOperatorSubscriber(i,function(r){var a=e(r,o++);(a||t)&&i.next(r),a||i.complete()}))})}},88187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var i=r(53062),a=r(31714),o=r(96526),s=r(31487);t.tap=function(e,t,r){var l=i.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return l?a.operate(function(e,t){null===(r=l.subscribe)||void 0===r||r.call(l);var r,i=!0;e.subscribe(o.createOperatorSubscriber(t,function(e){var r;null===(r=l.next)||void 0===r||r.call(l,e),t.next(e)},function(){var e;i=!1,null===(e=l.complete)||void 0===e||e.call(l),t.complete()},function(e){var r;i=!1,null===(r=l.error)||void 0===r||r.call(l,e),t.error(e)},function(){var e,t;i&&(null===(e=l.unsubscribe)||void 0===e||e.call(l)),null===(t=l.finalize)||void 0===t||t.call(l)}))}):s.identity}},81759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var i=r(31714),a=r(96526),o=r(21435);t.throttle=function(e,t){return i.operate(function(r,i){var s=null!=t?t:{},l=s.leading,u=void 0===l||l,d=s.trailing,p=void 0!==d&&d,f=!1,m=null,g=null,v=!1,b=function(){null==g||g.unsubscribe(),g=null,p&&(w(),v&&i.complete())},y=function(){g=null,v&&i.complete()},_=function(t){return g=o.innerFrom(e(t)).subscribe(a.createOperatorSubscriber(i,b,y))},w=function(){if(f){f=!1;var e=m;m=null,i.next(e),v||_(e)}};r.subscribe(a.createOperatorSubscriber(i,function(e){f=!0,m=e,g&&!g.closed||(u?w():_(e))},function(){v=!0,p&&f&&g&&!g.closed||i.complete()}))})}},73353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var i=r(69210),a=r(81759),o=r(50603);t.throttleTime=function(e,t,r){void 0===t&&(t=i.asyncScheduler);var s=o.timer(e,t);return a.throttle(function(){return s},r)}},47846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var i=r(30206),a=r(31714),o=r(96526);function s(){return new i.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=s),a.operate(function(t,r){var i=!1;t.subscribe(o.createOperatorSubscriber(r,function(e){i=!0,r.next(e)},function(){return i?r.complete():r.error(e())}))})}},6362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var i=r(69210),a=r(31714),o=r(96526);t.timeInterval=function(e){return void 0===e&&(e=i.asyncScheduler),a.operate(function(t,r){var i=e.now();t.subscribe(o.createOperatorSubscriber(r,function(t){var a=e.now(),o=a-i;i=a,r.next(new s(t,o))}))})};var s=function(e,t){this.value=e,this.interval=t};t.TimeInterval=s},3487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var i=r(69210),a=r(68699),o=r(31714),s=r(21435),l=r(9259),u=r(96526),d=r(53946);function p(e){throw new t.TimeoutError(e)}t.TimeoutError=l.createErrorClass(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}),t.timeout=function(e,t){var r=a.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,l=r.first,f=r.each,m=r.with,g=void 0===m?p:m,v=r.scheduler,b=void 0===v?null!=t?t:i.asyncScheduler:v,y=r.meta,_=void 0===y?null:y;if(null==l&&null==f)throw TypeError("No timeout provided.");return o.operate(function(e,t){var r,i,a=null,o=0,p=function(e){i=d.executeSchedule(t,b,function(){try{r.unsubscribe(),s.innerFrom(g({meta:_,lastValue:a,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe(u.createOperatorSubscriber(t,function(e){null==i||i.unsubscribe(),o++,t.next(a=e),f>0&&p(f)},void 0,void 0,function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),a=null})),o||p(null!=l?"number"==typeof l?l:+l-b.now():f)})}},88998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var i=r(69210),a=r(68699),o=r(3487);t.timeoutWith=function(e,t,r){var s,l,u;if(r=null!=r?r:i.async,a.isValidDate(e)?s=e:"number"==typeof e&&(l=e),t)u=function(){return t};else throw TypeError("No observable provided to switch to");if(null==s&&null==l)throw TypeError("No timeout provided.");return o.timeout({first:s,each:l,scheduler:r,with:u})}},72242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var i=r(25530),a=r(71971);t.timestamp=function(e){return void 0===e&&(e=i.dateTimestampProvider),a.map(function(t){return{value:t,timestamp:e.now()}})}},54301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var i=r(98839),a=r(31714),o=function(e,t){return e.push(t),e};t.toArray=function(){return a.operate(function(e,t){i.reduce(o,[])(e).subscribe(t)})}},98700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var i=r(45164),a=r(31714),o=r(96526),s=r(73355),l=r(21435);t.window=function(e){return a.operate(function(t,r){var a=new i.Subject;r.next(a.asObservable());var u=function(e){a.error(e),r.error(e)};return t.subscribe(o.createOperatorSubscriber(r,function(e){return null==a?void 0:a.next(e)},function(){a.complete(),r.complete()},u)),l.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){a.complete(),r.next(a=new i.Subject)},s.noop,u)),function(){null==a||a.unsubscribe(),a=null}})}},62953:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var a=r(45164),o=r(31714),s=r(96526);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return o.operate(function(t,o){var l=[new a.Subject],u=0;o.next(l[0].asObservable()),t.subscribe(s.createOperatorSubscriber(o,function(t){try{for(var s,d,p=i(l),f=p.next();!f.done;f=p.next())f.value.next(t)}catch(e){s={error:e}}finally{try{f&&!f.done&&(d=p.return)&&d.call(p)}finally{if(s)throw s.error}}var m=u-e+1;if(m>=0&&m%r==0&&l.shift().complete(),++u%r==0){var g=new a.Subject;l.push(g),o.next(g.asObservable())}},function(){for(;l.length>0;)l.shift().complete();o.complete()},function(e){for(;l.length>0;)l.shift().error(e);o.error(e)},function(){l=null}))})}},67355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var i=r(45164),a=r(69210),o=r(48268),s=r(31714),l=r(96526),u=r(62929),d=r(13261),p=r(53946);t.windowTime=function(e){for(var t,r,f=[],m=1;m=0?p.executeSchedule(r,g,f,v,!0):s=!0,f();var m=function(e){return a.slice().forEach(e)},y=function(e){m(function(t){return e(t.window)}),e(r),r.unsubscribe()};return t.subscribe(l.createOperatorSubscriber(r,function(e){m(function(t){t.window.next(e),b<=++t.seen&&d(t)})},function(){return y(function(e){return e.complete()})},function(e){return y(function(t){return t.error(e)})})),function(){a=null}})}},4791:(e,t,r)=>{"use strict";var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var a=r(45164),o=r(48268),s=r(31714),l=r(21435),u=r(96526),d=r(73355),p=r(62929);t.windowToggle=function(e,t){return s.operate(function(r,s){var f=[],m=function(e){for(;0{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var i=r(45164),a=r(31714),o=r(96526),s=r(21435);t.windowWhen=function(e){return a.operate(function(t,r){var a,l,u=function(e){a.error(e),r.error(e)},d=function(){var t;null==l||l.unsubscribe(),null==a||a.complete(),a=new i.Subject,r.next(a.asObservable());try{t=s.innerFrom(e())}catch(e){u(e);return}t.subscribe(l=o.createOperatorSubscriber(r,d,d,u))};d(),t.subscribe(o.createOperatorSubscriber(r,function(e){return a.next(e)},function(){a.complete(),r.complete()},u,function(){null==l||l.unsubscribe(),a=null}))})}},96108:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var i=r(69555),a=r(1452);t.zipAll=function(e){return a.joinAllInternals(i.zip,e)}},37965:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var i=r(10693);t.scheduleArray=function(e,t){return new i.Observable(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})})}},23455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var i=r(10693),a=r(53946);t.scheduleAsyncIterable=function(e,t){if(!e)throw Error("Iterable cannot be null");return new i.Observable(function(r){a.executeSchedule(r,t,function(){var i=e[Symbol.asyncIterator]();a.executeSchedule(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}},26803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var i=r(10693),a=r(19678),o=r(53062),s=r(53946);t.scheduleIterable=function(e,t){return new i.Observable(function(r){var i;return s.executeSchedule(r,t,function(){i=e[a.iterator](),s.executeSchedule(r,t,function(){var e,t,a;try{t=(e=i.next()).value,a=e.done}catch(e){r.error(e);return}a?r.complete():r.next(t)},0,!0)}),function(){return o.isFunction(null==i?void 0:i.return)&&i.return()}})}},21520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var i=r(21435),a=r(87195),o=r(88405);t.scheduleObservable=function(e,t){return i.innerFrom(e).pipe(o.subscribeOn(t),a.observeOn(t))}},22701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var i=r(21435),a=r(87195),o=r(88405);t.schedulePromise=function(e,t){return i.innerFrom(e).pipe(o.subscribeOn(t),a.observeOn(t))}},11063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var i=r(23455),a=r(36696);t.scheduleReadableStreamLike=function(e,t){return i.scheduleAsyncIterable(a.readableStreamLikeToAsyncGenerator(e),t)}},26568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var i=r(21520),a=r(22701),o=r(36774),s=r(26803),l=r(23455),u=r(99105),d=r(57452),p=r(78685),f=r(31214),m=r(28220),g=r(83205),v=r(36696),b=r(11063);t.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return i.scheduleObservable(e,t);if(p.isArrayLike(e))return o.scheduleArray(e,t);if(d.isPromise(e))return a.schedulePromise(e,t);if(m.isAsyncIterable(e))return l.scheduleAsyncIterable(e,t);if(f.isIterable(e))return s.scheduleIterable(e,t);if(v.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw g.createInvalidObservableTypeError(e)}},9023:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var a=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(48268).Subscription);t.Action=a},42094:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var a=r(9023),o=r(78631),s=r(62929),l=function(e){function t(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,i=this.id,a=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(a,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(a,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),o.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&o.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,i=!1;try{this.work(e)}catch(e){i=!0,r=e||Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(i,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(a.Action);t.AsyncAction=l},25493:(e,t,r)=>{"use strict";var i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var a=r(37620),o=function(e){function t(t,r){void 0===r&&(r=a.Scheduler.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return i(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active){r.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(a.Scheduler);t.AsyncScheduler=o},69210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var i=r(42094),a=r(25493);t.asyncScheduler=new a.AsyncScheduler(i.AsyncAction),t.async=t.asyncScheduler},25530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},78631:(e,t)=>{"use strict";var r=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},i=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";var r=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},i=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=r,t.iterator=r()},17336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},26531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var i=r(9259);t.ArgumentOutOfRangeError=i.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},30206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var i=r(9259);t.EmptyError=i.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},33:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var i=r(9259);t.NotFoundError=i.createErrorClass(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})},30166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var i=r(9259);t.ObjectUnsubscribedError=i.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},20425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var i=r(9259);t.SequenceError=i.createErrorClass(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}})},5638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var i=r(9259);t.UnsubscriptionError=i.createErrorClass(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}})},13261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var i=r(53062),a=r(2773);function o(e){return e[e.length-1]}t.popResultSelector=function(e){return i.isFunction(o(e))?e.pop():void 0},t.popScheduler=function(e){return a.isScheduler(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},62338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,i=Object.getPrototypeOf,a=Object.prototype,o=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if(t&&"object"==typeof t&&i(t)===a){var s=o(t);return{args:s.map(function(e){return t[e]}),keys:s}}}return{args:e,keys:null}}},14841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var r=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&r(e[0])?e[0]:e}},62929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},9259:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},72733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce(function(e,r,i){return e[r]=t[i],e},{})}},68653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var i=r(9261),a=null;t.errorContext=function(e){if(i.config.useDeprecatedSynchronousErrorHandling){var t=!a;if(t&&(a={errorThrown:!1,error:null}),e(),t){var r=a,o=r.errorThrown,s=r.error;if(a=null,o)throw s}}else e()},t.captureError=function(e){i.config.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=e)}},53946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o=t.schedule(function(){r(),a?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!a)return o}},31487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},78685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},28220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var i=r(53062);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&i.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},68699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},53062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},99105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var i=r(17336),a=r(53062);t.isInteropObservable=function(e){return a.isFunction(e[i.observable])}},31214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var i=r(19678),a=r(53062);t.isIterable=function(e){return a.isFunction(null==e?void 0:e[i.iterator])}},57452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var i=r(53062);t.isPromise=function(e){return i.isFunction(null==e?void 0:e.then)}},36696:(e,t,r)=>{"use strict";var i=function(e,t){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]1||u(e,t)})})}function u(e,t){try{var r;(r=o[e](t)).value instanceof a?Promise.resolve(r.value.v).then(d,p):f(s[0][2],r)}catch(e){f(s[0][3],e)}}function d(e){u("next",e)}function p(e){u("throw",e)}function f(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=r(53062);t.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,function(){var t,r,o;return i(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,a(t.read())];case 3:if(o=(r=i.sent()).value,!r.done)return[3,5];return[4,a(void 0)];case 4:return[2,i.sent()];case 5:return[4,a(o)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},t.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}},2773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var i=r(53062);t.isScheduler=function(e){return e&&i.isFunction(e.schedule)}},31714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var i=r(53062);function a(e){return i.isFunction(null==e?void 0:e.lift)}t.hasLift=a,t.operate=function(e){return function(t){if(a(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},1031:(e,t,r)=>{"use strict";var i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s},a=function(e,t){for(var r=0,i=t.length,a=e.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},12340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(r,i){return!e.call(t,r,i)}}},95348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var i=r(31487);function a(e){return 0===e.length?i.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var i=r(9261),a=r(31957);t.reportUnhandledError=function(e){a.timeoutProvider.setTimeout(function(){var t=i.config.onUnhandledError;if(t)t(e);else throw e})}},83205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},29775:(e,t,r)=>{"use strict";t.UI=void 0,r(29750),r(57070),r(84768),r(59152),r(11915),r(24612),r(35162),r(26173),r(24162),r(67619),r(93697),r(7588),r(41340),r(79429),r(42408),r(45327),r(86162),r(40841),r(31354),r(25831),r(18338),r(11683),r(10296),r(1558),r(33681),r(8472),r(1035),r(54238),r(66235),r(44905),r(28827),r(75359),r(37210),r(2115),r(60806),r(56235),r(33699),r(71851),r(77568),r(44252),r(58807),r(67549),r(26192),r(55777);var i=r(71971);Object.defineProperty(t,"UI",{enumerable:!0,get:function(){return i.map}}),r(51084),r(4329),r(21471),r(4449),r(79791),r(5543),r(30714),r(64407),r(56801),r(27828),r(49077),r(54707),r(87195),r(96466),r(23760),r(19124),r(67954),r(84372),r(63408),r(37937),r(8602),r(55098),r(41744),r(98839),r(42251),r(3747),r(40685),r(40047),r(26638),r(17591),r(53732),r(89857),r(50739),r(78998),r(82335),r(57234),r(20747),r(35508),r(46369),r(23659),r(34928),r(88405),r(63114),r(92684),r(99594),r(24507),r(20261),r(54894),r(18641),r(65439),r(88187),r(81759),r(73353),r(47846),r(6362),r(3487),r(88998),r(72242),r(54301),r(98700),r(62953),r(67355),r(4791),r(20178),r(96108),r(40589),r(69126),r(37965)},90892:(e,t,r)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(14300),a=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=s),s.prototype=Object.create(a.prototype),o(a,s),s.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return a(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=a(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return a(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},11634:e=>{var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=(null!=e.raddr?" raddr %s rport %d":"%v%v")+(null!=e.tcptype?" tcptype %s":"%v"),null!=e.generation&&(t+=" generation %d"),t+=(null!=e["network-id"]?" network-id %d":"%v")+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){return"mediaclk:"+((null!=e.id?"id=%s %s":"%v%s")+(null!=e.mediaClockValue?"=%s":"")+(null!=e.rateNumerator?" rate=%s":""))+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach(function(e){t[e].forEach(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")})})},25515:(e,t,r)=>{var i=r(43875),a=r(51759);t.cW=a,t.Qc=i.parse,i.parseParams,i.parseFmtpConfig,i.parsePayloads,i.parseRemoteCandidates,i.parseImageAttributes,i.parseSimulcastStreamList},43875:(e,t,r)=>{var i=function(e){return String(Number(e))===e?Number(e):e},a=function(e,t,r,a){if(a&&!r)t[a]=i(e[1]);else for(var o=0;o1&&(e[r[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(u,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],r=e.split(" ").map(i),a=0;a{var i=r(11634),a=/%[sdv%]/g,o=function(e){var t=1,r=arguments,i=r.length;return e.replace(a,function(e){if(t>=i)return e;var a=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(a);case"%d":return Number(a);case"%v":return""}})},s=function(e,t,r){var i=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var a=0;a{"use strict";let t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map(e=>e.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 r=t.splitSections(e);return r&&r[0]},t.getMediaSections=function(e){let r=t.splitSections(e);return r.shift(),r},t.matchPrefix=function(e,r){return t.splitLines(e).filter(e=>0===e.indexOf(r))},t.parseCandidate=function(e){let t;let r={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 r={},i=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e{void 0!==e.parameters[t]?i.push(t+"="+e.parameters[t]):i.push(t)}),t+="a=fmtp:"+r+" "+i.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="",r=e.payloadType;return void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+r+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},t.parseSsrcMedia=function(e){let t=e.indexOf(" "),r={ssrc:parseInt(e.substring(7,t),10)},i=e.indexOf(":",t);return i>-1?(r.attribute=e.substring(t+1,i),r.value=e.substring(i+1)):r.attribute=e.substring(t+1),r},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 r=t.matchPrefix(e,"a=mid:")[0];if(r)return r.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,r){return{role:"auto",fingerprints:t.matchPrefix(e+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let r="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),r},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,r){return t.matchPrefix(e+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,r){let i=t.matchPrefix(e+r,"a=ice-ufrag:")[0],a=t.matchPrefix(e+r,"a=ice-pwd:")[0];return i&&a?{usernameFragment:i.substring(12),password:a.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 r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=t.splitLines(e)[0].split(" ");r.profile=i[2];for(let a=3;a{r.headerExtensions.push(t.parseExtmap(e))});let a=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(e=>{a.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),r},t.writeRtpDescription=function(e,r){let i="";i+="m="+e+" "+(r.codecs.length>0?"9":"0")+" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" "+r.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",r.codecs.forEach(e=>{i+=t.writeRtpMap(e)+t.writeFmtp(e)+t.writeRtcpFb(e)});let a=0;return r.codecs.forEach(e=>{e.maxptime>a&&(a=e.maxptime)}),a>0&&(i+="a=maxptime:"+a+"\r\n"),r.headerExtensions&&r.headerExtensions.forEach(e=>{i+=t.writeExtmap(e)}),i},t.parseRtpEncodingParameters=function(e){let r;let i=[],a=t.parseRtpParameters(e),o=-1!==a.fecMechanisms.indexOf("RED"),s=-1!==a.fecMechanisms.indexOf("ULPFEC"),l=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),u=l.length>0&&l[0].ssrc,d=t.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));d.length>0&&d[0].length>1&&d[0][0]===u&&(r=d[0][1]),a.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:u,codecPayloadType:parseInt(e.parameters.apt,10)};u&&r&&(t.rtx={ssrc:r}),i.push(t),o&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:u,mechanism:s?"red+ulpfec":"red"},i.push(t))}}),0===i.length&&u&&i.push({ssrc:u});let p=t.matchPrefix(e,"b=");return p.length&&(p=0===p[0].indexOf("b=TIAS:")?parseInt(p[0].substring(7),10):0===p[0].indexOf("b=AS:")?950*parseInt(p[0].substring(5),10)-16e3:void 0,i.forEach(e=>{e.maxBitrate=p})),i},t.parseRtcpParameters=function(e){let r={},i=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];i&&(r.cname=i.value,r.ssrc=i.ssrc);let a=t.matchPrefix(e,"a=rtcp-rsize");r.reducedSize=a.length>0,r.compound=0===a.length;let o=t.matchPrefix(e,"a=rtcp-mux");return r.mux=o.length>0,r},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 r;let i=t.matchPrefix(e,"a=msid:");if(1===i.length)return{stream:(r=i[0].substring(7).split(" "))[0],track:r[1]};let a=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);if(a.length>0)return{stream:(r=a[0].value.split(" "))[0],track:r[1]}},t.parseSctpDescription=function(e){let r;let i=t.parseMLine(e),a=t.matchPrefix(e,"a=max-message-size:");a.length>0&&(r=parseInt(a[0].substring(19),10)),isNaN(r)&&(r=65536);let o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:i.fmt,maxMessageSize:r};let s=t.matchPrefix(e,"a=sctpmap:");if(s.length>0){let e=s[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:r}}},t.writeSctpDescription=function(e,t){let r=[];return r="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&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,r,i){return"v=0\r\no="+(i||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+(void 0!==r?r:2)+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,r){let i=t.splitLines(e);for(let e=0;e{let i=Symbol("SemVer ANY");class a{static get ANY(){return i}constructor(e,t){if(t=o(t),e instanceof a){if(!!t.loose===e.loose)return e;e=e.value}d("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,d("comp",this)}parse(e){let t=this.options.loose?s[l.COMPARATORLOOSE]:s[l.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(d("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=a;let o=r(19991),{safeRe:s,t:l}=r(71550),u=r(64514),d=r(16509),p=r(77026),f=r(11025)},11025:(e,t,r)=>{class i{constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new i(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&_(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&v)|(this.options.loose&&b))+":"+e,r=a.get(t);if(r)return r;let i=this.options.loose,o=i?d[p.HYPHENRANGELOOSE]:d[p.HYPHENRANGE];l("hyphen replace",e=e.replace(o,P(this.options.includePrerelease))),l("comparator trim",e=e.replace(d[p.COMPARATORTRIM],f)),l("tilde trim",e=e.replace(d[p.TILDETRIM],m)),l("caret trim",e=e.replace(d[p.CARETTRIM],g));let u=e.split(" ").map(e=>k(e,this.options)).join(" ").split(/\s+/).map(e=>O(e,this.options));i&&(u=u.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(d[p.COMPARATORLOOSE])))),l("range list",u);let _=new Map;for(let e of u.map(e=>new s(e,this.options))){if(y(e))return[e];_.set(e.value,e)}_.size>1&&_.has("")&&_.delete("");let w=[..._.values()];return a.set(t,w),w}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,_=e=>""===e.value,w=(e,t)=>{let r=!0,i=e.slice(),a=i.pop();for(;r&&i.length;)r=i.every(e=>a.intersects(e,t)),a=i.pop();return r},k=(e,t)=>(l("comp",e,t),l("caret",e=C(e,t)),l("tildes",e=E(e,t)),l("xrange",e=D(e,t)),l("stars",e=T(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map(e=>F(e,t)).join(" "),F=(e,t)=>{let r=t.loose?d[p.TILDELOOSE]:d[p.TILDE];return e.replace(r,(t,r,i,a,o)=>{let s;return l("tilde",e,t,r,i,a,o),x(r)?s="":x(i)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:x(a)?s=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:o?(l("replaceTilde pr",o),s=`>=${r}.${i}.${a}-${o} <${r}.${+i+1}.0-0`):s=`>=${r}.${i}.${a} <${r}.${+i+1}.0-0`,l("tilde return",s),s})},C=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{l("caret",e,t);let r=t.loose?d[p.CARETLOOSE]:d[p.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(t,r,a,o,s)=>{let u;return l("caret",e,t,r,a,o,s),x(r)?u="":x(a)?u=`>=${r}.0.0${i} <${+r+1}.0.0-0`:x(o)?u="0"===r?`>=${r}.${a}.0${i} <${r}.${+a+1}.0-0`:`>=${r}.${a}.0${i} <${+r+1}.0.0-0`:s?(l("replaceCaret pr",s),u="0"===r?"0"===a?`>=${r}.${a}.${o}-${s} <${r}.${a}.${+o+1}-0`:`>=${r}.${a}.${o}-${s} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${o}-${s} <${+r+1}.0.0-0`):(l("no pr"),u="0"===r?"0"===a?`>=${r}.${a}.${o}${i} <${r}.${a}.${+o+1}-0`:`>=${r}.${a}.${o}${i} <${r}.${+a+1}.0-0`:`>=${r}.${a}.${o} <${+r+1}.0.0-0`),l("caret return",u),u})},D=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>j(e,t)).join(" ")),j=(e,t)=>{e=e.trim();let r=t.loose?d[p.XRANGELOOSE]:d[p.XRANGE];return e.replace(r,(r,i,a,o,s,u)=>{l("xRange",e,r,i,a,o,s,u);let d=x(a),p=d||x(o),f=p||x(s);return"="===i&&f&&(i=""),u=t.includePrerelease?"-0":"",d?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&f?(p&&(o=0),s=0,">"===i?(i=">=",p?(a=+a+1,o=0):o=+o+1,s=0):"<="===i&&(i="<",p?a=+a+1:o=+o+1),"<"===i&&(u="-0"),r=`${i+a}.${o}.${s}${u}`):p?r=`>=${a}.0.0${u} <${+a+1}.0.0-0`:f&&(r=`>=${a}.${o}.0${u} <${a}.${+o+1}.0-0`),l("xRange return",r),r})},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(d[p.STAR],"")),O=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),P=e=>(t,r,i,a,o,s,l,u,d,p,f,m)=>(r=x(i)?"":x(a)?`>=${i}.0.0${e?"-0":""}`:x(o)?`>=${i}.${a}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`,u=x(d)?"":x(p)?`<${+d+1}.0.0-0`:x(f)?`<${d}.${+p+1}.0-0`:m?`<=${d}.${p}.${f}-${m}`:e?`<${d}.${p}.${+f+1}-0`:`<=${u}`,`${r} ${u}`.trim()),R=(e,t,r)=>{for(let r=0;r0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},77026:(e,t,r)=>{let i=r(16509),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=r(83783),{safeRe:s,t:l}=r(71550),u=r(19991),{compareIdentifiers:d}=r(14960);class p{constructor(e,t){if(t=u(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw TypeError(`version is longer than ${a} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?s[l.LOOSE]:s[l.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===r&&(i=[t]),0===d(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=p},24958:(e,t,r)=>{let i=r(80698);e.exports=(e,t)=>{let r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},64514:(e,t,r)=>{let i=r(13811),a=r(61545),o=r(53399),s=r(54480),l=r(88952),u=r(10917);e.exports=(e,t,r,d)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return i(e,r,d);case"!=":return a(e,r,d);case">":return o(e,r,d);case">=":return s(e,r,d);case"<":return l(e,r,d);case"<=":return u(e,r,d);default:throw TypeError(`Invalid operator: ${t}`)}}},45905:(e,t,r)=>{let i=r(77026),a=r(80698),{safeRe:o,t:s}=r(71550);e.exports=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let i;let a=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(i=a.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),a.lastIndex=i.index+i[1].length+i[2].length;a.lastIndex=-1}else r=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===r)return null;let l=r[2],u=r[3]||"0",d=r[4]||"0",p=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return a(`${l}.${u}.${d}${p}${f}`,t)}},92966:(e,t,r)=>{let i=r(77026);e.exports=(e,t,r)=>{let a=new i(e,r),o=new i(t,r);return a.compare(o)||a.compareBuild(o)}},72893:(e,t,r)=>{let i=r(63780);e.exports=(e,t)=>i(e,t,!0)},63780:(e,t,r)=>{let i=r(77026);e.exports=(e,t,r)=>new i(e,r).compare(new i(t,r))},32774:(e,t,r)=>{let i=r(80698);e.exports=(e,t)=>{let r=i(e,null,!0),a=i(t,null,!0),o=r.compare(a);if(0===o)return null;let s=o>0,l=s?r:a,u=s?a:r,d=!!l.prerelease.length;if(u.prerelease.length&&!d)return u.patch||u.minor?l.patch?"patch":l.minor?"minor":"major":"major";let p=d?"pre":"";return r.major!==a.major?p+"major":r.minor!==a.minor?p+"minor":r.patch!==a.patch?p+"patch":"prerelease"}},13811:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>0===i(e,t,r)},53399:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>i(e,t,r)>0},54480:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>i(e,t,r)>=0},79656:(e,t,r)=>{let i=r(77026);e.exports=(e,t,r,a,o)=>{"string"==typeof r&&(o=a,a=r,r=void 0);try{return new i(e instanceof i?e.version:e,r).inc(t,a,o).version}catch(e){return null}}},88952:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>0>i(e,t,r)},10917:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>0>=i(e,t,r)},19397:(e,t,r)=>{let i=r(77026);e.exports=(e,t)=>new i(e,t).major},19489:(e,t,r)=>{let i=r(77026);e.exports=(e,t)=>new i(e,t).minor},61545:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>0!==i(e,t,r)},80698:(e,t,r)=>{let i=r(77026);e.exports=(e,t,r=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!r)return null;throw e}}},86427:(e,t,r)=>{let i=r(77026);e.exports=(e,t)=>new i(e,t).patch},53898:(e,t,r)=>{let i=r(80698);e.exports=(e,t)=>{let r=i(e,t);return r&&r.prerelease.length?r.prerelease:null}},20418:(e,t,r)=>{let i=r(63780);e.exports=(e,t,r)=>i(t,e,r)},81247:(e,t,r)=>{let i=r(92966);e.exports=(e,t)=>e.sort((e,r)=>i(r,e,t))},39030:(e,t,r)=>{let i=r(11025);e.exports=(e,t,r)=>{try{t=new i(t,r)}catch(e){return!1}return t.test(e)}},885:(e,t,r)=>{let i=r(92966);e.exports=(e,t)=>e.sort((e,r)=>i(e,r,t))},9491:(e,t,r)=>{let i=r(80698);e.exports=(e,t)=>{let r=i(e,t);return r?r.version:null}},86315:(e,t,r)=>{let i=r(71550),a=r(83783),o=r(77026),s=r(14960),l=r(80698),u=r(9491),d=r(24958),p=r(79656),f=r(32774),m=r(19397),g=r(19489),v=r(86427),b=r(53898),y=r(63780),_=r(20418),w=r(72893),k=r(92966),x=r(885),E=r(81247),F=r(53399),C=r(88952),S=r(13811),D=r(61545),j=r(54480),T=r(10917),O=r(64514),P=r(45905),R=r(70840),M=r(11025),L=r(39030),A=r(35913),I=r(89027),N=r(80478),B=r(83214),U=r(64307),z=r(38916),H=r(20345),q=r(38189),V=r(48077),W=r(45748),$=r(7354);e.exports={parse:l,valid:u,clean:d,inc:p,diff:f,major:m,minor:g,patch:v,prerelease:b,compare:y,rcompare:_,compareLoose:w,compareBuild:k,sort:x,rsort:E,gt:F,lt:C,eq:S,neq:D,gte:j,lte:T,cmp:O,coerce:P,Comparator:R,Range:M,satisfies:L,toComparators:A,maxSatisfying:I,minSatisfying:N,minVersion:B,validRange:U,outside:z,gtr:H,ltr:q,intersects:V,simplifyRange:W,subset:$,SemVer:o,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},83783:e=>{let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},16509:e=>{let t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},14960:e=>{let t=/^[0-9]+$/,r=(e,r)=>{let i=t.test(e),a=t.test(r);return i&&a&&(e=+e,r=+r),e===r?0:i&&!a?-1:a&&!i?1:er(t,e)}},70441:e=>{class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},19991:e=>{let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},71550:(e,t,r)=>{let{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:o}=r(83783),s=r(16509),l=(t=e.exports={}).re=[],u=t.safeRe=[],d=t.src=[],p=t.t={},f=0,m="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",o],[m,a]],v=e=>{for(let[t,r]of g)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},b=(e,t,r)=>{let i=v(t),a=f++;s(e,a,t),p[e]=a,d[a]=t,l[a]=new RegExp(t,r?"g":void 0),u[a]=new RegExp(i,r?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),b("MAINVERSION",`(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})\\.(${d[p.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})\\.(${d[p.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${d[p.NUMERICIDENTIFIER]}|${d[p.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${d[p.NUMERICIDENTIFIERLOOSE]}|${d[p.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${d[p.PRERELEASEIDENTIFIER]}(?:\\.${d[p.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${d[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[p.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${m}+`),b("BUILD",`(?:\\+(${d[p.BUILDIDENTIFIER]}(?:\\.${d[p.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${d[p.MAINVERSION]}${d[p.PRERELEASE]}?${d[p.BUILD]}?`),b("FULL",`^${d[p.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${d[p.MAINVERSIONLOOSE]}${d[p.PRERELEASELOOSE]}?${d[p.BUILD]}?`),b("LOOSE",`^${d[p.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${d[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${d[p.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:\\.(${d[p.XRANGEIDENTIFIER]})(?:${d[p.PRERELEASE]})?${d[p.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[p.XRANGEIDENTIFIERLOOSE]})(?:${d[p.PRERELEASELOOSE]})?${d[p.BUILD]}?)?)?`),b("XRANGE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${d[p.GTLT]}\\s*${d[p.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),b("COERCE",`${d[p.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",d[p.COERCEPLAIN]+`(?:${d[p.PRERELEASE]})?`+`(?:${d[p.BUILD]})?`+"(?:$|[^\\d])"),b("COERCERTL",d[p.COERCE],!0),b("COERCERTLFULL",d[p.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${d[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${d[p.LONETILDE]}${d[p.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${d[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${d[p.LONECARET]}${d[p.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${d[p.LONECARET]}${d[p.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${d[p.GTLT]}\\s*(${d[p.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${d[p.GTLT]}\\s*(${d[p.LOOSEPLAIN]}|${d[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${d[p.XRANGEPLAIN]})\\s+-\\s+(${d[p.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${d[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[p.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},20345:(e,t,r)=>{let i=r(38916);e.exports=(e,t,r)=>i(e,t,">",r)},48077:(e,t,r)=>{let i=r(11025);e.exports=(e,t,r)=>(e=new i(e,r),t=new i(t,r),e.intersects(t,r))},38189:(e,t,r)=>{let i=r(38916);e.exports=(e,t,r)=>i(e,t,"<",r)},89027:(e,t,r)=>{let i=r(77026),a=r(11025);e.exports=(e,t,r)=>{let o=null,s=null,l=null;try{l=new a(t,r)}catch(e){return null}return e.forEach(e=>{l.test(e)&&(!o||-1===s.compare(e))&&(s=new i(o=e,r))}),o}},80478:(e,t,r)=>{let i=r(77026),a=r(11025);e.exports=(e,t,r)=>{let o=null,s=null,l=null;try{l=new a(t,r)}catch(e){return null}return e.forEach(e=>{l.test(e)&&(!o||1===s.compare(e))&&(s=new i(o=e,r))}),o}},83214:(e,t,r)=>{let i=r(77026),a=r(11025),o=r(53399);e.exports=(e,t)=>{e=new a(e,t);let r=new i("0.0.0");if(e.test(r)||(r=new i("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||o(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),s&&(!r||o(r,s))&&(r=s)}return r&&e.test(r)?r:null}},38916:(e,t,r)=>{let i=r(77026),a=r(70840),{ANY:o}=a,s=r(11025),l=r(39030),u=r(53399),d=r(88952),p=r(10917),f=r(54480);e.exports=(e,t,r,m)=>{let g,v,b,y,_;switch(e=new i(e,m),t=new s(t,m),r){case">":g=u,v=p,b=d,y=">",_=">=";break;case"<":g=d,v=f,b=u,y="<",_="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,m))return!1;for(let r=0;r{e.semver===o&&(e=new a(">=0.0.0")),s=s||e,l=l||e,g(e.semver,s.semver,m)?s=e:b(e.semver,l.semver,m)&&(l=e)}),s.operator===y||s.operator===_||(!l.operator||l.operator===y)&&v(e,l.semver)||l.operator===_&&b(e,l.semver))return!1}return!0}},45748:(e,t,r)=>{let i=r(39030),a=r(63780);e.exports=(e,t,r)=>{let o=[],s=null,l=null,u=e.sort((e,t)=>a(e,t,r));for(let e of u)i(e,t,r)?(l=e,s||(s=e)):(l&&o.push([s,l]),l=null,s=null);s&&o.push([s,null]);let d=[];for(let[e,t]of o)e===t?d.push(e):t||e!==u[0]?t?e===u[0]?d.push(`<=${t}`):d.push(`${e} - ${t}`):d.push(`>=${e}`):d.push("*");let p=d.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return p.length{let i=r(11025),a=r(70840),{ANY:o}=a,s=r(39030),l=r(63780),u=[new a(">=0.0.0-0")],d=[new a(">=0.0.0")],p=(e,t,r)=>{let i,a,p,g,v,b,y;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?u:d}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=d}let _=new Set;for(let t of e)">"===t.operator||">="===t.operator?i=f(i,t,r):"<"===t.operator||"<="===t.operator?a=m(a,t,r):_.add(t.semver);if(_.size>1||i&&a&&((p=l(i.semver,a.semver,r))>0||0===p&&(">="!==i.operator||"<="!==a.operator)))return null;for(let e of _){if(i&&!s(e,String(i),r)||a&&!s(e,String(a),r))return null;for(let i of t)if(!s(e,String(i),r))return!1;return!0}let w=!!a&&!r.includePrerelease&&!!a.semver.prerelease.length&&a.semver,k=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver;for(let e of(w&&1===w.prerelease.length&&"<"===a.operator&&0===w.prerelease[0]&&(w=!1),t)){if(y=y||">"===e.operator||">="===e.operator,b=b||"<"===e.operator||"<="===e.operator,i){if(k&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===k.major&&e.semver.minor===k.minor&&e.semver.patch===k.patch&&(k=!1),">"===e.operator||">="===e.operator){if((g=f(i,e,r))===e&&g!==i)return!1}else if(">="===i.operator&&!s(i.semver,String(e),r))return!1}if(a){if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),"<"===e.operator||"<="===e.operator){if((v=m(a,e,r))===e&&v!==a)return!1}else if("<="===a.operator&&!s(a.semver,String(e),r))return!1}if(!e.operator&&(a||i)&&0!==p)return!1}return(!i||!b||!!a||0===p)&&(!a||!y||!!i||0===p)&&!k&&!w},f=(e,t,r)=>{if(!e)return t;let i=l(e.semver,t.semver,r);return i>0?e:i<0?t:">"===t.operator&&">="===e.operator?t:e},m=(e,t,r)=>{if(!e)return t;let i=l(e.semver,t.semver,r);return i<0?e:i>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new i(e,r),t=new i(t,r);let a=!1;r:for(let i of e.set){for(let e of t.set){let t=p(i,e,r);if(a=a||null!==t,t)continue r}if(a)return!1}return!0}},35913:(e,t,r)=>{let i=r(11025);e.exports=(e,t)=>new i(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},64307:(e,t,r)=>{let i=r(11025);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},28301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=String.fromCodePoint||function(){var e,t,r=[],i=-1,a=arguments.length;if(!a)return"";for(var o="";++i1114111||Math.floor(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(s-=65536,e=(s>>10)+55296,t=s%1024+56320,r.push(e,t)),(i+1===a||r.length>16384)&&(o+=String.fromCharCode.apply(null,r),r.length=0)}return o};t.default=r},96510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uncompress=t.compress=t.buildSearch=void 0;var r={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"},i=function(e){var t=[],r=function(e,r){e&&(Array.isArray(e)?e:[e]).forEach(function(e){(r?e.split(/[-|_|\s]+/):[e]).forEach(function(e){e=e.toLowerCase(),-1==t.indexOf(e)&&t.push(e)})})};return r(e.short_names,!0),r(e.name,!0),r(e.keywords,!1),r(e.emoticons,!1),t.join(",")};t.buildSearch=i,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,r)e[r[t]]=e[t],delete e[t];for(var i in e){var a=e[i];Array.isArray(a)&&!a.length?delete e[i]:"string"!=typeof a||a.length?null===a&&delete e[i]:delete e[i]}},t.uncompress=function(e){for(var t in e.compressed=!1,e.emojis){var a=e.emojis[t];for(var o in r)a[o]=a[r[o]],delete a[r[o]];a.short_names||(a.short_names=[]),a.short_names.unshift(t),a.sheet_x=a.sheet[0],a.sheet_y=a.sheet[1],delete a.sheet,a.text||(a.text=""),a.added_in||(a.added_in=6),a.added_in=a.added_in.toFixed(1),a.search=i(a)}}},95242:(e,t,r)=>{"use strict";var i=r(39618);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(68326)),o=i(r(42706)),s=r(22070),l=r(96510),u=i(r(10053)),d=function(){function e(t,r){(0,a.default)(this,e),t.compressed&&(0,l.uncompress)(t),this.data=t||{},this.set=r||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 r=e.data.emojis[t],i=r.short_names,a=r.emoticons,o=r.skin_variations,l=i[0];if(a&&a.forEach(function(t){e.emoticons[t]||(e.emoticons[t]=l)}),o){e.emojis[l]={};for(var u=1;u<=6;u++)e.emojis[l][u]=(0,s.getSanitizedData)({id:l,skin:u},u,e.set,e.data)}else e.emojis[l]=(0,s.getSanitizedData)(l,null,e.set,e.data);e.originalPool[l]=r}(t)}},{key:"clearCustomEmojis",value:function(e){var t=this;this.customEmojisList.forEach(function(r){var i=r.id||r.short_names[0];delete e[i],delete t.emojis[i]})}},{key:"addCustomToPool",value:function(e,t){var r=this;this.customEmojisList.length&&this.clearCustomEmojis(t),e.forEach(function(e){var i=e.id||e.short_names[0];i&&!t[i]&&(t[i]=(0,s.getData)(e,null,null,r.data),r.emojis[i]=(0,s.getSanitizedData)(e,null,null,r.data))}),this.customEmojisList=e,this.index={}}},{key:"search",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.emojisToShowFilter,a=r.maxResults,o=r.include,l=r.exclude,d=r.custom,p=void 0===d?[]:d;this.customEmojisList!=p&&this.addCustomToPool(p,this.originalPool);var f=u.default.get("skin")||1;a||(a=75),o||(o=[]),l||(l=[]);var m=null,g=this.originalPool;if(e.length){if("-"==e||"-1"==e)return[this.emojis["-1"][f]];var v=e.toLowerCase().split(/[\s|,|\-|_]+/),b=[];if(v.length>2&&(v=[v[0],v[1]]),(o.length||l.length)&&(g={},this.data.categories.forEach(function(e){var r=!o||!o.length||o.indexOf(e.id)>-1,i=!!l&&!!l.length&&l.indexOf(e.id)>-1;r&&!i&&e.emojis.forEach(function(e){return g[e]=t.data.emojis[e]})}),p.length)){var y=!o||!o.length||o.indexOf("custom")>-1,_=!!l&&!!l.length&&l.indexOf("custom")>-1;y&&!_&&this.addCustomToPool(p,g)}m=(b=v.map(function(e){for(var r=g,i=t.index,a=0,o=0;o1?s.intersect.apply(null,b):b.length?b[0]:[]}return m&&(i&&(m=m.filter(function(e){return i(g[e.id])})),m&&m.length>a&&(m=m.slice(0,a))),m}}]),e}();t.default=d},22070:(e,t,r)=>{"use strict";var i=r(39618);Object.defineProperty(t,"__esModule",{value:!0}),t.getData=f,t.getEmojiDataFromNative=function(e,t,r){r.compressed&&(0,o.uncompress)(r);var i,a,s,l=["1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];for(var u in["\uD83C\uDFFB","\uD83C\uDFFC","\uD83C\uDFFD","\uD83C\uDFFE","\uD83C\uDFFF"].forEach(function(t,r){e.indexOf(t)>0&&(i=r+2,a=l[r])}),r.emojis){var f=r.emojis[u],m=f.unified;f.variations&&f.variations.length&&(m=f.variations.shift()),i&&f.skin_variations&&f.skin_variations[a]&&(m=f.skin_variations[a].unified),d(m)===e&&(s=f)}return s?(s.id=s.short_names[0],p(s,i,t,r)):null},t.getSanitizedData=p,t.uniq=m,t.intersect=function(e,t){var r=m(e),i=m(t);return r.filter(function(e){return i.indexOf(e)>=0})},t.deepMerge=function e(t,r){var i={};for(var o in t){var s=t[o],l=s;r.hasOwnProperty(o)&&(l=r[o]),"object"===(0,a.default)(l)&&(l=e(s,l)),i[o]=l}return i},t.unifiedToNative=d,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,r=!1;return function(){r||(r=!0,t(function(){r=!1,e()}))}};var a=i(r(12054)),o=r(96510),s=i(r(28301)),l=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,u=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];function d(e){var t=e.split("-").map(function(e){return"0x".concat(e)});return s.default.apply(null,t)}function p(){var e,t,r,i,a,o,s,l,u,p,m,g;return e=f.apply(void 0,arguments),t=e.name,r=e.short_names,i=e.skin_tone,a=e.skin_variations,o=e.emoticons,s=e.unified,l=e.custom,u=e.customCategory,p=e.imageUrl,m=e.id||r[0],g=":".concat(m,":"),l?{id:m,name:t,short_names:r,colons:g,emoticons:o,custom:l,customCategory:u,imageUrl:p}:(i&&(g+=":skin-tone-".concat(i,":")),{id:m,name:t,short_names:r,colons:g,emoticons:o,unified:s.toLowerCase(),skin:i||(a?1:null),native:d(s)})}function f(e,t,r,i){var a={};if("string"==typeof e){var s=e.match(l);if(s&&(e=s[1],s[2]&&(t=parseInt(s[2],10))),i.aliases.hasOwnProperty(e)&&(e=i.aliases[e]),!i.emojis.hasOwnProperty(e))return null;a=i.emojis[e]}else e.id&&(i.aliases.hasOwnProperty(e.id)&&(e.id=i.aliases[e.id]),i.emojis.hasOwnProperty(e.id)&&(a=i.emojis[e.id],t||(t=e.skin)));if(Object.keys(a).length||((a=e).custom=!0,a.search||(a.search=(0,o.buildSearch)(e))),a.emoticons||(a.emoticons=[]),a.variations||(a.variations=[]),a.skin_variations&&t>1){a=JSON.parse(JSON.stringify(a));var d=u[t-1],p=a.skin_variations[d];if(p&&(!p.variations&&a.variations&&delete a.variations,r&&(void 0==p["has_img_".concat(r)]||p["has_img_".concat(r)])||!r))for(var f in a.skin_tone=t,p){var m=p[f];a[f]=m}}return a.variations&&a.variations.length&&((a=JSON.parse(JSON.stringify(a))).unified=a.variations.shift()),a}function m(e){return e.reduce(function(e,t){return -1===e.indexOf(t)&&e.push(t),e},[])}},10053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,a="emoji-mart",o="undefined"!=typeof window&&"localStorage"in window;function s(e,t){if(i)i(e,t);else{if(!o)return;try{window.localStorage["".concat(a,".").concat(e)]=JSON.stringify(t)}catch(e){}}}t.default={update:function(e){for(var t in e){var r=e[t];s(t,r)}},set:s,get:function(e){if(r)return r(e);if(o)try{var t=window.localStorage["".concat(a,".").concat(e)];if(t)return JSON.parse(t)}catch(e){return}},setNamespace:function(e){a=e},setHandlers:function(e){e||(e={}),r=e.getter,i=e.setter}}},84058:(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 r,i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=(Symbol.for("react.server_context"),Symbol.for("react.forward_ref")),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");r=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===o||e===a||e===d||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===r||void 0!==e.getModuleId)}},97456:(e,t,r)=>{"use strict";e.exports=r(84058)},9247:(e,t,r)=>{"use strict";e.exports=r(72654)},72654:(e,t,r)=>{"use strict";let i=r(62414);i.createWebSocketStream=r(88365),i.Server=r(86425),i.Receiver=r(40037),i.Sender=r(24207),e.exports=i},80121:(e,t,r)=>{"use strict";let{EMPTY_BUFFER:i}=r(96414);function a(e,t){if(0===e.length)return i;if(1===e.length)return e[0];let r=Buffer.allocUnsafe(t),a=0;for(let t=0;t{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},55832:e=>{"use strict";class t{constructor(e,t){this.target=t,this.type=e}}class r extends t{constructor(e,t){super("message",t),this.data=e}}class i extends t{constructor(e,t,r){super("close",r),this.wasClean=r._closeFrameReceived&&r._closeFrameSent,this.reason=t,this.code=e}}class a extends t{constructor(e){super("open",e)}}class o extends t{constructor(e,t){super("error",t),this.message=e.message,this.error=e}}e.exports={addEventListener(e,t,s){if("function"!=typeof t)return;function l(e){t.call(this,new r(e,this))}function u(e,r){t.call(this,new i(e,r,this))}function d(e){t.call(this,new o(e,this))}function p(){t.call(this,new a(this))}let f=s&&s.once?"once":"on";"message"===e?(l._listener=t,this[f](e,l)):"close"===e?(u._listener=t,this[f](e,u)):"error"===e?(d._listener=t,this[f](e,d)):"open"===e?(p._listener=t,this[f](e,p)):this[f](e,t)},removeEventListener(e,t){let r=this.listeners(e);for(let i=0;i{"use strict";let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function r(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}e.exports={format:function(e){return Object.keys(e).map(t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(e=>[t].concat(Object.keys(e).map(t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(e){let i,a;let o=Object.create(null);if(void 0===e||""===e)return o;let s=Object.create(null),l=!1,u=!1,d=!1,p=-1,f=-1,m=0;for(;m{"use strict";let t=Symbol("kDone"),r=Symbol("kRun");class i{constructor(e){this[t]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[t])}}}e.exports=i},86721:(e,t,r)=>{"use strict";let i;let a=r(59796),o=r(80121),s=r(72320),{kStatusCode:l,NOOP:u}=r(96414),d=Buffer.from([0,0,255,255]),p=Symbol("permessage-deflate"),f=Symbol("total-length"),m=Symbol("callback"),g=Symbol("buffers"),v=Symbol("error");class b{constructor(e,t,r){this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,i||(i=new s(void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10))}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[m];this._deflate.close(),this._deflate=null,e&&e(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(e=>(!1!==t.serverNoContextTakeover||!e.server_no_context_takeover)&&(!e.server_max_window_bits||!1!==t.serverMaxWindowBits&&("number"!=typeof t.serverMaxWindowBits||!(t.serverMaxWindowBits>e.server_max_window_bits)))&&("number"!=typeof t.clientMaxWindowBits||!!e.client_max_window_bits));if(!r)throw Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(r.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?r.client_max_window_bits=t.clientMaxWindowBits:(!0===r.client_max_window_bits||!1===t.clientMaxWindowBits)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let r=e[t];if(r.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(r=r[0],"client_max_window_bits"===t){if(!0!==r){let e=+r;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${r}`)}else if("server_max_window_bits"===t){let e=+r;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else if("client_no_context_takeover"===t||"server_no_context_takeover"===t){if(!0!==r)throw TypeError(`Invalid value for parameter "${t}": ${r}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=r})}),e}decompress(e,t,r){i.add(i=>{this._decompress(e,t,(e,t)=>{i(),r(e,t)})})}compress(e,t,r){i.add(i=>{this._compress(e,t,(e,t)=>{i(),r(e,t)})})}_decompress(e,t,r){let i=this._isServer?"client":"server";if(!this._inflate){let e=`${i}_max_window_bits`,t="number"!=typeof this.params[e]?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=a.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[p]=this,this._inflate[f]=0,this._inflate[g]=[],this._inflate.on("error",w),this._inflate.on("data",_)}this._inflate[m]=r,this._inflate.write(e),t&&this._inflate.write(d),this._inflate.flush(()=>{let e=this._inflate[v];if(e){this._inflate.close(),this._inflate=null,r(e);return}let a=o.concat(this._inflate[g],this._inflate[f]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[f]=0,this._inflate[g]=[],t&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),r(null,a)})}_compress(e,t,r){let i=this._isServer?"server":"client";if(!this._deflate){let e=`${i}_max_window_bits`,t="number"!=typeof this.params[e]?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=a.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[f]=0,this._deflate[g]=[],this._deflate.on("error",u),this._deflate.on("data",y)}this._deflate[m]=r,this._deflate.write(e),this._deflate.flush(a.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=o.concat(this._deflate[g],this._deflate[f]);t&&(e=e.slice(0,e.length-4)),this._deflate[m]=null,this._deflate[f]=0,this._deflate[g]=[],t&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),r(null,e)})}}function y(e){this[g].push(e),this[f]+=e.length}function _(e){if(this[f]+=e.length,this[p]._maxPayload<1||this[f]<=this[p]._maxPayload){this[g].push(e);return}this[v]=RangeError("Max payload size exceeded"),this[v].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[v][l]=1009,this.removeListener("data",_),this.reset()}function w(e){this[p]._inflate=null,e[l]=1007,this[m](e)}e.exports=b},40037:(e,t,r)=>{"use strict";let{Writable:i}=r(12781),a=r(86721),{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:l,kWebSocket:u}=r(96414),{concat:d,toArrayBuffer:p,unmask:f}=r(80121),{isValidStatusCode:m,isValidUTF8:g}=r(42063);class v extends i{constructor(e,t,r,i){super(),this._binaryType=e||o[0],this[u]=void 0,this._extensions=t||{},this._isServer=!!r,this._maxPayload=0|i,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=0,this._loop=!1}_write(e,t,r){if(8===this._opcode&&0==this._state)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e=r.length?t.set(this._buffers.shift(),i):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),i),this._buffers[0]=r.slice(e)),e-=r.length}while(e>0);return t}startLoop(e){let t;this._loop=!0;do switch(this._state){case 0:t=this.getInfo();break;case 1:t=this.getPayloadLength16();break;case 2:t=this.getPayloadLength64();break;case 3:this.getMask();break;case 4:t=this.getData(e);break;default:this._loop=!1;return}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=!1;return}let e=this.consume(2);if((48&e[0])!=0)return this._loop=!1,b(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");let t=(64&e[0])==64;if(t&&!this._extensions[a.extensionName])return this._loop=!1,b(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=(128&e[0])==128,this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(t)return this._loop=!1,b(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,b(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return this._loop=!1,b(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=t}else{if(!(this._opcode>7)||!(this._opcode<11))return this._loop=!1,b(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin)return this._loop=!1,b(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(t)return this._loop=!1,b(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,b(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=(128&e[1])==128,this._isServer){if(!this._masked)return this._loop=!1,b(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,b(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(126===this._payloadLength)this._state=1;else{if(127!==this._payloadLength)return this.haveLength();this._state=2}}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=!1;return}return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=!1;return}let e=this.consume(8),t=e.readUInt32BE(0);return t>2097151?(this._loop=!1,b(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=4294967296*t+e.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,b(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(t);if(this._compressed){this._state=5,this.decompress(t,e);return}return t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage()}decompress(e,t){this._extensions[a.extensionName].decompress(e,this._fin,(e,r)=>{if(e)return t(e);if(r.length){if(this._messageLength+=r.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return t(b(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(r)}let i=this.dataMessage();if(i)return t(i);this.startLoop(t)})}dataMessage(){if(this._fin){let e=this._messageLength,t=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?d(t,e):"arraybuffer"===this._binaryType?p(d(t,e)):t,this.emit("message",r)}else{let r=d(t,e);if(!g(r))return this._loop=!1,b(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",r.toString())}}this._state=0}controlMessage(e){if(8===this._opcode){if(this._loop=!1,0===e.length)this.emit("conclude",1005,""),this.end();else{if(1===e.length)return b(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");let t=e.readUInt16BE(0);if(!m(t))return b(RangeError,`invalid status code ${t}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");let r=e.slice(2);if(!g(r))return b(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",t,r.toString()),this.end()}}else 9===this._opcode?this.emit("ping",e):this.emit("pong",e);this._state=0}}function b(e,t,r,i,a){let o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,b),o.code=a,o[l]=i,o}e.exports=v},24207:(e,t,r)=>{"use strict";r(41808),r(24404);let{randomFillSync:i}=r(6113),a=r(86721),{EMPTY_BUFFER:o}=r(96414),{isValidStatusCode:s}=r(42063),{mask:l,toBuffer:u}=r(80121),d=Buffer.alloc(4);class p{constructor(e,t){this._extensions=t||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let r=t.mask&&t.readOnly,a=t.mask?6:2,o=e.length;e.length>=65536?(a+=8,o=127):e.length>125&&(a+=2,o=126);let s=Buffer.allocUnsafe(r?e.length+a:a);return(s[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(s[0]|=64),s[1]=o,126===o?s.writeUInt16BE(e.length,2):127===o&&(s.writeUInt32BE(0,2),s.writeUInt32BE(e.length,6)),t.mask)?(i(d,0,4),s[1]|=128,s[a-4]=d[0],s[a-3]=d[1],s[a-2]=d[2],s[a-1]=d[3],r)?(l(e,d,s,a,e.length),[s]):(l(e,d,e,0,e.length),[s,e]):[s,e]}close(e,t,r,i){let a;if(void 0===e)a=o;else if("number"==typeof e&&s(e)){if(void 0===t||""===t)(a=Buffer.allocUnsafe(2)).writeUInt16BE(e,0);else{let r=Buffer.byteLength(t);if(r>123)throw RangeError("The message must not be greater than 123 bytes");(a=Buffer.allocUnsafe(2+r)).writeUInt16BE(e,0),a.write(t,2)}}else throw TypeError("First argument must be a valid error code number");this._deflating?this.enqueue([this.doClose,a,r,i]):this.doClose(a,r,i)}doClose(e,t,r){this.sendFrame(p.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:t,readOnly:!1}),r)}ping(e,t,r){let i=u(e);if(i.length>125)throw RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,i,t,u.readOnly,r]):this.doPing(i,t,u.readOnly,r)}doPing(e,t,r,i){this.sendFrame(p.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:t,readOnly:r}),i)}pong(e,t,r){let i=u(e);if(i.length>125)throw RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,i,t,u.readOnly,r]):this.doPong(i,t,u.readOnly,r)}doPong(e,t,r,i){this.sendFrame(p.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:t,readOnly:r}),i)}send(e,t,r){let i=u(e),o=this._extensions[a.extensionName],s=t.binary?2:1,l=t.compress;if(this._firstFragment?(this._firstFragment=!1,l&&o&&(l=i.length>=o._threshold),this._compress=l):(l=!1,s=0),t.fin&&(this._firstFragment=!0),o){let e={fin:t.fin,rsv1:l,opcode:s,mask:t.mask,readOnly:u.readOnly};this._deflating?this.enqueue([this.dispatch,i,this._compress,e,r]):this.dispatch(i,this._compress,e,r)}else this.sendFrame(p.frame(i,{fin:t.fin,rsv1:!1,opcode:s,mask:t.mask,readOnly:u.readOnly}),r)}dispatch(e,t,r,i){if(!t){this.sendFrame(p.frame(e,r),i);return}let o=this._extensions[a.extensionName];this._bufferedBytes+=e.length,this._deflating=!0,o.compress(e,r.fin,(t,a)=>{if(this._socket.destroyed){let e=Error("The socket was closed while data was being compressed");"function"==typeof i&&i(e);for(let t=0;t{"use strict";let{Duplex:i}=r(12781);function a(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function s(e){this.removeListener("error",s),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let r=!0,l=!0;function u(){r&&e._socket.resume()}e.readyState===e.CONNECTING?e.once("open",function(){e._receiver.removeAllListeners("drain"),e._receiver.on("drain",u)}):(e._receiver.removeAllListeners("drain"),e._receiver.on("drain",u));let d=new i({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(t){d.push(t)||(r=!1,e._socket.pause())}),e.once("error",function(e){d.destroyed||(l=!1,d.destroy(e))}),e.once("close",function(){d.destroyed||d.push(null)}),d._destroy=function(t,r){if(e.readyState===e.CLOSED){r(t),process.nextTick(a,d);return}let i=!1;e.once("error",function(e){i=!0,r(e)}),e.once("close",function(){i||r(t),process.nextTick(a,d)}),l&&e.terminate()},d._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",function(){d._final(t)});return}null!==e._socket&&(e._socket._writableState.finished?(t(),d._readableState.endEmitted&&d.destroy()):(e._socket.once("finish",function(){t()}),e.close()))},d._read=function(){e.readyState!==e.OPEN&&e.readyState!==e.CLOSING||r||(r=!0,e._receiver._writableState.needDrain||e._socket.resume())},d._write=function(t,r,i){if(e.readyState===e.CONNECTING){e.once("open",function(){d._write(t,r,i)});return}e.send(t,i)},d.on("end",o),d.on("error",s),d}},42063:(e,t,r)=>{"use strict";function i(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999}function a(e){let t=e.length,r=0;for(;r=t||(192&e[r+1])!=128||(192&e[r+2])!=128||224===e[r]&&(224&e[r+1])==128||237===e[r]&&(224&e[r+1])==160)return!1;r+=3}else{if((248&e[r])!=240||r+3>=t||(192&e[r+1])!=128||(192&e[r+2])!=128||(192&e[r+3])!=128||240===e[r]&&(240&e[r+1])==128||244===e[r]&&e[r+1]>143||e[r]>244)return!1;r+=4}return!0}try{let t=r(77640);"object"==typeof t&&(t=t.Validation.isValidUTF8),e.exports={isValidStatusCode:i,isValidUTF8:e=>e.length<150?a(e):t(e)}}catch(t){e.exports={isValidStatusCode:i,isValidUTF8:a}}},86425:(e,t,r)=>{"use strict";let i=r(82361),a=r(13685);r(95687),r(41808),r(24404);let{createHash:o}=r(6113),s=r(86721),l=r(62414),{format:u,parse:d}=r(28460),{GUID:p,kWebSocket:f}=r(96414),m=/^[+/0-9A-Za-z]{22}==$/;class g extends i{constructor(e,t){if(super(),null==(e={maxPayload:104857600,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=a.createServer((e,t)=>{let r=a.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),t.end(r)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(let r of Object.keys(t))e.on(r,t[r]);return function(){for(let r of Object.keys(t))e.removeListener(r,t[r])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,i)=>{this.handleUpgrade(t,r,i,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(e&&this.once("close",e),2===this._state){process.nextTick(v,this);return}if(1===this._state)return;if(this._state=1,this.clients)for(let e of this.clients)e.terminate();let t=this._server;if(t&&(this._removeListeners(),this._removeListeners=this._server=null,null!=this.options.port)){t.close(v.bind(void 0,this));return}process.nextTick(v,this)}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,i){t.on("error",b);let a=void 0!==e.headers["sec-websocket-key"]&&e.headers["sec-websocket-key"].trim(),o=e.headers.upgrade,l=+e.headers["sec-websocket-version"],u={};if("GET"!==e.method||void 0===o||"websocket"!==o.toLowerCase()||!a||!m.test(a)||8!==l&&13!==l||!this.shouldHandle(e))return y(t,400);if(this.options.perMessageDeflate){let r=new s(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let t=d(e.headers["sec-websocket-extensions"]);t[s.extensionName]&&(r.accept(t[s.extensionName]),u[s.extensionName]=r)}catch(e){return y(t,400)}}if(this.options.verifyClient){let o={origin:e.headers[`${8===l?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(2===this.options.verifyClient.length){this.options.verifyClient(o,(o,s,l,d)=>{if(!o)return y(t,s||401,l,d);this.completeUpgrade(a,u,e,t,r,i)});return}if(!this.options.verifyClient(o))return y(t,401)}this.completeUpgrade(a,u,e,t,r,i)}completeUpgrade(e,t,r,i,a,d){if(!i.readable||!i.writable)return i.destroy();if(i[f])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return y(i,503);let m=o("sha1").update(e+p).digest("base64"),g=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${m}`],v=new l(null),w=r.headers["sec-websocket-protocol"];if(w&&(w=w.split(",").map(_),(w=this.options.handleProtocols?this.options.handleProtocols(w,r):w[0])&&(g.push(`Sec-WebSocket-Protocol: ${w}`),v._protocol=w)),t[s.extensionName]){let e=t[s.extensionName].params,r=u({[s.extensionName]:[e]});g.push(`Sec-WebSocket-Extensions: ${r}`),v._extensions=t}this.emit("headers",g,r),i.write(g.concat("\r\n").join("\r\n")),i.removeListener("error",b),v.setSocket(i,a,this.options.maxPayload),this.clients&&(this.clients.add(v),v.on("close",()=>this.clients.delete(v))),d(v,r)}}function v(e){e._state=2,e.emit("close")}function b(){this.destroy()}function y(e,t,r,i){e.writable&&(r=r||a.STATUS_CODES[t],i={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...i},e.write(`HTTP/1.1 ${t} ${a.STATUS_CODES[t]}\r `+Object.keys(i).map(e=>`${e}: ${i[e]}`).join("\r\n")+"\r\n\r\n"+r)),e.removeListener("error",b),e.destroy()}function _(e){return e.trim()}e.exports=g},62414:(e,t,r)=>{"use strict";let i=r(82361),a=r(95687),o=r(13685),s=r(41808),l=r(24404),{randomBytes:u,createHash:d}=r(6113),{Readable:p}=r(12781),{URL:f}=r(57310),m=r(86721),g=r(40037),v=r(24207),{BINARY_TYPES:b,EMPTY_BUFFER:y,GUID:_,kStatusCode:w,kWebSocket:k,NOOP:x}=r(96414),{addEventListener:E,removeEventListener:F}=r(55832),{format:C,parse:S}=r(28460),{toBuffer:D}=r(80121),j=["CONNECTING","OPEN","CLOSING","CLOSED"],T=[8,13];class O extends i{constructor(e,t,r){super(),this._binaryType=b[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=O.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(t)?t=t.join(", "):"object"==typeof t&&null!==t&&(r=t,t=void 0),function e(t,r,i,s){let l,p;let g={protocolVersion:T[1],maxPayload:104857600,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...s,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,host:void 0,path:void 0,port:void 0};if(!T.includes(g.protocolVersion))throw RangeError(`Unsupported protocol version: ${g.protocolVersion} (supported versions: ${T.join(", ")})`);r instanceof f?(l=r,t._url=r.href):(l=new f(r),t._url=r);let v="ws+unix:"===l.protocol;if(!l.host&&(!v||!l.pathname)){let e=Error(`Invalid URL: ${t.url}`);if(0===t._redirects)throw e;P(t,e);return}let b="wss:"===l.protocol||"https:"===l.protocol,y=b?443:80,w=u(16).toString("base64"),k=b?a.get:o.get;if(g.createConnection=b?M:R,g.defaultPort=g.defaultPort||y,g.port=l.port||y,g.host=l.hostname.startsWith("[")?l.hostname.slice(1,-1):l.hostname,g.headers={"Sec-WebSocket-Version":g.protocolVersion,"Sec-WebSocket-Key":w,Connection:"Upgrade",Upgrade:"websocket",...g.headers},g.path=l.pathname+l.search,g.timeout=g.handshakeTimeout,g.perMessageDeflate&&(p=new m(!0!==g.perMessageDeflate?g.perMessageDeflate:{},!1,g.maxPayload),g.headers["Sec-WebSocket-Extensions"]=C({[m.extensionName]:p.offer()})),i&&(g.headers["Sec-WebSocket-Protocol"]=i),g.origin&&(g.protocolVersion<13?g.headers["Sec-WebSocket-Origin"]=g.origin:g.headers.Origin=g.origin),(l.username||l.password)&&(g.auth=`${l.username}:${l.password}`),v){let e=g.path.split(":");g.socketPath=e[0],g.path=e[1]}if(g.followRedirects){if(0===t._redirects){t._originalUnixSocket=v,t._originalSecure=b,t._originalHostOrSocketPath=v?g.socketPath:l.host;let e=s&&s.headers;if(s={...s,headers:{}},e)for(let[t,r]of Object.entries(e))s.headers[t.toLowerCase()]=r}else{let e=v?!!t._originalUnixSocket&&g.socketPath===t._originalHostOrSocketPath:!t._originalUnixSocket&&l.host===t._originalHostOrSocketPath;e&&(!t._originalSecure||b)||(delete g.headers.authorization,delete g.headers.cookie,e||delete g.headers.host,g.auth=void 0)}g.auth&&!s.headers.authorization&&(s.headers.authorization="Basic "+Buffer.from(g.auth).toString("base64"))}let x=t._req=k(g);g.timeout&&x.on("timeout",()=>{L(t,x,"Opening handshake has timed out")}),x.on("error",e=>{null===x||x.aborted||(x=t._req=null,P(t,e))}),x.on("response",a=>{let o=a.headers.location,l=a.statusCode;if(o&&g.followRedirects&&l>=300&&l<400){let a;if(++t._redirects>g.maxRedirects){L(t,x,"Maximum redirects exceeded");return}x.abort();try{a=new f(o,r)}catch(e){P(t,e);return}e(t,a,i,s)}else t.emit("unexpected-response",x,a)||L(t,x,`Unexpected server response: ${a.statusCode}`)}),x.on("upgrade",(e,r,a)=>{let o;if(t.emit("upgrade",e),t.readyState!==O.CONNECTING)return;x=t._req=null;let s=e.headers.upgrade;if(void 0===s||"websocket"!==s.toLowerCase()){L(t,r,"Invalid Upgrade header");return}let l=d("sha1").update(w+_).digest("base64");if(e.headers["sec-websocket-accept"]!==l){L(t,r,"Invalid Sec-WebSocket-Accept header");return}let u=e.headers["sec-websocket-protocol"],f=(i||"").split(/, */);if(!i&&u?o="Server sent a subprotocol but none was requested":i&&!u?o="Server sent no subprotocol":u&&!f.includes(u)&&(o="Server sent an invalid subprotocol"),o){L(t,r,o);return}u&&(t._protocol=u);let v=e.headers["sec-websocket-extensions"];if(void 0!==v){let e;if(!p){L(t,r,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}try{e=S(v)}catch(e){L(t,r,"Invalid Sec-WebSocket-Extensions header");return}let i=Object.keys(e);if(i.length){if(1!==i.length||i[0]!==m.extensionName){L(t,r,"Server indicated an extension that was not requested");return}try{p.accept(e[m.extensionName])}catch(e){L(t,r,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[m.extensionName]=p}}t.setSocket(r,a,g.maxPayload)})}(this,e,t,r)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){b.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get onclose(){}set onclose(e){}get onerror(){}set onerror(e){}get onopen(){}set onopen(e){}get onmessage(){}set onmessage(e){}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let i=new g(this.binaryType,this._extensions,this._isServer,r);this._sender=new v(e,this._extensions),this._receiver=i,this._socket=e,i[k]=this,e[k]=this,i.on("conclude",I),i.on("drain",N),i.on("error",B),i.on("message",z),i.on("ping",H),i.on("pong",q),e.setTimeout(0),e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",W),e.on("data",$),e.on("end",G),e.on("error",Y),this._readyState=O.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=O.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[m.extensionName]&&this._extensions[m.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=O.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==O.CLOSED){if(this.readyState===O.CONNECTING)return L(this,this._req,"WebSocket was closed before the connection was established");if(this.readyState===O.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=O.CLOSING,this._sender.close(e,t,!this._isServer,e=>{!e&&(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)}}ping(e,t,r){if(this.readyState===O.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState!==O.OPEN){A(this,e,r);return}void 0===t&&(t=!this._isServer),this._sender.ping(e||y,t,r)}pong(e,t,r){if(this.readyState===O.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState!==O.OPEN){A(this,e,r);return}void 0===t&&(t=!this._isServer),this._sender.pong(e||y,t,r)}send(e,t,r){if(this.readyState===O.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(r=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==O.OPEN){A(this,e,r);return}let i={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[m.extensionName]||(i.compress=!1),this._sender.send(e||y,i,r)}terminate(){if(this.readyState!==O.CLOSED){if(this.readyState===O.CONNECTING)return L(this,this._req,"WebSocket was closed before the connection was established");this._socket&&(this._readyState=O.CLOSING,this._socket.destroy())}}}function P(e,t){e._readyState=O.CLOSING,e.emit("error",t),e.emitClose()}function R(e){return e.path=e.socketPath,s.connect(e)}function M(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=s.isIP(e.host)?"":e.host),l.connect(e)}function L(e,t,r){e._readyState=O.CLOSING;let i=Error(r);Error.captureStackTrace(i,L),t.setHeader?(t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),t.once("abort",e.emitClose.bind(e)),e.emit("error",i)):(t.destroy(i),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function A(e,t,r){if(t){let r=D(t).length;e._socket?e._sender._bufferedBytes+=r:e._bufferedAmount+=r}r&&r(Error(`WebSocket is not open: readyState ${e.readyState} (${j[e.readyState]})`))}function I(e,t){let r=this[k];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,void 0!==r._socket[k]&&(r._socket.removeListener("data",$),process.nextTick(V,r._socket),1005===e?r.close():r.close(e,t))}function N(){this[k]._socket.resume()}function B(e){let t=this[k];void 0!==t._socket[k]&&(t._socket.removeListener("data",$),process.nextTick(V,t._socket),t.close(e[w])),t.emit("error",e)}function U(){this[k].emitClose()}function z(e){this[k].emit("message",e)}function H(e){let t=this[k];t.pong(e,!t._isServer,x),t.emit("ping",e)}function q(e){this[k].emit("pong",e)}function V(e){e.resume()}function W(){let e;let t=this[k];this.removeListener("close",W),this.removeListener("data",$),this.removeListener("end",G),t._readyState=O.CLOSING,this._readableState.endEmitted||t._closeFrameReceived||t._receiver._writableState.errorEmitted||null===(e=t._socket.read())||t._receiver.write(e),t._receiver.end(),this[k]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",U),t._receiver.on("finish",U))}function $(e){this[k]._receiver.write(e)||this.pause()}function G(){let e=this[k];e._readyState=O.CLOSING,e._receiver.end(),this.end()}function Y(){let e=this[k];this.removeListener("error",Y),this.on("error",x),e&&(e._readyState=O.CLOSING,this.destroy())}Object.defineProperty(O,"CONNECTING",{enumerable:!0,value:j.indexOf("CONNECTING")}),Object.defineProperty(O.prototype,"CONNECTING",{enumerable:!0,value:j.indexOf("CONNECTING")}),Object.defineProperty(O,"OPEN",{enumerable:!0,value:j.indexOf("OPEN")}),Object.defineProperty(O.prototype,"OPEN",{enumerable:!0,value:j.indexOf("OPEN")}),Object.defineProperty(O,"CLOSING",{enumerable:!0,value:j.indexOf("CLOSING")}),Object.defineProperty(O.prototype,"CLOSING",{enumerable:!0,value:j.indexOf("CLOSING")}),Object.defineProperty(O,"CLOSED",{enumerable:!0,value:j.indexOf("CLOSED")}),Object.defineProperty(O.prototype,"CLOSED",{enumerable:!0,value:j.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach(e=>{Object.defineProperty(O.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(O.prototype,`on${e}`,{enumerable:!0,get(){let t=this.listeners(e);for(let e=0;e{var i=r(6007);function a(e,t){var r,a,o,s=null;if(!e||"string"!=typeof e)return s;for(var l=i(e),u="function"==typeof t,d=0,p=l.length;d{!function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],r="undefined"!=typeof window,i=r&&null!=window.mozInnerScreenX;function a(e,a,o){if(!r)throw Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var s=o&&o.debug||!1;if(s){var l=document.querySelector("#input-textarea-caret-position-mirror-div");l&&l.parentNode.removeChild(l)}var u=document.createElement("div");u.id="input-textarea-caret-position-mirror-div",document.body.appendChild(u);var d=u.style,p=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f="INPUT"===e.nodeName;d.whiteSpace="pre-wrap",f||(d.wordWrap="break-word"),d.position="absolute",s||(d.visibility="hidden"),t.forEach(function(e){f&&"lineHeight"===e?d.lineHeight=p.height:d[e]=p[e]}),i?e.scrollHeight>parseInt(p.height)&&(d.overflowY="scroll"):d.overflow="hidden",u.textContent=e.value.substring(0,a),f&&(u.textContent=u.textContent.replace(/\s/g,"\xa0"));var m=document.createElement("span");m.textContent=e.value.substring(a)||".",u.appendChild(m);var g={top:m.offsetTop+parseInt(p.borderTopWidth),left:m.offsetLeft+parseInt(p.borderLeftWidth),height:parseInt(p.lineHeight)};return s?m.style.backgroundColor="#aaa":document.body.removeChild(u),g}void 0!==e.exports?e.exports=a:r&&(window.getCaretCoordinates=a)}()},53557:function(e,t,r){var i;!function(a,o){"use strict";var s="function",l="undefined",u="object",d="string",p="major",f="model",m="name",g="type",v="vendor",b="version",y="architecture",_="console",w="mobile",k="tablet",x="smarttv",E="wearable",F="embedded",C="Amazon",S="Apple",D="ASUS",j="BlackBerry",T="Browser",O="Chrome",P="Firefox",R="Google",M="Huawei",L="Microsoft",A="Motorola",I="Opera",N="Samsung",B="Sharp",U="Sony",z="Xiaomi",H="Zebra",q="Facebook",V="Chromium OS",W="Mac OS",$=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},G=function(e){for(var t={},r=0;r0?2===l.length?typeof l[1]==s?this[l[0]]=l[1].call(this,p):this[l[0]]=l[1]:3===l.length?typeof l[1]!==s||l[1].exec&&l[1].test?this[l[0]]=p?p.replace(l[1],l[2]):void 0:this[l[0]]=p?l[1].call(this,p,l[2]):void 0:4===l.length&&(this[l[0]]=p?l[3].call(this,p.replace(l[1],l[2])):void 0):this[l]=p||o;f+=2}},X=function(e,t){for(var r in t)if(typeof t[r]===u&&t[r].length>0){for(var i=0;i2&&(e[f]="iPad",e[g]=k),e},this.getEngine=function(){var e={};return e[m]=o,e[b]=o,J.call(e,i,x.engine),e},this.getOS=function(){var e={};return e[m]=o,e[b]=o,J.call(e,i,x.os),E&&!e[m]&&_&&_.platform&&"Unknown"!=_.platform&&(e[m]=_.platform.replace(/chrome os/i,V).replace(/macos/i,W)),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 i},this.setUA=function(e){return i=typeof e===d&&e.length>500?Z(e,500):e,this},this.setUA(i),this};et.VERSION="1.0.38",et.BROWSER=G([m,b,p]),et.CPU=G([y]),et.DEVICE=G([f,v,g,_,w,x,k,E,F]),et.ENGINE=et.OS=G([m,b]),typeof t!==l?(e.exports&&(t=e.exports=et),t.UAParser=et):r.amdO?o!==(i=(function(){return et}).call(t,r,t,e))&&(e.exports=i):typeof a!==l&&(a.UAParser=et);var en=typeof a!==l&&(a.jQuery||a.Zepto);if(en&&!en.ua){var er=new et;en.ua=er.getResult(),en.ua.get=function(){return er.getUA()},en.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)en.ua[r]=t[r]}}}("object"==typeof window?window:this)},13154:(e,t,r)=>{"use strict";let i=r(46342);i.createWebSocketStream=r(42504),i.Server=r(30359),i.Receiver=r(83958),i.Sender=r(74036),i.WebSocket=i,i.WebSocketServer=i.Server,e.exports=i},17878:(e,t,r)=>{"use strict";let{EMPTY_BUFFER:i}=r(39353),a=Buffer[Symbol.species];function o(e,t,r,i,a){for(let o=0;o{"use strict";let t=["nodebuffer","arraybuffer","fragments"],r="undefined"!=typeof Blob;r&&t.push("blob"),e.exports={BINARY_TYPES:t,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:r,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},91368:(e,t,r)=>{"use strict";let{kForOnEventAttribute:i,kListener:a}=r(39353),o=Symbol("kCode"),s=Symbol("kData"),l=Symbol("kError"),u=Symbol("kMessage"),d=Symbol("kReason"),p=Symbol("kTarget"),f=Symbol("kType"),m=Symbol("kWasClean");class g{constructor(e){this[p]=null,this[f]=e}get target(){return this[p]}get type(){return this[f]}}Object.defineProperty(g.prototype,"target",{enumerable:!0}),Object.defineProperty(g.prototype,"type",{enumerable:!0});class v extends g{constructor(e,t={}){super(e),this[o]=void 0===t.code?0:t.code,this[d]=void 0===t.reason?"":t.reason,this[m]=void 0!==t.wasClean&&t.wasClean}get code(){return this[o]}get reason(){return this[d]}get wasClean(){return this[m]}}Object.defineProperty(v.prototype,"code",{enumerable:!0}),Object.defineProperty(v.prototype,"reason",{enumerable:!0}),Object.defineProperty(v.prototype,"wasClean",{enumerable:!0});class b extends g{constructor(e,t={}){super(e),this[l]=void 0===t.error?null:t.error,this[u]=void 0===t.message?"":t.message}get error(){return this[l]}get message(){return this[u]}}Object.defineProperty(b.prototype,"error",{enumerable:!0}),Object.defineProperty(b.prototype,"message",{enumerable:!0});class y extends g{constructor(e,t={}){super(e),this[s]=void 0===t.data?null:t.data}get data(){return this[s]}}function _(e,t,r){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,r):e.call(t,r)}Object.defineProperty(y.prototype,"data",{enumerable:!0}),e.exports={CloseEvent:v,ErrorEvent:b,Event:g,EventTarget:{addEventListener(e,t,r={}){let o;for(let o of this.listeners(e))if(!r[i]&&o[a]===t&&!o[i])return;if("message"===e)o=function(e,r){let i=new y("message",{data:r?e:e.toString()});i[p]=this,_(t,this,i)};else if("close"===e)o=function(e,r){let i=new v("close",{code:e,reason:r.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});i[p]=this,_(t,this,i)};else if("error"===e)o=function(e){let r=new b("error",{error:e,message:e.message});r[p]=this,_(t,this,r)};else{if("open"!==e)return;o=function(){let e=new g("open");e[p]=this,_(t,this,e)}}o[i]=!!r[i],o[a]=t,r.once?this.once(e,o):this.on(e,o)},removeEventListener(e,t){for(let r of this.listeners(e))if(r[a]===t&&!r[i]){this.removeListener(e,r);break}}},MessageEvent:y}},49964:(e,t,r)=>{"use strict";let{tokenChars:i}=r(94568);function a(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}e.exports={format:function(e){return Object.keys(e).map(t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(e=>[t].concat(Object.keys(e).map(t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(e){let t,r;let o=Object.create(null),s=Object.create(null),l=!1,u=!1,d=!1,p=-1,f=-1,m=-1,g=0;for(;g{"use strict";let t=Symbol("kDone"),r=Symbol("kRun");class i{constructor(e){this[t]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[t])}}}e.exports=i},97959:(e,t,r)=>{"use strict";let i;let a=r(59796),o=r(17878),s=r(25936),{kStatusCode:l}=r(39353),u=Buffer[Symbol.species],d=Buffer.from([0,0,255,255]),p=Symbol("permessage-deflate"),f=Symbol("total-length"),m=Symbol("callback"),g=Symbol("buffers"),v=Symbol("error");class b{constructor(e,t,r){this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,i||(i=new s(void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10))}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[m];this._deflate.close(),this._deflate=null,e&&e(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(e=>(!1!==t.serverNoContextTakeover||!e.server_no_context_takeover)&&(!e.server_max_window_bits||!1!==t.serverMaxWindowBits&&("number"!=typeof t.serverMaxWindowBits||!(t.serverMaxWindowBits>e.server_max_window_bits)))&&("number"!=typeof t.clientMaxWindowBits||!!e.client_max_window_bits));if(!r)throw Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(r.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?r.client_max_window_bits=t.clientMaxWindowBits:(!0===r.client_max_window_bits||!1===t.clientMaxWindowBits)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let r=e[t];if(r.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(r=r[0],"client_max_window_bits"===t){if(!0!==r){let e=+r;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${r}`)}else if("server_max_window_bits"===t){let e=+r;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else if("client_no_context_takeover"===t||"server_no_context_takeover"===t){if(!0!==r)throw TypeError(`Invalid value for parameter "${t}": ${r}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=r})}),e}decompress(e,t,r){i.add(i=>{this._decompress(e,t,(e,t)=>{i(),r(e,t)})})}compress(e,t,r){i.add(i=>{this._compress(e,t,(e,t)=>{i(),r(e,t)})})}_decompress(e,t,r){let i=this._isServer?"client":"server";if(!this._inflate){let e=`${i}_max_window_bits`,t="number"!=typeof this.params[e]?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=a.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[p]=this,this._inflate[f]=0,this._inflate[g]=[],this._inflate.on("error",w),this._inflate.on("data",_)}this._inflate[m]=r,this._inflate.write(e),t&&this._inflate.write(d),this._inflate.flush(()=>{let e=this._inflate[v];if(e){this._inflate.close(),this._inflate=null,r(e);return}let a=o.concat(this._inflate[g],this._inflate[f]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[f]=0,this._inflate[g]=[],t&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),r(null,a)})}_compress(e,t,r){let i=this._isServer?"server":"client";if(!this._deflate){let e=`${i}_max_window_bits`,t="number"!=typeof this.params[e]?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=a.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[f]=0,this._deflate[g]=[],this._deflate.on("data",y)}this._deflate[m]=r,this._deflate.write(e),this._deflate.flush(a.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=o.concat(this._deflate[g],this._deflate[f]);t&&(e=new u(e.buffer,e.byteOffset,e.length-4)),this._deflate[m]=null,this._deflate[f]=0,this._deflate[g]=[],t&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),r(null,e)})}}function y(e){this[g].push(e),this[f]+=e.length}function _(e){if(this[f]+=e.length,this[p]._maxPayload<1||this[f]<=this[p]._maxPayload){this[g].push(e);return}this[v]=RangeError("Max payload size exceeded"),this[v].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[v][l]=1009,this.removeListener("data",_),this.reset()}function w(e){this[p]._inflate=null,e[l]=1007,this[m](e)}e.exports=b},83958:(e,t,r)=>{"use strict";let{Writable:i}=r(12781),a=r(97959),{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:l,kWebSocket:u}=r(39353),{concat:d,toArrayBuffer:p,unmask:f}=r(17878),{isValidStatusCode:m,isValidUTF8:g}=r(94568),v=Buffer[Symbol.species];class b extends i{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||o[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[u]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,r){if(8===this._opcode&&0==this._state)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e=r.length?t.set(this._buffers.shift(),i):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),i),this._buffers[0]=new v(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((48&t[0])!=0){e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"));return}let r=(64&t[0])==64;if(r&&!this._extensions[a.extensionName]){e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));return}if(this._fin=(128&t[0])==128,this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(r){e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));return}if(!this._fragmented){e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"));return}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"));return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"));return}if(r){e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));return}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"));return}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=(128&t[1])==128,this._isServer){if(!this._masked){e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"));return}}else if(this._masked){e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"));return}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>2097151){e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"));return}this._payloadLength=4294967296*r+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[a.extensionName].decompress(e,this._fin,(e,r)=>{if(e)return t(e);if(r.length){if(this._messageLength+=r.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));return}this._fragments.push(r)}this.dataMessage(t),0===this._state&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let i;i="nodebuffer"===this._binaryType?d(r,t):"arraybuffer"===this._binaryType?p(d(r,t)):"blob"===this._binaryType?new Blob(r):r,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",i,!0),this._state=0,this.startLoop(e)}))}else{let i=d(r,t);if(!this._skipUTF8Validation&&!g(i)){e(this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8"));return}5===this._state||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",i,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(8===this._opcode){if(0===e.length)this._loop=!1,this.emit("conclude",1005,s),this.end();else{let r=e.readUInt16BE(0);if(!m(r)){t(this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE"));return}let i=new v(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!g(i)){t(this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8"));return}this._loop=!1,this.emit("conclude",r,i),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)}))}createError(e,t,r,i,a){this._loop=!1,this._errored=!0;let o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=a,o[l]=i,o}}e.exports=b},74036:(e,t,r)=>{"use strict";let i;let{Duplex:a}=r(12781),{randomFillSync:o}=r(6113),s=r(97959),{EMPTY_BUFFER:l,kWebSocket:u,NOOP:d}=r(39353),{isBlob:p,isValidStatusCode:f}=r(94568),{mask:m,toBuffer:g}=r(17878),v=Symbol("kByteLength"),b=Buffer.alloc(4),y=8192;class _{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=d,this[u]=void 0}static frame(e,t){let r,a;let s=!1,l=2,u=!1;t.mask&&(r=t.maskBuffer||b,t.generateMask?t.generateMask(r):(8192===y&&(void 0===i&&(i=Buffer.alloc(8192)),o(i,0,8192),y=0),r[0]=i[y++],r[1]=i[y++],r[2]=i[y++],r[3]=i[y++]),u=(r[0]|r[1]|r[2]|r[3])==0,l=6),"string"==typeof e?a=(!t.mask||u)&&void 0!==t[v]?t[v]:(e=Buffer.from(e)).length:(a=e.length,s=t.mask&&t.readOnly&&!u);let d=a;a>=65536?(l+=8,d=127):a>125&&(l+=2,d=126);let p=Buffer.allocUnsafe(s?a+l:l);return(p[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(p[0]|=64),p[1]=d,126===d?p.writeUInt16BE(a,2):127===d&&(p[2]=p[3]=0,p.writeUIntBE(a,4,6)),t.mask)?(p[1]|=128,p[l-4]=r[0],p[l-3]=r[1],p[l-2]=r[2],p[l-1]=r[3],u)?[p,e]:s?(m(e,r,p,l,a),[p]):(m(e,r,e,0,a),[p,e]):[p,e]}close(e,t,r,i){let a;if(void 0===e)a=l;else if("number"==typeof e&&f(e)){if(void 0!==t&&t.length){let r=Buffer.byteLength(t);if(r>123)throw RangeError("The message must not be greater than 123 bytes");(a=Buffer.allocUnsafe(2+r)).writeUInt16BE(e,0),"string"==typeof t?a.write(t,2):a.set(t,2)}else(a=Buffer.allocUnsafe(2)).writeUInt16BE(e,0)}else throw TypeError("First argument must be a valid error code number");let o={[v]:a.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,a,!1,o,i]):this.sendFrame(_.frame(a,o),i)}ping(e,t,r){let i,a;if("string"==typeof e?(i=Buffer.byteLength(e),a=!1):p(e)?(i=e.size,a=!1):(i=(e=g(e)).length,a=g.readOnly),i>125)throw RangeError("The data size must not be greater than 125 bytes");let o={[v]:i,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};p(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):0!==this._state?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(_.frame(e,o),r)}pong(e,t,r){let i,a;if("string"==typeof e?(i=Buffer.byteLength(e),a=!1):p(e)?(i=e.size,a=!1):(i=(e=g(e)).length,a=g.readOnly),i>125)throw RangeError("The data size must not be greater than 125 bytes");let o={[v]:i,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};p(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):0!==this._state?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(_.frame(e,o),r)}send(e,t,r){let i,a;let o=this._extensions[s.extensionName],l=t.binary?2:1,u=t.compress;"string"==typeof e?(i=Buffer.byteLength(e),a=!1):p(e)?(i=e.size,a=!1):(i=(e=g(e)).length,a=g.readOnly),this._firstFragment?(this._firstFragment=!1,u&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(u=i>=o._threshold),this._compress=u):(u=!1,l=0),t.fin&&(this._firstFragment=!0);let d={[v]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:l,readOnly:a,rsv1:u};p(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,d,r]):this.getBlobData(e,this._compress,d,r):0!==this._state?this.enqueue([this.dispatch,e,this._compress,d,r]):this.dispatch(e,this._compress,d,r)}getBlobData(e,t,r,i){this._bufferedBytes+=r[v],this._state=2,e.arrayBuffer().then(e=>{if(this._socket.destroyed){let e=Error("The socket was closed while the blob was being read");process.nextTick(w,this,e,i);return}this._bufferedBytes-=r[v];let a=g(e);t?this.dispatch(a,t,r,i):(this._state=0,this.sendFrame(_.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(k,this,e,i)})}dispatch(e,t,r,i){if(!t){this.sendFrame(_.frame(e,r),i);return}let a=this._extensions[s.extensionName];this._bufferedBytes+=r[v],this._state=1,a.compress(e,r.fin,(e,t)=>{if(this._socket.destroyed){w(this,Error("The socket was closed while data was being compressed"),i);return}this._bufferedBytes-=r[v],this._state=0,r.readOnly=!1,this.sendFrame(_.frame(t,r),i),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][v],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][v],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function w(e,t,r){"function"==typeof r&&r(t);for(let r=0;r{"use strict";let{Duplex:i}=r(12781);function a(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function s(e){this.removeListener("error",s),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let r=!0,l=new i({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(t,r){let i=!r&&l._readableState.objectMode?t.toString():t;l.push(i)||e.pause()}),e.once("error",function(e){l.destroyed||(r=!1,l.destroy(e))}),e.once("close",function(){l.destroyed||l.push(null)}),l._destroy=function(t,i){if(e.readyState===e.CLOSED){i(t),process.nextTick(a,l);return}let o=!1;e.once("error",function(e){o=!0,i(e)}),e.once("close",function(){o||i(t),process.nextTick(a,l)}),r&&e.terminate()},l._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",function(){l._final(t)});return}null!==e._socket&&(e._socket._writableState.finished?(t(),l._readableState.endEmitted&&l.destroy()):(e._socket.once("finish",function(){t()}),e.close()))},l._read=function(){e.isPaused&&e.resume()},l._write=function(t,r,i){if(e.readyState===e.CONNECTING){e.once("open",function(){l._write(t,r,i)});return}e.send(t,i)},l.on("end",o),l.on("error",s),l}},62444:(e,t,r)=>{"use strict";let{tokenChars:i}=r(94568);e.exports={parse:function(e){let t=new Set,r=-1,a=-1,o=0;for(;o{"use strict";let{isUtf8:i}=r(14300),{hasBlob:a}=r(39353);function o(e){let t=e.length,r=0;for(;r=t||(192&e[r+1])!=128||(192&e[r+2])!=128||224===e[r]&&(224&e[r+1])==128||237===e[r]&&(224&e[r+1])==160)return!1;r+=3}else{if((248&e[r])!=240||r+3>=t||(192&e[r+1])!=128||(192&e[r+2])!=128||(192&e[r+3])!=128||240===e[r]&&(240&e[r+1])==128||244===e[r]&&e[r+1]>143||e[r]>244)return!1;r+=4}return!0}if(e.exports={isBlob:function(e){return a&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:o,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},i)e.exports.isValidUTF8=function(e){return e.length<24?o(e):i(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=r(93739);e.exports.isValidUTF8=function(e){return e.length<32?o(e):t(e)}}catch(e){}},30359:(e,t,r)=>{"use strict";let i=r(82361),a=r(13685),{Duplex:o}=r(12781),{createHash:s}=r(6113),l=r(49964),u=r(97959),d=r(62444),p=r(46342),{GUID:f,kWebSocket:m}=r(39353),g=/^[+/0-9A-Za-z]{22}==$/;class v extends i{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:p,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=a.createServer((e,t)=>{let r=a.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),t.end(r)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(let r of Object.keys(t))e.on(r,t[r]);return function(){for(let r of Object.keys(t))e.removeListener(r,t[r])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,i)=>{this.handleUpgrade(t,r,i,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state){e&&this.once("close",()=>{e(Error("The server is not running"))}),process.nextTick(b,this);return}if(e&&this.once("close",e),1!==this._state){if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(b,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{b(this)})}}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,i){t.on("error",y);let a=e.headers["sec-websocket-key"],o=e.headers.upgrade,s=+e.headers["sec-websocket-version"];if("GET"!==e.method){w(this,e,t,405,"Invalid HTTP method");return}if(void 0===o||"websocket"!==o.toLowerCase()){w(this,e,t,400,"Invalid Upgrade header");return}if(void 0===a||!g.test(a)){w(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(8!==s&&13!==s){w(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){_(t,400);return}let p=e.headers["sec-websocket-protocol"],f=new Set;if(void 0!==p)try{f=d.parse(p)}catch(r){w(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let m=e.headers["sec-websocket-extensions"],v={};if(this.options.perMessageDeflate&&void 0!==m){let r=new u(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let e=l.parse(m);e[u.extensionName]&&(r.accept(e[u.extensionName]),v[u.extensionName]=r)}catch(r){w(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let o={origin:e.headers[`${8===s?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(2===this.options.verifyClient.length){this.options.verifyClient(o,(o,s,l,u)=>{if(!o)return _(t,s||401,l,u);this.completeUpgrade(v,a,f,e,t,r,i)});return}if(!this.options.verifyClient(o))return _(t,401)}this.completeUpgrade(v,a,f,e,t,r,i)}completeUpgrade(e,t,r,i,a,o,d){if(!a.readable||!a.writable)return a.destroy();if(a[m])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return _(a,503);let p=s("sha1").update(t+f).digest("base64"),g=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${p}`],v=new this.options.WebSocket(null,void 0,this.options);if(r.size){let e=this.options.handleProtocols?this.options.handleProtocols(r,i):r.values().next().value;e&&(g.push(`Sec-WebSocket-Protocol: ${e}`),v._protocol=e)}if(e[u.extensionName]){let t=e[u.extensionName].params,r=l.format({[u.extensionName]:[t]});g.push(`Sec-WebSocket-Extensions: ${r}`),v._extensions=e}this.emit("headers",g,i),a.write(g.concat("\r\n").join("\r\n")),a.removeListener("error",y),v.setSocket(a,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(v),v.on("close",()=>{this.clients.delete(v),this._shouldEmitClose&&!this.clients.size&&process.nextTick(b,this)})),d(v,i)}}function b(e){e._state=2,e.emit("close")}function y(){this.destroy()}function _(e,t,r,i){r=r||a.STATUS_CODES[t],i={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...i},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${a.STATUS_CODES[t]}\r `+Object.keys(i).map(e=>`${e}: ${i[e]}`).join("\r\n")+"\r\n\r\n"+r)}function w(e,t,r,i,a){if(e.listenerCount("wsClientError")){let i=Error(a);Error.captureStackTrace(i,w),e.emit("wsClientError",i,r,t)}else _(r,i,a)}e.exports=v},46342:(e,t,r)=>{"use strict";let i=r(82361),a=r(95687),o=r(13685),s=r(41808),l=r(24404),{randomBytes:u,createHash:d}=r(6113),{Duplex:p,Readable:f}=r(12781),{URL:m}=r(57310),g=r(97959),v=r(83958),b=r(74036),{isBlob:y}=r(94568),{BINARY_TYPES:_,EMPTY_BUFFER:w,GUID:k,kForOnEventAttribute:x,kListener:E,kStatusCode:F,kWebSocket:C,NOOP:S}=r(39353),{EventTarget:{addEventListener:D,removeEventListener:j}}=r(91368),{format:T,parse:O}=r(49964),{toBuffer:P}=r(17878),R=Symbol("kAborted"),M=[8,13],L=["CONNECTING","OPEN","CLOSING","CLOSED"],A=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class I extends i{constructor(e,t,r){super(),this._binaryType=_[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=w,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=I.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(r=t,t=[]):t=[t]),function e(t,r,i,s){let l,p,f,v;let b={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:M[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...s,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=b.autoPong,!M.includes(b.protocolVersion))throw RangeError(`Unsupported protocol version: ${b.protocolVersion} (supported versions: ${M.join(", ")})`);if(r instanceof m)l=r;else try{l=new m(r)}catch(e){throw SyntaxError(`Invalid URL: ${r}`)}"http:"===l.protocol?l.protocol="ws:":"https:"===l.protocol&&(l.protocol="wss:"),t._url=l.href;let y="wss:"===l.protocol,_="ws+unix:"===l.protocol;if("ws:"===l.protocol||y||_?_&&!l.pathname?p="The URL's pathname is empty":l.hash&&(p="The URL contains a fragment identifier"):p='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"',p){let e=SyntaxError(p);if(0===t._redirects)throw e;N(t,e);return}let w=y?443:80,x=u(16).toString("base64"),E=y?a.request:o.request,F=new Set;if(b.createConnection=b.createConnection||(y?U:B),b.defaultPort=b.defaultPort||w,b.port=l.port||w,b.host=l.hostname.startsWith("[")?l.hostname.slice(1,-1):l.hostname,b.headers={...b.headers,"Sec-WebSocket-Version":b.protocolVersion,"Sec-WebSocket-Key":x,Connection:"Upgrade",Upgrade:"websocket"},b.path=l.pathname+l.search,b.timeout=b.handshakeTimeout,b.perMessageDeflate&&(f=new g(!0!==b.perMessageDeflate?b.perMessageDeflate:{},!1,b.maxPayload),b.headers["Sec-WebSocket-Extensions"]=T({[g.extensionName]:f.offer()})),i.length){for(let e of i){if("string"!=typeof e||!A.test(e)||F.has(e))throw SyntaxError("An invalid or duplicated subprotocol was specified");F.add(e)}b.headers["Sec-WebSocket-Protocol"]=i.join(",")}if(b.origin&&(b.protocolVersion<13?b.headers["Sec-WebSocket-Origin"]=b.origin:b.headers.Origin=b.origin),(l.username||l.password)&&(b.auth=`${l.username}:${l.password}`),_){let e=b.path.split(":");b.socketPath=e[0],b.path=e[1]}if(b.followRedirects){if(0===t._redirects){t._originalIpc=_,t._originalSecure=y,t._originalHostOrSocketPath=_?b.socketPath:l.host;let e=s&&s.headers;if(s={...s,headers:{}},e)for(let[t,r]of Object.entries(e))s.headers[t.toLowerCase()]=r}else if(0===t.listenerCount("redirect")){let e=_?!!t._originalIpc&&b.socketPath===t._originalHostOrSocketPath:!t._originalIpc&&l.host===t._originalHostOrSocketPath;e&&(!t._originalSecure||y)||(delete b.headers.authorization,delete b.headers.cookie,e||delete b.headers.host,b.auth=void 0)}b.auth&&!s.headers.authorization&&(s.headers.authorization="Basic "+Buffer.from(b.auth).toString("base64")),v=t._req=E(b),t._redirects&&t.emit("redirect",t.url,v)}else v=t._req=E(b);b.timeout&&v.on("timeout",()=>{z(t,v,"Opening handshake has timed out")}),v.on("error",e=>{null===v||v[R]||(v=t._req=null,N(t,e))}),v.on("response",a=>{let o=a.headers.location,l=a.statusCode;if(o&&b.followRedirects&&l>=300&&l<400){let a;if(++t._redirects>b.maxRedirects){z(t,v,"Maximum redirects exceeded");return}v.abort();try{a=new m(o,r)}catch(e){N(t,SyntaxError(`Invalid URL: ${o}`));return}e(t,a,i,s)}else t.emit("unexpected-response",v,a)||z(t,v,`Unexpected server response: ${a.statusCode}`)}),v.on("upgrade",(e,r,i)=>{let a;if(t.emit("upgrade",e),t.readyState!==I.CONNECTING)return;v=t._req=null;let o=e.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase()){z(t,r,"Invalid Upgrade header");return}let s=d("sha1").update(x+k).digest("base64");if(e.headers["sec-websocket-accept"]!==s){z(t,r,"Invalid Sec-WebSocket-Accept header");return}let l=e.headers["sec-websocket-protocol"];if(void 0!==l?F.size?F.has(l)||(a="Server sent an invalid subprotocol"):a="Server sent a subprotocol but none was requested":F.size&&(a="Server sent no subprotocol"),a){z(t,r,a);return}l&&(t._protocol=l);let u=e.headers["sec-websocket-extensions"];if(void 0!==u){let e;if(!f){z(t,r,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}try{e=O(u)}catch(e){z(t,r,"Invalid Sec-WebSocket-Extensions header");return}let i=Object.keys(e);if(1!==i.length||i[0]!==g.extensionName){z(t,r,"Server indicated an extension that was not requested");return}try{f.accept(e[g.extensionName])}catch(e){z(t,r,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[g.extensionName]=f}t.setSocket(r,i,{allowSynchronousEvents:b.allowSynchronousEvents,generateMask:b.generateMask,maxPayload:b.maxPayload,skipUTF8Validation:b.skipUTF8Validation})}),b.finishRequest?b.finishRequest(v,t):v.end()}(this,e,t,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){_.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let i=new v({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new b(e,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=e,i[C]=this,a[C]=this,e[C]=this,i.on("conclude",q),i.on("drain",V),i.on("error",W),i.on("message",G),i.on("ping",Y),i.on("pong",K),a.onerror=J,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Q),e.on("data",ee),e.on("end",et),e.on("error",en),this._readyState=I.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=I.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[g.extensionName]&&this._extensions[g.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=I.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==I.CLOSED){if(this.readyState===I.CONNECTING){z(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===I.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=I.CLOSING,this._sender.close(e,t,!this._isServer,e=>{!e&&(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),X(this)}}pause(){this.readyState!==I.CONNECTING&&this.readyState!==I.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===I.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState!==I.OPEN){H(this,e,r);return}void 0===t&&(t=!this._isServer),this._sender.ping(e||w,t,r)}pong(e,t,r){if(this.readyState===I.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState!==I.OPEN){H(this,e,r);return}void 0===t&&(t=!this._isServer),this._sender.pong(e||w,t,r)}resume(){this.readyState!==I.CONNECTING&&this.readyState!==I.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===I.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(r=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==I.OPEN){H(this,e,r);return}let i={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[g.extensionName]||(i.compress=!1),this._sender.send(e||w,i,r)}terminate(){if(this.readyState!==I.CLOSED){if(this.readyState===I.CONNECTING){z(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=I.CLOSING,this._socket.destroy())}}}function N(e,t){e._readyState=I.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function B(e){return e.path=e.socketPath,s.connect(e)}function U(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=s.isIP(e.host)?"":e.host),l.connect(e)}function z(e,t,r){e._readyState=I.CLOSING;let i=Error(r);Error.captureStackTrace(i,z),t.setHeader?(t[R]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(N,e,i)):(t.destroy(i),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function H(e,t,r){if(t){let r=y(t)?t.size:P(t).length;e._socket?e._sender._bufferedBytes+=r:e._bufferedAmount+=r}if(r){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${L[e.readyState]})`);process.nextTick(r,t)}}function q(e,t){let r=this[C];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,void 0!==r._socket[C]&&(r._socket.removeListener("data",ee),process.nextTick(Z,r._socket),1005===e?r.close():r.close(e,t))}function V(){let e=this[C];e.isPaused||e._socket.resume()}function W(e){let t=this[C];void 0!==t._socket[C]&&(t._socket.removeListener("data",ee),process.nextTick(Z,t._socket),t.close(e[F])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function $(){this[C].emitClose()}function G(e,t){this[C].emit("message",e,t)}function Y(e){let t=this[C];t._autoPong&&t.pong(e,!this._isServer,S),t.emit("ping",e)}function K(e){this[C].emit("pong",e)}function Z(e){e.resume()}function J(e){let t=this[C];t.readyState===I.CLOSED||(t.readyState===I.OPEN&&(t._readyState=I.CLOSING,X(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function X(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function Q(){let e;let t=this[C];this.removeListener("close",Q),this.removeListener("data",ee),this.removeListener("end",et),t._readyState=I.CLOSING,this._readableState.endEmitted||t._closeFrameReceived||t._receiver._writableState.errorEmitted||null===(e=t._socket.read())||t._receiver.write(e),t._receiver.end(),this[C]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",$),t._receiver.on("finish",$))}function ee(e){this[C]._receiver.write(e)||this.pause()}function et(){let e=this[C];e._readyState=I.CLOSING,e._receiver.end(),this.end()}function en(){let e=this[C];this.removeListener("error",en),this.on("error",S),e&&(e._readyState=I.CLOSING,this.destroy())}Object.defineProperty(I,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(I.prototype,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(I,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(I.prototype,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(I,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(I.prototype,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(I,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),Object.defineProperty(I.prototype,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(I.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(I.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[x])return t[E];return null},set(t){for(let t of this.listeners(e))if(t[x]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[x]:!0})}})}),I.prototype.addEventListener=D,I.prototype.removeEventListener=j,e.exports=I},11506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,metadata:()=>a});var i=r(19510);r(67272);let a={title:"UnBabelerChat web app",description:"Created and powered by logoi.ai"};function o({children:e}){return i.jsx("html",{lang:"en",children:i.jsx("body",{children:i.jsx("main",{className:"min-h-screen flex flex-col items-center",children:e})})})}},71852:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g,dynamic:()=>m});var i=r(19510),a=r(68570);let o=(0,a.createProxy)(String.raw`/mnt/c/Users/jojo/aimodels/webapps/logoichat_v2/components/UnBabelerChat.tsx`),{__esModule:s,$$typeof:l}=o;o.default;let u=(0,a.createProxy)(String.raw`/mnt/c/Users/jojo/aimodels/webapps/logoichat_v2/components/UnBabelerChat.tsx#default`);var d=r(20344),p=r(71615),f=r(57371);let m="force-dynamic";async function g(){let e=(0,d.createServerComponentClient)({cookies:p.cookies}),{data:{user:t}}=await e.auth.getUser();return(0,i.jsxs)("div",{className:"w-full h-screen flex flex-col items-center px-8 pt-8 custom",children:[!t&&i.jsx("nav",{className:"w-full flex justify-center border-b border-b-foreground/10 h-16",children:i.jsx("div",{className:"w-full max-w-4xl flex justify-end items-center p-3 text-sm text-foreground",children:i.jsx("div",{children:i.jsx(f.default,{href:"/login",className:"py-2 px-4 rounded-md no-underline bg-btn-background hover:bg-btn-background-hover",children:"Login"})})})}),t&&i.jsx(u,{user:t})]})}},57481:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var i=r(66621);let a=e=>[{type:"image/x-icon",sizes:"16x16",url:(0,i.fillMetadataSegment)(".",e.params,"favicon.ico")+""}]},67272:()=>{},15044:()=>{},6698:()=>{},86418:()=>{},4798:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},4450:(e,t,r)=>{var i=r(4798);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},33002:e=>{e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},50231:e=>{function t(e,t,r,i,a,o,s){try{var l=e[o](s),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(i,a)}e.exports=function(e){return function(){var r=this,i=arguments;return new Promise(function(a,o){var s=e.apply(r,i);function l(e){t(s,a,o,l,u,"next",e)}function u(e){t(s,a,o,l,u,"throw",e)}l(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},68326: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},62519:(e,t,r)=>{var i=r(41584),a=r(86896);e.exports=function(e,t,r){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&a(s,r.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},42706:(e,t,r)=>{var i=r(61518);function a(e,t){for(var r=0;r{var i=r(61518);e.exports=function(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},65684:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},59356:(e,t,r)=>{var i=r(86896);e.exports=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},39618:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},23642:e=>{e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},41584:e=>{function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},96372:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},98562:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,a,o,s,l=[],u=!0,d=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=o.call(r)).done)&&(l.push(i.value),l.length!==t);u=!0);}catch(e){d=!0,a=e}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw a}}return l}},e.exports.__esModule=!0,e.exports.default=e.exports},77427:e=>{e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},72048:e=>{e.exports=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.exports.__esModule=!0,e.exports.default=e.exports},2718:(e,t,r)=>{var i=r(62081);e.exports=function(e,t){if(null==e)return{};var r,a,o=i(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a{e.exports=function(e,t){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},83041:(e,t,r)=>{var i=r(12054).default,a=r(33002);e.exports=function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},72354:(e,t,r)=>{var i=r(12054).default;function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=a=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,s=o.hasOwnProperty,l=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},d=u.iterator||"@@iterator",p=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function m(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch(e){m=function(e,t,r){return e[t]=r}}function g(e,r,i,a){var o,s,u=Object.create((r&&r.prototype instanceof k?r:k).prototype);return l(u,"_invoke",{value:(o=new R(a||[]),s=b,function(r,a){if(s===y)throw Error("Generator is already running");if(s===_){if("throw"===r)throw a;return{value:t,done:!0}}for(o.method=r,o.arg=a;;){var l=o.delegate;if(l){var u=function e(r,i){var a=i.method,o=r.iterator[a];if(o===t)return i.delegate=null,"throw"===a&&r.iterator.return&&(i.method="return",i.arg=t,e(r,i),"throw"===i.method)||"return"!==a&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+a+"' method")),w;var s=v(o,r.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,w;var l=s.arg;return l?l.done?(i[r.resultName]=l.value,i.next=r.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,w):l:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,w)}(l,o);if(u){if(u===w)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===b)throw s=_,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=y;var d=v(e,i,o);if("normal"===d.type){if(s=o.done?_:"suspendedYield",d.arg===w)continue;return{value:d.arg,done:o.done}}"throw"===d.type&&(s=_,o.method="throw",o.arg=d.arg)}})}),u}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=g;var b="suspendedStart",y="executing",_="completed",w={};function k(){}function x(){}function E(){}var F={};m(F,d,function(){return this});var C=Object.getPrototypeOf,S=C&&C(C(M([])));S&&S!==o&&s.call(S,d)&&(F=S);var D=E.prototype=k.prototype=Object.create(F);function j(e){["next","throw","return"].forEach(function(t){m(e,t,function(e){return this._invoke(t,e)})})}function T(e,t){var r;l(this,"_invoke",{value:function(a,o){function l(){return new t(function(r,l){!function r(a,o,l,u){var d=v(e[a],e,o);if("throw"!==d.type){var p=d.arg,f=p.value;return f&&"object"==i(f)&&s.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,l,u)},function(e){r("throw",e,l,u)}):t.resolve(f).then(function(e){p.value=e,l(p)},function(e){return r("throw",e,l,u)})}u(d.arg)}(a,o,r,l)})}return r=r?r.then(l,l):l()}})}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[d];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=s.call(o,"catchLoc"),d=s.call(o,"finallyLoc");if(u&&d){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;P(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:M(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),w}},r}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},86896:e=>{function t(r,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},35895:(e,t,r)=>{var i=r(31439),a=r(98562),o=r(81287),s=r(77427);e.exports=function(e,t){return i(e)||a(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},84653:(e,t,r)=>{var i=r(4450),a=r(96372),o=r(81287),s=r(72048);e.exports=function(e){return i(e)||a(e)||o(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},31961:(e,t,r)=>{var i=r(12054).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},61518:(e,t,r)=>{var i=r(12054).default,a=r(31961);e.exports=function(e){var t=a(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},12054:e=>{function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},81287:(e,t,r)=>{var i=r(4798);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},71799:(e,t,r)=>{var i=r(89899),a=r(86896),o=r(23642),s=r(62519);function l(t){var r="function"==typeof Map?new Map:void 0;return e.exports=l=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,l(t)}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},16477:(e,t,r)=>{var i=r(72354)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},2362:(e,t,r)=>{"use strict";let i;r.r(t),r.d(t,{createSupportsColor:()=>d,default:()=>p});let a=require("node:process"),o=require("node:os"),s=require("node:tty");function l(e,t=globalThis.Deno?globalThis.Deno.args:a.argv){let r=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(r+e),o=t.indexOf("--");return -1!==i&&(-1===o||i=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in u)return"GITHUB_ACTIONS"in u||"GITEA_ACTIONS"in u?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in u)||"codeship"===u.CI_NAME?1:p;if("TEAMCITY_VERSION"in u)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0;if("truecolor"===u.COLORTERM||"xterm-kitty"===u.TERM)return 3;if("TERM_PROGRAM"in u){let e=Number.parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(u.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)||"COLORTERM"in u?1:p}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}l("no-color")||l("no-colors")||l("color=false")||l("color=never")?i=0:(l("color")||l("colors")||l("color=true")||l("color=always"))&&(i=1);let p={stdout:d({isTTY:s.isatty(1)}),stderr:d({isTTY:s.isatty(2)})}},40572:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[948,525,471,997],()=>r(56974));module.exports=i})();