1import{a as e,n as t,o as n,r,t as i}from"./chunk.DuxOD-Sk.js";import{r as a}from"./emotion-is-prop-valid.esm.DV_OErv-.js";import{m as o}from"./emotion-styled.browser.esm.BPUx6WuE.js";import{t as s}from"./loglevel.H4SN4KQm.js";import{a as c,i as l,n as u,r as d,t as f}from"./isLength.DwwZub7z.js";import{A as p,B as m,C as h,H as g,M as _,N as v,Q as y,U as b,V as x,X as ee,Z as S,et as te,j as C,k as ne,n as re,nt as w,t as ie,tt as ae,v as oe,w as se,y as ce}from"./getColors.DUygtxH4.js";import{$ as T,et as le,rt as ue,u as E}from"./protobuf.DyZGXwGk.js";import{E as de,b as fe}from"./utils.B9mvrYZE.js";import{a as pe,c as me,d as he,f as ge,i as _e,l as D,o as O,r as k,s as ve,u as A}from"./isSymbol.CDgzX1Rm.js";import{a as ye,o as be}from"./toString.BkSzPhlJ.js";import{i as xe,n as Se,r as Ce,t as we}from"./_isIterateeCall.DYlLOvxr.js";import{a as Te,i as Ee,n as De,o as Oe,r as ke,t as Ae}from"./eq.BGqw_fW_.js";import{a as je,c as Me,g as Ne,h as Pe,l as Fe,m as Ie,o as Le,p as Re,s as ze,u as Be}from"./_toKey.C0ohEqce.js";import{n as Ve,t as He}from"./isArguments.CEs-JkNn.js";ge(),D(),me(),O(),k(),ye(),Te();function Ue(e){var t=xe(e),n=t%1;return t===t?n?t-n:t:0}function We(e){return e}var Ge=t((()=>{})),Ke,qe=t((()=>{Ie(),Ke=Re(A,`WeakMap`)})),Je,Ye,Xe=t((()=>{Je=Object.create,Ye=function(){function e(){}return function(t){if(!Oe(t))return{};if(Je)return Je(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));Ge(),ke(),Pe(),qe(),Xe();function Ze(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Qe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var $e=t((()=>{}));$e();var et=800,tt=16,nt=Date.now;function rt(e){var t=0,n=0;return function(){var r=nt(),i=tt-(r-n);if(n=r,i>0){if(++t>=et)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function it(e){return function(){return e}}var at,ot=t((()=>{Ie(),at=function(){try{var e=Re(Object,`defineProperty`);return e({},``,{}),e}catch{}}()}));ot();var st=rt(at?function(e,t){return at(e,`toString`,{configurable:!0,enumerable:!1,value:it(t),writable:!0})}:We);function ct(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var lt=t((()=>{}));function ut(e,t,n){t==`__proto__`&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var dt=t((()=>{ot()}));function ft(e,t,n){var r=e[t];(!(pt.call(e,t)&&Ae(r,n))||n===void 0&&!(t in e))&&ut(e,t,n)}var pt,mt=t((()=>{dt(),De(),pt=Object.prototype.hasOwnProperty}));function j(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?ut(n,s,c):ft(n,s,c)}return n}var M=t((()=>{mt(),dt()}));lt(),d(),M();var ht=Math.max;function gt(e,t,n){return t=ht(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ht(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Ze(e,this,s)}}Ge();function _t(e,t){return st(gt(e,t,We),e+``)}f(),Se();function vt(e){return _t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&we(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function yt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||bt)}var bt,xt=t((()=>{bt=Object.prototype}));function St(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Ct=t((()=>{}));function wt(){return!1}var Tt=t((()=>{})),Et,Dt,Ot,kt,At=t((()=>{D(),Tt(),Et=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Dt=Et&&typeof module==`object`&&module&&!module.nodeType&&module,Ot=Dt&&Dt.exports===Et?A.Buffer:void 0,kt=(Ot?Ot.isBuffer:void 0)||wt}));function jt(e){return _e(e)&&u(e.length)&&!!N[pe(e)]}var Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,N,nn=t((()=>{Mt=`[object Arguments]`,Nt=`[object Array]`,Pt=`[object Boolean]`,Ft=`[object Date]`,It=`[object Error]`,Lt=`[object Function]`,Rt=`[object Map]`,zt=`[object Number]`,Bt=`[object Object]`,Vt=`[object RegExp]`,Ht=`[object Set]`,Ut=`[object String]`,Wt=`[object WeakMap]`,Gt=`[object ArrayBuffer]`,Kt=`[object DataView]`,qt=`[object Float32Array]`,Jt=`[object Float64Array
1]`,Yt=`[object Int8Array]`,Xt=`[object Int16Array]`,Zt=`[object Int32Array]`,Qt=`[object Uint8Array]`,$t=`[object Uint8ClampedArray]`,en=`[object Uint16Array]`,tn=`[object Uint32Array]`,N={},N[qt]=N[Jt]=N[Yt]=N[Xt]=N[Zt]=N[Qt]=N[$t]=N[en]=N[tn]=!0,N[Mt]=N[Nt]=N[Gt]=N[Pt]=N[Kt]=N[Ft]=N[It]=N[Lt]=N[Rt]=N[zt]=N[Bt]=N[Vt]=N[Ht]=N[Ut]=N[Wt]=!1}));function rn(e){return function(t){return e(t)}}var an=t((()=>{})),on,sn,cn,P,ln=t((()=>{on=typeof exports==`object`&&exports&&!exports.nodeType&&exports,sn=on&&typeof module==`object`&&module&&!module.nodeType&&module,cn=sn&&sn.exports===on&&he.process,P=function(){try{return sn&&sn.require&&sn.require(`util`).types||cn&&cn.binding&&cn.binding(`util`)}catch{}}()})),un,dn,fn=t((()=>{nn(),an(),ln(),un=P&&P.isTypedArray,dn=un?rn(un):jt}));function pn(e,t){var n=be(e),r=!n&&Ve(e),i=!n&&!r&&kt(e),a=!n&&!r&&!i&&dn(e),o=n||r||i||a,s=o?St(e.length,String):[],c=s.length;for(var u in e)(t||mn.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||l(u,c)))&&s.push(u);return s}var mn,hn=t((()=>{Ct(),He(),At(),fn(),mn=Object.prototype.hasOwnProperty}));function gn(e,t){return function(n){return e(t(n))}}var _n=t((()=>{})),vn,yn=t((()=>{_n(),vn=gn(Object.keys,Object)}));function bn(e){if(!yt(e))return vn(e);var t=[];for(var n in Object(e))xn.call(e,n)&&n!=`constructor`&&t.push(n);return t}var xn,Sn=t((()=>{xt(),yn(),xn=Object.prototype.hasOwnProperty}));function Cn(e){return Ce(e)?pn(e):bn(e)}var wn=t((()=>{hn(),Sn()}));function Tn(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var En=t((()=>{}));function Dn(e){if(!Oe(e))return Tn(e);var t=yt(e),n=[];for(var r in e)r==`constructor`&&(t||!On.call(e,r))||n.push(r);return n}var On,kn=t((()=>{Te(),xt(),En(),On=Object.prototype.hasOwnProperty}));function An(e){return Ce(e)?pn(e,!0):Dn(e)}var jn=t((()=>{hn(),kn(),Se()}));function Mn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Nn=t((()=>{})),Pn,Fn=t((()=>{_n(),Pn=gn(Object.getPrototypeOf,Object)})),In=r({default:()=>Ln});function Ln(e){if(!_e(e)||pe(e)!=Rn)return!1;var t=Pn(e);if(t===null)return!0;var n=Hn.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Vn.call(n)==Un}var Rn,zn,Bn,Vn,Hn,Un,Wn=t((()=>{O(),Fn(),k(),Rn=`[object Object]`,zn=Function.prototype,Bn=Object.prototype,Vn=zn.toString,Hn=Bn.hasOwnProperty,Un=Vn.call(Object)}));wn(),jn(),Be(),Me(),Le(),Nn(),Wn();var Gn=`Expected a function`;function Kn(e,t){var n;if(typeof t!=`function`)throw TypeError(Gn);return e=Ue(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function qn(){this.__data__=new Fe,this.size=0}var Jn=t((()=>{}));function Yn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Xn=t((()=>{}));function Zn(e){return this.__data__.get(e)}var Qn=t((()=>{}));function $n(e){return this.__data__.has(e)}var er=t((()=>{}));function tr(e,t){var n=this.__data__;if(n instanceof Fe){var r=n.__data__;if(!ze||r.length<nr-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new je(r)}return n.set(e,t),this.size=n.size,this}var nr,rr=t((()=>{Be(),nr=200}));function F(e){this.size=(this.__data__=new Fe(e)).size}var ir=t((()=>{Be(),Jn(),Xn(),Qn(),er(),rr(),F.prototype.clear=qn,F.prototype.delete=Yn,F.prototype.get=Zn,F.prototype.has=$n,F.prototype.set=tr}));function ar(e,t){return e&&j(t,Cn(t),e)}var or=t((()=>{}));function sr(e,t){return e&&j(t,An(t),e)}var cr=t((()=>{M()}));function lr(e,t){if(t)return e.slice();var n=e.length,r=pr?pr(n):new e.constructor(n);return e.copy(r),r}var ur,dr,fr,pr,mr=t((()=>{D(),ur=typeof exports==`object`&&exports&&!exports.nodeType&&exports,dr=ur&&typeof module==`object`&&module&&!module.nodeType&&module,fr=dr&&dr.exports===ur?A.Buffer:void 0,pr=fr?fr.allocUnsafe:void 0}));function hr(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var gr=t((()=>{}));function _r(){return[]}var vr=t((()=>{})),yr,br,xr,Sr=t((()=>{gr(),vr(),yr=Object.prototype.propertyIsEnumerable,br=Object.getOwnPropertySymbols,xr=br?function(e){return e==null?[]:(e=Object(e),hr(br(e),function(t){return yr.call(e,t)}))}:_r}));function Cr(e,t){return j(e,xr(e),t)}var wr=t((()=>{M(),Sr()})),Tr,Er=t((()=>{Fn(),Sr(),vr(),Tr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Mn(t,xr(e)),e=Pn(e);return t}:_r}));function Dr(e,t){return j(e,Tr(e),t)}var Or=t((()=>{M(),Er()}));function kr(e,t,n){var r=t(e);return be(e)?r:Mn(r,n(e))}var Ar=t((()=>{Nn(),ye()}));function jr(e){return kr(e,Cn,xr)}var Mr=t((()=>{Ar(),Sr(),wn()}));function Nr(e){return kr(e,An,Tr)}var Pr=t((()=>{Ar(),Er(),jn()})),Fr,Ir=t((()=>{Ie(),D(),Fr=Re(A,`DataView`)})),Lr,Rr=t((()=>{Ie(),D(),Lr=Re(A,`Promise`)})),zr,Br=t((()=>{Ie(),D(),zr=Re(A,`Set`)})),Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,I,Qr,$r=t((()=>
vendor: 5,513 bytes, line 1
1{Ir(),Me(),Rr(),Br(),O(),Vr=`[object Map]`,Hr=`[object Object]`,Ur=`[object Promise]`,Wr=`[object Set]`,Gr=`[object WeakMap]`,Kr=`[object DataView]`,qr=Ne(Fr),Jr=Ne(ze),Yr=Ne(Lr),Xr=Ne(zr),Zr=Ne(Ke),I=pe,(Fr&&I(new Fr(new ArrayBuffer(1)))!=Kr||ze&&I(new ze)!=Vr||Lr&&I(Lr.resolve())!=Ur||zr&&I(new zr)!=Wr||Ke&&I(new Ke)!=Gr)&&(I=function(e){var t=pe(e),n=t==Hr?e.constructor:void 0,r=n?Ne(n):``;if(r)switch(r){case qr:return Kr;case Jr:return Vr;case Yr:return Ur;case Xr:return Wr;case Zr:return Gr}return t}),Qr=I}));function ei(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ti.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var ti,ni=t((()=>{ti=Object.prototype.hasOwnProperty})),ri,ii=t((()=>{D(),ri=A.Uint8Array}));function ai(e){var t=new e.constructor(e.byteLength);return new ri(t).set(new ri(e)),t}var oi=t((()=>{ii()}));function si(e,t){var n=t?ai(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var ci=t((()=>{oi()}));function li(e){var t=new e.constructor(e.source,ui.exec(e));return t.lastIndex=e.lastIndex,t}var ui,di=t((()=>{ui=/\w*$/}));function fi(e){return mi?Object(mi.call(e)):{}}var pi,mi,hi=t((()=>{pi=ve?ve.prototype:void 0,mi=pi?pi.valueOf:void 0}));function gi(e,t){var n=t?ai(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _i=t((()=>{oi()}));function vi(e,t,n){var r=e.constructor;switch(t){case Di:return ai(e);case yi:case bi:return new r(+e);case Oi:return si(e,n);case ki:case Ai:case ji:case Mi:case Ni:case Pi:case Fi:case Ii:case Li:return gi(e,n);case xi:return new r;case Si:case Ti:return new r(e);case Ci:return li(e);case wi:return new r;case Ei:return fi(e)}}var yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri=t((()=>{oi(),ci(),di(),hi(),_i(),yi=`[object Boolean]`,bi=`[object Date]`,xi=`[object Map]`,Si=`[object Number]`,Ci=`[object RegExp]`,wi=`[object Set]`,Ti=`[object String]`,Ei=`[object Symbol]`,Di=`[object ArrayBuffer]`,Oi=`[object DataView]`,ki=`[object Float32Array]`,Ai=`[object Float64Array]`,ji=`[object Int8Array]`,Mi=`[object Int16Array]`,Ni=`[object Int32Array]`,Pi=`[object Uint8Array]`,Fi=`[object Uint8ClampedArray]`,Ii=`[object Uint16Array]`,Li=`[object Uint32Array]`}));function zi(e){return typeof e.constructor==`function`&&!yt(e)?Ye(Pn(e)):{}}var Bi=t((()=>{Fn(),xt()}));function Vi(e){return _e(e)&&Qr(e)==Hi}var Hi,Ui=t((()=>{$r(),k(),Hi=`[object Map]`})),Wi,Gi,Ki=t((()=>{Ui(),an(),ln(),Wi=P&&P.isMap,Gi=Wi?rn(Wi):Vi}));function qi(e){return _e(e)&&Qr(e)==Ji}var Ji,Yi=t((()=>{$r(),k(),Ji=`[object Set]`})),Xi,Zi,Qi=t((()=>{Yi(),an(),ln(),Xi=P&&P.isSet,Zi=Xi?rn(Xi):qi}));function $i(e,t,n,r,i,a){var o,s=t&ea,c=t&ta,l=t&na;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Oe(e))return e;var u=be(e);if(u){if(o=ei(e),!s)return Qe(e,o)}else{var d=Qr(e),f=d==ca||d==la;if(kt(e))return lr(e,s);if(d==fa||d==ra||f&&!i){if(o=c||f?{}:zi(e),!s)return c?Dr(e,sr(o,e)):Cr(e,ar(o,e))}else{if(!L[d])return i?e:{};o=vi(e,d,s)}}a||=new F;var p=a.get(e);if(p)return p;a.set(e,o),Zi(e)?e.forEach(function(r){o.add($i(r,t,n,r,e,a))}):Gi(e)&&e.forEach(function(r,i){o.set(i,$i(r,t,n,i,e,a))});var m=u?void 0:(l?c?Nr:jr:c?An:Cn)(e);return ct(m||e,function(r,i){m&&(i=r,r=e[i]),ft(o,i,$i(r,t,n,i,e,a))}),o}var ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,L,ka=t((()=>{ir(),mt(),or(),cr(),mr(),wr(),Or(),Mr(),Pr(),$r(),ni(),Ri(),Bi(),ye(),At(),Ki(),Te(),Qi(),wn(),jn(),ea=1,ta=2,na=4,ra=`[object Arguments]`,ia=`[object Array]`,aa=`[object Boolean]`,oa=`[object Date]`,sa=`[object Error]`,ca=`[object Function]`,la=`[object GeneratorFunction]`,ua=`[object Map]`,da=`[object Number]`,fa=`[object Object]`,pa=`[object RegExp]`,ma=`[object Set]`,ha=`[object String]`,ga=`[object Symbol]`,_a=`[object WeakMap]`,va=`[object ArrayBuffer]`,ya=`[object DataView]`,ba=`[object Float32Array]`,xa=`[object Float64Array]`,Sa=`[object Int8Array]`,Ca=`[object Int16Array]`,wa=`[object Int32Array]`,Ta=`[object Uint8Array]`,Ea=`[object Uint8ClampedArray]`,Da=`[object Uint16Array]`,Oa=`[object Uint32Array]`,L={},L[ra]=L[ia]=L[va]=L[ya]=L[aa]=L[oa]=L[ba]=L[xa]=L[Sa]=L[Ca]=L[wa]=L[ua]=L[da]=L[fa]=L[pa]=L[ma]=L[ha]=L[ga]=L[Ta]=L[Ea]=L[Da]=L[Oa]=!0,L[sa]=L[ca]=L[_a]=!1})),Aa=r({default:()=>ja});function ja(e){return $i(e,Ma|Na)}var Ma,Na,Pa=t((()=>{ka(),Ma=1,Na=4}));function Fa(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Ia=t((()=>{})),La,Ra=t((()=>{Ia(),La=Fa()}));dt(),De();function za(e,t,n){(n!==void 0&&!Ae(e[t],n)||n===void 0&&!(t in e))&&ut(e,t,n)}Ra(),Se(),k();function Ba(e){return _e(e)&&Ce(e)}function Va(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}M(),jn();function Ha(e){return j(e,An(e))}mr(),_i(),$e(),Bi(),He(),ye(),At(),Te(),fn();function Ua(e,t,n,r,i,a,o){var s=Va(e,n),c=Va(t,n),l=o.get(c);if(l){za(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=be(c),p=!f&&kt(c),m=!f&&!p&&dn(c);u=c,f||p||m?be(s)?u=s:Ba(s)?u=Qe(s):p?(d=!1,u=lr(c,!0)):m?(d=!1,u=gi(c,!0)):u=[]:Ln(c)||Ve(c)?(u=s,Ve(s)?u=Ha(s):(!Oe(s)||Ee(s))&&(u=zi(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),za(e,n,u)}ir(),Te(),jn();function Wa(e,t,n,r,i){e!==t&&La(t,function(a,o){if(i||=new F,Oe(a))Ua(e,t,o,n,Wa,r,i);else{var s=r?r(Va(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),za(e,o,s)}},An)}var Ga=vt(function(e,t,n,r){Wa(e,t,n,r)}),Ka=vt(function(e,t,n){Wa(e,t,n)});function qa(e){return Kn(2,e)}
1var Ja=n(a()),Ya=n(s(),1),Xa=n(c()),Za=2,Qa=`stActiveTheme-${window.location.pathname}`,$a={CACHED_THEME_VERSION:Za,CACHED_THEME_BASE_KEY:Qa,ACTIVE_THEME:`${Qa}-v${Za}`},eo,to,no=t((()=>{eo=function(){var e=1,t=new WeakMap,n=function(r,i){return typeof r==`number`||typeof r==`string`?i?`idx-${i}`:`val-${r}`:t.has(r)?`uid`+t.get(r):(t.set(r,e++),n(r))};return n},to=eo()})),ro,io,ao,oo,so,co=t((()=>{no(),ro=function(e){return e===void 0&&(e=``),{value:1,prefix:e,uid:eo()}},io=ro(),ao=Ja.createContext(ro()),oo=function(e){return e.value++},so=function(e){return e?e.prefix:``}})),lo,uo,fo,po,mo=t((()=>{lo=n(a()),co(),uo=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),fo=function(e,t,n){var r=t+e;return String(n?n(r):r)},po=function(e){uo(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={quartz:t.props.idSource||io,prefix:so(t.props.idSource),id:oo(t.props.idSource||io)},t.uid=function(e){return fo(t.state.id+`-`+t.state.quartz.uid(e),t.state.prefix,t.props.name)},t}return t.prototype.render=function(){var e=this.props,t=e.children,n=e.name,r=this.state,i=r.id,a=r.prefix;return t(fo(i,a,n),this.uid)},t}(lo.Component)})),ho,go,_o,vo,yo,bo=t((()=>{a(),ho=n(a()),co(),go=function(e){var t=e||io,n=so(t)+oo(t);return{uid:n,gen:function(e){return n+t.uid(e)}}},_o=function(){var e=(0,ho.useContext)(ao);return(0,ho.useState)(function(){return go(e)})[0]},vo=function(){return _o().uid},yo=function(){return _o().gen}})),xo,So,Co,wo,To,Eo=t((()=>{xo=n(a()),So=n(a()),mo(),co(),bo(),Co=function(e){var t=e.children,n=e.prefix,r=n===void 0?``:n,i=(0,So.useState)(function(){return ro(r)})[0];return xo.createElement(ao.Provider,{value:i},t)},wo=function(e){var t=e.children,n=e.prefix,r=n===void 0?``:n,i=vo(),a=(0,So.useState)(function(){return ro(i+`-`+r)})[0];return xo.createElement(ao.Provider,{value:a},t)},To=function(e){var t=e.name,n=e.children;return xo.createElement(ao.Consumer,null,function(e){return xo.createElement(po,{name:t,idSource:e,children:n})})}})),Do=r({UID:()=>po,UIDConsumer:()=>To,UIDFork:()=>wo,UIDReset:()=>Co,generateUID:()=>eo,uid:()=>to,useUID:()=>vo,useUIDSeed:()=>yo}),Oo=t((()=>{Eo(),mo(),bo(),no()})),ko=r({UID:()=>po,UIDConsumer:()=>To,UIDFork:()=>wo,UIDReset:()=>Co,default:()=>Ao,generateUID:()=>eo,uid:()=>to,useUID:()=>vo,useUIDSeed:()=>yo}),Ao,jo=t((()=>{Oo(),Oo(),Ao=Do}));function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mo(e)}function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},No.apply(this,arguments)}function Po(e,t){return Lo(e)||Io(e,t)||Bo(e,t)||Fo()}function Fo(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Lo(e){if(Array.isArray(e))return e}function Ro(e){return Ho(e)||Vo(e)||Bo(e)||zo()}function zo(){throw TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bo(e,t){if(e){if(typeof e==`string`)return Uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uo(e,t)}}function Vo(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ho(e){if(Array.isArray(e))return Uo(e)}function Uo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wo(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ko(e,t,n){return t&&Go(e.prototype,t),n&&Go(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function qo(e,t){if(typeof t!=`function`&&t!==null)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&&Jo(e,t)}
3function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jo(e,t)}function Yo(e){var t=Zo();return function(){var n=Qo(e),r;if(t){var i=Qo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Xo(this,r)}}function Xo(e,t){if(t&&(Mo(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return R(e)}function R(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Zo(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qo(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(){}var V,$o,es,ts,ns,rs,is,as=t((()=>{V=n(a()),C(),se(),ce(),$o=v(`div`,{}),$o.displayName=`StyledAppContainer`,es=v(`div`,{}),es.displayName=`StyledLayersContainer`,ts=V.createContext({addEscapeHandler:B,removeEscapeHandler:B,addKeyDownHandler:B,removeKeyDownHandler:B,addKeyUpHandler:B,removeKeyUpHandler:B,addKeyPressHandler:B,removeKeyPressHandler:B,addDocClickHandler:B,removeDocClickHandler:B,host:void 0,zIndex:void 0}),ns=ts.Provider,rs=ts.Consumer,is=function(e){qo(n,e);var t=Yo(n);function n(e){var r;return Wo(this,n),r=t.call(this,e),z(R(r),`host`,V.createRef()),z(R(r),`containerRef`,V.createRef()),z(R(r),`onDocumentClick`,function(e){var t=r.state.docClickHandlers[r.state.docClickHandlers.length-1];t&&t(e)}),z(R(r),`onKeyDown`,function(e){var t=r.state.keyDownHandlers[r.state.keyDownHandlers.length-1];t&&t(e)}),z(R(r),`onKeyUp`,function(e){if(e.key===`Escape`){var t=r.state.escapeKeyHandlers[r.state.escapeKeyHandlers.length-1];t&&t()}var n=r.state.keyUpHandlers[r.state.keyUpHandlers.length-1];n&&n(e)}),z(R(r),`onKeyPress`,function(e){var t=r.state.keyPressHandlers[r.state.keyPressHandlers.length-1];t&&t(e)}),z(R(r),`onAddEscapeHandler`,function(e){r.setState(function(t){return{escapeKeyHandlers:[].concat(Ro(t.escapeKeyHandlers),[e])}})}),z(R(r),`onRemoveEscapeHandler`,function(e){r.setState(function(t){return{escapeKeyHandlers:t.escapeKeyHandlers.filter(function(t){return t!==e})}})}),z(R(r),`onAddKeyDownHandler`,function(e){r.setState(function(t){return{keyDownHandlers:[].concat(Ro(t.keyDownHandlers),[e])}})}),z(R(r),`onRemoveKeyDownHandler`,function(e){r.setState(function(t){return{keyDownHandlers:t.keyDownHandlers.filter(function(t){return t!==e})}})}),z(R(r),`onAddKeyUpHandler`,function(e){r.setState(function(t){return{keyUpHandlers:[].concat(Ro(t.keyUpHandlers),[e])}})}),z(R(r),`onRemoveKeyUpHandler`,function(e){r.setState(function(t){return{keyUpHandlers:t.keyUpHandlers.filter(function(t){return t!==e})}})}),z(R(r),`onAddKeyPressHandler`,function(e){r.setState(function(t){return{keyPressHandlers:[].concat(Ro(t.keyPressHandlers),[e])}})}),z(R(r),`onRemoveKeyPressHandler`,function(e){r.setState(function(t){return{keyPressHandlers:t.keyPressHandlers.filter(function(t){return t!==e})}})}),z(R(r),`onAddDocClickHandler`,function(e){r.setState(function(t){return{docClickHandlers:[].concat(Ro(t.docClickHandlers),[e])}})}),z(R(r),`onRemoveDocClickHandler`,function(e){r.setState(function(t){return{docClickHandlers:t.docClickHandlers.filter(function(t){return t!==e})}})}),r.state={escapeKeyHandlers:[],keyDownHandlers:[],keyUpHandlers:[],keyPressHandlers:[],docClickHandlers:[]},r}return Ko(n,[{key:`componentDidMount`,value:function(){this.forceUpdate(),oe(this.containerRef.current),typeof document<`u`&&(document.addEventListener(`keydown`,this.onKeyDown),document.addEventListener(`keyup`,this.onKeyUp),document.addEventListener(`keypress`,this.onKeyPress),document.addEventListener(`mousedown`,this.onDocumentClick))}},{key:`componentWillUnmount`,value:function(){typeof document<`u`&&(document.removeEventListener(`ke
3ydown`,this.onKeyDown),document.removeEventListener(`keyup`,this.onKeyUp),document.removeEventListener(`keypress`,this.onKeyPress),document.removeEventListener(`mousedown`,this.onDocumentClick))}},{key:`render`,value:function(){var e=this,t=this.props.overrides,n=t===void 0?{}:t,r=Po(h(n.AppContainer,$o),2),i=r[0],a=r[1],o=Po(h(n.LayersContainer,es),2),s=o[0],c=o[1];return V.createElement(rs,null,function(t){var n=t.host;return V.createElement(ns,{value:{host:n||e.host.current,zIndex:e.props.zIndex,addEscapeHandler:e.onAddEscapeHandler,removeEscapeHandler:e.onRemoveEscapeHandler,addKeyDownHandler:e.onAddKeyDownHandler,removeKeyDownHandler:e.onRemoveKeyDownHandler,addKeyUpHandler:e.onAddKeyUpHandler,removeKeyUpHandler:e.onRemoveKeyUpHandler,addKeyPressHandler:e.onAddKeyPressHandler,removeKeyPressHandler:e.onRemoveKeyPressHandler,addDocClickHandler:e.onAddDocClickHandler,removeDocClickHandler:e.onRemoveDocClickHandler}},V.createElement(i,No({},a,{ref:e.containerRef}),e.props.children),V.createElement(s,No({},c,{ref:e.host})))})}}]),n}(V.Component)}));function os(e){"@babel/helpers - typeof";return os=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},os(e)}function ss(){return ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ss.apply(this,arguments)}function cs(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function us(e,t,n){return t&&ls(e.prototype,t),n&&ls(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ds(e,t){if(typeof t!=`function`&&t!==null)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&&fs(e,t)}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fs(e,t)}function ps(e){var t=hs();return function(){var n=gs(e),r;if(t){var i=gs(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ms(this,r)}}function ms(e,t){if(t&&(os(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return H(e)}function H(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function hs(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gs(e)}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _s(e){return vs.createElement(rs,null,function(t){var n=t.host,r=t.zIndex;return vs.createElement(bs,ss({},e,{host:n,zIndex:r}))})}var vs,ys,bs,xs=t((()=>{vs=n(a()),C(),as(),ys=v(`div`,function(e){return{position:`absolute`,top:0,left:0,right:0,zIndex:e.$zIndex||null}}),ys.displayName=`Container`,bs=function(e){ds(n,e);var t=ps(n);function n(){var e;cs(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),U(H(e),`state`,{container:null}),U(H(e),`onEscape`,function(){e.props.onEscape&&e.props.onEscape()}),U(H(e),`onKeyDown`,function(t){e.props.onKeyDown&&e.props.onKeyDown(t)}),U(H(e),`onKeyUp`,function(t){e.props.onKeyUp&&e.props.onKeyUp(t)}),U(H(e),`onKeyPress`,function(t){e.props.onKeyPress&&e.props.onKeyPress(t)}),U(H(e),`onDocumentClick`,function(t){e.props.onDocumentClick&&e.props.onDocumentClick(t)}),e}return us(n,[{key:`componentDidMount`,value:function(){this.context.addEscapeHandler(this.onEscape),this.context.addKeyDownHandler(this.onKeyDown),this.context.addKeyUpHandler(this.onKeyUp),this.context.addKeyPressHandler(this.onKeyPress),this.props.isHoverLayer||this.context.addDocClickHandler(this.onDocumentClick);var e=this.props,t=e.onMount,n=e.mountNode,r=e.host;if(n){t&&t();return}var i=r===void 0?document.body:r;i&&this.addContainer(i)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.host;t.mountNode||(n&&n!==e.host&&e.host===null&&this.addContainer(n),e.isHoverLayer!=this.props.isHoverLayer&&(this.props.isHoverLayer?this.context.removeDocClickHandler(this.onDocumentClick):this.context.addDocClickHandler(this.onDocumentClick)))}},{key:`componentWillUnmount`,value:function(){this.context.removeEscapeHandler(this.onEscape),this.context.removeKeyDownHandler(this.onKeyDown),this.context.removeKeyUpHandler(this.onKeyUp),this.context.removeKeyPressHandler(this.onKeyPress),this.context.removeDocClickHandler(this.onDocumentClick),this.props.onUnmount&&this.props.onUnmount();var e=this.props.host,t=this.state.container;e&&t&&e.contains(t)&&e.removeChild(t)}},{key:`addContainer`,value:function(e){var t=this.props,n=t.index,r=t.mountNode,i=t.onMount;if(!r&&e){var a=e.ownerDocument.createElement(`div`),o=typeof n==`
3number`?e.children[n]:null;o?e.insertBefore(a,o):e.appendChild(a),this.setState({container:a},function(){i&&i()})}}},{key:`render`,value:function(){var e=this.state.container,t=this.props,n=t.children,r=t.mountNode,i=t.zIndex,a=i?vs.createElement(ys,{$zIndex:i},n):n;return typeof document<`u`?r?Xa.createPortal(a,r):e?Xa.createPortal(a,e):null:null}}]),n}(vs.Component),U(bs,`contextType`,ts)}));function Ss(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Cs(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ac))}}function ws(e){return e&&{}.toString.call(e)===`[object Function]`}function W(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ts(e){return e.nodeName===`HTML`?e:e.parentNode||e.host}function Es(e){if(!e)return document.body;switch(e.nodeName){case`HTML`:case`BODY`:return e.ownerDocument.body;case`#document`:return e.body}var t=W(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Es(Ts(e))}function Ds(e){return e&&e.referenceNode?e.referenceNode:e}function Os(e){return e===11?Mc:e===10?Nc:Mc||Nc}function ks(e){if(!e)return document.documentElement;for(var t=Os(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r===`BODY`||r===`HTML`?e?e.ownerDocument.documentElement:document.documentElement:[`TH`,`TD`,`TABLE`].indexOf(n.nodeName)!==-1&&W(n,`position`)===`static`?ks(n):n}function As(e){var t=e.nodeName;return t===`BODY`?!1:t===`HTML`||ks(e.firstElementChild)===e}function js(e){return e.parentNode===null?e:js(e.parentNode)}function Ms(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return As(o)?o:ks(o);var s=js(e);return s.host?Ms(s.host,t):Ms(e,js(t).host)}function Ns(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:`top`)===`top`?`scrollTop`:`scrollLeft`,n=e.nodeName;if(n===`BODY`||n===`HTML`){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Ps(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Ns(t,`top`),i=Ns(t,`left`),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function Fs(e,t){var n=t===`x`?`Left`:`Top`,r=n===`Left`?`Right`:`Bottom`;return parseFloat(e[`border`+n+`Width`])+parseFloat(e[`border`+r+`Width`])}function Is(e,t,n,r){return Math.max(t[`offset`+e],t[`scroll`+e],n[`client`+e],n[`offset`+e],n[`scroll`+e],Os(10)?parseInt(n[`offset`+e])+parseInt(r[`margin`+(e===`Height`?`Top`:`Left`)])+parseInt(r[`margin`+(e===`Height`?`Bottom`:`Right`)]):0)}function Ls(e){var t=e.body,n=e.documentElement,r=Os(10)&&getComputedStyle(n);return{height:Is(`Height`,t,n,r),width:Is(`Width`,t,n,r)}}function G(e){return q({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Rs(e){var t={};try{if(Os(10)){t=e.getBoundingClientRect();var n=Ns(e,`top`),r=Ns(e,`left`);t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName===`HTML`?Ls(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,c=e.offsetWidth-o,l=e.offsetHeight-s;if(c||l){var u=W(e);c-=Fs(u,`x`),l-=Fs(u,`y`),i.width-=c,i.height-=l}return G(i)}function zs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Os(10),i=t.nodeName===`HTML`,a=Rs(e),o=Rs(t),s=Es(e),c=W(t),l=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=G({top:a.top-o.top-l,left:a.left-o.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);d.top-=l-f,d.bottom-=l-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&s.nodeName!==`BODY`)&&(d=Ps(d,t)),d}function Bs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=zs(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:Ns(n),s=t?0:Ns(n,`left`);
3return G({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a})}function Vs(e){var t=e.nodeName;if(t===`BODY`||t===`HTML`)return!1;if(W(e,`position`)===`fixed`)return!0;var n=Ts(e);return n?Vs(n):!1}function Hs(e){if(!e||!e.parentElement||Os())return document.documentElement;for(var t=e.parentElement;t&&W(t,`transform`)===`none`;)t=t.parentElement;return t||document.documentElement}function Us(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?Hs(e):Ms(e,Ds(t));if(r===`viewport`)a=Bs(o,i);else{var s=void 0;r===`scrollParent`?(s=Es(Ts(t)),s.nodeName===`BODY`&&(s=e.ownerDocument.documentElement)):s=r===`window`?e.ownerDocument.documentElement:r;var c=zs(s,o,i);if(s.nodeName===`HTML`&&!Vs(o)){var l=Ls(e.ownerDocument),u=l.height,d=l.width;a.top+=c.top-c.marginTop,a.bottom=u+c.top,a.left+=c.left-c.marginLeft,a.right=d+c.left}else a=c}n||=0;var f=typeof n==`number`;return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function Ws(e){return e.width*e.height}function Gs(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf(`auto`)===-1)return e;var o=Us(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(s).map(function(e){return q({key:e},s[e],{area:Ws(s[e])})}).sort(function(e,t){return t.area-e.area}),l=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:c[0].key,d=e.split(`-`)[1];return u+(d?`-`+d:``)}function Ks(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return zs(n,r?Hs(t):Ms(t,Ds(n)),r)}function qs(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Js(e){var t={left:`right`,right:`left`,bottom:`top`,top:`bottom`};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Ys(e,t,n){n=n.split(`-`)[0];var r=qs(e),i={width:r.width,height:r.height},a=[`right`,`left`].indexOf(n)!==-1,o=a?`top`:`left`,s=a?`left`:`top`,c=a?`height`:`width`,l=a?`width`:`height`;return i[o]=t[o]+t[c]/2-r[c]/2,n===s?i[s]=t[s]-r[l]:i[s]=t[Js(s)],i}function Xs(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Zs(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=Xs(e,function(e){return e[t]===n});return e.indexOf(r)}function Qs(e,t,n){return(n===void 0?e:e.slice(0,Zs(e,`name`,n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&ws(n)&&(t.offsets.popper=G(t.offsets.popper),t.offsets.reference=G(t.offsets.reference),t=n(t,e))}),t}function $s(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ks(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Gs(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ys(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?`fixed`:`absolute`,e=Qs(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ec(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function tc(e){for(var t=[!1,`ms`,`Webkit`,`Moz`,`O`],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?``+i+n:e;if(document.body.style[a]!==void 0)return a}return null}function nc(){return this.state.isDestroyed=!0,ec(this.modifiers,`applyStyle`)&&(this.popper.removeAttribute(`x-placement`),this.popper.style.position=``,this.popper.style.top=``,this.popper.style.left=``,this.popper.style.right=``,this.popper.style.bottom=``,this.popper.style.willChange=``,this.popper.style[tc(`transform`)]=``),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function rc(e){var t=e.ownerDocument;return t?t.defaultView:window}function ic(e,t,n,r){var i=e.nodeName===`BODY`,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||ic(Es(a.parentNode),t,n,r),r.push(a)}function ac(e,t,n,r){n.updateBound=r,rc(e).addEventListener(`resize`,n.updateBound,{passive:!0});var i=Es(e);return ic(i,`scroll`,n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function oc(){this.state.eventsEnabled||(this.state=ac(this.reference,this.options,this.state,this.scheduleUpdate))}function sc(e,t){return rc(e).removeEventListener(`resize`,t.updateBound),t.scrollParents.forEac
vendor: 5,291 bytes, line 3
3h(function(e){e.removeEventListener(`scroll`,t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function cc(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=sc(this.reference,this.state))}function lc(e){return e!==``&&!isNaN(parseFloat(e))&&isFinite(e)}function uc(e,t){Object.keys(t).forEach(function(n){var r=``;[`width`,`height`,`top`,`right`,`bottom`,`left`].indexOf(n)!==-1&&lc(t[n])&&(r=`px`),e.style[n]=t[n]+r})}function dc(e,t){Object.keys(t).forEach(function(n){t[n]===!1?e.removeAttribute(n):e.setAttribute(n,t[n])})}function fc(e){return uc(e.instance.popper,e.styles),dc(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&uc(e.arrowElement,e.arrowStyles),e}function pc(e,t,n,r,i){var a=Ks(i,t,e,n.positionFixed),o=Gs(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute(`x-placement`,o),uc(t,{position:n.positionFixed?`fixed`:`absolute`}),n}function mc(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(e){return e},c=a(i.width),l=a(r.width),u=[`left`,`right`].indexOf(e.placement)!==-1,d=e.placement.indexOf(`-`)!==-1,f=c%2==l%2,p=c%2==1&&l%2==1,m=t?u||d||f?a:o:s,h=t?a:s;return{left:m(p&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:m(r.right)}}function hc(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=Xs(e.instance.modifiers,function(e){return e.name===`applyStyle`}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a===void 0?t.gpuAcceleration:a,s=ks(e.instance.popper),c=Rs(s),l={position:i.position},u=mc(e,window.devicePixelRatio<2||!Ic),d=n===`bottom`?`top`:`bottom`,f=r===`right`?`left`:`right`,p=tc(`transform`),m=void 0,h=void 0;if(h=d===`bottom`?s.nodeName===`HTML`?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m=f===`right`?s.nodeName===`HTML`?-s.clientWidth+u.right:-c.width+u.right:u.left,o&&p)l[p]=`translate3d(`+m+`px, `+h+`px, 0)`,l[d]=0,l[f]=0,l.willChange=`transform`;else{var g=d===`bottom`?-1:1,_=f===`right`?-1:1;l[d]=h*g,l[f]=m*_,l.willChange=d+`, `+f}return e.attributes=q({},{"x-placement":e.placement},e.attributes),e.styles=q({},l,e.styles),e.arrowStyles=q({},e.offsets.arrow,e.arrowStyles),e}function gc(e,t,n){var r=Xs(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+` modifier is required by `+a+` modifier in order to work, be sure to include it before `+a+`!`)}return i}function _c(e,t){var n;if(!gc(e.instance.modifiers,`arrow`,`keepTogether`))return e;var r=t.element;if(typeof r==`string`){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split(`-`)[0],a=e.offsets,o=a.popper,s=a.reference,c=[`left`,`right`].indexOf(i)!==-1,l=c?`height`:`width`,u=c?`Top`:`Left`,d=u.toLowerCase(),f=c?`left`:`top`,p=c?`bottom`:`right`,m=qs(r)[l];s[p]-m<o[d]&&(e.offsets.popper[d]-=o[d]-(s[p]-m)),s[d]+m>o[p]&&(e.offsets.popper[d]+=s[d]+m-o[p]),e.offsets.popper=G(e.offsets.popper);var h=s[d]+s[l]/2-m/2,g=W(e.instance.popper),_=parseFloat(g[`margin`+u]),v=parseFloat(g[`border`+u+`Width`]),y=h-e.offsets.popper[d]-_-v;return y=Math.max(Math.min(o[l]-m,y),0),e.arrowElement=r,e.offsets.arrow=(n={},K(n,d,Math.round(y)),K(n,f,``),n),e}function vc(e){return e===`end`?`start`:e===`start`?`end`:e}function yc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Rc.indexOf(e),r=Rc.slice(n+1).concat(Rc.slice(0,n));return t?r.reverse():r}function bc(e,t){if(ec(e.instance.modifiers,`inner`)||e.flipped&&e.placement===e.originalPlacement)return e;var n=Us(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split(`-`)[0],i=Js(r),a=e.placement.split(`-`)[1]||``,o=[];switch(t.behavior){case zc.FLIP:o=[r,i];break;case zc.CLOCKWISE:o=yc(r);break;case zc.COUNTERCLOCKWISE:o=yc(r,!0);break;default:o=t.behavior}return o.forEach(function(s,c){if(r!==s||o.length===c+1)return e;r=e.placement.split(`-`)[0],i=Js(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f=r===`left`&&d(l.right)>d(u.left)||r===`right`&&d(l.left)<d(u.right)||r===`top`&&d(l.bottom)>d(u.top)||r===`bottom`&&d(l.top)<d(u.bottom),p=d(l.left)<d(n.left),m=d(l.right)>d(n.right),h=d(l.top)<d(n.top),g=d(l.bottom)>d(n.bottom),_=r===`left`&&p||r===`right`&&m||r===`top`&&h||r===`bottom`&&g,v=[`top`,`bottom`].indexOf(r)!==-1,y=!!t.flipVariations&&(v&&a===`start`&&p||v&&a===`end`&&m||!v&&a===`start`&&h||!v&&a===`end`&&g),b=!!t.flipVariationsByContent&&(v&&a===`start`&&m||v&&a===`end`&&p||!v&&a===`start`&&g||!v&&a===`end`&&h),x=y||b;(f||_||x)&&(e.flipped=!0,(f||_)&&(r=o[c+1]),x&&(a=vc(a)),e.placement=r+(a?`-`+a:``),e.offsets.popper=q({},e.offsets.popper,Ys(e.instance.popper,e.offsets.reference,e.placement)),e=Qs(e.instance.modifiers,e,`flip`))}),e}function xc(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split(`-`)[0],a=Math.floor,o=[`top`,`bottom`].indexOf(i)!==-1,s=o?`right`:`bottom`,c=o?`left`:`top`,l=o?`width`
3:`height`;return n[s]<a(r[c])&&(e.offsets.popper[c]=a(r[c])-n[l]),n[c]>a(r[s])&&(e.offsets.popper[c]=a(r[s])),e}function Sc(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf(`%`)===0){var s=void 0;switch(o){case`%p`:s=n;break;default:s=r}return G(s)[t]/100*a}else if(o===`vh`||o===`vw`){var c=void 0;return c=o===`vh`?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}else return a}function Cc(e,t,n,r){var i=[0,0],a=[`right`,`left`].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=o.indexOf(Xs(o,function(e){return e.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(`,`)===-1&&console.warn(`Offsets separated by white space(s) are deprecated, use a comma (,) instead.`);var c=/\s*,\s*|\s+/,l=s===-1?[o]:[o.slice(0,s).concat([o[s].split(c)[0]]),[o[s].split(c)[1]].concat(o.slice(s+1))];return l=l.map(function(e,r){var i=(r===1?!a:a)?`height`:`width`,o=!1;return e.reduce(function(e,t){return e[e.length-1]===``&&[`+`,`-`].indexOf(t)!==-1?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return Sc(e,i,t,n)})}),l.forEach(function(e,t){e.forEach(function(n,r){lc(n)&&(i[t]+=n*(e[r-1]===`-`?-1:1))})}),i}function wc(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split(`-`)[0],c=void 0;return c=lc(+n)?[+n,0]:Cc(n,a,o,s),s===`left`?(a.top+=c[0],a.left-=c[1]):s===`right`?(a.top+=c[0],a.left+=c[1]):s===`top`?(a.left+=c[0],a.top-=c[1]):s===`bottom`&&(a.left+=c[0],a.top+=c[1]),e.popper=a,e}function Tc(e,t){var n=t.boundariesElement||ks(e.instance.popper);e.instance.reference===n&&(n=ks(n));var r=tc(`transform`),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top=``,i.left=``,i[r]=``;var c=Us(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),K({},e,n)},secondary:function(e){var n=e===`right`?`left`:`top`,r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-(e===`right`?u.width:u.height))),K({},n,r)}};return l.forEach(function(e){var t=[`left`,`top`].indexOf(e)===-1?`secondary`:`primary`;u=q({},u,d[t](e))}),e.offsets.popper=u,e}function Ec(e){var t=e.placement,n=t.split(`-`)[0],r=t.split(`-`)[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=[`bottom`,`top`].indexOf(n)!==-1,c=s?`left`:`top`,l=s?`width`:`height`,u={start:K({},c,a[c]),end:K({},c,a[c]+a[l]-o[l])};e.offsets.popper=q({},o,u[r])}return e}function Dc(e){if(!gc(e.instance.modifiers,`hide`,`preventOverflow`))return e;var t=e.offsets.reference,n=Xs(e.instance.modifiers,function(e){return e.name===`preventOverflow`}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes[`x-out-of-boundaries`]=``}else{if(e.hide===!1)return e;e.hide=!1,e.attributes[`x-out-of-boundaries`]=!1}return e}function Oc(e){var t=e.placement,n=t.split(`-`)[0],r=e.offsets,i=r.popper,a=r.reference,o=[`left`,`right`].indexOf(n)!==-1,s=[`top`,`left`].indexOf(n)===-1;return i[o?`left`:`top`]=a[n]-(s?i[o?`width`:`height`]:0),e.placement=Js(t),e.offsets.popper=G(i),e}var kc,Ac,jc,Mc,Nc,Pc,Fc,K,q,Ic,Lc,Rc,zc,Bc,Vc,Hc=t((()=>{kc=typeof window<`u`&&typeof document<`u`&&typeof navigator<`u`,Ac=function(){for(var e=[`Edge`,`Trident`,`Firefox`],t=0;t<e.length;t+=1)if(kc&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),jc=kc&&window.Promise?Ss:Cs,Mc=kc&&!!(window.MSInputMethodContext&&document.documentMode),Nc=kc&&/MSIE 10/.test(navigator.userAgent),Pc=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},Fc=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),K=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ic=kc&&/Firefox/i.test(navigator.userAgent),Lc=[`auto-start`,`auto`,`auto-end`,`top-start`,`top`,`top-end`,`right-start`,`r
3ight`,`right-end`,`bottom-end`,`bottom`,`bottom-start`,`left-end`,`left`,`left-start`],Rc=Lc.slice(3),zc={FLIP:`flip`,CLOCKWISE:`clockwise`,COUNTERCLOCKWISE:`counterclockwise`},Bc={placement:`bottom`,positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:Ec},offset:{order:200,enabled:!0,fn:wc,offset:0},preventOverflow:{order:300,enabled:!0,fn:Tc,priority:[`left`,`right`,`top`,`bottom`],padding:5,boundariesElement:`scrollParent`},keepTogether:{order:400,enabled:!0,fn:xc},arrow:{order:500,enabled:!0,fn:_c,element:`[x-arrow]`},flip:{order:600,enabled:!0,fn:bc,behavior:`flip`,padding:5,boundariesElement:`viewport`,flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Oc},hide:{order:800,enabled:!0,fn:Dc},computeStyle:{order:850,enabled:!0,fn:hc,gpuAcceleration:!0,x:`bottom`,y:`right`},applyStyle:{order:900,enabled:!0,fn:fc,onLoad:pc,gpuAcceleration:void 0}}},Vc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Pc(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=jc(this.update.bind(this)),this.options=q({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(q({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=q({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return q({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&ws(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Fc(e,[{key:`update`,value:function(){return $s.call(this)}},{key:`destroy`,value:function(){return nc.call(this)}},{key:`enableEventListeners`,value:function(){return oc.call(this)}},{key:`disableEventListeners`,value:function(){return cc.call(this)}}]),e}(),Vc.Utils=(typeof window<`u`?window:global).PopperUtils,Vc.placements=Lc,Vc.Defaults=Bc}));function Uc(e){return e.replace(/(Top|Left)$/,`-start`).replace(/(Right|Bottom)$/,`-end`)}function Wc(e){return{top:Math.floor(e.top||0),left:Math.floor(e.left||0)}}var Gc=t((()=>{})),Kc,qc=t((()=>{Kc={auto:`auto`,topLeft:`topLeft`,top:`top`,topRight:`topRight`,rightTop:`rightTop`,right:`right`,rightBottom:`rightBottom`,bottomRight:`bottomRight`,bottom:`bottom`,bottomLeft:`bottomLeft`,leftBottom:`leftBottom`,left:`left`,leftTop:`leftTop`}}));function Jc(e){"@babel/helpers - typeof";return Jc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Jc(e)}function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yc(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zc(e,t){if(e==null)return{};var n=Qc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function el(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tl(e,t,n){return t&&el(e.prototype,t),n&&el(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function nl(e,t){if(typeof t!=`function`&&t!==null)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&&rl(e,t)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rl(e,t)}function il(e){var t=ol();return function(){var n=sl(e),r;if(t){var i=sl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return al(this,r)}}function al(e,t){if(t&&(Jc(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return J(e)}function J(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ol(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sl(e){return sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sl(e)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cl,ll,ul,dl=t((()=>{cl=n(a()),Hc(),Gc(),qc(),ll=[`modifiers`],ul=function(e){nl(n,e);var t=il(n);function n(){var e;$c(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),Y(J(e),`popper`,void 0),Y(J(e),`popperHeight`,0),Y(J(e),`popperWidth`,0),Y(J(e),`anchorHeight`,0),Y(J(e),`anchorWidth`,0),Y(J(e),`state`,{isMounted:!1}),Y(J(e),`onPopperUpdate`,function(t){var n={popper:Wc(t.offsets.popper),arrow:t.offsets.arrow?Wc(t.offsets.arrow):{top:0,left:0}};e.props.onPopperUpdate(n,t)}),e}return tl(n,[{key:`componentDidMount`,value:function(){this.setState({isMounted:!0})}},{key:`componentDidUpdate`,value:function(e,t){if(this.props.anchorRef){var n=this.props.anchorRef.getBoundingClientRect(),r=n.height,i=n.width;(this.anchorHeight!==r||this.anchorWidth!==i)&&(this.anchorHeight=r,this.anchorWidth=i,this.popper&&this.popper.scheduleUpdate())}if(this.props.popperRef){var a=this.props.popperRef.getBoundingClientRect(),o=a.height,s=a.width;(this.popperHeight!==o||this.popperWidth!==s)&&(this.popperHeight=o,this.popperWidth=s,this.popper&&this.popper.scheduleUpdate()),this.state.isMounted!==t.isMounted&&this.props.anchorRef&&this.initializePopper()}}},{key:`componentWillUnmount`,value:function(){this.destroyPopover()}}
3,{key:`initializePopper`,value:function(){var e=this.props,t=e.placement,n=e.popperOptions,r=n.modifiers,i=Zc(n,ll);!this.props.anchorRef||!this.props.popperRef||(this.popper=new Vc(this.props.anchorRef,this.props.popperRef,Xc({placement:Uc(t),modifiers:Xc({arrow:{element:this.props.arrowRef,enabled:!!this.props.arrowRef},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.onPopperUpdate,order:900},preventOverflow:{enabled:!0}},r)},i)))}},{key:`destroyPopover`,value:function(){this.popper&&(this.popper.destroy(),delete this.popper)}},{key:`render`,value:function(){return this.props.children||null}}]),n}(cl.Component),Y(ul,`defaultProps`,{anchorRef:null,onPopperUpdate:function(){return null},placement:Kc.auto,popperRef:null,popperOptions:{}})})),fl=t((()=>{})),pl=r({Layer:()=>_s,LayersContext:()=>ts,LayersManager:()=>is,TETHER_PLACEMENT:()=>Kc,TetherBehavior:()=>ul}),ml=t((()=>{as(),xs(),dl(),qc(),fl()})),hl=i((t=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var r=l(a()),i=(jo(),e(ko)),o=(ml(),e(pl)),s=(C(),e(_));function c(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||n(e)!==`object`&&typeof e!=`function`)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}t.default=function(e){var t=e.children,n=e.overrides,a=e.theme,c=e.zIndex;return r.createElement(o.LayersManager,{zIndex:c,overrides:n},r.createElement(i.UIDReset,{prefix:`bui`},r.createElement(s.ThemeProvider,{theme:a},t)))}})),gl=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=n;function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e){e||={};for(var i=arguments.length<=1?0:arguments.length-1,a,o,s=0;s<i;s++)for(var c in a=(s+1<1||arguments.length<=s+1?void 0:arguments[s+1])||{},a)t(a[c])!==void 0&&(o=a[c],r(o)?e[c]=n(e[c]||Array.isArray(o)&&[]||{},o):e[c]=o);return e}function r(e){return Array.isArray(e)||{}.toString.call(e)==`[object Object]`}})),_l=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getOverride=m,e.getOverrideProps=h,e.getOverrides=_,e.mergeConfigurationOverrides=b,e.mergeOverride=y,e.mergeOverrides=v,e.toObjectOverride=g,e.useOverrides=x;var t=c(a()),n=o(),r=i(gl());function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||p(e)!==`object`&&typeof e!=`function`)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!==`default`&&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,n&&n.set(e,r),r}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
3t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){"@babel/helpers - typeof";return p=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},p(e)}function m(e){return(0,n.isValidElementType)(e)?e:e&&p(e)===`object`?e.component:e}function h(e){return e&&p(e)===`object`?p(e.props)===`object`?d(d({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function g(e){return(0,n.isValidElementType)(e)?{component:e}:e||{}}function _(e,n){var r=m(e)||n;if(e&&p(e)===`object`&&typeof e.props==`function`){var i=t.forwardRef(function(n,i){var a=e.props(n),o=h(d(d({},e),{},{props:a}));return t.createElement(r,l({ref:i},o))});return i.displayName=r.displayName,[i,{}]}return[r,h(e)]}function v(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},e,t);return Object.keys(n).reduce(function(n,r){return n[r]=y(g(e[r]),g(t[r])),n},{})}function y(e,t){var n=d(d({},e),t);return e.props&&t.props&&(n.props=b(e.props,t.props)),e.style&&t.style&&(n.style=b(e.style,t.style)),n}function b(e,t){return p(e)===`object`&&p(t)===`object`?(0,r.default)({},e,t):function(){return(0,r.default)({},typeof e==`function`?e.apply(void 0,arguments):e,typeof t==`function`?t.apply(void 0,arguments):t)}}function x(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.useMemo(function(){return Object.keys(e).reduce(function(t,r){return t[r]=_(n[r],e[r]),t},{})},[n])}})),{createTheme:vl,lightThemePrimitives:yl}=n(i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),Object.defineProperty(t,`BaseProvider`,{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,`DarkTheme`,{enumerable:!0,get:function(){return r.DarkTheme}}),Object.defineProperty(t,`DarkThemeMove`,{enumerable:!0,get:function(){return r.DarkThemeMove}}),Object.defineProperty(t,`LightTheme`,{enumerable:!0,get:function(){return r.LightTheme}}),Object.defineProperty(t,`LightThemeMove`,{enumerable:!0,get:function(){return r.LightThemeMove}}),Object.defineProperty(t,`LocaleProvider`,{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,`ThemeConsumer`,{enumerable:!0,get:function(){return n.ThemeConsumer}}),Object.defineProperty(t,`ThemeProvider`,{enumerable:!0,get:function(){return n.ThemeProvider}}),Object.defineProperty(t,`createDarkTheme`,{enumerable:!0,get:function(){return r.createDarkTheme}}),Object.defineProperty(t,`createLightTheme`,{enumerable:!0,get:function(){return r.createLightTheme}}),Object.defineProperty(t,`createTheme`,{enumerable:!0,get:function(){return r.createTheme}}),Object.defineProperty(t,`createThemedStyled`,{enumerable:!0,get:function(){return n.createThemedStyled}}),Object.defineProperty(t,`createThemedUseStyletron`,{enumerable:!0,get:function(){return n.createThemedUseStyletron}}),Object.defineProperty(t,`createThemedWithStyle`,{enumerable:!0,get:function(){return n.createThemedWithStyle}}),Object.defineProperty(t,`darkThemeOverrides`,{enumerable:!0,get:function(){return r.darkThemeOverrides}}),Object.defineProperty(t,`darkThemePrimitives`,{enumerable:!0,get:function(){return r.darkThemePrimitives}}),Object.defineProperty(t,`getOverrides`,{enumerable:!0,get:function(){return o.getOverrides}}),Object.defineProperty(t,`lightThemePrimitives`,{enumerable:!0,get:function(){return r.lightThemePrimitives}}),Object.defineProperty(t,`mergeOverrides`,{enumerable:!0,get:function(){return o.mergeOverrides}}),Object.defineProperty(t,`styled`,{enumerable:!0,get:function(){return n.styled}}),Object.defineProperty(t,`useStyletron`,{enumerable:!0,get:function(){return n.useStyletron}}),Object.defineProperty(t,`withStyle`,{enumerable:!0,get:function(){return n.withStyle}}),Object.defineProperty(t,`withWrapper`,{enumerable:!0,get:function(){return n.withWrapper}});var n=(C(),e(_)),r=(m(),e(x)),i=s((ne(),e(p))),a=s(hl()),o=_l();
3function s(e){return e&&e.__esModule?e:{default:e}}}))(),1),bl=(e,t)=>{let{colors:n,genericFonts:r}=t;return{...e,primaryFontFamily:r.bodyFont,primary100:n.primary,primary200:n.primary,primary300:n.primary,primary400:n.primary,primary500:n.primary,primary600:n.primary,primary700:n.primary,mono100:n.bgColor,mono200:n.secondaryBg,mono300:n.gray30,mono400:n.gray30,mono500:n.gray60,mono600:n.fadedText40,mono700:n.gray60,mono800:n.bodyText,mono900:n.bodyText,mono1000:n.black}},xl=e=>{let{inSidebar:t,colors:n,genericFonts:r,fontSizes:i,lineHeights:a,radii:o}=e,s={fontFamily:r.bodyFont,fontSize:i.md,fontSizeSm:i.sm,fontWeight:`normal`,lineHeight:a.base,lineHeightTight:a.tight},c=n.secondaryBg,l=t?n.secondaryBg:n.bgColor,u=t?n.bgColor:n.secondaryBg;return{borders:{radius100:o.default,radius200:o.default,radius300:o.default,radius400:o.default,radius500:o.default,useRoundedCorners:!0,buttonBorderRadiusMini:o.sm,buttonBorderRadius:o.default,checkboxBorderRadius:`min(${o.sm}, ${o.maxCheckbox})`,inputBorderRadiusMini:o.sm,inputBorderRadius:o.default,popoverBorderRadius:o.default,surfaceBorderRadius:o.default,tagBorderRadius:o.sm},typography:{font100:{},font150:{...s},font200:{},font250:{},font300:{...s},font350:{...s},font400:{...s},font450:{...s},font460:{...s},font470:{...s},font500:{...s},font600:{},LabelXSmall:{...s},LabelSmall:{...s},LabelMedium:{...s},LabelLarge:{...s},ParagraphSmall:{...s}},colors:{white:n.white,black:n.black,primary:n.primary,primaryA:n.primary,backgroundPrimary:n.bgColor,backgroundSecondary:c,backgroundTertiary:n.bgColor,borderOpaque:n.darkenedBgMix25,accent:w(n.primary,.5),tagPrimarySolidBackground:n.primary,tagPrimaryFontDisabled:n.fadedText40,tagPrimaryOutlinedDisabled:n.transparent,borderSelected:n.primary,contentPrimary:n.bodyText,inputPlaceholder:n.fadedText60,tickFillDisabled:n.fadedText40,tickMarkFill:n.gray20,tickFillSelected:n.primary,datepickerBackground:l,calendarBackgroun
3d:l,calendarForeground:n.bodyText,calendarDayForegroundPseudoSelected:n.bodyText,calendarHeaderBackground:u,calendarHeaderBackgroundActive:u,calendarHeaderForeground:n.bodyText,calendarHeaderForegroundDisabled:n.gray40,calendarDayBackgroundSelected:n.primary,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelected:n.white,calendarDayForegroundSelectedHighlighted:n.white,calendarDayForegroundPseudoSelectedHighlighted:n.bodyText,menuFontHighlighted:n.bodyText,menuFontSelected:n.bodyText,modalCloseColor:n.bodyText,notificationInfoBackground:n.blueBackgroundColor,notificationInfoText:n.blueTextColor,notificationPositiveBackground:n.greenBackgroundColor,notificationPositiveText:n.greenTextColor,notificationWarningBackground:n.yellowBackgroundColor,notificationWarningText:n.yellowTextColor,notificationNegativeBackground:n.redBackgroundColor,notificationNegativeText:n.redTextColor,progressbarTrackFill:c,tickFill:n.lightenedBg05,tickMarkFillDisabled:n.lightenedBg05,menuFill:l,buttonDisabledFill:n.lightenedBg05,tickFillHover:c,inputFillDisabled:c,inputFillActive:c,toggleTrackFillDisabled:c,tickFillActive:c,sliderTrackFillDisabled:c,inputBorder:n.widgetBorderColor||c,inputFill:c,inputEnhanceFill:c,inputEnhancerFillDisabled:c,buttonDisabledSpinnerBackground:n.gray40,toggleTrackFill:n.gray40,sliderTrackFill:n.gray40,sliderHandleInnerFill:n.gray40,sliderHandleInnerFillDisabled:n.gray40}}},Sl=(e,t=yl)=>vl(bl(t,e),xl(e)),Cl={tooltip:`0px 1px 4px rgba(0, 0, 0, 0.16)`,popover:`0px 4px 16px rgba(0, 0, 0, 0.16)`,toolbar:`1px 2px 8px rgba(0, 0, 0, 0.08)`,sidebar:`-2rem 0 2rem 2rem rgba(0, 0, 0, 0.16)`,none:`none`},wl={tooltip:`0px 1px 4px rgba(0, 0, 0, 0.4)`,popover:`0px 4px 16px rgba(0, 0, 0, 0.7)`,toolbar:`1px 2px 8px rgba(0, 0, 0, 0.2)`,sidebar:`-2rem 0 2rem 2rem rgba(0, 0, 0, 0.4)`,none:`none`},Tl={px:`1px`,none:`0`,threeXS:`0.125rem`,twoXS:`0.25rem`,xs:`0.375rem`,sm:`0.5rem`,md:`0.75rem`,lg:`1rem`,xl:`1.25rem`,twoXL:`1.5rem`,threeXL:`2rem`,fourXL:`4rem`,fiveXL:`6rem`,sixXL:`8rem`},El=`2.5rem`,Dl=`1px`,Ol={full:`100%`,headerHeight:`3.75rem`,fullScreenHeaderHeight:`2.875rem`,sidebarTopSpace:`6rem`,toastWidth:`21rem`,contentMaxWidth:`736px`,maxChartTooltipWidth:`30rem`,checkbox:`1rem`,borderWidth:Dl,smallElementHeight:`1.5rem`,minElementHeight:El,elementHighlightHeight:`calc(${El} - 2 * ${Tl.xs})`,tagMarginInsideBorder:`calc(${Tl.xs} - ${Dl})`,largestElementHeight:`4.25rem`,smallLogoHeight:`1.25rem`,defaultLogoHeight:`1.5rem`,largeLogoHeight:`2rem`,sliderThumb:`0.75rem`,wideSidePadding:`5rem`,headerDecorationHeight:`0.125rem`,appMainMenu:`12rem`,appRunningMen:`1.6rem`,appStatusMaxWidth:`20rem`,tableColumnMaxWidth:`25rem`,spinnerSize:`1.375rem`,spinnerThickness:`0.125rem`,tabHeight:`2.5rem`,minPopupWidth:`20rem`,maxTooltipHeight:`18.75rem`,chatAvatarSize:`2rem`,clearIconSize:`1.5em`,numberInputControlsWidth:`2rem`,emptyDropdownHeight:`5.625rem`,dropdownItemHeight:`2.5rem`,maxDropdownHeight:`18.75rem`,appDefaultBottomPadding:`3.5rem`,defaultMapHeight:`31.25rem`,defaultChartHeight:`21.875rem`,defaultChartWidth:`25rem`,minMenuWidth:`8rem`,minChatInputFileListHeight:`3rem`,uploadedFileIconSize:`2rem`,headerItemHeight:`1.75rem`,headerRightContentMaxWidth:`12.5rem`,chatInputTextareaMinHeight:`1.5rem`,chatInputPrimaryButtonSize:`2rem`,chatInputButtonVerticalOffset:`0.1875rem`,dialogLargeWidth:`80rem`,defaultStrokeWidth:2.25,metricStrokeWidth:2,focusRingWidth:`0.2rem`,fileChipNameMinWidth:`4.875rem`},kl=e=>{let t=S(e.bgColor)>.5,n=t?Cl:wl,r=Ol.focusRingWidth,i=t?e.gray90:e.gray10;return{...n,focusRing:`0 0 0 ${r} ${w(e.primary,.5)}`,focusRingSubtle:`0 0 0 ${r} ${w(e.darkenedBgMix25,.5)}`,focusRingOutline:`0 0 0 1px ${e.primary}`,focusRingMuted:`0 0 0 ${r} ${w(i,.8)}`}},X={sansSerif:`"Source Sans", sans-serif`,monospace:`"Source Code Pro", monospace`,serif:`"Source Serif", serif`,materialIcons:`Material Symbols Rounded`},Al={bodyFont:X.sansSerif,codeFont:X.monospace,headingFont:X.sansSerif,iconFont:X.materialIcons},jl={baseFontSize:16,twoSm:`0.75rem`,sm:`0.875rem`,md:`1rem`,mdLg:`1.125rem`,lg:`1.25rem`,xl:`1.5rem`,twoXL:`1.75rem`,threeXL:`2.25rem`,fourXL:`2.75rem`,codeFontSize:`0.875rem`,inlineCodeFontSize:`0.75em`,h1FontSize:`2.75rem`,h2FontSize:`2.25rem`,h3FontSize:`1.75rem`,h4FontSize:`1.5rem`,h5FontSize:`1.25rem`,h6FontSize:`1rem`,metricValueFontSize:`2.25rem`},Ml={normal:400,semiBold:500,bold:600,extrabold:700,code:400,codeBold:600,codeExtraBold:700,h1FontWeight:700,h2FontWeight:600,h3FontWeight:600,h4FontWeight:600,h5FontWeight:600,h6FontWeight:600,metricValueFontWeight:400}
3,Nl={none:1,headings:1.2,tight:1.25,inputWidget:1.4,small:1.5,base:1.6,menuItem:2},Pl={hideWidgetDetails:`11.25rem`,hideNumberInputControls:`7.5rem`,sm:`576px`,columns:`640px`,md:`768px`},Fl={xs:`0.5rem`,sm:`0.75rem`,md:`0.9rem`,base:`1rem`,lg:`1.25rem`,xl:`1.5rem`,twoXL:`1.8rem`,threeXL:`2.3rem`},Il={sm:`0.25rem`,md2:`0.375rem`,default:`0.5rem`,xl:`0.75rem`,xxl:`1rem`,button:`0.5rem`,chatInput:`1.25rem`,full:`9999px`,maxCheckbox:`0.35rem`},Ll=100,Rl=Ll+10,zl=1e6,Bl=zl-10,Vl=Ll-1,Hl=zl-5,Ul=zl+50,Wl=zl-1,Gl=Ul+10,Kl={hide:-1,auto:`auto`,base:0,priority:1,sidebar:Ll,menuButton:Rl,balloons:zl,header:Bl,sidebarMobile:Hl,popup:Gl,fullscreenWrapper:Ul,tablePortal:Ul+60,bottom:Vl,cacheSpinner:Ll+1,toast:Gl+1,headerDecoration:Wl},Z={transparent:`transparent`,black:`#000000`,white:`#ffffff`,gray10:`#fafafa`,gray20:`#f0f2f6`,gray30:`#e6eaf1`,gray40:`#d5dae5`,gray50:`#bfc5d3`,gray60:`#a3a8b8`,gray70:`#808495`,gray80:`#555867`,gray85:`#31333F`,gray90:`#262730`,gray100:`#0e1117`,red10:`#fff0f0`,red20:`#ffdede`,red30:`#ffc7c7`,red40:`#ffabab`,red50:`#ff8c8c`,red60:`#ff6c6c`,red70:`#ff4b4b`,red80:`#ff2b2b`,red90:`#bd4043`,red100:`#7d353b`,orange10:`#fffae8`,orange20:`#fff6d0`,orange30:`#ffecb0`,orange40:`#ffe08e`,orange50:`#ffd16a`,orange60:`#ffbd45`,orange70:`#ffa421`,orange80:`#ff8700`,orange90:`#ed6f13`,orange95:`#e2660c`,orange100:`#d95a00`,yellow10:`#ffffe1`,yellow20:`#ffffc2`,yellow30:`#ffffa0`,yellow40:`#ffff7d`,yellow50:`#ffff59`,yellow60:`#fff835`,yellow65:`#ffff12`,yellow70:`#ffe312`,yellow80:`#faca2b`,yellow90:`#edbb16`,yellow100:`#dea816`,yellow110:`#916e10`,yellow115:`#926c05`,green10:`#dffde9`,green20:`#c0fcd3`,green30:`#9ef6bb`,green40:`#7defa1`,green50:`#5ce488`,green60:`#3dd56d`,green70:`#21c354`,green80:`#09ab3b`,green90:`#158237`,green100:`#177233`,blueGreen10:`#dcfffb`,blueGreen20:`#bafff7`,blueGreen30:`#93ffee`,blueGreen40:`#6bfde3`,blueGreen50:`#45f4d5`,blueGreen60:`#20e7c5`,blueGreen70:`#00d4b1`,blueGreen80:`#29b09d`,blueGreen90:`#2c867c`,blueGreen100:`#246e69`,lightBlue10:`#e0feff`,lightBlue20:`#bffdff`,lightBlue30:`#9af8ff`,lightBlue40:`#73efff`,lightBlue50:`#4be4ff`,lightBlue60:`#24d4ff`,lightBlue70:`#00c0f2`,lightBlue80:`#00a4d4`,lightBlue90:`#0d8cb5`,lightBlue100:`#15799e`,blue10:`#e4f5ff`,blue20:`#c7ebff`,blue30:`#a6dcff`,blue40:`#83c9ff`,blue50:`#60b4ff`,blue60:`#3d9df3`,blue65:`#1c83ff`,blue70:`#1c83e1`,blue80:`#0068c9`,blue90:`#0054a3`,blue100:`#004280`,purple10:`#f5ebff`,purple20:`#ebd6ff`,purple30:`#dbbbff`,purple40:`#c89dff`,purple50:`#b27eff`,purple60:`#9a5dff`,purple70:`#803df5`,purple80:`#6d3fc0`,purple90:`#583f84`,purple100:`#3f3163`},ql={bgColor:Z.white,secondaryBg:Z.gray20,bodyText:Z.gray85,primary:Z.red70,secondary:Z.blue70,redColor:Z.red70,orangeColor:Z.orange70,yellowColor:Z.yellow80,blueColor:Z.blue70,greenColor:Z.green70,violetColor:Z.purple70,grayColor:Z.gray60,redBackgroundColor:w(Z.red80,.9),orangeBackgroundColor:w(Z.orange70,.9),yellowBackgroundColor:w(Z.yellow65,.9),blueBackgroundColor:w(Z.blue65,.9),greenBackgroundColor:w(Z.green70,.9),violetBackgroundColor:w(Z.purple60,.9),grayBackgroundColor:w(Z.gray85,.9),redTextColor:Z.red90,orangeTextColor:Z.orange95,yellowTextColor:Z.yellow115,blueTextColor:Z.blue90,greenTextColor:Z.green90,violetTextColor:Z.purple90,grayTextColor:w(Z.gray85,.4)},Jl={},Yl={...Z,...ql,...Jl},Xl=re(Yl),Zl={inSidebar:!1,showSidebarBorder:!1,linkUnderline:!0,breakpoints:Pl,colors:Xl,fonts:X,fontSizes:jl,fontWeights:Ml,genericFonts:Al,iconSizes:Fl,lineHeights:Nl,radii:Il,shadows:kl(Xl),sizes:Ol,spacing:Tl,zIndices:Kl},Ql={...Z,bgColor:Z.gray100,bodyText:Z.gray10,primary:Z.red70,secondaryBg:Z.gray90,redColor:Z.red80,orangeColor:Z.orange80,yellowColor:Z.yellow70,blueColor:Z.blue80,greenColor:Z.green80,violetColor:Z.purple70,grayColor:Z.gray80,redBackgroundColor:w(Z.red60,.8),orangeBackgroundColor:w(Z.orange80,.8),yellowBackgroundColor:w(Z.yellow65,.8),blueBackgroundColor:w(Z.blue60,.8),greenBackgroundColor:w(Z.green60,.8),violetBackgroundColor:w(Z.purple60,.8),grayBackgroundColor:w(Z.gray70,.8),redTextColor:Z.red60,orangeTextColor:Z.orange60,yellowTextColor:Z.yellow20,blueTextColor:Z.blue60,greenTextColor:Z.green50,violetTextColor:Z.purple50,grayTextColor:w(Z.gray10,.4)},$l=re({...Zl.colors,...Ql}),eu=kl($l),tu={...Zl,inSidebar:!1,colors:$l,shadows:eu},nu={...Zl,inSidebar:!1},ru=Sl(nu,g),iu=Sl(tu,b),au={name:`base`,emotion:Zl,basewebTheme:ru,primitives:g},ou={name:`Dark`,emotion:tu,basewebTheme:iu,primitives:b},su={name:`Light`,emotion:nu,basewebTheme:ru,primitives:g},cu=`Use system setting`,lu=`Custom Theme`,uu=`Custom Theme Light`,du=`Custom Theme Dark`,fu=`Custom Theme Auto`,Q=(0,Ya.getL
3ogger)(`theme:utils`);function pu(e){if(e==null)return e;if(Array.isArray(e))return e.map(e=>pu(e));if(typeof e==`object`){let t={};return Object.keys(e).sort().forEach(n=>{t[n]=pu(e[n])}),t}return e}function mu(e,t){if(t&&Oe(t)){let n=new E(t);return Hu(e.name,n,e)}return e}var hu=qa(()=>mu(su,le.LIGHT_THEME)),gu=qa(()=>mu(ou,le.DARK_THEME)),_u=()=>window.matchMedia?.(`(prefers-color-scheme: dark)`)?.matches??!1?`dark`:`light`,vu=()=>_u()===`dark`?gu():hu(),yu=()=>({...vu(),name:cu}),bu=()=>[yu(),hu(),gu()],xu=e=>bu().map(e=>e.name).includes(e.name),Su=e=>e===void 0||S(e)>.5?`light`:`dark`,Cu=e=>{let t=new Option().style;return t.color=e,t.color!==``},wu=e=>Math.round(e*8)/8,Tu=(e,t=X.sansSerif)=>{let n=e.trim();if(!n)return t;let r={"sans-serif":X.sansSerif,serif:X.serif,monospace:X.monospace},i=n.toLowerCase().replaceAll(` `,`-`);return i in r?r[i]:`${n}, ${t}`},Eu=(e,t,n=!1)=>{if(Cu(e))return e;if(Cu(`#${e}`))return`#${e}`;if(t.toLowerCase().includes(`color`)){let r=n?`theme.sidebar`:`theme`;Q.warn(`Invalid color passed for ${t} in ${r}: "${e}"`)}},Du=(e,t,n,r)=>e||(t?w(t,r?.9:.8):n),Ou=(e,t,n,r)=>{if(e)return e;if(t){let e=.15;return r?ee(t,e):y(t,e)}return n},ku=(e,t)=>{let n={...e},r={redBackgroundColor:{main:t.redColor,background:t.redBackgroundColor},orangeBackgroundColor:{main:t.orangeColor,background:t.orangeBackgroundColor},yellowBackgroundColor:{main:t.yellowColor,background:t.yellowBackgroundColor},blueBackgroundColor:{main:t.blueColor,background:t.blueBackgroundColor},greenBackgroundColor:{main:t.greenColor,background:t.greenBackgroundColor},violetBackgroundColor:{main:t.violetColor,background:t.violetBackgroundColor},grayBackgroundColor:{main:t.grayColor,background:t.grayBackgroundColor}},i=S(n.bgColor)>.5;return Object.entries(r).forEach(([t,{main:r,background:a}])=>{let o=t;n[o]=Du(a,r,e[o],i)}),n},Au=(e,t)=>{let n={...e},r={redTextColor:{main:t.redColor,text:t.redTextColor},orangeTextColor:{main:t.orangeColor,text:t.orangeTextColor},yellowTextColor:{main:t.yellowColor,text:t.yellowTextColor},blueTextColor:{main:t.blueColor,text:t.blueTextColor},greenTextColor:{main:t.greenColor,text:t.greenTextColor},violetTextColor:{main:t.violetColor,text:t.violetTextColor},grayTextColor:{main:t.grayColor,text:t.grayTextColor}},i=S(n.bgColor)>.5;return Object.entries(r).forEach(([t,{main:r,text:a}])=>{let o=t;n[o]=Ou(a,r,e[o],i)}),n},ju=e=>{let t=`rem`,n,r=e.trim().toLowerCase();return r===`none`?n=0:r===`small`?n=.35:r===`medium`?n=.5:r===`large`?n=1:r===`full`?n=1.4:r.endsWith(`rem`)?n=parseFloat(r):r.endsWith(`px`)?(n=parseFloat(r),t=`px`):isNaN(parseFloat(r))||(n=parseFloat(r),t=`px`),[n,t]},Mu=(e,t,n)=>{let r=n?`theme.sidebar`:`theme`;if(typeof t==`string`){let e=t.trim().toLowerCase(),n=parseFloat(e);if(n&&(e.endsWith(`rem`)||e.endsWith(`px`)))return e;if(n.toString()===e)return`${e}px`}Q.warn(`Invalid size passed for ${e} in ${r}: ${t}. Falling back to default ${e}.`)},Nu=(e,t,n,r,i)=>{let a=i?`theme.sidebar`:`theme`;if(T(t)){let i=Number.isInteger(t),o=t%100==0;return!i||!o||!(t>=n&&t<=r)?(Q.warn(`Invalid ${e}: ${t} in ${a}. The ${e} must be an integer ${n}-${r}, and an increment of 100. Falling back to default font weight.`),!1):!0}return!1},Pu=(e,t,n,r)=>{let i=Mu(e,t,r);if(i?.endsWith(`rem`))return i;if(i?.endsWith(`px`))return`${parseFloat(i)/n}rem`},Fu=(e,t,n,r)=>{let i={...e};return r&&r.forEach((e,r)=>{let a=`h${r+1}FontSize`,o=Pu(`${a} in headingFontSizes`,e,n,t);o&&(i[a]=o)}),i},Iu=(e,t,n,r,i)=>{let a={...e,h1FontWeight:t?600:e.h1FontWeight};return n&&Nu(`baseFontWeight`,n,100,600)&&(a.normal=n,a.semiBold=n+100,a.bold=n+200,a.extrabold=n+300,a.code=n,a.codeBold=n+200,a.codeExtraBold=n+300),r&&Nu(`codeFontWeight`,r,100,600)&&(a.code=r,a.codeBold=r+200,a.codeExtraBold=r+300),i&&i.forEach((e,n)=>{let r=`h${n+1}FontWeight`;Nu(`${r} in headingFontWeights`,e,100,900,t)&&(a[r]=e)}),a},Lu=(e,t)=>t.map(t=>Eu(t,e)).filter(e=>e!==void 0),Ru=(e,t=au)=>{let{colors:n,genericFonts:r,inSidebar:i}=t.emotion,{baseFontSize:a,baseFontWeight:o,baseRadius:s,buttonRadius:c,codeFontSize:l,codeFontWeight:u,showWidgetBorder:d,headingFont:f,headingFontSizes:p,headingFontWeights:m,bodyFont:h,codeFont:g,showSidebarBorder:_,linkUnderline:v,chartCategoricalColors:y,chartSequentialColors:b,chartDivergingColors:x,metricValueFontSize:ee,metricValueFontWeight:S,...te}=e,C=Object.entries(te).reduce((e,[t,n])=>{let r=Eu(n,t,i);return r&&(e[t]=r),e},{}
3),{secondaryBackgroundColor:ne,backgroundColor:ie,primaryColor:ae,textColor:oe,dataframeBorderColor:se,dataframeHeaderBackgroundColor:ce,borderColor:le,linkColor:ue,codeTextColor:E,codeBackgroundColor:de,redColor:fe,orangeColor:pe,yellowColor:me,blueColor:he,greenColor:ge,violetColor:_e,grayColor:D}=C,O={colors:{...re({...n,primary:ae??n.primary,bodyText:oe??n.bodyText,secondaryBg:ne??n.secondaryBg,bgColor:ie??n.bgColor,redColor:fe??n.redColor,orangeColor:pe??n.orangeColor,yellowColor:me??n.yellowColor,blueColor:he??n.blueColor,greenColor:ge??n.greenColor,violetColor:_e??n.violetColor,grayColor:D??n.grayColor,secondary:ae??n.primary})},showSidebarBorder:_??t.emotion.showSidebarBorder,linkUnderline:v??t.emotion.linkUnderline,radii:{...t.emotion.radii},fontSizes:{...t.emotion.fontSizes},fontWeights:{...t.emotion.fontWeights}};if(O.colors.codeBackgroundColor=de??n.codeBackgroundColor,O.colors.dataframeHeaderBackgroundColor=ce??n.dataframeHeaderBackgroundColor,T(le)){O.colors.borderColor=le;let e=w(le,.55);O.colors.borderColorLight=e,O.colors.dataframeBorderColor=e}if(T(se)&&(O.colors.dataframeBorderColor=se),d&&(O.colors.widgetBorderColor=O.colors.borderColor),O.colors=ku(O.colors,C),O.colors=Au(O.colors,C),O.colors.link=ue??O.colors.blueTextColor,O.colors.codeTextColor=E??O.colors.greenTextColor,T(y)&&y.length>0){let e=Lu(`chartCategoricalColors`,y);e.length>0&&(O.colors.chartCategoricalColors=e)}if(T(b)&&b.length>0){let e=Lu(`chartSequentialColors`,b);e.length===10?O.colors.chartSequentialColors=e:Q.warn(`Invalid chartSequentialColors: ${b.toString()}. Falling back to default chartSequentialColors.`)}if(T(x)&&x.length>0){let e=Lu(`chartDivergingColors`,x);e.length===10?O.colors.chartDivergingColors=e:Q.warn(`Invalid chartDivergingColors: ${x.toString()}. Falling back to default chartDivergingColors.`)}if(T(s)){let[e,t]=ju(s);if(T(e)&&!isNaN(e)){let n=$(e,t);O.radii.default=n,O.radii.button=n,O.radii.sm=$($u(e*.5),t),O.radii.md2=$($u(e*.75),t),O.radii.xl=$($u(e*1.5),t),O.radii.xxl=$($u(e*2),t)}else Q.warn(`Invalid base radius: ${s}. Falling back to default base radius.`)}if(T(c)){let[e,t]=ju(c);T(e)&&!isNaN(e)?O.radii.button=$(e,t):Q.warn(`Invalid button radius: ${c}. Falling back to default button radius.`)}if(a&&a>0&&(O.fontSizes.baseFontSize=a),l){let e=Mu(`codeFontSize`,l,i);e&&(O.fontSizes.codeFontSize=e)}if(O.fontSizes=Fu(O.fontSizes,i,O.fontSizes.baseFontSize,p),ee){let e=Mu(`metricValueFontSize`,ee,i);e&&(parseFloat(e)<=0?Q.warn(`Invalid metricValueFontSize: ${ee} in theme. The metricValueFontSize must be greater than 0. Falling back to default metricValueFontSize.`):O.fontSizes.metricValueFontSize=e)}O.fontWeights=Iu(t.emotion.fontWeights,i,o,u,m),S&&(S>=100&&S<=900?O.fontWeights.metricValueFontWeight=S:Q.warn(`Invalid metricValueFontWeight: ${S}. Must be between 100 and 900.`));let k={...r,bodyFont:h?Tu(h,X.sansSerif):r.bodyFont,codeFont:g?Tu(g,X.monospace):r.codeFont,headingFont:f?Tu(f,X.sansSerif):r.headingFont};h&&!f&&(k.headingFont=Tu(h,X.sansSerif));let ve=kl(O.colors);return{...t.emotion,genericFonts:k,...O,shadows:ve}},zu=e=>{let{colors:t}=e;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroundColor:t.secondaryBg,textColor:t.bodyText,bodyFont:e.genericFonts.bodyFont}},Bu=e=>{let{colors:t}=e,n=zu(e);return{primaryColor:n.primaryColor,backgroundColor:n.backgroundColor,secondaryBackgroundColor:n.secondaryBackgroundColor,textColor:n.textColor,bodyFont:n.bodyFont,base:Su(n.backgroundColor),...ie(t)}},Vu=(e,t)=>new E({...zu(t.emotion),...e}),Hu=(e,t,n,r=!1)=>{let i;i=n?Vu(t,n):t.base===E.BaseTheme.DARK?Vu(t,ou):Vu(t,su);let a=i.backgroundColor,o=Ka(ja(n||(S(a)>.5?su:ou)),{emotion:{inSidebar:r}}),s=Ru(i,o),c=ja(Sl(s,o.primitives));return{...o,name:e,emotion:s,basewebTheme:c,themeInput:t}},Uu=()=>{let{CACHED_THEME_VERSION:e,CACHED_THEME_BASE_KEY:t}=$a,{localStorage:n}=window;n.removeItem(`stActiveTheme`),n.removeItem(t);for(let r=1;r<e;r++)n.removeItem(`${t}-v${r}`)},Wu=e=>e.name===`Use system setting`||e.name===`Custom Theme Auto`?`System`:e.name===su.name||e.name===`Custom Theme Light`?`Light`:e.name===ou.name||e.name===`Custom Theme Dark`?`Dark`:(e.name,`System`),Gu=e=>e===`System`||e===`Light`||e===`Dark`,Ku=()=>{if(!ue())return null;Uu();let e=window.localStorage.getItem($a.ACTIVE_THEME);if(!e)return null;let t=JSON.parse(e);return Gu(t)?t:null},qu=e=>{if(!ue()||(Uu(),de()||fe()))return;let t=Wu(e);window.localStorage.setItem($a.ACTIVE_THEME,JSON.stringify(t))},Ju=()=>de()?hu():fe()?gu():null,Yu=()=>
3Ju()??yu(),Xu=()=>{let e=Ju();if(e)return e;let t=Ku();return t===`Light`?hu():t===`Dark`?gu():yu()},Zu=/\s+/;function Qu(e,t){return e===``?``:e.split(Zu).map(e=>e===`0`?t.spacing.none:e in t.spacing?t.spacing[e]:(Q.error(`Invalid spacing value: ${e}`),t.spacing.none)).join(` `)}function $(e,t){return`${e}${t}`}function $u(e){return parseFloat(e.toFixed(2))}function ed(e,t){if(t===void 0)return e;let[n,r,i,a]=te(e);if(a===1)return e;let[o,s,c,l]=te(t),u=a+l*(1-a);return ae(`rgba(${Math.round((a*n+l*o*(1-a))/u)}, ${Math.round((a*r+l*s*(1-a))/u)}, ${Math.round((a*i+l*c*(1-a))/u)}, ${u})`)}var td=e=>parseFloat(e.replace(/rem$/,``))*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16),nd=(e,t)=>{if(t===``||t===null||Array.isArray(t)&&t.length===0)return e},rd=(e,t)=>{let n=t===`light`,r=n?E.BaseTheme.LIGHT:E.BaseTheme.DARK,{light:i,dark:a,sidebar:o,...s}=e,{sidebar:c,...l}=(n?i:a)||{},u=Ga({},s,l,{base:r},nd);return(o||c)&&(u.sidebar=Ga({},o,c,nd)),u},id=e=>{if(!e)return!1;let t=e=>e==null?!1:Array.isArray(e)?e.length>0:typeof e==`object`?Object.values(e).some(t):!0;return Object.values(e).some(t)},ad=e=>{let t=id(e.light),n=id(e.dark),r=[];if(t||n){let t={...Hu(uu,rd(e,`light`)),displayName:`Light`},n={...Hu(du,rd(e,`dark`)),displayName:`Dark`},i={..._u()===`dark`?n:t,displayName:cu,name:fu};r.push(t,n,i)}else{let t=Hu(lu,e);r.push(t)}return r},od=e=>Ka([],[`1.5rem`,`1.25rem`,`1.125rem`,`1rem`,`0.875rem`,`0.75rem`],e||[]),sd=e=>{let t=e.themeInput?.sidebar,{bgColor:n,secondaryBg:r}=e.emotion.colors,i=t?.backgroundColor||r,a=t?.secondaryBackgroundColor||n,o=od(t?.headingFontSizes),s=S(i)>.5?E.BaseTheme.LIGHT:E.BaseTheme.DARK;return e.name===`Custom Theme Light`?s=E.BaseTheme.LIGHT:e.name===`Custom Theme Dark`&&(s=E.BaseTheme.DARK),Hu(`Sidebar`,Ga({},e.themeInput,t,{base:s,backgroundColor:i,secondaryBackgroundColor:a,headingFontSizes:o},nd),void 0,!0)},cd=(e,t)=>{if(!e)return null;let n={System:[fu,cu,lu],Light:[uu,su.name],Dark:[du,ou.name]};for(let r of n[e]){let e=t.find(e=>e.name===r);if(e)return e}return null},ld=e=>{let t=Ju();return cd((t?Wu(t):null)??Ku(),e)};export{Qr as $,Al as A,_t as At,yo as B,st as Bt,pu as C,an as Ct,ru as D,Ct as Dt,su as E,St as Et,is as F,mt as Ft,La as G,Ka as H,Ge as Ht,jo as I,ut as It,Pa as J,Ra as K,To as L,dt as Lt,ml as M,j as Mt,ul as N,M as Nt,Yl as O,xt as Ot,_s as P,ft as Pt,ii as Q,Co as R,ct as Rt,qu as S,rn as St,ou as T,kt as Tt,Ga as U,qa as V,We as Vt,Ba as W,ka as X,$i as Y,ri as Z,ld as _,Cn as _t,lu as a,jr as at,xu as b,fn as bt,Qu as c,gr as ct,ad as d,Wn as dt,$r as et,bu as f,Ln as ft,Yu as g,wn as gt,Xu as h,Nn as ht,uu as i,Pr as it,_l as j,gt as jt,jl as k,yt as kt,td as l,F as lt,Hu as m,Mn as mt,fu as n,Br as nt,$ as o,Mr as ot,sd as p,In as pt,Aa as q,du as r,Nr as rt,ed as s,hr as st,cu as t,zr as tt,yu as u,ir as ut,_u as v,bn as vt,Bu as w,At as wt,wu as x,dn as xt,Wu as y,Sn as yt,vo as z,lt as zt};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.