20 lines
426 KiB
JavaScript
20 lines
426 KiB
JavaScript
/*! shiny 1.10.0 | (c) 2012-2024 RStudio, PBC. | License: GPL-3 | file LICENSE */
|
|
"use strict";(function(){var gT=Object.create;var _h=Object.defineProperty;var bT=Object.getOwnPropertyDescriptor;var wT=Object.getOwnPropertyNames;var ST=Object.getPrototypeOf,OT=Object.prototype.hasOwnProperty;var q=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var _T=function(e,r,t,n){if(r&&typeof r=="object"||typeof r=="function")for(var i=wT(r),a=0,s=i.length,c;a<s;a++)c=i[a],!OT.call(e,c)&&c!==t&&_h(e,c,{get:function(l){return r[l]}.bind(null,c),enumerable:!(n=bT(r,c))||n.enumerable});return e};var N=function(e,r,t){return t=e!=null?gT(ST(e)):{},_T(r||!e||!e.__esModule?_h(t,"default",{value:e,enumerable:!0}):t,e)};var X=q(function(s4,Ph){var sa=function(e){return e&&e.Math==Math&&e};Ph.exports=sa(typeof globalThis=="object"&&globalThis)||sa(typeof window=="object"&&window)||sa(typeof self=="object"&&self)||sa(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var K=q(function(f4,Eh){Eh.exports=function(e){try{return!!e()}catch(r){return!0}}});var ae=q(function(c4,Ih){var PT=K();Ih.exports=!PT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Kt=q(function(l4,qh){var ET=K();qh.exports=!ET(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ie=q(function(p4,Th){var IT=Kt(),fa=Function.prototype.call;Th.exports=IT?fa.bind(fa):function(){return fa.apply(fa,arguments)}});var ca=q(function(Rh){"use strict";var kh={}.propertyIsEnumerable,xh=Object.getOwnPropertyDescriptor,qT=xh&&!kh.call({1:2},1);Rh.f=qT?function(r){var t=xh(this,r);return!!t&&t.enumerable}:kh});var Wt=q(function(h4,Ah){Ah.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var W=q(function(d4,jh){var $h=Kt(),Nh=Function.prototype,js=Nh.call,TT=$h&&Nh.bind.bind(js,js);jh.exports=$h?TT:function(e){return function(){return js.apply(e,arguments)}}});var ze=q(function(m4,Ch){var Lh=W(),kT=Lh({}.toString),xT=Lh("".slice);Ch.exports=function(e){return xT(kT(e),8,-1)}});var di=q(function(y4,Dh){var RT=W(),AT=K(),$T=ze(),Ls=Object,NT=RT("".split);Dh.exports=AT(function(){return!Ls("z").propertyIsEnumerable(0)})?function(e){return $T(e)=="String"?NT(e,""):Ls(e)}:Ls});var He=q(function(g4,Bh){Bh.exports=function(e){return e==null}});var Ke=q(function(b4,Mh){var jT=He(),LT=TypeError;Mh.exports=function(e){if(jT(e))throw LT("Can't call method on "+e);return e}});var Le=q(function(w4,Gh){var CT=di(),DT=Ke();Gh.exports=function(e){return CT(DT(e))}});var Ds=q(function(S4,Fh){var Cs=typeof document=="object"&&document.all,BT=typeof Cs=="undefined"&&Cs!==void 0;Fh.exports={all:Cs,IS_HTMLDDA:BT}});var re=q(function(O4,Vh){var Uh=Ds(),MT=Uh.all;Vh.exports=Uh.IS_HTMLDDA?function(e){return typeof e=="function"||e===MT}:function(e){return typeof e=="function"}});var ce=q(function(_4,Kh){var zh=re(),Hh=Ds(),GT=Hh.all;Kh.exports=Hh.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:zh(e)||e===GT}:function(e){return typeof e=="object"?e!==null:zh(e)}});var Ae=q(function(P4,Wh){var Bs=X(),FT=re(),UT=function(e){return FT(e)?e:void 0};Wh.exports=function(e,r){return arguments.length<2?UT(Bs[e]):Bs[e]&&Bs[e][r]}});var br=q(function(E4,Yh){var VT=W();Yh.exports=VT({}.isPrototypeOf)});var mi=q(function(I4,Xh){Xh.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var Yt=q(function(q4,td){var rd=X(),Ms=mi(),Qh=rd.process,Jh=rd.Deno,Zh=Qh&&Qh.versions||Jh&&Jh.version,ed=Zh&&Zh.v8,er,la;ed&&(er=ed.split("."),la=er[0]>0&&er[0]<4?1:+(er[0]+er[1]));!la&&Ms&&(er=Ms.match(/Edge\/(\d+)/),(!er||er[1]>=74)&&(er=Ms.match(/Chrome\/(\d+)/),er&&(la=+er[1])));td.exports=la});var it=q(function(T4,id){var nd=Yt(),zT=K();id.exports=!!Object.getOwnPropertySymbols&&!zT(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nd&&nd<41})});var Gs=q(function(k4,od){var HT=it();od.exports=HT&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Xt=q(function(x4,ad){var KT=Ae(),WT=re(),YT=br(),XT=Gs(),QT=Object;ad.exports=XT?function(e){return typeof e=="symbol"}:function(e){var r=KT("Symbol");return WT(r)&&YT(r.prototype,QT(e))}});var ot=q(function(R4,ud){var JT=String;ud.exports=function(e){try{return JT(e)}catch(r){return"Object"}}});var We=q(function(A4,sd){var ZT=re(),ek=ot(),rk=TypeError;sd.exports=function(e){if(ZT(e))return e;throw rk(ek(e)+" is not a function")}});var Nr=q(function($4,fd){var tk=We(),nk=He();fd.exports=function(e,r){var t=e[r];return nk(t)?void 0:tk(t)}});var zs=q(function(N4,cd){var Fs=ie(),Us=re(),Vs=ce(),ik=TypeError;cd.exports=function(e,r){var t,n;if(r==="string"&&Us(t=e.toString)&&!Vs(n=Fs(t,e))||Us(t=e.valueOf)&&!Vs(n=Fs(t,e))||r!=="string"&&Us(t=e.toString)&&!Vs(n=Fs(t,e)))return n;throw ik("Can't convert object to primitive value")}});var $e=q(function(j4,ld){ld.exports=!1});var pa=q(function(L4,vd){var pd=X(),ok=Object.defineProperty;vd.exports=function(e,r){try{ok(pd,e,{value:r,configurable:!0,writable:!0})}catch(t){pd[e]=r}return r}});var va=q(function(C4,dd){var ak=X(),uk=pa(),hd="__core-js_shared__",sk=ak[hd]||uk(hd,{});dd.exports=sk});var at=q(function(D4,yd){var fk=$e(),md=va();(yd.exports=function(e,r){return md[e]||(md[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.29.0",mode:fk?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ne=q(function(B4,gd){var ck=Ke(),lk=Object;gd.exports=function(e){return lk(ck(e))}});var ue=q(function(M4,bd){var pk=W(),vk=Ne(),hk=pk({}.hasOwnProperty);bd.exports=Object.hasOwn||function(r,t){return hk(vk(r),t)}});var yi=q(function(G4,wd){var dk=W(),mk=0,yk=Math.random(),gk=dk(1 .toString);wd.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gk(++mk+yk,36)}});var ne=q(function(F4,Od){var bk=X(),wk=at(),Sd=ue(),Sk=yi(),Ok=it(),_k=Gs(),Qt=bk.Symbol,Hs=wk("wks"),Pk=_k?Qt.for||Qt:Qt&&Qt.withoutSetter||Sk;Od.exports=function(e){return Sd(Hs,e)||(Hs[e]=Ok&&Sd(Qt,e)?Qt[e]:Pk("Symbol."+e)),Hs[e]}});var Ks=q(function(U4,Ed){var Ek=ie(),_d=ce(),Pd=Xt(),Ik=Nr(),qk=zs(),Tk=ne(),kk=TypeError,xk=Tk("toPrimitive");Ed.exports=function(e,r){if(!_d(e)||Pd(e))return e;var t=Ik(e,xk),n;if(t){if(r===void 0&&(r="default"),n=Ek(t,e,r),!_d(n)||Pd(n))return n;throw kk("Can't convert object to primitive value")}return r===void 0&&(r="number"),qk(e,r)}});var gi=q(function(V4,Id){var Rk=Ks(),Ak=Xt();Id.exports=function(e){var r=Rk(e,"string");return Ak(r)?r:r+""}});var bi=q(function(z4,Td){var $k=X(),qd=ce(),Ws=$k.document,Nk=qd(Ws)&&qd(Ws.createElement);Td.exports=function(e){return Nk?Ws.createElement(e):{}}});var Ys=q(function(H4,kd){var jk=ae(),Lk=K(),Ck=bi();kd.exports=!jk&&!Lk(function(){return Object.defineProperty(Ck("div"),"a",{get:function(){return 7}}).a!=7})});var rr=q(function(Rd){var Dk=ae(),Bk=ie(),Mk=ca(),Gk=Wt(),Fk=Le(),Uk=gi(),Vk=ue(),zk=Ys(),xd=Object.getOwnPropertyDescriptor;Rd.f=Dk?xd:function(r,t){if(r=Fk(r),t=Uk(t),zk)try{return xd(r,t)}catch(n){}if(Vk(r,t))return Gk(!Bk(Mk.f,r,t),r[t])}});var Xs=q(function(W4,Ad){var Hk=ae(),Kk=K();Ad.exports=Hk&&Kk(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var oe=q(function(Y4,$d){var Wk=ce(),Yk=String,Xk=TypeError;$d.exports=function(e){if(Wk(e))return e;throw Xk(Yk(e)+" is not an object")}});var Se=q(function(jd){var Qk=ae(),Jk=Ys(),Zk=Xs(),ha=oe(),Nd=gi(),ex=TypeError,Qs=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,Js="enumerable",Zs="configurable",ef="writable";jd.f=Qk?Zk?function(r,t,n){if(ha(r),t=Nd(t),ha(n),typeof r=="function"&&t==="prototype"&&"value"in n&&ef in n&&!n[ef]){var i=rx(r,t);i&&i[ef]&&(r[t]=n.value,n={configurable:Zs in n?n[Zs]:i[Zs],enumerable:Js in n?n[Js]:i[Js],writable:!1})}return Qs(r,t,n)}:Qs:function(r,t,n){if(ha(r),t=Nd(t),ha(n),Jk)try{return Qs(r,t,n)}catch(i){}if("get"in n||"set"in n)throw ex("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var wr=q(function(Q4,Ld){var tx=ae(),nx=Se(),ix=Wt();Ld.exports=tx?function(e,r,t){return nx.f(e,r,ix(1,t))}:function(e,r,t){return e[r]=t,e}});var ut=q(function(J4,Dd){var rf=ae(),ox=ue(),Cd=Function.prototype,ax=rf&&Object.getOwnPropertyDescriptor,tf=ox(Cd,"name"),ux=tf&&function(){}.name==="something",sx=tf&&(!rf||rf&&ax(Cd,"name").configurable);Dd.exports={EXISTS:tf,PROPER:ux,CONFIGURABLE:sx}});var da=q(function(Z4,Bd){var fx=W(),cx=re(),nf=va(),lx=fx(Function.toString);cx(nf.inspectSource)||(nf.inspectSource=function(e){return lx(e)});Bd.exports=nf.inspectSource});var of=q(function(eY,Gd){var px=X(),vx=re(),Md=px.WeakMap;Gd.exports=vx(Md)&&/native code/.test(String(Md))});var wi=q(function(rY,Ud){var hx=at(),dx=yi(),Fd=hx("keys");Ud.exports=function(e){return Fd[e]||(Fd[e]=dx(e))}});var Jt=q(function(tY,Vd){Vd.exports={}});var Ce=q(function(nY,Kd){var mx=of(),Hd=X(),yx=ce(),gx=wr(),af=ue(),uf=va(),bx=wi(),wx=Jt(),zd="Object already initialized",sf=Hd.TypeError,Sx=Hd.WeakMap,ma,Si,ya,Ox=function(e){return ya(e)?Si(e):ma(e,{})},_x=function(e){return function(r){var t;if(!yx(r)||(t=Si(r)).type!==e)throw sf("Incompatible receiver, "+e+" required");return t}};mx||uf.state?(tr=uf.state||(uf.state=new Sx),tr.get=tr.get,tr.has=tr.has,tr.set=tr.set,ma=function(e,r){if(tr.has(e))throw sf(zd);return r.facade=e,tr.set(e,r),r},Si=function(e){return tr.get(e)||{}},ya=function(e){return tr.has(e)}):(st=bx("state"),wx[st]=!0,ma=function(e,r){if(af(e,st))throw sf(zd);return r.facade=e,gx(e,st,r),r},Si=function(e){return af(e,st)?e[st]:{}},ya=function(e){return af(e,st)});var tr,st;Kd.exports={set:ma,get:Si,has:ya,enforce:Ox,getterFor:_x}});var lf=q(function(iY,Xd){var cf=W(),Px=K(),Ex=re(),ga=ue(),ff=ae(),Ix=ut().CONFIGURABLE,qx=da(),Yd=Ce(),Tx=Yd.enforce,kx=Yd.get,Wd=String,ba=Object.defineProperty,xx=cf("".slice),Rx=cf("".replace),Ax=cf([].join),$x=ff&&!Px(function(){return ba(function(){},"length",{value:8}).length!==8}),Nx=String(String).split("String"),jx=Xd.exports=function(e,r,t){xx(Wd(r),0,7)==="Symbol("&&(r="["+Rx(Wd(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(r="get "+r),t&&t.setter&&(r="set "+r),(!ga(e,"name")||Ix&&e.name!==r)&&(ff?ba(e,"name",{value:r,configurable:!0}):e.name=r),$x&&t&&ga(t,"arity")&&e.length!==t.arity&&ba(e,"length",{value:t.arity});try{t&&ga(t,"constructor")&&t.constructor?ff&&ba(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=Tx(e);return ga(n,"source")||(n.source=Ax(Nx,typeof r=="string"?r:"")),e};Function.prototype.toString=jx(function(){return Ex(this)&&kx(this).source||qx(this)},"toString")});var Oe=q(function(oY,Qd){var Lx=re(),Cx=Se(),Dx=lf(),Bx=pa();Qd.exports=function(e,r,t,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:r;if(Lx(t)&&Dx(t,a,n),n.global)i?e[r]=t:Bx(r,t);else{try{n.unsafe?e[r]&&(i=!0):delete e[r]}catch(s){}i?e[r]=t:Cx.f(e,r,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var Zd=q(function(aY,Jd){var Mx=Math.ceil,Gx=Math.floor;Jd.exports=Math.trunc||function(r){var t=+r;return(t>0?Gx:Mx)(t)}});var Sr=q(function(uY,em){var Fx=Zd();em.exports=function(e){var r=+e;return r!==r||r===0?0:Fx(r)}});var ft=q(function(sY,rm){var Ux=Sr(),Vx=Math.max,zx=Math.min;rm.exports=function(e,r){var t=Ux(e);return t<0?Vx(t+r,0):zx(t,r)}});var lr=q(function(fY,tm){var Hx=Sr(),Kx=Math.min;tm.exports=function(e){return e>0?Kx(Hx(e),9007199254740991):0}});var De=q(function(cY,nm){var Wx=lr();nm.exports=function(e){return Wx(e.length)}});var wa=q(function(lY,om){var Yx=Le(),Xx=ft(),Qx=De(),im=function(e){return function(r,t,n){var i=Yx(r),a=Qx(i),s=Xx(n,a),c;if(e&&t!=t){for(;a>s;)if(c=i[s++],c!=c)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};om.exports={includes:im(!0),indexOf:im(!1)}});var vf=q(function(pY,um){var Jx=W(),pf=ue(),Zx=Le(),eR=wa().indexOf,rR=Jt(),am=Jx([].push);um.exports=function(e,r){var t=Zx(e),n=0,i=[],a;for(a in t)!pf(rR,a)&&pf(t,a)&&am(i,a);for(;r.length>n;)pf(t,a=r[n++])&&(~eR(i,a)||am(i,a));return i}});var Sa=q(function(vY,sm){sm.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var jr=q(function(fm){var tR=vf(),nR=Sa(),iR=nR.concat("length","prototype");fm.f=Object.getOwnPropertyNames||function(r){return tR(r,iR)}});var Oa=q(function(cm){cm.f=Object.getOwnPropertySymbols});var hf=q(function(mY,lm){var oR=Ae(),aR=W(),uR=jr(),sR=Oa(),fR=oe(),cR=aR([].concat);lm.exports=oR("Reflect","ownKeys")||function(r){var t=uR.f(fR(r)),n=sR.f;return n?cR(t,n(r)):t}});var df=q(function(yY,vm){var pm=ue(),lR=hf(),pR=rr(),vR=Se();vm.exports=function(e,r,t){for(var n=lR(r),i=vR.f,a=pR.f,s=0;s<n.length;s++){var c=n[s];!pm(e,c)&&!(t&&pm(t,c))&&i(e,c,a(r,c))}}});var Zt=q(function(gY,hm){var hR=K(),dR=re(),mR=/#|\.prototype\./,Oi=function(e,r){var t=gR[yR(e)];return t==wR?!0:t==bR?!1:dR(r)?hR(r):!!r},yR=Oi.normalize=function(e){return String(e).replace(mR,".").toLowerCase()},gR=Oi.data={},bR=Oi.NATIVE="N",wR=Oi.POLYFILL="P";hm.exports=Oi});var M=q(function(bY,dm){var mf=X(),SR=rr().f,OR=wr(),_R=Oe(),PR=pa(),ER=df(),IR=Zt();dm.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a,s,c,l,p,m;if(n?s=mf:i?s=mf[t]||PR(t,{}):s=(mf[t]||{}).prototype,s)for(c in r){if(p=r[c],e.dontCallGetSet?(m=SR(s,c),l=m&&m.value):l=s[c],a=IR(n?c:t+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof p==typeof l)continue;ER(p,l)}(e.sham||l&&l.sham)&&OR(p,"sham",!0),_R(s,c,p,e)}}});var ct=q(function(wY,mm){var qR=ze(),TR=W();mm.exports=function(e){if(qR(e)==="Function")return TR(e)}});var en=q(function(SY,ym){"use strict";var kR=K();ym.exports=function(e,r){var t=[][e];return!!t&&kR(function(){t.call(null,r||function(){return 1},1)})}});var _a=q(function(OY,wm){var jR=ne(),LR=jR("toStringTag"),bm={};bm[LR]="z";wm.exports=String(bm)==="[object z]"});var _i=q(function(_Y,Sm){var CR=_a(),DR=re(),Pa=ze(),BR=ne(),MR=BR("toStringTag"),GR=Object,FR=Pa(function(){return arguments}())=="Arguments",UR=function(e,r){try{return e[r]}catch(t){}};Sm.exports=CR?Pa:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=UR(r=GR(e),MR))=="string"?t:FR?Pa(r):(n=Pa(r))=="Object"&&DR(r.callee)?"Arguments":n}});var he=q(function(PY,Om){var VR=_i(),zR=String;Om.exports=function(e){if(VR(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zR(e)}});var Pi=q(function(EY,_m){_m.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"});var Ei=q(function(IY,Em){var HR=W(),KR=Ke(),WR=he(),bf=Pi(),Pm=HR("".replace),YR=RegExp("^["+bf+"]+"),XR=RegExp("(^|[^"+bf+"])["+bf+"]+$"),gf=function(e){return function(r){var t=WR(KR(r));return e&1&&(t=Pm(t,YR,"")),e&2&&(t=Pm(t,XR,"$1")),t}};Em.exports={start:gf(1),end:gf(2),trim:gf(3)}});var Am=q(function(qY,Rm){var km=X(),QR=K(),JR=W(),ZR=he(),e1=Ei().trim,Im=Pi(),Ii=km.parseInt,qm=km.Symbol,Tm=qm&&qm.iterator,xm=/^[+-]?0x/i,r1=JR(xm.exec),t1=Ii(Im+"08")!==8||Ii(Im+"0x16")!==22||Tm&&!QR(function(){Ii(Object(Tm))});Rm.exports=t1?function(r,t){var n=e1(ZR(r));return Ii(n,t>>>0||(r1(xm,n)?16:10))}:Ii});var wf=q(function(TY,Nm){"use strict";var i1=oe();Nm.exports=function(){var e=i1(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}});var qi=q(function(kY,jm){var Sf=K(),o1=X(),Of=o1.RegExp,_f=Sf(function(){var e=Of("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),a1=_f||Sf(function(){return!Of("a","y").sticky}),u1=_f||Sf(function(){var e=Of("^r","gy");return e.lastIndex=2,e.exec("str")!=null});jm.exports={BROKEN_CARET:u1,MISSED_STICKY:a1,UNSUPPORTED_Y:_f}});var Ti=q(function(xY,Lm){var s1=vf(),f1=Sa();Lm.exports=Object.keys||function(r){return s1(r,f1)}});var Ea=q(function(Cm){var c1=ae(),l1=Xs(),p1=Se(),v1=oe(),h1=Le(),d1=Ti();Cm.f=c1&&!l1?Object.defineProperties:function(r,t){v1(r);for(var n=h1(t),i=d1(t),a=i.length,s=0,c;a>s;)p1.f(r,c=i[s++],n[c]);return r}});var Pf=q(function(AY,Dm){var m1=Ae();Dm.exports=m1("document","documentElement")});var Lr=q(function($Y,zm){var y1=oe(),g1=Ea(),Bm=Sa(),b1=Jt(),w1=Pf(),S1=bi(),O1=wi(),Mm=">",Gm="<",If="prototype",qf="script",Um=O1("IE_PROTO"),Ef=function(){},Vm=function(e){return Gm+qf+Mm+e+Gm+"/"+qf+Mm},Fm=function(e){e.write(Vm("")),e.close();var r=e.parentWindow.Object;return e=null,r},_1=function(){var e=S1("iframe"),r="java"+qf+":",t;return e.style.display="none",w1.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Vm("document.F=Object")),t.close(),t.F},Ia,qa=function(){try{Ia=new ActiveXObject("htmlfile")}catch(r){}qa=typeof document!="undefined"?document.domain&&Ia?Fm(Ia):_1():Fm(Ia);for(var e=Bm.length;e--;)delete qa[If][Bm[e]];return qa()};b1[Um]=!0;zm.exports=Object.create||function(r,t){var n;return r!==null?(Ef[If]=y1(r),n=new Ef,Ef[If]=null,n[Um]=r):n=qa(),t===void 0?n:g1.f(n,t)}});var Tf=q(function(NY,Hm){var P1=K(),E1=X(),I1=E1.RegExp;Hm.exports=P1(function(){var e=I1(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})});var kf=q(function(jY,Km){var q1=K(),T1=X(),k1=T1.RegExp;Km.exports=q1(function(){var e=k1("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})});var ki=q(function(LY,Ym){"use strict";var rn=ie(),ka=W(),x1=he(),R1=wf(),A1=qi(),$1=at(),N1=Lr(),j1=Ce().get,L1=Tf(),C1=kf(),D1=$1("native-string-replace",String.prototype.replace),Ta=RegExp.prototype.exec,Rf=Ta,B1=ka("".charAt),M1=ka("".indexOf),G1=ka("".replace),xf=ka("".slice),Af=function(){var e=/a/,r=/b*/g;return rn(Ta,e,"a"),rn(Ta,r,"a"),e.lastIndex!==0||r.lastIndex!==0}(),Wm=A1.BROKEN_CARET,$f=/()??/.exec("")[1]!==void 0,F1=Af||$f||Wm||L1||C1;F1&&(Rf=function(r){var t=this,n=j1(t),i=x1(r),a=n.raw,s,c,l,p,m,y,g;if(a)return a.lastIndex=t.lastIndex,s=rn(Rf,a,i),t.lastIndex=a.lastIndex,s;var b=n.groups,O=Wm&&t.sticky,x=rn(R1,t),T=t.source,E=0,P=i;if(O&&(x=G1(x,"y",""),M1(x,"g")===-1&&(x+="g"),P=xf(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&B1(i,t.lastIndex-1)!=="\n")&&(T="(?: "+T+")",P=" "+P,E++),c=new RegExp("^(?:"+T+")",x)),$f&&(c=new RegExp("^"+T+"$(?!\\s)",x)),Af&&(l=t.lastIndex),p=rn(Ta,O?c:t,P),O?p?(p.input=xf(p.input,E),p[0]=xf(p[0],E),p.index=t.lastIndex,t.lastIndex+=p[0].length):t.lastIndex=0:Af&&p&&(t.lastIndex=t.global?p.index+p[0].length:l),$f&&p&&p.length>1&&rn(D1,p[0],c,function(){for(m=1;m<arguments.length-2;m++)arguments[m]===void 0&&(p[m]=void 0)}),p&&b)for(p.groups=y=N1(null),m=0;m<b.length;m++)g=b[m],y[g[0]]=p[g[1]];return p});Ym.exports=Rf});var de=q(function(){"use strict";var U1=M(),Xm=ki();U1({target:"RegExp",proto:!0,forced:/./.exec!==Xm},{exec:Xm})});var Y=q(function(BY,Zm){Zm.exports=window.jQuery});var Cr=q(function(QY,hy){var vy=ct(),X1=We(),Q1=Kt(),J1=vy(vy.bind);hy.exports=function(e,r){return X1(e),r===void 0?e:Q1?J1(e,r):function(){return e.apply(r,arguments)}}});var Dr=q(function(JY,dy){var Z1=ze();dy.exports=Array.isArray||function(r){return Z1(r)=="Array"}});var Ri=q(function(ZY,wy){var eA=W(),rA=K(),my=re(),tA=_i(),nA=Ae(),iA=da(),yy=function(){},oA=[],gy=nA("Reflect","construct"),jf=/^\s*(?:class|function)\b/,aA=eA(jf.exec),uA=!jf.exec(yy),xi=function(r){if(!my(r))return!1;try{return gy(yy,oA,r),!0}catch(t){return!1}},by=function(r){if(!my(r))return!1;switch(tA(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return uA||!!aA(jf,iA(r))}catch(t){return!0}};by.sham=!0;wy.exports=!gy||rA(function(){var e;return xi(xi.call)||!xi(Object)||!xi(function(){e=!0})||e})?by:xi});var Py=q(function(e7,_y){var Sy=Dr(),sA=Ri(),fA=ce(),cA=ne(),lA=cA("species"),Oy=Array;_y.exports=function(e){var r;return Sy(e)&&(r=e.constructor,sA(r)&&(r===Oy||Sy(r.prototype))?r=void 0:fA(r)&&(r=r[lA],r===null&&(r=void 0))),r===void 0?Oy:r}});var Ai=q(function(r7,Ey){var pA=Py();Ey.exports=function(e,r){return new(pA(e))(r===0?0:r)}});var Mr=q(function(t7,qy){var vA=Cr(),hA=W(),dA=di(),mA=Ne(),yA=De(),gA=Ai(),Iy=hA([].push),Br=function(e){var r=e==1,t=e==2,n=e==3,i=e==4,a=e==6,s=e==7,c=e==5||a;return function(l,p,m,y){for(var g=mA(l),b=dA(g),O=vA(p,m),x=yA(b),T=0,E=y||gA,P=r?E(l,x):t||s?E(l,0):void 0,$,R;x>T;T++)if((c||T in b)&&($=b[T],R=O($,T,g),e))if(r)P[T]=R;else if(R)switch(e){case 3:return!0;case 5:return $;case 6:return T;case 2:Iy(P,$)}else switch(e){case 4:return!1;case 7:Iy(P,$)}return a?-1:n||i?i:P}};qy.exports={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}});var tn=q(function(n7,Ty){var bA=ne(),wA=Lr(),SA=Se().f,Lf=bA("unscopables"),Cf=Array.prototype;Cf[Lf]==null&&SA(Cf,Lf,{configurable:!0,value:wA(null)});Ty.exports=function(e){Cf[Lf][e]=!0}});var Ry=q(function(i7,xy){"use strict";var EA=_a(),IA=_i();xy.exports=EA?{}.toString:function(){return"[object "+IA(this)+"]"}});var $i=q(function(o7,Ly){"use strict";de();var Ay=ct(),$y=Oe(),xA=ki(),Ny=K(),jy=ne(),RA=wr(),AA=jy("species"),Bf=RegExp.prototype;Ly.exports=function(e,r,t,n){var i=jy(e),a=!Ny(function(){var p={};return p[i]=function(){return 7},""[e](p)!=7}),s=a&&!Ny(function(){var p=!1,m=/a/;return e==="split"&&(m={},m.constructor={},m.constructor[AA]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return p=!0,null},m[i](""),!p});if(!a||!s||t){var c=Ay(/./[i]),l=r(i,""[e],function(p,m,y,g,b){var O=Ay(p),x=m.exec;return x===xA||x===Bf.exec?a&&!b?{done:!0,value:c(m,y,g)}:{done:!0,value:O(y,m,g)}:{done:!1}});$y(String.prototype,e,l[0]),$y(Bf,i,l[1])}n&&RA(Bf[i],"sham",!0)}});var Gf=q(function(a7,By){var Mf=W(),$A=Sr(),NA=he(),jA=Ke(),LA=Mf("".charAt),Cy=Mf("".charCodeAt),CA=Mf("".slice),Dy=function(e){return function(r,t){var n=NA(jA(r)),i=$A(t),a=n.length,s,c;return i<0||i>=a?e?"":void 0:(s=Cy(n,i),s<55296||s>56319||i+1===a||(c=Cy(n,i+1))<56320||c>57343?e?LA(n,i):s:e?CA(n,i,i+2):(s-55296<<10)+(c-56320)+65536)}};By.exports={codeAt:Dy(!1),charAt:Dy(!0)}});var Ra=q(function(u7,My){"use strict";var DA=Gf().charAt;My.exports=function(e,r,t){return r+(t?DA(e,r).length:1)}});var Ni=q(function(s7,Fy){var Gy=ie(),BA=oe(),MA=re(),GA=ze(),FA=ki(),UA=TypeError;Fy.exports=function(e,r){var t=e.exec;if(MA(t)){var n=Gy(t,e,r);return n!==null&&BA(n),n}if(GA(e)==="RegExp")return Gy(FA,e,r);throw UA("RegExp#exec called on incompatible receiver")}});var Wy=q(function(f7,Ky){var Hy=X(),JA=K(),ZA=W(),e$=he(),r$=Ei().trim,t$=Pi(),n$=ZA("".charAt),Aa=Hy.parseFloat,Vy=Hy.Symbol,zy=Vy&&Vy.iterator,i$=1/Aa(t$+"-0")!==-1/0||zy&&!JA(function(){Aa(Object(zy))});Ky.exports=i$?function(r){var t=r$(e$(r)),n=Aa(t);return n===0&&n$(t,0)=="-"?-0:n}:Aa});var nn=q(function(c7,Zy){var a$=Kt(),Jy=Function.prototype,Xy=Jy.apply,Qy=Jy.call;Zy.exports=typeof Reflect=="object"&&Reflect.apply||(a$?Qy.bind(Xy):function(){return Qy.apply(Xy,arguments)})});var rg=q(function(l7,eg){var zf=W(),u$=Ne(),s$=Math.floor,Uf=zf("".charAt),f$=zf("".replace),Vf=zf("".slice),c$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l$=/\$([$&'`]|\d{1,2})/g;eg.exports=function(e,r,t,n,i,a){var s=t+e.length,c=n.length,l=l$;return i!==void 0&&(i=u$(i),l=c$),f$(a,l,function(p,m){var y;switch(Uf(m,0)){case"$":return"$";case"&":return e;case"`":return Vf(r,0,t);case"'":return Vf(r,s);case"<":y=i[Vf(m,1,-1)];break;default:var g=+m;if(g===0)return p;if(g>c){var b=s$(g/10);return b===0?p:b<=c?n[b-1]===void 0?Uf(m,1):n[b-1]+Uf(m,1):p}y=n[g-1]}return y===void 0?"":y})}});var Na=q(function(p7,ag){var A$=TypeError,$$=9007199254740991;ag.exports=function(e){if(e>$$)throw A$("Maximum allowed index exceeded");return e}});var pt=q(function(v7,ug){"use strict";var N$=gi(),j$=Se(),L$=Wt();ug.exports=function(e,r,t){var n=N$(r);n in e?j$.f(e,n,L$(0,t)):e[n]=t}});var an=q(function(h7,sg){var C$=K(),D$=ne(),B$=Yt(),M$=D$("species");sg.exports=function(e){return B$>=51||!C$(function(){var r=[],t=r.constructor={};return t[M$]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var Wf=q(function(d7,pg){pg.exports=Object.is||function(r,t){return r===t?r!==0||1/r===1/t:r!=r&&t!=t}});var ja=q(function(m7,dg){var uN=ce(),sN=ze(),fN=ne(),cN=fN("match");dg.exports=function(e){var r;return uN(e)&&((r=e[cN])!==void 0?!!r:sN(e)=="RegExp")}});var Yf=q(function(y7,mg){var lN=Ri(),pN=ot(),vN=TypeError;mg.exports=function(e){if(lN(e))return e;throw vN(pN(e)+" is not a constructor")}});var ji=q(function(g7,gg){var yg=oe(),hN=Yf(),dN=He(),mN=ne(),yN=mN("species");gg.exports=function(e,r){var t=yg(e).constructor,n;return t===void 0||dN(n=yg(t)[yN])?r:hN(n)}});var La=q(function(b7,wg){var bg=ft(),gN=De(),bN=pt(),wN=Array,SN=Math.max;wg.exports=function(e,r,t){for(var n=gN(e),i=bg(r,n),a=bg(t===void 0?n:t,n),s=wN(SN(a-i,0)),c=0;i<a;i++,c++)bN(s,c,e[i]);return s.length=c,s}});var Jf=q(function(w7,Ig){var CN=X();Ig.exports=CN});var Zf=q(function(qg){var DN=ne();qg.f=DN});var fn=q(function(O7,kg){var Tg=Jf(),BN=ue(),MN=Zf(),GN=Se().f;kg.exports=function(e){var r=Tg.Symbol||(Tg.Symbol={});BN(r,e)||GN(r,e,{value:MN.f(e)})}});var ec=q(function(_7,xg){var FN=ie(),UN=Ae(),VN=ne(),zN=Oe();xg.exports=function(){var e=UN("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=VN("toPrimitive");r&&!r[n]&&zN(r,n,function(i){return FN(t,this)},{arity:1})}});var Ag=q(function(P7,Rg){"use strict";var WN=oe(),YN=zs(),XN=TypeError;Rg.exports=function(e){if(WN(this),e==="string"||e==="default")e="string";else if(e!=="number")throw XN("Incorrect hint");return YN(this,e)}});var Ca=q(function(E7,Cg){var rj=ze(),tj=Le(),jg=jr().f,nj=La(),Lg=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ij=function(e){try{return jg(e)}catch(r){return nj(Lg)}};Cg.exports.f=function(r){return Lg&&rj(r)=="Window"?ij(r):jg(tj(r))}});var Gr=q(function(I7,Bg){var Dg=lf(),oj=Se();Bg.exports=function(e,r,t){return t.get&&Dg(t.get,r,{getter:!0}),t.set&&Dg(t.set,r,{setter:!0}),oj.f(e,r,t)}});var nr=q(function(q7,Gg){var aj=Se().f,uj=ue(),sj=ne(),Mg=sj("toStringTag");Gg.exports=function(e,r,t){e&&!t&&(e=e.prototype),e&&!uj(e,Mg)&&aj(e,Mg,{configurable:!0,value:r})}});var nb=q(function(){"use strict";var Da=M(),fc=X(),cc=ie(),fj=W(),cj=$e(),cn=ae(),ln=it(),lj=K(),ye=ue(),pj=br(),ic=oe(),Ba=Le(),lc=gi(),vj=he(),oc=Wt(),Bi=Lr(),Vg=Ti(),hj=jr(),zg=Ca(),dj=Oa(),Hg=rr(),Kg=Se(),mj=Ea(),Wg=ca(),rc=Oe(),yj=Gr(),pc=at(),gj=wi(),Yg=Jt(),Fg=yi(),bj=ne(),wj=Zf(),Sj=fn(),Oj=ec(),_j=nr(),Xg=Ce(),Ma=Mr().forEach,je=gj("hidden"),Ga="Symbol",Mi="prototype",Pj=Xg.set,Ug=Xg.getterFor(Ga),Ye=Object[Mi],ht=fc.Symbol,Di=ht&&ht[Mi],Ej=fc.TypeError,tc=fc.QObject,Qg=Hg.f,vt=Kg.f,Jg=zg.f,Ij=Wg.f,Zg=fj([].push),Or=pc("symbols"),Gi=pc("op-symbols"),qj=pc("wks"),ac=!tc||!tc[Mi]||!tc[Mi].findChild,uc=cn&&lj(function(){return Bi(vt({},"a",{get:function(){return vt(this,"a",{value:7}).a}})).a!=7})?function(e,r,t){var n=Qg(Ye,r);n&&delete Ye[r],vt(e,r,t),n&&e!==Ye&&vt(Ye,r,n)}:vt,nc=function(e,r){var t=Or[e]=Bi(Di);return Pj(t,{type:Ga,tag:e,description:r}),cn||(t.description=r),t},Fa=function(r,t,n){r===Ye&&Fa(Gi,t,n),ic(r);var i=lc(t);return ic(n),ye(Or,i)?(n.enumerable?(ye(r,je)&&r[je][i]&&(r[je][i]=!1),n=Bi(n,{enumerable:oc(0,!1)})):(ye(r,je)||vt(r,je,oc(1,{})),r[je][i]=!0),uc(r,i,n)):vt(r,i,n)},vc=function(r,t){ic(r);var n=Ba(t),i=Vg(n).concat(tb(n));return Ma(i,function(a){(!cn||cc(sc,n,a))&&Fa(r,a,n[a])}),r},Tj=function(r,t){return t===void 0?Bi(r):vc(Bi(r),t)},sc=function(r){var t=lc(r),n=cc(Ij,this,t);return this===Ye&&ye(Or,t)&&!ye(Gi,t)?!1:n||!ye(this,t)||!ye(Or,t)||ye(this,je)&&this[je][t]?n:!0},eb=function(r,t){var n=Ba(r),i=lc(t);if(!(n===Ye&&ye(Or,i)&&!ye(Gi,i))){var a=Qg(n,i);return a&&ye(Or,i)&&!(ye(n,je)&&n[je][i])&&(a.enumerable=!0),a}},rb=function(r){var t=Jg(Ba(r)),n=[];return Ma(t,function(i){!ye(Or,i)&&!ye(Yg,i)&&Zg(n,i)}),n},tb=function(e){var r=e===Ye,t=Jg(r?Gi:Ba(e)),n=[];return Ma(t,function(i){ye(Or,i)&&(!r||ye(Ye,i))&&Zg(n,Or[i])}),n};ln||(ht=function(){if(pj(Di,this))throw Ej("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:vj(arguments[0]),t=Fg(r),n=function(i){this===Ye&&cc(n,Gi,i),ye(this,je)&&ye(this[je],t)&&(this[je][t]=!1),uc(this,t,oc(1,i))};return cn&&ac&&uc(Ye,t,{configurable:!0,set:n}),nc(t,r)},Di=ht[Mi],rc(Di,"toString",function(){return Ug(this).tag}),rc(ht,"withoutSetter",function(e){return nc(Fg(e),e)}),Wg.f=sc,Kg.f=Fa,mj.f=vc,Hg.f=eb,hj.f=zg.f=rb,dj.f=tb,wj.f=function(e){return nc(bj(e),e)},cn&&(yj(Di,"description",{configurable:!0,get:function(){return Ug(this).description}}),cj||rc(Ye,"propertyIsEnumerable",sc,{unsafe:!0})));Da({global:!0,constructor:!0,wrap:!0,forced:!ln,sham:!ln},{Symbol:ht});Ma(Vg(qj),function(e){Sj(e)});Da({target:Ga,stat:!0,forced:!ln},{useSetter:function(){ac=!0},useSimple:function(){ac=!1}});Da({target:"Object",stat:!0,forced:!ln,sham:!cn},{create:Tj,defineProperty:Fa,defineProperties:vc,getOwnPropertyDescriptor:eb});Da({target:"Object",stat:!0,forced:!ln},{getOwnPropertyNames:rb});Oj();_j(ht,Ga);Yg[je]=!0});var hc=q(function(x7,ib){var kj=it();ib.exports=kj&&!!Symbol.for&&!!Symbol.keyFor});var ab=q(function(){var xj=M(),Rj=Ae(),Aj=ue(),$j=he(),ob=at(),Nj=hc(),dc=ob("string-to-symbol-registry"),jj=ob("symbol-to-string-registry");xj({target:"Symbol",stat:!0,forced:!Nj},{for:function(e){var r=$j(e);if(Aj(dc,r))return dc[r];var t=Rj("Symbol")(r);return dc[r]=t,jj[t]=r,t}})});var sb=q(function(){var Lj=M(),Cj=ue(),Dj=Xt(),Bj=ot(),Mj=at(),Gj=hc(),ub=Mj("symbol-to-string-registry");Lj({target:"Symbol",stat:!0,forced:!Gj},{keyFor:function(r){if(!Dj(r))throw TypeError(Bj(r)+" is not a symbol");if(Cj(ub,r))return ub[r]}})});var Fi=q(function(j7,fb){var Fj=W();fb.exports=Fj([].slice)});var hb=q(function(L7,vb){var Uj=W(),cb=Dr(),Vj=re(),lb=ze(),zj=he(),pb=Uj([].push);vb.exports=function(e){if(Vj(e))return e;if(!!cb(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?pb(t,i):(typeof i=="number"||lb(i)=="Number"||lb(i)=="String")&&pb(t,zj(i))}var a=t.length,s=!0;return function(c,l){if(s)return s=!1,l;if(cb(this))return l;for(var p=0;p<a;p++)if(t[p]===c)return l}}}});var pn=q(function(){var Hj=M(),Ob=Ae(),_b=nn(),Kj=ie(),Ui=W(),Pb=K(),db=re(),mb=Xt(),Eb=Fi(),Wj=hb(),Yj=it(),Xj=String,Fr=Ob("JSON","stringify"),Ua=Ui(/./.exec),yb=Ui("".charAt),Qj=Ui("".charCodeAt),Jj=Ui("".replace),Zj=Ui(1 .toString),eL=/[\uD800-\uDFFF]/g,gb=/^[\uD800-\uDBFF]$/,bb=/^[\uDC00-\uDFFF]$/,wb=!Yj||Pb(function(){var e=Ob("Symbol")();return Fr([e])!="[null]"||Fr({a:e})!="{}"||Fr(Object(e))!="{}"}),Sb=Pb(function(){return Fr("\uDF06\uD834")!=='"\\udf06\\ud834"'||Fr("\uDEAD")!=='"\\udead"'}),rL=function(e,r){var t=Eb(arguments),n=Wj(r);if(!(!db(n)&&(e===void 0||mb(e))))return t[1]=function(i,a){if(db(n)&&(a=Kj(n,this,Xj(i),a)),!mb(a))return a},_b(Fr,null,t)},tL=function(e,r,t){var n=yb(t,r-1),i=yb(t,r+1);return Ua(gb,e)&&!Ua(bb,i)||Ua(bb,e)&&!Ua(gb,n)?"\\u"+Zj(Qj(e,0),16):e};Fr&&Hj({target:"JSON",stat:!0,arity:3,forced:wb||Sb},{stringify:function(r,t,n){var i=Eb(arguments),a=_b(wb?rL:Fr,null,i);return Sb&&typeof a=="string"?Jj(a,eL,tL):a}})});var qb=q(function(){var nL=M(),iL=it(),oL=K(),Ib=Oa(),aL=Ne(),uL=!iL||oL(function(){Ib.f(1)});nL({target:"Object",stat:!0,forced:uL},{getOwnPropertySymbols:function(r){var t=Ib.f;return t?t(aL(r)):[]}})});var jb=q(function(G7,Nb){var yL=W(),gL=We();Nb.exports=function(e,r,t){try{return yL(gL(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Cb=q(function(F7,Lb){var bL=re(),wL=String,SL=TypeError;Lb.exports=function(e){if(typeof e=="object"||bL(e))return e;throw SL("Can't set "+wL(e)+" as a prototype")}});var vn=q(function(U7,Db){var OL=jb(),_L=oe(),PL=Cb();Db.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=OL(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return _L(i),PL(a),e?t(i,a):i.__proto__=a,i}}():void 0)});var za=q(function(V7,Mb){var EL=re(),IL=ce(),Bb=vn();Mb.exports=function(e,r,t){var n,i;return Bb&&EL(n=r.constructor)&&n!==t&&IL(i=n.prototype)&&i!==t.prototype&&Bb(e,i),e}});var yc=q(function(z7,Gb){var qL=W();Gb.exports=qL(1 .valueOf)});var dn=q(function(H7,Yb){var KL=ze();Yb.exports=typeof process!="undefined"&&KL(process)=="process"});var Hi=q(function(K7,Qb){"use strict";var WL=Ae(),YL=Gr(),XL=ne(),QL=ae(),Xb=XL("species");Qb.exports=function(e){var r=WL(e);QL&&r&&!r[Xb]&&YL(r,Xb,{configurable:!0,get:function(){return this}})}});var mn=q(function(W7,Jb){var JL=br(),ZL=TypeError;Jb.exports=function(e,r){if(JL(r,e))return e;throw ZL("Incorrect invocation")}});var ew=q(function(Y7,Zb){var eC=TypeError;Zb.exports=function(e,r){if(e<r)throw eC("Not enough arguments");return e}});var Oc=q(function(X7,rw){var rC=mi();rw.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(rC)});var Rc=q(function(Q7,cw){var Be=X(),tC=nn(),nC=Cr(),tw=re(),iC=ue(),fw=K(),nw=Pf(),oC=Fi(),iw=bi(),aC=ew(),uC=Oc(),sC=dn(),Tc=Be.setImmediate,kc=Be.clearImmediate,fC=Be.process,_c=Be.Dispatch,cC=Be.Function,ow=Be.MessageChannel,lC=Be.String,Pc=0,Ki={},aw="onreadystatechange",Wi,mt,Ec,Ic;fw(function(){Wi=Be.location});var xc=function(e){if(iC(Ki,e)){var r=Ki[e];delete Ki[e],r()}},qc=function(e){return function(){xc(e)}},uw=function(e){xc(e.data)},sw=function(e){Be.postMessage(lC(e),Wi.protocol+"//"+Wi.host)};(!Tc||!kc)&&(Tc=function(r){aC(arguments.length,1);var t=tw(r)?r:cC(r),n=oC(arguments,1);return Ki[++Pc]=function(){tC(t,void 0,n)},mt(Pc),Pc},kc=function(r){delete Ki[r]},sC?mt=function(e){fC.nextTick(qc(e))}:_c&&_c.now?mt=function(e){_c.now(qc(e))}:ow&&!uC?(Ec=new ow,Ic=Ec.port2,Ec.port1.onmessage=uw,mt=nC(Ic.postMessage,Ic)):Be.addEventListener&&tw(Be.postMessage)&&!Be.importScripts&&Wi&&Wi.protocol!=="file:"&&!fw(sw)?(mt=sw,Be.addEventListener("message",uw,!1)):aw in iw("script")?mt=function(e){nw.appendChild(iw("script"))[aw]=function(){nw.removeChild(this),xc(e)}}:mt=function(e){setTimeout(qc(e),0)});cw.exports={set:Tc,clear:kc}});var Ac=q(function(J7,pw){var lw=function(){this.head=null,this.tail=null};lw.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}};pw.exports=lw});var hw=q(function(Z7,vw){var pC=mi();vw.exports=/ipad|iphone|ipod/i.test(pC)&&typeof Pebble!="undefined"});var mw=q(function(e9,dw){var vC=mi();dw.exports=/web0s(?!.*chrome)/i.test(vC)});var Pw=q(function(r9,_w){var yt=X(),yw=Cr(),hC=rr().f,$c=Rc().set,dC=Ac(),mC=Oc(),yC=hw(),gC=mw(),Nc=dn(),gw=yt.MutationObserver||yt.WebKitMutationObserver,bw=yt.document,ww=yt.process,Wa=yt.Promise,Sw=hC(yt,"queueMicrotask"),Cc=Sw&&Sw.value,yn,jc,Lc,Ya,Ow;Cc||(Yi=new dC,Xi=function(){var e,r;for(Nc&&(e=ww.domain)&&e.exit();r=Yi.get();)try{r()}catch(t){throw Yi.head&&yn(),t}e&&e.enter()},!mC&&!Nc&&!gC&&gw&&bw?(jc=!0,Lc=bw.createTextNode(""),new gw(Xi).observe(Lc,{characterData:!0}),yn=function(){Lc.data=jc=!jc}):!yC&&Wa&&Wa.resolve?(Ya=Wa.resolve(void 0),Ya.constructor=Wa,Ow=yw(Ya.then,Ya),yn=function(){Ow(Xi)}):Nc?yn=function(){ww.nextTick(Xi)}:($c=yw($c,yt),yn=function(){$c(Xi)}),Cc=function(e){Yi.head||yn(),Yi.add(e)});var Yi,Xi;_w.exports=Cc});var Iw=q(function(t9,Ew){Ew.exports=function(e,r){try{arguments.length==1?console.error(e):console.error(e,r)}catch(t){}}});var Qi=q(function(n9,qw){qw.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}});var gt=q(function(i9,Tw){var bC=X();Tw.exports=bC.Promise});var Dc=q(function(o9,kw){kw.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"});var Rw=q(function(a9,xw){var wC=Dc(),SC=dn();xw.exports=!wC&&!SC&&typeof window=="object"&&typeof document=="object"});var gn=q(function(u9,Nw){var OC=X(),Ji=gt(),_C=re(),PC=Zt(),EC=da(),IC=ne(),qC=Rw(),TC=Dc(),kC=$e(),Bc=Yt(),Aw=Ji&&Ji.prototype,xC=IC("species"),Mc=!1,$w=_C(OC.PromiseRejectionEvent),RC=PC("Promise",function(){var e=EC(Ji),r=e!==String(Ji);if(!r&&Bc===66||kC&&!(Aw.catch&&Aw.finally))return!0;if(!Bc||Bc<51||!/native code/.test(e)){var t=new Ji(function(a){a(1)}),n=function(a){a(function(){},function(){})},i=t.constructor={};if(i[xC]=n,Mc=t.then(function(){})instanceof n,!Mc)return!0}return!r&&(qC||TC)&&!$w});Nw.exports={CONSTRUCTOR:RC,REJECTION_EVENT:$w,SUBCLASSING:Mc}});var bt=q(function(s9,Lw){"use strict";var jw=We(),AC=TypeError,$C=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw AC("Bad Promise constructor");r=n,t=i}),this.resolve=jw(r),this.reject=jw(t)};Lw.exports.f=function(e){return new $C(e)}});var rS=q(function(){"use strict";var NC=M(),jC=$e(),Za=dn(),Ur=X(),On=ie(),Cw=Oe(),Dw=vn(),LC=nr(),CC=Hi(),DC=We(),Ja=re(),BC=ce(),MC=mn(),GC=ji(),Uw=Rc().set,zc=Pw(),FC=Iw(),UC=Qi(),VC=Ac(),Vw=Ce(),eu=gt(),Hc=gn(),zw=bt(),ru="Promise",Hw=Hc.CONSTRUCTOR,zC=Hc.REJECTION_EVENT,HC=Hc.SUBCLASSING,Gc=Vw.getterFor(ru),KC=Vw.set,bn=eu&&eu.prototype,wt=eu,Xa=bn,Kw=Ur.TypeError,Fc=Ur.document,Kc=Ur.process,Uc=zw.f,WC=Uc,YC=!!(Fc&&Fc.createEvent&&Ur.dispatchEvent),Ww="unhandledrejection",XC="rejectionhandled",Bw=0,Yw=1,QC=2,Wc=1,Xw=2,Qa,Mw,JC,Gw,Qw=function(e){var r;return BC(e)&&Ja(r=e.then)?r:!1},Jw=function(e,r){var t=r.value,n=r.state==Yw,i=n?e.ok:e.fail,a=e.resolve,s=e.reject,c=e.domain,l,p,m;try{i?(n||(r.rejection===Xw&&eD(r),r.rejection=Wc),i===!0?l=t:(c&&c.enter(),l=i(t),c&&(c.exit(),m=!0)),l===e.promise?s(Kw("Promise-chain cycle")):(p=Qw(l))?On(p,l,a,s):a(l)):s(t)}catch(y){c&&!m&&c.exit(),s(y)}},Zw=function(e,r){e.notified||(e.notified=!0,zc(function(){for(var t=e.reactions,n;n=t.get();)Jw(n,e);e.notified=!1,r&&!e.rejection&&ZC(e)}))},eS=function(e,r,t){var n,i;YC?(n=Fc.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Ur.dispatchEvent(n)):n={promise:r,reason:t},!zC&&(i=Ur["on"+e])?i(n):e===Ww&&FC("Unhandled promise rejection",t)},ZC=function(e){On(Uw,Ur,function(){var r=e.facade,t=e.value,n=Fw(e),i;if(n&&(i=UC(function(){Za?Kc.emit("unhandledRejection",t,r):eS(Ww,r,t)}),e.rejection=Za||Fw(e)?Xw:Wc,i.error))throw i.value})},Fw=function(e){return e.rejection!==Wc&&!e.parent},eD=function(e){On(Uw,Ur,function(){var r=e.facade;Za?Kc.emit("rejectionHandled",r):eS(XC,r,e.value)})},wn=function(e,r,t){return function(n){e(r,n,t)}},Sn=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=QC,Zw(e,!0))},Vc=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw Kw("Promise can't be resolved itself");var n=Qw(r);n?zc(function(){var i={done:!1};try{On(n,r,wn(Vc,i,e),wn(Sn,i,e))}catch(a){Sn(i,a,e)}}):(e.value=r,e.state=Yw,Zw(e,!1))}catch(i){Sn({done:!1},i,e)}}};if(Hw&&(wt=function(r){MC(this,Xa),DC(r),On(Qa,this);var t=Gc(this);try{r(wn(Vc,t),wn(Sn,t))}catch(n){Sn(t,n)}},Xa=wt.prototype,Qa=function(r){KC(this,{type:ru,done:!1,notified:!1,parent:!1,reactions:new VC,rejection:!1,state:Bw,value:void 0})},Qa.prototype=Cw(Xa,"then",function(r,t){var n=Gc(this),i=Uc(GC(this,wt));return n.parent=!0,i.ok=Ja(r)?r:!0,i.fail=Ja(t)&&t,i.domain=Za?Kc.domain:void 0,n.state==Bw?n.reactions.add(i):zc(function(){Jw(i,n)}),i.promise}),Mw=function(){var e=new Qa,r=Gc(e);this.promise=e,this.resolve=wn(Vc,r),this.reject=wn(Sn,r)},zw.f=Uc=function(e){return e===wt||e===JC?new Mw(e):WC(e)},!jC&&Ja(eu)&&bn!==Object.prototype)){Gw=bn.then,HC||Cw(bn,"then",function(r,t){var n=this;return new wt(function(i,a){On(Gw,n,i,a)}).then(r,t)},{unsafe:!0});try{delete bn.constructor}catch(e){}Dw&&Dw(bn,Xa)}NC({global:!0,constructor:!0,wrap:!0,forced:Hw},{Promise:wt});LC(wt,ru,!1,!0);CC(ru)});var _n=q(function(l9,tS){tS.exports={}});var Yc=q(function(p9,nS){var rD=ne(),tD=_n(),nD=rD("iterator"),iD=Array.prototype;nS.exports=function(e){return e!==void 0&&(tD.Array===e||iD[nD]===e)}});var tu=q(function(v9,oS){var oD=_i(),iS=Nr(),aD=He(),uD=_n(),sD=ne(),fD=sD("iterator");oS.exports=function(e){if(!aD(e))return iS(e,fD)||iS(e,"@@iterator")||uD[oD(e)]}});var Xc=q(function(h9,aS){var cD=ie(),lD=We(),pD=oe(),vD=ot(),hD=tu(),dD=TypeError;aS.exports=function(e,r){var t=arguments.length<2?hD(e):r;if(lD(t))return pD(cD(t,e));throw dD(vD(e)+" is not iterable")}});var Qc=q(function(d9,sS){var mD=ie(),uS=oe(),yD=Nr();sS.exports=function(e,r,t){var n,i;uS(e);try{if(n=yD(e,"return"),!n){if(r==="throw")throw t;return t}n=mD(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return uS(n),t}});var St=q(function(m9,pS){var gD=Cr(),bD=ie(),wD=oe(),SD=ot(),OD=Yc(),_D=De(),fS=br(),PD=Xc(),ED=tu(),cS=Qc(),ID=TypeError,nu=function(e,r){this.stopped=e,this.result=r},lS=nu.prototype;pS.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),c=!!(t&&t.INTERRUPTED),l=gD(r,n),p,m,y,g,b,O,x,T=function(P){return p&&cS(p,"normal",P),new nu(!0,P)},E=function(P){return i?(wD(P),c?l(P[0],P[1],T):l(P[0],P[1])):c?l(P,T):l(P)};if(a)p=e.iterator;else if(s)p=e;else{if(m=ED(e),!m)throw ID(SD(e)+" is not iterable");if(OD(m)){for(y=0,g=_D(e);g>y;y++)if(b=E(e[y]),b&&fS(lS,b))return b;return new nu(!1)}p=PD(e,m)}for(O=a?e.next:p.next;!(x=bD(O,p)).done;){try{b=E(x.value)}catch(P){cS(p,"throw",P)}if(typeof b=="object"&&b&&fS(lS,b))return b}return new nu(!1)}});var iu=q(function(y9,mS){var qD=ne(),hS=qD("iterator"),dS=!1;try{vS=0,Jc={next:function(){return{done:!!vS++}},return:function(){dS=!0}},Jc[hS]=function(){return this},Array.from(Jc,function(){throw 2})}catch(e){}var vS,Jc;mS.exports=function(e,r){if(!r&&!dS)return!1;var t=!1;try{var n={};n[hS]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(i){}return t}});var ou=q(function(g9,yS){var TD=gt(),kD=iu(),xD=gn().CONSTRUCTOR;yS.exports=xD||!kD(function(e){TD.all(e).then(void 0,function(){})})});var gS=q(function(){"use strict";var RD=M(),AD=ie(),$D=We(),ND=bt(),jD=Qi(),LD=St(),CD=ou();RD({target:"Promise",stat:!0,forced:CD},{all:function(r){var t=this,n=ND.f(t),i=n.resolve,a=n.reject,s=jD(function(){var c=$D(t.resolve),l=[],p=0,m=1;LD(r,function(y){var g=p++,b=!1;m++,AD(c,t,y).then(function(O){b||(b=!0,l[g]=O,--m||i(l))},a)}),--m||i(l)});return s.error&&a(s.value),n.promise}})});var wS=q(function(){"use strict";var DD=M(),BD=$e(),MD=gn().CONSTRUCTOR,el=gt(),GD=Ae(),FD=re(),UD=Oe(),bS=el&&el.prototype;DD({target:"Promise",proto:!0,forced:MD,real:!0},{catch:function(e){return this.then(void 0,e)}});!BD&&FD(el)&&(Zc=GD("Promise").prototype.catch,bS.catch!==Zc&&UD(bS,"catch",Zc,{unsafe:!0}));var Zc});var SS=q(function(){"use strict";var VD=M(),zD=ie(),HD=We(),KD=bt(),WD=Qi(),YD=St(),XD=ou();VD({target:"Promise",stat:!0,forced:XD},{race:function(r){var t=this,n=KD.f(t),i=n.reject,a=WD(function(){var s=HD(t.resolve);YD(r,function(c){zD(s,t,c).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var OS=q(function(){"use strict";var QD=M(),JD=ie(),ZD=bt(),eB=gn().CONSTRUCTOR;QD({target:"Promise",stat:!0,forced:eB},{reject:function(r){var t=ZD.f(this);return JD(t.reject,void 0,r),t.promise}})});var rl=q(function(q9,_S){var rB=oe(),tB=ce(),nB=bt();_S.exports=function(e,r){if(rB(e),tB(r)&&r.constructor===e)return r;var t=nB.f(e),n=t.resolve;return n(r),t.promise}});var IS=q(function(){"use strict";var iB=M(),oB=Ae(),PS=$e(),aB=gt(),ES=gn().CONSTRUCTOR,uB=rl(),sB=oB("Promise"),fB=PS&&!ES;iB({target:"Promise",stat:!0,forced:PS||ES},{resolve:function(r){return uB(fB&&this===sB?aB:this,r)}})});var tl=q(function(x9,qS){var lB=K();qS.exports=!lB(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Pn=q(function(R9,kS){var pB=ue(),vB=re(),hB=Ne(),dB=wi(),mB=tl(),TS=dB("IE_PROTO"),nl=Object,yB=nl.prototype;kS.exports=mB?nl.getPrototypeOf:function(e){var r=hB(e);if(pB(r,TS))return r[TS];var t=r.constructor;return vB(t)&&r instanceof t?t.prototype:r instanceof nl?yB:null}});var ul=q(function(A9,AS){"use strict";var gB=K(),bB=re(),wB=ce(),SB=Lr(),xS=Pn(),OB=Oe(),_B=ne(),PB=$e(),al=_B("iterator"),RS=!1,Pr,il,ol;[].keys&&(ol=[].keys(),"next"in ol?(il=xS(xS(ol)),il!==Object.prototype&&(Pr=il)):RS=!0);var EB=!wB(Pr)||gB(function(){var e={};return Pr[al].call(e)!==e});EB?Pr={}:PB&&(Pr=SB(Pr));bB(Pr[al])||OB(Pr,al,function(){return this});AS.exports={IteratorPrototype:Pr,BUGGY_SAFARI_ITERATORS:RS}});var NS=q(function($9,$S){"use strict";var IB=ul().IteratorPrototype,qB=Lr(),TB=Wt(),kB=nr(),xB=_n(),RB=function(){return this};$S.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=qB(IB,{next:TB(+!n,t)}),kB(e,i,!1,!0),xB[i]=RB,e}});var su=q(function(N9,VS){"use strict";var AB=M(),$B=ie(),au=$e(),FS=ut(),NB=re(),jB=NS(),jS=Pn(),LS=vn(),LB=nr(),CB=wr(),sl=Oe(),DB=ne(),CS=_n(),US=ul(),BB=FS.PROPER,MB=FS.CONFIGURABLE,DS=US.IteratorPrototype,uu=US.BUGGY_SAFARI_ITERATORS,Zi=DB("iterator"),BS="keys",eo="values",MS="entries",GS=function(){return this};VS.exports=function(e,r,t,n,i,a,s){jB(t,r,n);var c=function(E){if(E===i&&g)return g;if(!uu&&E in m)return m[E];switch(E){case BS:return function(){return new t(this,E)};case eo:return function(){return new t(this,E)};case MS:return function(){return new t(this,E)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,m=e.prototype,y=m[Zi]||m["@@iterator"]||i&&m[i],g=!uu&&y||c(i),b=r=="Array"&&m.entries||y,O,x,T;if(b&&(O=jS(b.call(new e)),O!==Object.prototype&&O.next&&(!au&&jS(O)!==DS&&(LS?LS(O,DS):NB(O[Zi])||sl(O,Zi,GS)),LB(O,l,!0,!0),au&&(CS[l]=GS))),BB&&i==eo&&y&&y.name!==eo&&(!au&&MB?CB(m,"name",eo):(p=!0,g=function(){return $B(y,this)})),i)if(x={values:c(eo),keys:a?g:c(BS),entries:c(MS)},s)for(T in x)(uu||p||!(T in m))&&sl(m,T,x[T]);else AB({target:r,proto:!0,forced:uu||p},x);return(!au||s)&&m[Zi]!==g&&sl(m,Zi,g,{name:i}),CS[r]=g,x}});var fu=q(function(j9,zS){zS.exports=function(e,r){return{value:e,done:r}}});var V=q(function(L9,XS){"use strict";var GB=Le(),fl=tn(),HS=_n(),WS=Ce(),FB=Se().f,UB=su(),cu=fu(),VB=$e(),zB=ae(),YS="Array Iterator",HB=WS.set,KB=WS.getterFor(YS);XS.exports=UB(Array,"Array",function(e,r){HB(this,{type:YS,target:GB(e),index:0,kind:r})},function(){var e=KB(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,cu(void 0,!0)):t=="keys"?cu(n,!1):t=="values"?cu(r[n],!1):cu([n,r[n]],!1)},"values");var KS=HS.Arguments=HS.Array;fl("keys");fl("values");fl("entries");if(!VB&&zB&&KS.name!=="values")try{FB(KS,"name",{value:"values"})}catch(e){}});var cl=q(function(C9,e0){e0.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var pl=q(function(D9,t0){var ZB=bi(),ll=ZB("span").classList,r0=ll&&ll.constructor&&ll.constructor.prototype;t0.exports=r0===Object.prototype?void 0:r0});var ml=q(function(B9,f0){"use strict";var v2=Mr().forEach,h2=en(),d2=h2("forEach");f0.exports=d2?[].forEach:function(r){return v2(this,r,arguments.length>1?arguments[1]:void 0)}});var bl=q(function(M9,S0){var U2=ie(),V2=ue(),z2=br(),H2=wf(),w0=RegExp.prototype;S0.exports=function(e){var r=e.flags;return r===void 0&&!("flags"in w0)&&!V2(e,"flags")&&z2(w0,e)?U2(H2,e):r}});var q0=q(function(G9,I0){"use strict";var iM=ae(),oM=Dr(),aM=TypeError,uM=Object.getOwnPropertyDescriptor,sM=iM&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();I0.exports=sM?function(e,r){if(oM(e)&&!uM(e,"length").writable)throw aM("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r}});var x0=q(function(F9,k0){"use strict";var T0=ot(),fM=TypeError;k0.exports=function(e,r){if(!delete e[r])throw fM("Cannot delete property "+T0(r)+" of "+T0(e))}});var W0=q(function($X,K0){"use strict";var z0=W(),CM=We(),DM=ce(),BM=ue(),V0=Fi(),MM=Kt(),H0=Function,GM=z0([].concat),FM=z0([].join),xl={},UM=function(e,r,t){if(!BM(xl,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";xl[r]=H0("C,a","return new C("+FM(n,",")+")")}return xl[r](e,t)};K0.exports=MM?H0.bind:function(r){var t=CM(this),n=t.prototype,i=V0(arguments,1),a=function(){var c=GM(i,V0(arguments));return this instanceof a?UM(t,c.length,c):t.apply(r,c)};return DM(n)&&(a.prototype=n),a}});var sO=q(function(gQ,uO){var dG=ut().PROPER,mG=K(),oO=Pi(),aO="\u200B\x85\u180E";uO.exports=function(e){return mG(function(){return!!oO[e]()||aO[e]()!==aO||dG&&oO[e].name!==e})}});var OO=q(function(_J,SO){var VG=oe(),zG=Qc();SO.exports=function(e,r,t,n){try{return n?r(VG(t)[0],t[1]):r(t)}catch(i){zG(e,"throw",i)}}});var IO=q(function(PJ,EO){"use strict";var HG=Cr(),KG=ie(),WG=Ne(),YG=OO(),XG=Yc(),QG=Ri(),JG=De(),_O=pt(),ZG=Xc(),eF=tu(),PO=Array;EO.exports=function(r){var t=WG(r),n=QG(this),i=arguments.length,a=i>1?arguments[1]:void 0,s=a!==void 0;s&&(a=HG(a,i>2?arguments[2]:void 0));var c=eF(t),l=0,p,m,y,g,b,O;if(c&&!(this===PO&&XG(c)))for(g=ZG(t,c),b=g.next,m=n?new this:[];!(y=KG(b,g)).done;l++)O=s?YG(g,a,[y.value,l],!0):y.value,_O(m,l,O);else for(p=JG(t),m=n?new this(p):PO(p);p>l;l++)O=s?a(t[l],l):t[l],_O(m,l,O);return m.length=l,m}});var JO=q(function(CZ,QO){var XO=ue();QO.exports=function(e){return e!==void 0&&(XO(e,"value")||XO(e,"writable"))}});var sp=q(function(coe,H_){var zV=ae(),z_=W(),HV=Ti(),KV=Le(),WV=ca().f,YV=z_(WV),XV=z_([].push),V_=function(e){return function(r){for(var t=KV(r),n=HV(t),i=n.length,a=0,s=[],c;i>a;)c=n[a++],(!zV||YV(t,c))&&XV(s,e?[c,t[c]]:t[c]);return s}};H_.exports={entries:V_(!0),values:V_(!1)}});var Uu=q(function(Fse,PP){var SH=K();PP.exports=!SH(function(){return Object.isExtensible(Object.preventExtensions({}))})});var IP=q(function(Use,EP){var OH=K();EP.exports=OH(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var kP=q(function(Vse,TP){var _H=K(),PH=ce(),EH=ze(),qP=IP(),Vu=Object.isExtensible,IH=_H(function(){Vu(1)});TP.exports=IH||qP?function(r){return!PH(r)||qP&&EH(r)=="ArrayBuffer"?!1:Vu?Vu(r):!0}:Vu});var Qn=q(function(zse,AP){var qH=M(),TH=W(),kH=Jt(),xH=ce(),xp=ue(),RH=Se().f,xP=jr(),AH=Ca(),Rp=kP(),$H=yi(),NH=Uu(),RP=!1,Tr=$H("meta"),jH=0,Ap=function(e){RH(e,Tr,{value:{objectID:"O"+jH++,weakData:{}}})},LH=function(e,r){if(!xH(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!xp(e,Tr)){if(!Rp(e))return"F";if(!r)return"E";Ap(e)}return e[Tr].objectID},CH=function(e,r){if(!xp(e,Tr)){if(!Rp(e))return!0;if(!r)return!1;Ap(e)}return e[Tr].weakData},DH=function(e){return NH&&RP&&Rp(e)&&!xp(e,Tr)&&Ap(e),e},BH=function(){MH.enable=function(){},RP=!0;var e=xP.f,r=TH([].splice),t={};t[Tr]=1,e(t).length&&(xP.f=function(n){for(var i=e(n),a=0,s=i.length;a<s;a++)if(i[a]===Tr){r(i,a,1);break}return i},qH({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AH.f}))},MH=AP.exports={enable:BH,fastKey:LH,getWeakData:CH,onFreeze:DH};kH[Tr]=!0});var Io=q(function(Hse,NP){"use strict";var KH=M(),WH=X(),YH=W(),$P=Zt(),XH=Oe(),QH=Qn(),JH=St(),ZH=mn(),e8=re(),r8=He(),Np=ce(),jp=K(),t8=iu(),n8=nr(),i8=za();NP.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=n?"set":"add",s=WH[e],c=s&&s.prototype,l=s,p={},m=function(E){var P=YH(c[E]);XH(c,E,E=="add"?function(R){return P(this,R===0?0:R),this}:E=="delete"?function($){return i&&!Np($)?!1:P(this,$===0?0:$)}:E=="get"?function(R){return i&&!Np(R)?void 0:P(this,R===0?0:R)}:E=="has"?function(R){return i&&!Np(R)?!1:P(this,R===0?0:R)}:function(R,j){return P(this,R===0?0:R,j),this})},y=$P(e,!e8(s)||!(i||c.forEach&&!jp(function(){new s().entries().next()})));if(y)l=t.getConstructor(r,e,n,a),QH.enable();else if($P(e,!0)){var g=new l,b=g[a](i?{}:-0,1)!=g,O=jp(function(){g.has(1)}),x=t8(function(E){new s(E)}),T=!i&&jp(function(){for(var E=new s,P=5;P--;)E[a](P,P);return!E.has(-0)});x||(l=r(function(E,P){ZH(E,c);var $=i8(new s,E,l);return r8(P)||JH(P,$[a],{that:$,AS_ENTRIES:n}),$}),l.prototype=c,c.constructor=l),(O||T)&&(m("delete"),m("has"),n&&m("get")),(T||b)&&m(a),i&&c.clear&&delete c.clear}return p[e]=l,KH({global:!0,constructor:!0,forced:l!=s},p),n8(l,e),i||t.setStrong(l,e,n),l}});var qo=q(function(Kse,jP){var o8=Oe();jP.exports=function(e,r,t){for(var n in r)o8(e,n,r[n],t);return e}});var Cp=q(function(Wse,MP){"use strict";var a8=Lr(),u8=Gr(),LP=qo(),s8=Cr(),f8=mn(),c8=He(),l8=St(),p8=su(),zu=fu(),v8=Hi(),To=ae(),CP=Qn().fastKey,BP=Ce(),DP=BP.set,Lp=BP.getterFor;MP.exports={getConstructor:function(e,r,t,n){var i=e(function(p,m){f8(p,a),DP(p,{type:r,index:a8(null),first:void 0,last:void 0,size:0}),To||(p.size=0),c8(m)||l8(m,p[n],{that:p,AS_ENTRIES:t})}),a=i.prototype,s=Lp(r),c=function(p,m,y){var g=s(p),b=l(p,m),O,x;return b?b.value=y:(g.last=b={index:x=CP(m,!0),key:m,value:y,previous:O=g.last,next:void 0,removed:!1},g.first||(g.first=b),O&&(O.next=b),To?g.size++:p.size++,x!=="F"&&(g.index[x]=b)),p},l=function(p,m){var y=s(p),g=CP(m),b;if(g!=="F")return y.index[g];for(b=y.first;b;b=b.next)if(b.key==m)return b};return LP(a,{clear:function(){for(var m=this,y=s(m),g=y.index,b=y.first;b;)b.removed=!0,b.previous&&(b.previous=b.previous.next=void 0),delete g[b.index],b=b.next;y.first=y.last=void 0,To?y.size=0:m.size=0},delete:function(p){var m=this,y=s(m),g=l(m,p);if(g){var b=g.next,O=g.previous;delete y.index[g.index],g.removed=!0,O&&(O.next=b),b&&(b.previous=O),y.first==g&&(y.first=b),y.last==g&&(y.last=O),To?y.size--:m.size--}return!!g},forEach:function(m){for(var y=s(this),g=s8(m,arguments.length>1?arguments[1]:void 0),b;b=b?b.next:y.first;)for(g(b.value,b.key,this);b&&b.removed;)b=b.previous},has:function(m){return!!l(this,m)}}),LP(a,t?{get:function(m){var y=l(this,m);return y&&y.value},set:function(m,y){return c(this,m===0?0:m,y)}}:{add:function(m){return c(this,m=m===0?0:m,m)}}),To&&u8(a,"size",{configurable:!0,get:function(){return s(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=Lp(r),a=Lp(n);p8(e,r,function(s,c){DP(this,{type:n,target:s,state:i(s),kind:c,last:void 0})},function(){for(var s=a(this),c=s.kind,l=s.last;l&&l.removed;)l=l.previous;return!s.target||!(s.last=l=l?l.next:s.state.first)?(s.target=void 0,zu(void 0,!0)):c=="keys"?zu(l.key,!1):c=="values"?zu(l.value,!1):zu([l.key,l.value],!1)},t?"entries":"values",!t,!0),v8(r)}}});var GP=q(function(){"use strict";var h8=Io(),d8=Cp();h8("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},d8)});var Gp=q(function(Qse,KP){"use strict";var _8=W(),FP=qo(),Hu=Qn().getWeakData,P8=mn(),E8=oe(),I8=He(),Bp=ce(),q8=St(),VP=Mr(),UP=ue(),zP=Ce(),T8=zP.set,k8=zP.getterFor,x8=VP.find,R8=VP.findIndex,A8=_8([].splice),$8=0,Ku=function(e){return e.frozen||(e.frozen=new HP)},HP=function(){this.entries=[]},Mp=function(e,r){return x8(e.entries,function(t){return t[0]===r})};HP.prototype={get:function(e){var r=Mp(this,e);if(r)return r[1]},has:function(e){return!!Mp(this,e)},set:function(e,r){var t=Mp(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=R8(this.entries,function(t){return t[0]===e});return~r&&A8(this.entries,r,1),!!~r}};KP.exports={getConstructor:function(e,r,t,n){var i=e(function(l,p){P8(l,a),T8(l,{type:r,id:$8++,frozen:void 0}),I8(p)||q8(p,l[n],{that:l,AS_ENTRIES:t})}),a=i.prototype,s=k8(r),c=function(l,p,m){var y=s(l),g=Hu(E8(p),!0);return g===!0?Ku(y).set(p,m):g[y.id]=m,l};return FP(a,{delete:function(l){var p=s(this);if(!Bp(l))return!1;var m=Hu(l);return m===!0?Ku(p).delete(l):m&&UP(m,p.id)&&delete m[p.id]},has:function(p){var m=s(this);if(!Bp(p))return!1;var y=Hu(p);return y===!0?Ku(m).has(p):y&&UP(y,m.id)}}),FP(a,t?{get:function(p){var m=s(this);if(Bp(p)){var y=Hu(p);return y===!0?Ku(m).get(p):y?y[m.id]:void 0}},set:function(p,m){return c(this,p,m)}}:{add:function(p){return c(this,p,!0)}}),i}}});var nE=q(function(){"use strict";var N8=Uu(),WP=X(),Qu=W(),YP=qo(),j8=Qn(),L8=Io(),JP=Gp(),Wu=ce(),Yu=Ce().enforce,C8=K(),D8=of(),Ro=Object,B8=Array.isArray,Xu=Ro.isExtensible,ZP=Ro.isFrozen,M8=Ro.isSealed,eE=Ro.freeze,G8=Ro.seal,XP={},QP={},F8=!WP.ActiveXObject&&"ActiveXObject"in WP,ko,rE=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},tE=L8("WeakMap",rE,JP),Jn=tE.prototype,Ju=Qu(Jn.set),U8=function(){return N8&&C8(function(){var e=eE([]);return Ju(new tE,e,1),!ZP(e)})};D8&&(F8?(ko=JP.getConstructor(rE,"WeakMap",!0),j8.enable(),Fp=Qu(Jn.delete),xo=Qu(Jn.has),Up=Qu(Jn.get),YP(Jn,{delete:function(e){if(Wu(e)&&!Xu(e)){var r=Yu(this);return r.frozen||(r.frozen=new ko),Fp(this,e)||r.frozen.delete(e)}return Fp(this,e)},has:function(r){if(Wu(r)&&!Xu(r)){var t=Yu(this);return t.frozen||(t.frozen=new ko),xo(this,r)||t.frozen.has(r)}return xo(this,r)},get:function(r){if(Wu(r)&&!Xu(r)){var t=Yu(this);return t.frozen||(t.frozen=new ko),xo(this,r)?Up(this,r):t.frozen.get(r)}return Up(this,r)},set:function(r,t){if(Wu(r)&&!Xu(r)){var n=Yu(this);n.frozen||(n.frozen=new ko),xo(this,r)?Ju(this,r,t):n.frozen.set(r,t)}else Ju(this,r,t);return this}})):U8()&&YP(Jn,{set:function(r,t){var n;return B8(r)&&(ZP(r)?n=XP:M8(r)&&(n=QP)),Ju(this,r,t),n==XP&&eE(r),n==QP&&G8(r),this}}));var Fp,xo,Up});var iE=q(function(){"use strict";var V8=Io(),z8=Cp();V8("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},z8)});var uE=q(function(tfe,aE){"use strict";var H8=Dr(),K8=De(),W8=Na(),Y8=Cr(),oE=function(e,r,t,n,i,a,s,c){for(var l=i,p=0,m=s?Y8(s,c):!1,y,g;p<n;)p in t&&(y=m?m(t[p],p,r):t[p],a>0&&H8(y)?(g=K8(y),l=oE(e,r,y,g,l,a-1)-1):(W8(l+1),e[l]=y),l++),p++;return l};aE.exports=oE});var cE=q(function(nfe,fE){var nK=We(),iK=Ne(),oK=di(),aK=De(),uK=TypeError,sE=function(e){return function(r,t,n,i){nK(t);var a=iK(r),s=oK(a),c=aK(a),l=e?c-1:0,p=e?-1:1;if(n<2)for(;;){if(l in s){i=s[l],l+=p;break}if(l+=p,e?l<0:c<=l)throw uK("Reduce of empty array with no initial value")}for(;e?l>=0:c>l;l+=p)l in s&&(i=t(i,s[l],l,a));return i}};fE.exports={left:sE(!1),right:sE(!0)}});var PE=q(function(mce,_E){var FK=Se().f;_E.exports=function(e,r,t){t in e||FK(e,t,{configurable:!0,get:function(){return r[t]},set:function(n){r[t]=n}})}});var as=q(function(yce,NE){var b3=ja(),w3=TypeError;NE.exports=function(e){if(b3(e))throw w3("The method doesn't accept regular expressions");return e}});var us=q(function(gce,jE){var S3=ne(),O3=S3("match");jE.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[O3]=!1,"/./"[e](r)}catch(n){}}return!1}});var av=q(function(bce,zE){"use strict";var U3=Ne(),VE=ft(),V3=De();zE.exports=function(r){for(var t=U3(this),n=V3(t),i=arguments.length,a=VE(i>1?arguments[1]:void 0,n),s=i>2?arguments[2]:void 0,c=s===void 0?n:VE(s,n);c>a;)t[a++]=r;return t}});var oh=q(function(Pye,fq){fq.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var lq=q(function(Eye,cq){var $W=Sr(),NW=lr(),jW=RangeError;cq.exports=function(e){if(e===void 0)return 0;var r=$W(e),t=NW(r);if(r!==t)throw jW("Wrong length or index");return t}});var vq=q(function(Iye,pq){var LW=Array,CW=Math.abs,Ar=Math.pow,DW=Math.floor,BW=Math.log,MW=Math.LN2,GW=function(e,r,t){var n=LW(t),i=t*8-r-1,a=(1<<i)-1,s=a>>1,c=r===23?Ar(2,-24)-Ar(2,-77):0,l=e<0||e===0&&1/e<0?1:0,p=0,m,y,g;for(e=CW(e),e!=e||e===1/0?(y=e!=e?1:0,m=a):(m=DW(BW(e)/MW),g=Ar(2,-m),e*g<1&&(m--,g*=2),m+s>=1?e+=c/g:e+=c*Ar(2,1-s),e*g>=2&&(m++,g/=2),m+s>=a?(y=0,m=a):m+s>=1?(y=(e*g-1)*Ar(2,r),m=m+s):(y=e*Ar(2,s-1)*Ar(2,r),m=0));r>=8;)n[p++]=y&255,y/=256,r-=8;for(m=m<<r|y,i+=r;i>0;)n[p++]=m&255,m/=256,i-=8;return n[--p]|=l*128,n},FW=function(e,r){var t=e.length,n=t*8-r-1,i=(1<<n)-1,a=i>>1,s=n-7,c=t-1,l=e[c--],p=l&127,m;for(l>>=7;s>0;)p=p*256+e[c--],s-=8;for(m=p&(1<<-s)-1,p>>=-s,s+=r;s>0;)m=m*256+e[c--],s-=8;if(p===0)p=1-a;else{if(p===i)return m?NaN:l?-1/0:1/0;m=m+Ar(2,r),p=p-a}return(l?-1:1)*m*Ar(2,p-r)};pq.exports={pack:GW,unpack:FW}});var Ts=q(function(qye,Rq){"use strict";var Is=X(),ph=W(),ah=ae(),UW=oh(),Iq=ut(),hq=wr(),VW=Gr(),dq=qo(),uh=K(),Ss=mn(),zW=Sr(),HW=lr(),Ps=lq(),qq=vq(),KW=Pn(),mq=vn(),WW=jr().f,YW=av(),XW=La(),Tq=nr(),vh=Ce(),QW=Iq.PROPER,yq=Iq.CONFIGURABLE,si="ArrayBuffer",qs="DataView",fi="prototype",JW="Wrong length",kq="Wrong index",gq=vh.getterFor(si),oa=vh.getterFor(qs),bq=vh.set,Ze=Is[si],Ue=Ze,ui=Ue&&Ue[fi],gr=Is[qs],Vt=gr&&gr[fi],wq=Object.prototype,ZW=Is.Array,Es=Is.RangeError,e6=ph(YW),r6=ph([].reverse),xq=qq.pack,Sq=qq.unpack,Oq=function(e){return[e&255]},_q=function(e){return[e&255,e>>8&255]},Pq=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},Eq=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},t6=function(e){return xq(e,23,4)},n6=function(e){return xq(e,52,8)},Os=function(e,r,t){VW(e[fi],r,{configurable:!0,get:function(){return t(this)[r]}})},tt=function(e,r,t,n){var i=Ps(t),a=oa(e);if(i+r>a.byteLength)throw Es(kq);var s=a.bytes,c=i+a.byteOffset,l=XW(s,c,c+r);return n?l:r6(l)},nt=function(e,r,t,n,i,a){var s=Ps(t),c=oa(e);if(s+r>c.byteLength)throw Es(kq);for(var l=c.bytes,p=s+c.byteOffset,m=n(+i),y=0;y<r;y++)l[p+y]=m[a?y:r-y-1]};if(!UW)Ue=function(r){Ss(this,ui);var t=Ps(r);bq(this,{type:si,bytes:e6(ZW(t),0),byteLength:t}),ah||(this.byteLength=t,this.detached=!1)},ui=Ue[fi],gr=function(r,t,n){Ss(this,Vt),Ss(r,ui);var i=gq(r),a=i.byteLength,s=zW(t);if(s<0||s>a)throw Es("Wrong offset");if(n=n===void 0?a-s:HW(n),s+n>a)throw Es(JW);bq(this,{type:qs,buffer:r,byteLength:n,byteOffset:s,bytes:i.bytes}),ah||(this.buffer=r,this.byteLength=n,this.byteOffset=s)},Vt=gr[fi],ah&&(Os(Ue,"byteLength",gq),Os(gr,"buffer",oa),Os(gr,"byteLength",oa),Os(gr,"byteOffset",oa)),dq(Vt,{getInt8:function(r){return tt(this,1,r)[0]<<24>>24},getUint8:function(r){return tt(this,1,r)[0]},getInt16:function(r){var t=tt(this,2,r,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(r){var t=tt(this,2,r,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(r){return Eq(tt(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return Eq(tt(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return Sq(tt(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return Sq(tt(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,t){nt(this,1,r,Oq,t)},setUint8:function(r,t){nt(this,1,r,Oq,t)},setInt16:function(r,t){nt(this,2,r,_q,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,t){nt(this,2,r,_q,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,t){nt(this,4,r,Pq,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,t){nt(this,4,r,Pq,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,t){nt(this,4,r,t6,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,t){nt(this,8,r,n6,t,arguments.length>2?arguments[2]:void 0)}});else{if(sh=QW&&Ze.name!==si,!uh(function(){Ze(1)})||!uh(function(){new Ze(-1)})||uh(function(){return new Ze,new Ze(1.5),new Ze(NaN),Ze.length!=1||sh&&!yq})){for(Ue=function(r){return Ss(this,ui),new Ze(Ps(r))},Ue[fi]=ui,fh=WW(Ze),ch=0;fh.length>ch;)(_s=fh[ch++])in Ue||hq(Ue,_s,Ze[_s]);ui.constructor=Ue}else sh&&yq&&hq(Ze,"name",si);mq&&KW(Vt)!==wq&&mq(Vt,wq),ia=new gr(new Ue(2)),lh=ph(Vt.setInt8),ia.setInt8(0,2147483648),ia.setInt8(1,2147483649),(ia.getInt8(0)||!ia.getInt8(1))&&dq(Vt,{setInt8:function(r,t){lh(this,r,t<<24>>24)},setUint8:function(r,t){lh(this,r,t<<24>>24)}},{unsafe:!0})}var sh,fh,ch,_s,ia,lh;Tq(Ue,si);Tq(gr,qs);Rq.exports={ArrayBuffer:Ue,DataView:gr}});var Dq=q(function(){var m6=M(),y6=Ts(),g6=oh();m6({global:!0,constructor:!0,forced:!g6},{DataView:y6.DataView})});var zq=q(function(){"use strict";var N6=Io(),j6=Gp();N6("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},j6)});var xR=M(),RR=ct(),AR=wa().indexOf,$R=en(),yf=RR([].indexOf),gm=!!yf&&1/yf([1],1,-0)<0,NR=gm||!$R("indexOf");xR({target:"Array",proto:!0,forced:NR},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return gm?yf(this,r,t)||0:AR(this,r,t)}});var n1=M(),$m=Am();n1({global:!0,forced:parseInt!=$m},{parseInt:$m});var VY=N(de());de();var V1=M(),Qm=ie(),z1=re(),Jm=oe(),H1=he(),K1=function(){var e=!1,r=/[ac]/;return r.exec=function(){return e=!0,/./.exec.apply(this,arguments)},r.test("abc")===!0&&e}(),W1=/./.test;V1({target:"RegExp",proto:!0,forced:!K1},{test:function(e){var r=Jm(this),t=H1(e),n=r.exec;if(!z1(n))return Qm(W1,r,t);var i=Qm(n,r,t);return i===null?!1:(Jm(i),!0)}});var xa=N(Y());var ey=!1,ry=!1,ty=-1;function Nf(e){ey=e}function ny(e){ry=e}function iy(e){ty=e}function oy(){return ey}function lt(){return ry}function ay(){return ty}var Te;function uy(e){Te=e}function Y1(){var e=Te.indexOf("MSIE ");if(lt()&&e>0)return parseInt(Te.substring(e+5,Te.indexOf(".",e)),10);var r=Te.indexOf("Trident/");if(r>0){var t=Te.indexOf("rv:");return parseInt(Te.substring(t+3,Te.indexOf(".",t)),10)}return-1}function sy(){/\bQt\//.test(Te)?((0,xa.default)(document.documentElement).addClass("qt"),Nf(!0)):Nf(!1),/\bQt/.test(Te)&&/\bMacintosh/.test(Te)&&(0,xa.default)(document.documentElement).addClass("qtmac"),/\bQt\/5/.test(Te)&&/Linux/.test(Te)&&(0,xa.default)(document.documentElement).addClass("qt5"),ny(/MSIE|Trident|Edge/.test(Te)),iy(Y1())}var fy=N(Y());function cy(){(0,fy.default)(document).on("submit","form:not([action])",function(e){e.preventDefault()})}var ly=N(Y());function py(){var e=window.history.pushState;window.history.pushState=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var i=e.apply(this,t);return(0,ly.default)(document).trigger("pushstate"),i}}var OA=M(),_A=Mr().find,PA=tn(),Df="find",ky=!0;Df in[]&&Array(1)[Df](function(){ky=!1});OA({target:"Array",proto:!0,forced:ky},{find:function(r){return _A(this,r,arguments.length>1?arguments[1]:void 0)}});PA(Df);var qA=_a(),TA=Oe(),kA=Ry();qA||TA(Object.prototype,"toString",kA,{unsafe:!0});var Ebe=N(de());var VA=ie(),zA=$i(),HA=oe(),KA=He(),WA=lr(),Ff=he(),YA=Ke(),XA=Nr(),QA=Ra(),Uy=Ni();zA("match",function(e,r,t){return[function(i){var a=YA(this),s=KA(i)?void 0:XA(i,e);return s?VA(s,i,a):new RegExp(i)[e](Ff(a))},function(n){var i=HA(this),a=Ff(n),s=t(r,i,a);if(s.done)return s.value;if(!i.global)return Uy(i,a);var c=i.unicode;i.lastIndex=0;for(var l=[],p=0,m;(m=Uy(i,a))!==null;){var y=Ff(m[0]);l[p]=y,y===""&&(i.lastIndex=QA(a,WA(i.lastIndex),c)),p++}return p===0?null:l}]});var o$=M(),Yy=Wy();o$({global:!0,forced:parseFloat!=Yy},{parseFloat:Yy});var p$=nn(),tg=ie(),$a=W(),v$=$i(),h$=K(),d$=oe(),m$=re(),y$=He(),g$=Sr(),b$=lr(),on=he(),w$=Ke(),S$=Ra(),O$=Nr(),_$=rg(),P$=Ni(),E$=ne(),Kf=E$("replace"),I$=Math.max,q$=Math.min,T$=$a([].concat),Hf=$a([].push),ng=$a("".indexOf),ig=$a("".slice),k$=function(e){return e===void 0?e:String(e)},x$=function(){return"a".replace(/./,"$0")==="$0"}(),og=function(){return/./[Kf]?/./[Kf]("a","$0")==="":!1}(),R$=!h$(function(){var e=/./;return e.exec=function(){var r=[];return r.groups={a:"7"},r},"".replace(e,"$<a>")!=="7"});v$("replace",function(e,r,t){var n=og?"$":"$0";return[function(a,s){var c=w$(this),l=y$(a)?void 0:O$(a,Kf);return l?tg(l,a,c,s):tg(r,on(c),a,s)},function(i,a){var s=d$(this),c=on(i);if(typeof a=="string"&&ng(a,n)===-1&&ng(a,"$<")===-1){var l=t(r,s,c,a);if(l.done)return l.value}var p=m$(a);p||(a=on(a));var m=s.global;if(m){var y=s.unicode;s.lastIndex=0}for(var g=[];;){var b=P$(s,c);if(b===null||(Hf(g,b),!m))break;var O=on(b[0]);O===""&&(s.lastIndex=S$(c,b$(s.lastIndex),y))}for(var x="",T=0,E=0;E<g.length;E++){b=g[E];for(var P=on(b[0]),$=I$(q$(g$(b.index),c.length),0),R=[],j=1;j<b.length;j++)Hf(R,k$(b[j]));var L=b.groups;if(p){var U=T$([P],R,$,c);L!==void 0&&Hf(U,L);var C=on(p$(a,void 0,U))}else C=_$(P,c,$,R,L,a);$>=T&&(x+=ig(c,T,$)+C,T=$+P.length)}return x+ig(c,T)}]},!R$||!x$||og);var G$=M(),F$=K(),U$=Dr(),V$=ce(),z$=Ne(),H$=De(),fg=Na(),cg=pt(),K$=Ai(),W$=an(),Y$=ne(),X$=Yt(),lg=Y$("isConcatSpreadable"),Q$=X$>=51||!F$(function(){var e=[];return e[lg]=!1,e.concat()[0]!==e}),J$=function(e){if(!V$(e))return!1;var r=e[lg];return r!==void 0?!!r:U$(e)},Z$=!Q$||!W$("concat");G$({target:"Array",proto:!0,arity:1,forced:Z$},{concat:function(r){var t=z$(this),n=K$(t,0),i=0,a,s,c,l,p;for(a=-1,c=arguments.length;a<c;a++)if(p=a===-1?t:arguments[a],J$(p))for(l=H$(p),fg(i+l),s=0;s<l;s++,i++)s in p&&cg(n,i,p[s]);else fg(i+1),cg(n,i++,p);return n.length=i,n}});var eN=ie(),rN=$i(),tN=oe(),nN=He(),iN=Ke(),vg=Wf(),hg=he(),oN=Nr(),aN=Ni();rN("search",function(e,r,t){return[function(i){var a=iN(this),s=nN(i)?void 0:oN(i,e);return s?eN(s,i,a):new RegExp(i)[e](hg(a))},function(n){var i=tN(this),a=hg(n),s=t(r,i,a);if(s.done)return s.value;var c=i.lastIndex;vg(c,0)||(i.lastIndex=0);var l=aN(i,a);return vg(i.lastIndex,c)||(i.lastIndex=c),l===null?-1:l.index}]});var ON=nn(),Li=ie(),Qf=W(),_N=$i(),PN=oe(),EN=He(),IN=ja(),Sg=Ke(),qN=ji(),TN=Ra(),kN=lr(),Xf=he(),xN=Nr(),Og=La(),_g=Ni(),RN=ki(),AN=qi(),$N=K(),un=AN.UNSUPPORTED_Y,Pg=4294967295,NN=Math.min,Eg=[].push,jN=Qf(/./.exec),sn=Qf(Eg),Ci=Qf("".slice),LN=!$N(function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var t="ab".split(e);return t.length!==2||t[0]!=="a"||t[1]!=="b"});_N("split",function(e,r,t){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(i,a){var s=Xf(Sg(this)),c=a===void 0?Pg:a>>>0;if(c===0)return[];if(i===void 0)return[s];if(!IN(i))return Li(r,s,i,c);for(var l=[],p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,y=new RegExp(i.source,p+"g"),g,b,O;(g=Li(RN,y,s))&&(b=y.lastIndex,!(b>m&&(sn(l,Ci(s,m,g.index)),g.length>1&&g.index<s.length&&ON(Eg,l,Og(g,1)),O=g[0].length,m=b,l.length>=c)));)y.lastIndex===g.index&&y.lastIndex++;return m===s.length?(O||!jN(y,""))&&sn(l,""):sn(l,Ci(s,m)),l.length>c?Og(l,0,c):l}:"0".split(void 0,0).length?n=function(i,a){return i===void 0&&a===0?[]:Li(r,this,i,a)}:n=r,[function(a,s){var c=Sg(this),l=EN(a)?void 0:xN(a,e);return l?Li(l,a,c,s):Li(n,Xf(c),a,s)},function(i,a){var s=PN(this),c=Xf(i),l=t(n,s,c,a,n!==r);if(l.done)return l.value;var p=qN(s,RegExp),m=s.unicode,y=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(un?"g":"y"),g=new p(un?"^(?:"+s.source+")":s,y),b=a===void 0?Pg:a>>>0;if(b===0)return[];if(c.length===0)return _g(g,c)===null?[c]:[];for(var O=0,x=0,T=[];x<c.length;){g.lastIndex=un?0:x;var E=_g(g,un?Ci(c,x):c),P;if(E===null||(P=NN(kN(g.lastIndex+(un?x:0)),c.length))===O)x=TN(c,x,m);else{if(sn(T,Ci(c,O,x)),T.length===b)return T;for(var $=1;$<=E.length-1;$++)if(sn(T,E[$]),T.length===b)return T;x=O=P}}return sn(T,Ci(c,O)),T}]},!LN,un);var HN=fn(),KN=ec();HN("toPrimitive");KN();var QN=ue(),JN=Oe(),ZN=Ag(),ej=ne(),$g=ej("toPrimitive"),Ng=Date.prototype;QN(Ng,$g)||JN(Ng,$g,ZN);nb();ab();sb();pn();qb();var sL=M(),fL=ae(),cL=X(),Va=W(),lL=ue(),pL=re(),vL=br(),hL=he(),dL=Gr(),mL=df(),_r=cL.Symbol,dt=_r&&_r.prototype;fL&&pL(_r)&&(!("description"in dt)||_r().description!==void 0)&&(mc={},Vi=function(){var r=arguments.length<1||arguments[0]===void 0?void 0:hL(arguments[0]),t=vL(dt,this)?new _r(r):r===void 0?_r():_r(r);return r===""&&(mc[t]=!0),t},mL(Vi,_r),Vi.prototype=dt,dt.constructor=Vi,Tb=String(_r("test"))=="Symbol(test)",kb=Va(dt.valueOf),xb=Va(dt.toString),Rb=/^Symbol\((.*)\)[^)]+$/,Ab=Va("".replace),$b=Va("".slice),dL(dt,"description",{configurable:!0,get:function(){var r=kb(this);if(lL(mc,r))return"";var t=xb(r),n=Tb?$b(t,7,-1):Ab(t,Rb,"$1");return n===""?void 0:n}}),sL({global:!0,constructor:!0,forced:!0},{Symbol:Vi}));var mc,Vi,Tb,kb,xb,Rb,Ab,$b;var TL=M(),gc=$e(),kL=ae(),Vb=X(),bc=Jf(),zb=W(),xL=Zt(),Fb=ue(),RL=za(),AL=br(),$L=Xt(),Hb=Ks(),NL=K(),jL=jr().f,LL=rr().f,CL=Se().f,DL=yc(),BL=Ei().trim,zi="Number",hn=Vb[zi],Ub=bc[zi],wc=hn.prototype,ML=Vb.TypeError,GL=zb("".slice),Ha=zb("".charCodeAt),FL=function(e){var r=Hb(e,"number");return typeof r=="bigint"?r:UL(r)},UL=function(e){var r=Hb(e,"number"),t,n,i,a,s,c,l,p;if($L(r))throw ML("Cannot convert a Symbol value to a number");if(typeof r=="string"&&r.length>2){if(r=BL(r),t=Ha(r,0),t===43||t===45){if(n=Ha(r,2),n===88||n===120)return NaN}else if(t===48){switch(Ha(r,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+r}for(s=GL(r,2),c=s.length,l=0;l<c;l++)if(p=Ha(s,l),p<48||p>a)return NaN;return parseInt(s,i)}}return+r},Sc=xL(zi,!hn(" 0o1")||!hn("0b1")||hn("+0x1")),VL=function(e){return AL(wc,e)&&NL(function(){DL(e)})},Ka=function(r){var t=arguments.length<1?0:hn(FL(r));return VL(this)?RL(Object(t),this,Ka):t};Ka.prototype=wc;Sc&&!gc&&(wc.constructor=Ka);TL({global:!0,constructor:!0,wrap:!0,forced:Sc},{Number:Ka});var Kb=function(e,r){for(var t=kL?jL(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0,i;t.length>n;n++)Fb(r,i=t[n])&&!Fb(e,i)&&CL(e,i,LL(r,i))};gc&&Ub&&Kb(bc[zi],Ub);(Sc||gc)&&Kb(bc[zi],hn);var zL=M(),HL=ae(),Wb=Se().f;zL({target:"Object",stat:!0,forced:Object.defineProperty!==Wb,sham:!HL},{defineProperty:Wb});rS();gS();wS();SS();OS();IS();var cB=fn();cB("iterator");var Gbe=N(V());var WB=Gf().charAt,YB=he(),JS=Ce(),XB=su(),QS=fu(),ZS="String Iterator",QB=JS.set,JB=JS.getterFor(ZS);XB(String,"String",function(e){QB(this,{type:ZS,string:YB(e),index:0})},function(){var r=JB(this),t=r.string,n=r.index,i;return n>=t.length?QS(void 0,!0):(i=WB(t,n),r.index+=i.length,QS(i,!1))});var n0=X(),o0=cl(),e2=pl(),ro=V(),vl=wr(),a0=ne(),hl=a0("iterator"),i0=a0("toStringTag"),dl=ro.values,u0=function(e,r){if(e){if(e[hl]!==dl)try{vl(e,hl,dl)}catch(n){e[hl]=dl}if(e[i0]||vl(e,i0,r),o0[r]){for(var t in ro)if(e[t]!==ro[t])try{vl(e,t,ro[t])}catch(n){e[t]=ro[t]}}}};for(lu in o0)u0(n0[lu]&&n0[lu].prototype,lu);var lu;u0(e2,"DOMTokenList");var r2=fn();r2("asyncIterator");var t2=Ae(),n2=fn(),i2=nr();n2("toStringTag");i2(t2("Symbol"),"Symbol");var o2=X(),a2=nr();a2(o2.JSON,"JSON",!0);var u2=nr();u2(Math,"Math",!0);var s2=M(),f2=K(),c2=Ne(),s0=Pn(),l2=tl(),p2=f2(function(){s0(1)});s2({target:"Object",stat:!0,forced:p2,sham:!l2},{getPrototypeOf:function(r){return s0(c2(r))}});var m2=M(),c0=ml();m2({target:"Array",proto:!0,forced:[].forEach!=c0},{forEach:c0});var l0=X(),p0=cl(),y2=pl(),yl=ml(),g2=wr(),v0=function(e){if(e&&e.forEach!==yl)try{g2(e,"forEach",yl)}catch(r){e.forEach=yl}};for(pu in p0)p0[pu]&&v0(l0[pu]&&l0[pu].prototype);var pu;v0(y2);var b2=ae(),w2=ut().EXISTS,h0=W(),S2=Gr(),d0=Function.prototype,O2=h0(d0.toString),m0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_2=h0(m0.exec),P2="name";b2&&!w2&&S2(d0,P2,{configurable:!0,get:function(){try{return _2(m0,O2(this))[1]}catch(e){return""}}});var E2=M(),I2=vn();E2({target:"Object",stat:!0},{setPrototypeOf:I2});var q2=M(),T2=W(),k2=Dr(),x2=T2([].reverse),y0=[1,2];q2({target:"Array",proto:!0,forced:String(y0)===String(y0.reverse())},{reverse:function(){return k2(this)&&(this.length=this.length),x2(this)}});var R2=M(),g0=Dr(),A2=Ri(),$2=ce(),b0=ft(),N2=De(),j2=Le(),L2=pt(),C2=ne(),D2=an(),B2=Fi(),M2=D2("slice"),G2=C2("species"),gl=Array,F2=Math.max;R2({target:"Array",proto:!0,forced:!M2},{slice:function(r,t){var n=j2(this),i=N2(n),a=b0(r,i),s=b0(t===void 0?i:t,i),c,l,p;if(g0(n)&&(c=n.constructor,A2(c)&&(c===gl||g0(c.prototype))?c=void 0:$2(c)&&(c=c[G2],c===null&&(c=void 0)),c===gl||c===void 0))return B2(n,a,s);for(l=new(c===void 0?gl:c)(F2(s-a,0)),p=0;a<s;a++,p++)a in n&&L2(l,p,n[a]);return l.length=p,l}});var Q=N(Y());var mX=N(V());var z9=N(de());var K2=ut().PROPER,W2=Oe(),Y2=oe(),O0=he(),X2=K(),Q2=bl(),wl="toString",J2=RegExp.prototype,_0=J2[wl],Z2=X2(function(){return _0.call({source:"a",flags:"b"})!="/a/b"}),eM=K2&&_0.name!=wl;(Z2||eM)&&W2(RegExp.prototype,wl,function(){var r=Y2(this),t=O0(r.source),n=O0(Q2(r));return"/"+t+"/"+n},{unsafe:!0});var rM=M(),tM=W(),P0=K(),E0=yc(),vu=tM(1 .toPrecision),nM=P0(function(){return vu(1,void 0)!=="1"})||!P0(function(){vu({})});rM({target:"Number",proto:!0,forced:nM},{toPrecision:function(r){return r===void 0?vu(E0(this)):vu(E0(this),r)}});var cM=M(),lM=Ne(),pM=ft(),vM=Sr(),hM=De(),dM=q0(),mM=Na(),yM=Ai(),gM=pt(),Sl=x0(),bM=an(),wM=bM("splice"),SM=Math.max,OM=Math.min;cM({target:"Array",proto:!0,forced:!wM},{splice:function(r,t){var n=lM(this),i=hM(n),a=pM(r,i),s=arguments.length,c,l,p,m,y,g;for(s===0?c=l=0:s===1?(c=0,l=i-a):(c=s-2,l=OM(SM(vM(t),0),i-a)),mM(i+c-l),p=yM(n,l),m=0;m<l;m++)y=a+m,y in n&&gM(p,m,n[y]);if(p.length=l,c<l){for(m=a;m<i-l;m++)y=m+l,g=m+c,y in n?n[g]=n[y]:Sl(n,g);for(m=i;m>i-l+c;m--)Sl(n,m-1)}else if(c>l)for(m=i-l;m>a;m--)y=m+l-1,g=m+c-1,y in n?n[g]=n[y]:Sl(n,g);for(m=0;m<c;m++)n[m+a]=arguments[m+2];return dM(n,i-l+c),p}});var _M=M(),PM=Ne(),R0=Ti(),EM=K(),IM=EM(function(){R0(1)});_M({target:"Object",stat:!0,forced:IM},{keys:function(r){return R0(PM(r))}});var to=N(Y());function Ol(){return window.devicePixelRatio}function Xe(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function F(e,r){return Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==void 0}function _e(e,r){return e===void 0?r:e}function $0(e){var r={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>'"/]/g,function(t){return r[t]})}function hu(){return Math.floor(4294967296+Math.random()*64424509440).toString(16)}function Ot(e){if(!(!e||!e.toLowerCase))switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return}}function pr(e,r){var t=void 0;if("currentStyle"in e)t=e.currentStyle[r];else{var n,i,a=(n=document)===null||n===void 0||(i=n.defaultView)===null||i===void 0?void 0:i.getComputedStyle(e,null);a&&(t=a.getPropertyValue(r))}return t}function A0(e,r){for(var t=e.toString();t.length<r;)t="0"+t;return t}function Pl(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(r<1)throw"Significant digits must be at least 1.";return parseFloat(e.toPrecision(r))}function N0(e){var r=new Date(e);return r.toString()==="Invalid Date"&&(r=new Date(e.replace(/-/g,"/"))),r}function ir(e){return e instanceof Date?e.getUTCFullYear()+"-"+A0(e.getUTCMonth()+1,2)+"-"+A0(e.getUTCDate(),2):null}function j0(e,r){var t={};return function(){var n=e.getBoundingClientRect(),i={w:n.width,h:n.height};i.w===0&&i.h===0||i.w===t.w&&i.h===t.h||(t=i,r(i.w,i.h))}}function El(){return Ol()?Math.round(Ol()*100)/100:1}function Il(e){var r=e.getBoundingClientRect(),t=e.currentCSSZoom||1;return{width:r.width/t,height:r.height/t}}function L0(e){var r=e.replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\b]/g,"\\b"),t;try{t=new Function("with (this) {\n try {\n return (".concat(e,");\n } catch (e) {\n console.error('Error evaluating expression: ").concat(r,"');\n throw e;\n }\n }"))}catch(n){throw console.error("Error parsing expression: "+e),n}return function(n){return t.call(n)}}function no(e){return e==null?[]:Array.isArray(e)?e:[e]}function C0(e,r){function t(p,m){for(var y=0,g=0,b=[];y<p.length&&g<m.length;)r(p[y],m[g])<=0?b.push(p[y++]):b.push(m[g++]);for(;y<p.length;)b.push(p[y++]);for(;g<m.length;)b.push(m[g++]);return b}e=e.slice(0);for(var n=1;n<e.length;n*=2)for(var i=0;i<e.length;i+=n*2){var a=e.slice(i,i+n),s=e.slice(i+n,i+n*2),c=t(a,s),l=[i,c.length];Array.prototype.push.apply(l,c),Array.prototype.splice.apply(e,l)}return e}function H(e){return typeof e=="undefined"?e:e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function or(e,r){var t={};return Object.keys(e).forEach(function(n){t[n]=r(e[n],n,e)}),t}function D0(e){return typeof e=="number"&&isNaN(e)}function _l(e,r){if(to.default.type(e)==="object"&&to.default.type(r)==="object"){var t=e,n=r;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i in t)if(!Xe(n,i)||!_l(t[i],n[i]))return!1;return!0}else if(to.default.type(e)==="array"&&to.default.type(r)==="array"){var a=e,s=r;if(a.length!==s.length)return!1;for(var c=0;c<a.length;c++)if(!_l(a[c],s[c]))return!1;return!0}else return e===r}function ql(){if(arguments.length<2)throw new Error("equal requires at least two arguments.");for(var e=0;e<arguments.length-1;e++)if(!_l(e<0||arguments.length<=e?void 0:arguments[e],e+1<0||arguments.length<=e+1?void 0:arguments[e+1]))return!1;return!0}var B0=function(r,t,n){function i(c){return(c+"").replace(/-/,".").replace(/(\.0)+[^.]*$/,"").split(".")}function a(c,l){for(var p=i(c),m=i(l),y=Math.min(p.length,m.length),g,b=0;b<y;b++)if(g=parseInt(p[b],10)-parseInt(m[b],10),g!==0)return g;return p.length-m.length}var s=a(r,n);if(t==="==")return s===0;if(t===">=")return s>=0;if(t===">")return s>0;if(t==="<=")return s<=0;if(t==="<")return s<0;throw"Unknown operator: ".concat(t)};function Pe(e,r){if(typeof e!="undefined"){if(r.length!==1)throw new Error("labelNode must be of length 1");var t=Array.isArray(e)&&e.length===0;t?r.addClass("shiny-label-null"):(r.text(e),r.removeClass("shiny-label-null"))}}function io(e){var r=document.createElement("a");r.href="/";var t=document.createElement("div");t.style.setProperty("position","absolute","important"),t.style.setProperty("top","-1000px","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","30px","important"),t.style.setProperty("height","10px","important"),t.appendChild(r),e.appendChild(t);var n=window.getComputedStyle(r).getPropertyValue("color");return e.removeChild(t),n}function Tl(){return!window.bootstrap}function oo(e){return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oo(e)}function qM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function M0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G0(n.key),n)}}function TM(e,r,t){return r&&M0(e.prototype,r),t&&M0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kl(e,r,t){return r=G0(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function G0(e){var r=kM(e,"string");return oo(r)==="symbol"?r:String(r)}function kM(e,r){if(oo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(oo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var du=function(){function e(){qM(this,e),kl(this,"name",void 0),kl(this,"bindings",[]),kl(this,"bindingNames",{})}return TM(e,[{key:"register",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a={binding:t,priority:i};this.bindings.unshift(a),n&&(this.bindingNames[n]=a,t.name=n)}},{key:"setPriority",value:function(t,n){var i=this.bindingNames[t];if(!i)throw"Tried to set priority on unknown binding "+t;i.priority=n||0}},{key:"getPriority",value:function(t){var n=this.bindingNames[t];return n?n.priority:!1}},{key:"getBindings",value:function(){return C0(this.bindings,function(t,n){return n.priority-t.priority})}}]),e}();var kX=N(V());function ao(e){return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ao(e)}function xM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function F0(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U0(n.key),n)}}function RM(e,r,t){return r&&F0(e.prototype,r),t&&F0(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AM(e,r,t){return r=U0(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function U0(e){var r=$M(e,"string");return ao(r)==="symbol"?r:String(r)}function $M(e,r){if(ao(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ao(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var se=function(){function e(){xM(this,e),AM(this,"name",void 0)}return RM(e,[{key:"find",value:function(t){throw"Not implemented"}},{key:"getId",value:function(t){return t.getAttribute("data-input-id")||t.id}},{key:"getType",value:function(t){return null}},{key:"getValue",value:function(t){throw"Not implemented"}},{key:"subscribe",value:function(t,n){}},{key:"unsubscribe",value:function(t){}},{key:"receiveMessage",value:function(t,n){throw"Not implemented"}},{key:"getState",value:function(t){throw"Not implemented"}},{key:"getRatePolicy",value:function(t){return null}},{key:"initialize",value:function(t){}},{key:"dispose",value:function(t){}}]),e}();var NM=M(),jM=X(),LM=nr();NM({global:!0},{Reflect:{}});LM(jM.Reflect,"Reflect",!0);var VM=M(),zM=Ae(),Rl=nn(),HM=W0(),Y0=Yf(),KM=oe(),X0=ce(),WM=Lr(),J0=K(),Al=zM("Reflect","construct"),YM=Object.prototype,XM=[].push,Z0=J0(function(){function e(){}return!(Al(function(){},[],e)instanceof e)}),eO=!J0(function(){Al(function(){})}),Q0=Z0||eO;VM({target:"Reflect",stat:!0,forced:Q0,sham:Q0},{construct:function(r,t){Y0(r),KM(t);var n=arguments.length<3?r:Y0(arguments[2]);if(eO&&!Z0)return Al(r,t,n);if(r==n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return Rl(XM,i,t),new(Rl(HM,r,i))}var a=n.prototype,s=WM(X0(a)?a:YM),c=Rl(r,s,t);return X0(c)?c:s}});var KX=N(V());var vr=N(Y());function En(e){return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},En(e)}function QM(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZM(n.key),n)}}function JM(e,r,t){return r&&rO(e.prototype,r),t&&rO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZM(e){var r=eG(e,"string");return En(r)==="symbol"?r:String(r)}function eG(e,r){if(En(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(En(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function rG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&$l(e,r)}function $l(e,r){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$l(e,r)}function tG(e){var r=oG();return function(){var n=mu(e),i;if(r){var a=mu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nG(this,i)}}function nG(e,r){if(r&&(En(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iG(e)}function iG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function mu(e){return mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mu(e)}var tO=function(e){rG(t,e);var r=tG(t);function t(){return QM(this,t),r.apply(this,arguments)}return JM(t,[{key:"find",value:function(i){return(0,vr.default)(i).find(".action-button")}},{key:"getValue",value:function(i){return(0,vr.default)(i).data("val")||0}},{key:"setValue",value:function(i,a){(0,vr.default)(i).data("val",a)}},{key:"getType",value:function(i){return"shiny.action"}},{key:"subscribe",value:function(i,a){(0,vr.default)(i).on("click.actionButtonInputBinding",function(){var s=(0,vr.default)(this),c=s.data("val")||0;s.data("val",c+1),a(!1)})}},{key:"getState",value:function(i){return{value:this.getValue(i)}}},{key:"receiveMessage",value:function(i,a){var s=(0,vr.default)(i);if(F(a,"label")||F(a,"icon")){var c=s.text(),l="";if(s.find("i[class]").length>0){var p=s.find("i[class]")[0];p===s.children()[0]&&(l=(0,vr.default)(p).prop("outerHTML"))}if(F(a,"label")&&(c=a.label),F(a,"icon")){var m;l=Array.isArray(a.icon)?"":(m=a.icon)!==null&&m!==void 0?m:""}s.html(l+" "+c)}F(a,"disabled")&&(a.disabled?s.attr("disabled",""):s.attr("disabled",null))}},{key:"unsubscribe",value:function(i){(0,vr.default)(i).off(".actionButtonInputBinding")}}]),t}(se);(0,vr.default)(document).on("click","a.action-button",function(e){e.preventDefault()});var pQ=N(V());var _t=N(Y());function In(e){return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},In(e)}function aG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function nO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sG(n.key),n)}}function uG(e,r,t){return r&&nO(e.prototype,r),t&&nO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sG(e){var r=fG(e,"string");return In(r)==="symbol"?r:String(r)}function fG(e,r){if(In(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(In(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Nl(e,r)}function Nl(e,r){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nl(e,r)}function lG(e){var r=hG();return function(){var n=yu(e),i;if(r){var a=yu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return pG(this,i)}}function pG(e,r){if(r&&(In(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vG(e)}function vG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function yu(e){return yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yu(e)}var iO=function(e){cG(t,e);var r=lG(t);function t(){return aG(this,t),r.apply(this,arguments)}return uG(t,[{key:"find",value:function(i){return(0,_t.default)(i).find('input[type="checkbox"]')}},{key:"getValue",value:function(i){return i.checked}},{key:"setValue",value:function(i,a){i.checked=a}},{key:"subscribe",value:function(i,a){(0,_t.default)(i).on("change.checkboxInputBinding",function(){a(!0)})}},{key:"unsubscribe",value:function(i){(0,_t.default)(i).off(".checkboxInputBinding")}},{key:"getState",value:function(i){return{label:(0,_t.default)(i).parent().find("span").text(),value:i.checked}}},{key:"receiveMessage",value:function(i,a){F(a,"value")&&(i.checked=a.value),F(a,"label")&&(0,_t.default)(i).parent().find("span").text(a.label),(0,_t.default)(i).trigger("change")}}]),t}(se);var yG=M(),gG=Ei().trim,bG=sO();yG({target:"String",proto:!0,forced:bG("trim")},{trim:function(){return gG(this)}});var $Q=N(V());var Me=N(Y());function qn(e){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qn(e)}function wG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function fO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OG(n.key),n)}}function SG(e,r,t){return r&&fO(e.prototype,r),t&&fO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OG(e){var r=_G(e,"string");return qn(r)==="symbol"?r:String(r)}function _G(e,r){if(qn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(qn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function PG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&jl(e,r)}function jl(e,r){return jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jl(e,r)}function EG(e){var r=TG();return function(){var n=gu(e),i;if(r){var a=gu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return IG(this,i)}}function IG(e,r){if(r&&(qn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qG(e)}function qG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gu(e)}function cO(e){return(0,Me.default)(e).find('label[for="'+H(e.id)+'"]')}function kG(e){var r=e.parentNode;return r.tagName==="LABEL"?(0,Me.default)(r).find("span").text().trim():null}var lO=function(e){PG(t,e);var r=EG(t);function t(){return wG(this,t),r.apply(this,arguments)}return SG(t,[{key:"find",value:function(i){return(0,Me.default)(i).find(".shiny-input-checkboxgroup")}},{key:"getValue",value:function(i){for(var a=(0,Me.default)('input:checkbox[name="'+H(i.id)+'"]:checked'),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a[c].value;return s}},{key:"setValue",value:function(i,a){var s;if(a=(s=a)!==null&&s!==void 0?s:[],(0,Me.default)('input:checkbox[name="'+H(i.id)+'"]').prop("checked",!1),a instanceof Array)for(var c=0;c<a.length;c++)(0,Me.default)('input:checkbox[name="'+H(i.id)+'"][value="'+H(a[c])+'"]').prop("checked",!0);else(0,Me.default)('input:checkbox[name="'+H(i.id)+'"][value="'+H(a)+'"]').prop("checked",!0)}},{key:"getState",value:function(i){for(var a=(0,Me.default)('input:checkbox[name="'+H(i.id)+'"]'),s=new Array(a.length),c=0;c<s.length;c++)s[c]={value:a[c].value,label:kG(a[c])};return{label:cO(i).text(),value:this.getValue(i),options:s}}},{key:"receiveMessage",value:function(i,a){var s=(0,Me.default)(i);F(a,"options")&&(s.find("div.shiny-options-group").remove(),s.find("label.checkbox").remove(),s.append(a.options)),F(a,"value")&&this.setValue(i,a.value),Pe(a.label,cO(i)),(0,Me.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){(0,Me.default)(i).on("change.checkboxGroupInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,Me.default)(i).off(".checkboxGroupInputBinding")}}]),t}(se);var JQ=N(V());var pe=N(Y());function Tn(e){return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tn(e)}function vO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function pO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xG(n.key),n)}}function hO(e,r,t){return r&&pO(e.prototype,r),t&&pO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xG(e){var r=RG(e,"string");return Tn(r)==="symbol"?r:String(r)}function RG(e,r){if(Tn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Tn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function dO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Ll(e,r)}function Ll(e,r){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,r)}function mO(e){var r=NG();return function(){var n=bu(e),i;if(r){var a=bu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return AG(this,i)}}function AG(e,r){if(r&&(Tn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $G(e)}function $G(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bu(e)}var Cl=function(e){dO(t,e);var r=mO(t);function t(){return vO(this,t),r.apply(this,arguments)}return hO(t,[{key:"find",value:function(i){return(0,pe.default)(i).find(".shiny-date-input")}},{key:"getType",value:function(i){return"shiny.date"}},{key:"subscribe",value:function(i,a){(0,pe.default)(i).on("changeDate.dateInputBinding change.dateInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,pe.default)(i).off(".dateInputBinding")}},{key:"getRatePolicy",value:function(){return{policy:"debounce",delay:250}}},{key:"setValue",value:function(i,a){throw"not implemented"}},{key:"initialize",value:function(i){var a=(0,pe.default)(i).find("input"),s=a.data("initial-date");s==null&&(s=this._floorDateTime(this._dateAsUTC(new Date))),this.setValue(i,s),a.data("min-date")!==void 0&&this._setMin(a[0],a.data("min-date")),a.data("max-date")!==void 0&&this._setMax(a[0],a.data("max-date"))}},{key:"_getLabelNode",value:function(i){return(0,pe.default)(i).find('label[for="'+H(i.id)+'"]')}},{key:"_formatToString",value:function(i){var a="",s;for(s=0;s<i.parts.length;s++)a+=i.separators[s]+i.parts[s];return a+=i.separators[s],a}},{key:"_setMin",value:function(i,a){if(a===null){(0,pe.default)(i).bsDatepicker("setStartDate",null);return}var s=this._newDate(a);if(s!==null&&(a=s,!isNaN(a.valueOf()))){var c=(0,pe.default)(i).bsDatepicker("getUTCDate");(0,pe.default)(i).bsDatepicker("setStartDate",this._utcDateAsLocal(a)),a&&c&&a.getTime()>c.getTime()?(0,pe.default)(i).bsDatepicker("clearDates"):(0,pe.default)(i).bsDatepicker("setUTCDate",c)}}},{key:"_setMax",value:function(i,a){if(a===null){(0,pe.default)(i).bsDatepicker("setEndDate",null);return}var s=this._newDate(a);if(s!==null&&(a=s,!isNaN(a.valueOf()))){var c=(0,pe.default)(i).bsDatepicker("getUTCDate");(0,pe.default)(i).bsDatepicker("setEndDate",this._utcDateAsLocal(a)),a&&c&&a.getTime()<c.getTime()?(0,pe.default)(i).bsDatepicker("clearDates"):(0,pe.default)(i).bsDatepicker("setUTCDate",c)}}},{key:"_newDate",value:function(i){if(i instanceof Date)return i;if(!i)return null;var a=N0(i);return isNaN(a.valueOf())?null:a}},{key:"_floorDateTime",value:function(i){return i=new Date(i.getTime()),i.setUTCHours(0,0,0,0),i}},{key:"_dateAsUTC",value:function(i){return new Date(i.getTime()-i.getTimezoneOffset()*6e4)}},{key:"_utcDateAsLocal",value:function(i){return new Date(i.getTime()+i.getTimezoneOffset()*6e4)}}]),t}(se),yO=function(e){dO(t,e);var r=mO(t);function t(){return vO(this,t),r.apply(this,arguments)}return hO(t,[{key:"getValue",value:function(i){var a=(0,pe.default)(i).find("input").bsDatepicker("getUTCDate");return ir(a)}},{key:"setValue",value:function(i,a){if(a===null){(0,pe.default)(i).find("input").val("").bsDatepicker("update");return}var s=this._newDate(a);s!==null&&(isNaN(s.valueOf())||(0,pe.default)(i).find("input").bsDatepicker("setUTCDate",s))}},{key:"getState",value:function(i){var a=(0,pe.default)(i),s=a.find("input"),c=s.data("datepicker").startDate,l=s.data("datepicker").endDate;c=c===-1/0?null:ir(c),l=l===1/0?null:ir(l);var p=s.data("datepicker").startViewMode;return p===2?p="decade":p===1?p="year":p===0&&(p="month"),{label:this._getLabelNode(i).text(),value:this.getValue(i),valueString:s.val(),min:c,max:l,language:s.data("datepicker").language,weekstart:s.data("datepicker").weekStart,format:this._formatToString(s.data("datepicker").format),startview:p}}},{key:"receiveMessage",value:function(i,a){var s=(0,pe.default)(i).find("input");Pe(a.label,this._getLabelNode(i)),F(a,"min")&&this._setMin(s[0],a.min),F(a,"max")&&this._setMax(s[0],a.max),F(a,"value")&&this.setValue(i,a.value),(0,pe.default)(i).trigger("change")}}]),t}(Cl);var yJ=N(V());var hr=N(Y());function kn(e){return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kn(e)}function jG(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function gO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CG(n.key),n)}}function LG(e,r,t){return r&&gO(e.prototype,r),t&&gO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CG(e){var r=DG(e,"string");return kn(r)==="symbol"?r:String(r)}function DG(e,r){if(kn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(kn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function BG(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Dl(e,r)}function Dl(e,r){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dl(e,r)}function MG(e){var r=UG();return function(){var n=wu(e),i;if(r){var a=wu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return GG(this,i)}}function GG(e,r){if(r&&(kn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FG(e)}function FG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UG(){if(typeof Reflect=="undefined"||!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(e){return!1}}function wu(e){return wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wu(e)}function bO(e){return(0,hr.default)(e).find('label[for="'+H(e.id)+'"]')}var wO=function(e){BG(t,e);var r=MG(t);function t(){return jG(this,t),r.apply(this,arguments)}return LG(t,[{key:"find",value:function(i){return(0,hr.default)(i).find(".shiny-date-range-input")}},{key:"getValue",value:function(i){var a=(0,hr.default)(i).find("input"),s=a.eq(0).bsDatepicker("getUTCDate"),c=a.eq(1).bsDatepicker("getUTCDate");return[ir(s),ir(c)]}},{key:"setValue",value:function(i,a){if(a instanceof Object){var s=(0,hr.default)(i).find("input");if(a.start!==void 0)if(a.start===null)s.eq(0).val("").bsDatepicker("update");else{var c=this._newDate(a.start);s.eq(0).bsDatepicker("setUTCDate",c)}if(a.end!==void 0)if(a.end===null)s.eq(1).val("").bsDatepicker("update");else{var l=this._newDate(a.end);s.eq(1).bsDatepicker("setUTCDate",l)}}}},{key:"getState",value:function(i){var a=(0,hr.default)(i),s=a.find("input"),c=s.eq(0),l=s.eq(1),p=c.bsDatepicker("getStartDate"),m=c.bsDatepicker("getEndDate"),y=p===-1/0?null:ir(p),g=m===1/0?null:ir(m),b=c.data("datepicker").startView;return b===2?b="decade":b===1?b="year":b===0&&(b="month"),{label:bO(i).text(),value:this.getValue(i),valueString:[c.val(),l.val()],min:y,max:g,weekstart:c.data("datepicker").weekStart,format:this._formatToString(c.data("datepicker").format),language:c.data("datepicker").language,startview:b}}},{key:"receiveMessage",value:function(i,a){var s=(0,hr.default)(i),c=s.find("input"),l=c.eq(0),p=c.eq(1);Pe(a.label,bO(i)),F(a,"min")&&(this._setMin(l[0],a.min),this._setMin(p[0],a.min)),F(a,"max")&&(this._setMax(l[0],a.max),this._setMax(p[0],a.max)),F(a,"value")&&this.setValue(i,a.value),s.trigger("change")}},{key:"initialize",value:function(i){var a=(0,hr.default)(i),s=a.find("input"),c=s.eq(0),l=s.eq(1),p=c.data("initial-date"),m=l.data("initial-date");p==null&&(p=this._dateAsUTC(new Date)),m==null&&(m=this._dateAsUTC(new Date)),this.setValue(i,{start:p,end:m}),this._setMin(c[0],c.data("min-date")),this._setMin(l[0],c.data("min-date")),this._setMax(c[0],l.data("max-date")),this._setMax(l[0],l.data("max-date"))}},{key:"subscribe",value:function(i,a){(0,hr.default)(i).on("changeDate.dateRangeInputBinding change.dateRangeInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,hr.default)(i).off(".dateRangeInputBinding")}}]),t}(Cl);var xZ=N(V());var Ee=N(Y());var rF=M(),tF=IO(),nF=iu(),iF=!nF(function(e){Array.from(e)});rF({target:"Array",stat:!0,forced:iF},{from:tF});var oF=M(),aF=Mr().map,uF=an(),sF=uF("map");oF({target:"Array",proto:!0,forced:!sF},{map:function(r){return aF(this,r,arguments.length>1?arguments[1]:void 0)}});var cZ=N(V());var mr=N(Y());var Bl=N(Y());function qO(e,r,t,n,i,a){var s=Bl.default.Event("shiny:inputchanged");return s.name=e,s.value=r,s.binding=t,s.el=n,s.inputType=i,(0,Bl.default)(a).trigger(s),s}var $J=N(V());function Ml(e){return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ml(e)}function uo(){"use strict";uo=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&Ml(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function TO(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function kO(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){TO(a,n,i,s,c,"next",l)}function c(l){TO(a,n,i,s,c,"throw",l)}s(void 0)})}}var Gl;function xO(e){Gl=e}function Er(){if(typeof Gl=="undefined")throw"Shiny has not finish initialization yet. Please wait for the 'shiny-initialized' event.";return Gl}function dr(e,r,t){Er().setInputValue(e,r,t)}function Pt(){return Er().shinyapp}function RO(e){Er().user=e}function AO(e){Er().forgetLastInputValue(e)}function so(e){return Fl.apply(this,arguments)}function Fl(){return Fl=kO(uo().mark(function e(r){return uo().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Er().bindAll(r);case 2:case"end":return n.stop()}},e)})),Fl.apply(this,arguments)}function ke(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Er().unbindAll(e,r)}function fo(e){Er().initializeInputs(e)}function $O(e,r){return Ul.apply(this,arguments)}function Ul(){return Ul=kO(uo().mark(function e(r,t){return uo().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Pt().bindOutput(r,t);case 2:case"end":return i.stop()}},e)})),Ul.apply(this,arguments)}function NO(e,r){return Pt().unbindOutput(e,r)}function jO(){return Er().oncustommessage}var LO;function CO(){return LO}function DO(e){LO=e}function BO(){return Er().createSocket}function xn(e){return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xn(e)}function fF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Vl(e,r)}function Vl(e,r){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,r)}function cF(e){var r=pF();return function(){var n=Su(e),i;if(r){var a=Su(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return lF(this,i)}}function lF(e,r){if(r&&(xn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vr(e)}function Vr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pF(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Su(e)}function GO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function MO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UO(n.key),n)}}function FO(e,r,t){return r&&MO(e.prototype,r),t&&MO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ar(e,r,t){return r=UO(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function UO(e){var r=vF(e,"string");return xn(r)==="symbol"?r:String(r)}function vF(e,r){if(xn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(xn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var hF=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;GO(this,e),ar(this,"files",void 0),ar(this,"fileIndex",-1),ar(this,"aborted",!1),ar(this,"completed",!1),this.files=Array.from(r),t&&this.$run()}return FO(e,[{key:"onBegin",value:function(t,n){setTimeout(n,0)}},{key:"onFile",value:function(t,n){setTimeout(n,0)}},{key:"onComplete",value:function(){}},{key:"onAbort",value:function(){}},{key:"abort",value:function(){this.completed||this.aborted||(this.aborted=!0,this.onAbort())}},{key:"$getRun",value:function(){var t=this,n=!1;return function(){n||(n=!0,t.$run())}}},{key:"$run",value:function(){if(!(this.aborted||this.completed)){if(this.fileIndex<0){this.fileIndex=0,this.onBegin(this.files,this.$getRun());return}if(this.fileIndex===this.files.length){this.completed=!0,this.onComplete();return}var t=this.files[this.fileIndex++];this.onFile(t,this.$getRun())}}}]),e}(),zl=function(e){fF(t,e);var r=cF(t);function t(n,i,a,s){var c;return GO(this,t),c=r.call(this,a,!1),ar(Vr(c),"shinyapp",void 0),ar(Vr(c),"id",void 0),ar(Vr(c),"el",void 0),ar(Vr(c),"jobId",void 0),ar(Vr(c),"uploadUrl",void 0),ar(Vr(c),"progressBytes",void 0),ar(Vr(c),"totalBytes",void 0),c.shinyapp=n,c.id=i,c.el=s,c.$run(),c}return FO(t,[{key:"makeRequest",value:function(i,a,s,c,l){this.shinyapp.makeRequest(i,a,s,c,l)}},{key:"onBegin",value:function(i,a){var s=this;this.$setError(null),this.$setActive(!0),this.$setVisible(!0),this.onProgress(null,0),this.totalBytes=0,this.progressBytes=0,mr.default.each(i,function(l,p){s.totalBytes+=p.size});var c=mr.default.map(i,function(l){return{name:l.name,size:l.size,type:l.type}});this.makeRequest("uploadInit",[c],function(l){s.jobId=l.jobId,s.uploadUrl=l.uploadUrl,a()},function(l){s.onError(l)},void 0)}},{key:"onFile",value:function(i,a){var s=this;this.onProgress(i,0),mr.default.ajax(this.uploadUrl,{type:"POST",cache:!1,xhr:function(){if(typeof mr.default.ajaxSettings.xhr!="function")throw"jQuery's XHR is not a function";var l=mr.default.ajaxSettings.xhr();return l.upload&&(l.upload.onprogress=function(p){p.lengthComputable&&s.onProgress(i,(s.progressBytes+p.loaded)/s.totalBytes)}),l},data:i,contentType:"application/octet-stream",processData:!1,success:function(){s.progressBytes+=i.size,a()},error:function(l,p,m){s.onError(l.responseText||p)}})}},{key:"onComplete",value:function(){var i=this,a=mr.default.map(this.files,function(c,l){return{name:c.name,size:c.size,type:c.type}}),s=qO(this.id,a,CO(),this.el,"shiny.fileupload",document);this.makeRequest("uploadEnd",[this.jobId,this.id],function(){i.$setActive(!1),i.onProgress(null,1),i.$bar().text("Upload complete"),(0,mr.default)(s.el).val("")},function(c){i.onError(c)},void 0),this.$bar().text("Finishing upload")}},{key:"onError",value:function(i){this.$setError(i||""),this.$setActive(!1)}},{key:"onAbort",value:function(){this.$setVisible(!1)}},{key:"onProgress",value:function(i,a){this.$bar().width(Math.round(a*100)+"%"),this.$bar().text(i?i.name:"")}},{key:"$container",value:function(){return(0,mr.default)("#"+H(this.id)+"_progress.shiny-file-input-progress")}},{key:"$bar",value:function(){return(0,mr.default)("#"+H(this.id)+"_progress.shiny-file-input-progress .progress-bar")}},{key:"$setVisible",value:function(i){this.$container().css("visibility",i?"visible":"hidden")}},{key:"$setError",value:function(i){this.$bar().toggleClass("progress-bar-danger",i!==null),i!==null&&(this.onProgress(null,1),this.$bar().text(i))}},{key:"$setActive",value:function(i){this.$container().toggleClass("active",!!i)}}]),t}(hF);function Rn(e){return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rn(e)}function dF(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function VO(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yF(n.key),n)}}function mF(e,r,t){return r&&VO(e.prototype,r),t&&VO(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yF(e){var r=gF(e,"string");return Rn(r)==="symbol"?r:String(r)}function gF(e,r){if(Rn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Rn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function bF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Hl(e,r)}function Hl(e,r){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hl(e,r)}function wF(e){var r=_F();return function(){var n=Pu(e),i;if(r){var a=Pu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return SF(this,i)}}function SF(e,r){if(r&&(Rn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OF(e)}function OF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _F(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pu(e)}var Ou="shiny-file-input-active",_u="shiny-file-input-over";function co(e){return(0,Ee.default)(e).closest("div.input-group")}function zO(e){var r=(0,Ee.default)(e),t=0;return r.on({"dragenter.draghover":function(i){t++===0&&r.trigger("draghover:enter",i)},"dragleave.draghover":function(i){--t===0&&r.trigger("draghover:leave",i),t<0&&console.error("draghover childCounter is negative somehow")},"dragover.draghover":function(i){i.preventDefault()},"drop.draghover":function(i){t=0,r.trigger("draghover:drop",i),i.preventDefault()}}),r}function HO(e){return(0,Ee.default)(e).off(".draghover")}function PF(){var e=(0,Ee.default)("html");zO(e).on({"draghover:enter.draghover":function(){co(Ir).addClass(Ou)},"draghover:leave.draghover":function(){co(Ir).removeClass(Ou)},"draghover:drop.draghover":function(){co(Ir).removeClass(_u).removeClass(Ou)}})}function EF(){var e=(0,Ee.default)("html");e.off(".draghover"),HO(e)}function IF(e){var r=document.createElement("input");r.type="file";try{r.files=e}catch(t){return!1}return!0}function qF(e,r){var t,n,i=(t=e.originalEvent)===null||t===void 0||(n=t.dataTransfer)===null||n===void 0?void 0:n.files,a=(0,Ee.default)(r);i==null?console.log("Dropping files is not supported on this browser. (no FileList)"):IF(i)?(a.val(""),r.files=i,a.trigger("change")):(a.val(""),TF(r,i))}function KO(e,r){var t=e.closest("div.input-group").find("input[type=text]");r.length===1?t.val(r[0].name):t.val(r.length+" files")}function WO(e){var r=e.data("currentUploader");r&&r.abort(),e.removeAttr("data-restore")}function TF(e,r){var t=(0,Ee.default)(e);WO(t),KO(t,r),t.data("currentUploader",new zl(Pt(),Kl(e),r,e))}function kF(e){var r=(0,Ee.default)(e.target);WO(r);var t=e.target.files,n=Kl(e.target);t.length!==0&&(KO(r,t),r.data("currentUploader",new zl(Pt(),n,t,e.target)))}var Ir=(0,Ee.default)();function Kl(e){return se.prototype.getId.call(this,e)||e.name}var YO=function(e){bF(t,e);var r=wF(t);function t(){return dF(this,t),r.apply(this,arguments)}return mF(t,[{key:"find",value:function(i){return(0,Ee.default)(i).find('input[type="file"]')}},{key:"getId",value:function(i){return Kl(i)}},{key:"getValue",value:function(i){var a=(0,Ee.default)(i).attr("data-restore");if(a){var s=JSON.parse(a),c=(0,Ee.default)(i).closest("div.input-group").find("input[type=text]");s.name.length===1?c.val(s.name[0]):c.val(s.name.length+" files");var l=(0,Ee.default)(i).closest("div.form-group").find(".progress"),p=l.find(".progress-bar");return l.removeClass("active"),p.width("100%"),p.css("visibility","visible"),s}else return null}},{key:"setValue",value:function(i,a){}},{key:"getType",value:function(i){return"shiny.file"}},{key:"subscribe",value:function(i,a){(0,Ee.default)(i).on("change.fileInputBinding",kF),Ir.length===0&&PF(),Ir=Ir.add(i);var s=co(i);zO(s).on({"draghover:enter.draghover":function(l){s.addClass(_u)},"draghover:leave.draghover":function(l){s.removeClass(_u),l.stopPropagation()},"draghover:drop.draghover":function(l,p){qF(p,i)}})}},{key:"unsubscribe",value:function(i){var a=(0,Ee.default)(i),s=co(i);s.removeClass(_u).removeClass(Ou),HO(s),a.off(".fileInputBinding"),s.off(".draghover"),Ir=Ir.not(i),Ir.length===0&&EF()}}]),t}(se);var see=N(de());var See=N(V());var po=N(Y());var xF=M(),RF=ie(),AF=ce(),$F=oe(),NF=JO(),jF=rr(),LF=Pn();function ZO(e,r){var t=arguments.length<3?e:arguments[2],n,i;if($F(e)===t)return e[r];if(n=jF.f(e,r),n)return NF(n)?n.value:n.get===void 0?void 0:RF(n.get,t);if(AF(i=LF(e)))return ZO(i,r,t)}xF({target:"Reflect",stat:!0},{get:ZO});var CF=M(),DF=K(),BF=Le(),e_=rr().f,r_=ae(),MF=!r_||DF(function(){e_(1)});CF({target:"Object",stat:!0,forced:MF,sham:!r_},{getOwnPropertyDescriptor:function(r,t){return e_(BF(r),t)}});var eee=N(V());var Et=N(Y());function An(e){return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},An(e)}function i_(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function t_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GF(n.key),n)}}function o_(e,r,t){return r&&t_(e.prototype,r),t&&t_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GF(e){var r=FF(e,"string");return An(r)==="symbol"?r:String(r)}function FF(e,r){if(An(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(An(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Eu(){return typeof Reflect!="undefined"&&Reflect.get?Eu=Reflect.get.bind():Eu=function(r,t,n){var i=UF(r,t);if(!!i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Eu.apply(this,arguments)}function UF(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=$n(e),e!==null););return e}function a_(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Wl(e,r)}function Wl(e,r){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wl(e,r)}function u_(e){var r=HF();return function(){var n=$n(e),i;if(r){var a=$n(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return VF(this,i)}}function VF(e,r){if(r&&(An(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zF(e)}function zF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HF(){if(typeof Reflect=="undefined"||!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(e){return!1}}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$n(e)}function n_(e){return(0,Et.default)(e).parent().find('label[for="'+H(e.id)+'"]')}var lo=function(e){a_(t,e);var r=u_(t);function t(){return i_(this,t),r.apply(this,arguments)}return o_(t,[{key:"find",value:function(i){var a=(0,Et.default)(i).find('input[type="text"], input[type="search"], input[type="url"], input[type="email"]');return a.not('input[type="text"][id$="-selectized"]')}},{key:"getId",value:function(i){return Eu($n(t.prototype),"getId",this).call(this,i)||i.name}},{key:"getValue",value:function(i){throw"not implemented"}},{key:"setValue",value:function(i,a){throw"not implemented"}},{key:"subscribe",value:function(i,a){(0,Et.default)(i).on("keyup.textInputBinding input.textInputBinding",function(){a(!0)}),(0,Et.default)(i).on("change.textInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,Et.default)(i).off(".textInputBinding")}},{key:"receiveMessage",value:function(i,a){throw"not implemented"}},{key:"getState",value:function(i){throw"not implemented"}},{key:"getRatePolicy",value:function(i){return{policy:"debounce",delay:250}}}]),t}(se),Nn=function(e){a_(t,e);var r=u_(t);function t(){return i_(this,t),r.apply(this,arguments)}return o_(t,[{key:"setValue",value:function(i,a){i.value=a}},{key:"getValue",value:function(i){return i.value}},{key:"getState",value:function(i){return{label:n_(i).text(),value:i.value,placeholder:i.placeholder}}},{key:"receiveMessage",value:function(i,a){F(a,"value")&&this.setValue(i,a.value),Pe(a.label,n_(i)),F(a,"placeholder")&&(i.placeholder=a.placeholder),(0,Et.default)(i).trigger("change")}}]),t}(lo);function jn(e){return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jn(e)}function KF(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function s_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YF(n.key),n)}}function WF(e,r,t){return r&&s_(e.prototype,r),t&&s_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YF(e){var r=XF(e,"string");return jn(r)==="symbol"?r:String(r)}function XF(e,r){if(jn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(jn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function QF(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Yl(e,r)}function Yl(e,r){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,r)}function JF(e){var r=rU();return function(){var n=Iu(e),i;if(r){var a=Iu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ZF(this,i)}}function ZF(e,r){if(r&&(jn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eU(e)}function eU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Iu(e)}function f_(e){return(0,po.default)(e).parent().find('label[for="'+H(e.id)+'"]')}var c_=function(e){QF(t,e);var r=JF(t);function t(){return KF(this,t),r.apply(this,arguments)}return WF(t,[{key:"find",value:function(i){return(0,po.default)(i).find('input[type="number"]')}},{key:"getValue",value:function(i){var a=(0,po.default)(i).val();if(typeof a=="string"&&/^\s*$/.test(a))return null;var s=Number(a);return isNaN(s)?a:s}},{key:"setValue",value:function(i,a){i.value=""+a}},{key:"getType",value:function(i){return"shiny.number"}},{key:"receiveMessage",value:function(i,a){var s,c,l,p;F(a,"value")&&(i.value=(s=a.value)!==null&&s!==void 0?s:""),F(a,"min")&&(i.min=(c=a.min)!==null&&c!==void 0?c:""),F(a,"max")&&(i.max=(l=a.max)!==null&&l!==void 0?l:""),F(a,"step")&&(i.step=(p=a.step)!==null&&p!==void 0?p:""),Pe(a.label,f_(i)),(0,po.default)(i).trigger("change")}},{key:"getState",value:function(i){return{label:f_(i).text(),value:this.getValue(i),min:Number(i.min),max:Number(i.max),step:Number(i.step)}}}]),t}(lo);var Mee=N(V());var p_=N(Y());function Ln(e){return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ln(e)}function tU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function l_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iU(n.key),n)}}function nU(e,r,t){return r&&l_(e.prototype,r),t&&l_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iU(e){var r=oU(e,"string");return Ln(r)==="symbol"?r:String(r)}function oU(e,r){if(Ln(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ln(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function aU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Xl(e,r)}function Xl(e,r){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xl(e,r)}function uU(e){var r=cU();return function(){var n=qu(e),i;if(r){var a=qu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sU(this,i)}}function sU(e,r){if(r&&(Ln(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fU(e)}function fU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qu(e)}var v_=function(e){aU(t,e);var r=uU(t);function t(){return tU(this,t),r.apply(this,arguments)}return nU(t,[{key:"find",value:function(i){return(0,p_.default)(i).find('input[type="password"]')}},{key:"getType",value:function(i){return"shiny.password"}}]),t}(Nn);var ore=N(V());var Qe=N(Y());function Cn(e){return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Cn(e)}function lU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function h_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vU(n.key),n)}}function pU(e,r,t){return r&&h_(e.prototype,r),t&&h_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vU(e){var r=hU(e,"string");return Cn(r)==="symbol"?r:String(r)}function hU(e,r){if(Cn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Cn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function dU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Ql(e,r)}function Ql(e,r){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,r)}function mU(e){var r=bU();return function(){var n=Tu(e),i;if(r){var a=Tu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return yU(this,i)}}function yU(e,r){if(r&&(Cn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gU(e)}function gU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tu(e)}function d_(e){return(0,Qe.default)(e).parent().find('label[for="'+H(e.id)+'"]')}function wU(e){var r=e.parentNode;return r.tagName==="LABEL"?(0,Qe.default)(r).find("span").text().trim():null}var m_=function(e){dU(t,e);var r=mU(t);function t(){return lU(this,t),r.apply(this,arguments)}return pU(t,[{key:"find",value:function(i){return(0,Qe.default)(i).find(".shiny-input-radiogroup")}},{key:"getValue",value:function(i){var a=(0,Qe.default)('input:radio[name="'+H(i.id)+'"]:checked');return a.length===0?null:a.val()}},{key:"setValue",value:function(i,a){Array.isArray(a)&&a.length===0?(0,Qe.default)('input:radio[name="'+H(i.id)+'"]').prop("checked",!1):(0,Qe.default)('input:radio[name="'+H(i.id)+'"][value="'+H(a)+'"]').prop("checked",!0)}},{key:"getState",value:function(i){for(var a=(0,Qe.default)('input:radio[name="'+H(i.id)+'"]'),s=new Array(a.length),c=0;c<s.length;c++)s[c]={value:a[c].value,label:wU(a[c])};return{label:d_(i).text(),value:this.getValue(i),options:s}}},{key:"receiveMessage",value:function(i,a){var s=(0,Qe.default)(i);F(a,"options")&&(s.find("div.shiny-options-group").remove(),s.find("label.radio").remove(),s.append(a.options)),F(a,"value")&&this.setValue(i,a.value),Pe(a.label,d_(i)),(0,Qe.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){(0,Qe.default)(i).on("change.radioInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,Qe.default)(i).off(".radioInputBinding")}}]),t}(se);var dre=N(pn());var qre=N(V());var ve=N(Y());var It=eval;function Dn(e){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dn(e)}function SU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function y_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_U(n.key),n)}}function OU(e,r,t){return r&&y_(e.prototype,r),t&&y_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _U(e){var r=PU(e,"string");return Dn(r)==="symbol"?r:String(r)}function PU(e,r){if(Dn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Dn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function EU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Jl(e,r)}function Jl(e,r){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,r)}function IU(e){var r=kU();return function(){var n=ku(e),i;if(r){var a=ku(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qU(this,i)}}function qU(e,r){if(r&&(Dn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TU(e)}function TU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ku(e)}function g_(e){var r=H(e.id);return Zl(e)&&(r+="-selectized"),(0,ve.default)(e).parent().parent().find('label[for="'+r+'"]')}function Zl(e){var r=(0,ve.default)(e).parent().find('script[data-for="'+H(e.id)+'"]');return r.length>0}var b_=function(e){EU(t,e);var r=IU(t);function t(){return SU(this,t),r.apply(this,arguments)}return OU(t,[{key:"find",value:function(i){return(0,ve.default)(i).find("select")}},{key:"getType",value:function(i){var a=(0,ve.default)(i);return a.hasClass("symbol")?a.attr("multiple")==="multiple"?"shiny.symbolList":"shiny.symbol":null}},{key:"getId",value:function(i){return se.prototype.getId.call(this,i)||i.name}},{key:"getValue",value:function(i){if(Zl(i)){var a=this._selectize(i);return a==null?void 0:a.getValue()}else return(0,ve.default)(i).val()}},{key:"setValue",value:function(i,a){if(!Zl(i))(0,ve.default)(i).val(a);else{var s=this._selectize(i);s==null||s.setValue(a)}}},{key:"getState",value:function(i){for(var a=new Array(i.length),s=0;s<i.length;s++)a[s]={value:i[s].value,label:i[s].label};return{label:g_(i),value:this.getValue(i),options:a}}},{key:"receiveMessage",value:function(i,a){var s=(0,ve.default)(i);if(F(a,"options")){var c=this._selectize(i);c==null||c.destroy(),s.empty().append(a.options),this._selectize(i)}if(F(a,"config")&&(s.parent().find('script[data-for="'+H(i.id)+'"]').replaceWith(a.config),this._selectize(i,!0)),F(a,"url")){var l=this._selectize(i);l.clear(),l.clearOptions();var p=!1;l.settings.load=function(m,y){var g=l.settings;ve.default.ajax({url:a.url,data:{query:m,field:JSON.stringify([g.searchField]),value:g.valueField,conju:g.searchConjunction,maxop:g.maxOptions},type:"GET",error:function(){y()},success:function(O){ve.default.each(O,function(x,T){var E=T[g.optgroupField||"optgroup"],P={};P[g.optgroupLabelField||"label"]=E,P[g.optgroupValueField||"value"]=E,l.addOptionGroup(E,P)}),y(O),p||(F(a,"value")?l.setValue(a.value):g.maxItems===1&&l.setValue(O[0].value)),p=!0}})},l.load(function(m){l.settings.load.apply(l,["",m])})}else F(a,"value")&&this.setValue(i,a.value);Pe(a.label,g_(i)),(0,ve.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){var s=this;(0,ve.default)(i).on("change.selectInputBinding",function(){i.nonempty&&s.getValue(i)===""||a(!1)})}},{key:"unsubscribe",value:function(i){(0,ve.default)(i).off(".selectInputBinding")}},{key:"initialize",value:function(i){this._selectize(i)}},{key:"_selectize",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!!ve.default.fn.selectize){var s=(0,ve.default)(i),c=s.parent().find('script[data-for="'+H(i.id)+'"]');if(c.length!==0){var l=ve.default.extend({labelField:"label",valueField:"value",searchField:["label"]},JSON.parse(c.html()));typeof c.data("nonempty")!="undefined"?(i.nonempty=!0,l=ve.default.extend(l,{onItemRemove:function(g){this.getValue()===""&&(0,ve.default)("select#"+H(i.id)).empty().append((0,ve.default)("<option/>",{value:g,selected:!0})).trigger("change")},onDropdownClose:function(){this.getValue()===""&&this.setValue((0,ve.default)("select#"+H(i.id)).val())}})):i.nonempty=!1,c.data("eval")instanceof Array&&ve.default.each(c.data("eval"),function(y,g){l[g]=It("("+l[g]+")")});var p=s.selectize(l)[0].selectize;if(a){var m=ve.default.extend(p.settings,l);p.destroy(),p=s.selectize(m)[0].selectize}return p}}}}]),t}(se);var Dre=N(de());var Qre=N(V());var me=N(Y());function Bn(e){return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bn(e)}function xU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function w_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AU(n.key),n)}}function RU(e,r,t){return r&&w_(e.prototype,r),t&&w_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AU(e){var r=$U(e,"string");return Bn(r)==="symbol"?r:String(r)}function $U(e,r){if(Bn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Bn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function NU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&rp(e,r)}function rp(e,r){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rp(e,r)}function jU(e){var r=DU();return function(){var n=xu(e),i;if(r){var a=xu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return LU(this,i)}}function LU(e,r){if(r&&(Bn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CU(e)}function CU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xu(e)}function Ru(e){e.$cache&&e.$cache.input?e.$cache.input.trigger("change"):console.log("Couldn't force ion slider to update")}function S_(e,r,t){var n,i;return e==="date"?(n=window.strftime.utc(),i=function(s){return n(r,new Date(s))}):e==="datetime"?(t?n=window.strftime.timezone(t):n=window.strftime,i=function(s){return n(r,new Date(s))}):i=function(s){return MU(s,this.prettify_separator)},i}function BU(e){return(0,me.default)(e).parent().find('label[for="'+H(e.id)+'"]')}function ep(e){return(0,me.default)(e).data("ionRangeSlider").options.type==="double"?2:1}var O_=function(e){NU(t,e);var r=jU(t);function t(){return xU(this,t),r.apply(this,arguments)}return RU(t,[{key:"find",value:function(i){return me.default.fn.ionRangeSlider?(0,me.default)(i).find("input.js-range-slider"):(0,me.default)()}},{key:"getType",value:function(i){var a=(0,me.default)(i).data("data-type");return a==="date"?"shiny.date":a==="datetime"?"shiny.datetime":null}},{key:"getValue",value:function(i){var a=(0,me.default)(i),s=(0,me.default)(i).data("ionRangeSlider").result,c,l=a.data("data-type");return l==="date"?c=function(m){return ir(new Date(Number(m)))}:l==="datetime"?c=function(m){return Number(m)/1e3}:c=function(m){return Number(m)},ep(i)===2?[c(s.from),c(s.to)]:c(s.from)}},{key:"setValue",value:function(i,a){var s=(0,me.default)(i),c=s.data("ionRangeSlider");s.data("immediate",!0);try{ep(i)===2&&a instanceof Array?c.update({from:a[0],to:a[1]}):c.update({from:a}),Ru(c)}finally{s.data("immediate",!1)}}},{key:"subscribe",value:function(i,a){(0,me.default)(i).on("change.sliderInputBinding",function(){a(!(0,me.default)(i).data("immediate")&&!(0,me.default)(i).data("animating"))})}},{key:"unsubscribe",value:function(i){(0,me.default)(i).off(".sliderInputBinding")}},{key:"receiveMessage",value:function(i,a){var s=(0,me.default)(i),c=s.data("ionRangeSlider"),l={};if(F(a,"value"))if(ep(i)===2&&a.value instanceof Array)l.from=a.value[0],l.to=a.value[1];else{if(Array.isArray(a.value)){var p=["an empty array.","a single-value array.","an array with more than two values."];throw"Slider requires two values to update with an array, but message value was "+p[Math.min(a.value.length,2)]}l.from=a.value}for(var m=["min","max","step"],y=0;y<m.length;y++){var g=m[y];F(a,g)&&(l[g]=a[g])}Pe(a.label,BU(i));for(var b=["data-type","time-format","timezone"],O=0;O<b.length;O++){var x=b[O];F(a,x)&&s.data(x,a[x])}var T=s.data("data-type"),E=s.data("time-format"),P=s.data("timezone");l.prettify=S_(T,E,P),s.data("immediate",!0);try{c.update(l),Ru(c)}finally{s.data("immediate",!1)}}},{key:"getRatePolicy",value:function(i){return{policy:"debounce",delay:250}}},{key:"getState",value:function(i){}},{key:"initialize",value:function(i){var a=(0,me.default)(i),s=a.data("data-type"),c=a.data("time-format"),l=a.data("timezone"),p={prettify:S_(s,c,l)};a.ionRangeSlider(p)}}]),t}(lo);function MU(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:",",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".",n=e.toString().split(".");return n[0]=n[0].replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+r),n.length===1?n[0]:n.length===2?n[0]+t+n[1]:""}(0,me.default)(document).on("click",".slider-animate-button",function(e){e.preventDefault();var r=(0,me.default)(this),t=(0,me.default)("#"+H(r.attr("data-target-id"))),n="Play",i="Pause",a=r.attr("data-loop")!==void 0&&!/^\s*false\s*$/i.test(r.attr("data-loop")),s=r.attr("data-interval");if(isNaN(s)?s=1500:s=Number(s),t.data("animTimer"))clearTimeout(t.data("animTimer")),t.removeData("animTimer"),r.attr("title",n),r.removeClass("playing"),t.removeData("animating");else{var c;if(t.hasClass("jslider")){var l=t.slider();l.canStepNext()||l.resetToStart(),c=setInterval(function(){a&&!l.canStepNext()?l.resetToStart():(l.stepNext(),!a&&!l.canStepNext()&&r.click())},s)}else{var p=t.data("ionRangeSlider"),m=function(){return p.options.type==="double"?p.result.to<p.result.max:p.result.from<p.result.max},y=function(){var O={from:p.result.min};p.options.type==="double"&&(O.to=O.from+(p.result.to-p.result.from)),p.update(O),Ru(p)},g=function(){var O={from:Math.min(p.result.max,p.result.from+p.options.step)};p.options.type==="double"&&(O.to=Math.min(p.result.max,p.result.to+p.options.step)),p.update(O),Ru(p)};m()||y(),c=setInterval(function(){a&&!m()?y():(g(),!a&&!m()&&r.click())},s)}t.data("animTimer",c),r.attr("title",i),r.addClass("playing"),t.data("animating",!0)}});var mte=N(V());var Je=N(Y());function Mn(e){return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mn(e)}function GU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function __(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UU(n.key),n)}}function FU(e,r,t){return r&&__(e.prototype,r),t&&__(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UU(e){var r=VU(e,"string");return Mn(r)==="symbol"?r:String(r)}function VU(e,r){if(Mn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Mn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function zU(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&tp(e,r)}function tp(e,r){return tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tp(e,r)}function HU(e){var r=YU();return function(){var n=Au(e),i;if(r){var a=Au(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return KU(this,i)}}function KU(e,r){if(r&&(Mn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WU(e)}function WU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YU(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Au(e){return Au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Au(e)}function P_(e){return e.attr("data-value")||e.text()}var E_=function(e){zU(t,e);var r=HU(t);function t(){return GU(this,t),r.apply(this,arguments)}return FU(t,[{key:"find",value:function(i){return(0,Je.default)(i).find("ul.nav.shiny-tab-input")}},{key:"getValue",value:function(i){var a=Tl()?(0,Je.default)(i).find("li:not(.dropdown).active > a"):(0,Je.default)(i).find(".nav-link:not(.dropdown-toggle).active, .dropdown-menu .dropdown-item.active");return a.length===1?P_(a):null}},{key:"setValue",value:function(i,a){var s=!1;if(a){var c=Tl()?(0,Je.default)(i).find("li:not(.dropdown) > a"):(0,Je.default)(i).find(".nav-link:not(.dropdown-toggle), .dropdown-menu .dropdown-item");c.each(function(){if(P_((0,Je.default)(this))===a)return(0,Je.default)(this).tab("show"),s=!0,!1})}s||(0,Je.default)(i).trigger("change")}},{key:"getState",value:function(i){return{value:this.getValue(i)}}},{key:"receiveMessage",value:function(i,a){F(a,"value")&&this.setValue(i,a.value),(0,Je.default)(i).trigger("change")}},{key:"subscribe",value:function(i,a){(0,Je.default)(i).on("change shown.bootstrapTabInputBinding shown.bs.tab.bootstrapTabInputBinding",function(){a(!1)})}},{key:"unsubscribe",value:function(i){(0,Je.default)(i).off(".bootstrapTabInputBinding")}}]),t}(se);var jte=N(V());var q_=N(Y());function Gn(e){return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gn(e)}function XU(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function I_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JU(n.key),n)}}function QU(e,r,t){return r&&I_(e.prototype,r),t&&I_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JU(e){var r=ZU(e,"string");return Gn(r)==="symbol"?r:String(r)}function ZU(e,r){if(Gn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Gn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function eV(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&np(e,r)}function np(e,r){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},np(e,r)}function rV(e){var r=iV();return function(){var n=$u(e),i;if(r){var a=$u(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return tV(this,i)}}function tV(e,r){if(r&&(Gn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nV(e)}function nV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iV(){if(typeof Reflect=="undefined"||!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(e){return!1}}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$u(e)}var T_=function(e){eV(t,e);var r=rV(t);function t(){return XU(this,t),r.apply(this,arguments)}return QU(t,[{key:"find",value:function(i){return(0,q_.default)(i).find("textarea")}}]),t}(Nn);function k_(){var e=new du;e.register(new Nn,"shiny.textInput"),e.register(new T_,"shiny.textareaInput"),e.register(new v_,"shiny.passwordInput"),e.register(new c_,"shiny.numberInput"),e.register(new iO,"shiny.checkboxInput"),e.register(new lO,"shiny.checkboxGroupInput"),e.register(new m_,"shiny.radioInput"),e.register(new O_,"shiny.sliderInput"),e.register(new yO,"shiny.dateInput"),e.register(new wO,"shiny.dateRangeInput"),e.register(new b_,"shiny.selectInput"),e.register(new tO,"shiny.actionButtonInput"),e.register(new E_,"shiny.bootstrapTabInput");var r=new YO;return e.register(r,"shiny.fileInputBinding"),{inputBindings:e,fileInputBinding:r}}var oV=M(),aV=W(),uV=di(),sV=Le(),fV=en(),cV=aV([].join),lV=uV!=Object,pV=lV||!fV("join",",");oV({target:"Array",proto:!0,forced:pV},{join:function(r){return cV(sV(this),r===void 0?",":r)}});var Oie=N(de());var Lie=N(V());var yr=N(Y());var lne=N(V());function ho(e){return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ho(e)}function vV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function x_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R_(n.key),n)}}function hV(e,r,t){return r&&x_(e.prototype,r),t&&x_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vo(e,r,t){return r=R_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function R_(e){var r=dV(e,"string");return ho(r)==="symbol"?r:String(r)}function dV(e,r){if(ho(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ho(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var ur=function(){function e(r,t,n){vV(this,e),vo(this,"target",void 0),vo(this,"func",void 0),vo(this,"delayMs",void 0),vo(this,"timerId",void 0),vo(this,"args",void 0),this.target=r,this.func=t,this.delayMs=n,this.timerId=null,this.args=null}return hV(e,[{key:"normalCall",value:function(){var t=this;this.$clearTimer();for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];this.args=i,this.timerId=setTimeout(function(){t.timerId!==null&&(t.$clearTimer(),t.$invoke())},this.delayMs)}},{key:"immediateCall",value:function(){this.$clearTimer();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.args=n,this.$invoke()}},{key:"isPending",value:function(){return this.timerId!==null}},{key:"$clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"$invoke",value:function(){this.args&&this.args.length>0?this.func.apply(this.target,this.args):this.func.apply(this.target),this.args=null}}]),e}();function zr(e,r){var t=null;return function n(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];t!==null&&(clearTimeout(t),t=null),t=setTimeout(function(){t!==null&&(t=null,r.apply(n,a))},e)}}var _ne=N(V());function mo(e){return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mo(e)}function mV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function A_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N_(n.key),n)}}function yV(e,r,t){return r&&A_(e.prototype,r),t&&A_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $_(e,r,t){return r=N_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function N_(e){var r=gV(e,"string");return mo(r)==="symbol"?r:String(r)}function gV(e,r){if(mo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(mo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var ip=function(){function e(r,t){mV(this,e),$_(this,"target",void 0),$_(this,"func",void 0),this.target=r,this.func=t}return yV(e,[{key:"normalCall",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.func.apply(this.target,n)}},{key:"immediateCall",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.func.apply(this.target,n)}}]),e}();var jne=N(V());function go(e){return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},go(e)}function bV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L_(n.key),n)}}function wV(e,r,t){return r&&j_(e.prototype,r),t&&j_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yo(e,r,t){return r=L_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function L_(e){var r=SV(e,"string");return go(r)==="symbol"?r:String(r)}function SV(e,r){if(go(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(go(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Fn=function(){function e(r,t,n){bV(this,e),yo(this,"target",void 0),yo(this,"func",void 0),yo(this,"delayMs",void 0),yo(this,"timerId",void 0),yo(this,"args",void 0),this.target=r,this.func=t,this.delayMs=n,this.timerId=null,this.args=null}return wV(e,[{key:"normalCall",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.args=n,this.timerId===null&&this.$invoke()}},{key:"immediateCall",value:function(){this.$clearTimer();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.args=n,this.$invoke()}},{key:"isPending",value:function(){return this.args!==null}},{key:"$clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"$invoke",value:function(){var t=this;this.args!==null&&(this.func.apply(this.target,this.args),this.args=null,this.timerId=setTimeout(function(){t.timerId!==null&&(t.$clearTimer(),t.isPending()&&t.$invoke())},this.delayMs))}}]),e}();var zne=N(de());var tie=N(V());var qt=N(Y());function Un(e){return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(e)}function op(){"use strict";op=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&Un(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function C_(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function OV(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){C_(a,n,i,s,c,"next",l)}function c(l){C_(a,n,i,s,c,"throw",l)}s(void 0)})}}function _V(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function D_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B_(n.key),n)}}function PV(e,r,t){return r&&D_(e.prototype,r),t&&D_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EV(e,r,t){return r=B_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function B_(e){var r=IV(e,"string");return Un(r)==="symbol"?r:String(r)}function IV(e,r){if(Un(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Un(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Ie=function(){function e(){_V(this,e),EV(this,"name",void 0)}return PV(e,[{key:"find",value:function(t){throw"Not implemented"}},{key:"renderValue",value:function(t,n){throw"Not implemented"}},{key:"getId",value:function(t){return t.getAttribute("data-input-id")||t.id}},{key:"onValueChange",value:function(){var r=OV(op().mark(function n(i,a){return op().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.clearError(i),c.next=3,this.renderValue(i,a);case 3:case"end":return c.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"onValueError",value:function(t,n){this.renderError(t,n)}},{key:"renderError",value:function(t,n){if(this.clearError(t),n.message===""){(0,qt.default)(t).empty();return}var i="shiny-output-error";n.type!==null&&(i=i+" "+qt.default.map(no(n.type),function(a){return i+"-"+a}).join(" ")),(0,qt.default)(t).addClass(i).text(n.message)}},{key:"clearError",value:function(t){(0,qt.default)(t).attr("class",function(n,i){return i.replace(/(^|\s)shiny-output-error\S*/g,"")})}},{key:"showProgress",value:function(t,n){var i="recalculating";n?(0,qt.default)(t).addClass(i):(0,qt.default)(t).removeClass(i)}}]),e}();function Vn(e){return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vn(e)}function qV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function M_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kV(n.key),n)}}function TV(e,r,t){return r&&M_(e.prototype,r),t&&M_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kV(e){var r=xV(e,"string");return Vn(r)==="symbol"?r:String(r)}function xV(e,r){if(Vn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Vn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function RV(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ap(e,r)}function ap(e,r){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ap(e,r)}function AV(e){var r=jV();return function(){var n=Nu(e),i;if(r){var a=Nu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return $V(this,i)}}function $V(e,r){if(r&&(Vn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NV(e)}function NV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jV(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Nu(e){return Nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nu(e)}var G_=function(e){RV(t,e);var r=AV(t);function t(){return qV(this,t),r.apply(this,arguments)}return TV(t,[{key:"find",value:function(i){return(0,yr.default)(i).find(".shiny-datatable-output")}},{key:"onValueError",value:function(i,a){ke(i),this.renderError(i,a)}},{key:"renderValue",value:function(i,a){var s,c,l,p,m=(0,yr.default)(i).empty();if(!(!a||!a.colnames)){var y=yr.default.makeArray(a.colnames),g=yr.default.map(y,function($){return"<th>"+$+"</th>"}).join("");g="<thead><tr>"+g+"</tr></thead>";var b="";(!((s=(c=a.options)===null||c===void 0?void 0:c.searching)!==null&&s!==void 0)||s)&&(b=yr.default.map(y,function($){return'<th><input type="text" placeholder="'+$0($.replace(/(<([^>]+)>)/gi,""))+'" /></th>'}).join(""),b="<tfoot>"+b+"</tfoot>");var O='<table class="table table-striped table-hover">'+g+b+"</table>";m.append(O),a.evalOptions&&yr.default.each(a.evalOptions,function($,R){a.options[R]=It("("+a.options[R]+")")});var x=((l=a.options)===null||l===void 0||(p=l.search)===null||p===void 0?void 0:p.caseInsensitive)!==!1,T=(0,yr.default)(i).children("table").DataTable(yr.default.extend({processing:!0,serverSide:!0,order:[],orderClasses:!1,pageLength:25,ajax:{url:a.action,type:"POST",data:function(R){R.search||(R.search={}),R.search.caseInsensitive=x,R.escape=a.escape}}},a.options));if(typeof a.callback=="string"){var E=It("("+a.callback+")");typeof E=="function"&&E(T)}m.find("label input").first().unbind("keyup").keyup(zr(a.searchDelay,function(){T.search(this.value).draw()}));var P=m.find("tfoot input");P.length>0&&(yr.default.each(T.settings()[0].aoColumns,function($,R){R.bSearchable||P.eq($).hide()}),P.keyup(zr(a.searchDelay,function(){T.column(P.index(this)).search(this.value).draw()}))),m.parents(".tab-content").css("overflow","visible")}}}]),t}(Ie);var ooe=N(V());var bo=N(Y());function zn(e){return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zn(e)}function LV(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function F_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DV(n.key),n)}}function CV(e,r,t){return r&&F_(e.prototype,r),t&&F_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DV(e){var r=BV(e,"string");return zn(r)==="symbol"?r:String(r)}function BV(e,r){if(zn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function MV(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&up(e,r)}function up(e,r){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},up(e,r)}function GV(e){var r=VV();return function(){var n=ju(e),i;if(r){var a=ju(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return FV(this,i)}}function FV(e,r){if(r&&(zn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UV(e)}function UV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VV(){if(typeof Reflect=="undefined"||!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(e){return!1}}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ju(e)}var U_=function(e){MV(t,e);var r=GV(t);function t(){return LV(this,t),r.apply(this,arguments)}return CV(t,[{key:"find",value:function(i){return(0,bo.default)(i).find("a.shiny-download-link")}},{key:"renderValue",value:function(i,a){i.setAttribute("href",a),i.classList.remove("disabled"),i.removeAttribute("aria-disabled"),i.removeAttribute("tabindex")}},{key:"showProgress",value:function(i,a){}}]),t}(Ie);(0,bo.default)(document).on("click.shinyDownloadLink","a.shiny-download-link",function(e){var r=bo.default.Event("shiny:filedownload");r.name=this.id,r.href=this.href,(0,bo.default)(document).trigger(r)});var Eae=N(V());var lP=N(Y());var Roe=N(de());var QV=M(),JV=sp().entries;QV({target:"Object",stat:!0},{entries:function(r){return JV(r)}});var Goe=N(V());var ZV=M(),ez=ie(),rz=We(),tz=bt(),nz=Qi(),iz=St(),oz=ou();ZV({target:"Promise",stat:!0,forced:oz},{allSettled:function(r){var t=this,n=tz.f(t),i=n.resolve,a=n.reject,s=nz(function(){var c=rz(t.resolve),l=[],p=0,m=1;iz(r,function(y){var g=p++,b=!1;m++,ez(c,t,y).then(function(O){b||(b=!0,l[g]={status:"fulfilled",value:O},--m||i(l))},function(O){b||(b=!0,l[g]={status:"rejected",reason:O},--m||i(l))})}),--m||i(l)});return s.error&&a(s.value),n.promise}});var Ge=N(Y());var boe=N(V());function wo(e){return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},wo(e)}function az(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function K_(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y_(n.key),n)}}function uz(e,r,t){return r&&K_(e.prototype,r),t&&K_(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W_(e,r,t){return r=Y_(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Y_(e){var r=sz(e,"string");return wo(r)==="symbol"?r:String(r)}function sz(e,r){if(wo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(wo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var fz=function(){function e(){az(this,e),W_(this,"regular",void 0),W_(this,"transitioned",void 0)}return uz(e,[{key:"setImageSend",value:function(t,n){var i=new ur(null,n,0);return this.regular=function(){i.normalCall()},t.lastChanceCallback.push(function(){i.isPending()&&i.immediateCall()}),this.transitioned=zr(200,this.regular),i}}]),e}(),sr=new fz;var Poe=N(de());var qr=N(Y()),cz=/<!--(SHINY.SINGLETON\[([\w]+)\])-->([\s\S]*?)<!--\/\1-->/,lz=/<head(?:\s[^>]*)?>([\s\S]*?)<\/head>/,Lu={};function fp(e,r,t){var n=hz(e);switch(vz(n.head),pz(n.singletons),t.toLowerCase()){case"replace":(0,qr.default)(r).html(n.html);break;case"beforebegin":(0,qr.default)(r).before(n.html);break;case"afterbegin":(0,qr.default)(r).prepend(n.html);break;case"beforeend":(0,qr.default)(r).append(n.html);break;case"afterend":(0,qr.default)(r).after(n.html);break;default:throw new Error("Unknown where position: "+t)}return n}function pz(e){qr.default.extend(Lu,e)}function X_(e){if(typeof e=="string")Lu[e]=!0;else if(e instanceof Array)for(var r=0;r<e.length;r++)Lu[e[r]]=!0}function vz(e){if(e.length>0)for(var r=(0,qr.default)("<div>"+e+"</div>").get(0),t=(0,qr.default)("head");r.hasChildNodes();)t.append(r.firstChild)}function hz(e){for(var r={},t,n=function(c,l,p,m){return Lu[p]||r[p]?"":(r[p]=!0,m)};t=e.replace(cz,n),e.length!==t.length;)e=t;for(var i=[],a=function(c,l){return i.push(l),""};t=e.replace(lz,a),e.length!==t.length;)e=t;return{html:e,head:i.join("\n"),singletons:r}}function fr(){"use strict";fr=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&So(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function Hn(e,r){return yz(e)||mz(e,r)||eP(e,r)||dz()}function dz(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mz(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,p=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){p=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function yz(e){if(Array.isArray(e))return e}function Z_(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=eP(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var p=t.next();return a=p.done,p},e:function(p){s=!0,c=p},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function eP(e,r){if(!!e){if(typeof e=="string")return Q_(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Q_(e,r)}}function Q_(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function So(e){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},So(e)}function J_(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function _o(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){J_(a,n,i,s,c,"next",l)}function c(l){J_(a,n,i,s,c,"throw",l)}s(void 0)})}}function Fe(e,r){return cp.apply(this,arguments)}function cp(){return cp=_o(fr().mark(function e(r,t){var n,i,a,s,c,l,p=arguments;return fr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return n=p.length>2&&p[2]!==void 0?p[2]:"replace",n==="replace"&&ke(r),i="",a=[],t===null?i="":typeof t=="string"?i=t:So(t)==="object"&&(i=t.html,a=t.deps||[]),y.next=7,Po(i,r,a,n);case 7:if(s=r,n!=="replace"){y.next=14;break}return fo(r),y.next=12,so(r);case 12:y.next=19;break;case 14:return c=(0,Ge.default)(r).parent(),c.length>0&&(s=c,(n==="beforeBegin"||n==="afterEnd")&&(l=c.parent(),l.length>0&&(s=l))),fo(s),y.next=19,so(s);case 19:case"end":return y.stop()}},e)})),cp.apply(this,arguments)}function rP(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"replace";t==="replace"&&ke(e);var n="",i=[];r===null?n="":typeof r=="string"?n=r:So(r)==="object"&&(n=r.html,i=r.deps||[]),dp(n,e,i,t);var a=e;if(t==="replace")return fo(e),so(e);var s=(0,Ge.default)(e).parent();if(s.length>0&&(a=s,t==="beforeBegin"||t==="afterEnd")){var c=s.parent();c.length>0&&(a=c)}return fo(a),so(a)}function Po(e,r,t){return lp.apply(this,arguments)}function lp(){return lp=_o(fr().mark(function e(r,t,n){var i,a=arguments;return fr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=a.length>3&&a[3]!==void 0?a[3]:"replace",c.next=3,Tt(n);case 3:return c.abrupt("return",fp(r,t,i));case 4:case"end":return c.stop()}},e)})),lp.apply(this,arguments)}function dp(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"replace";return mp(t),fp(e,r,n)}function Tt(e){return pp.apply(this,arguments)}function pp(){return pp=_o(fr().mark(function e(r){var t,n,i;return fr().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!r){s.next=18;break}t=Z_(r),s.prev=2,t.s();case 4:if((n=t.n()).done){s.next=10;break}return i=n.value,s.next=8,wz(i);case 8:s.next=4;break;case 10:s.next=15;break;case 12:s.prev=12,s.t0=s.catch(2),t.e(s.t0);case 15:return s.prev=15,t.f(),s.finish(15);case 18:case"end":return s.stop()}},e,null,[[2,12,15,18]])})),pp.apply(this,arguments)}function mp(e){if(e){var r=Z_(e),t;try{for(r.s();!(t=r.n()).done;){var n=t.value;Sz(n)}}catch(i){r.e(i)}finally{r.f()}}}var Oo={};function Cu(e,r){Oo[e]=r}function tP(e){if(!e.restyle)return!1;var r=Object.keys(Oo),t=r.indexOf(e.name);return t===-1?!1:Oo[r[t]]===e.version}function nP(e){var r=(0,Ge.default)("head").first(),t=function(s,c){var l=new XMLHttpRequest;l.open("GET",s),l.onload=function(){var p="shiny_restyle_"+s.split("?restyle")[0].replace(/\W/g,"_"),m=r.find("style#"+p),y=(0,Ge.default)("<style>").attr("id",p).html(l.responseText);r.append(y),m.remove(),i(c),sr.transitioned()},l.send()},n=function(s){if(!s)return null;for(var c=0;c<document.styleSheets.length;c++){var l=document.styleSheets[c];if(typeof l.href=="string"&&l.href.indexOf(s)>-1)return l}return null},i=function(s){!s||(s.disabled=!0,lt()&&(s.cssText=""),s.ownerNode instanceof Element&&(0,Ge.default)(s.ownerNode).remove())};e.map(function(a){var s=(0,Ge.default)(a),c=n(s.attr("href")),l=s.attr("href")+"?restyle="+new Date().getTime();lt()?t(l,c):(s.attr("href",l),s.attr("onload",function(){var p=(0,Ge.default)("<div>").css("transition","0.1s all").css("position","absolute").css("top","-1000px").css("left","0");p.one("transitionend",function(){p.remove(),i(c),sr.transitioned()}),(0,Ge.default)(document.body).append(p);var m="#"+Math.floor(Math.random()*16777215).toString(16);setTimeout(function(){return p.css("color",m)},10)}),r.append(a))})}function yp(e){return e.stylesheet.map(function(r){F(r,"rel")||(r.rel="stylesheet"),F(r,"type")||(r.type="text/css");var t=document.createElement("link");return Object.entries(r).forEach(function(n){var i=Hn(n,2),a=i[0],s=i[1];a==="href"&&(s=encodeURI(s)),t.setAttribute(a,s||"")}),t})}function iP(e,r){var t=yp(e);t.length!==0&&r.append(t)}function gz(e,r){e.script.forEach(function(t){var n=document.createElement("script");Object.entries(t).forEach(function(i){var a=Hn(i,2),s=a[0],c=a[1];s==="src"&&(c=encodeURI(c)),n.setAttribute(s,c||"")}),r.append(n)})}function bz(e){return vp.apply(this,arguments)}function vp(){return vp=_o(fr().mark(function e(r){var t;return fr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=[],r.script.forEach(function(a){var s=document.createElement("script");F(a,"async")||(s.async=!1),Object.entries(a).forEach(function(l){var p=Hn(l,2),m=p[0],y=p[1];m==="src"&&(y=encodeURI(y)),s.setAttribute(m,y||"")});var c=new Promise(function(l,p){s.onload=function(m){l(null)},s.onerror=function(m){p(m)}});t.push(c),document.head.append(s)}),i.next=4,Promise.allSettled(t);case 4:case"end":return i.stop()}},e)})),vp.apply(this,arguments)}function oP(e,r){e.meta.forEach(function(t){for(var n=document.createElement("meta"),i=0,a=Object.entries(t);i<a.length;i++){var s=Hn(a[i],2),c=s[0],l=s[1];n.setAttribute(c,l)}r.append(n)})}function aP(e,r){e.attachment.forEach(function(t){var n=(0,Ge.default)("<link rel='attachment'>").attr("id",e.name+"-"+t.key+"-attachment").attr("href",encodeURI(t.href));r.append(n)})}function uP(e,r){if(e.head){var t=(0,Ge.default)("<head></head>");t.html(e.head),r.append(t.children())}}function wz(e){return hp.apply(this,arguments)}function hp(){return hp=_o(fr().mark(function e(r){var t,n;return fr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=sP(r),!tP(t)){a.next=4;break}return nP(yp(t)),a.abrupt("return",!0);case 4:if(!F(Oo,t.name)){a.next=6;break}return a.abrupt("return",!1);case 6:return Cu(t.name,t.version),n=(0,Ge.default)("head").first(),oP(t,n),iP(t,n),a.next=12,bz(t);case 12:return aP(t,n),uP(t,n),a.abrupt("return",!0);case 15:case"end":return a.stop()}},e)})),hp.apply(this,arguments)}function Sz(e){var r=sP(e);if(tP(r))return nP(yp(r)),!0;if(F(Oo,r.name))return!1;Cu(r.name,r.version);var t=(0,Ge.default)("head").first();return oP(r,t),iP(r,t),gz(r,t),aP(r,t),uP(r,t),!0}function sP(e){var r,t=(r=e.src)===null||r===void 0?void 0:r.href,n={name:e.name,version:e.version,restyle:e.restyle,meta:[],stylesheet:[],script:[],attachment:[],head:e.head};e.meta&&(Array.isArray(e.meta)?n.meta=e.meta:n.meta=Object.entries(e.meta).map(function(s){var c=Hn(s,2),l=c[0],p=c[1];return{name:l,content:p}})),n.stylesheet=no(e.stylesheet).map(function(s){return typeof s=="string"&&(s={href:s}),t&&(s.href=t+"/"+s.href),s}),n.script=no(e.script).map(function(s){return typeof s=="string"&&(s={src:s}),t&&(s.src=t+"/"+s.src),s});var i=e.attachment;if(i||(i=[]),typeof i=="string"&&(i=[i]),Array.isArray(i)){var a=i;i=a.map(function(s,c){return typeof s=="string"?{key:(c+1).toString(),href:s}:s})}else i=Object.entries(i).map(function(s){var c=Hn(s,2),l=c[0],p=c[1];return{key:l,href:p}});return n.attachment=i.map(function(s){return t&&(s.href=t+"/"+s.href),s}),n}function kt(e){return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kt(e)}function gp(){"use strict";gp=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&kt(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function fP(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function Oz(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){fP(a,n,i,s,c,"next",l)}function c(l){fP(a,n,i,s,c,"throw",l)}s(void 0)})}}function _z(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function cP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ez(n.key),n)}}function Pz(e,r,t){return r&&cP(e.prototype,r),t&&cP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ez(e){var r=Iz(e,"string");return kt(r)==="symbol"?r:String(r)}function Iz(e,r){if(kt(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(kt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function qz(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&bp(e,r)}function bp(e,r){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bp(e,r)}function Tz(e){var r=Rz();return function(){var n=Du(e),i;if(r){var a=Du(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return kz(this,i)}}function kz(e,r){if(r&&(kt(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xz(e)}function xz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rz(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Du(e){return Du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Du(e)}var pP=function(e){qz(t,e);var r=Tz(t);function t(){return _z(this,t),r.apply(this,arguments)}return Pz(t,[{key:"find",value:function(i){return(0,lP.default)(i).find(".shiny-html-output")}},{key:"onValueError",value:function(i,a){ke(i),this.renderError(i,a)}},{key:"renderValue",value:function(){var n=Oz(gp().mark(function a(s,c){return gp().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Fe(s,c);case 2:case"end":return p.stop()}},a)}));function i(a,s){return n.apply(this,arguments)}return i}()}]),t}(Ie);var Az=M(),$z=Mr().filter,Nz=an(),jz=Nz("filter");Az({target:"Array",proto:!0,forced:!jz},{filter:function(r){return $z(this,r,arguments.length>1?arguments[1]:void 0)}});var ise=N(V());var Wr=N(Y());var Lz=M(),Cz=Mr().some,Dz=en(),Bz=Dz("some");Lz({target:"Array",proto:!0,forced:!Bz},{some:function(r){return Cz(this,r,arguments.length>1?arguments[1]:void 0)}});var Mz=M(),Gz=sp().values;Mz({target:"Object",stat:!0},{values:function(r){return Gz(r)}});var Fz=M(),Uz=ae(),Vz=hf(),zz=Le(),Hz=rr(),Kz=pt();Fz({target:"Object",stat:!0,sham:!Uz},{getOwnPropertyDescriptors:function(r){for(var t=zz(r),n=Hz.f,i=Vz(t),a={},s=0,c,l;i.length>s;)l=n(t,c=i[s++]),l!==void 0&&Kz(a,c,l);return a}});var Wz=M(),Yz=ae(),vP=Ea().f;Wz({target:"Object",stat:!0,forced:Object.defineProperties!==vP,sham:!Yz},{defineProperties:vP});var yue=N(V());var gP=N(Y());var mP=N(Y());function hP(e,r,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;a=a||!0;var s=(i-n)/(t-r),c=e-r,l=c*s+n;if(a){var p=Math.max(i,n),m=Math.min(i,n);l>p?l=p:l<m&&(l=m)}return l}function dP(e,r,t,n,i){return{scale:function(s,c){return i&&(s=Math.log(s)/Math.log(i)),hP(s,e,r,t,n,c)},scaleInv:function(s,c){var l=hP(s,t,n,e,r,c);return i&&(l=Math.pow(i,l)),l}}}function Xz(e){var r=e,t=r.domain,n=r.range,i=r.log&&r.log.x?r.log.x:null,a=r.log&&r.log.y?r.log.y:null,s=dP(t.left,t.right,n.left,n.right,i),c=dP(t.bottom,t.top,n.bottom,n.top,a);function l(m,y){return or(m,function(g,b){var O=b.substring(0,1);return O==="x"?s.scale(g,y):O==="y"?c.scale(g,y):null})}r.scaleDataToImg=l;function p(m,y){return or(m,function(g,b){var O=b.substring(0,1);return O==="x"?s.scaleInv(g,y):O==="y"?c.scaleInv(g,y):null})}return r.scaleImgToData=p,r.clipImg=function(m){var y={x:m.x,y:m.y},g=r.range;return m.x>g.right?y.x=g.right:m.x<g.left&&(y.x=g.left),m.y>g.bottom?y.y=g.bottom:m.y<g.top&&(y.y=g.top),y},r}function wp(e){return e.map(function(r){return Xz(r)})}function Qz(e){var r=e[0].getBoundingClientRect();return{x:r.width/e.outerWidth(),y:r.height/e.outerHeight()}}function Sp(e){var r=e.offset(),t=Qz(e),n={left:parseInt(e.css("border-left-width"))+parseInt(e.css("padding-left")),top:parseInt(e.css("border-top-width"))+parseInt(e.css("padding-top"))};return{x:r.left+t.x*n.left,y:r.top+t.y*n.top}}function Jz(e){var r={x:e.width()/e.outerWidth(),y:e.height()/e.outerHeight()},t=e[0].getBoundingClientRect();return{x:r.x*t.width,y:r.y*t.height}}function Op(e,r){var t=e.find("img"),n=t[0];if(r.panels.length===0){var i={top:0,left:0,right:n.naturalWidth-1,bottom:n.naturalHeight-1};r.panels[0]={domain:i,range:i,mapping:{}}}var a=r;a.dims.height=a.dims.height||n.naturalHeight,a.dims.width=a.dims.width||n.naturalWidth,a.panels=wp(r.panels),a.mouseOffsetCss=function(l){var p=Sp(t);return{x:l.pageX-p.x,y:l.pageY-p.y}};function s(l){var p=a.imgToCssScalingRatio(),m=or(l,function(y,g){var b=g.substring(0,1);return b==="x"?l[g]/p.x:b==="y"?l[g]/p.y:null});return m}a.scaleCssToImg=s;function c(l){var p=a.imgToCssScalingRatio(),m=or(l,function(y,g){var b=g.substring(0,1);return b==="x"?l[g]*p.x:b==="y"?l[g]*p.y:null});return m}return a.scaleImgToCss=c,a.imgToCssScalingRatio=function(){var l=Jz(t);return{x:l.x/a.dims.width,y:l.y/a.dims.height}},a.cssToImgScalingRatio=function(){var l=a.imgToCssScalingRatio();return{x:1/l.x,y:1/l.y}},a.getPanelCss=function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=a.scaleCssToImg(l),y=m.x,g=m.y,b=a.cssToImgScalingRatio(),O={x:p*b.x,y:p*b.y},x=[],T=[],E;for(E=0;E<a.panels.length;E++){var P=a.panels[E].range;if(y<=P.right+O.x&&y>=P.left-O.x&&g<=P.bottom+O.y&&g>=P.top-O.y){x.push(a.panels[E]);var $=0,R=0;y>P.right&&y<=P.right+O.x?$=y-P.right:y<P.left&&y>=P.left-O.x&&($=y-P.left),g>P.bottom&&g<=P.bottom+O.y?R=g-P.bottom:g<P.top&&g>=P.top-O.y&&(R=g-P.top),T.push(Math.sqrt(Math.pow($,2)+Math.pow(R,2)))}}if(x.length){var j=Math.min.apply(null,T);for(E=0;E<x.length;E++)if(T[E]===j)return x[E]}return null},a.isInPanelCss=function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return!!a.getPanelCss(l,p)},a.mouseCoordinateSender=function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return function(y){if(y===null){dr(l,null);return}var g=a.mouseOffsetCss(y);if(!a.isInPanelCss(g)){if(m){dr(l,null);return}if(p)return;var b={coords_css:g,coords_img:a.scaleCssToImg(g)};dr(l,b,{priority:"event"});return}var O=a.getPanelCss(g),x=a.scaleCssToImg(g),T=O.scaleImgToData(x),E={x:T==null?void 0:T.x,y:T==null?void 0:T.y,coords_css:g,coords_img:x,img_css_ratio:a.cssToImgScalingRatio()};mP.default.extend(E,O.panel_vars),E.mapping=O.mapping,E.domain=O.domain,E.range=O.range,E.log=O.log,dr(l,E,{priority:"event"})}},a}function Kn(e,r){return{xmin:Math.min(e.x,r.x),xmax:Math.max(e.x,r.x),ymin:Math.min(e.y,r.y),ymax:Math.max(e.y,r.y)}}function Hr(e,r,t){e instanceof Array||(e=[e]);var n=Math.max.apply(null,e),i=Math.min.apply(null,e),a=0;n>t?a=t-n:i<r&&(a=r-i);for(var s=[],c=0;c<e.length;c++)s[c]=e[c]+a;return s}function Eo(e){return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Eo(e)}function yP(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Bu(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?yP(Object(t),!0).forEach(function(n){Zz(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yP(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Zz(e,r,t){return r=eH(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function eH(e){var r=rH(e,"string");return Eo(r)==="symbol"?r:String(r)}function rH(e,r){if(Eo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Eo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _p(e,r,t,n){var i=10,a=e[0],s=null,c={},l=t.scaleCssToImg,p=t.scaleImgToCss;m();function m(){c.brushing=!1,c.dragging=!1,c.resizing=!1,c.down={x:NaN,y:NaN},c.up={x:NaN,y:NaN},c.resizeSides={left:!1,right:!1,top:!1,bottom:!1},c.boundsCss={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},c.boundsData={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},c.panel=null,c.changeStartBounds={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},s&&s.remove()}function y(){var w=e.find("#"+a.id+"_brush");return w.length>0}function g(){var w=e.find("#"+a.id+"_brush");if(w.length!==0){var I=w.data("bounds-data"),k=w.data("panel");if(!(!I||!k)){for(var A=0;A<t.panels.length;A++){var te=t.panels[A];if(ql(k.mapping,te.mapping)&&ql(k.panel_vars,te.panel_vars)){c.panel=t.panels[A];break}}if(c.panel===null){w.remove();return}s=w,P(I),j()}}}function b(){var w=P();Object.values(w).some(D0)||(P(w),j())}function O(w){var I=c.boundsCss;return w.x<=I.xmax&&w.x>=I.xmin&&w.y<=I.ymax&&w.y>=I.ymin}function x(w){var I=T(w);return I.left||I.right||I.top||I.bottom}function T(w){var I=c.boundsCss,k={xmin:I.xmin-i,xmax:I.xmax+i,ymin:I.ymin-i,ymax:I.ymax+i},A={left:!1,right:!1,top:!1,bottom:!1};return(r.brushDirection==="xy"||r.brushDirection==="x")&&w.y<=k.ymax&&w.y>=k.ymin&&(w.x<I.xmin&&w.x>=k.xmin?A.left=!0:w.x>I.xmax&&w.x<=k.xmax&&(A.right=!0)),(r.brushDirection==="xy"||r.brushDirection==="y")&&w.x<=k.xmax&&w.x>=k.xmin&&(w.y<I.ymin&&w.y>=k.ymin?A.top=!0:w.y>I.ymax&&w.y<=k.ymax&&(A.bottom=!0)),A}function E(w){if(w===void 0)return Bu({},c.boundsCss);var I={x:w.xmin,y:w.ymin},k={x:w.xmax,y:w.ymax},A=c.panel,te=A.range;r.brushClip&&(I=p(A.clipImg(l(I))),k=p(A.clipImg(l(k)))),r.brushDirection==="xy"||(r.brushDirection==="x"?(I.y=p({y:te.top}).y,k.y=p({y:te.bottom}).y):r.brushDirection==="y"&&(I.x=p({x:te.left}).x,k.x=p({x:te.right}).x)),c.boundsCss={xmin:I.x,xmax:k.x,ymin:I.y,ymax:k.y};var fe=A.scaleImgToData(l(I)),qe=A.scaleImgToData(l(k));c.boundsData=Kn(fe,qe),c.boundsData=or(c.boundsData,function(Ve){return Pl(Ve,14)}),s.data("bounds-data",c.boundsData),s.data("panel",c.panel)}function P(w){if(typeof w=="undefined")return Bu({},c.boundsData);var I=p(c.panel.scaleDataToImg(w));I=or(I,function(k){return Pl(k,13)}),E({xmin:Math.min(I.xmin,I.xmax),xmax:Math.max(I.xmin,I.xmax),ymin:Math.min(I.ymin,I.ymax),ymax:Math.max(I.ymin,I.ymax)})}function $(){return c.panel}function R(){s&&s.remove(),s=(0,gP.default)(document.createElement("div")).attr("id",a.id+"_brush").css({"background-color":r.brushFill,opacity:r.brushOpacity,"pointer-events":"none",position:"absolute"}).hide();var w="1px solid "+r.brushStroke;r.brushDirection==="xy"?s.css({border:w}):r.brushDirection==="x"?s.css({"border-left":w,"border-right":w}):r.brushDirection==="y"&&s.css({"border-top":w,"border-bottom":w}),e.append(s),s.offset({x:0,y:0}).width(0).outerHeight(0)}function j(){var w=Sp(e.find("img")),I=c.boundsCss;s.offset({top:w.y+I.ymin,left:w.x+I.xmin}).outerWidth(I.xmax-I.xmin+1).outerHeight(I.ymax-I.ymin+1)}function L(w){if(w===void 0)return c.down;c.down=w}function U(w){if(w===void 0)return c.up;c.up=w}function C(){return c.brushing}function B(){c.brushing=!0,R(),c.panel=t.getPanelCss(c.down,n),E(Kn(c.down,c.down)),j()}function D(w){E(Kn(c.down,w)),s.show(),j()}function z(){c.brushing=!1,E(Kn(c.down,c.up))}function f(){return c.dragging}function o(){c.dragging=!0,c.changeStartBounds=Bu({},c.boundsCss)}function u(w){var I=w.x-c.down.x,k=w.y-c.down.y,A=c.changeStartBounds,te={xmin:A.xmin+I,xmax:A.xmax+I,ymin:A.ymin+k,ymax:A.ymax+k};if(r.brushClip){var fe=c.panel,qe=fe.range,Ve=l(te),cr=[Ve.xmin,Ve.xmax],$r=[Ve.ymin,Ve.ymax];cr=Hr(cr,qe.left,qe.right),$r=Hr($r,qe.top,qe.bottom),te=p({xmin:cr[0],xmax:cr[1],ymin:$r[0],ymax:$r[1]})}E(te),j()}function v(){c.dragging=!1}function d(){return c.resizing}function h(){c.resizing=!0,c.changeStartBounds=Bu({},c.boundsCss),c.resizeSides=T(c.down)}function S(w){var I={x:w.x-c.down.x,y:w.y-c.down.y},k=l(I),A=l(c.changeStartBounds),te=c.panel,fe=te.range;if(c.resizeSides.left){var qe=Hr(A.xmin+k.x,fe.left,A.xmax)[0];A.xmin=qe}else if(c.resizeSides.right){var Ve=Hr(A.xmax+k.x,A.xmin,fe.right)[0];A.xmax=Ve}if(c.resizeSides.top){var cr=Hr(A.ymin+k.y,fe.top,A.ymax)[0];A.ymin=cr}else if(c.resizeSides.bottom){var $r=Hr(A.ymax+k.y,A.ymin,fe.bottom)[0];A.ymax=$r}E(p(A)),j()}function _(){c.resizing=!1}return{reset:m,hasOldBrush:y,importOldBrush:g,isInsideBrush:O,isInResizeArea:x,whichResizeSides:T,onResize:b,boundsCss:E,boundsData:P,getPanel:$,down:L,up:U,isBrushing:C,startBrushing:B,brushTo:D,stopBrushing:z,isDragging:f,startDragging:o,dragTo:u,stopDragging:v,isResizing:d,startResizing:h,resizeTo:S,stopResizing:_}}var bP=N(Y());function Pp(e,r,t){var n=void 0,i=null;function a(m,y){var g=bP.default.Event(m,{which:y.which,pageX:y.pageX,pageY:y.pageY});e.trigger(g)}function s(){i&&(a("mousedown2",i),i=null)}function c(m){i=m,n=window.setTimeout(function(){s()},t)}function l(m){if(m.which===1){if(!r){a("mousedown2",m);return}i===null?c(m):(clearTimeout(n),i&&Math.abs(i.pageX-m.pageX)>2||Math.abs(i.pageY-m.pageY)>2?(s(),c(m)):(i=null,a("dblclick2",m)))}}function p(m){m.which=1,a("dblclick2",m)}return{mousedown:l,dblclickIE8:p}}var Kr=N(Y());function Mu(e,r,t){var n=t.mouseCoordinateSender(e,r);return n(null),{mousedown:function(a){a.which===1&&n(a)},onResetImg:function(){n(null)},onResize:null}}function Ep(e,r,t,n,i,a){var s=a.mouseCoordinateSender(e,n,i),c;t==="throttle"?c=new Fn(null,s,r):c=new ur(null,s,r),c.immediateCall(null);var l;return i?l=function(){c.normalCall(null)}:l=function(){},{mousemove:function(m){c.normalCall(m)},mouseout:l,onResetImg:function(){c.immediateCall(null)},onResize:null}}function Ip(e,r,t,n,i){var a=20,s=_p(r,t,n,a);r.on("shiny-internal:brushed.image_output",function(R,j){j.brushId===e&&j.outputId!==i&&(r.data("mostRecentBrush",!1),s.reset())});function c(R){r.removeClass("crosshair grabbable grabbing ns-resize ew-resize nesw-resize nwse-resize"),R&&r.addClass(R)}function l(){var R=s.boundsData();if(isNaN(R.xmin)){dr(e,null),xt.find(document.documentElement).trigger("shiny-internal:brushed",{brushId:e,outputId:null});return}var j=s.getPanel();Kr.default.extend(R,j.panel_vars),R.coords_css=s.boundsCss(),R.coords_img=n.scaleCssToImg(R.coords_css),R.img_css_ratio=n.cssToImgScalingRatio(),R.mapping=j.mapping,R.domain=j.domain,R.range=j.range,R.log=j.log,R.direction=t.brushDirection,R.brushId=e,R.outputId=i,dr(e,R),r.data("mostRecentBrush",!0),xt.find(document.documentElement).trigger("shiny-internal:brushed",R)}var p;t.brushDelayType==="throttle"?p=new Fn(null,l,t.brushDelay):p=new ur(null,l,t.brushDelay),s.hasOldBrush()||p.immediateCall();function m(R){if(!(s.isBrushing()||s.isDragging()||s.isResizing())&&R.which===1){var j=n.mouseOffsetCss(R);if(!(t.brushClip&&!n.isInPanelCss(j,a)))if(s.up({x:NaN,y:NaN}),s.down(j),s.isInResizeArea(j))s.startResizing(j),(0,Kr.default)(document).on("mousemove.image_brush",O).on("mouseup.image_brush",E);else if(s.isInsideBrush(j))s.startDragging(j),c("grabbing"),(0,Kr.default)(document).on("mousemove.image_brush",b).on("mouseup.image_brush",T);else{var L=n.getPanelCss(j,a);s.startBrushing(L.clipImg(n.scaleCssToImg(j))),(0,Kr.default)(document).on("mousemove.image_brush",g).on("mouseup.image_brush",x)}}}function y(R){var j=n.mouseOffsetCss(R);if(!(s.isBrushing()||s.isDragging()||s.isResizing()))if(s.isInResizeArea(j)){var L=s.whichResizeSides(j);L.left&&L.top||L.right&&L.bottom?c("nwse-resize"):L.left&&L.bottom||L.right&&L.top?c("nesw-resize"):L.left||L.right?c("ew-resize"):(L.top||L.bottom)&&c("ns-resize")}else s.isInsideBrush(j)?c("grabbable"):n.isInPanelCss(j,a)?c("crosshair"):c(null)}function g(R){s.brushTo(n.mouseOffsetCss(R)),p.normalCall()}function b(R){s.dragTo(n.mouseOffsetCss(R)),p.normalCall()}function O(R){s.resizeTo(n.mouseOffsetCss(R)),p.normalCall()}function x(R){if(R.which===1){if((0,Kr.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),s.up(n.mouseOffsetCss(R)),s.stopBrushing(),c("crosshair"),s.down().x===s.up().x&&s.down().y===s.up().y){s.reset(),p.immediateCall();return}p.isPending()&&p.immediateCall()}}function T(R){R.which===1&&((0,Kr.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),s.up(n.mouseOffsetCss(R)),s.stopDragging(),c("grabbable"),p.isPending()&&p.immediateCall())}function E(R){R.which===1&&((0,Kr.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),s.up(n.mouseOffsetCss(R)),s.stopResizing(),p.isPending()&&p.immediateCall())}function P(){t.brushResetOnNew&&r.data("mostRecentBrush")&&(s.reset(),p.immediateCall())}t.brushResetOnNew||r.data("mostRecentBrush")&&(s.importOldBrush(),p.immediateCall());function $(){s.onResize(),p.immediateCall()}return{mousedown:m,mousemove:y,onResetImg:P,onResize:$}}function Wn(e,r){r.css("-webkit-user-drag","none"),r.off("dragstart.image_output"),r.on("dragstart.image_output",function(){return!1}),e.off("selectstart.image_output"),e.on("selectstart.image_output",function(){return!1})}function Yn(e){return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yn(e)}function tH(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function wP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iH(n.key),n)}}function nH(e,r,t){return r&&wP(e.prototype,r),t&&wP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iH(e){var r=oH(e,"string");return Yn(r)==="symbol"?r:String(r)}function oH(e,r){if(Yn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Yn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function aH(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&qp(e,r)}function qp(e,r){return qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qp(e,r)}function uH(e){var r=cH();return function(){var n=Gu(e),i;if(r){var a=Gu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sH(this,i)}}function sH(e,r){if(r&&(Yn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fH(e)}function fH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cH(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gu(e)}var lH=function(e){aH(t,e);var r=uH(t);function t(){return tH(this,t),r.apply(this,arguments)}return nH(t,[{key:"find",value:function(i){return(0,Wr.default)(i).find(".shiny-image-output, .shiny-plot-output")}},{key:"renderValue",value:function(i,a){var s=this.getId(i),c=(0,Wr.default)(i),l,p=c.find("img");if(p.length===0?(l=document.createElement("img"),c.append(l),p=(0,Wr.default)(l)):(l=p[0],p.trigger("reset")),!a){c.empty();return}var m={clickId:c.data("click-id"),clickClip:_e(Ot(c.data("click-clip")),!0),dblclickId:c.data("dblclick-id"),dblclickClip:_e(Ot(c.data("dblclick-clip")),!0),dblclickDelay:_e(c.data("dblclick-delay"),400),hoverId:c.data("hover-id"),hoverClip:_e(Ot(c.data("hover-clip")),!0),hoverDelayType:_e(c.data("hover-delay-type"),"debounce"),hoverDelay:_e(c.data("hover-delay"),300),hoverNullOutside:_e(Ot(c.data("hover-null-outside")),!1),brushId:c.data("brush-id"),brushClip:_e(Ot(c.data("brush-clip")),!0),brushDelayType:_e(c.data("brush-delay-type"),"debounce"),brushDelay:_e(c.data("brush-delay"),300),brushFill:_e(c.data("brush-fill"),"#666"),brushStroke:_e(c.data("brush-stroke"),"#000"),brushOpacity:_e(c.data("brush-opacity"),.3),brushDirection:_e(c.data("brush-direction"),"xy"),brushResetOnNew:_e(Ot(c.data("brush-reset-on-new")),!1),coordmap:a.coordmap};m.brushFill==="auto"&&(m.brushFill=io(c[0])),m.brushStroke==="auto"&&(m.brushStroke=pr(c[0],"color")),Wr.default.each(a,function(b,O){O===null||b==="coordmap"||(b==="src"&&O===l.getAttribute("src")&&l.removeAttribute("src"),l.setAttribute(b,O))});for(var y=0;y<l.attributes.length;y++){var g=l.attributes[y];g.specified&&!Xe(a,g.name)&&l.removeAttribute(g.name)}m.coordmap||(m.coordmap={panels:[],dims:{height:null,width:null}}),c.off(".image_output"),p.off(".image_output"),p.off("load.shiny_image_interaction"),p.one("load.shiny_image_interaction",function(){var b=m.coordmap=Op(c,m.coordmap),O=Pp(c,m.dblclickId,m.dblclickDelay);if(c.on("mousedown.image_output",O.mousedown),lt()&&ay()===8&&c.on("dblclick.image_output",O.dblclickIE8),m.clickId){Wn(c,p);var x=Mu(m.clickId,m.clickClip,b);c.on("mousedown2.image_output",x.mousedown),c.on("resize.image_output",x.onResize),p.on("reset.image_output",x.onResetImg)}if(m.dblclickId){Wn(c,p);var T=Mu(m.dblclickId,m.clickClip,b);c.on("dblclick2.image_output",T.mousedown),c.on("resize.image_output",T.onResize),p.on("reset.image_output",T.onResetImg)}if(m.hoverId){Wn(c,p);var E=Ep(m.hoverId,m.hoverDelay,m.hoverDelayType,m.hoverClip,m.hoverNullOutside,b);c.on("mousemove.image_output",E.mousemove),c.on("mouseout.image_output",E.mouseout),c.on("resize.image_output",E.onResize),p.on("reset.image_output",E.onResetImg)}if(m.brushId){Wn(c,p);var P=Ip(m.brushId,c,m,b,s);c.on("mousedown.image_output",P.mousedown),c.on("mousemove.image_output",P.mousemove),c.on("resize.image_output",P.onResize),p.on("reset.image_output",P.onResetImg)}(m.clickId||m.dblclickId||m.hoverId||m.brushId)&&c.addClass("crosshair"),a.error&&console.log("Error on server extracting coordmap: "+a.error)})}},{key:"renderError",value:function(i,a){(0,Wr.default)(i).find("img").trigger("reset"),Ie.prototype.renderError.call(this,i,a)}},{key:"clearError",value:function(i){(0,Wr.default)(i).contents().filter(function(){return!(this instanceof HTMLElement&&(this.tagName==="IMG"||this.id===i.id+"_brush"))}).remove(),Ie.prototype.clearError.call(this,i)}},{key:"resize",value:function(i,a,s){(0,Wr.default)(i).find("img").trigger("resize")}}]),t}(Ie),xt=new lH;var Ise=N(V());var kp=N(Y());function Xn(e){return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xn(e)}function pH(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function SP(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hH(n.key),n)}}function vH(e,r,t){return r&&SP(e.prototype,r),t&&SP(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hH(e){var r=dH(e,"string");return Xn(r)==="symbol"?r:String(r)}function dH(e,r){if(Xn(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Xn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function mH(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Tp(e,r)}function Tp(e,r){return Tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tp(e,r)}function yH(e){var r=wH();return function(){var n=Fu(e),i;if(r){var a=Fu(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return gH(this,i)}}function gH(e,r){if(r&&(Xn(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bH(e)}function bH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wH(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fu(e)}var OP=function(e){mH(t,e);var r=yH(t);function t(){return pH(this,t),r.apply(this,arguments)}return vH(t,[{key:"find",value:function(i){return(0,kp.default)(i).find(".shiny-text-output")}},{key:"renderValue",value:function(i,a){(0,kp.default)(i).text(a)}}]),t}(Ie);function _P(){var e=new du;return e.register(new OP,"shiny.textOutput"),e.register(new U_,"shiny.downloadLink"),e.register(new G_,"shiny.datatableOutput"),e.register(new pP,"shiny.htmlOutput"),e.register(xt,"shiny.imageOutput"),{outputBindings:e}}var GH=M(),FH=Uu(),UH=K(),VH=ce(),zH=Qn().onFreeze,$p=Object.freeze,HH=UH(function(){$p(1)});GH({target:"Object",stat:!0,forced:HH,sham:!FH},{freeze:function(r){return $p&&VH(r)?$p(zH(r)):r}});var cpe=N(V());GP();var Nfe=N(de(),1);var m8=M(),y8=Wf();m8({target:"Object",stat:!0},{is:y8});var g8=M(),b8=K(),w8=Ca().f,S8=b8(function(){return!Object.getOwnPropertyNames(1)});g8({target:"Object",stat:!0,forced:S8},{getOwnPropertyNames:w8});var O8=M(),Dp=X();O8({global:!0,forced:Dp.globalThis!==Dp},{globalThis:Dp});var Wfe=N(pn(),1);var Jfe=N(V(),1);nE();iE();var X8=M(),Q8=uE(),J8=Ne(),Z8=De(),eK=Sr(),rK=Ai();X8({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=J8(this),n=Z8(t),i=rK(t,0);return i.length=Q8(i,t,t,n,0,r===void 0?1:eK(r)),i}});var tK=tn();tK("flat");var ofe=N(de(),1);var ffe=N(V(),1);var sK=M(),fK=cE().left,cK=en(),lE=Yt(),lK=dn(),pK=!lK&&lE>79&&lE<83,vK=pK||!cK("reduce");sK({target:"Array",proto:!0,forced:vK},{reduce:function(r){var t=arguments.length;return fK(this,r,t,t>1?arguments[1]:void 0)}});function Ao(e){return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ao(e)}function dE(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=hK(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var p=t.next();return a=p.done,p},e:function(p){s=!0,c=p},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function hK(e,r){if(!!e){if(typeof e=="string")return pE(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return pE(e,r)}}function pE(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function dK(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function vE(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yK(n.key),n)}}function mK(e,r,t){return r&&vE(e.prototype,r),t&&vE(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yK(e){var r=gK(e,"string");return Ao(r)==="symbol"?r:String(r)}function gK(e,r){if(Ao(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ao(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Zu=globalThis,es=Zu.ShadowRoot&&(Zu.ShadyCSS===void 0||Zu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vp=Symbol(),hE=new WeakMap,zp=function(){function e(r,t,n){if(dK(this,e),this._$cssResult$=!0,n!==Vp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}return mK(e,[{key:"styleSheet",get:function(){var t=this.o,n=this.t;if(es&&t===void 0){var i=n!==void 0&&n.length===1;i&&(t=hE.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&hE.set(n,t))}return t}},{key:"toString",value:function(){return this.cssText}}]),e}(),mE=function(r){return new zp(typeof r=="string"?r:r+"",void 0,Vp)},$o=function(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var a=r.length===1?r[0]:n.reduce(function(s,c,l){return s+function(p){if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(c)+r[l+1]},r[0]);return new zp(a,r,Vp)},Hp=function(r,t){if(es)r.adoptedStyleSheets=t.map(function(l){return l instanceof CSSStyleSheet?l:l.styleSheet});else{var n=dE(t),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,s=document.createElement("style"),c=Zu.litNonce;c!==void 0&&s.setAttribute("nonce",c),s.textContent=a.cssText,r.appendChild(s)}}catch(l){n.e(l)}finally{n.f()}}},rs=es?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(r){var t="",n=dE(r.cssRules),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;t+=a.cssText}}catch(s){n.e(s)}finally{n.f()}return mE(t)}(e):e};function $t(e){return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$t(e)}var Kp,Wp,Yp;function ts(e){return SK(e)||wK(e)||rv(e)||bK()}function bK(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wK(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SK(e){if(Array.isArray(e))return Jp(e)}function ns(e,r){return PK(e)||_K(e,r)||rv(e,r)||OK()}function OK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _K(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,p=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){p=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function PK(e){if(Array.isArray(e))return e}function Qp(){"use strict";Qp=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&$t(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function yE(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function EK(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){yE(a,n,i,s,c,"next",l)}function c(l){yE(a,n,i,s,c,"throw",l)}s(void 0)})}}function Rt(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=rv(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var p=t.next();return a=p.done,p},e:function(p){s=!0,c=p},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function rv(e,r){if(!!e){if(typeof e=="string")return Jp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Jp(e,r)}}function Jp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function IK(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function gE(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TK(n.key),n)}}function qK(e,r,t){return r&&gE(e.prototype,r),t&&gE(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TK(e){var r=kK(e,"string");return $t(r)==="symbol"?r:String(r)}function kK(e,r){if($t(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if($t(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function xK(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&jo(e,r)}function RK(e){var r=SE();return function(){var n=Lo(e),i;if(r){var a=Lo(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return AK(this,i)}}function AK(e,r){if(r&&($t(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $K(e)}function $K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zp(e){var r=typeof Map=="function"?new Map:void 0;return Zp=function(n){if(n===null||!NK(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return is(n,arguments,Lo(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),jo(i,n)},Zp(e)}function is(e,r,t){return SE()?is=Reflect.construct.bind():is=function(i,a,s){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(i,c),p=new l;return s&&jo(p,s.prototype),p},is.apply(null,arguments)}function SE(){if(typeof Reflect=="undefined"||!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(e){return!1}}function NK(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function jo(e,r){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jo(e,r)}function Lo(e){return Lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lo(e)}var jK=Object.is,LK=Object.defineProperty,CK=Object.getOwnPropertyDescriptor,DK=Object.getOwnPropertyNames,BK=Object.getOwnPropertySymbols,MK=Object.getPrototypeOf,Zn=globalThis,bE=Zn.trustedTypes,GK=bE?bE.emptyScript:"",Xp=Zn.reactiveElementPolyfillSupport,No=function(r,t){return r},ev={toAttribute:function(r,t){switch(t){case Boolean:r=r?GK:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute:function(r,t){var n=r;switch(t){case Boolean:n=r!==null;break;case Number:n=r===null?null:Number(r);break;case Object:case Array:try{n=JSON.parse(r)}catch(i){n=null}}return n}},OE=function(r,t){return!jK(r,t)},wE={attribute:!0,type:String,converter:ev,reflect:!1,hasChanged:OE};(Kp=Symbol.metadata)!==null&&Kp!==void 0||(Symbol.metadata=Symbol("metadata")),(Wp=Zn.litPropertyMetadata)!==null&&Wp!==void 0||(Zn.litPropertyMetadata=new WeakMap);var At=function(e){xK(t,e);var r=RK(t);function t(){var n;return IK(this,t),n=r.call(this),n._$Ep=void 0,n.isUpdatePending=!1,n.hasUpdated=!1,n._$Em=null,n._$Ev(),n}return qK(t,[{key:"_$Ev",value:function(){var i=this,a;this._$Eg=new Promise(function(s){return i.enableUpdating=s}),this._$AL=new Map,this._$E_(),this.requestUpdate(),(a=this.constructor.l)===null||a===void 0||a.forEach(function(s){return s(i)})}},{key:"addController",value:function(i){var a,s;((a=this._$ES)!==null&&a!==void 0?a:this._$ES=[]).push(i),this.renderRoot!==void 0&&this.isConnected&&((s=i.hostConnected)===null||s===void 0||s.call(i))}},{key:"removeController",value:function(i){var a;(a=this._$ES)===null||a===void 0||a.splice(this._$ES.indexOf(i)>>>0,1)}},{key:"_$E_",value:function(){var i=new Map,a=this.constructor.elementProperties,s=Rt(a.keys()),c;try{for(s.s();!(c=s.n()).done;){var l=c.value;this.hasOwnProperty(l)&&(i.set(l,this[l]),delete this[l])}}catch(p){s.e(p)}finally{s.f()}i.size>0&&(this._$Ep=i)}},{key:"createRenderRoot",value:function(){var i,a=(i=this.shadowRoot)!==null&&i!==void 0?i:this.attachShadow(this.constructor.shadowRootOptions);return Hp(a,this.constructor.elementStyles),a}},{key:"connectedCallback",value:function(){var i,a;(i=this.renderRoot)!==null&&i!==void 0||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(a=this._$ES)===null||a===void 0||a.forEach(function(s){var c;return(c=s.hostConnected)===null||c===void 0?void 0:c.call(s)})}},{key:"enableUpdating",value:function(i){}},{key:"disconnectedCallback",value:function(){var i;(i=this._$ES)===null||i===void 0||i.forEach(function(a){var s;return(s=a.hostDisconnected)===null||s===void 0?void 0:s.call(a)})}},{key:"attributeChangedCallback",value:function(i,a,s){this._$AK(i,s)}},{key:"_$EO",value:function(i,a){var s=this.constructor.elementProperties.get(i),c=this.constructor._$Eu(i,s);if(c!==void 0&&s.reflect===!0){var l,p=(((l=s.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?s.converter:ev).toAttribute(a,s.type);this._$Em=i,p==null?this.removeAttribute(c):this.setAttribute(c,p),this._$Em=null}}},{key:"_$AK",value:function(i,a){var s=this.constructor,c=s._$Eh.get(i);if(c!==void 0&&this._$Em!==c){var l,p=s.getPropertyOptions(c),m=typeof p.converter=="function"?{fromAttribute:p.converter}:((l=p.converter)===null||l===void 0?void 0:l.fromAttribute)!==void 0?p.converter:ev;this._$Em=c,this[c]=m.fromAttribute(a,p.type),this._$Em=null}}},{key:"requestUpdate",value:function(i,a,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=arguments.length>4?arguments[4]:void 0;if(i!==void 0){var p,m;if((p=s)!==null&&p!==void 0||(s=this.constructor.getPropertyOptions(i)),!((m=s.hasChanged)!==null&&m!==void 0?m:OE)(c?l:this[i],a))return;this.C(i,a,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}},{key:"C",value:function(i,a,s){var c;this._$AL.has(i)||this._$AL.set(i,a),s.reflect===!0&&this._$Em!==i&&((c=this._$Ej)!==null&&c!==void 0?c:this._$Ej=new Set).add(i)}},{key:"_$EP",value:function(){var n=EK(Qp().mark(function a(){var s;return Qp().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.isUpdatePending=!0,l.prev=1,l.next=4,this._$Eg;case 4:l.next=9;break;case 6:l.prev=6,l.t0=l.catch(1),Promise.reject(l.t0);case 9:if(s=this.scheduleUpdate(),l.t1=s!=null,!l.t1){l.next=14;break}return l.next=14,s;case 14:return l.abrupt("return",!this.isUpdatePending);case 15:case"end":return l.stop()}},a,this,[[1,6]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(!!this.isUpdatePending){if(!this.hasUpdated){if(this._$Ep){var i=Rt(this._$Ep),a;try{for(i.s();!(a=i.n()).done;){var s=ns(a.value,2),c=s[0],l=s[1];this[c]=l}}catch(P){i.e(P)}finally{i.f()}this._$Ep=void 0}var p=this.constructor.elementProperties;if(p.size>0){var m=Rt(p),y;try{for(m.s();!(y=m.n()).done;){var g=ns(y.value,2),b=g[0],O=g[1];O.wrapped!==!0||this._$AL.has(b)||this[b]===void 0||this.C(b,this[b],O)}}catch(P){m.e(P)}finally{m.f()}}}var x=!1,T=this._$AL;try{var E;x=this.shouldUpdate(T),x?(this.willUpdate(T),(E=this._$ES)!==null&&E!==void 0&&E.forEach(function(P){var $;return($=P.hostUpdate)===null||$===void 0?void 0:$.call(P)}),this.update(T)):this._$ET()}catch(P){throw x=!1,this._$ET(),P}x&&this._$AE(T)}}},{key:"willUpdate",value:function(i){}},{key:"_$AE",value:function(i){var a;(a=this._$ES)!==null&&a!==void 0&&a.forEach(function(s){var c;return(c=s.hostUpdated)===null||c===void 0?void 0:c.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}},{key:"_$ET",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Eg}},{key:"shouldUpdate",value:function(i){return!0}},{key:"update",value:function(i){var a=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(s){return a._$EO(s,a[s])})),this._$ET()}},{key:"updated",value:function(i){}},{key:"firstUpdated",value:function(i){}}],[{key:"addInitializer",value:function(i){var a;this._$Ei(),((a=this.l)!==null&&a!==void 0?a:this.l=[]).push(i)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&ts(this._$Eh.keys())}},{key:"createProperty",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wE;if(a.state&&(a.attribute=!1),this._$Ei(),this.elementProperties.set(i,a),!a.noAccessor){var s=Symbol(),c=this.getPropertyDescriptor(i,s,a);c!==void 0&&LK(this.prototype,i,c)}}},{key:"getPropertyDescriptor",value:function(i,a,s){var c,l=(c=CK(this.prototype,i))!==null&&c!==void 0?c:{get:function(){return this[a]},set:function(g){this[a]=g}},p=l.get,m=l.set;return{get:function(){return p==null?void 0:p.call(this)},set:function(g){var b=p==null?void 0:p.call(this);m.call(this,g),this.requestUpdate(i,b,s)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(i){var a;return(a=this.elementProperties.get(i))!==null&&a!==void 0?a:wE}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(No("elementProperties"))){var i=MK(this);i.finalize(),i.l!==void 0&&(this.l=ts(i.l)),this.elementProperties=new Map(i.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(No("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(No("properties"))){var i=this.properties,a=[].concat(ts(DK(i)),ts(BK(i))),s=Rt(a),c;try{for(s.s();!(c=s.n()).done;){var l=c.value;this.createProperty(l,i[l])}}catch(L){s.e(L)}finally{s.f()}}var p=this[Symbol.metadata];if(p!==null){var m=litPropertyMetadata.get(p);if(m!==void 0){var y=Rt(m),g;try{for(y.s();!(g=y.n()).done;){var b=ns(g.value,2),O=b[0],x=b[1];this.elementProperties.set(O,x)}}catch(L){y.e(L)}finally{y.f()}}}this._$Eh=new Map;var T=Rt(this.elementProperties),E;try{for(T.s();!(E=T.n()).done;){var P=ns(E.value,2),$=P[0],R=P[1],j=this._$Eu($,R);j!==void 0&&this._$Eh.set(j,$)}}catch(L){T.e(L)}finally{T.f()}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(i){var a=[];if(Array.isArray(i)){var s=new Set(i.flat(1/0).reverse()),c=Rt(s),l;try{for(c.s();!(l=c.n()).done;){var p=l.value;a.unshift(rs(p))}}catch(m){c.e(m)}finally{c.f()}}else i!==void 0&&a.push(rs(i));return a}},{key:"_$Eu",value:function(i,a){var s=a.attribute;return s===!1?void 0:typeof s=="string"?s:typeof i=="string"?i.toLowerCase():void 0}}]),t}(Zp(HTMLElement));At.elementStyles=[],At.shadowRootOptions={mode:"open"},At[No("elementProperties")]=new Map,At[No("finalized")]=new Map,Xp!=null&&Xp({ReactiveElement:At}),((Yp=Zn.reactiveElementVersions)!==null&&Yp!==void 0?Yp:Zn.reactiveElementVersions=[]).push("2.0.0");var _ce=N(V(),1);var UK=ae(),ov=X(),Co=W(),VK=Zt(),zK=za(),HK=wr(),KK=jr().f,EE=br(),WK=ja(),IE=he(),YK=bl(),kE=qi(),XK=PE(),QK=Oe(),JK=K(),ZK=ue(),e3=Ce().enforce,r3=Hi(),t3=ne(),xE=Tf(),RE=kf(),n3=t3("match"),Xr=ov.RegExp,ei=Xr.prototype,i3=ov.SyntaxError,o3=Co(ei.exec),os=Co("".charAt),qE=Co("".replace),TE=Co("".indexOf),a3=Co("".slice),u3=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Nt=/a/g,tv=/a/g,s3=new Xr(Nt)!==Nt,AE=kE.MISSED_STICKY,f3=kE.UNSUPPORTED_Y,c3=UK&&(!s3||AE||xE||RE||JK(function(){return tv[n3]=!1,Xr(Nt)!=Nt||Xr(tv)==tv||Xr(Nt,"i")!="/a/i"})),l3=function(e){for(var r=e.length,t=0,n="",i=!1,a;t<=r;t++){if(a=os(e,t),a==="\\"){n+=a+os(e,++t);continue}!i&&a==="."?n+="[\\s\\S]":(a==="["?i=!0:a==="]"&&(i=!1),n+=a)}return n},p3=function(e){for(var r=e.length,t=0,n="",i=[],a={},s=!1,c=!1,l=0,p="",m;t<=r;t++){if(m=os(e,t),m==="\\")m=m+os(e,++t);else if(m==="]")s=!1;else if(!s)switch(!0){case m==="[":s=!0;break;case m==="(":o3(u3,a3(e,t+1))&&(t+=2,c=!0),n+=m,l++;continue;case(m===">"&&c):if(p===""||ZK(a,p))throw new i3("Invalid capture group name");a[p]=!0,i[i.length]=[p,l],c=!1,p="";continue}c?p+=m:n+=m}return[n,i]};if(VK("RegExp",c3)){for(Yr=function(r,t){var n=EE(ei,this),i=WK(r),a=t===void 0,s=[],c=r,l,p,m,y,g,b;if(!n&&i&&a&&r.constructor===Yr)return r;if((i||EE(ei,r))&&(r=r.source,a&&(t=YK(c))),r=r===void 0?"":IE(r),t=t===void 0?"":IE(t),c=r,xE&&"dotAll"in Nt&&(p=!!t&&TE(t,"s")>-1,p&&(t=qE(t,/s/g,""))),l=t,AE&&"sticky"in Nt&&(m=!!t&&TE(t,"y")>-1,m&&f3&&(t=qE(t,/y/g,""))),RE&&(y=p3(r),r=y[0],s=y[1]),g=zK(Xr(r,t),n?this:ei,Yr),(p||m||s.length)&&(b=e3(g),p&&(b.dotAll=!0,b.raw=Yr(l3(r),l)),m&&(b.sticky=!0),s.length&&(b.groups=s)),r!==c)try{HK(g,"source",c===""?"(?:)":c)}catch(O){}return g},nv=KK(Xr),iv=0;nv.length>iv;)XK(Yr,Xr,nv[iv++]);ei.constructor=Yr,Yr.prototype=ei,QK(ov,"RegExp",Yr,{constructor:!0})}var Yr,nv,iv;r3("RegExp");var xce=N(de(),1);var v3=ae(),h3=qi().MISSED_STICKY,d3=ze(),m3=Gr(),y3=Ce().get,$E=RegExp.prototype,g3=TypeError;v3&&h3&&m3($E,"sticky",{configurable:!0,get:function(){if(this!==$E){if(d3(this)==="RegExp")return!!y3(this).sticky;throw g3("Incompatible receiver, RegExp required")}}});var _3=M(),DE=ct(),P3=rr().f,E3=lr(),LE=he(),I3=as(),q3=Ke(),T3=us(),k3=$e(),CE=DE("".startsWith),x3=DE("".slice),R3=Math.min,BE=T3("startsWith"),A3=!k3&&!BE&&!!function(){var e=P3(String.prototype,"startsWith");return e&&!e.writable}();_3({target:"String",proto:!0,forced:!A3&&!BE},{startsWith:function(r){var t=LE(q3(this));I3(r);var n=E3(R3(arguments.length>1?arguments[1]:void 0,t.length)),i=LE(r);return CE?CE(t,i,n):x3(t,n,n+i.length)===i}});var $3=M(),FE=ct(),N3=rr().f,j3=lr(),ME=he(),L3=as(),C3=Ke(),D3=us(),B3=$e(),GE=FE("".endsWith),M3=FE("".slice),G3=Math.min,UE=D3("endsWith"),F3=!B3&&!UE&&!!function(){var e=N3(String.prototype,"endsWith");return e&&!e.writable}();$3({target:"String",proto:!0,forced:!F3&&!UE},{endsWith:function(r){var t=ME(C3(this));L3(r);var n=arguments.length>1?arguments[1]:void 0,i=t.length,a=n===void 0?i:G3(j3(n),i),s=ME(r);return GE?GE(t,s,a):M3(t,a-s.length,a)===s}});var z3=M(),H3=av(),K3=tn();z3({target:"Array",proto:!0},{fill:H3});K3("fill");var uv;function vv(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&cv(e,r)}function cv(e,r){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cv(e,r)}function hv(e){var r=X3();return function(){var n=ss(e),i;if(r){var a=ss(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return W3(this,i)}}function W3(e,r){if(r&&(Ct(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y3(e)}function Y3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X3(){if(typeof Reflect=="undefined"||!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(e){return!1}}function ss(e){return ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ss(e)}function dv(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=mv(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var p=t.next();return a=p.done,p},e:function(p){s=!0,c=p},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function Q3(e){return e5(e)||Z3(e)||mv(e)||J3()}function J3(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e5(e){if(Array.isArray(e))return lv(e)}function r5(e,r){return i5(e)||n5(e,r)||mv(e,r)||t5()}function t5(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mv(e,r){if(!!e){if(typeof e=="string")return lv(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lv(e,r)}}function lv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function n5(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,p=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){p=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function i5(e){if(Array.isArray(e))return e}function Jr(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function HE(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o5(n.key),n)}}function Zr(e,r,t){return r&&HE(e.prototype,r),t&&HE(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o5(e){var r=a5(e,"string");return Ct(r)==="symbol"?r:String(r)}function a5(e,r){if(Ct(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ct(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ct(e){return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ct(e)}var fs=globalThis,cs=fs.trustedTypes,KE=cs?cs.createPolicy("lit-html",{createHTML:function(r){return r}}):void 0,ZE="$lit$",Qr="lit$".concat((Math.random()+"").slice(9),"$"),eI="?"+Qr,u5="<".concat(eI,">"),Dt=document,Bo=function(){return Dt.createComment("")},Mo=function(r){return r===null||Ct(r)!="object"&&typeof r!="function"},rI=Array.isArray,s5=function(r){return rI(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function"},sv="[ \n\f\r]",Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,WE=/-->/g,YE=/>/g,jt=RegExp(">|".concat(sv,"(?:([^\\s\"'>=/]+)(").concat(sv,"*=").concat(sv,"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),XE=/'/g,QE=/"/g,tI=/^(?:script|style|textarea|title)$/i,nI=function(r){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return{_$litType$:r,strings:t,values:i}}},yv=nI(1),Qce=nI(2),Bt=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),JE=new WeakMap,Lt=Dt.createTreeWalker(Dt,129);function iI(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return KE!==void 0?KE.createHTML(r):r}var f5=function(r,t){for(var n=r.length-1,i=[],a,s=t===2?"<svg>":"",c=Do,l=0;l<n;l++){for(var p=r[l],m=void 0,y=void 0,g=-1,b=0;b<p.length&&(c.lastIndex=b,y=c.exec(p),y!==null);){var O;b=c.lastIndex,c===Do?y[1]==="!--"?c=WE:y[1]!==void 0?c=YE:y[2]!==void 0?(tI.test(y[2])&&(a=RegExp("</"+y[2],"g")),c=jt):y[3]!==void 0&&(c=jt):c===jt?y[0]===">"?(c=(O=a)!==null&&O!==void 0?O:Do,g=-1):y[1]===void 0?g=-2:(g=c.lastIndex-y[2].length,m=y[1],c=y[3]===void 0?jt:y[3]==='"'?QE:XE):c===QE||c===XE?c=jt:c===WE||c===YE?c=Do:(c=jt,a=void 0)}var x=c===jt&&r[l+1].startsWith("/>")?" ":"";s+=c===Do?p+u5:g>=0?(i.push(m),p.slice(0,g)+ZE+p.slice(g)+Qr+x):p+Qr+(g===-2?l:x)}return[iI(r,s+(r[n]||"<?>")+(t===2?"</svg>":"")),i]},pv=function(){function e(r,t){var n=r.strings,i=r._$litType$;Jr(this,e);var a;this.parts=[];var s=0,c=0,l=n.length-1,p=this.parts,m=f5(n,i),y=r5(m,2),g=y[0],b=y[1];if(this.el=e.createElement(g,t),Lt.currentNode=this.el.content,i===2){var O=this.el.content.firstChild;O.replaceWith.apply(O,Q3(O.childNodes))}for(;(a=Lt.nextNode())!==null&&p.length<l;){if(a.nodeType===1){if(a.hasAttributes()){var x=dv(a.getAttributeNames()),T;try{for(x.s();!(T=x.n()).done;){var E=T.value;if(E.endsWith(ZE)){var P=b[c++],$=a.getAttribute(E).split(Qr),R=/([.?@])?(.*)/.exec(P);p.push({type:1,index:s,name:R[2],strings:$,ctor:R[1]==="."?l5:R[1]==="?"?p5:R[1]==="@"?v5:ls}),a.removeAttribute(E)}else E.startsWith(Qr)&&(p.push({type:6,index:s}),a.removeAttribute(E))}}catch(B){x.e(B)}finally{x.f()}}if(tI.test(a.tagName)){var j=a.textContent.split(Qr),L=j.length-1;if(L>0){a.textContent=cs?cs.emptyScript:"";for(var U=0;U<L;U++)a.append(j[U],Bo()),Lt.nextNode(),p.push({type:2,index:++s});a.append(j[L],Bo())}}}else if(a.nodeType===8)if(a.data===eI)p.push({type:2,index:s});else for(var C=-1;(C=a.data.indexOf(Qr,C+1))!==-1;)p.push({type:7,index:s}),C+=Qr.length-1;s++}}return Zr(e,null,[{key:"createElement",value:function(t,n){var i=Dt.createElement("template");return i.innerHTML=t,i}}]),e}();function ri(e,r){var t,n,i,a,s,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(r===Bt)return r;var p=l!==void 0?(t=c._$Co)===null||t===void 0?void 0:t[l]:c._$Cl,m=Mo(r)?void 0:r._$litDirective$;return((n=p)===null||n===void 0?void 0:n.constructor)!==m&&((i=p)!==null&&i!==void 0&&(a=i._$AO)!==null&&a!==void 0&&a.call(i,!1),m===void 0?p=void 0:(p=new m(e),p._$AT(e,c,l)),l!==void 0?((s=c._$Co)!==null&&s!==void 0?s:c._$Co=[])[l]=p:c._$Cl=p),p!==void 0&&(r=ri(e,p._$AS(e,r.values),p,l)),r}var c5=function(){function e(r,t){Jr(this,e),this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}return Zr(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(t){var n,i=this._$AD,a=i.el.content,s=i.parts,c=((n=t==null?void 0:t.creationScope)!==null&&n!==void 0?n:Dt).importNode(a,!0);Lt.currentNode=c;for(var l=Lt.nextNode(),p=0,m=0,y=s[0];y!==void 0;){var g;if(p===y.index){var b=void 0;y.type===2?b=new gv(l,l.nextSibling,this,t):y.type===1?b=new y.ctor(l,y.name,y.strings,this,t):y.type===6&&(b=new h5(l,this,t)),this._$AV.push(b),y=s[++m]}p!==((g=y)===null||g===void 0?void 0:g.index)&&(l=Lt.nextNode(),p++)}return Lt.currentNode=Dt,c}},{key:"p",value:function(t){var n=0,i=dv(this._$AV),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,n),n+=s.strings.length-2):s._$AI(t[n])),n++}}catch(c){i.e(c)}finally{i.f()}}}]),e}(),gv=function(){function e(r,t,n,i){var a;Jr(this,e),this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=(a=i==null?void 0:i.isConnected)!==null&&a!==void 0?a:!0}return Zr(e,[{key:"_$AU",get:function(){var t,n;return(t=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&t!==void 0?t:this._$Cv}},{key:"parentNode",get:function(){var t,n=this._$AA.parentNode,i=this._$AM;return i!==void 0&&((t=n)===null||t===void 0?void 0:t.nodeType)===11&&(n=i.parentNode),n}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;t=ri(this,t,n),Mo(t)?t===ge||t==null||t===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):t!==this._$AH&&t!==Bt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):s5(t)?this.T(t):this._(t)}},{key:"k",value:function(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"$",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}},{key:"_",value:function(t){this._$AH!==ge&&Mo(this._$AH)?this._$AA.nextSibling.data=t:this.$(Dt.createTextNode(t)),this._$AH=t}},{key:"g",value:function(t){var n,i=t.values,a=t._$litType$,s=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=pv.createElement(iI(a.h,a.h[0]),this.options)),a);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===s)this._$AH.p(i);else{var c=new c5(s,this),l=c.u(this.options);c.p(i),this.$(l),this._$AH=c}}},{key:"_$AC",value:function(t){var n=JE.get(t.strings);return n===void 0&&JE.set(t.strings,n=new pv(t)),n}},{key:"T",value:function(t){rI(this._$AH)||(this._$AH=[],this._$AR());var n=this._$AH,i,a=0,s=dv(t),c;try{for(s.s();!(c=s.n()).done;){var l=c.value;a===n.length?n.push(i=new e(this.k(Bo()),this.k(Bo()),this,this.options)):i=n[a],i._$AI(l),a++}}catch(p){s.e(p)}finally{s.f()}a<n.length&&(this._$AR(i&&i._$AB.nextSibling,a),n.length=a)}},{key:"_$AR",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for((i=this._$AP)===null||i===void 0?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){var i,a=t.nextSibling;t.remove(),t=a}}},{key:"setConnected",value:function(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)===null||n===void 0||n.call(this,t))}}]),e}(),ls=function(){function e(r,t,n,i,a){Jr(this,e),this.type=1,this._$AH=ge,this._$AN=void 0,this.element=r,this.name=t,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ge}return Zr(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=this.strings,c=!1;if(s===void 0)t=ri(this,t,n,0),c=!Mo(t)||t!==this._$AH&&t!==Bt,c&&(this._$AH=t);else{var l=t,p,m;for(t=s[0],p=0;p<s.length-1;p++){var y;m=ri(this,l[i+p],n,p),m===Bt&&(m=this._$AH[p]),c||(c=!Mo(m)||m!==this._$AH[p]),m===ge?t=ge:t!==ge&&(t+=((y=m)!==null&&y!==void 0?y:"")+s[p+1]),this._$AH[p]=m}}c&&!a&&this.j(t)}},{key:"j",value:function(t){t===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}]),e}(),l5=function(e){vv(t,e);var r=hv(t);function t(){var n;return Jr(this,t),n=r.apply(this,arguments),n.type=3,n}return Zr(t,[{key:"j",value:function(i){this.element[this.name]=i===ge?void 0:i}}]),t}(ls),p5=function(e){vv(t,e);var r=hv(t);function t(){var n;return Jr(this,t),n=r.apply(this,arguments),n.type=4,n}return Zr(t,[{key:"j",value:function(i){this.element.toggleAttribute(this.name,!!i&&i!==ge)}}]),t}(ls),v5=function(e){vv(t,e);var r=hv(t);function t(n,i,a,s,c){var l;return Jr(this,t),l=r.call(this,n,i,a,s,c),l.type=5,l}return Zr(t,[{key:"_$AI",value:function(i){var a,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;if((i=(a=ri(this,i,s,0))!==null&&a!==void 0?a:ge)!==Bt){var c=this._$AH,l=i===ge&&c!==ge||i.capture!==c.capture||i.once!==c.once||i.passive!==c.passive,p=i!==ge&&(c===ge||l);l&&this.element.removeEventListener(this.name,this,c),p&&this.element.addEventListener(this.name,this,i),this._$AH=i}}},{key:"handleEvent",value:function(i){var a,s;typeof this._$AH=="function"?this._$AH.call((a=(s=this.options)===null||s===void 0?void 0:s.host)!==null&&a!==void 0?a:this.element,i):this._$AH.handleEvent(i)}}]),t}(ls),h5=function(){function e(r,t,n){Jr(this,e),this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}return Zr(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){ri(this,t)}}]),e}();var fv=fs.litHtmlPolyfillSupport;fv!=null&&fv(pv,gv),((uv=fs.litHtmlVersions)!==null&&uv!==void 0?uv:fs.litHtmlVersions=[]).push("3.0.0");var oI=function(r,t,n){var i,a=(i=n==null?void 0:n.renderBefore)!==null&&i!==void 0?i:t,s=a._$litPart$;if(s===void 0){var c,l=(c=n==null?void 0:n.renderBefore)!==null&&c!==void 0?c:null;a._$litPart$=s=new gv(t.insertBefore(Bo(),l),l,void 0,n!=null?n:{})}return s._$AI(r),s};var hle=N(V(),1);function ti(e){return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ti(e)}var bv,wv;function d5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function aI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y5(n.key),n)}}function m5(e,r,t){return r&&aI(e.prototype,r),t&&aI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y5(e){var r=g5(e,"string");return ti(r)==="symbol"?r:String(r)}function g5(e,r){if(ti(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ti(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Mt(){return typeof Reflect!="undefined"&&Reflect.get?Mt=Reflect.get.bind():Mt=function(r,t,n){var i=b5(r,t);if(!!i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Mt.apply(this,arguments)}function b5(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=kr(e),e!==null););return e}function w5(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Ov(e,r)}function Ov(e,r){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ov(e,r)}function S5(e){var r=_5();return function(){var n=kr(e),i;if(r){var a=kr(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return O5(this,i)}}function O5(e,r){if(r&&(ti(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uI(e)}function uI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _5(){if(typeof Reflect=="undefined"||!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(e){return!1}}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kr(e)}var Gt=function(e){w5(t,e);var r=S5(t);function t(){var n;return d5(this,t),n=r.apply(this,arguments),n.renderOptions={host:uI(n)},n._$Do=void 0,n}return m5(t,[{key:"createRenderRoot",value:function(){var i,a,s=Mt(kr(t.prototype),"createRenderRoot",this).call(this);return(a=(i=this.renderOptions).renderBefore)!==null&&a!==void 0||(i.renderBefore=s.firstChild),s}},{key:"update",value:function(i){var a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Mt(kr(t.prototype),"update",this).call(this,i),this._$Do=oI(a,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var i;Mt(kr(t.prototype),"connectedCallback",this).call(this),(i=this._$Do)===null||i===void 0||i.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var i;Mt(kr(t.prototype),"disconnectedCallback",this).call(this),(i=this._$Do)===null||i===void 0||i.setConnected(!1)}},{key:"render",value:function(){return Bt}}]),t}(At);Gt._$litElement$=!0,Gt["finalized"]=!0,(bv=globalThis.litElementHydrateSupport)===null||bv===void 0||bv.call(globalThis,{LitElement:Gt});var Sv=globalThis.litElementPolyfillSupport;Sv==null||Sv({LitElement:Gt});((wv=globalThis.litElementVersions)!==null&&wv!==void 0?wv:globalThis.litElementVersions=[]).push("4.0.0");var Fle=N(V());function ni(e){return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ni(e)}function sI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lI(n.key),n)}}function P5(e,r,t){return r&&sI(e.prototype,r),t&&sI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function I5(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Go(e,r)}function q5(e){var r=cI();return function(){var n=Fo(e),i;if(r){var a=Fo(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return T5(this,i)}}function T5(e,r){if(r&&(ni(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fI(e)}function fI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _v(e){var r=typeof Map=="function"?new Map:void 0;return _v=function(n){if(n===null||!k5(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return ps(n,arguments,Fo(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Go(i,n)},_v(e)}function ps(e,r,t){return cI()?ps=Reflect.construct.bind():ps=function(i,a,s){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(i,c),p=new l;return s&&Go(p,s.prototype),p},ps.apply(null,arguments)}function cI(){if(typeof Reflect=="undefined"||!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(e){return!1}}function k5(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Go(e,r){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Go(e,r)}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fo(e)}function x5(e,r,t){return r=lI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function lI(e){var r=R5(e,"string");return ni(r)==="symbol"?r:String(r)}function R5(e,r){if(ni(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ni(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var pI=function(e){I5(t,e);var r=q5(t);function t(n){var i,a=n.headline,s=n.message;return E5(this,t),i=r.call(this,s),x5(fI(i),"headline",void 0),i.name="ShinyClientError",i.headline=a,i}return P5(t)}(_v(Error));function Ft(e){return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ft(e)}var vI,hI,dI,mI,yI;function Pv(e){var r=typeof Map=="function"?new Map:void 0;return Pv=function(n){if(n===null||!A5(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return vs(n,arguments,Vo(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Uo(i,n)},Pv(e)}function vs(e,r,t){return wI()?vs=Reflect.construct.bind():vs=function(i,a,s){var c=[null];c.push.apply(c,a);var l=Function.bind.apply(i,c),p=new l;return s&&Uo(p,s.prototype),p},vs.apply(null,arguments)}function A5(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ev(){"use strict";Ev=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&Ft(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function gI(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function $5(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){gI(a,n,i,s,c,"next",l)}function c(l){gI(a,n,i,s,c,"throw",l)}s(void 0)})}}function qv(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function bI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SI(n.key),n)}}function Tv(e,r,t){return r&&bI(e.prototype,r),t&&bI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kv(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Uo(e,r)}function Uo(e,r){return Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uo(e,r)}function xv(e){var r=wI();return function(){var n=Vo(e),i;if(r){var a=Vo(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return N5(this,i)}}function N5(e,r){if(r&&(Ft(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iv(e)}function Iv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wI(){if(typeof Reflect=="undefined"||!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(e){return!1}}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vo(e)}function zo(e,r,t){return r=SI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function SI(e){var r=j5(e,"string");return Ft(r)==="symbol"?r:String(r)}function j5(e,r){if(Ft(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ft(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ho(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var OI=$o(vI||(vI=Ho(["\n button {\n background-color: transparent;\n outline: none;\n border-style: none;\n padding: var(--space-3);\n border-radius: var(--space-1);\n font-size: var(--font-lg);\n background-color: inherit;\n display: block;\n }\n\n button > svg {\n display: block;\n }\n"]))),_I=function(e){kv(t,e);var r=xv(t);function t(){return qv(this,t),r.apply(this,arguments)}return Tv(t,[{key:"toggleCollapsed",value:function(){var i;this.classList.toggle("collapsed"),(i=this.querySelector(".toggle-button"))===null||i===void 0||i.blur()}},{key:"handleDismissAll",value:function(){var i=this;this.classList.add("leaving"),this.addEventListener("animationend",function(){i.remove()})}},{key:"render",value:function(){return yv(hI||(hI=Ho([' <div class="header">\n <span class="title"> Shiny Client Errors </span>\n <button\n class="close-button"\n @click=','\n title="Dismiss all console messages and close console"\n >\n <svg\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n height="1em"\n width="1em"\n stroke="currentColor"\n class="close-icon"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M6 18L18 6M6 6l12 12"\n />\n </svg>\n Dismiss all\n </button>\n <button class="toggle-button" @click=','>\n <svg\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n height="1em"\n width="1em"\n stroke="currentColor"\n class="toggle-icon"\n >\n <path\n class="collapse"\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"\n />\n </svg>\n </button>\n </div>\n <slot class="content"></slot>'])),this.handleDismissAll,this.toggleCollapsed)}}]),t}(Gt);zo(_I,"styles",[$o(mI||(mI=Ho(["\n :host {\n /* We declare hard pixel values here to avoid body font size changes\n messing up the size of the console. This was an issue with bslib setting\n the body font-size at 16px relative to base shiny's 14px. */\n --font-md: 14px;\n --font-lg: 16px;\n --font-xl: 18px;\n\n /* These are all taken from open-props */\n --space-1: 6px;\n --space-2: calc(var(--space-1) * 2);\n --space-3: calc(var(--space-1) * 3);\n --space-4: calc(var(--space-1) * 4);\n --space-8: calc(var(--space-1) * 8);\n\n --red-2: #ffc9c9;\n --red-6: #fa5252;\n --red-7: #f03e3e;\n --red-8: #e03131;\n --red-10: #b02525;\n --red-11: #962020;\n --red-12: #7d1a1a;\n\n --gray-1: #f8f9fa;\n --gray-2: #e9ecef;\n --gray-3: #dee2e6;\n --gray-4: #ced4da;\n --gray-6: #868e96;\n --gray-8: #6c757d;\n\n --green-8: #51cf66;\n\n --shadow-color: 220 3% 15%;\n --shadow-strength: 1%;\n --shadow-3: 0 -1px 3px 0 hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 2%)),\n 0 1px 2px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 2%)),\n 0 2px 5px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 4%)),\n 0 4px 12px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 5%)),\n 0 12px 15px -5px hsl(var(--shadow-color) /\n calc(var(--shadow-strength) + 7%));\n\n --ring-shadow: 0 0 0 1px var(--gray-2);\n\n /* How fast should the message pop in and out of the screen? */\n --animation-speed: 500ms;\n\n /* Taken from open-props */\n --ease-3: cubic-bezier(0.25, 0, 0.3, 1);\n --animation-slide-in-left: slide-in-left var(--animation-speed)\n var(--ease-3);\n\n --animation-slide-out-left: slide-out-left var(--animation-speed)\n var(--ease-3);\n --modal-bg-color: white;\n\n position: fixed;\n top: var(--space-1);\n right: var(--space-1);\n z-index: 1000;\n\n display: flex;\n flex-direction: column;\n\n background-color: var(--modal-bg-color);\n border-radius: var(--space-1);\n\n animation: var(--animation-slide-in-left);\n box-shadow: var(--shadow-3), var(--ring-shadow);\n\n /* Dont let the error console burst out of the viewport */\n max-height: calc(100vh - 2 * var(--space-1));\n }\n\n @keyframes slide-in-left {\n from {\n transform: translateX(100%);\n }\n }\n @keyframes slide-out-left {\n to {\n transform: translateX(100%);\n }\n }\n\n :host(.leaving) {\n animation: var(--animation-slide-out-left);\n }\n\n .header {\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n gap: var(--space-2);\n }\n\n .title {\n font-size: var(--font-xl);\n margin-right: auto;\n padding: var(--space-3);\n line-height: 1;\n font-weight: 600;\n color: var(--red-12);\n }\n\n ","\n\n button:hover {\n background-color: var(--gray-2);\n }\n\n .toggle-button {\n width: fit-content;\n border: none;\n aspect-ratio: 1;\n border-color: var(--gray-4);\n }\n\n .close-button {\n display: flex;\n align-items: center;\n color: var(--red-11);\n }\n\n .close-button > svg {\n margin-right: 3px;\n }\n\n .toggle-button:focus {\n outline: 1px solid black;\n }\n\n .toggle-icon {\n transition: transform var(--animation-speed) ease-in-out;\n }\n\n :host(.collapsed) .toggle-icon {\n transform: scaleX(-1) scaleY(-1);\n }\n\n :host(.collapsed) .close-button {\n display: none;\n }\n\n .content {\n display: block;\n padding-inline: var(--space-4);\n padding-block-start: 0;\n padding-block-end: var(--space-4);\n max-height: 100%;\n overflow: auto;\n }\n\n :host(.collapsed) .content {\n display: none;\n }\n "])),OI)]);customElements.define("shiny-error-console",_I);var Rv=function(e){kv(t,e);var r=xv(t);function t(){var n;qv(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r.call.apply(r,[this].concat(a)),zo(Iv(n),"headline",""),zo(Iv(n),"message",""),n}return Tv(t,[{key:"copyErrorToClipboard",value:function(){var n=$5(Ev().mark(function a(){var s=this;return Ev().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,navigator.clipboard.writeText(this.message);case 2:this.classList.add("copy-success"),setTimeout(function(){s.classList.remove("copy-success")},1e3);case 4:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"render",value:function(){return yv(dI||(dI=Ho(['\n <div class="container">\n <div class="decoration-container">\n <div class="vertical-line"></div>\n <div class="dot"></div>\n </div>\n <div class="contents">\n <h3>','</h3>\n <pre class="error-message">','</pre>\n </div>\n\n <div class="actions">\n <button\n class="copy-button"\n @click=','\n title="Copy error to clipboard"\n >\n <div class="copy-button-inner">\n <svg\n class="front"\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n stroke="currentColor"\n height="1em"\n width="1em"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184"\n />\n </svg>\n\n <svg\n class="back"\n xmlns="http://www.w3.org/2000/svg"\n fill="none"\n viewBox="0 0 24 24"\n stroke-width="1.5"\n stroke="currentColor"\n height="1em"\n width="1em"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"\n />\n </svg>\n </div>\n </button>\n </div>\n </div>\n '])),this.headline,this.message,this.copyErrorToClipboard)}}]),t}(Gt);zo(Rv,"properties",{headline:{},message:{}});zo(Rv,"styles",[$o(yI||(yI=Ho(['\n :host {\n color: var(--red-11);\n display: block;\n font-size: var(--font-md);\n\n position: relative;\n --icon-size: var(--font-lg)\n\n /* Reset box sizing */\n box-sizing: border-box;\n }\n\n .container {\n display: flex;\n gap: var(--space-2);\n }\n\n .contents {\n width: 40ch;\n display: flex;\n flex-direction: column;\n gap: var(--space-1);\n padding-block-start: 0;\n padding-block-end: var(--space-3);\n overflow: auto;\n }\n\n :host(:last-of-type) .contents {\n\n padding-block-end: var(--space-1);\n }\n\n .contents > h3 {\n font-size: 1em;\n font-weight: 500;\n color: var(--red-12);\n }\n\n .contents > * {\n margin-block: 0;\n }\n\n .error-message {\n font-family: "Courier New", Courier, monospace;\n white-space: pre-wrap;\n }\n\n .decoration-container {\n flex-shrink: 0;\n position: relative;\n\n --line-w: 2px;\n --dot-size: 11px;\n }\n\n :host(:hover) .decoration-container {\n --scale: 1.25;\n }\n\n .vertical-line {\n margin-inline: auto;\n width: var(--line-w);\n height: 100%;\n\n background-color: var(--red-10);\n }\n\n :host(:first-of-type) .vertical-line {\n height: calc(100% - var(--dot-size));\n margin-top: var(--dot-size);\n }\n\n .dot {\n position: absolute;\n width: var(--dot-size);\n height: var(--dot-size);\n top: calc(-1px + var(--dot-size) / 2);\n left: calc(50% - var(--dot-size) / 2);\n border-radius: 100%;\n transform: scale(var(--scale, 1));\n\n color: var(--red-6);\n background-color: var(--red-10);\n }\n\n .actions {\n transform: scaleX(0);\n transition: transform calc(var(--animation-speed) / 2) ease-in-out;\n display: flex;\n justify-content: center;\n flex-direction: column;\n }\n\n /* Delay transition on mouseout so the buttons don\'t jump away if the user\n overshoots them with their mouse */\n :host(:not(:hover)) .actions {\n transition-delay: 0.15s;\n }\n\n :host(:hover) .actions {\n transform: scaleX(1);\n }\n\n ',"\n\n .copy-button {\n padding: 0;\n width: var(--space-8);\n height: var(--space-8);\n position: relative;\n --pad: var(--space-2);\n }\n\n .copy-button-inner {\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n transition: transform 0.5s;\n transform-style: preserve-3d;\n }\n\n /* Animate flipping to the other side when the .copy-success class is\n added to the host */\n :host(.copy-success) .copy-button-inner {\n transform: rotateY(180deg);\n }\n\n /* Position the front and back side */\n .copy-button .front,\n .copy-button .back {\n --side: calc(100% - 2 * var(--pad));\n position: absolute;\n inset: var(--pad);\n height: var(--side);\n width: var(--side);\n -webkit-backface-visibility: hidden; /* Safari */\n backface-visibility: hidden;\n }\n\n .copy-button:hover .copy-button-inner {\n background-color: var(--gray-2);\n }\n\n /* Style the back side */\n .copy-button .back {\n --pad: var(--space-1);\n color: var(--green-8);\n transform: rotateY(180deg);\n }\n "])),OI)]);customElements.define("shiny-error-message",Rv);function PI(e){var r=e.headline,t=r===void 0?"":r,n=e.message,i=e.status,a=i===void 0?"warning":i,s="[shiny] ".concat(t).concat(t?" - ":"").concat(n);switch(a){case"error":console.error(s);break;case"warning":console.warn(s);break;default:console.log(s);break}if(!!ii.inDevMode()){var c=document.querySelector("shiny-error-console");c||(c=document.createElement("shiny-error-console"),document.body.appendChild(c));var l=document.createElement("shiny-error-message");l.setAttribute("headline",t),l.setAttribute("message",n),c.appendChild(l)}}function hs(e){var r=null,t="Error on client while running Shiny app";typeof e=="string"?r=e:e instanceof pI?(r=e.message,t=e.headline):e instanceof Error?r=e.message:r="Unknown error",PI({headline:t,message:r,status:"error"})}var EI=function(e){kv(t,e);var r=xv(t);function t(n){return qv(this,t),r.call(this,"shiny:client-message",{detail:n,bubbles:!0,cancelable:!0})}return Tv(t)}(Pv(CustomEvent));window.addEventListener("shiny:client-message",function(e){if(!(e instanceof CustomEvent))throw new Error("[shiny] shiny:client-message expected a CustomEvent");var r=e.detail,t=r.headline,n=r.message,i=r.status;if(!n)throw new Error("[shiny] shiny:client-message expected a `message` property in `event.detail`.");PI({headline:t,message:n,status:i})});function ds(e){dr(e,null),xt.find(document.documentElement).trigger("shiny-internal:brushed",{brushId:e,outputId:null})}var Vpe=N(V());function Ko(e){return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ko(e)}function L5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function II(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qI(n.key),n)}}function C5(e,r,t){return r&&II(e.prototype,r),t&&II(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oi(e,r,t){return r=qI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qI(e){var r=D5(e,"string");return Ko(r)==="symbol"?r:String(r)}function D5(e,r){if(Ko(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ko(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Av=function(){function e(r){L5(this,e),oi(this,"target",void 0),oi(this,"shinyapp",void 0),oi(this,"pendingData",{}),oi(this,"reentrant",!1),oi(this,"sendIsEnqueued",!1),oi(this,"lastChanceCallback",[]),this.shinyapp=r}return C5(e,[{key:"setInput",value:function(t,n,i){var a=this;this.pendingData[t]=n,this.reentrant||(i.priority==="event"?this._sendNow():this.sendIsEnqueued||this.shinyapp.taskQueue.enqueue(function(){a.sendIsEnqueued=!1,a._sendNow()}))}},{key:"_sendNow",value:function(){this.reentrant&&console.trace("Unexpected reentrancy in InputBatchSender!"),this.reentrant=!0;try{this.lastChanceCallback.forEach(function(n){return n()});var t=this.pendingData;this.pendingData={},this.shinyapp.sendInput(t)}finally{this.reentrant=!1}}}]),e}();var Wpe=N(de());var ive=N(V());function Wo(e){return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wo(e)}function B5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function TI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xI(n.key),n)}}function M5(e,r,t){return r&&TI(e.prototype,r),t&&TI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kI(e,r,t){return r=xI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xI(e){var r=G5(e,"string");return Wo(r)==="symbol"?r:String(r)}function G5(e,r){if(Wo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Wo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var $v=function(){function e(r){B5(this,e),kI(this,"pendingInput",{}),kI(this,"target",void 0),this.target=r}return M5(e,[{key:"setInput",value:function(t,n,i){/^\./.test(t)?this.target.setInput(t,n,i):this.pendingInput[t]={value:n,opts:i}}},{key:"submit",value:function(){for(var t in this.pendingInput)if(F(this.pendingInput,t)){var n=this.pendingInput[t],i=n.value,a=n.opts;this.target.setInput(t,i,a)}}}]),e}();var bve=N(V());var Nv=N(Y());function et(e){var r=e.split(":");return{name:r[0],inputType:r.length>1?r[1]:""}}function Yo(e){return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yo(e)}function F5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function RI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AI(n.key),n)}}function U5(e,r,t){return r&&RI(e.prototype,r),t&&RI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V5(e,r,t){return r=AI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function AI(e){var r=z5(e,"string");return Yo(r)==="symbol"?r:String(r)}function z5(e,r){if(Yo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Yo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var jv=function(){function e(r){F5(this,e),V5(this,"target",void 0),this.target=r}return U5(e,[{key:"setInput",value:function(t,n,i){var a=Nv.default.Event("shiny:inputchanged"),s=et(t);if(a.name=s.name,a.inputType=s.inputType,a.value=n,a.binding=i.binding||null,a.el=i.el||null,a.priority=i.priority,(0,Nv.default)(i.el||window.document).trigger(a),!a.isDefaultPrevented()){var c=a.name;a.inputType!==""&&(c+=":"+a.inputType),this.target.setInput(c,a.value,{priority:i.priority})}}}]),e}();var Eve=N(pn());var Nve=N(V());function Xo(e){return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xo(e)}function H5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function $I(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jI(n.key),n)}}function K5(e,r,t){return r&&$I(e.prototype,r),t&&$I(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NI(e,r,t){return r=jI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function jI(e){var r=W5(e,"string");return Xo(r)==="symbol"?r:String(r)}function W5(e,r){if(Xo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Xo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Lv=function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H5(this,e),NI(this,"target",void 0),NI(this,"lastSentValues",{}),this.target=r,this.reset(t)}return K5(e,[{key:"setInput",value:function(t,n,i){var a=et(t),s=a.name,c=a.inputType,l=JSON.stringify(n);i.priority!=="event"&&this.lastSentValues[s]&&this.lastSentValues[s].jsonValue===l&&this.lastSentValues[s].inputType===c||(this.lastSentValues[s]={jsonValue:l,inputType:c},this.target.setInput(t,n,i))}},{key:"reset",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n={};for(var i in t)if(F(t,i)){var a=et(i),s=a.name,c=a.inputType;n[s]={jsonValue:JSON.stringify(t[i]),inputType:c}}this.lastSentValues=n}},{key:"forget",value:function(t){delete this.lastSentValues[t]}}]),e}();var Yve=N(V());function Qo(e){return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qo(e)}function Y5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function LI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DI(n.key),n)}}function X5(e,r,t){return r&&LI(e.prototype,r),t&&LI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CI(e,r,t){return r=DI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function DI(e){var r=Q5(e,"string");return Qo(r)==="symbol"?r:String(r)}function Q5(e,r){if(Qo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Qo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Cv=function(){function e(r){Y5(this,e),CI(this,"target",void 0),CI(this,"inputRatePolicies",{}),this.target=r}return X5(e,[{key:"setInput",value:function(t,n,i){var a=et(t),s=a.name;this._ensureInit(s),i.priority!=="deferred"?this.inputRatePolicies[s].immediateCall(t,n,i):this.inputRatePolicies[s].normalCall(t,n,i)}},{key:"setRatePolicy",value:function(t,n,i){var a=et(t),s=a.name;n==="direct"?this.inputRatePolicies[s]=new ip(this,this._doSetInput):n==="debounce"?this.inputRatePolicies[s]=new ur(this,this._doSetInput,i):n==="throttle"&&(this.inputRatePolicies[s]=new Fn(this,this._doSetInput,i))}},{key:"_ensureInit",value:function(t){t in this.inputRatePolicies||this.setRatePolicy(t,"direct")}},{key:"_doSetInput",value:function(t,n,i){this.target.setInput(t,n,i)}}]),e}();var mhe=N(V());function Jo(e){return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jo(e)}function J5(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function BI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FI(n.key),n)}}function Z5(e,r,t){return r&&BI(e.prototype,r),t&&BI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MI(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function eW(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?MI(Object(t),!0).forEach(function(n){GI(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):MI(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function GI(e,r,t){return r=FI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function FI(e){var r=rW(e,"string");return Jo(r)==="symbol"?r:String(r)}function rW(e,r){if(Jo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Jo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Dv(e){var r=eW({priority:"immediate"},e);switch(r.priority){case"deferred":case"immediate":case"event":break;default:throw new Error("Unexpected input value mode: '"+r.priority+"'")}return r}var Bv=function(){function e(r){J5(this,e),GI(this,"target",void 0),this.target=r}return Z5(e,[{key:"setInput",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t)throw"Can't set input with empty name.";var a=Dv(i);this.target.setInput(t,n,a)}}]),e}();var tW=M(),nW=$e(),ms=gt(),iW=K(),VI=Ae(),zI=re(),oW=ji(),UI=rl(),aW=Oe(),Gv=ms&&ms.prototype,uW=!!ms&&iW(function(){Gv.finally.call({then:function(){}},function(){})});tW({target:"Promise",proto:!0,real:!0,forced:uW},{finally:function(e){var r=oW(this,VI("Promise")),t=zI(e);return this.then(t?function(n){return UI(r,e()).then(function(){return n})}:e,t?function(n){return UI(r,e()).then(function(){throw n})}:e)}});!nW&&zI(ms)&&(Mv=VI("Promise").prototype.finally,Gv.finally!==Mv&&aW(Gv,"finally",Mv,{unsafe:!0}));var Mv;var Ghe=N(V());function Zo(e){return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zo(e)}function HI(e,r,t){return r=sW(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function sW(e){var r=fW(e,"string");return Zo(r)==="symbol"?r:String(r)}function fW(e,r){if(Zo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Zo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cW(){var e,r,t=new Promise(function(n,i){e=n,r=i});return{promise:t,resolve:e,reject:r}}function KI(){var e,r=cW(),t=r.promise,n=r.resolve,i=!1;return e={promise:t,resolve:function(a){function s(c){return a.apply(this,arguments)}return s.toString=function(){return a.toString()},s}(function(a){i=!0,n(a)}),then:t.then.bind(t),catch:t.catch.bind(t),finally:t.finally.bind(t)},HI(e,Symbol.toStringTag,"InitStatus"),HI(e,"resolved",function(){return i}),e}var mde=N(V());var Dde=N(de());var we=N(Y());var ede=N(V());function ai(e){return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ai(e)}function Fv(){"use strict";Fv=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&ai(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function WI(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function lW(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){WI(a,n,i,s,c,"next",l)}function c(l){WI(a,n,i,s,c,"throw",l)}s(void 0)})}}function pW(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function YI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QI(n.key),n)}}function vW(e,r,t){return r&&YI(e.prototype,r),t&&YI(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XI(e,r,t){return r=QI(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function QI(e){var r=hW(e,"string");return ai(r)==="symbol"?r:String(r)}function hW(e,r){if(ai(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ai(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var JI=function(){function e(r,t){pW(this,e),XI(this,"el",void 0),XI(this,"binding",void 0),this.el=r,this.binding=t,t.resize&&(this.onResize=j0(r,function(n,i){t.resize(r,n,i)}))}return vW(e,[{key:"getId",value:function(){return this.binding.getId(this.el)}},{key:"onValueChange",value:function(){var r=lW(Fv().mark(function n(i){return Fv().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.binding.onValueChange(this.el,i);case 2:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"onValueError",value:function(t){this.binding.onValueError(this.el,t)}},{key:"showProgress",value:function(t){this.binding.showProgress(this.el,t)}},{key:"onResize",value:function(){}}]),e}();function Uv(e){return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uv(e)}function Ut(){"use strict";Ut=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&Uv(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function ZI(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function Kv(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){ZI(a,n,i,s,c,"next",l)}function c(l){ZI(a,n,i,s,c,"throw",l)}s(void 0)})}}function dW(e,r){return bW(e)||gW(e,r)||yW(e,r)||mW()}function mW(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yW(e,r){if(!!e){if(typeof e=="string")return eq(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eq(e,r)}}function eq(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function gW(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,p=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){p=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function bW(e){if(Array.isArray(e))return e}function wW(e,r,t,n){var i=r.getId(t);if(i){var a=r.getValue(t),s=r.getType(t);s&&(i=i+":"+s);var c={priority:n?"deferred":"immediate",binding:r,el:t};e.setInput(i,a,c)}}var ea=function(){var e=new Map;function r(i){var a=new Map,s=new Set;if(e.forEach(function(x,T){var E={input:0,output:0};x.forEach(function(P){return E[P]+=1}),!(E.input+E.output<2)&&(a.set(T,E),E.input>1&&s.add("input"),E.output>1&&s.add("output"),E.input>=1&&E.output>=1&&s.add("shared"))}),a.size!==0){var c=Array.from(a.entries()).map(function(x){var T=dW(x,2),E=T[0],P=T[1],$=[rq(P.input,"input"),rq(P.output,"output")].filter(function(R){return R!==""}).join(" and ");return'- "'.concat(E,'": ').concat($)}).join("\n"),l="Duplicate",p="input/output";s.has("input")&&s.has("output")||(s.has("input")?p="input":s.has("output")?p="output":s.has("shared")&&(l="Shared"));var m=a.size==1?"ID was":"IDs were",y="".concat(l," ").concat(p," ").concat(m," found"),g="The following ".concat(m," used for more than one ").concat(s.has("shared")?"input/output":p,":\n").concat(c),b=new EI({headline:y,message:g}),O=i instanceof HTMLElement?i:i.get(0);(O||window).dispatchEvent(b)}}function t(i,a){var s=e.get(i);s?s.push(a):e.set(i,[a])}function n(i,a){var s=e.get(i);if(s){var c=s.indexOf(a);c>-1&&s.splice(c,1)}(s==null?void 0:s.length)===0&&e.delete(i)}return{addBinding:t,removeBinding:n,checkValidity:r}}();function rq(e,r){return e===0?"":e===1?"".concat(e," ").concat(r):"".concat(e," ").concat(r,"s")}function SW(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,t=e.inputs,n=e.inputsRate,i=e.inputBindings,a=i.getBindings(),s={},c=function(){for(var m=a[l].binding,y=m.find(r)||[],g=function(){var T=y[b];if(T.hasAttribute("data-shiny-no-bind-input"))return"continue";var E=m.getId(T);if(!E||(0,we.default)(T).hasClass("shiny-bound-input"))return"continue";var P=m.getType(T),$=P?E+":"+P:E;s[$]={value:m.getValue(T),opts:{immediate:!0,binding:m,el:T}};var R=function(){var L=m,U=T;return function(C){wW(t,L,U,C)}}();m.subscribe(T,R),(0,we.default)(T).data("shiny-input-binding",m),(0,we.default)(T).addClass("shiny-bound-input");var j=m.getRatePolicy(T);j!==null&&n.setRatePolicy($,j.policy,j.delay),ea.addBinding(E,"input"),(0,we.default)(T).trigger({type:"shiny:bound",binding:m,bindingType:"input"})},b=0;b<y.length;b++)var O=g()},l=0;l<a.length;l++)c();return s}function OW(e){return Vv.apply(this,arguments)}function Vv(){return Vv=Kv(Ut().mark(function e(r){var t,n,i,a,s,c,l,p,m,y,g,b,O,x,T,E=arguments;return Ut().wrap(function($){for(;;)switch($.prev=$.next){case 0:t=r.sendOutputHiddenState,n=r.maybeAddThemeObserver,i=r.outputBindings,a=E.length>1&&E[1]!==void 0?E[1]:document.documentElement,s=(0,we.default)(a),c=i.getBindings(),l=0;case 5:if(!(l<c.length)){$.next=35;break}p=c[l].binding,m=p.find(s)||[],y=0;case 9:if(!(y<m.length)){$.next=32;break}if(b=m[y],O=p.getId(b),O){$.next=14;break}return $.abrupt("continue",29);case 14:if(we.default.contains(document.documentElement,b)){$.next=16;break}return $.abrupt("continue",29);case 16:if(x=(0,we.default)(b),!x.hasClass("shiny-bound-output")){$.next=19;break}return $.abrupt("continue",29);case 19:return n(b),T=new JI(b,p),$.next=23,$O(O,T);case 23:x.data("shiny-output-binding",T),x.addClass("shiny-bound-output"),x.attr("aria-live")||x.attr("aria-live","polite"),(g=ii.shinyapp)!==null&&g!==void 0&&g.$outputProgress.isRecalculating(O)&&T.showProgress(!0),ea.addBinding(O,"output"),x.trigger({type:"shiny:bound",binding:p,bindingType:"output"});case 29:y++,$.next=9;break;case 32:l++,$.next=5;break;case 35:setTimeout(sr.regular,0),setTimeout(t,0);case 37:case"end":return $.stop()}},e)})),Vv.apply(this,arguments)}function _W(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=(0,we.default)(e).find(".shiny-bound-input").toArray();r&&(0,we.default)(e).hasClass("shiny-bound-input")&&t.push(e);for(var n=0;n<t.length;n++){var i=t[n],a=(0,we.default)(i).data("shiny-input-binding");if(!!a){var s=a.getId(i);(0,we.default)(i).removeClass("shiny-bound-input"),ea.removeBinding(s,"input"),a.unsubscribe(i),(0,we.default)(i).trigger({type:"shiny:unbound",binding:a,bindingType:"input"})}}}function PW(e){var r=e.sendOutputHiddenState,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=(0,we.default)(t).find(".shiny-bound-output").toArray();n&&(0,we.default)(t).hasClass("shiny-bound-output")&&i.push(t);for(var a=0;a<i.length;a++){var s=(0,we.default)(i[a]),c=s.data("shiny-output-binding");if(!!c){var l=c.binding.getId(i[a]);NO(l,c),ea.removeBinding(l,"output"),s.removeClass("shiny-bound-output"),s.removeData("shiny-output-binding"),s.trigger({type:"shiny:unbound",binding:c.binding,bindingType:"output"})}}setTimeout(sr.regular,0),setTimeout(r,0)}function Wv(e,r){return zv.apply(this,arguments)}function zv(){return zv=Kv(Ut().mark(function e(r,t){var n;return Ut().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,OW(r,t);case 2:return n=SW(r,t),ea.checkValidity(t),a.abrupt("return",n);case 5:case"end":return a.stop()}},e)})),zv.apply(this,arguments)}function tq(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_W(r,t),PW(e,r,t)}function nq(e,r){return Hv.apply(this,arguments)}function Hv(){return Hv=Kv(Ut().mark(function e(r,t){var n,i;return Ut().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Wv(r,t);case 2:n=s.sent,i=r.inputs,we.default.each(n,function(c,l){i.setInput(c,l.value,l.opts)}),r.initDeferredIframes();case 6:case"end":return s.stop()}},e)})),Hv.apply(this,arguments)}var ume=N(V());var rt=N(Y());function Yv(e){return Yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yv(e)}function Xv(){"use strict";Xv=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&Yv(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function iq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function EW(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){iq(a,n,i,s,c,"next",l)}function c(l){iq(a,n,i,s,c,"throw",l)}s(void 0)})}}function ys(){return Qv.apply(this,arguments)}function Qv(){return Qv=EW(Xv().mark(function e(){var r,t,n,i,a,s,c=arguments;return Xv().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=c.length>0&&c[0]!==void 0?c[0]:{},t=r.html,n=t===void 0?"":t,i=r.deps,a=i===void 0?[]:i,p.next=3,Tt(a);case 3:return(0,rt.default)(".modal-backdrop").remove(),s=(0,rt.default)("#shiny-modal-wrapper"),s.length===0&&(s=(0,rt.default)('<div id="shiny-modal-wrapper"></div>'),(0,rt.default)(document.body).append(s),s.on("hidden.bs.modal",function(m){m.target===(0,rt.default)("#shiny-modal")[0]&&(ke(s),s.remove())})),s.on("keydown.shinymodal",function(m){(0,rt.default)("#shiny-modal").data("keyboard")!==!1&&m.keyCode===27&&(m.stopPropagation(),m.preventDefault())}),p.next=9,Fe(s,{html:n});case 9:case"end":return p.stop()}},e)})),Qv.apply(this,arguments)}function gs(){var e=(0,rt.default)("#shiny-modal-wrapper");e.off("keydown.shinymodal"),e.find(".modal").length>0?e.find(".modal").modal("hide"):(ke(e),e.remove())}var qme=N(de());var Dme=N(V());var ra=N(Y());function Jv(e){return Jv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jv(e)}function Zv(){"use strict";Zv=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&Jv(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function oq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function IW(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){oq(a,n,i,s,c,"next",l)}function c(l){oq(a,n,i,s,c,"throw",l)}s(void 0)})}}var qW=250;function xr(){return eh.apply(this,arguments)}function eh(){return eh=IW(Zv().mark(function e(){var r,t,n,i,a,s,c,l,p,m,y,g,b,O,x,T,E,P,$,R,j,L,U,C=arguments;return Zv().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return t=C.length>0&&C[0]!==void 0?C[0]:{},n=t.html,i=n===void 0?"":n,a=t.action,s=a===void 0?"":a,c=t.deps,l=c===void 0?[]:c,p=t.duration,m=p===void 0?5e3:p,y=t.id,g=y===void 0?null:y,b=t.closeButton,O=b===void 0?!0:b,x=t.type,T=x===void 0?null:x,g||(g=hu()),D.next=4,Tt(l);case 4:return kW(),E=ta(g),((r=E)===null||r===void 0?void 0:r.length)===0&&(E=xW(g)),P=E,$='<div class="shiny-notification-content-text">'.concat(i,"</div>")+'<div class="shiny-notification-content-action">'.concat(s,"</div>"),R=P.find(".shiny-notification-content"),D.next=12,Fe(R,{html:$});case 12:return j=P==null?void 0:P.attr("class"),j&&(L=j.split(/\s+/).filter(function(z){return z.match(/^shiny-notification-/)}).join(" "),P.removeClass(L)),T&&T!=="default"&&P.addClass("shiny-notification-"+T),U=P.find(".shiny-notification-close"),O&&U.length===0?P.append('<div class="shiny-notification-close">×</div>'):!O&&U.length!==0&&U.remove(),m?RW(g,m):aq(g),D.abrupt("return",g);case 19:case"end":return D.stop()}},e)})),eh.apply(this,arguments)}function Rr(e){var r;(r=ta(e))===null||r===void 0||r.fadeOut(qW,function(){ke(this),(0,ra.default)(this).remove(),TW().length===0&&na().remove()})}function ta(e){return e?na().find("#shiny-notification-"+H(e)):null}function TW(){return na().find(".shiny-notification").map(function(){return this.id.replace(/shiny-notification-/,"")}).get()}function na(){return(0,ra.default)("#shiny-notification-panel")}function kW(){var e=na();return e.length>0||(0,ra.default)(document.body).append('<div id="shiny-notification-panel">'),e}function xW(e){var r,t=ta(e);return((r=t)===null||r===void 0?void 0:r.length)===0&&(t=(0,ra.default)('<div id="shiny-notification-'.concat(e,'" class="shiny-notification">')+'<div class="shiny-notification-close">×</div><div class="shiny-notification-content"></div></div>'),t.find(".shiny-notification-close").on("click",function(n){n.preventDefault(),n.stopPropagation(),Rr(e)}),na().append(t)),t}function RW(e,r){var t;aq(e);var n=setTimeout(function(){Rr(e)},r);(t=ta(e))===null||t===void 0||t.data("removalCallback",n)}function aq(e){var r=ta(e),t=r==null?void 0:r.data("removalCallback");t&&clearTimeout(t)}var sye=N(V());var ih=N(Y());function rh(e){return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rh(e)}function th(){"use strict";th=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&rh(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function uq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function AW(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){uq(a,n,i,s,c,"next",l)}function c(l){uq(a,n,i,s,c,"throw",l)}s(void 0)})}}function sq(e){var r=(0,ih.default)("#shiny-reconnect-time");if(r.length!==0){var t=Math.floor((e-new Date().getTime())/1e3);t>0?r.text(" in "+t+"s"):r.text("..."),setTimeout(function(){sq(e)},1e3)}}function bs(e){return nh.apply(this,arguments)}function nh(){return nh=AW(th().mark(function e(r){var t,n,i;return th().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=new Date().getTime()+r,!((0,ih.default)("#shiny-reconnect-text").length>0)){s.next=3;break}return s.abrupt("return");case 3:return n='<span id="shiny-reconnect-text">Attempting to reconnect</span><span id="shiny-reconnect-time"></span>',i='<a id="shiny-reconnect-now" href="#" onclick="Shiny.shinyapp.reconnect();">Try now</a>',s.next=7,xr({id:"reconnect",html:n,action:i,duration:null,closeButton:!1,type:"warning"});case 7:sq(t);case 8:case"end":return s.stop()}},e)})),nh.apply(this,arguments)}function ws(){Rr("reconnect")}var Tge=N(de());var xge=N(pn());var i6=M(),o6=X(),a6=Ts(),u6=Hi(),hh="ArrayBuffer",Aq=a6[hh],s6=o6[hh];i6({global:!0,constructor:!0,forced:s6!==Aq},{ArrayBuffer:Aq});u6(hh);var f6=M(),mh=ct(),c6=K(),Lq=Ts(),$q=oe(),Nq=ft(),l6=lr(),p6=ji(),yh=Lq.ArrayBuffer,dh=Lq.DataView,Cq=dh.prototype,jq=mh(yh.prototype.slice),v6=mh(Cq.getUint8),h6=mh(Cq.setUint8),d6=c6(function(){return!new yh(2).slice(1,void 0).byteLength});f6({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d6},{slice:function(r,t){if(jq&&t===void 0)return jq($q(this),r);for(var n=$q(this).byteLength,i=Nq(r,n),a=Nq(t===void 0?n:t,n),s=new(p6(this,yh))(l6(a-i)),c=new dh(this),l=new dh(s),p=0;i<a;)h6(l,p++,v6(c,i++));return s}});Dq();var Fge=N(V());var G=N(Y());var Bye=N(V());function ci(e){return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ci(e)}function gh(){"use strict";gh=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&ci(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function Bq(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function b6(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){Bq(a,n,i,s,c,"next",l)}function c(l){Bq(a,n,i,s,c,"throw",l)}s(void 0)})}}function w6(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Mq(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fq(n.key),n)}}function S6(e,r,t){return r&&Mq(e.prototype,r),t&&Mq(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gq(e,r,t){return r=Fq(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Fq(e){var r=O6(e,"string");return ci(r)==="symbol"?r:String(r)}function O6(e,r){if(ci(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ci(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Uq=function(){function e(){w6(this,e),Gq(this,"$promises",[]),Gq(this,"$resolvers",[])}return S6(e,[{key:"_add",value:function(){var t=this,n=new Promise(function(i){t.$resolvers.push(i)});this.$promises.push(n)}},{key:"enqueue",value:function(t){this.$resolvers.length||this._add();var n=this.$resolvers.shift();n(t)}},{key:"dequeue",value:function(){var r=b6(gh().mark(function n(){var i;return gh().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return this.$promises.length||this._add(),i=this.$promises.shift(),s.abrupt("return",i);case 3:case"end":return s.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"isEmpty",value:function(){return!this.$promises.length}},{key:"isBlocked",value:function(){return!!this.$resolvers.length}},{key:"length",get:function(){return this.$promises.length-this.$resolvers.length}}]),e}();var tge=N(V());var _6=M(),P6=wa().includes,E6=K(),I6=tn(),q6=E6(function(){return!Array(1).includes()});_6({target:"Array",proto:!0,forced:q6},{includes:function(r){return P6(this,r,arguments.length>1?arguments[1]:void 0)}});I6("includes");var T6=M(),k6=W(),x6=as(),R6=Ke(),Vq=he(),A6=us(),$6=k6("".indexOf);T6({target:"String",proto:!0,forced:!A6("includes")},{includes:function(r){return!!~$6(Vq(R6(this)),Vq(x6(r)),arguments.length>1?arguments[1]:void 0)}});zq();var wge=N(de());function aa(e){return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},aa(e)}function L6(e,r){return B6(e)||D6(e,r)||Zq(e,r)||C6()}function C6(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D6(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,p=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){p=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function B6(e){if(Array.isArray(e))return e}function M6(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Zq(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var p=t.next();return a=p.done,p},e:function(p){s=!0,c=p},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function Zq(e,r){if(!!e){if(typeof e=="string")return Hq(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Hq(e,r)}}function Hq(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function G6(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Kq(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eT(n.key),n)}}function F6(e,r,t){return r&&Kq(e.prototype,r),t&&Kq(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function li(e,r){U6(e,r),r.add(e)}function U6(e,r){if(r.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wq(e,r,t){return r=eT(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function eT(e){var r=V6(e,"string");return aa(r)==="symbol"?r:String(r)}function V6(e,r){if(aa(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(aa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function xe(e,r,t){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var Z;(function(e){e.Initial="initial",e.Running="running",e.Idle="idle",e.Value="value",e.Error="error",e.Cancel="cancel",e.Persistent="persistent",e.Invalidated="invalidated"})(Z||(Z={}));var Yq=new WeakSet,Xq=new WeakSet,Qq=new WeakSet,bh=new WeakSet,ua=new WeakSet,zt=new WeakSet,rT=function(){function e(){G6(this,e),li(this,zt),li(this,ua),li(this,bh),li(this,Qq),li(this,Xq),li(this,Yq),Wq(this,"outputStates",new Map),Wq(this,"changedOutputs",new Map)}return F6(e,[{key:"takeChanges",value:function(){var t=this.changedOutputs;return this.changedOutputs=new Map,t}},{key:"isRecalculating",value:function(t){var n=xe(this,ua,ks).call(this,t),i=[Z.Initial,Z.Running,Z.Idle,Z.Persistent,Z.Invalidated];return i.includes(n)}},{key:"updateStateFromMessage",value:function(t){W6(t)&&xe(this,Yq,z6).call(this,t),Y6(t)&&xe(this,Xq,H6).call(this,t),X6(t)&&xe(this,Qq,K6).call(this,t)}}]),e}();function z6(e){var r=e.recalculating,t=r.name,n=r.status,i=xe(this,ua,ks).call(this,t);if(n==="recalculating")switch(i){case Z.Initial:case Z.Invalidated:xe(this,zt,pi).call(this,t,Z.Running);break;default:throw new Error("Shiny server sent a message that the output '".concat(t,"' is recalculating,\n but the output is in an unexpected state of: '").concat(i,"'."))}if(n==="recalculated")switch(i){case Z.Running:xe(this,zt,pi).call(this,t,Z.Idle);break;default:throw new Error("Shiny server sent a message that the output '".concat(t,"' has been recalculated,\n but the output is in an unexpected state of: '").concat(i,"'."))}}function H6(e){for(var r in e.values)xe(this,bh,Jq).call(this,r,Z.Value);for(var t in e.errors)xe(this,bh,Jq).call(this,t,Z.Error);var n=M6(this.outputStates),i;try{for(n.s();!(i=n.n()).done;){var a=L6(i.value,2),s=a[0],c=a[1];switch(c){case Z.Idle:xe(this,zt,pi).call(this,s,Z.Cancel);break;case Z.Value:case Z.Error:case Z.Cancel:case Z.Persistent:case Z.Invalidated:break;default:throw new Error("Shiny server sent a flush message, and after processing the values and errors,\n the output '".concat(s,"' has an unexpected ending state of: '").concat(c,"'."))}}}catch(l){n.e(l)}finally{n.f()}}function K6(e){var r=e.progress.message,t=r.id,n=r.persistent,i=xe(this,ua,ks).call(this,t);if(n)switch(i){case Z.Running:xe(this,zt,pi).call(this,t,Z.Persistent);break;default:throw new Error("Shiny server has sent a 'persistent progress' message for ".concat(t,",\n but the output is in an unexpected state of: ").concat(i))}else switch(i){case Z.Value:case Z.Error:case Z.Cancel:case Z.Persistent:case Z.Idle:xe(this,zt,pi).call(this,t,Z.Invalidated);break;default:throw new Error("Shiny server has sent a progress message for ".concat(t,",\n but the output is in an unexpected state of: ").concat(i))}}function Jq(e,r){var t=xe(this,ua,ks).call(this,e);switch(t){case Z.Idle:xe(this,zt,pi).call(this,e,r);break;default:throw new Error("Shiny server has sent a ".concat(r," for the output '").concat(e,"',\n but the output is in an unexpected state of: '").concat(t,"'."))}}function ks(e){var r;return(r=this.outputStates.get(e))!==null&&r!==void 0?r:Z.Initial}function pi(e,r){var t=this.isRecalculating(e);this.outputStates.set(e,r);var n=this.isRecalculating(e);t!==n&&this.changedOutputs.set(e,n)}function W6(e){var r=e;return r.recalculating!==void 0}function Y6(e){var r=e;return r.values!==void 0&&r.errors!==void 0}function X6(e){var r=e;return r.progress!==void 0&&r.progress.type==="binding"}function vi(e){return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vi(e)}function Q6(e,r){return e4(e)||Z6(e,r)||oT(e,r)||J6()}function J6(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z6(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,s,c=[],l=!0,p=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(m){p=!0,i=m}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function e4(e){if(Array.isArray(e))return e}function wh(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=oT(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,s=!1,c;return{s:function(){t=t.call(e)},n:function(){var p=t.next();return a=p.done,p},e:function(p){s=!0,c=p},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw c}}}}function oT(e,r){if(!!e){if(typeof e=="string")return tT(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tT(e,r)}}function tT(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function J(){"use strict";J=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&vi(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function nT(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function Re(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){nT(a,n,i,s,c,"next",l)}function c(l){nT(a,n,i,s,c,"throw",l)}s(void 0)})}}function r4(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function iT(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aT(n.key),n)}}function t4(e,r,t){return r&&iT(e.prototype,r),t&&iT(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function be(e,r,t){return r=aT(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function aT(e){var r=n4(e,"string");return vi(r)==="symbol"?r:String(r)}function n4(e,r){if(vi(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(vi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var uT=[],Sh={},xs=[],Rs={};function le(e,r){if(Sh[e])throw'handler for message of type "'+e+'" already added.';if(typeof r!="function")throw"handler must be a function.";if(r.length!==1)throw"handler must be a function that takes one argument.";uT.push(e),Sh[e]=r}function sT(e,r){if(Rs[e]){var t=xs.indexOf(e);t!==-1&&(xs.splice(t,1),delete Rs[e])}if(typeof r!="function")throw"handler must be a function.";if(r.length!==1)throw"handler must be a function that takes one argument.";xs.push(e),Rs[e]=r}var fT=function(){function e(){r4(this,e),be(this,"$socket",null),be(this,"taskQueue",new Uq),be(this,"config",null),be(this,"$inputValues",{}),be(this,"$initialInput",null),be(this,"$bindings",{}),be(this,"$outputProgress",new rT),be(this,"$values",{}),be(this,"$errors",{}),be(this,"$conditionals",{}),be(this,"$pendingMessages",[]),be(this,"$activeRequests",{}),be(this,"$nextRequestId",0),be(this,"$allowReconnect",!1),be(this,"scheduledReconnect",void 0),be(this,"reconnectDelay",function(){var r=0,t=[1500,1500,2500,2500,5500,5500,10500];return{next:function(){var i=r;return i>=t.length&&(i=t.length-1),r++,t[i]},reset:function(){r=0}}}()),be(this,"progressHandlers",{binding:function(t){var n=t.id,i=this.$bindings[n];i&&(0,G.default)(i.el).trigger({type:"shiny:outputinvalidated",binding:i,name:n}),this._updateProgress()},open:function(){var r=Re(J().mark(function n(i){var a,s,c,l,p;return J().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(i.style!=="notification"){y.next=5;break}return y.next=3,xr({html:'<div id="shiny-progress-'.concat(i.id,'" class="shiny-progress-notification">')+'<div class="progress active" style="display: none;"><div class="progress-bar"></div></div><div class="progress-text"><span class="progress-message">message</span> <span class="progress-detail"></span></div></div>',id:i.id,duration:null});case 3:y.next=6;break;case 5:i.style==="old"&&(a=(0,G.default)(".shiny-progress-container"),a.length===0&&(a=(0,G.default)('<div class="shiny-progress-container"></div>'),(0,G.default)(document.body).append(a)),s=(0,G.default)(".shiny-progress.open").length,c=(0,G.default)('<div class="shiny-progress open"><div class="progress active"><div class="progress-bar bar"></div></div><div class="progress-text"><span class="progress-message">message</span><span class="progress-detail"></span></div></div>'),c.attr("id",i.id),a.append(c),l=c.find(".progress"),l&&(l.css("top",s*l.height()+"px"),p=c.find(".progress-text"),p.css("top",3*l.height()+s*p.outerHeight()+"px"),c.hide()));case 6:case"end":return y.stop()}},n)}));function t(n){return r.apply(this,arguments)}return t}(),update:function(t){if(t.style==="notification"){var n=(0,G.default)("#shiny-progress-"+t.id);if(n.length===0)return;typeof t.message!="undefined"&&n.find(".progress-message").text(t.message),typeof t.detail!="undefined"&&n.find(".progress-detail").text(t.detail),typeof t.value!="undefined"&&t.value!==null&&(n.find(".progress").show(),n.find(".progress-bar").width(t.value*100+"%"))}else if(t.style==="old"){var i=(0,G.default)("#"+t.id+".shiny-progress");typeof t.message!="undefined"&&i.find(".progress-message").text(t.message),typeof t.detail!="undefined"&&i.find(".progress-detail").text(t.detail),typeof t.value!="undefined"&&t.value!==null&&(i.find(".progress").show(),i.find(".bar").width(t.value*100+"%")),i.fadeIn()}},close:function(t){if(t.style==="notification")Rr(t.id);else if(t.style==="old"){var n=(0,G.default)("#"+t.id+".shiny-progress");n.removeClass("open"),n.fadeOut({complete:function(){n.remove(),(0,G.default)(".shiny-progress").length===0&&(0,G.default)(".shiny-progress-container").remove()}})}}}),this._init()}return t4(e,[{key:"connect",value:function(t){if(this.$socket)throw"Connect was already called on this application object";this.$socket=this.createSocket(),this.$initialInput=t,G.default.extend(this.$inputValues,t),this.$updateConditionals()}},{key:"isConnected",value:function(){return!!this.$socket}},{key:"reconnect",value:function(){if(clearTimeout(this.scheduledReconnect),this.isConnected())throw"Attempted to reconnect, but already connected.";this.$socket=this.createSocket(),this.$initialInput=G.default.extend({},this.$inputValues),this.$updateConditionals()}},{key:"createSocket",value:function(){var t=this,n=BO()||function(){var s="ws:";window.location.protocol==="https:"&&(s="wss:");var c=window.location.pathname;/^([$#!&-;=?-[\]_a-z~]|%[0-9a-fA-F]{2})+$/.test(c)||(c=encodeURI(c),oy()&&(c=encodeURI(c))),/\/$/.test(c)||(c+="/"),c+="websocket/";var l=new WebSocket(s+"//"+window.location.host+c);return l.binaryType="arraybuffer",l},i=n(),a=!1;return i.onopen=function(){for(a=!0,(0,G.default)(document).trigger({type:"shiny:connected",socket:i}),t.onConnected(),i.send(JSON.stringify({method:"init",data:t.$initialInput}));t.$pendingMessages.length;){var s=t.$pendingMessages.shift();i.send(s)}t.startActionQueueLoop()},i.onmessage=function(s){t.taskQueue.enqueue(Re(J().mark(function c(){return J().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,t.dispatchMessage(s.data);case 2:return p.abrupt("return",p.sent);case 3:case"end":return p.stop()}},c)})))},i.onclose=function(s){var c=s.code===1012;a&&((0,G.default)(document).trigger({type:"shiny:disconnected",socket:i}),t.$notifyDisconnected()),t.onDisconnected(c),t.$removeSocket()},i}},{key:"startActionQueueLoop",value:function(){var r=Re(J().mark(function n(){var i;return J().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=1,s.next=4,this.taskQueue.dequeue();case 4:return i=s.sent,s.next=7,i();case 7:s.next=13;break;case 9:s.prev=9,s.t0=s.catch(1),hs(s.t0),console.error(s.t0);case 13:s.next=0;break;case 15:case"end":return s.stop()}},n,this,[[1,9]])}));function t(){return r.apply(this,arguments)}return t}()},{key:"sendInput",value:function(t){var n=JSON.stringify({method:"update",data:t});this.$sendMsg(n),G.default.extend(this.$inputValues,t),this.$updateConditionals()}},{key:"$notifyDisconnected",value:function(){window.parent&&window.parent.postMessage("disconnected","*")}},{key:"$removeSocket",value:function(){this.$socket=null}},{key:"$scheduleReconnect",value:function(t){var n=this;this.scheduledReconnect=window.setTimeout(function(){n.reconnect()},t)}},{key:"onDisconnected",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if((0,G.default)("#shiny-disconnected-overlay").length===0&&(0,G.default)(document.body).append('<div id="shiny-disconnected-overlay"></div>'),(0,G.default)("#shiny-disconnected-overlay").toggleClass("reloading",t),this.$allowReconnect===!0&&this.$socket.allowReconnect===!0||this.$allowReconnect==="force"){var n=this.reconnectDelay.next();bs(n),this.$scheduleReconnect(n)}}},{key:"onConnected",value:function(){(0,G.default)("#shiny-disconnected-overlay").remove(),ws(),this.reconnectDelay.reset()}},{key:"makeRequest",value:function(t,n,i,a,s){for(var c=this.$nextRequestId;this.$activeRequests[c];)c=(c+1)%1e9;this.$nextRequestId=c+1,this.$activeRequests[c]={onSuccess:i,onError:a};var l=JSON.stringify({method:t,args:n,tag:c});if(s){var p=function(T){var E=new ArrayBuffer(4),P=new DataView(E);return P.setUint32(0,T,!0),E},m=[];m.push(p(16908802));var y=new Blob([l]);m.push(p(y.size)),m.push(y);for(var g=0;g<s.length;g++){var b=s[g];m.push(p(b.byteLength||b.size||0)),m.push(b)}var O=new Blob(m);l=O}this.$sendMsg(l)}},{key:"$sendMsg",value:function(t){this.$socket&&this.$socket.readyState?this.$socket.send(t):this.$pendingMessages.push(t)}},{key:"receiveError",value:function(t,n){if(this.$errors[t]!==n){this.$errors[t]=n,delete this.$values[t];var i=this.$bindings[t],a=G.default.Event("shiny:error");a.name=t,a.error=n,a.binding=i,(0,G.default)(i?i.el:document).trigger(a),!a.isDefaultPrevented()&&i&&i.onValueError&&i.onValueError(a.error)}}},{key:"receiveOutput",value:function(){var r=Re(J().mark(function n(i,a){var s,c;return J().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(s=this.$bindings[i],c=G.default.Event("shiny:value"),c.name=i,c.value=a,c.binding=s,this.$values[i]!==a){p.next=8;break}return(0,G.default)(s?s.el:document).trigger(c),p.abrupt("return",void 0);case 8:if(this.$values[i]=a,delete this.$errors[i],(0,G.default)(s?s.el:document).trigger(c),!(!c.isDefaultPrevented()&&s)){p.next=14;break}return p.next=14,s.onValueChange(c.value);case 14:return p.abrupt("return",a);case 15:case"end":return p.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"bindOutput",value:function(){var r=Re(J().mark(function n(i,a){return J().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(i){c.next=2;break}throw new Error("Can't bind an element with no ID");case 2:if(this.$bindings[i]=a,this.$values[i]===void 0){c.next=8;break}return c.next=6,a.onValueChange(this.$values[i]);case 6:c.next=9;break;case 8:this.$errors[i]!==void 0&&a.onValueError(this.$errors[i]);case 9:return c.abrupt("return",a);case 10:case"end":return c.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"unbindOutput",value:function(t,n){return this.$bindings[t]===n?(delete this.$bindings[t],!0):!1}},{key:"_narrowScopeComponent",value:function(t,n){return Object.keys(t).filter(function(i){return i.indexOf(n)===0}).map(function(i){return be({},i.substring(n.length),t[i])}).reduce(function(i,a){return G.default.extend(i,a)},{})}},{key:"_narrowScope",value:function(t,n){return n?{input:this._narrowScopeComponent(t.input,n),output:this._narrowScopeComponent(t.output,n)}:t}},{key:"$updateConditionals",value:function(){(0,G.default)(document).trigger({type:"shiny:conditional"});var t={};for(var n in this.$inputValues)if(Xe(this.$inputValues,n)){var i=n.replace(/:.*/,"");t[i]=this.$inputValues[n]}for(var a={input:t,output:this.$values},s=(0,G.default)(document).find("[data-display-if]"),c=0;c<s.length;c++){var l=(0,G.default)(s[c]),p=l.data("data-display-if-func");if(!p){var m=l.attr("data-display-if");p=L0(m),l.data("data-display-if-func",p)}var y=l.attr("data-ns-prefix"),g=this._narrowScope(a,y),b=Boolean(p(g)),O=l.css("display")!=="none";b!==O&&(b?(l.trigger("show"),l.show(),l.trigger("shown")):(l.trigger("hide"),l.hide(),l.trigger("hidden")))}}},{key:"dispatchMessage",value:function(){var r=Re(J().mark(function n(i){var a,s,c,l,p,m,y;return J().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(a={},typeof i=="string")a=JSON.parse(i);else{for(s=new DataView(i,0,1).getUint8(0),c=new DataView(i,1,s),l=[],p=0;p<s;p++)l.push(String.fromCharCode(c.getUint8(p)));m=l.join(""),i=i.slice(s+1),a.custom={},a.custom[m]=i}if(y=G.default.Event("shiny:message"),y.message=a,(0,G.default)(document).trigger(y),!y.isDefaultPrevented()){b.next=7;break}return b.abrupt("return");case 7:return this.$outputProgress.updateStateFromMessage(y.message),b.next=10,this._sendMessagesToHandlers(y.message,Sh,uT);case 10:this.$updateConditionals();case 11:case"end":return b.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"_sendMessagesToHandlers",value:function(){var r=Re(J().mark(function n(i,a,s){var c,l;return J().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=0;case 1:if(!(c<s.length)){m.next=9;break}if(l=s[c],!Xe(i,l)){m.next=6;break}return m.next=6,a[l].call(this,i[l]);case 6:c++,m.next=1;break;case 9:case"end":return m.stop()}},n,this)}));function t(n,i,a){return r.apply(this,arguments)}return t}()},{key:"_updateProgress",value:function(){var t=this.$outputProgress.takeChanges(),n=wh(t.entries()),i;try{for(n.s();!(i=n.n()).done;){var a=Q6(i.value,2),s=a[0],c=a[1];Xe(this.$bindings,s)&&this.$bindings[s].showProgress(c)}}catch(l){n.e(l)}finally{n.f()}}},{key:"_init",value:function(){var t=this;le("values",function(){var p=Re(J().mark(function m(y){var g;return J().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:t._updateProgress(),O.t0=J().keys(y);case 2:if((O.t1=O.t0()).done){O.next=9;break}if(g=O.t1.value,!Xe(y,g)){O.next=7;break}return O.next=7,t.receiveOutput(g,y[g]);case 7:O.next=2;break;case 9:case"end":return O.stop()}},m)}));return function(m){return p.apply(this,arguments)}}()),le("errors",function(p){for(var m in p)Xe(p,m)&&t.receiveError(m,p[m])}),le("inputMessages",function(){var p=Re(J().mark(function m(y){var g,b,O,x,T;return J().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:g=0;case 1:if(!(g<y.length)){P.next=23;break}if(b=(0,G.default)(".shiny-bound-input#"+H(y[g].id)),O=b.data("shiny-input-binding"),!(b.length>0)){P.next=20;break}if(b.attr("aria-live")||b.attr("aria-live","polite"),x=b[0],T=G.default.Event("shiny:updateinput"),T.message=y[g].message,T.binding=O,(0,G.default)(x).trigger(T),T.isDefaultPrevented()){P.next=20;break}return P.prev=12,P.next=15,O.receiveMessage(x,T.message);case 15:P.next=20;break;case 17:P.prev=17,P.t0=P.catch(12),console.error("[shiny] Error in inputBinding.receiveMessage()",{error:P.t0,binding:O,message:T.message});case 20:g++,P.next=1;break;case 23:case"end":return P.stop()}},m,null,[[12,17]])}));return function(m){return p.apply(this,arguments)}}()),le("javascript",function(p){It(p)}),le("console",function(p){for(var m=0;m<p.length;m++)console.log&&console.log(p[m])}),le("progress",function(){var p=Re(J().mark(function m(y){var g;return J().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(!(y.type&&y.message)){O.next=5;break}return O.next=3,t.progressHandlers[y.type];case 3:g=O.sent,g&&g.call(t,y.message);case 5:case"end":return O.stop()}},m)}));return function(m){return p.apply(this,arguments)}}()),le("notification",function(){var p=Re(J().mark(function m(y){return J().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(y.type!=="show"){b.next=5;break}return b.next=3,xr(y.message);case 3:b.next=10;break;case 5:if(y.type!=="remove"){b.next=9;break}Rr(y.message),b.next=10;break;case 9:throw"Unkown notification type: "+y.type;case 10:case"end":return b.stop()}},m)}));return function(m){return p.apply(this,arguments)}}()),le("modal",function(){var p=Re(J().mark(function m(y){return J().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(y.type!=="show"){b.next=5;break}return b.next=3,ys(y.message);case 3:b.next=10;break;case 5:if(y.type!=="remove"){b.next=9;break}gs(),b.next=10;break;case 9:throw"Unkown modal type: "+y.type;case 10:case"end":return b.stop()}},m)}));return function(m){return p.apply(this,arguments)}}()),le("response",function(p){var m=p.tag,y=t.$activeRequests[m];y&&(delete t.$activeRequests[m],"value"in p?y.onSuccess(p.value):y.onError(p.error))}),le("allowReconnect",function(p){switch(p){case!0:case!1:case"force":t.$allowReconnect=p;break;default:throw"Invalid value for allowReconnect: "+p}}),le("custom",function(){var p=Re(J().mark(function m(y){var g;return J().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(g=jO(),!g){O.next=4;break}return O.next=4,g(y);case 4:return O.next=6,t._sendMessagesToHandlers(y,Rs,xs);case 6:case"end":return O.stop()}},m)}));return function(m){return p.apply(this,arguments)}}()),le("config",function(p){t.config={workerId:p.workerId,sessionId:p.sessionId},p.user&&RO(p.user),(0,G.default)(document).trigger("shiny:sessioninitialized")}),le("busy",function(p){p==="busy"?((0,G.default)(document.documentElement).addClass("shiny-busy"),(0,G.default)(document).trigger("shiny:busy")):p==="idle"&&((0,G.default)(document.documentElement).removeClass("shiny-busy"),(0,G.default)(document).trigger("shiny:idle"))}),le("recalculating",function(p){if(Xe(p,"name")&&Xe(p,"status")){var m=t.$bindings[p.name];m?(0,G.default)(m.el).trigger("shiny:"+p.status):(0,G.default)().trigger("shiny:"+p.status)}}),le("reload",function(p){window.location.reload()}),le("shiny-insert-ui",function(){var p=Re(J().mark(function m(y){var g,b,O,x;return J().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(g=(0,G.default)(y.selector),g.length!==0){E.next=7;break}return console.warn('The selector you chose ("'+y.selector+'") could not be found in the DOM.'),E.next=5,Po(y.content.html,(0,G.default)([]),y.content.deps);case 5:E.next=26;break;case 7:b=wh(g),E.prev=8,b.s();case 10:if((O=b.n()).done){E.next=18;break}return x=O.value,E.next=14,Fe(x,y.content,y.where);case 14:if(y.multiple!==!1){E.next=16;break}return E.abrupt("break",18);case 16:E.next=10;break;case 18:E.next=23;break;case 20:E.prev=20,E.t0=E.catch(8),b.e(E.t0);case 23:return E.prev=23,b.f(),E.finish(23);case 26:case"end":return E.stop()}},m,null,[[8,20,23,26]])}));return function(m){return p.apply(this,arguments)}}()),le("shiny-remove-ui",function(p){var m=(0,G.default)(p.selector);m.each(function(y,g){return ke(g,!0),(0,G.default)(g).remove(),p.multiple===!1?!1:void 0})}),le("frozen",function(p){for(var m=0;m<p.ids.length;m++)AO(p.ids[m])});function n(p){var m=(0,G.default)("#"+H(p));if(m.length===0)throw"There is no tabsetPanel (or navbarPage or navlistPanel) with id equal to '"+p+"'";return m}function i(p){var m=p.attr("data-tabsetid"),y=(0,G.default)("div.tab-content[data-tabsetid='"+H(m)+"']");return y}function a(p,m,y){var g="[data-value='"+H(y)+"']",b=p.find("a"+g),O=b.parent();if(O.length===0)throw"There is no tabPanel (or navbarMenu) with value (or menuName) equal to '"+y+"'";var x=[],T=[];if(b.attr("data-toggle")==="dropdown"){var E=b.find("+ ul.dropdown-menu"),P=E.attr("data-tabsetid"),$=E.find("a[data-toggle='tab']").parent("li");$.each(function(L,U){x.push((0,G.default)(U))});var R="div.tab-pane[id^='tab-"+H(P)+"']",j=m.find(R);j.each(function(L,U){T.push((0,G.default)(U))})}else T.push(m.find("div"+g));return{$liTag:O,$liTags:x,$divTags:T}}le("shiny-insert-tab",function(){var p=Re(J().mark(function m(y){var g,b,O,x,T,E,P,$,R,j,L,U,C,B,D,z,f;return J().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(f=function(){if(y.menuName!==null){var d=(0,G.default)("a.dropdown-toggle[data-value='"+H(y.menuName)+"']");if(d.length===0)throw"There is no navbarMenu with menuName equal to '"+y.menuName+"'";var h=d.find("+ ul.dropdown-menu"),S=h.attr("data-tabsetid");return{$tabset:h,id:S}}else if(y.target!==null&&$!==null){var _=$.parent("ul");if(_.hasClass("dropdown-menu")){var w=_.attr("data-tabsetid");return{$tabset:_,id:w}}}return null},z=function(d,h){var S=[0];return d.find("> li").each(function(){var _=(0,G.default)(this).find("> a[data-toggle='tab']");if(_.length>0){var w=_.attr("href").replace(/.*(?=#[^\s]+$)/,""),I=w.replace("#tab-"+h+"-","");S.push(Number(I))}}),Math.max.apply(null,S)+1},g=n(y.inputId),b=g,O=i(b),x=g.attr("data-tabsetid"),T=(0,G.default)(y.divTag.html),E=(0,G.default)(y.liTag.html),P=E.find("> a"),$=null,y.target!==null&&(R=a(b,O,y.target),$=R.$liTag),j=f(),j===null){u.next=18;break}if(P.attr("data-toggle")!=="dropdown"){u.next=15;break}throw"Cannot insert a navbarMenu inside another one";case 15:b=j.$tabset,x=j.id,E.removeClass("nav-item").find(".nav-link").removeClass("nav-link").addClass("dropdown-item");case 18:return P.attr("data-toggle")==="tab"&&(L=z(b,x),U="tab-"+x+"-"+L,E.find("> a").attr("href","#"+U),T.attr("id",U)),y.position==="before"?$?$.before(E):b.prepend(E):y.position==="after"&&($?$.after(E):b.append(E)),u.next=22,Fe(E[0],{html:E.html(),deps:y.liTag.deps});case 22:return u.next=24,Fe(O[0],{html:"",deps:y.divTag.deps},"beforeend");case 24:C=wh(T.get()),u.prev=25,C.s();case 27:if((B=C.n()).done){u.next=34;break}return D=B.value,O[0].appendChild(D),u.next=32,Fe(D,D.innerHTML||D.textContent);case 32:u.next=27;break;case 34:u.next=39;break;case 36:u.prev=36,u.t0=u.catch(25),C.e(u.t0);case 39:return u.prev=39,C.f(),u.finish(39);case 42:y.select&&E.find("a").tab("show");case 43:case"end":return u.stop()}},m,null,[[25,36,39,42]])}));return function(m){return p.apply(this,arguments)}}());function s(p){var m=p.data("shiny-input-binding");if(!m.getValue(p)){var y=c(p),g=G.default.Event("shiny:updateinput");g.binding=m,p.trigger(g),m.setValue(p[0],y)}}function c(p){return p.find("li:visible a[data-toggle='tab']").first().attr("data-value")||null}function l(p,m){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;G.default.each(p,function(g,b){g==="$liTag"?m(b):g==="$divTags"?G.default.each(b,function(O,x){m(x)}):y&&g==="$liTags"&&G.default.each(b,function(O,x){m(x)})})}le("shiny-remove-tab",function(p){var m=n(p.inputId),y=i(m),g=a(m,y,p.target);l(g,b),s(m);function b(O){ke(O,!0),O.remove()}}),le("shiny-change-tab-visibility",function(p){var m=n(p.inputId),y=i(m),g=a(m,y,p.target);l(g,b,!0),s(m);function b(O){p.type==="show"?O.css("display",""):p.type==="hide"&&(O.hide(),O.removeClass("active"))}}),le("updateQueryString",function(p){if(p.mode==="replace"){window.history.replaceState(null,null,p.queryString);return}var m=null;if(p.queryString.charAt(0)==="#")m="hash";else if(p.queryString.charAt(0)==="?")m="query";else throw"The 'query' string must start with either '?' (to update the query string) or with '#' (to update the hash).";var y=window.location.pathname,g=window.location.search,b=window.location.hash,O=y;m==="query"?O+=p.queryString:O+=g+p.queryString,window.history.pushState(null,null,O),p.queryString.indexOf("#")!==-1&&(m="hash"),window.location.hash!==b&&(m="hash"),m==="hash"&&(0,G.default)(document).trigger("hashchange")}),le("resetBrush",function(p){ds(p.brushId)})}},{key:"getTestSnapshotBaseUrl",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.fullUrl,i=n===void 0?!0:n,a=window.location,s="";return i&&(s=a.origin+a.pathname.replace(/\/[^/]*$/,"")),s+="/session/"+encodeURIComponent(this.config.sessionId)+"/dataobj/shinytest?w="+encodeURIComponent(this.config.workerId)+"&nonce="+hu(),s}}]),e}();function hi(e){return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hi(e)}function Ht(){"use strict";Ht=function(){return e};var e={},r=Object.prototype,t=r.hasOwnProperty,n=Object.defineProperty||function(f,o,u){f[o]=u.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(f,o,u){return Object.defineProperty(f,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),f[o]}try{l({},"")}catch(f){l=function(u,v,d){return u[v]=d}}function p(f,o,u,v){var d=o&&o.prototype instanceof g?o:g,h=Object.create(d.prototype),S=new B(v||[]);return n(h,"_invoke",{value:j(f,u,S)}),h}function m(f,o,u){try{return{type:"normal",arg:f.call(o,u)}}catch(v){return{type:"throw",arg:v}}}e.wrap=p;var y={};function g(){}function b(){}function O(){}var x={};l(x,a,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(D([])));E&&E!==r&&t.call(E,a)&&(x=E);var P=O.prototype=g.prototype=Object.create(x);function $(f){["next","throw","return"].forEach(function(o){l(f,o,function(u){return this._invoke(o,u)})})}function R(f,o){function u(d,h,S,_){var w=m(f[d],f,h);if(w.type!=="throw"){var I=w.arg,k=I.value;return k&&hi(k)=="object"&&t.call(k,"__await")?o.resolve(k.__await).then(function(A){u("next",A,S,_)},function(A){u("throw",A,S,_)}):o.resolve(k).then(function(A){I.value=A,S(I)},function(A){return u("throw",A,S,_)})}_(w.arg)}var v;n(this,"_invoke",{value:function(h,S){function _(){return new o(function(w,I){u(h,S,w,I)})}return v=v?v.then(_,_):_()}})}function j(f,o,u){var v="suspendedStart";return function(d,h){if(v==="executing")throw new Error("Generator is already running");if(v==="completed"){if(d==="throw")throw h;return z()}for(u.method=d,u.arg=h;;){var S=u.delegate;if(S){var _=L(S,u);if(_){if(_===y)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(v==="suspendedStart")throw v="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);v="executing";var w=m(f,o,u);if(w.type==="normal"){if(v=u.done?"completed":"suspendedYield",w.arg===y)continue;return{value:w.arg,done:u.done}}w.type==="throw"&&(v="completed",u.method="throw",u.arg=w.arg)}}}function L(f,o){var u=o.method,v=f.iterator[u];if(v===void 0)return o.delegate=null,u==="throw"&&f.iterator.return&&(o.method="return",o.arg=void 0,L(f,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var d=m(v,f.iterator,o.arg);if(d.type==="throw")return o.method="throw",o.arg=d.arg,o.delegate=null,y;var h=d.arg;return h?h.done?(o[f.resultName]=h.value,o.next=f.nextLoc,o.method!=="return"&&(o.method="next",o.arg=void 0),o.delegate=null,y):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function U(f){var o={tryLoc:f[0]};1 in f&&(o.catchLoc=f[1]),2 in f&&(o.finallyLoc=f[2],o.afterLoc=f[3]),this.tryEntries.push(o)}function C(f){var o=f.completion||{};o.type="normal",delete o.arg,f.completion=o}function B(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(U,this),this.reset(!0)}function D(f){if(f){var o=f[a];if(o)return o.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var u=-1,v=function d(){for(;++u<f.length;)if(t.call(f,u))return d.value=f[u],d.done=!1,d;return d.value=void 0,d.done=!0,d};return v.next=v}}return{next:z}}function z(){return{value:void 0,done:!0}}return b.prototype=O,n(P,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:b,configurable:!0}),b.displayName=l(O,c,"GeneratorFunction"),e.isGeneratorFunction=function(f){var o=typeof f=="function"&&f.constructor;return!!o&&(o===b||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,O):(f.__proto__=O,l(f,c,"GeneratorFunction")),f.prototype=Object.create(P),f},e.awrap=function(f){return{__await:f}},$(R.prototype),l(R.prototype,s,function(){return this}),e.AsyncIterator=R,e.async=function(f,o,u,v,d){d===void 0&&(d=Promise);var h=new R(p(f,o,u,v),d);return e.isGeneratorFunction(o)?h:h.next().then(function(S){return S.done?S.value:h.next()})},$(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(f){var o=Object(f),u=[];for(var v in o)u.push(v);return u.reverse(),function d(){for(;u.length;){var h=u.pop();if(h in o)return d.value=h,d.done=!1,d}return d.done=!0,d}},e.values=D,B.prototype={constructor:B,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!o)for(var u in this)u.charAt(0)==="t"&&t.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function v(I,k){return S.type="throw",S.arg=o,u.next=I,k&&(u.method="next",u.arg=void 0),!!k}for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d],S=h.completion;if(h.tryLoc==="root")return v("end");if(h.tryLoc<=this.prev){var _=t.call(h,"catchLoc"),w=t.call(h,"finallyLoc");if(_&&w){if(this.prev<h.catchLoc)return v(h.catchLoc,!0);if(this.prev<h.finallyLoc)return v(h.finallyLoc)}else if(_){if(this.prev<h.catchLoc)return v(h.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return v(h.finallyLoc)}}}},abrupt:function(o,u){for(var v=this.tryEntries.length-1;v>=0;--v){var d=this.tryEntries[v];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var h=d;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var S=h?h.completion:{};return S.type=o,S.arg=u,h?(this.method="next",this.next=h.finallyLoc,y):this.complete(S)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),y},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.finallyLoc===o)return this.complete(v.completion,v.afterLoc),C(v),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var v=this.tryEntries[u];if(v.tryLoc===o){var d=v.completion;if(d.type==="throw"){var h=d.arg;C(v)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,v){return this.delegate={iterator:D(o),resultName:u,nextLoc:v},this.method==="next"&&(this.arg=void 0),y}},e}function cT(e,r,t,n,i,a,s){try{var c=e[a](s),l=c.value}catch(p){t(p);return}c.done?r(l):Promise.resolve(l).then(n,i)}function Oh(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function s(l){cT(a,n,i,s,c,"next",l)}function c(l){cT(a,n,i,s,c,"throw",l)}s(void 0)})}}function i4(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function lT(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vT(n.key),n)}}function o4(e,r,t){return r&&lT(e.prototype,r),t&&lT(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e,r,t){return r=vT(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function vT(e){var r=a4(e,"string");return hi(r)==="symbol"?r:String(r)}function a4(e,r){if(hi(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(hi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var hT=function(){function e(){var r=this;i4(this,e),ee(this,"version",void 0),ee(this,"$escape",void 0),ee(this,"compareVersion",void 0),ee(this,"inputBindings",void 0),ee(this,"InputBinding",void 0),ee(this,"outputBindings",void 0),ee(this,"OutputBinding",void 0),ee(this,"resetBrush",void 0),ee(this,"notifications",void 0),ee(this,"modal",void 0),ee(this,"showReconnectDialog",void 0),ee(this,"hideReconnectDialog",void 0),ee(this,"renderDependenciesAsync",void 0),ee(this,"renderDependencies",void 0),ee(this,"renderContentAsync",void 0),ee(this,"renderContent",void 0),ee(this,"renderHtmlAsync",void 0),ee(this,"renderHtml",void 0),ee(this,"addCustomMessageHandler",void 0),ee(this,"createSocket",void 0),ee(this,"user",void 0),ee(this,"progressHandlers",void 0),ee(this,"shinyapp",void 0),ee(this,"setInputValue",void 0),ee(this,"onInputChange",void 0),ee(this,"forgetLastInputValue",void 0),ee(this,"bindAll",void 0),ee(this,"unbindAll",void 0),ee(this,"initializeInputs",void 0),ee(this,"initializedPromise",void 0),ee(this,"oncustommessage",void 0),this.version="1.10.0";var t=k_(),n=t.inputBindings,i=t.fileInputBinding,a=_P(),s=a.outputBindings;DO(i),this.$escape=H,this.compareVersion=B0,this.inputBindings=n,this.InputBinding=se,this.outputBindings=s,this.OutputBinding=Ie,this.resetBrush=ds,this.notifications={show:xr,remove:Rr},this.modal={show:ys,remove:gs},this.addCustomMessageHandler=sT,this.showReconnectDialog=bs,this.hideReconnectDialog=ws,this.renderDependenciesAsync=Tt,this.renderDependencies=mp,this.renderContentAsync=Fe,this.renderContent=rP,this.renderHtmlAsync=Po,this.renderHtml=dp,this.initializedPromise=KI(),(0,Q.default)(function(){setTimeout(Oh(Ht().mark(function c(){return Ht().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,r.initialize();case 3:p.next=9;break;case 5:throw p.prev=5,p.t0=p.catch(0),hs(p.t0),p.t0;case 9:case"end":return p.stop()}},c,null,[[0,5]])})),1)})}return o4(e,[{key:"inDevMode",value:function(){return"__SHINY_DEV_MODE__"in window?Boolean(window.__SHINY_DEV_MODE__):!1}},{key:"initialize",value:function(){var r=Oh(Ht().mark(function n(){var i=this,a,s,c,l,p,m,y,g,b,O,x,T,E,P,$,R,j,L,U,C,B,D,z,f,o,u,v,d;return Ht().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return o=function(w,I){for(var k=arguments.length,A=new Array(k>2?k-2:0),te=2;te<k;te++)A[te-2]=arguments[te];var fe=w.split(".");return function(qe){for(var Ve,cr,$r=(Ve=(cr=qe.namespace)===null||cr===void 0?void 0:cr.split("."))!==null&&Ve!==void 0?Ve:[],Ns=0;Ns<fe.length;Ns++)if($r.indexOf(fe[Ns])===-1)return;I.apply(this,[fe,I].concat(A))}},f=function(){z.normalCall()},D=function(){var w={};(0,Q.default)(".shiny-bound-output").each(function(){var k=E(this);delete B[k];var A=C(this),te={type:"shiny:visualchange",visible:!A};A?g.setInput(".clientdata_output_"+k+"_hidden",!0):(w[k]=!0,g.setInput(".clientdata_output_"+k+"_hidden",!1));var fe=(0,Q.default)(this);te.binding=fe.data("shiny-output-binding"),fe.trigger(te)});for(var I in B)F(B,I)&&g.setInput(".clientdata_output_"+I+"_hidden",!0);B=w},C=function(w){return w===null||w.offsetWidth!==0||w.offsetHeight!==0?!1:pr(w,"display")==="none"?!0:C(w.parentNode)},U=function(){(0,Q.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function(){var w=E(this),I=Il(this);(I.width!==0||I.height!==0)&&(g.setInput(".clientdata_output_"+w+"_width",I.width),g.setInput(".clientdata_output_"+w+"_height",I.height))}),(0,Q.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-theme").each(function(){L(this)}),(0,Q.default)(".shiny-bound-output").each(function(){var w=(0,Q.default)(this),I=w.data("shiny-output-binding");w.trigger({type:"shiny:visualchange",visible:!C(this),binding:I}),I.onResize()})},L=function(w){if(!w.classList.contains("shiny-output-error")){var I=E(w);g.setInput(".clientdata_output_"+I+"_bg",$(w)),g.setInput(".clientdata_output_"+I+"_fg",pr(w,"color")),g.setInput(".clientdata_output_"+I+"_accent",io(w)),g.setInput(".clientdata_output_"+I+"_font",R(w))}},j=function(w){if(!!window.MutationObserver){var I=w.classList,k=I.contains("shiny-image-output")||I.contains("shiny-plot-output")||I.contains("shiny-report-theme");if(!!k){var A=(0,Q.default)(w);if(!A.data("shiny-theme-observer")){var te=new ur(null,function(){return L(w)},100),fe=new MutationObserver(function(){return te.normalCall()}),qe={attributes:!0,attributeFilter:["style","class"]};fe.observe(w,qe),A.data("shiny-theme-observer",fe)}}}},R=function(w){var I=pr(w,"font-family"),k=pr(w,"font-size");return{families:I==null?void 0:I.replace(/"/g,"").split(", "),size:k}},$=function(w){if(!w)return null;var I=pr(w,"background-color");if(!I)return I;var k=I.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);if(I==="transparent"||k&&parseFloat(k[4])===0){var A=pr(w,"background-image");return A&&A!=="none"?null:$(w.parentElement)}return I},E=function(w){var I=(0,Q.default)(w),k=I.data("shiny-output-binding");return k?k.getId():null},T=function(){for(var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement,I=b.getBindings(),k=0;k<I.length;k++){var A=I[k].binding,te=A.find(w);if(te)for(var fe=0;fe<te.length;fe++){var qe=(0,Q.default)(te[fe]);qe.data("_shiny_initialized")||(qe.data("_shiny_initialized",!0),A.initialize(te[fe]))}}},x=function(){return{inputs:g,inputsRate:p,sendOutputHiddenState:f,maybeAddThemeObserver:j,inputBindings:b,outputBindings:O,initDeferredIframes:pT}},xO(this),this.shinyapp=new fT,a=this.shinyapp,this.progressHandlers=a.progressHandlers,s=new Av(a),c=new Lv(s),l=new jv(c),p=new Cv(l),m=new $v(l),(0,Q.default)('input[type="submit"], button[type="submit"]').length>0?(y=m,(0,Q.default)('input[type="submit"], button[type="submit"]').each(function(){(0,Q.default)(this).click(function(_){_.preventDefault(),m.submit()})})):y=p,g=new Bv(y),this.setInputValue=this.onInputChange=function(_,w){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=Dv(I);g.setInput(_,w,k)},this.forgetLastInputValue=function(_){c.forget(_)},b=this.inputBindings,O=this.outputBindings,this.bindAll=function(){var _=Oh(Ht().mark(function w(I){return Ht().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,nq(x(),I);case 2:case"end":return A.stop()}},w)}));return function(w){return _.apply(this,arguments)}}(),this.unbindAll=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;tq(x(),_,w)},this.initializeInputs=T,T(document.documentElement),S.t0=or,S.next=34,Wv(x(),document.documentElement);case 34:S.t1=S.sent,S.t2=function(_){return _.value},P=(0,S.t0)(S.t1,S.t2),(0,Q.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function(){var _=E(this),w=Il(this);(w.width!==0||w.height!==0)&&(P[".clientdata_output_"+_+"_width"]=w.width,P[".clientdata_output_"+_+"_height"]=w.height)}),(0,Q.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-theme").each(function(){var _=this,w=E(_);P[".clientdata_output_"+w+"_bg"]=$(_),P[".clientdata_output_"+w+"_fg"]=pr(_,"color"),P[".clientdata_output_"+w+"_accent"]=io(_),P[".clientdata_output_"+w+"_font"]=R(_),j(_)}),sr.setImageSend(s,U),B={},(0,Q.default)(".shiny-bound-output").each(function(){var _=E(this);C(this)?P[".clientdata_output_"+_+"_hidden"]=!0:(B[_]=!0,P[".clientdata_output_"+_+"_hidden"]=!1)}),z=new ur(null,D,0),s.lastChanceCallback.push(function(){z.isPending()&&z.immediateCall()}),(0,Q.default)(window).resize(zr(500,sr.regular)),u=["modal","dropdown","tab","tooltip","popover","collapse"],Q.default.each(u,function(_,w){(0,Q.default)(document.body).on("shown.bs."+w+".sendImageSize","*",o("bs",sr.regular)),(0,Q.default)(document.body).on("shown.bs."+w+".sendOutputHiddenState hidden.bs."+w+".sendOutputHiddenState","*",o("bs",f))}),(0,Q.default)(document.body).on("shown.sendImageSize","*",sr.regular),(0,Q.default)(document.body).on("shown.sendOutputHiddenState hidden.sendOutputHiddenState","*",f),P[".clientdata_pixelratio"]=El(),(0,Q.default)(window).resize(function(){g.setInput(".clientdata_pixelratio",El())}),P[".clientdata_url_protocol"]=window.location.protocol,P[".clientdata_url_hostname"]=window.location.hostname,P[".clientdata_url_port"]=window.location.port,P[".clientdata_url_pathname"]=window.location.pathname,P[".clientdata_url_search"]=window.location.search,(0,Q.default)(window).on("pushstate",function(_){g.setInput(".clientdata_url_search",window.location.search)}),(0,Q.default)(window).on("popstate",function(_){g.setInput(".clientdata_url_search",window.location.search)}),P[".clientdata_url_hash_initial"]=window.location.hash,P[".clientdata_url_hash"]=window.location.hash,(0,Q.default)(window).on("hashchange",function(_){g.setInput(".clientdata_url_hash",window.location.hash)}),v=P[".clientdata_singletons"]=(0,Q.default)('script[type="application/shiny-singletons"]').text(),X_(v.split(/,/)),d=(0,Q.default)('script[type="application/html-dependencies"]').text(),Q.default.each(d.split(/;/),function(_,w){var I=/\s*^(.+)\[(.+)\]\s*$/.exec(w);I&&Cu(I[1],I[2])}),c.reset(P),a.connect(P),(0,Q.default)(document).one("shiny:connected",function(){pT()}),(0,Q.default)(document).one("shiny:sessioninitialized",function(){i.initializedPromise.resolve()});case 69:case"end":return S.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()}]),e}();function pT(){!window.Shiny||!window.Shiny.shinyapp||!window.Shiny.shinyapp.isConnected()||(0,Q.default)(".shiny-frame-deferred").each(function(e,r){var t=(0,Q.default)(r);t.removeClass("shiny-frame-deferred"),t.attr("src",t.attr("data-deferred-src")),t.attr("data-deferred-src",null)})}function dT(){return window.navigator.userAgent}var $s=N(Y());function As(){return Pt().config}function mT(){(0,$s.default)(document).on("keydown",function(e){if(!(e.which!==114||!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey)){var r="reactlog?w="+window.escape(As().workerId)+"&s="+window.escape(As().sessionId);window.open(r),e.preventDefault()}}),(0,$s.default)(document).on("keydown",function(e){if(!!(e.which===115&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey||e.which===114&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey)){var r="reactlog/mark?w="+window.escape(As().workerId)+"&s="+window.escape(As().sessionId);$s.default.get(r,function(t){if(t==="marked"){var n='<span id="shiny-reactlog-mark-text">Marked time point in reactlog</span>';xr({html:n,closeButton:!0})}}).fail(function(){window.open(r)}),e.preventDefault()}})}var ii;function yT(){if(window.Shiny)throw new Error("Trying to create window.Shiny, but it already exists!");ii=window.Shiny=new hT,uy(dT()),sy(),py(),cy(),mT()}yT();})();
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
//# sourceMappingURL=shiny.min.js.map
|