Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
build
/
File Content:
5950.30ec6aaa9dcece6c3b3c.js
(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5950],{69119:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BLANK_URL=g.relativeFirstCharacters=g.urlSchemeRegex=g.ctrlCharactersRegex=g.htmlCtrlEntityRegex=g.htmlEntitiesRegex=g.invalidProtocolRegex=void 0,g.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,g.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,g.htmlCtrlEntityRegex=/&(newline|tab);/gi,g.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,g.urlSchemeRegex=/^.+(:|:)/gim,g.relativeFirstCharacters=[".","/"],g.BLANK_URL="about:blank"},16750:(J,g,t)=>{"use strict";var i;i={value:!0},g.J=void 0;var l=t(69119);function s(f){return l.relativeFirstCharacters.indexOf(f[0])>-1}function m(f){var p=f.replace(l.ctrlCharactersRegex,"");return p.replace(l.htmlEntitiesRegex,function(v,h){return String.fromCharCode(h)})}function u(f){if(!f)return l.BLANK_URL;var p=m(f).replace(l.htmlCtrlEntityRegex,"").replace(l.ctrlCharactersRegex,"").trim();if(!p)return l.BLANK_URL;if(s(p))return p;var v=p.match(l.urlSchemeRegex);if(!v)return p;var h=v[0];return l.invalidProtocolRegex.test(h)?l.BLANK_URL:p}g.J=u},84300:(J,g,t)=>{"use strict";t.r(g),t.d(g,{default:()=>On});function i(Ct){if(Ct.sheet)return Ct.sheet;for(var Zt=0;Zt<document.styleSheets.length;Zt++)if(document.styleSheets[Zt].ownerNode===Ct)return document.styleSheets[Zt]}function l(Ct){var Zt=document.createElement("style");return Zt.setAttribute("data-emotion",Ct.key),Ct.nonce!==void 0&&Zt.setAttribute("nonce",Ct.nonce),Zt.appendChild(document.createTextNode("")),Zt.setAttribute("data-s",""),Zt}var s=function(){function Ct(Wn){var Zn=this;this._insertTag=function(xt){var Xe;Zn.tags.length===0?Zn.insertionPoint?Xe=Zn.insertionPoint.nextSibling:Zn.prepend?Xe=Zn.container.firstChild:Xe=Zn.before:Xe=Zn.tags[Zn.tags.length-1].nextSibling,Zn.container.insertBefore(xt,Xe),Zn.tags.push(xt)},this.isSpeedy=Wn.speedy===void 0?!0:Wn.speedy,this.tags=[],this.ctr=0,this.nonce=Wn.nonce,this.key=Wn.key,this.container=Wn.container,this.prepend=Wn.prepend,this.insertionPoint=Wn.insertionPoint,this.before=null}var Zt=Ct.prototype;return Zt.hydrate=function(Zn){Zn.forEach(this._insertTag)},Zt.insert=function(Zn){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(l(this));var xt=this.tags[this.tags.length-1];if(!1)var Xe;if(this.isSpeedy){var gn=i(xt);try{gn.insertRule(Zn,gn.cssRules.length)}catch{}}else xt.appendChild(document.createTextNode(Zn));this.ctr++},Zt.flush=function(){this.tags.forEach(function(Zn){return Zn.parentNode&&Zn.parentNode.removeChild(Zn)}),this.tags=[],this.ctr=0},Ct}(),m=Math.abs,u=String.fromCharCode,f=Object.assign;function p(Ct,Zt){return y(Ct,0)^45?(((Zt<<2^y(Ct,0))<<2^y(Ct,1))<<2^y(Ct,2))<<2^y(Ct,3):0}function v(Ct){return Ct.trim()}function h(Ct,Zt){return(Ct=Zt.exec(Ct))?Ct[0]:Ct}function d(Ct,Zt,Wn){return Ct.replace(Zt,Wn)}function b(Ct,Zt){return Ct.indexOf(Zt)}function y(Ct,Zt){return Ct.charCodeAt(Zt)|0}function w(Ct,Zt,Wn){return Ct.slice(Zt,Wn)}function S(Ct){return Ct.length}function O(Ct){return Ct.length}function R(Ct,Zt){return Zt.push(Ct),Ct}function M(Ct,Zt){return Ct.map(Zt).join("")}var D=1,P=1,T=0,A=0,j=0,ae="";function _(Ct,Zt,Wn,Zn,xt,Xe,gn){return{value:Ct,root:Zt,parent:Wn,type:Zn,props:xt,children:Xe,line:D,column:P,length:gn,return:""}}function N(Ct,Zt){return f(_("",null,null,"",null,null,0),Ct,{length:-Ct.length},Zt)}function W(){return j}function he(){return j=A>0?y(ae,--A):0,P--,j===10&&(P=1,D--),j}function me(){return j=A<T?y(ae,A++):0,P++,j===10&&(P=1,D++),j}function fe(){return y(ae,A)}function ve(){return A}function ce(Ct,Zt){return w(ae,Ct,Zt)}function oe(Ct){switch(Ct){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function re(Ct){return D=P=1,T=S(ae=Ct),A=0,[]}function H(Ct){return ae="",Ct}function V(Ct){return v(ce(A-1,pe(Ct===91?Ct+2:Ct===40?Ct+1:Ct)))}function Q(Ct){return H(Re(re(Ct)))}function Te(Ct){for(;(j=fe())&&j<33;)me();return oe(Ct)>2||oe(j)>3?"":" "}function Re(Ct){for(;me();)switch(oe(j)){case 0:append(Se(A-1),Ct);break;case 2:append(V(j),Ct);break;default:append(from(j),Ct)}return Ct}function ne(Ct,Zt){for(;--Zt&&me()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return ce(Ct,ve()+(Zt<6&&fe()==32&&me()==32))}function pe(Ct){for(;me();)switch(j){case Ct:return A;case 34:case 39:Ct!==34&&Ct!==39&&pe(j);break;case 40:Ct===41&&pe(Ct);break;case 92:me();break}return A}function ye(Ct,Zt){for(;me()&&Ct+j!==47+10;)if(Ct+j===42+42&&fe()===47)break;return"/*"+ce(Zt,A-1)+"*"+u(Ct===47?Ct:me())}function Se(Ct){for(;!oe(fe());)me();return ce(Ct,A)}var Ae="-ms-",Ee="-moz-",xe="-webkit-",nt="comm",Tt="rule",pt="decl",Rt="@page",tt="@media",U="@import",F="@charset",Y="@viewport",le="@supports",ke="@document",Ye="@namespace",ft="@keyframes",wt="@font-face",Ut="@counter-style",Ke="@font-feature-values",it="@layer";function At(Ct,Zt){for(var Wn="",Zn=O(Ct),xt=0;xt<Zn;xt++)Wn+=Zt(Ct[xt],xt,Ct,Zt)||"";return Wn}function et(Ct,Zt,Wn,Zn){switch(Ct.type){case it:if(Ct.children.length)break;case U:case pt:return Ct.return=Ct.return||Ct.value;case nt:return"";case ft:return Ct.return=Ct.value+"{"+At(Ct.children,Zn)+"}";case Tt:Ct.value=Ct.props.join(",")}return S(Wn=At(Ct.children,Zn))?Ct.return=Ct.value+"{"+Wn+"}":""}function ee(Ct){var Zt=O(Ct);return function(Wn,Zn,xt,Xe){for(var gn="",Qt=0;Qt<Zt;Qt++)gn+=Ct[Qt](Wn,Zn,xt,Xe)||"";return gn}}function I(Ct){return function(Zt){Zt.root||(Zt=Zt.return)&&Ct(Zt)}}function K(Ct,Zt,Wn,Zn){if(Ct.length>-1&&!Ct.return)switch(Ct.type){case DECLARATION:Ct.return=prefix(Ct.value,Ct.length,Wn);return;case KEYFRAMES:return serialize([copy(Ct,{value:replace(Ct.value,"@","@"+WEBKIT)})],Zn);case RULESET:if(Ct.length)return combine(Ct.props,function(xt){switch(match(xt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(Ct,{props:[replace(xt,/:(read-\w+)/,":"+MOZ+"$1")]})],Zn);case"::placeholder":return serialize([copy(Ct,{props:[replace(xt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(Ct,{props:[replace(xt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(Ct,{props:[replace(xt,/:(plac\w+)/,MS+"input-$1")]})],Zn)}return""})}}function ue(Ct){switch(Ct.type){case RULESET:Ct.props=Ct.props.map(function(Zt){return combine(tokenize(Zt),function(Wn,Zn,xt){switch(charat(Wn,0)){case 12:return substr(Wn,1,strlen(Wn));case 0:case 40:case 43:case 62:case 126:return Wn;case 58:xt[++Zn]==="global"&&(xt[Zn]="",xt[++Zn]="\f"+substr(xt[Zn],Zn=1,-1));case 32:return Zn===1?"":Wn;default:switch(Zn){case 0:return Ct=Wn,sizeof(xt)>1?"":Wn;case(Zn=sizeof(xt)-1):case 2:return Zn===2?Wn+Ct+Ct:Wn+Ct;default:return Wn}}})})}}function De(Ct){return H(He("",null,null,null,[""],Ct=re(Ct),0,[0],Ct))}function He(Ct,Zt,Wn,Zn,xt,Xe,gn,Qt,Dt){for(var hn=0,cn=0,an=gn,Or=0,Ln=0,En=0,Gn=1,rr=1,sr=1,pi=0,yi="",jr=xt,ui=Xe,bi=Zn,ri=yi;rr;)switch(En=pi,pi=me()){case 40:if(En!=108&&y(ri,an-1)==58){b(ri+=d(V(pi),"&","&\f"),"&\f")!=-1&&(sr=-1);break}case 34:case 39:case 91:ri+=V(pi);break;case 9:case 10:case 13:case 32:ri+=Te(En);break;case 92:ri+=ne(ve()-1,7);continue;case 47:switch(fe()){case 42:case 47:R(ze(ye(me(),ve()),Zt,Wn),Dt);break;default:ri+="/"}break;case 123*Gn:Qt[hn++]=S(ri)*sr;case 125*Gn:case 59:case 0:switch(pi){case 0:case 125:rr=0;case 59+cn:sr==-1&&(ri=d(ri,/\f/g,"")),Ln>0&&S(ri)-an&&R(Ln>32?qe(ri+";",Zn,Wn,an-1):qe(d(ri," ","")+";",Zn,Wn,an-2),Dt);break;case 59:ri+=";";default:if(R(bi=Fe(ri,Zt,Wn,hn,cn,xt,Qt,yi,jr=[],ui=[],an),Xe),pi===123)if(cn===0)He(ri,Zt,bi,bi,jr,Xe,an,Qt,ui);else switch(Or===99&&y(ri,3)===110?100:Or){case 100:case 108:case 109:case 115:He(Ct,bi,bi,Zn&&R(Fe(Ct,bi,bi,0,0,xt,Qt,yi,xt,jr=[],an),ui),xt,ui,an,Qt,Zn?jr:ui);break;default:He(ri,bi,bi,bi,[""],ui,0,Qt,ui)}}hn=cn=Ln=0,Gn=sr=1,yi=ri="",an=gn;break;case 58:an=1+S(ri),Ln=En;default:if(Gn<1){if(pi==123)--Gn;else if(pi==125&&Gn++==0&&he()==125)continue}switch(ri+=u(pi),pi*Gn){case 38:sr=cn>0?1:(ri+="\f",-1);break;case 44:Qt[hn++]=(S(ri)-1)*sr,sr=1;break;case 64:fe()===45&&(ri+=V(me())),Or=fe(),cn=an=S(yi=ri+=Se(ve())),pi++;break;case 45:En===45&&S(ri)==2&&(Gn=0)}}return Xe}function Fe(Ct,Zt,Wn,Zn,xt,Xe,gn,Qt,Dt,hn,cn){for(var an=xt-1,Or=xt===0?Xe:[""],Ln=O(Or),En=0,Gn=0,rr=0;En<Zn;++En)for(var sr=0,pi=w(Ct,an+1,an=m(Gn=gn[En])),yi=Ct;sr<Ln;++sr)(yi=v(Gn>0?Or[sr]+" "+pi:d(pi,/&\f/g,Or[sr])))&&(Dt[rr++]=yi);return _(Ct,Zt,Wn,xt===0?Tt:Qt,Dt,hn,cn)}function ze(Ct,Zt,Wn){return _(Ct,Zt,Wn,nt,u(W()),w(Ct,2,-2),0)}function qe(Ct,Zt,Wn,Zn){return _(Ct,Zt,Wn,pt,w(Ct,0,Zn),w(Ct,Zn+1,-1),Zn)}var We=function(Zt,Wn,Zn){for(var xt=0,Xe=0;xt=Xe,Xe=fe(),xt===38&&Xe===12&&(Wn[Zn]=1),!oe(Xe);)me();return ce(Zt,A)},_t=function(Zt,Wn){var Zn=-1,xt=44;do switch(oe(xt)){case 0:xt===38&&fe()===12&&(Wn[Zn]=1),Zt[Zn]+=We(A-1,Wn,Zn);break;case 2:Zt[Zn]+=V(xt);break;case 4:if(xt===44){Zt[++Zn]=fe()===58?"&\f":"",Wn[Zn]=Zt[Zn].length;break}default:Zt[Zn]+=u(xt)}while(xt=me());return Zt},ct=function(Zt,Wn){return H(_t(re(Zt),Wn))},Ge=new WeakMap,st=function(Zt){if(!(Zt.type!=="rule"||!Zt.parent||Zt.length<1)){for(var Wn=Zt.value,Zn=Zt.parent,xt=Zt.column===Zn.column&&Zt.line===Zn.line;Zn.type!=="rule";)if(Zn=Zn.parent,!Zn)return;if(!(Zt.props.length===1&&Wn.charCodeAt(0)!==58&&!Ge.get(Zn))&&!xt){Ge.set(Zt,!0);for(var Xe=[],gn=ct(Wn,Xe),Qt=Zn.props,Dt=0,hn=0;Dt<gn.length;Dt++)for(var cn=0;cn<Qt.length;cn++,hn++)Zt.props[hn]=Xe[Dt]?gn[Dt].replace(/&\f/g,Qt[cn]):Qt[cn]+" "+gn[Dt]}}},Me=function(Zt){if(Zt.type==="decl"){var Wn=Zt.value;Wn.charCodeAt(0)===108&&Wn.charCodeAt(2)===98&&(Zt.return="",Zt.value="")}},ie="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ge=function(Zt){return Zt.type==="comm"&&Zt.children.indexOf(ie)>-1},z=function(Zt){return function(Wn,Zn,xt){if(!(Wn.type!=="rule"||Zt.compat)){var Xe=Wn.value.match(/(:first|:nth|:nth-last)-child/g);if(Xe){for(var gn=!!Wn.parent,Qt=gn?Wn.parent.children:xt,Dt=Qt.length-1;Dt>=0;Dt--){var hn=Qt[Dt];if(hn.line<Wn.line)break;if(hn.column<Wn.column){if(ge(hn))return;break}}Xe.forEach(function(cn){console.error('The pseudo class "'+cn+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+cn.split("-child")[0]+'-of-type".')})}}}},be=function(Zt){return Zt.type.charCodeAt(1)===105&&Zt.type.charCodeAt(0)===64},Qe=function(Zt,Wn){for(var Zn=Zt-1;Zn>=0;Zn--)if(!be(Wn[Zn]))return!0;return!1},Bt=function(Zt){Zt.type="",Zt.value="",Zt.return="",Zt.children="",Zt.props=""},nn=function(Zt,Wn,Zn){be(Zt)&&(Zt.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Bt(Zt)):Qe(Wn,Zn)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Bt(Zt)))};function bt(Ct,Zt){switch(p(Ct,Zt)){case 5103:return xe+"print-"+Ct+Ct;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xe+Ct+Ct;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+Ct+Ee+Ct+Ae+Ct+Ct;case 6828:case 4268:return xe+Ct+Ae+Ct+Ct;case 6165:return xe+Ct+Ae+"flex-"+Ct+Ct;case 5187:return xe+Ct+d(Ct,/(\w+).+(:[^]+)/,xe+"box-$1$2"+Ae+"flex-$1$2")+Ct;case 5443:return xe+Ct+Ae+"flex-item-"+d(Ct,/flex-|-self/,"")+Ct;case 4675:return xe+Ct+Ae+"flex-line-pack"+d(Ct,/align-content|flex-|-self/,"")+Ct;case 5548:return xe+Ct+Ae+d(Ct,"shrink","negative")+Ct;case 5292:return xe+Ct+Ae+d(Ct,"basis","preferred-size")+Ct;case 6060:return xe+"box-"+d(Ct,"-grow","")+xe+Ct+Ae+d(Ct,"grow","positive")+Ct;case 4554:return xe+d(Ct,/([^-])(transform)/g,"$1"+xe+"$2")+Ct;case 6187:return d(d(d(Ct,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),Ct,"")+Ct;case 5495:case 3959:return d(Ct,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return d(d(Ct,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+Ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+Ct+Ct;case 4095:case 3583:case 4068:case 2532:return d(Ct,/(.+)-inline(.+)/,xe+"$1$2")+Ct;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(Ct)-1-Zt>6)switch(y(Ct,Zt+1)){case 109:if(y(Ct,Zt+4)!==45)break;case 102:return d(Ct,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+Ee+(y(Ct,Zt+3)==108?"$3":"$2-$3"))+Ct;case 115:return~b(Ct,"stretch")?bt(d(Ct,"stretch","fill-available"),Zt)+Ct:Ct}break;case 4949:if(y(Ct,Zt+1)!==115)break;case 6444:switch(y(Ct,S(Ct)-3-(~b(Ct,"!important")&&10))){case 107:return d(Ct,":",":"+xe)+Ct;case 101:return d(Ct,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(y(Ct,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+Ae+"$2box$3")+Ct}break;case 5936:switch(y(Ct,Zt+11)){case 114:return xe+Ct+Ae+d(Ct,/[svh]\w+-[tblr]{2}/,"tb")+Ct;case 108:return xe+Ct+Ae+d(Ct,/[svh]\w+-[tblr]{2}/,"tb-rl")+Ct;case 45:return xe+Ct+Ae+d(Ct,/[svh]\w+-[tblr]{2}/,"lr")+Ct}return xe+Ct+Ae+Ct+Ct}return Ct}var at=function(Zt,Wn,Zn,xt){if(Zt.length>-1&&!Zt.return)switch(Zt.type){case pt:Zt.return=bt(Zt.value,Zt.length);break;case ft:return At([N(Zt,{value:d(Zt.value,"@","@"+xe)})],xt);case Tt:if(Zt.length)return M(Zt.props,function(Xe){switch(h(Xe,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return At([N(Zt,{props:[d(Xe,/:(read-\w+)/,":"+Ee+"$1")]})],xt);case"::placeholder":return At([N(Zt,{props:[d(Xe,/:(plac\w+)/,":"+xe+"input-$1")]}),N(Zt,{props:[d(Xe,/:(plac\w+)/,":"+Ee+"$1")]}),N(Zt,{props:[d(Xe,/:(plac\w+)/,Ae+"input-$1")]})],xt)}return""})}},$t=[at],On=function(Zt){var Wn=Zt.key;if(Wn==="css"){var Zn=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Zn,function(Gn){var rr=Gn.getAttribute("data-emotion");rr.indexOf(" ")!==-1&&(document.head.appendChild(Gn),Gn.setAttribute("data-s",""))})}var xt=Zt.stylisPlugins||$t,Xe={},gn,Qt=[];gn=Zt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Wn+' "]'),function(Gn){for(var rr=Gn.getAttribute("data-emotion").split(" "),sr=1;sr<rr.length;sr++)Xe[rr[sr]]=!0;Qt.push(Gn)});var Dt,hn=[st,Me];{var cn,an=[et,I(function(Gn){cn.insert(Gn)})],Or=ee(hn.concat(xt,an)),Ln=function(rr){return At(De(rr),Or)};Dt=function(rr,sr,pi,yi){cn=pi,Ln(rr?rr+"{"+sr.styles+"}":sr.styles),yi&&(En.inserted[sr.name]=!0)}}var En={key:Wn,sheet:new s({key:Wn,container:gn,nonce:Zt.nonce,speedy:Zt.speedy,prepend:Zt.prepend,insertionPoint:Zt.insertionPoint}),nonce:Zt.nonce,inserted:Xe,registered:{},insert:Dt};return En.sheet.hydrate(Qt),En}},32196:(J,g,t)=>{"use strict";t.r(g),t.d(g,{cache:()=>D,css:()=>R,cx:()=>b,flush:()=>h,getRegisteredStyles:()=>w,hydrate:()=>d,injectGlobal:()=>S,keyframes:()=>O,merge:()=>y,sheet:()=>M});var i=t(84300),l=t(13451),s=t(30041);function m(P,T){if(P.inserted[T.name]===void 0)return P.insert("",T,P.sheet,!0)}function u(P,T,A){var j=[],ae=(0,s.getRegisteredStyles)(P,j,A);return j.length<2?A:ae+T(j)}var f=function(T){var A=(0,i.default)(T);A.sheet.speedy=function(W){this.isSpeedy=W},A.compat=!0;var j=function(){for(var he=arguments.length,me=new Array(he),fe=0;fe<he;fe++)me[fe]=arguments[fe];var ve=(0,l.serializeStyles)(me,A.registered,void 0);return(0,s.insertStyles)(A,ve,!1),A.key+"-"+ve.name},ae=function(){for(var he=arguments.length,me=new Array(he),fe=0;fe<he;fe++)me[fe]=arguments[fe];var ve=(0,l.serializeStyles)(me,A.registered),ce="animation-"+ve.name;return m(A,{name:ve.name,styles:"@keyframes "+ce+"{"+ve.styles+"}"}),ce},_=function(){for(var he=arguments.length,me=new Array(he),fe=0;fe<he;fe++)me[fe]=arguments[fe];var ve=(0,l.serializeStyles)(me,A.registered);m(A,ve)},N=function(){for(var he=arguments.length,me=new Array(he),fe=0;fe<he;fe++)me[fe]=arguments[fe];return u(A.registered,j,p(me))};return{css:j,cx:N,injectGlobal:_,keyframes:ae,hydrate:function(he){he.forEach(function(me){A.inserted[me]=!0})},flush:function(){A.registered={},A.inserted={},A.sheet.flush()},sheet:A.sheet,cache:A,getRegisteredStyles:s.getRegisteredStyles.bind(null,A.registered),merge:u.bind(null,A.registered,j)}},p=function P(T){for(var A="",j=0;j<T.length;j++){var ae=T[j];if(ae!=null){var _=void 0;switch(typeof ae){case"boolean":break;case"object":{if(Array.isArray(ae))_=P(ae);else{_="";for(var N in ae)ae[N]&&N&&(_&&(_+=" "),_+=N)}break}default:_=ae}_&&(A&&(A+=" "),A+=_)}}return A},v=f({key:"css"}),h=v.flush,d=v.hydrate,b=v.cx,y=v.merge,w=v.getRegisteredStyles,S=v.injectGlobal,O=v.keyframes,R=v.css,M=v.sheet,D=v.cache},36289:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l){var s=Object.create(null);return function(m){return s[m]===void 0&&(s[m]=l(m)),s[m]}}},8267:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(4146);function l(u){return u&&u.__esModule?u:{default:u}}var s=l(i),m=function(u,f){return s.default(u,f)};g.default=m},8843:(J,g,t)=>{"use strict";var i=t(96540),l=t(84300),s=t(94634),m=t(92809),u=t(8267),f=t(30041),p=t(13451),v=t(71287);function h(ve){return ve&&ve.__esModule?ve:{default:ve}}function d(ve){if(ve&&ve.__esModule)return ve;var ce=Object.create(null);return ve&&Object.keys(ve).forEach(function(oe){if(oe!=="default"){var re=Object.getOwnPropertyDescriptor(ve,oe);Object.defineProperty(ce,oe,re.get?re:{enumerable:!0,get:function(){return ve[oe]}})}}),ce.default=ve,Object.freeze(ce)}var b=d(i),y=h(l),w=h(m),S=typeof document<"u",O={}.hasOwnProperty,R=b.createContext(typeof HTMLElement<"u"?y.default({key:"css"}):null),M=R.Provider,D=function(){return i.useContext(R)};g.withEmotionCache=function(ce){return i.forwardRef(function(oe,re){var H=i.useContext(R);return ce(oe,H,re)})},S||(g.withEmotionCache=function(ce){return function(oe){var re=i.useContext(R);return re===null?(re=y.default({key:"css"}),b.createElement(R.Provider,{value:re},ce(oe,re))):ce(oe,re)}});var P=b.createContext({}),T=function(){return b.useContext(P)},A=function(ce,oe){if(typeof oe=="function"){var re=oe(ce);return re}return s({},ce,oe)},j=w.default(function(ve){return w.default(function(ce){return A(ve,ce)})}),ae=function(ce){var oe=b.useContext(P);return ce.theme!==oe&&(oe=j(oe)(ce.theme)),b.createElement(P.Provider,{value:oe},ce.children)};function _(ve){var ce=ve.displayName||ve.name||"Component",oe=function(V,Q){var Te=b.useContext(P);return b.createElement(ve,s({theme:Te,ref:Q},V))},re=b.forwardRef(oe);return re.displayName="WithTheme("+ce+")",u.default(re,ve)}var N="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",W=function(ce,oe){var re={};for(var H in oe)O.call(oe,H)&&(re[H]=oe[H]);return re[N]=ce,re},he=function(ce){var oe=ce.cache,re=ce.serialized,H=ce.isStringTag;f.registerStyles(oe,re,H);var V=v.useInsertionEffectAlwaysWithSyncFallback(function(){return f.insertStyles(oe,re,H)});if(!S&&V!==void 0){for(var Q,Te=re.name,Re=re.next;Re!==void 0;)Te+=" "+Re.name,Re=Re.next;return b.createElement("style",(Q={},Q["data-emotion"]=oe.key+" "+Te,Q.dangerouslySetInnerHTML={__html:V},Q.nonce=oe.sheet.nonce,Q))}return null},me=g.withEmotionCache(function(ve,ce,oe){var re=ve.css;typeof re=="string"&&ce.registered[re]!==void 0&&(re=ce.registered[re]);var H=ve[N],V=[re],Q="";typeof ve.className=="string"?Q=f.getRegisteredStyles(ce.registered,V,ve.className):ve.className!=null&&(Q=ve.className+" ");var Te=p.serializeStyles(V,void 0,b.useContext(P));Q+=ce.key+"-"+Te.name;var Re={};for(var ne in ve)O.call(ve,ne)&&ne!=="css"&&ne!==N&&(Re[ne]=ve[ne]);return Re.ref=oe,Re.className=Q,b.createElement(b.Fragment,null,b.createElement(he,{cache:ce,serialized:Te,isStringTag:typeof H=="string"}),b.createElement(H,Re))}),fe=me;g.CacheProvider=M,g.Emotion=fe,g.ThemeContext=P,g.ThemeProvider=ae,g.__unsafe_useEmotionCache=D,g.createEmotionProps=W,g.hasOwnProperty=O,g.isBrowser=S,g.useTheme=T,g.withTheme=_},52762:(J,g,t)=>{"use strict";J.exports=t(94659)},94659:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(8843),l=t(96540),s=t(30041),m=t(71287),u=t(13451);t(84300),t(94634),t(92809),t(8267),t(4146);function f(R){if(R&&R.__esModule)return R;var M=Object.create(null);return R&&Object.keys(R).forEach(function(D){if(D!=="default"){var P=Object.getOwnPropertyDescriptor(R,D);Object.defineProperty(M,D,P.get?P:{enumerable:!0,get:function(){return R[D]}})}}),M.default=R,Object.freeze(M)}var p=f(l),v=function(M,D){var P=arguments;if(D==null||!i.hasOwnProperty.call(D,"css"))return p.createElement.apply(void 0,P);var T=P.length,A=new Array(T);A[0]=i.Emotion,A[1]=i.createEmotionProps(M,D);for(var j=2;j<T;j++)A[j]=P[j];return p.createElement.apply(null,A)},h=i.withEmotionCache(function(R,M){var D=R.styles,P=u.serializeStyles([D],void 0,p.useContext(i.ThemeContext));if(!i.isBrowser){for(var T,A=P.name,j=P.styles,ae=P.next;ae!==void 0;)A+=" "+ae.name,j+=ae.styles,ae=ae.next;var _=M.compat===!0,N=M.insert("",{name:A,styles:j},M.sheet,_);return _?null:p.createElement("style",(T={},T["data-emotion"]=M.key+"-global "+A,T.dangerouslySetInnerHTML={__html:N},T.nonce=M.sheet.nonce,T))}var W=p.useRef();return m.useInsertionEffectWithLayoutFallback(function(){var he=M.key+"-global",me=new M.sheet.constructor({key:he,nonce:M.sheet.nonce,container:M.sheet.container,speedy:M.sheet.isSpeedy}),fe=!1,ve=document.querySelector('style[data-emotion="'+he+" "+P.name+'"]');return M.sheet.tags.length&&(me.before=M.sheet.tags[0]),ve!==null&&(fe=!0,ve.setAttribute("data-emotion",he),me.hydrate([ve])),W.current=[me,fe],function(){me.flush()}},[M]),m.useInsertionEffectWithLayoutFallback(function(){var he=W.current,me=he[0],fe=he[1];if(fe){he[1]=!1;return}if(P.next!==void 0&&s.insertStyles(M,P.next,!0),me.tags.length){var ve=me.tags[me.tags.length-1].nextElementSibling;me.before=ve,me.flush()}M.insert("",P,me,!1)},[M,P.name]),null});function d(){for(var R=arguments.length,M=new Array(R),D=0;D<R;D++)M[D]=arguments[D];return u.serializeStyles(M)}var b=function(){var M=d.apply(void 0,arguments),D="animation-"+M.name;return{name:D,styles:"@keyframes "+D+"{"+M.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},y=function R(M){for(var D=M.length,P=0,T="";P<D;P++){var A=M[P];if(A!=null){var j=void 0;switch(typeof A){case"boolean":break;case"object":{if(Array.isArray(A))j=R(A);else{j="";for(var ae in A)A[ae]&&ae&&(j&&(j+=" "),j+=ae)}break}default:j=A}j&&(T&&(T+=" "),T+=j)}}return T};function w(R,M,D){var P=[],T=s.getRegisteredStyles(R,P,D);return P.length<2?D:T+M(P)}var S=function(M){var D=M.cache,P=M.serializedArr,T=m.useInsertionEffectAlwaysWithSyncFallback(function(){for(var j="",ae=0;ae<P.length;ae++){var _=s.insertStyles(D,P[ae],!1);!i.isBrowser&&_!==void 0&&(j+=_)}if(!i.isBrowser)return j});if(!i.isBrowser&&T.length!==0){var A;return p.createElement("style",(A={},A["data-emotion"]=D.key+" "+P.map(function(j){return j.name}).join(" "),A.dangerouslySetInnerHTML={__html:T},A.nonce=D.sheet.nonce,A))}return null},O=i.withEmotionCache(function(R,M){var D=!1,P=[],T=function(){for(var N=arguments.length,W=new Array(N),he=0;he<N;he++)W[he]=arguments[he];var me=u.serializeStyles(W,M.registered);return P.push(me),s.registerStyles(M,me,!1),M.key+"-"+me.name},A=function(){for(var N=arguments.length,W=new Array(N),he=0;he<N;he++)W[he]=arguments[he];return w(M.registered,T,y(W))},j={css:T,cx:A,theme:p.useContext(i.ThemeContext)},ae=R.children(j);return D=!0,p.createElement(p.Fragment,null,p.createElement(S,{cache:M,serializedArr:P}),ae)});g.CacheProvider=i.CacheProvider,g.ThemeContext=i.ThemeContext,g.ThemeProvider=i.ThemeProvider,g.__unsafe_useEmotionCache=i.__unsafe_useEmotionCache,g.useTheme=i.useTheme,Object.defineProperty(g,"withEmotionCache",{enumerable:!0,get:function(){return i.withEmotionCache}}),g.withTheme=i.withTheme,g.ClassNames=O,g.Global=h,g.createElement=v,g.css=d,g.jsx=v,g.keyframes=b},13451:(J,g,t)=>{"use strict";t.r(g),t.d(g,{serializeStyles:()=>_});function i(N){for(var W=0,he,me=0,fe=N.length;fe>=4;++me,fe-=4)he=N.charCodeAt(me)&255|(N.charCodeAt(++me)&255)<<8|(N.charCodeAt(++me)&255)<<16|(N.charCodeAt(++me)&255)<<24,he=(he&65535)*1540483477+((he>>>16)*59797<<16),he^=he>>>24,W=(he&65535)*1540483477+((he>>>16)*59797<<16)^(W&65535)*1540483477+((W>>>16)*59797<<16);switch(fe){case 3:W^=(N.charCodeAt(me+2)&255)<<16;case 2:W^=(N.charCodeAt(me+1)&255)<<8;case 1:W^=N.charCodeAt(me)&255,W=(W&65535)*1540483477+((W>>>16)*59797<<16)}return W^=W>>>13,W=(W&65535)*1540483477+((W>>>16)*59797<<16),((W^W>>>15)>>>0).toString(36)}var l={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},s=t(36289),m=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,u="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",f=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v=function(W){return W.charCodeAt(1)===45},h=function(W){return W!=null&&typeof W!="boolean"},d=(0,s.A)(function(N){return v(N)?N:N.replace(f,"-$&").toLowerCase()}),b=function(W,he){switch(W){case"animation":case"animationName":if(typeof he=="string")return he.replace(p,function(me,fe,ve){return ae={name:fe,styles:ve,next:ae},fe})}return l[W]!==1&&!v(W)&&typeof he=="number"&&he!==0?he+"px":he};if(!1)var y,w,S,O,R,M;var D=null;function P(N,W,he){if(he==null)return"";if(he.__emotion_styles!==void 0)return he;switch(typeof he){case"boolean":return"";case"object":{if(he.anim===1)return ae={name:he.name,styles:he.styles,next:ae},he.name;if(he.styles!==void 0){var me=he.next;if(me!==void 0)for(;me!==void 0;)ae={name:me.name,styles:me.styles,next:ae},me=me.next;var fe=he.styles+";";return fe}return T(N,W,he)}case"function":{if(N!==void 0){var ve=ae,ce=he(N);return ae=ve,P(N,W,ce)}break}case"string":if(!1)var oe,re;break}if(W==null)return he;var H=W[he];return H!==void 0?H:he}function T(N,W,he){var me="";if(Array.isArray(he))for(var fe=0;fe<he.length;fe++)me+=P(N,W,he[fe])+";";else for(var ve in he){var ce=he[ve];if(typeof ce!="object")W!=null&&W[ce]!==void 0?me+=ve+"{"+W[ce]+"}":h(ce)&&(me+=d(ve)+":"+b(ve,ce)+";");else if(Array.isArray(ce)&&typeof ce[0]=="string"&&(W==null||W[ce[0]]===void 0))for(var oe=0;oe<ce.length;oe++)h(ce[oe])&&(me+=d(ve)+":"+b(ve,ce[oe])+";");else{var re=P(N,W,ce);switch(ve){case"animation":case"animationName":{me+=d(ve)+":"+re+";";break}default:me+=ve+"{"+re+"}"}}}return me}var A=/label:\s*([^\s;\n{]+)\s*(;|$)/g,j,ae,_=function(W,he,me){if(W.length===1&&typeof W[0]=="object"&&W[0]!==null&&W[0].styles!==void 0)return W[0];var fe=!0,ve="";ae=void 0;var ce=W[0];ce==null||ce.raw===void 0?(fe=!1,ve+=P(me,he,ce)):ve+=ce[0];for(var oe=1;oe<W.length;oe++)ve+=P(me,he,W[oe]),fe&&(ve+=ce[oe]);var re;A.lastIndex=0;for(var H="",V;(V=A.exec(ve))!==null;)H+="-"+V[1];var Q=i(ve)+H;return{name:Q,styles:ve,next:ae}}},71287:(J,g,t)=>{"use strict";var i;t.r(g),t.d(g,{useInsertionEffectAlwaysWithSyncFallback:()=>u,useInsertionEffectWithLayoutFallback:()=>f});var l=t(96540),s=function(v){return v()},m=(i||(i=t.t(l,2)))["useInsertionEffect"]?(i||(i=t.t(l,2)))["useInsertionEffect"]:!1,u=m||s,f=m||l.useLayoutEffect},30041:(J,g,t)=>{"use strict";t.r(g),t.d(g,{getRegisteredStyles:()=>l,insertStyles:()=>m,registerStyles:()=>s});var i=!0;function l(u,f,p){var v="";return p.split(" ").forEach(function(h){u[h]!==void 0?f.push(u[h]+";"):v+=h+" "}),v}var s=function(f,p,v){var h=f.key+"-"+p.name;(v===!1||i===!1)&&f.registered[h]===void 0&&(f.registered[h]=p.styles)},m=function(f,p,v){s(f,p,v);var h=f.key+"-"+p.name;if(f.inserted[p.name]===void 0){var d=p;do f.insert(p===d?"."+h:"",d,f.sheet,!0),d=d.next;while(d!==void 0)}}},92809:(J,g,t)=>{"use strict";t.r(g),t.d(g,{default:()=>i});var i=function(s){var m=new WeakMap;return function(u){if(m.has(u))return m.get(u);var f=s(u);return m.set(u,f),f}}},56568:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>mt});var i=t(31635),l="3.4.2";function s(gt,tn){return new Promise(function(Vn){return setTimeout(Vn,gt,tn)})}function m(gt,tn){tn===void 0&&(tn=1/0);var Vn=window.requestIdleCallback;return Vn?new Promise(function(Ur){return Vn.call(window,function(){return Ur()},{timeout:tn})}):s(Math.min(gt,tn))}function u(gt){return!!gt&&typeof gt.then=="function"}function f(gt,tn){try{var Vn=gt();u(Vn)?Vn.then(function(Ur){return tn(!0,Ur)},function(Ur){return tn(!1,Ur)}):tn(!0,Vn)}catch(Ur){tn(!1,Ur)}}function p(gt,tn,Vn){return Vn===void 0&&(Vn=16),(0,i.__awaiter)(this,void 0,void 0,function(){var Ur,$r,Pr,zr;return(0,i.__generator)(this,function(gi){switch(gi.label){case 0:Ur=Array(gt.length),$r=Date.now(),Pr=0,gi.label=1;case 1:return Pr<gt.length?(Ur[Pr]=tn(gt[Pr],Pr),zr=Date.now(),zr>=$r+Vn?($r=zr,[4,s(0)]):[3,3]):[3,4];case 2:gi.sent(),gi.label=3;case 3:return++Pr,[3,1];case 4:return[2,Ur]}})})}function v(gt){gt.then(void 0,function(){})}function h(gt,tn){gt=[gt[0]>>>16,gt[0]&65535,gt[1]>>>16,gt[1]&65535],tn=[tn[0]>>>16,tn[0]&65535,tn[1]>>>16,tn[1]&65535];var Vn=[0,0,0,0];return Vn[3]+=gt[3]+tn[3],Vn[2]+=Vn[3]>>>16,Vn[3]&=65535,Vn[2]+=gt[2]+tn[2],Vn[1]+=Vn[2]>>>16,Vn[2]&=65535,Vn[1]+=gt[1]+tn[1],Vn[0]+=Vn[1]>>>16,Vn[1]&=65535,Vn[0]+=gt[0]+tn[0],Vn[0]&=65535,[Vn[0]<<16|Vn[1],Vn[2]<<16|Vn[3]]}function d(gt,tn){gt=[gt[0]>>>16,gt[0]&65535,gt[1]>>>16,gt[1]&65535],tn=[tn[0]>>>16,tn[0]&65535,tn[1]>>>16,tn[1]&65535];var Vn=[0,0,0,0];return Vn[3]+=gt[3]*tn[3],Vn[2]+=Vn[3]>>>16,Vn[3]&=65535,Vn[2]+=gt[2]*tn[3],Vn[1]+=Vn[2]>>>16,Vn[2]&=65535,Vn[2]+=gt[3]*tn[2],Vn[1]+=Vn[2]>>>16,Vn[2]&=65535,Vn[1]+=gt[1]*tn[3],Vn[0]+=Vn[1]>>>16,Vn[1]&=65535,Vn[1]+=gt[2]*tn[2],Vn[0]+=Vn[1]>>>16,Vn[1]&=65535,Vn[1]+=gt[3]*tn[1],Vn[0]+=Vn[1]>>>16,Vn[1]&=65535,Vn[0]+=gt[0]*tn[3]+gt[1]*tn[2]+gt[2]*tn[1]+gt[3]*tn[0],Vn[0]&=65535,[Vn[0]<<16|Vn[1],Vn[2]<<16|Vn[3]]}function b(gt,tn){return tn%=64,tn===32?[gt[1],gt[0]]:tn<32?[gt[0]<<tn|gt[1]>>>32-tn,gt[1]<<tn|gt[0]>>>32-tn]:(tn-=32,[gt[1]<<tn|gt[0]>>>32-tn,gt[0]<<tn|gt[1]>>>32-tn])}function y(gt,tn){return tn%=64,tn===0?gt:tn<32?[gt[0]<<tn|gt[1]>>>32-tn,gt[1]<<tn]:[gt[1]<<tn-32,0]}function w(gt,tn){return[gt[0]^tn[0],gt[1]^tn[1]]}function S(gt){return gt=w(gt,[0,gt[0]>>>1]),gt=d(gt,[4283543511,3981806797]),gt=w(gt,[0,gt[0]>>>1]),gt=d(gt,[3301882366,444984403]),gt=w(gt,[0,gt[0]>>>1]),gt}function O(gt,tn){gt=gt||"",tn=tn||0;var Vn=gt.length%16,Ur=gt.length-Vn,$r=[0,tn],Pr=[0,tn],zr=[0,0],gi=[0,0],$i=[2277735313,289559509],eo=[1291169091,658871167],ki;for(ki=0;ki<Ur;ki=ki+16)zr=[gt.charCodeAt(ki+4)&255|(gt.charCodeAt(ki+5)&255)<<8|(gt.charCodeAt(ki+6)&255)<<16|(gt.charCodeAt(ki+7)&255)<<24,gt.charCodeAt(ki)&255|(gt.charCodeAt(ki+1)&255)<<8|(gt.charCodeAt(ki+2)&255)<<16|(gt.charCodeAt(ki+3)&255)<<24],gi=[gt.charCodeAt(ki+12)&255|(gt.charCodeAt(ki+13)&255)<<8|(gt.charCodeAt(ki+14)&255)<<16|(gt.charCodeAt(ki+15)&255)<<24,gt.charCodeAt(ki+8)&255|(gt.charCodeAt(ki+9)&255)<<8|(gt.charCodeAt(ki+10)&255)<<16|(gt.charCodeAt(ki+11)&255)<<24],zr=d(zr,$i),zr=b(zr,31),zr=d(zr,eo),$r=w($r,zr),$r=b($r,27),$r=h($r,Pr),$r=h(d($r,[0,5]),[0,1390208809]),gi=d(gi,eo),gi=b(gi,33),gi=d(gi,$i),Pr=w(Pr,gi),Pr=b(Pr,31),Pr=h(Pr,$r),Pr=h(d(Pr,[0,5]),[0,944331445]);switch(zr=[0,0],gi=[0,0],Vn){case 15:gi=w(gi,y([0,gt.charCodeAt(ki+14)],48));case 14:gi=w(gi,y([0,gt.charCodeAt(ki+13)],40));case 13:gi=w(gi,y([0,gt.charCodeAt(ki+12)],32));case 12:gi=w(gi,y([0,gt.charCodeAt(ki+11)],24));case 11:gi=w(gi,y([0,gt.charCodeAt(ki+10)],16));case 10:gi=w(gi,y([0,gt.charCodeAt(ki+9)],8));case 9:gi=w(gi,[0,gt.charCodeAt(ki+8)]),gi=d(gi,eo),gi=b(gi,33),gi=d(gi,$i),Pr=w(Pr,gi);case 8:zr=w(zr,y([0,gt.charCodeAt(ki+7)],56));case 7:zr=w(zr,y([0,gt.charCodeAt(ki+6)],48));case 6:zr=w(zr,y([0,gt.charCodeAt(ki+5)],40));case 5:zr=w(zr,y([0,gt.charCodeAt(ki+4)],32));case 4:zr=w(zr,y([0,gt.charCodeAt(ki+3)],24));case 3:zr=w(zr,y([0,gt.charCodeAt(ki+2)],16));case 2:zr=w(zr,y([0,gt.charCodeAt(ki+1)],8));case 1:zr=w(zr,[0,gt.charCodeAt(ki)]),zr=d(zr,$i),zr=b(zr,31),zr=d(zr,eo),$r=w($r,zr)}return $r=w($r,[0,gt.length]),Pr=w(Pr,[0,gt.length]),$r=h($r,Pr),Pr=h(Pr,$r),$r=S($r),Pr=S(Pr),$r=h($r,Pr),Pr=h(Pr,$r),("00000000"+($r[0]>>>0).toString(16)).slice(-8)+("00000000"+($r[1]>>>0).toString(16)).slice(-8)+("00000000"+(Pr[0]>>>0).toString(16)).slice(-8)+("00000000"+(Pr[1]>>>0).toString(16)).slice(-8)}function R(gt){var tn;return(0,i.__assign)({name:gt.name,message:gt.message,stack:(tn=gt.stack)===null||tn===void 0?void 0:tn.split(` `)},gt)}function M(gt,tn){for(var Vn=0,Ur=gt.length;Vn<Ur;++Vn)if(gt[Vn]===tn)return!0;return!1}function D(gt,tn){return!M(gt,tn)}function P(gt){return parseInt(gt)}function T(gt){return parseFloat(gt)}function A(gt,tn){return typeof gt=="number"&&isNaN(gt)?tn:gt}function j(gt){return gt.reduce(function(tn,Vn){return tn+(Vn?1:0)},0)}function ae(gt,tn){if(tn===void 0&&(tn=1),Math.abs(tn)>=1)return Math.round(gt/tn)*tn;var Vn=1/tn;return Math.round(gt*Vn)/Vn}function _(gt){for(var tn,Vn,Ur="Unexpected syntax '".concat(gt,"'"),$r=/^\s*([a-z-]*)(.*)$/i.exec(gt),Pr=$r[1]||void 0,zr={},gi=/([.:#][\w-]+|\[.+?\])/gi,$i=function(Ho,ra){zr[Ho]=zr[Ho]||[],zr[Ho].push(ra)};;){var eo=gi.exec($r[2]);if(!eo)break;var ki=eo[0];switch(ki[0]){case".":$i("class",ki.slice(1));break;case"#":$i("id",ki.slice(1));break;case"[":{var so=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(ki);if(so)$i(so[1],(Vn=(tn=so[4])!==null&&tn!==void 0?tn:so[5])!==null&&Vn!==void 0?Vn:"");else throw new Error(Ur);break}default:throw new Error(Ur)}}return[Pr,zr]}function N(gt){return gt&&typeof gt=="object"&&"message"in gt?gt:{message:gt}}function W(gt){return typeof gt!="function"}function he(gt,tn){var Vn=new Promise(function(Ur){var $r=Date.now();f(gt.bind(null,tn),function(){for(var Pr=[],zr=0;zr<arguments.length;zr++)Pr[zr]=arguments[zr];var gi=Date.now()-$r;if(!Pr[0])return Ur(function(){return{error:N(Pr[1]),duration:gi}});var $i=Pr[1];if(W($i))return Ur(function(){return{value:$i,duration:gi}});Ur(function(){return new Promise(function(eo){var ki=Date.now();f($i,function(){for(var so=[],Ho=0;Ho<arguments.length;Ho++)so[Ho]=arguments[Ho];var ra=gi+Date.now()-ki;if(!so[0])return eo({error:N(so[1]),duration:ra});eo({value:so[1],duration:ra})})})})})});return v(Vn),function(){return Vn.then(function($r){return $r()})}}function me(gt,tn,Vn){var Ur=Object.keys(gt).filter(function(Pr){return D(Vn,Pr)}),$r=p(Ur,function(Pr){return he(gt[Pr],tn)});return v($r),function(){return(0,i.__awaiter)(this,void 0,void 0,function(){var zr,gi,$i,eo,ki;return(0,i.__generator)(this,function(so){switch(so.label){case 0:return[4,$r];case 1:return zr=so.sent(),[4,p(zr,function(Ho){var ra=Ho();return v(ra),ra})];case 2:return gi=so.sent(),[4,Promise.all(gi)];case 3:for($i=so.sent(),eo={},ki=0;ki<Ur.length;++ki)eo[Ur[ki]]=$i[ki];return[2,eo]}})})}}function fe(gt,tn){var Vn=function(Ur){return W(Ur)?tn(Ur):function(){var $r=Ur();return u($r)?$r.then(tn):tn($r)}};return function(Ur){var $r=gt(Ur);return u($r)?$r.then(Vn):Vn($r)}}function ve(){var gt=window,tn=navigator;return j(["MSCSSMatrix"in gt,"msSetImmediate"in gt,"msIndexedDB"in gt,"msMaxTouchPoints"in tn,"msPointerEnabled"in tn])>=4}function ce(){var gt=window,tn=navigator;return j(["msWriteProfilerMark"in gt,"MSStream"in gt,"msLaunchUri"in tn,"msSaveBlob"in tn])>=3&&!ve()}function oe(){var gt=window,tn=navigator;return j(["webkitPersistentStorage"in tn,"webkitTemporaryStorage"in tn,tn.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in gt,"BatteryManager"in gt,"webkitMediaStream"in gt,"webkitSpeechGrammar"in gt])>=5}function re(){var gt=window,tn=navigator;return j(["ApplePayError"in gt,"CSSPrimitiveValue"in gt,"Counter"in gt,tn.vendor.indexOf("Apple")===0,"getStorageUpdates"in tn,"WebKitMediaKeys"in gt])>=4}function H(){var gt=window;return j(["safari"in gt,!("DeviceMotionEvent"in gt),!("ongestureend"in gt),!("standalone"in navigator)])>=3}function V(){var gt,tn,Vn=window;return j(["buildID"in navigator,"MozAppearance"in((tn=(gt=document.documentElement)===null||gt===void 0?void 0:gt.style)!==null&&tn!==void 0?tn:{}),"onmozfullscreenchange"in Vn,"mozInnerScreenX"in Vn,"CSSMozDocumentRule"in Vn,"CanvasCaptureMediaStream"in Vn])>=4}function Q(){var gt=window;return j([!("MediaSettingsRange"in gt),"RTCEncodedAudioFrame"in gt,""+gt.Intl=="[object Intl]",""+gt.Reflect=="[object Reflect]"])>=3}function Te(){var gt=window;return j(["DOMRectList"in gt,"RTCPeerConnectionIceEvent"in gt,"SVGGeometryElement"in gt,"ontransitioncancel"in gt])>=3}function Re(){if(navigator.platform==="iPad")return!0;var gt=screen,tn=gt.width/gt.height;return j(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,tn>.65&&tn<1.53])>=2}function ne(){var gt=document;return gt.fullscreenElement||gt.msFullscreenElement||gt.mozFullScreenElement||gt.webkitFullscreenElement||null}function pe(){var gt=document;return(gt.exitFullscreen||gt.msExitFullscreen||gt.mozCancelFullScreen||gt.webkitExitFullscreen).call(gt)}function ye(){var gt=oe(),tn=V();if(!gt&&!tn)return!1;var Vn=window;return j(["onorientationchange"in Vn,"orientation"in Vn,gt&&!("SharedWorker"in Vn),tn&&/android/i.test(navigator.appVersion)])>=2}function Se(){var gt=window,tn=gt.OfflineAudioContext||gt.webkitOfflineAudioContext;if(!tn)return-2;if(Ae())return-1;var Vn=4500,Ur=5e3,$r=new tn(1,Ur,44100),Pr=$r.createOscillator();Pr.type="triangle",Pr.frequency.value=1e4;var zr=$r.createDynamicsCompressor();zr.threshold.value=-50,zr.knee.value=40,zr.ratio.value=12,zr.attack.value=0,zr.release.value=.25,Pr.connect(zr),zr.connect($r.destination),Pr.start(0);var gi=Ee($r),$i=gi[0],eo=gi[1],ki=$i.then(function(so){return xe(so.getChannelData(0).subarray(Vn))},function(so){if(so.name==="timeout"||so.name==="suspended")return-3;throw so});return v(ki),function(){return eo(),ki}}function Ae(){return re()&&!H()&&!Te()}function Ee(gt){var tn=3,Vn=500,Ur=500,$r=5e3,Pr=function(){},zr=new Promise(function(gi,$i){var eo=!1,ki=0,so=0;gt.oncomplete=function(So){return gi(So.renderedBuffer)};var Ho=function(){setTimeout(function(){return $i(nt("timeout"))},Math.min(Ur,so+$r-Date.now()))},ra=function(){try{var So=gt.startRendering();switch(u(So)&&v(So),gt.state){case"running":so=Date.now(),eo&&Ho();break;case"suspended":document.hidden||ki++,eo&&ki>=tn?$i(nt("suspended")):setTimeout(ra,Vn);break}}catch(gr){$i(gr)}};ra(),Pr=function(){eo||(eo=!0,so>0&&Ho())}});return[zr,Pr]}function xe(gt){for(var tn=0,Vn=0;Vn<gt.length;++Vn)tn+=Math.abs(gt[Vn]);return tn}function nt(gt){var tn=new Error(gt);return tn.name=gt,tn}function Tt(gt,tn,Vn){var Ur,$r,Pr;return Vn===void 0&&(Vn=50),(0,i.__awaiter)(this,void 0,void 0,function(){var zr,gi;return(0,i.__generator)(this,function($i){switch($i.label){case 0:zr=document,$i.label=1;case 1:return zr.body?[3,3]:[4,s(Vn)];case 2:return $i.sent(),[3,1];case 3:gi=zr.createElement("iframe"),$i.label=4;case 4:return $i.trys.push([4,,10,11]),[4,new Promise(function(eo,ki){var so=!1,Ho=function(){so=!0,eo()},ra=function(di){so=!0,ki(di)};gi.onload=Ho,gi.onerror=ra;var So=gi.style;So.setProperty("display","block","important"),So.position="absolute",So.top="0",So.left="0",So.visibility="hidden",tn&&"srcdoc"in gi?gi.srcdoc=tn:gi.src="about:blank",zr.body.appendChild(gi);var gr=function(){var di,Vi;so||(((Vi=(di=gi.contentWindow)===null||di===void 0?void 0:di.document)===null||Vi===void 0?void 0:Vi.readyState)==="complete"?Ho():setTimeout(gr,10))};gr()})];case 5:$i.sent(),$i.label=6;case 6:return!(($r=(Ur=gi.contentWindow)===null||Ur===void 0?void 0:Ur.document)===null||$r===void 0)&&$r.body?[3,8]:[4,s(Vn)];case 7:return $i.sent(),[3,6];case 8:return[4,gt(gi,gi.contentWindow)];case 9:return[2,$i.sent()];case 10:return(Pr=gi.parentNode)===null||Pr===void 0||Pr.removeChild(gi),[7];case 11:return[2]}})})}function pt(gt){for(var tn=_(gt),Vn=tn[0],Ur=tn[1],$r=document.createElement(Vn??"div"),Pr=0,zr=Object.keys(Ur);Pr<zr.length;Pr++){var gi=zr[Pr],$i=Ur[gi].join(" ");gi==="style"?Rt($r.style,$i):$r.setAttribute(gi,$i)}return $r}function Rt(gt,tn){for(var Vn=0,Ur=tn.split(";");Vn<Ur.length;Vn++){var $r=Ur[Vn],Pr=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec($r);if(Pr){var zr=Pr[1],gi=Pr[2],$i=Pr[4];gt.setProperty(zr,gi,$i||"")}}}var tt="mmMwWLliI0O&1",U="48px",F=["monospace","sans-serif","serif"],Y=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function le(){return Tt(function(gt,tn){var Vn=tn.document,Ur=Vn.body;Ur.style.fontSize=U;var $r=Vn.createElement("div"),Pr={},zr={},gi=function(gr){var di=Vn.createElement("span"),Vi=di.style;return Vi.position="absolute",Vi.top="0",Vi.left="0",Vi.fontFamily=gr,di.textContent=tt,$r.appendChild(di),di},$i=function(gr,di){return gi("'".concat(gr,"',").concat(di))},eo=function(){return F.map(gi)},ki=function(){for(var gr={},di=function(ta){gr[ta]=F.map(function(aa){return $i(ta,aa)})},Vi=0,Ro=Y;Vi<Ro.length;Vi++){var na=Ro[Vi];di(na)}return gr},so=function(gr){return F.some(function(di,Vi){return gr[Vi].offsetWidth!==Pr[di]||gr[Vi].offsetHeight!==zr[di]})},Ho=eo(),ra=ki();Ur.appendChild($r);for(var So=0;So<F.length;So++)Pr[F[So]]=Ho[So].offsetWidth,zr[F[So]]=Ho[So].offsetHeight;return Y.filter(function(gr){return so(ra[gr])})})}function ke(){var gt=navigator.plugins;if(gt){for(var tn=[],Vn=0;Vn<gt.length;++Vn){var Ur=gt[Vn];if(Ur){for(var $r=[],Pr=0;Pr<Ur.length;++Pr){var zr=Ur[Pr];$r.push({type:zr.type,suffixes:zr.suffixes})}tn.push({name:Ur.name,description:Ur.description,mimeTypes:$r})}}return tn}}function Ye(){var gt=!1,tn,Vn,Ur=ft(),$r=Ur[0],Pr=Ur[1];if(!wt($r,Pr))tn=Vn="";else{gt=Ut(Pr),Ke($r,Pr);var zr=At($r),gi=At($r);zr!==gi?tn=Vn="unstable":(Vn=zr,it($r,Pr),tn=At($r))}return{winding:gt,geometry:tn,text:Vn}}function ft(){var gt=document.createElement("canvas");return gt.width=1,gt.height=1,[gt,gt.getContext("2d")]}function wt(gt,tn){return!!(tn&>.toDataURL)}function Ut(gt){return gt.rect(0,0,10,10),gt.rect(2,2,6,6),!gt.isPointInPath(5,5,"evenodd")}function Ke(gt,tn){gt.width=240,gt.height=60,tn.textBaseline="alphabetic",tn.fillStyle="#f60",tn.fillRect(100,1,62,20),tn.fillStyle="#069",tn.font='11pt "Times New Roman"';var Vn="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));tn.fillText(Vn,2,15),tn.fillStyle="rgba(102, 204, 0, 0.2)",tn.font="18pt Arial",tn.fillText(Vn,4,45)}function it(gt,tn){gt.width=122,gt.height=110,tn.globalCompositeOperation="multiply";for(var Vn=0,Ur=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Vn<Ur.length;Vn++){var $r=Ur[Vn],Pr=$r[0],zr=$r[1],gi=$r[2];tn.fillStyle=Pr,tn.beginPath(),tn.arc(zr,gi,40,0,Math.PI*2,!0),tn.closePath(),tn.fill()}tn.fillStyle="#f9c",tn.arc(60,60,60,0,Math.PI*2,!0),tn.arc(60,60,20,0,Math.PI*2,!0),tn.fill("evenodd")}function At(gt){return gt.toDataURL()}function et(){var gt=navigator,tn=0,Vn;gt.maxTouchPoints!==void 0?tn=P(gt.maxTouchPoints):gt.msMaxTouchPoints!==void 0&&(tn=gt.msMaxTouchPoints);try{document.createEvent("TouchEvent"),Vn=!0}catch{Vn=!1}var Ur="ontouchstart"in window;return{maxTouchPoints:tn,touchEvent:Vn,touchStart:Ur}}function ee(){return navigator.oscpu}function I(){var gt=navigator,tn=[],Vn=gt.language||gt.userLanguage||gt.browserLanguage||gt.systemLanguage;if(Vn!==void 0&&tn.push([Vn]),Array.isArray(gt.languages))oe()&&Q()||tn.push(gt.languages);else if(typeof gt.languages=="string"){var Ur=gt.languages;Ur&&tn.push(Ur.split(","))}return tn}function K(){return window.screen.colorDepth}function ue(){return A(T(navigator.deviceMemory),void 0)}function De(){var gt=screen,tn=function(Ur){return A(P(Ur),null)},Vn=[tn(gt.width),tn(gt.height)];return Vn.sort().reverse(),Vn}var He=2500,Fe=10,ze,qe;function We(){if(qe===void 0){var gt=function(){var tn=Ge();st(tn)?qe=setTimeout(gt,He):(ze=tn,qe=void 0)};gt()}}function _t(){var gt=this;return We(),function(){return(0,i.__awaiter)(gt,void 0,void 0,function(){var tn;return(0,i.__generator)(this,function(Vn){switch(Vn.label){case 0:return tn=Ge(),st(tn)?ze?[2,(0,i.__spreadArray)([],ze,!0)]:ne()?[4,pe()]:[3,2]:[3,2];case 1:Vn.sent(),tn=Ge(),Vn.label=2;case 2:return st(tn)||(ze=tn),[2,tn]}})})}}function ct(){var gt=this,tn=_t();return function(){return(0,i.__awaiter)(gt,void 0,void 0,function(){var Vn,Ur;return(0,i.__generator)(this,function($r){switch($r.label){case 0:return[4,tn()];case 1:return Vn=$r.sent(),Ur=function(Pr){return Pr===null?null:ae(Pr,Fe)},[2,[Ur(Vn[0]),Ur(Vn[1]),Ur(Vn[2]),Ur(Vn[3])]]}})})}}function Ge(){var gt=screen;return[A(T(gt.availTop),null),A(T(gt.width)-T(gt.availWidth)-A(T(gt.availLeft),0),null),A(T(gt.height)-T(gt.availHeight)-A(T(gt.availTop),0),null),A(T(gt.availLeft),null)]}function st(gt){for(var tn=0;tn<4;++tn)if(gt[tn])return!1;return!0}function Me(){return A(P(navigator.hardwareConcurrency),void 0)}function ie(){var gt,tn=(gt=window.Intl)===null||gt===void 0?void 0:gt.DateTimeFormat;if(tn){var Vn=new tn().resolvedOptions().timeZone;if(Vn)return Vn}var Ur=-ge();return"UTC".concat(Ur>=0?"+":"").concat(Math.abs(Ur))}function ge(){var gt=new Date().getFullYear();return Math.max(T(new Date(gt,0,1).getTimezoneOffset()),T(new Date(gt,6,1).getTimezoneOffset()))}function z(){try{return!!window.sessionStorage}catch{return!0}}function be(){try{return!!window.localStorage}catch{return!0}}function Qe(){if(!(ve()||ce()))try{return!!window.indexedDB}catch{return!0}}function Bt(){return!!window.openDatabase}function nn(){return navigator.cpuClass}function bt(){var gt=navigator.platform;return gt==="MacIntel"&&re()&&!H()?Re()?"iPad":"iPhone":gt}function at(){return navigator.vendor||""}function $t(){for(var gt=[],tn=0,Vn=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tn<Vn.length;tn++){var Ur=Vn[tn],$r=window[Ur];$r&&typeof $r=="object"&>.push(Ur)}return gt.sort()}function On(){var gt=document;try{gt.cookie="cookietest=1; SameSite=Strict;";var tn=gt.cookie.indexOf("cookietest=")!==-1;return gt.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",tn}catch{return!1}}function Ct(){var gt=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',gt("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",gt("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",gt("LnNwb25zb3JpdA=="),".ylamainos",gt("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),gt("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",gt("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",gt("LmhlYWRlci1ibG9ja2VkLWFk"),gt("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",gt("I2FkXzMwMFgyNTA="),gt("I2Jhbm5lcmZsb2F0MjI="),gt("I2NhbXBhaWduLWJhbm5lcg=="),gt("I0FkLUNvbnRlbnQ=")],adGuardChinese:[gt("LlppX2FkX2FfSA=="),gt("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",gt("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),gt("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",gt("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",gt("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",gt("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),gt("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),gt("LmFkZ29vZ2xl"),gt("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[gt("YW1wLWF1dG8tYWRz"),gt("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",gt("I2FkX2ludmlld19hcmVh")],adGuardRussian:[gt("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),gt("LnJlY2xhbWE="),'div[id^="smi2adblock"]',gt("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[gt("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),gt("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",gt("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),gt("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),gt("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",gt("I3Jla2xhbWk="),gt("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),gt("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),gt("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[gt("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",gt("LndpZGdldF9wb19hZHNfd2lkZ2V0"),gt("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",gt("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[gt("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),gt("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",gt("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",gt("I3Jla2xhbW5pLWJveA=="),gt("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",gt("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[gt("I2FkdmVydGVudGll"),gt("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",gt("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",gt("LnNwb25zb3JsaW5rZ3J1ZW4="),gt("I3dlcmJ1bmdza3k="),gt("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),gt("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[gt("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",gt("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),gt("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),gt("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[gt("LnJla2xhbW9zX3RhcnBhcw=="),gt("LnJla2xhbW9zX251b3JvZG9z"),gt("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),gt("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),gt("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[gt("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[gt("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),gt("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",gt("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[gt("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),gt("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),gt("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",gt("LmFkX19tYWlu"),gt("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[gt("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[gt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),gt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[gt("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),gt("I2xpdmVyZUFkV3JhcHBlcg=="),gt("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),gt("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[gt("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",gt("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),gt("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),gt("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[gt("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),gt("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),gt("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",gt("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),gt("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),gt("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),gt("ZGl2I3NrYXBpZWNfYWQ=")],ro:[gt("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),gt("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),gt("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),gt("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[gt("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),gt("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),gt("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",gt("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),gt("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",gt("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Zt(gt){var tn=gt===void 0?{}:gt,Vn=tn.debug;return(0,i.__awaiter)(this,void 0,void 0,function(){var Ur,$r,Pr,zr,gi,$i;return(0,i.__generator)(this,function(eo){switch(eo.label){case 0:return Wn()?(Ur=Ct(),$r=Object.keys(Ur),Pr=($i=[]).concat.apply($i,$r.map(function(ki){return Ur[ki]})),[4,Zn(Pr)]):[2,void 0];case 1:return zr=eo.sent(),Vn&&Xe(Ur,zr),gi=$r.filter(function(ki){var so=Ur[ki],Ho=j(so.map(function(ra){return zr[ra]}));return Ho>so.length*.6}),gi.sort(),[2,gi]}})})}function Wn(){return re()||ye()}function Zn(gt){var tn;return(0,i.__awaiter)(this,void 0,void 0,function(){var Vn,Ur,$r,Pr,$i,zr,gi,$i;return(0,i.__generator)(this,function(eo){switch(eo.label){case 0:for(Vn=document,Ur=Vn.createElement("div"),$r=new Array(gt.length),Pr={},xt(Ur),$i=0;$i<gt.length;++$i)zr=pt(gt[$i]),zr.tagName==="DIALOG"&&zr.show(),gi=Vn.createElement("div"),xt(gi),gi.appendChild(zr),Ur.appendChild(gi),$r[$i]=zr;eo.label=1;case 1:return Vn.body?[3,3]:[4,s(50)];case 2:return eo.sent(),[3,1];case 3:Vn.body.appendChild(Ur);try{for($i=0;$i<gt.length;++$i)$r[$i].offsetParent||(Pr[gt[$i]]=!0)}finally{(tn=Ur.parentNode)===null||tn===void 0||tn.removeChild(Ur)}return[2,Pr]}})})}function xt(gt){gt.style.setProperty("display","block","important")}function Xe(gt,tn){for(var Vn="DOM blockers debug:\n```",Ur=0,$r=Object.keys(gt);Ur<$r.length;Ur++){var Pr=$r[Ur];Vn+=` `.concat(Pr,":");for(var zr=0,gi=gt[Pr];zr<gi.length;zr++){var $i=gi[zr];Vn+=` `.concat(tn[$i]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat($i)}}console.log("".concat(Vn,"\n```"))}function gn(){for(var gt=0,tn=["rec2020","p3","srgb"];gt<tn.length;gt++){var Vn=tn[gt];if(matchMedia("(color-gamut: ".concat(Vn,")")).matches)return Vn}}function Qt(){if(Dt("inverted"))return!0;if(Dt("none"))return!1}function Dt(gt){return matchMedia("(inverted-colors: ".concat(gt,")")).matches}function hn(){if(cn("active"))return!0;if(cn("none"))return!1}function cn(gt){return matchMedia("(forced-colors: ".concat(gt,")")).matches}var an=100;function Or(){if(matchMedia("(min-monochrome: 0)").matches){for(var gt=0;gt<=an;++gt)if(matchMedia("(max-monochrome: ".concat(gt,")")).matches)return gt;throw new Error("Too high value")}}function Ln(){if(En("no-preference"))return 0;if(En("high")||En("more"))return 1;if(En("low")||En("less"))return-1;if(En("forced"))return 10}function En(gt){return matchMedia("(prefers-contrast: ".concat(gt,")")).matches}function Gn(){if(rr("reduce"))return!0;if(rr("no-preference"))return!1}function rr(gt){return matchMedia("(prefers-reduced-motion: ".concat(gt,")")).matches}function sr(){if(pi("high"))return!0;if(pi("standard"))return!1}function pi(gt){return matchMedia("(dynamic-range: ".concat(gt,")")).matches}var yi=Math,jr=function(){return 0};function ui(){var gt=yi.acos||jr,tn=yi.acosh||jr,Vn=yi.asin||jr,Ur=yi.asinh||jr,$r=yi.atanh||jr,Pr=yi.atan||jr,zr=yi.sin||jr,gi=yi.sinh||jr,$i=yi.cos||jr,eo=yi.cosh||jr,ki=yi.tan||jr,so=yi.tanh||jr,Ho=yi.exp||jr,ra=yi.expm1||jr,So=yi.log1p||jr,gr=function($o){return yi.pow(yi.PI,$o)},di=function($o){return yi.log($o+yi.sqrt($o*$o-1))},Vi=function($o){return yi.log($o+yi.sqrt($o*$o+1))},Ro=function($o){return yi.log((1+$o)/(1-$o))/2},na=function($o){return yi.exp($o)-1/yi.exp($o)/2},ta=function($o){return(yi.exp($o)+1/yi.exp($o))/2},aa=function($o){return yi.exp($o)-1},vi=function($o){return(yi.exp(2*$o)-1)/(yi.exp(2*$o)+1)},to=function($o){return yi.log(1+$o)};return{acos:gt(.12312423423423424),acosh:tn(1e308),acoshPf:di(1e154),asin:Vn(.12312423423423424),asinh:Ur(1),asinhPf:Vi(1),atanh:$r(.5),atanhPf:Ro(.5),atan:Pr(.5),sin:zr(-1e300),sinh:gi(1),sinhPf:na(1),cos:$i(10.000000000123),cosh:eo(1),coshPf:ta(1),tan:ki(-1e300),tanh:so(1),tanhPf:vi(1),exp:Ho(1),expm1:ra(1),expm1Pf:aa(1),log1p:So(10),log1pPf:to(10),powPI:gr(-100)}}var bi="mmMwWLliI0fiflO&1",ri={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function hi(){return Si(function(gt,tn){for(var Vn={},Ur={},$r=0,Pr=Object.keys(ri);$r<Pr.length;$r++){var zr=Pr[$r],gi=ri[zr],$i=gi[0],eo=$i===void 0?{}:$i,ki=gi[1],so=ki===void 0?bi:ki,Ho=gt.createElement("span");Ho.textContent=so,Ho.style.whiteSpace="nowrap";for(var ra=0,So=Object.keys(eo);ra<So.length;ra++){var gr=So[ra],di=eo[gr];di!==void 0&&(Ho.style[gr]=di)}Vn[zr]=Ho,tn.appendChild(gt.createElement("br")),tn.appendChild(Ho)}for(var Vi=0,Ro=Object.keys(ri);Vi<Ro.length;Vi++){var zr=Ro[Vi];Ur[zr]=Vn[zr].getBoundingClientRect().width}return Ur})}function Si(gt,tn){return tn===void 0&&(tn=4e3),Tt(function(Vn,Ur){var $r=Ur.document,Pr=$r.body,zr=Pr.style;zr.width="".concat(tn,"px"),zr.webkitTextSizeAdjust=zr.textSizeAdjust="none",oe()?Pr.style.zoom="".concat(1/Ur.devicePixelRatio):re()&&(Pr.style.zoom="reset");var gi=$r.createElement("div");return gi.textContent=(0,i.__spreadArray)([],Array(tn/20<<0),!0).map(function(){return"word"}).join(" "),Pr.appendChild(gi),gt($r,Pr)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Kr(){var gt,tn=document.createElement("canvas"),Vn=(gt=tn.getContext("webgl"))!==null&>!==void 0?gt:tn.getContext("experimental-webgl");if(Vn&&"getExtension"in Vn){var Ur=Vn.getExtension("WEBGL_debug_renderer_info");if(Ur)return{vendor:(Vn.getParameter(Ur.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(Vn.getParameter(Ur.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function xi(){return navigator.pdfViewerEnabled}function Ai(){var gt=new Float32Array(1),tn=new Uint8Array(gt.buffer);return gt[0]=1/0,gt[0]=gt[0]-gt[0],tn[3]}var Pi={fonts:le,domBlockers:Zt,fontPreferences:hi,audio:Se,screenFrame:ct,osCpu:ee,languages:I,colorDepth:K,deviceMemory:ue,screenResolution:De,hardwareConcurrency:Me,timezone:ie,sessionStorage:z,localStorage:be,indexedDB:Qe,openDatabase:Bt,cpuClass:nn,platform:bt,plugins:ke,canvas:Ye,touchSupport:et,vendor:at,vendorFlavors:$t,cookiesEnabled:On,colorGamut:gn,invertedColors:Qt,forcedColors:hn,monochrome:Or,contrast:Ln,reducedMotion:Gn,hdr:sr,math:ui,videoCard:Kr,pdfViewerEnabled:xi,architecture:Ai};function io(gt){return me(Pi,gt,[])}var lo="$ if upgrade to Pro: https://fpjs.dev/pro";function Gr(gt){var tn=un(gt),Vn=qn(tn);return{score:tn,comment:lo.replace(/\$/g,"".concat(Vn))}}function un(gt){if(ye())return .4;if(re())return H()?.5:.3;var tn=gt.platform.value||"";return/^Win/.test(tn)?.6:/^Mac/.test(tn)?.5:.7}function qn(gt){return ae(.99+.01*gt,1e-4)}function kn(gt){for(var tn="",Vn=0,Ur=Object.keys(gt).sort();Vn<Ur.length;Vn++){var $r=Ur[Vn],Pr=gt[$r],zr=Pr.error?"error":JSON.stringify(Pr.value);tn+="".concat(tn?"|":"").concat($r.replace(/([:|\\])/g,"\\$1"),":").concat(zr)}return tn}function St(gt){return JSON.stringify(gt,function(tn,Vn){return Vn instanceof Error?R(Vn):Vn},2)}function ln(gt){return O(kn(gt))}function An(gt){var tn,Vn=Gr(gt);return{get visitorId(){return tn===void 0&&(tn=ln(this.components)),tn},set visitorId(Ur){tn=Ur},confidence:Vn,components:gt,version:l}}function Cr(gt){return gt===void 0&&(gt=50),m(gt,gt*2)}function _i(gt,tn){var Vn=Date.now();return{get:function(Ur){return(0,i.__awaiter)(this,void 0,void 0,function(){var $r,Pr,zr;return(0,i.__generator)(this,function(gi){switch(gi.label){case 0:return $r=Date.now(),[4,gt()];case 1:return Pr=gi.sent(),zr=An(Pr),(tn||Ur?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(zr.version,` userAgent: `).concat(navigator.userAgent,` timeBetweenLoadAndGet: `).concat($r-Vn,` visitorId: `).concat(zr.visitorId,` components: `).concat(St(Pr),"\n```")),[2,zr]}})})}}}function Sn(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var gt=new XMLHttpRequest;gt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(l,"/npm-monitoring"),!0),gt.send()}catch(tn){console.error(tn)}}function ir(gt){var tn=gt===void 0?{}:gt,Vn=tn.delayFallback,Ur=tn.debug,$r=tn.monitoring,Pr=$r===void 0?!0:$r;return(0,i.__awaiter)(this,void 0,void 0,function(){var zr;return(0,i.__generator)(this,function(gi){switch(gi.label){case 0:return Pr&&Sn(),[4,Cr(Vn)];case 1:return gi.sent(),zr=io({debug:Ur}),[2,_i(zr,Ur)]}})})}var mt={load:ir,hashComponents:ln,componentsToDebugString:St},fn=null},46559:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(13303),l=t(79364),s=t(39954),m=t(31635),u=t(96540),f=t(8984);function p(ft){return ft&&typeof ft=="object"&&"default"in ft?ft:{default:ft}}var v=p(u);function h(ft){return typeof ft=="function"}function d(ft){return h(ft?.lift)}function b(ft){return function(wt){if(d(wt))return wt.lift(function(Ut){try{return ft(Ut,this)}catch(Ke){this.error(Ke)}});throw new TypeError("Unable to lift unknown Observable type")}}function y(ft){var wt=function(Ke){Error.call(Ke),Ke.stack=new Error().stack},Ut=ft(wt);return Ut.prototype=Object.create(Error.prototype),Ut.prototype.constructor=Ut,Ut}var w=y(function(ft){return function(Ut){ft(this),this.message=Ut?Ut.length+` errors occurred during unsubscription: `+Ut.map(function(Ke,it){return it+1+") "+Ke.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=Ut}});function S(ft,wt){if(ft){var Ut=ft.indexOf(wt);0<=Ut&&ft.splice(Ut,1)}}var O=function(){function ft(wt){this.initialTeardown=wt,this.closed=!1,this._parentage=null,this._finalizers=null}return ft.prototype.unsubscribe=function(){var wt,Ut,Ke,it,At;if(!this.closed){this.closed=!0;var et=this._parentage;if(et)if(this._parentage=null,Array.isArray(et))try{for(var ee=m.__values(et),I=ee.next();!I.done;I=ee.next()){var K=I.value;K.remove(this)}}catch(qe){wt={error:qe}}finally{try{I&&!I.done&&(Ut=ee.return)&&Ut.call(ee)}finally{if(wt)throw wt.error}}else et.remove(this);var ue=this.initialTeardown;if(h(ue))try{ue()}catch(qe){At=qe instanceof w?qe.errors:[qe]}var De=this._finalizers;if(De){this._finalizers=null;try{for(var He=m.__values(De),Fe=He.next();!Fe.done;Fe=He.next()){var ze=Fe.value;try{M(ze)}catch(qe){At=At??[],qe instanceof w?At=m.__spreadArray(m.__spreadArray([],m.__read(At)),m.__read(qe.errors)):At.push(qe)}}}catch(qe){Ke={error:qe}}finally{try{Fe&&!Fe.done&&(it=He.return)&&it.call(He)}finally{if(Ke)throw Ke.error}}}if(At)throw new w(At)}},ft.prototype.add=function(wt){var Ut;if(wt&&wt!==this)if(this.closed)M(wt);else{if(wt instanceof ft){if(wt.closed||wt._hasParent(this))return;wt._addParent(this)}(this._finalizers=(Ut=this._finalizers)!==null&&Ut!==void 0?Ut:[]).push(wt)}},ft.prototype._hasParent=function(wt){var Ut=this._parentage;return Ut===wt||Array.isArray(Ut)&&Ut.includes(wt)},ft.prototype._addParent=function(wt){var Ut=this._parentage;this._parentage=Array.isArray(Ut)?(Ut.push(wt),Ut):Ut?[Ut,wt]:wt},ft.prototype._removeParent=function(wt){var Ut=this._parentage;Ut===wt?this._parentage=null:Array.isArray(Ut)&&S(Ut,wt)},ft.prototype.remove=function(wt){var Ut=this._finalizers;Ut&&S(Ut,wt),wt instanceof ft&&wt._removeParent(this)},ft.EMPTY=function(){var wt=new ft;return wt.closed=!0,wt}(),ft}();O.EMPTY;function R(ft){return ft instanceof O||ft&&"closed"in ft&&h(ft.remove)&&h(ft.add)&&h(ft.unsubscribe)}function M(ft){h(ft)?ft():ft.unsubscribe()}var D={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},P={setTimeout:function(ft,wt){for(var Ut=[],Ke=2;Ke<arguments.length;Ke++)Ut[Ke-2]=arguments[Ke];return setTimeout.apply(void 0,m.__spreadArray([ft,wt],m.__read(Ut)))},clearTimeout:function(ft){return clearTimeout(ft)},delegate:void 0};function T(ft){P.setTimeout(function(){throw ft})}function A(){}var j=function(ft){m.__extends(wt,ft);function wt(Ut){var Ke=ft.call(this)||this;return Ke.isStopped=!1,Ut?(Ke.destination=Ut,R(Ut)&&Ut.add(Ke)):Ke.destination=fe,Ke}return wt.create=function(Ut,Ke,it){return new W(Ut,Ke,it)},wt.prototype.next=function(Ut){this.isStopped||this._next(Ut)},wt.prototype.error=function(Ut){this.isStopped||(this.isStopped=!0,this._error(Ut))},wt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},wt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ft.prototype.unsubscribe.call(this),this.destination=null)},wt.prototype._next=function(Ut){this.destination.next(Ut)},wt.prototype._error=function(Ut){try{this.destination.error(Ut)}finally{this.unsubscribe()}},wt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},wt}(O),ae=Function.prototype.bind;function _(ft,wt){return ae.call(ft,wt)}var N=function(){function ft(wt){this.partialObserver=wt}return ft.prototype.next=function(wt){var Ut=this.partialObserver;if(Ut.next)try{Ut.next(wt)}catch(Ke){he(Ke)}},ft.prototype.error=function(wt){var Ut=this.partialObserver;if(Ut.error)try{Ut.error(wt)}catch(Ke){he(Ke)}else he(wt)},ft.prototype.complete=function(){var wt=this.partialObserver;if(wt.complete)try{wt.complete()}catch(Ut){he(Ut)}},ft}(),W=function(ft){m.__extends(wt,ft);function wt(Ut,Ke,it){var At=ft.call(this)||this,et;if(h(Ut)||!Ut)et={next:Ut??void 0,error:Ke??void 0,complete:it??void 0};else{var ee;At&&D.useDeprecatedNextContext?(ee=Object.create(Ut),ee.unsubscribe=function(){return At.unsubscribe()},et={next:Ut.next&&_(Ut.next,ee),error:Ut.error&&_(Ut.error,ee),complete:Ut.complete&&_(Ut.complete,ee)}):et=Ut}return At.destination=new N(et),At}return wt}(j);function he(ft){T(ft)}function me(ft){throw ft}var fe={closed:!0,next:A,error:me,complete:A};function ve(ft,wt,Ut,Ke,it){return new ce(ft,wt,Ut,Ke,it)}var ce=function(ft){m.__extends(wt,ft);function wt(Ut,Ke,it,At,et,ee){var I=ft.call(this,Ut)||this;return I.onFinalize=et,I.shouldUnsubscribe=ee,I._next=Ke?function(K){try{Ke(K)}catch(ue){Ut.error(ue)}}:ft.prototype._next,I._error=At?function(K){try{At(K)}catch(ue){Ut.error(ue)}finally{this.unsubscribe()}}:ft.prototype._error,I._complete=it?function(){try{it()}catch(K){Ut.error(K)}finally{this.unsubscribe()}}:ft.prototype._complete,I}return wt.prototype.unsubscribe=function(){var Ut;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var Ke=this.closed;ft.prototype.unsubscribe.call(this),!Ke&&((Ut=this.onFinalize)===null||Ut===void 0||Ut.call(this))}},wt}(j);function oe(ft,wt){return b(function(Ut,Ke){var it=0;Ut.subscribe(ve(Ke,function(At){Ke.next(ft.call(wt,At,it++))}))})}var re=Object.defineProperty,H=Object.defineProperties,V=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ne=(ft,wt,Ut)=>wt in ft?re(ft,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):ft[wt]=Ut,pe=(ft,wt)=>{for(var Ut in wt||(wt={}))Te.call(wt,Ut)&&ne(ft,Ut,wt[Ut]);if(Q)for(var Ut of Q(wt))Re.call(wt,Ut)&&ne(ft,Ut,wt[Ut]);return ft},ye=(ft,wt)=>H(ft,V(wt));function Se(ft,wt){return new l.Observable(Ut=>{let Ke,it,At=s.LoadingState.Loading,et=1,ee=1,I=!1;const K={next:ue=>{At=ue.state;let De=!1;if(At!==s.LoadingState.Error){Ke=wt.getNextQuery(ue);const Fe=wt.shouldCancel();Ke&&Fe&&(I=Fe,Ke=void 0),De=!0}const He=wt.process(ue.data);De&&(Ke?(He.length&&He[0].length?At=s.LoadingState.Streaming:At=s.LoadingState.Loading,et=et*2>10?10:et*2):(At=s.LoadingState.Done,et=0)),Ut.next(ye(pe({},ue),{data:He,state:At,key:ft.requestId}))},error:ue=>{Ut.error(ue)},complete:()=>{if(it&&(it.unsubscribe(),it=void 0),Ke){const ue=Ke;setTimeout(()=>{it=wt.query(ye(pe({},ft),{requestId:`${ft.requestId}.${++ee}`,targets:[ue]})).subscribe(K),Ke=void 0},et*1e3)}else Ut.complete()}};return it=wt.query(ft).subscribe(K),function(){K.complete(),(Ke||I)&&wt.onCancel(),Ke=void 0}})}var Ae=Object.defineProperty,Ee=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Rt=(ft,wt,Ut)=>wt in ft?Ae(ft,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):ft[wt]=Ut,tt=(ft,wt)=>{for(var Ut in wt||(wt={}))Tt.call(wt,Ut)&&Rt(ft,Ut,wt[Ut]);if(nt)for(var Ut of nt(wt))pt.call(wt,Ut)&&Rt(ft,Ut,wt[Ut]);return ft},U=(ft,wt)=>Ee(ft,xe(wt));const F=["started","submitted","running"],Y=(ft="")=>F.includes(ft),le=ft=>!!(typeof ft=="object"&&ft?.hasOwnProperty("queryID")&&ft?.hasOwnProperty("status"));class ke extends i.DataSourceWithBackend{constructor(wt,Ut=!1){super(wt),this.runningQueries={},this.requestCounter=100,this.cancel=Ke=>{this.storeQuery(Ke,{shouldCancel:!0})},this.asyncQueryDataSupport=Ut}query(wt){if(this.asyncQueryDataSupport){const Ut=this.filterQuery?wt.targets.filter(this.filterQuery):wt.targets;if(!Ut.length)return l.of({data:[]});const Ke=[];for(let it of Ut)it.hide||Ke.push(this.doSingle(it,wt));return l.merge(...Ke)}else return super.query(wt)}storeQuery(wt,Ut){const Ke=JSON.stringify(wt),it=this.runningQueries[Ke]||{};this.runningQueries[Ke]=tt(tt({},it),Ut)}getQuery(wt){const Ut=JSON.stringify(wt);return this.runningQueries[Ut]||{}}removeQuery(wt){const Ut=JSON.stringify(wt);delete this.runningQueries[Ut]}doSingle(wt,Ut){let Ke,it,At=[];return Se(U(tt({},Ut),{targets:[wt],requestId:`aws_ts_${this.requestCounter++}`}),{getNextQuery:et=>{var ee,I;if((ee=et.data)!=null&&ee.length){const ue=(I=et.data[0].meta)==null?void 0:I.custom;if(le(ue)&&Y(ue.status))return Ke=ue.queryID,it=ue.status,this.storeQuery(wt,{queryID:Ke}),U(tt({},wt),{queryID:Ke})}this.removeQuery(wt)},query:et=>{const{range:ee,targets:I,requestId:K,intervalMs:ue,maxDataPoints:De}=et,[He]=I,Fe=tt(tt({},He),this.asyncQueryDataSupport?{meta:{queryFlow:"async"}}:{}),ze={queries:[tt(U(tt({},Fe),{intervalMs:ue,maxDataPoints:De,datasource:this==null?void 0:this.getRef(),datasourceId:this.id}),this.applyTemplateVariables(Fe,et.scopedVars))],range:ee,from:ee.from.valueOf().toString(),to:ee.to.valueOf().toString()};let qe={};Y(it)&&(qe={"X-Cache-Skip":!0});const We={method:"POST",url:"/api/ds/query",data:ze,requestId:K,headers:qe};return i.getBackendSrv().fetch(We).pipe(oe(_t=>({data:i.toDataQueryResponse(_t).data})))},process:et=>{for(const ee of et)ee.fields.length>0&&At.push(ee);return At},shouldCancel:()=>{const{shouldCancel:et}=this.getQuery(wt);return!!et},onCancel:()=>{Ke&&(this.removeQuery(wt),this.postResource("cancel",{queryId:Ke}).catch(et=>{et.isHandled=!0,console.error(`error cancelling query ID: ${Ke}`,et)}))}})}}const Ye=ft=>{const{state:wt}=ft,[Ut,Ke]=u.useState(!1),[it,At]=u.useState(!1),[et,ee]=u.useState(wt),[I,K]=u.useState(ft.query);u.useEffect(()=>{wt&&et!==wt&&wt!==s.LoadingState.Loading&&(Ke(!1),At(!1)),ee(wt)},[wt,et]);const ue=()=>{Ke(!0),K(ft.query),ft.onRunQuery()},De=ft.onCancelQuery?()=>{var He;(He=ft.onCancelQuery)==null||He.call(ft,I),At(!0)}:void 0;return v.default.createElement(v.default.Fragment,null,v.default.createElement(f.Button,{variant:ft.enableRun?"primary":"secondary",size:"sm",onClick:ue,icon:Ut&&!it?"fa fa-spinner":void 0,disabled:wt===s.LoadingState.Loading||!ft.enableRun},"Run query"),De&&v.default.createElement(f.Button,{variant:Ut&&!it?"primary":"secondary",size:"sm",disabled:!Ut||it,icon:it?"fa fa-spinner":void 0,onClick:De},"Stop query"))};g.DatasourceWithAsyncBackend=ke,g.RunQueryButtons=Ye},97899:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(96540),s=t(8984),m=t(39954),u=t(13303),f=t(54404),p=t(2543),v=t(46559);function h(jt){return jt&&typeof jt=="object"&&"default"in jt?jt:{default:jt}}var d=h(l);const b=["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","cn-north-1","cn-northwest-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-gov-east-1","us-gov-west-1","us-iso-east-1","us-isob-east-1","us-west-1","us-west-2"];var y=(jt=>(jt.Keys="keys",jt.Credentials="credentials",jt.Default="default",jt.EC2IAMRole="ec2_iam_role",jt.ARN="arn",jt.GrafanaAssumeRole="grafana_assume_role",jt))(y||{});const w=[{label:"Workspace IAM Role",value:y.EC2IAMRole},{label:"Grafana Assume Role",value:y.GrafanaAssumeRole},{label:"AWS SDK Default",value:y.Default},{label:"Access & secret key",value:y.Keys},{label:"Credentials file",value:y.Credentials}];function S(jt){if(jt.sheet)return jt.sheet;for(var Pn=0;Pn<document.styleSheets.length;Pn++)if(document.styleSheets[Pn].ownerNode===jt)return document.styleSheets[Pn]}function O(jt){var Pn=document.createElement("style");return Pn.setAttribute("data-emotion",jt.key),jt.nonce!==void 0&&Pn.setAttribute("nonce",jt.nonce),Pn.appendChild(document.createTextNode("")),Pn.setAttribute("data-s",""),Pn}var R=function(){function jt(nr){var Ir=this;this._insertTag=function(fi){var Ti;Ir.tags.length===0?Ir.insertionPoint?Ti=Ir.insertionPoint.nextSibling:Ir.prepend?Ti=Ir.container.firstChild:Ti=Ir.before:Ti=Ir.tags[Ir.tags.length-1].nextSibling,Ir.container.insertBefore(fi,Ti),Ir.tags.push(fi)},this.isSpeedy=nr.speedy===void 0?!0:nr.speedy,this.tags=[],this.ctr=0,this.nonce=nr.nonce,this.key=nr.key,this.container=nr.container,this.prepend=nr.prepend,this.insertionPoint=nr.insertionPoint,this.before=null}var Pn=jt.prototype;return Pn.hydrate=function(Ir){Ir.forEach(this._insertTag)},Pn.insert=function(Ir){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(O(this));var fi=this.tags[this.tags.length-1];if(!1)var Ti;if(this.isSpeedy){var Oe=S(fi);try{Oe.insertRule(Ir,Oe.cssRules.length)}catch{}}else fi.appendChild(document.createTextNode(Ir));this.ctr++},Pn.flush=function(){this.tags.forEach(function(Ir){return Ir.parentNode&&Ir.parentNode.removeChild(Ir)}),this.tags=[],this.ctr=0},jt}(),M="-ms-",D="-moz-",P="-webkit-",T="comm",A="rule",j="decl",ae="@import",_="@keyframes",N=Math.abs,W=String.fromCharCode,he=Object.assign;function me(jt,Pn){return re(jt,0)^45?(((Pn<<2^re(jt,0))<<2^re(jt,1))<<2^re(jt,2))<<2^re(jt,3):0}function fe(jt){return jt.trim()}function ve(jt,Pn){return(jt=Pn.exec(jt))?jt[0]:jt}function ce(jt,Pn,nr){return jt.replace(Pn,nr)}function oe(jt,Pn){return jt.indexOf(Pn)}function re(jt,Pn){return jt.charCodeAt(Pn)|0}function H(jt,Pn,nr){return jt.slice(Pn,nr)}function V(jt){return jt.length}function Q(jt){return jt.length}function Te(jt,Pn){return Pn.push(jt),jt}function Re(jt,Pn){return jt.map(Pn).join("")}var ne=1,pe=1,ye=0,Se=0,Ae=0,Ee="";function xe(jt,Pn,nr,Ir,fi,Ti,Oe){return{value:jt,root:Pn,parent:nr,type:Ir,props:fi,children:Ti,line:ne,column:pe,length:Oe,return:""}}function nt(jt,Pn){return he(xe("",null,null,"",null,null,0),jt,{length:-jt.length},Pn)}function Tt(){return Ae}function pt(){return Ae=Se>0?re(Ee,--Se):0,pe--,Ae===10&&(pe=1,ne--),Ae}function Rt(){return Ae=Se<ye?re(Ee,Se++):0,pe++,Ae===10&&(pe=1,ne++),Ae}function tt(){return re(Ee,Se)}function U(){return Se}function F(jt,Pn){return H(Ee,jt,Pn)}function Y(jt){switch(jt){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(jt){return ne=pe=1,ye=V(Ee=jt),Se=0,[]}function ke(jt){return Ee="",jt}function Ye(jt){return fe(F(Se-1,Ut(jt===91?jt+2:jt===40?jt+1:jt)))}function ft(jt){for(;(Ae=tt())&&Ae<33;)Rt();return Y(jt)>2||Y(Ae)>3?"":" "}function wt(jt,Pn){for(;--Pn&&Rt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return F(jt,U()+(Pn<6&&tt()==32&&Rt()==32))}function Ut(jt){for(;Rt();)switch(Ae){case jt:return Se;case 34:case 39:jt!==34&&jt!==39&&Ut(Ae);break;case 40:jt===41&&Ut(jt);break;case 92:Rt();break}return Se}function Ke(jt,Pn){for(;Rt()&&jt+Ae!==47+10;)if(jt+Ae===42+42&&tt()===47)break;return"/*"+F(Pn,Se-1)+"*"+W(jt===47?jt:Rt())}function it(jt){for(;!Y(tt());)Rt();return F(jt,Se)}function At(jt){return ke(et("",null,null,null,[""],jt=le(jt),0,[0],jt))}function et(jt,Pn,nr,Ir,fi,Ti,Oe,pn,Qn){for(var Sr=0,hr=0,kr=Oe,Ve=0,Ot=0,wn=0,Wt=1,Yt=1,zn=1,Nr=0,si="",Ki=fi,Bi=Ti,Xi=Ir,vo=si;Yt;)switch(wn=Nr,Nr=Rt()){case 40:if(wn!=108&&re(vo,kr-1)==58){oe(vo+=ce(Ye(Nr),"&","&\f"),"&\f")!=-1&&(zn=-1);break}case 34:case 39:case 91:vo+=Ye(Nr);break;case 9:case 10:case 13:case 32:vo+=ft(wn);break;case 92:vo+=wt(U()-1,7);continue;case 47:switch(tt()){case 42:case 47:Te(I(Ke(Rt(),U()),Pn,nr),Qn);break;default:vo+="/"}break;case 123*Wt:pn[Sr++]=V(vo)*zn;case 125*Wt:case 59:case 0:switch(Nr){case 0:case 125:Yt=0;case 59+hr:Ot>0&&V(vo)-kr&&Te(Ot>32?K(vo+";",Ir,nr,kr-1):K(ce(vo," ","")+";",Ir,nr,kr-2),Qn);break;case 59:vo+=";";default:if(Te(Xi=ee(vo,Pn,nr,Sr,hr,fi,pn,si,Ki=[],Bi=[],kr),Ti),Nr===123)if(hr===0)et(vo,Pn,Xi,Xi,Ki,Ti,kr,pn,Bi);else switch(Ve===99&&re(vo,3)===110?100:Ve){case 100:case 109:case 115:et(jt,Xi,Xi,Ir&&Te(ee(jt,Xi,Xi,0,0,fi,pn,si,fi,Ki=[],kr),Bi),fi,Bi,kr,pn,Ir?Ki:Bi);break;default:et(vo,Xi,Xi,Xi,[""],Bi,0,pn,Bi)}}Sr=hr=Ot=0,Wt=zn=1,si=vo="",kr=Oe;break;case 58:kr=1+V(vo),Ot=wn;default:if(Wt<1){if(Nr==123)--Wt;else if(Nr==125&&Wt++==0&&pt()==125)continue}switch(vo+=W(Nr),Nr*Wt){case 38:zn=hr>0?1:(vo+="\f",-1);break;case 44:pn[Sr++]=(V(vo)-1)*zn,zn=1;break;case 64:tt()===45&&(vo+=Ye(Rt())),Ve=tt(),hr=kr=V(si=vo+=it(U())),Nr++;break;case 45:wn===45&&V(vo)==2&&(Wt=0)}}return Ti}function ee(jt,Pn,nr,Ir,fi,Ti,Oe,pn,Qn,Sr,hr){for(var kr=fi-1,Ve=fi===0?Ti:[""],Ot=Q(Ve),wn=0,Wt=0,Yt=0;wn<Ir;++wn)for(var zn=0,Nr=H(jt,kr+1,kr=N(Wt=Oe[wn])),si=jt;zn<Ot;++zn)(si=fe(Wt>0?Ve[zn]+" "+Nr:ce(Nr,/&\f/g,Ve[zn])))&&(Qn[Yt++]=si);return xe(jt,Pn,nr,fi===0?A:pn,Qn,Sr,hr)}function I(jt,Pn,nr){return xe(jt,Pn,nr,T,W(Tt()),H(jt,2,-2),0)}function K(jt,Pn,nr,Ir){return xe(jt,Pn,nr,j,H(jt,0,Ir),H(jt,Ir+1,-1),Ir)}function ue(jt,Pn){for(var nr="",Ir=Q(jt),fi=0;fi<Ir;fi++)nr+=Pn(jt[fi],fi,jt,Pn)||"";return nr}function De(jt,Pn,nr,Ir){switch(jt.type){case ae:case j:return jt.return=jt.return||jt.value;case T:return"";case _:return jt.return=jt.value+"{"+ue(jt.children,Ir)+"}";case A:jt.value=jt.props.join(",")}return V(nr=ue(jt.children,Ir))?jt.return=jt.value+"{"+nr+"}":""}function He(jt){var Pn=Q(jt);return function(nr,Ir,fi,Ti){for(var Oe="",pn=0;pn<Pn;pn++)Oe+=jt[pn](nr,Ir,fi,Ti)||"";return Oe}}function Fe(jt){return function(Pn){Pn.root||(Pn=Pn.return)&&jt(Pn)}}var ze=function(Pn){var nr=new WeakMap;return function(Ir){if(nr.has(Ir))return nr.get(Ir);var fi=Pn(Ir);return nr.set(Ir,fi),fi}};function qe(jt){var Pn=Object.create(null);return function(nr){return Pn[nr]===void 0&&(Pn[nr]=jt(nr)),Pn[nr]}}var We=function(Pn,nr,Ir){for(var fi=0,Ti=0;fi=Ti,Ti=tt(),fi===38&&Ti===12&&(nr[Ir]=1),!Y(Ti);)Rt();return F(Pn,Se)},_t=function(Pn,nr){var Ir=-1,fi=44;do switch(Y(fi)){case 0:fi===38&&tt()===12&&(nr[Ir]=1),Pn[Ir]+=We(Se-1,nr,Ir);break;case 2:Pn[Ir]+=Ye(fi);break;case 4:if(fi===44){Pn[++Ir]=tt()===58?"&\f":"",nr[Ir]=Pn[Ir].length;break}default:Pn[Ir]+=W(fi)}while(fi=Rt());return Pn},ct=function(Pn,nr){return ke(_t(le(Pn),nr))},Ge=new WeakMap,st=function(Pn){if(!(Pn.type!=="rule"||!Pn.parent||Pn.length<1)){for(var nr=Pn.value,Ir=Pn.parent,fi=Pn.column===Ir.column&&Pn.line===Ir.line;Ir.type!=="rule";)if(Ir=Ir.parent,!Ir)return;if(!(Pn.props.length===1&&nr.charCodeAt(0)!==58&&!Ge.get(Ir))&&!fi){Ge.set(Pn,!0);for(var Ti=[],Oe=ct(nr,Ti),pn=Ir.props,Qn=0,Sr=0;Qn<Oe.length;Qn++)for(var hr=0;hr<pn.length;hr++,Sr++)Pn.props[Sr]=Ti[Qn]?Oe[Qn].replace(/&\f/g,pn[hr]):pn[hr]+" "+Oe[Qn]}}},Me=function(Pn){if(Pn.type==="decl"){var nr=Pn.value;nr.charCodeAt(0)===108&&nr.charCodeAt(2)===98&&(Pn.return="",Pn.value="")}},ie="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ge=function(Pn){return Pn.type==="comm"&&Pn.children.indexOf(ie)>-1},z=function(Pn){return function(nr,Ir,fi){if(!(nr.type!=="rule"||Pn.compat)){var Ti=nr.value.match(/(:first|:nth|:nth-last)-child/g);if(Ti){for(var Oe=nr.parent===fi[0],pn=Oe?fi[0].children:fi,Qn=pn.length-1;Qn>=0;Qn--){var Sr=pn[Qn];if(Sr.line<nr.line)break;if(Sr.column<nr.column){if(ge(Sr))return;break}}Ti.forEach(function(hr){console.error('The pseudo class "'+hr+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+hr.split("-child")[0]+'-of-type".')})}}}},be=function(Pn){return Pn.type.charCodeAt(1)===105&&Pn.type.charCodeAt(0)===64},Qe=function(Pn,nr){for(var Ir=Pn-1;Ir>=0;Ir--)if(!be(nr[Ir]))return!0;return!1},Bt=function(Pn){Pn.type="",Pn.value="",Pn.return="",Pn.children="",Pn.props=""},nn=function(Pn,nr,Ir){be(Pn)&&(Pn.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Bt(Pn)):Qe(nr,Ir)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Bt(Pn)))};function bt(jt,Pn){switch(me(jt,Pn)){case 5103:return P+"print-"+jt+jt;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+jt+jt;case 5349:case 4246:case 4810:case 6968:case 2756:return P+jt+D+jt+M+jt+jt;case 6828:case 4268:return P+jt+M+jt+jt;case 6165:return P+jt+M+"flex-"+jt+jt;case 5187:return P+jt+ce(jt,/(\w+).+(:[^]+)/,P+"box-$1$2"+M+"flex-$1$2")+jt;case 5443:return P+jt+M+"flex-item-"+ce(jt,/flex-|-self/,"")+jt;case 4675:return P+jt+M+"flex-line-pack"+ce(jt,/align-content|flex-|-self/,"")+jt;case 5548:return P+jt+M+ce(jt,"shrink","negative")+jt;case 5292:return P+jt+M+ce(jt,"basis","preferred-size")+jt;case 6060:return P+"box-"+ce(jt,"-grow","")+P+jt+M+ce(jt,"grow","positive")+jt;case 4554:return P+ce(jt,/([^-])(transform)/g,"$1"+P+"$2")+jt;case 6187:return ce(ce(ce(jt,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),jt,"")+jt;case 5495:case 3959:return ce(jt,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return ce(ce(jt,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+M+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+jt+jt;case 4095:case 3583:case 4068:case 2532:return ce(jt,/(.+)-inline(.+)/,P+"$1$2")+jt;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(jt)-1-Pn>6)switch(re(jt,Pn+1)){case 109:if(re(jt,Pn+4)!==45)break;case 102:return ce(jt,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+D+(re(jt,Pn+3)==108?"$3":"$2-$3"))+jt;case 115:return~oe(jt,"stretch")?bt(ce(jt,"stretch","fill-available"),Pn)+jt:jt}break;case 4949:if(re(jt,Pn+1)!==115)break;case 6444:switch(re(jt,V(jt)-3-(~oe(jt,"!important")&&10))){case 107:return ce(jt,":",":"+P)+jt;case 101:return ce(jt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(re(jt,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+M+"$2box$3")+jt}break;case 5936:switch(re(jt,Pn+11)){case 114:return P+jt+M+ce(jt,/[svh]\w+-[tblr]{2}/,"tb")+jt;case 108:return P+jt+M+ce(jt,/[svh]\w+-[tblr]{2}/,"tb-rl")+jt;case 45:return P+jt+M+ce(jt,/[svh]\w+-[tblr]{2}/,"lr")+jt}return P+jt+M+jt+jt}return jt}var at=function(Pn,nr,Ir,fi){if(Pn.length>-1&&!Pn.return)switch(Pn.type){case j:Pn.return=bt(Pn.value,Pn.length);break;case _:return ue([nt(Pn,{value:ce(Pn.value,"@","@"+P)})],fi);case A:if(Pn.length)return Re(Pn.props,function(Ti){switch(ve(Ti,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([nt(Pn,{props:[ce(Ti,/:(read-\w+)/,":"+D+"$1")]})],fi);case"::placeholder":return ue([nt(Pn,{props:[ce(Ti,/:(plac\w+)/,":"+P+"input-$1")]}),nt(Pn,{props:[ce(Ti,/:(plac\w+)/,":"+D+"$1")]}),nt(Pn,{props:[ce(Ti,/:(plac\w+)/,M+"input-$1")]})],fi)}return""})}},$t=typeof document<"u",On=$t?void 0:ze(function(){return qe(function(){var jt={};return function(Pn){return jt[Pn]}})}),Ct=[at],Zt=function(Pn){var nr=Pn.key;if($t&&nr==="css"){var Ir=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Ir,function(Ki){var Bi=Ki.getAttribute("data-emotion");Bi.indexOf(" ")!==-1&&(document.head.appendChild(Ki),Ki.setAttribute("data-s",""))})}var fi=Pn.stylisPlugins||Ct,Ti={},Oe,pn=[];$t&&(Oe=Pn.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+nr+' "]'),function(Ki){for(var Bi=Ki.getAttribute("data-emotion").split(" "),Xi=1;Xi<Bi.length;Xi++)Ti[Bi[Xi]]=!0;pn.push(Ki)}));var Qn,Sr=[st,Me];if($t){var hr,kr=[De,Fe(function(Ki){hr.insert(Ki)})],Ve=He(Sr.concat(fi,kr)),Ot=function(Bi){return ue(At(Bi),Ve)};Qn=function(Bi,Xi,vo,ea){hr=vo,Ot(Bi?Bi+"{"+Xi.styles+"}":Xi.styles),ea&&(si.inserted[Xi.name]=!0)}}else{var wn=[De],Wt=He(Sr.concat(fi,wn)),Yt=function(Bi){return ue(At(Bi),Wt)},zn=On(fi)(nr),Nr=function(Bi,Xi){var vo=Xi.name;return zn[vo]===void 0&&(zn[vo]=Yt(Bi?Bi+"{"+Xi.styles+"}":Xi.styles)),zn[vo]};Qn=function(Bi,Xi,vo,ea){var la=Xi.name,ss=Nr(Bi,Xi);if(si.compat===void 0)return ea&&(si.inserted[la]=!0),ss;if(ea)si.inserted[la]=ss;else return ss}}var si={key:nr,sheet:new R({key:nr,container:Oe,nonce:Pn.nonce,speedy:Pn.speedy,prepend:Pn.prepend,insertionPoint:Pn.insertionPoint}),nonce:Pn.nonce,inserted:Ti,registered:{},insert:Qn};return si.sheet.hydrate(pn),si};function Wn(jt){for(var Pn=0,nr,Ir=0,fi=jt.length;fi>=4;++Ir,fi-=4)nr=jt.charCodeAt(Ir)&255|(jt.charCodeAt(++Ir)&255)<<8|(jt.charCodeAt(++Ir)&255)<<16|(jt.charCodeAt(++Ir)&255)<<24,nr=(nr&65535)*1540483477+((nr>>>16)*59797<<16),nr^=nr>>>24,Pn=(nr&65535)*1540483477+((nr>>>16)*59797<<16)^(Pn&65535)*1540483477+((Pn>>>16)*59797<<16);switch(fi){case 3:Pn^=(jt.charCodeAt(Ir+2)&255)<<16;case 2:Pn^=(jt.charCodeAt(Ir+1)&255)<<8;case 1:Pn^=jt.charCodeAt(Ir)&255,Pn=(Pn&65535)*1540483477+((Pn>>>16)*59797<<16)}return Pn^=Pn>>>13,Pn=(Pn&65535)*1540483477+((Pn>>>16)*59797<<16),((Pn^Pn>>>15)>>>0).toString(36)}var Zn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xt=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Xe="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",gn=/[A-Z]|^ms/g,Qt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dt=function(Pn){return Pn.charCodeAt(1)===45},hn=function(Pn){return Pn!=null&&typeof Pn!="boolean"},cn=qe(function(jt){return Dt(jt)?jt:jt.replace(gn,"-$&").toLowerCase()}),an=function(Pn,nr){switch(Pn){case"animation":case"animationName":if(typeof nr=="string")return nr.replace(Qt,function(Ir,fi,Ti){return ri={name:fi,styles:Ti,next:ri},fi})}return Zn[Pn]!==1&&!Dt(Pn)&&typeof nr=="number"&&nr!==0?nr+"px":nr};if(!1)var Or,Ln,En,Gn,rr,sr;var pi=null;function yi(jt,Pn,nr){if(nr==null)return"";if(nr.__emotion_styles!==void 0)return nr;switch(typeof nr){case"boolean":return"";case"object":{if(nr.anim===1)return ri={name:nr.name,styles:nr.styles,next:ri},nr.name;if(nr.styles!==void 0){var Ir=nr.next;if(Ir!==void 0)for(;Ir!==void 0;)ri={name:Ir.name,styles:Ir.styles,next:ri},Ir=Ir.next;var fi=nr.styles+";";return fi}return jr(jt,Pn,nr)}case"function":{if(jt!==void 0){var Ti=ri,Oe=nr(jt);return ri=Ti,yi(jt,Pn,Oe)}break}case"string":if(!1)var pn,Qn;break}if(Pn==null)return nr;var Sr=Pn[nr];return Sr!==void 0?Sr:nr}function jr(jt,Pn,nr){var Ir="";if(Array.isArray(nr))for(var fi=0;fi<nr.length;fi++)Ir+=yi(jt,Pn,nr[fi])+";";else for(var Ti in nr){var Oe=nr[Ti];if(typeof Oe!="object")Pn!=null&&Pn[Oe]!==void 0?Ir+=Ti+"{"+Pn[Oe]+"}":hn(Oe)&&(Ir+=cn(Ti)+":"+an(Ti,Oe)+";");else if(Array.isArray(Oe)&&typeof Oe[0]=="string"&&(Pn==null||Pn[Oe[0]]===void 0))for(var pn=0;pn<Oe.length;pn++)hn(Oe[pn])&&(Ir+=cn(Ti)+":"+an(Ti,Oe[pn])+";");else{var Qn=yi(jt,Pn,Oe);switch(Ti){case"animation":case"animationName":{Ir+=cn(Ti)+":"+Qn+";";break}default:Ir+=Ti+"{"+Qn+"}"}}}return Ir}var ui=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bi,ri,hi=function(Pn,nr,Ir){if(Pn.length===1&&typeof Pn[0]=="object"&&Pn[0]!==null&&Pn[0].styles!==void 0)return Pn[0];var fi=!0,Ti="";ri=void 0;var Oe=Pn[0];Oe==null||Oe.raw===void 0?(fi=!1,Ti+=yi(Ir,nr,Oe)):Ti+=Oe[0];for(var pn=1;pn<Pn.length;pn++)Ti+=yi(Ir,nr,Pn[pn]),fi&&(Ti+=Oe[pn]);var Qn;ui.lastIndex=0;for(var Sr="",hr;(hr=ui.exec(Ti))!==null;)Sr+="-"+hr[1];var kr=Wn(Ti)+Sr;return{name:kr,styles:Ti,next:ri}},Si=typeof document<"u";function Kr(jt,Pn,nr){var Ir="";return nr.split(" ").forEach(function(fi){jt[fi]!==void 0?Pn.push(jt[fi]+";"):Ir+=fi+" "}),Ir}var xi=function(Pn,nr,Ir){var fi=Pn.key+"-"+nr.name;(Ir===!1||Si===!1&&Pn.compat!==void 0)&&Pn.registered[fi]===void 0&&(Pn.registered[fi]=nr.styles)},Ai=function(Pn,nr,Ir){xi(Pn,nr,Ir);var fi=Pn.key+"-"+nr.name;if(Pn.inserted[nr.name]===void 0){var Ti="",Oe=nr;do{var pn=Pn.insert(nr===Oe?"."+fi:"",Oe,Pn.sheet,!0);!Si&&pn!==void 0&&(Ti+=pn),Oe=Oe.next}while(Oe!==void 0);if(!Si&&Ti.length!==0)return Ti}};function Pi(jt,Pn){if(jt.inserted[Pn.name]===void 0)return jt.insert("",Pn,jt.sheet,!0)}function io(jt,Pn,nr){var Ir=[],fi=Kr(jt,Ir,nr);return Ir.length<2?nr:fi+Pn(Ir)}var lo=function(Pn){var nr=Zt(Pn);nr.sheet.speedy=function(pn){this.isSpeedy=pn},nr.compat=!0;var Ir=function(){for(var Qn=arguments.length,Sr=new Array(Qn),hr=0;hr<Qn;hr++)Sr[hr]=arguments[hr];var kr=hi(Sr,nr.registered,void 0);return Ai(nr,kr,!1),nr.key+"-"+kr.name},fi=function(){for(var Qn=arguments.length,Sr=new Array(Qn),hr=0;hr<Qn;hr++)Sr[hr]=arguments[hr];var kr=hi(Sr,nr.registered),Ve="animation-"+kr.name;return Pi(nr,{name:kr.name,styles:"@keyframes "+Ve+"{"+kr.styles+"}"}),Ve},Ti=function(){for(var Qn=arguments.length,Sr=new Array(Qn),hr=0;hr<Qn;hr++)Sr[hr]=arguments[hr];var kr=hi(Sr,nr.registered);Pi(nr,kr)},Oe=function(){for(var Qn=arguments.length,Sr=new Array(Qn),hr=0;hr<Qn;hr++)Sr[hr]=arguments[hr];return io(nr.registered,Ir,Gr(Sr))};return{css:Ir,cx:Oe,injectGlobal:Ti,keyframes:fi,hydrate:function(Qn){Qn.forEach(function(Sr){nr.inserted[Sr]=!0})},flush:function(){nr.registered={},nr.inserted={},nr.sheet.flush()},sheet:nr.sheet,cache:nr,getRegisteredStyles:Kr.bind(null,nr.registered),merge:io.bind(null,nr.registered,Ir)}},Gr=function jt(Pn){for(var nr="",Ir=0;Ir<Pn.length;Ir++){var fi=Pn[Ir];if(fi!=null){var Ti=void 0;switch(typeof fi){case"boolean":break;case"object":{if(Array.isArray(fi))Ti=jt(fi);else{Ti="";for(var Oe in fi)fi[Oe]&&Oe&&(Ti&&(Ti+=" "),Ti+=Oe)}break}default:Ti=fi}Ti&&(nr&&(nr+=" "),nr+=Ti)}}return nr},un=lo({key:"css"}),qn=un.css,kn=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,An=(jt,Pn)=>{var nr={};for(var Ir in jt)St.call(jt,Ir)&&Pn.indexOf(Ir)<0&&(nr[Ir]=jt[Ir]);if(jt!=null&&kn)for(var Ir of kn(jt))Pn.indexOf(Ir)<0&&ln.call(jt,Ir)&&(nr[Ir]=jt[Ir]);return nr};const Cr=jt=>{var Pn=jt,{isARNInstructionsOpen:nr,setIsARNInstructionsOpen:Ir,awsAssumeRoleEnabled:fi,currentProvider:Ti,awsAllowedAuthProviders:Oe,skipHeader:pn,regions:Qn,assumeRoleInstructionsStyle:Sr}=Pn,hr=An(Pn,["isARNInstructionsOpen","setIsARNInstructionsOpen","awsAssumeRoleEnabled","currentProvider","awsAllowedAuthProviders","skipHeader","regions","assumeRoleInstructionsStyle"]),kr,Ve,Ot,wn,Wt,Yt,zn;const Nr=hr.options;return d.default.createElement("div",{"data-testid":"connection-config"},d.default.createElement(f.ConfigSection,{title:pn?"":"Connection Details","data-testid":"connection-config"},d.default.createElement(f.ConfigSubSection,{title:"Authentication"},d.default.createElement(s.Field,{label:"Authentication Provider",description:"Specify which AWS credentials chain to use.",htmlFor:"authProvider"},d.default.createElement(s.Select,{id:"authProvider","aria-label":"Authentication Provider",value:Ti,options:w.filter(si=>Oe.includes(si.value)),defaultValue:Nr.jsonData.authType,onChange:si=>{m.onUpdateDatasourceJsonDataOptionSelect(hr,"authType")(si)},menuShouldPortal:!0})),Nr.jsonData.authType==="credentials"&&d.default.createElement(s.Field,{label:"Credentials Profile Name",description:"Credentials profile name, as specified in ~/.aws/credentials, leave blank for default.",htmlFor:"credentialsProfileName"},d.default.createElement(s.Input,{id:"credentialsProfileName",placeholder:"default",value:Nr.jsonData.profile,onChange:m.onUpdateDatasourceJsonDataOption(hr,"profile")})),Nr.jsonData.authType==="keys"&&d.default.createElement(d.default.Fragment,null,d.default.createElement(s.Field,{label:"Access Key ID",htmlFor:"accessKeyId"},(kr=hr.options.secureJsonFields)!=null&&kr.accessKey?d.default.createElement(s.ButtonGroup,null,d.default.createElement(s.Input,{disabled:!0,placeholder:"Configured",id:"accessKeyId"}),d.default.createElement(s.ToolbarButton,{icon:"edit",tooltip:"Edit Access Key ID",type:"button",onClick:m.onUpdateDatasourceResetOption(hr,"accessKey")})):d.default.createElement(s.Input,{id:"accessKeyId",value:(Ot=(Ve=Nr.secureJsonData)==null?void 0:Ve.accessKey)!=null?Ot:"",onChange:m.onUpdateDatasourceSecureJsonDataOption(hr,"accessKey")})),d.default.createElement(s.Field,{label:"Secret Access Key",htmlFor:"secretKey"},(wn=hr.options.secureJsonFields)!=null&&wn.secretKey?d.default.createElement(s.ButtonGroup,null,d.default.createElement(s.Input,{disabled:!0,placeholder:"Configured"}),d.default.createElement(s.ToolbarButton,{id:"secretKey",icon:"edit",type:"button",tooltip:"Edit Secret Access Key",onClick:m.onUpdateDatasourceResetOption(hr,"secretKey")})):d.default.createElement(s.Input,{id:"secretKey",value:(Yt=(Wt=Nr.secureJsonData)==null?void 0:Wt.secretKey)!=null?Yt:"",onChange:m.onUpdateDatasourceSecureJsonDataOption(hr,"secretKey")})))),d.default.createElement(f.ConfigSubSection,{title:"Assume Role"},Nr.jsonData.authType===y.GrafanaAssumeRole&&d.default.createElement("div",{className:Sr},d.default.createElement(s.Collapse,{label:"How to create an IAM role for grafana to assume:",collapsible:!0,isOpen:nr,onToggle:()=>Ir(!nr)},d.default.createElement("ol",null,d.default.createElement("li",null,d.default.createElement("p",null,"1. Create a new IAM role in the AWS console, and select ",d.default.createElement("code",null,"Another AWS account")," as the"," ",d.default.createElement("code",null,"Trusted entity"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"2. Enter the account ID of the Grafana account that has permission to assume this role:",d.default.createElement("code",null," 008923505280 ")," and check the ",d.default.createElement("code",null,"Require external ID")," box.")),d.default.createElement("li",null,d.default.createElement("p",null,"3. Enter the following external ID:"," ",d.default.createElement("code",null,hr.externalId||"External Id is currently unavailable")," and click"," ",d.default.createElement("code",null,"Next"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"4. Add any required permissions you would like Grafana to be able to access on your behalf. For more details on our permissions please"," ",d.default.createElement("a",{href:"https://grafana.com/docs/grafana/latest/datasources/aws-cloudwatch/",target:"_blank",rel:"noreferrer"},"read through our documentation"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"5. Give the role a name and description, and click ",d.default.createElement("code",null,"Create role"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"6. Copy the ARN of the role you just created and paste it into the ",d.default.createElement("code",null,"Assume Role ARN")," ","field below."))))),fi&&d.default.createElement(d.default.Fragment,null,d.default.createElement(s.Field,{htmlFor:"assumeRoleArn",label:"Assume Role ARN",description:`Optional. Specifying the ARN of a role will ensure that the selected authentication provider is used to assume the role rather than the credentials directly.`},d.default.createElement(s.Input,{id:"assumeRoleArn",placeholder:"arn:aws:iam:*",value:Nr.jsonData.assumeRoleArn||"",onChange:m.onUpdateDatasourceJsonDataOption(hr,"assumeRoleArn")})),Nr.jsonData.authType!==y.GrafanaAssumeRole&&d.default.createElement(s.Field,{htmlFor:"externalId",label:"External ID",description:"If you are assuming a role in another account, that has been created with an external ID, specify the external ID here."},d.default.createElement(s.Input,{id:"externalId",placeholder:"External ID",value:Nr.jsonData.externalId||"",onChange:m.onUpdateDatasourceJsonDataOption(hr,"externalId")})))),d.default.createElement(f.ConfigSubSection,{title:"Additional Settings"},!hr.skipEndpoint&&Nr.jsonData.authType!==y.GrafanaAssumeRole&&d.default.createElement(s.Field,{label:"Endpoint",description:"Optionally, specify a custom endpoint for the service",htmlFor:"endpoint"},d.default.createElement(s.Input,{id:"endpoint",placeholder:(zn=hr.defaultEndpoint)!=null?zn:"https://{service}.{region}.amazonaws.com",value:Nr.jsonData.endpoint||"",onChange:m.onUpdateDatasourceJsonDataOption(hr,"endpoint")})),d.default.createElement(s.Field,{label:"Default Region",description:"Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.",htmlFor:"defaultRegion"},d.default.createElement(s.Select,{id:"defaultRegion","aria-label":"Default Region",value:Qn.find(si=>si.value===Nr.jsonData.defaultRegion),options:Qn,defaultValue:Nr.jsonData.defaultRegion,allowCustomValue:!0,onChange:m.onUpdateDatasourceJsonDataOptionSelect(hr,"defaultRegion"),formatCreateLabel:si=>`Use region: ${si}`,menuShouldPortal:!0}))),hr.children))};var _i=Object.defineProperty,Sn=Object.defineProperties,ir=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,tn=(jt,Pn,nr)=>Pn in jt?_i(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,Vn=(jt,Pn)=>{for(var nr in Pn||(Pn={}))fn.call(Pn,nr)&&tn(jt,nr,Pn[nr]);if(mt)for(var nr of mt(Pn))gt.call(Pn,nr)&&tn(jt,nr,Pn[nr]);return jt},Ur=(jt,Pn)=>Sn(jt,ir(Pn));const $r=28,Pr=["cloudwatch","grafana-athena-datasource"],zr=jt=>({value:jt,label:jt}),gi=jt=>typeof jt=="string"&&w.some(Pn=>Pn.value===jt),$i=jt=>{var Pn,nr,Ir,fi,Ti,Oe,pn,Qn;const[Sr,hr]=l.useState(!1),[kr,Ve]=l.useState((jt.standardRegions||b).map(zr)),{loadRegions:Ot,onOptionsChange:wn,skipHeader:Wt=!1,skipEndpoint:Yt=!1}=jt,{labelWidth:zn=$r,options:Nr,inExperimentalAuthComponent:si}=jt;let Ki=Nr.jsonData.profile;Ki===void 0&&(Ki=Nr.database);const Bi=u.config.featureToggles.awsDatasourcesTempCredentials&&Pr.includes(Nr.type),Xi=(Pn=u.config.awsAssumeRoleEnabled)!=null?Pn:!0,vo=l.useMemo(()=>u.config.awsAllowedAuthProviders.filter(Rs=>Rs===y.GrafanaAssumeRole?Bi:!0).filter(gi),[Bi]),ea=w.find(Rs=>Rs.value===Nr.jsonData.authType);l.useEffect(()=>{!ea&&vo.length&&wn(Ur(Vn({},Nr),{jsonData:Ur(Vn({},Nr.jsonData),{authType:vo[0]})}))},[ea,Nr,wn,vo]),l.useEffect(()=>{Ot&&Ot().then(Rs=>Ve(Rs.map(zr)))},[Ot]);const la=si?"width-20":"width-30",ss=s.useStyles2(eo);return d.default.createElement(d.default.Fragment,null,jt.newFormStylingEnabled?d.default.createElement(Cr,Vn({currentProvider:ea,awsAllowedAuthProviders:vo,isARNInstructionsOpen:Sr,setIsARNInstructionsOpen:hr,awsAssumeRoleEnabled:Xi,regions:kr,assumeRoleInstructionsStyle:ss.assumeRoleInstructions},jt)):d.default.createElement(s.FieldSet,{label:Wt?"":"Connection Details","data-testid":"connection-config"},d.default.createElement(s.InlineField,{label:"Authentication Provider",labelWidth:zn,tooltip:"Specify which AWS credentials chain to use."},d.default.createElement(s.Select,{"aria-label":"Authentication Provider",className:la,value:ea,options:w.filter(Rs=>vo.includes(Rs.value)),defaultValue:Nr.jsonData.authType,onChange:Rs=>{m.onUpdateDatasourceJsonDataOptionSelect(jt,"authType")(Rs)},menuShouldPortal:!0})),Nr.jsonData.authType==="credentials"&&d.default.createElement(s.InlineField,{label:"Credentials Profile Name",labelWidth:zn,tooltip:"Credentials profile name, as specified in ~/.aws/credentials, leave blank for default."},d.default.createElement(s.Input,{"aria-label":"Credentials Profile Name",className:la,placeholder:"default",value:Ki,onChange:m.onUpdateDatasourceJsonDataOption(jt,"profile")})),Nr.jsonData.authType==="keys"&&d.default.createElement(d.default.Fragment,null,d.default.createElement(s.InlineField,{label:"Access Key ID",labelWidth:zn},(nr=jt.options.secureJsonFields)!=null&&nr.accessKey?d.default.createElement(s.ButtonGroup,{className:la},d.default.createElement(s.Input,{disabled:!0,placeholder:"Configured"}),d.default.createElement(s.ToolbarButton,{icon:"edit",tooltip:"Edit Access Key ID",type:"button",onClick:m.onUpdateDatasourceResetOption(jt,"accessKey")})):d.default.createElement(s.Input,{"aria-label":"Access Key ID",className:la,value:(fi=(Ir=Nr.secureJsonData)==null?void 0:Ir.accessKey)!=null?fi:"",onChange:m.onUpdateDatasourceSecureJsonDataOption(jt,"accessKey")})),d.default.createElement(s.InlineField,{label:"Secret Access Key",labelWidth:zn},(Ti=jt.options.secureJsonFields)!=null&&Ti.secretKey?d.default.createElement(s.ButtonGroup,{className:la},d.default.createElement(s.Input,{disabled:!0,placeholder:"Configured"}),d.default.createElement(s.ToolbarButton,{icon:"edit",type:"button",tooltip:"Edit Secret Access Key",onClick:m.onUpdateDatasourceResetOption(jt,"secretKey")})):d.default.createElement(s.Input,{"aria-label":"Secret Access Key",className:la,value:(pn=(Oe=Nr.secureJsonData)==null?void 0:Oe.secretKey)!=null?pn:"",onChange:m.onUpdateDatasourceSecureJsonDataOption(jt,"secretKey")}))),Nr.jsonData.authType===y.GrafanaAssumeRole&&d.default.createElement("div",{className:ss.assumeRoleInstructions},d.default.createElement(s.Collapse,{label:"How to create an IAM role for grafana to assume:",collapsible:!0,isOpen:Sr,onToggle:()=>hr(!Sr)},d.default.createElement("ol",null,d.default.createElement("li",null,d.default.createElement("p",null,"1. Create a new IAM role in the AWS console, and select ",d.default.createElement("code",null,"Another AWS account")," as the"," ",d.default.createElement("code",null,"Trusted entity"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"2. Enter the account ID of the Grafana account that has permission to assume this role:",d.default.createElement("code",null," 008923505280 ")," and check the ",d.default.createElement("code",null,"Require external ID")," box.")),d.default.createElement("li",null,d.default.createElement("p",null,"3. Enter the following external ID:"," ",d.default.createElement("code",null,jt.externalId||"External Id is currently unavailable")," and click"," ",d.default.createElement("code",null,"Next"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"4. Add any required permissions you would like Grafana to be able to access on your behalf. For more details on our permissions please"," ",d.default.createElement("a",{href:"https://grafana.com/docs/grafana/latest/datasources/aws-cloudwatch/",target:"_blank",rel:"noreferrer"},"read through our documentation"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"5. Give the role a name and description, and click ",d.default.createElement("code",null,"Create role"),".")),d.default.createElement("li",null,d.default.createElement("p",null,"6. Copy the ARN of the role you just created and paste it into the ",d.default.createElement("code",null,"Assume Role ARN")," ","field below."))))),Xi&&d.default.createElement(d.default.Fragment,null,d.default.createElement(s.InlineField,{label:"Assume Role ARN",labelWidth:zn,tooltip:"Optionally, specify the ARN of a role to assume. Specifying a role here will ensure that the selected authentication provider is used to assume the specified role rather than using the credentials directly. Leave blank if you don't need to assume a role at all"},d.default.createElement(s.Input,{"aria-label":"Assume Role ARN",className:la,placeholder:"arn:aws:iam:*",value:Nr.jsonData.assumeRoleArn||"",onChange:m.onUpdateDatasourceJsonDataOption(jt,"assumeRoleArn")})),Nr.jsonData.authType!==y.GrafanaAssumeRole&&d.default.createElement(s.InlineField,{label:"External ID",labelWidth:zn,tooltip:"If you are assuming a role in another account, that has been created with an external ID, specify the external ID here."},d.default.createElement(s.Input,{"aria-label":"External ID",className:la,placeholder:"External ID",value:Nr.jsonData.externalId||"",onChange:m.onUpdateDatasourceJsonDataOption(jt,"externalId")}))),!Yt&&Nr.jsonData.authType!==y.GrafanaAssumeRole&&d.default.createElement(s.InlineField,{label:"Endpoint",labelWidth:zn,tooltip:"Optionally, specify a custom endpoint for the service"},d.default.createElement(s.Input,{"aria-label":"Endpoint",className:la,placeholder:(Qn=jt.defaultEndpoint)!=null?Qn:"https://{service}.{region}.amazonaws.com",value:Nr.jsonData.endpoint||"",onChange:m.onUpdateDatasourceJsonDataOption(jt,"endpoint")})),d.default.createElement(s.InlineField,{label:"Default Region",labelWidth:zn,tooltip:"Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region."},d.default.createElement(s.Select,{"aria-label":"Default Region",className:la,value:kr.find(Rs=>Rs.value===Nr.jsonData.defaultRegion),options:kr,defaultValue:Nr.jsonData.defaultRegion,allowCustomValue:!0,onChange:m.onUpdateDatasourceJsonDataOptionSelect(jt,"defaultRegion"),formatCreateLabel:Rs=>`Use region: ${Rs}`,menuShouldPortal:!0})),jt.children))};function eo(){return{assumeRoleInstructions:qn({maxWidth:"715px"})}}function ki(){const jt=s.useTheme2();return d.default.createElement("div",{style:{borderTop:`1px solid ${jt.colors.border.weak}`,margin:jt.spacing(2,0),width:"100%"}})}var so=Object.defineProperty,Ho=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,Vi=(jt,Pn,nr)=>Pn in jt?so(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,Ro=(jt,Pn)=>{for(var nr in Pn||(Pn={}))gr.call(Pn,nr)&&Vi(jt,nr,Pn[nr]);if(So)for(var nr of So(Pn))di.call(Pn,nr)&&Vi(jt,nr,Pn[nr]);return jt},na=(jt,Pn)=>Ho(jt,ra(Pn));const ta=jt=>{var Pn,nr,Ir,fi;const{onOptionsChange:Ti,options:Oe}=jt,pn={onOptionsChange:Qn=>{var Sr,hr,kr,Ve;const Ot=na(Ro({},Oe),{jsonData:na(Ro({},Oe.jsonData),{sigV4AuthType:Qn.jsonData.authType,sigV4Profile:Qn.jsonData.profile,sigV4AssumeRoleArn:Qn.jsonData.assumeRoleArn,sigV4ExternalId:Qn.jsonData.externalId,sigV4Region:Qn.jsonData.defaultRegion,sigV4Endpoint:Qn.jsonData.endpoint}),secureJsonFields:{sigV4AccessKey:(Sr=Qn.secureJsonFields)==null?void 0:Sr.accessKey,sigV4SecretKey:(hr=Qn.secureJsonFields)==null?void 0:hr.secretKey},secureJsonData:{sigV4AccessKey:(kr=Qn.secureJsonData)==null?void 0:kr.accessKey,sigV4SecretKey:(Ve=Qn.secureJsonData)==null?void 0:Ve.secretKey}});Ti(Ot)},options:na(Ro({},Oe),{jsonData:na(Ro({},Oe.jsonData),{authType:Oe.jsonData.sigV4AuthType,profile:Oe.jsonData.sigV4Profile,assumeRoleArn:Oe.jsonData.sigV4AssumeRoleArn,externalId:Oe.jsonData.sigV4ExternalId,defaultRegion:Oe.jsonData.sigV4Region,endpoint:Oe.jsonData.sigV4Endpoint}),secureJsonFields:{accessKey:(Pn=Oe.secureJsonFields)==null?void 0:Pn.sigV4AccessKey,secretKey:(nr=Oe.secureJsonFields)==null?void 0:nr.sigV4SecretKey},secureJsonData:{accessKey:(Ir=Oe.secureJsonData)==null?void 0:Ir.sigV4AccessKey,secretKey:(fi=Oe.secureJsonData)==null?void 0:fi.sigV4SecretKey}}),inExperimentalAuthComponent:jt.inExperimentalAuthComponent};return d.default.createElement(d.default.Fragment,null,d.default.createElement("div",{className:"gf-form"},d.default.createElement("h6",null,"SigV4 Auth Details")),d.default.createElement($i,na(Ro({},pn),{skipHeader:!0,skipEndpoint:!0})))},aa="__default";var vi=Object.defineProperty,to=Object.defineProperties,$o=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,as=(jt,Pn,nr)=>Pn in jt?vi(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,rn=(jt,Pn)=>{for(var nr in Pn||(Pn={}))hs.call(Pn,nr)&&as(jt,nr,Pn[nr]);if(ja)for(var nr of ja(Pn))ro.call(Pn,nr)&&as(jt,nr,Pn[nr]);return jt},Dr=(jt,Pn)=>to(jt,$o(Pn));function Lr(jt){const Pn=jt.dependencies,nr=jt.onChange,Ir=l.useRef(jt.dependencies),fi=l.useRef(!1),Ti=l.useRef(jt.value||jt.default||null),[Oe,pn]=l.useState(Ti.current?[Ti.current]:[]),[Qn,Sr]=l.useState(!1),hr=l.useMemo(()=>{const Yt=[{label:`default (${jt.default})`,value:aa,description:"Default value set in the data source"}];return jt.value&&jt.value!==aa&&Yt.push({label:jt.value,value:jt.value}),Yt},[jt.default,jt.value]),[kr,Ve]=l.useState(jt.default?hr:[]);l.useEffect(()=>{jt.resources!==void 0&&pn(jt.resources)},[jt.resources]),l.useEffect(()=>{const Yt=jt.default?hr:[];Oe.length?(Oe.forEach(zn=>{const Nr=typeof zn=="string"?zn:zn.value;Yt.find(si=>si.value===Nr)||(typeof zn=="string"?Yt.push({label:zn,value:zn}):Yt.push(zn))}),Ve(Yt)):Ve([])},[Oe,hr,jt.default]),l.useEffect(()=>{p.isEqual(Pn,Ir.current)||(fi.current=!1,Ti.current=null,Ir.current=Pn,nr(null))},[Pn,nr]);const Ot=async()=>{var Yt;if(!fi.current){jt.saveOptions&&await jt.saveOptions();try{const zn=await((Yt=jt.fetch)==null?void 0:Yt.call(jt))||[];pn(zn)}finally{fi.current=!0}}},wn=Yt=>{nr(Yt),Yt.value&&(Ti.current=Yt.value)},Wt=async()=>{Sr(!0);try{await Ot()}finally{Sr(!1)}};return d.default.createElement(d.default.Fragment,null,jt.newFormStylingEnabled?d.default.createElement(s.Select,Dr(rn({},jt),{id:jt.id,"aria-label":jt.label,options:kr,onChange:wn,isLoading:Qn,className:jt.className||"min-width-6",onOpenMenu:()=>jt.fetch&&Wt(),menuShouldPortal:!0})):d.default.createElement(s.InlineField,{label:jt.label,labelWidth:jt.labelWidth,tooltip:jt.tooltip,hidden:jt.hidden,htmlFor:jt.id},d.default.createElement("div",{"data-testid":jt["data-testid"],title:jt.title},d.default.createElement(s.Select,Dr(rn({},jt),{id:jt.id,"aria-label":jt.label,options:kr,onChange:wn,isLoading:Qn,className:jt.className||"min-width-6",onOpenMenu:()=>jt.fetch&&Wt(),menuShouldPortal:!0})))))}var li=Object.defineProperty,Zi=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,Go=(jt,Pn,nr)=>Pn in jt?li(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,Ko=(jt,Pn)=>{for(var nr in Pn||(Pn={}))Di.call(Pn,nr)&&Go(jt,nr,Pn[nr]);if(Zi)for(var nr of Zi(Pn))wo.call(Pn,nr)&&Go(jt,nr,Pn[nr]);return jt};function Ie(jt){var Pn,nr,Ir;const{jsonData:fi}=jt.options,Ti={title:fi.defaultRegion?"":"select a default region",labelWidth:(Pn=jt.labelWidth)!=null?Pn:$r,className:"width-30"},Oe=[jt.options.jsonData.assumeRoleArn,jt.options.jsonData.authType,jt.options.jsonData.defaultRegion,jt.options.jsonData.endpoint,jt.options.jsonData.externalId,jt.options.jsonData.profile,(nr=jt.options.secureJsonData)==null?void 0:nr.accessKey,(Ir=jt.options.secureJsonData)==null?void 0:Ir.secretKey].concat(jt.dependencies);return d.default.createElement(Lr,Ko({id:jt.id,newFormStylingEnabled:jt.newFormStylingEnabled,label:jt.label,"data-testid":jt["data-testid"],onChange:jt.onChange,fetch:jt.fetch,value:jt.value,saveOptions:jt.saveOptions,dependencies:Oe,hidden:jt.hidden,disabled:jt.disabled||!fi.defaultRegion,allowCustomValue:jt.allowCustomValue,autoFocus:jt.autoFocus,backspaceRemovesValue:jt.backspaceRemovesValue,invalid:jt.invalid,isClearable:jt.isClearable,isMulti:jt.isMulti,inputId:jt.inputId,showAllSelectedWhenOpen:jt.showAllSelectedWhenOpen,maxMenuHeight:jt.maxMenuHeight,minMenuHeight:jt.minMenuHeight,maxVisibleValues:jt.maxVisibleValues,menuPlacement:jt.menuPlacement,menuPosition:jt.menuPosition,noOptionsMessage:jt.noOptionsMessage,onBlur:jt.onBlur,onCreateOption:jt.onCreateOption,onInputChange:jt.onInputChange,placeholder:jt.placeholder,width:jt.width,isOptionDisabled:jt.isOptionDisabled},Ti))}function yt(jt){var Pn;return d.default.createElement(s.InlineField,{label:jt.label,labelWidth:(Pn=jt.labelWidth)!=null?Pn:$r,tooltip:jt.tooltip,hidden:jt.hidden,disabled:jt.disabled},d.default.createElement(s.Input,{"data-testid":jt["data-testid"],className:"width-30",value:jt.value,onChange:jt.onChange,placeholder:jt.placeholder,disabled:jt.disabled}))}var on=Object.defineProperty,_n=Object.defineProperties,er=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,Ui=(jt,Pn,nr)=>Pn in jt?on(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,Nn=(jt,Pn)=>{for(var nr in Pn||(Pn={}))Er.call(Pn,nr)&&Ui(jt,nr,Pn[nr]);if(or)for(var nr of or(Pn))Mi.call(Pn,nr)&&Ui(jt,nr,Pn[nr]);return jt},cr=(jt,Pn)=>_n(jt,er(Pn));function ni(jt){const{getSuggestions:Pn,query:nr}=jt,{rawSQL:Ir}=p.defaults(jt.query,{rawSQL:""}),fi=Oe=>{const pn=cr(Nn({},jt.query),{rawSQL:Oe});jt.onChange(pn),jt.onRunQuery()},Ti=l.useRef([]);return l.useEffect(()=>{Ti.current=Pn(nr)},[Pn,nr]),d.default.createElement(s.CodeEditor,Nn({language:jt.language,value:Ir,onBlur:fi,showMiniMap:!1,showLineNumbers:!0,getSuggestions:()=>Ti.current,height:"240px"},jt.editorProps))}function Xr({query:jt,showAsyncQueryButtons:Pn,extraHeaderElementLeft:nr,extraHeaderElementRight:Ir,enableRunButton:fi,onRunQuery:Ti,data:Oe,cancel:pn}){return d.default.createElement(f.EditorHeader,null,nr,d.default.createElement(f.FlexItem,{grow:1}),Pn?d.default.createElement(v.RunQueryButtons,{onRunQuery:Ti,enableRun:fi,query:jt,onCancelQuery:pn,state:Oe?.state}):d.default.createElement(s.Button,{variant:fi?"primary":"secondary",size:"sm",onClick:Ti,icon:Oe?.state===m.LoadingState.Loading?"fa fa-spinner":void 0,disabled:Oe?.state===m.LoadingState.Loading||!fi},"Run query"),Ir)}var Jr=Object.defineProperty,Qi=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,No=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,Yn=(jt,Pn,nr)=>Pn in jt?Jr(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,Z=(jt,Pn)=>{for(var nr in Pn||(Pn={}))Jo.call(Pn,nr)&&Yn(jt,nr,Pn[nr]);if(No)for(var nr of No(Pn))br.call(Pn,nr)&&Yn(jt,nr,Pn[nr]);return jt},se=(jt,Pn)=>Qi(jt,Fo(Pn));function G(jt){var Pn;const nr=Ir=>{var fi;jt.onChange(se(Z({},jt.query),{format:Ir.value||0})),(fi=jt.onRunQuery)==null||fi.call(jt)};return d.default.createElement(d.default.Fragment,null,jt.newFormStylingEnabled?d.default.createElement(s.Select,{"aria-label":"Format data frames as",id:(Pn=jt.id)!=null?Pn:"formatAs",options:jt.options,value:jt.query.format,onChange:nr,menuShouldPortal:!0}):d.default.createElement(s.InlineField,{label:"Format as",labelWidth:11},d.default.createElement(s.Select,{"aria-label":"Format as",options:jt.options,value:jt.query.format,onChange:nr,className:"width-12",menuShouldPortal:!0})))}var B=Object.defineProperty,Pe=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,ut=(jt,Pn,nr)=>Pn in jt?B(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,zt=(jt,Pn)=>{for(var nr in Pn||(Pn={}))Pt.call(Pn,nr)&&ut(jt,nr,Pn[nr]);if(Lt)for(var nr of Lt(Pn))$e.call(Pn,nr)&&ut(jt,nr,Pn[nr]);return jt},Ht=(jt,Pn)=>Pe(jt,dt(Pn)),Fn=(jt=>(jt[jt.Previous=0]="Previous",jt[jt.Null=1]="Null",jt[jt.Value=2]="Value",jt))(Fn||{});const Cn=[{label:"Previous Value",value:0},{label:"NULL",value:1},{label:"Value",value:2}];function tr(jt){var Pn,nr,Ir,fi,Ti,Oe;return d.default.createElement(d.default.Fragment,null,jt.newFormStylingEnabled?d.default.createElement(d.default.Fragment,null,d.default.createElement(f.EditorField,{label:"Fill with",tooltip:"value to fill missing points",htmlFor:"fillWith"},d.default.createElement(s.Select,{id:"fillWith","aria-label":"Fill with","data-testid":"table-fill-with-select",options:Cn,value:(nr=(Pn=jt.query.fillMode)==null?void 0:Pn.mode)!=null?nr:0,onChange:({value:pn})=>{var Qn;jt.onChange(Ht(zt({},jt.query),{fillMode:Ht(zt({},jt.query.fillMode),{mode:pn})})),(Qn=jt.onRunQuery)==null||Qn.call(jt)},menuShouldPortal:!0})),((Ir=jt.query.fillMode)==null?void 0:Ir.mode)===2&&d.default.createElement(f.EditorField,{label:"Value",htmlFor:"valueToFill",width:6},d.default.createElement(s.Input,{id:"valueToFill","aria-label":"Value",type:"number",value:jt.query.fillMode.value,onChange:({currentTarget:pn})=>jt.onChange(Ht(zt({},jt.query),{fillMode:{mode:2,value:pn.valueAsNumber}})),onBlur:()=>{var pn;return(pn=jt.onRunQuery)==null?void 0:pn.call(jt)}}))):d.default.createElement(d.default.Fragment,null,d.default.createElement(s.InlineField,{label:"Fill value",tooltip:"value to fill missing points"},d.default.createElement(s.Select,{"aria-label":"Fill value",options:Cn,value:(Ti=(fi=jt.query.fillMode)==null?void 0:fi.mode)!=null?Ti:0,onChange:({value:pn})=>{var Qn;jt.onChange(Ht(zt({},jt.query),{fillMode:Ht(zt({},jt.query.fillMode),{mode:pn})})),(Qn=jt.onRunQuery)==null||Qn.call(jt)},className:"width-12",menuShouldPortal:!0})),((Oe=jt.query.fillMode)==null?void 0:Oe.mode)===2&&d.default.createElement(s.InlineField,{label:"Value",labelWidth:11},d.default.createElement(s.Input,{type:"number","aria-label":"Value",value:jt.query.fillMode.value,onChange:({currentTarget:pn})=>jt.onChange(Ht(zt({},jt.query),{fillMode:{mode:2,value:pn.valueAsNumber}})),onBlur:()=>{var pn;return(pn=jt.onRunQuery)==null?void 0:pn.call(jt)}}))))}var Jn=Object.defineProperty,ei=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,zi=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable,Eo=(jt,Pn,nr)=>Pn in jt?Jn(jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:nr}):jt[Pn]=nr,Yo=(jt,Pn)=>{for(var nr in Pn||(Pn={}))co.call(Pn,nr)&&Eo(jt,nr,Pn[nr]);if(zi)for(var nr of zi(Pn))Xo.call(Pn,nr)&&Eo(jt,nr,Pn[nr]);return jt},Xn=(jt,Pn)=>ei(jt,Ci(Pn));function fr(jt){return!!jt.rawSQL}function mr(jt,Pn,nr){const Ir=nr();return Xn(Yo({},jt),{rawSQL:Ir.replace(jt.rawSQL,Pn,yr)})}function yr(jt){return typeof jt=="string"||typeof jt=="number"?jt:jt.map(nr=>Rr(nr)).join(",")}function Rr(jt){return"'"+String(jt).replace(/'/g,"''")+"'"}const ai=(jt,Pn)=>{const nr=jt(),Ir=[];return nr.getVariables().forEach(fi=>{const Ti="$"+fi.name;let Oe=nr.replace(Ti);Oe===Ti&&(Oe=""),Ir.push({label:Ti,kind:s.CodeEditorSuggestionItemKind.Text,detail:`(Template Variable) ${Oe}`})}),Pn.concat(Ir)};i=y,i=Ie,g.NN=$i,i=$r,i=ki,i=Fn,i=tr,i=G,i=yt,i=ni,i=Xr,i=Lr,g._r=ta,i=ai,i=mr,i=w,i=fr,i=b},54404:(J,g,t)=>{"use strict";t.r(g),t.d(g,{AccessoryButton:()=>gt,AdvancedHttpSettings:()=>Ns,Auth:()=>za,AuthMethod:()=>Us,CompletionItemInsertTextRule:()=>re,CompletionItemKind:()=>oe,CompletionItemPriority:()=>ce,ConfigSection:()=>Ir,ConfigSubSection:()=>wn,ConnectionSettings:()=>il,DataSourceDescription:()=>zt,EditorField:()=>$o,EditorFieldGroup:()=>$i,EditorHeader:()=>eo,EditorList:()=>as,EditorMode:()=>H,EditorRow:()=>hs,EditorRows:()=>rn,EditorSwitch:()=>Ko,FlexItem:()=>yt,InlineSelect:()=>Qi,InputGroup:()=>br,LinkedToken:()=>ke,MacroType:()=>he,OperatorType:()=>W,SQLEditor:()=>Ln,SQLEditorTestUtils:()=>lo,Space:()=>so,Stack:()=>zr,StatementPosition:()=>fe,SuggestionKind:()=>ve,TokenType:()=>me,convertLegacyAuthProps:()=>$a,getStandardSQLCompletionProvider:()=>On,grafanaStandardSQLLanguage:()=>wt.language,grafanaStandardSQLLanguageConf:()=>wt.conf,llms:()=>l});var i={};t.r(i),t.d(i,{accumulateContent:()=>P,chatCompletions:()=>T,enabled:()=>ae,extractContent:()=>D,isContentMessage:()=>R,isDoneMessage:()=>M,streamChatCompletions:()=>A});var l={};t.r(l),t.d(l,{openai:()=>i});var s={};t.r(s),t.d(s,{multiLineFullQuery:()=>jr,multiLineFullQueryWithAggregation:()=>ui,multiLineMultipleColumns:()=>Kr,singleLineEmptyQuery:()=>bi,singleLineFullQuery:()=>pi,singleLineFullQueryWithAggregation:()=>yi,singleLineMultipleColumns:()=>Si,singleLineTwoQueries:()=>ri,singleLineTwoQueriesWithAggregation:()=>hi});var m=t(55004),u=t(17172),f=t(78731),p=t(34867),v=t(81485),h=t(16126),d=t(81160),b=t(29405),y=t(46662);const w="grafana-llm-app",S=`/api/plugins/${w}`,O="openai/v1/chat/completions";function R(Xt){return Xt.content!=null}function M(Xt){return Xt.done!==void 0}function D(){return(0,v.F)((0,h.p)(Xt=>R(Xt.choices[0].delta)),(0,d.T)(Xt=>Xt.choices[0].delta.content))}function P(){return(0,v.F)(D(),(0,b.S)((Xt,bn)=>Xt+bn,""))}async function T(Xt){return await(0,u.AI)().post("/api/plugins/grafana-llm-app/resources/openai/v1/chat/completions",Xt,{headers:{"Content-Type":"application/json"}})}function A(Xt){const bn={scope:m.qD.Plugin,namespace:w,path:O,data:Xt};return(0,f.oF)().getStream(bn).pipe((0,h.p)(Ii=>(0,m.Z7)(Ii))).pipe((0,y.v)(Ii=>!M(Ii.message.choices[0].delta)),(0,d.T)(Ii=>Ii.message))}let j=!1;const ae=async()=>{var Xt,bn;try{const Dn=await(0,u.AI)().get(`${S}/settings`,void 0,void 0,{showSuccessAlert:!1,showErrorAlert:!1});return Dn.enabled&&((bn=(Xt=Dn?.secureJsonFields)==null?void 0:Xt.openAIKey)!=null?bn:!1)}catch(Dn){return j||((0,p.MD)(String(Dn)),(0,p.MD)("Failed to check if OpenAI is enabled. This is expected if the Grafana LLM plugin is not installed, and the above error can be ignored."),j=!0),!1}};var _=t(32372),N=t(96540),W=(Xt=>(Xt[Xt.Comparison=0]="Comparison",Xt[Xt.Logical=1]="Logical",Xt))(W||{}),he=(Xt=>(Xt[Xt.Value=0]="Value",Xt[Xt.Filter=1]="Filter",Xt[Xt.Group=2]="Group",Xt[Xt.Column=3]="Column",Xt[Xt.Table=4]="Table",Xt))(he||{}),me=(Xt=>(Xt.Parenthesis="delimiter.parenthesis.sql",Xt.Whitespace="white.sql",Xt.Keyword="keyword.sql",Xt.Delimiter="delimiter.sql",Xt.Operator="operator.sql",Xt.Identifier="identifier.sql",Xt.IdentifierQuote="identifier.quote.sql",Xt.Type="type.sql",Xt.Function="predefined.sql",Xt.Number="number.sql",Xt.String="string.sql",Xt.Variable="variable.sql",Xt))(me||{}),fe=(Xt=>(Xt.Unknown="unknown",Xt.SelectKeyword="selectKeyword",Xt.WithKeyword="withKeyword",Xt.AfterSelectKeyword="afterSelectKeyword",Xt.AfterSelectArguments="afterSelectArguments",Xt.AfterSelectFuncFirstArgument="afterSelectFuncFirstArgument",Xt.SelectAlias="selectAlias",Xt.AfterFromKeyword="afterFromKeyword",Xt.AfterTable="afterTable",Xt.SchemaFuncFirstArgument="schemaFuncFirstArgument",Xt.SchemaFuncExtraArgument="schemaFuncExtraArgument",Xt.FromKeyword="fromKeyword",Xt.AfterFrom="afterFrom",Xt.WhereKeyword="whereKeyword",Xt.WhereComparisonOperator="whereComparisonOperator",Xt.WhereValue="whereValue",Xt.AfterWhereFunctionArgument="afterWhereFunctionArgument",Xt.AfterGroupByFunctionArgument="afterGroupByFunctionArgument",Xt.AfterWhereValue="afterWhereValue",Xt.AfterGroupByKeywords="afterGroupByKeywords",Xt.AfterGroupBy="afterGroupBy",Xt.AfterOrderByKeywords="afterOrderByKeywords",Xt.AfterOrderByFunction="afterOrderByFunction",Xt.AfterOrderByDirection="afterOrderByDirection",Xt.AfterIsOperator="afterIsOperator",Xt.AfterIsNotOperator="afterIsNotOperator",Xt.AfterSchema="afterSchema",Xt))(fe||{}),ve=(Xt=>(Xt.Schemas="schemas",Xt.Tables="tables",Xt.Columns="columns",Xt.SelectKeyword="selectKeyword",Xt.WithKeyword="withKeyword",Xt.FunctionsWithArguments="functionsWithArguments",Xt.FromKeyword="fromKeyword",Xt.WhereKeyword="whereKeyword",Xt.GroupByKeywords="groupByKeywords",Xt.OrderByKeywords="orderByKeywords",Xt.FunctionsWithoutArguments="functionsWithoutArguments",Xt.LimitKeyword="limitKeyword",Xt.SortOrderDirectionKeyword="sortOrderDirectionKeyword",Xt.ComparisonOperators="comparisonOperators",Xt.LogicalOperators="logicalOperators",Xt.SelectMacro="selectMacro",Xt.TableMacro="tableMacro",Xt.FilterMacro="filterMacro",Xt.GroupMacro="groupMacro",Xt.BoolValues="boolValues",Xt.NullValue="nullValue",Xt.NotKeyword="notKeyword",Xt.TemplateVariables="templateVariables",Xt.StarWildCard="starWildCard",Xt))(ve||{}),ce=(Xt=>(Xt.High="a",Xt.MediumHigh="d",Xt.Medium="g",Xt.MediumLow="k",Xt.Low="q",Xt))(ce||{}),oe=(Xt=>(Xt[Xt.Method=0]="Method",Xt[Xt.Function=1]="Function",Xt[Xt.Constructor=2]="Constructor",Xt[Xt.Field=3]="Field",Xt[Xt.Variable=4]="Variable",Xt[Xt.Class=5]="Class",Xt[Xt.Struct=6]="Struct",Xt[Xt.Interface=7]="Interface",Xt[Xt.Module=8]="Module",Xt[Xt.Property=9]="Property",Xt[Xt.Event=10]="Event",Xt[Xt.Operator=11]="Operator",Xt[Xt.Unit=12]="Unit",Xt[Xt.Value=13]="Value",Xt[Xt.Constant=14]="Constant",Xt[Xt.Enum=15]="Enum",Xt[Xt.EnumMember=16]="EnumMember",Xt[Xt.Keyword=17]="Keyword",Xt[Xt.Text=18]="Text",Xt[Xt.Color=19]="Color",Xt[Xt.File=20]="File",Xt[Xt.Reference=21]="Reference",Xt[Xt.Customcolor=22]="Customcolor",Xt[Xt.Folder=23]="Folder",Xt[Xt.TypeParameter=24]="TypeParameter",Xt[Xt.User=25]="User",Xt[Xt.Issue=26]="Issue",Xt[Xt.Snippet=27]="Snippet",Xt))(oe||{}),re=(Xt=>(Xt[Xt.KeepWhitespace=1]="KeepWhitespace",Xt[Xt.InsertAsSnippet=4]="InsertAsSnippet",Xt))(re||{}),H=(Xt=>(Xt.Builder="builder",Xt.Code="code",Xt))(H||{});function V(Xt,bn){var Dn;const Ii=Xt?.getPreviousNonWhiteSpaceToken(),ko=Xt?.getPreviousKeyword(),fa=(Dn=Xt?.getPreviousNonWhiteSpaceToken())==null?void 0:Dn.is(me.Operator,"/"),Zo=bn.list(),Fa=[];for(const Ua of Zo)Ua.resolve(Xt,ko??null,Ii??null,!!fa)&&Fa.push(Ua.id);return Fa.length===0?[fe.Unknown]:Fa}var Q=Object.defineProperty,Te=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,pe=(Xt,bn,Dn)=>bn in Xt?Q(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,ye=(Xt,bn)=>{for(var Dn in bn||(bn={}))Re.call(bn,Dn)&&pe(Xt,Dn,bn[Dn]);if(Te)for(var Dn of Te(bn))ne.call(bn,Dn)&&pe(Xt,Dn,bn[Dn]);return Xt};const Se=(Xt,bn,Dn={})=>ye({label:Xt,insertText:Xt,kind:oe.Field,sortText:ce.Medium,range:bn},Dn);var Ae=Object.defineProperty,Ee=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Rt=(Xt,bn,Dn)=>bn in Xt?Ae(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,tt=(Xt,bn)=>{for(var Dn in bn||(bn={}))Tt.call(bn,Dn)&&Rt(Xt,Dn,bn[Dn]);if(nt)for(var Dn of nt(bn))pt.call(bn,Dn)&&Rt(Xt,Dn,bn[Dn]);return Xt},U=(Xt,bn)=>Ee(Xt,xe(bn));const F=async(Xt,bn,Dn,Ii,ko)=>{let fa=[];const Fa=bn?.isWhiteSpace()||bn?.isParenthesis()||bn?.isIdentifier()&&bn.value.endsWith(".")||!bn?.range?Xt.Range.fromPositions(Ii.position):bn?.range;for(const Ua of[...new Set(Dn)]){const ms=ko.getIfExists(Ua);if(ms){const Fs=await ms.suggestions(U(tt({},Ii),{range:Fa}),Xt);fa=[...fa,...Fs.map(ws=>Se(ws.label,Fa,tt({kind:ws.kind},ws)))]}}return Promise.resolve(fa)},Y=()=>[{id:fe.SelectKeyword,name:fe.SelectKeyword,kind:[ve.SelectKeyword]},{id:fe.WithKeyword,name:fe.WithKeyword,kind:[ve.WithKeyword]},{id:fe.AfterSelectKeyword,name:fe.AfterSelectKeyword,kind:[ve.StarWildCard,ve.FunctionsWithArguments,ve.Columns,ve.SelectMacro]},{id:fe.AfterSelectFuncFirstArgument,name:fe.AfterSelectFuncFirstArgument,kind:[ve.Columns]},{id:fe.AfterGroupByFunctionArgument,name:fe.AfterGroupByFunctionArgument,kind:[ve.Columns]},{id:fe.AfterWhereFunctionArgument,name:fe.AfterWhereFunctionArgument,kind:[ve.Columns]},{id:fe.AfterSelectArguments,name:fe.AfterSelectArguments,kind:[ve.Columns]},{id:fe.AfterFromKeyword,name:fe.AfterFromKeyword,kind:[ve.Schemas,ve.Tables,ve.TableMacro]},{id:fe.AfterSchema,name:fe.AfterSchema,kind:[ve.Tables,ve.TableMacro]},{id:fe.SelectAlias,name:fe.SelectAlias,kind:[ve.Columns,ve.FunctionsWithArguments]},{id:fe.FromKeyword,name:fe.FromKeyword,kind:[ve.FromKeyword]},{id:fe.AfterFrom,name:fe.AfterFrom,kind:[ve.WhereKeyword,ve.GroupByKeywords,ve.OrderByKeywords,ve.LimitKeyword]},{id:fe.AfterTable,name:fe.AfterTable,kind:[ve.WhereKeyword,ve.GroupByKeywords,ve.OrderByKeywords,ve.LimitKeyword]},{id:fe.WhereKeyword,name:fe.WhereKeyword,kind:[ve.Columns,ve.FilterMacro,ve.TemplateVariables]},{id:fe.WhereComparisonOperator,name:fe.WhereComparisonOperator,kind:[ve.ComparisonOperators]},{id:fe.WhereValue,name:fe.WhereValue,kind:[ve.FilterMacro,ve.TemplateVariables]},{id:fe.AfterWhereValue,name:fe.AfterWhereValue,kind:[ve.LogicalOperators,ve.GroupByKeywords,ve.OrderByKeywords,ve.LimitKeyword,ve.Columns,ve.TemplateVariables]},{id:fe.AfterGroupByKeywords,name:fe.AfterGroupByKeywords,kind:[ve.GroupMacro,ve.Columns]},{id:fe.AfterGroupBy,name:fe.AfterGroupBy,kind:[ve.OrderByKeywords,ve.LimitKeyword]},{id:fe.AfterOrderByKeywords,name:fe.AfterOrderByKeywords,kind:[ve.Columns]},{id:fe.AfterOrderByFunction,name:fe.AfterOrderByFunction,kind:[ve.SortOrderDirectionKeyword,ve.LimitKeyword]},{id:fe.AfterOrderByDirection,name:fe.AfterOrderByDirection,kind:[ve.LimitKeyword]},{id:fe.AfterIsOperator,name:fe.AfterOrderByDirection,kind:[ve.NotKeyword,ve.NullValue,ve.BoolValues]},{id:fe.AfterIsNotOperator,name:fe.AfterOrderByDirection,kind:[ve.NullValue,ve.BoolValues]}];function le(Xt,bn){let Dn=[];for(let Ii=0;Ii<Xt.length;Ii++){const ko=bn.getIfExists(Xt[Ii]);ko&&(Dn=Dn.concat(ko.kind))}return Dn}class ke{constructor(bn,Dn,Ii,ko,fa){this.type=bn,this.value=Dn,this.range=Ii,this.previous=ko,this.next=fa}isKeyword(){return this.type===me.Keyword}isWhiteSpace(){return this.type===me.Whitespace}isParenthesis(){return this.type===me.Parenthesis}isIdentifier(){return this.type===me.Identifier}isString(){return this.type===me.String}isNumber(){return this.type===me.Number}isDoubleQuotedString(){return this.type===me.Type}isVariable(){return this.type===me.Variable}isFunction(){return this.type===me.Function}isOperator(){return this.type===me.Operator}isTemplateVariable(){return this.type===me.Variable}is(bn,Dn){const Ii=this.type===bn;return Dn!==void 0?Ii&&Ye(bn,this,Dn):Ii}getPreviousNonWhiteSpaceToken(){let bn=this.previous;for(;bn!=null;){if(!bn.isWhiteSpace())return bn;bn=bn.previous}return null}getPreviousOfType(bn,Dn){let Ii=this.previous;for(;Ii!=null;){const ko=Ii.type===bn;if(Dn!==void 0?ko&&Ye(bn,Ii,Dn):ko)return Ii;Ii=Ii.previous}return null}getPreviousUntil(bn,Dn,Ii){let ko=[],fa=this.previous;for(;fa!=null;){if(Dn.some(Fa=>Fa===fa?.type)){fa=fa.previous;continue}const Zo=fa.type===bn;if(Ii!==void 0?Zo&&Ye(bn,fa,Ii):Zo)return ko;fa.isWhiteSpace()||ko.push(fa),fa=fa.previous}return ko}getNextUntil(bn,Dn,Ii){let ko=[],fa=this.next;for(;fa!=null;){if(Dn.some(Fa=>Fa===fa?.type)){fa=fa.next;continue}const Zo=fa.type===bn;if(Ii!==void 0?Zo&&Ye(bn,fa,Ii):Zo)return ko;fa.isWhiteSpace()||ko.push(fa),fa=fa.next}return ko}getPreviousKeyword(){let bn=this.previous;for(;bn!=null;){if(bn.isKeyword())return bn;bn=bn.previous}return null}getNextNonWhiteSpaceToken(){let bn=this.next;for(;bn!=null;){if(!bn.isWhiteSpace())return bn;bn=bn.next}return null}getNextOfType(bn,Dn){let Ii=this.next;for(;Ii!=null;){const ko=Ii.type===bn;if(Dn!==void 0?ko&&Ye(bn,Ii,Dn):ko)return Ii;Ii=Ii.next}return null}}function Ye(Xt,bn,Dn){return Xt===me.Keyword||Xt===me.Operator?bn.value.toLowerCase()===Dn.toString().toLowerCase():bn.value===Dn}function ft(Xt,bn,Dn,Ii="sql"){var ko;let fa=null,Zo=null;const Fa=Xt.editor.tokenize((ko=bn.getValue())!=null?ko:"",Ii);for(let Ua=0;Ua<Fa.length;Ua++){const ms=Fa[Ua];if(!ms.length&&Zo){const Fs={offset:0,type:me.Whitespace,language:Ii,_tokenBrand:void 0};ms.push(Fs)}for(let Fs=0;Fs<ms.length;Fs++){const ws=ms[Fs];let fu=ms.length>Fs+1?ms[Fs+1].offset+1:bn.getLineLength(Ua+1)+1;const wu={startLineNumber:Ua+1,startColumn:ws.offset===0?0:ws.offset+1,endLineNumber:Ua+1,endColumn:fu},Du=bn.getValueInRange(wu),zu=new ke(ws.type,Du,wu,Zo,null);Xt.Range.containsPosition(wu,Dn)&&(fa=zu),Zo&&(Zo.next=zu),Zo=zu}}return fa}var wt=t(98167);const Ut=Xt=>{var bn;return(bn=Xt?.getPreviousOfType(me.Keyword,wt.SELECT))!=null?bn:null},Ke=Xt=>{const bn=Ut(Xt);return bn?.getNextOfType(me.Keyword,wt.FROM)},it=Xt=>{var bn;const Dn=Ke(Xt),Ii=Dn?.getNextNonWhiteSpaceToken();return Ii?.isVariable()||Ii?.isKeyword()&&((bn=Ii.next)!=null&&bn.is(me.Parenthesis,"("))?null:Ii},At=Xt=>{const bn=Xt?.value.split(".");return bn?.length===1?{table:bn[0]}:bn?.length===2?{schema:bn[0],table:bn[1]}:null},et={id:"editor.action.triggerSuggest",title:""};var ee,I=new Uint8Array(16);function K(){if(!ee&&(ee=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ee))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ee(I)}const ue=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function De(Xt){return typeof Xt=="string"&&ue.test(Xt)}const He=De;for(var Fe=[],ze=0;ze<256;++ze)Fe.push((ze+256).toString(16).substr(1));function qe(Xt){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Dn=(Fe[Xt[bn+0]]+Fe[Xt[bn+1]]+Fe[Xt[bn+2]]+Fe[Xt[bn+3]]+"-"+Fe[Xt[bn+4]]+Fe[Xt[bn+5]]+"-"+Fe[Xt[bn+6]]+Fe[Xt[bn+7]]+"-"+Fe[Xt[bn+8]]+Fe[Xt[bn+9]]+"-"+Fe[Xt[bn+10]]+Fe[Xt[bn+11]]+Fe[Xt[bn+12]]+Fe[Xt[bn+13]]+Fe[Xt[bn+14]]+Fe[Xt[bn+15]]).toLowerCase();if(!He(Dn))throw TypeError("Stringified UUID is invalid");return Dn}const We=qe;function _t(Xt,bn,Dn){Xt=Xt||{};var Ii=Xt.random||(Xt.rng||K)();if(Ii[6]=Ii[6]&15|64,Ii[8]=Ii[8]&63|128,bn){Dn=Dn||0;for(var ko=0;ko<16;++ko)bn[Dn+ko]=Ii[ko];return bn}return We(Ii)}const ct=_t;var Ge=t(83077),st=t(72574);const Me=(Xt,bn,Dn)=>()=>[{id:ve.SelectKeyword,name:ve.SelectKeyword,suggestions:(Ii,ko)=>Promise.resolve([{label:"SELECT <column>",insertText:"SELECT $0",insertTextRules:re.InsertAsSnippet,kind:oe.Snippet,command:et,sortText:ce.Medium},{label:"SELECT <column> FROM <table>",insertText:"SELECT $2 FROM $1",insertTextRules:re.InsertAsSnippet,kind:oe.Snippet,command:et,sortText:ce.Medium}])},{id:ve.TemplateVariables,name:ve.TemplateVariables,suggestions:(Ii,ko)=>{const fa=(0,st.w)();return fa?Promise.resolve(fa.getVariables().map(Zo=>{const Fa=`$${Zo.name}`,Ua=fa.replace(Fa);return{label:Fa,detail:`(Template Variable) ${Ua}`,kind:oe.Snippet,documentation:`(Template Variable) ${Ua}`,insertText:`\\$${Zo.name} `,insertTextRules:re.InsertAsSnippet,command:et,sortText:ce.Low}})):Promise.resolve([])}},{id:ve.SelectMacro,name:ve.SelectMacro,suggestions:(Ii,ko)=>Promise.resolve([...Dn.list().filter(fa=>fa.type===he.Value||fa.type===he.Column).map(ie)])},{id:ve.TableMacro,name:ve.TableMacro,suggestions:(Ii,ko)=>Promise.resolve([...Dn.list().filter(fa=>fa.type===he.Table).map(ie)])},{id:ve.GroupMacro,name:ve.GroupMacro,suggestions:(Ii,ko)=>Promise.resolve([...Dn.list().filter(fa=>fa.type===he.Group).map(ie)])},{id:ve.FilterMacro,name:ve.FilterMacro,suggestions:(Ii,ko)=>Promise.resolve([...Dn.list().filter(fa=>fa.type===he.Filter).map(ie)])},{id:ve.WithKeyword,name:ve.WithKeyword,suggestions:(Ii,ko)=>Promise.resolve([{label:"WITH <alias> AS ( ... )",insertText:"WITH $1 AS ( $2 )",insertTextRules:re.InsertAsSnippet,kind:oe.Snippet,command:et,sortText:ce.Medium}])},{id:ve.StarWildCard,name:ve.StarWildCard,suggestions:(Ii,ko)=>Promise.resolve([{label:"*",insertText:"* $0",insertTextRules:re.InsertAsSnippet,kind:oe.Field,command:et,sortText:ce.High}])},{id:ve.FunctionsWithArguments,name:ve.FunctionsWithArguments,suggestions:(Ii,ko)=>Promise.resolve([...Xt.list().map(fa=>({label:fa.name,insertText:`${fa.name}($0)`,documentation:fa.description,insertTextRules:re.InsertAsSnippet,kind:oe.Function,command:et,sortText:ce.MediumLow}))])},{id:ve.FunctionsWithoutArguments,name:ve.FunctionsWithoutArguments,suggestions:(Ii,ko)=>Promise.resolve([...Xt.list().map(fa=>({label:fa.name,insertText:`${fa.name}()`,documentation:fa.description,insertTextRules:re.InsertAsSnippet,kind:oe.Function,command:et,sortText:ce.MediumHigh}))])},{id:ve.FromKeyword,name:ve.FromKeyword,suggestions:(Ii,ko)=>Promise.resolve([{label:"FROM",insertText:"FROM $0",command:et,insertTextRules:re.InsertAsSnippet,kind:oe.Keyword}])},{id:ve.Schemas,name:ve.Schemas,suggestions:(Ii,ko)=>Promise.resolve([])},{id:ve.Tables,name:ve.Tables,suggestions:(Ii,ko)=>Promise.resolve([])},{id:ve.Columns,name:ve.Columns,suggestions:(Ii,ko)=>Promise.resolve([])},{id:ve.LogicalOperators,name:ve.LogicalOperators,suggestions:(Ii,ko)=>Promise.resolve(bn.list().filter(fa=>fa.type===W.Logical).map(fa=>({label:fa.operator,insertText:`${fa.operator} `,documentation:fa.description,command:et,sortText:ce.MediumHigh,kind:oe.Operator})))},{id:ve.WhereKeyword,name:ve.WhereKeyword,suggestions:(Ii,ko)=>Promise.resolve([{label:"WHERE",insertText:"WHERE ",command:et,sortText:ce.MediumHigh,kind:oe.Keyword}])},{id:ve.ComparisonOperators,name:ve.ComparisonOperators,suggestions:(Ii,ko)=>Promise.resolve([...bn.list().filter(fa=>fa.type===W.Comparison).map(fa=>({label:fa.operator,insertText:`${fa.operator} `,documentation:fa.description,command:et,sortText:ce.MediumHigh,kind:oe.Operator})),{label:"IN (...)",insertText:"IN ( $0 )",command:et,sortText:ce.Medium,kind:oe.Operator,insertTextRules:re.InsertAsSnippet},{label:"NOT IN (...)",insertText:"NOT IN ( $0 )",command:et,sortText:ce.Medium,kind:oe.Operator,insertTextRules:re.InsertAsSnippet},{label:"IS",insertText:"IS",command:et,sortText:ce.Medium,kind:oe.Operator},{label:"IS NOT",insertText:"IS NOT",command:et,sortText:ce.Medium,kind:oe.Operator}])},{id:ve.GroupByKeywords,name:ve.GroupByKeywords,suggestions:(Ii,ko)=>Promise.resolve([{label:"GROUP BY",insertText:"GROUP BY ",command:et,sortText:ce.MediumHigh,kind:oe.Keyword}])},{id:ve.OrderByKeywords,name:ve.OrderByKeywords,suggestions:(Ii,ko)=>Promise.resolve([{label:"ORDER BY",insertText:"ORDER BY ",command:et,sortText:ce.Medium,kind:oe.Keyword},{label:"ORDER BY(ascending)",insertText:"ORDER BY $1 ASC ",command:et,sortText:ce.MediumLow,kind:oe.Snippet,insertTextRules:re.InsertAsSnippet},{label:"ORDER BY(descending)",insertText:"ORDER BY $1 DESC",command:et,sortText:ce.MediumLow,kind:oe.Snippet,insertTextRules:re.InsertAsSnippet}])},{id:ve.LimitKeyword,name:ve.LimitKeyword,suggestions:(Ii,ko)=>Promise.resolve([{label:"LIMIT",insertText:"LIMIT ",command:et,sortText:ce.MediumLow,kind:oe.Keyword}])},{id:ve.SortOrderDirectionKeyword,name:ve.SortOrderDirectionKeyword,suggestions:(Ii,ko)=>Promise.resolve([wt.ASC,wt.DESC].map(fa=>({label:fa,insertText:`${fa} `,command:et,kind:oe.Keyword})))},{id:ve.NotKeyword,name:ve.NotKeyword,suggestions:()=>Promise.resolve([{label:"NOT",insertText:"NOT",command:et,kind:oe.Keyword,sortText:ce.High}])},{id:ve.BoolValues,name:ve.BoolValues,suggestions:()=>Promise.resolve(["TRUE","FALSE"].map(Ii=>({label:Ii,insertText:`${Ii}`,command:et,kind:oe.Keyword,sortText:ce.Medium})))},{id:ve.NullValue,name:ve.NullValue,suggestions:()=>Promise.resolve(["NULL"].map(Ii=>({label:Ii,insertText:`${Ii}`,command:et,kind:oe.Keyword,sortText:ce.Low})))}];function ie(Xt){return{label:Xt.name,insertText:`${"\\"+Xt.text}${ge(Xt.args)} `,insertTextRules:re.InsertAsSnippet,kind:oe.Snippet,documentation:Xt.description,command:et}}function ge(Xt){return Xt?"(".concat(Xt.map((bn,Dn)=>`\${${Dn}:${bn}}`).join(", ")).concat(")"):"()"}function z(){return[{id:fe.SelectKeyword,name:fe.SelectKeyword,resolve:(Xt,bn,Dn,Ii)=>!!(Xt===null||Xt.isWhiteSpace()&&Xt.previous===null||Xt.is(me.Keyword,wt.SELECT)||Xt.is(me.Keyword,wt.SELECT)&&Xt.previous===null||Ii||Xt.isIdentifier()&&(Ii||Xt?.previous===null)||Xt.isIdentifier()&&wt.SELECT.startsWith(Xt.value.toLowerCase()))},{id:fe.WithKeyword,name:fe.WithKeyword,resolve:(Xt,bn,Dn,Ii)=>!!(Xt===null||Xt.isWhiteSpace()&&Xt.previous===null||Xt.is(me.Keyword,wt.WITH)&&Xt.previous===null||Xt.isIdentifier()&&wt.WITH.toLowerCase().startsWith(Xt.value.toLowerCase()))},{id:fe.AfterSelectKeyword,name:fe.AfterSelectKeyword,resolve:(Xt,bn,Dn,Ii)=>Dn?.value.toLowerCase()===wt.SELECT},{id:fe.AfterSelectArguments,name:fe.AfterSelectArguments,resolve:(Xt,bn,Dn,Ii)=>bn?.value.toLowerCase()===wt.SELECT&&Dn?.value===","},{id:fe.AfterSelectFuncFirstArgument,name:fe.AfterSelectFuncFirstArgument,resolve:(Xt,bn,Dn,Ii)=>!!((bn?.value.toLowerCase()===wt.SELECT||bn?.value.toLowerCase()===wt.AS)&&(Dn?.is(me.Parenthesis,"(")||Xt?.is(me.Parenthesis,"()")))},{id:fe.AfterWhereFunctionArgument,name:fe.AfterWhereFunctionArgument,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.is(me.Keyword,wt.WHERE)&&(Dn?.is(me.Parenthesis,"(")||Xt?.is(me.Parenthesis,"()")))},{id:fe.AfterGroupBy,name:fe.AfterGroupBy,resolve:(Xt,bn,Dn,Ii)=>{var ko;return!!(bn?.is(me.Keyword,wt.BY)&&((ko=bn?.getPreviousKeyword())!=null&&ko.is(me.Keyword,wt.GROUP))&&(Dn?.isIdentifier()||Dn?.isDoubleQuotedString()||Dn?.is(me.Parenthesis,")")||Dn?.is(me.Parenthesis,"()")))}},{id:fe.SelectAlias,name:fe.SelectAlias,resolve:(Xt,bn,Dn,Ii)=>Dn?.value===","&&bn?.value.toLowerCase()===wt.AS},{id:fe.FromKeyword,name:fe.FromKeyword,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.value.toLowerCase()===wt.SELECT&&Dn?.value!==","||(Xt?.isKeyword()||Xt?.isIdentifier())&&wt.FROM.toLowerCase().startsWith(Xt.value.toLowerCase()))},{id:fe.AfterFromKeyword,name:fe.AfterFromKeyword,resolve:(Xt,bn,Dn,Ii)=>!Xt?.value.includes(".")&&Dn?.value.toLowerCase()===wt.FROM},{id:fe.AfterSchema,name:fe.AfterSchema,resolve:(Xt,bn,Dn,Ii)=>(Xt?.isWhiteSpace()&&Xt?.next&&(Xt=Xt?.previous,Dn=Xt.getPreviousNonWhiteSpaceToken()),!!(Xt?.isIdentifier()&&Xt?.value.endsWith(".")&&Dn?.value.toLowerCase()===wt.FROM))},{id:fe.AfterFrom,name:fe.AfterFrom,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.value.toLowerCase()===wt.FROM&&Dn?.isDoubleQuotedString()||bn?.value.toLowerCase()===wt.FROM&&Dn?.isIdentifier()||bn?.value.toLowerCase()===wt.FROM&&Dn?.isVariable())},{id:fe.AfterTable,name:fe.AfterTable,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.value.toLowerCase()===wt.FROM&&(Dn?.isVariable()||Dn?.value!==""&&Dn?.value.toLowerCase()!==wt.FROM))},{id:fe.WhereKeyword,name:fe.WhereKeyword,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.value.toLowerCase()===wt.WHERE&&(Dn?.isKeyword()||Dn?.is(me.Parenthesis,"(")||Dn?.is(me.Operator,wt.AND)))},{id:fe.WhereComparisonOperator,name:fe.WhereComparisonOperator,resolve:(Xt,bn,Dn,Ii)=>{var ko;return!!(bn?.value.toLowerCase()===wt.WHERE&&!((ko=Dn?.getPreviousNonWhiteSpaceToken())!=null&&ko.isOperator())&&!Xt?.is(me.Delimiter,".")&&!Xt?.isParenthesis()&&(Dn?.isIdentifier()||Dn?.isDoubleQuotedString()))}},{id:fe.WhereValue,name:fe.WhereValue,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.value.toLowerCase()===wt.WHERE&&Dn?.isOperator())},{id:fe.AfterWhereValue,name:fe.AfterWhereValue,resolve:(Xt,bn,Dn,Ii)=>{var ko,fa,Zo;return!!(bn?.value.toLowerCase()===wt.WHERE&&(Dn?.is(me.Operator,"and")||Dn?.is(me.Operator,"or")||Dn?.isString()||Dn?.isNumber()||Dn?.is(me.Parenthesis,")")||Dn?.is(me.Parenthesis,"()")||Dn?.isTemplateVariable()||Dn?.is(me.IdentifierQuote)&&((ko=Dn.getPreviousNonWhiteSpaceToken())!=null&&ko.is(me.Identifier))&&((Zo=(fa=Dn?.getPreviousNonWhiteSpaceToken())==null?void 0:fa.getPreviousNonWhiteSpaceToken())!=null&&Zo.is(me.IdentifierQuote))))}},{id:fe.AfterGroupByKeywords,name:fe.AfterGroupByKeywords,resolve:(Xt,bn,Dn,Ii)=>{var ko;return!!(bn?.is(me.Keyword,wt.BY)&&((ko=bn?.getPreviousKeyword())!=null&&ko.is(me.Keyword,wt.GROUP))&&(Dn?.is(me.Keyword,wt.BY)||Dn?.is(me.Delimiter,",")))}},{id:fe.AfterGroupByFunctionArgument,name:fe.AfterGroupByFunctionArgument,resolve:(Xt,bn,Dn,Ii)=>{var ko;return!!(bn?.is(me.Keyword,wt.BY)&&((ko=bn?.getPreviousKeyword())!=null&&ko.is(me.Keyword,wt.GROUP))&&(Dn?.is(me.Parenthesis,"(")||Xt?.is(me.Parenthesis,"()")))}},{id:fe.AfterOrderByKeywords,name:fe.AfterOrderByKeywords,resolve:(Xt,bn,Dn,Ii)=>{var ko;return!!(Dn?.is(me.Keyword,wt.BY)&&((ko=Dn?.getPreviousKeyword())!=null&&ko.is(me.Keyword,wt.ORDER)))}},{id:fe.AfterOrderByFunction,name:fe.AfterOrderByFunction,resolve:(Xt,bn,Dn,Ii)=>{var ko,fa;return!!(bn?.is(me.Keyword,wt.BY)&&((ko=bn?.getPreviousKeyword())!=null&&ko.is(me.Keyword,wt.ORDER))&&Dn?.is(me.Parenthesis)&&((fa=Dn?.getPreviousNonWhiteSpaceToken())!=null&&fa.is(me.Function)))}},{id:fe.AfterOrderByDirection,name:fe.AfterOrderByDirection,resolve:(Xt,bn,Dn,Ii)=>!!(bn?.is(me.Keyword,wt.DESC)||bn?.is(me.Keyword,wt.ASC))},{id:fe.AfterIsOperator,name:fe.AfterIsOperator,resolve:(Xt,bn,Dn,Ii)=>!!Dn?.is(me.Operator,"IS")},{id:fe.AfterIsNotOperator,name:fe.AfterIsNotOperator,resolve:(Xt,bn,Dn,Ii)=>{var ko;return!!(Dn?.is(me.Operator,"NOT")&&((ko=Dn.getPreviousNonWhiteSpaceToken())!=null&&ko.is(me.Operator,"IS")))}}]}var be=t(40621),Qe=t(91040);let Bt={logger:()=>{}},nn=()=>{};be.h&&Qe.h&&(Bt=(0,Qe.h)("SQLEditor"),nn=Bt.logger,(0,be.h)("sqleditor",void 0,Bt));const bt="column",at="'5m'",$t=[{id:"$__timeFilter(dateColumn)",name:"$__timeFilter(dateColumn)",text:"$__timeFilter",args:[bt],type:he.Filter,description:"Will be replaced by a time range filter using the specified column name. For example, dateColumn BETWEEN FROM_UNIXTIME(1494410783) AND FROM_UNIXTIME(1494410983)"},{id:"$__timeFrom()",name:"$__timeFrom()",text:"$__timeFrom",args:[],type:he.Filter,description:"Will be replaced by the start of the currently active time selection. For example, FROM_UNIXTIME(1494410783)"},{id:"$__timeTo()",name:"$__timeTo()",text:"$__timeTo",args:[],type:he.Filter,description:"Will be replaced by the end of the currently active time selection. For example, FROM_UNIXTIME(1494410983)"},{id:"$__timeGroup(dateColumn, '5m')",name:"$__timeGroup(dateColumn, '5m')",text:"$__timeGroup",args:[bt,at],type:he.Value,description:"Will be replaced by an expression usable in GROUP BY clause. For example, *cast(cast(UNIX_TIMESTAMP(dateColumn)/(300) as signed)*300 as signed),*"},{id:"$__table",name:"$__table",text:"$__table",args:[],type:he.Table,description:"Will be replaced by the query table."},{id:"$__column",name:"$__column",text:"$__column",args:[],type:he.Column,description:"Will be replaced by the query column."}];function On(Xt,bn){var Dn,Ii,ko;const fa={triggerCharacters:["."," ","$",",","(","'"]};bn&&Array.isArray(bn.builtinFunctions)&&(fa.supportedFunctions=()=>bn.builtinFunctions.map(Fa=>({id:Fa,name:Fa})));const Zo=[];return(Dn=bn?.comparisonOperators)!=null&&Dn.length&&Zo.push(...bn.comparisonOperators.map(Fa=>({id:Fa.toLocaleLowerCase(),operator:Fa,type:W.Comparison}))),bn.logicalOperators=(Ii=bn.logicalOperators)!=null?Ii:bn.operators,(ko=bn?.logicalOperators)!=null&&ko.length&&Zo.push(...bn.logicalOperators.map(Fa=>({id:Fa.toLocaleLowerCase(),operator:Fa,type:W.Logical}))),fa.supportedOperators=()=>Zo,fa.supportedMacros=()=>$t,fa}const Ct={id:"standardSql",extensions:[".sql"],aliases:["sql"],mimetypes:[],loader:()=>Promise.resolve().then(t.bind(t,98167)),completionProvider:On};var Zt=Object.defineProperty,Wn=Object.defineProperties,Zn=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Qt=(Xt,bn,Dn)=>bn in Xt?Zt(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Dt=(Xt,bn)=>{for(var Dn in bn||(bn={}))Xe.call(bn,Dn)&&Qt(Xt,Dn,bn[Dn]);if(xt)for(var Dn of xt(bn))gn.call(bn,Dn)&&Qt(Xt,Dn,bn[Dn]);return Xt},hn=(Xt,bn)=>Wn(Xt,Zn(bn));const cn="sql",an=new Map,Or=new Map,Ln=({children:Xt,onBlur:bn,onChange:Dn,query:Ii,language:ko={id:cn},width:fa,height:Zo})=>{const Fa=(0,N.useRef)(null),Ua=(0,N.useRef)(),ms=(0,N.useMemo)(()=>{const ws=ct(),fu=`${ko.id}-${ws}`;return Ua.current=fu,fu},[ko.id]);(0,N.useEffect)(()=>()=>{Ua.current&&Or.delete(Ua.current),nn(`Removing instance cache ${Ua.current}`,!1,Or)},[]);const Fs=(0,N.useCallback)(()=>{Fa.current&&Fa.current.getAction("editor.action.formatDocument").run()},[]);return N.createElement("div",{style:{width:fa}},N.createElement(_.B,{height:Zo||"240px",width:fa?`${fa-2}px`:void 0,language:ms,value:Ii,onBlur:ws=>{Dn&&Dn(ws,!1),bn&&bn()},showMiniMap:!1,showLineNumbers:!0,onEditorDidMount:(ws,fu)=>{Fa.current=ws,ws.onDidChangeModelContent(wu=>{const Du=ws.getValue();Dn&&Dn(Du,!1)}),ws.addCommand(fu.KeyMod.CtrlCmd|fu.KeyCode.Enter,()=>{const wu=ws.getValue();Dn&&Dn(wu,!0)}),ws.onKeyUp(wu=>{wu.keyCode===84&&ws.trigger(et.id,et.id,{})}),Gn(fu,ko,ms)}}),Xt&&Xt({formatQuery:Fs}))},En=(Xt,bn)=>{if(bn?.id!==cn&&!bn.loader){nn(`Loading language '${bn?.id}' from Monaco registry`,!1);const Ii=Xt.languages.getLanguages().find(({id:ko})=>ko===bn?.id);if(!Ii)throw Error(`Unknown Monaco language ${bn?.id}`);return Dt(Dt({completionProvider:On},Ii),bn)}return Dt(Dt({},Ct),bn)},Gn=async(Xt,bn,Dn)=>{const Ii=En(Xt,bn);if(!Ii.loader)return;const{language:ko,conf:fa}=await Ii.loader(Xt);if(Xt.languages.register({id:Dn}),Xt.languages.setMonarchTokensProvider(Dn,Dt({},ko)),Xt.languages.setLanguageConfiguration(Dn,Dt({},fa)),Ii.formatter&&Xt.languages.registerDocumentFormattingEditProvider(Dn,{provideDocumentFormattingEdits:Zo=>{var Fa;const Ua=(Fa=bn.formatter)==null?void 0:Fa.call(bn,Zo.getValue());return[{range:Zo.getFullModelRange(),text:Ua||""}]}}),Ii.completionProvider){const Zo=Ii.completionProvider(Xt,ko);rr(bn.id,Dn,Zo);const Fa=an.get(bn.id),Ua=Or.get(Dn),ms=async(Fs,ws,fu,wu)=>{const Du=ft(Xt,Fs,ws,Dn),zu=V(Du,Fa.positionResolvers),Il=le(zu,Fa.suggestionKinds);nn("Statement position",!1,zu),nn("Suggestion kinds",!1,Il);const bc={position:ws,currentToken:Du,statementPosition:zu,kind:Il,range:Xt.Range.fromPositions(ws)};return{suggestions:await F(Xt,Du,Il,bc,Ua)}};Xt.languages.registerCompletionItemProvider(Dn,hn(Dt({},Zo),{provideCompletionItems:ms}))}};function rr(Xt,bn,Dn){var Ii;an.has(Xt)||sr(Xt);const ko=an.get(Xt);Or.has(bn)||Or.set(bn,new Ge.O(Me(ko.functions,ko.operators,ko.macros)));const fa=Or.get(bn);if(Dn.supportedFunctions)for(const Zo of Dn.supportedFunctions())ko.functions.getIfExists(Zo.id)||ko.functions.register(Zo);if(Dn.supportedOperators)for(const Zo of Dn.supportedOperators())ko.operators.getIfExists(Zo.id)||ko.operators.register(hn(Dt({},Zo),{name:Zo.id}));if(Dn.supportedMacros)for(const Zo of Dn.supportedMacros())ko.macros.getIfExists(Zo.id)||ko.macros.register(hn(Dt({},Zo),{name:Zo.id}));if(Dn.customStatementPlacement)for(const Zo of Dn.customStatementPlacement()){const Fa=ko.positionResolvers.getIfExists(Zo.id);if(!Fa)ko.positionResolvers.register(hn(Dt({},Zo),{id:Zo.id,name:Zo.id})),ko.suggestionKinds.register({id:Zo.id,name:Zo.id,kind:[]});else{const Ua=Fa.resolve;Fa.resolve=(...ms)=>{const Fs=Zo.resolve(...ms);return Zo.overrideDefault?Fs:Ua(...ms)||Fs}}}if(Dn.customSuggestionKinds)for(const Zo of Dn.customSuggestionKinds()){if((Ii=Zo.applyTo)==null||Ii.forEach(Fa=>{const Ua=ko.suggestionKinds.getIfExists(Fa);Ua&&Ua.kind.indexOf(Zo.id)===-1&&Ua.kind.push(Zo.id)}),Zo.overrideDefault){const Fa=fa.get(Zo.id);if(Fa!==void 0){Fa.suggestions=Zo.suggestionsResolver;continue}}fa.register({id:Zo.id,name:Zo.id,suggestions:Zo.suggestionsResolver})}if(Dn.schemas){const Zo=fa.get(ve.Schemas),Fa=Zo.suggestions;Zo.suggestions=async(Ua,ms)=>{const Fs=await Fa(Ua,ms);if(!Dn.schemas)return[...Fs];const fu=(await Dn.schemas.resolve()).map(wu=>{var Du;return{label:wu.name,insertText:`${(Du=wu.completion)!=null?Du:wu.name}.`,command:et,kind:oe.Module,sortText:ce.High}});return[...Fs,...fu]}}if(Dn.tables){const Zo=fa.get(ve.Tables),Fa=Zo.suggestions;Zo.suggestions=async(Ua,ms)=>{var Fs,ws,fu,wu,Du;const zu=await Fa(Ua,ms),Il=it(Ua.currentToken),Gl=((ws=(Fs=Dn.tables)==null?void 0:Fs.parseName)!=null?ws:At)(Il),oc=((Du=await((wu=(fu=Dn.tables)==null?void 0:fu.resolve)==null?void 0:wu.call(fu,Gl)))!=null?Du:[]).map(ac=>{var jl;return{label:ac.name,insertText:`${(jl=ac.completion)!=null?jl:ac.name}${ac.completion===ac.name?" $0":""}`,insertTextRules:re.InsertAsSnippet,command:et,kind:oe.Field,sortText:ce.MediumHigh}});return[...zu,...oc]}}if(Dn.columns){const Zo=fa.get(ve.Columns),Fa=Zo.suggestions;Zo.suggestions=async(Ua,ms)=>{var Fs,ws,fu;const wu=await Fa(Ua,ms),Du=it(Ua.currentToken);let zu;const Il=(ws=(Fs=Dn.tables)==null?void 0:Fs.parseName)!=null?ws:At;Du&&Du.value&&(zu=Il(Du));let bc=[];if(zu){const Gl=await((fu=Dn.columns)==null?void 0:fu.resolve(zu));bc=Gl?Gl.map(oc=>{var ac;return{label:oc.name,insertText:(ac=oc.completion)!=null?ac:oc.name,kind:oe.Field,sortText:ce.High,detail:oc.type,documentation:oc.description}}):[]}return[...wu,...bc]}}}function sr(Xt){return an.has(Xt)||an.set(Xt,{functions:new Ge.O,operators:new Ge.O,suggestionKinds:new Ge.O(Y),positionResolvers:new Ge.O(z),macros:new Ge.O}),an.get(Xt)}const pi={query:'SELECT column1, FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"identifier.sql",language:"sql"},{offset:14,type:"delimiter.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"keyword.sql",language:"sql"},{offset:20,type:"white.sql",language:"sql"},{offset:21,type:"identifier.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"keyword.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"identifier.sql",language:"sql"},{offset:41,type:"white.sql",language:"sql"},{offset:42,type:"operator.sql",language:"sql"},{offset:43,type:"white.sql",language:"sql"},{offset:44,type:"identifier.quote.sql",language:"sql"},{offset:45,type:"identifier.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"white.sql",language:"sql"},{offset:53,type:"keyword.sql",language:"sql"},{offset:58,type:"white.sql",language:"sql"},{offset:59,type:"keyword.sql",language:"sql"},{offset:61,type:"white.sql",language:"sql"},{offset:62,type:"identifier.sql",language:"sql"},{offset:69,type:"white.sql",language:"sql"},{offset:70,type:"keyword.sql",language:"sql"},{offset:75,type:"white.sql",language:"sql"},{offset:76,type:"keyword.sql",language:"sql"},{offset:78,type:"white.sql",language:"sql"},{offset:79,type:"identifier.sql",language:"sql"},{offset:86,type:"white.sql",language:"sql"},{offset:87,type:"keyword.sql",language:"sql"},{offset:91,type:"white.sql",language:"sql"},{offset:92,type:"keyword.sql",language:"sql"},{offset:97,type:"white.sql",language:"sql"},{offset:98,type:"number.sql",language:"sql"},{offset:100,type:"delimiter.sql",language:"sql"}]]},yi={query:'SELECT count(column1), FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"identifier.sql",language:"sql"},{offset:34,type:"white.sql",language:"sql"},{offset:35,type:"keyword.sql",language:"sql"},{offset:40,type:"white.sql",language:"sql"},{offset:41,type:"identifier.sql",language:"sql"},{offset:48,type:"white.sql",language:"sql"},{offset:49,type:"operator.sql",language:"sql"},{offset:50,type:"white.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"identifier.sql",language:"sql"},{offset:58,type:"identifier.quote.sql",language:"sql"},{offset:59,type:"white.sql",language:"sql"},{offset:60,type:"keyword.sql",language:"sql"},{offset:65,type:"white.sql",language:"sql"},{offset:66,type:"keyword.sql",language:"sql"},{offset:68,type:"white.sql",language:"sql"},{offset:69,type:"identifier.sql",language:"sql"},{offset:76,type:"white.sql",language:"sql"},{offset:77,type:"keyword.sql",language:"sql"},{offset:82,type:"white.sql",language:"sql"},{offset:83,type:"keyword.sql",language:"sql"},{offset:85,type:"white.sql",language:"sql"},{offset:86,type:"identifier.sql",language:"sql"},{offset:93,type:"white.sql",language:"sql"},{offset:94,type:"keyword.sql",language:"sql"},{offset:98,type:"white.sql",language:"sql"},{offset:99,type:"keyword.sql",language:"sql"},{offset:104,type:"white.sql",language:"sql"},{offset:105,type:"number.sql",language:"sql"},{offset:107,type:"delimiter.sql",language:"sql"}]]},jr={query:`SELECT column1, FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10;`,tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"identifier.sql",language:"sql"},{offset:14,type:"delimiter.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:4,type:"white.sql",language:"sql"},{offset:5,type:"identifier.sql",language:"sql"},{offset:11,type:"white.sql",language:"sql"}],[{offset:0,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"identifier.sql",language:"sql"},{offset:13,type:"white.sql",language:"sql"},{offset:14,type:"operator.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"identifier.quote.sql",language:"sql"},{offset:17,type:"identifier.sql",language:"sql"},{offset:23,type:"identifier.quote.sql",language:"sql"},{offset:24,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"keyword.sql",language:"sql"},{offset:8,type:"white.sql",language:"sql"},{offset:9,type:"identifier.sql",language:"sql"},{offset:16,type:"white.sql",language:"sql"},{offset:17,type:"keyword.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:25,type:"white.sql",language:"sql"},{offset:26,type:"identifier.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"keyword.sql",language:"sql"},{offset:38,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"number.sql",language:"sql"},{offset:8,type:"delimiter.sql",language:"sql"}]]},ui={query:`SELECT count(column1), FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10;`,tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:4,type:"white.sql",language:"sql"},{offset:5,type:"identifier.sql",language:"sql"},{offset:11,type:"white.sql",language:"sql"}],[{offset:0,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"identifier.sql",language:"sql"},{offset:13,type:"white.sql",language:"sql"},{offset:14,type:"operator.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"identifier.quote.sql",language:"sql"},{offset:17,type:"identifier.sql",language:"sql"},{offset:23,type:"identifier.quote.sql",language:"sql"},{offset:24,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"keyword.sql",language:"sql"},{offset:8,type:"white.sql",language:"sql"},{offset:9,type:"identifier.sql",language:"sql"},{offset:16,type:"white.sql",language:"sql"},{offset:17,type:"keyword.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:25,type:"white.sql",language:"sql"},{offset:26,type:"identifier.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"keyword.sql",language:"sql"},{offset:38,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"number.sql",language:"sql"},{offset:8,type:"delimiter.sql",language:"sql"}]]},bi={query:"",tokens:[]},ri={query:'SELECT column1, FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10; SELECT column2, FROM table2 WHERE column2 = "value2" GROUP BY column1 ORDER BY column2 DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"identifier.sql",language:"sql"},{offset:14,type:"delimiter.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"keyword.sql",language:"sql"},{offset:20,type:"white.sql",language:"sql"},{offset:21,type:"identifier.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"keyword.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"identifier.sql",language:"sql"},{offset:41,type:"white.sql",language:"sql"},{offset:42,type:"operator.sql",language:"sql"},{offset:43,type:"white.sql",language:"sql"},{offset:44,type:"identifier.quote.sql",language:"sql"},{offset:45,type:"identifier.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"white.sql",language:"sql"},{offset:53,type:"keyword.sql",language:"sql"},{offset:58,type:"white.sql",language:"sql"},{offset:59,type:"keyword.sql",language:"sql"},{offset:61,type:"white.sql",language:"sql"},{offset:62,type:"identifier.sql",language:"sql"},{offset:69,type:"white.sql",language:"sql"},{offset:70,type:"keyword.sql",language:"sql"},{offset:75,type:"white.sql",language:"sql"},{offset:76,type:"keyword.sql",language:"sql"},{offset:78,type:"white.sql",language:"sql"},{offset:79,type:"identifier.sql",language:"sql"},{offset:86,type:"white.sql",language:"sql"},{offset:87,type:"keyword.sql",language:"sql"},{offset:91,type:"white.sql",language:"sql"},{offset:92,type:"keyword.sql",language:"sql"},{offset:97,type:"white.sql",language:"sql"},{offset:98,type:"number.sql",language:"sql"},{offset:100,type:"delimiter.sql",language:"sql"},{offset:101,type:"white.sql",language:"sql"},{offset:102,type:"keyword.sql",language:"sql"},{offset:108,type:"white.sql",language:"sql"},{offset:109,type:"identifier.sql",language:"sql"},{offset:116,type:"delimiter.sql",language:"sql"},{offset:117,type:"white.sql",language:"sql"},{offset:118,type:"keyword.sql",language:"sql"},{offset:122,type:"white.sql",language:"sql"},{offset:123,type:"identifier.sql",language:"sql"},{offset:129,type:"white.sql",language:"sql"},{offset:130,type:"keyword.sql",language:"sql"},{offset:135,type:"white.sql",language:"sql"},{offset:136,type:"identifier.sql",language:"sql"},{offset:143,type:"white.sql",language:"sql"},{offset:144,type:"operator.sql",language:"sql"},{offset:145,type:"white.sql",language:"sql"},{offset:146,type:"identifier.quote.sql",language:"sql"},{offset:147,type:"identifier.sql",language:"sql"},{offset:153,type:"identifier.quote.sql",language:"sql"},{offset:154,type:"white.sql",language:"sql"},{offset:155,type:"keyword.sql",language:"sql"},{offset:160,type:"white.sql",language:"sql"},{offset:161,type:"keyword.sql",language:"sql"},{offset:163,type:"white.sql",language:"sql"},{offset:164,type:"identifier.sql",language:"sql"},{offset:171,type:"white.sql",language:"sql"},{offset:172,type:"keyword.sql",language:"sql"},{offset:177,type:"white.sql",language:"sql"},{offset:178,type:"keyword.sql",language:"sql"},{offset:180,type:"white.sql",language:"sql"},{offset:181,type:"identifier.sql",language:"sql"},{offset:188,type:"white.sql",language:"sql"},{offset:189,type:"keyword.sql",language:"sql"},{offset:193,type:"white.sql",language:"sql"},{offset:194,type:"keyword.sql",language:"sql"},{offset:199,type:"white.sql",language:"sql"},{offset:200,type:"number.sql",language:"sql"},{offset:202,type:"delimiter.sql",language:"sql"}]]},hi={query:'SELECT count(column1), FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10; SELECT count(column2), FROM table2 WHERE column2 = "value2" GROUP BY column1 ORDER BY column2 DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"identifier.sql",language:"sql"},{offset:34,type:"white.sql",language:"sql"},{offset:35,type:"keyword.sql",language:"sql"},{offset:40,type:"white.sql",language:"sql"},{offset:41,type:"identifier.sql",language:"sql"},{offset:48,type:"white.sql",language:"sql"},{offset:49,type:"operator.sql",language:"sql"},{offset:50,type:"white.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"identifier.sql",language:"sql"},{offset:58,type:"identifier.quote.sql",language:"sql"},{offset:59,type:"white.sql",language:"sql"},{offset:60,type:"keyword.sql",language:"sql"},{offset:65,type:"white.sql",language:"sql"},{offset:66,type:"keyword.sql",language:"sql"},{offset:68,type:"white.sql",language:"sql"},{offset:69,type:"identifier.sql",language:"sql"},{offset:76,type:"white.sql",language:"sql"},{offset:77,type:"keyword.sql",language:"sql"},{offset:82,type:"white.sql",language:"sql"},{offset:83,type:"keyword.sql",language:"sql"},{offset:85,type:"white.sql",language:"sql"},{offset:86,type:"identifier.sql",language:"sql"},{offset:93,type:"white.sql",language:"sql"},{offset:94,type:"keyword.sql",language:"sql"},{offset:98,type:"white.sql",language:"sql"},{offset:99,type:"keyword.sql",language:"sql"},{offset:104,type:"white.sql",language:"sql"},{offset:105,type:"number.sql",language:"sql"},{offset:107,type:"delimiter.sql",language:"sql"},{offset:108,type:"white.sql",language:"sql"},{offset:109,type:"keyword.sql",language:"sql"},{offset:115,type:"white.sql",language:"sql"},{offset:116,type:"predefined.sql",language:"sql"},{offset:121,type:"delimiter.parenthesis.sql",language:"sql"},{offset:122,type:"identifier.sql",language:"sql"},{offset:129,type:"delimiter.parenthesis.sql",language:"sql"},{offset:130,type:"delimiter.sql",language:"sql"},{offset:131,type:"white.sql",language:"sql"},{offset:132,type:"keyword.sql",language:"sql"},{offset:136,type:"white.sql",language:"sql"},{offset:137,type:"identifier.sql",language:"sql"},{offset:143,type:"white.sql",language:"sql"},{offset:144,type:"keyword.sql",language:"sql"},{offset:149,type:"white.sql",language:"sql"},{offset:150,type:"identifier.sql",language:"sql"},{offset:157,type:"white.sql",language:"sql"},{offset:158,type:"operator.sql",language:"sql"},{offset:159,type:"white.sql",language:"sql"},{offset:160,type:"identifier.quote.sql",language:"sql"},{offset:161,type:"identifier.sql",language:"sql"},{offset:167,type:"identifier.quote.sql",language:"sql"},{offset:168,type:"white.sql",language:"sql"},{offset:169,type:"keyword.sql",language:"sql"},{offset:174,type:"white.sql",language:"sql"},{offset:175,type:"keyword.sql",language:"sql"},{offset:177,type:"white.sql",language:"sql"},{offset:178,type:"identifier.sql",language:"sql"},{offset:185,type:"white.sql",language:"sql"},{offset:186,type:"keyword.sql",language:"sql"},{offset:191,type:"white.sql",language:"sql"},{offset:192,type:"keyword.sql",language:"sql"},{offset:194,type:"white.sql",language:"sql"},{offset:195,type:"identifier.sql",language:"sql"},{offset:202,type:"white.sql",language:"sql"},{offset:203,type:"keyword.sql",language:"sql"},{offset:207,type:"white.sql",language:"sql"},{offset:208,type:"keyword.sql",language:"sql"},{offset:213,type:"white.sql",language:"sql"},{offset:214,type:"number.sql",language:"sql"},{offset:216,type:"delimiter.sql",language:"sql"}]]},Si={query:'SELECT count(column1), column2 FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1, avg(column2) DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"identifier.sql",language:"sql"},{offset:30,type:"white.sql",language:"sql"},{offset:31,type:"keyword.sql",language:"sql"},{offset:35,type:"white.sql",language:"sql"},{offset:36,type:"identifier.sql",language:"sql"},{offset:42,type:"white.sql",language:"sql"},{offset:43,type:"keyword.sql",language:"sql"},{offset:48,type:"white.sql",language:"sql"},{offset:49,type:"identifier.sql",language:"sql"},{offset:56,type:"white.sql",language:"sql"},{offset:57,type:"operator.sql",language:"sql"},{offset:58,type:"white.sql",language:"sql"},{offset:59,type:"identifier.quote.sql",language:"sql"},{offset:60,type:"identifier.sql",language:"sql"},{offset:66,type:"identifier.quote.sql",language:"sql"},{offset:67,type:"white.sql",language:"sql"},{offset:68,type:"keyword.sql",language:"sql"},{offset:73,type:"white.sql",language:"sql"},{offset:74,type:"keyword.sql",language:"sql"},{offset:76,type:"white.sql",language:"sql"},{offset:77,type:"identifier.sql",language:"sql"},{offset:84,type:"white.sql",language:"sql"},{offset:85,type:"keyword.sql",language:"sql"},{offset:90,type:"white.sql",language:"sql"},{offset:91,type:"keyword.sql",language:"sql"},{offset:93,type:"white.sql",language:"sql"},{offset:94,type:"identifier.sql",language:"sql"},{offset:101,type:"delimiter.sql",language:"sql"},{offset:102,type:"white.sql",language:"sql"},{offset:103,type:"predefined.sql",language:"sql"},{offset:106,type:"delimiter.parenthesis.sql",language:"sql"},{offset:107,type:"identifier.sql",language:"sql"},{offset:114,type:"delimiter.parenthesis.sql",language:"sql"},{offset:115,type:"white.sql",language:"sql"},{offset:116,type:"keyword.sql",language:"sql"},{offset:120,type:"white.sql",language:"sql"},{offset:121,type:"keyword.sql",language:"sql"},{offset:126,type:"white.sql",language:"sql"},{offset:127,type:"number.sql",language:"sql"},{offset:129,type:"delimiter.sql",language:"sql"}]]},Kr={query:`SELECT count(column1), column2 FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1, avg(column2) DESC LIMIT 10;`,tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"identifier.sql",language:"sql"},{offset:30,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:4,type:"white.sql",language:"sql"},{offset:5,type:"identifier.sql",language:"sql"},{offset:11,type:"white.sql",language:"sql"}],[{offset:0,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"identifier.sql",language:"sql"},{offset:13,type:"white.sql",language:"sql"},{offset:14,type:"operator.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"identifier.quote.sql",language:"sql"},{offset:17,type:"identifier.sql",language:"sql"},{offset:23,type:"identifier.quote.sql",language:"sql"},{offset:24,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"keyword.sql",language:"sql"},{offset:8,type:"white.sql",language:"sql"},{offset:9,type:"identifier.sql",language:"sql"},{offset:16,type:"white.sql",language:"sql"},{offset:17,type:"keyword.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:25,type:"white.sql",language:"sql"},{offset:26,type:"identifier.sql",language:"sql"},{offset:33,type:"delimiter.sql",language:"sql"},{offset:34,type:"white.sql",language:"sql"},{offset:35,type:"predefined.sql",language:"sql"},{offset:38,type:"delimiter.parenthesis.sql",language:"sql"},{offset:39,type:"identifier.sql",language:"sql"},{offset:46,type:"delimiter.parenthesis.sql",language:"sql"},{offset:47,type:"white.sql",language:"sql"},{offset:48,type:"keyword.sql",language:"sql"},{offset:52,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"number.sql",language:"sql"},{offset:8,type:"delimiter.sql",language:"sql"}]]},xi=Xt=>({editor:{tokenize:(bn,Dn)=>Xt.get(bn)},Range:{containsPosition:(bn,Dn)=>Dn.lineNumber>=bn.startLineNumber&&Dn.lineNumber<=bn.endLineNumber&&Dn.column>=bn.startColumn&&Dn.column<=bn.endColumn},languages:{CompletionItemKind:{Snippet:2,Function:1,Keyword:3},CompletionItemInsertTextRule:{InsertAsSnippet:2}}});function Ai(Xt){return{getValue:function(bn,Dn){return Xt},getValueInRange:function(bn,Dn){return Xt.split(` `)[bn.startLineNumber-1].trim().slice(bn.startColumn===0?0:bn.startColumn-1,bn.endColumn-1)},getLineLength:function(bn){return Xt.split(` `)[bn-1].trim().length}}}function Pi(Xt,bn,Dn,Ii,ko){const fa=Ai(Xt),Zo=ft(Ii,fa,bn),Fa=V(Zo,ko);expect(Fa).toContain(Dn)}const lo={testData:s,testStatementPosition:(Xt,bn,Dn)=>{describe(`${Xt}`,()=>{let Ii,ko;beforeEach(()=>{const fa=new Map;bn.forEach(Zo=>fa.set(Zo.query.query,Zo.query.tokens)),Ii=xi(fa),ko=new Ge.O(()=>Dn().map(Zo=>({id:Zo.id,name:Zo.name||Zo.id,resolve:Zo.resolve})))}),bn.forEach(fa=>{test(`${fa.query.query}`,()=>{Pi(fa.query.query,{lineNumber:fa.position.line,column:fa.position.column},Xt,Ii,ko)})})})}};var Gr=t(32196),un=t(40845),qn=t(55852),kn=Object.defineProperty,St=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable,Sn=(Xt,bn,Dn)=>bn in Xt?kn(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,ir=(Xt,bn)=>{for(var Dn in bn||(bn={}))Cr.call(bn,Dn)&&Sn(Xt,Dn,bn[Dn]);if(An)for(var Dn of An(bn))_i.call(bn,Dn)&&Sn(Xt,Dn,bn[Dn]);return Xt},mt=(Xt,bn)=>St(Xt,ln(bn)),fn=(Xt,bn)=>{var Dn={};for(var Ii in Xt)Cr.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&An)for(var Ii of An(Xt))bn.indexOf(Ii)<0&&_i.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const gt=Xt=>{var bn=Xt,{className:Dn}=bn,Ii=fn(bn,["className"]);const ko=(0,un.of)(tn);return N.createElement(qn.$n,mt(ir({},Ii),{className:(0,Gr.cx)(Dn,ko.button)}))},tn=Xt=>({button:(0,Gr.css)({paddingLeft:Xt.spacing(3/2),paddingRight:Xt.spacing(3/2)})});var Vn=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Pr=(Xt,bn)=>{var Dn={};for(var Ii in Xt)Ur.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&Vn)for(var Ii of Vn(Xt))bn.indexOf(Ii)<0&&$r.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const zr=Xt=>{var bn=Xt,{children:Dn}=bn,Ii=Pr(bn,["children"]);const ko=(0,un.of)((0,N.useCallback)(fa=>gi(fa,Ii),[Ii]));return N.createElement("div",{className:ko.root},Dn)},gi=(Xt,bn)=>{var Dn,Ii,ko;return{root:(0,Gr.css)({display:"flex",flexDirection:(Dn=bn.direction)!=null?Dn:"row",flexWrap:(Ii=bn.wrap)==null||Ii?"wrap":void 0,alignItems:bn.alignItems,gap:Xt.spacing((ko=bn.gap)!=null?ko:2),flexGrow:bn.flexGrow})}},$i=({children:Xt})=>N.createElement(zr,{gap:1},Xt),eo=({children:Xt})=>{const bn=(0,un.of)(ki);return N.createElement("div",{className:bn.root},Xt)},ki=Xt=>({root:(0,Gr.css)({display:"flex",flexWrap:"wrap",alignItems:"center",gap:Xt.spacing(3),minHeight:Xt.spacing(4)})}),so=Xt=>{const bn=(0,un.of)((0,N.useCallback)(Dn=>Ho(Dn,Xt),[Xt]));return N.createElement("span",{className:(0,Gr.cx)(bn.wrapper)})};so.defaultProps={v:0,h:0,layout:"block"};const Ho=(Xt,bn)=>{var Dn,Ii;return{wrapper:(0,Gr.css)([{paddingRight:Xt.spacing((Dn=bn.h)!=null?Dn:0),paddingBottom:Xt.spacing((Ii=bn.v)!=null?Ii:0)},bn.layout==="inline"&&{display:"inline-block"},bn.layout==="block"&&{display:"block"}])}};var ra=t(67892),So=t(56034),gr=t(14578),di=t(88575),Vi=Object.defineProperty,Ro=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,aa=(Xt,bn,Dn)=>bn in Xt?Vi(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,vi=(Xt,bn)=>{for(var Dn in bn||(bn={}))na.call(bn,Dn)&&aa(Xt,Dn,bn[Dn]);if(Ro)for(var Dn of Ro(bn))ta.call(bn,Dn)&&aa(Xt,Dn,bn[Dn]);return Xt},to=(Xt,bn)=>{var Dn={};for(var Ii in Xt)na.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&Ro)for(var Ii of Ro(Xt))bn.indexOf(Ii)<0&&ta.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const $o=Xt=>{var bn;const Dn=Xt,{label:Ii,optional:ko,tooltip:fa,tooltipInteractive:Zo,children:Fa,width:Ua}=Dn,ms=to(Dn,["label","optional","tooltip","tooltipInteractive","children","width"]),Fs=(0,un.of)((0,N.useCallback)(wu=>ja(wu,Ua),[Ua])),ws=ms?.htmlFor||((bn=ra)==null?void 0:bn.getChildId(Fa)),fu=N.createElement(N.Fragment,null,N.createElement("label",{className:Fs.label,htmlFor:ws},Ii,ko&&N.createElement("span",{className:Fs.optional}," - optional"),fa&&N.createElement(So.m,{placement:"top",content:fa,theme:"info",interactive:Zo},N.createElement(gr.I,{tabIndex:0,name:"info-circle",size:"sm",className:Fs.icon}))),N.createElement(so,{v:.5}));return N.createElement("div",{className:Fs.root},N.createElement(di.D,vi({className:Fs.field,label:fu},ms),Fa))},ja=(Xt,bn)=>({root:(0,Gr.css)({minWidth:Xt.spacing(bn??0)}),label:(0,Gr.css)({fontSize:12,fontWeight:Xt.typography.fontWeightMedium}),optional:(0,Gr.css)({fontStyle:"italic",color:Xt.colors.text.secondary}),field:(0,Gr.css)({marginBottom:0}),icon:(0,Gr.css)({color:Xt.colors.text.secondary,marginLeft:Xt.spacing(1),":hover":{color:Xt.colors.text.primary}})}),hs=({children:Xt})=>{const bn=(0,un.of)(ro);return N.createElement("div",{className:bn.root},N.createElement(zr,{gap:2},Xt))},ro=Xt=>({root:(0,Gr.css)({padding:Xt.spacing(1),backgroundColor:Xt.colors.background.secondary,borderRadius:Xt.shape.borderRadius(1)})}),as=N.forwardRef(function({items:bn,renderItem:Dn,onChange:Ii},ko){const fa=()=>{const Ua=[...bn,{}];Ii(Ua)},Zo=(Ua,ms)=>{const Fs=[...bn];Fs[Ua]=ms,Ii(Fs)},Fa=Ua=>{const ms=[...bn];ms.splice(Ua,1),Ii(ms)};return N.createElement(zr,null,bn.map((Ua,ms)=>N.createElement("div",{key:ms},Dn(Ua,Fs=>Zo(ms,Fs),()=>Fa(ms)))),N.createElement(qn.$n,{ref:ko,onClick:fa,variant:"secondary",size:"md",icon:"plus","aria-label":"Add",type:"button"}))}),rn=({children:Xt})=>N.createElement(zr,{gap:.5,direction:"column"},Xt);var Dr=t(15292),Lr=Object.defineProperty,li=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,wo=(Xt,bn,Dn)=>bn in Xt?Lr(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Go=(Xt,bn)=>{for(var Dn in bn||(bn={}))Zi.call(bn,Dn)&&wo(Xt,Dn,bn[Dn]);if(li)for(var Dn of li(bn))Di.call(bn,Dn)&&wo(Xt,Dn,bn[Dn]);return Xt};const Ko=Xt=>{const bn=Ie();return N.createElement("div",{className:bn.switch},N.createElement(Dr.d,Go({},Xt)))},Ie=()=>({switch:(0,Gr.css)({display:"flex",alignItems:"center",minHeight:30})}),yt=({grow:Xt,shrink:bn})=>N.createElement("div",{style:{display:"block",flexGrow:Xt,flexShrink:bn}});var on=t(88323),_n=t(4603),er=Object.defineProperty,or=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,cr=(Xt,bn,Dn)=>bn in Xt?er(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,ni=(Xt,bn)=>{for(var Dn in bn||(bn={}))Ui.call(bn,Dn)&&cr(Xt,Dn,bn[Dn]);if(Mi)for(var Dn of Mi(bn))Nn.call(bn,Dn)&&cr(Xt,Dn,bn[Dn]);return Xt},Xr=(Xt,bn)=>or(Xt,Er(bn)),Jr=(Xt,bn)=>{var Dn={};for(var Ii in Xt)Ui.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&Mi)for(var Ii of Mi(Xt))bn.indexOf(Ii)<0&&Nn.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};function Qi(Xt){var bn=Xt,{label:Dn}=bn,Ii=Jr(bn,["label"]);const ko=(0,un.of)(Jo),[fa]=(0,N.useState)(()=>Math.random().toString(16).slice(2)),Zo={SelectContainer:Fo,ValueContainer:No,SingleValue:No};return N.createElement("div",{className:ko.root},Dn&&N.createElement("label",{className:ko.label,htmlFor:fa},Dn,":","\xA0"),N.createElement(on.l6,Xr(ni({openMenuOnFocus:!0,inputId:fa},Ii),{components:Zo})))}const Fo=Xt=>{const{children:bn}=Xt,Dn=(0,un.of)(Jo);return N.createElement(_n.K,Xr(ni({},Xt),{className:(0,Gr.cx)(Xt.className,Dn.container)}),bn)},No=Xt=>{const{className:bn,children:Dn}=Xt,Ii=(0,un.of)(Jo);return N.createElement("div",{className:(0,Gr.cx)(bn,Ii.valueContainer)},Dn)},Jo=Xt=>({root:(0,Gr.css)({display:"flex",fontSize:12,alignItems:"center"}),label:(0,Gr.css)({color:Xt.colors.text.secondary,whiteSpace:"nowrap"}),container:(0,Gr.css)({background:"none",borderColor:"transparent"}),valueContainer:(0,Gr.css)({display:"flex",alignItems:"center",flex:"initial",color:Xt.colors.text.secondary,fontSize:12})}),br=({children:Xt})=>{const bn=(0,un.of)(Z),Dn=N.Children.map(Xt,Ii=>(0,N.isValidElement)(Ii)&&Ii.props.invalid?(0,N.cloneElement)(Ii,{className:(0,Gr.cx)(Ii.props.className,bn.invalidChild)}):Ii);return N.createElement("div",{className:bn.root},Dn)},Yn=["","base","hovered","invalid","focused"],Z=()=>({root:(0,Gr.css)({display:"flex","> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:Yn.indexOf("base"),"&:hover":{zIndex:Yn.indexOf("hovered")},"&:focus-within":{zIndex:Yn.indexOf("focused")}}}),invalidChild:(0,Gr.css)({zIndex:Yn.indexOf("invalid")})});var se=Object.defineProperty,G=Object.defineProperties,B=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Pt=(Xt,bn,Dn)=>bn in Xt?se(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,$e=(Xt,bn)=>{for(var Dn in bn||(bn={}))dt.call(bn,Dn)&&Pt(Xt,Dn,bn[Dn]);if(Pe)for(var Dn of Pe(bn))Lt.call(bn,Dn)&&Pt(Xt,Dn,bn[Dn]);return Xt},ut=(Xt,bn)=>G(Xt,B(bn));const zt=({dataSourceName:Xt,docsLink:bn,hasRequiredFields:Dn=!0,className:Ii})=>{const ko=(0,un.$j)(),fa={container:(0,Gr.css)({p:{margin:0},"p + p":{marginTop:ko.spacing(2)}}),text:(0,Gr.css)(ut($e({},ko.typography.body),{color:ko.colors.text.secondary,a:(0,Gr.css)({color:ko.colors.text.link,textDecoration:"underline","&:hover":{textDecoration:"none"}})}))};return N.createElement("div",{className:(0,Gr.cx)(fa.container,Ii)},N.createElement("p",{className:fa.text},"Before you can use the ",Xt," data source, you must configure it below or in the config file. For detailed instructions,"," ",N.createElement("a",{href:bn,target:"_blank",rel:"noreferrer"},"view the documentation"),"."),Dn&&N.createElement("p",{className:fa.text},N.createElement("i",null,"Fields marked with * are required")))};var Ht=t(29158),Fn=Object.defineProperty,Cn=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,zi=(Xt,bn,Dn)=>bn in Xt?Fn(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,co=(Xt,bn)=>{for(var Dn in bn||(bn={}))ei.call(bn,Dn)&&zi(Xt,Dn,bn[Dn]);if(Jn)for(var Dn of Jn(bn))Ci.call(bn,Dn)&&zi(Xt,Dn,bn[Dn]);return Xt},Xo=(Xt,bn)=>Cn(Xt,tr(bn));const Eo=({children:Xt,title:bn,description:Dn,isCollapsible:Ii=!1,isInitiallyOpen:ko=!0,kind:fa="section",className:Zo})=>{const{colors:Fa,typography:Ua,spacing:ms}=(0,un.$j)(),[Fs,ws]=(0,N.useState)(Ii?ko:!0),fu=Fs?"angle-up":"angle-down",wu=fa==="sub-section",Du=`${Fs?"Collapse":"Expand"} section ${bn}`,zu={header:(0,Gr.css)({display:"flex",justifyContent:"space-between",alignItems:"center"}),title:(0,Gr.css)({margin:0}),subtitle:(0,Gr.css)({margin:0,fontWeight:Ua.fontWeightRegular}),descriptionText:(0,Gr.css)(Xo(co({marginTop:ms(wu?.25:.5),marginBottom:0},Ua.bodySmall),{color:Fa.text.secondary})),content:(0,Gr.css)({marginTop:ms(2)})};return N.createElement("div",{className:Zo},N.createElement("div",{className:zu.header},fa==="section"?N.createElement("h3",{className:zu.title},bn):N.createElement("h6",{className:zu.subtitle},bn),Ii&&N.createElement(Ht.K,{name:fu,onClick:()=>ws(!Fs),type:"button",size:"xl","aria-label":Du})),Dn&&N.createElement("p",{className:zu.descriptionText},Dn),Fs&&N.createElement("div",{className:zu.content},Xt))};var Yo=Object.defineProperty,Xn=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,mr=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,ai=(Xt,bn,Dn)=>bn in Xt?Yo(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,jt=(Xt,bn)=>{for(var Dn in bn||(bn={}))yr.call(bn,Dn)&&ai(Xt,Dn,bn[Dn]);if(mr)for(var Dn of mr(bn))Rr.call(bn,Dn)&&ai(Xt,Dn,bn[Dn]);return Xt},Pn=(Xt,bn)=>Xn(Xt,fr(bn)),nr=(Xt,bn)=>{var Dn={};for(var Ii in Xt)yr.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&mr)for(var Ii of mr(Xt))bn.indexOf(Ii)<0&&Rr.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const Ir=Xt=>{var bn=Xt,{children:Dn}=bn,Ii=nr(bn,["children"]);return N.createElement(Eo,Pn(jt({},Ii),{kind:"section"}),Dn)};var fi=Object.defineProperty,Ti=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,hr=(Xt,bn,Dn)=>bn in Xt?fi(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,kr=(Xt,bn)=>{for(var Dn in bn||(bn={}))Qn.call(bn,Dn)&&hr(Xt,Dn,bn[Dn]);if(pn)for(var Dn of pn(bn))Sr.call(bn,Dn)&&hr(Xt,Dn,bn[Dn]);return Xt},Ve=(Xt,bn)=>Ti(Xt,Oe(bn)),Ot=(Xt,bn)=>{var Dn={};for(var Ii in Xt)Qn.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&pn)for(var Ii of pn(Xt))bn.indexOf(Ii)<0&&Sr.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const wn=Xt=>{var bn=Xt,{children:Dn}=bn,Ii=Ot(bn,["children"]);return N.createElement(Eo,Ve(kr({},Ii),{kind:"sub-section"}),Dn)};var Wt=t(14186),Yt=t(10354),zn=t(66864),Nr=Object.defineProperty,si=Object.defineProperties,Ki=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable,ea=(Xt,bn,Dn)=>bn in Xt?Nr(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,la=(Xt,bn)=>{for(var Dn in bn||(bn={}))Xi.call(bn,Dn)&&ea(Xt,Dn,bn[Dn]);if(Bi)for(var Dn of Bi(bn))vo.call(bn,Dn)&&ea(Xt,Dn,bn[Dn]);return Xt},ss=(Xt,bn)=>si(Xt,Ki(bn)),Rs=(Xt,bn)=>{var Dn={};for(var Ii in Xt)Xi.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&Bi)for(var Ii of Bi(Xt))bn.indexOf(Ii)<0&&vo.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const Ds="configured",Is="Reset",nu=Xt=>{var bn=Xt,{isConfigured:Dn,onReset:Ii}=bn,ko=Rs(bn,["isConfigured","onReset"]);return N.createElement(zn.Gy,null,!Dn&&N.createElement(Yt.p,ss(la({},ko),{type:"password"})),Dn&&N.createElement(Yt.p,ss(la({},ko),{type:"text",disabled:!0,value:Ds})),Dn&&N.createElement(qn.$n,{onClick:Ii,variant:"secondary"},Is))},Ls=()=>({inlineFieldNoMarginRight:(0,Gr.css)({marginRight:0}),inlineFieldWithSecret:(0,Gr.css)({'[class$="layoutChildrenWrapper"]:first-child':{flexGrow:1}})}),gu=({user:Xt,passwordConfigured:bn,userTooltip:Dn="The username of the data source account",passwordTooltip:Ii="The password of the data source account",onUserChange:ko,onPasswordChange:fa,onPasswordReset:Zo,readOnly:Fa})=>{const Ua=Ls(),ms={lastInlineField:(0,Gr.css)({marginBottom:0})};return N.createElement(N.Fragment,null,N.createElement(Wt.I,{className:Ua.inlineFieldNoMarginRight,label:"User",labelWidth:24,tooltip:Dn,required:!0,htmlFor:"basic-auth-user-input",interactive:!0,grow:!0,disabled:Fa},N.createElement(Yt.p,{id:"basic-auth-user-input",placeholder:"User",value:Xt,onChange:Fs=>ko(Fs.currentTarget.value),required:!0})),N.createElement(Wt.I,{className:(0,Gr.cx)(Ua.inlineFieldNoMarginRight,Ua.inlineFieldWithSecret,ms.lastInlineField),label:"Password",labelWidth:24,tooltip:Ii,required:!0,htmlFor:"basic-auth-password-input",interactive:!0,grow:!0,disabled:Fa},N.createElement(nu,{id:"basic-auth-password-input",isConfigured:bn,onReset:Fa?()=>{}:Zo,placeholder:"Password",onChange:Fs=>fa(Fs.currentTarget.value),required:!0})))};var Us=(Xt=>(Xt.NoAuth="NoAuth",Xt.BasicAuth="BasicAuth",Xt.OAuthForward="OAuthForward",Xt.CrossSiteCredentials="CrossSiteCredentials",Xt))(Us||{}),Iu=Object.defineProperty,Wu=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,Hu=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,fl=(Xt,bn,Dn)=>bn in Xt?Iu(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Rl=(Xt,bn)=>{for(var Dn in bn||(bn={}))Ts.call(bn,Dn)&&fl(Xt,Dn,bn[Dn]);if(Hu)for(var Dn of Hu(bn))Al.call(bn,Dn)&&fl(Xt,Dn,bn[Dn]);return Xt},Bu=(Xt,bn)=>Wu(Xt,rl(bn));const Mn={[Us.BasicAuth]:{label:"Basic authentication",value:Us.BasicAuth,description:"Authenticate with your data source username and password"},[Us.CrossSiteCredentials]:{label:"Enable cross-site access control requests",value:Us.CrossSiteCredentials,description:"Allow cross-site Access-Control requests with your existing credentials and cookies. This enables the server to authenticate the user and perform authorized requests on their behalf on other domains."},[Us.OAuthForward]:{label:"Forward OAuth Identity",value:Us.OAuthForward,description:"Forward the OAuth access token (and if available: the OIDC ID token) of the user querying to the data source"},[Us.NoAuth]:{label:"No Authentication",value:Us.NoAuth,description:"Data source is available without authentication"}},en=({selectedMethod:Xt,mostCommonMethod:bn,visibleMethods:Dn,extendedDefaultOptions:Ii,customMethods:ko,onAuthMethodSelect:fa,basicAuth:Zo,readOnly:Fa})=>{var Ua,ms,Fs,ws;const[fu,wu]=(0,N.useState)(!1),{colors:Du,spacing:zu}=(0,un.$j)(),Il=(0,N.useMemo)(()=>{var Zu;return Dn??[Us.BasicAuth,Us.OAuthForward,Us.NoAuth,...(Zu=ko?.map(Ac=>Ac.id))!=null?Zu:[]]},[ko,Dn]),bc=Il.length>1,Gl=(0,N.useMemo)(()=>{var Zu;const Ac=(Zu=ko?.reduce((vl,Vu)=>(vl[Vu.id]={label:Vu.label,value:Vu.id,description:Vu.description},vl),{}))!=null?Zu:{},tf={};let Jl;for(Jl in Mn)Ii&&Ii[Jl]?tf[Jl]=Rl(Rl({},Mn[Jl]),Ii[Jl]):tf[Jl]=Mn[Jl];const ml=Rl(Rl({},Ac),tf);return Il.filter(vl=>!!ml[vl]).map(vl=>{const Vu=ml[vl];return vl===bn&&bc?Bu(Rl({},Vu),{label:`${Vu.label} (most common)`}):Vu})},[Il,ko,Ii,bn,bc]);let oc=Xt;bc?Xt===Us.NoAuth&&bn&&!fu&&(oc=bn):oc=Il[0];let ac=null;oc===Us.BasicAuth&&Zo?ac=N.createElement(gu,Bu(Rl({},Zo),{readOnly:Fa})):oc.startsWith("custom-")&&(ac=(ms=(Ua=ko?.find(Zu=>Zu.id===oc))==null?void 0:Ua.component)!=null?ms:null);const jl=bc?"Authentication methods":(Fs=Gl[0].label)!=null?Fs:"",nc=bc?"Choose an authentication method to access the data source":(ws=Gl[0].description)!=null?ws:"",Fl={authMethods:(0,Gr.css)(Rl({marginTop:zu(2.5)},bc&&{padding:zu(2),border:`1px solid ${Du.border.weak}`})),selectedMethodFields:(0,Gr.css)({marginTop:zu(1.5)})};return N.createElement(wn,{title:jl,description:nc},N.createElement("div",{className:Fl.authMethods},bc&&N.createElement(on.l6,{options:Gl,value:oc,onChange:Zu=>{wu(!0),fa(Zu.value)},disabled:Fa}),ac&&N.createElement("div",{className:Fl.selectedMethodFields},ac)))};var sn=t(21744),qt=Object.defineProperty,In=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,te=(Xt,bn,Dn)=>bn in Xt?qt(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Ue=(Xt,bn)=>{for(var Dn in bn||(bn={}))ci.call(bn,Dn)&&te(Xt,Dn,bn[Dn]);if(Fr)for(var Dn of Fr(bn))Le.call(bn,Dn)&&te(Xt,Dn,bn[Dn]);return Xt},rt=(Xt,bn)=>In(Xt,Kn(bn)),ht=(Xt,bn)=>{var Dn={};for(var Ii in Xt)ci.call(Xt,Ii)&&bn.indexOf(Ii)<0&&(Dn[Ii]=Xt[Ii]);if(Xt!=null&&Fr)for(var Ii of Fr(Xt))bn.indexOf(Ii)<0&&Le.call(Xt,Ii)&&(Dn[Ii]=Xt[Ii]);return Dn};const Gt="configured",xn="Reset",Hn=Xt=>({configuredStyle:(0,Gr.css)` min-height: ${Xt.spacing(Xt.components.height.md)}; padding-top: ${Xt.spacing(.5)}; resize: none; `}),wr=Xt=>{var bn=Xt,{isConfigured:Dn,onReset:Ii}=bn,ko=ht(bn,["isConfigured","onReset"]);const fa=(0,un.of)(Hn);return N.createElement(zn.Gy,null,!Dn&&N.createElement(sn.f,Ue({},ko)),Dn&&N.createElement(sn.f,rt(Ue({},ko),{rows:1,disabled:!0,value:Gt,className:(0,Gr.cx)(fa.configuredStyle)})),Dn&&N.createElement(qn.$n,{onClick:Ii,variant:"secondary"},xn))};var Wr=t(10880);const vt=({children:Xt,enabled:bn,label:Dn,tooltipText:Ii,onToggle:ko,readOnly:fa})=>{const{colors:Zo,spacing:Fa}=(0,un.$j)(),Ua={container:(0,Gr.css)({marginTop:3}),checkboxContainer:(0,Gr.css)({display:"flex",alignItems:"center"}),infoIcon:(0,Gr.css)({marginTop:-2,marginLeft:5,color:Zo.text.secondary}),content:(0,Gr.css)({margin:Fa(1,0,2,3)})};return N.createElement("div",{className:Ua.container},N.createElement("div",{className:Ua.checkboxContainer},N.createElement(Wr.S,{value:bn,label:Dn,onChange:()=>ko(!bn),disabled:fa}),N.createElement(So.m,{placement:"top",content:Ii,interactive:!0},N.createElement(gr.I,{name:"info-circle",className:Ua.infoIcon,size:"sm"}))),bn&&Xt&&N.createElement("div",{className:Ua.content},Xt))},Vt=({enabled:Xt,certificateConfigured:bn,onToggle:Dn,onCertificateChange:Ii,onCertificateReset:ko,tooltips:fa,readOnly:Zo})=>{var Fa;const Ua=Ls();return N.createElement(vt,{enabled:Xt,label:"Add self-signed certificate",tooltipText:"Add your own Certificate Authority (CA) certificate on top of one generated by the certificate authorities for additional security measures",onToggle:ms=>Dn(ms),readOnly:Zo},N.createElement(Wt.I,{label:"CA Certificate",labelWidth:24,tooltip:(Fa=fa?.certificateLabel)!=null?Fa:"Your self-signed certificate",required:!0,htmlFor:"self-signed-certificate-input",interactive:!0,grow:!0,className:(0,Gr.cx)(Ua.inlineFieldNoMarginRight,Ua.inlineFieldWithSecret),disabled:Zo},N.createElement(wr,{id:"self-signed-certificate-input",isConfigured:bn,onChange:ms=>Ii(ms.currentTarget.value),onReset:Zo?()=>{}:ko,placeholder:"Begins with --- BEGIN CERTIFICATE ---",rows:6,required:!0})))},dn=({enabled:Xt,serverName:bn,clientCertificateConfigured:Dn,clientKeyConfigured:Ii,onToggle:ko,onServerNameChange:fa,onClientCertificateChange:Zo,onClientKeyChange:Fa,onClientCertificateReset:Ua,onClientKeyReset:ms,tooltips:Fs,readOnly:ws})=>{var fu,wu,Du;const zu=Ls();return N.createElement(vt,{enabled:Xt,label:"TLS Client Authentication",tooltipText:"Validate using TLS client authentication, in which the server authenticates the client",onToggle:Il=>ko(Il),readOnly:ws},N.createElement(Wt.I,{label:"ServerName",labelWidth:24,tooltip:(fu=Fs?.serverNameLabel)!=null?fu:"A Servername is used to verify the hostname on the returned certificate",required:!0,htmlFor:"client-auth-servername-input",interactive:!0,grow:!0,className:zu.inlineFieldNoMarginRight,disabled:ws},N.createElement(Yt.p,{id:"client-auth-servername-input",placeholder:"domain.example.com",value:bn,onChange:Il=>fa(Il.currentTarget.value),required:!0})),N.createElement(Wt.I,{label:"Client Certificate",labelWidth:24,tooltip:(wu=Fs?.certificateLabel)!=null?wu:"The client certificate can be generated from a Certificate Authority or be self-signed",required:!0,htmlFor:"client-auth-client-certificate-input",interactive:!0,grow:!0,className:(0,Gr.cx)(zu.inlineFieldNoMarginRight,zu.inlineFieldWithSecret),disabled:ws},N.createElement(wr,{id:"client-auth-client-certificate-input",isConfigured:Dn,onChange:Il=>Zo(Il.currentTarget.value),onReset:ws?()=>{}:Ua,placeholder:"Begins with --- BEGIN CERTIFICATE ---",rows:6,required:!0})),N.createElement(Wt.I,{label:"Client Key",labelWidth:24,tooltip:(Du=Fs?.keyLabel)!=null?Du:"The client key can be generated from a Certificate Authority or be self-signed",required:!0,htmlFor:"client-auth-client-key-input",interactive:!0,grow:!0,className:(0,Gr.cx)(zu.inlineFieldNoMarginRight,zu.inlineFieldWithSecret),disabled:ws},N.createElement(wr,{id:"client-auth-client-key-input",isConfigured:Ii,onChange:Il=>Fa(Il.currentTarget.value),onReset:ws?()=>{}:ms,placeholder:"Begins with --- RSA PRIVATE KEY CERTIFICATE ---",rows:6,required:!0})))},yn=({enabled:Xt,onToggle:bn,readOnly:Dn})=>N.createElement(vt,{enabled:Xt,label:"Skip TLS certificate validation",tooltipText:"Skipping TLS certificate validation is not recommended unless absolutely necessary or for testing",onToggle:Ii=>bn(Ii),readOnly:Dn});var ar=Object.defineProperty,wi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,bo=(Xt,bn,Dn)=>bn in Xt?ar(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,ca=(Xt,bn)=>{for(var Dn in bn||(bn={}))Ao.call(bn,Dn)&&bo(Xt,Dn,bn[Dn]);if(ho)for(var Dn of ho(bn))Mo.call(bn,Dn)&&bo(Xt,Dn,bn[Dn]);return Xt},sa=(Xt,bn)=>wi(Xt,mi(bn));const Da=({selfSignedCertificate:Xt,TLSClientAuth:bn,skipTLSVerification:Dn,readOnly:Ii})=>{const{spacing:ko}=(0,un.$j)(),fa={container:(0,Gr.css)({marginTop:ko(3)})};return N.createElement(wn,{className:fa.container,title:"TLS settings",description:"Additional security measures that can be applied on top of authentication"},N.createElement(Vt,sa(ca({},Xt),{readOnly:Ii})),N.createElement(dn,sa(ca({},bn),{readOnly:Ii})),N.createElement(yn,sa(ca({},Dn),{readOnly:Ii})))};var La=t(39268),Ja=Object.defineProperty,Ya=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ba=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,ii=(Xt,bn,Dn)=>bn in Xt?Ja(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Wo=(Xt,bn)=>{for(var Dn in bn||(bn={}))Ka.call(bn,Dn)&&ii(Xt,Dn,bn[Dn]);if(ba)for(var Dn of ba(bn))us.call(bn,Dn)&&ii(Xt,Dn,bn[Dn]);return Xt},Ra=(Xt,bn)=>Ya(Xt,Aa(bn));const _a=({header:Xt,onChange:bn,onBlur:Dn,onDelete:Ii,readOnly:ko})=>{const{spacing:fa}=(0,un.$j)(),Zo=Ls(),Fa={container:(0,Gr.css)({alignItems:"center"}),input:(0,Gr.css)({minWidth:"100%"}),headerNameField:(0,Gr.css)({width:"40%",marginRight:0,paddingRight:fa(1)}),headerValueField:(0,Gr.css)({width:"45%",marginRight:0}),removeHeaderBtn:(0,Gr.css)({margin:"0 0 3px 10px"})};return N.createElement(N.Fragment,null,N.createElement(La.C,{className:Fa.container},N.createElement(Wt.I,{label:"Header",labelWidth:9,grow:!0,className:Fa.headerNameField,htmlFor:`custom-header-${Xt.id}-name-input`,disabled:ko},N.createElement(Yt.p,{id:`custom-header-${Xt.id}-name-input`,placeholder:"X-Custom-Header",value:Xt.name,width:12,onChange:Ua=>bn(Ra(Wo({},Xt),{name:Ua.currentTarget.value})),onBlur:Dn,className:Fa.input})),N.createElement(Wt.I,{label:"Value",labelWidth:9,grow:!0,className:(0,Gr.cx)(Zo.inlineFieldWithSecret,Fa.headerValueField),htmlFor:`custom-header-${Xt.id}-value-input`,disabled:ko},N.createElement(nu,{id:`custom-header-${Xt.id}-value-input`,isConfigured:Xt.configured,placeholder:"Header value",value:Xt.value,width:12,onChange:Ua=>bn(Ra(Wo({},Xt),{value:Ua.currentTarget.value})),onReset:ko?()=>{}:()=>bn(Ra(Wo({},Xt),{configured:!1,value:""})),onBlur:Dn,className:Fa.input})),N.createElement(Ht.K,{name:"trash-alt",tooltip:"Remove header",tooltipPlacement:"top",className:Fa.removeHeaderBtn,onClick:Ii,type:"button",disabled:ko})))};var Wa=Object.defineProperty,eu=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,jn=(Xt,bn,Dn)=>bn in Xt?Wa(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,_r=(Xt,bn)=>{for(var Dn in bn||(bn={}))kt.call(bn,Dn)&&jn(Xt,Dn,bn[Dn]);if(Ne)for(var Dn of Ne(bn))Rn.call(bn,Dn)&&jn(Xt,Dn,bn[Dn]);return Xt},xr=(Xt,bn)=>eu(Xt,Ws(bn));const oi=({headers:Xt,onChange:bn,readOnly:Dn})=>{const{spacing:Ii}=(0,un.$j)(),[ko,fa]=(0,N.useState)(Xt.map(ws=>xr(_r({},ws),{id:ti(),value:""})));(0,N.useEffect)(()=>{fa(ws=>{let fu=!1;const wu=ws.map(Du=>{var zu;const Il=(zu=Xt.find(bc=>bc.name===Du.name))==null?void 0:zu.configured;return typeof Il<"u"&&Du.configured!==Il?(fu=!0,xr(_r({},Du),{configured:Il})):Du});return fu?wu:ws})},[Xt]);const Zo=()=>{fa([...ko,{id:ti(),name:"",value:"",configured:!1}])},Fa=(ws,fu)=>{fa(ko.map(wu=>wu.id===ws?_r({},fu):wu))},Ua=ws=>{const fu=ko.findIndex(Du=>Du.id===ws);if(fu===-1)return;const wu=[...ko];wu.splice(fu,1),fa(wu),bn(wu.map(({name:Du,value:zu,configured:Il})=>({name:Du,value:zu,configured:Il})))},ms=()=>{bn(ko.map(({name:ws,value:fu,configured:wu})=>({name:ws,value:fu,configured:wu})))},Fs={container:(0,Gr.css)({marginTop:Ii(3)}),addHeaderButton:(0,Gr.css)({marginTop:Ii(1.5)})};return N.createElement("div",{className:Fs.container},N.createElement(wn,{title:"HTTP headers",description:"Pass along additional context and metadata about the request/response",isCollapsible:!0,isInitiallyOpen:ko.length>0},N.createElement("div",null,ko.map(ws=>N.createElement(_a,{key:ws.id,header:ws,onChange:fu=>Fa(fu.id,fu),onDelete:()=>Ua(ws.id),onBlur:ms,readOnly:Dn}))),N.createElement("div",{className:Fs.addHeaderButton},N.createElement(qn.$n,{icon:"plus",variant:"secondary",fill:"outline",onClick:Zo,disabled:Dn},ko.length===0?"Add header":"Add another header"))))};function ti(){return Math.random().toString(16).slice(2)}var Ri=Object.defineProperty,Fi=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,Ji=(Xt,bn,Dn)=>bn in Xt?Ri(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Uo=(Xt,bn)=>{for(var Dn in bn||(bn={}))Do.call(bn,Dn)&&Ji(Xt,Dn,bn[Dn]);if(yo)for(var Dn of yo(bn))po.call(bn,Dn)&&Ji(Xt,Dn,bn[Dn]);return Xt},Ia=(Xt,bn)=>Fi(Xt,Gi(bn));const za=({selectedMethod:Xt,mostCommonMethod:bn,visibleMethods:Dn,extendedDefaultOptions:Ii,customMethods:ko,onAuthMethodSelect:fa,basicAuth:Zo,TLS:Fa,customHeaders:Ua,readOnly:ms=!1})=>{const Fs={container:(0,Gr.css)({maxWidth:578})};return N.createElement("div",{className:Fs.container},N.createElement(Ir,{title:"Authentication"},N.createElement(en,{selectedMethod:Xt,mostCommonMethod:bn,customMethods:ko,visibleMethods:Dn,extendedDefaultOptions:Ii,onAuthMethodSelect:fa,basicAuth:Zo,readOnly:ms}),Fa&&N.createElement(Da,Ia(Uo({},Fa),{readOnly:ms})),Ua&&N.createElement(oi,Ia(Uo({},Ua),{readOnly:ms}))))};var Ma=Object.defineProperty,xo=Object.defineProperties,xs=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable,Xa=(Xt,bn,Dn)=>bn in Xt?Ma(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,wa=(Xt,bn)=>{for(var Dn in bn||(bn={}))Pa.call(bn,Dn)&&Xa(Xt,Dn,bn[Dn]);if(va)for(var Dn of va(bn))Na.call(bn,Dn)&&Xa(Xt,Dn,bn[Dn]);return Xt},Ga=(Xt,bn)=>xo(Xt,xs(bn));const vs="httpHeaderName",Za="httpHeaderValue";function $a({config:Xt,onChange:bn}){return{selectedMethod:ns(Xt),onAuthMethodSelect:uu(Xt,bn),basicAuth:Mu(Xt,bn),TLS:Lu(Xt,bn),customHeaders:ju(Xt,bn),readOnly:Xt.readOnly}}function ns(Xt){return Xt.basicAuth?Us.BasicAuth:Xt.withCredentials?Us.CrossSiteCredentials:Xt.jsonData.oauthPassThru?Us.OAuthForward:Us.NoAuth}function uu(Xt,bn){return Dn=>{bn(Ga(wa({},Xt),{basicAuth:Dn===Us.BasicAuth,withCredentials:Dn===Us.CrossSiteCredentials,jsonData:Ga(wa({},Xt.jsonData),{oauthPassThru:Dn===Us.OAuthForward})}))}}function Mu(Xt,bn){return{user:Xt.basicAuthUser,passwordConfigured:Xt.secureJsonFields.basicAuthPassword,onUserChange:Dn=>bn(Ga(wa({},Xt),{basicAuthUser:Dn})),onPasswordChange:Dn=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{basicAuthPassword:Dn})})),onPasswordReset:()=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{basicAuthPassword:""}),secureJsonFields:Ga(wa({},Xt.secureJsonFields),{basicAuthPassword:!1})}))}}function Lu(Xt,bn){return{selfSignedCertificate:{enabled:!!Xt.jsonData.tlsAuthWithCACert,certificateConfigured:Xt.secureJsonFields.tlsCACert,onToggle:Dn=>bn(Ga(wa({},Xt),{jsonData:Ga(wa({},Xt.jsonData),{tlsAuthWithCACert:Dn})})),onCertificateChange:Dn=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{tlsCACert:Dn})})),onCertificateReset:()=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{tlsCACert:""}),secureJsonFields:Ga(wa({},Xt.secureJsonFields),{tlsCACert:!1})}))},TLSClientAuth:{enabled:Xt.jsonData.tlsAuth,serverName:Xt.jsonData.serverName,clientCertificateConfigured:Xt.secureJsonFields.tlsClientCert,clientKeyConfigured:Xt.secureJsonFields.tlsClientKey,onToggle:Dn=>bn(Ga(wa({},Xt),{jsonData:Ga(wa({},Xt.jsonData),{tlsAuth:Dn})})),onServerNameChange:Dn=>bn(Ga(wa({},Xt),{jsonData:Ga(wa({},Xt.jsonData),{serverName:Dn})})),onClientCertificateChange:Dn=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{tlsClientCert:Dn})})),onClientCertificateReset:()=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{tlsClientCert:""}),secureJsonFields:Ga(wa({},Xt.secureJsonFields),{tlsClientCert:!1})})),onClientKeyChange:Dn=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{tlsClientKey:Dn})})),onClientKeyReset:()=>bn(Ga(wa({},Xt),{secureJsonData:Ga(wa({},Xt.secureJsonData),{tlsClientKey:""}),secureJsonFields:Ga(wa({},Xt.secureJsonFields),{tlsClientKey:!1})}))},skipTLSVerification:{enabled:Xt.jsonData.tlsSkipVerify,onToggle:Dn=>bn(Ga(wa({},Xt),{jsonData:Ga(wa({},Xt.jsonData),{tlsSkipVerify:Dn})}))}}}function ju(Xt,bn){return{headers:Object.keys(Xt.jsonData).filter(Ii=>Ii.startsWith(vs)).sort().map(Ii=>{var ko;const fa=Ii.slice(vs.length);return{name:Xt.jsonData[Ii],configured:(ko=Xt.secureJsonFields[`${Za}${fa}`])!=null?ko:!1}}),onChange:Ii=>{const ko=Object.fromEntries(Object.entries(Xt.jsonData).filter(([Fa])=>!Fa.startsWith(vs))),fa=Object.fromEntries(Object.entries(Xt.secureJsonData||{}).filter(([Fa])=>!Fa.startsWith(Za))),Zo=Object.fromEntries(Object.entries(Xt.secureJsonFields).filter(([Fa])=>!Fa.startsWith(Za)));Ii.forEach((Fa,Ua)=>{ko[`${vs}${Ua+1}`]=Fa.name,Fa.configured?Zo[`${Za}${Ua+1}`]=!0:fa[`${Za}${Ua+1}`]=Fa.value}),bn(Ga(wa({},Xt),{jsonData:ko,secureJsonData:fa,secureJsonFields:Zo}))}}}var pl=Object.defineProperty,pu=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,su=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,bu=(Xt,bn,Dn)=>bn in Xt?pl(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Ul=(Xt,bn)=>{for(var Dn in bn||(bn={}))Au.call(bn,Dn)&&bu(Xt,Dn,bn[Dn]);if(su)for(var Dn of su(bn))wl.call(bn,Dn)&&bu(Xt,Dn,bn[Dn]);return Xt},Wl=(Xt,bn)=>pu(Xt,ks(bn));const il=({config:Xt,onChange:bn,description:Dn,urlPlaceholder:Ii,urlTooltip:ko,urlLabel:fa,className:Zo})=>{const Fa=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/.test(Xt.url),Ua={container:(0,Gr.css)({maxWidth:578})};return N.createElement(N.Fragment,null,N.createElement(Ir,{title:"Connection",description:Dn,className:(0,Gr.cx)(Ua.container,Zo)},N.createElement(Wt.I,{htmlFor:"connection-url",label:fa||"URL",labelWidth:24,tooltip:ko||N.createElement(N.Fragment,null,"Specify a complete HTTP URL",N.createElement("br",null),"(for example https://example.com:8080)"),grow:!0,disabled:Xt.readOnly,required:!0,invalid:!Fa&&!Xt.readOnly,error:Fa?"":"Please enter a valid URL",interactive:!0},N.createElement(Yt.p,{id:"connection-url","aria-label":"Data source connection URL",onChange:ms=>bn(Wl(Ul({},Xt),{url:ms.currentTarget.value})),value:Xt.url||"",placeholder:Ii||"URL"}))))};var _l=t(79924),Hs=Object.defineProperty,Pl=Object.defineProperties,Ql=Object.getOwnPropertyDescriptors,ll=Object.getOwnPropertySymbols,Kl=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Sa=(Xt,bn,Dn)=>bn in Xt?Hs(Xt,bn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Xt[bn]=Dn,Ea=(Xt,bn)=>{for(var Dn in bn||(bn={}))Kl.call(bn,Dn)&&Sa(Xt,Dn,bn[Dn]);if(ll)for(var Dn of ll(bn))ia.call(bn,Dn)&&Sa(Xt,Dn,bn[Dn]);return Xt},rs=(Xt,bn)=>Pl(Xt,Ql(bn));const Ns=({config:Xt,onChange:bn,className:Dn})=>{const Ii=Zo=>{bn(rs(Ea({},Xt),{jsonData:rs(Ea({},Xt.jsonData),{keepCookies:Zo})}))},ko=Zo=>{bn(rs(Ea({},Xt),{jsonData:rs(Ea({},Xt.jsonData),{timeout:parseInt(Zo.currentTarget.value,10)})}))},fa={container:(0,Gr.css)({maxWidth:578})};return N.createElement(wn,{title:"Advanced HTTP settings",className:(0,Gr.cx)(fa.container,Dn)},N.createElement(Wt.I,{htmlFor:"advanced-http-cookies",label:"Allowed cookies",labelWidth:24,tooltip:"Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.",disabled:Xt.readOnly,grow:!0},N.createElement(_l.u,{id:"advanced-http-cookies",placeholder:"New cookie (hit enter to add)",tags:Xt.jsonData.keepCookies,onChange:Ii})),N.createElement(Wt.I,{htmlFor:"advanced-http-timeout",label:"Timeout",labelWidth:24,tooltip:"HTTP request timeout in seconds",disabled:Xt.readOnly,grow:!0},N.createElement(Yt.p,{id:"advanced-http-timeout",type:"number",min:0,placeholder:"Timeout in seconds","aria-label":"Timeout in seconds",value:Xt.jsonData.timeout,onChange:ko})))}},98167:(J,g,t)=>{"use strict";t.r(g),t.d(g,{AND:()=>w,AS:()=>b,ASC:()=>v,BY:()=>f,COMPARISON_OPERATORS:()=>D,DESC:()=>p,EQUALS:()=>R,FROM:()=>l,GROUP:()=>m,LIMIT:()=>h,LOGICAL_OPERATORS:()=>O,NOT_EQUALS:()=>M,OR:()=>S,ORDER:()=>u,SCHEMA:()=>y,SELECT:()=>i,STD_OPERATORS:()=>P,WHERE:()=>s,WITH:()=>d,conf:()=>T,language:()=>A});const i="select",l="from",s="where",m="group",u="order",f="by",p="desc",v="asc",h="limit",d="with",b="as",y="schema",w="AND",S="OR",O=[w,S],R="=",M="!=",D=[R,M],P=[...D],T={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},A={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],logicalOperators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME"],comparisonOperators:["<>",">","<",">=","<=","=","!=","&","~","^","%"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@templateVariables"},{include:"@macros"},{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},{include:"@schemaTable"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$|<|>|=|!|%|&|+|\|-|*|/|~|^]+/,{cases:{"@operators":"operator","@comparisonOperators":"operator","@logicalOperators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}]],templateVariables:[[/\$[a-zA-Z0-9]+/,"variable"]],macros:[[/\$__[a-zA-Z0-9-_]+/,"type"]],schemaTable:[[/(\w+)\./,"identifier"],[/(\w+\.\w+)/,"identifier"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},17466:(J,g,t)=>{"use strict";t.d(g,{N:()=>Or});var i=t(96540),l=t(32196),s=t(40845),m=t(88323),u=t(14186),f=t(10354),p=t(66864),v=t(55852),h=Object.defineProperty,d=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,O=(Ln,En,Gn)=>En in Ln?h(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,R=(Ln,En)=>{for(var Gn in En||(En={}))w.call(En,Gn)&&O(Ln,Gn,En[Gn]);if(y)for(var Gn of y(En))S.call(En,Gn)&&O(Ln,Gn,En[Gn]);return Ln},M=(Ln,En)=>d(Ln,b(En)),D=(Ln,En)=>{var Gn={};for(var rr in Ln)w.call(Ln,rr)&&En.indexOf(rr)<0&&(Gn[rr]=Ln[rr]);if(Ln!=null&&y)for(var rr of y(Ln))En.indexOf(rr)<0&&S.call(Ln,rr)&&(Gn[rr]=Ln[rr]);return Gn};const P="configured",T="Reset",A=Ln=>{var En=Ln,{isConfigured:Gn,onReset:rr}=En,sr=D(En,["isConfigured","onReset"]);return i.createElement(p.Gy,null,!Gn&&i.createElement(f.p,M(R({},sr),{type:"password"})),Gn&&i.createElement(f.p,M(R({},sr),{type:"text",disabled:!0,value:P})),Gn&&i.createElement(v.$n,{onClick:rr,variant:"secondary"},T))},j=()=>({inlineFieldNoMarginRight:(0,l.css)({marginRight:0}),inlineFieldWithSecret:(0,l.css)({'[class$="layoutChildrenWrapper"]:first-child':{flexGrow:1}})}),ae=({user:Ln,passwordConfigured:En,userTooltip:Gn="The username of the data source account",passwordTooltip:rr="The password of the data source account",onUserChange:sr,onPasswordChange:pi,onPasswordReset:yi,readOnly:jr})=>{const ui=j(),bi={lastInlineField:(0,l.css)({marginBottom:0})};return i.createElement(i.Fragment,null,i.createElement(u.I,{className:ui.inlineFieldNoMarginRight,label:"User",labelWidth:24,tooltip:Gn,required:!0,htmlFor:"basic-auth-user-input",interactive:!0,grow:!0,disabled:jr},i.createElement(f.p,{id:"basic-auth-user-input",placeholder:"User",value:Ln,onChange:ri=>sr(ri.currentTarget.value),required:!0})),i.createElement(u.I,{className:(0,l.cx)(ui.inlineFieldNoMarginRight,ui.inlineFieldWithSecret,bi.lastInlineField),label:"Password",labelWidth:24,tooltip:rr,required:!0,htmlFor:"basic-auth-password-input",interactive:!0,grow:!0,disabled:jr},i.createElement(A,{id:"basic-auth-password-input",isConfigured:En,onReset:jr?()=>{}:yi,placeholder:"Password",onChange:ri=>pi(ri.currentTarget.value),required:!0})))};var _=t(29020),N=t(67861),W=Object.defineProperty,he=Object.defineProperties,me=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,oe=(Ln,En,Gn)=>En in Ln?W(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,re=(Ln,En)=>{for(var Gn in En||(En={}))ve.call(En,Gn)&&oe(Ln,Gn,En[Gn]);if(fe)for(var Gn of fe(En))ce.call(En,Gn)&&oe(Ln,Gn,En[Gn]);return Ln},H=(Ln,En)=>he(Ln,me(En));const V={[N.q.BasicAuth]:{label:"Basic authentication",value:N.q.BasicAuth,description:"Authenticate with your data source username and password"},[N.q.CrossSiteCredentials]:{label:"Enable cross-site access control requests",value:N.q.CrossSiteCredentials,description:"Allow cross-site Access-Control requests with your existing credentials and cookies. This enables the server to authenticate the user and perform authorized requests on their behalf on other domains."},[N.q.OAuthForward]:{label:"Forward OAuth Identity",value:N.q.OAuthForward,description:"Forward the OAuth access token (and if available: the OIDC ID token) of the user querying to the data source"},[N.q.NoAuth]:{label:"No Authentication",value:N.q.NoAuth,description:"Data source is available without authentication"}},Q=({selectedMethod:Ln,mostCommonMethod:En,visibleMethods:Gn,extendedDefaultOptions:rr,customMethods:sr,onAuthMethodSelect:pi,basicAuth:yi,readOnly:jr})=>{var ui,bi,ri,hi;const[Si,Kr]=(0,i.useState)(!1),{colors:xi,spacing:Ai}=(0,s.$j)(),Pi=(0,i.useMemo)(()=>{var ln;return Gn??[N.q.BasicAuth,N.q.OAuthForward,N.q.NoAuth,...(ln=sr?.map(An=>An.id))!=null?ln:[]]},[sr,Gn]),io=Pi.length>1,lo=(0,i.useMemo)(()=>{var ln;const An=(ln=sr?.reduce((ir,mt)=>(ir[mt.id]={label:mt.label,value:mt.id,description:mt.description},ir),{}))!=null?ln:{},Cr={};let _i;for(_i in V)rr&&rr[_i]?Cr[_i]=re(re({},V[_i]),rr[_i]):Cr[_i]=V[_i];const Sn=re(re({},An),Cr);return Pi.filter(ir=>!!Sn[ir]).map(ir=>{const mt=Sn[ir];return ir===En&&io?H(re({},mt),{label:`${mt.label} (most common)`}):mt})},[Pi,sr,rr,En,io]);let Gr=Ln;io?Ln===N.q.NoAuth&&En&&!Si&&(Gr=En):Gr=Pi[0];let un=null;Gr===N.q.BasicAuth&&yi?un=i.createElement(ae,H(re({},yi),{readOnly:jr})):Gr.startsWith("custom-")&&(un=(bi=(ui=sr?.find(ln=>ln.id===Gr))==null?void 0:ui.component)!=null?bi:null);const qn=io?"Authentication methods":(ri=lo[0].label)!=null?ri:"",kn=io?"Choose an authentication method to access the data source":(hi=lo[0].description)!=null?hi:"",St={authMethods:(0,l.css)(re({marginTop:Ai(2.5)},io&&{padding:Ai(2),border:`1px solid ${xi.border.weak}`})),selectedMethodFields:(0,l.css)({marginTop:Ai(1.5)})};return i.createElement(_.I,{title:qn,description:kn},i.createElement("div",{className:St.authMethods},io&&i.createElement(m.l6,{options:lo,value:Gr,onChange:ln=>{Kr(!0),pi(ln.value)},disabled:jr}),un&&i.createElement("div",{className:St.selectedMethodFields},un)))};var Te=t(21744),Re=Object.defineProperty,ne=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ee=(Ln,En,Gn)=>En in Ln?Re(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,xe=(Ln,En)=>{for(var Gn in En||(En={}))Se.call(En,Gn)&&Ee(Ln,Gn,En[Gn]);if(ye)for(var Gn of ye(En))Ae.call(En,Gn)&&Ee(Ln,Gn,En[Gn]);return Ln},nt=(Ln,En)=>ne(Ln,pe(En)),Tt=(Ln,En)=>{var Gn={};for(var rr in Ln)Se.call(Ln,rr)&&En.indexOf(rr)<0&&(Gn[rr]=Ln[rr]);if(Ln!=null&&ye)for(var rr of ye(Ln))En.indexOf(rr)<0&&Ae.call(Ln,rr)&&(Gn[rr]=Ln[rr]);return Gn};const pt="configured",Rt="Reset",tt=Ln=>({configuredStyle:(0,l.css)` min-height: ${Ln.spacing(Ln.components.height.md)}; padding-top: ${Ln.spacing(.5)}; resize: none; `}),U=Ln=>{var En=Ln,{isConfigured:Gn,onReset:rr}=En,sr=Tt(En,["isConfigured","onReset"]);const pi=(0,s.of)(tt);return i.createElement(p.Gy,null,!Gn&&i.createElement(Te.f,xe({},sr)),Gn&&i.createElement(Te.f,nt(xe({},sr),{rows:1,disabled:!0,value:pt,className:(0,l.cx)(pi.configuredStyle)})),Gn&&i.createElement(v.$n,{onClick:rr,variant:"secondary"},Rt))};var F=t(10880),Y=t(56034),le=t(14578);const ke=({children:Ln,enabled:En,label:Gn,tooltipText:rr,onToggle:sr,readOnly:pi})=>{const{colors:yi,spacing:jr}=(0,s.$j)(),ui={container:(0,l.css)({marginTop:3}),checkboxContainer:(0,l.css)({display:"flex",alignItems:"center"}),infoIcon:(0,l.css)({marginTop:-2,marginLeft:5,color:yi.text.secondary}),content:(0,l.css)({margin:jr(1,0,2,3)})};return i.createElement("div",{className:ui.container},i.createElement("div",{className:ui.checkboxContainer},i.createElement(F.S,{value:En,label:Gn,onChange:()=>sr(!En),disabled:pi}),i.createElement(Y.m,{placement:"top",content:rr,interactive:!0},i.createElement(le.I,{name:"info-circle",className:ui.infoIcon,size:"sm"}))),En&&Ln&&i.createElement("div",{className:ui.content},Ln))},Ye=({enabled:Ln,certificateConfigured:En,onToggle:Gn,onCertificateChange:rr,onCertificateReset:sr,tooltips:pi,readOnly:yi})=>{var jr;const ui=j();return i.createElement(ke,{enabled:Ln,label:"Add self-signed certificate",tooltipText:"Add your own Certificate Authority (CA) certificate on top of one generated by the certificate authorities for additional security measures",onToggle:bi=>Gn(bi),readOnly:yi},i.createElement(u.I,{label:"CA Certificate",labelWidth:24,tooltip:(jr=pi?.certificateLabel)!=null?jr:"Your self-signed certificate",required:!0,htmlFor:"self-signed-certificate-input",interactive:!0,grow:!0,className:(0,l.cx)(ui.inlineFieldNoMarginRight,ui.inlineFieldWithSecret),disabled:yi},i.createElement(U,{id:"self-signed-certificate-input",isConfigured:En,onChange:bi=>rr(bi.currentTarget.value),onReset:yi?()=>{}:sr,placeholder:"Begins with --- BEGIN CERTIFICATE ---",rows:6,required:!0})))},ft=({enabled:Ln,serverName:En,clientCertificateConfigured:Gn,clientKeyConfigured:rr,onToggle:sr,onServerNameChange:pi,onClientCertificateChange:yi,onClientKeyChange:jr,onClientCertificateReset:ui,onClientKeyReset:bi,tooltips:ri,readOnly:hi})=>{var Si,Kr,xi;const Ai=j();return i.createElement(ke,{enabled:Ln,label:"TLS Client Authentication",tooltipText:"Validate using TLS client authentication, in which the server authenticates the client",onToggle:Pi=>sr(Pi),readOnly:hi},i.createElement(u.I,{label:"ServerName",labelWidth:24,tooltip:(Si=ri?.serverNameLabel)!=null?Si:"A Servername is used to verify the hostname on the returned certificate",required:!0,htmlFor:"client-auth-servername-input",interactive:!0,grow:!0,className:Ai.inlineFieldNoMarginRight,disabled:hi},i.createElement(f.p,{id:"client-auth-servername-input",placeholder:"domain.example.com",value:En,onChange:Pi=>pi(Pi.currentTarget.value),required:!0})),i.createElement(u.I,{label:"Client Certificate",labelWidth:24,tooltip:(Kr=ri?.certificateLabel)!=null?Kr:"The client certificate can be generated from a Certificate Authority or be self-signed",required:!0,htmlFor:"client-auth-client-certificate-input",interactive:!0,grow:!0,className:(0,l.cx)(Ai.inlineFieldNoMarginRight,Ai.inlineFieldWithSecret),disabled:hi},i.createElement(U,{id:"client-auth-client-certificate-input",isConfigured:Gn,onChange:Pi=>yi(Pi.currentTarget.value),onReset:hi?()=>{}:ui,placeholder:"Begins with --- BEGIN CERTIFICATE ---",rows:6,required:!0})),i.createElement(u.I,{label:"Client Key",labelWidth:24,tooltip:(xi=ri?.keyLabel)!=null?xi:"The client key can be generated from a Certificate Authority or be self-signed",required:!0,htmlFor:"client-auth-client-key-input",interactive:!0,grow:!0,className:(0,l.cx)(Ai.inlineFieldNoMarginRight,Ai.inlineFieldWithSecret),disabled:hi},i.createElement(U,{id:"client-auth-client-key-input",isConfigured:rr,onChange:Pi=>jr(Pi.currentTarget.value),onReset:hi?()=>{}:bi,placeholder:"Begins with --- RSA PRIVATE KEY CERTIFICATE ---",rows:6,required:!0})))},wt=({enabled:Ln,onToggle:En,readOnly:Gn})=>i.createElement(ke,{enabled:Ln,label:"Skip TLS certificate validation",tooltipText:"Skipping TLS certificate validation is not recommended unless absolutely necessary or for testing",onToggle:rr=>En(rr),readOnly:Gn});var Ut=Object.defineProperty,Ke=Object.defineProperties,it=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,I=(Ln,En,Gn)=>En in Ln?Ut(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,K=(Ln,En)=>{for(var Gn in En||(En={}))et.call(En,Gn)&&I(Ln,Gn,En[Gn]);if(At)for(var Gn of At(En))ee.call(En,Gn)&&I(Ln,Gn,En[Gn]);return Ln},ue=(Ln,En)=>Ke(Ln,it(En));const De=({selfSignedCertificate:Ln,TLSClientAuth:En,skipTLSVerification:Gn,readOnly:rr})=>{const{spacing:sr}=(0,s.$j)(),pi={container:(0,l.css)({marginTop:sr(3)})};return i.createElement(_.I,{className:pi.container,title:"TLS settings",description:"Additional security measures that can be applied on top of authentication"},i.createElement(Ye,ue(K({},Ln),{readOnly:rr})),i.createElement(ft,ue(K({},En),{readOnly:rr})),i.createElement(wt,ue(K({},Gn),{readOnly:rr})))};var He=t(39268),Fe=t(29158),ze=Object.defineProperty,qe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,st=(Ln,En,Gn)=>En in Ln?ze(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,Me=(Ln,En)=>{for(var Gn in En||(En={}))ct.call(En,Gn)&&st(Ln,Gn,En[Gn]);if(_t)for(var Gn of _t(En))Ge.call(En,Gn)&&st(Ln,Gn,En[Gn]);return Ln},ie=(Ln,En)=>qe(Ln,We(En));const ge=({header:Ln,onChange:En,onBlur:Gn,onDelete:rr,readOnly:sr})=>{const{spacing:pi}=(0,s.$j)(),yi=j(),jr={container:(0,l.css)({alignItems:"center"}),input:(0,l.css)({minWidth:"100%"}),headerNameField:(0,l.css)({width:"40%",marginRight:0,paddingRight:pi(1)}),headerValueField:(0,l.css)({width:"45%",marginRight:0}),removeHeaderBtn:(0,l.css)({margin:"0 0 3px 10px"})};return i.createElement(i.Fragment,null,i.createElement(He.C,{className:jr.container},i.createElement(u.I,{label:"Header",labelWidth:9,grow:!0,className:jr.headerNameField,htmlFor:`custom-header-${Ln.id}-name-input`,disabled:sr},i.createElement(f.p,{id:`custom-header-${Ln.id}-name-input`,placeholder:"X-Custom-Header",value:Ln.name,width:12,onChange:ui=>En(ie(Me({},Ln),{name:ui.currentTarget.value})),onBlur:Gn,className:jr.input})),i.createElement(u.I,{label:"Value",labelWidth:9,grow:!0,className:(0,l.cx)(yi.inlineFieldWithSecret,jr.headerValueField),htmlFor:`custom-header-${Ln.id}-value-input`,disabled:sr},i.createElement(A,{id:`custom-header-${Ln.id}-value-input`,isConfigured:Ln.configured,placeholder:"Header value",value:Ln.value,width:12,onChange:ui=>En(ie(Me({},Ln),{value:ui.currentTarget.value})),onReset:sr?()=>{}:()=>En(ie(Me({},Ln),{configured:!1,value:""})),onBlur:Gn,className:jr.input})),i.createElement(Fe.K,{name:"trash-alt",tooltip:"Remove header",tooltipPlacement:"top",className:jr.removeHeaderBtn,onClick:rr,type:"button",disabled:sr})))};var z=Object.defineProperty,be=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,at=(Ln,En,Gn)=>En in Ln?z(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,$t=(Ln,En)=>{for(var Gn in En||(En={}))nn.call(En,Gn)&&at(Ln,Gn,En[Gn]);if(Bt)for(var Gn of Bt(En))bt.call(En,Gn)&&at(Ln,Gn,En[Gn]);return Ln},On=(Ln,En)=>be(Ln,Qe(En));const Ct=({headers:Ln,onChange:En,readOnly:Gn})=>{const{spacing:rr}=(0,s.$j)(),[sr,pi]=(0,i.useState)(Ln.map(hi=>On($t({},hi),{id:Zt(),value:""})));(0,i.useEffect)(()=>{pi(hi=>{let Si=!1;const Kr=hi.map(xi=>{var Ai;const Pi=(Ai=Ln.find(io=>io.name===xi.name))==null?void 0:Ai.configured;return typeof Pi<"u"&&xi.configured!==Pi?(Si=!0,On($t({},xi),{configured:Pi})):xi});return Si?Kr:hi})},[Ln]);const yi=()=>{pi([...sr,{id:Zt(),name:"",value:"",configured:!1}])},jr=(hi,Si)=>{pi(sr.map(Kr=>Kr.id===hi?$t({},Si):Kr))},ui=hi=>{const Si=sr.findIndex(xi=>xi.id===hi);if(Si===-1)return;const Kr=[...sr];Kr.splice(Si,1),pi(Kr),En(Kr.map(({name:xi,value:Ai,configured:Pi})=>({name:xi,value:Ai,configured:Pi})))},bi=()=>{En(sr.map(({name:hi,value:Si,configured:Kr})=>({name:hi,value:Si,configured:Kr})))},ri={container:(0,l.css)({marginTop:rr(3)}),addHeaderButton:(0,l.css)({marginTop:rr(1.5)})};return i.createElement("div",{className:ri.container},i.createElement(_.I,{title:"HTTP headers",description:"Pass along additional context and metadata about the request/response",isCollapsible:!0,isInitiallyOpen:sr.length>0},i.createElement("div",null,sr.map(hi=>i.createElement(ge,{key:hi.id,header:hi,onChange:Si=>jr(Si.id,Si),onDelete:()=>ui(hi.id),onBlur:bi,readOnly:Gn}))),i.createElement("div",{className:ri.addHeaderButton},i.createElement(v.$n,{icon:"plus",variant:"secondary",fill:"outline",onClick:yi,disabled:Gn},sr.length===0?"Add header":"Add another header"))))};function Zt(){return Math.random().toString(16).slice(2)}var Wn=t(91062),Zn=Object.defineProperty,xt=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,hn=(Ln,En,Gn)=>En in Ln?Zn(Ln,En,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ln[En]=Gn,cn=(Ln,En)=>{for(var Gn in En||(En={}))Qt.call(En,Gn)&&hn(Ln,Gn,En[Gn]);if(gn)for(var Gn of gn(En))Dt.call(En,Gn)&&hn(Ln,Gn,En[Gn]);return Ln},an=(Ln,En)=>xt(Ln,Xe(En));const Or=({selectedMethod:Ln,mostCommonMethod:En,visibleMethods:Gn,extendedDefaultOptions:rr,customMethods:sr,onAuthMethodSelect:pi,basicAuth:yi,TLS:jr,customHeaders:ui,readOnly:bi=!1})=>{const ri={container:(0,l.css)({maxWidth:578})};return i.createElement("div",{className:ri.container},i.createElement(Wn.A,{title:"Authentication"},i.createElement(Q,{selectedMethod:Ln,mostCommonMethod:En,customMethods:sr,visibleMethods:Gn,extendedDefaultOptions:rr,onAuthMethodSelect:pi,basicAuth:yi,readOnly:bi}),jr&&i.createElement(De,an(cn({},jr),{readOnly:bi})),ui&&i.createElement(Ct,an(cn({},ui),{readOnly:bi}))))}},67861:(J,g,t)=>{"use strict";t.d(g,{q:()=>i});var i=(l=>(l.NoAuth="NoAuth",l.BasicAuth="BasicAuth",l.OAuthForward="OAuthForward",l.CrossSiteCredentials="CrossSiteCredentials",l))(i||{})},66025:(J,g,t)=>{"use strict";t.d(g,{pe:()=>w});var i=t(67861),l=Object.defineProperty,s=Object.defineProperties,m=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,v=(P,T,A)=>T in P?l(P,T,{enumerable:!0,configurable:!0,writable:!0,value:A}):P[T]=A,h=(P,T)=>{for(var A in T||(T={}))f.call(T,A)&&v(P,A,T[A]);if(u)for(var A of u(T))p.call(T,A)&&v(P,A,T[A]);return P},d=(P,T)=>s(P,m(T));const b="httpHeaderName",y="httpHeaderValue";function w({config:P,onChange:T}){return{selectedMethod:S(P),onAuthMethodSelect:O(P,T),basicAuth:R(P,T),TLS:M(P,T),customHeaders:D(P,T),readOnly:P.readOnly}}function S(P){return P.basicAuth?i.q.BasicAuth:P.withCredentials?i.q.CrossSiteCredentials:P.jsonData.oauthPassThru?i.q.OAuthForward:i.q.NoAuth}function O(P,T){return A=>{T(d(h({},P),{basicAuth:A===i.q.BasicAuth,withCredentials:A===i.q.CrossSiteCredentials,jsonData:d(h({},P.jsonData),{oauthPassThru:A===i.q.OAuthForward})}))}}function R(P,T){return{user:P.basicAuthUser,passwordConfigured:P.secureJsonFields.basicAuthPassword,onUserChange:A=>T(d(h({},P),{basicAuthUser:A})),onPasswordChange:A=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{basicAuthPassword:A})})),onPasswordReset:()=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{basicAuthPassword:""}),secureJsonFields:d(h({},P.secureJsonFields),{basicAuthPassword:!1})}))}}function M(P,T){return{selfSignedCertificate:{enabled:!!P.jsonData.tlsAuthWithCACert,certificateConfigured:P.secureJsonFields.tlsCACert,onToggle:A=>T(d(h({},P),{jsonData:d(h({},P.jsonData),{tlsAuthWithCACert:A})})),onCertificateChange:A=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{tlsCACert:A})})),onCertificateReset:()=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{tlsCACert:""}),secureJsonFields:d(h({},P.secureJsonFields),{tlsCACert:!1})}))},TLSClientAuth:{enabled:P.jsonData.tlsAuth,serverName:P.jsonData.serverName,clientCertificateConfigured:P.secureJsonFields.tlsClientCert,clientKeyConfigured:P.secureJsonFields.tlsClientKey,onToggle:A=>T(d(h({},P),{jsonData:d(h({},P.jsonData),{tlsAuth:A})})),onServerNameChange:A=>T(d(h({},P),{jsonData:d(h({},P.jsonData),{serverName:A})})),onClientCertificateChange:A=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{tlsClientCert:A})})),onClientCertificateReset:()=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{tlsClientCert:""}),secureJsonFields:d(h({},P.secureJsonFields),{tlsClientCert:!1})})),onClientKeyChange:A=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{tlsClientKey:A})})),onClientKeyReset:()=>T(d(h({},P),{secureJsonData:d(h({},P.secureJsonData),{tlsClientKey:""}),secureJsonFields:d(h({},P.secureJsonFields),{tlsClientKey:!1})}))},skipTLSVerification:{enabled:P.jsonData.tlsSkipVerify,onToggle:A=>T(d(h({},P),{jsonData:d(h({},P.jsonData),{tlsSkipVerify:A})}))}}}function D(P,T){return{headers:Object.keys(P.jsonData).filter(j=>j.startsWith(b)).sort().map(j=>{var ae;const _=j.slice(b.length);return{name:P.jsonData[j],configured:(ae=P.secureJsonFields[`${y}${_}`])!=null?ae:!1}}),onChange:j=>{const ae=Object.fromEntries(Object.entries(P.jsonData).filter(([W])=>!W.startsWith(b))),_=Object.fromEntries(Object.entries(P.secureJsonData||{}).filter(([W])=>!W.startsWith(y))),N=Object.fromEntries(Object.entries(P.secureJsonFields).filter(([W])=>!W.startsWith(y)));j.forEach((W,he)=>{ae[`${b}${he+1}`]=W.name,W.configured?N[`${y}${he+1}`]=!0:_[`${y}${he+1}`]=W.value}),T(d(h({},P),{jsonData:ae,secureJsonData:_,secureJsonFields:N}))}}}},35931:(J,g,t)=>{"use strict";t.d(g,{H:()=>m});var i=t(32196),l=t(96540),s=t(40845);function m(f){const{description:p,suffix:v,feature:h}=f,d=`Learn more about ${h}`,b=(0,s.of)(u);return l.createElement("span",{className:b.container},p,l.createElement("a",{"aria-label":d,href:`https://grafana.com/docs/grafana/next/datasources/${v}`,rel:"noreferrer",target:"_blank"},d))}const u=f=>({container:(0,i.css)({color:f.colors.text.secondary,a:(0,i.css)({color:f.colors.text.link,textDecoration:"underline",marginLeft:"5px","&:hover":{textDecoration:"none"}})})})},91062:(J,g,t)=>{"use strict";t.d(g,{A:()=>w});var i=t(96540),l=t(47433),s=Object.defineProperty,m=Object.defineProperties,u=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,h=(S,O,R)=>O in S?s(S,O,{enumerable:!0,configurable:!0,writable:!0,value:R}):S[O]=R,d=(S,O)=>{for(var R in O||(O={}))p.call(O,R)&&h(S,R,O[R]);if(f)for(var R of f(O))v.call(O,R)&&h(S,R,O[R]);return S},b=(S,O)=>m(S,u(O)),y=(S,O)=>{var R={};for(var M in S)p.call(S,M)&&O.indexOf(M)<0&&(R[M]=S[M]);if(S!=null&&f)for(var M of f(S))O.indexOf(M)<0&&v.call(S,M)&&(R[M]=S[M]);return R};const w=S=>{var O=S,{children:R}=O,M=y(O,["children"]);return i.createElement(l.x,b(d({},M),{kind:"section"}),R)}},29020:(J,g,t)=>{"use strict";t.d(g,{I:()=>w});var i=t(96540),l=t(47433),s=Object.defineProperty,m=Object.defineProperties,u=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,h=(S,O,R)=>O in S?s(S,O,{enumerable:!0,configurable:!0,writable:!0,value:R}):S[O]=R,d=(S,O)=>{for(var R in O||(O={}))p.call(O,R)&&h(S,R,O[R]);if(f)for(var R of f(O))v.call(O,R)&&h(S,R,O[R]);return S},b=(S,O)=>m(S,u(O)),y=(S,O)=>{var R={};for(var M in S)p.call(S,M)&&O.indexOf(M)<0&&(R[M]=S[M]);if(S!=null&&f)for(var M of f(S))O.indexOf(M)<0&&v.call(S,M)&&(R[M]=S[M]);return R};const w=S=>{var O=S,{children:R}=O,M=y(O,["children"]);return i.createElement(l.x,b(d({},M),{kind:"sub-section"}),R)}},47433:(J,g,t)=>{"use strict";t.d(g,{x:()=>S});var i=t(96540),l=t(32196),s=t(40845),m=t(29158),u=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,b=(O,R,M)=>R in O?u(O,R,{enumerable:!0,configurable:!0,writable:!0,value:M}):O[R]=M,y=(O,R)=>{for(var M in R||(R={}))h.call(R,M)&&b(O,M,R[M]);if(v)for(var M of v(R))d.call(R,M)&&b(O,M,R[M]);return O},w=(O,R)=>f(O,p(R));const S=({children:O,title:R,description:M,isCollapsible:D=!1,isInitiallyOpen:P=!0,kind:T="section",className:A})=>{const{colors:j,typography:ae,spacing:_}=(0,s.$j)(),[N,W]=(0,i.useState)(D?P:!0),he=N?"angle-up":"angle-down",me=T==="sub-section",fe=`${N?"Collapse":"Expand"} section ${R}`,ve={header:(0,l.css)({display:"flex",justifyContent:"space-between",alignItems:"center"}),title:(0,l.css)({margin:0}),subtitle:(0,l.css)({margin:0,fontWeight:ae.fontWeightRegular}),descriptionText:(0,l.css)(w(y({marginTop:_(me?.25:.5),marginBottom:0},ae.bodySmall),{color:j.text.secondary})),content:(0,l.css)({marginTop:_(2)})};return i.createElement("div",{className:A},i.createElement("div",{className:ve.header},T==="section"?i.createElement("h3",{className:ve.title},R):i.createElement("h6",{className:ve.subtitle},R),D&&i.createElement(m.K,{name:he,onClick:()=>W(!N),type:"button",size:"xl","aria-label":fe})),M&&i.createElement("p",{className:ve.descriptionText},M),N&&i.createElement("div",{className:ve.content},O))}},77657:(J,g,t)=>{"use strict";t.d(g,{u:()=>O});var i=t(96540),l=t(32196),s=t(14186),m=t(10354),u=t(91062),f=Object.defineProperty,p=Object.defineProperties,v=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(R,M,D)=>M in R?f(R,M,{enumerable:!0,configurable:!0,writable:!0,value:D}):R[M]=D,w=(R,M)=>{for(var D in M||(M={}))d.call(M,D)&&y(R,D,M[D]);if(h)for(var D of h(M))b.call(M,D)&&y(R,D,M[D]);return R},S=(R,M)=>p(R,v(M));const O=({config:R,onChange:M,description:D,urlPlaceholder:P,urlTooltip:T,urlLabel:A,className:j})=>{const ae=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/.test(R.url),_={container:(0,l.css)({maxWidth:578})};return i.createElement(i.Fragment,null,i.createElement(u.A,{title:"Connection",description:D,className:(0,l.cx)(_.container,j)},i.createElement(s.I,{htmlFor:"connection-url",label:A||"URL",labelWidth:24,tooltip:T||i.createElement(i.Fragment,null,"Specify a complete HTTP URL",i.createElement("br",null),"(for example https://example.com:8080)"),grow:!0,disabled:R.readOnly,required:!0,invalid:!ae&&!R.readOnly,error:ae?"":"Please enter a valid URL",interactive:!0},i.createElement(m.p,{id:"connection-url","aria-label":"Data source connection URL",onChange:N=>M(S(w({},R),{url:N.currentTarget.value})),value:R.url||"",placeholder:P||"URL"}))))}},68704:(J,g,t)=>{"use strict";t.d(g,{I:()=>w});var i=t(96540),l=t(32196),s=t(40845),m=Object.defineProperty,u=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,d=(S,O,R)=>O in S?m(S,O,{enumerable:!0,configurable:!0,writable:!0,value:R}):S[O]=R,b=(S,O)=>{for(var R in O||(O={}))v.call(O,R)&&d(S,R,O[R]);if(p)for(var R of p(O))h.call(O,R)&&d(S,R,O[R]);return S},y=(S,O)=>u(S,f(O));const w=({dataSourceName:S,docsLink:O,hasRequiredFields:R=!0,className:M})=>{const D=(0,s.$j)(),P={container:(0,l.css)({p:{margin:0},"p + p":{marginTop:D.spacing(2)}}),text:(0,l.css)(y(b({},D.typography.body),{color:D.colors.text.secondary,a:(0,l.css)({color:D.colors.text.link,textDecoration:"underline","&:hover":{textDecoration:"none"}})}))};return i.createElement("div",{className:(0,l.cx)(P.container,M)},i.createElement("p",{className:P.text},"Before you can use the ",S," data source, you must configure it below or in the config file. For detailed instructions,"," ",i.createElement("a",{href:O,target:"_blank",rel:"noreferrer"},"view the documentation"),"."),R&&i.createElement("p",{className:P.text},i.createElement("i",null,"Fields marked with * are required")))}},3721:(J,g,t)=>{"use strict";t.d(g,{Z:()=>O});var i=t(32196),l=t(40845),s=t(55852),m=t(96540),u=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,b=(M,D,P)=>D in M?u(M,D,{enumerable:!0,configurable:!0,writable:!0,value:P}):M[D]=P,y=(M,D)=>{for(var P in D||(D={}))h.call(D,P)&&b(M,P,D[P]);if(v)for(var P of v(D))d.call(D,P)&&b(M,P,D[P]);return M},w=(M,D)=>f(M,p(D)),S=(M,D)=>{var P={};for(var T in M)h.call(M,T)&&D.indexOf(T)<0&&(P[T]=M[T]);if(M!=null&&v)for(var T of v(M))D.indexOf(T)<0&&d.call(M,T)&&(P[T]=M[T]);return P};const O=M=>{var D=M,{className:P}=D,T=S(D,["className"]);const A=(0,l.of)(R);return m.createElement(s.$n,w(y({},T),{className:(0,i.cx)(P,A.button)}))},R=M=>({button:(0,i.css)({paddingLeft:M.spacing(3/2),paddingRight:M.spacing(3/2)})})},81580:(J,g,t)=>{"use strict";t.d(g,{c:()=>M});var i=t(32196),l=t(96540),s=t(40845);const m=P=>{const T=(0,s.of)((0,l.useCallback)(A=>u(A,P),[P]));return l.createElement("span",{className:(0,i.cx)(T.wrapper)})};m.defaultProps={v:0,h:0,layout:"block"};const u=(P,T)=>{var A,j;return{wrapper:(0,i.css)([{paddingRight:P.spacing((A=T.h)!=null?A:0),paddingBottom:P.spacing((j=T.v)!=null?j:0)},T.layout==="inline"&&{display:"inline-block"},T.layout==="block"&&{display:"block"}])}};var f=t(67892),p=t(56034),v=t(14578),h=t(88575),d=Object.defineProperty,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,S=(P,T,A)=>T in P?d(P,T,{enumerable:!0,configurable:!0,writable:!0,value:A}):P[T]=A,O=(P,T)=>{for(var A in T||(T={}))y.call(T,A)&&S(P,A,T[A]);if(b)for(var A of b(T))w.call(T,A)&&S(P,A,T[A]);return P},R=(P,T)=>{var A={};for(var j in P)y.call(P,j)&&T.indexOf(j)<0&&(A[j]=P[j]);if(P!=null&&b)for(var j of b(P))T.indexOf(j)<0&&w.call(P,j)&&(A[j]=P[j]);return A};const M=P=>{var T;const A=P,{label:j,optional:ae,tooltip:_,tooltipInteractive:N,children:W,width:he}=A,me=R(A,["label","optional","tooltip","tooltipInteractive","children","width"]),fe=(0,s.of)((0,l.useCallback)(oe=>D(oe,he),[he])),ve=me?.htmlFor||((T=f)==null?void 0:T.getChildId(W)),ce=l.createElement(l.Fragment,null,l.createElement("label",{className:fe.label,htmlFor:ve},j,ae&&l.createElement("span",{className:fe.optional}," - optional"),_&&l.createElement(p.m,{placement:"top",content:_,theme:"info",interactive:N},l.createElement(v.I,{tabIndex:0,name:"info-circle",size:"sm",className:fe.icon}))),l.createElement(m,{v:.5}));return l.createElement("div",{className:fe.root},l.createElement(h.D,O({className:fe.field,label:ce},me),W))},D=(P,T)=>({root:(0,i.css)({minWidth:P.spacing(T??0)}),label:(0,i.css)({fontSize:12,fontWeight:P.typography.fontWeightMedium}),optional:(0,i.css)({fontStyle:"italic",color:P.colors.text.secondary}),field:(0,i.css)({marginBottom:0}),icon:(0,i.css)({color:P.colors.text.secondary,marginLeft:P.spacing(1),":hover":{color:P.colors.text.primary}})})},97801:(J,g,t)=>{"use strict";t.d(g,{B:()=>s});var i=t(96540),l=t(46819);const s=({children:m})=>i.createElement(l.B,{gap:1},m)},7650:(J,g,t)=>{"use strict";t.d(g,{o:()=>m});var i=t(55852),l=t(96540),s=t(46819);const m=l.forwardRef(function({items:f,renderItem:p,onChange:v},h){const d=()=>{const w=[...f,{}];v(w)},b=(w,S)=>{const O=[...f];O[w]=S,v(O)},y=w=>{const S=[...f];S.splice(w,1),v(S)};return l.createElement(s.B,null,f.map((w,S)=>l.createElement("div",{key:S},p(w,O=>b(S,O),()=>y(S)))),l.createElement(i.$n,{ref:h,onClick:d,variant:"secondary",size:"md",icon:"plus","aria-label":"Add",type:"button"}))})},9e4:(J,g,t)=>{"use strict";t.d(g,{U:()=>u});var i=t(32196),l=t(96540),s=t(46819),m=t(40845);const u=({children:p})=>{const v=(0,m.of)(f);return l.createElement("div",{className:v.root},l.createElement(s.B,{gap:2},p))},f=p=>({root:(0,i.css)({padding:p.spacing(1),backgroundColor:p.colors.background.secondary,borderRadius:p.shape.borderRadius(1)})})},71087:(J,g,t)=>{"use strict";t.d(g,{D:()=>s});var i=t(96540),l=t(46819);const s=({children:m})=>i.createElement(l.B,{gap:.5,direction:"column"},m)},79458:(J,g,t)=>{"use strict";t.d(g,{C:()=>d});var i=t(32196),l=t(15292),s=t(96540),m=Object.defineProperty,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,v=(y,w,S)=>w in y?m(y,w,{enumerable:!0,configurable:!0,writable:!0,value:S}):y[w]=S,h=(y,w)=>{for(var S in w||(w={}))f.call(w,S)&&v(y,S,w[S]);if(u)for(var S of u(w))p.call(w,S)&&v(y,S,w[S]);return y};const d=y=>{const w=b();return s.createElement("div",{className:w.switch},s.createElement(l.d,h({},y)))},b=()=>({switch:(0,i.css)({display:"flex",alignItems:"center",minHeight:30})})},81392:(J,g,t)=>{"use strict";t.d(g,{M:()=>m});var i=t(32196),l=t(40845),s=t(96540);const m=({children:p})=>{const v=(0,l.of)(f),h=s.Children.map(p,d=>(0,s.isValidElement)(d)&&d.props.invalid?(0,s.cloneElement)(d,{className:(0,i.cx)(d.props.className,v.invalidChild)}):d);return s.createElement("div",{className:v.root},h)},u=["","base","hovered","invalid","focused"],f=()=>({root:(0,i.css)({display:"flex","> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:u.indexOf("base"),"&:hover":{zIndex:u.indexOf("hovered")},"&:focus-within":{zIndex:u.indexOf("focused")}}}),invalidChild:(0,i.css)({zIndex:u.indexOf("invalid")})})},46819:(J,g,t)=>{"use strict";t.d(g,{B:()=>v});var i=t(32196),l=t(96540),s=t(40845),m=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(d,b)=>{var y={};for(var w in d)u.call(d,w)&&b.indexOf(w)<0&&(y[w]=d[w]);if(d!=null&&m)for(var w of m(d))b.indexOf(w)<0&&f.call(d,w)&&(y[w]=d[w]);return y};const v=d=>{var b=d,{children:y}=b,w=p(b,["children"]);const S=(0,s.of)((0,l.useCallback)(O=>h(O,w),[w]));return l.createElement("div",{className:S.root},y)},h=(d,b)=>{var y,w,S;return{root:(0,i.css)({display:"flex",flexDirection:(y=b.direction)!=null?y:"row",flexWrap:(w=b.wrap)==null||w?"wrap":void 0,alignItems:b.alignItems,gap:d.spacing((S=b.gap)!=null?S:2),flexGrow:b.flexGrow})}}},20227:(J,g,t)=>{"use strict";t.d(g,{$q:()=>p,mN:()=>m,oL:()=>u});var i=t(34867),l=t(99589),s=t.n(l);const m="grafana-llm-app",u=`/api/plugins/${m}`;let f=new l.SemVer("0.2.0");function p(v){try{f=new l.SemVer(v)}catch{(0,i.FF)("Failed to parse version of grafana-llm-app; assuming old version is present.")}}},65418:(J,g,t)=>{"use strict";t.d(g,{qA:()=>D,qH:()=>T,vK:()=>j});var i=t(55004),l=t(78731),s=t(17172),m=t(34867),u=t(96540),f=t(81485),p=t(16126),v=t(81160),h=t(29405),d=t(59099),b=t(46662),y=t(20227);const w="openai/v1/chat/completions";function S(he){return"content"in he}function O(he){return"done"in he&&he.done!=null}function R(he){return"error"in he}function M(){return(0,f.F)((0,p.p)(he=>S(he.choices[0].delta)),(0,v.T)(he=>he.choices[0].delta.content))}function D(){return(0,f.F)(M(),(0,h.S)((he,me)=>he+me,""))}async function P(he){return await getBackendSrv().post("/api/plugins/grafana-llm-app/resources/openai/v1/chat/completions",he,{headers:{"Content-Type":"application/json"}})}function T(he){const me={scope:i.qD.Plugin,namespace:y.mN,path:w+"/"+self.crypto.randomUUID(),data:he};return(0,l.oF)().getStream(me).pipe((0,p.p)(ve=>(0,i.Z7)(ve))).pipe((0,d.M)(ve=>{if(R(ve.message))throw new Error(ve.message.error)}),(0,b.v)(ve=>R(ve.message)||!O(ve.message.choices[0].delta)),(0,v.T)(ve=>ve.message))}let A=!1;const j=async()=>{try{if(!(await(0,s.AI)().get(`${y.oL}/settings`,void 0,void 0,{showSuccessAlert:!1,showErrorAlert:!1})).enabled)return{configured:!1,ok:!1,error:"The Grafana LLM plugin is not enabled."}}catch(fe){return(0,m.MD)(String(fe)),(0,m.MD)("Failed to check if OpenAI is enabled. This is expected if the Grafana LLM plugin is not installed, and the above error can be ignored."),A=!0,{configured:!1,ok:!1,error:"The Grafana LLM plugin is not installed."}}let he;try{he=await(0,s.AI)().get(`${y.oL}/health`,void 0,void 0,{showSuccessAlert:!1,showErrorAlert:!1})}catch(fe){return A||((0,m.MD)(String(fe)),(0,m.MD)("Failed to check if OpenAI is enabled. This is expected if the Grafana LLM plugin is not installed, and the above error can be ignored."),A=!0),{configured:!1,ok:!1,error:"The Grafana LLM plugin is not installed."}}const{details:me}=he;return me?.version!==void 0&&(0,y.$q)(me.version),me?.openAI===void 0?{configured:!1,ok:!1,error:"The Grafana LLM plugin is outdated; please update it."}:typeof me.openAI=="boolean"?{configured:me.openAI,ok:me.openAI}:me.openAI},ae=async()=>{const he=await j();return he.configured&&he.ok};var _=(he=>(he.IDLE="idle",he.GENERATING="generating",he.COMPLETED="completed",he))(_||{});const N=1e4;function W(he="gpt-4",me=1,fe=()=>{}){const[ve,ce]=useState([]),[oe,re]=useState(""),[H,V]=useState("idle"),[Q,Te]=useState(),Re=useCallback(Ae=>{V("idle"),ce([]),Te(Ae),fe("Failed to generate content using OpenAI","Please try again or if the problem persists, contact your organization admin."),console.error(Ae)},[fe]),{error:ne,value:pe}=useAsync(async()=>await ae(),[ae]),{error:ye,value:Se}=useAsync(async()=>{if(!pe||!ve.length)return{enabled:pe};V("generating"),Te(void 0);const Ae=T({model:he,temperature:me,messages:ve}).pipe(D());return{enabled:pe,stream:Ae.subscribe({next:re,error:Re,complete:()=>{V("completed"),setTimeout(()=>{V("idle")}),ce([]),Te(void 0)}})}},[ve,pe]);return useEffect(()=>()=>{Se?.stream&&Se.stream.unsubscribe()},[Se]),useEffect(()=>{let Ae;return H==="generating"&&oe===""&&(Ae=setTimeout(()=>{Re(new Error(`OpenAI stream timed out after ${N}ms`))},N)),()=>{Ae&&clearTimeout(Ae)}},[H,oe,Re]),(ye||ne)&&Te(ye||ne),{setMessages:ce,reply:oe,streamStatus:H,error:Q,value:Se}}},89894:(J,g,t)=>{"use strict";t.d(g,{x:()=>i});const i="Error"},65790:(J,g,t)=>{"use strict";t.d(g,{H:()=>s});var i=t(35896),l=t(42902);class s{constructor(){this.unpatchedConsole=l.Z,this.internalLogger=i.vc,this.config={},this.metas={}}logDebug(...u){this.internalLogger.debug(`${this.name} `,...u)}logInfo(...u){this.internalLogger.info(`${this.name} `,...u)}logWarn(...u){this.internalLogger.warn(`${this.name} `,...u)}logError(...u){this.internalLogger.error(`${this.name} `,...u)}}},30736:(J,g,t)=>{"use strict";t.d(g,{J:()=>i});const i=typeof globalThis<"u"?globalThis:typeof t.g<"u"?t.g:typeof self<"u"?self:void 0},6180:(J,g,t)=>{"use strict";t.d(g,{i:()=>l});var i=t(65790);class l extends i.H{constructor(){super(...arguments),this.api={},this.transports={}}}},35896:(J,g,t)=>{"use strict";t.d(g,{vI:()=>u,vc:()=>m,wK:()=>l});var i=t(91063),l;(function(f){f[f.OFF=0]="OFF",f[f.ERROR=1]="ERROR",f[f.WARN=2]="WARN",f[f.INFO=3]="INFO",f[f.VERBOSE=4]="VERBOSE"})(l||(l={}));const s="Faro",m={debug:i.l,error:i.l,info:i.l,prefix:s,warn:i.l},u=l.ERROR},4756:(J,g,t)=>{"use strict";t.d(g,{rI:()=>u,N2:()=>m});var i=t(30736);const l="_faroInternal";function s(){return globalObject[internalGlobalObjectKey]}function m(f){f.config.isolate?f.internalLogger.debug("Skipping registering internal Faro instance on global object"):(f.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(i.J,l,{configurable:!1,enumerable:!1,writable:!1,value:f}))}function u(){return l in i.J}},32631:(J,g,t)=>{"use strict";t.d(g,{P:()=>m,A:()=>u});var i=t(30736);function l(f){if(f.config.preventGlobalExposure)f.internalLogger.debug("Skipping registering public Faro instance in the global scope");else{if(f.internalLogger.debug(`Registering public faro reference in the global scope using "${f.config.globalObjectKey}" key`),f.config.globalObjectKey in i.J){f.internalLogger.warn(`Skipping global registration due to key "${f.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);return}Object.defineProperty(i.J,f.config.globalObjectKey,{configurable:!1,writable:!1,value:f})}}var s=t(4756);let m={};function u(f,p,v,h,d,b,y){return p.debug("Initializing Faro"),m={api:b,config:v,instrumentations:y,internalLogger:p,metas:h,pause:d.pause,transports:d,unpatchedConsole:f,unpause:d.unpause},(0,s.N2)(m),l(m),m}},36789:(J,g,t)=>{"use strict";t.d(g,{Td:()=>p,Vl:()=>u,ki:()=>f,wM:()=>m});const i={EventNames:{CLICK:"click",NAVIGATION:"navigation",SESSION_START:"session_start",VIEW_CHANGED:"view_changed"}},l="click",s="navigation",m="view_changed",u="session_start",f="session_resume",p="session_extend",v="route_change"},20467:(J,g,t)=>{"use strict";t.d(g,{j:()=>l});var i=t(65790);class l extends i.H{isBatched(){return!1}getIgnoreUrls(){return[]}}},5927:(J,g,t)=>{"use strict";t.d(g,{J:()=>l,f:()=>i});var i;(function(s){s.EXCEPTION="exception",s.LOG="log",s.MEASUREMENT="measurement",s.TRACE="trace",s.EVENT="event"})(i||(i={}));const l={[i.EXCEPTION]:"exceptions",[i.LOG]:"logs",[i.MEASUREMENT]:"measurements",[i.TRACE]:"traces",[i.EVENT]:"events"}},42902:(J,g,t)=>{"use strict";t.d(g,{Z:()=>i});const i=Object.assign({},console)},4103:(J,g,t)=>{"use strict";t.d(g,{Ed:()=>i,Et:()=>p,Gv:()=>b,Kg:()=>f,T2:()=>A,Tn:()=>y,bJ:()=>T,cy:()=>w,kZ:()=>u,pp:()=>j,sO:()=>R,wX:()=>ae,xH:()=>D});function i(fe,ve){return typeof fe===ve}function l(fe,ve){return Object.prototype.toString.call(fe)===`[object ${ve}]`}function s(fe,ve){try{return fe instanceof ve}catch{return!1}}const m=fe=>i(fe,"undefined"),u=fe=>i(fe,"null"),f=fe=>i(fe,"string"),p=fe=>i(fe,"number")&&!isNaN(fe)||i(fe,"bigint"),v=fe=>p(fe)&&Number.isInteger(fe),h=fe=>i(fe,"boolean"),d=fe=>i(fe,"symbol"),b=fe=>!u(fe)&&i(fe,"object"),y=fe=>i(fe,"function"),w=fe=>l(fe,"Array"),S=fe=>l(fe,"RegExp"),O=fe=>y(fe?.then),R=fe=>!b(fe)&&!y(fe),M=typeof Event<"u",D=fe=>M&&s(fe,Event),P=typeof Error<"u",T=fe=>P&&s(fe,Error),A=fe=>l(fe,"ErrorEvent"),j=fe=>l(fe,"DOMError"),ae=fe=>l(fe,"DOMException"),_=typeof Element<"u",N=fe=>_&&s(fe,Element),W=typeof Map<"u",he=fe=>W&&s(fe,Map),me=fe=>b(fe)&&"nativeEvent"in fe&&"preventDefault"in fe&&"stopPropagation"in fe},37930:(J,g,t)=>{"use strict";t.d(g,{$b:()=>i,HT:()=>s,Ic:()=>l});var i;(function(m){m.TRACE="trace",m.DEBUG="debug",m.INFO="info",m.LOG="log",m.WARN="warn",m.ERROR="error"})(i||(i={}));const l=i.LOG,s=[i.TRACE,i.DEBUG,i.INFO,i.LOG,i.WARN,i.ERROR]},91063:(J,g,t)=>{"use strict";t.d(g,{l:()=>i});function i(){}},97660:(J,g,t)=>{"use strict";t.d(g,{S:()=>l});const i="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function l(s=10){return Array.from(Array(s)).map(()=>i[Math.floor(Math.random()*i.length)]).join("")}},34289:(J,g,t)=>{"use strict";t.d(g,{x:()=>i});const i="1.3.8"},89713:(J,g,t)=>{"use strict";t.d(g,{p:()=>ct});var i=t(5927);function l(){return new Date().toISOString()}var s=t(4103);function m(Ge,st){if(Ge===st)return!0;if((0,s.Ed)(Ge,"number")&&isNaN(Ge))return(0,s.Ed)(st,"number")&&isNaN(st);const Me=(0,s.cy)(Ge),ie=(0,s.cy)(st);if(Me!==ie)return!1;if(Me&&ie){const be=Ge.length;if(be!==st.length)return!1;for(let Qe=be;Qe--!==0;)if(!m(Ge[Qe],st[Qe]))return!1;return!0}const ge=(0,s.Gv)(Ge),z=(0,s.Gv)(st);if(ge!==z)return!1;if(Ge&&st&&ge&&z){const be=Object.keys(Ge),Qe=Object.keys(st),Bt=be.length,nn=Qe.length;if(Bt!==nn)return!1;for(let bt of be)if(!Qe.includes(bt))return!1;for(let bt of be)if(!m(Ge[bt],st[bt]))return!1;return!0}return!1}function u(Ge,st,Me,ie,ge,z){let be=null;return{pushEvent:(Bt,nn,bt,{skipDedupe:at}={})=>{try{const $t={meta:ie.value,payload:{name:Bt,domain:bt??Me.eventDomain,attributes:nn,timestamp:l(),trace:z.getTraceContext()},type:i.f.EVENT},On={name:$t.payload.name,attributes:$t.payload.attributes,domain:$t.payload.domain};if(!at&&Me.dedupe&&!(0,s.kZ)(be)&&m(On,be)){st.debug(`Skipping event push because it is the same as the last one `,$t.payload);return}be=On,st.debug(`Pushing event `,$t),ge.execute($t)}catch($t){st.error("Error pushing event",$t)}}}}var f=t(89894);let p;function v(Ge,st,Me,ie,ge,z){var be;st.debug("Initializing exceptions API");let Qe=null;p=(be=Me.parseStacktrace)!==null&&be!==void 0?be:p;const Bt=at=>{st.debug("Changing stacktrace parser"),p=at??p},nn=()=>p,bt=(at,{skipDedupe:$t,stackFrames:On,type:Ct,context:Zt}={})=>{Ct=Ct||at.name||f.x;const Wn={meta:ie.value,payload:{type:Ct,value:at.message,timestamp:l(),trace:z.getTraceContext(),context:Zt??{}},type:i.f.EXCEPTION};On=On??(at.stack?p?.(at).frames:void 0),On?.length&&(Wn.payload.stacktrace={frames:On});const Zn={type:Wn.payload.type,value:Wn.payload.value,stackTrace:Wn.payload.stacktrace,context:Wn.payload.context};if(!$t&&Me.dedupe&&!(0,s.kZ)(Qe)&&m(Zn,Qe)){st.debug(`Skipping error push because it is the same as the last one `,Wn.payload);return}Qe=Zn,st.debug(`Pushing exception `,Wn),ge.execute(Wn)};return Bt(Me.parseStacktrace),{changeStacktraceParser:Bt,getStacktraceParser:nn,pushError:bt}}var h=t(37930);function d(Ge,st,Me,ie,ge,z){st.debug("Initializing logs API");let be=null;return{pushLog:(Bt,{context:nn,level:bt,skipDedupe:at}={})=>{try{const $t={type:i.f.LOG,payload:{message:Bt.map(Ct=>{try{return String(Ct)}catch{return""}}).join(" "),level:bt??h.Ic,context:nn??{},timestamp:l(),trace:z.getTraceContext()},meta:ie.value},On={message:$t.payload.message,level:$t.payload.level,context:$t.payload.context};if(!at&&Me.dedupe&&!(0,s.kZ)(be)&&m(On,be)){st.debug(`Skipping log push because it is the same as the last one `,$t.payload);return}be=On,st.debug(`Pushing log `,$t),ge.execute($t)}catch($t){st.error(`Error pushing log `,$t)}}}}function b(Ge,st,Me,ie,ge,z){st.debug("Initializing measurements API");let be=null;return{pushMeasurement:(Bt,{skipDedupe:nn,context:bt}={})=>{var at;try{const $t={type:i.f.MEASUREMENT,payload:Object.assign(Object.assign({},Bt),{trace:z.getTraceContext(),timestamp:(at=Bt.timestamp)!==null&&at!==void 0?at:l(),context:bt??{}}),meta:ie.value},On={type:$t.payload.type,values:$t.payload.values,context:$t.payload.context};if(!nn&&Me.dedupe&&!(0,s.kZ)(be)&&m(On,be)){st.debug(`Skipping measurement push because it is the same as the last one `,$t.payload);return}be=On,st.debug(`Pushing measurement `,$t),ge.execute($t)}catch($t){st.error(`Error pushing measurement `,$t)}}}}function y(Ge,st,Me,ie,ge){st.debug("Initializing meta API");let z,be,Qe;const Bt=On=>{be&&ie.remove(be),be={user:On},ie.add(be)},nn=On=>{z&&ie.remove(z),z={session:On},ie.add(z)};return{setUser:Bt,resetUser:Bt,setSession:nn,resetSession:nn,getSession:()=>ie.value.session,setView:On=>{var Ct;if(((Ct=Qe?.view)===null||Ct===void 0?void 0:Ct.name)===On?.name)return;const Zt=Qe;Qe={view:On},ie.add(Qe),Zt&&ie.remove(Zt)},getView:()=>ie.value.view}}function w(Ge,st,Me,ie,ge){st.debug("Initializing traces API");let z;return{getOTEL:()=>z,getTraceContext:()=>{const at=z?.trace.getSpanContext(z.context.active());return at?{trace_id:at.traceId,span_id:at.spanId}:void 0},initOTEL:(at,$t)=>{st.debug("Initializing OpenTelemetry"),z={trace:at,context:$t}},isOTELInitialized:()=>!!z,pushTraces:at=>{try{const $t={type:i.f.TRACE,payload:at,meta:ie.value};st.debug(`Pushing trace `,$t),ge.execute($t)}catch($t){st.error(`Error pushing trace `,$t)}}}}function S(Ge,st,Me,ie,ge){st.debug("Initializing API");const z=w(Ge,st,Me,ie,ge);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},z),v(Ge,st,Me,ie,ge,z)),y(Ge,st,Me,ie,ge)),d(Ge,st,Me,ie,ge,z)),b(Ge,st,Me,ie,ge,z)),u(Ge,st,Me,ie,ge,z))}function O(Ge,st,Me,ie,ge,z){st.debug("Initializing instrumentations");const be=[];return{add:(...nn)=>{st.debug("Adding instrumentations"),nn.forEach(bt=>{if(st.debug(`Adding "${bt.name}" instrumentation`),be.some($t=>$t.name===bt.name)){st.warn(`Instrumentation ${bt.name} is already added`);return}bt.unpatchedConsole=Ge,bt.internalLogger=st,bt.config=Me,bt.metas=ie,bt.transports=ge,bt.api=z,be.push(bt),bt.initialize()})},get instrumentations(){return[...be]},remove:(...nn)=>{st.debug("Removing instrumentations"),nn.forEach(bt=>{var at,$t;st.debug(`Removing "${bt.name}" instrumentation`);const On=be.reduce((Ct,Zt,Wn)=>Ct===null&&Zt.name===bt.name?Wn:null,null);if(!On){st.warn(`Instrumentation "${bt.name}" is not added`);return}($t=(at=be[On]).destroy)===null||$t===void 0||$t.call(at),be.splice(On,1)})}}}function R(Ge){Ge.instrumentations.add(...Ge.config.instrumentations)}var M=t(35896),D=t(42902),P=t(91063);function T(Ge=D.Z,st=M.vI){const Me=M.vc;return st>M.wK.OFF&&(Me.error=st>=M.wK.ERROR?function(...ie){Ge.error(`${Me.prefix} `,...ie)}:P.l,Me.warn=st>=M.wK.WARN?function(...ie){Ge.warn(`${Me.prefix} `,...ie)}:P.l,Me.info=st>=M.wK.INFO?function(...ie){Ge.info(`${Me.prefix} `,...ie)}:P.l,Me.debug=st>=M.wK.VERBOSE?function(...ie){Ge.debug(`${Me.prefix} `,...ie)}:P.l),Me}let A=M.vc;function j(Ge,st){return A=T(Ge,st.internalLoggerLevel),A}function ae(Ge,st,Me){let ie=[],ge=[];const z=()=>ie.reduce((at,$t)=>Object.assign(at,(0,s.Tn)($t)?$t():$t),{}),be=()=>{if(ge.length){const at=z();ge.forEach($t=>$t(at))}};return{add:(...at)=>{st.debug(`Adding metas `,at),ie.push(...at),be()},remove:(...at)=>{st.debug(`Removing metas `,at),ie=ie.filter($t=>!at.includes($t)),be()},addListener:at=>{st.debug(`Adding metas listener `,at),ge.push(at)},removeListener:at=>{st.debug(`Removing metas listener `,at),ge=ge.filter($t=>$t!==at)},get value(){return z()}}}var _=t(34289);function N(Ge){var st,Me;const ie={sdk:{version:_.x}},ge=(st=Ge.config.sessionTracking)===null||st===void 0?void 0:st.session;ge&&Ge.api.setSession(ge),Ge.config.app&&(ie.app=Ge.config.app),Ge.config.user&&(ie.user=Ge.config.user),Ge.config.view&&(ie.view=Ge.config.view),Ge.metas.add(ie,...(Me=Ge.config.metas)!==null&&Me!==void 0?Me:[])}var W=t(4756),he=t(32631);const me=250,fe=50;class ve{constructor(st,Me){var ie,ge;this.signalBuffer=[],this.itemLimit=(ie=Me?.itemLimit)!==null&&ie!==void 0?ie:fe,this.sendTimeout=(ge=Me?.sendTimeout)!==null&&ge!==void 0?ge:me,this.paused=Me?.paused||!1,this.sendFn=st,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush()})}addItem(st){this.paused||(this.signalBuffer.push(st),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(st){const Me=new Map;return st.forEach(ie=>{const ge=JSON.stringify(ie.meta);let z=Me.get(ge);z===void 0?z=[ie]:z=[...z,ie],Me.set(ge,z)}),Array.from(Me.values())}flush(){if(this.paused||this.signalBuffer.length===0)return;this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[]}}function ce(Ge,st){return Ge.some(Me=>(0,s.Kg)(Me)?st.includes(Me):!!st.match(Me))}function oe(Ge){return st=>{if(st.type===i.f.EXCEPTION&&st.payload){const Me=st.payload,ie=`${Me.type}: ${Me.value}`;if(ce(Ge,ie))return null}return st}}function re(Ge,st,Me,ie){var ge;st.debug("Initializing transports");const z=[];let be=Me.paused,Qe=[];const Bt=(...Dt)=>{st.debug("Adding transports"),Dt.forEach(hn=>{if(st.debug(`Adding "${hn.name}" transport`),z.some(an=>an===hn)){st.warn(`Transport ${hn.name} is already added`);return}hn.unpatchedConsole=Ge,hn.internalLogger=st,hn.config=Me,hn.metas=ie,z.push(hn)})},nn=(...Dt)=>{st.debug(`Adding beforeSendHooks `,Qe),Dt.forEach(hn=>{hn&&Qe.push(hn)})},bt=(...Dt)=>{st.debug(`Adding ignoreErrorsPatterns `,Dt),Dt.forEach(hn=>{hn&&Qe.push(oe(hn))})},at=Dt=>{let hn=Dt;for(const cn of Qe){const an=hn.map(cn).filter(Boolean);if(an.length===0)return[];hn=an}return hn},$t=Dt=>{const hn=at(Dt);if(hn.length!==0)for(const cn of z)st.debug(`Transporting item using ${cn.name} `,hn),cn.isBatched()&&cn.send(hn)},On=Dt=>{var hn,cn;if(!((hn=Me.batching)===null||hn===void 0)&&hn.enabled&&z.every(Or=>Or.isBatched()))return;const[an]=at([Dt]);if(an!==void 0)for(const Or of z)st.debug(`Transporting item using ${Or.name} `,an),Or.isBatched()?!((cn=Me.batching)===null||cn===void 0)&&cn.enabled||Or.send([an]):Or.send(an)};let Ct;return!((ge=Me.batching)===null||ge===void 0)&&ge.enabled&&(Ct=new ve($t,{sendTimeout:Me.batching.sendTimeout,itemLimit:Me.batching.itemLimit,paused:be})),{add:Bt,addBeforeSendHooks:nn,addIgnoreErrorsPatterns:bt,getBeforeSendHooks:()=>[...Qe],execute:Dt=>{var hn;be||(!((hn=Me.batching)===null||hn===void 0)&&hn.enabled&&Ct?.addItem(Dt),On(Dt))},isPaused:()=>be,pause:()=>{st.debug("Pausing transports"),Ct?.pause(),be=!0},remove:(...Dt)=>{st.debug("Removing transports"),Dt.forEach(hn=>{st.debug(`Removing "${hn.name}" transport`);const cn=z.indexOf(hn);if(cn===-1){st.warn(`Transport "${hn.name}" is not added`);return}z.splice(cn,1)})},removeBeforeSendHooks:(...Dt)=>{Qe.filter(hn=>!Dt.includes(hn))},get transports(){return[...z]},unpause:()=>{st.debug("Unpausing transports"),Ct?.start(),be=!1}}}function H(Ge){Ge.transports.add(...Ge.config.transports),Ge.transports.addBeforeSendHooks(Ge.config.beforeSend),Ge.transports.addIgnoreErrorsPatterns(Ge.config.ignoreErrors)}let V=D.Z;function Q(Ge){var st;return V=(st=Ge.unpatchedConsole)!==null&&st!==void 0?st:V,V}function Te(Ge){const st=Q(Ge),Me=j(st,Ge);if((0,W.rI)()&&!Ge.isolate){Me.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');return}Me.debug("Initializing");const ie=ae(st,Me,Ge),ge=re(st,Me,Ge,ie),z=S(st,Me,Ge,ie,ge),be=O(st,Me,Ge,ie,ge,z),Qe=(0,he.A)(st,Me,Ge,ie,ge,z,be);return N(Qe),H(Qe),R(Qe),Qe}const Re="faro",ne={enabled:!0,sendTimeout:250,itemLimit:50},pe="browser";var ye=t(12355);function Se(Ge){return{frames:(0,ye.D)(Ge)}}var Ae=t(69245),Ee=t(77232);const Tt=[()=>{const Ge=new Ee.UAParser,{name:st,version:Me}=Ge.getBrowser(),{name:ie,version:ge}=Ge.getOS(),z=Ge.getUA(),be=navigator.language,Qe=navigator.userAgent.includes("Mobi"),Bt=bt(),nn="unknown";return{browser:{name:st??nn,version:Me??nn,os:`${ie??nn} ${ge??nn}`,userAgent:z??nn,language:be??nn,mobile:Qe,brands:Bt??nn}};function bt(){if(!(!st||!Me)&&"userAgentData"in navigator)return navigator.userAgentData.brands}},()=>({page:{url:location.href}})],pt={name:"default"},Rt=()=>({k6:{isK6Browser:!0}});var tt=t(88285),U=t(74940),F=t(8593),Y=t(26539),le=t(6180),ke=t(36789);class Ye extends le.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=_.x}sendViewChangedEvent(st){var Me,ie,ge;const z=st.view;z&&z.name!==((Me=this.notifiedView)===null||Me===void 0?void 0:Me.name)&&(this.api.pushEvent(ke.wM,{fromView:(ge=(ie=this.notifiedView)===null||ie===void 0?void 0:ie.name)!==null&&ge!==void 0?ge:"",toView:z.name},void 0,{skipDedupe:!0}),this.notifiedView=z)}initialize(){this.sendViewChangedEvent(this.metas.value),this.metas.addListener(this.sendViewChangedEvent.bind(this))}}var ft=t(97660),wt=t(90754);const Ut="com.grafana.faro.lastNavigationId",Ke="navigation",it="resource";function At(){return"PerformanceObserver"in window}function et(Ge=[],st){return Ge.some(Me=>st.match(Me)!=null)}function ee(Ge){if(document.readyState==="complete")Ge();else{const st=()=>{document.readyState==="complete"&&(Ge(),document.removeEventListener("readystatechange",st))};document.addEventListener("readystatechange",st)}}function I(Ge){const{connectEnd:st,connectStart:Me,decodedBodySize:ie,domainLookupEnd:ge,domainLookupStart:z,encodedBodySize:be,fetchStart:Qe,initiatorType:Bt,name:nn,nextHopProtocol:bt,redirectEnd:at,redirectStart:$t,renderBlockingStatus:On,requestStart:Ct,responseEnd:Zt,responseStart:Wn,responseStatus:Zn,secureConnectionStart:xt,transferSize:Xe,workerStart:gn}=Ge;return{name:nn,tcpHandshakeTime:ue(st-Me),dnsLookupTime:ue(ge-z),tlsNegotiationTime:ue(Ct-xt),redirectTime:ue(at-$t),requestTime:ue(Wn-Ct),responseTime:ue(Zt-Wn),fetchTime:ue(Zt-Qe),serviceWorkerTime:ue(Qe-gn),decodedBodySize:ue(ie),encodedBodySize:ue(be),cacheHitStatus:Qt(),renderBlockingStatus:ue(On),protocol:bt,initiatorType:Bt};function Qt(){let Dt="fullLoad";return Xe===0?ie>0&&(Dt="cache"):Zn!=null?Zn===304&&(Dt="conditionalFetch"):be>0&&Xe<be&&(Dt="conditionalFetch"),Dt}}function K(Ge){const{activationStart:st,domComplete:Me,domContentLoadedEventEnd:ie,domContentLoadedEventStart:ge,domInteractive:z,duration:be,fetchStart:Qe,loadEventEnd:Bt,loadEventStart:nn,responseStart:bt,type:at}=Ge;return{visibilityState:document.visibilityState,totalNavigationTime:ue(be),pageLoadTime:ue(Me-Qe),domProcessingTime:ue(Me-z),domContentLoadHandlerTime:ue(ie-ge),onLoadTime:ue(Bt-nn),ttfb:ue(Math.max(bt-(st??0),0)),type:at}}function ue(Ge){return Ge==null?"unknown":typeof Ge=="number"?Math.round(Ge).toString():Ge.toString()}function De(Ge,st){let Me;const ie=new Promise(z=>{Me=z});return new PerformanceObserver(z=>{var be;const[Qe]=z.getEntries();if(Qe==null||et(st,Qe.name))return;const Bt=(be=(0,wt.Gq)(Ut,wt.Uy.session))!==null&&be!==void 0?be:"unknown",nn=Object.assign(Object.assign(Object.assign({},I(Qe.toJSON())),K(Qe.toJSON())),{faroNavigationId:(0,ft.S)(),faroPreviousNavigationId:Bt});(0,wt.SO)(Ut,nn.faroNavigationId,wt.Uy.session),Ge("faro.performance.navigation",nn),Me(nn)}).observe({type:Ke,buffered:!0}),ie}function He(Ge,st,Me){new PerformanceObserver(ge=>{const z=ge.getEntries();for(const be of z){if(et(Me,be.name))return;const Qe=Object.assign(Object.assign({},I(be.toJSON())),{faroNavigationId:Ge,faroResourceId:(0,ft.S)()});st("faro.performance.resource",Qe)}}).observe({type:it,buffered:!0})}var Fe=function(Ge,st,Me,ie){function ge(z){return z instanceof Me?z:new Me(function(be){be(z)})}return new(Me||(Me=Promise))(function(z,be){function Qe(bt){try{nn(ie.next(bt))}catch(at){be(at)}}function Bt(bt){try{nn(ie.throw(bt))}catch(at){be(at)}}function nn(bt){bt.done?z(bt.value):ge(bt.value).then(Qe,Bt)}nn((ie=ie.apply(Ge,st||[])).next())})};class ze extends le.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=_.x}initialize(){if(!At()){this.logDebug("performance observer not supported. Disable performance instrumentation.");return}ee(()=>Fe(this,void 0,void 0,function*(){const st=this.api.pushEvent,Me=this.getIgnoreUrls(),{faroNavigationId:ie}=yield De(st,Me);ie!=null&&He(ie,st,Me)}))}getIgnoreUrls(){var st;return(st=this.transports.transports)===null||st===void 0?void 0:st.flatMap(Me=>Me.getIgnoreUrls())}}var qe=t(58424);function We(Ge={}){const st=[new U.W,new F.I,new Y.D,new Ye];return Ge.enablePerformanceInstrumentation===!0&&st.unshift(new ze),Ge.captureConsole!==!1&&st.push(new qe._({disabledLevels:Ge.captureConsoleDisabledLevels})),st}function _t(Ge){var st,Me,ie,ge,z,be,Qe,Bt,nn;const bt=[],at=T(Ge.unpatchedConsole,Ge.internalLoggerLevel);Ge.transports?((Ge.url||Ge.apiKey)&&at.error('if "transports" is defined, "url" and "apiKey" should not be defined'),bt.push(...Ge.transports)):Ge.url?bt.push(new tt.m({url:Ge.url,apiKey:Ge.apiKey})):at.error('either "url" or "transports" must be defined');function $t(){const Ct=Tt;return Ge.metas&&Ct.push(...Ge.metas),(0,s.Gv)(window.k6)?[...Ct,Rt]:Ct}return{app:Ge.app,batching:Object.assign(Object.assign({},ne),Ge.batching),dedupe:(st=Ge.dedupe)!==null&&st!==void 0?st:!0,globalObjectKey:Ge.globalObjectKey||Re,instrumentations:(Me=Ge.instrumentations)!==null&&Me!==void 0?Me:We(),internalLoggerLevel:(ie=Ge.internalLoggerLevel)!==null&&ie!==void 0?ie:M.vI,isolate:(ge=Ge.isolate)!==null&&ge!==void 0?ge:!1,metas:$t(),parseStacktrace:Se,paused:(z=Ge.paused)!==null&&z!==void 0?z:!1,preventGlobalExposure:(be=Ge.preventGlobalExposure)!==null&&be!==void 0?be:!1,transports:bt,unpatchedConsole:(Qe=Ge.unpatchedConsole)!==null&&Qe!==void 0?Qe:D.Z,beforeSend:Ge.beforeSend,eventDomain:(Bt=Ge.eventDomain)!==null&&Bt!==void 0?Bt:pe,ignoreErrors:Ge.ignoreErrors,sessionTracking:Object.assign(Object.assign({},Ae.Fm),Ge.sessionTracking),user:Ge.user,view:(nn=Ge.view)!==null&&nn!==void 0?nn:pt}}function ct(Ge){const st=_t(Ge);if(st)return Te(st)}},58424:(J,g,t)=>{"use strict";t.d(g,{_:()=>m});var i=t(6180),l=t(34289),s=t(37930);class m extends i.i{constructor(f={}){super(),this.options=f,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=l.x}initialize(){this.logDebug(`Initializing `,this.options),s.HT.filter(f=>{var p;return!((p=this.options.disabledLevels)!==null&&p!==void 0?p:m.defaultDisabledLevels).includes(f)}).forEach(f=>{console[f]=(...p)=>{try{this.api.pushLog(p,{level:f})}catch(v){this.logError(v)}finally{this.unpatchedConsole[f](...p)}}})}}m.defaultDisabledLevels=[s.$b.DEBUG,s.$b.TRACE,s.$b.LOG]},74940:(J,g,t)=>{"use strict";t.d(g,{W:()=>D});var i=t(6180),l=t(34289),s=t(4103);const m="Non-Error promise rejection captured with value:",u="UnhandledRejection",f="DOMError",p="DOMException",v="Non-Error exception captured with keys:",h="?",d=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var b=t(12355);function y(P){let T,A,j=[],ae,_;if((0,s.T2)(P)&&P.error)T=P.error.message,A=P.error.name,j=(0,b.D)(P.error);else if((ae=(0,s.pp)(P))||(0,s.wX)(P)){const{name:N,message:W}=P;A=N??(ae?f:p),T=W?`${A}: ${W}`:A}else(0,s.bJ)(P)?(T=P.message,j=(0,b.D)(P)):((0,s.Gv)(P)||(_=(0,s.xH)(P)))&&(A=_?P.constructor.name:void 0,T=`${v} ${Object.keys(P)}`);return[T,A,j]}var w=t(89894);function S(P){var T,A;const j=P.match(d),ae=(T=j?.[1])!==null&&T!==void 0?T:w.x;return[(A=j?.[2])!==null&&A!==void 0?A:P,ae]}var O=t(45919);function R(P){const T=window.onerror;window.onerror=(...A)=>{try{const[j,ae,_,N,W]=A;let he,me,fe=[];const ve=(0,s.Kg)(j),ce=(0,O.S)(ae,h,_,N);W||!ve?([he,me,fe]=y(W??j),fe.length===0&&(fe=[ce])):ve&&([he,me]=S(j),fe=[ce]),he&&P.pushError(new Error(he),{type:me,stackFrames:fe})}finally{T?.apply(window,A)}}}function M(P){window.addEventListener("unhandledrejection",T=>{var A,j;let ae=T;ae.reason?ae=T.reason:!((A=T.detail)===null||A===void 0)&&A.reason&&(ae=(j=T.detail)===null||j===void 0?void 0:j.reason);let _,N,W=[];(0,s.sO)(ae)?(_=`${m} ${String(ae)}`,N=u):[_,N,W]=y(ae),_&&P.pushError(new Error(_),{type:N,stackFrames:W})})}class D extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=l.x}initialize(){this.logDebug("Initializing"),R(this.api),M(this.api)}}},45919:(J,g,t)=>{"use strict";t.d(g,{S:()=>l});var i=t(41345);function l(s,m,u,f){const p={filename:s||document.location.href,function:m||i.y_};return u!==void 0&&(p.lineno=u),f!==void 0&&(p.colno=f),p}},41345:(J,g,t)=>{"use strict";t.d(g,{HS:()=>S,Lo:()=>b,N9:()=>d,Sy:()=>f,Wf:()=>l,Wo:()=>p,bz:()=>h,cB:()=>u,k4:()=>i,ld:()=>w,mZ:()=>O,rD:()=>y,tE:()=>v,xQ:()=>m,y_:()=>s});const i=` `,l="eval",s="?",m="@",u=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,f=/\((\S*)(?::(\d+))(?::(\d+))\)/,p="eval",v="address at ",h=v.length,d=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,b=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,y=" > eval",w="safari-extension",S="safari-web-extension",O=/Minified React error #\d+;/i},12355:(J,g,t)=>{"use strict";t.d(g,{D:()=>u});var i=t(4103),l=t(45919),s=t(41345);function m(f,p){const v=f?.includes(s.ld),h=!v&&f?.includes(s.HS);return!v&&!h?[f,p]:[f?.includes(s.xQ)?f.split(s.xQ)[0]:f,v?`${s.ld}:${p}`:`${s.HS}:${p}`]}function u(f){let p=[];f.stacktrace?p=f.stacktrace.split(s.k4).filter((h,d)=>d%2===0):f.stack&&(p=f.stack.split(s.k4));const v=p.reduce((h,d,b)=>{let y,w,S,O,R;if(y=s.cB.exec(d)){if(w=y[1],S=y[2],O=y[3],R=y[4],S?.startsWith(s.Wo)){const M=s.Sy.exec(S);M&&(S=M[1],O=M[2],R=M[3])}S=S?.startsWith(s.tE)?S.substring(s.bz):S,[w,S]=m(w,S)}else if(y=s.N9.exec(d)){if(w=y[1],S=y[3],O=y[4],R=y[5],S&&S.includes(s.rD)){const M=s.Lo.exec(S);M&&(w=w||s.Wf,S=M[1],O=M[2])}else b===0&&!R&&(0,i.Et)(f.columnNumber)&&(R=String(f.columnNumber+1));[w,S]=m(w,S)}return(S||w)&&h.push((0,l.S)(S,w,O?Number(O):void 0,R?Number(R):void 0)),h},[]);return s.mZ.test(f.message)?v.slice(1):v}},26539:(J,g,t)=>{"use strict";t.d(g,{D:()=>D});var i=t(6180),l=t(34289),s=t(36789);function m(){return Date.now()}var u=t(32631),f=t(97660);function p(P){var T,A,j,ae;return{id:(ae=(j=(A=(T=u.P.config)===null||T===void 0?void 0:T.sessionTracking)===null||A===void 0?void 0:A.generateSessionId)===null||j===void 0?void 0:j.call(A))!==null&&ae!==void 0?ae:(0,f.S)(),attributes:P}}function v(){var P,T,A;const ae=u.P.config.sessionTracking;let _=(A=(T=(P=ae?.sampler)===null||P===void 0?void 0:P.call(ae,{metas:u.P.metas.value}))!==null&&T!==void 0?T:ae?.samplingRate)!==null&&A!==void 0?A:1;return typeof _!="number"&&(_=0),Math.random()<_}function h(P,T){let A=!1,j;const ae=()=>{if(j==null){A=!1;return}P(...j),j=null,setTimeout(ae,T)};return(..._)=>{if(A){j=_;return}P(..._),A=!0,setTimeout(ae,T)}}var d=t(90754),b=t(69245);function y({sessionId:P,isSampled:T=!0}={}){var A,j;const ae=m(),_=(j=(A=u.P.config)===null||A===void 0?void 0:A.sessionTracking)===null||j===void 0?void 0:j.generateSessionId;return P==null&&(P=typeof _=="function"?_():(0,f.S)()),{sessionId:P,lastActivity:ae,started:ae,isSampled:T}}function w(P){if(P==null)return!1;const T=m();return T-P.started<b.Zl?T-P.lastActivity<b.gG:!1}function S({fetchUserSession:P,storeUserSession:T}){return function(){var j,ae,_,N;if(!P||!T)return;const W=P();if(w(W))T(Object.assign(Object.assign({},W),{lastActivity:m()}));else{let he=O(y({isSampled:v()}),W);T(he),(j=u.P.api)===null||j===void 0||j.setSession(he.sessionMeta),(_=(ae=u.P.config.sessionTracking)===null||ae===void 0?void 0:ae.onSessionChange)===null||_===void 0||_.call(ae,(N=W?.sessionMeta)!==null&&N!==void 0?N:null,he.sessionMeta)}}}function O(P,T){var A,j,ae,_;return Object.assign(Object.assign({},P),{sessionMeta:{id:P.sessionId,attributes:Object.assign(Object.assign(Object.assign(Object.assign({},(j=(A=u.P.config.sessionTracking)===null||A===void 0?void 0:A.session)===null||j===void 0?void 0:j.attributes),(_=(ae=u.P.metas.value.session)===null||ae===void 0?void 0:ae.attributes)!==null&&_!==void 0?_:{}),T!=null?{previousSession:T.sessionId}:{}),{isSampled:P.isSampled.toString()})}})}class R{constructor(){this.updateSession=h(()=>this.updateUserSession(),b.MM),this.updateUserSession=S({fetchUserSession:R.fetchUserSession,storeUserSession:R.storeUserSession}),this.init()}static removeUserSession(){(0,d.Ai)(b.AQ,R.storageTypeLocal)}static storeUserSession(T){(0,d.SO)(b.AQ,JSON.stringify(T),R.storageTypeLocal)}static fetchUserSession(){const T=(0,d.Gq)(b.AQ,R.storageTypeLocal);return T?JSON.parse(T):null}init(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.updateSession()}),u.P.metas.addListener(function(A){const j=A.session,ae=R.fetchUserSession();if(j&&j.id!==ae?.sessionId){const _=O(y({sessionId:j.id,isSampled:v()}),ae);R.storeUserSession(_),u.P.api.setSession(_.sessionMeta)}})}}R.storageTypeLocal=d.Uy.local;class M{constructor(){this.updateSession=h(()=>this.updateUserSession(),b.MM),this.updateUserSession=S({fetchUserSession:M.fetchUserSession,storeUserSession:M.storeUserSession}),this.init()}static removeUserSession(){(0,d.Ai)(b.AQ,M.storageTypeSession)}static storeUserSession(T){(0,d.SO)(b.AQ,JSON.stringify(T),M.storageTypeSession)}static fetchUserSession(){const T=(0,d.Gq)(b.AQ,M.storageTypeSession);return T?JSON.parse(T):null}init(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.updateSession()}),u.P.metas.addListener(function(A){const j=A.session,ae=M.fetchUserSession();if(j&&j.id!==ae?.sessionId){const _=O(y({sessionId:j.id,isSampled:v()}),ae);M.storeUserSession(_),u.P.api.setSession(_.sessionMeta)}})}}M.storageTypeSession=d.Uy.session;class D extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=l.x}sendSessionStartEvent(T){var A,j;const ae=T.session;if(ae&&ae.id!==((A=this.notifiedSession)===null||A===void 0?void 0:A.id)){if(this.notifiedSession&&this.notifiedSession.id===((j=ae.attributes)===null||j===void 0?void 0:j.previousSession)){this.api.pushEvent(s.Td,{},void 0,{skipDedupe:!0}),this.notifiedSession=ae;return}this.notifiedSession=ae,this.api.pushEvent(s.Vl,{},void 0,{skipDedupe:!0})}}createInitialSessionMeta(T){var A,j,ae;let N=(T.persistent?R:M).fetchUserSession();if(T.persistent&&T.maxSessionPersistenceTime&&N){const ve=m();N.lastActivity<ve-T.maxSessionPersistenceTime&&(R.removeUserSession(),N=null)}let W=(A=T.session)===null||A===void 0?void 0:A.id,he=(j=T.session)===null||j===void 0?void 0:j.attributes,me;return w(N)?(W=N?.sessionId,he=Object.assign(Object.assign(Object.assign({},he),(ae=N?.sessionMeta)===null||ae===void 0?void 0:ae.attributes),{isSampled:(N.isSampled||!1).toString()}),me=s.ki):(W=W??p().id,me=s.Vl),{sessionMeta:{id:W,attributes:Object.assign({isSampled:v().toString()},he)},lifecycleType:me}}registerBeforeSendHook(T){var A;const{updateSession:j}=new T;(A=this.transports)===null||A===void 0||A.addBeforeSendHooks(ae=>{var _,N,W;j();const he=(_=ae.meta.session)===null||_===void 0?void 0:_.attributes;if(he&&he?.isSampled==="true"){let me;"structuredClone"in window?me=structuredClone(ae):me=JSON.parse(JSON.stringify(ae));const fe=(N=me.meta.session)===null||N===void 0?void 0:N.attributes;return fe==null||delete fe.isSampled,Object.keys(fe??{}).length===0&&((W=me.meta.session)===null||W===void 0||delete W.attributes),me}return null})}initialize(){var T,A;this.logDebug("init session instrumentation");const j=this.config.sessionTracking;if(j?.enabled){const ae=!((T=this.config.sessionTracking)===null||T===void 0)&&T.persistent?R:M;this.registerBeforeSendHook(ae);const{sessionMeta:_,lifecycleType:N}=this.createInitialSessionMeta(j);ae.storeUserSession(Object.assign(Object.assign({},y({sessionId:_.id,isSampled:((A=_.attributes)===null||A===void 0?void 0:A.isSampled)==="true"})),{sessionMeta:_})),this.notifiedSession=_,this.api.setSession(_),N===s.Vl&&this.api.pushEvent(s.Vl,{},void 0,{skipDedupe:!0}),N===s.ki&&this.api.pushEvent(s.ki,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}}},69245:(J,g,t)=>{"use strict";t.d(g,{AQ:()=>i,Fm:()=>p,MM:()=>m,Zl:()=>l,gG:()=>s});const i="com.grafana.faro.session",l=4*60*60*1e3,s=15*60*1e3,m=1*1e3,u=1*60*1e3,p={enabled:!0,persistent:!1,maxSessionPersistenceTime:s+u}},8593:(J,g,t)=>{"use strict";t.d(g,{I:()=>tt});var i,l,s,m,u,f=-1,p=function(U){addEventListener("pageshow",function(F){F.persisted&&(f=F.timeStamp,U(F))},!0)},v=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},h=function(){var U=v();return U&&U.activationStart||0},d=function(U,F){var Y=v(),le="navigate";return f>=0?le="back-forward-cache":Y&&(le=document.prerendering||h()>0?"prerender":document.wasDiscarded?"restore":Y.type.replace(/_/g,"-")),{name:U,value:F===void 0?-1:F,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:le}},b=function(U,F,Y){try{if(PerformanceObserver.supportedEntryTypes.includes(U)){var le=new PerformanceObserver(function(ke){Promise.resolve().then(function(){F(ke.getEntries())})});return le.observe(Object.assign({type:U,buffered:!0},Y||{})),le}}catch{}},y=function(U,F,Y,le){var ke,Ye;return function(ft){F.value>=0&&(ft||le)&&((Ye=F.value-(ke||0))||ke===void 0)&&(ke=F.value,F.delta=Ye,F.rating=function(wt,Ut){return wt>Ut[1]?"poor":wt>Ut[0]?"needs-improvement":"good"}(F.value,Y),U(F))}},w=function(U){requestAnimationFrame(function(){return requestAnimationFrame(function(){return U()})})},S=function(U){var F=function(Y){Y.type!=="pagehide"&&document.visibilityState!=="hidden"||U(Y)};addEventListener("visibilitychange",F,!0),addEventListener("pagehide",F,!0)},O=function(U){var F=!1;return function(Y){F||(U(Y),F=!0)}},R=-1,M=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},D=function(U){document.visibilityState==="hidden"&&R>-1&&(R=U.type==="visibilitychange"?U.timeStamp:0,T())},P=function(){addEventListener("visibilitychange",D,!0),addEventListener("prerenderingchange",D,!0)},T=function(){removeEventListener("visibilitychange",D,!0),removeEventListener("prerenderingchange",D,!0)},A=function(){return R<0&&(R=M(),P(),p(function(){setTimeout(function(){R=M(),P()},0)})),{get firstHiddenTime(){return R}}},j=function(U){document.prerendering?addEventListener("prerenderingchange",function(){return U()},!0):U()},ae=function(U,F){F=F||{},j(function(){var Y,le=[1800,3e3],ke=A(),Ye=d("FCP"),ft=b("paint",function(wt){wt.forEach(function(Ut){Ut.name==="first-contentful-paint"&&(ft.disconnect(),Ut.startTime<ke.firstHiddenTime&&(Ye.value=Math.max(Ut.startTime-h(),0),Ye.entries.push(Ut),Y(!0)))})});ft&&(Y=y(U,Ye,le,F.reportAllChanges),p(function(wt){Ye=d("FCP"),Y=y(U,Ye,le,F.reportAllChanges),w(function(){Ye.value=performance.now()-wt.timeStamp,Y(!0)})}))})},_=function(U,F){F=F||{},ae(O(function(){var Y,le=[.1,.25],ke=d("CLS",0),Ye=0,ft=[],wt=function(Ke){Ke.forEach(function(it){if(!it.hadRecentInput){var At=ft[0],et=ft[ft.length-1];Ye&&it.startTime-et.startTime<1e3&&it.startTime-At.startTime<5e3?(Ye+=it.value,ft.push(it)):(Ye=it.value,ft=[it])}}),Ye>ke.value&&(ke.value=Ye,ke.entries=ft,Y())},Ut=b("layout-shift",wt);Ut&&(Y=y(U,ke,le,F.reportAllChanges),S(function(){wt(Ut.takeRecords()),Y(!0)}),p(function(){Ye=0,ke=d("CLS",0),Y=y(U,ke,le,F.reportAllChanges),w(function(){return Y()})}),setTimeout(Y,0))}))},N={passive:!0,capture:!0},W=new Date,he=function(U,F){i||(i=F,l=U,s=new Date,ve(removeEventListener),me())},me=function(){if(l>=0&&l<s-W){var U={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+l};m.forEach(function(F){F(U)}),m=[]}},fe=function(U){if(U.cancelable){var F=(U.timeStamp>1e12?new Date:performance.now())-U.timeStamp;U.type=="pointerdown"?function(Y,le){var ke=function(){he(Y,le),ft()},Ye=function(){ft()},ft=function(){removeEventListener("pointerup",ke,N),removeEventListener("pointercancel",Ye,N)};addEventListener("pointerup",ke,N),addEventListener("pointercancel",Ye,N)}(F,U):he(F,U)}},ve=function(U){["mousedown","keydown","touchstart","pointerdown"].forEach(function(F){return U(F,fe,N)})},ce=function(U,F){F=F||{},j(function(){var Y,le=[100,300],ke=A(),Ye=d("FID"),ft=function(Ke){Ke.startTime<ke.firstHiddenTime&&(Ye.value=Ke.processingStart-Ke.startTime,Ye.entries.push(Ke),Y(!0))},wt=function(Ke){Ke.forEach(ft)},Ut=b("first-input",wt);Y=y(U,Ye,le,F.reportAllChanges),Ut&&S(O(function(){wt(Ut.takeRecords()),Ut.disconnect()})),Ut&&p(function(){var Ke;Ye=d("FID"),Y=y(U,Ye,le,F.reportAllChanges),m=[],l=-1,i=null,ve(addEventListener),Ke=ft,m.push(Ke),me()})})},oe=0,re=1/0,H=0,V=function(U){U.forEach(function(F){F.interactionId&&(re=Math.min(re,F.interactionId),H=Math.max(H,F.interactionId),oe=H?(H-re)/7+1:0)})},Q=function(){return u?oe:performance.interactionCount||0},Te=function(){"interactionCount"in performance||u||(u=b("event",V,{type:"event",buffered:!0,durationThreshold:0}))},Re=0,ne=function(){return Q()-Re},pe=[],ye={},Se=function(U){var F=pe[pe.length-1],Y=ye[U.interactionId];if(Y||pe.length<10||U.duration>F.latency){if(Y)Y.entries.push(U),Y.latency=Math.max(Y.latency,U.duration);else{var le={id:U.interactionId,latency:U.duration,entries:[U]};ye[le.id]=le,pe.push(le)}pe.sort(function(ke,Ye){return Ye.latency-ke.latency}),pe.splice(10).forEach(function(ke){delete ye[ke.id]})}},Ae=function(U,F){F=F||{},j(function(){var Y=[200,500];Te();var le,ke=d("INP"),Ye=function(wt){wt.forEach(function(it){it.interactionId&&Se(it),it.entryType==="first-input"&&!pe.some(function(At){return At.entries.some(function(et){return it.duration===et.duration&&it.startTime===et.startTime})})&&Se(it)});var Ut,Ke=(Ut=Math.min(pe.length-1,Math.floor(ne()/50)),pe[Ut]);Ke&&Ke.latency!==ke.value&&(ke.value=Ke.latency,ke.entries=Ke.entries,le())},ft=b("event",Ye,{durationThreshold:F.durationThreshold||40});le=y(U,ke,Y,F.reportAllChanges),ft&&(ft.observe({type:"first-input",buffered:!0}),S(function(){Ye(ft.takeRecords()),ke.value<0&&ne()>0&&(ke.value=0,ke.entries=[]),le(!0)}),p(function(){pe=[],Re=Q(),ke=d("INP"),le=y(U,ke,Y,F.reportAllChanges)}))})},Ee={},xe=function(U,F){F=F||{},j(function(){var Y,le=[2500,4e3],ke=A(),Ye=d("LCP"),ft=function(Ke){var it=Ke[Ke.length-1];if(it){var At=Math.max(it.startTime-h(),0);At<ke.firstHiddenTime&&(Ye.value=At,Ye.entries=[it],Y())}},wt=b("largest-contentful-paint",ft);if(wt){Y=y(U,Ye,le,F.reportAllChanges);var Ut=O(function(){Ee[Ye.id]||(ft(wt.takeRecords()),wt.disconnect(),Ee[Ye.id]=!0,Y(!0))});["keydown","click"].forEach(function(Ke){addEventListener(Ke,Ut,!0)}),S(Ut),p(function(Ke){Ye=d("LCP"),Y=y(U,Ye,le,F.reportAllChanges),w(function(){Ye.value=performance.now()-Ke.timeStamp,Ee[Ye.id]=!0,Y(!0)})})}})},nt=function U(F){document.prerendering?j(function(){return U(F)}):document.readyState!=="complete"?addEventListener("load",function(){return U(F)},!0):setTimeout(F,0)},Tt=function(U,F){F=F||{};var Y=[800,1800],le=d("TTFB"),ke=y(U,le,Y,F.reportAllChanges);nt(function(){var Ye=v();if(Ye){var ft=Ye.responseStart;if(ft<=0||ft>performance.now())return;le.value=Math.max(ft-h(),0),le.entries=[Ye],ke(!0),p(function(){le=d("TTFB",0),(ke=y(U,le,Y,F.reportAllChanges))(!0)})}})},pt=t(6180),Rt=t(34289);class tt extends pt.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=Rt.x}initialize(){this.logDebug("Initializing"),Object.entries(tt.mapping).forEach(([F,Y])=>{Y(le=>{this.api.pushMeasurement({type:"web-vitals",values:{[F]:le.value}})})})}}tt.mapping={cls:_,fcp:ae,fid:ce,inp:Ae,lcp:xe,ttfb:Tt}},88285:(J,g,t)=>{"use strict";t.d(g,{m:()=>O});var i=t(20467),l=t(34289);function s(R){const{size:M,concurrency:D}=R,P=[];let T=0;const A=()=>{if(T<D&&P.length){const{producer:ae,resolve:_,reject:N}=P.shift();T++,ae().then(W=>{T--,A(),_(W)},W=>{T--,A(),N(W)})}};return{add:ae=>{if(P.length+T>=M)throw new Error("Task buffer full");return new Promise((_,N)=>{P.push({producer:ae,resolve:_,reject:N}),A()})}}}var m=t(5927);function u(R,M){var D,P;if(M===void 0)return R;if(R===void 0)return{resourceSpans:M};const T=(D=R.resourceSpans)===null||D===void 0?void 0:D[0];if(T===void 0)return R;const A=T?.scopeSpans||[],j=((P=M?.[0])===null||P===void 0?void 0:P.scopeSpans)||[];return Object.assign(Object.assign({},R),{resourceSpans:[Object.assign(Object.assign({},T),{scopeSpans:[...A,...j]})]})}function f(R){let M={meta:{}};return R[0]!==void 0&&(M.meta=R[0].meta),R.forEach(D=>{switch(D.type){case m.f.LOG:case m.f.EVENT:case m.f.EXCEPTION:case m.f.MEASUREMENT:const P=m.J[D.type],T=M[P];M=Object.assign(Object.assign({},M),{[P]:T===void 0?[D.payload]:[...T,D.payload]});break;case m.f.TRACE:M=Object.assign(Object.assign({},M),{traces:u(M.traces,D.payload.resourceSpans)});break}}),M}var p=t(91063),v=function(R,M,D,P){function T(A){return A instanceof D?A:new D(function(j){j(A)})}return new(D||(D=Promise))(function(A,j){function ae(W){try{N(P.next(W))}catch(he){j(he)}}function _(W){try{N(P.throw(W))}catch(he){j(he)}}function N(W){W.done?A(W.value):T(W.value).then(ae,_)}N((P=P.apply(R,M||[])).next())})},h=function(R,M){var D={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(D[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,P=Object.getOwnPropertySymbols(R);T<P.length;T++)M.indexOf(P[T])<0&&Object.prototype.propertyIsEnumerable.call(R,P[T])&&(D[P[T]]=R[P[T]]);return D};const d=30,b=5,y=5e3,w=6e4,S=429;class O extends i.j{constructor(M){var D,P,T,A;super(),this.options=M,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=l.x,this.disabledUntil=new Date,this.rateLimitBackoffMs=(D=M.defaultRateLimitBackoffMs)!==null&&D!==void 0?D:y,this.getNow=(P=M.getNow)!==null&&P!==void 0?P:()=>Date.now(),this.promiseBuffer=s({size:(T=M.bufferSize)!==null&&T!==void 0?T:d,concurrency:(A=M.concurrency)!==null&&A!==void 0?A:b})}send(M){return v(this,void 0,void 0,function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add(()=>{const D=JSON.stringify(f(M)),{url:P,requestOptions:T,apiKey:A}=this.options,j=T??{},{headers:ae}=j,_=h(j,["headers"]);let N;const W=this.metas.value.session;return W!=null&&(N=W.id),fetch(P,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},ae??{}),A?{"x-api-key":A}:{}),N?{"x-faro-session-id":N}:{}),body:D,keepalive:D.length<=w},_??{})).then(he=>(he.status===S&&(this.disabledUntil=this.getRetryAfterDate(he),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),he.text().catch(p.l),he)).catch(he=>{this.logError(`Failed sending payload to the receiver `,JSON.parse(D),he)})})}catch(D){this.logError(D)}})}getIgnoreUrls(){return[this.options.url]}isBatched(){return!0}getRetryAfterDate(M){const D=this.getNow(),P=M.headers.get("Retry-After");if(P){const T=Number(P);if(!isNaN(T))return new Date(T*1e3+D);const A=Date.parse(P);if(!isNaN(A))return new Date(A)}return new Date(D+this.rateLimitBackoffMs)}}},90754:(J,g,t)=>{"use strict";t.d(g,{Ai:()=>f,Gq:()=>m,SO:()=>u,Uy:()=>l});var i=t(32631);const l={session:"sessionStorage",local:"localStorage"};function s(d){var b;try{let y;y=window[d];const w="__faro_storage_test__";return y.setItem(w,w),y.removeItem(w),!0}catch(y){return(b=i.P.internalLogger)===null||b===void 0||b.info(`Web storage of type ${d} is not available. Reason: ${y}`),!1}}function m(d,b){return h(b)?window[b].getItem(d):null}function u(d,b,y){if(h(y))try{window[y].setItem(d,b)}catch{}}function f(d,b){h(b)&&window[b].removeItem(d)}const p=s(l.local),v=s(l.session);function h(d){return d===l.local?p:d===l.session?v:!1}},79065:(J,g,t)=>{"use strict";t.d(g,{H9:()=>Qc,x0:()=>iu,yP:()=>mu,mI:()=>wd,P1:()=>Nu,ZG:()=>Zu,Yj:()=>ds,xc:()=>op,n8:()=>Zo,Or:()=>Jg,d0:()=>Cp,fS:()=>yl,Oh:()=>uv,jD:()=>Gu,xK:()=>Iv,gF:()=>Dv,N0:()=>fg,VE:()=>ss,i7:()=>rf,zr:()=>ki,Zv:()=>xt,Es:()=>Yu,or:()=>ya,vA:()=>Rv,G1:()=>dg,M$:()=>ih,hy:()=>zp,tI:()=>Sh,Bs:()=>it,bZ:()=>Tt,So:()=>Dt,dt:()=>ys,dM:()=>id,WM:()=>av,KE:()=>tm,JZ:()=>jr,XQ:()=>Wa,Pj:()=>Vr,oh:()=>xi,TS:()=>el,Kw:()=>pt,Sh:()=>Xn,K8:()=>of,Eb:()=>Zh,Lw:()=>wv,Gg:()=>i,tV:()=>l,vz:()=>ln,Is:()=>Qs,jh:()=>Eo,Go:()=>vy});var i={};t.r(i),t.d(i,{K2:()=>pn,Hf:()=>di});var l={};t.r(l),t.d(l,{g:()=>_a});var s=t(96540),m=t(24180),u=t(76885),f=t(71733),p=t(12131),v=Object.defineProperty,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(de,L,_e)=>L in de?v(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,w=(de,L)=>{for(var _e in L||(L={}))d.call(L,_e)&&y(de,_e,L[_e]);if(h)for(var _e of h(L))b.call(L,_e)&&y(de,_e,L[_e]);return de};function S(){const de=(0,m.zy)();return(0,p.SE)(de.search||"")}function O(de,L){const _e=w({},p.Ny.getSearchObject());if(L)for(const mn of Object.keys(_e))L.includes(mn)||delete _e[mn];return u.kM.renderUrl(f.I.assureBaseUrl(de),_e)}function R(de,L){return s.createElement(de.Component,{model:de,routeProps:L})}var M=t(89191),D=Object.defineProperty,P=Object.defineProperties,T=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,_=(de,L,_e)=>L in de?D(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,N=(de,L)=>{for(var _e in L||(L={}))j.call(L,_e)&&_(de,_e,L[_e]);if(A)for(var _e of A(L))ae.call(L,_e)&&_(de,_e,L[_e]);return de},W=(de,L)=>P(de,T(L));const he=new Map;function me({pluginId:de,plugin:L}){if(he.has(de))throw new Error(`A runtime panel plugin with id ${de} has already been registered`);L.meta=W(N({},L.meta),{id:de,name:de,module:"runtime plugin",baseUrl:"runtime plugin",info:{author:{name:"Runtime plugin "+de},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""}}),he.set(de,L)}function fe(de){var L;const{getPanelPluginFromCache:_e}=(0,M.o)();return(L=_e(de))!=null?L:he.get(de)}var ve=t(64423),ce=t(62938),oe=t(18226),re=Object.defineProperty,H=Object.defineProperties,V=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ne=(de,L,_e)=>L in de?re(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,pe=(de,L)=>{for(var _e in L||(L={}))Te.call(L,_e)&&ne(de,_e,L[_e]);if(Q)for(var _e of Q(L))Re.call(L,_e)&&ne(de,_e,L[_e]);return de},ye=(de,L)=>H(de,V(L)),Se=(de,L)=>{var _e={};for(var mn in de)Te.call(de,mn)&&L.indexOf(mn)<0&&(_e[mn]=de[mn]);if(de!=null&&Q)for(var mn of Q(de))L.indexOf(mn)<0&&Re.call(de,mn)&&(_e[mn]=de[mn]);return _e};function Ae(de){var L=de,{model:_e}=L,mn=Se(L,["model"]),vr;const Qr=(vr=_e.constructor.Component)!=null?vr:xe,[ao,oa]=s.useState(!1);return(0,s.useEffect)(()=>(oa(!0),_e.activate()),[_e]),ao?s.createElement(Qr,ye(pe({},mn),{model:_e})):null}const Ee=s.memo(Ae);function xe(de){return null}var nt=t(65463);class Tt extends nt.x{}Tt.type="scene-object-state-change";class pt extends nt.x{}pt.type="scene-object-user-action";var Rt=(de,L,_e)=>{if(!L.has(de))throw TypeError("Cannot "+_e)},tt=(de,L,_e)=>(Rt(de,L,"read from private field"),_e?_e.call(de):L.get(de)),U=(de,L,_e)=>{if(L.has(de))throw TypeError("Cannot add the same private member more than once");L instanceof WeakSet?L.add(de):L.set(de,_e)},F=(de,L,_e,mn)=>(Rt(de,L,"write to private field"),mn?mn.call(de,_e):L.set(de,_e),_e),Y;class le{constructor(L){U(this,Y,void 0),F(this,Y,L)}resolve(){return tt(this,Y)}}Y=new WeakMap;var ke=Object.defineProperty,Ye=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Ut=(de,L,_e)=>L in de?ke(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Ke=(de,L)=>{for(var _e in L||(L={}))ft.call(L,_e)&&Ut(de,_e,L[_e]);if(Ye)for(var _e of Ye(L))wt.call(L,_e)&&Ut(de,_e,L[_e]);return de};class it{constructor(L){this._isActive=!1,this._activationHandlers=[],this._deactivationHandlers=new Map,this._subs=new ve.yU,this._refCount=0,L.key||(L.key=(0,ce.A)()),this._events=new oe.o,this._state=Object.freeze(L),this._setParent()}get state(){return this._state}get isActive(){return this._isActive}get parent(){return this._parent}get variableDependency(){return this._variableDependency}get urlSync(){return this._urlSync}get Component(){return Ee}_setParent(){this.forEachChild(L=>{L._parent&&L._parent!==this&&console.warn("SceneObject already has a parent set that is different from the new parent. You cannot share the same SceneObject instance in multiple scenes or in multiple different places of the same scene graph. Use SceneObject.clone() to duplicate a SceneObject or store a state key reference and use sceneGraph.findObject to locate it.",L,this),L._parent=this})}subscribeToState(L){return this._events.subscribe(Tt,_e=>{_e.payload.changedObject===this&&L(_e.payload.newState,_e.payload.prevState)})}subscribeToEvent(L,_e){return this._events.subscribe(L,_e)}setState(L){const _e=this._state,mn=Ke(Ke({},this._state),L);this._state=Object.freeze(mn),this._setParent(),this._handleActivationOfChangedStateProps(_e,mn),this.publishEvent(new Tt({prevState:_e,newState:mn,partialUpdate:L,changedObject:this}),!0)}_handleActivationOfChangedStateProps(L,_e){this.isActive&&(L.$data!==_e.$data&&this._handleChangedStateActivation(L.$data,_e.$data),L.$variables!==_e.$variables&&this._handleChangedStateActivation(L.$variables,_e.$variables),L.$timeRange!==_e.$timeRange&&this._handleChangedStateActivation(L.$timeRange,_e.$timeRange))}_handleChangedStateActivation(L,_e){if(L){const mn=this._deactivationHandlers.get(L);mn&&(mn(),this._deactivationHandlers.delete(L))}_e&&this._deactivationHandlers.set(_e,_e.activate())}publishEvent(L,_e){this._events.publish(L),_e&&this.parent&&this.parent.publishEvent(L,_e)}getRoot(){return this._parent?this._parent.getRoot():this}_internalActivate(){this._isActive=!0;const{$data:L,$variables:_e,$timeRange:mn,$behaviors:vr}=this.state;if(mn&&!mn.isActive&&this._deactivationHandlers.set(mn,mn.activate()),_e&&!_e.isActive&&this._deactivationHandlers.set(_e,_e.activate()),L&&!L.isActive&&this._deactivationHandlers.set(L,L.activate()),vr){for(const Qr of vr)if(Qr instanceof it)this._deactivationHandlers.set(Qr,Qr.activate());else if(typeof Qr=="function"){const ao=Qr(this);ao&&this._deactivationHandlers.set(Qr,ao)}}this._activationHandlers.forEach(Qr=>{const ao=Qr();ao&&this._deactivationHandlers.set(ao,ao)})}activate(){this.isActive||this._internalActivate(),this._refCount++;let L=!1;return()=>{if(this._refCount--,L){const _e="SceneObject cancelation handler returned by activate() called a second time";throw console.error(_e,this),new Error(_e)}L=!0,this._refCount===0&&this._internalDeactivate()}}_internalDeactivate(){this._isActive=!1;for(let L of this._deactivationHandlers.values())L();this._deactivationHandlers.clear(),this._events.removeAllListeners(),this._subs.unsubscribe(),this._subs=new ve.yU}useState(){return At(this)}forceRender(){this.setState({})}clone(L){return He(this,L)}addActivationHandler(L){this._activationHandlers.push(L)}forEachChild(L){for(const _e of Object.values(this.state))if(_e instanceof it&&L(_e),Array.isArray(_e))for(const mn of _e)mn instanceof it&&L(mn)}getRef(){return this._ref||(this._ref=new le(this)),this._ref}}function At(de){const[L,_e]=(0,s.useState)(de.state),mn=de.state;return(0,s.useEffect)(()=>{const vr=de.subscribeToState(_e);return de.state!==mn&&_e(de.state),()=>vr.unsubscribe()},[de]),de.state}var et=Object.defineProperty,ee=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,ue=(de,L,_e)=>L in de?et(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,De=(de,L)=>{for(var _e in L||(L={}))I.call(L,_e)&&ue(de,_e,L[_e]);if(ee)for(var _e of ee(L))K.call(L,_e)&&ue(de,_e,L[_e]);return de};function He(de,L){const _e=Fe(de.state,L);return new de.constructor(_e)}function Fe(de,L){const _e=De({},de);for(const mn in _e){const vr=_e[mn];if(vr instanceof it&&(_e[mn]=vr.clone()),vr instanceof le)throw new Error("Cannot clone a SceneObject with a SceneObjectRef in state");if(Array.isArray(vr)){const Qr=[];for(const ao of vr)ao instanceof it?Qr.push(ao.clone()):Qr.push(ao);_e[mn]=Qr}}return Object.assign(_e,L),_e}function ze(de,L){let _e=de,mn;for(;_e&&!mn;)mn=L(_e),_e=_e.parent;return mn}var qe=t(40187),We=t(43429);class _t extends qe.mA{constructor(L,_e){super({name:"RuntimeDataSource-"+L,uid:_e,type:L,id:1,readOnly:!0,jsonData:{},access:"direct",meta:{id:L,name:"RuntimeDataSource-"+L,type:We.QE.datasource,info:{author:{name:""},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""},module:"",baseUrl:""}})}testDatasource(){return Promise.resolve({})}}const ct=new Map;function Ge({dataSource:de}){if(ct.has(de.uid))throw new Error(`A runtime data source with uid ${de.uid} has already been registered`);ct.set(de.uid,de)}var st=t(2543);class Me{constructor(){this.index=new Map}getUniqueKey(L,_e){const mn=this.index.get(L);if(!mn)throw new Error("Cannot find any scene object that uses the key '"+L+"'");const vr=mn.findIndex(Qr=>Qr.sceneObject===_e);return vr>0?`${L}-${vr+1}`:L}rebuildIndex(L){this.index.clear(),this.buildIndex(L,0)}buildIndex(L,_e){if(L.urlSync)for(const mn of L.urlSync.getKeys()){const vr=this.index.get(mn);vr?(vr.push({sceneObject:L,depth:_e}),vr.sort((Qr,ao)=>Qr.depth-ao.depth)):this.index.set(mn,[{sceneObject:L,depth:_e}])}L.forEachChild(mn=>this.buildIndex(mn,_e+1))}}function ie(de){const L=new Me;L.rebuildIndex(de);const _e={},mn=vr=>{if(vr.urlSync){const Qr=vr.urlSync.getUrlState();for(const[ao,oa]of Object.entries(Qr))if(oa!=null){const qo=L.getUniqueKey(ao,vr);_e[qo]=oa}}vr.forEachChild(mn)};return mn(de),_e}function ge(de,L){const _e=new Me;_e.rebuildIndex(de),z(de,L,_e)}function z(de,L,_e){if(de.urlSync){const mn={},vr=de.urlSync.getUrlState();for(const Qr of de.urlSync.getKeys()){const ao=_e.getUniqueKey(Qr,de),oa=L.getAll(ao),qo=vr[Qr];be(oa,qo)||(oa.length>0?Array.isArray(qo)?mn[Qr]=oa:mn[Qr]=oa[0]:mn[Qr]=null)}Object.keys(mn).length>0&&de.urlSync.updateFromUrl(mn)}de.forEachChild(mn=>z(mn,L,_e))}function be(de,L){return de.length===0&&L==null?!0:!Array.isArray(L)&&de?.length===1?L===de[0]:L?.length===0&&de===null?!0:(0,st.isEqual)(de,L)}var Qe=t(6709),Bt=t(72724),nn=t(43127),bt=t(39651),at=t(62467),$t=Object.defineProperty,On=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Wn=(de,L,_e)=>L in de?$t(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Zn=(de,L)=>{for(var _e in L||(L={}))Ct.call(L,_e)&&Wn(de,_e,L[_e]);if(On)for(var _e of On(L))Zt.call(L,_e)&&Wn(de,_e,L[_e]);return de};class xt extends it{constructor(L){super(Zn({data:Xe},L))}getResultsStream(){const L={origin:this,data:this.state.data};return(0,at.of)(L)}}const Xe={state:bt.Gu.Done,series:[],timeRange:(0,nn.E2)()};var gn=t(1933),Qt=t(47232);class Dt{constructor(L,_e){this._sceneObject=L,this._keys=_e.keys}getKeys(){return typeof this._keys=="function"?this._keys():this._keys}getUrlState(){return this._sceneObject.getUrlState()}updateFromUrl(L){this._sceneObject.updateFromUrl(L)}}const hn=/^\d+[yYmMsSwWhHdD]$/;function cn(de){if(typeof de!="string")return null;if(de.indexOf("now")!==-1||hn.test(de))return de;if(de.length===8){const _e=(0,Qt.yT)(de,"YYYYMMDD");if(_e.isValid())return _e.toISOString()}else if(de.length===15){const _e=(0,Qt.yT)(de,"YYYYMMDDTHHmmss");if(_e.isValid())return _e.toISOString()}else if(de.length===24)return(0,Qt.yT)(de).toISOString();const L=parseInt(de,10);return isNaN(L)?null:(0,Qt.yT)(L).toISOString()}var an=t(85858);function Or(de,L,_e,mn,vr){const Qr=vr&&L==="now";return{from:an.parse(de,!1,_e,mn),to:an.parse(Qr?"now-"+vr:L,!0,_e,mn),raw:{from:de,to:L}}}var Ln=t(32264),En=Object.defineProperty,Gn=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,pi=(de,L,_e)=>L in de?En(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,yi=(de,L)=>{for(var _e in L||(L={}))rr.call(L,_e)&&pi(de,_e,L[_e]);if(Gn)for(var _e of Gn(L))sr.call(L,_e)&&pi(de,_e,L[_e]);return de};class jr extends it{constructor(L={}){var _e,mn;const vr=(_e=L.from)!=null?_e:"now-6h",Qr=(mn=L.to)!=null?mn:"now",ao=L.timeZone,oa=Or(vr,Qr,ao||(0,gn.O)(),L.fiscalYearStartMonth,L.UNSAFE_nowDelay);super(yi({from:vr,to:Qr,timeZone:ao,value:oa},L)),this._urlSync=new Dt(this,{keys:["from","to","timezone"]}),this.onTimeRangeChange=qo=>{const ha={},is={};typeof qo.raw.from=="string"?(ha.from=qo.raw.from,is.from=qo.raw.from):(ha.from=qo.raw.from.toISOString(),is.from=qo.raw.from.toISOString(!0)),typeof qo.raw.to=="string"?(ha.to=qo.raw.to,is.to=qo.raw.to):(ha.to=qo.raw.to.toISOString(),is.to=qo.raw.to.toISOString(!0)),ha.value=Or(is.from,is.to,this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay),(ha.from!==this.state.from||ha.to!==this.state.to)&&this.setState(ha)},this.onTimeZoneChange=qo=>{this.setState({timeZone:qo})},this.onRefresh=()=>{this.setState({value:Or(this.state.from,this.state.to,this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay)})},this.addActivationHandler(this._onActivate.bind(this))}_onActivate(){if(!this.state.timeZone){const L=this.getTimeZoneSource();L!==this&&this._subs.add(L.subscribeToState((_e,mn)=>{_e.timeZone!==void 0&&_e.timeZone!==mn.timeZone&&this.setState({value:Or(this.state.from,this.state.to,L.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay)})}))}return this.state.weekStart&&(0,Qt.$D)(this.state.weekStart),()=>{this.state.weekStart&&(0,Qt.$D)(Ln.$.bootData.user.weekStart)}}getTimeZoneSource(){if(!this.parent||!this.parent.parent)return this;const L=ze(this.parent.parent,_e=>{if(_e.state.$timeRange&&_e.state.$timeRange.state.timeZone)return _e.state.$timeRange});return L||this}getTimeZone(){if(this.state.timeZone)return this.state.timeZone;const L=this.getTimeZoneSource();return L!==this?L.state.timeZone:(0,gn.O)()}getUrlState(){const L={from:this.state.from,to:this.state.to};return this.state.timeZone&&(L.timezone=this.state.timeZone),L}updateFromUrl(L){var _e,mn,vr;if(!L.to&&!L.from)return;const Qr={},ao=cn(L.from);ao&&(Qr.from=ao);const oa=cn(L.to);oa&&(Qr.to=oa),typeof L.timezone=="string"&&(Qr.timeZone=L.timezone!==""?L.timezone:void 0),Qr.value=Or((_e=Qr.from)!=null?_e:this.state.from,(mn=Qr.to)!=null?mn:this.state.to,(vr=Qr.timeZone)!=null?vr:this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay),this.setState(Qr)}}const ui=new xt,bi=new jr;class ri extends it{constructor(){super({variables:[]})}getByName(L){}isVariableLoadingOrWaitingToUpdate(L){return!1}}const hi=new ri;function Si(de){var L;return(L=ze(de,_e=>_e.state.$timeRange))!=null?L:bi}var Kr=t(52622);class xi extends nt.x{}xi.type="scene-variable-changed-value";function Ai(de){return typeof de=="object"&&"formatter"in de}let Pi={};function io(de){const L=Pi[de];return L||(Pi[de]=(0,st.property)(de))}class lo{constructor(L,_e){this.state={name:L,value:_e,type:"scopedvar"}}getValue(L){let{value:_e}=this.state,mn=_e.value;return L?mn=io(L)(_e.value):mn=_e.value,mn==="string"||mn==="number"||mn==="boolean"?mn:String(mn)}getValueText(){const{value:L}=this.state;return L.text!=null?String(L.text):String(L)}}let Gr;function un(de,L){return Gr?(Gr.state.name=de,Gr.state.value=L):Gr=new lo(de,L),Gr}var qn=t(83077),kn=t(54479),St=t(40672);const ln=new qn.O(()=>[{id:Kr.$m.Lucene,name:"Lucene",description:"Values are lucene escaped and multi-valued variables generate an OR expression",formatter:L=>typeof L=="string"?An(L):Array.isArray(L)?L.length===0?"__empty__":"("+(0,st.map)(L,mn=>'"'+An(mn)+'"').join(" OR ")+")":An(`${L}`)},{id:Kr.$m.Raw,name:"raw",description:"Keep value as is",formatter:L=>String(L)},{id:Kr.$m.Regex,name:"Regex",description:"Values are regex escaped and multi-valued variables generate a (<value>|<value>) expression",formatter:L=>{if(typeof L=="string")return(0,kn.$f)(L);if(Array.isArray(L)){const _e=L.map(mn=>typeof mn=="string"?(0,kn.$f)(mn):(0,kn.$f)(String(mn)));return _e.length===1?_e[0]:"("+_e.join("|")+")"}return(0,kn.$f)(`${L}`)}},{id:Kr.$m.Pipe,name:"Pipe",description:"Values are separated by | character",formatter:L=>typeof L=="string"?L:Array.isArray(L)?L.join("|"):`${L}`},{id:Kr.$m.Distributed,name:"Distributed",description:"Multiple values are formatted like variable=value",formatter:(L,_e,mn)=>typeof L=="string"?L:Array.isArray(L)?(L=(0,st.map)(L,(vr,Qr)=>Qr!==0?mn.state.name+"="+vr:vr),L.join(",")):`${L}`},{id:Kr.$m.CSV,name:"Csv",description:"Comma-separated values",formatter:L=>typeof L=="string"?L:(0,st.isArray)(L)?L.join(","):String(L)},{id:Kr.$m.HTML,name:"HTML",description:"HTML escaping of values",formatter:L=>typeof L=="string"?St.sQ.escapeHtml(L):(0,st.isArray)(L)?St.sQ.escapeHtml(L.join(", ")):St.sQ.escapeHtml(String(L))},{id:Kr.$m.JSON,name:"JSON",description:"JSON stringify value",formatter:L=>typeof L=="string"?L:JSON.stringify(L)},{id:Kr.$m.PercentEncode,name:"Percent encode",description:"Useful for URL escaping values",formatter:L=>(0,st.isArray)(L)?Cr("{"+L.join(",")+"}"):Cr(L)},{id:Kr.$m.SingleQuote,name:"Single quote",description:"Single quoted values",formatter:L=>{const _e=new RegExp("'","g");if((0,st.isArray)(L))return(0,st.map)(L,vr=>`'${(0,st.replace)(vr,_e,"\\'")}'`).join(",");let mn=typeof L=="string"?L:String(L);return`'${(0,st.replace)(mn,_e,"\\'")}'`}},{id:Kr.$m.DoubleQuote,name:"Double quote",description:"Double quoted values",formatter:L=>{const _e=new RegExp('"',"g");if((0,st.isArray)(L))return(0,st.map)(L,vr=>`"${(0,st.replace)(vr,_e,'\\"')}"`).join(",");let mn=typeof L=="string"?L:String(L);return`"${(0,st.replace)(mn,_e,'\\"')}"`}},{id:Kr.$m.SQLString,name:"SQL string",description:"SQL string quoting and commas for use in IN statements and other scenarios",formatter:fn},{id:Kr.$m.Date,name:"Date",description:"Format date in different ways",formatter:(L,_e)=>{var mn;let vr=NaN;if(typeof L=="number"?vr=L:typeof L=="string"&&(vr=parseInt(L,10)),isNaN(vr))return"NaN";const Qr=(mn=_e[0])!=null?mn:"iso";switch(Qr){case"ms":return String(L);case"seconds":return`${Math.round(vr/1e3)}`;case"iso":return(0,Qt.KQ)(vr).toISOString();default:return(_e||[]).length>1?(0,Qt.KQ)(vr).format(_e.join(":")):(0,Qt.KQ)(vr).format(Qr)}}},{id:Kr.$m.Glob,name:"Glob",description:"Format multi-valued variables using glob syntax, example {value1,value2}",formatter:L=>(0,st.isArray)(L)&&L.length>1?"{"+L.join(",")+"}":String(L)},{id:Kr.$m.Text,name:"Text",description:"Format variables in their text representation. Example in multi-variable scenario A + B + C.",formatter:(L,_e,mn)=>mn.getValueText?mn.getValueText():String(L)},{id:Kr.$m.QueryParam,name:"Query parameter",description:"Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.",formatter:(L,_e,mn)=>Array.isArray(L)?L.map(vr=>ir(mn.state.name,vr)).join("&"):ir(mn.state.name,L)},{id:Kr.$m.UriEncode,name:"Percent encode as URI",description:"Useful for URL escaping values, taking into URI syntax characters",formatter:L=>(0,st.isArray)(L)?_i("{"+L.join(",")+"}"):_i(L)}]);function An(de){return isNaN(+de)===!1?de:de.replace(/([\!\*\+\-\=<>\s\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}function Cr(de){return typeof de=="object"&&(de=String(de)),Sn(encodeURIComponent(de))}const _i=de=>Sn(encodeURI(String(de))),Sn=de=>de.replace(/[!'()*]/g,L=>"%"+L.charCodeAt(0).toString(16).toUpperCase());function ir(de,L){return`var-${de}=${Cr(L)}`}const mt={"'":"''",'"':'\\"'};function fn(de){const L=new RegExp(`'|"`,"g");if((0,st.isArray)(de))return(0,st.map)(de,mn=>`'${(0,st.replace)(mn,L,vr=>{var Qr;return(Qr=mt[vr])!=null?Qr:""})}'`).join(",");let _e=typeof de=="string"?de:String(de);return`'${(0,st.replace)(_e,L,mn=>{var vr;return(vr=mt[mn])!=null?vr:""})}'`}const gt="All",tn="$__all",Vn="Auto",Ur="$__auto",$r=/\$(\w+)|\[\[(\w+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\}]+))?(?::([^\}]+))?}/g,Pr="__searchFilter";function zr(de,L){const _e=L.state.$variables;if(!_e)return L.parent?zr(de,L.parent):null;const mn=_e.getByName(de);return mn||(L.parent?zr(de,L.parent):null)}function gi(de,L,_e,mn){return L?($r.lastIndex=0,L.replace($r,(vr,Qr,ao,oa,qo,ha,is)=>{const _s=Qr||ao||qo,ou=oa||is||mn,Ju=$i(_s,vr,_e,de);return Ju?eo(Ju,Ju.getValue(ha),ou):vr})):L??""}function $i(de,L,_e,mn){const vr=_e?.[de];if(vr)return un(de,vr);const Qr=zr(de,mn);return Qr||(B[de]?new B[de](de,mn,L,_e):null)}function eo(de,L,_e){if(L==null)return"";if(Ai(L))return L.formatter(_e);if(!Array.isArray(L)&&typeof L=="object"&&(L=`${L}`),typeof _e=="function")return _e(L,{name:de.state.name,type:de.state.type,multi:de.state.isMulti,includeAll:de.state.includeAll});let mn=[];_e?(mn=_e.split(":"),mn.length>1?(_e=mn[0],mn=mn.slice(1)):mn=[]):_e=Kr.$m.Glob;let vr=ln.getIfExists(_e);return vr||(console.error(`Variable format ${_e} not found. Using glob format as fallback.`),vr=ln.get(Kr.$m.Glob)),vr.formatter(L,mn,de)}class ki extends it{constructor(L){super(L),this.addActivationHandler(()=>this._onActivate())}_onActivate(){const{layers:L}=this.state,_e=[];for(const mn of L)_e.push(mn.activate());return()=>{_e.forEach(mn=>mn())}}}var so=(de,L,_e)=>{if(!L.has(de))throw TypeError("Cannot "+_e)},Ho=(de,L,_e)=>(so(de,L,"read from private field"),_e?_e.call(de):L.get(de)),ra=(de,L,_e)=>{if(L.has(de))throw TypeError("Cannot add the same private member more than once");L instanceof WeakSet?L.add(de):L.set(de,_e)},So;function gr(de){return"isQueryController"in de}class di extends it{constructor(){super({isRunning:!1}),this.isQueryController=!0,ra(this,So,new Set),this.addActivationHandler(()=>()=>Ho(this,So).clear())}queryStarted(L){Ho(this,So).add(L),this.changeRunningQueryCount(1),this.state.isRunning||this.setState({isRunning:!0})}queryCompleted(L){Ho(this,So).has(L)&&(Ho(this,So).delete(L),this.changeRunningQueryCount(-1),Ho(this,So).size===0&&this.setState({isRunning:!1}))}changeRunningQueryCount(L){var _e;window.__grafanaRunningQueryCount=((_e=window.__grafanaRunningQueryCount)!=null?_e:0)+L}cancelAll(){var L;for(const _e of Ho(this,So).values())(L=_e.cancel)==null||L.call(_e)}}So=new WeakMap;function Vi(de){var L;return(L=ze(de,_e=>_e.state.$variables))!=null?L:hi}function Ro(de){var L;return(L=ze(de,_e=>_e.state.$data))!=null?L:ui}function na(de){return"isDraggable"in de}function ta(de){const L=ze(de,_e=>na(_e)?_e:void 0);return L||null}function aa(de,L,_e,mn){return L===""||L==null?"":gi(de,L,_e,mn)}function vi(de){if(!de.variableDependency)return!1;for(const L of de.variableDependency.getNames()){const _e=zr(L,de);if(!_e)continue;if(_e.parent.isVariableLoadingOrWaitingToUpdate(_e))return!0}return!1}function to(de,L,_e,mn){if(L(de))return de;let vr=null;return de.forEachChild(Qr=>{if(Qr===_e)return;let ao=to(Qr,L);ao&&(vr=ao)}),vr||(mn&&de.parent?to(de.parent,L,de,!0):null)}function $o(de,L){return to(de,L,void 0,!0)}function ja(de,L){const _e=[];return de.forEachChild(mn=>{L(mn)&&_e.push(mn),_e.push(...ja(mn,L))}),_e}function hs(de,L=!1){let _e=de,mn=[],vr;for(;_e&&(_e.state.$data&&!(_e.state.$data instanceof ki)&&_e.state.$data.state.$data instanceof ki&&(vr=_e.state.$data.state.$data),_e.state.$data&&_e.state.$data instanceof ki&&(vr=_e.state.$data),!(vr&&(mn=mn.concat(vr.state.layers),L)));)_e=_e.parent;return mn}function ro(de,L){let _e=de;for(;_e;){if(_e instanceof L)return _e;_e=_e.parent}if(!_e)throw new Error("Unable to find parent of type "+L.name);return _e}function as(de){let L=de;for(;L;){if(L.state.$behaviors){for(const _e of L.state.$behaviors)if(gr(_e))return _e}L=L.parent}return L}class rn{constructor(L){this._value=L}formatter(){return this._value}}class Dr{constructor(L,_e){this.state={name:L,type:"url_variable"},this._sceneObject=_e}getValue(){var L;const mn=(L=Si(this._sceneObject).urlSync)==null?void 0:L.getUrlState();return new rn(u.kM.toUrlParams(mn))}getValueText(){return""}}class Lr{constructor(L,_e){this.state={name:L,type:"time_macro"},this._sceneObject=_e}getValue(){const L=Si(this._sceneObject);return this.state.name==="__from"?L.state.value.from.valueOf():L.state.value.to.valueOf()}getValueText(){const L=Si(this._sceneObject);return this.state.name==="__from"?(0,Bt.LE)(L.state.value.from,{timeZone:L.getTimeZone()}):(0,Bt.LE)(L.state.value.to,{timeZone:L.getTimeZone()})}}class li{constructor(L,_e){this.state={name:L,type:"time_macro"},this._sceneObject=_e}getValue(){return Si(this._sceneObject).getTimeZone()}getValueText(){return this.getValue()}}class Zi{constructor(L,_e){this.state={name:L,type:"time_macro"},this._sceneObject=_e}getValue(){var L;const _e=Ro(this._sceneObject);if(_e){const mn=(L=_e.state.data)==null?void 0:L.request;return mn?this.state.name==="__interval_ms"?mn.intervalMs:mn.interval:`\${${this.state.name}}`}return`\${${this.state.name}}`}}class Di{constructor(L,_e){this.state={name:L,type:"url_variable"},this._sceneObject=_e}getValue(){const L=wo(this._sceneObject),_e=ln.get(Kr.$m.QueryParam),mn=[];for(const vr of Object.keys(L)){const Qr=L[vr],ao=Qr.getValue();ao&&(Ai(ao)?mn.push(ao.formatter(Kr.$m.QueryParam)):mn.push(_e.formatter(ao,[],Qr)))}return new rn(mn.join("&"))}getValueText(){return""}}function wo(de,L={}){if(de.state.$variables)for(const _e of de.state.$variables.state.variables)_e.state.skipUrlSync||L[_e.state.name]||(L[_e.state.name]=_e);return de.parent&&wo(de.parent,L),L}var Go=t(83195),Ko=t(11261),Ie=t(57875),yt=t(92461),on=t(28240),_n=t(8249),er=Object.defineProperty,or=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,cr=(de,L,_e)=>L in de?er(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,ni=(de,L)=>{for(var _e in L||(L={}))Ui.call(L,_e)&&cr(de,_e,L[_e]);if(Mi)for(var _e of Mi(L))Nn.call(L,_e)&&cr(de,_e,L[_e]);return de},Xr=(de,L)=>or(de,Er(L));function Jr(de,L,_e){return new Proxy({},{get:(mn,vr)=>{if(vr==="name")return de.name;if(vr==="displayName")return(0,on.Ct)(de,L,_e);if(vr==="labels"||vr==="formattedLabels")return de.labels?Xr(ni({},de.labels),{__values:Object.values(de.labels).sort().join(", "),toString:()=>(0,_n.h6)(de.labels,"",!0)}):""}})}class Qi{constructor(L,_e,mn,vr){this._match=mn,this._scopedVars=vr,this.state={name:L,type:"__value"}}getValue(L){var _e,mn;const vr=(_e=this._scopedVars)==null?void 0:_e.__dataContext;if(!vr)return this._match;const{frame:Qr,rowIndex:ao,field:oa,calculatedValue:qo}=vr.value;if(qo)switch(L){case"numeric":return qo.numeric;case"raw":return qo.numeric;case"time":return"";case"text":default:return(0,Go.cN)(qo)}if(ao==null)return this._match;if(L==="time"){const ou=Qr.fields.find(Ju=>Ju.type===Ko.PU.time);return ou?ou.values.get(ao):void 0}if(!oa)return this._match;const ha=oa.values.get(ao);if(L==="raw")return ha;const _s=((mn=oa.display)!=null?mn:Fo)(ha);switch(L){case"numeric":return _s.numeric;case"text":default:return(0,Go.cN)(_s)}}getValueText(){return""}}const Fo=(0,Ie.J)();class No{constructor(L,_e,mn,vr){this._match=mn,this._scopedVars=vr,this.state={name:L,type:"__data"}}getValue(L){var _e,mn;const vr=(_e=this._scopedVars)==null?void 0:_e.__dataContext;if(!vr||!L)return this._match;const{frame:Qr,rowIndex:ao}=vr.value;if(ao===void 0||L===void 0)return this._match;const oa={name:Qr.name,refId:Qr.refId,fields:(0,yt.F)({frame:Qr,rowIndex:ao})};return(mn=io(L)(oa))!=null?mn:""}getValueText(){return""}}class Jo{constructor(L,_e,mn,vr){this._match=mn,this._scopedVars=vr,this.state={name:L,type:"__series"}}getValue(L){var _e;const mn=(_e=this._scopedVars)==null?void 0:_e.__dataContext;if(!mn||!L)return this._match;if(L!=="name")return this._match;const{frame:vr,frameIndex:Qr}=mn.value;return(0,on.Ri)(vr,Qr)}getValueText(){return""}}class br{constructor(L,_e,mn,vr){this._match=mn,this._scopedVars=vr,this.state={name:L,type:"__field"}}getValue(L){var _e,mn;const vr=(_e=this._scopedVars)==null?void 0:_e.__dataContext;if(!vr||!L)return this._match;if(L===void 0||L==="")return this._match;const{frame:Qr,field:ao,data:oa}=vr.value,qo=Jr(ao,Qr,oa);return(mn=io(L)(qo))!=null?mn:""}getValueText(){return""}}class Yn{constructor(L,_e){this.state={name:L,type:"url_macro"}}getValue(L){var _e;const mn=p.Ny.getLocation(),vr=(_e=Ln.$.appSubUrl)!=null?_e:"";switch(L??""){case"params":return new Z(mn.search);case"path":return vr+mn.pathname;case"":default:return vr+mn.pathname+mn.search}}getValueText(){return""}}class Z{constructor(L){this._urlQueryParams=L}formatter(L){if(!L)return this._urlQueryParams;const _e=L.split(":");if(_e[0]==="exclude"&&_e.length>1){const mn=new URLSearchParams(this._urlQueryParams);for(const vr of _e[1].split(","))mn.delete(vr);return`?${mn}`}if(_e[0]==="include"&&_e.length>1){const mn=new URLSearchParams(this._urlQueryParams),vr=_e[1].split(",");for(const Qr of mn.keys())vr.includes(Qr)||mn.delete(Qr);return`?${mn}`}return this._urlQueryParams}}class se{constructor(L,_e){this.state={name:L,type:"user_macro"}}getValue(L){const _e=Ln.$.bootData.user;switch(L){case"login":return _e.login;case"email":return _e.email;case"id":default:return String(_e.id)}}getValueText(){return""}}class G{constructor(L,_e){this.state={name:L,type:"org_macro"}}getValue(L){const _e=Ln.$.bootData.user;switch(L){case"name":return _e.orgName;case"id":default:return String(_e.orgId)}}getValueText(){return""}}const B={[Qe.c.includeVars]:Di,[Qe.c.keepTime]:Dr,__value:Qi,__data:No,__series:Jo,__field:br,__url:Yn,__from:Lr,__to:Lr,__timezone:li,__user:se,__org:G,__interval:Zi,__interval_ms:Zi};function Pe(de,L){if(B[de])throw new Error(`Macro already registered ${de}`);return B[de]=L,()=>{delete B[de]}}function dt(de,L){return de===L?!0:(0,st.isEqual)(de,L)}function Lt(de){const L=()=>{const _e=new WeakSet;return(mn,vr)=>{if(typeof vr=="object"&&vr!==null){if(_e.has(vr))return;_e.add(vr)}return vr}};try{return JSON.stringify(de,L())}catch(_e){console.error(_e)}return""}function Pt(de){return de.map(L=>$e(L)).join(",")}function $e(de){let L="";return de.operator==="=~"||de.operator==="!~\xA8"?L=zt(de.value):L=ut(de.value),`${de.key}${de.operator}"${L}"`}function ut(de){return de.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function zt(de){return ut(Fn(de))}const Ht=/[*+?()|\\.\[\]{}^$]/g;function Fn(de){return de.replace(Ht,"\\$&")}function Cn(de){return de.state.type==="adhoc"}function tr(de){return de.state.type==="constant"}function Jn(de){return de.state.type==="custom"}function ei(de){return de.state.type==="datasource"}function Ci(de){return de.state.type==="interval"}function zi(de){return de.state.type==="query"}function co(de){return de.state.type==="textbox"}function Xo(de){return de.state.type==="groupby"}const Eo={getVariables:Vi,getData:Ro,getTimeRange:Si,getLayout:ta,getDataLayers:hs,interpolate:aa,lookupVariable:zr,hasVariableDependencyInLoadingState:vi,findObject:$o,findAllObjects:ja,getAncestor:ro,getQueryController:as};function Yo(de,L,..._e){window.grafanaSceneLogging&&console.log(`${de}: `,L,..._e)}class Xn{constructor(L,_e){this._sceneObject=L,this._options=_e,this._dependencies=new Set,this._isWaitingForVariables=!1,this.scanCount=0,this._statePaths=_e.statePaths}hasDependencyOn(L){return this.getNames().has(L)}variableUpdateCompleted(L,_e){const mn=this.getNames();let vr=!1;mn.has(L.state.name)&&_e&&(vr=!0),Yo("VariableDependencyConfig","variableUpdateCompleted",L.state.name,vr,this._isWaitingForVariables),this._options.onAnyVariableChanged&&this._options.onAnyVariableChanged(L),this._options.onVariableUpdateCompleted&&(this._isWaitingForVariables||vr)&&this._options.onVariableUpdateCompleted(),vr&&(this._options.onReferencedVariableValueChanged&&this._options.onReferencedVariableValueChanged(L),!this._options.onReferencedVariableValueChanged&&!this._options.onVariableUpdateCompleted&&this._sceneObject.forceRender())}hasDependencyInLoadingState(){return Eo.hasVariableDependencyInLoadingState(this._sceneObject)?(this._isWaitingForVariables=!0,!0):(this._isWaitingForVariables=!1,!1)}getNames(){const L=this._state,_e=this._state=this._sceneObject.state;if(!L)return this.scanStateForDependencies(this._state),this._dependencies;if(_e!==L)if(this._statePaths){for(const mn of this._statePaths)if(mn==="*"||_e[mn]!==L[mn]){this.scanStateForDependencies(_e);break}}else this.scanStateForDependencies(_e);return this._dependencies}setVariableNames(L){this._options.variableNames=L,this.scanStateForDependencies(this._state)}setPaths(L){this._statePaths=L}scanStateForDependencies(L){if(this._dependencies.clear(),this.scanCount+=1,this._options.variableNames)for(const _e of this._options.variableNames)this._dependencies.add(_e);else if(this._statePaths)for(const _e of this._statePaths)if(_e==="*"){this.extractVariablesFrom(L);break}else{const mn=L[_e];mn&&this.extractVariablesFrom(mn)}}extractVariablesFrom(L){$r.lastIndex=0;const mn=(typeof L!="string"?Lt(L):L).matchAll($r);if(mn)for(const vr of mn){const[,Qr,ao,,oa]=vr,qo=Qr||ao||oa;this._dependencies.add(qo)}}}class fr extends it{constructor(){super(...arguments),this._runningEffect=null,this._variableDependency=new Xn(this,{variableNames:[this.state.variableName],onReferencedVariableValueChanged:this._onVariableChanged.bind(this)})}_onVariableChanged(L){const _e=this.state.onChange;this._runningEffect&&(this._runningEffect(),this._runningEffect=null);const mn=_e(L,this);mn&&(this._runningEffect=mn)}}var mr=t(73134),yr=t(88483),Rr=Object.defineProperty,ai=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,fi=(de,L,_e)=>L in de?Rr(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Ti=(de,L)=>{for(var _e in L||(L={}))nr.call(L,_e)&&fi(de,_e,L[_e]);if(Pn)for(var _e of Pn(L))Ir.call(L,_e)&&fi(de,_e,L[_e]);return de},Oe=(de,L)=>ai(de,jt(L));class pn extends it{constructor(L){super(Oe(Ti({},L),{sync:L.sync||mr.yV.Off})),this.getEventsBus=_e=>{if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return new Qn(this.parent,_e)}}getEventsScope(){if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return this.state.key}}class Qn{constructor(L,_e){this._source=L,this._eventsOrigin=_e}publish(L){L.origin=this,this._eventsOrigin.publishEvent(L,!0)}getStream(L){return new yr.c(_e=>{const mn=Qr=>{_e.next(Qr)},vr=this._source.subscribeToEvent(L,mn);return()=>vr.unsubscribe()})}subscribe(L,_e){return this.getStream(L).pipe().subscribe(_e)}removeAllListeners(){}newScopedBus(L,_e){throw new Error("For internal use only")}}function Sr(de){return Eo.findObject(de,L=>L instanceof pn)}var hr=t(33948),kr=t(81160),Ve=t(19347);async function Ot(de,L){if(de?.uid){const _e=ct.get(de.uid);if(_e)return _e}return de&&de.query?de:await(0,Ve.l)().get(de,L)}var wn=t(17172);function Wt(de){if(typeof de=="string")return de;if(de){if(de instanceof Error)return de.message;if((0,wn.NF)(de)){if(de.data&&de.data.message)return de.data.message;if(de.statusText)return de.statusText}else if(de.hasOwnProperty("message"))return de.message}return JSON.stringify(de)}function Yt(de){return L=>{const _e=Eo.getQueryController(de.origin);return _e?new yr.c(mn=>{de.cancel||(de.cancel=()=>mn.complete()),_e.queryStarted(de);let vr=!1;const Qr=L.subscribe({next:ao=>{!vr&&ao.state!==bt.Gu.Loading&&(vr=!0,_e.queryCompleted(de)),mn.next(ao)},error:ao=>mn.error(ao),complete:()=>{mn.complete()}});return()=>{Qr.unsubscribe(),vr||_e.queryCompleted(de)}}):L}}var zn=t(39741);function Nr(de,L){de.setState(L)}class si{constructor(){this._values=new Map}recordCurrentDependencyValuesForSceneObject(L){if(this.clearValues(),!!L.variableDependency)for(const _e of L.variableDependency.getNames()){const mn=Eo.lookupVariable(_e,L);mn&&this._values.set(mn,mn.getValue())}}clearValues(){this._values.clear()}hasValues(){return!!this._values}recordCurrentValue(L){this._values.set(L,L.getValue())}hasRecordedValue(L){return this._values.has(L)}hasValueChanged(L){if(this._values.has(L)){const _e=this._values.get(L);if(!dt(_e,L.getValue()))return!0}return!1}hasDependenciesChanged(L){if(!this._values||!L.variableDependency)return!1;for(const _e of L.variableDependency.getNames()){const mn=Eo.lookupVariable(_e,L);if(mn&&this._values.has(mn)){const vr=this._values.get(mn);if(!dt(vr,mn.getValue()))return!0}}return!1}}var Ki=Object.defineProperty,Bi=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable,ea=(de,L,_e)=>L in de?Ki(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,la=(de,L)=>{for(var _e in L||(L={}))Xi.call(L,_e)&&ea(de,_e,L[_e]);if(Bi)for(var _e of Bi(L))vo.call(L,_e)&&ea(de,_e,L[_e]);return de};class ss extends it{constructor(L,_e=[]){super(la({isEnabled:!0},L)),this._results=new zn.m,this._variableValueRecorder=new si,this._variableDependency=new Xn(this,{onVariableUpdateCompleted:this.onVariableUpdateCompleted.bind(this)}),this._variableDependency.setPaths(_e),this.addActivationHandler(()=>this.onActivate())}onActivate(){return this.state.isEnabled&&this.onEnable(),this.shouldRunLayerOnActivate()&&this.runLayer(),this.subscribeToState((L,_e)=>{!L.isEnabled&&this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.onDisable(),this._results.next({origin:this,data:Xe,topic:this.topic}),this.setStateHelper({data:Xe})),L.isEnabled&&!_e.isEnabled&&(this.onEnable(),this.runLayer())}),()=>{this.onDeactivate()}}onDeactivate(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0),this.onDisable(),this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this)}onVariableUpdateCompleted(){this.runLayer()}cancelQuery(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.publishResults(Xe,this.topic))}publishResults(L,_e){this.state.isEnabled&&(this._results.next({origin:this,data:L,topic:_e}),this.setStateHelper({data:L}))}getResultsStream(){return this._results}shouldRunLayerOnActivate(){return this._variableValueRecorder.hasDependenciesChanged(this)?(Yo("SceneDataLayerBase","Variable dependency changed while inactive, shouldRunLayerOnActivate returns true"),!0):this.querySub?!this.state.data:!0}setStateHelper(L){Nr(this,L)}}var Rs=t(65474),Ds=t(69862),Is=t(65879),nu=t(41987),Ls=t(63639),gu=t(57934),Us=t(8790),Iu=Object.defineProperty,Wu=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,Hu=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,fl=(de,L,_e)=>L in de?Iu(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Rl=(de,L)=>{for(var _e in L||(L={}))Ts.call(L,_e)&&fl(de,_e,L[_e]);if(Hu)for(var _e of Hu(L))Al.call(L,_e)&&fl(de,_e,L[_e]);return de},Bu=(de,L)=>Wu(de,rl(L)),Mn=(de,L)=>{var _e={};for(var mn in de)Ts.call(de,mn)&&L.indexOf(mn)<0&&(_e[mn]=de[mn]);if(de!=null&&Hu)for(var mn of Hu(de))L.indexOf(mn)<0&&Al.call(de,mn)&&(_e[mn]=de[mn]);return _e};const en={prepareAnnotation:de=>{if((0,st.isString)(de?.query)){const L=de,{query:_e}=L,mn=Mn(L,["query"]);return Bu(Rl({},mn),{target:{refId:"annotation_query",query:_e},mappings:{}})}return de},prepareQuery:de=>de.target,processEvents:(de,L)=>Fr(L,de.mappings)};function sn(){return de=>de.pipe((0,Ds.Z)(L=>{if(!L?.length)return(0,at.of)(void 0);if(L.length===1)return(0,at.of)(L[0]);const _e={interpolate:mn=>mn};return(0,at.of)(L).pipe(gu.c.mergeTransformer.operator({},_e),(0,kr.T)(mn=>mn[0]))}))}const qt=[{key:"time",field:de=>de.fields.find(L=>L.type===Ko.PU.time),placeholder:"time, or the first time field"},{key:"timeEnd",help:"When this field is defined, the annotation will be treated as a range"},{key:"title"},{key:"text",field:de=>de.fields.find(L=>L.type===Ko.PU.string),placeholder:"text, or the first text field"},{key:"tags",split:",",help:"The results will be split on comma (,)"},{key:"id"}],In=[{key:"color"},{key:"isRegion"},{key:"source"}],Kn=[...Ln.$.isPublicDashboardView?In:[],...qt,{key:"userId"},{key:"login"},{key:"email"},{key:"prevState"},{key:"newState"},{key:"data"},{key:"panelId"},{key:"alertId"},{key:"dashboardId"},{key:"dashboardUID"}];function Fr(de,L){return(0,at.of)(de).pipe(sn(),(0,kr.T)(_e=>{if(!_e?.length)return[];let mn=!1,vr=!1;const Qr={};for(const qo of _e.fields){const ha=(0,on.Ct)(qo,_e);Qr[ha.toLowerCase()]=qo}L||(L={});const ao=[];for(const qo of Kn){const ha=L[qo.key]||{};if(ha.source===Us.V.Skip)continue;const is={key:qo.key,split:qo.split};if(ha.source===Us.V.Text)is.text=ha.value;else{const _s=(ha.value||qo.key).toLowerCase();is.field=Qr[_s],!is.field&&qo.field&&(is.field=qo.field(_e))}(is.field||is.text)&&(ao.push(is),is.key==="time"?mn=!0:is.key==="text"&&(vr=!0))}if(!mn||!vr)return console.error("Cannot process annotation fields. No time or text present."),[];const oa=[];for(let qo=0;qo<_e.length;qo++){const ha={type:"default",color:"red"};for(const is of ao){let _s;if(is.text)_s=is.text;else if(is.field&&(_s=is.field.values.get(qo),_s!==void 0&&is.regex)){const ou=is.regex.exec(_s);ou&&(_s=ou[1]?ou[1]:ou[0])}_s!=null&&(is.split&&typeof _s=="string"&&(_s=_s.split(",")),ha[is.key]=_s)}oa.push(ha)}return oa}))}const ci=["prometheus","loki","elasticsearch","grafana-opensearch-datasource"];function Le(de){const{type:L}=de;return!de.annotations||ci.includes(L)}function te(de){return de.useState!==void 0}function Ue(de){return"enrichDataRequest"in de}function rt(de){const L=de.getRoot();return Ue(L)?L.enrichDataRequest(de):null}var ht=Object.defineProperty,Gt=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,vt=(de,L,_e)=>L in de?ht(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Vt=(de,L)=>{for(var _e in L||(L={}))wr.call(L,_e)&&vt(de,_e,L[_e]);if(Hn)for(var _e of Hn(L))Wr.call(L,_e)&&vt(de,_e,L[_e]);return de},dn=(de,L)=>Gt(de,xn(L));let yn=100;function ar(){return"AQ"+yn++}function wi(de,L,_e,mn){var vr;if(de.annotationQuery&&Le(de))return console.warn("Using deprecated annotationQuery method, please upgrade your datasource"),(0,Rs.H)(de.annotationQuery({range:L.state.value,rangeRaw:L.state.value.raw,annotation:_e,dashboard:{}})).pipe((0,kr.T)(cl=>({state:bt.Gu.Done,events:cl})));const Qr=Vt(Vt({},en),de.annotations),ao=Vt(Vt({},(vr=Qr.getDefaultQuery)==null?void 0:vr.call(Qr)),_e),oa=Qr.prepareAnnotation(ao);if(!oa)return(0,at.of)({state:bt.Gu.Done,events:[]});const qo=Qr.prepareQuery(oa);if(!qo)return(0,at.of)({state:bt.Gu.Done,events:[]});const ha=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,is=Is.calculateInterval(L.state.value,ha,de.interval),_s={__interval:{text:is.interval,value:is.interval},__interval_ms:{text:is.intervalMs.toString(),value:is.intervalMs},__annotation:{text:oa.name,value:oa},__sceneObject:{text:"__sceneObject",value:mn}},ou=Vt(dn(Vt({startTime:Date.now(),requestId:ar(),range:L.state.value,maxDataPoints:ha,scopedVars:_s},is),{app:nu.Jk.Dashboard,timezone:L.getTimeZone(),targets:[dn(Vt({},qo),{refId:"Anno"})]}),rt(mn));return(0,Ls.XJ)()(de,ou).pipe((0,Ds.Z)(cl=>{const $l=cl?.series.length?cl.series:cl.annotations;return $l?.length?($l.forEach(Sc=>{var Qf;(Qf=Sc.meta)!=null&&Qf.dataTopic||(Sc.meta=dn(Vt({},Sc.meta||{}),{dataTopic:Kr.QR.Annotations}))}),Qr.processEvents(oa,$l).pipe((0,kr.T)(Sc=>({state:cl.state,events:Sc||[]})))):(0,at.of)({state:cl.state,events:[]})}))}var mi=Object.defineProperty,ho=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,bo=(de,L,_e)=>L in de?mi(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,ca=(de,L)=>{for(var _e in L||(L={}))Ao.call(L,_e)&&bo(de,_e,L[_e]);if(ho)for(var _e of ho(L))Mo.call(L,_e)&&bo(de,_e,L[_e]);return de};function sa(de,L){return de.snapshotData&&(de=(0,st.cloneDeep)(de),delete de.snapshotData),L.map(mn=>{var vr;const Qr=ca({},mn);switch(Qr.source=de,Qr.color=Ln.$.theme2.visualization.getColorByName(de.iconColor),Qr.type=de.name,Qr.isRegion=!!(Qr.timeEnd&&Qr.time!==Qr.timeEnd),(vr=Qr.newState)==null?void 0:vr.toLowerCase()){case"pending":Qr.color="yellow";break;case"alerting":Qr.color="red";break;case"ok":Qr.color="green";break;case"normal":Qr.color="green";break;case"no_data":Qr.color="gray";break;case"nodata":Qr.color="gray";break}return Qr})}function Da(de){let L=[];const _e=(0,st.partition)(de,"id"),mn=(0,st.groupBy)(_e[0],"id");return L=(0,st.map)(mn,vr=>vr.length>1&&!(0,st.every)(vr,La)?(0,st.find)(vr,Qr=>Qr.eventType!=="panel-alert"):(0,st.head)(vr)),L=(0,st.concat)(L,_e[1]),L}function La(de){return de.eventType==="panel-alert"}var Ja=Object.defineProperty,Ya=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ba=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,ii=(de,L,_e)=>L in de?Ja(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Wo=(de,L)=>{for(var _e in L||(L={}))Ka.call(L,_e)&&ii(de,_e,L[_e]);if(ba)for(var _e of ba(L))us.call(L,_e)&&ii(de,_e,L[_e]);return de},Ra=(de,L)=>Ya(de,Aa(L));class _a extends ss{constructor(L){super(Wo({isEnabled:!0},L),["query"]),this.topic=Kr.QR.Annotations}onEnable(){const L=Eo.getTimeRange(this);this._timeRangeSub=L.subscribeToState(()=>{this.runWithTimeRange(L)})}onDisable(){var L;(L=this._timeRangeSub)==null||L.unsubscribe()}runLayer(){Yo("AnnotationsDataLayer","run layer");const L=Eo.getTimeRange(this);this.runWithTimeRange(L)}async runWithTimeRange(L){const{query:_e}=this.state;if(this.querySub&&this.querySub.unsubscribe(),this._variableDependency.hasDependencyInLoadingState()){Yo("AnnotationsDataLayer","Variable dependency is in loading state, skipping query execution");return}try{const mn=await this.resolveDataSource(_e);let vr=wi(mn,L,_e,this).pipe(Yt({type:"annotations",origin:this,cancel:()=>this.cancelQuery()}),(0,kr.T)(Qr=>this.processEvents(_e,Qr)));this.querySub=vr.subscribe(Qr=>{this.publishResults(Qr,Kr.QR.Annotations)})}catch(mn){this.publishResults(Ra(Wo({},Xe),{state:bt.Gu.Error,errors:[{message:Wt(mn)}]}),Kr.QR.Annotations),console.error("AnnotationsDataLayer error",mn)}}async resolveDataSource(L){return await Ot(L.datasource||void 0,{})}processEvents(L,_e){let mn=sa(L,_e.events||[]);mn=Da(mn);const vr=Ra(Wo({},Xe),{state:_e.state}),Qr=(0,hr.I)(mn);return Qr.meta=Ra(Wo({},Qr.meta),{dataTopic:Kr.QR.Annotations}),vr.annotations=[Qr],vr}}class Wa extends it{constructor(L){super(L),this._activationHandler=()=>{const _e=this.getAncestorTimeRange();this.ancestorTimeRangeChanged(_e.state),this._subs.add(_e.subscribeToState(mn=>this.ancestorTimeRangeChanged(mn)))},this.addActivationHandler(this._activationHandler)}getAncestorTimeRange(){if(!this.parent||!this.parent.parent)throw new Error(typeof this+" must be used within $timeRange scope");return Eo.getTimeRange(this.parent.parent)}getTimeZone(){return this.getAncestorTimeRange().getTimeZone()}onTimeRangeChange(L){this.getAncestorTimeRange().onTimeRangeChange(L)}onTimeZoneChange(L){this.getAncestorTimeRange().onTimeZoneChange(L)}onRefresh(){this.getAncestorTimeRange().onRefresh()}}var eu=Object.defineProperty,Ws=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,_r=(de,L,_e)=>L in de?eu(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,xr=(de,L)=>{for(var _e in L||(L={}))Rn.call(L,_e)&&_r(de,_e,L[_e]);if(kt)for(var _e of kt(L))jn.call(L,_e)&&_r(de,_e,L[_e]);return de},oi=(de,L)=>Ws(de,Ne(L));class ti extends Wa{constructor(L){super(oi(xr({},L),{timeZone:L.timeZone,from:"now-6h",to:"now",value:(0,nn.E2)()}))}ancestorTimeRangeChanged(L){this.setState(oi(xr({},L),{timeZone:this.state.timeZone,value:Or(L.from,L.to,this.state.timeZone,L.fiscalYearStartMonth,L.UNSAFE_nowDelay)}))}getTimeZone(){return this.state.timeZone}onTimeZoneChange(L){this.setState({timeZone:L,value:Or(this.state.from,this.state.to,this.state.timeZone,this.getAncestorTimeRange().state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay)})}}var Ri=t(44240),Fi=t(93031),Gi=t(45650),yo=t(14236),Do=t(78368),po=t(12091),Ji=t(40845),Uo=t(19727),Ia=t(27746),za=t(10880),Ma=t(9261),xo=t(32196),xs=Object.defineProperty,va=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable,Xa=(de,L,_e)=>L in de?xs(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,wa=(de,L)=>{for(var _e in L||(L={}))Pa.call(L,_e)&&Xa(de,_e,L[_e]);if(va)for(var _e of va(L))Na.call(L,_e)&&Xa(de,_e,L[_e]);return de};const Ga="__previousPeriod",vs="__noPeriod",Za={label:"Previous period",value:Ga},$a={label:"No comparison",value:vs},ns=[{label:"Day before",value:"24h"},{label:"Week before",value:"1w"},{label:"Month before",value:"1M"}];class uu extends it{constructor(L){super(wa({compareOptions:ns},L)),this._urlSync=new Dt(this,{keys:["compareWith"]}),this._onActivate=()=>{const _e=Eo.getTimeRange(this);this.setState({compareOptions:this.getCompareOptions(_e.state.value)}),this._subs.add(_e.subscribeToState(mn=>{const vr=this.getCompareOptions(mn.value),Qr={compareOptions:vr};this.state.compareWith&&!vr.find(({value:ao})=>ao===this.state.compareWith)&&(Qr.compareWith=Ga),this.setState(Qr)}))},this.getCompareOptions=_e=>{const mn=Math.ceil(_e.to.diff(_e.from)),vr=ns.findIndex(({value:Qr})=>Is.intervalToMs(Qr)>=mn);return[$a,Za,...ns.slice(vr).map(({label:Qr,value:ao})=>({label:Qr,value:ao}))]},this.onCompareWithChanged=_e=>{_e===vs?this.onClearCompare():this.setState({compareWith:_e})},this.onClearCompare=()=>{this.setState({compareWith:void 0})},this.addActivationHandler(this._onActivate)}getCompareTimeRange(L){let _e,mn;if(this.state.compareWith){if(this.state.compareWith===Ga){const vr=L.to.diff(L.from);_e=(0,Qt.KQ)(L.from).subtract(vr),mn=(0,Qt.KQ)(L.to).subtract(vr)}else _e=(0,Qt.KQ)(L.from).subtract(Is.intervalToMs(this.state.compareWith)),mn=(0,Qt.KQ)(L.to).subtract(Is.intervalToMs(this.state.compareWith));return{from:_e,to:mn,raw:{from:_e,to:mn}}}}getUrlState(){return{compareWith:this.state.compareWith}}updateFromUrl(L){if(!L.compareWith)return;const _e=cn(L.compareWith);_e&&(this.getCompareOptions(Eo.getTimeRange(this).state.value).find(({value:vr})=>vr===_e)?this.setState({compareWith:_e}):this.setState({compareWith:"__previousPeriod"}))}}uu.Component=Mu;function Mu({model:de}){var L;const _e=(0,Ji.of)(Lu),{compareWith:mn,compareOptions:vr}=de.useState(),[Qr,ao]=s.useState(mn),oa=(L=vr.find(({value:_s})=>_s===Qr))!=null?L:Za,qo=vr.find(({value:_s})=>_s===mn),ha=!!qo,is=()=>{ha?(ao(mn),de.onClearCompare()):ha||de.onCompareWithChanged(oa.value)};return s.createElement(Uo.e,null,s.createElement(Ia.I,{variant:"canvas",tooltip:"Enable time frame comparison",onClick:_s=>{_s.stopPropagation(),_s.preventDefault(),is()}},s.createElement(za.S,{label:" ",value:ha,onClick:is}),"Comparison"),ha?s.createElement(Ma.f,{variant:"canvas",value:qo,options:vr,onChange:_s=>{de.onCompareWithChanged(_s.value)}}):s.createElement(Ia.I,{className:_e.previewButton,disabled:!0,variant:"canvas",isOpen:!1},oa.label))}function Lu(de){return{previewButton:(0,xo.css)({"&:disabled":{border:`1px solid ${de.colors.secondary.border}`,color:de.colors.text.disabled,opacity:1}})}}const ju=de=>`${de}-compare`;var pl=Object.defineProperty,pu=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,su=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,bu=(de,L,_e)=>L in de?pl(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Ul=(de,L)=>{for(var _e in L||(L={}))Au.call(L,_e)&&bu(de,_e,L[_e]);if(su)for(var _e of su(L))wl.call(L,_e)&&bu(de,_e,L[_e]);return de},Wl=(de,L)=>pu(de,ks(L));function il(de){return de.pipe((0,kr.T)(([L,_e])=>{const mn=_e.timeRange.from.diff(L.timeRange.from);return _e.series.forEach(vr=>{vr.refId=ju(vr.refId||""),vr.meta=Wl(Ul({},vr.meta),{timeCompare:{diffMs:mn,isTimeShiftQuery:!0}}),vr.fields.forEach(Qr=>(Qr.type===Ko.PU.time&&(Qr.values=Qr.values.map(ao=>mn<0?ao-mn:ao+mn)),Qr.config=Wl(Ul({},Qr.config),{color:{mode:"fixed",fixedColor:Ln.$.theme.palette.gray60}}),Qr))}),Wl(Ul({},L),{series:[...L.series,..._e.series]})}))}var _l=Object.defineProperty,Hs=Object.defineProperties,Pl=Object.getOwnPropertyDescriptors,Ql=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,ia=(de,L,_e)=>L in de?_l(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Sa=(de,L)=>{for(var _e in L||(L={}))ll.call(L,_e)&&ia(de,_e,L[_e]);if(Ql)for(var _e of Ql(L))Kl.call(L,_e)&&ia(de,_e,L[_e]);return de},Ea=(de,L)=>Hs(de,Pl(L));function rs(de,L){var _e;if(!Array.isArray(de)||de.length===0)return de;const mn=Array.from({length:de.length},()=>new Set);let vr=0;for(const ao of de){for(let oa=0;oa<ao.length;oa++){if(mn[vr].has(oa))continue;let qo=!0;const ha=ao.fields.find(_s=>_s.name==="panelId"),is=ao.fields.find(_s=>_s.name==="source");if(is){ha&&is.values[oa].type==="dashboard"&&(qo=ha.values[oa]===L.panelId);const _s=is.values[oa].filter;if(_s){const ou=((_e=_s.ids)!=null?_e:[]).includes(L.panelId);_s.exclude?ou&&(qo=!1):ou||(qo=!1)}}qo&&mn[vr].add(oa)}vr++}const Qr=[];vr=0;for(const ao of de){const oa=mn[vr].size,qo=[];for(const ha of ao.fields){const is=[];for(let _s=0;_s<ao.length;_s++)if(mn[vr].has(_s)){is.push(ha.values[_s]);continue}qo.push(Ea(Sa({},ha),{values:is}))}Qr.push(Ea(Sa({},ao),{fields:qo,length:oa})),vr++}return Qr}var Ns=t(72574);let Xt,bn=new Set;function Dn(de){if(de.addActivationHandler(()=>(bn.add(de),()=>bn.delete(de))),Xt)return;const L=(0,Ns.w)();if(!L?.getAdhocFilters){console.log("Failed to patch getAdhocFilters");return}Xt=L.getAdhocFilters,L.getAdhocFilters=function(mn){var vr;if(bn.size===0)return Xt.call(L);const Qr=(0,Ve.l)().getInstanceSettings(mn);if(!Qr)return[];for(const ao of bn.values())if(((vr=ao.state.datasource)==null?void 0:vr.uid)===Qr.uid)return ao.state.filters;return[]}.bind(L)}function Ii(de){var L;for(const _e of bn.values())if(((L=_e.state.datasource)==null?void 0:L.uid)===de)return _e}const ko=new Set;function fa(de){var L;for(const _e of ko.values())if(((L=_e.state.datasource)==null?void 0:L.uid)===de)return _e}class Zo extends it{constructor(){super(...arguments),this._urlSync=new Ua(this)}validateAndUpdate(){return this.getValueOptions({}).pipe((0,kr.T)(L=>(this.updateValueGivenNewOptions(L),{})))}onCancel(){this.setStateHelper({loading:!1});const L=this.parent;L?.cancel(this)}updateValueGivenNewOptions(L){const{value:_e,text:mn}=this.state,vr={options:L,loading:!1,value:_e,text:mn};if(L.length===0)this.state.defaultToAll||this.state.includeAll?(vr.value=tn,vr.text=gt):this.state.isMulti?(vr.value=[],vr.text=[]):(vr.value="",vr.text="");else if(!this.hasAllValue())if(this.state.isMulti){const ao=(Array.isArray(_e)?_e:[_e]).filter(qo=>L.find(ha=>ha.value===qo)),oa=ao.map(qo=>L.find(ha=>ha.value===qo).label);if(ao.length===0){const qo=this.getDefaultMultiState(L);vr.value=qo.value,vr.text=qo.text}else(!(0,st.isEqual)(ao,_e)||!(0,st.isEqual)(oa,mn))&&(vr.value=ao,vr.text=oa)}else{let Qr=Fa(_e,mn,L);Qr?(vr.text=Qr.label,vr.value=Qr.value):this.state.defaultToAll?(vr.value=tn,vr.text=gt):(vr.value=L[0].value,vr.text=L[0].label)}this.setStateHelper(vr),(vr.value!==_e||vr.text!==mn||this.hasAllValue())&&this.publishEvent(new xi(this),!0)}getValue(){return this.hasAllValue()?this.state.allValue?new ms(this.state.allValue,this):this.state.options.map(L=>L.value):this.state.value}getValueText(){return this.hasAllValue()?gt:Array.isArray(this.state.text)?this.state.text.join(" + "):String(this.state.text)}hasAllValue(){const L=this.state.value;return L===tn||Array.isArray(L)&&L[0]===tn}getDefaultMultiState(L){return this.state.defaultToAll?{value:[tn],text:[gt]}:L.length>0?{value:[L[0].value],text:[L[0].label]}:{value:[],text:[]}}changeValueTo(L,_e){if(!(L===this.state.value&&_e===this.state.text)){if(_e||(Array.isArray(L)?_e=L.map(mn=>this.findLabelTextForValue(mn)):_e=this.findLabelTextForValue(L)),Array.isArray(L)){if(L.length===0){const mn=this.getDefaultMultiState(this.state.options);L=mn.value,_e=mn.text}L[L.length-1]===tn?(L=[tn],_e=[gt]):L[0]===tn&&L.length>1&&(L.shift(),Array.isArray(_e)&&_e.shift())}this.setStateHelper({value:L,text:_e,loading:!1}),this.publishEvent(new xi(this),!0)}}findLabelTextForValue(L){const _e=this.state.options.find(vr=>vr.value===L);if(_e)return _e.label;const mn=this.state.options.find(vr=>vr.label===L);return mn?mn.label:L}setStateHelper(L){Nr(this,L)}getOptionsForSelect(){let L=this.state.options;return this.state.includeAll&&(L=[{value:tn,label:gt},...L]),Array.isArray(this.state.value)||L.find(mn=>mn.value===this.state.value)||(L=[{value:this.state.value,label:String(this.state.text)},...L]),L}}function Fa(de,L,_e){let mn;for(const vr of _e){if(vr.value===de)return vr;vr.label===L&&(mn=vr)}return mn}class Ua{constructor(L){this._sceneObject=L}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){if(this._sceneObject.state.skipUrlSync)return{};let L=null,_e=this._sceneObject.state.value;return Array.isArray(_e)?L=_e.map(String):this._sceneObject.state.isMulti?L=[String(_e)]:L=String(_e),{[this.getKey()]:L}}updateFromUrl(L){const _e=L[this.getKey()];_e!=null&&this._sceneObject.changeValueTo(_e)}}class ms{constructor(L,_e){this._value=L,this._variable=_e}formatter(L){return L===Kr.$m.Text?gt:L===Kr.$m.PercentEncode?ln.get(Kr.$m.PercentEncode).formatter(this._value,[],this._variable):L===Kr.$m.QueryParam?ln.get(Kr.$m.QueryParam).formatter(gt,[],this._variable):this._value}}var Fs=t(38975),ws=t(88323);function fu({model:de}){const{value:L,key:_e}=de.useState(),mn=de.onSearchChange?(vr,Qr)=>{Qr.action==="input-change"&&de.onSearchChange(vr)}:void 0;return s.createElement(ws.l6,{id:_e,placeholder:"Select value",width:"auto",value:L,allowCustomValue:!0,virtualized:!0,tabSelectsValue:!1,onInputChange:mn,options:de.getOptionsForSelect(),onChange:vr=>{de.changeValueTo(vr.value,vr.label)}})}function wu({model:de}){const{value:L,key:_e,maxVisibleValues:mn,noValueOnClear:vr}=de.useState(),Qr=(0,s.useMemo)(()=>(0,st.isArray)(L)?L:[L],[L]),ao=de.getOptionsForSelect(),[oa,qo]=(0,s.useState)(Qr);(0,s.useEffect)(()=>{qo(Qr)},[Qr]);const ha=de.onSearchChange?(_s,ou)=>{ou.action==="input-change"&&de.onSearchChange(_s)}:void 0,is=ao.length>0?"Select value":"";return s.createElement(ws.KF,{id:_e,placeholder:is,width:"auto",value:oa,noMultiValueWrap:!0,maxVisibleValues:mn??5,tabSelectsValue:!1,virtualized:!0,allowCustomValue:!0,options:de.getOptionsForSelect(),closeMenuOnSelect:!1,isClearable:!0,onInputChange:ha,onBlur:()=>{de.changeValueTo(oa)},onChange:(_s,ou)=>{ou.action==="clear"&&vr&&de.changeValueTo([]),qo(_s.map(Ju=>Ju.value))}})}function Du(de){return de.state.isMulti?s.createElement(wu,{model:de}):s.createElement(fu,{model:de})}var zu=Object.defineProperty,Il=Object.defineProperties,bc=Object.getOwnPropertyDescriptors,Gl=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,ac=Object.prototype.propertyIsEnumerable,jl=(de,L,_e)=>L in de?zu(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,nc=(de,L)=>{for(var _e in L||(L={}))oc.call(L,_e)&&jl(de,_e,L[_e]);if(Gl)for(var _e of Gl(L))ac.call(L,_e)&&jl(de,_e,L[_e]);return de},Fl=(de,L)=>Il(de,bc(L));class Zu extends Zo{constructor(L){super(Fl(nc({isMulti:!0,name:"",value:[],text:[],options:[],datasource:null,baseFilters:[],applyMode:"auto",layout:"horizontal",type:"groupby"},L),{noValueOnClear:!0})),this._getKeys=async _e=>{var mn,vr,Qr;const ao=await((vr=(mn=this.state).getTagKeysProvider)==null?void 0:vr.call(mn,this,null));if(ao&&ao.replace)return ao.values;if(this.state.defaultOptions)return this.state.defaultOptions.concat((Qr=ao?.values)!=null?Qr:[]);if(!_e.getTagKeys)return[];const oa=this._getSceneQueries(),qo=this.state.baseFilters;let ha=await _e.getTagKeys({filters:qo,queries:oa});ao&&(ha=ha.concat(ao.values));const is=this.state.tagKeyRegexFilter;return is&&(ha=ha.filter(_s=>_s.text.match(is))),ha},this.addActivationHandler(()=>(ko.add(this),()=>ko.delete(this)))}validateAndUpdate(){return this.getValueOptions({}).pipe((0,kr.T)(L=>(this._updateValueGivenNewOptions(L),{})))}_updateValueGivenNewOptions(L){const{value:_e,text:mn}=this.state,vr={options:L,loading:!1,value:_e??[],text:mn??[]};this.setState(vr)}getValueOptions(L){return this.state.defaultOptions?(0,at.of)(this.state.defaultOptions.map(_e=>({label:_e.text,value:String(_e.value)}))):(this.setState({loading:!0,error:null}),(0,Rs.H)(Ot(this.state.datasource,{__sceneObject:{text:"__sceneObject",value:this}})).pipe((0,Ds.Z)(_e=>(0,Rs.H)(this._getKeys(_e)).pipe((0,Fs.s)(1),(0,Ds.Z)(mn=>{const vr=mn.map(Qr=>({label:Qr.text,value:Qr.value?String(Qr.value):Qr.text}));return(0,at.of)(vr)})))))}getDefaultMultiState(L){return{value:[],text:[]}}_getSceneQueries(){const _e=Eo.findAllObjects(this.getRoot(),vr=>vr instanceof ys).filter(vr=>{var Qr,ao;return((Qr=vr.state.datasource)==null?void 0:Qr.uid)===((ao=this.state.datasource)==null?void 0:ao.uid)});if(_e.length===0)return[];const mn=[];return _e.forEach(vr=>{mn.push(...vr.state.queries)}),mn}}Zu.Component=Ac;function Ac({model:de}){return Du(de)}var tf=t(50877),Jl=t(88575),ml=t(55852),vl=t(56034),Vu=t(14578),ad=t(29158);const Bc={Breadcrumbs:{breadcrumb:de=>`data-testid ${de} breadcrumb`},TimePicker:{openButton:"data-testid TimePicker Open Button",fromField:"Time Range from field",toField:"Time Range to field",applyTimeRange:"data-testid TimePicker submit button",calendar:{label:"Time Range calendar",openButton:"Open time range calendar",closeButton:"Close time range Calendar"},absoluteTimeRangeTitle:"data-testid-absolute-time-range-narrow"},DataSourcePermissions:{form:()=>'form[name="addPermission"]',roleType:"Role to add new permission to",rolePicker:"Built-in role picker",permissionLevel:"Permission Level"},DataSource:{TestData:{QueryTab:{scenarioSelectContainer:"Test Data Query scenario select container",scenarioSelect:"Test Data Query scenario select",max:"TestData max",min:"TestData min",noise:"TestData noise",seriesCount:"TestData series count",spread:"TestData spread",startValue:"TestData start value",drop:"TestData drop values"}},DataSourceHttpSettings:{urlInput:"Datasource HTTP settings url"},Jaeger:{traceIDInput:"Trace ID"},Prometheus:{configPage:{exemplarsAddButton:"Add exemplar config button",internalLinkSwitch:"Internal link switch"},exemplarMarker:"Exemplar marker"}},Menu:{MenuComponent:de=>`${de} menu`,MenuGroup:de=>`${de} menu group`,MenuItem:de=>`${de} menu item`,SubMenu:{container:"SubMenu container",icon:"SubMenu icon"}},Panels:{Panel:{title:de=>`data-testid Panel header ${de}`,headerItems:de=>`Panel header item ${de}`,menuItems:de=>`data-testid Panel menu item ${de}`,menu:de=>`data-testid Panel menu ${de}`,containerByTitle:de=>`${de} panel`,headerCornerInfo:de=>`Panel header ${de}`,loadingBar:()=>"Panel loading bar",HoverWidget:{container:"data-test-id hover-header-container",dragIcon:"data-testid drag-icon"}},Visualization:{Graph:{container:"Graph container",VisualizationTab:{legendSection:"Legend section"},Legend:{legendItemAlias:de=>`gpl alias ${de}`,showLegendSwitch:"gpl show legend"},xAxis:{labels:()=>"div.flot-x-axis > div.flot-tick-label"}},BarGauge:{value:"Bar gauge value",valueV2:"data-testid Bar gauge value"},PieChart:{svgSlice:"Pie Chart Slice"},Text:{container:()=>".markdown-html"},Table:{header:"table header",footer:"table-footer"}}},VizLegend:{seriesName:de=>`VizLegend series ${de}`},Drawer:{General:{title:de=>`Drawer title ${de}`,expand:"Drawer expand",contract:"Drawer contract",close:"Drawer close",rcContentWrapper:()=>".rc-drawer-content-wrapper"}},PanelEditor:{General:{content:"Panel editor content"},OptionsPane:{content:"Panel editor option pane content",select:"Panel editor option pane select",fieldLabel:de=>`${de} field property editor`},DataPane:{content:"Panel editor data pane content"},applyButton:"data-testid Apply changes and go back to dashboard",toggleVizPicker:"data-testid toggle-viz-picker",toggleVizOptions:"data-testid toggle-viz-options",toggleTableView:"toggle-table-view",measureButton:"show measure tools"},PanelInspector:{Data:{content:"Panel inspector Data content"},Stats:{content:"Panel inspector Stats content"},Json:{content:"Panel inspector Json content"},Query:{content:"Panel inspector Query content",refreshButton:"Panel inspector Query refresh button",jsonObjectKeys:()=>".json-formatter-key"}},Tab:{title:de=>`Tab ${de}`,active:()=>'[class*="-activeTabStyle"]'},RefreshPicker:{runButton:"RefreshPicker run button",intervalButton:"RefreshPicker interval button",runButtonV2:"data-testid RefreshPicker run button",intervalButtonV2:"data-testid RefreshPicker interval button"},QueryTab:{content:"Query editor tab content",queryInspectorButton:"Query inspector button",queryHistoryButton:"Rich history button",addQuery:"Query editor add query button"},QueryHistory:{queryText:"Query text"},QueryEditorRows:{rows:"Query editor row"},QueryEditorRow:{actionButton:de=>`${de}`,title:de=>`Query editor row title ${de}`,container:de=>`Query editor row ${de}`},AlertTab:{content:"Alert editor tab content"},Alert:{alert:de=>`Alert ${de}`,alertV2:de=>`data-testid Alert ${de}`},TransformTab:{content:"Transform editor tab content",newTransform:de=>`New transform ${de}`,transformationEditor:de=>`Transformation editor ${de}`,transformationEditorDebugger:de=>`Transformation editor debugger ${de}`},Transforms:{card:de=>`New transform ${de}`,Reduce:{modeLabel:"Transform mode label",calculationsLabel:"Transform calculations label"},SpatialOperations:{actionLabel:"root Action field property editor",locationLabel:"root Location field property editor",location:{autoOption:"Auto location option",coords:{option:"Coords location option",latitudeFieldLabel:"root Latitude field field property editor",longitudeFieldLabel:"root Longitude field field property editor"},geohash:{option:"Geohash location option",geohashFieldLabel:"root Geohash field field property editor"},lookup:{option:"Lookup location option",lookupFieldLabel:"root Lookup field field property editor",gazetteerFieldLabel:"root Gazetteer field property editor"}}},searchInput:"search transformations"},NavBar:{Configuration:{button:"Configuration"},Toggle:{button:"Toggle menu"},Reporting:{button:"Reporting"}},NavMenu:{item:"data-testid Nav menu item"},NavToolbar:{container:"data-testid Nav toolbar"},PageToolbar:{container:()=>".page-toolbar",item:de=>`${de}`,itemButton:de=>`data-testid ${de}`},QueryEditorToolbarItem:{button:de=>`QueryEditor toolbar item button ${de}`},BackButton:{backArrow:"Go Back"},OptionsGroup:{group:de=>de?`Options group ${de}`:"Options group",toggle:de=>de?`Options group ${de} toggle`:"Options group toggle"},PluginVisualization:{item:de=>`Plugin visualization item ${de}`,current:()=>'[class*="-currentVisualizationItem"]'},Select:{option:"Select option",input:()=>'input[id*="time-options-input"]',singleValue:()=>'div[class*="-singleValue"]'},FieldConfigEditor:{content:"Field config editor content"},OverridesConfigEditor:{content:"Field overrides editor content"},FolderPicker:{container:"Folder picker select container",containerV2:"data-testid Folder picker select container",input:"Select a folder"},ReadonlyFolderPicker:{container:"data-testid Readonly folder picker select container"},DataSourcePicker:{container:"data-testid Data source picker select container",input:()=>'input[id="data-source-picker"]',inputV2:"Select a data source"},TimeZonePicker:{container:"Time zone picker select container",containerV2:"data-testid Time zone picker select container"},WeekStartPicker:{container:"Choose starting day of the week",containerV2:"data-testid Choose starting day of the week",placeholder:"Choose starting day of the week"},TraceViewer:{spanBar:"data-testid SpanBar--wrapper"},QueryField:{container:"Query field"},QueryBuilder:{queryPatterns:"Query patterns",labelSelect:"Select label",valueSelect:"Select value",matchOperatorSelect:"Select match operator"},ValuePicker:{button:de=>`Value picker button ${de}`,select:de=>`Value picker select ${de}`},Search:{section:"Search section",sectionV2:"data-testid Search section",items:"Search items",itemsV2:"data-testid Search items",cards:"data-testid Search cards",collapseFolder:de=>`data-testid Collapse folder ${de}`,expandFolder:de=>`data-testid Expand folder ${de}`,dashboardItem:de=>`${Bc.Search.dashboardItems} ${de}`,dashboardCard:de=>`data-testid Search card ${de}`,folderHeader:de=>`data-testid Folder header ${de}`,folderContent:de=>`data-testid Folder content ${de}`,dashboardItems:"data-testid Dashboard search item"},DashboardLinks:{container:"data-testid Dashboard link container",dropDown:"data-testid Dashboard link dropdown",link:"data-testid Dashboard link"},LoadingIndicator:{icon:"Loading indicator"},CallToActionCard:{button:de=>`Call to action button ${de}`,buttonV2:de=>`data-testid Call to action button ${de}`},DataLinksContextMenu:{singleLink:"Data link"},CodeEditor:{container:"Code editor container"},DashboardImportPage:{textarea:"data-testid-import-dashboard-textarea",submit:"data-testid-load-dashboard"},ImportDashboardForm:{name:"data-testid-import-dashboard-title",submit:"data-testid-import-dashboard-submit"},PanelAlertTabContent:{content:"Unified alert editor tab content"},VisualizationPreview:{card:de=>`data-testid suggestion-${de}`},ColorSwatch:{name:"data-testid-colorswatch"},DashboardRow:{title:de=>`data-testid dashboard-row-title-${de}`},UserProfile:{profileSaveButton:"data-testid-user-profile-save",preferencesSaveButton:"data-testid-shared-prefs-save",orgsTable:"data-testid-user-orgs-table",sessionsTable:"data-testid-user-sessions-table"},FileUpload:{inputField:"data-testid-file-upload-input-field",fileNameSpan:"data-testid-file-upload-file-name"},DebugOverlay:{wrapper:"debug-overlay"},OrgRolePicker:{input:"Role"},AnalyticsToolbarButton:{button:"Dashboard insights"},Variables:{variableOption:"data-testid variable-option"},Annotations:{annotationsTypeInput:"annotations-type-input",annotationsChoosePanelInput:"choose-panels-input"}},Vc={pages:{Login:{url:"/login",username:"Username input field",password:"Password input field",submit:"Login button",skip:"Skip change password button"},Home:{url:"/"},DataSource:{name:"Data source settings page name input field",delete:"Data source settings page Delete button",readOnly:"Data source settings page read only message",saveAndTest:"data-testid Data source settings page Save and Test button",alert:"Data source settings page Alert"},DataSources:{url:"/datasources",dataSources:de=>`Data source list item ${de}`},EditDataSource:{url:de=>`/datasources/edit/${de}`,settings:"Datasource settings page basic settings"},AddDataSource:{url:"/datasources/new",dataSourcePlugins:de=>`Data source plugin item ${de}`,dataSourcePluginsV2:de=>`Add new data source ${de}`},ConfirmModal:{delete:"data-testid Confirm Modal Danger Button"},AddDashboard:{url:"/dashboard/new",itemButton:de=>`data-testid ${de}`,addNewPanel:"Add new panel",addNewRow:"Add new row",addNewPanelLibrary:"Add new panel from panel library"},Dashboard:{url:de=>`/d/${de}`,DashNav:{nav:"Dashboard navigation",navV2:"data-testid Dashboard navigation",publicDashboardTag:"data-testid public dashboard tag"},SubMenu:{submenu:"Dashboard submenu",submenuItem:"data-testid template variable",submenuItemLabels:de=>`data-testid Dashboard template variables submenu Label ${de}`,submenuItemValueDropDownValueLinkTexts:de=>`data-testid Dashboard template variables Variable Value DropDown value link text ${de}`,submenuItemValueDropDownDropDown:"Variable options",submenuItemValueDropDownOptionTexts:de=>`data-testid Dashboard template variables Variable Value DropDown option text ${de}`,Annotations:{annotationsWrapper:"data-testid annotation-wrapper",annotationLabel:de=>`data-testid Dashboard annotations submenu Label ${de}`,annotationToggle:de=>`data-testid Dashboard annotations submenu Toggle ${de}`}},Settings:{Actions:{close:"data-testid dashboard-settings-close"},General:{deleteDashBoard:"Dashboard settings page delete dashboard button",sectionItems:de=>`Dashboard settings section item ${de}`,saveDashBoard:"Dashboard settings aside actions Save button",saveAsDashBoard:"Dashboard settings aside actions Save As button",timezone:"Time zone picker select container",title:"Tab General"},Annotations:{List:{addAnnotationCTA:Bc.CallToActionCard.button("Add annotation query"),addAnnotationCTAV2:Bc.CallToActionCard.buttonV2("Add annotation query")},Settings:{name:"Annotations settings name input"},NewAnnotation:{panelFilterSelect:"data-testid annotations-panel-filter",showInLabel:"show-in-label",previewInDashboard:"data-testid annotations-preview"}},Variables:{List:{addVariableCTA:Bc.CallToActionCard.button("Add variable"),addVariableCTAV2:Bc.CallToActionCard.buttonV2("Add variable"),newButton:"Variable editor New variable button",table:"Variable editor Table",tableRowNameFields:de=>`Variable editor Table Name field ${de}`,tableRowDefinitionFields:de=>`Variable editor Table Definition field ${de}`,tableRowArrowUpButtons:de=>`Variable editor Table ArrowUp button ${de}`,tableRowArrowDownButtons:de=>`Variable editor Table ArrowDown button ${de}`,tableRowDuplicateButtons:de=>`Variable editor Table Duplicate button ${de}`,tableRowRemoveButtons:de=>`Variable editor Table Remove button ${de}`},Edit:{General:{headerLink:"Variable editor Header link",modeLabelNew:"Variable editor Header mode New",modeLabelEdit:"Variable editor Header mode Edit",generalNameInput:"Variable editor Form Name field",generalNameInputV2:"data-testid Variable editor Form Name field",generalTypeSelect:"Variable editor Form Type select",generalTypeSelectV2:"data-testid Variable editor Form Type select",generalLabelInput:"Variable editor Form Label field",generalLabelInputV2:"data-testid Variable editor Form Label field",generalHideSelect:"Variable editor Form Hide select",generalHideSelectV2:"data-testid Variable editor Form Hide select",selectionOptionsMultiSwitch:"Variable editor Form Multi switch",selectionOptionsIncludeAllSwitch:"Variable editor Form IncludeAll switch",selectionOptionsCustomAllInput:"Variable editor Form IncludeAll field",selectionOptionsCustomAllInputV2:"data-testid Variable editor Form IncludeAll field",previewOfValuesOption:"Variable editor Preview of Values option",submitButton:"Variable editor Submit button",applyButton:"data-testid Variable editor Apply button"},QueryVariable:{queryOptionsDataSourceSelect:Bc.DataSourcePicker.container,queryOptionsRefreshSelect:"Variable editor Form Query Refresh select",queryOptionsRefreshSelectV2:"data-testid Variable editor Form Query Refresh select",queryOptionsRegExInput:"Variable editor Form Query RegEx field",queryOptionsRegExInputV2:"data-testid Variable editor Form Query RegEx field",queryOptionsSortSelect:"Variable editor Form Query Sort select",queryOptionsSortSelectV2:"data-testid Variable editor Form Query Sort select",queryOptionsQueryInput:"Variable editor Form Default Variable Query Editor textarea",valueGroupsTagsEnabledSwitch:"Variable editor Form Query UseTags switch",valueGroupsTagsTagsQueryInput:"Variable editor Form Query TagsQuery field",valueGroupsTagsTagsValuesQueryInput:"Variable editor Form Query TagsValuesQuery field"},ConstantVariable:{constantOptionsQueryInput:"Variable editor Form Constant Query field",constantOptionsQueryInputV2:"data-testid Variable editor Form Constant Query field"},DatasourceVariable:{datasourceSelect:"data-testid datasource variable datasource type"},TextBoxVariable:{textBoxOptionsQueryInput:"Variable editor Form TextBox Query field",textBoxOptionsQueryInputV2:"data-testid Variable editor Form TextBox Query field"},CustomVariable:{customValueInput:"data-testid custom-variable-input"},IntervalVariable:{intervalsValueInput:"data-testid interval variable intervals input"}}}},Annotations:{marker:"data-testid annotation-marker"}},Dashboards:{url:"/dashboards",dashboards:de=>`Dashboard search item ${de}`},SaveDashboardAsModal:{newName:"Save dashboard title field",save:"Save dashboard button"},SaveDashboardModal:{save:"Dashboard settings Save Dashboard Modal Save button",saveVariables:"Dashboard settings Save Dashboard Modal Save variables checkbox",saveTimerange:"Dashboard settings Save Dashboard Modal Save timerange checkbox"},SharePanelModal:{linkToRenderedImage:"Link to rendered image"},ShareDashboardModal:{shareButton:"Share dashboard or panel",PublicDashboard:{Tab:"Tab Public dashboard",WillBePublicCheckbox:"data-testid public dashboard will be public checkbox",LimitedDSCheckbox:"data-testid public dashboard limited datasources checkbox",CostIncreaseCheckbox:"data-testid public dashboard cost may increase checkbox",PauseSwitch:"data-testid public dashboard pause switch",EnableAnnotationsSwitch:"data-testid public dashboard on off switch for annotations",CreateButton:"data-testid public dashboard create button",DeleteButton:"data-testid public dashboard delete button",CopyUrlInput:"data-testid public dashboard copy url input",CopyUrlButton:"data-testid public dashboard copy url button",TemplateVariablesWarningAlert:"data-testid public dashboard disabled template variables alert",UnsupportedDataSourcesWarningAlert:"data-testid public dashboard unsupported data sources alert",NoUpsertPermissionsWarningAlert:"data-testid public dashboard no upsert permissions alert",EnableTimeRangeSwitch:"data-testid public dashboard on off switch for time range",EmailSharingConfiguration:{Container:"data-testid email sharing config container",ShareType:"data-testid public dashboard share type",EmailSharingInput:"data-testid public dashboard email sharing input",EmailSharingInviteButton:"data-testid public dashboard email sharing invite button",EmailSharingList:"data-testid public dashboard email sharing list",DeleteEmail:"data-testid public dashboard delete email button",ReshareLink:"data-testid public dashboard reshare link button"}}},PublicDashboard:{page:"public-dashboard-page",NotAvailable:{container:"public-dashboard-not-available",title:"public-dashboard-title",pausedDescription:"public-dashboard-paused-description"}},RequestViewAccess:{form:"request-view-access-form",recipientInput:"request-view-access-recipient-input",submitButton:"request-view-access-submit-button"},Explore:{url:"/explore",General:{container:"data-testid Explore",graph:"Explore Graph",table:"Explore Table",scrollView:"data-testid explorer scroll view"}},SoloPanel:{url:de=>`/d-solo/${de}`},PluginsList:{page:"Plugins list page",list:"Plugins list",listItem:"Plugins list item",signatureErrorNotice:"Unsigned plugins notice"},PluginPage:{page:"Plugin page",signatureInfo:"Plugin signature info",disabledInfo:"Plugin disabled info"},PlaylistForm:{name:"Playlist name",interval:"Playlist interval",itemDelete:"Delete playlist item"},BrowseDashbards:{table:{row:de=>`data-testid ${de} row`,checkbox:de=>`data-testid ${de} checkbox`}},Search:{url:"/?search=openn",FolderView:{url:"/?search=open&layout=folders"}},PublicDashboards:{ListItem:{linkButton:"public-dashboard-link-button",configButton:"public-dashboard-configuration-button",trashcanButton:"public-dashboard-remove-button"}},UserListPage:{tabs:{allUsers:"data-testid all-users-tab",orgUsers:"data-testid org-users-tab",publicDashboardsUsers:"data-testid public-dashboards-users-tab",users:"data-testid users-tab"},org:{url:"/org/users"},admin:{url:"/admin/users"},publicDashboards:{container:"data-testid public-dashboards-users-list"},UserListAdminPage:{container:"data-testid user-list-admin-page"},UsersListPage:{container:"data-testid users-list-page"},UsersListPublicDashboardsPage:{container:"data-testid users-list-public-dashboards-page",DashboardsListModal:{listItem:de=>`data-testid dashboards-list-item-${de}`}}}},components:Bc};function Od(de){return s.createElement(vl.m,{content:"Cancel query"},s.createElement(Vu.I,{className:"spin-clockwise",name:"sync",size:"xs","aria-label":Vc.components.LoadingIndicator.icon,role:"button",onMouseDown:L=>{de.onCancel(L)}}))}function _c(de){const L=(0,Ji.of)(Xc),_e=(0,Ji.$j)(),mn=de.layout==="vertical",vr=de.isLoading?s.createElement("div",{style:{marginLeft:_e.spacing(1),marginTop:"-1px"}},s.createElement(Od,{onCancel:qo=>{var ha;qo.preventDefault(),qo.stopPropagation(),(ha=de.onCancel)==null||ha.call(de)}})):null;let Qr=null;de.error&&(Qr=s.createElement(vl.m,{content:de.error,placement:"bottom"},s.createElement(Vu.I,{className:L.errorIcon,name:"exclamation-triangle"})));const ao=typeof de.label=="string"?Vc.pages.Dashboard.SubMenu.submenuItemLabels(de.label):"";let oa;return mn?oa=s.createElement("label",{className:L.verticalLabel,"data-testid":ao,htmlFor:de.htmlFor},de.label,Qr,de.icon&&s.createElement(Vu.I,{name:de.icon,className:L.normalIcon}),vr,de.onRemove&&s.createElement(ad.K,{variant:"secondary",size:"xs",name:"times",onClick:de.onRemove,tooltip:"Remove"})):oa=s.createElement("label",{className:L.horizontalLabel,"data-testid":ao,htmlFor:de.htmlFor},Qr,de.icon&&s.createElement(Vu.I,{name:de.icon,className:L.normalIcon}),de.label,vr),de.description?s.createElement(vl.m,{content:de.description,placement:mn?"top":"bottom"},oa):oa}const Xc=de=>({horizontalLabel:(0,xo.css)({background:de.isDark?de.colors.background.primary:de.colors.background.secondary,display:"flex",alignItems:"center",padding:de.spacing(0,1),fontWeight:de.typography.fontWeightMedium,fontSize:de.typography.bodySmall.fontSize,height:de.spacing(de.components.height.md),lineHeight:de.spacing(de.components.height.md),borderRadius:de.shape.borderRadius(1),border:`1px solid ${de.components.input.borderColor}`,position:"relative",right:-1,whiteSpace:"nowrap",gap:de.spacing(.5)}),verticalLabel:(0,xo.css)({display:"flex",alignItems:"center",fontWeight:de.typography.fontWeightMedium,fontSize:de.typography.bodySmall.fontSize,lineHeight:de.typography.bodySmall.lineHeight,whiteSpace:"nowrap",marginBottom:de.spacing(.5),gap:de.spacing(1)}),errorIcon:(0,xo.css)({color:de.colors.error.text}),normalIcon:(0,xo.css)({color:de.colors.text.secondary})});var Zl=Object.defineProperty,qd=Object.defineProperties,Kd=Object.getOwnPropertyDescriptors,jf=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable,Jf=(de,L,_e)=>L in de?Zl(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,ql=(de,L)=>{for(var _e in L||(L={}))Ml.call(L,_e)&&Jf(de,_e,L[_e]);if(jf)for(var _e of jf(L))jd.call(L,_e)&&Jf(de,_e,L[_e]);return de},sc=(de,L)=>qd(de,Kd(L));function Uc({filter:de,model:L}){var _e,mn;const vr=(0,Ji.of)(Gd),[Qr,ao]=(0,s.useState)({}),oa=de.key!==""?(0,tf.z)(de.key):null,qo=de.value!==""?(0,tf.z)(de.value):null,ha=s.createElement(ws.l6,{disabled:L.state.readOnly,className:Qr.isKeysOpen?vr.widthWhenOpen:void 0,width:"auto",value:qo,placeholder:"value",options:Qr.values,onChange:_s=>L._updateFilter(de,"value",_s.value),isOpen:Qr.isValuesOpen,isLoading:Qr.isValuesLoading,onOpenMenu:async()=>{ao(sc(ql({},Qr),{isValuesLoading:!0}));const _s=await L._getValuesFor(de);ao(sc(ql({},Qr),{isValuesLoading:!1,isValuesOpen:!0,values:_s}))},onCloseMenu:()=>{ao(sc(ql({},Qr),{isValuesOpen:!1}))}}),is=s.createElement(ws.l6,{disabled:L.state.readOnly,className:Qr.isKeysOpen?vr.widthWhenOpen:void 0,width:"auto",value:oa,placeholder:"Select label",options:Qr.keys,onChange:_s=>L._updateFilter(de,"key",_s.value),autoFocus:de.key==="",isOpen:Qr.isKeysOpen,isLoading:Qr.isKeysLoading,onOpenMenu:async()=>{ao(sc(ql({},Qr),{isKeysLoading:!0}));const _s=await L._getKeys(de.key);ao(sc(ql({},Qr),{isKeysLoading:!1,isKeysOpen:!0,keys:_s}))},onCloseMenu:()=>{ao(sc(ql({},Qr),{isKeysOpen:!1}))},openMenuOnFocus:!0});if(L.state.layout==="vertical")if(de.key){const _s=s.createElement(_c,{layout:"vertical",label:(_e=de.key)!=null?_e:"",onRemove:()=>L._removeFilter(de)});return s.createElement(Jl.D,{label:_s,"data-testid":`AdHocFilter-${de.key}`,className:vr.field},ha)}else return s.createElement(Jl.D,{label:"Select label","data-testid":`AdHocFilter-${de.key}`,className:vr.field},is);return s.createElement("div",{className:vr.wrapper,"data-testid":`AdHocFilter-${de.key}`},is,s.createElement(ws.l6,{value:de.operator,disabled:L.state.readOnly,options:L._getOperators(),width:"auto",onChange:_s=>L._updateFilter(de,"operator",_s.value)}),ha,s.createElement(ml.$n,{variant:"secondary","aria-label":"Remove filter",title:"Remove filter",className:vr.removeButton,icon:"times","data-testid":`AdHocFilter-remove-${(mn=de.key)!=null?mn:""}`,onClick:()=>L._removeFilter(de)}))}const Gd=de=>({field:(0,xo.css)({marginBottom:0}),wrapper:(0,xo.css)({display:"flex","> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:0,"&:hover":{zIndex:1},"&:focus-within":{zIndex:2}}}),widthWhenOpen:(0,xo.css)({minWidth:de.spacing(16)}),removeButton:(0,xo.css)({paddingLeft:de.spacing(3/2),paddingRight:de.spacing(3/2),borderLeft:"none",position:"relative",left:"1px"})});function nf({model:de}){const{_wip:L}=de.useState();return L?s.createElement(Uc,{filter:L,model:de}):s.createElement(ml.$n,{variant:"secondary",icon:"plus",title:"Add filter","aria-label":"Add filter","data-testid":"AdHocFilter-add",onClick:()=>de._addWip()})}class Dd{constructor(L){this._variable=L}getKey(){return`var-${this._variable.state.name}`}getKeys(){return[this.getKey()]}getUrlState(){const L=this._variable.state.filters;if(L.length===0)return{[this.getKey()]:[""]};const _e=L.map(mn=>Cd(mn).map(pf).join("|"));return{[this.getKey()]:_e}}updateFromUrl(L){const _e=L[this.getKey()];if(_e==null)return;const mn=yd(_e);this._variable.setState({filters:mn})}}function yd(de){if(Array.isArray(de))return de.map(vf).filter(jc);const L=vf(de);return L===null?[]:[L]}function pf(de){return de==null?"":/\|/g[Symbol.replace](de,"__gfp__")}function Lf(de){return de==null?"":/__gfp__/g[Symbol.replace](de,"|")}function Cd(de){return[de.key,de.operator,de.value]}function vf(de){if(typeof de!="string"||de.length===0)return null;const L=de.split("|").map(Lf);return{key:L[0],operator:L[1],value:L[2],condition:""}}function jc(de){return de!==null&&typeof de.key=="string"&&typeof de.value=="string"}var gf=Object.defineProperty,Id=Object.defineProperties,sd=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,Yd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,rc=(de,L,_e)=>L in de?gf(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Pc=(de,L)=>{for(var _e in L||(L={}))Yd.call(L,_e)&&rc(de,_e,L[_e]);if(ud)for(var _e of ud(L))xd.call(L,_e)&&rc(de,_e,L[_e]);return de},lf=(de,L)=>Id(de,sd(L));class Qc extends it{constructor(L){var _e,mn;super(Pc({type:"adhoc",name:(_e=L.name)!=null?_e:"Filters",filters:[],datasource:null,applyMode:"auto",filterExpression:(mn=L.filterExpression)!=null?mn:yc(L)},L)),this._scopedVars={__sceneObject:{value:this}},this._dataSourceSrv=(0,Ve.l)(),this._urlSync=new Dd(this),this.state.applyMode==="auto"&&Dn(this),this.addActivationHandler(()=>{this._subs.add(this.subscribeToState((vr,Qr)=>{vr.filters!==Qr.filters&&this._updateFilterExpression(vr,!0)})),this._updateFilterExpression(this.state,!1)})}getValue(){return this.state.filterExpression}_updateFilterExpression(L,_e){let mn=yc(L);mn!==this.state.filterExpression&&(this.setState({filterExpression:mn}),_e&&this.publishEvent(new xi(this),!0))}_updateFilter(L,_e,mn){if(mn==null)return;const{filters:vr,_wip:Qr}=this.state;if(L===Qr){_e==="value"?this.setState({filters:[...vr,lf(Pc({},Qr),{[_e]:mn})],_wip:void 0}):this.setState({_wip:lf(Pc({},L),{[_e]:mn})});return}const ao=this.state.filters.map(oa=>oa===L?lf(Pc({},oa),{[_e]:mn}):oa);this.setState({filters:ao})}_removeFilter(L){if(L===this.state._wip){this.setState({_wip:void 0});return}this.setState({filters:this.state.filters.filter(_e=>_e!==L)})}async _getKeys(L){var _e,mn,vr;const Qr=await((mn=(_e=this.state).getTagKeysProvider)==null?void 0:mn.call(_e,this,L));if(Qr&&Qr.replace)return Qr.values.map(Kf);const ao=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!ao||!ao.getTagKeys)return[];const oa=this.state.filters.filter(_s=>_s.key!==L).concat((vr=this.state.baseFilters)!=null?vr:[]),qo=this._getSceneQueries();let ha=await ao.getTagKeys({filters:oa,queries:qo});Qr&&(ha=ha.concat(Qr.values));const is=this.state.tagKeyRegexFilter;return is&&(ha=ha.filter(_s=>_s.text.match(is))),ha.map(Kf)}async _getValuesFor(L){var _e,mn,vr;const Qr=await((mn=(_e=this.state).getTagValuesProvider)==null?void 0:mn.call(_e,this,L));if(Qr&&Qr.replace)return Qr.values.map(Kf);const ao=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!ao||!ao.getTagValues)return[];const oa=this.state.filters.filter(is=>is.key!==L.key).concat((vr=this.state.baseFilters)!=null?vr:[]),qo=Eo.getTimeRange(this).state.value;let ha=await ao.getTagValues({key:L.key,filters:oa,timeRange:qo});return Qr&&(ha=ha.concat(Qr.values)),ha.map(Kf)}_addWip(){this.setState({_wip:{key:"",value:"",operator:"=",condition:""}})}_getOperators(){return["=","!=","<",">","=~","!~"].map(L=>({label:L,value:L}))}_getSceneQueries(){const _e=Eo.findAllObjects(this.getRoot(),vr=>vr instanceof ys).filter(vr=>{var Qr,ao;return((Qr=vr.state.datasource)==null?void 0:Qr.uid)===((ao=this.state.datasource)==null?void 0:ao.uid)});if(_e.length===0)return[];const mn=[];return _e.forEach(vr=>{mn.push(...vr.state.queries)}),mn}}Qc.Component=fc;function yc(de){var L,_e;return((L=de.expressionBuilder)!=null?L:Pt)((_e=de.filters)!=null?_e:[])}function fc({model:de}){const{filters:L,readOnly:_e}=de.useState(),mn=(0,Ji.of)(ic);return s.createElement("div",{className:mn.wrapper},L.map((vr,Qr)=>s.createElement(s.Fragment,{key:Qr},s.createElement(Uc,{filter:vr,model:de}))),!_e&&s.createElement(nf,{model:de,key:"'builder"}))}const ic=de=>({wrapper:(0,xo.css)({display:"flex",gap:de.spacing(2),alignItems:"flex-end"}),filterIcon:(0,xo.css)({color:de.colors.text.secondary,paddingRight:de.spacing(.5)})});function Kf({text:de,value:L}){return{label:de,value:String(L??de)}}var ld=Object.defineProperty,Ld=Object.defineProperties,cf=Object.getOwnPropertyDescriptors,kf=Object.getOwnPropertySymbols,uh=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,bh=(de,L,_e)=>L in de?ld(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Zf=(de,L)=>{for(var _e in L||(L={}))uh.call(L,_e)&&bh(de,_e,L[_e]);if(kf)for(var _e of kf(L))$d.call(L,_e)&&bh(de,_e,L[_e]);return de},dc=(de,L)=>Ld(de,cf(L));let yf=100;function Nf(){return"SQR"+yf++}class ys extends it{constructor(L){super(L),this._variableValueRecorder=new si,this._results=new zn.m(1),this._scopedVars={__sceneObject:{value:this,text:"__sceneObject"}},this._variableDependency=new Xn(this,{statePaths:["queries","datasource"],onVariableUpdateCompleted:this.onVariableUpdatesCompleted.bind(this),onAnyVariableChanged:this.onAnyVariableChanged.bind(this)}),this.prepareRequests=(_e,mn)=>{const vr=this.getTimeCompare(),{minInterval:Qr,queries:ao}=this.state;let oa,qo=Zf({app:"scenes",requestId:Nf(),timezone:_e.getTimeZone(),panelId:1,range:_e.state.value,interval:"1s",intervalMs:1e3,targets:(0,st.cloneDeep)(ao),maxDataPoints:this.getMaxDataPoints(),scopedVars:this._scopedVars,startTime:Date.now(),liveStreaming:this.state.liveStreaming,rangeRaw:{from:_e.state.from,to:_e.state.to},cacheTimeout:this.state.cacheTimeout,queryCachingTTL:this.state.queryCachingTTL},rt(this));this._adhocFiltersVar&&(qo.filters=this._adhocFiltersVar.state.filters),this._groupByVar&&(qo.groupByKeys=this._groupByVar.state.value),qo.targets=qo.targets.map(ou=>(ou.datasource||(ou.datasource=mn.getRef()),ou));const ha=Qr||mn.interval,is=Is.calculateInterval(_e.state.value,qo.maxDataPoints,ha);qo.scopedVars=Object.assign({},qo.scopedVars,{__interval:{text:is.interval,value:is.interval},__interval_ms:{text:is.intervalMs.toString(),value:is.intervalMs}}),qo.interval=is.interval,qo.intervalMs=is.intervalMs;const _s=_e.state.value;if(vr){const ou=vr.getCompareTimeRange(_s);ou&&(oa=dc(Zf({},qo),{range:ou,requestId:Nf()}),qo=dc(Zf({},qo),{range:_s}))}return[qo,oa]},this.onDataReceived=_e=>{const mn=(0,yo.N$)(_e,this.state.data),vr=this._combineDataLayers(mn);let Qr=this.state._hasFetchedData;!Qr&&mn.state!==bt.Gu.Loading&&(Qr=!0),this._resultAnnotations=_e.annotations,this.setState({data:vr,_hasFetchedData:Qr}),this._results.next({origin:this,data:vr})},this.addActivationHandler(()=>this._onActivate())}getResultsStream(){return this._results}_onActivate(){const L=Eo.getTimeRange(this),_e=this.getTimeCompare();return _e&&this._subs.add(_e.subscribeToState((mn,vr)=>{mn.compareWith!==vr.compareWith&&this.runQueries()})),this._subs.add(L.subscribeToState(()=>{this.runWithTimeRange(L)})),this.shouldRunQueriesOnActivate()&&this.runQueries(),this._dataLayersSub||this._handleDataLayers(),()=>this._onDeactivate()}_handleDataLayers(){const L=Eo.getDataLayers(this),_e=[],mn=new Map;L.length>0&&(L.forEach(vr=>{_e.push(vr.getResultsStream())}),this._dataLayersSub=(0,Ri.h)(_e).pipe((0,Fi.U)(),(0,kr.T)(vr=>(mn.set(vr.origin.state.key,vr.data),mn))).subscribe(vr=>{this._onLayersReceived(vr)}))}_onLayersReceived(L){var _e,mn;const vr=Eo.getTimeRange(this),Qr=Eo.getDataLayers(this),{dataLayerFilter:ao}=this.state;let oa=[],qo=[],ha;const is=Array.from(L.keys());if(Array.from(L.values()).forEach((ou,Ju)=>{const cl=is[Ju],$l=Qr.find(Sc=>Sc.state.key===cl);$l&&($l.topic===Kr.QR.Annotations&&ou[Kr.QR.Annotations]&&(oa=oa.concat(ou[Kr.QR.Annotations])),$l.topic==="alertStates"&&(qo=qo.concat(ou.series)))}),ao?.panelId&&(oa.length>0&&(oa=rs(oa,ao)),qo.length>0))for(const ou of qo){const Ju=new Do.R(ou);for(const cl of Ju)if(cl.panelId===ao.panelId){ha=cl;break}}const _s=this.state.data?this.state.data:dc(Zf({},Xe),{timeRange:vr.state.value});this._layerAnnotations=oa,this.setState({data:dc(Zf({},_s),{annotations:[...(_e=this._resultAnnotations)!=null?_e:[],...oa],alertState:ha??((mn=this.state.data)==null?void 0:mn.alertState)})})}onVariableUpdatesCompleted(){this.runQueries()}onAnyVariableChanged(L){this._adhocFiltersVar===L||this._groupByVar===L||(L instanceof Qc&&this._isRelevantAutoVariable(L)&&this.runQueries(),L instanceof Zu&&this._isRelevantAutoVariable(L)&&this.runQueries())}_isRelevantAutoVariable(L){var _e,mn;const vr=(_e=this.state.datasource)!=null?_e:Hc(this.state.queries);return L.state.applyMode==="auto"&&vr?.uid===((mn=L.state.datasource)==null?void 0:mn.uid)}shouldRunQueriesOnActivate(){return this._variableValueRecorder.hasDependenciesChanged(this)?(Yo("SceneQueryRunner","Variable dependency changed while inactive, shouldRunQueriesOnActivate returns true"),!0):!!(!this.state.data||this._isDataTimeRangeStale(this.state.data))}_isDataTimeRangeStale(L){const mn=Eo.getTimeRange(this).state.value,vr=L.timeRange;return mn.from.unix()===vr.from.unix()&&mn.to.unix()===vr.to.unix()?!1:(Yo("SceneQueryRunner","Data time range is stale"),!0)}_onDeactivate(){this._querySub&&(this._querySub.unsubscribe(),this._querySub=void 0),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),this._adhocFiltersVar=void 0,this._groupByVar=void 0,this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this)}setContainerWidth(L){!this._containerWidth&&L>0?(this._containerWidth=L,this.state.maxDataPointsFromWidth&&!this.state.maxDataPoints&&setTimeout(()=>{this.isActive&&!this.state._hasFetchedData&&this.runQueries()},0)):L>0&&(this._containerWidth=L)}isDataReadyToDisplay(){return!!this.state._hasFetchedData}runQueries(){const L=Eo.getTimeRange(this);this.runWithTimeRange(L)}getMaxDataPoints(){var L;return this.state.maxDataPoints?this.state.maxDataPoints:this.state.maxDataPointsFromWidth&&(L=this._containerWidth)!=null?L:500}cancelQuery(){var L;(L=this._querySub)==null||L.unsubscribe(),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),this.setState({data:dc(Zf({},this.state.data),{state:bt.Gu.Done})})}async runWithTimeRange(L){var _e,mn;if(!this.state.maxDataPoints&&this.state.maxDataPointsFromWidth&&!this._containerWidth)return;if(this._dataLayersSub||this._handleDataLayers(),(_e=this._querySub)==null||_e.unsubscribe(),this._variableDependency.hasDependencyInLoadingState()){Yo("SceneQueryRunner","Variable dependency is in loading state, skipping query execution");return}const{queries:vr}=this.state;if(!vr?.length){this._setNoDataState();return}try{const Qr=(mn=this.state.datasource)!=null?mn:Hc(vr),ao=await Ot(Qr,this._scopedVars);this.findAndSubscribeToAdHocFilters(Qr?.uid);const oa=(0,Ls.XJ)(),[qo,ha]=this.prepareRequests(L,ao);Yo("SceneQueryRunner","Starting runRequest",this.state.key);let is=oa(ao,qo);ha&&(is=(0,Gi.p)([is,oa(ao,ha)]).pipe(il)),is=is.pipe(Yt({type:"data",request:qo,origin:this,cancel:()=>this.cancelQuery()})),this._querySub=is.subscribe(this.onDataReceived)}catch(Qr){console.error("PanelQueryRunner Error",Qr),this.onDataReceived(dc(Zf(Zf({},Xe),this.state.data),{state:bt.Gu.Error,errors:[(0,po.u)(Qr)]}))}}_combineDataLayers(L){var _e;return this.state.data&&this.state.data.annotations&&(L.annotations=(L.annotations||[]).concat((_e=this._layerAnnotations)!=null?_e:[])),this.state.data&&this.state.data.alertState&&(L.alertState=this.state.data.alertState),L}_setNoDataState(){this.state.data!==Xe&&this.setState({data:Xe})}getTimeCompare(){return this.parent?ze(this.parent,L=>{let _e=null;return L instanceof uu?L:(L.forEachChild(mn=>{mn instanceof uu&&(_e=mn)}),_e)}):null}findAndSubscribeToAdHocFilters(L){const _e=Ii(L);this._adhocFiltersVar!==_e&&(this._adhocFiltersVar=_e,this._updateExplicitVariableDependencies());const mn=fa(L);this._groupByVar!==mn&&(this._groupByVar=mn,this._updateExplicitVariableDependencies())}_updateExplicitVariableDependencies(){const L=[];this._adhocFiltersVar&&L.push(this._adhocFiltersVar.state.name),this._groupByVar&&L.push(this._groupByVar.state.name),this._variableDependency.setVariableNames(L)}}function Hc(de){var L,_e;return(_e=(L=de.find(mn=>mn.datasource!==null))==null?void 0:L.datasource)!=null?_e:void 0}var Jc=t(15292),Fh=Object.defineProperty,lh=Object.defineProperties,Xd=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Pf=(de,L,_e)=>L in de?Fh(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,bf=(de,L)=>{for(var _e in L||(L={}))bd.call(L,_e)&&Pf(de,_e,L[_e]);if(Ud)for(var _e of Ud(L))Ms.call(L,_e)&&Pf(de,_e,L[_e]);return de},cd=(de,L)=>lh(de,Xd(L));class rf extends it{constructor(){super({layersMap:{}}),this.addActivationHandler(()=>this._onActivate())}_onActivate(){const L=Eo.getDataLayers(this,!0);this.setState({layersMap:L.reduce((_e,mn)=>cd(bf({},_e),{[mn.state.key]:mn.state.isEnabled}),{})})}toggleLayer(L){this.setState({layersMap:cd(bf({},this.state.layersMap),{[L.state.key]:!L.state.isEnabled})}),L.setState({isEnabled:!L.state.isEnabled})}}rf.Component=Gf;function Gf({model:de}){const{layersMap:L}=de.useState(),_e=Eo.getDataLayers(de,!0);return _e.length===0?null:s.createElement(s.Fragment,null,_e.map(mn=>{const vr=`data-layer-${mn.state.key}`;return mn.state.isHidden?null:s.createElement(Tf,{key:vr,layer:mn,onToggleLayer:()=>de.toggleLayer(mn),isEnabled:L[mn.state.key]})}))}function Tf({layer:de,isEnabled:L,onToggleLayer:_e}){var mn,vr;const Qr=`data-layer-${de.state.key}`,{data:ao}=de.useState(),oa=!!(ao&&ao.state===bt.Gu.Loading);return s.createElement("div",{className:fd},s.createElement(_c,{htmlFor:Qr,isLoading:oa,onCancel:()=>{var qo;return(qo=de.cancelQuery)==null?void 0:qo.call(de)},label:de.state.name,description:de.state.description,error:(vr=(mn=de.state.data)==null?void 0:mn.errors)==null?void 0:vr[0].message}),s.createElement(Jc.K,{id:Qr,value:L,onChange:_e}))}const fd=(0,xo.css)({display:"flex"});var eh=t(2514),Rf=t(39070),qf=t(66847),kd=Object.defineProperty,qa=Object.defineProperties,Gs=Object.getOwnPropertyDescriptors,hu=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,Pu=(de,L,_e)=>L in de?kd(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,sl=(de,L)=>{for(var _e in L||(L={}))du.call(L,_e)&&Pu(de,_e,L[_e]);if(hu)for(var _e of hu(L))Ys.call(L,_e)&&Pu(de,_e,L[_e]);return de},Tu=(de,L)=>qa(de,Gs(L));class Yu extends it{constructor(L){super(L),this._results=new zn.m(1),this._variableDependency=new Xn(this,{statePaths:["transformations"],onReferencedVariableValueChanged:()=>this.reprocessTransformations()}),this.addActivationHandler(()=>this.activationHandler())}activationHandler(){const L=this.getSourceData();return this._subs.add(L.subscribeToState(_e=>this.transform(_e.data))),L.state.data&&this.transform(L.state.data),()=>{this._transformSub&&this._transformSub.unsubscribe()}}getSourceData(){if(this.state.$data){if(this.state.$data instanceof ki)throw new Error("SceneDataLayers can not be used as data provider for SceneDataTransformer.");return this.state.$data}if(!this.parent||!this.parent.parent)throw new Error("SceneDataTransformer must either have $data set on it or have a parent.parent with $data");return Eo.getData(this.parent.parent)}setContainerWidth(L){this.state.$data&&this.state.$data.setContainerWidth&&this.state.$data.setContainerWidth(L)}isDataReadyToDisplay(){const L=this.getSourceData();return L.isDataReadyToDisplay?L.isDataReadyToDisplay():!0}reprocessTransformations(){this.transform(this.getSourceData().state.data)}cancelQuery(){var L,_e;(_e=(L=this.getSourceData()).cancelQuery)==null||_e.call(L)}getResultsStream(){return this._results}transform(L){const _e=this.state.transformations||[];if(_e.length===0||!L){this.setState({data:L}),L&&this._results.next({origin:this,data:L});return}this._transformSub&&this._transformSub.unsubscribe();const mn={interpolate:vr=>{var Qr;return Eo.interpolate(this,vr,(Qr=L.request)==null?void 0:Qr.scopedVars)}};this._transformSub=(0,eh.m)(_e,L.series,mn).pipe((0,kr.T)(vr=>Tu(sl({},L),{series:vr})),(0,qf.W)(vr=>{var Qr;console.error("Error transforming data: ",vr);const ao=((Qr=this.getSourceData().state.data)==null?void 0:Qr.errors)||[],oa=(0,po.u)(vr);oa.message=`Error transforming data: ${oa.message}`;const qo=Tu(sl({},L),{state:Rf.Gu.Error,errors:[...ao,oa]});return(0,at.of)(qo)})).subscribe(vr=>{this.setState({data:vr}),this._results.next({origin:this,data:vr})})}}var xu=t(12470);class of extends it{}of.Component=Ol;function Ol({model:de}){const L=Eo.getVariables(de).useState();return s.createElement(s.Fragment,null,L.variables.map(_e=>s.createElement(wc,{key:_e.state.key,variable:_e,layout:de.state.layout})))}function wc({variable:de,layout:L,showAlways:_e}){return de.useState().hide===xu.zL.hideVariable&&!_e?null:L==="vertical"?s.createElement("div",{className:Bl},s.createElement(Ll,{variable:de,layout:L}),s.createElement(de.Component,{model:de})):s.createElement("div",{className:Mc},s.createElement(Ll,{variable:de}),s.createElement(de.Component,{model:de}))}function Ll({variable:de,layout:L}){var _e,mn;const{state:vr}=de;if(de.state.hide===xu.zL.hideLabel)return null;const Qr=`var-${vr.key}`,ao=(_e=vr.label)!=null?_e:vr.name;return s.createElement(_c,{htmlFor:Qr,isLoading:vr.loading,onCancel:()=>{var oa;return(oa=de.onCancel)==null?void 0:oa.call(de)},label:ao,error:vr.error,layout:L,description:(mn=vr.description)!=null?mn:void 0})}const Mc=(0,xo.css)({display:"flex"}),Bl=(0,xo.css)({display:"flex",flexDirection:"column"});class Ic extends it{}Ic.Component=qu;function qu({model:de}){const L=Eo.lookupVariable(de.state.variableName,de);return L?s.createElement(wc,{key:L.state.key,variable:L,layout:de.state.layout,showAlways:!0}):null}class Vr extends it{constructor(L){super(L),this._variablesThatHaveChanged=new Set,this._variablesToUpdate=new Set,this._updating=new Map,this._variableValueRecorder=new si,this._variableDependency=new fo(this._handleParentVariableUpdatesCompleted.bind(this)),this._onActivate=()=>{const _e=Eo.getTimeRange(this);this._subs.add(this.subscribeToEvent(xi,mn=>this._handleVariableValueChanged(mn.payload))),this._subs.add(_e.subscribeToState(()=>{this._refreshTimeRangeBasedVariables()})),this._subs.add(this.subscribeToState(this._onStateChanged)),this._checkForVariablesThatChangedWhileInactive();for(const mn of this.state.variables)this._variableNeedsUpdate(mn)&&this._variablesToUpdate.add(mn);return this._updateNextBatch(),this._onDeactivate},this._onDeactivate=()=>{var _e;for(const mn of this._updating.values())(_e=mn.subscription)==null||_e.unsubscribe();for(const mn of this.state.variables)!this._variablesToUpdate.has(mn)&&!this._updating.has(mn)&&this._variableValueRecorder.recordCurrentValue(mn);this._variablesToUpdate.clear(),this._updating.clear()},this._onStateChanged=(_e,mn)=>{const vr=this._variablesToUpdate.size;for(const Qr of mn.variables)if(!_e.variables.includes(Qr)){const ao=this._updating.get(Qr);ao?.subscription&&ao.subscription.unsubscribe(),this._updating.delete(Qr),this._variablesToUpdate.delete(Qr)}for(const Qr of _e.variables)mn.variables.includes(Qr)||this._variableNeedsUpdate(Qr)&&this._variablesToUpdate.add(Qr);vr===0&&this._variablesToUpdate.size>0&&this._updateNextBatch()},this.addActivationHandler(this._onActivate)}getByName(L){return this.state.variables.find(_e=>_e.state.name===L)}_refreshTimeRangeBasedVariables(){for(const L of this.state.variables)"refresh"in L.state&&L.state.refresh===xu.CO.onTimeRangeChanged&&this._variablesToUpdate.add(L);this._updateNextBatch()}_checkForVariablesThatChangedWhileInactive(){if(this._variableValueRecorder.hasValues())for(const L of this.state.variables)this._variableValueRecorder.hasValueChanged(L)&&(Ni(L,"Changed while in-active"),this._addDependentVariablesToUpdateQueue(L))}_variableNeedsUpdate(L){return L.validateAndUpdate?this._variableValueRecorder.hasRecordedValue(L)?(Ni(L,"Skipping updateAndValidate current value valid"),!1):!0:!1}_updateNextBatch(){for(const L of this._variablesToUpdate){if(!L.validateAndUpdate)throw new Error("Variable added to variablesToUpdate but does not have validateAndUpdate");if(this._updating.has(L)||Eo.hasVariableDependencyInLoadingState(L))continue;const _e={variable:L};this._updating.set(L,_e),Ni(L,"updateAndValidate started"),_e.subscription=L.validateAndUpdate().subscribe({next:()=>this._validateAndUpdateCompleted(L),complete:()=>this._validateAndUpdateCompleted(L),error:mn=>this._handleVariableError(L,mn)})}}_validateAndUpdateCompleted(L){var _e;if(!this._updating.has(L))return;const mn=this._updating.get(L);(_e=mn?.subscription)==null||_e.unsubscribe(),this._updating.delete(L),this._variablesToUpdate.delete(L),Ni(L,"updateAndValidate completed"),this._notifyDependentSceneObjects(L),this._updateNextBatch()}cancel(L){var _e;const mn=this._updating.get(L);(_e=mn?.subscription)==null||_e.unsubscribe(),this._updating.delete(L),this._variablesToUpdate.delete(L)}_handleVariableError(L,_e){var mn;const vr=this._updating.get(L);(mn=vr?.subscription)==null||mn.unsubscribe(),this._updating.delete(L),this._variablesToUpdate.delete(L),L.setState({loading:!1,error:_e.message}),console.error("SceneVariableSet updateAndValidate error",_e),Ni(L,"updateAndValidate error",_e)}_handleVariableValueChanged(L){this._variablesThatHaveChanged.add(L),this._addDependentVariablesToUpdateQueue(L),this._updating.has(L)||(this._updateNextBatch(),this._notifyDependentSceneObjects(L))}_handleParentVariableUpdatesCompleted(L,_e){_e&&this._addDependentVariablesToUpdateQueue(L),this._variablesToUpdate.size>0&&this._updating.size===0&&this._updateNextBatch()}_addDependentVariablesToUpdateQueue(L){for(const _e of this.state.variables)_e.variableDependency&&_e.variableDependency.hasDependencyOn(L.state.name)&&(Ni(_e,"Added to update queue, dependant variable value changed"),this._updating.has(_e)&&_e.onCancel&&_e.onCancel(),this._variablesToUpdate.add(_e))}_notifyDependentSceneObjects(L){this.parent&&(this._traverseSceneAndNotify(this.parent,L,this._variablesThatHaveChanged.has(L)),this._variablesThatHaveChanged.delete(L))}_traverseSceneAndNotify(L,_e,mn){this!==L&&L.isActive&&(L.variableDependency&&L.variableDependency.variableUpdateCompleted(_e,mn),L.forEachChild(vr=>this._traverseSceneAndNotify(vr,_e,mn)))}isVariableLoadingOrWaitingToUpdate(L){return L.isAncestorLoading&&L.isAncestorLoading()||this._variablesToUpdate.has(L)||this._updating.has(L)?!0:Eo.hasVariableDependencyInLoadingState(L)}}function Ni(de,L,_e){Yo("SceneVariableSet",`Variable[${de.state.name}]: ${L}`,_e)}class fo{constructor(L){this._variableUpdatesCompleted=L,this._emptySet=new Set}getNames(){return this._emptySet}hasDependencyOn(L){return!1}variableUpdateCompleted(L,_e){this._variableUpdatesCompleted(L,_e)}}var Po=Object.defineProperty,pa=Object.defineProperties,Va=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,Ru=(de,L,_e)=>L in de?Po(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Vs=(de,L)=>{for(var _e in L||(L={}))zs.call(L,_e)&&Ru(de,_e,L[_e]);if(fs)for(var _e of fs(L))cu.call(L,_e)&&Ru(de,_e,L[_e]);return de},Ou=(de,L)=>pa(de,Va(L));class iu extends it{constructor(L){super(Ou(Vs({type:"constant",value:"",name:""},L),{skipUrlSync:!0}))}getValue(){return this.state.value}}var Uu=Object.defineProperty,kl=Object.getOwnPropertySymbols,gl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,El=(de,L,_e)=>L in de?Uu(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Zc=(de,L)=>{for(var _e in L||(L={}))gl.call(L,_e)&&El(de,_e,L[_e]);if(kl)for(var _e of kl(L))ol.call(L,_e)&&El(de,_e,L[_e]);return de};class mu extends Zo{constructor(L){super(Zc({type:"custom",query:"",value:"",text:"",options:[],name:""},L)),this._variableDependency=new Xn(this,{statePaths:["query"]})}getValueOptions(L){var _e;const Qr=((_e=Eo.interpolate(this,this.state.query).match(/(?:\\,|[^,])+/g))!=null?_e:[]).map(ao=>{var oa;ao=ao.replace(/\\,/g,",");const qo=(oa=/^(.+)\s:\s(.+)$/g.exec(ao))!=null?oa:[];if(qo.length===3){const[,ha,is]=qo;return{label:ha.trim(),value:is.trim()}}else return{label:ao.trim(),value:ao.trim()}});return(0,at.of)(Qr)}}mu.Component=({model:de})=>Du(de);var Ps=Object.defineProperty,Kc=Object.getOwnPropertySymbols,vc=Object.prototype.hasOwnProperty,ff=Object.prototype.propertyIsEnumerable,Wc=(de,L,_e)=>L in de?Ps(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Mf=(de,L)=>{for(var _e in L||(L={}))vc.call(L,_e)&&Wc(de,_e,L[_e]);if(Kc)for(var _e of Kc(L))ff.call(L,_e)&&Wc(de,_e,L[_e]);return de};class wd extends Zo{constructor(L){super(Mf({type:"datasource",value:"",text:"",options:[],name:"",regex:"",pluginId:""},L)),this._variableDependency=new Xn(this,{statePaths:["regex"]})}getValueOptions(L){if(!this.state.pluginId)return(0,at.of)([]);const _e=(0,Ve.l)().getList({metrics:!0,variables:!1,pluginId:this.state.pluginId});let mn;if(this.state.regex){const Qr=Eo.interpolate(this,this.state.regex,void 0,"regex");mn=(0,kn.dO)(Qr)}const vr=[];for(let Qr=0;Qr<_e.length;Qr++){const ao=_e[Qr];mf(ao,mn)&&vr.push({label:ao.name,value:ao.uid}),this.state.defaultOptionEnabled&&Df(ao,mn)&&vr.push({label:"default",value:"default"})}return vr.length===0?this.setState({error:"No data sources found"}):this.state.error&&this.setState({error:null}),(0,at.of)(vr)}}wd.Component=({model:de})=>Du(de);function mf(de,L){return L?L.exec(de.name):!0}function Df(de,L){return de.isDefault?L?L.exec("default"):!0:!1}var Ah=t(75505),Ed=t(16126),$f=t(13288),Dc=t(29505);const _f=de=>!!de.metricFindQuery&&!de.variables,wf=de=>{if(!de.variables||de.variables.getType()!==Dc.Qz.Standard)return!1;const L=de.variables;return"toDataQuery"in L&&!!L.toDataQuery},Uf=de=>{if(!de.variables||de.variables.getType()!==Dc.Qz.Custom)return!1;const L=de.variables;return"query"in L&&"editor"in L&&!!L.query&&!!L.editor};var Wd=Object.defineProperty,Ff=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,Wf=Object.prototype.hasOwnProperty,nh=Object.prototype.propertyIsEnumerable,Ze=(de,L,_e)=>L in de?Wd(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,lt=(de,L)=>{for(var _e in L||(L={}))Wf.call(L,_e)&&Ze(de,_e,L[_e]);if(Nd)for(var _e of Nd(L))nh.call(L,_e)&&Ze(de,_e,L[_e]);return de},Kt=(de,L)=>Ff(de,Qd(L));class Bn{constructor(L,_e=(0,Ls.XJ)()){this.datasource=L,this._runRequest=_e}getTarget(L){if(wf(this.datasource))return this.datasource.variables.toDataQuery(Co(L));throw new Error("Couldn't create a target with supplied arguments.")}runRequest(L,_e){return wf(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,_e,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,_e):Yr()}}class Ar{constructor(L){this.datasource=L}getTarget(L){if(_f(this.datasource))return L.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest({variable:L,searchFilter:_e},mn){return _f(this.datasource)?(0,Rs.H)(this.datasource.metricFindQuery(L.state.query,Kt(lt({},mn),{variable:{name:L.state.name,type:L.state.type},searchFilter:_e}))).pipe((0,Ds.Z)(vr=>{if(!vr||!vr.length)return Yr();const Qr=vr;return(0,at.of)({series:Qr,state:Rf.Gu.Done,timeRange:mn.range})})):Yr()}}class Tr{constructor(L,_e=(0,Ls.XJ)()){this.datasource=L,this._runRequest=_e}getTarget(L){if(Uf(this.datasource))return L.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest(L,_e){return Uf(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,_e,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,_e):Yr()}}function Yr(){return(0,at.of)({state:Rf.Gu.Done,series:[],timeRange:(0,nn.E2)()})}function qr(de){if(wf(de))return new Bn(de,(0,Ls.XJ)());if(_f(de))return new Ar(de);if(Uf(de))return new Tr(de);throw new Error(`Couldn't create a query runner for datasource ${de.type}`)}let qi=qr;function Co(de){const L=de.state.query;return!L||typeof L!="object"?{query:L,refId:`variable-${de.state.name}`}:L.refId==null?Kt(lt({},L),{refId:`variable-${de.state.name}`}):de.state.query}const _o=(de,L,_e)=>{var mn,vr,Qr,ao,oa,qo;let ha,is=[];de&&(ha=(0,kn.dO)(de));for(let _s=0;_s<_e.length;_s++){const ou=_e[_s];let Ju=ou.text===void 0||ou.text===null?ou.value:ou.text,cl=ou.value===void 0||ou.value===null?ou.text:ou.value;if((0,st.isNumber)(cl)&&(cl=cl.toString()),(0,st.isNumber)(Ju)&&(Ju=Ju.toString()),ha){const $l=go(cl,ha);if(!$l.length)continue;const Sc=$l.find(Qu=>Qu.groups&&Qu.groups.value),Qf=$l.find(Qu=>Qu.groups&&Qu.groups.text),zc=$l.find(Qu=>Qu.length>1),xf=$l.length>1&&zc;if(Sc||Qf)cl=(Qr=(mn=Sc?.groups)==null?void 0:mn.value)!=null?Qr:(vr=Qf?.groups)==null?void 0:vr.text,Ju=(qo=(ao=Qf?.groups)==null?void 0:ao.text)!=null?qo:(oa=Sc?.groups)==null?void 0:oa.value;else if(xf){for(let Qu=0;Qu<$l.length;Qu++){const Sf=$l[Qu];is.push({label:Sf[1],value:Sf[1]})}continue}else zc&&(Ju=zc[1],cl=zc[1])}is.push({label:Ju,value:cl})}return is=(0,st.uniqBy)(is,"value"),mo(is,L)},go=(de,L)=>{const _e=[];let mn=null;L.lastIndex=0;do mn=L.exec(de),mn&&_e.push(mn);while(L.global&&mn&&mn[0]!==""&&mn[0]!==void 0);return _e},mo=(de,L)=>{if(L===xu.ZG.disabled)return de;const _e=vr=>{if(!vr.text)return-1;const Qr=vr.text.match(/.*?(\d+).*/);return!Qr||Qr.length<2?-1:parseInt(Qr[1],10)},mn=vr=>vr.sort((Qr,ao)=>Qr.text?ao.text?Qr.text.localeCompare(ao.text,void 0,{numeric:!0}):1:-1);switch(L){case xu.ZG.alphabeticalAsc:de=(0,st.sortBy)(de,"label");break;case xu.ZG.alphabeticalDesc:de=(0,st.sortBy)(de,"label").reverse();break;case xu.ZG.numericalAsc:de=(0,st.sortBy)(de,_e);break;case xu.ZG.numericalDesc:de=(0,st.sortBy)(de,_e),de=de.reverse();break;case xu.ZG.alphabeticalCaseInsensitiveAsc:de=(0,st.sortBy)(de,vr=>(0,st.toLower)(vr.label));break;case xu.ZG.alphabeticalCaseInsensitiveDesc:de=(0,st.sortBy)(de,vr=>(0,st.toLower)(vr.label)),de=de.reverse();break;case(xu.ZG.naturalAsc||7):de=mn(de);break;case(xu.ZG.naturalDesc||8):de=mn(de),de=de.reverse();break}return de};function Bo(){return de=>de.pipe((0,kr.T)(L=>{const _e=L.series;if(!_e||!_e.length)return[];if(Ba(_e))return _e;if(_e[0].fields.length===0)return[];const mn=(0,yo.Bt)(_e),vr=[];let Qr=-1,ao=-1,oa=-1,qo=-1;for(const ha of mn)for(let is=0;is<ha.fields.length;is++){const _s=ha.fields[is],ou=(0,on.Ct)(_s,ha,_e).toLowerCase();_s.type===Ko.PU.string&&oa===-1&&(oa=is),ou==="text"&&_s.type===Ko.PU.string&&ao===-1&&(ao=is),ou==="value"&&_s.type===Ko.PU.string&&Qr===-1&&(Qr=is),ou==="expandable"&&(_s.type===Ko.PU.boolean||_s.type===Ko.PU.number)&&qo===-1&&(qo=is)}if(oa===-1)throw new Error("Couldn't find any field of type string in the results.");for(const ha of _e)for(let is=0;is<ha.length;is++){const _s=qo!==-1?ha.fields[qo].values.get(is):void 0,ou=ha.fields[oa].values.get(is),Ju=ao!==-1?ha.fields[ao].values.get(is):null,cl=Qr!==-1?ha.fields[Qr].values.get(is):null;if(Qr===-1&&ao===-1){vr.push({text:ou,value:ou,expandable:_s});continue}if(Qr===-1&&ao!==-1){vr.push({text:Ju,value:Ju,expandable:_s});continue}if(Qr!==-1&&ao===-1){vr.push({text:cl,value:cl,expandable:_s});continue}vr.push({text:Ju,value:cl,expandable:_s})}return vr}))}function Ba(de){if(!de)return!1;if(!de.length)return!0;const L=de[0];if((0,yo.ci)(L))return!1;for(const _e in L){if(!L.hasOwnProperty(_e)||L[_e]!==null&&typeof L[_e]!="string"&&typeof L[_e]!="number")continue;const mn=_e.toLowerCase();if(mn==="text"||mn==="value")return!0}return!1}var Bs=Object.defineProperty,Xs=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,yu=(de,L,_e)=>L in de?Bs(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Ku=(de,L)=>{for(var _e in L||(L={}))lu.call(L,_e)&&yu(de,_e,L[_e]);if(Xs)for(var _e of Xs(L))Cu.call(L,_e)&&yu(de,_e,L[_e]);return de};class yl extends Zo{constructor(L){super(Ku({type:"query",name:"",value:"",text:"",options:[],datasource:null,regex:"",query:{refId:"A"},refresh:xu.CO.onDashboardLoad,sort:xu.ZG.disabled},L)),this._variableDependency=new Xn(this,{statePaths:["regex","query","datasource"]}),this.onSearchChange=_e=>{$u(this.state.query)&&this._updateOptionsBasedOnSearchFilter(_e)},this._updateOptionsBasedOnSearchFilter=(0,st.debounce)(async _e=>{const mn=await(0,Ah.s)(this.getValueOptions({searchFilter:_e}));this.setState({options:mn,loading:!1})},400)}getValueOptions(L){return this.state.query?(this.setState({loading:!0,error:null}),(0,Rs.H)(Ot(this.state.datasource,{__sceneObject:{text:"__sceneObject",value:this}})).pipe((0,Ds.Z)(_e=>{const mn=qi(_e),vr=mn.getTarget(this),Qr=this.getRequest(vr,L.searchFilter);return mn.runRequest({variable:this,searchFilter:L.searchFilter},Qr).pipe(Yt({type:"variable",request:Qr,origin:this}),(0,Ed.p)(ao=>ao.state===Rf.Gu.Done||ao.state===Rf.Gu.Error),(0,Fs.s)(1),(0,Ds.Z)(ao=>ao.state===Rf.Gu.Error?(0,$f.$)(()=>ao.error):(0,at.of)(ao)),Bo(),(0,Ds.Z)(ao=>{let oa="";return this.state.regex&&(oa=Eo.interpolate(this,this.state.regex,void 0,"regex")),(0,at.of)(_o(oa,this.state.sort,ao))}),(0,qf.W)(ao=>ao.cancelled?(0,at.of)([]):(0,$f.$)(()=>ao)))}))):(0,at.of)([])}getRequest(L,_e){const mn={__sceneObject:{text:"__sceneObject",value:this}};_e&&(mn.__searchFilter={value:_e,text:_e});const vr=Eo.getTimeRange(this).state.value;return{app:nu.Jk.Dashboard,requestId:(0,ce.A)(),timezone:"",range:vr,interval:"",intervalMs:0,targets:[L],scopedVars:mn,startTime:Date.now()}}}yl.Component=({model:de})=>Du(de);function $u(de){return Lt(de).indexOf(Pr)>-1}var Cl=t(13752);function Tc(de,L){const _e=["A","B","C","D","E","F","G","H"],mn=[];if(L>5)return[];for(const vr of _e){const Qr=`${de}${vr}`;mn.push({name:Qr,children:Tc(Qr,L+1)})}return mn}function xl(de,L,_e){if(_e>=L.length||L[_e]==="*")return de;const mn=L[_e];let vr=[],Qr=[mn];mn.startsWith("{")&&(Qr=mn.replace(/\{|\}/g,"").split(","));for(const ao of de)for(const oa of Qr)if(oa.indexOf("*")!==-1){const qo=oa.replace("*","");new RegExp(`^${qo}.*`,"gi").test(ao.name)&&(vr=vr.concat(xl([ao],L,_e+1)))}else ao.name===oa&&(vr=vr.concat(xl(ao.children,L,_e+1)));return vr}function Dl(de){if(de.indexOf("value")===0)return[{name:de,children:[]}];const L=Tc("",0);return xl(L,de.split("."),0)}var ec=Object.defineProperty,Oc=Object.getOwnPropertySymbols,zf=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Bf=(de,L,_e)=>L in de?ec(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Yf=(de,L)=>{for(var _e in L||(L={}))zf.call(L,_e)&&Bf(de,_e,L[_e]);if(Oc)for(var _e of Oc(L))Sd.call(L,_e)&&Bf(de,_e,L[_e]);return de};class Lc extends Zo{constructor(L){super(Yf({type:"custom",name:"Test",value:"Value",text:"Text",query:"Query",options:[],refresh:xu.CO.onDashboardLoad},L)),this.completeUpdate=new Cl.B,this.isGettingValues=!0,this.getValueOptionsCount=0,this._variableDependency=new Xn(this,{statePaths:["query"]})}getValueOptions(L){const{delayMs:_e}=this.state;this.getValueOptionsCount+=1;const mn=Eo.getQueryController(this);return new yr.c(vr=>{const Qr={type:"variable",origin:this,cancel:()=>vr.complete()};if(mn&&mn.queryStarted(Qr),this.setState({loading:!0}),this.state.throwError)throw new Error(this.state.throwError);const ao=Eo.interpolate(this,this.state.query),oa=this.getOptions(ao),qo=this.completeUpdate.subscribe({next:()=>{this.setState({issuedQuery:ao,options:oa,loading:!1}),vr.next(oa),vr.complete()}});let ha;return _e?ha=window.setTimeout(()=>this.signalUpdateCompleted(),_e):_e===0&&this.signalUpdateCompleted(),this.isGettingValues=!0,()=>{qo.unsubscribe(),window.clearTimeout(ha),this.isGettingValues=!1,this.state.loading&&this.setState({loading:!1}),mn&&mn.queryCompleted(Qr)}})}cancel(){const L=ze(this,_e=>_e instanceof Vr?_e:void 0);L?.cancel(this)}getOptions(L){return this.state.optionsToReturn?this.state.optionsToReturn:Dl(L).map(_e=>({label:_e.name,value:_e.name}))}signalUpdateCompleted(){this.completeUpdate.next(1)}}Lc.Component=({model:de})=>Du(de);var dd=t(51440);function af({model:de}){const{value:L,key:_e,loading:mn}=de.useState(),vr=(0,s.useCallback)(ao=>{de.setValue(ao.currentTarget.value)},[de]),Qr=(0,s.useCallback)(ao=>{ao.key==="Enter"&&de.setValue(ao.currentTarget.value)},[de]);return s.createElement(dd.D,{id:_e,placeholder:"Enter value",minWidth:15,defaultValue:L,loading:mn,onBlur:vr,onKeyDown:Qr})}var Of=Object.defineProperty,Ad=Object.getOwnPropertySymbols,hd=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable,Fd=(de,L,_e)=>L in de?Of(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,ku=(de,L)=>{for(var _e in L||(L={}))hd.call(L,_e)&&Fd(de,_e,L[_e]);if(Ad)for(var _e of Ad(L))ed.call(L,_e)&&Fd(de,_e,L[_e]);return de};class el extends it{constructor(L){super(ku({type:"textbox",value:"",name:""},L)),this._urlSync=new Dt(this,{keys:()=>[this.getKey()]})}getValue(){return this.state.value}setValue(L){L!==this.state.value&&(this.setState({value:L}),this.publishEvent(new xi(this),!0))}getKey(){return`var-${this.state.name}`}getUrlState(){return{[this.getKey()]:this.state.value}}updateFromUrl(L){const _e={},mn=L[this.getKey()];typeof mn=="string"&&(_e.value=mn),this.setState(_e)}}el.Component=({model:de})=>s.createElement(af,{model:de});var Ec=Object.defineProperty,hc=Object.defineProperties,uc=Object.getOwnPropertyDescriptors,td=Object.getOwnPropertySymbols,sf=Object.prototype.hasOwnProperty,pd=Object.prototype.propertyIsEnumerable,ch=(de,L,_e)=>L in de?Ec(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,fh=(de,L)=>{for(var _e in L||(L={}))sf.call(L,_e)&&ch(de,_e,L[_e]);if(td)for(var _e of td(L))pd.call(L,_e)&&ch(de,_e,L[_e]);return de},Cf=(de,L)=>hc(de,uc(L));class op extends it{constructor(L){super(Cf(fh({type:"system",value:"",text:"",name:"",isMulti:!0,includeAll:!0},L),{skipUrlSync:!0}))}getValue(){return this.state.value}getValueText(){return this.state.text.toString()}isAncestorLoading(){var L,_e;const mn=(_e=(L=this.parent)==null?void 0:L.parent)==null?void 0:_e.parent;if(!mn)throw new Error("LocalValueVariable requires a parent SceneVariableSet that has an ancestor SceneVariableSet");const vr=Eo.getVariables(mn),Qr=Eo.lookupVariable(this.state.name,mn);if(vr&&Qr)return vr.isVariableLoadingOrWaitingToUpdate(Qr);throw new Error("LocalValueVariable requires a parent SceneVariableSet that has an ancestor SceneVariableSet")}}var np=Object.defineProperty,Wi=Object.getOwnPropertySymbols,Oa=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,Es=(de,L,_e)=>L in de?np(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Ss=(de,L)=>{for(var _e in L||(L={}))Oa.call(L,_e)&&Es(de,_e,L[_e]);if(Wi)for(var _e of Wi(L))Ca.call(L,_e)&&Es(de,_e,L[_e]);return de};class ds extends it{constructor(L){super(Ss({type:"interval",value:"",intervals:["1m","10m","30m","1h","6h","12h","1d","7d","14d","30d"],name:"",autoStepCount:30,autoMinInterval:"10s",autoEnabled:!1,refresh:mr.CO.onTimeRangeChanged},L)),this._onChange=_e=>{this.setState({value:_e.value}),this.publishEvent(new xi(this),!0)},this._urlSync=new Dt(this,{keys:[this.getKey()]})}getKey(){return`var-${this.state.name}`}getUrlState(){return{[this.getKey()]:this.state.value}}updateFromUrl(L){const _e={},mn=L[this.getKey()];typeof mn=="string"&&(mn.startsWith("$__auto_interval_")?_e.value=Ur:_e.value=mn),this.setState(_e)}getOptionsForSelect(){const{value:L,intervals:_e,autoEnabled:mn}=this.state;let vr=_e.map(Qr=>({value:Qr,label:Qr}));return mn&&(vr=[{value:Ur,label:Vn},...vr]),L&&!vr.some(Qr=>Qr.value===L)&&vr.push({value:L,label:L}),vr}getValue(){const{value:L,autoStepCount:_e,autoMinInterval:mn}=this.state;return L===Ur?this.getAutoRefreshInteval(_e,mn):L}getAutoRefreshInteval(L,_e){const mn=Eo.getTimeRange(this).state.value;return Is.calculateInterval(mn,L,_e).interval}validateAndUpdate(){const{value:L,intervals:_e}=this.state;let mn=!1;if(L===Ur)mn=!0;else if(!L&&_e.length>0){const vr=_e[0];this.setState({value:vr}),mn=!0}return mn&&this.publishEvent(new xi(this),!0),(0,at.of)({})}}ds.Component=({model:de})=>{const{key:L,value:_e}=de.useState();return s.createElement(ws.l6,{id:L,placeholder:"Select value",width:"auto",value:_e,tabSelectsValue:!1,options:de.getOptionsForSelect(),onChange:de._onChange})};class Ha{constructor(){this._urlKeyMapper=new Me,this._stateSub=null,this._locationSub=null,this._ignoreNextLocationUpdate=!1,this._onLocationUpdate=L=>{if(this._ignoreNextLocationUpdate){this._ignoreNextLocationUpdate=!1;return}if(this._lastPath!==L.pathname)return;const _e=new URLSearchParams(L.search);this._urlKeyMapper.rebuildIndex(this._sceneRoot),z(this._sceneRoot,_e,this._urlKeyMapper),this._lastPath=L.pathname},this._onStateChanged=({payload:L})=>{const _e=L.changedObject;if(_e.urlSync){const mn=_e.urlSync.getUrlState(),vr=p.Ny.getSearch(),Qr={};this._urlKeyMapper.rebuildIndex(this._sceneRoot);for(const[ao,oa]of Object.entries(mn)){const qo=this._urlKeyMapper.getUniqueKey(ao,_e),ha=vr.getAll(qo);be(ha,oa)||(Qr[qo]=oa)}Object.keys(Qr).length>0&&(this._ignoreNextLocationUpdate=!0,p.Ny.partial(Qr,!0))}}}initSync(L){this._locationSub||(Yo("UrlSyncManager","New location listen"),this._locationSub=p.Ny.getHistory().listen(this._onLocationUpdate)),this._stateSub&&(Yo("UrlSyncManager","Unregister previous scene state subscription",this._sceneRoot.state.key),this._stateSub.unsubscribe()),this._sceneRoot=L,this._lastPath=p.Ny.getLocation().pathname,this._stateSub=L.subscribeToEvent(Tt,this._onStateChanged),this.syncFrom(this._sceneRoot)}cleanUp(L){this._sceneRoot===L&&(Yo("UrlSyncManager","Clean up"),this._locationSub&&(this._locationSub(),Yo("UrlSyncManager","Unregister history listen"),this._locationSub=null),this._stateSub&&(this._stateSub.unsubscribe(),this._stateSub=null,Yo("UrlSyncManager","Root deactived, unsub to state","same key",this._sceneRoot.state.key===L.state.key)))}syncFrom(L){const _e=p.Ny.getSearch();this._urlKeyMapper.rebuildIndex(this._sceneRoot),z(L,_e,this._urlKeyMapper)}getUrlState(L){return ie(L)}}let bs;function Qs(){return bs||(bs=new Ha),bs}function vu(de){const L=window.__grafanaSceneContext;return Yo("setWindowGrafanaScene","set window.__grafanaSceneContext",de),window.__grafanaSceneContext=de,()=>{window.__grafanaSceneContext===de&&(Yo("setWindowGrafanaScene","restore window.__grafanaSceneContext",L),window.__grafanaSceneContext=L)}}class Nu extends it{constructor(L){super(L),this.addActivationHandler(()=>{const _e=vu(this);return()=>{_e(),Qs().cleanUp(this)}})}initUrlSync(){Qs().initSync(this)}}Nu.Component=zl;function zl({model:de}){const{body:L,controls:_e}=de.useState(),mn=(0,Ji.of)(bl);return s.createElement("div",{className:mn.container},_e&&s.createElement("div",{className:mn.controls},_e.map(vr=>s.createElement(vr.Component,{key:vr.state.key,model:vr}))),s.createElement("div",{className:mn.body},s.createElement(L.Component,{model:L})))}const bl=de=>({container:(0,xo.css)({flexGrow:1,display:"flex",gap:de.spacing(2),minHeight:"100%",flexDirection:"column"}),body:(0,xo.css)({flexGrow:1,display:"flex",gap:de.spacing(1)}),controls:(0,xo.css)({display:"flex",gap:de.spacing(2),alignItems:"flex-end",flexWrap:"wrap"})});var tl=t(581),lc=t(36663),qc=t(21423),df=t(90708),uf=t(94624),Jd=t(65158),dh=t(3591),Ph=function(){};function th(de){for(var L=[],_e=1;_e<arguments.length;_e++)L[_e-1]=arguments[_e];de&&de.addEventListener&&de.addEventListener.apply(de,L)}function Vh(de){for(var L=[],_e=1;_e<arguments.length;_e++)L[_e-1]=arguments[_e];de&&de.removeEventListener&&de.removeEventListener.apply(de,L)}var rh=typeof window<"u",Th=typeof navigator<"u",Bh=rh?s.useLayoutEffect:s.useEffect;const Rh=Bh;var wh={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function yp(){var de=(0,s.useState)(null),L=de[0],_e=de[1],mn=(0,s.useState)(wh),vr=mn[0],Qr=mn[1],ao=(0,s.useMemo)(function(){return new window.ResizeObserver(function(oa){if(oa[0]){var qo=oa[0].contentRect,ha=qo.x,is=qo.y,_s=qo.width,ou=qo.height,Ju=qo.top,cl=qo.left,$l=qo.bottom,Sc=qo.right;Qr({x:ha,y:is,width:_s,height:ou,top:Ju,left:cl,bottom:$l,right:Sc})}})},[]);return Rh(function(){if(L)return ao.observe(L),function(){ao.disconnect()}},[L]),[_e,vr]}const Ip=rh&&typeof window.ResizeObserver<"u"?yp:function(){return[Ph,wh]};var rp=t(43585),ev=t(13834),bp=t(91052),Lp=t(66602),wp=t(79041);function kp({model:de}){var L,_e,mn;const{title:vr,options:Qr,fieldConfig:ao,_pluginLoadError:oa,$data:qo,displayMode:ha,hoverHeader:is,menu:_s,headerActions:ou,titleItems:Ju,description:cl}=de.useState(),[$l,{width:Sc,height:Qf}]=Ip(),zc=de.getPlugin(),{dragClass:xf,dragClassCancel:Qu}=Np(de),Sf=Eo.getData(de),ef=Sf.useState(),xc=de.applyFieldConfig(ef.data),Nc=Eo.getTimeRange(de),Hd=Nc.getTimeZone(),dp=yv(Nc,zc,xc),xp=de.interpolate(vr,void 0,"text"),$v=(0,Ji.of)(Mh);if(!zc)return s.createElement("div",null,"Loading plugin panel...");if(!zc.panel)return s.createElement("div",null,"Panel plugin has no panel component");const A0=zc.panel;qo&&qo.setContainerWidth&&qo.setContainerWidth(Math.round(Sc));let Ap=[];Ju&&(Array.isArray(Ju)?Ap=Ap.concat(Ju.map(Af=>s.createElement(Af.Component,{model:Af,key:`${Af.state.key}`}))):te(Ju)?Ap.push(s.createElement(Ju.Component,{model:Ju})):Ap.push(Ju)),de.state.$timeRange&&Ap.push(s.createElement(de.state.$timeRange.Component,{model:de.state.$timeRange,key:de.state.key})),xc.alertState&&Ap.push(s.createElement(vl.m,{content:(L=xc.alertState.state)!=null?L:"unknown",key:`alert-states-icon-${de.state.key}`},s.createElement(bp.NR.TitleItem,{className:(0,xo.cx)({[$v.ok]:xc.alertState.state===rp.O.OK,[$v.pending]:xc.alertState.state===rp.O.Pending,[$v.alerting]:xc.alertState.state===rp.O.Alerting})},s.createElement(Vu.I,{name:xc.alertState.state==="alerting"?"heart-break":"heart",className:"panel-alert-icon",size:"md"}))));let Pp;_s&&(Pp=s.createElement(_s.Component,{model:_s}));let Gp;ou&&(Array.isArray(ou)?Gp=s.createElement(s.Fragment,null,ou.map(Af=>s.createElement(Af.Component,{model:Af,key:`${Af.state.key}`}))):te(ou)?Gp=s.createElement(ou.Component,{model:ou}):Gp=ou);const Og=xc,P0=Sf.isDataReadyToDisplay?Sf.isDataReadyToDisplay():!0,Yc=de.getPanelContext(),Tp=(mn=(_e=Yc.instanceState)==null?void 0:_e.legacyPanelId)!=null?mn:1;return s.createElement("div",{className:ap},s.createElement("div",{ref:$l,className:Fp,"data-viz-panel-key":de.state.key},Sc>0&&Qf>0&&s.createElement(bp.NR,{title:xp,description:cl?.trim()?de.getDescription:void 0,loadingState:Og.state,statusMessage:Qh(Og,oa),statusMessageOnClick:de.onStatusMessageClick,width:Sc,height:Qf,displayMode:ha,hoverHeader:is,titleItems:Ap,dragClass:xf,actions:Gp,dragClassCancel:Qu,padding:zc.noPadding?"none":"md",menu:Pp,onCancelQuery:de.onCancelQuery},(Af,ip)=>s.createElement(s.Fragment,null,s.createElement(Lp.Xw,{dependencies:[zc,Og]},s.createElement(ev.a,{meta:zc.meta},s.createElement(wp.XF,{value:Yc},P0&&s.createElement(A0,{id:Tp,data:Og,title:vr,timeRange:dp,timeZone:Hd,options:Qr,fieldConfig:ao,transparent:!1,width:Af,height:ip,renderCounter:0,replaceVariables:de.interpolate,onOptionsChange:de.onOptionsChange,onFieldConfigChange:de.onFieldConfigChange,onChangeTimeRange:de.onTimeRangeChange,eventBus:(0,dh.J7)()}))))))))}function Np(de){var L,_e;const mn=Eo.getLayout(de),vr=mn?.isDraggable();return!mn||!vr||Xh(de,mn)?{dragClass:"",dragClassCancel:""}:{dragClass:(L=mn.getDragClass)==null?void 0:L.call(mn),dragClassCancel:(_e=mn?.getDragClassCancel)==null?void 0:_e.call(mn)}}function Xh(de,L){let _e=de.parent;for(;_e&&_e!==L;){if("isDraggable"in _e.state&&_e.state.isDraggable===!1)return!0;_e=_e.parent}return!1}function Qh(de,L){if(L)return L;let _e=de.error?de.error.message:void 0;return de.errors&&(_e=de.errors.map(mn=>mn.message).join(", ")),_e}const ap=(0,xo.css)({position:"relative",width:"100%",height:"100%"}),Fp=(0,xo.css)({position:"absolute",width:"100%",height:"100%"}),Mh=de=>({ok:(0,xo.css)({color:de.colors.success.text}),pending:(0,xo.css)({color:de.colors.warning.text}),alerting:(0,xo.css)({color:de.colors.error.text})});function yv(de,L,_e){return!L||L.meta.skipDataQuery?de.state.value:_e&&_e.timeRange?_e.timeRange:de.state.value}var Ep=t(37055),x=t(58972),$=t(1173),je=t(85200),Mt=t(88895),Tn=Object.defineProperty,ur=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,ga=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,tu=(de,L,_e)=>L in de?Tn(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,ru=(de,L)=>{for(var _e in L||(L={}))ga.call(L,_e)&&tu(de,_e,L[_e]);if(Vo)for(var _e of Vo(L))ps.call(L,_e)&&tu(de,_e,L[_e]);return de},Ks=(de,L)=>ur(de,Li(L));const Xu="hideSeriesFrom",ul=(0,Ep.ZW)(Xu);function dl(de,L,_e,mn){const{overrides:vr}=_e,Qr=de,ao=vr.findIndex(ul);if(ao<0){if(L===Mt.B.ToggleSelection){const ou=Vf([Qr,...al(vr,mn)]);return Ks(ru({},_e),{overrides:[..._e.overrides,ou]})}const is=Eu(mn,Qr),_s=Vf(is);return Ks(ru({},_e),{overrides:[..._e.overrides,_s]})}const oa=Array.from(vr),[qo]=oa.splice(ao,1);if(L===Mt.B.ToggleSelection){let is=xa(qo);const _s=al(oa,mn);if(_s.length>0&&(is=is.filter(Ju=>_s.indexOf(Ju)<0)),is[0]===Qr&&is.length===1)return Ks(ru({},_e),{overrides:oa});const ou=Vf([Qr,..._s]);return Ks(ru({},_e),{overrides:[...oa,ou]})}const ha=ts(qo,Qr);return ls(ha,mn)?Ks(ru({},_e),{overrides:oa}):Ks(ru({},_e),{overrides:[...oa,ha]})}function Vf(de,L=x.PP.exclude,_e){return _e=_e??{id:"custom.hideFrom",value:{viz:!0,legend:!1,tooltip:!1}},{__systemRef:Xu,matcher:{id:$.Ct.byNames,options:{mode:L,names:de,prefix:L===x.PP.exclude?"All except:":void 0,readOnly:!0}},properties:[Ks(ru({},_e),{value:{viz:!0,legend:!1,tooltip:!1}})]}}const ts=(de,L,_e=x.PP.exclude)=>{const mn=de.properties.find(ao=>ao.id==="custom.hideFrom"),vr=xa(de),Qr=vr.findIndex(ao=>ao===L);return Qr<0?vr.push(L):vr.splice(Qr,1),Vf(vr,_e,mn)},xa=de=>{var L;const _e=(L=de.matcher.options)==null?void 0:L.names;return Array.isArray(_e)?[..._e]:[]},ls=(de,L)=>xa(de).length===Eu(L).length,Eu=(de,L)=>{const _e=new Set;for(const mn of de)for(const vr of mn.fields){if(vr.type!==Ko.PU.number)continue;const Qr=(0,on.Ct)(vr,mn,de);Qr!==L&&_e.add(Qr)}return Array.from(_e)},al=(de,L)=>{var _e;let mn=[];for(const vr of de){const Qr=vr.properties.find(ao=>ao.id==="custom.hideFrom");if(Qr!==void 0&&((_e=Qr.value)==null?void 0:_e.legend)===!0){const oa=je.sJ.get(vr.matcher.id).get(vr.matcher.options);for(const qo of L)for(const ha of qo.fields){if(ha.type!==Ko.PU.number)continue;const is=(0,on.Ct)(ha,qo,L);oa(ha,qo,L)&&mn.push(is)}}}return mn};var Tl=t(24293),Vl=Object.defineProperty,tc=Object.defineProperties,Pd=Object.getOwnPropertyDescriptors,Rc=Object.getOwnPropertySymbols,jh=Object.prototype.hasOwnProperty,bv=Object.prototype.propertyIsEnumerable,Dg=(de,L,_e)=>L in de?Vl(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Jh=(de,L)=>{for(var _e in L||(L={}))jh.call(L,_e)&&Dg(de,_e,L[_e]);if(Rc)for(var _e of Rc(L))bv.call(L,_e)&&Dg(de,_e,L[_e]);return de},tv=(de,L)=>tc(de,Pd(L));const Mm=(de,L,_e)=>{const{overrides:mn}=_e,vr=_e.overrides.findIndex(ha=>ha.matcher.id===$.Ct.byName&&ha.matcher.options===de);if(vr<0)return tv(Jh({},_e),{overrides:[..._e.overrides,Dm(de,L)]});const Qr=Array.from(mn),ao=Qr[vr],oa=ao.properties.findIndex(ha=>ha.id==="color");if(oa<0)return Qr[vr]=tv(Jh({},ao),{properties:[...ao.properties,Xv(L)]}),tv(Jh({},_e),{overrides:Qr});const qo=Array.from(ao.properties);return qo[oa]=Xv(L),Qr[vr]=tv(Jh({},ao),{properties:qo}),tv(Jh({},_e),{overrides:Qr})},Dm=(de,L)=>({matcher:{id:$.Ct.byName,options:de},properties:[Xv(L)]}),Xv=de=>({id:"color",value:{mode:Tl.Y.Fixed,fixedColor:de}});var Dh=Object.defineProperty,Im=Object.defineProperties,Lm=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable,hh=(de,L,_e)=>L in de?Dh(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,nd=(de,L)=>{for(var _e in L||(L={}))gc.call(L,_e)&&hh(de,_e,L[_e]);if(Hh)for(var _e of Hh(L))km.call(L,_e)&&hh(de,_e,L[_e]);return de},Qv=(de,L)=>Im(de,Lm(L));class Zh extends it{constructor(L){super(nd({options:{},fieldConfig:{defaults:{},overrides:[]},title:"Title",pluginId:"timeseries"},L)),this._variableDependency=new Xn(this,{statePaths:["title","options","fieldConfig"]}),this._structureRev=0,this.onTimeRangeChange=_e=>{Eo.getTimeRange(this).onTimeRangeChange({raw:{from:(0,Qt.yT)(_e.from),to:(0,Qt.yT)(_e.to)},from:(0,Qt.yT)(_e.from),to:(0,Qt.yT)(_e.to)})},this.onTitleChange=_e=>{this.setState({title:_e})},this.onDescriptionChange=_e=>{this.setState({description:_e})},this.onDisplayModeChange=_e=>{this.setState({displayMode:_e})},this.onOptionsChange=(_e,mn=!1)=>{const{fieldConfig:vr,options:Qr}=this.state,ao=mn?_e:(0,st.mergeWith)((0,st.cloneDeep)(Qr),_e,(qo,ha)=>{if((0,st.isArray)(ha))return ha}),oa=(0,tl.F)({plugin:this._plugin,currentOptions:ao,currentFieldConfig:vr,isAfterPluginChange:!1});this.setState({options:oa.options})},this.onFieldConfigChange=(_e,mn)=>{const{fieldConfig:vr,options:Qr}=this.state,ao=mn?_e:(0,st.merge)((0,st.cloneDeep)(vr),_e),oa=(0,tl.F)({plugin:this._plugin,currentOptions:Qr,currentFieldConfig:ao,isAfterPluginChange:!1});this.setState({fieldConfig:oa.fieldConfig})},this.interpolate=(_e,mn,vr)=>Eo.interpolate(this,_e,mn,vr),this.getDescription=()=>{this.publishEvent(new pt({origin:this,interaction:"panel-description-shown"}),!0);const{description:_e}=this.state;if(_e){const mn=this.interpolate(_e);return(0,lc.G)(mn)}return""},this.onCancelQuery=()=>{var _e;this.publishEvent(new pt({origin:this,interaction:"panel-cancel-query-clicked"}),!0);const mn=Eo.getData(this);(_e=mn.cancelQuery)==null||_e.call(mn)},this.onStatusMessageClick=()=>{this.publishEvent(new pt({origin:this,interaction:"panel-status-message-clicked"}),!0)},this._onSeriesColorChange=(_e,mn)=>{this.onFieldConfigChange(Mm(_e,mn,this.state.fieldConfig))},this._onSeriesVisibilityChange=(_e,mn)=>{this._dataWithFieldConfig&&this.onFieldConfigChange(dl(_e,mn,this.state.fieldConfig,this._dataWithFieldConfig.series),!0)},this._onInstanceStateChange=_e=>{this.setState({_pluginInstanceState:_e})},this._onToggleLegendSort=_e=>{const mn=this.state.options.legend;if(!mn)return;let vr=mn.sortDesc,Qr=mn.sortBy;_e!==Qr&&(vr=void 0),vr===!1?(Qr=void 0,vr=void 0):(vr=!vr,Qr=_e),this.onOptionsChange(Qv(nd({},this.state.options),{legend:Qv(nd({},mn),{sortBy:Qr,sortDesc:vr})}))},this.addActivationHandler(()=>{this._onActivate()}),L.menu&&L.menu.addActivationHandler(()=>{this.publishEvent(new pt({origin:this,interaction:"panel-menu-shown"}),!0)})}_onActivate(){this._plugin||this._loadPlugin(this.state.pluginId)}_loadPlugin(L){const _e=fe(L);if(_e)this._pluginLoaded(_e);else{const{importPanelPlugin:mn}=(0,M.o)();try{mn(L).then(vr=>this._pluginLoaded(vr))}catch(vr){this._pluginLoaded(Ig(L)),this.setState({_pluginLoadError:vr.message})}}}async _pluginLoaded(L){const{options:_e,fieldConfig:mn,title:vr,pluginVersion:Qr,_UNSAFE_customMigrationHandler:ao}=this.state,oa={title:vr,options:_e,fieldConfig:mn,id:1,type:L.meta.id,pluginVersion:Qr},qo=this._getPluginVersion(L);ao&&ao(oa,L),L.onPanelMigration&&qo!==this.state.pluginVersion&&(oa.options=await L.onPanelMigration(oa));const ha=(0,tl.F)({plugin:L,currentOptions:oa.options,currentFieldConfig:oa.fieldConfig,isAfterPluginChange:!1});if(this._plugin=L,this.setState({options:ha.options,fieldConfig:ha.fieldConfig,pluginVersion:qo}),L.meta.skipDataQuery){const is=Eo.getTimeRange(this);this._subs.add(is.subscribeToState(()=>this.forceRender()))}}_getPluginVersion(L){return L&&L.meta.info.version?L.meta.info.version:Ln.$.buildInfo.version}getPlugin(){return this._plugin}getPanelContext(){return this._panelContext||(this._panelContext=this.buildPanelContext()),this._panelContext}applyFieldConfig(L){var _e,mn,vr;const Qr=this._plugin;if(!Qr||Qr.meta.skipDataQuery||!L)return Xe;const ao=Qr.dataSupport||{alertStates:!1,annotations:!1},oa=Qr.fieldConfigRegistry,qo=(_e=this._prevData)==null?void 0:_e.series,ha=L?.series;return L.structureRev==null&&ha&&qo&&!(0,qc.J3)(ha,qo,qc.bW)&&this._structureRev++,this._dataWithFieldConfig=Qv(nd({},L),{structureRev:this._structureRev,series:(0,df.we)({data:ha,fieldConfig:this.state.fieldConfig,fieldConfigRegistry:oa,replaceVariables:this.interpolate,theme:Ln.$.theme2,timeZone:(mn=L.request)==null?void 0:mn.timezone})}),this._dataWithFieldConfig.annotations&&(this._dataWithFieldConfig.annotations=(0,df.we)({data:this._dataWithFieldConfig.annotations,fieldConfig:this.state.fieldConfig,fieldConfigRegistry:oa,replaceVariables:this.interpolate,theme:Ln.$.theme2,timeZone:(vr=L.request)==null?void 0:vr.timezone})),ao.alertStates||(this._dataWithFieldConfig.alertState=void 0),ao.annotations||(this._dataWithFieldConfig.annotations=void 0),this._dataWithFieldConfig}buildPanelContext(){const L=Sr(this),_e={eventsScope:L?L.getEventsScope():"__global_",eventBus:L?L.getEventsBus(this):(0,dh.J7)(),app:nu.Jk.Unknown,sync:()=>L?L.state.sync:uf.y.Off,onSeriesColorChange:this._onSeriesColorChange,onToggleSeriesVisibility:this._onSeriesVisibilityChange,onToggleLegendSort:this._onToggleLegendSort,onInstanceStateChange:this._onInstanceStateChange};return this.state.extendPanelContext&&this.state.extendPanelContext(this,_e),_e}}Zh.Component=kp;function Ig(de,L){const _e=new Jd.m(()=>null);return _e.meta={id:de,name:de,sort:100,type:We.QE.panel,module:"",baseUrl:"",info:{author:{name:""},description:"",links:[],logos:{large:"",small:"public/img/grafana_icon.svg"},screenshots:[],updated:"",version:""}},_e}var nv=t(38138);class wv extends it{addItem(L){this.setState({items:this.state.items?[...this.state.items,L]:[L]})}setItems(L){this.setState({items:L})}}wv.Component=rv;function rv({model:de}){const{items:L=[]}=de.useState(),_e=s.useRef(null);(0,s.useEffect)(()=>{_e.current&&_e.current.focus()},[]);const mn=vr=>vr.map(Qr=>Qr.type==="divider"?s.createElement(nv.W.Divider,{key:Qr.text}):s.createElement(nv.W.Item,{key:Qr.text,label:Qr.text,icon:Qr.iconClassName,childItems:Qr.subMenu?mn(Qr.subMenu):void 0,url:Qr.href,onClick:Qr.onClick,shortcut:Qr.shortcut}));return s.createElement(nv.W,{ref:_e},mn(L))}const Ev=4,Sv=30,Lg=8,Kh=24;class ih extends it{}ih.Component=_v;function _v({model:de}){const{body:L}=de.useState(),_e=de.parent;if(_e&&!Xf(_e)&&!rd(_e))throw new Error("SceneGridItem must be a child of SceneGridLayout or SceneGridRow");return L?s.createElement(L.Component,{model:L}):null}function rd(de){return de instanceof Sh}function Xf(de){return de instanceof zp}var sp=t(24694),kg=t.n(sp),Nm=function(de,L){if(!(de instanceof L))throw new TypeError("Cannot call a class as a function")},Fm=function(){function de(L,_e){for(var mn=0;mn<_e.length;mn++){var vr=_e[mn];vr.enumerable=vr.enumerable||!1,vr.configurable=!0,"value"in vr&&(vr.writable=!0),Object.defineProperty(L,vr.key,vr)}}return function(L,_e,mn){return _e&&de(L.prototype,_e),mn&&de(L,mn),L}}(),Bm=Object.assign||function(de){for(var L=1;L<arguments.length;L++){var _e=arguments[L];for(var mn in _e)Object.prototype.hasOwnProperty.call(_e,mn)&&(de[mn]=_e[mn])}return de},jm=function(de,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);de.prototype=Object.create(L&&L.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(de,L):de.__proto__=L)},Ng=function(de,L){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:de},Fg=function(){function de(L,_e){var mn=[],vr=!0,Qr=!1,ao=void 0;try{for(var oa=L[Symbol.iterator](),qo;!(vr=(qo=oa.next()).done)&&(mn.push(qo.value),!(_e&&mn.length===_e));vr=!0);}catch(ha){Qr=!0,ao=ha}finally{try{!vr&&oa.return&&oa.return()}finally{if(Qr)throw ao}}return mn}return function(L,_e){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return de(L,_e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_d=void 0;typeof window<"u"?_d=window:typeof self<"u"?_d=self:_d=t.g;var Bp=null,Jv=null,Zv=20,jp=_d.clearTimeout,Eh=_d.setTimeout,up=_d.cancelAnimationFrame||_d.mozCancelAnimationFrame||_d.webkitCancelAnimationFrame,Bg=_d.requestAnimationFrame||_d.mozRequestAnimationFrame||_d.webkitRequestAnimationFrame;up==null||Bg==null?(Bp=jp,Jv=function(L){return Eh(L,Zv)}):(Bp=function(L){var _e=Fg(L,2),mn=_e[0],vr=_e[1];up(mn),jp(vr)},Jv=function(L){var _e=Bg(function(){jp(mn),L()}),mn=Eh(function(){up(_e),L()},Zv);return[_e,mn]});function $m(de){var L=void 0,_e=void 0,mn=void 0,vr=void 0,Qr=void 0,ao=void 0,oa=void 0,qo=typeof document<"u"&&document.attachEvent;if(!qo){ao=function(Qu){var Sf=Qu.__resizeTriggers__,ef=Sf.firstElementChild,xc=Sf.lastElementChild,Nc=ef.firstElementChild;xc.scrollLeft=xc.scrollWidth,xc.scrollTop=xc.scrollHeight,Nc.style.width=ef.offsetWidth+1+"px",Nc.style.height=ef.offsetHeight+1+"px",ef.scrollLeft=ef.scrollWidth,ef.scrollTop=ef.scrollHeight},Qr=function(Qu){return Qu.offsetWidth!==Qu.__resizeLast__.width||Qu.offsetHeight!==Qu.__resizeLast__.height},oa=function(Qu){if(!(Qu.target.className&&typeof Qu.target.className.indexOf=="function"&&Qu.target.className.indexOf("contract-trigger")<0&&Qu.target.className.indexOf("expand-trigger")<0)){var Sf=this;ao(this),this.__resizeRAF__&&Bp(this.__resizeRAF__),this.__resizeRAF__=Jv(function(){Qr(Sf)&&(Sf.__resizeLast__.width=Sf.offsetWidth,Sf.__resizeLast__.height=Sf.offsetHeight,Sf.__resizeListeners__.forEach(function(Nc){Nc.call(Sf,Qu)}))})}};var ha=!1,is="";mn="animationstart";var _s="Webkit Moz O ms".split(" "),ou="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),Ju="";{var cl=document.createElement("fakeelement");if(cl.style.animationName!==void 0&&(ha=!0),ha===!1){for(var $l=0;$l<_s.length;$l++)if(cl.style[_s[$l]+"AnimationName"]!==void 0){Ju=_s[$l],is="-"+Ju.toLowerCase()+"-",mn=ou[$l],ha=!0;break}}}_e="resizeanim",L="@"+is+"keyframes "+_e+" { from { opacity: 0; } to { opacity: 0; } } ",vr=is+"animation: 1ms "+_e+"; "}var Sc=function(Qu){if(!Qu.getElementById("detectElementResize")){var Sf=(L||"")+".resize-triggers { "+(vr||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',ef=Qu.head||Qu.getElementsByTagName("head")[0],xc=Qu.createElement("style");xc.id="detectElementResize",xc.type="text/css",de!=null&&xc.setAttribute("nonce",de),xc.styleSheet?xc.styleSheet.cssText=Sf:xc.appendChild(Qu.createTextNode(Sf)),ef.appendChild(xc)}},Qf=function(Qu,Sf){if(qo)Qu.attachEvent("onresize",Sf);else{if(!Qu.__resizeTriggers__){var ef=Qu.ownerDocument,xc=_d.getComputedStyle(Qu);xc&&xc.position==="static"&&(Qu.style.position="relative"),Sc(ef),Qu.__resizeLast__={},Qu.__resizeListeners__=[],(Qu.__resizeTriggers__=ef.createElement("div")).className="resize-triggers";var Nc=ef.createElement("div");Nc.className="expand-trigger",Nc.appendChild(ef.createElement("div"));var Hd=ef.createElement("div");Hd.className="contract-trigger",Qu.__resizeTriggers__.appendChild(Nc),Qu.__resizeTriggers__.appendChild(Hd),Qu.appendChild(Qu.__resizeTriggers__),ao(Qu),Qu.addEventListener("scroll",oa,!0),mn&&(Qu.__resizeTriggers__.__animationListener__=function(xp){xp.animationName===_e&&ao(Qu)},Qu.__resizeTriggers__.addEventListener(mn,Qu.__resizeTriggers__.__animationListener__))}Qu.__resizeListeners__.push(Sf)}},zc=function(Qu,Sf){if(qo)Qu.detachEvent("onresize",Sf);else if(Qu.__resizeListeners__.splice(Qu.__resizeListeners__.indexOf(Sf),1),!Qu.__resizeListeners__.length){Qu.removeEventListener("scroll",oa,!0),Qu.__resizeTriggers__.__animationListener__&&(Qu.__resizeTriggers__.removeEventListener(mn,Qu.__resizeTriggers__.__animationListener__),Qu.__resizeTriggers__.__animationListener__=null);try{Qu.__resizeTriggers__=!Qu.removeChild(Qu.__resizeTriggers__)}catch{}}};return{addResizeListener:Qf,removeResizeListener:zc}}var jg=function(de){jm(L,de);function L(){var _e,mn,vr,Qr;Nm(this,L);for(var ao=arguments.length,oa=Array(ao),qo=0;qo<ao;qo++)oa[qo]=arguments[qo];return Qr=(mn=(vr=Ng(this,(_e=L.__proto__||Object.getPrototypeOf(L)).call.apply(_e,[this].concat(oa))),vr),vr.state={height:vr.props.defaultHeight||0,width:vr.props.defaultWidth||0},vr._onResize=function(){var ha=vr.props,is=ha.disableHeight,_s=ha.disableWidth,ou=ha.onResize;if(vr._parentNode){var Ju=vr._parentNode.offsetHeight||0,cl=vr._parentNode.offsetWidth||0,$l=window.getComputedStyle(vr._parentNode)||{},Sc=parseInt($l.paddingLeft,10)||0,Qf=parseInt($l.paddingRight,10)||0,zc=parseInt($l.paddingTop,10)||0,xf=parseInt($l.paddingBottom,10)||0,Qu=Ju-zc-xf,Sf=cl-Sc-Qf;(!is&&vr.state.height!==Qu||!_s&&vr.state.width!==Sf)&&(vr.setState({height:Ju-zc-xf,width:cl-Sc-Qf}),ou({height:Ju,width:cl}))}},vr._setRef=function(ha){vr._autoSizer=ha},mn),Ng(vr,Qr)}return Fm(L,[{key:"componentDidMount",value:function(){var mn=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=$m(mn),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var mn=this.props,vr=mn.children,Qr=mn.className,ao=mn.disableHeight,oa=mn.disableWidth,qo=mn.style,ha=this.state,is=ha.height,_s=ha.width,ou={overflow:"visible"},Ju={},cl=!1;return ao||(is===0&&(cl=!0),ou.height=0,Ju.height=is),oa||(_s===0&&(cl=!0),ou.width=0,Ju.width=_s),(0,s.createElement)("div",{className:Qr,ref:this._setRef,style:Bm({},ou,qo)},!cl&&vr(Ju))}}]),L}(s.PureComponent);jg.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const Um=jg;var Wm=function(de){(0,s.useEffect)(de,[])};const $g=Wm;var qh=Object.defineProperty,pc=Object.getOwnPropertySymbols,qv=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,Ov=(de,L,_e)=>L in de?qh(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Ug=(de,L)=>{for(var _e in L||(L={}))qv.call(L,_e)&&Ov(de,_e,L[_e]);if(pc)for(var _e of pc(L))Ih.call(L,_e)&&Ov(de,_e,L[_e]);return de},Ef=(de,L)=>{var _e={};for(var mn in de)qv.call(de,mn)&&L.indexOf(mn)<0&&(_e[mn]=de[mn]);if(de!=null&&pc)for(var mn of pc(de))L.indexOf(mn)<0&&Ih.call(de,mn)&&(_e[mn]=de[mn]);return _e};function Wg(){var de;const L=(0,s.useRef)(void 0);return(de=L.current)!=null||(L.current=(0,st.uniqueId)()),L.current}const ph=s.forwardRef((de,L)=>{var _e=de,{children:mn,onLoad:vr,onChange:Qr}=_e,ao=Ef(_e,["children","onLoad","onChange"]);const oa=Wg(),[qo,ha]=(0,s.useState)(!1),[is,_s]=(0,s.useState)(!1),ou=(0,s.useRef)(null);return(0,s.useImperativeHandle)(L,()=>ou.current),$g(()=>{ph.addCallback(oa,cl=>{!qo&&cl.isIntersecting&&(ha(!0),vr?.()),_s(cl.isIntersecting),Qr?.(cl.isIntersecting)});const Ju=ou.current;return Ju&&ph.observer.observe(Ju),()=>{delete ph.callbacks[oa],Ju&&ph.observer.unobserve(Ju),Object.keys(ph.callbacks).length===0&&ph.observer.disconnect()}}),s.createElement("div",Ug({id:oa,ref:ou},ao),qo&&(typeof mn=="function"?mn({isInView:is}):mn))});ph.displayName="LazyLoader",ph.callbacks={},ph.addCallback=(de,L)=>ph.callbacks[de]=L,ph.observer=new IntersectionObserver(de=>{for(const L of de)ph.callbacks[L.target.id](L)},{rootMargin:"100px"});var $p=t(18348),lp=Object.defineProperty,zm=Object.defineProperties,Vm=Object.getOwnPropertyDescriptors,iv=Object.getOwnPropertySymbols,zg=Object.prototype.hasOwnProperty,Vg=Object.prototype.propertyIsEnumerable,eg=(de,L,_e)=>L in de?lp(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Up=(de,L)=>{for(var _e in L||(L={}))zg.call(L,_e)&&eg(de,_e,L[_e]);if(iv)for(var _e of iv(L))Vg.call(L,_e)&&eg(de,_e,L[_e]);return de},Cv=(de,L)=>zm(de,Vm(L)),Hg=(de,L)=>{var _e={};for(var mn in de)zg.call(de,mn)&&L.indexOf(mn)<0&&(_e[mn]=de[mn]);if(de!=null&&iv)for(var mn of iv(de))L.indexOf(mn)<0&&Vg.call(de,mn)&&(_e[mn]=de[mn]);return _e};function Hm({model:de}){const{children:L,isLazy:_e,isDraggable:mn,isResizable:vr}=de.useState();return Km(L),s.createElement(Um,{disableHeight:!0},({width:Qr})=>{if(Qr===0)return null;const ao=de.buildGridLayout(Qr);return s.createElement("div",{style:{width:`${Qr}px`,height:"100%",position:"relative",zIndex:1},className:"scene-grid-layout"},s.createElement(kg(),{width:Qr,isDraggable:mn&&Qr>768,isResizable:vr??!1,containerPadding:[0,0],useCSSTransforms:!1,margin:[Lg,Lg],cols:Kh,rowHeight:Sv,draggableHandle:`.grid-drag-handle-${de.state.key}`,draggableCancel:".grid-drag-cancel",layout:ao,onDragStop:de.onDragStop,onResizeStop:de.onResizeStop,onLayoutChange:de.onLayoutChange,isBounded:!1,resizeHandle:s.createElement(xv,null)},ao.map((oa,qo)=>s.createElement(Kg,{key:oa.i,grid:de,layoutItem:oa,index:qo,isLazy:_e,totalCount:ao.length}))))})}const Kg=s.forwardRef((de,L)=>{var _e;const mn=de,{grid:vr,layoutItem:Qr,index:ao,totalCount:oa,isLazy:qo,style:ha,onLoad:is,onChange:_s,children:ou}=mn,Ju=Hg(mn,["grid","layoutItem","index","totalCount","isLazy","style","onLoad","onChange","children"]),cl=vr.getSceneLayoutChild(Qr.i),$l=(_e=cl.getClassName)==null?void 0:_e.call(cl),Sc=(0,Ji.$j)(),Qf=(0,s.useRef)(0),[zc,xf]=(0,s.useReducer)(dp=>dp+1,0),Qu=(0,s.useCallback)(()=>(Qf.current+=1,xf(),()=>{Qf.current-=1,xf()}),[xf]),Sf=(0,s.useMemo)(()=>({boostZIndex:Qu}),[Qu]),ef=oa-ao,xc=s.createElement(cl.Component,{model:cl,key:cl.state.key}),Nc=$p.N?s.createElement($p.N.Provider,{value:Sf},xc):xc,Hd=Cv(Up({},ha),{zIndex:Qf.current===0?ef:Sc.zIndex.dropdown});return qo?s.createElement(ph,Cv(Up({},Ju),{key:cl.state.key,"data-griditem-key":cl.state.key,className:(0,xo.cx)($l,de.className),style:Hd,ref:L}),Nc,ou):s.createElement("div",Cv(Up({},Ju),{ref:L,key:cl.state.key,"data-griditem-key":cl.state.key,className:(0,xo.cx)($l,de.className),style:Hd}),Nc,ou)});Kg.displayName="GridItemWrapper";function Km(de){if(de.some(L=>L.state.height===void 0||L.state.width===void 0||L.state.x===void 0||L.state.y===void 0))throw new Error("All children must have a size specified")}const xv=s.forwardRef((de,L)=>{var _e=de,mn=Hg(_e,["handleAxis"]);const vr=(0,Ji.of)(Gm);return s.createElement("div",Cv(Up({ref:L},mn),{className:`${vr} scene-resize-handle`}),s.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M21 15L15 21M21 8L8 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))});xv.displayName="ResizeHandle";function Gm(de){return(0,xo.css)({position:"absolute",bottom:0,right:0,zIndex:999,padding:de.spacing(1.5,0,0,1.5),color:de.colors.border.strong,cursor:"se-resize","&:hover":{color:de.colors.text.link},svg:{display:"block"},".react-resizable-hide &":{display:"none"}})}var tg=Object.defineProperty,Av=Object.defineProperties,Ym=Object.getOwnPropertyDescriptors,Wp=Object.getOwnPropertySymbols,Zd=Object.prototype.hasOwnProperty,oh=Object.prototype.propertyIsEnumerable,Gg=(de,L,_e)=>L in de?tg(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Pv=(de,L)=>{for(var _e in L||(L={}))Zd.call(L,_e)&&Gg(de,_e,L[_e]);if(Wp)for(var _e of Wp(L))oh.call(L,_e)&&Gg(de,_e,L[_e]);return de},ng=(de,L)=>Av(de,Ym(L));const cp=class extends it{constructor(de){super(ng(Pv({},de),{children:ig(de.children)})),this._skipOnLayoutChange=!1,this.onLayoutChange=L=>{if(this._skipOnLayoutChange){this._skipOnLayoutChange=!1;return}for(const _e of L){const mn=this.getSceneLayoutChild(_e.i),vr={x:_e.x,y:_e.y,width:_e.w,height:_e.h};rg(mn.state,vr)||mn.setState(Pv({},vr))}this.setState({children:ig(this.state.children)})},this.onResizeStop=(L,_e,mn)=>{this.getSceneLayoutChild(mn.i).setState({width:mn.w,height:mn.h})},this.onDragStop=(L,_e,mn)=>{const vr=this.getSceneLayoutChild(mn.i);L=Tv(L);for(let qo=0;qo<L.length;qo++){const ha=L[qo],is=this.getSceneLayoutChild(ha.i),_s=is.state;(_s?.x!==ha.x||_s?.y!==ha.y)&&is.setState({x:ha.x,y:ha.y})}const Qr=L.findIndex(qo=>qo.i===mn.i),ao=this.findGridItemSceneParent(L,Qr-1);let oa=this.state.children;ao!==vr.parent&&(oa=this.moveChildTo(vr,ao)),this.setState({children:ig(oa)}),this._skipOnLayoutChange=!0}}isDraggable(){var de;return(de=this.state.isDraggable)!=null?de:!1}getDragClass(){return`grid-drag-handle-${this.state.key}`}getDragClassCancel(){return"grid-drag-cancel"}toggleRow(de){var L,_e;if(!de.state.isCollapsed){de.setState({isCollapsed:!0}),this.setState({});return}const vr=de.state.children;if(vr.length===0){de.setState({isCollapsed:!1}),this.setState({});return}const Qr=de.state.y,oa=((L=vr[0].state.y)!=null?L:Qr)-(Qr+1);let qo=Qr;for(const is of vr){const _s=Pv({},is.state);_s.y=(_e=_s.y)!=null?_e:Qr,_s.y-=oa,_s.y!==is.state.y&&is.setState(_s),qo=Math.max(qo,Number(_s.y)+Number(_s.height))}const ha=qo-Qr-1;for(const is of this.state.children)if(is.state.y>Qr&&this.pushChildDown(is,ha),rd(is)&&is!==de)for(const _s of is.state.children)_s.state.y>Qr&&this.pushChildDown(_s,ha);de.setState({isCollapsed:!1}),this.setState({})}getSceneLayoutChild(de){for(const L of this.state.children){if(L.state.key===de)return L;if(L instanceof Sh){for(const _e of L.state.children)if(_e.state.key===de)return _e}}throw new Error("Scene layout child not found for GridItem")}pushChildDown(de,L){de.setState({y:de.state.y+L})}findGridItemSceneParent(de,L){for(let _e=L;_e>=0;_e--){const mn=de[_e],vr=this.getSceneLayoutChild(mn.i);if(vr instanceof Sh)return vr.state.isCollapsed?this:vr}return this}moveChildTo(de,L){const _e=de.parent;let mn=this.state.children;const vr=de.clone({key:de.state.key});if(_e instanceof Sh){const Qr=_e.clone({children:_e.state.children.filter(ao=>ao.state.key!==de.state.key)});if(mn=mn.map(ao=>ao===_e?Qr:ao),L instanceof Sh){const ao=L.clone({children:[...L.state.children,vr]});mn=mn.map(oa=>oa===L?ao:oa)}else mn=[...mn,vr]}else if(!(L instanceof cp)){mn=mn.filter(ao=>ao.state.key!==de.state.key);const Qr=L.clone({children:[...L.state.children,vr]});mn=mn.map(ao=>ao===L?Qr:ao)}return mn}toGridCell(de){var L,_e;const mn=de.state;let vr=(L=mn.x)!=null?L:0,Qr=(_e=mn.y)!=null?_e:0;const ao=Number.isInteger(Number(mn.width))?Number(mn.width):Ev,oa=Number.isInteger(Number(mn.height))?Number(mn.height):Ev;let qo=de.state.isDraggable,ha=de.state.isResizable;return de instanceof Sh&&(qo=!!de.state.isCollapsed,ha=!1),{i:de.state.key,x:vr,y:Qr,h:oa,w:ao,isResizable:ha,isDraggable:qo}}buildGridLayout(de){let L=[];for(const _e of this.state.children)if(L.push(this.toGridCell(_e)),_e instanceof Sh&&!_e.state.isCollapsed)for(const mn of _e.state.children)L.push(this.toGridCell(mn));return L=Tv(L),de<768?(this._skipOnLayoutChange=!0,L.map(_e=>ng(Pv({},_e),{w:24}))):(this._skipOnLayoutChange=!1,L)}};let zp=cp;zp.Component=Hm;function rg(de,L){return de.x===L.x&&de.y===L.y&&de.width===L.width&&de.height===L.height}function ig(de){return[...de].sort((L,_e)=>L.state.y-_e.state.y||L.state.x-_e.state.x)}function Tv(de){return[...de].sort((L,_e)=>L.y-_e.y||L.x-_e.x)}var Xm=Object.defineProperty,Qm=Object.defineProperties,Jm=Object.getOwnPropertyDescriptors,og=Object.getOwnPropertySymbols,Yg=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable,ov=(de,L,_e)=>L in de?Xm(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,Xg=(de,L)=>{for(var _e in L||(L={}))Yg.call(L,_e)&&ov(de,_e,L[_e]);if(og)for(var _e of og(L))Zm.call(L,_e)&&ov(de,_e,L[_e]);return de},qm=(de,L)=>Qm(de,Jm(L));class Sh extends it{constructor(L){super(qm(Xg({children:L.children||[],isCollapsible:L.isCollapsible||!0,title:L.title||""},L),{x:0,height:1,width:Kh})),this.onCollapseToggle=()=>{this.state.isCollapsible&&this.getGridLayout().toggleRow(this)}}getGridLayout(){const L=this.parent;if(!L||!(L instanceof zp))throw new Error("SceneGridRow must be a child of SceneGridLayout");return L}getUrlState(){return{rowc:this.state.isCollapsed?"1":"0"}}updateFromUrl(L){L.rowc!=null&&L.rowc!==this.getUrlState().rowc&&this.onCollapseToggle()}}Sh.Component=e0;function e0({model:de}){const L=(0,Ji.of)(Qg),{isCollapsible:_e,isCollapsed:mn,title:vr,isDraggable:Qr,actions:ao}=de.useState(),oa=de.getGridLayout().getDragClass();return s.createElement("div",{className:(0,xo.cx)(L.row,mn&&L.rowCollapsed)},s.createElement("button",{onClick:de.onCollapseToggle,className:L.rowTitleButton,"aria-label":mn?"Expand row":"Collapse row"},_e&&s.createElement(Vu.I,{name:mn?"angle-right":"angle-down"}),s.createElement("span",{className:L.rowTitle,role:"heading"},Eo.interpolate(de,vr,void 0,"text"))),ao&&s.createElement(ao.Component,{model:ao}),Qr&&mn&&s.createElement("div",{className:(0,xo.cx)(L.dragHandle,oa)},s.createElement(Vu.I,{name:"draggabledots"})))}const Qg=de=>({row:(0,xo.css)({width:"100%",height:"30px",display:"flex",justifyContent:"space-between",gap:de.spacing(1)}),rowTitleButton:(0,xo.css)({display:"flex",alignItems:"center",cursor:"pointer",background:"transparent",border:"none",gap:de.spacing(1)}),rowCollapsed:(0,xo.css)({borderBottom:`1px solid ${de.colors.border.weak}`}),rowTitle:(0,xo.css)({fontSize:de.typography.h5.fontSize,fontWeight:de.typography.fontWeightMedium}),collapsedInfo:(0,xo.css)({fontSize:de.typography.bodySmall.fontSize,color:de.colors.text.secondary,display:"flex",alignItems:"center",flexGrow:1}),dragHandle:(0,xo.css)({display:"flex",padding:de.spacing(0,1),alignItems:"center",justifyContent:"flex-end",cursor:"move",color:de.colors.text.secondary,"&:hover":{color:de.colors.text.primary}})});class Jg extends it{constructor(){super(...arguments),this.onToggle=()=>{this.setState({isCollapsed:!this.state.isCollapsed})},this.onRemove=()=>{const L=this.parent;Zg(L)&&L.setState({body:void 0})}}}Jg.Component=t0;function t0({model:de}){const{title:L,isCollapsed:_e,canCollapse:mn,canRemove:vr,body:Qr,controls:ao}=de.useState(),oa=(0,Ji.of)(Qg),qo=(0,Ji.of)(ag),ha=(ao??[]).map(is=>s.createElement(is.Component,{key:is.state.key,model:is}));return vr&&ha.push(s.createElement(Ia.I,{icon:"times",variant:"default",onClick:de.onRemove,key:"remove-button","aria-label":"Remove scene"})),s.createElement("div",{className:qo.wrapper},s.createElement("div",{className:(0,xo.cx)(qo.row,_e&&qo.rowCollapsed)},s.createElement("button",{onClick:de.onToggle,className:oa.rowTitleButton,"aria-label":_e?"Expand scene":"Collapse scene"},mn&&s.createElement(Vu.I,{name:_e?"angle-right":"angle-down"}),s.createElement("span",{className:oa.rowTitle,role:"heading"},Eo.interpolate(de,L,void 0,"text"))),s.createElement("div",{className:qo.actions},ha)),!_e&&s.createElement(Qr.Component,{model:Qr}))}const ag=de=>({wrapper:(0,xo.css)({display:"flex",flexDirection:"column",flexGrow:1,gap:de.spacing(1),cursor:"pointer"}),row:(0,xo.css)({width:"100%",display:"flex",justifyContent:"space-between",gap:de.spacing(1)}),rowCollapsed:(0,xo.css)({borderBottom:`1px solid ${de.colors.border.weak}`,paddingBottom:de.spacing(1)}),actions:(0,xo.css)({display:"flex",alignItems:"center",gap:de.spacing(1),justifyContent:"flex-end",flexGrow:1})});function Zg(de){return"body"in de.state}class qg extends it{constructor(){super(...arguments),this._variableDependency=new Xn(this,{statePaths:["text"]})}}qg.Component=({model:de})=>{const{text:L,fontSize:_e=20,align:mn="left",key:vr,spacing:Qr}=de.useState(),ao=(0,Ji.$j)(),oa=(0,xo.css)({fontSize:_e,display:"flex",flexGrow:1,alignItems:"center",padding:Qr?ao.spacing(Qr,0):void 0,justifyContent:mn});return s.createElement("div",{className:oa,"data-testid":vr},Eo.interpolate(de,L))};var sg=t(10354);class n0 extends it{}n0.Component=({model:de})=>{const L=de.useState();return s.createElement(Ia.I,{onClick:L.onClick,icon:L.icon})};class r0 extends it{}r0.Component=({model:de})=>{const L=de.useState();return s.createElement("div",{style:{display:"flex"}},L.label&&s.createElement(_c,{label:L.label}),s.createElement(sg.p,{defaultValue:L.value,width:8,onBlur:_e=>{de.state.onChange(parseInt(_e.currentTarget.value,10))}}))};var em=t(15666);class tm extends it{constructor(){super(...arguments),this.onZoom=()=>{const L=Eo.getTimeRange(this),_e=o0(L.state.value,2);L.onTimeRangeChange(_e)},this.onChangeFiscalYearStartMonth=L=>{Eo.getTimeRange(this).setState({fiscalYearStartMonth:L})},this.onMoveBackward=()=>{const L=Eo.getTimeRange(this),{state:{value:_e}}=L;L.onTimeRangeChange(ah(ug.Backward,_e,Date.now()))},this.onMoveForward=()=>{const L=Eo.getTimeRange(this),{state:{value:_e}}=L;L.onTimeRangeChange(ah(ug.Forward,_e,Date.now()))}}}tm.Component=i0;function i0({model:de}){const{hidePicker:L,isOnCanvas:_e}=de.useState(),mn=Eo.getTimeRange(de),vr=mn.getTimeZone(),Qr=mn.useState();return L?null:s.createElement(em.$6,{isOnCanvas:_e??!0,value:Qr.value,onChange:mn.onTimeRangeChange,timeZone:vr,fiscalYearStartMonth:Qr.fiscalYearStartMonth,onMoveBackward:de.onMoveBackward,onMoveForward:de.onMoveForward,onZoom:de.onZoom,onChangeTimeZone:mn.onTimeZoneChange,onChangeFiscalYearStartMonth:de.onChangeFiscalYearStartMonth})}function o0(de,L){const _e=de.to.valueOf()-de.from.valueOf(),mn=de.to.valueOf()-_e/2,vr=_e===0?3e4:_e*L,Qr=mn+vr/2,ao=mn-vr/2;return{from:(0,Qt.yT)(ao),to:(0,Qt.yT)(Qr),raw:{from:(0,Qt.yT)(ao),to:(0,Qt.yT)(Qr)}}}var ug=(de=>(de[de.Backward=0]="Backward",de[de.Forward=1]="Forward",de))(ug||{});function ah(de,L,_e){const mn=L.to.valueOf(),vr=L.from.valueOf(),Qr=(mn-vr)/2;let ao,oa;de===0?(ao=vr-Qr,oa=mn-Qr):(ao=vr+Qr,oa=mn+Qr,oa>_e&&mn<_e&&(oa=_e,ao=vr));const qo=(0,Qt.yT)(ao),ha=(0,Qt.yT)(oa);return{from:qo,to:ha,raw:{from:qo,to:ha}}}var a0=t(11134),s0=Object.defineProperty,u0=Object.defineProperties,l0=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable,rm=(de,L,_e)=>L in de?s0(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,d0=(de,L)=>{for(var _e in L||(L={}))c0.call(L,_e)&&rm(de,_e,L[_e]);if(nm)for(var _e of nm(L))f0.call(L,_e)&&rm(de,_e,L[_e]);return de},h0=(de,L)=>u0(de,l0(L));const p0=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"];class av extends it{constructor(L){var _e;super(h0(d0({refresh:""},L),{intervals:(_e=L.intervals)!=null?_e:p0})),this._urlSync=new Dt(this,{keys:["refresh"]}),this.onRefresh=()=>{const mn=Eo.getQueryController(this);if(mn?.state.isRunning){mn.cancelAll();return}const vr=Eo.getTimeRange(this);this._intervalTimer&&clearInterval(this._intervalTimer),vr.onRefresh(),this.setupIntervalTimer()},this.onIntervalChanged=mn=>{this.setState({refresh:mn}),this.setupIntervalTimer()},this.setupIntervalTimer=()=>{const mn=Eo.getTimeRange(this),{refresh:vr,intervals:Qr}=this.state;if((this._intervalTimer||vr==="")&&clearInterval(this._intervalTimer),vr===""||Qr&&!Qr.includes(vr))return;const ao=Is.intervalToMs(vr);this._intervalTimer=setInterval(()=>{mn.onRefresh()},ao)},this.addActivationHandler(()=>(this.setupIntervalTimer(),()=>{this._intervalTimer&&clearInterval(this._intervalTimer)}))}getUrlState(){return{refresh:this.state.refresh}}updateFromUrl(L){const _e=L.refresh;_e&&typeof _e=="string"&&this.setState({refresh:_e})}}av.Component=lg;function lg({model:de}){const{refresh:L,intervals:_e,isOnCanvas:mn,primary:vr,withText:Qr}=de.useState(),ao=im(de);let oa=Qr?"Refresh":void 0,qo;return ao&&(qo="Cancel all queries",Qr&&(oa="Cancel")),s.createElement(a0.cC,{value:L,intervals:_e,tooltip:qo,text:oa,onRefresh:de.onRefresh,primary:vr,onIntervalChanged:de.onIntervalChanged,isLoading:ao,isOnCanvas:mn??!0})}function im(de){const L=Eo.getQueryController(de);return L?L.useState().isRunning:!1}class vh extends it{constructor(L){super(L),this.addActivationHandler(()=>{const _e=Eo.getData(this);this._subs.add(_e.subscribeToState(mn=>{var vr;((vr=mn.data)==null?void 0:vr.state)===Rf.Gu.Done&&this.performRepeat(mn.data)})),_e.state.data&&this.performRepeat(_e.state.data)})}performRepeat(L){const _e=[];for(let mn=0;mn<L.series.length;mn++){const vr=this.state.getLayoutChild(L,L.series[mn],mn);_e.push(vr)}this.state.body.setState({children:_e})}}vh.Component=({model:de})=>{const{body:L}=de.useState();return s.createElement(L.Component,{model:L})};class zd extends it{constructor(L){super(L),this._variableDependency=new Xn(this,{variableNames:[this.state.variableName],onVariableUpdateCompleted:()=>this.performRepeat()}),this.addActivationHandler(()=>this.performRepeat())}performRepeat(){if(this._variableDependency.hasDependencyInLoadingState())return;const L=Eo.lookupVariable(this.state.variableName,this);if(!(L instanceof Zo)){console.error("SceneByVariableRepeater: variable is not a MultiValueVariable");return}const _e=ep(L),mn=[];for(const vr of _e){const Qr=this.state.getLayoutChild(vr);mn.push(Qr)}this.state.body.setState({children:mn})}}zd.Component=({model:de})=>{const{body:L}=de.useState();return s.createElement(L.Component,{model:L})};function ep(de){const{value:L,text:_e,options:mn}=de.state;return de.hasAllValue()?mn:Array.isArray(L)&&Array.isArray(_e)?L.map((vr,Qr)=>({value:vr,label:_e[Qr]})):[{value:L,label:_e}]}const cg=class extends it{constructor(){super({})}get Component(){return cg.Component}};let fg=cg;fg.Component=de=>s.createElement("div",{style:{flexGrow:1}});class dg extends it{toggleDirection(){this.setState({direction:this.state.direction==="row"?"column":"row"})}isDraggable(){return!1}}dg.Component=v0;function v0({model:de,parentState:L}){const{children:_e,isHidden:mn}=de.useState(),vr=am(de.state,L);return mn?null:s.createElement("div",{className:vr},_e.map(Qr=>{const ao=Qr.Component;return s.createElement(ao,{key:Qr.state.key,model:Qr,parentState:de.state})}))}class Rv extends it{}Rv.Component=hg;function hg({model:de,parentState:L}){if(!L)throw new Error("SceneFlexItem must be a child of SceneFlexLayout");const{body:_e,isHidden:mn}=de.useState(),vr=g0(de.state,L);return!_e||mn?null:s.createElement("div",{className:vr},s.createElement(_e.Component,{model:_e}))}function om(de,L,_e){var mn,vr,Qr;const ao=(mn=_e.direction)!=null?mn:"row",{xSizing:oa="fill",ySizing:qo="fill"}=L;return de.display="flex",de.position="relative",de.flexDirection=ao,ao==="column"?(L.height?de.height=L.height:de.flexGrow=qo==="fill"?1:0,L.width?de.width=L.width:de.alignSelf=oa==="fill"?"stretch":"flex-start"):(L.height?de.height=L.height:de.alignSelf=qo==="fill"?"stretch":"flex-start",L.width?de.width=L.width:de.flexGrow=oa==="fill"?1:0),de.minWidth=L.minWidth,de.maxWidth=L.maxWidth,de.maxHeight=L.maxHeight,de.minHeight=(vr=L.minHeight)!=null?vr:_e.minHeight,de.height=(Qr=L.height)!=null?Qr:_e.height,de}function g0(de,L){return(0,s.useMemo)(()=>{var _e,mn,vr,Qr,ao,oa,qo,ha,is,_s;const ou=Ln.$.theme2,Ju=om({},de,L);return Ju[ou.breakpoints.down("md")]={maxWidth:(mn=(_e=de.md)==null?void 0:_e.maxWidth)!=null?mn:"unset",maxHeight:(Qr=(vr=de.md)==null?void 0:vr.maxHeight)!=null?Qr:"unset",height:(qo=(ao=de.md)==null?void 0:ao.height)!=null?qo:(oa=L.md)==null?void 0:oa.height,width:(_s=(ha=de.md)==null?void 0:ha.width)!=null?_s:(is=L.md)==null?void 0:is.width},(0,xo.css)(Ju)},[de,L])}function am(de,L){return(0,s.useMemo)(()=>{var _e,mn,vr,Qr,ao,oa,qo,ha,is,_s;const{direction:ou="row",wrap:Ju}=de,cl=Ln.$.theme2,$l={};return L?om($l,de,L):($l.display="flex",$l.flexGrow=1),$l.flexDirection=ou,$l.gap="8px",$l.flexWrap=Ju||"nowrap",$l.alignContent="baseline",$l.minHeight=$l.minHeight||0,$l[cl.breakpoints.down("md")]={flexDirection:(mn=(_e=de.md)==null?void 0:_e.direction)!=null?mn:"column",maxWidth:(Qr=(vr=de.md)==null?void 0:vr.maxWidth)!=null?Qr:"unset",maxHeight:(oa=(ao=de.md)==null?void 0:ao.maxHeight)!=null?oa:"unset",height:(ha=(qo=de.md)==null?void 0:qo.height)!=null?ha:"unset",width:(_s=(is=de.md)==null?void 0:is.width)!=null?_s:"unset"},(0,xo.css)($l)},[L,de])}var _h=Object.defineProperty,Mv=Object.getOwnPropertySymbols,m0=Object.prototype.hasOwnProperty,y0=Object.prototype.propertyIsEnumerable,sm=(de,L,_e)=>L in de?_h(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,b0=(de,L)=>{for(var _e in L||(L={}))m0.call(L,_e)&&sm(de,_e,L[_e]);if(Mv)for(var _e of Mv(L))y0.call(L,_e)&&sm(de,_e,L[_e]);return de};class Dv extends it{constructor(L){var _e,mn;super(b0({rowGap:1,columnGap:1,templateColumns:"repeat(auto-fit, minmax(400px, 1fr))",autoRows:(_e=L.autoRows)!=null?_e:"320px",children:(mn=L.children)!=null?mn:[]},L))}isDraggable(){return!1}}Dv.Component=w0;function w0({model:de}){const{children:L,isHidden:_e,isLazy:mn}=de.useState(),vr=S0(de.state);return _e?null:s.createElement("div",{className:vr},L.map(Qr=>{const ao=Qr.Component;return mn?s.createElement(ph,{key:Qr.state.key,className:vr},s.createElement(ao,{key:Qr.state.key,model:Qr,parentState:de.state})):s.createElement(ao,{key:Qr.state.key,model:Qr,parentState:de.state})}))}class Iv extends it{}Iv.Component=E0;function E0({model:de,parentState:L}){if(!L)throw new Error("SceneCSSGridItem must be a child of SceneCSSGridLayout");const{body:_e,isHidden:mn}=de.useState(),vr=Lv(de.state);return!_e||mn?null:s.createElement("div",{className:vr},s.createElement(_e.Component,{model:_e}))}function S0(de){return(0,s.useMemo)(()=>{var L,_e,mn,vr,Qr,ao,oa,qo,ha,is,_s;const ou={},Ju=Ln.$.theme2;return ou.display="grid",ou.gridTemplateColumns=de.templateColumns,ou.gridTemplateRows=de.templateRows||"unset",ou.gridAutoRows=de.autoRows||"unset",ou.rowGap=Ju.spacing((L=de.rowGap)!=null?L:1),ou.columnGap=Ju.spacing((_e=de.columnGap)!=null?_e:1),ou.justifyItems=de.justifyItems||"unset",ou.alignItems=de.alignItems||"unset",ou.justifyContent=de.justifyContent||"unset",ou.flexGrow=1,de.md&&(ou[Ju.breakpoints.down("md")]={gridTemplateRows:(mn=de.md)==null?void 0:mn.templateRows,gridTemplateColumns:(vr=de.md)==null?void 0:vr.templateColumns,rowGap:de.md.rowGap?Ju.spacing((ao=(Qr=de.md)==null?void 0:Qr.rowGap)!=null?ao:1):void 0,columnGap:de.md.columnGap?Ju.spacing((qo=(oa=de.md)==null?void 0:oa.rowGap)!=null?qo:1):void 0,justifyItems:(ha=de.md)==null?void 0:ha.justifyItems,alignItems:(is=de.md)==null?void 0:is.alignItems,justifyContent:(_s=de.md)==null?void 0:_s.justifyContent}),(0,xo.css)(ou)},[de])}function Lv(de){return(0,s.useMemo)(()=>{const L={};return L.gridColumn=de.gridColumn||"unset",L.gridRow=de.gridRow||"unset",L.position="relative",(0,xo.css)(L)},[de])}var Vp=Object.defineProperty,pg=Object.getOwnPropertySymbols,_0=Object.prototype.hasOwnProperty,O0=Object.prototype.propertyIsEnumerable,Sp=(de,L,_e)=>L in de?Vp(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,_p=(de,L)=>{for(var _e in L||(L={}))_0.call(L,_e)&&Sp(de,_e,L[_e]);if(pg)for(var _e of pg(L))O0.call(L,_e)&&Sp(de,_e,L[_e]);return de};const vg=.3,gg=new Set(["ArrowUp","ArrowDown"]),um=new Set(["ArrowLeft","ArrowRight"]),sv={row:{dim:"width",axis:"clientX",min:"minWidth",max:"maxWidth"},column:{dim:"height",axis:"clientY",min:"minHeight",max:"maxHeight"}};function lm({direction:de="row",handleSize:L=32,initialSize:_e="auto",primaryPaneStyles:mn,secondaryPaneStyles:vr,onDragFinished:Qr,children:ao}){const oa=s.Children.toArray(ao),qo=(0,s.useRef)(null),ha=(0,s.useRef)(null),is=(0,s.useRef)(null),_s=(0,s.useRef)(null),ou=(0,s.useRef)(null),Ju=(0,s.useRef)("1fr"),cl=(0,s.useRef)(void 0),$l=(0,s.useRef)(void 0),Sc=sv[de].dim,Qf=sv[de].axis,zc=sv[de].min,xf=sv[de].max;fm(_s.current,Yc=>{for(const Tp of Yc){if(!Tp.target.isSameNode(_s.current))return;const Af=ha.current.getBoundingClientRect()[Sc],ip=Op(ha.current);qo.current.ariaValueNow=`${(0,st.clamp)((Af-ip[zc])/(ip[xf]-ip[zc])*100,0,100)}`}},500,[xf,zc,de,Sc]);const Qu=(0,s.useRef)(null),Sf=(0,s.useCallback)(Yc=>{Ju.current=ha.current.getBoundingClientRect()[Sc],ou.current=_s.current.getBoundingClientRect()[Sc],Qu.current=Yc[Qf],qo.current.setPointerCapture(Yc.pointerId),cl.current=Op(ha.current),$l.current=void 0},[Sc,Qf]),ef=(0,s.useCallback)(Yc=>{if(Qu.current!==null&&Ju.current!=="1fr"){const Tp=Yc[Qf]-Qu.current,Af=cl.current,ip=(0,st.clamp)(Ju.current+Tp,Af[zc],Af[xf]),Rp=ip/(ou.current-L);ha.current.style.flexGrow=`${Rp}`,is.current.style.flexGrow=`${1-Rp}`;const Mp=(0,st.clamp)((ip-Af[zc])/(Af[xf]-Af[zc])*100,0,100);qo.current.ariaValueNow=`${Mp}`}},[L,Qf,zc,xf]),xc=(0,s.useCallback)(Yc=>{Yc.preventDefault(),Yc.stopPropagation(),qo.current.releasePointerCapture(Yc.pointerId),Qu.current=null,Qr?.(parseFloat(ha.current.style.flexGrow))},[Qr]),Nc=(0,s.useRef)(new Set),Hd=(0,s.useRef)(null),dp=(0,s.useCallback)(Yc=>{var Tp;if(Nc.current.size===0){Hd.current=null;return}else if(Ju.current==="1fr")return;const Rp=(Yc-((Tp=Hd.current)!=null?Tp:Yc))*vg;let Mp=0;de==="row"?(Nc.current.has("ArrowLeft")&&(Mp-=Rp),Nc.current.has("ArrowRight")&&(Mp+=Rp)):(Nc.current.has("ArrowUp")&&(Mp-=Rp),Nc.current.has("ArrowDown")&&(Mp+=Rp));const Uv=cl.current,gy=ha.current.getBoundingClientRect()[Sc],T0=(0,st.clamp)(gy+Mp,Uv[zc],Uv[xf]),R0=T0/(ou.current-L);ha.current.style.flexGrow=`${R0}`,is.current.style.flexGrow=`${1-R0}`;const my=(T0-Uv[zc])/(Uv[xf]-Uv[zc])*100;qo.current.ariaValueNow=`${(0,st.clamp)(my,0,100)}`,Hd.current=Yc,window.requestAnimationFrame(dp)},[de,L,zc,xf,Sc]),xp=(0,s.useCallback)(Yc=>{if(Yc.key==="Enter"){$l.current===void 0?($l.current=ha.current.style.flexGrow,ha.current.style.flexGrow="0",is.current.style.flexGrow="1"):(ha.current.style.flexGrow=$l.current,is.current.style.flexGrow=`${1-parseFloat($l.current)}`,$l.current=void 0);return}else if(Yc.key==="Home"){cl.current=Op(ha.current),ou.current=_s.current.getBoundingClientRect()[Sc];const Af=cl.current[zc]/(ou.current-L);ha.current.style.flexGrow=`${Af}`,is.current.style.flexGrow=`${1-Af}`,qo.current.ariaValueNow="0";return}else if(Yc.key==="End"){cl.current=Op(ha.current),ou.current=_s.current.getBoundingClientRect()[Sc];const Af=cl.current[xf]/(ou.current-L);ha.current.style.flexGrow=`${Af}`,is.current.style.flexGrow=`${1-Af}`,qo.current.ariaValueNow="100";return}if(!(de==="column"&&gg.has(Yc.key)||de==="row"&&um.has(Yc.key))||Nc.current.has(Yc.key))return;if($l.current=void 0,Yc.preventDefault(),Yc.stopPropagation(),Ju.current=ha.current.getBoundingClientRect()[Sc],ou.current=_s.current.getBoundingClientRect()[Sc],cl.current=Op(ha.current),!Nc.current.has(Yc.key)){const Af=Nc.current.size===0;Nc.current.add(Yc.key),Af&&window.requestAnimationFrame(dp)}},[de,dp,L,xf,Sc,zc]),$v=(0,s.useCallback)(Yc=>{de==="row"&&!um.has(Yc.key)||de==="column"&&!gg.has(Yc.key)||(Nc.current.delete(Yc.key),Qr?.(parseFloat(ha.current.style.flexGrow)))},[de,Qr]),A0=(0,s.useCallback)(()=>{ha.current.style.flexGrow="0.5",is.current.style.flexGrow="0.5";const Yc=Op(ha.current);cl.current=Yc,Ju.current=ha.current.getBoundingClientRect()[Sc],qo.current.ariaValueNow=`${(Ju.current-Yc[zc])/(Yc[xf]-Yc[zc])*100}`},[xf,Sc,zc]),Ap=(0,s.useCallback)(()=>{Nc.current.size>0&&(Nc.current.clear(),Qu.current=null,Qr?.(parseFloat(ha.current.style.flexGrow)))},[Qr]),Pp=(0,Ji.of)(cm),Gp=Wg(),P0=oa.length===2?"visible":"hidden";return s.createElement("div",{ref:_s,className:Pp.container,style:{flexDirection:de}},s.createElement("div",{ref:ha,className:Pp.panel,style:_p({flexGrow:_e==="auto"?.5:(0,st.clamp)(_e,0,1),[zc]:"min-content"},mn),id:`start-panel-${Gp}`},oa[0]),oa[1]&&s.createElement(s.Fragment,null,s.createElement("div",{ref:qo,style:{[Sc]:`${L}px`},className:(0,xo.cx)(Pp.handle,{[Pp.handleHorizontal]:de==="column"}),onPointerUp:xc,onPointerDown:Sf,onPointerMove:ef,onKeyDown:xp,onKeyUp:$v,onDoubleClick:A0,onBlur:Ap,role:"separator","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":50,"aria-controls":`start-panel-${Gp}`,"aria-label":"Pane resize widget",tabIndex:0}),s.createElement("div",{ref:is,className:Pp.panel,style:_p({flexGrow:_e==="auto"?.5:(0,st.clamp)(1-_e,0,1),[zc]:"min-content",visibility:`${P0}`},vr),id:`end-panel-${Gp}`},oa[1])))}function cm(de){return{handle:(0,xo.css)({cursor:"col-resize",position:"relative",flexShrink:0,userSelect:"none","&::before":{content:'""',position:"absolute",backgroundColor:de.colors.primary.main,left:"50%",transform:"translate(-50%)",top:0,height:"100%",width:"1px",opacity:0,transition:"opacity ease-in-out 0.2s"},"&::after":{content:'""',width:"4px",borderRadius:"4px",backgroundColor:de.colors.border.weak,transition:"background-color ease-in-out 0.2s",height:"50%",top:"calc(50% - (50%) / 2)",transform:"translateX(-50%)",position:"absolute",left:"50%"},"&:hover, &:focus-visible":{outline:"none","&::before":{opacity:1},"&::after":{backgroundColor:de.colors.primary.main}}}),handleHorizontal:(0,xo.css)({cursor:"row-resize","&::before":{left:"inherit",transform:"translateY(-50%)",top:"50%",height:"1px",width:"100%"},"&::after":{width:"50%",height:"4px",top:"50%",transform:"translateY(-50%)",left:"calc(50% - (50%) / 2)"}}),container:(0,xo.css)({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),panel:(0,xo.css)({display:"flex",position:"relative",flexBasis:0})}}function Op(de){if(de===null)return;const L=document.body.style.overflow,_e=de.style.width,mn=de.style.height,vr=de.style.flexGrow;document.body.style.overflow="hidden",de.style.flexGrow="0";const{width:Qr,height:ao}=de.getBoundingClientRect();de.style.flexGrow="100";const{width:oa,height:qo}=de.getBoundingClientRect();return document.body.style.overflow=L,de.style.width=_e,de.style.height=mn,de.style.flexGrow=vr,{minWidth:Qr,maxWidth:oa,minHeight:ao,maxHeight:qo}}function fm(de,L,_e=0,mn){const vr=(0,st.throttle)(L,_e);(0,s.useLayoutEffect)(()=>{if(!de)return;const Qr=new ResizeObserver(vr);return Qr.observe(de,{box:"device-pixel-content-box"}),()=>Qr.disconnect()},mn)}function dm({model:de}){const{primary:L,secondary:_e,direction:mn,isHidden:vr,initialSize:Qr,primaryPaneStyles:ao,secondaryPaneStyles:oa}=de.useState();if(vr)return null;const qo=L.Component,ha=_e?.Component;let is=_e?Qr:1;return s.createElement(lm,{direction:mn,initialSize:is??.5,primaryPaneStyles:ao,secondaryPaneStyles:oa},s.createElement(qo,{key:L.state.key,model:L,parentState:de.state}),ha&&_e&&s.createElement(ha,{key:_e.state.key,model:_e,parentState:de.state}))}class kv extends it{toggleDirection(){this.setState({direction:this.state.direction==="row"?"column":"row"})}isDraggable(){return!1}}kv.Component=dm;class uv extends it{enrichDataRequest(){return{app:this.state.name||"app"}}}uv.Component=({model:de})=>{const{pages:L}=de.useState();return s.createElement(m.dO,null,L.map(_e=>s.createElement(m.qh,{key:_e.state.url,exact:!1,path:_e.state.url,render:mn=>R(_e,mn)})))};const Nv=new Map;function C0(de){const L=Nv.get(de);if(L)return L;const _e=de();return Nv.set(de,_e),_e}var hm=Object.defineProperty,mg=Object.getOwnPropertySymbols,pm=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Hp=(de,L,_e)=>L in de?hm(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,$c=(de,L)=>{for(var _e in L||(L={}))pm.call(L,_e)&&Hp(de,_e,L[_e]);if(mg)for(var _e of mg(L))Hl.call(L,_e)&&Hp(de,_e,L[_e]);return de};class id extends it{}id.Component=({model:de})=>{const{component:L,props:_e,reactNode:mn}=de.useState();return L?s.createElement(L,$c({},_e)):mn||null};var Fv=t(46235),gh=t(87978),X=t(40276),Ce=t(24022);function Ft({node:de}){const L=de.useState(),_e=(0,Ji.of)(Ei);return s.createElement("div",{className:_e.container},Object.keys(L).map(mn=>s.createElement("div",{className:_e.row,key:mn},s.createElement("div",{className:_e.keyName},mn),s.createElement("div",{className:_e.value},dr(mn,L[mn],de)))))}function dr(de,L,_e){if(L===null)return"null";switch(typeof L){case"number":return s.createElement(sg.p,{type:"number",defaultValue:L,onBlur:mn=>_e.setState({[de]:mn.currentTarget.valueAsNumber})});case"string":return s.createElement(sg.p,{type:"text",defaultValue:L,onBlur:mn=>_e.setState({[de]:mn.currentTarget.value})});case"object":return te(L)?L.constructor.name:(0,st.isPlainObject)(L)||(0,st.isArray)(L)?s.createElement(Ce.B,{json:L,open:0}):String(L);default:return typeof L}}function Ei(de){return{container:(0,xo.css)({flexGrow:1,display:"flex",gap:de.spacing(.5),flexDirection:"column"}),row:(0,xo.css)({display:"flex",gap:de.spacing(2)}),keyName:(0,xo.css)({display:"flex",flexGrow:"0",width:120,alignItems:"center",height:de.spacing(de.components.height.md)}),value:(0,xo.css)({flexGrow:1,minHeight:de.spacing(de.components.height.md),display:"flex",alignItems:"center"})}}function ji({node:de,selectedObject:L,onSelect:_e}){const mn=(0,Ji.of)(Qo),vr=[],Qr=de===L;return de.forEachChild(ao=>{vr.push(s.createElement(ji,{node:ao,key:ao.state.key,selectedObject:L,onSelect:_e}))}),s.createElement("div",{className:mn.container},s.createElement("div",{className:(0,xo.cx)(mn.name,Qr&&mn.selected),onClick:()=>_e(de)},de.constructor.name),s.createElement("div",{className:mn.children},vr))}function Qo(de){return{container:(0,xo.css)({flexGrow:1,display:"flex",gap:de.spacing(.5),flexDirection:"column"}),name:(0,xo.css)({flexGrow:1,display:"flex",gap:de.spacing(1),fontSize:de.typography.bodySmall.fontSize,cursor:"pointer",padding:de.spacing(0,1),borderRadius:de.shape.borderRadius(2),position:"relative","&:hover":{background:de.colors.background.secondary}}),selected:(0,xo.css)({"&::before":{display:"block",content:"' '",position:"absolute",left:0,width:4,bottom:2,top:2,borderRadius:de.shape.radius.default,backgroundImage:de.colors.gradients.brandVertical}}),children:(0,xo.css)({flexGrow:1,display:"flex",flexDirection:"column",paddingLeft:de.spacing(1)})}}function ya({scene:de}){const L=(0,Ji.of)(Qa),[_e,mn]=(0,s.useState)(!1),[vr,Qr]=(0,s.useState)();return s.createElement(s.Fragment,null,s.createElement(Ia.I,{variant:"canvas",icon:"bug",onClick:()=>mn(!0)}),_e&&s.createElement(gh._,{title:"Scene debugger",onClose:()=>mn(!1),size:"lg"},s.createElement("div",{className:L.panes},s.createElement("div",{className:L.pane1},s.createElement("div",{className:L.paneHeading},"Scene graph"),s.createElement(X.E,{autoHeightMin:"100%"},s.createElement("div",{className:L.treeWrapper},s.createElement(ji,{node:de,selectedObject:vr,onSelect:Qr})))),s.createElement("div",{className:L.pane2},s.createElement("div",{className:L.paneHeading},"Object details"),vr&&s.createElement(Ft,{node:vr})))))}function Qa(de){return{panes:(0,xo.css)({flexGrow:1,display:"flex",height:"100%",flexDirection:"row",marginTop:de.spacing(-2)}),pane1:(0,xo.css)({flexGrow:0,display:"flex",height:"100%",flexDirection:"column",borderRight:`1px solid ${de.colors.border.weak}`}),pane2:(0,xo.css)({flexGrow:1,display:"flex",minHeight:"100%",flexDirection:"column",paddingLeft:de.spacing(2)}),treeWrapper:(0,xo.css)({paddingRight:de.spacing(2),height:"100%",marginLeft:de.spacing(-1)}),paneHeading:(0,xo.css)({padding:de.spacing(1,0),fontWeight:de.typography.fontWeightMedium})}}function js({page:de,routeProps:L}){const _e=$s(de),mn=_e.useState(),vr=S(),Qr=de.getScene(L.match),ao=mn.initializedScene===Qr;if((0,s.useLayoutEffect)(()=>{ao||_e.initializeScene(Qr)},[Qr,_e,ao]),(0,s.useEffect)(()=>()=>_e.setState({initializedScene:void 0}),[_e]),!ao)return null;const oa={text:mn.title,img:mn.titleImg,icon:mn.titleIcon,url:O(mn.url,mn.preserveUrlKeys),hideFromBreadcrumbs:mn.hideFromBreadcrumbs,parentItem:qs(mn.getParentPage?mn.getParentPage():_e.parent)};mn.tabs&&(oa.children=mn.tabs.map(ha=>({text:ha.state.title,icon:ha.state.titleIcon,tabSuffix:ha.state.tabSuffix,active:de===ha,url:O(ha.state.url,ha.state.preserveUrlKeys),parentItem:oa})));let qo=[];return mn.controls&&(qo=mn.controls.map(ha=>s.createElement(ha.Component,{model:ha,key:ha.state.key}))),vr["scene-debugger"]&&qo.push(s.createElement(ya,{scene:_e,key:"scene-debugger"})),s.createElement(Fv.V,{pageNav:oa,actions:qo,renderTitle:mn.renderTitle,subTitle:mn.subTitle},s.createElement(Qr.Component,{model:Qr}))}function $s(de){return de.parent instanceof Gu?de.parent:de}function qs(de,L){if(de instanceof Gu)return{text:de.state.title,url:O(de.state.url,de.state.preserveUrlKeys),hideFromBreadcrumbs:de.state.hideFromBreadcrumbs,parentItem:qs(de.state.getParentPage?de.state.getParentPage():de.parent)}}function Os({drilldown:de,parent:L,routeProps:_e}){return R(L.getDrilldownPage(de,_e.match),_e)}class Gu extends it{constructor(L){super(L),this._sceneCache=new Map,this._drilldownCache=new Map,this.addActivationHandler(()=>()=>Qs().cleanUp(this))}initializeScene(L){this.setState({initializedScene:L}),Qs().initSync(this)}getScene(L){let _e=this._sceneCache.get(L.url);if(_e)return _e;if(!this.state.getScene)throw new Error("Missing getScene on SceneAppPage "+this.state.title);return _e=this.state.getScene(L),this._sceneCache.set(L.url,_e),_e}getDrilldownPage(L,_e){let mn=this._drilldownCache.get(_e.url);return mn||(mn=L.getPage(_e,this),this._drilldownCache.set(_e.url,mn),mn)}enrichDataRequest(L){if(this.state.getParentPage)return this.state.getParentPage().enrichDataRequest(L);if(!this.parent)return null;const _e=this.getRoot();return Ue(_e)?_e.enrichDataRequest(L):null}}Gu.Component=hl;function hl({model:de,routeProps:L}){var _e,mn;const{tabs:vr,drilldowns:Qr}=de.useState(),ao=[];if(vr&&vr.length>0)for(let oa=0;oa<vr.length;oa++){const qo=vr[oa];if(oa===0&&ao.push(s.createElement(m.qh,{exact:!0,key:de.state.url,path:(_e=de.state.routePath)!=null?_e:de.state.url,render:ha=>R(qo,ha)})),ao.push(s.createElement(m.qh,{exact:!0,key:qo.state.url,path:(mn=qo.state.routePath)!=null?mn:qo.state.url,render:ha=>R(qo,ha)})),qo.state.drilldowns)for(const ha of qo.state.drilldowns)ao.push(s.createElement(m.qh,{exact:!1,key:ha.routePath,path:ha.routePath,render:is=>s.createElement(Os,{drilldown:ha,parent:qo,routeProps:is})}))}if(Qr)for(const oa of Qr)ao.push(s.createElement(m.qh,{key:oa.routePath,exact:!1,path:oa.routePath,render:qo=>s.createElement(Os,{drilldown:oa,parent:de,routeProps:qo})}));return!vr&&Yl(de,L.match)?s.createElement(js,{page:de,routeProps:L}):(ao.push(Cc(de,L)),s.createElement(m.dO,null,ao))}function Cc(de,L){return s.createElement(m.qh,{key:"fallback route",render:_e=>{var mn,vr,Qr;const ao=(Qr=(vr=(mn=de.state).getFallbackPage)==null?void 0:vr.call(mn))!=null?Qr:Xl();return s.createElement(js,{page:ao,routeProps:L})}})}function Yl(de,L){return L.isExact?L.url===de.state.url||de.parent instanceof Gu&&de.parent.state.tabs[0]===de&&de.parent.state.url===L.url:!1}function Xl(){return new Gu({url:"",title:"Not found",subTitle:"The url did not match any page",getScene:()=>new Nu({body:new dg({direction:"column",children:[new Rv({body:new id({component:()=>s.createElement("div",{"data-testid":"default-fallback-content"},"If you found your way here using a link then there might be a bug in this application.")})})]})})})}var kc=t(33623),Gc=t(16371),Vd=t(37827),mh=t(44955),vd=t(87487),Oh=t(96529),Lh=t(42226),kh=t(69383),yg=t(65391),bg=t(89607),wg=t(15821),Eg=t(64337),vm=t(52037),gm=t(12183),Bv=t(10055);class fp{constructor(){this._overrides=[]}overrideColor(L){return this._overrides[this._overrides.length-1].properties.push({id:"color",value:L}),this}overrideDecimals(L){return this._overrides[this._overrides.length-1].properties.push({id:"decimals",value:L}),this}overrideDisplayName(L){return this._overrides[this._overrides.length-1].properties.push({id:"displayName",value:L}),this}overrideFilterable(L){return this._overrides[this._overrides.length-1].properties.push({id:"filterable",value:L}),this}overrideLinks(L){return this._overrides[this._overrides.length-1].properties.push({id:"links",value:L}),this}overrideMappings(L){return this._overrides[this._overrides.length-1].properties.push({id:"mappings",value:L}),this}overrideMax(L){return this._overrides[this._overrides.length-1].properties.push({id:"max",value:L}),this}overrideMin(L){return this._overrides[this._overrides.length-1].properties.push({id:"min",value:L}),this}overrideNoValue(L){return this._overrides[this._overrides.length-1].properties.push({id:"noValue",value:L}),this}overrideThresholds(L){return this._overrides[this._overrides.length-1].properties.push({id:"thresholds",value:L}),this}overrideUnit(L){return this._overrides[this._overrides.length-1].properties.push({id:"unit",value:L}),this}}class pb extends fp{match(L){return this._overrides.push({matcher:L,properties:[]}),this}matchFieldsWithName(L){return this._overrides.push({matcher:{id:$.Ct.byName,options:L},properties:[]}),this}matchFieldsWithNameByRegex(L){return this._overrides.push({matcher:{id:$.Ct.byRegexp,options:L},properties:[]}),this}matchFieldsByType(L){return this._overrides.push({matcher:{id:$.Ct.byType,options:L},properties:[]}),this}matchFieldsByQuery(L){return this._overrides.push({matcher:{id:$.Ct.byFrameRefID,options:L},properties:[]}),this}matchFieldsByValue(L){return this._overrides.push({matcher:{id:$.Ct.byValue,options:L},properties:[]}),this}matchComparisonQuery(L){return this.matchFieldsByQuery(ju(L))}overrideCustomFieldConfig(L,_e){const mn=`custom.${String(L)}`;return this._overrides[this._overrides.length-1].properties.push({id:mn,value:_e}),this}build(){return this._overrides}}var vb=Object.defineProperty,gb=Object.defineProperties,fy=Object.getOwnPropertyDescriptors,dy=Object.getOwnPropertySymbols,mm=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,Sg=(de,L,_e)=>L in de?vb(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,cv=(de,L)=>{for(var _e in L||(L={}))mm.call(L,_e)&&Sg(de,_e,L[_e]);if(dy)for(var _e of dy(L))lv.call(L,_e)&&Sg(de,_e,L[_e]);return de},ym=(de,L)=>gb(de,fy(L));class gd{constructor(L){this.defaultFieldConfig=L,this._fieldConfig={defaults:{},overrides:[]},this._overridesBuilder=new pb,this.setDefaults()}setDefaults(){const L={defaults:{custom:this.defaultFieldConfig?(0,st.cloneDeep)(this.defaultFieldConfig()):{}},overrides:[]};this._fieldConfig=L}setColor(L){return this.setFieldConfigDefaults("color",L)}setDecimals(L){return this.setFieldConfigDefaults("decimals",L)}setDisplayName(L){return this.setFieldConfigDefaults("displayName",L)}setFilterable(L){return this.setFieldConfigDefaults("filterable",L)}setLinks(L){return this.setFieldConfigDefaults("links",L)}setMappings(L){return this.setFieldConfigDefaults("mappings",L)}setMax(L){return this.setFieldConfigDefaults("max",L)}setMin(L){return this.setFieldConfigDefaults("min",L)}setNoValue(L){return this.setFieldConfigDefaults("noValue",L)}setThresholds(L){return this.setFieldConfigDefaults("thresholds",L)}setUnit(L){return this.setFieldConfigDefaults("unit",L)}setCustomFieldConfig(L,_e){return this._fieldConfig.defaults=ym(cv({},this._fieldConfig.defaults),{custom:(0,st.merge)(this._fieldConfig.defaults.custom,{[L]:_e})}),this}setOverrides(L){return L(this._overridesBuilder),this}setFieldConfigDefaults(L,_e){return this._fieldConfig.defaults=ym(cv({},this._fieldConfig.defaults),{[L]:_e}),this}build(){return{defaults:this._fieldConfig.defaults,overrides:this._overridesBuilder.build()}}}class md{constructor(L){this.defaultOptions=L,this._options={},this.setDefaults()}setDefaults(){this._options=this.defaultOptions?(0,st.cloneDeep)(this.defaultOptions()):{}}setOption(L,_e){return this._options=(0,st.merge)(this._options,{[L]:_e}),this}build(){return this._options}}var Td=Object.defineProperty,$h=Object.defineProperties,Bd=Object.getOwnPropertyDescriptors,Uh=Object.getOwnPropertySymbols,fv=Object.prototype.hasOwnProperty,hy=Object.prototype.propertyIsEnumerable,x0=(de,L,_e)=>L in de?Td(de,L,{enumerable:!0,configurable:!0,writable:!0,value:_e}):de[L]=_e,jv=(de,L)=>{for(var _e in L||(L={}))fv.call(L,_e)&&x0(de,_e,L[_e]);if(Uh)for(var _e of Uh(L))hy.call(L,_e)&&x0(de,_e,L[_e]);return de},_g=(de,L)=>$h(de,Bd(L));class Hf{constructor(L,_e,mn,vr){this._state={},this._state.title="",this._state.description="",this._state.displayMode="default",this._state.hoverHeader=!1,this._state.pluginId=L,this._state.pluginVersion=_e,this._fieldConfigBuilder=new gd(vr),this._panelOptionsBuilder=new md(mn)}setTitle(L){return this._state.title=L,this}setDescription(L){return this._state.description=L,this}setDisplayMode(L){return this._state.displayMode=L,this}setHoverHeader(L){return this._state.hoverHeader=L,this}setMenu(L){return this._state.menu=L,this}setHeaderActions(L){return this._state.headerActions=L,this}setColor(L){return this._fieldConfigBuilder.setColor(L),this}setDecimals(L){return this._fieldConfigBuilder.setDecimals(L),this}setDisplayName(L){return this._fieldConfigBuilder.setDisplayName(L),this}setFilterable(L){return this._fieldConfigBuilder.setFilterable(L),this}setLinks(L){return this._fieldConfigBuilder.setLinks(L),this}setMappings(L){return this._fieldConfigBuilder.setMappings(L),this}setMax(L){return this._fieldConfigBuilder.setMax(L),this}setMin(L){return this._fieldConfigBuilder.setMin(L),this}setNoValue(L){return this._fieldConfigBuilder.setNoValue(L),this}setThresholds(L){return this._fieldConfigBuilder.setThresholds(L),this}setUnit(L){return this._fieldConfigBuilder.setUnit(L),this}setCustomFieldConfig(L,_e){return this._fieldConfigBuilder.setCustomFieldConfig(L,_e),this}setOverrides(L){return this._fieldConfigBuilder.setOverrides(L),this}setOption(L,_e){return this._panelOptionsBuilder.setOption(L,_e),this}setData(L){return this._state.$data=L,this}setTimeRange(L){return this._state.$timeRange=L,this}setVariables(L){return this._state.$variables=L,this}setBehaviors(L){return this._state.$behaviors=L,this}build(){return new Zh(_g(jv({},this._state),{options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()}))}}const Cp={barchart(){return new Hf("barchart","10.0.0",()=>kc.KQ,()=>kc.QB)},bargauge(){return new Hf("bargauge","10.0.0",()=>Gc.K)},datagrid(){return new Hf("datagrid","10.0.0",()=>Vd.K)},flamegraph(){return new Hf("flamegraph","10.0.0")},gauge(){return new Hf("gauge","10.0.0",()=>mh.K)},geomap(){return new Hf("geomap","10.0.0",()=>vd.KQ)},heatmap(){return new Hf("heatmap","10.0.0",()=>Oh.KQ)},histogram(){return new Hf("histogram","10.0.0",()=>Lh.KQ,()=>Lh.QB)},logs(){return new Hf("logs","10.0.0")},news(){return new Hf("news","10.0.0",()=>kh.K)},nodegraph(){return new Hf("nodeGraph","10.0.0")},piechart(){return new Hf("piechart","10.0.0",()=>yg.KQ)},stat(){return new Hf("stat","10.0.0",()=>bg.K)},statetimeline(){return new Hf("state-timeline","10.0.0",()=>wg.KQ,()=>wg.QB)},statushistory(){return new Hf("status-history","10.0.0",()=>Eg.KQ,()=>Eg.QB)},table(){return new Hf("table","10.0.0",()=>vm.K)},text(){return new Hf("text","10.0.0",()=>gm.KQ)},timeseries(){return new Hf("timeseries","10.0.0")},trend(){return new Hf("trend","10.0.0")},traces(){return new Hf("traces","10.0.0")},xychart(){return new Hf("xychart","10.0.0",()=>Bv.KQ,()=>Bv.defaultScatterFieldConfig)}},Kp={barchart(){return new md(()=>kc.KQ)},bargauge(){return new md(()=>Gc.K)},datagrid(){return new md(()=>Vd.K)},flamegraph(){return new md},gauge(){return new md(()=>mh.K)},geomap(){return new md(()=>vd.KQ)},heatmap(){return new md(()=>Oh.KQ)},histogram(){return new md(()=>Lh.KQ)},logs(){return new md},news(){return new md(()=>kh.K)},nodegraph(){return new md},piechart(){return new md(()=>yg.KQ)},stat(){return new md(()=>bg.K)},statetimeline(){return new md(()=>wg.KQ)},statushistory(){return new md(()=>Eg.KQ)},table(){return new md(()=>vm.K)},text(){return new md(()=>gm.KQ)},timeseries(){return new md},trend(){return new md},traces(){return new md},xychart(){return new md(()=>Bv.KQ)}},py={barchart(){return new gd(()=>kc.QB)},bargauge(){return new gd},datagrid(){return new gd},flamegraph(){return new gd},gauge(){return new gd},geomap(){return new gd},heatmap(){return new gd},histogram(){return new gd(()=>Lh.QB)},logs(){return new gd},news(){return new gd},nodegraph(){return new gd},piechart(){return new gd},stat(){return new gd},statetimeline(){return new gd(()=>wg.QB)},statushistory(){return new gd(()=>Eg.QB)},table(){return new gd},text(){return new gd},timeseries(){return new gd},trend(){return new gd},traces(){return new gd},xychart(){return new gd(()=>Bv.defaultScatterFieldConfig)}},vy={getUrlWithAppState:O,registerRuntimePanelPlugin:me,registerRuntimeDataSource:Ge,registerVariableMacro:Pe,cloneSceneObjectState:Fe,syncStateFromSearchParams:ge,getUrlState:ie,renderPrometheusLabelFilters:Pt,isAdHocVariable:Cn,isConstantVariable:tr,isCustomVariable:Jn,isDataSourceVariable:ei,isIntervalVariable:Ci,isQueryVariable:zi,isTextBoxVariable:co,isGroupByVariable:Xo}},37227:(J,g,t)=>{"use strict";t.r(g),t.d(g,{clsx:()=>l,default:()=>s});function i(m){var u,f,p="";if(typeof m=="string"||typeof m=="number")p+=m;else if(typeof m=="object")if(Array.isArray(m))for(u=0;u<m.length;u++)m[u]&&(f=i(m[u]))&&(p&&(p+=" "),p+=f);else for(u in m)m[u]&&(p&&(p+=" "),p+=u);return p}function l(){for(var m,u,f=0,p="";f<arguments.length;)(m=arguments[f++])&&(u=i(m))&&(p&&(p+=" "),p+=u);return p}const s=l},15646:(J,g,t)=>{"use strict";function i(N){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},i(N)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var l=d(t(96540)),s=d(t(5556)),m=t(55794),u=t(66036),f=t(16192),p=t(88344),v=t(94104),h=d(t(37227));function d(N){return N&&N.__esModule?N:{default:N}}function b(N,W){var he=Object.keys(N);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(N);W&&(me=me.filter(function(fe){return Object.getOwnPropertyDescriptor(N,fe).enumerable})),he.push.apply(he,me)}return he}function y(N){for(var W=1;W<arguments.length;W++){var he=arguments[W]!=null?arguments[W]:{};W%2?b(Object(he),!0).forEach(function(me){ae(N,me,he[me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(he)):b(Object(he)).forEach(function(me){Object.defineProperty(N,me,Object.getOwnPropertyDescriptor(he,me))})}return N}function w(N,W){if(!(N instanceof W))throw new TypeError("Cannot call a class as a function")}function S(N,W){for(var he=0;he<W.length;he++){var me=W[he];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(N,me.key,me)}}function O(N,W,he){return W&&S(N.prototype,W),he&&S(N,he),Object.defineProperty(N,"prototype",{writable:!1}),N}function R(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(W&&W.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),W&&M(N,W)}function M(N,W){return M=Object.setPrototypeOf||function(me,fe){return me.__proto__=fe,me},M(N,W)}function D(N){var W=A();return function(){var me=j(N),fe;if(W){var ve=j(this).constructor;fe=Reflect.construct(me,arguments,ve)}else fe=me.apply(this,arguments);return P(this,fe)}}function P(N,W){if(W&&(i(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(N)}function T(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(N){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(he){return he.__proto__||Object.getPrototypeOf(he)},j(N)}function ae(N,W,he){return W in N?Object.defineProperty(N,W,{value:he,enumerable:!0,configurable:!0,writable:!0}):N[W]=he,N}var _=function(N){R(he,N);var W=D(he);function he(){var me;w(this,he);for(var fe=arguments.length,ve=new Array(fe),ce=0;ce<fe;ce++)ve[ce]=arguments[ce];return me=W.call.apply(W,[this].concat(ve)),ae(T(me),"state",{resizing:null,dragging:null,className:""}),ae(T(me),"elementRef",l.default.createRef()),ae(T(me),"onDragStart",function(oe,re){var H=re.node,V=me.props,Q=V.onDragStart,Te=V.transformScale;if(Q){var Re={top:0,left:0},ne=H.offsetParent;if(ne){var pe=ne.getBoundingClientRect(),ye=H.getBoundingClientRect(),Se=ye.left/Te,Ae=pe.left/Te,Ee=ye.top/Te,xe=pe.top/Te;Re.left=Se-Ae+ne.scrollLeft,Re.top=Ee-xe+ne.scrollTop,me.setState({dragging:Re});var nt=(0,p.calcXY)(me.getPositionParams(),Re.top,Re.left,me.props.w,me.props.h),Tt=nt.x,pt=nt.y;return Q.call(T(me),me.props.i,Tt,pt,{e:oe,node:H,newPosition:Re})}}}),ae(T(me),"onDrag",function(oe,re){var H=re.node,V=re.deltaX,Q=re.deltaY,Te=me.props.onDrag;if(Te){if(!me.state.dragging)throw new Error("onDrag called before onDragStart.");var Re=me.state.dragging.top+Q,ne=me.state.dragging.left+V,pe=me.props,ye=pe.isBounded,Se=pe.i,Ae=pe.w,Ee=pe.h,xe=pe.containerWidth,nt=me.getPositionParams();if(ye){var Tt=H.offsetParent;if(Tt){var pt=me.props,Rt=pt.margin,tt=pt.rowHeight,U=Tt.clientHeight-(0,p.calcGridItemWHPx)(Ee,tt,Rt[1]);Re=(0,p.clamp)(Re,0,U);var F=(0,p.calcGridColWidth)(nt),Y=xe-(0,p.calcGridItemWHPx)(Ae,F,Rt[0]);ne=(0,p.clamp)(ne,0,Y)}}var le={top:Re,left:ne};me.setState({dragging:le});var ke=(0,p.calcXY)(nt,Re,ne,Ae,Ee),Ye=ke.x,ft=ke.y;return Te.call(T(me),Se,Ye,ft,{e:oe,node:H,newPosition:le})}}),ae(T(me),"onDragStop",function(oe,re){var H=re.node,V=me.props.onDragStop;if(V){if(!me.state.dragging)throw new Error("onDragEnd called before onDragStart.");var Q=me.props,Te=Q.w,Re=Q.h,ne=Q.i,pe=me.state.dragging,ye=pe.left,Se=pe.top,Ae={top:Se,left:ye};me.setState({dragging:null});var Ee=(0,p.calcXY)(me.getPositionParams(),Se,ye,Te,Re),xe=Ee.x,nt=Ee.y;return V.call(T(me),ne,xe,nt,{e:oe,node:H,newPosition:Ae})}}),ae(T(me),"onResizeStop",function(oe,re){me.onResizeHandler(oe,re,"onResizeStop")}),ae(T(me),"onResizeStart",function(oe,re){me.onResizeHandler(oe,re,"onResizeStart")}),ae(T(me),"onResize",function(oe,re){me.onResizeHandler(oe,re,"onResize")}),me}return O(he,[{key:"shouldComponentUpdate",value:function(fe,ve){if(this.props.children!==fe.children||this.props.droppingPosition!==fe.droppingPosition)return!0;var ce=(0,p.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),oe=(0,p.calcGridItemPosition)(this.getPositionParams(fe),fe.x,fe.y,fe.w,fe.h,ve);return!(0,f.fastPositionEqual)(ce,oe)||this.props.useCSSTransforms!==fe.useCSSTransforms}},{key:"componentDidMount",value:function(){this.moveDroppingItem({})}},{key:"componentDidUpdate",value:function(fe){this.moveDroppingItem(fe)}},{key:"moveDroppingItem",value:function(fe){var ve=this.props.droppingPosition;if(ve){var ce=this.elementRef.current;if(ce){var oe=fe.droppingPosition||{left:0,top:0},re=this.state.dragging,H=re&&ve.left!==oe.left||ve.top!==oe.top;if(!re)this.onDragStart(ve.e,{node:ce,deltaX:ve.left,deltaY:ve.top});else if(H){var V=ve.left-re.left,Q=ve.top-re.top;this.onDrag(ve.e,{node:ce,deltaX:V,deltaY:Q})}}}}},{key:"getPositionParams",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:fe.cols,containerPadding:fe.containerPadding,containerWidth:fe.containerWidth,margin:fe.margin,maxRows:fe.maxRows,rowHeight:fe.rowHeight}}},{key:"createStyle",value:function(fe){var ve=this.props,ce=ve.usePercentages,oe=ve.containerWidth,re=ve.useCSSTransforms,H;return re?H=(0,f.setTransform)(fe):(H=(0,f.setTopLeft)(fe),ce&&(H.left=(0,f.perc)(fe.left/oe),H.width=(0,f.perc)(fe.width/oe))),H}},{key:"mixinDraggable",value:function(fe,ve){return l.default.createElement(m.DraggableCore,{disabled:!ve,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},fe)}},{key:"mixinResizable",value:function(fe,ve,ce){var oe=this.props,re=oe.cols,H=oe.x,V=oe.minW,Q=oe.minH,Te=oe.maxW,Re=oe.maxH,ne=oe.transformScale,pe=oe.resizeHandles,ye=oe.resizeHandle,Se=this.getPositionParams(),Ae=(0,p.calcGridItemPosition)(Se,0,0,re-H,0).width,Ee=(0,p.calcGridItemPosition)(Se,0,0,V,Q),xe=(0,p.calcGridItemPosition)(Se,0,0,Te,Re),nt=[Ee.width,Ee.height],Tt=[Math.min(xe.width,Ae),Math.min(xe.height,1/0)];return l.default.createElement(u.Resizable,{draggableOpts:{disabled:!ce},className:ce?void 0:"react-resizable-hide",width:ve.width,height:ve.height,minConstraints:nt,maxConstraints:Tt,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:ne,resizeHandles:pe,handle:ye},fe)}},{key:"onResizeHandler",value:function(fe,ve,ce){var oe=ve.node,re=ve.size,H=this.props[ce];if(H){var V=this.props,Q=V.cols,Te=V.x,Re=V.y,ne=V.i,pe=V.maxH,ye=V.minH,Se=this.props,Ae=Se.minW,Ee=Se.maxW,xe=(0,p.calcWH)(this.getPositionParams(),re.width,re.height,Te,Re),nt=xe.w,Tt=xe.h;Ae=Math.max(Ae,1),Ee=Math.min(Ee,Q-Te),nt=(0,p.clamp)(nt,Ae,Ee),Tt=(0,p.clamp)(Tt,ye,pe),this.setState({resizing:ce==="onResizeStop"?null:re}),H.call(this,ne,nt,Tt,{e:fe,node:oe,size:re})}}},{key:"render",value:function(){var fe=this.props,ve=fe.x,ce=fe.y,oe=fe.w,re=fe.h,H=fe.isDraggable,V=fe.isResizable,Q=fe.droppingPosition,Te=fe.useCSSTransforms,Re=(0,p.calcGridItemPosition)(this.getPositionParams(),ve,ce,oe,re,this.state),ne=l.default.Children.only(this.props.children),pe=l.default.cloneElement(ne,{ref:this.elementRef,className:(0,h.default)("react-grid-item",ne.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":H,"react-draggable-dragging":!!this.state.dragging,dropping:!!Q,cssTransforms:Te}),style:y(y(y({},this.props.style),ne.props.style),this.createStyle(Re))});return pe=this.mixinResizable(pe,Re,V),pe=this.mixinDraggable(pe,H),pe}}]),he}(l.default.Component);g.default=_,ae(_,"propTypes",{children:s.default.element,cols:s.default.number.isRequired,containerWidth:s.default.number.isRequired,rowHeight:s.default.number.isRequired,margin:s.default.array.isRequired,maxRows:s.default.number.isRequired,containerPadding:s.default.array.isRequired,x:s.default.number.isRequired,y:s.default.number.isRequired,w:s.default.number.isRequired,h:s.default.number.isRequired,minW:function(W,he){var me=W[he];if(typeof me!="number")return new Error("minWidth not Number");if(me>W.w||me>W.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(W,he){var me=W[he];if(typeof me!="number")return new Error("maxWidth not Number");if(me<W.w||me<W.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(W,he){var me=W[he];if(typeof me!="number")return new Error("minHeight not Number");if(me>W.h||me>W.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(W,he){var me=W[he];if(typeof me!="number")return new Error("maxHeight not Number");if(me<W.h||me<W.minH)return new Error("maxHeight smaller than item height/minHeight")},i:s.default.string.isRequired,resizeHandles:v.resizeHandleAxesType,resizeHandle:v.resizeHandleType,onDragStop:s.default.func,onDragStart:s.default.func,onDrag:s.default.func,onResizeStop:s.default.func,onResizeStart:s.default.func,onResize:s.default.func,isDraggable:s.default.bool.isRequired,isResizable:s.default.bool.isRequired,isBounded:s.default.bool.isRequired,static:s.default.bool,useCSSTransforms:s.default.bool.isRequired,transformScale:s.default.number,className:s.default.string,handle:s.default.string,cancel:s.default.string,droppingPosition:s.default.shape({e:s.default.object.isRequired,left:s.default.number.isRequired,top:s.default.number.isRequired})}),ae(_,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},23516:(J,g,t)=>{"use strict";function i(Re){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},i(Re)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var l=b(t(96540)),s=h(t(8142)),m=h(t(37227)),u=t(16192),f=t(88344),p=h(t(15646)),v=h(t(94104));function h(Re){return Re&&Re.__esModule?Re:{default:Re}}function d(Re){if(typeof WeakMap!="function")return null;var ne=new WeakMap,pe=new WeakMap;return(d=function(Se){return Se?pe:ne})(Re)}function b(Re,ne){if(!ne&&Re&&Re.__esModule)return Re;if(Re===null||i(Re)!=="object"&&typeof Re!="function")return{default:Re};var pe=d(ne);if(pe&&pe.has(Re))return pe.get(Re);var ye={},Se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ae in Re)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(Re,Ae)){var Ee=Se?Object.getOwnPropertyDescriptor(Re,Ae):null;Ee&&(Ee.get||Ee.set)?Object.defineProperty(ye,Ae,Ee):ye[Ae]=Re[Ae]}return ye.default=Re,pe&&pe.set(Re,ye),ye}function y(Re){return O(Re)||S(Re)||T(Re)||w()}function w(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(Re){if(typeof Symbol<"u"&&Re[Symbol.iterator]!=null||Re["@@iterator"]!=null)return Array.from(Re)}function O(Re){if(Array.isArray(Re))return A(Re)}function R(Re,ne){var pe=Object.keys(Re);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(Re);ne&&(ye=ye.filter(function(Se){return Object.getOwnPropertyDescriptor(Re,Se).enumerable})),pe.push.apply(pe,ye)}return pe}function M(Re){for(var ne=1;ne<arguments.length;ne++){var pe=arguments[ne]!=null?arguments[ne]:{};ne%2?R(Object(pe),!0).forEach(function(ye){H(Re,ye,pe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Re,Object.getOwnPropertyDescriptors(pe)):R(Object(pe)).forEach(function(ye){Object.defineProperty(Re,ye,Object.getOwnPropertyDescriptor(pe,ye))})}return Re}function D(Re,ne){return ae(Re)||j(Re,ne)||T(Re,ne)||P()}function P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(Re,ne){if(Re){if(typeof Re=="string")return A(Re,ne);var pe=Object.prototype.toString.call(Re).slice(8,-1);if(pe==="Object"&&Re.constructor&&(pe=Re.constructor.name),pe==="Map"||pe==="Set")return Array.from(Re);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return A(Re,ne)}}function A(Re,ne){(ne==null||ne>Re.length)&&(ne=Re.length);for(var pe=0,ye=new Array(ne);pe<ne;pe++)ye[pe]=Re[pe];return ye}function j(Re,ne){var pe=Re==null?null:typeof Symbol<"u"&&Re[Symbol.iterator]||Re["@@iterator"];if(pe!=null){var ye=[],Se=!0,Ae=!1,Ee,xe;try{for(pe=pe.call(Re);!(Se=(Ee=pe.next()).done)&&(ye.push(Ee.value),!(ne&&ye.length===ne));Se=!0);}catch(nt){Ae=!0,xe=nt}finally{try{!Se&&pe.return!=null&&pe.return()}finally{if(Ae)throw xe}}return ye}}function ae(Re){if(Array.isArray(Re))return Re}function _(Re,ne){if(!(Re instanceof ne))throw new TypeError("Cannot call a class as a function")}function N(Re,ne){for(var pe=0;pe<ne.length;pe++){var ye=ne[pe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(Re,ye.key,ye)}}function W(Re,ne,pe){return ne&&N(Re.prototype,ne),pe&&N(Re,pe),Object.defineProperty(Re,"prototype",{writable:!1}),Re}function he(Re,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");Re.prototype=Object.create(ne&&ne.prototype,{constructor:{value:Re,writable:!0,configurable:!0}}),Object.defineProperty(Re,"prototype",{writable:!1}),ne&&me(Re,ne)}function me(Re,ne){return me=Object.setPrototypeOf||function(ye,Se){return ye.__proto__=Se,ye},me(Re,ne)}function fe(Re){var ne=oe();return function(){var ye=re(Re),Se;if(ne){var Ae=re(this).constructor;Se=Reflect.construct(ye,arguments,Ae)}else Se=ye.apply(this,arguments);return ve(this,Se)}}function ve(Re,ne){if(ne&&(i(ne)==="object"||typeof ne=="function"))return ne;if(ne!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce(Re)}function ce(Re){if(Re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re}function oe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function re(Re){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(pe){return pe.__proto__||Object.getPrototypeOf(pe)},re(Re)}function H(Re,ne,pe){return ne in Re?Object.defineProperty(Re,ne,{value:pe,enumerable:!0,configurable:!0,writable:!0}):Re[ne]=pe,Re}var V="react-grid-layout",Q=!1;try{Q=/firefox/i.test(navigator.userAgent)}catch{}var Te=function(Re){he(pe,Re);var ne=fe(pe);function pe(){var ye;_(this,pe);for(var Se=arguments.length,Ae=new Array(Se),Ee=0;Ee<Se;Ee++)Ae[Ee]=arguments[Ee];return ye=ne.call.apply(ne,[this].concat(Ae)),H(ce(ye),"state",{activeDrag:null,layout:(0,u.synchronizeLayoutWithChildren)(ye.props.layout,ye.props.children,ye.props.cols,(0,u.compactType)(ye.props),ye.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),H(ce(ye),"dragEnterCounter",0),H(ce(ye),"onDragStart",function(xe,nt,Tt,pt){var Rt=pt.e,tt=pt.node,U=ye.state.layout,F=(0,u.getLayoutItem)(U,xe);if(F)return ye.setState({oldDragItem:(0,u.cloneLayoutItem)(F),oldLayout:U}),ye.props.onDragStart(U,F,F,null,Rt,tt)}),H(ce(ye),"onDrag",function(xe,nt,Tt,pt){var Rt=pt.e,tt=pt.node,U=ye.state.oldDragItem,F=ye.state.layout,Y=ye.props,le=Y.cols,ke=Y.allowOverlap,Ye=Y.preventCollision,ft=(0,u.getLayoutItem)(F,xe);if(ft){var wt={w:ft.w,h:ft.h,x:ft.x,y:ft.y,placeholder:!0,i:xe},Ut=!0;F=(0,u.moveElement)(F,ft,nt,Tt,Ut,Ye,(0,u.compactType)(ye.props),le,ke),ye.props.onDrag(F,U,ft,wt,Rt,tt),ye.setState({layout:ke?F:(0,u.compact)(F,(0,u.compactType)(ye.props),le),activeDrag:wt})}}),H(ce(ye),"onDragStop",function(xe,nt,Tt,pt){var Rt=pt.e,tt=pt.node;if(ye.state.activeDrag){var U=ye.state.oldDragItem,F=ye.state.layout,Y=ye.props,le=Y.cols,ke=Y.preventCollision,Ye=Y.allowOverlap,ft=(0,u.getLayoutItem)(F,xe);if(ft){var wt=!0;F=(0,u.moveElement)(F,ft,nt,Tt,wt,ke,(0,u.compactType)(ye.props),le,Ye),ye.props.onDragStop(F,U,ft,null,Rt,tt);var Ut=Ye?F:(0,u.compact)(F,(0,u.compactType)(ye.props),le),Ke=ye.state.oldLayout;ye.setState({activeDrag:null,layout:Ut,oldDragItem:null,oldLayout:null}),ye.onLayoutMaybeChanged(Ut,Ke)}}}),H(ce(ye),"onResizeStart",function(xe,nt,Tt,pt){var Rt=pt.e,tt=pt.node,U=ye.state.layout,F=(0,u.getLayoutItem)(U,xe);F&&(ye.setState({oldResizeItem:(0,u.cloneLayoutItem)(F),oldLayout:ye.state.layout}),ye.props.onResizeStart(U,F,F,null,Rt,tt))}),H(ce(ye),"onResize",function(xe,nt,Tt,pt){var Rt=pt.e,tt=pt.node,U=ye.state,F=U.layout,Y=U.oldResizeItem,le=ye.props,ke=le.cols,Ye=le.preventCollision,ft=le.allowOverlap,wt=(0,u.withLayoutItem)(F,xe,function(et){var ee;if(Ye&&!ft){var I=(0,u.getAllCollisions)(F,M(M({},et),{},{w:nt,h:Tt})).filter(function(De){return De.i!==et.i});if(ee=I.length>0,ee){var K=1/0,ue=1/0;I.forEach(function(De){De.x>et.x&&(K=Math.min(K,De.x)),De.y>et.y&&(ue=Math.min(ue,De.y))}),Number.isFinite(K)&&(et.w=K-et.x),Number.isFinite(ue)&&(et.h=ue-et.y)}}return ee||(et.w=nt,et.h=Tt),et}),Ut=D(wt,2),Ke=Ut[0],it=Ut[1];if(it){var At={w:it.w,h:it.h,x:it.x,y:it.y,static:!0,i:xe};ye.props.onResize(Ke,Y,it,At,Rt,tt),ye.setState({layout:ft?Ke:(0,u.compact)(Ke,(0,u.compactType)(ye.props),ke),activeDrag:At})}}),H(ce(ye),"onResizeStop",function(xe,nt,Tt,pt){var Rt=pt.e,tt=pt.node,U=ye.state,F=U.layout,Y=U.oldResizeItem,le=ye.props,ke=le.cols,Ye=le.allowOverlap,ft=(0,u.getLayoutItem)(F,xe);ye.props.onResizeStop(F,Y,ft,null,Rt,tt);var wt=Ye?F:(0,u.compact)(F,(0,u.compactType)(ye.props),ke),Ut=ye.state.oldLayout;ye.setState({activeDrag:null,layout:wt,oldResizeItem:null,oldLayout:null}),ye.onLayoutMaybeChanged(wt,Ut)}),H(ce(ye),"onDragOver",function(xe){var nt;if(xe.preventDefault(),xe.stopPropagation(),Q&&!((nt=xe.nativeEvent.target)!==null&&nt!==void 0&&nt.classList.contains(V)))return!1;var Tt=ye.props,pt=Tt.droppingItem,Rt=Tt.onDropDragOver,tt=Tt.margin,U=Tt.cols,F=Tt.rowHeight,Y=Tt.maxRows,le=Tt.width,ke=Tt.containerPadding,Ye=Tt.transformScale,ft=Rt?.(xe);if(ft===!1)return ye.state.droppingDOMNode&&ye.removeDroppingPlaceholder(),!1;var wt=M(M({},pt),ft),Ut=ye.state.layout,Ke=xe.nativeEvent,it=Ke.layerX,At=Ke.layerY,et={left:it/Ye,top:At/Ye,e:xe};if(ye.state.droppingDOMNode){if(ye.state.droppingPosition){var K=ye.state.droppingPosition,ue=K.left,De=K.top,He=ue!=it||De!=At;He&&ye.setState({droppingPosition:et})}}else{var ee={cols:U,margin:tt,maxRows:Y,rowHeight:F,containerWidth:le,containerPadding:ke||tt},I=(0,f.calcXY)(ee,At,it,wt.w,wt.h);ye.setState({droppingDOMNode:l.createElement("div",{key:wt.i}),droppingPosition:et,layout:[].concat(y(Ut),[M(M({},wt),{},{x:I.x,y:I.y,static:!1,isDraggable:!0})])})}}),H(ce(ye),"removeDroppingPlaceholder",function(){var xe=ye.props,nt=xe.droppingItem,Tt=xe.cols,pt=ye.state.layout,Rt=(0,u.compact)(pt.filter(function(tt){return tt.i!==nt.i}),(0,u.compactType)(ye.props),Tt);ye.setState({layout:Rt,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),H(ce(ye),"onDragLeave",function(xe){xe.preventDefault(),xe.stopPropagation(),ye.dragEnterCounter--,ye.dragEnterCounter===0&&ye.removeDroppingPlaceholder()}),H(ce(ye),"onDragEnter",function(xe){xe.preventDefault(),xe.stopPropagation(),ye.dragEnterCounter++}),H(ce(ye),"onDrop",function(xe){xe.preventDefault(),xe.stopPropagation();var nt=ye.props.droppingItem,Tt=ye.state.layout,pt=Tt.find(function(Rt){return Rt.i===nt.i});ye.dragEnterCounter=0,ye.removeDroppingPlaceholder(),ye.props.onDrop(Tt,pt,xe)}),ye}return W(pe,[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(Se,Ae){return this.props.children!==Se.children||!(0,u.fastRGLPropsEqual)(this.props,Se,s.default)||this.state.activeDrag!==Ae.activeDrag||this.state.mounted!==Ae.mounted||this.state.droppingPosition!==Ae.droppingPosition}},{key:"componentDidUpdate",value:function(Se,Ae){if(!this.state.activeDrag){var Ee=this.state.layout,xe=Ae.layout;this.onLayoutMaybeChanged(Ee,xe)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var Se=(0,u.bottom)(this.state.layout),Ae=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return Se*this.props.rowHeight+(Se-1)*this.props.margin[1]+Ae*2+"px"}}},{key:"onLayoutMaybeChanged",value:function(Se,Ae){Ae||(Ae=this.state.layout),(0,s.default)(Ae,Se)||this.props.onLayoutChange(Se)}},{key:"placeholder",value:function(){var Se=this.state.activeDrag;if(!Se)return null;var Ae=this.props,Ee=Ae.width,xe=Ae.cols,nt=Ae.margin,Tt=Ae.containerPadding,pt=Ae.rowHeight,Rt=Ae.maxRows,tt=Ae.useCSSTransforms,U=Ae.transformScale;return l.createElement(p.default,{w:Se.w,h:Se.h,x:Se.x,y:Se.y,i:Se.i,className:"react-grid-placeholder",containerWidth:Ee,cols:xe,margin:nt,containerPadding:Tt||nt,maxRows:Rt,rowHeight:pt,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:tt,transformScale:U},l.createElement("div",null))}},{key:"processGridItem",value:function(Se,Ae){if(!(!Se||!Se.key)){var Ee=(0,u.getLayoutItem)(this.state.layout,String(Se.key));if(!Ee)return null;var xe=this.props,nt=xe.width,Tt=xe.cols,pt=xe.margin,Rt=xe.containerPadding,tt=xe.rowHeight,U=xe.maxRows,F=xe.isDraggable,Y=xe.isResizable,le=xe.isBounded,ke=xe.useCSSTransforms,Ye=xe.transformScale,ft=xe.draggableCancel,wt=xe.draggableHandle,Ut=xe.resizeHandles,Ke=xe.resizeHandle,it=this.state,At=it.mounted,et=it.droppingPosition,ee=typeof Ee.isDraggable=="boolean"?Ee.isDraggable:!Ee.static&&F,I=typeof Ee.isResizable=="boolean"?Ee.isResizable:!Ee.static&&Y,K=Ee.resizeHandles||Ut,ue=ee&&le&&Ee.isBounded!==!1;return l.createElement(p.default,{containerWidth:nt,cols:Tt,margin:pt,containerPadding:Rt||pt,maxRows:U,rowHeight:tt,cancel:ft,handle:wt,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:ee,isResizable:I,isBounded:ue,useCSSTransforms:ke&&At,usePercentages:!At,transformScale:Ye,w:Ee.w,h:Ee.h,x:Ee.x,y:Ee.y,i:Ee.i,minH:Ee.minH,minW:Ee.minW,maxH:Ee.maxH,maxW:Ee.maxW,static:Ee.static,droppingPosition:Ae?et:void 0,resizeHandles:K,resizeHandle:Ke},Se)}}},{key:"render",value:function(){var Se=this,Ae=this.props,Ee=Ae.className,xe=Ae.style,nt=Ae.isDroppable,Tt=Ae.innerRef,pt=(0,m.default)(V,Ee),Rt=M({height:this.containerHeight()},xe);return l.createElement("div",{ref:Tt,className:pt,style:Rt,onDrop:nt?this.onDrop:u.noop,onDragLeave:nt?this.onDragLeave:u.noop,onDragEnter:nt?this.onDragEnter:u.noop,onDragOver:nt?this.onDragOver:u.noop},l.Children.map(this.props.children,function(tt){return Se.processGridItem(tt)}),nt&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}],[{key:"getDerivedStateFromProps",value:function(Se,Ae){var Ee;if(Ae.activeDrag)return null;if(!(0,s.default)(Se.layout,Ae.propsLayout)||Se.compactType!==Ae.compactType?Ee=Se.layout:(0,u.childrenEqual)(Se.children,Ae.children)||(Ee=Ae.layout),Ee){var xe=(0,u.synchronizeLayoutWithChildren)(Ee,Se.children,Se.cols,(0,u.compactType)(Se),Se.allowOverlap);return{layout:xe,compactType:Se.compactType,children:Se.children,propsLayout:Se.layout}}return null}}]),pe}(l.Component);g.default=Te,H(Te,"displayName","ReactGridLayout"),H(Te,"propTypes",v.default),H(Te,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:u.noop,onDragStart:u.noop,onDrag:u.noop,onDragStop:u.noop,onResizeStart:u.noop,onResize:u.noop,onResizeStop:u.noop,onDrop:u.noop,onDropDragOver:u.noop})},94104:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.resizeHandleType=g.resizeHandleAxesType=g.default=void 0;var i=s(t(5556)),l=s(t(96540));function s(p){return p&&p.__esModule?p:{default:p}}var m=i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));g.resizeHandleAxesType=m;var u=i.default.oneOfType([i.default.node,i.default.func]);g.resizeHandleType=u;var f={className:i.default.string,style:i.default.object,width:i.default.number,autoSize:i.default.bool,cols:i.default.number,draggableCancel:i.default.string,draggableHandle:i.default.string,verticalCompact:function(v){v.verticalCompact},compactType:i.default.oneOf(["vertical","horizontal"]),layout:function(v){var h=v.layout;h!==void 0&&t(16192).validateLayout(h,"layout")},margin:i.default.arrayOf(i.default.number),containerPadding:i.default.arrayOf(i.default.number),rowHeight:i.default.number,maxRows:i.default.number,isBounded:i.default.bool,isDraggable:i.default.bool,isResizable:i.default.bool,allowOverlap:i.default.bool,preventCollision:i.default.bool,useCSSTransforms:i.default.bool,transformScale:i.default.number,isDroppable:i.default.bool,resizeHandles:m,resizeHandle:u,onLayoutChange:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onDragStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,onResizeStop:i.default.func,onDrop:i.default.func,droppingItem:i.default.shape({i:i.default.string.isRequired,w:i.default.number.isRequired,h:i.default.number.isRequired}),children:function(v,h){var d=v[h],b={};l.default.Children.forEach(d,function(y){if(y?.key!=null){if(b[y.key])throw new Error('Duplicate child key "'+y.key+'" found! This will cause problems in ReactGridLayout.');b[y.key]=!0}})},innerRef:i.default.any};g.default=f},70422:(J,g,t)=>{"use strict";var i;function l(oe){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},l(oe)}i={value:!0},g.default=void 0;var s=y(t(96540)),m=d(t(5556)),u=d(t(8142)),f=t(16192),p=t(55826),v=d(t(23516)),h=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function d(oe){return oe&&oe.__esModule?oe:{default:oe}}function b(oe){if(typeof WeakMap!="function")return null;var re=new WeakMap,H=new WeakMap;return(b=function(Q){return Q?H:re})(oe)}function y(oe,re){if(!re&&oe&&oe.__esModule)return oe;if(oe===null||l(oe)!=="object"&&typeof oe!="function")return{default:oe};var H=b(re);if(H&&H.has(oe))return H.get(oe);var V={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Te in oe)if(Te!=="default"&&Object.prototype.hasOwnProperty.call(oe,Te)){var Re=Q?Object.getOwnPropertyDescriptor(oe,Te):null;Re&&(Re.get||Re.set)?Object.defineProperty(V,Te,Re):V[Te]=oe[Te]}return V.default=oe,H&&H.set(oe,V),V}function w(){return w=Object.assign||function(oe){for(var re=1;re<arguments.length;re++){var H=arguments[re];for(var V in H)Object.prototype.hasOwnProperty.call(H,V)&&(oe[V]=H[V])}return oe},w.apply(this,arguments)}function S(oe,re){if(oe==null)return{};var H=O(oe,re),V,Q;if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(oe);for(Q=0;Q<Te.length;Q++)V=Te[Q],!(re.indexOf(V)>=0)&&Object.prototype.propertyIsEnumerable.call(oe,V)&&(H[V]=oe[V])}return H}function O(oe,re){if(oe==null)return{};var H={},V=Object.keys(oe),Q,Te;for(Te=0;Te<V.length;Te++)Q=V[Te],!(re.indexOf(Q)>=0)&&(H[Q]=oe[Q]);return H}function R(oe,re){var H=Object.keys(oe);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(oe);re&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(oe,Q).enumerable})),H.push.apply(H,V)}return H}function M(oe){for(var re=1;re<arguments.length;re++){var H=arguments[re]!=null?arguments[re]:{};re%2?R(Object(H),!0).forEach(function(V){me(oe,V,H[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(oe,Object.getOwnPropertyDescriptors(H)):R(Object(H)).forEach(function(V){Object.defineProperty(oe,V,Object.getOwnPropertyDescriptor(H,V))})}return oe}function D(oe,re){if(!(oe instanceof re))throw new TypeError("Cannot call a class as a function")}function P(oe,re){for(var H=0;H<re.length;H++){var V=re[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(oe,V.key,V)}}function T(oe,re,H){return re&&P(oe.prototype,re),H&&P(oe,H),Object.defineProperty(oe,"prototype",{writable:!1}),oe}function A(oe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");oe.prototype=Object.create(re&&re.prototype,{constructor:{value:oe,writable:!0,configurable:!0}}),Object.defineProperty(oe,"prototype",{writable:!1}),re&&j(oe,re)}function j(oe,re){return j=Object.setPrototypeOf||function(V,Q){return V.__proto__=Q,V},j(oe,re)}function ae(oe){var re=W();return function(){var V=he(oe),Q;if(re){var Te=he(this).constructor;Q=Reflect.construct(V,arguments,Te)}else Q=V.apply(this,arguments);return _(this,Q)}}function _(oe,re){if(re&&(l(re)==="object"||typeof re=="function"))return re;if(re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N(oe)}function N(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function he(oe){return he=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},he(oe)}function me(oe,re,H){return re in oe?Object.defineProperty(oe,re,{value:H,enumerable:!0,configurable:!0,writable:!0}):oe[re]=H,oe}var fe=function(re){return Object.prototype.toString.call(re)};function ve(oe,re){return oe==null?null:Array.isArray(oe)?oe:oe[re]}var ce=function(oe){A(H,oe);var re=ae(H);function H(){var V;D(this,H);for(var Q=arguments.length,Te=new Array(Q),Re=0;Re<Q;Re++)Te[Re]=arguments[Re];return V=re.call.apply(re,[this].concat(Te)),me(N(V),"state",V.generateInitialState()),me(N(V),"onLayoutChange",function(ne){V.props.onLayoutChange(ne,M(M({},V.props.layouts),{},me({},V.state.breakpoint,ne)))}),V}return T(H,[{key:"generateInitialState",value:function(){var Q=this.props,Te=Q.width,Re=Q.breakpoints,ne=Q.layouts,pe=Q.cols,ye=(0,p.getBreakpointFromWidth)(Re,Te),Se=(0,p.getColsFromBreakpoint)(ye,pe),Ae=this.props.verticalCompact===!1?null:this.props.compactType,Ee=(0,p.findOrGenerateResponsiveLayout)(ne,Re,ye,ye,Se,Ae);return{layout:Ee,breakpoint:ye,cols:Se}}},{key:"componentDidUpdate",value:function(Q){(this.props.width!=Q.width||this.props.breakpoint!==Q.breakpoint||!(0,u.default)(this.props.breakpoints,Q.breakpoints)||!(0,u.default)(this.props.cols,Q.cols))&&this.onWidthChange(Q)}},{key:"onWidthChange",value:function(Q){var Te=this.props,Re=Te.breakpoints,ne=Te.cols,pe=Te.layouts,ye=Te.compactType,Se=this.props.breakpoint||(0,p.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),Ae=this.state.breakpoint,Ee=(0,p.getColsFromBreakpoint)(Se,ne),xe=M({},pe);if(Ae!==Se||Q.breakpoints!==Re||Q.cols!==ne){Ae in xe||(xe[Ae]=(0,f.cloneLayout)(this.state.layout));var nt=(0,p.findOrGenerateResponsiveLayout)(xe,Re,Se,Ae,Ee,ye);nt=(0,f.synchronizeLayoutWithChildren)(nt,this.props.children,Ee,ye,this.props.allowOverlap),xe[Se]=nt,this.props.onLayoutChange(nt,xe),this.props.onBreakpointChange(Se,Ee),this.setState({breakpoint:Se,layout:nt,cols:Ee})}var Tt=ve(this.props.margin,Se),pt=ve(this.props.containerPadding,Se);this.props.onWidthChange(this.props.width,Tt,Ee,pt)}},{key:"render",value:function(){var Q=this.props,Te=Q.breakpoint,Re=Q.breakpoints,ne=Q.cols,pe=Q.layouts,ye=Q.margin,Se=Q.containerPadding,Ae=Q.onBreakpointChange,Ee=Q.onLayoutChange,xe=Q.onWidthChange,nt=S(Q,h);return s.createElement(v.default,w({},nt,{margin:ve(ye,this.state.breakpoint),containerPadding:ve(Se,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}],[{key:"getDerivedStateFromProps",value:function(Q,Te){if(!(0,u.default)(Q.layouts,Te.layouts)){var Re=Te.breakpoint,ne=Te.cols,pe=(0,p.findOrGenerateResponsiveLayout)(Q.layouts,Q.breakpoints,Re,Re,ne,Q.compactType);return{layout:pe,layouts:Q.layouts}}return null}}]),H}(s.Component);g.default=ce,me(ce,"propTypes",{breakpoint:m.default.string,breakpoints:m.default.object,allowOverlap:m.default.bool,cols:m.default.object,margin:m.default.oneOfType([m.default.array,m.default.object]),containerPadding:m.default.oneOfType([m.default.array,m.default.object]),layouts:function(re,H){if(fe(re[H])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+fe(re[H]));Object.keys(re[H]).forEach(function(V){if(!(V in re.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,f.validateLayout)(re.layouts[V],"layouts."+V)})},width:m.default.number.isRequired,onBreakpointChange:m.default.func,onLayoutChange:m.default.func,onWidthChange:m.default.func}),me(ce,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:f.noop,onLayoutChange:f.noop,onWidthChange:f.noop})},88344:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.calcGridColWidth=t,g.calcGridItemPosition=l,g.calcGridItemWHPx=i,g.calcWH=m,g.calcXY=s,g.clamp=u;function t(f){var p=f.margin,v=f.containerPadding,h=f.containerWidth,d=f.cols;return(h-p[0]*(d-1)-v[0]*2)/d}function i(f,p,v){return Number.isFinite(f)?Math.round(p*f+Math.max(0,f-1)*v):f}function l(f,p,v,h,d,b){var y=f.margin,w=f.containerPadding,S=f.rowHeight,O=t(f),R={};return b&&b.resizing?(R.width=Math.round(b.resizing.width),R.height=Math.round(b.resizing.height)):(R.width=i(h,O,y[0]),R.height=i(d,S,y[1])),b&&b.dragging?(R.top=Math.round(b.dragging.top),R.left=Math.round(b.dragging.left)):(R.top=Math.round((S+y[1])*v+w[1]),R.left=Math.round((O+y[0])*p+w[0])),R}function s(f,p,v,h,d){var b=f.margin,y=f.cols,w=f.rowHeight,S=f.maxRows,O=t(f),R=Math.round((v-b[0])/(O+b[0])),M=Math.round((p-b[1])/(w+b[1]));return R=u(R,0,y-h),M=u(M,0,S-d),{x:R,y:M}}function m(f,p,v,h,d){var b=f.margin,y=f.maxRows,w=f.cols,S=f.rowHeight,O=t(f),R=Math.round((p+b[0])/(O+b[0])),M=Math.round((v+b[1])/(S+b[1]));return R=u(R,0,w-h),M=u(M,0,y-d),{w:R,h:M}}function u(f,p,v){return Math.max(Math.min(f,v),p)}},21439:(J,g,t)=>{"use strict";var i;function l(W){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},l(W)}i={value:!0},g.default=N;var s=h(t(96540)),m=p(t(5556)),u=p(t(37227)),f=["measureBeforeMount"];function p(W){return W&&W.__esModule?W:{default:W}}function v(W){if(typeof WeakMap!="function")return null;var he=new WeakMap,me=new WeakMap;return(v=function(ve){return ve?me:he})(W)}function h(W,he){if(!he&&W&&W.__esModule)return W;if(W===null||l(W)!=="object"&&typeof W!="function")return{default:W};var me=v(he);if(me&&me.has(W))return me.get(W);var fe={},ve=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in W)if(ce!=="default"&&Object.prototype.hasOwnProperty.call(W,ce)){var oe=ve?Object.getOwnPropertyDescriptor(W,ce):null;oe&&(oe.get||oe.set)?Object.defineProperty(fe,ce,oe):fe[ce]=W[ce]}return fe.default=W,me&&me.set(W,fe),fe}function d(){return d=Object.assign||function(W){for(var he=1;he<arguments.length;he++){var me=arguments[he];for(var fe in me)Object.prototype.hasOwnProperty.call(me,fe)&&(W[fe]=me[fe])}return W},d.apply(this,arguments)}function b(W,he){if(W==null)return{};var me=y(W,he),fe,ve;if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(W);for(ve=0;ve<ce.length;ve++)fe=ce[ve],!(he.indexOf(fe)>=0)&&Object.prototype.propertyIsEnumerable.call(W,fe)&&(me[fe]=W[fe])}return me}function y(W,he){if(W==null)return{};var me={},fe=Object.keys(W),ve,ce;for(ce=0;ce<fe.length;ce++)ve=fe[ce],!(he.indexOf(ve)>=0)&&(me[ve]=W[ve]);return me}function w(W,he){if(!(W instanceof he))throw new TypeError("Cannot call a class as a function")}function S(W,he){for(var me=0;me<he.length;me++){var fe=he[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(W,fe.key,fe)}}function O(W,he,me){return he&&S(W.prototype,he),me&&S(W,me),Object.defineProperty(W,"prototype",{writable:!1}),W}function R(W,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(he&&he.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),he&&M(W,he)}function M(W,he){return M=Object.setPrototypeOf||function(fe,ve){return fe.__proto__=ve,fe},M(W,he)}function D(W){var he=A();return function(){var fe=j(W),ve;if(he){var ce=j(this).constructor;ve=Reflect.construct(fe,arguments,ce)}else ve=fe.apply(this,arguments);return P(this,ve)}}function P(W,he){if(he&&(l(he)==="object"||typeof he=="function"))return he;if(he!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(W)}function T(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(W){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(me){return me.__proto__||Object.getPrototypeOf(me)},j(W)}function ae(W,he,me){return he in W?Object.defineProperty(W,he,{value:me,enumerable:!0,configurable:!0,writable:!0}):W[he]=me,W}var _="react-grid-layout";function N(W){var he;return he=function(me){R(ve,me);var fe=D(ve);function ve(){var ce;w(this,ve);for(var oe=arguments.length,re=new Array(oe),H=0;H<oe;H++)re[H]=arguments[H];return ce=fe.call.apply(fe,[this].concat(re)),ae(T(ce),"state",{width:1280}),ae(T(ce),"elementRef",s.createRef()),ae(T(ce),"mounted",!1),ae(T(ce),"onWindowResize",function(){if(ce.mounted){var V=ce.elementRef.current;V instanceof HTMLElement&&V.offsetWidth&&ce.setState({width:V.offsetWidth})}}),ce}return O(ve,[{key:"componentDidMount",value:function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){var oe=this.props,re=oe.measureBeforeMount,H=b(oe,f);return re&&!this.mounted?s.createElement("div",{className:(0,u.default)(this.props.className,_),style:this.props.style,ref:this.elementRef}):s.createElement(W,d({innerRef:this.elementRef},H,this.state))}}]),ve}(s.Component),ae(he,"defaultProps",{measureBeforeMount:!1}),ae(he,"propTypes",{measureBeforeMount:m.default.bool}),he}},48516:J=>{J.exports=function(t,i,l){return t===i?!0:t.className===i.className&&l(t.style,i.style)&&t.width===i.width&&t.autoSize===i.autoSize&&t.cols===i.cols&&t.draggableCancel===i.draggableCancel&&t.draggableHandle===i.draggableHandle&&l(t.verticalCompact,i.verticalCompact)&&l(t.compactType,i.compactType)&&l(t.layout,i.layout)&&l(t.margin,i.margin)&&l(t.containerPadding,i.containerPadding)&&t.rowHeight===i.rowHeight&&t.maxRows===i.maxRows&&t.isBounded===i.isBounded&&t.isDraggable===i.isDraggable&&t.isResizable===i.isResizable&&t.allowOverlap===i.allowOverlap&&t.preventCollision===i.preventCollision&&t.useCSSTransforms===i.useCSSTransforms&&t.transformScale===i.transformScale&&t.isDroppable===i.isDroppable&&l(t.resizeHandles,i.resizeHandles)&&l(t.resizeHandle,i.resizeHandle)&&t.onLayoutChange===i.onLayoutChange&&t.onDragStart===i.onDragStart&&t.onDrag===i.onDrag&&t.onDragStop===i.onDragStop&&t.onResizeStart===i.onResizeStart&&t.onResize===i.onResize&&t.onResizeStop===i.onResizeStop&&t.onDrop===i.onDrop&&l(t.droppingItem,i.droppingItem)&&l(t.innerRef,i.innerRef)}},55826:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.findOrGenerateResponsiveLayout=m,g.getBreakpointFromWidth=l,g.getColsFromBreakpoint=s,g.sortBreakpoints=u;var i=t(16192);function l(f,p){for(var v=u(f),h=v[0],d=1,b=v.length;d<b;d++){var y=v[d];p>f[y]&&(h=y)}return h}function s(f,p){if(!p[f])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+f+" is missing!");return p[f]}function m(f,p,v,h,d,b){if(f[v])return(0,i.cloneLayout)(f[v]);for(var y=f[h],w=u(p),S=w.slice(w.indexOf(v)),O=0,R=S.length;O<R;O++){var M=S[O];if(f[M]){y=f[M];break}}return y=(0,i.cloneLayout)(y||[]),(0,i.compact)((0,i.correctBounds)(y,{cols:d}),b,d)}function u(f){var p=Object.keys(f);return p.sort(function(v,h){return f[v]-f[h]})}},16192:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.bottom=h,g.childrenEqual=S,g.cloneLayout=d,g.cloneLayoutItem=w,g.collides=M,g.compact=D,g.compactItem=A,g.compactType=Te,g.correctBounds=j,g.fastPositionEqual=R,g.fastRGLPropsEqual=void 0,g.getAllCollisions=N,g.getFirstCollision=_,g.getLayoutItem=ae,g.getStatics=W,g.modifyLayout=b,g.moveElement=he,g.moveElementAwayFromCollision=me,g.noop=void 0,g.perc=fe,g.setTopLeft=ce,g.setTransform=ve,g.sortLayoutItems=oe,g.sortLayoutItemsByColRow=H,g.sortLayoutItemsByRowCol=re,g.synchronizeLayoutWithChildren=V,g.validateLayout=Q,g.withLayoutItem=y;var i=s(t(8142)),l=s(t(96540));function s(pe){return pe&&pe.__esModule?pe:{default:pe}}function m(pe,ye){var Se=Object.keys(pe);if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(pe);ye&&(Ae=Ae.filter(function(Ee){return Object.getOwnPropertyDescriptor(pe,Ee).enumerable})),Se.push.apply(Se,Ae)}return Se}function u(pe){for(var ye=1;ye<arguments.length;ye++){var Se=arguments[ye]!=null?arguments[ye]:{};ye%2?m(Object(Se),!0).forEach(function(Ae){f(pe,Ae,Se[Ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(Se)):m(Object(Se)).forEach(function(Ae){Object.defineProperty(pe,Ae,Object.getOwnPropertyDescriptor(Se,Ae))})}return pe}function f(pe,ye,Se){return ye in pe?Object.defineProperty(pe,ye,{value:Se,enumerable:!0,configurable:!0,writable:!0}):pe[ye]=Se,pe}var p=!0,v=!1;function h(pe){for(var ye=0,Se,Ae=0,Ee=pe.length;Ae<Ee;Ae++)Se=pe[Ae].y+pe[Ae].h,Se>ye&&(ye=Se);return ye}function d(pe){for(var ye=Array(pe.length),Se=0,Ae=pe.length;Se<Ae;Se++)ye[Se]=w(pe[Se]);return ye}function b(pe,ye){for(var Se=Array(pe.length),Ae=0,Ee=pe.length;Ae<Ee;Ae++)ye.i===pe[Ae].i?Se[Ae]=ye:Se[Ae]=pe[Ae];return Se}function y(pe,ye,Se){var Ae=ae(pe,ye);return Ae?(Ae=Se(w(Ae)),pe=b(pe,Ae),[pe,Ae]):[pe,null]}function w(pe){return{w:pe.w,h:pe.h,x:pe.x,y:pe.y,i:pe.i,minW:pe.minW,maxW:pe.maxW,minH:pe.minH,maxH:pe.maxH,moved:!!pe.moved,static:!!pe.static,isDraggable:pe.isDraggable,isResizable:pe.isResizable,resizeHandles:pe.resizeHandles,isBounded:pe.isBounded}}function S(pe,ye){return(0,i.default)(l.default.Children.map(pe,function(Se){return Se?.key}),l.default.Children.map(ye,function(Se){return Se?.key}))}var O=t(48516);g.fastRGLPropsEqual=O;function R(pe,ye){return pe.left===ye.left&&pe.top===ye.top&&pe.width===ye.width&&pe.height===ye.height}function M(pe,ye){return!(pe.i===ye.i||pe.x+pe.w<=ye.x||pe.x>=ye.x+ye.w||pe.y+pe.h<=ye.y||pe.y>=ye.y+ye.h)}function D(pe,ye,Se){for(var Ae=W(pe),Ee=oe(pe,ye),xe=Array(pe.length),nt=0,Tt=Ee.length;nt<Tt;nt++){var pt=w(Ee[nt]);pt.static||(pt=A(Ae,pt,ye,Se,Ee),Ae.push(pt)),xe[pe.indexOf(Ee[nt])]=pt,pt.moved=!1}return xe}var P={x:"w",y:"h"};function T(pe,ye,Se,Ae){var Ee=P[Ae];ye[Ae]+=1;for(var xe=pe.map(function(pt){return pt.i}).indexOf(ye.i),nt=xe+1;nt<pe.length;nt++){var Tt=pe[nt];if(!Tt.static){if(Tt.y>ye.y+ye.h)break;M(ye,Tt)&&T(pe,Tt,Se+ye[Ee],Ae)}}ye[Ae]=Se}function A(pe,ye,Se,Ae,Ee){var xe=Se==="vertical",nt=Se==="horizontal";if(xe)for(ye.y=Math.min(h(pe),ye.y);ye.y>0&&!_(pe,ye);)ye.y--;else if(nt)for(;ye.x>0&&!_(pe,ye);)ye.x--;for(var Tt;Tt=_(pe,ye);)nt?T(Ee,ye,Tt.x+Tt.w,"x"):T(Ee,ye,Tt.y+Tt.h,"y"),nt&&ye.x+ye.w>Ae&&(ye.x=Ae-ye.w,ye.y++);return ye.y=Math.max(ye.y,0),ye.x=Math.max(ye.x,0),ye}function j(pe,ye){for(var Se=W(pe),Ae=0,Ee=pe.length;Ae<Ee;Ae++){var xe=pe[Ae];if(xe.x+xe.w>ye.cols&&(xe.x=ye.cols-xe.w),xe.x<0&&(xe.x=0,xe.w=ye.cols),!xe.static)Se.push(xe);else for(;_(Se,xe);)xe.y++}return pe}function ae(pe,ye){for(var Se=0,Ae=pe.length;Se<Ae;Se++)if(pe[Se].i===ye)return pe[Se]}function _(pe,ye){for(var Se=0,Ae=pe.length;Se<Ae;Se++)if(M(pe[Se],ye))return pe[Se]}function N(pe,ye){return pe.filter(function(Se){return M(Se,ye)})}function W(pe){return pe.filter(function(ye){return ye.static})}function he(pe,ye,Se,Ae,Ee,xe,nt,Tt,pt){if(ye.static&&ye.isDraggable!==!0||ye.y===Ae&&ye.x===Se)return pe;Re("Moving element ".concat(ye.i," to [").concat(String(Se),",").concat(String(Ae),"] from [").concat(ye.x,",").concat(ye.y,"]"));var Rt=ye.x,tt=ye.y;typeof Se=="number"&&(ye.x=Se),typeof Ae=="number"&&(ye.y=Ae),ye.moved=!0;var U=oe(pe,nt),F=nt==="vertical"&&typeof Ae=="number"?tt>=Ae:nt==="horizontal"&&typeof Se=="number"?Rt>=Se:!1;F&&(U=U.reverse());var Y=N(U,ye),le=Y.length>0;if(le&&pt)return d(pe);if(le&&xe)return Re("Collision prevented on ".concat(ye.i,", reverting.")),ye.x=Rt,ye.y=tt,ye.moved=!1,pe;for(var ke=0,Ye=Y.length;ke<Ye;ke++){var ft=Y[ke];Re("Resolving collision between ".concat(ye.i," at [").concat(ye.x,",").concat(ye.y,"] and ").concat(ft.i," at [").concat(ft.x,",").concat(ft.y,"]")),!ft.moved&&(ft.static?pe=me(pe,ft,ye,Ee,nt,Tt):pe=me(pe,ye,ft,Ee,nt,Tt))}return pe}function me(pe,ye,Se,Ae,Ee,xe){var nt=Ee==="horizontal",Tt=Ee!=="horizontal",pt=ye.static;if(Ae){Ae=!1;var Rt={x:nt?Math.max(ye.x-Se.w,0):Se.x,y:Tt?Math.max(ye.y-Se.h,0):Se.y,w:Se.w,h:Se.h,i:"-1"};if(!_(pe,Rt))return Re("Doing reverse collision on ".concat(Se.i," up to [").concat(Rt.x,",").concat(Rt.y,"].")),he(pe,Se,nt?Rt.x:void 0,Tt?Rt.y:void 0,Ae,pt,Ee,xe)}return he(pe,Se,nt?Se.x+1:void 0,Tt?Se.y+1:void 0,Ae,pt,Ee,xe)}function fe(pe){return pe*100+"%"}function ve(pe){var ye=pe.top,Se=pe.left,Ae=pe.width,Ee=pe.height,xe="translate(".concat(Se,"px,").concat(ye,"px)");return{transform:xe,WebkitTransform:xe,MozTransform:xe,msTransform:xe,OTransform:xe,width:"".concat(Ae,"px"),height:"".concat(Ee,"px"),position:"absolute"}}function ce(pe){var ye=pe.top,Se=pe.left,Ae=pe.width,Ee=pe.height;return{top:"".concat(ye,"px"),left:"".concat(Se,"px"),width:"".concat(Ae,"px"),height:"".concat(Ee,"px"),position:"absolute"}}function oe(pe,ye){return ye==="horizontal"?H(pe):ye==="vertical"?re(pe):pe}function re(pe){return pe.slice(0).sort(function(ye,Se){return ye.y>Se.y||ye.y===Se.y&&ye.x>Se.x?1:ye.y===Se.y&&ye.x===Se.x?0:-1})}function H(pe){return pe.slice(0).sort(function(ye,Se){return ye.x>Se.x||ye.x===Se.x&&ye.y>Se.y?1:-1})}function V(pe,ye,Se,Ae,Ee){pe=pe||[];var xe=[];l.default.Children.forEach(ye,function(Tt){if(Tt?.key!=null){var pt=ae(pe,String(Tt.key));if(pt)xe.push(w(pt));else{!p&&Tt.props._grid&&console.warn("`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.");var Rt=Tt.props["data-grid"]||Tt.props._grid;Rt?(p||Q([Rt],"ReactGridLayout.children"),xe.push(w(u(u({},Rt),{},{i:Tt.key})))):xe.push(w({w:1,h:1,x:0,y:h(xe),i:String(Tt.key)}))}}});var nt=j(xe,{cols:Se});return Ee?nt:D(nt,Ae,Se)}function Q(pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout",Se=["x","y","w","h"];if(!Array.isArray(pe))throw new Error(ye+" must be an array!");for(var Ae=0,Ee=pe.length;Ae<Ee;Ae++)for(var xe=pe[Ae],nt=0;nt<Se.length;nt++)if(typeof xe[Se[nt]]!="number")throw new Error("ReactGridLayout: "+ye+"["+Ae+"]."+Se[nt]+" must be a number!")}function Te(pe){var ye=pe||{},Se=ye.verticalCompact,Ae=ye.compactType;return Se===!1?null:Ae}function Re(){var pe;v&&(pe=console).log.apply(pe,arguments)}var ne=function(){};g.noop=ne},24694:(J,g,t)=>{J.exports=t(23516).default,J.exports.utils=t(16192),J.exports.Responsive=t(70422).default,J.exports.Responsive.utils=t(55826),J.exports.WidthProvider=t(21439).default},53076:(J,g,t)=>{"use strict";t.d(g,{A:()=>b});const i=new Intl.Collator("en",{numeric:!0,sensitivity:"base"}).compare,l=1/0,s=M=>M.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),m="eexxaacctt",u="A-Z",f="a-z",p=(M,D,P)=>M.replace(u,D).replace(f,P),v={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:l,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,l],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(M,D,P)=>!0,sort:(M,D,P)=>{let{idx:T,chars:A,terms:j,interLft2:ae,interLft1:_,start:N,intraIns:W,interIns:he}=M;return T.map((me,fe)=>fe).sort((me,fe)=>A[fe]-A[me]||W[me]-W[fe]||j[fe]+ae[fe]+.5*_[fe]-(j[me]+ae[me]+.5*_[me])||he[me]-he[fe]||N[me]-N[fe]||i(D[T[me]],D[T[fe]]))}},h=(M,D)=>D==0?"":D==1?M+"??":D==l?M+"*?":M+`{0,${D}}?`,d="(?:\\b|_)";function b(M){M=Object.assign({},v,M);let{unicode:D,interLft:P,interRgt:T,intraMode:A,intraSlice:j,intraIns:ae,intraSub:_,intraTrn:N,intraDel:W,intraContr:he,intraSplit:me,interSplit:fe,intraBound:ve,intraChars:ce}=M;ae??=A,_??=A,N??=A,W??=A;let oe=M.letters??M.alpha;if(oe!=null){let le=oe.toLocaleUpperCase(),ke=oe.toLocaleLowerCase();fe=p(fe,le,ke),me=p(me,le,ke),ve=p(ve,le,ke),ce=p(ce,le,ke),he=p(he,le,ke)}let re=D?"u":"";const H='".+?"',V=new RegExp(H,"gi"+re),Q=new RegExp(`(?:\\s+|^)-(?:${ce}+|${H})`,"gi"+re);let{intraRules:Te}=M;Te==null&&(Te=le=>{let ke=v.intraSlice,Ye=0,ft=0,wt=0,Ut=0;if(/[^\d]/.test(le)){let Ke=le.length;Ke<=4?Ke>=3&&(wt=Math.min(N,1),Ke==4&&(Ye=Math.min(ae,1))):(ke=j,Ye=ae,ft=_,wt=N,Ut=W)}return{intraSlice:ke,intraIns:Ye,intraSub:ft,intraTrn:wt,intraDel:Ut}});let Re=!!me,ne=new RegExp(me,"g"+re),pe=new RegExp(fe,"g"+re),ye=new RegExp("^"+fe+"|"+fe+"$","g"+re),Se=new RegExp(he,"gi"+re);const Ae=le=>{let ke=[];le=le.replace(V,ft=>(ke.push(ft),m)),le=le.replace(ye,"").toLocaleLowerCase(),Re&&(le=le.replace(ne,ft=>ft[0]+" "+ft[1]));let Ye=0;return le.split(pe).filter(ft=>ft!="").map(ft=>ft===m?ke[Ye++]:ft)},Ee=/[^\d]+|\d+/g,xe=(le,ke=0,Ye=!1)=>{let ft=Ae(le);if(ft.length==0)return[];let wt=Array(ft.length).fill("");ft=ft.map((et,ee)=>et.replace(Se,I=>(wt[ee]=I,"")));let Ut;if(A==1)Ut=ft.map((et,ee)=>{if(et[0]==='"')return s(et.slice(1,-1));let I="";for(let K of et.matchAll(Ee)){let ue=K[0],{intraSlice:De,intraIns:He,intraSub:Fe,intraTrn:ze,intraDel:qe}=Te(ue);if(He+Fe+ze+qe==0)I+=ue+wt[ee];else{let[We,_t]=De,ct=ue.slice(0,We),Ge=ue.slice(_t),st=ue.slice(We,_t);He==1&&ct.length==1&&ct!=st[0]&&(ct+="(?!"+ct+")");let Me=st.length,ie=[ue];if(Fe)for(let ge=0;ge<Me;ge++)ie.push(ct+st.slice(0,ge)+ce+st.slice(ge+1)+Ge);if(ze)for(let ge=0;ge<Me-1;ge++)st[ge]!=st[ge+1]&&ie.push(ct+st.slice(0,ge)+st[ge+1]+st[ge]+st.slice(ge+2)+Ge);if(qe)for(let ge=0;ge<Me;ge++)ie.push(ct+st.slice(0,ge+1)+"?"+st.slice(ge+1)+Ge);if(He){let ge=h(ce,1);for(let z=0;z<Me;z++)ie.push(ct+st.slice(0,z)+ge+st.slice(z)+Ge)}I+="(?:"+ie.join("|")+")"+wt[ee]}}return I});else{let et=h(ce,ae);ke==2&&ae>0&&(et=")("+et+")("),Ut=ft.map((ee,I)=>ee[0]==='"'?s(ee.slice(1,-1)):ee.split("").map((K,ue,De)=>(ae==1&&ue==0&&De.length>1&&K!=De[ue+1]&&(K+="(?!"+K+")"),K)).join(et)+wt[I])}let Ke=P==2?d:"",it=T==2?d:"",At=it+h(M.interChars,M.interIns)+Ke;return ke>0?Ye?Ut=Ke+"("+Ut.join(")"+it+"|"+Ke+"(")+")"+it:(Ut="("+Ut.join(")("+At+")(")+")",Ut="(.??"+Ke+")"+Ut+"("+it+".*)"):(Ut=Ut.join(At),Ut=Ke+Ut+it),[new RegExp(Ut,"i"+re),ft,wt]},nt=(le,ke,Ye)=>{let[ft]=xe(ke);if(ft==null)return null;let wt=[];if(Ye!=null)for(let Ut=0;Ut<Ye.length;Ut++){let Ke=Ye[Ut];ft.test(le[Ke])&&wt.push(Ke)}else for(let Ut=0;Ut<le.length;Ut++)ft.test(le[Ut])&&wt.push(Ut);return wt};let Tt=!!ve,pt=new RegExp(fe,re),Rt=new RegExp(ve,re);const tt=(le,ke,Ye)=>{let[ft,wt,Ut]=xe(Ye,1),[Ke]=xe(Ye,2),it=wt.length,At=le.length,et=Array(At).fill(0),ee={idx:Array(At),start:et.slice(),chars:et.slice(),terms:et.slice(),interIns:et.slice(),intraIns:et.slice(),interLft2:et.slice(),interRgt2:et.slice(),interLft1:et.slice(),interRgt1:et.slice(),ranges:Array(At)},I=P==1||T==1,K=0;for(let ue=0;ue<le.length;ue++){let De=ke[le[ue]],He=De.match(ft),Fe=He.index+He[1].length,ze=Fe,qe=!1,We=0,_t=0,ct=0,Ge=0,st=0,Me=0,ie=0,ge=0,z=[];for(let be=0,Qe=2;be<it;be++,Qe+=2){let Bt=He[Qe].toLocaleLowerCase(),nn=wt[be],bt=nn[0]=='"'?nn.slice(1,-1):nn+Ut[be],at=bt.length,$t=Bt.length,On=Bt==bt;if(!On&&He[Qe+1].length>=at){let Ct=He[Qe+1].toLocaleLowerCase().indexOf(bt);Ct>-1&&(z.push(ze,$t,Ct,at),ze+=U(He,Qe,Ct,at),Bt=bt,$t=at,On=!0,be==0&&(Fe=ze))}if(I||On){let Ct=ze-1,Zt=ze+$t,Wn=!1,Zn=!1;if(Ct==-1||pt.test(De[Ct]))On&&We++,Wn=!0;else{if(P==2){qe=!0;break}if(Tt&&Rt.test(De[Ct]+De[Ct+1]))On&&_t++,Wn=!0;else if(P==1){let xt=He[Qe+1],Xe=ze+$t;if(xt.length>=at){let gn=0,Qt=!1,Dt=new RegExp(bt,"ig"+re),hn;for(;hn=Dt.exec(xt);){gn=hn.index;let cn=Xe+gn,an=cn-1;if(an==-1||pt.test(De[an])){We++,Qt=!0;break}else if(Rt.test(De[an]+De[cn])){_t++,Qt=!0;break}}Qt&&(Wn=!0,z.push(ze,$t,gn,at),ze+=U(He,Qe,gn,at),Bt=bt,$t=at,On=!0,be==0&&(Fe=ze))}if(!Wn){qe=!0;break}}}if(Zt==De.length||pt.test(De[Zt]))On&&ct++,Zn=!0;else{if(T==2){qe=!0;break}if(Tt&&Rt.test(De[Zt-1]+De[Zt]))On&&Ge++,Zn=!0;else if(T==1){qe=!0;break}}On&&(st+=at,Wn&&Zn&&Me++)}if($t>at&&(ge+=$t-at),be>0&&(ie+=He[Qe-1].length),!M.intraFilt(bt,Bt,ze)){qe=!0;break}be<it-1&&(ze+=$t+He[Qe+1].length)}if(!qe){ee.idx[K]=le[ue],ee.interLft2[K]=We,ee.interLft1[K]=_t,ee.interRgt2[K]=ct,ee.interRgt1[K]=Ge,ee.chars[K]=st,ee.terms[K]=Me,ee.interIns[K]=ie,ee.intraIns[K]=ge,ee.start[K]=Fe;let be=De.match(Ke),Qe=be.index+be[1].length,Bt=z.length,nn=Bt>0?0:1/0,bt=Bt-4;for(let Ct=2;Ct<be.length;){let Zt=be[Ct].length;if(nn<=bt&&z[nn]==Qe){let Wn=z[nn+1],Zn=z[nn+2],xt=z[nn+3],Xe=Ct,gn="";for(let Qt=0;Qt<Wn;Xe++)gn+=be[Xe],Qt+=be[Xe].length;be.splice(Ct,Xe-Ct,gn),Qe+=U(be,Ct,Zn,xt),nn+=4}else Qe+=Zt,Ct++}Qe=be.index+be[1].length;let at=ee.ranges[K]=[],$t=Qe,On=Qe;for(let Ct=2;Ct<be.length;Ct++){let Zt=be[Ct].length;Qe+=Zt,Ct%2==0?On=Qe:Zt>0&&(at.push($t,On),$t=On=Qe)}On>$t&&at.push($t,On),K++}}if(K<le.length)for(let ue in ee)ee[ue]=ee[ue].slice(0,K);return ee},U=(le,ke,Ye,ft)=>{let wt=le[ke]+le[ke+1].slice(0,Ye);return le[ke-1]+=wt,le[ke]=le[ke+1].slice(Ye,Ye+ft),le[ke+1]=le[ke+1].slice(Ye+ft),wt.length},F=5,Y=(le,ke,Ye,ft=1e3,wt)=>{Ye=Ye?Ye===!0?F:Ye:0;let Ut=null,Ke=null,it=[];ke=ke.replace(Q,ue=>{let De=ue.trim().slice(1);return De[0]==='"'&&(De=s(De.slice(1,-1))),it.push(De),""});let At=Ae(ke),et;if(it.length>0){if(et=new RegExp(it.join("|"),"i"+re),At.length==0){let ue=[];for(let De=0;De<le.length;De++)et.test(le[De])||ue.push(De);return[ue,null,null]}}else if(At.length==0)return[null,null,null];if(Ye>0){let ue=Ae(ke);if(ue.length>1){let De=ue.slice().sort((Fe,ze)=>ze.length-Fe.length);for(let Fe=0;Fe<De.length;Fe++){if(wt?.length==0)return[[],null,null];wt=nt(le,De[Fe],wt)}if(ue.length>Ye)return[wt,null,null];Ut=w(ue).map(Fe=>Fe.join(" ")),Ke=[];let He=new Set;for(let Fe=0;Fe<Ut.length;Fe++)if(He.size<wt.length){let ze=wt.filter(We=>!He.has(We)),qe=nt(le,Ut[Fe],ze);for(let We=0;We<qe.length;We++)He.add(qe[We]);Ke.push(qe)}else Ke.push([])}}Ut==null&&(Ut=[ke],Ke=[wt?.length>0?wt:nt(le,ke)]);let ee=null,I=null;if(it.length>0&&(Ke=Ke.map(ue=>ue.filter(De=>!et.test(le[De])))),Ke.reduce((ue,De)=>ue+De.length,0)<=ft){ee={},I=[];for(let ue=0;ue<Ke.length;ue++){let De=Ke[ue];if(De==null||De.length==0)continue;let He=Ut[ue],Fe=tt(De,le,He),ze=M.sort(Fe,le,He);if(ue>0)for(let qe=0;qe<ze.length;qe++)ze[qe]+=I.length;for(let qe in Fe)ee[qe]=(ee[qe]??[]).concat(Fe[qe]);I=I.concat(ze)}}return[[].concat(...Ke),ee,I]};return{search:(...le)=>Y(...le),split:Ae,filter:nt,info:tt,sort:M.sort}}const y=(()=>{let M={A:"\xC1\xC0\xC3\xC2\xC4\u0104",a:"\xE1\xE0\xE3\xE2\xE4\u0105",E:"\xC9\xC8\xCA\xCB\u0116",e:"\xE9\xE8\xEA\xEB\u0119",I:"\xCD\xCC\xCE\xCF\u012E",i:"\xED\xEC\xEE\xEF\u012F",O:"\xD3\xD2\xD4\xD5\xD6",o:"\xF3\xF2\xF4\xF5\xF6",U:"\xDA\xD9\xDB\xDC\u016A\u0172",u:"\xFA\xF9\xFB\xFC\u016B\u0173",C:"\xC7\u010C\u0106",c:"\xE7\u010D\u0107",L:"\u0141",l:"\u0142",N:"\xD1\u0143",n:"\xF1\u0144",S:"\u0160\u015A",s:"\u0161\u015B",Z:"\u017B\u0179",z:"\u017C\u017A"},D=new Map,P="";for(let j in M)M[j].split("").forEach(ae=>{P+=ae,D.set(ae,j)});let T=new RegExp(`[${P}]`,"g"),A=j=>D.get(j);return j=>{if(typeof j=="string")return j.replace(T,A);let ae=Array(j.length);for(let _=0;_<j.length;_++)ae[_]=j[_].replace(T,A);return ae}})();function w(M){M=M.slice();let D=M.length,P=[M.slice()],T=new Array(D).fill(0),A=1,j,ae;for(;A<D;)T[A]<A?(j=A%2&&T[A],ae=M[A],M[A]=M[j],M[j]=ae,++T[A],A=1,P.push(M.slice())):(T[A]=0,++A);return P}const S=(M,D)=>D?`<mark>${M}</mark>`:M,O=(M,D)=>M+D;function R(M,D,P=S,T="",A=O){T=A(T,P(M.substring(0,D[0]),!1))??T;for(let j=0;j<D.length;j+=2){let ae=D[j],_=D[j+1];T=A(T,P(M.substring(ae,_),!0))??T,j<D.length-3&&(T=A(T,P(M.substring(D[j+1],D[j+2]),!1))??T)}return T=A(T,P(M.substring(D[D.length-1]),!1))??T,T}b.latinize=y,b.permute=M=>w([...Array(M.length).keys()]).sort((P,T)=>{for(let A=0;A<P.length;A++)if(P[A]!=T[A])return P[A]-T[A];return 0}).map(P=>P.map(T=>M[T])),b.highlight=R},22055:(J,g,t)=>{"use strict";t.d(g,{A:()=>tt});var i=t(7077);const l=window,{navigator:s,navigator:{userAgentData:m}}=l,u=m?.brands,f=/ (?:Headless)?Chrome\/\d+/;let p;function v(){return p===void 0&&(p=s.userAgent),p}const h=(0,i.bq)(u)&&u.length?(0,i.Of)(i.VD,u,[F=>F?.brand==="Chromium"])!==void 0:(0,i.Of)(i.MI,f,[v()]),d=h&&m===void 0,{prototype:b}=Document,{close:y,createElement:w,open:S}=b,O=(0,i.M4)(b,"body"),R=DOMException,{DATA_CLONE_ERR:M}=R,D=(0,i.M4)(R.prototype,"code"),{remove:P,setAttribute:T}=Element.prototype,A=(0,i.M4)(HTMLElement.prototype,"style"),j=(0,i.M4)(HTMLIFrameElement.prototype,"contentWindow"),{prototype:ae}=Node,{appendChild:_}=ae,N=(0,i.M4)(ae,"lastChild");if(i.T$){let F=!0;const Y=(0,i.Qd)("@@lockerDebugMode"),le=100,ke=5,Ye=100,ft=Ye/2,wt="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",Ut={style:"margin-left:15px; margin-bottom: 3px;"},Ke={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},it={style:"color: #9d288c; font-weight: bold"},At={style:"color: #b17ab0"},et={style:"color: #16239f"},ee={style:"color: #236d25"},I={style:"color: #606367"},K={style:"color: #b82619"},ue=function(qe){if(qe==null)return["span",I,`${qe}`];if(typeof qe=="boolean")return["span",et,qe];if(typeof qe=="number")return(0,i.pL)(qe)?["span",et,qe]:["span",et,`${qe>=0?"":"-"}Infinity`];if(typeof qe=="bigint")return["span",ee,`${qe}n`];if(typeof qe=="string"){let We=qe;const{length:_t}=We;if(_t>Ye){const ct=(0,i.Of)(i.A$,We,[0,ft]),Ge=(0,i.Of)(i.A$,We,[_t-ft-1,_t]);We=ct+i.Bq+Ge}return["span",K,(0,i.iq)(We)]}return(0,i.bq)(qe)?["span",{},`Array(${qe.length})`]:(0,i.Gv)(qe)?["span",{},`{${i.Bq}}`]:["span",K,(0,i.gc)(qe)]},De=function(qe,We){const _t=We?.isChildElement,ct=[];let Ge=0;_t&&(ct[Ge++]=["span",it,We.childKey],ct[Ge++]=["span",{},": "]);const st=(0,i.Of)(i._0,qe,[]);let Me=(0,i.mX)(qe);if(st===i.B7)(0,i.Of)(i.xo,Me,["description"])||(0,i.Of)(i.DJ,Me,["description"]);else if(st===i.wG){const{length:Bt}=qe;Me=(0,i.Of)(i.wo,Me,[nn=>{const bt=typeof nn=="string"?+nn:-1;return bt<0||bt>=Bt||!(0,i.YU)(bt)}])}const ie=(0,i.go)(qe),ge=(0,i.Of)(i.yT,ie,[i.gc]),{length:z}=ge;if((0,i.bq)(qe)){ct[Ge++]=["span",{},`(${qe.length}) [`];for(let Bt=0,nn=(0,i.nf)(z,le);Bt<nn;Bt+=1){const bt=ie[Bt],at=ge[Bt],$t=qe[bt];at!=="length"&&((0,i.rT)((0,i.er)(at))?(ct[Ge++]=["span",{},Bt?", ":""],ct[Ge++]=["span",I,(0,i.gc)(at)],ct[Ge++]=["span",{},": "],ct[Ge++]=ue($t)):(ct[Ge++]=["span",{},Bt?", ":""],ct[Ge++]=ue($t)))}return z>le&&(ct[Ge++]=["span",null,["span",{},`, ${i.Bq}`]]),ct[Ge++]=["span",{},"]"],ct}let be,Qe="{";switch(st){case i.F2:case i.H1:case i.cO:case i.wG:case i.B7:{let Bt=et;st===i.F2?Bt=ee:st===i.B7&&(Bt=K),Qe=`${(0,i.Of)(i.A$,st,[8,-1])} {`,be=["span",Bt,`${(0,i.gc)((0,i.Np)(qe))}`];break}}ct[Ge++]=["span",{},Qe],be&&(ct[Ge++]=be,z&&(ct[Ge++]=["span",{},", "]));for(let Bt=0,nn=(0,i.nf)(z,ke);Bt<nn;Bt+=1){const bt=ie[Bt],at=ge[Bt],$t=qe[bt];ct[Ge++]=["span",{},Bt?", ":""],ct[Ge++]=["span",I,at],ct[Ge++]=["span",{},": "],ct[Ge++]=ue($t)}return z>ke&&(ct[Ge++]=["span",null,["span",{},`, ${i.Bq}`]]),ct[Ge++]=["span",{},"}"],ct},He=function(qe){const We=(0,i.go)(qe),_t=(0,i.Of)(i.yT,We,[i.gc]),ct=(0,i.bq)(qe);if(ct){const Me=(0,i.Of)(i.PR,_t,["length"]),ie=(0,i.Of)(i.aE,We,[Me,1])[0];(0,i.Of)(i.sr,We,[ie]);const ge=(0,i.Of)(i.aE,_t,[Me,1])[0];(0,i.Of)(i.sr,_t,[ge])}const Ge=[];let st=0;for(let Me=0,{length:ie}=_t;Me<ie;Me+=1){const ge=We[Me],z=_t[Me],be=qe[ge];if((0,i.Gv)(be))Ge[st++]=["div",{},["object",{object:be,config:{childKey:(0,i.gc)(z),isChildElement:!0}}]];else{let Qe=it;ct&&z==="length"&&(Qe=At),Ge[st++]=["div",Ut,["span",Qe,z],["span",{},": "],ue(be)]}}return Ge};let{devtoolsFormatters:Fe}=l;(0,i.bq)(Fe)||(Fe=[],(0,i._E)(l,"devtoolsFormatters",{__proto__:null,configurable:!0,value:Fe,writable:!0})),Fe[Fe.length]={header(ze,qe){if(F&&(F=!1,(0,i._E)(l,Y,{__proto__:null,configurable:!0,value:!0,writable:!0})),!(0,i.U)(ze))return null;const We=["div",{style:`${wt}${qe!=null&&qe.isChildElement?"":"font-style: italic;"}`}];return(0,i.Of)(i.sr,We,De(ze,qe)),["div",{},We]},hasBody(){return!0},body(ze){const qe=["div",Ke];return(0,i.Of)(i.sr,qe,He(ze)),qe}}}const W=(0,i.Dj)(new i.LS);function he(F){var Y,le,ke,Ye,ft;const wt=Array,Ut=ArrayBuffer,Ke=Error,it=Number,At=Object,et=Proxy,ee=Reflect,I=RegExp,K=String,ue=Symbol,De=TypeError,He=WeakMap,Fe=WeakSet,{for:ze,toStringTag:qe}=ue,{apply:We,construct:_t,defineProperty:ct,deleteProperty:Ge,get:st,getOwnPropertyDescriptor:Me,getPrototypeOf:ie,has:ge,isExtensible:z,ownKeys:be,preventExtensions:Qe,set:Bt,setPrototypeOf:nn}=ee,{assign:bt,defineProperties:at,freeze:$t,getOwnPropertyDescriptor:On,getOwnPropertyDescriptors:Ct,isFrozen:Zt,isSealed:Wn,keys:Zn,prototype:xt,seal:Xe}=At,{hasOwnProperty:gn,propertyIsEnumerable:Qt,toString:Dt}=xt,{hasOwn:hn}=At,{__defineGetter__:cn,__defineSetter__:an,__lookupGetter__:Or,__lookupSetter__:Ln}=xt,En=typeof hn=="function"?hn:(Jr,Qi)=>We(gn,Jr,[Qi]),Gn=(Y=(le=F??(typeof globalThis<"u"?globalThis:void 0))!=null?le:typeof self<"u"?self:void 0)!=null?Y:(ct(xt,"globalThis",{__proto__:null,configurable:!0,get(){return Ge(xt,"globalThis"),this!=null?this:self}}),globalThis),rr=typeof F!="object"||F===null,sr=!rr,pi=sr?ze("@@lockerDebugMode"):void 0,yi="$LWS",jr=sr?ze("@@lockerNearMembraneSerializedValue"):void 0,ui=sr?ze("@@lockerNearMembrane"):void 0,bi=ze("@@lockerNearMembraneUndefinedValue"),ri=20,hi=`${function Jr(){return Jr.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),Si=hi&&sr,Kr="Illegal property access.",xi=rr?/\w*$/:void 0;let Ai;const Pi=typeof BigInt=="function",{isArray:io}=wt,{includes:lo,indexOf:Gr,slice:un}=wt.prototype,{isView:qn}=Ut,kn=Pi?BigInt.prototype.valueOf:void 0,{valueOf:St}=Boolean.prototype,{toString:ln}=Ke.prototype,{bind:An,toString:Cr}=Function.prototype,{stringify:_i}=JSON,{isInteger:Sn}=it,{valueOf:ir}=it.prototype,{revocable:mt}=et,{prototype:fn}=I,{exec:gt,test:tn,toString:Vn}=fn,Ur=rr?(ke=We(Or,fn,["flags"]))!=null?ke:function(){const Qi=We(Vn,this,[]);return We(gt,xi,[Qi])[0]}:void 0,$r=We(Or,fn,["source"]),{replace:Pr,slice:zr,valueOf:gi}=K.prototype,{toString:$i,valueOf:eo}=ue.prototype,ki=(Ye=Gn.BigInt64Array)==null?void 0:Ye.prototype,so=(ft=Gn.BigUint64Array)==null?void 0:ft.prototype,{prototype:Ho}=Float32Array,{prototype:ra}=Float64Array,{prototype:So}=Int8Array,{prototype:gr}=Int16Array,{prototype:di}=Int32Array,{prototype:Vi}=Uint8Array,{prototype:Ro}=Uint16Array,{prototype:na}=Uint32Array,ta=Vi.__proto__,aa=We(Or,ta,["length"]),{prototype:vi}=He,{delete:to,has:$o,set:ja,[qe]:hs}=vi,{prototype:ro}=Fe,{add:as,has:rn,delete:Dr,[qe]:Lr}=ro,li=sr&&typeof console=="object"&&console!==null?console:void 0,Zi=li?.info,Di=rr?eval:void 0;let wo=!1,Go=!1;function Ko(){return!1}const Ie=hi?()=>{if(wo)return;wo=!0;const Jr=(()=>{try{var Yn;Ke.prepareStackTrace=(se,G)=>G;const Z=new Ke().stack;return Ge(Ke,"prepareStackTrace"),io(Z)&&Z.length>0?(Yn=Z[0])==null?void 0:Yn.constructor:void 0}catch{}})();if(typeof Jr!="function")return;const{getEvalOrigin:Qi,getFunctionName:Fo,toString:No}=Jr.prototype,Jo=new I(`${We(Pr,yi,[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`),br=function(Z,se){let G="";try{G=We(ln,Z,[])}catch{G="<error>"}let B=!1;for(let Pe=0,{length:dt}=se;Pe<dt;Pe+=1){const Lt=se[Pe],Pt=We(Fo,Lt,[]);let $e=!1;if(typeof Pt=="string"&&Pt!=="eval"&&We(tn,Jo,[Pt])&&($e=!0),!$e){const ut=We(Qi,Lt,[]);typeof ut=="string"&&We(tn,Jo,[ut])&&($e=!0)}if($e){B||(B=!0,G+=` at LWS`);continue}else B=!1;try{G+=` at ${We(No,Lt,[])}`}catch{}}return G};try{Ke.prepareStackTrace=function(Z,se){return br(Z,se)}}catch{}try{const{stackTraceLimit:Yn}=Ke;(typeof Yn!="number"||Yn<ri)&&(Ke.stackTraceLimit=ri)}catch{}}:yt;function yt(){}const on=rr?Jr=>We(kn,Jr,[]):yt,_n=rr?Jr=>We(St,Jr,[]):yt,er=rr?Jr=>We(ir,Jr,[]):yt,or=rr?Jr=>{if(Jr!==fn){const Qi=We($r,Jr,[]);return _i({__proto__:null,flags:We(Ur,Jr,[]),source:Qi})}}:yt,Er=rr?Jr=>We(gi,Jr,[]):yt,Mi=rr?Jr=>We(eo,Jr,[]):yt,Ui=rr?Jr=>{switch(We(Dt,Jr,[])){case"[object Boolean]":return _n(Jr);case"[object Number]":return er(Jr);case"[object RegExp]":return or(Jr);case"[object String]":return Er(Jr);case"[object Object]":try{return Mi(Jr)}catch{}if(Pi)try{return on(Jr)}catch{}default:return}}:yt,Nn=rr?Jr=>{try{return Mi(Jr)}catch{}if(Pi)try{return on(Jr)}catch{}try{return _n(Jr)}catch{}try{return er(Jr)}catch{}try{return or(Jr)}catch{}try{return Er(Jr)}catch{}}:yt;function cr(Jr){if(typeof Jr=="string")return Jr;try{if(typeof Jr=="object"&&Jr!==null){const Qi=We(Dt,Jr,[]);return Qi==="[object Symbol]"?We($i,Jr,[]):Qi}return typeof Jr=="function"?We(Cr,Jr,[]):K(Jr)}catch{}return"[Object Unknown]"}function ni(Jr){return nn(Jr,null),Jr.delete=to,Jr.has=$o,Jr.set=ja,Jr[qe]=hs,nn(Jr,vi),Jr}function Xr(Jr){return nn(Jr,null),Jr.add=as,Jr.delete=Dr,Jr.has=rn,Jr[qe]=Lr,nn(Jr,ro),Jr}return function(Qi,Fo,No){rr&&(No=void 0);const{distortionCallback:Jo,liveTargetCallback:br,revokedProxyCallback:Yn}=bt({__proto__:null},No),Z={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},se={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},G=ni(new He),B=ni(new He);let Pe,dt,Lt,Pt,$e,ut,zt,Ht,Fn,Cn,tr,Jn,ei,Ci,zi,co,Xo,Eo,Yo,Xn,fr,mr,yr,Rr,ai,jt,Pn,nr,Ir,fi,Ti,Oe,pn,Qn,Sr,hr,kr,Ve,Ot,wn,Wt,Yt,zn=0,Nr=!1,si=rr,Ki=rr;const Bi=rr?(In,Kn,Fr)=>{Fr[Kn]=!1;const ci=Ts(In);let Le;try{Ht(ci,Kn,(Ue,rt,ht,Gt,xn,Hn,wr)=>{Le=gu(rt,ht,Gt,xn,Hn,wr)})}catch(Ue){var te;const rt=(te=Yt)!=null?te:Ue;throw Yt=void 0,rt}Le?ct(In,Kn,Le):Ge(In,Kn)}:yt;let Xi=Si?()=>{try{En(Gn,pi)&&(Xi=()=>!0,Ie(),fr())}catch{Xi=Ko}return!1}:Ko;const vo=rr?()=>{Ir=Xr(new Fe)}:yt;function ea(In,Kn){let Fr;try{Fr=jt(In,(...te)=>{const Ue={};for(let rt=0,{length:ht}=te;rt<ht;rt+=7){const Gt=te[rt];Ue[Gt]=gu(te[rt+1],te[rt+2],te[rt+3],te[rt+4],te[rt+5],te[rt+6])}at(Kn,Ue)})}catch(te){var ci;const Ue=(ci=Yt)!=null?ci:te;throw Yt=void 0,Ue}let Le;typeof Fr=="function"?(Fr(),Le=Yt,Yt=void 0):Le=null,nn(Kn,Le)}function la(In){const Kn=In&1,Fr=Kn?Z:se,ci=Kn?Lt:Pt;return function(te,Ue,rt){zn=In;const ht=Kn?rt:Ue,{length:Gt}=ht;if(Gt!==0){var xn;return this[(xn=Fr[Gt])!=null?xn:Fr.n](te,Ue,rt)}const{foreignTargetPointer:Hn}=this,wr=Kn?Ue:rt;let Wr;try{Wr=ci(Hn,typeof wr=="object"&&wr!==null||typeof wr=="function"?Ts(wr):typeof wr>"u"?void 0:wr)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function ss(In){const Kn=In&1,Fr=Kn?Z:se,ci=Kn?Lt:Pt;return function(te,Ue,rt){zn=In;const ht=Kn?rt:Ue,{length:Gt}=ht;if(Gt!==1){var xn;return this[(xn=Fr[Gt])!=null?xn:Fr.n](te,Ue,rt)}const{foreignTargetPointer:Hn}=this,wr=Kn?Ue:rt;let Wr;try{const{0:dn}=ht;Wr=ci(Hn,typeof wr=="object"&&wr!==null||typeof wr=="function"?Ts(wr):typeof wr>"u"?void 0:wr,typeof dn=="object"&&dn!==null||typeof dn=="function"?Ts(dn):typeof dn>"u"?void 0:dn)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function Rs(In){const Kn=In&1,Fr=Kn?Z:se,ci=Kn?Lt:Pt;return function(te,Ue,rt){zn=In;const ht=Kn?rt:Ue,{length:Gt}=ht;if(Gt!==2){var xn;return this[(xn=Fr[Gt])!=null?xn:Fr.n](te,Ue,rt)}const{foreignTargetPointer:Hn}=this,wr=Kn?Ue:rt;let Wr;try{const{0:dn,1:yn}=ht;Wr=ci(Hn,typeof wr=="object"&&wr!==null||typeof wr=="function"?Ts(wr):typeof wr>"u"?void 0:wr,typeof dn=="object"&&dn!==null||typeof dn=="function"?Ts(dn):typeof dn>"u"?void 0:dn,typeof yn=="object"&&yn!==null||typeof yn=="function"?Ts(yn):typeof yn>"u"?void 0:yn)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function Ds(In){const Kn=In&1,Fr=Kn?Z:se,ci=Kn?Lt:Pt;return function(te,Ue,rt){zn=In;const ht=Kn?rt:Ue,{length:Gt}=ht;if(Gt!==3){var xn;return this[(xn=Fr[Gt])!=null?xn:Fr.n](te,Ue,rt)}const{foreignTargetPointer:Hn}=this,wr=Kn?Ue:rt;let Wr;try{const{0:dn,1:yn,2:ar}=ht;Wr=ci(Hn,typeof wr=="object"&&wr!==null||typeof wr=="function"?Ts(wr):typeof wr>"u"?void 0:wr,typeof dn=="object"&&dn!==null||typeof dn=="function"?Ts(dn):typeof dn>"u"?void 0:dn,typeof yn=="object"&&yn!==null||typeof yn=="function"?Ts(yn):typeof yn>"u"?void 0:yn,typeof ar=="object"&&ar!==null||typeof ar=="function"?Ts(ar):typeof ar>"u"?void 0:ar)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function Is(In){const Kn=In&1,Fr=Kn?Z:se,ci=Kn?Lt:Pt;return function(te,Ue,rt){zn=In;const ht=Kn?rt:Ue,{length:Gt}=ht;if(Gt!==4){var xn;return this[(xn=Fr[Gt])!=null?xn:Fr.n](te,Ue,rt)}const{foreignTargetPointer:Hn}=this,wr=Kn?Ue:rt;let Wr;try{const{0:dn,1:yn,2:ar,3:wi}=ht;Wr=ci(Hn,typeof wr=="object"&&wr!==null||typeof wr=="function"?Ts(wr):typeof wr>"u"?void 0:wr,typeof dn=="object"&&dn!==null||typeof dn=="function"?Ts(dn):typeof dn>"u"?void 0:dn,typeof yn=="object"&&yn!==null||typeof yn=="function"?Ts(yn):typeof yn>"u"?void 0:yn,typeof ar=="object"&&ar!==null||typeof ar=="function"?Ts(ar):typeof ar>"u"?void 0:ar,typeof wi=="object"&&wi!==null||typeof wi=="function"?Ts(wi):typeof wi>"u"?void 0:wi)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function nu(In){const Kn=In&1,Fr=Kn?Z:se,ci=Kn?Lt:Pt;return function(te,Ue,rt){zn=In;const ht=Kn?rt:Ue,{length:Gt}=ht;if(Gt!==5){var xn;return this[(xn=Fr[Gt])!=null?xn:Fr.n](te,Ue,rt)}const{foreignTargetPointer:Hn}=this,wr=Kn?Ue:rt;let Wr;try{const{0:dn,1:yn,2:ar,3:wi,4:mi}=ht;Wr=ci(Hn,typeof wr=="object"&&wr!==null||typeof wr=="function"?Ts(wr):typeof wr>"u"?void 0:wr,typeof dn=="object"&&dn!==null||typeof dn=="function"?Ts(dn):typeof dn>"u"?void 0:dn,typeof yn=="object"&&yn!==null||typeof yn=="function"?Ts(yn):typeof yn>"u"?void 0:yn,typeof ar=="object"&&ar!==null||typeof ar=="function"?Ts(ar):typeof ar>"u"?void 0:ar,typeof wi=="object"&&wi!==null||typeof wi=="function"?Ts(wi):typeof wi>"u"?void 0:wi,typeof mi=="object"&&mi!==null||typeof mi=="function"?Ts(mi):typeof mi>"u"?void 0:mi)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function Ls(In){const Kn=In&1,Fr=Kn?Lt:Pt;return function(Le,te,Ue){zn=In;const{foreignTargetPointer:rt}=this,ht=Kn?Ue:te,{length:Gt}=ht,xn=Kn?te:Ue;let Hn=2;const wr=new wt(Gt+Hn);wr[0]=rt;let Wr;try{wr[1]=typeof xn=="object"&&xn!==null||typeof xn=="function"?Ts(xn):typeof xn>"u"?void 0:xn;for(let dn=0;dn<Gt;dn+=1){const yn=ht[dn];wr[Hn++]=typeof yn=="object"&&yn!==null||typeof yn=="function"?Ts(yn):typeof yn>"u"?void 0:yn}Wr=We(Fr,void 0,wr)}catch(dn){var vt;const yn=(vt=Yt)!=null?vt:dn;throw Yt=void 0,yn}let Vt;return typeof Wr=="function"?(Wr(),Vt=Yt,Yt=void 0):Vt=Wr,Vt}}function gu(In,Kn,Fr,ci,Le,te){const Ue={__proto__:null};return In!==bi&&(Ue.configurable=In),Kn!==bi&&(Ue.enumerable=Kn),Fr!==bi&&(Ue.writable=Fr),Le!==bi&&(typeof Le=="function"?(Le(),Ue.get=Yt,Yt=void 0):Ue.get=void 0),te!==bi&&(typeof te=="function"?(te(),Ue.set=Yt,Yt=void 0):Ue.set=void 0),ci!==bi&&(typeof ci=="function"?(ci(),Ue.value=Yt,Yt=void 0):Ue.value=ci),Ue}function Us(In){return()=>{Yt=In}}const Iu=rr?()=>{si=!1,Ki=!1,vo()}:yt,Wu=rr?In=>{let Kn=G.get(In);if(Kn===void 0){const Fr=Eo(Ts(In));typeof Fr=="function"&&(Fr(),Kn=Yt,Yt=void 0,Kn&&G.set(In,Kn))}return Kn}:yt,rl=rr?In=>In===(kr===void 0?kr=Ts(xt):kr):Ko,Hu=rr?In=>In===(Oe===void 0?Oe=Ts(Ho):Oe)||In===(pn===void 0?pn=Ts(ra):pn)||In===(Qn===void 0?Qn=Ts(So):Qn)||In===(Sr===void 0?Sr=Ts(gr):Sr)||In===(hr===void 0?hr=Ts(di):hr)||In===(Ot===void 0?Ot=Ts(Vi):Ot)||In===(wn===void 0?wn=Ts(Ro):wn)||In===(Wt===void 0?Wt=Ts(na):Wt)||In===(Ve===void 0?Ve=Ts(ta):Ve)||In===(fi===void 0?fi=ki?Ts(ki):yt:fi)||In===(Ti===void 0?Ti=so?Ts(so):yt:Ti):Ko;function Ts(In,Kn=dt){let Fr=B.get(In);if(Fr)return Fr;let ci=0,Le="",te=0;if(Yn&&Yn(In))return Fr=Kn(Us(In),64,ci,Le,te),B.set(In,Fr),Fr;let Ue,rt=16;if(Jo){if(Ue=Jo(In),Ue!==In&&typeof Ue!=typeof In)throw new De(`Invalid distortion ${cr(In)}.`)}else Ue=In;let ht=!0;if(typeof Ue=="function"){ht=!1,ci=0,rt=4;try{"prototype"in Ue||(rt|=8);const Gt=Me(In,"length");if(Gt){nn(Gt,null);const{value:Hn}=Gt;typeof Hn=="number"&&(ci=Hn)}const xn=void 0}catch{ht=!0}}else if(qn(Ue)){ht=!1,rt=2;try{te=We(aa,Ue,[]),rt|=32}catch{ht=!0}}if(ht)try{io(Ue)&&(rt=1)}catch{rt=64}return Fr=Kn(Us(Ue),rt,ci,Le,te),B.set(In,Fr),Fr}const Al=rr?In=>{if(Go)return;Go=!0;const Kn=io(In)&&In.length>0,Fr=Kn?{__proto__:null}:void 0,ci=Kn?(wr,Wr)=>We(lo,In,[Wr])?{configurable:!1,enumerable:We(Qt,wr,[Wr]),get:Le(Wr),set:void 0}:Me(wr,Wr):void 0,Le=Kn?wr=>{let Wr=Fr[wr];return Wr===void 0&&(Wr=We(An,rt,[]),Fr[wr]=Wr),Wr}:void 0,te=Kn?(wr,Wr)=>We(lo,In,[Wr])?Le(Wr):We(Or,wr,[Wr]):void 0,Ue=Kn?(wr,Wr)=>We(lo,In,[Wr])?void 0:We(Ln,wr,[Wr]):void 0,rt=Kn?()=>Gn:void 0,ht=wr=>{const{length:Wr}=wr,vt=Wr===2;return new et(wr,{apply(Vt,dn,yn){if(yn.length>=Wr){const ar=vt?dn:yn[0];if(typeof ar=="object"&&ar!==null||typeof ar=="function"){const wi=vt?yn[0]:yn[1],mi=Wu(ar);mi!=null&&mi[wi]&&ar[wi]}}return We(wr,dn,yn)}})},Gt=(wr,Wr)=>new et(wr,{apply(vt,Vt,dn){if(dn.length&&(typeof Vt=="object"&&Vt!==null||typeof Vt=="function")){const{0:yn}=dn,ar=Wu(Vt);if(ar!=null&&ar[yn]&&Vt[yn],Kn&&Vt===Gn)return Wr(Vt,yn)}return We(wr,Vt,dn)}}),xn=wr=>new et(wr,{apply(Wr,vt,Vt){if(Vt.length>1){const{0:dn,1:yn}=Vt;if(typeof dn=="object"&&dn!==null||typeof dn=="function"){const ar=Wu(dn);if(ar!=null&&ar[yn]&&dn[yn],Kn&&dn===Gn)return ci(dn,yn)}}return We(wr,vt,Vt)}}),Hn=wr=>new et(wr,{apply(Wr,vt,Vt){const dn=Vt.length?Vt[0]:void 0;if(!(typeof dn=="object"&&dn!==null||typeof dn=="function"))return We(wr,vt,Vt);const yn=Wu(dn),ar=dn===Gn&&Kn,wi=ar?{}:We(wr,vt,Vt);if(!ar&&yn===void 0)return wi;const mi=be(ar?dn:wi);for(let ho=0,{length:Ao}=mi;ho<Ao;ho+=1){const Mo=mi[ho],bo=!!(yn!=null&&yn[Mo]);if(bo&&dn[Mo],bo||ar){const ca=ar?ci(dn,Mo):Me(dn,Mo);ca?wi[Mo]=ca:ar||Ge(wi,Mo)}}return wi}});try{ee.defineProperty=ht(ct)}catch{}try{ee.getOwnPropertyDescriptor=xn(Me)}catch{}try{At.getOwnPropertyDescriptor=xn(On)}catch{}try{At.getOwnPropertyDescriptors=Hn(Ct)}catch{}try{xt.__defineGetter__=ht(cn)}catch{}try{xt.__defineSetter__=ht(an)}catch{}try{xt.__lookupGetter__=Gt(Or,te)}catch{}try{xt.__lookupSetter__=Gt(Ln,Ue)}catch{}}:yt;function fl(In,Kn,Fr){let ci,Le;try{ci=nr(In,Fr,(rt,ht,Gt,xn,Hn,wr,Wr)=>{Le={__proto__:null,foreign:!0},ht!==bi&&(Le.configurable=ht),Gt!==bi&&(Le.enumerable=Gt),xn!==bi&&(Le.writable=xn),wr!==bi&&(typeof wr=="function"?(wr(),Le.get=Yt,Yt=void 0):Le.get=void 0),Wr!==bi&&(typeof Wr=="function"?(Wr(),Le.set=Yt,Yt=void 0):Le.set=void 0),Hn!==bi&&(typeof Hn=="function"?(Hn(),Le.value=Yt,Yt=void 0):Le.value=Hn),ht===!1&&ct(Kn,Fr,Le)})}catch(rt){var te;const ht=(te=Yt)!=null?te:rt;throw Yt=void 0,ht}if(Le===void 0){let rt;for(typeof ci=="function"?(ci(),rt=Yt,Yt=void 0):rt=null;rt;){if(Le=Me(rt,Fr),Le){nn(Le,null);break}rt=ie(rt)}if(Le){var Ue;const{get:ht,set:Gt,value:xn}=Le,Hn=(Ue=ht??Gt)!=null?Ue:xn;Le.foreign=(typeof Hn=="object"&&Hn!==null||typeof Hn=="function")&&B.get(Hn)!==void 0}}return Le}function Rl(In,Kn,Fr,ci,Le){const te=fl(In,Kn,Fr);if(te){if("get"in te||"set"in te){const{set:rt}=te;return rt?(te.foreign?Lt(Ts(rt),typeof Le=="object"&&Le!==null||typeof Le=="function"?Ts(Le):typeof Le>"u"?void 0:Le,typeof ci=="object"&&ci!==null||typeof ci=="function"?Ts(ci):typeof ci>"u"?void 0:ci):We(rt,Le,[ci]),!0):!1}if(te.writable===!1)return!1}if(!(typeof Le=="object"&&Le!==null||typeof Le=="function"))return!1;const Ue=Me(Le,Fr);return Ue?(nn(Ue,null),"get"in Ue||"set"in Ue||Ue.writable===!1?!1:(ct(Le,Fr,{__proto__:null,value:ci}),!0)):ct(Le,Fr,{__proto__:null,configurable:!0,enumerable:!0,value:ci,writable:!0})}function Bu(In){return Si&&Xi(),(typeof In=="object"&&In!==null||typeof In=="function")&&Ts(In,Pe)(),In}function Mn(In,Kn,Fr,ci,Le){const{proxy:te}=new sn(In,Kn,Fr,ci,Le);return B.set(te,In),Us(te)}const en=rr?(In,Kn)=>{G.set(In,Kn),ai(Ts(In),Ts(Kn))}:yt;class sn{constructor(Kn,Fr,ci,Le,te){this.makeProxyLive=rr?function(){this.deleteProperty=sn.passthruDeletePropertyTrap,this.defineProperty=sn.passthruDefinePropertyTrap,this.preventExtensions=sn.passthruPreventExtensionsTrap,this.set=sn.passthruSetTrap,this.setPrototypeOf=sn.passthruSetPrototypeOfTrap}:yt,this.makeProxyStatic=rr?function(){this.defineProperty=sn.staticDefinePropertyTrap,this.deleteProperty=sn.staticDeletePropertyTrap,this.get=sn.staticGetTrap,this.getOwnPropertyDescriptor=sn.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=sn.staticGetPrototypeOfTrap,this.has=sn.staticHasTrap,this.isExtensible=sn.staticIsExtensibleTrap,this.ownKeys=sn.staticOwnKeysTrap,this.preventExtensions=sn.staticPreventExtensionsTrap,this.set=sn.staticSetTrap,this.setPrototypeOf=sn.staticSetPrototypeOfTrap;const{foreignTargetPointer:Wr,foreignTargetTraits:vt,shadowTarget:Vt}=this;si&&Ir.delete(Wr);const dn=Yo(Wr);if(dn&8){this.revoke();return}try{ea(Wr,Vt)}catch{if(yr(Wr)){this.revoke();return}}if(vt&16&&!(qe in Vt)){let yn="Object";try{yn=Xn(Wr)}catch{}this.staticToStringTag=yn}dn&4?$t(Vt):(dn&2?Xe(Vt):dn&1&&Qe(Vt),hi&&co("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",Wr))}:yt;let Ue;const rt=Fr&1,ht=Fr&4;ht?Ue=Fr&8?()=>{}:function(){}:rt?Ue=[]:Ue={};const{proxy:Gt,revoke:xn}=mt(Ue,this);if(this.foreignTargetPointer=Kn,this.foreignTargetTraits=Fr,this.foreignTargetTypedArrayLength=te,this.nonConfigurableDescriptorCallback=(Wr,vt,Vt,dn,yn,ar,wi)=>{ct(this.shadowTarget,Wr,gu(vt,Vt,dn,yn,ar,wi))},this.proxy=Gt,this.revoke=xn,this.serialize=yt,this.shadowTarget=Ue,this.staticToStringTag="Object",ht){var Hn,wr;this.apply=this[(Hn=Z[ci])!=null?Hn:Z.n],this.construct=this[(wr=se[ci])!=null?wr:se.n]}if(this.defineProperty=sn.defaultDefinePropertyTrap,this.deleteProperty=sn.defaultDeletePropertyTrap,this.isExtensible=sn.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=sn.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=sn.defaultGetPrototypeOfTrap,this.get=Fr&32?sn.hybridGetTrapForTypedArray:sn.defaultGetTrap,this.has=sn.defaultHasTrap,this.ownKeys=sn.defaultOwnKeysTrap,this.preventExtensions=sn.defaultPreventExtensionsTrap,this.setPrototypeOf=sn.defaultSetPrototypeOfTrap,this.set=sn.defaultSetTrap,Fr&64)this.revoke();else if(rr)(rt||Fr&2)&&this.makeProxyLive();else if(Fr&16){let Wr=bi;this.serialize=()=>(Wr===bi&&(Wr=Rr(this.foreignTargetPointer)),Wr)}}static passthruDefinePropertyTrap(Kn,Fr,ci){zn=4;const{foreignTargetPointer:Le,nonConfigurableDescriptorCallback:te}=this,Ue=ci;nn(Ue,null);const{get:rt,set:ht,value:Gt}=Ue,xn="value"in Ue?typeof Gt=="object"&&Gt!==null||typeof Gt=="function"?Ts(Gt):typeof Gt>"u"?void 0:Gt:bi,Hn="get"in Ue?typeof rt=="function"?Ts(rt):rt:bi,wr="set"in Ue?typeof ht=="function"?Ts(ht):ht:bi;let Wr=!1;try{Wr=$e(Le,Fr,"configurable"in Ue?!!Ue.configurable:bi,"enumerable"in Ue?!!Ue.enumerable:bi,"writable"in Ue?!!Ue.writable:bi,xn,Hn,wr,te)}catch(Vt){var vt;const dn=(vt=Yt)!=null?vt:Vt;throw Yt=void 0,dn}return si&&Wr&&(typeof Hn=="function"||typeof wr=="function")&&Ir.delete(Le),Wr}static passthruDeletePropertyTrap(Kn,Fr){zn=8;let ci=!1;try{ci=ut(this.foreignTargetPointer,Fr)}catch(te){var Le;const Ue=(Le=Yt)!=null?Le:te;throw Yt=void 0,Ue}return ci}static passthruGetPrototypeOfTrap(Kn){zn=64;let Fr;try{Fr=Fn(this.foreignTargetPointer)}catch(te){var ci;const Ue=(ci=Yt)!=null?ci:te;throw Yt=void 0,Ue}let Le;return typeof Fr=="function"?(Fr(),Le=Yt,Yt=void 0):Le=null,Le}static passthruIsExtensibleTrap(Kn){zn=256;const{shadowTarget:Fr}=this;let ci=!1;if(z(Fr)){const{foreignTargetPointer:te}=this;try{ci=tr(te)}catch(Ue){var Le;const rt=(Le=Yt)!=null?Le:Ue;throw Yt=void 0,rt}ci||(ea(te,Fr),Qe(Fr))}return ci}static passthruOwnKeysTrap(Kn){zn=512;let Fr;try{Jn(this.foreignTargetPointer,(...Le)=>{Fr=Le})}catch(Le){var ci;const te=(ci=Yt)!=null?ci:Le;throw Yt=void 0,te}return Fr||[]}static passthruGetOwnPropertyDescriptorTrap(Kn,Fr){zn=32;const{foreignTargetPointer:ci,shadowTarget:Le}=this;let te;try{Ht(ci,Fr,(rt,ht,Gt,xn,Hn,wr,Wr)=>{te=gu(ht,Gt,xn,Hn,wr,Wr),te.configurable===!1&&ct(Le,Fr,te)})}catch(rt){var Ue;const ht=(Ue=Yt)!=null?Ue:rt;throw Yt=void 0,ht}if(sr&&te&&(Fr===ui||Fr===jr))throw new De(Kr);return te}static passthruPreventExtensionsTrap(Kn){zn=1024;const{foreignTargetPointer:Fr,shadowTarget:ci}=this;let Le=!0;if(z(ci)){let Ue=0;try{Ue=ei(Fr)}catch(rt){var te;const ht=(te=Yt)!=null?te:rt;throw Yt=void 0,ht}Ue&1||(ea(Fr,ci),Qe(ci)),Le=!(Ue&2)}return Le}static passthruSetPrototypeOfTrap(Kn,Fr){zn=4096;const{foreignTargetPointer:ci}=this,Le=Fr&&Ts(Fr);let te=!1;try{te=zi(ci,Le)}catch(rt){var Ue;const ht=(Ue=Yt)!=null?Ue:rt;throw Yt=void 0,ht}return si&&te&&Ir.delete(ci),te}static passthruSetTrap(Kn,Fr,ci,Le){zn=2048;const{foreignTargetPointer:te,proxy:Ue,shadowTarget:rt}=this;if(typeof ci>"u"&&(ci=void 0),typeof Le>"u"&&(Le=Ue),sr&&(Fr===ui||Fr===jr))throw new De(Kr);const ht=Ue===Le;let Gt=!1;try{Gt=ht?Ci(te,Fr,typeof ci=="object"&&ci!==null||typeof ci=="function"?Ts(ci):ci):Rl(te,rt,Fr,ci,Le)}catch(Hn){var xn;const wr=(xn=Yt)!=null?xn:Hn;throw Yt=void 0,wr}return Gt}}sn.hybridGetTrap=rr?function(In,Kn,Fr){const{foreignTargetPointer:ci,foreignTargetTraits:Le,proxy:te,shadowTarget:Ue}=this;let rt,ht;if(si&&Ir.has(ci)){let Wr;try{Wr=Xo(ci,Kn)}catch(vt){var Gt;const Vt=(Gt=Yt)!=null?Gt:vt;throw Yt=void 0,Vt}typeof Wr=="function"?(Wr(),ht=Yt,Yt=void 0):ht=Wr}else if(rt=fl(ci,Ue,Kn),rt){const{get:Wr,value:vt}=rt;if(Wr)if(rt.foreign){const Vt=Ts(Wr),dn=te===Fr?ci:typeof Fr=="object"&&Fr!==null||typeof Fr=="function"?Ts(Fr):Fr;let yn;try{yn=Lt(Vt,dn)}catch(ar){var xn;const wi=(xn=Yt)!=null?xn:ar;throw Yt=void 0,wi}typeof yn=="function"?(yn(),ht=Yt,Yt=void 0):ht=yn}else ht=We(Wr,Fr,[]);else ht=vt}else{const Wr=te===Fr?ci:typeof Fr=="object"&&Fr!==null||typeof Fr=="function"?Ts(Fr):Fr;let vt;try{vt=zt(ci,Le,Kn,Wr)}catch(Vt){var Hn;const dn=(Hn=Yt)!=null?Hn:Vt;throw Yt=void 0,dn}typeof vt=="function"?(vt(),ht=Yt,Yt=void 0):ht=vt}if(rt===void 0&&ht===void 0&&Kn===qe&&Le&16){let Wr;try{Wr=Xn(ci)}catch(vt){var wr;const Vt=(wr=Yt)!=null?wr:vt;throw Yt=void 0,Vt}Wr!=="Object"&&(ht=Wr)}return ht}:yt,sn.hybridGetTrapForTypedArray=rr?function(In,Kn,Fr){const{foreignTargetPointer:ci,foreignTargetTypedArrayLength:Le,proxy:te,shadowTarget:Ue}=this;let rt=Ki;if(!rt&&typeof Kn=="string"){const Hn=+Kn;rt=Hn>-1&&Hn<Le&&Sn(Hn)}let ht;if(rt){let Hn;try{Hn=Xo(ci,Kn)}catch(wr){var Gt;const Wr=(Gt=Yt)!=null?Gt:wr;throw Yt=void 0,Wr}typeof Hn=="function"?(Hn(),ht=Yt,Yt=void 0):ht=Hn}else{const Hn=fl(ci,Ue,Kn);if(Hn){const{get:wr,value:Wr}=Hn;if(wr)if(Hn.foreign){const vt=Ts(wr),Vt=te===Fr?ci:typeof Fr=="object"&&Fr!==null||typeof Fr=="function"?Ts(Fr):Fr;let dn;try{dn=Lt(vt,Vt)}catch(yn){var xn;const ar=(xn=Yt)!=null?xn:yn;throw Yt=void 0,ar}typeof dn=="function"?(dn(),ht=Yt,Yt=void 0):ht=dn}else ht=We(wr,Fr,[]);else ht=Wr}}return ht}:yt,sn.hybridHasTrap=rr?function(In,Kn){let Fr;try{Fr=Pn(this.foreignTargetPointer,Kn)}catch(te){var ci;const Ue=(ci=Yt)!=null?ci:te;throw Yt=void 0,Ue}let Le=!1;if(Fr===!0)Le=!0;else{let te;for(typeof Fr=="function"?(Fr(),te=Yt,Yt=void 0):te=null;te;){if(En(te,Kn)){Le=!0;break}te=ie(te)}}return Le}:Ko,sn.passthruGetTrap=sr?function(In,Kn,Fr){Nr&&(Nr=zn===128),zn=16;const ci=Kn===ui,Le=Kn===jr;if(Nr){if(ci)return!0;if(Le)return this.serialize()}const{foreignTargetPointer:te,foreignTargetTraits:Ue,proxy:rt}=this;typeof Fr>"u"&&(Fr=rt);const ht=rt===Fr?bi:typeof Fr=="object"&&Fr!==null||typeof Fr=="function"?Ts(Fr):Fr;let Gt;try{Gt=zt(te,Ue,Kn,ht)}catch(wr){var xn;const Wr=(xn=Yt)!=null?xn:wr;throw Yt=void 0,Wr}let Hn;if(typeof Gt=="function"?(Gt(),Hn=Yt,Yt=void 0):Hn=Gt,Hn!==void 0&&(ci||Le))throw new De(Kr);return Hn}:yt,sn.passthruHasTrap=sr?function(In,Kn){zn=128;let Fr;try{Fr=Cn(this.foreignTargetPointer,Kn)}catch(Ue){var ci;const rt=(ci=Yt)!=null?ci:Ue;throw Yt=void 0,rt}const Le=Kn===ui,te=Kn===jr;if(Fr){if(Nr=!1,Le||te)throw new De(Kr)}else Nr=Le||te;return Fr}:Ko,sn.pendingDefinePropertyTrap=rr?function(In,Kn,Fr){const{foreignTargetPointer:ci,foreignTargetTraits:Le}=this;return mr(ci,Le)?this.makeProxyLive():(si&&(rl(ci)?Iu():Hu(ci)&&(Ki=!1)),this.makeProxyStatic()),this.defineProperty(In,Kn,Fr)}:Ko,sn.pendingDeletePropertyTrap=rr?function(In,Kn){return mr(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.deleteProperty(In,Kn)}:Ko,sn.pendingPreventExtensionsTrap=rr?function(In){return mr(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.preventExtensions(In)}:Ko,sn.pendingSetPrototypeOfTrap=rr?function(In,Kn){const{foreignTargetPointer:Fr,foreignTargetTraits:ci}=this;return mr(Fr,ci)?this.makeProxyLive():(si&&(rl(Fr)?Iu():Hu(Fr)&&(Ki=!1)),this.makeProxyStatic()),this.setPrototypeOf(In,Kn)}:Ko,sn.pendingSetTrap=rr?function(In,Kn,Fr,ci){const{foreignTargetPointer:Le,foreignTargetTraits:te}=this;return mr(Le,te)?this.makeProxyLive():(si&&(rl(Le)?Iu():Hu(Le)&&(Ki=!1)),this.makeProxyStatic()),this.set(In,Kn,Fr,ci)}:Ko,sn.staticDefinePropertyTrap=rr?ct:Ko,sn.staticDeletePropertyTrap=rr?Ge:Ko,sn.staticGetOwnPropertyDescriptorTrap=rr?Me:yt,sn.staticGetPrototypeOfTrap=rr?ie:()=>null,sn.staticGetTrap=rr?function(In,Kn,Fr){const{foreignTargetTraits:ci,staticToStringTag:Le}=this,te=st(In,Kn,Fr);return te===void 0&&Kn===qe&&ci&16&&Le!=="Object"&&!(Kn in In)?Le:te}:yt,sn.staticHasTrap=rr?ge:Ko,sn.staticIsExtensibleTrap=rr?z:Ko,sn.staticOwnKeysTrap=rr?be:()=>[],sn.staticPreventExtensionsTrap=rr?Qe:Ko,sn.staticSetPrototypeOfTrap=rr?nn:Ko,sn.staticSetTrap=rr?Bt:Ko,sn.defaultDefinePropertyTrap=rr?sn.pendingDefinePropertyTrap:sn.passthruDefinePropertyTrap,sn.defaultDeletePropertyTrap=rr?sn.pendingDeletePropertyTrap:sn.passthruDeletePropertyTrap,sn.defaultGetOwnPropertyDescriptorTrap=sn.passthruGetOwnPropertyDescriptorTrap,sn.defaultGetPrototypeOfTrap=sn.passthruGetPrototypeOfTrap,sn.defaultGetTrap=rr?sn.hybridGetTrap:sn.passthruGetTrap,sn.defaultHasTrap=rr?sn.hybridHasTrap:sn.passthruHasTrap,sn.defaultIsExtensibleTrap=sn.passthruIsExtensibleTrap,sn.defaultOwnKeysTrap=sn.passthruOwnKeysTrap,sn.defaultPreventExtensionsTrap=rr?sn.pendingPreventExtensionsTrap:sn.passthruPreventExtensionsTrap,sn.defaultSetTrap=rr?sn.pendingSetTrap:sn.passthruSetTrap,sn.defaultSetPrototypeOfTrap=rr?sn.pendingSetPrototypeOfTrap:sn.passthruSetPrototypeOfTrap,rr&&vo(),Fo(Us(Gn),sr?()=>{const In=Yt;return Yt=void 0,In}:yt,In=>typeof In=="object"&&In!==null||typeof In=="function"?Ts(In):typeof In>"u"?void 0:In,(In,Kn)=>{In();const Fr=Yt;Yt=void 0;const ci=Fr?.[Kn];return Us(typeof ci>"u"?void 0:ci)},rr?In=>{let Kn;try{Kn=Di(In)}catch(Fr){throw Bu(Fr)}return typeof Kn=="object"&&Kn!==null||typeof Kn=="function"?Ts(Kn):Kn}:yt,(In,Kn)=>{In();const Fr=Yt;Yt=void 0,(typeof Fr=="object"&&Fr!==null||typeof Fr=="function")&&B.set(Fr,Kn)},Si?(In,Kn,Fr,ci,Le)=>{const te=Mn(In,Kn,Fr,ci,Le);return()=>(Xi(),te())}:Mn,Mn,(In,Kn,...Fr)=>{In();const ci=Yt;Yt=void 0;let Le;typeof Kn=="function"&&(Kn(),Le=Yt,Yt=void 0);for(let Ue=0,{length:rt}=Fr;Ue<rt;Ue+=1){const ht=Fr[Ue];typeof ht=="function"&&(ht(),Fr[Ue]=Yt,Yt=void 0)}let te;try{te=We(ci,Le,Fr)}catch(Ue){throw Bu(Ue)}return typeof te=="object"&&te!==null||typeof te=="function"?Ts(te):typeof te>"u"?void 0:te},(In,Kn,...Fr)=>{In();const ci=Yt;Yt=void 0;let Le;typeof Kn=="function"&&(Kn(),Le=Yt,Yt=void 0);for(let Ue=0,{length:rt}=Fr;Ue<rt;Ue+=1){const ht=Fr[Ue];typeof ht=="function"&&(ht(),Fr[Ue]=Yt,Yt=void 0)}let te;try{te=_t(ci,Fr,Le)}catch(Ue){throw Bu(Ue)}return typeof te=="object"&&te!==null||typeof te=="function"?Ts(te):typeof te>"u"?void 0:te},(In,Kn,Fr,ci,Le,te,Ue,rt,ht)=>{In();const Gt=Yt;Yt=void 0;const xn=gu(Fr,ci,Le,te,Ue,rt);let Hn=!1;try{Hn=ct(Gt,Kn,xn)}catch(wr){throw Bu(wr)}if(Hn&&Fr===!1){let wr;try{wr=Me(Gt,Kn)}catch(Wr){throw Bu(Wr)}if(wr&&(nn(wr,null),wr.configurable===!1)){const{get:Wr,set:vt,value:Vt}=wr;ht(Kn,!1,"enumerable"in wr?wr.enumerable:bi,"writable"in wr?wr.writable:bi,"value"in wr?typeof Vt=="object"&&Vt!==null||typeof Vt=="function"?Ts(Vt):Vt:bi,"get"in wr?typeof Wr=="function"?Ts(Wr):Wr:bi,"set"in wr?typeof vt=="function"?Ts(vt):vt:bi)}}return Hn},(In,Kn)=>{In();const Fr=Yt;Yt=void 0;try{return Ge(Fr,Kn)}catch(ci){throw Bu(ci)}},(In,Kn,Fr,ci)=>{In();const Le=Yt;Yt=void 0;let te;typeof ci=="function"?(ci(),te=Yt,Yt=void 0):te=ci===bi?Le:ci;let Ue;try{Ue=st(Le,Fr,te)}catch(rt){throw Bu(rt)}if(typeof Ue=="object"&&Ue!==null||typeof Ue=="function")return Ts(Ue);if(Ue===void 0&&Fr===qe&&Kn&16)try{if(!(Fr in Le)){const rt=We(Dt,Le,[]);rt!=="[object Object]"&&(Ue=We(zr,rt,[8,-1]))}}catch(rt){throw Bu(rt)}return typeof Ue>"u"?void 0:Ue},(In,Kn,Fr)=>{In();const ci=Yt;Yt=void 0;let Le;try{Le=Me(ci,Kn)}catch(te){throw Bu(te)}if(Le){nn(Le,null);const{get:te,set:Ue,value:rt}=Le;Fr(Kn,"configurable"in Le?Le.configurable:bi,"enumerable"in Le?Le.enumerable:bi,"writable"in Le?Le.writable:bi,"value"in Le?typeof rt=="object"&&rt!==null||typeof rt=="function"?Ts(rt):typeof rt>"u"?void 0:rt:bi,"get"in Le?typeof te=="function"?Ts(te):te:bi,"set"in Le?typeof Ue=="function"?Ts(Ue):Ue:bi)}},In=>{In();const Kn=Yt;Yt=void 0;let Fr;try{Fr=ie(Kn)}catch(ci){throw Bu(ci)}return typeof Fr>"u"?null:Fr&&Ts(Fr)},(In,Kn)=>{In();const Fr=Yt;Yt=void 0;try{return Kn in Fr}catch(ci){throw Bu(ci)}},In=>{In();const Kn=Yt;Yt=void 0;try{return z(Kn)}catch(Fr){throw Bu(Fr)}},(In,Kn)=>{In();const Fr=Yt;Yt=void 0;let ci;try{ci=be(Fr)}catch(Le){throw Bu(Le)}We(Kn,void 0,ci)},In=>{In();const Kn=Yt;Yt=void 0;let Fr=2;try{Qe(Kn)?Fr=4:z(Kn)&&(Fr|=1)}catch(ci){throw Bu(ci)}return Fr},(In,Kn,Fr)=>{In();const ci=Yt;Yt=void 0;let Le;typeof Fr=="function"?(Fr(),Le=Yt,Yt=void 0):Le=Fr;try{return Bt(ci,Kn,Le,ci)}catch(te){throw Bu(te)}},(In,Kn=null)=>{In();const Fr=Yt;Yt=void 0;let ci;typeof Kn=="function"?(We(Kn,void 0,[]),ci=Yt,Yt=void 0):ci=null;try{return nn(Fr,ci)}catch(Le){throw Bu(Le)}},Si?(...In)=>{if(Xi()){for(let Kn=0,{length:Fr}=In;Kn<Fr;Kn+=1){const ci=In[Kn];typeof ci=="function"&&(ci(),In[Kn]=Yt,Yt=void 0)}try{We(Zi,li,In)}catch{}}}:yt,rr?(In,...Kn)=>{In();const Fr=Yt;Yt=void 0;for(let ci=0,{length:Le}=Kn;ci<Le;ci+=7)ct(Fr,Kn[ci],gu(Kn[ci+1],Kn[ci+2],Kn[ci+3],Kn[ci+4],Kn[ci+5],Kn[ci+6]))}:yt,sr?In=>{In();const Kn=Yt;Yt=void 0;const Fr=W.get(Kn);return Fr&&Ts(Fr)}:yt,sr?(In,Kn)=>{In();const Fr=Yt;Yt=void 0;let ci;try{ci=Fr[Kn]}catch(Le){throw Bu(Le)}return typeof ci=="object"&&ci!==null||typeof ci=="function"?Ts(ci):ci}:yt,sr?In=>{In();const Kn=Yt;Yt=void 0;try{if(!z(Kn))return Zt(Kn)||Wn(Kn)?0:1}catch{try{io(Kn)}catch{return 8}}return 0}:()=>0,In=>{In();const Kn=Yt;Yt=void 0;try{const Fr=We(Dt,Kn,[]);return Fr==="[object Object]"?"Object":We(zr,Fr,[8,-1])}catch(Fr){throw Bu(Fr)}},Ie,rr?(In,...Kn)=>{const Fr=We(Gr,Kn,[bi]);let ci,Le;Fr===-1?ci=Kn:(ci=We(un,Kn,[0,Fr]),Le=We(un,Kn,[Fr+1])),In();const te=Yt;Yt=void 0;let Ue=Wu(te);Ue===void 0&&(Ue={__proto__:null},en(te,Ue));for(let rt=0,{length:ht}=ci;rt<ht;rt+=1){const Gt=ci[rt];Ue[Gt]=!0,ct(te,Gt,{__proto__:null,configurable:!0,get(){return Bi(te,Gt,Ue),te[Gt]},set(xn){Bi(te,Gt,Ue),Bt(te,Gt,xn)}})}Al(Le)}:yt,sr&&br?(In,Kn)=>{In();const Fr=Yt;if(Yt=void 0,Fr!==xt&&Fr!==fn)try{return br(Fr,Kn)}catch{}return!1}:Ko,sr?In=>{In();const Kn=Yt;Yt=void 0;try{return io(Kn),!1}catch{}return!0}:Ko,rr?In=>{In();const Kn=Yt;Yt=void 0;try{return qe in Kn?Nn(Kn):Ui(Kn)}catch{}}:yt,sr?(In,Kn)=>{In();const Fr=Yt;Yt=void 0,Kn();const ci=Yt;Yt=void 0,W.set(Fr,ci)}:yt,rr?In=>{In();const Kn=Yt;Yt=void 0,si&&Ir.add(Ts(Kn))}:yt,(In,Kn)=>{In();const Fr=Yt;Yt=void 0;let ci;try{ci=Ct(Fr)}catch(ht){throw Bu(ht)}const Le=be(ci),{length:te}=Le,Ue=new wt(te*7);for(let ht=0,Gt=0;ht<te;ht+=1,Gt+=7){const xn=Le[ht],Hn=ci[xn];nn(Hn,null);const{get:wr,set:Wr,value:vt}=Hn;Ue[Gt]=xn,Ue[Gt+1]="configurable"in Hn?Hn.configurable:bi,Ue[Gt+2]="enumerable"in Hn?Hn.enumerable:bi,Ue[Gt+3]="writable"in Hn?Hn.writable:bi,Ue[Gt+4]="value"in Hn?typeof vt=="object"&&vt!==null||typeof vt=="function"?Ts(vt):vt:bi,Ue[Gt+5]="get"in Hn?typeof wr=="function"?Ts(wr):wr:bi,Ue[Gt+6]="set"in Hn?typeof Wr=="function"?Ts(Wr):Wr:bi}We(Kn,void 0,Ue);let rt;try{rt=ie(Fr)}catch(ht){throw Bu(ht)}return typeof rt>"u"?null:rt&&Ts(rt)},(In,Kn)=>{In();const Fr=Yt;Yt=void 0;let ci;try{if(En(Fr,Kn))return!0;ci=ie(Fr)}catch(Le){throw Bu(Le)}return typeof ci>"u"?null:ci&&Ts(ci)},(In,Kn,Fr)=>{In();const ci=Yt;Yt=void 0;let Le;try{Le=Me(ci,Kn)}catch(Ue){throw Bu(Ue)}if(Le){nn(Le,null);const{get:Ue,set:rt,value:ht}=Le;Fr(Kn,"configurable"in Le?Le.configurable:bi,"enumerable"in Le?Le.enumerable:bi,"writable"in Le?Le.writable:bi,"value"in Le?typeof ht=="object"&&ht!==null||typeof ht=="function"?Ts(ht):typeof ht>"u"?void 0:ht:bi,"get"in Le?typeof Ue=="function"?Ts(Ue):Ue:bi,"set"in Le?typeof rt=="function"?Ts(rt):rt:bi);return}let te;try{te=ie(ci)}catch(Ue){throw Bu(Ue)}return typeof te>"u"?null:te&&Ts(te)});let qt=!1;return(...In)=>{if(qt)return;qt=!0,{6:Pe,7:dt,8:Lt,9:Pt,10:$e,11:ut,12:zt,13:Ht,14:Fn,15:Cn,16:tr,17:Jn,18:ei,19:Ci,20:zi,21:co,23:Eo,24:Xo,25:Yo,26:Xn,27:fr,29:mr,30:yr,31:Rr,32:ai,34:jt,35:Pn,36:nr}=In;const Kn=la(1),Fr=ss(1),ci=Rs(1),Le=Ds(1),te=Is(1),Ue=nu(1),rt=Ls(1),ht=la(2),Gt=ss(2),xn=Rs(2),Hn=Ds(2),wr=Is(2),Wr=nu(2),vt=Ls(2);Ai===void 0&&(Ai=Zn({applyTrapForZeroOrMoreArgs:Kn,applyTrapForOneOrMoreArgs:Fr,applyTrapForTwoOrMoreArgs:ci,applyTrapForThreeOrMoreArgs:Le,applyTrapForFourOrMoreArgs:te,applyTrapForFiveOrMoreArgs:Ue,applyTrapForAnyNumberOfArgs:rt,constructTrapForZeroOrMoreArgs:ht,constructTrapForOneOrMoreArgs:Gt,constructTrapForTwoOrMoreArgs:xn,constructTrapForThreeOrMoreArgs:Hn,constructTrapForFourOrMoreArgs:wr,constructTrapForFiveOrMoreArgs:Wr,constructTrapForAnyNumberOfArgs:vt})),Z[0]=Ai[0],Z[1]=Ai[1],Z[2]=Ai[2],Z[3]=Ai[3],Z[4]=Ai[4],Z[5]=Ai[5],Z.n=Ai[6],se[0]=Ai[7],se[1]=Ai[8],se[2]=Ai[9],se[3]=Ai[10],se[4]=Ai[11],se[5]=Ai[12],se.n=Ai[13];const{prototype:Vt}=sn;Vt[Z[0]]=Kn,Vt[Z[1]]=Fr,Vt[Z[2]]=ci,Vt[Z[3]]=Le,Vt[Z[4]]=te,Vt[Z[5]]=Ue,Vt[Z.n]=rt,Vt[se[0]]=ht,Vt[se[1]]=Gt,Vt[se[2]]=xn,Vt[se[3]]=Hn,Vt[se[4]]=wr,Vt[se[5]]=Wr,Vt[se.n]=vt,nn(Vt,null)}}}const me=` 'use strict'; (${he})`;function fe(F){if(typeof F!="object"||F===null)throw new i.L_("Missing globalObject.");return he(F)}function ve(F){if(typeof F!="function")throw new i.L_("Missing evaluator function.");return F(me)()}const ce=(0,i.Qd)("@@lockerNearMembraneUndefinedValue");class oe{constructor(Y){if(Y===void 0)throw new i.X("Missing required VirtualEnvironment options.");const{blueConnector:le,redConnector:ke,distortionCallback:Ye,instrumentation:ft,liveTargetCallback:wt,revokedProxyCallback:Ut,signSourceCallback:Ke}=(0,i.tH)({__proto__:null},Y);let it;const At=le("blue",(...An)=>{it=An},{distortionCallback:Ye,instrumentation:ft,liveTargetCallback:wt,revokedProxyCallback:Ut}),{0:et,1:ee,2:I,3:K,5:ue,6:De,7:He,8:Fe,9:ze,10:qe,11:We,12:_t,13:ct,14:Ge,15:st,16:Me,17:ie,18:ge,19:z,20:be,23:Qe,24:Bt,25:nn,26:bt,27:at,29:$t,32:On,34:Ct,35:Zt,36:Wn}=it;let Zn;const xt=ke("red",(...An)=>{Zn=An}),{0:Xe,3:gn,4:Qt,5:Dt,6:hn,7:cn,8:an,9:Or,10:Ln,11:En,12:Gn,13:rr,14:sr,15:pi,16:yi,17:jr,18:ui,19:bi,20:ri,21:hi,22:Si,23:Kr,25:xi,26:Ai,27:Pi,28:io,30:lo,31:Gr,32:un,33:qn,34:kn,35:St,36:ln}=Zn;At(i.lQ,i.lQ,i.lQ,i.lQ,i.lQ,i.lQ,hn,cn,an,Or,Ln,En,Gn,rr,sr,pi,yi,jr,ui,bi,ri,hi,i.lQ,Kr,i.lQ,xi,Ai,Pi,i.lQ,i.lQ,lo,Gr,un,qn,kn,St,ln),xt(i.lQ,i.lQ,i.lQ,i.lQ,i.lQ,i.lQ,De,He,Fe,ze,qe,We,_t,ct,Ge,st,Me,ie,ge,z,be,i.lQ,i.lQ,Qe,Bt,nn,bt,at,i.lQ,$t,i.lQ,i.lQ,On,i.lQ,Ct,Zt,Wn),this.blueGlobalThisPointer=et,this.blueGetSelectedTarget=ee,this.blueGetTransferableValue=I,this.blueCallableGetPropertyValuePointer=K,this.blueCallableLinkPointers=ue,this.redGlobalThisPointer=()=>Xe(),this.redCallableGetPropertyValuePointer=(An,Cr)=>gn(An,Cr),this.redCallableEvaluate=Ke?An=>Qt(Ke(An)):An=>Qt(An),this.redCallableLinkPointers=(An,Cr)=>Dt(An,Cr),this.redCallableSetPrototypeOf=(An,Cr)=>ri(An,Cr),this.redCallableDefineProperties=(An,...Cr)=>{const{length:_i}=Cr,Sn=new i.Ml(_i+1);Sn[0]=An;for(let ir=0;ir<_i;ir+=1)Sn[ir+1]=Cr[ir];(0,i.Of)(Si,void 0,Sn)},this.redCallableInstallLazyPropertyDescriptors=(An,...Cr)=>{const{length:_i}=Cr,Sn=new i.Ml(_i+1);Sn[0]=An;for(let ir=0;ir<_i;ir+=1)Sn[ir+1]=Cr[ir];(0,i.Of)(io,void 0,Sn)},this.redCallableTrackAsFastTarget=An=>qn(An)}evaluate(Y){try{const ke=this.redCallableEvaluate(Y);return typeof ke=="function"?(ke(),this.blueGetSelectedTarget()):ke}catch(ke){var le;throw(le=this.blueGetSelectedTarget())!=null?le:ke}}lazyRemapProperties(Y,le,ke){if(typeof Y=="object"&&Y!==null||typeof Y=="function"){const Ye=[this.blueGetTransferableValue(Y)];(0,i.Of)(i.sr,Ye,le),ke!=null&&ke.length&&(Ye[Ye.length]=ce,(0,i.Of)(i.sr,Ye,ke)),(0,i.Of)(this.redCallableInstallLazyPropertyDescriptors,void 0,Ye)}}link(...Y){let le=this.blueGlobalThisPointer,ke=this.redGlobalThisPointer;for(let Ye=0,{length:ft}=Y;Ye<ft;Ye+=1){const wt=Y[Ye];le=this.blueCallableGetPropertyValuePointer(le,wt),ke=this.redCallableGetPropertyValuePointer(ke,wt),this.redCallableLinkPointers(ke,le),this.blueCallableLinkPointers(le,ke)}}remapProperties(Y,le){if(typeof Y=="object"&&Y!==null||typeof Y=="function"){const ke=this.blueGetTransferableValue(Y),Ye=(0,i.go)(le),{length:ft}=Ye,wt=new i.Ml(1+ft*7);wt[0]=ke;for(let Ut=0,Ke=1;Ut<ft;Ut+=1,Ke+=7){const it=Ye[Ut],At=le[it],et=(0,i.tH)({__proto__:null},At);wt[Ke]=it,wt[Ke+1]="configurable"in et?!!et.configurable:ce,wt[Ke+2]="enumerable"in et?!!et.enumerable:ce,wt[Ke+3]="writable"in et?!!et.writable:ce,wt[Ke+4]="value"in et?this.blueGetTransferableValue(et.value):ce,wt[Ke+5]="get"in et?this.blueGetTransferableValue(et.get):ce,wt[Ke+6]="set"in et?this.blueGetTransferableValue(et.set):ce}(0,i.Of)(this.redCallableDefineProperties,this,wt)}}remapProto(Y,le){if(typeof Y=="object"&&Y!==null||typeof Y=="function"){const ke=this.blueGetTransferableValue(Y),Ye=le&&this.blueGetTransferableValue(le);this.redCallableSetPrototypeOf(ke,Ye)}}trackAsFastTarget(Y){(typeof Y=="object"&&Y!==null||typeof Y=="function")&&this.redCallableTrackAsFastTarget(this.blueGetTransferableValue(Y))}}function re(F=!0){const Y=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape"];return F===!1&&Y.push("ArrayBuffer","BigInt64Array","BigUint64Array","DataView","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","SharedArrayBuffer","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array"),Y}const H=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"];function V(F=!0){const Y=re(F);return(0,i.UO)([...Y,...H])}function Q(F){const Y=(0,i.go)(F);return(0,i.wC)(F,"webkit")&&!(0,i.Of)(i.xo,Y,["webkit"])&&(Y[Y.length]="webkit"),Y}function Te(F,Y,le){const ke=Q(Y),Ye=V(le);for(let ft=0,{length:wt}=ke;ft<wt;ft+=1){const Ut=ke[ft];if(!Ye.includes(Ut)){const Ke=Y[Ut];Ke&&(F[Ut]=(0,i.tH)({__proto__:null},Ke))}}return F}function Re(F,Y){const le=[];let ke=0;const Ye=Q(F),ft=V(Y);for(let wt=0,{length:Ut}=Ye;wt<Ut;wt+=1){const Ke=Ye[wt];ft.includes(Ke)||(le[ke++]=Ke)}return le}function ne(F,Y){for(let le=0,{length:ke}=H;le<ke;le+=1){const Ye=H[le],ft=Y[Ye];ft&&(ft.prototype?F.link(Ye,"prototype"):F.link(Ye))}}const pe=(0,i.Dj)(new WeakMap),ye=h?["window"]:void 0;function Se(F){const{window:Y}=F;let le,ke;try{({document:ke}=F),le=pe.get(ke)}catch{return}if(le)return le;const Ye=(0,i.Td)(Y),ft=(0,i.Td)(Ye),wt=(0,i.Td)(ft);return le={document:ke,DocumentProto:(0,i.Td)(ke),window:Y,WindowProto:(0,i.Td)(Y),WindowPropertiesProto:(0,i.Td)(Ye),EventTargetProto:wt,EventTargetProtoOwnKeys:wt?(0,i.go)(wt):[]},pe.set(ke,le),le}function Ae(F){const Y=[];let le=0;for(let ke=0,{length:Ye}=F;ke<Ye;ke+=1){const ft=F[ke];ft!=="document"&&ft!=="location "&&ft!=="top"&&ft!=="window"&&ft!=="chrome"&&(Y[le++]=ft)}return Y}function Ee(F){return(0,i.qS)(F,"document"),(0,i.qS)(F,"location"),(0,i.qS)(F,"top"),(0,i.qS)(F,"window"),(0,i.qS)(F,"chrome"),F}Se(l);const xe="allow-same-origin allow-scripts",nt=(0,i.PO)(new i.N4),Tt=(0,i.Dj)(new i.LS);let pt=null;function Rt(F){var Y;const le=(0,i.Of)(w,F,["iframe"]),ke=(Y=(0,i.Of)(O,F,[]))!=null?Y:(0,i.Of)(N,F,[]),Ye=(0,i.Of)(A,le,[]);return Ye.display="none",(0,i.Of)(T,le,["sandbox",xe]),(0,i.Of)(_,ke,[le]),le}function tt(F,Y){if(typeof F!="object"||F===null)throw new i.L_("Missing global object virtualization target.");const le=Se(F);if(typeof le!="object"||le===null)throw new i.L_("Invalid virtualization target.");const{distortionCallback:ke,defaultPolicy:Ye,endowments:ft,globalObjectShape:wt,instrumentation:Ut,keepAlive:Ke=!0,liveTargetCallback:it,remapTypedArrays:At,signSourceCallback:et}=(0,i.tH)({__proto__:null},Y),ee=Rt(le.document),I=(0,i.Of)(j,ee,[]),K=typeof wt!="object"||wt===null;K&&pt===null&&(pt=Ae(Re(I,At)));let ue=Tt.get(le.document);ue===void 0&&(ue=fe(F),Tt.set(le.document,ue)),typeof I.trustedTypes<"u"&&(0,i.Gv)(Ye)&&I.trustedTypes.createPolicy("default",Ye);const{eval:De}=I,He=new oe({blueConnector:ue,redConnector:ve(et?Fe=>De(et(Fe)):De),distortionCallback:ke,instrumentation:Ut,liveTargetCallback:it,revokedProxyCallback:Ke?U:void 0,signSourceCallback:et});if(ne(He,F),typeof globalThis>"u"?He.link("window","document"):He.link("document"),He.link("__proto__","__proto__","__proto__"),He.remapProto(le.document,le.DocumentProto),He.lazyRemapProperties(le.window,K?pt:Ae(Re(wt)),Ke?void 0:ye),ft){const Fe={};Te(Fe,ft,At),Ee(Fe),He.remapProperties(le.window,Fe)}if(He.lazyRemapProperties(le.EventTargetProto,le.EventTargetProtoOwnKeys),Ke){const{document:Fe}=I;nt.add(Fe),nt.add(I),(0,i.Of)(S,Fe,[]),(0,i.Of)(y,Fe,[])}else d&&De("window"),(0,i.Of)(P,ee,[]);return He}function U(F){return nt.has(F)}},7077:(J,g,t)=>{"use strict";t.d(g,{A$:()=>kn,B7:()=>On,Bq:()=>ze,DJ:()=>At,Dj:()=>fn,F2:()=>Me,Gv:()=>D,H1:()=>ie,LS:()=>ln,L_:()=>to,M4:()=>P,MI:()=>Kr,Ml:()=>he,N4:()=>gt,Np:()=>Ho,Of:()=>i,PO:()=>zr,PR:()=>Ye,Qd:()=>j,T$:()=>Fe,Td:()=>m,U:()=>ra,UO:()=>ee,VD:()=>le,X:()=>vi,YU:()=>ui,_0:()=>M,_E:()=>l,aE:()=>Ke,bq:()=>et,cO:()=>Bt,er:()=>yi,gc:()=>un,go:()=>u,iq:()=>so,lQ:()=>$o,mX:()=>d,nf:()=>ja,pL:()=>jr,qS:()=>s,rT:()=>bi,sr:()=>wt,tH:()=>v,wC:()=>R,wG:()=>$t,wo:()=>Y,xo:()=>ke,yT:()=>ft});const{apply:i,defineProperty:l,deleteProperty:s,getPrototypeOf:m,ownKeys:u,setPrototypeOf:f}=Reflect,p=Object,{assign:v,freeze:h,keys:d,prototype:b}=p,{hasOwn:y}=p,{__lookupGetter__:w,__lookupSetter__:S,hasOwnProperty:O}=b,R=typeof y=="function"?y:function(as,rn){return i(O,as,[rn])},{toString:M}=b;function D(ro){return typeof ro=="object"&&ro!==null}function P(ro,as){return ro==null||!R(ro,as)?void 0:i(w,ro,[as])}function T(ro,as){return ro==null||!R(ro,as)?void 0:i(S,ro,[as])}const A=Symbol,{for:j,iterator:ae,toStringTag:_,unscopables:N}=A,{valueOf:W}=A.prototype,he=Array,{prototype:me}=he,{at:fe,concat:ve,copyWithin:ce,entries:oe,every:re,fill:H,findIndex:V,flat:Q,flatMap:Te,forEach:Re,join:ne,keys:pe,lastIndexOf:ye,pop:Se,reduce:Ae,reduceRight:Ee,reverse:xe,slice:nt,some:Tt,toLocaleString:pt,toString:Rt,values:tt,[ae]:U}=me,F=h(v({__proto__:null},me[N])),{filter:Y,find:le,includes:ke,indexOf:Ye,map:ft,push:wt,shift:Ut,splice:Ke,sort:it,unshift:At}=me,{isArray:et}=he;function ee(ro){return f(ro,null),ro.at=fe,ro.concat=ve,ro.copyWithin=ce,ro.entries=oe,ro.every=re,ro.fill=H,ro.filter=Y,ro.find=le,ro.findIndex=V,ro.flat=Q,ro.flatMap=Te,ro.forEach=Re,ro.includes=ke,ro.indexOf=Ye,ro.join=ne,ro.keys=pe,ro.lastIndexOf=ye,ro.map=ft,ro.pop=Se,ro.push=wt,ro.reduce=Ae,ro.reduceRight=Ee,ro.reverse=xe,ro.shift=Ut,ro.slice=nt,ro.some=Tt,ro.sort=it,ro.splice=Ke,ro.toLocaleString=pt,ro.toString=Rt,ro.unshift=At,ro.values=tt,ro[ae]=U,ro[N]=F,f(ro,me),ro}const I=P(ArrayBuffer.prototype,"byteLength"),K=typeof BigInt=="function",ue=K?BigInt.prototype.valueOf:void 0,{valueOf:De}=Boolean.prototype,He="$LWS",Fe=`${function ro(){return ro.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),ze="\u2026",qe="Illegal property access.",We=j("@@lockerNearMembraneSerializedValue"),_t=j("@@lockerNearMembrane"),ct=j("@@lockerLiveValue"),Ge="[object Array]",st="[object ArrayBuffer]",Me="[object BigInt]",ie="[object Boolean]",ge="[object Date]",z="[object Function]",be="[object Map]",Qe="[object Null]",Bt="[object Number]",nn="[object Object]",bt="[object RegExp]",at="[object Set]",$t="[object String]",On="[object Symbol]",Ct="[object Undefined]",Zt="[object WeakMap]",Wn="[object WeakSet]",{valueOf:Zn}=Date.prototype,xt=Map,{prototype:Xe}=xt,{clear:gn,delete:Qt,forEach:Dt,get:hn,has:cn,keys:an,values:Or,[ae]:Ln,[_]:En}=Xe,{entries:Gn,set:rr}=Xe,sr=P(Xe,"size");function pi(ro){return f(ro,null),ro.clear=gn,ro.delete=Qt,ro.entries=Gn,ro.forEach=Dt,ro.get=hn,ro.has=cn,ro.keys=an,ro.set=rr,l(ro,"size",{__proto__:null,configurable:!0,enumerable:!0,get:sr,set:void 0}),ro.values=Or,ro[ae]=Ln,ro[_]=En,f(ro,Xe),ro}const yi=Number,{isFinite:jr,isInteger:ui,isNaN:bi}=yi,{valueOf:ri}=yi.prototype,hi=RegExp,{prototype:Si}=hi,{test:Kr}=Si,xi=P(Si,"source"),Ai=Set,{prototype:Pi}=Ai,{add:io,values:lo}=Pi,Gr=P(Pi,"size"),un=String,{prototype:qn}=un,{slice:kn,valueOf:St}=qn,ln=WeakMap,{prototype:An}=ln,{has:Cr}=An,{delete:_i,get:Sn,set:ir,[_]:mt}=An;function fn(ro){return f(ro,null),ro.delete=_i,ro.get=Sn,ro.has=Cr,ro.set=ir,ro[_]=mt,f(ro,An),ro}const gt=WeakSet,{prototype:tn}=gt,{has:Vn}=tn,{add:Ur,delete:$r,[_]:Pr}=tn;function zr(ro){return f(ro,null),ro.add=Ur,ro.delete=$r,ro.has=Vn,ro[_]=Pr,f(ro,tn),ro}const{toStringTag:gi}=Symbol;function $i(ro){try{if("byteLength"in ro)return i(I,ro,[]),st}catch{}try{if("toLocaleDateString"in ro)return i(Zn,ro,[]),ge}catch{}try{if("get"in ro&&"size"in ro)return i(sr,ro,[]),be}catch{}try{if("add"in ro&&"size"in ro)return i(Gr,ro,[]),at}catch{}try{if("get"in ro&&!("size"in ro))return i(Cr,ro,[]),Zt}catch{}try{if("add"in ro&&!("size"in ro))return i(Vn,ro,[]),Wn}catch{}try{if("toPrecision"in ro)return i(ri,ro,[]),Bt}catch{}try{if("description"in ro)return i(W,ro,[]),On}catch{}try{if(R(ro,"lastIndex"))return i(xi,ro,[]),bt}catch{}try{if(R(ro,"length"))return i(St,ro,[]),$t}catch{}try{return i(De,ro,[]),ie}catch{}if(K)try{return i(ue,ro,[]),Me}catch{}return nn}function eo(ro){if(ro===null)return Qe;if(ro===void 0)return Ct;switch(typeof ro){case"bigint":return Me;case"boolean":return ie;case"function":return z;case"number":return Bt;case"string":return $t;case"symbol":return On}return et(ro)?Ge:gi in ro?$i(ro):i(M,ro,[])}const{parse:ki}=JSON,{stringify:so}=JSON;function Ho(ro){if(typeof ro=="object"&&ro!==null||typeof ro=="function")return We in ro?void 0:ro[We]}function ra(ro){return typeof ro=="object"&&ro!==null||typeof ro=="function"?!(_t in ro)&&ro[_t]===!0:!1}const So=pi(new xt);function gr(ro){return p(Ho(ro))}function di(ro,as){const rn=new xt,Dr=i(Gn,ro,[]);let{length:Lr}=as;for(;;){const{done:li,value:Zi}=Dr.next();if(li)break;const{0:Di,1:wo}=Zi;let Go;as[Lr++]=[Ko=>{Go=Ko},Di],as[Lr++]=[Ko=>{i(rr,rn,[Go,Ko])},wo]}return rn}function Vi(ro){const{flags:as,source:rn}=ki(Ho(ro));return new hi(rn,as)}function Ro(ro,as){const rn=new Ai,Dr=i(lo,ro,[]);let{length:Lr}=as;for(;;){const{done:li,value:Zi}=Dr.next();if(li)break;as[Lr++]=[Di=>{i(io,rn,[Di])},Zi]}return rn}function na(ro,as,rn){const Dr=d(as);let{length:Lr}=ro;for(let li=0,{length:Zi}=Dr;li<Zi;li+=1){const Di=Dr[li],wo=as[Di];ro[Lr++]=[Go=>{rn[Di]=Go},wo]}}function ta(ro){let as;const rn=[[Dr=>{as=Dr},ro]];e:for(;rn.length;){const{0:Dr,1:Lr}=i(Ut,rn,[]);if(Lr==null||typeof Lr=="boolean"||typeof Lr=="number"||typeof Lr=="string"||typeof Lr=="bigint"){Dr(Lr);continue e}if(typeof Lr=="symbol"){Dr(Lr);break e}let li=So.get(Lr);if(li){Dr(li);continue e}const Zi=eo(Lr);switch(Zi){case nn:{const Di=m(Lr);(Di===b||Di===null||m(Di)===null)&&(li={},na(rn,Lr,li));break}case Ge:li=he(Lr.length),na(rn,Lr,li);break;case be:li=di(Lr,rn);break;case at:li=Ro(Lr,rn);break}if(li===void 0){if(!ra(Lr)){So.set(Lr,Lr),Dr(Lr);continue e}switch(Zi){case bt:li=Vi(Lr);break;case ie:case Bt:case Me:case $t:li=gr(Lr);break}}if(li===void 0){Dr(Lr);break e}So.set(Lr,li),Dr(li)}return as}function aa(ro){let as=ro;try{as=ta(ro)}catch{}return So.clear(),as}const vi=Error,to=TypeError;function $o(){}const{min:ja}=Math,hs=null},11908:(J,g,t)=>{"use strict";t.d(g,{s:()=>i});var i;(function(l){l[l.UNSET=0]="UNSET",l[l.OK=1]="OK",l[l.ERROR=2]="ERROR"})(i||(i={}))},87361:(J,g,t)=>{"use strict";t.d(g,{_2:()=>i});var i={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},l={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"},s={ALIBABA_CLOUD_ECS:"alibaba_cloud_ecs",ALIBABA_CLOUD_FC:"alibaba_cloud_fc",AWS_EC2:"aws_ec2",AWS_ECS:"aws_ecs",AWS_EKS:"aws_eks",AWS_LAMBDA:"aws_lambda",AWS_ELASTIC_BEANSTALK:"aws_elastic_beanstalk",AZURE_VM:"azure_vm",AZURE_CONTAINER_INSTANCES:"azure_container_instances",AZURE_AKS:"azure_aks",AZURE_FUNCTIONS:"azure_functions",AZURE_APP_SERVICE:"azure_app_service",GCP_COMPUTE_ENGINE:"gcp_compute_engine",GCP_CLOUD_RUN:"gcp_cloud_run",GCP_KUBERNETES_ENGINE:"gcp_kubernetes_engine",GCP_CLOUD_FUNCTIONS:"gcp_cloud_functions",GCP_APP_ENGINE:"gcp_app_engine"},m={EC2:"ec2",FARGATE:"fargate"},u={AMD64:"amd64",ARM32:"arm32",ARM64:"arm64",IA64:"ia64",PPC32:"ppc32",PPC64:"ppc64",X86:"x86"},f={WINDOWS:"windows",LINUX:"linux",DARWIN:"darwin",FREEBSD:"freebsd",NETBSD:"netbsd",OPENBSD:"openbsd",DRAGONFLYBSD:"dragonflybsd",HPUX:"hpux",AIX:"aix",SOLARIS:"solaris",Z_OS:"z_os"},p={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}},10207:(J,g,t)=>{var i=t(96540);function l(f,p,v,h){Object.defineProperty(f,p,{get:v,set:h,enumerable:!0,configurable:!0})}l(J.exports,"composeRefs",()=>m),l(J.exports,"useComposedRefs",()=>u);function s(f,p){typeof f=="function"?f(p):f!=null&&(f.current=p)}function m(...f){return p=>f.forEach(v=>s(v,p))}function u(...f){return i.useCallback(m(...f),f)}},93086:(J,g,t)=>{var i=t(94634),l=t(96540),s=t(40961),m=t(62053);function u(d,b,y,w){Object.defineProperty(d,b,{get:y,set:w,enumerable:!0,configurable:!0})}function f(d){return d&&d.__esModule?d.default:d}u(J.exports,"Portal",()=>v),u(J.exports,"Root",()=>h);const p="Portal",v=l.forwardRef((d,b)=>{var y;const{container:w=globalThis==null||(y=globalThis.document)===null||y===void 0?void 0:y.body,...S}=d;return w?f(s).createPortal(l.createElement(m.Primitive.div,f(i)({},S,{ref:b})),w):null}),h=v},62053:(J,g,t)=>{var i=t(94634),l=t(96540),s=t(40961),m=t(56612);function u(b,y,w,S){Object.defineProperty(b,y,{get:w,set:S,enumerable:!0,configurable:!0})}function f(b){return b&&b.__esModule?b.default:b}u(J.exports,"Primitive",()=>v),u(J.exports,"Root",()=>d),u(J.exports,"dispatchDiscreteCustomEvent",()=>h);const v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((b,y)=>{const w=l.forwardRef((S,O)=>{const{asChild:R,...M}=S,D=R?m.Slot:y;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(D,f(i)({},M,{ref:O}))});return w.displayName=`Primitive.${y}`,{...b,[y]:w}},{});function h(b,y){b&&s.flushSync(()=>b.dispatchEvent(y))}const d=v},56612:(J,g,t)=>{var i=t(94634),l=t(96540),s=t(10207);function m(y,w,S,O){Object.defineProperty(y,w,{get:S,set:O,enumerable:!0,configurable:!0})}function u(y){return y&&y.__esModule?y.default:y}m(J.exports,"Slot",()=>f),m(J.exports,"Slottable",()=>v),m(J.exports,"Root",()=>b);const f=l.forwardRef((y,w)=>{const{children:S,...O}=y,R=l.Children.toArray(S),M=R.find(h);if(M){const D=M.props.children,P=R.map(T=>T===M?l.Children.count(D)>1?l.Children.only(null):l.isValidElement(D)?D.props.children:null:T);return l.createElement(p,u(i)({},O,{ref:w}),l.isValidElement(D)?l.cloneElement(D,void 0,P):null)}return l.createElement(p,u(i)({},O,{ref:w}),S)});f.displayName="Slot";const p=l.forwardRef((y,w)=>{const{children:S,...O}=y;return l.isValidElement(S)?l.cloneElement(S,{...d(O,S.props),ref:w?s.composeRefs(w,S.ref):S.ref}):l.Children.count(S)>1?l.Children.only(null):null});p.displayName="SlotClone";const v=({children:y})=>l.createElement(l.Fragment,null,y);function h(y){return l.isValidElement(y)&&y.type===v}function d(y,w){const S={...w};for(const O in w){const R=y[O],M=w[O];/^on[A-Z]/.test(O)?R&&M?S[O]=(...P)=>{M(...P),R(...P)}:R&&(S[O]=R):O==="style"?S[O]={...R,...M}:O==="className"&&(S[O]=[R,M].filter(Boolean).join(" "))}return{...y,...S}}const b=f},76127:(J,g,t)=>{"use strict";t.d(g,{A:()=>ye});var i=t(5544),l=t(96540),s=t(40961),m=t(20998),u=t(68210),f=t(8719),p=l.createContext(null);const v=p;var h=t(60436),d=t(30981),b=[];function y(Se,Ae){var Ee=l.useState(function(){if(!(0,m.A)())return null;var Ye=document.createElement("div");return Ye}),xe=(0,i.A)(Ee,1),nt=xe[0],Tt=l.useRef(!1),pt=l.useContext(v),Rt=l.useState(b),tt=(0,i.A)(Rt,2),U=tt[0],F=tt[1],Y=pt||(Tt.current?void 0:function(Ye){F(function(ft){var wt=[Ye].concat((0,h.A)(ft));return wt})});function le(){nt.parentElement||document.body.appendChild(nt),Tt.current=!0}function ke(){var Ye;(Ye=nt.parentElement)===null||Ye===void 0||Ye.removeChild(nt),Tt.current=!1}return(0,d.A)(function(){return Se?pt?pt(le):le():ke(),ke},[Se]),(0,d.A)(function(){U.length&&(U.forEach(function(Ye){return Ye()}),F(b))},[U]),[nt,Y]}function w(Se,Ae){if(!Se)return!1;if(Se.contains)return Se.contains(Ae);for(var Ee=Ae;Ee;){if(Ee===Se)return!0;Ee=Ee.parentNode}return!1}var S="data-rc-order",O="data-rc-priority",R="rc-util-key",M=new Map;function D(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ae=Se.mark;return Ae?Ae.startsWith("data-")?Ae:"data-".concat(Ae):R}function P(Se){if(Se.attachTo)return Se.attachTo;var Ae=document.querySelector("head");return Ae||document.body}function T(Se){return Se==="queue"?"prependQueue":Se?"prepend":"append"}function A(Se){return Array.from((M.get(Se)||Se).children).filter(function(Ae){return Ae.tagName==="STYLE"})}function j(Se){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,m.A)())return null;var Ee=Ae.csp,xe=Ae.prepend,nt=Ae.priority,Tt=nt===void 0?0:nt,pt=T(xe),Rt=pt==="prependQueue",tt=document.createElement("style");tt.setAttribute(S,pt),Rt&&Tt&&tt.setAttribute(O,"".concat(Tt)),Ee!=null&&Ee.nonce&&(tt.nonce=Ee?.nonce),tt.innerHTML=Se;var U=P(Ae),F=U.firstChild;if(xe){if(Rt){var Y=A(U).filter(function(le){if(!["prepend","prependQueue"].includes(le.getAttribute(S)))return!1;var ke=Number(le.getAttribute(O)||0);return Tt>=ke});if(Y.length)return U.insertBefore(tt,Y[Y.length-1].nextSibling),tt}U.insertBefore(tt,F)}else U.appendChild(tt);return tt}function ae(Se){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=P(Ae);return A(Ee).find(function(xe){return xe.getAttribute(D(Ae))===Se})}function _(Se){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=ae(Se,Ae);if(Ee){var xe=P(Ae);xe.removeChild(Ee)}}function N(Se,Ae){var Ee=M.get(Se);if(!Ee||!w(document,Ee)){var xe=j("",Ae),nt=xe.parentNode;M.set(Se,nt),Se.removeChild(xe)}}function W(){M.clear()}function he(Se,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=P(Ee);N(xe,Ee);var nt=ae(Ae,Ee);if(nt){var Tt,pt;if((Tt=Ee.csp)!==null&&Tt!==void 0&&Tt.nonce&&nt.nonce!==((pt=Ee.csp)===null||pt===void 0?void 0:pt.nonce)){var Rt;nt.nonce=(Rt=Ee.csp)===null||Rt===void 0?void 0:Rt.nonce}return nt.innerHTML!==Se&&(nt.innerHTML=Se),nt}var tt=j(Se,Ee);return tt.setAttribute(D(Ee),Ae),tt}var me;function fe(Se){if(typeof document>"u")return 0;if(Se||me===void 0){var Ae=document.createElement("div");Ae.style.width="100%",Ae.style.height="200px";var Ee=document.createElement("div"),xe=Ee.style;xe.position="absolute",xe.top="0",xe.left="0",xe.pointerEvents="none",xe.visibility="hidden",xe.width="200px",xe.height="150px",xe.overflow="hidden",Ee.appendChild(Ae),document.body.appendChild(Ee);var nt=Ae.offsetWidth;Ee.style.overflow="scroll";var Tt=Ae.offsetWidth;nt===Tt&&(Tt=Ee.clientWidth),document.body.removeChild(Ee),me=nt-Tt}return me}function ve(Se){var Ae=Se.match(/^(.*)px$/),Ee=Number(Ae?.[1]);return Number.isNaN(Ee)?fe():Ee}function ce(Se){if(typeof document>"u"||!Se||!(Se instanceof Element))return{width:0,height:0};var Ae=getComputedStyle(Se,"::-webkit-scrollbar"),Ee=Ae.width,xe=Ae.height;return{width:ve(Ee),height:ve(xe)}}function oe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var re="rc-util-locker-".concat(Date.now()),H=0;function V(Se){var Ae=!!Se,Ee=l.useState(function(){return H+=1,"".concat(re,"_").concat(H)}),xe=(0,i.A)(Ee,1),nt=xe[0];(0,d.A)(function(){if(Ae){var Tt=fe(),pt=oe();he(` html body { overflow-y: hidden; `.concat(pt?"width: calc(100% - ".concat(Tt,"px);"):"",` }`),nt)}else _(nt);return function(){_(nt)}},[Ae,nt])}var Q=!1;function Te(Se){return typeof Se=="boolean"&&(Q=Se),Q}var Re=function(Ae){return Ae===!1?!1:!(0,m.A)()||!Ae?null:typeof Ae=="string"?document.querySelector(Ae):typeof Ae=="function"?Ae():Ae},ne=l.forwardRef(function(Se,Ae){var Ee=Se.open,xe=Se.autoLock,nt=Se.getContainer,Tt=Se.debug,pt=Se.autoDestroy,Rt=pt===void 0?!0:pt,tt=Se.children,U=l.useState(Ee),F=(0,i.A)(U,2),Y=F[0],le=F[1],ke=Y||Ee;l.useEffect(function(){(Rt||Ee)&&le(Ee)},[Ee,Rt]);var Ye=l.useState(function(){return Re(nt)}),ft=(0,i.A)(Ye,2),wt=ft[0],Ut=ft[1];l.useEffect(function(){var Fe=Re(nt);Ut(Fe??null)});var Ke=y(ke&&!wt,Tt),it=(0,i.A)(Ke,2),At=it[0],et=it[1],ee=wt??At;V(xe&&Ee&&(0,m.A)()&&(ee===At||ee===document.body));var I=null;if(tt&&(0,f.f3)(tt)&&Ae){var K=tt;I=K.ref}var ue=(0,f.xK)(I,Ae);if(!ke||!(0,m.A)()||wt===void 0)return null;var De=ee===!1||Te(),He=tt;return Ae&&(He=l.cloneElement(tt,{ref:ue})),l.createElement(v.Provider,{value:et},De?He:(0,s.createPortal)(He,ee))});const ye=ne},1045:(J,g,t)=>{"use strict";t.d(g,{A:()=>Ut});var i=t(89379),l=t(5544),s=t(80045),m=t(76127),u=t(46942),f=t.n(u),p=t(26076),v=t(66588);function h(Ke){var it;return Ke==null||(it=Ke.getRootNode)===null||it===void 0?void 0:it.call(Ke)}function d(Ke){return h(Ke)instanceof ShadowRoot}function b(Ke){return d(Ke)?h(Ke):null}var y=t(26956),w=t(96540),S=t.t(w,2);function O(){var Ke=(0,i.A)({},S);return Ke.useId}var R=0;function M(){}var D=O();const P=D?function(it){var At=D();return it||At}:function(it){var At=w.useState("ssr-id"),et=(0,l.A)(At,2),ee=et[0],I=et[1];return w.useEffect(function(){var K=R;R+=1,I("rc_unique_".concat(K))},[]),it||ee};var T=t(30981),A=t(68430),j=t(58168),ae=t(80979),_=t(8719);function N(Ke){var it=Ke.prefixCls,At=Ke.align,et=Ke.arrow,ee=Ke.arrowPos,I=et||{},K=I.className,ue=I.content,De=ee.x,He=De===void 0?0:De,Fe=ee.y,ze=Fe===void 0?0:Fe,qe=w.useRef();if(!At||!At.points)return null;var We={position:"absolute"};if(At.autoArrow!==!1){var _t=At.points[0],ct=At.points[1],Ge=_t[0],st=_t[1],Me=ct[0],ie=ct[1];Ge===Me||!["t","b"].includes(Ge)?We.top=ze:Ge==="t"?We.top=0:We.bottom=0,st===ie||!["l","r"].includes(st)?We.left=He:st==="l"?We.left=0:We.right=0}return w.createElement("div",{ref:qe,className:f()("".concat(it,"-arrow"),K),style:We},ue)}function W(Ke){var it=Ke.prefixCls,At=Ke.open,et=Ke.zIndex,ee=Ke.mask,I=Ke.motion;return ee?w.createElement(ae.A,(0,j.A)({},I,{motionAppear:!0,visible:At,removeOnLeave:!0}),function(K){var ue=K.className;return w.createElement("div",{style:{zIndex:et},className:f()("".concat(it,"-mask"),ue)})}):null}var he=w.memo(function(Ke){var it=Ke.children;return it},function(Ke,it){return it.cache});const me=he;var fe=w.forwardRef(function(Ke,it){var At=Ke.popup,et=Ke.className,ee=Ke.prefixCls,I=Ke.style,K=Ke.target,ue=Ke.onVisibleChanged,De=Ke.open,He=Ke.keepDom,Fe=Ke.fresh,ze=Ke.onClick,qe=Ke.mask,We=Ke.arrow,_t=Ke.arrowPos,ct=Ke.align,Ge=Ke.motion,st=Ke.maskMotion,Me=Ke.forceRender,ie=Ke.getPopupContainer,ge=Ke.autoDestroy,z=Ke.portal,be=Ke.zIndex,Qe=Ke.onMouseEnter,Bt=Ke.onMouseLeave,nn=Ke.onPointerEnter,bt=Ke.ready,at=Ke.offsetX,$t=Ke.offsetY,On=Ke.offsetR,Ct=Ke.offsetB,Zt=Ke.onAlign,Wn=Ke.onPrepare,Zn=Ke.stretch,xt=Ke.targetWidth,Xe=Ke.targetHeight,gn=typeof At=="function"?At():At,Qt=De||He,Dt=ie?.length>0,hn=w.useState(!ie||!Dt),cn=(0,l.A)(hn,2),an=cn[0],Or=cn[1];if((0,T.A)(function(){!an&&Dt&&K&&Or(!0)},[an,Dt,K]),!an)return null;var Ln="auto",En={left:"-1000vw",top:"-1000vh",right:Ln,bottom:Ln};if(bt||!De){var Gn,rr=ct.points,sr=ct.dynamicInset||((Gn=ct._experimental)===null||Gn===void 0?void 0:Gn.dynamicInset),pi=sr&&rr[0][1]==="r",yi=sr&&rr[0][0]==="b";pi?(En.right=On,En.left=Ln):(En.left=at,En.right=Ln),yi?(En.bottom=Ct,En.top=Ln):(En.top=$t,En.bottom=Ln)}var jr={};return Zn&&(Zn.includes("height")&&Xe?jr.height=Xe:Zn.includes("minHeight")&&Xe&&(jr.minHeight=Xe),Zn.includes("width")&&xt?jr.width=xt:Zn.includes("minWidth")&&xt&&(jr.minWidth=xt)),De||(jr.pointerEvents="none"),w.createElement(z,{open:Me||Qt,getContainer:ie&&function(){return ie(K)},autoDestroy:ge},w.createElement(W,{prefixCls:ee,open:De,zIndex:be,mask:qe,motion:st}),w.createElement(p.A,{onResize:Zt,disabled:!De},function(ui){return w.createElement(ae.A,(0,j.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Me,leavedClassName:"".concat(ee,"-hidden")},Ge,{onAppearPrepare:Wn,onEnterPrepare:Wn,visible:De,onVisibleChanged:function(ri){var hi;Ge==null||(hi=Ge.onVisibleChanged)===null||hi===void 0||hi.call(Ge,ri),ue(ri)}}),function(bi,ri){var hi=bi.className,Si=bi.style,Kr=f()(ee,hi,et);return w.createElement("div",{ref:(0,_.K4)(ui,it,ri),className:Kr,style:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({"--arrow-x":"".concat(_t.x||0,"px"),"--arrow-y":"".concat(_t.y||0,"px")},En),jr),Si),{},{boxSizing:"border-box",zIndex:be},I),onMouseEnter:Qe,onMouseLeave:Bt,onPointerEnter:nn,onClick:ze},We&&w.createElement(N,{prefixCls:ee,arrow:We,arrowPos:_t,align:ct}),w.createElement(me,{cache:!De&&!Fe},gn))})}))});const ve=fe;var ce=w.forwardRef(function(Ke,it){var At=Ke.children,et=Ke.getTriggerDOMNode,ee=(0,_.f3)(At),I=w.useCallback(function(ue){(0,_.Xf)(it,et?et(ue):ue)},[et]),K=(0,_.xK)(I,At.ref);return ee?w.cloneElement(At,{ref:K}):At});const oe=ce;var re=w.createContext(null);const H=re;function V(Ke){return Ke?Array.isArray(Ke)?Ke:[Ke]:[]}function Q(Ke,it,At,et){return w.useMemo(function(){var ee=V(At??it),I=V(et??it),K=new Set(ee),ue=new Set(I);return Ke&&(K.has("hover")&&(K.delete("hover"),K.add("click")),ue.has("hover")&&(ue.delete("hover"),ue.add("click"))),[K,ue]},[Ke,it,At,et])}const Te=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var it=Ke.getBBox(),At=it.width,et=it.height;if(At||et)return!0}if(Ke.getBoundingClientRect){var ee=Ke.getBoundingClientRect(),I=ee.width,K=ee.height;if(I||K)return!0}}return!1};function Re(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],At=arguments.length>2?arguments[2]:void 0;return At?Ke[0]===it[0]:Ke[0]===it[0]&&Ke[1]===it[1]}function ne(Ke,it,At,et){for(var ee=At.points,I=Object.keys(Ke),K=0;K<I.length;K+=1){var ue,De=I[K];if(Re((ue=Ke[De])===null||ue===void 0?void 0:ue.points,ee,et))return"".concat(it,"-placement-").concat(De)}return""}function pe(Ke,it,At,et){return it||(At?{motionName:"".concat(Ke,"-").concat(At)}:et?{motionName:et}:null)}function ye(Ke){return Ke.ownerDocument.defaultView}function Se(Ke){for(var it=[],At=Ke?.parentElement,et=["hidden","scroll","clip","auto"];At;){var ee=ye(At).getComputedStyle(At),I=ee.overflowX,K=ee.overflowY,ue=ee.overflow;[I,K,ue].some(function(De){return et.includes(De)})&&it.push(At),At=At.parentElement}return it}function Ae(Ke){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ke)?it:Ke}function Ee(Ke){return Ae(parseFloat(Ke),0)}function xe(Ke,it){var At=(0,i.A)({},Ke);return(it||[]).forEach(function(et){if(!(et instanceof HTMLBodyElement||et instanceof HTMLHtmlElement)){var ee=ye(et).getComputedStyle(et),I=ee.overflow,K=ee.overflowClipMargin,ue=ee.borderTopWidth,De=ee.borderBottomWidth,He=ee.borderLeftWidth,Fe=ee.borderRightWidth,ze=et.getBoundingClientRect(),qe=et.offsetHeight,We=et.clientHeight,_t=et.offsetWidth,ct=et.clientWidth,Ge=Ee(ue),st=Ee(De),Me=Ee(He),ie=Ee(Fe),ge=Ae(Math.round(ze.width/_t*1e3)/1e3),z=Ae(Math.round(ze.height/qe*1e3)/1e3),be=(_t-ct-Me-ie)*ge,Qe=(qe-We-Ge-st)*z,Bt=Ge*z,nn=st*z,bt=Me*ge,at=ie*ge,$t=0,On=0;if(I==="clip"){var Ct=Ee(K);$t=Ct*ge,On=Ct*z}var Zt=ze.x+bt-$t,Wn=ze.y+Bt-On,Zn=Zt+ze.width+2*$t-bt-at-be,xt=Wn+ze.height+2*On-Bt-nn-Qe;At.left=Math.max(At.left,Zt),At.top=Math.max(At.top,Wn),At.right=Math.min(At.right,Zn),At.bottom=Math.min(At.bottom,xt)}}),At}function nt(Ke){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,At="".concat(it),et=At.match(/^(.*)\%$/);return et?Ke*(parseFloat(et[1])/100):parseFloat(At)}function Tt(Ke,it){var At=it||[],et=(0,l.A)(At,2),ee=et[0],I=et[1];return[nt(Ke.width,ee),nt(Ke.height,I)]}function pt(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ke[0],Ke[1]]}function Rt(Ke,it){var At=it[0],et=it[1],ee,I;return At==="t"?I=Ke.y:At==="b"?I=Ke.y+Ke.height:I=Ke.y+Ke.height/2,et==="l"?ee=Ke.x:et==="r"?ee=Ke.x+Ke.width:ee=Ke.x+Ke.width/2,{x:ee,y:I}}function tt(Ke,it){var At={t:"b",b:"t",l:"r",r:"l"};return Ke.map(function(et,ee){return ee===it?At[et]||"c":et}).join("")}function U(Ke,it,At,et,ee,I,K){var ue=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ee[et]||{}}),De=(0,l.A)(ue,2),He=De[0],Fe=De[1],ze=w.useRef(0),qe=w.useMemo(function(){return it?Se(it):[]},[it]),We=w.useRef({}),_t=function(){We.current={}};Ke||_t();var ct=(0,y.A)(function(){if(it&&At&&Ke){let se=function(B,Pe){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kr,Lt=gn.x+B,Pt=gn.y+Pe,$e=Lt+Gn,ut=Pt+En,zt=Math.max(Lt,dt.left),Ht=Math.max(Pt,dt.top),Fn=Math.min($e,dt.right),Cn=Math.min(ut,dt.bottom);return Math.max(0,(Fn-zt)*(Cn-Ht))},G=function(){na=gn.y+zr,ta=na+En,aa=gn.x+Pr,vi=aa+Gn};var Me,ie,ge=it,z=ge.ownerDocument,be=ye(ge),Qe=be.getComputedStyle(ge),Bt=Qe.width,nn=Qe.height,bt=Qe.position,at=ge.style.left,$t=ge.style.top,On=ge.style.right,Ct=ge.style.bottom,Zt=ge.style.overflow,Wn=(0,i.A)((0,i.A)({},ee[et]),I),Zn=z.createElement("div");(Me=ge.parentElement)===null||Me===void 0||Me.appendChild(Zn),Zn.style.left="".concat(ge.offsetLeft,"px"),Zn.style.top="".concat(ge.offsetTop,"px"),Zn.style.position=bt,Zn.style.height="".concat(ge.offsetHeight,"px"),Zn.style.width="".concat(ge.offsetWidth,"px"),ge.style.left="0",ge.style.top="0",ge.style.right="auto",ge.style.bottom="auto",ge.style.overflow="hidden";var xt;if(Array.isArray(At))xt={x:At[0],y:At[1],width:0,height:0};else{var Xe=At.getBoundingClientRect();xt={x:Xe.x,y:Xe.y,width:Xe.width,height:Xe.height}}var gn=ge.getBoundingClientRect(),Qt=z.documentElement,Dt=Qt.clientWidth,hn=Qt.clientHeight,cn=Qt.scrollWidth,an=Qt.scrollHeight,Or=Qt.scrollTop,Ln=Qt.scrollLeft,En=gn.height,Gn=gn.width,rr=xt.height,sr=xt.width,pi={left:0,top:0,right:Dt,bottom:hn},yi={left:-Ln,top:-Or,right:cn-Ln,bottom:an-Or},jr=Wn.htmlRegion,ui="visible",bi="visibleFirst";jr!=="scroll"&&jr!==bi&&(jr=ui);var ri=jr===bi,hi=xe(yi,qe),Si=xe(pi,qe),Kr=jr===ui?Si:hi,xi=ri?Si:Kr;ge.style.left="auto",ge.style.top="auto",ge.style.right="0",ge.style.bottom="0";var Ai=ge.getBoundingClientRect();ge.style.left=at,ge.style.top=$t,ge.style.right=On,ge.style.bottom=Ct,ge.style.overflow=Zt,(ie=ge.parentElement)===null||ie===void 0||ie.removeChild(Zn);var Pi=Ae(Math.round(Gn/parseFloat(Bt)*1e3)/1e3),io=Ae(Math.round(En/parseFloat(nn)*1e3)/1e3);if(Pi===0||io===0||(0,v.f)(At)&&!Te(At))return;var lo=Wn.offset,Gr=Wn.targetOffset,un=Tt(gn,lo),qn=(0,l.A)(un,2),kn=qn[0],St=qn[1],ln=Tt(xt,Gr),An=(0,l.A)(ln,2),Cr=An[0],_i=An[1];xt.x-=Cr,xt.y-=_i;var Sn=Wn.points||[],ir=(0,l.A)(Sn,2),mt=ir[0],fn=ir[1],gt=pt(fn),tn=pt(mt),Vn=Rt(xt,gt),Ur=Rt(gn,tn),$r=(0,i.A)({},Wn),Pr=Vn.x-Ur.x+kn,zr=Vn.y-Ur.y+St,gi=se(Pr,zr),$i=se(Pr,zr,Si),eo=Rt(xt,["t","l"]),ki=Rt(gn,["t","l"]),so=Rt(xt,["b","r"]),Ho=Rt(gn,["b","r"]),ra=Wn.overflow||{},So=ra.adjustX,gr=ra.adjustY,di=ra.shiftX,Vi=ra.shiftY,Ro=function(Pe){return typeof Pe=="boolean"?Pe:Pe>=0},na,ta,aa,vi;G();var to=Ro(gr),$o=tn[0]===gt[0];if(to&&tn[0]==="t"&&(ta>xi.bottom||We.current.bt)){var ja=zr;$o?ja-=En-rr:ja=eo.y-Ho.y-St;var hs=se(Pr,ja),ro=se(Pr,ja,Si);hs>gi||hs===gi&&(!ri||ro>=$i)?(We.current.bt=!0,zr=ja,St=-St,$r.points=[tt(tn,0),tt(gt,0)]):We.current.bt=!1}if(to&&tn[0]==="b"&&(na<xi.top||We.current.tb)){var as=zr;$o?as+=En-rr:as=so.y-ki.y-St;var rn=se(Pr,as),Dr=se(Pr,as,Si);rn>gi||rn===gi&&(!ri||Dr>=$i)?(We.current.tb=!0,zr=as,St=-St,$r.points=[tt(tn,0),tt(gt,0)]):We.current.tb=!1}var Lr=Ro(So),li=tn[1]===gt[1];if(Lr&&tn[1]==="l"&&(vi>xi.right||We.current.rl)){var Zi=Pr;li?Zi-=Gn-sr:Zi=eo.x-Ho.x-kn;var Di=se(Zi,zr),wo=se(Zi,zr,Si);Di>gi||Di===gi&&(!ri||wo>=$i)?(We.current.rl=!0,Pr=Zi,kn=-kn,$r.points=[tt(tn,1),tt(gt,1)]):We.current.rl=!1}if(Lr&&tn[1]==="r"&&(aa<xi.left||We.current.lr)){var Go=Pr;li?Go+=Gn-sr:Go=so.x-ki.x-kn;var Ko=se(Go,zr),Ie=se(Go,zr,Si);Ko>gi||Ko===gi&&(!ri||Ie>=$i)?(We.current.lr=!0,Pr=Go,kn=-kn,$r.points=[tt(tn,1),tt(gt,1)]):We.current.lr=!1}G();var yt=di===!0?0:di;typeof yt=="number"&&(aa<Si.left&&(Pr-=aa-Si.left-kn,xt.x+sr<Si.left+yt&&(Pr+=xt.x-Si.left+sr-yt)),vi>Si.right&&(Pr-=vi-Si.right-kn,xt.x>Si.right-yt&&(Pr+=xt.x-Si.right+yt)));var on=Vi===!0?0:Vi;typeof on=="number"&&(na<Si.top&&(zr-=na-Si.top-St,xt.y+rr<Si.top+on&&(zr+=xt.y-Si.top+rr-on)),ta>Si.bottom&&(zr-=ta-Si.bottom-St,xt.y>Si.bottom-on&&(zr+=xt.y-Si.bottom+on)));var _n=gn.x+Pr,er=_n+Gn,or=gn.y+zr,Er=or+En,Mi=xt.x,Ui=Mi+sr,Nn=xt.y,cr=Nn+rr,ni=Math.max(_n,Mi),Xr=Math.min(er,Ui),Jr=(ni+Xr)/2,Qi=Jr-_n,Fo=Math.max(or,Nn),No=Math.min(Er,cr),Jo=(Fo+No)/2,br=Jo-or;K?.(it,$r);var Yn=Ai.right-gn.x-(Pr+gn.width),Z=Ai.bottom-gn.y-(zr+gn.height);Fe({ready:!0,offsetX:Pr/Pi,offsetY:zr/io,offsetR:Yn/Pi,offsetB:Z/io,arrowX:Qi/Pi,arrowY:br/io,scaleX:Pi,scaleY:io,align:$r})}}),Ge=function(){ze.current+=1;var ie=ze.current;Promise.resolve().then(function(){ze.current===ie&&ct()})},st=function(){Fe(function(ie){return(0,i.A)((0,i.A)({},ie),{},{ready:!1})})};return(0,T.A)(st,[et]),(0,T.A)(function(){Ke||st()},[Ke]),[He.ready,He.offsetX,He.offsetY,He.offsetR,He.offsetB,He.arrowX,He.arrowY,He.scaleX,He.scaleY,He.align,Ge]}var F=t(60436);function Y(Ke,it,At,et,ee){(0,T.A)(function(){if(Ke&&it&&At){let ze=function(){et(),ee()};var I=it,K=At,ue=Se(I),De=Se(K),He=ye(K),Fe=new Set([He].concat((0,F.A)(ue),(0,F.A)(De)));return Fe.forEach(function(qe){qe.addEventListener("scroll",ze,{passive:!0})}),He.addEventListener("resize",ze,{passive:!0}),et(),function(){Fe.forEach(function(qe){qe.removeEventListener("scroll",ze),He.removeEventListener("resize",ze)})}}},[Ke,it,At])}var le=t(68210),ke=t(25371);function Ye(Ke,it,At,et,ee,I,K,ue){var De=w.useRef(Ke),He=w.useRef(!1);De.current!==Ke&&(He.current=!0,De.current=Ke),w.useEffect(function(){var Fe=(0,ke.A)(function(){He.current=!1});return function(){ke.A.cancel(Fe)}},[Ke]),w.useEffect(function(){if(it&&et&&(!ee||I)){var Fe=function(){var bt=!1,at=function(Ct){var Zt=Ct.target;bt=K(Zt)},$t=function(Ct){var Zt=Ct.target;!He.current&&De.current&&!bt&&!K(Zt)&&ue(!1)};return[at,$t]},ze=Fe(),qe=(0,l.A)(ze,2),We=qe[0],_t=qe[1],ct=Fe(),Ge=(0,l.A)(ct,2),st=Ge[0],Me=Ge[1],ie=ye(et);ie.addEventListener("mousedown",We,!0),ie.addEventListener("click",_t,!0),ie.addEventListener("contextmenu",_t,!0);var ge=b(At);if(ge&&(ge.addEventListener("mousedown",st,!0),ge.addEventListener("click",Me,!0),ge.addEventListener("contextmenu",Me,!0)),!1)var z,be,Qe,Bt;return function(){ie.removeEventListener("mousedown",We,!0),ie.removeEventListener("click",_t,!0),ie.removeEventListener("contextmenu",_t,!0),ge&&(ge.removeEventListener("mousedown",st,!0),ge.removeEventListener("click",Me,!0),ge.removeEventListener("contextmenu",Me,!0))}}},[it,At,et,ee,I])}var ft=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function wt(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.A,it=w.forwardRef(function(At,et){var ee=At.prefixCls,I=ee===void 0?"rc-trigger-popup":ee,K=At.children,ue=At.action,De=ue===void 0?"hover":ue,He=At.showAction,Fe=At.hideAction,ze=At.popupVisible,qe=At.defaultPopupVisible,We=At.onPopupVisibleChange,_t=At.afterPopupVisibleChange,ct=At.mouseEnterDelay,Ge=At.mouseLeaveDelay,st=Ge===void 0?.1:Ge,Me=At.focusDelay,ie=At.blurDelay,ge=At.mask,z=At.maskClosable,be=z===void 0?!0:z,Qe=At.getPopupContainer,Bt=At.forceRender,nn=At.autoDestroy,bt=At.destroyPopupOnHide,at=At.popup,$t=At.popupClassName,On=At.popupStyle,Ct=At.popupPlacement,Zt=At.builtinPlacements,Wn=Zt===void 0?{}:Zt,Zn=At.popupAlign,xt=At.zIndex,Xe=At.stretch,gn=At.getPopupClassNameFromAlign,Qt=At.fresh,Dt=At.alignPoint,hn=At.onPopupClick,cn=At.onPopupAlign,an=At.arrow,Or=At.popupMotion,Ln=At.maskMotion,En=At.popupTransitionName,Gn=At.popupAnimation,rr=At.maskTransitionName,sr=At.maskAnimation,pi=At.className,yi=At.getTriggerDOMNode,jr=(0,s.A)(At,ft),ui=nn||bt||!1,bi=w.useState(!1),ri=(0,l.A)(bi,2),hi=ri[0],Si=ri[1];(0,T.A)(function(){Si((0,A.A)())},[]);var Kr=w.useRef({}),xi=w.useContext(H),Ai=w.useMemo(function(){return{registerSubPopup:function(Jn,ei){Kr.current[Jn]=ei,xi?.registerSubPopup(Jn,ei)}}},[xi]),Pi=P(),io=w.useState(null),lo=(0,l.A)(io,2),Gr=lo[0],un=lo[1],qn=(0,y.A)(function(tr){(0,v.f)(tr)&&Gr!==tr&&un(tr),xi?.registerSubPopup(Pi,tr)}),kn=w.useState(null),St=(0,l.A)(kn,2),ln=St[0],An=St[1],Cr=w.useRef(null),_i=(0,y.A)(function(tr){(0,v.f)(tr)&&ln!==tr&&(An(tr),Cr.current=tr)}),Sn=w.Children.only(K),ir=Sn?.props||{},mt={},fn=(0,y.A)(function(tr){var Jn,ei,Ci=ln;return Ci?.contains(tr)||((Jn=b(Ci))===null||Jn===void 0?void 0:Jn.host)===tr||tr===Ci||Gr?.contains(tr)||((ei=b(Gr))===null||ei===void 0?void 0:ei.host)===tr||tr===Gr||Object.values(Kr.current).some(function(zi){return zi?.contains(tr)||tr===zi})}),gt=pe(I,Or,Gn,En),tn=pe(I,Ln,sr,rr),Vn=w.useState(qe||!1),Ur=(0,l.A)(Vn,2),$r=Ur[0],Pr=Ur[1],zr=ze??$r,gi=(0,y.A)(function(tr){ze===void 0&&Pr(tr)});(0,T.A)(function(){Pr(ze||!1)},[ze]);var $i=w.useRef(zr);$i.current=zr;var eo=w.useRef([]);eo.current=[];var ki=(0,y.A)(function(tr){var Jn;gi(tr),((Jn=eo.current[eo.current.length-1])!==null&&Jn!==void 0?Jn:zr)!==tr&&(eo.current.push(tr),We?.(tr))}),so=w.useRef(),Ho=function(){clearTimeout(so.current)},ra=function(Jn){var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ho(),ei===0?ki(Jn):so.current=setTimeout(function(){ki(Jn)},ei*1e3)};w.useEffect(function(){return Ho},[]);var So=w.useState(!1),gr=(0,l.A)(So,2),di=gr[0],Vi=gr[1];(0,T.A)(function(tr){(!tr||zr)&&Vi(!0)},[zr]);var Ro=w.useState(null),na=(0,l.A)(Ro,2),ta=na[0],aa=na[1],vi=w.useState([0,0]),to=(0,l.A)(vi,2),$o=to[0],ja=to[1],hs=function(Jn){ja([Jn.clientX,Jn.clientY])},ro=U(zr,Gr,Dt?$o:ln,Ct,Wn,Zn,cn),as=(0,l.A)(ro,11),rn=as[0],Dr=as[1],Lr=as[2],li=as[3],Zi=as[4],Di=as[5],wo=as[6],Go=as[7],Ko=as[8],Ie=as[9],yt=as[10],on=Q(hi,De,He,Fe),_n=(0,l.A)(on,2),er=_n[0],or=_n[1],Er=er.has("click"),Mi=or.has("click")||or.has("contextMenu"),Ui=(0,y.A)(function(){di||yt()}),Nn=function(){$i.current&&Dt&&Mi&&ra(!1)};Y(zr,ln,Gr,Ui,Nn),(0,T.A)(function(){Ui()},[$o,Ct]),(0,T.A)(function(){zr&&!(Wn!=null&&Wn[Ct])&&Ui()},[JSON.stringify(Zn)]);var cr=w.useMemo(function(){var tr=ne(Wn,I,Ie,Dt);return f()(tr,gn?.(Ie))},[Ie,gn,Wn,I,Dt]);w.useImperativeHandle(et,function(){return{nativeElement:Cr.current,forceAlign:Ui}});var ni=w.useState(0),Xr=(0,l.A)(ni,2),Jr=Xr[0],Qi=Xr[1],Fo=w.useState(0),No=(0,l.A)(Fo,2),Jo=No[0],br=No[1],Yn=function(){if(Xe&&ln){var Jn=ln.getBoundingClientRect();Qi(Jn.width),br(Jn.height)}},Z=function(){Yn(),Ui()},se=function(Jn){Vi(!1),yt(),_t?.(Jn)},G=function(){return new Promise(function(Jn){Yn(),aa(function(){return Jn})})};(0,T.A)(function(){ta&&(yt(),ta(),aa(null))},[ta]);function B(tr,Jn,ei,Ci){mt[tr]=function(zi){var co;Ci?.(zi),ra(Jn,ei);for(var Xo=arguments.length,Eo=new Array(Xo>1?Xo-1:0),Yo=1;Yo<Xo;Yo++)Eo[Yo-1]=arguments[Yo];(co=ir[tr])===null||co===void 0||co.call.apply(co,[ir,zi].concat(Eo))}}(Er||Mi)&&(mt.onClick=function(tr){var Jn;$i.current&&Mi?ra(!1):!$i.current&&Er&&(hs(tr),ra(!0));for(var ei=arguments.length,Ci=new Array(ei>1?ei-1:0),zi=1;zi<ei;zi++)Ci[zi-1]=arguments[zi];(Jn=ir.onClick)===null||Jn===void 0||Jn.call.apply(Jn,[ir,tr].concat(Ci))}),Ye(zr,Mi,ln,Gr,ge,be,fn,ra);var Pe=er.has("hover"),dt=or.has("hover"),Lt,Pt;Pe&&(B("onMouseEnter",!0,ct,function(tr){hs(tr)}),B("onPointerEnter",!0,ct,function(tr){hs(tr)}),Lt=function(){(zr||di)&&ra(!0,ct)},Dt&&(mt.onMouseMove=function(tr){var Jn;(Jn=ir.onMouseMove)===null||Jn===void 0||Jn.call(ir,tr)})),dt&&(B("onMouseLeave",!1,st),B("onPointerLeave",!1,st),Pt=function(){ra(!1,st)}),er.has("focus")&&B("onFocus",!0,Me),or.has("focus")&&B("onBlur",!1,ie),er.has("contextMenu")&&(mt.onContextMenu=function(tr){var Jn;$i.current&&or.has("contextMenu")?ra(!1):(hs(tr),ra(!0)),tr.preventDefault();for(var ei=arguments.length,Ci=new Array(ei>1?ei-1:0),zi=1;zi<ei;zi++)Ci[zi-1]=arguments[zi];(Jn=ir.onContextMenu)===null||Jn===void 0||Jn.call.apply(Jn,[ir,tr].concat(Ci))}),pi&&(mt.className=f()(ir.className,pi));var $e=(0,i.A)((0,i.A)({},ir),mt),ut={},zt=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];zt.forEach(function(tr){jr[tr]&&(ut[tr]=function(){for(var Jn,ei=arguments.length,Ci=new Array(ei),zi=0;zi<ei;zi++)Ci[zi]=arguments[zi];(Jn=$e[tr])===null||Jn===void 0||Jn.call.apply(Jn,[$e].concat(Ci)),jr[tr].apply(jr,Ci)})});var Ht=w.cloneElement(Sn,(0,i.A)((0,i.A)({},$e),ut)),Fn={x:Di,y:wo},Cn=an?(0,i.A)({},an!==!0?an:{}):null;return w.createElement(w.Fragment,null,w.createElement(p.A,{disabled:!zr,ref:_i,onResize:Z},w.createElement(oe,{getTriggerDOMNode:yi},Ht)),w.createElement(H.Provider,{value:Ai},w.createElement(ve,{portal:Ke,ref:qn,prefixCls:I,popup:at,className:f()($t,cr),style:On,target:ln,onMouseEnter:Lt,onMouseLeave:Pt,onPointerEnter:Lt,zIndex:xt,open:zr,keepDom:di,fresh:Qt,onClick:hn,mask:ge,motion:gt,maskMotion:tn,onVisibleChanged:se,onPrepare:G,forceRender:Bt,autoDestroy:ui,getPopupContainer:Qe,align:Ie,arrow:Cn,arrowPos:Fn,ready:rn,offsetX:Dr,offsetY:Lr,offsetR:li,offsetB:Zi,onAlign:Ui,stretch:Xe,targetWidth:Jr/Go,targetHeight:Jo/Ko})))});return it}const Ut=wt(m.A)},93020:(J,g,t)=>{"use strict";t.d(g,{xP:()=>re});var i=t(51066),l=t(1081),s=t(96540),m=t(69733),u=t(30038),f=function(H,V){for(var Q=0,Te=V.length,Re=H.length;Q<Te;Q++,Re++)H[Re]=V[Q];return H},p=Object.defineProperty,v=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,w=function(H,V,Q){return V in H?p(H,V,{enumerable:!0,configurable:!0,writable:!0,value:Q}):H[V]=Q},S=function(H,V){for(var Q in V||(V={}))b.call(V,Q)&&w(H,Q,V[Q]);if(d)for(var Te=0,Re=d(V);Te<Re.length;Te++){var Q=Re[Te];y.call(V,Q)&&w(H,Q,V[Q])}return H},O=function(H,V){return v(H,h(V))};function R(H,V,Q,Te){var Re=(0,s.useMemo)(function(){return{queryArgs:H,serialized:typeof H=="object"?V({queryArgs:H,endpointDefinition:Q,endpointName:Te}):H}},[H,V,Q,Te]),ne=(0,s.useRef)(Re);return(0,s.useEffect)(function(){ne.current.serialized!==Re.serialized&&(ne.current=Re)},[Re]),ne.current.serialized===Re.serialized?ne.current.queryArgs:H}var M=Symbol();function D(H){var V=(0,s.useRef)(H);return(0,s.useEffect)(function(){(0,m.shallowEqual)(V.current,H)||(V.current=H)},[H]),(0,m.shallowEqual)(V.current,H)?V.current:H}var P=WeakMap?new WeakMap:void 0,T=function(H){var V=H.endpointName,Q=H.queryArgs,Te="",Re=P?.get(Q);if(typeof Re=="string")Te=Re;else{var ne=JSON.stringify(Q,function(pe,ye){return(0,u.Qd)(ye)?Object.keys(ye).sort().reduce(function(Se,Ae){return Se[Ae]=ye[Ae],Se},{}):ye});(0,u.Qd)(Q)&&P?.set(Q,ne),Te=ne}return V+"("+Te+")"},A=typeof window<"u"&&window.document&&window.document.createElement?s.useLayoutEffect:s.useEffect,j=function(H){return H},ae=function(H){return H.isUninitialized?O(S({},H),{isUninitialized:!1,isFetching:!0,isLoading:H.data===void 0,status:i.RE.pending}):H};function _(H){var V=H.api,Q=H.moduleOptions,Te=Q.batch,Re=Q.useDispatch,ne=Q.useSelector,pe=Q.useStore,ye=Q.unstable__sideEffectsInRender,Se=H.serializeQueryArgs,Ae=H.context,Ee=ye?function(Rt){return Rt()}:s.useEffect;return{buildQueryHooks:Tt,buildMutationHook:pt,usePrefetch:nt};function xe(Rt,tt,U){if(tt?.endpointName&&Rt.isUninitialized){var F=tt.endpointName,Y=Ae.endpointDefinitions[F];Se({queryArgs:tt.originalArgs,endpointDefinition:Y,endpointName:F})===Se({queryArgs:U,endpointDefinition:Y,endpointName:F})&&(tt=void 0)}var le=Rt.isSuccess?Rt.data:tt?.data;le===void 0&&(le=Rt.data);var ke=le!==void 0,Ye=Rt.isLoading,ft=!ke&&Ye,wt=Rt.isSuccess||Ye&&ke;return O(S({},Rt),{data:le,currentData:Rt.data,isFetching:Ye,isLoading:ft,isSuccess:wt})}function nt(Rt,tt){var U=Re(),F=D(tt);return(0,s.useCallback)(function(Y,le){return U(V.util.prefetch(Rt,Y,S(S({},F),le)))},[Rt,U,F])}function Tt(Rt){var tt=function(Y,le){var ke=le===void 0?{}:le,Ye=ke.refetchOnReconnect,ft=ke.refetchOnFocus,wt=ke.refetchOnMountOrArgChange,Ut=ke.skip,Ke=Ut===void 0?!1:Ut,it=ke.pollingInterval,At=it===void 0?0:it,et=V.endpoints[Rt].initiate,ee=Re(),I=R(Ke?i.hT:Y,T,Ae.endpointDefinitions[Rt],Rt),K=D({refetchOnReconnect:Ye,refetchOnFocus:ft,pollingInterval:At}),ue=(0,s.useRef)(!1),De=(0,s.useRef)(),He=De.current||{},Fe=He.queryCacheKey,ze=He.requestId,qe=!1;if(Fe&&ze){var We=ee(V.internalActions.internal_probeSubscription({queryCacheKey:Fe,requestId:ze}));qe=!!We}var _t=!qe&&ue.current;return Ee(function(){ue.current=qe}),Ee(function(){_t&&(De.current=void 0)},[_t]),Ee(function(){var ct,Ge=De.current;if(typeof process<"u",I===i.hT){Ge?.unsubscribe(),De.current=void 0;return}var st=(ct=De.current)==null?void 0:ct.subscriptionOptions;if(!Ge||Ge.arg!==I){Ge?.unsubscribe();var Me=ee(et(I,{subscriptionOptions:K,forceRefetch:wt}));De.current=Me}else K!==st&&Ge.updateSubscriptionOptions(K)},[ee,et,wt,I,K,_t]),(0,s.useEffect)(function(){return function(){var ct;(ct=De.current)==null||ct.unsubscribe(),De.current=void 0}},[]),(0,s.useMemo)(function(){return{refetch:function(){var ct;if(!De.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ct=De.current)==null?void 0:ct.refetch()}}},[])},U=function(Y){var le=Y===void 0?{}:Y,ke=le.refetchOnReconnect,Ye=le.refetchOnFocus,ft=le.pollingInterval,wt=ft===void 0?0:ft,Ut=V.endpoints[Rt].initiate,Ke=Re(),it=(0,s.useState)(M),At=it[0],et=it[1],ee=(0,s.useRef)(),I=D({refetchOnReconnect:ke,refetchOnFocus:Ye,pollingInterval:wt});Ee(function(){var De,He,Fe=(De=ee.current)==null?void 0:De.subscriptionOptions;I!==Fe&&((He=ee.current)==null||He.updateSubscriptionOptions(I))},[I]);var K=(0,s.useRef)(I);Ee(function(){K.current=I},[I]);var ue=(0,s.useCallback)(function(De,He){He===void 0&&(He=!1);var Fe;return Te(function(){var ze;(ze=ee.current)==null||ze.unsubscribe(),ee.current=Fe=Ke(Ut(De,{subscriptionOptions:K.current,forceRefetch:!He})),et(De)}),Fe},[Ke,Ut]);return(0,s.useEffect)(function(){return function(){var De;(De=ee?.current)==null||De.unsubscribe()}},[]),(0,s.useEffect)(function(){At!==M&&!ee.current&&ue(At,!0)},[At,ue]),(0,s.useMemo)(function(){return[ue,At]},[ue,At])},F=function(Y,le){var ke=le===void 0?{}:le,Ye=ke.skip,ft=Ye===void 0?!1:Ye,wt=ke.selectFromResult,Ut=V.endpoints[Rt].select,Ke=R(ft?i.hT:Y,Se,Ae.endpointDefinitions[Rt],Rt),it=(0,s.useRef)(),At=(0,s.useMemo)(function(){return(0,l.Mz)([Ut(Ke),function(ue,De){return De},function(ue){return Ke}],xe)},[Ut,Ke]),et=(0,s.useMemo)(function(){return wt?(0,l.Mz)([At],wt):At},[At,wt]),ee=ne(function(ue){return et(ue,it.current)},m.shallowEqual),I=pe(),K=At(I.getState(),it.current);return A(function(){it.current=K},[K]),ee};return{useQueryState:F,useQuerySubscription:tt,useLazyQuerySubscription:U,useLazyQuery:function(Y){var le=U(Y),ke=le[0],Ye=le[1],ft=F(Ye,O(S({},Y),{skip:Ye===M})),wt=(0,s.useMemo)(function(){return{lastArg:Ye}},[Ye]);return(0,s.useMemo)(function(){return[ke,ft,wt]},[ke,ft,wt])},useQuery:function(Y,le){var ke=tt(Y,le),Ye=F(Y,S({selectFromResult:Y===i.hT||le?.skip?void 0:ae},le)),ft=Ye.data,wt=Ye.status,Ut=Ye.isLoading,Ke=Ye.isSuccess,it=Ye.isError,At=Ye.error;return(0,s.useDebugValue)({data:ft,status:wt,isLoading:Ut,isSuccess:Ke,isError:it,error:At}),(0,s.useMemo)(function(){return S(S({},Ye),ke)},[Ye,ke])}}}function pt(Rt){return function(tt){var U=tt===void 0?{}:tt,F=U.selectFromResult,Y=F===void 0?j:F,le=U.fixedCacheKey,ke=V.endpoints[Rt],Ye=ke.select,ft=ke.initiate,wt=Re(),Ut=(0,s.useState)(),Ke=Ut[0],it=Ut[1];(0,s.useEffect)(function(){return function(){Ke?.arg.fixedCacheKey||Ke?.reset()}},[Ke]);var At=(0,s.useCallback)(function(Ge){var st=wt(ft(Ge,{fixedCacheKey:le}));return it(st),st},[wt,ft,le]),et=(Ke||{}).requestId,ee=(0,s.useMemo)(function(){return(0,l.Mz)([Ye({fixedCacheKey:le,requestId:Ke?.requestId})],Y)},[Ye,Ke,Y,le]),I=ne(ee,m.shallowEqual),K=le==null?Ke?.arg.originalArgs:void 0,ue=(0,s.useCallback)(function(){Te(function(){Ke&&it(void 0),le&&wt(V.internalActions.removeMutationResult({requestId:et,fixedCacheKey:le}))})},[wt,le,Ke,et]),De=I.endpointName,He=I.data,Fe=I.status,ze=I.isLoading,qe=I.isSuccess,We=I.isError,_t=I.error;(0,s.useDebugValue)({endpointName:De,data:He,status:Fe,isLoading:ze,isSuccess:qe,isError:We,error:_t});var ct=(0,s.useMemo)(function(){return O(S({},I),{originalArgs:K,reset:ue})},[I,K,ue]);return(0,s.useMemo)(function(){return[At,ct]},[At,ct])}}}var N;(function(H){H.query="query",H.mutation="mutation"})(N||(N={}));function W(H){return H.type===N.query}function he(H){return H.type===N.mutation}function me(H){return H.replace(H[0],H[0].toUpperCase())}function fe(H){for(var V=[],Q=1;Q<arguments.length;Q++)V[Q-1]=arguments[Q];Object.assign.apply(Object,f([H],V))}var ve=Symbol(),ce=function(H){var V=H===void 0?{}:H,Q=V.batch,Te=Q===void 0?m.batch:Q,Re=V.useDispatch,ne=Re===void 0?m.useDispatch:Re,pe=V.useSelector,ye=pe===void 0?m.useSelector:pe,Se=V.useStore,Ae=Se===void 0?m.useStore:Se,Ee=V.unstable__sideEffectsInRender,xe=Ee===void 0?!1:Ee;return{name:ve,init:function(nt,Tt,pt){var Rt=Tt.serializeQueryArgs,tt=nt,U=_({api:nt,moduleOptions:{batch:Te,useDispatch:ne,useSelector:ye,useStore:Ae,unstable__sideEffectsInRender:xe},serializeQueryArgs:Rt,context:pt}),F=U.buildQueryHooks,Y=U.buildMutationHook,le=U.usePrefetch;return fe(tt,{usePrefetch:le}),fe(pt,{batch:Te}),{injectEndpoint:function(ke,Ye){if(W(Ye)){var ft=F(ke),wt=ft.useQuery,Ut=ft.useLazyQuery,Ke=ft.useLazyQuerySubscription,it=ft.useQueryState,At=ft.useQuerySubscription;fe(tt.endpoints[ke],{useQuery:wt,useLazyQuery:Ut,useLazyQuerySubscription:Ke,useQueryState:it,useQuerySubscription:At}),nt["use"+me(ke)+"Query"]=wt,nt["useLazy"+me(ke)+"Query"]=Ut}else if(he(Ye)){var et=Y(ke);fe(tt.endpoints[ke],{useMutation:et}),nt["use"+me(ke)+"Mutation"]=et}}}}}};function oe(H){var V=React.useState(function(){var Q;return configureStore({reducer:(Q={},Q[H.api.reducerPath]=H.api.reducer,Q),middleware:function(Te){return Te().concat(H.api.middleware)}})})[0];return useEffect4(function(){return H.setupListeners===!1?void 0:setupListeners(V.dispatch,H.setupListeners)},[H.setupListeners,V.dispatch]),React.createElement(Provider,{store:V,context:H.context},H.children)}var re=(0,i.l0)((0,i.m7)(),ce())},51066:(J,g,t)=>{"use strict";t.d(g,{$k:()=>nt,RE:()=>P,hT:()=>I,l0:()=>We,m7:()=>Wn});var i=t(30038),l=t(2435),s=t(1081),m=t(82960),u=t(86234),f=function(xt,Xe){var gn={label:0,sent:function(){if(hn[0]&1)throw hn[1];return hn[1]},trys:[],ops:[]},Qt,Dt,hn,cn;return cn={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(cn[Symbol.iterator]=function(){return this}),cn;function an(Ln){return function(En){return Or([Ln,En])}}function Or(Ln){if(Qt)throw new TypeError("Generator is already executing.");for(;gn;)try{if(Qt=1,Dt&&(hn=Ln[0]&2?Dt.return:Ln[0]?Dt.throw||((hn=Dt.return)&&hn.call(Dt),0):Dt.next)&&!(hn=hn.call(Dt,Ln[1])).done)return hn;switch(Dt=0,hn&&(Ln=[Ln[0]&2,hn.value]),Ln[0]){case 0:case 1:hn=Ln;break;case 4:return gn.label++,{value:Ln[1],done:!1};case 5:gn.label++,Dt=Ln[1],Ln=[0];continue;case 7:Ln=gn.ops.pop(),gn.trys.pop();continue;default:if(hn=gn.trys,!(hn=hn.length>0&&hn[hn.length-1])&&(Ln[0]===6||Ln[0]===2)){gn=0;continue}if(Ln[0]===3&&(!hn||Ln[1]>hn[0]&&Ln[1]<hn[3])){gn.label=Ln[1];break}if(Ln[0]===6&&gn.label<hn[1]){gn.label=hn[1],hn=Ln;break}if(hn&&gn.label<hn[2]){gn.label=hn[2],gn.ops.push(Ln);break}hn[2]&&gn.ops.pop(),gn.trys.pop();continue}Ln=Xe.call(xt,gn)}catch(En){Ln=[6,En],Dt=0}finally{Qt=hn=0}if(Ln[0]&5)throw Ln[1];return{value:Ln[0]?Ln[1]:void 0,done:!0}}},p=function(xt,Xe){for(var gn=0,Qt=Xe.length,Dt=xt.length;gn<Qt;gn++,Dt++)xt[Dt]=Xe[gn];return xt},v=Object.defineProperty,h=Object.defineProperties,d=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,S=function(xt,Xe,gn){return Xe in xt?v(xt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:gn}):xt[Xe]=gn},O=function(xt,Xe){for(var gn in Xe||(Xe={}))y.call(Xe,gn)&&S(xt,gn,Xe[gn]);if(b)for(var Qt=0,Dt=b(Xe);Qt<Dt.length;Qt++){var gn=Dt[Qt];w.call(Xe,gn)&&S(xt,gn,Xe[gn])}return xt},R=function(xt,Xe){return h(xt,d(Xe))},M=function(xt,Xe){var gn={};for(var Qt in xt)y.call(xt,Qt)&&Xe.indexOf(Qt)<0&&(gn[Qt]=xt[Qt]);if(xt!=null&&b)for(var Dt=0,hn=b(xt);Dt<hn.length;Dt++){var Qt=hn[Dt];Xe.indexOf(Qt)<0&&w.call(xt,Qt)&&(gn[Qt]=xt[Qt])}return gn},D=function(xt,Xe,gn){return new Promise(function(Qt,Dt){var hn=function(Or){try{an(gn.next(Or))}catch(Ln){Dt(Ln)}},cn=function(Or){try{an(gn.throw(Or))}catch(Ln){Dt(Ln)}},an=function(Or){return Or.done?Qt(Or.value):Promise.resolve(Or.value).then(hn,cn)};an((gn=gn.apply(xt,Xe)).next())})},P;(function(xt){xt.uninitialized="uninitialized",xt.pending="pending",xt.fulfilled="fulfilled",xt.rejected="rejected"})(P||(P={}));function T(xt){return{status:xt,isUninitialized:xt===P.uninitialized,isLoading:xt===P.pending,isSuccess:xt===P.fulfilled,isError:xt===P.rejected}}function A(xt){return new RegExp("(^|:)//").test(xt)}var j=function(xt){return xt.replace(/\/$/,"")},ae=function(xt){return xt.replace(/^\//,"")};function _(xt,Xe){if(!xt)return Xe;if(!Xe)return xt;if(A(Xe))return Xe;var gn=xt.endsWith("/")||!Xe.startsWith("?")?"/":"";return xt=j(xt),Xe=ae(Xe),""+xt+gn+Xe}var N=function(xt){return[].concat.apply([],xt)};function W(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function he(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var me=i.Qd;function fe(xt,Xe){if(xt===Xe||!(me(xt)&&me(Xe)||Array.isArray(xt)&&Array.isArray(Xe)))return Xe;for(var gn=Object.keys(Xe),Qt=Object.keys(xt),Dt=gn.length===Qt.length,hn=Array.isArray(Xe)?[]:{},cn=0,an=gn;cn<an.length;cn++){var Or=an[cn];hn[Or]=fe(xt[Or],Xe[Or]),Dt&&(Dt=xt[Or]===hn[Or])}return Dt?xt:hn}var ve=function(){for(var xt=[],Xe=0;Xe<arguments.length;Xe++)xt[Xe]=arguments[Xe];return fetch.apply(void 0,xt)},ce=function(xt){return xt.status>=200&&xt.status<=299},oe=function(xt){return/ion\/(vnd\.api\+)?json/.test(xt.get("content-type")||"")};function re(xt){if(!isPlainObject2(xt))return xt;for(var Xe=O({},xt),gn=0,Qt=Object.entries(Xe);gn<Qt.length;gn++){var Dt=Qt[gn],hn=Dt[0],cn=Dt[1];cn===void 0&&delete Xe[hn]}return Xe}function H(xt){var Xe=this;xt===void 0&&(xt={});var gn=xt,Qt=gn.baseUrl,Dt=gn.prepareHeaders,hn=Dt===void 0?function(ri){return ri}:Dt,cn=gn.fetchFn,an=cn===void 0?ve:cn,Or=gn.paramsSerializer,Ln=gn.isJsonContentType,En=Ln===void 0?oe:Ln,Gn=gn.jsonContentType,rr=Gn===void 0?"application/json":Gn,sr=gn.jsonReplacer,pi=gn.timeout,yi=gn.responseHandler,jr=gn.validateStatus,ui=M(gn,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&an===ve&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(ri,hi){return D(Xe,null,function(){var Si,Kr,xi,Ai,Pi,io,lo,Gr,un,qn,kn,St,ln,An,Cr,_i,Sn,ir,mt,fn,gt,tn,Vn,Ur,$r,Pr,zr,gi,$i,eo,ki,so,Ho,ra,So,gr;return f(this,function(di){switch(di.label){case 0:return Si=hi.signal,Kr=hi.getState,xi=hi.extra,Ai=hi.endpoint,Pi=hi.forced,io=hi.type,Gr=typeof ri=="string"?{url:ri}:ri,un=Gr.url,qn=Gr.headers,kn=qn===void 0?new Headers(ui.headers):qn,St=Gr.params,ln=St===void 0?void 0:St,An=Gr.responseHandler,Cr=An===void 0?yi??"json":An,_i=Gr.validateStatus,Sn=_i===void 0?jr??ce:_i,ir=Gr.timeout,mt=ir===void 0?pi:ir,fn=M(Gr,["url","headers","params","responseHandler","validateStatus","timeout"]),gt=O(R(O({},ui),{signal:Si}),fn),kn=new Headers(re(kn)),tn=gt,[4,hn(kn,{getState:Kr,extra:xi,endpoint:Ai,forced:Pi,type:io})];case 1:tn.headers=di.sent()||kn,Vn=function(Vi){return typeof Vi=="object"&&(isPlainObject2(Vi)||Array.isArray(Vi)||typeof Vi.toJSON=="function")},!gt.headers.has("content-type")&&Vn(gt.body)&>.headers.set("content-type",rr),Vn(gt.body)&&En(gt.headers)&&(gt.body=JSON.stringify(gt.body,sr)),ln&&(Ur=~un.indexOf("?")?"&":"?",$r=Or?Or(ln):new URLSearchParams(re(ln)),un+=Ur+$r),un=_(Qt,un),Pr=new Request(un,gt),zr=Pr.clone(),lo={request:zr},$i=!1,eo=mt&&setTimeout(function(){$i=!0,hi.abort()},mt),di.label=2;case 2:return di.trys.push([2,4,5,6]),[4,an(Pr)];case 3:return gi=di.sent(),[3,6];case 4:return ki=di.sent(),[2,{error:{status:$i?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ki)},meta:lo}];case 5:return eo&&clearTimeout(eo),[7];case 6:so=gi.clone(),lo.response=so,ra="",di.label=7;case 7:return di.trys.push([7,9,,10]),[4,Promise.all([bi(gi,Cr).then(function(Vi){return Ho=Vi},function(Vi){return So=Vi}),so.text().then(function(Vi){return ra=Vi},function(){})])];case 8:if(di.sent(),So)throw So;return[3,10];case 9:return gr=di.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:gi.status,data:ra,error:String(gr)},meta:lo}];case 10:return[2,Sn(gi,Ho)?{data:Ho,meta:lo}:{error:{status:gi.status,data:Ho},meta:lo}]}})})};function bi(ri,hi){return D(this,null,function(){var Si;return f(this,function(Kr){switch(Kr.label){case 0:return typeof hi=="function"?[2,hi(ri)]:(hi==="content-type"&&(hi=En(ri.headers)?"json":"text"),hi!=="json"?[3,2]:[4,ri.text()]);case 1:return Si=Kr.sent(),[2,Si.length?JSON.parse(Si):null];case 2:return[2,ri.text()]}})})}}var V=function(){function xt(Xe,gn){gn===void 0&&(gn=void 0),this.value=Xe,this.meta=gn}return xt}();function Q(xt,Xe){return xt===void 0&&(xt=0),Xe===void 0&&(Xe=5),D(this,null,function(){var gn,Qt;return f(this,function(Dt){switch(Dt.label){case 0:return gn=Math.min(xt,Xe),Qt=~~((Math.random()+.4)*(300<<gn)),[4,new Promise(function(hn){return setTimeout(function(cn){return hn(cn)},Qt)})];case 1:return Dt.sent(),[2]}})})}function Te(xt){throw Object.assign(new V({error:xt}),{throwImmediately:!0})}var Re={},ne=function(xt,Xe){return function(gn,Qt,Dt){return D(void 0,null,function(){var hn,cn,an,Or,Ln,En,Gn;return f(this,function(rr){switch(rr.label){case 0:hn=[5,(Xe||Re).maxRetries,(Dt||Re).maxRetries].filter(function(sr){return sr!==void 0}),cn=hn.slice(-1)[0],an=function(sr,pi,yi){var jr=yi.attempt;return jr<=cn},Or=O(O({maxRetries:cn,backoff:Q,retryCondition:an},Xe),Dt),Ln=0,rr.label=1;case 1:rr.label=2;case 2:return rr.trys.push([2,4,,6]),[4,xt(gn,Qt,Dt)];case 3:if(En=rr.sent(),En.error)throw new V(En);return[2,En];case 4:if(Gn=rr.sent(),Ln++,Gn.throwImmediately){if(Gn instanceof V)return[2,Gn.value];throw Gn}return Gn instanceof V&&!Or.retryCondition(Gn.value.error,gn,{attempt:Ln,baseQueryApi:Qt,extraOptions:Dt})?[2,Gn.value]:[4,Or.backoff(Ln,Or.maxRetries)];case 5:return rr.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},pe=Object.assign(ne,{fail:Te}),ye=(0,i.VP)("__rtkq/focused"),Se=(0,i.VP)("__rtkq/unfocused"),Ae=(0,i.VP)("__rtkq/online"),Ee=(0,i.VP)("__rtkq/offline"),xe=!1;function nt(xt,Xe){function gn(){var Qt=function(){return xt(ye())},Dt=function(){return xt(Se())},hn=function(){return xt(Ae())},cn=function(){return xt(Ee())},an=function(){window.document.visibilityState==="visible"?Qt():Dt()};xe||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",an,!1),window.addEventListener("focus",Qt,!1),window.addEventListener("online",hn,!1),window.addEventListener("offline",cn,!1),xe=!0);var Or=function(){window.removeEventListener("focus",Qt),window.removeEventListener("visibilitychange",an),window.removeEventListener("online",hn),window.removeEventListener("offline",cn),xe=!1};return Or}return Xe?Xe(xt,{onFocus:ye,onFocusLost:Se,onOffline:Ee,onOnline:Ae}):gn()}var Tt;(function(xt){xt.query="query",xt.mutation="mutation"})(Tt||(Tt={}));function pt(xt){return xt.type===Tt.query}function Rt(xt){return xt.type===Tt.mutation}function tt(xt,Xe,gn,Qt,Dt,hn){return U(xt)?xt(Xe,gn,Qt,Dt).map(F).map(hn):Array.isArray(xt)?xt.map(F).map(hn):[]}function U(xt){return typeof xt=="function"}function F(xt){return typeof xt=="string"?{type:xt}:xt}function Y(xt){return xt!=null}var le=Symbol("forceQueryFn"),ke=function(xt){return typeof xt[le]=="function"};function Ye(xt){var Xe=xt.serializeQueryArgs,gn=xt.queryThunk,Qt=xt.mutationThunk,Dt=xt.api,hn=xt.context,cn=new Map,an=new Map,Or=Dt.internalActions,Ln=Or.unsubscribeQueryResult,En=Or.removeMutationResult,Gn=Or.updateSubscriptionOptions;return{buildInitiateQuery:ri,buildInitiateMutation:hi,getRunningQueryThunk:pi,getRunningMutationThunk:yi,getRunningQueriesThunk:jr,getRunningMutationsThunk:ui,getRunningOperationPromises:sr,removalWarning:rr};function rr(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function sr(){typeof process<"u";var Si=function(Kr){return Array.from(Kr.values()).flatMap(function(xi){return xi?Object.values(xi):[]})};return p(p([],Si(cn)),Si(an)).filter(Y)}function pi(Si,Kr){return function(xi){var Ai,Pi=hn.endpointDefinitions[Si],io=Xe({queryArgs:Kr,endpointDefinition:Pi,endpointName:Si});return(Ai=cn.get(xi))==null?void 0:Ai[io]}}function yi(Si,Kr){return function(xi){var Ai;return(Ai=an.get(xi))==null?void 0:Ai[Kr]}}function jr(){return function(Si){return Object.values(cn.get(Si)||{}).filter(Y)}}function ui(){return function(Si){return Object.values(an.get(Si)||{}).filter(Y)}}function bi(Si){if(!1)var Kr}function ri(Si,Kr){var xi=function(Ai,Pi){var io=Pi===void 0?{}:Pi,lo=io.subscribe,Gr=lo===void 0?!0:lo,un=io.forceRefetch,qn=io.subscriptionOptions,kn=le,St=io[kn];return function(ln,An){var Cr,_i,Sn=Xe({queryArgs:Ai,endpointDefinition:Kr,endpointName:Si}),ir=gn((Cr={type:"query",subscribe:Gr,forceRefetch:un,subscriptionOptions:qn,endpointName:Si,originalArgs:Ai,queryCacheKey:Sn},Cr[le]=St,Cr)),mt=Dt.endpoints[Si].select(Ai),fn=ln(ir),gt=mt(An());bi(ln);var tn=fn.requestId,Vn=fn.abort,Ur=gt.requestId!==tn,$r=(_i=cn.get(ln))==null?void 0:_i[Sn],Pr=function(){return mt(An())},zr=Object.assign(St?fn.then(Pr):Ur&&!$r?Promise.resolve(gt):Promise.all([$r,fn]).then(Pr),{arg:Ai,requestId:tn,subscriptionOptions:qn,queryCacheKey:Sn,abort:Vn,unwrap:function(){return D(this,null,function(){var $i;return f(this,function(eo){switch(eo.label){case 0:return[4,zr];case 1:if($i=eo.sent(),$i.isError)throw $i.error;return[2,$i.data]}})})},refetch:function(){return ln(xi(Ai,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){Gr&&ln(Ln({queryCacheKey:Sn,requestId:tn}))},updateSubscriptionOptions:function($i){zr.subscriptionOptions=$i,ln(Gn({endpointName:Si,requestId:tn,queryCacheKey:Sn,options:$i}))}});if(!$r&&!Ur&&!St){var gi=cn.get(ln)||{};gi[Sn]=zr,cn.set(ln,gi),zr.then(function(){delete gi[Sn],Object.keys(gi).length||cn.delete(ln)})}return zr}};return xi}function hi(Si){return function(Kr,xi){var Ai=xi===void 0?{}:xi,Pi=Ai.track,io=Pi===void 0?!0:Pi,lo=Ai.fixedCacheKey;return function(Gr,un){var qn=Qt({type:"mutation",endpointName:Si,originalArgs:Kr,track:io,fixedCacheKey:lo}),kn=Gr(qn);bi(Gr);var St=kn.requestId,ln=kn.abort,An=kn.unwrap,Cr=kn.unwrap().then(function(mt){return{data:mt}}).catch(function(mt){return{error:mt}}),_i=function(){Gr(En({requestId:St,fixedCacheKey:lo}))},Sn=Object.assign(Cr,{arg:kn.arg,requestId:St,abort:ln,unwrap:An,unsubscribe:_i,reset:_i}),ir=an.get(Gr)||{};return an.set(Gr,ir),ir[St]=Sn,Sn.then(function(){delete ir[St],Object.keys(ir).length||an.delete(Gr)}),lo&&(ir[lo]=Sn,Sn.then(function(){ir[lo]===Sn&&(delete ir[lo],Object.keys(ir).length||an.delete(Gr))})),Sn}}}}function ft(xt){return xt}function wt(xt){var Xe=this,gn=xt.reducerPath,Qt=xt.baseQuery,Dt=xt.context.endpointDefinitions,hn=xt.serializeQueryArgs,cn=xt.api,an=function(ri,hi,Si){return function(Kr){var xi=Dt[ri];Kr(cn.internalActions.queryResultPatched({queryCacheKey:hn({queryArgs:hi,endpointDefinition:xi,endpointName:ri}),patches:Si}))}},Or=function(ri,hi,Si){return function(Kr,xi){var Ai,Pi,io=cn.endpoints[ri].select(hi)(xi()),lo={patches:[],inversePatches:[],undo:function(){return Kr(cn.util.patchQueryData(ri,hi,lo.inversePatches))}};if(io.status===P.uninitialized)return lo;if("data"in io)if((0,l.a6)(io.data)){var Gr=(0,l.vI)(io.data,Si),un=Gr[1],qn=Gr[2];(Ai=lo.patches).push.apply(Ai,un),(Pi=lo.inversePatches).push.apply(Pi,qn)}else{var kn=Si(io.data);lo.patches.push({op:"replace",path:[],value:kn}),lo.inversePatches.push({op:"replace",path:[],value:io.data})}return Kr(cn.util.patchQueryData(ri,hi,lo.patches)),lo}},Ln=function(ri,hi,Si){return function(Kr){var xi;return Kr(cn.endpoints[ri].initiate(hi,(xi={subscribe:!1,forceRefetch:!0},xi[le]=function(){return{data:Si}},xi)))}},En=function(ri,hi){return D(Xe,[ri,hi],function(Si,Kr){var xi,Ai,Pi,io,lo,Gr,un,qn,kn,St,ln,An,Cr,_i,Sn,ir,mt,fn,gt=Kr.signal,tn=Kr.abort,Vn=Kr.rejectWithValue,Ur=Kr.fulfillWithValue,$r=Kr.dispatch,Pr=Kr.getState,zr=Kr.extra;return f(this,function(gi){switch(gi.label){case 0:xi=Dt[Si.endpointName],gi.label=1;case 1:return gi.trys.push([1,8,,13]),Ai=ft,Pi=void 0,io={signal:gt,abort:tn,dispatch:$r,getState:Pr,extra:zr,endpoint:Si.endpointName,type:Si.type,forced:Si.type==="query"?Gn(Si,Pr()):void 0},lo=Si.type==="query"?Si[le]:void 0,lo?(Pi=lo(),[3,6]):[3,2];case 2:return xi.query?[4,Qt(xi.query(Si.originalArgs),io,xi.extraOptions)]:[3,4];case 3:return Pi=gi.sent(),xi.transformResponse&&(Ai=xi.transformResponse),[3,6];case 4:return[4,xi.queryFn(Si.originalArgs,io,xi.extraOptions,function($i){return Qt($i,io,xi.extraOptions)})];case 5:Pi=gi.sent(),gi.label=6;case 6:if(typeof process<"u",Pi.error)throw new V(Pi.error,Pi.meta);return ln=Ur,[4,Ai(Pi.data,Pi.meta,Si.originalArgs)];case 7:return[2,ln.apply(void 0,[gi.sent(),(mt={fulfilledTimeStamp:Date.now(),baseQueryMeta:Pi.meta},mt[i.cN]=!0,mt)])];case 8:if(An=gi.sent(),Cr=An,!(Cr instanceof V))return[3,12];_i=ft,xi.query&&xi.transformErrorResponse&&(_i=xi.transformErrorResponse),gi.label=9;case 9:return gi.trys.push([9,11,,12]),Sn=Vn,[4,_i(Cr.value,Cr.meta,Si.originalArgs)];case 10:return[2,Sn.apply(void 0,[gi.sent(),(fn={baseQueryMeta:Cr.meta},fn[i.cN]=!0,fn)])];case 11:return ir=gi.sent(),Cr=ir,[3,12];case 12:throw typeof process<"u",console.error(Cr),Cr;case 13:return[2]}})})};function Gn(ri,hi){var Si,Kr,xi,Ai,Pi=(Kr=(Si=hi[gn])==null?void 0:Si.queries)==null?void 0:Kr[ri.queryCacheKey],io=(xi=hi[gn])==null?void 0:xi.config.refetchOnMountOrArgChange,lo=Pi?.fulfilledTimeStamp,Gr=(Ai=ri.forceRefetch)!=null?Ai:ri.subscribe&&io;return Gr?Gr===!0||(Number(new Date)-Number(lo))/1e3>=Gr:!1}var rr=(0,i.zD)(gn+"/executeQuery",En,{getPendingMeta:function(){var ri;return ri={startedTimeStamp:Date.now()},ri[i.cN]=!0,ri},condition:function(ri,hi){var Si=hi.getState,Kr,xi,Ai,Pi=Si(),io=(xi=(Kr=Pi[gn])==null?void 0:Kr.queries)==null?void 0:xi[ri.queryCacheKey],lo=io?.fulfilledTimeStamp,Gr=ri.originalArgs,un=io?.originalArgs,qn=Dt[ri.endpointName];return ke(ri)?!0:io?.status==="pending"?!1:Gn(ri,Pi)||pt(qn)&&((Ai=qn?.forceRefetch)!=null&&Ai.call(qn,{currentArg:Gr,previousArg:un,endpointState:io,state:Pi}))?!0:!lo},dispatchConditionRejection:!0}),sr=(0,i.zD)(gn+"/executeMutation",En,{getPendingMeta:function(){var ri;return ri={startedTimeStamp:Date.now()},ri[i.cN]=!0,ri}}),pi=function(ri){return"force"in ri},yi=function(ri){return"ifOlderThan"in ri},jr=function(ri,hi,Si){return function(Kr,xi){var Ai=pi(Si)&&Si.force,Pi=yi(Si)&&Si.ifOlderThan,io=function(qn){return qn===void 0&&(qn=!0),cn.endpoints[ri].initiate(hi,{forceRefetch:qn})},lo=cn.endpoints[ri].select(hi)(xi());if(Ai)Kr(io());else if(Pi){var Gr=lo?.fulfilledTimeStamp;if(!Gr){Kr(io());return}var un=(Number(new Date)-Number(new Date(Gr)))/1e3>=Pi;un&&Kr(io())}else Kr(io(!1))}};function ui(ri){return function(hi){var Si,Kr;return((Kr=(Si=hi?.meta)==null?void 0:Si.arg)==null?void 0:Kr.endpointName)===ri}}function bi(ri,hi){return{matchPending:(0,i.f$)((0,i.mm)(ri),ui(hi)),matchFulfilled:(0,i.f$)((0,i.sf)(ri),ui(hi)),matchRejected:(0,i.f$)((0,i.TK)(ri),ui(hi))}}return{queryThunk:rr,mutationThunk:sr,prefetch:jr,updateQueryData:Or,upsertQueryData:Ln,patchQueryData:an,buildMatchThunkActions:bi}}function Ut(xt,Xe,gn,Qt){return tt(gn[xt.meta.arg.endpointName][Xe],(0,i.sf)(xt)?xt.payload:void 0,(0,i.WA)(xt)?xt.payload:void 0,xt.meta.arg.originalArgs,"baseQueryMeta"in xt.meta?xt.meta.baseQueryMeta:void 0,Qt)}function Ke(xt,Xe,gn){var Qt=xt[Xe];Qt&&gn(Qt)}function it(xt){var Xe;return(Xe="arg"in xt?xt.arg.fixedCacheKey:xt.fixedCacheKey)!=null?Xe:xt.requestId}function At(xt,Xe,gn){var Qt=xt[it(Xe)];Qt&&gn(Qt)}var et={};function ee(xt){var Xe=xt.reducerPath,gn=xt.queryThunk,Qt=xt.mutationThunk,Dt=xt.context,hn=Dt.endpointDefinitions,cn=Dt.apiUid,an=Dt.extractRehydrationInfo,Or=Dt.hasRehydrationInfo,Ln=xt.assertTagType,En=xt.config,Gn=(0,i.VP)(Xe+"/resetApiState"),rr=(0,i.Z0)({name:Xe+"/queries",initialState:et,reducers:{removeQueryResult:{reducer:function(Si,Kr){var xi=Kr.payload.queryCacheKey;delete Si[xi]},prepare:(0,i.aA)()},queryResultPatched:function(Si,Kr){var xi=Kr.payload,Ai=xi.queryCacheKey,Pi=xi.patches;Ke(Si,Ai,function(io){io.data=(0,l.$i)(io.data,Pi.concat())})}},extraReducers:function(Si){Si.addCase(gn.pending,function(Kr,xi){var Ai=xi.meta,Pi=xi.meta.arg,io,lo,Gr=ke(Pi);(Pi.subscribe||Gr)&&((lo=Kr[io=Pi.queryCacheKey])!=null||(Kr[io]={status:P.uninitialized,endpointName:Pi.endpointName})),Ke(Kr,Pi.queryCacheKey,function(un){un.status=P.pending,un.requestId=Gr&&un.requestId?un.requestId:Ai.requestId,Pi.originalArgs!==void 0&&(un.originalArgs=Pi.originalArgs),un.startedTimeStamp=Ai.startedTimeStamp})}).addCase(gn.fulfilled,function(Kr,xi){var Ai=xi.meta,Pi=xi.payload;Ke(Kr,Ai.arg.queryCacheKey,function(io){var lo;if(!(io.requestId!==Ai.requestId&&!ke(Ai.arg))){var Gr=hn[Ai.arg.endpointName].merge;if(io.status=P.fulfilled,Gr)if(io.data!==void 0){var un=Ai.fulfilledTimeStamp,qn=Ai.arg,kn=Ai.baseQueryMeta,St=Ai.requestId,ln=(0,l.Ay)(io.data,function(An){return Gr(An,Pi,{arg:qn.originalArgs,baseQueryMeta:kn,fulfilledTimeStamp:un,requestId:St})});io.data=ln}else io.data=Pi;else io.data=(lo=hn[Ai.arg.endpointName].structuralSharing)==null||lo?fe((0,l.Qx)(io.data)?(0,l.c2)(io.data):io.data,Pi):Pi;delete io.error,io.fulfilledTimeStamp=Ai.fulfilledTimeStamp}})}).addCase(gn.rejected,function(Kr,xi){var Ai=xi.meta,Pi=Ai.condition,io=Ai.arg,lo=Ai.requestId,Gr=xi.error,un=xi.payload;Ke(Kr,io.queryCacheKey,function(qn){if(!Pi){if(qn.requestId!==lo)return;qn.status=P.rejected,qn.error=un??Gr}})}).addMatcher(Or,function(Kr,xi){for(var Ai=an(xi).queries,Pi=0,io=Object.entries(Ai);Pi<io.length;Pi++){var lo=io[Pi],Gr=lo[0],un=lo[1];(un?.status===P.fulfilled||un?.status===P.rejected)&&(Kr[Gr]=un)}})}}),sr=(0,i.Z0)({name:Xe+"/mutations",initialState:et,reducers:{removeMutationResult:{reducer:function(Si,Kr){var xi=Kr.payload,Ai=it(xi);Ai in Si&&delete Si[Ai]},prepare:(0,i.aA)()}},extraReducers:function(Si){Si.addCase(Qt.pending,function(Kr,xi){var Ai=xi.meta,Pi=xi.meta,io=Pi.requestId,lo=Pi.arg,Gr=Pi.startedTimeStamp;lo.track&&(Kr[it(Ai)]={requestId:io,status:P.pending,endpointName:lo.endpointName,startedTimeStamp:Gr})}).addCase(Qt.fulfilled,function(Kr,xi){var Ai=xi.payload,Pi=xi.meta;Pi.arg.track&&At(Kr,Pi,function(io){io.requestId===Pi.requestId&&(io.status=P.fulfilled,io.data=Ai,io.fulfilledTimeStamp=Pi.fulfilledTimeStamp)})}).addCase(Qt.rejected,function(Kr,xi){var Ai=xi.payload,Pi=xi.error,io=xi.meta;io.arg.track&&At(Kr,io,function(lo){lo.requestId===io.requestId&&(lo.status=P.rejected,lo.error=Ai??Pi)})}).addMatcher(Or,function(Kr,xi){for(var Ai=an(xi).mutations,Pi=0,io=Object.entries(Ai);Pi<io.length;Pi++){var lo=io[Pi],Gr=lo[0],un=lo[1];(un?.status===P.fulfilled||un?.status===P.rejected)&&Gr!==un?.requestId&&(Kr[Gr]=un)}})}}),pi=(0,i.Z0)({name:Xe+"/invalidation",initialState:et,reducers:{},extraReducers:function(Si){Si.addCase(rr.actions.removeQueryResult,function(Kr,xi){for(var Ai=xi.payload.queryCacheKey,Pi=0,io=Object.values(Kr);Pi<io.length;Pi++)for(var lo=io[Pi],Gr=0,un=Object.values(lo);Gr<un.length;Gr++){var qn=un[Gr],kn=qn.indexOf(Ai);kn!==-1&&qn.splice(kn,1)}}).addMatcher(Or,function(Kr,xi){for(var Ai,Pi,io,lo,Gr=an(xi).provided,un=0,qn=Object.entries(Gr);un<qn.length;un++)for(var kn=qn[un],St=kn[0],ln=kn[1],An=0,Cr=Object.entries(ln);An<Cr.length;An++)for(var _i=Cr[An],Sn=_i[0],ir=_i[1],mt=(lo=(Pi=(Ai=Kr[St])!=null?Ai:Kr[St]={})[io=Sn||"__internal_without_id"])!=null?lo:Pi[io]=[],fn=0,gt=ir;fn<gt.length;fn++){var tn=gt[fn],Vn=mt.includes(tn);Vn||mt.push(tn)}}).addMatcher((0,i.i0)((0,i.sf)(gn),(0,i.WA)(gn)),function(Kr,xi){for(var Ai,Pi,io,lo,Gr=Ut(xi,"providesTags",hn,Ln),un=xi.meta.arg.queryCacheKey,qn=0,kn=Object.values(Kr);qn<kn.length;qn++)for(var St=kn[qn],ln=0,An=Object.values(St);ln<An.length;ln++){var Cr=An[ln],_i=Cr.indexOf(un);_i!==-1&&Cr.splice(_i,1)}for(var Sn=0,ir=Gr;Sn<ir.length;Sn++){var mt=ir[Sn],fn=mt.type,gt=mt.id,tn=(lo=(Pi=(Ai=Kr[fn])!=null?Ai:Kr[fn]={})[io=gt||"__internal_without_id"])!=null?lo:Pi[io]=[],Vn=tn.includes(un);Vn||tn.push(un)}})}}),yi=(0,i.Z0)({name:Xe+"/subscriptions",initialState:et,reducers:{updateSubscriptionOptions:function(Si,Kr){},unsubscribeQueryResult:function(Si,Kr){},internal_probeSubscription:function(Si,Kr){}}}),jr=(0,i.Z0)({name:Xe+"/internalSubscriptions",initialState:et,reducers:{subscriptionsUpdated:{reducer:function(Si,Kr){return(0,l.$i)(Si,Kr.payload)},prepare:(0,i.aA)()}}}),ui=(0,i.Z0)({name:Xe+"/config",initialState:O({online:W(),focused:he(),middlewareRegistered:!1},En),reducers:{middlewareRegistered:function(Si,Kr){var xi=Kr.payload;Si.middlewareRegistered=Si.middlewareRegistered==="conflict"||cn!==xi?"conflict":!0}},extraReducers:function(Si){Si.addCase(Ae,function(Kr){Kr.online=!0}).addCase(Ee,function(Kr){Kr.online=!1}).addCase(ye,function(Kr){Kr.focused=!0}).addCase(Se,function(Kr){Kr.focused=!1}).addMatcher(Or,function(Kr){return O({},Kr)})}}),bi=(0,m.combineReducers)({queries:rr.reducer,mutations:sr.reducer,provided:pi.reducer,subscriptions:jr.reducer,config:ui.reducer}),ri=function(Si,Kr){return bi(Gn.match(Kr)?void 0:Si,Kr)},hi=R(O(O(O(O(O({},ui.actions),rr.actions),yi.actions),jr.actions),sr.actions),{unsubscribeMutationResult:sr.actions.removeMutationResult,resetApiState:Gn});return{reducer:ri,actions:hi}}var I=Symbol.for("RTKQ/skipToken"),K=null,ue={status:P.uninitialized},De=(0,l.Ay)(ue,function(){}),He=(0,l.Ay)(ue,function(){});function Fe(xt){var Xe=xt.serializeQueryArgs,gn=xt.reducerPath,Qt=function(En){return De},Dt=function(En){return He};return{buildQuerySelector:an,buildMutationSelector:Or,selectInvalidatedBy:Ln};function hn(En){return O(O({},En),T(En.status))}function cn(En){var Gn=En[gn];return Gn}function an(En,Gn){return function(rr){var sr=Xe({queryArgs:rr,endpointDefinition:Gn,endpointName:En}),pi=function(jr){var ui,bi,ri;return(ri=(bi=(ui=cn(jr))==null?void 0:ui.queries)==null?void 0:bi[sr])!=null?ri:De},yi=rr===I?Qt:pi;return(0,s.Mz)(yi,hn)}}function Or(){return function(En){var Gn,rr;typeof En=="object"?rr=(Gn=it(En))!=null?Gn:I:rr=En;var sr=function(yi){var jr,ui,bi;return(bi=(ui=(jr=cn(yi))==null?void 0:jr.mutations)==null?void 0:ui[rr])!=null?bi:He},pi=rr===I?Dt:sr;return(0,s.Mz)(pi,hn)}}function Ln(En,Gn){for(var rr,sr=En[gn],pi=new Set,yi=0,jr=Gn.map(F);yi<jr.length;yi++){var ui=jr[yi],bi=sr.provided[ui.type];if(bi)for(var ri=(rr=ui.id!==void 0?bi[ui.id]:N(Object.values(bi)))!=null?rr:[],hi=0,Si=ri;hi<Si.length;hi++){var Kr=Si[hi];pi.add(Kr)}}return N(Array.from(pi.values()).map(function(xi){var Ai=sr.queries[xi];return Ai?[{queryCacheKey:xi,endpointName:Ai.endpointName,originalArgs:Ai.originalArgs}]:[]}))}}var ze=WeakMap?new WeakMap:void 0,qe=function(xt){var Xe=xt.endpointName,gn=xt.queryArgs,Qt="",Dt=ze?.get(gn);if(typeof Dt=="string")Qt=Dt;else{var hn=JSON.stringify(gn,function(cn,an){return(0,i.Qd)(an)?Object.keys(an).sort().reduce(function(Or,Ln){return Or[Ln]=an[Ln],Or},{}):an});(0,i.Qd)(gn)&&ze?.set(gn,hn),Qt=hn}return Xe+"("+Qt+")"};function We(){for(var xt=[],Xe=0;Xe<arguments.length;Xe++)xt[Xe]=arguments[Xe];return function(Qt){var Dt=(0,u.UI)(function(En){var Gn,rr;return(rr=Qt.extractRehydrationInfo)==null?void 0:rr.call(Qt,En,{reducerPath:(Gn=Qt.reducerPath)!=null?Gn:"api"})}),hn=R(O({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},Qt),{extractRehydrationInfo:Dt,serializeQueryArgs:function(En){var Gn=qe;if("serializeQueryArgs"in En.endpointDefinition){var rr=En.endpointDefinition.serializeQueryArgs;Gn=function(sr){var pi=rr(sr);return typeof pi=="string"?pi:qe(R(O({},sr),{queryArgs:pi}))}}else Qt.serializeQueryArgs&&(Gn=Qt.serializeQueryArgs);return Gn(En)},tagTypes:p([],Qt.tagTypes||[])}),cn={endpointDefinitions:{},batch:function(En){En()},apiUid:(0,i.Ak)(),extractRehydrationInfo:Dt,hasRehydrationInfo:(0,u.UI)(function(En){return Dt(En)!=null})},an={injectEndpoints:Ln,enhanceEndpoints:function(En){var Gn=En.addTagTypes,rr=En.endpoints;if(Gn)for(var sr=0,pi=Gn;sr<pi.length;sr++){var yi=pi[sr];hn.tagTypes.includes(yi)||hn.tagTypes.push(yi)}if(rr)for(var jr=0,ui=Object.entries(rr);jr<ui.length;jr++){var bi=ui[jr],ri=bi[0],hi=bi[1];typeof hi=="function"?hi(cn.endpointDefinitions[ri]):Object.assign(cn.endpointDefinitions[ri]||{},hi)}return an}},Or=xt.map(function(En){return En.init(an,hn,cn)});function Ln(En){for(var Gn=En.endpoints({query:function(hi){return R(O({},hi),{type:Tt.query})},mutation:function(hi){return R(O({},hi),{type:Tt.mutation})}}),rr=0,sr=Object.entries(Gn);rr<sr.length;rr++){var pi=sr[rr],yi=pi[0],jr=pi[1];if(!En.overrideExisting&&yi in cn.endpointDefinitions){typeof process<"u";continue}cn.endpointDefinitions[yi]=jr;for(var ui=0,bi=Or;ui<bi.length;ui++){var ri=bi[ui];ri.injectEndpoint(yi,jr)}}return an}return an.injectEndpoints({endpoints:Qt.endpoints})}}function _t(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}function ct(xt){for(var Xe in xt)return!1;return!0}var Ge=2147483647/1e3-1,st=function(xt){var Xe=xt.reducerPath,gn=xt.api,Qt=xt.context,Dt=xt.internalState,hn=gn.internalActions,cn=hn.removeQueryResult,an=hn.unsubscribeQueryResult;function Or(rr){var sr=Dt.currentSubscriptions[rr];return!!sr&&!ct(sr)}var Ln={},En=function(rr,sr,pi){var yi;if(an.match(rr)){var jr=sr.getState()[Xe],ui=rr.payload.queryCacheKey;Gn(ui,(yi=jr.queries[ui])==null?void 0:yi.endpointName,sr,jr.config)}if(gn.util.resetApiState.match(rr))for(var bi=0,ri=Object.entries(Ln);bi<ri.length;bi++){var hi=ri[bi],Si=hi[0],Kr=hi[1];Kr&&clearTimeout(Kr),delete Ln[Si]}if(Qt.hasRehydrationInfo(rr))for(var jr=sr.getState()[Xe],xi=Qt.extractRehydrationInfo(rr).queries,Ai=0,Pi=Object.entries(xi);Ai<Pi.length;Ai++){var io=Pi[Ai],ui=io[0],lo=io[1];Gn(ui,lo?.endpointName,sr,jr.config)}};function Gn(rr,sr,pi,yi){var jr,ui=Qt.endpointDefinitions[sr],bi=(jr=ui?.keepUnusedDataFor)!=null?jr:yi.keepUnusedDataFor;if(bi!==1/0){var ri=Math.max(0,Math.min(bi,Ge));if(!Or(rr)){var hi=Ln[rr];hi&&clearTimeout(hi),Ln[rr]=setTimeout(function(){Or(rr)||pi.dispatch(cn({queryCacheKey:rr})),delete Ln[rr]},ri*1e3)}}}return En},Me=function(xt){var Xe=xt.reducerPath,gn=xt.context,Qt=xt.context.endpointDefinitions,Dt=xt.mutationThunk,hn=xt.api,cn=xt.assertTagType,an=xt.refetchQuery,Or=hn.internalActions.removeQueryResult,Ln=(0,i.i0)((0,i.sf)(Dt),(0,i.WA)(Dt)),En=function(rr,sr){Ln(rr)&&Gn(Ut(rr,"invalidatesTags",Qt,cn),sr),hn.util.invalidateTags.match(rr)&&Gn(tt(rr.payload,void 0,void 0,void 0,void 0,cn),sr)};function Gn(rr,sr){var pi=sr.getState(),yi=pi[Xe],jr=hn.util.selectInvalidatedBy(pi,rr);gn.batch(function(){for(var ui,bi=Array.from(jr.values()),ri=0,hi=bi;ri<hi.length;ri++){var Si=hi[ri].queryCacheKey,Kr=yi.queries[Si],xi=(ui=yi.subscriptions[Si])!=null?ui:{};Kr&&(Object.keys(xi).length===0?sr.dispatch(Or({queryCacheKey:Si})):Kr.status!==P.uninitialized&&sr.dispatch(an(Kr,Si)))}})}return En},ie=function(xt){var Xe=xt.reducerPath,gn=xt.queryThunk,Qt=xt.api,Dt=xt.refetchQuery,hn=xt.internalState,cn={},an=function(sr,pi){(Qt.internalActions.updateSubscriptionOptions.match(sr)||Qt.internalActions.unsubscribeQueryResult.match(sr))&&Ln(sr.payload,pi),(gn.pending.match(sr)||gn.rejected.match(sr)&&sr.meta.condition)&&Ln(sr.meta.arg,pi),(gn.fulfilled.match(sr)||gn.rejected.match(sr)&&!sr.meta.condition)&&Or(sr.meta.arg,pi),Qt.util.resetApiState.match(sr)&&Gn()};function Or(sr,pi){var yi=sr.queryCacheKey,jr=pi.getState()[Xe],ui=jr.queries[yi],bi=hn.currentSubscriptions[yi];if(!(!ui||ui.status===P.uninitialized)){var ri=rr(bi);if(Number.isFinite(ri)){var hi=cn[yi];hi?.timeout&&(clearTimeout(hi.timeout),hi.timeout=void 0);var Si=Date.now()+ri,Kr=cn[yi]={nextPollTimestamp:Si,pollingInterval:ri,timeout:setTimeout(function(){Kr.timeout=void 0,pi.dispatch(Dt(ui,yi))},ri)}}}}function Ln(sr,pi){var yi=sr.queryCacheKey,jr=pi.getState()[Xe],ui=jr.queries[yi],bi=hn.currentSubscriptions[yi];if(!(!ui||ui.status===P.uninitialized)){var ri=rr(bi);if(!Number.isFinite(ri)){En(yi);return}var hi=cn[yi],Si=Date.now()+ri;(!hi||Si<hi.nextPollTimestamp)&&Or({queryCacheKey:yi},pi)}}function En(sr){var pi=cn[sr];pi?.timeout&&clearTimeout(pi.timeout),delete cn[sr]}function Gn(){for(var sr=0,pi=Object.keys(cn);sr<pi.length;sr++){var yi=pi[sr];En(yi)}}function rr(sr){sr===void 0&&(sr={});var pi=Number.POSITIVE_INFINITY;for(var yi in sr)sr[yi].pollingInterval&&(pi=Math.min(sr[yi].pollingInterval,pi));return pi}return an},ge=function(xt){var Xe=xt.reducerPath,gn=xt.context,Qt=xt.api,Dt=xt.refetchQuery,hn=xt.internalState,cn=Qt.internalActions.removeQueryResult,an=function(Ln,En){ye.match(Ln)&&Or(En,"refetchOnFocus"),Ae.match(Ln)&&Or(En,"refetchOnReconnect")};function Or(Ln,En){var Gn=Ln.getState()[Xe],rr=Gn.queries,sr=hn.currentSubscriptions;gn.batch(function(){for(var pi=0,yi=Object.keys(sr);pi<yi.length;pi++){var jr=yi[pi],ui=rr[jr],bi=sr[jr];if(!(!bi||!ui)){var ri=Object.values(bi).some(function(hi){return hi[En]===!0})||Object.values(bi).every(function(hi){return hi[En]===void 0})&&Gn.config[En];ri&&(Object.keys(bi).length===0?Ln.dispatch(cn({queryCacheKey:jr})):ui.status!==P.uninitialized&&Ln.dispatch(Dt(ui,jr)))}}})}return an},z=new Error("Promise never resolved before cacheEntryRemoved."),be=function(xt){var Xe=xt.api,gn=xt.reducerPath,Qt=xt.context,Dt=xt.queryThunk,hn=xt.mutationThunk,cn=xt.internalState,an=(0,i.$S)(Dt),Or=(0,i.$S)(hn),Ln=(0,i.sf)(Dt,hn),En={},Gn=function(pi,yi,jr){var ui=rr(pi);if(Dt.pending.match(pi)){var bi=jr[gn].queries[ui],ri=yi.getState()[gn].queries[ui];!bi&&ri&&sr(pi.meta.arg.endpointName,pi.meta.arg.originalArgs,ui,yi,pi.meta.requestId)}else if(hn.pending.match(pi)){var ri=yi.getState()[gn].mutations[ui];ri&&sr(pi.meta.arg.endpointName,pi.meta.arg.originalArgs,ui,yi,pi.meta.requestId)}else if(Ln(pi)){var hi=En[ui];hi?.valueResolved&&(hi.valueResolved({data:pi.payload,meta:pi.meta.baseQueryMeta}),delete hi.valueResolved)}else if(Xe.internalActions.removeQueryResult.match(pi)||Xe.internalActions.removeMutationResult.match(pi)){var hi=En[ui];hi&&(delete En[ui],hi.cacheEntryRemoved())}else if(Xe.util.resetApiState.match(pi))for(var Si=0,Kr=Object.entries(En);Si<Kr.length;Si++){var xi=Kr[Si],Ai=xi[0],hi=xi[1];delete En[Ai],hi.cacheEntryRemoved()}};function rr(pi){return an(pi)?pi.meta.arg.queryCacheKey:Or(pi)?pi.meta.requestId:Xe.internalActions.removeQueryResult.match(pi)?pi.payload.queryCacheKey:Xe.internalActions.removeMutationResult.match(pi)?it(pi.payload):""}function sr(pi,yi,jr,ui,bi){var ri=Qt.endpointDefinitions[pi],hi=ri?.onCacheEntryAdded;if(hi){var Si={},Kr=new Promise(function(Gr){Si.cacheEntryRemoved=Gr}),xi=Promise.race([new Promise(function(Gr){Si.valueResolved=Gr}),Kr.then(function(){throw z})]);xi.catch(function(){}),En[jr]=Si;var Ai=Xe.endpoints[pi].select(ri.type===Tt.query?yi:jr),Pi=ui.dispatch(function(Gr,un,qn){return qn}),io=R(O({},ui),{getCacheEntry:function(){return Ai(ui.getState())},requestId:bi,extra:Pi,updateCachedData:ri.type===Tt.query?function(Gr){return ui.dispatch(Xe.util.updateQueryData(pi,yi,Gr))}:void 0,cacheDataLoaded:xi,cacheEntryRemoved:Kr}),lo=hi(yi,io);Promise.resolve(lo).catch(function(Gr){if(Gr!==z)throw Gr})}}return Gn},Qe=function(xt){var Xe=xt.api,gn=xt.context,Qt=xt.queryThunk,Dt=xt.mutationThunk,hn=(0,i.mm)(Qt,Dt),cn=(0,i.TK)(Qt,Dt),an=(0,i.sf)(Qt,Dt),Or={},Ln=function(En,Gn){var rr,sr,pi;if(hn(En)){var yi=En.meta,jr=yi.requestId,ui=yi.arg,bi=ui.endpointName,ri=ui.originalArgs,hi=gn.endpointDefinitions[bi],Si=hi?.onQueryStarted;if(Si){var Kr={},xi=new Promise(function(kn,St){Kr.resolve=kn,Kr.reject=St});xi.catch(function(){}),Or[jr]=Kr;var Ai=Xe.endpoints[bi].select(hi.type===Tt.query?ri:jr),Pi=Gn.dispatch(function(kn,St,ln){return ln}),io=R(O({},Gn),{getCacheEntry:function(){return Ai(Gn.getState())},requestId:jr,extra:Pi,updateCachedData:hi.type===Tt.query?function(kn){return Gn.dispatch(Xe.util.updateQueryData(bi,ri,kn))}:void 0,queryFulfilled:xi});Si(ri,io)}}else if(an(En)){var lo=En.meta,jr=lo.requestId,Gr=lo.baseQueryMeta;(rr=Or[jr])==null||rr.resolve({data:En.payload,meta:Gr}),delete Or[jr]}else if(cn(En)){var un=En.meta,jr=un.requestId,qn=un.rejectedWithValue,Gr=un.baseQueryMeta;(pi=Or[jr])==null||pi.reject({error:(sr=En.payload)!=null?sr:En.error,isUnhandledError:!qn,meta:Gr}),delete Or[jr]}};return Ln},Bt=function(xt){var Xe=xt.api,gn=xt.context.apiUid,Qt=xt.reducerPath;return function(Dt,hn){var cn,an;Xe.util.resetApiState.match(Dt)&&hn.dispatch(Xe.internalActions.middlewareRegistered(gn)),typeof process<"u"}},nn,bt=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof t.g<"u"?t.g:globalThis):function(xt){return(nn||(nn=Promise.resolve())).then(xt).catch(function(Xe){return setTimeout(function(){throw Xe},0)})},at=function(xt){var Xe=xt.api,gn=xt.queryThunk,Qt=xt.internalState,Dt=Xe.reducerPath+"/subscriptions",hn=null,cn=!1,an=Xe.internalActions,Or=an.updateSubscriptionOptions,Ln=an.unsubscribeQueryResult,En=function(Gn,rr){var sr,pi,yi,jr,ui,bi,ri,hi,Si;if(Or.match(rr)){var Kr=rr.payload,xi=Kr.queryCacheKey,Ai=Kr.requestId,Pi=Kr.options;return(sr=Gn?.[xi])!=null&&sr[Ai]&&(Gn[xi][Ai]=Pi),!0}if(Ln.match(rr)){var io=rr.payload,xi=io.queryCacheKey,Ai=io.requestId;return Gn[xi]&&delete Gn[xi][Ai],!0}if(Xe.internalActions.removeQueryResult.match(rr))return delete Gn[rr.payload.queryCacheKey],!0;if(gn.pending.match(rr)){var lo=rr.meta,Gr=lo.arg,Ai=lo.requestId;if(Gr.subscribe){var un=(yi=Gn[pi=Gr.queryCacheKey])!=null?yi:Gn[pi]={};return un[Ai]=(ui=(jr=Gr.subscriptionOptions)!=null?jr:un[Ai])!=null?ui:{},!0}}if(gn.rejected.match(rr)){var qn=rr.meta,kn=qn.condition,Gr=qn.arg,Ai=qn.requestId;if(kn&&Gr.subscribe){var un=(ri=Gn[bi=Gr.queryCacheKey])!=null?ri:Gn[bi]={};return un[Ai]=(Si=(hi=Gr.subscriptionOptions)!=null?hi:un[Ai])!=null?Si:{},!0}}return!1};return function(Gn,rr){var sr,pi;if(hn||(hn=JSON.parse(JSON.stringify(Qt.currentSubscriptions))),Xe.util.resetApiState.match(Gn))return hn=Qt.currentSubscriptions={},[!0,!1];if(Xe.internalActions.internal_probeSubscription.match(Gn)){var yi=Gn.payload,jr=yi.queryCacheKey,ui=yi.requestId,bi=!!((sr=Qt.currentSubscriptions[jr])!=null&&sr[ui]);return[!1,bi]}var ri=En(Qt.currentSubscriptions,Gn);if(ri){cn||(bt(function(){var xi=JSON.parse(JSON.stringify(Qt.currentSubscriptions)),Ai=(0,l.vI)(hn,function(){return xi}),Pi=Ai[1];rr.next(Xe.internalActions.subscriptionsUpdated(Pi)),hn=xi,cn=!1}),cn=!0);var hi=!!((pi=Gn.type)!=null&&pi.startsWith(Dt)),Si=gn.rejected.match(Gn)&&Gn.meta.condition&&!!Gn.meta.arg.subscribe,Kr=!hi&&!Si;return[Kr,!1]}return[!0,!1]}};function $t(xt){var Xe=xt.reducerPath,gn=xt.queryThunk,Qt=xt.api,Dt=xt.context,hn=Dt.apiUid,cn={invalidateTags:(0,i.VP)(Xe+"/invalidateTags")},an=function(Gn){return!!Gn&&typeof Gn.type=="string"&&Gn.type.startsWith(Xe+"/")},Or=[Bt,st,Me,ie,be,Qe],Ln=function(Gn){var rr=!1,sr={currentSubscriptions:{}},pi=R(O({},xt),{internalState:sr,refetchQuery:En}),yi=Or.map(function(bi){return bi(pi)}),jr=at(pi),ui=ge(pi);return function(bi){return function(ri){rr||(rr=!0,Gn.dispatch(Qt.internalActions.middlewareRegistered(hn)));var hi=R(O({},Gn),{next:bi}),Si=Gn.getState(),Kr=jr(ri,hi,Si),xi=Kr[0],Ai=Kr[1],Pi;if(xi?Pi=bi(ri):Pi=Ai,Gn.getState()[Xe]&&(ui(ri,hi,Si),an(ri)||Dt.hasRehydrationInfo(ri)))for(var io=0,lo=yi;io<lo.length;io++){var Gr=lo[io];Gr(ri,hi,Si)}return Pi}}};return{middleware:Ln,actions:cn};function En(Gn,rr,sr){return sr===void 0&&(sr={}),gn(O({type:"query",endpointName:Gn.endpointName,originalArgs:Gn.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:rr},sr))}}function On(xt){}function Ct(xt){for(var Xe=[],gn=1;gn<arguments.length;gn++)Xe[gn-1]=arguments[gn];Object.assign.apply(Object,p([xt],Xe))}var Zt=Symbol(),Wn=function(){return{name:Zt,init:function(xt,Xe,gn){var Qt=Xe.baseQuery,Dt=Xe.tagTypes,hn=Xe.reducerPath,cn=Xe.serializeQueryArgs,an=Xe.keepUnusedDataFor,Or=Xe.refetchOnMountOrArgChange,Ln=Xe.refetchOnFocus,En=Xe.refetchOnReconnect;(0,l.YT)();var Gn=function(mt){return typeof process<"u",mt};Object.assign(xt,{reducerPath:hn,endpoints:{},internalActions:{onOnline:Ae,onOffline:Ee,onFocus:ye,onFocusLost:Se},util:{}});var rr=wt({baseQuery:Qt,reducerPath:hn,context:gn,api:xt,serializeQueryArgs:cn}),sr=rr.queryThunk,pi=rr.mutationThunk,yi=rr.patchQueryData,jr=rr.updateQueryData,ui=rr.upsertQueryData,bi=rr.prefetch,ri=rr.buildMatchThunkActions,hi=ee({context:gn,queryThunk:sr,mutationThunk:pi,reducerPath:hn,assertTagType:Gn,config:{refetchOnFocus:Ln,refetchOnReconnect:En,refetchOnMountOrArgChange:Or,keepUnusedDataFor:an,reducerPath:hn}}),Si=hi.reducer,Kr=hi.actions;Ct(xt.util,{patchQueryData:yi,updateQueryData:jr,upsertQueryData:ui,prefetch:bi,resetApiState:Kr.resetApiState}),Ct(xt.internalActions,Kr);var xi=$t({reducerPath:hn,context:gn,queryThunk:sr,mutationThunk:pi,api:xt,assertTagType:Gn}),Ai=xi.middleware,Pi=xi.actions;Ct(xt.util,Pi),Ct(xt,{reducer:Si,middleware:Ai});var io=Fe({serializeQueryArgs:cn,reducerPath:hn}),lo=io.buildQuerySelector,Gr=io.buildMutationSelector,un=io.selectInvalidatedBy;Ct(xt.util,{selectInvalidatedBy:un});var qn=Ye({queryThunk:sr,mutationThunk:pi,api:xt,serializeQueryArgs:cn,context:gn}),kn=qn.buildInitiateQuery,St=qn.buildInitiateMutation,ln=qn.getRunningMutationThunk,An=qn.getRunningMutationsThunk,Cr=qn.getRunningQueriesThunk,_i=qn.getRunningQueryThunk,Sn=qn.getRunningOperationPromises,ir=qn.removalWarning;return Ct(xt.util,{getRunningOperationPromises:Sn,getRunningOperationPromise:ir,getRunningMutationThunk:ln,getRunningMutationsThunk:An,getRunningQueryThunk:_i,getRunningQueriesThunk:Cr}),{name:Zt,injectEndpoint:function(mt,fn){var gt,tn,Vn=xt;(tn=(gt=Vn.endpoints)[mt])!=null||(gt[mt]={}),pt(fn)?Ct(Vn.endpoints[mt],{name:mt,select:lo(mt,fn),initiate:kn(mt,fn)},ri(sr,mt)):Rt(fn)&&Ct(Vn.endpoints[mt],{name:mt,select:Gr(),initiate:St(mt)},ri(pi,mt))}}}}},Zn=We(Wn())},30038:(J,g,t)=>{"use strict";t.d(g,{cN:()=>qn,ch:()=>Pi,U1:()=>nt,VP:()=>Tt,zD:()=>Ge,pU:()=>He,Nc:()=>un,vy:()=>ke,Z0:()=>wt,f$:()=>be,i0:()=>z,$S:()=>On,sf:()=>$t,mm:()=>nn,Qd:()=>ae,TK:()=>bt,WA:()=>at,Ak:()=>ze,aA:()=>kn});var i=t(2435),l=t(1081),s=t(82960);function m(Sn){var ir=function(fn){var gt=fn.dispatch,tn=fn.getState;return function(Vn){return function(Ur){return typeof Ur=="function"?Ur(gt,tn,Sn):Vn(Ur)}}};return ir}var u=m();u.withExtraArgument=m;const f=u;var p=function(){var Sn=function(ir,mt){return Sn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fn,gt){fn.__proto__=gt}||function(fn,gt){for(var tn in gt)Object.prototype.hasOwnProperty.call(gt,tn)&&(fn[tn]=gt[tn])},Sn(ir,mt)};return function(ir,mt){if(typeof mt!="function"&&mt!==null)throw new TypeError("Class extends value "+String(mt)+" is not a constructor or null");Sn(ir,mt);function fn(){this.constructor=ir}ir.prototype=mt===null?Object.create(mt):(fn.prototype=mt.prototype,new fn)}}(),v=function(Sn,ir){var mt={label:0,sent:function(){if(tn[0]&1)throw tn[1];return tn[1]},trys:[],ops:[]},fn,gt,tn,Vn;return Vn={next:Ur(0),throw:Ur(1),return:Ur(2)},typeof Symbol=="function"&&(Vn[Symbol.iterator]=function(){return this}),Vn;function Ur(Pr){return function(zr){return $r([Pr,zr])}}function $r(Pr){if(fn)throw new TypeError("Generator is already executing.");for(;mt;)try{if(fn=1,gt&&(tn=Pr[0]&2?gt.return:Pr[0]?gt.throw||((tn=gt.return)&&tn.call(gt),0):gt.next)&&!(tn=tn.call(gt,Pr[1])).done)return tn;switch(gt=0,tn&&(Pr=[Pr[0]&2,tn.value]),Pr[0]){case 0:case 1:tn=Pr;break;case 4:return mt.label++,{value:Pr[1],done:!1};case 5:mt.label++,gt=Pr[1],Pr=[0];continue;case 7:Pr=mt.ops.pop(),mt.trys.pop();continue;default:if(tn=mt.trys,!(tn=tn.length>0&&tn[tn.length-1])&&(Pr[0]===6||Pr[0]===2)){mt=0;continue}if(Pr[0]===3&&(!tn||Pr[1]>tn[0]&&Pr[1]<tn[3])){mt.label=Pr[1];break}if(Pr[0]===6&&mt.label<tn[1]){mt.label=tn[1],tn=Pr;break}if(tn&&mt.label<tn[2]){mt.label=tn[2],mt.ops.push(Pr);break}tn[2]&&mt.ops.pop(),mt.trys.pop();continue}Pr=ir.call(Sn,mt)}catch(zr){Pr=[6,zr],gt=0}finally{fn=tn=0}if(Pr[0]&5)throw Pr[1];return{value:Pr[0]?Pr[1]:void 0,done:!0}}},h=function(Sn,ir){for(var mt=0,fn=ir.length,gt=Sn.length;mt<fn;mt++,gt++)Sn[gt]=ir[mt];return Sn},d=Object.defineProperty,b=Object.defineProperties,y=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,R=function(Sn,ir,mt){return ir in Sn?d(Sn,ir,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Sn[ir]=mt},M=function(Sn,ir){for(var mt in ir||(ir={}))S.call(ir,mt)&&R(Sn,mt,ir[mt]);if(w)for(var fn=0,gt=w(ir);fn<gt.length;fn++){var mt=gt[fn];O.call(ir,mt)&&R(Sn,mt,ir[mt])}return Sn},D=function(Sn,ir){return b(Sn,y(ir))},P=function(Sn,ir,mt){return new Promise(function(fn,gt){var tn=function($r){try{Ur(mt.next($r))}catch(Pr){gt(Pr)}},Vn=function($r){try{Ur(mt.throw($r))}catch(Pr){gt(Pr)}},Ur=function($r){return $r.done?fn($r.value):Promise.resolve($r.value).then(tn,Vn)};Ur((mt=mt.apply(Sn,ir)).next())})},T=function(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];var mt=l.Mz.apply(void 0,Sn),fn=function(gt){for(var tn=[],Vn=1;Vn<arguments.length;Vn++)tn[Vn-1]=arguments[Vn];return mt.apply(void 0,h([(0,i.Qx)(gt)?(0,i.ss)(gt):gt],tn))};return fn},A=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?s.compose:s.compose.apply(null,arguments)},j=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(Sn){return Sn}};function ae(Sn){if(typeof Sn!="object"||Sn===null)return!1;var ir=Object.getPrototypeOf(Sn);if(ir===null)return!0;for(var mt=ir;Object.getPrototypeOf(mt)!==null;)mt=Object.getPrototypeOf(mt);return ir===mt}function _(Sn,ir){var mt=0;return{measureTime:function(fn){var gt=Date.now();try{return fn()}finally{var tn=Date.now();mt+=tn-gt}},warnIfExceeded:function(){mt>Sn&&console.warn(ir+" took "+mt+"ms, which is more than the warning threshold of "+Sn+`ms. If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. It is disabled in production builds, so you don't need to worry about that.`)}}}var N=function(Sn){p(ir,Sn);function ir(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];var gt=Sn.apply(this,mt)||this;return Object.setPrototypeOf(gt,ir.prototype),gt}return Object.defineProperty(ir,Symbol.species,{get:function(){return ir},enumerable:!1,configurable:!0}),ir.prototype.concat=function(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];return Sn.prototype.concat.apply(this,mt)},ir.prototype.prepend=function(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];return mt.length===1&&Array.isArray(mt[0])?new(ir.bind.apply(ir,h([void 0],mt[0].concat(this)))):new(ir.bind.apply(ir,h([void 0],mt.concat(this))))},ir}(Array),W=function(Sn){p(ir,Sn);function ir(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];var gt=Sn.apply(this,mt)||this;return Object.setPrototypeOf(gt,ir.prototype),gt}return Object.defineProperty(ir,Symbol.species,{get:function(){return ir},enumerable:!1,configurable:!0}),ir.prototype.concat=function(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];return Sn.prototype.concat.apply(this,mt)},ir.prototype.prepend=function(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];return mt.length===1&&Array.isArray(mt[0])?new(ir.bind.apply(ir,h([void 0],mt[0].concat(this)))):new(ir.bind.apply(ir,h([void 0],mt.concat(this))))},ir}(Array);function he(Sn){return(0,i.a6)(Sn)?(0,i.Ay)(Sn,function(){}):Sn}var me=null,fe="Invariant failed";function ve(Sn,ir){if(!Sn)throw me?new Error(fe):new Error(fe+": "+(ir||""))}function ce(Sn,ir,mt,fn){return JSON.stringify(Sn,oe(ir,fn),mt)}function oe(Sn,ir){var mt=[],fn=[];return ir||(ir=function(gt,tn){return mt[0]===tn?"[Circular ~]":"[Circular ~."+fn.slice(0,mt.indexOf(tn)).join(".")+"]"}),function(gt,tn){if(mt.length>0){var Vn=mt.indexOf(this);~Vn?mt.splice(Vn+1):mt.push(this),~Vn?fn.splice(Vn,1/0,gt):fn.push(gt),~mt.indexOf(tn)&&(tn=ir.call(this,gt,tn))}else mt.push(tn);return Sn==null?tn:Sn.call(this,gt,tn)}}function re(Sn){return typeof Sn!="object"||Sn==null||Object.isFrozen(Sn)}function H(Sn,ir,mt){var fn=V(Sn,ir,mt);return{detectMutations:function(){return Q(Sn,ir,fn,mt)}}}function V(Sn,ir,mt,fn){ir===void 0&&(ir=[]),fn===void 0&&(fn="");var gt={value:mt};if(!Sn(mt)){gt.children={};for(var tn in mt){var Vn=fn?fn+"."+tn:tn;ir.length&&ir.indexOf(Vn)!==-1||(gt.children[tn]=V(Sn,ir,mt[tn],Vn))}}return gt}function Q(Sn,ir,mt,fn,gt,tn){ir===void 0&&(ir=[]),gt===void 0&&(gt=!1),tn===void 0&&(tn="");var Vn=mt?mt.value:void 0,Ur=Vn===fn;if(gt&&!Ur&&!Number.isNaN(fn))return{wasMutated:!0,path:tn};if(Sn(Vn)||Sn(fn))return{wasMutated:!1};var $r={};for(var Pr in mt.children)$r[Pr]=!0;for(var Pr in fn)$r[Pr]=!0;var zr=ir.length>0,gi=function(eo){var ki=tn?tn+"."+eo:eo;if(zr){var so=ir.some(function(ra){return ra instanceof RegExp?ra.test(ki):ki===ra});if(so)return"continue"}var Ho=Q(Sn,ir,mt.children[eo],fn[eo],Ur,ki);if(Ho.wasMutated)return{value:Ho}};for(var Pr in $r){var $i=gi(Pr);if(typeof $i=="object")return $i.value}return{wasMutated:!1}}function Te(Sn){return Sn===void 0&&(Sn={}),function(){return function($r){return function(Pr){return $r(Pr)}}};var ir=Sn.isImmutable,mt=ir===void 0?re:ir,fn=Sn.ignoredPaths,gt=Sn.warnAfter,tn=gt===void 0?32:gt,Vn=Sn.ignore;fn=fn||Vn;var Ur=H.bind(null,mt,fn);return function($r){var Pr=$r.getState,zr=Pr(),gi=Ur(zr),$i;return function(eo){return function(ki){var so=_(tn,"ImmutableStateInvariantMiddleware");so.measureTime(function(){zr=Pr(),$i=gi.detectMutations(),gi=Ur(zr),ve(!$i.wasMutated,"A state mutation was detected between dispatches, in the path '"+($i.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var Ho=eo(ki);return so.measureTime(function(){zr=Pr(),$i=gi.detectMutations(),gi=Ur(zr),$i.wasMutated&&ve(!$i.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+($i.path||"")+". Take a look at the reducer(s) handling the action "+ce(ki)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),so.warnIfExceeded(),Ho}}}}function Re(Sn){var ir=typeof Sn;return Sn==null||ir==="string"||ir==="boolean"||ir==="number"||Array.isArray(Sn)||ae(Sn)}function ne(Sn,ir,mt,fn,gt,tn){ir===void 0&&(ir=""),mt===void 0&&(mt=Re),gt===void 0&&(gt=[]);var Vn;if(!mt(Sn))return{keyPath:ir||"<root>",value:Sn};if(typeof Sn!="object"||Sn===null||tn?.has(Sn))return!1;for(var Ur=fn!=null?fn(Sn):Object.entries(Sn),$r=gt.length>0,Pr=function(Ho,ra){var So=ir?ir+"."+Ho:Ho;if($r){var gr=gt.some(function(di){return di instanceof RegExp?di.test(So):So===di});if(gr)return"continue"}if(!mt(ra))return{value:{keyPath:So,value:ra}};if(typeof ra=="object"&&(Vn=ne(ra,So,mt,fn,gt,tn),Vn))return{value:Vn}},zr=0,gi=Ur;zr<gi.length;zr++){var $i=gi[zr],eo=$i[0],ki=$i[1],so=Pr(eo,ki);if(typeof so=="object")return so.value}return tn&&pe(Sn)&&tn.add(Sn),!1}function pe(Sn){if(!Object.isFrozen(Sn))return!1;for(var ir=0,mt=Object.values(Sn);ir<mt.length;ir++){var fn=mt[ir];if(!(typeof fn!="object"||fn===null)&&!pe(fn))return!1}return!0}function ye(Sn){return Sn===void 0&&(Sn={}),function(){return function(gr){return function(di){return gr(di)}}};var ir=Sn.isSerializable,mt=ir===void 0?Re:ir,fn=Sn.getEntries,gt=Sn.ignoredActions,tn=gt===void 0?[]:gt,Vn=Sn.ignoredActionPaths,Ur=Vn===void 0?["meta.arg","meta.baseQueryMeta"]:Vn,$r=Sn.ignoredPaths,Pr=$r===void 0?[]:$r,zr=Sn.warnAfter,gi=zr===void 0?32:zr,$i=Sn.ignoreState,eo=$i===void 0?!1:$i,ki=Sn.ignoreActions,so=ki===void 0?!1:ki,Ho=Sn.disableCache,ra=Ho===void 0?!1:Ho,So=!ra&&WeakSet?new WeakSet:void 0;return function(gr){return function(di){return function(Vi){var Ro=di(Vi),na=_(gi,"SerializableStateInvariantMiddleware");return!so&&!(tn.length&&tn.indexOf(Vi.type)!==-1)&&na.measureTime(function(){var ta=ne(Vi,"",mt,fn,Ur,So);if(ta){var aa=ta.keyPath,vi=ta.value;console.error("A non-serializable value was detected in an action, in the path: `"+aa+"`. Value:",vi,` Take a look at the logic that dispatched this action: `,Vi,` (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,` (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),eo||(na.measureTime(function(){var ta=gr.getState(),aa=ne(ta,"",mt,fn,Pr,So);if(aa){var vi=aa.keyPath,to=aa.value;console.error("A non-serializable value was detected in the state, in the path: `"+vi+"`. Value:",to,` Take a look at the reducer(s) handling this action type: `+Vi.type+`. (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),na.warnIfExceeded()),Ro}}}}function Se(Sn){return typeof Sn=="boolean"}function Ae(){return function(ir){return Ee(ir)}}function Ee(Sn){Sn===void 0&&(Sn={});var ir=Sn.thunk,mt=ir===void 0?!0:ir,fn=Sn.immutableCheck,gt=fn===void 0?!0:fn,tn=Sn.serializableCheck,Vn=tn===void 0?!0:tn,Ur=new N;if(mt&&(Se(mt)?Ur.push(f):Ur.push(f.withExtraArgument(mt.extraArgument))),!1)var $r,Pr;return Ur}var xe=!0;function nt(Sn){var ir=Ae(),mt=Sn||{},fn=mt.reducer,gt=fn===void 0?void 0:fn,tn=mt.middleware,Vn=tn===void 0?ir():tn,Ur=mt.devTools,$r=Ur===void 0?!0:Ur,Pr=mt.preloadedState,zr=Pr===void 0?void 0:Pr,gi=mt.enhancers,$i=gi===void 0?void 0:gi,eo;if(typeof gt=="function")eo=gt;else if(ae(gt))eo=(0,s.combineReducers)(gt);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var ki=Vn;if(typeof ki=="function"&&(ki=ki(ir),!xe&&!Array.isArray(ki)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xe&&ki.some(function(di){return typeof di!="function"}))throw new Error("each middleware provided to configureStore must be a function");var so=s.applyMiddleware.apply(void 0,ki),Ho=s.compose;$r&&(Ho=A(M({trace:!xe},typeof $r=="object"&&$r)));var ra=new W(so),So=ra;Array.isArray($i)?So=h([so],$i):typeof $i=="function"&&(So=$i(ra));var gr=Ho.apply(void 0,So);return(0,s.createStore)(eo,zr,gr)}function Tt(Sn,ir){function mt(){for(var fn=[],gt=0;gt<arguments.length;gt++)fn[gt]=arguments[gt];if(ir){var tn=ir.apply(void 0,fn);if(!tn)throw new Error("prepareAction did not return an object");return M(M({type:Sn,payload:tn.payload},"meta"in tn&&{meta:tn.meta}),"error"in tn&&{error:tn.error})}return{type:Sn,payload:fn[0]}}return mt.toString=function(){return""+Sn},mt.type=Sn,mt.match=function(fn){return fn.type===Sn},mt}function pt(Sn){return ae(Sn)&&"type"in Sn}function Rt(Sn){return pt(Sn)&&typeof Sn.type=="string"&&Object.keys(Sn).every(tt)}function tt(Sn){return["type","payload","error","meta"].indexOf(Sn)>-1}function U(Sn){return""+Sn}function F(Sn){var ir={},mt=[],fn,gt={addCase:function(tn,Vn){var Ur=typeof tn=="string"?tn:tn.type;if(Ur in ir)throw new Error("addCase cannot be called with two reducers for the same action type");return ir[Ur]=Vn,gt},addMatcher:function(tn,Vn){return mt.push({matcher:tn,reducer:Vn}),gt},addDefaultCase:function(tn){return fn=tn,gt}};return Sn(gt),[ir,mt,fn]}function Y(Sn){return typeof Sn=="function"}var le=!1;function ke(Sn,ir,mt,fn){mt===void 0&&(mt=[]);var gt=typeof ir=="function"?F(ir):[ir,mt,fn],tn=gt[0],Vn=gt[1],Ur=gt[2],$r;if(Y(Sn))$r=function(){return he(Sn())};else{var Pr=he(Sn);$r=function(){return Pr}}function zr(gi,$i){gi===void 0&&(gi=$r());var eo=h([tn[$i.type]],Vn.filter(function(ki){var so=ki.matcher;return so($i)}).map(function(ki){var so=ki.reducer;return so}));return eo.filter(function(ki){return!!ki}).length===0&&(eo=[Ur]),eo.reduce(function(ki,so){if(so)if((0,i.Qx)(ki)){var Ho=ki,ra=so(Ho,$i);return ra===void 0?ki:ra}else{if((0,i.a6)(ki))return(0,i.Ay)(ki,function(So){return so(So,$i)});var ra=so(ki,$i);if(ra===void 0){if(ki===null)return ki;throw Error("A case reducer on a non-draftable value must not return undefined")}return ra}return ki},gi)}return zr.getInitialState=$r,zr}var Ye=!1;function ft(Sn,ir){return Sn+"/"+ir}function wt(Sn){var ir=Sn.name;if(!ir)throw new Error("`name` is a required option for createSlice");typeof process<"u";var mt=typeof Sn.initialState=="function"?Sn.initialState:he(Sn.initialState),fn=Sn.reducers||{},gt=Object.keys(fn),tn={},Vn={},Ur={};gt.forEach(function(zr){var gi=fn[zr],$i=ft(ir,zr),eo,ki;"reducer"in gi?(eo=gi.reducer,ki=gi.prepare):eo=gi,tn[zr]=eo,Vn[$i]=eo,Ur[zr]=ki?Tt($i,ki):Tt($i)});function $r(){var zr=typeof Sn.extraReducers=="function"?F(Sn.extraReducers):[Sn.extraReducers],gi=zr[0],$i=gi===void 0?{}:gi,eo=zr[1],ki=eo===void 0?[]:eo,so=zr[2],Ho=so===void 0?void 0:so,ra=M(M({},$i),Vn);return ke(mt,function(So){for(var gr in ra)So.addCase(gr,ra[gr]);for(var di=0,Vi=ki;di<Vi.length;di++){var Ro=Vi[di];So.addMatcher(Ro.matcher,Ro.reducer)}Ho&&So.addDefaultCase(Ho)})}var Pr;return{name:ir,reducer:function(zr,gi){return Pr||(Pr=$r()),Pr(zr,gi)},actions:Ur,caseReducers:tn,getInitialState:function(){return Pr||(Pr=$r()),Pr.getInitialState()}}}function Ut(){return{ids:[],entities:{}}}function Ke(){function Sn(ir){return ir===void 0&&(ir={}),Object.assign(Ut(),ir)}return{getInitialState:Sn}}function it(){function Sn(ir){var mt=function(Pr){return Pr.ids},fn=function(Pr){return Pr.entities},gt=T(mt,fn,function(Pr,zr){return Pr.map(function(gi){return zr[gi]})}),tn=function(Pr,zr){return zr},Vn=function(Pr,zr){return Pr[zr]},Ur=T(mt,function(Pr){return Pr.length});if(!ir)return{selectIds:mt,selectEntities:fn,selectAll:gt,selectTotal:Ur,selectById:T(fn,tn,Vn)};var $r=T(ir,fn);return{selectIds:T(ir,mt),selectEntities:$r,selectAll:T(ir,gt),selectTotal:T(ir,Ur),selectById:T($r,tn,Vn)}}return{getSelectors:Sn}}function At(Sn){var ir=et(function(mt,fn){return Sn(fn)});return function(fn){return ir(fn,void 0)}}function et(Sn){return function(mt,fn){function gt(Vn){return Rt(Vn)}var tn=function(Vn){gt(fn)?Sn(fn.payload,Vn):Sn(fn,Vn)};return(0,i.Qx)(mt)?(tn(mt),mt):(0,i.Ay)(mt,tn)}}function ee(Sn,ir){var mt=ir(Sn);return mt}function I(Sn){return Array.isArray(Sn)||(Sn=Object.values(Sn)),Sn}function K(Sn,ir,mt){Sn=I(Sn);for(var fn=[],gt=[],tn=0,Vn=Sn;tn<Vn.length;tn++){var Ur=Vn[tn],$r=ee(Ur,ir);$r in mt.entities?gt.push({id:$r,changes:Ur}):fn.push(Ur)}return[fn,gt]}function ue(Sn){function ir(ki,so){var Ho=ee(ki,Sn);Ho in so.entities||(so.ids.push(Ho),so.entities[Ho]=ki)}function mt(ki,so){ki=I(ki);for(var Ho=0,ra=ki;Ho<ra.length;Ho++){var So=ra[Ho];ir(So,so)}}function fn(ki,so){var Ho=ee(ki,Sn);Ho in so.entities||so.ids.push(Ho),so.entities[Ho]=ki}function gt(ki,so){ki=I(ki);for(var Ho=0,ra=ki;Ho<ra.length;Ho++){var So=ra[Ho];fn(So,so)}}function tn(ki,so){ki=I(ki),so.ids=[],so.entities={},mt(ki,so)}function Vn(ki,so){return Ur([ki],so)}function Ur(ki,so){var Ho=!1;ki.forEach(function(ra){ra in so.entities&&(delete so.entities[ra],Ho=!0)}),Ho&&(so.ids=so.ids.filter(function(ra){return ra in so.entities}))}function $r(ki){Object.assign(ki,{ids:[],entities:{}})}function Pr(ki,so,Ho){var ra=Ho.entities[so.id],So=Object.assign({},ra,so.changes),gr=ee(So,Sn),di=gr!==so.id;return di&&(ki[so.id]=gr,delete Ho.entities[so.id]),Ho.entities[gr]=So,di}function zr(ki,so){return gi([ki],so)}function gi(ki,so){var Ho={},ra={};ki.forEach(function(di){di.id in so.entities&&(ra[di.id]={id:di.id,changes:M(M({},ra[di.id]?ra[di.id].changes:null),di.changes)})}),ki=Object.values(ra);var So=ki.length>0;if(So){var gr=ki.filter(function(di){return Pr(Ho,di,so)}).length>0;gr&&(so.ids=Object.keys(so.entities))}}function $i(ki,so){return eo([ki],so)}function eo(ki,so){var Ho=K(ki,Sn,so),ra=Ho[0],So=Ho[1];gi(So,so),mt(ra,so)}return{removeAll:At($r),addOne:et(ir),addMany:et(mt),setOne:et(fn),setMany:et(gt),setAll:et(tn),updateOne:et(zr),updateMany:et(gi),upsertOne:et($i),upsertMany:et(eo),removeOne:et(Vn),removeMany:et(Ur)}}function De(Sn,ir){var mt=ue(Sn),fn=mt.removeOne,gt=mt.removeMany,tn=mt.removeAll;function Vn(So,gr){return Ur([So],gr)}function Ur(So,gr){So=I(So);var di=So.filter(function(Vi){return!(ee(Vi,Sn)in gr.entities)});di.length!==0&&Ho(di,gr)}function $r(So,gr){return Pr([So],gr)}function Pr(So,gr){So=I(So),So.length!==0&&Ho(So,gr)}function zr(So,gr){So=I(So),gr.entities={},gr.ids=[],Ur(So,gr)}function gi(So,gr){return $i([So],gr)}function $i(So,gr){for(var di=!1,Vi=0,Ro=So;Vi<Ro.length;Vi++){var na=Ro[Vi],ta=gr.entities[na.id];if(ta){di=!0,Object.assign(ta,na.changes);var aa=Sn(ta);na.id!==aa&&(delete gr.entities[na.id],gr.entities[aa]=ta)}}di&&ra(gr)}function eo(So,gr){return ki([So],gr)}function ki(So,gr){var di=K(So,Sn,gr),Vi=di[0],Ro=di[1];$i(Ro,gr),Ur(Vi,gr)}function so(So,gr){if(So.length!==gr.length)return!1;for(var di=0;di<So.length&&di<gr.length;di++)if(So[di]!==gr[di])return!1;return!0}function Ho(So,gr){So.forEach(function(di){gr.entities[Sn(di)]=di}),ra(gr)}function ra(So){var gr=Object.values(So.entities);gr.sort(ir);var di=gr.map(Sn),Vi=So.ids;so(Vi,di)||(So.ids=di)}return{removeOne:fn,removeMany:gt,removeAll:tn,addOne:et(Vn),updateOne:et(gi),upsertOne:et(eo),setOne:et($r),setMany:et(Pr),setAll:et(zr),addMany:et(Ur),updateMany:et($i),upsertMany:et(ki)}}function He(Sn){Sn===void 0&&(Sn={});var ir=M({sortComparer:!1,selectId:function(Ur){return Ur.id}},Sn),mt=ir.selectId,fn=ir.sortComparer,gt=Ke(),tn=it(),Vn=fn?De(mt,fn):ue(mt);return M(M(M({selectId:mt,sortComparer:fn},gt),tn),Vn)}var Fe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ze=function(Sn){Sn===void 0&&(Sn=21);for(var ir="",mt=Sn;mt--;)ir+=Fe[Math.random()*64|0];return ir},qe=["name","message","stack","code"],We=function(){function Sn(ir,mt){this.payload=ir,this.meta=mt}return Sn}(),_t=function(){function Sn(ir,mt){this.payload=ir,this.meta=mt}return Sn}(),ct=function(Sn){if(typeof Sn=="object"&&Sn!==null){for(var ir={},mt=0,fn=qe;mt<fn.length;mt++){var gt=fn[mt];typeof Sn[gt]=="string"&&(ir[gt]=Sn[gt])}return ir}return{message:String(Sn)}},Ge=function(){function Sn(ir,mt,fn){var gt=Tt(ir+"/fulfilled",function(zr,gi,$i,eo){return{payload:zr,meta:D(M({},eo||{}),{arg:$i,requestId:gi,requestStatus:"fulfilled"})}}),tn=Tt(ir+"/pending",function(zr,gi,$i){return{payload:void 0,meta:D(M({},$i||{}),{arg:gi,requestId:zr,requestStatus:"pending"})}}),Vn=Tt(ir+"/rejected",function(zr,gi,$i,eo,ki){return{payload:eo,error:(fn&&fn.serializeError||ct)(zr||"Rejected"),meta:D(M({},ki||{}),{arg:$i,requestId:gi,rejectedWithValue:!!eo,requestStatus:"rejected",aborted:zr?.name==="AbortError",condition:zr?.name==="ConditionError"})}}),Ur=!1,$r=typeof AbortController<"u"?AbortController:function(){function zr(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return zr.prototype.abort=function(){},zr}();function Pr(zr){return function(gi,$i,eo){var ki=fn?.idGenerator?fn.idGenerator(zr):ze(),so=new $r,Ho,ra=!1;function So(di){Ho=di,so.abort()}var gr=function(){return P(this,null,function(){var di,Vi,Ro,na,ta,aa,vi;return v(this,function(to){switch(to.label){case 0:return to.trys.push([0,4,,5]),na=(di=fn?.condition)==null?void 0:di.call(fn,zr,{getState:$i,extra:eo}),Me(na)?[4,na]:[3,2];case 1:na=to.sent(),to.label=2;case 2:if(na===!1||so.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return ra=!0,ta=new Promise(function($o,ja){return so.signal.addEventListener("abort",function(){return ja({name:"AbortError",message:Ho||"Aborted"})})}),gi(tn(ki,zr,(Vi=fn?.getPendingMeta)==null?void 0:Vi.call(fn,{requestId:ki,arg:zr},{getState:$i,extra:eo}))),[4,Promise.race([ta,Promise.resolve(mt(zr,{dispatch:gi,getState:$i,extra:eo,requestId:ki,signal:so.signal,abort:So,rejectWithValue:function($o,ja){return new We($o,ja)},fulfillWithValue:function($o,ja){return new _t($o,ja)}})).then(function($o){if($o instanceof We)throw $o;return $o instanceof _t?gt($o.payload,ki,zr,$o.meta):gt($o,ki,zr)})])];case 3:return Ro=to.sent(),[3,5];case 4:return aa=to.sent(),Ro=aa instanceof We?Vn(null,ki,zr,aa.payload,aa.meta):Vn(aa,ki,zr),[3,5];case 5:return vi=fn&&!fn.dispatchConditionRejection&&Vn.match(Ro)&&Ro.meta.condition,vi||gi(Ro),[2,Ro]}})})}();return Object.assign(gr,{abort:So,requestId:ki,arg:zr,unwrap:function(){return gr.then(st)}})}}return Object.assign(Pr,{pending:tn,rejected:Vn,fulfilled:gt,typePrefix:ir})}return Sn.withTypes=function(){return Sn},Sn}();function st(Sn){if(Sn.meta&&Sn.meta.rejectedWithValue)throw Sn.payload;if(Sn.error)throw Sn.error;return Sn.payload}function Me(Sn){return Sn!==null&&typeof Sn=="object"&&typeof Sn.then=="function"}var ie=function(Sn){return Sn&&typeof Sn.match=="function"},ge=function(Sn,ir){return ie(Sn)?Sn.match(ir):Sn(ir)};function z(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];return function(mt){return Sn.some(function(fn){return ge(fn,mt)})}}function be(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];return function(mt){return Sn.every(function(fn){return ge(fn,mt)})}}function Qe(Sn,ir){if(!Sn||!Sn.meta)return!1;var mt=typeof Sn.meta.requestId=="string",fn=ir.indexOf(Sn.meta.requestStatus)>-1;return mt&&fn}function Bt(Sn){return typeof Sn[0]=="function"&&"pending"in Sn[0]&&"fulfilled"in Sn[0]&&"rejected"in Sn[0]}function nn(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];return Sn.length===0?function(mt){return Qe(mt,["pending"])}:Bt(Sn)?function(mt){var fn=Sn.map(function(tn){return tn.pending}),gt=z.apply(void 0,fn);return gt(mt)}:nn()(Sn[0])}function bt(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];return Sn.length===0?function(mt){return Qe(mt,["rejected"])}:Bt(Sn)?function(mt){var fn=Sn.map(function(tn){return tn.rejected}),gt=z.apply(void 0,fn);return gt(mt)}:bt()(Sn[0])}function at(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];var mt=function(fn){return fn&&fn.meta&&fn.meta.rejectedWithValue};return Sn.length===0?function(fn){var gt=be(bt.apply(void 0,Sn),mt);return gt(fn)}:Bt(Sn)?function(fn){var gt=be(bt.apply(void 0,Sn),mt);return gt(fn)}:at()(Sn[0])}function $t(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];return Sn.length===0?function(mt){return Qe(mt,["fulfilled"])}:Bt(Sn)?function(mt){var fn=Sn.map(function(tn){return tn.fulfilled}),gt=z.apply(void 0,fn);return gt(mt)}:$t()(Sn[0])}function On(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];return Sn.length===0?function(mt){return Qe(mt,["pending","fulfilled","rejected"])}:Bt(Sn)?function(mt){for(var fn=[],gt=0,tn=Sn;gt<tn.length;gt++){var Vn=tn[gt];fn.push(Vn.pending,Vn.rejected,Vn.fulfilled)}var Ur=z.apply(void 0,fn);return Ur(mt)}:On()(Sn[0])}var Ct=function(Sn,ir){if(typeof Sn!="function")throw new TypeError(ir+" is not a function")},Zt=function(){},Wn=function(Sn,ir){return ir===void 0&&(ir=Zt),Sn.catch(ir),Sn},Zn=function(Sn,ir){return Sn.addEventListener("abort",ir,{once:!0}),function(){return Sn.removeEventListener("abort",ir)}},xt=function(Sn,ir){var mt=Sn.signal;mt.aborted||("reason"in mt||Object.defineProperty(mt,"reason",{enumerable:!0,value:ir,configurable:!0,writable:!0}),Sn.abort(ir))},Xe="task",gn="listener",Qt="completed",Dt="cancelled",hn="task-"+Dt,cn="task-"+Qt,an=gn+"-"+Dt,Or=gn+"-"+Qt,Ln=function(){function Sn(ir){this.code=ir,this.name="TaskAbortError",this.message=Xe+" "+Dt+" (reason: "+ir+")"}return Sn}(),En=function(Sn){if(Sn.aborted)throw new Ln(Sn.reason)};function Gn(Sn,ir){var mt=Zt;return new Promise(function(fn,gt){var tn=function(){return gt(new Ln(Sn.reason))};if(Sn.aborted){tn();return}mt=Zn(Sn,tn),ir.finally(function(){return mt()}).then(fn,gt)}).finally(function(){mt=Zt})}var rr=function(Sn,ir){return P(void 0,null,function(){var mt,fn;return v(this,function(gt){switch(gt.label){case 0:return gt.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return gt.sent(),[4,Sn()];case 2:return mt=gt.sent(),[2,{status:"ok",value:mt}];case 3:return fn=gt.sent(),[2,{status:fn instanceof Ln?"cancelled":"rejected",error:fn}];case 4:return ir?.(),[7];case 5:return[2]}})})},sr=function(Sn){return function(ir){return Wn(Gn(Sn,ir).then(function(mt){return En(Sn),mt}))}},pi=function(Sn){var ir=sr(Sn);return function(mt){return ir(new Promise(function(fn){return setTimeout(fn,mt)}))}},yi=Object.assign,jr={},ui="listenerMiddleware",bi=function(Sn){var ir=function(mt){return Zn(Sn,function(){return xt(mt,Sn.reason)})};return function(mt){Ct(mt,"taskExecutor");var fn=new AbortController;ir(fn);var gt=rr(function(){return P(void 0,null,function(){var tn;return v(this,function(Vn){switch(Vn.label){case 0:return En(Sn),En(fn.signal),[4,mt({pause:sr(fn.signal),delay:pi(fn.signal),signal:fn.signal})];case 1:return tn=Vn.sent(),En(fn.signal),[2,tn]}})})},function(){return xt(fn,cn)});return{result:sr(Sn)(gt),cancel:function(){xt(fn,hn)}}}},ri=function(Sn,ir){var mt=function(fn,gt){return P(void 0,null,function(){var tn,Vn,Ur,$r;return v(this,function(Pr){switch(Pr.label){case 0:En(ir),tn=function(){},Vn=new Promise(function(zr,gi){var $i=Sn({predicate:fn,effect:function(eo,ki){ki.unsubscribe(),zr([eo,ki.getState(),ki.getOriginalState()])}});tn=function(){$i(),gi()}}),Ur=[Vn],gt!=null&&Ur.push(new Promise(function(zr){return setTimeout(zr,gt,null)})),Pr.label=1;case 1:return Pr.trys.push([1,,3,4]),[4,Gn(ir,Promise.race(Ur))];case 2:return $r=Pr.sent(),En(ir),[2,$r];case 3:return tn(),[7];case 4:return[2]}})})};return function(fn,gt){return Wn(mt(fn,gt))}},hi=function(Sn){var ir=Sn.type,mt=Sn.actionCreator,fn=Sn.matcher,gt=Sn.predicate,tn=Sn.effect;if(ir)gt=Tt(ir).match;else if(mt)ir=mt.type,gt=mt.match;else if(fn)gt=fn;else if(!gt)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return Ct(tn,"options.listener"),{predicate:gt,type:ir,effect:tn}},Si=function(Sn){var ir=hi(Sn),mt=ir.type,fn=ir.predicate,gt=ir.effect,tn=ze(),Vn={id:tn,effect:gt,type:mt,predicate:fn,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return Vn},Kr=function(Sn){Sn.pending.forEach(function(ir){xt(ir,an)})},xi=function(Sn){return function(){Sn.forEach(Kr),Sn.clear()}},Ai=function(Sn,ir,mt){try{Sn(ir,mt)}catch(fn){setTimeout(function(){throw fn},0)}},Pi=Tt(ui+"/add"),io=Tt(ui+"/removeAll"),lo=Tt(ui+"/remove"),Gr=function(){for(var Sn=[],ir=0;ir<arguments.length;ir++)Sn[ir]=arguments[ir];console.error.apply(console,h([ui+"/error"],Sn))};function un(Sn){var ir=this;Sn===void 0&&(Sn={});var mt=new Map,fn=Sn.extra,gt=Sn.onError,tn=gt===void 0?Gr:gt;Ct(tn,"onError");var Vn=function(eo){return eo.unsubscribe=function(){return mt.delete(eo.id)},mt.set(eo.id,eo),function(ki){eo.unsubscribe(),ki?.cancelActive&&Kr(eo)}},Ur=function(eo){for(var ki=0,so=Array.from(mt.values());ki<so.length;ki++){var Ho=so[ki];if(eo(Ho))return Ho}},$r=function(eo){var ki=Ur(function(so){return so.effect===eo.effect});return ki||(ki=Si(eo)),Vn(ki)},Pr=function(eo){var ki=hi(eo),so=ki.type,Ho=ki.effect,ra=ki.predicate,So=Ur(function(gr){var di=typeof so=="string"?gr.type===so:gr.predicate===ra;return di&&gr.effect===Ho});return So&&(So.unsubscribe(),eo.cancelActive&&Kr(So)),!!So},zr=function(eo,ki,so,Ho){return P(ir,null,function(){var ra,So,gr;return v(this,function(di){switch(di.label){case 0:ra=new AbortController,So=ri($r,ra.signal),di.label=1;case 1:return di.trys.push([1,3,4,5]),eo.pending.add(ra),[4,Promise.resolve(eo.effect(ki,yi({},so,{getOriginalState:Ho,condition:function(Vi,Ro){return So(Vi,Ro).then(Boolean)},take:So,delay:pi(ra.signal),pause:sr(ra.signal),extra:fn,signal:ra.signal,fork:bi(ra.signal),unsubscribe:eo.unsubscribe,subscribe:function(){mt.set(eo.id,eo)},cancelActiveListeners:function(){eo.pending.forEach(function(Vi,Ro,na){Vi!==ra&&(xt(Vi,an),na.delete(Vi))})}})))];case 2:return di.sent(),[3,5];case 3:return gr=di.sent(),gr instanceof Ln||Ai(tn,gr,{raisedBy:"effect"}),[3,5];case 4:return xt(ra,Or),eo.pending.delete(ra),[7];case 5:return[2]}})})},gi=xi(mt),$i=function(eo){return function(ki){return function(so){if(!pt(so))return ki(so);if(Pi.match(so))return $r(so.payload);if(io.match(so)){gi();return}if(lo.match(so))return Pr(so.payload);var Ho=eo.getState(),ra=function(){if(Ho===jr)throw new Error(ui+": getOriginalState can only be called synchronously");return Ho},So;try{if(So=ki(so),mt.size>0)for(var gr=eo.getState(),di=Array.from(mt.values()),Vi=0,Ro=di;Vi<Ro.length;Vi++){var na=Ro[Vi],ta=!1;try{ta=na.predicate(so,gr,Ho)}catch(aa){ta=!1,Ai(tn,aa,{raisedBy:"predicate"})}ta&&zr(na,so,eo,ra)}}finally{Ho=jr}return So}}};return{middleware:$i,startListening:$r,stopListening:Pr,clearListeners:gi}}var qn="RTK_autoBatch",kn=function(){return function(Sn){var ir;return{payload:Sn,meta:(ir={},ir[qn]=!0,ir)}}},St,ln=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof t.g<"u"?t.g:globalThis):function(Sn){return(St||(St=Promise.resolve())).then(Sn).catch(function(ir){return setTimeout(function(){throw ir},0)})},An=function(Sn){return function(ir){setTimeout(ir,Sn)}},Cr=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:An(10),_i=function(Sn){return Sn===void 0&&(Sn={type:"raf"}),function(ir){return function(){for(var mt=[],fn=0;fn<arguments.length;fn++)mt[fn]=arguments[fn];var gt=ir.apply(void 0,mt),tn=!0,Vn=!1,Ur=!1,$r=new Set,Pr=Sn.type==="tick"?ln:Sn.type==="raf"?Cr:Sn.type==="callback"?Sn.queueNotification:An(Sn.timeout),zr=function(){Ur=!1,Vn&&(Vn=!1,$r.forEach(function(gi){return gi()}))};return Object.assign({},gt,{subscribe:function(gi){var $i=function(){return tn&&gi()},eo=gt.subscribe($i);return $r.add(gi),function(){eo(),$r.delete(gi)}},dispatch:function(gi){var $i;try{return tn=!(($i=gi?.meta)!=null&&$i[qn]),Vn=!tn,Vn&&(Ur||(Ur=!0,Pr(zr))),gt.dispatch(gi)}finally{tn=!0}}})}}};(0,i.rF)()},89227:(J,g,t)=>{"use strict";t.d(g,{A:()=>w});var i=function(){function S(R){var M=R.x,D=M===void 0?0:M,P=R.y,T=P===void 0?0:P;this.x=0,this.y=0,this.x=D,this.y=T}var O=S.prototype;return O.value=function(){return{x:this.x,y:this.y}},O.toArray=function(){return[this.x,this.y]},S}();function l(S){return!!S&&S instanceof Element}function s(S){return!!S&&(S instanceof SVGElement||"ownerSVGElement"in S)}function m(S){return!!S&&"createSVGPoint"in S}function u(S){return!!S&&"getScreenCTM"in S}function f(S){return!!S&&"changedTouches"in S}function p(S){return!!S&&"clientX"in S}function v(S){return!!S&&(S instanceof Event||"nativeEvent"in S&&S.nativeEvent instanceof Event)}function h(){return h=Object.assign?Object.assign.bind():function(S){for(var O=1;O<arguments.length;O++){var R=arguments[O];for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(S[M]=R[M])}return S},h.apply(this,arguments)}var d={x:0,y:0};function b(S){if(!S)return h({},d);if(f(S))return S.changedTouches.length>0?{x:S.changedTouches[0].clientX,y:S.changedTouches[0].clientY}:h({},d);if(p(S))return{x:S.clientX,y:S.clientY};var O=S?.target,R=O&&"getBoundingClientRect"in O?O.getBoundingClientRect():null;return R?{x:R.x+R.width/2,y:R.y+R.height/2}:h({},d)}function y(S,O){if(!S||!O)return null;var R=b(O),M=s(S)?S.ownerSVGElement:S,D=u(M)?M.getScreenCTM():null;if(m(M)&&D){var P=M.createSVGPoint();return P.x=R.x,P.y=R.y,P=P.matrixTransform(D.inverse()),new i({x:P.x,y:P.y})}var T=S.getBoundingClientRect();return new i({x:R.x-T.left-S.clientLeft,y:R.y-T.top-S.clientTop})}function w(S,O){if(l(S)&&O)return y(S,O);if(v(S)){var R=S,M=R.target;if(M)return y(M,R)}return null}},98361:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96540),l=["children","id","from","to","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform"];function s(){return s=Object.assign?Object.assign.bind():function(f){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(f[h]=v[h])}return f},s.apply(this,arguments)}function m(f,p){if(f==null)return{};var v={},h=Object.keys(f),d,b;for(b=0;b<h.length;b++)d=h[b],!(p.indexOf(d)>=0)&&(v[d]=f[d]);return v}function u(f){var p=f.children,v=f.id,h=f.from,d=f.to,b=f.fromOffset,y=b===void 0?"0%":b,w=f.fromOpacity,S=w===void 0?1:w,O=f.toOffset,R=O===void 0?"100%":O,M=f.toOpacity,D=M===void 0?1:M,P=f.rotate,T=f.transform,A=m(f,l);return i.createElement("defs",null,i.createElement("radialGradient",s({id:v,gradientTransform:P?"rotate("+P+")":T},A),!!p&&p,!p&&i.createElement("stop",{offset:y,stopColor:h,stopOpacity:S}),!p&&i.createElement("stop",{offset:R,stopColor:d,stopOpacity:D})))}},33434:(J,g,t)=>{"use strict";t.d(g,{A:()=>h});var i=t(5556),l=t.n(i),s=t(96540),m=t(46942),u=t.n(m),f=["top","left","transform","className","children","innerRef"];function p(){return p=Object.assign?Object.assign.bind():function(d){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(d[w]=y[w])}return d},p.apply(this,arguments)}function v(d,b){if(d==null)return{};var y={},w=Object.keys(d),S,O;for(O=0;O<w.length;O++)S=w[O],!(b.indexOf(S)>=0)&&(y[S]=d[S]);return y}function h(d){var b=d.top,y=b===void 0?0:b,w=d.left,S=w===void 0?0:w,O=d.transform,R=d.className,M=d.children,D=d.innerRef,P=v(d,f);return s.createElement("g",p({ref:D,className:u()("visx-group",R),transform:O||"translate("+S+", "+y+")"},P),M)}h.propTypes={top:l().number,left:l().number,transform:l().string,className:l().string,children:l().node,innerRef:l().oneOfType([l().string,l().func,l().object])}},68293:(J,g,t)=>{"use strict";t.r(g),t.d(g,{Group:()=>i.A});var i=t(33434)},44916:(J,g,t)=>{"use strict";var i;i=!0,g.A=d;var l=p(t(96540)),s=p(t(46942)),m=t(68293),u=t(9810),f=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function p(b){return b&&b.__esModule?b:{default:b}}function v(){return v=Object.assign?Object.assign.bind():function(b){for(var y=1;y<arguments.length;y++){var w=arguments[y];for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(b[S]=w[S])}return b},v.apply(this,arguments)}function h(b,y){if(b==null)return{};var w={},S=Object.keys(b),O,R;for(R=0;R<S.length;R++)O=S[R],!(y.indexOf(O)>=0)&&(w[O]=b[O]);return w}function d(b){var y=b.className,w=b.top,S=b.left,O=b.data,R=O===void 0?[]:O,M=b.centroid,D=b.innerRadius,P=D===void 0?0:D,T=b.outerRadius,A=b.cornerRadius,j=b.startAngle,ae=b.endAngle,_=b.padAngle,N=b.padRadius,W=b.pieSort,he=b.pieSortValues,me=b.pieValue,fe=b.children,ve=b.fill,ce=ve===void 0?"":ve,oe=h(b,f),re=(0,u.arc)({innerRadius:P,outerRadius:T,cornerRadius:A,padRadius:N}),H=(0,u.pie)({startAngle:j,endAngle:ae,padAngle:_,value:me,sort:W,sortValues:he}),V=H(R);return fe?l.default.createElement(l.default.Fragment,null,fe({arcs:V,path:re,pie:H})):l.default.createElement(m.Group,{className:"visx-pie-arcs-group",top:w,left:S},V.map(function(Q,Te){return l.default.createElement("g",{key:"pie-arc-"+Te},l.default.createElement("path",v({className:(0,s.default)("visx-pie-arc",y),d:re(Q)||"",fill:ce==null||typeof ce=="string"?ce:ce(Q)},oe)),M?.(re.centroid(Q),Q))}))}},9810:(J,g,t)=>{"use strict";g.__esModule=!0,g.arc=f,g.area=p,g.line=v,g.pie=h,g.radialLine=d,g.stack=b;var i=t(43106),l=u(t(33518)),s=u(t(76290)),m=u(t(90203));function u(y){return y&&y.__esModule?y:{default:y}}function f(y){var w=y===void 0?{}:y,S=w.innerRadius,O=w.outerRadius,R=w.cornerRadius,M=w.startAngle,D=w.endAngle,P=w.padAngle,T=w.padRadius,A=(0,i.arc)();return S!=null&&(0,l.default)(A.innerRadius,S),O!=null&&(0,l.default)(A.outerRadius,O),R!=null&&(0,l.default)(A.cornerRadius,R),M!=null&&(0,l.default)(A.startAngle,M),D!=null&&(0,l.default)(A.endAngle,D),P!=null&&(0,l.default)(A.padAngle,P),T!=null&&(0,l.default)(A.padRadius,T),A}function p(y){var w=y===void 0?{}:y,S=w.x,O=w.x0,R=w.x1,M=w.y,D=w.y0,P=w.y1,T=w.defined,A=w.curve,j=(0,i.area)();return S&&(0,l.default)(j.x,S),O&&(0,l.default)(j.x0,O),R&&(0,l.default)(j.x1,R),M&&(0,l.default)(j.y,M),D&&(0,l.default)(j.y0,D),P&&(0,l.default)(j.y1,P),T&&j.defined(T),A&&j.curve(A),j}function v(y){var w=y===void 0?{}:y,S=w.x,O=w.y,R=w.defined,M=w.curve,D=(0,i.line)();return S&&(0,l.default)(D.x,S),O&&(0,l.default)(D.y,O),R&&D.defined(R),M&&D.curve(M),D}function h(y){var w=y===void 0?{}:y,S=w.startAngle,O=w.endAngle,R=w.padAngle,M=w.value,D=w.sort,P=w.sortValues,T=(0,i.pie)();return(D===null||D!=null)&&T.sort(D),(P===null||P!=null)&&T.sortValues(P),M!=null&&T.value(M),R!=null&&(0,l.default)(T.padAngle,R),S!=null&&(0,l.default)(T.startAngle,S),O!=null&&(0,l.default)(T.endAngle,O),T}function d(y){var w=y===void 0?{}:y,S=w.angle,O=w.radius,R=w.defined,M=w.curve,D=(0,i.radialLine)();return S&&(0,l.default)(D.angle,S),O&&(0,l.default)(D.radius,O),R&&D.defined(R),M&&D.curve(M),D}function b(y){var w=y.keys,S=y.value,O=y.order,R=y.offset,M=(0,i.stack)();return w&&M.keys(w),S&&(0,l.default)(M.value,S),O&&M.order((0,s.default)(O)),R&&M.offset((0,m.default)(R)),M}},33518:(J,g)=>{"use strict";g.__esModule=!0,g.default=t;function t(i,l){i(l)}},90203:(J,g,t)=>{"use strict";g.__esModule=!0,g.STACK_OFFSET_NAMES=g.STACK_OFFSETS=void 0,g.default=m;var i=t(43106),l={expand:i.stackOffsetExpand,diverging:i.stackOffsetDiverging,none:i.stackOffsetNone,silhouette:i.stackOffsetSilhouette,wiggle:i.stackOffsetWiggle};g.STACK_OFFSETS=l;var s=Object.keys(l);g.STACK_OFFSET_NAMES=s;function m(u){return u&&l[u]||l.none}},76290:(J,g,t)=>{"use strict";g.__esModule=!0,g.STACK_ORDER_NAMES=g.STACK_ORDERS=void 0,g.default=m;var i=t(43106),l={ascending:i.stackOrderAscending,descending:i.stackOrderDescending,insideout:i.stackOrderInsideOut,none:i.stackOrderNone,reverse:i.stackOrderReverse};g.STACK_ORDERS=l;var s=Object.keys(l);g.STACK_ORDER_NAMES=s;function m(u){return u&&l[u]||l.none}},4118:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96540),l=["tooltipOpen"];function s(f,p){if(f==null)return{};var v={},h=Object.keys(f),d,b;for(b=0;b<h.length;b++)d=h[b],!(p.indexOf(d)>=0)&&(v[d]=f[d]);return v}function m(){return m=Object.assign?Object.assign.bind():function(f){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(f[h]=v[h])}return f},m.apply(this,arguments)}function u(f){var p=(0,i.useState)(m({tooltipOpen:!1},f)),v=p[0],h=p[1],d=(0,i.useCallback)(function(y){return h(typeof y=="function"?function(w){var S=w.tooltipOpen,O=s(w,l);return m({},y(O),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:y.tooltipLeft,tooltipTop:y.tooltipTop,tooltipData:y.tooltipData})},[h]),b=(0,i.useCallback)(function(){return h({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[h]);return{tooltipOpen:v.tooltipOpen,tooltipLeft:v.tooltipLeft,tooltipTop:v.tooltipTop,tooltipData:v.tooltipData,updateTooltip:h,showTooltip:d,hideTooltip:b}}},35472:(J,g,t)=>{"use strict";t.d(g,{A:()=>Ae});var i=t(96540),l=t(17334);function s({debounce:Ee,scroll:xe,polyfill:nt}={debounce:0,scroll:!1}){const Tt=nt||(typeof window>"u"?class{}:window.ResizeObserver);if(!Tt)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[pt,Rt]=(0,i.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),tt=(0,i.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:pt}),U=Ee?typeof Ee=="number"?Ee:Ee.scroll:null,F=Ee?typeof Ee=="number"?Ee:Ee.resize:null,Y=(0,i.useRef)(!1);(0,i.useEffect)(()=>(Y.current=!0,()=>void(Y.current=!1)));const[le,ke,Ye]=(0,i.useMemo)(()=>{const Ke=()=>{if(!tt.current.element)return;const{left:it,top:At,width:et,height:ee,bottom:I,right:K,x:ue,y:De}=tt.current.element.getBoundingClientRect(),He={left:it,top:At,width:et,height:ee,bottom:I,right:K,x:ue,y:De};Object.freeze(He),Y.current&&!v(tt.current.lastBounds,He)&&Rt(tt.current.lastBounds=He)};return[Ke,F?(0,l.debounce)(Ke,F):Ke,U?(0,l.debounce)(Ke,U):Ke]},[Rt,U,F]);function ft(){tt.current.scrollContainers&&(tt.current.scrollContainers.forEach(Ke=>Ke.removeEventListener("scroll",Ye,!0)),tt.current.scrollContainers=null),tt.current.resizeObserver&&(tt.current.resizeObserver.disconnect(),tt.current.resizeObserver=null)}function wt(){tt.current.element&&(tt.current.resizeObserver=new Tt(Ye),tt.current.resizeObserver.observe(tt.current.element),xe&&tt.current.scrollContainers&&tt.current.scrollContainers.forEach(Ke=>Ke.addEventListener("scroll",Ye,{capture:!0,passive:!0})))}const Ut=Ke=>{!Ke||Ke===tt.current.element||(ft(),tt.current.element=Ke,tt.current.scrollContainers=f(Ke),wt())};return u(Ye,!!xe),m(ke),(0,i.useEffect)(()=>{ft(),wt()},[xe,Ye,ke]),(0,i.useEffect)(()=>ft,[]),[Ut,pt,le]}function m(Ee){(0,i.useEffect)(()=>{const xe=Ee;return window.addEventListener("resize",xe),()=>void window.removeEventListener("resize",xe)},[Ee])}function u(Ee,xe){(0,i.useEffect)(()=>{if(xe){const nt=Ee;return window.addEventListener("scroll",nt,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",nt,!0)}},[Ee,xe])}function f(Ee){const xe=[];if(!Ee||Ee===document.body)return xe;const{overflow:nt,overflowX:Tt,overflowY:pt}=window.getComputedStyle(Ee);return[nt,Tt,pt].some(Rt=>Rt==="auto"||Rt==="scroll")&&xe.push(Ee),[...xe,...f(Ee.parentElement)]}const p=["x","y","top","bottom","left","right","width","height"],v=(Ee,xe)=>p.every(nt=>Ee[nt]===xe[nt]),h=s;var d=t(5556),b=t.n(d),y=t(40961);function w(Ee,xe){Ee.prototype=Object.create(xe.prototype),Ee.prototype.constructor=Ee,S(Ee,xe)}function S(Ee,xe){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Tt,pt){return Tt.__proto__=pt,Tt},S(Ee,xe)}var O=function(Ee){w(xe,Ee);function xe(){return Ee.apply(this,arguments)||this}var nt=xe.prototype;return nt.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},nt.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?y.createPortal(this.props.children,this.node):null},xe}(i.PureComponent);O.propTypes={zIndex:b().oneOfType([b().number,b().string])};var R=t(46942),M=t.n(R),D=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function P(){return P=Object.assign?Object.assign.bind():function(Ee){for(var xe=1;xe<arguments.length;xe++){var nt=arguments[xe];for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&(Ee[Tt]=nt[Tt])}return Ee},P.apply(this,arguments)}function T(Ee,xe){if(Ee==null)return{};var nt={},Tt=Object.keys(Ee),pt,Rt;for(Rt=0;Rt<Tt.length;Rt++)pt=Tt[Rt],!(xe.indexOf(pt)>=0)&&(nt[pt]=Ee[pt]);return nt}var A={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},j=i.forwardRef(function(Ee,xe){var nt=Ee.className,Tt=Ee.top,pt=Ee.left,Rt=Ee.offsetLeft,tt=Rt===void 0?10:Rt,U=Ee.offsetTop,F=U===void 0?10:U,Y=Ee.style,le=Y===void 0?A:Y,ke=Ee.children,Ye=Ee.unstyled,ft=Ye===void 0?!1:Ye,wt=Ee.applyPositionStyle,Ut=wt===void 0?!1:wt,Ke=T(Ee,D);return i.createElement("div",P({ref:xe,className:M()("visx-tooltip",nt),style:P({top:Tt==null||F==null?Tt:Tt+F,left:pt==null||tt==null?pt:pt+tt},Ut&&{position:"absolute"},!ft&&le)},Ke),ke)});j.propTypes={children:b().node,className:b().string,left:b().number,offsetLeft:b().number,offsetTop:b().number,top:b().number,applyPositionStyle:b().bool,unstyled:b().bool},j.displayName="Tooltip";const ae=j;function _(){return _=Object.assign?Object.assign.bind():function(Ee){for(var xe=1;xe<arguments.length;xe++){var nt=arguments[xe];for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&(Ee[Tt]=nt[Tt])}return Ee},_.apply(this,arguments)}function N(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function W(Ee,xe){Ee.prototype=Object.create(xe.prototype),Ee.prototype.constructor=Ee,he(Ee,xe)}function he(Ee,xe){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Tt,pt){return Tt.__proto__=pt,Tt},he(Ee,xe)}var me={top:0,right:0,bottom:0,left:0,width:0,height:0};function fe(Ee){var xe;return xe=function(nt){W(Tt,nt);function Tt(Rt){var tt;return tt=nt.call(this,Rt)||this,tt.state={rect:void 0,parentRect:void 0},tt.nodeRef=i.createRef(),tt.getRects=tt.getRects.bind(N(tt)),tt}var pt=Tt.prototype;return pt.componentDidMount=function(){var tt,U=this;this.node=(tt=this.nodeRef)!=null&&tt.current?this.nodeRef.current:y.findDOMNode(this),this.setState(function(){return U.getRects()})},pt.getRects=function(){if(!this.node)return this.state;var tt=this.node,U=tt.parentNode,F=tt.getBoundingClientRect?tt.getBoundingClientRect():me,Y=U!=null&&U.getBoundingClientRect?U.getBoundingClientRect():me;return{rect:F,parentRect:Y}},pt.render=function(){return i.createElement(Ee,_({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},Tt}(i.PureComponent),xe.displayName="withBoundingRects("+(Ee.displayName||"")+")",xe}var ve=(0,i.createContext)({isFlippedVertically:!1,isFlippedHorizontally:!1}),ce=ve.Provider,oe=ve.Consumer,re=function(){return useContext(ve)},H=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function V(){return V=Object.assign?Object.assign.bind():function(Ee){for(var xe=1;xe<arguments.length;xe++){var nt=arguments[xe];for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&(Ee[Tt]=nt[Tt])}return Ee},V.apply(this,arguments)}function Q(Ee,xe){if(Ee==null)return{};var nt={},Tt=Object.keys(Ee),pt,Rt;for(Rt=0;Rt<Tt.length;Rt++)pt=Tt[Rt],!(xe.indexOf(pt)>=0)&&(nt[pt]=Ee[pt]);return nt}function Te(Ee){var xe=Ee.children,nt=Ee.getRects,Tt=Ee.left,pt=Tt===void 0?0:Tt,Rt=Ee.offsetLeft,tt=Rt===void 0?10:Rt,U=Ee.offsetTop,F=U===void 0?10:U,Y=Ee.parentRect,le=Ee.rect,ke=Ee.style,Ye=ke===void 0?A:ke,ft=Ee.top,wt=ft===void 0?0:ft,Ut=Ee.unstyled,Ke=Ut===void 0?!1:Ut,it=Ee.nodeRef,At=Q(Ee,H),et,ee=!1,I=!1;if(le&&Y){var K=pt,ue=wt;if(Y.width){var De=K+tt+le.width-Y.width,He=le.width-K-tt;ee=De>0&&De>He}else{var Fe=K+tt+le.width-window.innerWidth,ze=le.width-K-tt;ee=Fe>0&&Fe>ze}if(Y.height){var qe=ue+F+le.height-Y.height,We=le.height-ue-F;I=qe>0&&qe>We}else I=ue+F+le.height>window.innerHeight;K=ee?K-le.width-tt:K+tt,ue=I?ue-le.height-F:ue+F,K=Math.round(K),ue=Math.round(ue),et="translate("+K+"px, "+ue+"px)"}return i.createElement(ae,V({ref:it,style:V({left:0,top:0,transform:et},!Ke&&Ye)},At),i.createElement(ce,{value:{isFlippedVertically:!I,isFlippedHorizontally:!ee}},xe))}Te.propTypes={nodeRef:b().oneOfType([b().string,b().func,b().object])};const Re=fe(Te);var ne=["detectBounds","zIndex"],pe=["left","top","detectBounds","zIndex"];function ye(){return ye=Object.assign?Object.assign.bind():function(Ee){for(var xe=1;xe<arguments.length;xe++){var nt=arguments[xe];for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&(Ee[Tt]=nt[Tt])}return Ee},ye.apply(this,arguments)}function Se(Ee,xe){if(Ee==null)return{};var nt={},Tt=Object.keys(Ee),pt,Rt;for(Rt=0;Rt<Tt.length;Rt++)pt=Tt[Rt],!(xe.indexOf(pt)>=0)&&(nt[pt]=Ee[pt]);return nt}function Ae(Ee){var xe=Ee===void 0?{}:Ee,nt=xe.detectBounds,Tt=nt===void 0?!0:nt,pt=xe.zIndex,Rt=Se(xe,ne),tt=h(Rt),U=tt[0],F=tt[1],Y=tt[2],le=(0,i.useState)(!1),ke=le[0],Ye=le[1];(0,i.useEffect)(function(){Ye(!1)},[]);var ft=(0,i.useMemo)(function(){return function(wt){var Ut=wt.left,Ke=Ut===void 0?0:Ut,it=wt.top,At=it===void 0?0:it,et=wt.detectBounds,ee=wt.zIndex,I=Se(wt,pe),K=et??Tt,ue=ee??pt,De=K?Re:ae,He=ke?0:window.scrollX,Fe=ke?0:window.scrollY,ze=Ke+(F.left||0)+He,qe=At+(F.top||0)+Fe;return i.createElement(O,{zIndex:ue},i.createElement(De,ye({left:ze,top:qe},I)))}},[Tt,pt,F.left,F.top,ke]);return{containerRef:U,containerBounds:F,forceRefreshBounds:Y,TooltipInPortal:ft}}},50817:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});function t(){return!1}function i(){return!0}function l(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}l.prototype={isEventObject:1,constructor:l,isDefaultPrevented:t,isPropagationStopped:t,isImmediatePropagationStopped:t,preventDefault:function(){this.isDefaultPrevented=i},stopPropagation:function(){this.isPropagationStopped=i},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i,this.stopPropagation()},halt:function(m){m?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},g.default=l,J.exports=g.default},32088:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});function i(O){return O&&O.__esModule?O:{default:O}}var l=t(50817),s=i(l),m=t(45228),u=i(m),f=!0,p=!1,v=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function h(O){return O==null}var d=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(R,M){h(R.which)&&(R.which=h(M.charCode)?M.keyCode:M.charCode),R.metaKey===void 0&&(R.metaKey=R.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(R,M){var D=void 0,P=void 0,T=void 0,A=M.wheelDelta,j=M.axis,ae=M.wheelDeltaY,_=M.wheelDeltaX,N=M.detail;A&&(T=A/120),N&&(T=0-(N%3===0?N/3:N)),j!==void 0&&(j===R.HORIZONTAL_AXIS?(P=0,D=0-T):j===R.VERTICAL_AXIS&&(D=0,P=T)),ae!==void 0&&(P=ae/120),_!==void 0&&(D=-1*_/120),!D&&!P&&(P=T),D!==void 0&&(R.deltaX=D),P!==void 0&&(R.deltaY=P),T!==void 0&&(R.delta=T)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(R,M){var D=void 0,P=void 0,T=void 0,A=R.target,j=M.button;return A&&h(R.pageX)&&!h(M.clientX)&&(D=A.ownerDocument||document,P=D.documentElement,T=D.body,R.pageX=M.clientX+(P&&P.scrollLeft||T&&T.scrollLeft||0)-(P&&P.clientLeft||T&&T.clientLeft||0),R.pageY=M.clientY+(P&&P.scrollTop||T&&T.scrollTop||0)-(P&&P.clientTop||T&&T.clientTop||0)),!R.which&&j!==void 0&&(j&1?R.which=1:j&2?R.which=3:j&4?R.which=2:R.which=0),!R.relatedTarget&&R.fromElement&&(R.relatedTarget=R.fromElement===A?R.toElement:R.fromElement),R}}];function b(){return f}function y(){return p}function w(O){var R=O.type,M=typeof O.stopPropagation=="function"||typeof O.cancelBubble=="boolean";s.default.call(this),this.nativeEvent=O;var D=y;"defaultPrevented"in O?D=O.defaultPrevented?b:y:"getPreventDefault"in O?D=O.getPreventDefault()?b:y:"returnValue"in O&&(D=O.returnValue===p?b:y),this.isDefaultPrevented=D;var P=[],T=void 0,A=void 0,j=void 0,ae=v.concat();for(d.forEach(function(_){R.match(_.reg)&&(ae=ae.concat(_.props),_.fix&&P.push(_.fix))}),A=ae.length;A;)j=ae[--A],this[j]=O[j];for(!this.target&&M&&(this.target=O.srcElement||document),this.target&&this.target.nodeType===3&&(this.target=this.target.parentNode),A=P.length;A;)T=P[--A],T(this,O);this.timeStamp=O.timeStamp||Date.now()}var S=s.default.prototype;(0,u.default)(w.prototype,S,{constructor:w,preventDefault:function(){var R=this.nativeEvent;R.preventDefault?R.preventDefault():R.returnValue=p,S.preventDefault.call(this)},stopPropagation:function(){var R=this.nativeEvent;R.stopPropagation?R.stopPropagation():R.cancelBubble=f,S.stopPropagation.call(this)}}),g.default=w,J.exports=g.default},32223:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=m;function i(u){return u&&u.__esModule?u:{default:u}}var l=t(32088),s=i(l);function m(u,f,p,v){function h(b){var y=new s.default(b);p.call(u,y)}if(u.addEventListener){var d=function(){var b=!1;return typeof v=="object"?b=v.capture||!1:typeof v=="boolean"&&(b=v),u.addEventListener(f,h,v||!1),{v:{remove:function(){u.removeEventListener(f,h,b)}}}}();if(typeof d=="object")return d.v}else if(u.attachEvent)return u.attachEvent("on"+f,h),{remove:function(){u.detachEvent("on"+f,h)}}}J.exports=g.default},79887:J=>{var g={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};J.exports=function(t,i){return typeof i=="number"&&!g[t]?i+"px":i}},48556:J=>{"use strict";var g=function(){function N(W,he){var me=[],fe=!0,ve=!1,ce=void 0;try{for(var oe=W[Symbol.iterator](),re;!(fe=(re=oe.next()).done)&&(me.push(re.value),!(he&&me.length===he));fe=!0);}catch(H){ve=!0,ce=H}finally{try{!fe&&oe.return&&oe.return()}finally{if(ve)throw ce}}return me}return function(W,he){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return N(W,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),t=function(){function N(W,he){for(var me=0;me<he.length;me++){var fe=he[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(W,fe.key,fe)}}return function(W,he,me){return he&&N(W.prototype,he),me&&N(W,me),W}}();function i(N){if(Array.isArray(N)){for(var W=0,he=Array(N.length);W<N.length;W++)he[W]=N[W];return he}else return Array.from(N)}function l(N,W){if(!(N instanceof W))throw new TypeError("Cannot call a class as a function")}var s=Object,m=["black","red","green","yellow","blue","magenta","cyan","lightGray","","default"],u=["darkGray","lightRed","lightGreen","lightYellow","lightBlue","lightMagenta","lightCyan","white",""],f=["","bright","dim","italic","underline","","","inverse"],p={red:"lightRed",green:"lightGreen",yellow:"lightYellow",blue:"lightBlue",magenta:"lightMagenta",cyan:"lightCyan",black:"darkGray",lightGray:"white"},v={0:"style",2:"unstyle",3:"color",9:"colorLight",4:"bgColor",10:"bgColorLight"},h={color:m,colorLight:u,bgColor:m,bgColorLight:u,style:f,unstyle:f},d=function(W){for(var he in W)W[he]||delete W[he];return s.keys(W).length===0?void 0:W},b=function(){function N(W,he,me){l(this,N),this.background=W,this.name=he,this.brightness=me}return t(N,[{key:"defaultBrightness",value:function(he){return new N(this.background,this.name,this.brightness||he)}},{key:"css",value:function(he){var me=he?this.inverse:this,fe=me.brightness===y.bright&&p[me.name]||me.name,ve=me.background?"background:":"color:",ce=_.rgb[fe],oe=this.brightness===y.dim?.5:1;return ce?ve+"rgba("+[].concat(i(ce),[oe]).join(",")+");":!me.background&&oe<1?"color:rgba(0,0,0,0.5);":""}},{key:"inverse",get:function(){return new N(!this.background,this.name||(this.background?"black":"white"),this.brightness)}},{key:"clean",get:function(){return d({name:this.name==="default"?"":this.name,bright:this.brightness===y.bright,dim:this.brightness===y.dim})}}]),N}(),y=function(){function N(W){l(this,N),W!==void 0&&(this.value=Number(W))}return t(N,[{key:"type",get:function(){return v[Math.floor(this.value/10)]}},{key:"subtype",get:function(){return h[this.type][this.value%10]}},{key:"str",get:function(){return this.value?"\x1B["+this.value+"m":""}},{key:"isBrightness",get:function(){return this.value===N.noBrightness||this.value===N.bright||this.value===N.dim}}],[{key:"str",value:function(he){return new N(he).str}}]),N}();s.assign(y,{reset:0,bright:1,dim:2,inverse:7,noBrightness:22,noItalic:23,noUnderline:24,noInverse:27,noColor:39,noBgColor:49});var w=function(W,he,me){return W.split(he).join(me)},S=function(W){return W.replace(/(\u001b\[(1|2)m)/g,"\x1B[22m$1")},O=function(W){return W.replace(/\u001b\[22m(\u001b\[(1|2)m)/g,"$1")},R=function(W,he,me){var fe=y.str(he),ve=y.str(me);return String(W).split(` `).map(function(ce){return S(fe+w(O(ce),ve,fe)+ve)}).join(` `)},M=function(W,he){return W+he.charAt(0).toUpperCase()+he.slice(1)},D=function(){return[].concat(i(m.map(function(N,W){return N?[[N,30+W,y.noColor],[M("bg",N),40+W,y.noBgColor]]:[]})),i(u.map(function(N,W){return N?[[N,90+W,y.noColor],[M("bg",N),100+W,y.noBgColor]]:[]})),i(["","BrightRed","BrightGreen","BrightYellow","BrightBlue","BrightMagenta","BrightCyan"].map(function(N,W){return N?[["bg"+N,100+W,y.noBgColor]]:[]})),i(f.map(function(N,W){return N?[[N,W,N==="bright"||N==="dim"?y.noBrightness:20+W]]:[]}))).reduce(function(N,W){return N.concat(W)})}(),P=function N(W){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W;return D.reduce(function(me,fe){var ve=g(fe,3),ce=ve[0],oe=ve[1],re=ve[2];return s.defineProperty(me,ce,{get:function(){return N(function(V){return he(R(V,oe,re))})}})},W)},T=0,A=1,j=2;function ae(N){for(var W=T,he="",me="",fe="",ve=[],ce=[],oe=0,re=N.length;oe<re;oe++){var H=N[oe];switch(he+=H,W){case T:H==="\x1B"?(W=A,he=H):me+=H;break;case A:H==="["?(W=j,fe="",ve=[]):(W=T,me+=he);break;case j:if(H>="0"&&H<="9")fe+=H;else if(H===";")ve.push(new y(fe)),fe="";else if(H==="m"){fe=fe||"0",ve.push(new y(fe));var V=!0,Q=!1,Te=void 0;try{for(var Re=ve[Symbol.iterator](),ne;!(V=(ne=Re.next()).done);V=!0){var pe=ne.value;ce.push({text:me,code:pe}),me=""}}catch(ye){Q=!0,Te=ye}finally{try{!V&&Re.return&&Re.return()}finally{if(Q)throw Te}}W=T}else W=T,me+=he}}return W!==T&&(me+=he),me&&ce.push({text:me,code:new y}),ce}var _=function(){function N(W){l(this,N),this.spans=W?ae(W):[]}return t(N,[{key:Symbol.iterator,value:function(){return this.spans[Symbol.iterator]()}},{key:"str",get:function(){return this.spans.reduce(function(he,me){return he+me.text+me.code.str},"")}},{key:"parsed",get:function(){var he=void 0,me=void 0,fe=void 0,ve=void 0;function ce(){he=new b,me=new b(!0),fe=void 0,ve=new Set}return ce(),s.assign(new N,{spans:this.spans.map(function(oe){var re=oe.code,H=ve.has("inverse"),V=ve.has("underline")?"text-decoration: underline;":"",Q=ve.has("italic")?"font-style: italic;":"",Te=fe===y.bright?"font-weight: bold;":"",Re=he.defaultBrightness(fe),ne=s.assign({css:Te+Q+V+Re.css(H)+me.css(H)},d({bold:!!Te,color:Re.clean,bgColor:me.clean}),oe),pe=!0,ye=!1,Se=void 0;try{for(var Ae=ve[Symbol.iterator](),Ee;!(pe=(Ee=Ae.next()).done);pe=!0){var xe=Ee.value;ne[xe]=!0}}catch(nt){ye=!0,Se=nt}finally{try{!pe&&Ae.return&&Ae.return()}finally{if(ye)throw Se}}if(re.isBrightness)fe=re.value;else if(oe.code.value!==void 0)if(oe.code.value===y.reset)ce();else switch(oe.code.type){case"color":case"colorLight":he=new b(!1,re.subtype);break;case"bgColor":case"bgColorLight":me=new b(!0,re.subtype);break;case"style":ve.add(re.subtype);break;case"unstyle":ve.delete(re.subtype);break}return ne}).filter(function(oe){return oe.text.length>0})})}},{key:"asChromeConsoleLogArguments",get:function(){var he=this.parsed.spans;return[he.map(function(me){return"%c"+me.text}).join("")].concat(i(he.map(function(me){return me.css})))}},{key:"browserConsoleArguments",get:function(){return this.asChromeConsoleLogArguments}}],[{key:"parse",value:function(he){return new N(he).parsed}},{key:"strip",value:function(he){return he.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g,"")}},{key:"isEscaped",value:function(he){return he=String(he),N.strip(he)!==he}},{key:"nice",get:function(){return N.names.forEach(function(he){he in String.prototype||s.defineProperty(String.prototype,he,{get:function(){return N[he](this)}})}),N}},{key:"ansicolor",get:function(){return N}}]),N}();P(_,function(N){return N}),_.names=D.map(function(N){var W=g(N,1),he=W[0];return he}),_.rgb={black:[0,0,0],darkGray:[100,100,100],lightGray:[200,200,200],white:[255,255,255],red:[204,0,0],lightRed:[255,51,0],green:[0,204,0],lightGreen:[51,204,51],yellow:[204,102,0],lightYellow:[255,153,51],blue:[0,0,255],lightBlue:[26,140,255],magenta:[204,0,204],lightMagenta:[255,0,255],cyan:[0,153,255],lightCyan:[0,204,255]},J.exports=_},9455:(J,g)=>{"use strict";var t;t=!0,g.A=function(i,l){if(i&&l){var s=Array.isArray(l)?l:l.split(","),m=i.name||"",u=(i.type||"").toLowerCase(),f=u.replace(/\/.*$/,"");return s.some(function(p){var v=p.trim().toLowerCase();return v.charAt(0)==="."?m.toLowerCase().endsWith(v):v.endsWith("/*")?f===v.replace(/\/.*$/,""):u===v})}return!0}},63193:(J,g,t)=>{J.exports={default:t(58489),__esModule:!0}},11156:(J,g,t)=>{J.exports={default:t(20852),__esModule:!0}},89829:(J,g,t)=>{J.exports={default:t(2981),__esModule:!0}},65971:(J,g,t)=>{J.exports={default:t(85011),__esModule:!0}},75522:(J,g,t)=>{J.exports={default:t(33025),__esModule:!0}},66327:(J,g,t)=>{J.exports={default:t(37719),__esModule:!0}},9506:(J,g)=>{"use strict";var t;t=!0,g.A=function(i,l){if(!(i instanceof l))throw new TypeError("Cannot call a class as a function")}},97588:(J,g,t)=>{"use strict";var i;i=!0;var l=t(89829),s=m(l);function m(u){return u&&u.__esModule?u:{default:u}}g.A=function(){function u(f,p){for(var v=0;v<p.length;v++){var h=p[v];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),(0,s.default)(f,h.key,h)}}return function(f,p,v){return p&&u(f.prototype,p),v&&u(f,v),f}}()},44508:(J,g,t)=>{"use strict";var i;i=!0;var l=t(89829),s=m(l);function m(u){return u&&u.__esModule?u:{default:u}}g.A=function(u,f,p){return f in u?(0,s.default)(u,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[f]=p,u}},85505:(J,g,t)=>{"use strict";var i;i=!0;var l=t(63193),s=m(l);function m(u){return u&&u.__esModule?u:{default:u}}g.A=s.default||function(u){for(var f=1;f<arguments.length;f++){var p=arguments[f];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(u[v]=p[v])}return u}},27714:(J,g,t)=>{"use strict";var i;i=!0;var l=t(65971),s=v(l),m=t(11156),u=v(m),f=t(97479),p=v(f);function v(h){return h&&h.__esModule?h:{default:h}}g.A=function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof d>"u"?"undefined":(0,p.default)(d)));h.prototype=(0,u.default)(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(s.default?(0,s.default)(h,d):h.__proto__=d)}},5748:(J,g)=>{"use strict";var t;t=!0,g.A=function(i,l){var s={};for(var m in i)l.indexOf(m)>=0||Object.prototype.hasOwnProperty.call(i,m)&&(s[m]=i[m]);return s}},50539:(J,g,t)=>{"use strict";var i;i=!0;var l=t(97479),s=m(l);function m(u){return u&&u.__esModule?u:{default:u}}g.A=function(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&((typeof f>"u"?"undefined":(0,s.default)(f))==="object"||typeof f=="function")?f:u}},97479:(J,g,t)=>{"use strict";g.__esModule=!0;var i=t(66327),l=f(i),s=t(75522),m=f(s),u=typeof m.default=="function"&&typeof l.default=="symbol"?function(p){return typeof p}:function(p){return p&&typeof m.default=="function"&&p.constructor===m.default&&p!==m.default.prototype?"symbol":typeof p};function f(p){return p&&p.__esModule?p:{default:p}}g.default=typeof m.default=="function"&&u(l.default)==="symbol"?function(p){return typeof p>"u"?"undefined":u(p)}:function(p){return p&&typeof m.default=="function"&&p.constructor===m.default&&p!==m.default.prototype?"symbol":typeof p>"u"?"undefined":u(p)}},58489:(J,g,t)=>{t(79115),J.exports=t(6791).Object.assign},20852:(J,g,t)=>{t(53742);var i=t(6791).Object;J.exports=function(s,m){return i.create(s,m)}},2981:(J,g,t)=>{t(82919);var i=t(6791).Object;J.exports=function(s,m,u){return i.defineProperty(s,m,u)}},85011:(J,g,t)=>{t(44389),J.exports=t(6791).Object.setPrototypeOf},33025:(J,g,t)=>{t(28957),t(44345),t(32469),t(75529),J.exports=t(6791).Symbol},37719:(J,g,t)=>{t(78750),t(96653),J.exports=t(1275).f("iterator")},73934:J=>{J.exports=function(g){if(typeof g!="function")throw TypeError(g+" is not a function!");return g}},64233:J=>{J.exports=function(){}},90531:(J,g,t)=>{var i=t(90326);J.exports=function(l){if(!i(l))throw TypeError(l+" is not an object!");return l}},73901:(J,g,t)=>{var i=t(69204),l=t(9250),s=t(8830);J.exports=function(m){return function(u,f,p){var v=i(u),h=l(v.length),d=s(p,h),b;if(m&&f!=f){for(;h>d;)if(b=v[d++],b!=b)return!0}else for(;h>d;d++)if((m||d in v)&&v[d]===f)return m||d||0;return!m&&-1}}},64194:J=>{var g={}.toString;J.exports=function(t){return g.call(t).slice(8,-1)}},6791:J=>{var g=J.exports={version:"2.6.12"};typeof __e=="number"&&(__e=g)},33971:(J,g,t)=>{var i=t(73934);J.exports=function(l,s,m){if(i(l),s===void 0)return l;switch(m){case 1:return function(u){return l.call(s,u)};case 2:return function(u,f){return l.call(s,u,f)};case 3:return function(u,f,p){return l.call(s,u,f,p)}}return function(){return l.apply(s,arguments)}}},54947:J=>{J.exports=function(g){if(g==null)throw TypeError("Can't call method on "+g);return g}},75872:(J,g,t)=>{J.exports=!t(82451)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},50559:(J,g,t)=>{var i=t(90326),l=t(56903).document,s=i(l)&&i(l.createElement);J.exports=function(m){return s?l.createElement(m):{}}},22499:J=>{J.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},76358:(J,g,t)=>{var i=t(64796),l=t(14259),s=t(98936);J.exports=function(m){var u=i(m),f=l.f;if(f)for(var p=f(m),v=s.f,h=0,d;p.length>h;)v.call(m,d=p[h++])&&u.push(d);return u}},19786:(J,g,t)=>{var i=t(56903),l=t(6791),s=t(33971),m=t(14632),u=t(43066),f="prototype",p=function(v,h,d){var b=v&p.F,y=v&p.G,w=v&p.S,S=v&p.P,O=v&p.B,R=v&p.W,M=y?l:l[h]||(l[h]={}),D=M[f],P=y?i:w?i[h]:(i[h]||{})[f],T,A,j;y&&(d=h);for(T in d)A=!b&&P&&P[T]!==void 0,!(A&&u(M,T))&&(j=A?P[T]:d[T],M[T]=y&&typeof P[T]!="function"?d[T]:O&&A?s(j,i):R&&P[T]==j?function(ae){var _=function(N,W,he){if(this instanceof ae){switch(arguments.length){case 0:return new ae;case 1:return new ae(N);case 2:return new ae(N,W)}return new ae(N,W,he)}return ae.apply(this,arguments)};return _[f]=ae[f],_}(j):S&&typeof j=="function"?s(Function.call,j):j,S&&((M.virtual||(M.virtual={}))[T]=j,v&p.R&&D&&!D[T]&&m(D,T,j)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,J.exports=p},82451:J=>{J.exports=function(g){try{return!!g()}catch{return!0}}},56903:J=>{var g=J.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=g)},43066:J=>{var g={}.hasOwnProperty;J.exports=function(t,i){return g.call(t,i)}},14632:(J,g,t)=>{var i=t(21672),l=t(15495);J.exports=t(75872)?function(s,m,u){return i.f(s,m,l(1,u))}:function(s,m,u){return s[m]=u,s}},7745:(J,g,t)=>{var i=t(56903).document;J.exports=i&&i.documentElement},14913:(J,g,t)=>{J.exports=!t(75872)&&!t(82451)(function(){return Object.defineProperty(t(50559)("div"),"a",{get:function(){return 7}}).a!=7})},63278:(J,g,t)=>{var i=t(64194);J.exports=Object("z").propertyIsEnumerable(0)?Object:function(l){return i(l)=="String"?l.split(""):Object(l)}},1084:(J,g,t)=>{var i=t(64194);J.exports=Array.isArray||function(s){return i(s)=="Array"}},90326:J=>{J.exports=function(g){return typeof g=="object"?g!==null:typeof g=="function"}},81199:(J,g,t)=>{"use strict";var i=t(67780),l=t(15495),s=t(1123),m={};t(14632)(m,t(15413)("iterator"),function(){return this}),J.exports=function(u,f,p){u.prototype=i(m,{next:l(1,p)}),s(u,f+" Iterator")}},52500:(J,g,t)=>{"use strict";var i=t(98849),l=t(19786),s=t(83070),m=t(14632),u=t(52833),f=t(81199),p=t(1123),v=t(66870),h=t(15413)("iterator"),d=!([].keys&&"next"in[].keys()),b="@@iterator",y="keys",w="values",S=function(){return this};J.exports=function(O,R,M,D,P,T,A){f(M,R,D);var j=function(H){if(!d&&H in W)return W[H];switch(H){case y:return function(){return new M(this,H)};case w:return function(){return new M(this,H)}}return function(){return new M(this,H)}},ae=R+" Iterator",_=P==w,N=!1,W=O.prototype,he=W[h]||W[b]||P&&W[P],me=he||j(P),fe=P?_?j("entries"):me:void 0,ve=R=="Array"&&W.entries||he,ce,oe,re;if(ve&&(re=v(ve.call(new O)),re!==Object.prototype&&re.next&&(p(re,ae,!0),!i&&typeof re[h]!="function"&&m(re,h,S))),_&&he&&he.name!==w&&(N=!0,me=function(){return he.call(this)}),(!i||A)&&(d||N||!W[h])&&m(W,h,me),u[R]=me,u[ae]=S,P)if(ce={values:_?me:j(w),keys:T?me:j(y),entries:fe},A)for(oe in ce)oe in W||s(W,oe,ce[oe]);else l(l.P+l.F*(d||N),R,ce);return ce}},35945:J=>{J.exports=function(g,t){return{value:t,done:!!g}}},52833:J=>{J.exports={}},98849:J=>{J.exports=!0},83281:(J,g,t)=>{var i=t(93108)("meta"),l=t(90326),s=t(43066),m=t(21672).f,u=0,f=Object.isExtensible||function(){return!0},p=!t(82451)(function(){return f(Object.preventExtensions({}))}),v=function(w){m(w,i,{value:{i:"O"+ ++u,w:{}}})},h=function(w,S){if(!l(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!s(w,i)){if(!f(w))return"F";if(!S)return"E";v(w)}return w[i].i},d=function(w,S){if(!s(w,i)){if(!f(w))return!0;if(!S)return!1;v(w)}return w[i].w},b=function(w){return p&&y.NEED&&f(w)&&!s(w,i)&&v(w),w},y=J.exports={KEY:i,NEED:!1,fastKey:h,getWeak:d,onFreeze:b}},99369:(J,g,t)=>{"use strict";var i=t(75872),l=t(64796),s=t(14259),m=t(98936),u=t(64873),f=t(63278),p=Object.assign;J.exports=!p||t(82451)(function(){var v={},h={},d=Symbol(),b="abcdefghijklmnopqrst";return v[d]=7,b.split("").forEach(function(y){h[y]=y}),p({},v)[d]!=7||Object.keys(p({},h)).join("")!=b})?function(h,d){for(var b=u(h),y=arguments.length,w=1,S=s.f,O=m.f;y>w;)for(var R=f(arguments[w++]),M=S?l(R).concat(S(R)):l(R),D=M.length,P=0,T;D>P;)T=M[P++],(!i||O.call(R,T))&&(b[T]=R[T]);return b}:p},67780:(J,g,t)=>{var i=t(90531),l=t(6935),s=t(22499),m=t(36211)("IE_PROTO"),u=function(){},f="prototype",p=function(){var v=t(50559)("iframe"),h=s.length,d="<",b=">",y;for(v.style.display="none",t(7745).appendChild(v),v.src="javascript:",y=v.contentWindow.document,y.open(),y.write(d+"script"+b+"document.F=Object"+d+"/script"+b),y.close(),p=y.F;h--;)delete p[f][s[h]];return p()};J.exports=Object.create||function(h,d){var b;return h!==null?(u[f]=i(h),b=new u,u[f]=null,b[m]=h):b=p(),d===void 0?b:l(b,d)}},21672:(J,g,t)=>{var i=t(90531),l=t(14913),s=t(78381),m=Object.defineProperty;g.f=t(75872)?Object.defineProperty:function(f,p,v){if(i(f),p=s(p,!0),i(v),l)try{return m(f,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported!");return"value"in v&&(f[p]=v.value),f}},6935:(J,g,t)=>{var i=t(21672),l=t(90531),s=t(64796);J.exports=t(75872)?Object.defineProperties:function(u,f){l(u);for(var p=s(f),v=p.length,h=0,d;v>h;)i.f(u,d=p[h++],f[d]);return u}},22682:(J,g,t)=>{var i=t(98936),l=t(15495),s=t(69204),m=t(78381),u=t(43066),f=t(14913),p=Object.getOwnPropertyDescriptor;g.f=t(75872)?p:function(h,d){if(h=s(h),d=m(d,!0),f)try{return p(h,d)}catch{}if(u(h,d))return l(!i.f.call(h,d),h[d])}},37106:(J,g,t)=>{var i=t(69204),l=t(79032).f,s={}.toString,m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(f){try{return l(f)}catch{return m.slice()}};J.exports.f=function(p){return m&&s.call(p)=="[object Window]"?u(p):l(i(p))}},79032:(J,g,t)=>{var i=t(59480),l=t(22499).concat("length","prototype");g.f=Object.getOwnPropertyNames||function(m){return i(m,l)}},14259:(J,g)=>{g.f=Object.getOwnPropertySymbols},66870:(J,g,t)=>{var i=t(43066),l=t(64873),s=t(36211)("IE_PROTO"),m=Object.prototype;J.exports=Object.getPrototypeOf||function(u){return u=l(u),i(u,s)?u[s]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?m:null}},59480:(J,g,t)=>{var i=t(43066),l=t(69204),s=t(73901)(!1),m=t(36211)("IE_PROTO");J.exports=function(u,f){var p=l(u),v=0,h=[],d;for(d in p)d!=m&&i(p,d)&&h.push(d);for(;f.length>v;)i(p,d=f[v++])&&(~s(h,d)||h.push(d));return h}},64796:(J,g,t)=>{var i=t(59480),l=t(22499);J.exports=Object.keys||function(m){return i(m,l)}},98936:(J,g)=>{g.f={}.propertyIsEnumerable},15495:J=>{J.exports=function(g,t){return{enumerable:!(g&1),configurable:!(g&2),writable:!(g&4),value:t}}},83070:(J,g,t)=>{J.exports=t(14632)},10485:(J,g,t)=>{var i=t(90326),l=t(90531),s=function(m,u){if(l(m),!i(u)&&u!==null)throw TypeError(u+": can't set as prototype!")};J.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(m,u,f){try{f=t(33971)(Function.call,t(22682).f(Object.prototype,"__proto__").set,2),f(m,[]),u=!(m instanceof Array)}catch{u=!0}return function(v,h){return s(v,h),u?v.__proto__=h:f(v,h),v}}({},!1):void 0),check:s}},1123:(J,g,t)=>{var i=t(21672).f,l=t(43066),s=t(15413)("toStringTag");J.exports=function(m,u,f){m&&!l(m=f?m:m.prototype,s)&&i(m,s,{configurable:!0,value:u})}},36211:(J,g,t)=>{var i=t(7421)("keys"),l=t(93108);J.exports=function(s){return i[s]||(i[s]=l(s))}},7421:(J,g,t)=>{var i=t(6791),l=t(56903),s="__core-js_shared__",m=l[s]||(l[s]={});(J.exports=function(u,f){return m[u]||(m[u]=f!==void 0?f:{})})("versions",[]).push({version:i.version,mode:t(98849)?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},29491:(J,g,t)=>{var i=t(43570),l=t(54947);J.exports=function(s){return function(m,u){var f=String(l(m)),p=i(u),v=f.length,h,d;return p<0||p>=v?s?"":void 0:(h=f.charCodeAt(p),h<55296||h>56319||p+1===v||(d=f.charCodeAt(p+1))<56320||d>57343?s?f.charAt(p):h:s?f.slice(p,p+2):(h-55296<<10)+(d-56320)+65536)}}},8830:(J,g,t)=>{var i=t(43570),l=Math.max,s=Math.min;J.exports=function(m,u){return m=i(m),m<0?l(m+u,0):s(m,u)}},43570:J=>{var g=Math.ceil,t=Math.floor;J.exports=function(i){return isNaN(i=+i)?0:(i>0?t:g)(i)}},69204:(J,g,t)=>{var i=t(63278),l=t(54947);J.exports=function(s){return i(l(s))}},9250:(J,g,t)=>{var i=t(43570),l=Math.min;J.exports=function(s){return s>0?l(i(s),9007199254740991):0}},64873:(J,g,t)=>{var i=t(54947);J.exports=function(l){return Object(i(l))}},78381:(J,g,t)=>{var i=t(90326);J.exports=function(l,s){if(!i(l))return l;var m,u;if(s&&typeof(m=l.toString)=="function"&&!i(u=m.call(l))||typeof(m=l.valueOf)=="function"&&!i(u=m.call(l))||!s&&typeof(m=l.toString)=="function"&&!i(u=m.call(l)))return u;throw TypeError("Can't convert object to primitive value")}},93108:J=>{var g=0,t=Math.random();J.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++g+t).toString(36))}},62613:(J,g,t)=>{var i=t(56903),l=t(6791),s=t(98849),m=t(1275),u=t(21672).f;J.exports=function(f){var p=l.Symbol||(l.Symbol=s?{}:i.Symbol||{});f.charAt(0)!="_"&&!(f in p)&&u(p,f,{value:m.f(f)})}},1275:(J,g,t)=>{g.f=t(15413)},15413:(J,g,t)=>{var i=t(7421)("wks"),l=t(93108),s=t(56903).Symbol,m=typeof s=="function",u=J.exports=function(f){return i[f]||(i[f]=m&&s[f]||(m?s:l)("Symbol."+f))};u.store=i},45270:(J,g,t)=>{"use strict";var i=t(64233),l=t(35945),s=t(52833),m=t(69204);J.exports=t(52500)(Array,"Array",function(u,f){this._t=m(u),this._i=0,this._k=f},function(){var u=this._t,f=this._k,p=this._i++;return!u||p>=u.length?(this._t=void 0,l(1)):f=="keys"?l(0,p):f=="values"?l(0,u[p]):l(0,[p,u[p]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},79115:(J,g,t)=>{var i=t(19786);i(i.S+i.F,"Object",{assign:t(99369)})},53742:(J,g,t)=>{var i=t(19786);i(i.S,"Object",{create:t(67780)})},82919:(J,g,t)=>{var i=t(19786);i(i.S+i.F*!t(75872),"Object",{defineProperty:t(21672).f})},44389:(J,g,t)=>{var i=t(19786);i(i.S,"Object",{setPrototypeOf:t(10485).set})},44345:()=>{},78750:(J,g,t)=>{"use strict";var i=t(29491)(!0);t(52500)(String,"String",function(l){this._t=String(l),this._i=0},function(){var l=this._t,s=this._i,m;return s>=l.length?{value:void 0,done:!0}:(m=i(l,s),this._i+=m.length,{value:m,done:!1})})},28957:(J,g,t)=>{"use strict";var i=t(56903),l=t(43066),s=t(75872),m=t(19786),u=t(83070),f=t(83281).KEY,p=t(82451),v=t(7421),h=t(1123),d=t(93108),b=t(15413),y=t(1275),w=t(62613),S=t(76358),O=t(1084),R=t(90531),M=t(90326),D=t(64873),P=t(69204),T=t(78381),A=t(15495),j=t(67780),ae=t(37106),_=t(22682),N=t(14259),W=t(21672),he=t(64796),me=_.f,fe=W.f,ve=ae.f,ce=i.Symbol,oe=i.JSON,re=oe&&oe.stringify,H="prototype",V=b("_hidden"),Q=b("toPrimitive"),Te={}.propertyIsEnumerable,Re=v("symbol-registry"),ne=v("symbols"),pe=v("op-symbols"),ye=Object[H],Se=typeof ce=="function"&&!!N.f,Ae=i.QObject,Ee=!Ae||!Ae[H]||!Ae[H].findChild,xe=s&&p(function(){return j(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(Ke,it,At){var et=me(ye,it);et&&delete ye[it],fe(Ke,it,At),et&&Ke!==ye&&fe(ye,it,et)}:fe,nt=function(Ke){var it=ne[Ke]=j(ce[H]);return it._k=Ke,it},Tt=Se&&typeof ce.iterator=="symbol"?function(Ke){return typeof Ke=="symbol"}:function(Ke){return Ke instanceof ce},pt=function(it,At,et){return it===ye&&pt(pe,At,et),R(it),At=T(At,!0),R(et),l(ne,At)?(et.enumerable?(l(it,V)&&it[V][At]&&(it[V][At]=!1),et=j(et,{enumerable:A(0,!1)})):(l(it,V)||fe(it,V,A(1,{})),it[V][At]=!0),xe(it,At,et)):fe(it,At,et)},Rt=function(it,At){R(it);for(var et=S(At=P(At)),ee=0,I=et.length,K;I>ee;)pt(it,K=et[ee++],At[K]);return it},tt=function(it,At){return At===void 0?j(it):Rt(j(it),At)},U=function(it){var At=Te.call(this,it=T(it,!0));return this===ye&&l(ne,it)&&!l(pe,it)?!1:At||!l(this,it)||!l(ne,it)||l(this,V)&&this[V][it]?At:!0},F=function(it,At){if(it=P(it),At=T(At,!0),!(it===ye&&l(ne,At)&&!l(pe,At))){var et=me(it,At);return et&&l(ne,At)&&!(l(it,V)&&it[V][At])&&(et.enumerable=!0),et}},Y=function(it){for(var At=ve(P(it)),et=[],ee=0,I;At.length>ee;)!l(ne,I=At[ee++])&&I!=V&&I!=f&&et.push(I);return et},le=function(it){for(var At=it===ye,et=ve(At?pe:P(it)),ee=[],I=0,K;et.length>I;)l(ne,K=et[I++])&&(!At||l(ye,K))&&ee.push(ne[K]);return ee};Se||(ce=function(){if(this instanceof ce)throw TypeError("Symbol is not a constructor!");var it=d(arguments.length>0?arguments[0]:void 0),At=function(et){this===ye&&At.call(pe,et),l(this,V)&&l(this[V],it)&&(this[V][it]=!1),xe(this,it,A(1,et))};return s&&Ee&&xe(ye,it,{configurable:!0,set:At}),nt(it)},u(ce[H],"toString",function(){return this._k}),_.f=F,W.f=pt,t(79032).f=ae.f=Y,t(98936).f=U,N.f=le,s&&!t(98849)&&u(ye,"propertyIsEnumerable",U,!0),y.f=function(Ke){return nt(b(Ke))}),m(m.G+m.W+m.F*!Se,{Symbol:ce});for(var ke="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ye=0;ke.length>Ye;)b(ke[Ye++]);for(var ft=he(b.store),wt=0;ft.length>wt;)w(ft[wt++]);m(m.S+m.F*!Se,"Symbol",{for:function(Ke){return l(Re,Ke+="")?Re[Ke]:Re[Ke]=ce(Ke)},keyFor:function(it){if(!Tt(it))throw TypeError(it+" is not a symbol!");for(var At in Re)if(Re[At]===it)return At},useSetter:function(){Ee=!0},useSimple:function(){Ee=!1}}),m(m.S+m.F*!Se,"Object",{create:tt,defineProperty:pt,defineProperties:Rt,getOwnPropertyDescriptor:F,getOwnPropertyNames:Y,getOwnPropertySymbols:le});var Ut=p(function(){N.f(1)});m(m.S+m.F*Ut,"Object",{getOwnPropertySymbols:function(it){return N.f(D(it))}}),oe&&m(m.S+m.F*(!Se||p(function(){var Ke=ce();return re([Ke])!="[null]"||re({a:Ke})!="{}"||re(Object(Ke))!="{}"})),"JSON",{stringify:function(it){for(var At=[it],et=1,ee,I;arguments.length>et;)At.push(arguments[et++]);if(I=ee=At[1],!(!M(ee)&&it===void 0||Tt(it)))return O(ee)||(ee=function(K,ue){if(typeof I=="function"&&(ue=I.call(this,K,ue)),!Tt(ue))return ue}),At[1]=ee,re.apply(oe,At)}}),ce[H][Q]||t(14632)(ce[H],Q,ce[H].valueOf),h(ce,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},32469:(J,g,t)=>{t(62613)("asyncIterator")},75529:(J,g,t)=>{t(62613)("observable")},96653:(J,g,t)=>{t(45270);for(var i=t(56903),l=t(14632),s=t(52833),m=t(15413)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<u.length;f++){var p=u[f],v=i[p],h=v&&v.prototype;h&&!h[m]&&l(h,m,p),s[p]=s.Array}},67526:(J,g)=>{"use strict";g.byteLength=p,g.toByteArray=h,g.fromByteArray=y;for(var t=[],i=[],l=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,u=s.length;m<u;++m)t[m]=s[m],i[s.charCodeAt(m)]=m;i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63;function f(w){var S=w.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=w.indexOf("=");O===-1&&(O=S);var R=O===S?0:4-O%4;return[O,R]}function p(w){var S=f(w),O=S[0],R=S[1];return(O+R)*3/4-R}function v(w,S,O){return(S+O)*3/4-O}function h(w){var S,O=f(w),R=O[0],M=O[1],D=new l(v(w,R,M)),P=0,T=M>0?R-4:R,A;for(A=0;A<T;A+=4)S=i[w.charCodeAt(A)]<<18|i[w.charCodeAt(A+1)]<<12|i[w.charCodeAt(A+2)]<<6|i[w.charCodeAt(A+3)],D[P++]=S>>16&255,D[P++]=S>>8&255,D[P++]=S&255;return M===2&&(S=i[w.charCodeAt(A)]<<2|i[w.charCodeAt(A+1)]>>4,D[P++]=S&255),M===1&&(S=i[w.charCodeAt(A)]<<10|i[w.charCodeAt(A+1)]<<4|i[w.charCodeAt(A+2)]>>2,D[P++]=S>>8&255,D[P++]=S&255),D}function d(w){return t[w>>18&63]+t[w>>12&63]+t[w>>6&63]+t[w&63]}function b(w,S,O){for(var R,M=[],D=S;D<O;D+=3)R=(w[D]<<16&16711680)+(w[D+1]<<8&65280)+(w[D+2]&255),M.push(d(R));return M.join("")}function y(w){for(var S,O=w.length,R=O%3,M=[],D=16383,P=0,T=O-R;P<T;P+=D)M.push(b(w,P,P+D>T?T:P+D));return R===1?(S=w[O-1],M.push(t[S>>2]+t[S<<4&63]+"==")):R===2&&(S=(w[O-2]<<8)+w[O-1],M.push(t[S>>10]+t[S>>4&63]+t[S<<2&63]+"=")),M.join("")}},48287:(J,g,t)=>{"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */const i=t(67526),l=t(251),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;g.Buffer=p,g.SlowBuffer=D,g.INSPECT_MAX_BYTES=50;const m=2147483647;g.kMaxLength=m,p.TYPED_ARRAY_SUPPORT=u(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const et=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(et,ee),et.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function f(et){if(et>m)throw new RangeError('The value "'+et+'" is invalid for option "size"');const ee=new Uint8Array(et);return Object.setPrototypeOf(ee,p.prototype),ee}function p(et,ee,I){if(typeof et=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(et)}return v(et,ee,I)}p.poolSize=8192;function v(et,ee,I){if(typeof et=="string")return y(et,ee);if(ArrayBuffer.isView(et))return S(et);if(et==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);if(wt(et,ArrayBuffer)||et&&wt(et.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wt(et,SharedArrayBuffer)||et&&wt(et.buffer,SharedArrayBuffer)))return O(et,ee,I);if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=et.valueOf&&et.valueOf();if(K!=null&&K!==et)return p.from(K,ee,I);const ue=R(et);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof et[Symbol.toPrimitive]=="function")return p.from(et[Symbol.toPrimitive]("string"),ee,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et)}p.from=function(et,ee,I){return v(et,ee,I)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function h(et){if(typeof et!="number")throw new TypeError('"size" argument must be of type number');if(et<0)throw new RangeError('The value "'+et+'" is invalid for option "size"')}function d(et,ee,I){return h(et),et<=0?f(et):ee!==void 0?typeof I=="string"?f(et).fill(ee,I):f(et).fill(ee):f(et)}p.alloc=function(et,ee,I){return d(et,ee,I)};function b(et){return h(et),f(et<0?0:M(et)|0)}p.allocUnsafe=function(et){return b(et)},p.allocUnsafeSlow=function(et){return b(et)};function y(et,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!p.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const I=P(et,ee)|0;let K=f(I);const ue=K.write(et,ee);return ue!==I&&(K=K.slice(0,ue)),K}function w(et){const ee=et.length<0?0:M(et.length)|0,I=f(ee);for(let K=0;K<ee;K+=1)I[K]=et[K]&255;return I}function S(et){if(wt(et,Uint8Array)){const ee=new Uint8Array(et);return O(ee.buffer,ee.byteOffset,ee.byteLength)}return w(et)}function O(et,ee,I){if(ee<0||et.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(et.byteLength<ee+(I||0))throw new RangeError('"length" is outside of buffer bounds');let K;return ee===void 0&&I===void 0?K=new Uint8Array(et):I===void 0?K=new Uint8Array(et,ee):K=new Uint8Array(et,ee,I),Object.setPrototypeOf(K,p.prototype),K}function R(et){if(p.isBuffer(et)){const ee=M(et.length)|0,I=f(ee);return I.length===0||et.copy(I,0,0,ee),I}if(et.length!==void 0)return typeof et.length!="number"||Ut(et.length)?f(0):w(et);if(et.type==="Buffer"&&Array.isArray(et.data))return w(et.data)}function M(et){if(et>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return et|0}function D(et){return+et!=et&&(et=0),p.alloc(+et)}p.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==p.prototype},p.compare=function(ee,I){if(wt(ee,Uint8Array)&&(ee=p.from(ee,ee.offset,ee.byteLength)),wt(I,Uint8Array)&&(I=p.from(I,I.offset,I.byteLength)),!p.isBuffer(ee)||!p.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===I)return 0;let K=ee.length,ue=I.length;for(let De=0,He=Math.min(K,ue);De<He;++De)if(ee[De]!==I[De]){K=ee[De],ue=I[De];break}return K<ue?-1:ue<K?1:0},p.isEncoding=function(ee){switch(String(ee).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(ee,I){if(!Array.isArray(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return p.alloc(0);let K;if(I===void 0)for(I=0,K=0;K<ee.length;++K)I+=ee[K].length;const ue=p.allocUnsafe(I);let De=0;for(K=0;K<ee.length;++K){let He=ee[K];if(wt(He,Uint8Array))De+He.length>ue.length?(p.isBuffer(He)||(He=p.from(He)),He.copy(ue,De)):Uint8Array.prototype.set.call(ue,He,De);else if(p.isBuffer(He))He.copy(ue,De);else throw new TypeError('"list" argument must be an Array of Buffers');De+=He.length}return ue};function P(et,ee){if(p.isBuffer(et))return et.length;if(ArrayBuffer.isView(et)||wt(et,ArrayBuffer))return et.byteLength;if(typeof et!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof et);const I=et.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&I===0)return 0;let ue=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return Y(et).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return Ye(et).length;default:if(ue)return K?-1:Y(et).length;ee=(""+ee).toLowerCase(),ue=!0}}p.byteLength=P;function T(et,ee,I){let K=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,ee>>>=0,I<=ee))return"";for(et||(et="utf8");;)switch(et){case"hex":return V(this,ee,I);case"utf8":case"utf-8":return ve(this,ee,I);case"ascii":return re(this,ee,I);case"latin1":case"binary":return H(this,ee,I);case"base64":return fe(this,ee,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,ee,I);default:if(K)throw new TypeError("Unknown encoding: "+et);et=(et+"").toLowerCase(),K=!0}}p.prototype._isBuffer=!0;function A(et,ee,I){const K=et[ee];et[ee]=et[I],et[I]=K}p.prototype.swap16=function(){const ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<ee;I+=2)A(this,I,I+1);return this},p.prototype.swap32=function(){const ee=this.length;if(ee%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<ee;I+=4)A(this,I,I+3),A(this,I+1,I+2);return this},p.prototype.swap64=function(){const ee=this.length;if(ee%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<ee;I+=8)A(this,I,I+7),A(this,I+1,I+6),A(this,I+2,I+5),A(this,I+3,I+4);return this},p.prototype.toString=function(){const ee=this.length;return ee===0?"":arguments.length===0?ve(this,0,ee):T.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(ee){if(!p.isBuffer(ee))throw new TypeError("Argument must be a Buffer");return this===ee?!0:p.compare(this,ee)===0},p.prototype.inspect=function(){let ee="";const I=g.INSPECT_MAX_BYTES;return ee=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I&&(ee+=" ... "),"<Buffer "+ee+">"},s&&(p.prototype[s]=p.prototype.inspect),p.prototype.compare=function(ee,I,K,ue,De){if(wt(ee,Uint8Array)&&(ee=p.from(ee,ee.offset,ee.byteLength)),!p.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(I===void 0&&(I=0),K===void 0&&(K=ee?ee.length:0),ue===void 0&&(ue=0),De===void 0&&(De=this.length),I<0||K>ee.length||ue<0||De>this.length)throw new RangeError("out of range index");if(ue>=De&&I>=K)return 0;if(ue>=De)return-1;if(I>=K)return 1;if(I>>>=0,K>>>=0,ue>>>=0,De>>>=0,this===ee)return 0;let He=De-ue,Fe=K-I;const ze=Math.min(He,Fe),qe=this.slice(ue,De),We=ee.slice(I,K);for(let _t=0;_t<ze;++_t)if(qe[_t]!==We[_t]){He=qe[_t],Fe=We[_t];break}return He<Fe?-1:Fe<He?1:0};function j(et,ee,I,K,ue){if(et.length===0)return-1;if(typeof I=="string"?(K=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,Ut(I)&&(I=ue?0:et.length-1),I<0&&(I=et.length+I),I>=et.length){if(ue)return-1;I=et.length-1}else if(I<0)if(ue)I=0;else return-1;if(typeof ee=="string"&&(ee=p.from(ee,K)),p.isBuffer(ee))return ee.length===0?-1:ae(et,ee,I,K,ue);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(et,ee,I):Uint8Array.prototype.lastIndexOf.call(et,ee,I):ae(et,[ee],I,K,ue);throw new TypeError("val must be string, number or Buffer")}function ae(et,ee,I,K,ue){let De=1,He=et.length,Fe=ee.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(et.length<2||ee.length<2)return-1;De=2,He/=2,Fe/=2,I/=2}function ze(We,_t){return De===1?We[_t]:We.readUInt16BE(_t*De)}let qe;if(ue){let We=-1;for(qe=I;qe<He;qe++)if(ze(et,qe)===ze(ee,We===-1?0:qe-We)){if(We===-1&&(We=qe),qe-We+1===Fe)return We*De}else We!==-1&&(qe-=qe-We),We=-1}else for(I+Fe>He&&(I=He-Fe),qe=I;qe>=0;qe--){let We=!0;for(let _t=0;_t<Fe;_t++)if(ze(et,qe+_t)!==ze(ee,_t)){We=!1;break}if(We)return qe}return-1}p.prototype.includes=function(ee,I,K){return this.indexOf(ee,I,K)!==-1},p.prototype.indexOf=function(ee,I,K){return j(this,ee,I,K,!0)},p.prototype.lastIndexOf=function(ee,I,K){return j(this,ee,I,K,!1)};function _(et,ee,I,K){I=Number(I)||0;const ue=et.length-I;K?(K=Number(K),K>ue&&(K=ue)):K=ue;const De=ee.length;K>De/2&&(K=De/2);let He;for(He=0;He<K;++He){const Fe=parseInt(ee.substr(He*2,2),16);if(Ut(Fe))return He;et[I+He]=Fe}return He}function N(et,ee,I,K){return ft(Y(ee,et.length-I),et,I,K)}function W(et,ee,I,K){return ft(le(ee),et,I,K)}function he(et,ee,I,K){return ft(Ye(ee),et,I,K)}function me(et,ee,I,K){return ft(ke(ee,et.length-I),et,I,K)}p.prototype.write=function(ee,I,K,ue){if(I===void 0)ue="utf8",K=this.length,I=0;else if(K===void 0&&typeof I=="string")ue=I,K=this.length,I=0;else if(isFinite(I))I=I>>>0,isFinite(K)?(K=K>>>0,ue===void 0&&(ue="utf8")):(ue=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const De=this.length-I;if((K===void 0||K>De)&&(K=De),ee.length>0&&(K<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");let He=!1;for(;;)switch(ue){case"hex":return _(this,ee,I,K);case"utf8":case"utf-8":return N(this,ee,I,K);case"ascii":case"latin1":case"binary":return W(this,ee,I,K);case"base64":return he(this,ee,I,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,ee,I,K);default:if(He)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),He=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(et,ee,I){return ee===0&&I===et.length?i.fromByteArray(et):i.fromByteArray(et.slice(ee,I))}function ve(et,ee,I){I=Math.min(et.length,I);const K=[];let ue=ee;for(;ue<I;){const De=et[ue];let He=null,Fe=De>239?4:De>223?3:De>191?2:1;if(ue+Fe<=I){let ze,qe,We,_t;switch(Fe){case 1:De<128&&(He=De);break;case 2:ze=et[ue+1],(ze&192)===128&&(_t=(De&31)<<6|ze&63,_t>127&&(He=_t));break;case 3:ze=et[ue+1],qe=et[ue+2],(ze&192)===128&&(qe&192)===128&&(_t=(De&15)<<12|(ze&63)<<6|qe&63,_t>2047&&(_t<55296||_t>57343)&&(He=_t));break;case 4:ze=et[ue+1],qe=et[ue+2],We=et[ue+3],(ze&192)===128&&(qe&192)===128&&(We&192)===128&&(_t=(De&15)<<18|(ze&63)<<12|(qe&63)<<6|We&63,_t>65535&&_t<1114112&&(He=_t))}}He===null?(He=65533,Fe=1):He>65535&&(He-=65536,K.push(He>>>10&1023|55296),He=56320|He&1023),K.push(He),ue+=Fe}return oe(K)}const ce=4096;function oe(et){const ee=et.length;if(ee<=ce)return String.fromCharCode.apply(String,et);let I="",K=0;for(;K<ee;)I+=String.fromCharCode.apply(String,et.slice(K,K+=ce));return I}function re(et,ee,I){let K="";I=Math.min(et.length,I);for(let ue=ee;ue<I;++ue)K+=String.fromCharCode(et[ue]&127);return K}function H(et,ee,I){let K="";I=Math.min(et.length,I);for(let ue=ee;ue<I;++ue)K+=String.fromCharCode(et[ue]);return K}function V(et,ee,I){const K=et.length;(!ee||ee<0)&&(ee=0),(!I||I<0||I>K)&&(I=K);let ue="";for(let De=ee;De<I;++De)ue+=Ke[et[De]];return ue}function Q(et,ee,I){const K=et.slice(ee,I);let ue="";for(let De=0;De<K.length-1;De+=2)ue+=String.fromCharCode(K[De]+K[De+1]*256);return ue}p.prototype.slice=function(ee,I){const K=this.length;ee=~~ee,I=I===void 0?K:~~I,ee<0?(ee+=K,ee<0&&(ee=0)):ee>K&&(ee=K),I<0?(I+=K,I<0&&(I=0)):I>K&&(I=K),I<ee&&(I=ee);const ue=this.subarray(ee,I);return Object.setPrototypeOf(ue,p.prototype),ue};function Te(et,ee,I){if(et%1!==0||et<0)throw new RangeError("offset is not uint");if(et+ee>I)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(ee,I,K){ee=ee>>>0,I=I>>>0,K||Te(ee,I,this.length);let ue=this[ee],De=1,He=0;for(;++He<I&&(De*=256);)ue+=this[ee+He]*De;return ue},p.prototype.readUintBE=p.prototype.readUIntBE=function(ee,I,K){ee=ee>>>0,I=I>>>0,K||Te(ee,I,this.length);let ue=this[ee+--I],De=1;for(;I>0&&(De*=256);)ue+=this[ee+--I]*De;return ue},p.prototype.readUint8=p.prototype.readUInt8=function(ee,I){return ee=ee>>>0,I||Te(ee,1,this.length),this[ee]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(ee,I){return ee=ee>>>0,I||Te(ee,2,this.length),this[ee]|this[ee+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(ee,I){return ee=ee>>>0,I||Te(ee,2,this.length),this[ee]<<8|this[ee+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(ee,I){return ee=ee>>>0,I||Te(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(ee,I){return ee=ee>>>0,I||Te(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},p.prototype.readBigUInt64LE=it(function(ee){ee=ee>>>0,Rt(ee,"offset");const I=this[ee],K=this[ee+7];(I===void 0||K===void 0)&&tt(ee,this.length-8);const ue=I+this[++ee]*2**8+this[++ee]*2**16+this[++ee]*2**24,De=this[++ee]+this[++ee]*2**8+this[++ee]*2**16+K*2**24;return BigInt(ue)+(BigInt(De)<<BigInt(32))}),p.prototype.readBigUInt64BE=it(function(ee){ee=ee>>>0,Rt(ee,"offset");const I=this[ee],K=this[ee+7];(I===void 0||K===void 0)&&tt(ee,this.length-8);const ue=I*2**24+this[++ee]*2**16+this[++ee]*2**8+this[++ee],De=this[++ee]*2**24+this[++ee]*2**16+this[++ee]*2**8+K;return(BigInt(ue)<<BigInt(32))+BigInt(De)}),p.prototype.readIntLE=function(ee,I,K){ee=ee>>>0,I=I>>>0,K||Te(ee,I,this.length);let ue=this[ee],De=1,He=0;for(;++He<I&&(De*=256);)ue+=this[ee+He]*De;return De*=128,ue>=De&&(ue-=Math.pow(2,8*I)),ue},p.prototype.readIntBE=function(ee,I,K){ee=ee>>>0,I=I>>>0,K||Te(ee,I,this.length);let ue=I,De=1,He=this[ee+--ue];for(;ue>0&&(De*=256);)He+=this[ee+--ue]*De;return De*=128,He>=De&&(He-=Math.pow(2,8*I)),He},p.prototype.readInt8=function(ee,I){return ee=ee>>>0,I||Te(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},p.prototype.readInt16LE=function(ee,I){ee=ee>>>0,I||Te(ee,2,this.length);const K=this[ee]|this[ee+1]<<8;return K&32768?K|4294901760:K},p.prototype.readInt16BE=function(ee,I){ee=ee>>>0,I||Te(ee,2,this.length);const K=this[ee+1]|this[ee]<<8;return K&32768?K|4294901760:K},p.prototype.readInt32LE=function(ee,I){return ee=ee>>>0,I||Te(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},p.prototype.readInt32BE=function(ee,I){return ee=ee>>>0,I||Te(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},p.prototype.readBigInt64LE=it(function(ee){ee=ee>>>0,Rt(ee,"offset");const I=this[ee],K=this[ee+7];(I===void 0||K===void 0)&&tt(ee,this.length-8);const ue=this[ee+4]+this[ee+5]*2**8+this[ee+6]*2**16+(K<<24);return(BigInt(ue)<<BigInt(32))+BigInt(I+this[++ee]*2**8+this[++ee]*2**16+this[++ee]*2**24)}),p.prototype.readBigInt64BE=it(function(ee){ee=ee>>>0,Rt(ee,"offset");const I=this[ee],K=this[ee+7];(I===void 0||K===void 0)&&tt(ee,this.length-8);const ue=(I<<24)+this[++ee]*2**16+this[++ee]*2**8+this[++ee];return(BigInt(ue)<<BigInt(32))+BigInt(this[++ee]*2**24+this[++ee]*2**16+this[++ee]*2**8+K)}),p.prototype.readFloatLE=function(ee,I){return ee=ee>>>0,I||Te(ee,4,this.length),l.read(this,ee,!0,23,4)},p.prototype.readFloatBE=function(ee,I){return ee=ee>>>0,I||Te(ee,4,this.length),l.read(this,ee,!1,23,4)},p.prototype.readDoubleLE=function(ee,I){return ee=ee>>>0,I||Te(ee,8,this.length),l.read(this,ee,!0,52,8)},p.prototype.readDoubleBE=function(ee,I){return ee=ee>>>0,I||Te(ee,8,this.length),l.read(this,ee,!1,52,8)};function Re(et,ee,I,K,ue,De){if(!p.isBuffer(et))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>ue||ee<De)throw new RangeError('"value" argument is out of bounds');if(I+K>et.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(ee,I,K,ue){if(ee=+ee,I=I>>>0,K=K>>>0,!ue){const Fe=Math.pow(2,8*K)-1;Re(this,ee,I,K,Fe,0)}let De=1,He=0;for(this[I]=ee&255;++He<K&&(De*=256);)this[I+He]=ee/De&255;return I+K},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(ee,I,K,ue){if(ee=+ee,I=I>>>0,K=K>>>0,!ue){const Fe=Math.pow(2,8*K)-1;Re(this,ee,I,K,Fe,0)}let De=K-1,He=1;for(this[I+De]=ee&255;--De>=0&&(He*=256);)this[I+De]=ee/He&255;return I+K},p.prototype.writeUint8=p.prototype.writeUInt8=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,1,255,0),this[I]=ee&255,I+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,2,65535,0),this[I]=ee&255,this[I+1]=ee>>>8,I+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,2,65535,0),this[I]=ee>>>8,this[I+1]=ee&255,I+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,4,4294967295,0),this[I+3]=ee>>>24,this[I+2]=ee>>>16,this[I+1]=ee>>>8,this[I]=ee&255,I+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,4,4294967295,0),this[I]=ee>>>24,this[I+1]=ee>>>16,this[I+2]=ee>>>8,this[I+3]=ee&255,I+4};function ne(et,ee,I,K,ue){pt(ee,K,ue,et,I,7);let De=Number(ee&BigInt(4294967295));et[I++]=De,De=De>>8,et[I++]=De,De=De>>8,et[I++]=De,De=De>>8,et[I++]=De;let He=Number(ee>>BigInt(32)&BigInt(4294967295));return et[I++]=He,He=He>>8,et[I++]=He,He=He>>8,et[I++]=He,He=He>>8,et[I++]=He,I}function pe(et,ee,I,K,ue){pt(ee,K,ue,et,I,7);let De=Number(ee&BigInt(4294967295));et[I+7]=De,De=De>>8,et[I+6]=De,De=De>>8,et[I+5]=De,De=De>>8,et[I+4]=De;let He=Number(ee>>BigInt(32)&BigInt(4294967295));return et[I+3]=He,He=He>>8,et[I+2]=He,He=He>>8,et[I+1]=He,He=He>>8,et[I]=He,I+8}p.prototype.writeBigUInt64LE=it(function(ee,I=0){return ne(this,ee,I,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=it(function(ee,I=0){return pe(this,ee,I,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(ee,I,K,ue){if(ee=+ee,I=I>>>0,!ue){const ze=Math.pow(2,8*K-1);Re(this,ee,I,K,ze-1,-ze)}let De=0,He=1,Fe=0;for(this[I]=ee&255;++De<K&&(He*=256);)ee<0&&Fe===0&&this[I+De-1]!==0&&(Fe=1),this[I+De]=(ee/He>>0)-Fe&255;return I+K},p.prototype.writeIntBE=function(ee,I,K,ue){if(ee=+ee,I=I>>>0,!ue){const ze=Math.pow(2,8*K-1);Re(this,ee,I,K,ze-1,-ze)}let De=K-1,He=1,Fe=0;for(this[I+De]=ee&255;--De>=0&&(He*=256);)ee<0&&Fe===0&&this[I+De+1]!==0&&(Fe=1),this[I+De]=(ee/He>>0)-Fe&255;return I+K},p.prototype.writeInt8=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,1,127,-128),ee<0&&(ee=255+ee+1),this[I]=ee&255,I+1},p.prototype.writeInt16LE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,2,32767,-32768),this[I]=ee&255,this[I+1]=ee>>>8,I+2},p.prototype.writeInt16BE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,2,32767,-32768),this[I]=ee>>>8,this[I+1]=ee&255,I+2},p.prototype.writeInt32LE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,4,2147483647,-2147483648),this[I]=ee&255,this[I+1]=ee>>>8,this[I+2]=ee>>>16,this[I+3]=ee>>>24,I+4},p.prototype.writeInt32BE=function(ee,I,K){return ee=+ee,I=I>>>0,K||Re(this,ee,I,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[I]=ee>>>24,this[I+1]=ee>>>16,this[I+2]=ee>>>8,this[I+3]=ee&255,I+4},p.prototype.writeBigInt64LE=it(function(ee,I=0){return ne(this,ee,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=it(function(ee,I=0){return pe(this,ee,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ye(et,ee,I,K,ue,De){if(I+K>et.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Se(et,ee,I,K,ue){return ee=+ee,I=I>>>0,ue||ye(et,ee,I,4,34028234663852886e22,-34028234663852886e22),l.write(et,ee,I,K,23,4),I+4}p.prototype.writeFloatLE=function(ee,I,K){return Se(this,ee,I,!0,K)},p.prototype.writeFloatBE=function(ee,I,K){return Se(this,ee,I,!1,K)};function Ae(et,ee,I,K,ue){return ee=+ee,I=I>>>0,ue||ye(et,ee,I,8,17976931348623157e292,-17976931348623157e292),l.write(et,ee,I,K,52,8),I+8}p.prototype.writeDoubleLE=function(ee,I,K){return Ae(this,ee,I,!0,K)},p.prototype.writeDoubleBE=function(ee,I,K){return Ae(this,ee,I,!1,K)},p.prototype.copy=function(ee,I,K,ue){if(!p.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(K||(K=0),!ue&&ue!==0&&(ue=this.length),I>=ee.length&&(I=ee.length),I||(I=0),ue>0&&ue<K&&(ue=K),ue===K||ee.length===0||this.length===0)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("Index out of range");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),ee.length-I<ue-K&&(ue=ee.length-I+K);const De=ue-K;return this===ee&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,K,ue):Uint8Array.prototype.set.call(ee,this.subarray(K,ue),I),De},p.prototype.fill=function(ee,I,K,ue){if(typeof ee=="string"){if(typeof I=="string"?(ue=I,I=0,K=this.length):typeof K=="string"&&(ue=K,K=this.length),ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!p.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);if(ee.length===1){const He=ee.charCodeAt(0);(ue==="utf8"&&He<128||ue==="latin1")&&(ee=He)}}else typeof ee=="number"?ee=ee&255:typeof ee=="boolean"&&(ee=Number(ee));if(I<0||this.length<I||this.length<K)throw new RangeError("Out of range index");if(K<=I)return this;I=I>>>0,K=K===void 0?this.length:K>>>0,ee||(ee=0);let De;if(typeof ee=="number")for(De=I;De<K;++De)this[De]=ee;else{const He=p.isBuffer(ee)?ee:p.from(ee,ue),Fe=He.length;if(Fe===0)throw new TypeError('The value "'+ee+'" is invalid for argument "value"');for(De=0;De<K-I;++De)this[De+I]=He[De%Fe]}return this};const Ee={};function xe(et,ee,I){Ee[et]=class extends I{constructor(){super(),Object.defineProperty(this,"message",{value:ee.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${et}]`,this.stack,delete this.name}get code(){return et}set code(ue){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ue,writable:!0})}toString(){return`${this.name} [${et}]: ${this.message}`}}}xe("ERR_BUFFER_OUT_OF_BOUNDS",function(et){return et?`${et} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),xe("ERR_INVALID_ARG_TYPE",function(et,ee){return`The "${et}" argument must be of type number. Received type ${typeof ee}`},TypeError),xe("ERR_OUT_OF_RANGE",function(et,ee,I){let K=`The value of "${et}" is out of range.`,ue=I;return Number.isInteger(I)&&Math.abs(I)>2**32?ue=nt(String(I)):typeof I=="bigint"&&(ue=String(I),(I>BigInt(2)**BigInt(32)||I<-(BigInt(2)**BigInt(32)))&&(ue=nt(ue)),ue+="n"),K+=` It must be ${ee}. Received ${ue}`,K},RangeError);function nt(et){let ee="",I=et.length;const K=et[0]==="-"?1:0;for(;I>=K+4;I-=3)ee=`_${et.slice(I-3,I)}${ee}`;return`${et.slice(0,I)}${ee}`}function Tt(et,ee,I){Rt(ee,"offset"),(et[ee]===void 0||et[ee+I]===void 0)&&tt(ee,et.length-(I+1))}function pt(et,ee,I,K,ue,De){if(et>I||et<ee){const He=typeof ee=="bigint"?"n":"";let Fe;throw De>3?ee===0||ee===BigInt(0)?Fe=`>= 0${He} and < 2${He} ** ${(De+1)*8}${He}`:Fe=`>= -(2${He} ** ${(De+1)*8-1}${He}) and < 2 ** ${(De+1)*8-1}${He}`:Fe=`>= ${ee}${He} and <= ${I}${He}`,new Ee.ERR_OUT_OF_RANGE("value",Fe,et)}Tt(K,ue,De)}function Rt(et,ee){if(typeof et!="number")throw new Ee.ERR_INVALID_ARG_TYPE(ee,"number",et)}function tt(et,ee,I){throw Math.floor(et)!==et?(Rt(et,I),new Ee.ERR_OUT_OF_RANGE(I||"offset","an integer",et)):ee<0?new Ee.ERR_BUFFER_OUT_OF_BOUNDS:new Ee.ERR_OUT_OF_RANGE(I||"offset",`>= ${I?1:0} and <= ${ee}`,et)}const U=/[^+/0-9A-Za-z-_]/g;function F(et){if(et=et.split("=")[0],et=et.trim().replace(U,""),et.length<2)return"";for(;et.length%4!==0;)et=et+"=";return et}function Y(et,ee){ee=ee||1/0;let I;const K=et.length;let ue=null;const De=[];for(let He=0;He<K;++He){if(I=et.charCodeAt(He),I>55295&&I<57344){if(!ue){if(I>56319){(ee-=3)>-1&&De.push(239,191,189);continue}else if(He+1===K){(ee-=3)>-1&&De.push(239,191,189);continue}ue=I;continue}if(I<56320){(ee-=3)>-1&&De.push(239,191,189),ue=I;continue}I=(ue-55296<<10|I-56320)+65536}else ue&&(ee-=3)>-1&&De.push(239,191,189);if(ue=null,I<128){if((ee-=1)<0)break;De.push(I)}else if(I<2048){if((ee-=2)<0)break;De.push(I>>6|192,I&63|128)}else if(I<65536){if((ee-=3)<0)break;De.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((ee-=4)<0)break;De.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return De}function le(et){const ee=[];for(let I=0;I<et.length;++I)ee.push(et.charCodeAt(I)&255);return ee}function ke(et,ee){let I,K,ue;const De=[];for(let He=0;He<et.length&&!((ee-=2)<0);++He)I=et.charCodeAt(He),K=I>>8,ue=I%256,De.push(ue),De.push(K);return De}function Ye(et){return i.toByteArray(F(et))}function ft(et,ee,I,K){let ue;for(ue=0;ue<K&&!(ue+I>=ee.length||ue>=et.length);++ue)ee[ue+I]=et[ue];return ue}function wt(et,ee){return et instanceof ee||et!=null&&et.constructor!=null&&et.constructor.name!=null&&et.constructor.name===ee.name}function Ut(et){return et!==et}const Ke=function(){const et="0123456789abcdef",ee=new Array(256);for(let I=0;I<16;++I){const K=I*16;for(let ue=0;ue<16;++ue)ee[K+ue]=et[I]+et[ue]}return ee}();function it(et){return typeof BigInt>"u"?At:et}function At(){throw new Error("BigInt not supported")}},49579:(J,g)=>{"use strict";var t;function i(m,u){var f=document.createElement("div"),p=document.createTextNode(m);return f.appendChild(p),f.style.fontFamily=u.font,f.style.fontSize=u.fontSize,f.style.fontWeight=u.fontWeight,f.style.position="absolute",f.style.visibility="hidden",f.style.left="-999px",f.style.top="-999px",f.style.width=u.width,f.style.height="auto",document.body.appendChild(f),f}function l(m){m.parentNode.removeChild(m)}var s={};t={value:!0},g.A=function(m,u){u===void 0&&(u={});var f=JSON.stringify({text:m,options:u});if(s[f])return s[f];u.font=u.font||"Times",u.fontSize=u.fontSize||"16px",u.fontWeight=u.fontWeight||"normal",u.width=u.width||"auto";var p=i(m,u),v={width:p.offsetWidth,height:p.offsetHeight};return l(p),s[f]=v,v}},75888:(J,g,t)=>{"use strict";J.exports=function(i,l){var s=this,m=s.constructor;return s.options=Object.assign({storeInstancesGlobally:!0},l||{}),s.callbacks={},s.directMap={},s.sequenceLevels={},s.resetTimer=null,s.ignoreNextKeyup=!1,s.ignoreNextKeypress=!1,s.nextExpectedAction=!1,s.element=i,s.addEvents(),s.options.storeInstancesGlobally&&m.instances.push(s),s},J.exports.prototype.bind=t(61210),J.exports.prototype.bindMultiple=t(74382),J.exports.prototype.unbind=t(43709),J.exports.prototype.trigger=t(43149),J.exports.prototype.reset=t(26726),J.exports.prototype.stopCallback=t(84446),J.exports.prototype.handleKey=t(94320),J.exports.prototype.addEvents=t(96687),J.exports.prototype.bindSingle=t(99833),J.exports.prototype.getKeyInfo=t(84174),J.exports.prototype.pickBestAction=t(16004),J.exports.prototype.getReverseMap=t(95193),J.exports.prototype.getMatches=t(19132),J.exports.prototype.resetSequences=t(55610),J.exports.prototype.fireCallback=t(7922),J.exports.prototype.bindSequence=t(90875),J.exports.prototype.resetSequenceTimer=t(80602),J.exports.prototype.detach=t(93502),J.exports.instances=[],J.exports.reset=t(6255),J.exports.REVERSE_MAP=null},96687:(J,g,t)=>{"use strict";J.exports=function(){var i=this,l=t(12904),s=i.element;i.eventHandler=t(88178).bind(i),l(s,"keypress",i.eventHandler),l(s,"keydown",i.eventHandler),l(s,"keyup",i.eventHandler)}},61210:J=>{"use strict";J.exports=function(g,t,i){var l=this;return g=g instanceof Array?g:[g],l.bindMultiple(g,t,i),l}},74382:J=>{"use strict";J.exports=function(g,t,i){for(var l=this,s=0;s<g.length;++s)l.bindSingle(g[s],t,i)}},90875:(J,g,t)=>{"use strict";J.exports=function(i,l,s,m){var u=this;u.sequenceLevels[i]=0;function f(b){return function(){u.nextExpectedAction=b,++u.sequenceLevels[i],u.resetSequenceTimer()}}function p(b){var y;u.fireCallback(s,b,i),m!=="keyup"&&(y=t(23970),u.ignoreNextKeyup=y(b)),setTimeout(function(){u.resetSequences()},10)}for(var v=0;v<l.length;++v){var h=v+1===l.length,d=h?p:f(m||u.getKeyInfo(l[v+1]).action);u.bindSingle(l[v],d,m,i,v)}}},99833:J=>{"use strict";J.exports=function(g,t,i,l,s){var m=this;m.directMap[g+":"+i]=t,g=g.replace(/\s+/g," ");var u=g.split(" "),f;if(u.length>1){m.bindSequence(g,u,t,i);return}f=m.getKeyInfo(g,i),m.callbacks[f.key]=m.callbacks[f.key]||[],m.getMatches(f.key,f.modifiers,{type:f.action},l,g,s),m.callbacks[f.key][l?"unshift":"push"]({callback:t,modifiers:f.modifiers,action:f.action,seq:l,level:s,combo:g})}},93502:(J,g,t)=>{var i=t(12904).off;J.exports=function(){var l=this,s=l.element;i(s,"keypress",l.eventHandler),i(s,"keydown",l.eventHandler),i(s,"keyup",l.eventHandler)}},12904:J=>{J.exports=g,J.exports.on=g,J.exports.off=t;function g(i,l,s,m){return!i.addEventListener&&(l="on"+l),(i.addEventListener||i.attachEvent).call(i,l,s,m),s}function t(i,l,s,m){return!i.removeEventListener&&(l="on"+l),(i.removeEventListener||i.detachEvent).call(i,l,s,m),s}},7922:(J,g,t)=>{"use strict";J.exports=function(i,l,s,m){var u=this,f,p;u.stopCallback(l,l.target||l.srcElement,s,m)||i(l,s)===!1&&(f=t(12156),f(l),p=t(31849),p(l))}},84174:(J,g,t)=>{"use strict";J.exports=function(i,l){var s=this,m,u,f,p,v=[],h,d,b;for(m=t(27486),u=m(i),h=t(7641),d=t(57984),b=t(95962),p=0;p<u.length;++p)f=u[p],h[f]&&(f=h[f]),l&&l!=="keypress"&&d[f]&&(f=d[f],v.push("shift")),b(f)&&v.push(f);return l=s.pickBestAction(f,v,l),{key:f,modifiers:v,action:l}}},19132:(J,g,t)=>{"use strict";J.exports=function(i,l,s,m,u,f){var p=this,v,h,d=[],b=s.type,y,w;if(b==="keypress"&&!(s.code&&s.code.slice(0,5)==="Arrow")){var S=p.callbacks["any-character"]||[];S.forEach(function(M){d.push(M)})}if(!p.callbacks[i])return d;for(y=t(95962),b==="keyup"&&y(i)&&(l=[i]),v=0;v<p.callbacks[i].length;++v)if(h=p.callbacks[i][v],!(!m&&h.seq&&p.sequenceLevels[h.seq]!==h.level)&&b===h.action&&(w=t(4857),b==="keypress"&&!s.metaKey&&!s.ctrlKey||w(l,h.modifiers))){var O=!m&&h.combo===u,R=m&&h.seq===m&&h.level===f;(O||R)&&p.callbacks[i].splice(v,1),d.push(h)}return d}},95193:(J,g,t)=>{"use strict";J.exports=function(){var i=this,l=i.constructor,s;if(!l.REVERSE_MAP){l.REVERSE_MAP={},s=t(56814);for(var m in s)m>95&&m<112||s.hasOwnProperty(m)&&(l.REVERSE_MAP[s[m]]=m)}return l.REVERSE_MAP}},94320:(J,g,t)=>{"use strict";J.exports=function(i,l,s){var m=this,u,f,p={},v=0,h=!1,d,b;for(u=m.getMatches(i,l,s),f=0;f<u.length;++f)u[f].seq&&(v=Math.max(v,u[f].level));for(f=0;f<u.length;++f){if(u[f].seq){if(u[f].level!==v)continue;h=!0,p[u[f].seq]=1,m.fireCallback(u[f].callback,s,u[f].combo,u[f].seq);continue}h||m.fireCallback(u[f].callback,s,u[f].combo)}b=s.type==="keypress"&&m.ignoreNextKeypress,d=t(95962),s.type===m.nextExpectedAction&&!d(i)&&!b&&m.resetSequences(p),m.ignoreNextKeypress=h&&s.type==="keydown"}},88178:(J,g,t)=>{"use strict";J.exports=function(i){var l=this,s,m;typeof i.which!="number"&&(i.which=i.keyCode),s=t(23970);var u=s(i);if(u!==void 0){if(i.type==="keyup"&&l.ignoreNextKeyup===u){l.ignoreNextKeyup=!1;return}m=t(25273),l.handleKey(u,m(i),i)}}},4857:J=>{"use strict";J.exports=function(g,t){return g.sort().join(",")===t.sort().join(",")}},16004:J=>{"use strict";J.exports=function(g,t,i){var l=this;return i||(i=l.getReverseMap()[g]?"keydown":"keypress"),i==="keypress"&&t.length&&(i="keydown"),i}},26726:J=>{"use strict";J.exports=function(){var g=this;return g.callbacks={},g.directMap={},this}},80602:J=>{"use strict";J.exports=function(){var g=this;clearTimeout(g.resetTimer),g.resetTimer=setTimeout(function(){g.resetSequences()},1e3)}},55610:J=>{"use strict";J.exports=function(g){var t=this;g=g||{};var i=!1,l;for(l in t.sequenceLevels){if(g[l]){i=!0;continue}t.sequenceLevels[l]=0}i||(t.nextExpectedAction=!1)}},84446:J=>{"use strict";J.exports=function(g,t){if((" "+t.className+" ").indexOf(" combokeys ")>-1)return!1;var i=t.tagName.toLowerCase();return i==="input"||i==="select"||i==="textarea"||t.isContentEditable}},43149:J=>{"use strict";J.exports=function(g,t){var i=this;return i.directMap[g+":"+t]&&i.directMap[g+":"+t]({},g),this}},43709:J=>{"use strict";J.exports=function(g,t){var i=this;return i.bind(g,function(){},t)}},6255:J=>{"use strict";J.exports=function(){var g=this;g.instances.forEach(function(t){t.reset()})}},23970:(J,g,t)=>{"use strict";J.exports=function(i){var l,s;if(l=t(56814),s=t(14082),i.type==="keypress"){var m=String.fromCharCode(i.which);return i.shiftKey||(m=m.toLowerCase()),m}return l[i.which]!==void 0?l[i.which]:s[i.which]!==void 0?s[i.which]:String.fromCharCode(i.which).toLowerCase()}},25273:J=>{"use strict";J.exports=function(g){var t=[];return g.shiftKey&&t.push("shift"),g.altKey&&t.push("alt"),g.ctrlKey&&t.push("ctrl"),g.metaKey&&t.push("meta"),t}},95962:J=>{"use strict";J.exports=function(g){return g==="shift"||g==="ctrl"||g==="alt"||g==="meta"}},27486:J=>{"use strict";J.exports=function(g){return g==="+"?["+"]:g.split("+")}},12156:J=>{"use strict";J.exports=function(g){if(g.preventDefault){g.preventDefault();return}g.returnValue=!1}},57984:J=>{"use strict";J.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},7641:J=>{"use strict";J.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},14082:J=>{"use strict";J.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},56814:J=>{"use strict";J.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var g=1;g<20;++g)J.exports[111+g]="f"+g;for(g=0;g<=9;++g)J.exports[g+96]=g},31849:J=>{"use strict";J.exports=function(g){if(g.stopPropagation){g.stopPropagation();return}g.cancelBubble=!0}},30837:(J,g,t)=>{try{var i=t(69264)}catch{var i=t(69264)}var l=/\s+/,s=Object.prototype.toString;J.exports=function(u){return new m(u)};function m(u){if(!u||!u.nodeType)throw new Error("A DOM element reference is required");this.el=u,this.list=u.classList}m.prototype.add=function(u){if(this.list)return this.list.add(u),this;var f=this.array(),p=i(f,u);return~p||f.push(u),this.el.className=f.join(" "),this},m.prototype.remove=function(u){if(s.call(u)=="[object RegExp]")return this.removeMatching(u);if(this.list)return this.list.remove(u),this;var f=this.array(),p=i(f,u);return~p&&f.splice(p,1),this.el.className=f.join(" "),this},m.prototype.removeMatching=function(u){for(var f=this.array(),p=0;p<f.length;p++)u.test(f[p])&&this.remove(f[p]);return this},m.prototype.toggle=function(u,f){return this.list?(typeof f<"u"?f!==this.list.toggle(u,f)&&this.list.toggle(u):this.list.toggle(u),this):(typeof f<"u"?f?this.add(u):this.remove(u):this.has(u)?this.remove(u):this.add(u),this)},m.prototype.array=function(){var u=this.el.getAttribute("class")||"",f=u.replace(/^\s+|\s+$/g,""),p=f.split(l);return p[0]===""&&p.shift(),p},m.prototype.has=m.prototype.contains=function(u){return this.list?this.list.contains(u):!!~i(this.array(),u)}},69264:J=>{J.exports=function(g,t){if(g.indexOf)return g.indexOf(t);for(var i=0;i<g.length;++i)if(g[i]===t)return i;return-1}},17965:(J,g,t)=>{"use strict";var i=t(16426),l={"text/plain":"Text","text/html":"Url",default:"Text"},s="Copy to clipboard: #{key}, Enter";function m(f){var p=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return f.replace(/#{\s*key\s*}/g,p)}function u(f,p){var v,h,d,b,y,w,S=!1;p||(p={}),v=p.debug||!1;try{d=i(),b=document.createRange(),y=document.getSelection(),w=document.createElement("span"),w.textContent=f,w.style.all="unset",w.style.position="fixed",w.style.top=0,w.style.clip="rect(0, 0, 0, 0)",w.style.whiteSpace="pre",w.style.webkitUserSelect="text",w.style.MozUserSelect="text",w.style.msUserSelect="text",w.style.userSelect="text",w.addEventListener("copy",function(R){if(R.stopPropagation(),p.format)if(R.preventDefault(),typeof R.clipboardData>"u"){v&&console.warn("unable to use e.clipboardData"),v&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var M=l[p.format]||l.default;window.clipboardData.setData(M,f)}else R.clipboardData.clearData(),R.clipboardData.setData(p.format,f);p.onCopy&&(R.preventDefault(),p.onCopy(R.clipboardData))}),document.body.appendChild(w),b.selectNodeContents(w),y.addRange(b);var O=document.execCommand("copy");if(!O)throw new Error("copy command was unsuccessful");S=!0}catch(R){v&&console.error("unable to copy using execCommand: ",R),v&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(p.format||"text",f),p.onCopy&&p.onCopy(window.clipboardData),S=!0}catch(M){v&&console.error("unable to copy using clipboardData: ",M),v&&console.error("falling back to prompt"),h=m("message"in p?p.message:s),window.prompt(h,f)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(b):y.removeAllRanges()),w&&document.body.removeChild(w),d()}return S}J.exports=u},76314:J=>{"use strict";J.exports=function(g){var t=[];return t.toString=function(){return this.map(function(l){var s="",m=typeof l[5]<"u";return l[4]&&(s+="@supports (".concat(l[4],") {")),l[2]&&(s+="@media ".concat(l[2]," {")),m&&(s+="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {")),s+=g(l),m&&(s+="}"),l[2]&&(s+="}"),l[4]&&(s+="}"),s}).join("")},t.i=function(l,s,m,u,f){typeof l=="string"&&(l=[[null,l,void 0]]);var p={};if(m)for(var v=0;v<this.length;v++){var h=this[v][0];h!=null&&(p[h]=!0)}for(var d=0;d<l.length;d++){var b=[].concat(l[d]);m&&p[b[0]]||(typeof f<"u"&&(typeof b[5]>"u"||(b[1]="@layer".concat(b[5].length>0?" ".concat(b[5]):""," {").concat(b[1],"}")),b[5]=f),s&&(b[2]&&(b[1]="@media ".concat(b[2]," {").concat(b[1],"}")),b[2]=s),u&&(b[4]?(b[1]="@supports (".concat(b[4],") {").concat(b[1],"}"),b[4]=u):b[4]="".concat(u)),t.push(b))}},t}},71354:J=>{"use strict";J.exports=function(g){var t=g[1],i=g[3];if(!i)return t;if(typeof btoa=="function"){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),m="/*# ".concat(s," */");return[t].concat([m]).join(` `)}return[t].join(` `)}},23473:(J,g,t)=>{var i=t(47043),l=t(25323),s=t(91100);function m(p){return p==null}function u(p){var v={};for(var h in p)v[h]=p[h];return v}function f(p){p=u(p||{}),p.whiteList=p.whiteList||i.whiteList,p.onAttr=p.onAttr||i.onAttr,p.onIgnoreAttr=p.onIgnoreAttr||i.onIgnoreAttr,p.safeAttrValue=p.safeAttrValue||i.safeAttrValue,this.options=p}f.prototype.process=function(p){if(p=p||"",p=p.toString(),!p)return"";var v=this,h=v.options,d=h.whiteList,b=h.onAttr,y=h.onIgnoreAttr,w=h.safeAttrValue,S=l(p,function(O,R,M,D,P){var T=d[M],A=!1;if(T===!0?A=T:typeof T=="function"?A=T(D):T instanceof RegExp&&(A=T.test(D)),A!==!0&&(A=!1),D=w(M,D),!!D){var j={position:R,sourcePosition:O,source:P,isWhite:A};if(A){var ae=b(M,D,j);return m(ae)?M+":"+D:ae}else{var ae=y(M,D,j);if(!m(ae))return ae}}});return S},J.exports=f},47043:(J,g)=>{function t(){var u={};return u["align-content"]=!1,u["align-items"]=!1,u["align-self"]=!1,u["alignment-adjust"]=!1,u["alignment-baseline"]=!1,u.all=!1,u["anchor-point"]=!1,u.animation=!1,u["animation-delay"]=!1,u["animation-direction"]=!1,u["animation-duration"]=!1,u["animation-fill-mode"]=!1,u["animation-iteration-count"]=!1,u["animation-name"]=!1,u["animation-play-state"]=!1,u["animation-timing-function"]=!1,u.azimuth=!1,u["backface-visibility"]=!1,u.background=!0,u["background-attachment"]=!0,u["background-clip"]=!0,u["background-color"]=!0,u["background-image"]=!0,u["background-origin"]=!0,u["background-position"]=!0,u["background-repeat"]=!0,u["background-size"]=!0,u["baseline-shift"]=!1,u.binding=!1,u.bleed=!1,u["bookmark-label"]=!1,u["bookmark-level"]=!1,u["bookmark-state"]=!1,u.border=!0,u["border-bottom"]=!0,u["border-bottom-color"]=!0,u["border-bottom-left-radius"]=!0,u["border-bottom-right-radius"]=!0,u["border-bottom-style"]=!0,u["border-bottom-width"]=!0,u["border-collapse"]=!0,u["border-color"]=!0,u["border-image"]=!0,u["border-image-outset"]=!0,u["border-image-repeat"]=!0,u["border-image-slice"]=!0,u["border-image-source"]=!0,u["border-image-width"]=!0,u["border-left"]=!0,u["border-left-color"]=!0,u["border-left-style"]=!0,u["border-left-width"]=!0,u["border-radius"]=!0,u["border-right"]=!0,u["border-right-color"]=!0,u["border-right-style"]=!0,u["border-right-width"]=!0,u["border-spacing"]=!0,u["border-style"]=!0,u["border-top"]=!0,u["border-top-color"]=!0,u["border-top-left-radius"]=!0,u["border-top-right-radius"]=!0,u["border-top-style"]=!0,u["border-top-width"]=!0,u["border-width"]=!0,u.bottom=!1,u["box-decoration-break"]=!0,u["box-shadow"]=!0,u["box-sizing"]=!0,u["box-snap"]=!0,u["box-suppress"]=!0,u["break-after"]=!0,u["break-before"]=!0,u["break-inside"]=!0,u["caption-side"]=!1,u.chains=!1,u.clear=!0,u.clip=!1,u["clip-path"]=!1,u["clip-rule"]=!1,u.color=!0,u["color-interpolation-filters"]=!0,u["column-count"]=!1,u["column-fill"]=!1,u["column-gap"]=!1,u["column-rule"]=!1,u["column-rule-color"]=!1,u["column-rule-style"]=!1,u["column-rule-width"]=!1,u["column-span"]=!1,u["column-width"]=!1,u.columns=!1,u.contain=!1,u.content=!1,u["counter-increment"]=!1,u["counter-reset"]=!1,u["counter-set"]=!1,u.crop=!1,u.cue=!1,u["cue-after"]=!1,u["cue-before"]=!1,u.cursor=!1,u.direction=!1,u.display=!0,u["display-inside"]=!0,u["display-list"]=!0,u["display-outside"]=!0,u["dominant-baseline"]=!1,u.elevation=!1,u["empty-cells"]=!1,u.filter=!1,u.flex=!1,u["flex-basis"]=!1,u["flex-direction"]=!1,u["flex-flow"]=!1,u["flex-grow"]=!1,u["flex-shrink"]=!1,u["flex-wrap"]=!1,u.float=!1,u["float-offset"]=!1,u["flood-color"]=!1,u["flood-opacity"]=!1,u["flow-from"]=!1,u["flow-into"]=!1,u.font=!0,u["font-family"]=!0,u["font-feature-settings"]=!0,u["font-kerning"]=!0,u["font-language-override"]=!0,u["font-size"]=!0,u["font-size-adjust"]=!0,u["font-stretch"]=!0,u["font-style"]=!0,u["font-synthesis"]=!0,u["font-variant"]=!0,u["font-variant-alternates"]=!0,u["font-variant-caps"]=!0,u["font-variant-east-asian"]=!0,u["font-variant-ligatures"]=!0,u["font-variant-numeric"]=!0,u["font-variant-position"]=!0,u["font-weight"]=!0,u.grid=!1,u["grid-area"]=!1,u["grid-auto-columns"]=!1,u["grid-auto-flow"]=!1,u["grid-auto-rows"]=!1,u["grid-column"]=!1,u["grid-column-end"]=!1,u["grid-column-start"]=!1,u["grid-row"]=!1,u["grid-row-end"]=!1,u["grid-row-start"]=!1,u["grid-template"]=!1,u["grid-template-areas"]=!1,u["grid-template-columns"]=!1,u["grid-template-rows"]=!1,u["hanging-punctuation"]=!1,u.height=!0,u.hyphens=!1,u.icon=!1,u["image-orientation"]=!1,u["image-resolution"]=!1,u["ime-mode"]=!1,u["initial-letters"]=!1,u["inline-box-align"]=!1,u["justify-content"]=!1,u["justify-items"]=!1,u["justify-self"]=!1,u.left=!1,u["letter-spacing"]=!0,u["lighting-color"]=!0,u["line-box-contain"]=!1,u["line-break"]=!1,u["line-grid"]=!1,u["line-height"]=!1,u["line-snap"]=!1,u["line-stacking"]=!1,u["line-stacking-ruby"]=!1,u["line-stacking-shift"]=!1,u["line-stacking-strategy"]=!1,u["list-style"]=!0,u["list-style-image"]=!0,u["list-style-position"]=!0,u["list-style-type"]=!0,u.margin=!0,u["margin-bottom"]=!0,u["margin-left"]=!0,u["margin-right"]=!0,u["margin-top"]=!0,u["marker-offset"]=!1,u["marker-side"]=!1,u.marks=!1,u.mask=!1,u["mask-box"]=!1,u["mask-box-outset"]=!1,u["mask-box-repeat"]=!1,u["mask-box-slice"]=!1,u["mask-box-source"]=!1,u["mask-box-width"]=!1,u["mask-clip"]=!1,u["mask-image"]=!1,u["mask-origin"]=!1,u["mask-position"]=!1,u["mask-repeat"]=!1,u["mask-size"]=!1,u["mask-source-type"]=!1,u["mask-type"]=!1,u["max-height"]=!0,u["max-lines"]=!1,u["max-width"]=!0,u["min-height"]=!0,u["min-width"]=!0,u["move-to"]=!1,u["nav-down"]=!1,u["nav-index"]=!1,u["nav-left"]=!1,u["nav-right"]=!1,u["nav-up"]=!1,u["object-fit"]=!1,u["object-position"]=!1,u.opacity=!1,u.order=!1,u.orphans=!1,u.outline=!1,u["outline-color"]=!1,u["outline-offset"]=!1,u["outline-style"]=!1,u["outline-width"]=!1,u.overflow=!1,u["overflow-wrap"]=!1,u["overflow-x"]=!1,u["overflow-y"]=!1,u.padding=!0,u["padding-bottom"]=!0,u["padding-left"]=!0,u["padding-right"]=!0,u["padding-top"]=!0,u.page=!1,u["page-break-after"]=!1,u["page-break-before"]=!1,u["page-break-inside"]=!1,u["page-policy"]=!1,u.pause=!1,u["pause-after"]=!1,u["pause-before"]=!1,u.perspective=!1,u["perspective-origin"]=!1,u.pitch=!1,u["pitch-range"]=!1,u["play-during"]=!1,u.position=!1,u["presentation-level"]=!1,u.quotes=!1,u["region-fragment"]=!1,u.resize=!1,u.rest=!1,u["rest-after"]=!1,u["rest-before"]=!1,u.richness=!1,u.right=!1,u.rotation=!1,u["rotation-point"]=!1,u["ruby-align"]=!1,u["ruby-merge"]=!1,u["ruby-position"]=!1,u["shape-image-threshold"]=!1,u["shape-outside"]=!1,u["shape-margin"]=!1,u.size=!1,u.speak=!1,u["speak-as"]=!1,u["speak-header"]=!1,u["speak-numeral"]=!1,u["speak-punctuation"]=!1,u["speech-rate"]=!1,u.stress=!1,u["string-set"]=!1,u["tab-size"]=!1,u["table-layout"]=!1,u["text-align"]=!0,u["text-align-last"]=!0,u["text-combine-upright"]=!0,u["text-decoration"]=!0,u["text-decoration-color"]=!0,u["text-decoration-line"]=!0,u["text-decoration-skip"]=!0,u["text-decoration-style"]=!0,u["text-emphasis"]=!0,u["text-emphasis-color"]=!0,u["text-emphasis-position"]=!0,u["text-emphasis-style"]=!0,u["text-height"]=!0,u["text-indent"]=!0,u["text-justify"]=!0,u["text-orientation"]=!0,u["text-overflow"]=!0,u["text-shadow"]=!0,u["text-space-collapse"]=!0,u["text-transform"]=!0,u["text-underline-position"]=!0,u["text-wrap"]=!0,u.top=!1,u.transform=!1,u["transform-origin"]=!1,u["transform-style"]=!1,u.transition=!1,u["transition-delay"]=!1,u["transition-duration"]=!1,u["transition-property"]=!1,u["transition-timing-function"]=!1,u["unicode-bidi"]=!1,u["vertical-align"]=!1,u.visibility=!1,u["voice-balance"]=!1,u["voice-duration"]=!1,u["voice-family"]=!1,u["voice-pitch"]=!1,u["voice-range"]=!1,u["voice-rate"]=!1,u["voice-stress"]=!1,u["voice-volume"]=!1,u.volume=!1,u["white-space"]=!1,u.widows=!1,u.width=!0,u["will-change"]=!1,u["word-break"]=!0,u["word-spacing"]=!0,u["word-wrap"]=!0,u["wrap-flow"]=!1,u["wrap-through"]=!1,u["writing-mode"]=!1,u["z-index"]=!1,u}function i(u,f,p){}function l(u,f,p){}var s=/javascript\s*\:/img;function m(u,f){return s.test(f)?"":f}g.whiteList=t(),g.getDefaultWhiteList=t,g.onAttr=i,g.onIgnoreAttr=l,g.safeAttrValue=m},56018:(J,g,t)=>{var i=t(47043),l=t(23473);function s(u,f){var p=new l(f);return p.process(u)}g=J.exports=s,g.FilterCSS=l;for(var m in i)g[m]=i[m];typeof window<"u"&&(window.filterCSS=J.exports)},25323:(J,g,t)=>{var i=t(91100);function l(s,m){s=i.trimRight(s),s[s.length-1]!==";"&&(s+=";");var u=s.length,f=!1,p=0,v=0,h="";function d(){if(!f){var w=i.trim(s.slice(p,v)),S=w.indexOf(":");if(S!==-1){var O=i.trim(w.slice(0,S)),R=i.trim(w.slice(S+1));if(O){var M=m(p,h.length,O,R,w);M&&(h+=M+"; ")}}}p=v+1}for(;v<u;v++){var b=s[v];if(b==="/"&&s[v+1]==="*"){var y=s.indexOf("*/",v+2);if(y===-1)break;v=y+1,p=v+1,f=!1}else b==="("?f=!0:b===")"?f=!1:b===";"?f||d():b===` `&&d()}return i.trim(h)}J.exports=l},91100:J=>{J.exports={indexOf:function(g,t){var i,l;if(Array.prototype.indexOf)return g.indexOf(t);for(i=0,l=g.length;i<l;i++)if(g[i]===t)return i;return-1},forEach:function(g,t,i){var l,s;if(Array.prototype.forEach)return g.forEach(t,i);for(l=0,s=g.length;l<s;l++)t.call(i,g[l],l,g)},trim:function(g){return String.prototype.trim?g.trim():g.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(g){return String.prototype.trimRight?g.trimRight():g.replace(/(\s*$)/g,"")}}},43106:(J,g,t)=>{"use strict";t.r(g),t.d(g,{arc:()=>fe,area:()=>V,areaRadial:()=>Ee,curveBasis:()=>ie,curveBasisClosed:()=>z,curveBasisOpen:()=>Qe,curveBundle:()=>nn,curveCardinal:()=>$t,curveCardinalClosed:()=>Ct,curveCardinalOpen:()=>Wn,curveCatmullRom:()=>Xe,curveCatmullRomClosed:()=>Qt,curveCatmullRomOpen:()=>hn,curveLinear:()=>ce,curveLinearClosed:()=>an,curveMonotoneX:()=>yi,curveMonotoneY:()=>jr,curveNatural:()=>ri,curveStep:()=>Si,curveStepAfter:()=>xi,curveStepBefore:()=>Kr,line:()=>H,lineRadial:()=>Ae,linkHorizontal:()=>Y,linkRadial:()=>ke,linkVertical:()=>le,pie:()=>Re,pointRadial:()=>xe,radialArea:()=>Ee,radialLine:()=>Ae,stack:()=>lo,stackOffsetDiverging:()=>un,stackOffsetExpand:()=>Gr,stackOffsetNone:()=>Ai,stackOffsetSilhouette:()=>qn,stackOffsetWiggle:()=>kn,stackOrderAppearance:()=>St,stackOrderAscending:()=>An,stackOrderDescending:()=>_i,stackOrderInsideOut:()=>Sn,stackOrderNone:()=>Pi,stackOrderReverse:()=>ir,symbol:()=>ct,symbolCircle:()=>Ye,symbolCross:()=>ft,symbolDiamond:()=>Ke,symbolSquare:()=>K,symbolStar:()=>I,symbolTriangle:()=>De,symbolWye:()=>We,symbols:()=>_t});var i=Math.PI,l=2*i,s=1e-6,m=l-s;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function f(){return new u}u.prototype=f.prototype={constructor:u,moveTo:function(mt,fn){this._+="M"+(this._x0=this._x1=+mt)+","+(this._y0=this._y1=+fn)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(mt,fn){this._+="L"+(this._x1=+mt)+","+(this._y1=+fn)},quadraticCurveTo:function(mt,fn,gt,tn){this._+="Q"+ +mt+","+ +fn+","+(this._x1=+gt)+","+(this._y1=+tn)},bezierCurveTo:function(mt,fn,gt,tn,Vn,Ur){this._+="C"+ +mt+","+ +fn+","+ +gt+","+ +tn+","+(this._x1=+Vn)+","+(this._y1=+Ur)},arcTo:function(mt,fn,gt,tn,Vn){mt=+mt,fn=+fn,gt=+gt,tn=+tn,Vn=+Vn;var Ur=this._x1,$r=this._y1,Pr=gt-mt,zr=tn-fn,gi=Ur-mt,$i=$r-fn,eo=gi*gi+$i*$i;if(Vn<0)throw new Error("negative radius: "+Vn);if(this._x1===null)this._+="M"+(this._x1=mt)+","+(this._y1=fn);else if(eo>s)if(!(Math.abs($i*Pr-zr*gi)>s)||!Vn)this._+="L"+(this._x1=mt)+","+(this._y1=fn);else{var ki=gt-Ur,so=tn-$r,Ho=Pr*Pr+zr*zr,ra=ki*ki+so*so,So=Math.sqrt(Ho),gr=Math.sqrt(eo),di=Vn*Math.tan((i-Math.acos((Ho+eo-ra)/(2*So*gr)))/2),Vi=di/gr,Ro=di/So;Math.abs(Vi-1)>s&&(this._+="L"+(mt+Vi*gi)+","+(fn+Vi*$i)),this._+="A"+Vn+","+Vn+",0,0,"+ +($i*ki>gi*so)+","+(this._x1=mt+Ro*Pr)+","+(this._y1=fn+Ro*zr)}},arc:function(mt,fn,gt,tn,Vn,Ur){mt=+mt,fn=+fn,gt=+gt,Ur=!!Ur;var $r=gt*Math.cos(tn),Pr=gt*Math.sin(tn),zr=mt+$r,gi=fn+Pr,$i=1^Ur,eo=Ur?tn-Vn:Vn-tn;if(gt<0)throw new Error("negative radius: "+gt);this._x1===null?this._+="M"+zr+","+gi:(Math.abs(this._x1-zr)>s||Math.abs(this._y1-gi)>s)&&(this._+="L"+zr+","+gi),gt&&(eo<0&&(eo=eo%l+l),eo>m?this._+="A"+gt+","+gt+",0,1,"+$i+","+(mt-$r)+","+(fn-Pr)+"A"+gt+","+gt+",0,1,"+$i+","+(this._x1=zr)+","+(this._y1=gi):eo>s&&(this._+="A"+gt+","+gt+",0,"+ +(eo>=i)+","+$i+","+(this._x1=mt+gt*Math.cos(Vn))+","+(this._y1=fn+gt*Math.sin(Vn))))},rect:function(mt,fn,gt,tn){this._+="M"+(this._x0=this._x1=+mt)+","+(this._y0=this._y1=+fn)+"h"+ +gt+"v"+ +tn+"h"+-gt+"Z"},toString:function(){return this._}};const p=f;function v(mt){return function(){return mt}}var h=Math.abs,d=Math.atan2,b=Math.cos,y=Math.max,w=Math.min,S=Math.sin,O=Math.sqrt,R=1e-12,M=Math.PI,D=M/2,P=2*M;function T(mt){return mt>1?0:mt<-1?M:Math.acos(mt)}function A(mt){return mt>=1?D:mt<=-1?-D:Math.asin(mt)}function j(mt){return mt.innerRadius}function ae(mt){return mt.outerRadius}function _(mt){return mt.startAngle}function N(mt){return mt.endAngle}function W(mt){return mt&&mt.padAngle}function he(mt,fn,gt,tn,Vn,Ur,$r,Pr){var zr=gt-mt,gi=tn-fn,$i=$r-Vn,eo=Pr-Ur,ki=eo*zr-$i*gi;if(!(ki*ki<R))return ki=($i*(fn-Ur)-eo*(mt-Vn))/ki,[mt+ki*zr,fn+ki*gi]}function me(mt,fn,gt,tn,Vn,Ur,$r){var Pr=mt-gt,zr=fn-tn,gi=($r?Ur:-Ur)/O(Pr*Pr+zr*zr),$i=gi*zr,eo=-gi*Pr,ki=mt+$i,so=fn+eo,Ho=gt+$i,ra=tn+eo,So=(ki+Ho)/2,gr=(so+ra)/2,di=Ho-ki,Vi=ra-so,Ro=di*di+Vi*Vi,na=Vn-Ur,ta=ki*ra-Ho*so,aa=(Vi<0?-1:1)*O(y(0,na*na*Ro-ta*ta)),vi=(ta*Vi-di*aa)/Ro,to=(-ta*di-Vi*aa)/Ro,$o=(ta*Vi+di*aa)/Ro,ja=(-ta*di+Vi*aa)/Ro,hs=vi-So,ro=to-gr,as=$o-So,rn=ja-gr;return hs*hs+ro*ro>as*as+rn*rn&&(vi=$o,to=ja),{cx:vi,cy:to,x01:-$i,y01:-eo,x11:vi*(Vn/na-1),y11:to*(Vn/na-1)}}function fe(){var mt=j,fn=ae,gt=v(0),tn=null,Vn=_,Ur=N,$r=W,Pr=null;function zr(){var gi,$i,eo=+mt.apply(this,arguments),ki=+fn.apply(this,arguments),so=Vn.apply(this,arguments)-D,Ho=Ur.apply(this,arguments)-D,ra=h(Ho-so),So=Ho>so;if(Pr||(Pr=gi=p()),ki<eo&&($i=ki,ki=eo,eo=$i),!(ki>R))Pr.moveTo(0,0);else if(ra>P-R)Pr.moveTo(ki*b(so),ki*S(so)),Pr.arc(0,0,ki,so,Ho,!So),eo>R&&(Pr.moveTo(eo*b(Ho),eo*S(Ho)),Pr.arc(0,0,eo,Ho,so,So));else{var gr=so,di=Ho,Vi=so,Ro=Ho,na=ra,ta=ra,aa=$r.apply(this,arguments)/2,vi=aa>R&&(tn?+tn.apply(this,arguments):O(eo*eo+ki*ki)),to=w(h(ki-eo)/2,+gt.apply(this,arguments)),$o=to,ja=to,hs,ro;if(vi>R){var as=A(vi/eo*S(aa)),rn=A(vi/ki*S(aa));(na-=as*2)>R?(as*=So?1:-1,Vi+=as,Ro-=as):(na=0,Vi=Ro=(so+Ho)/2),(ta-=rn*2)>R?(rn*=So?1:-1,gr+=rn,di-=rn):(ta=0,gr=di=(so+Ho)/2)}var Dr=ki*b(gr),Lr=ki*S(gr),li=eo*b(Ro),Zi=eo*S(Ro);if(to>R){var Di=ki*b(di),wo=ki*S(di),Go=eo*b(Vi),Ko=eo*S(Vi),Ie;if(ra<M&&(Ie=he(Dr,Lr,Go,Ko,Di,wo,li,Zi))){var yt=Dr-Ie[0],on=Lr-Ie[1],_n=Di-Ie[0],er=wo-Ie[1],or=1/S(T((yt*_n+on*er)/(O(yt*yt+on*on)*O(_n*_n+er*er)))/2),Er=O(Ie[0]*Ie[0]+Ie[1]*Ie[1]);$o=w(to,(eo-Er)/(or-1)),ja=w(to,(ki-Er)/(or+1))}}ta>R?ja>R?(hs=me(Go,Ko,Dr,Lr,ki,ja,So),ro=me(Di,wo,li,Zi,ki,ja,So),Pr.moveTo(hs.cx+hs.x01,hs.cy+hs.y01),ja<to?Pr.arc(hs.cx,hs.cy,ja,d(hs.y01,hs.x01),d(ro.y01,ro.x01),!So):(Pr.arc(hs.cx,hs.cy,ja,d(hs.y01,hs.x01),d(hs.y11,hs.x11),!So),Pr.arc(0,0,ki,d(hs.cy+hs.y11,hs.cx+hs.x11),d(ro.cy+ro.y11,ro.cx+ro.x11),!So),Pr.arc(ro.cx,ro.cy,ja,d(ro.y11,ro.x11),d(ro.y01,ro.x01),!So))):(Pr.moveTo(Dr,Lr),Pr.arc(0,0,ki,gr,di,!So)):Pr.moveTo(Dr,Lr),!(eo>R)||!(na>R)?Pr.lineTo(li,Zi):$o>R?(hs=me(li,Zi,Di,wo,eo,-$o,So),ro=me(Dr,Lr,Go,Ko,eo,-$o,So),Pr.lineTo(hs.cx+hs.x01,hs.cy+hs.y01),$o<to?Pr.arc(hs.cx,hs.cy,$o,d(hs.y01,hs.x01),d(ro.y01,ro.x01),!So):(Pr.arc(hs.cx,hs.cy,$o,d(hs.y01,hs.x01),d(hs.y11,hs.x11),!So),Pr.arc(0,0,eo,d(hs.cy+hs.y11,hs.cx+hs.x11),d(ro.cy+ro.y11,ro.cx+ro.x11),So),Pr.arc(ro.cx,ro.cy,$o,d(ro.y11,ro.x11),d(ro.y01,ro.x01),!So))):Pr.arc(0,0,eo,Ro,Vi,So)}if(Pr.closePath(),gi)return Pr=null,gi+""||null}return zr.centroid=function(){var gi=(+mt.apply(this,arguments)+ +fn.apply(this,arguments))/2,$i=(+Vn.apply(this,arguments)+ +Ur.apply(this,arguments))/2-M/2;return[b($i)*gi,S($i)*gi]},zr.innerRadius=function(gi){return arguments.length?(mt=typeof gi=="function"?gi:v(+gi),zr):mt},zr.outerRadius=function(gi){return arguments.length?(fn=typeof gi=="function"?gi:v(+gi),zr):fn},zr.cornerRadius=function(gi){return arguments.length?(gt=typeof gi=="function"?gi:v(+gi),zr):gt},zr.padRadius=function(gi){return arguments.length?(tn=gi==null?null:typeof gi=="function"?gi:v(+gi),zr):tn},zr.startAngle=function(gi){return arguments.length?(Vn=typeof gi=="function"?gi:v(+gi),zr):Vn},zr.endAngle=function(gi){return arguments.length?(Ur=typeof gi=="function"?gi:v(+gi),zr):Ur},zr.padAngle=function(gi){return arguments.length?($r=typeof gi=="function"?gi:v(+gi),zr):$r},zr.context=function(gi){return arguments.length?(Pr=gi??null,zr):Pr},zr}function ve(mt){this._context=mt}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1,this._line?this._context.lineTo(mt,fn):this._context.moveTo(mt,fn);break;case 1:this._point=2;default:this._context.lineTo(mt,fn);break}}};function ce(mt){return new ve(mt)}function oe(mt){return mt[0]}function re(mt){return mt[1]}function H(){var mt=oe,fn=re,gt=v(!0),tn=null,Vn=ce,Ur=null;function $r(Pr){var zr,gi=Pr.length,$i,eo=!1,ki;for(tn==null&&(Ur=Vn(ki=p())),zr=0;zr<=gi;++zr)!(zr<gi&>($i=Pr[zr],zr,Pr))===eo&&((eo=!eo)?Ur.lineStart():Ur.lineEnd()),eo&&Ur.point(+mt($i,zr,Pr),+fn($i,zr,Pr));if(ki)return Ur=null,ki+""||null}return $r.x=function(Pr){return arguments.length?(mt=typeof Pr=="function"?Pr:v(+Pr),$r):mt},$r.y=function(Pr){return arguments.length?(fn=typeof Pr=="function"?Pr:v(+Pr),$r):fn},$r.defined=function(Pr){return arguments.length?(gt=typeof Pr=="function"?Pr:v(!!Pr),$r):gt},$r.curve=function(Pr){return arguments.length?(Vn=Pr,tn!=null&&(Ur=Vn(tn)),$r):Vn},$r.context=function(Pr){return arguments.length?(Pr==null?tn=Ur=null:Ur=Vn(tn=Pr),$r):tn},$r}function V(){var mt=oe,fn=null,gt=v(0),tn=re,Vn=v(!0),Ur=null,$r=ce,Pr=null;function zr($i){var eo,ki,so,Ho=$i.length,ra,So=!1,gr,di=new Array(Ho),Vi=new Array(Ho);for(Ur==null&&(Pr=$r(gr=p())),eo=0;eo<=Ho;++eo){if(!(eo<Ho&&Vn(ra=$i[eo],eo,$i))===So)if(So=!So)ki=eo,Pr.areaStart(),Pr.lineStart();else{for(Pr.lineEnd(),Pr.lineStart(),so=eo-1;so>=ki;--so)Pr.point(di[so],Vi[so]);Pr.lineEnd(),Pr.areaEnd()}So&&(di[eo]=+mt(ra,eo,$i),Vi[eo]=+gt(ra,eo,$i),Pr.point(fn?+fn(ra,eo,$i):di[eo],tn?+tn(ra,eo,$i):Vi[eo]))}if(gr)return Pr=null,gr+""||null}function gi(){return H().defined(Vn).curve($r).context(Ur)}return zr.x=function($i){return arguments.length?(mt=typeof $i=="function"?$i:v(+$i),fn=null,zr):mt},zr.x0=function($i){return arguments.length?(mt=typeof $i=="function"?$i:v(+$i),zr):mt},zr.x1=function($i){return arguments.length?(fn=$i==null?null:typeof $i=="function"?$i:v(+$i),zr):fn},zr.y=function($i){return arguments.length?(gt=typeof $i=="function"?$i:v(+$i),tn=null,zr):gt},zr.y0=function($i){return arguments.length?(gt=typeof $i=="function"?$i:v(+$i),zr):gt},zr.y1=function($i){return arguments.length?(tn=$i==null?null:typeof $i=="function"?$i:v(+$i),zr):tn},zr.lineX0=zr.lineY0=function(){return gi().x(mt).y(gt)},zr.lineY1=function(){return gi().x(mt).y(tn)},zr.lineX1=function(){return gi().x(fn).y(gt)},zr.defined=function($i){return arguments.length?(Vn=typeof $i=="function"?$i:v(!!$i),zr):Vn},zr.curve=function($i){return arguments.length?($r=$i,Ur!=null&&(Pr=$r(Ur)),zr):$r},zr.context=function($i){return arguments.length?($i==null?Ur=Pr=null:Pr=$r(Ur=$i),zr):Ur},zr}function Q(mt,fn){return fn<mt?-1:fn>mt?1:fn>=mt?0:NaN}function Te(mt){return mt}function Re(){var mt=Te,fn=Q,gt=null,tn=v(0),Vn=v(P),Ur=v(0);function $r(Pr){var zr,gi=Pr.length,$i,eo,ki=0,so=new Array(gi),Ho=new Array(gi),ra=+tn.apply(this,arguments),So=Math.min(P,Math.max(-P,Vn.apply(this,arguments)-ra)),gr,di=Math.min(Math.abs(So)/gi,Ur.apply(this,arguments)),Vi=di*(So<0?-1:1),Ro;for(zr=0;zr<gi;++zr)(Ro=Ho[so[zr]=zr]=+mt(Pr[zr],zr,Pr))>0&&(ki+=Ro);for(fn!=null?so.sort(function(na,ta){return fn(Ho[na],Ho[ta])}):gt!=null&&so.sort(function(na,ta){return gt(Pr[na],Pr[ta])}),zr=0,eo=ki?(So-gi*Vi)/ki:0;zr<gi;++zr,ra=gr)$i=so[zr],Ro=Ho[$i],gr=ra+(Ro>0?Ro*eo:0)+Vi,Ho[$i]={data:Pr[$i],index:zr,value:Ro,startAngle:ra,endAngle:gr,padAngle:di};return Ho}return $r.value=function(Pr){return arguments.length?(mt=typeof Pr=="function"?Pr:v(+Pr),$r):mt},$r.sortValues=function(Pr){return arguments.length?(fn=Pr,gt=null,$r):fn},$r.sort=function(Pr){return arguments.length?(gt=Pr,fn=null,$r):gt},$r.startAngle=function(Pr){return arguments.length?(tn=typeof Pr=="function"?Pr:v(+Pr),$r):tn},$r.endAngle=function(Pr){return arguments.length?(Vn=typeof Pr=="function"?Pr:v(+Pr),$r):Vn},$r.padAngle=function(Pr){return arguments.length?(Ur=typeof Pr=="function"?Pr:v(+Pr),$r):Ur},$r}var ne=ye(ce);function pe(mt){this._curve=mt}pe.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(mt,fn){this._curve.point(fn*Math.sin(mt),fn*-Math.cos(mt))}};function ye(mt){function fn(gt){return new pe(mt(gt))}return fn._curve=mt,fn}function Se(mt){var fn=mt.curve;return mt.angle=mt.x,delete mt.x,mt.radius=mt.y,delete mt.y,mt.curve=function(gt){return arguments.length?fn(ye(gt)):fn()._curve},mt}function Ae(){return Se(H().curve(ne))}function Ee(){var mt=V().curve(ne),fn=mt.curve,gt=mt.lineX0,tn=mt.lineX1,Vn=mt.lineY0,Ur=mt.lineY1;return mt.angle=mt.x,delete mt.x,mt.startAngle=mt.x0,delete mt.x0,mt.endAngle=mt.x1,delete mt.x1,mt.radius=mt.y,delete mt.y,mt.innerRadius=mt.y0,delete mt.y0,mt.outerRadius=mt.y1,delete mt.y1,mt.lineStartAngle=function(){return Se(gt())},delete mt.lineX0,mt.lineEndAngle=function(){return Se(tn())},delete mt.lineX1,mt.lineInnerRadius=function(){return Se(Vn())},delete mt.lineY0,mt.lineOuterRadius=function(){return Se(Ur())},delete mt.lineY1,mt.curve=function($r){return arguments.length?fn(ye($r)):fn()._curve},mt}function xe(mt,fn){return[(fn=+fn)*Math.cos(mt-=Math.PI/2),fn*Math.sin(mt)]}var nt=Array.prototype.slice;function Tt(mt){return mt.source}function pt(mt){return mt.target}function Rt(mt){var fn=Tt,gt=pt,tn=oe,Vn=re,Ur=null;function $r(){var Pr,zr=nt.call(arguments),gi=fn.apply(this,zr),$i=gt.apply(this,zr);if(Ur||(Ur=Pr=p()),mt(Ur,+tn.apply(this,(zr[0]=gi,zr)),+Vn.apply(this,zr),+tn.apply(this,(zr[0]=$i,zr)),+Vn.apply(this,zr)),Pr)return Ur=null,Pr+""||null}return $r.source=function(Pr){return arguments.length?(fn=Pr,$r):fn},$r.target=function(Pr){return arguments.length?(gt=Pr,$r):gt},$r.x=function(Pr){return arguments.length?(tn=typeof Pr=="function"?Pr:v(+Pr),$r):tn},$r.y=function(Pr){return arguments.length?(Vn=typeof Pr=="function"?Pr:v(+Pr),$r):Vn},$r.context=function(Pr){return arguments.length?(Ur=Pr??null,$r):Ur},$r}function tt(mt,fn,gt,tn,Vn){mt.moveTo(fn,gt),mt.bezierCurveTo(fn=(fn+tn)/2,gt,fn,Vn,tn,Vn)}function U(mt,fn,gt,tn,Vn){mt.moveTo(fn,gt),mt.bezierCurveTo(fn,gt=(gt+Vn)/2,tn,gt,tn,Vn)}function F(mt,fn,gt,tn,Vn){var Ur=xe(fn,gt),$r=xe(fn,gt=(gt+Vn)/2),Pr=xe(tn,gt),zr=xe(tn,Vn);mt.moveTo(Ur[0],Ur[1]),mt.bezierCurveTo($r[0],$r[1],Pr[0],Pr[1],zr[0],zr[1])}function Y(){return Rt(tt)}function le(){return Rt(U)}function ke(){var mt=Rt(F);return mt.angle=mt.x,delete mt.x,mt.radius=mt.y,delete mt.y,mt}const Ye={draw:function(mt,fn){var gt=Math.sqrt(fn/M);mt.moveTo(gt,0),mt.arc(0,0,gt,0,P)}},ft={draw:function(mt,fn){var gt=Math.sqrt(fn/5)/2;mt.moveTo(-3*gt,-gt),mt.lineTo(-gt,-gt),mt.lineTo(-gt,-3*gt),mt.lineTo(gt,-3*gt),mt.lineTo(gt,-gt),mt.lineTo(3*gt,-gt),mt.lineTo(3*gt,gt),mt.lineTo(gt,gt),mt.lineTo(gt,3*gt),mt.lineTo(-gt,3*gt),mt.lineTo(-gt,gt),mt.lineTo(-3*gt,gt),mt.closePath()}};var wt=Math.sqrt(1/3),Ut=wt*2;const Ke={draw:function(mt,fn){var gt=Math.sqrt(fn/Ut),tn=gt*wt;mt.moveTo(0,-gt),mt.lineTo(tn,0),mt.lineTo(0,gt),mt.lineTo(-tn,0),mt.closePath()}};var it=.8908130915292852,At=Math.sin(M/10)/Math.sin(7*M/10),et=Math.sin(P/10)*At,ee=-Math.cos(P/10)*At;const I={draw:function(mt,fn){var gt=Math.sqrt(fn*it),tn=et*gt,Vn=ee*gt;mt.moveTo(0,-gt),mt.lineTo(tn,Vn);for(var Ur=1;Ur<5;++Ur){var $r=P*Ur/5,Pr=Math.cos($r),zr=Math.sin($r);mt.lineTo(zr*gt,-Pr*gt),mt.lineTo(Pr*tn-zr*Vn,zr*tn+Pr*Vn)}mt.closePath()}},K={draw:function(mt,fn){var gt=Math.sqrt(fn),tn=-gt/2;mt.rect(tn,tn,gt,gt)}};var ue=Math.sqrt(3);const De={draw:function(mt,fn){var gt=-Math.sqrt(fn/(ue*3));mt.moveTo(0,gt*2),mt.lineTo(-ue*gt,-gt),mt.lineTo(ue*gt,-gt),mt.closePath()}};var He=-.5,Fe=Math.sqrt(3)/2,ze=1/Math.sqrt(12),qe=(ze/2+1)*3;const We={draw:function(mt,fn){var gt=Math.sqrt(fn/qe),tn=gt/2,Vn=gt*ze,Ur=tn,$r=gt*ze+gt,Pr=-Ur,zr=$r;mt.moveTo(tn,Vn),mt.lineTo(Ur,$r),mt.lineTo(Pr,zr),mt.lineTo(He*tn-Fe*Vn,Fe*tn+He*Vn),mt.lineTo(He*Ur-Fe*$r,Fe*Ur+He*$r),mt.lineTo(He*Pr-Fe*zr,Fe*Pr+He*zr),mt.lineTo(He*tn+Fe*Vn,He*Vn-Fe*tn),mt.lineTo(He*Ur+Fe*$r,He*$r-Fe*Ur),mt.lineTo(He*Pr+Fe*zr,He*zr-Fe*Pr),mt.closePath()}};var _t=[Ye,ft,Ke,K,I,De,We];function ct(){var mt=v(Ye),fn=v(64),gt=null;function tn(){var Vn;if(gt||(gt=Vn=p()),mt.apply(this,arguments).draw(gt,+fn.apply(this,arguments)),Vn)return gt=null,Vn+""||null}return tn.type=function(Vn){return arguments.length?(mt=typeof Vn=="function"?Vn:v(Vn),tn):mt},tn.size=function(Vn){return arguments.length?(fn=typeof Vn=="function"?Vn:v(+Vn),tn):fn},tn.context=function(Vn){return arguments.length?(gt=Vn??null,tn):gt},tn}function Ge(){}function st(mt,fn,gt){mt._context.bezierCurveTo((2*mt._x0+mt._x1)/3,(2*mt._y0+mt._y1)/3,(mt._x0+2*mt._x1)/3,(mt._y0+2*mt._y1)/3,(mt._x0+4*mt._x1+fn)/6,(mt._y0+4*mt._y1+gt)/6)}function Me(mt){this._context=mt}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:st(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1,this._line?this._context.lineTo(mt,fn):this._context.moveTo(mt,fn);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:st(this,mt,fn);break}this._x0=this._x1,this._x1=mt,this._y0=this._y1,this._y1=fn}};function ie(mt){return new Me(mt)}function ge(mt){this._context=mt}ge.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1,this._x2=mt,this._y2=fn;break;case 1:this._point=2,this._x3=mt,this._y3=fn;break;case 2:this._point=3,this._x4=mt,this._y4=fn,this._context.moveTo((this._x0+4*this._x1+mt)/6,(this._y0+4*this._y1+fn)/6);break;default:st(this,mt,fn);break}this._x0=this._x1,this._x1=mt,this._y0=this._y1,this._y1=fn}};function z(mt){return new ge(mt)}function be(mt){this._context=mt}be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var gt=(this._x0+4*this._x1+mt)/6,tn=(this._y0+4*this._y1+fn)/6;this._line?this._context.lineTo(gt,tn):this._context.moveTo(gt,tn);break;case 3:this._point=4;default:st(this,mt,fn);break}this._x0=this._x1,this._x1=mt,this._y0=this._y1,this._y1=fn}};function Qe(mt){return new be(mt)}function Bt(mt,fn){this._basis=new Me(mt),this._beta=fn}Bt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var mt=this._x,fn=this._y,gt=mt.length-1;if(gt>0)for(var tn=mt[0],Vn=fn[0],Ur=mt[gt]-tn,$r=fn[gt]-Vn,Pr=-1,zr;++Pr<=gt;)zr=Pr/gt,this._basis.point(this._beta*mt[Pr]+(1-this._beta)*(tn+zr*Ur),this._beta*fn[Pr]+(1-this._beta)*(Vn+zr*$r));this._x=this._y=null,this._basis.lineEnd()},point:function(mt,fn){this._x.push(+mt),this._y.push(+fn)}};const nn=function mt(fn){function gt(tn){return fn===1?new Me(tn):new Bt(tn,fn)}return gt.beta=function(tn){return mt(+tn)},gt}(.85);function bt(mt,fn,gt){mt._context.bezierCurveTo(mt._x1+mt._k*(mt._x2-mt._x0),mt._y1+mt._k*(mt._y2-mt._y0),mt._x2+mt._k*(mt._x1-fn),mt._y2+mt._k*(mt._y1-gt),mt._x2,mt._y2)}function at(mt,fn){this._context=mt,this._k=(1-fn)/6}at.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bt(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1,this._line?this._context.lineTo(mt,fn):this._context.moveTo(mt,fn);break;case 1:this._point=2,this._x1=mt,this._y1=fn;break;case 2:this._point=3;default:bt(this,mt,fn);break}this._x0=this._x1,this._x1=this._x2,this._x2=mt,this._y0=this._y1,this._y1=this._y2,this._y2=fn}};const $t=function mt(fn){function gt(tn){return new at(tn,fn)}return gt.tension=function(tn){return mt(+tn)},gt}(0);function On(mt,fn){this._context=mt,this._k=(1-fn)/6}On.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1,this._x3=mt,this._y3=fn;break;case 1:this._point=2,this._context.moveTo(this._x4=mt,this._y4=fn);break;case 2:this._point=3,this._x5=mt,this._y5=fn;break;default:bt(this,mt,fn);break}this._x0=this._x1,this._x1=this._x2,this._x2=mt,this._y0=this._y1,this._y1=this._y2,this._y2=fn}};const Ct=function mt(fn){function gt(tn){return new On(tn,fn)}return gt.tension=function(tn){return mt(+tn)},gt}(0);function Zt(mt,fn){this._context=mt,this._k=(1-fn)/6}Zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bt(this,mt,fn);break}this._x0=this._x1,this._x1=this._x2,this._x2=mt,this._y0=this._y1,this._y1=this._y2,this._y2=fn}};const Wn=function mt(fn){function gt(tn){return new Zt(tn,fn)}return gt.tension=function(tn){return mt(+tn)},gt}(0);function Zn(mt,fn,gt){var tn=mt._x1,Vn=mt._y1,Ur=mt._x2,$r=mt._y2;if(mt._l01_a>R){var Pr=2*mt._l01_2a+3*mt._l01_a*mt._l12_a+mt._l12_2a,zr=3*mt._l01_a*(mt._l01_a+mt._l12_a);tn=(tn*Pr-mt._x0*mt._l12_2a+mt._x2*mt._l01_2a)/zr,Vn=(Vn*Pr-mt._y0*mt._l12_2a+mt._y2*mt._l01_2a)/zr}if(mt._l23_a>R){var gi=2*mt._l23_2a+3*mt._l23_a*mt._l12_a+mt._l12_2a,$i=3*mt._l23_a*(mt._l23_a+mt._l12_a);Ur=(Ur*gi+mt._x1*mt._l23_2a-fn*mt._l12_2a)/$i,$r=($r*gi+mt._y1*mt._l23_2a-gt*mt._l12_2a)/$i}mt._context.bezierCurveTo(tn,Vn,Ur,$r,mt._x2,mt._y2)}function xt(mt,fn){this._context=mt,this._alpha=fn}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){if(mt=+mt,fn=+fn,this._point){var gt=this._x2-mt,tn=this._y2-fn;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(gt*gt+tn*tn,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(mt,fn):this._context.moveTo(mt,fn);break;case 1:this._point=2;break;case 2:this._point=3;default:Zn(this,mt,fn);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=mt,this._y0=this._y1,this._y1=this._y2,this._y2=fn}};const Xe=function mt(fn){function gt(tn){return fn?new xt(tn,fn):new at(tn,0)}return gt.alpha=function(tn){return mt(+tn)},gt}(.5);function gn(mt,fn){this._context=mt,this._alpha=fn}gn.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(mt,fn){if(mt=+mt,fn=+fn,this._point){var gt=this._x2-mt,tn=this._y2-fn;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(gt*gt+tn*tn,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=mt,this._y3=fn;break;case 1:this._point=2,this._context.moveTo(this._x4=mt,this._y4=fn);break;case 2:this._point=3,this._x5=mt,this._y5=fn;break;default:Zn(this,mt,fn);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=mt,this._y0=this._y1,this._y1=this._y2,this._y2=fn}};const Qt=function mt(fn){function gt(tn){return fn?new gn(tn,fn):new On(tn,0)}return gt.alpha=function(tn){return mt(+tn)},gt}(.5);function Dt(mt,fn){this._context=mt,this._alpha=fn}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){if(mt=+mt,fn=+fn,this._point){var gt=this._x2-mt,tn=this._y2-fn;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(gt*gt+tn*tn,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zn(this,mt,fn);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=mt,this._y0=this._y1,this._y1=this._y2,this._y2=fn}};const hn=function mt(fn){function gt(tn){return fn?new Dt(tn,fn):new Zt(tn,0)}return gt.alpha=function(tn){return mt(+tn)},gt}(.5);function cn(mt){this._context=mt}cn.prototype={areaStart:Ge,areaEnd:Ge,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(mt,fn){mt=+mt,fn=+fn,this._point?this._context.lineTo(mt,fn):(this._point=1,this._context.moveTo(mt,fn))}};function an(mt){return new cn(mt)}function Or(mt){return mt<0?-1:1}function Ln(mt,fn,gt){var tn=mt._x1-mt._x0,Vn=fn-mt._x1,Ur=(mt._y1-mt._y0)/(tn||Vn<0&&-0),$r=(gt-mt._y1)/(Vn||tn<0&&-0),Pr=(Ur*Vn+$r*tn)/(tn+Vn);return(Or(Ur)+Or($r))*Math.min(Math.abs(Ur),Math.abs($r),.5*Math.abs(Pr))||0}function En(mt,fn){var gt=mt._x1-mt._x0;return gt?(3*(mt._y1-mt._y0)/gt-fn)/2:fn}function Gn(mt,fn,gt){var tn=mt._x0,Vn=mt._y0,Ur=mt._x1,$r=mt._y1,Pr=(Ur-tn)/3;mt._context.bezierCurveTo(tn+Pr,Vn+Pr*fn,Ur-Pr,$r-Pr*gt,Ur,$r)}function rr(mt){this._context=mt}rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gn(this,this._t0,En(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(mt,fn){var gt=NaN;if(mt=+mt,fn=+fn,!(mt===this._x1&&fn===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(mt,fn):this._context.moveTo(mt,fn);break;case 1:this._point=2;break;case 2:this._point=3,Gn(this,En(this,gt=Ln(this,mt,fn)),gt);break;default:Gn(this,this._t0,gt=Ln(this,mt,fn));break}this._x0=this._x1,this._x1=mt,this._y0=this._y1,this._y1=fn,this._t0=gt}}};function sr(mt){this._context=new pi(mt)}(sr.prototype=Object.create(rr.prototype)).point=function(mt,fn){rr.prototype.point.call(this,fn,mt)};function pi(mt){this._context=mt}pi.prototype={moveTo:function(mt,fn){this._context.moveTo(fn,mt)},closePath:function(){this._context.closePath()},lineTo:function(mt,fn){this._context.lineTo(fn,mt)},bezierCurveTo:function(mt,fn,gt,tn,Vn,Ur){this._context.bezierCurveTo(fn,mt,tn,gt,Ur,Vn)}};function yi(mt){return new rr(mt)}function jr(mt){return new sr(mt)}function ui(mt){this._context=mt}ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var mt=this._x,fn=this._y,gt=mt.length;if(gt)if(this._line?this._context.lineTo(mt[0],fn[0]):this._context.moveTo(mt[0],fn[0]),gt===2)this._context.lineTo(mt[1],fn[1]);else for(var tn=bi(mt),Vn=bi(fn),Ur=0,$r=1;$r<gt;++Ur,++$r)this._context.bezierCurveTo(tn[0][Ur],Vn[0][Ur],tn[1][Ur],Vn[1][Ur],mt[$r],fn[$r]);(this._line||this._line!==0&>===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(mt,fn){this._x.push(+mt),this._y.push(+fn)}};function bi(mt){var fn,gt=mt.length-1,tn,Vn=new Array(gt),Ur=new Array(gt),$r=new Array(gt);for(Vn[0]=0,Ur[0]=2,$r[0]=mt[0]+2*mt[1],fn=1;fn<gt-1;++fn)Vn[fn]=1,Ur[fn]=4,$r[fn]=4*mt[fn]+2*mt[fn+1];for(Vn[gt-1]=2,Ur[gt-1]=7,$r[gt-1]=8*mt[gt-1]+mt[gt],fn=1;fn<gt;++fn)tn=Vn[fn]/Ur[fn-1],Ur[fn]-=tn,$r[fn]-=tn*$r[fn-1];for(Vn[gt-1]=$r[gt-1]/Ur[gt-1],fn=gt-2;fn>=0;--fn)Vn[fn]=($r[fn]-Vn[fn+1])/Ur[fn];for(Ur[gt-1]=(mt[gt]+Vn[gt-1])/2,fn=0;fn<gt-1;++fn)Ur[fn]=2*mt[fn+1]-Vn[fn+1];return[Vn,Ur]}function ri(mt){return new ui(mt)}function hi(mt,fn){this._context=mt,this._t=fn}hi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(mt,fn){switch(mt=+mt,fn=+fn,this._point){case 0:this._point=1,this._line?this._context.lineTo(mt,fn):this._context.moveTo(mt,fn);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,fn),this._context.lineTo(mt,fn);else{var gt=this._x*(1-this._t)+mt*this._t;this._context.lineTo(gt,this._y),this._context.lineTo(gt,fn)}break}}this._x=mt,this._y=fn}};function Si(mt){return new hi(mt,.5)}function Kr(mt){return new hi(mt,0)}function xi(mt){return new hi(mt,1)}function Ai(mt,fn){if(($r=mt.length)>1)for(var gt=1,tn,Vn,Ur=mt[fn[0]],$r,Pr=Ur.length;gt<$r;++gt)for(Vn=Ur,Ur=mt[fn[gt]],tn=0;tn<Pr;++tn)Ur[tn][1]+=Ur[tn][0]=isNaN(Vn[tn][1])?Vn[tn][0]:Vn[tn][1]}function Pi(mt){for(var fn=mt.length,gt=new Array(fn);--fn>=0;)gt[fn]=fn;return gt}function io(mt,fn){return mt[fn]}function lo(){var mt=v([]),fn=Pi,gt=Ai,tn=io;function Vn(Ur){var $r=mt.apply(this,arguments),Pr,zr=Ur.length,gi=$r.length,$i=new Array(gi),eo;for(Pr=0;Pr<gi;++Pr){for(var ki=$r[Pr],so=$i[Pr]=new Array(zr),Ho=0,ra;Ho<zr;++Ho)so[Ho]=ra=[0,+tn(Ur[Ho],ki,Ho,Ur)],ra.data=Ur[Ho];so.key=ki}for(Pr=0,eo=fn($i);Pr<gi;++Pr)$i[eo[Pr]].index=Pr;return gt($i,eo),$i}return Vn.keys=function(Ur){return arguments.length?(mt=typeof Ur=="function"?Ur:v(nt.call(Ur)),Vn):mt},Vn.value=function(Ur){return arguments.length?(tn=typeof Ur=="function"?Ur:v(+Ur),Vn):tn},Vn.order=function(Ur){return arguments.length?(fn=Ur==null?Pi:typeof Ur=="function"?Ur:v(nt.call(Ur)),Vn):fn},Vn.offset=function(Ur){return arguments.length?(gt=Ur??Ai,Vn):gt},Vn}function Gr(mt,fn){if((tn=mt.length)>0){for(var gt,tn,Vn=0,Ur=mt[0].length,$r;Vn<Ur;++Vn){for($r=gt=0;gt<tn;++gt)$r+=mt[gt][Vn][1]||0;if($r)for(gt=0;gt<tn;++gt)mt[gt][Vn][1]/=$r}Ai(mt,fn)}}function un(mt,fn){if((zr=mt.length)>0)for(var gt,tn=0,Vn,Ur,$r,Pr,zr,gi=mt[fn[0]].length;tn<gi;++tn)for($r=Pr=0,gt=0;gt<zr;++gt)(Ur=(Vn=mt[fn[gt]][tn])[1]-Vn[0])>0?(Vn[0]=$r,Vn[1]=$r+=Ur):Ur<0?(Vn[1]=Pr,Vn[0]=Pr+=Ur):(Vn[0]=0,Vn[1]=Ur)}function qn(mt,fn){if((Vn=mt.length)>0){for(var gt=0,tn=mt[fn[0]],Vn,Ur=tn.length;gt<Ur;++gt){for(var $r=0,Pr=0;$r<Vn;++$r)Pr+=mt[$r][gt][1]||0;tn[gt][1]+=tn[gt][0]=-Pr/2}Ai(mt,fn)}}function kn(mt,fn){if(!(!(($r=mt.length)>0)||!((Ur=(Vn=mt[fn[0]]).length)>0))){for(var gt=0,tn=1,Vn,Ur,$r;tn<Ur;++tn){for(var Pr=0,zr=0,gi=0;Pr<$r;++Pr){for(var $i=mt[fn[Pr]],eo=$i[tn][1]||0,ki=$i[tn-1][1]||0,so=(eo-ki)/2,Ho=0;Ho<Pr;++Ho){var ra=mt[fn[Ho]],So=ra[tn][1]||0,gr=ra[tn-1][1]||0;so+=So-gr}zr+=eo,gi+=so*eo}Vn[tn-1][1]+=Vn[tn-1][0]=gt,zr&&(gt-=gi/zr)}Vn[tn-1][1]+=Vn[tn-1][0]=gt,Ai(mt,fn)}}function St(mt){var fn=mt.map(ln);return Pi(mt).sort(function(gt,tn){return fn[gt]-fn[tn]})}function ln(mt){for(var fn=-1,gt=0,tn=mt.length,Vn,Ur=-1/0;++fn<tn;)(Vn=+mt[fn][1])>Ur&&(Ur=Vn,gt=fn);return gt}function An(mt){var fn=mt.map(Cr);return Pi(mt).sort(function(gt,tn){return fn[gt]-fn[tn]})}function Cr(mt){for(var fn=0,gt=-1,tn=mt.length,Vn;++gt<tn;)(Vn=+mt[gt][1])&&(fn+=Vn);return fn}function _i(mt){return An(mt).reverse()}function Sn(mt){var fn=mt.length,gt,tn,Vn=mt.map(Cr),Ur=St(mt),$r=0,Pr=0,zr=[],gi=[];for(gt=0;gt<fn;++gt)tn=Ur[gt],$r<Pr?($r+=Vn[tn],zr.push(tn)):(Pr+=Vn[tn],gi.push(tn));return gi.reverse().concat(zr)}function ir(mt){return Pi(mt).reverse()}},49880:(J,g,t)=>{"use client";const{createElement:i,useEffect:l,useRef:s}=t(96540);function m({html:u,dangerouslySetInnerHTML:f,allowRerender:p,...v}){const h=s(null),d=s(!0);return l(()=>{if(!u||!h.current)throw new Error("html prop can't be null");if(!d.current)return;d.current=!!p;const b=document.createRange().createContextualFragment(u);h.current.innerHTML="",h.current.appendChild(b)},[u,h]),i("div",{...v,ref:h})}J.exports=m},76459:J=>{"use strict";J.exports=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=void 0,f=void 0,p=void 0,v=[];return function(){var b=g(s),y=new Date().getTime(),w=!u||y-u>b;u=y;for(var S=arguments.length,O=Array(S),R=0;R<S;R++)O[R]=arguments[R];if(w&&m.leading)return m.accumulate?Promise.resolve(l.call(this,[O])).then(function(D){return D[0]}):Promise.resolve(l.call.apply(l,[this].concat(O)));if(f?clearTimeout(p):f=t(),v.push(O),p=setTimeout(h.bind(this),b),m.accumulate){var M=v.length-1;return f.promise.then(function(D){return D[M]})}return f.promise};function h(){var d=f;clearTimeout(p),Promise.resolve(m.accumulate?l.call(this,v):l.apply(this,v[v.length-1])).then(d.resolve,d.reject),v=[],f=null}};function g(i){return typeof i=="function"?i():i}function t(){var i={};return i.promise=new Promise(function(l,s){i.resolve=l,i.reject=s}),i}},17334:J=>{function g(t,i,l){var s,m,u,f,p;i==null&&(i=100);function v(){var d=Date.now()-f;d<i&&d>=0?s=setTimeout(v,i-d):(s=null,l||(p=t.apply(u,m),u=m=null))}var h=function(){u=this,m=arguments,f=Date.now();var d=l&&!s;return s||(s=setTimeout(v,i)),d&&(p=t.apply(u,m),u=m=null),p};return h.clear=function(){s&&(clearTimeout(s),s=null)},h.flush=function(){s&&(p=t.apply(u,m),u=m=null,clearTimeout(s),s=null)},h}g.debounce=g,J.exports=g},19086:J=>{"use strict";var g,t,i,l;g="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",t="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",i=new RegExp("^[^"+t+"]*["+g+"]"),l=new RegExp("^[^"+g+"]*["+t+"]");function s(m){return m=m.toString(),l.test(m)?"rtl":i.test(m)?"ltr":"neutral"}J.exports=s},64849:(J,g,t)=>{var i=t(62785),l=t(78978),s={float:"cssFloat"},m=t(79887);function u(h,d,b){var y=s[d];if(typeof y>"u"&&(y=p(d)),y){if(b===void 0)return h.style[y];h.style[y]=m(y,b)}}function f(h,d){for(var b in d)d.hasOwnProperty(b)&&u(h,b,d[b])}function p(h){var d=l(h),b=i(d);return s[d]=s[h]=s[b]=b,b}function v(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:f(arguments[0],arguments[1]):u(arguments[0],arguments[1],arguments[2])}J.exports=v,J.exports.set=v,J.exports.get=function(h,d){return Array.isArray(d)?d.reduce(function(b,y){return b[y]=u(h,y||""),b},{}):u(h,d||"")}},42838:function(J){/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */(function(g,t){J.exports=t()})(this,function(){"use strict";const{entries:g,setPrototypeOf:t,isFrozen:i,getPrototypeOf:l,getOwnPropertyDescriptor:s}=Object;let{freeze:m,seal:u,create:f}=Object,{apply:p,construct:v}=typeof Reflect<"u"&&Reflect;m||(m=function(F){return F}),u||(u=function(F){return F}),p||(p=function(F,Y,le){return F.apply(Y,le)}),v||(v=function(F,Y){return new F(...Y)});const h=T(Array.prototype.forEach),d=T(Array.prototype.pop),b=T(Array.prototype.push),y=T(String.prototype.toLowerCase),w=T(String.prototype.toString),S=T(String.prototype.match),O=T(String.prototype.replace),R=T(String.prototype.indexOf),M=T(String.prototype.trim),D=T(RegExp.prototype.test),P=A(TypeError);function T(U){return function(F){for(var Y=arguments.length,le=new Array(Y>1?Y-1:0),ke=1;ke<Y;ke++)le[ke-1]=arguments[ke];return p(U,F,le)}}function A(U){return function(){for(var F=arguments.length,Y=new Array(F),le=0;le<F;le++)Y[le]=arguments[le];return v(U,Y)}}function j(U,F){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y;t&&t(U,null);let le=F.length;for(;le--;){let ke=F[le];if(typeof ke=="string"){const Ye=Y(ke);Ye!==ke&&(i(F)||(F[le]=Ye),ke=Ye)}U[ke]=!0}return U}function ae(U){for(let F=0;F<U.length;F++)s(U,F)===void 0&&(U[F]=null);return U}function _(U){const F=f(null);for(const[Y,le]of g(U))s(U,Y)!==void 0&&(Array.isArray(le)?F[Y]=ae(le):le&&typeof le=="object"&&le.constructor===Object?F[Y]=_(le):F[Y]=le);return F}function N(U,F){for(;U!==null;){const le=s(U,F);if(le){if(le.get)return T(le.get);if(typeof le.value=="function")return T(le.value)}U=l(U)}function Y(le){return console.warn("fallback value for",le),null}return Y}const W=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),he=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),me=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),fe=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ve=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ce=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oe=m(["#text"]),re=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Te=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Re=u(/<%[\w\W]*|[\w\W]*%>/gm),ne=u(/\${[\w\W]*}/gm),pe=u(/^data-[\-\w.\u00B7-\uFFFF]/),ye=u(/^aria-[\-\w]+$/),Se=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ae=u(/^(?:\w+script|data):/i),Ee=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xe=u(/^html$/i);var nt=Object.freeze({__proto__:null,MUSTACHE_EXPR:Te,ERB_EXPR:Re,TMPLIT_EXPR:ne,DATA_ATTR:pe,ARIA_ATTR:ye,IS_ALLOWED_URI:Se,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:Ee,DOCTYPE_NAME:xe});const Tt=function(){return typeof window>"u"?null:window},pt=function(F,Y){if(typeof F!="object"||typeof F.createPolicy!="function")return null;let le=null;const ke="data-tt-policy-suffix";Y&&Y.hasAttribute(ke)&&(le=Y.getAttribute(ke));const Ye="dompurify"+(le?"#"+le:"");try{return F.createPolicy(Ye,{createHTML(ft){return ft},createScriptURL(ft){return ft}})}catch{return console.warn("TrustedTypes policy "+Ye+" could not be created."),null}};function Rt(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tt();const F=So=>Rt(So);if(F.version="3.0.8",F.removed=[],!U||!U.document||U.document.nodeType!==9)return F.isSupported=!1,F;let{document:Y}=U;const le=Y,ke=le.currentScript,{DocumentFragment:Ye,HTMLTemplateElement:ft,Node:wt,Element:Ut,NodeFilter:Ke,NamedNodeMap:it=U.NamedNodeMap||U.MozNamedAttrMap,HTMLFormElement:At,DOMParser:et,trustedTypes:ee}=U,I=Ut.prototype,K=N(I,"cloneNode"),ue=N(I,"nextSibling"),De=N(I,"childNodes"),He=N(I,"parentNode");if(typeof ft=="function"){const So=Y.createElement("template");So.content&&So.content.ownerDocument&&(Y=So.content.ownerDocument)}let Fe,ze="";const{implementation:qe,createNodeIterator:We,createDocumentFragment:_t,getElementsByTagName:ct}=Y,{importNode:Ge}=le;let st={};F.isSupported=typeof g=="function"&&typeof He=="function"&&qe&&qe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Me,ERB_EXPR:ie,TMPLIT_EXPR:ge,DATA_ATTR:z,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:Qe,ATTR_WHITESPACE:Bt}=nt;let{IS_ALLOWED_URI:nn}=nt,bt=null;const at=j({},[...W,...he,...me,...ve,...oe]);let $t=null;const On=j({},[...re,...H,...V,...Q]);let Ct=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Zt=null,Wn=null,Zn=!0,xt=!0,Xe=!1,gn=!0,Qt=!1,Dt=!1,hn=!1,cn=!1,an=!1,Or=!1,Ln=!1,En=!0,Gn=!1;const rr="user-content-";let sr=!0,pi=!1,yi={},jr=null;const ui=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let bi=null;const ri=j({},["audio","video","img","source","image","track"]);let hi=null;const Si=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kr="http://www.w3.org/1998/Math/MathML",xi="http://www.w3.org/2000/svg",Ai="http://www.w3.org/1999/xhtml";let Pi=Ai,io=!1,lo=null;const Gr=j({},[Kr,xi,Ai],w);let un=null;const qn=["application/xhtml+xml","text/html"],kn="text/html";let St=null,ln=null;const An=Y.createElement("form"),Cr=function(gr){return gr instanceof RegExp||gr instanceof Function},_i=function(){let gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ln&&ln===gr)){if((!gr||typeof gr!="object")&&(gr={}),gr=_(gr),un=qn.indexOf(gr.PARSER_MEDIA_TYPE)===-1?kn:gr.PARSER_MEDIA_TYPE,St=un==="application/xhtml+xml"?w:y,bt="ALLOWED_TAGS"in gr?j({},gr.ALLOWED_TAGS,St):at,$t="ALLOWED_ATTR"in gr?j({},gr.ALLOWED_ATTR,St):On,lo="ALLOWED_NAMESPACES"in gr?j({},gr.ALLOWED_NAMESPACES,w):Gr,hi="ADD_URI_SAFE_ATTR"in gr?j(_(Si),gr.ADD_URI_SAFE_ATTR,St):Si,bi="ADD_DATA_URI_TAGS"in gr?j(_(ri),gr.ADD_DATA_URI_TAGS,St):ri,jr="FORBID_CONTENTS"in gr?j({},gr.FORBID_CONTENTS,St):ui,Zt="FORBID_TAGS"in gr?j({},gr.FORBID_TAGS,St):{},Wn="FORBID_ATTR"in gr?j({},gr.FORBID_ATTR,St):{},yi="USE_PROFILES"in gr?gr.USE_PROFILES:!1,Zn=gr.ALLOW_ARIA_ATTR!==!1,xt=gr.ALLOW_DATA_ATTR!==!1,Xe=gr.ALLOW_UNKNOWN_PROTOCOLS||!1,gn=gr.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qt=gr.SAFE_FOR_TEMPLATES||!1,Dt=gr.WHOLE_DOCUMENT||!1,an=gr.RETURN_DOM||!1,Or=gr.RETURN_DOM_FRAGMENT||!1,Ln=gr.RETURN_TRUSTED_TYPE||!1,cn=gr.FORCE_BODY||!1,En=gr.SANITIZE_DOM!==!1,Gn=gr.SANITIZE_NAMED_PROPS||!1,sr=gr.KEEP_CONTENT!==!1,pi=gr.IN_PLACE||!1,nn=gr.ALLOWED_URI_REGEXP||Se,Pi=gr.NAMESPACE||Ai,Ct=gr.CUSTOM_ELEMENT_HANDLING||{},gr.CUSTOM_ELEMENT_HANDLING&&Cr(gr.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ct.tagNameCheck=gr.CUSTOM_ELEMENT_HANDLING.tagNameCheck),gr.CUSTOM_ELEMENT_HANDLING&&Cr(gr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ct.attributeNameCheck=gr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),gr.CUSTOM_ELEMENT_HANDLING&&typeof gr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ct.allowCustomizedBuiltInElements=gr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qt&&(xt=!1),Or&&(an=!0),yi&&(bt=j({},oe),$t=[],yi.html===!0&&(j(bt,W),j($t,re)),yi.svg===!0&&(j(bt,he),j($t,H),j($t,Q)),yi.svgFilters===!0&&(j(bt,me),j($t,H),j($t,Q)),yi.mathMl===!0&&(j(bt,ve),j($t,V),j($t,Q))),gr.ADD_TAGS&&(bt===at&&(bt=_(bt)),j(bt,gr.ADD_TAGS,St)),gr.ADD_ATTR&&($t===On&&($t=_($t)),j($t,gr.ADD_ATTR,St)),gr.ADD_URI_SAFE_ATTR&&j(hi,gr.ADD_URI_SAFE_ATTR,St),gr.FORBID_CONTENTS&&(jr===ui&&(jr=_(jr)),j(jr,gr.FORBID_CONTENTS,St)),sr&&(bt["#text"]=!0),Dt&&j(bt,["html","head","body"]),bt.table&&(j(bt,["tbody"]),delete Zt.tbody),gr.TRUSTED_TYPES_POLICY){if(typeof gr.TRUSTED_TYPES_POLICY.createHTML!="function")throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof gr.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Fe=gr.TRUSTED_TYPES_POLICY,ze=Fe.createHTML("")}else Fe===void 0&&(Fe=pt(ee,ke)),Fe!==null&&typeof ze=="string"&&(ze=Fe.createHTML(""));m&&m(gr),ln=gr}},Sn=j({},["mi","mo","mn","ms","mtext"]),ir=j({},["foreignobject","desc","title","annotation-xml"]),mt=j({},["title","style","font","a","script"]),fn=j({},[...he,...me,...fe]),gt=j({},[...ve,...ce]),tn=function(gr){let di=He(gr);(!di||!di.tagName)&&(di={namespaceURI:Pi,tagName:"template"});const Vi=y(gr.tagName),Ro=y(di.tagName);return lo[gr.namespaceURI]?gr.namespaceURI===xi?di.namespaceURI===Ai?Vi==="svg":di.namespaceURI===Kr?Vi==="svg"&&(Ro==="annotation-xml"||Sn[Ro]):!!fn[Vi]:gr.namespaceURI===Kr?di.namespaceURI===Ai?Vi==="math":di.namespaceURI===xi?Vi==="math"&&ir[Ro]:!!gt[Vi]:gr.namespaceURI===Ai?di.namespaceURI===xi&&!ir[Ro]||di.namespaceURI===Kr&&!Sn[Ro]?!1:!gt[Vi]&&(mt[Vi]||!fn[Vi]):!!(un==="application/xhtml+xml"&&lo[gr.namespaceURI]):!1},Vn=function(gr){b(F.removed,{element:gr});try{gr.parentNode.removeChild(gr)}catch{gr.remove()}},Ur=function(gr,di){try{b(F.removed,{attribute:di.getAttributeNode(gr),from:di})}catch{b(F.removed,{attribute:null,from:di})}if(di.removeAttribute(gr),gr==="is"&&!$t[gr])if(an||Or)try{Vn(di)}catch{}else try{di.setAttribute(gr,"")}catch{}},$r=function(gr){let di=null,Vi=null;if(cn)gr="<remove></remove>"+gr;else{const ta=S(gr,/^[\r\n\t ]+/);Vi=ta&&ta[0]}un==="application/xhtml+xml"&&Pi===Ai&&(gr='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+gr+"</body></html>");const Ro=Fe?Fe.createHTML(gr):gr;if(Pi===Ai)try{di=new et().parseFromString(Ro,un)}catch{}if(!di||!di.documentElement){di=qe.createDocument(Pi,"template",null);try{di.documentElement.innerHTML=io?ze:Ro}catch{}}const na=di.body||di.documentElement;return gr&&Vi&&na.insertBefore(Y.createTextNode(Vi),na.childNodes[0]||null),Pi===Ai?ct.call(di,Dt?"html":"body")[0]:Dt?di.documentElement:na},Pr=function(gr){return We.call(gr.ownerDocument||gr,gr,Ke.SHOW_ELEMENT|Ke.SHOW_COMMENT|Ke.SHOW_TEXT,null)},zr=function(gr){return gr instanceof At&&(typeof gr.nodeName!="string"||typeof gr.textContent!="string"||typeof gr.removeChild!="function"||!(gr.attributes instanceof it)||typeof gr.removeAttribute!="function"||typeof gr.setAttribute!="function"||typeof gr.namespaceURI!="string"||typeof gr.insertBefore!="function"||typeof gr.hasChildNodes!="function")},gi=function(gr){return typeof wt=="function"&&gr instanceof wt},$i=function(gr,di,Vi){st[gr]&&h(st[gr],Ro=>{Ro.call(F,di,Vi,ln)})},eo=function(gr){let di=null;if($i("beforeSanitizeElements",gr,null),zr(gr))return Vn(gr),!0;const Vi=St(gr.nodeName);if($i("uponSanitizeElement",gr,{tagName:Vi,allowedTags:bt}),gr.hasChildNodes()&&!gi(gr.firstElementChild)&&D(/<[/\w]/g,gr.innerHTML)&&D(/<[/\w]/g,gr.textContent))return Vn(gr),!0;if(!bt[Vi]||Zt[Vi]){if(!Zt[Vi]&&so(Vi)&&(Ct.tagNameCheck instanceof RegExp&&D(Ct.tagNameCheck,Vi)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(Vi)))return!1;if(sr&&!jr[Vi]){const Ro=He(gr)||gr.parentNode,na=De(gr)||gr.childNodes;if(na&&Ro){const ta=na.length;for(let aa=ta-1;aa>=0;--aa)Ro.insertBefore(K(na[aa],!0),ue(gr))}}return Vn(gr),!0}return gr instanceof Ut&&!tn(gr)||(Vi==="noscript"||Vi==="noembed"||Vi==="noframes")&&D(/<\/no(script|embed|frames)/i,gr.innerHTML)?(Vn(gr),!0):(Qt&&gr.nodeType===3&&(di=gr.textContent,h([Me,ie,ge],Ro=>{di=O(di,Ro," ")}),gr.textContent!==di&&(b(F.removed,{element:gr.cloneNode()}),gr.textContent=di)),$i("afterSanitizeElements",gr,null),!1)},ki=function(gr,di,Vi){if(En&&(di==="id"||di==="name")&&(Vi in Y||Vi in An))return!1;if(!(xt&&!Wn[di]&&D(z,di))){if(!(Zn&&D(be,di))){if(!$t[di]||Wn[di]){if(!(so(gr)&&(Ct.tagNameCheck instanceof RegExp&&D(Ct.tagNameCheck,gr)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(gr))&&(Ct.attributeNameCheck instanceof RegExp&&D(Ct.attributeNameCheck,di)||Ct.attributeNameCheck instanceof Function&&Ct.attributeNameCheck(di))||di==="is"&&Ct.allowCustomizedBuiltInElements&&(Ct.tagNameCheck instanceof RegExp&&D(Ct.tagNameCheck,Vi)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(Vi))))return!1}else if(!hi[di]){if(!D(nn,O(Vi,Bt,""))){if(!((di==="src"||di==="xlink:href"||di==="href")&&gr!=="script"&&R(Vi,"data:")===0&&bi[gr])){if(!(Xe&&!D(Qe,O(Vi,Bt,"")))){if(Vi)return!1}}}}}}return!0},so=function(gr){return gr.indexOf("-")>0},Ho=function(gr){$i("beforeSanitizeAttributes",gr,null);const{attributes:di}=gr;if(!di)return;const Vi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$t};let Ro=di.length;for(;Ro--;){const na=di[Ro],{name:ta,namespaceURI:aa,value:vi}=na,to=St(ta);let $o=ta==="value"?vi:M(vi);if(Vi.attrName=to,Vi.attrValue=$o,Vi.keepAttr=!0,Vi.forceKeepAttr=void 0,$i("uponSanitizeAttribute",gr,Vi),$o=Vi.attrValue,Vi.forceKeepAttr||(Ur(ta,gr),!Vi.keepAttr))continue;if(!gn&&D(/\/>/i,$o)){Ur(ta,gr);continue}Qt&&h([Me,ie,ge],hs=>{$o=O($o,hs," ")});const ja=St(gr.nodeName);if(ki(ja,to,$o)){if(Gn&&(to==="id"||to==="name")&&(Ur(ta,gr),$o=rr+$o),Fe&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!aa)switch(ee.getAttributeType(ja,to)){case"TrustedHTML":{$o=Fe.createHTML($o);break}case"TrustedScriptURL":{$o=Fe.createScriptURL($o);break}}try{aa?gr.setAttributeNS(aa,ta,$o):gr.setAttribute(ta,$o),d(F.removed)}catch{}}}$i("afterSanitizeAttributes",gr,null)},ra=function So(gr){let di=null;const Vi=Pr(gr);for($i("beforeSanitizeShadowDOM",gr,null);di=Vi.nextNode();)$i("uponSanitizeShadowNode",di,null),!eo(di)&&(di.content instanceof Ye&&So(di.content),Ho(di));$i("afterSanitizeShadowDOM",gr,null)};return F.sanitize=function(So){let gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},di=null,Vi=null,Ro=null,na=null;if(io=!So,io&&(So="<!-->"),typeof So!="string"&&!gi(So))if(typeof So.toString=="function"){if(So=So.toString(),typeof So!="string")throw P("dirty is not a string, aborting")}else throw P("toString is not a function");if(!F.isSupported)return So;if(hn||_i(gr),F.removed=[],typeof So=="string"&&(pi=!1),pi){if(So.nodeName){const vi=St(So.nodeName);if(!bt[vi]||Zt[vi])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(So instanceof wt)di=$r("<!---->"),Vi=di.ownerDocument.importNode(So,!0),Vi.nodeType===1&&Vi.nodeName==="BODY"||Vi.nodeName==="HTML"?di=Vi:di.appendChild(Vi);else{if(!an&&!Qt&&!Dt&&So.indexOf("<")===-1)return Fe&&Ln?Fe.createHTML(So):So;if(di=$r(So),!di)return an?null:Ln?ze:""}di&&cn&&Vn(di.firstChild);const ta=Pr(pi?So:di);for(;Ro=ta.nextNode();)eo(Ro)||(Ro.content instanceof Ye&&ra(Ro.content),Ho(Ro));if(pi)return So;if(an){if(Or)for(na=_t.call(di.ownerDocument);di.firstChild;)na.appendChild(di.firstChild);else na=di;return($t.shadowroot||$t.shadowrootmode)&&(na=Ge.call(le,na,!0)),na}let aa=Dt?di.outerHTML:di.innerHTML;return Dt&&bt["!doctype"]&&di.ownerDocument&&di.ownerDocument.doctype&&di.ownerDocument.doctype.name&&D(xe,di.ownerDocument.doctype.name)&&(aa="<!DOCTYPE "+di.ownerDocument.doctype.name+`> `+aa),Qt&&h([Me,ie,ge],vi=>{aa=O(aa,vi," ")}),Fe&&Ln?Fe.createHTML(aa):aa},F.setConfig=function(){let So=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_i(So),hn=!0},F.clearConfig=function(){ln=null,hn=!1},F.isValidAttribute=function(So,gr,di){ln||_i({});const Vi=St(So),Ro=St(gr);return ki(Vi,Ro,di)},F.addHook=function(So,gr){typeof gr=="function"&&(st[So]=st[So]||[],b(st[So],gr))},F.removeHook=function(So){if(st[So])return d(st[So])},F.removeHooks=function(So){st[So]&&(st[So]=[])},F.removeAllHooks=function(){st={}},F}var tt=Rt();return tt})},30399:function(J,g,t){J=t.nmd(J);var i;/*! https://mths.be/esrever v0.2.0 by @mathias */(function(l){var s=g,m=J&&J.exports==s&&J,u=typeof t.g=="object"&&t.g;(u.global===u||u.window===u)&&(l=u);var f=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,p=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,v=function(b){b=b.replace(f,function(S,O,R){return v(R)+O}).replace(p,"$2$1");for(var y="",w=b.length;w--;)y+=b.charAt(w);return y},h={version:"0.2.0",reverse:v};if(!0)i=function(){return h}.call(g,t,g,J),i!==void 0&&(J.exports=i);else var d})(this)},30228:J=>{"use strict";var g=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function l(f,p,v){this.fn=f,this.context=p,this.once=v||!1}function s(f,p,v,h,d){if(typeof v!="function")throw new TypeError("The listener must be a function");var b=new l(v,h||f,d),y=t?t+p:p;return f._events[y]?f._events[y].fn?f._events[y]=[f._events[y],b]:f._events[y].push(b):(f._events[y]=b,f._eventsCount++),f}function m(f,p){--f._eventsCount===0?f._events=new i:delete f._events[p]}function u(){this._events=new i,this._eventsCount=0}u.prototype.eventNames=function(){var p=[],v,h;if(this._eventsCount===0)return p;for(h in v=this._events)g.call(v,h)&&p.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(v)):p},u.prototype.listeners=function(p){var v=t?t+p:p,h=this._events[v];if(!h)return[];if(h.fn)return[h.fn];for(var d=0,b=h.length,y=new Array(b);d<b;d++)y[d]=h[d].fn;return y},u.prototype.listenerCount=function(p){var v=t?t+p:p,h=this._events[v];return h?h.fn?1:h.length:0},u.prototype.emit=function(p,v,h,d,b,y){var w=t?t+p:p;if(!this._events[w])return!1;var S=this._events[w],O=arguments.length,R,M;if(S.fn){switch(S.once&&this.removeListener(p,S.fn,void 0,!0),O){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,v),!0;case 3:return S.fn.call(S.context,v,h),!0;case 4:return S.fn.call(S.context,v,h,d),!0;case 5:return S.fn.call(S.context,v,h,d,b),!0;case 6:return S.fn.call(S.context,v,h,d,b,y),!0}for(M=1,R=new Array(O-1);M<O;M++)R[M-1]=arguments[M];S.fn.apply(S.context,R)}else{var D=S.length,P;for(M=0;M<D;M++)switch(S[M].once&&this.removeListener(p,S[M].fn,void 0,!0),O){case 1:S[M].fn.call(S[M].context);break;case 2:S[M].fn.call(S[M].context,v);break;case 3:S[M].fn.call(S[M].context,v,h);break;case 4:S[M].fn.call(S[M].context,v,h,d);break;default:if(!R)for(P=1,R=new Array(O-1);P<O;P++)R[P-1]=arguments[P];S[M].fn.apply(S[M].context,R)}}return!0},u.prototype.on=function(p,v,h){return s(this,p,v,h,!1)},u.prototype.once=function(p,v,h){return s(this,p,v,h,!0)},u.prototype.removeListener=function(p,v,h,d){var b=t?t+p:p;if(!this._events[b])return this;if(!v)return m(this,b),this;var y=this._events[b];if(y.fn)y.fn===v&&(!d||y.once)&&(!h||y.context===h)&&m(this,b);else{for(var w=0,S=[],O=y.length;w<O;w++)(y[w].fn!==v||d&&!y[w].once||h&&y[w].context!==h)&&S.push(y[w]);S.length?this._events[b]=S.length===1?S[0]:S:m(this,b)}return this},u.prototype.removeAllListeners=function(p){var v;return p?(v=t?t+p:p,this._events[v]&&m(this,v)):(this._events=new i,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=t,u.EventEmitter=u,J.exports=u},50411:(J,g,t)=>{var i;/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */(function(){"use strict";var l=!!(typeof window<"u"&&window.document&&window.document.createElement),s={canUseDOM:l,canUseWorkers:typeof Worker<"u",canUseEventListeners:l&&!!(window.addEventListener||window.attachEvent),canUseViewport:l&&!!window.screen};i=function(){return s}.call(g,t,g,J),i!==void 0&&(J.exports=i)})()},34796:(J,g,t)=>{var i=t(74692),l=t(34160),s=l;typeof s.$>"u"&&(s.$=i),typeof s.jQuery>"u"&&(s.jQuery=i),J.exports=i},34160:(J,g,t)=>{"use strict";J.exports=function(){if(typeof globalThis=="object")return globalThis;var i;try{i=this||new Function("return this")()}catch{if(typeof window=="object")return window;if(typeof self=="object")return self;if(typeof t.g<"u")return t.g}return i}()},32017:J=>{"use strict";J.exports=function g(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var l,s,m;if(Array.isArray(t)){if(l=t.length,l!=i.length)return!1;for(s=l;s--!==0;)if(!g(t[s],i[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(m=Object.keys(t),l=m.length,l!==Object.keys(i).length)return!1;for(s=l;s--!==0;)if(!Object.prototype.hasOwnProperty.call(i,m[s]))return!1;for(s=l;s--!==0;){var u=m[s];if(!g(t[u],i[u]))return!1}return!0}return t!==t&&i!==i}},51548:function(J,g){(function(t,i){i(g)})(this,function(t){"use strict";var i=typeof WeakSet=="function",l=Object.keys;function s(_,N){return _===N||_!==_&&N!==N}function m(_){return _.constructor===Object||_.constructor==null}function u(_){return!!_&&typeof _.then=="function"}function f(_){return!!(_&&_.$$typeof)}function p(){var _=[];return{add:function(N){_.push(N)},has:function(N){return _.indexOf(N)!==-1}}}var v=function(_){return _?function(){return new WeakSet}:p}(i);function h(_){return function(W){var he=_||W;return function(fe,ve,ce){ce===void 0&&(ce=v());var oe=!!fe&&typeof fe=="object",re=!!ve&&typeof ve=="object";if(oe||re){var H=oe&&ce.has(fe),V=re&&ce.has(ve);if(H||V)return H&&V;oe&&ce.add(fe),re&&ce.add(ve)}return he(fe,ve,ce)}}}function d(_,N,W,he){var me=_.length;if(N.length!==me)return!1;for(;me-- >0;)if(!W(_[me],N[me],he))return!1;return!0}function b(_,N,W,he){var me=_.size===N.size;if(me&&_.size){var fe={};_.forEach(function(ve,ce){if(me){var oe=!1,re=0;N.forEach(function(H,V){!oe&&!fe[re]&&(oe=W(ce,V,he)&&W(ve,H,he),oe&&(fe[re]=!0)),re++}),me=oe}})}return me}var y="_owner",w=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function S(_,N,W,he){var me=l(_),fe=me.length;if(l(N).length!==fe)return!1;if(fe)for(var ve=void 0;fe-- >0;){if(ve=me[fe],ve===y){var ce=f(_),oe=f(N);if((ce||oe)&&ce!==oe)return!1}if(!w(N,ve)||!W(_[ve],N[ve],he))return!1}return!0}function O(_,N){return _.source===N.source&&_.global===N.global&&_.ignoreCase===N.ignoreCase&&_.multiline===N.multiline&&_.unicode===N.unicode&&_.sticky===N.sticky&&_.lastIndex===N.lastIndex}function R(_,N,W,he){var me=_.size===N.size;if(me&&_.size){var fe={};_.forEach(function(ve){if(me){var ce=!1,oe=0;N.forEach(function(re){!ce&&!fe[oe]&&(ce=W(ve,re,he),ce&&(fe[oe]=!0)),oe++}),me=ce}})}return me}var M=typeof Map=="function",D=typeof Set=="function";function P(_){var N=typeof _=="function"?_(W):W;function W(he,me,fe){if(he===me)return!0;if(he&&me&&typeof he=="object"&&typeof me=="object"){if(m(he)&&m(me))return S(he,me,N,fe);var ve=Array.isArray(he),ce=Array.isArray(me);return ve||ce?ve===ce&&d(he,me,N,fe):(ve=he instanceof Date,ce=me instanceof Date,ve||ce?ve===ce&&s(he.getTime(),me.getTime()):(ve=he instanceof RegExp,ce=me instanceof RegExp,ve||ce?ve===ce&&O(he,me):u(he)||u(me)?he===me:M&&(ve=he instanceof Map,ce=me instanceof Map,ve||ce)?ve===ce&&b(he,me,N,fe):D&&(ve=he instanceof Set,ce=me instanceof Set,ve||ce)?ve===ce&&R(he,me,N,fe):S(he,me,N,fe)))}return he!==he&&me!==me}return W}var T=P(),A=P(function(){return s}),j=P(h()),ae=P(h(s));t.circularDeepEqual=j,t.circularShallowEqual=ae,t.createCustomEqual=P,t.deepEqual=T,t.sameValueZeroEqual=s,t.shallowEqual=A,Object.defineProperty(t,"__esModule",{value:!0})})},86643:(J,g)=>{"use strict";var t;t={value:!0};function i(s){return s}function l(s,m=i){if(s.length===0)return[];for(let f=1;f<s.length;f++)if(s[f].length<s[0].length){let p=s[0];s[0]=s[f],s[f]=p}const u=new Map;for(const f of s[0])u.set(m(f),1);for(let f=1;f<s.length;f++){let p=0;for(const v of s[f]){const h=m(v),d=u.get(h);d===f&&(u.set(h,d+1),p++)}if(p===0)return[]}return s[0].filter(f=>{const p=m(f),v=u.get(p);return v!==void 0&&u.set(p,0),v===s.length})}g.A=l},4213:function(J,g,t){var i,l,s;(function(m,u){l=[],i=u,s=typeof i=="function"?i.apply(g,l):i,s!==void 0&&(J.exports=s)})(this,function(){"use strict";function m(b,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(b.type)?new Blob(["\uFEFF",b],{type:b.type}):b}function u(b,y,w){var S=new XMLHttpRequest;S.open("GET",b),S.responseType="blob",S.onload=function(){d(S.response,y,w)},S.onerror=function(){console.error("could not download file")},S.send()}function f(b){var y=new XMLHttpRequest;y.open("HEAD",b,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function p(b){try{b.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),b.dispatchEvent(y)}}var v=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof t.g=="object"&&t.g.global===t.g?t.g:void 0,h=v.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),d=v.saveAs||(typeof window!="object"||window!==v?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(b,y,w){var S=v.URL||v.webkitURL,O=document.createElement("a");y=y||b.name||"download",O.download=y,O.rel="noopener",typeof b=="string"?(O.href=b,O.origin===location.origin?p(O):f(O.href)?u(b,y,w):p(O,O.target="_blank")):(O.href=S.createObjectURL(b),setTimeout(function(){S.revokeObjectURL(O.href)},4e4),setTimeout(function(){p(O)},0))}:"msSaveOrOpenBlob"in navigator?function(b,y,w){if(y=y||b.name||"download",typeof b!="string")navigator.msSaveOrOpenBlob(m(b,w),y);else if(f(b))u(b,y,w);else{var S=document.createElement("a");S.href=b,S.target="_blank",setTimeout(function(){p(S)})}}:function(b,y,w,S){if(S=S||open("","_blank"),S&&(S.document.title=S.document.body.innerText="downloading..."),typeof b=="string")return u(b,y,w);var O=b.type==="application/octet-stream",R=/constructor/i.test(v.HTMLElement)||v.safari,M=/CriOS\/[\d]+/.test(navigator.userAgent);if((M||O&&R||h)&&typeof FileReader<"u"){var D=new FileReader;D.onloadend=function(){var A=D.result;A=M?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=A:location=A,S=null},D.readAsDataURL(b)}else{var P=v.URL||v.webkitURL,T=P.createObjectURL(b);S?S.location=T:location.href=T,S=null,setTimeout(function(){P.revokeObjectURL(T)},4e4)}});v.saveAs=d.saveAs=d,J.exports=d})},47120:(J,g,t)=>{"use strict";t.r(g),t.d(g,{default:()=>qe});function i(We){return Array.isArray?Array.isArray(We):y(We)==="[object Array]"}const l=1/0;function s(We){if(typeof We=="string")return We;let _t=We+"";return _t=="0"&&1/We==-l?"-0":_t}function m(We){return We==null?"":s(We)}function u(We){return typeof We=="string"}function f(We){return typeof We=="number"}function p(We){return We===!0||We===!1||h(We)&&y(We)=="[object Boolean]"}function v(We){return typeof We=="object"}function h(We){return v(We)&&We!==null}function d(We){return We!=null}function b(We){return!We.trim().length}function y(We){return We==null?We===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(We)}const w="Extended search is not available",S="Incorrect 'index' type",O=We=>`Invalid value for key ${We}`,R=We=>`Pattern length exceeds max of ${We}.`,M=We=>`Missing ${We} property in key`,D=We=>`Property 'weight' in key '${We}' must be a positive integer`,P=Object.prototype.hasOwnProperty;class T{constructor(_t){this._keys=[],this._keyMap={};let ct=0;_t.forEach(Ge=>{let st=A(Ge);ct+=st.weight,this._keys.push(st),this._keyMap[st.id]=st,ct+=st.weight}),this._keys.forEach(Ge=>{Ge.weight/=ct})}get(_t){return this._keyMap[_t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function A(We){let _t=null,ct=null,Ge=null,st=1,Me=null;if(u(We)||i(We))Ge=We,_t=j(We),ct=ae(We);else{if(!P.call(We,"name"))throw new Error(M("name"));const ie=We.name;if(Ge=ie,P.call(We,"weight")&&(st=We.weight,st<=0))throw new Error(D(ie));_t=j(ie),ct=ae(ie),Me=We.getFn}return{path:_t,id:ct,weight:st,src:Ge,getFn:Me}}function j(We){return i(We)?We:We.split(".")}function ae(We){return i(We)?We.join("."):We}function _(We,_t){let ct=[],Ge=!1;const st=(Me,ie,ge)=>{if(d(Me))if(!ie[ge])ct.push(Me);else{let z=ie[ge];const be=Me[z];if(!d(be))return;if(ge===ie.length-1&&(u(be)||f(be)||p(be)))ct.push(m(be));else if(i(be)){Ge=!0;for(let Qe=0,Bt=be.length;Qe<Bt;Qe+=1)st(be[Qe],ie,ge+1)}else ie.length&&st(be,ie,ge+1)}};return st(We,u(_t)?_t.split("."):_t,0),Ge?ct:ct[0]}var fe={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(We,_t)=>We.score===_t.score?We.idx<_t.idx?-1:1:We.score<_t.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:_,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const ve=/[^ ]+/g;function ce(We=1,_t=3){const ct=new Map,Ge=Math.pow(10,_t);return{get(st){const Me=st.match(ve).length;if(ct.has(Me))return ct.get(Me);const ie=1/Math.pow(Me,.5*We),ge=parseFloat(Math.round(ie*Ge)/Ge);return ct.set(Me,ge),ge},clear(){ct.clear()}}}class oe{constructor({getFn:_t=fe.getFn,fieldNormWeight:ct=fe.fieldNormWeight}={}){this.norm=ce(ct,3),this.getFn=_t,this.isCreated=!1,this.setIndexRecords()}setSources(_t=[]){this.docs=_t}setIndexRecords(_t=[]){this.records=_t}setKeys(_t=[]){this.keys=_t,this._keysMap={},_t.forEach((ct,Ge)=>{this._keysMap[ct.id]=Ge})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,u(this.docs[0])?this.docs.forEach((_t,ct)=>{this._addString(_t,ct)}):this.docs.forEach((_t,ct)=>{this._addObject(_t,ct)}),this.norm.clear())}add(_t){const ct=this.size();u(_t)?this._addString(_t,ct):this._addObject(_t,ct)}removeAt(_t){this.records.splice(_t,1);for(let ct=_t,Ge=this.size();ct<Ge;ct+=1)this.records[ct].i-=1}getValueForItemAtKeyId(_t,ct){return _t[this._keysMap[ct]]}size(){return this.records.length}_addString(_t,ct){if(!d(_t)||b(_t))return;let Ge={v:_t,i:ct,n:this.norm.get(_t)};this.records.push(Ge)}_addObject(_t,ct){let Ge={i:ct,$:{}};this.keys.forEach((st,Me)=>{let ie=st.getFn?st.getFn(_t):this.getFn(_t,st.path);if(d(ie)){if(i(ie)){let ge=[];const z=[{nestedArrIndex:-1,value:ie}];for(;z.length;){const{nestedArrIndex:be,value:Qe}=z.pop();if(d(Qe))if(u(Qe)&&!b(Qe)){let Bt={v:Qe,i:be,n:this.norm.get(Qe)};ge.push(Bt)}else i(Qe)&&Qe.forEach((Bt,nn)=>{z.push({nestedArrIndex:nn,value:Bt})})}Ge.$[Me]=ge}else if(u(ie)&&!b(ie)){let ge={v:ie,n:this.norm.get(ie)};Ge.$[Me]=ge}}}),this.records.push(Ge)}toJSON(){return{keys:this.keys,records:this.records}}}function re(We,_t,{getFn:ct=fe.getFn,fieldNormWeight:Ge=fe.fieldNormWeight}={}){const st=new oe({getFn:ct,fieldNormWeight:Ge});return st.setKeys(We.map(A)),st.setSources(_t),st.create(),st}function H(We,{getFn:_t=fe.getFn,fieldNormWeight:ct=fe.fieldNormWeight}={}){const{keys:Ge,records:st}=We,Me=new oe({getFn:_t,fieldNormWeight:ct});return Me.setKeys(Ge),Me.setIndexRecords(st),Me}function V(We,{errors:_t=0,currentLocation:ct=0,expectedLocation:Ge=0,distance:st=fe.distance,ignoreLocation:Me=fe.ignoreLocation}={}){const ie=_t/We.length;if(Me)return ie;const ge=Math.abs(Ge-ct);return st?ie+ge/st:ge?1:ie}function Q(We=[],_t=fe.minMatchCharLength){let ct=[],Ge=-1,st=-1,Me=0;for(let ie=We.length;Me<ie;Me+=1){let ge=We[Me];ge&&Ge===-1?Ge=Me:!ge&&Ge!==-1&&(st=Me-1,st-Ge+1>=_t&&ct.push([Ge,st]),Ge=-1)}return We[Me-1]&&Me-Ge>=_t&&ct.push([Ge,Me-1]),ct}const Te=32;function Re(We,_t,ct,{location:Ge=fe.location,distance:st=fe.distance,threshold:Me=fe.threshold,findAllMatches:ie=fe.findAllMatches,minMatchCharLength:ge=fe.minMatchCharLength,includeMatches:z=fe.includeMatches,ignoreLocation:be=fe.ignoreLocation}={}){if(_t.length>Te)throw new Error(R(Te));const Qe=_t.length,Bt=We.length,nn=Math.max(0,Math.min(Ge,Bt));let bt=Me,at=nn;const $t=ge>1||z,On=$t?Array(Bt):[];let Ct;for(;(Ct=We.indexOf(_t,at))>-1;){let gn=V(_t,{currentLocation:Ct,expectedLocation:nn,distance:st,ignoreLocation:be});if(bt=Math.min(gn,bt),at=Ct+Qe,$t){let Qt=0;for(;Qt<Qe;)On[Ct+Qt]=1,Qt+=1}}at=-1;let Zt=[],Wn=1,Zn=Qe+Bt;const xt=1<<Qe-1;for(let gn=0;gn<Qe;gn+=1){let Qt=0,Dt=Zn;for(;Qt<Dt;)V(_t,{errors:gn,currentLocation:nn+Dt,expectedLocation:nn,distance:st,ignoreLocation:be})<=bt?Qt=Dt:Zn=Dt,Dt=Math.floor((Zn-Qt)/2+Qt);Zn=Dt;let hn=Math.max(1,nn-Dt+1),cn=ie?Bt:Math.min(nn+Dt,Bt)+Qe,an=Array(cn+2);an[cn+1]=(1<<gn)-1;for(let Ln=cn;Ln>=hn;Ln-=1){let En=Ln-1,Gn=ct[We.charAt(En)];if($t&&(On[En]=+!!Gn),an[Ln]=(an[Ln+1]<<1|1)&Gn,gn&&(an[Ln]|=(Zt[Ln+1]|Zt[Ln])<<1|1|Zt[Ln+1]),an[Ln]&xt&&(Wn=V(_t,{errors:gn,currentLocation:En,expectedLocation:nn,distance:st,ignoreLocation:be}),Wn<=bt)){if(bt=Wn,at=En,at<=nn)break;hn=Math.max(1,2*nn-at)}}if(V(_t,{errors:gn+1,currentLocation:nn,expectedLocation:nn,distance:st,ignoreLocation:be})>bt)break;Zt=an}const Xe={isMatch:at>=0,score:Math.max(.001,Wn)};if($t){const gn=Q(On,ge);gn.length?z&&(Xe.indices=gn):Xe.isMatch=!1}return Xe}function ne(We){let _t={};for(let ct=0,Ge=We.length;ct<Ge;ct+=1){const st=We.charAt(ct);_t[st]=(_t[st]||0)|1<<Ge-ct-1}return _t}class pe{constructor(_t,{location:ct=fe.location,threshold:Ge=fe.threshold,distance:st=fe.distance,includeMatches:Me=fe.includeMatches,findAllMatches:ie=fe.findAllMatches,minMatchCharLength:ge=fe.minMatchCharLength,isCaseSensitive:z=fe.isCaseSensitive,ignoreLocation:be=fe.ignoreLocation}={}){if(this.options={location:ct,threshold:Ge,distance:st,includeMatches:Me,findAllMatches:ie,minMatchCharLength:ge,isCaseSensitive:z,ignoreLocation:be},this.pattern=z?_t:_t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const Qe=(nn,bt)=>{this.chunks.push({pattern:nn,alphabet:ne(nn),startIndex:bt})},Bt=this.pattern.length;if(Bt>Te){let nn=0;const bt=Bt%Te,at=Bt-bt;for(;nn<at;)Qe(this.pattern.substr(nn,Te),nn),nn+=Te;if(bt){const $t=Bt-Te;Qe(this.pattern.substr($t),$t)}}else Qe(this.pattern,0)}searchIn(_t){const{isCaseSensitive:ct,includeMatches:Ge}=this.options;if(ct||(_t=_t.toLowerCase()),this.pattern===_t){let at={isMatch:!0,score:0};return Ge&&(at.indices=[[0,_t.length-1]]),at}const{location:st,distance:Me,threshold:ie,findAllMatches:ge,minMatchCharLength:z,ignoreLocation:be}=this.options;let Qe=[],Bt=0,nn=!1;this.chunks.forEach(({pattern:at,alphabet:$t,startIndex:On})=>{const{isMatch:Ct,score:Zt,indices:Wn}=Re(_t,at,$t,{location:st+On,distance:Me,threshold:ie,findAllMatches:ge,minMatchCharLength:z,includeMatches:Ge,ignoreLocation:be});Ct&&(nn=!0),Bt+=Zt,Ct&&Wn&&(Qe=[...Qe,...Wn])});let bt={isMatch:nn,score:nn?Bt/this.chunks.length:1};return nn&&Ge&&(bt.indices=Qe),bt}}class ye{constructor(_t){this.pattern=_t}static isMultiMatch(_t){return Se(_t,this.multiRegex)}static isSingleMatch(_t){return Se(_t,this.singleRegex)}search(){}}function Se(We,_t){const ct=We.match(_t);return ct?ct[1]:null}class Ae extends ye{constructor(_t){super(_t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(_t){const ct=_t===this.pattern;return{isMatch:ct,score:ct?0:1,indices:[0,this.pattern.length-1]}}}class Ee extends ye{constructor(_t){super(_t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(_t){const Ge=_t.indexOf(this.pattern)===-1;return{isMatch:Ge,score:Ge?0:1,indices:[0,_t.length-1]}}}class xe extends ye{constructor(_t){super(_t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(_t){const ct=_t.startsWith(this.pattern);return{isMatch:ct,score:ct?0:1,indices:[0,this.pattern.length-1]}}}class nt extends ye{constructor(_t){super(_t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(_t){const ct=!_t.startsWith(this.pattern);return{isMatch:ct,score:ct?0:1,indices:[0,_t.length-1]}}}class Tt extends ye{constructor(_t){super(_t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(_t){const ct=_t.endsWith(this.pattern);return{isMatch:ct,score:ct?0:1,indices:[_t.length-this.pattern.length,_t.length-1]}}}class pt extends ye{constructor(_t){super(_t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(_t){const ct=!_t.endsWith(this.pattern);return{isMatch:ct,score:ct?0:1,indices:[0,_t.length-1]}}}class Rt extends ye{constructor(_t,{location:ct=fe.location,threshold:Ge=fe.threshold,distance:st=fe.distance,includeMatches:Me=fe.includeMatches,findAllMatches:ie=fe.findAllMatches,minMatchCharLength:ge=fe.minMatchCharLength,isCaseSensitive:z=fe.isCaseSensitive,ignoreLocation:be=fe.ignoreLocation}={}){super(_t),this._bitapSearch=new pe(_t,{location:ct,threshold:Ge,distance:st,includeMatches:Me,findAllMatches:ie,minMatchCharLength:ge,isCaseSensitive:z,ignoreLocation:be})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(_t){return this._bitapSearch.searchIn(_t)}}class tt extends ye{constructor(_t){super(_t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(_t){let ct=0,Ge;const st=[],Me=this.pattern.length;for(;(Ge=_t.indexOf(this.pattern,ct))>-1;)ct=Ge+Me,st.push([Ge,ct-1]);const ie=!!st.length;return{isMatch:ie,score:ie?0:1,indices:st}}}const U=[Ae,tt,xe,nt,pt,Tt,Ee,Rt],F=U.length,Y=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,le="|";function ke(We,_t={}){return We.split(le).map(ct=>{let Ge=ct.trim().split(Y).filter(Me=>Me&&!!Me.trim()),st=[];for(let Me=0,ie=Ge.length;Me<ie;Me+=1){const ge=Ge[Me];let z=!1,be=-1;for(;!z&&++be<F;){const Qe=U[be];let Bt=Qe.isMultiMatch(ge);Bt&&(st.push(new Qe(Bt,_t)),z=!0)}if(!z)for(be=-1;++be<F;){const Qe=U[be];let Bt=Qe.isSingleMatch(ge);if(Bt){st.push(new Qe(Bt,_t));break}}}return st})}const Ye=new Set([Rt.type,tt.type]);class ft{constructor(_t,{isCaseSensitive:ct=fe.isCaseSensitive,includeMatches:Ge=fe.includeMatches,minMatchCharLength:st=fe.minMatchCharLength,ignoreLocation:Me=fe.ignoreLocation,findAllMatches:ie=fe.findAllMatches,location:ge=fe.location,threshold:z=fe.threshold,distance:be=fe.distance}={}){this.query=null,this.options={isCaseSensitive:ct,includeMatches:Ge,minMatchCharLength:st,findAllMatches:ie,ignoreLocation:Me,location:ge,threshold:z,distance:be},this.pattern=ct?_t:_t.toLowerCase(),this.query=ke(this.pattern,this.options)}static condition(_t,ct){return ct.useExtendedSearch}searchIn(_t){const ct=this.query;if(!ct)return{isMatch:!1,score:1};const{includeMatches:Ge,isCaseSensitive:st}=this.options;_t=st?_t:_t.toLowerCase();let Me=0,ie=[],ge=0;for(let z=0,be=ct.length;z<be;z+=1){const Qe=ct[z];ie.length=0,Me=0;for(let Bt=0,nn=Qe.length;Bt<nn;Bt+=1){const bt=Qe[Bt],{isMatch:at,indices:$t,score:On}=bt.search(_t);if(at){if(Me+=1,ge+=On,Ge){const Ct=bt.constructor.type;Ye.has(Ct)?ie=[...ie,...$t]:ie.push($t)}}else{ge=0,Me=0,ie.length=0;break}}if(Me){let Bt={isMatch:!0,score:ge/Me};return Ge&&(Bt.indices=ie),Bt}}return{isMatch:!1,score:1}}}const wt=[];function Ut(...We){wt.push(...We)}function Ke(We,_t){for(let ct=0,Ge=wt.length;ct<Ge;ct+=1){let st=wt[ct];if(st.condition(We,_t))return new st(We,_t)}return new pe(We,_t)}const it={AND:"$and",OR:"$or"},At={PATH:"$path",PATTERN:"$val"},et=We=>!!(We[it.AND]||We[it.OR]),ee=We=>!!We[At.PATH],I=We=>!i(We)&&v(We)&&!et(We),K=We=>({[it.AND]:Object.keys(We).map(_t=>({[_t]:We[_t]}))});function ue(We,_t,{auto:ct=!0}={}){const Ge=st=>{let Me=Object.keys(st);const ie=ee(st);if(!ie&&Me.length>1&&!et(st))return Ge(K(st));if(I(st)){const z=ie?st[At.PATH]:Me[0],be=ie?st[At.PATTERN]:st[z];if(!u(be))throw new Error(O(z));const Qe={keyId:ae(z),pattern:be};return ct&&(Qe.searcher=Ke(be,_t)),Qe}let ge={children:[],operator:Me[0]};return Me.forEach(z=>{const be=st[z];i(be)&&be.forEach(Qe=>{ge.children.push(Ge(Qe))})}),ge};return et(We)||(We=K(We)),Ge(We)}function De(We,{ignoreFieldNorm:_t=fe.ignoreFieldNorm}){We.forEach(ct=>{let Ge=1;ct.matches.forEach(({key:st,norm:Me,score:ie})=>{const ge=st?st.weight:null;Ge*=Math.pow(ie===0&&ge?Number.EPSILON:ie,(ge||1)*(_t?1:Me))}),ct.score=Ge})}function He(We,_t){const ct=We.matches;_t.matches=[],d(ct)&&ct.forEach(Ge=>{if(!d(Ge.indices)||!Ge.indices.length)return;const{indices:st,value:Me}=Ge;let ie={indices:st,value:Me};Ge.key&&(ie.key=Ge.key.src),Ge.idx>-1&&(ie.refIndex=Ge.idx),_t.matches.push(ie)})}function Fe(We,_t){_t.score=We.score}function ze(We,_t,{includeMatches:ct=fe.includeMatches,includeScore:Ge=fe.includeScore}={}){const st=[];return ct&&st.push(He),Ge&&st.push(Fe),We.map(Me=>{const{idx:ie}=Me,ge={item:_t[ie],refIndex:ie};return st.length&&st.forEach(z=>{z(Me,ge)}),ge})}class qe{constructor(_t,ct={},Ge){this.options={...fe,...ct},this.options.useExtendedSearch,this._keyStore=new T(this.options.keys),this.setCollection(_t,Ge)}setCollection(_t,ct){if(this._docs=_t,ct&&!(ct instanceof oe))throw new Error(S);this._myIndex=ct||re(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(_t){d(_t)&&(this._docs.push(_t),this._myIndex.add(_t))}remove(_t=()=>!1){const ct=[];for(let Ge=0,st=this._docs.length;Ge<st;Ge+=1){const Me=this._docs[Ge];_t(Me,Ge)&&(this.removeAt(Ge),Ge-=1,st-=1,ct.push(Me))}return ct}removeAt(_t){this._docs.splice(_t,1),this._myIndex.removeAt(_t)}getIndex(){return this._myIndex}search(_t,{limit:ct=-1}={}){const{includeMatches:Ge,includeScore:st,shouldSort:Me,sortFn:ie,ignoreFieldNorm:ge}=this.options;let z=u(_t)?u(this._docs[0])?this._searchStringList(_t):this._searchObjectList(_t):this._searchLogical(_t);return De(z,{ignoreFieldNorm:ge}),Me&&z.sort(ie),f(ct)&&ct>-1&&(z=z.slice(0,ct)),ze(z,this._docs,{includeMatches:Ge,includeScore:st})}_searchStringList(_t){const ct=Ke(_t,this.options),{records:Ge}=this._myIndex,st=[];return Ge.forEach(({v:Me,i:ie,n:ge})=>{if(!d(Me))return;const{isMatch:z,score:be,indices:Qe}=ct.searchIn(Me);z&&st.push({item:Me,idx:ie,matches:[{score:be,value:Me,norm:ge,indices:Qe}]})}),st}_searchLogical(_t){const ct=ue(_t,this.options),Ge=(ge,z,be)=>{if(!ge.children){const{keyId:Bt,searcher:nn}=ge,bt=this._findMatches({key:this._keyStore.get(Bt),value:this._myIndex.getValueForItemAtKeyId(z,Bt),searcher:nn});return bt&&bt.length?[{idx:be,item:z,matches:bt}]:[]}const Qe=[];for(let Bt=0,nn=ge.children.length;Bt<nn;Bt+=1){const bt=ge.children[Bt],at=Ge(bt,z,be);if(at.length)Qe.push(...at);else if(ge.operator===it.AND)return[]}return Qe},st=this._myIndex.records,Me={},ie=[];return st.forEach(({$:ge,i:z})=>{if(d(ge)){let be=Ge(ct,ge,z);be.length&&(Me[z]||(Me[z]={idx:z,item:ge,matches:[]},ie.push(Me[z])),be.forEach(({matches:Qe})=>{Me[z].matches.push(...Qe)}))}}),ie}_searchObjectList(_t){const ct=Ke(_t,this.options),{keys:Ge,records:st}=this._myIndex,Me=[];return st.forEach(({$:ie,i:ge})=>{if(!d(ie))return;let z=[];Ge.forEach((be,Qe)=>{z.push(...this._findMatches({key:be,value:ie[Qe],searcher:ct}))}),z.length&&Me.push({idx:ge,item:ie,matches:z})}),Me}_findMatches({key:_t,value:ct,searcher:Ge}){if(!d(ct))return[];let st=[];if(i(ct))ct.forEach(({v:Me,i:ie,n:ge})=>{if(!d(Me))return;const{isMatch:z,score:be,indices:Qe}=Ge.searchIn(Me);z&&st.push({score:be,key:_t,value:Me,idx:ie,norm:ge,indices:Qe})});else{const{v:Me,n:ie}=ct,{isMatch:ge,score:z,indices:be}=Ge.searchIn(Me);ge&&st.push({score:z,key:_t,value:Me,norm:ie,indices:be})}return st}}qe.version="6.6.2",qe.createIndex=re,qe.parseIndex=H,qe.config=fe,qe.parseQuery=ue,Ut(ft)},76239:J=>{J.exports=i;var g=9;function t(l){return l&&l.nodeType===g}function i(l){if(t(l))return l;if(t(l.ownerDocument))return l.ownerDocument;if(t(l.document))return l.document;if(l.parentNode)return i(l.parentNode);if(l.commonAncestorContainer)return i(l.commonAncestorContainer);if(l.startContainer)return i(l.startContainer);if(l.anchorNode)return i(l.anchorNode)}},27166:(J,g,t)=>{var i=t(76239);J.exports=m;var l=t(3595);function s(u){return u&&u.window===u}function m(u){if(s(u))return u;var f=i(u);if(l){f.parentWindow.execScript("document._parentWindow = window;","Javascript");var p=f._parentWindow;return f._parentWindow=null,p}else return f.defaultView||f.parentWindow}},3595:J=>{J.exports=!!document.attachEvent&&window!==document.parentWindow},17929:(J,g,t)=>{"use strict";t.d(g,{zR:()=>fe,TM:()=>Q,yJ:()=>M,sC:()=>Re,AO:()=>R,Fu:()=>D});var i=t(58168);function l(ne){return ne.charAt(0)==="/"}function s(ne,pe){for(var ye=pe,Se=ye+1,Ae=ne.length;Se<Ae;ye+=1,Se+=1)ne[ye]=ne[Se];ne.pop()}function m(ne,pe){pe===void 0&&(pe="");var ye=ne&&ne.split("/")||[],Se=pe&&pe.split("/")||[],Ae=ne&&l(ne),Ee=pe&&l(pe),xe=Ae||Ee;if(ne&&l(ne)?Se=ye:ye.length&&(Se.pop(),Se=Se.concat(ye)),!Se.length)return"/";var nt;if(Se.length){var Tt=Se[Se.length-1];nt=Tt==="."||Tt===".."||Tt===""}else nt=!1;for(var pt=0,Rt=Se.length;Rt>=0;Rt--){var tt=Se[Rt];tt==="."?s(Se,Rt):tt===".."?(s(Se,Rt),pt++):pt&&(s(Se,Rt),pt--)}if(!xe)for(;pt--;pt)Se.unshift("..");xe&&Se[0]!==""&&(!Se[0]||!l(Se[0]))&&Se.unshift("");var U=Se.join("/");return nt&&U.substr(-1)!=="/"&&(U+="/"),U}const u=m;function f(ne){return ne.valueOf?ne.valueOf():Object.prototype.valueOf.call(ne)}function p(ne,pe){if(ne===pe)return!0;if(ne==null||pe==null)return!1;if(Array.isArray(ne))return Array.isArray(pe)&&ne.length===pe.length&&ne.every(function(Ae,Ee){return p(Ae,pe[Ee])});if(typeof ne=="object"||typeof pe=="object"){var ye=f(ne),Se=f(pe);return ye!==ne||Se!==pe?p(ye,Se):Object.keys(Object.assign({},ne,pe)).every(function(Ae){return p(ne[Ae],pe[Ae])})}return!1}const v=p;var h=t(11561);function d(ne){return ne.charAt(0)==="/"?ne:"/"+ne}function b(ne){return ne.charAt(0)==="/"?ne.substr(1):ne}function y(ne,pe){return ne.toLowerCase().indexOf(pe.toLowerCase())===0&&"/?#".indexOf(ne.charAt(pe.length))!==-1}function w(ne,pe){return y(ne,pe)?ne.substr(pe.length):ne}function S(ne){return ne.charAt(ne.length-1)==="/"?ne.slice(0,-1):ne}function O(ne){var pe=ne||"/",ye="",Se="",Ae=pe.indexOf("#");Ae!==-1&&(Se=pe.substr(Ae),pe=pe.substr(0,Ae));var Ee=pe.indexOf("?");return Ee!==-1&&(ye=pe.substr(Ee),pe=pe.substr(0,Ee)),{pathname:pe,search:ye==="?"?"":ye,hash:Se==="#"?"":Se}}function R(ne){var pe=ne.pathname,ye=ne.search,Se=ne.hash,Ae=pe||"/";return ye&&ye!=="?"&&(Ae+=ye.charAt(0)==="?"?ye:"?"+ye),Se&&Se!=="#"&&(Ae+=Se.charAt(0)==="#"?Se:"#"+Se),Ae}function M(ne,pe,ye,Se){var Ae;return typeof ne=="string"?(Ae=O(ne),Ae.state=pe):(Ae=(0,i.A)({},ne),Ae.pathname===void 0&&(Ae.pathname=""),Ae.search?Ae.search.charAt(0)!=="?"&&(Ae.search="?"+Ae.search):Ae.search="",Ae.hash?Ae.hash.charAt(0)!=="#"&&(Ae.hash="#"+Ae.hash):Ae.hash="",pe!==void 0&&Ae.state===void 0&&(Ae.state=pe)),ye&&(Ae.key=ye),Se?Ae.pathname?Ae.pathname.charAt(0)!=="/"&&(Ae.pathname=u(Ae.pathname,Se.pathname)):Ae.pathname=Se.pathname:Ae.pathname||(Ae.pathname="/"),Ae}function D(ne,pe){return ne.pathname===pe.pathname&&ne.search===pe.search&&ne.hash===pe.hash&&ne.key===pe.key&&v(ne.state,pe.state)}function P(){var ne=null;function pe(xe){return ne=xe,function(){ne===xe&&(ne=null)}}function ye(xe,nt,Tt,pt){if(ne!=null){var Rt=typeof ne=="function"?ne(xe,nt):ne;typeof Rt=="string"?typeof Tt=="function"?Tt(Rt,pt):pt(!0):pt(Rt!==!1)}else pt(!0)}var Se=[];function Ae(xe){var nt=!0;function Tt(){nt&&xe.apply(void 0,arguments)}return Se.push(Tt),function(){nt=!1,Se=Se.filter(function(pt){return pt!==Tt})}}function Ee(){for(var xe=arguments.length,nt=new Array(xe),Tt=0;Tt<xe;Tt++)nt[Tt]=arguments[Tt];Se.forEach(function(pt){return pt.apply(void 0,nt)})}return{setPrompt:pe,confirmTransitionTo:ye,appendListener:Ae,notifyListeners:Ee}}var T=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(ne,pe){pe(window.confirm(ne))}function j(){var ne=window.navigator.userAgent;return(ne.indexOf("Android 2.")!==-1||ne.indexOf("Android 4.0")!==-1)&&ne.indexOf("Mobile Safari")!==-1&&ne.indexOf("Chrome")===-1&&ne.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function ae(){return window.navigator.userAgent.indexOf("Trident")===-1}function _(){return window.navigator.userAgent.indexOf("Firefox")===-1}function N(ne){return ne.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var W="popstate",he="hashchange";function me(){try{return window.history.state||{}}catch{return{}}}function fe(ne){ne===void 0&&(ne={}),T||(0,h.A)(!1);var pe=window.history,ye=j(),Se=!ae(),Ae=ne,Ee=Ae.forceRefresh,xe=Ee===void 0?!1:Ee,nt=Ae.getUserConfirmation,Tt=nt===void 0?A:nt,pt=Ae.keyLength,Rt=pt===void 0?6:pt,tt=ne.basename?S(d(ne.basename)):"";function U(_t){var ct=_t||{},Ge=ct.key,st=ct.state,Me=window.location,ie=Me.pathname,ge=Me.search,z=Me.hash,be=ie+ge+z;return tt&&(be=w(be,tt)),M(be,st,Ge)}function F(){return Math.random().toString(36).substr(2,Rt)}var Y=P();function le(_t){(0,i.A)(We,_t),We.length=pe.length,Y.notifyListeners(We.location,We.action)}function ke(_t){N(_t)||wt(U(_t.state))}function Ye(){wt(U(me()))}var ft=!1;function wt(_t){if(ft)ft=!1,le();else{var ct="POP";Y.confirmTransitionTo(_t,ct,Tt,function(Ge){Ge?le({action:ct,location:_t}):Ut(_t)})}}function Ut(_t){var ct=We.location,Ge=it.indexOf(ct.key);Ge===-1&&(Ge=0);var st=it.indexOf(_t.key);st===-1&&(st=0);var Me=Ge-st;Me&&(ft=!0,I(Me))}var Ke=U(me()),it=[Ke.key];function At(_t){return tt+R(_t)}function et(_t,ct){var Ge="PUSH",st=M(_t,ct,F(),We.location);Y.confirmTransitionTo(st,Ge,Tt,function(Me){if(Me){var ie=At(st),ge=st.key,z=st.state;if(ye)if(pe.pushState({key:ge,state:z},null,ie),xe)window.location.href=ie;else{var be=it.indexOf(We.location.key),Qe=it.slice(0,be+1);Qe.push(st.key),it=Qe,le({action:Ge,location:st})}else window.location.href=ie}})}function ee(_t,ct){var Ge="REPLACE",st=M(_t,ct,F(),We.location);Y.confirmTransitionTo(st,Ge,Tt,function(Me){if(Me){var ie=At(st),ge=st.key,z=st.state;if(ye)if(pe.replaceState({key:ge,state:z},null,ie),xe)window.location.replace(ie);else{var be=it.indexOf(We.location.key);be!==-1&&(it[be]=st.key),le({action:Ge,location:st})}else window.location.replace(ie)}})}function I(_t){pe.go(_t)}function K(){I(-1)}function ue(){I(1)}var De=0;function He(_t){De+=_t,De===1&&_t===1?(window.addEventListener(W,ke),Se&&window.addEventListener(he,Ye)):De===0&&(window.removeEventListener(W,ke),Se&&window.removeEventListener(he,Ye))}var Fe=!1;function ze(_t){_t===void 0&&(_t=!1);var ct=Y.setPrompt(_t);return Fe||(He(1),Fe=!0),function(){return Fe&&(Fe=!1,He(-1)),ct()}}function qe(_t){var ct=Y.appendListener(_t);return He(1),function(){He(-1),ct()}}var We={length:pe.length,action:"POP",location:Ke,createHref:At,push:et,replace:ee,go:I,goBack:K,goForward:ue,block:ze,listen:qe};return We}var ve="hashchange",ce={hashbang:{encodePath:function(pe){return pe.charAt(0)==="!"?pe:"!/"+b(pe)},decodePath:function(pe){return pe.charAt(0)==="!"?pe.substr(1):pe}},noslash:{encodePath:b,decodePath:d},slash:{encodePath:d,decodePath:d}};function oe(ne){var pe=ne.indexOf("#");return pe===-1?ne:ne.slice(0,pe)}function re(){var ne=window.location.href,pe=ne.indexOf("#");return pe===-1?"":ne.substring(pe+1)}function H(ne){window.location.hash=ne}function V(ne){window.location.replace(oe(window.location.href)+"#"+ne)}function Q(ne){ne===void 0&&(ne={}),T||(0,h.A)(!1);var pe=window.history,ye=_(),Se=ne,Ae=Se.getUserConfirmation,Ee=Ae===void 0?A:Ae,xe=Se.hashType,nt=xe===void 0?"slash":xe,Tt=ne.basename?S(d(ne.basename)):"",pt=ce[nt],Rt=pt.encodePath,tt=pt.decodePath;function U(){var Ge=tt(re());return Tt&&(Ge=w(Ge,Tt)),M(Ge)}var F=P();function Y(Ge){(0,i.A)(ct,Ge),ct.length=pe.length,F.notifyListeners(ct.location,ct.action)}var le=!1,ke=null;function Ye(Ge,st){return Ge.pathname===st.pathname&&Ge.search===st.search&&Ge.hash===st.hash}function ft(){var Ge=re(),st=Rt(Ge);if(Ge!==st)V(st);else{var Me=U(),ie=ct.location;if(!le&&Ye(ie,Me)||ke===R(Me))return;ke=null,wt(Me)}}function wt(Ge){if(le)le=!1,Y();else{var st="POP";F.confirmTransitionTo(Ge,st,Ee,function(Me){Me?Y({action:st,location:Ge}):Ut(Ge)})}}function Ut(Ge){var st=ct.location,Me=et.lastIndexOf(R(st));Me===-1&&(Me=0);var ie=et.lastIndexOf(R(Ge));ie===-1&&(ie=0);var ge=Me-ie;ge&&(le=!0,ue(ge))}var Ke=re(),it=Rt(Ke);Ke!==it&&V(it);var At=U(),et=[R(At)];function ee(Ge){var st=document.querySelector("base"),Me="";return st&&st.getAttribute("href")&&(Me=oe(window.location.href)),Me+"#"+Rt(Tt+R(Ge))}function I(Ge,st){var Me="PUSH",ie=M(Ge,void 0,void 0,ct.location);F.confirmTransitionTo(ie,Me,Ee,function(ge){if(ge){var z=R(ie),be=Rt(Tt+z),Qe=re()!==be;if(Qe){ke=z,H(be);var Bt=et.lastIndexOf(R(ct.location)),nn=et.slice(0,Bt+1);nn.push(z),et=nn,Y({action:Me,location:ie})}else Y()}})}function K(Ge,st){var Me="REPLACE",ie=M(Ge,void 0,void 0,ct.location);F.confirmTransitionTo(ie,Me,Ee,function(ge){if(ge){var z=R(ie),be=Rt(Tt+z),Qe=re()!==be;Qe&&(ke=z,V(be));var Bt=et.indexOf(R(ct.location));Bt!==-1&&(et[Bt]=z),Y({action:Me,location:ie})}})}function ue(Ge){pe.go(Ge)}function De(){ue(-1)}function He(){ue(1)}var Fe=0;function ze(Ge){Fe+=Ge,Fe===1&&Ge===1?window.addEventListener(ve,ft):Fe===0&&window.removeEventListener(ve,ft)}var qe=!1;function We(Ge){Ge===void 0&&(Ge=!1);var st=F.setPrompt(Ge);return qe||(ze(1),qe=!0),function(){return qe&&(qe=!1,ze(-1)),st()}}function _t(Ge){var st=F.appendListener(Ge);return ze(1),function(){ze(-1),st()}}var ct={length:pe.length,action:"POP",location:At,createHref:ee,push:I,replace:K,go:ue,goBack:De,goForward:He,block:We,listen:_t};return ct}function Te(ne,pe,ye){return Math.min(Math.max(ne,pe),ye)}function Re(ne){ne===void 0&&(ne={});var pe=ne,ye=pe.getUserConfirmation,Se=pe.initialEntries,Ae=Se===void 0?["/"]:Se,Ee=pe.initialIndex,xe=Ee===void 0?0:Ee,nt=pe.keyLength,Tt=nt===void 0?6:nt,pt=P();function Rt(et){(0,i.A)(At,et),At.length=At.entries.length,pt.notifyListeners(At.location,At.action)}function tt(){return Math.random().toString(36).substr(2,Tt)}var U=Te(xe,0,Ae.length-1),F=Ae.map(function(et){return typeof et=="string"?M(et,void 0,tt()):M(et,void 0,et.key||tt())}),Y=R;function le(et,ee){var I="PUSH",K=M(et,ee,tt(),At.location);pt.confirmTransitionTo(K,I,ye,function(ue){if(ue){var De=At.index,He=De+1,Fe=At.entries.slice(0);Fe.length>He?Fe.splice(He,Fe.length-He,K):Fe.push(K),Rt({action:I,location:K,index:He,entries:Fe})}})}function ke(et,ee){var I="REPLACE",K=M(et,ee,tt(),At.location);pt.confirmTransitionTo(K,I,ye,function(ue){ue&&(At.entries[At.index]=K,Rt({action:I,location:K}))})}function Ye(et){var ee=Te(At.index+et,0,At.entries.length-1),I="POP",K=At.entries[ee];pt.confirmTransitionTo(K,I,ye,function(ue){ue?Rt({action:I,location:K,index:ee}):Rt()})}function ft(){Ye(-1)}function wt(){Ye(1)}function Ut(et){var ee=At.index+et;return ee>=0&&ee<At.entries.length}function Ke(et){return et===void 0&&(et=!1),pt.setPrompt(et)}function it(et){return pt.appendListener(et)}var At={length:F.length,action:"POP",location:F[U],index:U,entries:F,createHref:Y,push:le,replace:ke,go:Ye,goBack:ft,goForward:wt,canGo:Ut,block:Ke,listen:it};return At}},4146:(J,g,t)=>{"use strict";var i=t(73404),l={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},m={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[i.ForwardRef]=m,f[i.Memo]=u;function p(O){return i.isMemo(O)?u:f[O.$$typeof]||l}var v=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,w=Object.prototype;function S(O,R,M){if(typeof R!="string"){if(w){var D=y(R);D&&D!==w&&S(O,D,M)}var P=h(R);d&&(P=P.concat(d(R)));for(var T=p(O),A=p(R),j=0;j<P.length;++j){var ae=P[j];if(!s[ae]&&!(M&&M[ae])&&!(A&&A[ae])&&!(T&&T[ae])){var _=b(R,ae);try{v(O,ae,_)}catch{}}}}return O}J.exports=S},3072:(J,g)=>{"use strict";/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var t=typeof Symbol=="function"&&Symbol.for,i=t?Symbol.for("react.element"):60103,l=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,m=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,p=t?Symbol.for("react.context"):60110,v=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,b=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,w=t?Symbol.for("react.memo"):60115,S=t?Symbol.for("react.lazy"):60116,O=t?Symbol.for("react.block"):60121,R=t?Symbol.for("react.fundamental"):60117,M=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function P(A){if(typeof A=="object"&&A!==null){var j=A.$$typeof;switch(j){case i:switch(A=A.type,A){case v:case h:case s:case u:case m:case b:return A;default:switch(A=A&&A.$$typeof,A){case p:case d:case S:case w:case f:return A;default:return j}}case l:return j}}}function T(A){return P(A)===h}g.AsyncMode=v,g.ConcurrentMode=h,g.ContextConsumer=p,g.ContextProvider=f,g.Element=i,g.ForwardRef=d,g.Fragment=s,g.Lazy=S,g.Memo=w,g.Portal=l,g.Profiler=u,g.StrictMode=m,g.Suspense=b,g.isAsyncMode=function(A){return T(A)||P(A)===v},g.isConcurrentMode=T,g.isContextConsumer=function(A){return P(A)===p},g.isContextProvider=function(A){return P(A)===f},g.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===i},g.isForwardRef=function(A){return P(A)===d},g.isFragment=function(A){return P(A)===s},g.isLazy=function(A){return P(A)===S},g.isMemo=function(A){return P(A)===w},g.isPortal=function(A){return P(A)===l},g.isProfiler=function(A){return P(A)===u},g.isStrictMode=function(A){return P(A)===m},g.isSuspense=function(A){return P(A)===b},g.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===s||A===h||A===u||A===m||A===b||A===y||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===w||A.$$typeof===f||A.$$typeof===p||A.$$typeof===d||A.$$typeof===R||A.$$typeof===M||A.$$typeof===D||A.$$typeof===O)},g.typeOf=P},73404:(J,g,t)=>{"use strict";J.exports=t(3072)},251:(J,g)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */g.read=function(t,i,l,s,m){var u,f,p=m*8-s-1,v=(1<<p)-1,h=v>>1,d=-7,b=l?m-1:0,y=l?-1:1,w=t[i+b];for(b+=y,u=w&(1<<-d)-1,w>>=-d,d+=p;d>0;u=u*256+t[i+b],b+=y,d-=8);for(f=u&(1<<-d)-1,u>>=-d,d+=s;d>0;f=f*256+t[i+b],b+=y,d-=8);if(u===0)u=1-h;else{if(u===v)return f?NaN:(w?-1:1)*(1/0);f=f+Math.pow(2,s),u=u-h}return(w?-1:1)*f*Math.pow(2,u-s)},g.write=function(t,i,l,s,m,u){var f,p,v,h=u*8-m-1,d=(1<<h)-1,b=d>>1,y=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=s?0:u-1,S=s?1:-1,O=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(p=isNaN(i)?1:0,f=d):(f=Math.floor(Math.log(i)/Math.LN2),i*(v=Math.pow(2,-f))<1&&(f--,v*=2),f+b>=1?i+=y/v:i+=y*Math.pow(2,1-b),i*v>=2&&(f++,v/=2),f+b>=d?(p=0,f=d):f+b>=1?(p=(i*v-1)*Math.pow(2,m),f=f+b):(p=i*Math.pow(2,b-1)*Math.pow(2,m),f=0));m>=8;t[l+w]=p&255,w+=S,p/=256,m-=8);for(f=f<<m|p,h+=m;h>0;t[l+w]=f&255,w+=S,f/=256,h-=8);t[l+w-S]|=O*128}},49568:(J,g,t)=>{"use strict";t.r(g),t.d(g,{Collection:()=>_,Iterable:()=>Fr,List:()=>Yn,Map:()=>as,OrderedMap:()=>Cn,OrderedSet:()=>Is,PairSorting:()=>Iu,Range:()=>Qn,Record:()=>rl,Repeat:()=>Bu,Seq:()=>F,Set:()=>nr,Stack:()=>Xo,default:()=>ci,fromJS:()=>en,get:()=>Sn,getIn:()=>hr,has:()=>_i,hasIn:()=>Ve,hash:()=>We,is:()=>He,isAssociative:()=>ae,isCollection:()=>D,isImmutable:()=>oe,isIndexed:()=>j,isKeyed:()=>T,isList:()=>br,isMap:()=>K,isOrdered:()=>H,isOrderedMap:()=>ue,isOrderedSet:()=>Rr,isPlainObject:()=>ln,isRecord:()=>ce,isSeq:()=>fe,isSet:()=>yr,isStack:()=>co,isValueObject:()=>De,merge:()=>Ho,mergeDeep:()=>So,mergeDeepWith:()=>gr,mergeWith:()=>ra,remove:()=>mt,removeIn:()=>$r,set:()=>fn,setIn:()=>Vn,update:()=>zr,updateIn:()=>gt,version:()=>In});var i="delete",l=5,s=1<<l,m=s-1,u={};function f(){return{value:!1}}function p(Le){Le&&(Le.value=!0)}function v(){}function h(Le){return Le.size===void 0&&(Le.size=Le.__iterate(b)),Le.size}function d(Le,te){if(typeof te!="number"){var Ue=te>>>0;if(""+Ue!==te||Ue===4294967295)return NaN;te=Ue}return te<0?h(Le)+te:te}function b(){return!0}function y(Le,te,Ue){return(Le===0&&!R(Le)||Ue!==void 0&&Le<=-Ue)&&(te===void 0||Ue!==void 0&&te>=Ue)}function w(Le,te){return O(Le,te,0)}function S(Le,te){return O(Le,te,te)}function O(Le,te,Ue){return Le===void 0?Ue:R(Le)?te===1/0?te:Math.max(0,te+Le)|0:te===void 0||te===Le?Le:Math.min(te,Le)|0}function R(Le){return Le<0||Le===0&&1/Le===-1/0}var M="@@__IMMUTABLE_ITERABLE__@@";function D(Le){return!!(Le&&Le[M])}var P="@@__IMMUTABLE_KEYED__@@";function T(Le){return!!(Le&&Le[P])}var A="@@__IMMUTABLE_INDEXED__@@";function j(Le){return!!(Le&&Le[A])}function ae(Le){return T(Le)||j(Le)}var _=function(te){return D(te)?te:F(te)},N=function(Le){function te(Ue){return T(Ue)?Ue:Y(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te}(_),W=function(Le){function te(Ue){return j(Ue)?Ue:le(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te}(_),he=function(Le){function te(Ue){return D(Ue)&&!ae(Ue)?Ue:ke(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te}(_);_.Keyed=N,_.Indexed=W,_.Set=he;var me="@@__IMMUTABLE_SEQ__@@";function fe(Le){return!!(Le&&Le[me])}var ve="@@__IMMUTABLE_RECORD__@@";function ce(Le){return!!(Le&&Le[ve])}function oe(Le){return D(Le)||ce(Le)}var re="@@__IMMUTABLE_ORDERED__@@";function H(Le){return!!(Le&&Le[re])}var V=0,Q=1,Te=2,Re=typeof Symbol=="function"&&Symbol.iterator,ne="@@iterator",pe=Re||ne,ye=function(te){this.next=te};ye.prototype.toString=function(){return"[Iterator]"},ye.KEYS=V,ye.VALUES=Q,ye.ENTRIES=Te,ye.prototype.inspect=ye.prototype.toSource=function(){return this.toString()},ye.prototype[pe]=function(){return this};function Se(Le,te,Ue,rt){var ht=Le===0?te:Le===1?Ue:[te,Ue];return rt?rt.value=ht:rt={value:ht,done:!1},rt}function Ae(){return{value:void 0,done:!0}}function Ee(Le){return Array.isArray(Le)?!0:!!Tt(Le)}function xe(Le){return Le&&typeof Le.next=="function"}function nt(Le){var te=Tt(Le);return te&&te.call(Le)}function Tt(Le){var te=Le&&(Re&&Le[Re]||Le[ne]);if(typeof te=="function")return te}function pt(Le){var te=Tt(Le);return te&&te===Le.entries}function Rt(Le){var te=Tt(Le);return te&&te===Le.keys}var tt=Object.prototype.hasOwnProperty;function U(Le){return Array.isArray(Le)||typeof Le=="string"?!0:Le&&typeof Le=="object"&&Number.isInteger(Le.length)&&Le.length>=0&&(Le.length===0?Object.keys(Le).length===1:Le.hasOwnProperty(Le.length-1))}var F=function(Le){function te(Ue){return Ue==null?Ke():oe(Ue)?Ue.toSeq():et(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.toSeq=function(){return this},te.prototype.toString=function(){return this.__toString("Seq {","}")},te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},te.prototype.__iterate=function(rt,ht){var Gt=this._cache;if(Gt){for(var xn=Gt.length,Hn=0;Hn!==xn;){var wr=Gt[ht?xn-++Hn:Hn++];if(rt(wr[1],wr[0],this)===!1)break}return Hn}return this.__iterateUncached(rt,ht)},te.prototype.__iterator=function(rt,ht){var Gt=this._cache;if(Gt){var xn=Gt.length,Hn=0;return new ye(function(){if(Hn===xn)return Ae();var wr=Gt[ht?xn-++Hn:Hn++];return Se(rt,wr[0],wr[1])})}return this.__iteratorUncached(rt,ht)},te}(_),Y=function(Le){function te(Ue){return Ue==null?Ke().toKeyedSeq():D(Ue)?T(Ue)?Ue.toSeq():Ue.fromEntrySeq():ce(Ue)?Ue.toSeq():it(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.toKeyedSeq=function(){return this},te}(F),le=function(Le){function te(Ue){return Ue==null?Ke():D(Ue)?T(Ue)?Ue.entrySeq():Ue.toIndexedSeq():ce(Ue)?Ue.toSeq().entrySeq():At(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return te(arguments)},te.prototype.toIndexedSeq=function(){return this},te.prototype.toString=function(){return this.__toString("Seq [","]")},te}(F),ke=function(Le){function te(Ue){return(D(Ue)&&!ae(Ue)?Ue:le(Ue)).toSetSeq()}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return te(arguments)},te.prototype.toSetSeq=function(){return this},te}(F);F.isSeq=fe,F.Keyed=Y,F.Set=ke,F.Indexed=le,F.prototype[me]=!0;var Ye=function(Le){function te(Ue){this._array=Ue,this.size=Ue.length}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.get=function(rt,ht){return this.has(rt)?this._array[d(this,rt)]:ht},te.prototype.__iterate=function(rt,ht){for(var Gt=this._array,xn=Gt.length,Hn=0;Hn!==xn;){var wr=ht?xn-++Hn:Hn++;if(rt(Gt[wr],wr,this)===!1)break}return Hn},te.prototype.__iterator=function(rt,ht){var Gt=this._array,xn=Gt.length,Hn=0;return new ye(function(){if(Hn===xn)return Ae();var wr=ht?xn-++Hn:Hn++;return Se(rt,wr,Gt[wr])})},te}(le),ft=function(Le){function te(Ue){var rt=Object.keys(Ue).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Ue):[]);this._object=Ue,this._keys=rt,this.size=rt.length}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.get=function(rt,ht){return ht!==void 0&&!this.has(rt)?ht:this._object[rt]},te.prototype.has=function(rt){return tt.call(this._object,rt)},te.prototype.__iterate=function(rt,ht){for(var Gt=this._object,xn=this._keys,Hn=xn.length,wr=0;wr!==Hn;){var Wr=xn[ht?Hn-++wr:wr++];if(rt(Gt[Wr],Wr,this)===!1)break}return wr},te.prototype.__iterator=function(rt,ht){var Gt=this._object,xn=this._keys,Hn=xn.length,wr=0;return new ye(function(){if(wr===Hn)return Ae();var Wr=xn[ht?Hn-++wr:wr++];return Se(rt,Wr,Gt[Wr])})},te}(Y);ft.prototype[re]=!0;var wt=function(Le){function te(Ue){this._collection=Ue,this.size=Ue.length||Ue.size}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.__iterateUncached=function(rt,ht){if(ht)return this.cacheResult().__iterate(rt,ht);var Gt=this._collection,xn=nt(Gt),Hn=0;if(xe(xn))for(var wr;!(wr=xn.next()).done&&rt(wr.value,Hn++,this)!==!1;);return Hn},te.prototype.__iteratorUncached=function(rt,ht){if(ht)return this.cacheResult().__iterator(rt,ht);var Gt=this._collection,xn=nt(Gt);if(!xe(xn))return new ye(Ae);var Hn=0;return new ye(function(){var wr=xn.next();return wr.done?wr:Se(rt,Hn++,wr.value)})},te}(le),Ut;function Ke(){return Ut||(Ut=new Ye([]))}function it(Le){var te=ee(Le);if(te)return te.fromEntrySeq();if(typeof Le=="object")return new ft(Le);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+Le)}function At(Le){var te=ee(Le);if(te)return te;throw new TypeError("Expected Array or collection object of values: "+Le)}function et(Le){var te=ee(Le);if(te)return pt(Le)?te.fromEntrySeq():Rt(Le)?te.toSetSeq():te;if(typeof Le=="object")return new ft(Le);throw new TypeError("Expected Array or collection object of values, or keyed object: "+Le)}function ee(Le){return U(Le)?new Ye(Le):Ee(Le)?new wt(Le):void 0}var I="@@__IMMUTABLE_MAP__@@";function K(Le){return!!(Le&&Le[I])}function ue(Le){return K(Le)&&H(Le)}function De(Le){return!!(Le&&typeof Le.equals=="function"&&typeof Le.hashCode=="function")}function He(Le,te){if(Le===te||Le!==Le&&te!==te)return!0;if(!Le||!te)return!1;if(typeof Le.valueOf=="function"&&typeof te.valueOf=="function"){if(Le=Le.valueOf(),te=te.valueOf(),Le===te||Le!==Le&&te!==te)return!0;if(!Le||!te)return!1}return!!(De(Le)&&De(te)&&Le.equals(te))}var Fe=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(te,Ue){te|=0,Ue|=0;var rt=te&65535,ht=Ue&65535;return rt*ht+((te>>>16)*ht+rt*(Ue>>>16)<<16>>>0)|0};function ze(Le){return Le>>>1&1073741824|Le&3221225471}var qe=Object.prototype.valueOf;function We(Le){if(Le==null)return _t(Le);if(typeof Le.hashCode=="function")return ze(Le.hashCode(Le));var te=Qe(Le);if(te==null)return _t(te);switch(typeof te){case"boolean":return te?1108378657:1108378656;case"number":return ct(te);case"string":return te.length>Ct?Ge(te):st(te);case"object":case"function":return ie(te);case"symbol":return Me(te);default:if(typeof te.toString=="function")return st(te.toString());throw new Error("Value type "+typeof te+" cannot be hashed.")}}function _t(Le){return Le===null?1108378658:1108378659}function ct(Le){if(Le!==Le||Le===1/0)return 0;var te=Le|0;for(te!==Le&&(te^=Le*4294967295);Le>4294967295;)Le/=4294967295,te^=Le;return ze(te)}function Ge(Le){var te=Zn[Le];return te===void 0&&(te=st(Le),Wn===Zt&&(Wn=0,Zn={}),Wn++,Zn[Le]=te),te}function st(Le){for(var te=0,Ue=0;Ue<Le.length;Ue++)te=31*te+Le.charCodeAt(Ue)|0;return ze(te)}function Me(Le){var te=at[Le];return te!==void 0||(te=Bt(),at[Le]=te),te}function ie(Le){var te;if(nn&&(te=bt.get(Le),te!==void 0)||(te=Le[On],te!==void 0)||!z&&(te=Le.propertyIsEnumerable&&Le.propertyIsEnumerable[On],te!==void 0||(te=be(Le),te!==void 0)))return te;if(te=Bt(),nn)bt.set(Le,te);else{if(ge!==void 0&&ge(Le)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(z)Object.defineProperty(Le,On,{enumerable:!1,configurable:!1,writable:!1,value:te});else if(Le.propertyIsEnumerable!==void 0&&Le.propertyIsEnumerable===Le.constructor.prototype.propertyIsEnumerable)Le.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},Le.propertyIsEnumerable[On]=te;else if(Le.nodeType!==void 0)Le[On]=te;else throw new Error("Unable to set a non-enumerable property on object.")}return te}var ge=Object.isExtensible,z=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function be(Le){if(Le&&Le.nodeType>0)switch(Le.nodeType){case 1:return Le.uniqueID;case 9:return Le.documentElement&&Le.documentElement.uniqueID}}function Qe(Le){return Le.valueOf!==qe&&typeof Le.valueOf=="function"?Le.valueOf(Le):Le}function Bt(){var Le=++$t;return $t&1073741824&&($t=0),Le}var nn=typeof WeakMap=="function",bt;nn&&(bt=new WeakMap);var at=Object.create(null),$t=0,On="__immutablehash__";typeof Symbol=="function"&&(On=Symbol(On));var Ct=16,Zt=255,Wn=0,Zn={},xt=function(Le){function te(Ue,rt){this._iter=Ue,this._useKeys=rt,this.size=Ue.size}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.get=function(rt,ht){return this._iter.get(rt,ht)},te.prototype.has=function(rt){return this._iter.has(rt)},te.prototype.valueSeq=function(){return this._iter.valueSeq()},te.prototype.reverse=function(){var rt=this,ht=cn(this,!0);return this._useKeys||(ht.valueSeq=function(){return rt._iter.toSeq().reverse()}),ht},te.prototype.map=function(rt,ht){var Gt=this,xn=hn(this,rt,ht);return this._useKeys||(xn.valueSeq=function(){return Gt._iter.toSeq().map(rt,ht)}),xn},te.prototype.__iterate=function(rt,ht){var Gt=this;return this._iter.__iterate(function(xn,Hn){return rt(xn,Hn,Gt)},ht)},te.prototype.__iterator=function(rt,ht){return this._iter.__iterator(rt,ht)},te}(Y);xt.prototype[re]=!0;var Xe=function(Le){function te(Ue){this._iter=Ue,this.size=Ue.size}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.includes=function(rt){return this._iter.includes(rt)},te.prototype.__iterate=function(rt,ht){var Gt=this,xn=0;return ht&&h(this),this._iter.__iterate(function(Hn){return rt(Hn,ht?Gt.size-++xn:xn++,Gt)},ht)},te.prototype.__iterator=function(rt,ht){var Gt=this,xn=this._iter.__iterator(Q,ht),Hn=0;return ht&&h(this),new ye(function(){var wr=xn.next();return wr.done?wr:Se(rt,ht?Gt.size-++Hn:Hn++,wr.value,wr)})},te}(le),gn=function(Le){function te(Ue){this._iter=Ue,this.size=Ue.size}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.has=function(rt){return this._iter.includes(rt)},te.prototype.__iterate=function(rt,ht){var Gt=this;return this._iter.__iterate(function(xn){return rt(xn,xn,Gt)},ht)},te.prototype.__iterator=function(rt,ht){var Gt=this._iter.__iterator(Q,ht);return new ye(function(){var xn=Gt.next();return xn.done?xn:Se(rt,xn.value,xn.value,xn)})},te}(ke),Qt=function(Le){function te(Ue){this._iter=Ue,this.size=Ue.size}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.entrySeq=function(){return this._iter.toSeq()},te.prototype.__iterate=function(rt,ht){var Gt=this;return this._iter.__iterate(function(xn){if(xn){xi(xn);var Hn=D(xn);return rt(Hn?xn.get(1):xn[1],Hn?xn.get(0):xn[0],Gt)}},ht)},te.prototype.__iterator=function(rt,ht){var Gt=this._iter.__iterator(Q,ht);return new ye(function(){for(;;){var xn=Gt.next();if(xn.done)return xn;var Hn=xn.value;if(Hn){xi(Hn);var wr=D(Hn);return Se(rt,wr?Hn.get(0):Hn[0],wr?Hn.get(1):Hn[1],xn)}}})},te}(Y);Xe.prototype.cacheResult=xt.prototype.cacheResult=gn.prototype.cacheResult=Qt.prototype.cacheResult=io;function Dt(Le){var te=Pi(Le);return te._iter=Le,te.size=Le.size,te.flip=function(){return Le},te.reverse=function(){var Ue=Le.reverse.apply(this);return Ue.flip=function(){return Le.reverse()},Ue},te.has=function(Ue){return Le.includes(Ue)},te.includes=function(Ue){return Le.has(Ue)},te.cacheResult=io,te.__iterateUncached=function(Ue,rt){var ht=this;return Le.__iterate(function(Gt,xn){return Ue(xn,Gt,ht)!==!1},rt)},te.__iteratorUncached=function(Ue,rt){if(Ue===Te){var ht=Le.__iterator(Ue,rt);return new ye(function(){var Gt=ht.next();if(!Gt.done){var xn=Gt.value[0];Gt.value[0]=Gt.value[1],Gt.value[1]=xn}return Gt})}return Le.__iterator(Ue===Q?V:Q,rt)},te}function hn(Le,te,Ue){var rt=Pi(Le);return rt.size=Le.size,rt.has=function(ht){return Le.has(ht)},rt.get=function(ht,Gt){var xn=Le.get(ht,u);return xn===u?Gt:te.call(Ue,xn,ht,Le)},rt.__iterateUncached=function(ht,Gt){var xn=this;return Le.__iterate(function(Hn,wr,Wr){return ht(te.call(Ue,Hn,wr,Wr),wr,xn)!==!1},Gt)},rt.__iteratorUncached=function(ht,Gt){var xn=Le.__iterator(Te,Gt);return new ye(function(){var Hn=xn.next();if(Hn.done)return Hn;var wr=Hn.value,Wr=wr[0];return Se(ht,Wr,te.call(Ue,wr[1],Wr,Le),Hn)})},rt}function cn(Le,te){var Ue=this,rt=Pi(Le);return rt._iter=Le,rt.size=Le.size,rt.reverse=function(){return Le},Le.flip&&(rt.flip=function(){var ht=Dt(Le);return ht.reverse=function(){return Le.flip()},ht}),rt.get=function(ht,Gt){return Le.get(te?ht:-1-ht,Gt)},rt.has=function(ht){return Le.has(te?ht:-1-ht)},rt.includes=function(ht){return Le.includes(ht)},rt.cacheResult=io,rt.__iterate=function(ht,Gt){var xn=this,Hn=0;return Gt&&h(Le),Le.__iterate(function(wr,Wr){return ht(wr,te?Wr:Gt?xn.size-++Hn:Hn++,xn)},!Gt)},rt.__iterator=function(ht,Gt){var xn=0;Gt&&h(Le);var Hn=Le.__iterator(Te,!Gt);return new ye(function(){var wr=Hn.next();if(wr.done)return wr;var Wr=wr.value;return Se(ht,te?Wr[0]:Gt?Ue.size-++xn:xn++,Wr[1],wr)})},rt}function an(Le,te,Ue,rt){var ht=Pi(Le);return rt&&(ht.has=function(Gt){var xn=Le.get(Gt,u);return xn!==u&&!!te.call(Ue,xn,Gt,Le)},ht.get=function(Gt,xn){var Hn=Le.get(Gt,u);return Hn!==u&&te.call(Ue,Hn,Gt,Le)?Hn:xn}),ht.__iterateUncached=function(Gt,xn){var Hn=this,wr=0;return Le.__iterate(function(Wr,vt,Vt){if(te.call(Ue,Wr,vt,Vt))return wr++,Gt(Wr,rt?vt:wr-1,Hn)},xn),wr},ht.__iteratorUncached=function(Gt,xn){var Hn=Le.__iterator(Te,xn),wr=0;return new ye(function(){for(;;){var Wr=Hn.next();if(Wr.done)return Wr;var vt=Wr.value,Vt=vt[0],dn=vt[1];if(te.call(Ue,dn,Vt,Le))return Se(Gt,rt?Vt:wr++,dn,Wr)}})},ht}function Or(Le,te,Ue){var rt=as().asMutable();return Le.__iterate(function(ht,Gt){rt.update(te.call(Ue,ht,Gt,Le),0,function(xn){return xn+1})}),rt.asImmutable()}function Ln(Le,te,Ue){var rt=T(Le),ht=(H(Le)?Cn():as()).asMutable();Le.__iterate(function(xn,Hn){ht.update(te.call(Ue,xn,Hn,Le),function(wr){return wr=wr||[],wr.push(rt?[Hn,xn]:xn),wr})});var Gt=Ai(Le);return ht.map(function(xn){return Kr(Le,Gt(xn))}).asImmutable()}function En(Le,te,Ue){var rt=T(Le),ht=[[],[]];Le.__iterate(function(xn,Hn){ht[te.call(Ue,xn,Hn,Le)?1:0].push(rt?[Hn,xn]:xn)});var Gt=Ai(Le);return ht.map(function(xn){return Kr(Le,Gt(xn))})}function Gn(Le,te,Ue,rt){var ht=Le.size;if(y(te,Ue,ht))return Le;var Gt=w(te,ht),xn=S(Ue,ht);if(Gt!==Gt||xn!==xn)return Gn(Le.toSeq().cacheResult(),te,Ue,rt);var Hn=xn-Gt,wr;Hn===Hn&&(wr=Hn<0?0:Hn);var Wr=Pi(Le);return Wr.size=wr===0?wr:Le.size&&wr||void 0,!rt&&fe(Le)&&wr>=0&&(Wr.get=function(vt,Vt){return vt=d(this,vt),vt>=0&&vt<wr?Le.get(vt+Gt,Vt):Vt}),Wr.__iterateUncached=function(vt,Vt){var dn=this;if(wr===0)return 0;if(Vt)return this.cacheResult().__iterate(vt,Vt);var yn=0,ar=!0,wi=0;return Le.__iterate(function(mi,ho){if(!(ar&&(ar=yn++<Gt)))return wi++,vt(mi,rt?ho:wi-1,dn)!==!1&&wi!==wr}),wi},Wr.__iteratorUncached=function(vt,Vt){if(wr!==0&&Vt)return this.cacheResult().__iterator(vt,Vt);if(wr===0)return new ye(Ae);var dn=Le.__iterator(vt,Vt),yn=0,ar=0;return new ye(function(){for(;yn++<Gt;)dn.next();if(++ar>wr)return Ae();var wi=dn.next();return rt||vt===Q||wi.done?wi:vt===V?Se(vt,ar-1,void 0,wi):Se(vt,ar-1,wi.value[1],wi)})},Wr}function rr(Le,te,Ue){var rt=Pi(Le);return rt.__iterateUncached=function(ht,Gt){var xn=this;if(Gt)return this.cacheResult().__iterate(ht,Gt);var Hn=0;return Le.__iterate(function(wr,Wr,vt){return te.call(Ue,wr,Wr,vt)&&++Hn&&ht(wr,Wr,xn)}),Hn},rt.__iteratorUncached=function(ht,Gt){var xn=this;if(Gt)return this.cacheResult().__iterator(ht,Gt);var Hn=Le.__iterator(Te,Gt),wr=!0;return new ye(function(){if(!wr)return Ae();var Wr=Hn.next();if(Wr.done)return Wr;var vt=Wr.value,Vt=vt[0],dn=vt[1];return te.call(Ue,dn,Vt,xn)?ht===Te?Wr:Se(ht,Vt,dn,Wr):(wr=!1,Ae())})},rt}function sr(Le,te,Ue,rt){var ht=Pi(Le);return ht.__iterateUncached=function(Gt,xn){var Hn=this;if(xn)return this.cacheResult().__iterate(Gt,xn);var wr=!0,Wr=0;return Le.__iterate(function(vt,Vt,dn){if(!(wr&&(wr=te.call(Ue,vt,Vt,dn))))return Wr++,Gt(vt,rt?Vt:Wr-1,Hn)}),Wr},ht.__iteratorUncached=function(Gt,xn){var Hn=this;if(xn)return this.cacheResult().__iterator(Gt,xn);var wr=Le.__iterator(Te,xn),Wr=!0,vt=0;return new ye(function(){var Vt,dn,yn;do{if(Vt=wr.next(),Vt.done)return rt||Gt===Q?Vt:Gt===V?Se(Gt,vt++,void 0,Vt):Se(Gt,vt++,Vt.value[1],Vt);var ar=Vt.value;dn=ar[0],yn=ar[1],Wr&&(Wr=te.call(Ue,yn,dn,Hn))}while(Wr);return Gt===Te?Vt:Se(Gt,dn,yn,Vt)})},ht}function pi(Le,te){var Ue=T(Le),rt=[Le].concat(te).map(function(xn){return D(xn)?Ue&&(xn=N(xn)):xn=Ue?it(xn):At(Array.isArray(xn)?xn:[xn]),xn}).filter(function(xn){return xn.size!==0});if(rt.length===0)return Le;if(rt.length===1){var ht=rt[0];if(ht===Le||Ue&&T(ht)||j(Le)&&j(ht))return ht}var Gt=new Ye(rt);return Ue?Gt=Gt.toKeyedSeq():j(Le)||(Gt=Gt.toSetSeq()),Gt=Gt.flatten(!0),Gt.size=rt.reduce(function(xn,Hn){if(xn!==void 0){var wr=Hn.size;if(wr!==void 0)return xn+wr}},0),Gt}function yi(Le,te,Ue){var rt=Pi(Le);return rt.__iterateUncached=function(ht,Gt){if(Gt)return this.cacheResult().__iterate(ht,Gt);var xn=0,Hn=!1;function wr(Wr,vt){Wr.__iterate(function(Vt,dn){return(!te||vt<te)&&D(Vt)?wr(Vt,vt+1):(xn++,ht(Vt,Ue?dn:xn-1,rt)===!1&&(Hn=!0)),!Hn},Gt)}return wr(Le,0),xn},rt.__iteratorUncached=function(ht,Gt){if(Gt)return this.cacheResult().__iterator(ht,Gt);var xn=Le.__iterator(ht,Gt),Hn=[],wr=0;return new ye(function(){for(;xn;){var Wr=xn.next();if(Wr.done!==!1){xn=Hn.pop();continue}var vt=Wr.value;if(ht===Te&&(vt=vt[1]),(!te||Hn.length<te)&&D(vt))Hn.push(xn),xn=vt.__iterator(ht,Gt);else return Ue?Wr:Se(ht,wr++,vt,Wr)}return Ae()})},rt}function jr(Le,te,Ue){var rt=Ai(Le);return Le.toSeq().map(function(ht,Gt){return rt(te.call(Ue,ht,Gt,Le))}).flatten(!0)}function ui(Le,te){var Ue=Pi(Le);return Ue.size=Le.size&&Le.size*2-1,Ue.__iterateUncached=function(rt,ht){var Gt=this,xn=0;return Le.__iterate(function(Hn){return(!xn||rt(te,xn++,Gt)!==!1)&&rt(Hn,xn++,Gt)!==!1},ht),xn},Ue.__iteratorUncached=function(rt,ht){var Gt=Le.__iterator(Q,ht),xn=0,Hn;return new ye(function(){return(!Hn||xn%2)&&(Hn=Gt.next(),Hn.done)?Hn:xn%2?Se(rt,xn++,te):Se(rt,xn++,Hn.value,Hn)})},Ue}function bi(Le,te,Ue){te||(te=lo);var rt=T(Le),ht=0,Gt=Le.toSeq().map(function(xn,Hn){return[Hn,xn,ht++,Ue?Ue(xn,Hn,Le):xn]}).valueSeq().toArray();return Gt.sort(function(xn,Hn){return te(xn[3],Hn[3])||xn[2]-Hn[2]}).forEach(rt?function(xn,Hn){Gt[Hn].length=2}:function(xn,Hn){Gt[Hn]=xn[1]}),rt?Y(Gt):j(Le)?le(Gt):ke(Gt)}function ri(Le,te,Ue){if(te||(te=lo),Ue){var rt=Le.toSeq().map(function(ht,Gt){return[ht,Ue(ht,Gt,Le)]}).reduce(function(ht,Gt){return hi(te,ht[1],Gt[1])?Gt:ht});return rt&&rt[0]}return Le.reduce(function(ht,Gt){return hi(te,ht,Gt)?Gt:ht})}function hi(Le,te,Ue){var rt=Le(Ue,te);return rt===0&&Ue!==te&&(Ue==null||Ue!==Ue)||rt>0}function Si(Le,te,Ue,rt){var ht=Pi(Le),Gt=new Ye(Ue).map(function(xn){return xn.size});return ht.size=rt?Gt.max():Gt.min(),ht.__iterate=function(xn,Hn){for(var wr=this.__iterator(Q,Hn),Wr,vt=0;!(Wr=wr.next()).done&&xn(Wr.value,vt++,this)!==!1;);return vt},ht.__iteratorUncached=function(xn,Hn){var wr=Ue.map(function(Vt){return Vt=_(Vt),nt(Hn?Vt.reverse():Vt)}),Wr=0,vt=!1;return new ye(function(){var Vt;return vt||(Vt=wr.map(function(dn){return dn.next()}),vt=rt?Vt.every(function(dn){return dn.done}):Vt.some(function(dn){return dn.done})),vt?Ae():Se(xn,Wr++,te.apply(null,Vt.map(function(dn){return dn.value})))})},ht}function Kr(Le,te){return Le===te?Le:fe(Le)?te:Le.constructor(te)}function xi(Le){if(Le!==Object(Le))throw new TypeError("Expected [K, V] tuple: "+Le)}function Ai(Le){return T(Le)?N:j(Le)?W:he}function Pi(Le){return Object.create((T(Le)?Y:j(Le)?le:ke).prototype)}function io(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):F.prototype.cacheResult.call(this)}function lo(Le,te){return Le===void 0&&te===void 0?0:Le===void 0?1:te===void 0?-1:Le>te?1:Le<te?-1:0}function Gr(Le,te){te=te||0;for(var Ue=Math.max(0,Le.length-te),rt=new Array(Ue),ht=0;ht<Ue;ht++)rt[ht]=Le[ht+te];return rt}function un(Le,te){if(!Le)throw new Error(te)}function qn(Le){un(Le!==1/0,"Cannot perform this action with an infinite size.")}function kn(Le){if(U(Le)&&typeof Le!="string")return Le;if(H(Le))return Le.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+Le)}var St=Object.prototype.toString;function ln(Le){if(!Le||typeof Le!="object"||St.call(Le)!=="[object Object]")return!1;var te=Object.getPrototypeOf(Le);if(te===null)return!0;for(var Ue=te,rt=Object.getPrototypeOf(te);rt!==null;)Ue=rt,rt=Object.getPrototypeOf(Ue);return Ue===te}function An(Le){return typeof Le=="object"&&(oe(Le)||Array.isArray(Le)||ln(Le))}function Cr(Le){try{return typeof Le=="string"?JSON.stringify(Le):String(Le)}catch{return JSON.stringify(Le)}}function _i(Le,te){return oe(Le)?Le.has(te):An(Le)&&tt.call(Le,te)}function Sn(Le,te,Ue){return oe(Le)?Le.get(te,Ue):_i(Le,te)?typeof Le.get=="function"?Le.get(te):Le[te]:Ue}function ir(Le){if(Array.isArray(Le))return Gr(Le);var te={};for(var Ue in Le)tt.call(Le,Ue)&&(te[Ue]=Le[Ue]);return te}function mt(Le,te){if(!An(Le))throw new TypeError("Cannot update non-data-structure value: "+Le);if(oe(Le)){if(!Le.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+Le);return Le.remove(te)}if(!tt.call(Le,te))return Le;var Ue=ir(Le);return Array.isArray(Ue)?Ue.splice(te,1):delete Ue[te],Ue}function fn(Le,te,Ue){if(!An(Le))throw new TypeError("Cannot update non-data-structure value: "+Le);if(oe(Le)){if(!Le.set)throw new TypeError("Cannot update immutable value without .set() method: "+Le);return Le.set(te,Ue)}if(tt.call(Le,te)&&Ue===Le[te])return Le;var rt=ir(Le);return rt[te]=Ue,rt}function gt(Le,te,Ue,rt){rt||(rt=Ue,Ue=void 0);var ht=tn(oe(Le),Le,kn(te),0,Ue,rt);return ht===u?Ue:ht}function tn(Le,te,Ue,rt,ht,Gt){var xn=te===u;if(rt===Ue.length){var Hn=xn?ht:te,wr=Gt(Hn);return wr===Hn?te:wr}if(!xn&&!An(te))throw new TypeError("Cannot update within non-data-structure value in path ["+Ue.slice(0,rt).map(Cr)+"]: "+te);var Wr=Ue[rt],vt=xn?u:Sn(te,Wr,u),Vt=tn(vt===u?Le:oe(vt),vt,Ue,rt+1,ht,Gt);return Vt===vt?te:Vt===u?mt(te,Wr):fn(xn?Le?on():{}:te,Wr,Vt)}function Vn(Le,te,Ue){return gt(Le,te,u,function(){return Ue})}function Ur(Le,te){return Vn(this,Le,te)}function $r(Le,te){return gt(Le,te,function(){return u})}function Pr(Le){return $r(this,Le)}function zr(Le,te,Ue,rt){return gt(Le,[te],Ue,rt)}function gi(Le,te,Ue){return arguments.length===1?Le(this):zr(this,Le,te,Ue)}function $i(Le,te,Ue){return gt(this,Le,te,Ue)}function eo(){for(var Le=[],te=arguments.length;te--;)Le[te]=arguments[te];return so(this,Le)}function ki(Le){for(var te=[],Ue=arguments.length-1;Ue-- >0;)te[Ue]=arguments[Ue+1];if(typeof Le!="function")throw new TypeError("Invalid merger function: "+Le);return so(this,te,Le)}function so(Le,te,Ue){for(var rt=[],ht=0;ht<te.length;ht++){var Gt=N(te[ht]);Gt.size!==0&&rt.push(Gt)}return rt.length===0?Le:Le.toSeq().size===0&&!Le.__ownerID&&rt.length===1?Le.constructor(rt[0]):Le.withMutations(function(xn){for(var Hn=Ue?function(Wr,vt){zr(xn,vt,u,function(Vt){return Vt===u?Wr:Ue(Vt,Wr,vt)})}:function(Wr,vt){xn.set(vt,Wr)},wr=0;wr<rt.length;wr++)rt[wr].forEach(Hn)})}function Ho(Le){for(var te=[],Ue=arguments.length-1;Ue-- >0;)te[Ue]=arguments[Ue+1];return Vi(Le,te)}function ra(Le,te){for(var Ue=[],rt=arguments.length-2;rt-- >0;)Ue[rt]=arguments[rt+2];return Vi(te,Ue,Le)}function So(Le){for(var te=[],Ue=arguments.length-1;Ue-- >0;)te[Ue]=arguments[Ue+1];return di(Le,te)}function gr(Le,te){for(var Ue=[],rt=arguments.length-2;rt-- >0;)Ue[rt]=arguments[rt+2];return di(te,Ue,Le)}function di(Le,te,Ue){return Vi(Le,te,Ro(Ue))}function Vi(Le,te,Ue){if(!An(Le))throw new TypeError("Cannot merge into non-data-structure value: "+Le);if(oe(Le))return typeof Ue=="function"&&Le.mergeWith?Le.mergeWith.apply(Le,[Ue].concat(te)):Le.merge?Le.merge.apply(Le,te):Le.concat.apply(Le,te);for(var rt=Array.isArray(Le),ht=Le,Gt=rt?W:N,xn=rt?function(wr){ht===Le&&(ht=ir(ht)),ht.push(wr)}:function(wr,Wr){var vt=tt.call(ht,Wr),Vt=vt&&Ue?Ue(ht[Wr],wr,Wr):wr;(!vt||Vt!==ht[Wr])&&(ht===Le&&(ht=ir(ht)),ht[Wr]=Vt)},Hn=0;Hn<te.length;Hn++)Gt(te[Hn]).forEach(xn);return ht}function Ro(Le){function te(Ue,rt,ht){return An(Ue)&&An(rt)&&na(Ue,rt)?Vi(Ue,[rt],te):Le?Le(Ue,rt,ht):rt}return te}function na(Le,te){var Ue=F(Le),rt=F(te);return j(Ue)===j(rt)&&T(Ue)===T(rt)}function ta(){for(var Le=[],te=arguments.length;te--;)Le[te]=arguments[te];return di(this,Le)}function aa(Le){for(var te=[],Ue=arguments.length-1;Ue-- >0;)te[Ue]=arguments[Ue+1];return di(this,te,Le)}function vi(Le){for(var te=[],Ue=arguments.length-1;Ue-- >0;)te[Ue]=arguments[Ue+1];return gt(this,Le,on(),function(rt){return Vi(rt,te)})}function to(Le){for(var te=[],Ue=arguments.length-1;Ue-- >0;)te[Ue]=arguments[Ue+1];return gt(this,Le,on(),function(rt){return di(rt,te)})}function $o(Le){var te=this.asMutable();return Le(te),te.wasAltered()?te.__ensureOwner(this.__ownerID):this}function ja(){return this.__ownerID?this:this.__ensureOwner(new v)}function hs(){return this.__ensureOwner()}function ro(){return this.__altered}var as=function(Le){function te(Ue){return Ue==null?on():K(Ue)&&!H(Ue)?Ue:on().withMutations(function(rt){var ht=Le(Ue);qn(ht.size),ht.forEach(function(Gt,xn){return rt.set(xn,Gt)})})}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){for(var rt=[],ht=arguments.length;ht--;)rt[ht]=arguments[ht];return on().withMutations(function(Gt){for(var xn=0;xn<rt.length;xn+=2){if(xn+1>=rt.length)throw new Error("Missing value for key: "+rt[xn]);Gt.set(rt[xn],rt[xn+1])}})},te.prototype.toString=function(){return this.__toString("Map {","}")},te.prototype.get=function(rt,ht){return this._root?this._root.get(0,void 0,rt,ht):ht},te.prototype.set=function(rt,ht){return _n(this,rt,ht)},te.prototype.remove=function(rt){return _n(this,rt,u)},te.prototype.deleteAll=function(rt){var ht=_(rt);return ht.size===0?this:this.withMutations(function(Gt){ht.forEach(function(xn){return Gt.remove(xn)})})},te.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):on()},te.prototype.sort=function(rt){return Cn(bi(this,rt))},te.prototype.sortBy=function(rt,ht){return Cn(bi(this,ht,rt))},te.prototype.map=function(rt,ht){var Gt=this;return this.withMutations(function(xn){xn.forEach(function(Hn,wr){xn.set(wr,rt.call(ht,Hn,wr,Gt))})})},te.prototype.__iterator=function(rt,ht){return new wo(this,rt,ht)},te.prototype.__iterate=function(rt,ht){var Gt=this,xn=0;return this._root&&this._root.iterate(function(Hn){return xn++,rt(Hn[1],Hn[0],Gt)},ht),xn},te.prototype.__ensureOwner=function(rt){return rt===this.__ownerID?this:rt?Ie(this.size,this._root,rt,this.__hash):this.size===0?on():(this.__ownerID=rt,this.__altered=!1,this)},te}(N);as.isMap=K;var rn=as.prototype;rn[I]=!0,rn[i]=rn.remove,rn.removeAll=rn.deleteAll,rn.setIn=Ur,rn.removeIn=rn.deleteIn=Pr,rn.update=gi,rn.updateIn=$i,rn.merge=rn.concat=eo,rn.mergeWith=ki,rn.mergeDeep=ta,rn.mergeDeepWith=aa,rn.mergeIn=vi,rn.mergeDeepIn=to,rn.withMutations=$o,rn.wasAltered=ro,rn.asImmutable=hs,rn["@@transducer/init"]=rn.asMutable=ja,rn["@@transducer/step"]=function(Le,te){return Le.set(te[0],te[1])},rn["@@transducer/result"]=function(Le){return Le.asImmutable()};var Dr=function(te,Ue){this.ownerID=te,this.entries=Ue};Dr.prototype.get=function(te,Ue,rt,ht){for(var Gt=this.entries,xn=0,Hn=Gt.length;xn<Hn;xn++)if(He(rt,Gt[xn][0]))return Gt[xn][1];return ht},Dr.prototype.update=function(te,Ue,rt,ht,Gt,xn,Hn){for(var wr=Gt===u,Wr=this.entries,vt=0,Vt=Wr.length;vt<Vt&&!He(ht,Wr[vt][0]);vt++);var dn=vt<Vt;if(dn?Wr[vt][1]===Gt:wr)return this;if(p(Hn),(wr||!dn)&&p(xn),!(wr&&Wr.length===1)){if(!dn&&!wr&&Wr.length>=Qi)return Mi(te,Wr,ht,Gt);var yn=te&&te===this.ownerID,ar=yn?Wr:Gr(Wr);return dn?wr?vt===Vt-1?ar.pop():ar[vt]=ar.pop():ar[vt]=[ht,Gt]:ar.push([ht,Gt]),yn?(this.entries=ar,this):new Dr(te,ar)}};var Lr=function(te,Ue,rt){this.ownerID=te,this.bitmap=Ue,this.nodes=rt};Lr.prototype.get=function(te,Ue,rt,ht){Ue===void 0&&(Ue=We(rt));var Gt=1<<((te===0?Ue:Ue>>>te)&m),xn=this.bitmap;return xn&Gt?this.nodes[cr(xn&Gt-1)].get(te+l,Ue,rt,ht):ht},Lr.prototype.update=function(te,Ue,rt,ht,Gt,xn,Hn){rt===void 0&&(rt=We(ht));var wr=(Ue===0?rt:rt>>>Ue)&m,Wr=1<<wr,vt=this.bitmap,Vt=(vt&Wr)!==0;if(!Vt&&Gt===u)return this;var dn=cr(vt&Wr-1),yn=this.nodes,ar=Vt?yn[dn]:void 0,wi=er(ar,te,Ue+l,rt,ht,Gt,xn,Hn);if(wi===ar)return this;if(!Vt&&wi&&yn.length>=Fo)return Nn(te,yn,vt,wr,wi);if(Vt&&!wi&&yn.length===2&&or(yn[dn^1]))return yn[dn^1];if(Vt&&wi&&yn.length===1&&or(wi))return wi;var mi=te&&te===this.ownerID,ho=Vt?wi?vt:vt^Wr:vt|Wr,Ao=Vt?wi?ni(yn,dn,wi,mi):Jr(yn,dn,mi):Xr(yn,dn,wi,mi);return mi?(this.bitmap=ho,this.nodes=Ao,this):new Lr(te,ho,Ao)};var li=function(te,Ue,rt){this.ownerID=te,this.count=Ue,this.nodes=rt};li.prototype.get=function(te,Ue,rt,ht){Ue===void 0&&(Ue=We(rt));var Gt=(te===0?Ue:Ue>>>te)&m,xn=this.nodes[Gt];return xn?xn.get(te+l,Ue,rt,ht):ht},li.prototype.update=function(te,Ue,rt,ht,Gt,xn,Hn){rt===void 0&&(rt=We(ht));var wr=(Ue===0?rt:rt>>>Ue)&m,Wr=Gt===u,vt=this.nodes,Vt=vt[wr];if(Wr&&!Vt)return this;var dn=er(Vt,te,Ue+l,rt,ht,Gt,xn,Hn);if(dn===Vt)return this;var yn=this.count;if(!Vt)yn++;else if(!dn&&(yn--,yn<No))return Ui(te,vt,yn,wr);var ar=te&&te===this.ownerID,wi=ni(vt,wr,dn,ar);return ar?(this.count=yn,this.nodes=wi,this):new li(te,yn,wi)};var Zi=function(te,Ue,rt){this.ownerID=te,this.keyHash=Ue,this.entries=rt};Zi.prototype.get=function(te,Ue,rt,ht){for(var Gt=this.entries,xn=0,Hn=Gt.length;xn<Hn;xn++)if(He(rt,Gt[xn][0]))return Gt[xn][1];return ht},Zi.prototype.update=function(te,Ue,rt,ht,Gt,xn,Hn){rt===void 0&&(rt=We(ht));var wr=Gt===u;if(rt!==this.keyHash)return wr?this:(p(Hn),p(xn),Er(this,te,Ue,rt,[ht,Gt]));for(var Wr=this.entries,vt=0,Vt=Wr.length;vt<Vt&&!He(ht,Wr[vt][0]);vt++);var dn=vt<Vt;if(dn?Wr[vt][1]===Gt:wr)return this;if(p(Hn),(wr||!dn)&&p(xn),wr&&Vt===2)return new Di(te,this.keyHash,Wr[vt^1]);var yn=te&&te===this.ownerID,ar=yn?Wr:Gr(Wr);return dn?wr?vt===Vt-1?ar.pop():ar[vt]=ar.pop():ar[vt]=[ht,Gt]:ar.push([ht,Gt]),yn?(this.entries=ar,this):new Zi(te,this.keyHash,ar)};var Di=function(te,Ue,rt){this.ownerID=te,this.keyHash=Ue,this.entry=rt};Di.prototype.get=function(te,Ue,rt,ht){return He(rt,this.entry[0])?this.entry[1]:ht},Di.prototype.update=function(te,Ue,rt,ht,Gt,xn,Hn){var wr=Gt===u,Wr=He(ht,this.entry[0]);if(Wr?Gt===this.entry[1]:wr)return this;if(p(Hn),wr){p(xn);return}return Wr?te&&te===this.ownerID?(this.entry[1]=Gt,this):new Di(te,this.keyHash,[ht,Gt]):(p(xn),Er(this,te,Ue,We(ht),[ht,Gt]))},Dr.prototype.iterate=Zi.prototype.iterate=function(Le,te){for(var Ue=this.entries,rt=0,ht=Ue.length-1;rt<=ht;rt++)if(Le(Ue[te?ht-rt:rt])===!1)return!1},Lr.prototype.iterate=li.prototype.iterate=function(Le,te){for(var Ue=this.nodes,rt=0,ht=Ue.length-1;rt<=ht;rt++){var Gt=Ue[te?ht-rt:rt];if(Gt&&Gt.iterate(Le,te)===!1)return!1}},Di.prototype.iterate=function(Le,te){return Le(this.entry)};var wo=function(Le){function te(Ue,rt,ht){this._type=rt,this._reverse=ht,this._stack=Ue._root&&Ko(Ue._root)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.next=function(){for(var rt=this._type,ht=this._stack;ht;){var Gt=ht.node,xn=ht.index++,Hn=void 0;if(Gt.entry){if(xn===0)return Go(rt,Gt.entry)}else if(Gt.entries){if(Hn=Gt.entries.length-1,xn<=Hn)return Go(rt,Gt.entries[this._reverse?Hn-xn:xn])}else if(Hn=Gt.nodes.length-1,xn<=Hn){var wr=Gt.nodes[this._reverse?Hn-xn:xn];if(wr){if(wr.entry)return Go(rt,wr.entry);ht=this._stack=Ko(wr,ht)}continue}ht=this._stack=this._stack.__prev}return Ae()},te}(ye);function Go(Le,te){return Se(Le,te[0],te[1])}function Ko(Le,te){return{node:Le,index:0,__prev:te}}function Ie(Le,te,Ue,rt){var ht=Object.create(rn);return ht.size=Le,ht._root=te,ht.__ownerID=Ue,ht.__hash=rt,ht.__altered=!1,ht}var yt;function on(){return yt||(yt=Ie(0))}function _n(Le,te,Ue){var rt,ht;if(Le._root){var Gt=f(),xn=f();if(rt=er(Le._root,Le.__ownerID,0,void 0,te,Ue,Gt,xn),!xn.value)return Le;ht=Le.size+(Gt.value?Ue===u?-1:1:0)}else{if(Ue===u)return Le;ht=1,rt=new Dr(Le.__ownerID,[[te,Ue]])}return Le.__ownerID?(Le.size=ht,Le._root=rt,Le.__hash=void 0,Le.__altered=!0,Le):rt?Ie(ht,rt):on()}function er(Le,te,Ue,rt,ht,Gt,xn,Hn){return Le?Le.update(te,Ue,rt,ht,Gt,xn,Hn):Gt===u?Le:(p(Hn),p(xn),new Di(te,rt,[ht,Gt]))}function or(Le){return Le.constructor===Di||Le.constructor===Zi}function Er(Le,te,Ue,rt,ht){if(Le.keyHash===rt)return new Zi(te,rt,[Le.entry,ht]);var Gt=(Ue===0?Le.keyHash:Le.keyHash>>>Ue)&m,xn=(Ue===0?rt:rt>>>Ue)&m,Hn,wr=Gt===xn?[Er(Le,te,Ue+l,rt,ht)]:(Hn=new Di(te,rt,ht),Gt<xn?[Le,Hn]:[Hn,Le]);return new Lr(te,1<<Gt|1<<xn,wr)}function Mi(Le,te,Ue,rt){Le||(Le=new v);for(var ht=new Di(Le,We(Ue),[Ue,rt]),Gt=0;Gt<te.length;Gt++){var xn=te[Gt];ht=ht.update(Le,0,void 0,xn[0],xn[1])}return ht}function Ui(Le,te,Ue,rt){for(var ht=0,Gt=0,xn=new Array(Ue),Hn=0,wr=1,Wr=te.length;Hn<Wr;Hn++,wr<<=1){var vt=te[Hn];vt!==void 0&&Hn!==rt&&(ht|=wr,xn[Gt++]=vt)}return new Lr(Le,ht,xn)}function Nn(Le,te,Ue,rt,ht){for(var Gt=0,xn=new Array(s),Hn=0;Ue!==0;Hn++,Ue>>>=1)xn[Hn]=Ue&1?te[Gt++]:void 0;return xn[rt]=ht,new li(Le,Gt+1,xn)}function cr(Le){return Le-=Le>>1&1431655765,Le=(Le&858993459)+(Le>>2&858993459),Le=Le+(Le>>4)&252645135,Le+=Le>>8,Le+=Le>>16,Le&127}function ni(Le,te,Ue,rt){var ht=rt?Le:Gr(Le);return ht[te]=Ue,ht}function Xr(Le,te,Ue,rt){var ht=Le.length+1;if(rt&&te+1===ht)return Le[te]=Ue,Le;for(var Gt=new Array(ht),xn=0,Hn=0;Hn<ht;Hn++)Hn===te?(Gt[Hn]=Ue,xn=-1):Gt[Hn]=Le[Hn+xn];return Gt}function Jr(Le,te,Ue){var rt=Le.length-1;if(Ue&&te===rt)return Le.pop(),Le;for(var ht=new Array(rt),Gt=0,xn=0;xn<rt;xn++)xn===te&&(Gt=1),ht[xn]=Le[xn+Gt];return ht}var Qi=s/4,Fo=s/2,No=s/4,Jo="@@__IMMUTABLE_LIST__@@";function br(Le){return!!(Le&&Le[Jo])}var Yn=function(Le){function te(Ue){var rt=Lt();if(Ue==null)return rt;if(br(Ue))return Ue;var ht=Le(Ue),Gt=ht.size;return Gt===0?rt:(qn(Gt),Gt>0&&Gt<s?Pe(0,Gt,l,null,new se(ht.toArray())):rt.withMutations(function(xn){xn.setSize(Gt),ht.forEach(function(Hn,wr){return xn.set(wr,Hn)})}))}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return this(arguments)},te.prototype.toString=function(){return this.__toString("List [","]")},te.prototype.get=function(rt,ht){if(rt=d(this,rt),rt>=0&&rt<this.size){rt+=this._origin;var Gt=zt(this,rt);return Gt&&Gt.array[rt&m]}return ht},te.prototype.set=function(rt,ht){return Pt(this,rt,ht)},te.prototype.remove=function(rt){return this.has(rt)?rt===0?this.shift():rt===this.size-1?this.pop():this.splice(rt,1):this},te.prototype.insert=function(rt,ht){return this.splice(rt,0,ht)},te.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=l,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Lt()},te.prototype.push=function(){var rt=arguments,ht=this.size;return this.withMutations(function(Gt){Ht(Gt,0,ht+rt.length);for(var xn=0;xn<rt.length;xn++)Gt.set(ht+xn,rt[xn])})},te.prototype.pop=function(){return Ht(this,0,-1)},te.prototype.unshift=function(){var rt=arguments;return this.withMutations(function(ht){Ht(ht,-rt.length);for(var Gt=0;Gt<rt.length;Gt++)ht.set(Gt,rt[Gt])})},te.prototype.shift=function(){return Ht(this,1)},te.prototype.concat=function(){for(var rt=arguments,ht=[],Gt=0;Gt<arguments.length;Gt++){var xn=rt[Gt],Hn=Le(typeof xn!="string"&&Ee(xn)?xn:[xn]);Hn.size!==0&&ht.push(Hn)}return ht.length===0?this:this.size===0&&!this.__ownerID&&ht.length===1?this.constructor(ht[0]):this.withMutations(function(wr){ht.forEach(function(Wr){return Wr.forEach(function(vt){return wr.push(vt)})})})},te.prototype.setSize=function(rt){return Ht(this,0,rt)},te.prototype.map=function(rt,ht){var Gt=this;return this.withMutations(function(xn){for(var Hn=0;Hn<Gt.size;Hn++)xn.set(Hn,rt.call(ht,xn.get(Hn),Hn,Gt))})},te.prototype.slice=function(rt,ht){var Gt=this.size;return y(rt,ht,Gt)?this:Ht(this,w(rt,Gt),S(ht,Gt))},te.prototype.__iterator=function(rt,ht){var Gt=ht?this.size:0,xn=B(this,ht);return new ye(function(){var Hn=xn();return Hn===G?Ae():Se(rt,ht?--Gt:Gt++,Hn)})},te.prototype.__iterate=function(rt,ht){for(var Gt=ht?this.size:0,xn=B(this,ht),Hn;(Hn=xn())!==G&&rt(Hn,ht?--Gt:Gt++,this)!==!1;);return Gt},te.prototype.__ensureOwner=function(rt){return rt===this.__ownerID?this:rt?Pe(this._origin,this._capacity,this._level,this._root,this._tail,rt,this.__hash):this.size===0?Lt():(this.__ownerID=rt,this.__altered=!1,this)},te}(W);Yn.isList=br;var Z=Yn.prototype;Z[Jo]=!0,Z[i]=Z.remove,Z.merge=Z.concat,Z.setIn=Ur,Z.deleteIn=Z.removeIn=Pr,Z.update=gi,Z.updateIn=$i,Z.mergeIn=vi,Z.mergeDeepIn=to,Z.withMutations=$o,Z.wasAltered=ro,Z.asImmutable=hs,Z["@@transducer/init"]=Z.asMutable=ja,Z["@@transducer/step"]=function(Le,te){return Le.push(te)},Z["@@transducer/result"]=function(Le){return Le.asImmutable()};var se=function(te,Ue){this.array=te,this.ownerID=Ue};se.prototype.removeBefore=function(te,Ue,rt){if(rt===Ue?1<<Ue:this.array.length===0)return this;var ht=rt>>>Ue&m;if(ht>=this.array.length)return new se([],te);var Gt=ht===0,xn;if(Ue>0){var Hn=this.array[ht];if(xn=Hn&&Hn.removeBefore(te,Ue-l,rt),xn===Hn&&Gt)return this}if(Gt&&!xn)return this;var wr=ut(this,te);if(!Gt)for(var Wr=0;Wr<ht;Wr++)wr.array[Wr]=void 0;return xn&&(wr.array[ht]=xn),wr},se.prototype.removeAfter=function(te,Ue,rt){if(rt===(Ue?1<<Ue:0)||this.array.length===0)return this;var ht=rt-1>>>Ue&m;if(ht>=this.array.length)return this;var Gt;if(Ue>0){var xn=this.array[ht];if(Gt=xn&&xn.removeAfter(te,Ue-l,rt),Gt===xn&&ht===this.array.length-1)return this}var Hn=ut(this,te);return Hn.array.splice(ht+1),Gt&&(Hn.array[ht]=Gt),Hn};var G={};function B(Le,te){var Ue=Le._origin,rt=Le._capacity,ht=Fn(rt),Gt=Le._tail;return xn(Le._root,Le._level,0);function xn(Wr,vt,Vt){return vt===0?Hn(Wr,Vt):wr(Wr,vt,Vt)}function Hn(Wr,vt){var Vt=vt===ht?Gt&&Gt.array:Wr&&Wr.array,dn=vt>Ue?0:Ue-vt,yn=rt-vt;return yn>s&&(yn=s),function(){if(dn===yn)return G;var ar=te?--yn:dn++;return Vt&&Vt[ar]}}function wr(Wr,vt,Vt){var dn,yn=Wr&&Wr.array,ar=Vt>Ue?0:Ue-Vt>>vt,wi=(rt-Vt>>vt)+1;return wi>s&&(wi=s),function(){for(;;){if(dn){var mi=dn();if(mi!==G)return mi;dn=null}if(ar===wi)return G;var ho=te?--wi:ar++;dn=xn(yn&&yn[ho],vt-l,Vt+(ho<<vt))}}}}function Pe(Le,te,Ue,rt,ht,Gt,xn){var Hn=Object.create(Z);return Hn.size=te-Le,Hn._origin=Le,Hn._capacity=te,Hn._level=Ue,Hn._root=rt,Hn._tail=ht,Hn.__ownerID=Gt,Hn.__hash=xn,Hn.__altered=!1,Hn}var dt;function Lt(){return dt||(dt=Pe(0,0,l))}function Pt(Le,te,Ue){if(te=d(Le,te),te!==te)return Le;if(te>=Le.size||te<0)return Le.withMutations(function(xn){te<0?Ht(xn,te).set(0,Ue):Ht(xn,0,te+1).set(te,Ue)});te+=Le._origin;var rt=Le._tail,ht=Le._root,Gt=f();return te>=Fn(Le._capacity)?rt=$e(rt,Le.__ownerID,0,te,Ue,Gt):ht=$e(ht,Le.__ownerID,Le._level,te,Ue,Gt),Gt.value?Le.__ownerID?(Le._root=ht,Le._tail=rt,Le.__hash=void 0,Le.__altered=!0,Le):Pe(Le._origin,Le._capacity,Le._level,ht,rt):Le}function $e(Le,te,Ue,rt,ht,Gt){var xn=rt>>>Ue&m,Hn=Le&&xn<Le.array.length;if(!Hn&&ht===void 0)return Le;var wr;if(Ue>0){var Wr=Le&&Le.array[xn],vt=$e(Wr,te,Ue-l,rt,ht,Gt);return vt===Wr?Le:(wr=ut(Le,te),wr.array[xn]=vt,wr)}return Hn&&Le.array[xn]===ht?Le:(Gt&&p(Gt),wr=ut(Le,te),ht===void 0&&xn===wr.array.length-1?wr.array.pop():wr.array[xn]=ht,wr)}function ut(Le,te){return te&&Le&&te===Le.ownerID?Le:new se(Le?Le.array.slice():[],te)}function zt(Le,te){if(te>=Fn(Le._capacity))return Le._tail;if(te<1<<Le._level+l){for(var Ue=Le._root,rt=Le._level;Ue&&rt>0;)Ue=Ue.array[te>>>rt&m],rt-=l;return Ue}}function Ht(Le,te,Ue){te!==void 0&&(te|=0),Ue!==void 0&&(Ue|=0);var rt=Le.__ownerID||new v,ht=Le._origin,Gt=Le._capacity,xn=ht+te,Hn=Ue===void 0?Gt:Ue<0?Gt+Ue:ht+Ue;if(xn===ht&&Hn===Gt)return Le;if(xn>=Hn)return Le.clear();for(var wr=Le._level,Wr=Le._root,vt=0;xn+vt<0;)Wr=new se(Wr&&Wr.array.length?[void 0,Wr]:[],rt),wr+=l,vt+=1<<wr;vt&&(xn+=vt,ht+=vt,Hn+=vt,Gt+=vt);for(var Vt=Fn(Gt),dn=Fn(Hn);dn>=1<<wr+l;)Wr=new se(Wr&&Wr.array.length?[Wr]:[],rt),wr+=l;var yn=Le._tail,ar=dn<Vt?zt(Le,Hn-1):dn>Vt?new se([],rt):yn;if(yn&&dn>Vt&&xn<Gt&&yn.array.length){Wr=ut(Wr,rt);for(var wi=Wr,mi=wr;mi>l;mi-=l){var ho=Vt>>>mi&m;wi=wi.array[ho]=ut(wi.array[ho],rt)}wi.array[Vt>>>l&m]=yn}if(Hn<Gt&&(ar=ar&&ar.removeAfter(rt,0,Hn)),xn>=dn)xn-=dn,Hn-=dn,wr=l,Wr=null,ar=ar&&ar.removeBefore(rt,0,xn);else if(xn>ht||dn<Vt){for(vt=0;Wr;){var Ao=xn>>>wr&m;if(Ao!==dn>>>wr&m)break;Ao&&(vt+=(1<<wr)*Ao),wr-=l,Wr=Wr.array[Ao]}Wr&&xn>ht&&(Wr=Wr.removeBefore(rt,wr,xn-vt)),Wr&&dn<Vt&&(Wr=Wr.removeAfter(rt,wr,dn-vt)),vt&&(xn-=vt,Hn-=vt)}return Le.__ownerID?(Le.size=Hn-xn,Le._origin=xn,Le._capacity=Hn,Le._level=wr,Le._root=Wr,Le._tail=ar,Le.__hash=void 0,Le.__altered=!0,Le):Pe(xn,Hn,wr,Wr,ar)}function Fn(Le){return Le<s?0:Le-1>>>l<<l}var Cn=function(Le){function te(Ue){return Ue==null?ei():ue(Ue)?Ue:ei().withMutations(function(rt){var ht=N(Ue);qn(ht.size),ht.forEach(function(Gt,xn){return rt.set(xn,Gt)})})}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return this(arguments)},te.prototype.toString=function(){return this.__toString("OrderedMap {","}")},te.prototype.get=function(rt,ht){var Gt=this._map.get(rt);return Gt!==void 0?this._list.get(Gt)[1]:ht},te.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ei()},te.prototype.set=function(rt,ht){return Ci(this,rt,ht)},te.prototype.remove=function(rt){return Ci(this,rt,u)},te.prototype.__iterate=function(rt,ht){var Gt=this;return this._list.__iterate(function(xn){return xn&&rt(xn[1],xn[0],Gt)},ht)},te.prototype.__iterator=function(rt,ht){return this._list.fromEntrySeq().__iterator(rt,ht)},te.prototype.__ensureOwner=function(rt){if(rt===this.__ownerID)return this;var ht=this._map.__ensureOwner(rt),Gt=this._list.__ensureOwner(rt);return rt?tr(ht,Gt,rt,this.__hash):this.size===0?ei():(this.__ownerID=rt,this.__altered=!1,this._map=ht,this._list=Gt,this)},te}(as);Cn.isOrderedMap=ue,Cn.prototype[re]=!0,Cn.prototype[i]=Cn.prototype.remove;function tr(Le,te,Ue,rt){var ht=Object.create(Cn.prototype);return ht.size=Le?Le.size:0,ht._map=Le,ht._list=te,ht.__ownerID=Ue,ht.__hash=rt,ht.__altered=!1,ht}var Jn;function ei(){return Jn||(Jn=tr(on(),Lt()))}function Ci(Le,te,Ue){var rt=Le._map,ht=Le._list,Gt=rt.get(te),xn=Gt!==void 0,Hn,wr;if(Ue===u){if(!xn)return Le;ht.size>=s&&ht.size>=rt.size*2?(wr=ht.filter(function(Wr,vt){return Wr!==void 0&&Gt!==vt}),Hn=wr.toKeyedSeq().map(function(Wr){return Wr[0]}).flip().toMap(),Le.__ownerID&&(Hn.__ownerID=wr.__ownerID=Le.__ownerID)):(Hn=rt.remove(te),wr=Gt===ht.size-1?ht.pop():ht.set(Gt,void 0))}else if(xn){if(Ue===ht.get(Gt)[1])return Le;Hn=rt,wr=ht.set(Gt,[te,Ue])}else Hn=rt.set(te,ht.size),wr=ht.set(ht.size,[te,Ue]);return Le.__ownerID?(Le.size=Hn.size,Le._map=Hn,Le._list=wr,Le.__hash=void 0,Le.__altered=!0,Le):tr(Hn,wr)}var zi="@@__IMMUTABLE_STACK__@@";function co(Le){return!!(Le&&Le[zi])}var Xo=function(Le){function te(Ue){return Ue==null?fr():co(Ue)?Ue:fr().pushAll(Ue)}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return this(arguments)},te.prototype.toString=function(){return this.__toString("Stack [","]")},te.prototype.get=function(rt,ht){var Gt=this._head;for(rt=d(this,rt);Gt&&rt--;)Gt=Gt.next;return Gt?Gt.value:ht},te.prototype.peek=function(){return this._head&&this._head.value},te.prototype.push=function(){var rt=arguments;if(arguments.length===0)return this;for(var ht=this.size+arguments.length,Gt=this._head,xn=arguments.length-1;xn>=0;xn--)Gt={value:rt[xn],next:Gt};return this.__ownerID?(this.size=ht,this._head=Gt,this.__hash=void 0,this.__altered=!0,this):Yo(ht,Gt)},te.prototype.pushAll=function(rt){if(rt=Le(rt),rt.size===0)return this;if(this.size===0&&co(rt))return rt;qn(rt.size);var ht=this.size,Gt=this._head;return rt.__iterate(function(xn){ht++,Gt={value:xn,next:Gt}},!0),this.__ownerID?(this.size=ht,this._head=Gt,this.__hash=void 0,this.__altered=!0,this):Yo(ht,Gt)},te.prototype.pop=function(){return this.slice(1)},te.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):fr()},te.prototype.slice=function(rt,ht){if(y(rt,ht,this.size))return this;var Gt=w(rt,this.size),xn=S(ht,this.size);if(xn!==this.size)return Le.prototype.slice.call(this,rt,ht);for(var Hn=this.size-Gt,wr=this._head;Gt--;)wr=wr.next;return this.__ownerID?(this.size=Hn,this._head=wr,this.__hash=void 0,this.__altered=!0,this):Yo(Hn,wr)},te.prototype.__ensureOwner=function(rt){return rt===this.__ownerID?this:rt?Yo(this.size,this._head,rt,this.__hash):this.size===0?fr():(this.__ownerID=rt,this.__altered=!1,this)},te.prototype.__iterate=function(rt,ht){var Gt=this;if(ht)return new Ye(this.toArray()).__iterate(function(wr,Wr){return rt(wr,Wr,Gt)},ht);for(var xn=0,Hn=this._head;Hn&&rt(Hn.value,xn++,this)!==!1;)Hn=Hn.next;return xn},te.prototype.__iterator=function(rt,ht){if(ht)return new Ye(this.toArray()).__iterator(rt,ht);var Gt=0,xn=this._head;return new ye(function(){if(xn){var Hn=xn.value;return xn=xn.next,Se(rt,Gt++,Hn)}return Ae()})},te}(W);Xo.isStack=co;var Eo=Xo.prototype;Eo[zi]=!0,Eo.shift=Eo.pop,Eo.unshift=Eo.push,Eo.unshiftAll=Eo.pushAll,Eo.withMutations=$o,Eo.wasAltered=ro,Eo.asImmutable=hs,Eo["@@transducer/init"]=Eo.asMutable=ja,Eo["@@transducer/step"]=function(Le,te){return Le.unshift(te)},Eo["@@transducer/result"]=function(Le){return Le.asImmutable()};function Yo(Le,te,Ue,rt){var ht=Object.create(Eo);return ht.size=Le,ht._head=te,ht.__ownerID=Ue,ht.__hash=rt,ht.__altered=!1,ht}var Xn;function fr(){return Xn||(Xn=Yo(0))}var mr="@@__IMMUTABLE_SET__@@";function yr(Le){return!!(Le&&Le[mr])}function Rr(Le){return yr(Le)&&H(Le)}function ai(Le,te){if(Le===te)return!0;if(!D(te)||Le.size!==void 0&&te.size!==void 0&&Le.size!==te.size||Le.__hash!==void 0&&te.__hash!==void 0&&Le.__hash!==te.__hash||T(Le)!==T(te)||j(Le)!==j(te)||H(Le)!==H(te))return!1;if(Le.size===0&&te.size===0)return!0;var Ue=!ae(Le);if(H(Le)){var rt=Le.entries();return te.every(function(wr,Wr){var vt=rt.next().value;return vt&&He(vt[1],wr)&&(Ue||He(vt[0],Wr))})&&rt.next().done}var ht=!1;if(Le.size===void 0)if(te.size===void 0)typeof Le.cacheResult=="function"&&Le.cacheResult();else{ht=!0;var Gt=Le;Le=te,te=Gt}var xn=!0,Hn=te.__iterate(function(wr,Wr){if(Ue?!Le.has(wr):ht?!He(wr,Le.get(Wr,u)):!He(Le.get(Wr,u),wr))return xn=!1,!1});return xn&&Le.size===Hn}function jt(Le,te){var Ue=function(rt){Le.prototype[rt]=te[rt]};return Object.keys(te).forEach(Ue),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(te).forEach(Ue),Le}function Pn(Le){if(!Le||typeof Le!="object")return Le;if(!D(Le)){if(!An(Le))return Le;Le=F(Le)}if(T(Le)){var te={};return Le.__iterate(function(rt,ht){te[ht]=Pn(rt)}),te}var Ue=[];return Le.__iterate(function(rt){Ue.push(Pn(rt))}),Ue}var nr=function(Le){function te(Ue){return Ue==null?pn():yr(Ue)&&!H(Ue)?Ue:pn().withMutations(function(rt){var ht=Le(Ue);qn(ht.size),ht.forEach(function(Gt){return rt.add(Gt)})})}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return this(arguments)},te.fromKeys=function(rt){return this(N(rt).keySeq())},te.intersect=function(rt){return rt=_(rt).toArray(),rt.length?Ir.intersect.apply(te(rt.pop()),rt):pn()},te.union=function(rt){return rt=_(rt).toArray(),rt.length?Ir.union.apply(te(rt.pop()),rt):pn()},te.prototype.toString=function(){return this.__toString("Set {","}")},te.prototype.has=function(rt){return this._map.has(rt)},te.prototype.add=function(rt){return fi(this,this._map.set(rt,rt))},te.prototype.remove=function(rt){return fi(this,this._map.remove(rt))},te.prototype.clear=function(){return fi(this,this._map.clear())},te.prototype.map=function(rt,ht){var Gt=this,xn=!1,Hn=fi(this,this._map.mapEntries(function(wr){var Wr=wr[1],vt=rt.call(ht,Wr,Wr,Gt);return vt!==Wr&&(xn=!0),[vt,vt]},ht));return xn?Hn:this},te.prototype.union=function(){for(var rt=[],ht=arguments.length;ht--;)rt[ht]=arguments[ht];return rt=rt.filter(function(Gt){return Gt.size!==0}),rt.length===0?this:this.size===0&&!this.__ownerID&&rt.length===1?this.constructor(rt[0]):this.withMutations(function(Gt){for(var xn=0;xn<rt.length;xn++)typeof rt[xn]=="string"?Gt.add(rt[xn]):Le(rt[xn]).forEach(function(Hn){return Gt.add(Hn)})})},te.prototype.intersect=function(){for(var rt=[],ht=arguments.length;ht--;)rt[ht]=arguments[ht];if(rt.length===0)return this;rt=rt.map(function(xn){return Le(xn)});var Gt=[];return this.forEach(function(xn){rt.every(function(Hn){return Hn.includes(xn)})||Gt.push(xn)}),this.withMutations(function(xn){Gt.forEach(function(Hn){xn.remove(Hn)})})},te.prototype.subtract=function(){for(var rt=[],ht=arguments.length;ht--;)rt[ht]=arguments[ht];if(rt.length===0)return this;rt=rt.map(function(xn){return Le(xn)});var Gt=[];return this.forEach(function(xn){rt.some(function(Hn){return Hn.includes(xn)})&&Gt.push(xn)}),this.withMutations(function(xn){Gt.forEach(function(Hn){xn.remove(Hn)})})},te.prototype.sort=function(rt){return Is(bi(this,rt))},te.prototype.sortBy=function(rt,ht){return Is(bi(this,ht,rt))},te.prototype.wasAltered=function(){return this._map.wasAltered()},te.prototype.__iterate=function(rt,ht){var Gt=this;return this._map.__iterate(function(xn){return rt(xn,xn,Gt)},ht)},te.prototype.__iterator=function(rt,ht){return this._map.__iterator(rt,ht)},te.prototype.__ensureOwner=function(rt){if(rt===this.__ownerID)return this;var ht=this._map.__ensureOwner(rt);return rt?this.__make(ht,rt):this.size===0?this.__empty():(this.__ownerID=rt,this._map=ht,this)},te}(he);nr.isSet=yr;var Ir=nr.prototype;Ir[mr]=!0,Ir[i]=Ir.remove,Ir.merge=Ir.concat=Ir.union,Ir.withMutations=$o,Ir.asImmutable=hs,Ir["@@transducer/init"]=Ir.asMutable=ja,Ir["@@transducer/step"]=function(Le,te){return Le.add(te)},Ir["@@transducer/result"]=function(Le){return Le.asImmutable()},Ir.__empty=pn,Ir.__make=Ti;function fi(Le,te){return Le.__ownerID?(Le.size=te.size,Le._map=te,Le):te===Le._map?Le:te.size===0?Le.__empty():Le.__make(te)}function Ti(Le,te){var Ue=Object.create(Ir);return Ue.size=Le?Le.size:0,Ue._map=Le,Ue.__ownerID=te,Ue}var Oe;function pn(){return Oe||(Oe=Ti(on()))}var Qn=function(Le){function te(Ue,rt,ht){if(!(this instanceof te))return new te(Ue,rt,ht);if(un(ht!==0,"Cannot step a Range by 0"),Ue=Ue||0,rt===void 0&&(rt=1/0),ht=ht===void 0?1:Math.abs(ht),rt<Ue&&(ht=-ht),this._start=Ue,this._end=rt,this._step=ht,this.size=Math.max(0,Math.ceil((rt-Ue)/ht-1)+1),this.size===0){if(Sr)return Sr;Sr=this}}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},te.prototype.get=function(rt,ht){return this.has(rt)?this._start+d(this,rt)*this._step:ht},te.prototype.includes=function(rt){var ht=(rt-this._start)/this._step;return ht>=0&&ht<this.size&&ht===Math.floor(ht)},te.prototype.slice=function(rt,ht){return y(rt,ht,this.size)?this:(rt=w(rt,this.size),ht=S(ht,this.size),ht<=rt?new te(0,0):new te(this.get(rt,this._end),this.get(ht,this._end),this._step))},te.prototype.indexOf=function(rt){var ht=rt-this._start;if(ht%this._step===0){var Gt=ht/this._step;if(Gt>=0&&Gt<this.size)return Gt}return-1},te.prototype.lastIndexOf=function(rt){return this.indexOf(rt)},te.prototype.__iterate=function(rt,ht){for(var Gt=this.size,xn=this._step,Hn=ht?this._start+(Gt-1)*xn:this._start,wr=0;wr!==Gt&&rt(Hn,ht?Gt-++wr:wr++,this)!==!1;)Hn+=ht?-xn:xn;return wr},te.prototype.__iterator=function(rt,ht){var Gt=this.size,xn=this._step,Hn=ht?this._start+(Gt-1)*xn:this._start,wr=0;return new ye(function(){if(wr===Gt)return Ae();var Wr=Hn;return Hn+=ht?-xn:xn,Se(rt,ht?Gt-++wr:wr++,Wr)})},te.prototype.equals=function(rt){return rt instanceof te?this._start===rt._start&&this._end===rt._end&&this._step===rt._step:ai(this,rt)},te}(le),Sr;function hr(Le,te,Ue){for(var rt=kn(te),ht=0;ht!==rt.length;)if(Le=Sn(Le,rt[ht++],u),Le===u)return Ue;return Le}function kr(Le,te){return hr(this,Le,te)}function Ve(Le,te){return hr(Le,te,u)!==u}function Ot(Le){return Ve(this,Le)}function wn(){qn(this.size);var Le={};return this.__iterate(function(te,Ue){Le[Ue]=te}),Le}_.isIterable=D,_.isKeyed=T,_.isIndexed=j,_.isAssociative=ae,_.isOrdered=H,_.Iterator=ye,jt(_,{toArray:function(){qn(this.size);var te=new Array(this.size||0),Ue=T(this),rt=0;return this.__iterate(function(ht,Gt){te[rt++]=Ue?[Gt,ht]:ht}),te},toIndexedSeq:function(){return new Xe(this)},toJS:function(){return Pn(this)},toKeyedSeq:function(){return new xt(this,!0)},toMap:function(){return as(this.toKeyedSeq())},toObject:wn,toOrderedMap:function(){return Cn(this.toKeyedSeq())},toOrderedSet:function(){return Is(T(this)?this.valueSeq():this)},toSet:function(){return nr(T(this)?this.valueSeq():this)},toSetSeq:function(){return new gn(this)},toSeq:function(){return j(this)?this.toIndexedSeq():T(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Xo(T(this)?this.valueSeq():this)},toList:function(){return Yn(T(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(te,Ue){return this.size===0?te+Ue:te+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+Ue},concat:function(){for(var te=[],Ue=arguments.length;Ue--;)te[Ue]=arguments[Ue];return Kr(this,pi(this,te))},includes:function(te){return this.some(function(Ue){return He(Ue,te)})},entries:function(){return this.__iterator(Te)},every:function(te,Ue){qn(this.size);var rt=!0;return this.__iterate(function(ht,Gt,xn){if(!te.call(Ue,ht,Gt,xn))return rt=!1,!1}),rt},filter:function(te,Ue){return Kr(this,an(this,te,Ue,!0))},partition:function(te,Ue){return En(this,te,Ue)},find:function(te,Ue,rt){var ht=this.findEntry(te,Ue);return ht?ht[1]:rt},forEach:function(te,Ue){return qn(this.size),this.__iterate(Ue?te.bind(Ue):te)},join:function(te){qn(this.size),te=te!==void 0?""+te:",";var Ue="",rt=!0;return this.__iterate(function(ht){rt?rt=!1:Ue+=te,Ue+=ht!=null?ht.toString():""}),Ue},keys:function(){return this.__iterator(V)},map:function(te,Ue){return Kr(this,hn(this,te,Ue))},reduce:function(te,Ue,rt){return si(this,te,Ue,rt,arguments.length<2,!1)},reduceRight:function(te,Ue,rt){return si(this,te,Ue,rt,arguments.length<2,!0)},reverse:function(){return Kr(this,cn(this,!0))},slice:function(te,Ue){return Kr(this,Gn(this,te,Ue,!0))},some:function(te,Ue){qn(this.size);var rt=!1;return this.__iterate(function(ht,Gt,xn){if(te.call(Ue,ht,Gt,xn))return rt=!0,!1}),rt},sort:function(te){return Kr(this,bi(this,te))},values:function(){return this.__iterator(Q)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(te,Ue){return h(te?this.toSeq().filter(te,Ue):this)},countBy:function(te,Ue){return Or(this,te,Ue)},equals:function(te){return ai(this,te)},entrySeq:function(){var te=this;if(te._cache)return new Ye(te._cache);var Ue=te.toSeq().map(Bi).toIndexedSeq();return Ue.fromEntrySeq=function(){return te.toSeq()},Ue},filterNot:function(te,Ue){return this.filter(Xi(te),Ue)},findEntry:function(te,Ue,rt){var ht=rt;return this.__iterate(function(Gt,xn,Hn){if(te.call(Ue,Gt,xn,Hn))return ht=[xn,Gt],!1}),ht},findKey:function(te,Ue){var rt=this.findEntry(te,Ue);return rt&&rt[0]},findLast:function(te,Ue,rt){return this.toKeyedSeq().reverse().find(te,Ue,rt)},findLastEntry:function(te,Ue,rt){return this.toKeyedSeq().reverse().findEntry(te,Ue,rt)},findLastKey:function(te,Ue){return this.toKeyedSeq().reverse().findKey(te,Ue)},first:function(te){return this.find(b,null,te)},flatMap:function(te,Ue){return Kr(this,jr(this,te,Ue))},flatten:function(te){return Kr(this,yi(this,te,!0))},fromEntrySeq:function(){return new Qt(this)},get:function(te,Ue){return this.find(function(rt,ht){return He(ht,te)},void 0,Ue)},getIn:kr,groupBy:function(te,Ue){return Ln(this,te,Ue)},has:function(te){return this.get(te,u)!==u},hasIn:Ot,isSubset:function(te){return te=typeof te.includes=="function"?te:_(te),this.every(function(Ue){return te.includes(Ue)})},isSuperset:function(te){return te=typeof te.isSubset=="function"?te:_(te),te.isSubset(this)},keyOf:function(te){return this.findKey(function(Ue){return He(Ue,te)})},keySeq:function(){return this.toSeq().map(Ki).toIndexedSeq()},last:function(te){return this.toSeq().reverse().first(te)},lastKeyOf:function(te){return this.toKeyedSeq().reverse().keyOf(te)},max:function(te){return ri(this,te)},maxBy:function(te,Ue){return ri(this,Ue,te)},min:function(te){return ri(this,te?vo(te):la)},minBy:function(te,Ue){return ri(this,Ue?vo(Ue):la,te)},rest:function(){return this.slice(1)},skip:function(te){return te===0?this:this.slice(Math.max(0,te))},skipLast:function(te){return te===0?this:this.slice(0,-Math.max(0,te))},skipWhile:function(te,Ue){return Kr(this,sr(this,te,Ue,!0))},skipUntil:function(te,Ue){return this.skipWhile(Xi(te),Ue)},sortBy:function(te,Ue){return Kr(this,bi(this,Ue,te))},take:function(te){return this.slice(0,Math.max(0,te))},takeLast:function(te){return this.slice(-Math.max(0,te))},takeWhile:function(te,Ue){return Kr(this,rr(this,te,Ue))},takeUntil:function(te,Ue){return this.takeWhile(Xi(te),Ue)},update:function(te){return te(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ss(this))}});var Wt=_.prototype;Wt[M]=!0,Wt[pe]=Wt.values,Wt.toJSON=Wt.toArray,Wt.__toStringMapper=Cr,Wt.inspect=Wt.toSource=function(){return this.toString()},Wt.chain=Wt.flatMap,Wt.contains=Wt.includes,jt(N,{flip:function(){return Kr(this,Dt(this))},mapEntries:function(te,Ue){var rt=this,ht=0;return Kr(this,this.toSeq().map(function(Gt,xn){return te.call(Ue,[xn,Gt],ht++,rt)}).fromEntrySeq())},mapKeys:function(te,Ue){var rt=this;return Kr(this,this.toSeq().flip().map(function(ht,Gt){return te.call(Ue,ht,Gt,rt)}).flip())}});var Yt=N.prototype;Yt[P]=!0,Yt[pe]=Wt.entries,Yt.toJSON=wn,Yt.__toStringMapper=function(Le,te){return Cr(te)+": "+Cr(Le)},jt(W,{toKeyedSeq:function(){return new xt(this,!1)},filter:function(te,Ue){return Kr(this,an(this,te,Ue,!1))},findIndex:function(te,Ue){var rt=this.findEntry(te,Ue);return rt?rt[0]:-1},indexOf:function(te){var Ue=this.keyOf(te);return Ue===void 0?-1:Ue},lastIndexOf:function(te){var Ue=this.lastKeyOf(te);return Ue===void 0?-1:Ue},reverse:function(){return Kr(this,cn(this,!1))},slice:function(te,Ue){return Kr(this,Gn(this,te,Ue,!1))},splice:function(te,Ue){var rt=arguments.length;if(Ue=Math.max(Ue||0,0),rt===0||rt===2&&!Ue)return this;te=w(te,te<0?this.count():this.size);var ht=this.slice(0,te);return Kr(this,rt===1?ht:ht.concat(Gr(arguments,2),this.slice(te+Ue)))},findLastIndex:function(te,Ue){var rt=this.findLastEntry(te,Ue);return rt?rt[0]:-1},first:function(te){return this.get(0,te)},flatten:function(te){return Kr(this,yi(this,te,!1))},get:function(te,Ue){return te=d(this,te),te<0||this.size===1/0||this.size!==void 0&&te>this.size?Ue:this.find(function(rt,ht){return ht===te},void 0,Ue)},has:function(te){return te=d(this,te),te>=0&&(this.size!==void 0?this.size===1/0||te<this.size:this.indexOf(te)!==-1)},interpose:function(te){return Kr(this,ui(this,te))},interleave:function(){var te=[this].concat(Gr(arguments)),Ue=Si(this.toSeq(),le.of,te),rt=Ue.flatten(!0);return Ue.size&&(rt.size=Ue.size*te.length),Kr(this,rt)},keySeq:function(){return Qn(0,this.size)},last:function(te){return this.get(-1,te)},skipWhile:function(te,Ue){return Kr(this,sr(this,te,Ue,!1))},zip:function(){var te=[this].concat(Gr(arguments));return Kr(this,Si(this,ea,te))},zipAll:function(){var te=[this].concat(Gr(arguments));return Kr(this,Si(this,ea,te,!0))},zipWith:function(te){var Ue=Gr(arguments);return Ue[0]=this,Kr(this,Si(this,te,Ue))}});var zn=W.prototype;zn[A]=!0,zn[re]=!0,jt(he,{get:function(te,Ue){return this.has(te)?te:Ue},includes:function(te){return this.has(te)},keySeq:function(){return this.valueSeq()}});var Nr=he.prototype;Nr.has=Wt.includes,Nr.contains=Nr.includes,Nr.keys=Nr.values,jt(Y,Yt),jt(le,zn),jt(ke,Nr);function si(Le,te,Ue,rt,ht,Gt){return qn(Le.size),Le.__iterate(function(xn,Hn,wr){ht?(ht=!1,Ue=xn):Ue=te.call(rt,Ue,xn,Hn,wr)},Gt),Ue}function Ki(Le,te){return te}function Bi(Le,te){return[te,Le]}function Xi(Le){return function(){return!Le.apply(this,arguments)}}function vo(Le){return function(){return-Le.apply(this,arguments)}}function ea(){return Gr(arguments)}function la(Le,te){return Le<te?1:Le>te?-1:0}function ss(Le){if(Le.size===1/0)return 0;var te=H(Le),Ue=T(Le),rt=te?1:0,ht=Le.__iterate(Ue?te?function(Gt,xn){rt=31*rt+Ds(We(Gt),We(xn))|0}:function(Gt,xn){rt=rt+Ds(We(Gt),We(xn))|0}:te?function(Gt){rt=31*rt+We(Gt)|0}:function(Gt){rt=rt+We(Gt)|0});return Rs(ht,rt)}function Rs(Le,te){return te=Fe(te,3432918353),te=Fe(te<<15|te>>>-15,461845907),te=Fe(te<<13|te>>>-13,5),te=(te+3864292196|0)^Le,te=Fe(te^te>>>16,2246822507),te=Fe(te^te>>>13,3266489909),te=ze(te^te>>>16),te}function Ds(Le,te){return Le^te+2654435769+(Le<<6)+(Le>>2)|0}var Is=function(Le){function te(Ue){return Ue==null?Us():Rr(Ue)?Ue:Us().withMutations(function(rt){var ht=he(Ue);qn(ht.size),ht.forEach(function(Gt){return rt.add(Gt)})})}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.of=function(){return this(arguments)},te.fromKeys=function(rt){return this(N(rt).keySeq())},te.prototype.toString=function(){return this.__toString("OrderedSet {","}")},te}(nr);Is.isOrderedSet=Rr;var nu=Is.prototype;nu[re]=!0,nu.zip=zn.zip,nu.zipWith=zn.zipWith,nu.zipAll=zn.zipAll,nu.__empty=Us,nu.__make=Ls;function Ls(Le,te){var Ue=Object.create(nu);return Ue.size=Le?Le.size:0,Ue._map=Le,Ue.__ownerID=te,Ue}var gu;function Us(){return gu||(gu=Ls(ei()))}var Iu={LeftThenRight:-1,RightThenLeft:1};function Wu(Le){if(ce(Le))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(oe(Le))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(Le===null||typeof Le!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var rl=function(te,Ue){var rt;Wu(te);var ht=function(Hn){var wr=this;if(Hn instanceof ht)return Hn;if(!(this instanceof ht))return new ht(Hn);if(!rt){rt=!0;var Wr=Object.keys(te),vt=Gt._indices={};Gt._name=Ue,Gt._keys=Wr,Gt._defaultValues=te;for(var Vt=0;Vt<Wr.length;Vt++){var dn=Wr[Vt];vt[dn]=Vt,Gt[dn]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+Al(this)+' with property "'+dn+'" since that property name is part of the Record API.'):Rl(Gt,dn)}}return this.__ownerID=void 0,this._values=Yn().withMutations(function(yn){yn.setSize(wr._keys.length),N(Hn).forEach(function(ar,wi){yn.set(wr._indices[wi],ar===wr._defaultValues[wi]?void 0:ar)})}),this},Gt=ht.prototype=Object.create(Hu);return Gt.constructor=ht,Ue&&(ht.displayName=Ue),ht};rl.prototype.toString=function(){for(var te=Al(this)+" { ",Ue=this._keys,rt,ht=0,Gt=Ue.length;ht!==Gt;ht++)rt=Ue[ht],te+=(ht?", ":"")+rt+": "+Cr(this.get(rt));return te+" }"},rl.prototype.equals=function(te){return this===te||ce(te)&&fl(this).equals(fl(te))},rl.prototype.hashCode=function(){return fl(this).hashCode()},rl.prototype.has=function(te){return this._indices.hasOwnProperty(te)},rl.prototype.get=function(te,Ue){if(!this.has(te))return Ue;var rt=this._indices[te],ht=this._values.get(rt);return ht===void 0?this._defaultValues[te]:ht},rl.prototype.set=function(te,Ue){if(this.has(te)){var rt=this._values.set(this._indices[te],Ue===this._defaultValues[te]?void 0:Ue);if(rt!==this._values&&!this.__ownerID)return Ts(this,rt)}return this},rl.prototype.remove=function(te){return this.set(te)},rl.prototype.clear=function(){var te=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Ts(this,te)},rl.prototype.wasAltered=function(){return this._values.wasAltered()},rl.prototype.toSeq=function(){return fl(this)},rl.prototype.toJS=function(){return Pn(this)},rl.prototype.entries=function(){return this.__iterator(Te)},rl.prototype.__iterator=function(te,Ue){return fl(this).__iterator(te,Ue)},rl.prototype.__iterate=function(te,Ue){return fl(this).__iterate(te,Ue)},rl.prototype.__ensureOwner=function(te){if(te===this.__ownerID)return this;var Ue=this._values.__ensureOwner(te);return te?Ts(this,Ue,te):(this.__ownerID=te,this._values=Ue,this)},rl.isRecord=ce,rl.getDescriptiveName=Al;var Hu=rl.prototype;Hu[ve]=!0,Hu[i]=Hu.remove,Hu.deleteIn=Hu.removeIn=Pr,Hu.getIn=kr,Hu.hasIn=Wt.hasIn,Hu.merge=eo,Hu.mergeWith=ki,Hu.mergeIn=vi,Hu.mergeDeep=ta,Hu.mergeDeepWith=aa,Hu.mergeDeepIn=to,Hu.setIn=Ur,Hu.update=gi,Hu.updateIn=$i,Hu.withMutations=$o,Hu.asMutable=ja,Hu.asImmutable=hs,Hu[pe]=Hu.entries,Hu.toJSON=Hu.toObject=Wt.toObject,Hu.inspect=Hu.toSource=function(){return this.toString()};function Ts(Le,te,Ue){var rt=Object.create(Object.getPrototypeOf(Le));return rt._values=te,rt.__ownerID=Ue,rt}function Al(Le){return Le.constructor.displayName||Le.constructor.name||"Record"}function fl(Le){return it(Le._keys.map(function(te){return[te,Le.get(te)]}))}function Rl(Le,te){try{Object.defineProperty(Le,te,{get:function(){return this.get(te)},set:function(Ue){un(this.__ownerID,"Cannot set on an immutable record."),this.set(te,Ue)}})}catch{}}var Bu=function(Le){function te(Ue,rt){if(!(this instanceof te))return new te(Ue,rt);if(this._value=Ue,this.size=rt===void 0?1/0:Math.max(0,rt),this.size===0){if(Mn)return Mn;Mn=this}}return Le&&(te.__proto__=Le),te.prototype=Object.create(Le&&Le.prototype),te.prototype.constructor=te,te.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},te.prototype.get=function(rt,ht){return this.has(rt)?this._value:ht},te.prototype.includes=function(rt){return He(this._value,rt)},te.prototype.slice=function(rt,ht){var Gt=this.size;return y(rt,ht,Gt)?this:new te(this._value,S(ht,Gt)-w(rt,Gt))},te.prototype.reverse=function(){return this},te.prototype.indexOf=function(rt){return He(this._value,rt)?0:-1},te.prototype.lastIndexOf=function(rt){return He(this._value,rt)?this.size:-1},te.prototype.__iterate=function(rt,ht){for(var Gt=this.size,xn=0;xn!==Gt&&rt(this._value,ht?Gt-++xn:xn++,this)!==!1;);return xn},te.prototype.__iterator=function(rt,ht){var Gt=this,xn=this.size,Hn=0;return new ye(function(){return Hn===xn?Ae():Se(rt,ht?xn-++Hn:Hn++,Gt._value)})},te.prototype.equals=function(rt){return rt instanceof te?He(this._value,rt._value):ai(rt)},te}(le),Mn;function en(Le,te){return sn([],te||qt,Le,"",te&&te.length>2?[]:void 0,{"":Le})}function sn(Le,te,Ue,rt,ht,Gt){if(typeof Ue!="string"&&!oe(Ue)&&(U(Ue)||Ee(Ue)||ln(Ue))){if(~Le.indexOf(Ue))throw new TypeError("Cannot convert circular structure to Immutable");Le.push(Ue),ht&&rt!==""&&ht.push(rt);var xn=te.call(Gt,rt,F(Ue).map(function(Hn,wr){return sn(Le,te,Hn,wr,ht,Ue)}),ht&&ht.slice());return Le.pop(),ht&&ht.pop(),xn}return Ue}function qt(Le,te){return j(te)?te.toList():T(te)?te.toMap():te.toSet()}var In="4.3.5",Kn={version:In,Collection:_,Iterable:_,Seq:F,Map:as,OrderedMap:Cn,List:Yn,Stack:Xo,Set:nr,OrderedSet:Is,PairSorting:Iu,Record:rl,Range:Qn,Repeat:Bu,is:He,fromJS:en,hash:We,isImmutable:oe,isCollection:D,isKeyed:T,isIndexed:j,isAssociative:ae,isOrdered:H,isValueObject:De,isPlainObject:ln,isSeq:fe,isList:br,isMap:K,isOrderedMap:ue,isStack:co,isSet:yr,isOrderedSet:Rr,isRecord:ce,get:Sn,getIn:hr,has:_i,hasIn:Ve,merge:Ho,mergeDeep:So,mergeWith:ra,mergeDeepWith:gr,remove:mt,removeIn:$r,set:fn,setIn:Vn,update:zr,updateIn:gt},Fr=_;const ci=Kn},70788:(J,g,t)=>{"use strict";t.r(g),t.d(g,{isAnyArray:()=>l});const i=Object.prototype.toString;function l(s){const m=i.call(s);return m.endsWith("Array]")&&!m.includes("Big")}},57746:(J,g)=>{"use strict";var t;t={value:!0};for(var i=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),l={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},s={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:i?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},m={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},u=1;u<20;u++)m["f"+u]=111+u;function f(w,S,O){S&&!("byKey"in S)&&(O=S,S=null),Array.isArray(w)||(w=[w]);var R=w.map(function(P){return h(P,S)}),M=function(T){return R.some(function(A){return d(A,T)})},D=O==null?M:M(O);return D}function p(w,S){return f(w,S)}function v(w,S){return f(w,{byKey:!0},S)}function h(w,S){var O=S&&S.byKey,R={};w=w.replace("++","+add");var M=w.split("+"),D=M.length;for(var P in l)R[l[P]]=!1;var T=!0,A=!1,j=void 0;try{for(var ae=M[Symbol.iterator](),_;!(T=(_=ae.next()).done);T=!0){var N=_.value,W=N.endsWith("?")&&N.length>1;W&&(N=N.slice(0,-1));var he=y(N),me=l[he];if(N.length>1&&!me&&!s[N]&&!m[he])throw new TypeError('Unknown modifier: "'+N+'"');(D===1||!me)&&(O?R.key=he:R.which=b(N)),me&&(R[me]=W?null:!0)}}catch(fe){A=!0,j=fe}finally{try{!T&&ae.return&&ae.return()}finally{if(A)throw j}}return R}function d(w,S){for(var O in w){var R=w[O],M=void 0;if(R!=null&&(O==="key"&&S.key!=null?M=S.key.toLowerCase():O==="which"?M=R===91&&S.which===93?91:S.which:M=S[O],!(M==null&&R===!1)&&M!==R))return!1}return!0}function b(w){w=y(w);var S=m[w]||w.toUpperCase().charCodeAt(0);return S}function y(w){return w=w.toLowerCase(),w=s[w]||w,w}t=f,t=f,t=p,g.Sn=v,t=h,t=d,t=b,t=y},13798:J=>{"use strict";/*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */J.exports=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}},25948:(J,g)=>{"use strict";g.l=self.atob.bind(self),g.E=self.btoa.bind(self)},74692:function(J,g){var t,i;/*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */(function(l,s){"use strict";typeof J.exports=="object"?J.exports=l.document?s(l,!0):function(m){if(!m.document)throw new Error("jQuery requires a window with a document");return s(m)}:s(l)})(typeof window<"u"?window:this,function(l,s){"use strict";var m=[],u=Object.getPrototypeOf,f=m.slice,p=m.flat?function(Ie){return m.flat.call(Ie)}:function(Ie){return m.concat.apply([],Ie)},v=m.push,h=m.indexOf,d={},b=d.toString,y=d.hasOwnProperty,w=y.toString,S=w.call(Object),O={},R=function(yt){return typeof yt=="function"&&typeof yt.nodeType!="number"&&typeof yt.item!="function"},M=function(yt){return yt!=null&&yt===yt.window},D=l.document,P={type:!0,src:!0,nonce:!0,noModule:!0};function T(Ie,yt,on){on=on||D;var _n,er,or=on.createElement("script");if(or.text=Ie,yt)for(_n in P)er=yt[_n]||yt.getAttribute&&yt.getAttribute(_n),er&&or.setAttribute(_n,er);on.head.appendChild(or).parentNode.removeChild(or)}function A(Ie){return Ie==null?Ie+"":typeof Ie=="object"||typeof Ie=="function"?d[b.call(Ie)]||"object":typeof Ie}var j="3.7.1",ae=/HTML$/i,_=function(Ie,yt){return new _.fn.init(Ie,yt)};_.fn=_.prototype={jquery:j,constructor:_,length:0,toArray:function(){return f.call(this)},get:function(Ie){return Ie==null?f.call(this):Ie<0?this[Ie+this.length]:this[Ie]},pushStack:function(Ie){var yt=_.merge(this.constructor(),Ie);return yt.prevObject=this,yt},each:function(Ie){return _.each(this,Ie)},map:function(Ie){return this.pushStack(_.map(this,function(yt,on){return Ie.call(yt,on,yt)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(Ie,yt){return(yt+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(Ie,yt){return yt%2}))},eq:function(Ie){var yt=this.length,on=+Ie+(Ie<0?yt:0);return this.pushStack(on>=0&&on<yt?[this[on]]:[])},end:function(){return this.prevObject||this.constructor()},push:v,sort:m.sort,splice:m.splice},_.extend=_.fn.extend=function(){var Ie,yt,on,_n,er,or,Er=arguments[0]||{},Mi=1,Ui=arguments.length,Nn=!1;for(typeof Er=="boolean"&&(Nn=Er,Er=arguments[Mi]||{},Mi++),typeof Er!="object"&&!R(Er)&&(Er={}),Mi===Ui&&(Er=this,Mi--);Mi<Ui;Mi++)if((Ie=arguments[Mi])!=null)for(yt in Ie)_n=Ie[yt],!(yt==="__proto__"||Er===_n)&&(Nn&&_n&&(_.isPlainObject(_n)||(er=Array.isArray(_n)))?(on=Er[yt],er&&!Array.isArray(on)?or=[]:!er&&!_.isPlainObject(on)?or={}:or=on,er=!1,Er[yt]=_.extend(Nn,or,_n)):_n!==void 0&&(Er[yt]=_n));return Er},_.extend({expando:"jQuery"+(j+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Ie){throw new Error(Ie)},noop:function(){},isPlainObject:function(Ie){var yt,on;return!Ie||b.call(Ie)!=="[object Object]"?!1:(yt=u(Ie),yt?(on=y.call(yt,"constructor")&&yt.constructor,typeof on=="function"&&w.call(on)===S):!0)},isEmptyObject:function(Ie){var yt;for(yt in Ie)return!1;return!0},globalEval:function(Ie,yt,on){T(Ie,{nonce:yt&&yt.nonce},on)},each:function(Ie,yt){var on,_n=0;if(N(Ie))for(on=Ie.length;_n<on&&yt.call(Ie[_n],_n,Ie[_n])!==!1;_n++);else for(_n in Ie)if(yt.call(Ie[_n],_n,Ie[_n])===!1)break;return Ie},text:function(Ie){var yt,on="",_n=0,er=Ie.nodeType;if(!er)for(;yt=Ie[_n++];)on+=_.text(yt);return er===1||er===11?Ie.textContent:er===9?Ie.documentElement.textContent:er===3||er===4?Ie.nodeValue:on},makeArray:function(Ie,yt){var on=yt||[];return Ie!=null&&(N(Object(Ie))?_.merge(on,typeof Ie=="string"?[Ie]:Ie):v.call(on,Ie)),on},inArray:function(Ie,yt,on){return yt==null?-1:h.call(yt,Ie,on)},isXMLDoc:function(Ie){var yt=Ie&&Ie.namespaceURI,on=Ie&&(Ie.ownerDocument||Ie).documentElement;return!ae.test(yt||on&&on.nodeName||"HTML")},merge:function(Ie,yt){for(var on=+yt.length,_n=0,er=Ie.length;_n<on;_n++)Ie[er++]=yt[_n];return Ie.length=er,Ie},grep:function(Ie,yt,on){for(var _n,er=[],or=0,Er=Ie.length,Mi=!on;or<Er;or++)_n=!yt(Ie[or],or),_n!==Mi&&er.push(Ie[or]);return er},map:function(Ie,yt,on){var _n,er,or=0,Er=[];if(N(Ie))for(_n=Ie.length;or<_n;or++)er=yt(Ie[or],or,on),er!=null&&Er.push(er);else for(or in Ie)er=yt(Ie[or],or,on),er!=null&&Er.push(er);return p(Er)},guid:1,support:O}),typeof Symbol=="function"&&(_.fn[Symbol.iterator]=m[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Ie,yt){d["[object "+yt+"]"]=yt.toLowerCase()});function N(Ie){var yt=!!Ie&&"length"in Ie&&Ie.length,on=A(Ie);return R(Ie)||M(Ie)?!1:on==="array"||yt===0||typeof yt=="number"&&yt>0&&yt-1 in Ie}function W(Ie,yt){return Ie.nodeName&&Ie.nodeName.toLowerCase()===yt.toLowerCase()}var he=m.pop,me=m.sort,fe=m.splice,ve="[\\x20\\t\\r\\n\\f]",ce=new RegExp("^"+ve+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ve+"+$","g");_.contains=function(Ie,yt){var on=yt&&yt.parentNode;return Ie===on||!!(on&&on.nodeType===1&&(Ie.contains?Ie.contains(on):Ie.compareDocumentPosition&&Ie.compareDocumentPosition(on)&16))};var oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function re(Ie,yt){return yt?Ie==="\0"?"\uFFFD":Ie.slice(0,-1)+"\\"+Ie.charCodeAt(Ie.length-1).toString(16)+" ":"\\"+Ie}_.escapeSelector=function(Ie){return(Ie+"").replace(oe,re)};var H=D,V=v;(function(){var Ie,yt,on,_n,er,or=V,Er,Mi,Ui,Nn,cr,ni=_.expando,Xr=0,Jr=0,Qi=Xo(),Fo=Xo(),No=Xo(),Jo=Xo(),br=function(Ve,Ot){return Ve===Ot&&(er=!0),0},Yn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Z="(?:\\\\[\\da-fA-F]{1,6}"+ve+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",se="\\["+ve+"*("+Z+")(?:"+ve+"*([*^$|!~]?=)"+ve+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Z+"))|)"+ve+"*\\]",G=":("+Z+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+se+")*)|.*)\\)|)",B=new RegExp(ve+"+","g"),Pe=new RegExp("^"+ve+"*,"+ve+"*"),dt=new RegExp("^"+ve+"*([>+~]|"+ve+")"+ve+"*"),Lt=new RegExp(ve+"|>"),Pt=new RegExp(G),$e=new RegExp("^"+Z+"$"),ut={ID:new RegExp("^#("+Z+")"),CLASS:new RegExp("^\\.("+Z+")"),TAG:new RegExp("^("+Z+"|[*])"),ATTR:new RegExp("^"+se),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ve+"*(even|odd|(([+-]|)(\\d*)n|)"+ve+"*(?:([+-]|)"+ve+"*(\\d+)|))"+ve+"*\\)|)","i"),bool:new RegExp("^(?:"+Yn+")$","i"),needsContext:new RegExp("^"+ve+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ve+"*((?:-\\d)?\\d*)"+ve+"*\\)|)(?=[^-]|$)","i")},zt=/^(?:input|select|textarea|button)$/i,Ht=/^h\d$/i,Fn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Cn=/[+~]/,tr=new RegExp("\\\\[\\da-fA-F]{1,6}"+ve+"?|\\\\([^\\r\\n\\f])","g"),Jn=function(Ve,Ot){var wn="0x"+Ve.slice(1)-65536;return Ot||(wn<0?String.fromCharCode(wn+65536):String.fromCharCode(wn>>10|55296,wn&1023|56320))},ei=function(){ai()},Ci=Ir(function(Ve){return Ve.disabled===!0&&W(Ve,"fieldset")},{dir:"parentNode",next:"legend"});function zi(){try{return Er.activeElement}catch{}}try{or.apply(m=f.call(H.childNodes),H.childNodes),m[H.childNodes.length].nodeType}catch{or={apply:function(Ot,wn){V.apply(Ot,f.call(wn))},call:function(Ot){V.apply(Ot,f.call(arguments,1))}}}function co(Ve,Ot,wn,Wt){var Yt,zn,Nr,si,Ki,Bi,Xi,vo=Ot&&Ot.ownerDocument,ea=Ot?Ot.nodeType:9;if(wn=wn||[],typeof Ve!="string"||!Ve||ea!==1&&ea!==9&&ea!==11)return wn;if(!Wt&&(ai(Ot),Ot=Ot||Er,Ui)){if(ea!==11&&(Ki=Fn.exec(Ve)))if(Yt=Ki[1]){if(ea===9)if(Nr=Ot.getElementById(Yt)){if(Nr.id===Yt)return or.call(wn,Nr),wn}else return wn;else if(vo&&(Nr=vo.getElementById(Yt))&&co.contains(Ot,Nr)&&Nr.id===Yt)return or.call(wn,Nr),wn}else{if(Ki[2])return or.apply(wn,Ot.getElementsByTagName(Ve)),wn;if((Yt=Ki[3])&&Ot.getElementsByClassName)return or.apply(wn,Ot.getElementsByClassName(Yt)),wn}if(!Jo[Ve+" "]&&(!Nn||!Nn.test(Ve))){if(Xi=Ve,vo=Ot,ea===1&&(Lt.test(Ve)||dt.test(Ve))){for(vo=Cn.test(Ve)&&Rr(Ot.parentNode)||Ot,(vo!=Ot||!O.scope)&&((si=Ot.getAttribute("id"))?si=_.escapeSelector(si):Ot.setAttribute("id",si=ni)),Bi=Pn(Ve),zn=Bi.length;zn--;)Bi[zn]=(si?"#"+si:":scope")+" "+nr(Bi[zn]);Xi=Bi.join(",")}try{return or.apply(wn,vo.querySelectorAll(Xi)),wn}catch{Jo(Ve,!0)}finally{si===ni&&Ot.removeAttribute("id")}}}return kr(Ve.replace(ce,"$1"),Ot,wn,Wt)}function Xo(){var Ve=[];function Ot(wn,Wt){return Ve.push(wn+" ")>yt.cacheLength&&delete Ot[Ve.shift()],Ot[wn+" "]=Wt}return Ot}function Eo(Ve){return Ve[ni]=!0,Ve}function Yo(Ve){var Ot=Er.createElement("fieldset");try{return!!Ve(Ot)}catch{return!1}finally{Ot.parentNode&&Ot.parentNode.removeChild(Ot),Ot=null}}function Xn(Ve){return function(Ot){return W(Ot,"input")&&Ot.type===Ve}}function fr(Ve){return function(Ot){return(W(Ot,"input")||W(Ot,"button"))&&Ot.type===Ve}}function mr(Ve){return function(Ot){return"form"in Ot?Ot.parentNode&&Ot.disabled===!1?"label"in Ot?"label"in Ot.parentNode?Ot.parentNode.disabled===Ve:Ot.disabled===Ve:Ot.isDisabled===Ve||Ot.isDisabled!==!Ve&&Ci(Ot)===Ve:Ot.disabled===Ve:"label"in Ot?Ot.disabled===Ve:!1}}function yr(Ve){return Eo(function(Ot){return Ot=+Ot,Eo(function(wn,Wt){for(var Yt,zn=Ve([],wn.length,Ot),Nr=zn.length;Nr--;)wn[Yt=zn[Nr]]&&(wn[Yt]=!(Wt[Yt]=wn[Yt]))})})}function Rr(Ve){return Ve&&typeof Ve.getElementsByTagName<"u"&&Ve}function ai(Ve){var Ot,wn=Ve?Ve.ownerDocument||Ve:H;return wn==Er||wn.nodeType!==9||!wn.documentElement||(Er=wn,Mi=Er.documentElement,Ui=!_.isXMLDoc(Er),cr=Mi.matches||Mi.webkitMatchesSelector||Mi.msMatchesSelector,Mi.msMatchesSelector&&H!=Er&&(Ot=Er.defaultView)&&Ot.top!==Ot&&Ot.addEventListener("unload",ei),O.getById=Yo(function(Wt){return Mi.appendChild(Wt).id=_.expando,!Er.getElementsByName||!Er.getElementsByName(_.expando).length}),O.disconnectedMatch=Yo(function(Wt){return cr.call(Wt,"*")}),O.scope=Yo(function(){return Er.querySelectorAll(":scope")}),O.cssHas=Yo(function(){try{return Er.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),O.getById?(yt.filter.ID=function(Wt){var Yt=Wt.replace(tr,Jn);return function(zn){return zn.getAttribute("id")===Yt}},yt.find.ID=function(Wt,Yt){if(typeof Yt.getElementById<"u"&&Ui){var zn=Yt.getElementById(Wt);return zn?[zn]:[]}}):(yt.filter.ID=function(Wt){var Yt=Wt.replace(tr,Jn);return function(zn){var Nr=typeof zn.getAttributeNode<"u"&&zn.getAttributeNode("id");return Nr&&Nr.value===Yt}},yt.find.ID=function(Wt,Yt){if(typeof Yt.getElementById<"u"&&Ui){var zn,Nr,si,Ki=Yt.getElementById(Wt);if(Ki){if(zn=Ki.getAttributeNode("id"),zn&&zn.value===Wt)return[Ki];for(si=Yt.getElementsByName(Wt),Nr=0;Ki=si[Nr++];)if(zn=Ki.getAttributeNode("id"),zn&&zn.value===Wt)return[Ki]}return[]}}),yt.find.TAG=function(Wt,Yt){return typeof Yt.getElementsByTagName<"u"?Yt.getElementsByTagName(Wt):Yt.querySelectorAll(Wt)},yt.find.CLASS=function(Wt,Yt){if(typeof Yt.getElementsByClassName<"u"&&Ui)return Yt.getElementsByClassName(Wt)},Nn=[],Yo(function(Wt){var Yt;Mi.appendChild(Wt).innerHTML="<a id='"+ni+"' href='' disabled='disabled'></a><select id='"+ni+"-\r\\' disabled='disabled'><option selected=''></option></select>",Wt.querySelectorAll("[selected]").length||Nn.push("\\["+ve+"*(?:value|"+Yn+")"),Wt.querySelectorAll("[id~="+ni+"-]").length||Nn.push("~="),Wt.querySelectorAll("a#"+ni+"+*").length||Nn.push(".#.+[+~]"),Wt.querySelectorAll(":checked").length||Nn.push(":checked"),Yt=Er.createElement("input"),Yt.setAttribute("type","hidden"),Wt.appendChild(Yt).setAttribute("name","D"),Mi.appendChild(Wt).disabled=!0,Wt.querySelectorAll(":disabled").length!==2&&Nn.push(":enabled",":disabled"),Yt=Er.createElement("input"),Yt.setAttribute("name",""),Wt.appendChild(Yt),Wt.querySelectorAll("[name='']").length||Nn.push("\\["+ve+"*name"+ve+"*="+ve+`*(?:''|"")`)}),O.cssHas||Nn.push(":has"),Nn=Nn.length&&new RegExp(Nn.join("|")),br=function(Wt,Yt){if(Wt===Yt)return er=!0,0;var zn=!Wt.compareDocumentPosition-!Yt.compareDocumentPosition;return zn||(zn=(Wt.ownerDocument||Wt)==(Yt.ownerDocument||Yt)?Wt.compareDocumentPosition(Yt):1,zn&1||!O.sortDetached&&Yt.compareDocumentPosition(Wt)===zn?Wt===Er||Wt.ownerDocument==H&&co.contains(H,Wt)?-1:Yt===Er||Yt.ownerDocument==H&&co.contains(H,Yt)?1:_n?h.call(_n,Wt)-h.call(_n,Yt):0:zn&4?-1:1)}),Er}co.matches=function(Ve,Ot){return co(Ve,null,null,Ot)},co.matchesSelector=function(Ve,Ot){if(ai(Ve),Ui&&!Jo[Ot+" "]&&(!Nn||!Nn.test(Ot)))try{var wn=cr.call(Ve,Ot);if(wn||O.disconnectedMatch||Ve.document&&Ve.document.nodeType!==11)return wn}catch{Jo(Ot,!0)}return co(Ot,Er,null,[Ve]).length>0},co.contains=function(Ve,Ot){return(Ve.ownerDocument||Ve)!=Er&&ai(Ve),_.contains(Ve,Ot)},co.attr=function(Ve,Ot){(Ve.ownerDocument||Ve)!=Er&&ai(Ve);var wn=yt.attrHandle[Ot.toLowerCase()],Wt=wn&&y.call(yt.attrHandle,Ot.toLowerCase())?wn(Ve,Ot,!Ui):void 0;return Wt!==void 0?Wt:Ve.getAttribute(Ot)},co.error=function(Ve){throw new Error("Syntax error, unrecognized expression: "+Ve)},_.uniqueSort=function(Ve){var Ot,wn=[],Wt=0,Yt=0;if(er=!O.sortStable,_n=!O.sortStable&&f.call(Ve,0),me.call(Ve,br),er){for(;Ot=Ve[Yt++];)Ot===Ve[Yt]&&(Wt=wn.push(Yt));for(;Wt--;)fe.call(Ve,wn[Wt],1)}return _n=null,Ve},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(f.apply(this)))},yt=_.expr={cacheLength:50,createPseudo:Eo,match:ut,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Ve){return Ve[1]=Ve[1].replace(tr,Jn),Ve[3]=(Ve[3]||Ve[4]||Ve[5]||"").replace(tr,Jn),Ve[2]==="~="&&(Ve[3]=" "+Ve[3]+" "),Ve.slice(0,4)},CHILD:function(Ve){return Ve[1]=Ve[1].toLowerCase(),Ve[1].slice(0,3)==="nth"?(Ve[3]||co.error(Ve[0]),Ve[4]=+(Ve[4]?Ve[5]+(Ve[6]||1):2*(Ve[3]==="even"||Ve[3]==="odd")),Ve[5]=+(Ve[7]+Ve[8]||Ve[3]==="odd")):Ve[3]&&co.error(Ve[0]),Ve},PSEUDO:function(Ve){var Ot,wn=!Ve[6]&&Ve[2];return ut.CHILD.test(Ve[0])?null:(Ve[3]?Ve[2]=Ve[4]||Ve[5]||"":wn&&Pt.test(wn)&&(Ot=Pn(wn,!0))&&(Ot=wn.indexOf(")",wn.length-Ot)-wn.length)&&(Ve[0]=Ve[0].slice(0,Ot),Ve[2]=wn.slice(0,Ot)),Ve.slice(0,3))}},filter:{TAG:function(Ve){var Ot=Ve.replace(tr,Jn).toLowerCase();return Ve==="*"?function(){return!0}:function(wn){return W(wn,Ot)}},CLASS:function(Ve){var Ot=Qi[Ve+" "];return Ot||(Ot=new RegExp("(^|"+ve+")"+Ve+"("+ve+"|$)"))&&Qi(Ve,function(wn){return Ot.test(typeof wn.className=="string"&&wn.className||typeof wn.getAttribute<"u"&&wn.getAttribute("class")||"")})},ATTR:function(Ve,Ot,wn){return function(Wt){var Yt=co.attr(Wt,Ve);return Yt==null?Ot==="!=":Ot?(Yt+="",Ot==="="?Yt===wn:Ot==="!="?Yt!==wn:Ot==="^="?wn&&Yt.indexOf(wn)===0:Ot==="*="?wn&&Yt.indexOf(wn)>-1:Ot==="$="?wn&&Yt.slice(-wn.length)===wn:Ot==="~="?(" "+Yt.replace(B," ")+" ").indexOf(wn)>-1:Ot==="|="?Yt===wn||Yt.slice(0,wn.length+1)===wn+"-":!1):!0}},CHILD:function(Ve,Ot,wn,Wt,Yt){var zn=Ve.slice(0,3)!=="nth",Nr=Ve.slice(-4)!=="last",si=Ot==="of-type";return Wt===1&&Yt===0?function(Ki){return!!Ki.parentNode}:function(Ki,Bi,Xi){var vo,ea,la,ss,Rs,Ds=zn!==Nr?"nextSibling":"previousSibling",Is=Ki.parentNode,nu=si&&Ki.nodeName.toLowerCase(),Ls=!Xi&&!si,gu=!1;if(Is){if(zn){for(;Ds;){for(la=Ki;la=la[Ds];)if(si?W(la,nu):la.nodeType===1)return!1;Rs=Ds=Ve==="only"&&!Rs&&"nextSibling"}return!0}if(Rs=[Nr?Is.firstChild:Is.lastChild],Nr&&Ls){for(ea=Is[ni]||(Is[ni]={}),vo=ea[Ve]||[],ss=vo[0]===Xr&&vo[1],gu=ss&&vo[2],la=ss&&Is.childNodes[ss];la=++ss&&la&&la[Ds]||(gu=ss=0)||Rs.pop();)if(la.nodeType===1&&++gu&&la===Ki){ea[Ve]=[Xr,ss,gu];break}}else if(Ls&&(ea=Ki[ni]||(Ki[ni]={}),vo=ea[Ve]||[],ss=vo[0]===Xr&&vo[1],gu=ss),gu===!1)for(;(la=++ss&&la&&la[Ds]||(gu=ss=0)||Rs.pop())&&!((si?W(la,nu):la.nodeType===1)&&++gu&&(Ls&&(ea=la[ni]||(la[ni]={}),ea[Ve]=[Xr,gu]),la===Ki)););return gu-=Yt,gu===Wt||gu%Wt===0&&gu/Wt>=0}}},PSEUDO:function(Ve,Ot){var wn,Wt=yt.pseudos[Ve]||yt.setFilters[Ve.toLowerCase()]||co.error("unsupported pseudo: "+Ve);return Wt[ni]?Wt(Ot):Wt.length>1?(wn=[Ve,Ve,"",Ot],yt.setFilters.hasOwnProperty(Ve.toLowerCase())?Eo(function(Yt,zn){for(var Nr,si=Wt(Yt,Ot),Ki=si.length;Ki--;)Nr=h.call(Yt,si[Ki]),Yt[Nr]=!(zn[Nr]=si[Ki])}):function(Yt){return Wt(Yt,0,wn)}):Wt}},pseudos:{not:Eo(function(Ve){var Ot=[],wn=[],Wt=hr(Ve.replace(ce,"$1"));return Wt[ni]?Eo(function(Yt,zn,Nr,si){for(var Ki,Bi=Wt(Yt,null,si,[]),Xi=Yt.length;Xi--;)(Ki=Bi[Xi])&&(Yt[Xi]=!(zn[Xi]=Ki))}):function(Yt,zn,Nr){return Ot[0]=Yt,Wt(Ot,null,Nr,wn),Ot[0]=null,!wn.pop()}}),has:Eo(function(Ve){return function(Ot){return co(Ve,Ot).length>0}}),contains:Eo(function(Ve){return Ve=Ve.replace(tr,Jn),function(Ot){return(Ot.textContent||_.text(Ot)).indexOf(Ve)>-1}}),lang:Eo(function(Ve){return $e.test(Ve||"")||co.error("unsupported lang: "+Ve),Ve=Ve.replace(tr,Jn).toLowerCase(),function(Ot){var wn;do if(wn=Ui?Ot.lang:Ot.getAttribute("xml:lang")||Ot.getAttribute("lang"))return wn=wn.toLowerCase(),wn===Ve||wn.indexOf(Ve+"-")===0;while((Ot=Ot.parentNode)&&Ot.nodeType===1);return!1}}),target:function(Ve){var Ot=l.location&&l.location.hash;return Ot&&Ot.slice(1)===Ve.id},root:function(Ve){return Ve===Mi},focus:function(Ve){return Ve===zi()&&Er.hasFocus()&&!!(Ve.type||Ve.href||~Ve.tabIndex)},enabled:mr(!1),disabled:mr(!0),checked:function(Ve){return W(Ve,"input")&&!!Ve.checked||W(Ve,"option")&&!!Ve.selected},selected:function(Ve){return Ve.parentNode&&Ve.parentNode.selectedIndex,Ve.selected===!0},empty:function(Ve){for(Ve=Ve.firstChild;Ve;Ve=Ve.nextSibling)if(Ve.nodeType<6)return!1;return!0},parent:function(Ve){return!yt.pseudos.empty(Ve)},header:function(Ve){return Ht.test(Ve.nodeName)},input:function(Ve){return zt.test(Ve.nodeName)},button:function(Ve){return W(Ve,"input")&&Ve.type==="button"||W(Ve,"button")},text:function(Ve){var Ot;return W(Ve,"input")&&Ve.type==="text"&&((Ot=Ve.getAttribute("type"))==null||Ot.toLowerCase()==="text")},first:yr(function(){return[0]}),last:yr(function(Ve,Ot){return[Ot-1]}),eq:yr(function(Ve,Ot,wn){return[wn<0?wn+Ot:wn]}),even:yr(function(Ve,Ot){for(var wn=0;wn<Ot;wn+=2)Ve.push(wn);return Ve}),odd:yr(function(Ve,Ot){for(var wn=1;wn<Ot;wn+=2)Ve.push(wn);return Ve}),lt:yr(function(Ve,Ot,wn){var Wt;for(wn<0?Wt=wn+Ot:wn>Ot?Wt=Ot:Wt=wn;--Wt>=0;)Ve.push(Wt);return Ve}),gt:yr(function(Ve,Ot,wn){for(var Wt=wn<0?wn+Ot:wn;++Wt<Ot;)Ve.push(Wt);return Ve})}},yt.pseudos.nth=yt.pseudos.eq;for(Ie in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})yt.pseudos[Ie]=Xn(Ie);for(Ie in{submit:!0,reset:!0})yt.pseudos[Ie]=fr(Ie);function jt(){}jt.prototype=yt.filters=yt.pseudos,yt.setFilters=new jt;function Pn(Ve,Ot){var wn,Wt,Yt,zn,Nr,si,Ki,Bi=Fo[Ve+" "];if(Bi)return Ot?0:Bi.slice(0);for(Nr=Ve,si=[],Ki=yt.preFilter;Nr;){(!wn||(Wt=Pe.exec(Nr)))&&(Wt&&(Nr=Nr.slice(Wt[0].length)||Nr),si.push(Yt=[])),wn=!1,(Wt=dt.exec(Nr))&&(wn=Wt.shift(),Yt.push({value:wn,type:Wt[0].replace(ce," ")}),Nr=Nr.slice(wn.length));for(zn in yt.filter)(Wt=ut[zn].exec(Nr))&&(!Ki[zn]||(Wt=Ki[zn](Wt)))&&(wn=Wt.shift(),Yt.push({value:wn,type:zn,matches:Wt}),Nr=Nr.slice(wn.length));if(!wn)break}return Ot?Nr.length:Nr?co.error(Ve):Fo(Ve,si).slice(0)}function nr(Ve){for(var Ot=0,wn=Ve.length,Wt="";Ot<wn;Ot++)Wt+=Ve[Ot].value;return Wt}function Ir(Ve,Ot,wn){var Wt=Ot.dir,Yt=Ot.next,zn=Yt||Wt,Nr=wn&&zn==="parentNode",si=Jr++;return Ot.first?function(Ki,Bi,Xi){for(;Ki=Ki[Wt];)if(Ki.nodeType===1||Nr)return Ve(Ki,Bi,Xi);return!1}:function(Ki,Bi,Xi){var vo,ea,la=[Xr,si];if(Xi){for(;Ki=Ki[Wt];)if((Ki.nodeType===1||Nr)&&Ve(Ki,Bi,Xi))return!0}else for(;Ki=Ki[Wt];)if(Ki.nodeType===1||Nr)if(ea=Ki[ni]||(Ki[ni]={}),Yt&&W(Ki,Yt))Ki=Ki[Wt]||Ki;else{if((vo=ea[zn])&&vo[0]===Xr&&vo[1]===si)return la[2]=vo[2];if(ea[zn]=la,la[2]=Ve(Ki,Bi,Xi))return!0}return!1}}function fi(Ve){return Ve.length>1?function(Ot,wn,Wt){for(var Yt=Ve.length;Yt--;)if(!Ve[Yt](Ot,wn,Wt))return!1;return!0}:Ve[0]}function Ti(Ve,Ot,wn){for(var Wt=0,Yt=Ot.length;Wt<Yt;Wt++)co(Ve,Ot[Wt],wn);return wn}function Oe(Ve,Ot,wn,Wt,Yt){for(var zn,Nr=[],si=0,Ki=Ve.length,Bi=Ot!=null;si<Ki;si++)(zn=Ve[si])&&(!wn||wn(zn,Wt,Yt))&&(Nr.push(zn),Bi&&Ot.push(si));return Nr}function pn(Ve,Ot,wn,Wt,Yt,zn){return Wt&&!Wt[ni]&&(Wt=pn(Wt)),Yt&&!Yt[ni]&&(Yt=pn(Yt,zn)),Eo(function(Nr,si,Ki,Bi){var Xi,vo,ea,la,ss=[],Rs=[],Ds=si.length,Is=Nr||Ti(Ot||"*",Ki.nodeType?[Ki]:Ki,[]),nu=Ve&&(Nr||!Ot)?Oe(Is,ss,Ve,Ki,Bi):Is;if(wn?(la=Yt||(Nr?Ve:Ds||Wt)?[]:si,wn(nu,la,Ki,Bi)):la=nu,Wt)for(Xi=Oe(la,Rs),Wt(Xi,[],Ki,Bi),vo=Xi.length;vo--;)(ea=Xi[vo])&&(la[Rs[vo]]=!(nu[Rs[vo]]=ea));if(Nr){if(Yt||Ve){if(Yt){for(Xi=[],vo=la.length;vo--;)(ea=la[vo])&&Xi.push(nu[vo]=ea);Yt(null,la=[],Xi,Bi)}for(vo=la.length;vo--;)(ea=la[vo])&&(Xi=Yt?h.call(Nr,ea):ss[vo])>-1&&(Nr[Xi]=!(si[Xi]=ea))}}else la=Oe(la===si?la.splice(Ds,la.length):la),Yt?Yt(null,si,la,Bi):or.apply(si,la)})}function Qn(Ve){for(var Ot,wn,Wt,Yt=Ve.length,zn=yt.relative[Ve[0].type],Nr=zn||yt.relative[" "],si=zn?1:0,Ki=Ir(function(vo){return vo===Ot},Nr,!0),Bi=Ir(function(vo){return h.call(Ot,vo)>-1},Nr,!0),Xi=[function(vo,ea,la){var ss=!zn&&(la||ea!=on)||((Ot=ea).nodeType?Ki(vo,ea,la):Bi(vo,ea,la));return Ot=null,ss}];si<Yt;si++)if(wn=yt.relative[Ve[si].type])Xi=[Ir(fi(Xi),wn)];else{if(wn=yt.filter[Ve[si].type].apply(null,Ve[si].matches),wn[ni]){for(Wt=++si;Wt<Yt&&!yt.relative[Ve[Wt].type];Wt++);return pn(si>1&&fi(Xi),si>1&&nr(Ve.slice(0,si-1).concat({value:Ve[si-2].type===" "?"*":""})).replace(ce,"$1"),wn,si<Wt&&Qn(Ve.slice(si,Wt)),Wt<Yt&&Qn(Ve=Ve.slice(Wt)),Wt<Yt&&nr(Ve))}Xi.push(wn)}return fi(Xi)}function Sr(Ve,Ot){var wn=Ot.length>0,Wt=Ve.length>0,Yt=function(zn,Nr,si,Ki,Bi){var Xi,vo,ea,la=0,ss="0",Rs=zn&&[],Ds=[],Is=on,nu=zn||Wt&&yt.find.TAG("*",Bi),Ls=Xr+=Is==null?1:Math.random()||.1,gu=nu.length;for(Bi&&(on=Nr==Er||Nr||Bi);ss!==gu&&(Xi=nu[ss])!=null;ss++){if(Wt&&Xi){for(vo=0,!Nr&&Xi.ownerDocument!=Er&&(ai(Xi),si=!Ui);ea=Ve[vo++];)if(ea(Xi,Nr||Er,si)){or.call(Ki,Xi);break}Bi&&(Xr=Ls)}wn&&((Xi=!ea&&Xi)&&la--,zn&&Rs.push(Xi))}if(la+=ss,wn&&ss!==la){for(vo=0;ea=Ot[vo++];)ea(Rs,Ds,Nr,si);if(zn){if(la>0)for(;ss--;)Rs[ss]||Ds[ss]||(Ds[ss]=he.call(Ki));Ds=Oe(Ds)}or.apply(Ki,Ds),Bi&&!zn&&Ds.length>0&&la+Ot.length>1&&_.uniqueSort(Ki)}return Bi&&(Xr=Ls,on=Is),Rs};return wn?Eo(Yt):Yt}function hr(Ve,Ot){var wn,Wt=[],Yt=[],zn=No[Ve+" "];if(!zn){for(Ot||(Ot=Pn(Ve)),wn=Ot.length;wn--;)zn=Qn(Ot[wn]),zn[ni]?Wt.push(zn):Yt.push(zn);zn=No(Ve,Sr(Yt,Wt)),zn.selector=Ve}return zn}function kr(Ve,Ot,wn,Wt){var Yt,zn,Nr,si,Ki,Bi=typeof Ve=="function"&&Ve,Xi=!Wt&&Pn(Ve=Bi.selector||Ve);if(wn=wn||[],Xi.length===1){if(zn=Xi[0]=Xi[0].slice(0),zn.length>2&&(Nr=zn[0]).type==="ID"&&Ot.nodeType===9&&Ui&&yt.relative[zn[1].type]){if(Ot=(yt.find.ID(Nr.matches[0].replace(tr,Jn),Ot)||[])[0],Ot)Bi&&(Ot=Ot.parentNode);else return wn;Ve=Ve.slice(zn.shift().value.length)}for(Yt=ut.needsContext.test(Ve)?0:zn.length;Yt--&&(Nr=zn[Yt],!yt.relative[si=Nr.type]);)if((Ki=yt.find[si])&&(Wt=Ki(Nr.matches[0].replace(tr,Jn),Cn.test(zn[0].type)&&Rr(Ot.parentNode)||Ot))){if(zn.splice(Yt,1),Ve=Wt.length&&nr(zn),!Ve)return or.apply(wn,Wt),wn;break}}return(Bi||hr(Ve,Xi))(Wt,Ot,!Ui,wn,!Ot||Cn.test(Ve)&&Rr(Ot.parentNode)||Ot),wn}O.sortStable=ni.split("").sort(br).join("")===ni,ai(),O.sortDetached=Yo(function(Ve){return Ve.compareDocumentPosition(Er.createElement("fieldset"))&1}),_.find=co,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,co.compile=hr,co.select=kr,co.setDocument=ai,co.tokenize=Pn,co.escape=_.escapeSelector,co.getText=_.text,co.isXML=_.isXMLDoc,co.selectors=_.expr,co.support=_.support,co.uniqueSort=_.uniqueSort})();var Q=function(Ie,yt,on){for(var _n=[],er=on!==void 0;(Ie=Ie[yt])&&Ie.nodeType!==9;)if(Ie.nodeType===1){if(er&&_(Ie).is(on))break;_n.push(Ie)}return _n},Te=function(Ie,yt){for(var on=[];Ie;Ie=Ie.nextSibling)Ie.nodeType===1&&Ie!==yt&&on.push(Ie);return on},Re=_.expr.match.needsContext,ne=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function pe(Ie,yt,on){return R(yt)?_.grep(Ie,function(_n,er){return!!yt.call(_n,er,_n)!==on}):yt.nodeType?_.grep(Ie,function(_n){return _n===yt!==on}):typeof yt!="string"?_.grep(Ie,function(_n){return h.call(yt,_n)>-1!==on}):_.filter(yt,Ie,on)}_.filter=function(Ie,yt,on){var _n=yt[0];return on&&(Ie=":not("+Ie+")"),yt.length===1&&_n.nodeType===1?_.find.matchesSelector(_n,Ie)?[_n]:[]:_.find.matches(Ie,_.grep(yt,function(er){return er.nodeType===1}))},_.fn.extend({find:function(Ie){var yt,on,_n=this.length,er=this;if(typeof Ie!="string")return this.pushStack(_(Ie).filter(function(){for(yt=0;yt<_n;yt++)if(_.contains(er[yt],this))return!0}));for(on=this.pushStack([]),yt=0;yt<_n;yt++)_.find(Ie,er[yt],on);return _n>1?_.uniqueSort(on):on},filter:function(Ie){return this.pushStack(pe(this,Ie||[],!1))},not:function(Ie){return this.pushStack(pe(this,Ie||[],!0))},is:function(Ie){return!!pe(this,typeof Ie=="string"&&Re.test(Ie)?_(Ie):Ie||[],!1).length}});var ye,Se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ae=_.fn.init=function(Ie,yt,on){var _n,er;if(!Ie)return this;if(on=on||ye,typeof Ie=="string")if(Ie[0]==="<"&&Ie[Ie.length-1]===">"&&Ie.length>=3?_n=[null,Ie,null]:_n=Se.exec(Ie),_n&&(_n[1]||!yt))if(_n[1]){if(yt=yt instanceof _?yt[0]:yt,_.merge(this,_.parseHTML(_n[1],yt&&yt.nodeType?yt.ownerDocument||yt:D,!0)),ne.test(_n[1])&&_.isPlainObject(yt))for(_n in yt)R(this[_n])?this[_n](yt[_n]):this.attr(_n,yt[_n]);return this}else return er=D.getElementById(_n[2]),er&&(this[0]=er,this.length=1),this;else return!yt||yt.jquery?(yt||on).find(Ie):this.constructor(yt).find(Ie);else{if(Ie.nodeType)return this[0]=Ie,this.length=1,this;if(R(Ie))return on.ready!==void 0?on.ready(Ie):Ie(_)}return _.makeArray(Ie,this)};Ae.prototype=_.fn,ye=_(D);var Ee=/^(?:parents|prev(?:Until|All))/,xe={children:!0,contents:!0,next:!0,prev:!0};_.fn.extend({has:function(Ie){var yt=_(Ie,this),on=yt.length;return this.filter(function(){for(var _n=0;_n<on;_n++)if(_.contains(this,yt[_n]))return!0})},closest:function(Ie,yt){var on,_n=0,er=this.length,or=[],Er=typeof Ie!="string"&&_(Ie);if(!Re.test(Ie)){for(;_n<er;_n++)for(on=this[_n];on&&on!==yt;on=on.parentNode)if(on.nodeType<11&&(Er?Er.index(on)>-1:on.nodeType===1&&_.find.matchesSelector(on,Ie))){or.push(on);break}}return this.pushStack(or.length>1?_.uniqueSort(or):or)},index:function(Ie){return Ie?typeof Ie=="string"?h.call(_(Ie),this[0]):h.call(this,Ie.jquery?Ie[0]:Ie):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Ie,yt){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(Ie,yt))))},addBack:function(Ie){return this.add(Ie==null?this.prevObject:this.prevObject.filter(Ie))}});function nt(Ie,yt){for(;(Ie=Ie[yt])&&Ie.nodeType!==1;);return Ie}_.each({parent:function(Ie){var yt=Ie.parentNode;return yt&&yt.nodeType!==11?yt:null},parents:function(Ie){return Q(Ie,"parentNode")},parentsUntil:function(Ie,yt,on){return Q(Ie,"parentNode",on)},next:function(Ie){return nt(Ie,"nextSibling")},prev:function(Ie){return nt(Ie,"previousSibling")},nextAll:function(Ie){return Q(Ie,"nextSibling")},prevAll:function(Ie){return Q(Ie,"previousSibling")},nextUntil:function(Ie,yt,on){return Q(Ie,"nextSibling",on)},prevUntil:function(Ie,yt,on){return Q(Ie,"previousSibling",on)},siblings:function(Ie){return Te((Ie.parentNode||{}).firstChild,Ie)},children:function(Ie){return Te(Ie.firstChild)},contents:function(Ie){return Ie.contentDocument!=null&&u(Ie.contentDocument)?Ie.contentDocument:(W(Ie,"template")&&(Ie=Ie.content||Ie),_.merge([],Ie.childNodes))}},function(Ie,yt){_.fn[Ie]=function(on,_n){var er=_.map(this,yt,on);return Ie.slice(-5)!=="Until"&&(_n=on),_n&&typeof _n=="string"&&(er=_.filter(_n,er)),this.length>1&&(xe[Ie]||_.uniqueSort(er),Ee.test(Ie)&&er.reverse()),this.pushStack(er)}});var Tt=/[^\x20\t\r\n\f]+/g;function pt(Ie){var yt={};return _.each(Ie.match(Tt)||[],function(on,_n){yt[_n]=!0}),yt}_.Callbacks=function(Ie){Ie=typeof Ie=="string"?pt(Ie):_.extend({},Ie);var yt,on,_n,er,or=[],Er=[],Mi=-1,Ui=function(){for(er=er||Ie.once,_n=yt=!0;Er.length;Mi=-1)for(on=Er.shift();++Mi<or.length;)or[Mi].apply(on[0],on[1])===!1&&Ie.stopOnFalse&&(Mi=or.length,on=!1);Ie.memory||(on=!1),yt=!1,er&&(on?or=[]:or="")},Nn={add:function(){return or&&(on&&!yt&&(Mi=or.length-1,Er.push(on)),function cr(ni){_.each(ni,function(Xr,Jr){R(Jr)?(!Ie.unique||!Nn.has(Jr))&&or.push(Jr):Jr&&Jr.length&&A(Jr)!=="string"&&cr(Jr)})}(arguments),on&&!yt&&Ui()),this},remove:function(){return _.each(arguments,function(cr,ni){for(var Xr;(Xr=_.inArray(ni,or,Xr))>-1;)or.splice(Xr,1),Xr<=Mi&&Mi--}),this},has:function(cr){return cr?_.inArray(cr,or)>-1:or.length>0},empty:function(){return or&&(or=[]),this},disable:function(){return er=Er=[],or=on="",this},disabled:function(){return!or},lock:function(){return er=Er=[],!on&&!yt&&(or=on=""),this},locked:function(){return!!er},fireWith:function(cr,ni){return er||(ni=ni||[],ni=[cr,ni.slice?ni.slice():ni],Er.push(ni),yt||Ui()),this},fire:function(){return Nn.fireWith(this,arguments),this},fired:function(){return!!_n}};return Nn};function Rt(Ie){return Ie}function tt(Ie){throw Ie}function U(Ie,yt,on,_n){var er;try{Ie&&R(er=Ie.promise)?er.call(Ie).done(yt).fail(on):Ie&&R(er=Ie.then)?er.call(Ie,yt,on):yt.apply(void 0,[Ie].slice(_n))}catch(or){on.apply(void 0,[or])}}_.extend({Deferred:function(Ie){var yt=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],on="pending",_n={state:function(){return on},always:function(){return er.done(arguments).fail(arguments),this},catch:function(or){return _n.then(null,or)},pipe:function(){var or=arguments;return _.Deferred(function(Er){_.each(yt,function(Mi,Ui){var Nn=R(or[Ui[4]])&&or[Ui[4]];er[Ui[1]](function(){var cr=Nn&&Nn.apply(this,arguments);cr&&R(cr.promise)?cr.promise().progress(Er.notify).done(Er.resolve).fail(Er.reject):Er[Ui[0]+"With"](this,Nn?[cr]:arguments)})}),or=null}).promise()},then:function(or,Er,Mi){var Ui=0;function Nn(cr,ni,Xr,Jr){return function(){var Qi=this,Fo=arguments,No=function(){var br,Yn;if(!(cr<Ui)){if(br=Xr.apply(Qi,Fo),br===ni.promise())throw new TypeError("Thenable self-resolution");Yn=br&&(typeof br=="object"||typeof br=="function")&&br.then,R(Yn)?Jr?Yn.call(br,Nn(Ui,ni,Rt,Jr),Nn(Ui,ni,tt,Jr)):(Ui++,Yn.call(br,Nn(Ui,ni,Rt,Jr),Nn(Ui,ni,tt,Jr),Nn(Ui,ni,Rt,ni.notifyWith))):(Xr!==Rt&&(Qi=void 0,Fo=[br]),(Jr||ni.resolveWith)(Qi,Fo))}},Jo=Jr?No:function(){try{No()}catch(br){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(br,Jo.error),cr+1>=Ui&&(Xr!==tt&&(Qi=void 0,Fo=[br]),ni.rejectWith(Qi,Fo))}};cr?Jo():(_.Deferred.getErrorHook?Jo.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(Jo.error=_.Deferred.getStackHook()),l.setTimeout(Jo))}}return _.Deferred(function(cr){yt[0][3].add(Nn(0,cr,R(Mi)?Mi:Rt,cr.notifyWith)),yt[1][3].add(Nn(0,cr,R(or)?or:Rt)),yt[2][3].add(Nn(0,cr,R(Er)?Er:tt))}).promise()},promise:function(or){return or!=null?_.extend(or,_n):_n}},er={};return _.each(yt,function(or,Er){var Mi=Er[2],Ui=Er[5];_n[Er[1]]=Mi.add,Ui&&Mi.add(function(){on=Ui},yt[3-or][2].disable,yt[3-or][3].disable,yt[0][2].lock,yt[0][3].lock),Mi.add(Er[3].fire),er[Er[0]]=function(){return er[Er[0]+"With"](this===er?void 0:this,arguments),this},er[Er[0]+"With"]=Mi.fireWith}),_n.promise(er),Ie&&Ie.call(er,er),er},when:function(Ie){var yt=arguments.length,on=yt,_n=Array(on),er=f.call(arguments),or=_.Deferred(),Er=function(Mi){return function(Ui){_n[Mi]=this,er[Mi]=arguments.length>1?f.call(arguments):Ui,--yt||or.resolveWith(_n,er)}};if(yt<=1&&(U(Ie,or.done(Er(on)).resolve,or.reject,!yt),or.state()==="pending"||R(er[on]&&er[on].then)))return or.then();for(;on--;)U(er[on],Er(on),or.reject);return or.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(Ie,yt){l.console&&l.console.warn&&Ie&&F.test(Ie.name)&&l.console.warn("jQuery.Deferred exception: "+Ie.message,Ie.stack,yt)},_.readyException=function(Ie){l.setTimeout(function(){throw Ie})};var Y=_.Deferred();_.fn.ready=function(Ie){return Y.then(Ie).catch(function(yt){_.readyException(yt)}),this},_.extend({isReady:!1,readyWait:1,ready:function(Ie){(Ie===!0?--_.readyWait:_.isReady)||(_.isReady=!0,!(Ie!==!0&&--_.readyWait>0)&&Y.resolveWith(D,[_]))}}),_.ready.then=Y.then;function le(){D.removeEventListener("DOMContentLoaded",le),l.removeEventListener("load",le),_.ready()}D.readyState==="complete"||D.readyState!=="loading"&&!D.documentElement.doScroll?l.setTimeout(_.ready):(D.addEventListener("DOMContentLoaded",le),l.addEventListener("load",le));var ke=function(Ie,yt,on,_n,er,or,Er){var Mi=0,Ui=Ie.length,Nn=on==null;if(A(on)==="object"){er=!0;for(Mi in on)ke(Ie,yt,Mi,on[Mi],!0,or,Er)}else if(_n!==void 0&&(er=!0,R(_n)||(Er=!0),Nn&&(Er?(yt.call(Ie,_n),yt=null):(Nn=yt,yt=function(cr,ni,Xr){return Nn.call(_(cr),Xr)})),yt))for(;Mi<Ui;Mi++)yt(Ie[Mi],on,Er?_n:_n.call(Ie[Mi],Mi,yt(Ie[Mi],on)));return er?Ie:Nn?yt.call(Ie):Ui?yt(Ie[0],on):or},Ye=/^-ms-/,ft=/-([a-z])/g;function wt(Ie,yt){return yt.toUpperCase()}function Ut(Ie){return Ie.replace(Ye,"ms-").replace(ft,wt)}var Ke=function(Ie){return Ie.nodeType===1||Ie.nodeType===9||!+Ie.nodeType};function it(){this.expando=_.expando+it.uid++}it.uid=1,it.prototype={cache:function(Ie){var yt=Ie[this.expando];return yt||(yt={},Ke(Ie)&&(Ie.nodeType?Ie[this.expando]=yt:Object.defineProperty(Ie,this.expando,{value:yt,configurable:!0}))),yt},set:function(Ie,yt,on){var _n,er=this.cache(Ie);if(typeof yt=="string")er[Ut(yt)]=on;else for(_n in yt)er[Ut(_n)]=yt[_n];return er},get:function(Ie,yt){return yt===void 0?this.cache(Ie):Ie[this.expando]&&Ie[this.expando][Ut(yt)]},access:function(Ie,yt,on){return yt===void 0||yt&&typeof yt=="string"&&on===void 0?this.get(Ie,yt):(this.set(Ie,yt,on),on!==void 0?on:yt)},remove:function(Ie,yt){var on,_n=Ie[this.expando];if(_n!==void 0){if(yt!==void 0)for(Array.isArray(yt)?yt=yt.map(Ut):(yt=Ut(yt),yt=yt in _n?[yt]:yt.match(Tt)||[]),on=yt.length;on--;)delete _n[yt[on]];(yt===void 0||_.isEmptyObject(_n))&&(Ie.nodeType?Ie[this.expando]=void 0:delete Ie[this.expando])}},hasData:function(Ie){var yt=Ie[this.expando];return yt!==void 0&&!_.isEmptyObject(yt)}};var At=new it,et=new it,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,I=/[A-Z]/g;function K(Ie){return Ie==="true"?!0:Ie==="false"?!1:Ie==="null"?null:Ie===+Ie+""?+Ie:ee.test(Ie)?JSON.parse(Ie):Ie}function ue(Ie,yt,on){var _n;if(on===void 0&&Ie.nodeType===1)if(_n="data-"+yt.replace(I,"-$&").toLowerCase(),on=Ie.getAttribute(_n),typeof on=="string"){try{on=K(on)}catch{}et.set(Ie,yt,on)}else on=void 0;return on}_.extend({hasData:function(Ie){return et.hasData(Ie)||At.hasData(Ie)},data:function(Ie,yt,on){return et.access(Ie,yt,on)},removeData:function(Ie,yt){et.remove(Ie,yt)},_data:function(Ie,yt,on){return At.access(Ie,yt,on)},_removeData:function(Ie,yt){At.remove(Ie,yt)}}),_.fn.extend({data:function(Ie,yt){var on,_n,er,or=this[0],Er=or&&or.attributes;if(Ie===void 0){if(this.length&&(er=et.get(or),or.nodeType===1&&!At.get(or,"hasDataAttrs"))){for(on=Er.length;on--;)Er[on]&&(_n=Er[on].name,_n.indexOf("data-")===0&&(_n=Ut(_n.slice(5)),ue(or,_n,er[_n])));At.set(or,"hasDataAttrs",!0)}return er}return typeof Ie=="object"?this.each(function(){et.set(this,Ie)}):ke(this,function(Mi){var Ui;if(or&&Mi===void 0)return Ui=et.get(or,Ie),Ui!==void 0||(Ui=ue(or,Ie),Ui!==void 0)?Ui:void 0;this.each(function(){et.set(this,Ie,Mi)})},null,yt,arguments.length>1,null,!0)},removeData:function(Ie){return this.each(function(){et.remove(this,Ie)})}}),_.extend({queue:function(Ie,yt,on){var _n;if(Ie)return yt=(yt||"fx")+"queue",_n=At.get(Ie,yt),on&&(!_n||Array.isArray(on)?_n=At.access(Ie,yt,_.makeArray(on)):_n.push(on)),_n||[]},dequeue:function(Ie,yt){yt=yt||"fx";var on=_.queue(Ie,yt),_n=on.length,er=on.shift(),or=_._queueHooks(Ie,yt),Er=function(){_.dequeue(Ie,yt)};er==="inprogress"&&(er=on.shift(),_n--),er&&(yt==="fx"&&on.unshift("inprogress"),delete or.stop,er.call(Ie,Er,or)),!_n&&or&&or.empty.fire()},_queueHooks:function(Ie,yt){var on=yt+"queueHooks";return At.get(Ie,on)||At.access(Ie,on,{empty:_.Callbacks("once memory").add(function(){At.remove(Ie,[yt+"queue",on])})})}}),_.fn.extend({queue:function(Ie,yt){var on=2;return typeof Ie!="string"&&(yt=Ie,Ie="fx",on--),arguments.length<on?_.queue(this[0],Ie):yt===void 0?this:this.each(function(){var _n=_.queue(this,Ie,yt);_._queueHooks(this,Ie),Ie==="fx"&&_n[0]!=="inprogress"&&_.dequeue(this,Ie)})},dequeue:function(Ie){return this.each(function(){_.dequeue(this,Ie)})},clearQueue:function(Ie){return this.queue(Ie||"fx",[])},promise:function(Ie,yt){var on,_n=1,er=_.Deferred(),or=this,Er=this.length,Mi=function(){--_n||er.resolveWith(or,[or])};for(typeof Ie!="string"&&(yt=Ie,Ie=void 0),Ie=Ie||"fx";Er--;)on=At.get(or[Er],Ie+"queueHooks"),on&&on.empty&&(_n++,on.empty.add(Mi));return Mi(),er.promise(yt)}});var De=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,He=new RegExp("^(?:([+-])=|)("+De+")([a-z%]*)$","i"),Fe=["Top","Right","Bottom","Left"],ze=D.documentElement,qe=function(Ie){return _.contains(Ie.ownerDocument,Ie)},We={composed:!0};ze.getRootNode&&(qe=function(Ie){return _.contains(Ie.ownerDocument,Ie)||Ie.getRootNode(We)===Ie.ownerDocument});var _t=function(Ie,yt){return Ie=yt||Ie,Ie.style.display==="none"||Ie.style.display===""&&qe(Ie)&&_.css(Ie,"display")==="none"};function ct(Ie,yt,on,_n){var er,or,Er=20,Mi=_n?function(){return _n.cur()}:function(){return _.css(Ie,yt,"")},Ui=Mi(),Nn=on&&on[3]||(_.cssNumber[yt]?"":"px"),cr=Ie.nodeType&&(_.cssNumber[yt]||Nn!=="px"&&+Ui)&&He.exec(_.css(Ie,yt));if(cr&&cr[3]!==Nn){for(Ui=Ui/2,Nn=Nn||cr[3],cr=+Ui||1;Er--;)_.style(Ie,yt,cr+Nn),(1-or)*(1-(or=Mi()/Ui||.5))<=0&&(Er=0),cr=cr/or;cr=cr*2,_.style(Ie,yt,cr+Nn),on=on||[]}return on&&(cr=+cr||+Ui||0,er=on[1]?cr+(on[1]+1)*on[2]:+on[2],_n&&(_n.unit=Nn,_n.start=cr,_n.end=er)),er}var Ge={};function st(Ie){var yt,on=Ie.ownerDocument,_n=Ie.nodeName,er=Ge[_n];return er||(yt=on.body.appendChild(on.createElement(_n)),er=_.css(yt,"display"),yt.parentNode.removeChild(yt),er==="none"&&(er="block"),Ge[_n]=er,er)}function Me(Ie,yt){for(var on,_n,er=[],or=0,Er=Ie.length;or<Er;or++)_n=Ie[or],_n.style&&(on=_n.style.display,yt?(on==="none"&&(er[or]=At.get(_n,"display")||null,er[or]||(_n.style.display="")),_n.style.display===""&&_t(_n)&&(er[or]=st(_n))):on!=="none"&&(er[or]="none",At.set(_n,"display",on)));for(or=0;or<Er;or++)er[or]!=null&&(Ie[or].style.display=er[or]);return Ie}_.fn.extend({show:function(){return Me(this,!0)},hide:function(){return Me(this)},toggle:function(Ie){return typeof Ie=="boolean"?Ie?this.show():this.hide():this.each(function(){_t(this)?_(this).show():_(this).hide()})}});var ie=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,z=/^$|^module$|\/(?:java|ecma)script/i;(function(){var Ie=D.createDocumentFragment(),yt=Ie.appendChild(D.createElement("div")),on=D.createElement("input");on.setAttribute("type","radio"),on.setAttribute("checked","checked"),on.setAttribute("name","t"),yt.appendChild(on),O.checkClone=yt.cloneNode(!0).cloneNode(!0).lastChild.checked,yt.innerHTML="<textarea>x</textarea>",O.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue,yt.innerHTML="<option></option>",O.option=!!yt.lastChild})();var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,O.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);function Qe(Ie,yt){var on;return typeof Ie.getElementsByTagName<"u"?on=Ie.getElementsByTagName(yt||"*"):typeof Ie.querySelectorAll<"u"?on=Ie.querySelectorAll(yt||"*"):on=[],yt===void 0||yt&&W(Ie,yt)?_.merge([Ie],on):on}function Bt(Ie,yt){for(var on=0,_n=Ie.length;on<_n;on++)At.set(Ie[on],"globalEval",!yt||At.get(yt[on],"globalEval"))}var nn=/<|&#?\w+;/;function bt(Ie,yt,on,_n,er){for(var or,Er,Mi,Ui,Nn,cr,ni=yt.createDocumentFragment(),Xr=[],Jr=0,Qi=Ie.length;Jr<Qi;Jr++)if(or=Ie[Jr],or||or===0)if(A(or)==="object")_.merge(Xr,or.nodeType?[or]:or);else if(!nn.test(or))Xr.push(yt.createTextNode(or));else{for(Er=Er||ni.appendChild(yt.createElement("div")),Mi=(ge.exec(or)||["",""])[1].toLowerCase(),Ui=be[Mi]||be._default,Er.innerHTML=Ui[1]+_.htmlPrefilter(or)+Ui[2],cr=Ui[0];cr--;)Er=Er.lastChild;_.merge(Xr,Er.childNodes),Er=ni.firstChild,Er.textContent=""}for(ni.textContent="",Jr=0;or=Xr[Jr++];){if(_n&&_.inArray(or,_n)>-1){er&&er.push(or);continue}if(Nn=qe(or),Er=Qe(ni.appendChild(or),"script"),Nn&&Bt(Er),on)for(cr=0;or=Er[cr++];)z.test(or.type||"")&&on.push(or)}return ni}var at=/^([^.]*)(?:\.(.+)|)/;function $t(){return!0}function On(){return!1}function Ct(Ie,yt,on,_n,er,or){var Er,Mi;if(typeof yt=="object"){typeof on!="string"&&(_n=_n||on,on=void 0);for(Mi in yt)Ct(Ie,Mi,on,_n,yt[Mi],or);return Ie}if(_n==null&&er==null?(er=on,_n=on=void 0):er==null&&(typeof on=="string"?(er=_n,_n=void 0):(er=_n,_n=on,on=void 0)),er===!1)er=On;else if(!er)return Ie;return or===1&&(Er=er,er=function(Ui){return _().off(Ui),Er.apply(this,arguments)},er.guid=Er.guid||(Er.guid=_.guid++)),Ie.each(function(){_.event.add(this,yt,er,_n,on)})}_.event={global:{},add:function(Ie,yt,on,_n,er){var or,Er,Mi,Ui,Nn,cr,ni,Xr,Jr,Qi,Fo,No=At.get(Ie);if(Ke(Ie))for(on.handler&&(or=on,on=or.handler,er=or.selector),er&&_.find.matchesSelector(ze,er),on.guid||(on.guid=_.guid++),(Ui=No.events)||(Ui=No.events=Object.create(null)),(Er=No.handle)||(Er=No.handle=function(Jo){return typeof _<"u"&&_.event.triggered!==Jo.type?_.event.dispatch.apply(Ie,arguments):void 0}),yt=(yt||"").match(Tt)||[""],Nn=yt.length;Nn--;)Mi=at.exec(yt[Nn])||[],Jr=Fo=Mi[1],Qi=(Mi[2]||"").split(".").sort(),Jr&&(ni=_.event.special[Jr]||{},Jr=(er?ni.delegateType:ni.bindType)||Jr,ni=_.event.special[Jr]||{},cr=_.extend({type:Jr,origType:Fo,data:_n,handler:on,guid:on.guid,selector:er,needsContext:er&&_.expr.match.needsContext.test(er),namespace:Qi.join(".")},or),(Xr=Ui[Jr])||(Xr=Ui[Jr]=[],Xr.delegateCount=0,(!ni.setup||ni.setup.call(Ie,_n,Qi,Er)===!1)&&Ie.addEventListener&&Ie.addEventListener(Jr,Er)),ni.add&&(ni.add.call(Ie,cr),cr.handler.guid||(cr.handler.guid=on.guid)),er?Xr.splice(Xr.delegateCount++,0,cr):Xr.push(cr),_.event.global[Jr]=!0)},remove:function(Ie,yt,on,_n,er){var or,Er,Mi,Ui,Nn,cr,ni,Xr,Jr,Qi,Fo,No=At.hasData(Ie)&&At.get(Ie);if(!(!No||!(Ui=No.events))){for(yt=(yt||"").match(Tt)||[""],Nn=yt.length;Nn--;){if(Mi=at.exec(yt[Nn])||[],Jr=Fo=Mi[1],Qi=(Mi[2]||"").split(".").sort(),!Jr){for(Jr in Ui)_.event.remove(Ie,Jr+yt[Nn],on,_n,!0);continue}for(ni=_.event.special[Jr]||{},Jr=(_n?ni.delegateType:ni.bindType)||Jr,Xr=Ui[Jr]||[],Mi=Mi[2]&&new RegExp("(^|\\.)"+Qi.join("\\.(?:.*\\.|)")+"(\\.|$)"),Er=or=Xr.length;or--;)cr=Xr[or],(er||Fo===cr.origType)&&(!on||on.guid===cr.guid)&&(!Mi||Mi.test(cr.namespace))&&(!_n||_n===cr.selector||_n==="**"&&cr.selector)&&(Xr.splice(or,1),cr.selector&&Xr.delegateCount--,ni.remove&&ni.remove.call(Ie,cr));Er&&!Xr.length&&((!ni.teardown||ni.teardown.call(Ie,Qi,No.handle)===!1)&&_.removeEvent(Ie,Jr,No.handle),delete Ui[Jr])}_.isEmptyObject(Ui)&&At.remove(Ie,"handle events")}},dispatch:function(Ie){var yt,on,_n,er,or,Er,Mi=new Array(arguments.length),Ui=_.event.fix(Ie),Nn=(At.get(this,"events")||Object.create(null))[Ui.type]||[],cr=_.event.special[Ui.type]||{};for(Mi[0]=Ui,yt=1;yt<arguments.length;yt++)Mi[yt]=arguments[yt];if(Ui.delegateTarget=this,!(cr.preDispatch&&cr.preDispatch.call(this,Ui)===!1)){for(Er=_.event.handlers.call(this,Ui,Nn),yt=0;(er=Er[yt++])&&!Ui.isPropagationStopped();)for(Ui.currentTarget=er.elem,on=0;(or=er.handlers[on++])&&!Ui.isImmediatePropagationStopped();)(!Ui.rnamespace||or.namespace===!1||Ui.rnamespace.test(or.namespace))&&(Ui.handleObj=or,Ui.data=or.data,_n=((_.event.special[or.origType]||{}).handle||or.handler).apply(er.elem,Mi),_n!==void 0&&(Ui.result=_n)===!1&&(Ui.preventDefault(),Ui.stopPropagation()));return cr.postDispatch&&cr.postDispatch.call(this,Ui),Ui.result}},handlers:function(Ie,yt){var on,_n,er,or,Er,Mi=[],Ui=yt.delegateCount,Nn=Ie.target;if(Ui&&Nn.nodeType&&!(Ie.type==="click"&&Ie.button>=1)){for(;Nn!==this;Nn=Nn.parentNode||this)if(Nn.nodeType===1&&!(Ie.type==="click"&&Nn.disabled===!0)){for(or=[],Er={},on=0;on<Ui;on++)_n=yt[on],er=_n.selector+" ",Er[er]===void 0&&(Er[er]=_n.needsContext?_(er,this).index(Nn)>-1:_.find(er,this,null,[Nn]).length),Er[er]&&or.push(_n);or.length&&Mi.push({elem:Nn,handlers:or})}}return Nn=this,Ui<yt.length&&Mi.push({elem:Nn,handlers:yt.slice(Ui)}),Mi},addProp:function(Ie,yt){Object.defineProperty(_.Event.prototype,Ie,{enumerable:!0,configurable:!0,get:R(yt)?function(){if(this.originalEvent)return yt(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Ie]},set:function(on){Object.defineProperty(this,Ie,{enumerable:!0,configurable:!0,writable:!0,value:on})}})},fix:function(Ie){return Ie[_.expando]?Ie:new _.Event(Ie)},special:{load:{noBubble:!0},click:{setup:function(Ie){var yt=this||Ie;return ie.test(yt.type)&&yt.click&&W(yt,"input")&&Zt(yt,"click",!0),!1},trigger:function(Ie){var yt=this||Ie;return ie.test(yt.type)&&yt.click&&W(yt,"input")&&Zt(yt,"click"),!0},_default:function(Ie){var yt=Ie.target;return ie.test(yt.type)&&yt.click&&W(yt,"input")&&At.get(yt,"click")||W(yt,"a")}},beforeunload:{postDispatch:function(Ie){Ie.result!==void 0&&Ie.originalEvent&&(Ie.originalEvent.returnValue=Ie.result)}}}};function Zt(Ie,yt,on){if(!on){At.get(Ie,yt)===void 0&&_.event.add(Ie,yt,$t);return}At.set(Ie,yt,!1),_.event.add(Ie,yt,{namespace:!1,handler:function(_n){var er,or=At.get(this,yt);if(_n.isTrigger&1&&this[yt]){if(or)(_.event.special[yt]||{}).delegateType&&_n.stopPropagation();else if(or=f.call(arguments),At.set(this,yt,or),this[yt](),er=At.get(this,yt),At.set(this,yt,!1),or!==er)return _n.stopImmediatePropagation(),_n.preventDefault(),er}else or&&(At.set(this,yt,_.event.trigger(or[0],or.slice(1),this)),_n.stopPropagation(),_n.isImmediatePropagationStopped=$t)}})}_.removeEvent=function(Ie,yt,on){Ie.removeEventListener&&Ie.removeEventListener(yt,on)},_.Event=function(Ie,yt){if(!(this instanceof _.Event))return new _.Event(Ie,yt);Ie&&Ie.type?(this.originalEvent=Ie,this.type=Ie.type,this.isDefaultPrevented=Ie.defaultPrevented||Ie.defaultPrevented===void 0&&Ie.returnValue===!1?$t:On,this.target=Ie.target&&Ie.target.nodeType===3?Ie.target.parentNode:Ie.target,this.currentTarget=Ie.currentTarget,this.relatedTarget=Ie.relatedTarget):this.type=Ie,yt&&_.extend(this,yt),this.timeStamp=Ie&&Ie.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:On,isPropagationStopped:On,isImmediatePropagationStopped:On,isSimulated:!1,preventDefault:function(){var Ie=this.originalEvent;this.isDefaultPrevented=$t,Ie&&!this.isSimulated&&Ie.preventDefault()},stopPropagation:function(){var Ie=this.originalEvent;this.isPropagationStopped=$t,Ie&&!this.isSimulated&&Ie.stopPropagation()},stopImmediatePropagation:function(){var Ie=this.originalEvent;this.isImmediatePropagationStopped=$t,Ie&&!this.isSimulated&&Ie.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(Ie,yt){function on(_n){if(D.documentMode){var er=At.get(this,"handle"),or=_.event.fix(_n);or.type=_n.type==="focusin"?"focus":"blur",or.isSimulated=!0,er(_n),or.target===or.currentTarget&&er(or)}else _.event.simulate(yt,_n.target,_.event.fix(_n))}_.event.special[Ie]={setup:function(){var _n;if(Zt(this,Ie,!0),D.documentMode)_n=At.get(this,yt),_n||this.addEventListener(yt,on),At.set(this,yt,(_n||0)+1);else return!1},trigger:function(){return Zt(this,Ie),!0},teardown:function(){var _n;if(D.documentMode)_n=At.get(this,yt)-1,_n?At.set(this,yt,_n):(this.removeEventListener(yt,on),At.remove(this,yt));else return!1},_default:function(_n){return At.get(_n.target,Ie)},delegateType:yt},_.event.special[yt]={setup:function(){var _n=this.ownerDocument||this.document||this,er=D.documentMode?this:_n,or=At.get(er,yt);or||(D.documentMode?this.addEventListener(yt,on):_n.addEventListener(Ie,on,!0)),At.set(er,yt,(or||0)+1)},teardown:function(){var _n=this.ownerDocument||this.document||this,er=D.documentMode?this:_n,or=At.get(er,yt)-1;or?At.set(er,yt,or):(D.documentMode?this.removeEventListener(yt,on):_n.removeEventListener(Ie,on,!0),At.remove(er,yt))}}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Ie,yt){_.event.special[Ie]={delegateType:yt,bindType:yt,handle:function(on){var _n,er=this,or=on.relatedTarget,Er=on.handleObj;return(!or||or!==er&&!_.contains(er,or))&&(on.type=Er.origType,_n=Er.handler.apply(this,arguments),on.type=yt),_n}}}),_.fn.extend({on:function(Ie,yt,on,_n){return Ct(this,Ie,yt,on,_n)},one:function(Ie,yt,on,_n){return Ct(this,Ie,yt,on,_n,1)},off:function(Ie,yt,on){var _n,er;if(Ie&&Ie.preventDefault&&Ie.handleObj)return _n=Ie.handleObj,_(Ie.delegateTarget).off(_n.namespace?_n.origType+"."+_n.namespace:_n.origType,_n.selector,_n.handler),this;if(typeof Ie=="object"){for(er in Ie)this.off(er,yt,Ie[er]);return this}return(yt===!1||typeof yt=="function")&&(on=yt,yt=void 0),on===!1&&(on=On),this.each(function(){_.event.remove(this,Ie,on,yt)})}});var Wn=/<script|<style|<link/i,Zn=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Xe(Ie,yt){return W(Ie,"table")&&W(yt.nodeType!==11?yt:yt.firstChild,"tr")&&_(Ie).children("tbody")[0]||Ie}function gn(Ie){return Ie.type=(Ie.getAttribute("type")!==null)+"/"+Ie.type,Ie}function Qt(Ie){return(Ie.type||"").slice(0,5)==="true/"?Ie.type=Ie.type.slice(5):Ie.removeAttribute("type"),Ie}function Dt(Ie,yt){var on,_n,er,or,Er,Mi,Ui;if(yt.nodeType===1){if(At.hasData(Ie)&&(or=At.get(Ie),Ui=or.events,Ui)){At.remove(yt,"handle events");for(er in Ui)for(on=0,_n=Ui[er].length;on<_n;on++)_.event.add(yt,er,Ui[er][on])}et.hasData(Ie)&&(Er=et.access(Ie),Mi=_.extend({},Er),et.set(yt,Mi))}}function hn(Ie,yt){var on=yt.nodeName.toLowerCase();on==="input"&&ie.test(Ie.type)?yt.checked=Ie.checked:(on==="input"||on==="textarea")&&(yt.defaultValue=Ie.defaultValue)}function cn(Ie,yt,on,_n){yt=p(yt);var er,or,Er,Mi,Ui,Nn,cr=0,ni=Ie.length,Xr=ni-1,Jr=yt[0],Qi=R(Jr);if(Qi||ni>1&&typeof Jr=="string"&&!O.checkClone&&Zn.test(Jr))return Ie.each(function(Fo){var No=Ie.eq(Fo);Qi&&(yt[0]=Jr.call(this,Fo,No.html())),cn(No,yt,on,_n)});if(ni&&(er=bt(yt,Ie[0].ownerDocument,!1,Ie,_n),or=er.firstChild,er.childNodes.length===1&&(er=or),or||_n)){for(Er=_.map(Qe(er,"script"),gn),Mi=Er.length;cr<ni;cr++)Ui=er,cr!==Xr&&(Ui=_.clone(Ui,!0,!0),Mi&&_.merge(Er,Qe(Ui,"script"))),on.call(Ie[cr],Ui,cr);if(Mi)for(Nn=Er[Er.length-1].ownerDocument,_.map(Er,Qt),cr=0;cr<Mi;cr++)Ui=Er[cr],z.test(Ui.type||"")&&!At.access(Ui,"globalEval")&&_.contains(Nn,Ui)&&(Ui.src&&(Ui.type||"").toLowerCase()!=="module"?_._evalUrl&&!Ui.noModule&&_._evalUrl(Ui.src,{nonce:Ui.nonce||Ui.getAttribute("nonce")},Nn):T(Ui.textContent.replace(xt,""),Ui,Nn))}return Ie}function an(Ie,yt,on){for(var _n,er=yt?_.filter(yt,Ie):Ie,or=0;(_n=er[or])!=null;or++)!on&&_n.nodeType===1&&_.cleanData(Qe(_n)),_n.parentNode&&(on&&qe(_n)&&Bt(Qe(_n,"script")),_n.parentNode.removeChild(_n));return Ie}_.extend({htmlPrefilter:function(Ie){return Ie},clone:function(Ie,yt,on){var _n,er,or,Er,Mi=Ie.cloneNode(!0),Ui=qe(Ie);if(!O.noCloneChecked&&(Ie.nodeType===1||Ie.nodeType===11)&&!_.isXMLDoc(Ie))for(Er=Qe(Mi),or=Qe(Ie),_n=0,er=or.length;_n<er;_n++)hn(or[_n],Er[_n]);if(yt)if(on)for(or=or||Qe(Ie),Er=Er||Qe(Mi),_n=0,er=or.length;_n<er;_n++)Dt(or[_n],Er[_n]);else Dt(Ie,Mi);return Er=Qe(Mi,"script"),Er.length>0&&Bt(Er,!Ui&&Qe(Ie,"script")),Mi},cleanData:function(Ie){for(var yt,on,_n,er=_.event.special,or=0;(on=Ie[or])!==void 0;or++)if(Ke(on)){if(yt=on[At.expando]){if(yt.events)for(_n in yt.events)er[_n]?_.event.remove(on,_n):_.removeEvent(on,_n,yt.handle);on[At.expando]=void 0}on[et.expando]&&(on[et.expando]=void 0)}}}),_.fn.extend({detach:function(Ie){return an(this,Ie,!0)},remove:function(Ie){return an(this,Ie)},text:function(Ie){return ke(this,function(yt){return yt===void 0?_.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=yt)})},null,Ie,arguments.length)},append:function(){return cn(this,arguments,function(Ie){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var yt=Xe(this,Ie);yt.appendChild(Ie)}})},prepend:function(){return cn(this,arguments,function(Ie){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var yt=Xe(this,Ie);yt.insertBefore(Ie,yt.firstChild)}})},before:function(){return cn(this,arguments,function(Ie){this.parentNode&&this.parentNode.insertBefore(Ie,this)})},after:function(){return cn(this,arguments,function(Ie){this.parentNode&&this.parentNode.insertBefore(Ie,this.nextSibling)})},empty:function(){for(var Ie,yt=0;(Ie=this[yt])!=null;yt++)Ie.nodeType===1&&(_.cleanData(Qe(Ie,!1)),Ie.textContent="");return this},clone:function(Ie,yt){return Ie=Ie??!1,yt=yt??Ie,this.map(function(){return _.clone(this,Ie,yt)})},html:function(Ie){return ke(this,function(yt){var on=this[0]||{},_n=0,er=this.length;if(yt===void 0&&on.nodeType===1)return on.innerHTML;if(typeof yt=="string"&&!Wn.test(yt)&&!be[(ge.exec(yt)||["",""])[1].toLowerCase()]){yt=_.htmlPrefilter(yt);try{for(;_n<er;_n++)on=this[_n]||{},on.nodeType===1&&(_.cleanData(Qe(on,!1)),on.innerHTML=yt);on=0}catch{}}on&&this.empty().append(yt)},null,Ie,arguments.length)},replaceWith:function(){var Ie=[];return cn(this,arguments,function(yt){var on=this.parentNode;_.inArray(this,Ie)<0&&(_.cleanData(Qe(this)),on&&on.replaceChild(yt,this))},Ie)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Ie,yt){_.fn[Ie]=function(on){for(var _n,er=[],or=_(on),Er=or.length-1,Mi=0;Mi<=Er;Mi++)_n=Mi===Er?this:this.clone(!0),_(or[Mi])[yt](_n),v.apply(er,_n.get());return this.pushStack(er)}});var Or=new RegExp("^("+De+")(?!px)[a-z%]+$","i"),Ln=/^--/,En=function(Ie){var yt=Ie.ownerDocument.defaultView;return(!yt||!yt.opener)&&(yt=l),yt.getComputedStyle(Ie)},Gn=function(Ie,yt,on){var _n,er,or={};for(er in yt)or[er]=Ie.style[er],Ie.style[er]=yt[er];_n=on.call(Ie);for(er in yt)Ie.style[er]=or[er];return _n},rr=new RegExp(Fe.join("|"),"i");(function(){function Ie(){if(Nn){Ui.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Nn.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ze.appendChild(Ui).appendChild(Nn);var cr=l.getComputedStyle(Nn);on=cr.top!=="1%",Mi=yt(cr.marginLeft)===12,Nn.style.right="60%",or=yt(cr.right)===36,_n=yt(cr.width)===36,Nn.style.position="absolute",er=yt(Nn.offsetWidth/3)===12,ze.removeChild(Ui),Nn=null}}function yt(cr){return Math.round(parseFloat(cr))}var on,_n,er,or,Er,Mi,Ui=D.createElement("div"),Nn=D.createElement("div");Nn.style&&(Nn.style.backgroundClip="content-box",Nn.cloneNode(!0).style.backgroundClip="",O.clearCloneStyle=Nn.style.backgroundClip==="content-box",_.extend(O,{boxSizingReliable:function(){return Ie(),_n},pixelBoxStyles:function(){return Ie(),or},pixelPosition:function(){return Ie(),on},reliableMarginLeft:function(){return Ie(),Mi},scrollboxSize:function(){return Ie(),er},reliableTrDimensions:function(){var cr,ni,Xr,Jr;return Er==null&&(cr=D.createElement("table"),ni=D.createElement("tr"),Xr=D.createElement("div"),cr.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ni.style.cssText="box-sizing:content-box;border:1px solid",ni.style.height="1px",Xr.style.height="9px",Xr.style.display="block",ze.appendChild(cr).appendChild(ni).appendChild(Xr),Jr=l.getComputedStyle(ni),Er=parseInt(Jr.height,10)+parseInt(Jr.borderTopWidth,10)+parseInt(Jr.borderBottomWidth,10)===ni.offsetHeight,ze.removeChild(cr)),Er}}))})();function sr(Ie,yt,on){var _n,er,or,Er,Mi=Ln.test(yt),Ui=Ie.style;return on=on||En(Ie),on&&(Er=on.getPropertyValue(yt)||on[yt],Mi&&Er&&(Er=Er.replace(ce,"$1")||void 0),Er===""&&!qe(Ie)&&(Er=_.style(Ie,yt)),!O.pixelBoxStyles()&&Or.test(Er)&&rr.test(yt)&&(_n=Ui.width,er=Ui.minWidth,or=Ui.maxWidth,Ui.minWidth=Ui.maxWidth=Ui.width=Er,Er=on.width,Ui.width=_n,Ui.minWidth=er,Ui.maxWidth=or)),Er!==void 0?Er+"":Er}function pi(Ie,yt){return{get:function(){if(Ie()){delete this.get;return}return(this.get=yt).apply(this,arguments)}}}var yi=["Webkit","Moz","ms"],jr=D.createElement("div").style,ui={};function bi(Ie){for(var yt=Ie[0].toUpperCase()+Ie.slice(1),on=yi.length;on--;)if(Ie=yi[on]+yt,Ie in jr)return Ie}function ri(Ie){var yt=_.cssProps[Ie]||ui[Ie];return yt||(Ie in jr?Ie:ui[Ie]=bi(Ie)||Ie)}var hi=/^(none|table(?!-c[ea]).+)/,Si={position:"absolute",visibility:"hidden",display:"block"},Kr={letterSpacing:"0",fontWeight:"400"};function xi(Ie,yt,on){var _n=He.exec(yt);return _n?Math.max(0,_n[2]-(on||0))+(_n[3]||"px"):yt}function Ai(Ie,yt,on,_n,er,or){var Er=yt==="width"?1:0,Mi=0,Ui=0,Nn=0;if(on===(_n?"border":"content"))return 0;for(;Er<4;Er+=2)on==="margin"&&(Nn+=_.css(Ie,on+Fe[Er],!0,er)),_n?(on==="content"&&(Ui-=_.css(Ie,"padding"+Fe[Er],!0,er)),on!=="margin"&&(Ui-=_.css(Ie,"border"+Fe[Er]+"Width",!0,er))):(Ui+=_.css(Ie,"padding"+Fe[Er],!0,er),on!=="padding"?Ui+=_.css(Ie,"border"+Fe[Er]+"Width",!0,er):Mi+=_.css(Ie,"border"+Fe[Er]+"Width",!0,er));return!_n&&or>=0&&(Ui+=Math.max(0,Math.ceil(Ie["offset"+yt[0].toUpperCase()+yt.slice(1)]-or-Ui-Mi-.5))||0),Ui+Nn}function Pi(Ie,yt,on){var _n=En(Ie),er=!O.boxSizingReliable()||on,or=er&&_.css(Ie,"boxSizing",!1,_n)==="border-box",Er=or,Mi=sr(Ie,yt,_n),Ui="offset"+yt[0].toUpperCase()+yt.slice(1);if(Or.test(Mi)){if(!on)return Mi;Mi="auto"}return(!O.boxSizingReliable()&&or||!O.reliableTrDimensions()&&W(Ie,"tr")||Mi==="auto"||!parseFloat(Mi)&&_.css(Ie,"display",!1,_n)==="inline")&&Ie.getClientRects().length&&(or=_.css(Ie,"boxSizing",!1,_n)==="border-box",Er=Ui in Ie,Er&&(Mi=Ie[Ui])),Mi=parseFloat(Mi)||0,Mi+Ai(Ie,yt,on||(or?"border":"content"),Er,_n,Mi)+"px"}_.extend({cssHooks:{opacity:{get:function(Ie,yt){if(yt){var on=sr(Ie,"opacity");return on===""?"1":on}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(Ie,yt,on,_n){if(!(!Ie||Ie.nodeType===3||Ie.nodeType===8||!Ie.style)){var er,or,Er,Mi=Ut(yt),Ui=Ln.test(yt),Nn=Ie.style;if(Ui||(yt=ri(Mi)),Er=_.cssHooks[yt]||_.cssHooks[Mi],on!==void 0){if(or=typeof on,or==="string"&&(er=He.exec(on))&&er[1]&&(on=ct(Ie,yt,er),or="number"),on==null||on!==on)return;or==="number"&&!Ui&&(on+=er&&er[3]||(_.cssNumber[Mi]?"":"px")),!O.clearCloneStyle&&on===""&&yt.indexOf("background")===0&&(Nn[yt]="inherit"),(!Er||!("set"in Er)||(on=Er.set(Ie,on,_n))!==void 0)&&(Ui?Nn.setProperty(yt,on):Nn[yt]=on)}else return Er&&"get"in Er&&(er=Er.get(Ie,!1,_n))!==void 0?er:Nn[yt]}},css:function(Ie,yt,on,_n){var er,or,Er,Mi=Ut(yt),Ui=Ln.test(yt);return Ui||(yt=ri(Mi)),Er=_.cssHooks[yt]||_.cssHooks[Mi],Er&&"get"in Er&&(er=Er.get(Ie,!0,on)),er===void 0&&(er=sr(Ie,yt,_n)),er==="normal"&&yt in Kr&&(er=Kr[yt]),on===""||on?(or=parseFloat(er),on===!0||isFinite(or)?or||0:er):er}}),_.each(["height","width"],function(Ie,yt){_.cssHooks[yt]={get:function(on,_n,er){if(_n)return hi.test(_.css(on,"display"))&&(!on.getClientRects().length||!on.getBoundingClientRect().width)?Gn(on,Si,function(){return Pi(on,yt,er)}):Pi(on,yt,er)},set:function(on,_n,er){var or,Er=En(on),Mi=!O.scrollboxSize()&&Er.position==="absolute",Ui=Mi||er,Nn=Ui&&_.css(on,"boxSizing",!1,Er)==="border-box",cr=er?Ai(on,yt,er,Nn,Er):0;return Nn&&Mi&&(cr-=Math.ceil(on["offset"+yt[0].toUpperCase()+yt.slice(1)]-parseFloat(Er[yt])-Ai(on,yt,"border",!1,Er)-.5)),cr&&(or=He.exec(_n))&&(or[3]||"px")!=="px"&&(on.style[yt]=_n,_n=_.css(on,yt)),xi(on,_n,cr)}}}),_.cssHooks.marginLeft=pi(O.reliableMarginLeft,function(Ie,yt){if(yt)return(parseFloat(sr(Ie,"marginLeft"))||Ie.getBoundingClientRect().left-Gn(Ie,{marginLeft:0},function(){return Ie.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(Ie,yt){_.cssHooks[Ie+yt]={expand:function(on){for(var _n=0,er={},or=typeof on=="string"?on.split(" "):[on];_n<4;_n++)er[Ie+Fe[_n]+yt]=or[_n]||or[_n-2]||or[0];return er}},Ie!=="margin"&&(_.cssHooks[Ie+yt].set=xi)}),_.fn.extend({css:function(Ie,yt){return ke(this,function(on,_n,er){var or,Er,Mi={},Ui=0;if(Array.isArray(_n)){for(or=En(on),Er=_n.length;Ui<Er;Ui++)Mi[_n[Ui]]=_.css(on,_n[Ui],!1,or);return Mi}return er!==void 0?_.style(on,_n,er):_.css(on,_n)},Ie,yt,arguments.length>1)}});function io(Ie,yt,on,_n,er){return new io.prototype.init(Ie,yt,on,_n,er)}_.Tween=io,io.prototype={constructor:io,init:function(Ie,yt,on,_n,er,or){this.elem=Ie,this.prop=on,this.easing=er||_.easing._default,this.options=yt,this.start=this.now=this.cur(),this.end=_n,this.unit=or||(_.cssNumber[on]?"":"px")},cur:function(){var Ie=io.propHooks[this.prop];return Ie&&Ie.get?Ie.get(this):io.propHooks._default.get(this)},run:function(Ie){var yt,on=io.propHooks[this.prop];return this.options.duration?this.pos=yt=_.easing[this.easing](Ie,this.options.duration*Ie,0,1,this.options.duration):this.pos=yt=Ie,this.now=(this.end-this.start)*yt+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),on&&on.set?on.set(this):io.propHooks._default.set(this),this}},io.prototype.init.prototype=io.prototype,io.propHooks={_default:{get:function(Ie){var yt;return Ie.elem.nodeType!==1||Ie.elem[Ie.prop]!=null&&Ie.elem.style[Ie.prop]==null?Ie.elem[Ie.prop]:(yt=_.css(Ie.elem,Ie.prop,""),!yt||yt==="auto"?0:yt)},set:function(Ie){_.fx.step[Ie.prop]?_.fx.step[Ie.prop](Ie):Ie.elem.nodeType===1&&(_.cssHooks[Ie.prop]||Ie.elem.style[ri(Ie.prop)]!=null)?_.style(Ie.elem,Ie.prop,Ie.now+Ie.unit):Ie.elem[Ie.prop]=Ie.now}}},io.propHooks.scrollTop=io.propHooks.scrollLeft={set:function(Ie){Ie.elem.nodeType&&Ie.elem.parentNode&&(Ie.elem[Ie.prop]=Ie.now)}},_.easing={linear:function(Ie){return Ie},swing:function(Ie){return .5-Math.cos(Ie*Math.PI)/2},_default:"swing"},_.fx=io.prototype.init,_.fx.step={};var lo,Gr,un=/^(?:toggle|show|hide)$/,qn=/queueHooks$/;function kn(){Gr&&(D.hidden===!1&&l.requestAnimationFrame?l.requestAnimationFrame(kn):l.setTimeout(kn,_.fx.interval),_.fx.tick())}function St(){return l.setTimeout(function(){lo=void 0}),lo=Date.now()}function ln(Ie,yt){var on,_n=0,er={height:Ie};for(yt=yt?1:0;_n<4;_n+=2-yt)on=Fe[_n],er["margin"+on]=er["padding"+on]=Ie;return yt&&(er.opacity=er.width=Ie),er}function An(Ie,yt,on){for(var _n,er=(Sn.tweeners[yt]||[]).concat(Sn.tweeners["*"]),or=0,Er=er.length;or<Er;or++)if(_n=er[or].call(on,yt,Ie))return _n}function Cr(Ie,yt,on){var _n,er,or,Er,Mi,Ui,Nn,cr,ni="width"in yt||"height"in yt,Xr=this,Jr={},Qi=Ie.style,Fo=Ie.nodeType&&_t(Ie),No=At.get(Ie,"fxshow");on.queue||(Er=_._queueHooks(Ie,"fx"),Er.unqueued==null&&(Er.unqueued=0,Mi=Er.empty.fire,Er.empty.fire=function(){Er.unqueued||Mi()}),Er.unqueued++,Xr.always(function(){Xr.always(function(){Er.unqueued--,_.queue(Ie,"fx").length||Er.empty.fire()})}));for(_n in yt)if(er=yt[_n],un.test(er)){if(delete yt[_n],or=or||er==="toggle",er===(Fo?"hide":"show"))if(er==="show"&&No&&No[_n]!==void 0)Fo=!0;else continue;Jr[_n]=No&&No[_n]||_.style(Ie,_n)}if(Ui=!_.isEmptyObject(yt),!(!Ui&&_.isEmptyObject(Jr))){ni&&Ie.nodeType===1&&(on.overflow=[Qi.overflow,Qi.overflowX,Qi.overflowY],Nn=No&&No.display,Nn==null&&(Nn=At.get(Ie,"display")),cr=_.css(Ie,"display"),cr==="none"&&(Nn?cr=Nn:(Me([Ie],!0),Nn=Ie.style.display||Nn,cr=_.css(Ie,"display"),Me([Ie]))),(cr==="inline"||cr==="inline-block"&&Nn!=null)&&_.css(Ie,"float")==="none"&&(Ui||(Xr.done(function(){Qi.display=Nn}),Nn==null&&(cr=Qi.display,Nn=cr==="none"?"":cr)),Qi.display="inline-block")),on.overflow&&(Qi.overflow="hidden",Xr.always(function(){Qi.overflow=on.overflow[0],Qi.overflowX=on.overflow[1],Qi.overflowY=on.overflow[2]})),Ui=!1;for(_n in Jr)Ui||(No?"hidden"in No&&(Fo=No.hidden):No=At.access(Ie,"fxshow",{display:Nn}),or&&(No.hidden=!Fo),Fo&&Me([Ie],!0),Xr.done(function(){Fo||Me([Ie]),At.remove(Ie,"fxshow");for(_n in Jr)_.style(Ie,_n,Jr[_n])})),Ui=An(Fo?No[_n]:0,_n,Xr),_n in No||(No[_n]=Ui.start,Fo&&(Ui.end=Ui.start,Ui.start=0))}}function _i(Ie,yt){var on,_n,er,or,Er;for(on in Ie)if(_n=Ut(on),er=yt[_n],or=Ie[on],Array.isArray(or)&&(er=or[1],or=Ie[on]=or[0]),on!==_n&&(Ie[_n]=or,delete Ie[on]),Er=_.cssHooks[_n],Er&&"expand"in Er){or=Er.expand(or),delete Ie[_n];for(on in or)on in Ie||(Ie[on]=or[on],yt[on]=er)}else yt[_n]=er}function Sn(Ie,yt,on){var _n,er,or=0,Er=Sn.prefilters.length,Mi=_.Deferred().always(function(){delete Ui.elem}),Ui=function(){if(er)return!1;for(var ni=lo||St(),Xr=Math.max(0,Nn.startTime+Nn.duration-ni),Jr=Xr/Nn.duration||0,Qi=1-Jr,Fo=0,No=Nn.tweens.length;Fo<No;Fo++)Nn.tweens[Fo].run(Qi);return Mi.notifyWith(Ie,[Nn,Qi,Xr]),Qi<1&&No?Xr:(No||Mi.notifyWith(Ie,[Nn,1,0]),Mi.resolveWith(Ie,[Nn]),!1)},Nn=Mi.promise({elem:Ie,props:_.extend({},yt),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},on),originalProperties:yt,originalOptions:on,startTime:lo||St(),duration:on.duration,tweens:[],createTween:function(ni,Xr){var Jr=_.Tween(Ie,Nn.opts,ni,Xr,Nn.opts.specialEasing[ni]||Nn.opts.easing);return Nn.tweens.push(Jr),Jr},stop:function(ni){var Xr=0,Jr=ni?Nn.tweens.length:0;if(er)return this;for(er=!0;Xr<Jr;Xr++)Nn.tweens[Xr].run(1);return ni?(Mi.notifyWith(Ie,[Nn,1,0]),Mi.resolveWith(Ie,[Nn,ni])):Mi.rejectWith(Ie,[Nn,ni]),this}}),cr=Nn.props;for(_i(cr,Nn.opts.specialEasing);or<Er;or++)if(_n=Sn.prefilters[or].call(Nn,Ie,cr,Nn.opts),_n)return R(_n.stop)&&(_._queueHooks(Nn.elem,Nn.opts.queue).stop=_n.stop.bind(_n)),_n;return _.map(cr,An,Nn),R(Nn.opts.start)&&Nn.opts.start.call(Ie,Nn),Nn.progress(Nn.opts.progress).done(Nn.opts.done,Nn.opts.complete).fail(Nn.opts.fail).always(Nn.opts.always),_.fx.timer(_.extend(Ui,{elem:Ie,anim:Nn,queue:Nn.opts.queue})),Nn}_.Animation=_.extend(Sn,{tweeners:{"*":[function(Ie,yt){var on=this.createTween(Ie,yt);return ct(on.elem,Ie,He.exec(yt),on),on}]},tweener:function(Ie,yt){R(Ie)?(yt=Ie,Ie=["*"]):Ie=Ie.match(Tt);for(var on,_n=0,er=Ie.length;_n<er;_n++)on=Ie[_n],Sn.tweeners[on]=Sn.tweeners[on]||[],Sn.tweeners[on].unshift(yt)},prefilters:[Cr],prefilter:function(Ie,yt){yt?Sn.prefilters.unshift(Ie):Sn.prefilters.push(Ie)}}),_.speed=function(Ie,yt,on){var _n=Ie&&typeof Ie=="object"?_.extend({},Ie):{complete:on||!on&&yt||R(Ie)&&Ie,duration:Ie,easing:on&&yt||yt&&!R(yt)&&yt};return _.fx.off?_n.duration=0:typeof _n.duration!="number"&&(_n.duration in _.fx.speeds?_n.duration=_.fx.speeds[_n.duration]:_n.duration=_.fx.speeds._default),(_n.queue==null||_n.queue===!0)&&(_n.queue="fx"),_n.old=_n.complete,_n.complete=function(){R(_n.old)&&_n.old.call(this),_n.queue&&_.dequeue(this,_n.queue)},_n},_.fn.extend({fadeTo:function(Ie,yt,on,_n){return this.filter(_t).css("opacity",0).show().end().animate({opacity:yt},Ie,on,_n)},animate:function(Ie,yt,on,_n){var er=_.isEmptyObject(Ie),or=_.speed(yt,on,_n),Er=function(){var Mi=Sn(this,_.extend({},Ie),or);(er||At.get(this,"finish"))&&Mi.stop(!0)};return Er.finish=Er,er||or.queue===!1?this.each(Er):this.queue(or.queue,Er)},stop:function(Ie,yt,on){var _n=function(er){var or=er.stop;delete er.stop,or(on)};return typeof Ie!="string"&&(on=yt,yt=Ie,Ie=void 0),yt&&this.queue(Ie||"fx",[]),this.each(function(){var er=!0,or=Ie!=null&&Ie+"queueHooks",Er=_.timers,Mi=At.get(this);if(or)Mi[or]&&Mi[or].stop&&_n(Mi[or]);else for(or in Mi)Mi[or]&&Mi[or].stop&&qn.test(or)&&_n(Mi[or]);for(or=Er.length;or--;)Er[or].elem===this&&(Ie==null||Er[or].queue===Ie)&&(Er[or].anim.stop(on),er=!1,Er.splice(or,1));(er||!on)&&_.dequeue(this,Ie)})},finish:function(Ie){return Ie!==!1&&(Ie=Ie||"fx"),this.each(function(){var yt,on=At.get(this),_n=on[Ie+"queue"],er=on[Ie+"queueHooks"],or=_.timers,Er=_n?_n.length:0;for(on.finish=!0,_.queue(this,Ie,[]),er&&er.stop&&er.stop.call(this,!0),yt=or.length;yt--;)or[yt].elem===this&&or[yt].queue===Ie&&(or[yt].anim.stop(!0),or.splice(yt,1));for(yt=0;yt<Er;yt++)_n[yt]&&_n[yt].finish&&_n[yt].finish.call(this);delete on.finish})}}),_.each(["toggle","show","hide"],function(Ie,yt){var on=_.fn[yt];_.fn[yt]=function(_n,er,or){return _n==null||typeof _n=="boolean"?on.apply(this,arguments):this.animate(ln(yt,!0),_n,er,or)}}),_.each({slideDown:ln("show"),slideUp:ln("hide"),slideToggle:ln("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Ie,yt){_.fn[Ie]=function(on,_n,er){return this.animate(yt,on,_n,er)}}),_.timers=[],_.fx.tick=function(){var Ie,yt=0,on=_.timers;for(lo=Date.now();yt<on.length;yt++)Ie=on[yt],!Ie()&&on[yt]===Ie&&on.splice(yt--,1);on.length||_.fx.stop(),lo=void 0},_.fx.timer=function(Ie){_.timers.push(Ie),_.fx.start()},_.fx.interval=13,_.fx.start=function(){Gr||(Gr=!0,kn())},_.fx.stop=function(){Gr=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(Ie,yt){return Ie=_.fx&&_.fx.speeds[Ie]||Ie,yt=yt||"fx",this.queue(yt,function(on,_n){var er=l.setTimeout(on,Ie);_n.stop=function(){l.clearTimeout(er)}})},function(){var Ie=D.createElement("input"),yt=D.createElement("select"),on=yt.appendChild(D.createElement("option"));Ie.type="checkbox",O.checkOn=Ie.value!=="",O.optSelected=on.selected,Ie=D.createElement("input"),Ie.value="t",Ie.type="radio",O.radioValue=Ie.value==="t"}();var ir,mt=_.expr.attrHandle;_.fn.extend({attr:function(Ie,yt){return ke(this,_.attr,Ie,yt,arguments.length>1)},removeAttr:function(Ie){return this.each(function(){_.removeAttr(this,Ie)})}}),_.extend({attr:function(Ie,yt,on){var _n,er,or=Ie.nodeType;if(!(or===3||or===8||or===2)){if(typeof Ie.getAttribute>"u")return _.prop(Ie,yt,on);if((or!==1||!_.isXMLDoc(Ie))&&(er=_.attrHooks[yt.toLowerCase()]||(_.expr.match.bool.test(yt)?ir:void 0)),on!==void 0){if(on===null){_.removeAttr(Ie,yt);return}return er&&"set"in er&&(_n=er.set(Ie,on,yt))!==void 0?_n:(Ie.setAttribute(yt,on+""),on)}return er&&"get"in er&&(_n=er.get(Ie,yt))!==null?_n:(_n=_.find.attr(Ie,yt),_n??void 0)}},attrHooks:{type:{set:function(Ie,yt){if(!O.radioValue&&yt==="radio"&&W(Ie,"input")){var on=Ie.value;return Ie.setAttribute("type",yt),on&&(Ie.value=on),yt}}}},removeAttr:function(Ie,yt){var on,_n=0,er=yt&&yt.match(Tt);if(er&&Ie.nodeType===1)for(;on=er[_n++];)Ie.removeAttribute(on)}}),ir={set:function(Ie,yt,on){return yt===!1?_.removeAttr(Ie,on):Ie.setAttribute(on,on),on}},_.each(_.expr.match.bool.source.match(/\w+/g),function(Ie,yt){var on=mt[yt]||_.find.attr;mt[yt]=function(_n,er,or){var Er,Mi,Ui=er.toLowerCase();return or||(Mi=mt[Ui],mt[Ui]=Er,Er=on(_n,er,or)!=null?Ui:null,mt[Ui]=Mi),Er}});var fn=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;_.fn.extend({prop:function(Ie,yt){return ke(this,_.prop,Ie,yt,arguments.length>1)},removeProp:function(Ie){return this.each(function(){delete this[_.propFix[Ie]||Ie]})}}),_.extend({prop:function(Ie,yt,on){var _n,er,or=Ie.nodeType;if(!(or===3||or===8||or===2))return(or!==1||!_.isXMLDoc(Ie))&&(yt=_.propFix[yt]||yt,er=_.propHooks[yt]),on!==void 0?er&&"set"in er&&(_n=er.set(Ie,on,yt))!==void 0?_n:Ie[yt]=on:er&&"get"in er&&(_n=er.get(Ie,yt))!==null?_n:Ie[yt]},propHooks:{tabIndex:{get:function(Ie){var yt=_.find.attr(Ie,"tabindex");return yt?parseInt(yt,10):fn.test(Ie.nodeName)||gt.test(Ie.nodeName)&&Ie.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),O.optSelected||(_.propHooks.selected={get:function(Ie){var yt=Ie.parentNode;return yt&&yt.parentNode&&yt.parentNode.selectedIndex,null},set:function(Ie){var yt=Ie.parentNode;yt&&(yt.selectedIndex,yt.parentNode&&yt.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});function tn(Ie){var yt=Ie.match(Tt)||[];return yt.join(" ")}function Vn(Ie){return Ie.getAttribute&&Ie.getAttribute("class")||""}function Ur(Ie){return Array.isArray(Ie)?Ie:typeof Ie=="string"?Ie.match(Tt)||[]:[]}_.fn.extend({addClass:function(Ie){var yt,on,_n,er,or,Er;return R(Ie)?this.each(function(Mi){_(this).addClass(Ie.call(this,Mi,Vn(this)))}):(yt=Ur(Ie),yt.length?this.each(function(){if(_n=Vn(this),on=this.nodeType===1&&" "+tn(_n)+" ",on){for(or=0;or<yt.length;or++)er=yt[or],on.indexOf(" "+er+" ")<0&&(on+=er+" ");Er=tn(on),_n!==Er&&this.setAttribute("class",Er)}}):this)},removeClass:function(Ie){var yt,on,_n,er,or,Er;return R(Ie)?this.each(function(Mi){_(this).removeClass(Ie.call(this,Mi,Vn(this)))}):arguments.length?(yt=Ur(Ie),yt.length?this.each(function(){if(_n=Vn(this),on=this.nodeType===1&&" "+tn(_n)+" ",on){for(or=0;or<yt.length;or++)for(er=yt[or];on.indexOf(" "+er+" ")>-1;)on=on.replace(" "+er+" "," ");Er=tn(on),_n!==Er&&this.setAttribute("class",Er)}}):this):this.attr("class","")},toggleClass:function(Ie,yt){var on,_n,er,or,Er=typeof Ie,Mi=Er==="string"||Array.isArray(Ie);return R(Ie)?this.each(function(Ui){_(this).toggleClass(Ie.call(this,Ui,Vn(this),yt),yt)}):typeof yt=="boolean"&&Mi?yt?this.addClass(Ie):this.removeClass(Ie):(on=Ur(Ie),this.each(function(){if(Mi)for(or=_(this),er=0;er<on.length;er++)_n=on[er],or.hasClass(_n)?or.removeClass(_n):or.addClass(_n);else(Ie===void 0||Er==="boolean")&&(_n=Vn(this),_n&&At.set(this,"__className__",_n),this.setAttribute&&this.setAttribute("class",_n||Ie===!1?"":At.get(this,"__className__")||""))}))},hasClass:function(Ie){var yt,on,_n=0;for(yt=" "+Ie+" ";on=this[_n++];)if(on.nodeType===1&&(" "+tn(Vn(on))+" ").indexOf(yt)>-1)return!0;return!1}});var $r=/\r/g;_.fn.extend({val:function(Ie){var yt,on,_n,er=this[0];return arguments.length?(_n=R(Ie),this.each(function(or){var Er;this.nodeType===1&&(_n?Er=Ie.call(this,or,_(this).val()):Er=Ie,Er==null?Er="":typeof Er=="number"?Er+="":Array.isArray(Er)&&(Er=_.map(Er,function(Mi){return Mi==null?"":Mi+""})),yt=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],(!yt||!("set"in yt)||yt.set(this,Er,"value")===void 0)&&(this.value=Er))})):er?(yt=_.valHooks[er.type]||_.valHooks[er.nodeName.toLowerCase()],yt&&"get"in yt&&(on=yt.get(er,"value"))!==void 0?on:(on=er.value,typeof on=="string"?on.replace($r,""):on??"")):void 0}}),_.extend({valHooks:{option:{get:function(Ie){var yt=_.find.attr(Ie,"value");return yt??tn(_.text(Ie))}},select:{get:function(Ie){var yt,on,_n,er=Ie.options,or=Ie.selectedIndex,Er=Ie.type==="select-one",Mi=Er?null:[],Ui=Er?or+1:er.length;for(or<0?_n=Ui:_n=Er?or:0;_n<Ui;_n++)if(on=er[_n],(on.selected||_n===or)&&!on.disabled&&(!on.parentNode.disabled||!W(on.parentNode,"optgroup"))){if(yt=_(on).val(),Er)return yt;Mi.push(yt)}return Mi},set:function(Ie,yt){for(var on,_n,er=Ie.options,or=_.makeArray(yt),Er=er.length;Er--;)_n=er[Er],(_n.selected=_.inArray(_.valHooks.option.get(_n),or)>-1)&&(on=!0);return on||(Ie.selectedIndex=-1),or}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(Ie,yt){if(Array.isArray(yt))return Ie.checked=_.inArray(_(Ie).val(),yt)>-1}},O.checkOn||(_.valHooks[this].get=function(Ie){return Ie.getAttribute("value")===null?"on":Ie.value})});var Pr=l.location,zr={guid:Date.now()},gi=/\?/;_.parseXML=function(Ie){var yt,on;if(!Ie||typeof Ie!="string")return null;try{yt=new l.DOMParser().parseFromString(Ie,"text/xml")}catch{}return on=yt&&yt.getElementsByTagName("parsererror")[0],(!yt||on)&&_.error("Invalid XML: "+(on?_.map(on.childNodes,function(_n){return _n.textContent}).join(` `):Ie)),yt};var $i=/^(?:focusinfocus|focusoutblur)$/,eo=function(Ie){Ie.stopPropagation()};_.extend(_.event,{trigger:function(Ie,yt,on,_n){var er,or,Er,Mi,Ui,Nn,cr,ni,Xr=[on||D],Jr=y.call(Ie,"type")?Ie.type:Ie,Qi=y.call(Ie,"namespace")?Ie.namespace.split("."):[];if(or=ni=Er=on=on||D,!(on.nodeType===3||on.nodeType===8)&&!$i.test(Jr+_.event.triggered)&&(Jr.indexOf(".")>-1&&(Qi=Jr.split("."),Jr=Qi.shift(),Qi.sort()),Ui=Jr.indexOf(":")<0&&"on"+Jr,Ie=Ie[_.expando]?Ie:new _.Event(Jr,typeof Ie=="object"&&Ie),Ie.isTrigger=_n?2:3,Ie.namespace=Qi.join("."),Ie.rnamespace=Ie.namespace?new RegExp("(^|\\.)"+Qi.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Ie.result=void 0,Ie.target||(Ie.target=on),yt=yt==null?[Ie]:_.makeArray(yt,[Ie]),cr=_.event.special[Jr]||{},!(!_n&&cr.trigger&&cr.trigger.apply(on,yt)===!1))){if(!_n&&!cr.noBubble&&!M(on)){for(Mi=cr.delegateType||Jr,$i.test(Mi+Jr)||(or=or.parentNode);or;or=or.parentNode)Xr.push(or),Er=or;Er===(on.ownerDocument||D)&&Xr.push(Er.defaultView||Er.parentWindow||l)}for(er=0;(or=Xr[er++])&&!Ie.isPropagationStopped();)ni=or,Ie.type=er>1?Mi:cr.bindType||Jr,Nn=(At.get(or,"events")||Object.create(null))[Ie.type]&&At.get(or,"handle"),Nn&&Nn.apply(or,yt),Nn=Ui&&or[Ui],Nn&&Nn.apply&&Ke(or)&&(Ie.result=Nn.apply(or,yt),Ie.result===!1&&Ie.preventDefault());return Ie.type=Jr,!_n&&!Ie.isDefaultPrevented()&&(!cr._default||cr._default.apply(Xr.pop(),yt)===!1)&&Ke(on)&&Ui&&R(on[Jr])&&!M(on)&&(Er=on[Ui],Er&&(on[Ui]=null),_.event.triggered=Jr,Ie.isPropagationStopped()&&ni.addEventListener(Jr,eo),on[Jr](),Ie.isPropagationStopped()&&ni.removeEventListener(Jr,eo),_.event.triggered=void 0,Er&&(on[Ui]=Er)),Ie.result}},simulate:function(Ie,yt,on){var _n=_.extend(new _.Event,on,{type:Ie,isSimulated:!0});_.event.trigger(_n,null,yt)}}),_.fn.extend({trigger:function(Ie,yt){return this.each(function(){_.event.trigger(Ie,yt,this)})},triggerHandler:function(Ie,yt){var on=this[0];if(on)return _.event.trigger(Ie,yt,on,!0)}});var ki=/\[\]$/,so=/\r?\n/g,Ho=/^(?:submit|button|image|reset|file)$/i,ra=/^(?:input|select|textarea|keygen)/i;function So(Ie,yt,on,_n){var er;if(Array.isArray(yt))_.each(yt,function(or,Er){on||ki.test(Ie)?_n(Ie,Er):So(Ie+"["+(typeof Er=="object"&&Er!=null?or:"")+"]",Er,on,_n)});else if(!on&&A(yt)==="object")for(er in yt)So(Ie+"["+er+"]",yt[er],on,_n);else _n(Ie,yt)}_.param=function(Ie,yt){var on,_n=[],er=function(or,Er){var Mi=R(Er)?Er():Er;_n[_n.length]=encodeURIComponent(or)+"="+encodeURIComponent(Mi??"")};if(Ie==null)return"";if(Array.isArray(Ie)||Ie.jquery&&!_.isPlainObject(Ie))_.each(Ie,function(){er(this.name,this.value)});else for(on in Ie)So(on,Ie[on],yt,er);return _n.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Ie=_.prop(this,"elements");return Ie?_.makeArray(Ie):this}).filter(function(){var Ie=this.type;return this.name&&!_(this).is(":disabled")&&ra.test(this.nodeName)&&!Ho.test(Ie)&&(this.checked||!ie.test(Ie))}).map(function(Ie,yt){var on=_(this).val();return on==null?null:Array.isArray(on)?_.map(on,function(_n){return{name:yt.name,value:_n.replace(so,`\r `)}}):{name:yt.name,value:on.replace(so,`\r `)}}).get()}});var gr=/%20/g,di=/#.*$/,Vi=/([?&])_=[^&]*/,Ro=/^(.*?):[ \t]*([^\r\n]*)$/mg,na=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ta=/^(?:GET|HEAD)$/,aa=/^\/\//,vi={},to={},$o="*/".concat("*"),ja=D.createElement("a");ja.href=Pr.href;function hs(Ie){return function(yt,on){typeof yt!="string"&&(on=yt,yt="*");var _n,er=0,or=yt.toLowerCase().match(Tt)||[];if(R(on))for(;_n=or[er++];)_n[0]==="+"?(_n=_n.slice(1)||"*",(Ie[_n]=Ie[_n]||[]).unshift(on)):(Ie[_n]=Ie[_n]||[]).push(on)}}function ro(Ie,yt,on,_n){var er={},or=Ie===to;function Er(Mi){var Ui;return er[Mi]=!0,_.each(Ie[Mi]||[],function(Nn,cr){var ni=cr(yt,on,_n);if(typeof ni=="string"&&!or&&!er[ni])return yt.dataTypes.unshift(ni),Er(ni),!1;if(or)return!(Ui=ni)}),Ui}return Er(yt.dataTypes[0])||!er["*"]&&Er("*")}function as(Ie,yt){var on,_n,er=_.ajaxSettings.flatOptions||{};for(on in yt)yt[on]!==void 0&&((er[on]?Ie:_n||(_n={}))[on]=yt[on]);return _n&&_.extend(!0,Ie,_n),Ie}function rn(Ie,yt,on){for(var _n,er,or,Er,Mi=Ie.contents,Ui=Ie.dataTypes;Ui[0]==="*";)Ui.shift(),_n===void 0&&(_n=Ie.mimeType||yt.getResponseHeader("Content-Type"));if(_n){for(er in Mi)if(Mi[er]&&Mi[er].test(_n)){Ui.unshift(er);break}}if(Ui[0]in on)or=Ui[0];else{for(er in on){if(!Ui[0]||Ie.converters[er+" "+Ui[0]]){or=er;break}Er||(Er=er)}or=or||Er}if(or)return or!==Ui[0]&&Ui.unshift(or),on[or]}function Dr(Ie,yt,on,_n){var er,or,Er,Mi,Ui,Nn={},cr=Ie.dataTypes.slice();if(cr[1])for(Er in Ie.converters)Nn[Er.toLowerCase()]=Ie.converters[Er];for(or=cr.shift();or;)if(Ie.responseFields[or]&&(on[Ie.responseFields[or]]=yt),!Ui&&_n&&Ie.dataFilter&&(yt=Ie.dataFilter(yt,Ie.dataType)),Ui=or,or=cr.shift(),or){if(or==="*")or=Ui;else if(Ui!=="*"&&Ui!==or){if(Er=Nn[Ui+" "+or]||Nn["* "+or],!Er){for(er in Nn)if(Mi=er.split(" "),Mi[1]===or&&(Er=Nn[Ui+" "+Mi[0]]||Nn["* "+Mi[0]],Er)){Er===!0?Er=Nn[er]:Nn[er]!==!0&&(or=Mi[0],cr.unshift(Mi[1]));break}}if(Er!==!0)if(Er&&Ie.throws)yt=Er(yt);else try{yt=Er(yt)}catch(ni){return{state:"parsererror",error:Er?ni:"No conversion from "+Ui+" to "+or}}}}return{state:"success",data:yt}}_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pr.href,type:"GET",isLocal:na.test(Pr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$o,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Ie,yt){return yt?as(as(Ie,_.ajaxSettings),yt):as(_.ajaxSettings,Ie)},ajaxPrefilter:hs(vi),ajaxTransport:hs(to),ajax:function(Ie,yt){typeof Ie=="object"&&(yt=Ie,Ie=void 0),yt=yt||{};var on,_n,er,or,Er,Mi,Ui,Nn,cr,ni,Xr=_.ajaxSetup({},yt),Jr=Xr.context||Xr,Qi=Xr.context&&(Jr.nodeType||Jr.jquery)?_(Jr):_.event,Fo=_.Deferred(),No=_.Callbacks("once memory"),Jo=Xr.statusCode||{},br={},Yn={},Z="canceled",se={readyState:0,getResponseHeader:function(B){var Pe;if(Ui){if(!or)for(or={};Pe=Ro.exec(er);)or[Pe[1].toLowerCase()+" "]=(or[Pe[1].toLowerCase()+" "]||[]).concat(Pe[2]);Pe=or[B.toLowerCase()+" "]}return Pe==null?null:Pe.join(", ")},getAllResponseHeaders:function(){return Ui?er:null},setRequestHeader:function(B,Pe){return Ui==null&&(B=Yn[B.toLowerCase()]=Yn[B.toLowerCase()]||B,br[B]=Pe),this},overrideMimeType:function(B){return Ui==null&&(Xr.mimeType=B),this},statusCode:function(B){var Pe;if(B)if(Ui)se.always(B[se.status]);else for(Pe in B)Jo[Pe]=[Jo[Pe],B[Pe]];return this},abort:function(B){var Pe=B||Z;return on&&on.abort(Pe),G(0,Pe),this}};if(Fo.promise(se),Xr.url=((Ie||Xr.url||Pr.href)+"").replace(aa,Pr.protocol+"//"),Xr.type=yt.method||yt.type||Xr.method||Xr.type,Xr.dataTypes=(Xr.dataType||"*").toLowerCase().match(Tt)||[""],Xr.crossDomain==null){Mi=D.createElement("a");try{Mi.href=Xr.url,Mi.href=Mi.href,Xr.crossDomain=ja.protocol+"//"+ja.host!=Mi.protocol+"//"+Mi.host}catch{Xr.crossDomain=!0}}if(Xr.data&&Xr.processData&&typeof Xr.data!="string"&&(Xr.data=_.param(Xr.data,Xr.traditional)),ro(vi,Xr,yt,se),Ui)return se;Nn=_.event&&Xr.global,Nn&&_.active++===0&&_.event.trigger("ajaxStart"),Xr.type=Xr.type.toUpperCase(),Xr.hasContent=!ta.test(Xr.type),_n=Xr.url.replace(di,""),Xr.hasContent?Xr.data&&Xr.processData&&(Xr.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Xr.data=Xr.data.replace(gr,"+")):(ni=Xr.url.slice(_n.length),Xr.data&&(Xr.processData||typeof Xr.data=="string")&&(_n+=(gi.test(_n)?"&":"?")+Xr.data,delete Xr.data),Xr.cache===!1&&(_n=_n.replace(Vi,"$1"),ni=(gi.test(_n)?"&":"?")+"_="+zr.guid+++ni),Xr.url=_n+ni),Xr.ifModified&&(_.lastModified[_n]&&se.setRequestHeader("If-Modified-Since",_.lastModified[_n]),_.etag[_n]&&se.setRequestHeader("If-None-Match",_.etag[_n])),(Xr.data&&Xr.hasContent&&Xr.contentType!==!1||yt.contentType)&&se.setRequestHeader("Content-Type",Xr.contentType),se.setRequestHeader("Accept",Xr.dataTypes[0]&&Xr.accepts[Xr.dataTypes[0]]?Xr.accepts[Xr.dataTypes[0]]+(Xr.dataTypes[0]!=="*"?", "+$o+"; q=0.01":""):Xr.accepts["*"]);for(cr in Xr.headers)se.setRequestHeader(cr,Xr.headers[cr]);if(Xr.beforeSend&&(Xr.beforeSend.call(Jr,se,Xr)===!1||Ui))return se.abort();if(Z="abort",No.add(Xr.complete),se.done(Xr.success),se.fail(Xr.error),on=ro(to,Xr,yt,se),!on)G(-1,"No Transport");else{if(se.readyState=1,Nn&&Qi.trigger("ajaxSend",[se,Xr]),Ui)return se;Xr.async&&Xr.timeout>0&&(Er=l.setTimeout(function(){se.abort("timeout")},Xr.timeout));try{Ui=!1,on.send(br,G)}catch(B){if(Ui)throw B;G(-1,B)}}function G(B,Pe,dt,Lt){var Pt,$e,ut,zt,Ht,Fn=Pe;Ui||(Ui=!0,Er&&l.clearTimeout(Er),on=void 0,er=Lt||"",se.readyState=B>0?4:0,Pt=B>=200&&B<300||B===304,dt&&(zt=rn(Xr,se,dt)),!Pt&&_.inArray("script",Xr.dataTypes)>-1&&_.inArray("json",Xr.dataTypes)<0&&(Xr.converters["text script"]=function(){}),zt=Dr(Xr,zt,se,Pt),Pt?(Xr.ifModified&&(Ht=se.getResponseHeader("Last-Modified"),Ht&&(_.lastModified[_n]=Ht),Ht=se.getResponseHeader("etag"),Ht&&(_.etag[_n]=Ht)),B===204||Xr.type==="HEAD"?Fn="nocontent":B===304?Fn="notmodified":(Fn=zt.state,$e=zt.data,ut=zt.error,Pt=!ut)):(ut=Fn,(B||!Fn)&&(Fn="error",B<0&&(B=0))),se.status=B,se.statusText=(Pe||Fn)+"",Pt?Fo.resolveWith(Jr,[$e,Fn,se]):Fo.rejectWith(Jr,[se,Fn,ut]),se.statusCode(Jo),Jo=void 0,Nn&&Qi.trigger(Pt?"ajaxSuccess":"ajaxError",[se,Xr,Pt?$e:ut]),No.fireWith(Jr,[se,Fn]),Nn&&(Qi.trigger("ajaxComplete",[se,Xr]),--_.active||_.event.trigger("ajaxStop")))}return se},getJSON:function(Ie,yt,on){return _.get(Ie,yt,on,"json")},getScript:function(Ie,yt){return _.get(Ie,void 0,yt,"script")}}),_.each(["get","post"],function(Ie,yt){_[yt]=function(on,_n,er,or){return R(_n)&&(or=or||er,er=_n,_n=void 0),_.ajax(_.extend({url:on,type:yt,dataType:or,data:_n,success:er},_.isPlainObject(on)&&on))}}),_.ajaxPrefilter(function(Ie){var yt;for(yt in Ie.headers)yt.toLowerCase()==="content-type"&&(Ie.contentType=Ie.headers[yt]||"")}),_._evalUrl=function(Ie,yt,on){return _.ajax({url:Ie,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(_n){_.globalEval(_n,yt,on)}})},_.fn.extend({wrapAll:function(Ie){var yt;return this[0]&&(R(Ie)&&(Ie=Ie.call(this[0])),yt=_(Ie,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&yt.insertBefore(this[0]),yt.map(function(){for(var on=this;on.firstElementChild;)on=on.firstElementChild;return on}).append(this)),this},wrapInner:function(Ie){return R(Ie)?this.each(function(yt){_(this).wrapInner(Ie.call(this,yt))}):this.each(function(){var yt=_(this),on=yt.contents();on.length?on.wrapAll(Ie):yt.append(Ie)})},wrap:function(Ie){var yt=R(Ie);return this.each(function(on){_(this).wrapAll(yt?Ie.call(this,on):Ie)})},unwrap:function(Ie){return this.parent(Ie).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(Ie){return!_.expr.pseudos.visible(Ie)},_.expr.pseudos.visible=function(Ie){return!!(Ie.offsetWidth||Ie.offsetHeight||Ie.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new l.XMLHttpRequest}catch{}};var Lr={0:200,1223:204},li=_.ajaxSettings.xhr();O.cors=!!li&&"withCredentials"in li,O.ajax=li=!!li,_.ajaxTransport(function(Ie){var yt,on;if(O.cors||li&&!Ie.crossDomain)return{send:function(_n,er){var or,Er=Ie.xhr();if(Er.open(Ie.type,Ie.url,Ie.async,Ie.username,Ie.password),Ie.xhrFields)for(or in Ie.xhrFields)Er[or]=Ie.xhrFields[or];Ie.mimeType&&Er.overrideMimeType&&Er.overrideMimeType(Ie.mimeType),!Ie.crossDomain&&!_n["X-Requested-With"]&&(_n["X-Requested-With"]="XMLHttpRequest");for(or in _n)Er.setRequestHeader(or,_n[or]);yt=function(Mi){return function(){yt&&(yt=on=Er.onload=Er.onerror=Er.onabort=Er.ontimeout=Er.onreadystatechange=null,Mi==="abort"?Er.abort():Mi==="error"?typeof Er.status!="number"?er(0,"error"):er(Er.status,Er.statusText):er(Lr[Er.status]||Er.status,Er.statusText,(Er.responseType||"text")!=="text"||typeof Er.responseText!="string"?{binary:Er.response}:{text:Er.responseText},Er.getAllResponseHeaders()))}},Er.onload=yt(),on=Er.onerror=Er.ontimeout=yt("error"),Er.onabort!==void 0?Er.onabort=on:Er.onreadystatechange=function(){Er.readyState===4&&l.setTimeout(function(){yt&&on()})},yt=yt("abort");try{Er.send(Ie.hasContent&&Ie.data||null)}catch(Mi){if(yt)throw Mi}},abort:function(){yt&&yt()}}}),_.ajaxPrefilter(function(Ie){Ie.crossDomain&&(Ie.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Ie){return _.globalEval(Ie),Ie}}}),_.ajaxPrefilter("script",function(Ie){Ie.cache===void 0&&(Ie.cache=!1),Ie.crossDomain&&(Ie.type="GET")}),_.ajaxTransport("script",function(Ie){if(Ie.crossDomain||Ie.scriptAttrs){var yt,on;return{send:function(_n,er){yt=_("<script>").attr(Ie.scriptAttrs||{}).prop({charset:Ie.scriptCharset,src:Ie.url}).on("load error",on=function(or){yt.remove(),on=null,or&&er(or.type==="error"?404:200,or.type)}),D.head.appendChild(yt[0])},abort:function(){on&&on()}}}});var Zi=[],Di=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Ie=Zi.pop()||_.expando+"_"+zr.guid++;return this[Ie]=!0,Ie}}),_.ajaxPrefilter("json jsonp",function(Ie,yt,on){var _n,er,or,Er=Ie.jsonp!==!1&&(Di.test(Ie.url)?"url":typeof Ie.data=="string"&&(Ie.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Di.test(Ie.data)&&"data");if(Er||Ie.dataTypes[0]==="jsonp")return _n=Ie.jsonpCallback=R(Ie.jsonpCallback)?Ie.jsonpCallback():Ie.jsonpCallback,Er?Ie[Er]=Ie[Er].replace(Di,"$1"+_n):Ie.jsonp!==!1&&(Ie.url+=(gi.test(Ie.url)?"&":"?")+Ie.jsonp+"="+_n),Ie.converters["script json"]=function(){return or||_.error(_n+" was not called"),or[0]},Ie.dataTypes[0]="json",er=l[_n],l[_n]=function(){or=arguments},on.always(function(){er===void 0?_(l).removeProp(_n):l[_n]=er,Ie[_n]&&(Ie.jsonpCallback=yt.jsonpCallback,Zi.push(_n)),or&&R(er)&&er(or[0]),or=er=void 0}),"script"}),O.createHTMLDocument=function(){var Ie=D.implementation.createHTMLDocument("").body;return Ie.innerHTML="<form></form><form></form>",Ie.childNodes.length===2}(),_.parseHTML=function(Ie,yt,on){if(typeof Ie!="string")return[];typeof yt=="boolean"&&(on=yt,yt=!1);var _n,er,or;return yt||(O.createHTMLDocument?(yt=D.implementation.createHTMLDocument(""),_n=yt.createElement("base"),_n.href=D.location.href,yt.head.appendChild(_n)):yt=D),er=ne.exec(Ie),or=!on&&[],er?[yt.createElement(er[1])]:(er=bt([Ie],yt,or),or&&or.length&&_(or).remove(),_.merge([],er.childNodes))},_.fn.load=function(Ie,yt,on){var _n,er,or,Er=this,Mi=Ie.indexOf(" ");return Mi>-1&&(_n=tn(Ie.slice(Mi)),Ie=Ie.slice(0,Mi)),R(yt)?(on=yt,yt=void 0):yt&&typeof yt=="object"&&(er="POST"),Er.length>0&&_.ajax({url:Ie,type:er||"GET",dataType:"html",data:yt}).done(function(Ui){or=arguments,Er.html(_n?_("<div>").append(_.parseHTML(Ui)).find(_n):Ui)}).always(on&&function(Ui,Nn){Er.each(function(){on.apply(this,or||[Ui.responseText,Nn,Ui])})}),this},_.expr.pseudos.animated=function(Ie){return _.grep(_.timers,function(yt){return Ie===yt.elem}).length},_.offset={setOffset:function(Ie,yt,on){var _n,er,or,Er,Mi,Ui,Nn,cr=_.css(Ie,"position"),ni=_(Ie),Xr={};cr==="static"&&(Ie.style.position="relative"),Mi=ni.offset(),or=_.css(Ie,"top"),Ui=_.css(Ie,"left"),Nn=(cr==="absolute"||cr==="fixed")&&(or+Ui).indexOf("auto")>-1,Nn?(_n=ni.position(),Er=_n.top,er=_n.left):(Er=parseFloat(or)||0,er=parseFloat(Ui)||0),R(yt)&&(yt=yt.call(Ie,on,_.extend({},Mi))),yt.top!=null&&(Xr.top=yt.top-Mi.top+Er),yt.left!=null&&(Xr.left=yt.left-Mi.left+er),"using"in yt?yt.using.call(Ie,Xr):ni.css(Xr)}},_.fn.extend({offset:function(Ie){if(arguments.length)return Ie===void 0?this:this.each(function(er){_.offset.setOffset(this,Ie,er)});var yt,on,_n=this[0];if(_n)return _n.getClientRects().length?(yt=_n.getBoundingClientRect(),on=_n.ownerDocument.defaultView,{top:yt.top+on.pageYOffset,left:yt.left+on.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var Ie,yt,on,_n=this[0],er={top:0,left:0};if(_.css(_n,"position")==="fixed")yt=_n.getBoundingClientRect();else{for(yt=this.offset(),on=_n.ownerDocument,Ie=_n.offsetParent||on.documentElement;Ie&&(Ie===on.body||Ie===on.documentElement)&&_.css(Ie,"position")==="static";)Ie=Ie.parentNode;Ie&&Ie!==_n&&Ie.nodeType===1&&(er=_(Ie).offset(),er.top+=_.css(Ie,"borderTopWidth",!0),er.left+=_.css(Ie,"borderLeftWidth",!0))}return{top:yt.top-er.top-_.css(_n,"marginTop",!0),left:yt.left-er.left-_.css(_n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Ie=this.offsetParent;Ie&&_.css(Ie,"position")==="static";)Ie=Ie.offsetParent;return Ie||ze})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Ie,yt){var on=yt==="pageYOffset";_.fn[Ie]=function(_n){return ke(this,function(er,or,Er){var Mi;if(M(er)?Mi=er:er.nodeType===9&&(Mi=er.defaultView),Er===void 0)return Mi?Mi[yt]:er[or];Mi?Mi.scrollTo(on?Mi.pageXOffset:Er,on?Er:Mi.pageYOffset):er[or]=Er},Ie,_n,arguments.length)}}),_.each(["top","left"],function(Ie,yt){_.cssHooks[yt]=pi(O.pixelPosition,function(on,_n){if(_n)return _n=sr(on,yt),Or.test(_n)?_(on).position()[yt]+"px":_n})}),_.each({Height:"height",Width:"width"},function(Ie,yt){_.each({padding:"inner"+Ie,content:yt,"":"outer"+Ie},function(on,_n){_.fn[_n]=function(er,or){var Er=arguments.length&&(on||typeof er!="boolean"),Mi=on||(er===!0||or===!0?"margin":"border");return ke(this,function(Ui,Nn,cr){var ni;return M(Ui)?_n.indexOf("outer")===0?Ui["inner"+Ie]:Ui.document.documentElement["client"+Ie]:Ui.nodeType===9?(ni=Ui.documentElement,Math.max(Ui.body["scroll"+Ie],ni["scroll"+Ie],Ui.body["offset"+Ie],ni["offset"+Ie],ni["client"+Ie])):cr===void 0?_.css(Ui,Nn,Mi):_.style(Ui,Nn,cr,Mi)},yt,Er?er:void 0,Er)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Ie,yt){_.fn[yt]=function(on){return this.on(yt,on)}}),_.fn.extend({bind:function(Ie,yt,on){return this.on(Ie,null,yt,on)},unbind:function(Ie,yt){return this.off(Ie,null,yt)},delegate:function(Ie,yt,on,_n){return this.on(yt,Ie,on,_n)},undelegate:function(Ie,yt,on){return arguments.length===1?this.off(Ie,"**"):this.off(yt,Ie||"**",on)},hover:function(Ie,yt){return this.on("mouseenter",Ie).on("mouseleave",yt||Ie)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(Ie,yt){_.fn[yt]=function(on,_n){return arguments.length>0?this.on(yt,null,on,_n):this.trigger(yt)}});var wo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(Ie,yt){var on,_n,er;if(typeof yt=="string"&&(on=Ie[yt],yt=Ie,Ie=on),!!R(Ie))return _n=f.call(arguments,2),er=function(){return Ie.apply(yt||this,_n.concat(f.call(arguments)))},er.guid=Ie.guid=Ie.guid||_.guid++,er},_.holdReady=function(Ie){Ie?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=W,_.isFunction=R,_.isWindow=M,_.camelCase=Ut,_.type=A,_.now=Date.now,_.isNumeric=function(Ie){var yt=_.type(Ie);return(yt==="number"||yt==="string")&&!isNaN(Ie-parseFloat(Ie))},_.trim=function(Ie){return Ie==null?"":(Ie+"").replace(wo,"$1")},t=[],i=function(){return _}.apply(g,t),i!==void 0&&(J.exports=i);var Go=l.jQuery,Ko=l.$;return _.noConflict=function(Ie){return l.$===_&&(l.$=Ko),Ie&&l.jQuery===_&&(l.jQuery=Go),_},typeof s>"u"&&(l.jQuery=l.$=_),_})},25504:(J,g)=>{"use strict";var t={b:"\b",f:"\f",n:` `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},i="a".charCodeAt();g.parse=function(S,O,R){var M={},D=0,P=0,T=0,A=R&&R.bigint&&typeof BigInt<"u";return{data:j("",!0),pointers:M};function j(ne,pe){ae();var ye;re(ne,"value");var Se=fe();switch(Se){case"t":me("rue"),ye=!0;break;case"f":me("alse"),ye=!1;break;case"n":me("ull"),ye=null;break;case'"':ye=_();break;case"[":ye=W(ne);break;case"{":ye=he(ne);break;default:ve(),"-0123456789".indexOf(Se)>=0?ye=N():Q()}return re(ne,"valueEnd"),ae(),pe&&T<S.length&&Q(),ye}function ae(){e:for(;T<S.length;){switch(S[T]){case" ":P++;break;case" ":P+=4;break;case"\r":P=0;break;case` `:P=0,D++;break;default:break e}T++}}function _(){for(var ne="",pe;pe=fe(),pe!='"';)pe=="\\"?(pe=fe(),pe in t?ne+=t[pe]:pe=="u"?ne+=ce():Te()):ne+=pe;return ne}function N(){var ne="",pe=!0;S[T]=="-"&&(ne+=fe()),ne+=S[T]=="0"?fe():oe(),S[T]=="."&&(ne+=fe()+oe(),pe=!1),(S[T]=="e"||S[T]=="E")&&(ne+=fe(),(S[T]=="+"||S[T]=="-")&&(ne+=fe()),ne+=oe(),pe=!1);var ye=+ne;return A&&pe&&(ye>Number.MAX_SAFE_INTEGER||ye<Number.MIN_SAFE_INTEGER)?BigInt(ne):ye}function W(ne){ae();var pe=[],ye=0;if(fe()=="]")return pe;for(ve();;){var Se=ne+"/"+ye;pe.push(j(Se)),ae();var Ae=fe();if(Ae=="]")break;Ae!=","&&Te(),ae(),ye++}return pe}function he(ne){ae();var pe={};if(fe()=="}")return pe;for(ve();;){var ye=V();fe()!='"'&&Te();var Se=_(),Ae=ne+"/"+w(Se);H(Ae,"key",ye),re(Ae,"keyEnd"),ae(),fe()!=":"&&Te(),ae(),pe[Se]=j(Ae),ae();var Ee=fe();if(Ee=="}")break;Ee!=","&&Te(),ae()}return pe}function me(ne){for(var pe=0;pe<ne.length;pe++)fe()!==ne[pe]&&Te()}function fe(){Re();var ne=S[T];return T++,P++,ne}function ve(){T--,P--}function ce(){for(var ne=4,pe=0;ne--;){pe<<=4;var ye=fe().toLowerCase();ye>="a"&&ye<="f"?pe+=ye.charCodeAt()-i+10:ye>="0"&&ye<="9"?pe+=+ye:Te()}return String.fromCharCode(pe)}function oe(){for(var ne="";S[T]>="0"&&S[T]<="9";)ne+=fe();if(ne.length)return ne;Re(),Q()}function re(ne,pe){H(ne,pe,V())}function H(ne,pe,ye){M[ne]=M[ne]||{},M[ne][pe]=ye}function V(){return{line:D,column:P,pos:T}}function Q(){throw new SyntaxError("Unexpected token "+S[T]+" in JSON at position "+T)}function Te(){ve(),Q()}function Re(){if(T>=S.length)throw new SyntaxError("Unexpected end of JSON input")}},g.stringify=function(S,O,R){if(!s(S))return;var M=0,D,P,T=typeof R=="object"?R.space:R;switch(typeof T){case"number":var A=T>10?10:T<0?0:Math.floor(T);T=A&&H(A," "),D=A,P=A;break;case"string":T=T.slice(0,10),D=0,P=0;for(var j=0;j<T.length;j++){var ae=T[j];switch(ae){case" ":P++;break;case" ":P+=4;break;case"\r":P=0;break;case` `:P=0,M++;break;default:throw new Error("whitespace characters not allowed in JSON")}D++}break;default:T=void 0}var _="",N={},W=0,he=0,me=0,fe=R&&R.es6&&typeof Map=="function";return ve(S,0,""),{json:_,pointers:N};function ve(V,Q,Te){switch(re(Te,"value"),typeof V){case"number":case"bigint":case"boolean":ce(""+V);break;case"string":ce(d(V));break;case"object":V===null?ce("null"):typeof V.toJSON=="function"?ce(d(V.toJSON())):Array.isArray(V)?Re():fe?V.constructor.BYTES_PER_ELEMENT?Re():V instanceof Map?pe():V instanceof Set?pe(!0):ne():ne()}re(Te,"valueEnd");function Re(){if(V.length){ce("[");for(var ye=Q+1,Se=0;Se<V.length;Se++){Se&&ce(","),oe(ye);var Ae=s(V[Se])?V[Se]:null,Ee=Te+"/"+Se;ve(Ae,ye,Ee)}oe(Q),ce("]")}else ce("[]")}function ne(){var ye=Object.keys(V);if(ye.length){ce("{");for(var Se=Q+1,Ae=0;Ae<ye.length;Ae++){var Ee=ye[Ae],xe=V[Ee];if(s(xe)){Ae&&ce(",");var nt=Te+"/"+w(Ee);oe(Se),re(nt,"key"),ce(d(Ee)),re(nt,"keyEnd"),ce(":"),T&&ce(" "),ve(xe,Se,nt)}}oe(Q),ce("}")}else ce("{}")}function pe(ye){if(V.size){ce("{");for(var Se=Q+1,Ae=!0,Ee=V.entries(),xe=Ee.next();!xe.done;){var nt=xe.value,Tt=nt[0],pt=ye?!0:nt[1];if(s(pt)){Ae||ce(","),Ae=!1;var Rt=Te+"/"+w(Tt);oe(Se),re(Rt,"key"),ce(d(Tt)),re(Rt,"keyEnd"),ce(":"),T&&ce(" "),ve(pt,Se,Rt)}xe=Ee.next()}oe(Q),ce("}")}else ce("{}")}}function ce(V){he+=V.length,me+=V.length,_+=V}function oe(V){if(T){for(_+=` `+H(V,T),W++,he=0;V--;)M?(W+=M,he=P):he+=P,me+=D;me+=1}}function re(V,Q){N[V]=N[V]||{},N[V][Q]={line:W,column:he,pos:me}}function H(V,Q){return Array(V+1).join(Q)}};var l=["number","bigint","boolean","string","object"];function s(S){return l.indexOf(typeof S)>=0}var m=/"|\\/g,u=/[\b]/g,f=/\f/g,p=/\n/g,v=/\r/g,h=/\t/g;function d(S){return S=S.replace(m,"\\$&").replace(f,"\\f").replace(u,"\\b").replace(p,"\\n").replace(v,"\\r").replace(h,"\\t"),'"'+S+'"'}var b=/~/g,y=/\//g;function w(S){return S.replace(b,"~0").replace(y,"~1")}},95843:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(M,D,P,T){T===void 0&&(T=P),Object.defineProperty(M,T,{enumerable:!0,get:function(){return D[P]}})}:function(M,D,P,T){T===void 0&&(T=P),M[T]=D[P]}),l=this&&this.__setModuleDefault||(Object.create?function(M,D){Object.defineProperty(M,"default",{enumerable:!0,value:D})}:function(M,D){M.default=D}),s=this&&this.__importStar||function(M){if(M&&M.__esModule)return M;var D={};if(M!=null)for(var P in M)P!=="default"&&Object.prototype.hasOwnProperty.call(M,P)&&i(D,M,P);return l(D,M),D},m=this&&this.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(g,"__esModule",{value:!0}),g.InternalEvents=void 0;var u=s(t(96540)),f=m(t(41153)),p=t(60950),v=t(4122),h=t(65178);function d(){return b(),y(),O(),R(),null}g.InternalEvents=d;function b(){var M,D,P=(0,v.useKBar)(function(he){return{visualState:he.visualState,showing:he.visualState!==p.VisualState.hidden,disabled:he.disabled}}),T=P.query,A=P.options,j=P.visualState,ae=P.showing,_=P.disabled;u.useEffect(function(){var he,me=function(){T.setVisualState(function(ce){return ce===p.VisualState.hidden||ce===p.VisualState.animatingOut?ce:p.VisualState.animatingOut})};if(_){me();return}var fe=A.toggleShortcut||"$mod+k",ve=(0,f.default)(window,(he={},he[fe]=function(ce){var oe,re,H,V;ce.defaultPrevented||(ce.preventDefault(),T.toggle(),ae?(re=(oe=A.callbacks)===null||oe===void 0?void 0:oe.onClose)===null||re===void 0||re.call(oe):(V=(H=A.callbacks)===null||H===void 0?void 0:H.onOpen)===null||V===void 0||V.call(H))},he.Escape=function(ce){var oe,re;ae&&(ce.stopPropagation(),ce.preventDefault(),(re=(oe=A.callbacks)===null||oe===void 0?void 0:oe.onClose)===null||re===void 0||re.call(oe)),me()},he));return function(){ve()}},[A.callbacks,A.toggleShortcut,T,ae,_]);var N=u.useRef(),W=u.useCallback(function(he){var me,fe,ve=0;he===p.VisualState.animatingIn&&(ve=((me=A.animations)===null||me===void 0?void 0:me.enterMs)||0),he===p.VisualState.animatingOut&&(ve=((fe=A.animations)===null||fe===void 0?void 0:fe.exitMs)||0),clearTimeout(N.current),N.current=setTimeout(function(){var ce=!1;T.setVisualState(function(){var oe=he===p.VisualState.animatingIn?p.VisualState.showing:p.VisualState.hidden;return oe===p.VisualState.hidden&&(ce=!0),oe}),ce&&T.setCurrentRootAction(null)},ve)},[(M=A.animations)===null||M===void 0?void 0:M.enterMs,(D=A.animations)===null||D===void 0?void 0:D.exitMs,T]);u.useEffect(function(){switch(j){case p.VisualState.animatingIn:case p.VisualState.animatingOut:W(j);break}},[W,j])}function y(){var M=(0,v.useKBar)(function(T){return{visualState:T.visualState}}),D=M.visualState,P=M.options;u.useEffect(function(){if(!P.disableDocumentLock)if(D===p.VisualState.animatingIn){if(document.body.style.overflow="hidden",!P.disableScrollbarManagement){var T=(0,h.getScrollbarWidth)(),A=getComputedStyle(document.body)["margin-right"];A&&(T+=Number(A.replace(/\D/g,""))),document.body.style.marginRight=T+"px"}}else D===p.VisualState.hidden&&(document.body.style.removeProperty("overflow"),P.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))},[P.disableDocumentLock,P.disableScrollbarManagement,D])}var w=new WeakSet;function S(M){return function(D){w.has(D)||(M(D),w.add(D))}}function O(){var M=(0,v.useKBar)(function(ae){return{actions:ae.actions,open:ae.visualState===p.VisualState.showing,disabled:ae.disabled}}),D=M.actions,P=M.query,T=M.open,A=M.options,j=M.disabled;u.useEffect(function(){var ae;if(!(T||j)){for(var _=Object.keys(D).map(function(H){return D[H]}),N=[],W=0,he=_;W<he.length;W++){var me=he[W];!((ae=me.shortcut)===null||ae===void 0)&&ae.length&&N.push(me)}N=N.sort(function(H,V){return V.shortcut.join(" ").length-H.shortcut.join(" ").length});for(var fe={},ve=function(H){var V=H.shortcut.join(" ");fe[V]=S(function(Q){var Te,Re,ne,pe,ye,Se;(0,h.shouldRejectKeystrokes)()||(Q.preventDefault(),!((Te=H.children)===null||Te===void 0)&&Te.length?(P.setCurrentRootAction(H.id),P.toggle(),(ne=(Re=A.callbacks)===null||Re===void 0?void 0:Re.onOpen)===null||ne===void 0||ne.call(Re)):((pe=H.command)===null||pe===void 0||pe.perform(),(Se=(ye=A.callbacks)===null||ye===void 0?void 0:ye.onSelectAction)===null||Se===void 0||Se.call(ye,H)))})},ce=0,oe=N;ce<oe.length;ce++){var me=oe[ce];ve(me)}var re=(0,f.default)(window,fe,{timeout:400});return function(){re()}}},[D,T,A.callbacks,P,j])}function R(){var M=u.useRef(!0),D=(0,v.useKBar)(function(j){return{isShowing:j.visualState===p.VisualState.showing||j.visualState===p.VisualState.animatingIn}}),P=D.isShowing,T=D.query,A=u.useRef(null);u.useEffect(function(){if(M.current){M.current=!1;return}if(P){A.current=document.activeElement;return}var j=document.activeElement;j?.tagName.toLowerCase()==="input"&&j.blur();var ae=A.current;ae&&ae!==j&&ae.focus()},[P]),u.useEffect(function(){function j(ae){var _=T.getInput();ae.target!==_&&_.focus()}if(P)return window.addEventListener("keydown",j),function(){window.removeEventListener("keydown",j)}},[P,T])}},62715:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(y){for(var w,S=1,O=arguments.length;S<O;S++){w=arguments[S];for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(y[R]=w[R])}return y},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(y,w,S,O){O===void 0&&(O=S),Object.defineProperty(y,O,{enumerable:!0,get:function(){return w[S]}})}:function(y,w,S,O){O===void 0&&(O=S),y[O]=w[S]}),s=this&&this.__setModuleDefault||(Object.create?function(y,w){Object.defineProperty(y,"default",{enumerable:!0,value:w})}:function(y,w){y.default=w}),m=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var w={};if(y!=null)for(var S in y)S!=="default"&&Object.prototype.hasOwnProperty.call(y,S)&&l(w,y,S);return s(w,y),w};Object.defineProperty(g,"__esModule",{value:!0}),g.KBarAnimator=void 0;var u=m(t(96540)),f=t(60950),p=t(4122),v=t(65178),h=[{opacity:0,transform:"scale(.99)"},{opacity:1,transform:"scale(1.01)"},{opacity:1,transform:"scale(1)"}],d=[{transform:"scale(1)"},{transform:"scale(.98)"},{transform:"scale(1)"}],b=function(y){var w,S,O=y.children,R=y.style,M=y.className,D=y.disableCloseOnOuterClick,P=(0,p.useKBar)(function(ve){return{visualState:ve.visualState,currentRootActionId:ve.currentRootActionId}}),T=P.visualState,A=P.currentRootActionId,j=P.query,ae=P.options,_=u.useRef(null),N=u.useRef(null),W=((w=ae?.animations)===null||w===void 0?void 0:w.enterMs)||0,he=((S=ae?.animations)===null||S===void 0?void 0:S.exitMs)||0;u.useEffect(function(){if(T!==f.VisualState.showing){var ve=T===f.VisualState.animatingIn?W:he,ce=_.current;ce?.animate(h,{duration:ve,easing:T===f.VisualState.animatingOut?"ease-in":"ease-out",direction:T===f.VisualState.animatingOut?"reverse":"normal",fill:"forwards"})}},[ae,T,W,he]);var me=u.useRef();u.useEffect(function(){if(T===f.VisualState.showing){var ve=_.current,ce=N.current;if(!ve||!ce)return;var oe=new ResizeObserver(function(re){for(var H=0,V=re;H<V.length;H++){var Q=V[H],Te=Q.contentRect;me.current||(me.current=Te.height),ve.animate([{height:me.current+"px"},{height:Te.height+"px"}],{duration:W/2,easing:"ease-out",fill:"forwards"}),me.current=Te.height}});return oe.observe(ce),function(){oe.unobserve(ce)}}},[T,ae,W,he]);var fe=u.useRef(!0);return u.useEffect(function(){if(fe.current){fe.current=!1;return}var ve=_.current;ve&&ve.animate(d,{duration:W,easing:"ease-out"})},[A,W]),(0,v.useOuterClick)(_,function(){var ve,ce;D||(j.setVisualState(f.VisualState.animatingOut),(ce=(ve=ae.callbacks)===null||ve===void 0?void 0:ve.onClose)===null||ce===void 0||ce.call(ve))}),u.createElement("div",{ref:_,style:i(i(i({},h[0]),R),{pointerEvents:"auto"}),className:M},u.createElement("div",{ref:N},O))};g.KBarAnimator=b},43195:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(v,h,d,b){b===void 0&&(b=d),Object.defineProperty(v,b,{enumerable:!0,get:function(){return h[d]}})}:function(v,h,d,b){b===void 0&&(b=d),v[b]=h[d]}),l=this&&this.__setModuleDefault||(Object.create?function(v,h){Object.defineProperty(v,"default",{enumerable:!0,value:h})}:function(v,h){v.default=h}),s=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var h={};if(v!=null)for(var d in v)d!=="default"&&Object.prototype.hasOwnProperty.call(v,d)&&i(h,v,d);return l(h,v),h};Object.defineProperty(g,"__esModule",{value:!0}),g.KBarProvider=g.KBarContext=void 0;var m=t(79711),u=s(t(96540)),f=t(95843);g.KBarContext=u.createContext({});var p=function(v){var h=(0,m.useStore)(v);return u.createElement(g.KBarContext.Provider,{value:h},u.createElement(f.InternalEvents,null),v.children)};g.KBarProvider=p},81423:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(h,d,b,y){y===void 0&&(y=b),Object.defineProperty(h,y,{enumerable:!0,get:function(){return d[b]}})}:function(h,d,b,y){y===void 0&&(y=b),h[y]=d[b]}),l=this&&this.__setModuleDefault||(Object.create?function(h,d){Object.defineProperty(h,"default",{enumerable:!0,value:d})}:function(h,d){h.default=d}),s=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var b in h)b!=="default"&&Object.prototype.hasOwnProperty.call(h,b)&&i(d,h,b);return l(d,h),d};Object.defineProperty(g,"__esModule",{value:!0}),g.KBarPortal=void 0;var m=t(93086),u=s(t(96540)),f=t(60950),p=t(4122);function v(h){var d=h.children,b=h.container,y=(0,p.useKBar)(function(w){return{showing:w.visualState!==f.VisualState.hidden}}).showing;return y?u.createElement(m.Portal,{container:b},d):null}g.KBarPortal=v},7985:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(h){for(var d,b=1,y=arguments.length;b<y;b++){d=arguments[b];for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(h[w]=d[w])}return h},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(h,d,b,y){y===void 0&&(y=b),Object.defineProperty(h,y,{enumerable:!0,get:function(){return d[b]}})}:function(h,d,b,y){y===void 0&&(y=b),h[y]=d[b]}),s=this&&this.__setModuleDefault||(Object.create?function(h,d){Object.defineProperty(h,"default",{enumerable:!0,value:d})}:function(h,d){h.default=d}),m=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var b in h)b!=="default"&&Object.prototype.hasOwnProperty.call(h,b)&&l(d,h,b);return s(d,h),d},u=this&&this.__rest||function(h,d){var b={};for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&d.indexOf(y)<0&&(b[y]=h[y]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,y=Object.getOwnPropertySymbols(h);w<y.length;w++)d.indexOf(y[w])<0&&Object.prototype.propertyIsEnumerable.call(h,y[w])&&(b[y[w]]=h[y[w]]);return b};Object.defineProperty(g,"__esModule",{value:!0}),g.KBarPositioner=void 0;var f=m(t(96540)),p={position:"fixed",display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",inset:"0px",padding:"14vh 16px 16px"};function v(h){return h?i(i({},p),h):p}g.KBarPositioner=f.forwardRef(function(h,d){var b=h.style,y=h.children,w=u(h,["style","children"]);return f.createElement("div",i({ref:d,style:v(b)},w),y)})},22863:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(y){for(var w,S=1,O=arguments.length;S<O;S++){w=arguments[S];for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&(y[R]=w[R])}return y},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(y,w,S,O){O===void 0&&(O=S),Object.defineProperty(y,O,{enumerable:!0,get:function(){return w[S]}})}:function(y,w,S,O){O===void 0&&(O=S),y[O]=w[S]}),s=this&&this.__setModuleDefault||(Object.create?function(y,w){Object.defineProperty(y,"default",{enumerable:!0,value:w})}:function(y,w){y.default=w}),m=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var w={};if(y!=null)for(var S in y)S!=="default"&&Object.prototype.hasOwnProperty.call(y,S)&&l(w,y,S);return s(w,y),w};Object.defineProperty(g,"__esModule",{value:!0}),g.KBarResults=void 0;var u=m(t(96540)),f=t(35822),p=t(34933),v=t(4122),h=t(65178),d=0,b=function(y){var w=u.useRef(null),S=u.useRef(null),O=u.useRef(y.items);O.current=y.items;var R=(0,f.useVirtual)({size:O.current.length,parentRef:S}),M=(0,v.useKBar)(function(W){return{search:W.searchQuery,currentRootActionId:W.currentRootActionId,activeIndex:W.activeIndex}}),D=M.query,P=M.search,T=M.currentRootActionId,A=M.activeIndex,j=M.options;u.useEffect(function(){var W=function(he){var me;he.isComposing||(he.key==="ArrowUp"||he.ctrlKey&&he.key==="p"?(he.preventDefault(),he.stopPropagation(),D.setActiveIndex(function(fe){var ve=fe>d?fe-1:fe;if(typeof O.current[ve]=="string"){if(ve===0)return fe;ve-=1}return ve})):he.key==="ArrowDown"||he.ctrlKey&&he.key==="n"?(he.preventDefault(),he.stopPropagation(),D.setActiveIndex(function(fe){var ve=fe<O.current.length-1?fe+1:fe;if(typeof O.current[ve]=="string"){if(ve===O.current.length-1)return fe;ve+=1}return ve})):he.key==="Enter"&&(he.preventDefault(),he.stopPropagation(),(me=w.current)===null||me===void 0||me.click()))};return window.addEventListener("keydown",W,{capture:!0}),function(){return window.removeEventListener("keydown",W,{capture:!0})}},[D]);var ae=R.scrollToIndex;u.useEffect(function(){ae(A,{align:A<=1?"end":"auto"})},[A,ae]),u.useEffect(function(){D.setActiveIndex(typeof y.items[d]=="string"?d+1:d)},[P,T,y.items,D]);var _=u.useCallback(function(W){var he,me;typeof W!="string"&&(W.command?(W.command.perform(W),D.toggle()):(D.setSearch(""),D.setCurrentRootAction(W.id)),(me=(he=j.callbacks)===null||he===void 0?void 0:he.onSelectAction)===null||me===void 0||me.call(he,W))},[D,j]),N=(0,h.usePointerMovedSinceMount)();return u.createElement("div",{ref:S,style:{maxHeight:y.maxHeight||400,position:"relative",overflow:"auto"}},u.createElement("div",{role:"listbox",id:p.KBAR_LISTBOX,style:{height:R.totalSize+"px",width:"100%"}},R.virtualItems.map(function(W){var he=O.current[W.index],me=typeof he!="string"&&{onPointerMove:function(){return N&&A!==W.index&&D.setActiveIndex(W.index)},onPointerDown:function(){return D.setActiveIndex(W.index)},onClick:function(){return _(he)}},fe=W.index===A;return u.createElement("div",i({ref:fe?w:null,id:(0,p.getListboxItemId)(W.index),role:"option","aria-selected":fe,key:W.index,style:{position:"absolute",top:0,left:0,width:"100%",transform:"translateY("+W.start+"px)"}},me),u.cloneElement(y.onRender({item:he,active:fe}),{ref:W.measureRef}))})))};g.KBarResults=b},34933:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(b){for(var y,w=1,S=arguments.length;w<S;w++){y=arguments[w];for(var O in y)Object.prototype.hasOwnProperty.call(y,O)&&(b[O]=y[O])}return b},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(b,y,w,S){S===void 0&&(S=w),Object.defineProperty(b,S,{enumerable:!0,get:function(){return y[w]}})}:function(b,y,w,S){S===void 0&&(S=w),b[S]=y[w]}),s=this&&this.__setModuleDefault||(Object.create?function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}:function(b,y){b.default=y}),m=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var y={};if(b!=null)for(var w in b)w!=="default"&&Object.prototype.hasOwnProperty.call(b,w)&&l(y,b,w);return s(y,b),y},u=this&&this.__rest||function(b,y){var w={};for(var S in b)Object.prototype.hasOwnProperty.call(b,S)&&y.indexOf(S)<0&&(w[S]=b[S]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,S=Object.getOwnPropertySymbols(b);O<S.length;O++)y.indexOf(S[O])<0&&Object.prototype.propertyIsEnumerable.call(b,S[O])&&(w[S[O]]=b[S[O]]);return w};Object.defineProperty(g,"__esModule",{value:!0}),g.KBarSearch=g.getListboxItemId=g.KBAR_LISTBOX=void 0;var f=m(t(96540)),p=t(60950),v=t(4122);g.KBAR_LISTBOX="kbar-listbox";var h=function(b){return"kbar-listbox-item-"+b};g.getListboxItemId=h;function d(b){var y=(0,v.useKBar)(function(W){return{search:W.searchQuery,currentRootActionId:W.currentRootActionId,actions:W.actions,activeIndex:W.activeIndex,showing:W.visualState===p.VisualState.showing}}),w=y.query,S=y.search,O=y.actions,R=y.currentRootActionId,M=y.activeIndex,D=y.showing,P=y.options,T=f.useState(S),A=T[0],j=T[1];f.useEffect(function(){w.setSearch(A)},[A,w]);var ae=b.defaultPlaceholder,_=u(b,["defaultPlaceholder"]);f.useEffect(function(){return w.setSearch(""),w.getInput().focus(),function(){return w.setSearch("")}},[R,w]);var N=f.useMemo(function(){var W=ae??"Type a command or search\u2026";return R&&O[R]?O[R].name:W},[O,R,ae]);return f.createElement("input",i({},_,{ref:w.inputRefSetter,autoFocus:!0,autoComplete:"off",role:"combobox",spellCheck:"false","aria-expanded":D,"aria-controls":g.KBAR_LISTBOX,"aria-activedescendant":(0,g.getListboxItemId)(M),value:A,placeholder:N,onChange:function(W){var he,me,fe;(he=b.onChange)===null||he===void 0||he.call(b,W),j(W.target.value),(fe=(me=P?.callbacks)===null||me===void 0?void 0:me.onQueryChange)===null||fe===void 0||fe.call(me,W.target.value)},onKeyDown:function(W){var he;if((he=b.onKeyDown)===null||he===void 0||he.call(b,W),R&&!S&&W.key==="Backspace"){var me=O[R].parent;w.setCurrentRootAction(me)}}}))}g.KBarSearch=d},7040:function(J,g,t){"use strict";var i=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(g,"__esModule",{value:!0}),g.ActionImpl=void 0;var l=i(t(17676)),s=t(24335),m=t(65178),u=function(p){var v=p.keywords,h=v===void 0?"":v,d=p.section,b=d===void 0?"":d;return(h+" "+(typeof b=="string"?b:b.name)).trim()},f=function(){function p(v,h){var d=this,b;this.priority=m.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,v),this.id=v.id,this.name=v.name,this.keywords=u(v);var y=v.perform;if(this.command=y&&new s.Command({perform:function(){return y(d)}},{history:h.history}),this.perform=(b=this.command)===null||b===void 0?void 0:b.perform,v.parent){var w=h.store[v.parent];(0,l.default)(w,"attempted to create an action whos parent: "+v.parent+" does not exist in the store."),w.addChild(this)}}return p.prototype.addChild=function(v){v.ancestors.unshift(this);for(var h=this.parentActionImpl;h;)v.ancestors.unshift(h),h=h.parentActionImpl;this.children.push(v)},p.prototype.removeChild=function(v){var h=this,d=this.children.indexOf(v);d!==-1&&this.children.splice(d,1),v.children&&v.children.forEach(function(b){h.removeChild(b)})},Object.defineProperty(p.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),p.create=function(v,h){return new p(v,h)},p}();g.ActionImpl=f},17579:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(f){for(var p,v=1,h=arguments.length;v<h;v++){p=arguments[v];for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(f[d]=p[d])}return f},i.apply(this,arguments)},l=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(g,"__esModule",{value:!0}),g.ActionInterface=void 0;var s=l(t(17676)),m=t(7040),u=function(){function f(p,v){p===void 0&&(p=[]),v===void 0&&(v={}),this.actions={},this.options=v,this.add(p)}return f.prototype.add=function(p){for(var v=0;v<p.length;v++){var h=p[v];h.parent&&(0,s.default)(this.actions[h.parent],'Attempted to create action "'+h.name+'" without registering its parent "'+h.parent+'" first.'),this.actions[h.id]=m.ActionImpl.create(h,{history:this.options.historyManager,store:this.actions})}return i({},this.actions)},f.prototype.remove=function(p){var v=this;return p.forEach(function(h){var d=v.actions[h.id];if(d){for(var b=d.children;b.length;){var y=b.pop();if(!y)return;delete v.actions[y.id],y.parentActionImpl&&y.parentActionImpl.removeChild(y),y.children&&b.push.apply(b,y.children)}d.parentActionImpl&&d.parentActionImpl.removeChild(d),delete v.actions[h.id]}}),i({},this.actions)},f}();g.ActionInterface=u},24335:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Command=void 0;var t=function(){function i(l,s){var m=this;s===void 0&&(s={}),this.perform=function(){var u=l.perform();if(typeof u=="function"){var f=s.history;f&&(m.historyItem&&f.remove(m.historyItem),m.historyItem=f.add({perform:l.perform,negate:u}),m.history={undo:function(){return f.undo(m.historyItem)},redo:function(){return f.redo(m.historyItem)}})}}}return i}();g.Command=t},71220:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.history=g.HistoryItemImpl=void 0;var i=t(65178),l=function(){function u(f){this.perform=f.perform,this.negate=f.negate}return u.create=function(f){return new u(f)},u}();g.HistoryItemImpl=l;var s=function(){function u(){return this.undoStack=[],this.redoStack=[],u.instance||(u.instance=this,this.init()),u.instance}return u.prototype.init=function(){var f=this;typeof window>"u"||window.addEventListener("keydown",function(p){var v;if(!(!f.redoStack.length&&!f.undoStack.length||(0,i.shouldRejectKeystrokes)())){var h=(v=p.key)===null||v===void 0?void 0:v.toLowerCase();p.metaKey&&h==="z"&&p.shiftKey?f.redo():p.metaKey&&h==="z"&&f.undo()}})},u.prototype.add=function(f){var p=l.create(f);return this.undoStack.push(p),p},u.prototype.remove=function(f){var p=this.undoStack.findIndex(function(h){return h===f});if(p!==-1){this.undoStack.splice(p,1);return}var v=this.redoStack.findIndex(function(h){return h===f});v!==-1&&this.redoStack.splice(v,1)},u.prototype.undo=function(f){if(!f){var p=this.undoStack.pop();return p?(p?.negate(),this.redoStack.push(p),p):void 0}var v=this.undoStack.findIndex(function(h){return h===f});if(v!==-1)return this.undoStack.splice(v,1),f.negate(),this.redoStack.push(f),f},u.prototype.redo=function(f){if(!f){var p=this.redoStack.pop();return p?(p?.perform(),this.undoStack.push(p),p):void 0}var v=this.redoStack.findIndex(function(h){return h===f});if(v!==-1)return this.redoStack.splice(v,1),f.perform(),this.undoStack.push(f),f},u.prototype.reset=function(){this.undoStack.splice(0),this.redoStack.splice(0)},u}(),m=new s;g.history=m,Object.freeze(m)},52882:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(s,m,u,f){f===void 0&&(f=u),Object.defineProperty(s,f,{enumerable:!0,get:function(){return m[u]}})}:function(s,m,u,f){f===void 0&&(f=u),s[f]=m[u]}),l=this&&this.__exportStar||function(s,m){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(m,u)&&i(m,s,u)};Object.defineProperty(g,"__esModule",{value:!0}),l(t(17579),g),l(t(7040),g)},1503:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,f,p){p===void 0&&(p=f),Object.defineProperty(m,p,{enumerable:!0,get:function(){return u[f]}})}:function(m,u,f,p){p===void 0&&(p=f),m[p]=u[f]}),l=this&&this.__exportStar||function(m,u){for(var f in m)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&i(u,m,f)};Object.defineProperty(g,"__esModule",{value:!0}),g.Priority=g.createAction=void 0;var s=t(65178);Object.defineProperty(g,"createAction",{enumerable:!0,get:function(){return s.createAction}}),Object.defineProperty(g,"Priority",{enumerable:!0,get:function(){return s.Priority}}),l(t(46267),g),l(t(81423),g),l(t(7985),g),l(t(34933),g),l(t(22863),g),l(t(4122),g),l(t(74938),g),l(t(43195),g),l(t(62715),g),l(t(60950),g),l(t(52882),g)},41153:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var t=["Shift","Meta","Alt","Control"],i=1e3,l="keydown",s=typeof navigator=="object"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function m(v,h){return typeof v.getModifierState=="function"?v.getModifierState(h):!1}function u(v){return v.trim().split(" ").map(function(h){var d=h.split(/\b\+/),b=d.pop();return d=d.map(function(y){return y==="$mod"?s:y}),[d,b]})}function f(v,h){return/^[^A-Za-z0-9]$/.test(v.key)&&h[1]===v.key?!0:!(h[1].toUpperCase()!==v.key.toUpperCase()&&h[1]!==v.code||h[0].find(function(d){return!m(v,d)})||t.find(function(d){return!h[0].includes(d)&&h[1]!==d&&m(v,d)}))}function p(v,h,d){var b,y;d===void 0&&(d={});var w=(b=d.timeout)!==null&&b!==void 0?b:i,S=(y=d.event)!==null&&y!==void 0?y:l,O=Object.keys(h).map(function(P){return[u(P),h[P]]}),R=new Map,M=null,D=function(P){P instanceof KeyboardEvent&&(O.forEach(function(T){var A=T[0],j=T[1],ae=R.get(A),_=ae||A,N=_[0],W=f(P,N);W?_.length>1?R.set(A,_.slice(1)):(R.delete(A),j(P)):m(P,P.key)||R.delete(A)}),M&&clearTimeout(M),M=setTimeout(R.clear.bind(R),w))};return v.addEventListener(S,D),function(){v.removeEventListener(S,D)}}g.default=p},60950:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.VisualState=void 0;var t;(function(i){i.animatingIn="animating-in",i.showing="showing",i.animatingOut="animating-out",i.hidden="hidden"})(t=g.VisualState||(g.VisualState={}))},4122:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(v){for(var h,d=1,b=arguments.length;d<b;d++){h=arguments[d];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(v[y]=h[y])}return v},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(v,h,d,b){b===void 0&&(b=d),Object.defineProperty(v,b,{enumerable:!0,get:function(){return h[d]}})}:function(v,h,d,b){b===void 0&&(b=d),v[b]=h[d]}),s=this&&this.__setModuleDefault||(Object.create?function(v,h){Object.defineProperty(v,"default",{enumerable:!0,value:h})}:function(v,h){v.default=h}),m=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var h={};if(v!=null)for(var d in v)d!=="default"&&Object.prototype.hasOwnProperty.call(v,d)&&l(h,v,d);return s(h,v),h};Object.defineProperty(g,"__esModule",{value:!0}),g.useKBar=void 0;var u=m(t(96540)),f=t(43195);function p(v){var h=u.useContext(f.KBarContext),d=h.query,b=h.getState,y=h.subscribe,w=h.options,S=u.useRef(v?.(b())),O=u.useRef(v),R=u.useCallback(function(T){return i(i({},T),{query:d,options:w})},[d,w]),M=u.useState(R(S.current)),D=M[0],P=M[1];return u.useEffect(function(){var T;return O.current&&(T=y(function(A){return O.current(A)},function(A){return P(R(A))})),function(){T&&T()}},[R,y]),D}g.useKBar=p},46267:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(w,S,O,R){R===void 0&&(R=O),Object.defineProperty(w,R,{enumerable:!0,get:function(){return S[O]}})}:function(w,S,O,R){R===void 0&&(R=O),w[R]=S[O]}),l=this&&this.__setModuleDefault||(Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S}),s=this&&this.__importStar||function(w){if(w&&w.__esModule)return w;var S={};if(w!=null)for(var O in w)O!=="default"&&Object.prototype.hasOwnProperty.call(w,O)&&i(S,w,O);return l(S,w),S},m=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(g,"__esModule",{value:!0}),g.useDeepMatches=g.useMatches=g.NO_GROUP=void 0;var u=s(t(96540)),f=t(4122),p=t(65178),v=m(t(47120));g.NO_GROUP={name:"none",priority:p.Priority.NORMAL};var h={keys:[{name:"name",weight:.5},{name:"keywords",getFn:function(w){var S;return((S=w.keywords)!==null&&S!==void 0?S:"").split(",")},weight:.5},"subtitle"],ignoreLocation:!0,includeScore:!0,includeMatches:!0,threshold:.2,minMatchCharLength:1};function d(w,S){return S.priority-w.priority}function b(){var w=(0,f.useKBar)(function(N){return{search:N.searchQuery,actions:N.actions,rootActionId:N.currentRootActionId}}),S=w.search,O=w.actions,R=w.rootActionId,M=u.useMemo(function(){return Object.keys(O).reduce(function(N,W){var he=O[W];if(!he.parent&&!R&&N.push(he),he.id===R)for(var me=0;me<he.children.length;me++)N.push(he.children[me]);return N},[]).sort(d)},[O,R]),D=u.useCallback(function(N){for(var W=[],he=0;he<N.length;he++)W.push(N[he]);return function me(fe,ve){ve===void 0&&(ve=W);for(var ce=0;ce<fe.length;ce++)if(fe[ce].children.length>0){for(var oe=fe[ce].children,re=0;re<oe.length;re++)ve.push(oe[re]);me(fe[ce].children,ve)}return ve}(N)},[]),P=!S,T=u.useMemo(function(){return P?M:D(M)},[D,M,P]),A=u.useMemo(function(){return new v.default(T,h)},[T]),j=y(T,S,A),ae=u.useMemo(function(){for(var N,W,he={},me=[],fe=[],ve=0;ve<j.length;ve++){var ce=j[ve],oe=ce.action,re=ce.score||p.Priority.NORMAL,H={name:typeof oe.section=="string"?oe.section:((N=oe.section)===null||N===void 0?void 0:N.name)||g.NO_GROUP.name,priority:typeof oe.section=="string"?re:((W=oe.section)===null||W===void 0?void 0:W.priority)||0+re};he[H.name]||(he[H.name]=[],me.push(H)),he[H.name].push({priority:oe.priority+re,action:oe})}fe=me.sort(d).map(function(Re){return{name:Re.name,actions:he[Re.name].sort(d).map(function(ne){return ne.action})}});for(var V=[],ve=0;ve<fe.length;ve++){var Q=fe[ve];Q.name!==g.NO_GROUP.name&&V.push(Q.name);for(var Te=0;Te<Q.actions.length;Te++)V.push(Q.actions[Te])}return V},[j]),_=u.useMemo(function(){return R},[ae]);return u.useMemo(function(){return{results:ae,rootActionId:_}},[_,ae])}g.useMatches=b;function y(w,S,O){var R=u.useMemo(function(){return{filtered:w,search:S}},[w,S]),M=(0,p.useThrottledValue)(R),D=M.filtered,P=M.search;return u.useMemo(function(){if(P.trim()==="")return D.map(function(j){return{score:0,action:j}});var T=[],A=O.search(P);return T=A.map(function(j){var ae=j.item,_=j.score;return{score:1/((_??0)+1),action:ae}}),T},[D,P,O])}g.useDeepMatches=b},74938:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,v,h,d){d===void 0&&(d=h),Object.defineProperty(p,d,{enumerable:!0,get:function(){return v[h]}})}:function(p,v,h,d){d===void 0&&(d=h),p[d]=v[h]}),l=this&&this.__setModuleDefault||(Object.create?function(p,v){Object.defineProperty(p,"default",{enumerable:!0,value:v})}:function(p,v){p.default=v}),s=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var v={};if(p!=null)for(var h in p)h!=="default"&&Object.prototype.hasOwnProperty.call(p,h)&&i(v,p,h);return l(v,p),v};Object.defineProperty(g,"__esModule",{value:!0}),g.useRegisterActions=void 0;var m=s(t(96540)),u=t(4122);function f(p,v){v===void 0&&(v=[]);var h=(0,u.useKBar)().query,d=m.useMemo(function(){return p},v);m.useEffect(function(){if(d.length){var b=h.registerActions(d);return function(){b()}}},[h,d])}g.useRegisterActions=f},79711:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(O){for(var R,M=1,D=arguments.length;M<D;M++){R=arguments[M];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(O[P]=R[P])}return O},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(O,R,M,D){D===void 0&&(D=M),Object.defineProperty(O,D,{enumerable:!0,get:function(){return R[M]}})}:function(O,R,M,D){D===void 0&&(D=M),O[D]=R[M]}),s=this&&this.__setModuleDefault||(Object.create?function(O,R){Object.defineProperty(O,"default",{enumerable:!0,value:R})}:function(O,R){O.default=R}),m=this&&this.__importStar||function(O){if(O&&O.__esModule)return O;var R={};if(O!=null)for(var M in O)M!=="default"&&Object.prototype.hasOwnProperty.call(O,M)&&l(R,O,M);return s(R,O),R},u=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(g,"__esModule",{value:!0}),g.useStore=void 0;var f=t(51548),p=m(t(96540)),v=u(t(17676)),h=t(17579),d=t(71220),b=t(60950);function y(O){var R=p.useRef(i({animations:{enterMs:200,exitMs:100}},O.options)),M=p.useMemo(function(){return new h.ActionInterface(O.actions||[],{historyManager:R.current.enableHistory?d.history:void 0})},[]),D=p.useState({searchQuery:"",currentRootActionId:null,visualState:b.VisualState.hidden,actions:i({},M.actions),activeIndex:0,disabled:!1}),P=D[0],T=D[1],A=p.useRef(P);A.current=P;var j=p.useCallback(function(){return A.current},[]),ae=p.useMemo(function(){return new w(j)},[j]);p.useEffect(function(){A.current=P,ae.notify()},[P,ae]);var _=p.useCallback(function(W){return T(function(he){return i(i({},he),{actions:M.add(W)})}),function(){T(function(me){return i(i({},me),{actions:M.remove(W)})})}},[M]),N=p.useRef(null);return p.useMemo(function(){var W={setCurrentRootAction:function(he){T(function(me){return i(i({},me),{currentRootActionId:he})})},setVisualState:function(he){T(function(me){return i(i({},me),{visualState:typeof he=="function"?he(me.visualState):he})})},setSearch:function(he){return T(function(me){return i(i({},me),{searchQuery:he})})},registerActions:_,toggle:function(){return T(function(he){return i(i({},he),{visualState:[b.VisualState.animatingOut,b.VisualState.hidden].includes(he.visualState)?b.VisualState.animatingIn:b.VisualState.animatingOut})})},setActiveIndex:function(he){return T(function(me){return i(i({},me),{activeIndex:typeof he=="number"?he:he(me.activeIndex)})})},inputRefSetter:function(he){N.current=he},getInput:function(){return(0,v.default)(N.current,"Input ref is undefined, make sure you attach `query.inputRefSetter` to your search input."),N.current},disable:function(he){T(function(me){return i(i({},me),{disabled:he})})}};return{getState:j,query:W,options:R.current,subscribe:function(he,me){return ae.subscribe(he,me)}}},[j,ae,_])}g.useStore=y;var w=function(){function O(R){this.subscribers=[],this.getState=R}return O.prototype.subscribe=function(R,M){var D=this,P=new S(function(){return R(D.getState())},M);return this.subscribers.push(P),this.unsubscribe.bind(this,P)},O.prototype.unsubscribe=function(R){if(this.subscribers.length){var M=this.subscribers.indexOf(R);if(M>-1)return this.subscribers.splice(M,1)}},O.prototype.notify=function(){this.subscribers.forEach(function(R){return R.collect()})},O}(),S=function(){function O(R,M){this.collector=R,this.onChange=M}return O.prototype.collect=function(){try{var R=this.collector();(0,f.deepEqual)(R,this.collected)||(this.collected=R,this.onChange&&this.onChange(this.collected))}catch(M){console.warn(M)}},O}()},65178:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(P){for(var T,A=1,j=arguments.length;A<j;A++){T=arguments[A];for(var ae in T)Object.prototype.hasOwnProperty.call(T,ae)&&(P[ae]=T[ae])}return P},i.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(P,T,A,j){j===void 0&&(j=A),Object.defineProperty(P,j,{enumerable:!0,get:function(){return T[A]}})}:function(P,T,A,j){j===void 0&&(j=A),P[j]=T[A]}),s=this&&this.__setModuleDefault||(Object.create?function(P,T){Object.defineProperty(P,"default",{enumerable:!0,value:T})}:function(P,T){P.default=T}),m=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var T={};if(P!=null)for(var A in P)A!=="default"&&Object.prototype.hasOwnProperty.call(P,A)&&l(T,P,A);return s(T,P),T},u=this&&this.__spreadArray||function(P,T,A){if(A||arguments.length===2)for(var j=0,ae=T.length,_;j<ae;j++)(_||!(j in T))&&(_||(_=Array.prototype.slice.call(T,0,j)),_[j]=T[j]);return P.concat(_||Array.prototype.slice.call(T))};Object.defineProperty(g,"__esModule",{value:!0}),g.Priority=g.isModKey=g.shouldRejectKeystrokes=g.useThrottledValue=g.getScrollbarWidth=g.useIsomorphicLayout=g.noop=g.createAction=g.randomId=g.usePointerMovedSinceMount=g.useOuterClick=g.swallowEvent=void 0;var f=m(t(96540));function p(P){P.stopPropagation(),P.preventDefault()}g.swallowEvent=p;function v(P,T){var A=f.useRef(T);A.current=T,f.useEffect(function(){function j(ae){var _,N;!((_=P.current)===null||_===void 0)&&_.contains(ae.target)||ae.target===((N=P.current)===null||N===void 0?void 0:N.getRootNode().host)||(ae.preventDefault(),ae.stopPropagation(),A.current())}return window.addEventListener("pointerdown",j,!0),function(){return window.removeEventListener("pointerdown",j,!0)}},[P])}g.useOuterClick=v;function h(){var P=f.useState(!1),T=P[0],A=P[1];return f.useEffect(function(){function j(){A(!0)}if(!T)return window.addEventListener("pointermove",j),function(){return window.removeEventListener("pointermove",j)}},[T]),T}g.usePointerMovedSinceMount=h;function d(){return Math.random().toString(36).substring(2,9)}g.randomId=d;function b(P){return i({id:d()},P)}g.createAction=b;function y(){}g.noop=y,g.useIsomorphicLayout=typeof window>"u"?y:f.useLayoutEffect;function w(){var P=document.createElement("div");P.style.visibility="hidden",P.style.overflow="scroll",document.body.appendChild(P);var T=document.createElement("div");P.appendChild(T);var A=P.offsetWidth-T.offsetWidth;return P.parentNode.removeChild(P),A}g.getScrollbarWidth=w;function S(P,T){T===void 0&&(T=100);var A=f.useState(P),j=A[0],ae=A[1],_=f.useRef(Date.now());return f.useEffect(function(){if(T!==0){var N=setTimeout(function(){ae(P),_.current=Date.now()},_.current-(Date.now()-T));return function(){clearTimeout(N)}}},[T,P]),T===0?P:j}g.useThrottledValue=S;function O(P){var T,A,j,ae=P===void 0?{ignoreWhenFocused:[]}:P,_=ae.ignoreWhenFocused,N=u(["input","textarea"],_,!0).map(function(me){return me.toLowerCase()}),W=document.activeElement,he=W&&(N.indexOf(W.tagName.toLowerCase())!==-1||((T=W.attributes.getNamedItem("role"))===null||T===void 0?void 0:T.value)==="textbox"||((A=W.attributes.getNamedItem("contenteditable"))===null||A===void 0?void 0:A.value)==="true"||((j=W.attributes.getNamedItem("contenteditable"))===null||j===void 0?void 0:j.value)==="plaintext-only");return he}g.shouldRejectKeystrokes=O;var R=typeof window>"u",M=!R&&window.navigator.platform==="MacIntel";function D(P){return M?P.metaKey:P.ctrlKey}g.isModKey=D,g.Priority={HIGH:1,NORMAL:0,LOW:-1}},8142:(J,g,t)=>{J=t.nmd(J);var i=200,l="__lodash_hash_undefined__",s=1,m=2,u=9007199254740991,f="[object Arguments]",p="[object Array]",v="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",b="[object Error]",y="[object Function]",w="[object GeneratorFunction]",S="[object Map]",O="[object Number]",R="[object Null]",M="[object Object]",D="[object Promise]",P="[object Proxy]",T="[object RegExp]",A="[object Set]",j="[object String]",ae="[object Symbol]",_="[object Undefined]",N="[object WeakMap]",W="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",fe="[object Float64Array]",ve="[object Int8Array]",ce="[object Int16Array]",oe="[object Int32Array]",re="[object Uint8Array]",H="[object Uint8ClampedArray]",V="[object Uint16Array]",Q="[object Uint32Array]",Te=/[\\^$.*+?()[\]{}|]/g,Re=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,pe={};pe[me]=pe[fe]=pe[ve]=pe[ce]=pe[oe]=pe[re]=pe[H]=pe[V]=pe[Q]=!0,pe[f]=pe[p]=pe[W]=pe[h]=pe[he]=pe[d]=pe[b]=pe[y]=pe[S]=pe[O]=pe[M]=pe[T]=pe[A]=pe[j]=pe[N]=!1;var ye=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,Se=typeof self=="object"&&self&&self.Object===Object&&self,Ae=ye||Se||Function("return this")(),Ee=g&&!g.nodeType&&g,xe=Ee&&!0&&J&&!J.nodeType&&J,nt=xe&&xe.exports===Ee,Tt=nt&&ye.process,pt=function(){try{return Tt&&Tt.binding&&Tt.binding("util")}catch{}}(),Rt=pt&&pt.isTypedArray;function tt(vi,to){for(var $o=-1,ja=vi==null?0:vi.length,hs=0,ro=[];++$o<ja;){var as=vi[$o];to(as,$o,vi)&&(ro[hs++]=as)}return ro}function U(vi,to){for(var $o=-1,ja=to.length,hs=vi.length;++$o<ja;)vi[hs+$o]=to[$o];return vi}function F(vi,to){for(var $o=-1,ja=vi==null?0:vi.length;++$o<ja;)if(to(vi[$o],$o,vi))return!0;return!1}function Y(vi,to){for(var $o=-1,ja=Array(vi);++$o<vi;)ja[$o]=to($o);return ja}function le(vi){return function(to){return vi(to)}}function ke(vi,to){return vi.has(to)}function Ye(vi,to){return vi?.[to]}function ft(vi){var to=-1,$o=Array(vi.size);return vi.forEach(function(ja,hs){$o[++to]=[hs,ja]}),$o}function wt(vi,to){return function($o){return vi(to($o))}}function Ut(vi){var to=-1,$o=Array(vi.size);return vi.forEach(function(ja){$o[++to]=ja}),$o}var Ke=Array.prototype,it=Function.prototype,At=Object.prototype,et=Ae["__core-js_shared__"],ee=it.toString,I=At.hasOwnProperty,K=function(){var vi=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return vi?"Symbol(src)_1."+vi:""}(),ue=At.toString,De=RegExp("^"+ee.call(I).replace(Te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=nt?Ae.Buffer:void 0,Fe=Ae.Symbol,ze=Ae.Uint8Array,qe=At.propertyIsEnumerable,We=Ke.splice,_t=Fe?Fe.toStringTag:void 0,ct=Object.getOwnPropertySymbols,Ge=He?He.isBuffer:void 0,st=wt(Object.keys,Object),Me=mt(Ae,"DataView"),ie=mt(Ae,"Map"),ge=mt(Ae,"Promise"),z=mt(Ae,"Set"),be=mt(Ae,"WeakMap"),Qe=mt(Object,"create"),Bt=gi(Me),nn=gi(ie),bt=gi(ge),at=gi(z),$t=gi(be),On=Fe?Fe.prototype:void 0,Ct=On?On.valueOf:void 0;function Zt(vi){var to=-1,$o=vi==null?0:vi.length;for(this.clear();++to<$o;){var ja=vi[to];this.set(ja[0],ja[1])}}function Wn(){this.__data__=Qe?Qe(null):{},this.size=0}function Zn(vi){var to=this.has(vi)&&delete this.__data__[vi];return this.size-=to?1:0,to}function xt(vi){var to=this.__data__;if(Qe){var $o=to[vi];return $o===l?void 0:$o}return I.call(to,vi)?to[vi]:void 0}function Xe(vi){var to=this.__data__;return Qe?to[vi]!==void 0:I.call(to,vi)}function gn(vi,to){var $o=this.__data__;return this.size+=this.has(vi)?0:1,$o[vi]=Qe&&to===void 0?l:to,this}Zt.prototype.clear=Wn,Zt.prototype.delete=Zn,Zt.prototype.get=xt,Zt.prototype.has=Xe,Zt.prototype.set=gn;function Qt(vi){var to=-1,$o=vi==null?0:vi.length;for(this.clear();++to<$o;){var ja=vi[to];this.set(ja[0],ja[1])}}function Dt(){this.__data__=[],this.size=0}function hn(vi){var to=this.__data__,$o=Pi(to,vi);if($o<0)return!1;var ja=to.length-1;return $o==ja?to.pop():We.call(to,$o,1),--this.size,!0}function cn(vi){var to=this.__data__,$o=Pi(to,vi);return $o<0?void 0:to[$o][1]}function an(vi){return Pi(this.__data__,vi)>-1}function Or(vi,to){var $o=this.__data__,ja=Pi($o,vi);return ja<0?(++this.size,$o.push([vi,to])):$o[ja][1]=to,this}Qt.prototype.clear=Dt,Qt.prototype.delete=hn,Qt.prototype.get=cn,Qt.prototype.has=an,Qt.prototype.set=Or;function Ln(vi){var to=-1,$o=vi==null?0:vi.length;for(this.clear();++to<$o;){var ja=vi[to];this.set(ja[0],ja[1])}}function En(){this.size=0,this.__data__={hash:new Zt,map:new(ie||Qt),string:new Zt}}function Gn(vi){var to=ir(this,vi).delete(vi);return this.size-=to?1:0,to}function rr(vi){return ir(this,vi).get(vi)}function sr(vi){return ir(this,vi).has(vi)}function pi(vi,to){var $o=ir(this,vi),ja=$o.size;return $o.set(vi,to),this.size+=$o.size==ja?0:1,this}Ln.prototype.clear=En,Ln.prototype.delete=Gn,Ln.prototype.get=rr,Ln.prototype.has=sr,Ln.prototype.set=pi;function yi(vi){var to=-1,$o=vi==null?0:vi.length;for(this.__data__=new Ln;++to<$o;)this.add(vi[to])}function jr(vi){return this.__data__.set(vi,l),this}function ui(vi){return this.__data__.has(vi)}yi.prototype.add=yi.prototype.push=jr,yi.prototype.has=ui;function bi(vi){var to=this.__data__=new Qt(vi);this.size=to.size}function ri(){this.__data__=new Qt,this.size=0}function hi(vi){var to=this.__data__,$o=to.delete(vi);return this.size=to.size,$o}function Si(vi){return this.__data__.get(vi)}function Kr(vi){return this.__data__.has(vi)}function xi(vi,to){var $o=this.__data__;if($o instanceof Qt){var ja=$o.__data__;if(!ie||ja.length<i-1)return ja.push([vi,to]),this.size=++$o.size,this;$o=this.__data__=new Ln(ja)}return $o.set(vi,to),this.size=$o.size,this}bi.prototype.clear=ri,bi.prototype.delete=hi,bi.prototype.get=Si,bi.prototype.has=Kr,bi.prototype.set=xi;function Ai(vi,to){var $o=ki(vi),ja=!$o&&eo(vi),hs=!$o&&!ja&&Ho(vi),ro=!$o&&!ja&&!hs&&Ro(vi),as=$o||ja||hs||ro,rn=as?Y(vi.length,String):[],Dr=rn.length;for(var Lr in vi)(to||I.call(vi,Lr))&&!(as&&(Lr=="length"||hs&&(Lr=="offset"||Lr=="parent")||ro&&(Lr=="buffer"||Lr=="byteLength"||Lr=="byteOffset")||Vn(Lr,Dr)))&&rn.push(Lr);return rn}function Pi(vi,to){for(var $o=vi.length;$o--;)if($i(vi[$o][0],to))return $o;return-1}function io(vi,to,$o){var ja=to(vi);return ki(vi)?ja:U(ja,$o(vi))}function lo(vi){return vi==null?vi===void 0?_:R:_t&&_t in Object(vi)?fn(vi):zr(vi)}function Gr(vi){return Vi(vi)&&lo(vi)==f}function un(vi,to,$o,ja,hs){return vi===to?!0:vi==null||to==null||!Vi(vi)&&!Vi(to)?vi!==vi&&to!==to:qn(vi,to,$o,ja,un,hs)}function qn(vi,to,$o,ja,hs,ro){var as=ki(vi),rn=ki(to),Dr=as?p:tn(vi),Lr=rn?p:tn(to);Dr=Dr==f?M:Dr,Lr=Lr==f?M:Lr;var li=Dr==M,Zi=Lr==M,Di=Dr==Lr;if(Di&&Ho(vi)){if(!Ho(to))return!1;as=!0,li=!1}if(Di&&!li)return ro||(ro=new bi),as||Ro(vi)?An(vi,to,$o,ja,hs,ro):Cr(vi,to,Dr,$o,ja,hs,ro);if(!($o&s)){var wo=li&&I.call(vi,"__wrapped__"),Go=Zi&&I.call(to,"__wrapped__");if(wo||Go){var Ko=wo?vi.value():vi,Ie=Go?to.value():to;return ro||(ro=new bi),hs(Ko,Ie,$o,ja,ro)}}return Di?(ro||(ro=new bi),_i(vi,to,$o,ja,hs,ro)):!1}function kn(vi){if(!di(vi)||$r(vi))return!1;var to=So(vi)?De:Re;return to.test(gi(vi))}function St(vi){return Vi(vi)&&gr(vi.length)&&!!pe[lo(vi)]}function ln(vi){if(!Pr(vi))return st(vi);var to=[];for(var $o in Object(vi))I.call(vi,$o)&&$o!="constructor"&&to.push($o);return to}function An(vi,to,$o,ja,hs,ro){var as=$o&s,rn=vi.length,Dr=to.length;if(rn!=Dr&&!(as&&Dr>rn))return!1;var Lr=ro.get(vi);if(Lr&&ro.get(to))return Lr==to;var li=-1,Zi=!0,Di=$o&m?new yi:void 0;for(ro.set(vi,to),ro.set(to,vi);++li<rn;){var wo=vi[li],Go=to[li];if(ja)var Ko=as?ja(Go,wo,li,to,vi,ro):ja(wo,Go,li,vi,to,ro);if(Ko!==void 0){if(Ko)continue;Zi=!1;break}if(Di){if(!F(to,function(Ie,yt){if(!ke(Di,yt)&&(wo===Ie||hs(wo,Ie,$o,ja,ro)))return Di.push(yt)})){Zi=!1;break}}else if(!(wo===Go||hs(wo,Go,$o,ja,ro))){Zi=!1;break}}return ro.delete(vi),ro.delete(to),Zi}function Cr(vi,to,$o,ja,hs,ro,as){switch($o){case he:if(vi.byteLength!=to.byteLength||vi.byteOffset!=to.byteOffset)return!1;vi=vi.buffer,to=to.buffer;case W:return!(vi.byteLength!=to.byteLength||!ro(new ze(vi),new ze(to)));case h:case d:case O:return $i(+vi,+to);case b:return vi.name==to.name&&vi.message==to.message;case T:case j:return vi==to+"";case S:var rn=ft;case A:var Dr=ja&s;if(rn||(rn=Ut),vi.size!=to.size&&!Dr)return!1;var Lr=as.get(vi);if(Lr)return Lr==to;ja|=m,as.set(vi,to);var li=An(rn(vi),rn(to),ja,hs,ro,as);return as.delete(vi),li;case ae:if(Ct)return Ct.call(vi)==Ct.call(to)}return!1}function _i(vi,to,$o,ja,hs,ro){var as=$o&s,rn=Sn(vi),Dr=rn.length,Lr=Sn(to),li=Lr.length;if(Dr!=li&&!as)return!1;for(var Zi=Dr;Zi--;){var Di=rn[Zi];if(!(as?Di in to:I.call(to,Di)))return!1}var wo=ro.get(vi);if(wo&&ro.get(to))return wo==to;var Go=!0;ro.set(vi,to),ro.set(to,vi);for(var Ko=as;++Zi<Dr;){Di=rn[Zi];var Ie=vi[Di],yt=to[Di];if(ja)var on=as?ja(yt,Ie,Di,to,vi,ro):ja(Ie,yt,Di,vi,to,ro);if(!(on===void 0?Ie===yt||hs(Ie,yt,$o,ja,ro):on)){Go=!1;break}Ko||(Ko=Di=="constructor")}if(Go&&!Ko){var _n=vi.constructor,er=to.constructor;_n!=er&&"constructor"in vi&&"constructor"in to&&!(typeof _n=="function"&&_n instanceof _n&&typeof er=="function"&&er instanceof er)&&(Go=!1)}return ro.delete(vi),ro.delete(to),Go}function Sn(vi){return io(vi,na,gt)}function ir(vi,to){var $o=vi.__data__;return Ur(to)?$o[typeof to=="string"?"string":"hash"]:$o.map}function mt(vi,to){var $o=Ye(vi,to);return kn($o)?$o:void 0}function fn(vi){var to=I.call(vi,_t),$o=vi[_t];try{vi[_t]=void 0;var ja=!0}catch{}var hs=ue.call(vi);return ja&&(to?vi[_t]=$o:delete vi[_t]),hs}var gt=ct?function(vi){return vi==null?[]:(vi=Object(vi),tt(ct(vi),function(to){return qe.call(vi,to)}))}:ta,tn=lo;(Me&&tn(new Me(new ArrayBuffer(1)))!=he||ie&&tn(new ie)!=S||ge&&tn(ge.resolve())!=D||z&&tn(new z)!=A||be&&tn(new be)!=N)&&(tn=function(vi){var to=lo(vi),$o=to==M?vi.constructor:void 0,ja=$o?gi($o):"";if(ja)switch(ja){case Bt:return he;case nn:return S;case bt:return D;case at:return A;case $t:return N}return to});function Vn(vi,to){return to=to??u,!!to&&(typeof vi=="number"||ne.test(vi))&&vi>-1&&vi%1==0&&vi<to}function Ur(vi){var to=typeof vi;return to=="string"||to=="number"||to=="symbol"||to=="boolean"?vi!=="__proto__":vi===null}function $r(vi){return!!K&&K in vi}function Pr(vi){var to=vi&&vi.constructor,$o=typeof to=="function"&&to.prototype||At;return vi===$o}function zr(vi){return ue.call(vi)}function gi(vi){if(vi!=null){try{return ee.call(vi)}catch{}try{return vi+""}catch{}}return""}function $i(vi,to){return vi===to||vi!==vi&&to!==to}var eo=Gr(function(){return arguments}())?Gr:function(vi){return Vi(vi)&&I.call(vi,"callee")&&!qe.call(vi,"callee")},ki=Array.isArray;function so(vi){return vi!=null&&gr(vi.length)&&!So(vi)}var Ho=Ge||aa;function ra(vi,to){return un(vi,to)}function So(vi){if(!di(vi))return!1;var to=lo(vi);return to==y||to==w||to==v||to==P}function gr(vi){return typeof vi=="number"&&vi>-1&&vi%1==0&&vi<=u}function di(vi){var to=typeof vi;return vi!=null&&(to=="object"||to=="function")}function Vi(vi){return vi!=null&&typeof vi=="object"}var Ro=Rt?le(Rt):St;function na(vi){return so(vi)?Ai(vi):ln(vi)}function ta(){return[]}function aa(){return!1}J.exports=ra},47654:(J,g,t)=>{var i="Expected a function",l="__lodash_hash_undefined__",s="[object Function]",m="[object GeneratorFunction]",u=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,p=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,v=typeof self=="object"&&self&&self.Object===Object&&self,h=p||v||Function("return this")();function d(Y,le){return Y?.[le]}function b(Y){var le=!1;if(Y!=null&&typeof Y.toString!="function")try{le=!!(Y+"")}catch{}return le}var y=Array.prototype,w=Function.prototype,S=Object.prototype,O=h["__core-js_shared__"],R=function(){var Y=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return Y?"Symbol(src)_1."+Y:""}(),M=w.toString,D=S.hasOwnProperty,P=S.toString,T=RegExp("^"+M.call(D).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=y.splice,j=xe(h,"Map"),ae=xe(Object,"create");function _(Y){var le=-1,ke=Y?Y.length:0;for(this.clear();++le<ke;){var Ye=Y[le];this.set(Ye[0],Ye[1])}}function N(){this.__data__=ae?ae(null):{}}function W(Y){return this.has(Y)&&delete this.__data__[Y]}function he(Y){var le=this.__data__;if(ae){var ke=le[Y];return ke===l?void 0:ke}return D.call(le,Y)?le[Y]:void 0}function me(Y){var le=this.__data__;return ae?le[Y]!==void 0:D.call(le,Y)}function fe(Y,le){var ke=this.__data__;return ke[Y]=ae&&le===void 0?l:le,this}_.prototype.clear=N,_.prototype.delete=W,_.prototype.get=he,_.prototype.has=me,_.prototype.set=fe;function ve(Y){var le=-1,ke=Y?Y.length:0;for(this.clear();++le<ke;){var Ye=Y[le];this.set(Ye[0],Ye[1])}}function ce(){this.__data__=[]}function oe(Y){var le=this.__data__,ke=Se(le,Y);if(ke<0)return!1;var Ye=le.length-1;return ke==Ye?le.pop():A.call(le,ke,1),!0}function re(Y){var le=this.__data__,ke=Se(le,Y);return ke<0?void 0:le[ke][1]}function H(Y){return Se(this.__data__,Y)>-1}function V(Y,le){var ke=this.__data__,Ye=Se(ke,Y);return Ye<0?ke.push([Y,le]):ke[Ye][1]=le,this}ve.prototype.clear=ce,ve.prototype.delete=oe,ve.prototype.get=re,ve.prototype.has=H,ve.prototype.set=V;function Q(Y){var le=-1,ke=Y?Y.length:0;for(this.clear();++le<ke;){var Ye=Y[le];this.set(Ye[0],Ye[1])}}function Te(){this.__data__={hash:new _,map:new(j||ve),string:new _}}function Re(Y){return Ee(this,Y).delete(Y)}function ne(Y){return Ee(this,Y).get(Y)}function pe(Y){return Ee(this,Y).has(Y)}function ye(Y,le){return Ee(this,Y).set(Y,le),this}Q.prototype.clear=Te,Q.prototype.delete=Re,Q.prototype.get=ne,Q.prototype.has=pe,Q.prototype.set=ye;function Se(Y,le){for(var ke=Y.length;ke--;)if(tt(Y[ke][0],le))return ke;return-1}function Ae(Y){if(!F(Y)||Tt(Y))return!1;var le=U(Y)||b(Y)?T:f;return le.test(pt(Y))}function Ee(Y,le){var ke=Y.__data__;return nt(le)?ke[typeof le=="string"?"string":"hash"]:ke.map}function xe(Y,le){var ke=d(Y,le);return Ae(ke)?ke:void 0}function nt(Y){var le=typeof Y;return le=="string"||le=="number"||le=="symbol"||le=="boolean"?Y!=="__proto__":Y===null}function Tt(Y){return!!R&&R in Y}function pt(Y){if(Y!=null){try{return M.call(Y)}catch{}try{return Y+""}catch{}}return""}function Rt(Y,le){if(typeof Y!="function"||le&&typeof le!="function")throw new TypeError(i);var ke=function(){var Ye=arguments,ft=le?le.apply(this,Ye):Ye[0],wt=ke.cache;if(wt.has(ft))return wt.get(ft);var Ut=Y.apply(this,Ye);return ke.cache=wt.set(ft,Ut),Ut};return ke.cache=new(Rt.Cache||Q),ke}Rt.Cache=Q;function tt(Y,le){return Y===le||Y!==Y&&le!==le}function U(Y){var le=F(Y)?P.call(Y):"";return le==s||le==m}function F(Y){var le=typeof Y;return!!Y&&(le=="object"||le=="function")}J.exports=Rt},55580:(J,g,t)=>{var i=t(56110),l=t(9325),s=i(l,"DataView");J.exports=s},21549:(J,g,t)=>{var i=t(22032),l=t(63862),s=t(66721),m=t(12749),u=t(35749);function f(p){var v=-1,h=p==null?0:p.length;for(this.clear();++v<h;){var d=p[v];this.set(d[0],d[1])}}f.prototype.clear=i,f.prototype.delete=l,f.prototype.get=s,f.prototype.has=m,f.prototype.set=u,J.exports=f},80079:(J,g,t)=>{var i=t(63702),l=t(70080),s=t(24739),m=t(48655),u=t(31175);function f(p){var v=-1,h=p==null?0:p.length;for(this.clear();++v<h;){var d=p[v];this.set(d[0],d[1])}}f.prototype.clear=i,f.prototype.delete=l,f.prototype.get=s,f.prototype.has=m,f.prototype.set=u,J.exports=f},68223:(J,g,t)=>{var i=t(56110),l=t(9325),s=i(l,"Map");J.exports=s},53661:(J,g,t)=>{var i=t(63040),l=t(17670),s=t(90289),m=t(4509),u=t(72949);function f(p){var v=-1,h=p==null?0:p.length;for(this.clear();++v<h;){var d=p[v];this.set(d[0],d[1])}}f.prototype.clear=i,f.prototype.delete=l,f.prototype.get=s,f.prototype.has=m,f.prototype.set=u,J.exports=f},32804:(J,g,t)=>{var i=t(56110),l=t(9325),s=i(l,"Promise");J.exports=s},76545:(J,g,t)=>{var i=t(56110),l=t(9325),s=i(l,"Set");J.exports=s},38859:(J,g,t)=>{var i=t(53661),l=t(31380),s=t(51459);function m(u){var f=-1,p=u==null?0:u.length;for(this.__data__=new i;++f<p;)this.add(u[f])}m.prototype.add=m.prototype.push=l,m.prototype.has=s,J.exports=m},37217:(J,g,t)=>{var i=t(80079),l=t(51420),s=t(90938),m=t(63605),u=t(29817),f=t(80945);function p(v){var h=this.__data__=new i(v);this.size=h.size}p.prototype.clear=l,p.prototype.delete=s,p.prototype.get=m,p.prototype.has=u,p.prototype.set=f,J.exports=p},51873:(J,g,t)=>{var i=t(9325),l=i.Symbol;J.exports=l},37828:(J,g,t)=>{var i=t(9325),l=i.Uint8Array;J.exports=l},28303:(J,g,t)=>{var i=t(56110),l=t(9325),s=i(l,"WeakMap");J.exports=s},91033:J=>{function g(t,i,l){switch(l.length){case 0:return t.call(i);case 1:return t.call(i,l[0]);case 2:return t.call(i,l[0],l[1]);case 3:return t.call(i,l[0],l[1],l[2])}return t.apply(i,l)}J.exports=g},63945:J=>{function g(t,i,l,s){for(var m=-1,u=t==null?0:t.length;++m<u;){var f=t[m];i(s,f,l(f),t)}return s}J.exports=g},83729:J=>{function g(t,i){for(var l=-1,s=t==null?0:t.length;++l<s&&i(t[l],l,t)!==!1;);return t}J.exports=g},79770:J=>{function g(t,i){for(var l=-1,s=t==null?0:t.length,m=0,u=[];++l<s;){var f=t[l];i(f,l,t)&&(u[m++]=f)}return u}J.exports=g},15325:(J,g,t)=>{var i=t(96131);function l(s,m){var u=s==null?0:s.length;return!!u&&i(s,m,0)>-1}J.exports=l},29905:J=>{function g(t,i,l){for(var s=-1,m=t==null?0:t.length;++s<m;)if(l(i,t[s]))return!0;return!1}J.exports=g},70695:(J,g,t)=>{var i=t(78096),l=t(72428),s=t(56449),m=t(3656),u=t(30361),f=t(37167),p=Object.prototype,v=p.hasOwnProperty;function h(d,b){var y=s(d),w=!y&&l(d),S=!y&&!w&&m(d),O=!y&&!w&&!S&&f(d),R=y||w||S||O,M=R?i(d.length,String):[],D=M.length;for(var P in d)(b||v.call(d,P))&&!(R&&(P=="length"||S&&(P=="offset"||P=="parent")||O&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||u(P,D)))&&M.push(P);return M}J.exports=h},34932:J=>{function g(t,i){for(var l=-1,s=t==null?0:t.length,m=Array(s);++l<s;)m[l]=i(t[l],l,t);return m}J.exports=g},14528:J=>{function g(t,i){for(var l=-1,s=i.length,m=t.length;++l<s;)t[m+l]=i[l];return t}J.exports=g},14248:J=>{function g(t,i){for(var l=-1,s=t==null?0:t.length;++l<s;)if(i(t[l],l,t))return!0;return!1}J.exports=g},16547:(J,g,t)=>{var i=t(43360),l=t(75288),s=Object.prototype,m=s.hasOwnProperty;function u(f,p,v){var h=f[p];(!(m.call(f,p)&&l(h,v))||v===void 0&&!(p in f))&&i(f,p,v)}J.exports=u},26025:(J,g,t)=>{var i=t(75288);function l(s,m){for(var u=s.length;u--;)if(i(s[u][0],m))return u;return-1}J.exports=l},62429:(J,g,t)=>{var i=t(80909);function l(s,m,u,f){return i(s,function(p,v,h){m(f,p,u(p),h)}),f}J.exports=l},74733:(J,g,t)=>{var i=t(21791),l=t(73569);function s(m,u){return m&&i(u,l(u),m)}J.exports=s},43838:(J,g,t)=>{var i=t(21791),l=t(37241);function s(m,u){return m&&i(u,l(u),m)}J.exports=s},43360:(J,g,t)=>{var i=t(93243);function l(s,m,u){m=="__proto__"&&i?i(s,m,{configurable:!0,enumerable:!0,value:u,writable:!0}):s[m]=u}J.exports=l},87133:J=>{function g(t,i,l){return t===t&&(l!==void 0&&(t=t<=l?t:l),i!==void 0&&(t=t>=i?t:i)),t}J.exports=g},9999:(J,g,t)=>{var i=t(37217),l=t(83729),s=t(16547),m=t(74733),u=t(43838),f=t(93290),p=t(23007),v=t(92271),h=t(48948),d=t(50002),b=t(83349),y=t(5861),w=t(76189),S=t(77199),O=t(35529),R=t(56449),M=t(3656),D=t(87730),P=t(23805),T=t(38440),A=t(73569),j=t(37241),ae=1,_=2,N=4,W="[object Arguments]",he="[object Array]",me="[object Boolean]",fe="[object Date]",ve="[object Error]",ce="[object Function]",oe="[object GeneratorFunction]",re="[object Map]",H="[object Number]",V="[object Object]",Q="[object RegExp]",Te="[object Set]",Re="[object String]",ne="[object Symbol]",pe="[object WeakMap]",ye="[object ArrayBuffer]",Se="[object DataView]",Ae="[object Float32Array]",Ee="[object Float64Array]",xe="[object Int8Array]",nt="[object Int16Array]",Tt="[object Int32Array]",pt="[object Uint8Array]",Rt="[object Uint8ClampedArray]",tt="[object Uint16Array]",U="[object Uint32Array]",F={};F[W]=F[he]=F[ye]=F[Se]=F[me]=F[fe]=F[Ae]=F[Ee]=F[xe]=F[nt]=F[Tt]=F[re]=F[H]=F[V]=F[Q]=F[Te]=F[Re]=F[ne]=F[pt]=F[Rt]=F[tt]=F[U]=!0,F[ve]=F[ce]=F[pe]=!1;function Y(le,ke,Ye,ft,wt,Ut){var Ke,it=ke&ae,At=ke&_,et=ke&N;if(Ye&&(Ke=wt?Ye(le,ft,wt,Ut):Ye(le)),Ke!==void 0)return Ke;if(!P(le))return le;var ee=R(le);if(ee){if(Ke=w(le),!it)return p(le,Ke)}else{var I=y(le),K=I==ce||I==oe;if(M(le))return f(le,it);if(I==V||I==W||K&&!wt){if(Ke=At||K?{}:O(le),!it)return At?h(le,u(Ke,le)):v(le,m(Ke,le))}else{if(!F[I])return wt?le:{};Ke=S(le,I,it)}}Ut||(Ut=new i);var ue=Ut.get(le);if(ue)return ue;Ut.set(le,Ke),T(le)?le.forEach(function(Fe){Ke.add(Y(Fe,ke,Ye,Fe,le,Ut))}):D(le)&&le.forEach(function(Fe,ze){Ke.set(ze,Y(Fe,ke,Ye,ze,le,Ut))});var De=et?At?b:d:At?j:A,He=ee?void 0:De(le);return l(He||le,function(Fe,ze){He&&(ze=Fe,Fe=le[ze]),s(Ke,ze,Y(Fe,ke,Ye,ze,le,Ut))}),Ke}J.exports=Y},39344:(J,g,t)=>{var i=t(23805),l=Object.create,s=function(){function m(){}return function(u){if(!i(u))return{};if(l)return l(u);m.prototype=u;var f=new m;return m.prototype=void 0,f}}();J.exports=s},80909:(J,g,t)=>{var i=t(30641),l=t(38329),s=l(i);J.exports=s},2523:J=>{function g(t,i,l,s){for(var m=t.length,u=l+(s?1:-1);s?u--:++u<m;)if(i(t[u],u,t))return u;return-1}J.exports=g},83120:(J,g,t)=>{var i=t(14528),l=t(45891);function s(m,u,f,p,v){var h=-1,d=m.length;for(f||(f=l),v||(v=[]);++h<d;){var b=m[h];u>0&&f(b)?u>1?s(b,u-1,f,p,v):i(v,b):p||(v[v.length]=b)}return v}J.exports=s},86649:(J,g,t)=>{var i=t(83221),l=i();J.exports=l},30641:(J,g,t)=>{var i=t(86649),l=t(73569);function s(m,u){return m&&i(m,u,l)}J.exports=s},47422:(J,g,t)=>{var i=t(31769),l=t(77797);function s(m,u){u=i(u,m);for(var f=0,p=u.length;m!=null&&f<p;)m=m[l(u[f++])];return f&&f==p?m:void 0}J.exports=s},82199:(J,g,t)=>{var i=t(14528),l=t(56449);function s(m,u,f){var p=u(m);return l(m)?p:i(p,f(m))}J.exports=s},72552:(J,g,t)=>{var i=t(51873),l=t(659),s=t(59350),m="[object Null]",u="[object Undefined]",f=i?i.toStringTag:void 0;function p(v){return v==null?v===void 0?u:m:f&&f in Object(v)?l(v):s(v)}J.exports=p},20426:J=>{var g=Object.prototype,t=g.hasOwnProperty;function i(l,s){return l!=null&&t.call(l,s)}J.exports=i},28077:J=>{function g(t,i){return t!=null&&i in Object(t)}J.exports=g},96131:(J,g,t)=>{var i=t(2523),l=t(85463),s=t(76959);function m(u,f,p){return f===f?s(u,f,p):i(u,l,p)}J.exports=m},27534:(J,g,t)=>{var i=t(72552),l=t(40346),s="[object Arguments]";function m(u){return l(u)&&i(u)==s}J.exports=m},60270:(J,g,t)=>{var i=t(87068),l=t(40346);function s(m,u,f,p,v){return m===u?!0:m==null||u==null||!l(m)&&!l(u)?m!==m&&u!==u:i(m,u,f,p,s,v)}J.exports=s},87068:(J,g,t)=>{var i=t(37217),l=t(25911),s=t(21986),m=t(50689),u=t(5861),f=t(56449),p=t(3656),v=t(37167),h=1,d="[object Arguments]",b="[object Array]",y="[object Object]",w=Object.prototype,S=w.hasOwnProperty;function O(R,M,D,P,T,A){var j=f(R),ae=f(M),_=j?b:u(R),N=ae?b:u(M);_=_==d?y:_,N=N==d?y:N;var W=_==y,he=N==y,me=_==N;if(me&&p(R)){if(!p(M))return!1;j=!0,W=!1}if(me&&!W)return A||(A=new i),j||v(R)?l(R,M,D,P,T,A):s(R,M,_,D,P,T,A);if(!(D&h)){var fe=W&&S.call(R,"__wrapped__"),ve=he&&S.call(M,"__wrapped__");if(fe||ve){var ce=fe?R.value():R,oe=ve?M.value():M;return A||(A=new i),T(ce,oe,D,P,A)}}return me?(A||(A=new i),m(R,M,D,P,T,A)):!1}J.exports=O},29172:(J,g,t)=>{var i=t(5861),l=t(40346),s="[object Map]";function m(u){return l(u)&&i(u)==s}J.exports=m},41799:(J,g,t)=>{var i=t(37217),l=t(60270),s=1,m=2;function u(f,p,v,h){var d=v.length,b=d,y=!h;if(f==null)return!b;for(f=Object(f);d--;){var w=v[d];if(y&&w[2]?w[1]!==f[w[0]]:!(w[0]in f))return!1}for(;++d<b;){w=v[d];var S=w[0],O=f[S],R=w[1];if(y&&w[2]){if(O===void 0&&!(S in f))return!1}else{var M=new i;if(h)var D=h(O,R,S,f,p,M);if(!(D===void 0?l(R,O,s|m,h,M):D))return!1}}return!0}J.exports=u},85463:J=>{function g(t){return t!==t}J.exports=g},45083:(J,g,t)=>{var i=t(1882),l=t(87296),s=t(23805),m=t(47473),u=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,p=Function.prototype,v=Object.prototype,h=p.toString,d=v.hasOwnProperty,b=RegExp("^"+h.call(d).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(w){if(!s(w)||l(w))return!1;var S=i(w)?b:f;return S.test(m(w))}J.exports=y},16038:(J,g,t)=>{var i=t(5861),l=t(40346),s="[object Set]";function m(u){return l(u)&&i(u)==s}J.exports=m},4901:(J,g,t)=>{var i=t(72552),l=t(30294),s=t(40346),m="[object Arguments]",u="[object Array]",f="[object Boolean]",p="[object Date]",v="[object Error]",h="[object Function]",d="[object Map]",b="[object Number]",y="[object Object]",w="[object RegExp]",S="[object Set]",O="[object String]",R="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",P="[object Float32Array]",T="[object Float64Array]",A="[object Int8Array]",j="[object Int16Array]",ae="[object Int32Array]",_="[object Uint8Array]",N="[object Uint8ClampedArray]",W="[object Uint16Array]",he="[object Uint32Array]",me={};me[P]=me[T]=me[A]=me[j]=me[ae]=me[_]=me[N]=me[W]=me[he]=!0,me[m]=me[u]=me[M]=me[f]=me[D]=me[p]=me[v]=me[h]=me[d]=me[b]=me[y]=me[w]=me[S]=me[O]=me[R]=!1;function fe(ve){return s(ve)&&l(ve.length)&&!!me[i(ve)]}J.exports=fe},15389:(J,g,t)=>{var i=t(93663),l=t(65597),s=t(83488),m=t(56449),u=t(50583);function f(p){return typeof p=="function"?p:p==null?s:typeof p=="object"?m(p)?l(p[0],p[1]):i(p):u(p)}J.exports=f},88984:(J,g,t)=>{var i=t(55527),l=t(3650),s=Object.prototype,m=s.hasOwnProperty;function u(f){if(!i(f))return l(f);var p=[];for(var v in Object(f))m.call(f,v)&&v!="constructor"&&p.push(v);return p}J.exports=u},72903:(J,g,t)=>{var i=t(23805),l=t(55527),s=t(90181),m=Object.prototype,u=m.hasOwnProperty;function f(p){if(!i(p))return s(p);var v=l(p),h=[];for(var d in p)d=="constructor"&&(v||!u.call(p,d))||h.push(d);return h}J.exports=f},93663:(J,g,t)=>{var i=t(41799),l=t(10776),s=t(67197);function m(u){var f=l(u);return f.length==1&&f[0][2]?s(f[0][0],f[0][1]):function(p){return p===u||i(p,u,f)}}J.exports=m},65597:(J,g,t)=>{var i=t(60270),l=t(58156),s=t(80631),m=t(28586),u=t(30756),f=t(67197),p=t(77797),v=1,h=2;function d(b,y){return m(b)&&u(y)?f(p(b),y):function(w){var S=l(w,b);return S===void 0&&S===y?s(w,b):i(y,S,v|h)}}J.exports=d},76001:(J,g,t)=>{var i=t(97420),l=t(80631);function s(m,u){return i(m,u,function(f,p){return l(m,p)})}J.exports=s},97420:(J,g,t)=>{var i=t(47422),l=t(73170),s=t(31769);function m(u,f,p){for(var v=-1,h=f.length,d={};++v<h;){var b=f[v],y=i(u,b);p(y,b)&&l(d,s(b,u),y)}return d}J.exports=m},47237:J=>{function g(t){return function(i){return i?.[t]}}J.exports=g},17255:(J,g,t)=>{var i=t(47422);function l(s){return function(m){return i(m,s)}}J.exports=l},86151:J=>{var g=Math.ceil,t=Math.max;function i(l,s,m,u){for(var f=-1,p=t(g((s-l)/(m||1)),0),v=Array(p);p--;)v[u?p:++f]=l,l+=m;return v}J.exports=i},73170:(J,g,t)=>{var i=t(16547),l=t(31769),s=t(30361),m=t(23805),u=t(77797);function f(p,v,h,d){if(!m(p))return p;v=l(v,p);for(var b=-1,y=v.length,w=y-1,S=p;S!=null&&++b<y;){var O=u(v[b]),R=h;if(O==="__proto__"||O==="constructor"||O==="prototype")return p;if(b!=w){var M=S[O];R=d?d(M,O,S):void 0,R===void 0&&(R=m(M)?M:s(v[b+1])?[]:{})}i(S,O,R),S=S[O]}return p}J.exports=f},19570:(J,g,t)=>{var i=t(37334),l=t(93243),s=t(83488),m=l?function(u,f){return l(u,"toString",{configurable:!0,enumerable:!1,value:i(f),writable:!0})}:s;J.exports=m},25160:J=>{function g(t,i,l){var s=-1,m=t.length;i<0&&(i=-i>m?0:m+i),l=l>m?m:l,l<0&&(l+=m),m=i>l?0:l-i>>>0,i>>>=0;for(var u=Array(m);++s<m;)u[s]=t[s+i];return u}J.exports=g},78096:J=>{function g(t,i){for(var l=-1,s=Array(t);++l<t;)s[l]=i(l);return s}J.exports=g},77556:(J,g,t)=>{var i=t(51873),l=t(34932),s=t(56449),m=t(44394),u=1/0,f=i?i.prototype:void 0,p=f?f.toString:void 0;function v(h){if(typeof h=="string")return h;if(s(h))return l(h,v)+"";if(m(h))return p?p.call(h):"";var d=h+"";return d=="0"&&1/h==-u?"-0":d}J.exports=v},54128:(J,g,t)=>{var i=t(31800),l=/^\s+/;function s(m){return m&&m.slice(0,i(m)+1).replace(l,"")}J.exports=s},27301:J=>{function g(t){return function(i){return t(i)}}J.exports=g},55765:(J,g,t)=>{var i=t(38859),l=t(15325),s=t(29905),m=t(19219),u=t(44517),f=t(84247),p=200;function v(h,d,b){var y=-1,w=l,S=h.length,O=!0,R=[],M=R;if(b)O=!1,w=s;else if(S>=p){var D=d?null:u(h);if(D)return f(D);O=!1,w=m,M=new i}else M=d?[]:R;e:for(;++y<S;){var P=h[y],T=d?d(P):P;if(P=b||P!==0?P:0,O&&T===T){for(var A=M.length;A--;)if(M[A]===T)continue e;d&&M.push(T),R.push(P)}else w(M,T,b)||(M!==R&&M.push(T),R.push(P))}return R}J.exports=v},19931:(J,g,t)=>{var i=t(31769),l=t(68090),s=t(68969),m=t(77797);function u(f,p){return p=i(p,f),f=s(f,p),f==null||delete f[m(l(p))]}J.exports=u},19219:J=>{function g(t,i){return t.has(i)}J.exports=g},31769:(J,g,t)=>{var i=t(56449),l=t(28586),s=t(61802),m=t(13222);function u(f,p){return i(f)?f:l(f,p)?[f]:s(m(f))}J.exports=u},49653:(J,g,t)=>{var i=t(37828);function l(s){var m=new s.constructor(s.byteLength);return new i(m).set(new i(s)),m}J.exports=l},93290:(J,g,t)=>{J=t.nmd(J);var i=t(9325),l=g&&!g.nodeType&&g,s=l&&!0&&J&&!J.nodeType&&J,m=s&&s.exports===l,u=m?i.Buffer:void 0,f=u?u.allocUnsafe:void 0;function p(v,h){if(h)return v.slice();var d=v.length,b=f?f(d):new v.constructor(d);return v.copy(b),b}J.exports=p},76169:(J,g,t)=>{var i=t(49653);function l(s,m){var u=m?i(s.buffer):s.buffer;return new s.constructor(u,s.byteOffset,s.byteLength)}J.exports=l},73201:J=>{var g=/\w*$/;function t(i){var l=new i.constructor(i.source,g.exec(i));return l.lastIndex=i.lastIndex,l}J.exports=t},93736:(J,g,t)=>{var i=t(51873),l=i?i.prototype:void 0,s=l?l.valueOf:void 0;function m(u){return s?Object(s.call(u)):{}}J.exports=m},71961:(J,g,t)=>{var i=t(49653);function l(s,m){var u=m?i(s.buffer):s.buffer;return new s.constructor(u,s.byteOffset,s.length)}J.exports=l},23007:J=>{function g(t,i){var l=-1,s=t.length;for(i||(i=Array(s));++l<s;)i[l]=t[l];return i}J.exports=g},21791:(J,g,t)=>{var i=t(16547),l=t(43360);function s(m,u,f,p){var v=!f;f||(f={});for(var h=-1,d=u.length;++h<d;){var b=u[h],y=p?p(f[b],m[b],b,f,m):void 0;y===void 0&&(y=m[b]),v?l(f,b,y):i(f,b,y)}return f}J.exports=s},92271:(J,g,t)=>{var i=t(21791),l=t(4664);function s(m,u){return i(m,l(m),u)}J.exports=s},48948:(J,g,t)=>{var i=t(21791),l=t(86375);function s(m,u){return i(m,l(m),u)}J.exports=s},55481:(J,g,t)=>{var i=t(9325),l=i["__core-js_shared__"];J.exports=l},42e3:(J,g,t)=>{var i=t(63945),l=t(62429),s=t(15389),m=t(56449);function u(f,p){return function(v,h){var d=m(v)?i:l,b=p?p():{};return d(v,f,s(h,2),b)}}J.exports=u},38329:(J,g,t)=>{var i=t(64894);function l(s,m){return function(u,f){if(u==null)return u;if(!i(u))return s(u,f);for(var p=u.length,v=m?p:-1,h=Object(u);(m?v--:++v<p)&&f(h[v],v,h)!==!1;);return u}}J.exports=l},83221:J=>{function g(t){return function(i,l,s){for(var m=-1,u=Object(i),f=s(i),p=f.length;p--;){var v=f[t?p:++m];if(l(u[v],v,u)===!1)break}return i}}J.exports=g},85508:(J,g,t)=>{var i=t(86151),l=t(36800),s=t(17400);function m(u){return function(f,p,v){return v&&typeof v!="number"&&l(f,p,v)&&(p=v=void 0),f=s(f),p===void 0?(p=f,f=0):p=s(p),v=v===void 0?f<p?1:-1:s(v),i(f,p,v,u)}}J.exports=m},44517:(J,g,t)=>{var i=t(76545),l=t(63950),s=t(84247),m=1/0,u=i&&1/s(new i([,-0]))[1]==m?function(f){return new i(f)}:l;J.exports=u},53138:(J,g,t)=>{var i=t(11331);function l(s){return i(s)?void 0:s}J.exports=l},93243:(J,g,t)=>{var i=t(56110),l=function(){try{var s=i(Object,"defineProperty");return s({},"",{}),s}catch{}}();J.exports=l},25911:(J,g,t)=>{var i=t(38859),l=t(14248),s=t(19219),m=1,u=2;function f(p,v,h,d,b,y){var w=h&m,S=p.length,O=v.length;if(S!=O&&!(w&&O>S))return!1;var R=y.get(p),M=y.get(v);if(R&&M)return R==v&&M==p;var D=-1,P=!0,T=h&u?new i:void 0;for(y.set(p,v),y.set(v,p);++D<S;){var A=p[D],j=v[D];if(d)var ae=w?d(j,A,D,v,p,y):d(A,j,D,p,v,y);if(ae!==void 0){if(ae)continue;P=!1;break}if(T){if(!l(v,function(_,N){if(!s(T,N)&&(A===_||b(A,_,h,d,y)))return T.push(N)})){P=!1;break}}else if(!(A===j||b(A,j,h,d,y))){P=!1;break}}return y.delete(p),y.delete(v),P}J.exports=f},21986:(J,g,t)=>{var i=t(51873),l=t(37828),s=t(75288),m=t(25911),u=t(20317),f=t(84247),p=1,v=2,h="[object Boolean]",d="[object Date]",b="[object Error]",y="[object Map]",w="[object Number]",S="[object RegExp]",O="[object Set]",R="[object String]",M="[object Symbol]",D="[object ArrayBuffer]",P="[object DataView]",T=i?i.prototype:void 0,A=T?T.valueOf:void 0;function j(ae,_,N,W,he,me,fe){switch(N){case P:if(ae.byteLength!=_.byteLength||ae.byteOffset!=_.byteOffset)return!1;ae=ae.buffer,_=_.buffer;case D:return!(ae.byteLength!=_.byteLength||!me(new l(ae),new l(_)));case h:case d:case w:return s(+ae,+_);case b:return ae.name==_.name&&ae.message==_.message;case S:case R:return ae==_+"";case y:var ve=u;case O:var ce=W&p;if(ve||(ve=f),ae.size!=_.size&&!ce)return!1;var oe=fe.get(ae);if(oe)return oe==_;W|=v,fe.set(ae,_);var re=m(ve(ae),ve(_),W,he,me,fe);return fe.delete(ae),re;case M:if(A)return A.call(ae)==A.call(_)}return!1}J.exports=j},50689:(J,g,t)=>{var i=t(50002),l=1,s=Object.prototype,m=s.hasOwnProperty;function u(f,p,v,h,d,b){var y=v&l,w=i(f),S=w.length,O=i(p),R=O.length;if(S!=R&&!y)return!1;for(var M=S;M--;){var D=w[M];if(!(y?D in p:m.call(p,D)))return!1}var P=b.get(f),T=b.get(p);if(P&&T)return P==p&&T==f;var A=!0;b.set(f,p),b.set(p,f);for(var j=y;++M<S;){D=w[M];var ae=f[D],_=p[D];if(h)var N=y?h(_,ae,D,p,f,b):h(ae,_,D,f,p,b);if(!(N===void 0?ae===_||d(ae,_,v,h,b):N)){A=!1;break}j||(j=D=="constructor")}if(A&&!j){var W=f.constructor,he=p.constructor;W!=he&&"constructor"in f&&"constructor"in p&&!(typeof W=="function"&&W instanceof W&&typeof he=="function"&&he instanceof he)&&(A=!1)}return b.delete(f),b.delete(p),A}J.exports=u},38816:(J,g,t)=>{var i=t(35970),l=t(56757),s=t(32865);function m(u){return s(l(u,void 0,i),u+"")}J.exports=m},34840:(J,g,t)=>{var i=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;J.exports=i},50002:(J,g,t)=>{var i=t(82199),l=t(4664),s=t(73569);function m(u){return i(u,s,l)}J.exports=m},83349:(J,g,t)=>{var i=t(82199),l=t(86375),s=t(37241);function m(u){return i(u,s,l)}J.exports=m},12651:(J,g,t)=>{var i=t(74218);function l(s,m){var u=s.__data__;return i(m)?u[typeof m=="string"?"string":"hash"]:u.map}J.exports=l},10776:(J,g,t)=>{var i=t(30756),l=t(73569);function s(m){for(var u=l(m),f=u.length;f--;){var p=u[f],v=m[p];u[f]=[p,v,i(v)]}return u}J.exports=s},56110:(J,g,t)=>{var i=t(45083),l=t(10392);function s(m,u){var f=l(m,u);return i(f)?f:void 0}J.exports=s},28879:(J,g,t)=>{var i=t(74335),l=i(Object.getPrototypeOf,Object);J.exports=l},659:(J,g,t)=>{var i=t(51873),l=Object.prototype,s=l.hasOwnProperty,m=l.toString,u=i?i.toStringTag:void 0;function f(p){var v=s.call(p,u),h=p[u];try{p[u]=void 0;var d=!0}catch{}var b=m.call(p);return d&&(v?p[u]=h:delete p[u]),b}J.exports=f},4664:(J,g,t)=>{var i=t(79770),l=t(63345),s=Object.prototype,m=s.propertyIsEnumerable,u=Object.getOwnPropertySymbols,f=u?function(p){return p==null?[]:(p=Object(p),i(u(p),function(v){return m.call(p,v)}))}:l;J.exports=f},86375:(J,g,t)=>{var i=t(14528),l=t(28879),s=t(4664),m=t(63345),u=Object.getOwnPropertySymbols,f=u?function(p){for(var v=[];p;)i(v,s(p)),p=l(p);return v}:m;J.exports=f},5861:(J,g,t)=>{var i=t(55580),l=t(68223),s=t(32804),m=t(76545),u=t(28303),f=t(72552),p=t(47473),v="[object Map]",h="[object Object]",d="[object Promise]",b="[object Set]",y="[object WeakMap]",w="[object DataView]",S=p(i),O=p(l),R=p(s),M=p(m),D=p(u),P=f;(i&&P(new i(new ArrayBuffer(1)))!=w||l&&P(new l)!=v||s&&P(s.resolve())!=d||m&&P(new m)!=b||u&&P(new u)!=y)&&(P=function(T){var A=f(T),j=A==h?T.constructor:void 0,ae=j?p(j):"";if(ae)switch(ae){case S:return w;case O:return v;case R:return d;case M:return b;case D:return y}return A}),J.exports=P},10392:J=>{function g(t,i){return t?.[i]}J.exports=g},49326:(J,g,t)=>{var i=t(31769),l=t(72428),s=t(56449),m=t(30361),u=t(30294),f=t(77797);function p(v,h,d){h=i(h,v);for(var b=-1,y=h.length,w=!1;++b<y;){var S=f(h[b]);if(!(w=v!=null&&d(v,S)))break;v=v[S]}return w||++b!=y?w:(y=v==null?0:v.length,!!y&&u(y)&&m(S,y)&&(s(v)||l(v)))}J.exports=p},22032:(J,g,t)=>{var i=t(81042);function l(){this.__data__=i?i(null):{},this.size=0}J.exports=l},63862:J=>{function g(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}J.exports=g},66721:(J,g,t)=>{var i=t(81042),l="__lodash_hash_undefined__",s=Object.prototype,m=s.hasOwnProperty;function u(f){var p=this.__data__;if(i){var v=p[f];return v===l?void 0:v}return m.call(p,f)?p[f]:void 0}J.exports=u},12749:(J,g,t)=>{var i=t(81042),l=Object.prototype,s=l.hasOwnProperty;function m(u){var f=this.__data__;return i?f[u]!==void 0:s.call(f,u)}J.exports=m},35749:(J,g,t)=>{var i=t(81042),l="__lodash_hash_undefined__";function s(m,u){var f=this.__data__;return this.size+=this.has(m)?0:1,f[m]=i&&u===void 0?l:u,this}J.exports=s},76189:J=>{var g=Object.prototype,t=g.hasOwnProperty;function i(l){var s=l.length,m=new l.constructor(s);return s&&typeof l[0]=="string"&&t.call(l,"index")&&(m.index=l.index,m.input=l.input),m}J.exports=i},77199:(J,g,t)=>{var i=t(49653),l=t(76169),s=t(73201),m=t(93736),u=t(71961),f="[object Boolean]",p="[object Date]",v="[object Map]",h="[object Number]",d="[object RegExp]",b="[object Set]",y="[object String]",w="[object Symbol]",S="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",M="[object Float64Array]",D="[object Int8Array]",P="[object Int16Array]",T="[object Int32Array]",A="[object Uint8Array]",j="[object Uint8ClampedArray]",ae="[object Uint16Array]",_="[object Uint32Array]";function N(W,he,me){var fe=W.constructor;switch(he){case S:return i(W);case f:case p:return new fe(+W);case O:return l(W,me);case R:case M:case D:case P:case T:case A:case j:case ae:case _:return u(W,me);case v:return new fe;case h:case y:return new fe(W);case d:return s(W);case b:return new fe;case w:return m(W)}}J.exports=N},35529:(J,g,t)=>{var i=t(39344),l=t(28879),s=t(55527);function m(u){return typeof u.constructor=="function"&&!s(u)?i(l(u)):{}}J.exports=m},45891:(J,g,t)=>{var i=t(51873),l=t(72428),s=t(56449),m=i?i.isConcatSpreadable:void 0;function u(f){return s(f)||l(f)||!!(m&&f&&f[m])}J.exports=u},30361:J=>{var g=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function i(l,s){var m=typeof l;return s=s??g,!!s&&(m=="number"||m!="symbol"&&t.test(l))&&l>-1&&l%1==0&&l<s}J.exports=i},36800:(J,g,t)=>{var i=t(75288),l=t(64894),s=t(30361),m=t(23805);function u(f,p,v){if(!m(v))return!1;var h=typeof p;return(h=="number"?l(v)&&s(p,v.length):h=="string"&&p in v)?i(v[p],f):!1}J.exports=u},28586:(J,g,t)=>{var i=t(56449),l=t(44394),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;function u(f,p){if(i(f))return!1;var v=typeof f;return v=="number"||v=="symbol"||v=="boolean"||f==null||l(f)?!0:m.test(f)||!s.test(f)||p!=null&&f in Object(p)}J.exports=u},74218:J=>{function g(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}J.exports=g},87296:(J,g,t)=>{var i=t(55481),l=function(){var m=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}();function s(m){return!!l&&l in m}J.exports=s},55527:J=>{var g=Object.prototype;function t(i){var l=i&&i.constructor,s=typeof l=="function"&&l.prototype||g;return i===s}J.exports=t},30756:(J,g,t)=>{var i=t(23805);function l(s){return s===s&&!i(s)}J.exports=l},63702:J=>{function g(){this.__data__=[],this.size=0}J.exports=g},70080:(J,g,t)=>{var i=t(26025),l=Array.prototype,s=l.splice;function m(u){var f=this.__data__,p=i(f,u);if(p<0)return!1;var v=f.length-1;return p==v?f.pop():s.call(f,p,1),--this.size,!0}J.exports=m},24739:(J,g,t)=>{var i=t(26025);function l(s){var m=this.__data__,u=i(m,s);return u<0?void 0:m[u][1]}J.exports=l},48655:(J,g,t)=>{var i=t(26025);function l(s){return i(this.__data__,s)>-1}J.exports=l},31175:(J,g,t)=>{var i=t(26025);function l(s,m){var u=this.__data__,f=i(u,s);return f<0?(++this.size,u.push([s,m])):u[f][1]=m,this}J.exports=l},63040:(J,g,t)=>{var i=t(21549),l=t(80079),s=t(68223);function m(){this.size=0,this.__data__={hash:new i,map:new(s||l),string:new i}}J.exports=m},17670:(J,g,t)=>{var i=t(12651);function l(s){var m=i(this,s).delete(s);return this.size-=m?1:0,m}J.exports=l},90289:(J,g,t)=>{var i=t(12651);function l(s){return i(this,s).get(s)}J.exports=l},4509:(J,g,t)=>{var i=t(12651);function l(s){return i(this,s).has(s)}J.exports=l},72949:(J,g,t)=>{var i=t(12651);function l(s,m){var u=i(this,s),f=u.size;return u.set(s,m),this.size+=u.size==f?0:1,this}J.exports=l},20317:J=>{function g(t){var i=-1,l=Array(t.size);return t.forEach(function(s,m){l[++i]=[m,s]}),l}J.exports=g},67197:J=>{function g(t,i){return function(l){return l==null?!1:l[t]===i&&(i!==void 0||t in Object(l))}}J.exports=g},62224:(J,g,t)=>{var i=t(50104),l=500;function s(m){var u=i(m,function(p){return f.size===l&&f.clear(),p}),f=u.cache;return u}J.exports=s},81042:(J,g,t)=>{var i=t(56110),l=i(Object,"create");J.exports=l},3650:(J,g,t)=>{var i=t(74335),l=i(Object.keys,Object);J.exports=l},90181:J=>{function g(t){var i=[];if(t!=null)for(var l in Object(t))i.push(l);return i}J.exports=g},86009:(J,g,t)=>{J=t.nmd(J);var i=t(34840),l=g&&!g.nodeType&&g,s=l&&!0&&J&&!J.nodeType&&J,m=s&&s.exports===l,u=m&&i.process,f=function(){try{var p=s&&s.require&&s.require("util").types;return p||u&&u.binding&&u.binding("util")}catch{}}();J.exports=f},59350:J=>{var g=Object.prototype,t=g.toString;function i(l){return t.call(l)}J.exports=i},74335:J=>{function g(t,i){return function(l){return t(i(l))}}J.exports=g},56757:(J,g,t)=>{var i=t(91033),l=Math.max;function s(m,u,f){return u=l(u===void 0?m.length-1:u,0),function(){for(var p=arguments,v=-1,h=l(p.length-u,0),d=Array(h);++v<h;)d[v]=p[u+v];v=-1;for(var b=Array(u+1);++v<u;)b[v]=p[v];return b[u]=f(d),i(m,this,b)}}J.exports=s},68969:(J,g,t)=>{var i=t(47422),l=t(25160);function s(m,u){return u.length<2?m:i(m,l(u,0,-1))}J.exports=s},9325:(J,g,t)=>{var i=t(34840),l=typeof self=="object"&&self&&self.Object===Object&&self,s=i||l||Function("return this")();J.exports=s},31380:J=>{var g="__lodash_hash_undefined__";function t(i){return this.__data__.set(i,g),this}J.exports=t},51459:J=>{function g(t){return this.__data__.has(t)}J.exports=g},84247:J=>{function g(t){var i=-1,l=Array(t.size);return t.forEach(function(s){l[++i]=s}),l}J.exports=g},32865:(J,g,t)=>{var i=t(19570),l=t(51811),s=l(i);J.exports=s},51811:J=>{var g=800,t=16,i=Date.now;function l(s){var m=0,u=0;return function(){var f=i(),p=t-(f-u);if(u=f,p>0){if(++m>=g)return arguments[0]}else m=0;return s.apply(void 0,arguments)}}J.exports=l},51420:(J,g,t)=>{var i=t(80079);function l(){this.__data__=new i,this.size=0}J.exports=l},90938:J=>{function g(t){var i=this.__data__,l=i.delete(t);return this.size=i.size,l}J.exports=g},63605:J=>{function g(t){return this.__data__.get(t)}J.exports=g},29817:J=>{function g(t){return this.__data__.has(t)}J.exports=g},80945:(J,g,t)=>{var i=t(80079),l=t(68223),s=t(53661),m=200;function u(f,p){var v=this.__data__;if(v instanceof i){var h=v.__data__;if(!l||h.length<m-1)return h.push([f,p]),this.size=++v.size,this;v=this.__data__=new s(h)}return v.set(f,p),this.size=v.size,this}J.exports=u},76959:J=>{function g(t,i,l){for(var s=l-1,m=t.length;++s<m;)if(t[s]===i)return s;return-1}J.exports=g},61802:(J,g,t)=>{var i=t(62224),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,m=i(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(l,function(p,v,h,d){f.push(h?d.replace(s,"$1"):v||p)}),f});J.exports=m},77797:(J,g,t)=>{var i=t(44394),l=1/0;function s(m){if(typeof m=="string"||i(m))return m;var u=m+"";return u=="0"&&1/m==-l?"-0":u}J.exports=s},47473:J=>{var g=Function.prototype,t=g.toString;function i(l){if(l!=null){try{return t.call(l)}catch{}try{return l+""}catch{}}return""}J.exports=i},31800:J=>{var g=/\s/;function t(i){for(var l=i.length;l--&&g.test(i.charAt(l)););return l}J.exports=t},78659:(J,g,t)=>{var i=t(87133),l=t(99374);function s(m,u,f){return f===void 0&&(f=u,u=void 0),f!==void 0&&(f=l(f),f=f===f?f:0),u!==void 0&&(u=l(u),u=u===u?u:0),i(l(m),u,f)}J.exports=s},37334:J=>{function g(t){return function(){return t}}J.exports=g},38221:(J,g,t)=>{var i=t(23805),l=t(10124),s=t(99374),m="Expected a function",u=Math.max,f=Math.min;function p(v,h,d){var b,y,w,S,O,R,M=0,D=!1,P=!1,T=!0;if(typeof v!="function")throw new TypeError(m);h=s(h)||0,i(d)&&(D=!!d.leading,P="maxWait"in d,w=P?u(s(d.maxWait)||0,h):w,T="trailing"in d?!!d.trailing:T);function A(ve){var ce=b,oe=y;return b=y=void 0,M=ve,S=v.apply(oe,ce),S}function j(ve){return M=ve,O=setTimeout(N,h),D?A(ve):S}function ae(ve){var ce=ve-R,oe=ve-M,re=h-ce;return P?f(re,w-oe):re}function _(ve){var ce=ve-R,oe=ve-M;return R===void 0||ce>=h||ce<0||P&&oe>=w}function N(){var ve=l();if(_(ve))return W(ve);O=setTimeout(N,ae(ve))}function W(ve){return O=void 0,T&&b?A(ve):(b=y=void 0,S)}function he(){O!==void 0&&clearTimeout(O),M=0,b=R=y=O=void 0}function me(){return O===void 0?S:W(l())}function fe(){var ve=l(),ce=_(ve);if(b=arguments,y=this,R=ve,ce){if(O===void 0)return j(R);if(P)return clearTimeout(O),O=setTimeout(N,h),A(R)}return O===void 0&&(O=setTimeout(N,h)),S}return fe.cancel=he,fe.flush=me,fe}J.exports=p},75288:J=>{function g(t,i){return t===i||t!==t&&i!==i}J.exports=g},35970:(J,g,t)=>{var i=t(83120);function l(s){var m=s==null?0:s.length;return m?i(s,1):[]}J.exports=l},58156:(J,g,t)=>{var i=t(47422);function l(s,m,u){var f=s==null?void 0:i(s,m);return f===void 0?u:f}J.exports=l},94394:(J,g,t)=>{var i=t(43360),l=t(42e3),s=Object.prototype,m=s.hasOwnProperty,u=l(function(f,p,v){m.call(f,v)?f[v].push(p):i(f,v,[p])});J.exports=u},61448:(J,g,t)=>{var i=t(20426),l=t(49326);function s(m,u){return m!=null&&l(m,u,i)}J.exports=s},80631:(J,g,t)=>{var i=t(28077),l=t(49326);function s(m,u){return m!=null&&l(m,u,i)}J.exports=s},83488:J=>{function g(t){return t}J.exports=g},72428:(J,g,t)=>{var i=t(27534),l=t(40346),s=Object.prototype,m=s.hasOwnProperty,u=s.propertyIsEnumerable,f=i(function(){return arguments}())?i:function(p){return l(p)&&m.call(p,"callee")&&!u.call(p,"callee")};J.exports=f},56449:J=>{var g=Array.isArray;J.exports=g},64894:(J,g,t)=>{var i=t(1882),l=t(30294);function s(m){return m!=null&&l(m.length)&&!i(m)}J.exports=s},3656:(J,g,t)=>{J=t.nmd(J);var i=t(9325),l=t(89935),s=g&&!g.nodeType&&g,m=s&&!0&&J&&!J.nodeType&&J,u=m&&m.exports===s,f=u?i.Buffer:void 0,p=f?f.isBuffer:void 0,v=p||l;J.exports=v},1882:(J,g,t)=>{var i=t(72552),l=t(23805),s="[object AsyncFunction]",m="[object Function]",u="[object GeneratorFunction]",f="[object Proxy]";function p(v){if(!l(v))return!1;var h=i(v);return h==m||h==u||h==s||h==f}J.exports=p},30294:J=>{var g=9007199254740991;function t(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=g}J.exports=t},87730:(J,g,t)=>{var i=t(29172),l=t(27301),s=t(86009),m=s&&s.isMap,u=m?l(m):i;J.exports=u},23805:J=>{function g(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}J.exports=g},40346:J=>{function g(t){return t!=null&&typeof t=="object"}J.exports=g},11331:(J,g,t)=>{var i=t(72552),l=t(28879),s=t(40346),m="[object Object]",u=Function.prototype,f=Object.prototype,p=u.toString,v=f.hasOwnProperty,h=p.call(Object);function d(b){if(!s(b)||i(b)!=m)return!1;var y=l(b);if(y===null)return!0;var w=v.call(y,"constructor")&&y.constructor;return typeof w=="function"&&w instanceof w&&p.call(w)==h}J.exports=d},38440:(J,g,t)=>{var i=t(16038),l=t(27301),s=t(86009),m=s&&s.isSet,u=m?l(m):i;J.exports=u},44394:(J,g,t)=>{var i=t(72552),l=t(40346),s="[object Symbol]";function m(u){return typeof u=="symbol"||l(u)&&i(u)==s}J.exports=m},37167:(J,g,t)=>{var i=t(4901),l=t(27301),s=t(86009),m=s&&s.isTypedArray,u=m?l(m):i;J.exports=u},73569:(J,g,t)=>{var i=t(70695),l=t(88984),s=t(64894);function m(u){return s(u)?i(u):l(u)}J.exports=m},37241:(J,g,t)=>{var i=t(70695),l=t(72903),s=t(64894);function m(u){return s(u)?i(u,!0):l(u)}J.exports=m},68090:J=>{function g(t){var i=t==null?0:t.length;return i?t[i-1]:void 0}J.exports=g},2543:function(J,g,t){J=t.nmd(J);var i;/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var l,s="4.17.21",m=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",p="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",b=1,y=2,w=4,S=1,O=2,R=1,M=2,D=4,P=8,T=16,A=32,j=64,ae=128,_=256,N=512,W=30,he="...",me=800,fe=16,ve=1,ce=2,oe=3,re=1/0,H=9007199254740991,V=17976931348623157e292,Q=0/0,Te=4294967295,Re=Te-1,ne=Te>>>1,pe=[["ary",ae],["bind",R],["bindKey",M],["curry",P],["curryRight",T],["flip",N],["partial",A],["partialRight",j],["rearg",_]],ye="[object Arguments]",Se="[object Array]",Ae="[object AsyncFunction]",Ee="[object Boolean]",xe="[object Date]",nt="[object DOMException]",Tt="[object Error]",pt="[object Function]",Rt="[object GeneratorFunction]",tt="[object Map]",U="[object Number]",F="[object Null]",Y="[object Object]",le="[object Promise]",ke="[object Proxy]",Ye="[object RegExp]",ft="[object Set]",wt="[object String]",Ut="[object Symbol]",Ke="[object Undefined]",it="[object WeakMap]",At="[object WeakSet]",et="[object ArrayBuffer]",ee="[object DataView]",I="[object Float32Array]",K="[object Float64Array]",ue="[object Int8Array]",De="[object Int16Array]",He="[object Int32Array]",Fe="[object Uint8Array]",ze="[object Uint8ClampedArray]",qe="[object Uint16Array]",We="[object Uint32Array]",_t=/\b__p \+= '';/g,ct=/\b(__p \+=) '' \+/g,Ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,ie=RegExp(st.source),ge=RegExp(Me.source),z=/<%-([\s\S]+?)%>/g,be=/<%([\s\S]+?)%>/g,Qe=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nn=/^\w*$/,bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/[\\^$.*+?()[\]{}|]/g,$t=RegExp(at.source),On=/^\s+/,Ct=/\s/,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wn=/\{\n\/\* \[wrapped with (.+)\] \*/,Zn=/,? & /,xt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xe=/[()=,{}\[\]\/\s]/,gn=/\\(\\)?/g,Qt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,hn=/^[-+]0x[0-9a-f]+$/i,cn=/^0b[01]+$/i,an=/^\[object .+?Constructor\]$/,Or=/^0o[0-7]+$/i,Ln=/^(?:0|[1-9]\d*)$/,En=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,rr=/['\n\r\u2028\u2029\\]/g,sr="\\ud800-\\udfff",pi="\\u0300-\\u036f",yi="\\ufe20-\\ufe2f",jr="\\u20d0-\\u20ff",ui=pi+yi+jr,bi="\\u2700-\\u27bf",ri="a-z\\xdf-\\xf6\\xf8-\\xff",hi="\\xac\\xb1\\xd7\\xf7",Si="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kr="\\u2000-\\u206f",xi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ai="A-Z\\xc0-\\xd6\\xd8-\\xde",Pi="\\ufe0e\\ufe0f",io=hi+Si+Kr+xi,lo="['\u2019]",Gr="["+sr+"]",un="["+io+"]",qn="["+ui+"]",kn="\\d+",St="["+bi+"]",ln="["+ri+"]",An="[^"+sr+io+kn+bi+ri+Ai+"]",Cr="\\ud83c[\\udffb-\\udfff]",_i="(?:"+qn+"|"+Cr+")",Sn="[^"+sr+"]",ir="(?:\\ud83c[\\udde6-\\uddff]){2}",mt="[\\ud800-\\udbff][\\udc00-\\udfff]",fn="["+Ai+"]",gt="\\u200d",tn="(?:"+ln+"|"+An+")",Vn="(?:"+fn+"|"+An+")",Ur="(?:"+lo+"(?:d|ll|m|re|s|t|ve))?",$r="(?:"+lo+"(?:D|LL|M|RE|S|T|VE))?",Pr=_i+"?",zr="["+Pi+"]?",gi="(?:"+gt+"(?:"+[Sn,ir,mt].join("|")+")"+zr+Pr+")*",$i="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ki=zr+Pr+gi,so="(?:"+[St,ir,mt].join("|")+")"+ki,Ho="(?:"+[Sn+qn+"?",qn,ir,mt,Gr].join("|")+")",ra=RegExp(lo,"g"),So=RegExp(qn,"g"),gr=RegExp(Cr+"(?="+Cr+")|"+Ho+ki,"g"),di=RegExp([fn+"?"+ln+"+"+Ur+"(?="+[un,fn,"$"].join("|")+")",Vn+"+"+$r+"(?="+[un,fn+tn,"$"].join("|")+")",fn+"?"+tn+"+"+Ur,fn+"+"+$r,eo,$i,kn,so].join("|"),"g"),Vi=RegExp("["+gt+sr+ui+Pi+"]"),Ro=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,na=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ta=-1,aa={};aa[I]=aa[K]=aa[ue]=aa[De]=aa[He]=aa[Fe]=aa[ze]=aa[qe]=aa[We]=!0,aa[ye]=aa[Se]=aa[et]=aa[Ee]=aa[ee]=aa[xe]=aa[Tt]=aa[pt]=aa[tt]=aa[U]=aa[Y]=aa[Ye]=aa[ft]=aa[wt]=aa[it]=!1;var vi={};vi[ye]=vi[Se]=vi[et]=vi[ee]=vi[Ee]=vi[xe]=vi[I]=vi[K]=vi[ue]=vi[De]=vi[He]=vi[tt]=vi[U]=vi[Y]=vi[Ye]=vi[ft]=vi[wt]=vi[Ut]=vi[Fe]=vi[ze]=vi[qe]=vi[We]=!0,vi[Tt]=vi[pt]=vi[it]=!1;var to={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},$o={"&":"&","<":"<",">":">",'"':""","'":"'"},ja={"&":"&","<":"<",">":">",""":'"',"'":"'"},hs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ro=parseFloat,as=parseInt,rn=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,Dr=typeof self=="object"&&self&&self.Object===Object&&self,Lr=rn||Dr||Function("return this")(),li=g&&!g.nodeType&&g,Zi=li&&!0&&J&&!J.nodeType&&J,Di=Zi&&Zi.exports===li,wo=Di&&rn.process,Go=function(){try{var Wt=Zi&&Zi.require&&Zi.require("util").types;return Wt||wo&&wo.binding&&wo.binding("util")}catch{}}(),Ko=Go&&Go.isArrayBuffer,Ie=Go&&Go.isDate,yt=Go&&Go.isMap,on=Go&&Go.isRegExp,_n=Go&&Go.isSet,er=Go&&Go.isTypedArray;function or(Wt,Yt,zn){switch(zn.length){case 0:return Wt.call(Yt);case 1:return Wt.call(Yt,zn[0]);case 2:return Wt.call(Yt,zn[0],zn[1]);case 3:return Wt.call(Yt,zn[0],zn[1],zn[2])}return Wt.apply(Yt,zn)}function Er(Wt,Yt,zn,Nr){for(var si=-1,Ki=Wt==null?0:Wt.length;++si<Ki;){var Bi=Wt[si];Yt(Nr,Bi,zn(Bi),Wt)}return Nr}function Mi(Wt,Yt){for(var zn=-1,Nr=Wt==null?0:Wt.length;++zn<Nr&&Yt(Wt[zn],zn,Wt)!==!1;);return Wt}function Ui(Wt,Yt){for(var zn=Wt==null?0:Wt.length;zn--&&Yt(Wt[zn],zn,Wt)!==!1;);return Wt}function Nn(Wt,Yt){for(var zn=-1,Nr=Wt==null?0:Wt.length;++zn<Nr;)if(!Yt(Wt[zn],zn,Wt))return!1;return!0}function cr(Wt,Yt){for(var zn=-1,Nr=Wt==null?0:Wt.length,si=0,Ki=[];++zn<Nr;){var Bi=Wt[zn];Yt(Bi,zn,Wt)&&(Ki[si++]=Bi)}return Ki}function ni(Wt,Yt){var zn=Wt==null?0:Wt.length;return!!zn&&B(Wt,Yt,0)>-1}function Xr(Wt,Yt,zn){for(var Nr=-1,si=Wt==null?0:Wt.length;++Nr<si;)if(zn(Yt,Wt[Nr]))return!0;return!1}function Jr(Wt,Yt){for(var zn=-1,Nr=Wt==null?0:Wt.length,si=Array(Nr);++zn<Nr;)si[zn]=Yt(Wt[zn],zn,Wt);return si}function Qi(Wt,Yt){for(var zn=-1,Nr=Yt.length,si=Wt.length;++zn<Nr;)Wt[si+zn]=Yt[zn];return Wt}function Fo(Wt,Yt,zn,Nr){var si=-1,Ki=Wt==null?0:Wt.length;for(Nr&&Ki&&(zn=Wt[++si]);++si<Ki;)zn=Yt(zn,Wt[si],si,Wt);return zn}function No(Wt,Yt,zn,Nr){var si=Wt==null?0:Wt.length;for(Nr&&si&&(zn=Wt[--si]);si--;)zn=Yt(zn,Wt[si],si,Wt);return zn}function Jo(Wt,Yt){for(var zn=-1,Nr=Wt==null?0:Wt.length;++zn<Nr;)if(Yt(Wt[zn],zn,Wt))return!0;return!1}var br=Pt("length");function Yn(Wt){return Wt.split("")}function Z(Wt){return Wt.match(xt)||[]}function se(Wt,Yt,zn){var Nr;return zn(Wt,function(si,Ki,Bi){if(Yt(si,Ki,Bi))return Nr=Ki,!1}),Nr}function G(Wt,Yt,zn,Nr){for(var si=Wt.length,Ki=zn+(Nr?1:-1);Nr?Ki--:++Ki<si;)if(Yt(Wt[Ki],Ki,Wt))return Ki;return-1}function B(Wt,Yt,zn){return Yt===Yt?fi(Wt,Yt,zn):G(Wt,dt,zn)}function Pe(Wt,Yt,zn,Nr){for(var si=zn-1,Ki=Wt.length;++si<Ki;)if(Nr(Wt[si],Yt))return si;return-1}function dt(Wt){return Wt!==Wt}function Lt(Wt,Yt){var zn=Wt==null?0:Wt.length;return zn?Ht(Wt,Yt)/zn:Q}function Pt(Wt){return function(Yt){return Yt==null?l:Yt[Wt]}}function $e(Wt){return function(Yt){return Wt==null?l:Wt[Yt]}}function ut(Wt,Yt,zn,Nr,si){return si(Wt,function(Ki,Bi,Xi){zn=Nr?(Nr=!1,Ki):Yt(zn,Ki,Bi,Xi)}),zn}function zt(Wt,Yt){var zn=Wt.length;for(Wt.sort(Yt);zn--;)Wt[zn]=Wt[zn].value;return Wt}function Ht(Wt,Yt){for(var zn,Nr=-1,si=Wt.length;++Nr<si;){var Ki=Yt(Wt[Nr]);Ki!==l&&(zn=zn===l?Ki:zn+Ki)}return zn}function Fn(Wt,Yt){for(var zn=-1,Nr=Array(Wt);++zn<Wt;)Nr[zn]=Yt(zn);return Nr}function Cn(Wt,Yt){return Jr(Yt,function(zn){return[zn,Wt[zn]]})}function tr(Wt){return Wt&&Wt.slice(0,Qn(Wt)+1).replace(On,"")}function Jn(Wt){return function(Yt){return Wt(Yt)}}function ei(Wt,Yt){return Jr(Yt,function(zn){return Wt[zn]})}function Ci(Wt,Yt){return Wt.has(Yt)}function zi(Wt,Yt){for(var zn=-1,Nr=Wt.length;++zn<Nr&&B(Yt,Wt[zn],0)>-1;);return zn}function co(Wt,Yt){for(var zn=Wt.length;zn--&&B(Yt,Wt[zn],0)>-1;);return zn}function Xo(Wt,Yt){for(var zn=Wt.length,Nr=0;zn--;)Wt[zn]===Yt&&++Nr;return Nr}var Eo=$e(to),Yo=$e($o);function Xn(Wt){return"\\"+hs[Wt]}function fr(Wt,Yt){return Wt==null?l:Wt[Yt]}function mr(Wt){return Vi.test(Wt)}function yr(Wt){return Ro.test(Wt)}function Rr(Wt){for(var Yt,zn=[];!(Yt=Wt.next()).done;)zn.push(Yt.value);return zn}function ai(Wt){var Yt=-1,zn=Array(Wt.size);return Wt.forEach(function(Nr,si){zn[++Yt]=[si,Nr]}),zn}function jt(Wt,Yt){return function(zn){return Wt(Yt(zn))}}function Pn(Wt,Yt){for(var zn=-1,Nr=Wt.length,si=0,Ki=[];++zn<Nr;){var Bi=Wt[zn];(Bi===Yt||Bi===d)&&(Wt[zn]=d,Ki[si++]=zn)}return Ki}function nr(Wt){var Yt=-1,zn=Array(Wt.size);return Wt.forEach(function(Nr){zn[++Yt]=Nr}),zn}function Ir(Wt){var Yt=-1,zn=Array(Wt.size);return Wt.forEach(function(Nr){zn[++Yt]=[Nr,Nr]}),zn}function fi(Wt,Yt,zn){for(var Nr=zn-1,si=Wt.length;++Nr<si;)if(Wt[Nr]===Yt)return Nr;return-1}function Ti(Wt,Yt,zn){for(var Nr=zn+1;Nr--;)if(Wt[Nr]===Yt)return Nr;return Nr}function Oe(Wt){return mr(Wt)?hr(Wt):br(Wt)}function pn(Wt){return mr(Wt)?kr(Wt):Yn(Wt)}function Qn(Wt){for(var Yt=Wt.length;Yt--&&Ct.test(Wt.charAt(Yt)););return Yt}var Sr=$e(ja);function hr(Wt){for(var Yt=gr.lastIndex=0;gr.test(Wt);)++Yt;return Yt}function kr(Wt){return Wt.match(gr)||[]}function Ve(Wt){return Wt.match(di)||[]}var Ot=function Wt(Yt){Yt=Yt==null?Lr:wn.defaults(Lr.Object(),Yt,wn.pick(Lr,na));var zn=Yt.Array,Nr=Yt.Date,si=Yt.Error,Ki=Yt.Function,Bi=Yt.Math,Xi=Yt.Object,vo=Yt.RegExp,ea=Yt.String,la=Yt.TypeError,ss=zn.prototype,Rs=Ki.prototype,Ds=Xi.prototype,Is=Yt["__core-js_shared__"],nu=Rs.toString,Ls=Ds.hasOwnProperty,gu=0,Us=function(){var X=/[^.]+$/.exec(Is&&Is.keys&&Is.keys.IE_PROTO||"");return X?"Symbol(src)_1."+X:""}(),Iu=Ds.toString,Wu=nu.call(Xi),rl=Lr._,Hu=vo("^"+nu.call(Ls).replace(at,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ts=Di?Yt.Buffer:l,Al=Yt.Symbol,fl=Yt.Uint8Array,Rl=Ts?Ts.allocUnsafe:l,Bu=jt(Xi.getPrototypeOf,Xi),Mn=Xi.create,en=Ds.propertyIsEnumerable,sn=ss.splice,qt=Al?Al.isConcatSpreadable:l,In=Al?Al.iterator:l,Kn=Al?Al.toStringTag:l,Fr=function(){try{var X=fo(Xi,"defineProperty");return X({},"",{}),X}catch{}}(),ci=Yt.clearTimeout!==Lr.clearTimeout&&Yt.clearTimeout,Le=Nr&&Nr.now!==Lr.Date.now&&Nr.now,te=Yt.setTimeout!==Lr.setTimeout&&Yt.setTimeout,Ue=Bi.ceil,rt=Bi.floor,ht=Xi.getOwnPropertySymbols,Gt=Ts?Ts.isBuffer:l,xn=Yt.isFinite,Hn=ss.join,wr=jt(Xi.keys,Xi),Wr=Bi.max,vt=Bi.min,Vt=Nr.now,dn=Yt.parseInt,yn=Bi.random,ar=ss.reverse,wi=fo(Yt,"DataView"),mi=fo(Yt,"Map"),ho=fo(Yt,"Promise"),Ao=fo(Yt,"Set"),Mo=fo(Yt,"WeakMap"),bo=fo(Xi,"create"),ca=Mo&&new Mo,sa={},Da=nh(wi),La=nh(mi),Ja=nh(ho),Ya=nh(Ao),Aa=nh(Mo),ba=Al?Al.prototype:l,Ka=ba?ba.valueOf:l,us=ba?ba.toString:l;function ii(X){if(Xf(X)&&!gc(X)&&!(X instanceof Wa)){if(X instanceof _a)return X;if(Ls.call(X,"__wrapped__"))return lt(X)}return new _a(X)}var Wo=function(){function X(){}return function(Ce){if(!rd(Ce))return{};if(Mn)return Mn(Ce);X.prototype=Ce;var Ft=new X;return X.prototype=l,Ft}}();function Ra(){}function _a(X,Ce){this.__wrapped__=X,this.__actions__=[],this.__chain__=!!Ce,this.__index__=0,this.__values__=l}ii.templateSettings={escape:z,evaluate:be,interpolate:Qe,variable:"",imports:{_:ii}},ii.prototype=Ra.prototype,ii.prototype.constructor=ii,_a.prototype=Wo(Ra.prototype),_a.prototype.constructor=_a;function Wa(X){this.__wrapped__=X,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Te,this.__views__=[]}function eu(){var X=new Wa(this.__wrapped__);return X.__actions__=dc(this.__actions__),X.__dir__=this.__dir__,X.__filtered__=this.__filtered__,X.__iteratees__=dc(this.__iteratees__),X.__takeCount__=this.__takeCount__,X.__views__=dc(this.__views__),X}function Ws(){if(this.__filtered__){var X=new Wa(this);X.__dir__=-1,X.__filtered__=!0}else X=this.clone(),X.__dir__*=-1;return X}function Ne(){var X=this.__wrapped__.value(),Ce=this.__dir__,Ft=gc(X),dr=Ce<0,Ei=Ft?X.length:0,ji=zs(0,Ei,this.__views__),Qo=ji.start,ya=ji.end,Qa=ya-Qo,js=dr?ya:Qo-1,$s=this.__iteratees__,qs=$s.length,Os=0,Gu=vt(Qa,this.__takeCount__);if(!Ft||!dr&&Ei==Qa&&Gu==Qa)return ud(X,this.__actions__);var hl=[];e:for(;Qa--&&Os<Gu;){js+=Ce;for(var Cc=-1,Yl=X[js];++Cc<qs;){var Xl=$s[Cc],kc=Xl.iteratee,Gc=Xl.type,Vd=kc(Yl);if(Gc==ce)Yl=Vd;else if(!Vd){if(Gc==ve)continue e;break e}}hl[Os++]=Yl}return hl}Wa.prototype=Wo(Ra.prototype),Wa.prototype.constructor=Wa;function kt(X){var Ce=-1,Ft=X==null?0:X.length;for(this.clear();++Ce<Ft;){var dr=X[Ce];this.set(dr[0],dr[1])}}function Rn(){this.__data__=bo?bo(null):{},this.size=0}function jn(X){var Ce=this.has(X)&&delete this.__data__[X];return this.size-=Ce?1:0,Ce}function _r(X){var Ce=this.__data__;if(bo){var Ft=Ce[X];return Ft===v?l:Ft}return Ls.call(Ce,X)?Ce[X]:l}function xr(X){var Ce=this.__data__;return bo?Ce[X]!==l:Ls.call(Ce,X)}function oi(X,Ce){var Ft=this.__data__;return this.size+=this.has(X)?0:1,Ft[X]=bo&&Ce===l?v:Ce,this}kt.prototype.clear=Rn,kt.prototype.delete=jn,kt.prototype.get=_r,kt.prototype.has=xr,kt.prototype.set=oi;function ti(X){var Ce=-1,Ft=X==null?0:X.length;for(this.clear();++Ce<Ft;){var dr=X[Ce];this.set(dr[0],dr[1])}}function Ri(){this.__data__=[],this.size=0}function Fi(X){var Ce=this.__data__,Ft=ju(Ce,X);if(Ft<0)return!1;var dr=Ce.length-1;return Ft==dr?Ce.pop():sn.call(Ce,Ft,1),--this.size,!0}function Gi(X){var Ce=this.__data__,Ft=ju(Ce,X);return Ft<0?l:Ce[Ft][1]}function yo(X){return ju(this.__data__,X)>-1}function Do(X,Ce){var Ft=this.__data__,dr=ju(Ft,X);return dr<0?(++this.size,Ft.push([X,Ce])):Ft[dr][1]=Ce,this}ti.prototype.clear=Ri,ti.prototype.delete=Fi,ti.prototype.get=Gi,ti.prototype.has=yo,ti.prototype.set=Do;function po(X){var Ce=-1,Ft=X==null?0:X.length;for(this.clear();++Ce<Ft;){var dr=X[Ce];this.set(dr[0],dr[1])}}function Ji(){this.size=0,this.__data__={hash:new kt,map:new(mi||ti),string:new kt}}function Uo(X){var Ce=Vr(this,X).delete(X);return this.size-=Ce?1:0,Ce}function Ia(X){return Vr(this,X).get(X)}function za(X){return Vr(this,X).has(X)}function Ma(X,Ce){var Ft=Vr(this,X),dr=Ft.size;return Ft.set(X,Ce),this.size+=Ft.size==dr?0:1,this}po.prototype.clear=Ji,po.prototype.delete=Uo,po.prototype.get=Ia,po.prototype.has=za,po.prototype.set=Ma;function xo(X){var Ce=-1,Ft=X==null?0:X.length;for(this.__data__=new po;++Ce<Ft;)this.add(X[Ce])}function xs(X){return this.__data__.set(X,v),this}function va(X){return this.__data__.has(X)}xo.prototype.add=xo.prototype.push=xs,xo.prototype.has=va;function Pa(X){var Ce=this.__data__=new ti(X);this.size=Ce.size}function Na(){this.__data__=new ti,this.size=0}function Xa(X){var Ce=this.__data__,Ft=Ce.delete(X);return this.size=Ce.size,Ft}function wa(X){return this.__data__.get(X)}function Ga(X){return this.__data__.has(X)}function vs(X,Ce){var Ft=this.__data__;if(Ft instanceof ti){var dr=Ft.__data__;if(!mi||dr.length<m-1)return dr.push([X,Ce]),this.size=++Ft.size,this;Ft=this.__data__=new po(dr)}return Ft.set(X,Ce),this.size=Ft.size,this}Pa.prototype.clear=Na,Pa.prototype.delete=Xa,Pa.prototype.get=wa,Pa.prototype.has=Ga,Pa.prototype.set=vs;function Za(X,Ce){var Ft=gc(X),dr=!Ft&&Hh(X),Ei=!Ft&&!dr&&Zh(X),ji=!Ft&&!dr&&!Ei&&up(X),Qo=Ft||dr||Ei||ji,ya=Qo?Fn(X.length,ea):[],Qa=ya.length;for(var js in X)(Ce||Ls.call(X,js))&&!(Qo&&(js=="length"||Ei&&(js=="offset"||js=="parent")||ji&&(js=="buffer"||js=="byteLength"||js=="byteOffset")||gl(js,Qa)))&&ya.push(js);return ya}function $a(X){var Ce=X.length;return Ce?X[qd(0,Ce-1)]:l}function ns(X,Ce){return Qd(dc(X),wl(Ce,0,X.length))}function uu(X){return Qd(dc(X))}function Mu(X,Ce,Ft){(Ft!==l&&!Dh(X[Ce],Ft)||Ft===l&&!(Ce in X))&&su(X,Ce,Ft)}function Lu(X,Ce,Ft){var dr=X[Ce];(!(Ls.call(X,Ce)&&Dh(dr,Ft))||Ft===l&&!(Ce in X))&&su(X,Ce,Ft)}function ju(X,Ce){for(var Ft=X.length;Ft--;)if(Dh(X[Ft][0],Ce))return Ft;return-1}function pl(X,Ce,Ft,dr){return Hs(X,function(Ei,ji,Qo){Ce(dr,Ei,Ft(Ei),Qo)}),dr}function pu(X,Ce){return X&&yf(Ce,Zd(Ce),X)}function ks(X,Ce){return X&&yf(Ce,oh(Ce),X)}function su(X,Ce,Ft){Ce=="__proto__"&&Fr?Fr(X,Ce,{configurable:!0,enumerable:!0,value:Ft,writable:!0}):X[Ce]=Ft}function Au(X,Ce){for(var Ft=-1,dr=Ce.length,Ei=zn(dr),ji=X==null;++Ft<dr;)Ei[Ft]=ji?l:xv(X,Ce[Ft]);return Ei}function wl(X,Ce,Ft){return X===X&&(Ft!==l&&(X=X<=Ft?X:Ft),Ce!==l&&(X=X>=Ce?X:Ce)),X}function bu(X,Ce,Ft,dr,Ei,ji){var Qo,ya=Ce&b,Qa=Ce&y,js=Ce&w;if(Ft&&(Qo=Ei?Ft(X,dr,Ei,ji):Ft(X)),Qo!==l)return Qo;if(!rd(X))return X;var $s=gc(X);if($s){if(Qo=Vs(X),!ya)return dc(X,Qo)}else{var qs=fs(X),Os=qs==pt||qs==Rt;if(Zh(X))return ic(X,ya);if(qs==Y||qs==ye||Os&&!Ei){if(Qo=Qa||Os?{}:Ou(X),!ya)return Qa?ys(X,ks(Qo,X)):Nf(X,pu(Qo,X))}else{if(!vi[qs])return Ei?X:{};Qo=iu(X,qs,ya)}}ji||(ji=new Pa);var Gu=ji.get(X);if(Gu)return Gu;ji.set(X,Qo),Zv(X)?X.forEach(function(Yl){Qo.add(bu(Yl,Ce,Ft,Yl,X,ji))}):sp(X)&&X.forEach(function(Yl,Xl){Qo.set(Xl,bu(Yl,Ce,Ft,Xl,X,ji))});var hl=js?Qa?Ll:wc:Qa?oh:Zd,Cc=$s?l:hl(X);return Mi(Cc||X,function(Yl,Xl){Cc&&(Xl=Yl,Yl=X[Xl]),Lu(Qo,Xl,bu(Yl,Ce,Ft,Xl,X,ji))}),Qo}function Ul(X){var Ce=Zd(X);return function(Ft){return Wl(Ft,X,Ce)}}function Wl(X,Ce,Ft){var dr=Ft.length;if(X==null)return!dr;for(X=Xi(X);dr--;){var Ei=Ft[dr],ji=Ce[Ei],Qo=X[Ei];if(Qo===l&&!(Ei in X)||!ji(Qo))return!1}return!0}function il(X,Ce,Ft){if(typeof X!="function")throw new la(f);return wf(function(){X.apply(l,Ft)},Ce)}function _l(X,Ce,Ft,dr){var Ei=-1,ji=ni,Qo=!0,ya=X.length,Qa=[],js=Ce.length;if(!ya)return Qa;Ft&&(Ce=Jr(Ce,Jn(Ft))),dr?(ji=Xr,Qo=!1):Ce.length>=m&&(ji=Ci,Qo=!1,Ce=new xo(Ce));e:for(;++Ei<ya;){var $s=X[Ei],qs=Ft==null?$s:Ft($s);if($s=dr||$s!==0?$s:0,Qo&&qs===qs){for(var Os=js;Os--;)if(Ce[Os]===qs)continue e;Qa.push($s)}else ji(Ce,qs,dr)||Qa.push($s)}return Qa}var Hs=Fh(Ns),Pl=Fh(Xt,!0);function Ql(X,Ce){var Ft=!0;return Hs(X,function(dr,Ei,ji){return Ft=!!Ce(dr,Ei,ji),Ft}),Ft}function ll(X,Ce,Ft){for(var dr=-1,Ei=X.length;++dr<Ei;){var ji=X[dr],Qo=Ce(ji);if(Qo!=null&&(ya===l?Qo===Qo&&!Eh(Qo):Ft(Qo,ya)))var ya=Qo,Qa=ji}return Qa}function Kl(X,Ce,Ft,dr){var Ei=X.length;for(Ft=pc(Ft),Ft<0&&(Ft=-Ft>Ei?0:Ei+Ft),dr=dr===l||dr>Ei?Ei:pc(dr),dr<0&&(dr+=Ei),dr=Ft>dr?0:qv(dr);Ft<dr;)X[Ft++]=Ce;return X}function ia(X,Ce){var Ft=[];return Hs(X,function(dr,Ei,ji){Ce(dr,Ei,ji)&&Ft.push(dr)}),Ft}function Sa(X,Ce,Ft,dr,Ei){var ji=-1,Qo=X.length;for(Ft||(Ft=kl),Ei||(Ei=[]);++ji<Qo;){var ya=X[ji];Ce>0&&Ft(ya)?Ce>1?Sa(ya,Ce-1,Ft,dr,Ei):Qi(Ei,ya):dr||(Ei[Ei.length]=ya)}return Ei}var Ea=lh(),rs=lh(!0);function Ns(X,Ce){return X&&Ea(X,Ce,Zd)}function Xt(X,Ce){return X&&rs(X,Ce,Zd)}function bn(X,Ce){return cr(Ce,function(Ft){return Kh(X[Ft])})}function Dn(X,Ce){Ce=lf(Ce,X);for(var Ft=0,dr=Ce.length;X!=null&&Ft<dr;)X=X[Wf(Ce[Ft++])];return Ft&&Ft==dr?X:l}function Ii(X,Ce,Ft){var dr=Ce(X);return gc(X)?dr:Qi(dr,Ft(X))}function ko(X){return X==null?X===l?Ke:F:Kn&&Kn in Xi(X)?Po(X):Df(X)}function fa(X,Ce){return X>Ce}function Zo(X,Ce){return X!=null&&Ls.call(X,Ce)}function Fa(X,Ce){return X!=null&&Ce in Xi(X)}function Ua(X,Ce,Ft){return X>=vt(Ce,Ft)&&X<Wr(Ce,Ft)}function ms(X,Ce,Ft){for(var dr=Ft?Xr:ni,Ei=X[0].length,ji=X.length,Qo=ji,ya=zn(ji),Qa=1/0,js=[];Qo--;){var $s=X[Qo];Qo&&Ce&&($s=Jr($s,Jn(Ce))),Qa=vt($s.length,Qa),ya[Qo]=!Ft&&(Ce||Ei>=120&&$s.length>=120)?new xo(Qo&&$s):l}$s=X[0];var qs=-1,Os=ya[0];e:for(;++qs<Ei&&js.length<Qa;){var Gu=$s[qs],hl=Ce?Ce(Gu):Gu;if(Gu=Ft||Gu!==0?Gu:0,!(Os?Ci(Os,hl):dr(js,hl,Ft))){for(Qo=ji;--Qo;){var Cc=ya[Qo];if(!(Cc?Ci(Cc,hl):dr(X[Qo],hl,Ft)))continue e}Os&&Os.push(hl),js.push(Gu)}}return js}function Fs(X,Ce,Ft,dr){return Ns(X,function(Ei,ji,Qo){Ce(dr,Ft(Ei),ji,Qo)}),dr}function ws(X,Ce,Ft){Ce=lf(Ce,X),X=Ed(X,Ce);var dr=X==null?X:X[Wf(Dl(Ce))];return dr==null?l:or(dr,X,Ft)}function fu(X){return Xf(X)&&ko(X)==ye}function wu(X){return Xf(X)&&ko(X)==et}function Du(X){return Xf(X)&&ko(X)==xe}function zu(X,Ce,Ft,dr,Ei){return X===Ce?!0:X==null||Ce==null||!Xf(X)&&!Xf(Ce)?X!==X&&Ce!==Ce:Il(X,Ce,Ft,dr,zu,Ei)}function Il(X,Ce,Ft,dr,Ei,ji){var Qo=gc(X),ya=gc(Ce),Qa=Qo?Se:fs(X),js=ya?Se:fs(Ce);Qa=Qa==ye?Y:Qa,js=js==ye?Y:js;var $s=Qa==Y,qs=js==Y,Os=Qa==js;if(Os&&Zh(X)){if(!Zh(Ce))return!1;Qo=!0,$s=!1}if(Os&&!$s)return ji||(ji=new Pa),Qo||up(X)?Yu(X,Ce,Ft,dr,Ei,ji):xu(X,Ce,Qa,Ft,dr,Ei,ji);if(!(Ft&S)){var Gu=$s&&Ls.call(X,"__wrapped__"),hl=qs&&Ls.call(Ce,"__wrapped__");if(Gu||hl){var Cc=Gu?X.value():X,Yl=hl?Ce.value():Ce;return ji||(ji=new Pa),Ei(Cc,Yl,Ft,dr,ji)}}return Os?(ji||(ji=new Pa),of(X,Ce,Ft,dr,Ei,ji)):!1}function bc(X){return Xf(X)&&fs(X)==tt}function Gl(X,Ce,Ft,dr){var Ei=Ft.length,ji=Ei,Qo=!dr;if(X==null)return!ji;for(X=Xi(X);Ei--;){var ya=Ft[Ei];if(Qo&&ya[2]?ya[1]!==X[ya[0]]:!(ya[0]in X))return!1}for(;++Ei<ji;){ya=Ft[Ei];var Qa=ya[0],js=X[Qa],$s=ya[1];if(Qo&&ya[2]){if(js===l&&!(Qa in X))return!1}else{var qs=new Pa;if(dr)var Os=dr(js,$s,Qa,X,Ce,qs);if(!(Os===l?zu($s,js,S|O,dr,qs):Os))return!1}}return!0}function oc(X){if(!rd(X)||Ps(X))return!1;var Ce=Kh(X)?Hu:an;return Ce.test(nh(X))}function ac(X){return Xf(X)&&ko(X)==Ye}function jl(X){return Xf(X)&&fs(X)==ft}function nc(X){return Xf(X)&&_v(X.length)&&!!aa[ko(X)]}function Fl(X){return typeof X=="function"?X:X==null?_h:typeof X=="object"?gc(X)?vl(X[0],X[1]):ml(X):pg(X)}function Zu(X){if(!vc(X))return wr(X);var Ce=[];for(var Ft in Xi(X))Ls.call(X,Ft)&&Ft!="constructor"&&Ce.push(Ft);return Ce}function Ac(X){if(!rd(X))return mf(X);var Ce=vc(X),Ft=[];for(var dr in X)dr=="constructor"&&(Ce||!Ls.call(X,dr))||Ft.push(dr);return Ft}function tf(X,Ce){return X<Ce}function Jl(X,Ce){var Ft=-1,dr=hh(X)?zn(X.length):[];return Hs(X,function(Ei,ji,Qo){dr[++Ft]=Ce(Ei,ji,Qo)}),dr}function ml(X){var Ce=Ni(X);return Ce.length==1&&Ce[0][2]?Wc(Ce[0][0],Ce[0][1]):function(Ft){return Ft===X||Gl(Ft,X,Ce)}}function vl(X,Ce){return El(X)&&ff(Ce)?Wc(Wf(X),Ce):function(Ft){var dr=xv(Ft,X);return dr===l&&dr===Ce?tg(Ft,X):zu(Ce,dr,S|O)}}function Vu(X,Ce,Ft,dr,Ei){X!==Ce&&Ea(Ce,function(ji,Qo){if(Ei||(Ei=new Pa),rd(ji))ad(X,Ce,Qo,Ft,Vu,dr,Ei);else{var ya=dr?dr(Dc(X,Qo),ji,Qo+"",X,Ce,Ei):l;ya===l&&(ya=ji),Mu(X,Qo,ya)}},oh)}function ad(X,Ce,Ft,dr,Ei,ji,Qo){var ya=Dc(X,Ft),Qa=Dc(Ce,Ft),js=Qo.get(Qa);if(js){Mu(X,Ft,js);return}var $s=ji?ji(ya,Qa,Ft+"",X,Ce,Qo):l,qs=$s===l;if(qs){var Os=gc(Qa),Gu=!Os&&Zh(Qa),hl=!Os&&!Gu&&up(Qa);$s=Qa,Os||Gu||hl?gc(ya)?$s=ya:nd(ya)?$s=dc(ya):Gu?(qs=!1,$s=ic(Qa,!0)):hl?(qs=!1,$s=kf(Qa,!0)):$s=[]:_d(Qa)||Hh(Qa)?($s=ya,Hh(ya)?$s=Ov(ya):(!rd(ya)||Kh(ya))&&($s=Ou(Qa))):qs=!1}qs&&(Qo.set(Qa,$s),Ei($s,Qa,dr,ji,Qo),Qo.delete(Qa)),Mu(X,Ft,$s)}function Bc(X,Ce){var Ft=X.length;if(Ft)return Ce+=Ce<0?Ft:0,gl(Ce,Ft)?X[Ce]:l}function hf(X,Ce,Ft){Ce.length?Ce=Jr(Ce,function(ji){return gc(ji)?function(Qo){return Dn(Qo,ji.length===1?ji[0]:ji)}:ji}):Ce=[_h];var dr=-1;Ce=Jr(Ce,Jn(qu()));var Ei=Jl(X,function(ji,Qo,ya){var Qa=Jr(Ce,function(js){return js(ji)});return{criteria:Qa,index:++dr,value:ji}});return zt(Ei,function(ji,Qo){return $d(ji,Qo,Ft)})}function Vc(X,Ce){return Od(X,Ce,function(Ft,dr){return tg(X,dr)})}function Od(X,Ce,Ft){for(var dr=-1,Ei=Ce.length,ji={};++dr<Ei;){var Qo=Ce[dr],ya=Dn(X,Qo);Ft(ya,Qo)&&ql(ji,lf(Qo,X),ya)}return ji}function _c(X){return function(Ce){return Dn(Ce,X)}}function Xc(X,Ce,Ft,dr){var Ei=dr?Pe:B,ji=-1,Qo=Ce.length,ya=X;for(X===Ce&&(Ce=dc(Ce)),Ft&&(ya=Jr(X,Jn(Ft)));++ji<Qo;)for(var Qa=0,js=Ce[ji],$s=Ft?Ft(js):js;(Qa=Ei(ya,$s,Qa,dr))>-1;)ya!==X&&sn.call(ya,Qa,1),sn.call(X,Qa,1);return X}function Zl(X,Ce){for(var Ft=X?Ce.length:0,dr=Ft-1;Ft--;){var Ei=Ce[Ft];if(Ft==dr||Ei!==ji){var ji=Ei;gl(Ei)?sn.call(X,Ei,1):gf(X,Ei)}}return X}function qd(X,Ce){return X+rt(yn()*(Ce-X+1))}function Kd(X,Ce,Ft,dr){for(var Ei=-1,ji=Wr(Ue((Ce-X)/(Ft||1)),0),Qo=zn(ji);ji--;)Qo[dr?ji:++Ei]=X,X+=Ft;return Qo}function jf(X,Ce){var Ft="";if(!X||Ce<1||Ce>H)return Ft;do Ce%2&&(Ft+=X),Ce=rt(Ce/2),Ce&&(X+=X);while(Ce);return Ft}function Ml(X,Ce){return Uf(Ah(X,Ce,_h),X+"")}function jd(X){return $a(Sh(X))}function Jf(X,Ce){var Ft=Sh(X);return Qd(Ft,wl(Ce,0,Ft.length))}function ql(X,Ce,Ft,dr){if(!rd(X))return X;Ce=lf(Ce,X);for(var Ei=-1,ji=Ce.length,Qo=ji-1,ya=X;ya!=null&&++Ei<ji;){var Qa=Wf(Ce[Ei]),js=Ft;if(Qa==="__proto__"||Qa==="constructor"||Qa==="prototype")return X;if(Ei!=Qo){var $s=ya[Qa];js=dr?dr($s,Qa,ya):l,js===l&&(js=rd($s)?$s:gl(Ce[Ei+1])?[]:{})}Lu(ya,Qa,js),ya=ya[Qa]}return X}var sc=ca?function(X,Ce){return ca.set(X,Ce),X}:_h,Uc=Fr?function(X,Ce){return Fr(X,"toString",{configurable:!0,enumerable:!1,value:hg(Ce),writable:!0})}:_h;function Gd(X){return Qd(Sh(X))}function nf(X,Ce,Ft){var dr=-1,Ei=X.length;Ce<0&&(Ce=-Ce>Ei?0:Ei+Ce),Ft=Ft>Ei?Ei:Ft,Ft<0&&(Ft+=Ei),Ei=Ce>Ft?0:Ft-Ce>>>0,Ce>>>=0;for(var ji=zn(Ei);++dr<Ei;)ji[dr]=X[dr+Ce];return ji}function Dd(X,Ce){var Ft;return Hs(X,function(dr,Ei,ji){return Ft=Ce(dr,Ei,ji),!Ft}),!!Ft}function yd(X,Ce,Ft){var dr=0,Ei=X==null?dr:X.length;if(typeof Ce=="number"&&Ce===Ce&&Ei<=ne){for(;dr<Ei;){var ji=dr+Ei>>>1,Qo=X[ji];Qo!==null&&!Eh(Qo)&&(Ft?Qo<=Ce:Qo<Ce)?dr=ji+1:Ei=ji}return Ei}return pf(X,Ce,_h,Ft)}function pf(X,Ce,Ft,dr){var Ei=0,ji=X==null?0:X.length;if(ji===0)return 0;Ce=Ft(Ce);for(var Qo=Ce!==Ce,ya=Ce===null,Qa=Eh(Ce),js=Ce===l;Ei<ji;){var $s=rt((Ei+ji)/2),qs=Ft(X[$s]),Os=qs!==l,Gu=qs===null,hl=qs===qs,Cc=Eh(qs);if(Qo)var Yl=dr||hl;else js?Yl=hl&&(dr||Os):ya?Yl=hl&&Os&&(dr||!Gu):Qa?Yl=hl&&Os&&!Gu&&(dr||!Cc):Gu||Cc?Yl=!1:Yl=dr?qs<=Ce:qs<Ce;Yl?Ei=$s+1:ji=$s}return vt(ji,Re)}function Lf(X,Ce){for(var Ft=-1,dr=X.length,Ei=0,ji=[];++Ft<dr;){var Qo=X[Ft],ya=Ce?Ce(Qo):Qo;if(!Ft||!Dh(ya,Qa)){var Qa=ya;ji[Ei++]=Qo===0?0:Qo}}return ji}function Cd(X){return typeof X=="number"?X:Eh(X)?Q:+X}function vf(X){if(typeof X=="string")return X;if(gc(X))return Jr(X,vf)+"";if(Eh(X))return us?us.call(X):"";var Ce=X+"";return Ce=="0"&&1/X==-re?"-0":Ce}function jc(X,Ce,Ft){var dr=-1,Ei=ni,ji=X.length,Qo=!0,ya=[],Qa=ya;if(Ft)Qo=!1,Ei=Xr;else if(ji>=m){var js=Ce?null:hu(X);if(js)return nr(js);Qo=!1,Ei=Ci,Qa=new xo}else Qa=Ce?[]:ya;e:for(;++dr<ji;){var $s=X[dr],qs=Ce?Ce($s):$s;if($s=Ft||$s!==0?$s:0,Qo&&qs===qs){for(var Os=Qa.length;Os--;)if(Qa[Os]===qs)continue e;Ce&&Qa.push(qs),ya.push($s)}else Ei(Qa,qs,Ft)||(Qa!==ya&&Qa.push(qs),ya.push($s))}return ya}function gf(X,Ce){return Ce=lf(Ce,X),X=Ed(X,Ce),X==null||delete X[Wf(Dl(Ce))]}function Id(X,Ce,Ft,dr){return ql(X,Ce,Ft(Dn(X,Ce)),dr)}function sd(X,Ce,Ft,dr){for(var Ei=X.length,ji=dr?Ei:-1;(dr?ji--:++ji<Ei)&&Ce(X[ji],ji,X););return Ft?nf(X,dr?0:ji,dr?ji+1:Ei):nf(X,dr?ji+1:0,dr?Ei:ji)}function ud(X,Ce){var Ft=X;return Ft instanceof Wa&&(Ft=Ft.value()),Fo(Ce,function(dr,Ei){return Ei.func.apply(Ei.thisArg,Qi([dr],Ei.args))},Ft)}function Yd(X,Ce,Ft){var dr=X.length;if(dr<2)return dr?jc(X[0]):[];for(var Ei=-1,ji=zn(dr);++Ei<dr;)for(var Qo=X[Ei],ya=-1;++ya<dr;)ya!=Ei&&(ji[Ei]=_l(ji[Ei]||Qo,X[ya],Ce,Ft));return jc(Sa(ji,1),Ce,Ft)}function xd(X,Ce,Ft){for(var dr=-1,Ei=X.length,ji=Ce.length,Qo={};++dr<Ei;){var ya=dr<ji?Ce[dr]:l;Ft(Qo,X[dr],ya)}return Qo}function rc(X){return nd(X)?X:[]}function Pc(X){return typeof X=="function"?X:_h}function lf(X,Ce){return gc(X)?X:El(X,Ce)?[X]:Nd(Ef(X))}var Qc=Ml;function yc(X,Ce,Ft){var dr=X.length;return Ft=Ft===l?dr:Ft,!Ce&&Ft>=dr?X:nf(X,Ce,Ft)}var fc=ci||function(X){return Lr.clearTimeout(X)};function ic(X,Ce){if(Ce)return X.slice();var Ft=X.length,dr=Rl?Rl(Ft):new X.constructor(Ft);return X.copy(dr),dr}function Kf(X){var Ce=new X.constructor(X.byteLength);return new fl(Ce).set(new fl(X)),Ce}function ld(X,Ce){var Ft=Ce?Kf(X.buffer):X.buffer;return new X.constructor(Ft,X.byteOffset,X.byteLength)}function Ld(X){var Ce=new X.constructor(X.source,Dt.exec(X));return Ce.lastIndex=X.lastIndex,Ce}function cf(X){return Ka?Xi(Ka.call(X)):{}}function kf(X,Ce){var Ft=Ce?Kf(X.buffer):X.buffer;return new X.constructor(Ft,X.byteOffset,X.length)}function uh(X,Ce){if(X!==Ce){var Ft=X!==l,dr=X===null,Ei=X===X,ji=Eh(X),Qo=Ce!==l,ya=Ce===null,Qa=Ce===Ce,js=Eh(Ce);if(!ya&&!js&&!ji&&X>Ce||ji&&Qo&&Qa&&!ya&&!js||dr&&Qo&&Qa||!Ft&&Qa||!Ei)return 1;if(!dr&&!ji&&!js&&X<Ce||js&&Ft&&Ei&&!dr&&!ji||ya&&Ft&&Ei||!Qo&&Ei||!Qa)return-1}return 0}function $d(X,Ce,Ft){for(var dr=-1,Ei=X.criteria,ji=Ce.criteria,Qo=Ei.length,ya=Ft.length;++dr<Qo;){var Qa=uh(Ei[dr],ji[dr]);if(Qa){if(dr>=ya)return Qa;var js=Ft[dr];return Qa*(js=="desc"?-1:1)}}return X.index-Ce.index}function bh(X,Ce,Ft,dr){for(var Ei=-1,ji=X.length,Qo=Ft.length,ya=-1,Qa=Ce.length,js=Wr(ji-Qo,0),$s=zn(Qa+js),qs=!dr;++ya<Qa;)$s[ya]=Ce[ya];for(;++Ei<Qo;)(qs||Ei<ji)&&($s[Ft[Ei]]=X[Ei]);for(;js--;)$s[ya++]=X[Ei++];return $s}function Zf(X,Ce,Ft,dr){for(var Ei=-1,ji=X.length,Qo=-1,ya=Ft.length,Qa=-1,js=Ce.length,$s=Wr(ji-ya,0),qs=zn($s+js),Os=!dr;++Ei<$s;)qs[Ei]=X[Ei];for(var Gu=Ei;++Qa<js;)qs[Gu+Qa]=Ce[Qa];for(;++Qo<ya;)(Os||Ei<ji)&&(qs[Gu+Ft[Qo]]=X[Ei++]);return qs}function dc(X,Ce){var Ft=-1,dr=X.length;for(Ce||(Ce=zn(dr));++Ft<dr;)Ce[Ft]=X[Ft];return Ce}function yf(X,Ce,Ft,dr){var Ei=!Ft;Ft||(Ft={});for(var ji=-1,Qo=Ce.length;++ji<Qo;){var ya=Ce[ji],Qa=dr?dr(Ft[ya],X[ya],ya,Ft,X):l;Qa===l&&(Qa=X[ya]),Ei?su(Ft,ya,Qa):Lu(Ft,ya,Qa)}return Ft}function Nf(X,Ce){return yf(X,pa(X),Ce)}function ys(X,Ce){return yf(X,Va(X),Ce)}function Hc(X,Ce){return function(Ft,dr){var Ei=gc(Ft)?Er:pl,ji=Ce?Ce():{};return Ei(Ft,X,qu(dr,2),ji)}}function Jc(X){return Ml(function(Ce,Ft){var dr=-1,Ei=Ft.length,ji=Ei>1?Ft[Ei-1]:l,Qo=Ei>2?Ft[2]:l;for(ji=X.length>3&&typeof ji=="function"?(Ei--,ji):l,Qo&&ol(Ft[0],Ft[1],Qo)&&(ji=Ei<3?l:ji,Ei=1),Ce=Xi(Ce);++dr<Ei;){var ya=Ft[dr];ya&&X(Ce,ya,dr,ji)}return Ce})}function Fh(X,Ce){return function(Ft,dr){if(Ft==null)return Ft;if(!hh(Ft))return X(Ft,dr);for(var Ei=Ft.length,ji=Ce?Ei:-1,Qo=Xi(Ft);(Ce?ji--:++ji<Ei)&&dr(Qo[ji],ji,Qo)!==!1;);return Ft}}function lh(X){return function(Ce,Ft,dr){for(var Ei=-1,ji=Xi(Ce),Qo=dr(Ce),ya=Qo.length;ya--;){var Qa=Qo[X?ya:++Ei];if(Ft(ji[Qa],Qa,ji)===!1)break}return Ce}}function Xd(X,Ce,Ft){var dr=Ce&R,Ei=Ms(X);function ji(){var Qo=this&&this!==Lr&&this instanceof ji?Ei:X;return Qo.apply(dr?Ft:this,arguments)}return ji}function Ud(X){return function(Ce){Ce=Ef(Ce);var Ft=mr(Ce)?pn(Ce):l,dr=Ft?Ft[0]:Ce.charAt(0),Ei=Ft?yc(Ft,1).join(""):Ce.slice(1);return dr[X]()+Ei}}function bd(X){return function(Ce){return Fo(cg(qg(Ce).replace(ra,"")),X,"")}}function Ms(X){return function(){var Ce=arguments;switch(Ce.length){case 0:return new X;case 1:return new X(Ce[0]);case 2:return new X(Ce[0],Ce[1]);case 3:return new X(Ce[0],Ce[1],Ce[2]);case 4:return new X(Ce[0],Ce[1],Ce[2],Ce[3]);case 5:return new X(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4]);case 6:return new X(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]);case 7:return new X(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5],Ce[6])}var Ft=Wo(X.prototype),dr=X.apply(Ft,Ce);return rd(dr)?dr:Ft}}function Pf(X,Ce,Ft){var dr=Ms(X);function Ei(){for(var ji=arguments.length,Qo=zn(ji),ya=ji,Qa=Ic(Ei);ya--;)Qo[ya]=arguments[ya];var js=ji<3&&Qo[0]!==Qa&&Qo[ji-1]!==Qa?[]:Pn(Qo,Qa);if(ji-=js.length,ji<Ft)return qa(X,Ce,rf,Ei.placeholder,l,Qo,js,l,l,Ft-ji);var $s=this&&this!==Lr&&this instanceof Ei?dr:X;return or($s,this,Qo)}return Ei}function bf(X){return function(Ce,Ft,dr){var Ei=Xi(Ce);if(!hh(Ce)){var ji=qu(Ft,3);Ce=Zd(Ce),Ft=function(ya){return ji(Ei[ya],ya,Ei)}}var Qo=X(Ce,Ft,dr);return Qo>-1?Ei[ji?Ce[Qo]:Qo]:l}}function cd(X){return Ol(function(Ce){var Ft=Ce.length,dr=Ft,Ei=_a.prototype.thru;for(X&&Ce.reverse();dr--;){var ji=Ce[dr];if(typeof ji!="function")throw new la(f);if(Ei&&!Qo&&Bl(ji)=="wrapper")var Qo=new _a([],!0)}for(dr=Qo?dr:Ft;++dr<Ft;){ji=Ce[dr];var ya=Bl(ji),Qa=ya=="wrapper"?Mc(ji):l;Qa&&mu(Qa[0])&&Qa[1]==(ae|P|A|_)&&!Qa[4].length&&Qa[9]==1?Qo=Qo[Bl(Qa[0])].apply(Qo,Qa[3]):Qo=ji.length==1&&mu(ji)?Qo[ya]():Qo.thru(ji)}return function(){var js=arguments,$s=js[0];if(Qo&&js.length==1&&gc($s))return Qo.plant($s).value();for(var qs=0,Os=Ft?Ce[qs].apply(this,js):$s;++qs<Ft;)Os=Ce[qs].call(this,Os);return Os}})}function rf(X,Ce,Ft,dr,Ei,ji,Qo,ya,Qa,js){var $s=Ce&ae,qs=Ce&R,Os=Ce&M,Gu=Ce&(P|T),hl=Ce&N,Cc=Os?l:Ms(X);function Yl(){for(var Xl=arguments.length,kc=zn(Xl),Gc=Xl;Gc--;)kc[Gc]=arguments[Gc];if(Gu)var Vd=Ic(Yl),mh=Xo(kc,Vd);if(dr&&(kc=bh(kc,dr,Ei,Gu)),ji&&(kc=Zf(kc,ji,Qo,Gu)),Xl-=mh,Gu&&Xl<js){var vd=Pn(kc,Vd);return qa(X,Ce,rf,Yl.placeholder,Ft,kc,vd,ya,Qa,js-Xl)}var Oh=qs?Ft:this,Lh=Os?Oh[X]:X;return Xl=kc.length,ya?kc=$f(kc,ya):hl&&Xl>1&&kc.reverse(),$s&&Qa<Xl&&(kc.length=Qa),this&&this!==Lr&&this instanceof Yl&&(Lh=Cc||Ms(Lh)),Lh.apply(Oh,kc)}return Yl}function Gf(X,Ce){return function(Ft,dr){return Fs(Ft,X,Ce(dr),{})}}function Tf(X,Ce){return function(Ft,dr){var Ei;if(Ft===l&&dr===l)return Ce;if(Ft!==l&&(Ei=Ft),dr!==l){if(Ei===l)return dr;typeof Ft=="string"||typeof dr=="string"?(Ft=vf(Ft),dr=vf(dr)):(Ft=Cd(Ft),dr=Cd(dr)),Ei=X(Ft,dr)}return Ei}}function fd(X){return Ol(function(Ce){return Ce=Jr(Ce,Jn(qu())),Ml(function(Ft){var dr=this;return X(Ce,function(Ei){return or(Ei,dr,Ft)})})})}function eh(X,Ce){Ce=Ce===l?" ":vf(Ce);var Ft=Ce.length;if(Ft<2)return Ft?jf(Ce,X):Ce;var dr=jf(Ce,Ue(X/Oe(Ce)));return mr(Ce)?yc(pn(dr),0,X).join(""):dr.slice(0,X)}function Rf(X,Ce,Ft,dr){var Ei=Ce&R,ji=Ms(X);function Qo(){for(var ya=-1,Qa=arguments.length,js=-1,$s=dr.length,qs=zn($s+Qa),Os=this&&this!==Lr&&this instanceof Qo?ji:X;++js<$s;)qs[js]=dr[js];for(;Qa--;)qs[js++]=arguments[++ya];return or(Os,Ei?Ft:this,qs)}return Qo}function qf(X){return function(Ce,Ft,dr){return dr&&typeof dr!="number"&&ol(Ce,Ft,dr)&&(Ft=dr=l),Ce=qh(Ce),Ft===l?(Ft=Ce,Ce=0):Ft=qh(Ft),dr=dr===l?Ce<Ft?1:-1:qh(dr),Kd(Ce,Ft,dr,X)}}function kd(X){return function(Ce,Ft){return typeof Ce=="string"&&typeof Ft=="string"||(Ce=Ih(Ce),Ft=Ih(Ft)),X(Ce,Ft)}}function qa(X,Ce,Ft,dr,Ei,ji,Qo,ya,Qa,js){var $s=Ce&P,qs=$s?Qo:l,Os=$s?l:Qo,Gu=$s?ji:l,hl=$s?l:ji;Ce|=$s?A:j,Ce&=~($s?j:A),Ce&D||(Ce&=~(R|M));var Cc=[X,Ce,Ei,Gu,qs,hl,Os,ya,Qa,js],Yl=Ft.apply(l,Cc);return mu(X)&&_f(Yl,Cc),Yl.placeholder=dr,Wd(Yl,X,Ce)}function Gs(X){var Ce=Bi[X];return function(Ft,dr){if(Ft=Ih(Ft),dr=dr==null?0:vt(pc(dr),292),dr&&xn(Ft)){var Ei=(Ef(Ft)+"e").split("e"),ji=Ce(Ei[0]+"e"+(+Ei[1]+dr));return Ei=(Ef(ji)+"e").split("e"),+(Ei[0]+"e"+(+Ei[1]-dr))}return Ce(Ft)}}var hu=Ao&&1/nr(new Ao([,-0]))[1]==re?function(X){return new Ao(X)}:Iv;function du(X){return function(Ce){var Ft=fs(Ce);return Ft==tt?ai(Ce):Ft==ft?Ir(Ce):Cn(Ce,X(Ce))}}function Ys(X,Ce,Ft,dr,Ei,ji,Qo,ya){var Qa=Ce&M;if(!Qa&&typeof X!="function")throw new la(f);var js=dr?dr.length:0;if(js||(Ce&=~(A|j),dr=Ei=l),Qo=Qo===l?Qo:Wr(pc(Qo),0),ya=ya===l?ya:pc(ya),js-=Ei?Ei.length:0,Ce&j){var $s=dr,qs=Ei;dr=Ei=l}var Os=Qa?l:Mc(X),Gu=[X,Ce,Ft,dr,Ei,$s,qs,ji,Qo,ya];if(Os&&wd(Gu,Os),X=Gu[0],Ce=Gu[1],Ft=Gu[2],dr=Gu[3],Ei=Gu[4],ya=Gu[9]=Gu[9]===l?Qa?0:X.length:Wr(Gu[9]-js,0),!ya&&Ce&(P|T)&&(Ce&=~(P|T)),!Ce||Ce==R)var hl=Xd(X,Ce,Ft);else Ce==P||Ce==T?hl=Pf(X,Ce,ya):(Ce==A||Ce==(R|A))&&!Ei.length?hl=Rf(X,Ce,Ft,dr):hl=rf.apply(l,Gu);var Cc=Os?sc:_f;return Wd(Cc(hl,Gu),X,Ce)}function Pu(X,Ce,Ft,dr){return X===l||Dh(X,Ds[Ft])&&!Ls.call(dr,Ft)?Ce:X}function sl(X,Ce,Ft,dr,Ei,ji){return rd(X)&&rd(Ce)&&(ji.set(Ce,X),Vu(X,Ce,l,sl,ji),ji.delete(Ce)),X}function Tu(X){return _d(X)?l:X}function Yu(X,Ce,Ft,dr,Ei,ji){var Qo=Ft&S,ya=X.length,Qa=Ce.length;if(ya!=Qa&&!(Qo&&Qa>ya))return!1;var js=ji.get(X),$s=ji.get(Ce);if(js&&$s)return js==Ce&&$s==X;var qs=-1,Os=!0,Gu=Ft&O?new xo:l;for(ji.set(X,Ce),ji.set(Ce,X);++qs<ya;){var hl=X[qs],Cc=Ce[qs];if(dr)var Yl=Qo?dr(Cc,hl,qs,Ce,X,ji):dr(hl,Cc,qs,X,Ce,ji);if(Yl!==l){if(Yl)continue;Os=!1;break}if(Gu){if(!Jo(Ce,function(Xl,kc){if(!Ci(Gu,kc)&&(hl===Xl||Ei(hl,Xl,Ft,dr,ji)))return Gu.push(kc)})){Os=!1;break}}else if(!(hl===Cc||Ei(hl,Cc,Ft,dr,ji))){Os=!1;break}}return ji.delete(X),ji.delete(Ce),Os}function xu(X,Ce,Ft,dr,Ei,ji,Qo){switch(Ft){case ee:if(X.byteLength!=Ce.byteLength||X.byteOffset!=Ce.byteOffset)return!1;X=X.buffer,Ce=Ce.buffer;case et:return!(X.byteLength!=Ce.byteLength||!ji(new fl(X),new fl(Ce)));case Ee:case xe:case U:return Dh(+X,+Ce);case Tt:return X.name==Ce.name&&X.message==Ce.message;case Ye:case wt:return X==Ce+"";case tt:var ya=ai;case ft:var Qa=dr&S;if(ya||(ya=nr),X.size!=Ce.size&&!Qa)return!1;var js=Qo.get(X);if(js)return js==Ce;dr|=O,Qo.set(X,Ce);var $s=Yu(ya(X),ya(Ce),dr,Ei,ji,Qo);return Qo.delete(X),$s;case Ut:if(Ka)return Ka.call(X)==Ka.call(Ce)}return!1}function of(X,Ce,Ft,dr,Ei,ji){var Qo=Ft&S,ya=wc(X),Qa=ya.length,js=wc(Ce),$s=js.length;if(Qa!=$s&&!Qo)return!1;for(var qs=Qa;qs--;){var Os=ya[qs];if(!(Qo?Os in Ce:Ls.call(Ce,Os)))return!1}var Gu=ji.get(X),hl=ji.get(Ce);if(Gu&&hl)return Gu==Ce&&hl==X;var Cc=!0;ji.set(X,Ce),ji.set(Ce,X);for(var Yl=Qo;++qs<Qa;){Os=ya[qs];var Xl=X[Os],kc=Ce[Os];if(dr)var Gc=Qo?dr(kc,Xl,Os,Ce,X,ji):dr(Xl,kc,Os,X,Ce,ji);if(!(Gc===l?Xl===kc||Ei(Xl,kc,Ft,dr,ji):Gc)){Cc=!1;break}Yl||(Yl=Os=="constructor")}if(Cc&&!Yl){var Vd=X.constructor,mh=Ce.constructor;Vd!=mh&&"constructor"in X&&"constructor"in Ce&&!(typeof Vd=="function"&&Vd instanceof Vd&&typeof mh=="function"&&mh instanceof mh)&&(Cc=!1)}return ji.delete(X),ji.delete(Ce),Cc}function Ol(X){return Uf(Ah(X,l,Bs),X+"")}function wc(X){return Ii(X,Zd,pa)}function Ll(X){return Ii(X,oh,Va)}var Mc=ca?function(X){return ca.get(X)}:Iv;function Bl(X){for(var Ce=X.name+"",Ft=sa[Ce],dr=Ls.call(sa,Ce)?Ft.length:0;dr--;){var Ei=Ft[dr],ji=Ei.func;if(ji==null||ji==X)return Ei.name}return Ce}function Ic(X){var Ce=Ls.call(ii,"placeholder")?ii:X;return Ce.placeholder}function qu(){var X=ii.iteratee||Mv;return X=X===Mv?Fl:X,arguments.length?X(arguments[0],arguments[1]):X}function Vr(X,Ce){var Ft=X.__data__;return Zc(Ce)?Ft[typeof Ce=="string"?"string":"hash"]:Ft.map}function Ni(X){for(var Ce=Zd(X),Ft=Ce.length;Ft--;){var dr=Ce[Ft],Ei=X[dr];Ce[Ft]=[dr,Ei,ff(Ei)]}return Ce}function fo(X,Ce){var Ft=fr(X,Ce);return oc(Ft)?Ft:l}function Po(X){var Ce=Ls.call(X,Kn),Ft=X[Kn];try{X[Kn]=l;var dr=!0}catch{}var Ei=Iu.call(X);return dr&&(Ce?X[Kn]=Ft:delete X[Kn]),Ei}var pa=ht?function(X){return X==null?[]:(X=Xi(X),cr(ht(X),function(Ce){return en.call(X,Ce)}))}:_p,Va=ht?function(X){for(var Ce=[];X;)Qi(Ce,pa(X)),X=Bu(X);return Ce}:_p,fs=ko;(wi&&fs(new wi(new ArrayBuffer(1)))!=ee||mi&&fs(new mi)!=tt||ho&&fs(ho.resolve())!=le||Ao&&fs(new Ao)!=ft||Mo&&fs(new Mo)!=it)&&(fs=function(X){var Ce=ko(X),Ft=Ce==Y?X.constructor:l,dr=Ft?nh(Ft):"";if(dr)switch(dr){case Da:return ee;case La:return tt;case Ja:return le;case Ya:return ft;case Aa:return it}return Ce});function zs(X,Ce,Ft){for(var dr=-1,Ei=Ft.length;++dr<Ei;){var ji=Ft[dr],Qo=ji.size;switch(ji.type){case"drop":X+=Qo;break;case"dropRight":Ce-=Qo;break;case"take":Ce=vt(Ce,X+Qo);break;case"takeRight":X=Wr(X,Ce-Qo);break}}return{start:X,end:Ce}}function cu(X){var Ce=X.match(Wn);return Ce?Ce[1].split(Zn):[]}function Ru(X,Ce,Ft){Ce=lf(Ce,X);for(var dr=-1,Ei=Ce.length,ji=!1;++dr<Ei;){var Qo=Wf(Ce[dr]);if(!(ji=X!=null&&Ft(X,Qo)))break;X=X[Qo]}return ji||++dr!=Ei?ji:(Ei=X==null?0:X.length,!!Ei&&_v(Ei)&&gl(Qo,Ei)&&(gc(X)||Hh(X)))}function Vs(X){var Ce=X.length,Ft=new X.constructor(Ce);return Ce&&typeof X[0]=="string"&&Ls.call(X,"index")&&(Ft.index=X.index,Ft.input=X.input),Ft}function Ou(X){return typeof X.constructor=="function"&&!vc(X)?Wo(Bu(X)):{}}function iu(X,Ce,Ft){var dr=X.constructor;switch(Ce){case et:return Kf(X);case Ee:case xe:return new dr(+X);case ee:return ld(X,Ft);case I:case K:case ue:case De:case He:case Fe:case ze:case qe:case We:return kf(X,Ft);case tt:return new dr;case U:case wt:return new dr(X);case Ye:return Ld(X);case ft:return new dr;case Ut:return cf(X)}}function Uu(X,Ce){var Ft=Ce.length;if(!Ft)return X;var dr=Ft-1;return Ce[dr]=(Ft>1?"& ":"")+Ce[dr],Ce=Ce.join(Ft>2?", ":" "),X.replace(Zt,`{ /* [wrapped with `+Ce+`] */ `)}function kl(X){return gc(X)||Hh(X)||!!(qt&&X&&X[qt])}function gl(X,Ce){var Ft=typeof X;return Ce=Ce??H,!!Ce&&(Ft=="number"||Ft!="symbol"&&Ln.test(X))&&X>-1&&X%1==0&&X<Ce}function ol(X,Ce,Ft){if(!rd(Ft))return!1;var dr=typeof Ce;return(dr=="number"?hh(Ft)&&gl(Ce,Ft.length):dr=="string"&&Ce in Ft)?Dh(Ft[Ce],X):!1}function El(X,Ce){if(gc(X))return!1;var Ft=typeof X;return Ft=="number"||Ft=="symbol"||Ft=="boolean"||X==null||Eh(X)?!0:nn.test(X)||!Bt.test(X)||Ce!=null&&X in Xi(Ce)}function Zc(X){var Ce=typeof X;return Ce=="string"||Ce=="number"||Ce=="symbol"||Ce=="boolean"?X!=="__proto__":X===null}function mu(X){var Ce=Bl(X),Ft=ii[Ce];if(typeof Ft!="function"||!(Ce in Wa.prototype))return!1;if(X===Ft)return!0;var dr=Mc(Ft);return!!dr&&X===dr[0]}function Ps(X){return!!Us&&Us in X}var Kc=Is?Kh:vg;function vc(X){var Ce=X&&X.constructor,Ft=typeof Ce=="function"&&Ce.prototype||Ds;return X===Ft}function ff(X){return X===X&&!rd(X)}function Wc(X,Ce){return function(Ft){return Ft==null?!1:Ft[X]===Ce&&(Ce!==l||X in Xi(Ft))}}function Mf(X){var Ce=ts(X,function(dr){return Ft.size===h&&Ft.clear(),dr}),Ft=Ce.cache;return Ce}function wd(X,Ce){var Ft=X[1],dr=Ce[1],Ei=Ft|dr,ji=Ei<(R|M|ae),Qo=dr==ae&&Ft==P||dr==ae&&Ft==_&&X[7].length<=Ce[8]||dr==(ae|_)&&Ce[7].length<=Ce[8]&&Ft==P;if(!(ji||Qo))return X;dr&R&&(X[2]=Ce[2],Ei|=Ft&R?0:D);var ya=Ce[3];if(ya){var Qa=X[3];X[3]=Qa?bh(Qa,ya,Ce[4]):ya,X[4]=Qa?Pn(X[3],d):Ce[4]}return ya=Ce[5],ya&&(Qa=X[5],X[5]=Qa?Zf(Qa,ya,Ce[6]):ya,X[6]=Qa?Pn(X[5],d):Ce[6]),ya=Ce[7],ya&&(X[7]=ya),dr&ae&&(X[8]=X[8]==null?Ce[8]:vt(X[8],Ce[8])),X[9]==null&&(X[9]=Ce[9]),X[0]=Ce[0],X[1]=Ei,X}function mf(X){var Ce=[];if(X!=null)for(var Ft in Xi(X))Ce.push(Ft);return Ce}function Df(X){return Iu.call(X)}function Ah(X,Ce,Ft){return Ce=Wr(Ce===l?X.length-1:Ce,0),function(){for(var dr=arguments,Ei=-1,ji=Wr(dr.length-Ce,0),Qo=zn(ji);++Ei<ji;)Qo[Ei]=dr[Ce+Ei];Ei=-1;for(var ya=zn(Ce+1);++Ei<Ce;)ya[Ei]=dr[Ei];return ya[Ce]=Ft(Qo),or(X,this,ya)}}function Ed(X,Ce){return Ce.length<2?X:Dn(X,nf(Ce,0,-1))}function $f(X,Ce){for(var Ft=X.length,dr=vt(Ce.length,Ft),Ei=dc(X);dr--;){var ji=Ce[dr];X[dr]=gl(ji,Ft)?Ei[ji]:l}return X}function Dc(X,Ce){if(!(Ce==="constructor"&&typeof X[Ce]=="function")&&Ce!="__proto__")return X[Ce]}var _f=Ff(sc),wf=te||function(X,Ce){return Lr.setTimeout(X,Ce)},Uf=Ff(Uc);function Wd(X,Ce,Ft){var dr=Ce+"";return Uf(X,Uu(dr,Ze(cu(dr),Ft)))}function Ff(X){var Ce=0,Ft=0;return function(){var dr=Vt(),Ei=fe-(dr-Ft);if(Ft=dr,Ei>0){if(++Ce>=me)return arguments[0]}else Ce=0;return X.apply(l,arguments)}}function Qd(X,Ce){var Ft=-1,dr=X.length,Ei=dr-1;for(Ce=Ce===l?dr:Ce;++Ft<Ce;){var ji=qd(Ft,Ei),Qo=X[ji];X[ji]=X[Ft],X[Ft]=Qo}return X.length=Ce,X}var Nd=Mf(function(X){var Ce=[];return X.charCodeAt(0)===46&&Ce.push(""),X.replace(bt,function(Ft,dr,Ei,ji){Ce.push(Ei?ji.replace(gn,"$1"):dr||Ft)}),Ce});function Wf(X){if(typeof X=="string"||Eh(X))return X;var Ce=X+"";return Ce=="0"&&1/X==-re?"-0":Ce}function nh(X){if(X!=null){try{return nu.call(X)}catch{}try{return X+""}catch{}}return""}function Ze(X,Ce){return Mi(pe,function(Ft){var dr="_."+Ft[0];Ce&Ft[1]&&!ni(X,dr)&&X.push(dr)}),X.sort()}function lt(X){if(X instanceof Wa)return X.clone();var Ce=new _a(X.__wrapped__,X.__chain__);return Ce.__actions__=dc(X.__actions__),Ce.__index__=X.__index__,Ce.__values__=X.__values__,Ce}function Kt(X,Ce,Ft){(Ft?ol(X,Ce,Ft):Ce===l)?Ce=1:Ce=Wr(pc(Ce),0);var dr=X==null?0:X.length;if(!dr||Ce<1)return[];for(var Ei=0,ji=0,Qo=zn(Ue(dr/Ce));Ei<dr;)Qo[ji++]=nf(X,Ei,Ei+=Ce);return Qo}function Bn(X){for(var Ce=-1,Ft=X==null?0:X.length,dr=0,Ei=[];++Ce<Ft;){var ji=X[Ce];ji&&(Ei[dr++]=ji)}return Ei}function Ar(){var X=arguments.length;if(!X)return[];for(var Ce=zn(X-1),Ft=arguments[0],dr=X;dr--;)Ce[dr-1]=arguments[dr];return Qi(gc(Ft)?dc(Ft):[Ft],Sa(Ce,1))}var Tr=Ml(function(X,Ce){return nd(X)?_l(X,Sa(Ce,1,nd,!0)):[]}),Yr=Ml(function(X,Ce){var Ft=Dl(Ce);return nd(Ft)&&(Ft=l),nd(X)?_l(X,Sa(Ce,1,nd,!0),qu(Ft,2)):[]}),qr=Ml(function(X,Ce){var Ft=Dl(Ce);return nd(Ft)&&(Ft=l),nd(X)?_l(X,Sa(Ce,1,nd,!0),l,Ft):[]});function qi(X,Ce,Ft){var dr=X==null?0:X.length;return dr?(Ce=Ft||Ce===l?1:pc(Ce),nf(X,Ce<0?0:Ce,dr)):[]}function Co(X,Ce,Ft){var dr=X==null?0:X.length;return dr?(Ce=Ft||Ce===l?1:pc(Ce),Ce=dr-Ce,nf(X,0,Ce<0?0:Ce)):[]}function _o(X,Ce){return X&&X.length?sd(X,qu(Ce,3),!0,!0):[]}function go(X,Ce){return X&&X.length?sd(X,qu(Ce,3),!0):[]}function mo(X,Ce,Ft,dr){var Ei=X==null?0:X.length;return Ei?(Ft&&typeof Ft!="number"&&ol(X,Ce,Ft)&&(Ft=0,dr=Ei),Kl(X,Ce,Ft,dr)):[]}function Bo(X,Ce,Ft){var dr=X==null?0:X.length;if(!dr)return-1;var Ei=Ft==null?0:pc(Ft);return Ei<0&&(Ei=Wr(dr+Ei,0)),G(X,qu(Ce,3),Ei)}function Ba(X,Ce,Ft){var dr=X==null?0:X.length;if(!dr)return-1;var Ei=dr-1;return Ft!==l&&(Ei=pc(Ft),Ei=Ft<0?Wr(dr+Ei,0):vt(Ei,dr-1)),G(X,qu(Ce,3),Ei,!0)}function Bs(X){var Ce=X==null?0:X.length;return Ce?Sa(X,1):[]}function Xs(X){var Ce=X==null?0:X.length;return Ce?Sa(X,re):[]}function lu(X,Ce){var Ft=X==null?0:X.length;return Ft?(Ce=Ce===l?1:pc(Ce),Sa(X,Ce)):[]}function Cu(X){for(var Ce=-1,Ft=X==null?0:X.length,dr={};++Ce<Ft;){var Ei=X[Ce];dr[Ei[0]]=Ei[1]}return dr}function yu(X){return X&&X.length?X[0]:l}function Ku(X,Ce,Ft){var dr=X==null?0:X.length;if(!dr)return-1;var Ei=Ft==null?0:pc(Ft);return Ei<0&&(Ei=Wr(dr+Ei,0)),B(X,Ce,Ei)}function yl(X){var Ce=X==null?0:X.length;return Ce?nf(X,0,-1):[]}var $u=Ml(function(X){var Ce=Jr(X,rc);return Ce.length&&Ce[0]===X[0]?ms(Ce):[]}),Cl=Ml(function(X){var Ce=Dl(X),Ft=Jr(X,rc);return Ce===Dl(Ft)?Ce=l:Ft.pop(),Ft.length&&Ft[0]===X[0]?ms(Ft,qu(Ce,2)):[]}),Tc=Ml(function(X){var Ce=Dl(X),Ft=Jr(X,rc);return Ce=typeof Ce=="function"?Ce:l,Ce&&Ft.pop(),Ft.length&&Ft[0]===X[0]?ms(Ft,l,Ce):[]});function xl(X,Ce){return X==null?"":Hn.call(X,Ce)}function Dl(X){var Ce=X==null?0:X.length;return Ce?X[Ce-1]:l}function ec(X,Ce,Ft){var dr=X==null?0:X.length;if(!dr)return-1;var Ei=dr;return Ft!==l&&(Ei=pc(Ft),Ei=Ei<0?Wr(dr+Ei,0):vt(Ei,dr-1)),Ce===Ce?Ti(X,Ce,Ei):G(X,dt,Ei,!0)}function Oc(X,Ce){return X&&X.length?Bc(X,pc(Ce)):l}var zf=Ml(Sd);function Sd(X,Ce){return X&&X.length&&Ce&&Ce.length?Xc(X,Ce):X}function Bf(X,Ce,Ft){return X&&X.length&&Ce&&Ce.length?Xc(X,Ce,qu(Ft,2)):X}function Yf(X,Ce,Ft){return X&&X.length&&Ce&&Ce.length?Xc(X,Ce,l,Ft):X}var Lc=Ol(function(X,Ce){var Ft=X==null?0:X.length,dr=Au(X,Ce);return Zl(X,Jr(Ce,function(Ei){return gl(Ei,Ft)?+Ei:Ei}).sort(uh)),dr});function dd(X,Ce){var Ft=[];if(!(X&&X.length))return Ft;var dr=-1,Ei=[],ji=X.length;for(Ce=qu(Ce,3);++dr<ji;){var Qo=X[dr];Ce(Qo,dr,X)&&(Ft.push(Qo),Ei.push(dr))}return Zl(X,Ei),Ft}function af(X){return X==null?X:ar.call(X)}function Of(X,Ce,Ft){var dr=X==null?0:X.length;return dr?(Ft&&typeof Ft!="number"&&ol(X,Ce,Ft)?(Ce=0,Ft=dr):(Ce=Ce==null?0:pc(Ce),Ft=Ft===l?dr:pc(Ft)),nf(X,Ce,Ft)):[]}function Ad(X,Ce){return yd(X,Ce)}function hd(X,Ce,Ft){return pf(X,Ce,qu(Ft,2))}function ed(X,Ce){var Ft=X==null?0:X.length;if(Ft){var dr=yd(X,Ce);if(dr<Ft&&Dh(X[dr],Ce))return dr}return-1}function Fd(X,Ce){return yd(X,Ce,!0)}function ku(X,Ce,Ft){return pf(X,Ce,qu(Ft,2),!0)}function el(X,Ce){var Ft=X==null?0:X.length;if(Ft){var dr=yd(X,Ce,!0)-1;if(Dh(X[dr],Ce))return dr}return-1}function Ec(X){return X&&X.length?Lf(X):[]}function hc(X,Ce){return X&&X.length?Lf(X,qu(Ce,2)):[]}function uc(X){var Ce=X==null?0:X.length;return Ce?nf(X,1,Ce):[]}function td(X,Ce,Ft){return X&&X.length?(Ce=Ft||Ce===l?1:pc(Ce),nf(X,0,Ce<0?0:Ce)):[]}function sf(X,Ce,Ft){var dr=X==null?0:X.length;return dr?(Ce=Ft||Ce===l?1:pc(Ce),Ce=dr-Ce,nf(X,Ce<0?0:Ce,dr)):[]}function pd(X,Ce){return X&&X.length?sd(X,qu(Ce,3),!1,!0):[]}function ch(X,Ce){return X&&X.length?sd(X,qu(Ce,3)):[]}var fh=Ml(function(X){return jc(Sa(X,1,nd,!0))}),Cf=Ml(function(X){var Ce=Dl(X);return nd(Ce)&&(Ce=l),jc(Sa(X,1,nd,!0),qu(Ce,2))}),op=Ml(function(X){var Ce=Dl(X);return Ce=typeof Ce=="function"?Ce:l,jc(Sa(X,1,nd,!0),l,Ce)});function np(X){return X&&X.length?jc(X):[]}function Wi(X,Ce){return X&&X.length?jc(X,qu(Ce,2)):[]}function Oa(X,Ce){return Ce=typeof Ce=="function"?Ce:l,X&&X.length?jc(X,l,Ce):[]}function Ca(X){if(!(X&&X.length))return[];var Ce=0;return X=cr(X,function(Ft){if(nd(Ft))return Ce=Wr(Ft.length,Ce),!0}),Fn(Ce,function(Ft){return Jr(X,Pt(Ft))})}function Es(X,Ce){if(!(X&&X.length))return[];var Ft=Ca(X);return Ce==null?Ft:Jr(Ft,function(dr){return or(Ce,l,dr)})}var Ss=Ml(function(X,Ce){return nd(X)?_l(X,Ce):[]}),ds=Ml(function(X){return Yd(cr(X,nd))}),Ha=Ml(function(X){var Ce=Dl(X);return nd(Ce)&&(Ce=l),Yd(cr(X,nd),qu(Ce,2))}),bs=Ml(function(X){var Ce=Dl(X);return Ce=typeof Ce=="function"?Ce:l,Yd(cr(X,nd),l,Ce)}),Qs=Ml(Ca);function vu(X,Ce){return xd(X||[],Ce||[],Lu)}function Nu(X,Ce){return xd(X||[],Ce||[],ql)}var zl=Ml(function(X){var Ce=X.length,Ft=Ce>1?X[Ce-1]:l;return Ft=typeof Ft=="function"?(X.pop(),Ft):l,Es(X,Ft)});function bl(X){var Ce=ii(X);return Ce.__chain__=!0,Ce}function tl(X,Ce){return Ce(X),X}function lc(X,Ce){return Ce(X)}var qc=Ol(function(X){var Ce=X.length,Ft=Ce?X[0]:0,dr=this.__wrapped__,Ei=function(ji){return Au(ji,X)};return Ce>1||this.__actions__.length||!(dr instanceof Wa)||!gl(Ft)?this.thru(Ei):(dr=dr.slice(Ft,+Ft+(Ce?1:0)),dr.__actions__.push({func:lc,args:[Ei],thisArg:l}),new _a(dr,this.__chain__).thru(function(ji){return Ce&&!ji.length&&ji.push(l),ji}))});function df(){return bl(this)}function uf(){return new _a(this.value(),this.__chain__)}function Jd(){this.__values__===l&&(this.__values__=$g(this.value()));var X=this.__index__>=this.__values__.length,Ce=X?l:this.__values__[this.__index__++];return{done:X,value:Ce}}function dh(){return this}function Ph(X){for(var Ce,Ft=this;Ft instanceof Ra;){var dr=lt(Ft);dr.__index__=0,dr.__values__=l,Ce?Ei.__wrapped__=dr:Ce=dr;var Ei=dr;Ft=Ft.__wrapped__}return Ei.__wrapped__=X,Ce}function th(){var X=this.__wrapped__;if(X instanceof Wa){var Ce=X;return this.__actions__.length&&(Ce=new Wa(this)),Ce=Ce.reverse(),Ce.__actions__.push({func:lc,args:[af],thisArg:l}),new _a(Ce,this.__chain__)}return this.thru(af)}function Vh(){return ud(this.__wrapped__,this.__actions__)}var rh=Hc(function(X,Ce,Ft){Ls.call(X,Ft)?++X[Ft]:su(X,Ft,1)});function Th(X,Ce,Ft){var dr=gc(X)?Nn:Ql;return Ft&&ol(X,Ce,Ft)&&(Ce=l),dr(X,qu(Ce,3))}function Bh(X,Ce){var Ft=gc(X)?cr:ia;return Ft(X,qu(Ce,3))}var Rh=bf(Bo),wh=bf(Ba);function yp(X,Ce){return Sa(Xh(X,Ce),1)}function Ip(X,Ce){return Sa(Xh(X,Ce),re)}function rp(X,Ce,Ft){return Ft=Ft===l?1:pc(Ft),Sa(Xh(X,Ce),Ft)}function ev(X,Ce){var Ft=gc(X)?Mi:Hs;return Ft(X,qu(Ce,3))}function bp(X,Ce){var Ft=gc(X)?Ui:Pl;return Ft(X,qu(Ce,3))}var Lp=Hc(function(X,Ce,Ft){Ls.call(X,Ft)?X[Ft].push(Ce):su(X,Ft,[Ce])});function wp(X,Ce,Ft,dr){X=hh(X)?X:Sh(X),Ft=Ft&&!dr?pc(Ft):0;var Ei=X.length;return Ft<0&&(Ft=Wr(Ei+Ft,0)),jp(X)?Ft<=Ei&&X.indexOf(Ce,Ft)>-1:!!Ei&&B(X,Ce,Ft)>-1}var kp=Ml(function(X,Ce,Ft){var dr=-1,Ei=typeof Ce=="function",ji=hh(X)?zn(X.length):[];return Hs(X,function(Qo){ji[++dr]=Ei?or(Ce,Qo,Ft):ws(Qo,Ce,Ft)}),ji}),Np=Hc(function(X,Ce,Ft){su(X,Ft,Ce)});function Xh(X,Ce){var Ft=gc(X)?Jr:Jl;return Ft(X,qu(Ce,3))}function Qh(X,Ce,Ft,dr){return X==null?[]:(gc(Ce)||(Ce=Ce==null?[]:[Ce]),Ft=dr?l:Ft,gc(Ft)||(Ft=Ft==null?[]:[Ft]),hf(X,Ce,Ft))}var ap=Hc(function(X,Ce,Ft){X[Ft?0:1].push(Ce)},function(){return[[],[]]});function Fp(X,Ce,Ft){var dr=gc(X)?Fo:ut,Ei=arguments.length<3;return dr(X,qu(Ce,4),Ft,Ei,Hs)}function Mh(X,Ce,Ft){var dr=gc(X)?No:ut,Ei=arguments.length<3;return dr(X,qu(Ce,4),Ft,Ei,Pl)}function yv(X,Ce){var Ft=gc(X)?cr:ia;return Ft(X,xa(qu(Ce,3)))}function Ep(X){var Ce=gc(X)?$a:jd;return Ce(X)}function x(X,Ce,Ft){(Ft?ol(X,Ce,Ft):Ce===l)?Ce=1:Ce=pc(Ce);var dr=gc(X)?ns:Jf;return dr(X,Ce)}function $(X){var Ce=gc(X)?uu:Gd;return Ce(X)}function je(X){if(X==null)return 0;if(hh(X))return jp(X)?Oe(X):X.length;var Ce=fs(X);return Ce==tt||Ce==ft?X.size:Zu(X).length}function Mt(X,Ce,Ft){var dr=gc(X)?Jo:Dd;return Ft&&ol(X,Ce,Ft)&&(Ce=l),dr(X,qu(Ce,3))}var Tn=Ml(function(X,Ce){if(X==null)return[];var Ft=Ce.length;return Ft>1&&ol(X,Ce[0],Ce[1])?Ce=[]:Ft>2&&ol(Ce[0],Ce[1],Ce[2])&&(Ce=[Ce[0]]),hf(X,Sa(Ce,1),[])}),ur=Le||function(){return Lr.Date.now()};function Li(X,Ce){if(typeof Ce!="function")throw new la(f);return X=pc(X),function(){if(--X<1)return Ce.apply(this,arguments)}}function Vo(X,Ce,Ft){return Ce=Ft?l:Ce,Ce=X&&Ce==null?X.length:Ce,Ys(X,ae,l,l,l,l,Ce)}function ga(X,Ce){var Ft;if(typeof Ce!="function")throw new la(f);return X=pc(X),function(){return--X>0&&(Ft=Ce.apply(this,arguments)),X<=1&&(Ce=l),Ft}}var ps=Ml(function(X,Ce,Ft){var dr=R;if(Ft.length){var Ei=Pn(Ft,Ic(ps));dr|=A}return Ys(X,dr,Ce,Ft,Ei)}),tu=Ml(function(X,Ce,Ft){var dr=R|M;if(Ft.length){var Ei=Pn(Ft,Ic(tu));dr|=A}return Ys(Ce,dr,X,Ft,Ei)});function ru(X,Ce,Ft){Ce=Ft?l:Ce;var dr=Ys(X,P,l,l,l,l,l,Ce);return dr.placeholder=ru.placeholder,dr}function Ks(X,Ce,Ft){Ce=Ft?l:Ce;var dr=Ys(X,T,l,l,l,l,l,Ce);return dr.placeholder=Ks.placeholder,dr}function Xu(X,Ce,Ft){var dr,Ei,ji,Qo,ya,Qa,js=0,$s=!1,qs=!1,Os=!0;if(typeof X!="function")throw new la(f);Ce=Ih(Ce)||0,rd(Ft)&&($s=!!Ft.leading,qs="maxWait"in Ft,ji=qs?Wr(Ih(Ft.maxWait)||0,Ce):ji,Os="trailing"in Ft?!!Ft.trailing:Os);function Gu(vd){var Oh=dr,Lh=Ei;return dr=Ei=l,js=vd,Qo=X.apply(Lh,Oh),Qo}function hl(vd){return js=vd,ya=wf(Xl,Ce),$s?Gu(vd):Qo}function Cc(vd){var Oh=vd-Qa,Lh=vd-js,kh=Ce-Oh;return qs?vt(kh,ji-Lh):kh}function Yl(vd){var Oh=vd-Qa,Lh=vd-js;return Qa===l||Oh>=Ce||Oh<0||qs&&Lh>=ji}function Xl(){var vd=ur();if(Yl(vd))return kc(vd);ya=wf(Xl,Cc(vd))}function kc(vd){return ya=l,Os&&dr?Gu(vd):(dr=Ei=l,Qo)}function Gc(){ya!==l&&fc(ya),js=0,dr=Qa=Ei=ya=l}function Vd(){return ya===l?Qo:kc(ur())}function mh(){var vd=ur(),Oh=Yl(vd);if(dr=arguments,Ei=this,Qa=vd,Oh){if(ya===l)return hl(Qa);if(qs)return fc(ya),ya=wf(Xl,Ce),Gu(Qa)}return ya===l&&(ya=wf(Xl,Ce)),Qo}return mh.cancel=Gc,mh.flush=Vd,mh}var ul=Ml(function(X,Ce){return il(X,1,Ce)}),dl=Ml(function(X,Ce,Ft){return il(X,Ih(Ce)||0,Ft)});function Vf(X){return Ys(X,N)}function ts(X,Ce){if(typeof X!="function"||Ce!=null&&typeof Ce!="function")throw new la(f);var Ft=function(){var dr=arguments,Ei=Ce?Ce.apply(this,dr):dr[0],ji=Ft.cache;if(ji.has(Ei))return ji.get(Ei);var Qo=X.apply(this,dr);return Ft.cache=ji.set(Ei,Qo)||ji,Qo};return Ft.cache=new(ts.Cache||po),Ft}ts.Cache=po;function xa(X){if(typeof X!="function")throw new la(f);return function(){var Ce=arguments;switch(Ce.length){case 0:return!X.call(this);case 1:return!X.call(this,Ce[0]);case 2:return!X.call(this,Ce[0],Ce[1]);case 3:return!X.call(this,Ce[0],Ce[1],Ce[2])}return!X.apply(this,Ce)}}function ls(X){return ga(2,X)}var Eu=Qc(function(X,Ce){Ce=Ce.length==1&&gc(Ce[0])?Jr(Ce[0],Jn(qu())):Jr(Sa(Ce,1),Jn(qu()));var Ft=Ce.length;return Ml(function(dr){for(var Ei=-1,ji=vt(dr.length,Ft);++Ei<ji;)dr[Ei]=Ce[Ei].call(this,dr[Ei]);return or(X,this,dr)})}),al=Ml(function(X,Ce){var Ft=Pn(Ce,Ic(al));return Ys(X,A,l,Ce,Ft)}),Tl=Ml(function(X,Ce){var Ft=Pn(Ce,Ic(Tl));return Ys(X,j,l,Ce,Ft)}),Vl=Ol(function(X,Ce){return Ys(X,_,l,l,l,Ce)});function tc(X,Ce){if(typeof X!="function")throw new la(f);return Ce=Ce===l?Ce:pc(Ce),Ml(X,Ce)}function Pd(X,Ce){if(typeof X!="function")throw new la(f);return Ce=Ce==null?0:Wr(pc(Ce),0),Ml(function(Ft){var dr=Ft[Ce],Ei=yc(Ft,0,Ce);return dr&&Qi(Ei,dr),or(X,this,Ei)})}function Rc(X,Ce,Ft){var dr=!0,Ei=!0;if(typeof X!="function")throw new la(f);return rd(Ft)&&(dr="leading"in Ft?!!Ft.leading:dr,Ei="trailing"in Ft?!!Ft.trailing:Ei),Xu(X,Ce,{leading:dr,maxWait:Ce,trailing:Ei})}function jh(X){return Vo(X,1)}function bv(X,Ce){return al(Pc(Ce),X)}function Dg(){if(!arguments.length)return[];var X=arguments[0];return gc(X)?X:[X]}function Jh(X){return bu(X,w)}function tv(X,Ce){return Ce=typeof Ce=="function"?Ce:l,bu(X,w,Ce)}function Mm(X){return bu(X,b|w)}function Dm(X,Ce){return Ce=typeof Ce=="function"?Ce:l,bu(X,b|w,Ce)}function Xv(X,Ce){return Ce==null||Wl(X,Ce,Zd(Ce))}function Dh(X,Ce){return X===Ce||X!==X&&Ce!==Ce}var Im=kd(fa),Lm=kd(function(X,Ce){return X>=Ce}),Hh=fu(function(){return arguments}())?fu:function(X){return Xf(X)&&Ls.call(X,"callee")&&!en.call(X,"callee")},gc=zn.isArray,km=Ko?Jn(Ko):wu;function hh(X){return X!=null&&_v(X.length)&&!Kh(X)}function nd(X){return Xf(X)&&hh(X)}function Qv(X){return X===!0||X===!1||Xf(X)&&ko(X)==Ee}var Zh=Gt||vg,Ig=Ie?Jn(Ie):Du;function nv(X){return Xf(X)&&X.nodeType===1&&!_d(X)}function wv(X){if(X==null)return!0;if(hh(X)&&(gc(X)||typeof X=="string"||typeof X.splice=="function"||Zh(X)||up(X)||Hh(X)))return!X.length;var Ce=fs(X);if(Ce==tt||Ce==ft)return!X.size;if(vc(X))return!Zu(X).length;for(var Ft in X)if(Ls.call(X,Ft))return!1;return!0}function rv(X,Ce){return zu(X,Ce)}function Ev(X,Ce,Ft){Ft=typeof Ft=="function"?Ft:l;var dr=Ft?Ft(X,Ce):l;return dr===l?zu(X,Ce,l,Ft):!!dr}function Sv(X){if(!Xf(X))return!1;var Ce=ko(X);return Ce==Tt||Ce==nt||typeof X.message=="string"&&typeof X.name=="string"&&!_d(X)}function Lg(X){return typeof X=="number"&&xn(X)}function Kh(X){if(!rd(X))return!1;var Ce=ko(X);return Ce==pt||Ce==Rt||Ce==Ae||Ce==ke}function ih(X){return typeof X=="number"&&X==pc(X)}function _v(X){return typeof X=="number"&&X>-1&&X%1==0&&X<=H}function rd(X){var Ce=typeof X;return X!=null&&(Ce=="object"||Ce=="function")}function Xf(X){return X!=null&&typeof X=="object"}var sp=yt?Jn(yt):bc;function kg(X,Ce){return X===Ce||Gl(X,Ce,Ni(Ce))}function Nm(X,Ce,Ft){return Ft=typeof Ft=="function"?Ft:l,Gl(X,Ce,Ni(Ce),Ft)}function Fm(X){return Fg(X)&&X!=+X}function Bm(X){if(Kc(X))throw new si(u);return oc(X)}function jm(X){return X===null}function Ng(X){return X==null}function Fg(X){return typeof X=="number"||Xf(X)&&ko(X)==U}function _d(X){if(!Xf(X)||ko(X)!=Y)return!1;var Ce=Bu(X);if(Ce===null)return!0;var Ft=Ls.call(Ce,"constructor")&&Ce.constructor;return typeof Ft=="function"&&Ft instanceof Ft&&nu.call(Ft)==Wu}var Bp=on?Jn(on):ac;function Jv(X){return ih(X)&&X>=-H&&X<=H}var Zv=_n?Jn(_n):jl;function jp(X){return typeof X=="string"||!gc(X)&&Xf(X)&&ko(X)==wt}function Eh(X){return typeof X=="symbol"||Xf(X)&&ko(X)==Ut}var up=er?Jn(er):nc;function Bg(X){return X===l}function $m(X){return Xf(X)&&fs(X)==it}function jg(X){return Xf(X)&&ko(X)==At}var Um=kd(tf),Wm=kd(function(X,Ce){return X<=Ce});function $g(X){if(!X)return[];if(hh(X))return jp(X)?pn(X):dc(X);if(In&&X[In])return Rr(X[In]());var Ce=fs(X),Ft=Ce==tt?ai:Ce==ft?nr:Sh;return Ft(X)}function qh(X){if(!X)return X===0?X:0;if(X=Ih(X),X===re||X===-re){var Ce=X<0?-1:1;return Ce*V}return X===X?X:0}function pc(X){var Ce=qh(X),Ft=Ce%1;return Ce===Ce?Ft?Ce-Ft:Ce:0}function qv(X){return X?wl(pc(X),0,Te):0}function Ih(X){if(typeof X=="number")return X;if(Eh(X))return Q;if(rd(X)){var Ce=typeof X.valueOf=="function"?X.valueOf():X;X=rd(Ce)?Ce+"":Ce}if(typeof X!="string")return X===0?X:+X;X=tr(X);var Ft=cn.test(X);return Ft||Or.test(X)?as(X.slice(2),Ft?2:8):hn.test(X)?Q:+X}function Ov(X){return yf(X,oh(X))}function Ug(X){return X?wl(pc(X),-H,H):X===0?X:0}function Ef(X){return X==null?"":vf(X)}var Wg=Jc(function(X,Ce){if(vc(Ce)||hh(Ce)){yf(Ce,Zd(Ce),X);return}for(var Ft in Ce)Ls.call(Ce,Ft)&&Lu(X,Ft,Ce[Ft])}),ph=Jc(function(X,Ce){yf(Ce,oh(Ce),X)}),$p=Jc(function(X,Ce,Ft,dr){yf(Ce,oh(Ce),X,dr)}),lp=Jc(function(X,Ce,Ft,dr){yf(Ce,Zd(Ce),X,dr)}),zm=Ol(Au);function Vm(X,Ce){var Ft=Wo(X);return Ce==null?Ft:pu(Ft,Ce)}var iv=Ml(function(X,Ce){X=Xi(X);var Ft=-1,dr=Ce.length,Ei=dr>2?Ce[2]:l;for(Ei&&ol(Ce[0],Ce[1],Ei)&&(dr=1);++Ft<dr;)for(var ji=Ce[Ft],Qo=oh(ji),ya=-1,Qa=Qo.length;++ya<Qa;){var js=Qo[ya],$s=X[js];($s===l||Dh($s,Ds[js])&&!Ls.call(X,js))&&(X[js]=ji[js])}return X}),zg=Ml(function(X){return X.push(l,sl),or(cp,l,X)});function Vg(X,Ce){return se(X,qu(Ce,3),Ns)}function eg(X,Ce){return se(X,qu(Ce,3),Xt)}function Up(X,Ce){return X==null?X:Ea(X,qu(Ce,3),oh)}function Cv(X,Ce){return X==null?X:rs(X,qu(Ce,3),oh)}function Hg(X,Ce){return X&&Ns(X,qu(Ce,3))}function Hm(X,Ce){return X&&Xt(X,qu(Ce,3))}function Kg(X){return X==null?[]:bn(X,Zd(X))}function Km(X){return X==null?[]:bn(X,oh(X))}function xv(X,Ce,Ft){var dr=X==null?l:Dn(X,Ce);return dr===l?Ft:dr}function Gm(X,Ce){return X!=null&&Ru(X,Ce,Zo)}function tg(X,Ce){return X!=null&&Ru(X,Ce,Fa)}var Av=Gf(function(X,Ce,Ft){Ce!=null&&typeof Ce.toString!="function"&&(Ce=Iu.call(Ce)),X[Ce]=Ft},hg(_h)),Ym=Gf(function(X,Ce,Ft){Ce!=null&&typeof Ce.toString!="function"&&(Ce=Iu.call(Ce)),Ls.call(X,Ce)?X[Ce].push(Ft):X[Ce]=[Ft]},qu),Wp=Ml(ws);function Zd(X){return hh(X)?Za(X):Zu(X)}function oh(X){return hh(X)?Za(X,!0):Ac(X)}function Gg(X,Ce){var Ft={};return Ce=qu(Ce,3),Ns(X,function(dr,Ei,ji){su(Ft,Ce(dr,Ei,ji),dr)}),Ft}function Pv(X,Ce){var Ft={};return Ce=qu(Ce,3),Ns(X,function(dr,Ei,ji){su(Ft,Ei,Ce(dr,Ei,ji))}),Ft}var ng=Jc(function(X,Ce,Ft){Vu(X,Ce,Ft)}),cp=Jc(function(X,Ce,Ft,dr){Vu(X,Ce,Ft,dr)}),zp=Ol(function(X,Ce){var Ft={};if(X==null)return Ft;var dr=!1;Ce=Jr(Ce,function(ji){return ji=lf(ji,X),dr||(dr=ji.length>1),ji}),yf(X,Ll(X),Ft),dr&&(Ft=bu(Ft,b|y|w,Tu));for(var Ei=Ce.length;Ei--;)gf(Ft,Ce[Ei]);return Ft});function rg(X,Ce){return Tv(X,xa(qu(Ce)))}var ig=Ol(function(X,Ce){return X==null?{}:Vc(X,Ce)});function Tv(X,Ce){if(X==null)return{};var Ft=Jr(Ll(X),function(dr){return[dr]});return Ce=qu(Ce),Od(X,Ft,function(dr,Ei){return Ce(dr,Ei[0])})}function Xm(X,Ce,Ft){Ce=lf(Ce,X);var dr=-1,Ei=Ce.length;for(Ei||(Ei=1,X=l);++dr<Ei;){var ji=X==null?l:X[Wf(Ce[dr])];ji===l&&(dr=Ei,ji=Ft),X=Kh(ji)?ji.call(X):ji}return X}function Qm(X,Ce,Ft){return X==null?X:ql(X,Ce,Ft)}function Jm(X,Ce,Ft,dr){return dr=typeof dr=="function"?dr:l,X==null?X:ql(X,Ce,Ft,dr)}var og=du(Zd),Yg=du(oh);function Zm(X,Ce,Ft){var dr=gc(X),Ei=dr||Zh(X)||up(X);if(Ce=qu(Ce,4),Ft==null){var ji=X&&X.constructor;Ei?Ft=dr?new ji:[]:rd(X)?Ft=Kh(ji)?Wo(Bu(X)):{}:Ft={}}return(Ei?Mi:Ns)(X,function(Qo,ya,Qa){return Ce(Ft,Qo,ya,Qa)}),Ft}function ov(X,Ce){return X==null?!0:gf(X,Ce)}function Xg(X,Ce,Ft){return X==null?X:Id(X,Ce,Pc(Ft))}function qm(X,Ce,Ft,dr){return dr=typeof dr=="function"?dr:l,X==null?X:Id(X,Ce,Pc(Ft),dr)}function Sh(X){return X==null?[]:ei(X,Zd(X))}function e0(X){return X==null?[]:ei(X,oh(X))}function Qg(X,Ce,Ft){return Ft===l&&(Ft=Ce,Ce=l),Ft!==l&&(Ft=Ih(Ft),Ft=Ft===Ft?Ft:0),Ce!==l&&(Ce=Ih(Ce),Ce=Ce===Ce?Ce:0),wl(Ih(X),Ce,Ft)}function Jg(X,Ce,Ft){return Ce=qh(Ce),Ft===l?(Ft=Ce,Ce=0):Ft=qh(Ft),X=Ih(X),Ua(X,Ce,Ft)}function t0(X,Ce,Ft){if(Ft&&typeof Ft!="boolean"&&ol(X,Ce,Ft)&&(Ce=Ft=l),Ft===l&&(typeof Ce=="boolean"?(Ft=Ce,Ce=l):typeof X=="boolean"&&(Ft=X,X=l)),X===l&&Ce===l?(X=0,Ce=1):(X=qh(X),Ce===l?(Ce=X,X=0):Ce=qh(Ce)),X>Ce){var dr=X;X=Ce,Ce=dr}if(Ft||X%1||Ce%1){var Ei=yn();return vt(X+Ei*(Ce-X+ro("1e-"+((Ei+"").length-1))),Ce)}return qd(X,Ce)}var ag=bd(function(X,Ce,Ft){return Ce=Ce.toLowerCase(),X+(Ft?Zg(Ce):Ce)});function Zg(X){return ep(Ef(X).toLowerCase())}function qg(X){return X=Ef(X),X&&X.replace(En,Eo).replace(So,"")}function sg(X,Ce,Ft){X=Ef(X),Ce=vf(Ce);var dr=X.length;Ft=Ft===l?dr:wl(pc(Ft),0,dr);var Ei=Ft;return Ft-=Ce.length,Ft>=0&&X.slice(Ft,Ei)==Ce}function n0(X){return X=Ef(X),X&&ge.test(X)?X.replace(Me,Yo):X}function r0(X){return X=Ef(X),X&&$t.test(X)?X.replace(at,"\\$&"):X}var em=bd(function(X,Ce,Ft){return X+(Ft?"-":"")+Ce.toLowerCase()}),tm=bd(function(X,Ce,Ft){return X+(Ft?" ":"")+Ce.toLowerCase()}),i0=Ud("toLowerCase");function o0(X,Ce,Ft){X=Ef(X),Ce=pc(Ce);var dr=Ce?Oe(X):0;if(!Ce||dr>=Ce)return X;var Ei=(Ce-dr)/2;return eh(rt(Ei),Ft)+X+eh(Ue(Ei),Ft)}function ug(X,Ce,Ft){X=Ef(X),Ce=pc(Ce);var dr=Ce?Oe(X):0;return Ce&&dr<Ce?X+eh(Ce-dr,Ft):X}function ah(X,Ce,Ft){X=Ef(X),Ce=pc(Ce);var dr=Ce?Oe(X):0;return Ce&&dr<Ce?eh(Ce-dr,Ft)+X:X}function a0(X,Ce,Ft){return Ft||Ce==null?Ce=0:Ce&&(Ce=+Ce),dn(Ef(X).replace(On,""),Ce||0)}function s0(X,Ce,Ft){return(Ft?ol(X,Ce,Ft):Ce===l)?Ce=1:Ce=pc(Ce),jf(Ef(X),Ce)}function u0(){var X=arguments,Ce=Ef(X[0]);return X.length<3?Ce:Ce.replace(X[1],X[2])}var l0=bd(function(X,Ce,Ft){return X+(Ft?"_":"")+Ce.toLowerCase()});function nm(X,Ce,Ft){return Ft&&typeof Ft!="number"&&ol(X,Ce,Ft)&&(Ce=Ft=l),Ft=Ft===l?Te:Ft>>>0,Ft?(X=Ef(X),X&&(typeof Ce=="string"||Ce!=null&&!Bp(Ce))&&(Ce=vf(Ce),!Ce&&mr(X))?yc(pn(X),0,Ft):X.split(Ce,Ft)):[]}var c0=bd(function(X,Ce,Ft){return X+(Ft?" ":"")+ep(Ce)});function f0(X,Ce,Ft){return X=Ef(X),Ft=Ft==null?0:wl(pc(Ft),0,X.length),Ce=vf(Ce),X.slice(Ft,Ft+Ce.length)==Ce}function rm(X,Ce,Ft){var dr=ii.templateSettings;Ft&&ol(X,Ce,Ft)&&(Ce=l),X=Ef(X),Ce=$p({},Ce,dr,Pu);var Ei=$p({},Ce.imports,dr.imports,Pu),ji=Zd(Ei),Qo=ei(Ei,ji),ya,Qa,js=0,$s=Ce.interpolate||Gn,qs="__p += '",Os=vo((Ce.escape||Gn).source+"|"+$s.source+"|"+($s===Qe?Qt:Gn).source+"|"+(Ce.evaluate||Gn).source+"|$","g"),Gu="//# sourceURL="+(Ls.call(Ce,"sourceURL")?(Ce.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ta+"]")+` `;X.replace(Os,function(Yl,Xl,kc,Gc,Vd,mh){return kc||(kc=Gc),qs+=X.slice(js,mh).replace(rr,Xn),Xl&&(ya=!0,qs+=`' + __e(`+Xl+`) + '`),Vd&&(Qa=!0,qs+=`'; `+Vd+`; __p += '`),kc&&(qs+=`' + ((__t = (`+kc+`)) == null ? '' : __t) + '`),js=mh+Yl.length,Yl}),qs+=`'; `;var hl=Ls.call(Ce,"variable")&&Ce.variable;if(!hl)qs=`with (obj) { `+qs+` } `;else if(Xe.test(hl))throw new si(p);qs=(Qa?qs.replace(_t,""):qs).replace(ct,"$1").replace(Ge,"$1;"),qs="function("+(hl||"obj")+`) { `+(hl?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(ya?", __e = _.escape":"")+(Qa?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+qs+`return __p }`;var Cc=fg(function(){return Ki(ji,Gu+"return "+qs).apply(l,Qo)});if(Cc.source=qs,Sv(Cc))throw Cc;return Cc}function d0(X){return Ef(X).toLowerCase()}function h0(X){return Ef(X).toUpperCase()}function p0(X,Ce,Ft){if(X=Ef(X),X&&(Ft||Ce===l))return tr(X);if(!X||!(Ce=vf(Ce)))return X;var dr=pn(X),Ei=pn(Ce),ji=zi(dr,Ei),Qo=co(dr,Ei)+1;return yc(dr,ji,Qo).join("")}function av(X,Ce,Ft){if(X=Ef(X),X&&(Ft||Ce===l))return X.slice(0,Qn(X)+1);if(!X||!(Ce=vf(Ce)))return X;var dr=pn(X),Ei=co(dr,pn(Ce))+1;return yc(dr,0,Ei).join("")}function lg(X,Ce,Ft){if(X=Ef(X),X&&(Ft||Ce===l))return X.replace(On,"");if(!X||!(Ce=vf(Ce)))return X;var dr=pn(X),Ei=zi(dr,pn(Ce));return yc(dr,Ei).join("")}function im(X,Ce){var Ft=W,dr=he;if(rd(Ce)){var Ei="separator"in Ce?Ce.separator:Ei;Ft="length"in Ce?pc(Ce.length):Ft,dr="omission"in Ce?vf(Ce.omission):dr}X=Ef(X);var ji=X.length;if(mr(X)){var Qo=pn(X);ji=Qo.length}if(Ft>=ji)return X;var ya=Ft-Oe(dr);if(ya<1)return dr;var Qa=Qo?yc(Qo,0,ya).join(""):X.slice(0,ya);if(Ei===l)return Qa+dr;if(Qo&&(ya+=Qa.length-ya),Bp(Ei)){if(X.slice(ya).search(Ei)){var js,$s=Qa;for(Ei.global||(Ei=vo(Ei.source,Ef(Dt.exec(Ei))+"g")),Ei.lastIndex=0;js=Ei.exec($s);)var qs=js.index;Qa=Qa.slice(0,qs===l?ya:qs)}}else if(X.indexOf(vf(Ei),ya)!=ya){var Os=Qa.lastIndexOf(Ei);Os>-1&&(Qa=Qa.slice(0,Os))}return Qa+dr}function vh(X){return X=Ef(X),X&&ie.test(X)?X.replace(st,Sr):X}var zd=bd(function(X,Ce,Ft){return X+(Ft?" ":"")+Ce.toUpperCase()}),ep=Ud("toUpperCase");function cg(X,Ce,Ft){return X=Ef(X),Ce=Ft?l:Ce,Ce===l?yr(X)?Ve(X):Z(X):X.match(Ce)||[]}var fg=Ml(function(X,Ce){try{return or(X,l,Ce)}catch(Ft){return Sv(Ft)?Ft:new si(Ft)}}),dg=Ol(function(X,Ce){return Mi(Ce,function(Ft){Ft=Wf(Ft),su(X,Ft,ps(X[Ft],X))}),X});function v0(X){var Ce=X==null?0:X.length,Ft=qu();return X=Ce?Jr(X,function(dr){if(typeof dr[1]!="function")throw new la(f);return[Ft(dr[0]),dr[1]]}):[],Ml(function(dr){for(var Ei=-1;++Ei<Ce;){var ji=X[Ei];if(or(ji[0],this,dr))return or(ji[1],this,dr)}})}function Rv(X){return Ul(bu(X,b))}function hg(X){return function(){return X}}function om(X,Ce){return X==null||X!==X?Ce:X}var g0=cd(),am=cd(!0);function _h(X){return X}function Mv(X){return Fl(typeof X=="function"?X:bu(X,b))}function m0(X){return ml(bu(X,b))}function y0(X,Ce){return vl(X,bu(Ce,b))}var sm=Ml(function(X,Ce){return function(Ft){return ws(Ft,X,Ce)}}),b0=Ml(function(X,Ce){return function(Ft){return ws(X,Ft,Ce)}});function Dv(X,Ce,Ft){var dr=Zd(Ce),Ei=bn(Ce,dr);Ft==null&&!(rd(Ce)&&(Ei.length||!dr.length))&&(Ft=Ce,Ce=X,X=this,Ei=bn(Ce,Zd(Ce)));var ji=!(rd(Ft)&&"chain"in Ft)||!!Ft.chain,Qo=Kh(X);return Mi(Ei,function(ya){var Qa=Ce[ya];X[ya]=Qa,Qo&&(X.prototype[ya]=function(){var js=this.__chain__;if(ji||js){var $s=X(this.__wrapped__),qs=$s.__actions__=dc(this.__actions__);return qs.push({func:Qa,args:arguments,thisArg:X}),$s.__chain__=js,$s}return Qa.apply(X,Qi([this.value()],arguments))})}),X}function w0(){return Lr._===this&&(Lr._=rl),this}function Iv(){}function E0(X){return X=pc(X),Ml(function(Ce){return Bc(Ce,X)})}var S0=fd(Jr),Lv=fd(Nn),Vp=fd(Jo);function pg(X){return El(X)?Pt(Wf(X)):_c(X)}function _0(X){return function(Ce){return X==null?l:Dn(X,Ce)}}var O0=qf(),Sp=qf(!0);function _p(){return[]}function vg(){return!1}function gg(){return{}}function um(){return""}function sv(){return!0}function lm(X,Ce){if(X=pc(X),X<1||X>H)return[];var Ft=Te,dr=vt(X,Te);Ce=qu(Ce),X-=Te;for(var Ei=Fn(dr,Ce);++Ft<X;)Ce(Ft);return Ei}function cm(X){return gc(X)?Jr(X,Wf):Eh(X)?[X]:dc(Nd(Ef(X)))}function Op(X){var Ce=++gu;return Ef(X)+Ce}var fm=Tf(function(X,Ce){return X+Ce},0),dm=Gs("ceil"),kv=Tf(function(X,Ce){return X/Ce},1),uv=Gs("floor");function Nv(X){return X&&X.length?ll(X,_h,fa):l}function C0(X,Ce){return X&&X.length?ll(X,qu(Ce,2),fa):l}function hm(X){return Lt(X,_h)}function mg(X,Ce){return Lt(X,qu(Ce,2))}function pm(X){return X&&X.length?ll(X,_h,tf):l}function Hl(X,Ce){return X&&X.length?ll(X,qu(Ce,2),tf):l}var Hp=Tf(function(X,Ce){return X*Ce},1),$c=Gs("round"),id=Tf(function(X,Ce){return X-Ce},0);function Fv(X){return X&&X.length?Ht(X,_h):0}function gh(X,Ce){return X&&X.length?Ht(X,qu(Ce,2)):0}return ii.after=Li,ii.ary=Vo,ii.assign=Wg,ii.assignIn=ph,ii.assignInWith=$p,ii.assignWith=lp,ii.at=zm,ii.before=ga,ii.bind=ps,ii.bindAll=dg,ii.bindKey=tu,ii.castArray=Dg,ii.chain=bl,ii.chunk=Kt,ii.compact=Bn,ii.concat=Ar,ii.cond=v0,ii.conforms=Rv,ii.constant=hg,ii.countBy=rh,ii.create=Vm,ii.curry=ru,ii.curryRight=Ks,ii.debounce=Xu,ii.defaults=iv,ii.defaultsDeep=zg,ii.defer=ul,ii.delay=dl,ii.difference=Tr,ii.differenceBy=Yr,ii.differenceWith=qr,ii.drop=qi,ii.dropRight=Co,ii.dropRightWhile=_o,ii.dropWhile=go,ii.fill=mo,ii.filter=Bh,ii.flatMap=yp,ii.flatMapDeep=Ip,ii.flatMapDepth=rp,ii.flatten=Bs,ii.flattenDeep=Xs,ii.flattenDepth=lu,ii.flip=Vf,ii.flow=g0,ii.flowRight=am,ii.fromPairs=Cu,ii.functions=Kg,ii.functionsIn=Km,ii.groupBy=Lp,ii.initial=yl,ii.intersection=$u,ii.intersectionBy=Cl,ii.intersectionWith=Tc,ii.invert=Av,ii.invertBy=Ym,ii.invokeMap=kp,ii.iteratee=Mv,ii.keyBy=Np,ii.keys=Zd,ii.keysIn=oh,ii.map=Xh,ii.mapKeys=Gg,ii.mapValues=Pv,ii.matches=m0,ii.matchesProperty=y0,ii.memoize=ts,ii.merge=ng,ii.mergeWith=cp,ii.method=sm,ii.methodOf=b0,ii.mixin=Dv,ii.negate=xa,ii.nthArg=E0,ii.omit=zp,ii.omitBy=rg,ii.once=ls,ii.orderBy=Qh,ii.over=S0,ii.overArgs=Eu,ii.overEvery=Lv,ii.overSome=Vp,ii.partial=al,ii.partialRight=Tl,ii.partition=ap,ii.pick=ig,ii.pickBy=Tv,ii.property=pg,ii.propertyOf=_0,ii.pull=zf,ii.pullAll=Sd,ii.pullAllBy=Bf,ii.pullAllWith=Yf,ii.pullAt=Lc,ii.range=O0,ii.rangeRight=Sp,ii.rearg=Vl,ii.reject=yv,ii.remove=dd,ii.rest=tc,ii.reverse=af,ii.sampleSize=x,ii.set=Qm,ii.setWith=Jm,ii.shuffle=$,ii.slice=Of,ii.sortBy=Tn,ii.sortedUniq=Ec,ii.sortedUniqBy=hc,ii.split=nm,ii.spread=Pd,ii.tail=uc,ii.take=td,ii.takeRight=sf,ii.takeRightWhile=pd,ii.takeWhile=ch,ii.tap=tl,ii.throttle=Rc,ii.thru=lc,ii.toArray=$g,ii.toPairs=og,ii.toPairsIn=Yg,ii.toPath=cm,ii.toPlainObject=Ov,ii.transform=Zm,ii.unary=jh,ii.union=fh,ii.unionBy=Cf,ii.unionWith=op,ii.uniq=np,ii.uniqBy=Wi,ii.uniqWith=Oa,ii.unset=ov,ii.unzip=Ca,ii.unzipWith=Es,ii.update=Xg,ii.updateWith=qm,ii.values=Sh,ii.valuesIn=e0,ii.without=Ss,ii.words=cg,ii.wrap=bv,ii.xor=ds,ii.xorBy=Ha,ii.xorWith=bs,ii.zip=Qs,ii.zipObject=vu,ii.zipObjectDeep=Nu,ii.zipWith=zl,ii.entries=og,ii.entriesIn=Yg,ii.extend=ph,ii.extendWith=$p,Dv(ii,ii),ii.add=fm,ii.attempt=fg,ii.camelCase=ag,ii.capitalize=Zg,ii.ceil=dm,ii.clamp=Qg,ii.clone=Jh,ii.cloneDeep=Mm,ii.cloneDeepWith=Dm,ii.cloneWith=tv,ii.conformsTo=Xv,ii.deburr=qg,ii.defaultTo=om,ii.divide=kv,ii.endsWith=sg,ii.eq=Dh,ii.escape=n0,ii.escapeRegExp=r0,ii.every=Th,ii.find=Rh,ii.findIndex=Bo,ii.findKey=Vg,ii.findLast=wh,ii.findLastIndex=Ba,ii.findLastKey=eg,ii.floor=uv,ii.forEach=ev,ii.forEachRight=bp,ii.forIn=Up,ii.forInRight=Cv,ii.forOwn=Hg,ii.forOwnRight=Hm,ii.get=xv,ii.gt=Im,ii.gte=Lm,ii.has=Gm,ii.hasIn=tg,ii.head=yu,ii.identity=_h,ii.includes=wp,ii.indexOf=Ku,ii.inRange=Jg,ii.invoke=Wp,ii.isArguments=Hh,ii.isArray=gc,ii.isArrayBuffer=km,ii.isArrayLike=hh,ii.isArrayLikeObject=nd,ii.isBoolean=Qv,ii.isBuffer=Zh,ii.isDate=Ig,ii.isElement=nv,ii.isEmpty=wv,ii.isEqual=rv,ii.isEqualWith=Ev,ii.isError=Sv,ii.isFinite=Lg,ii.isFunction=Kh,ii.isInteger=ih,ii.isLength=_v,ii.isMap=sp,ii.isMatch=kg,ii.isMatchWith=Nm,ii.isNaN=Fm,ii.isNative=Bm,ii.isNil=Ng,ii.isNull=jm,ii.isNumber=Fg,ii.isObject=rd,ii.isObjectLike=Xf,ii.isPlainObject=_d,ii.isRegExp=Bp,ii.isSafeInteger=Jv,ii.isSet=Zv,ii.isString=jp,ii.isSymbol=Eh,ii.isTypedArray=up,ii.isUndefined=Bg,ii.isWeakMap=$m,ii.isWeakSet=jg,ii.join=xl,ii.kebabCase=em,ii.last=Dl,ii.lastIndexOf=ec,ii.lowerCase=tm,ii.lowerFirst=i0,ii.lt=Um,ii.lte=Wm,ii.max=Nv,ii.maxBy=C0,ii.mean=hm,ii.meanBy=mg,ii.min=pm,ii.minBy=Hl,ii.stubArray=_p,ii.stubFalse=vg,ii.stubObject=gg,ii.stubString=um,ii.stubTrue=sv,ii.multiply=Hp,ii.nth=Oc,ii.noConflict=w0,ii.noop=Iv,ii.now=ur,ii.pad=o0,ii.padEnd=ug,ii.padStart=ah,ii.parseInt=a0,ii.random=t0,ii.reduce=Fp,ii.reduceRight=Mh,ii.repeat=s0,ii.replace=u0,ii.result=Xm,ii.round=$c,ii.runInContext=Wt,ii.sample=Ep,ii.size=je,ii.snakeCase=l0,ii.some=Mt,ii.sortedIndex=Ad,ii.sortedIndexBy=hd,ii.sortedIndexOf=ed,ii.sortedLastIndex=Fd,ii.sortedLastIndexBy=ku,ii.sortedLastIndexOf=el,ii.startCase=c0,ii.startsWith=f0,ii.subtract=id,ii.sum=Fv,ii.sumBy=gh,ii.template=rm,ii.times=lm,ii.toFinite=qh,ii.toInteger=pc,ii.toLength=qv,ii.toLower=d0,ii.toNumber=Ih,ii.toSafeInteger=Ug,ii.toString=Ef,ii.toUpper=h0,ii.trim=p0,ii.trimEnd=av,ii.trimStart=lg,ii.truncate=im,ii.unescape=vh,ii.uniqueId=Op,ii.upperCase=zd,ii.upperFirst=ep,ii.each=ev,ii.eachRight=bp,ii.first=yu,Dv(ii,function(){var X={};return Ns(ii,function(Ce,Ft){Ls.call(ii.prototype,Ft)||(X[Ft]=Ce)}),X}(),{chain:!1}),ii.VERSION=s,Mi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(X){ii[X].placeholder=ii}),Mi(["drop","take"],function(X,Ce){Wa.prototype[X]=function(Ft){Ft=Ft===l?1:Wr(pc(Ft),0);var dr=this.__filtered__&&!Ce?new Wa(this):this.clone();return dr.__filtered__?dr.__takeCount__=vt(Ft,dr.__takeCount__):dr.__views__.push({size:vt(Ft,Te),type:X+(dr.__dir__<0?"Right":"")}),dr},Wa.prototype[X+"Right"]=function(Ft){return this.reverse()[X](Ft).reverse()}}),Mi(["filter","map","takeWhile"],function(X,Ce){var Ft=Ce+1,dr=Ft==ve||Ft==oe;Wa.prototype[X]=function(Ei){var ji=this.clone();return ji.__iteratees__.push({iteratee:qu(Ei,3),type:Ft}),ji.__filtered__=ji.__filtered__||dr,ji}}),Mi(["head","last"],function(X,Ce){var Ft="take"+(Ce?"Right":"");Wa.prototype[X]=function(){return this[Ft](1).value()[0]}}),Mi(["initial","tail"],function(X,Ce){var Ft="drop"+(Ce?"":"Right");Wa.prototype[X]=function(){return this.__filtered__?new Wa(this):this[Ft](1)}}),Wa.prototype.compact=function(){return this.filter(_h)},Wa.prototype.find=function(X){return this.filter(X).head()},Wa.prototype.findLast=function(X){return this.reverse().find(X)},Wa.prototype.invokeMap=Ml(function(X,Ce){return typeof X=="function"?new Wa(this):this.map(function(Ft){return ws(Ft,X,Ce)})}),Wa.prototype.reject=function(X){return this.filter(xa(qu(X)))},Wa.prototype.slice=function(X,Ce){X=pc(X);var Ft=this;return Ft.__filtered__&&(X>0||Ce<0)?new Wa(Ft):(X<0?Ft=Ft.takeRight(-X):X&&(Ft=Ft.drop(X)),Ce!==l&&(Ce=pc(Ce),Ft=Ce<0?Ft.dropRight(-Ce):Ft.take(Ce-X)),Ft)},Wa.prototype.takeRightWhile=function(X){return this.reverse().takeWhile(X).reverse()},Wa.prototype.toArray=function(){return this.take(Te)},Ns(Wa.prototype,function(X,Ce){var Ft=/^(?:filter|find|map|reject)|While$/.test(Ce),dr=/^(?:head|last)$/.test(Ce),Ei=ii[dr?"take"+(Ce=="last"?"Right":""):Ce],ji=dr||/^find/.test(Ce);Ei&&(ii.prototype[Ce]=function(){var Qo=this.__wrapped__,ya=dr?[1]:arguments,Qa=Qo instanceof Wa,js=ya[0],$s=Qa||gc(Qo),qs=function(Xl){var kc=Ei.apply(ii,Qi([Xl],ya));return dr&&Os?kc[0]:kc};$s&&Ft&&typeof js=="function"&&js.length!=1&&(Qa=$s=!1);var Os=this.__chain__,Gu=!!this.__actions__.length,hl=ji&&!Os,Cc=Qa&&!Gu;if(!ji&&$s){Qo=Cc?Qo:new Wa(this);var Yl=X.apply(Qo,ya);return Yl.__actions__.push({func:lc,args:[qs],thisArg:l}),new _a(Yl,Os)}return hl&&Cc?X.apply(this,ya):(Yl=this.thru(qs),hl?dr?Yl.value()[0]:Yl.value():Yl)})}),Mi(["pop","push","shift","sort","splice","unshift"],function(X){var Ce=ss[X],Ft=/^(?:push|sort|unshift)$/.test(X)?"tap":"thru",dr=/^(?:pop|shift)$/.test(X);ii.prototype[X]=function(){var Ei=arguments;if(dr&&!this.__chain__){var ji=this.value();return Ce.apply(gc(ji)?ji:[],Ei)}return this[Ft](function(Qo){return Ce.apply(gc(Qo)?Qo:[],Ei)})}}),Ns(Wa.prototype,function(X,Ce){var Ft=ii[Ce];if(Ft){var dr=Ft.name+"";Ls.call(sa,dr)||(sa[dr]=[]),sa[dr].push({name:Ce,func:Ft})}}),sa[rf(l,M).name]=[{name:"wrapper",func:l}],Wa.prototype.clone=eu,Wa.prototype.reverse=Ws,Wa.prototype.value=Ne,ii.prototype.at=qc,ii.prototype.chain=df,ii.prototype.commit=uf,ii.prototype.next=Jd,ii.prototype.plant=Ph,ii.prototype.reverse=th,ii.prototype.toJSON=ii.prototype.valueOf=ii.prototype.value=Vh,ii.prototype.first=ii.prototype.head,In&&(ii.prototype[In]=dh),ii},wn=Ot();Lr._=wn,i=function(){return wn}.call(g,t,g,J),i!==l&&(J.exports=i)}).call(this)},50104:(J,g,t)=>{var i=t(53661),l="Expected a function";function s(m,u){if(typeof m!="function"||u!=null&&typeof u!="function")throw new TypeError(l);var f=function(){var p=arguments,v=u?u.apply(this,p):p[0],h=f.cache;if(h.has(v))return h.get(v);var d=m.apply(this,p);return f.cache=h.set(v,d)||h,d};return f.cache=new(s.Cache||i),f}s.Cache=i,J.exports=s},63950:J=>{function g(){}J.exports=g},10124:(J,g,t)=>{var i=t(9325),l=function(){return i.Date.now()};J.exports=l},90179:(J,g,t)=>{var i=t(34932),l=t(9999),s=t(19931),m=t(31769),u=t(21791),f=t(53138),p=t(38816),v=t(83349),h=1,d=2,b=4,y=p(function(w,S){var O={};if(w==null)return O;var R=!1;S=i(S,function(D){return D=m(D,w),R||(R=D.length>1),D}),u(w,v(w),O),R&&(O=l(O,h|d|b,f));for(var M=S.length;M--;)s(O,S[M]);return O});J.exports=y},44383:(J,g,t)=>{var i=t(76001),l=t(38816),s=l(function(m,u){return m==null?{}:i(m,u)});J.exports=s},50583:(J,g,t)=>{var i=t(47237),l=t(17255),s=t(28586),m=t(77797);function u(f){return s(f)?i(m(f)):l(f)}J.exports=u},23181:(J,g,t)=>{var i=t(85508),l=i();J.exports=l},63345:J=>{function g(){return[]}J.exports=g},89935:J=>{function g(){return!1}J.exports=g},7350:(J,g,t)=>{var i=t(38221),l=t(23805),s="Expected a function";function m(u,f,p){var v=!0,h=!0;if(typeof u!="function")throw new TypeError(s);return l(p)&&(v="leading"in p?!!p.leading:v,h="trailing"in p?!!p.trailing:h),i(u,f,{leading:v,maxWait:f,trailing:h})}J.exports=m},17400:(J,g,t)=>{var i=t(99374),l=1/0,s=17976931348623157e292;function m(u){if(!u)return u===0?u:0;if(u=i(u),u===l||u===-l){var f=u<0?-1:1;return f*s}return u===u?u:0}J.exports=m},99374:(J,g,t)=>{var i=t(54128),l=t(23805),s=t(44394),m=0/0,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,v=parseInt;function h(d){if(typeof d=="number")return d;if(s(d))return m;if(l(d)){var b=typeof d.valueOf=="function"?d.valueOf():d;d=l(b)?b+"":b}if(typeof d!="string")return d===0?d:+d;d=i(d);var y=f.test(d);return y||p.test(d)?v(d.slice(2),y?2:8):u.test(d)?m:+d}J.exports=h},13222:(J,g,t)=>{var i=t(77556);function l(s){return s==null?"":i(s)}J.exports=l},63375:(J,g,t)=>{var i=t(55765);function l(s){return s&&s.length?i(s):[]}J.exports=l},89634:(J,g)=>{g=J.exports=function(t){var i;return t==null&&(t={}),function(l,s,m){if(l._body)return m();var u=l.header("content-type")===t.contentType;if(!u)return m();l._body=!0,l.body=l.body||{};var f;f="",l.setEncoding("utf8"),l.on("data",function(p){return f+=p}),l.on("end",function(){try{var p=[];f.trim().split(` `).forEach(function(v){p.push(t.parser(v))}),l.body=p}catch(v){return v.body=f,v.status=400,m(v)}return m()})}}},93237:(J,g,t)=>{var i=t(97352),l=t(11094),s=t(61358).Readable,m=t(61358).PassThrough,u=t(60455);g=J.exports=function(f){f==null&&(f={});var p=f.contentType||"application/logplex-1";return function(v,h,d){if(v._body)return d();var b=v.header("content-type")===p;return b&&(v._body=!0,v.body=new m({objectMode:!0}),v.pipe(u.streamParser()).pipe(v.body)),d()}}},64969:(J,g)=>{g.debug=!1,g.parse=function(t){var i="",l="",s=!0,m=!1,u=!1,f=!1,p=!1,v={},h=g.debug;t[t.length-1]==` `&&(t=t.slice(0,t.length-1));for(var d=0;d<=t.length;d++){if(t[d]==" "&&!f||d==t.length){if(m&&i.length>0?v[i]=!0:u&&(l=="true"?l=!0:l=="false"?l=!1:l===""&&!p&&(l=null),v[i]=l,l=""),d==t.length)break;m=!1,u=!1,f=!1,p=!1}t[d]=="="&&!f?(h&&console.log("split"),m=!1,u=!0):t[d]=="\\"?(d++,l+=t[d],h&&console.log("escape: "+t[d])):t[d]=='"'?(p=!0,f=!f,h&&console.log("in quote: "+f)):t[d]!=" "&&!u&&!m?(h&&console.log("start key with: "+t[d]),m=!0,i=t[d]):m?(h&&console.log("add to key: "+t[d]),i+=t[d]):u&&(h&&console.log("add to value: "+t[d]),l+=t[d])}return v}},15350:(J,g,t)=>{g.log=function(i,l){this.stream=this.stream||process.stdout,l==null&&(l=this.stream);var s=Object.assign({},this.defaultData,i);if(this.timers)for(var m in this.timers){var u=new Date().getTime();s[m]=(u-this.timers[m]).toString()+"ms"}l.write(this.stringify(s)+` `)},g.time=function(m){var l=t(60455),s=new Date().getTime(),m=m||"elapsed",u=new l;return u.stream=this.stream,u.defaultData=this.defaultData,u.timers=Object.assign({},this.timers),u.timers[m]=s,u},g.namespace=function(i){var l=t(60455),s=new l,m=Object.assign({},this.defaultData,i);return s.stream=this.stream,s.defaultData=m,s.timers=this.timers,s},g.error=function(i,l){this.maxErrorLines=this.maxErrorLines||10,l===void 0&&(l=Math.random().toString().slice(2,12));var s=this.namespace({error:!0,id:l,now:new Date().toISOString()});if(s.log({message:i.message}),i.stack){var m=i.stack.split(` `);for(var u in m){if(u>=this.maxErrorLines)break;s.log({line:u,trace:m[u]})}}}},89516:(J,g)=>{var t=function(s,m){if(typeof s.path=="function")var u=s.path();else var u=s.originalUrl||s.path||s.url;var f=s.header&&s.header("x-forwarded-for"),p=s.header&&s.header("x-request-id"),v=s.ip||f||s.connection.remoteAddress,h={ip:v,time:new Date().toISOString(),method:s.method,path:u,status:m.statusCode};return p&&(h.request_id=p),m.get&&(h.content_length=m.get("content-length"),h.content_type=m.get("content-type")),h},i=function(s,m,u){return function(f,p,v){var h=u(f,p);s.log(h),v()}},l=function(s,m,u){return function(f,p,v){var h=m.elapsed||"elapsed",d=s.time(h),b=p.end;p.end=function(y,w){var S=u(f,p);p.end=b,p.end(y,w),d.log(S)},v()}};g.init=function(s,m,u){return this.logger=s,!u&&!m?(u=t,m={}):u||(typeof m=="function"?(u=m,m={}):u=t),m=m||{},m.immediate?i(s,m,u):l(s,m,u)},g.commonFormatter=t},77672:(J,g,t)=>{var i=t(97352),l=t(11094),s=t(61358).PassThrough;g.streamParser=function(u){var u=u||{},f=new s,p=this,v=l(function(h){h!==""&&this.queue(p.parse(h))});return f.on("pipe",function(h){h.unpipe&&h.unpipe(this),this.transformStream=h.pipe(i()).pipe(v)}),f.pipe=function(h,d){return this.transformStream.pipe(h,d)},f},g.streamStringify=function(f){var u=this,f=f||{};if(f.hasOwnProperty("delimiter"))var p=f.delimiter;else var p=` `;return l(function(v){this.queue(u.stringify(v)+p)},function(){this.queue(null)})}},28757:(J,g)=>{g.stringify=function(t){var i="";for(var l in t){var s=t[l],m=!1;s==null?(m=!0,s=""):s=s.toString();var u=s.indexOf(" ")>-1||s.indexOf("=")>-1,f=s.indexOf('"')>-1||s.indexOf("\\")>-1;f&&(s=s.replace(/["\\]/g,"\\$&")),(u||f)&&(s='"'+s+'"'),s===""&&!m&&(s='""'),i+=l+"="+s+" "}return i.substring(0,i.length-1)}},60455:(J,g,t)=>{function i(){}J.exports=i;var l=t(77672),s=t(89634),m=t(93237),u=t(64969),f=t(15350),p=t(89516),v=t(28757);Object.assign(i.prototype,f),Object.assign(i.prototype,l),i.prototype.stringify=v.stringify,i.prototype.parse=u.parse,i.prototype.bodyParser=function(h){h||(h={});var d=h.contentType||"application/logplex-1";return s({contentType:d,parser:this.parse})},i.prototype.bodyParserStream=function(h){h||(h={});var d=h.contentType||"application/logplex-1";return m({contentType:d})},i.prototype.requestLogger=function(h,d){return p.init(this,h,d)},i.prototype.requestLogger.commonFormatter=p.commonFormatter,Object.assign(i,i.prototype)},97352:(J,g,t)=>{var i=t(11094),l=t(83141).I;J.exports=s;function s(m,u){var f=new l,p="";typeof m=="function"&&(u=m,m=null),m||(m=/\r?\n/);function v(d,b){if(u){try{b=u(b)}catch(y){return d.emit("error",y)}typeof b<"u"&&d.queue(b)}else d.queue(b)}function h(d,b){var y=(p+b).split(m);p=y.pop();for(var w=0;w<y.length;w++){var S=y[w];v(d,S)}}return i(function(d){h(this,f.write(d))},function(){f.end&&h(this,f.end()),p!=null&&v(this,p),this.queue(null)})}},40784:(J,g,t)=>{"use strict";t.d(g,{A:()=>h});var i=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)};function l(d,b){function y(w,S){if(d(w,S))return!0;if(Array.isArray(w))return!(!Array.isArray(S)||w.length!==S.length||!w.every(function(T,A){return y(T,S[A])}));if(Array.isArray(S))return!1;if(typeof w=="object"){if(typeof S!="object")return!1;var O=w===null,R=S===null;if(O||R)return O===R;var M=Object.keys(w),D=Object.keys(S);if(M.length!==D.length)return!1;var P=b?y:d;return!!M.every(function(T){return i(w,T)&&i(S,T)&&P(w[T],S[T])})}return!1}return y}var s=function(b,y){for(var w=0;w<b.length;w++)if(y(b[w]))return w;return-1};function m(d,b){var y=[];function w(O){var R=s(y,function(D){return b(O,D.key)});if(R>-1){var M=y[R];return R>0&&(y.splice(R,1),y.unshift(M)),M.value}}function S(O,R){w(O)||(y.unshift({key:O,value:R}),y.length>d&&y.pop())}return{get:w,put:S}}function u(d){var b;return{get:function(w){if(b&&d(w,b.key))return b.value},put:function(w,S){b={key:w,value:S}}}}function f(d,b){return d===1?u(b):m(d,b)}function p(d,b){var y=b?l(d,b):d;return function(w,S){if(w.length!==S.length)return!1;for(var O=0;O<w.length;O+=1)if(!y(w[O],S[O]))return!1;return!0}}function v(){for(var d=1,b=function(D,P){return D===P},y=!1,w=arguments.length,S=new Array(w),O=0;O<w;O++)S[O]=arguments[O];typeof S[0]=="number"&&(d=S.shift()),typeof S[0]=="function"?b=S.shift():typeof S[0]>"u"&&S.shift(),typeof S[0]=="boolean"&&(y=S[0]);var R=f(d,p(b,y));return function(M){return function(){for(var D=arguments.length,P=new Array(D),T=0;T<D;T++)P[T]=arguments[T];var A=R.get(P);return A===void 0&&(A=M.apply(M,P),R.put(P,A)),A}}}const h=v},41811:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=Number.isNaN||function(f){return typeof f=="number"&&f!==f};function l(u,f){return!!(u===f||i(u)&&i(f))}function s(u,f){if(u.length!==f.length)return!1;for(var p=0;p<u.length;p++)if(!l(u[p],f[p]))return!1;return!0}function m(u,f){f===void 0&&(f=s);var p=null;function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];if(p&&p.lastThis===this&&f(h,p.lastArgs))return p.lastResult;var b=u.apply(this,h);return p={lastResult:b,lastArgs:h,lastThis:this},b}return v.clear=function(){p=null},v}},47078:function(J){(function(g,t){J.exports=t()})(this,function(){"use strict";var g={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function i(v){var h=v.length;return h?h===1?[v[0]]:h===2?[v[0],v[1]]:h===3?[v[0],v[1],v[2]]:t.call(v,0):[]}function l(v){var h={};for(var d in v)g[d]||(h[d]=v[d]);return h}function s(v){return typeof v=="function"&&v.isMemoized}function m(v,h){return v===h||v!==v&&h!==h}function u(v,h){var d={};for(var b in v)d[b]=v[b];for(var b in h)d[b]=h[b];return d}var f=function(){function v(h){this.keys=[],this.values=[],this.options=h;var d=typeof h.isMatchingKey=="function";d?this.getKeyIndex=this._getKeyIndexFromMatchingKey:h.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey=typeof h.transformKey=="function",this.shouldCloneArguments=this.canTransformKey||d,this.shouldUpdateOnAdd=typeof h.onCacheAdd=="function",this.shouldUpdateOnChange=typeof h.onCacheChange=="function",this.shouldUpdateOnHit=typeof h.onCacheHit=="function"}return Object.defineProperty(v.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"snapshot",{get:function(){return{keys:i(this.keys),size:this.size,values:i(this.values)}},enumerable:!1,configurable:!0}),v.prototype._getKeyIndexFromMatchingKey=function(h){var d=this.options,b=d.isMatchingKey,y=d.maxSize,w=this.keys,S=w.length;if(!S)return-1;if(b(w[0],h))return 0;if(y>1){for(var O=1;O<S;O++)if(b(w[O],h))return O}return-1},v.prototype._getKeyIndexForMany=function(h){var d=this.options.isEqual,b=this.keys,y=b.length;if(!y)return-1;if(y===1)return this._getKeyIndexForSingle(h);var w=h.length,S,O;if(w>1){for(var R=0;R<y;R++)if(S=b[R],S.length===w){for(O=0;O<w&&d(S[O],h[O]);O++);if(O===w)return R}}else for(var R=0;R<y;R++)if(S=b[R],S.length===w&&d(S[0],h[0]))return R;return-1},v.prototype._getKeyIndexForSingle=function(h){var d=this.keys;if(!d.length)return-1;var b=d[0],y=b.length;if(h.length!==y)return-1;var w=this.options.isEqual;if(y>1){for(var S=0;S<y;S++)if(!w(b[S],h[S]))return-1;return 0}return w(b[0],h[0])?0:-1},v.prototype.orderByLru=function(h,d,b){for(var y=this.keys,w=this.values,S=y.length,O=b;O--;)y[O+1]=y[O],w[O+1]=w[O];y[0]=h,w[0]=d;var R=this.options.maxSize;S===R&&b===S?(y.pop(),w.pop()):b>=R&&(y.length=w.length=R)},v.prototype.updateAsyncCache=function(h){var d=this,b=this.options,y=b.onCacheChange,w=b.onCacheHit,S=this.keys[0],O=this.values[0];this.values[0]=O.then(function(R){return d.shouldUpdateOnHit&&w(d,d.options,h),d.shouldUpdateOnChange&&y(d,d.options,h),R},function(R){var M=d.getKeyIndex(S);throw M!==-1&&(d.keys.splice(M,1),d.values.splice(M,1)),R})},v}();function p(v,h){if(h===void 0&&(h={}),s(v))return p(v.fn,u(v.options,h));if(typeof v!="function")throw new TypeError("You must pass a function to `memoize`.");var d=h.isEqual,b=d===void 0?m:d,y=h.isMatchingKey,w=h.isPromise,S=w===void 0?!1:w,O=h.maxSize,R=O===void 0?1:O,M=h.onCacheAdd,D=h.onCacheChange,P=h.onCacheHit,T=h.transformKey,A=u({isEqual:b,isMatchingKey:y,isPromise:S,maxSize:R,onCacheAdd:M,onCacheChange:D,onCacheHit:P,transformKey:T},l(h)),j=new f(A),ae=j.keys,_=j.values,N=j.canTransformKey,W=j.shouldCloneArguments,he=j.shouldUpdateOnAdd,me=j.shouldUpdateOnChange,fe=j.shouldUpdateOnHit,ve=function(){var ce=W?i(arguments):arguments;N&&(ce=T(ce));var oe=ae.length?j.getKeyIndex(ce):-1;if(oe!==-1)fe&&P(j,A,ve),oe&&(j.orderByLru(ae[oe],_[oe],oe),me&&D(j,A,ve));else{var re=v.apply(this,arguments),H=W?ce:i(arguments);j.orderByLru(H,re,ae.length),S&&j.updateAsyncCache(ve),he&&M(j,A,ve),me&&D(j,A,ve)}return _[0]};return ve.cache=j,ve.fn=v,ve.isMemoized=!0,ve.options=A,ve}return p})},93718:(J,g,t)=>{"use strict";t.r(g),t.d(g,{default:()=>m});var i=t(70788);function l(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,i.isAnyArray)(u))throw new TypeError("input must be an array");if(u.length===0)throw new TypeError("input must not be empty");var p=f.fromIndex,v=p===void 0?0:p,h=f.toIndex,d=h===void 0?u.length:h;if(v<0||v>=u.length||!Number.isInteger(v))throw new Error("fromIndex must be a positive integer smaller than length");if(d<=v||d>u.length||!Number.isInteger(d))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var b=u[v],y=v+1;y<d;y++)u[y]>b&&(b=u[y]);return b}function s(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,i.isAnyArray)(u))throw new TypeError("input must be an array");if(u.length===0)throw new TypeError("input must not be empty");var p=f.fromIndex,v=p===void 0?0:p,h=f.toIndex,d=h===void 0?u.length:h;if(v<0||v>=u.length||!Number.isInteger(v))throw new Error("fromIndex must be a positive integer smaller than length");if(d<=v||d>u.length||!Number.isInteger(d))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var b=u[v],y=v+1;y<d;y++)u[y]<b&&(b=u[y]);return b}function m(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,i.isAnyArray)(u)){if(u.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var p;if(f.output!==void 0){if(!(0,i.isAnyArray)(f.output))throw new TypeError("output option must be an array if specified");p=f.output}else p=new Array(u.length);var v=s(u),h=l(u);if(v===h)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var d=f.min,b=d===void 0?f.autoMinMax?v:0:d,y=f.max,w=y===void 0?f.autoMinMax?h:1:y;if(b>=w)throw new RangeError("min option must be smaller than max option");for(var S=(w-b)/(h-v),O=0;O<u.length;O++)p[O]=(u[O]-v)*S+b;return p}},10673:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(70788),s=t(93718);const m=" ".repeat(2),u=" ".repeat(4);function f(){return p(this)}function p(Me,ie={}){const{maxRows:ge=15,maxColumns:z=10,maxNumSize:be=8,padMinus:Qe="auto"}=ie;return`${Me.constructor.name} { ${m}[ ${u}${v(Me,ge,z,be,Qe)} ${m}] ${m}rows: ${Me.rows} ${m}columns: ${Me.columns} }`}function v(Me,ie,ge,z,be){const{rows:Qe,columns:Bt}=Me,nn=Math.min(Qe,ie),bt=Math.min(Bt,ge),at=[];if(be==="auto"){be=!1;e:for(let $t=0;$t<nn;$t++)for(let On=0;On<bt;On++)if(Me.get($t,On)<0){be=!0;break e}}for(let $t=0;$t<nn;$t++){let On=[];for(let Ct=0;Ct<bt;Ct++)On.push(h(Me.get($t,Ct),z,be));at.push(`${On.join(" ")}`)}return bt!==Bt&&(at[at.length-1]+=` ... ${Bt-ge} more columns`),nn!==Qe&&at.push(`... ${Qe-ie} more rows`),at.join(` ${u}`)}function h(Me,ie,ge){return(Me>=0&&ge?` ${d(Me,ie-1)}`:d(Me,ie)).padEnd(ie)}function d(Me,ie){let ge=Me.toString();if(ge.length<=ie)return ge;let z=Me.toFixed(ie);if(z.length>ie&&(z=Me.toFixed(Math.max(0,ie-(z.length-ie)))),z.length<=ie&&!z.startsWith("0.000")&&!z.startsWith("-0.000"))return z;let be=Me.toExponential(ie);return be.length>ie&&(be=Me.toExponential(Math.max(0,ie-(be.length-ie)))),be.slice(0)}function b(Me,ie){Me.prototype.add=function(z){return typeof z=="number"?this.addS(z):this.addM(z)},Me.prototype.addS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)+z);return this},Me.prototype.addM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)+z.get(be,Qe));return this},Me.add=function(z,be){return new ie(z).add(be)},Me.prototype.sub=function(z){return typeof z=="number"?this.subS(z):this.subM(z)},Me.prototype.subS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)-z);return this},Me.prototype.subM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)-z.get(be,Qe));return this},Me.sub=function(z,be){return new ie(z).sub(be)},Me.prototype.subtract=Me.prototype.sub,Me.prototype.subtractS=Me.prototype.subS,Me.prototype.subtractM=Me.prototype.subM,Me.subtract=Me.sub,Me.prototype.mul=function(z){return typeof z=="number"?this.mulS(z):this.mulM(z)},Me.prototype.mulS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)*z);return this},Me.prototype.mulM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)*z.get(be,Qe));return this},Me.mul=function(z,be){return new ie(z).mul(be)},Me.prototype.multiply=Me.prototype.mul,Me.prototype.multiplyS=Me.prototype.mulS,Me.prototype.multiplyM=Me.prototype.mulM,Me.multiply=Me.mul,Me.prototype.div=function(z){return typeof z=="number"?this.divS(z):this.divM(z)},Me.prototype.divS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)/z);return this},Me.prototype.divM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)/z.get(be,Qe));return this},Me.div=function(z,be){return new ie(z).div(be)},Me.prototype.divide=Me.prototype.div,Me.prototype.divideS=Me.prototype.divS,Me.prototype.divideM=Me.prototype.divM,Me.divide=Me.div,Me.prototype.mod=function(z){return typeof z=="number"?this.modS(z):this.modM(z)},Me.prototype.modS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)%z);return this},Me.prototype.modM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)%z.get(be,Qe));return this},Me.mod=function(z,be){return new ie(z).mod(be)},Me.prototype.modulus=Me.prototype.mod,Me.prototype.modulusS=Me.prototype.modS,Me.prototype.modulusM=Me.prototype.modM,Me.modulus=Me.mod,Me.prototype.and=function(z){return typeof z=="number"?this.andS(z):this.andM(z)},Me.prototype.andS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)&z);return this},Me.prototype.andM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)&z.get(be,Qe));return this},Me.and=function(z,be){return new ie(z).and(be)},Me.prototype.or=function(z){return typeof z=="number"?this.orS(z):this.orM(z)},Me.prototype.orS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)|z);return this},Me.prototype.orM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)|z.get(be,Qe));return this},Me.or=function(z,be){return new ie(z).or(be)},Me.prototype.xor=function(z){return typeof z=="number"?this.xorS(z):this.xorM(z)},Me.prototype.xorS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)^z);return this},Me.prototype.xorM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)^z.get(be,Qe));return this},Me.xor=function(z,be){return new ie(z).xor(be)},Me.prototype.leftShift=function(z){return typeof z=="number"?this.leftShiftS(z):this.leftShiftM(z)},Me.prototype.leftShiftS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)<<z);return this},Me.prototype.leftShiftM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)<<z.get(be,Qe));return this},Me.leftShift=function(z,be){return new ie(z).leftShift(be)},Me.prototype.signPropagatingRightShift=function(z){return typeof z=="number"?this.signPropagatingRightShiftS(z):this.signPropagatingRightShiftM(z)},Me.prototype.signPropagatingRightShiftS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)>>z);return this},Me.prototype.signPropagatingRightShiftM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)>>z.get(be,Qe));return this},Me.signPropagatingRightShift=function(z,be){return new ie(z).signPropagatingRightShift(be)},Me.prototype.rightShift=function(z){return typeof z=="number"?this.rightShiftS(z):this.rightShiftM(z)},Me.prototype.rightShiftS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)>>>z);return this},Me.prototype.rightShiftM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,this.get(be,Qe)>>>z.get(be,Qe));return this},Me.rightShift=function(z,be){return new ie(z).rightShift(be)},Me.prototype.zeroFillRightShift=Me.prototype.rightShift,Me.prototype.zeroFillRightShiftS=Me.prototype.rightShiftS,Me.prototype.zeroFillRightShiftM=Me.prototype.rightShiftM,Me.zeroFillRightShift=Me.rightShift,Me.prototype.not=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,~this.get(z,be));return this},Me.not=function(z){return new ie(z).not()},Me.prototype.abs=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.abs(this.get(z,be)));return this},Me.abs=function(z){return new ie(z).abs()},Me.prototype.acos=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.acos(this.get(z,be)));return this},Me.acos=function(z){return new ie(z).acos()},Me.prototype.acosh=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.acosh(this.get(z,be)));return this},Me.acosh=function(z){return new ie(z).acosh()},Me.prototype.asin=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.asin(this.get(z,be)));return this},Me.asin=function(z){return new ie(z).asin()},Me.prototype.asinh=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.asinh(this.get(z,be)));return this},Me.asinh=function(z){return new ie(z).asinh()},Me.prototype.atan=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.atan(this.get(z,be)));return this},Me.atan=function(z){return new ie(z).atan()},Me.prototype.atanh=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.atanh(this.get(z,be)));return this},Me.atanh=function(z){return new ie(z).atanh()},Me.prototype.cbrt=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.cbrt(this.get(z,be)));return this},Me.cbrt=function(z){return new ie(z).cbrt()},Me.prototype.ceil=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.ceil(this.get(z,be)));return this},Me.ceil=function(z){return new ie(z).ceil()},Me.prototype.clz32=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.clz32(this.get(z,be)));return this},Me.clz32=function(z){return new ie(z).clz32()},Me.prototype.cos=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.cos(this.get(z,be)));return this},Me.cos=function(z){return new ie(z).cos()},Me.prototype.cosh=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.cosh(this.get(z,be)));return this},Me.cosh=function(z){return new ie(z).cosh()},Me.prototype.exp=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.exp(this.get(z,be)));return this},Me.exp=function(z){return new ie(z).exp()},Me.prototype.expm1=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.expm1(this.get(z,be)));return this},Me.expm1=function(z){return new ie(z).expm1()},Me.prototype.floor=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.floor(this.get(z,be)));return this},Me.floor=function(z){return new ie(z).floor()},Me.prototype.fround=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.fround(this.get(z,be)));return this},Me.fround=function(z){return new ie(z).fround()},Me.prototype.log=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.log(this.get(z,be)));return this},Me.log=function(z){return new ie(z).log()},Me.prototype.log1p=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.log1p(this.get(z,be)));return this},Me.log1p=function(z){return new ie(z).log1p()},Me.prototype.log10=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.log10(this.get(z,be)));return this},Me.log10=function(z){return new ie(z).log10()},Me.prototype.log2=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.log2(this.get(z,be)));return this},Me.log2=function(z){return new ie(z).log2()},Me.prototype.round=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.round(this.get(z,be)));return this},Me.round=function(z){return new ie(z).round()},Me.prototype.sign=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.sign(this.get(z,be)));return this},Me.sign=function(z){return new ie(z).sign()},Me.prototype.sin=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.sin(this.get(z,be)));return this},Me.sin=function(z){return new ie(z).sin()},Me.prototype.sinh=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.sinh(this.get(z,be)));return this},Me.sinh=function(z){return new ie(z).sinh()},Me.prototype.sqrt=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.sqrt(this.get(z,be)));return this},Me.sqrt=function(z){return new ie(z).sqrt()},Me.prototype.tan=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.tan(this.get(z,be)));return this},Me.tan=function(z){return new ie(z).tan()},Me.prototype.tanh=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.tanh(this.get(z,be)));return this},Me.tanh=function(z){return new ie(z).tanh()},Me.prototype.trunc=function(){for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.set(z,be,Math.trunc(this.get(z,be)));return this},Me.trunc=function(z){return new ie(z).trunc()},Me.pow=function(z,be){return new ie(z).pow(be)},Me.prototype.pow=function(z){return typeof z=="number"?this.powS(z):this.powM(z)},Me.prototype.powS=function(z){for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,Math.pow(this.get(be,Qe),z));return this},Me.prototype.powM=function(z){if(z=ie.checkMatrix(z),this.rows!==z.rows||this.columns!==z.columns)throw new RangeError("Matrices dimensions must be equal");for(let be=0;be<this.rows;be++)for(let Qe=0;Qe<this.columns;Qe++)this.set(be,Qe,Math.pow(this.get(be,Qe),z.get(be,Qe)));return this}}function y(Me,ie,ge){let z=ge?Me.rows:Me.rows-1;if(ie<0||ie>z)throw new RangeError("Row index out of range")}function w(Me,ie,ge){let z=ge?Me.columns:Me.columns-1;if(ie<0||ie>z)throw new RangeError("Column index out of range")}function S(Me,ie){if(ie.to1DArray&&(ie=ie.to1DArray()),ie.length!==Me.columns)throw new RangeError("vector size must be the same as the number of columns");return ie}function O(Me,ie){if(ie.to1DArray&&(ie=ie.to1DArray()),ie.length!==Me.rows)throw new RangeError("vector size must be the same as the number of rows");return ie}function R(Me,ie){if(!l.isAnyArray(ie))throw new TypeError("row indices must be an array");for(let ge=0;ge<ie.length;ge++)if(ie[ge]<0||ie[ge]>=Me.rows)throw new RangeError("row indices are out of range")}function M(Me,ie){if(!l.isAnyArray(ie))throw new TypeError("column indices must be an array");for(let ge=0;ge<ie.length;ge++)if(ie[ge]<0||ie[ge]>=Me.columns)throw new RangeError("column indices are out of range")}function D(Me,ie,ge,z,be){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(T("startRow",ie),T("endRow",ge),T("startColumn",z),T("endColumn",be),ie>ge||z>be||ie<0||ie>=Me.rows||ge<0||ge>=Me.rows||z<0||z>=Me.columns||be<0||be>=Me.columns)throw new RangeError("Submatrix indices are out of range")}function P(Me,ie=0){let ge=[];for(let z=0;z<Me;z++)ge.push(ie);return ge}function T(Me,ie){if(typeof ie!="number")throw new TypeError(`${Me} must be a number`)}function A(Me){if(Me.isEmpty())throw new Error("Empty matrix has no elements to index")}function j(Me){let ie=P(Me.rows);for(let ge=0;ge<Me.rows;++ge)for(let z=0;z<Me.columns;++z)ie[ge]+=Me.get(ge,z);return ie}function ae(Me){let ie=P(Me.columns);for(let ge=0;ge<Me.rows;++ge)for(let z=0;z<Me.columns;++z)ie[z]+=Me.get(ge,z);return ie}function _(Me){let ie=0;for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)ie+=Me.get(ge,z);return ie}function N(Me){let ie=P(Me.rows,1);for(let ge=0;ge<Me.rows;++ge)for(let z=0;z<Me.columns;++z)ie[ge]*=Me.get(ge,z);return ie}function W(Me){let ie=P(Me.columns,1);for(let ge=0;ge<Me.rows;++ge)for(let z=0;z<Me.columns;++z)ie[z]*=Me.get(ge,z);return ie}function he(Me){let ie=1;for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)ie*=Me.get(ge,z);return ie}function me(Me,ie,ge){const z=Me.rows,be=Me.columns,Qe=[];for(let Bt=0;Bt<z;Bt++){let nn=0,bt=0,at=0;for(let $t=0;$t<be;$t++)at=Me.get(Bt,$t)-ge[Bt],nn+=at,bt+=at*at;ie?Qe.push((bt-nn*nn/be)/(be-1)):Qe.push((bt-nn*nn/be)/be)}return Qe}function fe(Me,ie,ge){const z=Me.rows,be=Me.columns,Qe=[];for(let Bt=0;Bt<be;Bt++){let nn=0,bt=0,at=0;for(let $t=0;$t<z;$t++)at=Me.get($t,Bt)-ge[Bt],nn+=at,bt+=at*at;ie?Qe.push((bt-nn*nn/z)/(z-1)):Qe.push((bt-nn*nn/z)/z)}return Qe}function ve(Me,ie,ge){const z=Me.rows,be=Me.columns,Qe=z*be;let Bt=0,nn=0,bt=0;for(let at=0;at<z;at++)for(let $t=0;$t<be;$t++)bt=Me.get(at,$t)-ge,Bt+=bt,nn+=bt*bt;return ie?(nn-Bt*Bt/Qe)/(Qe-1):(nn-Bt*Bt/Qe)/Qe}function ce(Me,ie){for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)Me.set(ge,z,Me.get(ge,z)-ie[ge])}function oe(Me,ie){for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)Me.set(ge,z,Me.get(ge,z)-ie[z])}function re(Me,ie){for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)Me.set(ge,z,Me.get(ge,z)-ie)}function H(Me){const ie=[];for(let ge=0;ge<Me.rows;ge++){let z=0;for(let be=0;be<Me.columns;be++)z+=Math.pow(Me.get(ge,be),2)/(Me.columns-1);ie.push(Math.sqrt(z))}return ie}function V(Me,ie){for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)Me.set(ge,z,Me.get(ge,z)/ie[ge])}function Q(Me){const ie=[];for(let ge=0;ge<Me.columns;ge++){let z=0;for(let be=0;be<Me.rows;be++)z+=Math.pow(Me.get(be,ge),2)/(Me.rows-1);ie.push(Math.sqrt(z))}return ie}function Te(Me,ie){for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)Me.set(ge,z,Me.get(ge,z)/ie[z])}function Re(Me){const ie=Me.size-1;let ge=0;for(let z=0;z<Me.columns;z++)for(let be=0;be<Me.rows;be++)ge+=Math.pow(Me.get(be,z),2)/ie;return Math.sqrt(ge)}function ne(Me,ie){for(let ge=0;ge<Me.rows;ge++)for(let z=0;z<Me.columns;z++)Me.set(ge,z,Me.get(ge,z)/ie)}class pe{static from1DArray(ie,ge,z){if(ie*ge!==z.length)throw new RangeError("data length does not match given dimensions");let Qe=new Ae(ie,ge);for(let Bt=0;Bt<ie;Bt++)for(let nn=0;nn<ge;nn++)Qe.set(Bt,nn,z[Bt*ge+nn]);return Qe}static rowVector(ie){let ge=new Ae(1,ie.length);for(let z=0;z<ie.length;z++)ge.set(0,z,ie[z]);return ge}static columnVector(ie){let ge=new Ae(ie.length,1);for(let z=0;z<ie.length;z++)ge.set(z,0,ie[z]);return ge}static zeros(ie,ge){return new Ae(ie,ge)}static ones(ie,ge){return new Ae(ie,ge).fill(1)}static rand(ie,ge,z={}){if(typeof z!="object")throw new TypeError("options must be an object");const{random:be=Math.random}=z;let Qe=new Ae(ie,ge);for(let Bt=0;Bt<ie;Bt++)for(let nn=0;nn<ge;nn++)Qe.set(Bt,nn,be());return Qe}static randInt(ie,ge,z={}){if(typeof z!="object")throw new TypeError("options must be an object");const{min:be=0,max:Qe=1e3,random:Bt=Math.random}=z;if(!Number.isInteger(be))throw new TypeError("min must be an integer");if(!Number.isInteger(Qe))throw new TypeError("max must be an integer");if(be>=Qe)throw new RangeError("min must be smaller than max");let nn=Qe-be,bt=new Ae(ie,ge);for(let at=0;at<ie;at++)for(let $t=0;$t<ge;$t++){let On=be+Math.round(Bt()*nn);bt.set(at,$t,On)}return bt}static eye(ie,ge,z){ge===void 0&&(ge=ie),z===void 0&&(z=1);let be=Math.min(ie,ge),Qe=this.zeros(ie,ge);for(let Bt=0;Bt<be;Bt++)Qe.set(Bt,Bt,z);return Qe}static diag(ie,ge,z){let be=ie.length;ge===void 0&&(ge=be),z===void 0&&(z=ge);let Qe=Math.min(be,ge,z),Bt=this.zeros(ge,z);for(let nn=0;nn<Qe;nn++)Bt.set(nn,nn,ie[nn]);return Bt}static min(ie,ge){ie=this.checkMatrix(ie),ge=this.checkMatrix(ge);let z=ie.rows,be=ie.columns,Qe=new Ae(z,be);for(let Bt=0;Bt<z;Bt++)for(let nn=0;nn<be;nn++)Qe.set(Bt,nn,Math.min(ie.get(Bt,nn),ge.get(Bt,nn)));return Qe}static max(ie,ge){ie=this.checkMatrix(ie),ge=this.checkMatrix(ge);let z=ie.rows,be=ie.columns,Qe=new this(z,be);for(let Bt=0;Bt<z;Bt++)for(let nn=0;nn<be;nn++)Qe.set(Bt,nn,Math.max(ie.get(Bt,nn),ge.get(Bt,nn)));return Qe}static checkMatrix(ie){return pe.isMatrix(ie)?ie:new Ae(ie)}static isMatrix(ie){return ie!=null&&ie.klass==="Matrix"}get size(){return this.rows*this.columns}apply(ie){if(typeof ie!="function")throw new TypeError("callback must be a function");for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)ie.call(this,ge,z);return this}to1DArray(){let ie=[];for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)ie.push(this.get(ge,z));return ie}to2DArray(){let ie=[];for(let ge=0;ge<this.rows;ge++){ie.push([]);for(let z=0;z<this.columns;z++)ie[ge].push(this.get(ge,z))}return ie}toJSON(){return this.to2DArray()}isRowVector(){return this.rows===1}isColumnVector(){return this.columns===1}isVector(){return this.rows===1||this.columns===1}isSquare(){return this.rows===this.columns}isEmpty(){return this.rows===0||this.columns===0}isSymmetric(){if(this.isSquare()){for(let ie=0;ie<this.rows;ie++)for(let ge=0;ge<=ie;ge++)if(this.get(ie,ge)!==this.get(ge,ie))return!1;return!0}return!1}isEchelonForm(){let ie=0,ge=0,z=-1,be=!0,Qe=!1;for(;ie<this.rows&&be;){for(ge=0,Qe=!1;ge<this.columns&&Qe===!1;)this.get(ie,ge)===0?ge++:this.get(ie,ge)===1&&ge>z?(Qe=!0,z=ge):(be=!1,Qe=!0);ie++}return be}isReducedEchelonForm(){let ie=0,ge=0,z=-1,be=!0,Qe=!1;for(;ie<this.rows&&be;){for(ge=0,Qe=!1;ge<this.columns&&Qe===!1;)this.get(ie,ge)===0?ge++:this.get(ie,ge)===1&&ge>z?(Qe=!0,z=ge):(be=!1,Qe=!0);for(let Bt=ge+1;Bt<this.rows;Bt++)this.get(ie,Bt)!==0&&(be=!1);ie++}return be}echelonForm(){let ie=this.clone(),ge=0,z=0;for(;ge<ie.rows&&z<ie.columns;){let be=ge;for(let Qe=ge;Qe<ie.rows;Qe++)ie.get(Qe,z)>ie.get(be,z)&&(be=Qe);if(ie.get(be,z)===0)z++;else{ie.swapRows(ge,be);let Qe=ie.get(ge,z);for(let Bt=z;Bt<ie.columns;Bt++)ie.set(ge,Bt,ie.get(ge,Bt)/Qe);for(let Bt=ge+1;Bt<ie.rows;Bt++){let nn=ie.get(Bt,z)/ie.get(ge,z);ie.set(Bt,z,0);for(let bt=z+1;bt<ie.columns;bt++)ie.set(Bt,bt,ie.get(Bt,bt)-ie.get(ge,bt)*nn)}ge++,z++}}return ie}reducedEchelonForm(){let ie=this.echelonForm(),ge=ie.columns,z=ie.rows,be=z-1;for(;be>=0;)if(ie.maxRow(be)===0)be--;else{let Qe=0,Bt=!1;for(;Qe<z&&Bt===!1;)ie.get(be,Qe)===1?Bt=!0:Qe++;for(let nn=0;nn<be;nn++){let bt=ie.get(nn,Qe);for(let at=Qe;at<ge;at++){let $t=ie.get(nn,at)-bt*ie.get(be,at);ie.set(nn,at,$t)}}be--}return ie}set(){throw new Error("set method is unimplemented")}get(){throw new Error("get method is unimplemented")}repeat(ie={}){if(typeof ie!="object")throw new TypeError("options must be an object");const{rows:ge=1,columns:z=1}=ie;if(!Number.isInteger(ge)||ge<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(z)||z<=0)throw new TypeError("columns must be a positive integer");let be=new Ae(this.rows*ge,this.columns*z);for(let Qe=0;Qe<ge;Qe++)for(let Bt=0;Bt<z;Bt++)be.setSubMatrix(this,this.rows*Qe,this.columns*Bt);return be}fill(ie){for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,ie);return this}neg(){return this.mulS(-1)}getRow(ie){y(this,ie);let ge=[];for(let z=0;z<this.columns;z++)ge.push(this.get(ie,z));return ge}getRowVector(ie){return Ae.rowVector(this.getRow(ie))}setRow(ie,ge){y(this,ie),ge=S(this,ge);for(let z=0;z<this.columns;z++)this.set(ie,z,ge[z]);return this}swapRows(ie,ge){y(this,ie),y(this,ge);for(let z=0;z<this.columns;z++){let be=this.get(ie,z);this.set(ie,z,this.get(ge,z)),this.set(ge,z,be)}return this}getColumn(ie){w(this,ie);let ge=[];for(let z=0;z<this.rows;z++)ge.push(this.get(z,ie));return ge}getColumnVector(ie){return Ae.columnVector(this.getColumn(ie))}setColumn(ie,ge){w(this,ie),ge=O(this,ge);for(let z=0;z<this.rows;z++)this.set(z,ie,ge[z]);return this}swapColumns(ie,ge){w(this,ie),w(this,ge);for(let z=0;z<this.rows;z++){let be=this.get(z,ie);this.set(z,ie,this.get(z,ge)),this.set(z,ge,be)}return this}addRowVector(ie){ie=S(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)+ie[z]);return this}subRowVector(ie){ie=S(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)-ie[z]);return this}mulRowVector(ie){ie=S(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)*ie[z]);return this}divRowVector(ie){ie=S(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)/ie[z]);return this}addColumnVector(ie){ie=O(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)+ie[ge]);return this}subColumnVector(ie){ie=O(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)-ie[ge]);return this}mulColumnVector(ie){ie=O(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)*ie[ge]);return this}divColumnVector(ie){ie=O(this,ie);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)this.set(ge,z,this.get(ge,z)/ie[ge]);return this}mulRow(ie,ge){y(this,ie);for(let z=0;z<this.columns;z++)this.set(ie,z,this.get(ie,z)*ge);return this}mulColumn(ie,ge){w(this,ie);for(let z=0;z<this.rows;z++)this.set(z,ie,this.get(z,ie)*ge);return this}max(ie){if(this.isEmpty())return NaN;switch(ie){case"row":{const ge=new Array(this.rows).fill(Number.NEGATIVE_INFINITY);for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)>ge[z]&&(ge[z]=this.get(z,be));return ge}case"column":{const ge=new Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)>ge[be]&&(ge[be]=this.get(z,be));return ge}case void 0:{let ge=this.get(0,0);for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)>ge&&(ge=this.get(z,be));return ge}default:throw new Error(`invalid option: ${ie}`)}}maxIndex(){A(this);let ie=this.get(0,0),ge=[0,0];for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)>ie&&(ie=this.get(z,be),ge[0]=z,ge[1]=be);return ge}min(ie){if(this.isEmpty())return NaN;switch(ie){case"row":{const ge=new Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)<ge[z]&&(ge[z]=this.get(z,be));return ge}case"column":{const ge=new Array(this.columns).fill(Number.POSITIVE_INFINITY);for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)<ge[be]&&(ge[be]=this.get(z,be));return ge}case void 0:{let ge=this.get(0,0);for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)<ge&&(ge=this.get(z,be));return ge}default:throw new Error(`invalid option: ${ie}`)}}minIndex(){A(this);let ie=this.get(0,0),ge=[0,0];for(let z=0;z<this.rows;z++)for(let be=0;be<this.columns;be++)this.get(z,be)<ie&&(ie=this.get(z,be),ge[0]=z,ge[1]=be);return ge}maxRow(ie){if(y(this,ie),this.isEmpty())return NaN;let ge=this.get(ie,0);for(let z=1;z<this.columns;z++)this.get(ie,z)>ge&&(ge=this.get(ie,z));return ge}maxRowIndex(ie){y(this,ie),A(this);let ge=this.get(ie,0),z=[ie,0];for(let be=1;be<this.columns;be++)this.get(ie,be)>ge&&(ge=this.get(ie,be),z[1]=be);return z}minRow(ie){if(y(this,ie),this.isEmpty())return NaN;let ge=this.get(ie,0);for(let z=1;z<this.columns;z++)this.get(ie,z)<ge&&(ge=this.get(ie,z));return ge}minRowIndex(ie){y(this,ie),A(this);let ge=this.get(ie,0),z=[ie,0];for(let be=1;be<this.columns;be++)this.get(ie,be)<ge&&(ge=this.get(ie,be),z[1]=be);return z}maxColumn(ie){if(w(this,ie),this.isEmpty())return NaN;let ge=this.get(0,ie);for(let z=1;z<this.rows;z++)this.get(z,ie)>ge&&(ge=this.get(z,ie));return ge}maxColumnIndex(ie){w(this,ie),A(this);let ge=this.get(0,ie),z=[0,ie];for(let be=1;be<this.rows;be++)this.get(be,ie)>ge&&(ge=this.get(be,ie),z[0]=be);return z}minColumn(ie){if(w(this,ie),this.isEmpty())return NaN;let ge=this.get(0,ie);for(let z=1;z<this.rows;z++)this.get(z,ie)<ge&&(ge=this.get(z,ie));return ge}minColumnIndex(ie){w(this,ie),A(this);let ge=this.get(0,ie),z=[0,ie];for(let be=1;be<this.rows;be++)this.get(be,ie)<ge&&(ge=this.get(be,ie),z[0]=be);return z}diag(){let ie=Math.min(this.rows,this.columns),ge=[];for(let z=0;z<ie;z++)ge.push(this.get(z,z));return ge}norm(ie="frobenius"){switch(ie){case"max":return this.max();case"frobenius":return Math.sqrt(this.dot(this));default:throw new RangeError(`unknown norm type: ${ie}`)}}cumulativeSum(){let ie=0;for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)ie+=this.get(ge,z),this.set(ge,z,ie);return this}dot(ie){pe.isMatrix(ie)&&(ie=ie.to1DArray());let ge=this.to1DArray();if(ge.length!==ie.length)throw new RangeError("vectors do not have the same size");let z=0;for(let be=0;be<ge.length;be++)z+=ge[be]*ie[be];return z}mmul(ie){ie=Ae.checkMatrix(ie);let ge=this.rows,z=this.columns,be=ie.columns,Qe=new Ae(ge,be),Bt=new Float64Array(z);for(let nn=0;nn<be;nn++){for(let bt=0;bt<z;bt++)Bt[bt]=ie.get(bt,nn);for(let bt=0;bt<ge;bt++){let at=0;for(let $t=0;$t<z;$t++)at+=this.get(bt,$t)*Bt[$t];Qe.set(bt,nn,at)}}return Qe}strassen2x2(ie){ie=Ae.checkMatrix(ie);let ge=new Ae(2,2);const z=this.get(0,0),be=ie.get(0,0),Qe=this.get(0,1),Bt=ie.get(0,1),nn=this.get(1,0),bt=ie.get(1,0),at=this.get(1,1),$t=ie.get(1,1),On=(z+at)*(be+$t),Ct=(nn+at)*be,Zt=z*(Bt-$t),Wn=at*(bt-be),Zn=(z+Qe)*$t,xt=(nn-z)*(be+Bt),Xe=(Qe-at)*(bt+$t),gn=On+Wn-Zn+Xe,Qt=Zt+Zn,Dt=Ct+Wn,hn=On-Ct+Zt+xt;return ge.set(0,0,gn),ge.set(0,1,Qt),ge.set(1,0,Dt),ge.set(1,1,hn),ge}strassen3x3(ie){ie=Ae.checkMatrix(ie);let ge=new Ae(3,3);const z=this.get(0,0),be=this.get(0,1),Qe=this.get(0,2),Bt=this.get(1,0),nn=this.get(1,1),bt=this.get(1,2),at=this.get(2,0),$t=this.get(2,1),On=this.get(2,2),Ct=ie.get(0,0),Zt=ie.get(0,1),Wn=ie.get(0,2),Zn=ie.get(1,0),xt=ie.get(1,1),Xe=ie.get(1,2),gn=ie.get(2,0),Qt=ie.get(2,1),Dt=ie.get(2,2),hn=(z+be+Qe-Bt-nn-$t-On)*xt,cn=(z-Bt)*(-Zt+xt),an=nn*(-Ct+Zt+Zn-xt-Xe-gn+Dt),Or=(-z+Bt+nn)*(Ct-Zt+xt),Ln=(Bt+nn)*(-Ct+Zt),En=z*Ct,Gn=(-z+at+$t)*(Ct-Wn+Xe),rr=(-z+at)*(Wn-Xe),sr=(at+$t)*(-Ct+Wn),pi=(z+be+Qe-nn-bt-at-$t)*Xe,yi=$t*(-Ct+Wn+Zn-xt-Xe-gn+Qt),jr=(-Qe+$t+On)*(xt+gn-Qt),ui=(Qe-On)*(xt-Qt),bi=Qe*gn,ri=($t+On)*(-gn+Qt),hi=(-Qe+nn+bt)*(Xe+gn-Dt),Si=(Qe-bt)*(Xe-Dt),Kr=(nn+bt)*(-gn+Dt),xi=be*Zn,Ai=bt*Qt,Pi=Bt*Wn,io=at*Zt,lo=On*Dt,Gr=En+bi+xi,un=hn+Or+Ln+En+jr+bi+ri,qn=En+Gn+sr+pi+bi+hi+Kr,kn=cn+an+Or+En+bi+hi+Si,St=cn+Or+Ln+En+Ai,ln=bi+hi+Si+Kr+Pi,An=En+Gn+rr+yi+jr+ui+bi,Cr=jr+ui+bi+ri+io,_i=En+Gn+rr+sr+lo;return ge.set(0,0,Gr),ge.set(0,1,un),ge.set(0,2,qn),ge.set(1,0,kn),ge.set(1,1,St),ge.set(1,2,ln),ge.set(2,0,An),ge.set(2,1,Cr),ge.set(2,2,_i),ge}mmulStrassen(ie){ie=Ae.checkMatrix(ie);let ge=this.clone(),z=ge.rows,be=ge.columns,Qe=ie.rows,Bt=ie.columns;be!==Qe&&console.warn(`Multiplying ${z} x ${be} and ${Qe} x ${Bt} matrix: dimensions do not match.`);function nn(On,Ct,Zt){let Wn=On.rows,Zn=On.columns;if(Wn===Ct&&Zn===Zt)return On;{let xt=pe.zeros(Ct,Zt);return xt=xt.setSubMatrix(On,0,0),xt}}let bt=Math.max(z,Qe),at=Math.max(be,Bt);ge=nn(ge,bt,at),ie=nn(ie,bt,at);function $t(On,Ct,Zt,Wn){if(Zt<=512||Wn<=512)return On.mmul(Ct);Zt%2===1&&Wn%2===1?(On=nn(On,Zt+1,Wn+1),Ct=nn(Ct,Zt+1,Wn+1)):Zt%2===1?(On=nn(On,Zt+1,Wn),Ct=nn(Ct,Zt+1,Wn)):Wn%2===1&&(On=nn(On,Zt,Wn+1),Ct=nn(Ct,Zt,Wn+1));let Zn=parseInt(On.rows/2,10),xt=parseInt(On.columns/2,10),Xe=On.subMatrix(0,Zn-1,0,xt-1),gn=Ct.subMatrix(0,Zn-1,0,xt-1),Qt=On.subMatrix(0,Zn-1,xt,On.columns-1),Dt=Ct.subMatrix(0,Zn-1,xt,Ct.columns-1),hn=On.subMatrix(Zn,On.rows-1,0,xt-1),cn=Ct.subMatrix(Zn,Ct.rows-1,0,xt-1),an=On.subMatrix(Zn,On.rows-1,xt,On.columns-1),Or=Ct.subMatrix(Zn,Ct.rows-1,xt,Ct.columns-1),Ln=$t(pe.add(Xe,an),pe.add(gn,Or),Zn,xt),En=$t(pe.add(hn,an),gn,Zn,xt),Gn=$t(Xe,pe.sub(Dt,Or),Zn,xt),rr=$t(an,pe.sub(cn,gn),Zn,xt),sr=$t(pe.add(Xe,Qt),Or,Zn,xt),pi=$t(pe.sub(hn,Xe),pe.add(gn,Dt),Zn,xt),yi=$t(pe.sub(Qt,an),pe.add(cn,Or),Zn,xt),jr=pe.add(Ln,rr);jr.sub(sr),jr.add(yi);let ui=pe.add(Gn,sr),bi=pe.add(En,rr),ri=pe.sub(Ln,En);ri.add(Gn),ri.add(pi);let hi=pe.zeros(2*jr.rows,2*jr.columns);return hi=hi.setSubMatrix(jr,0,0),hi=hi.setSubMatrix(ui,jr.rows,0),hi=hi.setSubMatrix(bi,0,jr.columns),hi=hi.setSubMatrix(ri,jr.rows,jr.columns),hi.subMatrix(0,Zt-1,0,Wn-1)}return $t(ge,ie,bt,at)}scaleRows(ie={}){if(typeof ie!="object")throw new TypeError("options must be an object");const{min:ge=0,max:z=1}=ie;if(!Number.isFinite(ge))throw new TypeError("min must be a number");if(!Number.isFinite(z))throw new TypeError("max must be a number");if(ge>=z)throw new RangeError("min must be smaller than max");let be=new Ae(this.rows,this.columns);for(let Qe=0;Qe<this.rows;Qe++){const Bt=this.getRow(Qe);Bt.length>0&&s(Bt,{min:ge,max:z,output:Bt}),be.setRow(Qe,Bt)}return be}scaleColumns(ie={}){if(typeof ie!="object")throw new TypeError("options must be an object");const{min:ge=0,max:z=1}=ie;if(!Number.isFinite(ge))throw new TypeError("min must be a number");if(!Number.isFinite(z))throw new TypeError("max must be a number");if(ge>=z)throw new RangeError("min must be smaller than max");let be=new Ae(this.rows,this.columns);for(let Qe=0;Qe<this.columns;Qe++){const Bt=this.getColumn(Qe);Bt.length&&s(Bt,{min:ge,max:z,output:Bt}),be.setColumn(Qe,Bt)}return be}flipRows(){const ie=Math.ceil(this.columns/2);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<ie;z++){let be=this.get(ge,z),Qe=this.get(ge,this.columns-1-z);this.set(ge,z,Qe),this.set(ge,this.columns-1-z,be)}return this}flipColumns(){const ie=Math.ceil(this.rows/2);for(let ge=0;ge<this.columns;ge++)for(let z=0;z<ie;z++){let be=this.get(z,ge),Qe=this.get(this.rows-1-z,ge);this.set(z,ge,Qe),this.set(this.rows-1-z,ge,be)}return this}kroneckerProduct(ie){ie=Ae.checkMatrix(ie);let ge=this.rows,z=this.columns,be=ie.rows,Qe=ie.columns,Bt=new Ae(ge*be,z*Qe);for(let nn=0;nn<ge;nn++)for(let bt=0;bt<z;bt++)for(let at=0;at<be;at++)for(let $t=0;$t<Qe;$t++)Bt.set(be*nn+at,Qe*bt+$t,this.get(nn,bt)*ie.get(at,$t));return Bt}kroneckerSum(ie){if(ie=Ae.checkMatrix(ie),!this.isSquare()||!ie.isSquare())throw new Error("Kronecker Sum needs two Square Matrices");let ge=this.rows,z=ie.rows,be=this.kroneckerProduct(Ae.eye(z,z)),Qe=Ae.eye(ge,ge).kroneckerProduct(ie);return be.add(Qe)}transpose(){let ie=new Ae(this.columns,this.rows);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)ie.set(z,ge,this.get(ge,z));return ie}sortRows(ie=ye){for(let ge=0;ge<this.rows;ge++)this.setRow(ge,this.getRow(ge).sort(ie));return this}sortColumns(ie=ye){for(let ge=0;ge<this.columns;ge++)this.setColumn(ge,this.getColumn(ge).sort(ie));return this}subMatrix(ie,ge,z,be){D(this,ie,ge,z,be);let Qe=new Ae(ge-ie+1,be-z+1);for(let Bt=ie;Bt<=ge;Bt++)for(let nn=z;nn<=be;nn++)Qe.set(Bt-ie,nn-z,this.get(Bt,nn));return Qe}subMatrixRow(ie,ge,z){if(ge===void 0&&(ge=0),z===void 0&&(z=this.columns-1),ge>z||ge<0||ge>=this.columns||z<0||z>=this.columns)throw new RangeError("Argument out of range");let be=new Ae(ie.length,z-ge+1);for(let Qe=0;Qe<ie.length;Qe++)for(let Bt=ge;Bt<=z;Bt++){if(ie[Qe]<0||ie[Qe]>=this.rows)throw new RangeError(`Row index out of range: ${ie[Qe]}`);be.set(Qe,Bt-ge,this.get(ie[Qe],Bt))}return be}subMatrixColumn(ie,ge,z){if(ge===void 0&&(ge=0),z===void 0&&(z=this.rows-1),ge>z||ge<0||ge>=this.rows||z<0||z>=this.rows)throw new RangeError("Argument out of range");let be=new Ae(z-ge+1,ie.length);for(let Qe=0;Qe<ie.length;Qe++)for(let Bt=ge;Bt<=z;Bt++){if(ie[Qe]<0||ie[Qe]>=this.columns)throw new RangeError(`Column index out of range: ${ie[Qe]}`);be.set(Bt-ge,Qe,this.get(Bt,ie[Qe]))}return be}setSubMatrix(ie,ge,z){if(ie=Ae.checkMatrix(ie),ie.isEmpty())return this;let be=ge+ie.rows-1,Qe=z+ie.columns-1;D(this,ge,be,z,Qe);for(let Bt=0;Bt<ie.rows;Bt++)for(let nn=0;nn<ie.columns;nn++)this.set(ge+Bt,z+nn,ie.get(Bt,nn));return this}selection(ie,ge){R(this,ie),M(this,ge);let z=new Ae(ie.length,ge.length);for(let be=0;be<ie.length;be++){let Qe=ie[be];for(let Bt=0;Bt<ge.length;Bt++){let nn=ge[Bt];z.set(be,Bt,this.get(Qe,nn))}}return z}trace(){let ie=Math.min(this.rows,this.columns),ge=0;for(let z=0;z<ie;z++)ge+=this.get(z,z);return ge}clone(){let ie=new Ae(this.rows,this.columns);for(let ge=0;ge<this.rows;ge++)for(let z=0;z<this.columns;z++)ie.set(ge,z,this.get(ge,z));return ie}sum(ie){switch(ie){case"row":return j(this);case"column":return ae(this);case void 0:return _(this);default:throw new Error(`invalid option: ${ie}`)}}product(ie){switch(ie){case"row":return N(this);case"column":return W(this);case void 0:return he(this);default:throw new Error(`invalid option: ${ie}`)}}mean(ie){const ge=this.sum(ie);switch(ie){case"row":{for(let z=0;z<this.rows;z++)ge[z]/=this.columns;return ge}case"column":{for(let z=0;z<this.columns;z++)ge[z]/=this.rows;return ge}case void 0:return ge/this.size;default:throw new Error(`invalid option: ${ie}`)}}variance(ie,ge={}){if(typeof ie=="object"&&(ge=ie,ie=void 0),typeof ge!="object")throw new TypeError("options must be an object");const{unbiased:z=!0,mean:be=this.mean(ie)}=ge;if(typeof z!="boolean")throw new TypeError("unbiased must be a boolean");switch(ie){case"row":{if(!l.isAnyArray(be))throw new TypeError("mean must be an array");return me(this,z,be)}case"column":{if(!l.isAnyArray(be))throw new TypeError("mean must be an array");return fe(this,z,be)}case void 0:{if(typeof be!="number")throw new TypeError("mean must be a number");return ve(this,z,be)}default:throw new Error(`invalid option: ${ie}`)}}standardDeviation(ie,ge){typeof ie=="object"&&(ge=ie,ie=void 0);const z=this.variance(ie,ge);if(ie===void 0)return Math.sqrt(z);for(let be=0;be<z.length;be++)z[be]=Math.sqrt(z[be]);return z}center(ie,ge={}){if(typeof ie=="object"&&(ge=ie,ie=void 0),typeof ge!="object")throw new TypeError("options must be an object");const{center:z=this.mean(ie)}=ge;switch(ie){case"row":{if(!l.isAnyArray(z))throw new TypeError("center must be an array");return ce(this,z),this}case"column":{if(!l.isAnyArray(z))throw new TypeError("center must be an array");return oe(this,z),this}case void 0:{if(typeof z!="number")throw new TypeError("center must be a number");return re(this,z),this}default:throw new Error(`invalid option: ${ie}`)}}scale(ie,ge={}){if(typeof ie=="object"&&(ge=ie,ie=void 0),typeof ge!="object")throw new TypeError("options must be an object");let z=ge.scale;switch(ie){case"row":{if(z===void 0)z=H(this);else if(!l.isAnyArray(z))throw new TypeError("scale must be an array");return V(this,z),this}case"column":{if(z===void 0)z=Q(this);else if(!l.isAnyArray(z))throw new TypeError("scale must be an array");return Te(this,z),this}case void 0:{if(z===void 0)z=Re(this);else if(typeof z!="number")throw new TypeError("scale must be a number");return ne(this,z),this}default:throw new Error(`invalid option: ${ie}`)}}toString(ie){return p(this,ie)}}pe.prototype.klass="Matrix",typeof Symbol<"u"&&(pe.prototype[Symbol.for("nodejs.util.inspect.custom")]=f);function ye(Me,ie){return Me-ie}function Se(Me){return Me.every(ie=>typeof ie=="number")}pe.random=pe.rand,pe.randomInt=pe.randInt,pe.diagonal=pe.diag,pe.prototype.diagonal=pe.prototype.diag,pe.identity=pe.eye,pe.prototype.negate=pe.prototype.neg,pe.prototype.tensorProduct=pe.prototype.kroneckerProduct;class Ae extends pe{constructor(ie,ge){if(super(),Ae.isMatrix(ie))return ie.clone();if(Number.isInteger(ie)&&ie>=0)if(this.data=[],Number.isInteger(ge)&&ge>=0)for(let z=0;z<ie;z++)this.data.push(new Float64Array(ge));else throw new TypeError("nColumns must be a positive integer");else if(l.isAnyArray(ie)){const z=ie;if(ie=z.length,ge=ie?z[0].length:0,typeof ge!="number")throw new TypeError("Data must be a 2D array with at least one element");this.data=[];for(let be=0;be<ie;be++){if(z[be].length!==ge)throw new RangeError("Inconsistent array dimensions");if(!Se(z[be]))throw new TypeError("Input data contains non-numeric values");this.data.push(Float64Array.from(z[be]))}}else throw new TypeError("First argument must be a positive number or an array");this.rows=ie,this.columns=ge}set(ie,ge,z){return this.data[ie][ge]=z,this}get(ie,ge){return this.data[ie][ge]}removeRow(ie){return y(this,ie),this.data.splice(ie,1),this.rows-=1,this}addRow(ie,ge){return ge===void 0&&(ge=ie,ie=this.rows),y(this,ie,!0),ge=Float64Array.from(S(this,ge)),this.data.splice(ie,0,ge),this.rows+=1,this}removeColumn(ie){w(this,ie);for(let ge=0;ge<this.rows;ge++){const z=new Float64Array(this.columns-1);for(let be=0;be<ie;be++)z[be]=this.data[ge][be];for(let be=ie+1;be<this.columns;be++)z[be-1]=this.data[ge][be];this.data[ge]=z}return this.columns-=1,this}addColumn(ie,ge){typeof ge>"u"&&(ge=ie,ie=this.columns),w(this,ie,!0),ge=O(this,ge);for(let z=0;z<this.rows;z++){const be=new Float64Array(this.columns+1);let Qe=0;for(;Qe<ie;Qe++)be[Qe]=this.data[z][Qe];for(be[Qe++]=ge[z];Qe<this.columns+1;Qe++)be[Qe]=this.data[z][Qe-1];this.data[z]=be}return this.columns+=1,this}}b(pe,Ae);class Ee extends pe{constructor(ie,ge,z){super(),this.matrix=ie,this.rows=ge,this.columns=z}}class xe extends Ee{constructor(ie,ge){w(ie,ge),super(ie,ie.rows,1),this.column=ge}set(ie,ge,z){return this.matrix.set(ie,this.column,z),this}get(ie){return this.matrix.get(ie,this.column)}}class nt extends Ee{constructor(ie,ge){M(ie,ge),super(ie,ie.rows,ge.length),this.columnIndices=ge}set(ie,ge,z){return this.matrix.set(ie,this.columnIndices[ge],z),this}get(ie,ge){return this.matrix.get(ie,this.columnIndices[ge])}}class Tt extends Ee{constructor(ie){super(ie,ie.rows,ie.columns)}set(ie,ge,z){return this.matrix.set(ie,this.columns-ge-1,z),this}get(ie,ge){return this.matrix.get(ie,this.columns-ge-1)}}class pt extends Ee{constructor(ie){super(ie,ie.rows,ie.columns)}set(ie,ge,z){return this.matrix.set(this.rows-ie-1,ge,z),this}get(ie,ge){return this.matrix.get(this.rows-ie-1,ge)}}class Rt extends Ee{constructor(ie,ge){y(ie,ge),super(ie,1,ie.columns),this.row=ge}set(ie,ge,z){return this.matrix.set(this.row,ge,z),this}get(ie,ge){return this.matrix.get(this.row,ge)}}class tt extends Ee{constructor(ie,ge){R(ie,ge),super(ie,ge.length,ie.columns),this.rowIndices=ge}set(ie,ge,z){return this.matrix.set(this.rowIndices[ie],ge,z),this}get(ie,ge){return this.matrix.get(this.rowIndices[ie],ge)}}class U extends Ee{constructor(ie,ge,z){R(ie,ge),M(ie,z),super(ie,ge.length,z.length),this.rowIndices=ge,this.columnIndices=z}set(ie,ge,z){return this.matrix.set(this.rowIndices[ie],this.columnIndices[ge],z),this}get(ie,ge){return this.matrix.get(this.rowIndices[ie],this.columnIndices[ge])}}class F extends Ee{constructor(ie,ge,z,be,Qe){D(ie,ge,z,be,Qe),super(ie,z-ge+1,Qe-be+1),this.startRow=ge,this.startColumn=be}set(ie,ge,z){return this.matrix.set(this.startRow+ie,this.startColumn+ge,z),this}get(ie,ge){return this.matrix.get(this.startRow+ie,this.startColumn+ge)}}class Y extends Ee{constructor(ie){super(ie,ie.columns,ie.rows)}set(ie,ge,z){return this.matrix.set(ge,ie,z),this}get(ie,ge){return this.matrix.get(ge,ie)}}class le extends pe{constructor(ie,ge={}){const{rows:z=1}=ge;if(ie.length%z!==0)throw new Error("the data length is not divisible by the number of rows");super(),this.rows=z,this.columns=ie.length/z,this.data=ie}set(ie,ge,z){let be=this._calculateIndex(ie,ge);return this.data[be]=z,this}get(ie,ge){let z=this._calculateIndex(ie,ge);return this.data[z]}_calculateIndex(ie,ge){return ie*this.columns+ge}}class ke extends pe{constructor(ie){super(),this.data=ie,this.rows=ie.length,this.columns=ie[0].length}set(ie,ge,z){return this.data[ie][ge]=z,this}get(ie,ge){return this.data[ie][ge]}}function Ye(Me,ie){if(l.isAnyArray(Me))return Me[0]&&l.isAnyArray(Me[0])?new ke(Me):new le(Me,ie);throw new Error("the argument is not an array")}class ft{constructor(ie){ie=ke.checkMatrix(ie);let ge=ie.clone(),z=ge.rows,be=ge.columns,Qe=new Float64Array(z),Bt=1,nn,bt,at,$t,On,Ct,Zt,Wn,Zn;for(nn=0;nn<z;nn++)Qe[nn]=nn;for(Wn=new Float64Array(z),bt=0;bt<be;bt++){for(nn=0;nn<z;nn++)Wn[nn]=ge.get(nn,bt);for(nn=0;nn<z;nn++){for(Zn=Math.min(nn,bt),On=0,at=0;at<Zn;at++)On+=ge.get(nn,at)*Wn[at];Wn[nn]-=On,ge.set(nn,bt,Wn[nn])}for($t=bt,nn=bt+1;nn<z;nn++)Math.abs(Wn[nn])>Math.abs(Wn[$t])&&($t=nn);if($t!==bt){for(at=0;at<be;at++)Ct=ge.get($t,at),ge.set($t,at,ge.get(bt,at)),ge.set(bt,at,Ct);Zt=Qe[$t],Qe[$t]=Qe[bt],Qe[bt]=Zt,Bt=-Bt}if(bt<z&&ge.get(bt,bt)!==0)for(nn=bt+1;nn<z;nn++)ge.set(nn,bt,ge.get(nn,bt)/ge.get(bt,bt))}this.LU=ge,this.pivotVector=Qe,this.pivotSign=Bt}isSingular(){let ie=this.LU,ge=ie.columns;for(let z=0;z<ge;z++)if(ie.get(z,z)===0)return!0;return!1}solve(ie){ie=Ae.checkMatrix(ie);let ge=this.LU;if(ge.rows!==ie.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");let be=ie.columns,Qe=ie.subMatrixRow(this.pivotVector,0,be-1),Bt=ge.columns,nn,bt,at;for(at=0;at<Bt;at++)for(nn=at+1;nn<Bt;nn++)for(bt=0;bt<be;bt++)Qe.set(nn,bt,Qe.get(nn,bt)-Qe.get(at,bt)*ge.get(nn,at));for(at=Bt-1;at>=0;at--){for(bt=0;bt<be;bt++)Qe.set(at,bt,Qe.get(at,bt)/ge.get(at,at));for(nn=0;nn<at;nn++)for(bt=0;bt<be;bt++)Qe.set(nn,bt,Qe.get(nn,bt)-Qe.get(at,bt)*ge.get(nn,at))}return Qe}get determinant(){let ie=this.LU;if(!ie.isSquare())throw new Error("Matrix must be square");let ge=this.pivotSign,z=ie.columns;for(let be=0;be<z;be++)ge*=ie.get(be,be);return ge}get lowerTriangularMatrix(){let ie=this.LU,ge=ie.rows,z=ie.columns,be=new Ae(ge,z);for(let Qe=0;Qe<ge;Qe++)for(let Bt=0;Bt<z;Bt++)Qe>Bt?be.set(Qe,Bt,ie.get(Qe,Bt)):Qe===Bt?be.set(Qe,Bt,1):be.set(Qe,Bt,0);return be}get upperTriangularMatrix(){let ie=this.LU,ge=ie.rows,z=ie.columns,be=new Ae(ge,z);for(let Qe=0;Qe<ge;Qe++)for(let Bt=0;Bt<z;Bt++)Qe<=Bt?be.set(Qe,Bt,ie.get(Qe,Bt)):be.set(Qe,Bt,0);return be}get pivotPermutationVector(){return Array.from(this.pivotVector)}}function wt(Me,ie){let ge=0;return Math.abs(Me)>Math.abs(ie)?(ge=ie/Me,Math.abs(Me)*Math.sqrt(1+ge*ge)):ie!==0?(ge=Me/ie,Math.abs(ie)*Math.sqrt(1+ge*ge)):0}class Ut{constructor(ie){ie=ke.checkMatrix(ie);let ge=ie.clone(),z=ie.rows,be=ie.columns,Qe=new Float64Array(be),Bt,nn,bt,at;for(bt=0;bt<be;bt++){let $t=0;for(Bt=bt;Bt<z;Bt++)$t=wt($t,ge.get(Bt,bt));if($t!==0){for(ge.get(bt,bt)<0&&($t=-$t),Bt=bt;Bt<z;Bt++)ge.set(Bt,bt,ge.get(Bt,bt)/$t);for(ge.set(bt,bt,ge.get(bt,bt)+1),nn=bt+1;nn<be;nn++){for(at=0,Bt=bt;Bt<z;Bt++)at+=ge.get(Bt,bt)*ge.get(Bt,nn);for(at=-at/ge.get(bt,bt),Bt=bt;Bt<z;Bt++)ge.set(Bt,nn,ge.get(Bt,nn)+at*ge.get(Bt,bt))}}Qe[bt]=-$t}this.QR=ge,this.Rdiag=Qe}solve(ie){ie=Ae.checkMatrix(ie);let ge=this.QR,z=ge.rows;if(ie.rows!==z)throw new Error("Matrix row dimensions must agree");if(!this.isFullRank())throw new Error("Matrix is rank deficient");let be=ie.columns,Qe=ie.clone(),Bt=ge.columns,nn,bt,at,$t;for(at=0;at<Bt;at++)for(bt=0;bt<be;bt++){for($t=0,nn=at;nn<z;nn++)$t+=ge.get(nn,at)*Qe.get(nn,bt);for($t=-$t/ge.get(at,at),nn=at;nn<z;nn++)Qe.set(nn,bt,Qe.get(nn,bt)+$t*ge.get(nn,at))}for(at=Bt-1;at>=0;at--){for(bt=0;bt<be;bt++)Qe.set(at,bt,Qe.get(at,bt)/this.Rdiag[at]);for(nn=0;nn<at;nn++)for(bt=0;bt<be;bt++)Qe.set(nn,bt,Qe.get(nn,bt)-Qe.get(at,bt)*ge.get(nn,at))}return Qe.subMatrix(0,Bt-1,0,be-1)}isFullRank(){let ie=this.QR.columns;for(let ge=0;ge<ie;ge++)if(this.Rdiag[ge]===0)return!1;return!0}get upperTriangularMatrix(){let ie=this.QR,ge=ie.columns,z=new Ae(ge,ge),be,Qe;for(be=0;be<ge;be++)for(Qe=0;Qe<ge;Qe++)be<Qe?z.set(be,Qe,ie.get(be,Qe)):be===Qe?z.set(be,Qe,this.Rdiag[be]):z.set(be,Qe,0);return z}get orthogonalMatrix(){let ie=this.QR,ge=ie.rows,z=ie.columns,be=new Ae(ge,z),Qe,Bt,nn,bt;for(nn=z-1;nn>=0;nn--){for(Qe=0;Qe<ge;Qe++)be.set(Qe,nn,0);for(be.set(nn,nn,1),Bt=nn;Bt<z;Bt++)if(ie.get(nn,nn)!==0){for(bt=0,Qe=nn;Qe<ge;Qe++)bt+=ie.get(Qe,nn)*be.get(Qe,Bt);for(bt=-bt/ie.get(nn,nn),Qe=nn;Qe<ge;Qe++)be.set(Qe,Bt,be.get(Qe,Bt)+bt*ie.get(Qe,nn))}}return be}}class Ke{constructor(ie,ge={}){if(ie=ke.checkMatrix(ie),ie.isEmpty())throw new Error("Matrix must be non-empty");let z=ie.rows,be=ie.columns;const{computeLeftSingularVectors:Qe=!0,computeRightSingularVectors:Bt=!0,autoTranspose:nn=!1}=ge;let bt=!!Qe,at=!!Bt,$t=!1,On;if(z<be)if(!nn)On=ie.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else{On=ie.transpose(),z=On.rows,be=On.columns,$t=!0;let En=bt;bt=at,at=En}else On=ie.clone();let Ct=Math.min(z,be),Zt=Math.min(z+1,be),Wn=new Float64Array(Zt),Zn=new Ae(z,Ct),xt=new Ae(be,be),Xe=new Float64Array(be),gn=new Float64Array(z),Qt=new Float64Array(Zt);for(let En=0;En<Zt;En++)Qt[En]=En;let Dt=Math.min(z-1,be),hn=Math.max(0,Math.min(be-2,z)),cn=Math.max(Dt,hn);for(let En=0;En<cn;En++){if(En<Dt){Wn[En]=0;for(let Gn=En;Gn<z;Gn++)Wn[En]=wt(Wn[En],On.get(Gn,En));if(Wn[En]!==0){On.get(En,En)<0&&(Wn[En]=-Wn[En]);for(let Gn=En;Gn<z;Gn++)On.set(Gn,En,On.get(Gn,En)/Wn[En]);On.set(En,En,On.get(En,En)+1)}Wn[En]=-Wn[En]}for(let Gn=En+1;Gn<be;Gn++){if(En<Dt&&Wn[En]!==0){let rr=0;for(let sr=En;sr<z;sr++)rr+=On.get(sr,En)*On.get(sr,Gn);rr=-rr/On.get(En,En);for(let sr=En;sr<z;sr++)On.set(sr,Gn,On.get(sr,Gn)+rr*On.get(sr,En))}Xe[Gn]=On.get(En,Gn)}if(bt&&En<Dt)for(let Gn=En;Gn<z;Gn++)Zn.set(Gn,En,On.get(Gn,En));if(En<hn){Xe[En]=0;for(let Gn=En+1;Gn<be;Gn++)Xe[En]=wt(Xe[En],Xe[Gn]);if(Xe[En]!==0){Xe[En+1]<0&&(Xe[En]=0-Xe[En]);for(let Gn=En+1;Gn<be;Gn++)Xe[Gn]/=Xe[En];Xe[En+1]+=1}if(Xe[En]=-Xe[En],En+1<z&&Xe[En]!==0){for(let Gn=En+1;Gn<z;Gn++)gn[Gn]=0;for(let Gn=En+1;Gn<z;Gn++)for(let rr=En+1;rr<be;rr++)gn[Gn]+=Xe[rr]*On.get(Gn,rr);for(let Gn=En+1;Gn<be;Gn++){let rr=-Xe[Gn]/Xe[En+1];for(let sr=En+1;sr<z;sr++)On.set(sr,Gn,On.get(sr,Gn)+rr*gn[sr])}}if(at)for(let Gn=En+1;Gn<be;Gn++)xt.set(Gn,En,Xe[Gn])}}let an=Math.min(be,z+1);if(Dt<be&&(Wn[Dt]=On.get(Dt,Dt)),z<an&&(Wn[an-1]=0),hn+1<an&&(Xe[hn]=On.get(hn,an-1)),Xe[an-1]=0,bt){for(let En=Dt;En<Ct;En++){for(let Gn=0;Gn<z;Gn++)Zn.set(Gn,En,0);Zn.set(En,En,1)}for(let En=Dt-1;En>=0;En--)if(Wn[En]!==0){for(let Gn=En+1;Gn<Ct;Gn++){let rr=0;for(let sr=En;sr<z;sr++)rr+=Zn.get(sr,En)*Zn.get(sr,Gn);rr=-rr/Zn.get(En,En);for(let sr=En;sr<z;sr++)Zn.set(sr,Gn,Zn.get(sr,Gn)+rr*Zn.get(sr,En))}for(let Gn=En;Gn<z;Gn++)Zn.set(Gn,En,-Zn.get(Gn,En));Zn.set(En,En,1+Zn.get(En,En));for(let Gn=0;Gn<En-1;Gn++)Zn.set(Gn,En,0)}else{for(let Gn=0;Gn<z;Gn++)Zn.set(Gn,En,0);Zn.set(En,En,1)}}if(at)for(let En=be-1;En>=0;En--){if(En<hn&&Xe[En]!==0)for(let Gn=En+1;Gn<be;Gn++){let rr=0;for(let sr=En+1;sr<be;sr++)rr+=xt.get(sr,En)*xt.get(sr,Gn);rr=-rr/xt.get(En+1,En);for(let sr=En+1;sr<be;sr++)xt.set(sr,Gn,xt.get(sr,Gn)+rr*xt.get(sr,En))}for(let Gn=0;Gn<be;Gn++)xt.set(Gn,En,0);xt.set(En,En,1)}let Or=an-1,Ln=Number.EPSILON;for(;an>0;){let En,Gn;for(En=an-2;En>=-1&&En!==-1;En--){const rr=Number.MIN_VALUE+Ln*Math.abs(Wn[En]+Math.abs(Wn[En+1]));if(Math.abs(Xe[En])<=rr||Number.isNaN(Xe[En])){Xe[En]=0;break}}if(En===an-2)Gn=4;else{let rr;for(rr=an-1;rr>=En&&rr!==En;rr--){let sr=(rr!==an?Math.abs(Xe[rr]):0)+(rr!==En+1?Math.abs(Xe[rr-1]):0);if(Math.abs(Wn[rr])<=Ln*sr){Wn[rr]=0;break}}rr===En?Gn=3:rr===an-1?Gn=1:(Gn=2,En=rr)}switch(En++,Gn){case 1:{let rr=Xe[an-2];Xe[an-2]=0;for(let sr=an-2;sr>=En;sr--){let pi=wt(Wn[sr],rr),yi=Wn[sr]/pi,jr=rr/pi;if(Wn[sr]=pi,sr!==En&&(rr=-jr*Xe[sr-1],Xe[sr-1]=yi*Xe[sr-1]),at)for(let ui=0;ui<be;ui++)pi=yi*xt.get(ui,sr)+jr*xt.get(ui,an-1),xt.set(ui,an-1,-jr*xt.get(ui,sr)+yi*xt.get(ui,an-1)),xt.set(ui,sr,pi)}break}case 2:{let rr=Xe[En-1];Xe[En-1]=0;for(let sr=En;sr<an;sr++){let pi=wt(Wn[sr],rr),yi=Wn[sr]/pi,jr=rr/pi;if(Wn[sr]=pi,rr=-jr*Xe[sr],Xe[sr]=yi*Xe[sr],bt)for(let ui=0;ui<z;ui++)pi=yi*Zn.get(ui,sr)+jr*Zn.get(ui,En-1),Zn.set(ui,En-1,-jr*Zn.get(ui,sr)+yi*Zn.get(ui,En-1)),Zn.set(ui,sr,pi)}break}case 3:{const rr=Math.max(Math.abs(Wn[an-1]),Math.abs(Wn[an-2]),Math.abs(Xe[an-2]),Math.abs(Wn[En]),Math.abs(Xe[En])),sr=Wn[an-1]/rr,pi=Wn[an-2]/rr,yi=Xe[an-2]/rr,jr=Wn[En]/rr,ui=Xe[En]/rr,bi=((pi+sr)*(pi-sr)+yi*yi)/2,ri=sr*yi*(sr*yi);let hi=0;(bi!==0||ri!==0)&&(bi<0?hi=0-Math.sqrt(bi*bi+ri):hi=Math.sqrt(bi*bi+ri),hi=ri/(bi+hi));let Si=(jr+sr)*(jr-sr)+hi,Kr=jr*ui;for(let xi=En;xi<an-1;xi++){let Ai=wt(Si,Kr);Ai===0&&(Ai=Number.MIN_VALUE);let Pi=Si/Ai,io=Kr/Ai;if(xi!==En&&(Xe[xi-1]=Ai),Si=Pi*Wn[xi]+io*Xe[xi],Xe[xi]=Pi*Xe[xi]-io*Wn[xi],Kr=io*Wn[xi+1],Wn[xi+1]=Pi*Wn[xi+1],at)for(let lo=0;lo<be;lo++)Ai=Pi*xt.get(lo,xi)+io*xt.get(lo,xi+1),xt.set(lo,xi+1,-io*xt.get(lo,xi)+Pi*xt.get(lo,xi+1)),xt.set(lo,xi,Ai);if(Ai=wt(Si,Kr),Ai===0&&(Ai=Number.MIN_VALUE),Pi=Si/Ai,io=Kr/Ai,Wn[xi]=Ai,Si=Pi*Xe[xi]+io*Wn[xi+1],Wn[xi+1]=-io*Xe[xi]+Pi*Wn[xi+1],Kr=io*Xe[xi+1],Xe[xi+1]=Pi*Xe[xi+1],bt&&xi<z-1)for(let lo=0;lo<z;lo++)Ai=Pi*Zn.get(lo,xi)+io*Zn.get(lo,xi+1),Zn.set(lo,xi+1,-io*Zn.get(lo,xi)+Pi*Zn.get(lo,xi+1)),Zn.set(lo,xi,Ai)}Xe[an-2]=Si;break}case 4:{if(Wn[En]<=0&&(Wn[En]=Wn[En]<0?-Wn[En]:0,at))for(let rr=0;rr<=Or;rr++)xt.set(rr,En,-xt.get(rr,En));for(;En<Or&&!(Wn[En]>=Wn[En+1]);){let rr=Wn[En];if(Wn[En]=Wn[En+1],Wn[En+1]=rr,at&&En<be-1)for(let sr=0;sr<be;sr++)rr=xt.get(sr,En+1),xt.set(sr,En+1,xt.get(sr,En)),xt.set(sr,En,rr);if(bt&&En<z-1)for(let sr=0;sr<z;sr++)rr=Zn.get(sr,En+1),Zn.set(sr,En+1,Zn.get(sr,En)),Zn.set(sr,En,rr);En++}an--;break}}}if($t){let En=xt;xt=Zn,Zn=En}this.m=z,this.n=be,this.s=Wn,this.U=Zn,this.V=xt}solve(ie){let ge=ie,z=this.threshold,be=this.s.length,Qe=Ae.zeros(be,be);for(let Ct=0;Ct<be;Ct++)Math.abs(this.s[Ct])<=z?Qe.set(Ct,Ct,0):Qe.set(Ct,Ct,1/this.s[Ct]);let Bt=this.U,nn=this.rightSingularVectors,bt=nn.mmul(Qe),at=nn.rows,$t=Bt.rows,On=Ae.zeros(at,$t);for(let Ct=0;Ct<at;Ct++)for(let Zt=0;Zt<$t;Zt++){let Wn=0;for(let Zn=0;Zn<be;Zn++)Wn+=bt.get(Ct,Zn)*Bt.get(Zt,Zn);On.set(Ct,Zt,Wn)}return On.mmul(ge)}solveForDiagonal(ie){return this.solve(Ae.diag(ie))}inverse(){let ie=this.V,ge=this.threshold,z=ie.rows,be=ie.columns,Qe=new Ae(z,this.s.length);for(let $t=0;$t<z;$t++)for(let On=0;On<be;On++)Math.abs(this.s[On])>ge&&Qe.set($t,On,ie.get($t,On)/this.s[On]);let Bt=this.U,nn=Bt.rows,bt=Bt.columns,at=new Ae(z,nn);for(let $t=0;$t<z;$t++)for(let On=0;On<nn;On++){let Ct=0;for(let Zt=0;Zt<bt;Zt++)Ct+=Qe.get($t,Zt)*Bt.get(On,Zt);at.set($t,On,Ct)}return at}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}get norm2(){return this.s[0]}get rank(){let ie=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,ge=0,z=this.s;for(let be=0,Qe=z.length;be<Qe;be++)z[be]>ie&&ge++;return ge}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return Ae.diag(this.s)}}function it(Me,ie=!1){return Me=ke.checkMatrix(Me),ie?new Ke(Me).inverse():At(Me,Ae.eye(Me.rows))}function At(Me,ie,ge=!1){return Me=ke.checkMatrix(Me),ie=ke.checkMatrix(ie),ge?new Ke(Me).solve(ie):Me.isSquare()?new ft(Me).solve(ie):new Ut(Me).solve(ie)}function et(Me){if(Me=Ae.checkMatrix(Me),Me.isSquare()){if(Me.columns===0)return 1;let ie,ge,z,be;if(Me.columns===2)return ie=Me.get(0,0),ge=Me.get(0,1),z=Me.get(1,0),be=Me.get(1,1),ie*be-ge*z;if(Me.columns===3){let Qe,Bt,nn;return Qe=new U(Me,[1,2],[1,2]),Bt=new U(Me,[1,2],[0,2]),nn=new U(Me,[1,2],[0,1]),ie=Me.get(0,0),ge=Me.get(0,1),z=Me.get(0,2),ie*et(Qe)-ge*et(Bt)+z*et(nn)}else return new ft(Me).determinant}else throw Error("determinant can only be calculated for a square matrix")}function ee(Me,ie){let ge=[];for(let z=0;z<Me;z++)z!==ie&&ge.push(z);return ge}function I(Me,ie,ge,z=1e-9,be=1e-9){if(Me>be)return new Array(ie.rows+1).fill(0);{let Qe=ie.addRow(ge,[0]);for(let Bt=0;Bt<Qe.rows;Bt++)Math.abs(Qe.get(Bt,0))<z&&Qe.set(Bt,0,0);return Qe.to1DArray()}}function K(Me,ie={}){const{thresholdValue:ge=1e-9,thresholdError:z=1e-9}=ie;Me=Ae.checkMatrix(Me);let be=Me.rows,Qe=new Ae(be,be);for(let Bt=0;Bt<be;Bt++){let nn=Ae.columnVector(Me.getRow(Bt)),bt=Me.subMatrixRow(ee(be,Bt)).transpose(),$t=new Ke(bt).solve(nn),On=Ae.sub(nn,bt.mmul($t)).abs().max();Qe.setRow(Bt,I(On,$t,Bt,ge,z))}return Qe}function ue(Me,ie=Number.EPSILON){if(Me=Ae.checkMatrix(Me),Me.isEmpty())return Me.transpose();let ge=new Ke(Me,{autoTranspose:!0}),z=ge.leftSingularVectors,be=ge.rightSingularVectors,Qe=ge.diagonal;for(let Bt=0;Bt<Qe.length;Bt++)Math.abs(Qe[Bt])>ie?Qe[Bt]=1/Qe[Bt]:Qe[Bt]=0;return be.mmul(Ae.diag(Qe).mmul(z.transpose()))}function De(Me,ie=Me,ge={}){Me=new Ae(Me);let z=!1;if(typeof ie=="object"&&!Ae.isMatrix(ie)&&!l.isAnyArray(ie)?(ge=ie,ie=Me,z=!0):ie=new Ae(ie),Me.rows!==ie.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:be=!0}=ge;be&&(Me=Me.center("column"),z||(ie=ie.center("column")));const Qe=Me.transpose().mmul(ie);for(let Bt=0;Bt<Qe.rows;Bt++)for(let nn=0;nn<Qe.columns;nn++)Qe.set(Bt,nn,Qe.get(Bt,nn)*(1/(Me.rows-1)));return Qe}function He(Me,ie=Me,ge={}){Me=new Ae(Me);let z=!1;if(typeof ie=="object"&&!Ae.isMatrix(ie)&&!l.isAnyArray(ie)?(ge=ie,ie=Me,z=!0):ie=new Ae(ie),Me.rows!==ie.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:be=!0,scale:Qe=!0}=ge;be&&(Me.center("column"),z||ie.center("column")),Qe&&(Me.scale("column"),z||ie.scale("column"));const Bt=Me.standardDeviation("column",{unbiased:!0}),nn=z?Bt:ie.standardDeviation("column",{unbiased:!0}),bt=Me.transpose().mmul(ie);for(let at=0;at<bt.rows;at++)for(let $t=0;$t<bt.columns;$t++)bt.set(at,$t,bt.get(at,$t)*(1/(Bt[at]*nn[$t]))*(1/(Me.rows-1)));return bt}class Fe{constructor(ie,ge={}){const{assumeSymmetric:z=!1}=ge;if(ie=ke.checkMatrix(ie),!ie.isSquare())throw new Error("Matrix is not a square matrix");if(ie.isEmpty())throw new Error("Matrix must be non-empty");let be=ie.columns,Qe=new Ae(be,be),Bt=new Float64Array(be),nn=new Float64Array(be),bt=ie,at,$t,On=!1;if(z?On=!0:On=ie.isSymmetric(),On){for(at=0;at<be;at++)for($t=0;$t<be;$t++)Qe.set(at,$t,bt.get(at,$t));ze(be,nn,Bt,Qe),qe(be,nn,Bt,Qe)}else{let Ct=new Ae(be,be),Zt=new Float64Array(be);for($t=0;$t<be;$t++)for(at=0;at<be;at++)Ct.set(at,$t,bt.get(at,$t));We(be,Ct,Zt,Qe),_t(be,nn,Bt,Qe,Ct)}this.n=be,this.e=nn,this.d=Bt,this.V=Qe}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let ie=this.n,ge=this.e,z=this.d,be=new Ae(ie,ie),Qe,Bt;for(Qe=0;Qe<ie;Qe++){for(Bt=0;Bt<ie;Bt++)be.set(Qe,Bt,0);be.set(Qe,Qe,z[Qe]),ge[Qe]>0?be.set(Qe,Qe+1,ge[Qe]):ge[Qe]<0&&be.set(Qe,Qe-1,ge[Qe])}return be}}function ze(Me,ie,ge,z){let be,Qe,Bt,nn,bt,at,$t,On;for(bt=0;bt<Me;bt++)ge[bt]=z.get(Me-1,bt);for(nn=Me-1;nn>0;nn--){for(On=0,Bt=0,at=0;at<nn;at++)On=On+Math.abs(ge[at]);if(On===0)for(ie[nn]=ge[nn-1],bt=0;bt<nn;bt++)ge[bt]=z.get(nn-1,bt),z.set(nn,bt,0),z.set(bt,nn,0);else{for(at=0;at<nn;at++)ge[at]/=On,Bt+=ge[at]*ge[at];for(be=ge[nn-1],Qe=Math.sqrt(Bt),be>0&&(Qe=-Qe),ie[nn]=On*Qe,Bt=Bt-be*Qe,ge[nn-1]=be-Qe,bt=0;bt<nn;bt++)ie[bt]=0;for(bt=0;bt<nn;bt++){for(be=ge[bt],z.set(bt,nn,be),Qe=ie[bt]+z.get(bt,bt)*be,at=bt+1;at<=nn-1;at++)Qe+=z.get(at,bt)*ge[at],ie[at]+=z.get(at,bt)*be;ie[bt]=Qe}for(be=0,bt=0;bt<nn;bt++)ie[bt]/=Bt,be+=ie[bt]*ge[bt];for($t=be/(Bt+Bt),bt=0;bt<nn;bt++)ie[bt]-=$t*ge[bt];for(bt=0;bt<nn;bt++){for(be=ge[bt],Qe=ie[bt],at=bt;at<=nn-1;at++)z.set(at,bt,z.get(at,bt)-(be*ie[at]+Qe*ge[at]));ge[bt]=z.get(nn-1,bt),z.set(nn,bt,0)}}ge[nn]=Bt}for(nn=0;nn<Me-1;nn++){if(z.set(Me-1,nn,z.get(nn,nn)),z.set(nn,nn,1),Bt=ge[nn+1],Bt!==0){for(at=0;at<=nn;at++)ge[at]=z.get(at,nn+1)/Bt;for(bt=0;bt<=nn;bt++){for(Qe=0,at=0;at<=nn;at++)Qe+=z.get(at,nn+1)*z.get(at,bt);for(at=0;at<=nn;at++)z.set(at,bt,z.get(at,bt)-Qe*ge[at])}}for(at=0;at<=nn;at++)z.set(at,nn+1,0)}for(bt=0;bt<Me;bt++)ge[bt]=z.get(Me-1,bt),z.set(Me-1,bt,0);z.set(Me-1,Me-1,1),ie[0]=0}function qe(Me,ie,ge,z){let be,Qe,Bt,nn,bt,at,$t,On,Ct,Zt,Wn,Zn,xt,Xe,gn,Qt;for(Bt=1;Bt<Me;Bt++)ie[Bt-1]=ie[Bt];ie[Me-1]=0;let Dt=0,hn=0,cn=Number.EPSILON;for(at=0;at<Me;at++){for(hn=Math.max(hn,Math.abs(ge[at])+Math.abs(ie[at])),$t=at;$t<Me&&!(Math.abs(ie[$t])<=cn*hn);)$t++;if($t>at)do{for(be=ge[at],On=(ge[at+1]-be)/(2*ie[at]),Ct=wt(On,1),On<0&&(Ct=-Ct),ge[at]=ie[at]/(On+Ct),ge[at+1]=ie[at]*(On+Ct),Zt=ge[at+1],Qe=be-ge[at],Bt=at+2;Bt<Me;Bt++)ge[Bt]-=Qe;for(Dt=Dt+Qe,On=ge[$t],Wn=1,Zn=Wn,xt=Wn,Xe=ie[at+1],gn=0,Qt=0,Bt=$t-1;Bt>=at;Bt--)for(xt=Zn,Zn=Wn,Qt=gn,be=Wn*ie[Bt],Qe=Wn*On,Ct=wt(On,ie[Bt]),ie[Bt+1]=gn*Ct,gn=ie[Bt]/Ct,Wn=On/Ct,On=Wn*ge[Bt]-gn*be,ge[Bt+1]=Qe+gn*(Wn*be+gn*ge[Bt]),bt=0;bt<Me;bt++)Qe=z.get(bt,Bt+1),z.set(bt,Bt+1,gn*z.get(bt,Bt)+Wn*Qe),z.set(bt,Bt,Wn*z.get(bt,Bt)-gn*Qe);On=-gn*Qt*xt*Xe*ie[at]/Zt,ie[at]=gn*On,ge[at]=Wn*On}while(Math.abs(ie[at])>cn*hn);ge[at]=ge[at]+Dt,ie[at]=0}for(Bt=0;Bt<Me-1;Bt++){for(bt=Bt,On=ge[Bt],nn=Bt+1;nn<Me;nn++)ge[nn]<On&&(bt=nn,On=ge[nn]);if(bt!==Bt)for(ge[bt]=ge[Bt],ge[Bt]=On,nn=0;nn<Me;nn++)On=z.get(nn,Bt),z.set(nn,Bt,z.get(nn,bt)),z.set(nn,bt,On)}}function We(Me,ie,ge,z){let be=0,Qe=Me-1,Bt,nn,bt,at,$t,On,Ct;for(On=be+1;On<=Qe-1;On++){for(Ct=0,at=On;at<=Qe;at++)Ct=Ct+Math.abs(ie.get(at,On-1));if(Ct!==0){for(bt=0,at=Qe;at>=On;at--)ge[at]=ie.get(at,On-1)/Ct,bt+=ge[at]*ge[at];for(nn=Math.sqrt(bt),ge[On]>0&&(nn=-nn),bt=bt-ge[On]*nn,ge[On]=ge[On]-nn,$t=On;$t<Me;$t++){for(Bt=0,at=Qe;at>=On;at--)Bt+=ge[at]*ie.get(at,$t);for(Bt=Bt/bt,at=On;at<=Qe;at++)ie.set(at,$t,ie.get(at,$t)-Bt*ge[at])}for(at=0;at<=Qe;at++){for(Bt=0,$t=Qe;$t>=On;$t--)Bt+=ge[$t]*ie.get(at,$t);for(Bt=Bt/bt,$t=On;$t<=Qe;$t++)ie.set(at,$t,ie.get(at,$t)-Bt*ge[$t])}ge[On]=Ct*ge[On],ie.set(On,On-1,Ct*nn)}}for(at=0;at<Me;at++)for($t=0;$t<Me;$t++)z.set(at,$t,at===$t?1:0);for(On=Qe-1;On>=be+1;On--)if(ie.get(On,On-1)!==0){for(at=On+1;at<=Qe;at++)ge[at]=ie.get(at,On-1);for($t=On;$t<=Qe;$t++){for(nn=0,at=On;at<=Qe;at++)nn+=ge[at]*z.get(at,$t);for(nn=nn/ge[On]/ie.get(On,On-1),at=On;at<=Qe;at++)z.set(at,$t,z.get(at,$t)+nn*ge[at])}}}function _t(Me,ie,ge,z,be){let Qe=Me-1,Bt=0,nn=Me-1,bt=Number.EPSILON,at=0,$t=0,On=0,Ct=0,Zt=0,Wn=0,Zn=0,xt=0,Xe,gn,Qt,Dt,hn,cn,an,Or,Ln,En,Gn,rr,sr,pi,yi;for(Xe=0;Xe<Me;Xe++)for((Xe<Bt||Xe>nn)&&(ge[Xe]=be.get(Xe,Xe),ie[Xe]=0),gn=Math.max(Xe-1,0);gn<Me;gn++)$t=$t+Math.abs(be.get(Xe,gn));for(;Qe>=Bt;){for(Dt=Qe;Dt>Bt&&(Wn=Math.abs(be.get(Dt-1,Dt-1))+Math.abs(be.get(Dt,Dt)),Wn===0&&(Wn=$t),!(Math.abs(be.get(Dt,Dt-1))<bt*Wn));)Dt--;if(Dt===Qe)be.set(Qe,Qe,be.get(Qe,Qe)+at),ge[Qe]=be.get(Qe,Qe),ie[Qe]=0,Qe--,xt=0;else if(Dt===Qe-1){if(an=be.get(Qe,Qe-1)*be.get(Qe-1,Qe),On=(be.get(Qe-1,Qe-1)-be.get(Qe,Qe))/2,Ct=On*On+an,Zn=Math.sqrt(Math.abs(Ct)),be.set(Qe,Qe,be.get(Qe,Qe)+at),be.set(Qe-1,Qe-1,be.get(Qe-1,Qe-1)+at),Or=be.get(Qe,Qe),Ct>=0){for(Zn=On>=0?On+Zn:On-Zn,ge[Qe-1]=Or+Zn,ge[Qe]=ge[Qe-1],Zn!==0&&(ge[Qe]=Or-an/Zn),ie[Qe-1]=0,ie[Qe]=0,Or=be.get(Qe,Qe-1),Wn=Math.abs(Or)+Math.abs(Zn),On=Or/Wn,Ct=Zn/Wn,Zt=Math.sqrt(On*On+Ct*Ct),On=On/Zt,Ct=Ct/Zt,gn=Qe-1;gn<Me;gn++)Zn=be.get(Qe-1,gn),be.set(Qe-1,gn,Ct*Zn+On*be.get(Qe,gn)),be.set(Qe,gn,Ct*be.get(Qe,gn)-On*Zn);for(Xe=0;Xe<=Qe;Xe++)Zn=be.get(Xe,Qe-1),be.set(Xe,Qe-1,Ct*Zn+On*be.get(Xe,Qe)),be.set(Xe,Qe,Ct*be.get(Xe,Qe)-On*Zn);for(Xe=Bt;Xe<=nn;Xe++)Zn=z.get(Xe,Qe-1),z.set(Xe,Qe-1,Ct*Zn+On*z.get(Xe,Qe)),z.set(Xe,Qe,Ct*z.get(Xe,Qe)-On*Zn)}else ge[Qe-1]=Or+On,ge[Qe]=Or+On,ie[Qe-1]=Zn,ie[Qe]=-Zn;Qe=Qe-2,xt=0}else{if(Or=be.get(Qe,Qe),Ln=0,an=0,Dt<Qe&&(Ln=be.get(Qe-1,Qe-1),an=be.get(Qe,Qe-1)*be.get(Qe-1,Qe)),xt===10){for(at+=Or,Xe=Bt;Xe<=Qe;Xe++)be.set(Xe,Xe,be.get(Xe,Xe)-Or);Wn=Math.abs(be.get(Qe,Qe-1))+Math.abs(be.get(Qe-1,Qe-2)),Or=Ln=.75*Wn,an=-.4375*Wn*Wn}if(xt===30&&(Wn=(Ln-Or)/2,Wn=Wn*Wn+an,Wn>0)){for(Wn=Math.sqrt(Wn),Ln<Or&&(Wn=-Wn),Wn=Or-an/((Ln-Or)/2+Wn),Xe=Bt;Xe<=Qe;Xe++)be.set(Xe,Xe,be.get(Xe,Xe)-Wn);at+=Wn,Or=Ln=an=.964}for(xt=xt+1,hn=Qe-2;hn>=Dt&&(Zn=be.get(hn,hn),Zt=Or-Zn,Wn=Ln-Zn,On=(Zt*Wn-an)/be.get(hn+1,hn)+be.get(hn,hn+1),Ct=be.get(hn+1,hn+1)-Zn-Zt-Wn,Zt=be.get(hn+2,hn+1),Wn=Math.abs(On)+Math.abs(Ct)+Math.abs(Zt),On=On/Wn,Ct=Ct/Wn,Zt=Zt/Wn,!(hn===Dt||Math.abs(be.get(hn,hn-1))*(Math.abs(Ct)+Math.abs(Zt))<bt*(Math.abs(On)*(Math.abs(be.get(hn-1,hn-1))+Math.abs(Zn)+Math.abs(be.get(hn+1,hn+1))))));)hn--;for(Xe=hn+2;Xe<=Qe;Xe++)be.set(Xe,Xe-2,0),Xe>hn+2&&be.set(Xe,Xe-3,0);for(Qt=hn;Qt<=Qe-1&&(pi=Qt!==Qe-1,Qt!==hn&&(On=be.get(Qt,Qt-1),Ct=be.get(Qt+1,Qt-1),Zt=pi?be.get(Qt+2,Qt-1):0,Or=Math.abs(On)+Math.abs(Ct)+Math.abs(Zt),Or!==0&&(On=On/Or,Ct=Ct/Or,Zt=Zt/Or)),Or!==0);Qt++)if(Wn=Math.sqrt(On*On+Ct*Ct+Zt*Zt),On<0&&(Wn=-Wn),Wn!==0){for(Qt!==hn?be.set(Qt,Qt-1,-Wn*Or):Dt!==hn&&be.set(Qt,Qt-1,-be.get(Qt,Qt-1)),On=On+Wn,Or=On/Wn,Ln=Ct/Wn,Zn=Zt/Wn,Ct=Ct/On,Zt=Zt/On,gn=Qt;gn<Me;gn++)On=be.get(Qt,gn)+Ct*be.get(Qt+1,gn),pi&&(On=On+Zt*be.get(Qt+2,gn),be.set(Qt+2,gn,be.get(Qt+2,gn)-On*Zn)),be.set(Qt,gn,be.get(Qt,gn)-On*Or),be.set(Qt+1,gn,be.get(Qt+1,gn)-On*Ln);for(Xe=0;Xe<=Math.min(Qe,Qt+3);Xe++)On=Or*be.get(Xe,Qt)+Ln*be.get(Xe,Qt+1),pi&&(On=On+Zn*be.get(Xe,Qt+2),be.set(Xe,Qt+2,be.get(Xe,Qt+2)-On*Zt)),be.set(Xe,Qt,be.get(Xe,Qt)-On),be.set(Xe,Qt+1,be.get(Xe,Qt+1)-On*Ct);for(Xe=Bt;Xe<=nn;Xe++)On=Or*z.get(Xe,Qt)+Ln*z.get(Xe,Qt+1),pi&&(On=On+Zn*z.get(Xe,Qt+2),z.set(Xe,Qt+2,z.get(Xe,Qt+2)-On*Zt)),z.set(Xe,Qt,z.get(Xe,Qt)-On),z.set(Xe,Qt+1,z.get(Xe,Qt+1)-On*Ct)}}}if($t!==0){for(Qe=Me-1;Qe>=0;Qe--)if(On=ge[Qe],Ct=ie[Qe],Ct===0)for(Dt=Qe,be.set(Qe,Qe,1),Xe=Qe-1;Xe>=0;Xe--){for(an=be.get(Xe,Xe)-On,Zt=0,gn=Dt;gn<=Qe;gn++)Zt=Zt+be.get(Xe,gn)*be.get(gn,Qe);if(ie[Xe]<0)Zn=an,Wn=Zt;else if(Dt=Xe,ie[Xe]===0?be.set(Xe,Qe,an!==0?-Zt/an:-Zt/(bt*$t)):(Or=be.get(Xe,Xe+1),Ln=be.get(Xe+1,Xe),Ct=(ge[Xe]-On)*(ge[Xe]-On)+ie[Xe]*ie[Xe],cn=(Or*Wn-Zn*Zt)/Ct,be.set(Xe,Qe,cn),be.set(Xe+1,Qe,Math.abs(Or)>Math.abs(Zn)?(-Zt-an*cn)/Or:(-Wn-Ln*cn)/Zn)),cn=Math.abs(be.get(Xe,Qe)),bt*cn*cn>1)for(gn=Xe;gn<=Qe;gn++)be.set(gn,Qe,be.get(gn,Qe)/cn)}else if(Ct<0)for(Dt=Qe-1,Math.abs(be.get(Qe,Qe-1))>Math.abs(be.get(Qe-1,Qe))?(be.set(Qe-1,Qe-1,Ct/be.get(Qe,Qe-1)),be.set(Qe-1,Qe,-(be.get(Qe,Qe)-On)/be.get(Qe,Qe-1))):(yi=ct(0,-be.get(Qe-1,Qe),be.get(Qe-1,Qe-1)-On,Ct),be.set(Qe-1,Qe-1,yi[0]),be.set(Qe-1,Qe,yi[1])),be.set(Qe,Qe-1,0),be.set(Qe,Qe,1),Xe=Qe-2;Xe>=0;Xe--){for(En=0,Gn=0,gn=Dt;gn<=Qe;gn++)En=En+be.get(Xe,gn)*be.get(gn,Qe-1),Gn=Gn+be.get(Xe,gn)*be.get(gn,Qe);if(an=be.get(Xe,Xe)-On,ie[Xe]<0)Zn=an,Zt=En,Wn=Gn;else if(Dt=Xe,ie[Xe]===0?(yi=ct(-En,-Gn,an,Ct),be.set(Xe,Qe-1,yi[0]),be.set(Xe,Qe,yi[1])):(Or=be.get(Xe,Xe+1),Ln=be.get(Xe+1,Xe),rr=(ge[Xe]-On)*(ge[Xe]-On)+ie[Xe]*ie[Xe]-Ct*Ct,sr=(ge[Xe]-On)*2*Ct,rr===0&&sr===0&&(rr=bt*$t*(Math.abs(an)+Math.abs(Ct)+Math.abs(Or)+Math.abs(Ln)+Math.abs(Zn))),yi=ct(Or*Zt-Zn*En+Ct*Gn,Or*Wn-Zn*Gn-Ct*En,rr,sr),be.set(Xe,Qe-1,yi[0]),be.set(Xe,Qe,yi[1]),Math.abs(Or)>Math.abs(Zn)+Math.abs(Ct)?(be.set(Xe+1,Qe-1,(-En-an*be.get(Xe,Qe-1)+Ct*be.get(Xe,Qe))/Or),be.set(Xe+1,Qe,(-Gn-an*be.get(Xe,Qe)-Ct*be.get(Xe,Qe-1))/Or)):(yi=ct(-Zt-Ln*be.get(Xe,Qe-1),-Wn-Ln*be.get(Xe,Qe),Zn,Ct),be.set(Xe+1,Qe-1,yi[0]),be.set(Xe+1,Qe,yi[1]))),cn=Math.max(Math.abs(be.get(Xe,Qe-1)),Math.abs(be.get(Xe,Qe))),bt*cn*cn>1)for(gn=Xe;gn<=Qe;gn++)be.set(gn,Qe-1,be.get(gn,Qe-1)/cn),be.set(gn,Qe,be.get(gn,Qe)/cn)}for(Xe=0;Xe<Me;Xe++)if(Xe<Bt||Xe>nn)for(gn=Xe;gn<Me;gn++)z.set(Xe,gn,be.get(Xe,gn));for(gn=Me-1;gn>=Bt;gn--)for(Xe=Bt;Xe<=nn;Xe++){for(Zn=0,Qt=Bt;Qt<=Math.min(gn,nn);Qt++)Zn=Zn+z.get(Xe,Qt)*be.get(Qt,gn);z.set(Xe,gn,Zn)}}}function ct(Me,ie,ge,z){let be,Qe;return Math.abs(ge)>Math.abs(z)?(be=z/ge,Qe=ge+be*z,[(Me+be*ie)/Qe,(ie-be*Me)/Qe]):(be=ge/z,Qe=z+be*ge,[(be*Me+ie)/Qe,(be*ie-Me)/Qe])}class Ge{constructor(ie){if(ie=ke.checkMatrix(ie),!ie.isSymmetric())throw new Error("Matrix is not symmetric");let ge=ie,z=ge.rows,be=new Ae(z,z),Qe=!0,Bt,nn,bt;for(nn=0;nn<z;nn++){let at=0;for(bt=0;bt<nn;bt++){let $t=0;for(Bt=0;Bt<bt;Bt++)$t+=be.get(bt,Bt)*be.get(nn,Bt);$t=(ge.get(nn,bt)-$t)/be.get(bt,bt),be.set(nn,bt,$t),at=at+$t*$t}for(at=ge.get(nn,nn)-at,Qe&=at>0,be.set(nn,nn,Math.sqrt(Math.max(at,0))),bt=nn+1;bt<z;bt++)be.set(nn,bt,0)}this.L=be,this.positiveDefinite=!!Qe}isPositiveDefinite(){return this.positiveDefinite}solve(ie){ie=ke.checkMatrix(ie);let ge=this.L,z=ge.rows;if(ie.rows!==z)throw new Error("Matrix dimensions do not match");if(this.isPositiveDefinite()===!1)throw new Error("Matrix is not positive definite");let be=ie.columns,Qe=ie.clone(),Bt,nn,bt;for(bt=0;bt<z;bt++)for(nn=0;nn<be;nn++){for(Bt=0;Bt<bt;Bt++)Qe.set(bt,nn,Qe.get(bt,nn)-Qe.get(Bt,nn)*ge.get(bt,Bt));Qe.set(bt,nn,Qe.get(bt,nn)/ge.get(bt,bt))}for(bt=z-1;bt>=0;bt--)for(nn=0;nn<be;nn++){for(Bt=bt+1;Bt<z;Bt++)Qe.set(bt,nn,Qe.get(bt,nn)-Qe.get(Bt,nn)*ge.get(Bt,bt));Qe.set(bt,nn,Qe.get(bt,nn)/ge.get(bt,bt))}return Qe}get lowerTriangularMatrix(){return this.L}}class st{constructor(ie,ge={}){ie=ke.checkMatrix(ie);let{Y:z}=ge;const{scaleScores:be=!1,maxIterations:Qe=1e3,terminationCriteria:Bt=1e-10}=ge;let nn;if(z){if(l.isAnyArray(z)&&typeof z[0]=="number"?z=Ae.columnVector(z):z=ke.checkMatrix(z),z.rows!==ie.rows)throw new Error("Y should have the same number of rows as X");nn=z.getColumnVector(0)}else nn=ie.getColumnVector(0);let bt=1,at,$t,On,Ct;for(let Zt=0;Zt<Qe&&bt>Bt;Zt++)On=ie.transpose().mmul(nn).div(nn.transpose().mmul(nn).get(0,0)),On=On.div(On.norm()),at=ie.mmul(On).div(On.transpose().mmul(On).get(0,0)),Zt>0&&(bt=at.clone().sub(Ct).pow(2).sum()),Ct=at.clone(),z?($t=z.transpose().mmul(at).div(at.transpose().mmul(at).get(0,0)),$t=$t.div($t.norm()),nn=z.mmul($t).div($t.transpose().mmul($t).get(0,0))):nn=at;if(z){let Zt=ie.transpose().mmul(at).div(at.transpose().mmul(at).get(0,0));Zt=Zt.div(Zt.norm());let Wn=ie.clone().sub(at.clone().mmul(Zt.transpose())),Zn=nn.transpose().mmul(at).div(at.transpose().mmul(at).get(0,0)),xt=z.clone().sub(at.clone().mulS(Zn.get(0,0)).mmul($t.transpose()));this.t=at,this.p=Zt.transpose(),this.w=On.transpose(),this.q=$t,this.u=nn,this.s=at.transpose().mmul(at),this.xResidual=Wn,this.yResidual=xt,this.betas=Zn}else this.w=On.transpose(),this.s=at.transpose().mmul(at).sqrt(),be?this.t=at.clone().div(this.s.get(0,0)):this.t=at,this.xResidual=ie.sub(at.mmul(On.transpose()))}}g.y3=pe,g.jy=Ge,g.oN=Ge,g.cg=Fe,g.hj=Fe,g.LU=ft,g.Tb=ft,g.uq=Ae,g.Zm=nt,g.Dq=xe,g.__=Tt,g.q0=pt,g.lh=tt,g.pI=Rt,g.zC=U,g.zg=F,g.g6=Y,g.OL=st,g.ks=st,g.QR=Ut,g.jp=Ut,g.mk=Ke,g.W2=Ke,g.KY=le,g.dv=ke,g.BR=He,g.Wu=De,i=Ae,g.a4=et,g.DI=it,g.Jo=K,g.Zi=ue,g.kH=At,g.LV=Ye},17617:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(70788);function l(s,m){if(!(0,i.isAnyArray)(s)||!(0,i.isAnyArray)(m))throw new TypeError("x and y must be arrays");if(s.length!==m.length)throw new RangeError("x and y arrays must have the same length")}},22830:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>s});var i=t(70788),l=t(17617);class s{constructor(){if(new.target===s)throw new Error("BaseRegression must be subclassed")}predict(u){if(typeof u=="number")return this._predict(u);if((0,i.isAnyArray)(u)){const f=[];for(const p of u)f.push(this._predict(p));return f}else throw new TypeError("x must be a number or array")}_predict(u){throw new Error("_predict must be implemented")}train(){}toString(u){return""}toLaTeX(u){return""}score(u,f){(0,l.A)(u,f);const p=u.length,v=new Array(p);for(let M=0;M<p;M++)v[M]=this._predict(u[M]);let h=0,d=0,b=0,y=0,w=0,S=0,O=0;for(let M=0;M<p;M++)h+=v[M],d+=f[M],w+=v[M]*v[M],S+=f[M]*f[M],O+=v[M]*f[M],f[M]!==0&&(b+=(f[M]-v[M])*(f[M]-v[M])/f[M]),y+=(f[M]-v[M])*(f[M]-v[M]);const R=(p*O-h*d)/Math.sqrt((p*w-h*h)*(p*S-d*d));return{r:R,r2:R*R,chi2:b,rmsd:Math.sqrt(y/p)}}}},90063:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){return l<0?(l=0-l,typeof s=="number"?`- ${l.toPrecision(s)}`:`- ${l.toString()}`):typeof s=="number"?l.toPrecision(s):l.toString()}},66648:(J,g,t)=>{"use strict";t.d(g,{Y:()=>ne});var i=t(10673);const l=i.y3,s=i.jy,m=i.oN,u=i.cg,f=i.hj,p=i.LU,v=i.Tb,h=i.uq,d=i.Zm,b=i.Dq,y=i.__,w=i.q0,S=i.lh,O=i.pI,R=i.zC,M=i.zg,D=i.g6,P=i.OL,T=i.ks,A=i.QR,j=i.jp,ae=i.mk,_=i.W2,N=i.KY,W=i.dv,he=i.BR,me=i.Wu,fe=(i.uq,i.uq),ve=i.a4,ce=i.DI,oe=i.Jo,re=i.Zi,H=i.kH,V=i.LV;var Q=t(22830),Te=t(17617),Re=t(90063);class ne extends Q.Ay{constructor(Se,Ae,Ee,xe={}){if(super(),Se===!0)this.degree=Ae.degree,this.powers=Ae.powers,this.coefficients=Ae.coefficients;else{(0,Te.A)(Se,Ae);const nt=pe(Se,Ae,Ee,xe);this.degree=nt.degree,this.powers=nt.powers,this.coefficients=nt.coefficients}}_predict(Se){let Ae=0;for(let Ee=0;Ee<this.powers.length;Ee++)Ae+=this.coefficients[Ee]*Math.pow(Se,this.powers[Ee]);return Ae}toJSON(){return{name:"polynomialRegression",degree:this.degree,powers:this.powers,coefficients:this.coefficients}}toString(Se){return this._toFormula(Se,!1)}toLaTeX(Se){return this._toFormula(Se,!0)}_toFormula(Se,Ae){let Ee="^",xe="",nt=" * ";Ae&&(Ee="^{",xe="}",nt="");let Tt="",pt="";for(let Rt=0;Rt<this.coefficients.length;Rt++)pt="",this.coefficients[Rt]!==0&&(this.powers[Rt]===0?pt=(0,Re.A)(this.coefficients[Rt],Se):this.powers[Rt]===1?pt=`${(0,Re.A)(this.coefficients[Rt],Se)+nt}x`:pt=`${(0,Re.A)(this.coefficients[Rt],Se)+nt}x${Ee}${this.powers[Rt]}${xe}`,this.coefficients[Rt]>0&&Rt!==this.coefficients.length-1?pt=` + ${pt}`:Rt!==this.coefficients.length-1&&(pt=` ${pt}`)),Tt=pt+Tt;return Tt.startsWith("+")&&(Tt=Tt.slice(1)),`f(x) = ${Tt}`}static load(Se){if(Se.name!=="polynomialRegression")throw new TypeError("not a polynomial regression model");return new ne(!0,Se)}}function pe(ye,Se,Ae,Ee={}){const xe=ye.length;let{interceptAtZero:nt=!1}=Ee,Tt=[];if(Array.isArray(Ae))Tt=Ae,nt=!1;else if(typeof Ae=="number")if(nt){Tt=new Array(Ae);for(let le=0;le<Ae;le++)Tt[le]=le+1}else{Tt=new Array(Ae+1);for(let le=0;le<=Ae;le++)Tt[le]=le}const pt=Tt.length,Rt=new h(xe,pt),tt=new h([Se]);for(let le=0;le<pt;le++)for(let ke=0;ke<xe;ke++)Tt[le]===0?Rt.set(ke,le,1):Rt.set(ke,le,Math.pow(ye[ke],Tt[le]));const U=new D(Rt),F=U.mmul(Rt),Y=U.mmul(new D(tt));return{coefficients:H(F,Y).to1DArray(),degree:Math.max(...Tt),powers:Tt}}},48817:(J,g,t)=>{"use strict";t.d(g,{X:()=>m});var i=t(22830),l=t(17617),s=t(90063);class m extends i.Ay{constructor(p,v){if(super(),p===!0){const h=v;this.slope=h.slope,this.intercept=h.intercept,this.coefficients=[h.intercept,h.slope]}else{(0,l.A)(p,v);const h=u(p,v);this.slope=h.slope,this.intercept=h.intercept,this.coefficients=[h.intercept,h.slope]}}toJSON(){return{name:"simpleLinearRegression",slope:this.slope,intercept:this.intercept}}_predict(p){return this.slope*p+this.intercept}computeX(p){return(p-this.intercept)/this.slope}toString(p){let v="f(x) = ";if(this.slope!==0){const h=(0,s.A)(this.slope,p);if(v+=`${h==="1"?"":`${h} * `}x`,this.intercept!==0){const d=Math.abs(this.intercept),b=d===this.intercept?"+":"-";v+=` ${b} ${(0,s.A)(d,p)}`}}else v+=(0,s.A)(this.intercept,p);return v}toLaTeX(p){return this.toString(p)}static load(p){if(p.name!=="simpleLinearRegression")throw new TypeError("not a SLR model");return new m(!0,p)}}function u(f,p){const v=f.length;let h=0,d=0,b=0,y=0;for(let O=0;O<v;O++)h+=f[O],d+=p[O],b+=f[O]*f[O],y+=f[O]*p[O];const S=(v*y-h*d)/(v*b-h*h);return{slope:S,intercept:1/v*d-S*(1/v)*h}}},84743:(J,g,t)=>{var i=J.exports=t(56639);i.tz.load(t(21681))},56639:function(J,g,t){var i,l,s;//! moment-timezone.js //! version : 0.5.45 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone (function(m,u){"use strict";J.exports?J.exports=u(t(95093)):(l=[t(95093)],i=u,s=typeof i=="function"?i.apply(g,l):i,s!==void 0&&(J.exports=s))})(this,function(m){"use strict";m.version===void 0&&m.default&&(m=m.default);var u="0.5.45",f={},p={},v={},h={},d={},b;(!m||typeof m.version!="string")&&xe("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var y=m.version.split("."),w=+y[0],S=+y[1];(w<2||w===2&&S<6)&&xe("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+m.version+". See momentjs.com");function O(F){return F>96?F-87:F>64?F-29:F-48}function R(F){var Y=0,le=F.split("."),ke=le[0],Ye=le[1]||"",ft=1,wt,Ut=0,Ke=1;for(F.charCodeAt(0)===45&&(Y=1,Ke=-1),Y;Y<ke.length;Y++)wt=O(ke.charCodeAt(Y)),Ut=60*Ut+wt;for(Y=0;Y<Ye.length;Y++)ft=ft/60,wt=O(Ye.charCodeAt(Y)),Ut+=wt*ft;return Ut*Ke}function M(F){for(var Y=0;Y<F.length;Y++)F[Y]=R(F[Y])}function D(F,Y){for(var le=0;le<Y;le++)F[le]=Math.round((F[le-1]||0)+F[le]*6e4);F[Y-1]=1/0}function P(F,Y){var le=[],ke;for(ke=0;ke<Y.length;ke++)le[ke]=F[Y[ke]];return le}function T(F){var Y=F.split("|"),le=Y[2].split(" "),ke=Y[3].split(""),Ye=Y[4].split(" ");return M(le),M(ke),M(Ye),D(Ye,ke.length),{name:Y[0],abbrs:P(Y[1].split(" "),ke),offsets:P(le,ke),untils:Ye,population:Y[5]|0}}function A(F){F&&this._set(T(F))}function j(F,Y){var le=Y.length;if(F<Y[0])return 0;if(le>1&&Y[le-1]===1/0&&F>=Y[le-2])return le-1;if(F>=Y[le-1])return-1;for(var ke,Ye=0,ft=le-1;ft-Ye>1;)ke=Math.floor((Ye+ft)/2),Y[ke]<=F?Ye=ke:ft=ke;return ft}A.prototype={_set:function(F){this.name=F.name,this.abbrs=F.abbrs,this.untils=F.untils,this.offsets=F.offsets,this.population=F.population},_index:function(F){var Y=+F,le=this.untils,ke;if(ke=j(Y,le),ke>=0)return ke},countries:function(){var F=this.name;return Object.keys(v).filter(function(Y){return v[Y].zones.indexOf(F)!==-1})},parse:function(F){var Y=+F,le=this.offsets,ke=this.untils,Ye=ke.length-1,ft,wt,Ut,Ke;for(Ke=0;Ke<Ye;Ke++)if(ft=le[Ke],wt=le[Ke+1],Ut=le[Ke&&Ke-1],ft<wt&&nt.moveAmbiguousForward?ft=wt:ft>Ut&&nt.moveInvalidForward&&(ft=Ut),Y<ke[Ke]-ft*6e4)return le[Ke];return le[Ye]},abbr:function(F){return this.abbrs[this._index(F)]},offset:function(F){return xe("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(F)]},utcOffset:function(F){return this.offsets[this._index(F)]}};function ae(F,Y){this.name=F,this.zones=Y}function _(F){var Y=F.toTimeString(),le=Y.match(/\([a-z ]+\)/i);le&&le[0]?(le=le[0].match(/[A-Z]/g),le=le?le.join(""):void 0):(le=Y.match(/[A-Z]{3,5}/g),le=le?le[0]:void 0),le==="GMT"&&(le=void 0),this.at=+F,this.abbr=le,this.offset=F.getTimezoneOffset()}function N(F){this.zone=F,this.offsetScore=0,this.abbrScore=0}N.prototype.scoreOffsetAt=function(F){this.offsetScore+=Math.abs(this.zone.utcOffset(F.at)-F.offset),this.zone.abbr(F.at).replace(/[^A-Z]/g,"")!==F.abbr&&this.abbrScore++};function W(F,Y){for(var le,ke;ke=((Y.at-F.at)/12e4|0)*6e4;)le=new _(new Date(F.at+ke)),le.offset===F.offset?F=le:Y=le;return F}function he(){var F=new Date().getFullYear()-2,Y=new _(new Date(F,0,1)),le=Y.offset,ke=[Y],Ye,ft,wt,Ut;for(Ut=1;Ut<48;Ut++)wt=new Date(F,Ut,1).getTimezoneOffset(),wt!==le&&(ft=new _(new Date(F,Ut,1)),Ye=W(Y,ft),ke.push(Ye),ke.push(new _(new Date(Ye.at+6e4))),Y=ft,le=wt);for(Ut=0;Ut<4;Ut++)ke.push(new _(new Date(F+Ut,0,1))),ke.push(new _(new Date(F+Ut,6,1)));return ke}function me(F,Y){return F.offsetScore!==Y.offsetScore?F.offsetScore-Y.offsetScore:F.abbrScore!==Y.abbrScore?F.abbrScore-Y.abbrScore:F.zone.population!==Y.zone.population?Y.zone.population-F.zone.population:Y.zone.name.localeCompare(F.zone.name)}function fe(F,Y){var le,ke;for(M(Y),le=0;le<Y.length;le++)ke=Y[le],d[ke]=d[ke]||{},d[ke][F]=!0}function ve(F){var Y=F.length,le={},ke=[],Ye={},ft,wt,Ut,Ke;for(ft=0;ft<Y;ft++)if(Ut=F[ft].offset,!Ye.hasOwnProperty(Ut)){Ke=d[Ut]||{};for(wt in Ke)Ke.hasOwnProperty(wt)&&(le[wt]=!0);Ye[Ut]=!0}for(ft in le)le.hasOwnProperty(ft)&&ke.push(h[ft]);return ke}function ce(){try{var F=Intl.DateTimeFormat().resolvedOptions().timeZone;if(F&&F.length>3){var Y=h[re(F)];if(Y)return Y;xe("Moment Timezone found "+F+" from the Intl api, but did not have that data loaded.")}}catch{}var le=he(),ke=le.length,Ye=ve(le),ft=[],wt,Ut,Ke;for(Ut=0;Ut<Ye.length;Ut++){for(wt=new N(V(Ye[Ut]),ke),Ke=0;Ke<ke;Ke++)wt.scoreOffsetAt(le[Ke]);ft.push(wt)}return ft.sort(me),ft.length>0?ft[0].zone.name:void 0}function oe(F){return(!b||F)&&(b=ce()),b}function re(F){return(F||"").toLowerCase().replace(/\//g,"_")}function H(F){var Y,le,ke,Ye;for(typeof F=="string"&&(F=[F]),Y=0;Y<F.length;Y++)ke=F[Y].split("|"),le=ke[0],Ye=re(le),f[Ye]=F[Y],h[Ye]=le,fe(Ye,ke[2].split(" "))}function V(F,Y){F=re(F);var le=f[F],ke;return le instanceof A?le:typeof le=="string"?(le=new A(le),f[F]=le,le):p[F]&&Y!==V&&(ke=V(p[F],V))?(le=f[F]=new A,le._set(ke),le.name=h[F],le):null}function Q(){var F,Y=[];for(F in h)h.hasOwnProperty(F)&&(f[F]||f[p[F]])&&h[F]&&Y.push(h[F]);return Y.sort()}function Te(){return Object.keys(v)}function Re(F){var Y,le,ke,Ye;for(typeof F=="string"&&(F=[F]),Y=0;Y<F.length;Y++)le=F[Y].split("|"),ke=re(le[0]),Ye=re(le[1]),p[ke]=Ye,h[ke]=le[0],p[Ye]=ke,h[Ye]=le[1]}function ne(F){var Y,le,ke,Ye;if(!(!F||!F.length))for(Y=0;Y<F.length;Y++)Ye=F[Y].split("|"),le=Ye[0].toUpperCase(),ke=Ye[1].split(" "),v[le]=new ae(le,ke)}function pe(F){return F=F.toUpperCase(),v[F]||null}function ye(F,Y){if(F=pe(F),!F)return null;var le=F.zones.sort();return Y?le.map(function(ke){var Ye=V(ke);return{name:ke,offset:Ye.utcOffset(new Date)}}):le}function Se(F){H(F.zones),Re(F.links),ne(F.countries),nt.dataVersion=F.version}function Ae(F){return Ae.didShowError||(Ae.didShowError=!0,xe("moment.tz.zoneExists('"+F+"') has been deprecated in favor of !moment.tz.zone('"+F+"')")),!!V(F)}function Ee(F){var Y=F._f==="X"||F._f==="x";return!!(F._a&&F._tzm===void 0&&!Y)}function xe(F){typeof console<"u"&&typeof console.error=="function"&&console.error(F)}function nt(F){var Y=Array.prototype.slice.call(arguments,0,-1),le=arguments[arguments.length-1],ke=m.utc.apply(null,Y),Ye;return!m.isMoment(F)&&Ee(ke)&&(Ye=V(le))&&ke.add(Ye.parse(ke),"minutes"),ke.tz(le),ke}nt.version=u,nt.dataVersion="",nt._zones=f,nt._links=p,nt._names=h,nt._countries=v,nt.add=H,nt.link=Re,nt.load=Se,nt.zone=V,nt.zoneExists=Ae,nt.guess=oe,nt.names=Q,nt.Zone=A,nt.unpack=T,nt.unpackBase60=R,nt.needsOffset=Ee,nt.moveInvalidForward=!0,nt.moveAmbiguousForward=!1,nt.countries=Te,nt.zonesForCountry=ye;var Tt=m.fn;m.tz=nt,m.defaultZone=null,m.updateOffset=function(F,Y){var le=m.defaultZone,ke;if(F._z===void 0&&(le&&Ee(F)&&!F._isUTC&&F.isValid()&&(F._d=m.utc(F._a)._d,F.utc().add(le.parse(F),"minutes")),F._z=le),F._z)if(ke=F._z.utcOffset(F),Math.abs(ke)<16&&(ke=ke/60),F.utcOffset!==void 0){var Ye=F._z;F.utcOffset(-ke,Y),F._z=Ye}else F.zone(ke,Y)},Tt.tz=function(F,Y){if(F){if(typeof F!="string")throw new Error("Time zone name must be a string, got "+F+" ["+typeof F+"]");return this._z=V(F),this._z?m.updateOffset(this,Y):xe("Moment Timezone has no data for "+F+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name};function pt(F){return function(){return this._z?this._z.abbr(this):F.call(this)}}function Rt(F){return function(){return this._z=null,F.apply(this,arguments)}}function tt(F){return function(){return arguments.length>0&&(this._z=null),F.apply(this,arguments)}}Tt.zoneName=pt(Tt.zoneName),Tt.zoneAbbr=pt(Tt.zoneAbbr),Tt.utc=Rt(Tt.utc),Tt.local=Rt(Tt.local),Tt.utcOffset=tt(Tt.utcOffset),m.tz.setDefault=function(F){return(w<2||w===2&&S<9)&&xe("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+m.version+"."),m.defaultZone=F?V(F):null,m};var U=m.momentProperties;return Object.prototype.toString.call(U)==="[object Array]"?(U.push("_z"),U.push("_a")):U&&(U._z=null),m})},45731:()=>{(function(J){var g={},t=J.prototype.stopCallback;J.prototype.stopCallback=function(i,l,s,m){var u=this;return u.paused?!0:g[s]||g[m]?!1:t.call(u,i,l,s)},J.prototype.bindGlobal=function(i,l,s){var m=this;if(m.bind(i,l,s),i instanceof Array){for(var u=0;u<i.length;u++)g[i[u]]=!0;return}g[i]=!0},J.prototype.unbindGlobal=function(i,l){var s=this;if(s.unbind(i,l),i instanceof Array){for(var m=0;m<i.length;m++)g[i[m]]=!1;return}g[i]=!1},J.init()})(Mousetrap)},6411:(J,g,t)=>{var i;(function(l,s,m){if(!l)return;for(var u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},p={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},v={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h,d=1;d<20;++d)u[111+d]="f"+d;for(d=0;d<=9;++d)u[d+96]=d.toString();function b(_,N,W){if(_.addEventListener){_.addEventListener(N,W,!1);return}_.attachEvent("on"+N,W)}function y(_){if(_.type=="keypress"){var N=String.fromCharCode(_.which);return _.shiftKey||(N=N.toLowerCase()),N}return u[_.which]?u[_.which]:f[_.which]?f[_.which]:String.fromCharCode(_.which).toLowerCase()}function w(_,N){return _.sort().join(",")===N.sort().join(",")}function S(_){var N=[];return _.shiftKey&&N.push("shift"),_.altKey&&N.push("alt"),_.ctrlKey&&N.push("ctrl"),_.metaKey&&N.push("meta"),N}function O(_){if(_.preventDefault){_.preventDefault();return}_.returnValue=!1}function R(_){if(_.stopPropagation){_.stopPropagation();return}_.cancelBubble=!0}function M(_){return _=="shift"||_=="ctrl"||_=="alt"||_=="meta"}function D(){if(!h){h={};for(var _ in u)_>95&&_<112||u.hasOwnProperty(_)&&(h[u[_]]=_)}return h}function P(_,N,W){return W||(W=D()[_]?"keydown":"keypress"),W=="keypress"&&N.length&&(W="keydown"),W}function T(_){return _==="+"?["+"]:(_=_.replace(/\+{2}/g,"+plus"),_.split("+"))}function A(_,N){var W,he,me,fe=[];for(W=T(_),me=0;me<W.length;++me)he=W[me],v[he]&&(he=v[he]),N&&N!="keypress"&&p[he]&&(he=p[he],fe.push("shift")),M(he)&&fe.push(he);return N=P(he,fe,N),{key:he,modifiers:fe,action:N}}function j(_,N){return _===null||_===s?!1:_===N?!0:j(_.parentNode,N)}function ae(_){var N=this;if(_=_||s,!(N instanceof ae))return new ae(_);N.target=_,N._callbacks={},N._directMap={};var W={},he,me=!1,fe=!1,ve=!1;function ce(Re){Re=Re||{};var ne=!1,pe;for(pe in W){if(Re[pe]){ne=!0;continue}W[pe]=0}ne||(ve=!1)}function oe(Re,ne,pe,ye,Se,Ae){var Ee,xe,nt=[],Tt=pe.type;if(!N._callbacks[Re])return[];for(Tt=="keyup"&&M(Re)&&(ne=[Re]),Ee=0;Ee<N._callbacks[Re].length;++Ee)if(xe=N._callbacks[Re][Ee],!(!ye&&xe.seq&&W[xe.seq]!=xe.level)&&Tt==xe.action&&(Tt=="keypress"&&!pe.metaKey&&!pe.ctrlKey||w(ne,xe.modifiers))){var pt=!ye&&xe.combo==Se,Rt=ye&&xe.seq==ye&&xe.level==Ae;(pt||Rt)&&N._callbacks[Re].splice(Ee,1),nt.push(xe)}return nt}function re(Re,ne,pe,ye){N.stopCallback(ne,ne.target||ne.srcElement,pe,ye)||Re(ne,pe)===!1&&(O(ne),R(ne))}N._handleKey=function(Re,ne,pe){var ye=oe(Re,ne,pe),Se,Ae={},Ee=0,xe=!1;for(Se=0;Se<ye.length;++Se)ye[Se].seq&&(Ee=Math.max(Ee,ye[Se].level));for(Se=0;Se<ye.length;++Se){if(ye[Se].seq){if(ye[Se].level!=Ee)continue;xe=!0,Ae[ye[Se].seq]=1,re(ye[Se].callback,pe,ye[Se].combo,ye[Se].seq);continue}xe||re(ye[Se].callback,pe,ye[Se].combo)}var nt=pe.type=="keypress"&&fe;pe.type==ve&&!M(Re)&&!nt&&ce(Ae),fe=xe&&pe.type=="keydown"};function H(Re){typeof Re.which!="number"&&(Re.which=Re.keyCode);var ne=y(Re);if(ne){if(Re.type=="keyup"&&me===ne){me=!1;return}N.handleKey(ne,S(Re),Re)}}function V(){clearTimeout(he),he=setTimeout(ce,1e3)}function Q(Re,ne,pe,ye){W[Re]=0;function Se(Tt){return function(){ve=Tt,++W[Re],V()}}function Ae(Tt){re(pe,Tt,Re),ye!=="keyup"&&(me=y(Tt)),setTimeout(ce,10)}for(var Ee=0;Ee<ne.length;++Ee){var xe=Ee+1===ne.length,nt=xe?Ae:Se(ye||A(ne[Ee+1]).action);Te(ne[Ee],nt,ye,Re,Ee)}}function Te(Re,ne,pe,ye,Se){N._directMap[Re+":"+pe]=ne,Re=Re.replace(/\s+/g," ");var Ae=Re.split(" "),Ee;if(Ae.length>1){Q(Re,Ae,ne,pe);return}Ee=A(Re,pe),N._callbacks[Ee.key]=N._callbacks[Ee.key]||[],oe(Ee.key,Ee.modifiers,{type:Ee.action},ye,Re,Se),N._callbacks[Ee.key][ye?"unshift":"push"]({callback:ne,modifiers:Ee.modifiers,action:Ee.action,seq:ye,level:Se,combo:Re})}N._bindMultiple=function(Re,ne,pe){for(var ye=0;ye<Re.length;++ye)Te(Re[ye],ne,pe)},b(_,"keypress",H),b(_,"keydown",H),b(_,"keyup",H)}ae.prototype.bind=function(_,N,W){var he=this;return _=_ instanceof Array?_:[_],he._bindMultiple.call(he,_,N,W),he},ae.prototype.unbind=function(_,N){var W=this;return W.bind.call(W,_,function(){},N)},ae.prototype.trigger=function(_,N){var W=this;return W._directMap[_+":"+N]&&W._directMap[_+":"+N]({},_),W},ae.prototype.reset=function(){var _=this;return _._callbacks={},_._directMap={},_},ae.prototype.stopCallback=function(_,N){var W=this;if((" "+N.className+" ").indexOf(" mousetrap ")>-1||j(N,W.target))return!1;if("composedPath"in _&&typeof _.composedPath=="function"){var he=_.composedPath()[0];he!==_.target&&(N=he)}return N.tagName=="INPUT"||N.tagName=="SELECT"||N.tagName=="TEXTAREA"||N.isContentEditable},ae.prototype.handleKey=function(){var _=this;return _._handleKey.apply(_,arguments)},ae.addKeycodes=function(_){for(var N in _)_.hasOwnProperty(N)&&(u[N]=_[N]);h=null},ae.init=function(){var _=ae(s);for(var N in _)N.charAt(0)!=="_"&&(ae[N]=function(W){return function(){return _[W].apply(_,arguments)}}(N))},ae.init(),l.Mousetrap=ae,J.exports&&(J.exports=ae),i=function(){return ae}.call(g,t,g,J),i!==m&&(J.exports=i)})(typeof window<"u"?window:null,typeof window<"u"?document:null)},9610:()=>{(function(J){if(J){var g={},t=J.prototype.stopCallback;J.prototype.stopCallback=function(i,l,s,m){var u=this;return u.paused?!0:g[s]||g[m]?!1:t.call(u,i,l,s)},J.prototype.bindGlobal=function(i,l,s){var m=this;if(m.bind(i,l,s),i instanceof Array){for(var u=0;u<i.length;u++)g[i[u]]=!0;return}g[i]=!0},J.init()}})(typeof Mousetrap<"u"?Mousetrap:void 0)},6585:J=>{var g=1e3,t=g*60,i=t*60,l=i*24,s=l*7,m=l*365.25;J.exports=function(h,d){d=d||{};var b=typeof h;if(b==="string"&&h.length>0)return u(h);if(b==="number"&&isFinite(h))return d.long?p(h):f(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function u(h){if(h=String(h),!(h.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(d){var b=parseFloat(d[1]),y=(d[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return b*m;case"weeks":case"week":case"w":return b*s;case"days":case"day":case"d":return b*l;case"hours":case"hour":case"hrs":case"hr":case"h":return b*i;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*g;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function f(h){var d=Math.abs(h);return d>=l?Math.round(h/l)+"d":d>=i?Math.round(h/i)+"h":d>=t?Math.round(h/t)+"m":d>=g?Math.round(h/g)+"s":h+"ms"}function p(h){var d=Math.abs(h);return d>=l?v(h,d,l,"day"):d>=i?v(h,d,i,"hour"):d>=t?v(h,d,t,"minute"):d>=g?v(h,d,g,"second"):h+" ms"}function v(h,d,b,y){var w=d>=b*1.5;return Math.round(h/b)+" "+y+(w?"s":"")}},45228:J=>{"use strict";/* object-assign (c) Sindre Sorhus @license MIT */var g=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}function s(){try{if(!Object.assign)return!1;var m=new String("abc");if(m[5]="de",Object.getOwnPropertyNames(m)[0]==="5")return!1;for(var u={},f=0;f<10;f++)u["_"+String.fromCharCode(f)]=f;var p=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(p.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(h){v[h]=h}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}J.exports=s()?Object.assign:function(m,u){for(var f,p=l(m),v,h=1;h<arguments.length;h++){f=Object(arguments[h]);for(var d in f)t.call(f,d)&&(p[d]=f[d]);if(g){v=g(f);for(var b=0;b<v.length;b++)i.call(f,v[b])&&(p[v[b]]=f[v[b]])}}return p}},44809:function(J,g){var t,i,l;/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT */(function(s,m){i=[],t=m,l=typeof t=="function"?t.apply(g,i):t,l!==void 0&&(J.exports=l)})(this,function s(){"use strict";var m=typeof self<"u"?self:typeof window<"u"?window:m!==void 0?m:{},u=!m.document&&!!m.postMessage,f=m.IS_PAPA_WORKER||!1,p={},v=0,h={parse:function(N,W){var he=(W=W||{}).dynamicTyping||!1;if(_(he)&&(W.dynamicTypingFunction=he,he={}),W.dynamicTyping=he,W.transform=!!_(W.transform)&&W.transform,W.worker&&h.WORKERS_SUPPORTED){var me=function(){if(!h.WORKERS_SUPPORTED)return!1;var ve=(oe=m.URL||m.webkitURL||null,re=s.toString(),h.BLOB_URL||(h.BLOB_URL=oe.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",re,")();"],{type:"text/javascript"})))),ce=new m.Worker(ve),oe,re;return ce.onmessage=P,ce.id=v++,p[ce.id]=ce}();return me.userStep=W.step,me.userChunk=W.chunk,me.userComplete=W.complete,me.userError=W.error,W.step=_(W.step),W.chunk=_(W.chunk),W.complete=_(W.complete),W.error=_(W.error),delete W.worker,void me.postMessage({input:N,config:W,workerId:me.id})}var fe=null;return h.NODE_STREAM_INPUT,typeof N=="string"?(N=function(ve){return ve.charCodeAt(0)===65279?ve.slice(1):ve}(N),fe=W.download?new y(W):new S(W)):N.readable===!0&&_(N.read)&&_(N.on)?fe=new O(W):(m.File&&N instanceof File||N instanceof Object)&&(fe=new w(W)),fe.stream(N)},unparse:function(N,W){var he=!1,me=!0,fe=",",ve=`\r `,ce='"',oe=ce+ce,re=!1,H=null,V=!1;(function(){if(typeof W=="object"){if(typeof W.delimiter!="string"||h.BAD_DELIMITERS.filter(function(ne){return W.delimiter.indexOf(ne)!==-1}).length||(fe=W.delimiter),(typeof W.quotes=="boolean"||typeof W.quotes=="function"||Array.isArray(W.quotes))&&(he=W.quotes),typeof W.skipEmptyLines!="boolean"&&typeof W.skipEmptyLines!="string"||(re=W.skipEmptyLines),typeof W.newline=="string"&&(ve=W.newline),typeof W.quoteChar=="string"&&(ce=W.quoteChar),typeof W.header=="boolean"&&(me=W.header),Array.isArray(W.columns)){if(W.columns.length===0)throw new Error("Option columns is empty");H=W.columns}W.escapeChar!==void 0&&(oe=W.escapeChar+ce),(typeof W.escapeFormulae=="boolean"||W.escapeFormulae instanceof RegExp)&&(V=W.escapeFormulae instanceof RegExp?W.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Q=new RegExp(M(ce),"g");if(typeof N=="string"&&(N=JSON.parse(N)),Array.isArray(N)){if(!N.length||Array.isArray(N[0]))return Te(null,N,re);if(typeof N[0]=="object")return Te(H||Object.keys(N[0]),N,re)}else if(typeof N=="object")return typeof N.data=="string"&&(N.data=JSON.parse(N.data)),Array.isArray(N.data)&&(N.fields||(N.fields=N.meta&&N.meta.fields||H),N.fields||(N.fields=Array.isArray(N.data[0])?N.fields:typeof N.data[0]=="object"?Object.keys(N.data[0]):[]),Array.isArray(N.data[0])||typeof N.data[0]=="object"||(N.data=[N.data])),Te(N.fields||[],N.data||[],re);throw new Error("Unable to serialize unrecognized input");function Te(ne,pe,ye){var Se="";typeof ne=="string"&&(ne=JSON.parse(ne)),typeof pe=="string"&&(pe=JSON.parse(pe));var Ae=Array.isArray(ne)&&0<ne.length,Ee=!Array.isArray(pe[0]);if(Ae&&me){for(var xe=0;xe<ne.length;xe++)0<xe&&(Se+=fe),Se+=Re(ne[xe],xe);0<pe.length&&(Se+=ve)}for(var nt=0;nt<pe.length;nt++){var Tt=Ae?ne.length:pe[nt].length,pt=!1,Rt=Ae?Object.keys(pe[nt]).length===0:pe[nt].length===0;if(ye&&!Ae&&(pt=ye==="greedy"?pe[nt].join("").trim()==="":pe[nt].length===1&&pe[nt][0].length===0),ye==="greedy"&&Ae){for(var tt=[],U=0;U<Tt;U++){var F=Ee?ne[U]:U;tt.push(pe[nt][F])}pt=tt.join("").trim()===""}if(!pt){for(var Y=0;Y<Tt;Y++){0<Y&&!Rt&&(Se+=fe);var le=Ae&&Ee?ne[Y]:Y;Se+=Re(pe[nt][le],Y)}nt<pe.length-1&&(!ye||0<Tt&&!Rt)&&(Se+=ve)}}return Se}function Re(ne,pe){if(ne==null)return"";if(ne.constructor===Date)return JSON.stringify(ne).slice(1,25);var ye=!1;V&&typeof ne=="string"&&V.test(ne)&&(ne="'"+ne,ye=!0);var Se=ne.toString().replace(Q,oe);return(ye=ye||he===!0||typeof he=="function"&&he(ne,pe)||Array.isArray(he)&&he[pe]||function(Ae,Ee){for(var xe=0;xe<Ee.length;xe++)if(-1<Ae.indexOf(Ee[xe]))return!0;return!1}(Se,h.BAD_DELIMITERS)||-1<Se.indexOf(fe)||Se.charAt(0)===" "||Se.charAt(Se.length-1)===" ")?ce+Se+ce:Se}}};if(h.RECORD_SEP=String.fromCharCode(30),h.UNIT_SEP=String.fromCharCode(31),h.BYTE_ORDER_MARK="\uFEFF",h.BAD_DELIMITERS=["\r",` `,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!u&&!!m.Worker,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=D,h.ParserHandle=R,h.NetworkStreamer=y,h.FileStreamer=w,h.StringStreamer=S,h.ReadableStreamStreamer=O,m.jQuery){var d=m.jQuery;d.fn.parse=function(N){var W=N.config||{},he=[];return this.each(function(ve){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&m.FileReader)||!this.files||this.files.length===0)return!0;for(var ce=0;ce<this.files.length;ce++)he.push({file:this.files[ce],inputElem:this,instanceConfig:d.extend({},W)})}),me(),this;function me(){if(he.length!==0){var ve,ce,oe,re,H=he[0];if(_(N.before)){var V=N.before(H.file,H.inputElem);if(typeof V=="object"){if(V.action==="abort")return ve="AbortError",ce=H.file,oe=H.inputElem,re=V.reason,void(_(N.error)&&N.error({name:ve},ce,oe,re));if(V.action==="skip")return void fe();typeof V.config=="object"&&(H.instanceConfig=d.extend(H.instanceConfig,V.config))}else if(V==="skip")return void fe()}var Q=H.instanceConfig.complete;H.instanceConfig.complete=function(Te){_(Q)&&Q(Te,H.file,H.inputElem),fe()},h.parse(H.file,H.instanceConfig)}else _(N.complete)&&N.complete()}function fe(){he.splice(0,1),me()}}}function b(N){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(W){var he=j(W);he.chunkSize=parseInt(he.chunkSize),W.step||W.chunk||(he.chunkSize=null),this._handle=new R(he),(this._handle.streamer=this)._config=he}.call(this,N),this.parseChunk=function(W,he){if(this.isFirstChunk&&_(this._config.beforeFirstChunk)){var me=this._config.beforeFirstChunk(W);me!==void 0&&(W=me)}this.isFirstChunk=!1,this._halted=!1;var fe=this._partialLine+W;this._partialLine="";var ve=this._handle.parse(fe,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var ce=ve.meta.cursor;this._finished||(this._partialLine=fe.substring(ce-this._baseIndex),this._baseIndex=ce),ve&&ve.data&&(this._rowCount+=ve.data.length);var oe=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(f)m.postMessage({results:ve,workerId:h.WORKER_ID,finished:oe});else if(_(this._config.chunk)&&!he){if(this._config.chunk(ve,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);ve=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(ve.data),this._completeResults.errors=this._completeResults.errors.concat(ve.errors),this._completeResults.meta=ve.meta),this._completed||!oe||!_(this._config.complete)||ve&&ve.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),oe||ve&&ve.meta.paused||this._nextChunk(),ve}this._halted=!0},this._sendError=function(W){_(this._config.error)?this._config.error(W):f&&this._config.error&&m.postMessage({workerId:h.WORKER_ID,error:W,finished:!1})}}function y(N){var W;(N=N||{}).chunkSize||(N.chunkSize=h.RemoteChunkSize),b.call(this,N),this._nextChunk=u?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(he){this._input=he,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(W=new XMLHttpRequest,this._config.withCredentials&&(W.withCredentials=this._config.withCredentials),u||(W.onload=ae(this._chunkLoaded,this),W.onerror=ae(this._chunkError,this)),W.open(this._config.downloadRequestBody?"POST":"GET",this._input,!u),this._config.downloadRequestHeaders){var he=this._config.downloadRequestHeaders;for(var me in he)W.setRequestHeader(me,he[me])}if(this._config.chunkSize){var fe=this._start+this._config.chunkSize-1;W.setRequestHeader("Range","bytes="+this._start+"-"+fe)}try{W.send(this._config.downloadRequestBody)}catch(ve){this._chunkError(ve.message)}u&&W.status===0&&this._chunkError()}},this._chunkLoaded=function(){W.readyState===4&&(W.status<200||400<=W.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:W.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(he){var me=he.getResponseHeader("Content-Range");return me===null?-1:parseInt(me.substring(me.lastIndexOf("/")+1))}(W),this.parseChunk(W.responseText)))},this._chunkError=function(he){var me=W.statusText||he;this._sendError(new Error(me))}}function w(N){var W,he;(N=N||{}).chunkSize||(N.chunkSize=h.LocalChunkSize),b.call(this,N);var me=typeof FileReader<"u";this.stream=function(fe){this._input=fe,he=fe.slice||fe.webkitSlice||fe.mozSlice,me?((W=new FileReader).onload=ae(this._chunkLoaded,this),W.onerror=ae(this._chunkError,this)):W=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var fe=this._input;if(this._config.chunkSize){var ve=Math.min(this._start+this._config.chunkSize,this._input.size);fe=he.call(fe,this._start,ve)}var ce=W.readAsText(fe,this._config.encoding);me||this._chunkLoaded({target:{result:ce}})},this._chunkLoaded=function(fe){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(fe.target.result)},this._chunkError=function(){this._sendError(W.error)}}function S(N){var W;b.call(this,N=N||{}),this.stream=function(he){return W=he,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var he,me=this._config.chunkSize;return me?(he=W.substring(0,me),W=W.substring(me)):(he=W,W=""),this._finished=!W,this.parseChunk(he)}}}function O(N){b.call(this,N=N||{});var W=[],he=!0,me=!1;this.pause=function(){b.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){b.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(fe){this._input=fe,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){me&&W.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),W.length?this.parseChunk(W.shift()):he=!0},this._streamData=ae(function(fe){try{W.push(typeof fe=="string"?fe:fe.toString(this._config.encoding)),he&&(he=!1,this._checkIsFinished(),this.parseChunk(W.shift()))}catch(ve){this._streamError(ve)}},this),this._streamError=ae(function(fe){this._streamCleanUp(),this._sendError(fe)},this),this._streamEnd=ae(function(){this._streamCleanUp(),me=!0,this._streamData("")},this),this._streamCleanUp=ae(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function R(N){var W,he,me,fe=Math.pow(2,53),ve=-fe,ce=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,oe=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,re=this,H=0,V=0,Q=!1,Te=!1,Re=[],ne={data:[],errors:[],meta:{}};if(_(N.step)){var pe=N.step;N.step=function(nt){if(ne=nt,Ae())Se();else{if(Se(),ne.data.length===0)return;H+=nt.data.length,N.preview&&H>N.preview?he.abort():(ne.data=ne.data[0],pe(ne,re))}}}function ye(nt){return N.skipEmptyLines==="greedy"?nt.join("").trim()==="":nt.length===1&&nt[0].length===0}function Se(){return ne&&me&&(xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+h.DefaultDelimiter+"'"),me=!1),N.skipEmptyLines&&(ne.data=ne.data.filter(function(nt){return!ye(nt)})),Ae()&&function(){if(!ne)return;function nt(pt,Rt){_(N.transformHeader)&&(pt=N.transformHeader(pt,Rt)),Re.push(pt)}if(Array.isArray(ne.data[0])){for(var Tt=0;Ae()&&Tt<ne.data.length;Tt++)ne.data[Tt].forEach(nt);ne.data.splice(0,1)}else ne.data.forEach(nt)}(),function(){if(!ne||!N.header&&!N.dynamicTyping&&!N.transform)return ne;function nt(pt,Rt){var tt,U=N.header?{}:[];for(tt=0;tt<pt.length;tt++){var F=tt,Y=pt[tt];N.header&&(F=tt>=Re.length?"__parsed_extra":Re[tt]),N.transform&&(Y=N.transform(Y,F)),Y=Ee(F,Y),F==="__parsed_extra"?(U[F]=U[F]||[],U[F].push(Y)):U[F]=Y}return N.header&&(tt>Re.length?xe("FieldMismatch","TooManyFields","Too many fields: expected "+Re.length+" fields but parsed "+tt,V+Rt):tt<Re.length&&xe("FieldMismatch","TooFewFields","Too few fields: expected "+Re.length+" fields but parsed "+tt,V+Rt)),U}var Tt=1;return!ne.data.length||Array.isArray(ne.data[0])?(ne.data=ne.data.map(nt),Tt=ne.data.length):ne.data=nt(ne.data,0),N.header&&ne.meta&&(ne.meta.fields=Re),V+=Tt,ne}()}function Ae(){return N.header&&Re.length===0}function Ee(nt,Tt){return pt=nt,N.dynamicTypingFunction&&N.dynamicTyping[pt]===void 0&&(N.dynamicTyping[pt]=N.dynamicTypingFunction(pt)),(N.dynamicTyping[pt]||N.dynamicTyping)===!0?Tt==="true"||Tt==="TRUE"||Tt!=="false"&&Tt!=="FALSE"&&(function(Rt){if(ce.test(Rt)){var tt=parseFloat(Rt);if(ve<tt&&tt<fe)return!0}return!1}(Tt)?parseFloat(Tt):oe.test(Tt)?new Date(Tt):Tt===""?null:Tt):Tt;var pt}function xe(nt,Tt,pt,Rt){var tt={type:nt,code:Tt,message:pt};Rt!==void 0&&(tt.row=Rt),ne.errors.push(tt)}this.parse=function(nt,Tt,pt){var Rt=N.quoteChar||'"';if(N.newline||(N.newline=function(F,Y){F=F.substring(0,1048576);var le=new RegExp(M(Y)+"([^]*?)"+M(Y),"gm"),ke=(F=F.replace(le,"")).split("\r"),Ye=F.split(` `),ft=1<Ye.length&&Ye[0].length<ke[0].length;if(ke.length===1||ft)return` `;for(var wt=0,Ut=0;Ut<ke.length;Ut++)ke[Ut][0]===` `&&wt++;return wt>=ke.length/2?`\r `:"\r"}(nt,Rt)),me=!1,N.delimiter)_(N.delimiter)&&(N.delimiter=N.delimiter(nt),ne.meta.delimiter=N.delimiter);else{var tt=function(F,Y,le,ke,Ye){var ft,wt,Ut,Ke;Ye=Ye||[","," ","|",";",h.RECORD_SEP,h.UNIT_SEP];for(var it=0;it<Ye.length;it++){var At=Ye[it],et=0,ee=0,I=0;Ut=void 0;for(var K=new D({comments:ke,delimiter:At,newline:Y,preview:10}).parse(F),ue=0;ue<K.data.length;ue++)if(le&&ye(K.data[ue]))I++;else{var De=K.data[ue].length;ee+=De,Ut!==void 0?0<De&&(et+=Math.abs(De-Ut),Ut=De):Ut=De}0<K.data.length&&(ee/=K.data.length-I),(wt===void 0||et<=wt)&&(Ke===void 0||Ke<ee)&&1.99<ee&&(wt=et,ft=At,Ke=ee)}return{successful:!!(N.delimiter=ft),bestDelimiter:ft}}(nt,N.newline,N.skipEmptyLines,N.comments,N.delimitersToGuess);tt.successful?N.delimiter=tt.bestDelimiter:(me=!0,N.delimiter=h.DefaultDelimiter),ne.meta.delimiter=N.delimiter}var U=j(N);return N.preview&&N.header&&U.preview++,W=nt,he=new D(U),ne=he.parse(W,Tt,pt),Se(),Q?{meta:{paused:!0}}:ne||{meta:{paused:!1}}},this.paused=function(){return Q},this.pause=function(){Q=!0,he.abort(),W=_(N.chunk)?"":W.substring(he.getCharIndex())},this.resume=function(){re.streamer._halted?(Q=!1,re.streamer.parseChunk(W,!0)):setTimeout(re.resume,3)},this.aborted=function(){return Te},this.abort=function(){Te=!0,he.abort(),ne.meta.aborted=!0,_(N.complete)&&N.complete(ne),W=""}}function M(N){return N.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function D(N){var W,he=(N=N||{}).delimiter,me=N.newline,fe=N.comments,ve=N.step,ce=N.preview,oe=N.fastMode,re=W=N.quoteChar===void 0||N.quoteChar===null?'"':N.quoteChar;if(N.escapeChar!==void 0&&(re=N.escapeChar),(typeof he!="string"||-1<h.BAD_DELIMITERS.indexOf(he))&&(he=","),fe===he)throw new Error("Comment character same as delimiter");fe===!0?fe="#":(typeof fe!="string"||-1<h.BAD_DELIMITERS.indexOf(fe))&&(fe=!1),me!==` `&&me!=="\r"&&me!==`\r `&&(me=` `);var H=0,V=!1;this.parse=function(Q,Te,Re){if(typeof Q!="string")throw new Error("Input must be a string");var ne=Q.length,pe=he.length,ye=me.length,Se=fe.length,Ae=_(ve),Ee=[],xe=[],nt=[],Tt=H=0;if(!Q)return He();if(N.header&&!Te){var pt=Q.split(me)[0].split(he),Rt=[],tt={},U=!1;for(var F in pt){var Y=pt[F];_(N.transformHeader)&&(Y=N.transformHeader(Y,F));var le=Y,ke=tt[Y]||0;for(0<ke&&(U=!0,le=Y+"_"+ke),tt[Y]=ke+1;Rt.includes(le);)le=le+"_"+ke;Rt.push(le)}if(U){var Ye=Q.split(me);Ye[0]=Rt.join(he),Q=Ye.join(me)}}if(oe||oe!==!1&&Q.indexOf(W)===-1){for(var ft=Q.split(me),wt=0;wt<ft.length;wt++){if(nt=ft[wt],H+=nt.length,wt!==ft.length-1)H+=me.length;else if(Re)return He();if(!fe||nt.substring(0,Se)!==fe){if(Ae){if(Ee=[],I(nt.split(he)),Fe(),V)return He()}else I(nt.split(he));if(ce&&ce<=wt)return Ee=Ee.slice(0,ce),He(!0)}}return He()}for(var Ut=Q.indexOf(he,H),Ke=Q.indexOf(me,H),it=new RegExp(M(re)+M(W),"g"),At=Q.indexOf(W,H);;)if(Q[H]!==W)if(fe&&nt.length===0&&Q.substring(H,H+Se)===fe){if(Ke===-1)return He();H=Ke+ye,Ke=Q.indexOf(me,H),Ut=Q.indexOf(he,H)}else if(Ut!==-1&&(Ut<Ke||Ke===-1))nt.push(Q.substring(H,Ut)),H=Ut+pe,Ut=Q.indexOf(he,H);else{if(Ke===-1)break;if(nt.push(Q.substring(H,Ke)),De(Ke+ye),Ae&&(Fe(),V))return He();if(ce&&Ee.length>=ce)return He(!0)}else for(At=H,H++;;){if((At=Q.indexOf(W,At+1))===-1)return Re||xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Ee.length,index:H}),ue();if(At===ne-1)return ue(Q.substring(H,At).replace(it,W));if(W!==re||Q[At+1]!==re){if(W===re||At===0||Q[At-1]!==re){Ut!==-1&&Ut<At+1&&(Ut=Q.indexOf(he,At+1)),Ke!==-1&&Ke<At+1&&(Ke=Q.indexOf(me,At+1));var et=K(Ke===-1?Ut:Math.min(Ut,Ke));if(Q.substr(At+1+et,pe)===he){nt.push(Q.substring(H,At).replace(it,W)),Q[H=At+1+et+pe]!==W&&(At=Q.indexOf(W,H)),Ut=Q.indexOf(he,H),Ke=Q.indexOf(me,H);break}var ee=K(Ke);if(Q.substring(At+1+ee,At+1+ee+ye)===me){if(nt.push(Q.substring(H,At).replace(it,W)),De(At+1+ee+ye),Ut=Q.indexOf(he,H),At=Q.indexOf(W,H),Ae&&(Fe(),V))return He();if(ce&&Ee.length>=ce)return He(!0);break}xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Ee.length,index:H}),At++}}else At++}return ue();function I(ze){Ee.push(ze),Tt=H}function K(ze){var qe=0;if(ze!==-1){var We=Q.substring(At+1,ze);We&&We.trim()===""&&(qe=We.length)}return qe}function ue(ze){return Re||(ze===void 0&&(ze=Q.substring(H)),nt.push(ze),H=ne,I(nt),Ae&&Fe()),He()}function De(ze){H=ze,I(nt),nt=[],Ke=Q.indexOf(me,H)}function He(ze){return{data:Ee,errors:xe,meta:{delimiter:he,linebreak:me,aborted:V,truncated:!!ze,cursor:Tt+(Te||0)}}}function Fe(){ve(He()),Ee=[],xe=[]}},this.abort=function(){V=!0},this.getCharIndex=function(){return H}}function P(N){var W=N.data,he=p[W.workerId],me=!1;if(W.error)he.userError(W.error,W.file);else if(W.results&&W.results.data){var fe={abort:function(){me=!0,T(W.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:A,resume:A};if(_(he.userStep)){for(var ve=0;ve<W.results.data.length&&(he.userStep({data:W.results.data[ve],errors:W.results.errors,meta:W.results.meta},fe),!me);ve++);delete W.results}else _(he.userChunk)&&(he.userChunk(W.results,fe,W.file),delete W.results)}W.finished&&!me&&T(W.workerId,W.results)}function T(N,W){var he=p[N];_(he.userComplete)&&he.userComplete(W),he.terminate(),delete p[N]}function A(){throw new Error("Not implemented.")}function j(N){if(typeof N!="object"||N===null)return N;var W=Array.isArray(N)?[]:{};for(var he in N)W[he]=j(N[he]);return W}function ae(N,W){return function(){N.apply(W,arguments)}}function _(N){return typeof N=="function"}return f&&(m.onmessage=function(N){var W=N.data;if(h.WORKER_ID===void 0&&W&&(h.WORKER_ID=W.workerId),typeof W.input=="string")m.postMessage({workerId:h.WORKER_ID,results:h.parse(W.input,W.config),finished:!0});else if(m.File&&W.input instanceof File||W.input instanceof Object){var he=h.parse(W.input,W.config);he&&m.postMessage({workerId:h.WORKER_ID,results:he,finished:!0})}}),(y.prototype=Object.create(b.prototype)).constructor=y,(w.prototype=Object.create(b.prototype)).constructor=w,(S.prototype=Object.create(S.prototype)).constructor=S,(O.prototype=Object.create(b.prototype)).constructor=O,h})},13491:function(J){(function(){var g,t,i,l,s,m;typeof performance<"u"&&performance!==null&&performance.now?J.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(J.exports=function(){return(g()-s)/1e6},t=process.hrtime,g=function(){var u;return u=t(),u[0]*1e9+u[1]},l=g(),m=process.uptime()*1e9,s=l-m):Date.now?(J.exports=function(){return Date.now()-i},i=Date.now()):(J.exports=function(){return new Date().getTime()-i},i=new Date().getTime())}).call(this)},55127:function(J){(function(g,t){J.exports=t()})(this,function(){var g=[],t=[],i={},l={},s={};function m(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function u(y,w){return y===w?w:y===y.toLowerCase()?w.toLowerCase():y===y.toUpperCase()?w.toUpperCase():y[0]===y[0].toUpperCase()?w.charAt(0).toUpperCase()+w.substr(1).toLowerCase():w.toLowerCase()}function f(y,w){return y.replace(/\$(\d{1,2})/g,function(S,O){return w[O]||""})}function p(y,w){return y.replace(w[0],function(S,O){var R=f(w[1],arguments);return u(S===""?y[O-1]:S,R)})}function v(y,w,S){if(!y.length||i.hasOwnProperty(y))return w;for(var O=S.length;O--;){var R=S[O];if(R[0].test(w))return p(w,R)}return w}function h(y,w,S){return function(O){var R=O.toLowerCase();return w.hasOwnProperty(R)?u(O,R):y.hasOwnProperty(R)?u(O,y[R]):v(R,O,S)}}function d(y,w,S,O){return function(R){var M=R.toLowerCase();return w.hasOwnProperty(M)?!0:y.hasOwnProperty(M)?!1:v(M,M,S)===M}}function b(y,w,S){var O=w===1?b.singular(y):b.plural(y);return(S?w+" ":"")+O}return b.plural=h(s,l,g),b.isPlural=d(s,l,g),b.singular=h(l,s,t),b.isSingular=d(l,s,t),b.addPluralRule=function(y,w){g.push([m(y),w])},b.addSingularRule=function(y,w){t.push([m(y),w])},b.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}b.addPluralRule(y,"$0"),b.addSingularRule(y,"$0")},b.addIrregularRule=function(y,w){w=w.toLowerCase(),y=y.toLowerCase(),s[y]=w,l[w]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return b.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return b.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return b.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(b.addUncountableRule),b})},62785:J=>{var g=null,t=["Webkit","Moz","O","ms"];J.exports=function(l){g||(g=document.createElement("div"));var s=g.style;if(l in s)return l;for(var m=l.charAt(0).toUpperCase()+l.slice(1),u=t.length;u>=0;u--){var f=t[u]+m;if(f in s)return f}return!1}},28848:(J,g,t)=>{var i=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT <https://opensource.org/licenses/MIT> * @author Lea Verou <https://lea.verou.me> * @namespace * @public */var l=function(s){var m=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,u=0,f={},p={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function D(P){return P instanceof v?new v(P.type,D(P.content),P.alias):Array.isArray(P)?P.map(D):P.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(D){return Object.prototype.toString.call(D).slice(8,-1)},objId:function(D){return D.__id||Object.defineProperty(D,"__id",{value:++u}),D.__id},clone:function D(P,T){T=T||{};var A,j;switch(p.util.type(P)){case"Object":if(j=p.util.objId(P),T[j])return T[j];A={},T[j]=A;for(var ae in P)P.hasOwnProperty(ae)&&(A[ae]=D(P[ae],T));return A;case"Array":return j=p.util.objId(P),T[j]?T[j]:(A=[],T[j]=A,P.forEach(function(_,N){A[N]=D(_,T)}),A);default:return P}},getLanguage:function(D){for(;D;){var P=m.exec(D.className);if(P)return P[1].toLowerCase();D=D.parentElement}return"none"},setLanguage:function(D,P){D.className=D.className.replace(RegExp(m,"gi"),""),D.classList.add("language-"+P)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(A){var D=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(D){var P=document.getElementsByTagName("script");for(var T in P)if(P[T].src==D)return P[T]}return null}},isActive:function(D,P,T){for(var A="no-"+P;D;){var j=D.classList;if(j.contains(P))return!0;if(j.contains(A))return!1;D=D.parentElement}return!!T}},languages:{plain:f,plaintext:f,text:f,txt:f,extend:function(D,P){var T=p.util.clone(p.languages[D]);for(var A in P)T[A]=P[A];return T},insertBefore:function(D,P,T,A){A=A||p.languages;var j=A[D],ae={};for(var _ in j)if(j.hasOwnProperty(_)){if(_==P)for(var N in T)T.hasOwnProperty(N)&&(ae[N]=T[N]);T.hasOwnProperty(_)||(ae[_]=j[_])}var W=A[D];return A[D]=ae,p.languages.DFS(p.languages,function(he,me){me===W&&he!=D&&(this[he]=ae)}),ae},DFS:function D(P,T,A,j){j=j||{};var ae=p.util.objId;for(var _ in P)if(P.hasOwnProperty(_)){T.call(P,_,P[_],A||_);var N=P[_],W=p.util.type(N);W==="Object"&&!j[ae(N)]?(j[ae(N)]=!0,D(N,T,null,j)):W==="Array"&&!j[ae(N)]&&(j[ae(N)]=!0,D(N,T,_,j))}}},plugins:{},highlightAll:function(D,P){p.highlightAllUnder(document,D,P)},highlightAllUnder:function(D,P,T){var A={callback:T,container:D,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};p.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),p.hooks.run("before-all-elements-highlight",A);for(var j=0,ae;ae=A.elements[j++];)p.highlightElement(ae,P===!0,A.callback)},highlightElement:function(D,P,T){var A=p.util.getLanguage(D),j=p.languages[A];p.util.setLanguage(D,A);var ae=D.parentElement;ae&&ae.nodeName.toLowerCase()==="pre"&&p.util.setLanguage(ae,A);var _=D.textContent,N={element:D,language:A,grammar:j,code:_};function W(me){N.highlightedCode=me,p.hooks.run("before-insert",N),N.element.innerHTML=N.highlightedCode,p.hooks.run("after-highlight",N),p.hooks.run("complete",N),T&&T.call(N.element)}if(p.hooks.run("before-sanity-check",N),ae=N.element.parentElement,ae&&ae.nodeName.toLowerCase()==="pre"&&!ae.hasAttribute("tabindex")&&ae.setAttribute("tabindex","0"),!N.code){p.hooks.run("complete",N),T&&T.call(N.element);return}if(p.hooks.run("before-highlight",N),!N.grammar){W(p.util.encode(N.code));return}if(P&&s.Worker){var he=new Worker(p.filename);he.onmessage=function(me){W(me.data)},he.postMessage(JSON.stringify({language:N.language,code:N.code,immediateClose:!0}))}else W(p.highlight(N.code,N.grammar,N.language))},highlight:function(D,P,T){var A={code:D,grammar:P,language:T};if(p.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=p.tokenize(A.code,A.grammar),p.hooks.run("after-tokenize",A),v.stringify(p.util.encode(A.tokens),A.language)},tokenize:function(D,P){var T=P.rest;if(T){for(var A in T)P[A]=T[A];delete P.rest}var j=new b;return y(j,j.head,D),d(D,j,P,j.head,0),S(j)},hooks:{all:{},add:function(D,P){var T=p.hooks.all;T[D]=T[D]||[],T[D].push(P)},run:function(D,P){var T=p.hooks.all[D];if(!(!T||!T.length))for(var A=0,j;j=T[A++];)j(P)}},Token:v};s.Prism=p;function v(D,P,T,A){this.type=D,this.content=P,this.alias=T,this.length=(A||"").length|0}v.stringify=function D(P,T){if(typeof P=="string")return P;if(Array.isArray(P)){var A="";return P.forEach(function(W){A+=D(W,T)}),A}var j={type:P.type,content:D(P.content,T),tag:"span",classes:["token",P.type],attributes:{},language:T},ae=P.alias;ae&&(Array.isArray(ae)?Array.prototype.push.apply(j.classes,ae):j.classes.push(ae)),p.hooks.run("wrap",j);var _="";for(var N in j.attributes)_+=" "+N+'="'+(j.attributes[N]||"").replace(/"/g,""")+'"';return"<"+j.tag+' class="'+j.classes.join(" ")+'"'+_+">"+j.content+"</"+j.tag+">"};function h(D,P,T,A){D.lastIndex=P;var j=D.exec(T);if(j&&A&&j[1]){var ae=j[1].length;j.index+=ae,j[0]=j[0].slice(ae)}return j}function d(D,P,T,A,j,ae){for(var _ in T)if(!(!T.hasOwnProperty(_)||!T[_])){var N=T[_];N=Array.isArray(N)?N:[N];for(var W=0;W<N.length;++W){if(ae&&ae.cause==_+","+W)return;var he=N[W],me=he.inside,fe=!!he.lookbehind,ve=!!he.greedy,ce=he.alias;if(ve&&!he.pattern.global){var oe=he.pattern.toString().match(/[imsuy]*$/)[0];he.pattern=RegExp(he.pattern.source,oe+"g")}for(var re=he.pattern||he,H=A.next,V=j;H!==P.tail&&!(ae&&V>=ae.reach);V+=H.value.length,H=H.next){var Q=H.value;if(P.length>D.length)return;if(!(Q instanceof v)){var Te=1,Re;if(ve){if(Re=h(re,V,D,fe),!Re||Re.index>=D.length)break;var Se=Re.index,ne=Re.index+Re[0].length,pe=V;for(pe+=H.value.length;Se>=pe;)H=H.next,pe+=H.value.length;if(pe-=H.value.length,V=pe,H.value instanceof v)continue;for(var ye=H;ye!==P.tail&&(pe<ne||typeof ye.value=="string");ye=ye.next)Te++,pe+=ye.value.length;Te--,Q=D.slice(V,pe),Re.index-=V}else if(Re=h(re,0,Q,fe),!Re)continue;var Se=Re.index,Ae=Re[0],Ee=Q.slice(0,Se),xe=Q.slice(Se+Ae.length),nt=V+Q.length;ae&&nt>ae.reach&&(ae.reach=nt);var Tt=H.prev;Ee&&(Tt=y(P,Tt,Ee),V+=Ee.length),w(P,Tt,Te);var pt=new v(_,me?p.tokenize(Ae,me):Ae,ce,Ae);if(H=y(P,Tt,pt),xe&&y(P,H,xe),Te>1){var Rt={cause:_+","+W,reach:nt};d(D,P,T,H.prev,V,Rt),ae&&Rt.reach>ae.reach&&(ae.reach=Rt.reach)}}}}}}function b(){var D={value:null,prev:null,next:null},P={value:null,prev:D,next:null};D.next=P,this.head=D,this.tail=P,this.length=0}function y(D,P,T){var A=P.next,j={value:T,prev:P,next:A};return P.next=j,A.prev=j,D.length++,j}function w(D,P,T){for(var A=P.next,j=0;j<T&&A!==D.tail;j++)A=A.next;P.next=A,A.prev=P,D.length-=j}function S(D){for(var P=[],T=D.head.next;T!==D.tail;)P.push(T.value),T=T.next;return P}if(!s.document)return s.addEventListener&&(p.disableWorkerMessageHandler||s.addEventListener("message",function(D){var P=JSON.parse(D.data),T=P.language,A=P.code,j=P.immediateClose;s.postMessage(p.highlight(A,p.languages[T],T)),j&&s.close()},!1)),p;var O=p.util.currentScript();O&&(p.filename=O.src,O.hasAttribute("data-manual")&&(p.manual=!0));function R(){p.manual||p.highlightAll()}if(!p.manual){var M=document.readyState;M==="loading"||M==="interactive"&&O&&O.defer?document.addEventListener("DOMContentLoaded",R):window.requestAnimationFrame?window.requestAnimationFrame(R):window.setTimeout(R,16)}return p}(i);J.exports&&(J.exports=l),typeof t.g<"u"&&(t.g.Prism=l),l.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},l.languages.markup.tag.inside["attr-value"].inside.entity=l.languages.markup.entity,l.languages.markup.doctype.inside["internal-subset"].inside=l.languages.markup,l.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.replace(/&/,"&"))}),Object.defineProperty(l.languages.markup.tag,"addInlined",{value:function(m,u){var f={};f["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:l.languages[u]},f.cdata=/^<!\[CDATA\[|\]\]>$/i;var p={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}};p["language-"+u]={pattern:/[\s\S]+/,inside:l.languages[u]};var v={};v[m]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return m}),"i"),lookbehind:!0,greedy:!0,inside:p},l.languages.insertBefore("markup","cdata",v)}}),Object.defineProperty(l.languages.markup.tag,"addAttribute",{value:function(s,m){l.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+s+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[m,"language-"+m],inside:l.languages[m]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),l.languages.html=l.languages.markup,l.languages.mathml=l.languages.markup,l.languages.svg=l.languages.markup,l.languages.xml=l.languages.extend("markup",{}),l.languages.ssml=l.languages.xml,l.languages.atom=l.languages.xml,l.languages.rss=l.languages.xml,function(s){var m=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+m.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+m.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+m.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+m.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:m,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css;var u=s.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))}(l),l.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},l.languages.javascript=l.languages.extend("clike",{"class-name":[l.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),l.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,l.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:l.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:l.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:l.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:l.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:l.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),l.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:l.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),l.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),l.languages.markup&&(l.languages.markup.tag.addInlined("script","javascript"),l.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),l.languages.js=l.languages.javascript,function(){if(typeof l>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var s="Loading\u2026",m=function(O,R){return"\u2716 Error "+O+" while fetching file: "+R},u="\u2716 Error: File does not exist or is empty",f={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},p="data-src-status",v="loading",h="loaded",d="failed",b="pre[data-src]:not(["+p+'="'+h+'"]):not(['+p+'="'+v+'"])';function y(O,R,M){var D=new XMLHttpRequest;D.open("GET",O,!0),D.onreadystatechange=function(){D.readyState==4&&(D.status<400&&D.responseText?R(D.responseText):D.status>=400?M(m(D.status,D.statusText)):M(u))},D.send(null)}function w(O){var R=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(O||"");if(R){var M=Number(R[1]),D=R[2],P=R[3];return D?P?[M,Number(P)]:[M,void 0]:[M,M]}}l.hooks.add("before-highlightall",function(O){O.selector+=", "+b}),l.hooks.add("before-sanity-check",function(O){var R=O.element;if(R.matches(b)){O.code="",R.setAttribute(p,v);var M=R.appendChild(document.createElement("CODE"));M.textContent=s;var D=R.getAttribute("data-src"),P=O.language;if(P==="none"){var T=(/\.(\w+)$/.exec(D)||[,"none"])[1];P=f[T]||T}l.util.setLanguage(M,P),l.util.setLanguage(R,P);var A=l.plugins.autoloader;A&&A.loadLanguages(P),y(D,function(j){R.setAttribute(p,h);var ae=w(R.getAttribute("data-range"));if(ae){var _=j.split(/\r\n?|\n/g),N=ae[0],W=ae[1]==null?_.length:ae[1];N<0&&(N+=_.length),N=Math.max(0,Math.min(N-1,_.length)),W<0&&(W+=_.length),W=Math.max(0,Math.min(W,_.length)),j=_.slice(N,W).join(` `),R.hasAttribute("data-start")||R.setAttribute("data-start",String(N+1))}M.textContent=j,l.highlightElement(M)},function(j){R.setAttribute(p,d),M.textContent=j})}}),l.plugins.fileHighlight={highlight:function(R){for(var M=(R||document).querySelectorAll(b),D=0,P;P=M[D++];)l.highlightElement(P)}};var S=!1;l.fileHighlight=function(){S||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),S=!0),l.plugins.fileHighlight.highlight.apply(this,arguments)}}()},2694:(J,g,t)=>{"use strict";var i=t(6925);function l(){}function s(){}s.resetWarningCache=l,J.exports=function(){function m(p,v,h,d,b,y){if(y!==i){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}m.isRequired=m;function u(){return m}var f={array:m,bigint:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:u,element:m,elementType:m,instanceOf:u,node:m,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:s,resetWarningCache:l};return f.PropTypes=f,f}},5556:(J,g,t)=>{if(!1)var i,l;else J.exports=t(2694)()},6925:J=>{"use strict";var g="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";J.exports=g},93146:(J,g,t)=>{for(var i=t(13491),l=typeof window>"u"?t.g:window,s=["moz","webkit"],m="AnimationFrame",u=l["request"+m],f=l["cancel"+m]||l["cancelRequest"+m],p=0;!u&&p<s.length;p++)u=l[s[p]+"Request"+m],f=l[s[p]+"Cancel"+m]||l[s[p]+"CancelRequest"+m];if(!u||!f){var v=0,h=0,d=[],b=1e3/60;u=function(y){if(d.length===0){var w=i(),S=Math.max(0,b-(w-v));v=S+w,setTimeout(function(){var O=d.slice(0);d.length=0;for(var R=0;R<O.length;R++)if(!O[R].cancelled)try{O[R].callback(v)}catch(M){setTimeout(function(){throw M},0)}},Math.round(S))}return d.push({handle:++h,callback:y,cancelled:!1}),h},f=function(y){for(var w=0;w<d.length;w++)d[w].handle===y&&(d[w].cancelled=!0)}}J.exports=function(y){return u.call(l,y)},J.exports.cancel=function(){f.apply(l,arguments)},J.exports.polyfill=function(y){y||(y=l),y.requestAnimationFrame=u,y.cancelAnimationFrame=f}},24442:(J,g,t)=>{"use strict";t.d(g,{A:()=>Ui});var i=t(58168),l=t(89379),s=t(60436),m=t(5544),u=t(80045),f=t(64467),p=t(82284),v=t(12533),h=t(68210),d=t(96540),b=t(46942),y=t.n(b),w=t(30981),S=t(68430),O=t(16928),R=t(8719),M=function(cr){var ni=cr.className,Xr=cr.customizeIcon,Jr=cr.customizeIconProps,Qi=cr.children,Fo=cr.onMouseDown,No=cr.onClick,Jo=typeof Xr=="function"?Xr(Jr):Xr;return d.createElement("span",{className:ni,onMouseDown:function(Yn){Yn.preventDefault(),Fo?.(Yn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:No,"aria-hidden":!0},Jo!==void 0?Jo:d.createElement("span",{className:y()(ni.split(/\s+/).map(function(br){return"".concat(br,"-icon")}))},Qi))};const D=M;var P=function(cr,ni,Xr,Jr,Qi){var Fo=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,No=arguments.length>6?arguments[6]:void 0,Jo=arguments.length>7?arguments[7]:void 0,br=d.useMemo(function(){if((0,p.A)(Jr)==="object")return Jr.clearIcon;if(Qi)return Qi},[Jr,Qi]),Yn=d.useMemo(function(){return!!(!Fo&&Jr&&(Xr.length||No)&&!(Jo==="combobox"&&No===""))},[Jr,Fo,Xr.length,No,Jo]);return{allowClear:Yn,clearIcon:d.createElement(D,{className:"".concat(cr,"-clear"),onMouseDown:ni,customizeIcon:br},"\xD7")}},T=d.createContext(null);function A(){return d.useContext(T)}function j(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,cr=d.useState(!1),ni=(0,m.A)(cr,2),Xr=ni[0],Jr=ni[1],Qi=d.useRef(null),Fo=function(){window.clearTimeout(Qi.current)};d.useEffect(function(){return Fo},[]);var No=function(br,Yn){Fo(),Qi.current=window.setTimeout(function(){Jr(br),Yn&&Yn()},Nn)};return[Xr,No,Fo]}function ae(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,cr=d.useRef(null),ni=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(ni.current)}},[]);function Xr(Jr){(Jr||cr.current===null)&&(cr.current=Jr),window.clearTimeout(ni.current),ni.current=window.setTimeout(function(){cr.current=null},Nn)}return[function(){return cr.current},Xr]}function _(Nn,cr,ni,Xr){var Jr=d.useRef(null);Jr.current={open:cr,triggerOpen:ni,customizedTrigger:Xr},d.useEffect(function(){function Qi(Fo){var No;if(!((No=Jr.current)!==null&&No!==void 0&&No.customizedTrigger)){var Jo=Fo.target;Jo.shadowRoot&&Fo.composed&&(Jo=Fo.composedPath()[0]||Jo),Jr.current.open&&Nn().filter(function(br){return br}).every(function(br){return!br.contains(Jo)&&br!==Jo})&&Jr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Qi),function(){return window.removeEventListener("mousedown",Qi)}},[])}var N=t(72065),W=t(26076),he=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],me=void 0;function fe(Nn,cr){var ni=Nn.prefixCls,Xr=Nn.invalidate,Jr=Nn.item,Qi=Nn.renderItem,Fo=Nn.responsive,No=Nn.responsiveDisabled,Jo=Nn.registerSize,br=Nn.itemKey,Yn=Nn.className,Z=Nn.style,se=Nn.children,G=Nn.display,B=Nn.order,Pe=Nn.component,dt=Pe===void 0?"div":Pe,Lt=(0,u.A)(Nn,he),Pt=Fo&&!G;function $e(Cn){Jo(br,Cn)}d.useEffect(function(){return function(){$e(null)}},[]);var ut=Qi&&Jr!==me?Qi(Jr):se,zt;Xr||(zt={opacity:Pt?0:1,height:Pt?0:me,overflowY:Pt?"hidden":me,order:Fo?B:me,pointerEvents:Pt?"none":me,position:Pt?"absolute":me});var Ht={};Pt&&(Ht["aria-hidden"]=!0);var Fn=d.createElement(dt,(0,i.A)({className:y()(!Xr&&ni,Yn),style:(0,l.A)((0,l.A)({},zt),Z)},Ht,Lt,{ref:cr}),ut);return Fo&&(Fn=d.createElement(W.A,{onResize:function(tr){var Jn=tr.offsetWidth;$e(Jn)},disabled:No},Fn)),Fn}var ve=d.forwardRef(fe);ve.displayName="Item";const ce=ve;var oe=t(26956),re=t(40961),H=t(25371);function V(Nn){if(typeof MessageChannel>"u")(0,H.A)(Nn);else{var cr=new MessageChannel;cr.port1.onmessage=function(){return Nn()},cr.port2.postMessage(void 0)}}function Q(){var Nn=d.useRef(null),cr=function(Xr){Nn.current||(Nn.current=[],V(function(){(0,re.unstable_batchedUpdates)(function(){Nn.current.forEach(function(Jr){Jr()}),Nn.current=null})})),Nn.current.push(Xr)};return cr}function Te(Nn,cr){var ni=d.useState(cr),Xr=(0,m.A)(ni,2),Jr=Xr[0],Qi=Xr[1],Fo=(0,oe.A)(function(No){Nn(function(){Qi(No)})});return[Jr,Fo]}var Re=d.createContext(null),ne=["component"],pe=["className"],ye=["className"],Se=function(cr,ni){var Xr=d.useContext(Re);if(!Xr){var Jr=cr.component,Qi=Jr===void 0?"div":Jr,Fo=(0,u.A)(cr,ne);return d.createElement(Qi,(0,i.A)({},Fo,{ref:ni}))}var No=Xr.className,Jo=(0,u.A)(Xr,pe),br=cr.className,Yn=(0,u.A)(cr,ye);return d.createElement(Re.Provider,{value:null},d.createElement(ce,(0,i.A)({ref:ni,className:y()(No,br)},Jo,Yn)))},Ae=d.forwardRef(Se);Ae.displayName="RawItem";const Ee=Ae;var xe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],nt="responsive",Tt="invalidate";function pt(Nn){return"+ ".concat(Nn.length," ...")}function Rt(Nn,cr){var ni=Nn.prefixCls,Xr=ni===void 0?"rc-overflow":ni,Jr=Nn.data,Qi=Jr===void 0?[]:Jr,Fo=Nn.renderItem,No=Nn.renderRawItem,Jo=Nn.itemKey,br=Nn.itemWidth,Yn=br===void 0?10:br,Z=Nn.ssr,se=Nn.style,G=Nn.className,B=Nn.maxCount,Pe=Nn.renderRest,dt=Nn.renderRawRest,Lt=Nn.suffix,Pt=Nn.component,$e=Pt===void 0?"div":Pt,ut=Nn.itemComponent,zt=Nn.onVisibleChange,Ht=(0,u.A)(Nn,xe),Fn=Z==="full",Cn=Q(),tr=Te(Cn,null),Jn=(0,m.A)(tr,2),ei=Jn[0],Ci=Jn[1],zi=ei||0,co=Te(Cn,new Map),Xo=(0,m.A)(co,2),Eo=Xo[0],Yo=Xo[1],Xn=Te(Cn,0),fr=(0,m.A)(Xn,2),mr=fr[0],yr=fr[1],Rr=Te(Cn,0),ai=(0,m.A)(Rr,2),jt=ai[0],Pn=ai[1],nr=Te(Cn,0),Ir=(0,m.A)(nr,2),fi=Ir[0],Ti=Ir[1],Oe=(0,d.useState)(null),pn=(0,m.A)(Oe,2),Qn=pn[0],Sr=pn[1],hr=(0,d.useState)(null),kr=(0,m.A)(hr,2),Ve=kr[0],Ot=kr[1],wn=d.useMemo(function(){return Ve===null&&Fn?Number.MAX_SAFE_INTEGER:Ve||0},[Ve,ei]),Wt=(0,d.useState)(!1),Yt=(0,m.A)(Wt,2),zn=Yt[0],Nr=Yt[1],si="".concat(Xr,"-item"),Ki=Math.max(mr,jt),Bi=B===nt,Xi=Qi.length&&Bi,vo=B===Tt,ea=Xi||typeof B=="number"&&Qi.length>B,la=(0,d.useMemo)(function(){var Mn=Qi;return Xi?ei===null&&Fn?Mn=Qi:Mn=Qi.slice(0,Math.min(Qi.length,zi/Yn)):typeof B=="number"&&(Mn=Qi.slice(0,B)),Mn},[Qi,Yn,ei,B,Xi]),ss=(0,d.useMemo)(function(){return Xi?Qi.slice(wn+1):Qi.slice(la.length)},[Qi,la,Xi,wn]),Rs=(0,d.useCallback)(function(Mn,en){var sn;return typeof Jo=="function"?Jo(Mn):(sn=Jo&&Mn?.[Jo])!==null&&sn!==void 0?sn:en},[Jo]),Ds=(0,d.useCallback)(Fo||function(Mn){return Mn},[Fo]);function Is(Mn,en,sn){Ve===Mn&&(en===void 0||en===Qn)||(Ot(Mn),sn||(Nr(Mn<Qi.length-1),zt?.(Mn)),en!==void 0&&Sr(en))}function nu(Mn,en){Ci(en.clientWidth)}function Ls(Mn,en){Yo(function(sn){var qt=new Map(sn);return en===null?qt.delete(Mn):qt.set(Mn,en),qt})}function gu(Mn,en){Pn(en),yr(jt)}function Us(Mn,en){Ti(en)}function Iu(Mn){return Eo.get(Rs(la[Mn],Mn))}(0,w.A)(function(){if(zi&&typeof Ki=="number"&&la){var Mn=fi,en=la.length,sn=en-1;if(!en){Is(0,null);return}for(var qt=0;qt<en;qt+=1){var In=Iu(qt);if(Fn&&(In=In||0),In===void 0){Is(qt-1,void 0,!0);break}if(Mn+=In,sn===0&&Mn<=zi||qt===sn-1&&Mn+Iu(sn)<=zi){Is(sn,null);break}else if(Mn+Ki>zi){Is(qt-1,Mn-In-fi+jt);break}}Lt&&Iu(0)+fi>zi&&Sr(null)}},[zi,Eo,jt,fi,Rs,la]);var Wu=zn&&!!ss.length,rl={};Qn!==null&&Xi&&(rl={position:"absolute",left:Qn,top:0});var Hu={prefixCls:si,responsive:Xi,component:ut,invalidate:vo},Ts=No?function(Mn,en){var sn=Rs(Mn,en);return d.createElement(Re.Provider,{key:sn,value:(0,l.A)((0,l.A)({},Hu),{},{order:en,item:Mn,itemKey:sn,registerSize:Ls,display:en<=wn})},No(Mn,en))}:function(Mn,en){var sn=Rs(Mn,en);return d.createElement(ce,(0,i.A)({},Hu,{order:en,key:sn,item:Mn,renderItem:Ds,itemKey:sn,registerSize:Ls,display:en<=wn}))},Al,fl={order:Wu?wn:Number.MAX_SAFE_INTEGER,className:"".concat(si,"-rest"),registerSize:gu,display:Wu};if(dt)dt&&(Al=d.createElement(Re.Provider,{value:(0,l.A)((0,l.A)({},Hu),fl)},dt(ss)));else{var Rl=Pe||pt;Al=d.createElement(ce,(0,i.A)({},Hu,fl),typeof Rl=="function"?Rl(ss):Rl)}var Bu=d.createElement($e,(0,i.A)({className:y()(!vo&&Xr,G),style:se,ref:cr},Ht),la.map(Ts),ea?Al:null,Lt&&d.createElement(ce,(0,i.A)({},Hu,{responsive:Bi,responsiveDisabled:!Xi,order:wn,className:"".concat(si,"-suffix"),registerSize:Us,display:!0,style:rl}),Lt));return Bi&&(Bu=d.createElement(W.A,{onResize:nu,disabled:!Xi},Bu)),Bu}var tt=d.forwardRef(Rt);tt.displayName="Overflow",tt.Item=Ee,tt.RESPONSIVE=nt,tt.INVALIDATE=Tt;const F=tt;var Y=function(cr,ni){var Xr,Jr=cr.prefixCls,Qi=cr.id,Fo=cr.inputElement,No=cr.disabled,Jo=cr.tabIndex,br=cr.autoFocus,Yn=cr.autoComplete,Z=cr.editable,se=cr.activeDescendantId,G=cr.value,B=cr.maxLength,Pe=cr.onKeyDown,dt=cr.onMouseDown,Lt=cr.onChange,Pt=cr.onPaste,$e=cr.onCompositionStart,ut=cr.onCompositionEnd,zt=cr.open,Ht=cr.attrs,Fn=Fo||d.createElement("input",null),Cn=Fn,tr=Cn.ref,Jn=Cn.props,ei=Jn.onKeyDown,Ci=Jn.onChange,zi=Jn.onMouseDown,co=Jn.onCompositionStart,Xo=Jn.onCompositionEnd,Eo=Jn.style;return(0,h.$e)(!("maxLength"in Fn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Fn=d.cloneElement(Fn,(0,l.A)((0,l.A)((0,l.A)({type:"search"},Jn),{},{id:Qi,ref:(0,R.K4)(ni,tr),disabled:No,tabIndex:Jo,autoComplete:Yn||"off",autoFocus:br,className:y()("".concat(Jr,"-selection-search-input"),(Xr=Fn)===null||Xr===void 0||(Xr=Xr.props)===null||Xr===void 0?void 0:Xr.className),role:"combobox","aria-expanded":zt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Qi,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Qi,"_list"),"aria-activedescendant":zt?se:void 0},Ht),{},{value:Z?G:"",maxLength:B,readOnly:!Z,unselectable:Z?null:"on",style:(0,l.A)((0,l.A)({},Eo),{},{opacity:Z?null:0}),onKeyDown:function(Xn){Pe(Xn),ei&&ei(Xn)},onMouseDown:function(Xn){dt(Xn),zi&&zi(Xn)},onChange:function(Xn){Lt(Xn),Ci&&Ci(Xn)},onCompositionStart:function(Xn){$e(Xn),co&&co(Xn)},onCompositionEnd:function(Xn){ut(Xn),Xo&&Xo(Xn)},onPaste:Pt})),Fn},le=d.forwardRef(Y);const ke=le;function Ye(Nn){return Array.isArray(Nn)?Nn:Nn!==void 0?[Nn]:[]}var ft=typeof window<"u"&&window.document&&window.document.documentElement,wt=ft;function Ut(Nn){return Nn!=null}function Ke(Nn){return!Nn&&Nn!==0}function it(Nn){return["string","number"].includes((0,p.A)(Nn))}function At(Nn){var cr=void 0;return Nn&&(it(Nn.title)?cr=Nn.title.toString():it(Nn.label)&&(cr=Nn.label.toString())),cr}function et(Nn,cr){wt?d.useLayoutEffect(Nn,cr):d.useEffect(Nn,cr)}function ee(Nn){var cr;return(cr=Nn.key)!==null&&cr!==void 0?cr:Nn.value}var I=function(cr){cr.preventDefault(),cr.stopPropagation()},K=function(cr){var ni=cr.id,Xr=cr.prefixCls,Jr=cr.values,Qi=cr.open,Fo=cr.searchValue,No=cr.autoClearSearchValue,Jo=cr.inputRef,br=cr.placeholder,Yn=cr.disabled,Z=cr.mode,se=cr.showSearch,G=cr.autoFocus,B=cr.autoComplete,Pe=cr.activeDescendantId,dt=cr.tabIndex,Lt=cr.removeIcon,Pt=cr.maxTagCount,$e=cr.maxTagTextLength,ut=cr.maxTagPlaceholder,zt=ut===void 0?function(Sr){return"+ ".concat(Sr.length," ...")}:ut,Ht=cr.tagRender,Fn=cr.onToggleOpen,Cn=cr.onRemove,tr=cr.onInputChange,Jn=cr.onInputPaste,ei=cr.onInputKeyDown,Ci=cr.onInputMouseDown,zi=cr.onInputCompositionStart,co=cr.onInputCompositionEnd,Xo=d.useRef(null),Eo=(0,d.useState)(0),Yo=(0,m.A)(Eo,2),Xn=Yo[0],fr=Yo[1],mr=(0,d.useState)(!1),yr=(0,m.A)(mr,2),Rr=yr[0],ai=yr[1],jt="".concat(Xr,"-selection"),Pn=Qi||Z==="multiple"&&No===!1||Z==="tags"?Fo:"",nr=Z==="tags"||Z==="multiple"&&No===!1||se&&(Qi||Rr);et(function(){fr(Xo.current.scrollWidth)},[Pn]);var Ir=function(hr,kr,Ve,Ot,wn){return d.createElement("span",{title:At(hr),className:y()("".concat(jt,"-item"),(0,f.A)({},"".concat(jt,"-item-disabled"),Ve))},d.createElement("span",{className:"".concat(jt,"-item-content")},kr),Ot&&d.createElement(D,{className:"".concat(jt,"-item-remove"),onMouseDown:I,onClick:wn,customizeIcon:Lt},"\xD7"))},fi=function(hr,kr,Ve,Ot,wn){var Wt=function(zn){I(zn),Fn(!Qi)};return d.createElement("span",{onMouseDown:Wt},Ht({label:kr,value:hr,disabled:Ve,closable:Ot,onClose:wn}))},Ti=function(hr){var kr=hr.disabled,Ve=hr.label,Ot=hr.value,wn=!Yn&&!kr,Wt=Ve;if(typeof $e=="number"&&(typeof Ve=="string"||typeof Ve=="number")){var Yt=String(Wt);Yt.length>$e&&(Wt="".concat(Yt.slice(0,$e),"..."))}var zn=function(si){si&&si.stopPropagation(),Cn(hr)};return typeof Ht=="function"?fi(Ot,Wt,kr,wn,zn):Ir(hr,Wt,kr,wn,zn)},Oe=function(hr){var kr=typeof zt=="function"?zt(hr):zt;return Ir({title:kr},kr,!1)},pn=d.createElement("div",{className:"".concat(jt,"-search"),style:{width:Xn},onFocus:function(){ai(!0)},onBlur:function(){ai(!1)}},d.createElement(ke,{ref:Jo,open:Qi,prefixCls:Xr,id:ni,inputElement:null,disabled:Yn,autoFocus:G,autoComplete:B,editable:nr,activeDescendantId:Pe,value:Pn,onKeyDown:ei,onMouseDown:Ci,onChange:tr,onPaste:Jn,onCompositionStart:zi,onCompositionEnd:co,tabIndex:dt,attrs:(0,N.A)(cr,!0)}),d.createElement("span",{ref:Xo,className:"".concat(jt,"-search-mirror"),"aria-hidden":!0},Pn,"\xA0")),Qn=d.createElement(F,{prefixCls:"".concat(jt,"-overflow"),data:Jr,renderItem:Ti,renderRest:Oe,suffix:pn,itemKey:ee,maxCount:Pt});return d.createElement(d.Fragment,null,Qn,!Jr.length&&!Pn&&d.createElement("span",{className:"".concat(jt,"-placeholder")},br))};const ue=K;var De=function(cr){var ni=cr.inputElement,Xr=cr.prefixCls,Jr=cr.id,Qi=cr.inputRef,Fo=cr.disabled,No=cr.autoFocus,Jo=cr.autoComplete,br=cr.activeDescendantId,Yn=cr.mode,Z=cr.open,se=cr.values,G=cr.placeholder,B=cr.tabIndex,Pe=cr.showSearch,dt=cr.searchValue,Lt=cr.activeValue,Pt=cr.maxLength,$e=cr.onInputKeyDown,ut=cr.onInputMouseDown,zt=cr.onInputChange,Ht=cr.onInputPaste,Fn=cr.onInputCompositionStart,Cn=cr.onInputCompositionEnd,tr=cr.title,Jn=d.useState(!1),ei=(0,m.A)(Jn,2),Ci=ei[0],zi=ei[1],co=Yn==="combobox",Xo=co||Pe,Eo=se[0],Yo=dt||"";co&&Lt&&!Ci&&(Yo=Lt),d.useEffect(function(){co&&zi(!1)},[co,Lt]);var Xn=Yn!=="combobox"&&!Z&&!Pe?!1:!!Yo,fr=tr===void 0?At(Eo):tr,mr=d.useMemo(function(){return Eo?null:d.createElement("span",{className:"".concat(Xr,"-selection-placeholder"),style:Xn?{visibility:"hidden"}:void 0},G)},[Eo,Xn,G,Xr]);return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(Xr,"-selection-search")},d.createElement(ke,{ref:Qi,prefixCls:Xr,id:Jr,open:Z,inputElement:ni,disabled:Fo,autoFocus:No,autoComplete:Jo,editable:Xo,activeDescendantId:br,value:Yo,onKeyDown:$e,onMouseDown:ut,onChange:function(Rr){zi(!0),zt(Rr)},onPaste:Ht,onCompositionStart:Fn,onCompositionEnd:Cn,tabIndex:B,attrs:(0,N.A)(cr,!0),maxLength:co?Pt:void 0})),!co&&Eo?d.createElement("span",{className:"".concat(Xr,"-selection-item"),title:fr,style:Xn?{visibility:"hidden"}:void 0},Eo.label):null,mr)};const He=De;function Fe(Nn){return![O.A.ESC,O.A.SHIFT,O.A.BACKSPACE,O.A.TAB,O.A.WIN_KEY,O.A.ALT,O.A.META,O.A.WIN_KEY_RIGHT,O.A.CTRL,O.A.SEMICOLON,O.A.EQUALS,O.A.CAPS_LOCK,O.A.CONTEXT_MENU,O.A.F1,O.A.F2,O.A.F3,O.A.F4,O.A.F5,O.A.F6,O.A.F7,O.A.F8,O.A.F9,O.A.F10,O.A.F11,O.A.F12].includes(Nn)}var ze=function(cr,ni){var Xr=(0,d.useRef)(null),Jr=(0,d.useRef)(!1),Qi=cr.prefixCls,Fo=cr.open,No=cr.mode,Jo=cr.showSearch,br=cr.tokenWithEnter,Yn=cr.autoClearSearchValue,Z=cr.onSearch,se=cr.onSearchSubmit,G=cr.onToggleOpen,B=cr.onInputKeyDown,Pe=cr.domRef;d.useImperativeHandle(ni,function(){return{focus:function(){Xr.current.focus()},blur:function(){Xr.current.blur()}}});var dt=ae(0),Lt=(0,m.A)(dt,2),Pt=Lt[0],$e=Lt[1],ut=function(Yo){var Xn=Yo.which;(Xn===O.A.UP||Xn===O.A.DOWN)&&Yo.preventDefault(),B&&B(Yo),Xn===O.A.ENTER&&No==="tags"&&!Jr.current&&!Fo&&se?.(Yo.target.value),Fe(Xn)&&G(!0)},zt=function(){$e(!0)},Ht=(0,d.useRef)(null),Fn=function(Yo){Z(Yo,!0,Jr.current)!==!1&&G(!0)},Cn=function(){Jr.current=!0},tr=function(Yo){Jr.current=!1,No!=="combobox"&&Fn(Yo.target.value)},Jn=function(Yo){var Xn=Yo.target.value;if(br&&Ht.current&&/[\r\n]/.test(Ht.current)){var fr=Ht.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xn=Xn.replace(fr,Ht.current)}Ht.current=null,Fn(Xn)},ei=function(Yo){var Xn=Yo.clipboardData,fr=Xn?.getData("text");Ht.current=fr||""},Ci=function(Yo){var Xn=Yo.target;if(Xn!==Xr.current){var fr=document.body.style.msTouchAction!==void 0;fr?setTimeout(function(){Xr.current.focus()}):Xr.current.focus()}},zi=function(Yo){var Xn=Pt();Yo.target!==Xr.current&&!Xn&&No!=="combobox"&&Yo.preventDefault(),(No!=="combobox"&&(!Jo||!Xn)||!Fo)&&(Fo&&Yn!==!1&&Z("",!0,!1),G())},co={inputRef:Xr,onInputKeyDown:ut,onInputMouseDown:zt,onInputChange:Jn,onInputPaste:ei,onInputCompositionStart:Cn,onInputCompositionEnd:tr},Xo=No==="multiple"||No==="tags"?d.createElement(ue,(0,i.A)({},cr,co)):d.createElement(He,(0,i.A)({},cr,co));return d.createElement("div",{ref:Pe,className:"".concat(Qi,"-selector"),onClick:Ci,onMouseDown:zi},Xo)},qe=d.forwardRef(ze);const We=qe;var _t=t(1045),ct=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ge=function(cr){var ni=cr===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"}}},st=function(cr,ni){var Xr=cr.prefixCls,Jr=cr.disabled,Qi=cr.visible,Fo=cr.children,No=cr.popupElement,Jo=cr.animation,br=cr.transitionName,Yn=cr.dropdownStyle,Z=cr.dropdownClassName,se=cr.direction,G=se===void 0?"ltr":se,B=cr.placement,Pe=cr.builtinPlacements,dt=cr.dropdownMatchSelectWidth,Lt=cr.dropdownRender,Pt=cr.dropdownAlign,$e=cr.getPopupContainer,ut=cr.empty,zt=cr.getTriggerDOMNode,Ht=cr.onPopupVisibleChange,Fn=cr.onPopupMouseEnter,Cn=(0,u.A)(cr,ct),tr="".concat(Xr,"-dropdown"),Jn=No;Lt&&(Jn=Lt(No));var ei=d.useMemo(function(){return Pe||Ge(dt)},[Pe,dt]),Ci=Jo?"".concat(tr,"-").concat(Jo):br,zi=typeof dt=="number",co=d.useMemo(function(){return zi?null:dt===!1?"minWidth":"width"},[dt,zi]),Xo=Yn;zi&&(Xo=(0,l.A)((0,l.A)({},Xo),{},{width:dt}));var Eo=d.useRef(null);return d.useImperativeHandle(ni,function(){return{getPopupElement:function(){return Eo.current}}}),d.createElement(_t.A,(0,i.A)({},Cn,{showAction:Ht?["click"]:[],hideAction:Ht?["click"]:[],popupPlacement:B||(G==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ei,prefixCls:tr,popupTransitionName:Ci,popup:d.createElement("div",{ref:Eo,onMouseEnter:Fn},Jn),stretch:co,popupAlign:Pt,popupVisible:Qi,getPopupContainer:$e,popupClassName:y()(Z,(0,f.A)({},"".concat(tr,"-empty"),ut)),popupStyle:Xo,getTriggerDOMNode:zt,onPopupVisibleChange:Ht}),Fo)},Me=d.forwardRef(st);const ie=Me;var ge=t(87695);function z(Nn,cr){var ni=Nn.key,Xr;return"value"in Nn&&(Xr=Nn.value),ni??(Xr!==void 0?Xr:"rc-index-key-".concat(cr))}function be(Nn,cr){var ni=Nn||{},Xr=ni.label,Jr=ni.value,Qi=ni.options,Fo=ni.groupLabel,No=Xr||(cr?"children":"label");return{label:No,value:Jr||"value",options:Qi||"options",groupLabel:Fo||No}}function Qe(Nn){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ni=cr.fieldNames,Xr=cr.childrenAsData,Jr=[],Qi=be(ni,!1),Fo=Qi.label,No=Qi.value,Jo=Qi.options,br=Qi.groupLabel;function Yn(Z,se){Array.isArray(Z)&&Z.forEach(function(G){if(se||!(Jo in G)){var B=G[No];Jr.push({key:z(G,Jr.length),groupOption:se,data:G,label:G[Fo],value:B})}else{var Pe=G[br];Pe===void 0&&Xr&&(Pe=G.label),Jr.push({key:z(G,Jr.length),group:!0,data:G,label:Pe}),Yn(G[Jo],!0)}})}return Yn(Nn,!1),Jr}function Bt(Nn){var cr=(0,l.A)({},Nn);return"props"in cr||Object.defineProperty(cr,"props",{get:function(){return(0,h.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),cr}}),cr}var nn=function(cr,ni,Xr){if(!ni||!ni.length)return null;var Jr=!1,Qi=function No(Jo,br){var Yn=(0,ge.A)(br),Z=Yn[0],se=Yn.slice(1);if(!Z)return[Jo];var G=Jo.split(Z);return Jr=Jr||G.length>1,G.reduce(function(B,Pe){return[].concat((0,s.A)(B),(0,s.A)(No(Pe,se)))},[]).filter(Boolean)},Fo=Qi(cr,ni);return Jr?typeof Xr<"u"?Fo.slice(0,Xr):Fo:null},bt=d.createContext(null);const at=bt;var $t=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],On=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ct=function(cr){return cr==="tags"||cr==="multiple"},Zt=d.forwardRef(function(Nn,cr){var ni,Xr,Jr=Nn.id,Qi=Nn.prefixCls,Fo=Nn.className,No=Nn.showSearch,Jo=Nn.tagRender,br=Nn.direction,Yn=Nn.omitDomProps,Z=Nn.displayValues,se=Nn.onDisplayValuesChange,G=Nn.emptyOptions,B=Nn.notFoundContent,Pe=B===void 0?"Not Found":B,dt=Nn.onClear,Lt=Nn.mode,Pt=Nn.disabled,$e=Nn.loading,ut=Nn.getInputElement,zt=Nn.getRawInputElement,Ht=Nn.open,Fn=Nn.defaultOpen,Cn=Nn.onDropdownVisibleChange,tr=Nn.activeValue,Jn=Nn.onActiveValueChange,ei=Nn.activeDescendantId,Ci=Nn.searchValue,zi=Nn.autoClearSearchValue,co=Nn.onSearch,Xo=Nn.onSearchSplit,Eo=Nn.tokenSeparators,Yo=Nn.allowClear,Xn=Nn.suffixIcon,fr=Nn.clearIcon,mr=Nn.OptionList,yr=Nn.animation,Rr=Nn.transitionName,ai=Nn.dropdownStyle,jt=Nn.dropdownClassName,Pn=Nn.dropdownMatchSelectWidth,nr=Nn.dropdownRender,Ir=Nn.dropdownAlign,fi=Nn.placement,Ti=Nn.builtinPlacements,Oe=Nn.getPopupContainer,pn=Nn.showAction,Qn=pn===void 0?[]:pn,Sr=Nn.onFocus,hr=Nn.onBlur,kr=Nn.onKeyUp,Ve=Nn.onKeyDown,Ot=Nn.onMouseDown,wn=(0,u.A)(Nn,$t),Wt=Ct(Lt),Yt=(No!==void 0?No:Wt)||Lt==="combobox",zn=(0,l.A)({},wn);On.forEach(function(Wo){delete zn[Wo]}),Yn?.forEach(function(Wo){delete zn[Wo]});var Nr=d.useState(!1),si=(0,m.A)(Nr,2),Ki=si[0],Bi=si[1];d.useEffect(function(){Bi((0,S.A)())},[]);var Xi=d.useRef(null),vo=d.useRef(null),ea=d.useRef(null),la=d.useRef(null),ss=d.useRef(null),Rs=d.useRef(!1),Ds=j(),Is=(0,m.A)(Ds,3),nu=Is[0],Ls=Is[1],gu=Is[2];d.useImperativeHandle(cr,function(){var Wo,Ra;return{focus:(Wo=la.current)===null||Wo===void 0?void 0:Wo.focus,blur:(Ra=la.current)===null||Ra===void 0?void 0:Ra.blur,scrollTo:function(Wa){var eu;return(eu=ss.current)===null||eu===void 0?void 0:eu.scrollTo(Wa)}}});var Us=d.useMemo(function(){var Wo;if(Lt!=="combobox")return Ci;var Ra=(Wo=Z[0])===null||Wo===void 0?void 0:Wo.value;return typeof Ra=="string"||typeof Ra=="number"?String(Ra):""},[Ci,Lt,Z]),Iu=Lt==="combobox"&&typeof ut=="function"&&ut()||null,Wu=typeof zt=="function"&&zt(),rl=(0,R.xK)(vo,Wu==null||(ni=Wu.props)===null||ni===void 0?void 0:ni.ref),Hu=d.useState(!1),Ts=(0,m.A)(Hu,2),Al=Ts[0],fl=Ts[1];(0,w.A)(function(){fl(!0)},[]);var Rl=(0,v.A)(!1,{defaultValue:Fn,value:Ht}),Bu=(0,m.A)(Rl,2),Mn=Bu[0],en=Bu[1],sn=Al?Mn:!1,qt=!Pe&&G;(Pt||qt&&sn&&Lt==="combobox")&&(sn=!1);var In=qt?!1:sn,Kn=d.useCallback(function(Wo){var Ra=Wo!==void 0?Wo:!sn;Pt||(en(Ra),sn!==Ra&&Cn?.(Ra))},[Pt,sn,en,Cn]),Fr=d.useMemo(function(){return(Eo||[]).some(function(Wo){return[` `,`\r `].includes(Wo)})},[Eo]),ci=d.useContext(at)||{},Le=ci.maxCount,te=ci.rawValues,Ue=function(Ra,_a,Wa){if(!(te?.size>=Le)){var eu=!0,Ws=Ra;Jn?.(null);var Ne=nn(Ra,Eo,Le&&Le-te.size),kt=Wa?null:Ne;return Lt!=="combobox"&&kt&&(Ws="",Xo?.(kt),Kn(!1),eu=!1),co&&Us!==Ws&&co(Ws,{source:_a?"typing":"effect"}),eu}},rt=function(Ra){!Ra||!Ra.trim()||co(Ra,{source:"submit"})};d.useEffect(function(){!sn&&!Wt&&Lt!=="combobox"&&Ue("",!1,!1)},[sn]),d.useEffect(function(){Mn&&Pt&&en(!1),Pt&&!Rs.current&&Ls(!1)},[Pt]);var ht=ae(),Gt=(0,m.A)(ht,2),xn=Gt[0],Hn=Gt[1],wr=function(Ra){var _a=xn(),Wa=Ra.which;if(Wa===O.A.ENTER&&(Lt!=="combobox"&&Ra.preventDefault(),sn||Kn(!0)),Hn(!!Us),Wa===O.A.BACKSPACE&&!_a&&Wt&&!Us&&Z.length){for(var eu=(0,s.A)(Z),Ws=null,Ne=eu.length-1;Ne>=0;Ne-=1){var kt=eu[Ne];if(!kt.disabled){eu.splice(Ne,1),Ws=kt;break}}Ws&&se(eu,{type:"remove",values:[Ws]})}for(var Rn=arguments.length,jn=new Array(Rn>1?Rn-1:0),_r=1;_r<Rn;_r++)jn[_r-1]=arguments[_r];if(sn){var xr;(xr=ss.current)===null||xr===void 0||xr.onKeyDown.apply(xr,[Ra].concat(jn))}Ve?.apply(void 0,[Ra].concat(jn))},Wr=function(Ra){for(var _a=arguments.length,Wa=new Array(_a>1?_a-1:0),eu=1;eu<_a;eu++)Wa[eu-1]=arguments[eu];if(sn){var Ws;(Ws=ss.current)===null||Ws===void 0||Ws.onKeyUp.apply(Ws,[Ra].concat(Wa))}kr?.apply(void 0,[Ra].concat(Wa))},vt=function(Ra){var _a=Z.filter(function(Wa){return Wa!==Ra});se(_a,{type:"remove",values:[Ra]})},Vt=d.useRef(!1),dn=function(){Ls(!0),Pt||(Sr&&!Vt.current&&Sr.apply(void 0,arguments),Qn.includes("focus")&&Kn(!0)),Vt.current=!0},yn=function(){Rs.current=!0,Ls(!1,function(){Vt.current=!1,Rs.current=!1,Kn(!1)}),!Pt&&(Us&&(Lt==="tags"?co(Us,{source:"submit"}):Lt==="multiple"&&co("",{source:"blur"})),hr&&hr.apply(void 0,arguments))},ar=[];d.useEffect(function(){return function(){ar.forEach(function(Wo){return clearTimeout(Wo)}),ar.splice(0,ar.length)}},[]);var wi=function(Ra){var _a,Wa=Ra.target,eu=(_a=ea.current)===null||_a===void 0?void 0:_a.getPopupElement();if(eu&&eu.contains(Wa)){var Ws=setTimeout(function(){var jn=ar.indexOf(Ws);if(jn!==-1&&ar.splice(jn,1),gu(),!Ki&&!eu.contains(document.activeElement)){var _r;(_r=la.current)===null||_r===void 0||_r.focus()}});ar.push(Ws)}for(var Ne=arguments.length,kt=new Array(Ne>1?Ne-1:0),Rn=1;Rn<Ne;Rn++)kt[Rn-1]=arguments[Rn];Ot?.apply(void 0,[Ra].concat(kt))},mi=d.useState({}),ho=(0,m.A)(mi,2),Ao=ho[1];function Mo(){Ao({})}var bo;Wu&&(bo=function(Ra){Kn(Ra)}),_(function(){var Wo;return[Xi.current,(Wo=ea.current)===null||Wo===void 0?void 0:Wo.getPopupElement()]},In,Kn,!!Wu);var ca=d.useMemo(function(){return(0,l.A)((0,l.A)({},Nn),{},{notFoundContent:Pe,open:sn,triggerOpen:In,id:Jr,showSearch:Yt,multiple:Wt,toggleOpen:Kn})},[Nn,Pe,In,sn,Jr,Yt,Wt,Kn]),sa=!!Xn||$e,Da;sa&&(Da=d.createElement(D,{className:y()("".concat(Qi,"-arrow"),(0,f.A)({},"".concat(Qi,"-arrow-loading"),$e)),customizeIcon:Xn,customizeIconProps:{loading:$e,searchValue:Us,open:sn,focused:nu,showSearch:Yt}}));var La=function(){var Ra;dt?.(),(Ra=la.current)===null||Ra===void 0||Ra.focus(),se([],{type:"clear",values:Z}),Ue("",!1,!1)},Ja=P(Qi,La,Z,Yo,fr,Pt,Us,Lt),Ya=Ja.allowClear,Aa=Ja.clearIcon,ba=d.createElement(mr,{ref:ss}),Ka=y()(Qi,Fo,(Xr={},(0,f.A)(Xr,"".concat(Qi,"-focused"),nu),(0,f.A)(Xr,"".concat(Qi,"-multiple"),Wt),(0,f.A)(Xr,"".concat(Qi,"-single"),!Wt),(0,f.A)(Xr,"".concat(Qi,"-allow-clear"),Yo),(0,f.A)(Xr,"".concat(Qi,"-show-arrow"),sa),(0,f.A)(Xr,"".concat(Qi,"-disabled"),Pt),(0,f.A)(Xr,"".concat(Qi,"-loading"),$e),(0,f.A)(Xr,"".concat(Qi,"-open"),sn),(0,f.A)(Xr,"".concat(Qi,"-customize-input"),Iu),(0,f.A)(Xr,"".concat(Qi,"-show-search"),Yt),Xr)),us=d.createElement(ie,{ref:ea,disabled:Pt,prefixCls:Qi,visible:In,popupElement:ba,animation:yr,transitionName:Rr,dropdownStyle:ai,dropdownClassName:jt,direction:br,dropdownMatchSelectWidth:Pn,dropdownRender:nr,dropdownAlign:Ir,placement:fi,builtinPlacements:Ti,getPopupContainer:Oe,empty:G,getTriggerDOMNode:function(){return vo.current},onPopupVisibleChange:bo,onPopupMouseEnter:Mo},Wu?d.cloneElement(Wu,{ref:rl}):d.createElement(We,(0,i.A)({},Nn,{domRef:vo,prefixCls:Qi,inputElement:Iu,ref:la,id:Jr,showSearch:Yt,autoClearSearchValue:zi,mode:Lt,activeDescendantId:ei,tagRender:Jo,values:Z,open:sn,onToggleOpen:Kn,activeValue:tr,searchValue:Us,onSearch:Ue,onSearchSubmit:rt,onRemove:vt,tokenWithEnter:Fr}))),ii;return Wu?ii=us:ii=d.createElement("div",(0,i.A)({className:Ka},zn,{ref:Xi,onMouseDown:wi,onKeyDown:wr,onKeyUp:Wr,onFocus:dn,onBlur:yn}),nu&&!sn&&d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Z.map(function(Wo){var Ra=Wo.label,_a=Wo.value;return["number","string"].includes((0,p.A)(Ra))?Ra:_a}).join(", "))),us,Da,Ya&&Aa),d.createElement(T.Provider,{value:ca},ii)});const Wn=Zt;var Zn=function(){return null};Zn.isSelectOptGroup=!0;const xt=Zn;var Xe=function(){return null};Xe.isSelectOption=!0;const gn=Xe;var Qt=t(28104),Dt=t(19853),hn=t(79889);function cn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var an=["disabled","title","children","style","className"];function Or(Nn){return typeof Nn=="string"||typeof Nn=="number"}var Ln=function(cr,ni){var Xr=A(),Jr=Xr.prefixCls,Qi=Xr.id,Fo=Xr.open,No=Xr.multiple,Jo=Xr.mode,br=Xr.searchValue,Yn=Xr.toggleOpen,Z=Xr.notFoundContent,se=Xr.onPopupScroll,G=d.useContext(at),B=G.maxCount,Pe=G.flattenOptions,dt=G.onActiveValue,Lt=G.defaultActiveFirstOption,Pt=G.onSelect,$e=G.menuItemSelectedIcon,ut=G.rawValues,zt=G.fieldNames,Ht=G.virtual,Fn=G.direction,Cn=G.listHeight,tr=G.listItemHeight,Jn=G.optionRender,ei="".concat(Jr,"-item"),Ci=(0,Qt.A)(function(){return Pe},[Fo,Pe],function(Oe,pn){return pn[0]&&Oe[1]!==pn[1]}),zi=d.useRef(null),co=d.useMemo(function(){return No&&typeof B<"u"&&ut?.size>=B},[No,B,ut?.size]),Xo=function(pn){pn.preventDefault()},Eo=function(pn){var Qn;(Qn=zi.current)===null||Qn===void 0||Qn.scrollTo(typeof pn=="number"?{index:pn}:pn)},Yo=function(pn){for(var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Sr=Ci.length,hr=0;hr<Sr;hr+=1){var kr=(pn+hr*Qn+Sr)%Sr,Ve=Ci[kr]||{},Ot=Ve.group,wn=Ve.data;if(!Ot&&!(wn!=null&&wn.disabled)&&!co)return kr}return-1},Xn=d.useState(function(){return Yo(0)}),fr=(0,m.A)(Xn,2),mr=fr[0],yr=fr[1],Rr=function(pn){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;yr(pn);var Sr={source:Qn?"keyboard":"mouse"},hr=Ci[pn];if(!hr){dt(null,-1,Sr);return}dt(hr.value,pn,Sr)};(0,d.useEffect)(function(){Rr(Lt!==!1?Yo(0):-1)},[Ci.length,br]);var ai=d.useCallback(function(Oe){return ut.has(Oe)&&Jo!=="combobox"},[Jo,(0,s.A)(ut).toString(),ut.size]);(0,d.useEffect)(function(){var Oe=setTimeout(function(){if(!No&&Fo&&ut.size===1){var Qn=Array.from(ut)[0],Sr=Ci.findIndex(function(hr){var kr=hr.data;return kr.value===Qn});Sr!==-1&&(Rr(Sr),Eo(Sr))}});if(Fo){var pn;(pn=zi.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(Oe)}},[Fo,br]);var jt=function(pn){pn!==void 0&&Pt(pn,{selected:!ut.has(pn)}),No||Yn(!1)};if(d.useImperativeHandle(ni,function(){return{onKeyDown:function(pn){var Qn=pn.which,Sr=pn.ctrlKey;switch(Qn){case O.A.N:case O.A.P:case O.A.UP:case O.A.DOWN:{var hr=0;if(Qn===O.A.UP?hr=-1:Qn===O.A.DOWN?hr=1:cn()&&Sr&&(Qn===O.A.N?hr=1:Qn===O.A.P&&(hr=-1)),hr!==0){var kr=Yo(mr+hr,hr);Eo(kr),Rr(kr,!0)}break}case O.A.ENTER:{var Ve,Ot=Ci[mr];Ot&&!(Ot!=null&&(Ve=Ot.data)!==null&&Ve!==void 0&&Ve.disabled)&&!co?jt(Ot.value):jt(void 0),Fo&&pn.preventDefault();break}case O.A.ESC:Yn(!1),Fo&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){Eo(pn)}}}),Ci.length===0)return d.createElement("div",{role:"listbox",id:"".concat(Qi,"_list"),className:"".concat(ei,"-empty"),onMouseDown:Xo},Z);var Pn=Object.keys(zt).map(function(Oe){return zt[Oe]}),nr=function(pn){return pn.label};function Ir(Oe,pn){var Qn=Oe.group;return{role:Qn?"presentation":"option",id:"".concat(Qi,"_list_").concat(pn)}}var fi=function(pn){var Qn=Ci[pn];if(!Qn)return null;var Sr=Qn.data||{},hr=Sr.value,kr=Qn.group,Ve=(0,N.A)(Sr,!0),Ot=nr(Qn);return Qn?d.createElement("div",(0,i.A)({"aria-label":typeof Ot=="string"&&!kr?Ot:null},Ve,{key:pn},Ir(Qn,pn),{"aria-selected":ai(hr)}),hr):null},Ti={role:"listbox",id:"".concat(Qi,"_list")};return d.createElement(d.Fragment,null,Ht&&d.createElement("div",(0,i.A)({},Ti,{style:{height:0,width:0,overflow:"hidden"}}),fi(mr-1),fi(mr),fi(mr+1)),d.createElement(hn.A,{itemKey:"key",ref:zi,data:Ci,height:Cn,itemHeight:tr,fullHeight:!1,onMouseDown:Xo,onScroll:se,virtual:Ht,direction:Fn,innerProps:Ht?null:Ti},function(Oe,pn){var Qn,Sr=Oe.group,hr=Oe.groupOption,kr=Oe.data,Ve=Oe.label,Ot=Oe.value,wn=kr.key;if(Sr){var Wt,Yt=(Wt=kr.title)!==null&&Wt!==void 0?Wt:Or(Ve)?Ve.toString():void 0;return d.createElement("div",{className:y()(ei,"".concat(ei,"-group")),title:Yt},Ve!==void 0?Ve:wn)}var zn=kr.disabled,Nr=kr.title,si=kr.children,Ki=kr.style,Bi=kr.className,Xi=(0,u.A)(kr,an),vo=(0,Dt.A)(Xi,Pn),ea=ai(Ot),la=zn||!ea&&co,ss="".concat(ei,"-option"),Rs=y()(ei,ss,Bi,(Qn={},(0,f.A)(Qn,"".concat(ss,"-grouped"),hr),(0,f.A)(Qn,"".concat(ss,"-active"),mr===pn&&!la),(0,f.A)(Qn,"".concat(ss,"-disabled"),la),(0,f.A)(Qn,"".concat(ss,"-selected"),ea),Qn)),Ds=nr(Oe),Is=!$e||typeof $e=="function"||ea,nu=typeof Ds=="number"?Ds:Ds||Ot,Ls=Or(nu)?nu.toString():void 0;return Nr!==void 0&&(Ls=Nr),d.createElement("div",(0,i.A)({},(0,N.A)(vo),Ht?{}:Ir(Oe,pn),{"aria-selected":ea,className:Rs,title:Ls,onMouseMove:function(){mr===pn||la||Rr(pn)},onClick:function(){la||jt(Ot)},style:Ki}),d.createElement("div",{className:"".concat(ss,"-content")},typeof Jn=="function"?Jn(Oe,{index:pn}):nu),d.isValidElement($e)||ea,Is&&d.createElement(D,{className:"".concat(ei,"-option-state"),customizeIcon:$e,customizeIconProps:{value:Ot,disabled:la,isSelected:ea}},ea?"\u2713":null))}))},En=d.forwardRef(Ln);const Gn=En,rr=function(Nn,cr){var ni=d.useRef({values:new Map,options:new Map}),Xr=d.useMemo(function(){var Qi=ni.current,Fo=Qi.values,No=Qi.options,Jo=Nn.map(function(Z){if(Z.label===void 0){var se;return(0,l.A)((0,l.A)({},Z),{},{label:(se=Fo.get(Z.value))===null||se===void 0?void 0:se.label})}return Z}),br=new Map,Yn=new Map;return Jo.forEach(function(Z){br.set(Z.value,Z),Yn.set(Z.value,cr.get(Z.value)||No.get(Z.value))}),ni.current.values=br,ni.current.options=Yn,Jo},[Nn,cr]),Jr=d.useCallback(function(Qi){return cr.get(Qi)||ni.current.options.get(Qi)},[cr]);return[Xr,Jr]};function sr(Nn,cr){return Ye(Nn).join("").toUpperCase().includes(cr)}const pi=function(Nn,cr,ni,Xr,Jr){return d.useMemo(function(){if(!ni||Xr===!1)return Nn;var Qi=cr.options,Fo=cr.label,No=cr.value,Jo=[],br=typeof Xr=="function",Yn=ni.toUpperCase(),Z=br?Xr:function(G,B){return Jr?sr(B[Jr],Yn):B[Qi]?sr(B[Fo!=="children"?Fo:"label"],Yn):sr(B[No],Yn)},se=br?function(G){return Bt(G)}:function(G){return G};return Nn.forEach(function(G){if(G[Qi]){var B=Z(ni,se(G));if(B)Jo.push(G);else{var Pe=G[Qi].filter(function(dt){return Z(ni,se(dt))});Pe.length&&Jo.push((0,l.A)((0,l.A)({},G),{},(0,f.A)({},Qi,Pe)))}return}Z(ni,se(G))&&Jo.push(G)}),Jo},[Nn,Xr,Jr,ni,cr])};var yi=t(20998),jr=0,ui=(0,yi.A)();function bi(){var Nn;return ui?(Nn=jr,jr+=1):Nn="TEST_OR_SSR",Nn}function ri(Nn){var cr=d.useState(),ni=(0,m.A)(cr,2),Xr=ni[0],Jr=ni[1];return d.useEffect(function(){Jr("rc_select_".concat(bi()))},[]),Nn||Xr}var hi=t(82546),Si=["children","value"],Kr=["children"];function xi(Nn){var cr=Nn,ni=cr.key,Xr=cr.props,Jr=Xr.children,Qi=Xr.value,Fo=(0,u.A)(Xr,Si);return(0,l.A)({key:ni,value:Qi!==void 0?Qi:ni,children:Jr},Fo)}function Ai(Nn){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,hi.A)(Nn).map(function(ni,Xr){if(!d.isValidElement(ni)||!ni.type)return null;var Jr=ni,Qi=Jr.type.isSelectOptGroup,Fo=Jr.key,No=Jr.props,Jo=No.children,br=(0,u.A)(No,Kr);return cr||!Qi?xi(ni):(0,l.A)((0,l.A)({key:"__RC_SELECT_GRP__".concat(Fo===null?Xr:Fo,"__"),label:Fo},br),{},{options:Ai(Jo)})}).filter(function(ni){return ni})}var Pi=function(cr,ni,Xr,Jr,Qi){return d.useMemo(function(){var Fo=cr,No=!cr;No&&(Fo=Ai(ni));var Jo=new Map,br=new Map,Yn=function(G,B,Pe){Pe&&typeof Pe=="string"&&G.set(B[Pe],B)},Z=function se(G){for(var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=0;Pe<G.length;Pe+=1){var dt=G[Pe];!dt[Xr.options]||B?(Jo.set(dt[Xr.value],dt),Yn(br,dt,Xr.label),Yn(br,dt,Jr),Yn(br,dt,Qi)):se(dt[Xr.options],!0)}};return Z(Fo),{options:Fo,valueOptions:Jo,labelOptions:br}},[cr,ni,Xr,Jr,Qi])};const io=Pi;function lo(Nn){var cr=d.useRef();cr.current=Nn;var ni=d.useCallback(function(){return cr.current.apply(cr,arguments)},[]);return ni}function Gr(Nn){var cr=Nn.mode,ni=Nn.options,Xr=Nn.children,Jr=Nn.backfill,Qi=Nn.allowClear,Fo=Nn.placeholder,No=Nn.getInputElement,Jo=Nn.showSearch,br=Nn.onSearch,Yn=Nn.defaultOpen,Z=Nn.autoFocus,se=Nn.labelInValue,G=Nn.value,B=Nn.inputValue,Pe=Nn.optionLabelProp,dt=isMultiple(cr),Lt=Jo!==void 0?Jo:dt||cr==="combobox",Pt=ni||convertChildrenToData(Xr);if(warning(cr!=="tags"||Pt.every(function(Ht){return!Ht.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),cr==="tags"||cr==="combobox"){var $e=Pt.some(function(Ht){return Ht.options?Ht.options.some(function(Fn){return typeof("value"in Fn?Fn.value:Fn.key)=="number"}):typeof("value"in Ht?Ht.value:Ht.key)=="number"});warning(!$e,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(cr!=="combobox"||!Pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(cr==="combobox"||!Jr,"`backfill` only works with `combobox` mode."),warning(cr==="combobox"||!No,"`getInputElement` only work with `combobox` mode."),noteOnce(cr!=="combobox"||!No||!Qi||!Fo,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),br&&!Lt&&cr!=="combobox"&&cr!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Yn||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),G!=null){var ut=toArray(G);warning(!se||ut.every(function(Ht){return _typeof(Ht)==="object"&&("key"in Ht||"value"in Ht)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!dt||Array.isArray(G),"`value` should be array when `mode` is `multiple` or `tags`")}if(Xr){var zt=null;toNodeArray(Xr).some(function(Ht){if(!React.isValidElement(Ht)||!Ht.type)return!1;var Fn=Ht,Cn=Fn.type;if(Cn.isSelectOption)return!1;if(Cn.isSelectOptGroup){var tr=toNodeArray(Ht.props.children).every(function(Jn){return!React.isValidElement(Jn)||!Ht.type||Jn.type.isSelectOption?!0:(zt=Jn.type,!1)});return!tr}return zt=Cn,!0}),zt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zt.displayName||zt.name||zt,"`.")),warning(B===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function un(Nn,cr){if(Nn){var ni=function Xr(Jr){for(var Qi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fo=0;Fo<Jr.length;Fo++){var No=Jr[Fo];if(No[cr?.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Qi&&Array.isArray(No[cr?.options])&&Xr(No[cr?.options],!0))break}};ni(Nn)}}const qn=null;var kn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],St=["inputValue"];function ln(Nn){return!Nn||(0,p.A)(Nn)!=="object"}var An=d.forwardRef(function(Nn,cr){var ni=Nn.id,Xr=Nn.mode,Jr=Nn.prefixCls,Qi=Jr===void 0?"rc-select":Jr,Fo=Nn.backfill,No=Nn.fieldNames,Jo=Nn.inputValue,br=Nn.searchValue,Yn=Nn.onSearch,Z=Nn.autoClearSearchValue,se=Z===void 0?!0:Z,G=Nn.onSelect,B=Nn.onDeselect,Pe=Nn.dropdownMatchSelectWidth,dt=Pe===void 0?!0:Pe,Lt=Nn.filterOption,Pt=Nn.filterSort,$e=Nn.optionFilterProp,ut=Nn.optionLabelProp,zt=Nn.options,Ht=Nn.optionRender,Fn=Nn.children,Cn=Nn.defaultActiveFirstOption,tr=Nn.menuItemSelectedIcon,Jn=Nn.virtual,ei=Nn.direction,Ci=Nn.listHeight,zi=Ci===void 0?200:Ci,co=Nn.listItemHeight,Xo=co===void 0?20:co,Eo=Nn.value,Yo=Nn.defaultValue,Xn=Nn.labelInValue,fr=Nn.onChange,mr=Nn.maxCount,yr=(0,u.A)(Nn,kn),Rr=ri(ni),ai=Ct(Xr),jt=!!(!zt&&Fn),Pn=d.useMemo(function(){return Lt===void 0&&Xr==="combobox"?!1:Lt},[Lt,Xr]),nr=d.useMemo(function(){return be(No,jt)},[JSON.stringify(No),jt]),Ir=(0,v.A)("",{value:br!==void 0?br:Jo,postState:function(In){return In||""}}),fi=(0,m.A)(Ir,2),Ti=fi[0],Oe=fi[1],pn=io(zt,Fn,nr,$e,ut),Qn=pn.valueOptions,Sr=pn.labelOptions,hr=pn.options,kr=d.useCallback(function(qt){var In=Ye(qt);return In.map(function(Kn){var Fr,ci,Le,te,Ue;if(ln(Kn))Fr=Kn;else{var rt;Le=Kn.key,ci=Kn.label,Fr=(rt=Kn.value)!==null&&rt!==void 0?rt:Le}var ht=Qn.get(Fr);if(ht){var Gt;if(ci===void 0&&(ci=ht?.[ut||nr.label]),Le===void 0&&(Le=(Gt=ht?.key)!==null&&Gt!==void 0?Gt:Fr),te=ht?.disabled,Ue=ht?.title,!1)var xn}return{label:ci,value:Fr,key:Le,disabled:te,title:Ue}})},[nr,ut,Qn]),Ve=(0,v.A)(Yo,{value:Eo}),Ot=(0,m.A)(Ve,2),wn=Ot[0],Wt=Ot[1],Yt=d.useMemo(function(){var qt,In=ai&&wn===null?[]:wn,Kn=kr(In);return Xr==="combobox"&&Ke((qt=Kn[0])===null||qt===void 0?void 0:qt.value)?[]:Kn},[wn,kr,Xr,ai]),zn=rr(Yt,Qn),Nr=(0,m.A)(zn,2),si=Nr[0],Ki=Nr[1],Bi=d.useMemo(function(){if(!Xr&&si.length===1){var qt=si[0];if(qt.value===null&&(qt.label===null||qt.label===void 0))return[]}return si.map(function(In){var Kn;return(0,l.A)((0,l.A)({},In),{},{label:(Kn=In.label)!==null&&Kn!==void 0?Kn:In.value})})},[Xr,si]),Xi=d.useMemo(function(){return new Set(si.map(function(qt){return qt.value}))},[si]);d.useEffect(function(){if(Xr==="combobox"){var qt,In=(qt=si[0])===null||qt===void 0?void 0:qt.value;Oe(Ut(In)?String(In):"")}},[si]);var vo=lo(function(qt,In){var Kn,Fr=In??qt;return Kn={},(0,f.A)(Kn,nr.value,qt),(0,f.A)(Kn,nr.label,Fr),Kn}),ea=d.useMemo(function(){if(Xr!=="tags")return hr;var qt=(0,s.A)(hr),In=function(Fr){return Qn.has(Fr)};return(0,s.A)(si).sort(function(Kn,Fr){return Kn.value<Fr.value?-1:1}).forEach(function(Kn){var Fr=Kn.value;In(Fr)||qt.push(vo(Fr,Kn.label))}),qt},[vo,hr,Qn,si,Xr]),la=pi(ea,nr,Ti,Pn,$e),ss=d.useMemo(function(){return Xr!=="tags"||!Ti||la.some(function(qt){return qt[$e||"value"]===Ti})||la.some(function(qt){return qt[nr.value]===Ti})?la:[vo(Ti)].concat((0,s.A)(la))},[vo,$e,Xr,la,Ti,nr]),Rs=d.useMemo(function(){return Pt?(0,s.A)(ss).sort(function(qt,In){return Pt(qt,In)}):ss},[ss,Pt]),Ds=d.useMemo(function(){return Qe(Rs,{fieldNames:nr,childrenAsData:jt})},[Rs,nr,jt]),Is=function(In){var Kn=kr(In);if(Wt(Kn),fr&&(Kn.length!==si.length||Kn.some(function(Le,te){var Ue;return((Ue=si[te])===null||Ue===void 0?void 0:Ue.value)!==Le?.value}))){var Fr=Xn?Kn:Kn.map(function(Le){return Le.value}),ci=Kn.map(function(Le){return Bt(Ki(Le.value))});fr(ai?Fr:Fr[0],ai?ci:ci[0])}},nu=d.useState(null),Ls=(0,m.A)(nu,2),gu=Ls[0],Us=Ls[1],Iu=d.useState(0),Wu=(0,m.A)(Iu,2),rl=Wu[0],Hu=Wu[1],Ts=Cn!==void 0?Cn:Xr!=="combobox",Al=d.useCallback(function(qt,In){var Kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fr=Kn.source,ci=Fr===void 0?"keyboard":Fr;Hu(In),Fo&&Xr==="combobox"&&qt!==null&&ci==="keyboard"&&Us(String(qt))},[Fo,Xr]),fl=function(In,Kn,Fr){var ci=function(){var Wr,vt=Ki(In);return[Xn?{label:vt?.[nr.label],value:In,key:(Wr=vt?.key)!==null&&Wr!==void 0?Wr:In}:In,Bt(vt)]};if(Kn&&G){var Le=ci(),te=(0,m.A)(Le,2),Ue=te[0],rt=te[1];G(Ue,rt)}else if(!Kn&&B&&Fr!=="clear"){var ht=ci(),Gt=(0,m.A)(ht,2),xn=Gt[0],Hn=Gt[1];B(xn,Hn)}},Rl=lo(function(qt,In){var Kn,Fr=ai?In.selected:!0;Fr?Kn=ai?[].concat((0,s.A)(si),[qt]):[qt]:Kn=si.filter(function(ci){return ci.value!==qt}),Is(Kn),fl(qt,Fr),Xr==="combobox"?Us(""):(!Ct||se)&&(Oe(""),Us(""))}),Bu=function(In,Kn){Is(In);var Fr=Kn.type,ci=Kn.values;(Fr==="remove"||Fr==="clear")&&ci.forEach(function(Le){fl(Le.value,!1,Fr)})},Mn=function(In,Kn){if(Oe(In),Us(null),Kn.source==="submit"){var Fr=(In||"").trim();if(Fr){var ci=Array.from(new Set([].concat((0,s.A)(Xi),[Fr])));Is(ci),fl(Fr,!0),Oe("")}return}Kn.source!=="blur"&&(Xr==="combobox"&&Is(In),Yn?.(In))},en=function(In){var Kn=In;Xr!=="tags"&&(Kn=In.map(function(ci){var Le=Sr.get(ci);return Le?.value}).filter(function(ci){return ci!==void 0}));var Fr=Array.from(new Set([].concat((0,s.A)(Xi),(0,s.A)(Kn))));Is(Fr),Fr.forEach(function(ci){fl(ci,!0)})},sn=d.useMemo(function(){var qt=Jn!==!1&&dt!==!1;return(0,l.A)((0,l.A)({},pn),{},{flattenOptions:Ds,onActiveValue:Al,defaultActiveFirstOption:Ts,onSelect:Rl,menuItemSelectedIcon:tr,rawValues:Xi,fieldNames:nr,virtual:qt,direction:ei,listHeight:zi,listItemHeight:Xo,childrenAsData:jt,maxCount:mr,optionRender:Ht})},[mr,pn,Ds,Al,Ts,Rl,tr,Xi,nr,Jn,dt,ei,zi,Xo,jt,Ht]);return d.createElement(at.Provider,{value:sn},d.createElement(Wn,(0,i.A)({},yr,{id:Rr,prefixCls:Qi,ref:cr,omitDomProps:St,mode:Xr,displayValues:Bi,onDisplayValuesChange:Bu,direction:ei,searchValue:Ti,onSearch:Mn,autoClearSearchValue:se,onSearchSplit:en,dropdownMatchSelectWidth:dt,OptionList:Gn,emptyOptions:!Ds.length,activeValue:gu,activeDescendantId:"".concat(Rr,"_list_").concat(rl)})))}),Cr=An;Cr.Option=gn,Cr.OptGroup=xt;const _i=null,Sn=null;var ir=d.createContext(null);const mt=ir;var fn="__rc_cascader_search_mark__",gt=function(cr,ni,Xr){var Jr=Xr.label;return ni.some(function(Qi){return String(Qi[Jr]).toLowerCase().includes(cr.toLowerCase())})},tn=function(cr,ni,Xr,Jr){return ni.map(function(Qi){return Qi[Jr.label]}).join(" / ")};const Vn=function(Nn,cr,ni,Xr,Jr,Qi){var Fo=Jr.filter,No=Fo===void 0?gt:Fo,Jo=Jr.render,br=Jo===void 0?tn:Jo,Yn=Jr.limit,Z=Yn===void 0?50:Yn,se=Jr.sort;return d.useMemo(function(){var G=[];if(!Nn)return[];function B(Pe,dt){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pe.forEach(function(Pt){if(!(!se&&Z!==!1&&Z>0&&G.length>=Z)){var $e=[].concat((0,s.A)(dt),[Pt]),ut=Pt[ni.children],zt=Lt||Pt.disabled;if((!ut||ut.length===0||Qi)&&No(Nn,$e,{label:ni.label})){var Ht;G.push((0,l.A)((0,l.A)({},Pt),{},(Ht={disabled:zt},(0,f.A)(Ht,ni.label,br(Nn,$e,Xr,ni)),(0,f.A)(Ht,fn,$e),(0,f.A)(Ht,ni.children,void 0),Ht)))}ut&&B(Pt[ni.children],$e,zt)}})}return B(cr,[]),se&&G.sort(function(Pe,dt){return se(Pe[fn],dt[fn],Nn,ni)}),Z!==!1&&Z>0?G.slice(0,Z):G},[Nn,cr,ni,Xr,br,Qi,No,se,Z])};var Ur="__RC_CASCADER_SPLIT__",$r="SHOW_PARENT",Pr="SHOW_CHILD";function zr(Nn){return Nn.join(Ur)}function gi(Nn){return Nn.map(zr)}function $i(Nn){return Nn.split(Ur)}function eo(Nn){var cr=Nn||{},ni=cr.label,Xr=cr.value,Jr=cr.children,Qi=Xr||"value";return{label:ni||"label",value:Qi,key:Qi,children:Jr||"children"}}function ki(Nn,cr){var ni,Xr;return(ni=Nn.isLeaf)!==null&&ni!==void 0?ni:!((Xr=Nn[cr.children])!==null&&Xr!==void 0&&Xr.length)}function so(Nn){var cr=Nn.parentElement;if(cr){var ni=Nn.offsetTop-cr.offsetTop;ni-cr.scrollTop<0?cr.scrollTo({top:ni}):ni+Nn.offsetHeight-cr.scrollTop>cr.offsetHeight&&cr.scrollTo({top:ni+Nn.offsetHeight-cr.offsetHeight})}}function Ho(Nn,cr){return Nn.map(function(ni){var Xr;return(Xr=ni[fn])===null||Xr===void 0?void 0:Xr.map(function(Jr){return Jr[cr.value]})})}function ra(Nn){return Array.isArray(Nn)&&Array.isArray(Nn[0])}function So(Nn){return Nn?ra(Nn)?Nn:(Nn.length===0?[]:[Nn]).map(function(cr){return Array.isArray(cr)?cr:[cr]}):[]}function gr(Nn,cr,ni){var Xr=new Set(Nn),Jr=cr();return Nn.filter(function(Qi){var Fo=Jr[Qi],No=Fo?Fo.parent:null,Jo=Fo?Fo.children:null;return Fo&&Fo.node.disabled?!0:ni===Pr?!(Jo&&Jo.some(function(br){return br.key&&Xr.has(br.key)})):!(No&&!No.node.disabled&&Xr.has(No.key))})}function di(Nn,cr,ni){for(var Xr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jr=cr,Qi=[],Fo=function(){var br,Yn,Z,se=Nn[No],G=(br=Jr)===null||br===void 0?void 0:br.findIndex(function(Pe){var dt=Pe[ni.value];return Xr?String(dt)===String(se):dt===se}),B=G!==-1?(Yn=Jr)===null||Yn===void 0?void 0:Yn[G]:null;Qi.push({value:(Z=B?.[ni.value])!==null&&Z!==void 0?Z:se,index:G,option:B}),Jr=B?.[ni.children]},No=0;No<Nn.length;No+=1)Fo();return Qi}const Vi=function(Nn,cr,ni,Xr,Jr){return d.useMemo(function(){var Qi=Jr||function(Fo){var No=Xr?Fo.slice(-1):Fo,Jo=" / ";return No.every(function(br){return["string","number"].includes((0,p.A)(br))})?No.join(Jo):No.reduce(function(br,Yn,Z){var se=d.isValidElement(Yn)?d.cloneElement(Yn,{key:Z}):Yn;return Z===0?[se]:[].concat((0,s.A)(br),[Jo,se])},[])};return Nn.map(function(Fo){var No,Jo=di(Fo,cr,ni),br=Qi(Jo.map(function(Z){var se,G=Z.option,B=Z.value;return(se=G?.[ni.label])!==null&&se!==void 0?se:B}),Jo.map(function(Z){var se=Z.option;return se})),Yn=zr(Fo);return{label:br,value:Yn,key:Yn,valueCells:Fo,disabled:(No=Jo[Jo.length-1])===null||No===void 0||(No=No.option)===null||No===void 0?void 0:No.disabled}})},[Nn,cr,ni,Jr,Xr])};function Ro(Nn,cr){return d.useCallback(function(ni){var Xr=[],Jr=[];return ni.forEach(function(Qi){var Fo=di(Qi,Nn,cr);Fo.every(function(No){return No.option})?Jr.push(Qi):Xr.push(Qi)}),[Jr,Xr]},[Nn,cr])}var na=t(7974);const ta=function(Nn,cr){var ni=d.useRef({options:null,info:null}),Xr=d.useCallback(function(){return ni.current.options!==Nn&&(ni.current.options=Nn,ni.current.info=(0,na.cG)(Nn,{fieldNames:cr,initWrapper:function(Qi){return(0,l.A)((0,l.A)({},Qi),{},{pathKeyEntities:{}})},processEntity:function(Qi,Fo){var No=Qi.nodes.map(function(Jo){return Jo[cr.value]}).join(Ur);Fo.pathKeyEntities[No]=Qi,Qi.key=No}})),ni.current.info.pathKeyEntities},[cr,Nn]);return Xr};function aa(Nn,cr){var ni=d.useMemo(function(){return cr||[]},[cr]),Xr=ta(ni,Nn),Jr=d.useCallback(function(Qi){var Fo=Xr();return Qi.map(function(No){var Jo=Fo[No].nodes;return Jo.map(function(br){return br[Nn.value]})})},[Xr,Nn]);return[ni,Xr,Jr]}function vi(Nn){return d.useMemo(function(){if(!Nn)return[!1,{}];var cr={matchInputWidth:!0,limit:50};return Nn&&(0,p.A)(Nn)==="object"&&(cr=(0,l.A)((0,l.A)({},cr),Nn)),cr.limit<=0&&delete cr.limit,[!0,cr]},[Nn])}var to=t(38820);function $o(Nn,cr,ni,Xr,Jr,Qi,Fo,No){return function(Jo){if(!Nn)cr(Jo);else{var br=zr(Jo),Yn=gi(ni),Z=gi(Xr),se=Yn.includes(br),G=Jr.some(function(Ht){return zr(Ht)===br}),B=ni,Pe=Jr;if(G&&!se)Pe=Jr.filter(function(Ht){return zr(Ht)!==br});else{var dt=se?Yn.filter(function(Ht){return Ht!==br}):[].concat((0,s.A)(Yn),[br]),Lt=Qi(),Pt;if(se){var $e=(0,to.p)(dt,{checked:!1,halfCheckedKeys:Z},Lt);Pt=$e.checkedKeys}else{var ut=(0,to.p)(dt,!0,Lt);Pt=ut.checkedKeys}var zt=gr(Pt,Qi,No);B=Fo(zt)}cr([].concat((0,s.A)(Pe),(0,s.A)(B)))}}}function ja(Nn,cr,ni,Xr,Jr){return d.useMemo(function(){var Qi=Jr(cr),Fo=(0,m.A)(Qi,2),No=Fo[0],Jo=Fo[1];if(!Nn||!cr.length)return[No,[],Jo];var br=gi(No),Yn=ni(),Z=(0,to.p)(br,!0,Yn),se=Z.checkedKeys,G=Z.halfCheckedKeys;return[Xr(se),Xr(G),Jo]},[Nn,cr,ni,Xr,Jr])}var hs=d.memo(function(Nn){var cr=Nn.children;return cr},function(Nn,cr){return!cr.open});const ro=hs;function as(Nn){var cr,ni=Nn.prefixCls,Xr=Nn.checked,Jr=Nn.halfChecked,Qi=Nn.disabled,Fo=Nn.onClick,No=Nn.disableCheckbox,Jo=d.useContext(mt),br=Jo.checkable,Yn=typeof br!="boolean"?br:null;return d.createElement("span",{className:y()("".concat(ni),(cr={},(0,f.A)(cr,"".concat(ni,"-checked"),Xr),(0,f.A)(cr,"".concat(ni,"-indeterminate"),!Xr&&Jr),(0,f.A)(cr,"".concat(ni,"-disabled"),Qi||No),cr)),onClick:Fo},Yn)}var rn="__cascader_fix_label__";function Dr(Nn){var cr=Nn.prefixCls,ni=Nn.multiple,Xr=Nn.options,Jr=Nn.activeValue,Qi=Nn.prevValuePath,Fo=Nn.onToggleOpen,No=Nn.onSelect,Jo=Nn.onActive,br=Nn.checkedSet,Yn=Nn.halfCheckedSet,Z=Nn.loadingKeys,se=Nn.isSelectable,G=Nn.searchValue,B="".concat(cr,"-menu"),Pe="".concat(cr,"-menu-item"),dt=d.useContext(mt),Lt=dt.fieldNames,Pt=dt.changeOnSelect,$e=dt.expandTrigger,ut=dt.expandIcon,zt=dt.loadingIcon,Ht=dt.dropdownMenuColumnStyle,Fn=$e==="hover",Cn=d.useMemo(function(){return Xr.map(function(tr){var Jn,ei=tr.disabled,Ci=tr.disableCheckbox,zi=tr[fn],co=(Jn=tr[rn])!==null&&Jn!==void 0?Jn:tr[Lt.label],Xo=tr[Lt.value],Eo=ki(tr,Lt),Yo=zi?zi.map(function(Rr){return Rr[Lt.value]}):[].concat((0,s.A)(Qi),[Xo]),Xn=zr(Yo),fr=Z.includes(Xn),mr=br.has(Xn),yr=Yn.has(Xn);return{disabled:ei,label:co,value:Xo,isLeaf:Eo,isLoading:fr,checked:mr,halfChecked:yr,option:tr,disableCheckbox:Ci,fullPath:Yo,fullPathKey:Xn}})},[Xr,br,Lt,Yn,Z,Qi]);return d.createElement("ul",{className:B,role:"menu"},Cn.map(function(tr){var Jn,ei=tr.disabled,Ci=tr.label,zi=tr.value,co=tr.isLeaf,Xo=tr.isLoading,Eo=tr.checked,Yo=tr.halfChecked,Xn=tr.option,fr=tr.fullPath,mr=tr.fullPathKey,yr=tr.disableCheckbox,Rr=function(){if(!(ei||G)){var nr=(0,s.A)(fr);Fn&&co&&nr.pop(),Jo(nr)}},ai=function(){se(Xn)&&No(fr,co)},jt;return typeof Xn.title=="string"?jt=Xn.title:typeof Ci=="string"&&(jt=Ci),d.createElement("li",{key:mr,className:y()(Pe,(Jn={},(0,f.A)(Jn,"".concat(Pe,"-expand"),!co),(0,f.A)(Jn,"".concat(Pe,"-active"),Jr===zi||Jr===mr),(0,f.A)(Jn,"".concat(Pe,"-disabled"),ei),(0,f.A)(Jn,"".concat(Pe,"-loading"),Xo),Jn)),style:Ht,role:"menuitemcheckbox",title:jt,"aria-checked":Eo,"data-path-key":mr,onClick:function(){Rr(),!yr&&(!ni||co)&&ai()},onDoubleClick:function(){Pt&&Fo(!1)},onMouseEnter:function(){Fn&&Rr()},onMouseDown:function(nr){nr.preventDefault()}},ni&&d.createElement(as,{prefixCls:"".concat(cr,"-checkbox"),checked:Eo,halfChecked:Yo,disabled:ei||yr,disableCheckbox:yr,onClick:function(nr){yr||(nr.stopPropagation(),ai())}}),d.createElement("div",{className:"".concat(Pe,"-content")},Ci),!Xo&&ut&&!co&&d.createElement("div",{className:"".concat(Pe,"-expand-icon")},ut),Xo&&zt&&d.createElement("div",{className:"".concat(Pe,"-loading-icon")},zt))}))}const Lr=function(Nn,cr){var ni=d.useContext(mt),Xr=ni.values,Jr=Xr[0],Qi=d.useState([]),Fo=(0,m.A)(Qi,2),No=Fo[0],Jo=Fo[1];return d.useEffect(function(){cr&&!Nn&&Jo(Jr||[])},[cr,Jr]),[No,Jo]},li=function(Nn,cr,ni,Xr,Jr,Qi,Fo){var No=Fo.direction,Jo=Fo.searchValue,br=Fo.toggleOpen,Yn=Fo.open,Z=No==="rtl",se=d.useMemo(function(){for(var Ht=-1,Fn=cr,Cn=[],tr=[],Jn=Xr.length,ei=Ho(cr,ni),Ci=function(Yo){var Xn=Fn.findIndex(function(fr,mr){return(ei[mr]?zr(ei[mr]):fr[ni.value])===Xr[Yo]});if(Xn===-1)return 1;Ht=Xn,Cn.push(Ht),tr.push(Xr[Yo]),Fn=Fn[Ht][ni.children]},zi=0;zi<Jn&&Fn&&!Ci(zi);zi+=1);for(var co=cr,Xo=0;Xo<Cn.length-1;Xo+=1)co=co[Cn[Xo]][ni.children];return[tr,Ht,co,ei]},[Xr,ni,cr]),G=(0,m.A)(se,4),B=G[0],Pe=G[1],dt=G[2],Lt=G[3],Pt=function(Fn){Jr(Fn)},$e=function(Fn){var Cn=dt.length,tr=Pe;tr===-1&&Fn<0&&(tr=Cn);for(var Jn=0;Jn<Cn;Jn+=1){tr=(tr+Fn+Cn)%Cn;var ei=dt[tr];if(ei&&!ei.disabled){var Ci=B.slice(0,-1).concat(Lt[tr]?zr(Lt[tr]):ei[ni.value]);Pt(Ci);return}}},ut=function(){if(B.length>1){var Fn=B.slice(0,-1);Pt(Fn)}else br(!1)},zt=function(){var Fn,Cn=((Fn=dt[Pe])===null||Fn===void 0?void 0:Fn[ni.children])||[],tr=Cn.find(function(ei){return!ei.disabled});if(tr){var Jn=[].concat((0,s.A)(B),[tr[ni.value]]);Pt(Jn)}};d.useImperativeHandle(Nn,function(){return{onKeyDown:function(Fn){var Cn=Fn.which;switch(Cn){case O.A.UP:case O.A.DOWN:{var tr=0;Cn===O.A.UP?tr=-1:Cn===O.A.DOWN&&(tr=1),tr!==0&&$e(tr);break}case O.A.LEFT:{if(Jo)break;Z?zt():ut();break}case O.A.RIGHT:{if(Jo)break;Z?ut():zt();break}case O.A.BACKSPACE:{Jo||ut();break}case O.A.ENTER:{if(B.length){var Jn=dt[Pe],ei=Jn?.[fn]||[];ei.length?Qi(ei.map(function(Ci){return Ci[ni.value]}),ei[ei.length-1]):Qi(B,dt[Pe])}break}case O.A.ESC:br(!1),Yn&&Fn.stopPropagation()}},onKeyUp:function(){}}})};var Zi=d.forwardRef(function(Nn,cr){var ni,Xr,Jr,Qi=Nn.prefixCls,Fo=Nn.multiple,No=Nn.searchValue,Jo=Nn.toggleOpen,br=Nn.notFoundContent,Yn=Nn.direction,Z=Nn.open,se=d.useRef(),G=Yn==="rtl",B=d.useContext(mt),Pe=B.options,dt=B.values,Lt=B.halfValues,Pt=B.fieldNames,$e=B.changeOnSelect,ut=B.onSelect,zt=B.searchOptions,Ht=B.dropdownPrefixCls,Fn=B.loadData,Cn=B.expandTrigger,tr=Ht||Qi,Jn=d.useState([]),ei=(0,m.A)(Jn,2),Ci=ei[0],zi=ei[1],co=function(Sr){if(!(!Fn||No)){var hr=di(Sr,Pe,Pt),kr=hr.map(function(wn){var Wt=wn.option;return Wt}),Ve=kr[kr.length-1];if(Ve&&!ki(Ve,Pt)){var Ot=zr(Sr);zi(function(wn){return[].concat((0,s.A)(wn),[Ot])}),Fn(kr)}}};d.useEffect(function(){Ci.length&&Ci.forEach(function(Qn){var Sr=$i(Qn),hr=di(Sr,Pe,Pt,!0).map(function(Ve){var Ot=Ve.option;return Ot}),kr=hr[hr.length-1];(!kr||kr[Pt.children]||ki(kr,Pt))&&zi(function(Ve){return Ve.filter(function(Ot){return Ot!==Qn})})})},[Pe,Ci,Pt]);var Xo=d.useMemo(function(){return new Set(gi(dt))},[dt]),Eo=d.useMemo(function(){return new Set(gi(Lt))},[Lt]),Yo=Lr(Fo,Z),Xn=(0,m.A)(Yo,2),fr=Xn[0],mr=Xn[1],yr=function(Sr){mr(Sr),co(Sr)},Rr=function(Sr){var hr=Sr.disabled,kr=ki(Sr,Pt);return!hr&&(kr||$e||Fo)},ai=function(Sr,hr){var kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ut(Sr),!Fo&&(hr||$e&&(Cn==="hover"||kr))&&Jo(!1)},jt=d.useMemo(function(){return No?zt:Pe},[No,zt,Pe]),Pn=d.useMemo(function(){for(var Qn=[{options:jt}],Sr=jt,hr=Ho(Sr,Pt),kr=function(){var wn=fr[Ve],Wt=Sr.find(function(zn,Nr){return(hr[Nr]?zr(hr[Nr]):zn[Pt.value])===wn}),Yt=Wt?.[Pt.children];if(!(Yt!=null&&Yt.length))return 1;Sr=Yt,Qn.push({options:Yt})},Ve=0;Ve<fr.length&&!kr();Ve+=1);return Qn},[jt,fr,Pt]),nr=function(Sr,hr){Rr(hr)&&ai(Sr,ki(hr,Pt),!0)};li(cr,jt,Pt,fr,yr,nr,{direction:Yn,searchValue:No,toggleOpen:Jo,open:Z}),d.useEffect(function(){for(var Qn=0;Qn<fr.length;Qn+=1){var Sr,hr=fr.slice(0,Qn+1),kr=zr(hr),Ve=(Sr=se.current)===null||Sr===void 0?void 0:Sr.querySelector('li[data-path-key="'.concat(kr.replace(/\\{0,2}"/g,'\\"'),'"]'));Ve&&so(Ve)}},[fr]);var Ir=!((ni=Pn[0])!==null&&ni!==void 0&&(ni=ni.options)!==null&&ni!==void 0&&ni.length),fi=[(Xr={},(0,f.A)(Xr,Pt.value,"__EMPTY__"),(0,f.A)(Xr,rn,br),(0,f.A)(Xr,"disabled",!0),Xr)],Ti=(0,l.A)((0,l.A)({},Nn),{},{multiple:!Ir&&Fo,onSelect:ai,onActive:yr,onToggleOpen:Jo,checkedSet:Xo,halfCheckedSet:Eo,loadingKeys:Ci,isSelectable:Rr}),Oe=Ir?[{options:fi}]:Pn,pn=Oe.map(function(Qn,Sr){var hr=fr.slice(0,Sr),kr=fr[Sr];return d.createElement(Dr,(0,i.A)({key:Sr},Ti,{searchValue:No,prefixCls:tr,options:Qn.options,prevValuePath:hr,activeValue:kr}))});return d.createElement(ro,{open:Z},d.createElement("div",{className:y()("".concat(tr,"-menus"),(Jr={},(0,f.A)(Jr,"".concat(tr,"-menu-empty"),Ir),(0,f.A)(Jr,"".concat(tr,"-rtl"),G),Jr)),ref:se},pn))});const Di=Zi;var wo=d.forwardRef(function(Nn,cr){var ni=A();return d.createElement(Di,(0,i.A)({},Nn,ni,{ref:cr}))});const Go=wo;var Ko=t(28295);function Ie(){}function yt(Nn){var cr,ni=Nn,Xr=ni.prefixCls,Jr=Xr===void 0?"rc-cascader":Xr,Qi=ni.style,Fo=ni.className,No=ni.options,Jo=ni.checkable,br=ni.defaultValue,Yn=ni.value,Z=ni.fieldNames,se=ni.changeOnSelect,G=ni.onChange,B=ni.showCheckedStrategy,Pe=ni.loadData,dt=ni.expandTrigger,Lt=ni.expandIcon,Pt=Lt===void 0?">":Lt,$e=ni.loadingIcon,ut=ni.direction,zt=ni.notFoundContent,Ht=zt===void 0?"Not Found":zt,Fn=!!Jo,Cn=(0,Ko.vz)(br,{value:Yn,postState:So}),tr=(0,m.A)(Cn,2),Jn=tr[0],ei=tr[1],Ci=d.useMemo(function(){return eo(Z)},[JSON.stringify(Z)]),zi=aa(Ci,No),co=(0,m.A)(zi,3),Xo=co[0],Eo=co[1],Yo=co[2],Xn=Ro(Xo,Ci),fr=ja(Fn,Jn,Eo,Yo,Xn),mr=(0,m.A)(fr,3),yr=mr[0],Rr=mr[1],ai=mr[2],jt=(0,Ko._q)(function(Oe){if(ei(Oe),G){var pn=So(Oe),Qn=pn.map(function(kr){return di(kr,Xo,Ci).map(function(Ve){return Ve.option})}),Sr=Fn?pn:pn[0],hr=Fn?Qn:Qn[0];G(Sr,hr)}}),Pn=$o(Fn,jt,yr,Rr,ai,Eo,Yo,B),nr=(0,Ko._q)(function(Oe){Pn(Oe)}),Ir=d.useMemo(function(){return{options:Xo,fieldNames:Ci,values:yr,halfValues:Rr,changeOnSelect:se,onSelect:nr,checkable:Jo,searchOptions:[],dropdownPrefixCls:null,loadData:Pe,expandTrigger:dt,expandIcon:Pt,loadingIcon:$e,dropdownMenuColumnStyle:null}},[Xo,Ci,yr,Rr,se,nr,Jo,Pe,dt,Pt,$e]),fi="".concat(Jr,"-panel"),Ti=!Xo.length;return d.createElement(mt.Provider,{value:Ir},d.createElement("div",{className:y()(fi,(cr={},(0,f.A)(cr,"".concat(fi,"-rtl"),ut==="rtl"),(0,f.A)(cr,"".concat(fi,"-empty"),Ti),cr),Fo),style:Qi},Ti?Ht:d.createElement(Di,{prefixCls:Jr,searchValue:null,multiple:Fn,toggleOpen:Ie,open:!0,direction:ut})))}function on(Nn){var cr=Nn.onPopupVisibleChange,ni=Nn.popupVisible,Xr=Nn.popupClassName,Jr=Nn.popupPlacement;warning(!cr,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(ni===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Xr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Jr===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function _n(Nn,cr){if(Nn){var ni=function Xr(Jr){for(var Qi=0;Qi<Jr.length;Qi++){var Fo=Jr[Qi];if(Fo[cr?.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Fo[cr?.children])&&Xr(Fo[cr?.children]))return!0}};ni(Nn)}}const er=null;var or=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"],Er=d.forwardRef(function(Nn,cr){var ni=Nn.id,Xr=Nn.prefixCls,Jr=Xr===void 0?"rc-cascader":Xr,Qi=Nn.fieldNames,Fo=Nn.defaultValue,No=Nn.value,Jo=Nn.changeOnSelect,br=Nn.onChange,Yn=Nn.displayRender,Z=Nn.checkable,se=Nn.autoClearSearchValue,G=se===void 0?!0:se,B=Nn.searchValue,Pe=Nn.onSearch,dt=Nn.showSearch,Lt=Nn.expandTrigger,Pt=Nn.options,$e=Nn.dropdownPrefixCls,ut=Nn.loadData,zt=Nn.popupVisible,Ht=Nn.open,Fn=Nn.popupClassName,Cn=Nn.dropdownClassName,tr=Nn.dropdownMenuColumnStyle,Jn=Nn.dropdownStyle,ei=Nn.popupPlacement,Ci=Nn.placement,zi=Nn.onDropdownVisibleChange,co=Nn.onPopupVisibleChange,Xo=Nn.expandIcon,Eo=Xo===void 0?">":Xo,Yo=Nn.loadingIcon,Xn=Nn.children,fr=Nn.dropdownMatchSelectWidth,mr=fr===void 0?!1:fr,yr=Nn.showCheckedStrategy,Rr=yr===void 0?$r:yr,ai=(0,u.A)(Nn,or),jt=ri(ni),Pn=!!Z,nr=(0,v.A)(Fo,{value:No,postState:So}),Ir=(0,m.A)(nr,2),fi=Ir[0],Ti=Ir[1],Oe=d.useMemo(function(){return eo(Qi)},[JSON.stringify(Qi)]),pn=aa(Oe,Pt),Qn=(0,m.A)(pn,3),Sr=Qn[0],hr=Qn[1],kr=Qn[2],Ve=(0,v.A)("",{value:B,postState:function(Bu){return Bu||""}}),Ot=(0,m.A)(Ve,2),wn=Ot[0],Wt=Ot[1],Yt=function(Bu,Mn){Wt(Bu),Mn.source!=="blur"&&Pe&&Pe(Bu)},zn=vi(dt),Nr=(0,m.A)(zn,2),si=Nr[0],Ki=Nr[1],Bi=Vn(wn,Sr,Oe,$e||Jr,Ki,Jo),Xi=Ro(Sr,Oe),vo=ja(Pn,fi,hr,kr,Xi),ea=(0,m.A)(vo,3),la=ea[0],ss=ea[1],Rs=ea[2],Ds=d.useMemo(function(){var Rl=gi(la),Bu=gr(Rl,hr,Rr);return[].concat((0,s.A)(Rs),(0,s.A)(kr(Bu)))},[la,hr,kr,Rs,Rr]),Is=Vi(Ds,Sr,Oe,Pn,Yn),nu=(0,oe.A)(function(Rl){if(Ti(Rl),br){var Bu=So(Rl),Mn=Bu.map(function(qt){return di(qt,Sr,Oe).map(function(In){return In.option})}),en=Pn?Bu:Bu[0],sn=Pn?Mn:Mn[0];br(en,sn)}}),Ls=$o(Pn,nu,la,ss,Rs,hr,kr,Rr),gu=(0,oe.A)(function(Rl){(!Pn||G)&&Wt(""),Ls(Rl)}),Us=function(Bu,Mn){if(Mn.type==="clear"){nu([]);return}var en=Mn.values[0],sn=en.valueCells;gu(sn)},Iu=Ht!==void 0?Ht:zt,Wu=Cn||Fn,rl=Ci||ei,Hu=function(Bu){zi?.(Bu),co?.(Bu)},Ts=d.useMemo(function(){return{options:Sr,fieldNames:Oe,values:la,halfValues:ss,changeOnSelect:Jo,onSelect:gu,checkable:Z,searchOptions:Bi,dropdownPrefixCls:$e,loadData:ut,expandTrigger:Lt,expandIcon:Eo,loadingIcon:Yo,dropdownMenuColumnStyle:tr}},[Sr,Oe,la,ss,Jo,gu,Z,Bi,$e,ut,Lt,Eo,Yo,tr]),Al=!(wn?Bi:Sr).length,fl=wn&&Ki.matchInputWidth||Al?{}:{minWidth:"auto"};return d.createElement(mt.Provider,{value:Ts},d.createElement(Wn,(0,i.A)({},ai,{ref:cr,id:jt,prefixCls:Jr,autoClearSearchValue:G,dropdownMatchSelectWidth:mr,dropdownStyle:(0,l.A)((0,l.A)({},fl),Jn),displayValues:Is,onDisplayValuesChange:Us,mode:Pn?"multiple":void 0,searchValue:wn,onSearch:Yt,showSearch:si,OptionList:Go,emptyOptions:Al,open:Iu,dropdownClassName:Wu,placement:rl,onDropdownVisibleChange:Hu,getRawInputElement:function(){return Xn}})))});Er.SHOW_PARENT=$r,Er.SHOW_CHILD=Pr,Er.Panel=yt;const Ui=Er},50848:(J,g,t)=>{"use strict";t.d(g,{A:()=>me});var i=t(89379),l=t(5544),s=t(76127),m=t(30981),u=t(96540),f=u.createContext(null),p=u.createContext({});const v=f;var h=t(64467),d=t(58168),b=t(46942),y=t.n(b),w=t(80979),S=t(16928),O=t(72065),R=t(28295),M=function(ve){var ce=ve.prefixCls,oe=ve.className,re=ve.style,H=ve.children,V=ve.containerRef,Q=ve.id,Te=ve.onMouseEnter,Re=ve.onMouseOver,ne=ve.onMouseLeave,pe=ve.onClick,ye=ve.onKeyDown,Se=ve.onKeyUp,Ae={onMouseEnter:Te,onMouseOver:Re,onMouseLeave:ne,onClick:pe,onKeyDown:ye,onKeyUp:Se},Ee=u.useContext(p),xe=Ee.panel,nt=(0,R.xK)(xe,V);return u.createElement(u.Fragment,null,u.createElement("div",(0,d.A)({id:Q,className:y()("".concat(ce,"-content"),oe),style:(0,i.A)({},re),"aria-modal":"true",role:"dialog",ref:nt},Ae),H))};const D=M;var P=t(68210);function T(fe){return typeof fe=="string"&&String(Number(fe))===fe?((0,P.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(fe)):fe}function A(fe){warning(!("wrapperClassName"in fe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!fe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var j={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ae(fe,ve){var ce,oe,re,H,V=fe.prefixCls,Q=fe.open,Te=fe.placement,Re=fe.inline,ne=fe.push,pe=fe.forceRender,ye=fe.autoFocus,Se=fe.keyboard,Ae=fe.classNames,Ee=fe.rootClassName,xe=fe.rootStyle,nt=fe.zIndex,Tt=fe.className,pt=fe.id,Rt=fe.style,tt=fe.motion,U=fe.width,F=fe.height,Y=fe.children,le=fe.contentWrapperStyle,ke=fe.mask,Ye=fe.maskClosable,ft=fe.maskMotion,wt=fe.maskClassName,Ut=fe.maskStyle,Ke=fe.afterOpenChange,it=fe.onClose,At=fe.onMouseEnter,et=fe.onMouseOver,ee=fe.onMouseLeave,I=fe.onClick,K=fe.onKeyDown,ue=fe.onKeyUp,De=fe.styles,He=u.useRef(),Fe=u.useRef(),ze=u.useRef();u.useImperativeHandle(ve,function(){return He.current});var qe=function($t){var On=$t.keyCode,Ct=$t.shiftKey;switch(On){case S.A.TAB:{if(On===S.A.TAB){if(!Ct&&document.activeElement===ze.current){var Zt;(Zt=Fe.current)===null||Zt===void 0||Zt.focus({preventScroll:!0})}else if(Ct&&document.activeElement===Fe.current){var Wn;(Wn=ze.current)===null||Wn===void 0||Wn.focus({preventScroll:!0})}}break}case S.A.ESC:{it&&Se&&($t.stopPropagation(),it($t));break}}};u.useEffect(function(){if(Q&&ye){var at;(at=He.current)===null||at===void 0||at.focus({preventScroll:!0})}},[Q]);var We=u.useState(!1),_t=(0,l.A)(We,2),ct=_t[0],Ge=_t[1],st=u.useContext(v),Me;ne===!1?Me={distance:0}:ne===!0?Me={}:Me=ne||{};var ie=(ce=(oe=(re=Me)===null||re===void 0?void 0:re.distance)!==null&&oe!==void 0?oe:st?.pushDistance)!==null&&ce!==void 0?ce:180,ge=u.useMemo(function(){return{pushDistance:ie,push:function(){Ge(!0)},pull:function(){Ge(!1)}}},[ie]);u.useEffect(function(){if(Q){var at;st==null||(at=st.push)===null||at===void 0||at.call(st)}else{var $t;st==null||($t=st.pull)===null||$t===void 0||$t.call(st)}},[Q]),u.useEffect(function(){return function(){var at;st==null||(at=st.pull)===null||at===void 0||at.call(st)}},[]);var z=ke&&u.createElement(w.A,(0,d.A)({key:"mask"},ft,{visible:Q}),function(at,$t){var On=at.className,Ct=at.style;return u.createElement("div",{className:y()("".concat(V,"-mask"),On,Ae?.mask,wt),style:(0,i.A)((0,i.A)((0,i.A)({},Ct),Ut),De?.mask),onClick:Ye&&Q?it:void 0,ref:$t})}),be=typeof tt=="function"?tt(Te):tt,Qe={};if(ct&&ie)switch(Te){case"top":Qe.transform="translateY(".concat(ie,"px)");break;case"bottom":Qe.transform="translateY(".concat(-ie,"px)");break;case"left":Qe.transform="translateX(".concat(ie,"px)");break;default:Qe.transform="translateX(".concat(-ie,"px)");break}Te==="left"||Te==="right"?Qe.width=T(U):Qe.height=T(F);var Bt={onMouseEnter:At,onMouseOver:et,onMouseLeave:ee,onClick:I,onKeyDown:K,onKeyUp:ue},nn=u.createElement(w.A,(0,d.A)({key:"panel"},be,{visible:Q,forceRender:pe,onVisibleChanged:function($t){Ke?.($t)},removeOnLeave:!1,leavedClassName:"".concat(V,"-content-wrapper-hidden")}),function(at,$t){var On=at.className,Ct=at.style;return u.createElement("div",(0,d.A)({className:y()("".concat(V,"-content-wrapper"),Ae?.wrapper,On),style:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},Qe),Ct),le),De?.wrapper)},(0,O.A)(fe,{data:!0})),u.createElement(D,(0,d.A)({id:pt,containerRef:$t,prefixCls:V,className:y()(Tt,Ae?.content),style:(0,i.A)((0,i.A)({},Rt),De?.content)},Bt),Y))}),bt=(0,i.A)({},xe);return nt&&(bt.zIndex=nt),u.createElement(v.Provider,{value:ge},u.createElement("div",{className:y()(V,"".concat(V,"-").concat(Te),Ee,(H={},(0,h.A)(H,"".concat(V,"-open"),Q),(0,h.A)(H,"".concat(V,"-inline"),Re),H)),style:bt,tabIndex:-1,ref:He,onKeyDown:qe},z,u.createElement("div",{tabIndex:0,ref:Fe,style:j,"aria-hidden":"true","data-sentinel":"start"}),nn,u.createElement("div",{tabIndex:0,ref:ze,style:j,"aria-hidden":"true","data-sentinel":"end"})))}var _=u.forwardRef(ae);const N=_;var W=function(ve){var ce=ve.open,oe=ce===void 0?!1:ce,re=ve.prefixCls,H=re===void 0?"rc-drawer":re,V=ve.placement,Q=V===void 0?"right":V,Te=ve.autoFocus,Re=Te===void 0?!0:Te,ne=ve.keyboard,pe=ne===void 0?!0:ne,ye=ve.width,Se=ye===void 0?378:ye,Ae=ve.mask,Ee=Ae===void 0?!0:Ae,xe=ve.maskClosable,nt=xe===void 0?!0:xe,Tt=ve.getContainer,pt=ve.forceRender,Rt=ve.afterOpenChange,tt=ve.destroyOnClose,U=ve.onMouseEnter,F=ve.onMouseOver,Y=ve.onMouseLeave,le=ve.onClick,ke=ve.onKeyDown,Ye=ve.onKeyUp,ft=ve.panelRef,wt=u.useState(!1),Ut=(0,l.A)(wt,2),Ke=Ut[0],it=Ut[1],At=u.useState(!1),et=(0,l.A)(At,2),ee=et[0],I=et[1];(0,m.A)(function(){I(!0)},[]);var K=ee?oe:!1,ue=u.useRef(),De=u.useRef();(0,m.A)(function(){K&&(De.current=document.activeElement)},[K]);var He=function(_t){var ct;if(it(_t),Rt?.(_t),!_t&&De.current&&!((ct=ue.current)!==null&&ct!==void 0&&ct.contains(De.current))){var Ge;(Ge=De.current)===null||Ge===void 0||Ge.focus({preventScroll:!0})}},Fe=u.useMemo(function(){return{panel:ft}},[ft]);if(!pt&&!Ke&&!K&&tt)return null;var ze={onMouseEnter:U,onMouseOver:F,onMouseLeave:Y,onClick:le,onKeyDown:ke,onKeyUp:Ye},qe=(0,i.A)((0,i.A)({},ve),{},{open:K,prefixCls:H,placement:Q,autoFocus:Re,keyboard:pe,width:Se,mask:Ee,maskClosable:nt,inline:Tt===!1,afterOpenChange:He,ref:ue},ze);return u.createElement(p.Provider,{value:Fe},u.createElement(s.A,{open:K||pt||Ke,autoDestroy:!1,getContainer:Tt,autoLock:Ee&&(K||Ke)},u.createElement(N,qe)))};const me=W},80979:(J,g,t)=>{"use strict";t.d(g,{A:()=>ue});var i=t(64467),l=t(89379),s=t(5544),m=t(82284),u=t(96540),f=t(66588),p=t(8719),v=t(46942),h=t.n(v),d=t(20998);function b(De,He){var Fe={};return Fe[De.toLowerCase()]=He.toLowerCase(),Fe["Webkit".concat(De)]="webkit".concat(He),Fe["Moz".concat(De)]="moz".concat(He),Fe["ms".concat(De)]="MS".concat(He),Fe["O".concat(De)]="o".concat(He.toLowerCase()),Fe}function y(De,He){var Fe={animationend:b("Animation","AnimationEnd"),transitionend:b("Transition","TransitionEnd")};return De&&("AnimationEvent"in He||delete Fe.animationend.animation,"TransitionEvent"in He||delete Fe.transitionend.transition),Fe}var w=y((0,d.A)(),typeof window<"u"?window:{}),S={};if((0,d.A)()){var O=document.createElement("div");S=O.style}var R={};function M(De){if(R[De])return R[De];var He=w[De];if(He)for(var Fe=Object.keys(He),ze=Fe.length,qe=0;qe<ze;qe+=1){var We=Fe[qe];if(Object.prototype.hasOwnProperty.call(He,We)&&We in S)return R[De]=He[We],R[De]}return""}var D=M("animationend"),P=M("transitionend"),T=!!(D&&P),A=D||"animationend",j=P||"transitionend";function ae(De,He){if(!De)return null;if((0,m.A)(De)==="object"){var Fe=He.replace(/-\w/g,function(ze){return ze[1].toUpperCase()});return De[Fe]}return"".concat(De,"-").concat(He)}var _="none",N="appear",W="enter",he="leave",me="none",fe="prepare",ve="start",ce="active",oe="end",re=t(1233),H=t(25371);const V=function(){var De=u.useRef(null);function He(){H.A.cancel(De.current)}function Fe(ze){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;He();var We=(0,H.A)(function(){qe<=1?ze({isCanceled:function(){return We!==De.current}}):Fe(ze,qe-1)});De.current=We}return u.useEffect(function(){return function(){He()}},[]),[Fe,He]};var Q=(0,d.A)()?u.useLayoutEffect:u.useEffect;const Te=Q;var Re=[fe,ve,ce,oe],ne=!1,pe=!0;function ye(De){return De===ce||De===oe}const Se=function(De,He){var Fe=(0,re.A)(me),ze=(0,s.A)(Fe,2),qe=ze[0],We=ze[1],_t=V(),ct=(0,s.A)(_t,2),Ge=ct[0],st=ct[1];function Me(){We(fe,!0)}return Te(function(){if(qe!==me&&qe!==oe){var ie=Re.indexOf(qe),ge=Re[ie+1],z=He(qe);z===ne?We(ge,!0):Ge(function(be){function Qe(){be.isCanceled()||We(ge,!0)}z===!0?Qe():Promise.resolve(z).then(Qe)})}},[De,qe]),u.useEffect(function(){return function(){st()}},[]),[Me,qe]},Ae=function(De){var He=(0,u.useRef)(),Fe=(0,u.useRef)(De);Fe.current=De;var ze=u.useCallback(function(_t){Fe.current(_t)},[]);function qe(_t){_t&&(_t.removeEventListener(j,ze),_t.removeEventListener(A,ze))}function We(_t){He.current&&He.current!==_t&&qe(He.current),_t&&_t!==He.current&&(_t.addEventListener(j,ze),_t.addEventListener(A,ze),He.current=_t)}return u.useEffect(function(){return function(){qe(He.current)}},[]),[We,qe]};function Ee(De,He,Fe,ze){var qe=ze.motionEnter,We=qe===void 0?!0:qe,_t=ze.motionAppear,ct=_t===void 0?!0:_t,Ge=ze.motionLeave,st=Ge===void 0?!0:Ge,Me=ze.motionDeadline,ie=ze.motionLeaveImmediately,ge=ze.onAppearPrepare,z=ze.onEnterPrepare,be=ze.onLeavePrepare,Qe=ze.onAppearStart,Bt=ze.onEnterStart,nn=ze.onLeaveStart,bt=ze.onAppearActive,at=ze.onEnterActive,$t=ze.onLeaveActive,On=ze.onAppearEnd,Ct=ze.onEnterEnd,Zt=ze.onLeaveEnd,Wn=ze.onVisibleChanged,Zn=(0,re.A)(),xt=(0,s.A)(Zn,2),Xe=xt[0],gn=xt[1],Qt=(0,re.A)(_),Dt=(0,s.A)(Qt,2),hn=Dt[0],cn=Dt[1],an=(0,re.A)(null),Or=(0,s.A)(an,2),Ln=Or[0],En=Or[1],Gn=(0,u.useRef)(!1),rr=(0,u.useRef)(null);function sr(){return Fe()}var pi=(0,u.useRef)(!1);function yi(lo){var Gr=sr();if(!(lo&&!lo.deadline&&lo.target!==Gr)){var un=pi.current,qn;hn===N&&un?qn=On?.(Gr,lo):hn===W&&un?qn=Ct?.(Gr,lo):hn===he&&un&&(qn=Zt?.(Gr,lo)),hn!==_&&un&&qn!==!1&&(cn(_,!0),En(null,!0))}}var jr=Ae(yi),ui=(0,s.A)(jr,1),bi=ui[0],ri=u.useMemo(function(){var lo,Gr,un;switch(hn){case N:return lo={},(0,i.A)(lo,fe,ge),(0,i.A)(lo,ve,Qe),(0,i.A)(lo,ce,bt),lo;case W:return Gr={},(0,i.A)(Gr,fe,z),(0,i.A)(Gr,ve,Bt),(0,i.A)(Gr,ce,at),Gr;case he:return un={},(0,i.A)(un,fe,be),(0,i.A)(un,ve,nn),(0,i.A)(un,ce,$t),un;default:return{}}},[hn]),hi=Se(hn,function(lo){if(lo===fe){var Gr=ri[fe];return Gr?Gr(sr()):ne}if(xi in ri){var un;En(((un=ri[xi])===null||un===void 0?void 0:un.call(ri,sr(),null))||null)}return xi===ce&&(bi(sr()),Me>0&&(clearTimeout(rr.current),rr.current=setTimeout(function(){yi({deadline:!0})},Me))),pe}),Si=(0,s.A)(hi,2),Kr=Si[0],xi=Si[1],Ai=ye(xi);pi.current=Ai,Te(function(){gn(He);var lo=Gn.current;if(Gn.current=!0,!!De){var Gr;!lo&&He&&ct&&(Gr=N),lo&&He&&We&&(Gr=W),(lo&&!He&&st||!lo&&ie&&!He&&st)&&(Gr=he),Gr&&(cn(Gr),Kr())}},[He]),(0,u.useEffect)(function(){(hn===N&&!ct||hn===W&&!We||hn===he&&!st)&&cn(_)},[ct,We,st]),(0,u.useEffect)(function(){return function(){Gn.current=!1,clearTimeout(rr.current)}},[]);var Pi=u.useRef(!1);(0,u.useEffect)(function(){Xe&&(Pi.current=!0),Xe!==void 0&&hn===_&&((Pi.current||Xe)&&Wn?.(Xe),Pi.current=!0)},[Xe,hn]);var io=Ln;return ri[fe]&&xi===ve&&(io=(0,l.A)({transition:"none"},io)),[hn,xi,io,Xe??He]}var xe=t(23029),nt=t(92901),Tt=t(85501),pt=t(88293),Rt=function(De){(0,Tt.A)(Fe,De);var He=(0,pt.A)(Fe);function Fe(){return(0,xe.A)(this,Fe),He.apply(this,arguments)}return(0,nt.A)(Fe,[{key:"render",value:function(){return this.props.children}}]),Fe}(u.Component);const tt=Rt;function U(De){var He=De;(0,m.A)(De)==="object"&&(He=De.transitionSupport);function Fe(qe){return!!(qe.motionName&&He)}var ze=u.forwardRef(function(qe,We){var _t=qe.visible,ct=_t===void 0?!0:_t,Ge=qe.removeOnLeave,st=Ge===void 0?!0:Ge,Me=qe.forceRender,ie=qe.children,ge=qe.motionName,z=qe.leavedClassName,be=qe.eventProps,Qe=Fe(qe),Bt=(0,u.useRef)(),nn=(0,u.useRef)();function bt(){try{return Bt.current instanceof HTMLElement?Bt.current:(0,f.A)(nn.current)}catch{return null}}var at=Ee(Qe,ct,bt,qe),$t=(0,s.A)(at,4),On=$t[0],Ct=$t[1],Zt=$t[2],Wn=$t[3],Zn=u.useRef(Wn);Wn&&(Zn.current=!0);var xt=u.useCallback(function(an){Bt.current=an,(0,p.Xf)(We,an)},[We]),Xe,gn=(0,l.A)((0,l.A)({},be),{},{visible:ct});if(!ie)Xe=null;else if(On===_||!Fe(qe))Wn?Xe=ie((0,l.A)({},gn),xt):!st&&Zn.current?Xe=ie((0,l.A)((0,l.A)({},gn),{},{className:z}),xt):Me?Xe=ie((0,l.A)((0,l.A)({},gn),{},{style:{display:"none"}}),xt):Xe=null;else{var Qt,Dt;Ct===fe?Dt="prepare":ye(Ct)?Dt="active":Ct===ve&&(Dt="start"),Xe=ie((0,l.A)((0,l.A)({},gn),{},{className:h()(ae(ge,On),(Qt={},(0,i.A)(Qt,ae(ge,"".concat(On,"-").concat(Dt)),Dt),(0,i.A)(Qt,ge,typeof ge=="string"),Qt)),style:Zt}),xt)}if(u.isValidElement(Xe)&&(0,p.f3)(Xe)){var hn=Xe,cn=hn.ref;cn||(Xe=u.cloneElement(Xe,{ref:xt}))}return u.createElement(tt,{ref:nn},Xe)});return ze.displayName="CSSMotion",ze}const F=U(T);var Y=t(58168),le=t(80045),ke="add",Ye="keep",ft="remove",wt="removed";function Ut(De){var He;return De&&(0,m.A)(De)==="object"&&"key"in De?He=De:He={key:De},(0,l.A)((0,l.A)({},He),{},{key:String(He.key)})}function Ke(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return De.map(Ut)}function it(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fe=[],ze=0,qe=He.length,We=Ke(De),_t=Ke(He);We.forEach(function(st){for(var Me=!1,ie=ze;ie<qe;ie+=1){var ge=_t[ie];if(ge.key===st.key){ze<ie&&(Fe=Fe.concat(_t.slice(ze,ie).map(function(z){return(0,l.A)((0,l.A)({},z),{},{status:ke})})),ze=ie),Fe.push((0,l.A)((0,l.A)({},ge),{},{status:Ye})),ze+=1,Me=!0;break}}Me||Fe.push((0,l.A)((0,l.A)({},st),{},{status:ft}))}),ze<qe&&(Fe=Fe.concat(_t.slice(ze).map(function(st){return(0,l.A)((0,l.A)({},st),{},{status:ke})})));var ct={};Fe.forEach(function(st){var Me=st.key;ct[Me]=(ct[Me]||0)+1});var Ge=Object.keys(ct).filter(function(st){return ct[st]>1});return Ge.forEach(function(st){Fe=Fe.filter(function(Me){var ie=Me.key,ge=Me.status;return ie!==st||ge!==ft}),Fe.forEach(function(Me){Me.key===st&&(Me.status=Ye)})}),Fe}var At=["component","children","onVisibleChanged","onAllRemoved"],et=["status"],ee=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function I(De){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F,Fe=function(ze){(0,Tt.A)(We,ze);var qe=(0,pt.A)(We);function We(){var _t;(0,xe.A)(this,We);for(var ct=arguments.length,Ge=new Array(ct),st=0;st<ct;st++)Ge[st]=arguments[st];return _t=qe.call.apply(qe,[this].concat(Ge)),_t.state={keyEntities:[]},_t.removeKey=function(Me){var ie=_t.state.keyEntities,ge=ie.map(function(z){return z.key!==Me?z:(0,l.A)((0,l.A)({},z),{},{status:wt})});return _t.setState({keyEntities:ge}),ge.filter(function(z){var be=z.status;return be!==wt}).length},_t}return(0,nt.A)(We,[{key:"render",value:function(){var ct=this,Ge=this.state.keyEntities,st=this.props,Me=st.component,ie=st.children,ge=st.onVisibleChanged,z=st.onAllRemoved,be=(0,le.A)(st,At),Qe=Me||u.Fragment,Bt={};return ee.forEach(function(nn){Bt[nn]=be[nn],delete be[nn]}),delete be.keys,u.createElement(Qe,be,Ge.map(function(nn){var bt=nn.status,at=(0,le.A)(nn,et),$t=bt===ke||bt===Ye;return u.createElement(He,(0,Y.A)({},Bt,{key:at.key,visible:$t,eventProps:at,onVisibleChanged:function(Ct){if(ge?.(Ct,{key:at.key}),!Ct){var Zt=ct.removeKey(at.key);Zt===0&&z&&z()}}}),ie)}))}}],[{key:"getDerivedStateFromProps",value:function(ct,Ge){var st=ct.keys,Me=Ge.keyEntities,ie=Ke(st),ge=it(Me,ie);return{keyEntities:ge.filter(function(z){var be=Me.find(function(Qe){var Bt=Qe.key;return z.key===Bt});return!(be&&be.status===wt&&z.status===ft)})}}}]),We}(u.Component);return Fe.defaultProps={component:"div"},Fe}const K=I(T),ue=F},26076:(J,g,t)=>{"use strict";t.d(g,{A:()=>fe});var i=t(58168),l=t(96540),s=t(82546),m=t(68210),u=t(89379),f=t(8719),p=t(66588),v=t(43591),h=new Map;function d(ve){ve.forEach(function(ce){var oe,re=ce.target;(oe=h.get(re))===null||oe===void 0||oe.forEach(function(H){return H(re)})})}var b=new v.default(d),y=null,w=null;function S(ve,ce){h.has(ve)||(h.set(ve,new Set),b.observe(ve)),h.get(ve).add(ce)}function O(ve,ce){h.has(ve)&&(h.get(ve).delete(ce),h.get(ve).size||(b.unobserve(ve),h.delete(ve)))}var R=t(23029),M=t(92901),D=t(85501),P=t(88293),T=function(ve){(0,D.A)(oe,ve);var ce=(0,P.A)(oe);function oe(){return(0,R.A)(this,oe),ce.apply(this,arguments)}return(0,M.A)(oe,[{key:"render",value:function(){return this.props.children}}]),oe}(l.Component),A=l.createContext(null);function j(ve){var ce=ve.children,oe=ve.onBatchResize,re=l.useRef(0),H=l.useRef([]),V=l.useContext(A),Q=l.useCallback(function(Te,Re,ne){re.current+=1;var pe=re.current;H.current.push({size:Te,element:Re,data:ne}),Promise.resolve().then(function(){pe===re.current&&(oe?.(H.current),H.current=[])}),V?.(Te,Re,ne)},[oe,V]);return l.createElement(A.Provider,{value:Q},ce)}function ae(ve,ce){var oe=ve.children,re=ve.disabled,H=l.useRef(null),V=l.useRef(null),Q=l.useContext(A),Te=typeof oe=="function",Re=Te?oe(H):oe,ne=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),pe=!Te&&l.isValidElement(Re)&&(0,f.f3)(Re),ye=pe?Re.ref:null,Se=l.useMemo(function(){return(0,f.K4)(ye,H)},[ye,H]),Ae=function(){return(0,p.A)(H.current)||(0,p.A)(V.current)};l.useImperativeHandle(ce,function(){return Ae()});var Ee=l.useRef(ve);Ee.current=ve;var xe=l.useCallback(function(nt){var Tt=Ee.current,pt=Tt.onResize,Rt=Tt.data,tt=nt.getBoundingClientRect(),U=tt.width,F=tt.height,Y=nt.offsetWidth,le=nt.offsetHeight,ke=Math.floor(U),Ye=Math.floor(F);if(ne.current.width!==ke||ne.current.height!==Ye||ne.current.offsetWidth!==Y||ne.current.offsetHeight!==le){var ft={width:ke,height:Ye,offsetWidth:Y,offsetHeight:le};ne.current=ft;var wt=Y===Math.round(U)?U:Y,Ut=le===Math.round(F)?F:le,Ke=(0,u.A)((0,u.A)({},ft),{},{offsetWidth:wt,offsetHeight:Ut});Q?.(Ke,nt,Rt),pt&&Promise.resolve().then(function(){pt(Ke,nt)})}},[]);return l.useEffect(function(){var nt=Ae();return nt&&!re&&S(nt,xe),function(){return O(nt,xe)}},[H.current,re]),l.createElement(T,{ref:V},pe?l.cloneElement(Re,{ref:Se}):Re)}var _=l.forwardRef(ae);const N=_;var W="rc-observer-key";function he(ve,ce){var oe=ve.children,re=typeof oe=="function"?[oe]:(0,s.A)(oe);return re.map(function(H,V){var Q=H?.key||"".concat(W,"-").concat(V);return l.createElement(N,(0,i.A)({},ve,{key:Q,ref:V===0?ce:void 0}),H)})}var me=l.forwardRef(he);me.Collection=j;const fe=me},9821:(J,g,t)=>{"use strict";t.d(g,{A:()=>Re});var i=t(89379),l=t(64467),s=t(60436),m=t(5544),u=t(82284),f=t(46942),p=t.n(f),v=t(12533),h=t(68210);function d(ne,pe){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Se=new Set;function Ae(Ee,xe){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Tt=Se.has(Ee);if((0,h.Ay)(!Tt,"Warning: There may be circular references"),Tt)return!1;if(Ee===xe)return!0;if(ye&&nt>1)return!1;Se.add(Ee);var pt=nt+1;if(Array.isArray(Ee)){if(!Array.isArray(xe)||Ee.length!==xe.length)return!1;for(var Rt=0;Rt<Ee.length;Rt++)if(!Ae(Ee[Rt],xe[Rt],pt))return!1;return!0}if(Ee&&xe&&(0,u.A)(Ee)==="object"&&(0,u.A)(xe)==="object"){var tt=Object.keys(Ee);return tt.length!==Object.keys(xe).length?!1:tt.every(function(U){return Ae(Ee[U],xe[U],pt)})}return!1}return Ae(ne,pe)}const b=d;var y=t(96540),w=y.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});const S=w;var O=t(58168),R=t(80045),M=t(16928);function D(ne,pe,ye){return(ne-pe)/(ye-pe)}function P(ne,pe,ye,Se){var Ae=D(pe,ye,Se),Ee={};switch(ne){case"rtl":Ee.right="".concat(Ae*100,"%"),Ee.transform="translateX(50%)";break;case"btt":Ee.bottom="".concat(Ae*100,"%"),Ee.transform="translateY(50%)";break;case"ttb":Ee.top="".concat(Ae*100,"%"),Ee.transform="translateY(-50%)";break;default:Ee.left="".concat(Ae*100,"%"),Ee.transform="translateX(-50%)";break}return Ee}function T(ne,pe){return Array.isArray(ne)?ne[pe]:ne}var A=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],j=y.forwardRef(function(ne,pe){var ye,Se,Ae=ne.prefixCls,Ee=ne.value,xe=ne.valueIndex,nt=ne.onStartMove,Tt=ne.style,pt=ne.render,Rt=ne.dragging,tt=ne.onOffsetChange,U=ne.onChangeComplete,F=(0,R.A)(ne,A),Y=y.useContext(S),le=Y.min,ke=Y.max,Ye=Y.direction,ft=Y.disabled,wt=Y.keyboard,Ut=Y.range,Ke=Y.tabIndex,it=Y.ariaLabelForHandle,At=Y.ariaLabelledByForHandle,et=Y.ariaValueTextFormatterForHandle,ee=Y.styles,I=Y.classNames,K="".concat(Ae,"-handle"),ue=function(We){ft||nt(We,xe)},De=function(We){if(!ft&&wt){var _t=null;switch(We.which||We.keyCode){case M.A.LEFT:_t=Ye==="ltr"||Ye==="btt"?-1:1;break;case M.A.RIGHT:_t=Ye==="ltr"||Ye==="btt"?1:-1;break;case M.A.UP:_t=Ye!=="ttb"?1:-1;break;case M.A.DOWN:_t=Ye!=="ttb"?-1:1;break;case M.A.HOME:_t="min";break;case M.A.END:_t="max";break;case M.A.PAGE_UP:_t=2;break;case M.A.PAGE_DOWN:_t=-2;break}_t!==null&&(We.preventDefault(),tt(_t,xe))}},He=function(We){switch(We.which||We.keyCode){case M.A.LEFT:case M.A.RIGHT:case M.A.UP:case M.A.DOWN:case M.A.HOME:case M.A.END:case M.A.PAGE_UP:case M.A.PAGE_DOWN:U?.();break}},Fe=P(Ye,Ee,le,ke),ze=y.createElement("div",(0,O.A)({ref:pe,className:p()(K,(ye={},(0,l.A)(ye,"".concat(K,"-").concat(xe+1),Ut),(0,l.A)(ye,"".concat(K,"-dragging"),Rt),ye),I.handle),style:(0,i.A)((0,i.A)((0,i.A)({},Fe),Tt),ee.handle),onMouseDown:ue,onTouchStart:ue,onKeyDown:De,onKeyUp:He,tabIndex:ft?null:T(Ke,xe),role:"slider","aria-valuemin":le,"aria-valuemax":ke,"aria-valuenow":Ee,"aria-disabled":ft,"aria-label":T(it,xe),"aria-labelledby":T(At,xe),"aria-valuetext":(Se=T(et,xe))===null||Se===void 0?void 0:Se(Ee),"aria-orientation":Ye==="ltr"||Ye==="rtl"?"horizontal":"vertical"},F));return pt&&(ze=pt(ze,{index:xe,prefixCls:Ae,value:Ee,dragging:Rt})),ze});const ae=j;var _=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],N=y.forwardRef(function(ne,pe){var ye=ne.prefixCls,Se=ne.style,Ae=ne.onStartMove,Ee=ne.onOffsetChange,xe=ne.values,nt=ne.handleRender,Tt=ne.draggingIndex,pt=(0,R.A)(ne,_),Rt=y.useRef({});return y.useImperativeHandle(pe,function(){return{focus:function(U){var F;(F=Rt.current[U])===null||F===void 0||F.focus()}}}),y.createElement(y.Fragment,null,xe.map(function(tt,U){return y.createElement(ae,(0,O.A)({ref:function(Y){Y?Rt.current[U]=Y:delete Rt.current[U]},dragging:Tt===U,prefixCls:ye,style:T(Se,U),key:U,value:tt,valueIndex:U,onStartMove:Ae,onOffsetChange:Ee,render:nt},pt))}))});const W=N;function he(ne){var pe="touches"in ne?ne.touches[0]:ne;return{pageX:pe.pageX,pageY:pe.pageY}}function me(ne,pe,ye,Se,Ae,Ee,xe,nt,Tt){var pt=y.useState(null),Rt=(0,m.A)(pt,2),tt=Rt[0],U=Rt[1],F=y.useState(-1),Y=(0,m.A)(F,2),le=Y[0],ke=Y[1],Ye=y.useState(ye),ft=(0,m.A)(Ye,2),wt=ft[0],Ut=ft[1],Ke=y.useState(ye),it=(0,m.A)(Ke,2),At=it[0],et=it[1],ee=y.useRef(null),I=y.useRef(null);y.useEffect(function(){le===-1&&Ut(ye)},[ye,le]),y.useEffect(function(){return function(){document.removeEventListener("mousemove",ee.current),document.removeEventListener("mouseup",I.current),document.removeEventListener("touchmove",ee.current),document.removeEventListener("touchend",I.current)}},[]);var K=function(qe,We){wt.some(function(_t,ct){return _t!==qe[ct]})&&(We!==void 0&&U(We),Ut(qe),xe(qe))},ue=function(qe,We){if(qe===-1){var _t=At[0],ct=At[At.length-1],Ge=Se-_t,st=Ae-ct,Me=We*(Ae-Se);Me=Math.max(Me,Ge),Me=Math.min(Me,st);var ie=Ee(_t+Me);Me=ie-_t;var ge=At.map(function(Bt){return Bt+Me});K(ge)}else{var z=(Ae-Se)*We,be=(0,s.A)(wt);be[qe]=At[qe];var Qe=Tt(be,z,qe,"dist");K(Qe.values,Qe.value)}},De=y.useRef(ue);De.current=ue;var He=function(qe,We,_t){qe.stopPropagation();var ct=_t||ye,Ge=ct[We];ke(We),U(Ge),et(ct);var st=he(qe),Me=st.pageX,ie=st.pageY,ge=function(Qe){Qe.preventDefault();var Bt=he(Qe),nn=Bt.pageX,bt=Bt.pageY,at=nn-Me,$t=bt-ie,On=ne.current.getBoundingClientRect(),Ct=On.width,Zt=On.height,Wn;switch(pe){case"btt":Wn=-$t/Zt;break;case"ttb":Wn=$t/Zt;break;case"rtl":Wn=-at/Ct;break;default:Wn=at/Ct}De.current(We,Wn)},z=function be(Qe){Qe.preventDefault(),document.removeEventListener("mouseup",be),document.removeEventListener("mousemove",ge),document.removeEventListener("touchend",be),document.removeEventListener("touchmove",ge),ee.current=null,I.current=null,ke(-1),nt()};document.addEventListener("mouseup",z),document.addEventListener("mousemove",ge),document.addEventListener("touchend",z),document.addEventListener("touchmove",ge),ee.current=ge,I.current=z},Fe=y.useMemo(function(){var ze=(0,s.A)(ye).sort(function(We,_t){return We-_t}),qe=(0,s.A)(wt).sort(function(We,_t){return We-_t});return ze.every(function(We,_t){return We===qe[_t]})?wt:ye},[ye,wt]);return[le,tt,Fe,He]}function fe(ne,pe,ye,Se,Ae,Ee){var xe=y.useCallback(function(F){var Y=isFinite(F)?F:ne;return Y=Math.min(pe,F),Y=Math.max(ne,Y),Y},[ne,pe]),nt=y.useCallback(function(F){if(ye!==null){var Y=ne+Math.round((xe(F)-ne)/ye)*ye,le=function(wt){return(String(wt).split(".")[1]||"").length},ke=Math.max(le(ye),le(pe),le(ne)),Ye=Number(Y.toFixed(ke));return ne<=Ye&&Ye<=pe?Ye:null}return null},[ye,ne,pe,xe]),Tt=y.useCallback(function(F){var Y=xe(F),le=Se.map(function(ft){return ft.value});ye!==null&&le.push(nt(F)),le.push(ne,pe);var ke=le[0],Ye=pe-ne;return le.forEach(function(ft){var wt=Math.abs(Y-ft);wt<=Ye&&(ke=ft,Ye=wt)}),ke},[ne,pe,Se,ye,xe,nt]),pt=function F(Y,le,ke){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof le=="number"){var ft,wt=Y[ke],Ut=wt+le,Ke=[];Se.forEach(function(I){Ke.push(I.value)}),Ke.push(ne,pe),Ke.push(nt(wt));var it=le>0?1:-1;Ye==="unit"?Ke.push(nt(wt+it*ye)):Ke.push(nt(Ut)),Ke=Ke.filter(function(I){return I!==null}).filter(function(I){return le<0?I<=wt:I>=wt}),Ye==="unit"&&(Ke=Ke.filter(function(I){return I!==wt}));var At=Ye==="unit"?wt:Ut;ft=Ke[0];var et=Math.abs(ft-At);if(Ke.forEach(function(I){var K=Math.abs(I-At);K<et&&(ft=I,et=K)}),ft===void 0)return le<0?ne:pe;if(Ye==="dist")return ft;if(Math.abs(le)>1){var ee=(0,s.A)(Y);return ee[ke]=ft,F(ee,le-it,ke,Ye)}return ft}else{if(le==="min")return ne;if(le==="max")return pe}},Rt=function(Y,le,ke){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",ft=Y[ke],wt=pt(Y,le,ke,Ye);return{value:wt,changed:wt!==ft}},tt=function(Y){return Ee===null&&Y===0||typeof Ee=="number"&&Y<Ee},U=function(Y,le,ke){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",ft=Y.map(Tt),wt=ft[ke],Ut=pt(ft,le,ke,Ye);if(ft[ke]=Ut,Ae===!1){var Ke=Ee||0;ke>0&&ft[ke-1]!==wt&&(ft[ke]=Math.max(ft[ke],ft[ke-1]+Ke)),ke<ft.length-1&&ft[ke+1]!==wt&&(ft[ke]=Math.min(ft[ke],ft[ke+1]-Ke))}else if(typeof Ee=="number"||Ee===null){for(var it=ke+1;it<ft.length;it+=1)for(var At=!0;tt(ft[it]-ft[it-1])&&At;){var et=Rt(ft,1,it);ft[it]=et.value,At=et.changed}for(var ee=ke;ee>0;ee-=1)for(var I=!0;tt(ft[ee]-ft[ee-1])&&I;){var K=Rt(ft,-1,ee-1);ft[ee-1]=K.value,I=K.changed}for(var ue=ft.length-1;ue>0;ue-=1)for(var De=!0;tt(ft[ue]-ft[ue-1])&&De;){var He=Rt(ft,-1,ue-1);ft[ue-1]=He.value,De=He.changed}for(var Fe=0;Fe<ft.length-1;Fe+=1)for(var ze=!0;tt(ft[Fe+1]-ft[Fe])&&ze;){var qe=Rt(ft,1,Fe+1);ft[Fe+1]=qe.value,ze=qe.changed}}return{value:ft[ke],values:ft}};return[Tt,U]}function ve(ne){var pe=ne.prefixCls,ye=ne.style,Se=ne.children,Ae=ne.value,Ee=ne.onClick,xe=y.useContext(S),nt=xe.min,Tt=xe.max,pt=xe.direction,Rt=xe.includedStart,tt=xe.includedEnd,U=xe.included,F="".concat(pe,"-text"),Y=P(pt,Ae,nt,Tt);return y.createElement("span",{className:p()(F,(0,l.A)({},"".concat(F,"-active"),U&&Rt<=Ae&&Ae<=tt)),style:(0,i.A)((0,i.A)({},Y),ye),onMouseDown:function(ke){ke.stopPropagation()},onClick:function(){Ee(Ae)}},Se)}function ce(ne){var pe=ne.prefixCls,ye=ne.marks,Se=ne.onClick,Ae="".concat(pe,"-mark");return ye.length?y.createElement("div",{className:Ae},ye.map(function(Ee){var xe=Ee.value,nt=Ee.style,Tt=Ee.label;return y.createElement(ve,{key:xe,prefixCls:Ae,style:nt,value:xe,onClick:Se},Tt)})):null}function oe(ne){var pe=ne.prefixCls,ye=ne.value,Se=ne.style,Ae=ne.activeStyle,Ee=y.useContext(S),xe=Ee.min,nt=Ee.max,Tt=Ee.direction,pt=Ee.included,Rt=Ee.includedStart,tt=Ee.includedEnd,U="".concat(pe,"-dot"),F=pt&&Rt<=ye&&ye<=tt,Y=(0,i.A)((0,i.A)({},P(Tt,ye,xe,nt)),typeof Se=="function"?Se(ye):Se);return F&&(Y=(0,i.A)((0,i.A)({},Y),typeof Ae=="function"?Ae(ye):Ae)),y.createElement("span",{className:p()(U,(0,l.A)({},"".concat(U,"-active"),F)),style:Y})}function re(ne){var pe=ne.prefixCls,ye=ne.marks,Se=ne.dots,Ae=ne.style,Ee=ne.activeStyle,xe=y.useContext(S),nt=xe.min,Tt=xe.max,pt=xe.step,Rt=y.useMemo(function(){var tt=new Set;if(ye.forEach(function(F){tt.add(F.value)}),Se&&pt!==null)for(var U=nt;U<=Tt;)tt.add(U),U+=pt;return Array.from(tt)},[nt,Tt,pt,Se,ye]);return y.createElement("div",{className:"".concat(pe,"-step")},Rt.map(function(tt){return y.createElement(oe,{prefixCls:pe,key:tt,value:tt,style:Ae,activeStyle:Ee})}))}function H(ne){var pe,ye=ne.prefixCls,Se=ne.style,Ae=ne.start,Ee=ne.end,xe=ne.index,nt=ne.onStartMove,Tt=ne.replaceCls,pt=y.useContext(S),Rt=pt.direction,tt=pt.min,U=pt.max,F=pt.disabled,Y=pt.range,le=pt.classNames,ke="".concat(ye,"-track"),Ye=D(Ae,tt,U),ft=D(Ee,tt,U),wt=function(At){!F&&nt&&nt(At,-1)},Ut={};switch(Rt){case"rtl":Ut.right="".concat(Ye*100,"%"),Ut.width="".concat(ft*100-Ye*100,"%");break;case"btt":Ut.bottom="".concat(Ye*100,"%"),Ut.height="".concat(ft*100-Ye*100,"%");break;case"ttb":Ut.top="".concat(Ye*100,"%"),Ut.height="".concat(ft*100-Ye*100,"%");break;default:Ut.left="".concat(Ye*100,"%"),Ut.width="".concat(ft*100-Ye*100,"%")}var Ke=Tt||p()(ke,(pe={},(0,l.A)(pe,"".concat(ke,"-").concat(xe+1),xe!==null&&Y),(0,l.A)(pe,"".concat(ye,"-track-draggable"),nt),pe),le.track);return y.createElement("div",{className:Ke,style:(0,i.A)((0,i.A)({},Ut),Se),onMouseDown:wt,onTouchStart:wt})}function V(ne){var pe=ne.prefixCls,ye=ne.style,Se=ne.values,Ae=ne.startPoint,Ee=ne.onStartMove,xe=y.useContext(S),nt=xe.included,Tt=xe.range,pt=xe.min,Rt=xe.styles,tt=xe.classNames,U=y.useMemo(function(){if(!Tt){if(Se.length===0)return[];var Y=Ae??pt,le=Se[0];return[{start:Math.min(Y,le),end:Math.max(Y,le)}]}for(var ke=[],Ye=0;Ye<Se.length-1;Ye+=1)ke.push({start:Se[Ye],end:Se[Ye+1]});return ke},[Se,Tt,Ae,pt]),F=null;return(tt.tracks||Rt.tracks)&&(F=y.createElement(H,{index:null,prefixCls:pe,start:U[0].start,end:U[U.length-1].end,replaceCls:p()(tt.tracks,"".concat(pe,"-tracks")),style:Rt.tracks})),nt?y.createElement(y.Fragment,null,F,U.map(function(Y,le){var ke=Y.start,Ye=Y.end;return y.createElement(H,{index:le,prefixCls:pe,style:(0,i.A)((0,i.A)({},T(ye,le)),Rt.track),start:ke,end:Ye,key:le,onStartMove:Ee})})):null}var Q=y.forwardRef(function(ne,pe){var ye,Se=ne.prefixCls,Ae=Se===void 0?"rc-slider":Se,Ee=ne.className,xe=ne.style,nt=ne.classNames,Tt=ne.styles,pt=ne.disabled,Rt=pt===void 0?!1:pt,tt=ne.keyboard,U=tt===void 0?!0:tt,F=ne.autoFocus,Y=ne.onFocus,le=ne.onBlur,ke=ne.min,Ye=ke===void 0?0:ke,ft=ne.max,wt=ft===void 0?100:ft,Ut=ne.step,Ke=Ut===void 0?1:Ut,it=ne.value,At=ne.defaultValue,et=ne.range,ee=ne.count,I=ne.onChange,K=ne.onBeforeChange,ue=ne.onAfterChange,De=ne.onChangeComplete,He=ne.allowCross,Fe=He===void 0?!0:He,ze=ne.pushable,qe=ze===void 0?!1:ze,We=ne.draggableTrack,_t=ne.reverse,ct=ne.vertical,Ge=ne.included,st=Ge===void 0?!0:Ge,Me=ne.startPoint,ie=ne.trackStyle,ge=ne.handleStyle,z=ne.railStyle,be=ne.dotStyle,Qe=ne.activeDotStyle,Bt=ne.marks,nn=ne.dots,bt=ne.handleRender,at=ne.tabIndex,$t=at===void 0?0:at,On=ne.ariaLabelForHandle,Ct=ne.ariaLabelledByForHandle,Zt=ne.ariaValueTextFormatterForHandle,Wn=y.useRef(),Zn=y.useRef(),xt=y.useMemo(function(){return ct?_t?"ttb":"btt":_t?"rtl":"ltr"},[_t,ct]),Xe=y.useMemo(function(){return isFinite(Ye)?Ye:0},[Ye]),gn=y.useMemo(function(){return isFinite(wt)?wt:100},[wt]),Qt=y.useMemo(function(){return Ke!==null&&Ke<=0?1:Ke},[Ke]),Dt=y.useMemo(function(){return typeof qe=="boolean"?qe?Qt:!1:qe>=0?qe:!1},[qe,Qt]),hn=y.useMemo(function(){var gt=Object.keys(Bt||{});return gt.map(function(tn){var Vn=Bt[tn],Ur={value:Number(tn)};return Vn&&(0,u.A)(Vn)==="object"&&!y.isValidElement(Vn)&&("label"in Vn||"style"in Vn)?(Ur.style=Vn.style,Ur.label=Vn.label):Ur.label=Vn,Ur}).filter(function(tn){var Vn=tn.label;return Vn||typeof Vn=="number"}).sort(function(tn,Vn){return tn.value-Vn.value})},[Bt]),cn=fe(Xe,gn,Qt,hn,Fe,Dt),an=(0,m.A)(cn,2),Or=an[0],Ln=an[1],En=(0,v.A)(At,{value:it}),Gn=(0,m.A)(En,2),rr=Gn[0],sr=Gn[1],pi=y.useMemo(function(){var gt=rr==null?[]:Array.isArray(rr)?rr:[rr],tn=(0,m.A)(gt,1),Vn=tn[0],Ur=Vn===void 0?Xe:Vn,$r=rr===null?[]:[Ur];if(et){if($r=(0,s.A)(gt),ee||rr===void 0){var Pr=ee>=0?ee+1:2;for($r=$r.slice(0,Pr);$r.length<Pr;){var zr;$r.push((zr=$r[$r.length-1])!==null&&zr!==void 0?zr:Xe)}}$r.sort(function(gi,$i){return gi-$i})}return $r.forEach(function(gi,$i){$r[$i]=Or(gi)}),$r},[rr,et,Xe,ee,Or]),yi=y.useRef(pi);yi.current=pi;var jr=function(tn){return et?tn:tn[0]},ui=function(tn){var Vn=(0,s.A)(tn).sort(function(Ur,$r){return Ur-$r});I&&!b(Vn,yi.current,!0)&&I(jr(Vn)),sr(Vn)},bi=function(){ue?.(jr(yi.current)),(0,h.Ay)(!ue,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),De?.(jr(yi.current))},ri=me(Zn,xt,pi,Xe,gn,Or,ui,bi,Ln),hi=(0,m.A)(ri,4),Si=hi[0],Kr=hi[1],xi=hi[2],Ai=hi[3],Pi=function(tn,Vn){if(!Rt){var Ur=0,$r=gn-Xe;pi.forEach(function(zr,gi){var $i=Math.abs(tn-zr);$i<=$r&&($r=$i,Ur=gi)});var Pr=(0,s.A)(pi);Pr[Ur]=tn,et&&!pi.length&&ee===void 0&&Pr.push(tn),K?.(jr(Pr)),ui(Pr),Vn&&Ai(Vn,Ur,Pr)}},io=function(tn){tn.preventDefault();var Vn=Zn.current.getBoundingClientRect(),Ur=Vn.width,$r=Vn.height,Pr=Vn.left,zr=Vn.top,gi=Vn.bottom,$i=Vn.right,eo=tn.clientX,ki=tn.clientY,so;switch(xt){case"btt":so=(gi-ki)/$r;break;case"ttb":so=(ki-zr)/$r;break;case"rtl":so=($i-eo)/Ur;break;default:so=(eo-Pr)/Ur}var Ho=Xe+so*(gn-Xe);Pi(Or(Ho),tn)},lo=y.useState(null),Gr=(0,m.A)(lo,2),un=Gr[0],qn=Gr[1],kn=function(tn,Vn){if(!Rt){var Ur=Ln(pi,tn,Vn);K?.(jr(pi)),ui(Ur.values),qn(Ur.value)}};y.useEffect(function(){if(un!==null){var gt=pi.indexOf(un);gt>=0&&Wn.current.focus(gt)}qn(null)},[un]);var St=y.useMemo(function(){return We&&Qt===null?!1:We},[We,Qt]),ln=function(tn,Vn){Ai(tn,Vn),K?.(jr(yi.current))},An=Si!==-1;y.useEffect(function(){if(!An){var gt=pi.lastIndexOf(Kr);Wn.current.focus(gt)}},[An]);var Cr=y.useMemo(function(){return(0,s.A)(xi).sort(function(gt,tn){return gt-tn})},[xi]),_i=y.useMemo(function(){return et?[Cr[0],Cr[Cr.length-1]]:[Xe,Cr[0]]},[Cr,et,Xe]),Sn=(0,m.A)(_i,2),ir=Sn[0],mt=Sn[1];y.useImperativeHandle(pe,function(){return{focus:function(){Wn.current.focus(0)},blur:function(){var tn=document,Vn=tn.activeElement;Zn.current.contains(Vn)&&Vn?.blur()}}}),y.useEffect(function(){F&&Wn.current.focus(0)},[]);var fn=y.useMemo(function(){return{min:Xe,max:gn,direction:xt,disabled:Rt,keyboard:U,step:Qt,included:st,includedStart:ir,includedEnd:mt,range:et,tabIndex:$t,ariaLabelForHandle:On,ariaLabelledByForHandle:Ct,ariaValueTextFormatterForHandle:Zt,styles:Tt||{},classNames:nt||{}}},[Xe,gn,xt,Rt,U,Qt,st,ir,mt,et,$t,On,Ct,Zt,Tt,nt]);return y.createElement(S.Provider,{value:fn},y.createElement("div",{ref:Zn,className:p()(Ae,Ee,(ye={},(0,l.A)(ye,"".concat(Ae,"-disabled"),Rt),(0,l.A)(ye,"".concat(Ae,"-vertical"),ct),(0,l.A)(ye,"".concat(Ae,"-horizontal"),!ct),(0,l.A)(ye,"".concat(Ae,"-with-marks"),hn.length),ye)),style:xe,onMouseDown:io},y.createElement("div",{className:p()("".concat(Ae,"-rail"),nt?.rail),style:(0,i.A)((0,i.A)({},z),Tt?.rail)}),y.createElement(V,{prefixCls:Ae,style:ie,values:Cr,startPoint:Me,onStartMove:St?ln:null}),y.createElement(re,{prefixCls:Ae,marks:hn,dots:nn,style:be,activeStyle:Qe}),y.createElement(W,{ref:Wn,prefixCls:Ae,style:ge,values:xi,draggingIndex:Si,onStartMove:ln,onOffsetChange:kn,onFocus:Y,onBlur:le,handleRender:bt,onChangeComplete:bi}),y.createElement(ce,{prefixCls:Ae,marks:hn,onClick:Pi})))});const Re=Q},57389:(J,g,t)=>{"use strict";t.d(g,{A:()=>Bu});var i=t(96540),l=t(5556),s=t.n(l),m=t(85505),u=t(9506),f=t(50539),p=t(27714),v=t(40961),h=t(71345);function d(Mn,en){for(var sn=en;sn;){if(sn===Mn)return!0;sn=sn.parentNode}return!1}var b=t(32223),y=t.n(b);function w(Mn,en,sn,qt){var In=v.unstable_batchedUpdates?function(Fr){v.unstable_batchedUpdates(sn,Fr)}:sn;return y()(Mn,en,In,qt)}function S(Mn){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(sn){return typeof sn}:S=function(sn){return sn&&typeof Symbol=="function"&&sn.constructor===Symbol&&sn!==Symbol.prototype?"symbol":typeof sn},S(Mn)}function O(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function R(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function M(Mn,en,sn){return en&&R(Mn.prototype,en),sn&&R(Mn,sn),Mn}function D(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&P(Mn,en)}function P(Mn,en){return P=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},P(Mn,en)}function T(Mn){var en=ae();return function(){var qt=_(Mn),In;if(en){var Kn=_(this).constructor;In=Reflect.construct(qt,arguments,Kn)}else In=qt.apply(this,arguments);return A(this,In)}}function A(Mn,en){return en&&(S(en)==="object"||typeof en=="function")?en:j(Mn)}function j(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function ae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(Mn){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},_(Mn)}var N=function(Mn){D(sn,Mn);var en=T(sn);function sn(){var qt;O(this,sn);for(var In=arguments.length,Kn=new Array(In),Fr=0;Fr<In;Fr++)Kn[Fr]=arguments[Fr];return qt=en.call.apply(en,[this].concat(Kn)),qt.removeContainer=function(){qt.container&&(v.unmountComponentAtNode(qt.container),qt.container.parentNode.removeChild(qt.container),qt.container=null)},qt.renderComponent=function(ci,Le){var te=qt.props,Ue=te.visible,rt=te.getComponent,ht=te.forceRender,Gt=te.getContainer,xn=te.parent;(Ue||xn._component||ht)&&(qt.container||(qt.container=Gt()),v.unstable_renderSubtreeIntoContainer(xn,rt(ci),qt.container,function(){Le&&Le.call(this)}))},qt}return M(sn,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),sn}(i.Component);N.propTypes={autoMount:s().bool,autoDestroy:s().bool,visible:s().bool,forceRender:s().bool,parent:s().any,getComponent:s().func.isRequired,getContainer:s().func.isRequired,children:s().func.isRequired},N.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};function W(Mn){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W=function(sn){return typeof sn}:W=function(sn){return sn&&typeof Symbol=="function"&&sn.constructor===Symbol&&sn!==Symbol.prototype?"symbol":typeof sn},W(Mn)}function he(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function me(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function fe(Mn,en,sn){return en&&me(Mn.prototype,en),sn&&me(Mn,sn),Mn}function ve(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&ce(Mn,en)}function ce(Mn,en){return ce=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},ce(Mn,en)}function oe(Mn){var en=V();return function(){var qt=Q(Mn),In;if(en){var Kn=Q(this).constructor;In=Reflect.construct(qt,arguments,Kn)}else In=qt.apply(this,arguments);return re(this,In)}}function re(Mn,en){return en&&(W(en)==="object"||typeof en=="function")?en:H(Mn)}function H(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Q(Mn){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},Q(Mn)}var Te=function(Mn){ve(sn,Mn);var en=oe(sn);function sn(){return he(this,sn),en.apply(this,arguments)}return fe(sn,[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(In){var Kn=this.props.didUpdate;Kn&&Kn(In)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?v.createPortal(this.props.children,this._container):null}}]),sn}(i.Component);Te.propTypes={getContainer:s().func.isRequired,children:s().node.isRequired,didUpdate:s().func};var Re=t(46942),ne=t.n(Re);function pe(Mn,en,sn){return sn?Mn[0]===en[0]:Mn[0]===en[0]&&Mn[1]===en[1]}function ye(Mn,en,sn){var qt=Mn[en]||{};return(0,m.A)({},qt,sn)}function Se(Mn,en,sn,qt){var In=sn.points;for(var Kn in Mn)if(Mn.hasOwnProperty(Kn)&&pe(Mn[Kn].points,In,qt))return en+"-placement-"+Kn;return""}function Ae(Mn,en){this[Mn]=en}var Ee=t(97588);function xe(Mn,en){var sn=Object.keys(Mn);if(Object.getOwnPropertySymbols){var qt=Object.getOwnPropertySymbols(Mn);en&&(qt=qt.filter(function(In){return Object.getOwnPropertyDescriptor(Mn,In).enumerable})),sn.push.apply(sn,qt)}return sn}function nt(Mn){for(var en=1;en<arguments.length;en++){var sn=arguments[en]!=null?arguments[en]:{};en%2?xe(Object(sn),!0).forEach(function(qt){pt(Mn,qt,sn[qt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mn,Object.getOwnPropertyDescriptors(sn)):xe(Object(sn)).forEach(function(qt){Object.defineProperty(Mn,qt,Object.getOwnPropertyDescriptor(sn,qt))})}return Mn}function Tt(Mn){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tt=function(en){return typeof en}:Tt=function(en){return en&&typeof Symbol=="function"&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en},Tt(Mn)}function pt(Mn,en,sn){return en in Mn?Object.defineProperty(Mn,en,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Mn[en]=sn,Mn}var Rt,tt={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function U(){if(Rt!==void 0)return Rt;Rt="";var Mn=document.createElement("p").style,en="Transform";for(var sn in tt)sn+en in Mn&&(Rt=sn);return Rt}function F(){return U()?"".concat(U(),"TransitionProperty"):"transitionProperty"}function Y(){return U()?"".concat(U(),"Transform"):"transform"}function le(Mn,en){var sn=F();sn&&(Mn.style[sn]=en,sn!=="transitionProperty"&&(Mn.style.transitionProperty=en))}function ke(Mn,en){var sn=Y();sn&&(Mn.style[sn]=en,sn!=="transform"&&(Mn.style.transform=en))}function Ye(Mn){return Mn.style.transitionProperty||Mn.style[F()]}function ft(Mn){var en=window.getComputedStyle(Mn,null),sn=en.getPropertyValue("transform")||en.getPropertyValue(Y());if(sn&&sn!=="none"){var qt=sn.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(qt[12]||qt[4],0),y:parseFloat(qt[13]||qt[5],0)}}return{x:0,y:0}}var wt=/matrix\((.*)\)/,Ut=/matrix3d\((.*)\)/;function Ke(Mn,en){var sn=window.getComputedStyle(Mn,null),qt=sn.getPropertyValue("transform")||sn.getPropertyValue(Y());if(qt&&qt!=="none"){var In,Kn=qt.match(wt);if(Kn)Kn=Kn[1],In=Kn.split(",").map(function(ci){return parseFloat(ci,10)}),In[4]=en.x,In[5]=en.y,ke(Mn,"matrix(".concat(In.join(","),")"));else{var Fr=qt.match(Ut)[1];In=Fr.split(",").map(function(ci){return parseFloat(ci,10)}),In[12]=en.x,In[13]=en.y,ke(Mn,"matrix3d(".concat(In.join(","),")"))}}else ke(Mn,"translateX(".concat(en.x,"px) translateY(").concat(en.y,"px) translateZ(0)"))}var it=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,At;function et(Mn){var en=Mn.style.display;Mn.style.display="none",Mn.offsetHeight,Mn.style.display=en}function ee(Mn,en,sn){var qt=sn;if(Tt(en)==="object"){for(var In in en)en.hasOwnProperty(In)&&ee(Mn,In,en[In]);return}if(typeof qt<"u"){typeof qt=="number"&&(qt="".concat(qt,"px")),Mn.style[en]=qt;return}return At(Mn,en)}function I(Mn){var en,sn,qt,In=Mn.ownerDocument,Kn=In.body,Fr=In&&In.documentElement;return en=Mn.getBoundingClientRect(),sn=en.left,qt=en.top,sn-=Fr.clientLeft||Kn.clientLeft||0,qt-=Fr.clientTop||Kn.clientTop||0,{left:sn,top:qt}}function K(Mn,en){var sn=Mn["page".concat(en?"Y":"X","Offset")],qt="scroll".concat(en?"Top":"Left");if(typeof sn!="number"){var In=Mn.document;sn=In.documentElement[qt],typeof sn!="number"&&(sn=In.body[qt])}return sn}function ue(Mn){return K(Mn)}function De(Mn){return K(Mn,!0)}function He(Mn){var en=I(Mn),sn=Mn.ownerDocument,qt=sn.defaultView||sn.parentWindow;return en.left+=ue(qt),en.top+=De(qt),en}function Fe(Mn){return Mn!=null&&Mn==Mn.window}function ze(Mn){return Fe(Mn)?Mn.document:Mn.nodeType===9?Mn:Mn.ownerDocument}function qe(Mn,en,sn){var qt=sn,In="",Kn=ze(Mn);return qt=qt||Kn.defaultView.getComputedStyle(Mn,null),qt&&(In=qt.getPropertyValue(en)||qt[en]),In}var We=new RegExp("^(".concat(it,")(?!px)[a-z%]+$"),"i"),_t=/^(top|right|bottom|left)$/,ct="currentStyle",Ge="runtimeStyle",st="left",Me="px";function ie(Mn,en){var sn=Mn[ct]&&Mn[ct][en];if(We.test(sn)&&!_t.test(en)){var qt=Mn.style,In=qt[st],Kn=Mn[Ge][st];Mn[Ge][st]=Mn[ct][st],qt[st]=en==="fontSize"?"1em":sn||0,sn=qt.pixelLeft+Me,qt[st]=In,Mn[Ge][st]=Kn}return sn===""?"auto":sn}typeof window<"u"&&(At=window.getComputedStyle?qe:ie);function ge(Mn,en){return Mn==="left"?en.useCssRight?"right":Mn:en.useCssBottom?"bottom":Mn}function z(Mn){if(Mn==="left")return"right";if(Mn==="right")return"left";if(Mn==="top")return"bottom";if(Mn==="bottom")return"top"}function be(Mn,en,sn){ee(Mn,"position")==="static"&&(Mn.style.position="relative");var qt=-999,In=-999,Kn=ge("left",sn),Fr=ge("top",sn),ci=z(Kn),Le=z(Fr);Kn!=="left"&&(qt=999),Fr!=="top"&&(In=999);var te="",Ue=He(Mn);("left"in en||"top"in en)&&(te=Ye(Mn)||"",le(Mn,"none")),"left"in en&&(Mn.style[ci]="",Mn.style[Kn]="".concat(qt,"px")),"top"in en&&(Mn.style[Le]="",Mn.style[Fr]="".concat(In,"px")),et(Mn);var rt=He(Mn),ht={};for(var Gt in en)if(en.hasOwnProperty(Gt)){var xn=ge(Gt,sn),Hn=Gt==="left"?qt:In,wr=Ue[Gt]-rt[Gt];xn===Gt?ht[xn]=Hn+wr:ht[xn]=Hn-wr}ee(Mn,ht),et(Mn),("left"in en||"top"in en)&&le(Mn,te);var Wr={};for(var vt in en)if(en.hasOwnProperty(vt)){var Vt=ge(vt,sn),dn=en[vt]-Ue[vt];vt===Vt?Wr[Vt]=ht[Vt]+dn:Wr[Vt]=ht[Vt]-dn}ee(Mn,Wr)}function Qe(Mn,en){var sn=He(Mn),qt=ft(Mn),In={x:qt.x,y:qt.y};"left"in en&&(In.x=qt.x+en.left-sn.left),"top"in en&&(In.y=qt.y+en.top-sn.top),Ke(Mn,In)}function Bt(Mn,en,sn){if(sn.ignoreShake){var qt=He(Mn),In=qt.left.toFixed(0),Kn=qt.top.toFixed(0),Fr=en.left.toFixed(0),ci=en.top.toFixed(0);if(In===Fr&&Kn===ci)return}sn.useCssRight||sn.useCssBottom?be(Mn,en,sn):sn.useCssTransform&&Y()in document.body.style?Qe(Mn,en):be(Mn,en,sn)}function nn(Mn,en){for(var sn=0;sn<Mn.length;sn++)en(Mn[sn])}function bt(Mn){return At(Mn,"boxSizing")==="border-box"}var at=["margin","border","padding"],$t=-1,On=2,Ct=1,Zt=0;function Wn(Mn,en,sn){var qt={},In=Mn.style,Kn;for(Kn in en)en.hasOwnProperty(Kn)&&(qt[Kn]=In[Kn],In[Kn]=en[Kn]);sn.call(Mn);for(Kn in en)en.hasOwnProperty(Kn)&&(In[Kn]=qt[Kn])}function Zn(Mn,en,sn){var qt=0,In,Kn,Fr;for(Kn=0;Kn<en.length;Kn++)if(In=en[Kn],In)for(Fr=0;Fr<sn.length;Fr++){var ci=void 0;In==="border"?ci="".concat(In).concat(sn[Fr],"Width"):ci=In+sn[Fr],qt+=parseFloat(At(Mn,ci))||0}return qt}var xt={getParent:function(en){var sn=en;do sn.nodeType===11&&sn.host?sn=sn.host:sn=sn.parentNode;while(sn&&sn.nodeType!==1&&sn.nodeType!==9);return sn}};nn(["Width","Height"],function(Mn){xt["doc".concat(Mn)]=function(en){var sn=en.document;return Math.max(sn.documentElement["scroll".concat(Mn)],sn.body["scroll".concat(Mn)],xt["viewport".concat(Mn)](sn))},xt["viewport".concat(Mn)]=function(en){var sn="client".concat(Mn),qt=en.document,In=qt.body,Kn=qt.documentElement,Fr=Kn[sn];return qt.compatMode==="CSS1Compat"&&Fr||In&&In[sn]||Fr}});function Xe(Mn,en,sn){var qt=sn;if(Fe(Mn))return en==="width"?xt.viewportWidth(Mn):xt.viewportHeight(Mn);if(Mn.nodeType===9)return en==="width"?xt.docWidth(Mn):xt.docHeight(Mn);var In=en==="width"?["Left","Right"]:["Top","Bottom"],Kn=en==="width"?Mn.getBoundingClientRect().width:Mn.getBoundingClientRect().height,Fr=bt(Mn),ci=0;(Kn==null||Kn<=0)&&(Kn=void 0,ci=At(Mn,en),(ci==null||Number(ci)<0)&&(ci=Mn.style[en]||0),ci=parseFloat(ci)||0),qt===void 0&&(qt=Fr?Ct:$t);var Le=Kn!==void 0||Fr,te=Kn||ci;return qt===$t?Le?te-Zn(Mn,["border","padding"],In):ci:Le?qt===Ct?te:te+(qt===On?-Zn(Mn,["border"],In):Zn(Mn,["margin"],In)):ci+Zn(Mn,at.slice(qt),In)}var gn={position:"absolute",visibility:"hidden",display:"block"};function Qt(){for(var Mn=arguments.length,en=new Array(Mn),sn=0;sn<Mn;sn++)en[sn]=arguments[sn];var qt,In=en[0];return In.offsetWidth!==0?qt=Xe.apply(void 0,en):Wn(In,gn,function(){qt=Xe.apply(void 0,en)}),qt}nn(["width","height"],function(Mn){var en=Mn.charAt(0).toUpperCase()+Mn.slice(1);xt["outer".concat(en)]=function(qt,In){return qt&&Qt(qt,Mn,In?Zt:Ct)};var sn=Mn==="width"?["Left","Right"]:["Top","Bottom"];xt[Mn]=function(qt,In){var Kn=In;if(Kn!==void 0){if(qt){var Fr=bt(qt);return Fr&&(Kn+=Zn(qt,["padding","border"],sn)),ee(qt,Mn,Kn)}return}return qt&&Qt(qt,Mn,$t)}});function Dt(Mn,en){for(var sn in en)en.hasOwnProperty(sn)&&(Mn[sn]=en[sn]);return Mn}var hn={getWindow:function(en){if(en&&en.document&&en.setTimeout)return en;var sn=en.ownerDocument||en;return sn.defaultView||sn.parentWindow},getDocument:ze,offset:function(en,sn,qt){if(typeof sn<"u")Bt(en,sn,qt||{});else return He(en)},isWindow:Fe,each:nn,css:ee,clone:function(en){var sn,qt={};for(sn in en)en.hasOwnProperty(sn)&&(qt[sn]=en[sn]);var In=en.overflow;if(In)for(sn in en)en.hasOwnProperty(sn)&&(qt.overflow[sn]=en.overflow[sn]);return qt},mix:Dt,getWindowScrollLeft:function(en){return ue(en)},getWindowScrollTop:function(en){return De(en)},merge:function(){for(var en={},sn=0;sn<arguments.length;sn++)hn.mix(en,sn<0||arguments.length<=sn?void 0:arguments[sn]);return en},viewportWidth:0,viewportHeight:0};Dt(hn,xt);var cn=hn.getParent;function an(Mn){if(hn.isWindow(Mn)||Mn.nodeType===9)return null;var en=hn.getDocument(Mn),sn=en.body,qt,In=hn.css(Mn,"position"),Kn=In==="fixed"||In==="absolute";if(!Kn)return Mn.nodeName.toLowerCase()==="html"?null:cn(Mn);for(qt=cn(Mn);qt&&qt!==sn&&qt.nodeType!==9;qt=cn(qt))if(In=hn.css(qt,"position"),In!=="static")return qt;return null}var Or=hn.getParent;function Ln(Mn){if(hn.isWindow(Mn)||Mn.nodeType===9)return!1;var en=hn.getDocument(Mn),sn=en.body,qt=null;for(qt=Or(Mn);qt&&qt!==sn&&qt!==en;qt=Or(qt)){var In=hn.css(qt,"position");if(In==="fixed")return!0}return!1}function En(Mn,en){for(var sn={left:0,right:1/0,top:0,bottom:1/0},qt=an(Mn),In=hn.getDocument(Mn),Kn=In.defaultView||In.parentWindow,Fr=In.body,ci=In.documentElement;qt;){if((navigator.userAgent.indexOf("MSIE")===-1||qt.clientWidth!==0)&&qt!==Fr&&qt!==ci&&hn.css(qt,"overflow")!=="visible"){var Le=hn.offset(qt);Le.left+=qt.clientLeft,Le.top+=qt.clientTop,sn.top=Math.max(sn.top,Le.top),sn.right=Math.min(sn.right,Le.left+qt.clientWidth),sn.bottom=Math.min(sn.bottom,Le.top+qt.clientHeight),sn.left=Math.max(sn.left,Le.left)}else if(qt===Fr||qt===ci)break;qt=an(qt)}var te=null;if(!hn.isWindow(Mn)&&Mn.nodeType!==9){te=Mn.style.position;var Ue=hn.css(Mn,"position");Ue==="absolute"&&(Mn.style.position="fixed")}var rt=hn.getWindowScrollLeft(Kn),ht=hn.getWindowScrollTop(Kn),Gt=hn.viewportWidth(Kn),xn=hn.viewportHeight(Kn),Hn=ci.scrollWidth,wr=ci.scrollHeight,Wr=window.getComputedStyle(Fr);if(Wr.overflowX==="hidden"&&(Hn=Kn.innerWidth),Wr.overflowY==="hidden"&&(wr=Kn.innerHeight),Mn.style&&(Mn.style.position=te),en||Ln(Mn))sn.left=Math.max(sn.left,rt),sn.top=Math.max(sn.top,ht),sn.right=Math.min(sn.right,rt+Gt),sn.bottom=Math.min(sn.bottom,ht+xn);else{var vt=Math.max(Hn,rt+Gt);sn.right=Math.min(sn.right,vt);var Vt=Math.max(wr,ht+xn);sn.bottom=Math.min(sn.bottom,Vt)}return sn.top>=0&&sn.left>=0&&sn.bottom>sn.top&&sn.right>sn.left?sn:null}function Gn(Mn,en,sn,qt){var In=hn.clone(Mn),Kn={width:en.width,height:en.height};return qt.adjustX&&In.left<sn.left&&(In.left=sn.left),qt.resizeWidth&&In.left>=sn.left&&In.left+Kn.width>sn.right&&(Kn.width-=In.left+Kn.width-sn.right),qt.adjustX&&In.left+Kn.width>sn.right&&(In.left=Math.max(sn.right-Kn.width,sn.left)),qt.adjustY&&In.top<sn.top&&(In.top=sn.top),qt.resizeHeight&&In.top>=sn.top&&In.top+Kn.height>sn.bottom&&(Kn.height-=In.top+Kn.height-sn.bottom),qt.adjustY&&In.top+Kn.height>sn.bottom&&(In.top=Math.max(sn.bottom-Kn.height,sn.top)),hn.mix(In,Kn)}function rr(Mn){var en,sn,qt;if(!hn.isWindow(Mn)&&Mn.nodeType!==9)en=hn.offset(Mn),sn=hn.outerWidth(Mn),qt=hn.outerHeight(Mn);else{var In=hn.getWindow(Mn);en={left:hn.getWindowScrollLeft(In),top:hn.getWindowScrollTop(In)},sn=hn.viewportWidth(In),qt=hn.viewportHeight(In)}return en.width=sn,en.height=qt,en}function sr(Mn,en){var sn=en.charAt(0),qt=en.charAt(1),In=Mn.width,Kn=Mn.height,Fr=Mn.left,ci=Mn.top;return sn==="c"?ci+=Kn/2:sn==="b"&&(ci+=Kn),qt==="c"?Fr+=In/2:qt==="r"&&(Fr+=In),{left:Fr,top:ci}}function pi(Mn,en,sn,qt,In){var Kn=sr(en,sn[1]),Fr=sr(Mn,sn[0]),ci=[Fr.left-Kn.left,Fr.top-Kn.top];return{left:Math.round(Mn.left-ci[0]+qt[0]-In[0]),top:Math.round(Mn.top-ci[1]+qt[1]-In[1])}}function yi(Mn,en,sn){return Mn.left<sn.left||Mn.left+en.width>sn.right}function jr(Mn,en,sn){return Mn.top<sn.top||Mn.top+en.height>sn.bottom}function ui(Mn,en,sn){return Mn.left>sn.right||Mn.left+en.width<sn.left}function bi(Mn,en,sn){return Mn.top>sn.bottom||Mn.top+en.height<sn.top}function ri(Mn,en,sn){var qt=[];return hn.each(Mn,function(In){qt.push(In.replace(en,function(Kn){return sn[Kn]}))}),qt}function hi(Mn,en){return Mn[en]=-Mn[en],Mn}function Si(Mn,en){var sn;return/%$/.test(Mn)?sn=parseInt(Mn.substring(0,Mn.length-1),10)/100*en:sn=parseInt(Mn,10),sn||0}function Kr(Mn,en){Mn[0]=Si(Mn[0],en.width),Mn[1]=Si(Mn[1],en.height)}function xi(Mn,en,sn,qt){var In=sn.points,Kn=sn.offset||[0,0],Fr=sn.targetOffset||[0,0],ci=sn.overflow,Le=sn.source||Mn;Kn=[].concat(Kn),Fr=[].concat(Fr),ci=ci||{};var te={},Ue=0,rt=!!(ci&&ci.alwaysByViewport),ht=En(Le,rt),Gt=rr(Le);Kr(Kn,Gt),Kr(Fr,en);var xn=pi(Gt,en,In,Kn,Fr),Hn=hn.merge(Gt,xn);if(ht&&(ci.adjustX||ci.adjustY)&&qt){if(ci.adjustX&&yi(xn,Gt,ht)){var wr=ri(In,/[lr]/gi,{l:"r",r:"l"}),Wr=hi(Kn,0),vt=hi(Fr,0),Vt=pi(Gt,en,wr,Wr,vt);ui(Vt,Gt,ht)||(Ue=1,In=wr,Kn=Wr,Fr=vt)}if(ci.adjustY&&jr(xn,Gt,ht)){var dn=ri(In,/[tb]/gi,{t:"b",b:"t"}),yn=hi(Kn,1),ar=hi(Fr,1),wi=pi(Gt,en,dn,yn,ar);bi(wi,Gt,ht)||(Ue=1,In=dn,Kn=yn,Fr=ar)}Ue&&(xn=pi(Gt,en,In,Kn,Fr),hn.mix(Hn,xn));var mi=yi(xn,Gt,ht),ho=jr(xn,Gt,ht);if(mi||ho){var Ao=In;mi&&(Ao=ri(In,/[lr]/gi,{l:"r",r:"l"})),ho&&(Ao=ri(In,/[tb]/gi,{t:"b",b:"t"})),In=Ao,Kn=sn.offset||[0,0],Fr=sn.targetOffset||[0,0]}te.adjustX=ci.adjustX&&mi,te.adjustY=ci.adjustY&&ho,(te.adjustX||te.adjustY)&&(Hn=Gn(xn,Gt,ht,te))}return Hn.width!==Gt.width&&hn.css(Le,"width",hn.width(Le)+Hn.width-Gt.width),Hn.height!==Gt.height&&hn.css(Le,"height",hn.height(Le)+Hn.height-Gt.height),hn.offset(Le,{left:Hn.left,top:Hn.top},{useCssRight:sn.useCssRight,useCssBottom:sn.useCssBottom,useCssTransform:sn.useCssTransform,ignoreShake:sn.ignoreShake}),{points:In,offset:Kn,targetOffset:Fr,overflow:te}}function Ai(Mn,en){var sn=En(Mn,en),qt=rr(Mn);return!sn||qt.left+qt.width<=sn.left||qt.top+qt.height<=sn.top||qt.left>=sn.right||qt.top>=sn.bottom}function Pi(Mn,en,sn){var qt=sn.target||en,In=rr(qt),Kn=!Ai(qt,sn.overflow&&sn.overflow.alwaysByViewport);return xi(Mn,In,sn,Kn)}Pi.__getOffsetParent=an,Pi.__getVisibleRectForElement=En;function io(Mn,en,sn){var qt,In,Kn=hn.getDocument(Mn),Fr=Kn.defaultView||Kn.parentWindow,ci=hn.getWindowScrollLeft(Fr),Le=hn.getWindowScrollTop(Fr),te=hn.viewportWidth(Fr),Ue=hn.viewportHeight(Fr);"pageX"in en?qt=en.pageX:qt=ci+en.clientX,"pageY"in en?In=en.pageY:In=Le+en.clientY;var rt={left:qt,top:In,width:0,height:0},ht=qt>=0&&qt<=ci+te&&In>=0&&In<=Le+Ue,Gt=[sn.points[0],"cc"];return xi(Mn,rt,nt(nt({},sn),{},{points:Gt}),ht)}const lo=null;function Gr(Mn,en,sn,qt){var In=v.unstable_batchedUpdates?function(Fr){v.unstable_batchedUpdates(sn,Fr)}:sn;return y()(Mn,en,In,qt)}function un(Mn,en){for(var sn=en;sn;){if(sn===Mn)return!0;sn=sn.parentNode}return!1}function qn(Mn,en){var sn=void 0;function qt(){sn&&(clearTimeout(sn),sn=null)}function In(){qt(),sn=setTimeout(Mn,en)}return In.clear=qt,In}function kn(Mn,en){return Mn===en?!0:!Mn||!en?!1:"pageX"in en&&"pageY"in en?Mn.pageX===en.pageX&&Mn.pageY===en.pageY:"clientX"in en&&"clientY"in en?Mn.clientX===en.clientX&&Mn.clientY===en.clientY:!1}function St(Mn){return Mn&&typeof Mn=="object"&&Mn.window===Mn}function ln(Mn,en){var sn=Math.floor(Mn),qt=Math.floor(en);return Math.abs(sn-qt)<=1}function An(Mn,en){Mn!==document.activeElement&&un(en,Mn)&&Mn.focus()}function Cr(Mn){return typeof Mn!="function"||!Mn?null:Mn()}function _i(Mn){return typeof Mn!="object"||!Mn?null:Mn}var Sn=function(Mn){(0,p.A)(en,Mn);function en(){var sn,qt,In,Kn;(0,u.A)(this,en);for(var Fr=arguments.length,ci=Array(Fr),Le=0;Le<Fr;Le++)ci[Le]=arguments[Le];return Kn=(qt=(In=(0,f.A)(this,(sn=en.__proto__||Object.getPrototypeOf(en)).call.apply(sn,[this].concat(ci))),In),In.forceAlign=function(){var te=In.props,Ue=te.disabled,rt=te.target,ht=te.align,Gt=te.onAlign;if(!Ue&&rt){var xn=v.findDOMNode(In),Hn=void 0,wr=Cr(rt),Wr=_i(rt),vt=document.activeElement;wr?Hn=Pi(xn,wr,ht):Wr&&(Hn=io(xn,Wr,ht)),An(vt,xn),Gt&&Gt(xn,Hn)}},qt),(0,f.A)(In,Kn)}return(0,Ee.A)(en,[{key:"componentDidMount",value:function(){var qt=this.props;this.forceAlign(),!qt.disabled&&qt.monitorWindowResize&&this.startMonitorWindowResize()}},{key:"componentDidUpdate",value:function(qt){var In=!1,Kn=this.props;if(!Kn.disabled){var Fr=v.findDOMNode(this),ci=Fr?Fr.getBoundingClientRect():null;if(qt.disabled)In=!0;else{var Le=Cr(qt.target),te=Cr(Kn.target),Ue=_i(qt.target),rt=_i(Kn.target);St(Le)&&St(te)?In=!1:(Le!==te||Le&&!te&&rt||Ue&&rt&&te||rt&&!kn(Ue,rt))&&(In=!0);var ht=this.sourceRect||{};!In&&Fr&&(!ln(ht.width,ci.width)||!ln(ht.height,ci.height))&&(In=!0)}this.sourceRect=ci}In&&this.forceAlign(),Kn.monitorWindowResize&&!Kn.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()}},{key:"componentWillUnmount",value:function(){this.stopMonitorWindowResize()}},{key:"startMonitorWindowResize",value:function(){this.resizeHandler||(this.bufferMonitor=qn(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=Gr(window,"resize",this.bufferMonitor))}},{key:"stopMonitorWindowResize",value:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)}},{key:"render",value:function(){var qt=this,In=this.props,Kn=In.childrenProps,Fr=In.children,ci=i.Children.only(Fr);if(Kn){var Le={},te=Object.keys(Kn);return te.forEach(function(Ue){Le[Ue]=qt.props[Kn[Ue]]}),i.cloneElement(ci,Le)}return ci}}]),en}(i.Component);Sn.propTypes={childrenProps:s().object,align:s().object.isRequired,target:s().oneOfType([s().func,s().shape({clientX:s().number,clientY:s().number,pageX:s().number,pageY:s().number})]),onAlign:s().func,monitorBufferTime:s().number,monitorWindowResize:s().bool,disabled:s().bool,children:s().any},Sn.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1};const mt=Sn;var fn=t(44508),gt=function(en){var sn=en.prototype;if(!sn||!sn.isReactComponent)throw new Error("Can only polyfill class components");return typeof sn.componentWillReceiveProps!="function"||!i.Profiler||(sn.UNSAFE_componentWillReceiveProps=sn.componentWillReceiveProps,delete sn.componentWillReceiveProps),en};const tn=gt;function Vn(Mn){var en=[];return i.Children.forEach(Mn,function(sn){en.push(sn)}),en}function Ur(Mn,en){var sn=null;return Mn&&Mn.forEach(function(qt){sn||qt&&qt.key===en&&(sn=qt)}),sn}function $r(Mn,en,sn){var qt=null;return Mn&&Mn.forEach(function(In){if(In&&In.key===en&&In.props[sn]){if(qt)throw new Error("two child with same key for <rc-animate> children");qt=In}}),qt}function Pr(Mn,en,sn){var qt=0;return Mn&&Mn.forEach(function(In){qt||(qt=In&&In.key===en&&!In.props[sn])}),qt}function zr(Mn,en,sn){var qt=Mn.length===en.length;return qt&&Mn.forEach(function(In,Kn){var Fr=en[Kn];In&&Fr&&(In&&!Fr||!In&&Fr||In.key!==Fr.key||sn&&In.props[sn]!==Fr.props[sn])&&(qt=!1)}),qt}function gi(Mn,en){var sn=[],qt={},In=[];return Mn.forEach(function(Kn){Kn&&Ur(en,Kn.key)?In.length&&(qt[Kn.key]=In,In=[]):In.push(Kn)}),en.forEach(function(Kn){Kn&&Object.prototype.hasOwnProperty.call(qt,Kn.key)&&(sn=sn.concat(qt[Kn.key])),sn.push(Kn)}),sn=sn.concat(In),sn}var $i=t(97479),eo={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},ki={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},so=[],Ho=[];function ra(){var Mn=document.createElement("div"),en=Mn.style;"AnimationEvent"in window||(delete eo.animationstart.animation,delete ki.animationend.animation),"TransitionEvent"in window||(delete eo.transitionstart.transition,delete ki.transitionend.transition);function sn(qt,In){for(var Kn in qt)if(qt.hasOwnProperty(Kn)){var Fr=qt[Kn];for(var ci in Fr)if(ci in en){In.push(Fr[ci]);break}}}sn(eo,so),sn(ki,Ho)}typeof window<"u"&&typeof document<"u"&&ra();function So(Mn,en,sn){Mn.addEventListener(en,sn,!1)}function gr(Mn,en,sn){Mn.removeEventListener(en,sn,!1)}var di={startEvents:so,addStartEventListener:function(en,sn){if(so.length===0){window.setTimeout(sn,0);return}so.forEach(function(qt){So(en,qt,sn)})},removeStartEventListener:function(en,sn){so.length!==0&&so.forEach(function(qt){gr(en,qt,sn)})},endEvents:Ho,addEndEventListener:function(en,sn){if(Ho.length===0){window.setTimeout(sn,0);return}Ho.forEach(function(qt){So(en,qt,sn)})},removeEndEventListener:function(en,sn){Ho.length!==0&&Ho.forEach(function(qt){gr(en,qt,sn)})}};const Vi=di;var Ro=t(30837),na=t.n(Ro),ta=Vi.endEvents.length!==0,aa=["Webkit","Moz","O","ms"],vi=["-webkit-","-moz-","-o-","ms-",""];function to(Mn,en){for(var sn=window.getComputedStyle(Mn,null),qt="",In=0;In<vi.length&&(qt=sn.getPropertyValue(vi[In]+en),!qt);In++);return qt}function $o(Mn){if(ta){var en=parseFloat(to(Mn,"transition-delay"))||0,sn=parseFloat(to(Mn,"transition-duration"))||0,qt=parseFloat(to(Mn,"animation-delay"))||0,In=parseFloat(to(Mn,"animation-duration"))||0,Kn=Math.max(sn+en,In+qt);Mn.rcEndAnimTimeout=setTimeout(function(){Mn.rcEndAnimTimeout=null,Mn.rcEndListener&&Mn.rcEndListener()},Kn*1e3+200)}}function ja(Mn){Mn.rcEndAnimTimeout&&(clearTimeout(Mn.rcEndAnimTimeout),Mn.rcEndAnimTimeout=null)}var hs=function(en,sn,qt){var In=(typeof sn>"u"?"undefined":(0,$i.default)(sn))==="object",Kn=In?sn.name:sn,Fr=In?sn.active:sn+"-active",ci=qt,Le=void 0,te=void 0,Ue=na()(en);return qt&&Object.prototype.toString.call(qt)==="[object Object]"&&(ci=qt.end,Le=qt.start,te=qt.active),en.rcEndListener&&en.rcEndListener(),en.rcEndListener=function(rt){rt&&rt.target!==en||(en.rcAnimTimeout&&(clearTimeout(en.rcAnimTimeout),en.rcAnimTimeout=null),ja(en),Ue.remove(Kn),Ue.remove(Fr),Vi.removeEndEventListener(en,en.rcEndListener),en.rcEndListener=null,ci&&ci())},Vi.addEndEventListener(en,en.rcEndListener),Le&&Le(),Ue.add(Kn),en.rcAnimTimeout=setTimeout(function(){en.rcAnimTimeout=null,Ue.add(Fr),te&&setTimeout(te,0),$o(en)},30),{stop:function(){en.rcEndListener&&en.rcEndListener()}}};hs.style=function(Mn,en,sn){Mn.rcEndListener&&Mn.rcEndListener(),Mn.rcEndListener=function(qt){qt&&qt.target!==Mn||(Mn.rcAnimTimeout&&(clearTimeout(Mn.rcAnimTimeout),Mn.rcAnimTimeout=null),ja(Mn),Vi.removeEndEventListener(Mn,Mn.rcEndListener),Mn.rcEndListener=null,sn&&sn())},Vi.addEndEventListener(Mn,Mn.rcEndListener),Mn.rcAnimTimeout=setTimeout(function(){for(var qt in en)en.hasOwnProperty(qt)&&(Mn.style[qt]=en[qt]);Mn.rcAnimTimeout=null,$o(Mn)},0)},hs.setTransition=function(Mn,en,sn){var qt=en,In=sn;sn===void 0&&(In=qt,qt=""),qt=qt||"",aa.forEach(function(Kn){Mn.style[Kn+"Transition"+qt]=In})},hs.isCssAnimationSupported=ta;const ro=hs;var as={isAppearSupported:function(en){return en.transitionName&&en.transitionAppear||en.animation.appear},isEnterSupported:function(en){return en.transitionName&&en.transitionEnter||en.animation.enter},isLeaveSupported:function(en){return en.transitionName&&en.transitionLeave||en.animation.leave},allowAppearCallback:function(en){return en.transitionAppear||en.animation.appear},allowEnterCallback:function(en){return en.transitionEnter||en.animation.enter},allowLeaveCallback:function(en){return en.transitionLeave||en.animation.leave}};const rn=as;var Dr={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},Lr=function(Mn){(0,p.A)(en,Mn);function en(){return(0,u.A)(this,en),(0,f.A)(this,(en.__proto__||Object.getPrototypeOf(en)).apply(this,arguments))}return(0,Ee.A)(en,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(qt){rn.isEnterSupported(this.props)?this.transition("enter",qt):qt()}},{key:"componentWillAppear",value:function(qt){rn.isAppearSupported(this.props)?this.transition("appear",qt):qt()}},{key:"componentWillLeave",value:function(qt){rn.isLeaveSupported(this.props)?this.transition("leave",qt):qt()}},{key:"transition",value:function(qt,In){var Kn=this,Fr=v.findDOMNode(this),ci=this.props,Le=ci.transitionName,te=typeof Le=="object";this.stop();var Ue=function(){Kn.stopper=null,In()};if((ta||!ci.animation[qt])&&Le&&ci[Dr[qt]]){var rt=te?Le[qt]:Le+"-"+qt,ht=rt+"-active";te&&Le[qt+"Active"]&&(ht=Le[qt+"Active"]),this.stopper=ro(Fr,{name:rt,active:ht},Ue)}else this.stopper=ci.animation[qt](Fr,Ue)}},{key:"stop",value:function(){var qt=this.stopper;qt&&(this.stopper=null,qt.stop())}},{key:"render",value:function(){return this.props.children}}]),en}(i.Component);Lr.propTypes={children:s().any,animation:s().any,transitionName:s().any};const li=Lr;var Zi="rc_animate_"+Date.now();function Di(Mn){var en=Mn.children;return i.isValidElement(en)&&!en.key?i.cloneElement(en,{key:Zi}):en}function wo(){}var Go=function(Mn){(0,p.A)(en,Mn);function en(sn){(0,u.A)(this,en);var qt=(0,f.A)(this,(en.__proto__||Object.getPrototypeOf(en)).call(this,sn));return Ko.call(qt),qt.currentlyAnimatingKeys={},qt.keysToEnter=[],qt.keysToLeave=[],qt.state={children:Vn(Di(sn))},qt.childrenRefs={},qt}return(0,Ee.A)(en,[{key:"componentDidMount",value:function(){var qt=this,In=this.props.showProp,Kn=this.state.children;In&&(Kn=Kn.filter(function(Fr){return!!Fr.props[In]})),Kn.forEach(function(Fr){Fr&&qt.performAppear(Fr.key)})}},{key:"componentWillReceiveProps",value:function(qt){var In=this;this.nextProps=qt;var Kn=Vn(Di(qt)),Fr=this.props;Fr.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(rt){In.stop(rt)});var ci=Fr.showProp,Le=this.currentlyAnimatingKeys,te=Fr.exclusive?Vn(Di(Fr)):this.state.children,Ue=[];ci?(te.forEach(function(rt){var ht=rt&&Ur(Kn,rt.key),Gt=void 0;(!ht||!ht.props[ci])&&rt.props[ci]?Gt=i.cloneElement(ht||rt,(0,fn.A)({},ci,!0)):Gt=ht,Gt&&Ue.push(Gt)}),Kn.forEach(function(rt){(!rt||!Ur(te,rt.key))&&Ue.push(rt)})):Ue=gi(te,Kn),this.setState({children:Ue}),Kn.forEach(function(rt){var ht=rt&&rt.key;if(!(rt&&Le[ht])){var Gt=rt&&Ur(te,ht);if(ci){var xn=rt.props[ci];if(Gt){var Hn=$r(te,ht,ci);!Hn&&xn&&In.keysToEnter.push(ht)}else xn&&In.keysToEnter.push(ht)}else Gt||In.keysToEnter.push(ht)}}),te.forEach(function(rt){var ht=rt&&rt.key;if(!(rt&&Le[ht])){var Gt=rt&&Ur(Kn,ht);if(ci){var xn=rt.props[ci];if(Gt){var Hn=$r(Kn,ht,ci);!Hn&&xn&&In.keysToLeave.push(ht)}else xn&&In.keysToLeave.push(ht)}else Gt||In.keysToLeave.push(ht)}})}},{key:"componentDidUpdate",value:function(){var qt=this.keysToEnter;this.keysToEnter=[],qt.forEach(this.performEnter);var In=this.keysToLeave;this.keysToLeave=[],In.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(qt,In){var Kn=this.props.showProp;return Kn?$r(qt,In,Kn):Ur(qt,In)}},{key:"stop",value:function(qt){delete this.currentlyAnimatingKeys[qt];var In=this.childrenRefs[qt];In&&In.stop()}},{key:"render",value:function(){var qt=this,In=this.props;this.nextProps=In;var Kn=this.state.children,Fr=null;Kn&&(Fr=Kn.map(function(te){if(te==null)return te;if(!te.key)throw new Error("must set key for <rc-animate> children");return i.createElement(li,{key:te.key,ref:function(rt){qt.childrenRefs[te.key]=rt},animation:In.animation,transitionName:In.transitionName,transitionEnter:In.transitionEnter,transitionAppear:In.transitionAppear,transitionLeave:In.transitionLeave},te)}));var ci=In.component;if(ci){var Le=In;return typeof ci=="string"&&(Le=(0,m.A)({className:In.className,style:In.style},In.componentProps)),i.createElement(ci,Le,Fr)}return Fr[0]||null}}]),en}(i.Component);Go.isAnimate=!0,Go.propTypes={className:s().string,style:s().object,component:s().any,componentProps:s().object,animation:s().object,transitionName:s().oneOfType([s().string,s().object]),transitionEnter:s().bool,transitionAppear:s().bool,exclusive:s().bool,transitionLeave:s().bool,onEnd:s().func,onEnter:s().func,onLeave:s().func,onAppear:s().func,showProp:s().string,children:s().node},Go.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:wo,onEnter:wo,onLeave:wo,onAppear:wo};var Ko=function(){var en=this;this.performEnter=function(sn){en.childrenRefs[sn]&&(en.currentlyAnimatingKeys[sn]=!0,en.childrenRefs[sn].componentWillEnter(en.handleDoneAdding.bind(en,sn,"enter")))},this.performAppear=function(sn){en.childrenRefs[sn]&&(en.currentlyAnimatingKeys[sn]=!0,en.childrenRefs[sn].componentWillAppear(en.handleDoneAdding.bind(en,sn,"appear")))},this.handleDoneAdding=function(sn,qt){var In=en.props;if(delete en.currentlyAnimatingKeys[sn],!(In.exclusive&&In!==en.nextProps)){var Kn=Vn(Di(In));en.isValidChildByKey(Kn,sn)?qt==="appear"?rn.allowAppearCallback(In)&&(In.onAppear(sn),In.onEnd(sn,!0)):rn.allowEnterCallback(In)&&(In.onEnter(sn),In.onEnd(sn,!0)):en.performLeave(sn)}},this.performLeave=function(sn){en.childrenRefs[sn]&&(en.currentlyAnimatingKeys[sn]=!0,en.childrenRefs[sn].componentWillLeave(en.handleDoneLeaving.bind(en,sn)))},this.handleDoneLeaving=function(sn){var qt=en.props;if(delete en.currentlyAnimatingKeys[sn],!(qt.exclusive&&qt!==en.nextProps)){var In=Vn(Di(qt));if(en.isValidChildByKey(In,sn))en.performEnter(sn);else{var Kn=function(){rn.allowLeaveCallback(qt)&&(qt.onLeave(sn),qt.onEnd(sn,!1))};zr(en.state.children,In,qt.showProp)?Kn():en.setState({children:In},Kn)}}}};const Ie=tn(Go);var yt=t(5748),on=function(Mn){(0,p.A)(en,Mn);function en(){return(0,u.A)(this,en),(0,f.A)(this,Mn.apply(this,arguments))}return en.prototype.shouldComponentUpdate=function(qt){return qt.hiddenClassName||qt.visible},en.prototype.render=function(){var qt=this.props,In=qt.hiddenClassName,Kn=qt.visible,Fr=(0,yt.A)(qt,["hiddenClassName","visible"]);return In||i.Children.count(Fr.children)>1?(!Kn&&In&&(Fr.className+=" "+In),i.createElement("div",Fr)):i.Children.only(Fr.children)},en}(i.Component);on.propTypes={children:s().any,className:s().string,visible:s().bool,hiddenClassName:s().string};const _n=on;var er=function(Mn){(0,p.A)(en,Mn);function en(){return(0,u.A)(this,en),(0,f.A)(this,Mn.apply(this,arguments))}return en.prototype.render=function(){var qt=this.props,In=qt.className;return qt.visible||(In+=" "+qt.hiddenClassName),i.createElement("div",{className:In,onMouseEnter:qt.onMouseEnter,onMouseLeave:qt.onMouseLeave,onMouseDown:qt.onMouseDown,onTouchStart:qt.onTouchStart,style:qt.style},i.createElement(_n,{className:qt.prefixCls+"-content",visible:qt.visible},qt.children))},en}(i.Component);er.propTypes={hiddenClassName:s().string,className:s().string,prefixCls:s().string,onMouseEnter:s().func,onMouseLeave:s().func,onMouseDown:s().func,onTouchStart:s().func,children:s().any};const or=er;var Er=function(Mn){(0,p.A)(en,Mn);function en(sn){(0,u.A)(this,en);var qt=(0,f.A)(this,Mn.call(this,sn));return Mi.call(qt),qt.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},qt.savePopupRef=Ae.bind(qt,"popupInstance"),qt.saveAlignRef=Ae.bind(qt,"alignInstance"),qt}return en.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},en.prototype.componentDidUpdate=function(){this.setStretchSize()},en.prototype.getPopupDomNode=function(){return v.findDOMNode(this.popupInstance)},en.prototype.getMaskTransitionName=function(){var qt=this.props,In=qt.maskTransitionName,Kn=qt.maskAnimation;return!In&&Kn&&(In=qt.prefixCls+"-"+Kn),In},en.prototype.getTransitionName=function(){var qt=this.props,In=qt.transitionName;return!In&&qt.animation&&(In=qt.prefixCls+"-"+qt.animation),In},en.prototype.getClassName=function(qt){return this.props.prefixCls+" "+this.props.className+" "+qt},en.prototype.getPopupElement=function(){var qt=this,In=this.savePopupRef,Kn=this.state,Fr=Kn.stretchChecked,ci=Kn.targetHeight,Le=Kn.targetWidth,te=this.props,Ue=te.align,rt=te.visible,ht=te.prefixCls,Gt=te.style,xn=te.getClassNameFromAlign,Hn=te.destroyPopupOnHide,wr=te.stretch,Wr=te.children,vt=te.onMouseEnter,Vt=te.onMouseLeave,dn=te.onMouseDown,yn=te.onTouchStart,ar=this.getClassName(this.currentAlignClassName||xn(Ue)),wi=ht+"-hidden";rt||(this.currentAlignClassName=null);var mi={};wr&&(wr.indexOf("height")!==-1?mi.height=ci:wr.indexOf("minHeight")!==-1&&(mi.minHeight=ci),wr.indexOf("width")!==-1?mi.width=Le:wr.indexOf("minWidth")!==-1&&(mi.minWidth=Le),Fr||(mi.visibility="hidden",setTimeout(function(){qt.alignInstance&&qt.alignInstance.forceAlign()},0)));var ho=(0,m.A)({},mi,Gt,this.getZIndexStyle()),Ao={className:ar,prefixCls:ht,ref:In,onMouseEnter:vt,onMouseLeave:Vt,onMouseDown:dn,onTouchStart:yn,style:ho};return Hn?i.createElement(Ie,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},rt?i.createElement(mt,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:Ue,onAlign:this.onAlign},i.createElement(or,(0,m.A)({visible:!0},Ao),Wr)):null):i.createElement(Ie,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},i.createElement(mt,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:rt,childrenProps:{visible:"xVisible"},disabled:!rt,align:Ue,onAlign:this.onAlign},i.createElement(or,(0,m.A)({hiddenClassName:wi},Ao),Wr)))},en.prototype.getZIndexStyle=function(){var qt={},In=this.props;return In.zIndex!==void 0&&(qt.zIndex=In.zIndex),qt},en.prototype.getMaskElement=function(){var qt=this.props,In=void 0;if(qt.mask){var Kn=this.getMaskTransitionName();In=i.createElement(_n,{style:this.getZIndexStyle(),key:"mask",className:qt.prefixCls+"-mask",hiddenClassName:qt.prefixCls+"-mask-hidden",visible:qt.visible}),Kn&&(In=i.createElement(Ie,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:Kn},In))}return In},en.prototype.render=function(){return i.createElement("div",null,this.getMaskElement(),this.getPopupElement())},en}(i.Component);Er.propTypes={visible:s().bool,style:s().object,getClassNameFromAlign:s().func,onAlign:s().func,getRootDomNode:s().func,align:s().any,destroyPopupOnHide:s().bool,className:s().string,prefixCls:s().string,onMouseEnter:s().func,onMouseLeave:s().func,onMouseDown:s().func,onTouchStart:s().func,stretch:s().string,children:s().node,point:s().shape({pageX:s().number,pageY:s().number})};var Mi=function(){var en=this;this.onAlign=function(sn,qt){var In=en.props,Kn=In.getClassNameFromAlign(qt);en.currentAlignClassName!==Kn&&(en.currentAlignClassName=Kn,sn.className=en.getClassName(Kn)),In.onAlign(sn,qt)},this.setStretchSize=function(){var sn=en.props,qt=sn.stretch,In=sn.getRootDomNode,Kn=sn.visible,Fr=en.state,ci=Fr.stretchChecked,Le=Fr.targetHeight,te=Fr.targetWidth;if(!qt||!Kn){ci&&en.setState({stretchChecked:!1});return}var Ue=In();if(Ue){var rt=Ue.offsetHeight,ht=Ue.offsetWidth;(Le!==rt||te!==ht||!ci)&&en.setState({stretchChecked:!0,targetHeight:rt,targetWidth:ht})}},this.getTargetElement=function(){return en.props.getRootDomNode()},this.getAlignTarget=function(){var sn=en.props.point;return sn||en.getTargetElement}};const Ui=Er;function Nn(){}function cr(){return""}function ni(){return window.document}var Xr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Jr=!!v.createPortal,Qi={rcTrigger:s().shape({onPopupMouseDown:s().func})},Fo=function(Mn){(0,p.A)(en,Mn);function en(sn){(0,u.A)(this,en);var qt=(0,f.A)(this,Mn.call(this,sn));No.call(qt);var In=void 0;return"popupVisible"in sn?In=!!sn.popupVisible:In=!!sn.defaultPopupVisible,qt.state={prevPopupVisible:In,popupVisible:In},Xr.forEach(function(Kn){qt["fire"+Kn]=function(Fr){qt.fireEvents(Kn,Fr)}}),qt}return en.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},en.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},en.prototype.componentDidUpdate=function(qt,In){var Kn=this.props,Fr=this.state,ci=function(){In.popupVisible!==Fr.popupVisible&&Kn.afterPopupVisibleChange(Fr.popupVisible)};if(Jr||this.renderComponent(null,ci),Fr.popupVisible){var Le=void 0;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Le=Kn.getDocument(),this.clickOutsideHandler=w(Le,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Le=Le||Kn.getDocument(),this.touchOutsideHandler=w(Le,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Le=Le||Kn.getDocument(),this.contextMenuOutsideHandler1=w(Le,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=w(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()},en.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},en.getDerivedStateFromProps=function(qt,In){var Kn=qt.popupVisible,Fr={};return Kn!==void 0&&In.popupVisible!==Kn&&(Fr.popupVisible=Kn,Fr.prevPopupVisible=In.popupVisible),Fr},en.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},en.prototype.getPopupAlign=function(){var qt=this.props,In=qt.popupPlacement,Kn=qt.popupAlign,Fr=qt.builtinPlacements;return In&&Fr?ye(Fr,In,Kn):Kn},en.prototype.setPopupVisible=function(qt,In){var Kn=this.props.alignPoint,Fr=this.state.popupVisible;this.clearDelayTimer(),Fr!==qt&&("popupVisible"in this.props||this.setState({popupVisible:qt,prevPopupVisible:Fr}),this.props.onPopupVisibleChange(qt)),Kn&&In&&this.setPoint(In)},en.prototype.delaySetPopupVisible=function(qt,In,Kn){var Fr=this,ci=In*1e3;if(this.clearDelayTimer(),ci){var Le=Kn?{pageX:Kn.pageX,pageY:Kn.pageY}:null;this.delayTimer=setTimeout(function(){Fr.setPopupVisible(qt,Le),Fr.clearDelayTimer()},ci)}else this.setPopupVisible(qt,Kn)},en.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},en.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},en.prototype.createTwoChains=function(qt){var In=this.props.children.props,Kn=this.props;return In[qt]&&Kn[qt]?this["fire"+qt]:In[qt]||Kn[qt]},en.prototype.isClickToShow=function(){var qt=this.props,In=qt.action,Kn=qt.showAction;return In.indexOf("click")!==-1||Kn.indexOf("click")!==-1},en.prototype.isContextMenuToShow=function(){var qt=this.props,In=qt.action,Kn=qt.showAction;return In.indexOf("contextMenu")!==-1||Kn.indexOf("contextMenu")!==-1},en.prototype.isClickToHide=function(){var qt=this.props,In=qt.action,Kn=qt.hideAction;return In.indexOf("click")!==-1||Kn.indexOf("click")!==-1},en.prototype.isMouseEnterToShow=function(){var qt=this.props,In=qt.action,Kn=qt.showAction;return In.indexOf("hover")!==-1||Kn.indexOf("mouseEnter")!==-1},en.prototype.isMouseLeaveToHide=function(){var qt=this.props,In=qt.action,Kn=qt.hideAction;return In.indexOf("hover")!==-1||Kn.indexOf("mouseLeave")!==-1},en.prototype.isFocusToShow=function(){var qt=this.props,In=qt.action,Kn=qt.showAction;return In.indexOf("focus")!==-1||Kn.indexOf("focus")!==-1},en.prototype.isBlurToHide=function(){var qt=this.props,In=qt.action,Kn=qt.hideAction;return In.indexOf("focus")!==-1||Kn.indexOf("blur")!==-1},en.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},en.prototype.fireEvents=function(qt,In){var Kn=this.props.children.props[qt];Kn&&Kn(In);var Fr=this.props[qt];Fr&&Fr(In)},en.prototype.close=function(){this.setPopupVisible(!1)},en.prototype.render=function(){var qt=this,In=this.state.popupVisible,Kn=this.props,Fr=Kn.children,ci=Kn.forceRender,Le=Kn.alignPoint,te=Kn.className,Ue=i.Children.only(Fr),rt={key:"trigger"};this.isContextMenuToShow()?rt.onContextMenu=this.onContextMenu:rt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(rt.onClick=this.onClick,rt.onMouseDown=this.onMouseDown,rt.onTouchStart=this.onTouchStart):(rt.onClick=this.createTwoChains("onClick"),rt.onMouseDown=this.createTwoChains("onMouseDown"),rt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(rt.onMouseEnter=this.onMouseEnter,Le&&(rt.onMouseMove=this.onMouseMove)):rt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?rt.onMouseLeave=this.onMouseLeave:rt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(rt.onFocus=this.onFocus,rt.onBlur=this.onBlur):(rt.onFocus=this.createTwoChains("onFocus"),rt.onBlur=this.createTwoChains("onBlur"));var ht=ne()(Ue&&Ue.props&&Ue.props.className,te);ht&&(rt.className=ht);var Gt=i.cloneElement(Ue,rt);if(!Jr)return i.createElement(N,{parent:this,visible:In,autoMount:!1,forceRender:ci,getComponent:this.getComponent,getContainer:this.getContainer},function(Hn){var wr=Hn.renderComponent;return qt.renderComponent=wr,Gt});var xn=void 0;return(In||this._component||ci)&&(xn=i.createElement(Te,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[Gt,xn]},en}(i.Component);Fo.propTypes={children:s().any,action:s().oneOfType([s().string,s().arrayOf(s().string)]),showAction:s().any,hideAction:s().any,getPopupClassNameFromAlign:s().any,onPopupVisibleChange:s().func,afterPopupVisibleChange:s().func,popup:s().oneOfType([s().node,s().func]).isRequired,popupStyle:s().object,prefixCls:s().string,popupClassName:s().string,className:s().string,popupPlacement:s().string,builtinPlacements:s().object,popupTransitionName:s().oneOfType([s().string,s().object]),popupAnimation:s().any,mouseEnterDelay:s().number,mouseLeaveDelay:s().number,zIndex:s().number,focusDelay:s().number,blurDelay:s().number,getPopupContainer:s().func,getDocument:s().func,forceRender:s().bool,destroyPopupOnHide:s().bool,mask:s().bool,maskClosable:s().bool,onPopupAlign:s().func,popupAlign:s().object,popupVisible:s().bool,defaultPopupVisible:s().bool,maskTransitionName:s().oneOfType([s().string,s().object]),maskAnimation:s().string,stretch:s().string,alignPoint:s().bool},Fo.contextTypes=Qi,Fo.childContextTypes=Qi,Fo.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:cr,getDocument:ni,onPopupVisibleChange:Nn,afterPopupVisibleChange:Nn,onPopupAlign:Nn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var No=function(){var en=this;this.onMouseEnter=function(sn){var qt=en.props.mouseEnterDelay;en.fireEvents("onMouseEnter",sn),en.delaySetPopupVisible(!0,qt,qt?null:sn)},this.onMouseMove=function(sn){en.fireEvents("onMouseMove",sn),en.setPoint(sn)},this.onMouseLeave=function(sn){en.fireEvents("onMouseLeave",sn),en.delaySetPopupVisible(!1,en.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){en.clearDelayTimer()},this.onPopupMouseLeave=function(sn){sn.relatedTarget&&!sn.relatedTarget.setTimeout&&en._component&&en._component.getPopupDomNode&&d(en._component.getPopupDomNode(),sn.relatedTarget)||en.delaySetPopupVisible(!1,en.props.mouseLeaveDelay)},this.onFocus=function(sn){en.fireEvents("onFocus",sn),en.clearDelayTimer(),en.isFocusToShow()&&(en.focusTime=Date.now(),en.delaySetPopupVisible(!0,en.props.focusDelay))},this.onMouseDown=function(sn){en.fireEvents("onMouseDown",sn),en.preClickTime=Date.now()},this.onTouchStart=function(sn){en.fireEvents("onTouchStart",sn),en.preTouchTime=Date.now()},this.onBlur=function(sn){en.fireEvents("onBlur",sn),en.clearDelayTimer(),en.isBlurToHide()&&en.delaySetPopupVisible(!1,en.props.blurDelay)},this.onContextMenu=function(sn){sn.preventDefault(),en.fireEvents("onContextMenu",sn),en.setPopupVisible(!0,sn)},this.onContextMenuClose=function(){en.isContextMenuToShow()&&en.close()},this.onClick=function(sn){if(en.fireEvents("onClick",sn),en.focusTime){var qt=void 0;if(en.preClickTime&&en.preTouchTime?qt=Math.min(en.preClickTime,en.preTouchTime):en.preClickTime?qt=en.preClickTime:en.preTouchTime&&(qt=en.preTouchTime),Math.abs(qt-en.focusTime)<20)return;en.focusTime=0}en.preClickTime=0,en.preTouchTime=0,en.isClickToShow()&&(en.isClickToHide()||en.isBlurToHide())&&sn&&sn.preventDefault&&sn.preventDefault();var In=!en.state.popupVisible;(en.isClickToHide()&&!In||In&&en.isClickToShow())&&en.setPopupVisible(!en.state.popupVisible,sn)},this.onPopupMouseDown=function(){var sn=en.context.rcTrigger,qt=sn===void 0?{}:sn;en.hasPopupMouseDown=!0,clearTimeout(en.mouseDownTimeout),en.mouseDownTimeout=setTimeout(function(){en.hasPopupMouseDown=!1},0),qt.onPopupMouseDown&&qt.onPopupMouseDown.apply(qt,arguments)},this.onDocumentClick=function(sn){if(!(en.props.mask&&!en.props.maskClosable)){var qt=sn.target,In=(0,v.findDOMNode)(en);!d(In,qt)&&!en.hasPopupMouseDown&&en.close()}},this.getRootDomNode=function(){return(0,v.findDOMNode)(en)},this.getPopupClassNameFromAlign=function(sn){var qt=[],In=en.props,Kn=In.popupPlacement,Fr=In.builtinPlacements,ci=In.prefixCls,Le=In.alignPoint,te=In.getPopupClassNameFromAlign;return Kn&&Fr&&qt.push(Se(Fr,ci,sn,Le)),te&&qt.push(te(sn)),qt.join(" ")},this.getComponent=function(){var sn=en.props,qt=sn.prefixCls,In=sn.destroyPopupOnHide,Kn=sn.popupClassName,Fr=sn.action,ci=sn.onPopupAlign,Le=sn.popupAnimation,te=sn.popupTransitionName,Ue=sn.popupStyle,rt=sn.mask,ht=sn.maskAnimation,Gt=sn.maskTransitionName,xn=sn.zIndex,Hn=sn.popup,wr=sn.stretch,Wr=sn.alignPoint,vt=en.state,Vt=vt.popupVisible,dn=vt.point,yn=en.getPopupAlign(),ar={};return en.isMouseEnterToShow()&&(ar.onMouseEnter=en.onPopupMouseEnter),en.isMouseLeaveToHide()&&(ar.onMouseLeave=en.onPopupMouseLeave),ar.onMouseDown=en.onPopupMouseDown,ar.onTouchStart=en.onPopupMouseDown,i.createElement(Ui,(0,m.A)({prefixCls:qt,destroyPopupOnHide:In,visible:Vt,point:Wr&&dn,className:Kn,action:Fr,align:yn,onAlign:ci,animation:Le,getClassNameFromAlign:en.getPopupClassNameFromAlign},ar,{stretch:wr,getRootDomNode:en.getRootDomNode,style:Ue,mask:rt,zIndex:xn,transitionName:te,maskAnimation:ht,maskTransitionName:Gt,ref:en.savePopup}),typeof Hn=="function"?Hn():Hn)},this.getContainer=function(){var sn=en.props,qt=document.createElement("div");qt.style.position="absolute",qt.style.top="0",qt.style.left="0",qt.style.width="100%";var In=sn.getPopupContainer?sn.getPopupContainer((0,v.findDOMNode)(en)):sn.getDocument().body;return In.appendChild(qt),qt},this.setPoint=function(sn){var qt=en.props.alignPoint;!qt||!sn||en.setState({point:{pageX:sn.pageX,pageY:sn.pageY}})},this.handlePortalUpdate=function(){en.state.prevPopupVisible!==en.state.popupVisible&&en.props.afterPopupVisibleChange(en.state.popupVisible)},this.savePopup=function(sn){en._component=sn}};(0,h.M)(Fo);const Jo=Fo;var br=t(95093),Yn=t.n(br);function Z(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function se(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function G(Mn,en,sn){return en&&se(Mn.prototype,en),sn&&se(Mn,sn),Mn}function B(Mn,en){return en&&(typeof en=="object"||typeof en=="function")?en:dt(Mn)}function Pe(Mn){return Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},Pe(Mn)}function dt(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function Lt(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&Pt(Mn,en)}function Pt(Mn,en){return Pt=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},Pt(Mn,en)}function $e(Mn,en,sn){return en in Mn?Object.defineProperty(Mn,en,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Mn[en]=sn,Mn}var ut=function(Mn){Lt(en,Mn);function en(sn){var qt;Z(this,en),qt=B(this,Pe(en).call(this,sn)),$e(dt(qt),"onInputChange",function(Fr){var ci=Fr.target.value;qt.setState({str:ci});var Le=qt.props,te=Le.format,Ue=Le.hourOptions,rt=Le.minuteOptions,ht=Le.secondOptions,Gt=Le.disabledHours,xn=Le.disabledMinutes,Hn=Le.disabledSeconds,wr=Le.onChange;if(ci){var Wr=qt.props.value,vt=qt.getProtoValue().clone(),Vt=Yn()(ci,te,!0);if(!Vt.isValid()){qt.setState({invalid:!0});return}if(vt.hour(Vt.hour()).minute(Vt.minute()).second(Vt.second()),Ue.indexOf(vt.hour())<0||rt.indexOf(vt.minute())<0||ht.indexOf(vt.second())<0){qt.setState({invalid:!0});return}var dn=Gt(),yn=xn(vt.hour()),ar=Hn(vt.hour(),vt.minute());if(dn&&dn.indexOf(vt.hour())>=0||yn&&yn.indexOf(vt.minute())>=0||ar&&ar.indexOf(vt.second())>=0){qt.setState({invalid:!0});return}if(Wr){if(Wr.hour()!==vt.hour()||Wr.minute()!==vt.minute()||Wr.second()!==vt.second()){var wi=Wr.clone();wi.hour(vt.hour()),wi.minute(vt.minute()),wi.second(vt.second()),wr(wi)}}else Wr!==vt&&wr(vt)}else wr(null);qt.setState({invalid:!1})}),$e(dt(qt),"onKeyDown",function(Fr){var ci=qt.props,Le=ci.onEsc,te=ci.onKeyDown;Fr.keyCode===27&&Le(),te(Fr)});var In=sn.value,Kn=sn.format;return qt.state={str:In&&In.format(Kn)||"",invalid:!1},qt}return G(en,[{key:"componentDidMount",value:function(){var qt=this,In=this.props.focusOnOpen;if(In){var Kn=window.requestAnimationFrame||window.setTimeout;Kn(function(){qt.refInput.focus(),qt.refInput.select()})}}},{key:"componentDidUpdate",value:function(qt){var In=this.props,Kn=In.value,Fr=In.format;Kn!==qt.value&&this.setState({str:Kn&&Kn.format(Fr)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var qt=this.props,In=qt.value,Kn=qt.defaultOpenValue;return In||Kn}},{key:"getInput",value:function(){var qt=this,In=this.props,Kn=In.prefixCls,Fr=In.placeholder,ci=In.inputReadOnly,Le=this.state,te=Le.invalid,Ue=Le.str,rt=te?"".concat(Kn,"-input-invalid"):"";return i.createElement("input",{className:ne()("".concat(Kn,"-input"),rt),ref:function(Gt){qt.refInput=Gt},onKeyDown:this.onKeyDown,value:Ue,placeholder:Fr,onChange:this.onInputChange,readOnly:!!ci})}},{key:"render",value:function(){var qt=this.props.prefixCls;return i.createElement("div",{className:"".concat(qt,"-input-wrap")},this.getInput())}}]),en}(i.Component);$e(ut,"propTypes",{format:s().string,prefixCls:s().string,disabledDate:s().func,placeholder:s().string,clearText:s().string,value:s().object,inputReadOnly:s().bool,hourOptions:s().array,minuteOptions:s().array,secondOptions:s().array,disabledHours:s().func,disabledMinutes:s().func,disabledSeconds:s().func,onChange:s().func,onEsc:s().func,defaultOpenValue:s().object,currentSelectPanel:s().string,focusOnOpen:s().bool,onKeyDown:s().func,clearIcon:s().node}),$e(ut,"defaultProps",{inputReadOnly:!1});const zt=ut;var Ht=t(93146),Fn=t.n(Ht);function Cn(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function tr(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function Jn(Mn,en,sn){return en&&tr(Mn.prototype,en),sn&&tr(Mn,sn),Mn}function ei(Mn,en){return en&&(typeof en=="object"||typeof en=="function")?en:zi(Mn)}function Ci(Mn){return Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},Ci(Mn)}function zi(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function co(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&Xo(Mn,en)}function Xo(Mn,en){return Xo=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},Xo(Mn,en)}function Eo(Mn,en,sn){return en in Mn?Object.defineProperty(Mn,en,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Mn[en]=sn,Mn}var Yo=function Mn(en,sn,qt){if(qt<=0){Fn()(function(){en.scrollTop=sn});return}var In=sn-en.scrollTop,Kn=In/qt*10;Fn()(function(){en.scrollTop+=Kn,en.scrollTop!==sn&&Mn(en,sn,qt-10)})},Xn=function(Mn){co(en,Mn);function en(){var sn,qt;Cn(this,en);for(var In=arguments.length,Kn=new Array(In),Fr=0;Fr<In;Fr++)Kn[Fr]=arguments[Fr];return qt=ei(this,(sn=Ci(en)).call.apply(sn,[this].concat(Kn))),Eo(zi(qt),"state",{active:!1}),Eo(zi(qt),"onSelect",function(ci){var Le=qt.props,te=Le.onSelect,Ue=Le.type;te(Ue,ci)}),Eo(zi(qt),"handleMouseEnter",function(ci){var Le=qt.props.onMouseEnter;qt.setState({active:!0}),Le(ci)}),Eo(zi(qt),"handleMouseLeave",function(){qt.setState({active:!1})}),Eo(zi(qt),"saveList",function(ci){qt.list=ci}),qt}return Jn(en,[{key:"componentDidMount",value:function(){this.scrollToSelected(0)}},{key:"componentDidUpdate",value:function(qt){var In=this.props.selectedIndex;qt.selectedIndex!==In&&this.scrollToSelected(120)}},{key:"getOptions",value:function(){var qt=this,In=this.props,Kn=In.options,Fr=In.selectedIndex,ci=In.prefixCls,Le=In.onEsc;return Kn.map(function(te,Ue){var rt,ht=ne()((rt={},Eo(rt,"".concat(ci,"-select-option-selected"),Fr===Ue),Eo(rt,"".concat(ci,"-select-option-disabled"),te.disabled),rt)),Gt=te.disabled?void 0:function(){qt.onSelect(te.value)},xn=function(wr){wr.keyCode===13?Gt():wr.keyCode===27&&Le()};return i.createElement("li",{role:"button",onClick:Gt,className:ht,key:Ue,disabled:te.disabled,tabIndex:"0",onKeyDown:xn},te.value)})}},{key:"scrollToSelected",value:function(qt){var In=this.props.selectedIndex,Kn=v.findDOMNode(this),Fr=v.findDOMNode(this.list);if(Fr){var ci=In;ci<0&&(ci=0);var Le=Fr.children[ci],te=Le.offsetTop;Yo(Kn,te,qt)}}},{key:"render",value:function(){var qt=this.props,In=qt.prefixCls,Kn=qt.options,Fr=this.state.active;if(Kn.length===0)return null;var ci=ne()("".concat(In,"-select"),Eo({},"".concat(In,"-select-active"),Fr));return i.createElement("div",{className:ci,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i.createElement("ul",{ref:this.saveList},this.getOptions()))}}]),en}(i.Component);Eo(Xn,"propTypes",{prefixCls:s().string,options:s().array,selectedIndex:s().number,type:s().string,onSelect:s().func,onMouseEnter:s().func,onEsc:s().func});const fr=Xn;function mr(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function yr(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function Rr(Mn,en,sn){return en&&yr(Mn.prototype,en),sn&&yr(Mn,sn),Mn}function ai(Mn,en){return en&&(typeof en=="object"||typeof en=="function")?en:Pn(Mn)}function jt(Mn){return jt=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},jt(Mn)}function Pn(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function nr(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&Ir(Mn,en)}function Ir(Mn,en){return Ir=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},Ir(Mn,en)}function fi(Mn,en,sn){return en in Mn?Object.defineProperty(Mn,en,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Mn[en]=sn,Mn}var Ti=function(en,sn){var qt="".concat(en);en<10&&(qt="0".concat(en));var In=!1;return sn&&sn.indexOf(en)>=0&&(In=!0),{value:qt,disabled:In}},Oe=function(Mn){nr(en,Mn);function en(){var sn,qt;mr(this,en);for(var In=arguments.length,Kn=new Array(In),Fr=0;Fr<In;Fr++)Kn[Fr]=arguments[Fr];return qt=ai(this,(sn=jt(en)).call.apply(sn,[this].concat(Kn))),fi(Pn(qt),"onItemChange",function(ci,Le){var te=qt.props,Ue=te.onChange,rt=te.defaultOpenValue,ht=te.use12Hours,Gt=te.value,xn=te.isAM,Hn=te.onAmPmChange,wr=(Gt||rt).clone();if(ci==="hour")ht?xn?wr.hour(+Le%12):wr.hour(+Le%12+12):wr.hour(+Le);else if(ci==="minute")wr.minute(+Le);else if(ci==="ampm"){var Wr=Le.toUpperCase();ht&&(Wr==="PM"&&wr.hour()<12&&wr.hour(wr.hour()%12+12),Wr==="AM"&&wr.hour()>=12&&wr.hour(wr.hour()-12)),Hn(Wr)}else wr.second(+Le);Ue(wr)}),fi(Pn(qt),"onEnterSelectPanel",function(ci){var Le=qt.props.onCurrentSelectPanelChange;Le(ci)}),qt}return Rr(en,[{key:"getHourSelect",value:function(qt){var In=this,Kn=this.props,Fr=Kn.prefixCls,ci=Kn.hourOptions,Le=Kn.disabledHours,te=Kn.showHour,Ue=Kn.use12Hours,rt=Kn.onEsc;if(!te)return null;var ht=Le(),Gt,xn;return Ue?(Gt=[12].concat(ci.filter(function(Hn){return Hn<12&&Hn>0})),xn=qt%12||12):(Gt=ci,xn=qt),i.createElement(fr,{prefixCls:Fr,options:Gt.map(function(Hn){return Ti(Hn,ht)}),selectedIndex:Gt.indexOf(xn),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return In.onEnterSelectPanel("hour")},onEsc:rt})}},{key:"getMinuteSelect",value:function(qt){var In=this,Kn=this.props,Fr=Kn.prefixCls,ci=Kn.minuteOptions,Le=Kn.disabledMinutes,te=Kn.defaultOpenValue,Ue=Kn.showMinute,rt=Kn.value,ht=Kn.onEsc;if(!Ue)return null;var Gt=rt||te,xn=Le(Gt.hour());return i.createElement(fr,{prefixCls:Fr,options:ci.map(function(Hn){return Ti(Hn,xn)}),selectedIndex:ci.indexOf(qt),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return In.onEnterSelectPanel("minute")},onEsc:ht})}},{key:"getSecondSelect",value:function(qt){var In=this,Kn=this.props,Fr=Kn.prefixCls,ci=Kn.secondOptions,Le=Kn.disabledSeconds,te=Kn.showSecond,Ue=Kn.defaultOpenValue,rt=Kn.value,ht=Kn.onEsc;if(!te)return null;var Gt=rt||Ue,xn=Le(Gt.hour(),Gt.minute());return i.createElement(fr,{prefixCls:Fr,options:ci.map(function(Hn){return Ti(Hn,xn)}),selectedIndex:ci.indexOf(qt),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return In.onEnterSelectPanel("second")},onEsc:ht})}},{key:"getAMPMSelect",value:function(){var qt=this,In=this.props,Kn=In.prefixCls,Fr=In.use12Hours,ci=In.format,Le=In.isAM,te=In.onEsc;if(!Fr)return null;var Ue=["am","pm"].map(function(ht){return ci.match(/\sA/)?ht.toUpperCase():ht}).map(function(ht){return{value:ht}}),rt=Le?0:1;return i.createElement(fr,{prefixCls:Kn,options:Ue,selectedIndex:rt,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return qt.onEnterSelectPanel("ampm")},onEsc:te})}},{key:"render",value:function(){var qt=this.props,In=qt.prefixCls,Kn=qt.defaultOpenValue,Fr=qt.value,ci=Fr||Kn;return i.createElement("div",{className:"".concat(In,"-combobox")},this.getHourSelect(ci.hour()),this.getMinuteSelect(ci.minute()),this.getSecondSelect(ci.second()),this.getAMPMSelect(ci.hour()))}}]),en}(i.Component);fi(Oe,"propTypes",{format:s().string,defaultOpenValue:s().object,prefixCls:s().string,value:s().object,onChange:s().func,onAmPmChange:s().func,showHour:s().bool,showMinute:s().bool,showSecond:s().bool,hourOptions:s().array,minuteOptions:s().array,secondOptions:s().array,disabledHours:s().func,disabledMinutes:s().func,disabledSeconds:s().func,onCurrentSelectPanelChange:s().func,use12Hours:s().bool,onEsc:s().func,isAM:s().bool});const pn=Oe;function Qn(Mn,en){var sn=Object.keys(Mn);if(Object.getOwnPropertySymbols){var qt=Object.getOwnPropertySymbols(Mn);en&&(qt=qt.filter(function(In){return Object.getOwnPropertyDescriptor(Mn,In).enumerable})),sn.push.apply(sn,qt)}return sn}function Sr(Mn){for(var en=1;en<arguments.length;en++){var sn=arguments[en]!=null?arguments[en]:{};en%2?Qn(Object(sn),!0).forEach(function(qt){Nr(Mn,qt,sn[qt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mn,Object.getOwnPropertyDescriptors(sn)):Qn(Object(sn)).forEach(function(qt){Object.defineProperty(Mn,qt,Object.getOwnPropertyDescriptor(sn,qt))})}return Mn}function hr(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function kr(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function Ve(Mn,en,sn){return en&&kr(Mn.prototype,en),sn&&kr(Mn,sn),Mn}function Ot(Mn,en){return en&&(typeof en=="object"||typeof en=="function")?en:Wt(Mn)}function wn(Mn){return wn=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},wn(Mn)}function Wt(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function Yt(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&zn(Mn,en)}function zn(Mn,en){return zn=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},zn(Mn,en)}function Nr(Mn,en,sn){return en in Mn?Object.defineProperty(Mn,en,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Mn[en]=sn,Mn}function si(){}function Ki(Mn,en,sn){for(var qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,In=[],Kn=0;Kn<Mn;Kn+=qt)(!en||en.indexOf(Kn)<0||!sn)&&In.push(Kn);return In}function Bi(Mn,en,sn,qt){var In=en.slice().sort(function(ci,Le){return Math.abs(Mn.hour()-ci)-Math.abs(Mn.hour()-Le)})[0],Kn=sn.slice().sort(function(ci,Le){return Math.abs(Mn.minute()-ci)-Math.abs(Mn.minute()-Le)})[0],Fr=qt.slice().sort(function(ci,Le){return Math.abs(Mn.second()-ci)-Math.abs(Mn.second()-Le)})[0];return Yn()("".concat(In,":").concat(Kn,":").concat(Fr),"HH:mm:ss")}var Xi=function(Mn){Yt(en,Mn);function en(){var sn,qt;hr(this,en);for(var In=arguments.length,Kn=new Array(In),Fr=0;Fr<In;Fr++)Kn[Fr]=arguments[Fr];return qt=Ot(this,(sn=wn(en)).call.apply(sn,[this].concat(Kn))),Nr(Wt(qt),"state",{}),Nr(Wt(qt),"onChange",function(ci){var Le=qt.props.onChange;qt.setState({value:ci}),Le(ci)}),Nr(Wt(qt),"onAmPmChange",function(ci){var Le=qt.props.onAmPmChange;Le(ci)}),Nr(Wt(qt),"onCurrentSelectPanelChange",function(ci){qt.setState({currentSelectPanel:ci})}),Nr(Wt(qt),"disabledHours",function(){var ci=qt.props,Le=ci.use12Hours,te=ci.disabledHours,Ue=te();return Le&&Array.isArray(Ue)&&(qt.isAM()?Ue=Ue.filter(function(rt){return rt<12}).map(function(rt){return rt===0?12:rt}):Ue=Ue.map(function(rt){return rt===12?12:rt-12})),Ue}),qt}return Ve(en,[{key:"close",value:function(){var qt=this.props.onEsc;qt()}},{key:"isAM",value:function(){var qt=this.props.defaultOpenValue,In=this.state.value,Kn=In||qt;return Kn.hour()>=0&&Kn.hour()<12}},{key:"render",value:function(){var qt=this.props,In=qt.prefixCls,Kn=qt.className,Fr=qt.placeholder,ci=qt.disabledMinutes,Le=qt.disabledSeconds,te=qt.hideDisabledOptions,Ue=qt.showHour,rt=qt.showMinute,ht=qt.showSecond,Gt=qt.format,xn=qt.defaultOpenValue,Hn=qt.clearText,wr=qt.onEsc,Wr=qt.addon,vt=qt.use12Hours,Vt=qt.focusOnOpen,dn=qt.onKeyDown,yn=qt.hourStep,ar=qt.minuteStep,wi=qt.secondStep,mi=qt.inputReadOnly,ho=qt.clearIcon,Ao=this.state,Mo=Ao.value,bo=Ao.currentSelectPanel,ca=this.disabledHours(),sa=ci(Mo?Mo.hour():null),Da=Le(Mo?Mo.hour():null,Mo?Mo.minute():null),La=Ki(24,ca,te,yn),Ja=Ki(60,sa,te,ar),Ya=Ki(60,Da,te,wi),Aa=Bi(xn,La,Ja,Ya);return i.createElement("div",{className:ne()(Kn,"".concat(In,"-inner"))},i.createElement(zt,{clearText:Hn,prefixCls:In,defaultOpenValue:Aa,value:Mo,currentSelectPanel:bo,onEsc:wr,format:Gt,placeholder:Fr,hourOptions:La,minuteOptions:Ja,secondOptions:Ya,disabledHours:this.disabledHours,disabledMinutes:ci,disabledSeconds:Le,onChange:this.onChange,focusOnOpen:Vt,onKeyDown:dn,inputReadOnly:mi,clearIcon:ho}),i.createElement(pn,{prefixCls:In,value:Mo,defaultOpenValue:Aa,format:Gt,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:Ue,showMinute:rt,showSecond:ht,hourOptions:La,minuteOptions:Ja,secondOptions:Ya,disabledHours:this.disabledHours,disabledMinutes:ci,disabledSeconds:Le,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:vt,onEsc:wr,isAM:this.isAM()}),Wr(this))}}],[{key:"getDerivedStateFromProps",value:function(qt,In){return"value"in qt?Sr({},In,{value:qt.value}):null}}]),en}(i.Component);Nr(Xi,"propTypes",{clearText:s().string,prefixCls:s().string,className:s().string,defaultOpenValue:s().object,value:s().object,placeholder:s().string,format:s().string,inputReadOnly:s().bool,disabledHours:s().func,disabledMinutes:s().func,disabledSeconds:s().func,hideDisabledOptions:s().bool,onChange:s().func,onAmPmChange:s().func,onEsc:s().func,showHour:s().bool,showMinute:s().bool,showSecond:s().bool,use12Hours:s().bool,hourStep:s().number,minuteStep:s().number,secondStep:s().number,addon:s().func,focusOnOpen:s().bool,onKeyDown:s().func,clearIcon:s().node}),Nr(Xi,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:si,disabledHours:si,disabledMinutes:si,disabledSeconds:si,defaultOpenValue:Yn()(),use12Hours:!1,addon:si,onKeyDown:si,onAmPmChange:si,inputReadOnly:!1}),(0,h.M)(Xi);const vo=Xi;var ea={adjustX:1,adjustY:1},la=[0,0],ss={bottomLeft:{points:["tl","tl"],overflow:ea,offset:[0,-3],targetOffset:la},bottomRight:{points:["tr","tr"],overflow:ea,offset:[0,-3],targetOffset:la},topRight:{points:["br","br"],overflow:ea,offset:[0,3],targetOffset:la},topLeft:{points:["bl","bl"],overflow:ea,offset:[0,3],targetOffset:la}};const Rs=ss;function Ds(Mn,en){var sn=Object.keys(Mn);if(Object.getOwnPropertySymbols){var qt=Object.getOwnPropertySymbols(Mn);en&&(qt=qt.filter(function(In){return Object.getOwnPropertyDescriptor(Mn,In).enumerable})),sn.push.apply(sn,qt)}return sn}function Is(Mn){for(var en=1;en<arguments.length;en++){var sn=arguments[en]!=null?arguments[en]:{};en%2?Ds(Object(sn),!0).forEach(function(qt){Ts(Mn,qt,sn[qt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mn,Object.getOwnPropertyDescriptors(sn)):Ds(Object(sn)).forEach(function(qt){Object.defineProperty(Mn,qt,Object.getOwnPropertyDescriptor(sn,qt))})}return Mn}function nu(Mn,en){if(!(Mn instanceof en))throw new TypeError("Cannot call a class as a function")}function Ls(Mn,en){for(var sn=0;sn<en.length;sn++){var qt=en[sn];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Mn,qt.key,qt)}}function gu(Mn,en,sn){return en&&Ls(Mn.prototype,en),sn&&Ls(Mn,sn),Mn}function Us(Mn,en){return en&&(typeof en=="object"||typeof en=="function")?en:Wu(Mn)}function Iu(Mn){return Iu=Object.setPrototypeOf?Object.getPrototypeOf:function(sn){return sn.__proto__||Object.getPrototypeOf(sn)},Iu(Mn)}function Wu(Mn){if(Mn===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn}function rl(Mn,en){if(typeof en!="function"&&en!==null)throw new TypeError("Super expression must either be null or a function");Mn.prototype=Object.create(en&&en.prototype,{constructor:{value:Mn,writable:!0,configurable:!0}}),en&&Hu(Mn,en)}function Hu(Mn,en){return Hu=Object.setPrototypeOf||function(qt,In){return qt.__proto__=In,qt},Hu(Mn,en)}function Ts(Mn,en,sn){return en in Mn?Object.defineProperty(Mn,en,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Mn[en]=sn,Mn}function Al(){}function fl(Mn,en){this[Mn]=en}var Rl=function(Mn){rl(en,Mn);function en(sn){var qt;nu(this,en),qt=Us(this,Iu(en).call(this,sn)),Ts(Wu(qt),"onPanelChange",function(Ue){qt.setValue(Ue)}),Ts(Wu(qt),"onAmPmChange",function(Ue){var rt=qt.props.onAmPmChange;rt(Ue)}),Ts(Wu(qt),"onClear",function(Ue){Ue.stopPropagation(),qt.setValue(null),qt.setOpen(!1)}),Ts(Wu(qt),"onVisibleChange",function(Ue){qt.setOpen(Ue)}),Ts(Wu(qt),"onEsc",function(){qt.setOpen(!1),qt.focus()}),Ts(Wu(qt),"onKeyDown",function(Ue){Ue.keyCode===40&&qt.setOpen(!0)}),qt.saveInputRef=fl.bind(Wu(qt),"picker"),qt.savePanelRef=fl.bind(Wu(qt),"panelInstance");var In=sn.defaultOpen,Kn=sn.defaultValue,Fr=sn.open,ci=Fr===void 0?In:Fr,Le=sn.value,te=Le===void 0?Kn:Le;return qt.state={open:ci,value:te},qt}return gu(en,[{key:"setValue",value:function(qt){var In=this.props.onChange;"value"in this.props||this.setState({value:qt}),In(qt)}},{key:"getFormat",value:function(){var qt=this.props,In=qt.format,Kn=qt.showHour,Fr=qt.showMinute,ci=qt.showSecond,Le=qt.use12Hours;if(In)return In;if(Le){var te=[Kn?"h":"",Fr?"mm":"",ci?"ss":""].filter(function(Ue){return!!Ue}).join(":");return te.concat(" a")}return[Kn?"HH":"",Fr?"mm":"",ci?"ss":""].filter(function(Ue){return!!Ue}).join(":")}},{key:"getPanelElement",value:function(){var qt=this.props,In=qt.prefixCls,Kn=qt.placeholder,Fr=qt.disabledHours,ci=qt.disabledMinutes,Le=qt.disabledSeconds,te=qt.hideDisabledOptions,Ue=qt.inputReadOnly,rt=qt.showHour,ht=qt.showMinute,Gt=qt.showSecond,xn=qt.defaultOpenValue,Hn=qt.clearText,wr=qt.addon,Wr=qt.use12Hours,vt=qt.focusOnOpen,Vt=qt.onKeyDown,dn=qt.hourStep,yn=qt.minuteStep,ar=qt.secondStep,wi=qt.clearIcon,mi=this.state.value;return i.createElement(vo,{clearText:Hn,prefixCls:"".concat(In,"-panel"),ref:this.savePanelRef,value:mi,inputReadOnly:Ue,onChange:this.onPanelChange,onAmPmChange:this.onAmPmChange,defaultOpenValue:xn,showHour:rt,showMinute:ht,showSecond:Gt,onEsc:this.onEsc,format:this.getFormat(),placeholder:Kn,disabledHours:Fr,disabledMinutes:ci,disabledSeconds:Le,hideDisabledOptions:te,use12Hours:Wr,hourStep:dn,minuteStep:yn,secondStep:ar,addon:wr,focusOnOpen:vt,onKeyDown:Vt,clearIcon:wi})}},{key:"getPopupClassName",value:function(){var qt=this.props,In=qt.showHour,Kn=qt.showMinute,Fr=qt.showSecond,ci=qt.use12Hours,Le=qt.prefixCls,te=qt.popupClassName,Ue=0;return In&&(Ue+=1),Kn&&(Ue+=1),Fr&&(Ue+=1),ci&&(Ue+=1),ne()(te,Ts({},"".concat(Le,"-panel-narrow"),(!In||!Kn||!Fr)&&!ci),"".concat(Le,"-panel-column-").concat(Ue))}},{key:"setOpen",value:function(qt){var In=this.props,Kn=In.onOpen,Fr=In.onClose,ci=this.state.open;ci!==qt&&("open"in this.props||this.setState({open:qt}),qt?Kn({open:qt}):Fr({open:qt}))}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"renderClearButton",value:function(){var qt=this,In=this.state.value,Kn=this.props,Fr=Kn.prefixCls,ci=Kn.allowEmpty,Le=Kn.clearIcon,te=Kn.clearText,Ue=Kn.disabled;if(!ci||!In||Ue)return null;if(i.isValidElement(Le)){var rt=Le.props||{},ht=rt.onClick;return i.cloneElement(Le,{onClick:function(){ht&&ht.apply(void 0,arguments),qt.onClear.apply(qt,arguments)}})}return i.createElement("a",{role:"button",className:"".concat(Fr,"-clear"),title:te,onClick:this.onClear,tabIndex:0},Le||i.createElement("i",{className:"".concat(Fr,"-clear-icon")}))}},{key:"render",value:function(){var qt=this.props,In=qt.prefixCls,Kn=qt.placeholder,Fr=qt.placement,ci=qt.align,Le=qt.id,te=qt.disabled,Ue=qt.transitionName,rt=qt.style,ht=qt.className,Gt=qt.getPopupContainer,xn=qt.name,Hn=qt.autoComplete,wr=qt.onFocus,Wr=qt.onBlur,vt=qt.autoFocus,Vt=qt.inputReadOnly,dn=qt.inputIcon,yn=qt.popupStyle,ar=this.state,wi=ar.open,mi=ar.value,ho=this.getPopupClassName();return i.createElement(Jo,{prefixCls:"".concat(In,"-panel"),popupClassName:ho,popupStyle:yn,popup:this.getPanelElement(),popupAlign:ci,builtinPlacements:Rs,popupPlacement:Fr,action:te?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:Gt,popupTransitionName:Ue,popupVisible:wi,onPopupVisibleChange:this.onVisibleChange},i.createElement("span",{className:ne()(In,ht),style:rt},i.createElement("input",{className:"".concat(In,"-input"),ref:this.saveInputRef,type:"text",placeholder:Kn,name:xn,onKeyDown:this.onKeyDown,disabled:te,value:mi&&mi.format(this.getFormat())||"",autoComplete:Hn,onFocus:wr,onBlur:Wr,autoFocus:vt,onChange:Al,readOnly:!!Vt,id:Le}),dn||i.createElement("span",{className:"".concat(In,"-icon")}),this.renderClearButton()))}}],[{key:"getDerivedStateFromProps",value:function(qt,In){var Kn={};return"value"in qt&&(Kn.value=qt.value),qt.open!==void 0&&(Kn.open=qt.open),Object.keys(Kn).length>0?Is({},In,{},Kn):null}}]),en}(i.Component);Ts(Rl,"propTypes",{prefixCls:s().string,clearText:s().string,value:s().object,defaultOpenValue:s().object,inputReadOnly:s().bool,disabled:s().bool,allowEmpty:s().bool,defaultValue:s().object,open:s().bool,defaultOpen:s().bool,align:s().object,placement:s().any,transitionName:s().string,getPopupContainer:s().func,placeholder:s().string,format:s().string,showHour:s().bool,showMinute:s().bool,showSecond:s().bool,style:s().object,className:s().string,popupClassName:s().string,popupStyle:s().object,disabledHours:s().func,disabledMinutes:s().func,disabledSeconds:s().func,hideDisabledOptions:s().bool,onChange:s().func,onAmPmChange:s().func,onOpen:s().func,onClose:s().func,onFocus:s().func,onBlur:s().func,addon:s().func,name:s().string,autoComplete:s().string,use12Hours:s().bool,hourStep:s().number,minuteStep:s().number,secondStep:s().number,focusOnOpen:s().bool,onKeyDown:s().func,autoFocus:s().bool,id:s().string,inputIcon:s().node,clearIcon:s().node}),Ts(Rl,"defaultProps",{clearText:"clear",prefixCls:"rc-time-picker",defaultOpen:!1,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{},align:{},defaultOpenValue:Yn()(),allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:Al,disabledMinutes:Al,disabledSeconds:Al,hideDisabledOptions:!1,placement:"bottomLeft",onChange:Al,onAmPmChange:Al,onOpen:Al,onClose:Al,onFocus:Al,onBlur:Al,addon:Al,use12Hours:!1,focusOnOpen:!1,onKeyDown:Al}),(0,h.M)(Rl);const Bu=Rl},80427:(J,g,t)=>{"use strict";t.d(g,{A:()=>M});var i=t(46942),l=t.n(i),s=t(96540);function m(D){var P=D.children,T=D.prefixCls,A=D.id,j=D.overlayInnerStyle,ae=D.className,_=D.style;return s.createElement("div",{className:l()("".concat(T,"-content"),ae),style:_},s.createElement("div",{className:"".concat(T,"-inner"),id:A,role:"tooltip",style:j},typeof P=="function"?P():P))}var u=t(58168),f=t(89379),p=t(80045),v=t(1045),h={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},b=[0,0],y={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:b},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:b},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:b},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:b},topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:b},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:b},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:b},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:b},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:b},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:b},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:b}};const w=null;var S=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],O=function(P,T){var A=P.overlayClassName,j=P.trigger,ae=j===void 0?["hover"]:j,_=P.mouseEnterDelay,N=_===void 0?0:_,W=P.mouseLeaveDelay,he=W===void 0?.1:W,me=P.overlayStyle,fe=P.prefixCls,ve=fe===void 0?"rc-tooltip":fe,ce=P.children,oe=P.onVisibleChange,re=P.afterVisibleChange,H=P.transitionName,V=P.animation,Q=P.motion,Te=P.placement,Re=Te===void 0?"right":Te,ne=P.align,pe=ne===void 0?{}:ne,ye=P.destroyTooltipOnHide,Se=ye===void 0?!1:ye,Ae=P.defaultVisible,Ee=P.getTooltipContainer,xe=P.overlayInnerStyle,nt=P.arrowContent,Tt=P.overlay,pt=P.id,Rt=P.showArrow,tt=Rt===void 0?!0:Rt,U=(0,p.A)(P,S),F=(0,s.useRef)(null);(0,s.useImperativeHandle)(T,function(){return F.current});var Y=(0,f.A)({},U);"visible"in P&&(Y.popupVisible=P.visible);var le=function(){return s.createElement(m,{key:"content",prefixCls:ve,id:pt,overlayInnerStyle:xe},Tt)};return s.createElement(v.A,(0,u.A)({popupClassName:A,prefixCls:ve,popup:le,action:ae,builtinPlacements:y,popupPlacement:Re,ref:F,popupAlign:pe,getPopupContainer:Ee,onPopupVisibleChange:oe,afterPopupVisibleChange:re,popupTransitionName:H,popupAnimation:V,popupMotion:Q,defaultPopupVisible:Ae,autoDestroy:Se,mouseLeaveDelay:he,popupStyle:me,mouseEnterDelay:N,arrow:tt},Y),ce)};const M=(0,s.forwardRef)(O)},38820:(J,g,t)=>{"use strict";t.d(g,{p:()=>p});var i=t(68210),l=t(84963);function s(v,h){var d=new Set;return v.forEach(function(b){h.has(b)||d.add(b)}),d}function m(v){var h=v||{},d=h.disabled,b=h.disableCheckbox,y=h.checkable;return!!(d||b)||y===!1}function u(v,h,d,b){for(var y=new Set(v),w=new Set,S=0;S<=d;S+=1){var O=h.get(S)||new Set;O.forEach(function(P){var T=P.key,A=P.node,j=P.children,ae=j===void 0?[]:j;y.has(T)&&!b(A)&&ae.filter(function(_){return!b(_.node)}).forEach(function(_){y.add(_.key)})})}for(var R=new Set,M=d;M>=0;M-=1){var D=h.get(M)||new Set;D.forEach(function(P){var T=P.parent,A=P.node;if(!(b(A)||!P.parent||R.has(P.parent.key))){if(b(P.parent.node)){R.add(T.key);return}var j=!0,ae=!1;(T.children||[]).filter(function(_){return!b(_.node)}).forEach(function(_){var N=_.key,W=y.has(N);j&&!W&&(j=!1),!ae&&(W||w.has(N))&&(ae=!0)}),j&&y.add(T.key),ae&&w.add(T.key),R.add(T.key)}})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(s(w,y))}}function f(v,h,d,b,y){for(var w=new Set(v),S=new Set(h),O=0;O<=b;O+=1){var R=d.get(O)||new Set;R.forEach(function(T){var A=T.key,j=T.node,ae=T.children,_=ae===void 0?[]:ae;!w.has(A)&&!S.has(A)&&!y(j)&&_.filter(function(N){return!y(N.node)}).forEach(function(N){w.delete(N.key)})})}S=new Set;for(var M=new Set,D=b;D>=0;D-=1){var P=d.get(D)||new Set;P.forEach(function(T){var A=T.parent,j=T.node;if(!(y(j)||!T.parent||M.has(T.parent.key))){if(y(T.parent.node)){M.add(A.key);return}var ae=!0,_=!1;(A.children||[]).filter(function(N){return!y(N.node)}).forEach(function(N){var W=N.key,he=w.has(W);ae&&!he&&(ae=!1),!_&&(he||S.has(W))&&(_=!0)}),ae||w.delete(A.key),_&&S.add(A.key),M.add(A.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(s(S,w))}}function p(v,h,d,b){var y=[],w;b?w=b:w=m;var S=new Set(v.filter(function(D){var P=!!(0,l.A)(d,D);return P||y.push(D),P})),O=new Map,R=0;Object.keys(d).forEach(function(D){var P=d[D],T=P.level,A=O.get(T);A||(A=new Set,O.set(T,A)),A.add(P),R=Math.max(R,T)}),(0,i.Ay)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(D){return"'".concat(D,"'")}).join(", ")));var M;return h===!0?M=u(S,O,R,w):M=f(S,h.halfCheckedKeys,O,R,w),M}},84963:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){return l[s]}},7974:(J,g,t)=>{"use strict";t.d(g,{$9:()=>R,AZ:()=>w,Hj:()=>T,N5:()=>P,cG:()=>D,i7:()=>y,vH:()=>O});var i=t(82284),l=t(60436),s=t(89379),m=t(80045),u=t(82546),f=t(19853),p=t(68210),v=t(84963),h=["children"];function d(A,j){return"".concat(A,"-").concat(j)}function b(A){return A&&A.type&&A.type.isTreeNode}function y(A,j){return A??j}function w(A){var j=A||{},ae=j.title,_=j._title,N=j.key,W=j.children,he=ae||"title";return{title:he,_title:_||[he],key:N||"key",children:W||"children"}}function S(A,j){var ae=new Map;function _(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(he){var me=he[j.key],fe=he[j.children];warning(me!=null,"Tree node must have a certain key: [".concat(W).concat(me,"]"));var ve=String(me);warning(!ae.has(ve)||me===null||me===void 0,"Same 'key' exist in the Tree: ".concat(ve)),ae.set(ve,!0),_(fe,"".concat(W).concat(ve," > "))})}_(A)}function O(A){function j(ae){var _=(0,u.A)(ae);return _.map(function(N){if(!b(N))return(0,p.Ay)(!N,"Tree/TreeNode can only accept TreeNode as children."),null;var W=N.key,he=N.props,me=he.children,fe=(0,m.A)(he,h),ve=(0,s.A)({key:W},fe),ce=j(me);return ce.length&&(ve.children=ce),ve}).filter(function(N){return N})}return j(A)}function R(A,j,ae){var _=w(ae),N=_._title,W=_.key,he=_.children,me=new Set(j===!0?[]:j),fe=[];function ve(ce){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ce.map(function(re,H){for(var V=d(oe?oe.pos:"0",H),Q=y(re[W],V),Te,Re=0;Re<N.length;Re+=1){var ne=N[Re];if(re[ne]!==void 0){Te=re[ne];break}}var pe=(0,s.A)((0,s.A)({},(0,f.A)(re,[].concat((0,l.A)(N),[W,he]))),{},{title:Te,key:Q,parent:oe,pos:V,children:null,data:re,isStart:[].concat((0,l.A)(oe?oe.isStart:[]),[H===0]),isEnd:[].concat((0,l.A)(oe?oe.isEnd:[]),[H===ce.length-1])});return fe.push(pe),j===!0||me.has(Q)?pe.children=ve(re[he]||[],pe):pe.children=[],pe})}return ve(A),fe}function M(A,j,ae){var _={};(0,i.A)(ae)==="object"?_=ae:_={externalGetKey:ae},_=_||{};var N=_,W=N.childrenPropName,he=N.externalGetKey,me=N.fieldNames,fe=w(me),ve=fe.key,ce=fe.children,oe=W||ce,re;he?typeof he=="string"?re=function(Q){return Q[he]}:typeof he=="function"&&(re=function(Q){return he(Q)}):re=function(Q,Te){return y(Q[ve],Te)};function H(V,Q,Te,Re){var ne=V?V[oe]:A,pe=V?d(Te.pos,Q):"0",ye=V?[].concat((0,l.A)(Re),[V]):[];if(V){var Se=re(V,pe),Ae={node:V,index:Q,pos:pe,key:Se,parentPos:Te.node?Te.pos:null,level:Te.level+1,nodes:ye};j(Ae)}ne&&ne.forEach(function(Ee,xe){H(Ee,xe,{node:V,pos:pe,level:Te?Te.level+1:-1},ye)})}H(null)}function D(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=j.initWrapper,_=j.processEntity,N=j.onProcessFinished,W=j.externalGetKey,he=j.childrenPropName,me=j.fieldNames,fe=arguments.length>2?arguments[2]:void 0,ve=W||fe,ce={},oe={},re={posEntities:ce,keyEntities:oe};return ae&&(re=ae(re)||re),M(A,function(H){var V=H.node,Q=H.index,Te=H.pos,Re=H.key,ne=H.parentPos,pe=H.level,ye=H.nodes,Se={node:V,nodes:ye,index:Q,key:Re,pos:Te,level:pe},Ae=y(Re,Te);ce[Te]=Se,oe[Ae]=Se,Se.parent=ce[ne],Se.parent&&(Se.parent.children=Se.parent.children||[],Se.parent.children.push(Se)),_&&_(Se,re)},{externalGetKey:ve,childrenPropName:he,fieldNames:me}),N&&N(re),re}function P(A,j){var ae=j.expandedKeys,_=j.selectedKeys,N=j.loadedKeys,W=j.loadingKeys,he=j.checkedKeys,me=j.halfCheckedKeys,fe=j.dragOverNodeKey,ve=j.dropPosition,ce=j.keyEntities,oe=(0,v.A)(ce,A),re={eventKey:A,expanded:ae.indexOf(A)!==-1,selected:_.indexOf(A)!==-1,loaded:N.indexOf(A)!==-1,loading:W.indexOf(A)!==-1,checked:he.indexOf(A)!==-1,halfChecked:me.indexOf(A)!==-1,pos:String(oe?oe.pos:""),dragOver:fe===A&&ve===0,dragOverGapTop:fe===A&&ve===-1,dragOverGapBottom:fe===A&&ve===1};return re}function T(A){var j=A.data,ae=A.expanded,_=A.selected,N=A.checked,W=A.loaded,he=A.loading,me=A.halfChecked,fe=A.dragOver,ve=A.dragOverGapTop,ce=A.dragOverGapBottom,oe=A.pos,re=A.active,H=A.eventKey,V=(0,s.A)((0,s.A)({},j),{},{expanded:ae,selected:_,checked:N,loaded:W,loading:he,halfChecked:me,dragOver:fe,dragOverGapTop:ve,dragOverGapBottom:ce,pos:oe,active:re,key:H});return"props"in V||Object.defineProperty(V,"props",{get:function(){return(0,p.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),A}}),V}},82546:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(96540),l=t(44363);function s(m){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[];return i.Children.forEach(m,function(p){p==null&&!u.keepEmpty||(Array.isArray(p)?f=f.concat(s(p)):(0,l.isFragment)(p)&&p.props?f=f.concat(s(p.props.children,u)):f.push(p))}),f}},20998:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},66588:(J,g,t)=>{"use strict";t.d(g,{A:()=>m,f:()=>s});var i=t(96540),l=t(40961);function s(u){return u instanceof HTMLElement||u instanceof SVGElement}function m(u){return s(u)?u:u instanceof i.Component?l.findDOMNode(u):null}},16928:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(m){var u=m.keyCode;if(m.altKey&&!m.ctrlKey||m.metaKey||u>=i.F1&&u<=i.F12)return!1;switch(u){case i.ALT:case i.CAPS_LOCK:case i.CONTEXT_MENU:case i.CTRL:case i.DOWN:case i.END:case i.ESC:case i.HOME:case i.INSERT:case i.LEFT:case i.MAC_FF_META:case i.META:case i.NUMLOCK:case i.NUM_CENTER:case i.PAGE_DOWN:case i.PAGE_UP:case i.PAUSE:case i.PRINT_SCREEN:case i.RIGHT:case i.SHIFT:case i.UP:case i.WIN_KEY:case i.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(m){if(m>=i.ZERO&&m<=i.NINE||m>=i.NUM_ZERO&&m<=i.NUM_MULTIPLY||m>=i.A&&m<=i.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&m===0)return!0;switch(m){case i.SPACE:case i.QUESTION_MARK:case i.NUM_PLUS:case i.NUM_MINUS:case i.NUM_PERIOD:case i.NUM_DIVISION:case i.SEMICOLON:case i.DASH:case i.EQUALS:case i.COMMA:case i.PERIOD:case i.SLASH:case i.APOSTROPHE:case i.SINGLE_QUOTE:case i.OPEN_SQUARE_BRACKET:case i.BACKSLASH:case i.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const l=i},26956:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(96540);function l(s){var m=i.useRef();m.current=s;var u=i.useCallback(function(){for(var f,p=arguments.length,v=new Array(p),h=0;h<p;h++)v[h]=arguments[h];return(f=m.current)===null||f===void 0?void 0:f.call.apply(f,[m].concat(v))},[]);return u}},30981:(J,g,t)=>{"use strict";t.d(g,{A:()=>f,o:()=>u});var i=t(96540),l=t(20998),s=(0,l.A)()?i.useLayoutEffect:i.useEffect,m=function(v,h){var d=i.useRef(!0);s(function(){return v(d.current)},h),s(function(){return d.current=!1,function(){d.current=!0}},[])},u=function(v,h){m(function(d){if(!d)return v()},h)};const f=m},28104:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(96540);function l(s,m,u){var f=i.useRef({});return(!("value"in f.current)||u(f.current.condition,m))&&(f.current.value=s(),f.current.condition=m),f.current.value}},12533:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(5544),l=t(26956),s=t(30981),m=t(1233);function u(p){return p!==void 0}function f(p,v){var h=v||{},d=h.defaultValue,b=h.value,y=h.onChange,w=h.postState,S=(0,m.A)(function(){return u(b)?b:u(d)?typeof d=="function"?d():d:typeof p=="function"?p():p}),O=(0,i.A)(S,2),R=O[0],M=O[1],D=b!==void 0?b:R,P=w?w(D):D,T=(0,l.A)(y),A=(0,m.A)([D]),j=(0,i.A)(A,2),ae=j[0],_=j[1];(0,s.o)(function(){var W=ae[0];R!==W&&T(R,W)},[ae]),(0,s.o)(function(){u(b)||M(b)},[b]);var N=(0,l.A)(function(W,he){M(W,he),_([D],he)});return[P,N]}},1233:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(5544),l=t(96540);function s(m){var u=l.useRef(!1),f=l.useState(m),p=(0,i.A)(f,2),v=p[0],h=p[1];l.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);function d(b,y){y&&u.current||h(b)}return[v,d]}},28295:(J,g,t)=>{"use strict";t.d(g,{xK:()=>s.xK,_q:()=>i.A,vz:()=>l.A});var i=t(26956),l=t(12533),s=t(8719);function m(b,y,w,S){if(!y.length)return w;var O=_toArray(y),R=O[0],M=O.slice(1),D;return!b&&typeof R=="number"?D=[]:Array.isArray(b)?D=_toConsumableArray(b):D=_objectSpread({},b),S&&w===void 0&&M.length===1?delete D[R][M[0]]:D[R]=m(D[R],M,w,S),D}function u(b,y,w){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return y.length&&S&&w===void 0&&!get(b,y.slice(0,-1))?b:m(b,y,w,S)}function f(b){return _typeof(b)==="object"&&b!==null&&Object.getPrototypeOf(b)===Object.prototype}function p(b){return Array.isArray(b)?[]:{}}var v=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function h(){for(var b=arguments.length,y=new Array(b),w=0;w<b;w++)y[w]=arguments[w];var S=p(y[0]);return y.forEach(function(O){function R(M,D){var P=new Set(D),T=get(O,M),A=Array.isArray(T);if(A||f(T)){if(!P.has(T)){P.add(T);var j=get(S,M);A?S=u(S,M,[]):(!j||_typeof(j)!=="object")&&(S=u(S,M,p(T))),v(T).forEach(function(ae){R([].concat(_toConsumableArray(M),[ae]),P)})}}else S=u(S,M,T)}R([])}),S}var d=t(68210)},68430:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var l=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(l)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(l?.substr(0,4))}},19853:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(89379);function l(s,m){var u=(0,i.A)({},s);return Array.isArray(m)&&m.forEach(function(f){delete u[f]}),u}},72065:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});var i=t(89379),l=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,s=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,m="".concat(l," ").concat(s).split(/[\s\n]+/),u="aria-",f="data-";function p(h,d){return h.indexOf(d)===0}function v(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b;d===!1?b={aria:!0,data:!0,attr:!0}:d===!0?b={aria:!0}:b=(0,i.A)({},d);var y={};return Object.keys(h).forEach(function(w){(b.aria&&(w==="role"||p(w,u))||b.data&&p(w,f)||b.attr&&m.includes(w))&&(y[w]=h[w])}),y}},25371:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=function(h){return+setTimeout(h,16)},l=function(h){return clearTimeout(h)};typeof window<"u"&&"requestAnimationFrame"in window&&(i=function(h){return window.requestAnimationFrame(h)},l=function(h){return window.cancelAnimationFrame(h)});var s=0,m=new Map;function u(v){m.delete(v)}var f=function(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;s+=1;var b=s;function y(w){if(w===0)u(b),h();else{var S=i(function(){y(w-1)});m.set(b,S)}}return y(d),b};f.cancel=function(v){var h=m.get(v);return u(h),l(h)};const p=f},8719:(J,g,t)=>{"use strict";t.d(g,{K4:()=>f,Xf:()=>u,f3:()=>v,xK:()=>p});var i=t(82284),l=t(96540),s=t(44363),m=t(28104);function u(d,b){typeof d=="function"?d(b):(0,i.A)(d)==="object"&&d&&"current"in d&&(d.current=b)}function f(){for(var d=arguments.length,b=new Array(d),y=0;y<d;y++)b[y]=arguments[y];var w=b.filter(function(S){return S});return w.length<=1?w[0]:function(S){b.forEach(function(O){u(O,S)})}}function p(){for(var d=arguments.length,b=new Array(d),y=0;y<d;y++)b[y]=arguments[y];return(0,m.A)(function(){return f.apply(void 0,b)},b,function(w,S){return w.length!==S.length||w.every(function(O,R){return O!==S[R]})})}function v(d){var b,y,w=(0,s.isMemo)(d)?d.type.type:d.type;return!(typeof w=="function"&&!((b=w.prototype)!==null&&b!==void 0&&b.render)||typeof d=="function"&&!((y=d.prototype)!==null&&y!==void 0&&y.render))}function h(d){return!isValidElement(d)||isFragment(d)?!1:v(d)}},68210:(J,g,t)=>{"use strict";t.d(g,{$e:()=>m,Ay:()=>d});var i={},l=[],s=function(y){l.push(y)};function m(b,y){if(!1)var w}function u(b,y){if(!1)var w}function f(){i={}}function p(b,y,w){!y&&!i[w]&&(b(!1,w),i[w]=!0)}function v(b,y){p(m,b,y)}function h(b,y){p(u,b,y)}v.preMessage=s,v.resetWarned=f,v.noteOnce=h;const d=v},79889:(J,g,t)=>{"use strict";t.d(g,{A:()=>Ee});var i=t(58168),l=t(89379),s=t(64467),m=t(5544),u=t(80045),f=t(96540),p=t(46942),v=t.n(p),h=t(26076),d=f.forwardRef(function(xe,nt){var Tt=xe.height,pt=xe.offset,Rt=xe.children,tt=xe.prefixCls,U=xe.onInnerResize,F=xe.innerProps,Y={},le={display:"flex",flexDirection:"column"};return pt!==void 0&&(Y={height:Tt,position:"relative",overflow:"hidden"},le=(0,l.A)((0,l.A)({},le),{},{transform:"translateY(".concat(pt,"px)"),position:"absolute",left:0,right:0,top:0})),f.createElement("div",{style:Y},f.createElement(h.A,{onResize:function(Ye){var ft=Ye.offsetHeight;ft&&U&&U()}},f.createElement("div",(0,i.A)({style:le,className:v()((0,s.A)({},"".concat(tt,"-holder-inner"),tt)),ref:nt},F),Rt)))});d.displayName="Filler";const b=d;var y=t(23029),w=t(92901),S=t(85501),O=t(88293),R=t(25371),M=20;function D(xe){return"touches"in xe?xe.touches[0].pageY:xe.pageY}var P=function(xe){(0,S.A)(Tt,xe);var nt=(0,O.A)(Tt);function Tt(){var pt;(0,y.A)(this,Tt);for(var Rt=arguments.length,tt=new Array(Rt),U=0;U<Rt;U++)tt[U]=arguments[U];return pt=nt.call.apply(nt,[this].concat(tt)),pt.moveRaf=null,pt.scrollbarRef=f.createRef(),pt.thumbRef=f.createRef(),pt.visibleTimeout=null,pt.state={dragging:!1,pageY:null,startTop:null,visible:!1},pt.delayHidden=function(){clearTimeout(pt.visibleTimeout),pt.setState({visible:!0}),pt.visibleTimeout=setTimeout(function(){pt.setState({visible:!1})},2e3)},pt.onScrollbarTouchStart=function(F){F.preventDefault()},pt.onContainerMouseDown=function(F){F.stopPropagation(),F.preventDefault()},pt.patchEvents=function(){window.addEventListener("mousemove",pt.onMouseMove),window.addEventListener("mouseup",pt.onMouseUp),pt.thumbRef.current.addEventListener("touchmove",pt.onMouseMove),pt.thumbRef.current.addEventListener("touchend",pt.onMouseUp)},pt.removeEvents=function(){window.removeEventListener("mousemove",pt.onMouseMove),window.removeEventListener("mouseup",pt.onMouseUp),pt.thumbRef.current&&(pt.thumbRef.current.removeEventListener("touchmove",pt.onMouseMove),pt.thumbRef.current.removeEventListener("touchend",pt.onMouseUp)),R.A.cancel(pt.moveRaf)},pt.onMouseDown=function(F){var Y=pt.props.onStartMove;pt.setState({dragging:!0,pageY:D(F),startTop:pt.getTop()}),Y(),pt.patchEvents(),F.stopPropagation(),F.preventDefault()},pt.onMouseMove=function(F){var Y=pt.state,le=Y.dragging,ke=Y.pageY,Ye=Y.startTop,ft=pt.props.onScroll;if(R.A.cancel(pt.moveRaf),le){var wt=D(F)-ke,Ut=Ye+wt,Ke=pt.getEnableScrollRange(),it=pt.getEnableHeightRange(),At=it?Ut/it:0,et=Math.ceil(At*Ke);pt.moveRaf=(0,R.A)(function(){ft(et)})}},pt.onMouseUp=function(){var F=pt.props.onStopMove;pt.setState({dragging:!1}),F(),pt.removeEvents()},pt.getSpinHeight=function(){var F=pt.props,Y=F.height,le=F.count,ke=Y/le*10;return ke=Math.max(ke,M),ke=Math.min(ke,Y/2),Math.floor(ke)},pt.getEnableScrollRange=function(){var F=pt.props,Y=F.scrollHeight,le=F.height;return Y-le||0},pt.getEnableHeightRange=function(){var F=pt.props.height,Y=pt.getSpinHeight();return F-Y||0},pt.getTop=function(){var F=pt.props.scrollTop,Y=pt.getEnableScrollRange(),le=pt.getEnableHeightRange();if(F===0||Y===0)return 0;var ke=F/Y;return ke*le},pt.showScroll=function(){var F=pt.props,Y=F.height,le=F.scrollHeight;return le>Y},pt}return(0,w.A)(Tt,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(Rt){Rt.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var Rt,tt;this.removeEvents(),(Rt=this.scrollbarRef.current)===null||Rt===void 0||Rt.removeEventListener("touchstart",this.onScrollbarTouchStart),(tt=this.thumbRef.current)===null||tt===void 0||tt.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var Rt=this.state,tt=Rt.dragging,U=Rt.visible,F=this.props,Y=F.prefixCls,le=F.direction,ke=this.getSpinHeight(),Ye=this.getTop(),ft=this.showScroll(),wt=ft&&U,Ut=le==="rtl"?{left:0}:{right:0};return f.createElement("div",{ref:this.scrollbarRef,className:v()("".concat(Y,"-scrollbar"),(0,s.A)({},"".concat(Y,"-scrollbar-show"),ft)),style:(0,l.A)((0,l.A)({width:8,top:0,bottom:0},Ut),{},{position:"absolute",display:wt?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f.createElement("div",{ref:this.thumbRef,className:v()("".concat(Y,"-scrollbar-thumb"),(0,s.A)({},"".concat(Y,"-scrollbar-thumb-moving"),tt)),style:{width:"100%",height:ke,top:Ye,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Tt}(f.Component);function T(xe){var nt=xe.children,Tt=xe.setRef,pt=f.useCallback(function(Rt){Tt(Rt)},[]);return f.cloneElement(nt,{ref:pt})}function A(xe,nt,Tt,pt,Rt,tt){var U=tt.getKey;return xe.slice(nt,Tt+1).map(function(F,Y){var le=nt+Y,ke=Rt(F,le,{}),Ye=U(F);return f.createElement(T,{key:Ye,setRef:function(wt){return pt(F,wt)}},ke)})}var j=t(66588),ae=function(){function xe(){(0,y.A)(this,xe),this.maps=void 0,this.maps=Object.create(null)}return(0,w.A)(xe,[{key:"set",value:function(Tt,pt){this.maps[Tt]=pt}},{key:"get",value:function(Tt){return this.maps[Tt]}}]),xe}();const _=ae;function N(xe,nt,Tt){var pt=f.useState(0),Rt=(0,m.A)(pt,2),tt=Rt[0],U=Rt[1],F=(0,f.useRef)(new Map),Y=(0,f.useRef)(new _),le=(0,f.useRef)();function ke(){R.A.cancel(le.current)}function Ye(){ke(),le.current=(0,R.A)(function(){F.current.forEach(function(wt,Ut){if(wt&&wt.offsetParent){var Ke=(0,j.A)(wt),it=Ke.offsetHeight;Y.current.get(Ut)!==it&&Y.current.set(Ut,Ke.offsetHeight)}}),U(function(wt){return wt+1})})}function ft(wt,Ut){var Ke=xe(wt),it=F.current.get(Ke);Ut?(F.current.set(Ke,Ut),Ye()):F.current.delete(Ke),!it!=!Ut&&(Ut?nt?.(wt):Tt?.(wt))}return(0,f.useEffect)(function(){return ke},[]),[ft,Ye,Y.current,tt]}var W=t(82284);function he(xe,nt,Tt,pt,Rt,tt,U,F){var Y=f.useRef();return function(le){if(le==null){F();return}if(R.A.cancel(Y.current),typeof le=="number")U(le);else if(le&&(0,W.A)(le)==="object"){var ke,Ye=le.align;"index"in le?ke=le.index:ke=nt.findIndex(function(Ke){return Rt(Ke)===le.key});var ft=le.offset,wt=ft===void 0?0:ft,Ut=function Ke(it,At){if(!(it<0||!xe.current)){var et=xe.current.clientHeight,ee=!1,I=At;if(et){for(var K=At||Ye,ue=0,De=0,He=0,Fe=Math.min(nt.length,ke),ze=0;ze<=Fe;ze+=1){var qe=Rt(nt[ze]);De=ue;var We=Tt.get(qe);He=De+(We===void 0?pt:We),ue=He,ze===ke&&We===void 0&&(ee=!0)}var _t=null;switch(K){case"top":_t=De-wt;break;case"bottom":_t=He-et+wt;break;default:{var ct=xe.current.scrollTop,Ge=ct+et;De<ct?I="top":He>Ge&&(I="bottom")}}_t!==null&&_t!==xe.current.scrollTop&&U(_t)}Y.current=(0,R.A)(function(){ee&&tt(),Ke(it-1,I)},2)}};Ut(3)}}}function me(xe,nt,Tt,pt){var Rt=Tt-xe,tt=nt-Tt,U=Math.min(Rt,tt)*2;if(pt<=U){var F=Math.floor(pt/2);return pt%2?Tt+F+1:Tt-F}return Rt>tt?Tt-(pt-tt):Tt+(pt-Rt)}function fe(xe,nt,Tt){var pt=xe.length,Rt=nt.length,tt,U;if(pt===0&&Rt===0)return null;pt<Rt?(tt=xe,U=nt):(tt=nt,U=xe);var F={__EMPTY_ITEM__:!0};function Y(Ut){return Ut!==void 0?Tt(Ut):F}for(var le=null,ke=Math.abs(pt-Rt)!==1,Ye=0;Ye<U.length;Ye+=1){var ft=Y(tt[Ye]),wt=Y(U[Ye]);if(ft!==wt){le=Ye,ke=ke||ft!==Y(U[Ye+1]);break}}return le===null?null:{index:le,multiple:ke}}function ve(xe,nt,Tt){var pt=f.useState(xe),Rt=(0,m.A)(pt,2),tt=Rt[0],U=Rt[1],F=f.useState(null),Y=(0,m.A)(F,2),le=Y[0],ke=Y[1];return f.useEffect(function(){var Ye=fe(tt||[],xe||[],nt);Ye?.index!==void 0&&(Tt?.(Ye.index),ke(xe[Ye.index])),U(xe)},[xe]),[le]}var ce=(typeof navigator>"u"?"undefined":(0,W.A)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const oe=ce,re=function(xe,nt){var Tt=(0,f.useRef)(!1),pt=(0,f.useRef)(null);function Rt(){clearTimeout(pt.current),Tt.current=!0,pt.current=setTimeout(function(){Tt.current=!1},50)}var tt=(0,f.useRef)({top:xe,bottom:nt});return tt.current.top=xe,tt.current.bottom=nt,function(U){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y=U<0&&tt.current.top||U>0&&tt.current.bottom;return F&&Y?(clearTimeout(pt.current),Tt.current=!1):(!Y||Tt.current)&&Rt(),!Tt.current&&Y}};function H(xe,nt,Tt,pt){var Rt=(0,f.useRef)(0),tt=(0,f.useRef)(null),U=(0,f.useRef)(null),F=(0,f.useRef)(!1),Y=re(nt,Tt);function le(Ye){if(xe){R.A.cancel(tt.current);var ft=Ye.deltaY;Rt.current+=ft,U.current=ft,!Y(ft)&&(oe||Ye.preventDefault(),tt.current=(0,R.A)(function(){var wt=F.current?10:1;pt(Rt.current*wt),Rt.current=0}))}}function ke(Ye){xe&&(F.current=Ye.detail===U.current)}return[le,ke]}var V=t(30981),Q=14/15;function Te(xe,nt,Tt){var pt=(0,f.useRef)(!1),Rt=(0,f.useRef)(0),tt=(0,f.useRef)(null),U=(0,f.useRef)(null),F,Y=function(ft){if(pt.current){var wt=Math.ceil(ft.touches[0].pageY),Ut=Rt.current-wt;Rt.current=wt,Tt(Ut)&&ft.preventDefault(),clearInterval(U.current),U.current=setInterval(function(){Ut*=Q,(!Tt(Ut,!0)||Math.abs(Ut)<=.1)&&clearInterval(U.current)},16)}},le=function(){pt.current=!1,F()},ke=function(ft){F(),ft.touches.length===1&&!pt.current&&(pt.current=!0,Rt.current=Math.ceil(ft.touches[0].pageY),tt.current=ft.target,tt.current.addEventListener("touchmove",Y),tt.current.addEventListener("touchend",le))};F=function(){tt.current&&(tt.current.removeEventListener("touchmove",Y),tt.current.removeEventListener("touchend",le))},(0,V.A)(function(){return xe&&nt.current.addEventListener("touchstart",ke),function(){var Ye;(Ye=nt.current)===null||Ye===void 0||Ye.removeEventListener("touchstart",ke),F(),clearInterval(U.current)}},[xe])}var Re=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],ne=[],pe={overflowY:"auto",overflowAnchor:"none"};function ye(xe,nt){var Tt=xe.prefixCls,pt=Tt===void 0?"rc-virtual-list":Tt,Rt=xe.className,tt=xe.height,U=xe.itemHeight,F=xe.fullHeight,Y=F===void 0?!0:F,le=xe.style,ke=xe.data,Ye=xe.children,ft=xe.itemKey,wt=xe.virtual,Ut=xe.direction,Ke=xe.component,it=Ke===void 0?"div":Ke,At=xe.onScroll,et=xe.onVisibleChange,ee=xe.innerProps,I=(0,u.A)(xe,Re),K=!!(wt!==!1&&tt&&U),ue=K&&ke&&U*ke.length>tt,De=(0,f.useState)(0),He=(0,m.A)(De,2),Fe=He[0],ze=He[1],qe=(0,f.useState)(!1),We=(0,m.A)(qe,2),_t=We[0],ct=We[1],Ge=v()(pt,(0,s.A)({},"".concat(pt,"-rtl"),Ut==="rtl"),Rt),st=ke||ne,Me=(0,f.useRef)(),ie=(0,f.useRef)(),ge=(0,f.useRef)(),z=f.useCallback(function(Si){return typeof ft=="function"?ft(Si):Si?.[ft]},[ft]),be={getKey:z};function Qe(Si){ze(function(Kr){var xi;typeof Si=="function"?xi=Si(Kr):xi=Si;var Ai=Or(xi);return Me.current.scrollTop=Ai,Ai})}var Bt=(0,f.useRef)({start:0,end:st.length}),nn=(0,f.useRef)(),bt=ve(st,z),at=(0,m.A)(bt,1),$t=at[0];nn.current=$t;var On=N(z,null,null),Ct=(0,m.A)(On,4),Zt=Ct[0],Wn=Ct[1],Zn=Ct[2],xt=Ct[3],Xe=f.useMemo(function(){if(!K)return{scrollHeight:void 0,start:0,end:st.length-1,offset:void 0};if(!ue){var Si;return{scrollHeight:((Si=ie.current)===null||Si===void 0?void 0:Si.offsetHeight)||0,start:0,end:st.length-1,offset:void 0}}for(var Kr=0,xi,Ai,Pi,io=st.length,lo=0;lo<io;lo+=1){var Gr=st[lo],un=z(Gr),qn=Zn.get(un),kn=Kr+(qn===void 0?U:qn);kn>=Fe&&xi===void 0&&(xi=lo,Ai=Kr),kn>Fe+tt&&Pi===void 0&&(Pi=lo),Kr=kn}return xi===void 0&&(xi=0,Ai=0,Pi=Math.ceil(tt/U)),Pi===void 0&&(Pi=st.length-1),Pi=Math.min(Pi+1,st.length),{scrollHeight:Kr,start:xi,end:Pi,offset:Ai}},[ue,K,Fe,st,xt,tt]),gn=Xe.scrollHeight,Qt=Xe.start,Dt=Xe.end,hn=Xe.offset;Bt.current.start=Qt,Bt.current.end=Dt;var cn=gn-tt,an=(0,f.useRef)(cn);an.current=cn;function Or(Si){var Kr=Si;return Number.isNaN(an.current)||(Kr=Math.min(Kr,an.current)),Kr=Math.max(Kr,0),Kr}var Ln=Fe<=0,En=Fe>=cn,Gn=re(Ln,En);function rr(Si){var Kr=Si;Qe(Kr)}function sr(Si){var Kr=Si.currentTarget.scrollTop;Kr!==Fe&&Qe(Kr),At?.(Si)}var pi=H(K,Ln,En,function(Si){Qe(function(Kr){var xi=Kr+Si;return xi})}),yi=(0,m.A)(pi,2),jr=yi[0],ui=yi[1];Te(K,Me,function(Si,Kr){return Gn(Si,Kr)?!1:(jr({preventDefault:function(){},deltaY:Si}),!0)}),(0,V.A)(function(){function Si(Kr){K&&Kr.preventDefault()}return Me.current.addEventListener("wheel",jr),Me.current.addEventListener("DOMMouseScroll",ui),Me.current.addEventListener("MozMousePixelScroll",Si),function(){Me.current&&(Me.current.removeEventListener("wheel",jr),Me.current.removeEventListener("DOMMouseScroll",ui),Me.current.removeEventListener("MozMousePixelScroll",Si))}},[K]);var bi=he(Me,st,Zn,U,z,Wn,Qe,function(){var Si;(Si=ge.current)===null||Si===void 0||Si.delayHidden()});f.useImperativeHandle(nt,function(){return{scrollTo:bi}}),(0,V.A)(function(){if(et){var Si=st.slice(Qt,Dt+1);et(Si,st)}},[Qt,Dt,st]);var ri=A(st,Qt,Dt,Zt,Ye,be),hi=null;return tt&&(hi=(0,l.A)((0,s.A)({},Y?"height":"maxHeight",tt),pe),K&&(hi.overflowY="hidden",_t&&(hi.pointerEvents="none"))),f.createElement("div",(0,i.A)({style:(0,l.A)((0,l.A)({},le),{},{position:"relative"}),className:Ge},I),f.createElement(it,{className:"".concat(pt,"-holder"),style:hi,ref:Me,onScroll:sr},f.createElement(b,{prefixCls:pt,height:gn,offset:hn,onInnerResize:Wn,ref:ie,innerProps:ee},ri)),K&&f.createElement(P,{ref:ge,prefixCls:pt,scrollTop:Fe,height:tt,scrollHeight:gn,count:st.length,direction:Ut,onScroll:rr,onStartMove:function(){ct(!0)},onStopMove:function(){ct(!1)}}))}var Se=f.forwardRef(ye);Se.displayName="List";const Ee=Se},75494:(J,g,t)=>{"use strict";t.d(g,{JY:()=>Ms,sx:()=>_f,gL:()=>nh});var i=t(96540),l=t(77387),s=t(58168),m=t(82960),u=i.createContext(null);const f=null;function p(Ze){Ze()}var v=p,h=function(lt){return v=lt},d=function(){return v};function b(){var Ze=d(),lt=null,Kt=null;return{clear:function(){lt=null,Kt=null},notify:function(){Ze(function(){for(var Ar=lt;Ar;)Ar.callback(),Ar=Ar.next})},get:function(){for(var Ar=[],Tr=lt;Tr;)Ar.push(Tr),Tr=Tr.next;return Ar},subscribe:function(Ar){var Tr=!0,Yr=Kt={callback:Ar,next:null,prev:Kt};return Yr.prev?Yr.prev.next=Yr:lt=Yr,function(){!Tr||lt===null||(Tr=!1,Yr.next?Yr.next.prev=Yr.prev:Kt=Yr.prev,Yr.prev?Yr.prev.next=Yr.next:lt=Yr.next)}}}}var y={notify:function(){},get:function(){return[]}};function w(Ze,lt){var Kt,Bn=y;function Ar(go){return qi(),Bn.subscribe(go)}function Tr(){Bn.notify()}function Yr(){_o.onStateChange&&_o.onStateChange()}function qr(){return!!Kt}function qi(){Kt||(Kt=lt?lt.addNestedSub(Yr):Ze.subscribe(Yr),Bn=b())}function Co(){Kt&&(Kt(),Kt=void 0,Bn.clear(),Bn=y)}var _o={addNestedSub:Ar,notifyNestedSubs:Tr,handleChangeWrapper:Yr,isSubscribed:qr,trySubscribe:qi,tryUnsubscribe:Co,getListeners:function(){return Bn}};return _o}var S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:i.useEffect;function O(Ze){var lt=Ze.store,Kt=Ze.context,Bn=Ze.children,Ar=(0,i.useMemo)(function(){var qr=w(lt);return{store:lt,subscription:qr}},[lt]),Tr=(0,i.useMemo)(function(){return lt.getState()},[lt]);S(function(){var qr=Ar.subscription;return qr.onStateChange=qr.notifyNestedSubs,qr.trySubscribe(),Tr!==lt.getState()&&qr.notifyNestedSubs(),function(){qr.tryUnsubscribe(),qr.onStateChange=null}},[Ar,Tr]);var Yr=Kt||u;return i.createElement(Yr.Provider,{value:Ar},Bn)}const R=O;var M=t(98587),D=t(4146),P=t.n(D),T=t(61899),A=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],j=["reactReduxForwardedRef"],ae=[],_=[null,null],N=function(lt){try{return JSON.stringify(lt)}catch{return String(lt)}};function W(Ze,lt){var Kt=Ze[1];return[lt.payload,Kt+1]}function he(Ze,lt,Kt){S(function(){return Ze.apply(void 0,lt)},Kt)}function me(Ze,lt,Kt,Bn,Ar,Tr,Yr){Ze.current=Bn,lt.current=Ar,Kt.current=!1,Tr.current&&(Tr.current=null,Yr())}function fe(Ze,lt,Kt,Bn,Ar,Tr,Yr,qr,qi,Co){if(Ze){var _o=!1,go=null,mo=function(){if(!_o){var Bs=lt.getState(),Xs,lu;try{Xs=Bn(Bs,Ar.current)}catch(Cu){lu=Cu,go=Cu}lu||(go=null),Xs===Tr.current?Yr.current||qi():(Tr.current=Xs,qr.current=Xs,Yr.current=!0,Co({type:"STORE_UPDATED",payload:{error:lu}}))}};Kt.onStateChange=mo,Kt.trySubscribe(),mo();var Bo=function(){if(_o=!0,Kt.tryUnsubscribe(),Kt.onStateChange=null,go)throw go};return Bo}}var ve=function(){return[null,0]};function ce(Ze,lt){lt===void 0&&(lt={});var Kt=lt,Bn=Kt.getDisplayName,Ar=Bn===void 0?function($u){return"ConnectAdvanced("+$u+")"}:Bn,Tr=Kt.methodName,Yr=Tr===void 0?"connectAdvanced":Tr,qr=Kt.renderCountProp,qi=qr===void 0?void 0:qr,Co=Kt.shouldHandleStateChanges,_o=Co===void 0?!0:Co,go=Kt.storeKey,mo=go===void 0?"store":go,Bo=Kt.withRef,Ba=Bo===void 0?!1:Bo,Bs=Kt.forwardRef,Xs=Bs===void 0?!1:Bs,lu=Kt.context,Cu=lu===void 0?u:lu,yu=(0,M.A)(Kt,A);if(!1)var Ku;var yl=Cu;return function(Cl){var Tc=Cl.displayName||Cl.name||"Component",xl=Ar(Tc),Dl=(0,s.A)({},yu,{getDisplayName:Ar,methodName:Yr,renderCountProp:qi,shouldHandleStateChanges:_o,storeKey:mo,displayName:xl,wrappedComponentName:Tc,WrappedComponent:Cl}),ec=yu.pure;function Oc(Lc){return Ze(Lc.dispatch,Dl)}var zf=ec?i.useMemo:function(Lc){return Lc()};function Sd(Lc){var dd=(0,i.useMemo)(function(){var ds=Lc.reactReduxForwardedRef,Ha=(0,M.A)(Lc,j);return[Lc.context,ds,Ha]},[Lc]),af=dd[0],Of=dd[1],Ad=dd[2],hd=(0,i.useMemo)(function(){return af&&af.Consumer&&(0,T.isContextConsumer)(i.createElement(af.Consumer,null))?af:yl},[af,yl]),ed=(0,i.useContext)(hd),Fd=!!Lc.store&&!!Lc.store.getState&&!!Lc.store.dispatch,ku=!!ed&&!!ed.store,el=Fd?Lc.store:ed.store,Ec=(0,i.useMemo)(function(){return Oc(el)},[el]),hc=(0,i.useMemo)(function(){if(!_o)return _;var ds=w(el,Fd?null:ed.subscription),Ha=ds.notifyNestedSubs.bind(ds);return[ds,Ha]},[el,Fd,ed]),uc=hc[0],td=hc[1],sf=(0,i.useMemo)(function(){return Fd?ed:(0,s.A)({},ed,{subscription:uc})},[Fd,ed,uc]),pd=(0,i.useReducer)(W,ae,ve),ch=pd[0],fh=ch[0],Cf=pd[1];if(fh&&fh.error)throw fh.error;var op=(0,i.useRef)(),np=(0,i.useRef)(Ad),Wi=(0,i.useRef)(),Oa=(0,i.useRef)(!1),Ca=zf(function(){return Wi.current&&Ad===np.current?Wi.current:Ec(el.getState(),Ad)},[el,fh,Ad]);he(me,[np,op,Oa,Ad,Ca,Wi,td]),he(fe,[_o,el,uc,Ec,np,op,Oa,Wi,td,Cf],[el,uc,Ec]);var Es=(0,i.useMemo)(function(){return i.createElement(Cl,(0,s.A)({},Ca,{ref:Of}))},[Of,Cl,Ca]),Ss=(0,i.useMemo)(function(){return _o?i.createElement(hd.Provider,{value:sf},Es):Es},[hd,Es,sf]);return Ss}var Bf=ec?i.memo(Sd):Sd;if(Bf.WrappedComponent=Cl,Bf.displayName=Sd.displayName=xl,Xs){var Yf=i.forwardRef(function(dd,af){return i.createElement(Bf,(0,s.A)({},dd,{reactReduxForwardedRef:af}))});return Yf.displayName=xl,Yf.WrappedComponent=Cl,P()(Yf,Cl)}return P()(Bf,Cl)}}function oe(Ze,lt){return Ze===lt?Ze!==0||lt!==0||1/Ze===1/lt:Ze!==Ze&<!==lt}function re(Ze,lt){if(oe(Ze,lt))return!0;if(typeof Ze!="object"||Ze===null||typeof lt!="object"||lt===null)return!1;var Kt=Object.keys(Ze),Bn=Object.keys(lt);if(Kt.length!==Bn.length)return!1;for(var Ar=0;Ar<Kt.length;Ar++)if(!Object.prototype.hasOwnProperty.call(lt,Kt[Ar])||!oe(Ze[Kt[Ar]],lt[Kt[Ar]]))return!1;return!0}function H(Ze,lt){var Kt={},Bn=function(Yr){var qr=Ze[Yr];typeof qr=="function"&&(Kt[Yr]=function(){return lt(qr.apply(void 0,arguments))})};for(var Ar in Ze)Bn(Ar);return Kt}function V(Ze){return function(Kt,Bn){var Ar=Ze(Kt,Bn);function Tr(){return Ar}return Tr.dependsOnOwnProps=!1,Tr}}function Q(Ze){return Ze.dependsOnOwnProps!==null&&Ze.dependsOnOwnProps!==void 0?!!Ze.dependsOnOwnProps:Ze.length!==1}function Te(Ze,lt){return function(Bn,Ar){var Tr=Ar.displayName,Yr=function(qi,Co){return Yr.dependsOnOwnProps?Yr.mapToProps(qi,Co):Yr.mapToProps(qi)};return Yr.dependsOnOwnProps=!0,Yr.mapToProps=function(qi,Co){Yr.mapToProps=Ze,Yr.dependsOnOwnProps=Q(Ze);var _o=Yr(qi,Co);return typeof _o=="function"&&(Yr.mapToProps=_o,Yr.dependsOnOwnProps=Q(_o),_o=Yr(qi,Co)),_o},Yr}}function Re(Ze){return typeof Ze=="function"?Te(Ze,"mapDispatchToProps"):void 0}function ne(Ze){return Ze?void 0:V(function(lt){return{dispatch:lt}})}function pe(Ze){return Ze&&typeof Ze=="object"?V(function(lt){return H(Ze,lt)}):void 0}const ye=[Re,ne,pe];function Se(Ze){return typeof Ze=="function"?Te(Ze,"mapStateToProps"):void 0}function Ae(Ze){return Ze?void 0:V(function(){return{}})}const Ee=[Se,Ae];function xe(Ze,lt,Kt){return(0,s.A)({},Kt,Ze,lt)}function nt(Ze){return function(Kt,Bn){var Ar=Bn.displayName,Tr=Bn.pure,Yr=Bn.areMergedPropsEqual,qr=!1,qi;return function(_o,go,mo){var Bo=Ze(_o,go,mo);return qr?(!Tr||!Yr(Bo,qi))&&(qi=Bo):(qr=!0,qi=Bo),qi}}}function Tt(Ze){return typeof Ze=="function"?nt(Ze):void 0}function pt(Ze){return Ze?void 0:function(){return xe}}const Rt=[Tt,pt];var tt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function U(Ze,lt,Kt,Bn){return function(Tr,Yr){return Kt(Ze(Tr,Yr),lt(Bn,Yr),Yr)}}function F(Ze,lt,Kt,Bn,Ar){var Tr=Ar.areStatesEqual,Yr=Ar.areOwnPropsEqual,qr=Ar.areStatePropsEqual,qi=!1,Co,_o,go,mo,Bo;function Ba(yu,Ku){return Co=yu,_o=Ku,go=Ze(Co,_o),mo=lt(Bn,_o),Bo=Kt(go,mo,_o),qi=!0,Bo}function Bs(){return go=Ze(Co,_o),lt.dependsOnOwnProps&&(mo=lt(Bn,_o)),Bo=Kt(go,mo,_o),Bo}function Xs(){return Ze.dependsOnOwnProps&&(go=Ze(Co,_o)),lt.dependsOnOwnProps&&(mo=lt(Bn,_o)),Bo=Kt(go,mo,_o),Bo}function lu(){var yu=Ze(Co,_o),Ku=!qr(yu,go);return go=yu,Ku&&(Bo=Kt(go,mo,_o)),Bo}function Cu(yu,Ku){var yl=!Yr(Ku,_o),$u=!Tr(yu,Co);return Co=yu,_o=Ku,yl&&$u?Bs():yl?Xs():$u?lu():Bo}return function(Ku,yl){return qi?Cu(Ku,yl):Ba(Ku,yl)}}function Y(Ze,lt){var Kt=lt.initMapStateToProps,Bn=lt.initMapDispatchToProps,Ar=lt.initMergeProps,Tr=(0,M.A)(lt,tt),Yr=Kt(Ze,Tr),qr=Bn(Ze,Tr),qi=Ar(Ze,Tr),Co=Tr.pure?F:U;return Co(Yr,qr,qi,Ze,Tr)}var le=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ke(Ze,lt,Kt){for(var Bn=lt.length-1;Bn>=0;Bn--){var Ar=lt[Bn](Ze);if(Ar)return Ar}return function(Tr,Yr){throw new Error("Invalid value of type "+typeof Ze+" for "+Kt+" argument when connecting component "+Yr.wrappedComponentName+".")}}function Ye(Ze,lt){return Ze===lt}function ft(Ze){var lt=Ze===void 0?{}:Ze,Kt=lt.connectHOC,Bn=Kt===void 0?ce:Kt,Ar=lt.mapStateToPropsFactories,Tr=Ar===void 0?Ee:Ar,Yr=lt.mapDispatchToPropsFactories,qr=Yr===void 0?ye:Yr,qi=lt.mergePropsFactories,Co=qi===void 0?Rt:qi,_o=lt.selectorFactory,go=_o===void 0?Y:_o;return function(Bo,Ba,Bs,Xs){Xs===void 0&&(Xs={});var lu=Xs,Cu=lu.pure,yu=Cu===void 0?!0:Cu,Ku=lu.areStatesEqual,yl=Ku===void 0?Ye:Ku,$u=lu.areOwnPropsEqual,Cl=$u===void 0?re:$u,Tc=lu.areStatePropsEqual,xl=Tc===void 0?re:Tc,Dl=lu.areMergedPropsEqual,ec=Dl===void 0?re:Dl,Oc=(0,M.A)(lu,le),zf=ke(Bo,Tr,"mapStateToProps"),Sd=ke(Ba,qr,"mapDispatchToProps"),Bf=ke(Bs,Co,"mergeProps");return Bn(go,(0,s.A)({methodName:"connect",getDisplayName:function(Lc){return"Connect("+Lc+")"},shouldHandleStateChanges:!!Bo,initMapStateToProps:zf,initMapDispatchToProps:Sd,initMergeProps:Bf,pure:yu,areStatesEqual:yl,areOwnPropsEqual:Cl,areStatePropsEqual:xl,areMergedPropsEqual:ec},Oc))}}const wt=ft();function Ut(){var Ze=useContext(ReactReduxContext);return Ze}function Ke(Ze){Ze===void 0&&(Ze=ReactReduxContext);var lt=Ze===ReactReduxContext?useDefaultReduxContext:function(){return useContext(Ze)};return function(){var Bn=lt(),Ar=Bn.store;return Ar}}var it=null;function At(Ze){Ze===void 0&&(Ze=ReactReduxContext);var lt=Ze===ReactReduxContext?useDefaultStore:createStoreHook(Ze);return function(){var Bn=lt();return Bn.dispatch}}var et=null,ee=function(lt,Kt){return lt===Kt};function I(Ze,lt,Kt,Bn){var Ar=useReducer(function(Ba){return Ba+1},0),Tr=Ar[1],Yr=useMemo(function(){return createSubscription(Kt,Bn)},[Kt,Bn]),qr=useRef(),qi=useRef(),Co=useRef(),_o=useRef(),go=Kt.getState(),mo;try{if(Ze!==qi.current||go!==Co.current||qr.current){var Bo=Ze(go);_o.current===void 0||!lt(Bo,_o.current)?mo=Bo:mo=_o.current}else mo=_o.current}catch(Ba){throw qr.current&&(Ba.message+=` The error may be correlated with this previous error: `+qr.current.stack+` `),Ba}return useIsomorphicLayoutEffect(function(){qi.current=Ze,Co.current=go,_o.current=mo,qr.current=void 0}),useIsomorphicLayoutEffect(function(){function Ba(){try{var Bs=Kt.getState();if(Bs===Co.current)return;var Xs=qi.current(Bs);if(lt(Xs,_o.current))return;_o.current=Xs,Co.current=Bs}catch(lu){qr.current=lu}Tr()}return Yr.onStateChange=Ba,Yr.trySubscribe(),Ba(),function(){return Yr.tryUnsubscribe()}},[Kt,Yr]),mo}function K(Ze){Ze===void 0&&(Ze=ReactReduxContext);var lt=Ze===ReactReduxContext?useDefaultReduxContext:function(){return useContext(Ze)};return function(Bn,Ar){Ar===void 0&&(Ar=ee);var Tr=lt(),Yr=Tr.store,qr=Tr.subscription,qi=I(Bn,Ar,Yr,qr);return useDebugValue(qi),qi}}var ue=null,De=t(40961);h(De.unstable_batchedUpdates);function He(Ze,lt){if(Ze.length!==lt.length)return!1;for(var Kt=0;Kt<Ze.length;Kt++)if(Ze[Kt]!==lt[Kt])return!1;return!0}function Fe(Ze,lt){var Kt=(0,i.useState)(function(){return{inputs:lt,result:Ze()}})[0],Bn=(0,i.useRef)(!0),Ar=(0,i.useRef)(Kt),Tr=Bn.current||!!(lt&&Ar.current.inputs&&He(lt,Ar.current.inputs)),Yr=Tr?Ar.current:{inputs:lt,result:Ze()};return(0,i.useEffect)(function(){Bn.current=!1,Ar.current=Yr},[Yr]),Yr.result}function ze(Ze,lt){return Fe(function(){return Ze},lt)}var qe=Fe,We=ze,_t=t(11561),ct=function(lt){var Kt=lt.top,Bn=lt.right,Ar=lt.bottom,Tr=lt.left,Yr=Bn-Tr,qr=Ar-Kt,qi={top:Kt,right:Bn,bottom:Ar,left:Tr,width:Yr,height:qr,x:Tr,y:Kt,center:{x:(Bn+Tr)/2,y:(Ar+Kt)/2}};return qi},Ge=function(lt,Kt){return{top:lt.top-Kt.top,left:lt.left-Kt.left,bottom:lt.bottom+Kt.bottom,right:lt.right+Kt.right}},st=function(lt,Kt){return{top:lt.top+Kt.top,left:lt.left+Kt.left,bottom:lt.bottom-Kt.bottom,right:lt.right-Kt.right}},Me=function(lt,Kt){return{top:lt.top+Kt.y,left:lt.left+Kt.x,bottom:lt.bottom+Kt.y,right:lt.right+Kt.x}},ie={top:0,right:0,bottom:0,left:0},ge=function(lt){var Kt=lt.borderBox,Bn=lt.margin,Ar=Bn===void 0?ie:Bn,Tr=lt.border,Yr=Tr===void 0?ie:Tr,qr=lt.padding,qi=qr===void 0?ie:qr,Co=ct(Ge(Kt,Ar)),_o=ct(st(Kt,Yr)),go=ct(st(_o,qi));return{marginBox:Co,borderBox:ct(Kt),paddingBox:_o,contentBox:go,margin:Ar,border:Yr,padding:qi}},z=function(lt){var Kt=lt.slice(0,-2),Bn=lt.slice(-2);if(Bn!=="px")return 0;var Ar=Number(Kt);return isNaN(Ar)&&(0,_t.A)(!1),Ar},be=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Qe=function(lt,Kt){var Bn=lt.borderBox,Ar=lt.border,Tr=lt.margin,Yr=lt.padding,qr=Me(Bn,Kt);return ge({borderBox:qr,border:Ar,margin:Tr,padding:Yr})},Bt=function(lt,Kt){return Kt===void 0&&(Kt=be()),Qe(lt,Kt)},nn=function(lt,Kt){var Bn={top:z(Kt.marginTop),right:z(Kt.marginRight),bottom:z(Kt.marginBottom),left:z(Kt.marginLeft)},Ar={top:z(Kt.paddingTop),right:z(Kt.paddingRight),bottom:z(Kt.paddingBottom),left:z(Kt.paddingLeft)},Tr={top:z(Kt.borderTopWidth),right:z(Kt.borderRightWidth),bottom:z(Kt.borderBottomWidth),left:z(Kt.borderLeftWidth)};return ge({borderBox:lt,margin:Bn,padding:Ar,border:Tr})},bt=function(lt){var Kt=lt.getBoundingClientRect(),Bn=window.getComputedStyle(lt);return nn(Kt,Bn)},at=Number.isNaN||function(lt){return typeof lt=="number"&<!==lt};function $t(Ze,lt){return!!(Ze===lt||at(Ze)&&at(lt))}function On(Ze,lt){if(Ze.length!==lt.length)return!1;for(var Kt=0;Kt<Ze.length;Kt++)if(!$t(Ze[Kt],lt[Kt]))return!1;return!0}function Ct(Ze,lt){lt===void 0&&(lt=On);var Kt,Bn=[],Ar,Tr=!1;function Yr(){for(var qr=[],qi=0;qi<arguments.length;qi++)qr[qi]=arguments[qi];return Tr&&Kt===this&<(qr,Bn)||(Ar=Ze.apply(this,qr),Tr=!0,Kt=this,Bn=qr),Ar}return Yr}const Zt=Ct;var Wn=function(lt){var Kt=[],Bn=null,Ar=function(){for(var Yr=arguments.length,qr=new Array(Yr),qi=0;qi<Yr;qi++)qr[qi]=arguments[qi];Kt=qr,!Bn&&(Bn=requestAnimationFrame(function(){Bn=null,lt.apply(void 0,Kt)}))};return Ar.cancel=function(){Bn&&(cancelAnimationFrame(Bn),Bn=null)},Ar};const Zn=Wn;var xt=!0,Xe=/[ \t]{2,}/g,gn=/^[ \t]*/gm,Qt=function(lt){return lt.replace(Xe," ").replace(gn,"").trim()},Dt=function(lt){return Qt(` %creact-beautiful-dnd %c`+Qt(lt)+` %c\u{1F477}\u200D This is a development only message. It will be removed in production builds. `)},hn=function(lt){return[Dt(lt),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},cn="__react-beautiful-dnd-disable-dev-warnings";function an(Ze,lt){var Kt;xt||typeof window<"u"&&window[cn]||(Kt=console)[Ze].apply(Kt,hn(lt))}var Or=an.bind(null,"warn"),Ln=an.bind(null,"error");function En(){}function Gn(Ze,lt){return(0,s.A)({},Ze,{},lt)}function rr(Ze,lt,Kt){var Bn=lt.map(function(Ar){var Tr=Gn(Kt,Ar.options);return Ze.addEventListener(Ar.eventName,Ar.fn,Tr),function(){Ze.removeEventListener(Ar.eventName,Ar.fn,Tr)}});return function(){Bn.forEach(function(Tr){Tr()})}}var sr=!0,pi="Invariant failed";function yi(Ze){this.message=Ze}yi.prototype.toString=function(){return this.message};function jr(Ze,lt){if(!Ze)throw sr?new yi(pi):new yi(pi+": "+(lt||""))}var ui=function(Ze){(0,l.A)(lt,Ze);function lt(){for(var Bn,Ar=arguments.length,Tr=new Array(Ar),Yr=0;Yr<Ar;Yr++)Tr[Yr]=arguments[Yr];return Bn=Ze.call.apply(Ze,[this].concat(Tr))||this,Bn.callbacks=null,Bn.unbind=En,Bn.onWindowError=function(qr){var qi=Bn.getCallbacks();qi.isDragging()&&qi.tryAbort();var Co=qr.error;Co instanceof yi&&qr.preventDefault()},Bn.getCallbacks=function(){if(!Bn.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Bn.callbacks},Bn.setCallbacks=function(qr){Bn.callbacks=qr},Bn}var Kt=lt.prototype;return Kt.componentDidMount=function(){this.unbind=rr(window,[{eventName:"error",fn:this.onWindowError}])},Kt.componentDidCatch=function(Ar){if(Ar instanceof yi){this.setState({});return}throw Ar},Kt.componentWillUnmount=function(){this.unbind()},Kt.render=function(){return this.props.children(this.setCallbacks)},lt}(i.Component),bi=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,ri=function(lt){return lt+1},hi=function(lt){return` You have lifted an item in position `+ri(lt.source.index)+` `},Si=function(lt,Kt){var Bn=lt.droppableId===Kt.droppableId,Ar=ri(lt.index),Tr=ri(Kt.index);return Bn?` You have moved the item from position `+Ar+` to position `+Tr+` `:` You have moved the item from position `+Ar+` in list `+lt.droppableId+` to list `+Kt.droppableId+` in position `+Tr+` `},Kr=function(lt,Kt,Bn){var Ar=Kt.droppableId===Bn.droppableId;return Ar?` The item `+lt+` has been combined with `+Bn.draggableId:` The item `+lt+` in list `+Kt.droppableId+` has been combined with `+Bn.draggableId+` in list `+Bn.droppableId+` `},xi=function(lt){var Kt=lt.destination;if(Kt)return Si(lt.source,Kt);var Bn=lt.combine;return Bn?Kr(lt.draggableId,lt.source,Bn):"You are over an area that cannot be dropped on"},Ai=function(lt){return` The item has returned to its starting position of `+ri(lt.index)+` `},Pi=function(lt){if(lt.reason==="CANCEL")return` Movement cancelled. `+Ai(lt.source)+` `;var Kt=lt.destination,Bn=lt.combine;return Kt?` You have dropped the item. `+Si(lt.source,Kt)+` `:Bn?` You have dropped the item. `+Kr(lt.draggableId,lt.source,Bn)+` `:` The item has been dropped while not over a drop area. `+Ai(lt.source)+` `},io={dragHandleUsageInstructions:bi,onDragStart:hi,onDragUpdate:xi,onDragEnd:Pi},lo={x:0,y:0},Gr=function(lt,Kt){return{x:lt.x+Kt.x,y:lt.y+Kt.y}},un=function(lt,Kt){return{x:lt.x-Kt.x,y:lt.y-Kt.y}},qn=function(lt,Kt){return lt.x===Kt.x&<.y===Kt.y},kn=function(lt){return{x:lt.x!==0?-lt.x:0,y:lt.y!==0?-lt.y:0}},St=function(lt,Kt,Bn){var Ar;return Bn===void 0&&(Bn=0),Ar={},Ar[lt]=Kt,Ar[lt==="x"?"y":"x"]=Bn,Ar},ln=function(lt,Kt){return Math.sqrt(Math.pow(Kt.x-lt.x,2)+Math.pow(Kt.y-lt.y,2))},An=function(lt,Kt){return Math.min.apply(Math,Kt.map(function(Bn){return ln(lt,Bn)}))},Cr=function(lt){return function(Kt){return{x:lt(Kt.x),y:lt(Kt.y)}}},_i=function(Ze,lt){var Kt=ct({top:Math.max(lt.top,Ze.top),right:Math.min(lt.right,Ze.right),bottom:Math.min(lt.bottom,Ze.bottom),left:Math.max(lt.left,Ze.left)});return Kt.width<=0||Kt.height<=0?null:Kt},Sn=function(lt,Kt){return{top:lt.top+Kt.y,left:lt.left+Kt.x,bottom:lt.bottom+Kt.y,right:lt.right+Kt.x}},ir=function(lt){return[{x:lt.left,y:lt.top},{x:lt.right,y:lt.top},{x:lt.left,y:lt.bottom},{x:lt.right,y:lt.bottom}]},mt={top:0,right:0,bottom:0,left:0},fn=function(lt,Kt){return Kt?Sn(lt,Kt.scroll.diff.displacement):lt},gt=function(lt,Kt,Bn){if(Bn&&Bn.increasedBy){var Ar;return(0,s.A)({},lt,(Ar={},Ar[Kt.end]=lt[Kt.end]+Bn.increasedBy[Kt.line],Ar))}return lt},tn=function(lt,Kt){return Kt&&Kt.shouldClipSubject?_i(Kt.pageMarginBox,lt):ct(lt)},Vn=function(Ze){var lt=Ze.page,Kt=Ze.withPlaceholder,Bn=Ze.axis,Ar=Ze.frame,Tr=fn(lt.marginBox,Ar),Yr=gt(Tr,Bn,Kt),qr=tn(Yr,Ar);return{page:lt,withPlaceholder:Kt,active:qr}},Ur=function(Ze,lt){Ze.frame||jr(!1);var Kt=Ze.frame,Bn=un(lt,Kt.scroll.initial),Ar=kn(Bn),Tr=(0,s.A)({},Kt,{scroll:{initial:Kt.scroll.initial,current:lt,diff:{value:Bn,displacement:Ar},max:Kt.scroll.max}}),Yr=Vn({page:Ze.subject.page,withPlaceholder:Ze.subject.withPlaceholder,axis:Ze.axis,frame:Tr}),qr=(0,s.A)({},Ze,{frame:Tr,subject:Yr});return qr};function $r(Ze){return Number.isInteger?Number.isInteger(Ze):typeof Ze=="number"&&isFinite(Ze)&&Math.floor(Ze)===Ze}function Pr(Ze){return Object.values?Object.values(Ze):Object.keys(Ze).map(function(lt){return Ze[lt]})}function zr(Ze,lt){if(Ze.findIndex)return Ze.findIndex(lt);for(var Kt=0;Kt<Ze.length;Kt++)if(lt(Ze[Kt]))return Kt;return-1}function gi(Ze,lt){if(Ze.find)return Ze.find(lt);var Kt=zr(Ze,lt);if(Kt!==-1)return Ze[Kt]}function $i(Ze){return Array.prototype.slice.call(Ze)}var eo=Zt(function(Ze){return Ze.reduce(function(lt,Kt){return lt[Kt.descriptor.id]=Kt,lt},{})}),ki=Zt(function(Ze){return Ze.reduce(function(lt,Kt){return lt[Kt.descriptor.id]=Kt,lt},{})}),so=Zt(function(Ze){return Pr(Ze)}),Ho=Zt(function(Ze){return Pr(Ze)}),ra=Zt(function(Ze,lt){var Kt=Ho(lt).filter(function(Bn){return Ze===Bn.descriptor.droppableId}).sort(function(Bn,Ar){return Bn.descriptor.index-Ar.descriptor.index});return Kt});function So(Ze){return Ze.at&&Ze.at.type==="REORDER"?Ze.at.destination:null}function gr(Ze){return Ze.at&&Ze.at.type==="COMBINE"?Ze.at.combine:null}var di=Zt(function(Ze,lt){return lt.filter(function(Kt){return Kt.descriptor.id!==Ze.descriptor.id})}),Vi=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.draggable,Bn=Ze.destination,Ar=Ze.insideDestination,Tr=Ze.previousImpact;if(!Bn.isCombineEnabled)return null;var Yr=So(Tr);if(!Yr)return null;function qr(Bs){var Xs={type:"COMBINE",combine:{draggableId:Bs,droppableId:Bn.descriptor.id}};return(0,s.A)({},Tr,{at:Xs})}var qi=Tr.displaced.all,Co=qi.length?qi[0]:null;if(lt)return Co?qr(Co):null;var _o=di(Kt,Ar);if(!Co){if(!_o.length)return null;var go=_o[_o.length-1];return qr(go.descriptor.id)}var mo=zr(_o,function(Bs){return Bs.descriptor.id===Co});mo===-1&&jr(!1);var Bo=mo-1;if(Bo<0)return null;var Ba=_o[Bo];return qr(Ba.descriptor.id)},Ro=function(Ze,lt){return Ze.descriptor.droppableId===lt.descriptor.id},na={point:lo,value:0},ta={invisible:{},visible:{},all:[]},aa={displaced:ta,displacedBy:na,at:null},vi=function(Ze,lt){return function(Kt){return Ze<=Kt&&Kt<=lt}},to=function(Ze){var lt=vi(Ze.top,Ze.bottom),Kt=vi(Ze.left,Ze.right);return function(Bn){var Ar=lt(Bn.top)&<(Bn.bottom)&&Kt(Bn.left)&&Kt(Bn.right);if(Ar)return!0;var Tr=lt(Bn.top)||lt(Bn.bottom),Yr=Kt(Bn.left)||Kt(Bn.right),qr=Tr&&Yr;if(qr)return!0;var qi=Bn.top<Ze.top&&Bn.bottom>Ze.bottom,Co=Bn.left<Ze.left&&Bn.right>Ze.right,_o=qi&&Co;if(_o)return!0;var go=qi&&Yr||Co&&Tr;return go}},$o=function(Ze){var lt=vi(Ze.top,Ze.bottom),Kt=vi(Ze.left,Ze.right);return function(Bn){var Ar=lt(Bn.top)&<(Bn.bottom)&&Kt(Bn.left)&&Kt(Bn.right);return Ar}},ja={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},hs={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ro=function(Ze){return function(lt){var Kt=vi(lt.top,lt.bottom),Bn=vi(lt.left,lt.right);return function(Ar){return Ze===ja?Kt(Ar.top)&&Kt(Ar.bottom):Bn(Ar.left)&&Bn(Ar.right)}}},as=function(lt,Kt){var Bn=Kt.frame?Kt.frame.scroll.diff.displacement:lo;return Sn(lt,Bn)},rn=function(lt,Kt,Bn){return Kt.subject.active?Bn(Kt.subject.active)(lt):!1},Dr=function(lt,Kt,Bn){return Bn(Kt)(lt)},Lr=function(lt){var Kt=lt.target,Bn=lt.destination,Ar=lt.viewport,Tr=lt.withDroppableDisplacement,Yr=lt.isVisibleThroughFrameFn,qr=Tr?as(Kt,Bn):Kt;return rn(qr,Bn,Yr)&&Dr(qr,Ar,Yr)},li=function(lt){return Lr((0,s.A)({},lt,{isVisibleThroughFrameFn:to}))},Zi=function(lt){return Lr((0,s.A)({},lt,{isVisibleThroughFrameFn:$o}))},Di=function(lt){return Lr((0,s.A)({},lt,{isVisibleThroughFrameFn:ro(lt.destination.axis)}))},wo=function(lt,Kt,Bn){if(typeof Bn=="boolean")return Bn;if(!Kt)return!0;var Ar=Kt.invisible,Tr=Kt.visible;if(Ar[lt])return!1;var Yr=Tr[lt];return Yr?Yr.shouldAnimate:!0};function Go(Ze,lt){var Kt=Ze.page.marginBox,Bn={top:lt.point.y,right:0,bottom:0,left:lt.point.x};return ct(Ge(Kt,Bn))}function Ko(Ze){var lt=Ze.afterDragging,Kt=Ze.destination,Bn=Ze.displacedBy,Ar=Ze.viewport,Tr=Ze.forceShouldAnimate,Yr=Ze.last;return lt.reduce(function(qi,Co){var _o=Go(Co,Bn),go=Co.descriptor.id;qi.all.push(go);var mo=li({target:_o,destination:Kt,viewport:Ar,withDroppableDisplacement:!0});if(!mo)return qi.invisible[Co.descriptor.id]=!0,qi;var Bo=wo(go,Yr,Tr),Ba={draggableId:go,shouldAnimate:Bo};return qi.visible[go]=Ba,qi},{all:[],visible:{},invisible:{}})}function Ie(Ze,lt){if(!Ze.length)return 0;var Kt=Ze[Ze.length-1].descriptor.index;return lt.inHomeList?Kt:Kt+1}function yt(Ze){var lt=Ze.insideDestination,Kt=Ze.inHomeList,Bn=Ze.displacedBy,Ar=Ze.destination,Tr=Ie(lt,{inHomeList:Kt});return{displaced:ta,displacedBy:Bn,at:{type:"REORDER",destination:{droppableId:Ar.descriptor.id,index:Tr}}}}function on(Ze){var lt=Ze.draggable,Kt=Ze.insideDestination,Bn=Ze.destination,Ar=Ze.viewport,Tr=Ze.displacedBy,Yr=Ze.last,qr=Ze.index,qi=Ze.forceShouldAnimate,Co=Ro(lt,Bn);if(qr==null)return yt({insideDestination:Kt,inHomeList:Co,displacedBy:Tr,destination:Bn});var _o=gi(Kt,function(Bs){return Bs.descriptor.index===qr});if(!_o)return yt({insideDestination:Kt,inHomeList:Co,displacedBy:Tr,destination:Bn});var go=di(lt,Kt),mo=Kt.indexOf(_o),Bo=go.slice(mo),Ba=Ko({afterDragging:Bo,destination:Bn,displacedBy:Tr,last:Yr,viewport:Ar.frame,forceShouldAnimate:qi});return{displaced:Ba,displacedBy:Tr,at:{type:"REORDER",destination:{droppableId:Bn.descriptor.id,index:qr}}}}function _n(Ze,lt){return!!lt.effected[Ze]}var er=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.destination,Bn=Ze.draggables,Ar=Ze.combine,Tr=Ze.afterCritical;if(!Kt.isCombineEnabled)return null;var Yr=Ar.draggableId,qr=Bn[Yr],qi=qr.descriptor.index,Co=_n(Yr,Tr);return Co?lt?qi:qi-1:lt?qi+1:qi},or=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.isInHomeList,Bn=Ze.insideDestination,Ar=Ze.location;if(!Bn.length)return null;var Tr=Ar.index,Yr=lt?Tr+1:Tr-1,qr=Bn[0].descriptor.index,qi=Bn[Bn.length-1].descriptor.index,Co=Kt?qi:qi+1;return Yr<qr||Yr>Co?null:Yr},Er=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.isInHomeList,Bn=Ze.draggable,Ar=Ze.draggables,Tr=Ze.destination,Yr=Ze.insideDestination,qr=Ze.previousImpact,qi=Ze.viewport,Co=Ze.afterCritical,_o=qr.at;if(_o||jr(!1),_o.type==="REORDER"){var go=or({isMovingForward:lt,isInHomeList:Kt,location:_o.destination,insideDestination:Yr});return go==null?null:on({draggable:Bn,insideDestination:Yr,destination:Tr,viewport:qi,last:qr.displaced,displacedBy:qr.displacedBy,index:go})}var mo=er({isMovingForward:lt,destination:Tr,displaced:qr.displaced,draggables:Ar,combine:_o.combine,afterCritical:Co});return mo==null?null:on({draggable:Bn,insideDestination:Yr,destination:Tr,viewport:qi,last:qr.displaced,displacedBy:qr.displacedBy,index:mo})},Mi=function(Ze){var lt=Ze.displaced,Kt=Ze.afterCritical,Bn=Ze.combineWith,Ar=Ze.displacedBy,Tr=!!(lt.visible[Bn]||lt.invisible[Bn]);return _n(Bn,Kt)?Tr?lo:kn(Ar.point):Tr?Ar.point:lo},Ui=function(Ze){var lt=Ze.afterCritical,Kt=Ze.impact,Bn=Ze.draggables,Ar=gr(Kt);Ar||jr(!1);var Tr=Ar.draggableId,Yr=Bn[Tr].page.borderBox.center,qr=Mi({displaced:Kt.displaced,afterCritical:lt,combineWith:Tr,displacedBy:Kt.displacedBy});return Gr(Yr,qr)},Nn=function(lt,Kt){return Kt.margin[lt.start]+Kt.borderBox[lt.size]/2},cr=function(lt,Kt){return Kt.margin[lt.end]+Kt.borderBox[lt.size]/2},ni=function(lt,Kt,Bn){return Kt[lt.crossAxisStart]+Bn.margin[lt.crossAxisStart]+Bn.borderBox[lt.crossAxisSize]/2},Xr=function(lt){var Kt=lt.axis,Bn=lt.moveRelativeTo,Ar=lt.isMoving;return St(Kt.line,Bn.marginBox[Kt.end]+Nn(Kt,Ar),ni(Kt,Bn.marginBox,Ar))},Jr=function(lt){var Kt=lt.axis,Bn=lt.moveRelativeTo,Ar=lt.isMoving;return St(Kt.line,Bn.marginBox[Kt.start]-cr(Kt,Ar),ni(Kt,Bn.marginBox,Ar))},Qi=function(lt){var Kt=lt.axis,Bn=lt.moveInto,Ar=lt.isMoving;return St(Kt.line,Bn.contentBox[Kt.start]+Nn(Kt,Ar),ni(Kt,Bn.contentBox,Ar))},Fo=function(Ze){var lt=Ze.impact,Kt=Ze.draggable,Bn=Ze.draggables,Ar=Ze.droppable,Tr=Ze.afterCritical,Yr=ra(Ar.descriptor.id,Bn),qr=Kt.page,qi=Ar.axis;if(!Yr.length)return Qi({axis:qi,moveInto:Ar.page,isMoving:qr});var Co=lt.displaced,_o=lt.displacedBy,go=Co.all[0];if(go){var mo=Bn[go];if(_n(go,Tr))return Jr({axis:qi,moveRelativeTo:mo.page,isMoving:qr});var Bo=Qe(mo.page,_o.point);return Jr({axis:qi,moveRelativeTo:Bo,isMoving:qr})}var Ba=Yr[Yr.length-1];if(Ba.descriptor.id===Kt.descriptor.id)return qr.borderBox.center;if(_n(Ba.descriptor.id,Tr)){var Bs=Qe(Ba.page,kn(Tr.displacedBy.point));return Xr({axis:qi,moveRelativeTo:Bs,isMoving:qr})}return Xr({axis:qi,moveRelativeTo:Ba.page,isMoving:qr})},No=function(Ze,lt){var Kt=Ze.frame;return Kt?Gr(lt,Kt.scroll.diff.displacement):lt},Jo=function(lt){var Kt=lt.impact,Bn=lt.draggable,Ar=lt.droppable,Tr=lt.draggables,Yr=lt.afterCritical,qr=Bn.page.borderBox.center,qi=Kt.at;return!Ar||!qi?qr:qi.type==="REORDER"?Fo({impact:Kt,draggable:Bn,draggables:Tr,droppable:Ar,afterCritical:Yr}):Ui({impact:Kt,draggables:Tr,afterCritical:Yr})},br=function(Ze){var lt=Jo(Ze),Kt=Ze.droppable,Bn=Kt?No(Kt,lt):lt;return Bn},Yn=function(Ze,lt){var Kt=un(lt,Ze.scroll.initial),Bn=kn(Kt),Ar=ct({top:lt.y,bottom:lt.y+Ze.frame.height,left:lt.x,right:lt.x+Ze.frame.width}),Tr={frame:Ar,scroll:{initial:Ze.scroll.initial,max:Ze.scroll.max,current:lt,diff:{value:Kt,displacement:Bn}}};return Tr};function Z(Ze,lt){return Ze.map(function(Kt){return lt[Kt]})}function se(Ze,lt){for(var Kt=0;Kt<lt.length;Kt++){var Bn=lt[Kt].visible[Ze];if(Bn)return Bn}return null}var G=function(Ze){var lt=Ze.impact,Kt=Ze.viewport,Bn=Ze.destination,Ar=Ze.draggables,Tr=Ze.maxScrollChange,Yr=Yn(Kt,Gr(Kt.scroll.current,Tr)),qr=Bn.frame?Ur(Bn,Gr(Bn.frame.scroll.current,Tr)):Bn,qi=lt.displaced,Co=Ko({afterDragging:Z(qi.all,Ar),destination:Bn,displacedBy:lt.displacedBy,viewport:Yr.frame,last:qi,forceShouldAnimate:!1}),_o=Ko({afterDragging:Z(qi.all,Ar),destination:qr,displacedBy:lt.displacedBy,viewport:Kt.frame,last:qi,forceShouldAnimate:!1}),go={},mo={},Bo=[qi,Co,_o];qi.all.forEach(function(Bs){var Xs=se(Bs,Bo);if(Xs){mo[Bs]=Xs;return}go[Bs]=!0});var Ba=(0,s.A)({},lt,{displaced:{all:qi.all,invisible:go,visible:mo}});return Ba},B=function(Ze,lt){return Gr(Ze.scroll.diff.displacement,lt)},Pe=function(Ze){var lt=Ze.pageBorderBoxCenter,Kt=Ze.draggable,Bn=Ze.viewport,Ar=B(Bn,lt),Tr=un(Ar,Kt.page.borderBox.center);return Gr(Kt.client.borderBox.center,Tr)},dt=function(Ze){var lt=Ze.draggable,Kt=Ze.destination,Bn=Ze.newPageBorderBoxCenter,Ar=Ze.viewport,Tr=Ze.withDroppableDisplacement,Yr=Ze.onlyOnMainAxis,qr=Yr===void 0?!1:Yr,qi=un(Bn,lt.page.borderBox.center),Co=Sn(lt.page.borderBox,qi),_o={target:Co,destination:Kt,withDroppableDisplacement:Tr,viewport:Ar};return qr?Di(_o):Zi(_o)},Lt=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.draggable,Bn=Ze.destination,Ar=Ze.draggables,Tr=Ze.previousImpact,Yr=Ze.viewport,qr=Ze.previousPageBorderBoxCenter,qi=Ze.previousClientSelection,Co=Ze.afterCritical;if(!Bn.isEnabled)return null;var _o=ra(Bn.descriptor.id,Ar),go=Ro(Kt,Bn),mo=Vi({isMovingForward:lt,draggable:Kt,destination:Bn,insideDestination:_o,previousImpact:Tr})||Er({isMovingForward:lt,isInHomeList:go,draggable:Kt,draggables:Ar,destination:Bn,insideDestination:_o,previousImpact:Tr,viewport:Yr,afterCritical:Co});if(!mo)return null;var Bo=br({impact:mo,draggable:Kt,droppable:Bn,draggables:Ar,afterCritical:Co}),Ba=dt({draggable:Kt,destination:Bn,newPageBorderBoxCenter:Bo,viewport:Yr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Ba){var Bs=Pe({pageBorderBoxCenter:Bo,draggable:Kt,viewport:Yr});return{clientSelection:Bs,impact:mo,scrollJumpRequest:null}}var Xs=un(Bo,qr),lu=G({impact:mo,viewport:Yr,destination:Bn,draggables:Ar,maxScrollChange:Xs});return{clientSelection:qi,impact:lu,scrollJumpRequest:Xs}},Pt=function(lt){var Kt=lt.subject.active;return Kt||jr(!1),Kt},$e=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.pageBorderBoxCenter,Bn=Ze.source,Ar=Ze.droppables,Tr=Ze.viewport,Yr=Bn.subject.active;if(!Yr)return null;var qr=Bn.axis,qi=vi(Yr[qr.start],Yr[qr.end]),Co=so(Ar).filter(function(go){return go!==Bn}).filter(function(go){return go.isEnabled}).filter(function(go){return!!go.subject.active}).filter(function(go){return to(Tr.frame)(Pt(go))}).filter(function(go){var mo=Pt(go);return lt?Yr[qr.crossAxisEnd]<mo[qr.crossAxisEnd]:mo[qr.crossAxisStart]<Yr[qr.crossAxisStart]}).filter(function(go){var mo=Pt(go),Bo=vi(mo[qr.start],mo[qr.end]);return qi(mo[qr.start])||qi(mo[qr.end])||Bo(Yr[qr.start])||Bo(Yr[qr.end])}).sort(function(go,mo){var Bo=Pt(go)[qr.crossAxisStart],Ba=Pt(mo)[qr.crossAxisStart];return lt?Bo-Ba:Ba-Bo}).filter(function(go,mo,Bo){return Pt(go)[qr.crossAxisStart]===Pt(Bo[0])[qr.crossAxisStart]});if(!Co.length)return null;if(Co.length===1)return Co[0];var _o=Co.filter(function(go){var mo=vi(Pt(go)[qr.start],Pt(go)[qr.end]);return mo(Kt[qr.line])});return _o.length===1?_o[0]:_o.length>1?_o.sort(function(go,mo){return Pt(go)[qr.start]-Pt(mo)[qr.start]})[0]:Co.sort(function(go,mo){var Bo=An(Kt,ir(Pt(go))),Ba=An(Kt,ir(Pt(mo)));return Bo!==Ba?Bo-Ba:Pt(go)[qr.start]-Pt(mo)[qr.start]})[0]},ut=function(lt,Kt){var Bn=lt.page.borderBox.center;return _n(lt.descriptor.id,Kt)?un(Bn,Kt.displacedBy.point):Bn},zt=function(lt,Kt){var Bn=lt.page.borderBox;return _n(lt.descriptor.id,Kt)?Sn(Bn,kn(Kt.displacedBy.point)):Bn},Ht=function(Ze){var lt=Ze.pageBorderBoxCenter,Kt=Ze.viewport,Bn=Ze.destination,Ar=Ze.insideDestination,Tr=Ze.afterCritical,Yr=Ar.filter(function(qr){return Zi({target:zt(qr,Tr),destination:Bn,viewport:Kt.frame,withDroppableDisplacement:!0})}).sort(function(qr,qi){var Co=ln(lt,No(Bn,ut(qr,Tr))),_o=ln(lt,No(Bn,ut(qi,Tr)));return Co<_o?-1:_o<Co?1:qr.descriptor.index-qi.descriptor.index});return Yr[0]||null},Fn=Zt(function(lt,Kt){var Bn=Kt[lt.line];return{value:Bn,point:St(lt.line,Bn)}}),Cn=function(lt,Kt,Bn){var Ar=lt.axis;if(lt.descriptor.mode==="virtual")return St(Ar.line,Kt[Ar.line]);var Tr=lt.subject.page.contentBox[Ar.size],Yr=ra(lt.descriptor.id,Bn),qr=Yr.reduce(function(_o,go){return _o+go.client.marginBox[Ar.size]},0),qi=qr+Kt[Ar.line],Co=qi-Tr;return Co<=0?null:St(Ar.line,Co)},tr=function(lt,Kt){return(0,s.A)({},lt,{scroll:(0,s.A)({},lt.scroll,{max:Kt})})},Jn=function(lt,Kt,Bn){var Ar=lt.frame;Ro(Kt,lt)&&jr(!1),lt.subject.withPlaceholder&&jr(!1);var Tr=Fn(lt.axis,Kt.displaceBy).point,Yr=Cn(lt,Tr,Bn),qr={placeholderSize:Tr,increasedBy:Yr,oldFrameMaxScroll:lt.frame?lt.frame.scroll.max:null};if(!Ar){var qi=Vn({page:lt.subject.page,withPlaceholder:qr,axis:lt.axis,frame:lt.frame});return(0,s.A)({},lt,{subject:qi})}var Co=Yr?Gr(Ar.scroll.max,Yr):Ar.scroll.max,_o=tr(Ar,Co),go=Vn({page:lt.subject.page,withPlaceholder:qr,axis:lt.axis,frame:_o});return(0,s.A)({},lt,{subject:go,frame:_o})},ei=function(lt){var Kt=lt.subject.withPlaceholder;Kt||jr(!1);var Bn=lt.frame;if(!Bn){var Ar=Vn({page:lt.subject.page,axis:lt.axis,frame:null,withPlaceholder:null});return(0,s.A)({},lt,{subject:Ar})}var Tr=Kt.oldFrameMaxScroll;Tr||jr(!1);var Yr=tr(Bn,Tr),qr=Vn({page:lt.subject.page,axis:lt.axis,frame:Yr,withPlaceholder:null});return(0,s.A)({},lt,{subject:qr,frame:Yr})},Ci=function(Ze){var lt=Ze.previousPageBorderBoxCenter,Kt=Ze.moveRelativeTo,Bn=Ze.insideDestination,Ar=Ze.draggable,Tr=Ze.draggables,Yr=Ze.destination,qr=Ze.viewport,qi=Ze.afterCritical;if(!Kt){if(Bn.length)return null;var Co={displaced:ta,displacedBy:na,at:{type:"REORDER",destination:{droppableId:Yr.descriptor.id,index:0}}},_o=br({impact:Co,draggable:Ar,droppable:Yr,draggables:Tr,afterCritical:qi}),go=Ro(Ar,Yr)?Yr:Jn(Yr,Ar,Tr),mo=dt({draggable:Ar,destination:go,newPageBorderBoxCenter:_o,viewport:qr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return mo?Co:null}var Bo=lt[Yr.axis.line]<=Kt.page.borderBox.center[Yr.axis.line],Ba=function(){var Xs=Kt.descriptor.index;return Kt.descriptor.id===Ar.descriptor.id||Bo?Xs:Xs+1}(),Bs=Fn(Yr.axis,Ar.displaceBy);return on({draggable:Ar,insideDestination:Bn,destination:Yr,viewport:qr,displacedBy:Bs,last:ta,index:Ba})},zi=function(Ze){var lt=Ze.isMovingForward,Kt=Ze.previousPageBorderBoxCenter,Bn=Ze.draggable,Ar=Ze.isOver,Tr=Ze.draggables,Yr=Ze.droppables,qr=Ze.viewport,qi=Ze.afterCritical,Co=$e({isMovingForward:lt,pageBorderBoxCenter:Kt,source:Ar,droppables:Yr,viewport:qr});if(!Co)return null;var _o=ra(Co.descriptor.id,Tr),go=Ht({pageBorderBoxCenter:Kt,viewport:qr,destination:Co,insideDestination:_o,afterCritical:qi}),mo=Ci({previousPageBorderBoxCenter:Kt,destination:Co,draggable:Bn,draggables:Tr,moveRelativeTo:go,insideDestination:_o,viewport:qr,afterCritical:qi});if(!mo)return null;var Bo=br({impact:mo,draggable:Bn,droppable:Co,draggables:Tr,afterCritical:qi}),Ba=Pe({pageBorderBoxCenter:Bo,draggable:Bn,viewport:qr});return{clientSelection:Ba,impact:mo,scrollJumpRequest:null}},co=function(Ze){var lt=Ze.at;return lt?lt.type==="REORDER"?lt.destination.droppableId:lt.combine.droppableId:null},Xo=function(lt,Kt){var Bn=co(lt);return Bn?Kt[Bn]:null},Eo=function(Ze){var lt=Ze.state,Kt=Ze.type,Bn=Xo(lt.impact,lt.dimensions.droppables),Ar=!!Bn,Tr=lt.dimensions.droppables[lt.critical.droppable.id],Yr=Bn||Tr,qr=Yr.axis.direction,qi=qr==="vertical"&&(Kt==="MOVE_UP"||Kt==="MOVE_DOWN")||qr==="horizontal"&&(Kt==="MOVE_LEFT"||Kt==="MOVE_RIGHT");if(qi&&!Ar)return null;var Co=Kt==="MOVE_DOWN"||Kt==="MOVE_RIGHT",_o=lt.dimensions.draggables[lt.critical.draggable.id],go=lt.current.page.borderBoxCenter,mo=lt.dimensions,Bo=mo.draggables,Ba=mo.droppables;return qi?Lt({isMovingForward:Co,previousPageBorderBoxCenter:go,draggable:_o,destination:Yr,draggables:Bo,viewport:lt.viewport,previousClientSelection:lt.current.client.selection,previousImpact:lt.impact,afterCritical:lt.afterCritical}):zi({isMovingForward:Co,previousPageBorderBoxCenter:go,draggable:_o,isOver:Yr,draggables:Bo,droppables:Ba,viewport:lt.viewport,afterCritical:lt.afterCritical})};function Yo(Ze){return Ze.phase==="DRAGGING"||Ze.phase==="COLLECTING"}function Xn(Ze){var lt=vi(Ze.top,Ze.bottom),Kt=vi(Ze.left,Ze.right);return function(Ar){return lt(Ar.y)&&Kt(Ar.x)}}function fr(Ze,lt){return Ze.left<lt.right&&Ze.right>lt.left&&Ze.top<lt.bottom&&Ze.bottom>lt.top}function mr(Ze){var lt=Ze.pageBorderBox,Kt=Ze.draggable,Bn=Ze.candidates,Ar=Kt.page.borderBox.center,Tr=Bn.map(function(Yr){var qr=Yr.axis,qi=St(Yr.axis.line,lt.center[qr.line],Yr.page.borderBox.center[qr.crossAxisLine]);return{id:Yr.descriptor.id,distance:ln(Ar,qi)}}).sort(function(Yr,qr){return qr.distance-Yr.distance});return Tr[0]?Tr[0].id:null}function yr(Ze){var lt=Ze.pageBorderBox,Kt=Ze.draggable,Bn=Ze.droppables,Ar=so(Bn).filter(function(Tr){if(!Tr.isEnabled)return!1;var Yr=Tr.subject.active;if(!Yr||!fr(lt,Yr))return!1;if(Xn(Yr)(lt.center))return!0;var qr=Tr.axis,qi=Yr.center[qr.crossAxisLine],Co=lt[qr.crossAxisStart],_o=lt[qr.crossAxisEnd],go=vi(Yr[qr.crossAxisStart],Yr[qr.crossAxisEnd]),mo=go(Co),Bo=go(_o);return!mo&&!Bo?!0:mo?Co<qi:_o>qi});return Ar.length?Ar.length===1?Ar[0].descriptor.id:mr({pageBorderBox:lt,draggable:Kt,candidates:Ar}):null}var Rr=function(lt,Kt){return ct(Sn(lt,Kt))},ai=function(Ze,lt){var Kt=Ze.frame;return Kt?Rr(lt,Kt.scroll.diff.value):lt};function jt(Ze){var lt=Ze.displaced,Kt=Ze.id;return!!(lt.visible[Kt]||lt.invisible[Kt])}function Pn(Ze){var lt=Ze.draggable,Kt=Ze.closest,Bn=Ze.inHomeList;return Kt?Bn&&Kt.descriptor.index>lt.descriptor.index?Kt.descriptor.index-1:Kt.descriptor.index:null}var nr=function(Ze){var lt=Ze.pageBorderBoxWithDroppableScroll,Kt=Ze.draggable,Bn=Ze.destination,Ar=Ze.insideDestination,Tr=Ze.last,Yr=Ze.viewport,qr=Ze.afterCritical,qi=Bn.axis,Co=Fn(Bn.axis,Kt.displaceBy),_o=Co.value,go=lt[qi.start],mo=lt[qi.end],Bo=di(Kt,Ar),Ba=gi(Bo,function(Xs){var lu=Xs.descriptor.id,Cu=Xs.page.borderBox.center[qi.line],yu=_n(lu,qr),Ku=jt({displaced:Tr,id:lu});return yu?Ku?mo<=Cu:go<Cu-_o:Ku?mo<=Cu+_o:go<Cu}),Bs=Pn({draggable:Kt,closest:Ba,inHomeList:Ro(Kt,Bn)});return on({draggable:Kt,insideDestination:Ar,destination:Bn,viewport:Yr,last:Tr,displacedBy:Co,index:Bs})},Ir=4,fi=function(Ze){var lt=Ze.draggable,Kt=Ze.pageBorderBoxWithDroppableScroll,Bn=Ze.previousImpact,Ar=Ze.destination,Tr=Ze.insideDestination,Yr=Ze.afterCritical;if(!Ar.isCombineEnabled)return null;var qr=Ar.axis,qi=Fn(Ar.axis,lt.displaceBy),Co=qi.value,_o=Kt[qr.start],go=Kt[qr.end],mo=di(lt,Tr),Bo=gi(mo,function(Bs){var Xs=Bs.descriptor.id,lu=Bs.page.borderBox,Cu=lu[qr.size],yu=Cu/Ir,Ku=_n(Xs,Yr),yl=jt({displaced:Bn.displaced,id:Xs});return Ku?yl?go>lu[qr.start]+yu&&go<lu[qr.end]-yu:_o>lu[qr.start]-Co+yu&&_o<lu[qr.end]-Co-yu:yl?go>lu[qr.start]+Co+yu&&go<lu[qr.end]+Co-yu:_o>lu[qr.start]+yu&&_o<lu[qr.end]-yu});if(!Bo)return null;var Ba={displacedBy:qi,displaced:Bn.displaced,at:{type:"COMBINE",combine:{draggableId:Bo.descriptor.id,droppableId:Ar.descriptor.id}}};return Ba},Ti=function(Ze){var lt=Ze.pageOffset,Kt=Ze.draggable,Bn=Ze.draggables,Ar=Ze.droppables,Tr=Ze.previousImpact,Yr=Ze.viewport,qr=Ze.afterCritical,qi=Rr(Kt.page.borderBox,lt),Co=yr({pageBorderBox:qi,draggable:Kt,droppables:Ar});if(!Co)return aa;var _o=Ar[Co],go=ra(_o.descriptor.id,Bn),mo=ai(_o,qi);return fi({pageBorderBoxWithDroppableScroll:mo,draggable:Kt,previousImpact:Tr,destination:_o,insideDestination:go,afterCritical:qr})||nr({pageBorderBoxWithDroppableScroll:mo,draggable:Kt,destination:_o,insideDestination:go,last:Tr.displaced,viewport:Yr,afterCritical:qr})},Oe=function(Ze,lt){var Kt;return(0,s.A)({},Ze,(Kt={},Kt[lt.descriptor.id]=lt,Kt))},pn=function(lt){var Kt=lt.previousImpact,Bn=lt.impact,Ar=lt.droppables,Tr=co(Kt),Yr=co(Bn);if(!Tr||Tr===Yr)return Ar;var qr=Ar[Tr];if(!qr.subject.withPlaceholder)return Ar;var qi=ei(qr);return Oe(Ar,qi)},Qn=function(Ze){var lt=Ze.draggable,Kt=Ze.draggables,Bn=Ze.droppables,Ar=Ze.previousImpact,Tr=Ze.impact,Yr=pn({previousImpact:Ar,impact:Tr,droppables:Bn}),qr=co(Tr);if(!qr)return Yr;var qi=Bn[qr];if(Ro(lt,qi)||qi.subject.withPlaceholder)return Yr;var Co=Jn(qi,lt,Kt);return Oe(Yr,Co)},Sr=function(Ze){var lt=Ze.state,Kt=Ze.clientSelection,Bn=Ze.dimensions,Ar=Ze.viewport,Tr=Ze.impact,Yr=Ze.scrollJumpRequest,qr=Ar||lt.viewport,qi=Bn||lt.dimensions,Co=Kt||lt.current.client.selection,_o=un(Co,lt.initial.client.selection),go={offset:_o,selection:Co,borderBoxCenter:Gr(lt.initial.client.borderBoxCenter,_o)},mo={selection:Gr(go.selection,qr.scroll.current),borderBoxCenter:Gr(go.borderBoxCenter,qr.scroll.current),offset:Gr(go.offset,qr.scroll.diff.value)},Bo={client:go,page:mo};if(lt.phase==="COLLECTING")return(0,s.A)({phase:"COLLECTING"},lt,{dimensions:qi,viewport:qr,current:Bo});var Ba=qi.draggables[lt.critical.draggable.id],Bs=Tr||Ti({pageOffset:mo.offset,draggable:Ba,draggables:qi.draggables,droppables:qi.droppables,previousImpact:lt.impact,viewport:qr,afterCritical:lt.afterCritical}),Xs=Qn({draggable:Ba,impact:Bs,previousImpact:lt.impact,draggables:qi.draggables,droppables:qi.droppables}),lu=(0,s.A)({},lt,{current:Bo,dimensions:{draggables:qi.draggables,droppables:Xs},impact:Bs,viewport:qr,scrollJumpRequest:Yr||null,forceShouldAnimate:Yr?!1:null});return lu};function hr(Ze,lt){return Ze.map(function(Kt){return lt[Kt]})}var kr=function(Ze){var lt=Ze.impact,Kt=Ze.viewport,Bn=Ze.draggables,Ar=Ze.destination,Tr=Ze.forceShouldAnimate,Yr=lt.displaced,qr=hr(Yr.all,Bn),qi=Ko({afterDragging:qr,destination:Ar,displacedBy:lt.displacedBy,viewport:Kt.frame,forceShouldAnimate:Tr,last:Yr});return(0,s.A)({},lt,{displaced:qi})},Ve=function(Ze){var lt=Ze.impact,Kt=Ze.draggable,Bn=Ze.droppable,Ar=Ze.draggables,Tr=Ze.viewport,Yr=Ze.afterCritical,qr=br({impact:lt,draggable:Kt,draggables:Ar,droppable:Bn,afterCritical:Yr});return Pe({pageBorderBoxCenter:qr,draggable:Kt,viewport:Tr})},Ot=function(Ze){var lt=Ze.state,Kt=Ze.dimensions,Bn=Ze.viewport;lt.movementMode!=="SNAP"&&jr(!1);var Ar=lt.impact,Tr=Bn||lt.viewport,Yr=Kt||lt.dimensions,qr=Yr.draggables,qi=Yr.droppables,Co=qr[lt.critical.draggable.id],_o=co(Ar);_o||jr(!1);var go=qi[_o],mo=kr({impact:Ar,viewport:Tr,destination:go,draggables:qr}),Bo=Ve({impact:mo,draggable:Co,droppable:go,draggables:qr,viewport:Tr,afterCritical:lt.afterCritical});return Sr({impact:mo,clientSelection:Bo,state:lt,dimensions:Yr,viewport:Tr})},wn=function(Ze){return{index:Ze.index,droppableId:Ze.droppableId}},Wt=function(Ze){var lt=Ze.draggable,Kt=Ze.home,Bn=Ze.draggables,Ar=Ze.viewport,Tr=Fn(Kt.axis,lt.displaceBy),Yr=ra(Kt.descriptor.id,Bn),qr=Yr.indexOf(lt);qr===-1&&jr(!1);var qi=Yr.slice(qr+1),Co=qi.reduce(function(Bo,Ba){return Bo[Ba.descriptor.id]=!0,Bo},{}),_o={inVirtualList:Kt.descriptor.mode==="virtual",displacedBy:Tr,effected:Co},go=Ko({afterDragging:qi,destination:Kt,displacedBy:Tr,last:null,viewport:Ar.frame,forceShouldAnimate:!1}),mo={displaced:go,displacedBy:Tr,at:{type:"REORDER",destination:wn(lt.descriptor)}};return{impact:mo,afterCritical:_o}},Yt=function(Ze,lt){return{draggables:Ze.draggables,droppables:Oe(Ze.droppables,lt)}},zn=function(lt){},Nr=function(lt){},si=function(Ze){var lt=Ze.draggable,Kt=Ze.offset,Bn=Ze.initialWindowScroll,Ar=Qe(lt.client,Kt),Tr=Bt(Ar,Bn),Yr=(0,s.A)({},lt,{placeholder:(0,s.A)({},lt.placeholder,{client:Ar}),client:Ar,page:Tr});return Yr},Ki=function(Ze){var lt=Ze.frame;return lt||jr(!1),lt},Bi=function(Ze){var lt=Ze.additions,Kt=Ze.updatedDroppables,Bn=Ze.viewport,Ar=Bn.scroll.diff.value;return lt.map(function(Tr){var Yr=Tr.descriptor.droppableId,qr=Kt[Yr],qi=Ki(qr),Co=qi.scroll.diff.value,_o=Gr(Ar,Co),go=si({draggable:Tr,offset:_o,initialWindowScroll:Bn.scroll.initial});return go})},Xi=function(Ze){var lt=Ze.state,Kt=Ze.published;zn();var Bn=Kt.modified.map(function(yu){var Ku=lt.dimensions.droppables[yu.droppableId],yl=Ur(Ku,yu.scroll);return yl}),Ar=(0,s.A)({},lt.dimensions.droppables,{},eo(Bn)),Tr=ki(Bi({additions:Kt.additions,updatedDroppables:Ar,viewport:lt.viewport})),Yr=(0,s.A)({},lt.dimensions.draggables,{},Tr);Kt.removals.forEach(function(yu){delete Yr[yu]});var qr={droppables:Ar,draggables:Yr},qi=co(lt.impact),Co=qi?qr.droppables[qi]:null,_o=qr.draggables[lt.critical.draggable.id],go=qr.droppables[lt.critical.droppable.id],mo=Wt({draggable:_o,home:go,draggables:Yr,viewport:lt.viewport}),Bo=mo.impact,Ba=mo.afterCritical,Bs=Co&&Co.isCombineEnabled?lt.impact:Bo,Xs=Ti({pageOffset:lt.current.page.offset,draggable:qr.draggables[lt.critical.draggable.id],draggables:qr.draggables,droppables:qr.droppables,previousImpact:Bs,viewport:lt.viewport,afterCritical:Ba});Nr();var lu=(0,s.A)({phase:"DRAGGING"},lt,{phase:"DRAGGING",impact:Xs,onLiftImpact:Bo,dimensions:qr,afterCritical:Ba,forceShouldAnimate:!1});if(lt.phase==="COLLECTING")return lu;var Cu=(0,s.A)({phase:"DROP_PENDING"},lu,{phase:"DROP_PENDING",reason:lt.reason,isWaiting:!1});return Cu},vo=function(lt){return lt.movementMode==="SNAP"},ea=function(lt,Kt,Bn){var Ar=Yt(lt.dimensions,Kt);return!vo(lt)||Bn?Sr({state:lt,dimensions:Ar}):Ot({state:lt,dimensions:Ar})};function la(Ze){return Ze.isDragging&&Ze.movementMode==="SNAP"?(0,s.A)({phase:"DRAGGING"},Ze,{scrollJumpRequest:null}):Ze}var ss={phase:"IDLE",completed:null,shouldFlush:!1},Rs=function(Ze,lt){if(Ze===void 0&&(Ze=ss),lt.type==="FLUSH")return(0,s.A)({},ss,{shouldFlush:!0});if(lt.type==="INITIAL_PUBLISH"){Ze.phase!=="IDLE"&&jr(!1);var Kt=lt.payload,Bn=Kt.critical,Ar=Kt.clientSelection,Tr=Kt.viewport,Yr=Kt.dimensions,qr=Kt.movementMode,qi=Yr.draggables[Bn.draggable.id],Co=Yr.droppables[Bn.droppable.id],_o={selection:Ar,borderBoxCenter:qi.client.borderBox.center,offset:lo},go={client:_o,page:{selection:Gr(_o.selection,Tr.scroll.initial),borderBoxCenter:Gr(_o.selection,Tr.scroll.initial),offset:Gr(_o.selection,Tr.scroll.diff.value)}},mo=so(Yr.droppables).every(function(sf){return!sf.isFixedOnPage}),Bo=Wt({draggable:qi,home:Co,draggables:Yr.draggables,viewport:Tr}),Ba=Bo.impact,Bs=Bo.afterCritical,Xs={phase:"DRAGGING",isDragging:!0,critical:Bn,movementMode:qr,dimensions:Yr,initial:go,current:go,isWindowScrollAllowed:mo,impact:Ba,afterCritical:Bs,onLiftImpact:Ba,viewport:Tr,scrollJumpRequest:null,forceShouldAnimate:null};return Xs}if(lt.type==="COLLECTION_STARTING"){if(Ze.phase==="COLLECTING"||Ze.phase==="DROP_PENDING")return Ze;Ze.phase!=="DRAGGING"&&jr(!1);var lu=(0,s.A)({phase:"COLLECTING"},Ze,{phase:"COLLECTING"});return lu}if(lt.type==="PUBLISH_WHILE_DRAGGING")return Ze.phase==="COLLECTING"||Ze.phase==="DROP_PENDING"||jr(!1),Xi({state:Ze,published:lt.payload});if(lt.type==="MOVE"){if(Ze.phase==="DROP_PENDING")return Ze;Yo(Ze)||jr(!1);var Cu=lt.payload.client;return qn(Cu,Ze.current.client.selection)?Ze:Sr({state:Ze,clientSelection:Cu,impact:vo(Ze)?Ze.impact:null})}if(lt.type==="UPDATE_DROPPABLE_SCROLL"){if(Ze.phase==="DROP_PENDING"||Ze.phase==="COLLECTING")return la(Ze);Yo(Ze)||jr(!1);var yu=lt.payload,Ku=yu.id,yl=yu.newScroll,$u=Ze.dimensions.droppables[Ku];if(!$u)return Ze;var Cl=Ur($u,yl);return ea(Ze,Cl,!1)}if(lt.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Ze.phase==="DROP_PENDING")return Ze;Yo(Ze)||jr(!1);var Tc=lt.payload,xl=Tc.id,Dl=Tc.isEnabled,ec=Ze.dimensions.droppables[xl];ec||jr(!1),ec.isEnabled===Dl&&jr(!1);var Oc=(0,s.A)({},ec,{isEnabled:Dl});return ea(Ze,Oc,!0)}if(lt.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Ze.phase==="DROP_PENDING")return Ze;Yo(Ze)||jr(!1);var zf=lt.payload,Sd=zf.id,Bf=zf.isCombineEnabled,Yf=Ze.dimensions.droppables[Sd];Yf||jr(!1),Yf.isCombineEnabled===Bf&&jr(!1);var Lc=(0,s.A)({},Yf,{isCombineEnabled:Bf});return ea(Ze,Lc,!0)}if(lt.type==="MOVE_BY_WINDOW_SCROLL"){if(Ze.phase==="DROP_PENDING"||Ze.phase==="DROP_ANIMATING")return Ze;Yo(Ze)||jr(!1),Ze.isWindowScrollAllowed||jr(!1);var dd=lt.payload.newScroll;if(qn(Ze.viewport.scroll.current,dd))return la(Ze);var af=Yn(Ze.viewport,dd);return vo(Ze)?Ot({state:Ze,viewport:af}):Sr({state:Ze,viewport:af})}if(lt.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Yo(Ze))return Ze;var Of=lt.payload.maxScroll;if(qn(Of,Ze.viewport.scroll.max))return Ze;var Ad=(0,s.A)({},Ze.viewport,{scroll:(0,s.A)({},Ze.viewport.scroll,{max:Of})});return(0,s.A)({phase:"DRAGGING"},Ze,{viewport:Ad})}if(lt.type==="MOVE_UP"||lt.type==="MOVE_DOWN"||lt.type==="MOVE_LEFT"||lt.type==="MOVE_RIGHT"){if(Ze.phase==="COLLECTING"||Ze.phase==="DROP_PENDING")return Ze;Ze.phase!=="DRAGGING"&&jr(!1);var hd=Eo({state:Ze,type:lt.type});return hd?Sr({state:Ze,impact:hd.impact,clientSelection:hd.clientSelection,scrollJumpRequest:hd.scrollJumpRequest}):Ze}if(lt.type==="DROP_PENDING"){var ed=lt.payload.reason;Ze.phase!=="COLLECTING"&&jr(!1);var Fd=(0,s.A)({phase:"DROP_PENDING"},Ze,{phase:"DROP_PENDING",isWaiting:!0,reason:ed});return Fd}if(lt.type==="DROP_ANIMATE"){var ku=lt.payload,el=ku.completed,Ec=ku.dropDuration,hc=ku.newHomeClientOffset;Ze.phase==="DRAGGING"||Ze.phase==="DROP_PENDING"||jr(!1);var uc={phase:"DROP_ANIMATING",completed:el,dropDuration:Ec,newHomeClientOffset:hc,dimensions:Ze.dimensions};return uc}if(lt.type==="DROP_COMPLETE"){var td=lt.payload.completed;return{phase:"IDLE",completed:td,shouldFlush:!1}}return Ze},Ds=function(lt){return{type:"BEFORE_INITIAL_CAPTURE",payload:lt}},Is=function(lt){return{type:"LIFT",payload:lt}},nu=function(lt){return{type:"INITIAL_PUBLISH",payload:lt}},Ls=function(lt){return{type:"PUBLISH_WHILE_DRAGGING",payload:lt}},gu=function(){return{type:"COLLECTION_STARTING",payload:null}},Us=function(lt){return{type:"UPDATE_DROPPABLE_SCROLL",payload:lt}},Iu=function(lt){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:lt}},Wu=function(lt){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:lt}},rl=function(lt){return{type:"MOVE",payload:lt}},Hu=function(lt){return{type:"MOVE_BY_WINDOW_SCROLL",payload:lt}},Ts=function(lt){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:lt}},Al=function(){return{type:"MOVE_UP",payload:null}},fl=function(){return{type:"MOVE_DOWN",payload:null}},Rl=function(){return{type:"MOVE_RIGHT",payload:null}},Bu=function(){return{type:"MOVE_LEFT",payload:null}},Mn=function(){return{type:"FLUSH",payload:null}},en=function(lt){return{type:"DROP_ANIMATE",payload:lt}},sn=function(lt){return{type:"DROP_COMPLETE",payload:lt}},qt=function(lt){return{type:"DROP",payload:lt}},In=function(lt){return{type:"DROP_PENDING",payload:lt}},Kn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Fr(Ze){if(!(Ze.length<=1)){for(var lt=Ze.map(function(qr){return qr.descriptor.index}),Kt={},Bn=1;Bn<lt.length;Bn++){var Ar=lt[Bn],Tr=lt[Bn-1];Ar!==Tr+1&&(Kt[Ar]=!0)}if(Object.keys(Kt).length)var Yr=lt.map(function(qr){var qi=!!Kt[qr];return qi?"[\u{1F525}"+qr+"]":""+qr}).join(", ")}}function ci(Ze,lt){if(!1)var Kt}var Le=function(Ze){return function(lt){var Kt=lt.getState,Bn=lt.dispatch;return function(Ar){return function(Tr){if(Tr.type!=="LIFT"){Ar(Tr);return}var Yr=Tr.payload,qr=Yr.id,qi=Yr.clientSelection,Co=Yr.movementMode,_o=Kt();_o.phase==="DROP_ANIMATING"&&Bn(sn({completed:_o.completed})),Kt().phase!=="IDLE"&&jr(!1),Bn(Mn()),Bn(Ds({draggableId:qr,movementMode:Co}));var go={shouldPublishImmediately:Co==="SNAP"},mo={draggableId:qr,scrollOptions:go},Bo=Ze.startPublishing(mo),Ba=Bo.critical,Bs=Bo.dimensions,Xs=Bo.viewport;ci(Ba,Bs),Bn(nu({critical:Ba,dimensions:Bs,clientSelection:qi,movementMode:Co,viewport:Xs}))}}}},te=function(Ze){return function(){return function(lt){return function(Kt){Kt.type==="INITIAL_PUBLISH"&&Ze.dragging(),Kt.type==="DROP_ANIMATE"&&Ze.dropping(Kt.payload.completed.result.reason),(Kt.type==="FLUSH"||Kt.type==="DROP_COMPLETE")&&Ze.resting(),lt(Kt)}}}},Ue={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},rt={opacity:{drop:0,combining:.7},scale:{drop:.75}},ht={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Gt=ht.outOfTheWay+"s "+Ue.outOfTheWay,xn={fluid:"opacity "+Gt,snap:"transform "+Gt+", opacity "+Gt,drop:function(lt){var Kt=lt+"s "+Ue.drop;return"transform "+Kt+", opacity "+Kt},outOfTheWay:"transform "+Gt,placeholder:"height "+Gt+", width "+Gt+", margin "+Gt},Hn=function(lt){return qn(lt,lo)?null:"translate("+lt.x+"px, "+lt.y+"px)"},wr={moveTo:Hn,drop:function(lt,Kt){var Bn=Hn(lt);return Bn?Kt?Bn+" scale("+rt.scale.drop+")":Bn:null}},Wr=ht.minDropTime,vt=ht.maxDropTime,Vt=vt-Wr,dn=1500,yn=.6,ar=function(Ze){var lt=Ze.current,Kt=Ze.destination,Bn=Ze.reason,Ar=ln(lt,Kt);if(Ar<=0)return Wr;if(Ar>=dn)return vt;var Tr=Ar/dn,Yr=Wr+Vt*Tr,qr=Bn==="CANCEL"?Yr*yn:Yr;return Number(qr.toFixed(2))},wi=function(Ze){var lt=Ze.impact,Kt=Ze.draggable,Bn=Ze.dimensions,Ar=Ze.viewport,Tr=Ze.afterCritical,Yr=Bn.draggables,qr=Bn.droppables,qi=co(lt),Co=qi?qr[qi]:null,_o=qr[Kt.descriptor.droppableId],go=Ve({impact:lt,draggable:Kt,draggables:Yr,afterCritical:Tr,droppable:Co||_o,viewport:Ar}),mo=un(go,Kt.client.borderBox.center);return mo},mi=function(Ze){var lt=Ze.draggables,Kt=Ze.reason,Bn=Ze.lastImpact,Ar=Ze.home,Tr=Ze.viewport,Yr=Ze.onLiftImpact;if(!Bn.at||Kt!=="DROP"){var qr=kr({draggables:lt,impact:Yr,destination:Ar,viewport:Tr,forceShouldAnimate:!0});return{impact:qr,didDropInsideDroppable:!1}}if(Bn.at.type==="REORDER")return{impact:Bn,didDropInsideDroppable:!0};var qi=(0,s.A)({},Bn,{displaced:ta});return{impact:qi,didDropInsideDroppable:!0}},ho=function(Ze){var lt=Ze.getState,Kt=Ze.dispatch;return function(Bn){return function(Ar){if(Ar.type!=="DROP"){Bn(Ar);return}var Tr=lt(),Yr=Ar.payload.reason;if(Tr.phase==="COLLECTING"){Kt(In({reason:Yr}));return}if(Tr.phase!=="IDLE"){var qr=Tr.phase==="DROP_PENDING"&&Tr.isWaiting;qr&&jr(!1),Tr.phase==="DRAGGING"||Tr.phase==="DROP_PENDING"||jr(!1);var qi=Tr.critical,Co=Tr.dimensions,_o=Co.draggables[Tr.critical.draggable.id],go=mi({reason:Yr,lastImpact:Tr.impact,afterCritical:Tr.afterCritical,onLiftImpact:Tr.onLiftImpact,home:Tr.dimensions.droppables[Tr.critical.droppable.id],viewport:Tr.viewport,draggables:Tr.dimensions.draggables}),mo=go.impact,Bo=go.didDropInsideDroppable,Ba=Bo?So(mo):null,Bs=Bo?gr(mo):null,Xs={index:qi.draggable.index,droppableId:qi.droppable.id},lu={draggableId:_o.descriptor.id,type:_o.descriptor.type,source:Xs,reason:Yr,mode:Tr.movementMode,destination:Ba,combine:Bs},Cu=wi({impact:mo,draggable:_o,dimensions:Co,viewport:Tr.viewport,afterCritical:Tr.afterCritical}),yu={critical:Tr.critical,afterCritical:Tr.afterCritical,result:lu,impact:mo},Ku=!qn(Tr.current.client.offset,Cu)||!!lu.combine;if(!Ku){Kt(sn({completed:yu}));return}var yl=ar({current:Tr.current.client.offset,destination:Cu,reason:Yr}),$u={newHomeClientOffset:Cu,dropDuration:yl,completed:yu};Kt(en($u))}}}},Ao=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Mo(Ze){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Kt){Kt.target!==window&&Kt.target!==window.document||Ze()}}}function bo(Ze){var lt=Ze.onWindowScroll;function Kt(){lt(Ao())}var Bn=Zn(Kt),Ar=Mo(Bn),Tr=En;function Yr(){return Tr!==En}function qr(){Yr()&&jr(!1),Tr=rr(window,[Ar])}function qi(){Yr()||jr(!1),Bn.cancel(),Tr(),Tr=En}return{start:qr,stop:qi,isActive:Yr}}var ca=function(lt){return lt.type==="DROP_COMPLETE"||lt.type==="DROP_ANIMATE"||lt.type==="FLUSH"},sa=function(Ze){var lt=bo({onWindowScroll:function(Bn){Ze.dispatch(Hu({newScroll:Bn}))}});return function(Kt){return function(Bn){!lt.isActive()&&Bn.type==="INITIAL_PUBLISH"&<.start(),lt.isActive()&&ca(Bn)&<.stop(),Kt(Bn)}}},Da=function(Ze){var lt=!1,Kt=!1,Bn=setTimeout(function(){Kt=!0}),Ar=function(Yr){lt||Kt||(lt=!0,Ze(Yr),clearTimeout(Bn))};return Ar.wasCalled=function(){return lt},Ar},La=function(){var Ze=[],lt=function(Tr){var Yr=zr(Ze,function(Co){return Co.timerId===Tr});Yr===-1&&jr(!1);var qr=Ze.splice(Yr,1),qi=qr[0];qi.callback()},Kt=function(Tr){var Yr=setTimeout(function(){return lt(Yr)}),qr={timerId:Yr,callback:Tr};Ze.push(qr)},Bn=function(){if(Ze.length){var Tr=[].concat(Ze);Ze.length=0,Tr.forEach(function(Yr){clearTimeout(Yr.timerId),Yr.callback()})}};return{add:Kt,flush:Bn}},Ja=function(lt,Kt){return lt==null&&Kt==null?!0:lt==null||Kt==null?!1:lt.droppableId===Kt.droppableId&<.index===Kt.index},Ya=function(lt,Kt){return lt==null&&Kt==null?!0:lt==null||Kt==null?!1:lt.draggableId===Kt.draggableId&<.droppableId===Kt.droppableId},Aa=function(lt,Kt){if(lt===Kt)return!0;var Bn=lt.draggable.id===Kt.draggable.id&<.draggable.droppableId===Kt.draggable.droppableId&<.draggable.type===Kt.draggable.type&<.draggable.index===Kt.draggable.index,Ar=lt.droppable.id===Kt.droppable.id&<.droppable.type===Kt.droppable.type;return Bn&&Ar},ba=function(lt,Kt){zn(),Kt(),Nr()},Ka=function(lt,Kt){return{draggableId:lt.draggable.id,type:lt.droppable.type,source:{droppableId:lt.droppable.id,index:lt.draggable.index},mode:Kt}},us=function(lt,Kt,Bn,Ar){if(!lt){Bn(Ar(Kt));return}var Tr=Da(Bn),Yr={announce:Tr};lt(Kt,Yr),Tr.wasCalled()||Bn(Ar(Kt))},ii=function(Ze,lt){var Kt=La(),Bn=null,Ar=function(mo,Bo){Bn&&jr(!1),ba("onBeforeCapture",function(){var Ba=Ze().onBeforeCapture;if(Ba){var Bs={draggableId:mo,mode:Bo};Ba(Bs)}})},Tr=function(mo,Bo){Bn&&jr(!1),ba("onBeforeDragStart",function(){var Ba=Ze().onBeforeDragStart;Ba&&Ba(Ka(mo,Bo))})},Yr=function(mo,Bo){Bn&&jr(!1);var Ba=Ka(mo,Bo);Bn={mode:Bo,lastCritical:mo,lastLocation:Ba.source,lastCombine:null},Kt.add(function(){ba("onDragStart",function(){return us(Ze().onDragStart,Ba,lt,io.onDragStart)})})},qr=function(mo,Bo){var Ba=So(Bo),Bs=gr(Bo);Bn||jr(!1);var Xs=!Aa(mo,Bn.lastCritical);Xs&&(Bn.lastCritical=mo);var lu=!Ja(Bn.lastLocation,Ba);lu&&(Bn.lastLocation=Ba);var Cu=!Ya(Bn.lastCombine,Bs);if(Cu&&(Bn.lastCombine=Bs),!(!Xs&&!lu&&!Cu)){var yu=(0,s.A)({},Ka(mo,Bn.mode),{combine:Bs,destination:Ba});Kt.add(function(){ba("onDragUpdate",function(){return us(Ze().onDragUpdate,yu,lt,io.onDragUpdate)})})}},qi=function(){Bn||jr(!1),Kt.flush()},Co=function(mo){Bn||jr(!1),Bn=null,ba("onDragEnd",function(){return us(Ze().onDragEnd,mo,lt,io.onDragEnd)})},_o=function(){if(Bn){var mo=(0,s.A)({},Ka(Bn.lastCritical,Bn.mode),{combine:null,destination:null,reason:"CANCEL"});Co(mo)}};return{beforeCapture:Ar,beforeStart:Tr,start:Yr,update:qr,flush:qi,drop:Co,abort:_o}},Wo=function(Ze,lt){var Kt=ii(Ze,lt);return function(Bn){return function(Ar){return function(Tr){if(Tr.type==="BEFORE_INITIAL_CAPTURE"){Kt.beforeCapture(Tr.payload.draggableId,Tr.payload.movementMode);return}if(Tr.type==="INITIAL_PUBLISH"){var Yr=Tr.payload.critical;Kt.beforeStart(Yr,Tr.payload.movementMode),Ar(Tr),Kt.start(Yr,Tr.payload.movementMode);return}if(Tr.type==="DROP_COMPLETE"){var qr=Tr.payload.completed.result;Kt.flush(),Ar(Tr),Kt.drop(qr);return}if(Ar(Tr),Tr.type==="FLUSH"){Kt.abort();return}var qi=Bn.getState();qi.phase==="DRAGGING"&&Kt.update(qi.critical,qi.impact)}}}},Ra=function(Ze){return function(lt){return function(Kt){if(Kt.type!=="DROP_ANIMATION_FINISHED"){lt(Kt);return}var Bn=Ze.getState();Bn.phase!=="DROP_ANIMATING"&&jr(!1),Ze.dispatch(sn({completed:Bn.completed}))}}},_a=function(Ze){var lt=null,Kt=null;function Bn(){Kt&&(cancelAnimationFrame(Kt),Kt=null),lt&&(lt(),lt=null)}return function(Ar){return function(Tr){if((Tr.type==="FLUSH"||Tr.type==="DROP_COMPLETE"||Tr.type==="DROP_ANIMATION_FINISHED")&&Bn(),Ar(Tr),Tr.type==="DROP_ANIMATE"){var Yr={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var qi=Ze.getState();qi.phase==="DROP_ANIMATING"&&Ze.dispatch(Kn())}};Kt=requestAnimationFrame(function(){Kt=null,lt=rr(window,[Yr])})}}}},Wa=function(Ze){return function(){return function(lt){return function(Kt){(Kt.type==="DROP_COMPLETE"||Kt.type==="FLUSH"||Kt.type==="DROP_ANIMATE")&&Ze.stopPublishing(),lt(Kt)}}}},eu=function(Ze){var lt=!1;return function(){return function(Kt){return function(Bn){if(Bn.type==="INITIAL_PUBLISH"){lt=!0,Ze.tryRecordFocus(Bn.payload.critical.draggable.id),Kt(Bn),Ze.tryRestoreFocusRecorded();return}if(Kt(Bn),!!lt){if(Bn.type==="FLUSH"){lt=!1,Ze.tryRestoreFocusRecorded();return}if(Bn.type==="DROP_COMPLETE"){lt=!1;var Ar=Bn.payload.completed.result;Ar.combine&&Ze.tryShiftRecord(Ar.draggableId,Ar.combine.draggableId),Ze.tryRestoreFocusRecorded()}}}}}},Ws=function(lt){return lt.type==="DROP_COMPLETE"||lt.type==="DROP_ANIMATE"||lt.type==="FLUSH"},Ne=function(Ze){return function(lt){return function(Kt){return function(Bn){if(Ws(Bn)){Ze.stop(),Kt(Bn);return}if(Bn.type==="INITIAL_PUBLISH"){Kt(Bn);var Ar=lt.getState();Ar.phase!=="DRAGGING"&&jr(!1),Ze.start(Ar);return}Kt(Bn),Ze.scroll(lt.getState())}}}},kt=function(Ze){return function(lt){return function(Kt){if(lt(Kt),Kt.type==="PUBLISH_WHILE_DRAGGING"){var Bn=Ze.getState();Bn.phase==="DROP_PENDING"&&(Bn.isWaiting||Ze.dispatch(qt({reason:Bn.reason})))}}}},Rn=m.compose,jn=function(Ze){var lt=Ze.dimensionMarshal,Kt=Ze.focusMarshal,Bn=Ze.styleMarshal,Ar=Ze.getResponders,Tr=Ze.announce,Yr=Ze.autoScroller;return(0,m.createStore)(Rs,Rn((0,m.applyMiddleware)(te(Bn),Wa(lt),Le(lt),ho,Ra,_a,kt,Ne(Yr),sa,eu(Kt),Wo(Ar,Tr))))},_r=function(){return{additions:{},removals:{},modified:{}}};function xr(Ze){var lt=Ze.registry,Kt=Ze.callbacks,Bn=_r(),Ar=null,Tr=function(){Ar||(Kt.collectionStarting(),Ar=requestAnimationFrame(function(){Ar=null,zn();var _o=Bn,go=_o.additions,mo=_o.removals,Bo=_o.modified,Ba=Object.keys(go).map(function(lu){return lt.draggable.getById(lu).getDimension(lo)}).sort(function(lu,Cu){return lu.descriptor.index-Cu.descriptor.index}),Bs=Object.keys(Bo).map(function(lu){var Cu=lt.droppable.getById(lu),yu=Cu.callbacks.getScrollWhileDragging();return{droppableId:lu,scroll:yu}}),Xs={additions:Ba,removals:Object.keys(mo),modified:Bs};Bn=_r(),Nr(),Kt.publish(Xs)}))},Yr=function(_o){var go=_o.descriptor.id;Bn.additions[go]=_o,Bn.modified[_o.descriptor.droppableId]=!0,Bn.removals[go]&&delete Bn.removals[go],Tr()},qr=function(_o){var go=_o.descriptor;Bn.removals[go.id]=!0,Bn.modified[go.droppableId]=!0,Bn.additions[go.id]&&delete Bn.additions[go.id],Tr()},qi=function(){Ar&&(cancelAnimationFrame(Ar),Ar=null,Bn=_r())};return{add:Yr,remove:qr,stop:qi}}var oi=function(Ze){var lt=Ze.scrollHeight,Kt=Ze.scrollWidth,Bn=Ze.height,Ar=Ze.width,Tr=un({x:Kt,y:lt},{x:Ar,y:Bn}),Yr={x:Math.max(0,Tr.x),y:Math.max(0,Tr.y)};return Yr},ti=function(){var Ze=document.documentElement;return Ze||jr(!1),Ze},Ri=function(){var Ze=ti(),lt=oi({scrollHeight:Ze.scrollHeight,scrollWidth:Ze.scrollWidth,width:Ze.clientWidth,height:Ze.clientHeight});return lt},Fi=function(){var Ze=Ao(),lt=Ri(),Kt=Ze.y,Bn=Ze.x,Ar=ti(),Tr=Ar.clientWidth,Yr=Ar.clientHeight,qr=Bn+Tr,qi=Kt+Yr,Co=ct({top:Kt,left:Bn,right:qr,bottom:qi}),_o={frame:Co,scroll:{initial:Ze,current:Ze,max:lt,diff:{value:lo,displacement:lo}}};return _o},Gi=function(Ze){var lt=Ze.critical,Kt=Ze.scrollOptions,Bn=Ze.registry;zn();var Ar=Fi(),Tr=Ar.scroll.current,Yr=lt.droppable,qr=Bn.droppable.getAllByType(Yr.type).map(function(go){return go.callbacks.getDimensionAndWatchScroll(Tr,Kt)}),qi=Bn.draggable.getAllByType(lt.draggable.type).map(function(go){return go.getDimension(Tr)}),Co={draggables:ki(qi),droppables:eo(qr)};Nr();var _o={dimensions:Co,critical:lt,viewport:Ar};return _o};function yo(Ze,lt,Kt){if(Kt.descriptor.id===lt.id||Kt.descriptor.type!==lt.type)return!1;var Bn=Ze.droppable.getById(Kt.descriptor.droppableId);return Bn.descriptor.mode==="virtual"}var Do=function(Ze,lt){var Kt=null,Bn=xr({callbacks:{publish:lt.publishWhileDragging,collectionStarting:lt.collectionStarting},registry:Ze}),Ar=function(Bo,Ba){Ze.droppable.exists(Bo)||jr(!1),Kt&<.updateDroppableIsEnabled({id:Bo,isEnabled:Ba})},Tr=function(Bo,Ba){Kt&&(Ze.droppable.exists(Bo)||jr(!1),lt.updateDroppableIsCombineEnabled({id:Bo,isCombineEnabled:Ba}))},Yr=function(Bo,Ba){Kt&&(Ze.droppable.exists(Bo)||jr(!1),lt.updateDroppableScroll({id:Bo,newScroll:Ba}))},qr=function(Bo,Ba){Kt&&Ze.droppable.getById(Bo).callbacks.scroll(Ba)},qi=function(){if(Kt){Bn.stop();var Bo=Kt.critical.droppable;Ze.droppable.getAllByType(Bo.type).forEach(function(Ba){return Ba.callbacks.dragStopped()}),Kt.unsubscribe(),Kt=null}},Co=function(Bo){Kt||jr(!1);var Ba=Kt.critical.draggable;Bo.type==="ADDITION"&&yo(Ze,Ba,Bo.value)&&Bn.add(Bo.value),Bo.type==="REMOVAL"&&yo(Ze,Ba,Bo.value)&&Bn.remove(Bo.value)},_o=function(Bo){Kt&&jr(!1);var Ba=Ze.draggable.getById(Bo.draggableId),Bs=Ze.droppable.getById(Ba.descriptor.droppableId),Xs={draggable:Ba.descriptor,droppable:Bs.descriptor},lu=Ze.subscribe(Co);return Kt={critical:Xs,unsubscribe:lu},Gi({critical:Xs,registry:Ze,scrollOptions:Bo.scrollOptions})},go={updateDroppableIsEnabled:Ar,updateDroppableIsCombineEnabled:Tr,scrollDroppable:qr,updateDroppableScroll:Yr,startPublishing:_o,stopPublishing:qi};return go},po=function(Ze,lt){return Ze.phase==="IDLE"?!0:Ze.phase!=="DROP_ANIMATING"||Ze.completed.result.draggableId===lt?!1:Ze.completed.result.reason==="DROP"},Ji=function(Ze){window.scrollBy(Ze.x,Ze.y)},Uo=Zt(function(Ze){return so(Ze).filter(function(lt){return!(!lt.isEnabled||!lt.frame)})}),Ia=function(lt,Kt){var Bn=gi(Uo(Kt),function(Ar){return Ar.frame||jr(!1),Xn(Ar.frame.pageMarginBox)(lt)});return Bn},za=function(Ze){var lt=Ze.center,Kt=Ze.destination,Bn=Ze.droppables;if(Kt){var Ar=Bn[Kt];return Ar.frame?Ar:null}var Tr=Ia(lt,Bn);return Tr},Ma={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(lt){return Math.pow(lt,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},xo=function(Ze,lt){var Kt=Ze[lt.size]*Ma.startFromPercentage,Bn=Ze[lt.size]*Ma.maxScrollAtPercentage,Ar={startScrollingFrom:Kt,maxScrollValueAt:Bn};return Ar},xs=function(Ze){var lt=Ze.startOfRange,Kt=Ze.endOfRange,Bn=Ze.current,Ar=Kt-lt;if(Ar===0)return 0;var Tr=Bn-lt,Yr=Tr/Ar;return Yr},va=1,Pa=function(Ze,lt){if(Ze>lt.startScrollingFrom)return 0;if(Ze<=lt.maxScrollValueAt)return Ma.maxPixelScroll;if(Ze===lt.startScrollingFrom)return va;var Kt=xs({startOfRange:lt.maxScrollValueAt,endOfRange:lt.startScrollingFrom,current:Ze}),Bn=1-Kt,Ar=Ma.maxPixelScroll*Ma.ease(Bn);return Math.ceil(Ar)},Na=Ma.durationDampening.accelerateAt,Xa=Ma.durationDampening.stopDampeningAt,wa=function(Ze,lt){var Kt=lt,Bn=Xa,Ar=Date.now(),Tr=Ar-Kt;if(Tr>=Xa)return Ze;if(Tr<Na)return va;var Yr=xs({startOfRange:Na,endOfRange:Bn,current:Tr}),qr=Ze*Ma.ease(Yr);return Math.ceil(qr)},Ga=function(Ze){var lt=Ze.distanceToEdge,Kt=Ze.thresholds,Bn=Ze.dragStartTime,Ar=Ze.shouldUseTimeDampening,Tr=Pa(lt,Kt);return Tr===0?0:Ar?Math.max(wa(Tr,Bn),va):Tr},vs=function(Ze){var lt=Ze.container,Kt=Ze.distanceToEdges,Bn=Ze.dragStartTime,Ar=Ze.axis,Tr=Ze.shouldUseTimeDampening,Yr=xo(lt,Ar),qr=Kt[Ar.end]<Kt[Ar.start];return qr?Ga({distanceToEdge:Kt[Ar.end],thresholds:Yr,dragStartTime:Bn,shouldUseTimeDampening:Tr}):-1*Ga({distanceToEdge:Kt[Ar.start],thresholds:Yr,dragStartTime:Bn,shouldUseTimeDampening:Tr})},Za=function(Ze){var lt=Ze.container,Kt=Ze.subject,Bn=Ze.proposedScroll,Ar=Kt.height>lt.height,Tr=Kt.width>lt.width;return!Tr&&!Ar?Bn:Tr&&Ar?null:{x:Tr?0:Bn.x,y:Ar?0:Bn.y}},$a=Cr(function(Ze){return Ze===0?0:Ze}),ns=function(Ze){var lt=Ze.dragStartTime,Kt=Ze.container,Bn=Ze.subject,Ar=Ze.center,Tr=Ze.shouldUseTimeDampening,Yr={top:Ar.y-Kt.top,right:Kt.right-Ar.x,bottom:Kt.bottom-Ar.y,left:Ar.x-Kt.left},qr=vs({container:Kt,distanceToEdges:Yr,dragStartTime:lt,axis:ja,shouldUseTimeDampening:Tr}),qi=vs({container:Kt,distanceToEdges:Yr,dragStartTime:lt,axis:hs,shouldUseTimeDampening:Tr}),Co=$a({x:qi,y:qr});if(qn(Co,lo))return null;var _o=Za({container:Kt,subject:Bn,proposedScroll:Co});return _o?qn(_o,lo)?null:_o:null},uu=Cr(function(Ze){return Ze===0?0:Ze>0?1:-1}),Mu=function(){var Ze=function(Kt,Bn){return Kt<0?Kt:Kt>Bn?Kt-Bn:0};return function(lt){var Kt=lt.current,Bn=lt.max,Ar=lt.change,Tr=Gr(Kt,Ar),Yr={x:Ze(Tr.x,Bn.x),y:Ze(Tr.y,Bn.y)};return qn(Yr,lo)?null:Yr}}(),Lu=function(lt){var Kt=lt.max,Bn=lt.current,Ar=lt.change,Tr={x:Math.max(Bn.x,Kt.x),y:Math.max(Bn.y,Kt.y)},Yr=uu(Ar),qr=Mu({max:Tr,current:Bn,change:Yr});return!qr||Yr.x!==0&&qr.x===0||Yr.y!==0&&qr.y===0},ju=function(lt,Kt){return Lu({current:lt.scroll.current,max:lt.scroll.max,change:Kt})},pl=function(lt,Kt){if(!ju(lt,Kt))return null;var Bn=lt.scroll.max,Ar=lt.scroll.current;return Mu({current:Ar,max:Bn,change:Kt})},pu=function(lt,Kt){var Bn=lt.frame;return Bn?Lu({current:Bn.scroll.current,max:Bn.scroll.max,change:Kt}):!1},ks=function(lt,Kt){var Bn=lt.frame;return!Bn||!pu(lt,Kt)?null:Mu({current:Bn.scroll.current,max:Bn.scroll.max,change:Kt})},su=function(Ze){var lt=Ze.viewport,Kt=Ze.subject,Bn=Ze.center,Ar=Ze.dragStartTime,Tr=Ze.shouldUseTimeDampening,Yr=ns({dragStartTime:Ar,container:lt.frame,subject:Kt,center:Bn,shouldUseTimeDampening:Tr});return Yr&&ju(lt,Yr)?Yr:null},Au=function(Ze){var lt=Ze.droppable,Kt=Ze.subject,Bn=Ze.center,Ar=Ze.dragStartTime,Tr=Ze.shouldUseTimeDampening,Yr=lt.frame;if(!Yr)return null;var qr=ns({dragStartTime:Ar,container:Yr.pageMarginBox,subject:Kt,center:Bn,shouldUseTimeDampening:Tr});return qr&&pu(lt,qr)?qr:null},wl=function(Ze){var lt=Ze.state,Kt=Ze.dragStartTime,Bn=Ze.shouldUseTimeDampening,Ar=Ze.scrollWindow,Tr=Ze.scrollDroppable,Yr=lt.current.page.borderBoxCenter,qr=lt.dimensions.draggables[lt.critical.draggable.id],qi=qr.page.marginBox;if(lt.isWindowScrollAllowed){var Co=lt.viewport,_o=su({dragStartTime:Kt,viewport:Co,subject:qi,center:Yr,shouldUseTimeDampening:Bn});if(_o){Ar(_o);return}}var go=za({center:Yr,destination:co(lt.impact),droppables:lt.dimensions.droppables});if(go){var mo=Au({dragStartTime:Kt,droppable:go,subject:qi,center:Yr,shouldUseTimeDampening:Bn});mo&&Tr(go.descriptor.id,mo)}},bu=function(Ze){var lt=Ze.scrollWindow,Kt=Ze.scrollDroppable,Bn=Zn(lt),Ar=Zn(Kt),Tr=null,Yr=function(_o){Tr||jr(!1);var go=Tr,mo=go.shouldUseTimeDampening,Bo=go.dragStartTime;wl({state:_o,scrollWindow:Bn,scrollDroppable:Ar,dragStartTime:Bo,shouldUseTimeDampening:mo})},qr=function(_o){zn(),Tr&&jr(!1);var go=Date.now(),mo=!1,Bo=function(){mo=!0};wl({state:_o,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Bo,scrollDroppable:Bo}),Tr={dragStartTime:go,shouldUseTimeDampening:mo},Nr(),mo&&Yr(_o)},qi=function(){Tr&&(Bn.cancel(),Ar.cancel(),Tr=null)};return{start:qr,stop:qi,scroll:Yr}},Ul=function(Ze){var lt=Ze.move,Kt=Ze.scrollDroppable,Bn=Ze.scrollWindow,Ar=function(Co,_o){var go=Gr(Co.current.client.selection,_o);lt({client:go})},Tr=function(Co,_o){if(!pu(Co,_o))return _o;var go=ks(Co,_o);if(!go)return Kt(Co.descriptor.id,_o),null;var mo=un(_o,go);Kt(Co.descriptor.id,mo);var Bo=un(_o,mo);return Bo},Yr=function(Co,_o,go){if(!Co||!ju(_o,go))return go;var mo=pl(_o,go);if(!mo)return Bn(go),null;var Bo=un(go,mo);Bn(Bo);var Ba=un(go,Bo);return Ba},qr=function(Co){var _o=Co.scrollJumpRequest;if(_o){var go=co(Co.impact);go||jr(!1);var mo=Tr(Co.dimensions.droppables[go],_o);if(mo){var Bo=Co.viewport,Ba=Yr(Co.isWindowScrollAllowed,Bo,mo);Ba&&Ar(Co,Ba)}}};return qr},Wl=function(Ze){var lt=Ze.scrollDroppable,Kt=Ze.scrollWindow,Bn=Ze.move,Ar=bu({scrollWindow:Kt,scrollDroppable:lt}),Tr=Ul({move:Bn,scrollWindow:Kt,scrollDroppable:lt}),Yr=function(Co){if(Co.phase==="DRAGGING"){if(Co.movementMode==="FLUID"){Ar.scroll(Co);return}Co.scrollJumpRequest&&Tr(Co)}},qr={scroll:Yr,start:Ar.start,stop:Ar.stop};return qr},il="data-rbd",_l=function(){var Ze=il+"-drag-handle";return{base:Ze,draggableId:Ze+"-draggable-id",contextId:Ze+"-context-id"}}(),Hs=function(){var Ze=il+"-draggable";return{base:Ze,contextId:Ze+"-context-id",id:Ze+"-id"}}(),Pl=function(){var Ze=il+"-droppable";return{base:Ze,contextId:Ze+"-context-id",id:Ze+"-id"}}(),Ql={contextId:il+"-scroll-container-context-id"},ll=function(lt){return function(Kt){return"["+Kt+'="'+lt+'"]'}},Kl=function(lt,Kt){return lt.map(function(Bn){var Ar=Bn.styles[Kt];return Ar?Bn.selector+" { "+Ar+" }":""}).join(" ")},ia="pointer-events: none;",Sa=function(Ze){var lt=ll(Ze),Kt=function(){var qr=` cursor: -webkit-grab; cursor: grab; `;return{selector:lt(_l.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:qr,dragging:ia,dropAnimating:qr}}}(),Bn=function(){var qr=` transition: `+xn.outOfTheWay+`; `;return{selector:lt(Hs.contextId),styles:{dragging:qr,dropAnimating:qr,userCancel:qr}}}(),Ar={selector:lt(Pl.contextId),styles:{always:"overflow-anchor: none;"}},Tr={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}},Yr=[Bn,Kt,Ar,Tr];return{always:Kl(Yr,"always"),resting:Kl(Yr,"resting"),dragging:Kl(Yr,"dragging"),dropAnimating:Kl(Yr,"dropAnimating"),userCancel:Kl(Yr,"userCancel")}},Ea=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:i.useEffect,rs=function(){var lt=document.querySelector("head");return lt||jr(!1),lt},Ns=function(lt){var Kt=document.createElement("style");return lt&&Kt.setAttribute("nonce",lt),Kt.type="text/css",Kt};function Xt(Ze,lt){var Kt=qe(function(){return Sa(Ze)},[Ze]),Bn=(0,i.useRef)(null),Ar=(0,i.useRef)(null),Tr=We(Zt(function(go){var mo=Ar.current;mo||jr(!1),mo.textContent=go}),[]),Yr=We(function(go){var mo=Bn.current;mo||jr(!1),mo.textContent=go},[]);Ea(function(){!Bn.current&&!Ar.current||jr(!1);var go=Ns(lt),mo=Ns(lt);return Bn.current=go,Ar.current=mo,go.setAttribute(il+"-always",Ze),mo.setAttribute(il+"-dynamic",Ze),rs().appendChild(go),rs().appendChild(mo),Yr(Kt.always),Tr(Kt.resting),function(){var Bo=function(Bs){var Xs=Bs.current;Xs||jr(!1),rs().removeChild(Xs),Bs.current=null};Bo(Bn),Bo(Ar)}},[lt,Yr,Tr,Kt.always,Kt.resting,Ze]);var qr=We(function(){return Tr(Kt.dragging)},[Tr,Kt.dragging]),qi=We(function(go){if(go==="DROP"){Tr(Kt.dropAnimating);return}Tr(Kt.userCancel)},[Tr,Kt.dropAnimating,Kt.userCancel]),Co=We(function(){Ar.current&&Tr(Kt.resting)},[Tr,Kt.resting]),_o=qe(function(){return{dragging:qr,dropping:qi,resting:Co}},[qr,qi,Co]);return _o}var bn=function(Ze){return Ze&&Ze.ownerDocument?Ze.ownerDocument.defaultView:window};function Dn(Ze){return Ze instanceof bn(Ze).HTMLElement}function Ii(Ze,lt){var Kt="["+_l.contextId+'="'+Ze+'"]',Bn=$i(document.querySelectorAll(Kt));if(!Bn.length)return null;var Ar=gi(Bn,function(Tr){return Tr.getAttribute(_l.draggableId)===lt});return!Ar||!Dn(Ar)?null:Ar}function ko(Ze){var lt=(0,i.useRef)({}),Kt=(0,i.useRef)(null),Bn=(0,i.useRef)(null),Ar=(0,i.useRef)(!1),Tr=We(function(mo,Bo){var Ba={id:mo,focus:Bo};return lt.current[mo]=Ba,function(){var Xs=lt.current,lu=Xs[mo];lu!==Ba&&delete Xs[mo]}},[]),Yr=We(function(mo){var Bo=Ii(Ze,mo);Bo&&Bo!==document.activeElement&&Bo.focus()},[Ze]),qr=We(function(mo,Bo){Kt.current===mo&&(Kt.current=Bo)},[]),qi=We(function(){Bn.current||Ar.current&&(Bn.current=requestAnimationFrame(function(){Bn.current=null;var mo=Kt.current;mo&&Yr(mo)}))},[Yr]),Co=We(function(mo){Kt.current=null;var Bo=document.activeElement;Bo&&Bo.getAttribute(_l.draggableId)===mo&&(Kt.current=mo)},[]);Ea(function(){return Ar.current=!0,function(){Ar.current=!1;var mo=Bn.current;mo&&cancelAnimationFrame(mo)}},[]);var _o=qe(function(){return{register:Tr,tryRecordFocus:Co,tryRestoreFocusRecorded:qi,tryShiftRecord:qr}},[Tr,Co,qi,qr]);return _o}function fa(){var Ze={draggables:{},droppables:{}},lt=[];function Kt(go){return lt.push(go),function(){var Bo=lt.indexOf(go);Bo!==-1&<.splice(Bo,1)}}function Bn(go){lt.length&<.forEach(function(mo){return mo(go)})}function Ar(go){return Ze.draggables[go]||null}function Tr(go){var mo=Ar(go);return mo||jr(!1),mo}var Yr={register:function(mo){Ze.draggables[mo.descriptor.id]=mo,Bn({type:"ADDITION",value:mo})},update:function(mo,Bo){var Ba=Ze.draggables[Bo.descriptor.id];Ba&&Ba.uniqueId===mo.uniqueId&&(delete Ze.draggables[Bo.descriptor.id],Ze.draggables[mo.descriptor.id]=mo)},unregister:function(mo){var Bo=mo.descriptor.id,Ba=Ar(Bo);Ba&&mo.uniqueId===Ba.uniqueId&&(delete Ze.draggables[Bo],Bn({type:"REMOVAL",value:mo}))},getById:Tr,findById:Ar,exists:function(mo){return!!Ar(mo)},getAllByType:function(mo){return Pr(Ze.draggables).filter(function(Bo){return Bo.descriptor.type===mo})}};function qr(go){return Ze.droppables[go]||null}function qi(go){var mo=qr(go);return mo||jr(!1),mo}var Co={register:function(mo){Ze.droppables[mo.descriptor.id]=mo},unregister:function(mo){var Bo=qr(mo.descriptor.id);Bo&&mo.uniqueId===Bo.uniqueId&&delete Ze.droppables[mo.descriptor.id]},getById:qi,findById:qr,exists:function(mo){return!!qr(mo)},getAllByType:function(mo){return Pr(Ze.droppables).filter(function(Bo){return Bo.descriptor.type===mo})}};function _o(){Ze.draggables={},Ze.droppables={},lt.length=0}return{draggable:Yr,droppable:Co,subscribe:Kt,clean:_o}}function Zo(){var Ze=qe(fa,[]);return(0,i.useEffect)(function(){return function(){requestAnimationFrame(Ze.clean)}},[Ze]),Ze}var Fa=i.createContext(null),Ua=function(){var Ze=document.body;return Ze||jr(!1),Ze},ms={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Fs=function(lt){return"rbd-announcement-"+lt};function ws(Ze){var lt=qe(function(){return Fs(Ze)},[Ze]),Kt=(0,i.useRef)(null);(0,i.useEffect)(function(){var Tr=document.createElement("div");return Kt.current=Tr,Tr.id=lt,Tr.setAttribute("aria-live","assertive"),Tr.setAttribute("aria-atomic","true"),(0,s.A)(Tr.style,ms),Ua().appendChild(Tr),function(){setTimeout(function(){var qi=Ua();qi.contains(Tr)&&qi.removeChild(Tr),Tr===Kt.current&&(Kt.current=null)})}},[lt]);var Bn=We(function(Ar){var Tr=Kt.current;if(Tr){Tr.textContent=Ar;return}},[]);return Bn}var fu=0,wu={separator:"::"};function Du(){fu=0}function zu(Ze,lt){return lt===void 0&&(lt=wu),qe(function(){return""+Ze+lt.separator+fu++},[lt.separator,Ze])}function Il(Ze){var lt=Ze.contextId,Kt=Ze.uniqueId;return"rbd-hidden-text-"+lt+"-"+Kt}function bc(Ze){var lt=Ze.contextId,Kt=Ze.text,Bn=zu("hidden-text",{separator:"-"}),Ar=qe(function(){return Il({contextId:lt,uniqueId:Bn})},[Bn,lt]);return(0,i.useEffect)(function(){var Yr=document.createElement("div");return Yr.id=Ar,Yr.textContent=Kt,Yr.style.display="none",Ua().appendChild(Yr),function(){var qi=Ua();qi.contains(Yr)&&qi.removeChild(Yr)}},[Ar,Kt]),Ar}var Gl=i.createContext(null),oc={react:"^16.8.5 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.5 || ^17.0.0 || ^18.0.0"},ac=/(\d+)\.(\d+)\.(\d+)/,jl=function(lt){var Kt=ac.exec(lt);Kt==null&&jr(!1);var Bn=Number(Kt[1]),Ar=Number(Kt[2]),Tr=Number(Kt[3]);return{major:Bn,minor:Ar,patch:Tr,raw:lt}},nc=function(lt,Kt){return Kt.major>lt.major?!0:Kt.major<lt.major?!1:Kt.minor>lt.minor?!0:Kt.minor<lt.minor?!1:Kt.patch>=lt.patch},Fl=function(Ze,lt){var Kt=jl(Ze),Bn=jl(lt);nc(Kt,Bn)},Zu=` We expect a html5 doctype: <!doctype html> This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md `,Ac=function(Ze){var lt=Ze.doctype;lt&&(lt.name.toLowerCase(),lt.publicId)};function tf(Ze){}function Jl(Ze,lt){}function ml(){Jl(function(){Fl(oc.react,i.version),Ac(document)},[])}function vl(Ze){var lt=(0,i.useRef)(Ze);return(0,i.useEffect)(function(){lt.current=Ze}),lt}function Vu(){var Ze=null;function lt(){return!!Ze}function Kt(Yr){return Yr===Ze}function Bn(Yr){Ze&&jr(!1);var qr={abandon:Yr};return Ze=qr,qr}function Ar(){Ze||jr(!1),Ze=null}function Tr(){Ze&&(Ze.abandon(),Ar())}return{isClaimed:lt,isActive:Kt,claim:Bn,release:Ar,tryAbandon:Tr}}var ad=9,Bc=13,hf=27,Vc=32,Od=33,_c=34,Xc=35,Zl=36,qd=37,Kd=38,jf=39,Ml=40,jd,Jf=(jd={},jd[Bc]=!0,jd[ad]=!0,jd),ql=function(Ze){Jf[Ze.keyCode]&&Ze.preventDefault()},sc=function(){var Ze="visibilitychange";if(typeof document>"u")return Ze;var lt=[Ze,"ms"+Ze,"webkit"+Ze,"moz"+Ze,"o"+Ze],Kt=gi(lt,function(Bn){return"on"+Bn in document});return Kt||Ze}(),Uc=0,Gd=5;function nf(Ze,lt){return Math.abs(lt.x-Ze.x)>=Gd||Math.abs(lt.y-Ze.y)>=Gd}var Dd={type:"IDLE"};function yd(Ze){var lt=Ze.cancel,Kt=Ze.completed,Bn=Ze.getPhase,Ar=Ze.setPhase;return[{eventName:"mousemove",fn:function(Yr){var qr=Yr.button,qi=Yr.clientX,Co=Yr.clientY;if(qr===Uc){var _o={x:qi,y:Co},go=Bn();if(go.type==="DRAGGING"){Yr.preventDefault(),go.actions.move(_o);return}go.type!=="PENDING"&&jr(!1);var mo=go.point;if(nf(mo,_o)){Yr.preventDefault();var Bo=go.actions.fluidLift(_o);Ar({type:"DRAGGING",actions:Bo})}}}},{eventName:"mouseup",fn:function(Yr){var qr=Bn();if(qr.type!=="DRAGGING"){lt();return}Yr.preventDefault(),qr.actions.drop({shouldBlockNextClick:!0}),Kt()}},{eventName:"mousedown",fn:function(Yr){Bn().type==="DRAGGING"&&Yr.preventDefault(),lt()}},{eventName:"keydown",fn:function(Yr){var qr=Bn();if(qr.type==="PENDING"){lt();return}if(Yr.keyCode===hf){Yr.preventDefault(),lt();return}ql(Yr)}},{eventName:"resize",fn:lt},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Bn().type==="PENDING"&<()}},{eventName:"webkitmouseforcedown",fn:function(Yr){var qr=Bn();if(qr.type==="IDLE"&&jr(!1),qr.actions.shouldRespectForcePress()){lt();return}Yr.preventDefault()}},{eventName:sc,fn:lt}]}function pf(Ze){var lt=(0,i.useRef)(Dd),Kt=(0,i.useRef)(En),Bn=qe(function(){return{eventName:"mousedown",fn:function(go){if(!go.defaultPrevented&&go.button===Uc&&!(go.ctrlKey||go.metaKey||go.shiftKey||go.altKey)){var mo=Ze.findClosestDraggableId(go);if(mo){var Bo=Ze.tryGetLock(mo,Yr,{sourceEvent:go});if(Bo){go.preventDefault();var Ba={x:go.clientX,y:go.clientY};Kt.current(),Co(Bo,Ba)}}}}}},[Ze]),Ar=qe(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(go){if(!go.defaultPrevented){var mo=Ze.findClosestDraggableId(go);if(mo){var Bo=Ze.findOptionsForDraggable(mo);Bo&&(Bo.shouldRespectForcePress||Ze.canGetLock(mo)&&go.preventDefault())}}}}},[Ze]),Tr=We(function(){var go={passive:!1,capture:!0};Kt.current=rr(window,[Ar,Bn],go)},[Ar,Bn]),Yr=We(function(){var _o=lt.current;_o.type!=="IDLE"&&(lt.current=Dd,Kt.current(),Tr())},[Tr]),qr=We(function(){var _o=lt.current;Yr(),_o.type==="DRAGGING"&&_o.actions.cancel({shouldBlockNextClick:!0}),_o.type==="PENDING"&&_o.actions.abort()},[Yr]),qi=We(function(){var go={capture:!0,passive:!1},mo=yd({cancel:qr,completed:Yr,getPhase:function(){return lt.current},setPhase:function(Ba){lt.current=Ba}});Kt.current=rr(window,mo,go)},[qr,Yr]),Co=We(function(go,mo){lt.current.type!=="IDLE"&&jr(!1),lt.current={type:"PENDING",point:mo,actions:go},qi()},[qi]);Ea(function(){return Tr(),function(){Kt.current()}},[Tr])}var Lf;function Cd(){}var vf=(Lf={},Lf[_c]=!0,Lf[Od]=!0,Lf[Zl]=!0,Lf[Xc]=!0,Lf);function jc(Ze,lt){function Kt(){lt(),Ze.cancel()}function Bn(){lt(),Ze.drop()}return[{eventName:"keydown",fn:function(Tr){if(Tr.keyCode===hf){Tr.preventDefault(),Kt();return}if(Tr.keyCode===Vc){Tr.preventDefault(),Bn();return}if(Tr.keyCode===Ml){Tr.preventDefault(),Ze.moveDown();return}if(Tr.keyCode===Kd){Tr.preventDefault(),Ze.moveUp();return}if(Tr.keyCode===jf){Tr.preventDefault(),Ze.moveRight();return}if(Tr.keyCode===qd){Tr.preventDefault(),Ze.moveLeft();return}if(vf[Tr.keyCode]){Tr.preventDefault();return}ql(Tr)}},{eventName:"mousedown",fn:Kt},{eventName:"mouseup",fn:Kt},{eventName:"click",fn:Kt},{eventName:"touchstart",fn:Kt},{eventName:"resize",fn:Kt},{eventName:"wheel",fn:Kt,options:{passive:!0}},{eventName:sc,fn:Kt}]}function gf(Ze){var lt=(0,i.useRef)(Cd),Kt=qe(function(){return{eventName:"keydown",fn:function(Tr){if(Tr.defaultPrevented||Tr.keyCode!==Vc)return;var Yr=Ze.findClosestDraggableId(Tr);if(!Yr)return;var qr=Ze.tryGetLock(Yr,_o,{sourceEvent:Tr});if(!qr)return;Tr.preventDefault();var qi=!0,Co=qr.snapLift();lt.current();function _o(){qi||jr(!1),qi=!1,lt.current(),Bn()}lt.current=rr(window,jc(Co,_o),{capture:!0,passive:!1})}}},[Ze]),Bn=We(function(){var Tr={passive:!1,capture:!0};lt.current=rr(window,[Kt],Tr)},[Kt]);Ea(function(){return Bn(),function(){lt.current()}},[Bn])}var Id={type:"IDLE"},sd=120,ud=.15;function Yd(Ze){var lt=Ze.cancel,Kt=Ze.getPhase;return[{eventName:"orientationchange",fn:lt},{eventName:"resize",fn:lt},{eventName:"contextmenu",fn:function(Ar){Ar.preventDefault()}},{eventName:"keydown",fn:function(Ar){if(Kt().type!=="DRAGGING"){lt();return}Ar.keyCode===hf&&Ar.preventDefault(),lt()}},{eventName:sc,fn:lt}]}function xd(Ze){var lt=Ze.cancel,Kt=Ze.completed,Bn=Ze.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Tr){var Yr=Bn();if(Yr.type!=="DRAGGING"){lt();return}Yr.hasMoved=!0;var qr=Tr.touches[0],qi=qr.clientX,Co=qr.clientY,_o={x:qi,y:Co};Tr.preventDefault(),Yr.actions.move(_o)}},{eventName:"touchend",fn:function(Tr){var Yr=Bn();if(Yr.type!=="DRAGGING"){lt();return}Tr.preventDefault(),Yr.actions.drop({shouldBlockNextClick:!0}),Kt()}},{eventName:"touchcancel",fn:function(Tr){if(Bn().type!=="DRAGGING"){lt();return}Tr.preventDefault(),lt()}},{eventName:"touchforcechange",fn:function(Tr){var Yr=Bn();Yr.type==="IDLE"&&jr(!1);var qr=Tr.touches[0];if(qr){var qi=qr.force>=ud;if(qi){var Co=Yr.actions.shouldRespectForcePress();if(Yr.type==="PENDING"){Co&<();return}if(Co){if(Yr.hasMoved){Tr.preventDefault();return}lt();return}Tr.preventDefault()}}}},{eventName:sc,fn:lt}]}function rc(Ze){var lt=(0,i.useRef)(Id),Kt=(0,i.useRef)(En),Bn=We(function(){return lt.current},[]),Ar=We(function(Bo){lt.current=Bo},[]),Tr=qe(function(){return{eventName:"touchstart",fn:function(Bo){if(!Bo.defaultPrevented){var Ba=Ze.findClosestDraggableId(Bo);if(Ba){var Bs=Ze.tryGetLock(Ba,qr,{sourceEvent:Bo});if(Bs){var Xs=Bo.touches[0],lu=Xs.clientX,Cu=Xs.clientY,yu={x:lu,y:Cu};Kt.current(),go(Bs,yu)}}}}}},[Ze]),Yr=We(function(){var Bo={capture:!0,passive:!1};Kt.current=rr(window,[Tr],Bo)},[Tr]),qr=We(function(){var mo=lt.current;mo.type!=="IDLE"&&(mo.type==="PENDING"&&clearTimeout(mo.longPressTimerId),Ar(Id),Kt.current(),Yr())},[Yr,Ar]),qi=We(function(){var mo=lt.current;qr(),mo.type==="DRAGGING"&&mo.actions.cancel({shouldBlockNextClick:!0}),mo.type==="PENDING"&&mo.actions.abort()},[qr]),Co=We(function(){var Bo={capture:!0,passive:!1},Ba={cancel:qi,completed:qr,getPhase:Bn},Bs=rr(window,xd(Ba),Bo),Xs=rr(window,Yd(Ba),Bo);Kt.current=function(){Bs(),Xs()}},[qi,Bn,qr]),_o=We(function(){var Bo=Bn();Bo.type!=="PENDING"&&jr(!1);var Ba=Bo.actions.fluidLift(Bo.point);Ar({type:"DRAGGING",actions:Ba,hasMoved:!1})},[Bn,Ar]),go=We(function(Bo,Ba){Bn().type!=="IDLE"&&jr(!1);var Bs=setTimeout(_o,sd);Ar({type:"PENDING",point:Ba,actions:Bo,longPressTimerId:Bs}),Co()},[Co,Bn,Ar,_o]);Ea(function(){return Yr(),function(){Kt.current();var Ba=Bn();Ba.type==="PENDING"&&(clearTimeout(Ba.longPressTimerId),Ar(Id))}},[Bn,Yr,Ar]),Ea(function(){var Bo=rr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Bo},[])}function Pc(Ze){}var lf={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Qc(Ze,lt){if(lt==null)return!1;var Kt=!!lf[lt.tagName.toLowerCase()];if(Kt)return!0;var Bn=lt.getAttribute("contenteditable");return Bn==="true"||Bn===""?!0:lt===Ze?!1:Qc(Ze,lt.parentElement)}function yc(Ze,lt){var Kt=lt.target;return Dn(Kt)?Qc(Ze,Kt):!1}var fc=function(Ze){return ct(Ze.getBoundingClientRect()).center};function ic(Ze){return Ze instanceof bn(Ze).Element}var Kf=function(){var Ze="matches";if(typeof document>"u")return Ze;var lt=[Ze,"msMatchesSelector","webkitMatchesSelector"],Kt=gi(lt,function(Bn){return Bn in Element.prototype});return Kt||Ze}();function ld(Ze,lt){return Ze==null?null:Ze[Kf](lt)?Ze:ld(Ze.parentElement,lt)}function Ld(Ze,lt){return Ze.closest?Ze.closest(lt):ld(Ze,lt)}function cf(Ze){return"["+_l.contextId+'="'+Ze+'"]'}function kf(Ze,lt){var Kt=lt.target;if(!ic(Kt))return null;var Bn=cf(Ze),Ar=Ld(Kt,Bn);return!Ar||!Dn(Ar)?null:Ar}function uh(Ze,lt){var Kt=kf(Ze,lt);return Kt?Kt.getAttribute(_l.draggableId):null}function $d(Ze,lt){var Kt="["+Hs.contextId+'="'+Ze+'"]',Bn=$i(document.querySelectorAll(Kt)),Ar=gi(Bn,function(Tr){return Tr.getAttribute(Hs.id)===lt});return!Ar||!Dn(Ar)?null:Ar}function bh(Ze){Ze.preventDefault()}function Zf(Ze){var lt=Ze.expected,Kt=Ze.phase,Bn=Ze.isLockActive,Ar=Ze.shouldWarn;return!(!Bn()||lt!==Kt)}function dc(Ze){var lt=Ze.lockAPI,Kt=Ze.store,Bn=Ze.registry,Ar=Ze.draggableId;if(lt.isClaimed())return!1;var Tr=Bn.draggable.findById(Ar);return!(!Tr||!Tr.options.isEnabled||!po(Kt.getState(),Ar))}function yf(Ze){var lt=Ze.lockAPI,Kt=Ze.contextId,Bn=Ze.store,Ar=Ze.registry,Tr=Ze.draggableId,Yr=Ze.forceSensorStop,qr=Ze.sourceEvent,qi=dc({lockAPI:lt,store:Bn,registry:Ar,draggableId:Tr});if(!qi)return null;var Co=Ar.draggable.getById(Tr),_o=$d(Kt,Co.descriptor.id);if(!_o||qr&&!Co.options.canDragInteractiveElements&&yc(_o,qr))return null;var go=lt.claim(Yr||En),mo="PRE_DRAG";function Bo(){return Co.options.shouldRespectForcePress}function Ba(){return lt.isActive(go)}function Bs($u,Cl){Zf({expected:$u,phase:mo,isLockActive:Ba,shouldWarn:!0})&&Bn.dispatch(Cl())}var Xs=Bs.bind(null,"DRAGGING");function lu($u){function Cl(){lt.release(),mo="COMPLETED"}mo!=="PRE_DRAG"&&(Cl(),mo!=="PRE_DRAG"&&jr(!1)),Bn.dispatch(Is($u.liftActionArgs)),mo="DRAGGING";function Tc(xl,Dl){if(Dl===void 0&&(Dl={shouldBlockNextClick:!1}),$u.cleanup(),Dl.shouldBlockNextClick){var ec=rr(window,[{eventName:"click",fn:bh,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ec)}Cl(),Bn.dispatch(qt({reason:xl}))}return(0,s.A)({isActive:function(){return Zf({expected:"DRAGGING",phase:mo,isLockActive:Ba,shouldWarn:!1})},shouldRespectForcePress:Bo,drop:function(Dl){return Tc("DROP",Dl)},cancel:function(Dl){return Tc("CANCEL",Dl)}},$u.actions)}function Cu($u){var Cl=Zn(function(xl){Xs(function(){return rl({client:xl})})}),Tc=lu({liftActionArgs:{id:Tr,clientSelection:$u,movementMode:"FLUID"},cleanup:function(){return Cl.cancel()},actions:{move:Cl}});return(0,s.A)({},Tc,{move:Cl})}function yu(){var $u={moveUp:function(){return Xs(Al)},moveRight:function(){return Xs(Rl)},moveDown:function(){return Xs(fl)},moveLeft:function(){return Xs(Bu)}};return lu({liftActionArgs:{id:Tr,clientSelection:fc(_o),movementMode:"SNAP"},cleanup:En,actions:$u})}function Ku(){var $u=Zf({expected:"PRE_DRAG",phase:mo,isLockActive:Ba,shouldWarn:!0});$u&<.release()}var yl={isActive:function(){return Zf({expected:"PRE_DRAG",phase:mo,isLockActive:Ba,shouldWarn:!1})},shouldRespectForcePress:Bo,fluidLift:Cu,snapLift:yu,abort:Ku};return yl}var Nf=[pf,gf,rc];function ys(Ze){var lt=Ze.contextId,Kt=Ze.store,Bn=Ze.registry,Ar=Ze.customSensors,Tr=Ze.enableDefaultSensors,Yr=[].concat(Tr?Nf:[],Ar||[]),qr=(0,i.useState)(function(){return Vu()})[0],qi=We(function(Cu,yu){Cu.isDragging&&!yu.isDragging&&qr.tryAbandon()},[qr]);Ea(function(){var Cu=Kt.getState(),yu=Kt.subscribe(function(){var Ku=Kt.getState();qi(Cu,Ku),Cu=Ku});return yu},[qr,Kt,qi]),Ea(function(){return qr.tryAbandon},[qr.tryAbandon]);var Co=We(function(lu){return dc({lockAPI:qr,registry:Bn,store:Kt,draggableId:lu})},[qr,Bn,Kt]),_o=We(function(lu,Cu,yu){return yf({lockAPI:qr,registry:Bn,contextId:lt,store:Kt,draggableId:lu,forceSensorStop:Cu,sourceEvent:yu&&yu.sourceEvent?yu.sourceEvent:null})},[lt,qr,Bn,Kt]),go=We(function(lu){return uh(lt,lu)},[lt]),mo=We(function(lu){var Cu=Bn.draggable.findById(lu);return Cu?Cu.options:null},[Bn.draggable]),Bo=We(function(){qr.isClaimed()&&(qr.tryAbandon(),Kt.getState().phase!=="IDLE"&&Kt.dispatch(Mn()))},[qr,Kt]),Ba=We(qr.isClaimed,[qr]),Bs=qe(function(){return{canGetLock:Co,tryGetLock:_o,findClosestDraggableId:go,findOptionsForDraggable:mo,tryReleaseLock:Bo,isLockClaimed:Ba}},[Co,_o,go,mo,Bo,Ba]);Pc(Yr);for(var Xs=0;Xs<Yr.length;Xs++)Yr[Xs](Bs)}var Hc=function(lt){return{onBeforeCapture:lt.onBeforeCapture,onBeforeDragStart:lt.onBeforeDragStart,onDragStart:lt.onDragStart,onDragEnd:lt.onDragEnd,onDragUpdate:lt.onDragUpdate}};function Jc(Ze){return Ze.current||jr(!1),Ze.current}function Fh(Ze){var lt=Ze.contextId,Kt=Ze.setCallbacks,Bn=Ze.sensors,Ar=Ze.nonce,Tr=Ze.dragHandleUsageInstructions,Yr=(0,i.useRef)(null);ml();var qr=vl(Ze),qi=We(function(){return Hc(qr.current)},[qr]),Co=ws(lt),_o=bc({contextId:lt,text:Tr}),go=Xt(lt,Ar),mo=We(function(xl){Jc(Yr).dispatch(xl)},[]),Bo=qe(function(){return(0,m.bindActionCreators)({publishWhileDragging:Ls,updateDroppableScroll:Us,updateDroppableIsEnabled:Iu,updateDroppableIsCombineEnabled:Wu,collectionStarting:gu},mo)},[mo]),Ba=Zo(),Bs=qe(function(){return Do(Ba,Bo)},[Ba,Bo]),Xs=qe(function(){return Wl((0,s.A)({scrollWindow:Ji,scrollDroppable:Bs.scrollDroppable},(0,m.bindActionCreators)({move:rl},mo)))},[Bs.scrollDroppable,mo]),lu=ko(lt),Cu=qe(function(){return jn({announce:Co,autoScroller:Xs,dimensionMarshal:Bs,focusMarshal:lu,getResponders:qi,styleMarshal:go})},[Co,Xs,Bs,lu,qi,go]);Yr.current=Cu;var yu=We(function(){var xl=Jc(Yr),Dl=xl.getState();Dl.phase!=="IDLE"&&xl.dispatch(Mn())},[]),Ku=We(function(){var xl=Jc(Yr).getState();return xl.isDragging||xl.phase==="DROP_ANIMATING"},[]),yl=qe(function(){return{isDragging:Ku,tryAbort:yu}},[Ku,yu]);Kt(yl);var $u=We(function(xl){return po(Jc(Yr).getState(),xl)},[]),Cl=We(function(){return Yo(Jc(Yr).getState())},[]),Tc=qe(function(){return{marshal:Bs,focus:lu,contextId:lt,canLift:$u,isMovementAllowed:Cl,dragHandleUsageInstructionsId:_o,registry:Ba}},[lt,Bs,_o,lu,$u,Cl,Ba]);return ys({contextId:lt,store:Cu,registry:Ba,customSensors:Bn,enableDefaultSensors:Ze.enableDefaultSensors!==!1}),(0,i.useEffect)(function(){return yu},[yu]),i.createElement(Gl.Provider,{value:Tc},i.createElement(R,{context:Fa,store:Cu},Ze.children))}var lh=0;function Xd(){lh=0}function Ud(){return qe(function(){return""+lh++},[])}function bd(){Xd(),Du()}function Ms(Ze){var lt=Ud(),Kt=Ze.dragHandleUsageInstructions||io.dragHandleUsageInstructions;return i.createElement(ui,null,function(Bn){return i.createElement(Fh,{nonce:Ze.nonce,contextId:lt,setCallbacks:Bn,dragHandleUsageInstructions:Kt,enableDefaultSensors:Ze.enableDefaultSensors,sensors:Ze.sensors,onBeforeCapture:Ze.onBeforeCapture,onBeforeDragStart:Ze.onBeforeDragStart,onDragStart:Ze.onDragStart,onDragUpdate:Ze.onDragUpdate,onDragEnd:Ze.onDragEnd},Ze.children)})}var Pf=function(lt){return function(Kt){return lt===Kt}},bf=Pf("scroll"),cd=Pf("auto"),rf=Pf("visible"),Gf=function(lt,Kt){return Kt(lt.overflowX)||Kt(lt.overflowY)},Tf=function(lt,Kt){return Kt(lt.overflowX)&&Kt(lt.overflowY)},fd=function(lt){var Kt=window.getComputedStyle(lt),Bn={overflowX:Kt.overflowX,overflowY:Kt.overflowY};return Gf(Bn,bf)||Gf(Bn,cd)},eh=function(){return!1;var lt,Kt,Bn,Ar},Rf=function Ze(lt){return lt==null?null:lt===document.body?eh()?lt:null:lt===document.documentElement?null:fd(lt)?lt:Ze(lt.parentElement)},qf=function(Ze){if(Ze)var lt=Rf(Ze.parentElement)},kd=function(Ze){return{x:Ze.scrollLeft,y:Ze.scrollTop}},qa=function Ze(lt){if(!lt)return!1;var Kt=window.getComputedStyle(lt);return Kt.position==="fixed"?!0:Ze(lt.parentElement)},Gs=function(Ze){var lt=Rf(Ze),Kt=qa(Ze);return{closestScrollable:lt,isFixedOnPage:Kt}},hu=function(Ze){var lt=Ze.descriptor,Kt=Ze.isEnabled,Bn=Ze.isCombineEnabled,Ar=Ze.isFixedOnPage,Tr=Ze.direction,Yr=Ze.client,qr=Ze.page,qi=Ze.closest,Co=function(){if(!qi)return null;var Bo=qi.scrollSize,Ba=qi.client,Bs=oi({scrollHeight:Bo.scrollHeight,scrollWidth:Bo.scrollWidth,height:Ba.paddingBox.height,width:Ba.paddingBox.width});return{pageMarginBox:qi.page.marginBox,frameClient:Ba,scrollSize:Bo,shouldClipSubject:qi.shouldClipSubject,scroll:{initial:qi.scroll,current:qi.scroll,max:Bs,diff:{value:lo,displacement:lo}}}}(),_o=Tr==="vertical"?ja:hs,go=Vn({page:qr,withPlaceholder:null,axis:_o,frame:Co}),mo={descriptor:lt,isCombineEnabled:Bn,isFixedOnPage:Ar,axis:_o,isEnabled:Kt,client:Yr,page:qr,frame:Co,subject:go};return mo},du=function(lt,Kt){var Bn=bt(lt);if(!Kt||lt!==Kt)return Bn;var Ar=Bn.paddingBox.top-Kt.scrollTop,Tr=Bn.paddingBox.left-Kt.scrollLeft,Yr=Ar+Kt.scrollHeight,qr=Tr+Kt.scrollWidth,qi={top:Ar,right:qr,bottom:Yr,left:Tr},Co=Ge(qi,Bn.border),_o=ge({borderBox:Co,margin:Bn.margin,border:Bn.border,padding:Bn.padding});return _o},Ys=function(Ze){var lt=Ze.ref,Kt=Ze.descriptor,Bn=Ze.env,Ar=Ze.windowScroll,Tr=Ze.direction,Yr=Ze.isDropDisabled,qr=Ze.isCombineEnabled,qi=Ze.shouldClipSubject,Co=Bn.closestScrollable,_o=du(lt,Co),go=Bt(_o,Ar),mo=function(){if(!Co)return null;var Ba=bt(Co),Bs={scrollHeight:Co.scrollHeight,scrollWidth:Co.scrollWidth};return{client:Ba,page:Bt(Ba,Ar),scroll:kd(Co),scrollSize:Bs,shouldClipSubject:qi}}(),Bo=hu({descriptor:Kt,isEnabled:!Yr,isCombineEnabled:qr,isFixedOnPage:Bn.isFixedOnPage,direction:Tr,client:_o,page:go,closest:mo});return Bo},Pu={passive:!1},sl={passive:!0},Tu=function(Ze){return Ze.shouldPublishImmediately?Pu:sl};function Yu(Ze){var lt=(0,i.useContext)(Ze);return lt||jr(!1),lt}var xu=function(lt){return lt&<.env.closestScrollable||null};function of(Ze){var lt=(0,i.useRef)(null),Kt=Yu(Gl),Bn=zu("droppable"),Ar=Kt.registry,Tr=Kt.marshal,Yr=vl(Ze),qr=qe(function(){return{id:Ze.droppableId,type:Ze.type,mode:Ze.mode}},[Ze.droppableId,Ze.mode,Ze.type]),qi=(0,i.useRef)(qr),Co=qe(function(){return Zt(function(Ku,yl){lt.current||jr(!1);var $u={x:Ku,y:yl};Tr.updateDroppableScroll(qr.id,$u)})},[qr.id,Tr]),_o=We(function(){var Ku=lt.current;return!Ku||!Ku.env.closestScrollable?lo:kd(Ku.env.closestScrollable)},[]),go=We(function(){var Ku=_o();Co(Ku.x,Ku.y)},[_o,Co]),mo=qe(function(){return Zn(go)},[go]),Bo=We(function(){var Ku=lt.current,yl=xu(Ku);Ku&&yl||jr(!1);var $u=Ku.scrollOptions;if($u.shouldPublishImmediately){go();return}mo()},[mo,go]),Ba=We(function(Ku,yl){lt.current&&jr(!1);var $u=Yr.current,Cl=$u.getDroppableRef();Cl||jr(!1);var Tc=Gs(Cl),xl={ref:Cl,descriptor:qr,env:Tc,scrollOptions:yl};lt.current=xl;var Dl=Ys({ref:Cl,descriptor:qr,env:Tc,windowScroll:Ku,direction:$u.direction,isDropDisabled:$u.isDropDisabled,isCombineEnabled:$u.isCombineEnabled,shouldClipSubject:!$u.ignoreContainerClipping}),ec=Tc.closestScrollable;return ec&&(ec.setAttribute(Ql.contextId,Kt.contextId),ec.addEventListener("scroll",Bo,Tu(xl.scrollOptions))),Dl},[Kt.contextId,qr,Bo,Yr]),Bs=We(function(){var Ku=lt.current,yl=xu(Ku);return Ku&&yl||jr(!1),kd(yl)},[]),Xs=We(function(){var Ku=lt.current;Ku||jr(!1);var yl=xu(Ku);lt.current=null,yl&&(mo.cancel(),yl.removeAttribute(Ql.contextId),yl.removeEventListener("scroll",Bo,Tu(Ku.scrollOptions)))},[Bo,mo]),lu=We(function(Ku){var yl=lt.current;yl||jr(!1);var $u=xu(yl);$u||jr(!1),$u.scrollTop+=Ku.y,$u.scrollLeft+=Ku.x},[]),Cu=qe(function(){return{getDimensionAndWatchScroll:Ba,getScrollWhileDragging:Bs,dragStopped:Xs,scroll:lu}},[Xs,Ba,Bs,lu]),yu=qe(function(){return{uniqueId:Bn,descriptor:qr,callbacks:Cu}},[Cu,qr,Bn]);Ea(function(){return qi.current=yu.descriptor,Ar.droppable.register(yu),function(){lt.current&&Xs(),Ar.droppable.unregister(yu)}},[Cu,qr,Xs,yu,Tr,Ar.droppable]),Ea(function(){lt.current&&Tr.updateDroppableIsEnabled(qi.current.id,!Ze.isDropDisabled)},[Ze.isDropDisabled,Tr]),Ea(function(){lt.current&&Tr.updateDroppableIsCombineEnabled(qi.current.id,Ze.isCombineEnabled)},[Ze.isCombineEnabled,Tr])}function Ol(){}var wc={width:0,height:0,margin:mt},Ll=function(lt){var Kt=lt.isAnimatingOpenOnMount,Bn=lt.placeholder,Ar=lt.animate;return Kt||Ar==="close"?wc:{height:Bn.client.borderBox.height,width:Bn.client.borderBox.width,margin:Bn.client.margin}},Mc=function(lt){var Kt=lt.isAnimatingOpenOnMount,Bn=lt.placeholder,Ar=lt.animate,Tr=Ll({isAnimatingOpenOnMount:Kt,placeholder:Bn,animate:Ar});return{display:Bn.display,boxSizing:"border-box",width:Tr.width,height:Tr.height,marginTop:Tr.margin.top,marginRight:Tr.margin.right,marginBottom:Tr.margin.bottom,marginLeft:Tr.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ar!=="none"?xn.placeholder:null}};function Bl(Ze){var lt=(0,i.useRef)(null),Kt=We(function(){lt.current&&(clearTimeout(lt.current),lt.current=null)},[]),Bn=Ze.animate,Ar=Ze.onTransitionEnd,Tr=Ze.onClose,Yr=Ze.contextId,qr=(0,i.useState)(Ze.animate==="open"),qi=qr[0],Co=qr[1];(0,i.useEffect)(function(){return qi?Bn!=="open"?(Kt(),Co(!1),Ol):lt.current?Ol:(lt.current=setTimeout(function(){lt.current=null,Co(!1)}),Kt):Ol},[Bn,qi,Kt]);var _o=We(function(mo){mo.propertyName==="height"&&(Ar(),Bn==="close"&&Tr())},[Bn,Tr,Ar]),go=Mc({isAnimatingOpenOnMount:qi,animate:Ze.animate,placeholder:Ze.placeholder});return i.createElement(Ze.placeholder.tagName,{style:go,"data-rbd-placeholder-context-id":Yr,onTransitionEnd:_o,ref:Ze.innerRef})}var Ic=i.memo(Bl),qu=i.createContext(null);function Vr(Ze){Ze&&Dn(Ze)||jr(!1)}function Ni(Ze){return typeof Ze=="boolean"}function fo(Ze,lt){lt.forEach(function(Kt){return Kt(Ze)})}var Po=[function(lt){var Kt=lt.props;Kt.droppableId||jr(!1),typeof Kt.droppableId!="string"&&jr(!1)},function(lt){var Kt=lt.props;Ni(Kt.isDropDisabled)||jr(!1),Ni(Kt.isCombineEnabled)||jr(!1),Ni(Kt.ignoreContainerClipping)||jr(!1)},function(lt){var Kt=lt.getDroppableRef;Vr(Kt())}],pa=[function(lt){var Kt=lt.props,Bn=lt.getPlaceholderRef;if(Kt.placeholder)var Ar=Bn()}],Va=[function(lt){var Kt=lt.props;Kt.renderClone||jr(!1)},function(lt){var Kt=lt.getPlaceholderRef;Kt()&&jr(!1)}];function fs(Ze){Jl(function(){fo(Ze,Po),Ze.props.mode==="standard"&&fo(Ze,pa),Ze.props.mode==="virtual"&&fo(Ze,Va)})}var zs=function(Ze){(0,l.A)(lt,Ze);function lt(){for(var Bn,Ar=arguments.length,Tr=new Array(Ar),Yr=0;Yr<Ar;Yr++)Tr[Yr]=arguments[Yr];return Bn=Ze.call.apply(Ze,[this].concat(Tr))||this,Bn.state={isVisible:!!Bn.props.on,data:Bn.props.on,animate:Bn.props.shouldAnimate&&Bn.props.on?"open":"none"},Bn.onClose=function(){Bn.state.animate==="close"&&Bn.setState({isVisible:!1})},Bn}lt.getDerivedStateFromProps=function(Ar,Tr){return Ar.shouldAnimate?Ar.on?{isVisible:!0,data:Ar.on,animate:"open"}:Tr.isVisible?{isVisible:!0,data:Tr.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Ar.on,data:Ar.on,animate:"none"}};var Kt=lt.prototype;return Kt.render=function(){if(!this.state.isVisible)return null;var Ar={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ar)},lt}(i.PureComponent),cu={dragging:5e3,dropAnimating:4500},Ru=function(lt,Kt){return Kt?xn.drop(Kt.duration):lt?xn.snap:xn.fluid},Vs=function(lt,Kt){return lt?Kt?rt.opacity.drop:rt.opacity.combining:null},Ou=function(lt){return lt.forceShouldAnimate!=null?lt.forceShouldAnimate:lt.mode==="SNAP"};function iu(Ze){var lt=Ze.dimension,Kt=lt.client,Bn=Ze.offset,Ar=Ze.combineWith,Tr=Ze.dropping,Yr=!!Ar,qr=Ou(Ze),qi=!!Tr,Co=qi?wr.drop(Bn,Yr):wr.moveTo(Bn),_o={position:"fixed",top:Kt.marginBox.top,left:Kt.marginBox.left,boxSizing:"border-box",width:Kt.borderBox.width,height:Kt.borderBox.height,transition:Ru(qr,Tr),transform:Co,opacity:Vs(Yr,qi),zIndex:qi?cu.dropAnimating:cu.dragging,pointerEvents:"none"};return _o}function Uu(Ze){return{transform:wr.moveTo(Ze.offset),transition:Ze.shouldAnimateDisplacement?null:"none"}}function kl(Ze){return Ze.type==="DRAGGING"?iu(Ze):Uu(Ze)}function gl(Ze,lt,Kt){Kt===void 0&&(Kt=lo);var Bn=window.getComputedStyle(lt),Ar=lt.getBoundingClientRect(),Tr=nn(Ar,Bn),Yr=Bt(Tr,Kt),qr={client:Tr,tagName:lt.tagName.toLowerCase(),display:Bn.display},qi={x:Tr.marginBox.width,y:Tr.marginBox.height},Co={descriptor:Ze,placeholder:qr,displaceBy:qi,client:Tr,page:Yr};return Co}function ol(Ze){var lt=zu("draggable"),Kt=Ze.descriptor,Bn=Ze.registry,Ar=Ze.getDraggableRef,Tr=Ze.canDragInteractiveElements,Yr=Ze.shouldRespectForcePress,qr=Ze.isEnabled,qi=qe(function(){return{canDragInteractiveElements:Tr,shouldRespectForcePress:Yr,isEnabled:qr}},[Tr,qr,Yr]),Co=We(function(Bo){var Ba=Ar();return Ba||jr(!1),gl(Kt,Ba,Bo)},[Kt,Ar]),_o=qe(function(){return{uniqueId:lt,descriptor:Kt,options:qi,getDimension:Co}},[Kt,Co,qi,lt]),go=(0,i.useRef)(_o),mo=(0,i.useRef)(!0);Ea(function(){return Bn.draggable.register(go.current),function(){return Bn.draggable.unregister(go.current)}},[Bn.draggable]),Ea(function(){if(mo.current){mo.current=!1;return}var Bo=go.current;go.current=_o,Bn.draggable.update(_o,Bo)},[_o,Bn.draggable])}function El(Ze,lt,Kt){Jl(function(){function Bn(Tr){return"Draggable[id: "+Tr+"]: "}var Ar=Ze.draggableId;Ar||jr(!1),typeof Ar!="string"&&jr(!1),$r(Ze.index)||jr(!1),Ze.mapped.type!=="DRAGGING"&&(Vr(Kt()),Ze.isEnabled&&(Ii(lt,Ar)||jr(!1)))})}function Zc(Ze){}function mu(Ze){Ze.preventDefault()}function Ps(Ze){var lt=(0,i.useRef)(null),Kt=We(function(xl){lt.current=xl},[]),Bn=We(function(){return lt.current},[]),Ar=Yu(Gl),Tr=Ar.contextId,Yr=Ar.dragHandleUsageInstructionsId,qr=Ar.registry,qi=Yu(qu),Co=qi.type,_o=qi.droppableId,go=qe(function(){return{id:Ze.draggableId,index:Ze.index,type:Co,droppableId:_o}},[Ze.draggableId,Ze.index,Co,_o]),mo=Ze.children,Bo=Ze.draggableId,Ba=Ze.isEnabled,Bs=Ze.shouldRespectForcePress,Xs=Ze.canDragInteractiveElements,lu=Ze.isClone,Cu=Ze.mapped,yu=Ze.dropAnimationFinished;if(El(Ze,Tr,Bn),Zc(lu),!lu){var Ku=qe(function(){return{descriptor:go,registry:qr,getDraggableRef:Bn,canDragInteractiveElements:Xs,shouldRespectForcePress:Bs,isEnabled:Ba}},[go,qr,Bn,Xs,Bs,Ba]);ol(Ku)}var yl=qe(function(){return Ba?{tabIndex:0,role:"button","aria-describedby":Yr,"data-rbd-drag-handle-draggable-id":Bo,"data-rbd-drag-handle-context-id":Tr,draggable:!1,onDragStart:mu}:null},[Tr,Yr,Bo,Ba]),$u=We(function(xl){Cu.type==="DRAGGING"&&Cu.dropping&&xl.propertyName==="transform"&&yu()},[yu,Cu]),Cl=qe(function(){var xl=kl(Cu),Dl=Cu.type==="DRAGGING"&&Cu.dropping?$u:null,ec={innerRef:Kt,draggableProps:{"data-rbd-draggable-context-id":Tr,"data-rbd-draggable-id":Bo,style:xl,onTransitionEnd:Dl},dragHandleProps:yl};return ec},[Tr,yl,Bo,Cu,$u,Kt]),Tc=qe(function(){return{draggableId:go.id,type:go.type,source:{index:go.index,droppableId:go.droppableId}}},[go.droppableId,go.id,go.index,go.type]);return mo(Cl,Cu.snapshot,Tc)}var Kc=function(Ze,lt){return Ze===lt},vc=function(Ze){var lt=Ze.combine,Kt=Ze.destination;return Kt?Kt.droppableId:lt?lt.droppableId:null},ff=function(lt){return lt.combine?lt.combine.draggableId:null},Wc=function(lt){return lt.at&<.at.type==="COMBINE"?lt.at.combine.draggableId:null};function Mf(){var Ze=Zt(function(Ar,Tr){return{x:Ar,y:Tr}}),lt=Zt(function(Ar,Tr,Yr,qr,qi){return{isDragging:!0,isClone:Tr,isDropAnimating:!!qi,dropAnimation:qi,mode:Ar,draggingOver:Yr,combineWith:qr,combineTargetFor:null}}),Kt=Zt(function(Ar,Tr,Yr,qr,qi,Co,_o){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:qi,combineWith:Co,mode:Tr,offset:Ar,dimension:Yr,forceShouldAnimate:_o,snapshot:lt(Tr,qr,qi,Co,null)}}}),Bn=function(Tr,Yr){if(Tr.isDragging){if(Tr.critical.draggable.id!==Yr.draggableId)return null;var qr=Tr.current.client.offset,qi=Tr.dimensions.draggables[Yr.draggableId],Co=co(Tr.impact),_o=Wc(Tr.impact),go=Tr.forceShouldAnimate;return Kt(Ze(qr.x,qr.y),Tr.movementMode,qi,Yr.isClone,Co,_o,go)}if(Tr.phase==="DROP_ANIMATING"){var mo=Tr.completed;if(mo.result.draggableId!==Yr.draggableId)return null;var Bo=Yr.isClone,Ba=Tr.dimensions.draggables[Yr.draggableId],Bs=mo.result,Xs=Bs.mode,lu=vc(Bs),Cu=ff(Bs),yu=Tr.dropDuration,Ku={duration:yu,curve:Ue.drop,moveTo:Tr.newHomeClientOffset,opacity:Cu?rt.opacity.drop:null,scale:Cu?rt.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Tr.newHomeClientOffset,dimension:Ba,dropping:Ku,draggingOver:lu,combineWith:Cu,mode:Xs,forceShouldAnimate:null,snapshot:lt(Xs,Bo,lu,Cu,Ku)}}}return null};return Bn}function wd(Ze){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Ze,combineWith:null}}var mf={mapped:{type:"SECONDARY",offset:lo,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:wd(null)}};function Df(){var Ze=Zt(function(Yr,qr){return{x:Yr,y:qr}}),lt=Zt(wd),Kt=Zt(function(Yr,qr,qi){return qr===void 0&&(qr=null),{mapped:{type:"SECONDARY",offset:Yr,combineTargetFor:qr,shouldAnimateDisplacement:qi,snapshot:lt(qr)}}}),Bn=function(qr){return qr?Kt(lo,qr,!0):null},Ar=function(qr,qi,Co,_o){var go=Co.displaced.visible[qr],mo=!!(_o.inVirtualList&&_o.effected[qr]),Bo=gr(Co),Ba=Bo&&Bo.draggableId===qr?qi:null;if(!go){if(!mo)return Bn(Ba);if(Co.displaced.invisible[qr])return null;var Bs=kn(_o.displacedBy.point),Xs=Ze(Bs.x,Bs.y);return Kt(Xs,Ba,!0)}if(mo)return Bn(Ba);var lu=Co.displacedBy.point,Cu=Ze(lu.x,lu.y);return Kt(Cu,Ba,go.shouldAnimate)},Tr=function(qr,qi){if(qr.isDragging)return qr.critical.draggable.id===qi.draggableId?null:Ar(qi.draggableId,qr.critical.draggable.id,qr.impact,qr.afterCritical);if(qr.phase==="DROP_ANIMATING"){var Co=qr.completed;return Co.result.draggableId===qi.draggableId?null:Ar(qi.draggableId,Co.result.draggableId,Co.impact,Co.afterCritical)}return null};return Tr}var Ah=function(){var lt=Mf(),Kt=Df(),Bn=function(Tr,Yr){return lt(Tr,Yr)||Kt(Tr,Yr)||mf};return Bn},Ed={dropAnimationFinished:Kn},$f=wt(Ah,Ed,null,{context:Fa,pure:!0,areStatePropsEqual:Kc})(Ps);function Dc(Ze){var lt=Yu(qu),Kt=lt.isUsingCloneFor;return Kt===Ze.draggableId&&!Ze.isClone?null:i.createElement($f,Ze)}function _f(Ze){var lt=typeof Ze.isDragDisabled=="boolean"?!Ze.isDragDisabled:!0,Kt=!!Ze.disableInteractiveElementBlocking,Bn=!!Ze.shouldRespectForcePress;return i.createElement(Dc,(0,s.A)({},Ze,{isClone:!1,isEnabled:lt,canDragInteractiveElements:Kt,shouldRespectForcePress:Bn}))}function wf(Ze){var lt=(0,i.useContext)(Gl);lt||jr(!1);var Kt=lt.contextId,Bn=lt.isMovementAllowed,Ar=(0,i.useRef)(null),Tr=(0,i.useRef)(null),Yr=Ze.children,qr=Ze.droppableId,qi=Ze.type,Co=Ze.mode,_o=Ze.direction,go=Ze.ignoreContainerClipping,mo=Ze.isDropDisabled,Bo=Ze.isCombineEnabled,Ba=Ze.snapshot,Bs=Ze.useClone,Xs=Ze.updateViewportMaxScroll,lu=Ze.getContainerForClone,Cu=We(function(){return Ar.current},[]),yu=We(function(Oc){Ar.current=Oc},[]),Ku=We(function(){return Tr.current},[]),yl=We(function(Oc){Tr.current=Oc},[]);fs({props:Ze,getDroppableRef:Cu,getPlaceholderRef:Ku});var $u=We(function(){Bn()&&Xs({maxScroll:Ri()})},[Bn,Xs]);of({droppableId:qr,type:qi,mode:Co,direction:_o,isDropDisabled:mo,isCombineEnabled:Bo,ignoreContainerClipping:go,getDroppableRef:Cu});var Cl=i.createElement(zs,{on:Ze.placeholder,shouldAnimate:Ze.shouldAnimatePlaceholder},function(Oc){var zf=Oc.onClose,Sd=Oc.data,Bf=Oc.animate;return i.createElement(Ic,{placeholder:Sd,onClose:zf,innerRef:yl,animate:Bf,contextId:Kt,onTransitionEnd:$u})}),Tc=qe(function(){return{innerRef:yu,placeholder:Cl,droppableProps:{"data-rbd-droppable-id":qr,"data-rbd-droppable-context-id":Kt}}},[Kt,qr,Cl,yu]),xl=Bs?Bs.dragging.draggableId:null,Dl=qe(function(){return{droppableId:qr,type:qi,isUsingCloneFor:xl}},[qr,xl,qi]);function ec(){if(!Bs)return null;var Oc=Bs.dragging,zf=Bs.render,Sd=i.createElement(Dc,{draggableId:Oc.draggableId,index:Oc.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Bf,Yf){return zf(Bf,Yf,Oc)});return De.createPortal(Sd,lu())}return i.createElement(qu.Provider,{value:Dl},Yr(Tc,Ba),ec())}var Uf=function(lt,Kt){return lt===Kt.droppable.type},Wd=function(lt,Kt){return Kt.draggables[lt.draggable.id]},Ff=function(){var lt={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Kt=(0,s.A)({},lt,{shouldAnimatePlaceholder:!1}),Bn=Zt(function(Yr){return{draggableId:Yr.id,type:Yr.type,source:{index:Yr.index,droppableId:Yr.droppableId}}}),Ar=Zt(function(Yr,qr,qi,Co,_o,go){var mo=_o.descriptor.id,Bo=_o.descriptor.droppableId===Yr;if(Bo){var Ba=go?{render:go,dragging:Bn(_o.descriptor)}:null,Bs={isDraggingOver:qi,draggingOverWith:qi?mo:null,draggingFromThisWith:mo,isUsingPlaceholder:!0};return{placeholder:_o.placeholder,shouldAnimatePlaceholder:!1,snapshot:Bs,useClone:Ba}}if(!qr)return Kt;if(!Co)return lt;var Xs={isDraggingOver:qi,draggingOverWith:mo,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:_o.placeholder,shouldAnimatePlaceholder:!0,snapshot:Xs,useClone:null}}),Tr=function(qr,qi){var Co=qi.droppableId,_o=qi.type,go=!qi.isDropDisabled,mo=qi.renderClone;if(qr.isDragging){var Bo=qr.critical;if(!Uf(_o,Bo))return Kt;var Ba=Wd(Bo,qr.dimensions),Bs=co(qr.impact)===Co;return Ar(Co,go,Bs,Bs,Ba,mo)}if(qr.phase==="DROP_ANIMATING"){var Xs=qr.completed;if(!Uf(_o,Xs.critical))return Kt;var lu=Wd(Xs.critical,qr.dimensions);return Ar(Co,go,vc(Xs.result)===Co,co(Xs.impact)===Co,lu,mo)}if(qr.phase==="IDLE"&&qr.completed&&!qr.shouldFlush){var Cu=qr.completed;if(!Uf(_o,Cu.critical))return Kt;var yu=co(Cu.impact)===Co,Ku=!!(Cu.impact.at&&Cu.impact.at.type==="COMBINE"),yl=Cu.critical.droppable.id===Co;return yu?Ku?lt:Kt:yl?lt:Kt}return Kt};return Tr},Qd={updateViewportMaxScroll:Ts};function Nd(){return document.body||jr(!1),document.body}var Wf={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Nd},nh=wt(Ff,Qd,null,{context:Fa,pure:!0,areStatePropsEqual:Kc})(wf);nh.defaultProps=Wf},69775:(J,g)=>{"use strict";var t;/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=60103,l=60106,s=60107,m=60108,u=60114,f=60109,p=60110,v=60112,h=60113,d=60120,b=60115,y=60116,w=60121,S=60122,O=60117,R=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;i=D("react.element"),l=D("react.portal"),s=D("react.fragment"),m=D("react.strict_mode"),u=D("react.profiler"),f=D("react.provider"),p=D("react.context"),v=D("react.forward_ref"),h=D("react.suspense"),d=D("react.suspense_list"),b=D("react.memo"),y=D("react.lazy"),w=D("react.block"),S=D("react.server.block"),O=D("react.fundamental"),R=D("react.debug_trace_mode"),M=D("react.legacy_hidden")}function P(ve){if(typeof ve=="object"&&ve!==null){var ce=ve.$$typeof;switch(ce){case i:switch(ve=ve.type,ve){case s:case u:case m:case h:case d:return ve;default:switch(ve=ve&&ve.$$typeof,ve){case p:case v:case y:case b:case f:return ve;default:return ce}}case l:return ce}}}var T=f,A=i,j=v,ae=s,_=y,N=b,W=l,he=u,me=m,fe=h;t=p,t=T,t=A,t=j,t=ae,t=_,t=N,t=W,t=he,t=me,t=fe,t=function(){return!1},t=function(){return!1},g.isContextConsumer=function(ve){return P(ve)===p},t=function(ve){return P(ve)===f},t=function(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===i},t=function(ve){return P(ve)===v},t=function(ve){return P(ve)===s},t=function(ve){return P(ve)===y},t=function(ve){return P(ve)===b},t=function(ve){return P(ve)===l},t=function(ve){return P(ve)===u},t=function(ve){return P(ve)===m},t=function(ve){return P(ve)===h},t=function(ve){return typeof ve=="string"||typeof ve=="function"||ve===s||ve===u||ve===R||ve===m||ve===h||ve===d||ve===M||typeof ve=="object"&&ve!==null&&(ve.$$typeof===y||ve.$$typeof===b||ve.$$typeof===f||ve.$$typeof===p||ve.$$typeof===v||ve.$$typeof===O||ve.$$typeof===w||ve[0]===S)},t=P},61899:(J,g,t)=>{"use strict";J.exports=t(69775)},86991:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=Object.assign||function(b){for(var y=1;y<arguments.length;y++){var w=arguments[y];for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(b[S]=w[S])}return b};g.renderViewDefault=f,g.renderTrackHorizontalDefault=p,g.renderTrackVerticalDefault=v,g.renderThumbHorizontalDefault=h,g.renderThumbVerticalDefault=d;var l=t(96540),s=m(l);function m(b){return b&&b.__esModule?b:{default:b}}function u(b,y){var w={};for(var S in b)y.indexOf(S)>=0||Object.prototype.hasOwnProperty.call(b,S)&&(w[S]=b[S]);return w}function f(b){return s.default.createElement("div",b)}function p(b){var y=b.style,w=u(b,["style"]),S=i({},y,{right:2,bottom:2,left:2,borderRadius:3});return s.default.createElement("div",i({style:S},w))}function v(b){var y=b.style,w=u(b,["style"]),S=i({},y,{right:2,bottom:2,top:2,borderRadius:3});return s.default.createElement("div",i({style:S},w))}function h(b){var y=b.style,w=u(b,["style"]),S=i({},y,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return s.default.createElement("div",i({style:S},w))}function d(b){var y=b.style,w=u(b,["style"]),S=i({},y,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return s.default.createElement("div",i({style:S},w))}},89455:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=Object.assign||function(me){for(var fe=1;fe<arguments.length;fe++){var ve=arguments[fe];for(var ce in ve)Object.prototype.hasOwnProperty.call(ve,ce)&&(me[ce]=ve[ce])}return me},l=function(){function me(fe,ve){for(var ce=0;ce<ve.length;ce++){var oe=ve[ce];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(fe,oe.key,oe)}}return function(fe,ve,ce){return ve&&me(fe.prototype,ve),ce&&me(fe,ce),fe}}(),s=t(93146),m=j(s),u=t(64849),f=j(u),p=t(96540),v=t(5556),h=j(v),d=t(99964),b=j(d),y=t(76595),w=j(y),S=t(10492),O=j(S),R=t(31373),M=j(R),D=t(53966),P=j(D),T=t(90865),A=t(86991);function j(me){return me&&me.__esModule?me:{default:me}}function ae(me,fe){var ve={};for(var ce in me)fe.indexOf(ce)>=0||Object.prototype.hasOwnProperty.call(me,ce)&&(ve[ce]=me[ce]);return ve}function _(me,fe){if(!(me instanceof fe))throw new TypeError("Cannot call a class as a function")}function N(me,fe){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe&&(typeof fe=="object"||typeof fe=="function")?fe:me}function W(me,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);me.prototype=Object.create(fe&&fe.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(me,fe):me.__proto__=fe)}var he=function(me){W(fe,me);function fe(ve){var ce;_(this,fe);for(var oe=arguments.length,re=Array(oe>1?oe-1:0),H=1;H<oe;H++)re[H-1]=arguments[H];var V=N(this,(ce=fe.__proto__||Object.getPrototypeOf(fe)).call.apply(ce,[this,ve].concat(re)));return V.getScrollLeft=V.getScrollLeft.bind(V),V.getScrollTop=V.getScrollTop.bind(V),V.getScrollWidth=V.getScrollWidth.bind(V),V.getScrollHeight=V.getScrollHeight.bind(V),V.getClientWidth=V.getClientWidth.bind(V),V.getClientHeight=V.getClientHeight.bind(V),V.getValues=V.getValues.bind(V),V.getThumbHorizontalWidth=V.getThumbHorizontalWidth.bind(V),V.getThumbVerticalHeight=V.getThumbVerticalHeight.bind(V),V.getScrollLeftForOffset=V.getScrollLeftForOffset.bind(V),V.getScrollTopForOffset=V.getScrollTopForOffset.bind(V),V.scrollLeft=V.scrollLeft.bind(V),V.scrollTop=V.scrollTop.bind(V),V.scrollToLeft=V.scrollToLeft.bind(V),V.scrollToTop=V.scrollToTop.bind(V),V.scrollToRight=V.scrollToRight.bind(V),V.scrollToBottom=V.scrollToBottom.bind(V),V.handleTrackMouseEnter=V.handleTrackMouseEnter.bind(V),V.handleTrackMouseLeave=V.handleTrackMouseLeave.bind(V),V.handleHorizontalTrackMouseDown=V.handleHorizontalTrackMouseDown.bind(V),V.handleVerticalTrackMouseDown=V.handleVerticalTrackMouseDown.bind(V),V.handleHorizontalThumbMouseDown=V.handleHorizontalThumbMouseDown.bind(V),V.handleVerticalThumbMouseDown=V.handleVerticalThumbMouseDown.bind(V),V.handleWindowResize=V.handleWindowResize.bind(V),V.handleScroll=V.handleScroll.bind(V),V.handleDrag=V.handleDrag.bind(V),V.handleDragEnd=V.handleDragEnd.bind(V),V.state={didMountUniversal:!1},V}return l(fe,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var ce=this.props.universal;ce&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,s.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var ce=this.view||{},oe=ce.scrollLeft,re=oe===void 0?0:oe,H=ce.scrollTop,V=H===void 0?0:H,Q=ce.scrollWidth,Te=Q===void 0?0:Q,Re=ce.scrollHeight,ne=Re===void 0?0:Re,pe=ce.clientWidth,ye=pe===void 0?0:pe,Se=ce.clientHeight,Ae=Se===void 0?0:Se;return{left:re/(Te-ye)||0,top:V/(ne-Ae)||0,scrollLeft:re,scrollTop:V,scrollWidth:Te,scrollHeight:ne,clientWidth:ye,clientHeight:Ae}}},{key:"getThumbHorizontalWidth",value:function(){var ce=this.props,oe=ce.thumbSize,re=ce.thumbMinSize,H=this.view,V=H.scrollWidth,Q=H.clientWidth,Te=(0,M.default)(this.trackHorizontal),Re=Math.ceil(Q/V*Te);return Te<=Re?0:oe||Math.max(Re,re)}},{key:"getThumbVerticalHeight",value:function(){var ce=this.props,oe=ce.thumbSize,re=ce.thumbMinSize,H=this.view,V=H.scrollHeight,Q=H.clientHeight,Te=(0,P.default)(this.trackVertical),Re=Math.ceil(Q/V*Te);return Te<=Re?0:oe||Math.max(Re,re)}},{key:"getScrollLeftForOffset",value:function(ce){var oe=this.view,re=oe.scrollWidth,H=oe.clientWidth,V=(0,M.default)(this.trackHorizontal),Q=this.getThumbHorizontalWidth();return ce/(V-Q)*(re-H)}},{key:"getScrollTopForOffset",value:function(ce){var oe=this.view,re=oe.scrollHeight,H=oe.clientHeight,V=(0,P.default)(this.trackVertical),Q=this.getThumbVerticalHeight();return ce/(V-Q)*(re-H)}},{key:"scrollLeft",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=ce)}},{key:"scrollTop",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=ce)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var ce=this.view,oe=this.trackHorizontal,re=this.trackVertical,H=this.thumbHorizontal,V=this.thumbVertical;ce.addEventListener("scroll",this.handleScroll),(0,w.default)()&&(oe.addEventListener("mouseenter",this.handleTrackMouseEnter),oe.addEventListener("mouseleave",this.handleTrackMouseLeave),oe.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),re.addEventListener("mouseenter",this.handleTrackMouseEnter),re.addEventListener("mouseleave",this.handleTrackMouseLeave),re.addEventListener("mousedown",this.handleVerticalTrackMouseDown),H.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),V.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var ce=this.view,oe=this.trackHorizontal,re=this.trackVertical,H=this.thumbHorizontal,V=this.thumbVertical;ce.removeEventListener("scroll",this.handleScroll),(0,w.default)()&&(oe.removeEventListener("mouseenter",this.handleTrackMouseEnter),oe.removeEventListener("mouseleave",this.handleTrackMouseLeave),oe.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),re.removeEventListener("mouseenter",this.handleTrackMouseEnter),re.removeEventListener("mouseleave",this.handleTrackMouseLeave),re.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),H.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),V.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(ce){var oe=this,re=this.props,H=re.onScroll,V=re.onScrollFrame;H&&H(ce),this.update(function(Q){var Te=Q.scrollLeft,Re=Q.scrollTop;oe.viewScrollLeft=Te,oe.viewScrollTop=Re,V&&V(Q)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var ce=this.props.onScrollStart;ce&&ce(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var ce=this.props.autoHide;ce&&this.showTracks()}},{key:"handleScrollStop",value:function(){var ce=this.props.onScrollStop;ce&&ce(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var ce=this.props.autoHide;ce&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,w.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(ce){ce.preventDefault();var oe=ce.target,re=ce.clientX,H=oe.getBoundingClientRect(),V=H.left,Q=this.getThumbHorizontalWidth(),Te=Math.abs(V-re)-Q/2;this.view.scrollLeft=this.getScrollLeftForOffset(Te)}},{key:"handleVerticalTrackMouseDown",value:function(ce){ce.preventDefault();var oe=ce.target,re=ce.clientY,H=oe.getBoundingClientRect(),V=H.top,Q=this.getThumbVerticalHeight(),Te=Math.abs(V-re)-Q/2;this.view.scrollTop=this.getScrollTopForOffset(Te)}},{key:"handleHorizontalThumbMouseDown",value:function(ce){ce.preventDefault(),this.handleDragStart(ce);var oe=ce.target,re=ce.clientX,H=oe.offsetWidth,V=oe.getBoundingClientRect(),Q=V.left;this.prevPageX=H-(re-Q)}},{key:"handleVerticalThumbMouseDown",value:function(ce){ce.preventDefault(),this.handleDragStart(ce);var oe=ce.target,re=ce.clientY,H=oe.offsetHeight,V=oe.getBoundingClientRect(),Q=V.top;this.prevPageY=H-(re-Q)}},{key:"setupDragging",value:function(){(0,f.default)(document.body,T.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=O.default}},{key:"teardownDragging",value:function(){(0,f.default)(document.body,T.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(ce){this.dragging=!0,ce.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(ce){if(this.prevPageX){var oe=ce.clientX,re=this.trackHorizontal.getBoundingClientRect(),H=re.left,V=this.getThumbHorizontalWidth(),Q=V-this.prevPageX,Te=-H+oe-Q;this.view.scrollLeft=this.getScrollLeftForOffset(Te)}if(this.prevPageY){var Re=ce.clientY,ne=this.trackVertical.getBoundingClientRect(),pe=ne.top,ye=this.getThumbVerticalHeight(),Se=ye-this.prevPageY,Ae=-pe+Re-Se;this.view.scrollTop=this.getScrollTopForOffset(Ae)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var ce=this.props.autoHide;ce&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var ce=this.props.autoHide;ce&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var ce=this.props.autoHide;ce&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,f.default)(this.trackHorizontal,{opacity:1}),(0,f.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var ce=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var oe=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,f.default)(ce.trackHorizontal,{opacity:0}),(0,f.default)(ce.trackVertical,{opacity:0})},oe)}}},{key:"detectScrolling",value:function(){var ce=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){ce.lastViewScrollLeft===ce.viewScrollLeft&&ce.lastViewScrollTop===ce.viewScrollTop&&(clearInterval(ce.detectScrollingInterval),ce.scrolling=!1,ce.handleScrollStop()),ce.lastViewScrollLeft=ce.viewScrollLeft,ce.lastViewScrollTop=ce.viewScrollTop},100))}},{key:"raf",value:function(ce){var oe=this;this.requestFrame&&m.default.cancel(this.requestFrame),this.requestFrame=(0,m.default)(function(){oe.requestFrame=void 0,ce()})}},{key:"update",value:function(ce){var oe=this;this.raf(function(){return oe._update(ce)})}},{key:"_update",value:function(ce){var oe=this.props,re=oe.onUpdate,H=oe.hideTracksWhenNotNeeded,V=this.getValues();if((0,w.default)()){var Q=V.scrollLeft,Te=V.clientWidth,Re=V.scrollWidth,ne=(0,M.default)(this.trackHorizontal),pe=this.getThumbHorizontalWidth(),ye=Q/(Re-Te)*(ne-pe),Se={width:pe,transform:"translateX("+ye+"px)"},Ae=V.scrollTop,Ee=V.clientHeight,xe=V.scrollHeight,nt=(0,P.default)(this.trackVertical),Tt=this.getThumbVerticalHeight(),pt=Ae/(xe-Ee)*(nt-Tt),Rt={height:Tt,transform:"translateY("+pt+"px)"};if(H){var tt={visibility:Re>Te?"visible":"hidden"},U={visibility:xe>Ee?"visible":"hidden"};(0,f.default)(this.trackHorizontal,tt),(0,f.default)(this.trackVertical,U)}(0,f.default)(this.thumbHorizontal,Se),(0,f.default)(this.thumbVertical,Rt)}re&&re(V),typeof ce=="function"&&ce(V)}},{key:"render",value:function(){var ce=this,oe=(0,w.default)(),re=this.props,H=re.onScroll,V=re.onScrollFrame,Q=re.onScrollStart,Te=re.onScrollStop,Re=re.onUpdate,ne=re.renderView,pe=re.renderTrackHorizontal,ye=re.renderTrackVertical,Se=re.renderThumbHorizontal,Ae=re.renderThumbVertical,Ee=re.tagName,xe=re.hideTracksWhenNotNeeded,nt=re.autoHide,Tt=re.autoHideTimeout,pt=re.autoHideDuration,Rt=re.thumbSize,tt=re.thumbMinSize,U=re.universal,F=re.autoHeight,Y=re.autoHeightMin,le=re.autoHeightMax,ke=re.style,Ye=re.children,ft=ae(re,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),wt=this.state.didMountUniversal,Ut=i({},T.containerStyleDefault,F&&i({},T.containerStyleAutoHeight,{minHeight:Y,maxHeight:le}),ke),Ke=i({},T.viewStyleDefault,{marginRight:oe?-oe:0,marginBottom:oe?-oe:0},F&&i({},T.viewStyleAutoHeight,{minHeight:(0,b.default)(Y)?"calc("+Y+" + "+oe+"px)":Y+oe,maxHeight:(0,b.default)(le)?"calc("+le+" + "+oe+"px)":le+oe}),F&&U&&!wt&&{minHeight:Y,maxHeight:le},U&&!wt&&T.viewStyleUniversalInitial),it={transition:"opacity "+pt+"ms",opacity:0},At=i({},T.trackHorizontalStyleDefault,nt&&it,(!oe||U&&!wt)&&{display:"none"}),et=i({},T.trackVerticalStyleDefault,nt&&it,(!oe||U&&!wt)&&{display:"none"});return(0,p.createElement)(Ee,i({},ft,{style:Ut,ref:function(I){ce.container=I}}),[(0,p.cloneElement)(ne({style:Ke}),{key:"view",ref:function(I){ce.view=I}},Ye),(0,p.cloneElement)(pe({style:At}),{key:"trackHorizontal",ref:function(I){ce.trackHorizontal=I}},(0,p.cloneElement)(Se({style:T.thumbHorizontalStyleDefault}),{ref:function(I){ce.thumbHorizontal=I}})),(0,p.cloneElement)(ye({style:et}),{key:"trackVertical",ref:function(I){ce.trackVertical=I}},(0,p.cloneElement)(Ae({style:T.thumbVerticalStyleDefault}),{ref:function(I){ce.thumbVertical=I}}))])}}]),fe}(p.Component);g.default=he,he.propTypes={onScroll:h.default.func,onScrollFrame:h.default.func,onScrollStart:h.default.func,onScrollStop:h.default.func,onUpdate:h.default.func,renderView:h.default.func,renderTrackHorizontal:h.default.func,renderTrackVertical:h.default.func,renderThumbHorizontal:h.default.func,renderThumbVertical:h.default.func,tagName:h.default.string,thumbSize:h.default.number,thumbMinSize:h.default.number,hideTracksWhenNotNeeded:h.default.bool,autoHide:h.default.bool,autoHideTimeout:h.default.number,autoHideDuration:h.default.number,autoHeight:h.default.bool,autoHeightMin:h.default.oneOfType([h.default.number,h.default.string]),autoHeightMax:h.default.oneOfType([h.default.number,h.default.string]),universal:h.default.bool,style:h.default.object,children:h.default.node},he.defaultProps={renderView:A.renderViewDefault,renderTrackHorizontal:A.renderTrackHorizontalDefault,renderTrackVertical:A.renderTrackVerticalDefault,renderThumbHorizontal:A.renderThumbHorizontalDefault,renderThumbVertical:A.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},90865:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var t=g.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},i=g.containerStyleAutoHeight={height:"auto"},l=g.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},s=g.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},m=g.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},u=g.trackHorizontalStyleDefault={position:"absolute",height:6},f=g.trackVerticalStyleDefault={position:"absolute",width:6},p=g.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},v=g.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},h=g.disableSelectStyle={userSelect:"none"},d=g.disableSelectStyleReset={userSelect:""}},62295:(J,g,t)=>{"use strict";var i;i={value:!0},i=void 0;var l=t(89455),s=m(l);function m(u){return u&&u.__esModule?u:{default:u}}g.Ay=s.default,i=s.default},53966:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=t;function t(i){var l=i.clientHeight,s=getComputedStyle(i),m=s.paddingTop,u=s.paddingBottom;return l-parseFloat(m)-parseFloat(u)}},31373:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=t;function t(i){var l=i.clientWidth,s=getComputedStyle(i),m=s.paddingLeft,u=s.paddingRight;return l-parseFloat(m)-parseFloat(u)}},76595:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=u;var i=t(64849),l=s(i);function s(f){return f&&f.__esModule?f:{default:f}}var m=!1;function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(f&&m!==!1)return m;if(typeof document<"u"){var p=document.createElement("div");(0,l.default)(p,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(p),m=p.offsetWidth-p.clientWidth,document.body.removeChild(p)}else m=0;return m||0}},99964:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=t;function t(i){return typeof i=="string"}},10492:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=t;function t(){return!1}},21066:function(J,g,t){"use strict";var i=this&&this.__read||function(d,b){var y=typeof Symbol=="function"&&d[Symbol.iterator];if(!y)return d;var w=y.call(d),S,O=[],R;try{for(;(b===void 0||b-- >0)&&!(S=w.next()).done;)O.push(S.value)}catch(M){R={error:M}}finally{try{S&&!S.done&&(y=w.return)&&y.call(w)}finally{if(R)throw R.error}}return O},l=this&&this.__spread||function(){for(var d=[],b=0;b<arguments.length;b++)d=d.concat(i(arguments[b]));return d};Object.defineProperty(g,"__esModule",{value:!0});var s=t(70164),m=s,u;(function(d){d[d.DEFAULT=0]="DEFAULT",d[d.ADDED=1]="ADDED",d[d.REMOVED=2]="REMOVED"})(u=g.DiffType||(g.DiffType={}));var f;(function(d){d.CHARS="diffChars",d.WORDS="diffWords",d.WORDS_WITH_SPACE="diffWordsWithSpace",d.LINES="diffLines",d.TRIMMED_LINES="diffTrimmedLines",d.SENTENCES="diffSentences",d.CSS="diffCss"})(f=g.DiffMethod||(g.DiffMethod={}));var p=function(d){var b=d.split(` `),y=b.every(function(O){return!O});if(y)return b.length===2?[]:(b.pop(),b);var w=b[b.length-1],S=b[0];return w||b.pop(),S||b.shift(),b},v=function(d,b,y){y===void 0&&(y=f.CHARS);var w=m[y](d,b),S={left:[],right:[]};return w.forEach(function(O){var R=O.added,M=O.removed,D=O.value,P={};return R&&(P.type=u.ADDED,P.value=D,S.right.push(P)),M&&(P.type=u.REMOVED,P.value=D,S.left.push(P)),!M&&!R&&(P.type=u.DEFAULT,P.value=D,S.right.push(P),S.left.push(P)),P}),S},h=function(d,b,y,w,S){y===void 0&&(y=!1),w===void 0&&(w=f.CHARS),S===void 0&&(S=0);var O=s.diffLines(d.trimRight(),b.trimRight(),{newlineIsToken:!0,ignoreWhitespace:!1,ignoreCase:!1}),R=S,M=S,D=[],P=0,T=[],A=[],j=function(ae,_,N,W,he){var me=p(ae);return me.map(function(fe,ve){var ce={},oe={};if(!(A.includes(_+"-"+ve)||he&&ve!==0)){if(N||W)if(T.includes(P)||T.push(P),W){M+=1,ce.lineNumber=M,ce.type=u.REMOVED,ce.value=fe||" ";var re=O[_+1];if(re&&re.added){var H=p(re.value)[ve];if(H){var V=j(re.value,_,!0,!1,!0)[0].right,Q=V.value,Te=V.lineNumber,Re=V.type;if(A.push(_+1+"-"+ve),oe.lineNumber=Te,oe.type=Re,y)oe.value=Q;else{var ne=v(fe,Q,w);oe.value=ne.right,ce.value=ne.left}}}}else R+=1,oe.lineNumber=R,oe.type=u.ADDED,oe.value=fe;else M+=1,R+=1,ce.lineNumber=M,ce.type=u.DEFAULT,ce.value=fe,oe.lineNumber=R,oe.type=u.DEFAULT,oe.value=fe;return P+=1,{right:oe,left:ce}}}).filter(Boolean)};return O.forEach(function(ae,_){var N=ae.added,W=ae.removed,he=ae.value;D=l(D,j(he,_,N,W))}),{lineInformation:D,diffLines:T}};g.computeLineInformation=h},24773:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var b=function(y,w){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var R in O)O.hasOwnProperty(R)&&(S[R]=O[R])},b(y,w)};return function(y,w){b(y,w);function S(){this.constructor=y}y.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}();Object.defineProperty(g,"__esModule",{value:!0});var l=t(96540),s=t(5556),m=t(46942),u=t(21066);g.DiffMethod=u.DiffMethod;var f=t(88935),p=t(3611),v=p.default||p,h;(function(b){b.LEFT="L",b.RIGHT="R"})(h=g.LineNumberPrefix||(g.LineNumberPrefix={}));var d=function(b){i(y,b);function y(w){var S=b.call(this,w)||this;return S.resetCodeBlocks=function(){return S.state.expandedBlocks.length>0?(S.setState({expandedBlocks:[]}),!0):!1},S.onBlockExpand=function(O){var R=S.state.expandedBlocks.slice();R.push(O),S.setState({expandedBlocks:R})},S.computeStyles=v(f.default),S.onLineNumberClickProxy=function(O){return S.props.onLineNumberClick?function(R){return S.props.onLineNumberClick(O,R)}:function(){}},S.renderWordDiff=function(O,R){return O.map(function(M,D){var P;return l.createElement("span",{key:D,className:m.default(S.styles.wordDiff,(P={},P[S.styles.wordAdded]=M.type===u.DiffType.ADDED,P[S.styles.wordRemoved]=M.type===u.DiffType.REMOVED,P))},R?R(M.value):M.value)})},S.renderLine=function(O,R,M,D,P,T){var A,j,ae,_,N=M+"-"+O,W=T+"-"+P,he=S.props.highlightLines.includes(N)||S.props.highlightLines.includes(W),me=R===u.DiffType.ADDED,fe=R===u.DiffType.REMOVED,ve;return Array.isArray(D)?ve=S.renderWordDiff(D,S.props.renderContent):S.props.renderContent?ve=S.props.renderContent(D):ve=D,l.createElement(l.Fragment,null,!S.props.hideLineNumbers&&l.createElement("td",{onClick:O&&S.onLineNumberClickProxy(N),className:m.default(S.styles.gutter,(A={},A[S.styles.emptyGutter]=!O,A[S.styles.diffAdded]=me,A[S.styles.diffRemoved]=fe,A[S.styles.highlightedGutter]=he,A))},l.createElement("pre",{className:S.styles.lineNumber},O)),!S.props.splitView&&!S.props.hideLineNumbers&&l.createElement("td",{onClick:P&&S.onLineNumberClickProxy(W),className:m.default(S.styles.gutter,(j={},j[S.styles.emptyGutter]=!P,j[S.styles.diffAdded]=me,j[S.styles.diffRemoved]=fe,j[S.styles.highlightedGutter]=he,j))},l.createElement("pre",{className:S.styles.lineNumber},P)),l.createElement("td",{className:m.default(S.styles.marker,(ae={},ae[S.styles.emptyLine]=!ve,ae[S.styles.diffAdded]=me,ae[S.styles.diffRemoved]=fe,ae[S.styles.highlightedLine]=he,ae))},l.createElement("pre",null,me&&"+",fe&&"-")),l.createElement("td",{className:m.default(S.styles.content,(_={},_[S.styles.emptyLine]=!ve,_[S.styles.diffAdded]=me,_[S.styles.diffRemoved]=fe,_[S.styles.highlightedLine]=he,_))},l.createElement("pre",{className:S.styles.contentText},ve)))},S.renderSplitView=function(O,R){var M=O.left,D=O.right;return l.createElement("tr",{key:R,className:S.styles.line},S.renderLine(M.lineNumber,M.type,h.LEFT,M.value),S.renderLine(D.lineNumber,D.type,h.RIGHT,D.value))},S.renderInlineView=function(O,R){var M=O.left,D=O.right,P;return M.type===u.DiffType.REMOVED&&D.type===u.DiffType.ADDED?l.createElement(l.Fragment,{key:R},l.createElement("tr",{className:S.styles.line},S.renderLine(M.lineNumber,M.type,h.LEFT,M.value,null)),l.createElement("tr",{className:S.styles.line},S.renderLine(null,D.type,h.RIGHT,D.value,D.lineNumber))):(M.type===u.DiffType.REMOVED&&(P=S.renderLine(M.lineNumber,M.type,h.LEFT,M.value,null)),M.type===u.DiffType.DEFAULT&&(P=S.renderLine(M.lineNumber,M.type,h.LEFT,M.value,D.lineNumber,h.RIGHT)),D.type===u.DiffType.ADDED&&(P=S.renderLine(null,D.type,h.RIGHT,D.value,D.lineNumber)),l.createElement("tr",{key:R,className:S.styles.line},P))},S.onBlockClickProxy=function(O){return function(){return S.onBlockExpand(O)}},S.renderSkippedLineIndicator=function(O,R,M,D){var P,T=S.props,A=T.hideLineNumbers,j=T.splitView,ae=S.props.codeFoldMessageRenderer?S.props.codeFoldMessageRenderer(O,M,D):l.createElement("pre",{className:S.styles.codeFoldContent},"Expand ",O," lines ..."),_=l.createElement("td",null,l.createElement("a",{onClick:S.onBlockClickProxy(R),tabIndex:0},ae)),N=!j&&!A;return l.createElement("tr",{key:M+"-"+D,className:S.styles.codeFold},!A&&l.createElement("td",{className:S.styles.codeFoldGutter}),l.createElement("td",{className:m.default((P={},P[S.styles.codeFoldGutter]=N,P))}),N?l.createElement(l.Fragment,null,l.createElement("td",null),_):l.createElement(l.Fragment,null,_,l.createElement("td",null)),l.createElement("td",null),l.createElement("td",null))},S.renderDiff=function(){var O=S.props,R=O.oldValue,M=O.newValue,D=O.splitView,P=O.disableWordDiff,T=O.compareMethod,A=O.linesOffset,j=u.computeLineInformation(R,M,P,T,A),ae=j.lineInformation,_=j.diffLines,N=S.props.extraLinesSurroundingDiff<0?0:S.props.extraLinesSurroundingDiff,W=[];return ae.map(function(he,me){var fe=_[0],ve=fe-me;if(S.props.showDiffOnly&&(ve===-N&&(W=[],_.shift()),he.left.type===u.DiffType.DEFAULT&&(ve>N||typeof fe>"u")&&!S.state.expandedBlocks.includes(fe)))return W.push(me+1),me===ae.length-1&&W.length>1?S.renderSkippedLineIndicator(W.length,fe,he.left.lineNumber,he.right.lineNumber):null;var ce=D?S.renderSplitView(he,me):S.renderInlineView(he,me);if(ve===N&&W.length>0){var oe=W.length;return W=[],l.createElement(l.Fragment,{key:me},S.renderSkippedLineIndicator(oe,fe,he.left.lineNumber,he.right.lineNumber),ce)}return ce})},S.render=function(){var O,R=S.props,M=R.oldValue,D=R.newValue,P=R.useDarkTheme,T=R.leftTitle,A=R.rightTitle,j=R.splitView,ae=R.hideLineNumbers;if(typeof M!="string"||typeof D!="string")throw Error('"oldValue" and "newValue" should be strings');S.styles=S.computeStyles(S.props.styles,P);var _=S.renderDiff(),N=ae?2:3,W=ae?2:4,he=(T||A)&&l.createElement("tr",null,l.createElement("td",{colSpan:j?N:W,className:S.styles.titleBlock},l.createElement("pre",{className:S.styles.contentText},T)),j&&l.createElement("td",{colSpan:N,className:S.styles.titleBlock},l.createElement("pre",{className:S.styles.contentText},A)));return l.createElement("table",{className:m.default(S.styles.diffContainer,(O={},O[S.styles.splitView]=j,O))},l.createElement("tbody",null,he,_))},S.state={expandedBlocks:[]},S}return y.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:u.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0},y.propTypes={oldValue:s.string.isRequired,newValue:s.string.isRequired,splitView:s.bool,disableWordDiff:s.bool,compareMethod:s.oneOf(Object.values(u.DiffMethod)),renderContent:s.func,onLineNumberClick:s.func,extraLinesSurroundingDiff:s.number,styles:s.object,hideLineNumbers:s.bool,showDiffOnly:s.bool,highlightLines:s.arrayOf(s.string),leftTitle:s.oneOfType([s.string,s.element]),rightTitle:s.oneOfType([s.string,s.element]),linesOffset:s.number},y}(l.Component);g.default=d},88935:function(J,g,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(m){for(var u,f=1,p=arguments.length;f<p;f++){u=arguments[f];for(var v in u)Object.prototype.hasOwnProperty.call(u,v)&&(m[v]=u[v])}return m},i.apply(this,arguments)},l=this&&this.__rest||function(m,u){var f={};for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&u.indexOf(p)<0&&(f[p]=m[p]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,p=Object.getOwnPropertySymbols(m);v<p.length;v++)u.indexOf(p[v])<0&&Object.prototype.propertyIsEnumerable.call(m,p[v])&&(f[p[v]]=m[p[v]]);return f};Object.defineProperty(g,"__esModule",{value:!0});var s=t(67537);g.default=function(m,u){var f,p,v,h,d,b,y;u===void 0&&(u=!1);var w=m.variables,S=w===void 0?{}:w,O=l(m,["variables"]),R={light:i({diffViewerBackground:"#fff",diffViewerColor:"212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},S.light||{}),dark:i({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#464c67",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#555a7b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},S.dark||{})},M=u?R.dark:R.light,D=s.css({width:"100%",label:"content"}),P=s.css((f={},f["."+D]={width:"50%"},f.label="split-view",f)),T=s.css({width:"100%",background:M.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),A=s.css({color:M.codeFoldContentColor,label:"code-fold-content"}),j=s.css({color:M.diffViewerColor,label:"content-text"}),ae=s.css((p={background:M.diffViewerTitleBackground,padding:10,borderBottom:"1px solid "+M.diffViewerTitleBorderColor,label:"title-block",":last-child":{borderLeft:"1px solid "+M.diffViewerTitleBorderColor}},p["."+j]={color:M.diffViewerTitleColor},p)),_=s.css({color:M.gutterColor,label:"line-number"}),N=s.css((v={background:M.removedBackground,color:M.removedColor,pre:{color:M.removedColor}},v["."+_]={color:M.removedGutterColor},v.label="diff-removed",v)),W=s.css((h={background:M.addedBackground,color:M.addedColor,pre:{color:M.addedColor}},h["."+_]={color:M.addedGutterColor},h.label="diff-added",h)),he=s.css({padding:2,display:"inline-flex",borderRadius:1,label:"word-diff"}),me=s.css({background:M.wordAddedBackground,label:"word-added"}),fe=s.css({background:M.wordRemovedBackground,label:"word-removed"}),ve=s.css({backgroundColor:M.codeFoldGutterBackground,label:"code-fold-gutter"}),ce=s.css({backgroundColor:M.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),oe=s.css({backgroundColor:M.emptyLineBackground,label:"empty-line"}),re=s.css((d={width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker"},d["&."+W]={pre:{color:M.addedColor}},d["&."+N]={pre:{color:M.removedColor}},d)),H=s.css((b={background:M.highlightBackground,label:"highlighted-line"},b["."+me+", ."+fe]={backgroundColor:"initial"},b)),V=s.css({label:"highlighted-gutter"}),Q=s.css((y={userSelect:"none",minWidth:50,padding:"0 10px",label:"gutter",textAlign:"right",background:M.gutterBackground,"&:hover":{cursor:"pointer",background:M.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5}},y["&."+W]={background:M.addedGutterBackground},y["&."+N]={background:M.removedGutterBackground},y["&."+V]={background:M.highlightGutterBackground,"&:hover":{background:M.highlightGutterBackground}},y)),Te=s.css({"&:hover":{background:M.gutterBackground,cursor:"initial"},label:"empty-gutter"}),Re=s.css({verticalAlign:"baseline",label:"line"}),ne={diffContainer:T,diffRemoved:N,diffAdded:W,splitView:P,marker:re,highlightedGutter:V,highlightedLine:H,gutter:Q,line:Re,wordDiff:he,wordAdded:me,wordRemoved:fe,codeFoldGutter:ve,codeFold:ce,emptyGutter:Te,emptyLine:oe,lineNumber:_,contentText:j,content:D,codeFoldContent:A,titleBlock:ae},pe=Object.keys(O).reduce(function(ye,Se){var Ae;return i({},ye,(Ae={},Ae[Se]=s.css(O[Se]),Ae))},{});return Object.keys(ne).reduce(function(ye,Se){var Ae;return i({},ye,(Ae={},Ae[Se]=pe[Se]?s.cx(ne[Se],pe[Se]):ne[Se],Ae))},{})}},70164:function(J,g){/*! diff v4.0.1 Software License Agreement (BSD License) Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com> All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Kevin Decker nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @license */(function(t,i){i(g)})(this,function(t){"use strict";function i(){}i.prototype={diff:function(it,At){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=et.callback;typeof et=="function"&&(ee=et,et={}),this.options=et;var I=this;function K(ct){return ee?(setTimeout(function(){ee(void 0,ct)},0),!0):ct}it=this.castInput(it),At=this.castInput(At),it=this.removeEmpty(this.tokenize(it)),At=this.removeEmpty(this.tokenize(At));var ue=At.length,De=it.length,He=1,Fe=ue+De,ze=[{newPos:-1,components:[]}],qe=this.extractCommon(ze[0],At,it,0);if(ze[0].newPos+1>=ue&&qe+1>=De)return K([{value:this.join(At),count:At.length}]);function We(){for(var ct=-1*He;ct<=He;ct+=2){var Ge=void 0,st=ze[ct-1],Me=ze[ct+1],ie=(Me?Me.newPos:0)-ct;st&&(ze[ct-1]=void 0);var ge=st&&st.newPos+1<ue,z=Me&&0<=ie&&ie<De;if(!ge&&!z){ze[ct]=void 0;continue}if(!ge||z&&st.newPos<Me.newPos?(Ge=s(Me),I.pushComponent(Ge.components,void 0,!0)):(Ge=st,Ge.newPos++,I.pushComponent(Ge.components,!0,void 0)),ie=I.extractCommon(Ge,At,it,ct),Ge.newPos+1>=ue&&ie+1>=De)return K(l(I,Ge.components,At,it,I.useLongestToken));ze[ct]=Ge}He++}if(ee)(function ct(){setTimeout(function(){if(He>Fe)return ee();We()||ct()},0)})();else for(;He<=Fe;){var _t=We();if(_t)return _t}},pushComponent:function(it,At,et){var ee=it[it.length-1];ee&&ee.added===At&&ee.removed===et?it[it.length-1]={count:ee.count+1,added:At,removed:et}:it.push({count:1,added:At,removed:et})},extractCommon:function(it,At,et,ee){for(var I=At.length,K=et.length,ue=it.newPos,De=ue-ee,He=0;ue+1<I&&De+1<K&&this.equals(At[ue+1],et[De+1]);)ue++,De++,He++;return He&&it.components.push({count:He}),it.newPos=ue,De},equals:function(it,At){return this.options.comparator?this.options.comparator(it,At):it===At||this.options.ignoreCase&&it.toLowerCase()===At.toLowerCase()},removeEmpty:function(it){for(var At=[],et=0;et<it.length;et++)it[et]&&At.push(it[et]);return At},castInput:function(it){return it},tokenize:function(it){return it.split("")},join:function(it){return it.join("")}};function l(Ke,it,At,et,ee){for(var I=0,K=it.length,ue=0,De=0;I<K;I++){var He=it[I];if(He.removed){if(He.value=Ke.join(et.slice(De,De+He.count)),De+=He.count,I&&it[I-1].added){var ze=it[I-1];it[I-1]=it[I],it[I]=ze}}else{if(!He.added&&ee){var Fe=At.slice(ue,ue+He.count);Fe=Fe.map(function(We,_t){var ct=et[De+_t];return ct.length>We.length?ct:We}),He.value=Ke.join(Fe)}else He.value=Ke.join(At.slice(ue,ue+He.count));ue+=He.count,He.added||(De+=He.count)}}var qe=it[K-1];return K>1&&typeof qe.value=="string"&&(qe.added||qe.removed)&&Ke.equals("",qe.value)&&(it[K-2].value+=qe.value,it.pop()),it}function s(Ke){return{newPos:Ke.newPos,components:Ke.components.slice(0)}}var m=new i;function u(Ke,it,At){return m.diff(Ke,it,At)}function f(Ke,it){if(typeof Ke=="function")it.callback=Ke;else if(Ke)for(var At in Ke)Ke.hasOwnProperty(At)&&(it[At]=Ke[At]);return it}var p=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,v=/\S/,h=new i;h.equals=function(Ke,it){return this.options.ignoreCase&&(Ke=Ke.toLowerCase(),it=it.toLowerCase()),Ke===it||this.options.ignoreWhitespace&&!v.test(Ke)&&!v.test(it)},h.tokenize=function(Ke){for(var it=Ke.split(/(\s+|[()[\]{}'"]|\b)/),At=0;At<it.length-1;At++)!it[At+1]&&it[At+2]&&p.test(it[At])&&p.test(it[At+2])&&(it[At]+=it[At+2],it.splice(At+1,2),At--);return it};function d(Ke,it,At){return At=f(At,{ignoreWhitespace:!0}),h.diff(Ke,it,At)}function b(Ke,it,At){return h.diff(Ke,it,At)}var y=new i;y.tokenize=function(Ke){var it=[],At=Ke.split(/(\n|\r\n)/);At[At.length-1]||At.pop();for(var et=0;et<At.length;et++){var ee=At[et];et%2&&!this.options.newlineIsToken?it[it.length-1]+=ee:(this.options.ignoreWhitespace&&(ee=ee.trim()),it.push(ee))}return it};function w(Ke,it,At){return y.diff(Ke,it,At)}function S(Ke,it,At){var et=f(At,{ignoreWhitespace:!0});return y.diff(Ke,it,et)}var O=new i;O.tokenize=function(Ke){return Ke.split(/(\S.+?[.!?])(?=\s+|$)/)};function R(Ke,it,At){return O.diff(Ke,it,At)}var M=new i;M.tokenize=function(Ke){return Ke.split(/([{}:;,]|\s+)/)};function D(Ke,it,At){return M.diff(Ke,it,At)}function P(Ke){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(it){return typeof it}:P=function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},P(Ke)}function T(Ke){return A(Ke)||j(Ke)||ae()}function A(Ke){if(Array.isArray(Ke)){for(var it=0,At=new Array(Ke.length);it<Ke.length;it++)At[it]=Ke[it];return At}}function j(Ke){if(Symbol.iterator in Object(Ke)||Object.prototype.toString.call(Ke)==="[object Arguments]")return Array.from(Ke)}function ae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _=Object.prototype.toString,N=new i;N.useLongestToken=!0,N.tokenize=y.tokenize,N.castInput=function(Ke){var it=this.options,At=it.undefinedReplacement,et=it.stringifyReplacer,ee=et===void 0?function(I,K){return typeof K>"u"?At:K}:et;return typeof Ke=="string"?Ke:JSON.stringify(he(Ke,null,null,ee),ee," ")},N.equals=function(Ke,it){return i.prototype.equals.call(N,Ke.replace(/,([\r\n])/g,"$1"),it.replace(/,([\r\n])/g,"$1"))};function W(Ke,it,At){return N.diff(Ke,it,At)}function he(Ke,it,At,et,ee){it=it||[],At=At||[],et&&(Ke=et(ee,Ke));var I;for(I=0;I<it.length;I+=1)if(it[I]===Ke)return At[I];var K;if(_.call(Ke)==="[object Array]"){for(it.push(Ke),K=new Array(Ke.length),At.push(K),I=0;I<Ke.length;I+=1)K[I]=he(Ke[I],it,At,et,ee);return it.pop(),At.pop(),K}if(Ke&&Ke.toJSON&&(Ke=Ke.toJSON()),P(Ke)==="object"&&Ke!==null){it.push(Ke),K={},At.push(K);var ue=[],De;for(De in Ke)Ke.hasOwnProperty(De)&&ue.push(De);for(ue.sort(),I=0;I<ue.length;I+=1)De=ue[I],K[De]=he(Ke[De],it,At,et,De);it.pop(),At.pop()}else K=Ke;return K}var me=new i;me.tokenize=function(Ke){return Ke.slice()},me.join=me.removeEmpty=function(Ke){return Ke};function fe(Ke,it,At){return me.diff(Ke,it,At)}function ve(Ke){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},At=Ke.split(/\r\n|[\n\v\f\r\x85]/),et=Ke.match(/\r\n|[\n\v\f\r\x85]/g)||[],ee=[],I=0;function K(){var He={};for(ee.push(He);I<At.length;){var Fe=At[I];if(/^(\-\-\-|\+\+\+|@@)\s/.test(Fe))break;var ze=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(Fe);ze&&(He.index=ze[1]),I++}for(ue(He),ue(He),He.hunks=[];I<At.length;){var qe=At[I];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(qe))break;if(/^@@/.test(qe))He.hunks.push(De());else{if(qe&&it.strict)throw new Error("Unknown line "+(I+1)+" "+JSON.stringify(qe));I++}}}function ue(He){var Fe=/^(---|\+\+\+)\s+(.*)$/.exec(At[I]);if(Fe){var ze=Fe[1]==="---"?"old":"new",qe=Fe[2].split(" ",2),We=qe[0].replace(/\\\\/g,"\\");/^".*"$/.test(We)&&(We=We.substr(1,We.length-2)),He[ze+"FileName"]=We,He[ze+"Header"]=(qe[1]||"").trim(),I++}}function De(){for(var He=I,Fe=At[I++],ze=Fe.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),qe={oldStart:+ze[1],oldLines:+ze[2]||1,newStart:+ze[3],newLines:+ze[4]||1,lines:[],linedelimiters:[]},We=0,_t=0;I<At.length&&!(At[I].indexOf("--- ")===0&&I+2<At.length&&At[I+1].indexOf("+++ ")===0&&At[I+2].indexOf("@@")===0);I++){var ct=At[I].length==0&&I!=At.length-1?" ":At[I][0];if(ct==="+"||ct==="-"||ct===" "||ct==="\\")qe.lines.push(At[I]),qe.linedelimiters.push(et[I]||` `),ct==="+"?We++:ct==="-"?_t++:ct===" "&&(We++,_t++);else break}if(!We&&qe.newLines===1&&(qe.newLines=0),!_t&&qe.oldLines===1&&(qe.oldLines=0),it.strict){if(We!==qe.newLines)throw new Error("Added line count did not match for hunk at line "+(He+1));if(_t!==qe.oldLines)throw new Error("Removed line count did not match for hunk at line "+(He+1))}return qe}for(;I<At.length;)K();return ee}function ce(Ke,it,At){var et=!0,ee=!1,I=!1,K=1;return function ue(){if(et&&!I){if(ee?K++:et=!1,Ke+K<=At)return K;I=!0}if(!ee)return I||(et=!0),it<=Ke-K?-K++:(ee=!0,ue())}}function oe(Ke,it){var At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof it=="string"&&(it=ve(it)),Array.isArray(it)){if(it.length>1)throw new Error("applyPatch only works with a single input.");it=it[0]}var et=Ke.split(/\r\n|[\n\v\f\r\x85]/),ee=Ke.match(/\r\n|[\n\v\f\r\x85]/g)||[],I=it.hunks,K=At.compareLine||function(Zt,Wn,Zn,xt){return Wn===xt},ue=0,De=At.fuzzFactor||0,He=0,Fe=0,ze,qe;function We(Zt,Wn){for(var Zn=0;Zn<Zt.lines.length;Zn++){var xt=Zt.lines[Zn],Xe=xt.length>0?xt[0]:" ",gn=xt.length>0?xt.substr(1):xt;if(Xe===" "||Xe==="-"){if(!K(Wn+1,et[Wn],Xe,gn)&&(ue++,ue>De))return!1;Wn++}}return!0}for(var _t=0;_t<I.length;_t++){for(var ct=I[_t],Ge=et.length-ct.oldLines,st=0,Me=Fe+ct.oldStart-1,ie=ce(Me,He,Ge);st!==void 0;st=ie())if(We(ct,Me+st)){ct.offset=Fe+=st;break}if(st===void 0)return!1;He=ct.offset+ct.oldStart+ct.oldLines}for(var ge=0,z=0;z<I.length;z++){var be=I[z],Qe=be.oldStart+be.offset+ge-1;ge+=be.newLines-be.oldLines,Qe<0&&(Qe=0);for(var Bt=0;Bt<be.lines.length;Bt++){var nn=be.lines[Bt],bt=nn.length>0?nn[0]:" ",at=nn.length>0?nn.substr(1):nn,$t=be.linedelimiters[Bt];if(bt===" ")Qe++;else if(bt==="-")et.splice(Qe,1),ee.splice(Qe,1);else if(bt==="+")et.splice(Qe,0,at),ee.splice(Qe,0,$t),Qe++;else if(bt==="\\"){var On=be.lines[Bt-1]?be.lines[Bt-1][0]:null;On==="+"?ze=!0:On==="-"&&(qe=!0)}}}if(ze)for(;!et[et.length-1];)et.pop(),ee.pop();else qe&&(et.push(""),ee.push(` `));for(var Ct=0;Ct<et.length-1;Ct++)et[Ct]=et[Ct]+ee[Ct];return et.join("")}function re(Ke,it){typeof Ke=="string"&&(Ke=ve(Ke));var At=0;function et(){var ee=Ke[At++];if(!ee)return it.complete();it.loadFile(ee,function(I,K){if(I)return it.complete(I);var ue=oe(K,ee,it);it.patched(ee,ue,function(De){if(De)return it.complete(De);et()})})}et()}function H(Ke,it,At,et,ee,I,K){K||(K={}),typeof K.context>"u"&&(K.context=4);var ue=w(At,et,K);ue.push({value:"",lines:[]});function De(st){return st.map(function(Me){return" "+Me})}for(var He=[],Fe=0,ze=0,qe=[],We=1,_t=1,ct=function(Me){var ie=ue[Me],ge=ie.lines||ie.value.replace(/\n$/,"").split(` `);if(ie.lines=ge,ie.added||ie.removed){var z;if(!Fe){var be=ue[Me-1];Fe=We,ze=_t,be&&(qe=K.context>0?De(be.lines.slice(-K.context)):[],Fe-=qe.length,ze-=qe.length)}(z=qe).push.apply(z,T(ge.map(function(Ct){return(ie.added?"+":"-")+Ct}))),ie.added?_t+=ge.length:We+=ge.length}else{if(Fe)if(ge.length<=K.context*2&&Me<ue.length-2){var Qe;(Qe=qe).push.apply(Qe,T(De(ge)))}else{var Bt,nn=Math.min(ge.length,K.context);(Bt=qe).push.apply(Bt,T(De(ge.slice(0,nn))));var bt={oldStart:Fe,oldLines:We-Fe+nn,newStart:ze,newLines:_t-ze+nn,lines:qe};if(Me>=ue.length-2&&ge.length<=K.context){var at=/\n$/.test(At),$t=/\n$/.test(et),On=ge.length==0&&qe.length>bt.oldLines;!at&&On&&qe.splice(bt.oldLines,0,"\\ No newline at end of file"),(!at&&!On||!$t)&&qe.push("\\ No newline at end of file")}He.push(bt),Fe=0,ze=0,qe=[]}We+=ge.length,_t+=ge.length}},Ge=0;Ge<ue.length;Ge++)ct(Ge);return{oldFileName:Ke,newFileName:it,oldHeader:ee,newHeader:I,hunks:He}}function V(Ke,it,At,et,ee,I,K){var ue=H(Ke,it,At,et,ee,I,K),De=[];Ke==it&&De.push("Index: "+Ke),De.push("==================================================================="),De.push("--- "+ue.oldFileName+(typeof ue.oldHeader>"u"?"":" "+ue.oldHeader)),De.push("+++ "+ue.newFileName+(typeof ue.newHeader>"u"?"":" "+ue.newHeader));for(var He=0;He<ue.hunks.length;He++){var Fe=ue.hunks[He];De.push("@@ -"+Fe.oldStart+","+Fe.oldLines+" +"+Fe.newStart+","+Fe.newLines+" @@"),De.push.apply(De,Fe.lines)}return De.join(` `)+` `}function Q(Ke,it,At,et,ee,I){return V(Ke,Ke,it,At,et,ee,I)}function Te(Ke,it){return Ke.length!==it.length?!1:Re(Ke,it)}function Re(Ke,it){if(it.length>Ke.length)return!1;for(var At=0;At<it.length;At++)if(it[At]!==Ke[At])return!1;return!0}function ne(Ke){var it=Ye(Ke.lines),At=it.oldLines,et=it.newLines;At!==void 0?Ke.oldLines=At:delete Ke.oldLines,et!==void 0?Ke.newLines=et:delete Ke.newLines}function pe(Ke,it,At){Ke=ye(Ke,At),it=ye(it,At);var et={};(Ke.index||it.index)&&(et.index=Ke.index||it.index),(Ke.newFileName||it.newFileName)&&(Se(Ke)?Se(it)?(et.oldFileName=Ae(et,Ke.oldFileName,it.oldFileName),et.newFileName=Ae(et,Ke.newFileName,it.newFileName),et.oldHeader=Ae(et,Ke.oldHeader,it.oldHeader),et.newHeader=Ae(et,Ke.newHeader,it.newHeader)):(et.oldFileName=Ke.oldFileName,et.newFileName=Ke.newFileName,et.oldHeader=Ke.oldHeader,et.newHeader=Ke.newHeader):(et.oldFileName=it.oldFileName||Ke.oldFileName,et.newFileName=it.newFileName||Ke.newFileName,et.oldHeader=it.oldHeader||Ke.oldHeader,et.newHeader=it.newHeader||Ke.newHeader)),et.hunks=[];for(var ee=0,I=0,K=0,ue=0;ee<Ke.hunks.length||I<it.hunks.length;){var De=Ke.hunks[ee]||{oldStart:1/0},He=it.hunks[I]||{oldStart:1/0};if(Ee(De,He))et.hunks.push(xe(De,K)),ee++,ue+=De.newLines-De.oldLines;else if(Ee(He,De))et.hunks.push(xe(He,ue)),I++,K+=He.newLines-He.oldLines;else{var Fe={oldStart:Math.min(De.oldStart,He.oldStart),oldLines:0,newStart:Math.min(De.newStart+K,He.oldStart+ue),newLines:0,lines:[]};nt(Fe,De.oldStart,De.lines,He.oldStart,He.lines),I++,ee++,et.hunks.push(Fe)}}return et}function ye(Ke,it){if(typeof Ke=="string"){if(/^@@/m.test(Ke)||/^Index:/m.test(Ke))return ve(Ke)[0];if(!it)throw new Error("Must provide a base reference or pass in a patch");return H(void 0,void 0,it,Ke)}return Ke}function Se(Ke){return Ke.newFileName&&Ke.newFileName!==Ke.oldFileName}function Ae(Ke,it,At){return it===At?it:(Ke.conflict=!0,{mine:it,theirs:At})}function Ee(Ke,it){return Ke.oldStart<it.oldStart&&Ke.oldStart+Ke.oldLines<it.oldStart}function xe(Ke,it){return{oldStart:Ke.oldStart,oldLines:Ke.oldLines,newStart:Ke.newStart+it,newLines:Ke.newLines,lines:Ke.lines}}function nt(Ke,it,At,et,ee){var I={offset:it,lines:At,index:0},K={offset:et,lines:ee,index:0};for(tt(Ke,I,K),tt(Ke,K,I);I.index<I.lines.length&&K.index<K.lines.length;){var ue=I.lines[I.index],De=K.lines[K.index];if((ue[0]==="-"||ue[0]==="+")&&(De[0]==="-"||De[0]==="+"))Tt(Ke,I,K);else if(ue[0]==="+"&&De[0]===" "){var He;(He=Ke.lines).push.apply(He,T(F(I)))}else if(De[0]==="+"&&ue[0]===" "){var Fe;(Fe=Ke.lines).push.apply(Fe,T(F(K)))}else ue[0]==="-"&&De[0]===" "?pt(Ke,I,K):De[0]==="-"&&ue[0]===" "?pt(Ke,K,I,!0):ue===De?(Ke.lines.push(ue),I.index++,K.index++):Rt(Ke,F(I),F(K))}U(Ke,I),U(Ke,K),ne(Ke)}function Tt(Ke,it,At){var et=F(it),ee=F(At);if(le(et)&&le(ee)){if(Re(et,ee)&&ke(At,et,et.length-ee.length)){var I;(I=Ke.lines).push.apply(I,T(et));return}else if(Re(ee,et)&&ke(it,ee,ee.length-et.length)){var K;(K=Ke.lines).push.apply(K,T(ee));return}}else if(Te(et,ee)){var ue;(ue=Ke.lines).push.apply(ue,T(et));return}Rt(Ke,et,ee)}function pt(Ke,it,At,et){var ee=F(it),I=Y(At,ee);if(I.merged){var K;(K=Ke.lines).push.apply(K,T(I.merged))}else Rt(Ke,et?I:ee,et?ee:I)}function Rt(Ke,it,At){Ke.conflict=!0,Ke.lines.push({conflict:!0,mine:it,theirs:At})}function tt(Ke,it,At){for(;it.offset<At.offset&&it.index<it.lines.length;){var et=it.lines[it.index++];Ke.lines.push(et),it.offset++}}function U(Ke,it){for(;it.index<it.lines.length;){var At=it.lines[it.index++];Ke.lines.push(At)}}function F(Ke){for(var it=[],At=Ke.lines[Ke.index][0];Ke.index<Ke.lines.length;){var et=Ke.lines[Ke.index];if(At==="-"&&et[0]==="+"&&(At="+"),At===et[0])it.push(et),Ke.index++;else break}return it}function Y(Ke,it){for(var At=[],et=[],ee=0,I=!1,K=!1;ee<it.length&&Ke.index<Ke.lines.length;){var ue=Ke.lines[Ke.index],De=it[ee];if(De[0]==="+")break;if(I=I||ue[0]!==" ",et.push(De),ee++,ue[0]==="+")for(K=!0;ue[0]==="+";)At.push(ue),ue=Ke.lines[++Ke.index];De.substr(1)===ue.substr(1)?(At.push(ue),Ke.index++):K=!0}if((it[ee]||"")[0]==="+"&&I&&(K=!0),K)return At;for(;ee<it.length;)et.push(it[ee++]);return{merged:et,changes:At}}function le(Ke){return Ke.reduce(function(it,At){return it&&At[0]==="-"},!0)}function ke(Ke,it,At){for(var et=0;et<At;et++){var ee=it[it.length-At+et].substr(1);if(Ke.lines[Ke.index+et]!==" "+ee)return!1}return Ke.index+=At,!0}function Ye(Ke){var it=0,At=0;return Ke.forEach(function(et){if(typeof et!="string"){var ee=Ye(et.mine),I=Ye(et.theirs);it!==void 0&&(ee.oldLines===I.oldLines?it+=ee.oldLines:it=void 0),At!==void 0&&(ee.newLines===I.newLines?At+=ee.newLines:At=void 0)}else At!==void 0&&(et[0]==="+"||et[0]===" ")&&At++,it!==void 0&&(et[0]==="-"||et[0]===" ")&&it++}),{oldLines:it,newLines:At}}function ft(Ke){for(var it=[],At,et,ee=0;ee<Ke.length;ee++)At=Ke[ee],At.added?et=1:At.removed?et=-1:et=0,it.push([et,At.value]);return it}function wt(Ke){for(var it=[],At=0;At<Ke.length;At++){var et=Ke[At];et.added?it.push("<ins>"):et.removed&&it.push("<del>"),it.push(Ut(et.value)),et.added?it.push("</ins>"):et.removed&&it.push("</del>")}return it.join("")}function Ut(Ke){var it=Ke;return it=it.replace(/&/g,"&"),it=it.replace(/</g,"<"),it=it.replace(/>/g,">"),it=it.replace(/"/g,"""),it}t.Diff=i,t.diffChars=u,t.diffWords=d,t.diffWordsWithSpace=b,t.diffLines=w,t.diffTrimmedLines=S,t.diffSentences=R,t.diffCss=D,t.diffJson=W,t.diffArrays=fe,t.structuredPatch=H,t.createTwoFilesPatch=V,t.createPatch=Q,t.applyPatch=oe,t.applyPatches=re,t.parsePatch=ve,t.merge=pe,t.convertChangesToDMP=ft,t.convertChangesToXML=wt,t.canonicalize=he,Object.defineProperty(t,"__esModule",{value:!0})})},67537:(J,g,t)=>{"use strict";t.r(g),t.d(g,{cache:()=>wt,css:()=>Ye,cx:()=>U,flush:()=>Rt,getRegisteredStyles:()=>Y,hydrate:()=>tt,injectGlobal:()=>le,keyframes:()=>ke,merge:()=>F,sheet:()=>ft});function i(Ut){if(Ut.sheet)return Ut.sheet;for(var Ke=0;Ke<document.styleSheets.length;Ke++)if(document.styleSheets[Ke].ownerNode===Ut)return document.styleSheets[Ke]}function l(Ut){var Ke=document.createElement("style");return Ke.setAttribute("data-emotion",Ut.key),Ut.nonce!==void 0&&Ke.setAttribute("nonce",Ut.nonce),Ke.appendChild(document.createTextNode("")),Ke}var s=function(){function Ut(it){this.isSpeedy=it.speedy===void 0?!0:it.speedy,this.tags=[],this.ctr=0,this.nonce=it.nonce,this.key=it.key,this.container=it.container,this.before=null}var Ke=Ut.prototype;return Ke.insert=function(At){if(this.ctr%(this.isSpeedy?65e3:1)===0){var et=l(this),ee;this.tags.length===0?ee=this.before:ee=this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(et,ee),this.tags.push(et)}var I=this.tags[this.tags.length-1];if(this.isSpeedy){var K=i(I);try{var ue=At.charCodeAt(1)===105&&At.charCodeAt(0)===64;K.insertRule(At,ue?0:K.cssRules.length)}catch{}}else I.appendChild(document.createTextNode(At));this.ctr++},Ke.flush=function(){this.tags.forEach(function(At){return At.parentNode.removeChild(At)}),this.tags=[],this.ctr=0},Ut}();function m(Ut){function Ke(Qt,Dt,hn,cn,an){for(var Or=0,Ln=0,En=0,Gn=0,rr,sr,pi=0,yi=0,jr,ui=jr=rr=0,bi=0,ri=0,hi=0,Si=0,Kr=hn.length,xi=Kr-1,Ai,Pi="",io="",lo="",Gr="",un;bi<Kr;){if(sr=hn.charCodeAt(bi),bi===xi&&Ln+Gn+En+Or!==0&&(Ln!==0&&(sr=Ln===47?10:47),Gn=En=Or=0,Kr++,xi++),Ln+Gn+En+Or===0){if(bi===xi&&(0<ri&&(Pi=Pi.replace(ze,"")),0<Pi.trim().length)){switch(sr){case 32:case 9:case 59:case 13:case 10:break;default:Pi+=hn.charAt(bi)}sr=59}switch(sr){case 123:for(Pi=Pi.trim(),rr=Pi.charCodeAt(0),jr=1,Si=++bi;bi<Kr;){switch(sr=hn.charCodeAt(bi)){case 123:jr++;break;case 125:jr--;break;case 47:switch(sr=hn.charCodeAt(bi+1)){case 42:case 47:e:{for(ui=bi+1;ui<xi;++ui)switch(hn.charCodeAt(ui)){case 47:if(sr===42&&hn.charCodeAt(ui-1)===42&&bi+2!==ui){bi=ui+1;break e}break;case 10:if(sr===47){bi=ui+1;break e}}bi=ui}}break;case 91:sr++;case 40:sr++;case 34:case 39:for(;bi++<xi&&hn.charCodeAt(bi)!==sr;);}if(jr===0)break;bi++}switch(jr=hn.substring(Si,bi),rr===0&&(rr=(Pi=Pi.replace(Fe,"").trim()).charCodeAt(0)),rr){case 64:switch(0<ri&&(Pi=Pi.replace(ze,"")),sr=Pi.charCodeAt(1),sr){case 100:case 109:case 115:case 45:ri=Dt;break;default:ri=Zt}if(jr=Ke(Dt,ri,jr,sr,an+1),Si=jr.length,0<Zn&&(ri=it(Zt,Pi,hi),un=K(3,jr,ri,Dt,$t,at,Si,sr,an,cn),Pi=ri.join(""),un!==void 0&&(Si=(jr=un.trim()).length)===0&&(sr=0,jr="")),0<Si)switch(sr){case 115:Pi=Pi.replace(z,I);case 100:case 109:case 45:jr=Pi+"{"+jr+"}";break;case 107:Pi=Pi.replace(st,"$1 $2"),jr=Pi+"{"+jr+"}",jr=Ct===1||Ct===2&&ee("@"+jr,3)?"@-webkit-"+jr+"@"+jr:"@"+jr;break;default:jr=Pi+jr,cn===112&&(jr=(io+=jr,""))}else jr="";break;default:jr=Ke(Dt,it(Dt,Pi,hi),jr,cn,an+1)}lo+=jr,jr=hi=ri=ui=rr=0,Pi="",sr=hn.charCodeAt(++bi);break;case 125:case 59:if(Pi=(0<ri?Pi.replace(ze,""):Pi).trim(),1<(Si=Pi.length))switch(ui===0&&(rr=Pi.charCodeAt(0),rr===45||96<rr&&123>rr)&&(Si=(Pi=Pi.replace(" ",":")).length),0<Zn&&(un=K(1,Pi,Dt,Qt,$t,at,io.length,cn,an,cn))!==void 0&&(Si=(Pi=un.trim()).length)===0&&(Pi="\0\0"),rr=Pi.charCodeAt(0),sr=Pi.charCodeAt(1),rr){case 0:break;case 64:if(sr===105||sr===99){Gr+=Pi+hn.charAt(bi);break}default:Pi.charCodeAt(Si-1)!==58&&(io+=et(Pi,rr,sr,Pi.charCodeAt(2)))}hi=ri=ui=rr=0,Pi="",sr=hn.charCodeAt(++bi)}}switch(sr){case 13:case 10:Ln===47?Ln=0:1+rr===0&&cn!==107&&0<Pi.length&&(ri=1,Pi+="\0"),0<Zn*Xe&&K(0,Pi,Dt,Qt,$t,at,io.length,cn,an,cn),at=1,$t++;break;case 59:case 125:if(Ln+Gn+En+Or===0){at++;break}default:switch(at++,Ai=hn.charAt(bi),sr){case 9:case 32:if(Gn+Or+Ln===0)switch(pi){case 44:case 58:case 9:case 32:Ai="";break;default:sr!==32&&(Ai=" ")}break;case 0:Ai="\\0";break;case 12:Ai="\\f";break;case 11:Ai="\\v";break;case 38:Gn+Ln+Or===0&&(ri=hi=1,Ai="\f"+Ai);break;case 108:if(Gn+Ln+Or+On===0&&0<ui)switch(bi-ui){case 2:pi===112&&hn.charCodeAt(bi-3)===58&&(On=pi);case 8:yi===111&&(On=yi)}break;case 58:Gn+Ln+Or===0&&(ui=bi);break;case 44:Ln+En+Gn+Or===0&&(ri=1,Ai+="\r");break;case 34:case 39:Ln===0&&(Gn=Gn===sr?0:Gn===0?sr:Gn);break;case 91:Gn+Ln+En===0&&Or++;break;case 93:Gn+Ln+En===0&&Or--;break;case 41:Gn+Ln+Or===0&&En--;break;case 40:if(Gn+Ln+Or===0){if(rr===0)switch(2*pi+3*yi){case 533:break;default:rr=1}En++}break;case 64:Ln+En+Gn+Or+ui+jr===0&&(jr=1);break;case 42:case 47:if(!(0<Gn+Or+En))switch(Ln){case 0:switch(2*sr+3*hn.charCodeAt(bi+1)){case 235:Ln=47;break;case 220:Si=bi,Ln=42}break;case 42:sr===47&&pi===42&&Si+2!==bi&&(hn.charCodeAt(Si+2)===33&&(io+=hn.substring(Si,bi+1)),Ai="",Ln=0)}}Ln===0&&(Pi+=Ai)}yi=pi,pi=sr,bi++}if(Si=io.length,0<Si){if(ri=Dt,0<Zn&&(un=K(2,io,ri,Qt,$t,at,Si,cn,an,cn),un!==void 0&&(io=un).length===0))return Gr+io+lo;if(io=ri.join(",")+"{"+io+"}",Ct*On!==0){switch(Ct!==2||ee(io,2)||(On=0),On){case 111:io=io.replace(ie,":-moz-$1")+io;break;case 112:io=io.replace(Me,"::-webkit-input-$1")+io.replace(Me,"::-moz-$1")+io.replace(Me,":-ms-input-$1")+io}On=0}}return Gr+io+lo}function it(Qt,Dt,hn){var cn=Dt.trim().split(ct);Dt=cn;var an=cn.length,Or=Qt.length;switch(Or){case 0:case 1:var Ln=0;for(Qt=Or===0?"":Qt[0]+" ";Ln<an;++Ln)Dt[Ln]=At(Qt,Dt[Ln],hn).trim();break;default:var En=Ln=0;for(Dt=[];Ln<an;++Ln)for(var Gn=0;Gn<Or;++Gn)Dt[En++]=At(Qt[Gn]+" ",cn[Ln],hn).trim()}return Dt}function At(Qt,Dt,hn){var cn=Dt.charCodeAt(0);switch(33>cn&&(cn=(Dt=Dt.trim()).charCodeAt(0)),cn){case 38:return Dt.replace(Ge,"$1"+Qt.trim());case 58:return Qt.trim()+Dt.replace(Ge,"$1"+Qt.trim());default:if(0<1*hn&&0<Dt.indexOf("\f"))return Dt.replace(Ge,(Qt.charCodeAt(0)===58?"":"$1")+Qt.trim())}return Qt+Dt}function et(Qt,Dt,hn,cn){var an=Qt+";",Or=2*Dt+3*hn+4*cn;if(Or===944){Qt=an.indexOf(":",9)+1;var Ln=an.substring(Qt,an.length-1).trim();return Ln=an.substring(0,Qt).trim()+Ln+";",Ct===1||Ct===2&&ee(Ln,1)?"-webkit-"+Ln+Ln:Ln}if(Ct===0||Ct===2&&!ee(an,1))return an;switch(Or){case 1015:return an.charCodeAt(10)===97?"-webkit-"+an+an:an;case 951:return an.charCodeAt(3)===116?"-webkit-"+an+an:an;case 963:return an.charCodeAt(5)===110?"-webkit-"+an+an:an;case 1009:if(an.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+an+an;case 978:return"-webkit-"+an+"-moz-"+an+an;case 1019:case 983:return"-webkit-"+an+"-moz-"+an+"-ms-"+an+an;case 883:if(an.charCodeAt(8)===45)return"-webkit-"+an+an;if(0<an.indexOf("image-set(",11))return an.replace(bt,"$1-webkit-$2")+an;break;case 932:if(an.charCodeAt(4)===45)switch(an.charCodeAt(5)){case 103:return"-webkit-box-"+an.replace("-grow","")+"-webkit-"+an+"-ms-"+an.replace("grow","positive")+an;case 115:return"-webkit-"+an+"-ms-"+an.replace("shrink","negative")+an;case 98:return"-webkit-"+an+"-ms-"+an.replace("basis","preferred-size")+an}return"-webkit-"+an+"-ms-"+an+an;case 964:return"-webkit-"+an+"-ms-flex-"+an+an;case 1023:if(an.charCodeAt(8)!==99)break;return Ln=an.substring(an.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+Ln+"-webkit-"+an+"-ms-flex-pack"+Ln+an;case 1005:return We.test(an)?an.replace(qe,":-webkit-")+an.replace(qe,":-moz-")+an:an;case 1e3:switch(Ln=an.substring(13).trim(),Dt=Ln.indexOf("-")+1,Ln.charCodeAt(0)+Ln.charCodeAt(Dt)){case 226:Ln=an.replace(ge,"tb");break;case 232:Ln=an.replace(ge,"tb-rl");break;case 220:Ln=an.replace(ge,"lr");break;default:return an}return"-webkit-"+an+"-ms-"+Ln+an;case 1017:if(an.indexOf("sticky",9)===-1)break;case 975:switch(Dt=(an=Qt).length-10,Ln=(an.charCodeAt(Dt)===33?an.substring(0,Dt):an).substring(Qt.indexOf(":",7)+1).trim(),Or=Ln.charCodeAt(0)+(Ln.charCodeAt(7)|0)){case 203:if(111>Ln.charCodeAt(8))break;case 115:an=an.replace(Ln,"-webkit-"+Ln)+";"+an;break;case 207:case 102:an=an.replace(Ln,"-webkit-"+(102<Or?"inline-":"")+"box")+";"+an.replace(Ln,"-webkit-"+Ln)+";"+an.replace(Ln,"-ms-"+Ln+"box")+";"+an}return an+";";case 938:if(an.charCodeAt(5)===45)switch(an.charCodeAt(6)){case 105:return Ln=an.replace("-items",""),"-webkit-"+an+"-webkit-box-"+Ln+"-ms-flex-"+Ln+an;case 115:return"-webkit-"+an+"-ms-flex-item-"+an.replace(Qe,"")+an;default:return"-webkit-"+an+"-ms-flex-line-pack"+an.replace("align-content","").replace(Qe,"")+an}break;case 973:case 989:if(an.charCodeAt(3)!==45||an.charCodeAt(4)===122)break;case 931:case 953:if(nn.test(Qt)===!0)return(Ln=Qt.substring(Qt.indexOf(":")+1)).charCodeAt(0)===115?et(Qt.replace("stretch","fill-available"),Dt,hn,cn).replace(":fill-available",":stretch"):an.replace(Ln,"-webkit-"+Ln)+an.replace(Ln,"-moz-"+Ln.replace("fill-",""))+an;break;case 962:if(an="-webkit-"+an+(an.charCodeAt(5)===102?"-ms-"+an:"")+an,hn+cn===211&&an.charCodeAt(13)===105&&0<an.indexOf("transform",10))return an.substring(0,an.indexOf(";",27)+1).replace(_t,"$1-webkit-$2")+an}return an}function ee(Qt,Dt){var hn=Qt.indexOf(Dt===1?":":"{"),cn=Qt.substring(0,Dt!==3?hn:10);return hn=Qt.substring(hn+1,Qt.length-1),xt(Dt!==2?cn:cn.replace(Bt,"$1"),hn,Dt)}function I(Qt,Dt){var hn=et(Dt,Dt.charCodeAt(0),Dt.charCodeAt(1),Dt.charCodeAt(2));return hn!==Dt+";"?hn.replace(be," or ($1)").substring(4):"("+Dt+")"}function K(Qt,Dt,hn,cn,an,Or,Ln,En,Gn,rr){for(var sr=0,pi=Dt,yi;sr<Zn;++sr)switch(yi=Wn[sr].call(He,Qt,pi,hn,cn,an,Or,Ln,En,Gn,rr)){case void 0:case!1:case!0:case null:break;default:pi=yi}if(pi!==Dt)return pi}function ue(Qt){switch(Qt){case void 0:case null:Zn=Wn.length=0;break;default:if(typeof Qt=="function")Wn[Zn++]=Qt;else if(typeof Qt=="object")for(var Dt=0,hn=Qt.length;Dt<hn;++Dt)ue(Qt[Dt]);else Xe=!!Qt|0}return ue}function De(Qt){return Qt=Qt.prefix,Qt!==void 0&&(xt=null,Qt?typeof Qt!="function"?Ct=1:(Ct=2,xt=Qt):Ct=0),De}function He(Qt,Dt){var hn=Qt;if(33>hn.charCodeAt(0)&&(hn=hn.trim()),gn=hn,hn=[gn],0<Zn){var cn=K(-1,Dt,hn,hn,$t,at,0,0,0,0);cn!==void 0&&typeof cn=="string"&&(Dt=cn)}var an=Ke(Zt,hn,Dt,0,0);return 0<Zn&&(cn=K(-2,an,hn,hn,$t,at,an.length,0,0,0),cn!==void 0&&(an=cn)),gn="",On=0,at=$t=1,an}var Fe=/^\0+/g,ze=/[\0\r\f]/g,qe=/: */g,We=/zoo|gra/,_t=/([,: ])(transform)/g,ct=/,\r+?/g,Ge=/([\t\r\n ])*\f?&/g,st=/@(k\w+)\s*(\S*)\s*/,Me=/::(place)/g,ie=/:(read-only)/g,ge=/[svh]\w+-[tblr]{2}/,z=/\(\s*(.*)\s*\)/g,be=/([\s\S]*?);/g,Qe=/-self|flex-/g,Bt=/[^]*?(:[rp][el]a[\w-]+)[^]*/,nn=/stretch|:\s*\w+\-(?:conte|avail)/,bt=/([^-])(image-set\()/,at=1,$t=1,On=0,Ct=1,Zt=[],Wn=[],Zn=0,xt=null,Xe=0,gn="";return He.use=ue,He.set=De,Ut!==void 0&&De(Ut),He}const u=m;var f="/*|*/",p=f+"}";function v(Ut){Ut&&h.current.insert(Ut+"}")}var h={current:null},d=function(Ke,it,At,et,ee,I,K,ue,De,He){switch(Ke){case 1:{switch(it.charCodeAt(0)){case 64:return h.current.insert(it+";"),"";case 108:if(it.charCodeAt(2)===98)return""}break}case 2:{if(ue===0)return it+f;break}case 3:switch(ue){case 102:case 112:return h.current.insert(At[0]+it),"";default:return it+(He===0?f:"")}case-2:it.split(p).forEach(v)}},b=function(Ke){Ke===void 0&&(Ke={});var it=Ke.key||"css",At;Ke.prefix!==void 0&&(At={prefix:Ke.prefix});var et=new u(At),ee={},I;{I=Ke.container||document.head;var K=document.querySelectorAll("style[data-emotion-"+it+"]");Array.prototype.forEach.call(K,function(ze){var qe=ze.getAttribute("data-emotion-"+it);qe.split(" ").forEach(function(We){ee[We]=!0}),ze.parentNode!==I&&I.appendChild(ze)})}var ue;if(et.use(Ke.stylisPlugins)(d),ue=function(qe,We,_t,ct){var Ge=We.name;if(h.current=_t,!1)var st;et(qe,We.styles),ct&&(Fe.inserted[Ge]=!0)},!1)var De,He;var Fe={key:it,sheet:new s({key:it,container:I,nonce:Ke.nonce,speedy:Ke.speedy}),nonce:Ke.nonce,inserted:ee,registered:{},insert:ue};return Fe};const y=b;function w(Ut){for(var Ke=0,it,At=0,et=Ut.length;et>=4;++At,et-=4)it=Ut.charCodeAt(At)&255|(Ut.charCodeAt(++At)&255)<<8|(Ut.charCodeAt(++At)&255)<<16|(Ut.charCodeAt(++At)&255)<<24,it=(it&65535)*1540483477+((it>>>16)*59797<<16),it^=it>>>24,Ke=(it&65535)*1540483477+((it>>>16)*59797<<16)^(Ke&65535)*1540483477+((Ke>>>16)*59797<<16);switch(et){case 3:Ke^=(Ut.charCodeAt(At+2)&255)<<16;case 2:Ke^=(Ut.charCodeAt(At+1)&255)<<8;case 1:Ke^=Ut.charCodeAt(At)&255,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16)}return Ke^=Ke>>>13,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16),((Ke^Ke>>>15)>>>0).toString(36)}const S=w;var O={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const R=O;function M(Ut){var Ke={};return function(it){return Ke[it]===void 0&&(Ke[it]=Ut(it)),Ke[it]}}const D=M;var P=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,T="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",A=/[A-Z]|^ms/g,j=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ae=function(Ke){return Ke.charCodeAt(1)===45},_=function(Ke){return Ke!=null&&typeof Ke!="boolean"},N=D(function(Ut){return ae(Ut)?Ut:Ut.replace(A,"-$&").toLowerCase()}),W=function(Ke,it){switch(Ke){case"animation":case"animationName":if(typeof it=="string")return it.replace(j,function(At,et,ee){return Re={name:et,styles:ee,next:Re},et})}return R[Ke]!==1&&!ae(Ke)&&typeof it=="number"&&it!==0?it+"px":it};if(!1)var he,me,fe,ve,ce,oe;var re=!0;function H(Ut,Ke,it,At){if(it==null)return"";if(it.__emotion_styles!==void 0)return it;switch(typeof it){case"boolean":return"";case"object":{if(it.anim===1)return Re={name:it.name,styles:it.styles,next:Re},it.name;if(it.styles!==void 0){var et=it.next;if(et!==void 0)for(;et!==void 0;)Re={name:et.name,styles:et.styles,next:Re},et=et.next;var ee=it.styles+";";return ee}return V(Ut,Ke,it)}case"function":{if(Ut!==void 0){var I=Re,K=it(Ut);return Re=I,H(Ut,Ke,K,At)}break}case"string":if(!1)var ue,De;break}if(Ke==null)return it;var He=Ke[it];return He!==void 0&&!At?He:it}function V(Ut,Ke,it){var At="";if(Array.isArray(it))for(var et=0;et<it.length;et++)At+=H(Ut,Ke,it[et],!1);else for(var ee in it){var I=it[ee];if(typeof I!="object")Ke!=null&&Ke[I]!==void 0?At+=ee+"{"+Ke[I]+"}":_(I)&&(At+=N(ee)+":"+W(ee,I)+";");else if(Array.isArray(I)&&typeof I[0]=="string"&&(Ke==null||Ke[I[0]]===void 0))for(var K=0;K<I.length;K++)_(I[K])&&(At+=N(ee)+":"+W(ee,I[K])+";");else{var ue=H(Ut,Ke,I,!1);switch(ee){case"animation":case"animationName":{At+=N(ee)+":"+ue+";";break}default:At+=ee+"{"+ue+"}"}}}return At}var Q=/label:\s*([^\s;\n{]+)\s*;/g,Te,Re,ne=function(Ke,it,At){if(Ke.length===1&&typeof Ke[0]=="object"&&Ke[0]!==null&&Ke[0].styles!==void 0)return Ke[0];var et=!0,ee="";Re=void 0;var I=Ke[0];I==null||I.raw===void 0?(et=!1,ee+=H(At,it,I,!1)):ee+=I[0];for(var K=1;K<Ke.length;K++)ee+=H(At,it,Ke[K],ee.charCodeAt(ee.length-1)===46),et&&(ee+=I[K]);var ue;Q.lastIndex=0;for(var De="",He;(He=Q.exec(ee))!==null;)De+="-"+He[1];var Fe=S(ee)+De;return{name:Fe,styles:ee,next:Re}},pe=!0;function ye(Ut,Ke,it){var At="";return it.split(" ").forEach(function(et){Ut[et]!==void 0?Ke.push(Ut[et]):At+=et+" "}),At}var Se=function(Ke,it,At){var et=Ke.key+"-"+it.name;if((At===!1||pe===!1&&Ke.compat!==void 0)&&Ke.registered[et]===void 0&&(Ke.registered[et]=it.styles),Ke.inserted[it.name]===void 0){var ee=it;do{var I=Ke.insert("."+et,ee,Ke.sheet,!0);ee=ee.next}while(ee!==void 0)}};function Ae(Ut,Ke){if(Ut.inserted[Ke.name]===void 0)return Ut.insert("",Ke,Ut.sheet,!0)}function Ee(Ut,Ke,it){var At=[],et=ye(Ut,At,it);return At.length<2?it:et+Ke(At)}var xe=function(Ke){var it=y(Ke);it.sheet.speedy=function(K){this.isSpeedy=K},it.compat=!0;var At=function(){for(var ue=arguments.length,De=new Array(ue),He=0;He<ue;He++)De[He]=arguments[He];var Fe=ne(De,it.registered,void 0);return Se(it,Fe,!1),it.key+"-"+Fe.name},et=function(){for(var ue=arguments.length,De=new Array(ue),He=0;He<ue;He++)De[He]=arguments[He];var Fe=ne(De,it.registered),ze="animation-"+Fe.name;return Ae(it,{name:Fe.name,styles:"@keyframes "+ze+"{"+Fe.styles+"}"}),ze},ee=function(){for(var ue=arguments.length,De=new Array(ue),He=0;He<ue;He++)De[He]=arguments[He];var Fe=ne(De,it.registered);Ae(it,Fe)},I=function(){for(var ue=arguments.length,De=new Array(ue),He=0;He<ue;He++)De[He]=arguments[He];return Ee(it.registered,At,nt(De))};return{css:At,cx:I,injectGlobal:ee,keyframes:et,hydrate:function(ue){ue.forEach(function(De){it.inserted[De]=!0})},flush:function(){it.registered={},it.inserted={},it.sheet.flush()},sheet:it.sheet,cache:it,getRegisteredStyles:ye.bind(null,it.registered),merge:Ee.bind(null,it.registered,At)}},nt=function Ut(Ke){for(var it="",At=0;At<Ke.length;At++){var et=Ke[At];if(et!=null){var ee=void 0;switch(typeof et){case"boolean":break;case"object":{if(Array.isArray(et))ee=Ut(et);else{ee="";for(var I in et)et[I]&&I&&(ee&&(ee+=" "),ee+=I)}break}default:ee=et}ee&&(it&&(it+=" "),it+=ee)}}return it},pt=xe(),Rt=pt.flush,tt=pt.hydrate,U=pt.cx,F=pt.merge,Y=pt.getRegisteredStyles,le=pt.injectGlobal,ke=pt.keyframes,Ye=pt.css,ft=pt.sheet,wt=pt.cache},3611:(J,g,t)=>{"use strict";t.r(g),t.d(g,{default:()=>u});var i=Number.isNaN||function(p){return typeof p=="number"&&p!==p};function l(f,p){return!!(f===p||i(f)&&i(p))}function s(f,p){if(f.length!==p.length)return!1;for(var v=0;v<f.length;v++)if(!l(f[v],p[v]))return!1;return!0}function m(f,p){p===void 0&&(p=s);var v,h=[],d,b=!1;function y(){for(var w=[],S=0;S<arguments.length;S++)w[S]=arguments[S];return b&&v===this&&p(w,h)||(d=f.apply(this,w),b=!0,v=this,h=w),d}return y}const u=m},17633:(J,g,t)=>{"use strict";/** * @license React * react-dom-server-legacy.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=t(96540);function l(St){for(var ln="https://reactjs.org/docs/error-decoder.html?invariant="+St,An=1;An<arguments.length;An++)ln+="&args[]="+encodeURIComponent(arguments[An]);return"Minified React error #"+St+"; visit "+ln+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},f={};function p(St){return s.call(f,St)?!0:s.call(u,St)?!1:m.test(St)?f[St]=!0:(u[St]=!0,!1)}function v(St,ln,An,Cr,_i,Sn,ir){this.acceptsBooleans=ln===2||ln===3||ln===4,this.attributeName=Cr,this.attributeNamespace=_i,this.mustUseProperty=An,this.propertyName=St,this.type=ln,this.sanitizeURL=Sn,this.removeEmptyString=ir}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(St){h[St]=new v(St,0,!1,St,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(St){var ln=St[0];h[ln]=new v(ln,1,!1,St[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(St){h[St]=new v(St,2,!1,St.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(St){h[St]=new v(St,2,!1,St,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(St){h[St]=new v(St,3,!1,St.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(St){h[St]=new v(St,3,!0,St,null,!1,!1)}),["capture","download"].forEach(function(St){h[St]=new v(St,4,!1,St,null,!1,!1)}),["cols","rows","size","span"].forEach(function(St){h[St]=new v(St,6,!1,St,null,!1,!1)}),["rowSpan","start"].forEach(function(St){h[St]=new v(St,5,!1,St.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function b(St){return St[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(St){var ln=St.replace(d,b);h[ln]=new v(ln,1,!1,St,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(St){var ln=St.replace(d,b);h[ln]=new v(ln,1,!1,St,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(St){var ln=St.replace(d,b);h[ln]=new v(ln,1,!1,St,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(St){h[St]=new v(St,1,!1,St.toLowerCase(),null,!1,!1)}),h.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(St){h[St]=new v(St,1,!1,St.toLowerCase(),null,!0,!0)});var y={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w=["Webkit","ms","Moz","O"];Object.keys(y).forEach(function(St){w.forEach(function(ln){ln=ln+St.charAt(0).toUpperCase()+St.substring(1),y[ln]=y[St]})});var S=/["'&<>]/;function O(St){if(typeof St=="boolean"||typeof St=="number")return""+St;St=""+St;var ln=S.exec(St);if(ln){var An="",Cr,_i=0;for(Cr=ln.index;Cr<St.length;Cr++){switch(St.charCodeAt(Cr)){case 34:ln=""";break;case 38:ln="&";break;case 39:ln="'";break;case 60:ln="<";break;case 62:ln=">";break;default:continue}_i!==Cr&&(An+=St.substring(_i,Cr)),_i=Cr+1,An+=ln}St=_i!==Cr?An+St.substring(_i,Cr):An}return St}var R=/([A-Z])/g,M=/^ms-/,D=Array.isArray;function P(St,ln){return{insertionMode:St,selectedValue:ln}}function T(St,ln,An){switch(ln){case"select":return P(1,An.value!=null?An.value:An.defaultValue);case"svg":return P(2,null);case"math":return P(3,null);case"foreignObject":return P(1,null);case"table":return P(4,null);case"thead":case"tbody":case"tfoot":return P(5,null);case"colgroup":return P(7,null);case"tr":return P(6,null)}return 4<=St.insertionMode||St.insertionMode===0?P(1,null):St}var A=new Map;function j(St,ln,An){if(typeof An!="object")throw Error(l(62));ln=!0;for(var Cr in An)if(s.call(An,Cr)){var _i=An[Cr];if(_i!=null&&typeof _i!="boolean"&&_i!==""){if(Cr.indexOf("--")===0){var Sn=O(Cr);_i=O((""+_i).trim())}else{Sn=Cr;var ir=A.get(Sn);ir!==void 0||(ir=O(Sn.replace(R,"-$1").toLowerCase().replace(M,"-ms-")),A.set(Sn,ir)),Sn=ir,_i=typeof _i=="number"?_i===0||s.call(y,Cr)?""+_i:_i+"px":O((""+_i).trim())}ln?(ln=!1,St.push(' style="',Sn,":",_i)):St.push(";",Sn,":",_i)}}ln||St.push('"')}function ae(St,ln,An,Cr){switch(An){case"style":j(St,ln,Cr);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<An.length)||An[0]!=="o"&&An[0]!=="O"||An[1]!=="n"&&An[1]!=="N"){if(ln=h.hasOwnProperty(An)?h[An]:null,ln!==null){switch(typeof Cr){case"function":case"symbol":return;case"boolean":if(!ln.acceptsBooleans)return}switch(An=ln.attributeName,ln.type){case 3:Cr&&St.push(" ",An,'=""');break;case 4:Cr===!0?St.push(" ",An,'=""'):Cr!==!1&&St.push(" ",An,'="',O(Cr),'"');break;case 5:isNaN(Cr)||St.push(" ",An,'="',O(Cr),'"');break;case 6:!isNaN(Cr)&&1<=Cr&&St.push(" ",An,'="',O(Cr),'"');break;default:ln.sanitizeURL&&(Cr=""+Cr),St.push(" ",An,'="',O(Cr),'"')}}else if(p(An)){switch(typeof Cr){case"function":case"symbol":return;case"boolean":if(ln=An.toLowerCase().slice(0,5),ln!=="data-"&&ln!=="aria-")return}St.push(" ",An,'="',O(Cr),'"')}}}function _(St,ln,An){if(ln!=null){if(An!=null)throw Error(l(60));if(typeof ln!="object"||!("__html"in ln))throw Error(l(61));ln=ln.__html,ln!=null&&St.push(""+ln)}}function N(St){var ln="";return i.Children.forEach(St,function(An){An!=null&&(ln+=An)}),ln}function W(St,ln,An,Cr){St.push(fe(An));var _i=An=null,Sn;for(Sn in ln)if(s.call(ln,Sn)){var ir=ln[Sn];if(ir!=null)switch(Sn){case"children":An=ir;break;case"dangerouslySetInnerHTML":_i=ir;break;default:ae(St,Cr,Sn,ir)}}return St.push(">"),_(St,_i,An),typeof An=="string"?(St.push(O(An)),null):An}var he=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,me=new Map;function fe(St){var ln=me.get(St);if(ln===void 0){if(!he.test(St))throw Error(l(65,St));ln="<"+St,me.set(St,ln)}return ln}function ve(St,ln,An,Cr,_i){switch(ln){case"select":St.push(fe("select"));var Sn=null,ir=null;for(tn in An)if(s.call(An,tn)){var mt=An[tn];if(mt!=null)switch(tn){case"children":Sn=mt;break;case"dangerouslySetInnerHTML":ir=mt;break;case"defaultValue":case"value":break;default:ae(St,Cr,tn,mt)}}return St.push(">"),_(St,ir,Sn),Sn;case"option":ir=_i.selectedValue,St.push(fe("option"));var fn=mt=null,gt=null,tn=null;for(Sn in An)if(s.call(An,Sn)){var Vn=An[Sn];if(Vn!=null)switch(Sn){case"children":mt=Vn;break;case"selected":gt=Vn;break;case"dangerouslySetInnerHTML":tn=Vn;break;case"value":fn=Vn;default:ae(St,Cr,Sn,Vn)}}if(ir!=null)if(An=fn!==null?""+fn:N(mt),D(ir)){for(Cr=0;Cr<ir.length;Cr++)if(""+ir[Cr]===An){St.push(' selected=""');break}}else""+ir===An&&St.push(' selected=""');else gt&&St.push(' selected=""');return St.push(">"),_(St,tn,mt),mt;case"textarea":St.push(fe("textarea")),tn=ir=Sn=null;for(mt in An)if(s.call(An,mt)&&(fn=An[mt],fn!=null))switch(mt){case"children":tn=fn;break;case"value":Sn=fn;break;case"defaultValue":ir=fn;break;case"dangerouslySetInnerHTML":throw Error(l(91));default:ae(St,Cr,mt,fn)}if(Sn===null&&ir!==null&&(Sn=ir),St.push(">"),tn!=null){if(Sn!=null)throw Error(l(92));if(D(tn)&&1<tn.length)throw Error(l(93));Sn=""+tn}return typeof Sn=="string"&&Sn[0]===` `&&St.push(` `),Sn!==null&&St.push(O(""+Sn)),null;case"input":St.push(fe("input")),fn=tn=mt=Sn=null;for(ir in An)if(s.call(An,ir)&&(gt=An[ir],gt!=null))switch(ir){case"children":case"dangerouslySetInnerHTML":throw Error(l(399,"input"));case"defaultChecked":fn=gt;break;case"defaultValue":mt=gt;break;case"checked":tn=gt;break;case"value":Sn=gt;break;default:ae(St,Cr,ir,gt)}return tn!==null?ae(St,Cr,"checked",tn):fn!==null&&ae(St,Cr,"checked",fn),Sn!==null?ae(St,Cr,"value",Sn):mt!==null&&ae(St,Cr,"value",mt),St.push("/>"),null;case"menuitem":St.push(fe("menuitem"));for(var Ur in An)if(s.call(An,Ur)&&(Sn=An[Ur],Sn!=null))switch(Ur){case"children":case"dangerouslySetInnerHTML":throw Error(l(400));default:ae(St,Cr,Ur,Sn)}return St.push(">"),null;case"title":St.push(fe("title")),Sn=null;for(Vn in An)if(s.call(An,Vn)&&(ir=An[Vn],ir!=null))switch(Vn){case"children":Sn=ir;break;case"dangerouslySetInnerHTML":throw Error(l(434));default:ae(St,Cr,Vn,ir)}return St.push(">"),Sn;case"listing":case"pre":St.push(fe(ln)),ir=Sn=null;for(fn in An)if(s.call(An,fn)&&(mt=An[fn],mt!=null))switch(fn){case"children":Sn=mt;break;case"dangerouslySetInnerHTML":ir=mt;break;default:ae(St,Cr,fn,mt)}if(St.push(">"),ir!=null){if(Sn!=null)throw Error(l(60));if(typeof ir!="object"||!("__html"in ir))throw Error(l(61));An=ir.__html,An!=null&&(typeof An=="string"&&0<An.length&&An[0]===` `?St.push(` `,An):St.push(""+An))}return typeof Sn=="string"&&Sn[0]===` `&&St.push(` `),Sn;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":St.push(fe(ln));for(var $r in An)if(s.call(An,$r)&&(Sn=An[$r],Sn!=null))switch($r){case"children":case"dangerouslySetInnerHTML":throw Error(l(399,ln));default:ae(St,Cr,$r,Sn)}return St.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return W(St,An,ln,Cr);case"html":return _i.insertionMode===0&&St.push("<!DOCTYPE html>"),W(St,An,ln,Cr);default:if(ln.indexOf("-")===-1&&typeof An.is!="string")return W(St,An,ln,Cr);St.push(fe(ln)),ir=Sn=null;for(gt in An)if(s.call(An,gt)&&(mt=An[gt],mt!=null))switch(gt){case"children":Sn=mt;break;case"dangerouslySetInnerHTML":ir=mt;break;case"style":j(St,Cr,mt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:p(gt)&&typeof mt!="function"&&typeof mt!="symbol"&&St.push(" ",gt,'="',O(mt),'"')}return St.push(">"),_(St,ir,Sn),Sn}}function ce(St,ln,An){if(St.push('<!--$?--><template id="'),An===null)throw Error(l(395));return St.push(An),St.push('"></template>')}function oe(St,ln,An,Cr){switch(An.insertionMode){case 0:case 1:return St.push('<div hidden id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');case 2:return St.push('<svg aria-hidden="true" style="display:none" id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');case 3:return St.push('<math aria-hidden="true" style="display:none" id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');case 4:return St.push('<table hidden id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');case 5:return St.push('<table hidden><tbody id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');case 6:return St.push('<table hidden><tr id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');case 7:return St.push('<table hidden><colgroup id="'),St.push(ln.segmentPrefix),ln=Cr.toString(16),St.push(ln),St.push('">');default:throw Error(l(397))}}function re(St,ln){switch(ln.insertionMode){case 0:case 1:return St.push("</div>");case 2:return St.push("</svg>");case 3:return St.push("</math>");case 4:return St.push("</table>");case 5:return St.push("</tbody></table>");case 6:return St.push("</tr></table>");case 7:return St.push("</colgroup></table>");default:throw Error(l(397))}}var H=/[<\u2028\u2029]/g;function V(St){return JSON.stringify(St).replace(H,function(ln){switch(ln){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Q(St,ln){return ln=ln===void 0?"":ln,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:ln+"P:",segmentPrefix:ln+"S:",boundaryPrefix:ln+"B:",idPrefix:ln,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:St}}function Te(St,ln,An,Cr){return An.generateStaticMarkup?(St.push(O(ln)),!1):(ln===""?St=Cr:(Cr&&St.push("<!-- -->"),St.push(O(ln)),St=!0),St)}var Re=Object.assign,ne=Symbol.for("react.element"),pe=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),Se=Symbol.for("react.strict_mode"),Ae=Symbol.for("react.profiler"),Ee=Symbol.for("react.provider"),xe=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),Tt=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),Rt=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),U=Symbol.for("react.scope"),F=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),le=Symbol.for("react.default_value"),ke=Symbol.iterator;function Ye(St){if(St==null)return null;if(typeof St=="function")return St.displayName||St.name||null;if(typeof St=="string")return St;switch(St){case ye:return"Fragment";case pe:return"Portal";case Ae:return"Profiler";case Se:return"StrictMode";case Tt:return"Suspense";case pt:return"SuspenseList"}if(typeof St=="object")switch(St.$$typeof){case xe:return(St.displayName||"Context")+".Consumer";case Ee:return(St._context.displayName||"Context")+".Provider";case nt:var ln=St.render;return St=St.displayName,St||(St=ln.displayName||ln.name||"",St=St!==""?"ForwardRef("+St+")":"ForwardRef"),St;case Rt:return ln=St.displayName||null,ln!==null?ln:Ye(St.type)||"Memo";case tt:ln=St._payload,St=St._init;try{return Ye(St(ln))}catch{}}return null}var ft={};function wt(St,ln){if(St=St.contextTypes,!St)return ft;var An={},Cr;for(Cr in St)An[Cr]=ln[Cr];return An}var Ut=null;function Ke(St,ln){if(St!==ln){St.context._currentValue2=St.parentValue,St=St.parent;var An=ln.parent;if(St===null){if(An!==null)throw Error(l(401))}else{if(An===null)throw Error(l(401));Ke(St,An)}ln.context._currentValue2=ln.value}}function it(St){St.context._currentValue2=St.parentValue,St=St.parent,St!==null&&it(St)}function At(St){var ln=St.parent;ln!==null&&At(ln),St.context._currentValue2=St.value}function et(St,ln){if(St.context._currentValue2=St.parentValue,St=St.parent,St===null)throw Error(l(402));St.depth===ln.depth?Ke(St,ln):et(St,ln)}function ee(St,ln){var An=ln.parent;if(An===null)throw Error(l(402));St.depth===An.depth?Ke(St,An):ee(St,An),ln.context._currentValue2=ln.value}function I(St){var ln=Ut;ln!==St&&(ln===null?At(St):St===null?it(ln):ln.depth===St.depth?Ke(ln,St):ln.depth>St.depth?et(ln,St):ee(ln,St),Ut=St)}var K={isMounted:function(){return!1},enqueueSetState:function(St,ln){St=St._reactInternals,St.queue!==null&&St.queue.push(ln)},enqueueReplaceState:function(St,ln){St=St._reactInternals,St.replace=!0,St.queue=[ln]},enqueueForceUpdate:function(){}};function ue(St,ln,An,Cr){var _i=St.state!==void 0?St.state:null;St.updater=K,St.props=An,St.state=_i;var Sn={queue:[],replace:!1};St._reactInternals=Sn;var ir=ln.contextType;if(St.context=typeof ir=="object"&&ir!==null?ir._currentValue2:Cr,ir=ln.getDerivedStateFromProps,typeof ir=="function"&&(ir=ir(An,_i),_i=ir==null?_i:Re({},_i,ir),St.state=_i),typeof ln.getDerivedStateFromProps!="function"&&typeof St.getSnapshotBeforeUpdate!="function"&&(typeof St.UNSAFE_componentWillMount=="function"||typeof St.componentWillMount=="function"))if(ln=St.state,typeof St.componentWillMount=="function"&&St.componentWillMount(),typeof St.UNSAFE_componentWillMount=="function"&&St.UNSAFE_componentWillMount(),ln!==St.state&&K.enqueueReplaceState(St,St.state,null),Sn.queue!==null&&0<Sn.queue.length)if(ln=Sn.queue,ir=Sn.replace,Sn.queue=null,Sn.replace=!1,ir&&ln.length===1)St.state=ln[0];else{for(Sn=ir?ln[0]:St.state,_i=!0,ir=ir?1:0;ir<ln.length;ir++){var mt=ln[ir];mt=typeof mt=="function"?mt.call(St,Sn,An,Cr):mt,mt!=null&&(_i?(_i=!1,Sn=Re({},Sn,mt)):Re(Sn,mt))}St.state=Sn}else Sn.queue=null}var De={id:1,overflow:""};function He(St,ln,An){var Cr=St.id;St=St.overflow;var _i=32-Fe(Cr)-1;Cr&=~(1<<_i),An+=1;var Sn=32-Fe(ln)+_i;if(30<Sn){var ir=_i-_i%5;return Sn=(Cr&(1<<ir)-1).toString(32),Cr>>=ir,_i-=ir,{id:1<<32-Fe(ln)+_i|An<<_i|Cr,overflow:Sn+St}}return{id:1<<Sn|An<<_i|Cr,overflow:St}}var Fe=Math.clz32?Math.clz32:We,ze=Math.log,qe=Math.LN2;function We(St){return St>>>=0,St===0?32:31-(ze(St)/qe|0)|0}function _t(St,ln){return St===ln&&(St!==0||1/St===1/ln)||St!==St&&ln!==ln}var ct=typeof Object.is=="function"?Object.is:_t,Ge=null,st=null,Me=null,ie=null,ge=!1,z=!1,be=0,Qe=null,Bt=0;function nn(){if(Ge===null)throw Error(l(321));return Ge}function bt(){if(0<Bt)throw Error(l(312));return{memoizedState:null,queue:null,next:null}}function at(){return ie===null?Me===null?(ge=!1,Me=ie=bt()):(ge=!0,ie=Me):ie.next===null?(ge=!1,ie=ie.next=bt()):(ge=!0,ie=ie.next),ie}function $t(){st=Ge=null,z=!1,Me=null,Bt=0,ie=Qe=null}function On(St,ln){return typeof ln=="function"?ln(St):ln}function Ct(St,ln,An){if(Ge=nn(),ie=at(),ge){var Cr=ie.queue;if(ln=Cr.dispatch,Qe!==null&&(An=Qe.get(Cr),An!==void 0)){Qe.delete(Cr),Cr=ie.memoizedState;do Cr=St(Cr,An.action),An=An.next;while(An!==null);return ie.memoizedState=Cr,[Cr,ln]}return[ie.memoizedState,ln]}return St=St===On?typeof ln=="function"?ln():ln:An!==void 0?An(ln):ln,ie.memoizedState=St,St=ie.queue={last:null,dispatch:null},St=St.dispatch=Wn.bind(null,Ge,St),[ie.memoizedState,St]}function Zt(St,ln){if(Ge=nn(),ie=at(),ln=ln===void 0?null:ln,ie!==null){var An=ie.memoizedState;if(An!==null&&ln!==null){var Cr=An[1];e:if(Cr===null)Cr=!1;else{for(var _i=0;_i<Cr.length&&_i<ln.length;_i++)if(!ct(ln[_i],Cr[_i])){Cr=!1;break e}Cr=!0}if(Cr)return An[0]}}return St=St(),ie.memoizedState=[St,ln],St}function Wn(St,ln,An){if(25<=Bt)throw Error(l(301));if(St===Ge)if(z=!0,St={action:An,next:null},Qe===null&&(Qe=new Map),An=Qe.get(ln),An===void 0)Qe.set(ln,St);else{for(ln=An;ln.next!==null;)ln=ln.next;ln.next=St}}function Zn(){throw Error(l(394))}function xt(){}var Xe={readContext:function(St){return St._currentValue2},useContext:function(St){return nn(),St._currentValue2},useMemo:Zt,useReducer:Ct,useRef:function(St){Ge=nn(),ie=at();var ln=ie.memoizedState;return ln===null?(St={current:St},ie.memoizedState=St):ln},useState:function(St){return Ct(On,St)},useInsertionEffect:xt,useLayoutEffect:function(){},useCallback:function(St,ln){return Zt(function(){return St},ln)},useImperativeHandle:xt,useEffect:xt,useDebugValue:xt,useDeferredValue:function(St){return nn(),St},useTransition:function(){return nn(),[!1,Zn]},useId:function(){var St=st.treeContext,ln=St.overflow;St=St.id,St=(St&~(1<<32-Fe(St)-1)).toString(32)+ln;var An=gn;if(An===null)throw Error(l(404));return ln=be++,St=":"+An.idPrefix+"R"+St,0<ln&&(St+="H"+ln.toString(32)),St+":"},useMutableSource:function(St,ln){return nn(),ln(St._source)},useSyncExternalStore:function(St,ln,An){if(An===void 0)throw Error(l(407));return An()}},gn=null,Qt=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Dt(St){return console.error(St),null}function hn(){}function cn(St,ln,An,Cr,_i,Sn,ir,mt,fn){var gt=[],tn=new Set;return ln={destination:null,responseState:ln,progressiveChunkSize:Cr===void 0?12800:Cr,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:tn,pingedTasks:gt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:_i===void 0?Dt:_i,onAllReady:Sn===void 0?hn:Sn,onShellReady:ir===void 0?hn:ir,onShellError:mt===void 0?hn:mt,onFatalError:fn===void 0?hn:fn},An=Or(ln,0,null,An,!1,!1),An.parentFlushed=!0,St=an(ln,St,null,An,tn,ft,null,De),gt.push(St),ln}function an(St,ln,An,Cr,_i,Sn,ir,mt){St.allPendingTasks++,An===null?St.pendingRootTasks++:An.pendingTasks++;var fn={node:ln,ping:function(){var gt=St.pingedTasks;gt.push(fn),gt.length===1&&Kr(St)},blockedBoundary:An,blockedSegment:Cr,abortSet:_i,legacyContext:Sn,context:ir,treeContext:mt};return _i.add(fn),fn}function Or(St,ln,An,Cr,_i,Sn){return{status:0,id:-1,index:ln,parentFlushed:!1,chunks:[],children:[],formatContext:Cr,boundary:An,lastPushedText:_i,textEmbedded:Sn}}function Ln(St,ln){if(St=St.onError(ln),St!=null&&typeof St!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof St+'" instead');return St}function En(St,ln){var An=St.onShellError;An(ln),An=St.onFatalError,An(ln),St.destination!==null?(St.status=2,St.destination.destroy(ln)):(St.status=1,St.fatalError=ln)}function Gn(St,ln,An,Cr,_i){for(Ge={},st=ln,be=0,St=An(Cr,_i);z;)z=!1,be=0,Bt+=1,ie=null,St=An(Cr,_i);return $t(),St}function rr(St,ln,An,Cr){var _i=An.render(),Sn=Cr.childContextTypes;if(Sn!=null){var ir=ln.legacyContext;if(typeof An.getChildContext!="function")Cr=ir;else{An=An.getChildContext();for(var mt in An)if(!(mt in Sn))throw Error(l(108,Ye(Cr)||"Unknown",mt));Cr=Re({},ir,An)}ln.legacyContext=Cr,yi(St,ln,_i),ln.legacyContext=ir}else yi(St,ln,_i)}function sr(St,ln){if(St&&St.defaultProps){ln=Re({},ln),St=St.defaultProps;for(var An in St)ln[An]===void 0&&(ln[An]=St[An]);return ln}return ln}function pi(St,ln,An,Cr,_i){if(typeof An=="function")if(An.prototype&&An.prototype.isReactComponent){_i=wt(An,ln.legacyContext);var Sn=An.contextType;Sn=new An(Cr,typeof Sn=="object"&&Sn!==null?Sn._currentValue2:_i),ue(Sn,An,Cr,_i),rr(St,ln,Sn,An)}else{Sn=wt(An,ln.legacyContext),_i=Gn(St,ln,An,Cr,Sn);var ir=be!==0;if(typeof _i=="object"&&_i!==null&&typeof _i.render=="function"&&_i.$$typeof===void 0)ue(_i,An,Cr,Sn),rr(St,ln,_i,An);else if(ir){Cr=ln.treeContext,ln.treeContext=He(Cr,1,0);try{yi(St,ln,_i)}finally{ln.treeContext=Cr}}else yi(St,ln,_i)}else if(typeof An=="string"){switch(_i=ln.blockedSegment,Sn=ve(_i.chunks,An,Cr,St.responseState,_i.formatContext),_i.lastPushedText=!1,ir=_i.formatContext,_i.formatContext=T(ir,An,Cr),ui(St,ln,Sn),_i.formatContext=ir,An){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:_i.chunks.push("</",An,">")}_i.lastPushedText=!1}else{switch(An){case Y:case F:case Se:case Ae:case ye:yi(St,ln,Cr.children);return;case pt:yi(St,ln,Cr.children);return;case U:throw Error(l(343));case Tt:e:{An=ln.blockedBoundary,_i=ln.blockedSegment,Sn=Cr.fallback,Cr=Cr.children,ir=new Set;var mt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ir,errorDigest:null},fn=Or(St,_i.chunks.length,mt,_i.formatContext,!1,!1);_i.children.push(fn),_i.lastPushedText=!1;var gt=Or(St,0,null,_i.formatContext,!1,!1);gt.parentFlushed=!0,ln.blockedBoundary=mt,ln.blockedSegment=gt;try{if(ui(St,ln,Cr),St.responseState.generateStaticMarkup||gt.lastPushedText&>.textEmbedded&>.chunks.push("<!-- -->"),gt.status=1,hi(mt,gt),mt.pendingTasks===0)break e}catch(tn){gt.status=4,mt.forceClientRender=!0,mt.errorDigest=Ln(St,tn)}finally{ln.blockedBoundary=An,ln.blockedSegment=_i}ln=an(St,Sn,An,fn,ir,ln.legacyContext,ln.context,ln.treeContext),St.pingedTasks.push(ln)}return}if(typeof An=="object"&&An!==null)switch(An.$$typeof){case nt:if(Cr=Gn(St,ln,An.render,Cr,_i),be!==0){An=ln.treeContext,ln.treeContext=He(An,1,0);try{yi(St,ln,Cr)}finally{ln.treeContext=An}}else yi(St,ln,Cr);return;case Rt:An=An.type,Cr=sr(An,Cr),pi(St,ln,An,Cr,_i);return;case Ee:if(_i=Cr.children,An=An._context,Cr=Cr.value,Sn=An._currentValue2,An._currentValue2=Cr,ir=Ut,Ut=Cr={parent:ir,depth:ir===null?0:ir.depth+1,context:An,parentValue:Sn,value:Cr},ln.context=Cr,yi(St,ln,_i),St=Ut,St===null)throw Error(l(403));Cr=St.parentValue,St.context._currentValue2=Cr===le?St.context._defaultValue:Cr,St=Ut=St.parent,ln.context=St;return;case xe:Cr=Cr.children,Cr=Cr(An._currentValue2),yi(St,ln,Cr);return;case tt:_i=An._init,An=_i(An._payload),Cr=sr(An,Cr),pi(St,ln,An,Cr,void 0);return}throw Error(l(130,An==null?An:typeof An,""))}}function yi(St,ln,An){if(ln.node=An,typeof An=="object"&&An!==null){switch(An.$$typeof){case ne:pi(St,ln,An.type,An.props,An.ref);return;case pe:throw Error(l(257));case tt:var Cr=An._init;An=Cr(An._payload),yi(St,ln,An);return}if(D(An)){jr(St,ln,An);return}if(An===null||typeof An!="object"?Cr=null:(Cr=ke&&An[ke]||An["@@iterator"],Cr=typeof Cr=="function"?Cr:null),Cr&&(Cr=Cr.call(An))){if(An=Cr.next(),!An.done){var _i=[];do _i.push(An.value),An=Cr.next();while(!An.done);jr(St,ln,_i)}return}throw St=Object.prototype.toString.call(An),Error(l(31,St==="[object Object]"?"object with keys {"+Object.keys(An).join(", ")+"}":St))}typeof An=="string"?(Cr=ln.blockedSegment,Cr.lastPushedText=Te(ln.blockedSegment.chunks,An,St.responseState,Cr.lastPushedText)):typeof An=="number"&&(Cr=ln.blockedSegment,Cr.lastPushedText=Te(ln.blockedSegment.chunks,""+An,St.responseState,Cr.lastPushedText))}function jr(St,ln,An){for(var Cr=An.length,_i=0;_i<Cr;_i++){var Sn=ln.treeContext;ln.treeContext=He(Sn,Cr,_i);try{ui(St,ln,An[_i])}finally{ln.treeContext=Sn}}}function ui(St,ln,An){var Cr=ln.blockedSegment.formatContext,_i=ln.legacyContext,Sn=ln.context;try{return yi(St,ln,An)}catch(fn){if($t(),typeof fn=="object"&&fn!==null&&typeof fn.then=="function"){An=fn;var ir=ln.blockedSegment,mt=Or(St,ir.chunks.length,null,ir.formatContext,ir.lastPushedText,!0);ir.children.push(mt),ir.lastPushedText=!1,St=an(St,ln.node,ln.blockedBoundary,mt,ln.abortSet,ln.legacyContext,ln.context,ln.treeContext).ping,An.then(St,St),ln.blockedSegment.formatContext=Cr,ln.legacyContext=_i,ln.context=Sn,I(Sn)}else throw ln.blockedSegment.formatContext=Cr,ln.legacyContext=_i,ln.context=Sn,I(Sn),fn}}function bi(St){var ln=St.blockedBoundary;St=St.blockedSegment,St.status=3,Si(this,ln,St)}function ri(St,ln,An){var Cr=St.blockedBoundary;St.blockedSegment.status=3,Cr===null?(ln.allPendingTasks--,ln.status!==2&&(ln.status=2,ln.destination!==null&&ln.destination.push(null))):(Cr.pendingTasks--,Cr.forceClientRender||(Cr.forceClientRender=!0,St=An===void 0?Error(l(432)):An,Cr.errorDigest=ln.onError(St),Cr.parentFlushed&&ln.clientRenderedBoundaries.push(Cr)),Cr.fallbackAbortableTasks.forEach(function(_i){return ri(_i,ln,An)}),Cr.fallbackAbortableTasks.clear(),ln.allPendingTasks--,ln.allPendingTasks===0&&(Cr=ln.onAllReady,Cr()))}function hi(St,ln){if(ln.chunks.length===0&&ln.children.length===1&&ln.children[0].boundary===null){var An=ln.children[0];An.id=ln.id,An.parentFlushed=!0,An.status===1&&hi(St,An)}else St.completedSegments.push(ln)}function Si(St,ln,An){if(ln===null){if(An.parentFlushed){if(St.completedRootSegment!==null)throw Error(l(389));St.completedRootSegment=An}St.pendingRootTasks--,St.pendingRootTasks===0&&(St.onShellError=hn,ln=St.onShellReady,ln())}else ln.pendingTasks--,ln.forceClientRender||(ln.pendingTasks===0?(An.parentFlushed&&An.status===1&&hi(ln,An),ln.parentFlushed&&St.completedBoundaries.push(ln),ln.fallbackAbortableTasks.forEach(bi,St),ln.fallbackAbortableTasks.clear()):An.parentFlushed&&An.status===1&&(hi(ln,An),ln.completedSegments.length===1&&ln.parentFlushed&&St.partialBoundaries.push(ln)));St.allPendingTasks--,St.allPendingTasks===0&&(St=St.onAllReady,St())}function Kr(St){if(St.status!==2){var ln=Ut,An=Qt.current;Qt.current=Xe;var Cr=gn;gn=St.responseState;try{var _i=St.pingedTasks,Sn;for(Sn=0;Sn<_i.length;Sn++){var ir=_i[Sn],mt=St,fn=ir.blockedSegment;if(fn.status===0){I(ir.context);try{yi(mt,ir,ir.node),mt.responseState.generateStaticMarkup||fn.lastPushedText&&fn.textEmbedded&&fn.chunks.push("<!-- -->"),ir.abortSet.delete(ir),fn.status=1,Si(mt,ir.blockedBoundary,fn)}catch(Pr){if($t(),typeof Pr=="object"&&Pr!==null&&typeof Pr.then=="function"){var gt=ir.ping;Pr.then(gt,gt)}else{ir.abortSet.delete(ir),fn.status=4;var tn=ir.blockedBoundary,Vn=Pr,Ur=Ln(mt,Vn);if(tn===null?En(mt,Vn):(tn.pendingTasks--,tn.forceClientRender||(tn.forceClientRender=!0,tn.errorDigest=Ur,tn.parentFlushed&&mt.clientRenderedBoundaries.push(tn))),mt.allPendingTasks--,mt.allPendingTasks===0){var $r=mt.onAllReady;$r()}}}finally{}}}_i.splice(0,Sn),St.destination!==null&&Gr(St,St.destination)}catch(Pr){Ln(St,Pr),En(St,Pr)}finally{gn=Cr,Qt.current=An,An===Xe&&I(ln)}}}function xi(St,ln,An){switch(An.parentFlushed=!0,An.status){case 0:var Cr=An.id=St.nextSegmentId++;return An.lastPushedText=!1,An.textEmbedded=!1,St=St.responseState,ln.push('<template id="'),ln.push(St.placeholderPrefix),St=Cr.toString(16),ln.push(St),ln.push('"></template>');case 1:An.status=2;var _i=!0;Cr=An.chunks;var Sn=0;An=An.children;for(var ir=0;ir<An.length;ir++){for(_i=An[ir];Sn<_i.index;Sn++)ln.push(Cr[Sn]);_i=Ai(St,ln,_i)}for(;Sn<Cr.length-1;Sn++)ln.push(Cr[Sn]);return Sn<Cr.length&&(_i=ln.push(Cr[Sn])),_i;default:throw Error(l(390))}}function Ai(St,ln,An){var Cr=An.boundary;if(Cr===null)return xi(St,ln,An);if(Cr.parentFlushed=!0,Cr.forceClientRender)return St.responseState.generateStaticMarkup||(Cr=Cr.errorDigest,ln.push("<!--$!-->"),ln.push("<template"),Cr&&(ln.push(' data-dgst="'),Cr=O(Cr),ln.push(Cr),ln.push('"')),ln.push("></template>")),xi(St,ln,An),St=St.responseState.generateStaticMarkup?!0:ln.push("<!--/$-->"),St;if(0<Cr.pendingTasks){Cr.rootSegmentID=St.nextSegmentId++,0<Cr.completedSegments.length&&St.partialBoundaries.push(Cr);var _i=St.responseState,Sn=_i.nextSuspenseID++;return _i=_i.boundaryPrefix+Sn.toString(16),Cr=Cr.id=_i,ce(ln,St.responseState,Cr),xi(St,ln,An),ln.push("<!--/$-->")}if(Cr.byteSize>St.progressiveChunkSize)return Cr.rootSegmentID=St.nextSegmentId++,St.completedBoundaries.push(Cr),ce(ln,St.responseState,Cr.id),xi(St,ln,An),ln.push("<!--/$-->");if(St.responseState.generateStaticMarkup||ln.push("<!--$-->"),An=Cr.completedSegments,An.length!==1)throw Error(l(391));return Ai(St,ln,An[0]),St=St.responseState.generateStaticMarkup?!0:ln.push("<!--/$-->"),St}function Pi(St,ln,An){return oe(ln,St.responseState,An.formatContext,An.id),Ai(St,ln,An),re(ln,An.formatContext)}function io(St,ln,An){for(var Cr=An.completedSegments,_i=0;_i<Cr.length;_i++)lo(St,ln,An,Cr[_i]);if(Cr.length=0,St=St.responseState,Cr=An.id,An=An.rootSegmentID,ln.push(St.startInlineScript),St.sentCompleteBoundaryFunction?ln.push('$RC("'):(St.sentCompleteBoundaryFunction=!0,ln.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),Cr===null)throw Error(l(395));return An=An.toString(16),ln.push(Cr),ln.push('","'),ln.push(St.segmentPrefix),ln.push(An),ln.push('")<\/script>')}function lo(St,ln,An,Cr){if(Cr.status===2)return!0;var _i=Cr.id;if(_i===-1){if((Cr.id=An.rootSegmentID)===-1)throw Error(l(392));return Pi(St,ln,Cr)}return Pi(St,ln,Cr),St=St.responseState,ln.push(St.startInlineScript),St.sentCompleteSegmentFunction?ln.push('$RS("'):(St.sentCompleteSegmentFunction=!0,ln.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),ln.push(St.segmentPrefix),_i=_i.toString(16),ln.push(_i),ln.push('","'),ln.push(St.placeholderPrefix),ln.push(_i),ln.push('")<\/script>')}function Gr(St,ln){try{var An=St.completedRootSegment;if(An!==null&&St.pendingRootTasks===0){Ai(St,ln,An),St.completedRootSegment=null;var Cr=St.responseState.bootstrapChunks;for(An=0;An<Cr.length-1;An++)ln.push(Cr[An]);An<Cr.length&&ln.push(Cr[An])}var _i=St.clientRenderedBoundaries,Sn;for(Sn=0;Sn<_i.length;Sn++){var ir=_i[Sn];Cr=ln;var mt=St.responseState,fn=ir.id,gt=ir.errorDigest,tn=ir.errorMessage,Vn=ir.errorComponentStack;if(Cr.push(mt.startInlineScript),mt.sentClientRenderFunction?Cr.push('$RX("'):(mt.sentClientRenderFunction=!0,Cr.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),fn===null)throw Error(l(395));if(Cr.push(fn),Cr.push('"'),gt||tn||Vn){Cr.push(",");var Ur=V(gt||"");Cr.push(Ur)}if(tn||Vn){Cr.push(",");var $r=V(tn||"");Cr.push($r)}if(Vn){Cr.push(",");var Pr=V(Vn);Cr.push(Pr)}if(!Cr.push(")<\/script>")){St.destination=null,Sn++,_i.splice(0,Sn);return}}_i.splice(0,Sn);var zr=St.completedBoundaries;for(Sn=0;Sn<zr.length;Sn++)if(!io(St,ln,zr[Sn])){St.destination=null,Sn++,zr.splice(0,Sn);return}zr.splice(0,Sn);var gi=St.partialBoundaries;for(Sn=0;Sn<gi.length;Sn++){var $i=gi[Sn];e:{_i=St,ir=ln;var eo=$i.completedSegments;for(mt=0;mt<eo.length;mt++)if(!lo(_i,ir,$i,eo[mt])){mt++,eo.splice(0,mt);var ki=!1;break e}eo.splice(0,mt),ki=!0}if(!ki){St.destination=null,Sn++,gi.splice(0,Sn);return}}gi.splice(0,Sn);var so=St.completedBoundaries;for(Sn=0;Sn<so.length;Sn++)if(!io(St,ln,so[Sn])){St.destination=null,Sn++,so.splice(0,Sn);return}so.splice(0,Sn)}finally{St.allPendingTasks===0&&St.pingedTasks.length===0&&St.clientRenderedBoundaries.length===0&&St.completedBoundaries.length===0&&ln.push(null)}}function un(St,ln){try{var An=St.abortableTasks;An.forEach(function(Cr){return ri(Cr,St,ln)}),An.clear(),St.destination!==null&&Gr(St,St.destination)}catch(Cr){Ln(St,Cr),En(St,Cr)}}function qn(){}function kn(St,ln,An,Cr){var _i=!1,Sn=null,ir="",mt={push:function(gt){return gt!==null&&(ir+=gt),!0},destroy:function(gt){_i=!0,Sn=gt}},fn=!1;if(St=cn(St,Q(An,ln?ln.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,qn,void 0,function(){fn=!0},void 0,void 0),Kr(St),un(St,Cr),St.status===1)St.status=2,mt.destroy(St.fatalError);else if(St.status!==2&&St.destination===null){St.destination=mt;try{Gr(St,mt)}catch(gt){Ln(St,gt),En(St,gt)}}if(_i)throw Sn;if(!fn)throw Error(l(426));return ir}g.renderToNodeStream=function(){throw Error(l(207))},g.renderToStaticMarkup=function(St,ln){return kn(St,ln,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},g.renderToStaticNodeStream=function(){throw Error(l(208))},g.renderToString=function(St,ln){return kn(St,ln,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},g.version="18.2.0"},72911:(J,g,t)=>{"use strict";/** * @license React * react-dom-server.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=t(96540);function l($e){for(var ut="https://reactjs.org/docs/error-decoder.html?invariant="+$e,zt=1;zt<arguments.length;zt++)ut+="&args[]="+encodeURIComponent(arguments[zt]);return"Minified React error #"+$e+"; visit "+ut+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=null,m=0;function u($e,ut){if(ut.length!==0)if(512<ut.length)0<m&&($e.enqueue(new Uint8Array(s.buffer,0,m)),s=new Uint8Array(512),m=0),$e.enqueue(ut);else{var zt=s.length-m;zt<ut.length&&(zt===0?$e.enqueue(s):(s.set(ut.subarray(0,zt),m),$e.enqueue(s),ut=ut.subarray(zt)),s=new Uint8Array(512),m=0),s.set(ut,m),m+=ut.length}}function f($e,ut){return u($e,ut),!0}function p($e){s&&0<m&&($e.enqueue(new Uint8Array(s.buffer,0,m)),s=null,m=0)}var v=new TextEncoder;function h($e){return v.encode($e)}function d($e){return v.encode($e)}function b($e,ut){typeof $e.error=="function"?$e.error(ut):$e.close()}var y=Object.prototype.hasOwnProperty,w=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},O={};function R($e){return y.call(O,$e)?!0:y.call(S,$e)?!1:w.test($e)?O[$e]=!0:(S[$e]=!0,!1)}function M($e,ut,zt,Ht,Fn,Cn,tr){this.acceptsBooleans=ut===2||ut===3||ut===4,this.attributeName=Ht,this.attributeNamespace=Fn,this.mustUseProperty=zt,this.propertyName=$e,this.type=ut,this.sanitizeURL=Cn,this.removeEmptyString=tr}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function($e){D[$e]=new M($e,0,!1,$e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function($e){var ut=$e[0];D[ut]=new M(ut,1,!1,$e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function($e){D[$e]=new M($e,2,!1,$e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function($e){D[$e]=new M($e,2,!1,$e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function($e){D[$e]=new M($e,3,!1,$e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function($e){D[$e]=new M($e,3,!0,$e,null,!1,!1)}),["capture","download"].forEach(function($e){D[$e]=new M($e,4,!1,$e,null,!1,!1)}),["cols","rows","size","span"].forEach(function($e){D[$e]=new M($e,6,!1,$e,null,!1,!1)}),["rowSpan","start"].forEach(function($e){D[$e]=new M($e,5,!1,$e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function T($e){return $e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function($e){var ut=$e.replace(P,T);D[ut]=new M(ut,1,!1,$e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function($e){var ut=$e.replace(P,T);D[ut]=new M(ut,1,!1,$e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function($e){var ut=$e.replace(P,T);D[ut]=new M(ut,1,!1,$e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function($e){D[$e]=new M($e,1,!1,$e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function($e){D[$e]=new M($e,1,!1,$e.toLowerCase(),null,!0,!0)});var A={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},j=["Webkit","ms","Moz","O"];Object.keys(A).forEach(function($e){j.forEach(function(ut){ut=ut+$e.charAt(0).toUpperCase()+$e.substring(1),A[ut]=A[$e]})});var ae=/["'&<>]/;function _($e){if(typeof $e=="boolean"||typeof $e=="number")return""+$e;$e=""+$e;var ut=ae.exec($e);if(ut){var zt="",Ht,Fn=0;for(Ht=ut.index;Ht<$e.length;Ht++){switch($e.charCodeAt(Ht)){case 34:ut=""";break;case 38:ut="&";break;case 39:ut="'";break;case 60:ut="<";break;case 62:ut=">";break;default:continue}Fn!==Ht&&(zt+=$e.substring(Fn,Ht)),Fn=Ht+1,zt+=ut}$e=Fn!==Ht?zt+$e.substring(Fn,Ht):zt}return $e}var N=/([A-Z])/g,W=/^ms-/,he=Array.isArray,me=d("<script>"),fe=d("<\/script>"),ve=d('<script src="'),ce=d('<script type="module" src="'),oe=d('" async=""><\/script>'),re=/(<\/|<)(s)(cript)/gi;function H($e,ut,zt,Ht){return""+ut+(zt==="s"?"\\u0073":"\\u0053")+Ht}function V($e,ut,zt,Ht,Fn){$e=$e===void 0?"":$e,ut=ut===void 0?me:d('<script nonce="'+_(ut)+'">');var Cn=[];if(zt!==void 0&&Cn.push(ut,h((""+zt).replace(re,H)),fe),Ht!==void 0)for(zt=0;zt<Ht.length;zt++)Cn.push(ve,h(_(Ht[zt])),oe);if(Fn!==void 0)for(Ht=0;Ht<Fn.length;Ht++)Cn.push(ce,h(_(Fn[Ht])),oe);return{bootstrapChunks:Cn,startInlineScript:ut,placeholderPrefix:d($e+"P:"),segmentPrefix:d($e+"S:"),boundaryPrefix:$e+"B:",idPrefix:$e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Q($e,ut){return{insertionMode:$e,selectedValue:ut}}function Te($e){return Q($e==="http://www.w3.org/2000/svg"?2:$e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Re($e,ut,zt){switch(ut){case"select":return Q(1,zt.value!=null?zt.value:zt.defaultValue);case"svg":return Q(2,null);case"math":return Q(3,null);case"foreignObject":return Q(1,null);case"table":return Q(4,null);case"thead":case"tbody":case"tfoot":return Q(5,null);case"colgroup":return Q(7,null);case"tr":return Q(6,null)}return 4<=$e.insertionMode||$e.insertionMode===0?Q(1,null):$e}var ne=d("<!-- -->");function pe($e,ut,zt,Ht){return ut===""?Ht:(Ht&&$e.push(ne),$e.push(h(_(ut))),!0)}var ye=new Map,Se=d(' style="'),Ae=d(":"),Ee=d(";");function xe($e,ut,zt){if(typeof zt!="object")throw Error(l(62));ut=!0;for(var Ht in zt)if(y.call(zt,Ht)){var Fn=zt[Ht];if(Fn!=null&&typeof Fn!="boolean"&&Fn!==""){if(Ht.indexOf("--")===0){var Cn=h(_(Ht));Fn=h(_((""+Fn).trim()))}else{Cn=Ht;var tr=ye.get(Cn);tr!==void 0||(tr=d(_(Cn.replace(N,"-$1").toLowerCase().replace(W,"-ms-"))),ye.set(Cn,tr)),Cn=tr,Fn=typeof Fn=="number"?Fn===0||y.call(A,Ht)?h(""+Fn):h(Fn+"px"):h(_((""+Fn).trim()))}ut?(ut=!1,$e.push(Se,Cn,Ae,Fn)):$e.push(Ee,Cn,Ae,Fn)}}ut||$e.push(pt)}var nt=d(" "),Tt=d('="'),pt=d('"'),Rt=d('=""');function tt($e,ut,zt,Ht){switch(zt){case"style":xe($e,ut,Ht);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<zt.length)||zt[0]!=="o"&&zt[0]!=="O"||zt[1]!=="n"&&zt[1]!=="N"){if(ut=D.hasOwnProperty(zt)?D[zt]:null,ut!==null){switch(typeof Ht){case"function":case"symbol":return;case"boolean":if(!ut.acceptsBooleans)return}switch(zt=h(ut.attributeName),ut.type){case 3:Ht&&$e.push(nt,zt,Rt);break;case 4:Ht===!0?$e.push(nt,zt,Rt):Ht!==!1&&$e.push(nt,zt,Tt,h(_(Ht)),pt);break;case 5:isNaN(Ht)||$e.push(nt,zt,Tt,h(_(Ht)),pt);break;case 6:!isNaN(Ht)&&1<=Ht&&$e.push(nt,zt,Tt,h(_(Ht)),pt);break;default:ut.sanitizeURL&&(Ht=""+Ht),$e.push(nt,zt,Tt,h(_(Ht)),pt)}}else if(R(zt)){switch(typeof Ht){case"function":case"symbol":return;case"boolean":if(ut=zt.toLowerCase().slice(0,5),ut!=="data-"&&ut!=="aria-")return}$e.push(nt,h(zt),Tt,h(_(Ht)),pt)}}}var U=d(">"),F=d("/>");function Y($e,ut,zt){if(ut!=null){if(zt!=null)throw Error(l(60));if(typeof ut!="object"||!("__html"in ut))throw Error(l(61));ut=ut.__html,ut!=null&&$e.push(h(""+ut))}}function le($e){var ut="";return i.Children.forEach($e,function(zt){zt!=null&&(ut+=zt)}),ut}var ke=d(' selected=""');function Ye($e,ut,zt,Ht){$e.push(Ke(zt));var Fn=zt=null,Cn;for(Cn in ut)if(y.call(ut,Cn)){var tr=ut[Cn];if(tr!=null)switch(Cn){case"children":zt=tr;break;case"dangerouslySetInnerHTML":Fn=tr;break;default:tt($e,Ht,Cn,tr)}}return $e.push(U),Y($e,Fn,zt),typeof zt=="string"?($e.push(h(_(zt))),null):zt}var ft=d(` `),wt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ut=new Map;function Ke($e){var ut=Ut.get($e);if(ut===void 0){if(!wt.test($e))throw Error(l(65,$e));ut=d("<"+$e),Ut.set($e,ut)}return ut}var it=d("<!DOCTYPE html>");function At($e,ut,zt,Ht,Fn){switch(ut){case"select":$e.push(Ke("select"));var Cn=null,tr=null;for(zi in zt)if(y.call(zt,zi)){var Jn=zt[zi];if(Jn!=null)switch(zi){case"children":Cn=Jn;break;case"dangerouslySetInnerHTML":tr=Jn;break;case"defaultValue":case"value":break;default:tt($e,Ht,zi,Jn)}}return $e.push(U),Y($e,tr,Cn),Cn;case"option":tr=Fn.selectedValue,$e.push(Ke("option"));var ei=Jn=null,Ci=null,zi=null;for(Cn in zt)if(y.call(zt,Cn)){var co=zt[Cn];if(co!=null)switch(Cn){case"children":Jn=co;break;case"selected":Ci=co;break;case"dangerouslySetInnerHTML":zi=co;break;case"value":ei=co;default:tt($e,Ht,Cn,co)}}if(tr!=null)if(zt=ei!==null?""+ei:le(Jn),he(tr)){for(Ht=0;Ht<tr.length;Ht++)if(""+tr[Ht]===zt){$e.push(ke);break}}else""+tr===zt&&$e.push(ke);else Ci&&$e.push(ke);return $e.push(U),Y($e,zi,Jn),Jn;case"textarea":$e.push(Ke("textarea")),zi=tr=Cn=null;for(Jn in zt)if(y.call(zt,Jn)&&(ei=zt[Jn],ei!=null))switch(Jn){case"children":zi=ei;break;case"value":Cn=ei;break;case"defaultValue":tr=ei;break;case"dangerouslySetInnerHTML":throw Error(l(91));default:tt($e,Ht,Jn,ei)}if(Cn===null&&tr!==null&&(Cn=tr),$e.push(U),zi!=null){if(Cn!=null)throw Error(l(92));if(he(zi)&&1<zi.length)throw Error(l(93));Cn=""+zi}return typeof Cn=="string"&&Cn[0]===` `&&$e.push(ft),Cn!==null&&$e.push(h(_(""+Cn))),null;case"input":$e.push(Ke("input")),ei=zi=Jn=Cn=null;for(tr in zt)if(y.call(zt,tr)&&(Ci=zt[tr],Ci!=null))switch(tr){case"children":case"dangerouslySetInnerHTML":throw Error(l(399,"input"));case"defaultChecked":ei=Ci;break;case"defaultValue":Jn=Ci;break;case"checked":zi=Ci;break;case"value":Cn=Ci;break;default:tt($e,Ht,tr,Ci)}return zi!==null?tt($e,Ht,"checked",zi):ei!==null&&tt($e,Ht,"checked",ei),Cn!==null?tt($e,Ht,"value",Cn):Jn!==null&&tt($e,Ht,"value",Jn),$e.push(F),null;case"menuitem":$e.push(Ke("menuitem"));for(var Xo in zt)if(y.call(zt,Xo)&&(Cn=zt[Xo],Cn!=null))switch(Xo){case"children":case"dangerouslySetInnerHTML":throw Error(l(400));default:tt($e,Ht,Xo,Cn)}return $e.push(U),null;case"title":$e.push(Ke("title")),Cn=null;for(co in zt)if(y.call(zt,co)&&(tr=zt[co],tr!=null))switch(co){case"children":Cn=tr;break;case"dangerouslySetInnerHTML":throw Error(l(434));default:tt($e,Ht,co,tr)}return $e.push(U),Cn;case"listing":case"pre":$e.push(Ke(ut)),tr=Cn=null;for(ei in zt)if(y.call(zt,ei)&&(Jn=zt[ei],Jn!=null))switch(ei){case"children":Cn=Jn;break;case"dangerouslySetInnerHTML":tr=Jn;break;default:tt($e,Ht,ei,Jn)}if($e.push(U),tr!=null){if(Cn!=null)throw Error(l(60));if(typeof tr!="object"||!("__html"in tr))throw Error(l(61));zt=tr.__html,zt!=null&&(typeof zt=="string"&&0<zt.length&&zt[0]===` `?$e.push(ft,h(zt)):$e.push(h(""+zt)))}return typeof Cn=="string"&&Cn[0]===` `&&$e.push(ft),Cn;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":$e.push(Ke(ut));for(var Eo in zt)if(y.call(zt,Eo)&&(Cn=zt[Eo],Cn!=null))switch(Eo){case"children":case"dangerouslySetInnerHTML":throw Error(l(399,ut));default:tt($e,Ht,Eo,Cn)}return $e.push(F),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ye($e,zt,ut,Ht);case"html":return Fn.insertionMode===0&&$e.push(it),Ye($e,zt,ut,Ht);default:if(ut.indexOf("-")===-1&&typeof zt.is!="string")return Ye($e,zt,ut,Ht);$e.push(Ke(ut)),tr=Cn=null;for(Ci in zt)if(y.call(zt,Ci)&&(Jn=zt[Ci],Jn!=null))switch(Ci){case"children":Cn=Jn;break;case"dangerouslySetInnerHTML":tr=Jn;break;case"style":xe($e,Ht,Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Ci)&&typeof Jn!="function"&&typeof Jn!="symbol"&&$e.push(nt,h(Ci),Tt,h(_(Jn)),pt)}return $e.push(U),Y($e,tr,Cn),Cn}}var et=d("</"),ee=d(">"),I=d('<template id="'),K=d('"></template>'),ue=d("<!--$-->"),De=d('<!--$?--><template id="'),He=d('"></template>'),Fe=d("<!--$!-->"),ze=d("<!--/$-->"),qe=d("<template"),We=d('"'),_t=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var ct=d("></template>");function Ge($e,ut,zt){if(u($e,De),zt===null)throw Error(l(395));return u($e,zt),f($e,He)}var st=d('<div hidden id="'),Me=d('">'),ie=d("</div>"),ge=d('<svg aria-hidden="true" style="display:none" id="'),z=d('">'),be=d("</svg>"),Qe=d('<math aria-hidden="true" style="display:none" id="'),Bt=d('">'),nn=d("</math>"),bt=d('<table hidden id="'),at=d('">'),$t=d("</table>"),On=d('<table hidden><tbody id="'),Ct=d('">'),Zt=d("</tbody></table>"),Wn=d('<table hidden><tr id="'),Zn=d('">'),xt=d("</tr></table>"),Xe=d('<table hidden><colgroup id="'),gn=d('">'),Qt=d("</colgroup></table>");function Dt($e,ut,zt,Ht){switch(zt.insertionMode){case 0:case 1:return u($e,st),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,Me);case 2:return u($e,ge),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,z);case 3:return u($e,Qe),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,Bt);case 4:return u($e,bt),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,at);case 5:return u($e,On),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,Ct);case 6:return u($e,Wn),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,Zn);case 7:return u($e,Xe),u($e,ut.segmentPrefix),u($e,h(Ht.toString(16))),f($e,gn);default:throw Error(l(397))}}function hn($e,ut){switch(ut.insertionMode){case 0:case 1:return f($e,ie);case 2:return f($e,be);case 3:return f($e,nn);case 4:return f($e,$t);case 5:return f($e,Zt);case 6:return f($e,xt);case 7:return f($e,Qt);default:throw Error(l(397))}}var cn=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),an=d('$RS("'),Or=d('","'),Ln=d('")<\/script>'),En=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Gn=d('$RC("'),rr=d('","'),sr=d('")<\/script>'),pi=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),yi=d('$RX("'),jr=d('"'),ui=d(")<\/script>"),bi=d(","),ri=/[<\u2028\u2029]/g;function hi($e){return JSON.stringify($e).replace(ri,function(ut){switch(ut){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Si=Object.assign,Kr=Symbol.for("react.element"),xi=Symbol.for("react.portal"),Ai=Symbol.for("react.fragment"),Pi=Symbol.for("react.strict_mode"),io=Symbol.for("react.profiler"),lo=Symbol.for("react.provider"),Gr=Symbol.for("react.context"),un=Symbol.for("react.forward_ref"),qn=Symbol.for("react.suspense"),kn=Symbol.for("react.suspense_list"),St=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),An=Symbol.for("react.scope"),Cr=Symbol.for("react.debug_trace_mode"),_i=Symbol.for("react.legacy_hidden"),Sn=Symbol.for("react.default_value"),ir=Symbol.iterator;function mt($e){if($e==null)return null;if(typeof $e=="function")return $e.displayName||$e.name||null;if(typeof $e=="string")return $e;switch($e){case Ai:return"Fragment";case xi:return"Portal";case io:return"Profiler";case Pi:return"StrictMode";case qn:return"Suspense";case kn:return"SuspenseList"}if(typeof $e=="object")switch($e.$$typeof){case Gr:return($e.displayName||"Context")+".Consumer";case lo:return($e._context.displayName||"Context")+".Provider";case un:var ut=$e.render;return $e=$e.displayName,$e||($e=ut.displayName||ut.name||"",$e=$e!==""?"ForwardRef("+$e+")":"ForwardRef"),$e;case St:return ut=$e.displayName||null,ut!==null?ut:mt($e.type)||"Memo";case ln:ut=$e._payload,$e=$e._init;try{return mt($e(ut))}catch{}}return null}var fn={};function gt($e,ut){if($e=$e.contextTypes,!$e)return fn;var zt={},Ht;for(Ht in $e)zt[Ht]=ut[Ht];return zt}var tn=null;function Vn($e,ut){if($e!==ut){$e.context._currentValue=$e.parentValue,$e=$e.parent;var zt=ut.parent;if($e===null){if(zt!==null)throw Error(l(401))}else{if(zt===null)throw Error(l(401));Vn($e,zt)}ut.context._currentValue=ut.value}}function Ur($e){$e.context._currentValue=$e.parentValue,$e=$e.parent,$e!==null&&Ur($e)}function $r($e){var ut=$e.parent;ut!==null&&$r(ut),$e.context._currentValue=$e.value}function Pr($e,ut){if($e.context._currentValue=$e.parentValue,$e=$e.parent,$e===null)throw Error(l(402));$e.depth===ut.depth?Vn($e,ut):Pr($e,ut)}function zr($e,ut){var zt=ut.parent;if(zt===null)throw Error(l(402));$e.depth===zt.depth?Vn($e,zt):zr($e,zt),ut.context._currentValue=ut.value}function gi($e){var ut=tn;ut!==$e&&(ut===null?$r($e):$e===null?Ur(ut):ut.depth===$e.depth?Vn(ut,$e):ut.depth>$e.depth?Pr(ut,$e):zr(ut,$e),tn=$e)}var $i={isMounted:function(){return!1},enqueueSetState:function($e,ut){$e=$e._reactInternals,$e.queue!==null&&$e.queue.push(ut)},enqueueReplaceState:function($e,ut){$e=$e._reactInternals,$e.replace=!0,$e.queue=[ut]},enqueueForceUpdate:function(){}};function eo($e,ut,zt,Ht){var Fn=$e.state!==void 0?$e.state:null;$e.updater=$i,$e.props=zt,$e.state=Fn;var Cn={queue:[],replace:!1};$e._reactInternals=Cn;var tr=ut.contextType;if($e.context=typeof tr=="object"&&tr!==null?tr._currentValue:Ht,tr=ut.getDerivedStateFromProps,typeof tr=="function"&&(tr=tr(zt,Fn),Fn=tr==null?Fn:Si({},Fn,tr),$e.state=Fn),typeof ut.getDerivedStateFromProps!="function"&&typeof $e.getSnapshotBeforeUpdate!="function"&&(typeof $e.UNSAFE_componentWillMount=="function"||typeof $e.componentWillMount=="function"))if(ut=$e.state,typeof $e.componentWillMount=="function"&&$e.componentWillMount(),typeof $e.UNSAFE_componentWillMount=="function"&&$e.UNSAFE_componentWillMount(),ut!==$e.state&&$i.enqueueReplaceState($e,$e.state,null),Cn.queue!==null&&0<Cn.queue.length)if(ut=Cn.queue,tr=Cn.replace,Cn.queue=null,Cn.replace=!1,tr&&ut.length===1)$e.state=ut[0];else{for(Cn=tr?ut[0]:$e.state,Fn=!0,tr=tr?1:0;tr<ut.length;tr++){var Jn=ut[tr];Jn=typeof Jn=="function"?Jn.call($e,Cn,zt,Ht):Jn,Jn!=null&&(Fn?(Fn=!1,Cn=Si({},Cn,Jn)):Si(Cn,Jn))}$e.state=Cn}else Cn.queue=null}var ki={id:1,overflow:""};function so($e,ut,zt){var Ht=$e.id;$e=$e.overflow;var Fn=32-Ho(Ht)-1;Ht&=~(1<<Fn),zt+=1;var Cn=32-Ho(ut)+Fn;if(30<Cn){var tr=Fn-Fn%5;return Cn=(Ht&(1<<tr)-1).toString(32),Ht>>=tr,Fn-=tr,{id:1<<32-Ho(ut)+Fn|zt<<Fn|Ht,overflow:Cn+$e}}return{id:1<<Cn|zt<<Fn|Ht,overflow:$e}}var Ho=Math.clz32?Math.clz32:gr,ra=Math.log,So=Math.LN2;function gr($e){return $e>>>=0,$e===0?32:31-(ra($e)/So|0)|0}function di($e,ut){return $e===ut&&($e!==0||1/$e===1/ut)||$e!==$e&&ut!==ut}var Vi=typeof Object.is=="function"?Object.is:di,Ro=null,na=null,ta=null,aa=null,vi=!1,to=!1,$o=0,ja=null,hs=0;function ro(){if(Ro===null)throw Error(l(321));return Ro}function as(){if(0<hs)throw Error(l(312));return{memoizedState:null,queue:null,next:null}}function rn(){return aa===null?ta===null?(vi=!1,ta=aa=as()):(vi=!0,aa=ta):aa.next===null?(vi=!1,aa=aa.next=as()):(vi=!0,aa=aa.next),aa}function Dr(){na=Ro=null,to=!1,ta=null,hs=0,aa=ja=null}function Lr($e,ut){return typeof ut=="function"?ut($e):ut}function li($e,ut,zt){if(Ro=ro(),aa=rn(),vi){var Ht=aa.queue;if(ut=Ht.dispatch,ja!==null&&(zt=ja.get(Ht),zt!==void 0)){ja.delete(Ht),Ht=aa.memoizedState;do Ht=$e(Ht,zt.action),zt=zt.next;while(zt!==null);return aa.memoizedState=Ht,[Ht,ut]}return[aa.memoizedState,ut]}return $e=$e===Lr?typeof ut=="function"?ut():ut:zt!==void 0?zt(ut):ut,aa.memoizedState=$e,$e=aa.queue={last:null,dispatch:null},$e=$e.dispatch=Di.bind(null,Ro,$e),[aa.memoizedState,$e]}function Zi($e,ut){if(Ro=ro(),aa=rn(),ut=ut===void 0?null:ut,aa!==null){var zt=aa.memoizedState;if(zt!==null&&ut!==null){var Ht=zt[1];e:if(Ht===null)Ht=!1;else{for(var Fn=0;Fn<Ht.length&&Fn<ut.length;Fn++)if(!Vi(ut[Fn],Ht[Fn])){Ht=!1;break e}Ht=!0}if(Ht)return zt[0]}}return $e=$e(),aa.memoizedState=[$e,ut],$e}function Di($e,ut,zt){if(25<=hs)throw Error(l(301));if($e===Ro)if(to=!0,$e={action:zt,next:null},ja===null&&(ja=new Map),zt=ja.get(ut),zt===void 0)ja.set(ut,$e);else{for(ut=zt;ut.next!==null;)ut=ut.next;ut.next=$e}}function wo(){throw Error(l(394))}function Go(){}var Ko={readContext:function($e){return $e._currentValue},useContext:function($e){return ro(),$e._currentValue},useMemo:Zi,useReducer:li,useRef:function($e){Ro=ro(),aa=rn();var ut=aa.memoizedState;return ut===null?($e={current:$e},aa.memoizedState=$e):ut},useState:function($e){return li(Lr,$e)},useInsertionEffect:Go,useLayoutEffect:function(){},useCallback:function($e,ut){return Zi(function(){return $e},ut)},useImperativeHandle:Go,useEffect:Go,useDebugValue:Go,useDeferredValue:function($e){return ro(),$e},useTransition:function(){return ro(),[!1,wo]},useId:function(){var $e=na.treeContext,ut=$e.overflow;$e=$e.id,$e=($e&~(1<<32-Ho($e)-1)).toString(32)+ut;var zt=Ie;if(zt===null)throw Error(l(404));return ut=$o++,$e=":"+zt.idPrefix+"R"+$e,0<ut&&($e+="H"+ut.toString(32)),$e+":"},useMutableSource:function($e,ut){return ro(),ut($e._source)},useSyncExternalStore:function($e,ut,zt){if(zt===void 0)throw Error(l(407));return zt()}},Ie=null,yt=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function on($e){return console.error($e),null}function _n(){}function er($e,ut,zt,Ht,Fn,Cn,tr,Jn,ei){var Ci=[],zi=new Set;return ut={destination:null,responseState:ut,progressiveChunkSize:Ht===void 0?12800:Ht,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:zi,pingedTasks:Ci,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Fn===void 0?on:Fn,onAllReady:Cn===void 0?_n:Cn,onShellReady:tr===void 0?_n:tr,onShellError:Jn===void 0?_n:Jn,onFatalError:ei===void 0?_n:ei},zt=Er(ut,0,null,zt,!1,!1),zt.parentFlushed=!0,$e=or(ut,$e,null,zt,zi,fn,null,ki),Ci.push($e),ut}function or($e,ut,zt,Ht,Fn,Cn,tr,Jn){$e.allPendingTasks++,zt===null?$e.pendingRootTasks++:zt.pendingTasks++;var ei={node:ut,ping:function(){var Ci=$e.pingedTasks;Ci.push(ei),Ci.length===1&&Z($e)},blockedBoundary:zt,blockedSegment:Ht,abortSet:Fn,legacyContext:Cn,context:tr,treeContext:Jn};return Fn.add(ei),ei}function Er($e,ut,zt,Ht,Fn,Cn){return{status:0,id:-1,index:ut,parentFlushed:!1,chunks:[],children:[],formatContext:Ht,boundary:zt,lastPushedText:Fn,textEmbedded:Cn}}function Mi($e,ut){if($e=$e.onError(ut),$e!=null&&typeof $e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof $e+'" instead');return $e}function Ui($e,ut){var zt=$e.onShellError;zt(ut),zt=$e.onFatalError,zt(ut),$e.destination!==null?($e.status=2,b($e.destination,ut)):($e.status=1,$e.fatalError=ut)}function Nn($e,ut,zt,Ht,Fn){for(Ro={},na=ut,$o=0,$e=zt(Ht,Fn);to;)to=!1,$o=0,hs+=1,aa=null,$e=zt(Ht,Fn);return Dr(),$e}function cr($e,ut,zt,Ht){var Fn=zt.render(),Cn=Ht.childContextTypes;if(Cn!=null){var tr=ut.legacyContext;if(typeof zt.getChildContext!="function")Ht=tr;else{zt=zt.getChildContext();for(var Jn in zt)if(!(Jn in Cn))throw Error(l(108,mt(Ht)||"Unknown",Jn));Ht=Si({},tr,zt)}ut.legacyContext=Ht,Jr($e,ut,Fn),ut.legacyContext=tr}else Jr($e,ut,Fn)}function ni($e,ut){if($e&&$e.defaultProps){ut=Si({},ut),$e=$e.defaultProps;for(var zt in $e)ut[zt]===void 0&&(ut[zt]=$e[zt]);return ut}return ut}function Xr($e,ut,zt,Ht,Fn){if(typeof zt=="function")if(zt.prototype&&zt.prototype.isReactComponent){Fn=gt(zt,ut.legacyContext);var Cn=zt.contextType;Cn=new zt(Ht,typeof Cn=="object"&&Cn!==null?Cn._currentValue:Fn),eo(Cn,zt,Ht,Fn),cr($e,ut,Cn,zt)}else{Cn=gt(zt,ut.legacyContext),Fn=Nn($e,ut,zt,Ht,Cn);var tr=$o!==0;if(typeof Fn=="object"&&Fn!==null&&typeof Fn.render=="function"&&Fn.$$typeof===void 0)eo(Fn,zt,Ht,Cn),cr($e,ut,Fn,zt);else if(tr){Ht=ut.treeContext,ut.treeContext=so(Ht,1,0);try{Jr($e,ut,Fn)}finally{ut.treeContext=Ht}}else Jr($e,ut,Fn)}else if(typeof zt=="string"){switch(Fn=ut.blockedSegment,Cn=At(Fn.chunks,zt,Ht,$e.responseState,Fn.formatContext),Fn.lastPushedText=!1,tr=Fn.formatContext,Fn.formatContext=Re(tr,zt,Ht),Fo($e,ut,Cn),Fn.formatContext=tr,zt){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Fn.chunks.push(et,h(zt),ee)}Fn.lastPushedText=!1}else{switch(zt){case _i:case Cr:case Pi:case io:case Ai:Jr($e,ut,Ht.children);return;case kn:Jr($e,ut,Ht.children);return;case An:throw Error(l(343));case qn:e:{zt=ut.blockedBoundary,Fn=ut.blockedSegment,Cn=Ht.fallback,Ht=Ht.children,tr=new Set;var Jn={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:tr,errorDigest:null},ei=Er($e,Fn.chunks.length,Jn,Fn.formatContext,!1,!1);Fn.children.push(ei),Fn.lastPushedText=!1;var Ci=Er($e,0,null,Fn.formatContext,!1,!1);Ci.parentFlushed=!0,ut.blockedBoundary=Jn,ut.blockedSegment=Ci;try{if(Fo($e,ut,Ht),Ci.lastPushedText&&Ci.textEmbedded&&Ci.chunks.push(ne),Ci.status=1,br(Jn,Ci),Jn.pendingTasks===0)break e}catch(zi){Ci.status=4,Jn.forceClientRender=!0,Jn.errorDigest=Mi($e,zi)}finally{ut.blockedBoundary=zt,ut.blockedSegment=Fn}ut=or($e,Cn,zt,ei,tr,ut.legacyContext,ut.context,ut.treeContext),$e.pingedTasks.push(ut)}return}if(typeof zt=="object"&&zt!==null)switch(zt.$$typeof){case un:if(Ht=Nn($e,ut,zt.render,Ht,Fn),$o!==0){zt=ut.treeContext,ut.treeContext=so(zt,1,0);try{Jr($e,ut,Ht)}finally{ut.treeContext=zt}}else Jr($e,ut,Ht);return;case St:zt=zt.type,Ht=ni(zt,Ht),Xr($e,ut,zt,Ht,Fn);return;case lo:if(Fn=Ht.children,zt=zt._context,Ht=Ht.value,Cn=zt._currentValue,zt._currentValue=Ht,tr=tn,tn=Ht={parent:tr,depth:tr===null?0:tr.depth+1,context:zt,parentValue:Cn,value:Ht},ut.context=Ht,Jr($e,ut,Fn),$e=tn,$e===null)throw Error(l(403));Ht=$e.parentValue,$e.context._currentValue=Ht===Sn?$e.context._defaultValue:Ht,$e=tn=$e.parent,ut.context=$e;return;case Gr:Ht=Ht.children,Ht=Ht(zt._currentValue),Jr($e,ut,Ht);return;case ln:Fn=zt._init,zt=Fn(zt._payload),Ht=ni(zt,Ht),Xr($e,ut,zt,Ht,void 0);return}throw Error(l(130,zt==null?zt:typeof zt,""))}}function Jr($e,ut,zt){if(ut.node=zt,typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case Kr:Xr($e,ut,zt.type,zt.props,zt.ref);return;case xi:throw Error(l(257));case ln:var Ht=zt._init;zt=Ht(zt._payload),Jr($e,ut,zt);return}if(he(zt)){Qi($e,ut,zt);return}if(zt===null||typeof zt!="object"?Ht=null:(Ht=ir&&zt[ir]||zt["@@iterator"],Ht=typeof Ht=="function"?Ht:null),Ht&&(Ht=Ht.call(zt))){if(zt=Ht.next(),!zt.done){var Fn=[];do Fn.push(zt.value),zt=Ht.next();while(!zt.done);Qi($e,ut,Fn)}return}throw $e=Object.prototype.toString.call(zt),Error(l(31,$e==="[object Object]"?"object with keys {"+Object.keys(zt).join(", ")+"}":$e))}typeof zt=="string"?(Ht=ut.blockedSegment,Ht.lastPushedText=pe(ut.blockedSegment.chunks,zt,$e.responseState,Ht.lastPushedText)):typeof zt=="number"&&(Ht=ut.blockedSegment,Ht.lastPushedText=pe(ut.blockedSegment.chunks,""+zt,$e.responseState,Ht.lastPushedText))}function Qi($e,ut,zt){for(var Ht=zt.length,Fn=0;Fn<Ht;Fn++){var Cn=ut.treeContext;ut.treeContext=so(Cn,Ht,Fn);try{Fo($e,ut,zt[Fn])}finally{ut.treeContext=Cn}}}function Fo($e,ut,zt){var Ht=ut.blockedSegment.formatContext,Fn=ut.legacyContext,Cn=ut.context;try{return Jr($e,ut,zt)}catch(ei){if(Dr(),typeof ei=="object"&&ei!==null&&typeof ei.then=="function"){zt=ei;var tr=ut.blockedSegment,Jn=Er($e,tr.chunks.length,null,tr.formatContext,tr.lastPushedText,!0);tr.children.push(Jn),tr.lastPushedText=!1,$e=or($e,ut.node,ut.blockedBoundary,Jn,ut.abortSet,ut.legacyContext,ut.context,ut.treeContext).ping,zt.then($e,$e),ut.blockedSegment.formatContext=Ht,ut.legacyContext=Fn,ut.context=Cn,gi(Cn)}else throw ut.blockedSegment.formatContext=Ht,ut.legacyContext=Fn,ut.context=Cn,gi(Cn),ei}}function No($e){var ut=$e.blockedBoundary;$e=$e.blockedSegment,$e.status=3,Yn(this,ut,$e)}function Jo($e,ut,zt){var Ht=$e.blockedBoundary;$e.blockedSegment.status=3,Ht===null?(ut.allPendingTasks--,ut.status!==2&&(ut.status=2,ut.destination!==null&&ut.destination.close())):(Ht.pendingTasks--,Ht.forceClientRender||(Ht.forceClientRender=!0,$e=zt===void 0?Error(l(432)):zt,Ht.errorDigest=ut.onError($e),Ht.parentFlushed&&ut.clientRenderedBoundaries.push(Ht)),Ht.fallbackAbortableTasks.forEach(function(Fn){return Jo(Fn,ut,zt)}),Ht.fallbackAbortableTasks.clear(),ut.allPendingTasks--,ut.allPendingTasks===0&&(Ht=ut.onAllReady,Ht()))}function br($e,ut){if(ut.chunks.length===0&&ut.children.length===1&&ut.children[0].boundary===null){var zt=ut.children[0];zt.id=ut.id,zt.parentFlushed=!0,zt.status===1&&br($e,zt)}else $e.completedSegments.push(ut)}function Yn($e,ut,zt){if(ut===null){if(zt.parentFlushed){if($e.completedRootSegment!==null)throw Error(l(389));$e.completedRootSegment=zt}$e.pendingRootTasks--,$e.pendingRootTasks===0&&($e.onShellError=_n,ut=$e.onShellReady,ut())}else ut.pendingTasks--,ut.forceClientRender||(ut.pendingTasks===0?(zt.parentFlushed&&zt.status===1&&br(ut,zt),ut.parentFlushed&&$e.completedBoundaries.push(ut),ut.fallbackAbortableTasks.forEach(No,$e),ut.fallbackAbortableTasks.clear()):zt.parentFlushed&&zt.status===1&&(br(ut,zt),ut.completedSegments.length===1&&ut.parentFlushed&&$e.partialBoundaries.push(ut)));$e.allPendingTasks--,$e.allPendingTasks===0&&($e=$e.onAllReady,$e())}function Z($e){if($e.status!==2){var ut=tn,zt=yt.current;yt.current=Ko;var Ht=Ie;Ie=$e.responseState;try{var Fn=$e.pingedTasks,Cn;for(Cn=0;Cn<Fn.length;Cn++){var tr=Fn[Cn],Jn=$e,ei=tr.blockedSegment;if(ei.status===0){gi(tr.context);try{Jr(Jn,tr,tr.node),ei.lastPushedText&&ei.textEmbedded&&ei.chunks.push(ne),tr.abortSet.delete(tr),ei.status=1,Yn(Jn,tr.blockedBoundary,ei)}catch(Yo){if(Dr(),typeof Yo=="object"&&Yo!==null&&typeof Yo.then=="function"){var Ci=tr.ping;Yo.then(Ci,Ci)}else{tr.abortSet.delete(tr),ei.status=4;var zi=tr.blockedBoundary,co=Yo,Xo=Mi(Jn,co);if(zi===null?Ui(Jn,co):(zi.pendingTasks--,zi.forceClientRender||(zi.forceClientRender=!0,zi.errorDigest=Xo,zi.parentFlushed&&Jn.clientRenderedBoundaries.push(zi))),Jn.allPendingTasks--,Jn.allPendingTasks===0){var Eo=Jn.onAllReady;Eo()}}}finally{}}}Fn.splice(0,Cn),$e.destination!==null&&Lt($e,$e.destination)}catch(Yo){Mi($e,Yo),Ui($e,Yo)}finally{Ie=Ht,yt.current=zt,zt===Ko&&gi(ut)}}}function se($e,ut,zt){switch(zt.parentFlushed=!0,zt.status){case 0:var Ht=zt.id=$e.nextSegmentId++;return zt.lastPushedText=!1,zt.textEmbedded=!1,$e=$e.responseState,u(ut,I),u(ut,$e.placeholderPrefix),$e=h(Ht.toString(16)),u(ut,$e),f(ut,K);case 1:zt.status=2;var Fn=!0;Ht=zt.chunks;var Cn=0;zt=zt.children;for(var tr=0;tr<zt.length;tr++){for(Fn=zt[tr];Cn<Fn.index;Cn++)u(ut,Ht[Cn]);Fn=G($e,ut,Fn)}for(;Cn<Ht.length-1;Cn++)u(ut,Ht[Cn]);return Cn<Ht.length&&(Fn=f(ut,Ht[Cn])),Fn;default:throw Error(l(390))}}function G($e,ut,zt){var Ht=zt.boundary;if(Ht===null)return se($e,ut,zt);if(Ht.parentFlushed=!0,Ht.forceClientRender)Ht=Ht.errorDigest,f(ut,Fe),u(ut,qe),Ht&&(u(ut,_t),u(ut,h(_(Ht))),u(ut,We)),f(ut,ct),se($e,ut,zt);else if(0<Ht.pendingTasks){Ht.rootSegmentID=$e.nextSegmentId++,0<Ht.completedSegments.length&&$e.partialBoundaries.push(Ht);var Fn=$e.responseState,Cn=Fn.nextSuspenseID++;Fn=d(Fn.boundaryPrefix+Cn.toString(16)),Ht=Ht.id=Fn,Ge(ut,$e.responseState,Ht),se($e,ut,zt)}else if(Ht.byteSize>$e.progressiveChunkSize)Ht.rootSegmentID=$e.nextSegmentId++,$e.completedBoundaries.push(Ht),Ge(ut,$e.responseState,Ht.id),se($e,ut,zt);else{if(f(ut,ue),zt=Ht.completedSegments,zt.length!==1)throw Error(l(391));G($e,ut,zt[0])}return f(ut,ze)}function B($e,ut,zt){return Dt(ut,$e.responseState,zt.formatContext,zt.id),G($e,ut,zt),hn(ut,zt.formatContext)}function Pe($e,ut,zt){for(var Ht=zt.completedSegments,Fn=0;Fn<Ht.length;Fn++)dt($e,ut,zt,Ht[Fn]);if(Ht.length=0,$e=$e.responseState,Ht=zt.id,zt=zt.rootSegmentID,u(ut,$e.startInlineScript),$e.sentCompleteBoundaryFunction?u(ut,Gn):($e.sentCompleteBoundaryFunction=!0,u(ut,En)),Ht===null)throw Error(l(395));return zt=h(zt.toString(16)),u(ut,Ht),u(ut,rr),u(ut,$e.segmentPrefix),u(ut,zt),f(ut,sr)}function dt($e,ut,zt,Ht){if(Ht.status===2)return!0;var Fn=Ht.id;if(Fn===-1){if((Ht.id=zt.rootSegmentID)===-1)throw Error(l(392));return B($e,ut,Ht)}return B($e,ut,Ht),$e=$e.responseState,u(ut,$e.startInlineScript),$e.sentCompleteSegmentFunction?u(ut,an):($e.sentCompleteSegmentFunction=!0,u(ut,cn)),u(ut,$e.segmentPrefix),Fn=h(Fn.toString(16)),u(ut,Fn),u(ut,Or),u(ut,$e.placeholderPrefix),u(ut,Fn),f(ut,Ln)}function Lt($e,ut){s=new Uint8Array(512),m=0;try{var zt=$e.completedRootSegment;if(zt!==null&&$e.pendingRootTasks===0){G($e,ut,zt),$e.completedRootSegment=null;var Ht=$e.responseState.bootstrapChunks;for(zt=0;zt<Ht.length-1;zt++)u(ut,Ht[zt]);zt<Ht.length&&f(ut,Ht[zt])}var Fn=$e.clientRenderedBoundaries,Cn;for(Cn=0;Cn<Fn.length;Cn++){var tr=Fn[Cn];Ht=ut;var Jn=$e.responseState,ei=tr.id,Ci=tr.errorDigest,zi=tr.errorMessage,co=tr.errorComponentStack;if(u(Ht,Jn.startInlineScript),Jn.sentClientRenderFunction?u(Ht,yi):(Jn.sentClientRenderFunction=!0,u(Ht,pi)),ei===null)throw Error(l(395));if(u(Ht,ei),u(Ht,jr),(Ci||zi||co)&&(u(Ht,bi),u(Ht,h(hi(Ci||"")))),(zi||co)&&(u(Ht,bi),u(Ht,h(hi(zi||"")))),co&&(u(Ht,bi),u(Ht,h(hi(co)))),!f(Ht,ui)){$e.destination=null,Cn++,Fn.splice(0,Cn);return}}Fn.splice(0,Cn);var Xo=$e.completedBoundaries;for(Cn=0;Cn<Xo.length;Cn++)if(!Pe($e,ut,Xo[Cn])){$e.destination=null,Cn++,Xo.splice(0,Cn);return}Xo.splice(0,Cn),p(ut),s=new Uint8Array(512),m=0;var Eo=$e.partialBoundaries;for(Cn=0;Cn<Eo.length;Cn++){var Yo=Eo[Cn];e:{Fn=$e,tr=ut;var Xn=Yo.completedSegments;for(Jn=0;Jn<Xn.length;Jn++)if(!dt(Fn,tr,Yo,Xn[Jn])){Jn++,Xn.splice(0,Jn);var fr=!1;break e}Xn.splice(0,Jn),fr=!0}if(!fr){$e.destination=null,Cn++,Eo.splice(0,Cn);return}}Eo.splice(0,Cn);var mr=$e.completedBoundaries;for(Cn=0;Cn<mr.length;Cn++)if(!Pe($e,ut,mr[Cn])){$e.destination=null,Cn++,mr.splice(0,Cn);return}mr.splice(0,Cn)}finally{p(ut),$e.allPendingTasks===0&&$e.pingedTasks.length===0&&$e.clientRenderedBoundaries.length===0&&$e.completedBoundaries.length===0&&ut.close()}}function Pt($e,ut){try{var zt=$e.abortableTasks;zt.forEach(function(Ht){return Jo(Ht,$e,ut)}),zt.clear(),$e.destination!==null&&Lt($e,$e.destination)}catch(Ht){Mi($e,Ht),Ui($e,Ht)}}g.renderToReadableStream=function($e,ut){return new Promise(function(zt,Ht){var Fn,Cn,tr=new Promise(function(zi,co){Cn=zi,Fn=co}),Jn=er($e,V(ut?ut.identifierPrefix:void 0,ut?ut.nonce:void 0,ut?ut.bootstrapScriptContent:void 0,ut?ut.bootstrapScripts:void 0,ut?ut.bootstrapModules:void 0),Te(ut?ut.namespaceURI:void 0),ut?ut.progressiveChunkSize:void 0,ut?ut.onError:void 0,Cn,function(){var zi=new ReadableStream({type:"bytes",pull:function(co){if(Jn.status===1)Jn.status=2,b(co,Jn.fatalError);else if(Jn.status!==2&&Jn.destination===null){Jn.destination=co;try{Lt(Jn,co)}catch(Xo){Mi(Jn,Xo),Ui(Jn,Xo)}}},cancel:function(){Pt(Jn)}},{highWaterMark:0});zi.allReady=tr,zt(zi)},function(zi){tr.catch(function(){}),Ht(zi)},Fn);if(ut&&ut.signal){var ei=ut.signal,Ci=function(){Pt(Jn,ei.reason),ei.removeEventListener("abort",Ci)};ei.addEventListener("abort",Ci)}Z(Jn)})},g.version="18.2.0"},22551:(J,g,t)=>{"use strict";/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=t(96540),l=t(69982);function s(x){for(var $="https://reactjs.org/docs/error-decoder.html?invariant="+x,je=1;je<arguments.length;je++)$+="&args[]="+encodeURIComponent(arguments[je]);return"Minified React error #"+x+"; visit "+$+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m=new Set,u={};function f(x,$){p(x,$),p(x+"Capture",$)}function p(x,$){for(u[x]=$,x=0;x<$.length;x++)m.add($[x])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},y={};function w(x){return h.call(y,x)?!0:h.call(b,x)?!1:d.test(x)?y[x]=!0:(b[x]=!0,!1)}function S(x,$,je,Mt){if(je!==null&&je.type===0)return!1;switch(typeof $){case"function":case"symbol":return!0;case"boolean":return Mt?!1:je!==null?!je.acceptsBooleans:(x=x.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-");default:return!1}}function O(x,$,je,Mt){if($===null||typeof $>"u"||S(x,$,je,Mt))return!0;if(Mt)return!1;if(je!==null)switch(je.type){case 3:return!$;case 4:return $===!1;case 5:return isNaN($);case 6:return isNaN($)||1>$}return!1}function R(x,$,je,Mt,Tn,ur,Li){this.acceptsBooleans=$===2||$===3||$===4,this.attributeName=Mt,this.attributeNamespace=Tn,this.mustUseProperty=je,this.propertyName=x,this.type=$,this.sanitizeURL=ur,this.removeEmptyString=Li}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(x){M[x]=new R(x,0,!1,x,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(x){var $=x[0];M[$]=new R($,1,!1,x[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(x){M[x]=new R(x,2,!1,x.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(x){M[x]=new R(x,2,!1,x,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(x){M[x]=new R(x,3,!1,x.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(x){M[x]=new R(x,3,!0,x,null,!1,!1)}),["capture","download"].forEach(function(x){M[x]=new R(x,4,!1,x,null,!1,!1)}),["cols","rows","size","span"].forEach(function(x){M[x]=new R(x,6,!1,x,null,!1,!1)}),["rowSpan","start"].forEach(function(x){M[x]=new R(x,5,!1,x.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function P(x){return x[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(x){var $=x.replace(D,P);M[$]=new R($,1,!1,x,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(x){var $=x.replace(D,P);M[$]=new R($,1,!1,x,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(x){var $=x.replace(D,P);M[$]=new R($,1,!1,x,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(x){M[x]=new R(x,1,!1,x.toLowerCase(),null,!1,!1)}),M.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(x){M[x]=new R(x,1,!1,x.toLowerCase(),null,!0,!0)});function T(x,$,je,Mt){var Tn=M.hasOwnProperty($)?M[$]:null;(Tn!==null?Tn.type!==0:Mt||!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N")&&(O($,je,Tn,Mt)&&(je=null),Mt||Tn===null?w($)&&(je===null?x.removeAttribute($):x.setAttribute($,""+je)):Tn.mustUseProperty?x[Tn.propertyName]=je===null?Tn.type===3?!1:"":je:($=Tn.attributeName,Mt=Tn.attributeNamespace,je===null?x.removeAttribute($):(Tn=Tn.type,je=Tn===3||Tn===4&&je===!0?"":""+je,Mt?x.setAttributeNS(Mt,$,je):x.setAttribute($,je))))}var A=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),ae=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),he=Symbol.for("react.provider"),me=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),re=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var H=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var V=Symbol.iterator;function Q(x){return x===null||typeof x!="object"?null:(x=V&&x[V]||x["@@iterator"],typeof x=="function"?x:null)}var Te=Object.assign,Re;function ne(x){if(Re===void 0)try{throw Error()}catch(je){var $=je.stack.trim().match(/\n( *(at )?)/);Re=$&&$[1]||""}return` `+Re+x}var pe=!1;function ye(x,$){if(!x||pe)return"";pe=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if($)if($=function(){throw Error()},Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(ps){var Mt=ps}Reflect.construct(x,[],$)}else{try{$.call()}catch(ps){Mt=ps}x.call($.prototype)}else{try{throw Error()}catch(ps){Mt=ps}x()}}catch(ps){if(ps&&Mt&&typeof ps.stack=="string"){for(var Tn=ps.stack.split(` `),ur=Mt.stack.split(` `),Li=Tn.length-1,Vo=ur.length-1;1<=Li&&0<=Vo&&Tn[Li]!==ur[Vo];)Vo--;for(;1<=Li&&0<=Vo;Li--,Vo--)if(Tn[Li]!==ur[Vo]){if(Li!==1||Vo!==1)do if(Li--,Vo--,0>Vo||Tn[Li]!==ur[Vo]){var ga=` `+Tn[Li].replace(" at new "," at ");return x.displayName&&ga.includes("<anonymous>")&&(ga=ga.replace("<anonymous>",x.displayName)),ga}while(1<=Li&&0<=Vo);break}}}finally{pe=!1,Error.prepareStackTrace=je}return(x=x?x.displayName||x.name:"")?ne(x):""}function Se(x){switch(x.tag){case 5:return ne(x.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return x=ye(x.type,!1),x;case 11:return x=ye(x.type.render,!1),x;case 1:return x=ye(x.type,!0),x;default:return""}}function Ae(x){if(x==null)return null;if(typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case _:return"Fragment";case ae:return"Portal";case W:return"Profiler";case N:return"StrictMode";case ve:return"Suspense";case ce:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case me:return(x.displayName||"Context")+".Consumer";case he:return(x._context.displayName||"Context")+".Provider";case fe:var $=x.render;return x=x.displayName,x||(x=$.displayName||$.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case oe:return $=x.displayName||null,$!==null?$:Ae(x.type)||"Memo";case re:$=x._payload,x=x._init;try{return Ae(x($))}catch{}}return null}function Ee(x){var $=x.type;switch(x.tag){case 24:return"Cache";case 9:return($.displayName||"Context")+".Consumer";case 10:return($._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return x=$.render,x=x.displayName||x.name||"",$.displayName||(x!==""?"ForwardRef("+x+")":"ForwardRef");case 7:return"Fragment";case 5:return $;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ae($);case 8:return $===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $}return null}function xe(x){switch(typeof x){case"boolean":case"number":case"string":case"undefined":return x;case"object":return x;default:return""}}function nt(x){var $=x.type;return(x=x.nodeName)&&x.toLowerCase()==="input"&&($==="checkbox"||$==="radio")}function Tt(x){var $=nt(x)?"checked":"value",je=Object.getOwnPropertyDescriptor(x.constructor.prototype,$),Mt=""+x[$];if(!x.hasOwnProperty($)&&typeof je<"u"&&typeof je.get=="function"&&typeof je.set=="function"){var Tn=je.get,ur=je.set;return Object.defineProperty(x,$,{configurable:!0,get:function(){return Tn.call(this)},set:function(Li){Mt=""+Li,ur.call(this,Li)}}),Object.defineProperty(x,$,{enumerable:je.enumerable}),{getValue:function(){return Mt},setValue:function(Li){Mt=""+Li},stopTracking:function(){x._valueTracker=null,delete x[$]}}}}function pt(x){x._valueTracker||(x._valueTracker=Tt(x))}function Rt(x){if(!x)return!1;var $=x._valueTracker;if(!$)return!0;var je=$.getValue(),Mt="";return x&&(Mt=nt(x)?x.checked?"true":"false":x.value),x=Mt,x!==je?($.setValue(x),!0):!1}function tt(x){if(x=x||(typeof document<"u"?document:void 0),typeof x>"u")return null;try{return x.activeElement||x.body}catch{return x.body}}function U(x,$){var je=$.checked;return Te({},$,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:je??x._wrapperState.initialChecked})}function F(x,$){var je=$.defaultValue==null?"":$.defaultValue,Mt=$.checked!=null?$.checked:$.defaultChecked;je=xe($.value!=null?$.value:je),x._wrapperState={initialChecked:Mt,initialValue:je,controlled:$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null}}function Y(x,$){$=$.checked,$!=null&&T(x,"checked",$,!1)}function le(x,$){Y(x,$);var je=xe($.value),Mt=$.type;if(je!=null)Mt==="number"?(je===0&&x.value===""||x.value!=je)&&(x.value=""+je):x.value!==""+je&&(x.value=""+je);else if(Mt==="submit"||Mt==="reset"){x.removeAttribute("value");return}$.hasOwnProperty("value")?Ye(x,$.type,je):$.hasOwnProperty("defaultValue")&&Ye(x,$.type,xe($.defaultValue)),$.checked==null&&$.defaultChecked!=null&&(x.defaultChecked=!!$.defaultChecked)}function ke(x,$,je){if($.hasOwnProperty("value")||$.hasOwnProperty("defaultValue")){var Mt=$.type;if(!(Mt!=="submit"&&Mt!=="reset"||$.value!==void 0&&$.value!==null))return;$=""+x._wrapperState.initialValue,je||$===x.value||(x.value=$),x.defaultValue=$}je=x.name,je!==""&&(x.name=""),x.defaultChecked=!!x._wrapperState.initialChecked,je!==""&&(x.name=je)}function Ye(x,$,je){($!=="number"||tt(x.ownerDocument)!==x)&&(je==null?x.defaultValue=""+x._wrapperState.initialValue:x.defaultValue!==""+je&&(x.defaultValue=""+je))}var ft=Array.isArray;function wt(x,$,je,Mt){if(x=x.options,$){$={};for(var Tn=0;Tn<je.length;Tn++)$["$"+je[Tn]]=!0;for(je=0;je<x.length;je++)Tn=$.hasOwnProperty("$"+x[je].value),x[je].selected!==Tn&&(x[je].selected=Tn),Tn&&Mt&&(x[je].defaultSelected=!0)}else{for(je=""+xe(je),$=null,Tn=0;Tn<x.length;Tn++){if(x[Tn].value===je){x[Tn].selected=!0,Mt&&(x[Tn].defaultSelected=!0);return}$!==null||x[Tn].disabled||($=x[Tn])}$!==null&&($.selected=!0)}}function Ut(x,$){if($.dangerouslySetInnerHTML!=null)throw Error(s(91));return Te({},$,{value:void 0,defaultValue:void 0,children:""+x._wrapperState.initialValue})}function Ke(x,$){var je=$.value;if(je==null){if(je=$.children,$=$.defaultValue,je!=null){if($!=null)throw Error(s(92));if(ft(je)){if(1<je.length)throw Error(s(93));je=je[0]}$=je}$==null&&($=""),je=$}x._wrapperState={initialValue:xe(je)}}function it(x,$){var je=xe($.value),Mt=xe($.defaultValue);je!=null&&(je=""+je,je!==x.value&&(x.value=je),$.defaultValue==null&&x.defaultValue!==je&&(x.defaultValue=je)),Mt!=null&&(x.defaultValue=""+Mt)}function At(x){var $=x.textContent;$===x._wrapperState.initialValue&&$!==""&&$!==null&&(x.value=$)}function et(x){switch(x){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ee(x,$){return x==null||x==="http://www.w3.org/1999/xhtml"?et($):x==="http://www.w3.org/2000/svg"&&$==="foreignObject"?"http://www.w3.org/1999/xhtml":x}var I,K=function(x){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function($,je,Mt,Tn){MSApp.execUnsafeLocalFunction(function(){return x($,je,Mt,Tn)})}:x}(function(x,$){if(x.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in x)x.innerHTML=$;else{for(I=I||document.createElement("div"),I.innerHTML="<svg>"+$.valueOf().toString()+"</svg>",$=I.firstChild;x.firstChild;)x.removeChild(x.firstChild);for(;$.firstChild;)x.appendChild($.firstChild)}});function ue(x,$){if($){var je=x.firstChild;if(je&&je===x.lastChild&&je.nodeType===3){je.nodeValue=$;return}}x.textContent=$}var De={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},He=["Webkit","ms","Moz","O"];Object.keys(De).forEach(function(x){He.forEach(function($){$=$+x.charAt(0).toUpperCase()+x.substring(1),De[$]=De[x]})});function Fe(x,$,je){return $==null||typeof $=="boolean"||$===""?"":je||typeof $!="number"||$===0||De.hasOwnProperty(x)&&De[x]?(""+$).trim():$+"px"}function ze(x,$){x=x.style;for(var je in $)if($.hasOwnProperty(je)){var Mt=je.indexOf("--")===0,Tn=Fe(je,$[je],Mt);je==="float"&&(je="cssFloat"),Mt?x.setProperty(je,Tn):x[je]=Tn}}var qe=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function We(x,$){if($){if(qe[x]&&($.children!=null||$.dangerouslySetInnerHTML!=null))throw Error(s(137,x));if($.dangerouslySetInnerHTML!=null){if($.children!=null)throw Error(s(60));if(typeof $.dangerouslySetInnerHTML!="object"||!("__html"in $.dangerouslySetInnerHTML))throw Error(s(61))}if($.style!=null&&typeof $.style!="object")throw Error(s(62))}}function _t(x,$){if(x.indexOf("-")===-1)return typeof $.is=="string";switch(x){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ct=null;function Ge(x){return x=x.target||x.srcElement||window,x.correspondingUseElement&&(x=x.correspondingUseElement),x.nodeType===3?x.parentNode:x}var st=null,Me=null,ie=null;function ge(x){if(x=Wa(x)){if(typeof st!="function")throw Error(s(280));var $=x.stateNode;$&&($=Ws($),st(x.stateNode,x.type,$))}}function z(x){Me?ie?ie.push(x):ie=[x]:Me=x}function be(){if(Me){var x=Me,$=ie;if(ie=Me=null,ge(x),$)for(x=0;x<$.length;x++)ge($[x])}}function Qe(x,$){return x($)}function Bt(){}var nn=!1;function bt(x,$,je){if(nn)return x($,je);nn=!0;try{return Qe(x,$,je)}finally{nn=!1,(Me!==null||ie!==null)&&(Bt(),be())}}function at(x,$){var je=x.stateNode;if(je===null)return null;var Mt=Ws(je);if(Mt===null)return null;je=Mt[$];e:switch($){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Mt=!Mt.disabled)||(x=x.type,Mt=!(x==="button"||x==="input"||x==="select"||x==="textarea")),x=!Mt;break e;default:x=!1}if(x)return null;if(je&&typeof je!="function")throw Error(s(231,$,typeof je));return je}var $t=!1;if(v)try{var On={};Object.defineProperty(On,"passive",{get:function(){$t=!0}}),window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{$t=!1}function Ct(x,$,je,Mt,Tn,ur,Li,Vo,ga){var ps=Array.prototype.slice.call(arguments,3);try{$.apply(je,ps)}catch(tu){this.onError(tu)}}var Zt=!1,Wn=null,Zn=!1,xt=null,Xe={onError:function(x){Zt=!0,Wn=x}};function gn(x,$,je,Mt,Tn,ur,Li,Vo,ga){Zt=!1,Wn=null,Ct.apply(Xe,arguments)}function Qt(x,$,je,Mt,Tn,ur,Li,Vo,ga){if(gn.apply(this,arguments),Zt){if(Zt){var ps=Wn;Zt=!1,Wn=null}else throw Error(s(198));Zn||(Zn=!0,xt=ps)}}function Dt(x){var $=x,je=x;if(x.alternate)for(;$.return;)$=$.return;else{x=$;do $=x,$.flags&4098&&(je=$.return),x=$.return;while(x)}return $.tag===3?je:null}function hn(x){if(x.tag===13){var $=x.memoizedState;if($===null&&(x=x.alternate,x!==null&&($=x.memoizedState)),$!==null)return $.dehydrated}return null}function cn(x){if(Dt(x)!==x)throw Error(s(188))}function an(x){var $=x.alternate;if(!$){if($=Dt(x),$===null)throw Error(s(188));return $!==x?null:x}for(var je=x,Mt=$;;){var Tn=je.return;if(Tn===null)break;var ur=Tn.alternate;if(ur===null){if(Mt=Tn.return,Mt!==null){je=Mt;continue}break}if(Tn.child===ur.child){for(ur=Tn.child;ur;){if(ur===je)return cn(Tn),x;if(ur===Mt)return cn(Tn),$;ur=ur.sibling}throw Error(s(188))}if(je.return!==Mt.return)je=Tn,Mt=ur;else{for(var Li=!1,Vo=Tn.child;Vo;){if(Vo===je){Li=!0,je=Tn,Mt=ur;break}if(Vo===Mt){Li=!0,Mt=Tn,je=ur;break}Vo=Vo.sibling}if(!Li){for(Vo=ur.child;Vo;){if(Vo===je){Li=!0,je=ur,Mt=Tn;break}if(Vo===Mt){Li=!0,Mt=ur,je=Tn;break}Vo=Vo.sibling}if(!Li)throw Error(s(189))}}if(je.alternate!==Mt)throw Error(s(190))}if(je.tag!==3)throw Error(s(188));return je.stateNode.current===je?x:$}function Or(x){return x=an(x),x!==null?Ln(x):null}function Ln(x){if(x.tag===5||x.tag===6)return x;for(x=x.child;x!==null;){var $=Ln(x);if($!==null)return $;x=x.sibling}return null}var En=l.unstable_scheduleCallback,Gn=l.unstable_cancelCallback,rr=l.unstable_shouldYield,sr=l.unstable_requestPaint,pi=l.unstable_now,yi=l.unstable_getCurrentPriorityLevel,jr=l.unstable_ImmediatePriority,ui=l.unstable_UserBlockingPriority,bi=l.unstable_NormalPriority,ri=l.unstable_LowPriority,hi=l.unstable_IdlePriority,Si=null,Kr=null;function xi(x){if(Kr&&typeof Kr.onCommitFiberRoot=="function")try{Kr.onCommitFiberRoot(Si,x,void 0,(x.current.flags&128)===128)}catch{}}var Ai=Math.clz32?Math.clz32:lo,Pi=Math.log,io=Math.LN2;function lo(x){return x>>>=0,x===0?32:31-(Pi(x)/io|0)|0}var Gr=64,un=4194304;function qn(x){switch(x&-x){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return x&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return x&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return x}}function kn(x,$){var je=x.pendingLanes;if(je===0)return 0;var Mt=0,Tn=x.suspendedLanes,ur=x.pingedLanes,Li=je&268435455;if(Li!==0){var Vo=Li&~Tn;Vo!==0?Mt=qn(Vo):(ur&=Li,ur!==0&&(Mt=qn(ur)))}else Li=je&~Tn,Li!==0?Mt=qn(Li):ur!==0&&(Mt=qn(ur));if(Mt===0)return 0;if($!==0&&$!==Mt&&!($&Tn)&&(Tn=Mt&-Mt,ur=$&-$,Tn>=ur||Tn===16&&(ur&4194240)!==0))return $;if(Mt&4&&(Mt|=je&16),$=x.entangledLanes,$!==0)for(x=x.entanglements,$&=Mt;0<$;)je=31-Ai($),Tn=1<<je,Mt|=x[je],$&=~Tn;return Mt}function St(x,$){switch(x){case 1:case 2:case 4:return $+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return $+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ln(x,$){for(var je=x.suspendedLanes,Mt=x.pingedLanes,Tn=x.expirationTimes,ur=x.pendingLanes;0<ur;){var Li=31-Ai(ur),Vo=1<<Li,ga=Tn[Li];ga===-1?(!(Vo&je)||Vo&Mt)&&(Tn[Li]=St(Vo,$)):ga<=$&&(x.expiredLanes|=Vo),ur&=~Vo}}function An(x){return x=x.pendingLanes&-1073741825,x!==0?x:x&1073741824?1073741824:0}function Cr(){var x=Gr;return Gr<<=1,!(Gr&4194240)&&(Gr=64),x}function _i(x){for(var $=[],je=0;31>je;je++)$.push(x);return $}function Sn(x,$,je){x.pendingLanes|=$,$!==536870912&&(x.suspendedLanes=0,x.pingedLanes=0),x=x.eventTimes,$=31-Ai($),x[$]=je}function ir(x,$){var je=x.pendingLanes&~$;x.pendingLanes=$,x.suspendedLanes=0,x.pingedLanes=0,x.expiredLanes&=$,x.mutableReadLanes&=$,x.entangledLanes&=$,$=x.entanglements;var Mt=x.eventTimes;for(x=x.expirationTimes;0<je;){var Tn=31-Ai(je),ur=1<<Tn;$[Tn]=0,Mt[Tn]=-1,x[Tn]=-1,je&=~ur}}function mt(x,$){var je=x.entangledLanes|=$;for(x=x.entanglements;je;){var Mt=31-Ai(je),Tn=1<<Mt;Tn&$|x[Mt]&$&&(x[Mt]|=$),je&=~Tn}}var fn=0;function gt(x){return x&=-x,1<x?4<x?x&268435455?16:536870912:4:1}var tn,Vn,Ur,$r,Pr,zr=!1,gi=[],$i=null,eo=null,ki=null,so=new Map,Ho=new Map,ra=[],So="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gr(x,$){switch(x){case"focusin":case"focusout":$i=null;break;case"dragenter":case"dragleave":eo=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":so.delete($.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ho.delete($.pointerId)}}function di(x,$,je,Mt,Tn,ur){return x===null||x.nativeEvent!==ur?(x={blockedOn:$,domEventName:je,eventSystemFlags:Mt,nativeEvent:ur,targetContainers:[Tn]},$!==null&&($=Wa($),$!==null&&Vn($)),x):(x.eventSystemFlags|=Mt,$=x.targetContainers,Tn!==null&&$.indexOf(Tn)===-1&&$.push(Tn),x)}function Vi(x,$,je,Mt,Tn){switch($){case"focusin":return $i=di($i,x,$,je,Mt,Tn),!0;case"dragenter":return eo=di(eo,x,$,je,Mt,Tn),!0;case"mouseover":return ki=di(ki,x,$,je,Mt,Tn),!0;case"pointerover":var ur=Tn.pointerId;return so.set(ur,di(so.get(ur)||null,x,$,je,Mt,Tn)),!0;case"gotpointercapture":return ur=Tn.pointerId,Ho.set(ur,di(Ho.get(ur)||null,x,$,je,Mt,Tn)),!0}return!1}function Ro(x){var $=_a(x.target);if($!==null){var je=Dt($);if(je!==null){if($=je.tag,$===13){if($=hn(je),$!==null){x.blockedOn=$,Pr(x.priority,function(){Ur(je)});return}}else if($===3&&je.stateNode.current.memoizedState.isDehydrated){x.blockedOn=je.tag===3?je.stateNode.containerInfo:null;return}}}x.blockedOn=null}function na(x){if(x.blockedOn!==null)return!1;for(var $=x.targetContainers;0<$.length;){var je=Dr(x.domEventName,x.eventSystemFlags,$[0],x.nativeEvent);if(je===null){je=x.nativeEvent;var Mt=new je.constructor(je.type,je);ct=Mt,je.target.dispatchEvent(Mt),ct=null}else return $=Wa(je),$!==null&&Vn($),x.blockedOn=je,!1;$.shift()}return!0}function ta(x,$,je){na(x)&&je.delete($)}function aa(){zr=!1,$i!==null&&na($i)&&($i=null),eo!==null&&na(eo)&&(eo=null),ki!==null&&na(ki)&&(ki=null),so.forEach(ta),Ho.forEach(ta)}function vi(x,$){x.blockedOn===$&&(x.blockedOn=null,zr||(zr=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,aa)))}function to(x){function $(Tn){return vi(Tn,x)}if(0<gi.length){vi(gi[0],x);for(var je=1;je<gi.length;je++){var Mt=gi[je];Mt.blockedOn===x&&(Mt.blockedOn=null)}}for($i!==null&&vi($i,x),eo!==null&&vi(eo,x),ki!==null&&vi(ki,x),so.forEach($),Ho.forEach($),je=0;je<ra.length;je++)Mt=ra[je],Mt.blockedOn===x&&(Mt.blockedOn=null);for(;0<ra.length&&(je=ra[0],je.blockedOn===null);)Ro(je),je.blockedOn===null&&ra.shift()}var $o=A.ReactCurrentBatchConfig,ja=!0;function hs(x,$,je,Mt){var Tn=fn,ur=$o.transition;$o.transition=null;try{fn=1,as(x,$,je,Mt)}finally{fn=Tn,$o.transition=ur}}function ro(x,$,je,Mt){var Tn=fn,ur=$o.transition;$o.transition=null;try{fn=4,as(x,$,je,Mt)}finally{fn=Tn,$o.transition=ur}}function as(x,$,je,Mt){if(ja){var Tn=Dr(x,$,je,Mt);if(Tn===null)xn(x,$,Mt,rn,je),gr(x,Mt);else if(Vi(Tn,x,$,je,Mt))Mt.stopPropagation();else if(gr(x,Mt),$&4&&-1<So.indexOf(x)){for(;Tn!==null;){var ur=Wa(Tn);if(ur!==null&&tn(ur),ur=Dr(x,$,je,Mt),ur===null&&xn(x,$,Mt,rn,je),ur===Tn)break;Tn=ur}Tn!==null&&Mt.stopPropagation()}else xn(x,$,Mt,null,je)}}var rn=null;function Dr(x,$,je,Mt){if(rn=null,x=Ge(Mt),x=_a(x),x!==null)if($=Dt(x),$===null)x=null;else if(je=$.tag,je===13){if(x=hn($),x!==null)return x;x=null}else if(je===3){if($.stateNode.current.memoizedState.isDehydrated)return $.tag===3?$.stateNode.containerInfo:null;x=null}else $!==x&&(x=null);return rn=x,null}function Lr(x){switch(x){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(yi()){case jr:return 1;case ui:return 4;case bi:case ri:return 16;case hi:return 536870912;default:return 16}default:return 16}}var li=null,Zi=null,Di=null;function wo(){if(Di)return Di;var x,$=Zi,je=$.length,Mt,Tn="value"in li?li.value:li.textContent,ur=Tn.length;for(x=0;x<je&&$[x]===Tn[x];x++);var Li=je-x;for(Mt=1;Mt<=Li&&$[je-Mt]===Tn[ur-Mt];Mt++);return Di=Tn.slice(x,1<Mt?1-Mt:void 0)}function Go(x){var $=x.keyCode;return"charCode"in x?(x=x.charCode,x===0&&$===13&&(x=13)):x=$,x===10&&(x=13),32<=x||x===13?x:0}function Ko(){return!0}function Ie(){return!1}function yt(x){function $(je,Mt,Tn,ur,Li){this._reactName=je,this._targetInst=Tn,this.type=Mt,this.nativeEvent=ur,this.target=Li,this.currentTarget=null;for(var Vo in x)x.hasOwnProperty(Vo)&&(je=x[Vo],this[Vo]=je?je(ur):ur[Vo]);return this.isDefaultPrevented=(ur.defaultPrevented!=null?ur.defaultPrevented:ur.returnValue===!1)?Ko:Ie,this.isPropagationStopped=Ie,this}return Te($.prototype,{preventDefault:function(){this.defaultPrevented=!0;var je=this.nativeEvent;je&&(je.preventDefault?je.preventDefault():typeof je.returnValue!="unknown"&&(je.returnValue=!1),this.isDefaultPrevented=Ko)},stopPropagation:function(){var je=this.nativeEvent;je&&(je.stopPropagation?je.stopPropagation():typeof je.cancelBubble!="unknown"&&(je.cancelBubble=!0),this.isPropagationStopped=Ko)},persist:function(){},isPersistent:Ko}),$}var on={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(x){return x.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_n=yt(on),er=Te({},on,{view:0,detail:0}),or=yt(er),Er,Mi,Ui,Nn=Te({},er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dt,button:0,buttons:0,relatedTarget:function(x){return x.relatedTarget===void 0?x.fromElement===x.srcElement?x.toElement:x.fromElement:x.relatedTarget},movementX:function(x){return"movementX"in x?x.movementX:(x!==Ui&&(Ui&&x.type==="mousemove"?(Er=x.screenX-Ui.screenX,Mi=x.screenY-Ui.screenY):Mi=Er=0,Ui=x),Er)},movementY:function(x){return"movementY"in x?x.movementY:Mi}}),cr=yt(Nn),ni=Te({},Nn,{dataTransfer:0}),Xr=yt(ni),Jr=Te({},er,{relatedTarget:0}),Qi=yt(Jr),Fo=Te({},on,{animationName:0,elapsedTime:0,pseudoElement:0}),No=yt(Fo),Jo=Te({},on,{clipboardData:function(x){return"clipboardData"in x?x.clipboardData:window.clipboardData}}),br=yt(Jo),Yn=Te({},on,{data:0}),Z=yt(Yn),se={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},B={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pe(x){var $=this.nativeEvent;return $.getModifierState?$.getModifierState(x):(x=B[x])?!!$[x]:!1}function dt(){return Pe}var Lt=Te({},er,{key:function(x){if(x.key){var $=se[x.key]||x.key;if($!=="Unidentified")return $}return x.type==="keypress"?(x=Go(x),x===13?"Enter":String.fromCharCode(x)):x.type==="keydown"||x.type==="keyup"?G[x.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dt,charCode:function(x){return x.type==="keypress"?Go(x):0},keyCode:function(x){return x.type==="keydown"||x.type==="keyup"?x.keyCode:0},which:function(x){return x.type==="keypress"?Go(x):x.type==="keydown"||x.type==="keyup"?x.keyCode:0}}),Pt=yt(Lt),$e=Te({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ut=yt($e),zt=Te({},er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dt}),Ht=yt(zt),Fn=Te({},on,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cn=yt(Fn),tr=Te({},Nn,{deltaX:function(x){return"deltaX"in x?x.deltaX:"wheelDeltaX"in x?-x.wheelDeltaX:0},deltaY:function(x){return"deltaY"in x?x.deltaY:"wheelDeltaY"in x?-x.wheelDeltaY:"wheelDelta"in x?-x.wheelDelta:0},deltaZ:0,deltaMode:0}),Jn=yt(tr),ei=[9,13,27,32],Ci=v&&"CompositionEvent"in window,zi=null;v&&"documentMode"in document&&(zi=document.documentMode);var co=v&&"TextEvent"in window&&!zi,Xo=v&&(!Ci||zi&&8<zi&&11>=zi),Eo=String.fromCharCode(32),Yo=!1;function Xn(x,$){switch(x){case"keyup":return ei.indexOf($.keyCode)!==-1;case"keydown":return $.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fr(x){return x=x.detail,typeof x=="object"&&"data"in x?x.data:null}var mr=!1;function yr(x,$){switch(x){case"compositionend":return fr($);case"keypress":return $.which!==32?null:(Yo=!0,Eo);case"textInput":return x=$.data,x===Eo&&Yo?null:x;default:return null}}function Rr(x,$){if(mr)return x==="compositionend"||!Ci&&Xn(x,$)?(x=wo(),Di=Zi=li=null,mr=!1,x):null;switch(x){case"paste":return null;case"keypress":if(!($.ctrlKey||$.altKey||$.metaKey)||$.ctrlKey&&$.altKey){if($.char&&1<$.char.length)return $.char;if($.which)return String.fromCharCode($.which)}return null;case"compositionend":return Xo&&$.locale!=="ko"?null:$.data;default:return null}}var ai={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jt(x){var $=x&&x.nodeName&&x.nodeName.toLowerCase();return $==="input"?!!ai[x.type]:$==="textarea"}function Pn(x,$,je,Mt){z(Mt),$=wr($,"onChange"),0<$.length&&(je=new _n("onChange","change",null,je,Mt),x.push({event:je,listeners:$}))}var nr=null,Ir=null;function fi(x){Le(x,0)}function Ti(x){var $=eu(x);if(Rt($))return x}function Oe(x,$){if(x==="change")return $}var pn=!1;if(v){var Qn;if(v){var Sr="oninput"in document;if(!Sr){var hr=document.createElement("div");hr.setAttribute("oninput","return;"),Sr=typeof hr.oninput=="function"}Qn=Sr}else Qn=!1;pn=Qn&&(!document.documentMode||9<document.documentMode)}function kr(){nr&&(nr.detachEvent("onpropertychange",Ve),Ir=nr=null)}function Ve(x){if(x.propertyName==="value"&&Ti(Ir)){var $=[];Pn($,Ir,x,Ge(x)),bt(fi,$)}}function Ot(x,$,je){x==="focusin"?(kr(),nr=$,Ir=je,nr.attachEvent("onpropertychange",Ve)):x==="focusout"&&kr()}function wn(x){if(x==="selectionchange"||x==="keyup"||x==="keydown")return Ti(Ir)}function Wt(x,$){if(x==="click")return Ti($)}function Yt(x,$){if(x==="input"||x==="change")return Ti($)}function zn(x,$){return x===$&&(x!==0||1/x===1/$)||x!==x&&$!==$}var Nr=typeof Object.is=="function"?Object.is:zn;function si(x,$){if(Nr(x,$))return!0;if(typeof x!="object"||x===null||typeof $!="object"||$===null)return!1;var je=Object.keys(x),Mt=Object.keys($);if(je.length!==Mt.length)return!1;for(Mt=0;Mt<je.length;Mt++){var Tn=je[Mt];if(!h.call($,Tn)||!Nr(x[Tn],$[Tn]))return!1}return!0}function Ki(x){for(;x&&x.firstChild;)x=x.firstChild;return x}function Bi(x,$){var je=Ki(x);x=0;for(var Mt;je;){if(je.nodeType===3){if(Mt=x+je.textContent.length,x<=$&&Mt>=$)return{node:je,offset:$-x};x=Mt}e:{for(;je;){if(je.nextSibling){je=je.nextSibling;break e}je=je.parentNode}je=void 0}je=Ki(je)}}function Xi(x,$){return x&&$?x===$?!0:x&&x.nodeType===3?!1:$&&$.nodeType===3?Xi(x,$.parentNode):"contains"in x?x.contains($):x.compareDocumentPosition?!!(x.compareDocumentPosition($)&16):!1:!1}function vo(){for(var x=window,$=tt();$ instanceof x.HTMLIFrameElement;){try{var je=typeof $.contentWindow.location.href=="string"}catch{je=!1}if(je)x=$.contentWindow;else break;$=tt(x.document)}return $}function ea(x){var $=x&&x.nodeName&&x.nodeName.toLowerCase();return $&&($==="input"&&(x.type==="text"||x.type==="search"||x.type==="tel"||x.type==="url"||x.type==="password")||$==="textarea"||x.contentEditable==="true")}function la(x){var $=vo(),je=x.focusedElem,Mt=x.selectionRange;if($!==je&&je&&je.ownerDocument&&Xi(je.ownerDocument.documentElement,je)){if(Mt!==null&&ea(je)){if($=Mt.start,x=Mt.end,x===void 0&&(x=$),"selectionStart"in je)je.selectionStart=$,je.selectionEnd=Math.min(x,je.value.length);else if(x=($=je.ownerDocument||document)&&$.defaultView||window,x.getSelection){x=x.getSelection();var Tn=je.textContent.length,ur=Math.min(Mt.start,Tn);Mt=Mt.end===void 0?ur:Math.min(Mt.end,Tn),!x.extend&&ur>Mt&&(Tn=Mt,Mt=ur,ur=Tn),Tn=Bi(je,ur);var Li=Bi(je,Mt);Tn&&Li&&(x.rangeCount!==1||x.anchorNode!==Tn.node||x.anchorOffset!==Tn.offset||x.focusNode!==Li.node||x.focusOffset!==Li.offset)&&($=$.createRange(),$.setStart(Tn.node,Tn.offset),x.removeAllRanges(),ur>Mt?(x.addRange($),x.extend(Li.node,Li.offset)):($.setEnd(Li.node,Li.offset),x.addRange($)))}}for($=[],x=je;x=x.parentNode;)x.nodeType===1&&$.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof je.focus=="function"&&je.focus(),je=0;je<$.length;je++)x=$[je],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}var ss=v&&"documentMode"in document&&11>=document.documentMode,Rs=null,Ds=null,Is=null,nu=!1;function Ls(x,$,je){var Mt=je.window===je?je.document:je.nodeType===9?je:je.ownerDocument;nu||Rs==null||Rs!==tt(Mt)||(Mt=Rs,"selectionStart"in Mt&&ea(Mt)?Mt={start:Mt.selectionStart,end:Mt.selectionEnd}:(Mt=(Mt.ownerDocument&&Mt.ownerDocument.defaultView||window).getSelection(),Mt={anchorNode:Mt.anchorNode,anchorOffset:Mt.anchorOffset,focusNode:Mt.focusNode,focusOffset:Mt.focusOffset}),Is&&si(Is,Mt)||(Is=Mt,Mt=wr(Ds,"onSelect"),0<Mt.length&&($=new _n("onSelect","select",null,$,je),x.push({event:$,listeners:Mt}),$.target=Rs)))}function gu(x,$){var je={};return je[x.toLowerCase()]=$.toLowerCase(),je["Webkit"+x]="webkit"+$,je["Moz"+x]="moz"+$,je}var Us={animationend:gu("Animation","AnimationEnd"),animationiteration:gu("Animation","AnimationIteration"),animationstart:gu("Animation","AnimationStart"),transitionend:gu("Transition","TransitionEnd")},Iu={},Wu={};v&&(Wu=document.createElement("div").style,"AnimationEvent"in window||(delete Us.animationend.animation,delete Us.animationiteration.animation,delete Us.animationstart.animation),"TransitionEvent"in window||delete Us.transitionend.transition);function rl(x){if(Iu[x])return Iu[x];if(!Us[x])return x;var $=Us[x],je;for(je in $)if($.hasOwnProperty(je)&&je in Wu)return Iu[x]=$[je];return x}var Hu=rl("animationend"),Ts=rl("animationiteration"),Al=rl("animationstart"),fl=rl("transitionend"),Rl=new Map,Bu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mn(x,$){Rl.set(x,$),f($,[x])}for(var en=0;en<Bu.length;en++){var sn=Bu[en],qt=sn.toLowerCase(),In=sn[0].toUpperCase()+sn.slice(1);Mn(qt,"on"+In)}Mn(Hu,"onAnimationEnd"),Mn(Ts,"onAnimationIteration"),Mn(Al,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(fl,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kn));function ci(x,$,je){var Mt=x.type||"unknown-event";x.currentTarget=je,Qt(Mt,$,void 0,x),x.currentTarget=null}function Le(x,$){$=($&4)!==0;for(var je=0;je<x.length;je++){var Mt=x[je],Tn=Mt.event;Mt=Mt.listeners;e:{var ur=void 0;if($)for(var Li=Mt.length-1;0<=Li;Li--){var Vo=Mt[Li],ga=Vo.instance,ps=Vo.currentTarget;if(Vo=Vo.listener,ga!==ur&&Tn.isPropagationStopped())break e;ci(Tn,Vo,ps),ur=ga}else for(Li=0;Li<Mt.length;Li++){if(Vo=Mt[Li],ga=Vo.instance,ps=Vo.currentTarget,Vo=Vo.listener,ga!==ur&&Tn.isPropagationStopped())break e;ci(Tn,Vo,ps),ur=ga}}}if(Zn)throw x=xt,Zn=!1,xt=null,x}function te(x,$){var je=$[ii];je===void 0&&(je=$[ii]=new Set);var Mt=x+"__bubble";je.has(Mt)||(Gt($,x,2,!1),je.add(Mt))}function Ue(x,$,je){var Mt=0;$&&(Mt|=4),Gt(je,x,Mt,$)}var rt="_reactListening"+Math.random().toString(36).slice(2);function ht(x){if(!x[rt]){x[rt]=!0,m.forEach(function(je){je!=="selectionchange"&&(Fr.has(je)||Ue(je,!1,x),Ue(je,!0,x))});var $=x.nodeType===9?x:x.ownerDocument;$===null||$[rt]||($[rt]=!0,Ue("selectionchange",!1,$))}}function Gt(x,$,je,Mt){switch(Lr($)){case 1:var Tn=hs;break;case 4:Tn=ro;break;default:Tn=as}je=Tn.bind(null,$,je,x),Tn=void 0,!$t||$!=="touchstart"&&$!=="touchmove"&&$!=="wheel"||(Tn=!0),Mt?Tn!==void 0?x.addEventListener($,je,{capture:!0,passive:Tn}):x.addEventListener($,je,!0):Tn!==void 0?x.addEventListener($,je,{passive:Tn}):x.addEventListener($,je,!1)}function xn(x,$,je,Mt,Tn){var ur=Mt;if(!($&1)&&!($&2)&&Mt!==null)e:for(;;){if(Mt===null)return;var Li=Mt.tag;if(Li===3||Li===4){var Vo=Mt.stateNode.containerInfo;if(Vo===Tn||Vo.nodeType===8&&Vo.parentNode===Tn)break;if(Li===4)for(Li=Mt.return;Li!==null;){var ga=Li.tag;if((ga===3||ga===4)&&(ga=Li.stateNode.containerInfo,ga===Tn||ga.nodeType===8&&ga.parentNode===Tn))return;Li=Li.return}for(;Vo!==null;){if(Li=_a(Vo),Li===null)return;if(ga=Li.tag,ga===5||ga===6){Mt=ur=Li;continue e}Vo=Vo.parentNode}}Mt=Mt.return}bt(function(){var ps=ur,tu=Ge(je),ru=[];e:{var Ks=Rl.get(x);if(Ks!==void 0){var Xu=_n,ul=x;switch(x){case"keypress":if(Go(je)===0)break e;case"keydown":case"keyup":Xu=Pt;break;case"focusin":ul="focus",Xu=Qi;break;case"focusout":ul="blur",Xu=Qi;break;case"beforeblur":case"afterblur":Xu=Qi;break;case"click":if(je.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Xu=cr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Xu=Xr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Xu=Ht;break;case Hu:case Ts:case Al:Xu=No;break;case fl:Xu=Cn;break;case"scroll":Xu=or;break;case"wheel":Xu=Jn;break;case"copy":case"cut":case"paste":Xu=br;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Xu=ut}var dl=($&4)!==0,Vf=!dl&&x==="scroll",ts=dl?Ks!==null?Ks+"Capture":null:Ks;dl=[];for(var xa=ps,ls;xa!==null;){ls=xa;var Eu=ls.stateNode;if(ls.tag===5&&Eu!==null&&(ls=Eu,ts!==null&&(Eu=at(xa,ts),Eu!=null&&dl.push(Hn(xa,Eu,ls)))),Vf)break;xa=xa.return}0<dl.length&&(Ks=new Xu(Ks,ul,null,je,tu),ru.push({event:Ks,listeners:dl}))}}if(!($&7)){e:{if(Ks=x==="mouseover"||x==="pointerover",Xu=x==="mouseout"||x==="pointerout",Ks&&je!==ct&&(ul=je.relatedTarget||je.fromElement)&&(_a(ul)||ul[us]))break e;if((Xu||Ks)&&(Ks=tu.window===tu?tu:(Ks=tu.ownerDocument)?Ks.defaultView||Ks.parentWindow:window,Xu?(ul=je.relatedTarget||je.toElement,Xu=ps,ul=ul?_a(ul):null,ul!==null&&(Vf=Dt(ul),ul!==Vf||ul.tag!==5&&ul.tag!==6)&&(ul=null)):(Xu=null,ul=ps),Xu!==ul)){if(dl=cr,Eu="onMouseLeave",ts="onMouseEnter",xa="mouse",(x==="pointerout"||x==="pointerover")&&(dl=ut,Eu="onPointerLeave",ts="onPointerEnter",xa="pointer"),Vf=Xu==null?Ks:eu(Xu),ls=ul==null?Ks:eu(ul),Ks=new dl(Eu,xa+"leave",Xu,je,tu),Ks.target=Vf,Ks.relatedTarget=ls,Eu=null,_a(tu)===ps&&(dl=new dl(ts,xa+"enter",ul,je,tu),dl.target=ls,dl.relatedTarget=Vf,Eu=dl),Vf=Eu,Xu&&ul)t:{for(dl=Xu,ts=ul,xa=0,ls=dl;ls;ls=Wr(ls))xa++;for(ls=0,Eu=ts;Eu;Eu=Wr(Eu))ls++;for(;0<xa-ls;)dl=Wr(dl),xa--;for(;0<ls-xa;)ts=Wr(ts),ls--;for(;xa--;){if(dl===ts||ts!==null&&dl===ts.alternate)break t;dl=Wr(dl),ts=Wr(ts)}dl=null}else dl=null;Xu!==null&&vt(ru,Ks,Xu,dl,!1),ul!==null&&Vf!==null&&vt(ru,Vf,ul,dl,!0)}}e:{if(Ks=ps?eu(ps):window,Xu=Ks.nodeName&&Ks.nodeName.toLowerCase(),Xu==="select"||Xu==="input"&&Ks.type==="file")var al=Oe;else if(jt(Ks))if(pn)al=Yt;else{al=wn;var Tl=Ot}else(Xu=Ks.nodeName)&&Xu.toLowerCase()==="input"&&(Ks.type==="checkbox"||Ks.type==="radio")&&(al=Wt);if(al&&(al=al(x,ps))){Pn(ru,al,je,tu);break e}Tl&&Tl(x,Ks,ps),x==="focusout"&&(Tl=Ks._wrapperState)&&Tl.controlled&&Ks.type==="number"&&Ye(Ks,"number",Ks.value)}switch(Tl=ps?eu(ps):window,x){case"focusin":(jt(Tl)||Tl.contentEditable==="true")&&(Rs=Tl,Ds=ps,Is=null);break;case"focusout":Is=Ds=Rs=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,Ls(ru,je,tu);break;case"selectionchange":if(ss)break;case"keydown":case"keyup":Ls(ru,je,tu)}var Vl;if(Ci)e:{switch(x){case"compositionstart":var tc="onCompositionStart";break e;case"compositionend":tc="onCompositionEnd";break e;case"compositionupdate":tc="onCompositionUpdate";break e}tc=void 0}else mr?Xn(x,je)&&(tc="onCompositionEnd"):x==="keydown"&&je.keyCode===229&&(tc="onCompositionStart");tc&&(Xo&&je.locale!=="ko"&&(mr||tc!=="onCompositionStart"?tc==="onCompositionEnd"&&mr&&(Vl=wo()):(li=tu,Zi="value"in li?li.value:li.textContent,mr=!0)),Tl=wr(ps,tc),0<Tl.length&&(tc=new Z(tc,x,null,je,tu),ru.push({event:tc,listeners:Tl}),Vl?tc.data=Vl:(Vl=fr(je),Vl!==null&&(tc.data=Vl)))),(Vl=co?yr(x,je):Rr(x,je))&&(ps=wr(ps,"onBeforeInput"),0<ps.length&&(tu=new Z("onBeforeInput","beforeinput",null,je,tu),ru.push({event:tu,listeners:ps}),tu.data=Vl))}Le(ru,$)})}function Hn(x,$,je){return{instance:x,listener:$,currentTarget:je}}function wr(x,$){for(var je=$+"Capture",Mt=[];x!==null;){var Tn=x,ur=Tn.stateNode;Tn.tag===5&&ur!==null&&(Tn=ur,ur=at(x,je),ur!=null&&Mt.unshift(Hn(x,ur,Tn)),ur=at(x,$),ur!=null&&Mt.push(Hn(x,ur,Tn))),x=x.return}return Mt}function Wr(x){if(x===null)return null;do x=x.return;while(x&&x.tag!==5);return x||null}function vt(x,$,je,Mt,Tn){for(var ur=$._reactName,Li=[];je!==null&&je!==Mt;){var Vo=je,ga=Vo.alternate,ps=Vo.stateNode;if(ga!==null&&ga===Mt)break;Vo.tag===5&&ps!==null&&(Vo=ps,Tn?(ga=at(je,ur),ga!=null&&Li.unshift(Hn(je,ga,Vo))):Tn||(ga=at(je,ur),ga!=null&&Li.push(Hn(je,ga,Vo)))),je=je.return}Li.length!==0&&x.push({event:$,listeners:Li})}var Vt=/\r\n?/g,dn=/\u0000|\uFFFD/g;function yn(x){return(typeof x=="string"?x:""+x).replace(Vt,` `).replace(dn,"")}function ar(x,$,je){if($=yn($),yn(x)!==$&&je)throw Error(s(425))}function wi(){}var mi=null,ho=null;function Ao(x,$){return x==="textarea"||x==="noscript"||typeof $.children=="string"||typeof $.children=="number"||typeof $.dangerouslySetInnerHTML=="object"&&$.dangerouslySetInnerHTML!==null&&$.dangerouslySetInnerHTML.__html!=null}var Mo=typeof setTimeout=="function"?setTimeout:void 0,bo=typeof clearTimeout=="function"?clearTimeout:void 0,ca=typeof Promise=="function"?Promise:void 0,sa=typeof queueMicrotask=="function"?queueMicrotask:typeof ca<"u"?function(x){return ca.resolve(null).then(x).catch(Da)}:Mo;function Da(x){setTimeout(function(){throw x})}function La(x,$){var je=$,Mt=0;do{var Tn=je.nextSibling;if(x.removeChild(je),Tn&&Tn.nodeType===8)if(je=Tn.data,je==="/$"){if(Mt===0){x.removeChild(Tn),to($);return}Mt--}else je!=="$"&&je!=="$?"&&je!=="$!"||Mt++;je=Tn}while(je);to($)}function Ja(x){for(;x!=null;x=x.nextSibling){var $=x.nodeType;if($===1||$===3)break;if($===8){if($=x.data,$==="$"||$==="$!"||$==="$?")break;if($==="/$")return null}}return x}function Ya(x){x=x.previousSibling;for(var $=0;x;){if(x.nodeType===8){var je=x.data;if(je==="$"||je==="$!"||je==="$?"){if($===0)return x;$--}else je==="/$"&&$++}x=x.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),ba="__reactFiber$"+Aa,Ka="__reactProps$"+Aa,us="__reactContainer$"+Aa,ii="__reactEvents$"+Aa,Wo="__reactListeners$"+Aa,Ra="__reactHandles$"+Aa;function _a(x){var $=x[ba];if($)return $;for(var je=x.parentNode;je;){if($=je[us]||je[ba]){if(je=$.alternate,$.child!==null||je!==null&&je.child!==null)for(x=Ya(x);x!==null;){if(je=x[ba])return je;x=Ya(x)}return $}x=je,je=x.parentNode}return null}function Wa(x){return x=x[ba]||x[us],!x||x.tag!==5&&x.tag!==6&&x.tag!==13&&x.tag!==3?null:x}function eu(x){if(x.tag===5||x.tag===6)return x.stateNode;throw Error(s(33))}function Ws(x){return x[Ka]||null}var Ne=[],kt=-1;function Rn(x){return{current:x}}function jn(x){0>kt||(x.current=Ne[kt],Ne[kt]=null,kt--)}function _r(x,$){kt++,Ne[kt]=x.current,x.current=$}var xr={},oi=Rn(xr),ti=Rn(!1),Ri=xr;function Fi(x,$){var je=x.type.contextTypes;if(!je)return xr;var Mt=x.stateNode;if(Mt&&Mt.__reactInternalMemoizedUnmaskedChildContext===$)return Mt.__reactInternalMemoizedMaskedChildContext;var Tn={},ur;for(ur in je)Tn[ur]=$[ur];return Mt&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=$,x.__reactInternalMemoizedMaskedChildContext=Tn),Tn}function Gi(x){return x=x.childContextTypes,x!=null}function yo(){jn(ti),jn(oi)}function Do(x,$,je){if(oi.current!==xr)throw Error(s(168));_r(oi,$),_r(ti,je)}function po(x,$,je){var Mt=x.stateNode;if($=$.childContextTypes,typeof Mt.getChildContext!="function")return je;Mt=Mt.getChildContext();for(var Tn in Mt)if(!(Tn in $))throw Error(s(108,Ee(x)||"Unknown",Tn));return Te({},je,Mt)}function Ji(x){return x=(x=x.stateNode)&&x.__reactInternalMemoizedMergedChildContext||xr,Ri=oi.current,_r(oi,x),_r(ti,ti.current),!0}function Uo(x,$,je){var Mt=x.stateNode;if(!Mt)throw Error(s(169));je?(x=po(x,$,Ri),Mt.__reactInternalMemoizedMergedChildContext=x,jn(ti),jn(oi),_r(oi,x)):jn(ti),_r(ti,je)}var Ia=null,za=!1,Ma=!1;function xo(x){Ia===null?Ia=[x]:Ia.push(x)}function xs(x){za=!0,xo(x)}function va(){if(!Ma&&Ia!==null){Ma=!0;var x=0,$=fn;try{var je=Ia;for(fn=1;x<je.length;x++){var Mt=je[x];do Mt=Mt(!0);while(Mt!==null)}Ia=null,za=!1}catch(Tn){throw Ia!==null&&(Ia=Ia.slice(x+1)),En(jr,va),Tn}finally{fn=$,Ma=!1}}return null}var Pa=[],Na=0,Xa=null,wa=0,Ga=[],vs=0,Za=null,$a=1,ns="";function uu(x,$){Pa[Na++]=wa,Pa[Na++]=Xa,Xa=x,wa=$}function Mu(x,$,je){Ga[vs++]=$a,Ga[vs++]=ns,Ga[vs++]=Za,Za=x;var Mt=$a;x=ns;var Tn=32-Ai(Mt)-1;Mt&=~(1<<Tn),je+=1;var ur=32-Ai($)+Tn;if(30<ur){var Li=Tn-Tn%5;ur=(Mt&(1<<Li)-1).toString(32),Mt>>=Li,Tn-=Li,$a=1<<32-Ai($)+Tn|je<<Tn|Mt,ns=ur+x}else $a=1<<ur|je<<Tn|Mt,ns=x}function Lu(x){x.return!==null&&(uu(x,1),Mu(x,1,0))}function ju(x){for(;x===Xa;)Xa=Pa[--Na],Pa[Na]=null,wa=Pa[--Na],Pa[Na]=null;for(;x===Za;)Za=Ga[--vs],Ga[vs]=null,ns=Ga[--vs],Ga[vs]=null,$a=Ga[--vs],Ga[vs]=null}var pl=null,pu=null,ks=!1,su=null;function Au(x,$){var je=tl(5,null,null,0);je.elementType="DELETED",je.stateNode=$,je.return=x,$=x.deletions,$===null?(x.deletions=[je],x.flags|=16):$.push(je)}function wl(x,$){switch(x.tag){case 5:var je=x.type;return $=$.nodeType!==1||je.toLowerCase()!==$.nodeName.toLowerCase()?null:$,$!==null?(x.stateNode=$,pl=x,pu=Ja($.firstChild),!0):!1;case 6:return $=x.pendingProps===""||$.nodeType!==3?null:$,$!==null?(x.stateNode=$,pl=x,pu=null,!0):!1;case 13:return $=$.nodeType!==8?null:$,$!==null?(je=Za!==null?{id:$a,overflow:ns}:null,x.memoizedState={dehydrated:$,treeContext:je,retryLane:1073741824},je=tl(18,null,null,0),je.stateNode=$,je.return=x,x.child=je,pl=x,pu=null,!0):!1;default:return!1}}function bu(x){return(x.mode&1)!==0&&(x.flags&128)===0}function Ul(x){if(ks){var $=pu;if($){var je=$;if(!wl(x,$)){if(bu(x))throw Error(s(418));$=Ja(je.nextSibling);var Mt=pl;$&&wl(x,$)?Au(Mt,je):(x.flags=x.flags&-4097|2,ks=!1,pl=x)}}else{if(bu(x))throw Error(s(418));x.flags=x.flags&-4097|2,ks=!1,pl=x}}}function Wl(x){for(x=x.return;x!==null&&x.tag!==5&&x.tag!==3&&x.tag!==13;)x=x.return;pl=x}function il(x){if(x!==pl)return!1;if(!ks)return Wl(x),ks=!0,!1;var $;if(($=x.tag!==3)&&!($=x.tag!==5)&&($=x.type,$=$!=="head"&&$!=="body"&&!Ao(x.type,x.memoizedProps)),$&&($=pu)){if(bu(x))throw _l(),Error(s(418));for(;$;)Au(x,$),$=Ja($.nextSibling)}if(Wl(x),x.tag===13){if(x=x.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(s(317));e:{for(x=x.nextSibling,$=0;x;){if(x.nodeType===8){var je=x.data;if(je==="/$"){if($===0){pu=Ja(x.nextSibling);break e}$--}else je!=="$"&&je!=="$!"&&je!=="$?"||$++}x=x.nextSibling}pu=null}}else pu=pl?Ja(x.stateNode.nextSibling):null;return!0}function _l(){for(var x=pu;x;)x=Ja(x.nextSibling)}function Hs(){pu=pl=null,ks=!1}function Pl(x){su===null?su=[x]:su.push(x)}var Ql=A.ReactCurrentBatchConfig;function ll(x,$){if(x&&x.defaultProps){$=Te({},$),x=x.defaultProps;for(var je in x)$[je]===void 0&&($[je]=x[je]);return $}return $}var Kl=Rn(null),ia=null,Sa=null,Ea=null;function rs(){Ea=Sa=ia=null}function Ns(x){var $=Kl.current;jn(Kl),x._currentValue=$}function Xt(x,$,je){for(;x!==null;){var Mt=x.alternate;if((x.childLanes&$)!==$?(x.childLanes|=$,Mt!==null&&(Mt.childLanes|=$)):Mt!==null&&(Mt.childLanes&$)!==$&&(Mt.childLanes|=$),x===je)break;x=x.return}}function bn(x,$){ia=x,Ea=Sa=null,x=x.dependencies,x!==null&&x.firstContext!==null&&(x.lanes&$&&(hu=!0),x.firstContext=null)}function Dn(x){var $=x._currentValue;if(Ea!==x)if(x={context:x,memoizedValue:$,next:null},Sa===null){if(ia===null)throw Error(s(308));Sa=x,ia.dependencies={lanes:0,firstContext:x}}else Sa=Sa.next=x;return $}var Ii=null;function ko(x){Ii===null?Ii=[x]:Ii.push(x)}function fa(x,$,je,Mt){var Tn=$.interleaved;return Tn===null?(je.next=je,ko($)):(je.next=Tn.next,Tn.next=je),$.interleaved=je,Zo(x,Mt)}function Zo(x,$){x.lanes|=$;var je=x.alternate;for(je!==null&&(je.lanes|=$),je=x,x=x.return;x!==null;)x.childLanes|=$,je=x.alternate,je!==null&&(je.childLanes|=$),je=x,x=x.return;return je.tag===3?je.stateNode:null}var Fa=!1;function Ua(x){x.updateQueue={baseState:x.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ms(x,$){x=x.updateQueue,$.updateQueue===x&&($.updateQueue={baseState:x.baseState,firstBaseUpdate:x.firstBaseUpdate,lastBaseUpdate:x.lastBaseUpdate,shared:x.shared,effects:x.effects})}function Fs(x,$){return{eventTime:x,lane:$,tag:0,payload:null,callback:null,next:null}}function ws(x,$,je){var Mt=x.updateQueue;if(Mt===null)return null;if(Mt=Mt.shared,qr&2){var Tn=Mt.pending;return Tn===null?$.next=$:($.next=Tn.next,Tn.next=$),Mt.pending=$,Zo(x,je)}return Tn=Mt.interleaved,Tn===null?($.next=$,ko(Mt)):($.next=Tn.next,Tn.next=$),Mt.interleaved=$,Zo(x,je)}function fu(x,$,je){if($=$.updateQueue,$!==null&&($=$.shared,(je&4194240)!==0)){var Mt=$.lanes;Mt&=x.pendingLanes,je|=Mt,$.lanes=je,mt(x,je)}}function wu(x,$){var je=x.updateQueue,Mt=x.alternate;if(Mt!==null&&(Mt=Mt.updateQueue,je===Mt)){var Tn=null,ur=null;if(je=je.firstBaseUpdate,je!==null){do{var Li={eventTime:je.eventTime,lane:je.lane,tag:je.tag,payload:je.payload,callback:je.callback,next:null};ur===null?Tn=ur=Li:ur=ur.next=Li,je=je.next}while(je!==null);ur===null?Tn=ur=$:ur=ur.next=$}else Tn=ur=$;je={baseState:Mt.baseState,firstBaseUpdate:Tn,lastBaseUpdate:ur,shared:Mt.shared,effects:Mt.effects},x.updateQueue=je;return}x=je.lastBaseUpdate,x===null?je.firstBaseUpdate=$:x.next=$,je.lastBaseUpdate=$}function Du(x,$,je,Mt){var Tn=x.updateQueue;Fa=!1;var ur=Tn.firstBaseUpdate,Li=Tn.lastBaseUpdate,Vo=Tn.shared.pending;if(Vo!==null){Tn.shared.pending=null;var ga=Vo,ps=ga.next;ga.next=null,Li===null?ur=ps:Li.next=ps,Li=ga;var tu=x.alternate;tu!==null&&(tu=tu.updateQueue,Vo=tu.lastBaseUpdate,Vo!==Li&&(Vo===null?tu.firstBaseUpdate=ps:Vo.next=ps,tu.lastBaseUpdate=ga))}if(ur!==null){var ru=Tn.baseState;Li=0,tu=ps=ga=null,Vo=ur;do{var Ks=Vo.lane,Xu=Vo.eventTime;if((Mt&Ks)===Ks){tu!==null&&(tu=tu.next={eventTime:Xu,lane:0,tag:Vo.tag,payload:Vo.payload,callback:Vo.callback,next:null});e:{var ul=x,dl=Vo;switch(Ks=$,Xu=je,dl.tag){case 1:if(ul=dl.payload,typeof ul=="function"){ru=ul.call(Xu,ru,Ks);break e}ru=ul;break e;case 3:ul.flags=ul.flags&-65537|128;case 0:if(ul=dl.payload,Ks=typeof ul=="function"?ul.call(Xu,ru,Ks):ul,Ks==null)break e;ru=Te({},ru,Ks);break e;case 2:Fa=!0}}Vo.callback!==null&&Vo.lane!==0&&(x.flags|=64,Ks=Tn.effects,Ks===null?Tn.effects=[Vo]:Ks.push(Vo))}else Xu={eventTime:Xu,lane:Ks,tag:Vo.tag,payload:Vo.payload,callback:Vo.callback,next:null},tu===null?(ps=tu=Xu,ga=ru):tu=tu.next=Xu,Li|=Ks;if(Vo=Vo.next,Vo===null){if(Vo=Tn.shared.pending,Vo===null)break;Ks=Vo,Vo=Ks.next,Ks.next=null,Tn.lastBaseUpdate=Ks,Tn.shared.pending=null}}while(1);if(tu===null&&(ga=ru),Tn.baseState=ga,Tn.firstBaseUpdate=ps,Tn.lastBaseUpdate=tu,$=Tn.shared.interleaved,$!==null){Tn=$;do Li|=Tn.lane,Tn=Tn.next;while(Tn!==$)}else ur===null&&(Tn.shared.lanes=0);Bs|=Li,x.lanes=Li,x.memoizedState=ru}}function zu(x,$,je){if(x=$.effects,$.effects=null,x!==null)for($=0;$<x.length;$++){var Mt=x[$],Tn=Mt.callback;if(Tn!==null){if(Mt.callback=null,Mt=je,typeof Tn!="function")throw Error(s(191,Tn));Tn.call(Mt)}}}var Il=new i.Component().refs;function bc(x,$,je,Mt){$=x.memoizedState,je=je(Mt,$),je=je==null?$:Te({},$,je),x.memoizedState=je,x.lanes===0&&(x.updateQueue.baseState=je)}var Gl={isMounted:function(x){return(x=x._reactInternals)?Dt(x)===x:!1},enqueueSetState:function(x,$,je){x=x._reactInternals;var Mt=Lc(),Tn=dd(x),ur=Fs(Mt,Tn);ur.payload=$,je!=null&&(ur.callback=je),$=ws(x,ur,Tn),$!==null&&(af($,x,Tn,Mt),fu($,x,Tn))},enqueueReplaceState:function(x,$,je){x=x._reactInternals;var Mt=Lc(),Tn=dd(x),ur=Fs(Mt,Tn);ur.tag=1,ur.payload=$,je!=null&&(ur.callback=je),$=ws(x,ur,Tn),$!==null&&(af($,x,Tn,Mt),fu($,x,Tn))},enqueueForceUpdate:function(x,$){x=x._reactInternals;var je=Lc(),Mt=dd(x),Tn=Fs(je,Mt);Tn.tag=2,$!=null&&(Tn.callback=$),$=ws(x,Tn,Mt),$!==null&&(af($,x,Mt,je),fu($,x,Mt))}};function oc(x,$,je,Mt,Tn,ur,Li){return x=x.stateNode,typeof x.shouldComponentUpdate=="function"?x.shouldComponentUpdate(Mt,ur,Li):$.prototype&&$.prototype.isPureReactComponent?!si(je,Mt)||!si(Tn,ur):!0}function ac(x,$,je){var Mt=!1,Tn=xr,ur=$.contextType;return typeof ur=="object"&&ur!==null?ur=Dn(ur):(Tn=Gi($)?Ri:oi.current,Mt=$.contextTypes,ur=(Mt=Mt!=null)?Fi(x,Tn):xr),$=new $(je,ur),x.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,$.updater=Gl,x.stateNode=$,$._reactInternals=x,Mt&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=Tn,x.__reactInternalMemoizedMaskedChildContext=ur),$}function jl(x,$,je,Mt){x=$.state,typeof $.componentWillReceiveProps=="function"&&$.componentWillReceiveProps(je,Mt),typeof $.UNSAFE_componentWillReceiveProps=="function"&&$.UNSAFE_componentWillReceiveProps(je,Mt),$.state!==x&&Gl.enqueueReplaceState($,$.state,null)}function nc(x,$,je,Mt){var Tn=x.stateNode;Tn.props=je,Tn.state=x.memoizedState,Tn.refs=Il,Ua(x);var ur=$.contextType;typeof ur=="object"&&ur!==null?Tn.context=Dn(ur):(ur=Gi($)?Ri:oi.current,Tn.context=Fi(x,ur)),Tn.state=x.memoizedState,ur=$.getDerivedStateFromProps,typeof ur=="function"&&(bc(x,$,ur,je),Tn.state=x.memoizedState),typeof $.getDerivedStateFromProps=="function"||typeof Tn.getSnapshotBeforeUpdate=="function"||typeof Tn.UNSAFE_componentWillMount!="function"&&typeof Tn.componentWillMount!="function"||($=Tn.state,typeof Tn.componentWillMount=="function"&&Tn.componentWillMount(),typeof Tn.UNSAFE_componentWillMount=="function"&&Tn.UNSAFE_componentWillMount(),$!==Tn.state&&Gl.enqueueReplaceState(Tn,Tn.state,null),Du(x,je,Tn,Mt),Tn.state=x.memoizedState),typeof Tn.componentDidMount=="function"&&(x.flags|=4194308)}function Fl(x,$,je){if(x=je.ref,x!==null&&typeof x!="function"&&typeof x!="object"){if(je._owner){if(je=je._owner,je){if(je.tag!==1)throw Error(s(309));var Mt=je.stateNode}if(!Mt)throw Error(s(147,x));var Tn=Mt,ur=""+x;return $!==null&&$.ref!==null&&typeof $.ref=="function"&&$.ref._stringRef===ur?$.ref:($=function(Li){var Vo=Tn.refs;Vo===Il&&(Vo=Tn.refs={}),Li===null?delete Vo[ur]:Vo[ur]=Li},$._stringRef=ur,$)}if(typeof x!="string")throw Error(s(284));if(!je._owner)throw Error(s(290,x))}return x}function Zu(x,$){throw x=Object.prototype.toString.call($),Error(s(31,x==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":x))}function Ac(x){var $=x._init;return $(x._payload)}function tf(x){function $(ts,xa){if(x){var ls=ts.deletions;ls===null?(ts.deletions=[xa],ts.flags|=16):ls.push(xa)}}function je(ts,xa){if(!x)return null;for(;xa!==null;)$(ts,xa),xa=xa.sibling;return null}function Mt(ts,xa){for(ts=new Map;xa!==null;)xa.key!==null?ts.set(xa.key,xa):ts.set(xa.index,xa),xa=xa.sibling;return ts}function Tn(ts,xa){return ts=df(ts,xa),ts.index=0,ts.sibling=null,ts}function ur(ts,xa,ls){return ts.index=ls,x?(ls=ts.alternate,ls!==null?(ls=ls.index,ls<xa?(ts.flags|=2,xa):ls):(ts.flags|=2,xa)):(ts.flags|=1048576,xa)}function Li(ts){return x&&ts.alternate===null&&(ts.flags|=2),ts}function Vo(ts,xa,ls,Eu){return xa===null||xa.tag!==6?(xa=Ph(ls,ts.mode,Eu),xa.return=ts,xa):(xa=Tn(xa,ls),xa.return=ts,xa)}function ga(ts,xa,ls,Eu){var al=ls.type;return al===_?tu(ts,xa,ls.props.children,Eu,ls.key):xa!==null&&(xa.elementType===al||typeof al=="object"&&al!==null&&al.$$typeof===re&&Ac(al)===xa.type)?(Eu=Tn(xa,ls.props),Eu.ref=Fl(ts,xa,ls),Eu.return=ts,Eu):(Eu=uf(ls.type,ls.key,ls.props,null,ts.mode,Eu),Eu.ref=Fl(ts,xa,ls),Eu.return=ts,Eu)}function ps(ts,xa,ls,Eu){return xa===null||xa.tag!==4||xa.stateNode.containerInfo!==ls.containerInfo||xa.stateNode.implementation!==ls.implementation?(xa=th(ls,ts.mode,Eu),xa.return=ts,xa):(xa=Tn(xa,ls.children||[]),xa.return=ts,xa)}function tu(ts,xa,ls,Eu,al){return xa===null||xa.tag!==7?(xa=Jd(ls,ts.mode,Eu,al),xa.return=ts,xa):(xa=Tn(xa,ls),xa.return=ts,xa)}function ru(ts,xa,ls){if(typeof xa=="string"&&xa!==""||typeof xa=="number")return xa=Ph(""+xa,ts.mode,ls),xa.return=ts,xa;if(typeof xa=="object"&&xa!==null){switch(xa.$$typeof){case j:return ls=uf(xa.type,xa.key,xa.props,null,ts.mode,ls),ls.ref=Fl(ts,null,xa),ls.return=ts,ls;case ae:return xa=th(xa,ts.mode,ls),xa.return=ts,xa;case re:var Eu=xa._init;return ru(ts,Eu(xa._payload),ls)}if(ft(xa)||Q(xa))return xa=Jd(xa,ts.mode,ls,null),xa.return=ts,xa;Zu(ts,xa)}return null}function Ks(ts,xa,ls,Eu){var al=xa!==null?xa.key:null;if(typeof ls=="string"&&ls!==""||typeof ls=="number")return al!==null?null:Vo(ts,xa,""+ls,Eu);if(typeof ls=="object"&&ls!==null){switch(ls.$$typeof){case j:return ls.key===al?ga(ts,xa,ls,Eu):null;case ae:return ls.key===al?ps(ts,xa,ls,Eu):null;case re:return al=ls._init,Ks(ts,xa,al(ls._payload),Eu)}if(ft(ls)||Q(ls))return al!==null?null:tu(ts,xa,ls,Eu,null);Zu(ts,ls)}return null}function Xu(ts,xa,ls,Eu,al){if(typeof Eu=="string"&&Eu!==""||typeof Eu=="number")return ts=ts.get(ls)||null,Vo(xa,ts,""+Eu,al);if(typeof Eu=="object"&&Eu!==null){switch(Eu.$$typeof){case j:return ts=ts.get(Eu.key===null?ls:Eu.key)||null,ga(xa,ts,Eu,al);case ae:return ts=ts.get(Eu.key===null?ls:Eu.key)||null,ps(xa,ts,Eu,al);case re:var Tl=Eu._init;return Xu(ts,xa,ls,Tl(Eu._payload),al)}if(ft(Eu)||Q(Eu))return ts=ts.get(ls)||null,tu(xa,ts,Eu,al,null);Zu(xa,Eu)}return null}function ul(ts,xa,ls,Eu){for(var al=null,Tl=null,Vl=xa,tc=xa=0,Pd=null;Vl!==null&&tc<ls.length;tc++){Vl.index>tc?(Pd=Vl,Vl=null):Pd=Vl.sibling;var Rc=Ks(ts,Vl,ls[tc],Eu);if(Rc===null){Vl===null&&(Vl=Pd);break}x&&Vl&&Rc.alternate===null&&$(ts,Vl),xa=ur(Rc,xa,tc),Tl===null?al=Rc:Tl.sibling=Rc,Tl=Rc,Vl=Pd}if(tc===ls.length)return je(ts,Vl),ks&&uu(ts,tc),al;if(Vl===null){for(;tc<ls.length;tc++)Vl=ru(ts,ls[tc],Eu),Vl!==null&&(xa=ur(Vl,xa,tc),Tl===null?al=Vl:Tl.sibling=Vl,Tl=Vl);return ks&&uu(ts,tc),al}for(Vl=Mt(ts,Vl);tc<ls.length;tc++)Pd=Xu(Vl,ts,tc,ls[tc],Eu),Pd!==null&&(x&&Pd.alternate!==null&&Vl.delete(Pd.key===null?tc:Pd.key),xa=ur(Pd,xa,tc),Tl===null?al=Pd:Tl.sibling=Pd,Tl=Pd);return x&&Vl.forEach(function(jh){return $(ts,jh)}),ks&&uu(ts,tc),al}function dl(ts,xa,ls,Eu){var al=Q(ls);if(typeof al!="function")throw Error(s(150));if(ls=al.call(ls),ls==null)throw Error(s(151));for(var Tl=al=null,Vl=xa,tc=xa=0,Pd=null,Rc=ls.next();Vl!==null&&!Rc.done;tc++,Rc=ls.next()){Vl.index>tc?(Pd=Vl,Vl=null):Pd=Vl.sibling;var jh=Ks(ts,Vl,Rc.value,Eu);if(jh===null){Vl===null&&(Vl=Pd);break}x&&Vl&&jh.alternate===null&&$(ts,Vl),xa=ur(jh,xa,tc),Tl===null?al=jh:Tl.sibling=jh,Tl=jh,Vl=Pd}if(Rc.done)return je(ts,Vl),ks&&uu(ts,tc),al;if(Vl===null){for(;!Rc.done;tc++,Rc=ls.next())Rc=ru(ts,Rc.value,Eu),Rc!==null&&(xa=ur(Rc,xa,tc),Tl===null?al=Rc:Tl.sibling=Rc,Tl=Rc);return ks&&uu(ts,tc),al}for(Vl=Mt(ts,Vl);!Rc.done;tc++,Rc=ls.next())Rc=Xu(Vl,ts,tc,Rc.value,Eu),Rc!==null&&(x&&Rc.alternate!==null&&Vl.delete(Rc.key===null?tc:Rc.key),xa=ur(Rc,xa,tc),Tl===null?al=Rc:Tl.sibling=Rc,Tl=Rc);return x&&Vl.forEach(function(bv){return $(ts,bv)}),ks&&uu(ts,tc),al}function Vf(ts,xa,ls,Eu){if(typeof ls=="object"&&ls!==null&&ls.type===_&&ls.key===null&&(ls=ls.props.children),typeof ls=="object"&&ls!==null){switch(ls.$$typeof){case j:e:{for(var al=ls.key,Tl=xa;Tl!==null;){if(Tl.key===al){if(al=ls.type,al===_){if(Tl.tag===7){je(ts,Tl.sibling),xa=Tn(Tl,ls.props.children),xa.return=ts,ts=xa;break e}}else if(Tl.elementType===al||typeof al=="object"&&al!==null&&al.$$typeof===re&&Ac(al)===Tl.type){je(ts,Tl.sibling),xa=Tn(Tl,ls.props),xa.ref=Fl(ts,Tl,ls),xa.return=ts,ts=xa;break e}je(ts,Tl);break}else $(ts,Tl);Tl=Tl.sibling}ls.type===_?(xa=Jd(ls.props.children,ts.mode,Eu,ls.key),xa.return=ts,ts=xa):(Eu=uf(ls.type,ls.key,ls.props,null,ts.mode,Eu),Eu.ref=Fl(ts,xa,ls),Eu.return=ts,ts=Eu)}return Li(ts);case ae:e:{for(Tl=ls.key;xa!==null;){if(xa.key===Tl)if(xa.tag===4&&xa.stateNode.containerInfo===ls.containerInfo&&xa.stateNode.implementation===ls.implementation){je(ts,xa.sibling),xa=Tn(xa,ls.children||[]),xa.return=ts,ts=xa;break e}else{je(ts,xa);break}else $(ts,xa);xa=xa.sibling}xa=th(ls,ts.mode,Eu),xa.return=ts,ts=xa}return Li(ts);case re:return Tl=ls._init,Vf(ts,xa,Tl(ls._payload),Eu)}if(ft(ls))return ul(ts,xa,ls,Eu);if(Q(ls))return dl(ts,xa,ls,Eu);Zu(ts,ls)}return typeof ls=="string"&&ls!==""||typeof ls=="number"?(ls=""+ls,xa!==null&&xa.tag===6?(je(ts,xa.sibling),xa=Tn(xa,ls),xa.return=ts,ts=xa):(je(ts,xa),xa=Ph(ls,ts.mode,Eu),xa.return=ts,ts=xa),Li(ts)):je(ts,xa)}return Vf}var Jl=tf(!0),ml=tf(!1),vl={},Vu=Rn(vl),ad=Rn(vl),Bc=Rn(vl);function hf(x){if(x===vl)throw Error(s(174));return x}function Vc(x,$){switch(_r(Bc,$),_r(ad,x),_r(Vu,vl),x=$.nodeType,x){case 9:case 11:$=($=$.documentElement)?$.namespaceURI:ee(null,"");break;default:x=x===8?$.parentNode:$,$=x.namespaceURI||null,x=x.tagName,$=ee($,x)}jn(Vu),_r(Vu,$)}function Od(){jn(Vu),jn(ad),jn(Bc)}function _c(x){hf(Bc.current);var $=hf(Vu.current),je=ee($,x.type);$!==je&&(_r(ad,x),_r(Vu,je))}function Xc(x){ad.current===x&&(jn(Vu),jn(ad))}var Zl=Rn(0);function qd(x){for(var $=x;$!==null;){if($.tag===13){var je=$.memoizedState;if(je!==null&&(je=je.dehydrated,je===null||je.data==="$?"||je.data==="$!"))return $}else if($.tag===19&&$.memoizedProps.revealOrder!==void 0){if($.flags&128)return $}else if($.child!==null){$.child.return=$,$=$.child;continue}if($===x)break;for(;$.sibling===null;){if($.return===null||$.return===x)return null;$=$.return}$.sibling.return=$.return,$=$.sibling}return null}var Kd=[];function jf(){for(var x=0;x<Kd.length;x++)Kd[x]._workInProgressVersionPrimary=null;Kd.length=0}var Ml=A.ReactCurrentDispatcher,jd=A.ReactCurrentBatchConfig,Jf=0,ql=null,sc=null,Uc=null,Gd=!1,nf=!1,Dd=0,yd=0;function pf(){throw Error(s(321))}function Lf(x,$){if($===null)return!1;for(var je=0;je<$.length&&je<x.length;je++)if(!Nr(x[je],$[je]))return!1;return!0}function Cd(x,$,je,Mt,Tn,ur){if(Jf=ur,ql=$,$.memoizedState=null,$.updateQueue=null,$.lanes=0,Ml.current=x===null||x.memoizedState===null?Pf:bf,x=je(Mt,Tn),nf){ur=0;do{if(nf=!1,Dd=0,25<=ur)throw Error(s(301));ur+=1,Uc=sc=null,$.updateQueue=null,Ml.current=cd,x=je(Mt,Tn)}while(nf)}if(Ml.current=Ms,$=sc!==null&&sc.next!==null,Jf=0,Uc=sc=ql=null,Gd=!1,$)throw Error(s(300));return x}function vf(){var x=Dd!==0;return Dd=0,x}function jc(){var x={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Uc===null?ql.memoizedState=Uc=x:Uc=Uc.next=x,Uc}function gf(){if(sc===null){var x=ql.alternate;x=x!==null?x.memoizedState:null}else x=sc.next;var $=Uc===null?ql.memoizedState:Uc.next;if($!==null)Uc=$,sc=x;else{if(x===null)throw Error(s(310));sc=x,x={memoizedState:sc.memoizedState,baseState:sc.baseState,baseQueue:sc.baseQueue,queue:sc.queue,next:null},Uc===null?ql.memoizedState=Uc=x:Uc=Uc.next=x}return Uc}function Id(x,$){return typeof $=="function"?$(x):$}function sd(x){var $=gf(),je=$.queue;if(je===null)throw Error(s(311));je.lastRenderedReducer=x;var Mt=sc,Tn=Mt.baseQueue,ur=je.pending;if(ur!==null){if(Tn!==null){var Li=Tn.next;Tn.next=ur.next,ur.next=Li}Mt.baseQueue=Tn=ur,je.pending=null}if(Tn!==null){ur=Tn.next,Mt=Mt.baseState;var Vo=Li=null,ga=null,ps=ur;do{var tu=ps.lane;if((Jf&tu)===tu)ga!==null&&(ga=ga.next={lane:0,action:ps.action,hasEagerState:ps.hasEagerState,eagerState:ps.eagerState,next:null}),Mt=ps.hasEagerState?ps.eagerState:x(Mt,ps.action);else{var ru={lane:tu,action:ps.action,hasEagerState:ps.hasEagerState,eagerState:ps.eagerState,next:null};ga===null?(Vo=ga=ru,Li=Mt):ga=ga.next=ru,ql.lanes|=tu,Bs|=tu}ps=ps.next}while(ps!==null&&ps!==ur);ga===null?Li=Mt:ga.next=Vo,Nr(Mt,$.memoizedState)||(hu=!0),$.memoizedState=Mt,$.baseState=Li,$.baseQueue=ga,je.lastRenderedState=Mt}if(x=je.interleaved,x!==null){Tn=x;do ur=Tn.lane,ql.lanes|=ur,Bs|=ur,Tn=Tn.next;while(Tn!==x)}else Tn===null&&(je.lanes=0);return[$.memoizedState,je.dispatch]}function ud(x){var $=gf(),je=$.queue;if(je===null)throw Error(s(311));je.lastRenderedReducer=x;var Mt=je.dispatch,Tn=je.pending,ur=$.memoizedState;if(Tn!==null){je.pending=null;var Li=Tn=Tn.next;do ur=x(ur,Li.action),Li=Li.next;while(Li!==Tn);Nr(ur,$.memoizedState)||(hu=!0),$.memoizedState=ur,$.baseQueue===null&&($.baseState=ur),je.lastRenderedState=ur}return[ur,Mt]}function Yd(){}function xd(x,$){var je=ql,Mt=gf(),Tn=$(),ur=!Nr(Mt.memoizedState,Tn);if(ur&&(Mt.memoizedState=Tn,hu=!0),Mt=Mt.queue,kf(lf.bind(null,je,Mt,x),[x]),Mt.getSnapshot!==$||ur||Uc!==null&&Uc.memoizedState.tag&1){if(je.flags|=2048,ic(9,Pc.bind(null,je,Mt,Tn,$),void 0,null),qi===null)throw Error(s(349));Jf&30||rc(je,$,Tn)}return Tn}function rc(x,$,je){x.flags|=16384,x={getSnapshot:$,value:je},$=ql.updateQueue,$===null?($={lastEffect:null,stores:null},ql.updateQueue=$,$.stores=[x]):(je=$.stores,je===null?$.stores=[x]:je.push(x))}function Pc(x,$,je,Mt){$.value=je,$.getSnapshot=Mt,Qc($)&&yc(x)}function lf(x,$,je){return je(function(){Qc($)&&yc(x)})}function Qc(x){var $=x.getSnapshot;x=x.value;try{var je=$();return!Nr(x,je)}catch{return!0}}function yc(x){var $=Zo(x,1);$!==null&&af($,x,1,-1)}function fc(x){var $=jc();return typeof x=="function"&&(x=x()),$.memoizedState=$.baseState=x,x={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Id,lastRenderedState:x},$.queue=x,x=x.dispatch=lh.bind(null,ql,x),[$.memoizedState,x]}function ic(x,$,je,Mt){return x={tag:x,create:$,destroy:je,deps:Mt,next:null},$=ql.updateQueue,$===null?($={lastEffect:null,stores:null},ql.updateQueue=$,$.lastEffect=x.next=x):(je=$.lastEffect,je===null?$.lastEffect=x.next=x:(Mt=je.next,je.next=x,x.next=Mt,$.lastEffect=x)),x}function Kf(){return gf().memoizedState}function ld(x,$,je,Mt){var Tn=jc();ql.flags|=x,Tn.memoizedState=ic(1|$,je,void 0,Mt===void 0?null:Mt)}function Ld(x,$,je,Mt){var Tn=gf();Mt=Mt===void 0?null:Mt;var ur=void 0;if(sc!==null){var Li=sc.memoizedState;if(ur=Li.destroy,Mt!==null&&Lf(Mt,Li.deps)){Tn.memoizedState=ic($,je,ur,Mt);return}}ql.flags|=x,Tn.memoizedState=ic(1|$,je,ur,Mt)}function cf(x,$){return ld(8390656,8,x,$)}function kf(x,$){return Ld(2048,8,x,$)}function uh(x,$){return Ld(4,2,x,$)}function $d(x,$){return Ld(4,4,x,$)}function bh(x,$){if(typeof $=="function")return x=x(),$(x),function(){$(null)};if($!=null)return x=x(),$.current=x,function(){$.current=null}}function Zf(x,$,je){return je=je!=null?je.concat([x]):null,Ld(4,4,bh.bind(null,$,x),je)}function dc(){}function yf(x,$){var je=gf();$=$===void 0?null:$;var Mt=je.memoizedState;return Mt!==null&&$!==null&&Lf($,Mt[1])?Mt[0]:(je.memoizedState=[x,$],x)}function Nf(x,$){var je=gf();$=$===void 0?null:$;var Mt=je.memoizedState;return Mt!==null&&$!==null&&Lf($,Mt[1])?Mt[0]:(x=x(),je.memoizedState=[x,$],x)}function ys(x,$,je){return Jf&21?(Nr(je,$)||(je=Cr(),ql.lanes|=je,Bs|=je,x.baseState=!0),$):(x.baseState&&(x.baseState=!1,hu=!0),x.memoizedState=je)}function Hc(x,$){var je=fn;fn=je!==0&&4>je?je:4,x(!0);var Mt=jd.transition;jd.transition={};try{x(!1),$()}finally{fn=je,jd.transition=Mt}}function Jc(){return gf().memoizedState}function Fh(x,$,je){var Mt=dd(x);if(je={lane:Mt,action:je,hasEagerState:!1,eagerState:null,next:null},Xd(x))Ud($,je);else if(je=fa(x,$,je,Mt),je!==null){var Tn=Lc();af(je,x,Mt,Tn),bd(je,$,Mt)}}function lh(x,$,je){var Mt=dd(x),Tn={lane:Mt,action:je,hasEagerState:!1,eagerState:null,next:null};if(Xd(x))Ud($,Tn);else{var ur=x.alternate;if(x.lanes===0&&(ur===null||ur.lanes===0)&&(ur=$.lastRenderedReducer,ur!==null))try{var Li=$.lastRenderedState,Vo=ur(Li,je);if(Tn.hasEagerState=!0,Tn.eagerState=Vo,Nr(Vo,Li)){var ga=$.interleaved;ga===null?(Tn.next=Tn,ko($)):(Tn.next=ga.next,ga.next=Tn),$.interleaved=Tn;return}}catch{}finally{}je=fa(x,$,Tn,Mt),je!==null&&(Tn=Lc(),af(je,x,Mt,Tn),bd(je,$,Mt))}}function Xd(x){var $=x.alternate;return x===ql||$!==null&&$===ql}function Ud(x,$){nf=Gd=!0;var je=x.pending;je===null?$.next=$:($.next=je.next,je.next=$),x.pending=$}function bd(x,$,je){if(je&4194240){var Mt=$.lanes;Mt&=x.pendingLanes,je|=Mt,$.lanes=je,mt(x,je)}}var Ms={readContext:Dn,useCallback:pf,useContext:pf,useEffect:pf,useImperativeHandle:pf,useInsertionEffect:pf,useLayoutEffect:pf,useMemo:pf,useReducer:pf,useRef:pf,useState:pf,useDebugValue:pf,useDeferredValue:pf,useTransition:pf,useMutableSource:pf,useSyncExternalStore:pf,useId:pf,unstable_isNewReconciler:!1},Pf={readContext:Dn,useCallback:function(x,$){return jc().memoizedState=[x,$===void 0?null:$],x},useContext:Dn,useEffect:cf,useImperativeHandle:function(x,$,je){return je=je!=null?je.concat([x]):null,ld(4194308,4,bh.bind(null,$,x),je)},useLayoutEffect:function(x,$){return ld(4194308,4,x,$)},useInsertionEffect:function(x,$){return ld(4,2,x,$)},useMemo:function(x,$){var je=jc();return $=$===void 0?null:$,x=x(),je.memoizedState=[x,$],x},useReducer:function(x,$,je){var Mt=jc();return $=je!==void 0?je($):$,Mt.memoizedState=Mt.baseState=$,x={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:x,lastRenderedState:$},Mt.queue=x,x=x.dispatch=Fh.bind(null,ql,x),[Mt.memoizedState,x]},useRef:function(x){var $=jc();return x={current:x},$.memoizedState=x},useState:fc,useDebugValue:dc,useDeferredValue:function(x){return jc().memoizedState=x},useTransition:function(){var x=fc(!1),$=x[0];return x=Hc.bind(null,x[1]),jc().memoizedState=x,[$,x]},useMutableSource:function(){},useSyncExternalStore:function(x,$,je){var Mt=ql,Tn=jc();if(ks){if(je===void 0)throw Error(s(407));je=je()}else{if(je=$(),qi===null)throw Error(s(349));Jf&30||rc(Mt,$,je)}Tn.memoizedState=je;var ur={value:je,getSnapshot:$};return Tn.queue=ur,cf(lf.bind(null,Mt,ur,x),[x]),Mt.flags|=2048,ic(9,Pc.bind(null,Mt,ur,je,$),void 0,null),je},useId:function(){var x=jc(),$=qi.identifierPrefix;if(ks){var je=ns,Mt=$a;je=(Mt&~(1<<32-Ai(Mt)-1)).toString(32)+je,$=":"+$+"R"+je,je=Dd++,0<je&&($+="H"+je.toString(32)),$+=":"}else je=yd++,$=":"+$+"r"+je.toString(32)+":";return x.memoizedState=$},unstable_isNewReconciler:!1},bf={readContext:Dn,useCallback:yf,useContext:Dn,useEffect:kf,useImperativeHandle:Zf,useInsertionEffect:uh,useLayoutEffect:$d,useMemo:Nf,useReducer:sd,useRef:Kf,useState:function(){return sd(Id)},useDebugValue:dc,useDeferredValue:function(x){var $=gf();return ys($,sc.memoizedState,x)},useTransition:function(){var x=sd(Id)[0],$=gf().memoizedState;return[x,$]},useMutableSource:Yd,useSyncExternalStore:xd,useId:Jc,unstable_isNewReconciler:!1},cd={readContext:Dn,useCallback:yf,useContext:Dn,useEffect:kf,useImperativeHandle:Zf,useInsertionEffect:uh,useLayoutEffect:$d,useMemo:Nf,useReducer:ud,useRef:Kf,useState:function(){return ud(Id)},useDebugValue:dc,useDeferredValue:function(x){var $=gf();return sc===null?$.memoizedState=x:ys($,sc.memoizedState,x)},useTransition:function(){var x=ud(Id)[0],$=gf().memoizedState;return[x,$]},useMutableSource:Yd,useSyncExternalStore:xd,useId:Jc,unstable_isNewReconciler:!1};function rf(x,$){try{var je="",Mt=$;do je+=Se(Mt),Mt=Mt.return;while(Mt);var Tn=je}catch(ur){Tn=` Error generating stack: `+ur.message+` `+ur.stack}return{value:x,source:$,stack:Tn,digest:null}}function Gf(x,$,je){return{value:x,source:null,stack:je??null,digest:$??null}}function Tf(x,$){try{console.error($.value)}catch(je){setTimeout(function(){throw je})}}var fd=typeof WeakMap=="function"?WeakMap:Map;function eh(x,$,je){je=Fs(-1,je),je.tag=3,je.payload={element:null};var Mt=$.value;return je.callback=function(){Cl||(Cl=!0,Tc=Mt),Tf(x,$)},je}function Rf(x,$,je){je=Fs(-1,je),je.tag=3;var Mt=x.type.getDerivedStateFromError;if(typeof Mt=="function"){var Tn=$.value;je.payload=function(){return Mt(Tn)},je.callback=function(){Tf(x,$)}}var ur=x.stateNode;return ur!==null&&typeof ur.componentDidCatch=="function"&&(je.callback=function(){Tf(x,$),typeof Mt!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var Li=$.stack;this.componentDidCatch($.value,{componentStack:Li!==null?Li:""})}),je}function qf(x,$,je){var Mt=x.pingCache;if(Mt===null){Mt=x.pingCache=new fd;var Tn=new Set;Mt.set($,Tn)}else Tn=Mt.get($),Tn===void 0&&(Tn=new Set,Mt.set($,Tn));Tn.has(je)||(Tn.add(je),x=Ha.bind(null,x,$,je),$.then(x,x))}function kd(x){do{var $;if(($=x.tag===13)&&($=x.memoizedState,$=$!==null?$.dehydrated!==null:!0),$)return x;x=x.return}while(x!==null);return null}function qa(x,$,je,Mt,Tn){return x.mode&1?(x.flags|=65536,x.lanes=Tn,x):(x===$?x.flags|=65536:(x.flags|=128,je.flags|=131072,je.flags&=-52805,je.tag===1&&(je.alternate===null?je.tag=17:($=Fs(-1,1),$.tag=2,ws(je,$,1))),je.lanes|=1),x)}var Gs=A.ReactCurrentOwner,hu=!1;function du(x,$,je,Mt){$.child=x===null?ml($,null,je,Mt):Jl($,x.child,je,Mt)}function Ys(x,$,je,Mt,Tn){je=je.render;var ur=$.ref;return bn($,Tn),Mt=Cd(x,$,je,Mt,ur,Tn),je=vf(),x!==null&&!hu?($.updateQueue=x.updateQueue,$.flags&=-2053,x.lanes&=~Tn,fs(x,$,Tn)):(ks&&je&&Lu($),$.flags|=1,du(x,$,Mt,Tn),$.child)}function Pu(x,$,je,Mt,Tn){if(x===null){var ur=je.type;return typeof ur=="function"&&!lc(ur)&&ur.defaultProps===void 0&&je.compare===null&&je.defaultProps===void 0?($.tag=15,$.type=ur,sl(x,$,ur,Mt,Tn)):(x=uf(je.type,null,Mt,$,$.mode,Tn),x.ref=$.ref,x.return=$,$.child=x)}if(ur=x.child,!(x.lanes&Tn)){var Li=ur.memoizedProps;if(je=je.compare,je=je!==null?je:si,je(Li,Mt)&&x.ref===$.ref)return fs(x,$,Tn)}return $.flags|=1,x=df(ur,Mt),x.ref=$.ref,x.return=$,$.child=x}function sl(x,$,je,Mt,Tn){if(x!==null){var ur=x.memoizedProps;if(si(ur,Mt)&&x.ref===$.ref)if(hu=!1,$.pendingProps=Mt=ur,(x.lanes&Tn)!==0)x.flags&131072&&(hu=!0);else return $.lanes=x.lanes,fs(x,$,Tn)}return xu(x,$,je,Mt,Tn)}function Tu(x,$,je){var Mt=$.pendingProps,Tn=Mt.children,ur=x!==null?x.memoizedState:null;if(Mt.mode==="hidden")if(!($.mode&1))$.memoizedState={baseLanes:0,cachePool:null,transitions:null},_r(mo,go),go|=je;else{if(!(je&1073741824))return x=ur!==null?ur.baseLanes|je:je,$.lanes=$.childLanes=1073741824,$.memoizedState={baseLanes:x,cachePool:null,transitions:null},$.updateQueue=null,_r(mo,go),go|=x,null;$.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt=ur!==null?ur.baseLanes:je,_r(mo,go),go|=Mt}else ur!==null?(Mt=ur.baseLanes|je,$.memoizedState=null):Mt=je,_r(mo,go),go|=Mt;return du(x,$,Tn,je),$.child}function Yu(x,$){var je=$.ref;(x===null&&je!==null||x!==null&&x.ref!==je)&&($.flags|=512,$.flags|=2097152)}function xu(x,$,je,Mt,Tn){var ur=Gi(je)?Ri:oi.current;return ur=Fi($,ur),bn($,Tn),je=Cd(x,$,je,Mt,ur,Tn),Mt=vf(),x!==null&&!hu?($.updateQueue=x.updateQueue,$.flags&=-2053,x.lanes&=~Tn,fs(x,$,Tn)):(ks&&Mt&&Lu($),$.flags|=1,du(x,$,je,Tn),$.child)}function of(x,$,je,Mt,Tn){if(Gi(je)){var ur=!0;Ji($)}else ur=!1;if(bn($,Tn),$.stateNode===null)Va(x,$),ac($,je,Mt),nc($,je,Mt,Tn),Mt=!0;else if(x===null){var Li=$.stateNode,Vo=$.memoizedProps;Li.props=Vo;var ga=Li.context,ps=je.contextType;typeof ps=="object"&&ps!==null?ps=Dn(ps):(ps=Gi(je)?Ri:oi.current,ps=Fi($,ps));var tu=je.getDerivedStateFromProps,ru=typeof tu=="function"||typeof Li.getSnapshotBeforeUpdate=="function";ru||typeof Li.UNSAFE_componentWillReceiveProps!="function"&&typeof Li.componentWillReceiveProps!="function"||(Vo!==Mt||ga!==ps)&&jl($,Li,Mt,ps),Fa=!1;var Ks=$.memoizedState;Li.state=Ks,Du($,Mt,Li,Tn),ga=$.memoizedState,Vo!==Mt||Ks!==ga||ti.current||Fa?(typeof tu=="function"&&(bc($,je,tu,Mt),ga=$.memoizedState),(Vo=Fa||oc($,je,Vo,Mt,Ks,ga,ps))?(ru||typeof Li.UNSAFE_componentWillMount!="function"&&typeof Li.componentWillMount!="function"||(typeof Li.componentWillMount=="function"&&Li.componentWillMount(),typeof Li.UNSAFE_componentWillMount=="function"&&Li.UNSAFE_componentWillMount()),typeof Li.componentDidMount=="function"&&($.flags|=4194308)):(typeof Li.componentDidMount=="function"&&($.flags|=4194308),$.memoizedProps=Mt,$.memoizedState=ga),Li.props=Mt,Li.state=ga,Li.context=ps,Mt=Vo):(typeof Li.componentDidMount=="function"&&($.flags|=4194308),Mt=!1)}else{Li=$.stateNode,ms(x,$),Vo=$.memoizedProps,ps=$.type===$.elementType?Vo:ll($.type,Vo),Li.props=ps,ru=$.pendingProps,Ks=Li.context,ga=je.contextType,typeof ga=="object"&&ga!==null?ga=Dn(ga):(ga=Gi(je)?Ri:oi.current,ga=Fi($,ga));var Xu=je.getDerivedStateFromProps;(tu=typeof Xu=="function"||typeof Li.getSnapshotBeforeUpdate=="function")||typeof Li.UNSAFE_componentWillReceiveProps!="function"&&typeof Li.componentWillReceiveProps!="function"||(Vo!==ru||Ks!==ga)&&jl($,Li,Mt,ga),Fa=!1,Ks=$.memoizedState,Li.state=Ks,Du($,Mt,Li,Tn);var ul=$.memoizedState;Vo!==ru||Ks!==ul||ti.current||Fa?(typeof Xu=="function"&&(bc($,je,Xu,Mt),ul=$.memoizedState),(ps=Fa||oc($,je,ps,Mt,Ks,ul,ga)||!1)?(tu||typeof Li.UNSAFE_componentWillUpdate!="function"&&typeof Li.componentWillUpdate!="function"||(typeof Li.componentWillUpdate=="function"&&Li.componentWillUpdate(Mt,ul,ga),typeof Li.UNSAFE_componentWillUpdate=="function"&&Li.UNSAFE_componentWillUpdate(Mt,ul,ga)),typeof Li.componentDidUpdate=="function"&&($.flags|=4),typeof Li.getSnapshotBeforeUpdate=="function"&&($.flags|=1024)):(typeof Li.componentDidUpdate!="function"||Vo===x.memoizedProps&&Ks===x.memoizedState||($.flags|=4),typeof Li.getSnapshotBeforeUpdate!="function"||Vo===x.memoizedProps&&Ks===x.memoizedState||($.flags|=1024),$.memoizedProps=Mt,$.memoizedState=ul),Li.props=Mt,Li.state=ul,Li.context=ga,Mt=ps):(typeof Li.componentDidUpdate!="function"||Vo===x.memoizedProps&&Ks===x.memoizedState||($.flags|=4),typeof Li.getSnapshotBeforeUpdate!="function"||Vo===x.memoizedProps&&Ks===x.memoizedState||($.flags|=1024),Mt=!1)}return Ol(x,$,je,Mt,ur,Tn)}function Ol(x,$,je,Mt,Tn,ur){Yu(x,$);var Li=($.flags&128)!==0;if(!Mt&&!Li)return Tn&&Uo($,je,!1),fs(x,$,ur);Mt=$.stateNode,Gs.current=$;var Vo=Li&&typeof je.getDerivedStateFromError!="function"?null:Mt.render();return $.flags|=1,x!==null&&Li?($.child=Jl($,x.child,null,ur),$.child=Jl($,null,Vo,ur)):du(x,$,Vo,ur),$.memoizedState=Mt.state,Tn&&Uo($,je,!0),$.child}function wc(x){var $=x.stateNode;$.pendingContext?Do(x,$.pendingContext,$.pendingContext!==$.context):$.context&&Do(x,$.context,!1),Vc(x,$.containerInfo)}function Ll(x,$,je,Mt,Tn){return Hs(),Pl(Tn),$.flags|=256,du(x,$,je,Mt),$.child}var Mc={dehydrated:null,treeContext:null,retryLane:0};function Bl(x){return{baseLanes:x,cachePool:null,transitions:null}}function Ic(x,$,je){var Mt=$.pendingProps,Tn=Zl.current,ur=!1,Li=($.flags&128)!==0,Vo;if((Vo=Li)||(Vo=x!==null&&x.memoizedState===null?!1:(Tn&2)!==0),Vo?(ur=!0,$.flags&=-129):(x===null||x.memoizedState!==null)&&(Tn|=1),_r(Zl,Tn&1),x===null)return Ul($),x=$.memoizedState,x!==null&&(x=x.dehydrated,x!==null)?($.mode&1?x.data==="$!"?$.lanes=8:$.lanes=1073741824:$.lanes=1,null):(Li=Mt.children,x=Mt.fallback,ur?(Mt=$.mode,ur=$.child,Li={mode:"hidden",children:Li},!(Mt&1)&&ur!==null?(ur.childLanes=0,ur.pendingProps=Li):ur=dh(Li,Mt,0,null),x=Jd(x,Mt,je,null),ur.return=$,x.return=$,ur.sibling=x,$.child=ur,$.child.memoizedState=Bl(je),$.memoizedState=Mc,x):qu($,Li));if(Tn=x.memoizedState,Tn!==null&&(Vo=Tn.dehydrated,Vo!==null))return Ni(x,$,Li,Mt,Vo,Tn,je);if(ur){ur=Mt.fallback,Li=$.mode,Tn=x.child,Vo=Tn.sibling;var ga={mode:"hidden",children:Mt.children};return!(Li&1)&&$.child!==Tn?(Mt=$.child,Mt.childLanes=0,Mt.pendingProps=ga,$.deletions=null):(Mt=df(Tn,ga),Mt.subtreeFlags=Tn.subtreeFlags&14680064),Vo!==null?ur=df(Vo,ur):(ur=Jd(ur,Li,je,null),ur.flags|=2),ur.return=$,Mt.return=$,Mt.sibling=ur,$.child=Mt,Mt=ur,ur=$.child,Li=x.child.memoizedState,Li=Li===null?Bl(je):{baseLanes:Li.baseLanes|je,cachePool:null,transitions:Li.transitions},ur.memoizedState=Li,ur.childLanes=x.childLanes&~je,$.memoizedState=Mc,Mt}return ur=x.child,x=ur.sibling,Mt=df(ur,{mode:"visible",children:Mt.children}),!($.mode&1)&&(Mt.lanes=je),Mt.return=$,Mt.sibling=null,x!==null&&(je=$.deletions,je===null?($.deletions=[x],$.flags|=16):je.push(x)),$.child=Mt,$.memoizedState=null,Mt}function qu(x,$){return $=dh({mode:"visible",children:$},x.mode,0,null),$.return=x,x.child=$}function Vr(x,$,je,Mt){return Mt!==null&&Pl(Mt),Jl($,x.child,null,je),x=qu($,$.pendingProps.children),x.flags|=2,$.memoizedState=null,x}function Ni(x,$,je,Mt,Tn,ur,Li){if(je)return $.flags&256?($.flags&=-257,Mt=Gf(Error(s(422))),Vr(x,$,Li,Mt)):$.memoizedState!==null?($.child=x.child,$.flags|=128,null):(ur=Mt.fallback,Tn=$.mode,Mt=dh({mode:"visible",children:Mt.children},Tn,0,null),ur=Jd(ur,Tn,Li,null),ur.flags|=2,Mt.return=$,ur.return=$,Mt.sibling=ur,$.child=Mt,$.mode&1&&Jl($,x.child,null,Li),$.child.memoizedState=Bl(Li),$.memoizedState=Mc,ur);if(!($.mode&1))return Vr(x,$,Li,null);if(Tn.data==="$!"){if(Mt=Tn.nextSibling&&Tn.nextSibling.dataset,Mt)var Vo=Mt.dgst;return Mt=Vo,ur=Error(s(419)),Mt=Gf(ur,Mt,void 0),Vr(x,$,Li,Mt)}if(Vo=(Li&x.childLanes)!==0,hu||Vo){if(Mt=qi,Mt!==null){switch(Li&-Li){case 4:Tn=2;break;case 16:Tn=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Tn=32;break;case 536870912:Tn=268435456;break;default:Tn=0}Tn=Tn&(Mt.suspendedLanes|Li)?0:Tn,Tn!==0&&Tn!==ur.retryLane&&(ur.retryLane=Tn,Zo(x,Tn),af(Mt,x,Tn,-1))}return ch(),Mt=Gf(Error(s(421))),Vr(x,$,Li,Mt)}return Tn.data==="$?"?($.flags|=128,$.child=x.child,$=Qs.bind(null,x),Tn._reactRetry=$,null):(x=ur.treeContext,pu=Ja(Tn.nextSibling),pl=$,ks=!0,su=null,x!==null&&(Ga[vs++]=$a,Ga[vs++]=ns,Ga[vs++]=Za,$a=x.id,ns=x.overflow,Za=$),$=qu($,Mt.children),$.flags|=4096,$)}function fo(x,$,je){x.lanes|=$;var Mt=x.alternate;Mt!==null&&(Mt.lanes|=$),Xt(x.return,$,je)}function Po(x,$,je,Mt,Tn){var ur=x.memoizedState;ur===null?x.memoizedState={isBackwards:$,rendering:null,renderingStartTime:0,last:Mt,tail:je,tailMode:Tn}:(ur.isBackwards=$,ur.rendering=null,ur.renderingStartTime=0,ur.last=Mt,ur.tail=je,ur.tailMode=Tn)}function pa(x,$,je){var Mt=$.pendingProps,Tn=Mt.revealOrder,ur=Mt.tail;if(du(x,$,Mt.children,je),Mt=Zl.current,Mt&2)Mt=Mt&1|2,$.flags|=128;else{if(x!==null&&x.flags&128)e:for(x=$.child;x!==null;){if(x.tag===13)x.memoizedState!==null&&fo(x,je,$);else if(x.tag===19)fo(x,je,$);else if(x.child!==null){x.child.return=x,x=x.child;continue}if(x===$)break e;for(;x.sibling===null;){if(x.return===null||x.return===$)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}Mt&=1}if(_r(Zl,Mt),!($.mode&1))$.memoizedState=null;else switch(Tn){case"forwards":for(je=$.child,Tn=null;je!==null;)x=je.alternate,x!==null&&qd(x)===null&&(Tn=je),je=je.sibling;je=Tn,je===null?(Tn=$.child,$.child=null):(Tn=je.sibling,je.sibling=null),Po($,!1,Tn,je,ur);break;case"backwards":for(je=null,Tn=$.child,$.child=null;Tn!==null;){if(x=Tn.alternate,x!==null&&qd(x)===null){$.child=Tn;break}x=Tn.sibling,Tn.sibling=je,je=Tn,Tn=x}Po($,!0,je,null,ur);break;case"together":Po($,!1,null,null,void 0);break;default:$.memoizedState=null}return $.child}function Va(x,$){!($.mode&1)&&x!==null&&(x.alternate=null,$.alternate=null,$.flags|=2)}function fs(x,$,je){if(x!==null&&($.dependencies=x.dependencies),Bs|=$.lanes,!(je&$.childLanes))return null;if(x!==null&&$.child!==x.child)throw Error(s(153));if($.child!==null){for(x=$.child,je=df(x,x.pendingProps),$.child=je,je.return=$;x.sibling!==null;)x=x.sibling,je=je.sibling=df(x,x.pendingProps),je.return=$;je.sibling=null}return $.child}function zs(x,$,je){switch($.tag){case 3:wc($),Hs();break;case 5:_c($);break;case 1:Gi($.type)&&Ji($);break;case 4:Vc($,$.stateNode.containerInfo);break;case 10:var Mt=$.type._context,Tn=$.memoizedProps.value;_r(Kl,Mt._currentValue),Mt._currentValue=Tn;break;case 13:if(Mt=$.memoizedState,Mt!==null)return Mt.dehydrated!==null?(_r(Zl,Zl.current&1),$.flags|=128,null):je&$.child.childLanes?Ic(x,$,je):(_r(Zl,Zl.current&1),x=fs(x,$,je),x!==null?x.sibling:null);_r(Zl,Zl.current&1);break;case 19:if(Mt=(je&$.childLanes)!==0,x.flags&128){if(Mt)return pa(x,$,je);$.flags|=128}if(Tn=$.memoizedState,Tn!==null&&(Tn.rendering=null,Tn.tail=null,Tn.lastEffect=null),_r(Zl,Zl.current),Mt)break;return null;case 22:case 23:return $.lanes=0,Tu(x,$,je)}return fs(x,$,je)}var cu,Ru,Vs,Ou;cu=function(x,$){for(var je=$.child;je!==null;){if(je.tag===5||je.tag===6)x.appendChild(je.stateNode);else if(je.tag!==4&&je.child!==null){je.child.return=je,je=je.child;continue}if(je===$)break;for(;je.sibling===null;){if(je.return===null||je.return===$)return;je=je.return}je.sibling.return=je.return,je=je.sibling}},Ru=function(){},Vs=function(x,$,je,Mt){var Tn=x.memoizedProps;if(Tn!==Mt){x=$.stateNode,hf(Vu.current);var ur=null;switch(je){case"input":Tn=U(x,Tn),Mt=U(x,Mt),ur=[];break;case"select":Tn=Te({},Tn,{value:void 0}),Mt=Te({},Mt,{value:void 0}),ur=[];break;case"textarea":Tn=Ut(x,Tn),Mt=Ut(x,Mt),ur=[];break;default:typeof Tn.onClick!="function"&&typeof Mt.onClick=="function"&&(x.onclick=wi)}We(je,Mt);var Li;je=null;for(ps in Tn)if(!Mt.hasOwnProperty(ps)&&Tn.hasOwnProperty(ps)&&Tn[ps]!=null)if(ps==="style"){var Vo=Tn[ps];for(Li in Vo)Vo.hasOwnProperty(Li)&&(je||(je={}),je[Li]="")}else ps!=="dangerouslySetInnerHTML"&&ps!=="children"&&ps!=="suppressContentEditableWarning"&&ps!=="suppressHydrationWarning"&&ps!=="autoFocus"&&(u.hasOwnProperty(ps)?ur||(ur=[]):(ur=ur||[]).push(ps,null));for(ps in Mt){var ga=Mt[ps];if(Vo=Tn?.[ps],Mt.hasOwnProperty(ps)&&ga!==Vo&&(ga!=null||Vo!=null))if(ps==="style")if(Vo){for(Li in Vo)!Vo.hasOwnProperty(Li)||ga&&ga.hasOwnProperty(Li)||(je||(je={}),je[Li]="");for(Li in ga)ga.hasOwnProperty(Li)&&Vo[Li]!==ga[Li]&&(je||(je={}),je[Li]=ga[Li])}else je||(ur||(ur=[]),ur.push(ps,je)),je=ga;else ps==="dangerouslySetInnerHTML"?(ga=ga?ga.__html:void 0,Vo=Vo?Vo.__html:void 0,ga!=null&&Vo!==ga&&(ur=ur||[]).push(ps,ga)):ps==="children"?typeof ga!="string"&&typeof ga!="number"||(ur=ur||[]).push(ps,""+ga):ps!=="suppressContentEditableWarning"&&ps!=="suppressHydrationWarning"&&(u.hasOwnProperty(ps)?(ga!=null&&ps==="onScroll"&&te("scroll",x),ur||Vo===ga||(ur=[])):(ur=ur||[]).push(ps,ga))}je&&(ur=ur||[]).push("style",je);var ps=ur;($.updateQueue=ps)&&($.flags|=4)}},Ou=function(x,$,je,Mt){je!==Mt&&($.flags|=4)};function iu(x,$){if(!ks)switch(x.tailMode){case"hidden":$=x.tail;for(var je=null;$!==null;)$.alternate!==null&&(je=$),$=$.sibling;je===null?x.tail=null:je.sibling=null;break;case"collapsed":je=x.tail;for(var Mt=null;je!==null;)je.alternate!==null&&(Mt=je),je=je.sibling;Mt===null?$||x.tail===null?x.tail=null:x.tail.sibling=null:Mt.sibling=null}}function Uu(x){var $=x.alternate!==null&&x.alternate.child===x.child,je=0,Mt=0;if($)for(var Tn=x.child;Tn!==null;)je|=Tn.lanes|Tn.childLanes,Mt|=Tn.subtreeFlags&14680064,Mt|=Tn.flags&14680064,Tn.return=x,Tn=Tn.sibling;else for(Tn=x.child;Tn!==null;)je|=Tn.lanes|Tn.childLanes,Mt|=Tn.subtreeFlags,Mt|=Tn.flags,Tn.return=x,Tn=Tn.sibling;return x.subtreeFlags|=Mt,x.childLanes=je,$}function kl(x,$,je){var Mt=$.pendingProps;switch(ju($),$.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Uu($),null;case 1:return Gi($.type)&&yo(),Uu($),null;case 3:return Mt=$.stateNode,Od(),jn(ti),jn(oi),jf(),Mt.pendingContext&&(Mt.context=Mt.pendingContext,Mt.pendingContext=null),(x===null||x.child===null)&&(il($)?$.flags|=4:x===null||x.memoizedState.isDehydrated&&!($.flags&256)||($.flags|=1024,su!==null&&(ed(su),su=null))),Ru(x,$),Uu($),null;case 5:Xc($);var Tn=hf(Bc.current);if(je=$.type,x!==null&&$.stateNode!=null)Vs(x,$,je,Mt,Tn),x.ref!==$.ref&&($.flags|=512,$.flags|=2097152);else{if(!Mt){if($.stateNode===null)throw Error(s(166));return Uu($),null}if(x=hf(Vu.current),il($)){Mt=$.stateNode,je=$.type;var ur=$.memoizedProps;switch(Mt[ba]=$,Mt[Ka]=ur,x=($.mode&1)!==0,je){case"dialog":te("cancel",Mt),te("close",Mt);break;case"iframe":case"object":case"embed":te("load",Mt);break;case"video":case"audio":for(Tn=0;Tn<Kn.length;Tn++)te(Kn[Tn],Mt);break;case"source":te("error",Mt);break;case"img":case"image":case"link":te("error",Mt),te("load",Mt);break;case"details":te("toggle",Mt);break;case"input":F(Mt,ur),te("invalid",Mt);break;case"select":Mt._wrapperState={wasMultiple:!!ur.multiple},te("invalid",Mt);break;case"textarea":Ke(Mt,ur),te("invalid",Mt)}We(je,ur),Tn=null;for(var Li in ur)if(ur.hasOwnProperty(Li)){var Vo=ur[Li];Li==="children"?typeof Vo=="string"?Mt.textContent!==Vo&&(ur.suppressHydrationWarning!==!0&&ar(Mt.textContent,Vo,x),Tn=["children",Vo]):typeof Vo=="number"&&Mt.textContent!==""+Vo&&(ur.suppressHydrationWarning!==!0&&ar(Mt.textContent,Vo,x),Tn=["children",""+Vo]):u.hasOwnProperty(Li)&&Vo!=null&&Li==="onScroll"&&te("scroll",Mt)}switch(je){case"input":pt(Mt),ke(Mt,ur,!0);break;case"textarea":pt(Mt),At(Mt);break;case"select":case"option":break;default:typeof ur.onClick=="function"&&(Mt.onclick=wi)}Mt=Tn,$.updateQueue=Mt,Mt!==null&&($.flags|=4)}else{Li=Tn.nodeType===9?Tn:Tn.ownerDocument,x==="http://www.w3.org/1999/xhtml"&&(x=et(je)),x==="http://www.w3.org/1999/xhtml"?je==="script"?(x=Li.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild)):typeof Mt.is=="string"?x=Li.createElement(je,{is:Mt.is}):(x=Li.createElement(je),je==="select"&&(Li=x,Mt.multiple?Li.multiple=!0:Mt.size&&(Li.size=Mt.size))):x=Li.createElementNS(x,je),x[ba]=$,x[Ka]=Mt,cu(x,$,!1,!1),$.stateNode=x;e:{switch(Li=_t(je,Mt),je){case"dialog":te("cancel",x),te("close",x),Tn=Mt;break;case"iframe":case"object":case"embed":te("load",x),Tn=Mt;break;case"video":case"audio":for(Tn=0;Tn<Kn.length;Tn++)te(Kn[Tn],x);Tn=Mt;break;case"source":te("error",x),Tn=Mt;break;case"img":case"image":case"link":te("error",x),te("load",x),Tn=Mt;break;case"details":te("toggle",x),Tn=Mt;break;case"input":F(x,Mt),Tn=U(x,Mt),te("invalid",x);break;case"option":Tn=Mt;break;case"select":x._wrapperState={wasMultiple:!!Mt.multiple},Tn=Te({},Mt,{value:void 0}),te("invalid",x);break;case"textarea":Ke(x,Mt),Tn=Ut(x,Mt),te("invalid",x);break;default:Tn=Mt}We(je,Tn),Vo=Tn;for(ur in Vo)if(Vo.hasOwnProperty(ur)){var ga=Vo[ur];ur==="style"?ze(x,ga):ur==="dangerouslySetInnerHTML"?(ga=ga?ga.__html:void 0,ga!=null&&K(x,ga)):ur==="children"?typeof ga=="string"?(je!=="textarea"||ga!=="")&&ue(x,ga):typeof ga=="number"&&ue(x,""+ga):ur!=="suppressContentEditableWarning"&&ur!=="suppressHydrationWarning"&&ur!=="autoFocus"&&(u.hasOwnProperty(ur)?ga!=null&&ur==="onScroll"&&te("scroll",x):ga!=null&&T(x,ur,ga,Li))}switch(je){case"input":pt(x),ke(x,Mt,!1);break;case"textarea":pt(x),At(x);break;case"option":Mt.value!=null&&x.setAttribute("value",""+xe(Mt.value));break;case"select":x.multiple=!!Mt.multiple,ur=Mt.value,ur!=null?wt(x,!!Mt.multiple,ur,!1):Mt.defaultValue!=null&&wt(x,!!Mt.multiple,Mt.defaultValue,!0);break;default:typeof Tn.onClick=="function"&&(x.onclick=wi)}switch(je){case"button":case"input":case"select":case"textarea":Mt=!!Mt.autoFocus;break e;case"img":Mt=!0;break e;default:Mt=!1}}Mt&&($.flags|=4)}$.ref!==null&&($.flags|=512,$.flags|=2097152)}return Uu($),null;case 6:if(x&&$.stateNode!=null)Ou(x,$,x.memoizedProps,Mt);else{if(typeof Mt!="string"&&$.stateNode===null)throw Error(s(166));if(je=hf(Bc.current),hf(Vu.current),il($)){if(Mt=$.stateNode,je=$.memoizedProps,Mt[ba]=$,(ur=Mt.nodeValue!==je)&&(x=pl,x!==null))switch(x.tag){case 3:ar(Mt.nodeValue,je,(x.mode&1)!==0);break;case 5:x.memoizedProps.suppressHydrationWarning!==!0&&ar(Mt.nodeValue,je,(x.mode&1)!==0)}ur&&($.flags|=4)}else Mt=(je.nodeType===9?je:je.ownerDocument).createTextNode(Mt),Mt[ba]=$,$.stateNode=Mt}return Uu($),null;case 13:if(jn(Zl),Mt=$.memoizedState,x===null||x.memoizedState!==null&&x.memoizedState.dehydrated!==null){if(ks&&pu!==null&&$.mode&1&&!($.flags&128))_l(),Hs(),$.flags|=98560,ur=!1;else if(ur=il($),Mt!==null&&Mt.dehydrated!==null){if(x===null){if(!ur)throw Error(s(318));if(ur=$.memoizedState,ur=ur!==null?ur.dehydrated:null,!ur)throw Error(s(317));ur[ba]=$}else Hs(),!($.flags&128)&&($.memoizedState=null),$.flags|=4;Uu($),ur=!1}else su!==null&&(ed(su),su=null),ur=!0;if(!ur)return $.flags&65536?$:null}return $.flags&128?($.lanes=je,$):(Mt=Mt!==null,Mt!==(x!==null&&x.memoizedState!==null)&&Mt&&($.child.flags|=8192,$.mode&1&&(x===null||Zl.current&1?Bo===0&&(Bo=3):ch())),$.updateQueue!==null&&($.flags|=4),Uu($),null);case 4:return Od(),Ru(x,$),x===null&&ht($.stateNode.containerInfo),Uu($),null;case 10:return Ns($.type._context),Uu($),null;case 17:return Gi($.type)&&yo(),Uu($),null;case 19:if(jn(Zl),ur=$.memoizedState,ur===null)return Uu($),null;if(Mt=($.flags&128)!==0,Li=ur.rendering,Li===null)if(Mt)iu(ur,!1);else{if(Bo!==0||x!==null&&x.flags&128)for(x=$.child;x!==null;){if(Li=qd(x),Li!==null){for($.flags|=128,iu(ur,!1),Mt=Li.updateQueue,Mt!==null&&($.updateQueue=Mt,$.flags|=4),$.subtreeFlags=0,Mt=je,je=$.child;je!==null;)ur=je,x=Mt,ur.flags&=14680066,Li=ur.alternate,Li===null?(ur.childLanes=0,ur.lanes=x,ur.child=null,ur.subtreeFlags=0,ur.memoizedProps=null,ur.memoizedState=null,ur.updateQueue=null,ur.dependencies=null,ur.stateNode=null):(ur.childLanes=Li.childLanes,ur.lanes=Li.lanes,ur.child=Li.child,ur.subtreeFlags=0,ur.deletions=null,ur.memoizedProps=Li.memoizedProps,ur.memoizedState=Li.memoizedState,ur.updateQueue=Li.updateQueue,ur.type=Li.type,x=Li.dependencies,ur.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext}),je=je.sibling;return _r(Zl,Zl.current&1|2),$.child}x=x.sibling}ur.tail!==null&&pi()>yl&&($.flags|=128,Mt=!0,iu(ur,!1),$.lanes=4194304)}else{if(!Mt)if(x=qd(Li),x!==null){if($.flags|=128,Mt=!0,je=x.updateQueue,je!==null&&($.updateQueue=je,$.flags|=4),iu(ur,!0),ur.tail===null&&ur.tailMode==="hidden"&&!Li.alternate&&!ks)return Uu($),null}else 2*pi()-ur.renderingStartTime>yl&&je!==1073741824&&($.flags|=128,Mt=!0,iu(ur,!1),$.lanes=4194304);ur.isBackwards?(Li.sibling=$.child,$.child=Li):(je=ur.last,je!==null?je.sibling=Li:$.child=Li,ur.last=Li)}return ur.tail!==null?($=ur.tail,ur.rendering=$,ur.tail=$.sibling,ur.renderingStartTime=pi(),$.sibling=null,je=Zl.current,_r(Zl,Mt?je&1|2:je&1),$):(Uu($),null);case 22:case 23:return uc(),Mt=$.memoizedState!==null,x!==null&&x.memoizedState!==null!==Mt&&($.flags|=8192),Mt&&$.mode&1?go&1073741824&&(Uu($),$.subtreeFlags&6&&($.flags|=8192)):Uu($),null;case 24:return null;case 25:return null}throw Error(s(156,$.tag))}function gl(x,$){switch(ju($),$.tag){case 1:return Gi($.type)&&yo(),x=$.flags,x&65536?($.flags=x&-65537|128,$):null;case 3:return Od(),jn(ti),jn(oi),jf(),x=$.flags,x&65536&&!(x&128)?($.flags=x&-65537|128,$):null;case 5:return Xc($),null;case 13:if(jn(Zl),x=$.memoizedState,x!==null&&x.dehydrated!==null){if($.alternate===null)throw Error(s(340));Hs()}return x=$.flags,x&65536?($.flags=x&-65537|128,$):null;case 19:return jn(Zl),null;case 4:return Od(),null;case 10:return Ns($.type._context),null;case 22:case 23:return uc(),null;case 24:return null;default:return null}}var ol=!1,El=!1,Zc=typeof WeakSet=="function"?WeakSet:Set,mu=null;function Ps(x,$){var je=x.ref;if(je!==null)if(typeof je=="function")try{je(null)}catch(Mt){ds(x,$,Mt)}else je.current=null}function Kc(x,$,je){try{je()}catch(Mt){ds(x,$,Mt)}}var vc=!1;function ff(x,$){if(mi=ja,x=vo(),ea(x)){if("selectionStart"in x)var je={start:x.selectionStart,end:x.selectionEnd};else e:{je=(je=x.ownerDocument)&&je.defaultView||window;var Mt=je.getSelection&&je.getSelection();if(Mt&&Mt.rangeCount!==0){je=Mt.anchorNode;var Tn=Mt.anchorOffset,ur=Mt.focusNode;Mt=Mt.focusOffset;try{je.nodeType,ur.nodeType}catch{je=null;break e}var Li=0,Vo=-1,ga=-1,ps=0,tu=0,ru=x,Ks=null;t:for(;;){for(var Xu;ru!==je||Tn!==0&&ru.nodeType!==3||(Vo=Li+Tn),ru!==ur||Mt!==0&&ru.nodeType!==3||(ga=Li+Mt),ru.nodeType===3&&(Li+=ru.nodeValue.length),(Xu=ru.firstChild)!==null;)Ks=ru,ru=Xu;for(;;){if(ru===x)break t;if(Ks===je&&++ps===Tn&&(Vo=Li),Ks===ur&&++tu===Mt&&(ga=Li),(Xu=ru.nextSibling)!==null)break;ru=Ks,Ks=ru.parentNode}ru=Xu}je=Vo===-1||ga===-1?null:{start:Vo,end:ga}}else je=null}je=je||{start:0,end:0}}else je=null;for(ho={focusedElem:x,selectionRange:je},ja=!1,mu=$;mu!==null;)if($=mu,x=$.child,($.subtreeFlags&1028)!==0&&x!==null)x.return=$,mu=x;else for(;mu!==null;){$=mu;try{var ul=$.alternate;if($.flags&1024)switch($.tag){case 0:case 11:case 15:break;case 1:if(ul!==null){var dl=ul.memoizedProps,Vf=ul.memoizedState,ts=$.stateNode,xa=ts.getSnapshotBeforeUpdate($.elementType===$.type?dl:ll($.type,dl),Vf);ts.__reactInternalSnapshotBeforeUpdate=xa}break;case 3:var ls=$.stateNode.containerInfo;ls.nodeType===1?ls.textContent="":ls.nodeType===9&&ls.documentElement&&ls.removeChild(ls.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Eu){ds($,$.return,Eu)}if(x=$.sibling,x!==null){x.return=$.return,mu=x;break}mu=$.return}return ul=vc,vc=!1,ul}function Wc(x,$,je){var Mt=$.updateQueue;if(Mt=Mt!==null?Mt.lastEffect:null,Mt!==null){var Tn=Mt=Mt.next;do{if((Tn.tag&x)===x){var ur=Tn.destroy;Tn.destroy=void 0,ur!==void 0&&Kc($,je,ur)}Tn=Tn.next}while(Tn!==Mt)}}function Mf(x,$){if($=$.updateQueue,$=$!==null?$.lastEffect:null,$!==null){var je=$=$.next;do{if((je.tag&x)===x){var Mt=je.create;je.destroy=Mt()}je=je.next}while(je!==$)}}function wd(x){var $=x.ref;if($!==null){var je=x.stateNode;switch(x.tag){case 5:x=je;break;default:x=je}typeof $=="function"?$(x):$.current=x}}function mf(x){var $=x.alternate;$!==null&&(x.alternate=null,mf($)),x.child=null,x.deletions=null,x.sibling=null,x.tag===5&&($=x.stateNode,$!==null&&(delete $[ba],delete $[Ka],delete $[ii],delete $[Wo],delete $[Ra])),x.stateNode=null,x.return=null,x.dependencies=null,x.memoizedProps=null,x.memoizedState=null,x.pendingProps=null,x.stateNode=null,x.updateQueue=null}function Df(x){return x.tag===5||x.tag===3||x.tag===4}function Ah(x){e:for(;;){for(;x.sibling===null;){if(x.return===null||Df(x.return))return null;x=x.return}for(x.sibling.return=x.return,x=x.sibling;x.tag!==5&&x.tag!==6&&x.tag!==18;){if(x.flags&2||x.child===null||x.tag===4)continue e;x.child.return=x,x=x.child}if(!(x.flags&2))return x.stateNode}}function Ed(x,$,je){var Mt=x.tag;if(Mt===5||Mt===6)x=x.stateNode,$?je.nodeType===8?je.parentNode.insertBefore(x,$):je.insertBefore(x,$):(je.nodeType===8?($=je.parentNode,$.insertBefore(x,je)):($=je,$.appendChild(x)),je=je._reactRootContainer,je!=null||$.onclick!==null||($.onclick=wi));else if(Mt!==4&&(x=x.child,x!==null))for(Ed(x,$,je),x=x.sibling;x!==null;)Ed(x,$,je),x=x.sibling}function $f(x,$,je){var Mt=x.tag;if(Mt===5||Mt===6)x=x.stateNode,$?je.insertBefore(x,$):je.appendChild(x);else if(Mt!==4&&(x=x.child,x!==null))for($f(x,$,je),x=x.sibling;x!==null;)$f(x,$,je),x=x.sibling}var Dc=null,_f=!1;function wf(x,$,je){for(je=je.child;je!==null;)Uf(x,$,je),je=je.sibling}function Uf(x,$,je){if(Kr&&typeof Kr.onCommitFiberUnmount=="function")try{Kr.onCommitFiberUnmount(Si,je)}catch{}switch(je.tag){case 5:El||Ps(je,$);case 6:var Mt=Dc,Tn=_f;Dc=null,wf(x,$,je),Dc=Mt,_f=Tn,Dc!==null&&(_f?(x=Dc,je=je.stateNode,x.nodeType===8?x.parentNode.removeChild(je):x.removeChild(je)):Dc.removeChild(je.stateNode));break;case 18:Dc!==null&&(_f?(x=Dc,je=je.stateNode,x.nodeType===8?La(x.parentNode,je):x.nodeType===1&&La(x,je),to(x)):La(Dc,je.stateNode));break;case 4:Mt=Dc,Tn=_f,Dc=je.stateNode.containerInfo,_f=!0,wf(x,$,je),Dc=Mt,_f=Tn;break;case 0:case 11:case 14:case 15:if(!El&&(Mt=je.updateQueue,Mt!==null&&(Mt=Mt.lastEffect,Mt!==null))){Tn=Mt=Mt.next;do{var ur=Tn,Li=ur.destroy;ur=ur.tag,Li!==void 0&&(ur&2||ur&4)&&Kc(je,$,Li),Tn=Tn.next}while(Tn!==Mt)}wf(x,$,je);break;case 1:if(!El&&(Ps(je,$),Mt=je.stateNode,typeof Mt.componentWillUnmount=="function"))try{Mt.props=je.memoizedProps,Mt.state=je.memoizedState,Mt.componentWillUnmount()}catch(Vo){ds(je,$,Vo)}wf(x,$,je);break;case 21:wf(x,$,je);break;case 22:je.mode&1?(El=(Mt=El)||je.memoizedState!==null,wf(x,$,je),El=Mt):wf(x,$,je);break;default:wf(x,$,je)}}function Wd(x){var $=x.updateQueue;if($!==null){x.updateQueue=null;var je=x.stateNode;je===null&&(je=x.stateNode=new Zc),$.forEach(function(Mt){var Tn=vu.bind(null,x,Mt);je.has(Mt)||(je.add(Mt),Mt.then(Tn,Tn))})}}function Ff(x,$){var je=$.deletions;if(je!==null)for(var Mt=0;Mt<je.length;Mt++){var Tn=je[Mt];try{var ur=x,Li=$,Vo=Li;e:for(;Vo!==null;){switch(Vo.tag){case 5:Dc=Vo.stateNode,_f=!1;break e;case 3:Dc=Vo.stateNode.containerInfo,_f=!0;break e;case 4:Dc=Vo.stateNode.containerInfo,_f=!0;break e}Vo=Vo.return}if(Dc===null)throw Error(s(160));Uf(ur,Li,Tn),Dc=null,_f=!1;var ga=Tn.alternate;ga!==null&&(ga.return=null),Tn.return=null}catch(ps){ds(Tn,$,ps)}}if($.subtreeFlags&12854)for($=$.child;$!==null;)Qd($,x),$=$.sibling}function Qd(x,$){var je=x.alternate,Mt=x.flags;switch(x.tag){case 0:case 11:case 14:case 15:if(Ff($,x),Nd(x),Mt&4){try{Wc(3,x,x.return),Mf(3,x)}catch(dl){ds(x,x.return,dl)}try{Wc(5,x,x.return)}catch(dl){ds(x,x.return,dl)}}break;case 1:Ff($,x),Nd(x),Mt&512&&je!==null&&Ps(je,je.return);break;case 5:if(Ff($,x),Nd(x),Mt&512&&je!==null&&Ps(je,je.return),x.flags&32){var Tn=x.stateNode;try{ue(Tn,"")}catch(dl){ds(x,x.return,dl)}}if(Mt&4&&(Tn=x.stateNode,Tn!=null)){var ur=x.memoizedProps,Li=je!==null?je.memoizedProps:ur,Vo=x.type,ga=x.updateQueue;if(x.updateQueue=null,ga!==null)try{Vo==="input"&&ur.type==="radio"&&ur.name!=null&&Y(Tn,ur),_t(Vo,Li);var ps=_t(Vo,ur);for(Li=0;Li<ga.length;Li+=2){var tu=ga[Li],ru=ga[Li+1];tu==="style"?ze(Tn,ru):tu==="dangerouslySetInnerHTML"?K(Tn,ru):tu==="children"?ue(Tn,ru):T(Tn,tu,ru,ps)}switch(Vo){case"input":le(Tn,ur);break;case"textarea":it(Tn,ur);break;case"select":var Ks=Tn._wrapperState.wasMultiple;Tn._wrapperState.wasMultiple=!!ur.multiple;var Xu=ur.value;Xu!=null?wt(Tn,!!ur.multiple,Xu,!1):Ks!==!!ur.multiple&&(ur.defaultValue!=null?wt(Tn,!!ur.multiple,ur.defaultValue,!0):wt(Tn,!!ur.multiple,ur.multiple?[]:"",!1))}Tn[Ka]=ur}catch(dl){ds(x,x.return,dl)}}break;case 6:if(Ff($,x),Nd(x),Mt&4){if(x.stateNode===null)throw Error(s(162));Tn=x.stateNode,ur=x.memoizedProps;try{Tn.nodeValue=ur}catch(dl){ds(x,x.return,dl)}}break;case 3:if(Ff($,x),Nd(x),Mt&4&&je!==null&&je.memoizedState.isDehydrated)try{to($.containerInfo)}catch(dl){ds(x,x.return,dl)}break;case 4:Ff($,x),Nd(x);break;case 13:Ff($,x),Nd(x),Tn=x.child,Tn.flags&8192&&(ur=Tn.memoizedState!==null,Tn.stateNode.isHidden=ur,!ur||Tn.alternate!==null&&Tn.alternate.memoizedState!==null||(Ku=pi())),Mt&4&&Wd(x);break;case 22:if(tu=je!==null&&je.memoizedState!==null,x.mode&1?(El=(ps=El)||tu,Ff($,x),El=ps):Ff($,x),Nd(x),Mt&8192){if(ps=x.memoizedState!==null,(x.stateNode.isHidden=ps)&&!tu&&x.mode&1)for(mu=x,tu=x.child;tu!==null;){for(ru=mu=tu;mu!==null;){switch(Ks=mu,Xu=Ks.child,Ks.tag){case 0:case 11:case 14:case 15:Wc(4,Ks,Ks.return);break;case 1:Ps(Ks,Ks.return);var ul=Ks.stateNode;if(typeof ul.componentWillUnmount=="function"){Mt=Ks,je=Ks.return;try{$=Mt,ul.props=$.memoizedProps,ul.state=$.memoizedState,ul.componentWillUnmount()}catch(dl){ds(Mt,je,dl)}}break;case 5:Ps(Ks,Ks.return);break;case 22:if(Ks.memoizedState!==null){lt(ru);continue}}Xu!==null?(Xu.return=Ks,mu=Xu):lt(ru)}tu=tu.sibling}e:for(tu=null,ru=x;;){if(ru.tag===5){if(tu===null){tu=ru;try{Tn=ru.stateNode,ps?(ur=Tn.style,typeof ur.setProperty=="function"?ur.setProperty("display","none","important"):ur.display="none"):(Vo=ru.stateNode,ga=ru.memoizedProps.style,Li=ga!=null&&ga.hasOwnProperty("display")?ga.display:null,Vo.style.display=Fe("display",Li))}catch(dl){ds(x,x.return,dl)}}}else if(ru.tag===6){if(tu===null)try{ru.stateNode.nodeValue=ps?"":ru.memoizedProps}catch(dl){ds(x,x.return,dl)}}else if((ru.tag!==22&&ru.tag!==23||ru.memoizedState===null||ru===x)&&ru.child!==null){ru.child.return=ru,ru=ru.child;continue}if(ru===x)break e;for(;ru.sibling===null;){if(ru.return===null||ru.return===x)break e;tu===ru&&(tu=null),ru=ru.return}tu===ru&&(tu=null),ru.sibling.return=ru.return,ru=ru.sibling}}break;case 19:Ff($,x),Nd(x),Mt&4&&Wd(x);break;case 21:break;default:Ff($,x),Nd(x)}}function Nd(x){var $=x.flags;if($&2){try{e:{for(var je=x.return;je!==null;){if(Df(je)){var Mt=je;break e}je=je.return}throw Error(s(160))}switch(Mt.tag){case 5:var Tn=Mt.stateNode;Mt.flags&32&&(ue(Tn,""),Mt.flags&=-33);var ur=Ah(x);$f(x,ur,Tn);break;case 3:case 4:var Li=Mt.stateNode.containerInfo,Vo=Ah(x);Ed(x,Vo,Li);break;default:throw Error(s(161))}}catch(ga){ds(x,x.return,ga)}x.flags&=-3}$&4096&&(x.flags&=-4097)}function Wf(x,$,je){mu=x,nh(x,$,je)}function nh(x,$,je){for(var Mt=(x.mode&1)!==0;mu!==null;){var Tn=mu,ur=Tn.child;if(Tn.tag===22&&Mt){var Li=Tn.memoizedState!==null||ol;if(!Li){var Vo=Tn.alternate,ga=Vo!==null&&Vo.memoizedState!==null||El;Vo=ol;var ps=El;if(ol=Li,(El=ga)&&!ps)for(mu=Tn;mu!==null;)Li=mu,ga=Li.child,Li.tag===22&&Li.memoizedState!==null?Kt(Tn):ga!==null?(ga.return=Li,mu=ga):Kt(Tn);for(;ur!==null;)mu=ur,nh(ur,$,je),ur=ur.sibling;mu=Tn,ol=Vo,El=ps}Ze(x,$,je)}else Tn.subtreeFlags&8772&&ur!==null?(ur.return=Tn,mu=ur):Ze(x,$,je)}}function Ze(x){for(;mu!==null;){var $=mu;if($.flags&8772){var je=$.alternate;try{if($.flags&8772)switch($.tag){case 0:case 11:case 15:El||Mf(5,$);break;case 1:var Mt=$.stateNode;if($.flags&4&&!El)if(je===null)Mt.componentDidMount();else{var Tn=$.elementType===$.type?je.memoizedProps:ll($.type,je.memoizedProps);Mt.componentDidUpdate(Tn,je.memoizedState,Mt.__reactInternalSnapshotBeforeUpdate)}var ur=$.updateQueue;ur!==null&&zu($,ur,Mt);break;case 3:var Li=$.updateQueue;if(Li!==null){if(je=null,$.child!==null)switch($.child.tag){case 5:je=$.child.stateNode;break;case 1:je=$.child.stateNode}zu($,Li,je)}break;case 5:var Vo=$.stateNode;if(je===null&&$.flags&4){je=Vo;var ga=$.memoizedProps;switch($.type){case"button":case"input":case"select":case"textarea":ga.autoFocus&&je.focus();break;case"img":ga.src&&(je.src=ga.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if($.memoizedState===null){var ps=$.alternate;if(ps!==null){var tu=ps.memoizedState;if(tu!==null){var ru=tu.dehydrated;ru!==null&&to(ru)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}El||$.flags&512&&wd($)}catch(Ks){ds($,$.return,Ks)}}if($===x){mu=null;break}if(je=$.sibling,je!==null){je.return=$.return,mu=je;break}mu=$.return}}function lt(x){for(;mu!==null;){var $=mu;if($===x){mu=null;break}var je=$.sibling;if(je!==null){je.return=$.return,mu=je;break}mu=$.return}}function Kt(x){for(;mu!==null;){var $=mu;try{switch($.tag){case 0:case 11:case 15:var je=$.return;try{Mf(4,$)}catch(ga){ds($,je,ga)}break;case 1:var Mt=$.stateNode;if(typeof Mt.componentDidMount=="function"){var Tn=$.return;try{Mt.componentDidMount()}catch(ga){ds($,Tn,ga)}}var ur=$.return;try{wd($)}catch(ga){ds($,ur,ga)}break;case 5:var Li=$.return;try{wd($)}catch(ga){ds($,Li,ga)}}}catch(ga){ds($,$.return,ga)}if($===x){mu=null;break}var Vo=$.sibling;if(Vo!==null){Vo.return=$.return,mu=Vo;break}mu=$.return}}var Bn=Math.ceil,Ar=A.ReactCurrentDispatcher,Tr=A.ReactCurrentOwner,Yr=A.ReactCurrentBatchConfig,qr=0,qi=null,Co=null,_o=0,go=0,mo=Rn(0),Bo=0,Ba=null,Bs=0,Xs=0,lu=0,Cu=null,yu=null,Ku=0,yl=1/0,$u=null,Cl=!1,Tc=null,xl=null,Dl=!1,ec=null,Oc=0,zf=0,Sd=null,Bf=-1,Yf=0;function Lc(){return qr&6?pi():Bf!==-1?Bf:Bf=pi()}function dd(x){return x.mode&1?qr&2&&_o!==0?_o&-_o:Ql.transition!==null?(Yf===0&&(Yf=Cr()),Yf):(x=fn,x!==0||(x=window.event,x=x===void 0?16:Lr(x.type)),x):1}function af(x,$,je,Mt){if(50<zf)throw zf=0,Sd=null,Error(s(185));Sn(x,je,Mt),(!(qr&2)||x!==qi)&&(x===qi&&(!(qr&2)&&(Xs|=je),Bo===4&&ku(x,_o)),Of(x,Mt),je===1&&qr===0&&!($.mode&1)&&(yl=pi()+500,za&&va()))}function Of(x,$){var je=x.callbackNode;ln(x,$);var Mt=kn(x,x===qi?_o:0);if(Mt===0)je!==null&&Gn(je),x.callbackNode=null,x.callbackPriority=0;else if($=Mt&-Mt,x.callbackPriority!==$){if(je!=null&&Gn(je),$===1)x.tag===0?xs(el.bind(null,x)):xo(el.bind(null,x)),sa(function(){!(qr&6)&&va()}),je=null;else{switch(gt(Mt)){case 1:je=jr;break;case 4:je=ui;break;case 16:je=bi;break;case 536870912:je=hi;break;default:je=bi}je=zl(je,Ad.bind(null,x))}x.callbackPriority=$,x.callbackNode=je}}function Ad(x,$){if(Bf=-1,Yf=0,qr&6)throw Error(s(327));var je=x.callbackNode;if(Es()&&x.callbackNode!==je)return null;var Mt=kn(x,x===qi?_o:0);if(Mt===0)return null;if(Mt&30||Mt&x.expiredLanes||$)$=fh(x,Mt);else{$=Mt;var Tn=qr;qr|=2;var ur=pd();(qi!==x||_o!==$)&&($u=null,yl=pi()+500,td(x,$));do try{op();break}catch(Vo){sf(x,Vo)}while(1);rs(),Ar.current=ur,qr=Tn,Co!==null?$=0:(qi=null,_o=0,$=Bo)}if($!==0){if($===2&&(Tn=An(x),Tn!==0&&(Mt=Tn,$=hd(x,Tn))),$===1)throw je=Ba,td(x,0),ku(x,Mt),Of(x,pi()),je;if($===6)ku(x,Mt);else{if(Tn=x.current.alternate,!(Mt&30)&&!Fd(Tn)&&($=fh(x,Mt),$===2&&(ur=An(x),ur!==0&&(Mt=ur,$=hd(x,ur))),$===1))throw je=Ba,td(x,0),ku(x,Mt),Of(x,pi()),je;switch(x.finishedWork=Tn,x.finishedLanes=Mt,$){case 0:case 1:throw Error(s(345));case 2:Oa(x,yu,$u);break;case 3:if(ku(x,Mt),(Mt&130023424)===Mt&&($=Ku+500-pi(),10<$)){if(kn(x,0)!==0)break;if(Tn=x.suspendedLanes,(Tn&Mt)!==Mt){Lc(),x.pingedLanes|=x.suspendedLanes&Tn;break}x.timeoutHandle=Mo(Oa.bind(null,x,yu,$u),$);break}Oa(x,yu,$u);break;case 4:if(ku(x,Mt),(Mt&4194240)===Mt)break;for($=x.eventTimes,Tn=-1;0<Mt;){var Li=31-Ai(Mt);ur=1<<Li,Li=$[Li],Li>Tn&&(Tn=Li),Mt&=~ur}if(Mt=Tn,Mt=pi()-Mt,Mt=(120>Mt?120:480>Mt?480:1080>Mt?1080:1920>Mt?1920:3e3>Mt?3e3:4320>Mt?4320:1960*Bn(Mt/1960))-Mt,10<Mt){x.timeoutHandle=Mo(Oa.bind(null,x,yu,$u),Mt);break}Oa(x,yu,$u);break;case 5:Oa(x,yu,$u);break;default:throw Error(s(329))}}}return Of(x,pi()),x.callbackNode===je?Ad.bind(null,x):null}function hd(x,$){var je=Cu;return x.current.memoizedState.isDehydrated&&(td(x,$).flags|=256),x=fh(x,$),x!==2&&($=yu,yu=je,$!==null&&ed($)),x}function ed(x){yu===null?yu=x:yu.push.apply(yu,x)}function Fd(x){for(var $=x;;){if($.flags&16384){var je=$.updateQueue;if(je!==null&&(je=je.stores,je!==null))for(var Mt=0;Mt<je.length;Mt++){var Tn=je[Mt],ur=Tn.getSnapshot;Tn=Tn.value;try{if(!Nr(ur(),Tn))return!1}catch{return!1}}}if(je=$.child,$.subtreeFlags&16384&&je!==null)je.return=$,$=je;else{if($===x)break;for(;$.sibling===null;){if($.return===null||$.return===x)return!0;$=$.return}$.sibling.return=$.return,$=$.sibling}}return!0}function ku(x,$){for($&=~lu,$&=~Xs,x.suspendedLanes|=$,x.pingedLanes&=~$,x=x.expirationTimes;0<$;){var je=31-Ai($),Mt=1<<je;x[je]=-1,$&=~Mt}}function el(x){if(qr&6)throw Error(s(327));Es();var $=kn(x,0);if(!($&1))return Of(x,pi()),null;var je=fh(x,$);if(x.tag!==0&&je===2){var Mt=An(x);Mt!==0&&($=Mt,je=hd(x,Mt))}if(je===1)throw je=Ba,td(x,0),ku(x,$),Of(x,pi()),je;if(je===6)throw Error(s(345));return x.finishedWork=x.current.alternate,x.finishedLanes=$,Oa(x,yu,$u),Of(x,pi()),null}function Ec(x,$){var je=qr;qr|=1;try{return x($)}finally{qr=je,qr===0&&(yl=pi()+500,za&&va())}}function hc(x){ec!==null&&ec.tag===0&&!(qr&6)&&Es();var $=qr;qr|=1;var je=Yr.transition,Mt=fn;try{if(Yr.transition=null,fn=1,x)return x()}finally{fn=Mt,Yr.transition=je,qr=$,!(qr&6)&&va()}}function uc(){go=mo.current,jn(mo)}function td(x,$){x.finishedWork=null,x.finishedLanes=0;var je=x.timeoutHandle;if(je!==-1&&(x.timeoutHandle=-1,bo(je)),Co!==null)for(je=Co.return;je!==null;){var Mt=je;switch(ju(Mt),Mt.tag){case 1:Mt=Mt.type.childContextTypes,Mt!=null&&yo();break;case 3:Od(),jn(ti),jn(oi),jf();break;case 5:Xc(Mt);break;case 4:Od();break;case 13:jn(Zl);break;case 19:jn(Zl);break;case 10:Ns(Mt.type._context);break;case 22:case 23:uc()}je=je.return}if(qi=x,Co=x=df(x.current,null),_o=go=$,Bo=0,Ba=null,lu=Xs=Bs=0,yu=Cu=null,Ii!==null){for($=0;$<Ii.length;$++)if(je=Ii[$],Mt=je.interleaved,Mt!==null){je.interleaved=null;var Tn=Mt.next,ur=je.pending;if(ur!==null){var Li=ur.next;ur.next=Tn,Mt.next=Li}je.pending=Mt}Ii=null}return x}function sf(x,$){do{var je=Co;try{if(rs(),Ml.current=Ms,Gd){for(var Mt=ql.memoizedState;Mt!==null;){var Tn=Mt.queue;Tn!==null&&(Tn.pending=null),Mt=Mt.next}Gd=!1}if(Jf=0,Uc=sc=ql=null,nf=!1,Dd=0,Tr.current=null,je===null||je.return===null){Bo=1,Ba=$,Co=null;break}e:{var ur=x,Li=je.return,Vo=je,ga=$;if($=_o,Vo.flags|=32768,ga!==null&&typeof ga=="object"&&typeof ga.then=="function"){var ps=ga,tu=Vo,ru=tu.tag;if(!(tu.mode&1)&&(ru===0||ru===11||ru===15)){var Ks=tu.alternate;Ks?(tu.updateQueue=Ks.updateQueue,tu.memoizedState=Ks.memoizedState,tu.lanes=Ks.lanes):(tu.updateQueue=null,tu.memoizedState=null)}var Xu=kd(Li);if(Xu!==null){Xu.flags&=-257,qa(Xu,Li,Vo,ur,$),Xu.mode&1&&qf(ur,ps,$),$=Xu,ga=ps;var ul=$.updateQueue;if(ul===null){var dl=new Set;dl.add(ga),$.updateQueue=dl}else ul.add(ga);break e}else{if(!($&1)){qf(ur,ps,$),ch();break e}ga=Error(s(426))}}else if(ks&&Vo.mode&1){var Vf=kd(Li);if(Vf!==null){!(Vf.flags&65536)&&(Vf.flags|=256),qa(Vf,Li,Vo,ur,$),Pl(rf(ga,Vo));break e}}ur=ga=rf(ga,Vo),Bo!==4&&(Bo=2),Cu===null?Cu=[ur]:Cu.push(ur),ur=Li;do{switch(ur.tag){case 3:ur.flags|=65536,$&=-$,ur.lanes|=$;var ts=eh(ur,ga,$);wu(ur,ts);break e;case 1:Vo=ga;var xa=ur.type,ls=ur.stateNode;if(!(ur.flags&128)&&(typeof xa.getDerivedStateFromError=="function"||ls!==null&&typeof ls.componentDidCatch=="function"&&(xl===null||!xl.has(ls)))){ur.flags|=65536,$&=-$,ur.lanes|=$;var Eu=Rf(ur,Vo,$);wu(ur,Eu);break e}}ur=ur.return}while(ur!==null)}Wi(je)}catch(al){$=al,Co===je&&je!==null&&(Co=je=je.return);continue}break}while(1)}function pd(){var x=Ar.current;return Ar.current=Ms,x===null?Ms:x}function ch(){(Bo===0||Bo===3||Bo===2)&&(Bo=4),qi===null||!(Bs&268435455)&&!(Xs&268435455)||ku(qi,_o)}function fh(x,$){var je=qr;qr|=2;var Mt=pd();(qi!==x||_o!==$)&&($u=null,td(x,$));do try{Cf();break}catch(Tn){sf(x,Tn)}while(1);if(rs(),qr=je,Ar.current=Mt,Co!==null)throw Error(s(261));return qi=null,_o=0,Bo}function Cf(){for(;Co!==null;)np(Co)}function op(){for(;Co!==null&&!rr();)np(Co)}function np(x){var $=Nu(x.alternate,x,go);x.memoizedProps=x.pendingProps,$===null?Wi(x):Co=$,Tr.current=null}function Wi(x){var $=x;do{var je=$.alternate;if(x=$.return,$.flags&32768){if(je=gl(je,$),je!==null){je.flags&=32767,Co=je;return}if(x!==null)x.flags|=32768,x.subtreeFlags=0,x.deletions=null;else{Bo=6,Co=null;return}}else if(je=kl(je,$,go),je!==null){Co=je;return}if($=$.sibling,$!==null){Co=$;return}Co=$=x}while($!==null);Bo===0&&(Bo=5)}function Oa(x,$,je){var Mt=fn,Tn=Yr.transition;try{Yr.transition=null,fn=1,Ca(x,$,je,Mt)}finally{Yr.transition=Tn,fn=Mt}return null}function Ca(x,$,je,Mt){do Es();while(ec!==null);if(qr&6)throw Error(s(327));je=x.finishedWork;var Tn=x.finishedLanes;if(je===null)return null;if(x.finishedWork=null,x.finishedLanes=0,je===x.current)throw Error(s(177));x.callbackNode=null,x.callbackPriority=0;var ur=je.lanes|je.childLanes;if(ir(x,ur),x===qi&&(Co=qi=null,_o=0),!(je.subtreeFlags&2064)&&!(je.flags&2064)||Dl||(Dl=!0,zl(bi,function(){return Es(),null})),ur=(je.flags&15990)!==0,je.subtreeFlags&15990||ur){ur=Yr.transition,Yr.transition=null;var Li=fn;fn=1;var Vo=qr;qr|=4,Tr.current=null,ff(x,je),Qd(je,x),la(ho),ja=!!mi,ho=mi=null,x.current=je,Wf(je,x,Tn),sr(),qr=Vo,fn=Li,Yr.transition=ur}else x.current=je;if(Dl&&(Dl=!1,ec=x,Oc=Tn),ur=x.pendingLanes,ur===0&&(xl=null),xi(je.stateNode,Mt),Of(x,pi()),$!==null)for(Mt=x.onRecoverableError,je=0;je<$.length;je++)Tn=$[je],Mt(Tn.value,{componentStack:Tn.stack,digest:Tn.digest});if(Cl)throw Cl=!1,x=Tc,Tc=null,x;return Oc&1&&x.tag!==0&&Es(),ur=x.pendingLanes,ur&1?x===Sd?zf++:(zf=0,Sd=x):zf=0,va(),null}function Es(){if(ec!==null){var x=gt(Oc),$=Yr.transition,je=fn;try{if(Yr.transition=null,fn=16>x?16:x,ec===null)var Mt=!1;else{if(x=ec,ec=null,Oc=0,qr&6)throw Error(s(331));var Tn=qr;for(qr|=4,mu=x.current;mu!==null;){var ur=mu,Li=ur.child;if(mu.flags&16){var Vo=ur.deletions;if(Vo!==null){for(var ga=0;ga<Vo.length;ga++){var ps=Vo[ga];for(mu=ps;mu!==null;){var tu=mu;switch(tu.tag){case 0:case 11:case 15:Wc(8,tu,ur)}var ru=tu.child;if(ru!==null)ru.return=tu,mu=ru;else for(;mu!==null;){tu=mu;var Ks=tu.sibling,Xu=tu.return;if(mf(tu),tu===ps){mu=null;break}if(Ks!==null){Ks.return=Xu,mu=Ks;break}mu=Xu}}}var ul=ur.alternate;if(ul!==null){var dl=ul.child;if(dl!==null){ul.child=null;do{var Vf=dl.sibling;dl.sibling=null,dl=Vf}while(dl!==null)}}mu=ur}}if(ur.subtreeFlags&2064&&Li!==null)Li.return=ur,mu=Li;else e:for(;mu!==null;){if(ur=mu,ur.flags&2048)switch(ur.tag){case 0:case 11:case 15:Wc(9,ur,ur.return)}var ts=ur.sibling;if(ts!==null){ts.return=ur.return,mu=ts;break e}mu=ur.return}}var xa=x.current;for(mu=xa;mu!==null;){Li=mu;var ls=Li.child;if(Li.subtreeFlags&2064&&ls!==null)ls.return=Li,mu=ls;else e:for(Li=xa;mu!==null;){if(Vo=mu,Vo.flags&2048)try{switch(Vo.tag){case 0:case 11:case 15:Mf(9,Vo)}}catch(al){ds(Vo,Vo.return,al)}if(Vo===Li){mu=null;break e}var Eu=Vo.sibling;if(Eu!==null){Eu.return=Vo.return,mu=Eu;break e}mu=Vo.return}}if(qr=Tn,va(),Kr&&typeof Kr.onPostCommitFiberRoot=="function")try{Kr.onPostCommitFiberRoot(Si,x)}catch{}Mt=!0}return Mt}finally{fn=je,Yr.transition=$}}return!1}function Ss(x,$,je){$=rf(je,$),$=eh(x,$,1),x=ws(x,$,1),$=Lc(),x!==null&&(Sn(x,1,$),Of(x,$))}function ds(x,$,je){if(x.tag===3)Ss(x,x,je);else for(;$!==null;){if($.tag===3){Ss($,x,je);break}else if($.tag===1){var Mt=$.stateNode;if(typeof $.type.getDerivedStateFromError=="function"||typeof Mt.componentDidCatch=="function"&&(xl===null||!xl.has(Mt))){x=rf(je,x),x=Rf($,x,1),$=ws($,x,1),x=Lc(),$!==null&&(Sn($,1,x),Of($,x));break}}$=$.return}}function Ha(x,$,je){var Mt=x.pingCache;Mt!==null&&Mt.delete($),$=Lc(),x.pingedLanes|=x.suspendedLanes&je,qi===x&&(_o&je)===je&&(Bo===4||Bo===3&&(_o&130023424)===_o&&500>pi()-Ku?td(x,0):lu|=je),Of(x,$)}function bs(x,$){$===0&&(x.mode&1?($=un,un<<=1,!(un&130023424)&&(un=4194304)):$=1);var je=Lc();x=Zo(x,$),x!==null&&(Sn(x,$,je),Of(x,je))}function Qs(x){var $=x.memoizedState,je=0;$!==null&&(je=$.retryLane),bs(x,je)}function vu(x,$){var je=0;switch(x.tag){case 13:var Mt=x.stateNode,Tn=x.memoizedState;Tn!==null&&(je=Tn.retryLane);break;case 19:Mt=x.stateNode;break;default:throw Error(s(314))}Mt!==null&&Mt.delete($),bs(x,je)}var Nu;Nu=function(x,$,je){if(x!==null)if(x.memoizedProps!==$.pendingProps||ti.current)hu=!0;else{if(!(x.lanes&je)&&!($.flags&128))return hu=!1,zs(x,$,je);hu=!!(x.flags&131072)}else hu=!1,ks&&$.flags&1048576&&Mu($,wa,$.index);switch($.lanes=0,$.tag){case 2:var Mt=$.type;Va(x,$),x=$.pendingProps;var Tn=Fi($,oi.current);bn($,je),Tn=Cd(null,$,Mt,x,Tn,je);var ur=vf();return $.flags|=1,typeof Tn=="object"&&Tn!==null&&typeof Tn.render=="function"&&Tn.$$typeof===void 0?($.tag=1,$.memoizedState=null,$.updateQueue=null,Gi(Mt)?(ur=!0,Ji($)):ur=!1,$.memoizedState=Tn.state!==null&&Tn.state!==void 0?Tn.state:null,Ua($),Tn.updater=Gl,$.stateNode=Tn,Tn._reactInternals=$,nc($,Mt,x,je),$=Ol(null,$,Mt,!0,ur,je)):($.tag=0,ks&&ur&&Lu($),du(null,$,Tn,je),$=$.child),$;case 16:Mt=$.elementType;e:{switch(Va(x,$),x=$.pendingProps,Tn=Mt._init,Mt=Tn(Mt._payload),$.type=Mt,Tn=$.tag=qc(Mt),x=ll(Mt,x),Tn){case 0:$=xu(null,$,Mt,x,je);break e;case 1:$=of(null,$,Mt,x,je);break e;case 11:$=Ys(null,$,Mt,x,je);break e;case 14:$=Pu(null,$,Mt,ll(Mt.type,x),je);break e}throw Error(s(306,Mt,""))}return $;case 0:return Mt=$.type,Tn=$.pendingProps,Tn=$.elementType===Mt?Tn:ll(Mt,Tn),xu(x,$,Mt,Tn,je);case 1:return Mt=$.type,Tn=$.pendingProps,Tn=$.elementType===Mt?Tn:ll(Mt,Tn),of(x,$,Mt,Tn,je);case 3:e:{if(wc($),x===null)throw Error(s(387));Mt=$.pendingProps,ur=$.memoizedState,Tn=ur.element,ms(x,$),Du($,Mt,null,je);var Li=$.memoizedState;if(Mt=Li.element,ur.isDehydrated)if(ur={element:Mt,isDehydrated:!1,cache:Li.cache,pendingSuspenseBoundaries:Li.pendingSuspenseBoundaries,transitions:Li.transitions},$.updateQueue.baseState=ur,$.memoizedState=ur,$.flags&256){Tn=rf(Error(s(423)),$),$=Ll(x,$,Mt,je,Tn);break e}else if(Mt!==Tn){Tn=rf(Error(s(424)),$),$=Ll(x,$,Mt,je,Tn);break e}else for(pu=Ja($.stateNode.containerInfo.firstChild),pl=$,ks=!0,su=null,je=ml($,null,Mt,je),$.child=je;je;)je.flags=je.flags&-3|4096,je=je.sibling;else{if(Hs(),Mt===Tn){$=fs(x,$,je);break e}du(x,$,Mt,je)}$=$.child}return $;case 5:return _c($),x===null&&Ul($),Mt=$.type,Tn=$.pendingProps,ur=x!==null?x.memoizedProps:null,Li=Tn.children,Ao(Mt,Tn)?Li=null:ur!==null&&Ao(Mt,ur)&&($.flags|=32),Yu(x,$),du(x,$,Li,je),$.child;case 6:return x===null&&Ul($),null;case 13:return Ic(x,$,je);case 4:return Vc($,$.stateNode.containerInfo),Mt=$.pendingProps,x===null?$.child=Jl($,null,Mt,je):du(x,$,Mt,je),$.child;case 11:return Mt=$.type,Tn=$.pendingProps,Tn=$.elementType===Mt?Tn:ll(Mt,Tn),Ys(x,$,Mt,Tn,je);case 7:return du(x,$,$.pendingProps,je),$.child;case 8:return du(x,$,$.pendingProps.children,je),$.child;case 12:return du(x,$,$.pendingProps.children,je),$.child;case 10:e:{if(Mt=$.type._context,Tn=$.pendingProps,ur=$.memoizedProps,Li=Tn.value,_r(Kl,Mt._currentValue),Mt._currentValue=Li,ur!==null)if(Nr(ur.value,Li)){if(ur.children===Tn.children&&!ti.current){$=fs(x,$,je);break e}}else for(ur=$.child,ur!==null&&(ur.return=$);ur!==null;){var Vo=ur.dependencies;if(Vo!==null){Li=ur.child;for(var ga=Vo.firstContext;ga!==null;){if(ga.context===Mt){if(ur.tag===1){ga=Fs(-1,je&-je),ga.tag=2;var ps=ur.updateQueue;if(ps!==null){ps=ps.shared;var tu=ps.pending;tu===null?ga.next=ga:(ga.next=tu.next,tu.next=ga),ps.pending=ga}}ur.lanes|=je,ga=ur.alternate,ga!==null&&(ga.lanes|=je),Xt(ur.return,je,$),Vo.lanes|=je;break}ga=ga.next}}else if(ur.tag===10)Li=ur.type===$.type?null:ur.child;else if(ur.tag===18){if(Li=ur.return,Li===null)throw Error(s(341));Li.lanes|=je,Vo=Li.alternate,Vo!==null&&(Vo.lanes|=je),Xt(Li,je,$),Li=ur.sibling}else Li=ur.child;if(Li!==null)Li.return=ur;else for(Li=ur;Li!==null;){if(Li===$){Li=null;break}if(ur=Li.sibling,ur!==null){ur.return=Li.return,Li=ur;break}Li=Li.return}ur=Li}du(x,$,Tn.children,je),$=$.child}return $;case 9:return Tn=$.type,Mt=$.pendingProps.children,bn($,je),Tn=Dn(Tn),Mt=Mt(Tn),$.flags|=1,du(x,$,Mt,je),$.child;case 14:return Mt=$.type,Tn=ll(Mt,$.pendingProps),Tn=ll(Mt.type,Tn),Pu(x,$,Mt,Tn,je);case 15:return sl(x,$,$.type,$.pendingProps,je);case 17:return Mt=$.type,Tn=$.pendingProps,Tn=$.elementType===Mt?Tn:ll(Mt,Tn),Va(x,$),$.tag=1,Gi(Mt)?(x=!0,Ji($)):x=!1,bn($,je),ac($,Mt,Tn),nc($,Mt,Tn,je),Ol(null,$,Mt,!0,x,je);case 19:return pa(x,$,je);case 22:return Tu(x,$,je)}throw Error(s(156,$.tag))};function zl(x,$){return En(x,$)}function bl(x,$,je,Mt){this.tag=x,this.key=je,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=$,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Mt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tl(x,$,je,Mt){return new bl(x,$,je,Mt)}function lc(x){return x=x.prototype,!(!x||!x.isReactComponent)}function qc(x){if(typeof x=="function")return lc(x)?1:0;if(x!=null){if(x=x.$$typeof,x===fe)return 11;if(x===oe)return 14}return 2}function df(x,$){var je=x.alternate;return je===null?(je=tl(x.tag,$,x.key,x.mode),je.elementType=x.elementType,je.type=x.type,je.stateNode=x.stateNode,je.alternate=x,x.alternate=je):(je.pendingProps=$,je.type=x.type,je.flags=0,je.subtreeFlags=0,je.deletions=null),je.flags=x.flags&14680064,je.childLanes=x.childLanes,je.lanes=x.lanes,je.child=x.child,je.memoizedProps=x.memoizedProps,je.memoizedState=x.memoizedState,je.updateQueue=x.updateQueue,$=x.dependencies,je.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext},je.sibling=x.sibling,je.index=x.index,je.ref=x.ref,je}function uf(x,$,je,Mt,Tn,ur){var Li=2;if(Mt=x,typeof x=="function")lc(x)&&(Li=1);else if(typeof x=="string")Li=5;else e:switch(x){case _:return Jd(je.children,Tn,ur,$);case N:Li=8,Tn|=8;break;case W:return x=tl(12,je,$,Tn|2),x.elementType=W,x.lanes=ur,x;case ve:return x=tl(13,je,$,Tn),x.elementType=ve,x.lanes=ur,x;case ce:return x=tl(19,je,$,Tn),x.elementType=ce,x.lanes=ur,x;case H:return dh(je,Tn,ur,$);default:if(typeof x=="object"&&x!==null)switch(x.$$typeof){case he:Li=10;break e;case me:Li=9;break e;case fe:Li=11;break e;case oe:Li=14;break e;case re:Li=16,Mt=null;break e}throw Error(s(130,x==null?x:typeof x,""))}return $=tl(Li,je,$,Tn),$.elementType=x,$.type=Mt,$.lanes=ur,$}function Jd(x,$,je,Mt){return x=tl(7,x,Mt,$),x.lanes=je,x}function dh(x,$,je,Mt){return x=tl(22,x,Mt,$),x.elementType=H,x.lanes=je,x.stateNode={isHidden:!1},x}function Ph(x,$,je){return x=tl(6,x,null,$),x.lanes=je,x}function th(x,$,je){return $=tl(4,x.children!==null?x.children:[],x.key,$),$.lanes=je,$.stateNode={containerInfo:x.containerInfo,pendingChildren:null,implementation:x.implementation},$}function Vh(x,$,je,Mt,Tn){this.tag=$,this.containerInfo=x,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_i(0),this.expirationTimes=_i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_i(0),this.identifierPrefix=Mt,this.onRecoverableError=Tn,this.mutableSourceEagerHydrationData=null}function rh(x,$,je,Mt,Tn,ur,Li,Vo,ga){return x=new Vh(x,$,je,Vo,ga),$===1?($=1,ur===!0&&($|=8)):$=0,ur=tl(3,null,null,$),x.current=ur,ur.stateNode=x,ur.memoizedState={element:Mt,isDehydrated:je,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ua(ur),x}function Th(x,$,je){var Mt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ae,key:Mt==null?null:""+Mt,children:x,containerInfo:$,implementation:je}}function Bh(x){if(!x)return xr;x=x._reactInternals;e:{if(Dt(x)!==x||x.tag!==1)throw Error(s(170));var $=x;do{switch($.tag){case 3:$=$.stateNode.context;break e;case 1:if(Gi($.type)){$=$.stateNode.__reactInternalMemoizedMergedChildContext;break e}}$=$.return}while($!==null);throw Error(s(171))}if(x.tag===1){var je=x.type;if(Gi(je))return po(x,je,$)}return $}function Rh(x,$,je,Mt,Tn,ur,Li,Vo,ga){return x=rh(je,Mt,!0,x,Tn,ur,Li,Vo,ga),x.context=Bh(null),je=x.current,Mt=Lc(),Tn=dd(je),ur=Fs(Mt,Tn),ur.callback=$??null,ws(je,ur,Tn),x.current.lanes=Tn,Sn(x,Tn,Mt),Of(x,Mt),x}function wh(x,$,je,Mt){var Tn=$.current,ur=Lc(),Li=dd(Tn);return je=Bh(je),$.context===null?$.context=je:$.pendingContext=je,$=Fs(ur,Li),$.payload={element:x},Mt=Mt===void 0?null:Mt,Mt!==null&&($.callback=Mt),x=ws(Tn,$,Li),x!==null&&(af(x,Tn,Li,ur),fu(x,Tn,Li)),Li}function yp(x){if(x=x.current,!x.child)return null;switch(x.child.tag){case 5:return x.child.stateNode;default:return x.child.stateNode}}function Ip(x,$){if(x=x.memoizedState,x!==null&&x.dehydrated!==null){var je=x.retryLane;x.retryLane=je!==0&&je<$?je:$}}function rp(x,$){Ip(x,$),(x=x.alternate)&&Ip(x,$)}function ev(){return null}var bp=typeof reportError=="function"?reportError:function(x){console.error(x)};function Lp(x){this._internalRoot=x}wp.prototype.render=Lp.prototype.render=function(x){var $=this._internalRoot;if($===null)throw Error(s(409));wh(x,$,null,null)},wp.prototype.unmount=Lp.prototype.unmount=function(){var x=this._internalRoot;if(x!==null){this._internalRoot=null;var $=x.containerInfo;hc(function(){wh(null,x,null,null)}),$[us]=null}};function wp(x){this._internalRoot=x}wp.prototype.unstable_scheduleHydration=function(x){if(x){var $=$r();x={blockedOn:null,target:x,priority:$};for(var je=0;je<ra.length&&$!==0&&$<ra[je].priority;je++);ra.splice(je,0,x),je===0&&Ro(x)}};function kp(x){return!(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)}function Np(x){return!(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11&&(x.nodeType!==8||x.nodeValue!==" react-mount-point-unstable "))}function Xh(){}function Qh(x,$,je,Mt,Tn){if(Tn){if(typeof Mt=="function"){var ur=Mt;Mt=function(){var ps=yp(Li);ur.call(ps)}}var Li=Rh($,Mt,x,0,null,!1,!1,"",Xh);return x._reactRootContainer=Li,x[us]=Li.current,ht(x.nodeType===8?x.parentNode:x),hc(),Li}for(;Tn=x.lastChild;)x.removeChild(Tn);if(typeof Mt=="function"){var Vo=Mt;Mt=function(){var ps=yp(ga);Vo.call(ps)}}var ga=rh(x,0,!1,null,null,!1,!1,"",Xh);return x._reactRootContainer=ga,x[us]=ga.current,ht(x.nodeType===8?x.parentNode:x),hc(function(){wh($,ga,je,Mt)}),ga}function ap(x,$,je,Mt,Tn){var ur=je._reactRootContainer;if(ur){var Li=ur;if(typeof Tn=="function"){var Vo=Tn;Tn=function(){var ga=yp(Li);Vo.call(ga)}}wh($,Li,x,Tn)}else Li=Qh(je,$,x,Tn,Mt);return yp(Li)}tn=function(x){switch(x.tag){case 3:var $=x.stateNode;if($.current.memoizedState.isDehydrated){var je=qn($.pendingLanes);je!==0&&(mt($,je|1),Of($,pi()),!(qr&6)&&(yl=pi()+500,va()))}break;case 13:hc(function(){var Mt=Zo(x,1);if(Mt!==null){var Tn=Lc();af(Mt,x,1,Tn)}}),rp(x,1)}},Vn=function(x){if(x.tag===13){var $=Zo(x,134217728);if($!==null){var je=Lc();af($,x,134217728,je)}rp(x,134217728)}},Ur=function(x){if(x.tag===13){var $=dd(x),je=Zo(x,$);if(je!==null){var Mt=Lc();af(je,x,$,Mt)}rp(x,$)}},$r=function(){return fn},Pr=function(x,$){var je=fn;try{return fn=x,$()}finally{fn=je}},st=function(x,$,je){switch($){case"input":if(le(x,je),$=je.name,je.type==="radio"&&$!=null){for(je=x;je.parentNode;)je=je.parentNode;for(je=je.querySelectorAll("input[name="+JSON.stringify(""+$)+'][type="radio"]'),$=0;$<je.length;$++){var Mt=je[$];if(Mt!==x&&Mt.form===x.form){var Tn=Ws(Mt);if(!Tn)throw Error(s(90));Rt(Mt),le(Mt,Tn)}}}break;case"textarea":it(x,je);break;case"select":$=je.value,$!=null&&wt(x,!!je.multiple,$,!1)}},Qe=Ec,Bt=hc;var Fp={usingClientEntryPoint:!1,Events:[Wa,eu,Ws,z,be,Ec]},Mh={findFiberByHostInstance:_a,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},yv={bundleType:Mh.bundleType,version:Mh.version,rendererPackageName:Mh.rendererPackageName,rendererConfig:Mh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(x){return x=Or(x),x===null?null:x.stateNode},findFiberByHostInstance:Mh.findFiberByHostInstance||ev,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ep=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ep.isDisabled&&Ep.supportsFiber)try{Si=Ep.inject(yv),Kr=Ep}catch{}}g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fp,g.createPortal=function(x,$){var je=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kp($))throw Error(s(200));return Th(x,$,null,je)},g.createRoot=function(x,$){if(!kp(x))throw Error(s(299));var je=!1,Mt="",Tn=bp;return $!=null&&($.unstable_strictMode===!0&&(je=!0),$.identifierPrefix!==void 0&&(Mt=$.identifierPrefix),$.onRecoverableError!==void 0&&(Tn=$.onRecoverableError)),$=rh(x,1,!1,null,null,je,!1,Mt,Tn),x[us]=$.current,ht(x.nodeType===8?x.parentNode:x),new Lp($)},g.findDOMNode=function(x){if(x==null)return null;if(x.nodeType===1)return x;var $=x._reactInternals;if($===void 0)throw typeof x.render=="function"?Error(s(188)):(x=Object.keys(x).join(","),Error(s(268,x)));return x=Or($),x=x===null?null:x.stateNode,x},g.flushSync=function(x){return hc(x)},g.hydrate=function(x,$,je){if(!Np($))throw Error(s(200));return ap(null,x,$,!0,je)},g.hydrateRoot=function(x,$,je){if(!kp(x))throw Error(s(405));var Mt=je!=null&&je.hydratedSources||null,Tn=!1,ur="",Li=bp;if(je!=null&&(je.unstable_strictMode===!0&&(Tn=!0),je.identifierPrefix!==void 0&&(ur=je.identifierPrefix),je.onRecoverableError!==void 0&&(Li=je.onRecoverableError)),$=Rh($,null,x,1,je??null,Tn,!1,ur,Li),x[us]=$.current,ht(x),Mt)for(x=0;x<Mt.length;x++)je=Mt[x],Tn=je._getVersion,Tn=Tn(je._source),$.mutableSourceEagerHydrationData==null?$.mutableSourceEagerHydrationData=[je,Tn]:$.mutableSourceEagerHydrationData.push(je,Tn);return new wp($)},g.render=function(x,$,je){if(!Np($))throw Error(s(200));return ap(null,x,$,!1,je)},g.unmountComponentAtNode=function(x){if(!Np(x))throw Error(s(40));return x._reactRootContainer?(hc(function(){ap(null,null,x,!1,function(){x._reactRootContainer=null,x[us]=null})}),!0):!1},g.unstable_batchedUpdates=Ec,g.unstable_renderSubtreeIntoContainer=function(x,$,je,Mt){if(!Np(je))throw Error(s(200));if(x==null||x._reactInternals===void 0)throw Error(s(38));return ap(x,$,je,!1,Mt)},g.version="18.2.0-next-9e3b772b8-20220608"},5338:(J,g,t)=>{"use strict";var i,l=t(40961);if(!0)g.H=l.createRoot,i=l.hydrateRoot;else var s},40961:(J,g,t)=>{"use strict";function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}i(),J.exports=t(22551)},65848:(J,g,t)=>{"use strict";var i,l;i=t(17633),l=t(72911),g.version=i.version,g.renderToString=i.renderToString,g.renderToStaticMarkup=i.renderToStaticMarkup,g.renderToNodeStream=i.renderToNodeStream,g.renderToStaticNodeStream=i.renderToStaticNodeStream,g.renderToReadableStream=l.renderToReadableStream},86027:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),Object.defineProperty(g,"DraggableCore",{enumerable:!0,get:function(){return v.default}}),g.default=void 0;var i=y(t(96540)),l=d(t(5556)),s=d(t(40961)),m=d(t(81322)),u=t(71089),f=t(81726),p=t(77056),v=d(t(6888)),h=d(t(18696));function d(D){return D&&D.__esModule?D:{default:D}}function b(D){if(typeof WeakMap!="function")return null;var P=new WeakMap,T=new WeakMap;return(b=function(A){return A?T:P})(D)}function y(D,P){if(!P&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var T=b(P);if(T&&T.has(D))return T.get(D);var A={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ae in D)if(ae!=="default"&&Object.prototype.hasOwnProperty.call(D,ae)){var _=j?Object.getOwnPropertyDescriptor(D,ae):null;_&&(_.get||_.set)?Object.defineProperty(A,ae,_):A[ae]=D[ae]}return A.default=D,T&&T.set(D,A),A}function w(){return w=Object.assign?Object.assign.bind():function(D){for(var P=1;P<arguments.length;P++){var T=arguments[P];for(var A in T)Object.prototype.hasOwnProperty.call(T,A)&&(D[A]=T[A])}return D},w.apply(this,arguments)}function S(D,P,T){return P=O(P),P in D?Object.defineProperty(D,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):D[P]=T,D}function O(D){var P=R(D,"string");return typeof P=="symbol"?P:String(P)}function R(D,P){if(typeof D!="object"||D===null)return D;var T=D[Symbol.toPrimitive];if(T!==void 0){var A=T.call(D,P||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(D)}class M extends i.Component{static getDerivedStateFromProps(P,T){let{position:A}=P,{prevPropsPosition:j}=T;return A&&(!j||A.x!==j.x||A.y!==j.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:A,prevPropsPosition:j}),{x:A.x,y:A.y,prevPropsPosition:{...A}}):null}constructor(P){super(P),S(this,"onDragStart",(T,A)=>{if((0,h.default)("Draggable: onDragStart: %j",A),this.props.onStart(T,(0,f.createDraggableData)(this,A))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),S(this,"onDrag",(T,A)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",A);const j=(0,f.createDraggableData)(this,A),ae={x:j.x,y:j.y,slackX:0,slackY:0};if(this.props.bounds){const{x:N,y:W}=ae;ae.x+=this.state.slackX,ae.y+=this.state.slackY;const[he,me]=(0,f.getBoundPosition)(this,ae.x,ae.y);ae.x=he,ae.y=me,ae.slackX=this.state.slackX+(N-ae.x),ae.slackY=this.state.slackY+(W-ae.y),j.x=ae.x,j.y=ae.y,j.deltaX=ae.x-this.state.x,j.deltaY=ae.y-this.state.y}if(this.props.onDrag(T,j)===!1)return!1;this.setState(ae)}),S(this,"onDragStop",(T,A)=>{if(!this.state.dragging||this.props.onStop(T,(0,f.createDraggableData)(this,A))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",A);const ae={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:N,y:W}=this.props.position;ae.x=N,ae.y=W}this.setState(ae)}),this.state={dragging:!1,dragged:!1,x:P.position?P.position.x:P.defaultPosition.x,y:P.position?P.position.y:P.defaultPosition.y,prevPropsPosition:{...P.position},slackX:0,slackY:0,isElementSVG:!1},P.position&&!(P.onDrag||P.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var P,T;return(P=(T=this.props)===null||T===void 0||(T=T.nodeRef)===null||T===void 0?void 0:T.current)!==null&&P!==void 0?P:s.default.findDOMNode(this)}render(){const{axis:P,bounds:T,children:A,defaultPosition:j,defaultClassName:ae,defaultClassNameDragging:_,defaultClassNameDragged:N,position:W,positionOffset:he,scale:me,...fe}=this.props;let ve={},ce=null;const re=!!!W||this.state.dragging,H=W||j,V={x:(0,f.canDragX)(this)&&re?this.state.x:H.x,y:(0,f.canDragY)(this)&&re?this.state.y:H.y};this.state.isElementSVG?ce=(0,u.createSVGTransform)(V,he):ve=(0,u.createCSSTransform)(V,he);const Q=(0,m.default)(A.props.className||"",ae,{[_]:this.state.dragging,[N]:this.state.dragged});return i.createElement(v.default,w({},fe,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),i.cloneElement(i.Children.only(A),{className:Q,style:{...A.props.style,...ve},transform:ce}))}}g.default=M,S(M,"displayName","Draggable"),S(M,"propTypes",{...v.default.propTypes,axis:l.default.oneOf(["both","x","y","none"]),bounds:l.default.oneOfType([l.default.shape({left:l.default.number,right:l.default.number,top:l.default.number,bottom:l.default.number}),l.default.string,l.default.oneOf([!1])]),defaultClassName:l.default.string,defaultClassNameDragging:l.default.string,defaultClassNameDragged:l.default.string,defaultPosition:l.default.shape({x:l.default.number,y:l.default.number}),positionOffset:l.default.shape({x:l.default.oneOfType([l.default.number,l.default.string]),y:l.default.oneOfType([l.default.number,l.default.string])}),position:l.default.shape({x:l.default.number,y:l.default.number}),className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),S(M,"defaultProps",{...v.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},6888:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var i=d(t(96540)),l=v(t(5556)),s=v(t(40961)),m=t(71089),u=t(81726),f=t(77056),p=v(t(18696));function v(M){return M&&M.__esModule?M:{default:M}}function h(M){if(typeof WeakMap!="function")return null;var D=new WeakMap,P=new WeakMap;return(h=function(T){return T?P:D})(M)}function d(M,D){if(!D&&M&&M.__esModule)return M;if(M===null||typeof M!="object"&&typeof M!="function")return{default:M};var P=h(D);if(P&&P.has(M))return P.get(M);var T={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in M)if(j!=="default"&&Object.prototype.hasOwnProperty.call(M,j)){var ae=A?Object.getOwnPropertyDescriptor(M,j):null;ae&&(ae.get||ae.set)?Object.defineProperty(T,j,ae):T[j]=M[j]}return T.default=M,P&&P.set(M,T),T}function b(M,D,P){return D=y(D),D in M?Object.defineProperty(M,D,{value:P,enumerable:!0,configurable:!0,writable:!0}):M[D]=P,M}function y(M){var D=w(M,"string");return typeof D=="symbol"?D:String(D)}function w(M,D){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var T=P.call(M,D||"default");if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(M)}const S={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let O=S.mouse;class R extends i.Component{constructor(){super(...arguments),b(this,"dragging",!1),b(this,"lastX",NaN),b(this,"lastY",NaN),b(this,"touchIdentifier",null),b(this,"mounted",!1),b(this,"handleDragStart",D=>{if(this.props.onMouseDown(D),!this.props.allowAnyClick&&typeof D.button=="number"&&D.button!==0)return!1;const P=this.findDOMNode();if(!P||!P.ownerDocument||!P.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:T}=P;if(this.props.disabled||!(D.target instanceof T.defaultView.Node)||this.props.handle&&!(0,m.matchesSelectorAndParentsTo)(D.target,this.props.handle,P)||this.props.cancel&&(0,m.matchesSelectorAndParentsTo)(D.target,this.props.cancel,P))return;D.type==="touchstart"&&D.preventDefault();const A=(0,m.getTouchIdentifier)(D);this.touchIdentifier=A;const j=(0,u.getControlPosition)(D,A,this);if(j==null)return;const{x:ae,y:_}=j,N=(0,u.createCoreData)(this,ae,_);(0,p.default)("DraggableCore: handleDragStart: %j",N),(0,p.default)("calling",this.props.onStart),!(this.props.onStart(D,N)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,m.addUserSelectStyles)(T),this.dragging=!0,this.lastX=ae,this.lastY=_,(0,m.addEvent)(T,O.move,this.handleDrag),(0,m.addEvent)(T,O.stop,this.handleDragStop))}),b(this,"handleDrag",D=>{const P=(0,u.getControlPosition)(D,this.touchIdentifier,this);if(P==null)return;let{x:T,y:A}=P;if(Array.isArray(this.props.grid)){let _=T-this.lastX,N=A-this.lastY;if([_,N]=(0,u.snapToGrid)(this.props.grid,_,N),!_&&!N)return;T=this.lastX+_,A=this.lastY+N}const j=(0,u.createCoreData)(this,T,A);if((0,p.default)("DraggableCore: handleDrag: %j",j),this.props.onDrag(D,j)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const N=document.createEvent("MouseEvents");N.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(N)}return}this.lastX=T,this.lastY=A}),b(this,"handleDragStop",D=>{if(!this.dragging)return;const P=(0,u.getControlPosition)(D,this.touchIdentifier,this);if(P==null)return;let{x:T,y:A}=P;if(Array.isArray(this.props.grid)){let N=T-this.lastX||0,W=A-this.lastY||0;[N,W]=(0,u.snapToGrid)(this.props.grid,N,W),T=this.lastX+N,A=this.lastY+W}const j=(0,u.createCoreData)(this,T,A);if(this.props.onStop(D,j)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,m.removeUserSelectStyles)(_.ownerDocument),(0,p.default)("DraggableCore: handleDragStop: %j",j),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,p.default)("DraggableCore: Removing handlers"),(0,m.removeEvent)(_.ownerDocument,O.move,this.handleDrag),(0,m.removeEvent)(_.ownerDocument,O.stop,this.handleDragStop))}),b(this,"onMouseDown",D=>(O=S.mouse,this.handleDragStart(D))),b(this,"onMouseUp",D=>(O=S.mouse,this.handleDragStop(D))),b(this,"onTouchStart",D=>(O=S.touch,this.handleDragStart(D))),b(this,"onTouchEnd",D=>(O=S.touch,this.handleDragStop(D)))}componentDidMount(){this.mounted=!0;const D=this.findDOMNode();D&&(0,m.addEvent)(D,S.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const D=this.findDOMNode();if(D){const{ownerDocument:P}=D;(0,m.removeEvent)(P,S.mouse.move,this.handleDrag),(0,m.removeEvent)(P,S.touch.move,this.handleDrag),(0,m.removeEvent)(P,S.mouse.stop,this.handleDragStop),(0,m.removeEvent)(P,S.touch.stop,this.handleDragStop),(0,m.removeEvent)(D,S.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,m.removeUserSelectStyles)(P)}}findDOMNode(){var D,P;return(D=this.props)!==null&&D!==void 0&&D.nodeRef?(P=this.props)===null||P===void 0||(P=P.nodeRef)===null||P===void 0?void 0:P.current:s.default.findDOMNode(this)}render(){return i.cloneElement(i.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}g.default=R,b(R,"displayName","DraggableCore"),b(R,"propTypes",{allowAnyClick:l.default.bool,children:l.default.node.isRequired,disabled:l.default.bool,enableUserSelectHack:l.default.bool,offsetParent:function(M,D){if(M[D]&&M[D].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:l.default.arrayOf(l.default.number),handle:l.default.string,cancel:l.default.string,nodeRef:l.default.object,onStart:l.default.func,onDrag:l.default.func,onStop:l.default.func,onMouseDown:l.default.func,scale:l.default.number,className:f.dontSetMe,style:f.dontSetMe,transform:f.dontSetMe}),b(R,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},55794:(J,g,t)=>{"use strict";const{default:i,DraggableCore:l}=t(86027);J.exports=i,J.exports.default=i,J.exports.DraggableCore=l},71089:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.addClassName=j,g.addEvent=v,g.addUserSelectStyles=T,g.createCSSTransform=O,g.createSVGTransform=R,g.getTouch=D,g.getTouchIdentifier=P,g.getTranslation=M,g.innerHeight=y,g.innerWidth=w,g.matchesSelector=f,g.matchesSelectorAndParentsTo=p,g.offsetXYFromParent=S,g.outerHeight=d,g.outerWidth=b,g.removeClassName=ae,g.removeEvent=h,g.removeUserSelectStyles=A;var i=t(77056),l=m(t(33514));function s(_){if(typeof WeakMap!="function")return null;var N=new WeakMap,W=new WeakMap;return(s=function(he){return he?W:N})(_)}function m(_,N){if(!N&&_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var W=s(N);if(W&&W.has(_))return W.get(_);var he={},me=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var fe in _)if(fe!=="default"&&Object.prototype.hasOwnProperty.call(_,fe)){var ve=me?Object.getOwnPropertyDescriptor(_,fe):null;ve&&(ve.get||ve.set)?Object.defineProperty(he,fe,ve):he[fe]=_[fe]}return he.default=_,W&&W.set(_,he),he}let u="";function f(_,N){return u||(u=(0,i.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(W){return(0,i.isFunction)(_[W])})),(0,i.isFunction)(_[u])?_[u](N):!1}function p(_,N,W){let he=_;do{if(f(he,N))return!0;if(he===W)return!1;he=he.parentNode}while(he);return!1}function v(_,N,W,he){if(!_)return;const me={capture:!0,...he};_.addEventListener?_.addEventListener(N,W,me):_.attachEvent?_.attachEvent("on"+N,W):_["on"+N]=W}function h(_,N,W,he){if(!_)return;const me={capture:!0,...he};_.removeEventListener?_.removeEventListener(N,W,me):_.detachEvent?_.detachEvent("on"+N,W):_["on"+N]=null}function d(_){let N=_.clientHeight;const W=_.ownerDocument.defaultView.getComputedStyle(_);return N+=(0,i.int)(W.borderTopWidth),N+=(0,i.int)(W.borderBottomWidth),N}function b(_){let N=_.clientWidth;const W=_.ownerDocument.defaultView.getComputedStyle(_);return N+=(0,i.int)(W.borderLeftWidth),N+=(0,i.int)(W.borderRightWidth),N}function y(_){let N=_.clientHeight;const W=_.ownerDocument.defaultView.getComputedStyle(_);return N-=(0,i.int)(W.paddingTop),N-=(0,i.int)(W.paddingBottom),N}function w(_){let N=_.clientWidth;const W=_.ownerDocument.defaultView.getComputedStyle(_);return N-=(0,i.int)(W.paddingLeft),N-=(0,i.int)(W.paddingRight),N}function S(_,N,W){const me=N===N.ownerDocument.body?{left:0,top:0}:N.getBoundingClientRect(),fe=(_.clientX+N.scrollLeft-me.left)/W,ve=(_.clientY+N.scrollTop-me.top)/W;return{x:fe,y:ve}}function O(_,N){const W=M(_,N,"px");return{[(0,l.browserPrefixToKey)("transform",l.default)]:W}}function R(_,N){return M(_,N,"")}function M(_,N,W){let{x:he,y:me}=_,fe="translate(".concat(he).concat(W,",").concat(me).concat(W,")");if(N){const ve="".concat(typeof N.x=="string"?N.x:N.x+W),ce="".concat(typeof N.y=="string"?N.y:N.y+W);fe="translate(".concat(ve,", ").concat(ce,")")+fe}return fe}function D(_,N){return _.targetTouches&&(0,i.findInArray)(_.targetTouches,W=>N===W.identifier)||_.changedTouches&&(0,i.findInArray)(_.changedTouches,W=>N===W.identifier)}function P(_){if(_.targetTouches&&_.targetTouches[0])return _.targetTouches[0].identifier;if(_.changedTouches&&_.changedTouches[0])return _.changedTouches[0].identifier}function T(_){if(!_)return;let N=_.getElementById("react-draggable-style-el");N||(N=_.createElement("style"),N.type="text/css",N.id="react-draggable-style-el",N.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,N.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,_.getElementsByTagName("head")[0].appendChild(N)),_.body&&j(_.body,"react-draggable-transparent-selection")}function A(_){if(_)try{if(_.body&&ae(_.body,"react-draggable-transparent-selection"),_.selection)_.selection.empty();else{const N=(_.defaultView||window).getSelection();N&&N.type!=="Caret"&&N.removeAllRanges()}}catch{}}function j(_,N){_.classList?_.classList.add(N):_.className.match(new RegExp("(?:^|\\s)".concat(N,"(?!\\S)")))||(_.className+=" ".concat(N))}function ae(_,N){_.classList?_.classList.remove(N):_.className=_.className.replace(new RegExp("(?:^|\\s)".concat(N,"(?!\\S)"),"g"),"")}},33514:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.browserPrefixToKey=l,g.browserPrefixToStyle=s,g.default=void 0,g.getPrefix=i;const t=["Moz","Webkit","O","ms"];function i(){var f;let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const v=(f=window.document)===null||f===void 0||(f=f.documentElement)===null||f===void 0?void 0:f.style;if(!v||p in v)return"";for(let h=0;h<t.length;h++)if(l(p,t[h])in v)return t[h];return""}function l(f,p){return p?"".concat(p).concat(m(f)):f}function s(f,p){return p?"-".concat(p.toLowerCase(),"-").concat(f):f}function m(f){let p="",v=!0;for(let h=0;h<f.length;h++)v?(p+=f[h].toUpperCase(),v=!1):f[h]==="-"?v=!0:p+=f[h];return p}var u=g.default=i()},18696:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=t;function t(){}},81726:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.canDragX=u,g.canDragY=f,g.createCoreData=v,g.createDraggableData=h,g.getBoundPosition=s,g.getControlPosition=p,g.snapToGrid=m;var i=t(77056),l=t(71089);function s(y,w,S){if(!y.props.bounds)return[w,S];let{bounds:O}=y.props;O=typeof O=="string"?O:d(O);const R=b(y);if(typeof O=="string"){const{ownerDocument:M}=R,D=M.defaultView;let P;if(O==="parent"?P=R.parentNode:P=M.querySelector(O),!(P instanceof D.HTMLElement))throw new Error('Bounds selector "'+O+'" could not find an element.');const T=P,A=D.getComputedStyle(R),j=D.getComputedStyle(T);O={left:-R.offsetLeft+(0,i.int)(j.paddingLeft)+(0,i.int)(A.marginLeft),top:-R.offsetTop+(0,i.int)(j.paddingTop)+(0,i.int)(A.marginTop),right:(0,l.innerWidth)(T)-(0,l.outerWidth)(R)-R.offsetLeft+(0,i.int)(j.paddingRight)-(0,i.int)(A.marginRight),bottom:(0,l.innerHeight)(T)-(0,l.outerHeight)(R)-R.offsetTop+(0,i.int)(j.paddingBottom)-(0,i.int)(A.marginBottom)}}return(0,i.isNum)(O.right)&&(w=Math.min(w,O.right)),(0,i.isNum)(O.bottom)&&(S=Math.min(S,O.bottom)),(0,i.isNum)(O.left)&&(w=Math.max(w,O.left)),(0,i.isNum)(O.top)&&(S=Math.max(S,O.top)),[w,S]}function m(y,w,S){const O=Math.round(w/y[0])*y[0],R=Math.round(S/y[1])*y[1];return[O,R]}function u(y){return y.props.axis==="both"||y.props.axis==="x"}function f(y){return y.props.axis==="both"||y.props.axis==="y"}function p(y,w,S){const O=typeof w=="number"?(0,l.getTouch)(y,w):null;if(typeof w=="number"&&!O)return null;const R=b(S),M=S.props.offsetParent||R.offsetParent||R.ownerDocument.body;return(0,l.offsetXYFromParent)(O||y,M,S.props.scale)}function v(y,w,S){const O=!(0,i.isNum)(y.lastX),R=b(y);return O?{node:R,deltaX:0,deltaY:0,lastX:w,lastY:S,x:w,y:S}:{node:R,deltaX:w-y.lastX,deltaY:S-y.lastY,lastX:y.lastX,lastY:y.lastY,x:w,y:S}}function h(y,w){const S=y.props.scale;return{node:w.node,x:y.state.x+w.deltaX/S,y:y.state.y+w.deltaY/S,deltaX:w.deltaX/S,deltaY:w.deltaY/S,lastX:y.state.x,lastY:y.state.y}}function d(y){return{left:y.left,top:y.top,right:y.right,bottom:y.bottom}}function b(y){const w=y.findDOMNode();if(!w)throw new Error("<DraggableCore>: Unmounted during event!");return w}},77056:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.dontSetMe=m,g.findInArray=t,g.int=s,g.isFunction=i,g.isNum=l;function t(u,f){for(let p=0,v=u.length;p<v;p++)if(f.apply(f,[u[p],p,u]))return u[p]}function i(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Function]"}function l(u){return typeof u=="number"&&!isNaN(u)}function s(u){return parseInt(u,10)}function m(u,f,p){if(u[f])return new Error("Invalid prop ".concat(f," passed to ").concat(p," - do not set this, set it on the child."))}},81322:(J,g,t)=>{"use strict";t.r(g),t.d(g,{clsx:()=>l,default:()=>s});function i(m){var u,f,p="";if(typeof m=="string"||typeof m=="number")p+=m;else if(typeof m=="object")if(Array.isArray(m))for(u=0;u<m.length;u++)m[u]&&(f=i(m[u]))&&(p&&(p+=" "),p+=f);else for(u in m)m[u]&&(p&&(p+=" "),p+=u);return p}function l(){for(var m,u,f=0,p="";f<arguments.length;)(m=arguments[f++])&&(u=i(m))&&(p&&(p+=" "),p+=u);return p}const s=l},20978:(J,g,t)=>{"use strict";t.d(g,{VB:()=>pt});var i=t(96540),l=t(5556),s=t.n(l),m=t(31635),u=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function f(U,F){var Y=p(U);if(typeof Y.path!="string"){var le=U.webkitRelativePath;Object.defineProperty(Y,"path",{value:typeof F=="string"?F:typeof le=="string"&&le.length>0?le:U.name,writable:!1,configurable:!1,enumerable:!0})}return Y}function p(U){var F=U.name,Y=F&&F.lastIndexOf(".")!==-1;if(Y&&!U.type){var le=F.split(".").pop().toLowerCase(),ke=u.get(le);ke&&Object.defineProperty(U,"type",{value:ke,writable:!1,configurable:!1,enumerable:!0})}return U}var v=[".DS_Store","Thumbs.db"];function h(U){return(0,m.__awaiter)(this,void 0,void 0,function(){return(0,m.__generator)(this,function(F){return y(U)&&d(U.dataTransfer)?[2,O(U.dataTransfer,U.type)]:b(U)?[2,w(U)]:Array.isArray(U)&&U.every(function(Y){return"getFile"in Y&&typeof Y.getFile=="function"})?[2,S(U)]:[2,[]]})})}function d(U){return y(U)}function b(U){return y(U)&&y(U.target)}function y(U){return typeof U=="object"&&U!==null}function w(U){return M(U.target.files).map(function(F){return f(F)})}function S(U){return(0,m.__awaiter)(this,void 0,void 0,function(){var F;return(0,m.__generator)(this,function(Y){switch(Y.label){case 0:return[4,Promise.all(U.map(function(le){return le.getFile()}))];case 1:return F=Y.sent(),[2,F.map(function(le){return f(le)})]}})})}function O(U,F){return(0,m.__awaiter)(this,void 0,void 0,function(){var Y,le;return(0,m.__generator)(this,function(ke){switch(ke.label){case 0:return U.items?(Y=M(U.items).filter(function(Ye){return Ye.kind==="file"}),F!=="drop"?[2,Y]:[4,Promise.all(Y.map(D))]):[3,2];case 1:return le=ke.sent(),[2,R(P(le))];case 2:return[2,R(M(U.files).map(function(Ye){return f(Ye)}))]}})})}function R(U){return U.filter(function(F){return v.indexOf(F.name)===-1})}function M(U){if(U===null)return[];for(var F=[],Y=0;Y<U.length;Y++){var le=U[Y];F.push(le)}return F}function D(U){if(typeof U.webkitGetAsEntry!="function")return T(U);var F=U.webkitGetAsEntry();return F&&F.isDirectory?j(F):T(U)}function P(U){return U.reduce(function(F,Y){return(0,m.__spreadArray)((0,m.__spreadArray)([],(0,m.__read)(F),!1),(0,m.__read)(Array.isArray(Y)?P(Y):[Y]),!1)},[])}function T(U){var F=U.getAsFile();if(!F)return Promise.reject("".concat(U," is not a File"));var Y=f(F);return Promise.resolve(Y)}function A(U){return(0,m.__awaiter)(this,void 0,void 0,function(){return(0,m.__generator)(this,function(F){return[2,U.isDirectory?j(U):ae(U)]})})}function j(U){var F=U.createReader();return new Promise(function(Y,le){var ke=[];function Ye(){var ft=this;F.readEntries(function(wt){return(0,m.__awaiter)(ft,void 0,void 0,function(){var Ut,Ke,it;return(0,m.__generator)(this,function(At){switch(At.label){case 0:if(wt.length)return[3,5];At.label=1;case 1:return At.trys.push([1,3,,4]),[4,Promise.all(ke)];case 2:return Ut=At.sent(),Y(Ut),[3,4];case 3:return Ke=At.sent(),le(Ke),[3,4];case 4:return[3,6];case 5:it=Promise.all(wt.map(A)),ke.push(it),Ye(),At.label=6;case 6:return[2]}})})},function(wt){le(wt)})}Ye()})}function ae(U){return(0,m.__awaiter)(this,void 0,void 0,function(){return(0,m.__generator)(this,function(F){return[2,new Promise(function(Y,le){U.file(function(ke){var Ye=f(ke,U.fullPath);Y(Ye)},function(ke){le(ke)})})]})})}var _=t(47172),N=["children"],W=["open"],he=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],me=["refKey","onChange","onClick"];function fe(U){return oe(U)||ce(U)||V(U)||ve()}function ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(U){if(typeof Symbol<"u"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}function oe(U){if(Array.isArray(U))return Q(U)}function re(U,F){return Re(U)||Te(U,F)||V(U,F)||H()}function H(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(U,F){if(U){if(typeof U=="string")return Q(U,F);var Y=Object.prototype.toString.call(U).slice(8,-1);if(Y==="Object"&&U.constructor&&(Y=U.constructor.name),Y==="Map"||Y==="Set")return Array.from(U);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return Q(U,F)}}function Q(U,F){(F==null||F>U.length)&&(F=U.length);for(var Y=0,le=new Array(F);Y<F;Y++)le[Y]=U[Y];return le}function Te(U,F){var Y=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(Y!=null){var le=[],ke=!0,Ye=!1,ft,wt;try{for(Y=Y.call(U);!(ke=(ft=Y.next()).done)&&(le.push(ft.value),!(F&&le.length===F));ke=!0);}catch(Ut){Ye=!0,wt=Ut}finally{try{!ke&&Y.return!=null&&Y.return()}finally{if(Ye)throw wt}}return le}}function Re(U){if(Array.isArray(U))return U}function ne(U,F){var Y=Object.keys(U);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(U);F&&(le=le.filter(function(ke){return Object.getOwnPropertyDescriptor(U,ke).enumerable})),Y.push.apply(Y,le)}return Y}function pe(U){for(var F=1;F<arguments.length;F++){var Y=arguments[F]!=null?arguments[F]:{};F%2?ne(Object(Y),!0).forEach(function(le){ye(U,le,Y[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(Y)):ne(Object(Y)).forEach(function(le){Object.defineProperty(U,le,Object.getOwnPropertyDescriptor(Y,le))})}return U}function ye(U,F,Y){return F in U?Object.defineProperty(U,F,{value:Y,enumerable:!0,configurable:!0,writable:!0}):U[F]=Y,U}function Se(U,F){if(U==null)return{};var Y=Ae(U,F),le,ke;if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(U);for(ke=0;ke<Ye.length;ke++)le=Ye[ke],!(F.indexOf(le)>=0)&&Object.prototype.propertyIsEnumerable.call(U,le)&&(Y[le]=U[le])}return Y}function Ae(U,F){if(U==null)return{};var Y={},le=Object.keys(U),ke,Ye;for(Ye=0;Ye<le.length;Ye++)ke=le[Ye],!(F.indexOf(ke)>=0)&&(Y[ke]=U[ke]);return Y}var Ee=(0,i.forwardRef)(function(U,F){var Y=U.children,le=Se(U,N),ke=pt(le),Ye=ke.open,ft=Se(ke,W);return(0,i.useImperativeHandle)(F,function(){return{open:Ye}},[Ye]),i.createElement(i.Fragment,null,Y(pe(pe({},ft),{},{open:Ye})))});Ee.displayName="Dropzone";var xe={disabled:!1,getFilesFromEvent:h,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ee.defaultProps=xe,Ee.propTypes={children:s().func,accept:s().objectOf(s().arrayOf(s().string)),multiple:s().bool,preventDropOnDocument:s().bool,noClick:s().bool,noKeyboard:s().bool,noDrag:s().bool,noDragEventsBubbling:s().bool,minSize:s().number,maxSize:s().number,maxFiles:s().number,disabled:s().bool,getFilesFromEvent:s().func,onFileDialogCancel:s().func,onFileDialogOpen:s().func,useFsAccessApi:s().bool,autoFocus:s().bool,onDragEnter:s().func,onDragLeave:s().func,onDragOver:s().func,onDrop:s().func,onDropAccepted:s().func,onDropRejected:s().func,onError:s().func,validator:s().func};const nt=null;var Tt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function pt(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=pe(pe({},xe),U),Y=F.accept,le=F.disabled,ke=F.getFilesFromEvent,Ye=F.maxSize,ft=F.minSize,wt=F.multiple,Ut=F.maxFiles,Ke=F.onDragEnter,it=F.onDragLeave,At=F.onDragOver,et=F.onDrop,ee=F.onDropAccepted,I=F.onDropRejected,K=F.onFileDialogCancel,ue=F.onFileDialogOpen,De=F.useFsAccessApi,He=F.autoFocus,Fe=F.preventDropOnDocument,ze=F.noClick,qe=F.noKeyboard,We=F.noDrag,_t=F.noDragEventsBubbling,ct=F.onError,Ge=F.validator,st=(0,i.useMemo)(function(){return(0,_.DG)(Y)},[Y]),Me=(0,i.useMemo)(function(){return(0,_.Vl)(Y)},[Y]),ie=(0,i.useMemo)(function(){return typeof ue=="function"?ue:tt},[ue]),ge=(0,i.useMemo)(function(){return typeof K=="function"?K:tt},[K]),z=(0,i.useRef)(null),be=(0,i.useRef)(null),Qe=(0,i.useReducer)(Rt,Tt),Bt=re(Qe,2),nn=Bt[0],bt=Bt[1],at=nn.isFocused,$t=nn.isFileDialogActive,On=(0,i.useRef)(typeof window<"u"&&window.isSecureContext&&De&&(0,_.vQ)()),Ct=function(){!On.current&&$t&&setTimeout(function(){if(be.current){var bi=be.current.files;bi.length||(bt({type:"closeDialog"}),ge())}},300)};(0,i.useEffect)(function(){return window.addEventListener("focus",Ct,!1),function(){window.removeEventListener("focus",Ct,!1)}},[be,$t,ge,On]);var Zt=(0,i.useRef)([]),Wn=function(bi){z.current&&z.current.contains(bi.target)||(bi.preventDefault(),Zt.current=[])};(0,i.useEffect)(function(){return Fe&&(document.addEventListener("dragover",_.rr,!1),document.addEventListener("drop",Wn,!1)),function(){Fe&&(document.removeEventListener("dragover",_.rr),document.removeEventListener("drop",Wn))}},[z,Fe]),(0,i.useEffect)(function(){return!le&&He&&z.current&&z.current.focus(),function(){}},[z,He,le]);var Zn=(0,i.useCallback)(function(ui){ct?ct(ui):console.error(ui)},[ct]),xt=(0,i.useCallback)(function(ui){ui.preventDefault(),ui.persist(),sr(ui),Zt.current=[].concat(fe(Zt.current),[ui.target]),(0,_.t)(ui)&&Promise.resolve(ke(ui)).then(function(bi){if(!((0,_.Qk)(ui)&&!_t)){var ri=bi.length,hi=ri>0&&(0,_.gs)({files:bi,accept:st,minSize:ft,maxSize:Ye,multiple:wt,maxFiles:Ut,validator:Ge}),Si=ri>0&&!hi;bt({isDragAccept:hi,isDragReject:Si,isDragActive:!0,type:"setDraggedFiles"}),Ke&&Ke(ui)}}).catch(function(bi){return Zn(bi)})},[ke,Ke,Zn,_t,st,ft,Ye,wt,Ut,Ge]),Xe=(0,i.useCallback)(function(ui){ui.preventDefault(),ui.persist(),sr(ui);var bi=(0,_.t)(ui);if(bi&&ui.dataTransfer)try{ui.dataTransfer.dropEffect="copy"}catch{}return bi&&At&&At(ui),!1},[At,_t]),gn=(0,i.useCallback)(function(ui){ui.preventDefault(),ui.persist(),sr(ui);var bi=Zt.current.filter(function(hi){return z.current&&z.current.contains(hi)}),ri=bi.indexOf(ui.target);ri!==-1&&bi.splice(ri,1),Zt.current=bi,!(bi.length>0)&&(bt({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),(0,_.t)(ui)&&it&&it(ui))},[z,it,_t]),Qt=(0,i.useCallback)(function(ui,bi){var ri=[],hi=[];ui.forEach(function(Si){var Kr=(0,_.WR)(Si,st),xi=re(Kr,2),Ai=xi[0],Pi=xi[1],io=(0,_.Hz)(Si,ft,Ye),lo=re(io,2),Gr=lo[0],un=lo[1],qn=Ge?Ge(Si):null;if(Ai&&Gr&&!qn)ri.push(Si);else{var kn=[Pi,un];qn&&(kn=kn.concat(qn)),hi.push({file:Si,errors:kn.filter(function(St){return St})})}}),(!wt&&ri.length>1||wt&&Ut>=1&&ri.length>Ut)&&(ri.forEach(function(Si){hi.push({file:Si,errors:[_.Ri]})}),ri.splice(0)),bt({acceptedFiles:ri,fileRejections:hi,type:"setFiles"}),et&&et(ri,hi,bi),hi.length>0&&I&&I(hi,bi),ri.length>0&&ee&&ee(ri,bi)},[bt,wt,st,ft,Ye,Ut,et,ee,I,Ge]),Dt=(0,i.useCallback)(function(ui){ui.preventDefault(),ui.persist(),sr(ui),Zt.current=[],(0,_.t)(ui)&&Promise.resolve(ke(ui)).then(function(bi){(0,_.Qk)(ui)&&!_t||Qt(bi,ui)}).catch(function(bi){return Zn(bi)}),bt({type:"reset"})},[ke,Qt,Zn,_t]),hn=(0,i.useCallback)(function(){if(On.current){bt({type:"openDialog"}),ie();var ui={multiple:wt,types:Me};window.showOpenFilePicker(ui).then(function(bi){return ke(bi)}).then(function(bi){Qt(bi,null),bt({type:"closeDialog"})}).catch(function(bi){(0,_.rV)(bi)?(ge(bi),bt({type:"closeDialog"})):(0,_.v2)(bi)?(On.current=!1,be.current?(be.current.value=null,be.current.click()):Zn(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Zn(bi)});return}be.current&&(bt({type:"openDialog"}),ie(),be.current.value=null,be.current.click())},[bt,ie,ge,De,Qt,Zn,Me,wt]),cn=(0,i.useCallback)(function(ui){!z.current||!z.current.isEqualNode(ui.target)||(ui.key===" "||ui.key==="Enter"||ui.keyCode===32||ui.keyCode===13)&&(ui.preventDefault(),hn())},[z,hn]),an=(0,i.useCallback)(function(){bt({type:"focus"})},[]),Or=(0,i.useCallback)(function(){bt({type:"blur"})},[]),Ln=(0,i.useCallback)(function(){ze||((0,_.lP)()?setTimeout(hn,0):hn())},[ze,hn]),En=function(bi){return le?null:bi},Gn=function(bi){return qe?null:En(bi)},rr=function(bi){return We?null:En(bi)},sr=function(bi){_t&&bi.stopPropagation()},pi=(0,i.useMemo)(function(){return function(){var ui=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},bi=ui.refKey,ri=bi===void 0?"ref":bi,hi=ui.role,Si=ui.onKeyDown,Kr=ui.onFocus,xi=ui.onBlur,Ai=ui.onClick,Pi=ui.onDragEnter,io=ui.onDragOver,lo=ui.onDragLeave,Gr=ui.onDrop,un=Se(ui,he);return pe(pe(ye({onKeyDown:Gn((0,_.mK)(Si,cn)),onFocus:Gn((0,_.mK)(Kr,an)),onBlur:Gn((0,_.mK)(xi,Or)),onClick:En((0,_.mK)(Ai,Ln)),onDragEnter:rr((0,_.mK)(Pi,xt)),onDragOver:rr((0,_.mK)(io,Xe)),onDragLeave:rr((0,_.mK)(lo,gn)),onDrop:rr((0,_.mK)(Gr,Dt)),role:typeof hi=="string"&&hi!==""?hi:"presentation"},ri,z),!le&&!qe?{tabIndex:0}:{}),un)}},[z,cn,an,Or,Ln,xt,Xe,gn,Dt,qe,We,le]),yi=(0,i.useCallback)(function(ui){ui.stopPropagation()},[]),jr=(0,i.useMemo)(function(){return function(){var ui=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},bi=ui.refKey,ri=bi===void 0?"ref":bi,hi=ui.onChange,Si=ui.onClick,Kr=Se(ui,me),xi=ye({accept:st,multiple:wt,type:"file",style:{display:"none"},onChange:En((0,_.mK)(hi,Dt)),onClick:En((0,_.mK)(Si,yi)),tabIndex:-1},ri,be);return pe(pe({},xi),Kr)}},[be,Y,wt,Dt,le]);return pe(pe({},nn),{},{isFocused:at&&!le,getRootProps:pi,getInputProps:jr,rootRef:z,inputRef:be,open:En(hn)})}function Rt(U,F){switch(F.type){case"focus":return pe(pe({},U),{},{isFocused:!0});case"blur":return pe(pe({},U),{},{isFocused:!1});case"openDialog":return pe(pe({},Tt),{},{isFileDialogActive:!0});case"closeDialog":return pe(pe({},U),{},{isFileDialogActive:!1});case"setDraggedFiles":return pe(pe({},U),{},{isDragActive:F.isDragActive,isDragAccept:F.isDragAccept,isDragReject:F.isDragReject});case"setFiles":return pe(pe({},U),{},{acceptedFiles:F.acceptedFiles,fileRejections:F.fileRejections});case"reset":return pe({},Tt);default:return U}}function tt(){}},47172:(J,g,t)=>{"use strict";t.d(g,{DG:()=>ne,Hz:()=>W,O4:()=>T,Qk:()=>fe,Ri:()=>_,Vl:()=>Re,WR:()=>N,gs:()=>me,lP:()=>V,mK:()=>Q,rV:()=>pe,rr:()=>oe,t:()=>ve,v2:()=>ye,vQ:()=>Te});var i=t(9455);function l(Ee){return u(Ee)||m(Ee)||y(Ee)||s()}function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(Ee){if(typeof Symbol<"u"&&Ee[Symbol.iterator]!=null||Ee["@@iterator"]!=null)return Array.from(Ee)}function u(Ee){if(Array.isArray(Ee))return w(Ee)}function f(Ee,xe){var nt=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Tt=Object.getOwnPropertySymbols(Ee);xe&&(Tt=Tt.filter(function(pt){return Object.getOwnPropertyDescriptor(Ee,pt).enumerable})),nt.push.apply(nt,Tt)}return nt}function p(Ee){for(var xe=1;xe<arguments.length;xe++){var nt=arguments[xe]!=null?arguments[xe]:{};xe%2?f(Object(nt),!0).forEach(function(Tt){v(Ee,Tt,nt[Tt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(nt)):f(Object(nt)).forEach(function(Tt){Object.defineProperty(Ee,Tt,Object.getOwnPropertyDescriptor(nt,Tt))})}return Ee}function v(Ee,xe,nt){return xe in Ee?Object.defineProperty(Ee,xe,{value:nt,enumerable:!0,configurable:!0,writable:!0}):Ee[xe]=nt,Ee}function h(Ee){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xe){return typeof xe}:function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe},h(Ee)}function d(Ee,xe){return O(Ee)||S(Ee,xe)||y(Ee,xe)||b()}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(Ee,xe){if(Ee){if(typeof Ee=="string")return w(Ee,xe);var nt=Object.prototype.toString.call(Ee).slice(8,-1);if(nt==="Object"&&Ee.constructor&&(nt=Ee.constructor.name),nt==="Map"||nt==="Set")return Array.from(Ee);if(nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nt))return w(Ee,xe)}}function w(Ee,xe){(xe==null||xe>Ee.length)&&(xe=Ee.length);for(var nt=0,Tt=new Array(xe);nt<xe;nt++)Tt[nt]=Ee[nt];return Tt}function S(Ee,xe){var nt=Ee==null?null:typeof Symbol<"u"&&Ee[Symbol.iterator]||Ee["@@iterator"];if(nt!=null){var Tt=[],pt=!0,Rt=!1,tt,U;try{for(nt=nt.call(Ee);!(pt=(tt=nt.next()).done)&&(Tt.push(tt.value),!(xe&&Tt.length===xe));pt=!0);}catch(F){Rt=!0,U=F}finally{try{!pt&&nt.return!=null&&nt.return()}finally{if(Rt)throw U}}return Tt}}function O(Ee){if(Array.isArray(Ee))return Ee}var R="file-invalid-type",M="file-too-large",D="file-too-small",P="too-many-files",T={FileInvalidType:R,FileTooLarge:M,FileTooSmall:D,TooManyFiles:P},A=function(xe){xe=Array.isArray(xe)&&xe.length===1?xe[0]:xe;var nt=Array.isArray(xe)?"one of ".concat(xe.join(", ")):xe;return{code:R,message:"File type must be ".concat(nt)}},j=function(xe){return{code:M,message:"File is larger than ".concat(xe," ").concat(xe===1?"byte":"bytes")}},ae=function(xe){return{code:D,message:"File is smaller than ".concat(xe," ").concat(xe===1?"byte":"bytes")}},_={code:P,message:"Too many files"};function N(Ee,xe){var nt=Ee.type==="application/x-moz-file"||(0,i.A)(Ee,xe);return[nt,nt?null:A(xe)]}function W(Ee,xe,nt){if(he(Ee.size))if(he(xe)&&he(nt)){if(Ee.size>nt)return[!1,j(nt)];if(Ee.size<xe)return[!1,ae(xe)]}else{if(he(xe)&&Ee.size<xe)return[!1,ae(xe)];if(he(nt)&&Ee.size>nt)return[!1,j(nt)]}return[!0,null]}function he(Ee){return Ee!=null}function me(Ee){var xe=Ee.files,nt=Ee.accept,Tt=Ee.minSize,pt=Ee.maxSize,Rt=Ee.multiple,tt=Ee.maxFiles,U=Ee.validator;return!Rt&&xe.length>1||Rt&&tt>=1&&xe.length>tt?!1:xe.every(function(F){var Y=N(F,nt),le=d(Y,1),ke=le[0],Ye=W(F,Tt,pt),ft=d(Ye,1),wt=ft[0],Ut=U?U(F):null;return ke&&wt&&!Ut})}function fe(Ee){return typeof Ee.isPropagationStopped=="function"?Ee.isPropagationStopped():typeof Ee.cancelBubble<"u"?Ee.cancelBubble:!1}function ve(Ee){return Ee.dataTransfer?Array.prototype.some.call(Ee.dataTransfer.types,function(xe){return xe==="Files"||xe==="application/x-moz-file"}):!!Ee.target&&!!Ee.target.files}function ce(Ee){return h(Ee)==="object"&&Ee!==null&&Ee.kind==="file"}function oe(Ee){Ee.preventDefault()}function re(Ee){return Ee.indexOf("MSIE")!==-1||Ee.indexOf("Trident/")!==-1}function H(Ee){return Ee.indexOf("Edge/")!==-1}function V(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return re(Ee)||H(Ee)}function Q(){for(var Ee=arguments.length,xe=new Array(Ee),nt=0;nt<Ee;nt++)xe[nt]=arguments[nt];return function(Tt){for(var pt=arguments.length,Rt=new Array(pt>1?pt-1:0),tt=1;tt<pt;tt++)Rt[tt-1]=arguments[tt];return xe.some(function(U){return!fe(Tt)&&U&&U.apply(void 0,[Tt].concat(Rt)),fe(Tt)})}}function Te(){return"showOpenFilePicker"in window}function Re(Ee){if(he(Ee)){var xe=Object.entries(Ee).filter(function(nt){var Tt=d(nt,2),pt=Tt[0],Rt=Tt[1],tt=!0;return Se(pt)||(console.warn('Skipped "'.concat(pt,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),tt=!1),(!Array.isArray(Rt)||!Rt.every(Ae))&&(console.warn('Skipped "'.concat(pt,'" because an invalid file extension was provided.')),tt=!1),tt}).reduce(function(nt,Tt){var pt=d(Tt,2),Rt=pt[0],tt=pt[1];return p(p({},nt),{},v({},Rt,tt))},{});return[{description:"Files",accept:xe}]}return Ee}function ne(Ee){if(he(Ee))return Object.entries(Ee).reduce(function(xe,nt){var Tt=d(nt,2),pt=Tt[0],Rt=Tt[1];return[].concat(l(xe),[pt],l(Rt))},[]).filter(function(xe){return Se(xe)||Ae(xe)}).join(",")}function pe(Ee){return Ee instanceof DOMException&&(Ee.name==="AbortError"||Ee.code===Ee.ABORT_ERR)}function ye(Ee){return Ee instanceof DOMException&&(Ee.name==="SecurityError"||Ee.code===Ee.SECURITY_ERR)}function Se(Ee){return Ee==="audio/*"||Ee==="video/*"||Ee==="image/*"||Ee==="text/*"||/\w+\/[-+.\w]+/g.test(Ee)}function Ae(Ee){return/^.*\.[\w]+$/.test(Ee)}},71410:function(J,g,t){var i,l,s;(function(m,u){if(!0)l=[g,t(57206)],i=u,s=typeof i=="function"?i.apply(g,l):i,s!==void 0&&(J.exports=s);else var f})(this,function(m,u){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var f=p(u);function p(v){return v&&v.__esModule?v:{default:v}}m.default=f.default})},57206:function(J,g,t){var i,l,s;(function(m,u){if(!0)l=[g,t(96540),t(5556)],i=u,s=typeof i=="function"?i.apply(g,l):i,s!==void 0&&(J.exports=s);else var f})(this,function(m,u,f){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.setHasSupportToCaptureOption=M;var p=h(u),v=h(f);function h(A){return A&&A.__esModule?A:{default:A}}var d=Object.assign||function(A){for(var j=1;j<arguments.length;j++){var ae=arguments[j];for(var _ in ae)Object.prototype.hasOwnProperty.call(ae,_)&&(A[_]=ae[_])}return A};function b(A,j){var ae={};for(var _ in A)j.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(A,_)&&(ae[_]=A[_]);return ae}function y(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}var w=function(){function A(j,ae){for(var _=0;_<ae.length;_++){var N=ae[_];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,ae,_){return ae&&A(j.prototype,ae),_&&A(j,_),j}}();function S(A,j){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:A}function O(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(A,j):A.__proto__=j)}var R=!1;function M(A){R=A}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){M(!0)}}))}catch{}function D(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return R?A:A.capture}function P(A){if("touches"in A){var j=A.touches[0],ae=j.pageX,_=j.pageY;return{x:ae,y:_}}var N=A.screenX,W=A.screenY;return{x:N,y:W}}var T=function(A){O(j,A);function j(){var ae;y(this,j);for(var _=arguments.length,N=Array(_),W=0;W<_;W++)N[W]=arguments[W];var he=S(this,(ae=j.__proto__||Object.getPrototypeOf(j)).call.apply(ae,[this].concat(N)));return he._handleSwipeStart=he._handleSwipeStart.bind(he),he._handleSwipeMove=he._handleSwipeMove.bind(he),he._handleSwipeEnd=he._handleSwipeEnd.bind(he),he._onMouseDown=he._onMouseDown.bind(he),he._onMouseMove=he._onMouseMove.bind(he),he._onMouseUp=he._onMouseUp.bind(he),he._setSwiperRef=he._setSwiperRef.bind(he),he}return w(j,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,D({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,D({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var N=P(_),W=N.x,he=N.y;this.moveStart={x:W,y:he},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var N=P(_),W=N.x,he=N.y,me=W-this.moveStart.x,fe=he-this.moveStart.y;this.moving=!0;var ve=this.props.onSwipeMove({x:me,y:fe},_);ve&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:me,deltaY:fe}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var N=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-N?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>N&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-N?this.props.onSwipeUp(1,_):this.movePosition.deltaY>N&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props,N=_.tagName,W=_.className,he=_.style,me=_.children,fe=_.allowMouseEvents,ve=_.onSwipeUp,ce=_.onSwipeDown,oe=_.onSwipeLeft,re=_.onSwipeRight,H=_.onSwipeStart,V=_.onSwipeMove,Q=_.onSwipeEnd,Te=_.innerRef,Re=_.tolerance,ne=b(_,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return p.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:W,style:he},ne),me)}}]),j}(u.Component);T.displayName="ReactSwipe",T.propTypes={tagName:v.default.string,className:v.default.string,style:v.default.object,children:v.default.node,allowMouseEvents:v.default.bool,onSwipeUp:v.default.func,onSwipeDown:v.default.func,onSwipeLeft:v.default.func,onSwipeRight:v.default.func,onSwipeStart:v.default.func,onSwipeMove:v.default.func,onSwipeEnd:v.default.func,innerRef:v.default.func,tolerance:v.default.number.isRequired},T.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},m.default=T})},30115:J=>{var g=typeof Element<"u",t=typeof Map=="function",i=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(m,u){if(m===u)return!0;if(m&&u&&typeof m=="object"&&typeof u=="object"){if(m.constructor!==u.constructor)return!1;var f,p,v;if(Array.isArray(m)){if(f=m.length,f!=u.length)return!1;for(p=f;p--!==0;)if(!s(m[p],u[p]))return!1;return!0}var h;if(t&&m instanceof Map&&u instanceof Map){if(m.size!==u.size)return!1;for(h=m.entries();!(p=h.next()).done;)if(!u.has(p.value[0]))return!1;for(h=m.entries();!(p=h.next()).done;)if(!s(p.value[1],u.get(p.value[0])))return!1;return!0}if(i&&m instanceof Set&&u instanceof Set){if(m.size!==u.size)return!1;for(h=m.entries();!(p=h.next()).done;)if(!u.has(p.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(m)&&ArrayBuffer.isView(u)){if(f=m.length,f!=u.length)return!1;for(p=f;p--!==0;)if(m[p]!==u[p])return!1;return!0}if(m.constructor===RegExp)return m.source===u.source&&m.flags===u.flags;if(m.valueOf!==Object.prototype.valueOf)return m.valueOf()===u.valueOf();if(m.toString!==Object.prototype.toString)return m.toString()===u.toString();if(v=Object.keys(m),f=v.length,f!==Object.keys(u).length)return!1;for(p=f;p--!==0;)if(!Object.prototype.hasOwnProperty.call(u,v[p]))return!1;if(g&&m instanceof Element)return!1;for(p=f;p--!==0;)if(!((v[p]==="_owner"||v[p]==="__v"||v[p]==="__o")&&m.$$typeof)&&!s(m[v[p]],u[v[p]]))return!1;return!0}return m!==m&&u!==u}J.exports=function(u,f){try{return s(u,f)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}}},23257:(J,g,t)=>{J.exports=function(i){var l={};function s(m){if(l[m])return l[m].exports;var u=l[m]={exports:{},id:m,loaded:!1};return i[m].call(u.exports,u,u.exports,s),u.loaded=!0,u.exports}return s.m=i,s.c=l,s.p="",s(0)}([function(i,l,s){i.exports=s(1)},function(i,l,s){"use strict";Object.defineProperty(l,"__esModule",{value:!0});function m(p){return p&&p.__esModule?p:{default:p}}var u=s(2),f=m(u);l.default=f.default,i.exports=l.default},function(i,l,s){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var m=Object.assign||function(S){for(var O=1;O<arguments.length;O++){var R=arguments[O];for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(S[M]=R[M])}return S};l.default=w;function u(S){return S&&S.__esModule?S:{default:S}}function f(S,O){var R={};for(var M in S)O.indexOf(M)>=0||Object.prototype.hasOwnProperty.call(S,M)&&(R[M]=S[M]);return R}var p=s(3),v=s(4),h=u(v),d=s(14),b=s(15),y=u(b);w.propTypes={activeClassName:h.default.string,activeIndex:h.default.number,activeStyle:h.default.object,autoEscape:h.default.bool,className:h.default.string,findChunks:h.default.func,highlightClassName:h.default.oneOfType([h.default.object,h.default.string]),highlightStyle:h.default.object,highlightTag:h.default.oneOfType([h.default.node,h.default.func,h.default.string]),sanitize:h.default.func,searchWords:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.instanceOf(RegExp)])).isRequired,textToHighlight:h.default.string.isRequired,unhighlightTag:h.default.oneOfType([h.default.node,h.default.func,h.default.string]),unhighlightClassName:h.default.string,unhighlightStyle:h.default.object};function w(S){var O=S.activeClassName,R=O===void 0?"":O,M=S.activeIndex,D=M===void 0?-1:M,P=S.activeStyle,T=S.autoEscape,A=S.caseSensitive,j=A===void 0?!1:A,ae=S.className,_=S.findChunks,N=S.highlightClassName,W=N===void 0?"":N,he=S.highlightStyle,me=he===void 0?{}:he,fe=S.highlightTag,ve=fe===void 0?"mark":fe,ce=S.sanitize,oe=S.searchWords,re=S.textToHighlight,H=S.unhighlightTag,V=H===void 0?"span":H,Q=S.unhighlightClassName,Te=Q===void 0?"":Q,Re=S.unhighlightStyle,ne=f(S,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),pe=(0,p.findAll)({autoEscape:T,caseSensitive:j,findChunks:_,sanitize:ce,searchWords:oe,textToHighlight:re}),ye=ve,Se=-1,Ae="",Ee=void 0,xe=function(pt){var Rt={};for(var tt in pt)Rt[tt.toLowerCase()]=pt[tt];return Rt},nt=(0,y.default)(xe);return(0,d.createElement)("span",m({className:ae},ne,{children:pe.map(function(Tt,pt){var Rt=re.substr(Tt.start,Tt.end-Tt.start);if(Tt.highlight){Se++;var tt=void 0;typeof W=="object"?j?tt=W[Rt]:(W=nt(W),tt=W[Rt.toLowerCase()]):tt=W;var U=Se===+D;Ae=tt+" "+(U?R:""),Ee=U===!0&&P!=null?Object.assign({},me,P):me;var F={children:Rt,className:Ae,key:pt,style:Ee};return typeof ye!="string"&&(F.highlightIndex=Se),(0,d.createElement)(ye,F)}else return(0,d.createElement)(V,{children:Rt,className:Te,key:pt,style:Re})})}))}i.exports=l.default},function(i,l){i.exports=function(s){var m={};function u(f){if(m[f])return m[f].exports;var p=m[f]={exports:{},id:f,loaded:!1};return s[f].call(p.exports,p,p.exports,u),p.loaded=!0,p.exports}return u.m=s,u.c=m,u.p="",u(0)}([function(s,m,u){s.exports=u(1)},function(s,m,u){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var f=u(2);Object.defineProperty(m,"combineChunks",{enumerable:!0,get:function(){return f.combineChunks}}),Object.defineProperty(m,"fillInChunks",{enumerable:!0,get:function(){return f.fillInChunks}}),Object.defineProperty(m,"findAll",{enumerable:!0,get:function(){return f.findAll}}),Object.defineProperty(m,"findChunks",{enumerable:!0,get:function(){return f.findChunks}})},function(s,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var u=m.findAll=function(y){var w=y.autoEscape,S=y.caseSensitive,O=S===void 0?!1:S,R=y.findChunks,M=R===void 0?p:R,D=y.sanitize,P=y.searchWords,T=y.textToHighlight;return v({chunksToHighlight:f({chunks:M({autoEscape:w,caseSensitive:O,sanitize:D,searchWords:P,textToHighlight:T})}),totalLength:T?T.length:0})},f=m.combineChunks=function(y){var w=y.chunks;return w=w.sort(function(S,O){return S.start-O.start}).reduce(function(S,O){if(S.length===0)return[O];var R=S.pop();if(O.start<=R.end){var M=Math.max(R.end,O.end);S.push({start:R.start,end:M})}else S.push(R,O);return S},[]),w},p=function(y){var w=y.autoEscape,S=y.caseSensitive,O=y.sanitize,R=O===void 0?h:O,M=y.searchWords,D=y.textToHighlight;return D=R(D),M.filter(function(P){return P}).reduce(function(P,T){T=R(T),w&&(T=d(T));for(var A=new RegExp(T,S?"g":"gi"),j=void 0;j=A.exec(D);){var ae=j.index,_=A.lastIndex;_>ae&&P.push({start:ae,end:_}),j.index==A.lastIndex&&A.lastIndex++}return P},[])};m.findChunks=p;var v=m.fillInChunks=function(y){var w=y.chunksToHighlight,S=y.totalLength,O=[],R=function(P,T,A){T-P>0&&O.push({start:P,end:T,highlight:A})};if(w.length===0)R(0,S,!1);else{var M=0;w.forEach(function(D){R(M,D.start,!1),R(D.start,D.end,!0),M=D.end}),R(M,S,!1)}return O};function h(b){return b}function d(b){return b.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(i,l,s){(function(m){if(m.env.NODE_ENV!=="production"){var u=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,f=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===u},p=!0;i.exports=s(6)(f,p)}else i.exports=s(13)()}).call(l,s(5))},function(i,l){var s=i.exports={},m,u;function f(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?m=setTimeout:m=f}catch{m=f}try{typeof clearTimeout=="function"?u=clearTimeout:u=p}catch{u=p}})();function v(D){if(m===setTimeout)return setTimeout(D,0);if((m===f||!m)&&setTimeout)return m=setTimeout,setTimeout(D,0);try{return m(D,0)}catch{try{return m.call(null,D,0)}catch{return m.call(this,D,0)}}}function h(D){if(u===clearTimeout)return clearTimeout(D);if((u===p||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(D);try{return u(D)}catch{try{return u.call(null,D)}catch{return u.call(this,D)}}}var d=[],b=!1,y,w=-1;function S(){!b||!y||(b=!1,y.length?d=y.concat(d):w=-1,d.length&&O())}function O(){if(!b){var D=v(S);b=!0;for(var P=d.length;P;){for(y=d,d=[];++w<P;)y&&y[w].run();w=-1,P=d.length}y=null,b=!1,h(D)}}s.nextTick=function(D){var P=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)P[T-1]=arguments[T];d.push(new R(D,P)),d.length===1&&!b&&v(O)};function R(D,P){this.fun=D,this.array=P}R.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function M(){}s.on=M,s.addListener=M,s.once=M,s.off=M,s.removeListener=M,s.removeAllListeners=M,s.emit=M,s.prependListener=M,s.prependOnceListener=M,s.listeners=function(D){return[]},s.binding=function(D){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(D){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(i,l,s){(function(m){"use strict";var u=s(7),f=s(8),p=s(9),v=s(10),h=s(11),d=s(12);i.exports=function(b,y){var w=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function O(Re){var ne=Re&&(w&&Re[w]||Re[S]);if(typeof ne=="function")return ne}var R="<<anonymous>>",M={array:A("array"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:j(),arrayOf:ae,element:_(),instanceOf:N,node:fe(),objectOf:he,oneOf:W,oneOfType:me,shape:ve,exact:ce};function D(Re,ne){return Re===ne?Re!==0||1/Re===1/ne:Re!==Re&&ne!==ne}function P(Re){this.message=Re,this.stack=""}P.prototype=Error.prototype;function T(Re){if(m.env.NODE_ENV!=="production")var ne={},pe=0;function ye(Ae,Ee,xe,nt,Tt,pt,Rt){if(nt=nt||R,pt=pt||xe,Rt!==h){if(y)f(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(m.env.NODE_ENV!=="production"&&typeof console<"u"){var tt=nt+":"+xe;!ne[tt]&&pe<3&&(p(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",pt,nt),ne[tt]=!0,pe++)}}return Ee[xe]==null?Ae?Ee[xe]===null?new P("The "+Tt+" `"+pt+"` is marked as required "+("in `"+nt+"`, but its value is `null`.")):new P("The "+Tt+" `"+pt+"` is marked as required in "+("`"+nt+"`, but its value is `undefined`.")):null:Re(Ee,xe,nt,Tt,pt)}var Se=ye.bind(null,!1);return Se.isRequired=ye.bind(null,!0),Se}function A(Re){function ne(pe,ye,Se,Ae,Ee,xe){var nt=pe[ye],Tt=H(nt);if(Tt!==Re){var pt=V(nt);return new P("Invalid "+Ae+" `"+Ee+"` of type "+("`"+pt+"` supplied to `"+Se+"`, expected ")+("`"+Re+"`."))}return null}return T(ne)}function j(){return T(u.thatReturnsNull)}function ae(Re){function ne(pe,ye,Se,Ae,Ee){if(typeof Re!="function")return new P("Property `"+Ee+"` of component `"+Se+"` has invalid PropType notation inside arrayOf.");var xe=pe[ye];if(!Array.isArray(xe)){var nt=H(xe);return new P("Invalid "+Ae+" `"+Ee+"` of type "+("`"+nt+"` supplied to `"+Se+"`, expected an array."))}for(var Tt=0;Tt<xe.length;Tt++){var pt=Re(xe,Tt,Se,Ae,Ee+"["+Tt+"]",h);if(pt instanceof Error)return pt}return null}return T(ne)}function _(){function Re(ne,pe,ye,Se,Ae){var Ee=ne[pe];if(!b(Ee)){var xe=H(Ee);return new P("Invalid "+Se+" `"+Ae+"` of type "+("`"+xe+"` supplied to `"+ye+"`, expected a single ReactElement."))}return null}return T(Re)}function N(Re){function ne(pe,ye,Se,Ae,Ee){if(!(pe[ye]instanceof Re)){var xe=Re.name||R,nt=Te(pe[ye]);return new P("Invalid "+Ae+" `"+Ee+"` of type "+("`"+nt+"` supplied to `"+Se+"`, expected ")+("instance of `"+xe+"`."))}return null}return T(ne)}function W(Re){if(!Array.isArray(Re))return m.env.NODE_ENV!=="production"&&p(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull;function ne(pe,ye,Se,Ae,Ee){for(var xe=pe[ye],nt=0;nt<Re.length;nt++)if(D(xe,Re[nt]))return null;var Tt=JSON.stringify(Re);return new P("Invalid "+Ae+" `"+Ee+"` of value `"+xe+"` "+("supplied to `"+Se+"`, expected one of "+Tt+"."))}return T(ne)}function he(Re){function ne(pe,ye,Se,Ae,Ee){if(typeof Re!="function")return new P("Property `"+Ee+"` of component `"+Se+"` has invalid PropType notation inside objectOf.");var xe=pe[ye],nt=H(xe);if(nt!=="object")return new P("Invalid "+Ae+" `"+Ee+"` of type "+("`"+nt+"` supplied to `"+Se+"`, expected an object."));for(var Tt in xe)if(xe.hasOwnProperty(Tt)){var pt=Re(xe,Tt,Se,Ae,Ee+"."+Tt,h);if(pt instanceof Error)return pt}return null}return T(ne)}function me(Re){if(!Array.isArray(Re))return m.env.NODE_ENV!=="production"&&p(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var ne=0;ne<Re.length;ne++){var pe=Re[ne];if(typeof pe!="function")return p(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",Q(pe),ne),u.thatReturnsNull}function ye(Se,Ae,Ee,xe,nt){for(var Tt=0;Tt<Re.length;Tt++){var pt=Re[Tt];if(pt(Se,Ae,Ee,xe,nt,h)==null)return null}return new P("Invalid "+xe+" `"+nt+"` supplied to "+("`"+Ee+"`."))}return T(ye)}function fe(){function Re(ne,pe,ye,Se,Ae){return oe(ne[pe])?null:new P("Invalid "+Se+" `"+Ae+"` supplied to "+("`"+ye+"`, expected a ReactNode."))}return T(Re)}function ve(Re){function ne(pe,ye,Se,Ae,Ee){var xe=pe[ye],nt=H(xe);if(nt!=="object")return new P("Invalid "+Ae+" `"+Ee+"` of type `"+nt+"` "+("supplied to `"+Se+"`, expected `object`."));for(var Tt in Re){var pt=Re[Tt];if(pt){var Rt=pt(xe,Tt,Se,Ae,Ee+"."+Tt,h);if(Rt)return Rt}}return null}return T(ne)}function ce(Re){function ne(pe,ye,Se,Ae,Ee){var xe=pe[ye],nt=H(xe);if(nt!=="object")return new P("Invalid "+Ae+" `"+Ee+"` of type `"+nt+"` "+("supplied to `"+Se+"`, expected `object`."));var Tt=v({},pe[ye],Re);for(var pt in Tt){var Rt=Re[pt];if(!Rt)return new P("Invalid "+Ae+" `"+Ee+"` key `"+pt+"` supplied to `"+Se+"`.\nBad object: "+JSON.stringify(pe[ye],null," ")+` Valid keys: `+JSON.stringify(Object.keys(Re),null," "));var tt=Rt(xe,pt,Se,Ae,Ee+"."+pt,h);if(tt)return tt}return null}return T(ne)}function oe(Re){switch(typeof Re){case"number":case"string":case"undefined":return!0;case"boolean":return!Re;case"object":if(Array.isArray(Re))return Re.every(oe);if(Re===null||b(Re))return!0;var ne=O(Re);if(ne){var pe=ne.call(Re),ye;if(ne!==Re.entries){for(;!(ye=pe.next()).done;)if(!oe(ye.value))return!1}else for(;!(ye=pe.next()).done;){var Se=ye.value;if(Se&&!oe(Se[1]))return!1}}else return!1;return!0;default:return!1}}function re(Re,ne){return Re==="symbol"||ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol}function H(Re){var ne=typeof Re;return Array.isArray(Re)?"array":Re instanceof RegExp?"object":re(ne,Re)?"symbol":ne}function V(Re){if(typeof Re>"u"||Re===null)return""+Re;var ne=H(Re);if(ne==="object"){if(Re instanceof Date)return"date";if(Re instanceof RegExp)return"regexp"}return ne}function Q(Re){var ne=V(Re);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function Te(Re){return!Re.constructor||!Re.constructor.name?R:Re.constructor.name}return M.checkPropTypes=d,M.PropTypes=M,M}}).call(l,s(5))},function(i,l){"use strict";function s(u){return function(){return u}}var m=function(){};m.thatReturns=s,m.thatReturnsFalse=s(!1),m.thatReturnsTrue=s(!0),m.thatReturnsNull=s(null),m.thatReturnsThis=function(){return this},m.thatReturnsArgument=function(u){return u},i.exports=m},function(i,l,s){(function(m){"use strict";var u=function(v){};m.env.NODE_ENV!=="production"&&(u=function(v){if(v===void 0)throw new Error("invariant requires an error message argument")});function f(p,v,h,d,b,y,w,S){if(u(v),!p){var O;if(v===void 0)O=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var R=[h,d,b,y,w,S],M=0;O=new Error(v.replace(/%s/g,function(){return R[M++]})),O.name="Invariant Violation"}throw O.framesToPop=1,O}}i.exports=f}).call(l,s(5))},function(i,l,s){(function(m){"use strict";var u=s(7),f=u;if(m.env.NODE_ENV!=="production"){var p=function(h){for(var d=arguments.length,b=Array(d>1?d-1:0),y=1;y<d;y++)b[y-1]=arguments[y];var w=0,S="Warning: "+h.replace(/%s/g,function(){return b[w++]});typeof console<"u"&&console.error(S);try{throw new Error(S)}catch{}};f=function(h,d){if(d===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(d.indexOf("Failed Composite propType: ")!==0&&!h){for(var b=arguments.length,y=Array(b>2?b-2:0),w=2;w<b;w++)y[w-2]=arguments[w];p.apply(void 0,[d].concat(y))}}}i.exports=f}).call(l,s(5))},function(i,l){/* object-assign (c) Sindre Sorhus @license MIT */"use strict";var s=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;function f(v){if(v==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(v)}function p(){try{if(!Object.assign)return!1;var v=new String("abc");if(v[5]="de",Object.getOwnPropertyNames(v)[0]==="5")return!1;for(var h={},d=0;d<10;d++)h["_"+String.fromCharCode(d)]=d;var b=Object.getOwnPropertyNames(h).map(function(w){return h[w]});if(b.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(w){y[w]=w}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}i.exports=p()?Object.assign:function(v,h){for(var d,b=f(v),y,w=1;w<arguments.length;w++){d=Object(arguments[w]);for(var S in d)m.call(d,S)&&(b[S]=d[S]);if(s){y=s(d);for(var O=0;O<y.length;O++)u.call(d,y[O])&&(b[y[O]]=d[y[O]])}}return b}},function(i,l){"use strict";var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";i.exports=s},function(i,l,s){(function(m){"use strict";if(m.env.NODE_ENV!=="production")var u=s(8),f=s(9),p=s(11),v={};function h(d,b,y,w,S){if(m.env.NODE_ENV!=="production"){for(var O in d)if(d.hasOwnProperty(O)){var R;try{u(typeof d[O]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",w||"React class",y,O,typeof d[O]),R=d[O](b,O,w,y,null,p)}catch(D){R=D}if(f(!R||R instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",w||"React class",y,O,typeof R),R instanceof Error&&!(R.message in v)){v[R.message]=!0;var M=S?S():"";f(!1,"Failed %s type: %s%s",y,R.message,M??"")}}}}i.exports=h}).call(l,s(5))},function(i,l,s){"use strict";var m=s(7),u=s(8),f=s(11);i.exports=function(){function p(d,b,y,w,S,O){O!==f&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}p.isRequired=p;function v(){return p}var h={array:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:v,element:p,instanceOf:v,node:p,objectOf:v,oneOf:v,oneOfType:v,shape:v,exact:v};return h.checkPropTypes=m,h.PropTypes=h,h}},function(i,l){i.exports=t(96540)},function(i,l){"use strict";var s=function(f,p){return f===p};function m(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,p=void 0,v=[],h=void 0,d=!1,b=function(S,O){return f(S,v[O])},y=function(){for(var S=arguments.length,O=Array(S),R=0;R<S;R++)O[R]=arguments[R];return d&&p===this&&O.length===v.length&&O.every(b)||(d=!0,p=this,v=O,h=u.apply(this,O)),h};return y}i.exports=m}])},52822:(J,g,t)=>{"use strict";t.d(g,{x:()=>H});var i=t(80045),l=t(82284),s=t(64467),m=t(96540),u=t(34915),f=t.n(u),p=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function v(V){var Q={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},Te=V.match(/<\/?([^\s]+?)[/\s>]/);if(Te&&(Q.name=Te[1],(f()[Te[1]]||V.charAt(V.length-2)==="/")&&(Q.voidElement=!0),Q.name.startsWith("!--"))){var Re=V.indexOf("-->");return{type:"comment",comment:Re!==-1?V.slice(4,Re):""}}for(var ne=new RegExp(p),pe=null;(pe=ne.exec(V))!==null;)if(pe[0].trim())if(pe[1]){var ye=pe[1].trim(),Se=[ye,""];ye.indexOf("=")>-1&&(Se=ye.split("=")),Q.attrs[Se[0]]=Se[1],ne.lastIndex--}else pe[2]&&(Q.attrs[pe[2]]=pe[3].trim().substring(1,pe[3].length-1));return Q}var h=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,b=Object.create(null);function y(V,Q){switch(Q.type){case"text":return V+Q.content;case"tag":return V+="<"+Q.name+(Q.attrs?function(Te){var Re=[];for(var ne in Te)Re.push(ne+'="'+Te[ne]+'"');return Re.length?" "+Re.join(" "):""}(Q.attrs):"")+(Q.voidElement?"/>":">"),Q.voidElement?V:V+Q.children.reduce(y,"")+"</"+Q.name+">";case"comment":return V+"<!--"+Q.comment+"-->"}}var w={parse:function(V,Q){Q||(Q={}),Q.components||(Q.components=b);var Te,Re=[],ne=[],pe=-1,ye=!1;if(V.indexOf("<")!==0){var Se=V.indexOf("<");Re.push({type:"text",content:Se===-1?V:V.substring(0,Se)})}return V.replace(h,function(Ae,Ee){if(ye){if(Ae!=="</"+Te.name+">")return;ye=!1}var xe,nt=Ae.charAt(1)!=="/",Tt=Ae.startsWith("<!--"),pt=Ee+Ae.length,Rt=V.charAt(pt);if(Tt){var tt=v(Ae);return pe<0?(Re.push(tt),Re):((xe=ne[pe]).children.push(tt),Re)}if(nt&&(pe++,(Te=v(Ae)).type==="tag"&&Q.components[Te.name]&&(Te.type="component",ye=!0),Te.voidElement||ye||!Rt||Rt==="<"||Te.children.push({type:"text",content:V.slice(pt,V.indexOf("<",pt))}),pe===0&&Re.push(Te),(xe=ne[pe-1])&&xe.children.push(Te),ne[pe]=Te),(!nt||Te.voidElement)&&(pe>-1&&(Te.voidElement||Te.name===Ae.slice(2,-1))&&(pe--,Te=pe===-1?Re:ne[pe]),!ye&&Rt!=="<"&&Rt)){xe=pe===-1?Re:ne[pe].children;var U=V.indexOf("<",pt),F=V.slice(pt,U===-1?void 0:U);d.test(F)&&(F=" "),(U>-1&&pe+xe.length>=0||F!==" ")&&xe.push({type:"text",content:F})}}),Re},stringify:function(V){return V.reduce(function(Q,Te){return Q+y("",Te)},"")}};const S=w;var O=t(65414);function R(){if(console&&console.warn){for(var V,Q=arguments.length,Te=new Array(Q),Re=0;Re<Q;Re++)Te[Re]=arguments[Re];typeof Te[0]=="string"&&(Te[0]="react-i18next:: ".concat(Te[0])),(V=console).warn.apply(V,Te)}}var M={};function D(){for(var V=arguments.length,Q=new Array(V),Te=0;Te<V;Te++)Q[Te]=arguments[Te];typeof Q[0]=="string"&&M[Q[0]]||(typeof Q[0]=="string"&&(M[Q[0]]=new Date),R.apply(void 0,Q))}function P(V,Q,Te){V.loadNamespaces(Q,function(){if(V.isInitialized)Te();else{var Re=function ne(){setTimeout(function(){V.off("initialized",ne)},0),Te()};V.on("initialized",Re)}})}function T(V,Q){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Re=Q.languages[0],ne=Q.options?Q.options.fallbackLng:!1,pe=Q.languages[Q.languages.length-1];if(Re.toLowerCase()==="cimode")return!0;var ye=function(Ae,Ee){var xe=Q.services.backendConnector.state["".concat(Ae,"|").concat(Ee)];return xe===-1||xe===2};return Te.bindI18n&&Te.bindI18n.indexOf("languageChanging")>-1&&Q.services.backendConnector.backend&&Q.isLanguageChangingTo&&!ye(Q.isLanguageChangingTo,V)?!1:!!(Q.hasResourceBundle(Re,V)||!Q.services.backendConnector.backend||Q.options.resources&&!Q.options.partialBundledLanguages||ye(Re,V)&&(!ne||ye(pe,V)))}function A(V,Q){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!Q.languages||!Q.languages.length)return D("i18n.languages were undefined or empty",Q.languages),!0;var Re=Q.options.ignoreJSONStructure!==void 0;return Re?Q.hasLoadedNamespace(V,{precheck:function(pe,ye){if(Te.bindI18n&&Te.bindI18n.indexOf("languageChanging")>-1&&pe.services.backendConnector.backend&&pe.isLanguageChangingTo&&!ye(pe.isLanguageChangingTo,V))return!1}}):T(V,Q,Te)}function j(V){return V.displayName||V.name||(typeof V=="string"&&V.length>0?V:"Unknown")}var ae=["format"],_=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function N(V,Q){var Te=Object.keys(V);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(V);Q&&(Re=Re.filter(function(ne){return Object.getOwnPropertyDescriptor(V,ne).enumerable})),Te.push.apply(Te,Re)}return Te}function W(V){for(var Q=1;Q<arguments.length;Q++){var Te=arguments[Q]!=null?arguments[Q]:{};Q%2?N(Object(Te),!0).forEach(function(Re){(0,s.A)(V,Re,Te[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(Te)):N(Object(Te)).forEach(function(Re){Object.defineProperty(V,Re,Object.getOwnPropertyDescriptor(Te,Re))})}return V}function he(V,Q){if(!V)return!1;var Te=V.props?V.props.children:V.children;return Q?Te.length>0:!!Te}function me(V){return V?V.props?V.props.children:V.children:[]}function fe(V){return Object.prototype.toString.call(V)!=="[object Array]"?!1:V.every(function(Q){return(0,m.isValidElement)(Q)})}function ve(V){return Array.isArray(V)?V:[V]}function ce(V,Q){var Te=W({},Q);return Te.props=Object.assign(V.props,Q.props),Te}function oe(V,Q){if(!V)return"";var Te="",Re=ve(V),ne=Q.transSupportBasicHtmlNodes&&Q.transKeepBasicHtmlNodesFor?Q.transKeepBasicHtmlNodesFor:[];return Re.forEach(function(pe,ye){if(typeof pe=="string")Te+="".concat(pe);else if((0,m.isValidElement)(pe)){var Se=Object.keys(pe.props).length,Ae=ne.indexOf(pe.type)>-1,Ee=pe.props.children;if(!Ee&&Ae&&Se===0)Te+="<".concat(pe.type,"/>");else if(!Ee&&(!Ae||Se!==0))Te+="<".concat(ye,"></").concat(ye,">");else if(pe.props.i18nIsDynamicList)Te+="<".concat(ye,"></").concat(ye,">");else if(Ae&&Se===1&&typeof Ee=="string")Te+="<".concat(pe.type,">").concat(Ee,"</").concat(pe.type,">");else{var xe=oe(Ee,Q);Te+="<".concat(ye,">").concat(xe,"</").concat(ye,">")}}else if(pe===null)R("Trans: the passed in value is invalid - seems you passed in a null child.");else if((0,l.A)(pe)==="object"){var nt=pe.format,Tt=(0,i.A)(pe,ae),pt=Object.keys(Tt);if(pt.length===1){var Rt=nt?"".concat(pt[0],", ").concat(nt):pt[0];Te+="{{".concat(Rt,"}}")}else R("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",pe)}else R("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",pe)}),Te}function re(V,Q,Te,Re,ne,pe){if(Q==="")return[];var ye=Re.transKeepBasicHtmlNodesFor||[],Se=Q&&new RegExp(ye.join("|")).test(Q);if(!V&&!Se)return[Q];var Ae={};function Ee(U){var F=ve(U);F.forEach(function(Y){typeof Y!="string"&&(he(Y)?Ee(me(Y)):(0,l.A)(Y)==="object"&&!(0,m.isValidElement)(Y)&&Object.assign(Ae,Y))})}Ee(V);var xe=S.parse("<0>".concat(Q,"</0>")),nt=W(W({},Ae),ne);function Tt(U,F,Y){var le=me(U),ke=Rt(le,F.children,Y);return fe(le)&&ke.length===0?le:ke}function pt(U,F,Y,le,ke){U.dummy&&(U.children=F),Y.push((0,m.cloneElement)(U,W(W({},U.props),{},{key:le}),ke?void 0:F))}function Rt(U,F,Y){var le=ve(U),ke=ve(F);return ke.reduce(function(Ye,ft,wt){var Ut=ft.children&&ft.children[0]&&ft.children[0].content&&Te.services.interpolator.interpolate(ft.children[0].content,nt,Te.language);if(ft.type==="tag"){var Ke=le[parseInt(ft.name,10)];!Ke&&Y.length===1&&Y[0][ft.name]&&(Ke=Y[0][ft.name]),Ke||(Ke={});var it=Object.keys(ft.attrs).length!==0?ce({props:ft.attrs},Ke):Ke,At=(0,m.isValidElement)(it),et=At&&he(ft,!0)&&!ft.voidElement,ee=Se&&(0,l.A)(it)==="object"&&it.dummy&&!At,I=(0,l.A)(V)==="object"&&V!==null&&Object.hasOwnProperty.call(V,ft.name);if(typeof it=="string"){var K=Te.services.interpolator.interpolate(it,nt,Te.language);Ye.push(K)}else if(he(it)||et){var ue=Tt(it,ft,Y);pt(it,ue,Ye,wt)}else if(ee){var De=Rt(le,ft.children,Y);Ye.push((0,m.cloneElement)(it,W(W({},it.props),{},{key:wt}),De))}else if(Number.isNaN(parseFloat(ft.name)))if(I){var He=Tt(it,ft,Y);pt(it,He,Ye,wt,ft.voidElement)}else if(Re.transSupportBasicHtmlNodes&&ye.indexOf(ft.name)>-1)if(ft.voidElement)Ye.push((0,m.createElement)(ft.name,{key:"".concat(ft.name,"-").concat(wt)}));else{var Fe=Rt(le,ft.children,Y);Ye.push((0,m.createElement)(ft.name,{key:"".concat(ft.name,"-").concat(wt)},Fe))}else if(ft.voidElement)Ye.push("<".concat(ft.name," />"));else{var ze=Rt(le,ft.children,Y);Ye.push("<".concat(ft.name,">").concat(ze,"</").concat(ft.name,">"))}else if((0,l.A)(it)==="object"&&!At){var qe=ft.children[0]?Ut:null;qe&&Ye.push(qe)}else ft.children.length===1&&Ut?Ye.push((0,m.cloneElement)(it,W(W({},it.props),{},{key:wt}),Ut)):Ye.push((0,m.cloneElement)(it,W(W({},it.props),{},{key:wt})))}else if(ft.type==="text"){var We=Re.transWrapTextNodes,_t=pe?Re.unescape(Te.services.interpolator.interpolate(ft.content,nt,Te.language)):Te.services.interpolator.interpolate(ft.content,nt,Te.language);We?Ye.push((0,m.createElement)(We,{key:"".concat(ft.name,"-").concat(wt)},_t)):Ye.push(_t)}return Ye},[])}var tt=Rt([{dummy:!0,children:V||[]}],xe,ve(V||[]));return me(tt[0])}function H(V){var Q=V.children,Te=V.count,Re=V.parent,ne=V.i18nKey,pe=V.context,ye=V.tOptions,Se=ye===void 0?{}:ye,Ae=V.values,Ee=V.defaults,xe=V.components,nt=V.ns,Tt=V.i18n,pt=V.t,Rt=V.shouldUnescape,tt=(0,i.A)(V,_),U=(0,m.useContext)(O.gJ)||{},F=U.i18n,Y=U.defaultNS,le=Tt||F||(0,O.TO)();if(!le)return D("You will need to pass in an i18next instance by using i18nextReactModule"),Q;var ke=pt||le.t.bind(le)||function(K){return K};pe&&(Se.context=pe);var Ye=W(W({},(0,O.rV)()),le.options&&le.options.react),ft=nt||ke.ns||Y||le.options&&le.options.defaultNS;ft=typeof ft=="string"?[ft]:ft||["translation"];var wt=Ee||oe(Q,Ye)||Ye.transEmptyNodeValue||ne,Ut=Ye.hashTransKey,Ke=ne||(Ut?Ut(wt):wt),it=Ae?Se.interpolation:{interpolation:W(W({},Se.interpolation),{},{prefix:"#$?",suffix:"?$#"})},At=W(W(W(W({},Se),{},{count:Te},Ae),it),{},{defaultValue:wt,ns:ft}),et=Ke?ke(Ke,At):wt,ee=re(xe||Q,et,le,Ye,At,Rt),I=Re!==void 0?Re:Ye.defaultTransParent;return I?(0,m.createElement)(I,tt,ee):ee}},65414:(J,g,t)=>{"use strict";t.d(g,{gJ:()=>w,rV:()=>O,TO:()=>D,r9:()=>P});var i=t(23029),l=t(92901),s=t(64467),m=t(96540),u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,f={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},p=function(ae){return f[ae]},v=function(ae){return ae.replace(u,p)};function h(j,ae){var _=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);ae&&(N=N.filter(function(W){return Object.getOwnPropertyDescriptor(j,W).enumerable})),_.push.apply(_,N)}return _}function d(j){for(var ae=1;ae<arguments.length;ae++){var _=arguments[ae]!=null?arguments[ae]:{};ae%2?h(Object(_),!0).forEach(function(N){(0,s.A)(j,N,_[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(_)):h(Object(_)).forEach(function(N){Object.defineProperty(j,N,Object.getOwnPropertyDescriptor(_,N))})}return j}var b={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:v},y,w=(0,m.createContext)();function S(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b=d(d({},b),j)}function O(){return b}var R=function(){function j(){(0,i.A)(this,j),this.usedNamespaces={}}return(0,l.A)(j,[{key:"addUsedNamespaces",value:function(_){var N=this;_.forEach(function(W){N.usedNamespaces[W]||(N.usedNamespaces[W]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),j}();function M(j){y=j}function D(){return y}var P={type:"3rdParty",init:function(ae){S(ae.options.react),M(ae)}};function T(j){return function(ae){return new Promise(function(_){var N=A();j.getInitialProps?j.getInitialProps(ae).then(function(W){_(d(d({},W),N))}):_(N)})}}function A(){var j=D(),ae=j.reportNamespaces?j.reportNamespaces.getUsedNamespaces():[],_={},N={};return j.languages.forEach(function(W){N[W]={},ae.forEach(function(he){N[W][he]=j.getResourceBundle(W,he)||{}})}),_.initialI18nStore=N,_.initialLanguage=j.language,_}},2209:(J,g,t)=>{"use strict";var i=t(49568),l="<<anonymous>>",s,m=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};m.isRequired=m;var u=function(){return m};s={listOf:u,mapOf:u,orderedMapOf:u,setOf:u,orderedSetOf:u,stackOf:u,iterableOf:u,recordOf:u,shape:u,contains:u,mapContains:u,orderedMapContains:u,list:m,map:m,orderedMap:m,set:m,orderedSet:m,stack:m,seq:m,record:m,iterable:m},s.iterable.indexed=h("Indexed",i.Iterable.isIndexed),s.iterable.keyed=h("Keyed",i.Iterable.isKeyed);function f(N){var W=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":N instanceof i.Iterable?"Immutable."+N.toSource().split(" ")[0]:W}function p(N){function W(me,fe,ve,ce,oe,re){for(var H=arguments.length,V=Array(H>6?H-6:0),Q=6;Q<H;Q++)V[Q-6]=arguments[Q];if(re=re||ve,ce=ce||l,fe[ve]==null){var Te=oe;if(me)return new Error("Required "+Te+" `"+re+"` was not specified in "+("`"+ce+"`."))}else return N.apply(void 0,[fe,ve,ce,oe,re].concat(V))}var he=W.bind(null,!1);return he.isRequired=W.bind(null,!0),he}function v(N,W){function he(me,fe,ve,ce,oe){var re=me[fe];if(!W(re)){var H=f(re);return new Error("Invalid "+ce+" `"+oe+"` of type `"+H+"` "+("supplied to `"+ve+"`, expected `"+N+"`."))}return null}return p(he)}function h(N,W){return v("Iterable."+N,function(he){return i.Iterable.isIterable(he)&&W(he)})}function d(N,W,he){function me(fe,ve,ce,oe,re){for(var H=arguments.length,V=Array(H>5?H-5:0),Q=5;Q<H;Q++)V[Q-5]=arguments[Q];var Te=fe[ve];if(!he(Te)){var Re=oe,ne=f(Te);return new Error("Invalid "+Re+" `"+re+"` of type "+("`"+ne+"` supplied to `"+ce+"`, expected an Immutable.js "+W+"."))}if(typeof N!="function")return new Error("Invalid typeChecker supplied to `"+ce+"` "+("for propType `"+re+"`, expected a function."));for(var pe=Te.valueSeq().toArray(),ye=0,Se=pe.length;ye<Se;ye++){var Ae=N.apply(void 0,[pe,ye,ce,oe,""+re+"["+ye+"]"].concat(V));if(Ae instanceof Error)return Ae}}return p(me)}function b(N){function W(he,me,fe,ve,ce){for(var oe=arguments.length,re=Array(oe>5?oe-5:0),H=5;H<oe;H++)re[H-5]=arguments[H];var V=he[me];if(typeof N!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+fe+"` "+("for propType `"+ce+"`, expected a function."));for(var Q=V.keySeq().toArray(),Te=0,Re=Q.length;Te<Re;Te++){var ne=N.apply(void 0,[Q,Te,fe,ve,""+ce+" -> key("+Q[Te]+")"].concat(re));if(ne instanceof Error)return ne}}return p(W)}function y(N){return d(N,"List",i.List.isList)}function w(N,W,he,me){function fe(){for(var ve=arguments.length,ce=Array(ve),oe=0;oe<ve;oe++)ce[oe]=arguments[oe];return d(N,he,me).apply(void 0,ce)||W&&b(W).apply(void 0,ce)}return p(fe)}function S(N,W){return w(N,W,"Map",i.Map.isMap)}function O(N,W){return w(N,W,"OrderedMap",i.OrderedMap.isOrderedMap)}function R(N){return d(N,"Set",i.Set.isSet)}function M(N){return d(N,"OrderedSet",i.OrderedSet.isOrderedSet)}function D(N){return d(N,"Stack",i.Stack.isStack)}function P(N){return d(N,"Iterable",i.Iterable.isIterable)}function T(N){function W(he,me,fe,ve,ce){for(var oe=arguments.length,re=Array(oe>5?oe-5:0),H=5;H<oe;H++)re[H-5]=arguments[H];var V=he[me];if(!(V instanceof i.Record)){var Q=f(V),Te=ve;return new Error("Invalid "+Te+" `"+ce+"` of type `"+Q+"` "+("supplied to `"+fe+"`, expected an Immutable.js Record."))}for(var Re in N){var ne=N[Re];if(ne){var pe=V.toObject(),ye=ne.apply(void 0,[pe,Re,fe,ve,""+ce+"."+Re].concat(re));if(ye)return ye}}}return p(W)}function A(N){var W=arguments[1]===void 0?"Iterable":arguments[1],he=arguments[2]===void 0?i.Iterable.isIterable:arguments[2];function me(fe,ve,ce,oe,re){for(var H=arguments.length,V=Array(H>5?H-5:0),Q=5;Q<H;Q++)V[Q-5]=arguments[Q];var Te=fe[ve];if(!he(Te)){var Re=f(Te),ne=oe;return new Error("Invalid "+ne+" `"+re+"` of type `"+Re+"` "+("supplied to `"+ce+"`, expected an Immutable.js "+W+"."))}var pe=Te.toObject();for(var ye in N){var Se=N[ye];if(Se){var Ae=Se.apply(void 0,[pe,ye,ce,oe,""+re+"."+ye].concat(V));if(Ae)return Ae}}}return p(me)}function j(N){return A(N)}function ae(N){return A(N,"Map",i.Map.isMap)}function _(N){return A(N,"OrderedMap",i.OrderedMap.isOrderedMap)}J.exports=s},8867:(J,g,t)=>{"use strict";t.r(g),t.d(g,{cacheStore:()=>me,default:()=>ve});var i=t(96540),l=function(ce,oe){var re=typeof Symbol=="function"&&ce[Symbol.iterator];if(!re)return ce;var H=re.call(ce),V,Q=[],Te;try{for(;(oe===void 0||oe-- >0)&&!(V=H.next()).done;)Q.push(V.value)}catch(Re){Te={error:Re}}finally{try{V&&!V.done&&(re=H.return)&&re.call(H)}finally{if(Te)throw Te.error}}return Q},s=function(ce){var oe=ce.split(/ ?; ?/);return oe.reduce(function(re,H){var V=l(H.split(/ ?: ?/),2),Q=V[0],Te=V[1];return Q&&Te&&(re[Q.replace(/-(\w)/g,function(Re,ne){return ne.toUpperCase()})]=Number.isNaN(Number(Te))?Te:Number(Te)),re},{})};function m(ce){ce===void 0&&(ce=6);for(var oe="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",re="",H=ce;H>0;--H)re+=oe[Math.round(Math.random()*(oe.length-1))];return re}var u=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],f={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"},p=function(){return p=Object.assign||function(ce){for(var oe,re=1,H=arguments.length;re<H;re++){oe=arguments[re];for(var V in oe)Object.prototype.hasOwnProperty.call(oe,V)&&(ce[V]=oe[V])}return ce},p.apply(this,arguments)},v=function(ce,oe){var re=typeof Symbol=="function"&&ce[Symbol.iterator];if(!re)return ce;var H=re.call(ce),V,Q=[],Te;try{for(;(oe===void 0||oe-- >0)&&!(V=H.next()).done;)Q.push(V.value)}catch(Re){Te={error:Re}}finally{try{V&&!V.done&&(re=H.return)&&re.call(H)}finally{if(Te)throw Te.error}}return Q},h=function(ce,oe,re){if(re||arguments.length===2)for(var H=0,V=oe.length,Q;H<V;H++)(Q||!(H in oe))&&(Q||(Q=Array.prototype.slice.call(oe,0,H)),Q[H]=oe[H]);return ce.concat(Q||Array.prototype.slice.call(oe))};function d(ce,oe){var re={key:oe};if(ce instanceof Element){var H=ce.getAttribute("class");H&&(re.className=H),h([],v(ce.attributes),!1).forEach(function(V){switch(V.name){case"class":break;case"style":re[V.name]=s(V.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":re[f[V.name]||V.name]=!0;break;default:re[f[V.name]||V.name]=V.value}})}return re}function b(ce,oe,re){var H=h([],v(ce),!1).map(function(V,Q){return w(V,p(p({},re),{index:Q,level:oe+1}))}).filter(Boolean);return H.length?H:null}function y(ce){return/[a-z]+[A-Z]+[a-z]+/.test(ce)?ce:ce.toLowerCase()}function w(ce,oe){var re;if(oe===void 0&&(oe={}),!ce||!(ce instanceof Node))return null;var H=oe.actions,V=H===void 0?[]:H,Q=oe.index,Te=Q===void 0?0:Q,Re=oe.level,ne=Re===void 0?0:Re,pe=oe.randomKey,ye=ce,Se="".concat(ne,"-").concat(Te),Ae=[];if(pe&&ne===0&&(Se="".concat(m(),"-").concat(Se)),Array.isArray(V)&&V.forEach(function(nt){nt.condition(ye,Se,ne)&&(typeof nt.pre=="function"&&(ye=nt.pre(ye,Se,ne),ye instanceof Node||(ye=ce)),typeof nt.post=="function"&&Ae.push(nt.post(ye,Se,ne)))}),Ae.length)return Ae;switch(ye.nodeType){case 1:return i.createElement(y(ye.nodeName),d(ye,Se),b(ye.childNodes,ne,oe));case 3:{var Ee=((re=ye.nodeValue)===null||re===void 0?void 0:re.toString())||"";if(/^\s+$/.test(Ee)&&!/[\u00A0\u202F]/.test(Ee))return null;if(!ye.parentNode)return Ee;var xe=ye.parentNode.nodeName.toLowerCase();return u.includes(xe)?(/\S/.test(Ee)&&console.warn("A textNode is not allowed inside '".concat(xe,`'. Your text "`).concat(Ee,'" will be ignored')),null):Ee}case 8:return null;default:return null}}function S(ce,oe){if(oe===void 0&&(oe={}),!ce||typeof ce!="string")return null;var re=oe.nodeOnly,H=re===void 0?!1:re,V=oe.selector,Q=V===void 0?"body > *":V,Te=oe.type,Re=Te===void 0?"text/html":Te;try{var ne=new DOMParser,pe=ne.parseFromString(ce,Re),ye=pe.querySelector(Q);if(!(ye instanceof Node))throw new TypeError("Error parsing input");return H?ye:w(ye,oe)}catch{}return null}function O(ce,oe){return oe===void 0&&(oe={}),typeof ce=="string"?S(ce,oe):ce instanceof Node?w(ce,oe):null}var R=t(50411),M={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function D(){return R.canUseDOM}function P(){return T()&&typeof window<"u"&&window!==null}function T(){if(!document)return!1;var ce=document.createElement("div");ce.innerHTML="<svg />";var oe=ce.firstChild;return!!oe&&oe.namespaceURI==="http://www.w3.org/2000/svg"}function A(ce){return ce[Math.floor(Math.random()*ce.length)]}function j(ce){for(var oe="abcdefghijklmnopqrstuvwxyz",re="1234567890",H="".concat(oe).concat(oe.toUpperCase()).concat(re),V="",Q=0;Q<ce;Q++)V+=A(H);return V}function ae(ce){for(var oe=[],re=1;re<arguments.length;re++)oe[re-1]=arguments[re];var H={};for(var V in ce)({}).hasOwnProperty.call(ce,V)&&(oe.includes(V)||(H[V]=ce[V]));return H}var _=function(){var ce=function(oe,re){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,V){H.__proto__=V}||function(H,V){for(var Q in V)Object.prototype.hasOwnProperty.call(V,Q)&&(H[Q]=V[Q])},ce(oe,re)};return function(oe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Class extends value "+String(re)+" is not a constructor or null");ce(oe,re);function H(){this.constructor=oe}oe.prototype=re===null?Object.create(re):(H.prototype=re.prototype,new H)}}(),N=function(){return N=Object.assign||function(ce){for(var oe,re=1,H=arguments.length;re<H;re++){oe=arguments[re];for(var V in oe)Object.prototype.hasOwnProperty.call(oe,V)&&(ce[V]=oe[V])}return ce},N.apply(this,arguments)},W=function(ce,oe){var re=typeof Symbol=="function"&&ce[Symbol.iterator];if(!re)return ce;var H=re.call(ce),V,Q=[],Te;try{for(;(oe===void 0||oe-- >0)&&!(V=H.next()).done;)Q.push(V.value)}catch(Re){Te={error:Re}}finally{try{V&&!V.done&&(re=H.return)&&re.call(H)}finally{if(Te)throw Te.error}}return Q},he=function(ce,oe,re){if(re||arguments.length===2)for(var H=0,V=oe.length,Q;H<V;H++)(Q||!(H in oe))&&(Q||(Q=Array.prototype.slice.call(oe,0,H)),Q[H]=oe[H]);return ce.concat(Q||Array.prototype.slice.call(oe))},me=Object.create(null),fe=function(ce){_(oe,ce);function oe(re){var H=ce.call(this,re)||this;return Object.defineProperty(H,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(H,"isActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(H,"hash",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(H,"handleLoad",{enumerable:!0,configurable:!0,writable:!0,value:function(V,Q){Q===void 0&&(Q=!1),H.isActive&&H.setState({content:V,hasCache:Q,status:M.LOADED},H.getElement)}}),Object.defineProperty(H,"handleError",{enumerable:!0,configurable:!0,writable:!0,value:function(V){var Q=H.props.onError,Te=V.message==="Browser does not support SVG"?M.UNSUPPORTED:M.FAILED;H.isActive&&H.setState({status:Te},function(){typeof Q=="function"&&Q(V)})}}),Object.defineProperty(H,"request",{enumerable:!0,configurable:!0,writable:!0,value:function(){var V=H.props,Q=V.cacheRequests,Te=V.fetchOptions,Re=V.src;try{return Q&&(me[Re]={content:"",status:M.LOADING}),fetch(Re,Te).then(function(ne){var pe=ne.headers.get("content-type"),ye=W((pe||"").split(/ ?; ?/),1),Se=ye[0];if(ne.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(function(Ae){return Se.includes(Ae)}))throw new Error("Content type isn't valid: ".concat(Se));return ne.text()}).then(function(ne){var pe=H.props.src;if(Re!==pe){me[Re].status===M.LOADING&&delete me[Re];return}if(H.handleLoad(ne),Q){var ye=me[Re];ye&&(ye.content=ne,ye.status=M.LOADED)}}).catch(function(ne){if(H.handleError(ne),Q){var pe=me[Re];pe&&delete me[Re]}})}catch(ne){return H.handleError(new Error(ne.message))}}}),H.state={content:"",element:null,hasCache:!!re.cacheRequests&&!!me[re.src],status:M.PENDING},H.hash=re.uniqueHash||j(8),H}return Object.defineProperty(oe.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isActive=!0,!(!D()||this.isInitialized)){var re=this.state.status,H=this.props.src;try{if(re===M.PENDING){if(!P())throw new Error("Browser does not support SVG");if(!H)throw new Error("Missing src");this.load()}}catch(V){this.handleError(V)}this.isInitialized=!0}}}),Object.defineProperty(oe.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(re,H){if(D()){var V=this.state,Q=V.hasCache,Te=V.status,Re=this.props,ne=Re.onLoad,pe=Re.src;if(H.status!==M.READY&&Te===M.READY&&ne&&ne(pe,Q),re.src!==pe){if(!pe){this.handleError(new Error("Missing src"));return}this.load()}}}}),Object.defineProperty(oe.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isActive=!1}}),Object.defineProperty(oe.prototype,"getNode",{enumerable:!1,configurable:!0,writable:!0,value:function(){var re=this.props,H=re.description,V=re.title;try{var Q=this.processSVG(),Te=O(Q,{nodeOnly:!0});if(!Te||!(Te instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");var Re=this.updateSVGAttributes(Te);if(H){var ne=Re.querySelector("desc");ne&&ne.parentNode&&ne.parentNode.removeChild(ne);var pe=document.createElementNS("http://www.w3.org/2000/svg","desc");pe.innerHTML=H,Re.prepend(pe)}if(typeof V<"u"){var ye=Re.querySelector("title");if(ye&&ye.parentNode&&ye.parentNode.removeChild(ye),V){var Se=document.createElementNS("http://www.w3.org/2000/svg","title");Se.innerHTML=V,Re.prepend(Se)}}return Re}catch(Ae){return this.handleError(Ae)}}}),Object.defineProperty(oe.prototype,"getElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){try{var re=this.getNode(),H=O(re);if(!H||!i.isValidElement(H))throw new Error("Could not convert the src to a React element");this.setState({element:H,status:M.READY})}catch(V){this.handleError(new Error(V.message))}}}),Object.defineProperty(oe.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var re=this;this.isActive&&this.setState({content:"",element:null,hasCache:!1,status:M.LOADING},function(){var H=re.props,V=H.cacheRequests,Q=H.src,Te=V&&me[Q];if(Te&&Te.status===M.LOADED){re.handleLoad(Te.content,!0);return}var Re=Q.match(/data:image\/svg[^,]*?(;base64)?,(.*)/),ne;if(Re?ne=Re[1]?window.atob(Re[2]):decodeURIComponent(Re[2]):Q.includes("<svg")&&(ne=Q),ne){re.handleLoad(ne);return}re.request()})}}),Object.defineProperty(oe.prototype,"updateSVGAttributes",{enumerable:!1,configurable:!0,writable:!0,value:function(re){var H=this,V=this.props,Q=V.baseURL,Te=Q===void 0?"":Q,Re=V.uniquifyIDs,ne=["id","href","xlink:href","xlink:role","xlink:arcrole"],pe=["href","xlink:href"],ye=function(Se,Ae){return pe.includes(Se)&&(Ae?!Ae.includes("#"):!1)};return Re&&he([],W(re.children),!1).map(function(Se){if(Se.attributes&&Se.attributes.length){var Ae=Object.values(Se.attributes).map(function(Ee){var xe=Ee,nt=Ee.value.match(/url\((.*?)\)/);return nt&&nt[1]&&(xe.value=Ee.value.replace(nt[0],"url(".concat(Te).concat(nt[1],"__").concat(H.hash,")"))),xe});ne.forEach(function(Ee){var xe=Ae.find(function(nt){return nt.name===Ee});xe&&!ye(Ee,xe.value)&&(xe.value="".concat(xe.value,"__").concat(H.hash))})}return Se.children.length?H.updateSVGAttributes(Se):Se}),re}}),Object.defineProperty(oe.prototype,"processSVG",{enumerable:!1,configurable:!0,writable:!0,value:function(){var re=this.state.content,H=this.props.preProcessor;return H?H(re):re}}),Object.defineProperty(oe.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var re=this.state,H=re.element,V=re.status,Q=this.props,Te=Q.children,Re=Te===void 0?null:Te,ne=Q.innerRef,pe=Q.loader,ye=pe===void 0?null:pe,Se=ae(this.props,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return D()?H?i.cloneElement(H,N({ref:ne},Se)):[M.UNSUPPORTED,M.FAILED].includes(V)?Re:ye:ye}}),Object.defineProperty(oe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{cacheRequests:!0,uniquifyIDs:!1}}),oe}(i.PureComponent);const ve=fe},22799:(J,g)=>{"use strict";var t;/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),v=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function R(M){if(typeof M=="object"&&M!==null){var D=M.$$typeof;switch(D){case i:switch(M=M.type,M){case s:case u:case m:case d:case b:return M;default:switch(M=M&&M.$$typeof,M){case v:case p:case h:case w:case y:case f:return M;default:return D}}case l:return D}}}t=p,t=f,t=i,t=h,t=s,t=w,t=y,t=l,t=u,t=m,t=d,t=b,t=function(){return!1},t=function(){return!1},g.isContextConsumer=function(M){return R(M)===p},t=function(M){return R(M)===f},t=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===i},t=function(M){return R(M)===h},g.isFragment=function(M){return R(M)===s},t=function(M){return R(M)===w},g.isMemo=function(M){return R(M)===y},t=function(M){return R(M)===l},t=function(M){return R(M)===u},t=function(M){return R(M)===m},t=function(M){return R(M)===d},t=function(M){return R(M)===b},t=function(M){return typeof M=="string"||typeof M=="function"||M===s||M===u||M===m||M===d||M===b||M===S||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===y||M.$$typeof===f||M.$$typeof===p||M.$$typeof===h||M.$$typeof===O||M.getModuleId!==void 0)},t=R},44363:(J,g,t)=>{"use strict";J.exports=t(22799)},71345:(J,g,t)=>{"use strict";t.d(g,{M:()=>m});function i(){var u=this.constructor.getDerivedStateFromProps(this.props,this.state);u!=null&&this.setState(u)}function l(u){function f(p){var v=this.constructor.getDerivedStateFromProps(u,p);return v??null}this.setState(f.bind(this))}function s(u,f){try{var p=this.props,v=this.state;this.props=u,this.state=f,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(p,v)}finally{this.props=p,this.state=v}}i.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0;function m(u){var f=u.prototype;if(!f||!f.isReactComponent)throw new Error("Can only polyfill class components");if(typeof u.getDerivedStateFromProps!="function"&&typeof f.getSnapshotBeforeUpdate!="function")return u;var p=null,v=null,h=null;if(typeof f.componentWillMount=="function"?p="componentWillMount":typeof f.UNSAFE_componentWillMount=="function"&&(p="UNSAFE_componentWillMount"),typeof f.componentWillReceiveProps=="function"?v="componentWillReceiveProps":typeof f.UNSAFE_componentWillReceiveProps=="function"&&(v="UNSAFE_componentWillReceiveProps"),typeof f.componentWillUpdate=="function"?h="componentWillUpdate":typeof f.UNSAFE_componentWillUpdate=="function"&&(h="UNSAFE_componentWillUpdate"),p!==null||v!==null||h!==null){var d=u.displayName||u.name,b=typeof u.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+d+" uses "+b+" but also contains the following legacy lifecycles:"+(p!==null?` `+p:"")+(v!==null?` `+v:"")+(h!==null?` `+h:"")+` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof u.getDerivedStateFromProps=="function"&&(f.componentWillMount=i,f.componentWillReceiveProps=l),typeof f.getSnapshotBeforeUpdate=="function"){if(typeof f.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");f.componentWillUpdate=s;var y=f.componentDidUpdate;f.componentDidUpdate=function(S,O,R){var M=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:R;y.call(this,S,O,M)}}return u}},16802:(J,g,t)=>{"use strict";t.d(g,{kr:()=>l,mS:()=>m});var i=t(96540),l=i.createContext(),s=i.createContext();function m(u){var f=u.children,p=i.useState(null),v=p[0],h=p[1],d=i.useRef(!1);i.useEffect(function(){return function(){d.current=!0}},[]);var b=i.useCallback(function(y){d.current||h(y)},[]);return i.createElement(l.Provider,{value:v},i.createElement(s.Provider,{value:b},f))}},69703:(J,g,t)=>{"use strict";t.d(g,{N:()=>v});var i=t(96540),l=t(16802),s=t(13316),m=t(39522),u=function(){},f=function(){return Promise.resolve(null)},p=[];function v(h){var d=h.placement,b=d===void 0?"bottom":d,y=h.strategy,w=y===void 0?"absolute":y,S=h.modifiers,O=S===void 0?p:S,R=h.referenceElement,M=h.onFirstUpdate,D=h.innerRef,P=h.children,T=i.useContext(l.kr),A=i.useState(null),j=A[0],ae=A[1],_=i.useState(null),N=_[0],W=_[1];i.useEffect(function(){(0,s.cZ)(D,j)},[D,j]);var he=i.useMemo(function(){return{placement:b,strategy:w,onFirstUpdate:M,modifiers:[].concat(O,[{name:"arrow",enabled:N!=null,options:{element:N}}])}},[b,w,M,O,N]),me=(0,m.E)(R||T,j,he),fe=me.state,ve=me.styles,ce=me.forceUpdate,oe=me.update,re=i.useMemo(function(){return{ref:ae,style:ve.popper,placement:fe?fe.placement:b,hasPopperEscaped:fe&&fe.modifiersData.hide?fe.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:fe&&fe.modifiersData.hide?fe.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:ve.arrow,ref:W},forceUpdate:ce||u,update:oe||f}},[ae,W,b,fe,ve,oe,ce]);return(0,s.vq)(P)(re)}},39522:(J,g,t)=>{"use strict";t.d(g,{E:()=>Gr});var i=t(96540),l=t(40961);function s(un){if(un==null)return window;if(un.toString()!=="[object Window]"){var qn=un.ownerDocument;return qn&&qn.defaultView||window}return un}function m(un){var qn=s(un).Element;return un instanceof qn||un instanceof Element}function u(un){var qn=s(un).HTMLElement;return un instanceof qn||un instanceof HTMLElement}function f(un){if(typeof ShadowRoot>"u")return!1;var qn=s(un).ShadowRoot;return un instanceof qn||un instanceof ShadowRoot}var p=Math.max,v=Math.min,h=Math.round;function d(){var un=navigator.userAgentData;return un!=null&&un.brands&&Array.isArray(un.brands)?un.brands.map(function(qn){return qn.brand+"/"+qn.version}).join(" "):navigator.userAgent}function b(){return!/^((?!chrome|android).)*safari/i.test(d())}function y(un,qn,kn){qn===void 0&&(qn=!1),kn===void 0&&(kn=!1);var St=un.getBoundingClientRect(),ln=1,An=1;qn&&u(un)&&(ln=un.offsetWidth>0&&h(St.width)/un.offsetWidth||1,An=un.offsetHeight>0&&h(St.height)/un.offsetHeight||1);var Cr=m(un)?s(un):window,_i=Cr.visualViewport,Sn=!b()&&kn,ir=(St.left+(Sn&&_i?_i.offsetLeft:0))/ln,mt=(St.top+(Sn&&_i?_i.offsetTop:0))/An,fn=St.width/ln,gt=St.height/An;return{width:fn,height:gt,top:mt,right:ir+fn,bottom:mt+gt,left:ir,x:ir,y:mt}}function w(un){var qn=s(un),kn=qn.pageXOffset,St=qn.pageYOffset;return{scrollLeft:kn,scrollTop:St}}function S(un){return{scrollLeft:un.scrollLeft,scrollTop:un.scrollTop}}function O(un){return un===s(un)||!u(un)?w(un):S(un)}function R(un){return un?(un.nodeName||"").toLowerCase():null}function M(un){return((m(un)?un.ownerDocument:un.document)||window.document).documentElement}function D(un){return y(M(un)).left+w(un).scrollLeft}function P(un){return s(un).getComputedStyle(un)}function T(un){var qn=P(un),kn=qn.overflow,St=qn.overflowX,ln=qn.overflowY;return/auto|scroll|overlay|hidden/.test(kn+ln+St)}function A(un){var qn=un.getBoundingClientRect(),kn=h(qn.width)/un.offsetWidth||1,St=h(qn.height)/un.offsetHeight||1;return kn!==1||St!==1}function j(un,qn,kn){kn===void 0&&(kn=!1);var St=u(qn),ln=u(qn)&&A(qn),An=M(qn),Cr=y(un,ln,kn),_i={scrollLeft:0,scrollTop:0},Sn={x:0,y:0};return(St||!St&&!kn)&&((R(qn)!=="body"||T(An))&&(_i=O(qn)),u(qn)?(Sn=y(qn,!0),Sn.x+=qn.clientLeft,Sn.y+=qn.clientTop):An&&(Sn.x=D(An))),{x:Cr.left+_i.scrollLeft-Sn.x,y:Cr.top+_i.scrollTop-Sn.y,width:Cr.width,height:Cr.height}}function ae(un){var qn=y(un),kn=un.offsetWidth,St=un.offsetHeight;return Math.abs(qn.width-kn)<=1&&(kn=qn.width),Math.abs(qn.height-St)<=1&&(St=qn.height),{x:un.offsetLeft,y:un.offsetTop,width:kn,height:St}}function _(un){return R(un)==="html"?un:un.assignedSlot||un.parentNode||(f(un)?un.host:null)||M(un)}function N(un){return["html","body","#document"].indexOf(R(un))>=0?un.ownerDocument.body:u(un)&&T(un)?un:N(_(un))}function W(un,qn){var kn;qn===void 0&&(qn=[]);var St=N(un),ln=St===((kn=un.ownerDocument)==null?void 0:kn.body),An=s(St),Cr=ln?[An].concat(An.visualViewport||[],T(St)?St:[]):St,_i=qn.concat(Cr);return ln?_i:_i.concat(W(_(Cr)))}function he(un){return["table","td","th"].indexOf(R(un))>=0}function me(un){return!u(un)||P(un).position==="fixed"?null:un.offsetParent}function fe(un){var qn=/firefox/i.test(d()),kn=/Trident/i.test(d());if(kn&&u(un)){var St=P(un);if(St.position==="fixed")return null}var ln=_(un);for(f(ln)&&(ln=ln.host);u(ln)&&["html","body"].indexOf(R(ln))<0;){var An=P(ln);if(An.transform!=="none"||An.perspective!=="none"||An.contain==="paint"||["transform","perspective"].indexOf(An.willChange)!==-1||qn&&An.willChange==="filter"||qn&&An.filter&&An.filter!=="none")return ln;ln=ln.parentNode}return null}function ve(un){for(var qn=s(un),kn=me(un);kn&&he(kn)&&P(kn).position==="static";)kn=me(kn);return kn&&(R(kn)==="html"||R(kn)==="body"&&P(kn).position==="static")?qn:kn||fe(un)||qn}var ce="top",oe="bottom",re="right",H="left",V="auto",Q=[ce,oe,re,H],Te="start",Re="end",ne="clippingParents",pe="viewport",ye="popper",Se="reference",Ae=Q.reduce(function(un,qn){return un.concat([qn+"-"+Te,qn+"-"+Re])},[]),Ee=[].concat(Q,[V]).reduce(function(un,qn){return un.concat([qn,qn+"-"+Te,qn+"-"+Re])},[]),xe="beforeRead",nt="read",Tt="afterRead",pt="beforeMain",Rt="main",tt="afterMain",U="beforeWrite",F="write",Y="afterWrite",le=[xe,nt,Tt,pt,Rt,tt,U,F,Y];function ke(un){var qn=new Map,kn=new Set,St=[];un.forEach(function(An){qn.set(An.name,An)});function ln(An){kn.add(An.name);var Cr=[].concat(An.requires||[],An.requiresIfExists||[]);Cr.forEach(function(_i){if(!kn.has(_i)){var Sn=qn.get(_i);Sn&&ln(Sn)}}),St.push(An)}return un.forEach(function(An){kn.has(An.name)||ln(An)}),St}function Ye(un){var qn=ke(un);return le.reduce(function(kn,St){return kn.concat(qn.filter(function(ln){return ln.phase===St}))},[])}function ft(un){var qn;return function(){return qn||(qn=new Promise(function(kn){Promise.resolve().then(function(){qn=void 0,kn(un())})})),qn}}function wt(un){var qn=un.reduce(function(kn,St){var ln=kn[St.name];return kn[St.name]=ln?Object.assign({},ln,St,{options:Object.assign({},ln.options,St.options),data:Object.assign({},ln.data,St.data)}):St,kn},{});return Object.keys(qn).map(function(kn){return qn[kn]})}var Ut={placement:"bottom",modifiers:[],strategy:"absolute"};function Ke(){for(var un=arguments.length,qn=new Array(un),kn=0;kn<un;kn++)qn[kn]=arguments[kn];return!qn.some(function(St){return!(St&&typeof St.getBoundingClientRect=="function")})}function it(un){un===void 0&&(un={});var qn=un,kn=qn.defaultModifiers,St=kn===void 0?[]:kn,ln=qn.defaultOptions,An=ln===void 0?Ut:ln;return function(_i,Sn,ir){ir===void 0&&(ir=An);var mt={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ut,An),modifiersData:{},elements:{reference:_i,popper:Sn},attributes:{},styles:{}},fn=[],gt=!1,tn={state:mt,setOptions:function(Pr){var zr=typeof Pr=="function"?Pr(mt.options):Pr;Ur(),mt.options=Object.assign({},An,mt.options,zr),mt.scrollParents={reference:m(_i)?W(_i):_i.contextElement?W(_i.contextElement):[],popper:W(Sn)};var gi=Ye(wt([].concat(St,mt.options.modifiers)));return mt.orderedModifiers=gi.filter(function($i){return $i.enabled}),Vn(),tn.update()},forceUpdate:function(){if(!gt){var Pr=mt.elements,zr=Pr.reference,gi=Pr.popper;if(Ke(zr,gi)){mt.rects={reference:j(zr,ve(gi),mt.options.strategy==="fixed"),popper:ae(gi)},mt.reset=!1,mt.placement=mt.options.placement,mt.orderedModifiers.forEach(function(So){return mt.modifiersData[So.name]=Object.assign({},So.data)});for(var $i=0;$i<mt.orderedModifiers.length;$i++){if(mt.reset===!0){mt.reset=!1,$i=-1;continue}var eo=mt.orderedModifiers[$i],ki=eo.fn,so=eo.options,Ho=so===void 0?{}:so,ra=eo.name;typeof ki=="function"&&(mt=ki({state:mt,options:Ho,name:ra,instance:tn})||mt)}}}},update:ft(function(){return new Promise(function($r){tn.forceUpdate(),$r(mt)})}),destroy:function(){Ur(),gt=!0}};if(!Ke(_i,Sn))return tn;tn.setOptions(ir).then(function($r){!gt&&ir.onFirstUpdate&&ir.onFirstUpdate($r)});function Vn(){mt.orderedModifiers.forEach(function($r){var Pr=$r.name,zr=$r.options,gi=zr===void 0?{}:zr,$i=$r.effect;if(typeof $i=="function"){var eo=$i({state:mt,name:Pr,instance:tn,options:gi}),ki=function(){};fn.push(eo||ki)}})}function Ur(){fn.forEach(function($r){return $r()}),fn=[]}return tn}}var At=null,et={passive:!0};function ee(un){var qn=un.state,kn=un.instance,St=un.options,ln=St.scroll,An=ln===void 0?!0:ln,Cr=St.resize,_i=Cr===void 0?!0:Cr,Sn=s(qn.elements.popper),ir=[].concat(qn.scrollParents.reference,qn.scrollParents.popper);return An&&ir.forEach(function(mt){mt.addEventListener("scroll",kn.update,et)}),_i&&Sn.addEventListener("resize",kn.update,et),function(){An&&ir.forEach(function(mt){mt.removeEventListener("scroll",kn.update,et)}),_i&&Sn.removeEventListener("resize",kn.update,et)}}const I={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ee,data:{}};function K(un){return un.split("-")[0]}function ue(un){return un.split("-")[1]}function De(un){return["top","bottom"].indexOf(un)>=0?"x":"y"}function He(un){var qn=un.reference,kn=un.element,St=un.placement,ln=St?K(St):null,An=St?ue(St):null,Cr=qn.x+qn.width/2-kn.width/2,_i=qn.y+qn.height/2-kn.height/2,Sn;switch(ln){case ce:Sn={x:Cr,y:qn.y-kn.height};break;case oe:Sn={x:Cr,y:qn.y+qn.height};break;case re:Sn={x:qn.x+qn.width,y:_i};break;case H:Sn={x:qn.x-kn.width,y:_i};break;default:Sn={x:qn.x,y:qn.y}}var ir=ln?De(ln):null;if(ir!=null){var mt=ir==="y"?"height":"width";switch(An){case Te:Sn[ir]=Sn[ir]-(qn[mt]/2-kn[mt]/2);break;case Re:Sn[ir]=Sn[ir]+(qn[mt]/2-kn[mt]/2);break;default:}}return Sn}function Fe(un){var qn=un.state,kn=un.name;qn.modifiersData[kn]=He({reference:qn.rects.reference,element:qn.rects.popper,strategy:"absolute",placement:qn.placement})}const ze={name:"popperOffsets",enabled:!0,phase:"read",fn:Fe,data:{}};var qe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function We(un,qn){var kn=un.x,St=un.y,ln=qn.devicePixelRatio||1;return{x:h(kn*ln)/ln||0,y:h(St*ln)/ln||0}}function _t(un){var qn,kn=un.popper,St=un.popperRect,ln=un.placement,An=un.variation,Cr=un.offsets,_i=un.position,Sn=un.gpuAcceleration,ir=un.adaptive,mt=un.roundOffsets,fn=un.isFixed,gt=Cr.x,tn=gt===void 0?0:gt,Vn=Cr.y,Ur=Vn===void 0?0:Vn,$r=typeof mt=="function"?mt({x:tn,y:Ur}):{x:tn,y:Ur};tn=$r.x,Ur=$r.y;var Pr=Cr.hasOwnProperty("x"),zr=Cr.hasOwnProperty("y"),gi=H,$i=ce,eo=window;if(ir){var ki=ve(kn),so="clientHeight",Ho="clientWidth";if(ki===s(kn)&&(ki=M(kn),P(ki).position!=="static"&&_i==="absolute"&&(so="scrollHeight",Ho="scrollWidth")),ki=ki,ln===ce||(ln===H||ln===re)&&An===Re){$i=oe;var ra=fn&&ki===eo&&eo.visualViewport?eo.visualViewport.height:ki[so];Ur-=ra-St.height,Ur*=Sn?1:-1}if(ln===H||(ln===ce||ln===oe)&&An===Re){gi=re;var So=fn&&ki===eo&&eo.visualViewport?eo.visualViewport.width:ki[Ho];tn-=So-St.width,tn*=Sn?1:-1}}var gr=Object.assign({position:_i},ir&&qe),di=mt===!0?We({x:tn,y:Ur},s(kn)):{x:tn,y:Ur};if(tn=di.x,Ur=di.y,Sn){var Vi;return Object.assign({},gr,(Vi={},Vi[$i]=zr?"0":"",Vi[gi]=Pr?"0":"",Vi.transform=(eo.devicePixelRatio||1)<=1?"translate("+tn+"px, "+Ur+"px)":"translate3d("+tn+"px, "+Ur+"px, 0)",Vi))}return Object.assign({},gr,(qn={},qn[$i]=zr?Ur+"px":"",qn[gi]=Pr?tn+"px":"",qn.transform="",qn))}function ct(un){var qn=un.state,kn=un.options,St=kn.gpuAcceleration,ln=St===void 0?!0:St,An=kn.adaptive,Cr=An===void 0?!0:An,_i=kn.roundOffsets,Sn=_i===void 0?!0:_i,ir={placement:K(qn.placement),variation:ue(qn.placement),popper:qn.elements.popper,popperRect:qn.rects.popper,gpuAcceleration:ln,isFixed:qn.options.strategy==="fixed"};qn.modifiersData.popperOffsets!=null&&(qn.styles.popper=Object.assign({},qn.styles.popper,_t(Object.assign({},ir,{offsets:qn.modifiersData.popperOffsets,position:qn.options.strategy,adaptive:Cr,roundOffsets:Sn})))),qn.modifiersData.arrow!=null&&(qn.styles.arrow=Object.assign({},qn.styles.arrow,_t(Object.assign({},ir,{offsets:qn.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Sn})))),qn.attributes.popper=Object.assign({},qn.attributes.popper,{"data-popper-placement":qn.placement})}const Ge={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ct,data:{}};function st(un){var qn=un.state;Object.keys(qn.elements).forEach(function(kn){var St=qn.styles[kn]||{},ln=qn.attributes[kn]||{},An=qn.elements[kn];!u(An)||!R(An)||(Object.assign(An.style,St),Object.keys(ln).forEach(function(Cr){var _i=ln[Cr];_i===!1?An.removeAttribute(Cr):An.setAttribute(Cr,_i===!0?"":_i)}))})}function Me(un){var qn=un.state,kn={popper:{position:qn.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(qn.elements.popper.style,kn.popper),qn.styles=kn,qn.elements.arrow&&Object.assign(qn.elements.arrow.style,kn.arrow),function(){Object.keys(qn.elements).forEach(function(St){var ln=qn.elements[St],An=qn.attributes[St]||{},Cr=Object.keys(qn.styles.hasOwnProperty(St)?qn.styles[St]:kn[St]),_i=Cr.reduce(function(Sn,ir){return Sn[ir]="",Sn},{});!u(ln)||!R(ln)||(Object.assign(ln.style,_i),Object.keys(An).forEach(function(Sn){ln.removeAttribute(Sn)}))})}}const ie={name:"applyStyles",enabled:!0,phase:"write",fn:st,effect:Me,requires:["computeStyles"]};function ge(un,qn,kn){var St=K(un),ln=[H,ce].indexOf(St)>=0?-1:1,An=typeof kn=="function"?kn(Object.assign({},qn,{placement:un})):kn,Cr=An[0],_i=An[1];return Cr=Cr||0,_i=(_i||0)*ln,[H,re].indexOf(St)>=0?{x:_i,y:Cr}:{x:Cr,y:_i}}function z(un){var qn=un.state,kn=un.options,St=un.name,ln=kn.offset,An=ln===void 0?[0,0]:ln,Cr=Ee.reduce(function(mt,fn){return mt[fn]=ge(fn,qn.rects,An),mt},{}),_i=Cr[qn.placement],Sn=_i.x,ir=_i.y;qn.modifiersData.popperOffsets!=null&&(qn.modifiersData.popperOffsets.x+=Sn,qn.modifiersData.popperOffsets.y+=ir),qn.modifiersData[St]=Cr}const be={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:z};var Qe={left:"right",right:"left",bottom:"top",top:"bottom"};function Bt(un){return un.replace(/left|right|bottom|top/g,function(qn){return Qe[qn]})}var nn={start:"end",end:"start"};function bt(un){return un.replace(/start|end/g,function(qn){return nn[qn]})}function at(un,qn){var kn=s(un),St=M(un),ln=kn.visualViewport,An=St.clientWidth,Cr=St.clientHeight,_i=0,Sn=0;if(ln){An=ln.width,Cr=ln.height;var ir=b();(ir||!ir&&qn==="fixed")&&(_i=ln.offsetLeft,Sn=ln.offsetTop)}return{width:An,height:Cr,x:_i+D(un),y:Sn}}function $t(un){var qn,kn=M(un),St=w(un),ln=(qn=un.ownerDocument)==null?void 0:qn.body,An=p(kn.scrollWidth,kn.clientWidth,ln?ln.scrollWidth:0,ln?ln.clientWidth:0),Cr=p(kn.scrollHeight,kn.clientHeight,ln?ln.scrollHeight:0,ln?ln.clientHeight:0),_i=-St.scrollLeft+D(un),Sn=-St.scrollTop;return P(ln||kn).direction==="rtl"&&(_i+=p(kn.clientWidth,ln?ln.clientWidth:0)-An),{width:An,height:Cr,x:_i,y:Sn}}function On(un,qn){var kn=qn.getRootNode&&qn.getRootNode();if(un.contains(qn))return!0;if(kn&&f(kn)){var St=qn;do{if(St&&un.isSameNode(St))return!0;St=St.parentNode||St.host}while(St)}return!1}function Ct(un){return Object.assign({},un,{left:un.x,top:un.y,right:un.x+un.width,bottom:un.y+un.height})}function Zt(un,qn){var kn=y(un,!1,qn==="fixed");return kn.top=kn.top+un.clientTop,kn.left=kn.left+un.clientLeft,kn.bottom=kn.top+un.clientHeight,kn.right=kn.left+un.clientWidth,kn.width=un.clientWidth,kn.height=un.clientHeight,kn.x=kn.left,kn.y=kn.top,kn}function Wn(un,qn,kn){return qn===pe?Ct(at(un,kn)):m(qn)?Zt(qn,kn):Ct($t(M(un)))}function Zn(un){var qn=W(_(un)),kn=["absolute","fixed"].indexOf(P(un).position)>=0,St=kn&&u(un)?ve(un):un;return m(St)?qn.filter(function(ln){return m(ln)&&On(ln,St)&&R(ln)!=="body"}):[]}function xt(un,qn,kn,St){var ln=qn==="clippingParents"?Zn(un):[].concat(qn),An=[].concat(ln,[kn]),Cr=An[0],_i=An.reduce(function(Sn,ir){var mt=Wn(un,ir,St);return Sn.top=p(mt.top,Sn.top),Sn.right=v(mt.right,Sn.right),Sn.bottom=v(mt.bottom,Sn.bottom),Sn.left=p(mt.left,Sn.left),Sn},Wn(un,Cr,St));return _i.width=_i.right-_i.left,_i.height=_i.bottom-_i.top,_i.x=_i.left,_i.y=_i.top,_i}function Xe(){return{top:0,right:0,bottom:0,left:0}}function gn(un){return Object.assign({},Xe(),un)}function Qt(un,qn){return qn.reduce(function(kn,St){return kn[St]=un,kn},{})}function Dt(un,qn){qn===void 0&&(qn={});var kn=qn,St=kn.placement,ln=St===void 0?un.placement:St,An=kn.strategy,Cr=An===void 0?un.strategy:An,_i=kn.boundary,Sn=_i===void 0?ne:_i,ir=kn.rootBoundary,mt=ir===void 0?pe:ir,fn=kn.elementContext,gt=fn===void 0?ye:fn,tn=kn.altBoundary,Vn=tn===void 0?!1:tn,Ur=kn.padding,$r=Ur===void 0?0:Ur,Pr=gn(typeof $r!="number"?$r:Qt($r,Q)),zr=gt===ye?Se:ye,gi=un.rects.popper,$i=un.elements[Vn?zr:gt],eo=xt(m($i)?$i:$i.contextElement||M(un.elements.popper),Sn,mt,Cr),ki=y(un.elements.reference),so=He({reference:ki,element:gi,strategy:"absolute",placement:ln}),Ho=Ct(Object.assign({},gi,so)),ra=gt===ye?Ho:ki,So={top:eo.top-ra.top+Pr.top,bottom:ra.bottom-eo.bottom+Pr.bottom,left:eo.left-ra.left+Pr.left,right:ra.right-eo.right+Pr.right},gr=un.modifiersData.offset;if(gt===ye&&gr){var di=gr[ln];Object.keys(So).forEach(function(Vi){var Ro=[re,oe].indexOf(Vi)>=0?1:-1,na=[ce,oe].indexOf(Vi)>=0?"y":"x";So[Vi]+=di[na]*Ro})}return So}function hn(un,qn){qn===void 0&&(qn={});var kn=qn,St=kn.placement,ln=kn.boundary,An=kn.rootBoundary,Cr=kn.padding,_i=kn.flipVariations,Sn=kn.allowedAutoPlacements,ir=Sn===void 0?Ee:Sn,mt=ue(St),fn=mt?_i?Ae:Ae.filter(function(Vn){return ue(Vn)===mt}):Q,gt=fn.filter(function(Vn){return ir.indexOf(Vn)>=0});gt.length===0&&(gt=fn);var tn=gt.reduce(function(Vn,Ur){return Vn[Ur]=Dt(un,{placement:Ur,boundary:ln,rootBoundary:An,padding:Cr})[K(Ur)],Vn},{});return Object.keys(tn).sort(function(Vn,Ur){return tn[Vn]-tn[Ur]})}function cn(un){if(K(un)===V)return[];var qn=Bt(un);return[bt(un),qn,bt(qn)]}function an(un){var qn=un.state,kn=un.options,St=un.name;if(!qn.modifiersData[St]._skip){for(var ln=kn.mainAxis,An=ln===void 0?!0:ln,Cr=kn.altAxis,_i=Cr===void 0?!0:Cr,Sn=kn.fallbackPlacements,ir=kn.padding,mt=kn.boundary,fn=kn.rootBoundary,gt=kn.altBoundary,tn=kn.flipVariations,Vn=tn===void 0?!0:tn,Ur=kn.allowedAutoPlacements,$r=qn.options.placement,Pr=K($r),zr=Pr===$r,gi=Sn||(zr||!Vn?[Bt($r)]:cn($r)),$i=[$r].concat(gi).reduce(function(as,rn){return as.concat(K(rn)===V?hn(qn,{placement:rn,boundary:mt,rootBoundary:fn,padding:ir,flipVariations:Vn,allowedAutoPlacements:Ur}):rn)},[]),eo=qn.rects.reference,ki=qn.rects.popper,so=new Map,Ho=!0,ra=$i[0],So=0;So<$i.length;So++){var gr=$i[So],di=K(gr),Vi=ue(gr)===Te,Ro=[ce,oe].indexOf(di)>=0,na=Ro?"width":"height",ta=Dt(qn,{placement:gr,boundary:mt,rootBoundary:fn,altBoundary:gt,padding:ir}),aa=Ro?Vi?re:H:Vi?oe:ce;eo[na]>ki[na]&&(aa=Bt(aa));var vi=Bt(aa),to=[];if(An&&to.push(ta[di]<=0),_i&&to.push(ta[aa]<=0,ta[vi]<=0),to.every(function(as){return as})){ra=gr,Ho=!1;break}so.set(gr,to)}if(Ho)for(var $o=Vn?3:1,ja=function(rn){var Dr=$i.find(function(Lr){var li=so.get(Lr);if(li)return li.slice(0,rn).every(function(Zi){return Zi})});if(Dr)return ra=Dr,"break"},hs=$o;hs>0;hs--){var ro=ja(hs);if(ro==="break")break}qn.placement!==ra&&(qn.modifiersData[St]._skip=!0,qn.placement=ra,qn.reset=!0)}}const Or={name:"flip",enabled:!0,phase:"main",fn:an,requiresIfExists:["offset"],data:{_skip:!1}};function Ln(un){return un==="x"?"y":"x"}function En(un,qn,kn){return p(un,v(qn,kn))}function Gn(un,qn,kn){var St=En(un,qn,kn);return St>kn?kn:St}function rr(un){var qn=un.state,kn=un.options,St=un.name,ln=kn.mainAxis,An=ln===void 0?!0:ln,Cr=kn.altAxis,_i=Cr===void 0?!1:Cr,Sn=kn.boundary,ir=kn.rootBoundary,mt=kn.altBoundary,fn=kn.padding,gt=kn.tether,tn=gt===void 0?!0:gt,Vn=kn.tetherOffset,Ur=Vn===void 0?0:Vn,$r=Dt(qn,{boundary:Sn,rootBoundary:ir,padding:fn,altBoundary:mt}),Pr=K(qn.placement),zr=ue(qn.placement),gi=!zr,$i=De(Pr),eo=Ln($i),ki=qn.modifiersData.popperOffsets,so=qn.rects.reference,Ho=qn.rects.popper,ra=typeof Ur=="function"?Ur(Object.assign({},qn.rects,{placement:qn.placement})):Ur,So=typeof ra=="number"?{mainAxis:ra,altAxis:ra}:Object.assign({mainAxis:0,altAxis:0},ra),gr=qn.modifiersData.offset?qn.modifiersData.offset[qn.placement]:null,di={x:0,y:0};if(ki){if(An){var Vi,Ro=$i==="y"?ce:H,na=$i==="y"?oe:re,ta=$i==="y"?"height":"width",aa=ki[$i],vi=aa+$r[Ro],to=aa-$r[na],$o=tn?-Ho[ta]/2:0,ja=zr===Te?so[ta]:Ho[ta],hs=zr===Te?-Ho[ta]:-so[ta],ro=qn.elements.arrow,as=tn&&ro?ae(ro):{width:0,height:0},rn=qn.modifiersData["arrow#persistent"]?qn.modifiersData["arrow#persistent"].padding:Xe(),Dr=rn[Ro],Lr=rn[na],li=En(0,so[ta],as[ta]),Zi=gi?so[ta]/2-$o-li-Dr-So.mainAxis:ja-li-Dr-So.mainAxis,Di=gi?-so[ta]/2+$o+li+Lr+So.mainAxis:hs+li+Lr+So.mainAxis,wo=qn.elements.arrow&&ve(qn.elements.arrow),Go=wo?$i==="y"?wo.clientTop||0:wo.clientLeft||0:0,Ko=(Vi=gr?.[$i])!=null?Vi:0,Ie=aa+Zi-Ko-Go,yt=aa+Di-Ko,on=En(tn?v(vi,Ie):vi,aa,tn?p(to,yt):to);ki[$i]=on,di[$i]=on-aa}if(_i){var _n,er=$i==="x"?ce:H,or=$i==="x"?oe:re,Er=ki[eo],Mi=eo==="y"?"height":"width",Ui=Er+$r[er],Nn=Er-$r[or],cr=[ce,H].indexOf(Pr)!==-1,ni=(_n=gr?.[eo])!=null?_n:0,Xr=cr?Ui:Er-so[Mi]-Ho[Mi]-ni+So.altAxis,Jr=cr?Er+so[Mi]+Ho[Mi]-ni-So.altAxis:Nn,Qi=tn&&cr?Gn(Xr,Er,Jr):En(tn?Xr:Ui,Er,tn?Jr:Nn);ki[eo]=Qi,di[eo]=Qi-Er}qn.modifiersData[St]=di}}const sr={name:"preventOverflow",enabled:!0,phase:"main",fn:rr,requiresIfExists:["offset"]};var pi=function(qn,kn){return qn=typeof qn=="function"?qn(Object.assign({},kn.rects,{placement:kn.placement})):qn,gn(typeof qn!="number"?qn:Qt(qn,Q))};function yi(un){var qn,kn=un.state,St=un.name,ln=un.options,An=kn.elements.arrow,Cr=kn.modifiersData.popperOffsets,_i=K(kn.placement),Sn=De(_i),ir=[H,re].indexOf(_i)>=0,mt=ir?"height":"width";if(!(!An||!Cr)){var fn=pi(ln.padding,kn),gt=ae(An),tn=Sn==="y"?ce:H,Vn=Sn==="y"?oe:re,Ur=kn.rects.reference[mt]+kn.rects.reference[Sn]-Cr[Sn]-kn.rects.popper[mt],$r=Cr[Sn]-kn.rects.reference[Sn],Pr=ve(An),zr=Pr?Sn==="y"?Pr.clientHeight||0:Pr.clientWidth||0:0,gi=Ur/2-$r/2,$i=fn[tn],eo=zr-gt[mt]-fn[Vn],ki=zr/2-gt[mt]/2+gi,so=En($i,ki,eo),Ho=Sn;kn.modifiersData[St]=(qn={},qn[Ho]=so,qn.centerOffset=so-ki,qn)}}function jr(un){var qn=un.state,kn=un.options,St=kn.element,ln=St===void 0?"[data-popper-arrow]":St;ln!=null&&(typeof ln=="string"&&(ln=qn.elements.popper.querySelector(ln),!ln)||On(qn.elements.popper,ln)&&(qn.elements.arrow=ln))}const ui={name:"arrow",enabled:!0,phase:"main",fn:yi,effect:jr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bi(un,qn,kn){return kn===void 0&&(kn={x:0,y:0}),{top:un.top-qn.height-kn.y,right:un.right-qn.width+kn.x,bottom:un.bottom-qn.height+kn.y,left:un.left-qn.width-kn.x}}function ri(un){return[ce,re,oe,H].some(function(qn){return un[qn]>=0})}function hi(un){var qn=un.state,kn=un.name,St=qn.rects.reference,ln=qn.rects.popper,An=qn.modifiersData.preventOverflow,Cr=Dt(qn,{elementContext:"reference"}),_i=Dt(qn,{altBoundary:!0}),Sn=bi(Cr,St),ir=bi(_i,ln,An),mt=ri(Sn),fn=ri(ir);qn.modifiersData[kn]={referenceClippingOffsets:Sn,popperEscapeOffsets:ir,isReferenceHidden:mt,hasPopperEscaped:fn},qn.attributes.popper=Object.assign({},qn.attributes.popper,{"data-popper-reference-hidden":mt,"data-popper-escaped":fn})}var Kr=[I,ze,Ge,ie,be,Or,sr,ui,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hi}],xi=it({defaultModifiers:Kr}),Ai=t(30115),Pi=t.n(Ai),io=t(13316),lo=[],Gr=function(qn,kn,St){St===void 0&&(St={});var ln=i.useRef(null),An={onFirstUpdate:St.onFirstUpdate,placement:St.placement||"bottom",strategy:St.strategy||"absolute",modifiers:St.modifiers||lo},Cr=i.useState({styles:{popper:{position:An.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),_i=Cr[0],Sn=Cr[1],ir=i.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(tn){var Vn=tn.state,Ur=Object.keys(Vn.elements);l.flushSync(function(){Sn({styles:(0,io.PW)(Ur.map(function($r){return[$r,Vn.styles[$r]||{}]})),attributes:(0,io.PW)(Ur.map(function($r){return[$r,Vn.attributes[$r]]}))})})},requires:["computeStyles"]}},[]),mt=i.useMemo(function(){var gt={onFirstUpdate:An.onFirstUpdate,placement:An.placement,strategy:An.strategy,modifiers:[].concat(An.modifiers,[ir,{name:"applyStyles",enabled:!1}])};return Pi()(ln.current,gt)?ln.current||gt:(ln.current=gt,gt)},[An.onFirstUpdate,An.placement,An.strategy,An.modifiers,ir]),fn=i.useRef();return(0,io.Es)(function(){fn.current&&fn.current.setOptions(mt)},[mt]),(0,io.Es)(function(){if(!(qn==null||kn==null)){var gt=St.createPopper||xi,tn=gt(qn,kn,mt);return fn.current=tn,function(){tn.destroy(),fn.current=null}}},[qn,kn,St.createPopper]),{state:fn.current?fn.current.state:null,styles:_i.styles,attributes:_i.attributes,update:fn.current?fn.current.update:null,forceUpdate:fn.current?fn.current.forceUpdate:null}}},13316:(J,g,t)=>{"use strict";t.d(g,{Es:()=>f,PW:()=>u,cZ:()=>m,vq:()=>l});var i=t(96540),l=function(v){return Array.isArray(v)?v[0]:v},s=function(v){if(typeof v=="function"){for(var h=arguments.length,d=new Array(h>1?h-1:0),b=1;b<h;b++)d[b-1]=arguments[b];return v.apply(void 0,d)}},m=function(v,h){if(typeof v=="function")return s(v,h);v!=null&&(v.current=h)},u=function(v){return v.reduce(function(h,d){var b=d[0],y=d[1];return h[b]=y,h},{})},f=typeof window<"u"&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect},69733:(J,g,t)=>{"use strict";t.r(g),t.d(g,{Provider:()=>At,ReactReduxContext:()=>y,batch:()=>s.unstable_batchedUpdates,connect:()=>Ke,createDispatchHook:()=>I,createSelectorHook:()=>T,createStoreHook:()=>et,shallowEqual:()=>nt,useDispatch:()=>K,useSelector:()=>A,useStore:()=>ee});var i=t(19888),l=t(69242),s=t(40961);function m(ue){ue()}let u=m;const f=ue=>u=ue,p=()=>u;var v=t(96540);const h=Symbol.for("react-redux-context"),d=typeof globalThis<"u"?globalThis:{};function b(){var ue;if(!v.createContext)return{};const De=(ue=d[h])!=null?ue:d[h]=new Map;let He=De.get(v.createContext);return He||(He=v.createContext(null),De.set(v.createContext,He)),He}const y=b(),w=null;function S(ue=y){return function(){return(0,v.useContext)(ue)}}const O=S(),R=()=>{throw new Error("uSES not initialized!")};let M=R;const D=ue=>{M=ue},P=(ue,De)=>ue===De;function T(ue=y){const De=ue===y?O:S(ue);return function(Fe,ze={}){const{equalityFn:qe=P,stabilityCheck:We=void 0,noopCheck:_t=void 0}=typeof ze=="function"?{equalityFn:ze}:ze,{store:ct,subscription:Ge,getServerState:st,stabilityCheck:Me,noopCheck:ie}=De(),ge=(0,v.useRef)(!0),z=(0,v.useCallback)({[Fe.name](Qe){return Fe(Qe)}}[Fe.name],[Fe,Me,We]),be=M(Ge.addNestedSub,ct.getState,st||ct.getState,z,qe);return(0,v.useDebugValue)(be),be}}const A=T();var j=t(58168),ae=t(98587),_=t(4146),N=t.n(_),W=t(44363);const he=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function me(ue,De,He,Fe,{areStatesEqual:ze,areOwnPropsEqual:qe,areStatePropsEqual:We}){let _t=!1,ct,Ge,st,Me,ie;function ge(nn,bt){return ct=nn,Ge=bt,st=ue(ct,Ge),Me=De(Fe,Ge),ie=He(st,Me,Ge),_t=!0,ie}function z(){return st=ue(ct,Ge),De.dependsOnOwnProps&&(Me=De(Fe,Ge)),ie=He(st,Me,Ge),ie}function be(){return ue.dependsOnOwnProps&&(st=ue(ct,Ge)),De.dependsOnOwnProps&&(Me=De(Fe,Ge)),ie=He(st,Me,Ge),ie}function Qe(){const nn=ue(ct,Ge),bt=!We(nn,st);return st=nn,bt&&(ie=He(st,Me,Ge)),ie}function Bt(nn,bt){const at=!qe(bt,Ge),$t=!ze(nn,ct,bt,Ge);return ct=nn,Ge=bt,at&&$t?z():at?be():$t?Qe():ie}return function(bt,at){return _t?Bt(bt,at):ge(bt,at)}}function fe(ue,De){let{initMapStateToProps:He,initMapDispatchToProps:Fe,initMergeProps:ze}=De,qe=(0,ae.A)(De,he);const We=He(ue,qe),_t=Fe(ue,qe),ct=ze(ue,qe);return me(We,_t,ct,ue,qe)}function ve(ue,De){const He={};for(const Fe in ue){const ze=ue[Fe];typeof ze=="function"&&(He[Fe]=(...qe)=>De(ze(...qe)))}return He}function ce(ue){return function(He){const Fe=ue(He);function ze(){return Fe}return ze.dependsOnOwnProps=!1,ze}}function oe(ue){return ue.dependsOnOwnProps?!!ue.dependsOnOwnProps:ue.length!==1}function re(ue,De){return function(Fe,{displayName:ze}){const qe=function(_t,ct){return qe.dependsOnOwnProps?qe.mapToProps(_t,ct):qe.mapToProps(_t,void 0)};return qe.dependsOnOwnProps=!0,qe.mapToProps=function(_t,ct){qe.mapToProps=ue,qe.dependsOnOwnProps=oe(ue);let Ge=qe(_t,ct);return typeof Ge=="function"&&(qe.mapToProps=Ge,qe.dependsOnOwnProps=oe(Ge),Ge=qe(_t,ct)),Ge},qe}}function H(ue,De){return(He,Fe)=>{throw new Error(`Invalid value of type ${typeof ue} for ${De} argument when connecting component ${Fe.wrappedComponentName}.`)}}function V(ue){return ue&&typeof ue=="object"?ce(De=>ve(ue,De)):ue?typeof ue=="function"?re(ue,"mapDispatchToProps"):H(ue,"mapDispatchToProps"):ce(De=>({dispatch:De}))}function Q(ue){return ue?typeof ue=="function"?re(ue,"mapStateToProps"):H(ue,"mapStateToProps"):ce(()=>({}))}function Te(ue,De,He){return(0,j.A)({},He,ue,De)}function Re(ue){return function(He,{displayName:Fe,areMergedPropsEqual:ze}){let qe=!1,We;return function(ct,Ge,st){const Me=ue(ct,Ge,st);return qe?ze(Me,We)||(We=Me):(qe=!0,We=Me),We}}}function ne(ue){return ue?typeof ue=="function"?Re(ue):H(ue,"mergeProps"):()=>Te}function pe(){const ue=p();let De=null,He=null;return{clear(){De=null,He=null},notify(){ue(()=>{let Fe=De;for(;Fe;)Fe.callback(),Fe=Fe.next})},get(){let Fe=[],ze=De;for(;ze;)Fe.push(ze),ze=ze.next;return Fe},subscribe(Fe){let ze=!0,qe=He={callback:Fe,next:null,prev:He};return qe.prev?qe.prev.next=qe:De=qe,function(){!ze||De===null||(ze=!1,qe.next?qe.next.prev=qe.prev:He=qe.prev,qe.prev?qe.prev.next=qe.next:De=qe.next)}}}}const ye={notify(){},get:()=>[]};function Se(ue,De){let He,Fe=ye,ze=0,qe=!1;function We(be){st();const Qe=Fe.subscribe(be);let Bt=!1;return()=>{Bt||(Bt=!0,Qe(),Me())}}function _t(){Fe.notify()}function ct(){z.onStateChange&&z.onStateChange()}function Ge(){return qe}function st(){ze++,He||(He=De?De.addNestedSub(ct):ue.subscribe(ct),Fe=pe())}function Me(){ze--,He&&ze===0&&(He(),He=void 0,Fe.clear(),Fe=ye)}function ie(){qe||(qe=!0,st())}function ge(){qe&&(qe=!1,Me())}const z={addNestedSub:We,notifyNestedSubs:_t,handleChangeWrapper:ct,isSubscribed:Ge,trySubscribe:ie,tryUnsubscribe:ge,getListeners:()=>Fe};return z}const Ee=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect;function xe(ue,De){return ue===De?ue!==0||De!==0||1/ue===1/De:ue!==ue&&De!==De}function nt(ue,De){if(xe(ue,De))return!0;if(typeof ue!="object"||ue===null||typeof De!="object"||De===null)return!1;const He=Object.keys(ue),Fe=Object.keys(De);if(He.length!==Fe.length)return!1;for(let ze=0;ze<He.length;ze++)if(!Object.prototype.hasOwnProperty.call(De,He[ze])||!xe(ue[He[ze]],De[He[ze]]))return!1;return!0}const Tt=["reactReduxForwardedRef"];let pt=R;const Rt=ue=>{pt=ue},tt=null,U=[null,null],F=ue=>{try{return JSON.stringify(ue)}catch{return String(ue)}};function Y(ue,De,He){Ee(()=>ue(...De),He)}function le(ue,De,He,Fe,ze,qe){ue.current=Fe,He.current=!1,ze.current&&(ze.current=null,qe())}function ke(ue,De,He,Fe,ze,qe,We,_t,ct,Ge,st){if(!ue)return()=>{};let Me=!1,ie=null;const ge=()=>{if(Me||!_t.current)return;const be=De.getState();let Qe,Bt;try{Qe=Fe(be,ze.current)}catch(nn){Bt=nn,ie=nn}Bt||(ie=null),Qe===qe.current?We.current||Ge():(qe.current=Qe,ct.current=Qe,We.current=!0,st())};return He.onStateChange=ge,He.trySubscribe(),ge(),()=>{if(Me=!0,He.tryUnsubscribe(),He.onStateChange=null,ie)throw ie}}const Ye=()=>tt;function ft(ue,De){return ue===De}let wt=!1;function Ut(ue,De,He,{pure:Fe,areStatesEqual:ze=ft,areOwnPropsEqual:qe=nt,areStatePropsEqual:We=nt,areMergedPropsEqual:_t=nt,forwardRef:ct=!1,context:Ge=y}={}){const st=Ge,Me=Q(ue),ie=V(De),ge=ne(He),z=!!ue;return Qe=>{const Bt=Qe.displayName||Qe.name||"Component",nn=`Connect(${Bt})`,bt={shouldHandleStateChanges:z,displayName:nn,wrappedComponentName:Bt,WrappedComponent:Qe,initMapStateToProps:Me,initMapDispatchToProps:ie,initMergeProps:ge,areStatesEqual:ze,areStatePropsEqual:We,areOwnPropsEqual:qe,areMergedPropsEqual:_t};function at(Ct){const[Zt,Wn,Zn]=v.useMemo(()=>{const{reactReduxForwardedRef:Kr}=Ct,xi=(0,ae.A)(Ct,Tt);return[Ct.context,Kr,xi]},[Ct]),xt=v.useMemo(()=>Zt&&Zt.Consumer&&(0,W.isContextConsumer)(v.createElement(Zt.Consumer,null))?Zt:st,[Zt,st]),Xe=v.useContext(xt),gn=!!Ct.store&&!!Ct.store.getState&&!!Ct.store.dispatch,Qt=!!Xe&&!!Xe.store,Dt=gn?Ct.store:Xe.store,hn=Qt?Xe.getServerState:Dt.getState,cn=v.useMemo(()=>fe(Dt.dispatch,bt),[Dt]),[an,Or]=v.useMemo(()=>{if(!z)return U;const Kr=Se(Dt,gn?void 0:Xe.subscription),xi=Kr.notifyNestedSubs.bind(Kr);return[Kr,xi]},[Dt,gn,Xe]),Ln=v.useMemo(()=>gn?Xe:(0,j.A)({},Xe,{subscription:an}),[gn,Xe,an]),En=v.useRef(),Gn=v.useRef(Zn),rr=v.useRef(),sr=v.useRef(!1),pi=v.useRef(!1),yi=v.useRef(!1),jr=v.useRef();Ee(()=>(yi.current=!0,()=>{yi.current=!1}),[]);const ui=v.useMemo(()=>()=>rr.current&&Zn===Gn.current?rr.current:cn(Dt.getState(),Zn),[Dt,Zn]),bi=v.useMemo(()=>xi=>an?ke(z,Dt,an,cn,Gn,En,sr,yi,rr,Or,xi):()=>{},[an]);Y(le,[Gn,En,sr,Zn,rr,Or]);let ri;try{ri=pt(bi,ui,hn?()=>cn(hn(),Zn):ui)}catch(Kr){throw jr.current&&(Kr.message+=` The error may be correlated with this previous error: ${jr.current.stack} `),Kr}Ee(()=>{jr.current=void 0,rr.current=void 0,En.current=ri});const hi=v.useMemo(()=>v.createElement(Qe,(0,j.A)({},ri,{ref:Wn})),[Wn,Qe,ri]);return v.useMemo(()=>z?v.createElement(xt.Provider,{value:Ln},hi):hi,[xt,hi,Ln])}const On=v.memo(at);if(On.WrappedComponent=Qe,On.displayName=at.displayName=nn,ct){const Zt=v.forwardRef(function(Zn,xt){return v.createElement(On,(0,j.A)({},Zn,{reactReduxForwardedRef:xt}))});return Zt.displayName=nn,Zt.WrappedComponent=Qe,N()(Zt,Qe)}return N()(On,Qe)}}const Ke=Ut;function it({store:ue,context:De,children:He,serverState:Fe,stabilityCheck:ze="once",noopCheck:qe="once"}){const We=v.useMemo(()=>{const Ge=Se(ue);return{store:ue,subscription:Ge,getServerState:Fe?()=>Fe:void 0,stabilityCheck:ze,noopCheck:qe}},[ue,Fe,ze,qe]),_t=v.useMemo(()=>ue.getState(),[ue]);Ee(()=>{const{subscription:Ge}=We;return Ge.onStateChange=Ge.notifyNestedSubs,Ge.trySubscribe(),_t!==ue.getState()&&Ge.notifyNestedSubs(),()=>{Ge.tryUnsubscribe(),Ge.onStateChange=void 0}},[We,_t]);const ct=De||y;return v.createElement(ct.Provider,{value:We},He)}const At=it;function et(ue=y){const De=ue===y?O:S(ue);return function(){const{store:Fe}=De();return Fe}}const ee=et();function I(ue=y){const De=ue===y?ee:et(ue);return function(){return De().dispatch}}const K=I();D(l.useSyncExternalStoreWithSelector),Rt(i.useSyncExternalStore),f(s.unstable_batchedUpdates)},15630:(J,g,t)=>{"use strict";g.__esModule=!0,g.default=void 0;var i=p(t(96540)),l=t(55794),s=t(94030),m=t(28329),u=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function f(D){if(typeof WeakMap!="function")return null;var P=new WeakMap,T=new WeakMap;return(f=function(j){return j?T:P})(D)}function p(D,P){if(!P&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var T=f(P);if(T&&T.has(D))return T.get(D);var A={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ae in D)if(ae!=="default"&&Object.prototype.hasOwnProperty.call(D,ae)){var _=j?Object.getOwnPropertyDescriptor(D,ae):null;_&&(_.get||_.set)?Object.defineProperty(A,ae,_):A[ae]=D[ae]}return A.default=D,T&&T.set(D,A),A}function v(){return v=Object.assign?Object.assign.bind():function(D){for(var P=1;P<arguments.length;P++){var T=arguments[P];for(var A in T)Object.prototype.hasOwnProperty.call(T,A)&&(D[A]=T[A])}return D},v.apply(this,arguments)}function h(D,P){if(D==null)return{};var T={},A=Object.keys(D),j,ae;for(ae=0;ae<A.length;ae++)j=A[ae],!(P.indexOf(j)>=0)&&(T[j]=D[j]);return T}function d(D,P){var T=Object.keys(D);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(D);P&&(A=A.filter(function(j){return Object.getOwnPropertyDescriptor(D,j).enumerable})),T.push.apply(T,A)}return T}function b(D){for(var P=1;P<arguments.length;P++){var T=arguments[P]!=null?arguments[P]:{};P%2?d(Object(T),!0).forEach(function(A){y(D,A,T[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(T)):d(Object(T)).forEach(function(A){Object.defineProperty(D,A,Object.getOwnPropertyDescriptor(T,A))})}return D}function y(D,P,T){return P=w(P),P in D?Object.defineProperty(D,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):D[P]=T,D}function w(D){var P=S(D,"string");return typeof P=="symbol"?P:String(P)}function S(D,P){if(typeof D!="object"||D===null)return D;var T=D[Symbol.toPrimitive];if(T!==void 0){var A=T.call(D,P||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(D)}function O(D,P){D.prototype=Object.create(P.prototype),D.prototype.constructor=D,R(D,P)}function R(D,P){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,j){return A.__proto__=j,A},R(D,P)}var M=function(D){O(P,D);function P(){for(var A,j=arguments.length,ae=new Array(j),_=0;_<j;_++)ae[_]=arguments[_];return A=D.call.apply(D,[this].concat(ae))||this,A.handleRefs={},A.lastHandleRect=null,A.slack=null,A}var T=P.prototype;return T.componentWillUnmount=function(){this.resetData()},T.resetData=function(){this.lastHandleRect=this.slack=null},T.runConstraints=function(j,ae){var _=this.props,N=_.minConstraints,W=_.maxConstraints,he=_.lockAspectRatio;if(!N&&!W&&!he)return[j,ae];if(he){var me=this.props.width/this.props.height,fe=j-this.props.width,ve=ae-this.props.height;Math.abs(fe)>Math.abs(ve*me)?ae=j/me:j=ae*me}var ce=j,oe=ae,re=this.slack||[0,0],H=re[0],V=re[1];return j+=H,ae+=V,N&&(j=Math.max(N[0],j),ae=Math.max(N[1],ae)),W&&(j=Math.min(W[0],j),ae=Math.min(W[1],ae)),this.slack=[H+(ce-j),V+(oe-ae)],[j,ae]},T.resizeHandler=function(j,ae){var _=this;return function(N,W){var he=W.node,me=W.deltaX,fe=W.deltaY;j==="onResizeStart"&&_.resetData();var ve=(_.props.axis==="both"||_.props.axis==="x")&&ae!=="n"&&ae!=="s",ce=(_.props.axis==="both"||_.props.axis==="y")&&ae!=="e"&&ae!=="w";if(!(!ve&&!ce)){var oe=ae[0],re=ae[ae.length-1],H=he.getBoundingClientRect();if(_.lastHandleRect!=null){if(re==="w"){var V=H.left-_.lastHandleRect.left;me+=V}if(oe==="n"){var Q=H.top-_.lastHandleRect.top;fe+=Q}}_.lastHandleRect=H,re==="w"&&(me=-me),oe==="n"&&(fe=-fe);var Te=_.props.width+(ve?me/_.props.transformScale:0),Re=_.props.height+(ce?fe/_.props.transformScale:0),ne=_.runConstraints(Te,Re);Te=ne[0],Re=ne[1];var pe=Te!==_.props.width||Re!==_.props.height,ye=typeof _.props[j]=="function"?_.props[j]:null,Se=j==="onResize"&&!pe;ye&&!Se&&(N.persist==null||N.persist(),ye(N,{node:he,size:{width:Te,height:Re},handle:ae})),j==="onResizeStop"&&_.resetData()}}},T.renderResizeHandle=function(j,ae){var _=this.props.handle;if(!_)return i.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+j,ref:ae});if(typeof _=="function")return _(j,ae);var N=typeof _.type=="string",W=b({ref:ae},N?{}:{handleAxis:j});return i.cloneElement(_,W)},T.render=function(){var j=this,ae=this.props,_=ae.children,N=ae.className,W=ae.draggableOpts,he=ae.width,me=ae.height,fe=ae.handle,ve=ae.handleSize,ce=ae.lockAspectRatio,oe=ae.axis,re=ae.minConstraints,H=ae.maxConstraints,V=ae.onResize,Q=ae.onResizeStop,Te=ae.onResizeStart,Re=ae.resizeHandles,ne=ae.transformScale,pe=h(ae,u);return(0,s.cloneElement)(_,b(b({},pe),{},{className:(N?N+" ":"")+"react-resizable",children:[].concat(_.props.children,Re.map(function(ye){var Se,Ae=(Se=j.handleRefs[ye])!=null?Se:j.handleRefs[ye]=i.createRef();return i.createElement(l.DraggableCore,v({},W,{nodeRef:Ae,key:"resizableHandle-"+ye,onStop:j.resizeHandler("onResizeStop",ye),onStart:j.resizeHandler("onResizeStart",ye),onDrag:j.resizeHandler("onResize",ye)}),j.renderResizeHandle(ye,Ae))}))}))},P}(i.Component);g.default=M,M.propTypes=m.resizableProps,M.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},65661:(J,g,t)=>{"use strict";var i;i=!0,g.default=void 0;var l=h(t(96540)),s=p(t(5556)),m=p(t(15630)),u=t(28329),f=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function p(T){return T&&T.__esModule?T:{default:T}}function v(T){if(typeof WeakMap!="function")return null;var A=new WeakMap,j=new WeakMap;return(v=function(_){return _?j:A})(T)}function h(T,A){if(!A&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var j=v(A);if(j&&j.has(T))return j.get(T);var ae={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in T)if(N!=="default"&&Object.prototype.hasOwnProperty.call(T,N)){var W=_?Object.getOwnPropertyDescriptor(T,N):null;W&&(W.get||W.set)?Object.defineProperty(ae,N,W):ae[N]=T[N]}return ae.default=T,j&&j.set(T,ae),ae}function d(){return d=Object.assign?Object.assign.bind():function(T){for(var A=1;A<arguments.length;A++){var j=arguments[A];for(var ae in j)Object.prototype.hasOwnProperty.call(j,ae)&&(T[ae]=j[ae])}return T},d.apply(this,arguments)}function b(T,A){var j=Object.keys(T);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(T);A&&(ae=ae.filter(function(_){return Object.getOwnPropertyDescriptor(T,_).enumerable})),j.push.apply(j,ae)}return j}function y(T){for(var A=1;A<arguments.length;A++){var j=arguments[A]!=null?arguments[A]:{};A%2?b(Object(j),!0).forEach(function(ae){w(T,ae,j[ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(j)):b(Object(j)).forEach(function(ae){Object.defineProperty(T,ae,Object.getOwnPropertyDescriptor(j,ae))})}return T}function w(T,A,j){return A=S(A),A in T?Object.defineProperty(T,A,{value:j,enumerable:!0,configurable:!0,writable:!0}):T[A]=j,T}function S(T){var A=O(T,"string");return typeof A=="symbol"?A:String(A)}function O(T,A){if(typeof T!="object"||T===null)return T;var j=T[Symbol.toPrimitive];if(j!==void 0){var ae=j.call(T,A||"default");if(typeof ae!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(T)}function R(T,A){if(T==null)return{};var j={},ae=Object.keys(T),_,N;for(N=0;N<ae.length;N++)_=ae[N],!(A.indexOf(_)>=0)&&(j[_]=T[_]);return j}function M(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,D(T,A)}function D(T,A){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ae,_){return ae.__proto__=_,ae},D(T,A)}var P=function(T){M(A,T);function A(){for(var ae,_=arguments.length,N=new Array(_),W=0;W<_;W++)N[W]=arguments[W];return ae=T.call.apply(T,[this].concat(N))||this,ae.state={width:ae.props.width,height:ae.props.height,propsWidth:ae.props.width,propsHeight:ae.props.height},ae.onResize=function(he,me){var fe=me.size;ae.props.onResize?(he.persist==null||he.persist(),ae.setState(fe,function(){return ae.props.onResize&&ae.props.onResize(he,me)})):ae.setState(fe)},ae}A.getDerivedStateFromProps=function(_,N){return N.propsWidth!==_.width||N.propsHeight!==_.height?{width:_.width,height:_.height,propsWidth:_.width,propsHeight:_.height}:null};var j=A.prototype;return j.render=function(){var _=this.props,N=_.handle,W=_.handleSize,he=_.onResize,me=_.onResizeStart,fe=_.onResizeStop,ve=_.draggableOpts,ce=_.minConstraints,oe=_.maxConstraints,re=_.lockAspectRatio,H=_.axis,V=_.width,Q=_.height,Te=_.resizeHandles,Re=_.style,ne=_.transformScale,pe=R(_,f);return l.createElement(m.default,{axis:H,draggableOpts:ve,handle:N,handleSize:W,height:this.state.height,lockAspectRatio:re,maxConstraints:oe,minConstraints:ce,onResizeStart:me,onResize:this.onResize,onResizeStop:fe,resizeHandles:Te,transformScale:ne,width:this.state.width},l.createElement("div",d({},pe,{style:y(y({},Re),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},A}(l.Component);g.default=P,P.propTypes=y(y({},u.resizableProps),{},{children:s.default.element})},28329:(J,g,t)=>{"use strict";g.__esModule=!0,g.resizableProps=void 0;var i=s(t(5556)),l=t(55794);function s(u){return u&&u.__esModule?u:{default:u}}var m={axis:i.default.oneOf(["both","x","y","none"]),className:i.default.string,children:i.default.element.isRequired,draggableOpts:i.default.shape({allowAnyClick:i.default.bool,cancel:i.default.string,children:i.default.node,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:i.default.node,grid:i.default.arrayOf(i.default.number),handle:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number}),height:function(){for(var f=arguments.length,p=new Array(f),v=0;v<f;v++)p[v]=arguments[v];var h=p[0];if(h.axis==="both"||h.axis==="y"){var d;return(d=i.default.number).isRequired.apply(d,p)}return i.default.number.apply(i.default,p)},handle:i.default.oneOfType([i.default.node,i.default.func]),handleSize:i.default.arrayOf(i.default.number),lockAspectRatio:i.default.bool,maxConstraints:i.default.arrayOf(i.default.number),minConstraints:i.default.arrayOf(i.default.number),onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,resizeHandles:i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:i.default.number,width:function(){for(var f=arguments.length,p=new Array(f),v=0;v<f;v++)p[v]=arguments[v];var h=p[0];if(h.axis==="both"||h.axis==="x"){var d;return(d=i.default.number).isRequired.apply(d,p)}return i.default.number.apply(i.default,p)}};g.resizableProps=m},94030:(J,g,t)=>{"use strict";g.__esModule=!0,g.cloneElement=v;var i=l(t(96540));function l(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var b=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);d&&(y=y.filter(function(w){return Object.getOwnPropertyDescriptor(h,w).enumerable})),b.push.apply(b,y)}return b}function m(h){for(var d=1;d<arguments.length;d++){var b=arguments[d]!=null?arguments[d]:{};d%2?s(Object(b),!0).forEach(function(y){u(h,y,b[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(b)):s(Object(b)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(b,y))})}return h}function u(h,d,b){return d=f(d),d in h?Object.defineProperty(h,d,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[d]=b,h}function f(h){var d=p(h,"string");return typeof d=="symbol"?d:String(d)}function p(h,d){if(typeof h!="object"||h===null)return h;var b=h[Symbol.toPrimitive];if(b!==void 0){var y=b.call(h,d||"default");if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(h)}function v(h,d){return d.style&&h.props.style&&(d.style=m(m({},h.props.style),d.style)),d.className&&h.props.className&&(d.className=h.props.className+" "+d.className),i.default.cloneElement(h,d)}},66036:(J,g,t)=>{"use strict";J.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},J.exports.Resizable=t(15630).default,J.exports.ResizableBox=t(65661).default},47845:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var t=function(l,s,m){var u=l===0?l:l+s,f=m==="horizontal"?[u,0,0]:[0,u,0],p="translate3d",v="("+f.join(",")+")";return p+v};g.default=t},23613:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.fadeAnimationHandler=g.slideStopSwipingHandler=g.slideSwipeAnimationHandler=g.slideAnimationHandler=void 0;var i=t(96540),l=m(t(47845)),s=t(40929);function m(y){return y&&y.__esModule?y:{default:y}}function u(y,w){var S=Object.keys(y);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(y);w&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(y,R).enumerable})),S.push.apply(S,O)}return S}function f(y){for(var w=1;w<arguments.length;w++){var S=arguments[w]!=null?arguments[w]:{};w%2?u(Object(S),!0).forEach(function(O){p(y,O,S[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(S)):u(Object(S)).forEach(function(O){Object.defineProperty(y,O,Object.getOwnPropertyDescriptor(S,O))})}return y}function p(y,w,S){return w in y?Object.defineProperty(y,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):y[w]=S,y}var v=function(w,S){var O={},R=S.selectedItem,M=R,D=i.Children.count(w.children)-1,P=w.infiniteLoop&&(R<0||R>D);if(P)return M<0?w.centerMode&&w.centerSlidePercentage&&w.axis==="horizontal"?O.itemListStyle=(0,s.setPosition)(-(D+2)*w.centerSlidePercentage-(100-w.centerSlidePercentage)/2,w.axis):O.itemListStyle=(0,s.setPosition)(-(D+2)*100,w.axis):M>D&&(O.itemListStyle=(0,s.setPosition)(0,w.axis)),O;var T=(0,s.getPosition)(R,w),A=(0,l.default)(T,"%",w.axis),j=w.transitionTime+"ms";return O.itemListStyle={WebkitTransform:A,msTransform:A,OTransform:A,transform:A},S.swiping||(O.itemListStyle=f(f({},O.itemListStyle),{},{WebkitTransitionDuration:j,MozTransitionDuration:j,OTransitionDuration:j,transitionDuration:j,msTransitionDuration:j})),O};g.slideAnimationHandler=v;var h=function(w,S,O,R){var M={},D=S.axis==="horizontal",P=i.Children.count(S.children),T=0,A=(0,s.getPosition)(O.selectedItem,S),j=S.infiniteLoop?(0,s.getPosition)(P-1,S)-100:(0,s.getPosition)(P-1,S),ae=D?w.x:w.y,_=ae;A===T&&ae>0&&(_=0),A===j&&ae<0&&(_=0);var N=A+100/(O.itemSize/_),W=Math.abs(ae)>S.swipeScrollTolerance;return S.infiniteLoop&&W&&(O.selectedItem===0&&N>-100?N-=P*100:O.selectedItem===P-1&&N<-P*100&&(N+=P*100)),(!S.preventMovementUntilSwipeScrollTolerance||W||O.swipeMovementStarted)&&(O.swipeMovementStarted||R({swipeMovementStarted:!0}),M.itemListStyle=(0,s.setPosition)(N,S.axis)),W&&!O.cancelClick&&R({cancelClick:!0}),M};g.slideSwipeAnimationHandler=h;var d=function(w,S){var O=(0,s.getPosition)(S.selectedItem,w),R=(0,s.setPosition)(O,w.axis);return{itemListStyle:R}};g.slideStopSwipingHandler=d;var b=function(w,S){var O=w.transitionTime+"ms",R="ease-in-out",M={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:R,msTransitionTimingFunction:R,MozTransitionTimingFunction:R,WebkitTransitionTimingFunction:R,OTransitionTimingFunction:R};return S.swiping||(M=f(f({},M),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),{slideStyle:M,selectedStyle:f(f({},M),{},{opacity:1,position:"relative"}),prevStyle:f({},M)}};g.fadeAnimationHandler=b},72504:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var i=b(t(96540)),l=h(t(71410)),s=h(t(22775)),m=h(t(91292)),u=h(t(87579)),f=h(t(32069)),p=t(40929),v=t(23613);function h(me){return me&&me.__esModule?me:{default:me}}function d(){if(typeof WeakMap!="function")return null;var me=new WeakMap;return d=function(){return me},me}function b(me){if(me&&me.__esModule)return me;if(me===null||y(me)!=="object"&&typeof me!="function")return{default:me};var fe=d();if(fe&&fe.has(me))return fe.get(me);var ve={},ce=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in me)if(Object.prototype.hasOwnProperty.call(me,oe)){var re=ce?Object.getOwnPropertyDescriptor(me,oe):null;re&&(re.get||re.set)?Object.defineProperty(ve,oe,re):ve[oe]=me[oe]}return ve.default=me,fe&&fe.set(me,ve),ve}function y(me){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(ve){return typeof ve}:y=function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},y(me)}function w(){return w=Object.assign||function(me){for(var fe=1;fe<arguments.length;fe++){var ve=arguments[fe];for(var ce in ve)Object.prototype.hasOwnProperty.call(ve,ce)&&(me[ce]=ve[ce])}return me},w.apply(this,arguments)}function S(me,fe){var ve=Object.keys(me);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(me);fe&&(ce=ce.filter(function(oe){return Object.getOwnPropertyDescriptor(me,oe).enumerable})),ve.push.apply(ve,ce)}return ve}function O(me){for(var fe=1;fe<arguments.length;fe++){var ve=arguments[fe]!=null?arguments[fe]:{};fe%2?S(Object(ve),!0).forEach(function(ce){W(me,ce,ve[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(me,Object.getOwnPropertyDescriptors(ve)):S(Object(ve)).forEach(function(ce){Object.defineProperty(me,ce,Object.getOwnPropertyDescriptor(ve,ce))})}return me}function R(me,fe){if(!(me instanceof fe))throw new TypeError("Cannot call a class as a function")}function M(me,fe){for(var ve=0;ve<fe.length;ve++){var ce=fe[ve];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(me,ce.key,ce)}}function D(me,fe,ve){return fe&&M(me.prototype,fe),ve&&M(me,ve),me}function P(me,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function");me.prototype=Object.create(fe&&fe.prototype,{constructor:{value:me,writable:!0,configurable:!0}}),fe&&T(me,fe)}function T(me,fe){return T=Object.setPrototypeOf||function(ce,oe){return ce.__proto__=oe,ce},T(me,fe)}function A(me){var fe=_();return function(){var ce=N(me),oe;if(fe){var re=N(this).constructor;oe=Reflect.construct(ce,arguments,re)}else oe=ce.apply(this,arguments);return j(this,oe)}}function j(me,fe){return fe&&(y(fe)==="object"||typeof fe=="function")?fe:ae(me)}function ae(me){if(me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function N(me){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(ve){return ve.__proto__||Object.getPrototypeOf(ve)},N(me)}function W(me,fe,ve){return fe in me?Object.defineProperty(me,fe,{value:ve,enumerable:!0,configurable:!0,writable:!0}):me[fe]=ve,me}var he=function(me){P(ve,me);var fe=A(ve);function ve(ce){var oe;R(this,ve),oe=fe.call(this,ce),W(ae(oe),"thumbsRef",void 0),W(ae(oe),"carouselWrapperRef",void 0),W(ae(oe),"listRef",void 0),W(ae(oe),"itemsRef",void 0),W(ae(oe),"timer",void 0),W(ae(oe),"animationHandler",void 0),W(ae(oe),"setThumbsRef",function(H){oe.thumbsRef=H}),W(ae(oe),"setCarouselWrapperRef",function(H){oe.carouselWrapperRef=H}),W(ae(oe),"setListRef",function(H){oe.listRef=H}),W(ae(oe),"setItemsRef",function(H,V){oe.itemsRef||(oe.itemsRef=[]),oe.itemsRef[V]=H}),W(ae(oe),"autoPlay",function(){i.Children.count(oe.props.children)<=1||(oe.clearAutoPlay(),oe.props.autoPlay&&(oe.timer=setTimeout(function(){oe.increment()},oe.props.interval)))}),W(ae(oe),"clearAutoPlay",function(){oe.timer&&clearTimeout(oe.timer)}),W(ae(oe),"resetAutoPlay",function(){oe.clearAutoPlay(),oe.autoPlay()}),W(ae(oe),"stopOnHover",function(){oe.setState({isMouseEntered:!0},oe.clearAutoPlay)}),W(ae(oe),"startOnLeave",function(){oe.setState({isMouseEntered:!1},oe.autoPlay)}),W(ae(oe),"isFocusWithinTheCarousel",function(){return oe.carouselWrapperRef?!!((0,u.default)().activeElement===oe.carouselWrapperRef||oe.carouselWrapperRef.contains((0,u.default)().activeElement)):!1}),W(ae(oe),"navigateWithKeyboard",function(H){if(oe.isFocusWithinTheCarousel()){var V=oe.props.axis,Q=V==="horizontal",Te={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Re=Q?Te.ArrowRight:Te.ArrowDown,ne=Q?Te.ArrowLeft:Te.ArrowUp;Re===H.keyCode?oe.increment():ne===H.keyCode&&oe.decrement()}}),W(ae(oe),"updateSizes",function(){if(!(!oe.state.initialized||!oe.itemsRef||oe.itemsRef.length===0)){var H=oe.props.axis==="horizontal",V=oe.itemsRef[0];if(V){var Q=H?V.clientWidth:V.clientHeight;oe.setState({itemSize:Q}),oe.thumbsRef&&oe.thumbsRef.updateSizes()}}}),W(ae(oe),"setMountState",function(){oe.setState({hasMount:!0}),oe.updateSizes()}),W(ae(oe),"handleClickItem",function(H,V){if(i.Children.count(oe.props.children)!==0){if(oe.state.cancelClick){oe.setState({cancelClick:!1});return}oe.props.onClickItem(H,V),H!==oe.state.selectedItem&&oe.setState({selectedItem:H})}}),W(ae(oe),"handleOnChange",function(H,V){i.Children.count(oe.props.children)<=1||oe.props.onChange(H,V)}),W(ae(oe),"handleClickThumb",function(H,V){oe.props.onClickThumb(H,V),oe.moveTo(H)}),W(ae(oe),"onSwipeStart",function(H){oe.setState({swiping:!0}),oe.props.onSwipeStart(H)}),W(ae(oe),"onSwipeEnd",function(H){oe.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),oe.props.onSwipeEnd(H),oe.clearAutoPlay(),oe.state.autoPlay&&oe.autoPlay()}),W(ae(oe),"onSwipeMove",function(H,V){oe.props.onSwipeMove(V);var Q=oe.props.swipeAnimationHandler(H,oe.props,oe.state,oe.setState.bind(ae(oe)));return oe.setState(O({},Q)),!!Object.keys(Q).length}),W(ae(oe),"decrement",function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;oe.moveTo(oe.state.selectedItem-(typeof H=="number"?H:1))}),W(ae(oe),"increment",function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;oe.moveTo(oe.state.selectedItem+(typeof H=="number"?H:1))}),W(ae(oe),"moveTo",function(H){if(typeof H=="number"){var V=i.Children.count(oe.props.children)-1;H<0&&(H=oe.props.infiniteLoop?V:0),H>V&&(H=oe.props.infiniteLoop?0:V),oe.selectItem({selectedItem:H}),oe.state.autoPlay&&oe.state.isMouseEntered===!1&&oe.resetAutoPlay()}}),W(ae(oe),"onClickNext",function(){oe.increment(1)}),W(ae(oe),"onClickPrev",function(){oe.decrement(1)}),W(ae(oe),"onSwipeForward",function(){oe.increment(1),oe.props.emulateTouch&&oe.setState({cancelClick:!0})}),W(ae(oe),"onSwipeBackwards",function(){oe.decrement(1),oe.props.emulateTouch&&oe.setState({cancelClick:!0})}),W(ae(oe),"changeItem",function(H){return function(V){(!(0,p.isKeyboardEvent)(V)||V.key==="Enter")&&oe.moveTo(H)}}),W(ae(oe),"selectItem",function(H){oe.setState(O({previousItem:oe.state.selectedItem},H),function(){oe.setState(oe.animationHandler(oe.props,oe.state))}),oe.handleOnChange(H.selectedItem,i.Children.toArray(oe.props.children)[H.selectedItem])}),W(ae(oe),"getInitialImage",function(){var H=oe.props.selectedItem,V=oe.itemsRef&&oe.itemsRef[H],Q=V&&V.getElementsByTagName("img")||[];return Q[0]}),W(ae(oe),"getVariableItemHeight",function(H){var V=oe.itemsRef&&oe.itemsRef[H];if(oe.state.hasMount&&V&&V.children.length){var Q=V.children[0].getElementsByTagName("img")||[];if(Q.length>0){var Te=Q[0];if(!Te.complete){var Re=function ye(){oe.forceUpdate(),Te.removeEventListener("load",ye)};Te.addEventListener("load",Re)}}var ne=Q[0]||V.children[0],pe=ne.clientHeight;return pe>0?pe:null}return null});var re={initialized:!1,previousItem:ce.selectedItem,selectedItem:ce.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:ce.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return oe.animationHandler=typeof ce.animationHandler=="function"&&ce.animationHandler||ce.animationHandler==="fade"&&v.fadeAnimationHandler||v.slideAnimationHandler,oe.state=O(O({},re),oe.animationHandler(ce,re)),oe}return D(ve,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(oe,re){!oe.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!oe.autoFocus&&this.props.autoFocus&&this.forceFocus(),re.swiping&&!this.state.swiping&&this.setState(O({},this.props.stopSwipingHandler(this.props,this.state))),(oe.selectedItem!==this.props.selectedItem||oe.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),oe.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var oe=this;this.bindEvents(),this.state.autoPlay&&i.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var re=oe.getInitialImage();re&&!re.complete?re.addEventListener("load",oe.setMountState):oe.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var oe=this.carouselWrapperRef;this.props.stopOnHover&&oe&&(oe.addEventListener("mouseenter",this.stopOnHover),oe.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var oe=this.carouselWrapperRef;this.props.stopOnHover&&oe&&(oe.removeEventListener("mouseenter",this.stopOnHover),oe.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,f.default)().addEventListener("resize",this.updateSizes),(0,f.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,u.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,f.default)().removeEventListener("resize",this.updateSizes),(0,f.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var oe=this.getInitialImage();oe&&oe.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,u.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var oe;(oe=this.carouselWrapperRef)===null||oe===void 0||oe.focus()}},{key:"renderItems",value:function(oe){var re=this;return this.props.children?i.Children.map(this.props.children,function(H,V){var Q=V===re.state.selectedItem,Te=V===re.state.previousItem,Re=Q&&re.state.selectedStyle||Te&&re.state.prevStyle||re.state.slideStyle||{};re.props.centerMode&&re.props.axis==="horizontal"&&(Re=O(O({},Re),{},{minWidth:re.props.centerSlidePercentage+"%"})),re.state.swiping&&re.state.swipeMovementStarted&&(Re=O(O({},Re),{},{pointerEvents:"none"}));var ne={ref:function(ye){return re.setItemsRef(ye,V)},key:"itemKey"+V+(oe?"clone":""),className:s.default.ITEM(!0,V===re.state.selectedItem,V===re.state.previousItem),onClick:re.handleClickItem.bind(re,V,H),style:Re};return i.default.createElement("li",ne,re.props.renderItem(H,{isSelected:V===re.state.selectedItem,isPrevious:V===re.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var oe=this,re=this.props,H=re.showIndicators,V=re.labels,Q=re.renderIndicator,Te=re.children;return H?i.default.createElement("ul",{className:"control-dots"},i.Children.map(Te,function(Re,ne){return Q&&Q(oe.changeItem(ne),ne===oe.state.selectedItem,ne,V.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?i.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,i.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||i.Children.count(this.props.children)===0?null:i.default.createElement(m.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var oe=this;if(!this.props.children||i.Children.count(this.props.children)===0)return null;var re=this.props.swipeable&&i.Children.count(this.props.children)>1,H=this.props.axis==="horizontal",V=this.props.showArrows&&i.Children.count(this.props.children)>1,Q=V&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Te=V&&(this.state.selectedItem<i.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Re=this.renderItems(!0),ne=Re.shift(),pe=Re.pop(),ye={className:s.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},Se={};if(H){if(ye.onSwipeLeft=this.onSwipeForward,ye.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var Ae=this.getVariableItemHeight(this.state.selectedItem);Se.height=Ae||"auto"}}else ye.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ye.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ye.style=O(O({},ye.style),{},{height:this.state.itemSize}),Se.height=this.state.itemSize;return i.default.createElement("div",{"aria-label":this.props.ariaLabel,className:s.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},i.default.createElement("div",{className:s.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,Q,this.props.labels.leftArrow),i.default.createElement("div",{className:s.default.WRAPPER(!0,this.props.axis),style:Se},re?i.default.createElement(l.default,w({tagName:"ul",innerRef:this.setListRef},ye,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&pe,this.renderItems(),this.props.infiniteLoop&&ne):i.default.createElement("ul",{className:s.default.SLIDER(!0,this.state.swiping),ref:function(xe){return oe.setListRef(xe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&pe,this.renderItems(),this.props.infiniteLoop&&ne)),this.props.renderArrowNext(this.onClickNext,Te,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),ve}(i.default.Component);g.default=he,W(he,"displayName","Carousel"),W(he,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:p.noop,onClickThumb:p.noop,onChange:p.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(fe,ve,ce){return i.default.createElement("button",{type:"button","aria-label":ce,className:s.default.ARROW_PREV(!ve),onClick:fe})},renderArrowNext:function(fe,ve,ce){return i.default.createElement("button",{type:"button","aria-label":ce,className:s.default.ARROW_NEXT(!ve),onClick:fe})},renderIndicator:function(fe,ve,ce,oe){return i.default.createElement("li",{className:s.default.DOT(ve),onClick:fe,onKeyDown:fe,value:ce,key:ce,role:"button",tabIndex:0,"aria-label":"".concat(oe," ").concat(ce+1)})},renderItem:function(fe){return fe},renderThumbs:function(fe){var ve=i.Children.map(fe,function(ce){var oe=ce;if(ce.type!=="img"&&(oe=i.Children.toArray(ce.props.children).find(function(re){return re.type==="img"})),!!oe)return oe});return ve.filter(function(ce){return ce}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):ve},statusFormatter:p.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:v.slideSwipeAnimationHandler,stopSwipingHandler:v.slideStopSwipingHandler})},51613:()=>{"use strict"},40929:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.setPosition=g.getPosition=g.isKeyboardEvent=g.defaultStatusFormatter=g.noop=void 0;var i=t(96540),l=s(t(47845));function s(h){return h&&h.__esModule?h:{default:h}}var m=function(){};g.noop=m;var u=function(d,b){return"".concat(d," of ").concat(b)};g.defaultStatusFormatter=u;var f=function(d){return d?d.hasOwnProperty("key"):!1};g.isKeyboardEvent=f;var p=function(d,b){if(b.infiniteLoop&&++d,d===0)return 0;var y=i.Children.count(b.children);if(b.centerMode&&b.axis==="horizontal"){var w=-d*b.centerSlidePercentage,S=y-1;return d&&(d!==S||b.infiniteLoop)?w+=(100-b.centerSlidePercentage)/2:d===S&&(w+=100-b.centerSlidePercentage),w}return-d*100};g.getPosition=p;var v=function(d,b){var y={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(w){y[w]=(0,l.default)(d,"%",b)}),y};g.setPosition=v},91292:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var i=h(t(96540)),l=p(t(22775)),s=t(3619),m=p(t(47845)),u=p(t(71410)),f=p(t(32069));function p(N){return N&&N.__esModule?N:{default:N}}function v(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return v=function(){return N},N}function h(N){if(N&&N.__esModule)return N;if(N===null||d(N)!=="object"&&typeof N!="function")return{default:N};var W=v();if(W&&W.has(N))return W.get(N);var he={},me=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var fe in N)if(Object.prototype.hasOwnProperty.call(N,fe)){var ve=me?Object.getOwnPropertyDescriptor(N,fe):null;ve&&(ve.get||ve.set)?Object.defineProperty(he,fe,ve):he[fe]=N[fe]}return he.default=N,W&&W.set(N,he),he}function d(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(he){return typeof he}:d=function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},d(N)}function b(){return b=Object.assign||function(N){for(var W=1;W<arguments.length;W++){var he=arguments[W];for(var me in he)Object.prototype.hasOwnProperty.call(he,me)&&(N[me]=he[me])}return N},b.apply(this,arguments)}function y(N,W){if(!(N instanceof W))throw new TypeError("Cannot call a class as a function")}function w(N,W){for(var he=0;he<W.length;he++){var me=W[he];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(N,me.key,me)}}function S(N,W,he){return W&&w(N.prototype,W),he&&w(N,he),N}function O(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(W&&W.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),W&&R(N,W)}function R(N,W){return R=Object.setPrototypeOf||function(me,fe){return me.__proto__=fe,me},R(N,W)}function M(N){var W=T();return function(){var me=A(N),fe;if(W){var ve=A(this).constructor;fe=Reflect.construct(me,arguments,ve)}else fe=me.apply(this,arguments);return D(this,fe)}}function D(N,W){return W&&(d(W)==="object"||typeof W=="function")?W:P(N)}function P(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(N){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(he){return he.__proto__||Object.getPrototypeOf(he)},A(N)}function j(N,W,he){return W in N?Object.defineProperty(N,W,{value:he,enumerable:!0,configurable:!0,writable:!0}):N[W]=he,N}var ae=function(W){return W.hasOwnProperty("key")},_=function(N){O(he,N);var W=M(he);function he(me){var fe;return y(this,he),fe=W.call(this,me),j(P(fe),"itemsWrapperRef",void 0),j(P(fe),"itemsListRef",void 0),j(P(fe),"thumbsRef",void 0),j(P(fe),"setItemsWrapperRef",function(ve){fe.itemsWrapperRef=ve}),j(P(fe),"setItemsListRef",function(ve){fe.itemsListRef=ve}),j(P(fe),"setThumbsRef",function(ve,ce){fe.thumbsRef||(fe.thumbsRef=[]),fe.thumbsRef[ce]=ve}),j(P(fe),"updateSizes",function(){if(!(!fe.props.children||!fe.itemsWrapperRef||!fe.thumbsRef)){var ve=i.Children.count(fe.props.children),ce=fe.itemsWrapperRef.clientWidth,oe=fe.props.thumbWidth?fe.props.thumbWidth:(0,s.outerWidth)(fe.thumbsRef[0]),re=Math.floor(ce/oe),H=re<ve,V=H?ve-re:0;fe.setState(function(Q,Te){return{itemSize:oe,visibleItems:re,firstItem:H?fe.getFirstItem(Te.selectedItem):0,lastPosition:V,showArrows:H}})}}),j(P(fe),"handleClickItem",function(ve,ce,oe){if(!ae(oe)||oe.key==="Enter"){var re=fe.props.onSelectItem;typeof re=="function"&&re(ve,ce)}}),j(P(fe),"onSwipeStart",function(){fe.setState({swiping:!0})}),j(P(fe),"onSwipeEnd",function(){fe.setState({swiping:!1})}),j(P(fe),"onSwipeMove",function(ve){var ce=ve.x;if(!fe.state.itemSize||!fe.itemsWrapperRef||!fe.state.visibleItems)return!1;var oe=0,re=i.Children.count(fe.props.children),H=-(fe.state.firstItem*100)/fe.state.visibleItems,V=Math.max(re-fe.state.visibleItems,0),Q=-V*100/fe.state.visibleItems;H===oe&&ce>0&&(ce=0),H===Q&&ce<0&&(ce=0);var Te=fe.itemsWrapperRef.clientWidth,Re=H+100/(Te/ce);return fe.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){fe.itemsListRef.style[ne]=(0,m.default)(Re,"%",fe.props.axis)}),!0}),j(P(fe),"slideRight",function(ve){fe.moveTo(fe.state.firstItem-(typeof ve=="number"?ve:1))}),j(P(fe),"slideLeft",function(ve){fe.moveTo(fe.state.firstItem+(typeof ve=="number"?ve:1))}),j(P(fe),"moveTo",function(ve){ve=ve<0?0:ve,ve=ve>=fe.state.lastPosition?fe.state.lastPosition:ve,fe.setState({firstItem:ve})}),fe.state={selectedItem:me.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},fe}return S(he,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(fe){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==fe.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,f.default)().addEventListener("resize",this.updateSizes),(0,f.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,f.default)().removeEventListener("resize",this.updateSizes),(0,f.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(fe){var ve=fe;return fe>=this.state.lastPosition&&(ve=this.state.lastPosition),fe<this.state.firstItem+this.state.visibleItems&&(ve=this.state.firstItem),fe<this.state.firstItem&&(ve=fe),ve}},{key:"renderItems",value:function(){var fe=this;return this.props.children.map(function(ve,ce){var oe=l.default.ITEM(!1,ce===fe.state.selectedItem),re={key:ce,ref:function(V){return fe.setThumbsRef(V,ce)},className:oe,onClick:fe.handleClickItem.bind(fe,ce,fe.props.children[ce]),onKeyDown:fe.handleClickItem.bind(fe,ce,fe.props.children[ce]),"aria-label":"".concat(fe.props.labels.item," ").concat(ce+1),style:{width:fe.props.thumbWidth}};return i.default.createElement("li",b({},re,{role:"button",tabIndex:0}),ve)})}},{key:"render",value:function(){var fe=this;if(!this.props.children)return null;var ve=i.Children.count(this.props.children)>1,ce=this.state.showArrows&&this.state.firstItem>0,oe=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,re={},H=-this.state.firstItem*(this.state.itemSize||0),V=(0,m.default)(H,"px",this.props.axis),Q=this.props.transitionTime+"ms";return re={WebkitTransform:V,MozTransform:V,MsTransform:V,OTransform:V,transform:V,msTransform:V,WebkitTransitionDuration:Q,MozTransitionDuration:Q,MsTransitionDuration:Q,OTransitionDuration:Q,transitionDuration:Q,msTransitionDuration:Q},i.default.createElement("div",{className:l.default.CAROUSEL(!1)},i.default.createElement("div",{className:l.default.WRAPPER(!1),ref:this.setItemsWrapperRef},i.default.createElement("button",{type:"button",className:l.default.ARROW_PREV(!ce),onClick:function(){return fe.slideRight()},"aria-label":this.props.labels.leftArrow}),ve?i.default.createElement(u.default,{tagName:"ul",className:l.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:re,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):i.default.createElement("ul",{className:l.default.SLIDER(!1,this.state.swiping),ref:function(Re){return fe.setItemsListRef(Re)},style:re},this.renderItems()),i.default.createElement("button",{type:"button",className:l.default.ARROW_NEXT(!oe),onClick:function(){return fe.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),he}(i.Component);g.default=_,j(_,"displayName","Thumbs"),j(_,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},22775:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var i=l(t(46942));function l(u){return u&&u.__esModule?u:{default:u}}function s(u,f,p){return f in u?Object.defineProperty(u,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[f]=p,u}var m={ROOT:function(f){return(0,i.default)(s({"carousel-root":!0},f||"",!!f))},CAROUSEL:function(f){return(0,i.default)({carousel:!0,"carousel-slider":f})},WRAPPER:function(f,p){return(0,i.default)({"thumbs-wrapper":!f,"slider-wrapper":f,"axis-horizontal":p==="horizontal","axis-vertical":p!=="horizontal"})},SLIDER:function(f,p){return(0,i.default)({thumbs:!f,slider:f,animated:!p})},ITEM:function(f,p,v){return(0,i.default)({thumb:!f,slide:f,selected:p,previous:v})},ARROW_PREV:function(f){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":f})},ARROW_NEXT:function(f){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":f})},DOT:function(f){return(0,i.default)({dot:!0,selected:f})}};g.default=m},3619:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.outerWidth=void 0;var t=function(l){var s=l.offsetWidth,m=getComputedStyle(l);return s+=parseInt(m.marginLeft)+parseInt(m.marginRight),s};g.outerWidth=t},27428:(J,g,t)=>{"use strict";var i;i={value:!0},Object.defineProperty(g,"FN",{enumerable:!0,get:function(){return l.default}}),i={enumerable:!0,get:function(){return s.CarouselProps}},i={enumerable:!0,get:function(){return m.default}};var l=u(t(72504)),s=t(51613),m=u(t(91292));function u(f){return f&&f.__esModule?f:{default:f}}},87579:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var t=function(){return document};g.default=t},32069:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var t=function(){return window};g.default=t},24160:(J,g,t)=>{"use strict";t.r(g),t.d(g,{AbortedDeferredError:()=>Ye,Await:()=>Xr,BrowserRouter:()=>la,CompatRoute:()=>ht,CompatRouter:()=>Hn,Form:()=>gu,HashRouter:()=>ss,Link:()=>nu,MemoryRouter:()=>Er,NavLink:()=>Ls,Navigate:()=>Mi,NavigationType:()=>f,Outlet:()=>Ui,Route:()=>Nn,Router:()=>cr,RouterProvider:()=>vo,Routes:()=>ni,ScrollRestoration:()=>Us,StaticRouter:()=>Wr,UNSAFE_DataRouterContext:()=>kn,UNSAFE_DataRouterStateContext:()=>St,UNSAFE_LocationContext:()=>Cr,UNSAFE_NavigationContext:()=>An,UNSAFE_RouteContext:()=>_i,UNSAFE_useRouteId:()=>ja,UNSAFE_useScrollRestoration:()=>ci,createBrowserRouter:()=>Qn,createHashRouter:()=>Sr,createMemoryRouter:()=>Z,createPath:()=>R,createRoutesFromChildren:()=>Jo,createRoutesFromElements:()=>Jo,createSearchParams:()=>Rr,defer:()=>Ke,generatePath:()=>Re,isRouteErrorResponse:()=>ee,json:()=>ke,matchPath:()=>ne,matchRoutes:()=>ae,parsePath:()=>M,redirect:()=>it,redirectDocument:()=>At,renderMatches:()=>br,resolvePath:()=>Ee,unstable_HistoryRouter:()=>Rs,unstable_usePrompt:()=>Ue,useActionData:()=>Lr,useAsyncError:()=>Di,useAsyncValue:()=>Zi,useBeforeUnload:()=>Le,useBlocker:()=>Go,useFetcher:()=>qt,useFetchers:()=>In,useFormAction:()=>sn,useHref:()=>ir,useInRouterContext:()=>mt,useLinkClickHandler:()=>Al,useLoaderData:()=>rn,useLocation:()=>fn,useMatch:()=>tn,useMatches:()=>as,useNavigate:()=>$r,useNavigation:()=>hs,useNavigationType:()=>gt,useOutlet:()=>$i,useOutletContext:()=>gi,useParams:()=>eo,useResolvedPath:()=>ki,useRevalidator:()=>ro,useRouteError:()=>li,useRouteLoaderData:()=>Dr,useRoutes:()=>so,useSearchParams:()=>fl,useSubmit:()=>en});var i=t(96540),l=t.t(i,2),s=t(40961),m=t.t(s,2);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function u(){return u=Object.assign?Object.assign.bind():function(vt){for(var Vt=1;Vt<arguments.length;Vt++){var dn=arguments[Vt];for(var yn in dn)Object.prototype.hasOwnProperty.call(dn,yn)&&(vt[yn]=dn[yn])}return vt},u.apply(this,arguments)}var f;(function(vt){vt.Pop="POP",vt.Push="PUSH",vt.Replace="REPLACE"})(f||(f={}));const p="popstate";function v(vt){vt===void 0&&(vt={});let{initialEntries:Vt=["/"],initialIndex:dn,v5Compat:yn=!1}=vt,ar;ar=Vt.map((Da,La)=>bo(Da,typeof Da=="string"?null:Da.state,La===0?"default":void 0));let wi=Ao(dn??ar.length-1),mi=f.Pop,ho=null;function Ao(Da){return Math.min(Math.max(Da,0),ar.length-1)}function Mo(){return ar[wi]}function bo(Da,La,Ja){La===void 0&&(La=null);let Ya=O(ar?Mo().pathname:"/",Da,La,Ja);return y(Ya.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(Da)),Ya}function ca(Da){return typeof Da=="string"?Da:R(Da)}return{get index(){return wi},get action(){return mi},get location(){return Mo()},createHref:ca,createURL(Da){return new URL(ca(Da),"http://localhost")},encodeLocation(Da){let La=typeof Da=="string"?M(Da):Da;return{pathname:La.pathname||"",search:La.search||"",hash:La.hash||""}},push(Da,La){mi=f.Push;let Ja=bo(Da,La);wi+=1,ar.splice(wi,ar.length,Ja),yn&&ho&&ho({action:mi,location:Ja,delta:1})},replace(Da,La){mi=f.Replace;let Ja=bo(Da,La);ar[wi]=Ja,yn&&ho&&ho({action:mi,location:Ja,delta:0})},go(Da){mi=f.Pop;let La=Ao(wi+Da),Ja=ar[La];wi=La,ho&&ho({action:mi,location:Ja,delta:Da})},listen(Da){return ho=Da,()=>{ho=null}}}}function h(vt){vt===void 0&&(vt={});function Vt(yn,ar){let{pathname:wi,search:mi,hash:ho}=yn.location;return O("",{pathname:wi,search:mi,hash:ho},ar.state&&ar.state.usr||null,ar.state&&ar.state.key||"default")}function dn(yn,ar){return typeof ar=="string"?ar:R(ar)}return D(Vt,dn,null,vt)}function d(vt){vt===void 0&&(vt={});function Vt(ar,wi){let{pathname:mi="/",search:ho="",hash:Ao=""}=M(ar.location.hash.substr(1));return!mi.startsWith("/")&&!mi.startsWith(".")&&(mi="/"+mi),O("",{pathname:mi,search:ho,hash:Ao},wi.state&&wi.state.usr||null,wi.state&&wi.state.key||"default")}function dn(ar,wi){let mi=ar.document.querySelector("base"),ho="";if(mi&&mi.getAttribute("href")){let Ao=ar.location.href,Mo=Ao.indexOf("#");ho=Mo===-1?Ao:Ao.slice(0,Mo)}return ho+"#"+(typeof wi=="string"?wi:R(wi))}function yn(ar,wi){y(ar.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(wi)+")")}return D(Vt,dn,yn,vt)}function b(vt,Vt){if(vt===!1||vt===null||typeof vt>"u")throw new Error(Vt)}function y(vt,Vt){if(!vt){typeof console<"u"&&console.warn(Vt);try{throw new Error(Vt)}catch{}}}function w(){return Math.random().toString(36).substr(2,8)}function S(vt,Vt){return{usr:vt.state,key:vt.key,idx:Vt}}function O(vt,Vt,dn,yn){return dn===void 0&&(dn=null),u({pathname:typeof vt=="string"?vt:vt.pathname,search:"",hash:""},typeof Vt=="string"?M(Vt):Vt,{state:dn,key:Vt&&Vt.key||yn||w()})}function R(vt){let{pathname:Vt="/",search:dn="",hash:yn=""}=vt;return dn&&dn!=="?"&&(Vt+=dn.charAt(0)==="?"?dn:"?"+dn),yn&&yn!=="#"&&(Vt+=yn.charAt(0)==="#"?yn:"#"+yn),Vt}function M(vt){let Vt={};if(vt){let dn=vt.indexOf("#");dn>=0&&(Vt.hash=vt.substr(dn),vt=vt.substr(0,dn));let yn=vt.indexOf("?");yn>=0&&(Vt.search=vt.substr(yn),vt=vt.substr(0,yn)),vt&&(Vt.pathname=vt)}return Vt}function D(vt,Vt,dn,yn){yn===void 0&&(yn={});let{window:ar=document.defaultView,v5Compat:wi=!1}=yn,mi=ar.history,ho=f.Pop,Ao=null,Mo=bo();Mo==null&&(Mo=0,mi.replaceState(u({},mi.state,{idx:Mo}),""));function bo(){return(mi.state||{idx:null}).idx}function ca(){ho=f.Pop;let Ya=bo(),Aa=Ya==null?null:Ya-Mo;Mo=Ya,Ao&&Ao({action:ho,location:Ja.location,delta:Aa})}function sa(Ya,Aa){ho=f.Push;let ba=O(Ja.location,Ya,Aa);dn&&dn(ba,Ya),Mo=bo()+1;let Ka=S(ba,Mo),us=Ja.createHref(ba);try{mi.pushState(Ka,"",us)}catch(ii){if(ii instanceof DOMException&&ii.name==="DataCloneError")throw ii;ar.location.assign(us)}wi&&Ao&&Ao({action:ho,location:Ja.location,delta:1})}function Da(Ya,Aa){ho=f.Replace;let ba=O(Ja.location,Ya,Aa);dn&&dn(ba,Ya),Mo=bo();let Ka=S(ba,Mo),us=Ja.createHref(ba);mi.replaceState(Ka,"",us),wi&&Ao&&Ao({action:ho,location:Ja.location,delta:0})}function La(Ya){let Aa=ar.location.origin!=="null"?ar.location.origin:ar.location.href,ba=typeof Ya=="string"?Ya:R(Ya);return b(Aa,"No window.location.(origin|href) available to create URL for href: "+ba),new URL(ba,Aa)}let Ja={get action(){return ho},get location(){return vt(ar,mi)},listen(Ya){if(Ao)throw new Error("A history only accepts one active listener");return ar.addEventListener(p,ca),Ao=Ya,()=>{ar.removeEventListener(p,ca),Ao=null}},createHref(Ya){return Vt(ar,Ya)},createURL:La,encodeLocation(Ya){let Aa=La(Ya);return{pathname:Aa.pathname,search:Aa.search,hash:Aa.hash}},push:sa,replace:Da,go(Ya){return mi.go(Ya)}};return Ja}var P;(function(vt){vt.data="data",vt.deferred="deferred",vt.redirect="redirect",vt.error="error"})(P||(P={}));const T=new Set(["lazy","caseSensitive","path","id","index","children"]);function A(vt){return vt.index===!0}function j(vt,Vt,dn,yn){return dn===void 0&&(dn=[]),yn===void 0&&(yn={}),vt.map((ar,wi)=>{let mi=[...dn,wi],ho=typeof ar.id=="string"?ar.id:mi.join("-");if(b(ar.index!==!0||!ar.children,"Cannot specify children on an index route"),b(!yn[ho],'Found a route id collision on id "'+ho+`". Route id's must be globally unique within Data Router usages`),A(ar)){let Ao=u({},ar,Vt(ar),{id:ho});return yn[ho]=Ao,Ao}else{let Ao=u({},ar,Vt(ar),{id:ho,children:void 0});return yn[ho]=Ao,ar.children&&(Ao.children=j(ar.children,Vt,mi,yn)),Ao}})}function ae(vt,Vt,dn){dn===void 0&&(dn="/");let yn=typeof Vt=="string"?M(Vt):Vt,ar=Ae(yn.pathname||"/",dn);if(ar==null)return null;let wi=N(vt);he(wi);let mi=null;for(let ho=0;mi==null&&ho<wi.length;++ho)mi=Te(wi[ho],ye(ar));return mi}function _(vt,Vt){let{route:dn,pathname:yn,params:ar}=vt;return{id:dn.id,pathname:yn,params:ar,data:Vt[dn.id],handle:dn.handle}}function N(vt,Vt,dn,yn){Vt===void 0&&(Vt=[]),dn===void 0&&(dn=[]),yn===void 0&&(yn="");let ar=(wi,mi,ho)=>{let Ao={relativePath:ho===void 0?wi.path||"":ho,caseSensitive:wi.caseSensitive===!0,childrenIndex:mi,route:wi};Ao.relativePath.startsWith("/")&&(b(Ao.relativePath.startsWith(yn),'Absolute route path "'+Ao.relativePath+'" nested under path '+('"'+yn+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),Ao.relativePath=Ao.relativePath.slice(yn.length));let Mo=U([yn,Ao.relativePath]),bo=dn.concat(Ao);wi.children&&wi.children.length>0&&(b(wi.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+Mo+'".')),N(wi.children,Vt,bo,Mo)),!(wi.path==null&&!wi.index)&&Vt.push({path:Mo,score:V(Mo,wi.index),routesMeta:bo})};return vt.forEach((wi,mi)=>{var ho;if(wi.path===""||!((ho=wi.path)!=null&&ho.includes("?")))ar(wi,mi);else for(let Ao of W(wi.path))ar(wi,mi,Ao)}),Vt}function W(vt){let Vt=vt.split("/");if(Vt.length===0)return[];let[dn,...yn]=Vt,ar=dn.endsWith("?"),wi=dn.replace(/\?$/,"");if(yn.length===0)return ar?[wi,""]:[wi];let mi=W(yn.join("/")),ho=[];return ho.push(...mi.map(Ao=>Ao===""?wi:[wi,Ao].join("/"))),ar&&ho.push(...mi),ho.map(Ao=>vt.startsWith("/")&&Ao===""?"/":Ao)}function he(vt){vt.sort((Vt,dn)=>Vt.score!==dn.score?dn.score-Vt.score:Q(Vt.routesMeta.map(yn=>yn.childrenIndex),dn.routesMeta.map(yn=>yn.childrenIndex)))}const me=/^:[\w-]+$/,fe=3,ve=2,ce=1,oe=10,re=-2,H=vt=>vt==="*";function V(vt,Vt){let dn=vt.split("/"),yn=dn.length;return dn.some(H)&&(yn+=re),Vt&&(yn+=ve),dn.filter(ar=>!H(ar)).reduce((ar,wi)=>ar+(me.test(wi)?fe:wi===""?ce:oe),yn)}function Q(vt,Vt){return vt.length===Vt.length&&vt.slice(0,-1).every((yn,ar)=>yn===Vt[ar])?vt[vt.length-1]-Vt[Vt.length-1]:0}function Te(vt,Vt){let{routesMeta:dn}=vt,yn={},ar="/",wi=[];for(let mi=0;mi<dn.length;++mi){let ho=dn[mi],Ao=mi===dn.length-1,Mo=ar==="/"?Vt:Vt.slice(ar.length)||"/",bo=ne({path:ho.relativePath,caseSensitive:ho.caseSensitive,end:Ao},Mo);if(!bo)return null;Object.assign(yn,bo.params);let ca=ho.route;wi.push({params:yn,pathname:U([ar,bo.pathname]),pathnameBase:F(U([ar,bo.pathnameBase])),route:ca}),bo.pathnameBase!=="/"&&(ar=U([ar,bo.pathnameBase]))}return wi}function Re(vt,Vt){Vt===void 0&&(Vt={});let dn=vt;dn.endsWith("*")&&dn!=="*"&&!dn.endsWith("/*")&&(y(!1,'Route path "'+dn+'" will be treated as if it were '+('"'+dn.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+dn.replace(/\*$/,"/*")+'".')),dn=dn.replace(/\*$/,"/*"));const yn=dn.startsWith("/")?"/":"",ar=mi=>mi==null?"":typeof mi=="string"?mi:String(mi),wi=dn.split(/\/+/).map((mi,ho,Ao)=>{if(ho===Ao.length-1&&mi==="*")return ar(Vt["*"]);const bo=mi.match(/^:([\w-]+)(\??)$/);if(bo){const[,ca,sa]=bo;let Da=Vt[ca];return b(sa==="?"||Da!=null,'Missing ":'+ca+'" param'),ar(Da)}return mi.replace(/\?$/g,"")}).filter(mi=>!!mi);return yn+wi.join("/")}function ne(vt,Vt){typeof vt=="string"&&(vt={path:vt,caseSensitive:!1,end:!0});let[dn,yn]=pe(vt.path,vt.caseSensitive,vt.end),ar=Vt.match(dn);if(!ar)return null;let wi=ar[0],mi=wi.replace(/(.)\/+$/,"$1"),ho=ar.slice(1);return{params:yn.reduce((Mo,bo,ca)=>{let{paramName:sa,isOptional:Da}=bo;if(sa==="*"){let Ja=ho[ca]||"";mi=wi.slice(0,wi.length-Ja.length).replace(/(.)\/+$/,"$1")}const La=ho[ca];return Da&&!La?Mo[sa]=void 0:Mo[sa]=Se(La||"",sa),Mo},{}),pathname:wi,pathnameBase:mi,pattern:vt}}function pe(vt,Vt,dn){Vt===void 0&&(Vt=!1),dn===void 0&&(dn=!0),y(vt==="*"||!vt.endsWith("*")||vt.endsWith("/*"),'Route path "'+vt+'" will be treated as if it were '+('"'+vt.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+vt.replace(/\*$/,"/*")+'".'));let yn=[],ar="^"+vt.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(mi,ho,Ao)=>(yn.push({paramName:ho,isOptional:Ao!=null}),Ao?"/?([^\\/]+)?":"/([^\\/]+)"));return vt.endsWith("*")?(yn.push({paramName:"*"}),ar+=vt==="*"||vt==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):dn?ar+="\\/*$":vt!==""&&vt!=="/"&&(ar+="(?:(?=\\/|$))"),[new RegExp(ar,Vt?void 0:"i"),yn]}function ye(vt){try{return decodeURI(vt)}catch(Vt){return y(!1,'The URL path "'+vt+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+Vt+").")),vt}}function Se(vt,Vt){try{return decodeURIComponent(vt)}catch(dn){return y(!1,'The value for the URL param "'+Vt+'" will not be decoded because'+(' the string "'+vt+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+dn+").")),vt}}function Ae(vt,Vt){if(Vt==="/")return vt;if(!vt.toLowerCase().startsWith(Vt.toLowerCase()))return null;let dn=Vt.endsWith("/")?Vt.length-1:Vt.length,yn=vt.charAt(dn);return yn&&yn!=="/"?null:vt.slice(dn)||"/"}function Ee(vt,Vt){Vt===void 0&&(Vt="/");let{pathname:dn,search:yn="",hash:ar=""}=typeof vt=="string"?M(vt):vt;return{pathname:dn?dn.startsWith("/")?dn:xe(dn,Vt):Vt,search:Y(yn),hash:le(ar)}}function xe(vt,Vt){let dn=Vt.replace(/\/+$/,"").split("/");return vt.split("/").forEach(ar=>{ar===".."?dn.length>1&&dn.pop():ar!=="."&&dn.push(ar)}),dn.length>1?dn.join("/"):"/"}function nt(vt,Vt,dn,yn){return"Cannot include a '"+vt+"' character in a manually specified "+("`to."+Vt+"` field ["+JSON.stringify(yn)+"]. Please separate it out to the ")+("`to."+dn+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Tt(vt){return vt.filter((Vt,dn)=>dn===0||Vt.route.path&&Vt.route.path.length>0)}function pt(vt,Vt){let dn=Tt(vt);return Vt?dn.map((yn,ar)=>ar===vt.length-1?yn.pathname:yn.pathnameBase):dn.map(yn=>yn.pathnameBase)}function Rt(vt,Vt,dn,yn){yn===void 0&&(yn=!1);let ar;typeof vt=="string"?ar=M(vt):(ar=u({},vt),b(!ar.pathname||!ar.pathname.includes("?"),nt("?","pathname","search",ar)),b(!ar.pathname||!ar.pathname.includes("#"),nt("#","pathname","hash",ar)),b(!ar.search||!ar.search.includes("#"),nt("#","search","hash",ar)));let wi=vt===""||ar.pathname==="",mi=wi?"/":ar.pathname,ho;if(mi==null)ho=dn;else{let ca=Vt.length-1;if(!yn&&mi.startsWith("..")){let sa=mi.split("/");for(;sa[0]==="..";)sa.shift(),ca-=1;ar.pathname=sa.join("/")}ho=ca>=0?Vt[ca]:"/"}let Ao=Ee(ar,ho),Mo=mi&&mi!=="/"&&mi.endsWith("/"),bo=(wi||mi===".")&&dn.endsWith("/");return!Ao.pathname.endsWith("/")&&(Mo||bo)&&(Ao.pathname+="/"),Ao}function tt(vt){return vt===""||vt.pathname===""?"/":typeof vt=="string"?M(vt).pathname:vt.pathname}const U=vt=>vt.join("/").replace(/\/\/+/g,"/"),F=vt=>vt.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=vt=>!vt||vt==="?"?"":vt.startsWith("?")?vt:"?"+vt,le=vt=>!vt||vt==="#"?"":vt.startsWith("#")?vt:"#"+vt,ke=function(Vt,dn){dn===void 0&&(dn={});let yn=typeof dn=="number"?{status:dn}:dn,ar=new Headers(yn.headers);return ar.has("Content-Type")||ar.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(Vt),u({},yn,{headers:ar}))};class Ye extends Error{}class ft{constructor(Vt,dn){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],b(Vt&&typeof Vt=="object"&&!Array.isArray(Vt),"defer() only accepts plain objects");let yn;this.abortPromise=new Promise((wi,mi)=>yn=mi),this.controller=new AbortController;let ar=()=>yn(new Ye("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",ar),this.controller.signal.addEventListener("abort",ar),this.data=Object.entries(Vt).reduce((wi,mi)=>{let[ho,Ao]=mi;return Object.assign(wi,{[ho]:this.trackPromise(ho,Ao)})},{}),this.done&&this.unlistenAbortSignal(),this.init=dn}trackPromise(Vt,dn){if(!(dn instanceof Promise))return dn;this.deferredKeys.push(Vt),this.pendingKeysSet.add(Vt);let yn=Promise.race([dn,this.abortPromise]).then(ar=>this.onSettle(yn,Vt,void 0,ar),ar=>this.onSettle(yn,Vt,ar));return yn.catch(()=>{}),Object.defineProperty(yn,"_tracked",{get:()=>!0}),yn}onSettle(Vt,dn,yn,ar){if(this.controller.signal.aborted&&yn instanceof Ye)return this.unlistenAbortSignal(),Object.defineProperty(Vt,"_error",{get:()=>yn}),Promise.reject(yn);if(this.pendingKeysSet.delete(dn),this.done&&this.unlistenAbortSignal(),yn===void 0&&ar===void 0){let wi=new Error('Deferred data for key "'+dn+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(Vt,"_error",{get:()=>wi}),this.emit(!1,dn),Promise.reject(wi)}return ar===void 0?(Object.defineProperty(Vt,"_error",{get:()=>yn}),this.emit(!1,dn),Promise.reject(yn)):(Object.defineProperty(Vt,"_data",{get:()=>ar}),this.emit(!1,dn),ar)}emit(Vt,dn){this.subscribers.forEach(yn=>yn(Vt,dn))}subscribe(Vt){return this.subscribers.add(Vt),()=>this.subscribers.delete(Vt)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((Vt,dn)=>this.pendingKeysSet.delete(dn)),this.emit(!0)}async resolveData(Vt){let dn=!1;if(!this.done){let yn=()=>this.cancel();Vt.addEventListener("abort",yn),dn=await new Promise(ar=>{this.subscribe(wi=>{Vt.removeEventListener("abort",yn),(wi||this.done)&&ar(wi)})})}return dn}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return b(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((Vt,dn)=>{let[yn,ar]=dn;return Object.assign(Vt,{[yn]:Ut(ar)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function wt(vt){return vt instanceof Promise&&vt._tracked===!0}function Ut(vt){if(!wt(vt))return vt;if(vt._error)throw vt._error;return vt._data}const Ke=function(Vt,dn){dn===void 0&&(dn={});let yn=typeof dn=="number"?{status:dn}:dn;return new ft(Vt,yn)},it=function(Vt,dn){dn===void 0&&(dn=302);let yn=dn;typeof yn=="number"?yn={status:yn}:typeof yn.status>"u"&&(yn.status=302);let ar=new Headers(yn.headers);return ar.set("Location",Vt),new Response(null,u({},yn,{headers:ar}))},At=(vt,Vt)=>{let dn=it(vt,Vt);return dn.headers.set("X-Remix-Reload-Document","true"),dn};class et{constructor(Vt,dn,yn,ar){ar===void 0&&(ar=!1),this.status=Vt,this.statusText=dn||"",this.internal=ar,yn instanceof Error?(this.data=yn.toString(),this.error=yn):this.data=yn}}function ee(vt){return vt!=null&&typeof vt.status=="number"&&typeof vt.statusText=="string"&&typeof vt.internal=="boolean"&&"data"in vt}const I=["post","put","patch","delete"],K=new Set(I),ue=["get",...I],De=new Set(ue),He=new Set([301,302,303,307,308]),Fe=new Set([307,308]),ze={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},We={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},_t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ct=vt=>({hasErrorBoundary:!!vt.hasErrorBoundary}),Ge="remix-router-transitions";function st(vt){const Vt=vt.window?vt.window:typeof window<"u"?window:void 0,dn=typeof Vt<"u"&&typeof Vt.document<"u"&&typeof Vt.document.createElement<"u",yn=!dn;b(vt.routes.length>0,"You must provide a non-empty routes array to createRouter");let ar;if(vt.mapRouteProperties)ar=vt.mapRouteProperties;else if(vt.detectErrorBoundary){let ia=vt.detectErrorBoundary;ar=Sa=>({hasErrorBoundary:ia(Sa)})}else ar=ct;let wi={},mi=j(vt.routes,ar,void 0,wi),ho,Ao=vt.basename||"/",Mo=u({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},vt.future),bo=null,ca=new Set,sa=null,Da=null,La=null,Ja=vt.hydrationData!=null,Ya=ae(mi,vt.history.location,Ao),Aa=null;if(Ya==null){let ia=hn(404,{pathname:vt.history.location.pathname}),{matches:Sa,route:Ea}=Dt(mi);Ya=Sa,Aa={[Ea.id]:ia}}let ba,Ka=Ya.some(ia=>ia.route.lazy),us=Ya.some(ia=>ia.route.loader);if(Ka)ba=!1;else if(!us)ba=!0;else if(Mo.v7_partialHydration){let ia=vt.hydrationData?vt.hydrationData.loaderData:null,Sa=vt.hydrationData?vt.hydrationData.errors:null;ba=Ya.every(Ea=>Ea.route.loader&&Ea.route.loader.hydrate!==!0&&(ia&&ia[Ea.route.id]!==void 0||Sa&&Sa[Ea.route.id]!==void 0))}else ba=vt.hydrationData!=null;let ii,Wo={historyAction:vt.history.action,location:vt.history.location,matches:Ya,initialized:ba,navigation:ze,restoreScrollPosition:vt.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:vt.hydrationData&&vt.hydrationData.loaderData||{},actionData:vt.hydrationData&&vt.hydrationData.actionData||null,errors:vt.hydrationData&&vt.hydrationData.errors||Aa,fetchers:new Map,blockers:new Map},Ra=f.Pop,_a=!1,Wa,eu=!1,Ws=new Map,Ne=null,kt=!1,Rn=!1,jn=[],_r=[],xr=new Map,oi=0,ti=-1,Ri=new Map,Fi=new Set,Gi=new Map,yo=new Map,Do=new Set,po=new Map,Ji=new Map,Uo=!1;function Ia(){if(bo=vt.history.listen(ia=>{let{action:Sa,location:Ea,delta:rs}=ia;if(Uo){Uo=!1;return}y(Ji.size===0||rs!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ns=il({currentLocation:Wo.location,nextLocation:Ea,historyAction:Sa});if(Ns&&rs!=null){Uo=!0,vt.history.go(rs*-1),Wl(Ns,{state:"blocked",location:Ea,proceed(){Wl(Ns,{state:"proceeding",proceed:void 0,reset:void 0,location:Ea}),vt.history.go(rs)},reset(){let Xt=new Map(Wo.blockers);Xt.set(Ns,We),xo({blockers:Xt})}});return}return Na(Sa,Ea)}),dn){Gr(Vt,Ws);let ia=()=>un(Vt,Ws);Vt.addEventListener("pagehide",ia),Ne=()=>Vt.removeEventListener("pagehide",ia)}return Wo.initialized||Na(f.Pop,Wo.location,{initialHydration:!0}),ii}function za(){bo&&bo(),Ne&&Ne(),ca.clear(),Wa&&Wa.abort(),Wo.fetchers.forEach((ia,Sa)=>pl(Sa)),Wo.blockers.forEach((ia,Sa)=>Ul(Sa))}function Ma(ia){return ca.add(ia),()=>ca.delete(ia)}function xo(ia,Sa){Sa===void 0&&(Sa={}),Wo=u({},Wo,ia);let Ea=[],rs=[];Mo.v7_fetcherPersist&&Wo.fetchers.forEach((Ns,Xt)=>{Ns.state==="idle"&&(Do.has(Xt)?rs.push(Xt):Ea.push(Xt))}),[...ca].forEach(Ns=>Ns(Wo,{deletedFetchers:rs,unstable_viewTransitionOpts:Sa.viewTransitionOpts,unstable_flushSync:Sa.flushSync===!0})),Mo.v7_fetcherPersist&&(Ea.forEach(Ns=>Wo.fetchers.delete(Ns)),rs.forEach(Ns=>pl(Ns)))}function xs(ia,Sa,Ea){var rs,Ns;let{flushSync:Xt}=Ea===void 0?{}:Ea,bn=Wo.actionData!=null&&Wo.navigation.formMethod!=null&&ui(Wo.navigation.formMethod)&&Wo.navigation.state==="loading"&&((rs=ia.state)==null?void 0:rs._isRedirect)!==!0,Dn;Sa.actionData?Object.keys(Sa.actionData).length>0?Dn=Sa.actionData:Dn=null:bn?Dn=Wo.actionData:Dn=null;let Ii=Sa.loaderData?gn(Wo.loaderData,Sa.loaderData,Sa.matches||[],Sa.errors):Wo.loaderData,ko=Wo.blockers;ko.size>0&&(ko=new Map(ko),ko.forEach((Fa,Ua)=>ko.set(Ua,We)));let fa=_a===!0||Wo.navigation.formMethod!=null&&ui(Wo.navigation.formMethod)&&((Ns=ia.state)==null?void 0:Ns._isRedirect)!==!0;ho&&(mi=ho,ho=void 0),kt||Ra===f.Pop||(Ra===f.Push?vt.history.push(ia,ia.state):Ra===f.Replace&&vt.history.replace(ia,ia.state));let Zo;if(Ra===f.Pop){let Fa=Ws.get(Wo.location.pathname);Fa&&Fa.has(ia.pathname)?Zo={currentLocation:Wo.location,nextLocation:ia}:Ws.has(ia.pathname)&&(Zo={currentLocation:ia,nextLocation:Wo.location})}else if(eu){let Fa=Ws.get(Wo.location.pathname);Fa?Fa.add(ia.pathname):(Fa=new Set([ia.pathname]),Ws.set(Wo.location.pathname,Fa)),Zo={currentLocation:Wo.location,nextLocation:ia}}xo(u({},Sa,{actionData:Dn,loaderData:Ii,historyAction:Ra,location:ia,initialized:!0,navigation:ze,revalidation:"idle",restoreScrollPosition:ll(ia,Sa.matches||Wo.matches),preventScrollReset:fa,blockers:ko}),{viewTransitionOpts:Zo,flushSync:Xt===!0}),Ra=f.Pop,_a=!1,eu=!1,kt=!1,Rn=!1,jn=[],_r=[]}async function va(ia,Sa){if(typeof ia=="number"){vt.history.go(ia);return}let Ea=be(Wo.location,Wo.matches,Ao,Mo.v7_prependBasename,ia,Mo.v7_relativeSplatPath,Sa?.fromRouteId,Sa?.relative),{path:rs,submission:Ns,error:Xt}=Qe(Mo.v7_normalizeFormMethod,!1,Ea,Sa),bn=Wo.location,Dn=O(Wo.location,rs,Sa&&Sa.state);Dn=u({},Dn,vt.history.encodeLocation(Dn));let Ii=Sa&&Sa.replace!=null?Sa.replace:void 0,ko=f.Push;Ii===!0?ko=f.Replace:Ii===!1||Ns!=null&&ui(Ns.formMethod)&&Ns.formAction===Wo.location.pathname+Wo.location.search&&(ko=f.Replace);let fa=Sa&&"preventScrollReset"in Sa?Sa.preventScrollReset===!0:void 0,Zo=(Sa&&Sa.unstable_flushSync)===!0,Fa=il({currentLocation:bn,nextLocation:Dn,historyAction:ko});if(Fa){Wl(Fa,{state:"blocked",location:Dn,proceed(){Wl(Fa,{state:"proceeding",proceed:void 0,reset:void 0,location:Dn}),va(ia,Sa)},reset(){let Ua=new Map(Wo.blockers);Ua.set(Fa,We),xo({blockers:Ua})}});return}return await Na(ko,Dn,{submission:Ns,pendingError:Xt,preventScrollReset:fa,replace:Sa&&Sa.replace,enableViewTransition:Sa&&Sa.unstable_viewTransition,flushSync:Zo})}function Pa(){if(uu(),xo({revalidation:"loading"}),Wo.navigation.state!=="submitting"){if(Wo.navigation.state==="idle"){Na(Wo.historyAction,Wo.location,{startUninterruptedRevalidation:!0});return}Na(Ra||Wo.historyAction,Wo.navigation.location,{overrideNavigation:Wo.navigation})}}async function Na(ia,Sa,Ea){Wa&&Wa.abort(),Wa=null,Ra=ia,kt=(Ea&&Ea.startUninterruptedRevalidation)===!0,Ql(Wo.location,Wo.matches),_a=(Ea&&Ea.preventScrollReset)===!0,eu=(Ea&&Ea.enableViewTransition)===!0;let rs=ho||mi,Ns=Ea&&Ea.overrideNavigation,Xt=ae(rs,Sa,Ao),bn=(Ea&&Ea.flushSync)===!0;if(!Xt){let Ua=hn(404,{pathname:Sa.pathname}),{matches:ms,route:Fs}=Dt(rs);_l(),xs(Sa,{matches:ms,loaderData:{},errors:{[Fs.id]:Ua}},{flushSync:bn});return}if(Wo.initialized&&!Rn&&Or(Wo.location,Sa)&&!(Ea&&Ea.submission&&ui(Ea.submission.formMethod))){xs(Sa,{matches:Xt},{flushSync:bn});return}Wa=new AbortController;let Dn=Zt(vt.history,Sa,Wa.signal,Ea&&Ea.submission),Ii,ko;if(Ea&&Ea.pendingError)ko={[Qt(Xt).route.id]:Ea.pendingError};else if(Ea&&Ea.submission&&ui(Ea.submission.formMethod)){let Ua=await Xa(Dn,Sa,Ea.submission,Xt,{replace:Ea.replace,flushSync:bn});if(Ua.shortCircuited)return;Ii=Ua.pendingActionData,ko=Ua.pendingActionError,Ns=xi(Sa,Ea.submission),bn=!1,Dn=new Request(Dn.url,{signal:Dn.signal})}let{shortCircuited:fa,loaderData:Zo,errors:Fa}=await wa(Dn,Sa,Xt,Ns,Ea&&Ea.submission,Ea&&Ea.fetcherSubmission,Ea&&Ea.replace,Ea&&Ea.initialHydration===!0,bn,Ii,ko);fa||(Wa=null,xs(Sa,u({matches:Xt},Ii?{actionData:Ii}:{},{loaderData:Zo,errors:Fa})))}async function Xa(ia,Sa,Ea,rs,Ns){Ns===void 0&&(Ns={}),uu();let Xt=Ai(Sa,Ea);xo({navigation:Xt},{flushSync:Ns.flushSync===!0});let bn,Dn=Si(rs,Sa);if(!Dn.route.action&&!Dn.route.lazy)bn={type:P.error,error:hn(405,{method:ia.method,pathname:Sa.pathname,routeId:Dn.route.id})};else if(bn=await Ct("action",ia,Dn,rs,wi,ar,Ao,Mo.v7_relativeSplatPath),ia.signal.aborted)return{shortCircuited:!0};if(Gn(bn)){let Ii;return Ns&&Ns.replace!=null?Ii=Ns.replace:Ii=bn.location===Wo.location.pathname+Wo.location.search,await $a(Wo,bn,{submission:Ea,replace:Ii}),{shortCircuited:!0}}if(En(bn)){let Ii=Qt(rs,Dn.route.id);return(Ns&&Ns.replace)!==!0&&(Ra=f.Push),{pendingActionData:{},pendingActionError:{[Ii.route.id]:bn.error}}}if(Ln(bn))throw hn(400,{type:"defer-action"});return{pendingActionData:{[Dn.route.id]:bn.data}}}async function wa(ia,Sa,Ea,rs,Ns,Xt,bn,Dn,Ii,ko,fa){let Zo=rs||xi(Sa,Ns),Fa=Ns||Xt||Kr(Zo),Ua=ho||mi,[ms,Fs]=nn(vt.history,Wo,Ea,Fa,Sa,Mo.v7_partialHydration&&Dn===!0,Rn,jn,_r,Do,Gi,Fi,Ua,Ao,ko,fa);if(_l(jl=>!(Ea&&Ea.some(nc=>nc.route.id===jl))||ms&&ms.some(nc=>nc.route.id===jl)),ti=++oi,ms.length===0&&Fs.length===0){let jl=Au();return xs(Sa,u({matches:Ea,loaderData:{},errors:fa||null},ko?{actionData:ko}:{},jl?{fetchers:new Map(Wo.fetchers)}:{}),{flushSync:Ii}),{shortCircuited:!0}}if(!kt&&(!Mo.v7_partialHydration||!Dn)){Fs.forEach(nc=>{let Fl=Wo.fetchers.get(nc.key),Zu=Pi(void 0,Fl?Fl.data:void 0);Wo.fetchers.set(nc.key,Zu)});let jl=ko||Wo.actionData;xo(u({navigation:Zo},jl?Object.keys(jl).length===0?{actionData:null}:{actionData:jl}:{},Fs.length>0?{fetchers:new Map(Wo.fetchers)}:{}),{flushSync:Ii})}Fs.forEach(jl=>{xr.has(jl.key)&&ks(jl.key),jl.controller&&xr.set(jl.key,jl.controller)});let ws=()=>Fs.forEach(jl=>ks(jl.key));Wa&&Wa.signal.addEventListener("abort",ws);let{results:fu,loaderResults:wu,fetcherResults:Du}=await ns(Wo.matches,Ea,ms,Fs,ia);if(ia.signal.aborted)return{shortCircuited:!0};Wa&&Wa.signal.removeEventListener("abort",ws),Fs.forEach(jl=>xr.delete(jl.key));let zu=cn(fu);if(zu){if(zu.idx>=ms.length){let jl=Fs[zu.idx-ms.length].key;Fi.add(jl)}return await $a(Wo,zu.result,{replace:bn}),{shortCircuited:!0}}let{loaderData:Il,errors:bc}=Xe(Wo,Ea,ms,wu,fa,Fs,Du,po);po.forEach((jl,nc)=>{jl.subscribe(Fl=>{(Fl||jl.done)&&po.delete(nc)})});let Gl=Au(),oc=wl(ti),ac=Gl||oc||Fs.length>0;return u({loaderData:Il,errors:bc},ac?{fetchers:new Map(Wo.fetchers)}:{})}function Ga(ia,Sa,Ea,rs){if(yn)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");xr.has(ia)&&ks(ia);let Ns=(rs&&rs.unstable_flushSync)===!0,Xt=ho||mi,bn=be(Wo.location,Wo.matches,Ao,Mo.v7_prependBasename,Ea,Mo.v7_relativeSplatPath,Sa,rs?.relative),Dn=ae(Xt,bn,Ao);if(!Dn){Lu(ia,Sa,hn(404,{pathname:bn}),{flushSync:Ns});return}let{path:Ii,submission:ko,error:fa}=Qe(Mo.v7_normalizeFormMethod,!0,bn,rs);if(fa){Lu(ia,Sa,fa,{flushSync:Ns});return}let Zo=Si(Dn,Ii);if(_a=(rs&&rs.preventScrollReset)===!0,ko&&ui(ko.formMethod)){vs(ia,Sa,Ii,Zo,Dn,Ns,ko);return}Gi.set(ia,{routeId:Sa,path:Ii}),Za(ia,Sa,Ii,Zo,Dn,Ns,ko)}async function vs(ia,Sa,Ea,rs,Ns,Xt,bn){if(uu(),Gi.delete(ia),!rs.route.action&&!rs.route.lazy){let nc=hn(405,{method:bn.formMethod,pathname:Ea,routeId:Sa});Lu(ia,Sa,nc,{flushSync:Xt});return}let Dn=Wo.fetchers.get(ia);Mu(ia,io(bn,Dn),{flushSync:Xt});let Ii=new AbortController,ko=Zt(vt.history,Ea,Ii.signal,bn);xr.set(ia,Ii);let fa=oi,Zo=await Ct("action",ko,rs,Ns,wi,ar,Ao,Mo.v7_relativeSplatPath);if(ko.signal.aborted){xr.get(ia)===Ii&&xr.delete(ia);return}if(Mo.v7_fetcherPersist&&Do.has(ia)){if(Gn(Zo)||En(Zo)){Mu(ia,lo(void 0));return}}else{if(Gn(Zo))if(xr.delete(ia),ti>fa){Mu(ia,lo(void 0));return}else return Fi.add(ia),Mu(ia,Pi(bn)),$a(Wo,Zo,{fetcherSubmission:bn});if(En(Zo)){Lu(ia,Sa,Zo.error);return}}if(Ln(Zo))throw hn(400,{type:"defer-action"});let Fa=Wo.navigation.location||Wo.location,Ua=Zt(vt.history,Fa,Ii.signal),ms=ho||mi,Fs=Wo.navigation.state!=="idle"?ae(ms,Wo.navigation.location,Ao):Wo.matches;b(Fs,"Didn't find any matches after fetcher action");let ws=++oi;Ri.set(ia,ws);let fu=Pi(bn,Zo.data);Wo.fetchers.set(ia,fu);let[wu,Du]=nn(vt.history,Wo,Fs,bn,Fa,!1,Rn,jn,_r,Do,Gi,Fi,ms,Ao,{[rs.route.id]:Zo.data},void 0);Du.filter(nc=>nc.key!==ia).forEach(nc=>{let Fl=nc.key,Zu=Wo.fetchers.get(Fl),Ac=Pi(void 0,Zu?Zu.data:void 0);Wo.fetchers.set(Fl,Ac),xr.has(Fl)&&ks(Fl),nc.controller&&xr.set(Fl,nc.controller)}),xo({fetchers:new Map(Wo.fetchers)});let zu=()=>Du.forEach(nc=>ks(nc.key));Ii.signal.addEventListener("abort",zu);let{results:Il,loaderResults:bc,fetcherResults:Gl}=await ns(Wo.matches,Fs,wu,Du,Ua);if(Ii.signal.aborted)return;Ii.signal.removeEventListener("abort",zu),Ri.delete(ia),xr.delete(ia),Du.forEach(nc=>xr.delete(nc.key));let oc=cn(Il);if(oc){if(oc.idx>=wu.length){let nc=Du[oc.idx-wu.length].key;Fi.add(nc)}return $a(Wo,oc.result)}let{loaderData:ac,errors:jl}=Xe(Wo,Wo.matches,wu,bc,void 0,Du,Gl,po);if(Wo.fetchers.has(ia)){let nc=lo(Zo.data);Wo.fetchers.set(ia,nc)}wl(ws),Wo.navigation.state==="loading"&&ws>ti?(b(Ra,"Expected pending action"),Wa&&Wa.abort(),xs(Wo.navigation.location,{matches:Fs,loaderData:ac,errors:jl,fetchers:new Map(Wo.fetchers)})):(xo({errors:jl,loaderData:gn(Wo.loaderData,ac,Fs,jl),fetchers:new Map(Wo.fetchers)}),Rn=!1)}async function Za(ia,Sa,Ea,rs,Ns,Xt,bn){let Dn=Wo.fetchers.get(ia);Mu(ia,Pi(bn,Dn?Dn.data:void 0),{flushSync:Xt});let Ii=new AbortController,ko=Zt(vt.history,Ea,Ii.signal);xr.set(ia,Ii);let fa=oi,Zo=await Ct("loader",ko,rs,Ns,wi,ar,Ao,Mo.v7_relativeSplatPath);if(Ln(Zo)&&(Zo=await ri(Zo,ko.signal,!0)||Zo),xr.get(ia)===Ii&&xr.delete(ia),!ko.signal.aborted){if(Do.has(ia)){Mu(ia,lo(void 0));return}if(Gn(Zo))if(ti>fa){Mu(ia,lo(void 0));return}else{Fi.add(ia),await $a(Wo,Zo);return}if(En(Zo)){Lu(ia,Sa,Zo.error);return}b(!Ln(Zo),"Unhandled fetcher deferred data"),Mu(ia,lo(Zo.data))}}async function $a(ia,Sa,Ea){let{submission:rs,fetcherSubmission:Ns,replace:Xt}=Ea===void 0?{}:Ea;Sa.revalidate&&(Rn=!0);let bn=O(ia.location,Sa.location,{_isRedirect:!0});if(b(bn,"Expected a location on the redirect navigation"),dn){let Fa=!1;if(Sa.reloadDocument)Fa=!0;else if(_t.test(Sa.location)){const Ua=vt.history.createURL(Sa.location);Fa=Ua.origin!==Vt.location.origin||Ae(Ua.pathname,Ao)==null}if(Fa){Xt?Vt.location.replace(Sa.location):Vt.location.assign(Sa.location);return}}Wa=null;let Dn=Xt===!0?f.Replace:f.Push,{formMethod:Ii,formAction:ko,formEncType:fa}=ia.navigation;!rs&&!Ns&&Ii&&ko&&fa&&(rs=Kr(ia.navigation));let Zo=rs||Ns;if(Fe.has(Sa.status)&&Zo&&ui(Zo.formMethod))await Na(Dn,bn,{submission:u({},Zo,{formAction:Sa.location}),preventScrollReset:_a});else{let Fa=xi(bn,rs);await Na(Dn,bn,{overrideNavigation:Fa,fetcherSubmission:Ns,preventScrollReset:_a})}}async function ns(ia,Sa,Ea,rs,Ns){let Xt=await Promise.all([...Ea.map(Ii=>Ct("loader",Ns,Ii,Sa,wi,ar,Ao,Mo.v7_relativeSplatPath)),...rs.map(Ii=>Ii.matches&&Ii.match&&Ii.controller?Ct("loader",Zt(vt.history,Ii.path,Ii.controller.signal),Ii.match,Ii.matches,wi,ar,Ao,Mo.v7_relativeSplatPath):{type:P.error,error:hn(404,{pathname:Ii.path})})]),bn=Xt.slice(0,Ea.length),Dn=Xt.slice(Ea.length);return await Promise.all([bi(ia,Ea,bn,bn.map(()=>Ns.signal),!1,Wo.loaderData),bi(ia,rs.map(Ii=>Ii.match),Dn,rs.map(Ii=>Ii.controller?Ii.controller.signal:null),!0)]),{results:Xt,loaderResults:bn,fetcherResults:Dn}}function uu(){Rn=!0,jn.push(..._l()),Gi.forEach((ia,Sa)=>{xr.has(Sa)&&(_r.push(Sa),ks(Sa))})}function Mu(ia,Sa,Ea){Ea===void 0&&(Ea={}),Wo.fetchers.set(ia,Sa),xo({fetchers:new Map(Wo.fetchers)},{flushSync:(Ea&&Ea.flushSync)===!0})}function Lu(ia,Sa,Ea,rs){rs===void 0&&(rs={});let Ns=Qt(Wo.matches,Sa);pl(ia),xo({errors:{[Ns.route.id]:Ea},fetchers:new Map(Wo.fetchers)},{flushSync:(rs&&rs.flushSync)===!0})}function ju(ia){return Mo.v7_fetcherPersist&&(yo.set(ia,(yo.get(ia)||0)+1),Do.has(ia)&&Do.delete(ia)),Wo.fetchers.get(ia)||qe}function pl(ia){let Sa=Wo.fetchers.get(ia);xr.has(ia)&&!(Sa&&Sa.state==="loading"&&Ri.has(ia))&&ks(ia),Gi.delete(ia),Ri.delete(ia),Fi.delete(ia),Do.delete(ia),Wo.fetchers.delete(ia)}function pu(ia){if(Mo.v7_fetcherPersist){let Sa=(yo.get(ia)||0)-1;Sa<=0?(yo.delete(ia),Do.add(ia)):yo.set(ia,Sa)}else pl(ia);xo({fetchers:new Map(Wo.fetchers)})}function ks(ia){let Sa=xr.get(ia);b(Sa,"Expected fetch controller: "+ia),Sa.abort(),xr.delete(ia)}function su(ia){for(let Sa of ia){let Ea=ju(Sa),rs=lo(Ea.data);Wo.fetchers.set(Sa,rs)}}function Au(){let ia=[],Sa=!1;for(let Ea of Fi){let rs=Wo.fetchers.get(Ea);b(rs,"Expected fetcher: "+Ea),rs.state==="loading"&&(Fi.delete(Ea),ia.push(Ea),Sa=!0)}return su(ia),Sa}function wl(ia){let Sa=[];for(let[Ea,rs]of Ri)if(rs<ia){let Ns=Wo.fetchers.get(Ea);b(Ns,"Expected fetcher: "+Ea),Ns.state==="loading"&&(ks(Ea),Ri.delete(Ea),Sa.push(Ea))}return su(Sa),Sa.length>0}function bu(ia,Sa){let Ea=Wo.blockers.get(ia)||We;return Ji.get(ia)!==Sa&&Ji.set(ia,Sa),Ea}function Ul(ia){Wo.blockers.delete(ia),Ji.delete(ia)}function Wl(ia,Sa){let Ea=Wo.blockers.get(ia)||We;b(Ea.state==="unblocked"&&Sa.state==="blocked"||Ea.state==="blocked"&&Sa.state==="blocked"||Ea.state==="blocked"&&Sa.state==="proceeding"||Ea.state==="blocked"&&Sa.state==="unblocked"||Ea.state==="proceeding"&&Sa.state==="unblocked","Invalid blocker state transition: "+Ea.state+" -> "+Sa.state);let rs=new Map(Wo.blockers);rs.set(ia,Sa),xo({blockers:rs})}function il(ia){let{currentLocation:Sa,nextLocation:Ea,historyAction:rs}=ia;if(Ji.size===0)return;Ji.size>1&&y(!1,"A router only supports one blocker at a time");let Ns=Array.from(Ji.entries()),[Xt,bn]=Ns[Ns.length-1],Dn=Wo.blockers.get(Xt);if(!(Dn&&Dn.state==="proceeding")&&bn({currentLocation:Sa,nextLocation:Ea,historyAction:rs}))return Xt}function _l(ia){let Sa=[];return po.forEach((Ea,rs)=>{(!ia||ia(rs))&&(Ea.cancel(),Sa.push(rs),po.delete(rs))}),Sa}function Hs(ia,Sa,Ea){if(sa=ia,La=Sa,Da=Ea||null,!Ja&&Wo.navigation===ze){Ja=!0;let rs=ll(Wo.location,Wo.matches);rs!=null&&xo({restoreScrollPosition:rs})}return()=>{sa=null,La=null,Da=null}}function Pl(ia,Sa){return Da&&Da(ia,Sa.map(rs=>_(rs,Wo.loaderData)))||ia.key}function Ql(ia,Sa){if(sa&&La){let Ea=Pl(ia,Sa);sa[Ea]=La()}}function ll(ia,Sa){if(sa){let Ea=Pl(ia,Sa),rs=sa[Ea];if(typeof rs=="number")return rs}return null}function Kl(ia){wi={},ho=j(ia,ar,void 0,wi)}return ii={get basename(){return Ao},get future(){return Mo},get state(){return Wo},get routes(){return mi},get window(){return Vt},initialize:Ia,subscribe:Ma,enableScrollRestoration:Hs,navigate:va,fetch:Ga,revalidate:Pa,createHref:ia=>vt.history.createHref(ia),encodeLocation:ia=>vt.history.encodeLocation(ia),getFetcher:ju,deleteFetcher:pu,dispose:za,getBlocker:bu,deleteBlocker:Ul,_internalFetchControllers:xr,_internalActiveDeferreds:po,_internalSetRoutes:Kl},ii}const Me=Symbol("deferred");function ie(vt,Vt){b(vt.length>0,"You must provide a non-empty routes array to createStaticHandler");let dn={},yn=(Vt?Vt.basename:null)||"/",ar;if(Vt!=null&&Vt.mapRouteProperties)ar=Vt.mapRouteProperties;else if(Vt!=null&&Vt.detectErrorBoundary){let sa=Vt.detectErrorBoundary;ar=Da=>({hasErrorBoundary:sa(Da)})}else ar=ct;let wi=u({v7_relativeSplatPath:!1},Vt?Vt.future:null),mi=j(vt,ar,void 0,dn);async function ho(sa,Da){let{requestContext:La}=Da===void 0?{}:Da,Ja=new URL(sa.url),Ya=sa.method,Aa=O("",R(Ja),null,"default"),ba=ae(mi,Aa,yn);if(!jr(Ya)&&Ya!=="HEAD"){let us=hn(405,{method:Ya}),{matches:ii,route:Wo}=Dt(mi);return{basename:yn,location:Aa,matches:ii,loaderData:{},actionData:null,errors:{[Wo.id]:us},statusCode:us.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!ba){let us=hn(404,{pathname:Aa.pathname}),{matches:ii,route:Wo}=Dt(mi);return{basename:yn,location:Aa,matches:ii,loaderData:{},actionData:null,errors:{[Wo.id]:us},statusCode:us.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let Ka=await Mo(sa,Aa,ba,La);return sr(Ka)?Ka:u({location:Aa,basename:yn},Ka)}async function Ao(sa,Da){let{routeId:La,requestContext:Ja}=Da===void 0?{}:Da,Ya=new URL(sa.url),Aa=sa.method,ba=O("",R(Ya),null,"default"),Ka=ae(mi,ba,yn);if(!jr(Aa)&&Aa!=="HEAD"&&Aa!=="OPTIONS")throw hn(405,{method:Aa});if(!Ka)throw hn(404,{pathname:ba.pathname});let us=La?Ka.find(_a=>_a.route.id===La):Si(Ka,ba);if(La&&!us)throw hn(403,{pathname:ba.pathname,routeId:La});if(!us)throw hn(404,{pathname:ba.pathname});let ii=await Mo(sa,ba,Ka,Ja,us);if(sr(ii))return ii;let Wo=ii.errors?Object.values(ii.errors)[0]:void 0;if(Wo!==void 0)throw Wo;if(ii.actionData)return Object.values(ii.actionData)[0];if(ii.loaderData){var Ra;let _a=Object.values(ii.loaderData)[0];return(Ra=ii.activeDeferreds)!=null&&Ra[us.route.id]&&(_a[Me]=ii.activeDeferreds[us.route.id]),_a}}async function Mo(sa,Da,La,Ja,Ya){b(sa.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(ui(sa.method.toLowerCase()))return await bo(sa,La,Ya||Si(La,Da),Ja,Ya!=null);let Aa=await ca(sa,La,Ja,Ya);return sr(Aa)?Aa:u({},Aa,{actionData:null,actionHeaders:{}})}catch(Aa){if(yi(Aa)){if(Aa.type===P.error)throw Aa.response;return Aa.response}if(pi(Aa))return Aa;throw Aa}}async function bo(sa,Da,La,Ja,Ya){let Aa;if(!La.route.action&&!La.route.lazy){let us=hn(405,{method:sa.method,pathname:new URL(sa.url).pathname,routeId:La.route.id});if(Ya)throw us;Aa={type:P.error,error:us}}else if(Aa=await Ct("action",sa,La,Da,dn,ar,yn,wi.v7_relativeSplatPath,{isStaticRequest:!0,isRouteRequest:Ya,requestContext:Ja}),sa.signal.aborted){let us=Ya?"queryRoute":"query";throw new Error(us+"() call aborted: "+sa.method+" "+sa.url)}if(Gn(Aa))throw new Response(null,{status:Aa.status,headers:{Location:Aa.location}});if(Ln(Aa)){let us=hn(400,{type:"defer-action"});if(Ya)throw us;Aa={type:P.error,error:us}}if(Ya){if(En(Aa))throw Aa.error;return{matches:[La],loaderData:{},actionData:{[La.route.id]:Aa.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(En(Aa)){let us=Qt(Da,La.route.id),ii=await ca(sa,Da,Ja,void 0,{[us.route.id]:Aa.error});return u({},ii,{statusCode:ee(Aa.error)?Aa.error.status:500,actionData:null,actionHeaders:u({},Aa.headers?{[La.route.id]:Aa.headers}:{})})}let ba=new Request(sa.url,{headers:sa.headers,redirect:sa.redirect,signal:sa.signal}),Ka=await ca(ba,Da,Ja);return u({},Ka,Aa.statusCode?{statusCode:Aa.statusCode}:{},{actionData:{[La.route.id]:Aa.data},actionHeaders:u({},Aa.headers?{[La.route.id]:Aa.headers}:{})})}async function ca(sa,Da,La,Ja,Ya){let Aa=Ja!=null;if(Aa&&!(Ja!=null&&Ja.route.loader)&&!(Ja!=null&&Ja.route.lazy))throw hn(400,{method:sa.method,pathname:new URL(sa.url).pathname,routeId:Ja?.route.id});let Ka=(Ja?[Ja]:Bt(Da,Object.keys(Ya||{})[0])).filter(_a=>_a.route.loader||_a.route.lazy);if(Ka.length===0)return{matches:Da,loaderData:Da.reduce((_a,Wa)=>Object.assign(_a,{[Wa.route.id]:null}),{}),errors:Ya||null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let us=await Promise.all([...Ka.map(_a=>Ct("loader",sa,_a,Da,dn,ar,yn,wi.v7_relativeSplatPath,{isStaticRequest:!0,isRouteRequest:Aa,requestContext:La}))]);if(sa.signal.aborted){let _a=Aa?"queryRoute":"query";throw new Error(_a+"() call aborted: "+sa.method+" "+sa.url)}let ii=new Map,Wo=xt(Da,Ka,us,Ya,ii),Ra=new Set(Ka.map(_a=>_a.route.id));return Da.forEach(_a=>{Ra.has(_a.route.id)||(Wo.loaderData[_a.route.id]=null)}),u({},Wo,{matches:Da,activeDeferreds:ii.size>0?Object.fromEntries(ii.entries()):null})}return{dataRoutes:mi,query:ho,queryRoute:Ao}}function ge(vt,Vt,dn){return u({},Vt,{statusCode:500,errors:{[Vt._deepestRenderedBoundaryId||vt[0].id]:dn}})}function z(vt){return vt!=null&&("formData"in vt&&vt.formData!=null||"body"in vt&&vt.body!==void 0)}function be(vt,Vt,dn,yn,ar,wi,mi,ho){let Ao,Mo;if(mi){Ao=[];for(let ca of Vt)if(Ao.push(ca),ca.route.id===mi){Mo=ca;break}}else Ao=Vt,Mo=Vt[Vt.length-1];let bo=Rt(ar||".",pt(Ao,wi),Ae(vt.pathname,dn)||vt.pathname,ho==="path");return ar==null&&(bo.search=vt.search,bo.hash=vt.hash),(ar==null||ar===""||ar===".")&&Mo&&Mo.route.index&&!hi(bo.search)&&(bo.search=bo.search?bo.search.replace(/^\?/,"?index&"):"?index"),yn&&dn!=="/"&&(bo.pathname=bo.pathname==="/"?dn:U([dn,bo.pathname])),R(bo)}function Qe(vt,Vt,dn,yn){if(!yn||!z(yn))return{path:dn};if(yn.formMethod&&!jr(yn.formMethod))return{path:dn,error:hn(405,{method:yn.formMethod})};let ar=()=>({path:dn,error:hn(400,{type:"invalid-body"})}),wi=yn.formMethod||"get",mi=vt?wi.toUpperCase():wi.toLowerCase(),ho=an(dn);if(yn.body!==void 0){if(yn.formEncType==="text/plain"){if(!ui(mi))return ar();let sa=typeof yn.body=="string"?yn.body:yn.body instanceof FormData||yn.body instanceof URLSearchParams?Array.from(yn.body.entries()).reduce((Da,La)=>{let[Ja,Ya]=La;return""+Da+Ja+"="+Ya+` `},""):String(yn.body);return{path:dn,submission:{formMethod:mi,formAction:ho,formEncType:yn.formEncType,formData:void 0,json:void 0,text:sa}}}else if(yn.formEncType==="application/json"){if(!ui(mi))return ar();try{let sa=typeof yn.body=="string"?JSON.parse(yn.body):yn.body;return{path:dn,submission:{formMethod:mi,formAction:ho,formEncType:yn.formEncType,formData:void 0,json:sa,text:void 0}}}catch{return ar()}}}b(typeof FormData=="function","FormData is not available in this environment");let Ao,Mo;if(yn.formData)Ao=Wn(yn.formData),Mo=yn.formData;else if(yn.body instanceof FormData)Ao=Wn(yn.body),Mo=yn.body;else if(yn.body instanceof URLSearchParams)Ao=yn.body,Mo=Zn(Ao);else if(yn.body==null)Ao=new URLSearchParams,Mo=new FormData;else try{Ao=new URLSearchParams(yn.body),Mo=Zn(Ao)}catch{return ar()}let bo={formMethod:mi,formAction:ho,formEncType:yn&&yn.formEncType||"application/x-www-form-urlencoded",formData:Mo,json:void 0,text:void 0};if(ui(bo.formMethod))return{path:dn,submission:bo};let ca=M(dn);return Vt&&ca.search&&hi(ca.search)&&Ao.append("index",""),ca.search="?"+Ao,{path:R(ca),submission:bo}}function Bt(vt,Vt){let dn=vt;if(Vt){let yn=vt.findIndex(ar=>ar.route.id===Vt);yn>=0&&(dn=vt.slice(0,yn))}return dn}function nn(vt,Vt,dn,yn,ar,wi,mi,ho,Ao,Mo,bo,ca,sa,Da,La,Ja){let Ya=Ja?Object.values(Ja)[0]:La?Object.values(La)[0]:void 0,Aa=vt.createURL(Vt.location),ba=vt.createURL(ar),Ka=Ja?Object.keys(Ja)[0]:void 0,ii=Bt(dn,Ka).filter((Ra,_a)=>{let{route:Wa}=Ra;if(Wa.lazy)return!0;if(Wa.loader==null)return!1;if(wi)return Wa.loader.hydrate?!0:Vt.loaderData[Wa.id]===void 0&&(!Vt.errors||Vt.errors[Wa.id]===void 0);if(bt(Vt.loaderData,Vt.matches[_a],Ra)||ho.some(Ne=>Ne===Ra.route.id))return!0;let eu=Vt.matches[_a],Ws=Ra;return $t(Ra,u({currentUrl:Aa,currentParams:eu.params,nextUrl:ba,nextParams:Ws.params},yn,{actionResult:Ya,defaultShouldRevalidate:mi||Aa.pathname+Aa.search===ba.pathname+ba.search||Aa.search!==ba.search||at(eu,Ws)}))}),Wo=[];return bo.forEach((Ra,_a)=>{if(wi||!dn.some(kt=>kt.route.id===Ra.routeId)||Mo.has(_a))return;let Wa=ae(sa,Ra.path,Da);if(!Wa){Wo.push({key:_a,routeId:Ra.routeId,path:Ra.path,matches:null,match:null,controller:null});return}let eu=Vt.fetchers.get(_a),Ws=Si(Wa,Ra.path),Ne=!1;ca.has(_a)?Ne=!1:Ao.includes(_a)?Ne=!0:eu&&eu.state!=="idle"&&eu.data===void 0?Ne=mi:Ne=$t(Ws,u({currentUrl:Aa,currentParams:Vt.matches[Vt.matches.length-1].params,nextUrl:ba,nextParams:dn[dn.length-1].params},yn,{actionResult:Ya,defaultShouldRevalidate:mi})),Ne&&Wo.push({key:_a,routeId:Ra.routeId,path:Ra.path,matches:Wa,match:Ws,controller:new AbortController})}),[ii,Wo]}function bt(vt,Vt,dn){let yn=!Vt||dn.route.id!==Vt.route.id,ar=vt[dn.route.id]===void 0;return yn||ar}function at(vt,Vt){let dn=vt.route.path;return vt.pathname!==Vt.pathname||dn!=null&&dn.endsWith("*")&&vt.params["*"]!==Vt.params["*"]}function $t(vt,Vt){if(vt.route.shouldRevalidate){let dn=vt.route.shouldRevalidate(Vt);if(typeof dn=="boolean")return dn}return Vt.defaultShouldRevalidate}async function On(vt,Vt,dn){if(!vt.lazy)return;let yn=await vt.lazy();if(!vt.lazy)return;let ar=dn[vt.id];b(ar,"No route found in manifest");let wi={};for(let mi in yn){let Ao=ar[mi]!==void 0&&mi!=="hasErrorBoundary";y(!Ao,'Route "'+ar.id+'" has a static property "'+mi+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+mi+'" will be ignored.')),!Ao&&!T.has(mi)&&(wi[mi]=yn[mi])}Object.assign(ar,wi),Object.assign(ar,u({},Vt(ar),{lazy:void 0}))}async function Ct(vt,Vt,dn,yn,ar,wi,mi,ho,Ao){Ao===void 0&&(Ao={});let Mo,bo,ca,sa=Ja=>{let Ya,Aa=new Promise((ba,Ka)=>Ya=Ka);return ca=()=>Ya(),Vt.signal.addEventListener("abort",ca),Promise.race([Ja({request:Vt,params:dn.params,context:Ao.requestContext}),Aa])};try{let Ja=dn.route[vt];if(dn.route.lazy)if(Ja){let Ya,Aa=await Promise.all([sa(Ja).catch(ba=>{Ya=ba}),On(dn.route,wi,ar)]);if(Ya)throw Ya;bo=Aa[0]}else if(await On(dn.route,wi,ar),Ja=dn.route[vt],Ja)bo=await sa(Ja);else if(vt==="action"){let Ya=new URL(Vt.url),Aa=Ya.pathname+Ya.search;throw hn(405,{method:Vt.method,pathname:Aa,routeId:dn.route.id})}else return{type:P.data,data:void 0};else if(Ja)bo=await sa(Ja);else{let Ya=new URL(Vt.url),Aa=Ya.pathname+Ya.search;throw hn(404,{pathname:Aa})}b(bo!==void 0,"You defined "+(vt==="action"?"an action":"a loader")+" for route "+('"'+dn.route.id+"\" but didn't return anything from your `"+vt+"` ")+"function. Please return a value or `null`.")}catch(Ja){Mo=P.error,bo=Ja}finally{ca&&Vt.signal.removeEventListener("abort",ca)}if(sr(bo)){let Ja=bo.status;if(He.has(Ja)){let Aa=bo.headers.get("Location");if(b(Aa,"Redirects returned/thrown from loaders/actions must have a Location header"),!_t.test(Aa))Aa=be(new URL(Vt.url),yn.slice(0,yn.indexOf(dn)+1),mi,!0,Aa,ho);else if(!Ao.isStaticRequest){let ba=new URL(Vt.url),Ka=Aa.startsWith("//")?new URL(ba.protocol+Aa):new URL(Aa),us=Ae(Ka.pathname,mi)!=null;Ka.origin===ba.origin&&us&&(Aa=Ka.pathname+Ka.search+Ka.hash)}if(Ao.isStaticRequest)throw bo.headers.set("Location",Aa),bo;return{type:P.redirect,status:Ja,location:Aa,revalidate:bo.headers.get("X-Remix-Revalidate")!==null,reloadDocument:bo.headers.get("X-Remix-Reload-Document")!==null}}if(Ao.isRouteRequest)throw{type:Mo===P.error?P.error:P.data,response:bo};let Ya;try{let Aa=bo.headers.get("Content-Type");Aa&&/\bapplication\/json\b/.test(Aa)?bo.body==null?Ya=null:Ya=await bo.json():Ya=await bo.text()}catch(Aa){return{type:P.error,error:Aa}}return Mo===P.error?{type:Mo,error:new et(Ja,bo.statusText,Ya),headers:bo.headers}:{type:P.data,data:Ya,statusCode:bo.status,headers:bo.headers}}if(Mo===P.error)return{type:Mo,error:bo};if(rr(bo)){var Da,La;return{type:P.deferred,deferredData:bo,statusCode:(Da=bo.init)==null?void 0:Da.status,headers:((La=bo.init)==null?void 0:La.headers)&&new Headers(bo.init.headers)}}return{type:P.data,data:bo}}function Zt(vt,Vt,dn,yn){let ar=vt.createURL(an(Vt)).toString(),wi={signal:dn};if(yn&&ui(yn.formMethod)){let{formMethod:mi,formEncType:ho}=yn;wi.method=mi.toUpperCase(),ho==="application/json"?(wi.headers=new Headers({"Content-Type":ho}),wi.body=JSON.stringify(yn.json)):ho==="text/plain"?wi.body=yn.text:ho==="application/x-www-form-urlencoded"&&yn.formData?wi.body=Wn(yn.formData):wi.body=yn.formData}return new Request(ar,wi)}function Wn(vt){let Vt=new URLSearchParams;for(let[dn,yn]of vt.entries())Vt.append(dn,typeof yn=="string"?yn:yn.name);return Vt}function Zn(vt){let Vt=new FormData;for(let[dn,yn]of vt.entries())Vt.append(dn,yn);return Vt}function xt(vt,Vt,dn,yn,ar){let wi={},mi=null,ho,Ao=!1,Mo={};return dn.forEach((bo,ca)=>{let sa=Vt[ca].route.id;if(b(!Gn(bo),"Cannot handle redirect results in processLoaderData"),En(bo)){let Da=Qt(vt,sa),La=bo.error;yn&&(La=Object.values(yn)[0],yn=void 0),mi=mi||{},mi[Da.route.id]==null&&(mi[Da.route.id]=La),wi[sa]=void 0,Ao||(Ao=!0,ho=ee(bo.error)?bo.error.status:500),bo.headers&&(Mo[sa]=bo.headers)}else Ln(bo)?(ar.set(sa,bo.deferredData),wi[sa]=bo.deferredData.data):wi[sa]=bo.data,bo.statusCode!=null&&bo.statusCode!==200&&!Ao&&(ho=bo.statusCode),bo.headers&&(Mo[sa]=bo.headers)}),yn&&(mi=yn,wi[Object.keys(yn)[0]]=void 0),{loaderData:wi,errors:mi,statusCode:ho||200,loaderHeaders:Mo}}function Xe(vt,Vt,dn,yn,ar,wi,mi,ho){let{loaderData:Ao,errors:Mo}=xt(Vt,dn,yn,ar,ho);for(let bo=0;bo<wi.length;bo++){let{key:ca,match:sa,controller:Da}=wi[bo];b(mi!==void 0&&mi[bo]!==void 0,"Did not find corresponding fetcher result");let La=mi[bo];if(!(Da&&Da.signal.aborted))if(En(La)){let Ja=Qt(vt.matches,sa?.route.id);Mo&&Mo[Ja.route.id]||(Mo=u({},Mo,{[Ja.route.id]:La.error})),vt.fetchers.delete(ca)}else if(Gn(La))b(!1,"Unhandled fetcher revalidation redirect");else if(Ln(La))b(!1,"Unhandled fetcher deferred data");else{let Ja=lo(La.data);vt.fetchers.set(ca,Ja)}}return{loaderData:Ao,errors:Mo}}function gn(vt,Vt,dn,yn){let ar=u({},Vt);for(let wi of dn){let mi=wi.route.id;if(Vt.hasOwnProperty(mi)?Vt[mi]!==void 0&&(ar[mi]=Vt[mi]):vt[mi]!==void 0&&wi.route.loader&&(ar[mi]=vt[mi]),yn&&yn.hasOwnProperty(mi))break}return ar}function Qt(vt,Vt){return(Vt?vt.slice(0,vt.findIndex(yn=>yn.route.id===Vt)+1):[...vt]).reverse().find(yn=>yn.route.hasErrorBoundary===!0)||vt[0]}function Dt(vt){let Vt=vt.length===1?vt[0]:vt.find(dn=>dn.index||!dn.path||dn.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:Vt}],route:Vt}}function hn(vt,Vt){let{pathname:dn,routeId:yn,method:ar,type:wi}=Vt===void 0?{}:Vt,mi="Unknown Server Error",ho="Unknown @remix-run/router error";return vt===400?(mi="Bad Request",ar&&dn&&yn?ho="You made a "+ar+' request to "'+dn+'" but '+('did not provide a `loader` for route "'+yn+'", ')+"so there is no way to handle the request.":wi==="defer-action"?ho="defer() is not supported in actions":wi==="invalid-body"&&(ho="Unable to encode submission body")):vt===403?(mi="Forbidden",ho='Route "'+yn+'" does not match URL "'+dn+'"'):vt===404?(mi="Not Found",ho='No route matches URL "'+dn+'"'):vt===405&&(mi="Method Not Allowed",ar&&dn&&yn?ho="You made a "+ar.toUpperCase()+' request to "'+dn+'" but '+('did not provide an `action` for route "'+yn+'", ')+"so there is no way to handle the request.":ar&&(ho='Invalid request method "'+ar.toUpperCase()+'"')),new et(vt||500,mi,new Error(ho),!0)}function cn(vt){for(let Vt=vt.length-1;Vt>=0;Vt--){let dn=vt[Vt];if(Gn(dn))return{result:dn,idx:Vt}}}function an(vt){let Vt=typeof vt=="string"?M(vt):vt;return R(u({},Vt,{hash:""}))}function Or(vt,Vt){return vt.pathname!==Vt.pathname||vt.search!==Vt.search?!1:vt.hash===""?Vt.hash!=="":vt.hash===Vt.hash?!0:Vt.hash!==""}function Ln(vt){return vt.type===P.deferred}function En(vt){return vt.type===P.error}function Gn(vt){return(vt&&vt.type)===P.redirect}function rr(vt){let Vt=vt;return Vt&&typeof Vt=="object"&&typeof Vt.data=="object"&&typeof Vt.subscribe=="function"&&typeof Vt.cancel=="function"&&typeof Vt.resolveData=="function"}function sr(vt){return vt!=null&&typeof vt.status=="number"&&typeof vt.statusText=="string"&&typeof vt.headers=="object"&&typeof vt.body<"u"}function pi(vt){if(!sr(vt))return!1;let Vt=vt.status,dn=vt.headers.get("Location");return Vt>=300&&Vt<=399&&dn!=null}function yi(vt){return vt&&sr(vt.response)&&(vt.type===P.data||vt.type===P.error)}function jr(vt){return De.has(vt.toLowerCase())}function ui(vt){return K.has(vt.toLowerCase())}async function bi(vt,Vt,dn,yn,ar,wi){for(let mi=0;mi<dn.length;mi++){let ho=dn[mi],Ao=Vt[mi];if(!Ao)continue;let Mo=vt.find(ca=>ca.route.id===Ao.route.id),bo=Mo!=null&&!at(Mo,Ao)&&(wi&&wi[Ao.route.id])!==void 0;if(Ln(ho)&&(ar||bo)){let ca=yn[mi];b(ca,"Expected an AbortSignal for revalidating fetcher deferred result"),await ri(ho,ca,ar).then(sa=>{sa&&(dn[mi]=sa||dn[mi])})}}}async function ri(vt,Vt,dn){if(dn===void 0&&(dn=!1),!await vt.deferredData.resolveData(Vt)){if(dn)try{return{type:P.data,data:vt.deferredData.unwrappedData}}catch(ar){return{type:P.error,error:ar}}return{type:P.data,data:vt.deferredData.data}}}function hi(vt){return new URLSearchParams(vt).getAll("index").some(Vt=>Vt==="")}function Si(vt,Vt){let dn=typeof Vt=="string"?M(Vt).search:Vt.search;if(vt[vt.length-1].route.index&&hi(dn||""))return vt[vt.length-1];let yn=Tt(vt);return yn[yn.length-1]}function Kr(vt){let{formMethod:Vt,formAction:dn,formEncType:yn,text:ar,formData:wi,json:mi}=vt;if(!(!Vt||!dn||!yn)){if(ar!=null)return{formMethod:Vt,formAction:dn,formEncType:yn,formData:void 0,json:void 0,text:ar};if(wi!=null)return{formMethod:Vt,formAction:dn,formEncType:yn,formData:wi,json:void 0,text:void 0};if(mi!==void 0)return{formMethod:Vt,formAction:dn,formEncType:yn,formData:void 0,json:mi,text:void 0}}}function xi(vt,Vt){return Vt?{state:"loading",location:vt,formMethod:Vt.formMethod,formAction:Vt.formAction,formEncType:Vt.formEncType,formData:Vt.formData,json:Vt.json,text:Vt.text}:{state:"loading",location:vt,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ai(vt,Vt){return{state:"submitting",location:vt,formMethod:Vt.formMethod,formAction:Vt.formAction,formEncType:Vt.formEncType,formData:Vt.formData,json:Vt.json,text:Vt.text}}function Pi(vt,Vt){return vt?{state:"loading",formMethod:vt.formMethod,formAction:vt.formAction,formEncType:vt.formEncType,formData:vt.formData,json:vt.json,text:vt.text,data:Vt}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:Vt}}function io(vt,Vt){return{state:"submitting",formMethod:vt.formMethod,formAction:vt.formAction,formEncType:vt.formEncType,formData:vt.formData,json:vt.json,text:vt.text,data:Vt?Vt.data:void 0}}function lo(vt){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:vt}}function Gr(vt,Vt){try{let dn=vt.sessionStorage.getItem(Ge);if(dn){let yn=JSON.parse(dn);for(let[ar,wi]of Object.entries(yn||{}))wi&&Array.isArray(wi)&&Vt.set(ar,new Set(wi||[]))}}catch{}}function un(vt,Vt){if(Vt.size>0){let dn={};for(let[yn,ar]of Vt)dn[yn]=[...ar];try{vt.sessionStorage.setItem(Ge,JSON.stringify(dn))}catch(yn){y(!1,"Failed to save applied view transitions in sessionStorage ("+yn+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function qn(){return qn=Object.assign?Object.assign.bind():function(vt){for(var Vt=1;Vt<arguments.length;Vt++){var dn=arguments[Vt];for(var yn in dn)Object.prototype.hasOwnProperty.call(dn,yn)&&(vt[yn]=dn[yn])}return vt},qn.apply(this,arguments)}const kn=i.createContext(null),St=i.createContext(null),ln=i.createContext(null),An=i.createContext(null),Cr=i.createContext(null),_i=i.createContext({outlet:null,matches:[],isDataRoute:!1}),Sn=i.createContext(null);function ir(vt,Vt){let{relative:dn}=Vt===void 0?{}:Vt;mt()||b(!1);let{basename:yn,navigator:ar}=i.useContext(An),{hash:wi,pathname:mi,search:ho}=ki(vt,{relative:dn}),Ao=mi;return yn!=="/"&&(Ao=mi==="/"?yn:U([yn,mi])),ar.createHref({pathname:Ao,search:ho,hash:wi})}function mt(){return i.useContext(Cr)!=null}function fn(){return mt()||b(!1),i.useContext(Cr).location}function gt(){return i.useContext(Cr).navigationType}function tn(vt){mt()||b(!1);let{pathname:Vt}=fn();return i.useMemo(()=>ne(vt,Vt),[Vt,vt])}const Vn=null;function Ur(vt){i.useContext(An).static||i.useLayoutEffect(vt)}function $r(){let{isDataRoute:vt}=i.useContext(_i);return vt?Ko():Pr()}function Pr(){mt()||b(!1);let vt=i.useContext(kn),{basename:Vt,future:dn,navigator:yn}=i.useContext(An),{matches:ar}=i.useContext(_i),{pathname:wi}=fn(),mi=JSON.stringify(pt(ar,dn.v7_relativeSplatPath)),ho=i.useRef(!1);return Ur(()=>{ho.current=!0}),i.useCallback(function(Mo,bo){if(bo===void 0&&(bo={}),!ho.current)return;if(typeof Mo=="number"){yn.go(Mo);return}let ca=Rt(Mo,JSON.parse(mi),wi,bo.relative==="path");vt==null&&Vt!=="/"&&(ca.pathname=ca.pathname==="/"?Vt:U([Vt,ca.pathname])),(bo.replace?yn.replace:yn.push)(ca,bo.state,bo)},[Vt,yn,mi,wi,vt])}const zr=i.createContext(null);function gi(){return i.useContext(zr)}function $i(vt){let Vt=i.useContext(_i).outlet;return Vt&&i.createElement(zr.Provider,{value:vt},Vt)}function eo(){let{matches:vt}=i.useContext(_i),Vt=vt[vt.length-1];return Vt?Vt.params:{}}function ki(vt,Vt){let{relative:dn}=Vt===void 0?{}:Vt,{future:yn}=i.useContext(An),{matches:ar}=i.useContext(_i),{pathname:wi}=fn(),mi=JSON.stringify(pt(ar,yn.v7_relativeSplatPath));return i.useMemo(()=>Rt(vt,JSON.parse(mi),wi,dn==="path"),[vt,mi,wi,dn])}function so(vt,Vt){return Ho(vt,Vt)}function Ho(vt,Vt,dn,yn){mt()||b(!1);let{navigator:ar}=i.useContext(An),{matches:wi}=i.useContext(_i),mi=wi[wi.length-1],ho=mi?mi.params:{},Ao=mi?mi.pathname:"/",Mo=mi?mi.pathnameBase:"/",bo=mi&&mi.route,ca=fn(),sa;if(Vt){var Da;let ba=typeof Vt=="string"?M(Vt):Vt;Mo==="/"||(Da=ba.pathname)!=null&&Da.startsWith(Mo)||b(!1),sa=ba}else sa=ca;let La=sa.pathname||"/",Ja=Mo==="/"?La:La.slice(Mo.length)||"/",Ya=ae(vt,{pathname:Ja}),Aa=Vi(Ya&&Ya.map(ba=>Object.assign({},ba,{params:Object.assign({},ho,ba.params),pathname:U([Mo,ar.encodeLocation?ar.encodeLocation(ba.pathname).pathname:ba.pathname]),pathnameBase:ba.pathnameBase==="/"?Mo:U([Mo,ar.encodeLocation?ar.encodeLocation(ba.pathnameBase).pathname:ba.pathnameBase])})),wi,dn,yn);return Vt&&Aa?i.createElement(Cr.Provider,{value:{location:qn({pathname:"/",search:"",hash:"",state:null,key:"default"},sa),navigationType:f.Pop}},Aa):Aa}function ra(){let vt=li(),Vt=ee(vt)?vt.status+" "+vt.statusText:vt instanceof Error?vt.message:JSON.stringify(vt),dn=vt instanceof Error?vt.stack:null,yn="rgba(200,200,200, 0.5)",ar={padding:"0.5rem",backgroundColor:yn},wi={padding:"2px 4px",backgroundColor:yn},mi=null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},Vt),dn?i.createElement("pre",{style:ar},dn):null,mi)}const So=i.createElement(ra,null);class gr extends i.Component{constructor(Vt){super(Vt),this.state={location:Vt.location,revalidation:Vt.revalidation,error:Vt.error}}static getDerivedStateFromError(Vt){return{error:Vt}}static getDerivedStateFromProps(Vt,dn){return dn.location!==Vt.location||dn.revalidation!=="idle"&&Vt.revalidation==="idle"?{error:Vt.error,location:Vt.location,revalidation:Vt.revalidation}:{error:Vt.error!==void 0?Vt.error:dn.error,location:dn.location,revalidation:Vt.revalidation||dn.revalidation}}componentDidCatch(Vt,dn){console.error("React Router caught the following error during render",Vt,dn)}render(){return this.state.error!==void 0?i.createElement(_i.Provider,{value:this.props.routeContext},i.createElement(Sn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function di(vt){let{routeContext:Vt,match:dn,children:yn}=vt,ar=i.useContext(kn);return ar&&ar.static&&ar.staticContext&&(dn.route.errorElement||dn.route.ErrorBoundary)&&(ar.staticContext._deepestRenderedBoundaryId=dn.route.id),i.createElement(_i.Provider,{value:Vt},yn)}function Vi(vt,Vt,dn,yn){var ar;if(Vt===void 0&&(Vt=[]),dn===void 0&&(dn=null),yn===void 0&&(yn=null),vt==null){var wi;if((wi=dn)!=null&&wi.errors)vt=dn.matches;else return null}let mi=vt,ho=(ar=dn)==null?void 0:ar.errors;if(ho!=null){let bo=mi.findIndex(ca=>ca.route.id&&ho?.[ca.route.id]);bo>=0||b(!1),mi=mi.slice(0,Math.min(mi.length,bo+1))}let Ao=!1,Mo=-1;if(dn&&yn&&yn.v7_partialHydration)for(let bo=0;bo<mi.length;bo++){let ca=mi[bo];if((ca.route.HydrateFallback||ca.route.hydrateFallbackElement)&&(Mo=bo),ca.route.id){let{loaderData:sa,errors:Da}=dn,La=ca.route.loader&&sa[ca.route.id]===void 0&&(!Da||Da[ca.route.id]===void 0);if(ca.route.lazy||La){Ao=!0,Mo>=0?mi=mi.slice(0,Mo+1):mi=[mi[0]];break}}}return mi.reduceRight((bo,ca,sa)=>{let Da,La=!1,Ja=null,Ya=null;dn&&(Da=ho&&ca.route.id?ho[ca.route.id]:void 0,Ja=ca.route.errorElement||So,Ao&&(Mo<0&&sa===0?(yt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),La=!0,Ya=null):Mo===sa&&(La=!0,Ya=ca.route.hydrateFallbackElement||null)));let Aa=Vt.concat(mi.slice(0,sa+1)),ba=()=>{let Ka;return Da?Ka=Ja:La?Ka=Ya:ca.route.Component?Ka=i.createElement(ca.route.Component,null):ca.route.element?Ka=ca.route.element:Ka=bo,i.createElement(di,{match:ca,routeContext:{outlet:bo,matches:Aa,isDataRoute:dn!=null},children:Ka})};return dn&&(ca.route.ErrorBoundary||ca.route.errorElement||sa===0)?i.createElement(gr,{location:dn.location,revalidation:dn.revalidation,component:Ja,error:Da,children:ba(),routeContext:{outlet:null,matches:Aa,isDataRoute:!0}}):ba()},null)}var Ro=function(vt){return vt.UseBlocker="useBlocker",vt.UseRevalidator="useRevalidator",vt.UseNavigateStable="useNavigate",vt}(Ro||{}),na=function(vt){return vt.UseBlocker="useBlocker",vt.UseLoaderData="useLoaderData",vt.UseActionData="useActionData",vt.UseRouteError="useRouteError",vt.UseNavigation="useNavigation",vt.UseRouteLoaderData="useRouteLoaderData",vt.UseMatches="useMatches",vt.UseRevalidator="useRevalidator",vt.UseNavigateStable="useNavigate",vt.UseRouteId="useRouteId",vt}(na||{});function ta(vt){return vt+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function aa(vt){let Vt=i.useContext(kn);return Vt||b(!1),Vt}function vi(vt){let Vt=i.useContext(St);return Vt||b(!1),Vt}function to(vt){let Vt=i.useContext(_i);return Vt||b(!1),Vt}function $o(vt){let Vt=to(vt),dn=Vt.matches[Vt.matches.length-1];return dn.route.id||b(!1),dn.route.id}function ja(){return $o(na.UseRouteId)}function hs(){return vi(na.UseNavigation).navigation}function ro(){let vt=aa(Ro.UseRevalidator),Vt=vi(na.UseRevalidator);return i.useMemo(()=>({revalidate:vt.router.revalidate,state:Vt.revalidation}),[vt.router.revalidate,Vt.revalidation])}function as(){let{matches:vt,loaderData:Vt}=vi(na.UseMatches);return i.useMemo(()=>vt.map(dn=>_(dn,Vt)),[vt,Vt])}function rn(){let vt=vi(na.UseLoaderData),Vt=$o(na.UseLoaderData);if(vt.errors&&vt.errors[Vt]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+Vt+")");return}return vt.loaderData[Vt]}function Dr(vt){return vi(na.UseRouteLoaderData).loaderData[vt]}function Lr(){let vt=vi(na.UseActionData),Vt=$o(na.UseLoaderData);return vt.actionData?vt.actionData[Vt]:void 0}function li(){var vt;let Vt=i.useContext(Sn),dn=vi(na.UseRouteError),yn=$o(na.UseRouteError);return Vt!==void 0?Vt:(vt=dn.errors)==null?void 0:vt[yn]}function Zi(){let vt=i.useContext(ln);return vt?._data}function Di(){let vt=i.useContext(ln);return vt?._error}let wo=0;function Go(vt){let{router:Vt,basename:dn}=aa(Ro.UseBlocker),yn=vi(na.UseBlocker),[ar,wi]=i.useState(""),mi=i.useCallback(ho=>{if(typeof vt!="function")return!!vt;if(dn==="/")return vt(ho);let{currentLocation:Ao,nextLocation:Mo,historyAction:bo}=ho;return vt({currentLocation:qn({},Ao,{pathname:Ae(Ao.pathname,dn)||Ao.pathname}),nextLocation:qn({},Mo,{pathname:Ae(Mo.pathname,dn)||Mo.pathname}),historyAction:bo})},[dn,vt]);return i.useEffect(()=>{let ho=String(++wo);return wi(ho),()=>Vt.deleteBlocker(ho)},[Vt]),i.useEffect(()=>{ar!==""&&Vt.getBlocker(ar,mi)},[Vt,ar,mi]),ar&&yn.blockers.has(ar)?yn.blockers.get(ar):We}function Ko(){let{router:vt}=aa(Ro.UseNavigateStable),Vt=$o(na.UseNavigateStable),dn=i.useRef(!1);return Ur(()=>{dn.current=!0}),i.useCallback(function(ar,wi){wi===void 0&&(wi={}),dn.current&&(typeof ar=="number"?vt.navigate(ar):vt.navigate(ar,qn({fromRouteId:Vt},wi)))},[vt,Vt])}const Ie={};function yt(vt,Vt,dn){!Vt&&!Ie[vt]&&(Ie[vt]=!0)}const _n=l["startTransition"];function er(vt){let{fallbackElement:Vt,router:dn,future:yn}=vt,[ar,wi]=React.useState(dn.state),{v7_startTransition:mi}=yn||{},ho=React.useCallback(ca=>{mi&&_n?_n(()=>wi(ca)):wi(ca)},[wi,mi]);React.useLayoutEffect(()=>dn.subscribe(ho),[dn,ho]),React.useEffect(()=>{},[]);let Ao=React.useMemo(()=>({createHref:dn.createHref,encodeLocation:dn.encodeLocation,go:ca=>dn.navigate(ca),push:(ca,sa,Da)=>dn.navigate(ca,{state:sa,preventScrollReset:Da?.preventScrollReset}),replace:(ca,sa,Da)=>dn.navigate(ca,{replace:!0,state:sa,preventScrollReset:Da?.preventScrollReset})}),[dn]),Mo=dn.basename||"/",bo=React.useMemo(()=>({router:dn,navigator:Ao,static:!1,basename:Mo}),[dn,Ao,Mo]);return React.createElement(React.Fragment,null,React.createElement(kn.Provider,{value:bo},React.createElement(St.Provider,{value:ar},React.createElement(cr,{basename:Mo,location:ar.location,navigationType:ar.historyAction,navigator:Ao,future:{v7_relativeSplatPath:dn.future.v7_relativeSplatPath}},ar.initialized||dn.future.v7_partialHydration?React.createElement(or,{routes:dn.routes,future:dn.future,state:ar}):Vt))),null)}function or(vt){let{routes:Vt,future:dn,state:yn}=vt;return Ho(Vt,void 0,yn,dn)}function Er(vt){let{basename:Vt,children:dn,initialEntries:yn,initialIndex:ar,future:wi}=vt,mi=i.useRef();mi.current==null&&(mi.current=v({initialEntries:yn,initialIndex:ar,v5Compat:!0}));let ho=mi.current,[Ao,Mo]=i.useState({action:ho.action,location:ho.location}),{v7_startTransition:bo}=wi||{},ca=i.useCallback(sa=>{bo&&_n?_n(()=>Mo(sa)):Mo(sa)},[Mo,bo]);return i.useLayoutEffect(()=>ho.listen(ca),[ho,ca]),i.createElement(cr,{basename:Vt,children:dn,location:Ao.location,navigationType:Ao.action,navigator:ho,future:wi})}function Mi(vt){let{to:Vt,replace:dn,state:yn,relative:ar}=vt;mt()||b(!1);let{future:wi,static:mi}=i.useContext(An),{matches:ho}=i.useContext(_i),{pathname:Ao}=fn(),Mo=$r(),bo=Rt(Vt,pt(ho,wi.v7_relativeSplatPath),Ao,ar==="path"),ca=JSON.stringify(bo);return i.useEffect(()=>Mo(JSON.parse(ca),{replace:dn,state:yn,relative:ar}),[Mo,ca,ar,dn,yn]),null}function Ui(vt){return $i(vt.context)}function Nn(vt){b(!1)}function cr(vt){let{basename:Vt="/",children:dn=null,location:yn,navigationType:ar=f.Pop,navigator:wi,static:mi=!1,future:ho}=vt;mt()&&b(!1);let Ao=Vt.replace(/^\/*/,"/"),Mo=i.useMemo(()=>({basename:Ao,navigator:wi,static:mi,future:qn({v7_relativeSplatPath:!1},ho)}),[Ao,ho,wi,mi]);typeof yn=="string"&&(yn=M(yn));let{pathname:bo="/",search:ca="",hash:sa="",state:Da=null,key:La="default"}=yn,Ja=i.useMemo(()=>{let Ya=Ae(bo,Ao);return Ya==null?null:{location:{pathname:Ya,search:ca,hash:sa,state:Da,key:La},navigationType:ar}},[Ao,bo,ca,sa,Da,La,ar]);return Ja==null?null:i.createElement(An.Provider,{value:Mo},i.createElement(Cr.Provider,{children:dn,value:Ja}))}function ni(vt){let{children:Vt,location:dn}=vt;return so(Jo(Vt),dn)}function Xr(vt){let{children:Vt,errorElement:dn,resolve:yn}=vt;return i.createElement(Fo,{resolve:yn,errorElement:dn},i.createElement(No,null,Vt))}var Jr=function(vt){return vt[vt.pending=0]="pending",vt[vt.success=1]="success",vt[vt.error=2]="error",vt}(Jr||{});const Qi=new Promise(()=>{});class Fo extends i.Component{constructor(Vt){super(Vt),this.state={error:null}}static getDerivedStateFromError(Vt){return{error:Vt}}componentDidCatch(Vt,dn){console.error("<Await> caught the following error during render",Vt,dn)}render(){let{children:Vt,errorElement:dn,resolve:yn}=this.props,ar=null,wi=Jr.pending;if(!(yn instanceof Promise))wi=Jr.success,ar=Promise.resolve(),Object.defineProperty(ar,"_tracked",{get:()=>!0}),Object.defineProperty(ar,"_data",{get:()=>yn});else if(this.state.error){wi=Jr.error;let mi=this.state.error;ar=Promise.reject().catch(()=>{}),Object.defineProperty(ar,"_tracked",{get:()=>!0}),Object.defineProperty(ar,"_error",{get:()=>mi})}else yn._tracked?(ar=yn,wi=ar._error!==void 0?Jr.error:ar._data!==void 0?Jr.success:Jr.pending):(wi=Jr.pending,Object.defineProperty(yn,"_tracked",{get:()=>!0}),ar=yn.then(mi=>Object.defineProperty(yn,"_data",{get:()=>mi}),mi=>Object.defineProperty(yn,"_error",{get:()=>mi})));if(wi===Jr.error&&ar._error instanceof Ye)throw Qi;if(wi===Jr.error&&!dn)throw ar._error;if(wi===Jr.error)return i.createElement(ln.Provider,{value:ar,children:dn});if(wi===Jr.success)return i.createElement(ln.Provider,{value:ar,children:Vt});throw ar}}function No(vt){let{children:Vt}=vt,dn=Zi(),yn=typeof Vt=="function"?Vt(dn):Vt;return i.createElement(i.Fragment,null,yn)}function Jo(vt,Vt){Vt===void 0&&(Vt=[]);let dn=[];return i.Children.forEach(vt,(yn,ar)=>{if(!i.isValidElement(yn))return;let wi=[...Vt,ar];if(yn.type===i.Fragment){dn.push.apply(dn,Jo(yn.props.children,wi));return}yn.type!==Nn&&b(!1),!yn.props.index||!yn.props.children||b(!1);let mi={id:yn.props.id||wi.join("-"),caseSensitive:yn.props.caseSensitive,element:yn.props.element,Component:yn.props.Component,index:yn.props.index,path:yn.props.path,loader:yn.props.loader,action:yn.props.action,errorElement:yn.props.errorElement,ErrorBoundary:yn.props.ErrorBoundary,hasErrorBoundary:yn.props.ErrorBoundary!=null||yn.props.errorElement!=null,shouldRevalidate:yn.props.shouldRevalidate,handle:yn.props.handle,lazy:yn.props.lazy};yn.props.children&&(mi.children=Jo(yn.props.children,wi)),dn.push(mi)}),dn}function br(vt){return Vi(vt)}function Yn(vt){let Vt={hasErrorBoundary:vt.ErrorBoundary!=null||vt.errorElement!=null};return vt.Component&&Object.assign(Vt,{element:i.createElement(vt.Component),Component:void 0}),vt.HydrateFallback&&Object.assign(Vt,{hydrateFallbackElement:i.createElement(vt.HydrateFallback),HydrateFallback:void 0}),vt.ErrorBoundary&&Object.assign(Vt,{errorElement:i.createElement(vt.ErrorBoundary),ErrorBoundary:void 0}),Vt}function Z(vt,Vt){return st({basename:Vt?.basename,future:qn({},Vt?.future,{v7_prependBasename:!0}),history:v({initialEntries:Vt?.initialEntries,initialIndex:Vt?.initialIndex}),hydrationData:Vt?.hydrationData,routes:vt,mapRouteProperties:Yn}).initialize()}var se;(function(vt){vt.Pop="POP",vt.Push="PUSH",vt.Replace="REPLACE"})(se||(se={}));var G=null;function B(vt,Vt){if(!vt){typeof console<"u"&&console.warn(Vt);try{throw new Error(Vt)}catch{}}}var Pe="beforeunload",dt="hashchange",Lt="popstate";function Pt(vt){vt===void 0&&(vt={});var Vt=vt,dn=Vt.window,yn=dn===void 0?document.defaultView:dn,ar=yn.history;function wi(){var Ra=yn.location,_a=Ra.pathname,Wa=Ra.search,eu=Ra.hash,Ws=ar.state||{};return[Ws.idx,G({pathname:_a,search:Wa,hash:eu,state:Ws.usr||null,key:Ws.key||"default"})]}var mi=null;function ho(){if(mi)Da.call(mi),mi=null;else{var Ra=se.Pop,_a=wi(),Wa=_a[0],eu=_a[1];if(Da.length){if(Wa!=null){var Ws=bo-Wa;Ws&&(mi={action:Ra,location:eu,retry:function(){ii(Ws*-1)}},ii(Ws))}}else ba(Ra)}}yn.addEventListener(Lt,ho);var Ao=se.Pop,Mo=wi(),bo=Mo[0],ca=Mo[1],sa=Fn(),Da=Fn();bo==null&&(bo=0,ar.replaceState(_extends({},ar.state,{idx:bo}),""));function La(Ra){return typeof Ra=="string"?Ra:tr(Ra)}function Ja(Ra,_a){return _a===void 0&&(_a=null),G(_extends({pathname:ca.pathname,hash:"",search:""},typeof Ra=="string"?Jn(Ra):Ra,{state:_a,key:Cn()}))}function Ya(Ra,_a){return[{usr:Ra.state,key:Ra.key,idx:_a},La(Ra)]}function Aa(Ra,_a,Wa){return!Da.length||(Da.call({action:Ra,location:_a,retry:Wa}),!1)}function ba(Ra){Ao=Ra;var _a=wi();bo=_a[0],ca=_a[1],sa.call({action:Ao,location:ca})}function Ka(Ra,_a){var Wa=se.Push,eu=Ja(Ra,_a);function Ws(){Ka(Ra,_a)}if(Aa(Wa,eu,Ws)){var Ne=Ya(eu,bo+1),kt=Ne[0],Rn=Ne[1];try{ar.pushState(kt,"",Rn)}catch{yn.location.assign(Rn)}ba(Wa)}}function us(Ra,_a){var Wa=se.Replace,eu=Ja(Ra,_a);function Ws(){us(Ra,_a)}if(Aa(Wa,eu,Ws)){var Ne=Ya(eu,bo),kt=Ne[0],Rn=Ne[1];ar.replaceState(kt,"",Rn),ba(Wa)}}function ii(Ra){ar.go(Ra)}var Wo={get action(){return Ao},get location(){return ca},createHref:La,push:Ka,replace:us,go:ii,back:function(){ii(-1)},forward:function(){ii(1)},listen:function(_a){return sa.push(_a)},block:function(_a){var Wa=Da.push(_a);return Da.length===1&&yn.addEventListener(Pe,Ht),function(){Wa(),Da.length||yn.removeEventListener(Pe,Ht)}}};return Wo}function $e(vt){vt===void 0&&(vt={});var Vt=vt,dn=Vt.window,yn=dn===void 0?document.defaultView:dn,ar=yn.history;function wi(){var _a=Jn(yn.location.hash.substr(1)),Wa=_a.pathname,eu=Wa===void 0?"/":Wa,Ws=_a.search,Ne=Ws===void 0?"":Ws,kt=_a.hash,Rn=kt===void 0?"":kt,jn=ar.state||{};return[jn.idx,G({pathname:eu,search:Ne,hash:Rn,state:jn.usr||null,key:jn.key||"default"})]}var mi=null;function ho(){if(mi)Da.call(mi),mi=null;else{var _a=se.Pop,Wa=wi(),eu=Wa[0],Ws=Wa[1];if(Da.length){if(eu!=null){var Ne=bo-eu;Ne&&(mi={action:_a,location:Ws,retry:function(){Wo(Ne*-1)}},Wo(Ne))}}else Ka(_a)}}yn.addEventListener(Lt,ho),yn.addEventListener(dt,function(){var _a=wi(),Wa=_a[1];tr(Wa)!==tr(ca)&&ho()});var Ao=se.Pop,Mo=wi(),bo=Mo[0],ca=Mo[1],sa=Fn(),Da=Fn();bo==null&&(bo=0,ar.replaceState(_extends({},ar.state,{idx:bo}),""));function La(){var _a=document.querySelector("base"),Wa="";if(_a&&_a.getAttribute("href")){var eu=yn.location.href,Ws=eu.indexOf("#");Wa=Ws===-1?eu:eu.slice(0,Ws)}return Wa}function Ja(_a){return La()+"#"+(typeof _a=="string"?_a:tr(_a))}function Ya(_a,Wa){return Wa===void 0&&(Wa=null),G(_extends({pathname:ca.pathname,hash:"",search:""},typeof _a=="string"?Jn(_a):_a,{state:Wa,key:Cn()}))}function Aa(_a,Wa){return[{usr:_a.state,key:_a.key,idx:Wa},Ja(_a)]}function ba(_a,Wa,eu){return!Da.length||(Da.call({action:_a,location:Wa,retry:eu}),!1)}function Ka(_a){Ao=_a;var Wa=wi();bo=Wa[0],ca=Wa[1],sa.call({action:Ao,location:ca})}function us(_a,Wa){var eu=se.Push,Ws=Ya(_a,Wa);function Ne(){us(_a,Wa)}if(ba(eu,Ws,Ne)){var kt=Aa(Ws,bo+1),Rn=kt[0],jn=kt[1];try{ar.pushState(Rn,"",jn)}catch{yn.location.assign(jn)}Ka(eu)}}function ii(_a,Wa){var eu=se.Replace,Ws=Ya(_a,Wa);function Ne(){ii(_a,Wa)}if(ba(eu,Ws,Ne)){var kt=Aa(Ws,bo),Rn=kt[0],jn=kt[1];ar.replaceState(Rn,"",jn),Ka(eu)}}function Wo(_a){ar.go(_a)}var Ra={get action(){return Ao},get location(){return ca},createHref:Ja,push:us,replace:ii,go:Wo,back:function(){Wo(-1)},forward:function(){Wo(1)},listen:function(Wa){return sa.push(Wa)},block:function(Wa){var eu=Da.push(Wa);return Da.length===1&&yn.addEventListener(Pe,Ht),function(){eu(),Da.length||yn.removeEventListener(Pe,Ht)}}};return Ra}function ut(vt){vt===void 0&&(vt={});var Vt=vt,dn=Vt.initialEntries,yn=dn===void 0?["/"]:dn,ar=Vt.initialIndex,wi=yn.map(function(Ka){var us=G(_extends({pathname:"/",search:"",hash:"",state:null,key:Cn()},typeof Ka=="string"?Jn(Ka):Ka));return us}),mi=zt(ar??wi.length-1,0,wi.length-1),ho=se.Pop,Ao=wi[mi],Mo=Fn(),bo=Fn();function ca(Ka){return typeof Ka=="string"?Ka:tr(Ka)}function sa(Ka,us){return us===void 0&&(us=null),G(_extends({pathname:Ao.pathname,search:"",hash:""},typeof Ka=="string"?Jn(Ka):Ka,{state:us,key:Cn()}))}function Da(Ka,us,ii){return!bo.length||(bo.call({action:Ka,location:us,retry:ii}),!1)}function La(Ka,us){ho=Ka,Ao=us,Mo.call({action:ho,location:Ao})}function Ja(Ka,us){var ii=se.Push,Wo=sa(Ka,us);function Ra(){Ja(Ka,us)}Da(ii,Wo,Ra)&&(mi+=1,wi.splice(mi,wi.length,Wo),La(ii,Wo))}function Ya(Ka,us){var ii=se.Replace,Wo=sa(Ka,us);function Ra(){Ya(Ka,us)}Da(ii,Wo,Ra)&&(wi[mi]=Wo,La(ii,Wo))}function Aa(Ka){var us=zt(mi+Ka,0,wi.length-1),ii=se.Pop,Wo=wi[us];function Ra(){Aa(Ka)}Da(ii,Wo,Ra)&&(mi=us,La(ii,Wo))}var ba={get index(){return mi},get action(){return ho},get location(){return Ao},createHref:ca,push:Ja,replace:Ya,go:Aa,back:function(){Aa(-1)},forward:function(){Aa(1)},listen:function(us){return Mo.push(us)},block:function(us){return bo.push(us)}};return ba}function zt(vt,Vt,dn){return Math.min(Math.max(vt,Vt),dn)}function Ht(vt){vt.preventDefault(),vt.returnValue=""}function Fn(){var vt=[];return{get length(){return vt.length},push:function(dn){return vt.push(dn),function(){vt=vt.filter(function(yn){return yn!==dn})}},call:function(dn){vt.forEach(function(yn){return yn&&yn(dn)})}}}function Cn(){return Math.random().toString(36).substr(2,8)}function tr(vt){var Vt=vt.pathname,dn=Vt===void 0?"/":Vt,yn=vt.search,ar=yn===void 0?"":yn,wi=vt.hash,mi=wi===void 0?"":wi;return ar&&ar!=="?"&&(dn+=ar.charAt(0)==="?"?ar:"?"+ar),mi&&mi!=="#"&&(dn+=mi.charAt(0)==="#"?mi:"#"+mi),dn}function Jn(vt){var Vt={};if(vt){var dn=vt.indexOf("#");dn>=0&&(Vt.hash=vt.substr(dn),vt=vt.substr(0,dn));var yn=vt.indexOf("?");yn>=0&&(Vt.search=vt.substr(yn),vt=vt.substr(0,yn)),vt&&(Vt.pathname=vt)}return Vt}var ei=t(24180);/** * React Router DOM v5 Compat v6.21.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ci(){return Ci=Object.assign?Object.assign.bind():function(vt){for(var Vt=1;Vt<arguments.length;Vt++){var dn=arguments[Vt];for(var yn in dn)Object.prototype.hasOwnProperty.call(dn,yn)&&(vt[yn]=dn[yn])}return vt},Ci.apply(this,arguments)}function zi(vt,Vt){if(vt==null)return{};var dn={},yn=Object.keys(vt),ar,wi;for(wi=0;wi<yn.length;wi++)ar=yn[wi],!(Vt.indexOf(ar)>=0)&&(dn[ar]=vt[ar]);return dn}const co="get",Xo="application/x-www-form-urlencoded";function Eo(vt){return vt!=null&&typeof vt.tagName=="string"}function Yo(vt){return Eo(vt)&&vt.tagName.toLowerCase()==="button"}function Xn(vt){return Eo(vt)&&vt.tagName.toLowerCase()==="form"}function fr(vt){return Eo(vt)&&vt.tagName.toLowerCase()==="input"}function mr(vt){return!!(vt.metaKey||vt.altKey||vt.ctrlKey||vt.shiftKey)}function yr(vt,Vt){return vt.button===0&&(!Vt||Vt==="_self")&&!mr(vt)}function Rr(vt){return vt===void 0&&(vt=""),new URLSearchParams(typeof vt=="string"||Array.isArray(vt)||vt instanceof URLSearchParams?vt:Object.keys(vt).reduce((Vt,dn)=>{let yn=vt[dn];return Vt.concat(Array.isArray(yn)?yn.map(ar=>[dn,ar]):[[dn,yn]])},[]))}function ai(vt,Vt){let dn=Rr(vt);return Vt&&Vt.forEach((yn,ar)=>{dn.has(ar)||Vt.getAll(ar).forEach(wi=>{dn.append(ar,wi)})}),dn}let jt=null;function Pn(){if(jt===null)try{new FormData(document.createElement("form"),0),jt=!1}catch{jt=!0}return jt}const nr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ir(vt){return vt!=null&&!nr.has(vt)?null:vt}function fi(vt,Vt){let dn,yn,ar,wi,mi;if(Xn(vt)){let ho=vt.getAttribute("action");yn=ho?Ae(ho,Vt):null,dn=vt.getAttribute("method")||co,ar=Ir(vt.getAttribute("enctype"))||Xo,wi=new FormData(vt)}else if(Yo(vt)||fr(vt)&&(vt.type==="submit"||vt.type==="image")){let ho=vt.form;if(ho==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let Ao=vt.getAttribute("formaction")||ho.getAttribute("action");if(yn=Ao?Ae(Ao,Vt):null,dn=vt.getAttribute("formmethod")||ho.getAttribute("method")||co,ar=Ir(vt.getAttribute("formenctype"))||Ir(ho.getAttribute("enctype"))||Xo,wi=new FormData(ho,vt),!Pn()){let{name:Mo,type:bo,value:ca}=vt;if(bo==="image"){let sa=Mo?Mo+".":"";wi.append(sa+"x","0"),wi.append(sa+"y","0")}else Mo&&wi.append(Mo,ca)}}else{if(Eo(vt))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');dn=co,yn=null,ar=Xo,mi=vt}return wi&&ar==="text/plain"&&(mi=wi,wi=void 0),{action:yn,method:dn.toLowerCase(),encType:ar,formData:wi,body:mi}}const Ti=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Oe=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],pn=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];function Qn(vt,Vt){return st({basename:Vt?.basename,future:Ci({},Vt?.future,{v7_prependBasename:!0}),history:h({window:Vt?.window}),hydrationData:Vt?.hydrationData||hr(),routes:vt,mapRouteProperties:Yn,window:Vt?.window}).initialize()}function Sr(vt,Vt){return st({basename:Vt?.basename,future:Ci({},Vt?.future,{v7_prependBasename:!0}),history:d({window:Vt?.window}),hydrationData:Vt?.hydrationData||hr(),routes:vt,mapRouteProperties:Yn,window:Vt?.window}).initialize()}function hr(){var vt;let Vt=(vt=window)==null?void 0:vt.__staticRouterHydrationData;return Vt&&Vt.errors&&(Vt=Ci({},Vt,{errors:kr(Vt.errors)})),Vt}function kr(vt){if(!vt)return null;let Vt=Object.entries(vt),dn={};for(let[yn,ar]of Vt)if(ar&&ar.__type==="RouteErrorResponse")dn[yn]=new et(ar.status,ar.statusText,ar.data,ar.internal===!0);else if(ar&&ar.__type==="Error"){if(ar.__subType){let wi=window[ar.__subType];if(typeof wi=="function")try{let mi=new wi(ar.message);mi.stack="",dn[yn]=mi}catch{}}if(dn[yn]==null){let wi=new Error(ar.message);wi.stack="",dn[yn]=wi}}else dn[yn]=ar;return dn}const Ve=i.createContext({isTransitioning:!1}),Ot=i.createContext(new Map),Wt=l["startTransition"],zn=m["flushSync"],si=l["useId"];function Ki(vt){Wt?Wt(vt):vt()}function Bi(vt){zn?zn(vt):vt()}class Xi{constructor(){this.status="pending",this.promise=new Promise((Vt,dn)=>{this.resolve=yn=>{this.status==="pending"&&(this.status="resolved",Vt(yn))},this.reject=yn=>{this.status==="pending"&&(this.status="rejected",dn(yn))}})}}function vo(vt){let{fallbackElement:Vt,router:dn,future:yn}=vt,[ar,wi]=i.useState(dn.state),[mi,ho]=i.useState(),[Ao,Mo]=i.useState({isTransitioning:!1}),[bo,ca]=i.useState(),[sa,Da]=i.useState(),[La,Ja]=i.useState(),Ya=i.useRef(new Map),{v7_startTransition:Aa}=yn||{},ba=i.useCallback(Ra=>{Aa?Ki(Ra):Ra()},[Aa]),Ka=i.useCallback((Ra,_a)=>{let{deletedFetchers:Wa,unstable_flushSync:eu,unstable_viewTransitionOpts:Ws}=_a;Wa.forEach(kt=>Ya.current.delete(kt)),Ra.fetchers.forEach((kt,Rn)=>{kt.data!==void 0&&Ya.current.set(Rn,kt.data)});let Ne=dn.window==null||typeof dn.window.document.startViewTransition!="function";if(!Ws||Ne){eu?Bi(()=>wi(Ra)):ba(()=>wi(Ra));return}if(eu){Bi(()=>{sa&&(bo&&bo.resolve(),sa.skipTransition()),Mo({isTransitioning:!0,flushSync:!0,currentLocation:Ws.currentLocation,nextLocation:Ws.nextLocation})});let kt=dn.window.document.startViewTransition(()=>{Bi(()=>wi(Ra))});kt.finished.finally(()=>{Bi(()=>{ca(void 0),Da(void 0),ho(void 0),Mo({isTransitioning:!1})})}),Bi(()=>Da(kt));return}sa?(bo&&bo.resolve(),sa.skipTransition(),Ja({state:Ra,currentLocation:Ws.currentLocation,nextLocation:Ws.nextLocation})):(ho(Ra),Mo({isTransitioning:!0,flushSync:!1,currentLocation:Ws.currentLocation,nextLocation:Ws.nextLocation}))},[dn.window,sa,bo,Ya,ba]);i.useLayoutEffect(()=>dn.subscribe(Ka),[dn,Ka]),i.useEffect(()=>{Ao.isTransitioning&&!Ao.flushSync&&ca(new Xi)},[Ao]),i.useEffect(()=>{if(bo&&mi&&dn.window){let Ra=mi,_a=bo.promise,Wa=dn.window.document.startViewTransition(async()=>{ba(()=>wi(Ra)),await _a});Wa.finished.finally(()=>{ca(void 0),Da(void 0),ho(void 0),Mo({isTransitioning:!1})}),Da(Wa)}},[ba,mi,bo,dn.window]),i.useEffect(()=>{bo&&mi&&ar.location.key===mi.location.key&&bo.resolve()},[bo,sa,ar.location,mi]),i.useEffect(()=>{!Ao.isTransitioning&&La&&(ho(La.state),Mo({isTransitioning:!0,flushSync:!1,currentLocation:La.currentLocation,nextLocation:La.nextLocation}),Ja(void 0))},[Ao.isTransitioning,La]),i.useEffect(()=>{},[]);let us=i.useMemo(()=>({createHref:dn.createHref,encodeLocation:dn.encodeLocation,go:Ra=>dn.navigate(Ra),push:(Ra,_a,Wa)=>dn.navigate(Ra,{state:_a,preventScrollReset:Wa?.preventScrollReset}),replace:(Ra,_a,Wa)=>dn.navigate(Ra,{replace:!0,state:_a,preventScrollReset:Wa?.preventScrollReset})}),[dn]),ii=dn.basename||"/",Wo=i.useMemo(()=>({router:dn,navigator:us,static:!1,basename:ii}),[dn,us,ii]);return i.createElement(i.Fragment,null,i.createElement(kn.Provider,{value:Wo},i.createElement(St.Provider,{value:ar},i.createElement(Ot.Provider,{value:Ya.current},i.createElement(Ve.Provider,{value:Ao},i.createElement(cr,{basename:ii,location:ar.location,navigationType:ar.historyAction,navigator:us,future:{v7_relativeSplatPath:dn.future.v7_relativeSplatPath}},ar.initialized||dn.future.v7_partialHydration?i.createElement(ea,{routes:dn.routes,future:dn.future,state:ar}):Vt))))),null)}function ea(vt){let{routes:Vt,future:dn,state:yn}=vt;return Ho(Vt,void 0,yn,dn)}function la(vt){let{basename:Vt,children:dn,future:yn,window:ar}=vt,wi=i.useRef();wi.current==null&&(wi.current=h({window:ar,v5Compat:!0}));let mi=wi.current,[ho,Ao]=i.useState({action:mi.action,location:mi.location}),{v7_startTransition:Mo}=yn||{},bo=i.useCallback(ca=>{Mo&&Wt?Wt(()=>Ao(ca)):Ao(ca)},[Ao,Mo]);return i.useLayoutEffect(()=>mi.listen(bo),[mi,bo]),i.createElement(cr,{basename:Vt,children:dn,location:ho.location,navigationType:ho.action,navigator:mi,future:yn})}function ss(vt){let{basename:Vt,children:dn,future:yn,window:ar}=vt,wi=i.useRef();wi.current==null&&(wi.current=d({window:ar,v5Compat:!0}));let mi=wi.current,[ho,Ao]=i.useState({action:mi.action,location:mi.location}),{v7_startTransition:Mo}=yn||{},bo=i.useCallback(ca=>{Mo&&Wt?Wt(()=>Ao(ca)):Ao(ca)},[Ao,Mo]);return i.useLayoutEffect(()=>mi.listen(bo),[mi,bo]),i.createElement(cr,{basename:Vt,children:dn,location:ho.location,navigationType:ho.action,navigator:mi,future:yn})}function Rs(vt){let{basename:Vt,children:dn,future:yn,history:ar}=vt,[wi,mi]=i.useState({action:ar.action,location:ar.location}),{v7_startTransition:ho}=yn||{},Ao=i.useCallback(Mo=>{ho&&Wt?Wt(()=>mi(Mo)):mi(Mo)},[mi,ho]);return i.useLayoutEffect(()=>ar.listen(Ao),[ar,Ao]),i.createElement(cr,{basename:Vt,children:dn,location:wi.location,navigationType:wi.action,navigator:ar,future:yn})}const Ds=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Is=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nu=i.forwardRef(function(Vt,dn){let{onClick:yn,relative:ar,reloadDocument:wi,replace:mi,state:ho,target:Ao,to:Mo,preventScrollReset:bo,unstable_viewTransition:ca}=Vt,sa=zi(Vt,Ti),{basename:Da}=i.useContext(An),La,Ja=!1;if(typeof Mo=="string"&&Is.test(Mo)&&(La=Mo,Ds))try{let Ka=new URL(window.location.href),us=Mo.startsWith("//")?new URL(Ka.protocol+Mo):new URL(Mo),ii=Ae(us.pathname,Da);us.origin===Ka.origin&&ii!=null?Mo=ii+us.search+us.hash:Ja=!0}catch{}let Ya=ir(Mo,{relative:ar}),Aa=Al(Mo,{replace:mi,state:ho,target:Ao,preventScrollReset:bo,relative:ar,unstable_viewTransition:ca});function ba(Ka){yn&&yn(Ka),Ka.defaultPrevented||Aa(Ka)}return i.createElement("a",Ci({},sa,{href:La||Ya,onClick:Ja||wi?yn:ba,ref:dn,target:Ao}))}),Ls=i.forwardRef(function(Vt,dn){let{"aria-current":yn="page",caseSensitive:ar=!1,className:wi="",end:mi=!1,style:ho,to:Ao,unstable_viewTransition:Mo,children:bo}=Vt,ca=zi(Vt,Oe),sa=ki(Ao,{relative:ca.relative}),Da=fn(),La=i.useContext(St),{navigator:Ja,basename:Ya}=i.useContext(An),Aa=La!=null&&rt(sa)&&Mo===!0,ba=Ja.encodeLocation?Ja.encodeLocation(sa).pathname:sa.pathname,Ka=Da.pathname,us=La&&La.navigation&&La.navigation.location?La.navigation.location.pathname:null;ar||(Ka=Ka.toLowerCase(),us=us?us.toLowerCase():null,ba=ba.toLowerCase()),us&&Ya&&(us=Ae(us,Ya)||us);const ii=ba!=="/"&&ba.endsWith("/")?ba.length-1:ba.length;let Wo=Ka===ba||!mi&&Ka.startsWith(ba)&&Ka.charAt(ii)==="/",Ra=us!=null&&(us===ba||!mi&&us.startsWith(ba)&&us.charAt(ba.length)==="/"),_a={isActive:Wo,isPending:Ra,isTransitioning:Aa},Wa=Wo?yn:void 0,eu;typeof wi=="function"?eu=wi(_a):eu=[wi,Wo?"active":null,Ra?"pending":null,Aa?"transitioning":null].filter(Boolean).join(" ");let Ws=typeof ho=="function"?ho(_a):ho;return i.createElement(nu,Ci({},ca,{"aria-current":Wa,className:eu,ref:dn,style:Ws,to:Ao,unstable_viewTransition:Mo}),typeof bo=="function"?bo(_a):bo)}),gu=i.forwardRef((vt,Vt)=>{let{fetcherKey:dn,navigate:yn,reloadDocument:ar,replace:wi,state:mi,method:ho=co,action:Ao,onSubmit:Mo,relative:bo,preventScrollReset:ca,unstable_viewTransition:sa}=vt,Da=zi(vt,pn),La=en(),Ja=sn(Ao,{relative:bo}),Ya=ho.toLowerCase()==="get"?"get":"post",Aa=ba=>{if(Mo&&Mo(ba),ba.defaultPrevented)return;ba.preventDefault();let Ka=ba.nativeEvent.submitter,us=Ka?.getAttribute("formmethod")||ho;La(Ka||ba.currentTarget,{fetcherKey:dn,method:us,navigate:yn,replace:wi,state:mi,relative:bo,preventScrollReset:ca,unstable_viewTransition:sa})};return i.createElement("form",Ci({ref:Vt,method:Ya,action:Ja,onSubmit:ar?Mo:Aa},Da))});function Us(vt){let{getKey:Vt,storageKey:dn}=vt;return ci({getKey:Vt,storageKey:dn}),null}var Iu;(function(vt){vt.UseScrollRestoration="useScrollRestoration",vt.UseSubmit="useSubmit",vt.UseSubmitFetcher="useSubmitFetcher",vt.UseFetcher="useFetcher",vt.useViewTransitionState="useViewTransitionState"})(Iu||(Iu={}));var Wu;(function(vt){vt.UseFetcher="useFetcher",vt.UseFetchers="useFetchers",vt.UseScrollRestoration="useScrollRestoration"})(Wu||(Wu={}));function rl(vt){return vt+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Hu(vt){let Vt=i.useContext(kn);return Vt||b(!1),Vt}function Ts(vt){let Vt=i.useContext(St);return Vt||b(!1),Vt}function Al(vt,Vt){let{target:dn,replace:yn,state:ar,preventScrollReset:wi,relative:mi,unstable_viewTransition:ho}=Vt===void 0?{}:Vt,Ao=$r(),Mo=fn(),bo=ki(vt,{relative:mi});return i.useCallback(ca=>{if(yr(ca,dn)){ca.preventDefault();let sa=yn!==void 0?yn:R(Mo)===R(bo);Ao(vt,{replace:sa,state:ar,preventScrollReset:wi,relative:mi,unstable_viewTransition:ho})}},[Mo,Ao,bo,yn,ar,dn,vt,wi,mi,ho])}function fl(vt){let Vt=i.useRef(Rr(vt)),dn=i.useRef(!1),yn=fn(),ar=i.useMemo(()=>ai(yn.search,dn.current?null:Vt.current),[yn.search]),wi=$r(),mi=i.useCallback((ho,Ao)=>{const Mo=Rr(typeof ho=="function"?ho(ar):ho);dn.current=!0,wi("?"+Mo,Ao)},[wi,ar]);return[ar,mi]}function Rl(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Bu=0,Mn=()=>"__"+String(++Bu)+"__";function en(){let{router:vt}=Hu(Iu.UseSubmit),{basename:Vt}=i.useContext(An),dn=ja();return i.useCallback(function(yn,ar){ar===void 0&&(ar={}),Rl();let{action:wi,method:mi,encType:ho,formData:Ao,body:Mo}=fi(yn,Vt);if(ar.navigate===!1){let bo=ar.fetcherKey||Mn();vt.fetch(bo,dn,ar.action||wi,{preventScrollReset:ar.preventScrollReset,formData:Ao,body:Mo,formMethod:ar.method||mi,formEncType:ar.encType||ho,unstable_flushSync:ar.unstable_flushSync})}else vt.navigate(ar.action||wi,{preventScrollReset:ar.preventScrollReset,formData:Ao,body:Mo,formMethod:ar.method||mi,formEncType:ar.encType||ho,replace:ar.replace,state:ar.state,fromRouteId:dn,unstable_flushSync:ar.unstable_flushSync,unstable_viewTransition:ar.unstable_viewTransition})},[vt,Vt,dn])}function sn(vt,Vt){let{relative:dn}=Vt===void 0?{}:Vt,{basename:yn}=i.useContext(An),ar=i.useContext(_i);ar||b(!1);let[wi]=ar.matches.slice(-1),mi=Ci({},ki(vt||".",{relative:dn})),ho=fn();if(vt==null){mi.search=ho.search;let Ao=new URLSearchParams(mi.search);Ao.has("index")&&Ao.get("index")===""&&(Ao.delete("index"),mi.search=Ao.toString()?"?"+Ao.toString():"")}return(!vt||vt===".")&&wi.route.index&&(mi.search=mi.search?mi.search.replace(/^\?/,"?index&"):"?index"),yn!=="/"&&(mi.pathname=mi.pathname==="/"?yn:U([yn,mi.pathname])),R(mi)}function qt(vt){var Vt;let{key:dn}=vt===void 0?{}:vt,{router:yn}=Hu(Iu.UseFetcher),ar=Ts(Wu.UseFetcher),wi=i.useContext(Ot),mi=i.useContext(_i),ho=(Vt=mi.matches[mi.matches.length-1])==null?void 0:Vt.route.id;wi||b(!1),mi||b(!1),ho==null&&b(!1);let Ao=si?si():"",[Mo,bo]=i.useState(dn||Ao);dn&&dn!==Mo?bo(dn):Mo||bo(Mn()),i.useEffect(()=>(yn.getFetcher(Mo),()=>{yn.deleteFetcher(Mo)}),[yn,Mo]);let ca=i.useCallback((ba,Ka)=>{ho||b(!1),yn.fetch(Mo,ho,ba,Ka)},[Mo,ho,yn]),sa=en(),Da=i.useCallback((ba,Ka)=>{sa(ba,Ci({},Ka,{navigate:!1,fetcherKey:Mo}))},[Mo,sa]),La=i.useMemo(()=>i.forwardRef((Ka,us)=>i.createElement(gu,Ci({},Ka,{navigate:!1,fetcherKey:Mo,ref:us}))),[Mo]),Ja=ar.fetchers.get(Mo)||qe,Ya=wi.get(Mo);return i.useMemo(()=>Ci({Form:La,submit:Da,load:ca},Ja,{data:Ya}),[La,Da,ca,Ja,Ya])}function In(){let vt=Ts(Wu.UseFetchers);return Array.from(vt.fetchers.entries()).map(Vt=>{let[dn,yn]=Vt;return Ci({},yn,{key:dn})})}const Kn="react-router-scroll-positions";let Fr={};function ci(vt){let{getKey:Vt,storageKey:dn}=vt===void 0?{}:vt,{router:yn}=Hu(Iu.UseScrollRestoration),{restoreScrollPosition:ar,preventScrollReset:wi}=Ts(Wu.UseScrollRestoration),{basename:mi}=i.useContext(An),ho=fn(),Ao=as(),Mo=hs();i.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),te(i.useCallback(()=>{if(Mo.state==="idle"){let bo=(Vt?Vt(ho,Ao):null)||ho.key;Fr[bo]=window.scrollY}try{sessionStorage.setItem(dn||Kn,JSON.stringify(Fr))}catch{}window.history.scrollRestoration="auto"},[dn,Vt,Mo.state,ho,Ao])),typeof document<"u"&&(i.useLayoutEffect(()=>{try{let bo=sessionStorage.getItem(dn||Kn);bo&&(Fr=JSON.parse(bo))}catch{}},[dn]),i.useLayoutEffect(()=>{let bo=Vt&&mi!=="/"?(sa,Da)=>Vt(Ci({},sa,{pathname:Ae(sa.pathname,mi)||sa.pathname}),Da):Vt,ca=yn?.enableScrollRestoration(Fr,()=>window.scrollY,bo);return()=>ca&&ca()},[yn,mi,Vt]),i.useLayoutEffect(()=>{if(ar!==!1){if(typeof ar=="number"){window.scrollTo(0,ar);return}if(ho.hash){let bo=document.getElementById(decodeURIComponent(ho.hash.slice(1)));if(bo){bo.scrollIntoView();return}}wi!==!0&&window.scrollTo(0,0)}},[ho,ar,wi]))}function Le(vt,Vt){let{capture:dn}=Vt||{};i.useEffect(()=>{let yn=dn!=null?{capture:dn}:void 0;return window.addEventListener("beforeunload",vt,yn),()=>{window.removeEventListener("beforeunload",vt,yn)}},[vt,dn])}function te(vt,Vt){let{capture:dn}=Vt||{};i.useEffect(()=>{let yn=dn!=null?{capture:dn}:void 0;return window.addEventListener("pagehide",vt,yn),()=>{window.removeEventListener("pagehide",vt,yn)}},[vt,dn])}function Ue(vt){let{when:Vt,message:dn}=vt,yn=Go(Vt);i.useEffect(()=>{yn.state==="blocked"&&(window.confirm(dn)?setTimeout(yn.proceed,0):yn.reset())},[yn,dn]),i.useEffect(()=>{yn.state==="blocked"&&!Vt&&yn.reset()},[yn,Vt])}function rt(vt,Vt){Vt===void 0&&(Vt={});let dn=i.useContext(Ve);dn==null&&b(!1);let{basename:yn}=Hu(Iu.useViewTransitionState),ar=ki(vt,{relative:Vt.relative});if(!dn.isTransitioning)return!1;let wi=Ae(dn.currentLocation.pathname,yn)||dn.currentLocation.pathname,mi=Ae(dn.nextLocation.pathname,yn)||dn.nextLocation.pathname;return ne(ar.pathname,mi)!=null||ne(ar.pathname,wi)!=null}function ht(vt){let{location:Vt,path:dn}=vt;return vt.exact||(dn+="/*"),i.createElement(ni,{location:Vt},i.createElement(Nn,{path:dn,element:i.createElement(ei.qh,Ci({},vt))}))}const xn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:()=>{};function Hn(vt){let{children:Vt}=vt,dn=(0,ei.W6)(),[yn,ar]=i.useState(()=>({location:dn.location,action:dn.action}));return xn(()=>{dn.listen((wi,mi)=>ar({location:wi,action:mi}))},[dn]),i.createElement(cr,{navigationType:yn.action,location:yn.location,navigator:dn},i.createElement(ni,null,i.createElement(Nn,{path:"*",element:Vt})))}const wr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Wr(vt){let{basename:Vt,children:dn,location:yn="/"}=vt;typeof yn=="string"&&(yn=Jn(yn));let ar=se.Pop,wi={pathname:yn.pathname||"/",search:yn.search||"",hash:yn.hash||"",state:yn.state||null,key:yn.key||"default"},mi={createHref(ho){return typeof ho=="string"?ho:tr(ho)},encodeLocation(ho){let Ao=typeof ho=="string"?ho:tr(ho),Mo=wr.test(Ao)?new URL(Ao):new URL(Ao,"http://localhost");return{pathname:Mo.pathname,search:Mo.search,hash:Mo.hash}},push(ho){throw new Error("You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+JSON.stringify(ho)+")` somewhere in your app."))},replace(ho){throw new Error("You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+JSON.stringify(ho)+", { replace: true })` somewhere ")+"in your app.")},go(ho){throw new Error("You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+ho+")` somewhere in your app."))},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}};return i.createElement(cr,{basename:Vt,children:dn,location:wi,navigationType:ar,navigator:mi,static:!0})}},54625:(J,g,t)=>{"use strict";t.r(g),t.d(g,{BrowserRouter:()=>v,HashRouter:()=>h,Link:()=>R,MemoryRouter:()=>i.fS,NavLink:()=>j,Prompt:()=>i.XG,Redirect:()=>i.rd,Route:()=>i.qh,Router:()=>i.Ix,StaticRouter:()=>i.kO,Switch:()=>i.dO,generatePath:()=>i.tW,matchPath:()=>i.B6,useHistory:()=>i.W6,useLocation:()=>i.zy,useParams:()=>i.g,useRouteMatch:()=>i.W5,withRouter:()=>i.y});var i=t(24180),l=t(77387),s=t(96540),m=t(17929),u=t(58168),f=t(98587),p=t(11561),v=function(_){(0,l.A)(N,_);function N(){for(var he,me=arguments.length,fe=new Array(me),ve=0;ve<me;ve++)fe[ve]=arguments[ve];return he=_.call.apply(_,[this].concat(fe))||this,he.history=(0,m.zR)(he.props),he}var W=N.prototype;return W.render=function(){return s.createElement(i.Ix,{history:this.history,children:this.props.children})},N}(s.Component),h=function(_){(0,l.A)(N,_);function N(){for(var he,me=arguments.length,fe=new Array(me),ve=0;ve<me;ve++)fe[ve]=arguments[ve];return he=_.call.apply(_,[this].concat(fe))||this,he.history=(0,m.TM)(he.props),he}var W=N.prototype;return W.render=function(){return s.createElement(i.Ix,{history:this.history,children:this.props.children})},N}(s.Component),d=function(N,W){return typeof N=="function"?N(W):N},b=function(N,W){return typeof N=="string"?(0,m.yJ)(N,null,null,W):N},y=function(N){return N},w=s.forwardRef;typeof w>"u"&&(w=y);function S(_){return!!(_.metaKey||_.altKey||_.ctrlKey||_.shiftKey)}var O=w(function(_,N){var W=_.innerRef,he=_.navigate,me=_.onClick,fe=(0,f.A)(_,["innerRef","navigate","onClick"]),ve=fe.target,ce=(0,u.A)({},fe,{onClick:function(re){try{me&&me(re)}catch(H){throw re.preventDefault(),H}!re.defaultPrevented&&re.button===0&&(!ve||ve==="_self")&&!S(re)&&(re.preventDefault(),he())}});return y!==w?ce.ref=N||W:ce.ref=W,s.createElement("a",ce)}),R=w(function(_,N){var W=_.component,he=W===void 0?O:W,me=_.replace,fe=_.to,ve=_.innerRef,ce=(0,f.A)(_,["component","replace","to","innerRef"]);return s.createElement(i.XZ.Consumer,null,function(oe){oe||(0,p.A)(!1);var re=oe.history,H=b(d(fe,oe.location),oe.location),V=H?re.createHref(H):"",Q=(0,u.A)({},ce,{href:V,navigate:function(){var Re=d(fe,oe.location),ne=(0,m.AO)(oe.location)===(0,m.AO)(b(Re)),pe=me||ne?re.replace:re.push;pe(Re)}});return y!==w?Q.ref=N||ve:Q.innerRef=ve,s.createElement(he,Q)})});if(!1)var M,D;var P=function(N){return N},T=s.forwardRef;typeof T>"u"&&(T=P);function A(){for(var _=arguments.length,N=new Array(_),W=0;W<_;W++)N[W]=arguments[W];return N.filter(function(he){return he}).join(" ")}var j=T(function(_,N){var W=_["aria-current"],he=W===void 0?"page":W,me=_.activeClassName,fe=me===void 0?"active":me,ve=_.activeStyle,ce=_.className,oe=_.exact,re=_.isActive,H=_.location,V=_.sensitive,Q=_.strict,Te=_.style,Re=_.to,ne=_.innerRef,pe=(0,f.A)(_,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s.createElement(i.XZ.Consumer,null,function(ye){ye||(0,p.A)(!1);var Se=H||ye.location,Ae=b(d(Re,Se),Se),Ee=Ae.pathname,xe=Ee&&Ee.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),nt=xe?(0,i.B6)(Se.pathname,{path:xe,exact:oe,sensitive:V,strict:Q}):null,Tt=!!(re?re(nt,Se):nt),pt=typeof ce=="function"?ce(Tt):ce,Rt=typeof Te=="function"?Te(Tt):Te;Tt&&(pt=A(pt,fe),Rt=(0,u.A)({},Rt,ve));var tt=(0,u.A)({"aria-current":Tt&&he||null,className:pt,style:Rt,to:Ae},pe);return P!==T?tt.ref=N||ne:tt.innerRef=ne,s.createElement(R,tt)})});if(!1)var ae},24180:(J,g,t)=>{"use strict";t.d(g,{fS:()=>he,XG:()=>fe,rd:()=>Q,qh:()=>Ee,Ix:()=>W,kO:()=>U,dO:()=>F,XZ:()=>N,tW:()=>V,B6:()=>ye,W6:()=>ke,zy:()=>Ye,g:()=>ft,W5:()=>wt,y:()=>Y});var i=t(77387),l=t(96540),s=t(17929),m=t(5556),u=t.n(m),f=1073741823,p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof t.g<"u"?t.g:{};function v(){var ee="__global_unique_id__";return p[ee]=(p[ee]||0)+1}function h(ee,I){return ee===I?ee!==0||1/ee===1/I:ee!==ee&&I!==I}function d(ee){var I=[];return{on:function(ue){I.push(ue)},off:function(ue){I=I.filter(function(De){return De!==ue})},get:function(){return ee},set:function(ue,De){ee=ue,I.forEach(function(He){return He(ee,De)})}}}function b(ee){return Array.isArray(ee)?ee[0]:ee}function y(ee,I){var K,ue,De="__create-react-context-"+v()+"__",He=function(ze){(0,i.A)(qe,ze);function qe(){var _t;return _t=ze.apply(this,arguments)||this,_t.emitter=d(_t.props.value),_t}var We=qe.prototype;return We.getChildContext=function(){var ct;return ct={},ct[De]=this.emitter,ct},We.componentWillReceiveProps=function(ct){if(this.props.value!==ct.value){var Ge=this.props.value,st=ct.value,Me;h(Ge,st)?Me=0:(Me=typeof I=="function"?I(Ge,st):f,Me|=0,Me!==0&&this.emitter.set(ct.value,Me))}},We.render=function(){return this.props.children},qe}(l.Component);He.childContextTypes=(K={},K[De]=u().object.isRequired,K);var Fe=function(ze){(0,i.A)(qe,ze);function qe(){var _t;return _t=ze.apply(this,arguments)||this,_t.state={value:_t.getValue()},_t.onUpdate=function(ct,Ge){var st=_t.observedBits|0;st&Ge&&_t.setState({value:_t.getValue()})},_t}var We=qe.prototype;return We.componentWillReceiveProps=function(ct){var Ge=ct.observedBits;this.observedBits=Ge??f},We.componentDidMount=function(){this.context[De]&&this.context[De].on(this.onUpdate);var ct=this.props.observedBits;this.observedBits=ct??f},We.componentWillUnmount=function(){this.context[De]&&this.context[De].off(this.onUpdate)},We.getValue=function(){return this.context[De]?this.context[De].get():ee},We.render=function(){return b(this.props.children)(this.state.value)},qe}(l.Component);return Fe.contextTypes=(ue={},ue[De]=u().object,ue),{Provider:He,Consumer:Fe}}var w=l.createContext||y;const S=w;var O=t(11561),R=t(58168),M=t(8505),D=t.n(M),P=t(37564),T=t(98587),A=t(4146),j=t.n(A),ae=function(I){var K=S();return K.displayName=I,K},_=ae("Router-History"),N=ae("Router"),W=function(ee){(0,i.A)(I,ee),I.computeRootMatch=function(De){return{path:"/",url:"/",params:{},isExact:De==="/"}};function I(ue){var De;return De=ee.call(this,ue)||this,De.state={location:ue.history.location},De._isMounted=!1,De._pendingLocation=null,ue.staticContext||(De.unlisten=ue.history.listen(function(He){De._pendingLocation=He})),De}var K=I.prototype;return K.componentDidMount=function(){var De=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(He){De._isMounted&&De.setState({location:He})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},K.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},K.render=function(){return l.createElement(N.Provider,{value:{history:this.props.history,location:this.state.location,match:I.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},l.createElement(_.Provider,{children:this.props.children||null,value:this.props.history}))},I}(l.Component),he=function(ee){(0,i.A)(I,ee);function I(){for(var ue,De=arguments.length,He=new Array(De),Fe=0;Fe<De;Fe++)He[Fe]=arguments[Fe];return ue=ee.call.apply(ee,[this].concat(He))||this,ue.history=(0,s.sC)(ue.props),ue}var K=I.prototype;return K.render=function(){return l.createElement(W,{history:this.history,children:this.props.children})},I}(l.Component),me=function(ee){(0,i.A)(I,ee);function I(){return ee.apply(this,arguments)||this}var K=I.prototype;return K.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},K.componentDidUpdate=function(De){this.props.onUpdate&&this.props.onUpdate.call(this,this,De)},K.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},K.render=function(){return null},I}(l.Component);function fe(ee){var I=ee.message,K=ee.when,ue=K===void 0?!0:K;return l.createElement(N.Consumer,null,function(De){if(De||(0,O.A)(!1),!ue||De.staticContext)return null;var He=De.history.block;return l.createElement(me,{onMount:function(ze){ze.release=He(I)},onUpdate:function(ze,qe){qe.message!==I&&(ze.release(),ze.release=He(I))},onUnmount:function(ze){ze.release()},message:I})})}if(!1)var ve;var ce={},oe=1e4,re=0;function H(ee){if(ce[ee])return ce[ee];var I=D().compile(ee);return re<oe&&(ce[ee]=I,re++),I}function V(ee,I){return ee===void 0&&(ee="/"),I===void 0&&(I={}),ee==="/"?ee:H(ee)(I,{pretty:!0})}function Q(ee){var I=ee.computedMatch,K=ee.to,ue=ee.push,De=ue===void 0?!1:ue;return l.createElement(N.Consumer,null,function(He){He||(0,O.A)(!1);var Fe=He.history,ze=He.staticContext,qe=De?Fe.push:Fe.replace,We=(0,s.yJ)(I?typeof K=="string"?V(K,I.params):(0,R.A)({},K,{pathname:V(K.pathname,I.params)}):K);return ze?(qe(We),null):l.createElement(me,{onMount:function(){qe(We)},onUpdate:function(ct,Ge){var st=(0,s.yJ)(Ge.to);(0,s.Fu)(st,(0,R.A)({},We,{key:st.key}))||qe(We)},to:K})})}var Te={},Re=1e4,ne=0;function pe(ee,I){var K=""+I.end+I.strict+I.sensitive,ue=Te[K]||(Te[K]={});if(ue[ee])return ue[ee];var De=[],He=D()(ee,De,I),Fe={regexp:He,keys:De};return ne<Re&&(ue[ee]=Fe,ne++),Fe}function ye(ee,I){I===void 0&&(I={}),(typeof I=="string"||Array.isArray(I))&&(I={path:I});var K=I,ue=K.path,De=K.exact,He=De===void 0?!1:De,Fe=K.strict,ze=Fe===void 0?!1:Fe,qe=K.sensitive,We=qe===void 0?!1:qe,_t=[].concat(ue);return _t.reduce(function(ct,Ge){if(!Ge&&Ge!=="")return null;if(ct)return ct;var st=pe(Ge,{end:He,strict:ze,sensitive:We}),Me=st.regexp,ie=st.keys,ge=Me.exec(ee);if(!ge)return null;var z=ge[0],be=ge.slice(1),Qe=ee===z;return He&&!Qe?null:{path:Ge,url:Ge==="/"&&z===""?"/":z,isExact:Qe,params:ie.reduce(function(Bt,nn,bt){return Bt[nn.name]=be[bt],Bt},{})}},null)}function Se(ee){return l.Children.count(ee)===0}function Ae(ee,I,K){var ue=ee(I);return ue||null}var Ee=function(ee){(0,i.A)(I,ee);function I(){return ee.apply(this,arguments)||this}var K=I.prototype;return K.render=function(){var De=this;return l.createElement(N.Consumer,null,function(He){He||(0,O.A)(!1);var Fe=De.props.location||He.location,ze=De.props.computedMatch?De.props.computedMatch:De.props.path?ye(Fe.pathname,De.props):He.match,qe=(0,R.A)({},He,{location:Fe,match:ze}),We=De.props,_t=We.children,ct=We.component,Ge=We.render;return Array.isArray(_t)&&Se(_t)&&(_t=null),l.createElement(N.Provider,{value:qe},qe.match?_t?typeof _t=="function"?_t(qe):_t:ct?l.createElement(ct,qe):Ge?Ge(qe):null:typeof _t=="function"?_t(qe):null)})},I}(l.Component);function xe(ee){return ee.charAt(0)==="/"?ee:"/"+ee}function nt(ee,I){return ee?(0,R.A)({},I,{pathname:xe(ee)+I.pathname}):I}function Tt(ee,I){if(!ee)return I;var K=xe(ee);return I.pathname.indexOf(K)!==0?I:(0,R.A)({},I,{pathname:I.pathname.substr(K.length)})}function pt(ee){return typeof ee=="string"?ee:(0,s.AO)(ee)}function Rt(ee){return function(){(0,O.A)(!1)}}function tt(){}var U=function(ee){(0,i.A)(I,ee);function I(){for(var ue,De=arguments.length,He=new Array(De),Fe=0;Fe<De;Fe++)He[Fe]=arguments[Fe];return ue=ee.call.apply(ee,[this].concat(He))||this,ue.handlePush=function(ze){return ue.navigateTo(ze,"PUSH")},ue.handleReplace=function(ze){return ue.navigateTo(ze,"REPLACE")},ue.handleListen=function(){return tt},ue.handleBlock=function(){return tt},ue}var K=I.prototype;return K.navigateTo=function(De,He){var Fe=this.props,ze=Fe.basename,qe=ze===void 0?"":ze,We=Fe.context,_t=We===void 0?{}:We;_t.action=He,_t.location=nt(qe,(0,s.yJ)(De)),_t.url=pt(_t.location)},K.render=function(){var De=this.props,He=De.basename,Fe=He===void 0?"":He,ze=De.context,qe=ze===void 0?{}:ze,We=De.location,_t=We===void 0?"/":We,ct=(0,T.A)(De,["basename","context","location"]),Ge={createHref:function(Me){return xe(Fe+pt(Me))},action:"POP",location:Tt(Fe,(0,s.yJ)(_t)),push:this.handlePush,replace:this.handleReplace,go:Rt("go"),goBack:Rt("goBack"),goForward:Rt("goForward"),listen:this.handleListen,block:this.handleBlock};return l.createElement(W,(0,R.A)({},ct,{history:Ge,staticContext:qe}))},I}(l.Component),F=function(ee){(0,i.A)(I,ee);function I(){return ee.apply(this,arguments)||this}var K=I.prototype;return K.render=function(){var De=this;return l.createElement(N.Consumer,null,function(He){He||(0,O.A)(!1);var Fe=De.props.location||He.location,ze,qe;return l.Children.forEach(De.props.children,function(We){if(qe==null&&l.isValidElement(We)){ze=We;var _t=We.props.path||We.props.from;qe=_t?ye(Fe.pathname,(0,R.A)({},We.props,{path:_t})):He.match}}),qe?l.cloneElement(ze,{location:Fe,computedMatch:qe}):null})},I}(l.Component);function Y(ee){var I="withRouter("+(ee.displayName||ee.name)+")",K=function(De){var He=De.wrappedComponentRef,Fe=(0,T.A)(De,["wrappedComponentRef"]);return l.createElement(N.Consumer,null,function(ze){return ze||(0,O.A)(!1),l.createElement(ee,(0,R.A)({},Fe,ze,{ref:He}))})};return K.displayName=I,K.WrappedComponent=ee,j()(K,ee)}var le=l.useContext;function ke(){return le(_)}function Ye(){return le(N).location}function ft(){var ee=le(N).match;return ee?ee.params:{}}function wt(ee){var I=Ye(),K=le(N).match;return ee?ye(I.pathname,ee):K}if(!1)var Ut,Ke,it,At,et},9375:J=>{J.exports=Array.isArray||function(g){return Object.prototype.toString.call(g)=="[object Array]"}},8505:(J,g,t)=>{var i=t(9375);J.exports=R,J.exports.parse=s,J.exports.compile=m,J.exports.tokensToFunction=p,J.exports.tokensToRegExp=O;var l=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(M,D){for(var P=[],T=0,A=0,j="",ae=D&&D.delimiter||"/",_;(_=l.exec(M))!=null;){var N=_[0],W=_[1],he=_.index;if(j+=M.slice(A,he),A=he+N.length,W){j+=W[1];continue}var me=M[A],fe=_[2],ve=_[3],ce=_[4],oe=_[5],re=_[6],H=_[7];j&&(P.push(j),j="");var V=fe!=null&&me!=null&&me!==fe,Q=re==="+"||re==="*",Te=re==="?"||re==="*",Re=_[2]||ae,ne=ce||oe;P.push({name:ve||T++,prefix:fe||"",delimiter:Re,optional:Te,repeat:Q,partial:V,asterisk:!!H,pattern:ne?h(ne):H?".*":"[^"+v(Re)+"]+?"})}return A<M.length&&(j+=M.substr(A)),j&&P.push(j),P}function m(M,D){return p(s(M,D),D)}function u(M){return encodeURI(M).replace(/[\/?#]/g,function(D){return"%"+D.charCodeAt(0).toString(16).toUpperCase()})}function f(M){return encodeURI(M).replace(/[?#]/g,function(D){return"%"+D.charCodeAt(0).toString(16).toUpperCase()})}function p(M,D){for(var P=new Array(M.length),T=0;T<M.length;T++)typeof M[T]=="object"&&(P[T]=new RegExp("^(?:"+M[T].pattern+")$",b(D)));return function(A,j){for(var ae="",_=A||{},N=j||{},W=N.pretty?u:encodeURIComponent,he=0;he<M.length;he++){var me=M[he];if(typeof me=="string"){ae+=me;continue}var fe=_[me.name],ve;if(fe==null)if(me.optional){me.partial&&(ae+=me.prefix);continue}else throw new TypeError('Expected "'+me.name+'" to be defined');if(i(fe)){if(!me.repeat)throw new TypeError('Expected "'+me.name+'" to not repeat, but received `'+JSON.stringify(fe)+"`");if(fe.length===0){if(me.optional)continue;throw new TypeError('Expected "'+me.name+'" to not be empty')}for(var ce=0;ce<fe.length;ce++){if(ve=W(fe[ce]),!P[he].test(ve))throw new TypeError('Expected all "'+me.name+'" to match "'+me.pattern+'", but received `'+JSON.stringify(ve)+"`");ae+=(ce===0?me.prefix:me.delimiter)+ve}continue}if(ve=me.asterisk?f(fe):W(fe),!P[he].test(ve))throw new TypeError('Expected "'+me.name+'" to match "'+me.pattern+'", but received "'+ve+'"');ae+=me.prefix+ve}return ae}}function v(M){return M.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function h(M){return M.replace(/([=!:$\/()])/g,"\\$1")}function d(M,D){return M.keys=D,M}function b(M){return M&&M.sensitive?"":"i"}function y(M,D){var P=M.source.match(/\((?!\?)/g);if(P)for(var T=0;T<P.length;T++)D.push({name:T,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(M,D)}function w(M,D,P){for(var T=[],A=0;A<M.length;A++)T.push(R(M[A],D,P).source);var j=new RegExp("(?:"+T.join("|")+")",b(P));return d(j,D)}function S(M,D,P){return O(s(M,P),D,P)}function O(M,D,P){i(D)||(P=D||P,D=[]),P=P||{};for(var T=P.strict,A=P.end!==!1,j="",ae=0;ae<M.length;ae++){var _=M[ae];if(typeof _=="string")j+=v(_);else{var N=v(_.prefix),W="(?:"+_.pattern+")";D.push(_),_.repeat&&(W+="(?:"+N+W+")*"),_.optional?_.partial?W=N+"("+W+")?":W="(?:"+N+"("+W+"))?":W=N+"("+W+")",j+=W}}var he=v(P.delimiter||"/"),me=j.slice(-he.length)===he;return T||(j=(me?j.slice(0,-he.length):j)+"(?:"+he+"(?=$))?"),A?j+="$":j+=T&&me?"":"(?="+he+"|$)",d(new RegExp("^"+j,b(P)),D)}function R(M,D,P){return i(D)||(P=D||P,D=[]),P=P||{},M instanceof RegExp?y(M,D):i(M)?w(M,D,P):S(M,D,P)}},14912:(J,g)=>{"use strict";var t;/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=typeof Symbol=="function"&&Symbol.for,l=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,m=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,f=i?Symbol.for("react.profiler"):60114,p=i?Symbol.for("react.provider"):60109,v=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,d=i?Symbol.for("react.concurrent_mode"):60111,b=i?Symbol.for("react.forward_ref"):60112,y=i?Symbol.for("react.suspense"):60113,w=i?Symbol.for("react.suspense_list"):60120,S=i?Symbol.for("react.memo"):60115,O=i?Symbol.for("react.lazy"):60116,R=i?Symbol.for("react.block"):60121,M=i?Symbol.for("react.fundamental"):60117,D=i?Symbol.for("react.responder"):60118,P=i?Symbol.for("react.scope"):60119;function T(j){if(typeof j=="object"&&j!==null){var ae=j.$$typeof;switch(ae){case l:switch(j=j.type,j){case h:case d:case m:case f:case u:case y:return j;default:switch(j=j&&j.$$typeof,j){case v:case b:case O:case S:case p:return j;default:return ae}}case s:return ae}}}function A(j){return T(j)===d}t=h,t=d,t=v,t=p,t=l,t=b,t=m,t=O,t=S,t=s,t=f,t=u,t=y,t=function(j){return A(j)||T(j)===h},t=A,t=function(j){return T(j)===v},t=function(j){return T(j)===p},t=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===l},t=function(j){return T(j)===b},t=function(j){return T(j)===m},t=function(j){return T(j)===O},t=function(j){return T(j)===S},t=function(j){return T(j)===s},t=function(j){return T(j)===f},t=function(j){return T(j)===u},t=function(j){return T(j)===y},t=function(j){return typeof j=="string"||typeof j=="function"||j===m||j===d||j===f||j===u||j===y||j===w||typeof j=="object"&&j!==null&&(j.$$typeof===O||j.$$typeof===S||j.$$typeof===p||j.$$typeof===v||j.$$typeof===b||j.$$typeof===M||j.$$typeof===D||j.$$typeof===P||j.$$typeof===R)},t=T},37564:(J,g,t)=>{"use strict";t(14912)},93943:(J,g,t)=>{"use strict";t.d(g,{A:()=>d});var i=t(58168),l=t(96540),s=t(88131),m=t(46648),u=t(52836),f=t(59189),p=t(40961),v=t(27003),h=(0,l.forwardRef)(function(b,y){var w=(0,m.u)(b),S=(0,u.u)(w),O=(0,f.u)(S);return l.createElement(s.S,(0,i.A)({ref:y},O))}),d=h},8539:(J,g,t)=>{"use strict";t.d(g,{A:()=>h});var i=t(58168),l=t(96540),s=t(88131),m=t(52836),u=t(46648),f=t(40961),p=t(27003),v=(0,l.forwardRef)(function(d,b){var y=(0,u.u)(d),w=(0,m.u)(y);return l.createElement(s.S,(0,i.A)({ref:b},w))}),h=v},66963:(J,g,t)=>{"use strict";t.d(g,{A:()=>h});var i=t(58168),l=t(96540),s=t(88131),m=t(52836),u=t(59189),f=t(40961),p=t(27003),v=(0,l.forwardRef)(function(d,b){var y=(0,m.u)(d),w=(0,u.u)(y);return l.createElement(s.S,(0,i.A)({ref:b},w))}),h=v},88131:(J,g,t)=>{"use strict";t.d(g,{S:()=>On,b:()=>Ke,c:()=>ve,g:()=>it});var i=t(58168),l=t(89379),s=t(23029),m=t(92901),u=t(85501),f=t(88293),p=t(60436),v=t(96540),h=t(28581),d=t(94659),b=t(41811),y=t(80045);function w(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var S={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},O=function(Zt){return(0,d.jsx)("span",(0,i.A)({css:S},Zt))},R=O,M={guidance:function(Zt){var Wn=Zt.isSearchable,Zn=Zt.isMulti,xt=Zt.tabSelectsValue,Xe=Zt.context,gn=Zt.isInitialFocus;switch(Xe){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(xt?", press Tab to select the option and exit the menu":"",".");case"input":return gn?"".concat(Zt["aria-label"]||"Select"," is focused ").concat(Wn?",type to refine list":"",", press Down to open the menu, ").concat(Zn?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(Zt){var Wn=Zt.action,Zn=Zt.label,xt=Zn===void 0?"":Zn,Xe=Zt.labels,gn=Zt.isDisabled;switch(Wn){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(xt,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(Xe.length>1?"s":""," ").concat(Xe.join(","),", selected.");case"select-option":return gn?"option ".concat(xt," is disabled. Select another option."):"option ".concat(xt,", selected.");default:return""}},onFocus:function(Zt){var Wn=Zt.context,Zn=Zt.focused,xt=Zt.options,Xe=Zt.label,gn=Xe===void 0?"":Xe,Qt=Zt.selectValue,Dt=Zt.isDisabled,hn=Zt.isSelected,cn=Zt.isAppleDevice,an=function(Gn,rr){return Gn&&Gn.length?"".concat(Gn.indexOf(rr)+1," of ").concat(Gn.length):""};if(Wn==="value"&&Qt)return"value ".concat(gn," focused, ").concat(an(Qt,Zn),".");if(Wn==="menu"&&cn){var Or=Dt?" disabled":"",Ln="".concat(hn?" selected":"").concat(Or);return"".concat(gn).concat(Ln,", ").concat(an(xt,Zn),".")}return""},onFilter:function(Zt){var Wn=Zt.inputValue,Zn=Zt.resultsMessage;return"".concat(Zn).concat(Wn?" for search term "+Wn:"",".")}},D=function(Zt){var Wn=Zt.ariaSelection,Zn=Zt.focusedOption,xt=Zt.focusedValue,Xe=Zt.focusableOptions,gn=Zt.isFocused,Qt=Zt.selectValue,Dt=Zt.selectProps,hn=Zt.id,cn=Zt.isAppleDevice,an=Dt.ariaLiveMessages,Or=Dt.getOptionLabel,Ln=Dt.inputValue,En=Dt.isMulti,Gn=Dt.isOptionDisabled,rr=Dt.isSearchable,sr=Dt.menuIsOpen,pi=Dt.options,yi=Dt.screenReaderStatus,jr=Dt.tabSelectsValue,ui=Dt.isLoading,bi=Dt["aria-label"],ri=Dt["aria-live"],hi=(0,v.useMemo)(function(){return(0,l.A)((0,l.A)({},M),an||{})},[an]),Si=(0,v.useMemo)(function(){var lo="";if(Wn&&hi.onChange){var Gr=Wn.option,un=Wn.options,qn=Wn.removedValue,kn=Wn.removedValues,St=Wn.value,ln=function(fn){return Array.isArray(fn)?null:fn},An=qn||Gr||ln(St),Cr=An?Or(An):"",_i=un||kn||void 0,Sn=_i?_i.map(Or):[],ir=(0,l.A)({isDisabled:An&&Gn(An,Qt),label:Cr,labels:Sn},Wn);lo=hi.onChange(ir)}return lo},[Wn,hi,Gn,Qt,Or]),Kr=(0,v.useMemo)(function(){var lo="",Gr=Zn||xt,un=!!(Zn&&Qt&&Qt.includes(Zn));if(Gr&&hi.onFocus){var qn={focused:Gr,label:Or(Gr),isDisabled:Gn(Gr,Qt),isSelected:un,options:Xe,context:Gr===Zn?"menu":"value",selectValue:Qt,isAppleDevice:cn};lo=hi.onFocus(qn)}return lo},[Zn,xt,Or,Gn,hi,Xe,Qt,cn]),xi=(0,v.useMemo)(function(){var lo="";if(sr&&pi.length&&!ui&&hi.onFilter){var Gr=yi({count:Xe.length});lo=hi.onFilter({inputValue:Ln,resultsMessage:Gr})}return lo},[Xe,Ln,sr,hi,pi,yi,ui]),Ai=Wn?.action==="initial-input-focus",Pi=(0,v.useMemo)(function(){var lo="";if(hi.guidance){var Gr=xt?"value":sr?"menu":"input";lo=hi.guidance({"aria-label":bi,context:Gr,isDisabled:Zn&&Gn(Zn,Qt),isMulti:En,isSearchable:rr,tabSelectsValue:jr,isInitialFocus:Ai})}return lo},[bi,Zn,xt,En,Gn,rr,sr,hi,Qt,jr,Ai]),io=(0,d.jsx)(v.Fragment,null,(0,d.jsx)("span",{id:"aria-selection"},Si),(0,d.jsx)("span",{id:"aria-focused"},Kr),(0,d.jsx)("span",{id:"aria-results"},xi),(0,d.jsx)("span",{id:"aria-guidance"},Pi));return(0,d.jsx)(v.Fragment,null,(0,d.jsx)(R,{id:hn},Ai&&io),(0,d.jsx)(R,{"aria-live":ri,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},gn&&!Ai&&io))},P=D,T=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],A=new RegExp("["+T.map(function(Ct){return Ct.letters}).join("")+"]","g"),j={},ae=0;ae<T.length;ae++)for(var _=T[ae],N=0;N<_.letters.length;N++)j[_.letters[N]]=_.base;var W=function(Zt){return Zt.replace(A,function(Wn){return j[Wn]})},he=(0,b.A)(W),me=function(Zt){return Zt.replace(/^\s+|\s+$/g,"")},fe=function(Zt){return"".concat(Zt.label," ").concat(Zt.value)},ve=function(Zt){return function(Wn,Zn){if(Wn.data.__isNew__)return!0;var xt=(0,l.A)({ignoreCase:!0,ignoreAccents:!0,stringify:fe,trim:!0,matchFrom:"any"},Zt),Xe=xt.ignoreCase,gn=xt.ignoreAccents,Qt=xt.stringify,Dt=xt.trim,hn=xt.matchFrom,cn=Dt?me(Zn):Zn,an=Dt?me(Qt(Wn)):Qt(Wn);return Xe&&(cn=cn.toLowerCase(),an=an.toLowerCase()),gn&&(cn=he(cn),an=W(an)),hn==="start"?an.substr(0,cn.length)===cn:an.indexOf(cn)>-1}},ce=["innerRef"];function oe(Ct){var Zt=Ct.innerRef,Wn=(0,y.A)(Ct,ce),Zn=(0,h.r)(Wn,"onExited","in","enter","exit","appear");return(0,d.jsx)("input",(0,i.A)({ref:Zt},Zn,{css:(0,d.css)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var re=function(Zt){Zt.cancelable&&Zt.preventDefault(),Zt.stopPropagation()};function H(Ct){var Zt=Ct.isEnabled,Wn=Ct.onBottomArrive,Zn=Ct.onBottomLeave,xt=Ct.onTopArrive,Xe=Ct.onTopLeave,gn=(0,v.useRef)(!1),Qt=(0,v.useRef)(!1),Dt=(0,v.useRef)(0),hn=(0,v.useRef)(null),cn=(0,v.useCallback)(function(rr,sr){if(hn.current!==null){var pi=hn.current,yi=pi.scrollTop,jr=pi.scrollHeight,ui=pi.clientHeight,bi=hn.current,ri=sr>0,hi=jr-ui-yi,Si=!1;hi>sr&&gn.current&&(Zn&&Zn(rr),gn.current=!1),ri&&Qt.current&&(Xe&&Xe(rr),Qt.current=!1),ri&&sr>hi?(Wn&&!gn.current&&Wn(rr),bi.scrollTop=jr,Si=!0,gn.current=!0):!ri&&-sr>yi&&(xt&&!Qt.current&&xt(rr),bi.scrollTop=0,Si=!0,Qt.current=!0),Si&&re(rr)}},[Wn,Zn,xt,Xe]),an=(0,v.useCallback)(function(rr){cn(rr,rr.deltaY)},[cn]),Or=(0,v.useCallback)(function(rr){Dt.current=rr.changedTouches[0].clientY},[]),Ln=(0,v.useCallback)(function(rr){var sr=Dt.current-rr.changedTouches[0].clientY;cn(rr,sr)},[cn]),En=(0,v.useCallback)(function(rr){if(rr){var sr=h.s?{passive:!1}:!1;rr.addEventListener("wheel",an,sr),rr.addEventListener("touchstart",Or,sr),rr.addEventListener("touchmove",Ln,sr)}},[Ln,Or,an]),Gn=(0,v.useCallback)(function(rr){rr&&(rr.removeEventListener("wheel",an,!1),rr.removeEventListener("touchstart",Or,!1),rr.removeEventListener("touchmove",Ln,!1))},[Ln,Or,an]);return(0,v.useEffect)(function(){if(Zt){var rr=hn.current;return En(rr),function(){Gn(rr)}}},[Zt,En,Gn]),function(rr){hn.current=rr}}var V=["boxSizing","height","overflow","paddingRight","position"],Q={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Te(Ct){Ct.preventDefault()}function Re(Ct){Ct.stopPropagation()}function ne(){var Ct=this.scrollTop,Zt=this.scrollHeight,Wn=Ct+this.offsetHeight;Ct===0?this.scrollTop=1:Wn===Zt&&(this.scrollTop=Ct-1)}function pe(){return"ontouchstart"in window||navigator.maxTouchPoints}var ye=!!(typeof window<"u"&&window.document&&window.document.createElement),Se=0,Ae={capture:!1,passive:!1};function Ee(Ct){var Zt=Ct.isEnabled,Wn=Ct.accountForScrollbars,Zn=Wn===void 0?!0:Wn,xt=(0,v.useRef)({}),Xe=(0,v.useRef)(null),gn=(0,v.useCallback)(function(Dt){if(ye){var hn=document.body,cn=hn&&hn.style;if(Zn&&V.forEach(function(En){var Gn=cn&&cn[En];xt.current[En]=Gn}),Zn&&Se<1){var an=parseInt(xt.current.paddingRight,10)||0,Or=document.body?document.body.clientWidth:0,Ln=window.innerWidth-Or+an||0;Object.keys(Q).forEach(function(En){var Gn=Q[En];cn&&(cn[En]=Gn)}),cn&&(cn.paddingRight="".concat(Ln,"px"))}hn&&pe()&&(hn.addEventListener("touchmove",Te,Ae),Dt&&(Dt.addEventListener("touchstart",ne,Ae),Dt.addEventListener("touchmove",Re,Ae))),Se+=1}},[Zn]),Qt=(0,v.useCallback)(function(Dt){if(ye){var hn=document.body,cn=hn&&hn.style;Se=Math.max(Se-1,0),Zn&&Se<1&&V.forEach(function(an){var Or=xt.current[an];cn&&(cn[an]=Or)}),hn&&pe()&&(hn.removeEventListener("touchmove",Te,Ae),Dt&&(Dt.removeEventListener("touchstart",ne,Ae),Dt.removeEventListener("touchmove",Re,Ae)))}},[Zn]);return(0,v.useEffect)(function(){if(Zt){var Dt=Xe.current;return gn(Dt),function(){Qt(Dt)}}},[Zt,gn,Qt]),function(Dt){Xe.current=Dt}}function xe(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var nt=function(Zt){var Wn=Zt.target;return Wn.ownerDocument.activeElement&&Wn.ownerDocument.activeElement.blur()},Tt={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function pt(Ct){var Zt=Ct.children,Wn=Ct.lockEnabled,Zn=Ct.captureEnabled,xt=Zn===void 0?!0:Zn,Xe=Ct.onBottomArrive,gn=Ct.onBottomLeave,Qt=Ct.onTopArrive,Dt=Ct.onTopLeave,hn=H({isEnabled:xt,onBottomArrive:Xe,onBottomLeave:gn,onTopArrive:Qt,onTopLeave:Dt}),cn=Ee({isEnabled:Wn}),an=function(Ln){hn(Ln),cn(Ln)};return(0,d.jsx)(v.Fragment,null,Wn&&(0,d.jsx)("div",{onClick:nt,css:Tt}),Zt(an))}function Rt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var tt={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},U=function(Zt){var Wn=Zt.name,Zn=Zt.onFocus;return(0,d.jsx)("input",{required:!0,name:Wn,tabIndex:-1,"aria-hidden":"true",onFocus:Zn,css:tt,value:"",onChange:function(){}})},F=U;function Y(Ct){var Zt;return typeof window<"u"&&window.navigator!=null?Ct.test(((Zt=window.navigator.userAgentData)===null||Zt===void 0?void 0:Zt.platform)||window.navigator.platform):!1}function le(){return Y(/^iPhone/i)}function ke(){return Y(/^Mac/i)}function Ye(){return Y(/^iPad/i)||ke()&&navigator.maxTouchPoints>1}function ft(){return le()||Ye()}function wt(){return ke()||ft()}var Ut=function(Zt){return Zt.label},Ke=function(Zt){return Zt.label},it=function(Zt){return Zt.value},At=function(Zt){return!!Zt.isDisabled},et={clearIndicator:h.a,container:h.b,control:h.d,dropdownIndicator:h.e,group:h.g,groupHeading:h.f,indicatorsContainer:h.i,indicatorSeparator:h.h,input:h.j,loadingIndicator:h.l,loadingMessage:h.k,menu:h.m,menuList:h.n,menuPortal:h.o,multiValue:h.p,multiValueLabel:h.q,multiValueRemove:h.t,noOptionsMessage:h.u,option:h.v,placeholder:h.w,singleValue:h.x,valueContainer:h.y};function ee(Ct){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=_objectSpread({},Ct);return Object.keys(Zt).forEach(function(Zn){var xt=Zn;Ct[xt]?Wn[xt]=function(Xe,gn){return Zt[xt](Ct[xt](Xe,gn),gn)}:Wn[xt]=Zt[xt]}),Wn}var I={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},K=4,ue=4,De=38,He=ue*2,Fe={baseUnit:ue,controlHeight:De,menuGutter:He},ze={borderRadius:K,colors:I,spacing:Fe},qe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,h.z)(),captureMenuScroll:!(0,h.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ve(),formatGroupLabel:Ut,getOptionLabel:Ke,getOptionValue:it,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:At,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,h.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(Zt){var Wn=Zt.count;return"".concat(Wn," result").concat(Wn!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function We(Ct,Zt,Wn,Zn){var xt=Bt(Ct,Zt,Wn),Xe=nn(Ct,Zt,Wn),gn=be(Ct,Zt),Qt=Qe(Ct,Zt);return{type:"option",data:Zt,isDisabled:xt,isSelected:Xe,label:gn,value:Qt,index:Zn}}function _t(Ct,Zt){return Ct.options.map(function(Wn,Zn){if("options"in Wn){var xt=Wn.options.map(function(gn,Qt){return We(Ct,gn,Zt,Qt)}).filter(function(gn){return Me(Ct,gn)});return xt.length>0?{type:"group",data:Wn,options:xt,index:Zn}:void 0}var Xe=We(Ct,Wn,Zt,Zn);return Me(Ct,Xe)?Xe:void 0}).filter(h.K)}function ct(Ct){return Ct.reduce(function(Zt,Wn){return Wn.type==="group"?Zt.push.apply(Zt,(0,p.A)(Wn.options.map(function(Zn){return Zn.data}))):Zt.push(Wn.data),Zt},[])}function Ge(Ct,Zt){return Ct.reduce(function(Wn,Zn){return Zn.type==="group"?Wn.push.apply(Wn,(0,p.A)(Zn.options.map(function(xt){return{data:xt.data,id:"".concat(Zt,"-").concat(Zn.index,"-").concat(xt.index)}}))):Wn.push({data:Zn.data,id:"".concat(Zt,"-").concat(Zn.index)}),Wn},[])}function st(Ct,Zt){return ct(_t(Ct,Zt))}function Me(Ct,Zt){var Wn=Ct.inputValue,Zn=Wn===void 0?"":Wn,xt=Zt.data,Xe=Zt.isSelected,gn=Zt.label,Qt=Zt.value;return(!at(Ct)||!Xe)&&bt(Ct,{label:gn,value:Qt,data:xt},Zn)}function ie(Ct,Zt){var Wn=Ct.focusedValue,Zn=Ct.selectValue,xt=Zn.indexOf(Wn);if(xt>-1){var Xe=Zt.indexOf(Wn);if(Xe>-1)return Wn;if(xt<Zt.length)return Zt[xt]}return null}function ge(Ct,Zt){var Wn=Ct.focusedOption;return Wn&&Zt.indexOf(Wn)>-1?Wn:Zt[0]}var z=function(Zt,Wn){var Zn,xt=(Zn=Zt.find(function(Xe){return Xe.data===Wn}))===null||Zn===void 0?void 0:Zn.id;return xt||null},be=function(Zt,Wn){return Zt.getOptionLabel(Wn)},Qe=function(Zt,Wn){return Zt.getOptionValue(Wn)};function Bt(Ct,Zt,Wn){return typeof Ct.isOptionDisabled=="function"?Ct.isOptionDisabled(Zt,Wn):!1}function nn(Ct,Zt,Wn){if(Wn.indexOf(Zt)>-1)return!0;if(typeof Ct.isOptionSelected=="function")return Ct.isOptionSelected(Zt,Wn);var Zn=Qe(Ct,Zt);return Wn.some(function(xt){return Qe(Ct,xt)===Zn})}function bt(Ct,Zt,Wn){return Ct.filterOption?Ct.filterOption(Zt,Wn):!0}var at=function(Zt){var Wn=Zt.hideSelectedOptions,Zn=Zt.isMulti;return Wn===void 0?Zn:Wn},$t=1,On=function(Ct){(0,u.A)(Wn,Ct);var Zt=(0,f.A)(Wn);function Wn(Zn){var xt;if((0,s.A)(this,Wn),xt=Zt.call(this,Zn),xt.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},xt.blockOptionHover=!1,xt.isComposing=!1,xt.commonProps=void 0,xt.initialTouchX=0,xt.initialTouchY=0,xt.openAfterFocus=!1,xt.scrollToFocusedOptionOnUpdate=!1,xt.userIsDragging=void 0,xt.isAppleDevice=wt(),xt.controlRef=null,xt.getControlRef=function(Dt){xt.controlRef=Dt},xt.focusedOptionRef=null,xt.getFocusedOptionRef=function(Dt){xt.focusedOptionRef=Dt},xt.menuListRef=null,xt.getMenuListRef=function(Dt){xt.menuListRef=Dt},xt.inputRef=null,xt.getInputRef=function(Dt){xt.inputRef=Dt},xt.focus=xt.focusInput,xt.blur=xt.blurInput,xt.onChange=function(Dt,hn){var cn=xt.props,an=cn.onChange,Or=cn.name;hn.name=Or,xt.ariaOnChange(Dt,hn),an(Dt,hn)},xt.setValue=function(Dt,hn,cn){var an=xt.props,Or=an.closeMenuOnSelect,Ln=an.isMulti,En=an.inputValue;xt.onInputChange("",{action:"set-value",prevInputValue:En}),Or&&(xt.setState({inputIsHiddenAfterUpdate:!Ln}),xt.onMenuClose()),xt.setState({clearFocusValueOnUpdate:!0}),xt.onChange(Dt,{action:hn,option:cn})},xt.selectOption=function(Dt){var hn=xt.props,cn=hn.blurInputOnSelect,an=hn.isMulti,Or=hn.name,Ln=xt.state.selectValue,En=an&&xt.isOptionSelected(Dt,Ln),Gn=xt.isOptionDisabled(Dt,Ln);if(En){var rr=xt.getOptionValue(Dt);xt.setValue((0,h.B)(Ln.filter(function(sr){return xt.getOptionValue(sr)!==rr})),"deselect-option",Dt)}else if(!Gn)an?xt.setValue((0,h.B)([].concat((0,p.A)(Ln),[Dt])),"select-option",Dt):xt.setValue((0,h.C)(Dt),"select-option");else{xt.ariaOnChange((0,h.C)(Dt),{action:"select-option",option:Dt,name:Or});return}cn&&xt.blurInput()},xt.removeValue=function(Dt){var hn=xt.props.isMulti,cn=xt.state.selectValue,an=xt.getOptionValue(Dt),Or=cn.filter(function(En){return xt.getOptionValue(En)!==an}),Ln=(0,h.D)(hn,Or,Or[0]||null);xt.onChange(Ln,{action:"remove-value",removedValue:Dt}),xt.focusInput()},xt.clearValue=function(){var Dt=xt.state.selectValue;xt.onChange((0,h.D)(xt.props.isMulti,[],null),{action:"clear",removedValues:Dt})},xt.popValue=function(){var Dt=xt.props.isMulti,hn=xt.state.selectValue,cn=hn[hn.length-1],an=hn.slice(0,hn.length-1),Or=(0,h.D)(Dt,an,an[0]||null);xt.onChange(Or,{action:"pop-value",removedValue:cn})},xt.getFocusedOptionId=function(Dt){return z(xt.state.focusableOptionsWithIds,Dt)},xt.getFocusableOptionsWithIds=function(){return Ge(_t(xt.props,xt.state.selectValue),xt.getElementId("option"))},xt.getValue=function(){return xt.state.selectValue},xt.cx=function(){for(var Dt=arguments.length,hn=new Array(Dt),cn=0;cn<Dt;cn++)hn[cn]=arguments[cn];return h.E.apply(void 0,[xt.props.classNamePrefix].concat(hn))},xt.getOptionLabel=function(Dt){return be(xt.props,Dt)},xt.getOptionValue=function(Dt){return Qe(xt.props,Dt)},xt.getStyles=function(Dt,hn){var cn=xt.props.unstyled,an=et[Dt](hn,cn);an.boxSizing="border-box";var Or=xt.props.styles[Dt];return Or?Or(an,hn):an},xt.getClassNames=function(Dt,hn){var cn,an;return(cn=(an=xt.props.classNames)[Dt])===null||cn===void 0?void 0:cn.call(an,hn)},xt.getElementId=function(Dt){return"".concat(xt.state.instancePrefix,"-").concat(Dt)},xt.getComponents=function(){return(0,h.F)(xt.props)},xt.buildCategorizedOptions=function(){return _t(xt.props,xt.state.selectValue)},xt.getCategorizedOptions=function(){return xt.props.menuIsOpen?xt.buildCategorizedOptions():[]},xt.buildFocusableOptions=function(){return ct(xt.buildCategorizedOptions())},xt.getFocusableOptions=function(){return xt.props.menuIsOpen?xt.buildFocusableOptions():[]},xt.ariaOnChange=function(Dt,hn){xt.setState({ariaSelection:(0,l.A)({value:Dt},hn)})},xt.onMenuMouseDown=function(Dt){Dt.button===0&&(Dt.stopPropagation(),Dt.preventDefault(),xt.focusInput())},xt.onMenuMouseMove=function(Dt){xt.blockOptionHover=!1},xt.onControlMouseDown=function(Dt){if(!Dt.defaultPrevented){var hn=xt.props.openMenuOnClick;xt.state.isFocused?xt.props.menuIsOpen?Dt.target.tagName!=="INPUT"&&Dt.target.tagName!=="TEXTAREA"&&xt.onMenuClose():hn&&xt.openMenu("first"):(hn&&(xt.openAfterFocus=!0),xt.focusInput()),Dt.target.tagName!=="INPUT"&&Dt.target.tagName!=="TEXTAREA"&&Dt.preventDefault()}},xt.onDropdownIndicatorMouseDown=function(Dt){if(!(Dt&&Dt.type==="mousedown"&&Dt.button!==0)&&!xt.props.isDisabled){var hn=xt.props,cn=hn.isMulti,an=hn.menuIsOpen;xt.focusInput(),an?(xt.setState({inputIsHiddenAfterUpdate:!cn}),xt.onMenuClose()):xt.openMenu("first"),Dt.preventDefault()}},xt.onClearIndicatorMouseDown=function(Dt){Dt&&Dt.type==="mousedown"&&Dt.button!==0||(xt.clearValue(),Dt.preventDefault(),xt.openAfterFocus=!1,Dt.type==="touchend"?xt.focusInput():setTimeout(function(){return xt.focusInput()}))},xt.onScroll=function(Dt){typeof xt.props.closeMenuOnScroll=="boolean"?Dt.target instanceof HTMLElement&&(0,h.G)(Dt.target)&&xt.props.onMenuClose():typeof xt.props.closeMenuOnScroll=="function"&&xt.props.closeMenuOnScroll(Dt)&&xt.props.onMenuClose()},xt.onCompositionStart=function(){xt.isComposing=!0},xt.onCompositionEnd=function(){xt.isComposing=!1},xt.onTouchStart=function(Dt){var hn=Dt.touches,cn=hn&&hn.item(0);cn&&(xt.initialTouchX=cn.clientX,xt.initialTouchY=cn.clientY,xt.userIsDragging=!1)},xt.onTouchMove=function(Dt){var hn=Dt.touches,cn=hn&&hn.item(0);if(cn){var an=Math.abs(cn.clientX-xt.initialTouchX),Or=Math.abs(cn.clientY-xt.initialTouchY),Ln=5;xt.userIsDragging=an>Ln||Or>Ln}},xt.onTouchEnd=function(Dt){xt.userIsDragging||(xt.controlRef&&!xt.controlRef.contains(Dt.target)&&xt.menuListRef&&!xt.menuListRef.contains(Dt.target)&&xt.blurInput(),xt.initialTouchX=0,xt.initialTouchY=0)},xt.onControlTouchEnd=function(Dt){xt.userIsDragging||xt.onControlMouseDown(Dt)},xt.onClearIndicatorTouchEnd=function(Dt){xt.userIsDragging||xt.onClearIndicatorMouseDown(Dt)},xt.onDropdownIndicatorTouchEnd=function(Dt){xt.userIsDragging||xt.onDropdownIndicatorMouseDown(Dt)},xt.handleInputChange=function(Dt){var hn=xt.props.inputValue,cn=Dt.currentTarget.value;xt.setState({inputIsHiddenAfterUpdate:!1}),xt.onInputChange(cn,{action:"input-change",prevInputValue:hn}),xt.props.menuIsOpen||xt.onMenuOpen()},xt.onInputFocus=function(Dt){xt.props.onFocus&&xt.props.onFocus(Dt),xt.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(xt.openAfterFocus||xt.props.openMenuOnFocus)&&xt.openMenu("first"),xt.openAfterFocus=!1},xt.onInputBlur=function(Dt){var hn=xt.props.inputValue;if(xt.menuListRef&&xt.menuListRef.contains(document.activeElement)){xt.inputRef.focus();return}xt.props.onBlur&&xt.props.onBlur(Dt),xt.onInputChange("",{action:"input-blur",prevInputValue:hn}),xt.onMenuClose(),xt.setState({focusedValue:null,isFocused:!1})},xt.onOptionHover=function(Dt){if(!(xt.blockOptionHover||xt.state.focusedOption===Dt)){var hn=xt.getFocusableOptions(),cn=hn.indexOf(Dt);xt.setState({focusedOption:Dt,focusedOptionId:cn>-1?xt.getFocusedOptionId(Dt):null})}},xt.shouldHideSelectedOptions=function(){return at(xt.props)},xt.onValueInputFocus=function(Dt){Dt.preventDefault(),Dt.stopPropagation(),xt.focus()},xt.onKeyDown=function(Dt){var hn=xt.props,cn=hn.isMulti,an=hn.backspaceRemovesValue,Or=hn.escapeClearsValue,Ln=hn.inputValue,En=hn.isClearable,Gn=hn.isDisabled,rr=hn.menuIsOpen,sr=hn.onKeyDown,pi=hn.tabSelectsValue,yi=hn.openMenuOnFocus,jr=xt.state,ui=jr.focusedOption,bi=jr.focusedValue,ri=jr.selectValue;if(!Gn&&!(typeof sr=="function"&&(sr(Dt),Dt.defaultPrevented))){switch(xt.blockOptionHover=!0,Dt.key){case"ArrowLeft":if(!cn||Ln)return;xt.focusValue("previous");break;case"ArrowRight":if(!cn||Ln)return;xt.focusValue("next");break;case"Delete":case"Backspace":if(Ln)return;if(bi)xt.removeValue(bi);else{if(!an)return;cn?xt.popValue():En&&xt.clearValue()}break;case"Tab":if(xt.isComposing||Dt.shiftKey||!rr||!pi||!ui||yi&&xt.isOptionSelected(ui,ri))return;xt.selectOption(ui);break;case"Enter":if(Dt.keyCode===229)break;if(rr){if(!ui||xt.isComposing)return;xt.selectOption(ui);break}return;case"Escape":rr?(xt.setState({inputIsHiddenAfterUpdate:!1}),xt.onInputChange("",{action:"menu-close",prevInputValue:Ln}),xt.onMenuClose()):En&&Or&&xt.clearValue();break;case" ":if(Ln)return;if(!rr){xt.openMenu("first");break}if(!ui)return;xt.selectOption(ui);break;case"ArrowUp":rr?xt.focusOption("up"):xt.openMenu("last");break;case"ArrowDown":rr?xt.focusOption("down"):xt.openMenu("first");break;case"PageUp":if(!rr)return;xt.focusOption("pageup");break;case"PageDown":if(!rr)return;xt.focusOption("pagedown");break;case"Home":if(!rr)return;xt.focusOption("first");break;case"End":if(!rr)return;xt.focusOption("last");break;default:return}Dt.preventDefault()}},xt.state.instancePrefix="react-select-"+(xt.props.instanceId||++$t),xt.state.selectValue=(0,h.H)(Zn.value),Zn.menuIsOpen&&xt.state.selectValue.length){var Xe=xt.getFocusableOptionsWithIds(),gn=xt.buildFocusableOptions(),Qt=gn.indexOf(xt.state.selectValue[0]);xt.state.focusableOptionsWithIds=Xe,xt.state.focusedOption=gn[Qt],xt.state.focusedOptionId=z(Xe,gn[Qt])}return xt}return(0,m.A)(Wn,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,h.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(xt){var Xe=this.props,gn=Xe.isDisabled,Qt=Xe.menuIsOpen,Dt=this.state.isFocused;(Dt&&!gn&&xt.isDisabled||Dt&&Qt&&!xt.menuIsOpen)&&this.focusInput(),Dt&&gn&&!xt.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!Dt&&!gn&&xt.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,h.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(xt,Xe){this.props.onInputChange(xt,Xe)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(xt){var Xe=this,gn=this.state,Qt=gn.selectValue,Dt=gn.isFocused,hn=this.buildFocusableOptions(),cn=xt==="first"?0:hn.length-1;if(!this.props.isMulti){var an=hn.indexOf(Qt[0]);an>-1&&(cn=an)}this.scrollToFocusedOptionOnUpdate=!(Dt&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:hn[cn],focusedOptionId:this.getFocusedOptionId(hn[cn])},function(){return Xe.onMenuOpen()})}},{key:"focusValue",value:function(xt){var Xe=this.state,gn=Xe.selectValue,Qt=Xe.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var Dt=gn.indexOf(Qt);Qt||(Dt=-1);var hn=gn.length-1,cn=-1;if(gn.length){switch(xt){case"previous":Dt===0?cn=0:Dt===-1?cn=hn:cn=Dt-1;break;case"next":Dt>-1&&Dt<hn&&(cn=Dt+1);break}this.setState({inputIsHidden:cn!==-1,focusedValue:gn[cn]})}}}},{key:"focusOption",value:function(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",Xe=this.props.pageSize,gn=this.state.focusedOption,Qt=this.getFocusableOptions();if(Qt.length){var Dt=0,hn=Qt.indexOf(gn);gn||(hn=-1),xt==="up"?Dt=hn>0?hn-1:Qt.length-1:xt==="down"?Dt=(hn+1)%Qt.length:xt==="pageup"?(Dt=hn-Xe,Dt<0&&(Dt=0)):xt==="pagedown"?(Dt=hn+Xe,Dt>Qt.length-1&&(Dt=Qt.length-1)):xt==="last"&&(Dt=Qt.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:Qt[Dt],focusedValue:null,focusedOptionId:this.getFocusedOptionId(Qt[Dt])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(ze):(0,l.A)((0,l.A)({},ze),this.props.theme):ze}},{key:"getCommonProps",value:function(){var xt=this.clearValue,Xe=this.cx,gn=this.getStyles,Qt=this.getClassNames,Dt=this.getValue,hn=this.selectOption,cn=this.setValue,an=this.props,Or=an.isMulti,Ln=an.isRtl,En=an.options,Gn=this.hasValue();return{clearValue:xt,cx:Xe,getStyles:gn,getClassNames:Qt,getValue:Dt,hasValue:Gn,isMulti:Or,isRtl:Ln,options:En,selectOption:hn,selectProps:an,setValue:cn,theme:this.getTheme()}}},{key:"hasValue",value:function(){var xt=this.state.selectValue;return xt.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var xt=this.props,Xe=xt.isClearable,gn=xt.isMulti;return Xe===void 0?gn:Xe}},{key:"isOptionDisabled",value:function(xt,Xe){return Bt(this.props,xt,Xe)}},{key:"isOptionSelected",value:function(xt,Xe){return nn(this.props,xt,Xe)}},{key:"filterOption",value:function(xt,Xe){return bt(this.props,xt,Xe)}},{key:"formatOptionLabel",value:function(xt,Xe){if(typeof this.props.formatOptionLabel=="function"){var gn=this.props.inputValue,Qt=this.state.selectValue;return this.props.formatOptionLabel(xt,{context:Xe,inputValue:gn,selectValue:Qt})}else return this.getOptionLabel(xt)}},{key:"formatGroupLabel",value:function(xt){return this.props.formatGroupLabel(xt)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var xt=this.props,Xe=xt.isDisabled,gn=xt.isSearchable,Qt=xt.inputId,Dt=xt.inputValue,hn=xt.tabIndex,cn=xt.form,an=xt.menuIsOpen,Or=xt.required,Ln=this.getComponents(),En=Ln.Input,Gn=this.state,rr=Gn.inputIsHidden,sr=Gn.ariaSelection,pi=this.commonProps,yi=Qt||this.getElementId("input"),jr=(0,l.A)((0,l.A)((0,l.A)({"aria-autocomplete":"list","aria-expanded":an,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":Or,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},an&&{"aria-controls":this.getElementId("listbox")}),!gn&&{"aria-readonly":!0}),this.hasValue()?sr?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return gn?v.createElement(En,(0,i.A)({},pi,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:yi,innerRef:this.getInputRef,isDisabled:Xe,isHidden:rr,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:hn,form:cn,type:"text",value:Dt},jr)):v.createElement(oe,(0,i.A)({id:yi,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:h.J,onFocus:this.onInputFocus,disabled:Xe,tabIndex:hn,inputMode:"none",form:cn,value:""},jr))}},{key:"renderPlaceholderOrValue",value:function(){var xt=this,Xe=this.getComponents(),gn=Xe.MultiValue,Qt=Xe.MultiValueContainer,Dt=Xe.MultiValueLabel,hn=Xe.MultiValueRemove,cn=Xe.SingleValue,an=Xe.Placeholder,Or=this.commonProps,Ln=this.props,En=Ln.controlShouldRenderValue,Gn=Ln.isDisabled,rr=Ln.isMulti,sr=Ln.inputValue,pi=Ln.placeholder,yi=this.state,jr=yi.selectValue,ui=yi.focusedValue,bi=yi.isFocused;if(!this.hasValue()||!En)return sr?null:v.createElement(an,(0,i.A)({},Or,{key:"placeholder",isDisabled:Gn,isFocused:bi,innerProps:{id:this.getElementId("placeholder")}}),pi);if(rr)return jr.map(function(hi,Si){var Kr=hi===ui,xi="".concat(xt.getOptionLabel(hi),"-").concat(xt.getOptionValue(hi));return v.createElement(gn,(0,i.A)({},Or,{components:{Container:Qt,Label:Dt,Remove:hn},isFocused:Kr,isDisabled:Gn,key:xi,index:Si,removeProps:{onClick:function(){return xt.removeValue(hi)},onTouchEnd:function(){return xt.removeValue(hi)},onMouseDown:function(Pi){Pi.preventDefault()}},data:hi}),xt.formatOptionLabel(hi,"value"))});if(sr)return null;var ri=jr[0];return v.createElement(cn,(0,i.A)({},Or,{data:ri,isDisabled:Gn}),this.formatOptionLabel(ri,"value"))}},{key:"renderClearIndicator",value:function(){var xt=this.getComponents(),Xe=xt.ClearIndicator,gn=this.commonProps,Qt=this.props,Dt=Qt.isDisabled,hn=Qt.isLoading,cn=this.state.isFocused;if(!this.isClearable()||!Xe||Dt||!this.hasValue()||hn)return null;var an={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(Xe,(0,i.A)({},gn,{innerProps:an,isFocused:cn}))}},{key:"renderLoadingIndicator",value:function(){var xt=this.getComponents(),Xe=xt.LoadingIndicator,gn=this.commonProps,Qt=this.props,Dt=Qt.isDisabled,hn=Qt.isLoading,cn=this.state.isFocused;if(!Xe||!hn)return null;var an={"aria-hidden":"true"};return v.createElement(Xe,(0,i.A)({},gn,{innerProps:an,isDisabled:Dt,isFocused:cn}))}},{key:"renderIndicatorSeparator",value:function(){var xt=this.getComponents(),Xe=xt.DropdownIndicator,gn=xt.IndicatorSeparator;if(!Xe||!gn)return null;var Qt=this.commonProps,Dt=this.props.isDisabled,hn=this.state.isFocused;return v.createElement(gn,(0,i.A)({},Qt,{isDisabled:Dt,isFocused:hn}))}},{key:"renderDropdownIndicator",value:function(){var xt=this.getComponents(),Xe=xt.DropdownIndicator;if(!Xe)return null;var gn=this.commonProps,Qt=this.props.isDisabled,Dt=this.state.isFocused,hn={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(Xe,(0,i.A)({},gn,{innerProps:hn,isDisabled:Qt,isFocused:Dt}))}},{key:"renderMenu",value:function(){var xt=this,Xe=this.getComponents(),gn=Xe.Group,Qt=Xe.GroupHeading,Dt=Xe.Menu,hn=Xe.MenuList,cn=Xe.MenuPortal,an=Xe.LoadingMessage,Or=Xe.NoOptionsMessage,Ln=Xe.Option,En=this.commonProps,Gn=this.state.focusedOption,rr=this.props,sr=rr.captureMenuScroll,pi=rr.inputValue,yi=rr.isLoading,jr=rr.loadingMessage,ui=rr.minMenuHeight,bi=rr.maxMenuHeight,ri=rr.menuIsOpen,hi=rr.menuPlacement,Si=rr.menuPosition,Kr=rr.menuPortalTarget,xi=rr.menuShouldBlockScroll,Ai=rr.menuShouldScrollIntoView,Pi=rr.noOptionsMessage,io=rr.onMenuScrollToTop,lo=rr.onMenuScrollToBottom;if(!ri)return null;var Gr=function(Cr,_i){var Sn=Cr.type,ir=Cr.data,mt=Cr.isDisabled,fn=Cr.isSelected,gt=Cr.label,tn=Cr.value,Vn=Gn===ir,Ur=mt?void 0:function(){return xt.onOptionHover(ir)},$r=mt?void 0:function(){return xt.selectOption(ir)},Pr="".concat(xt.getElementId("option"),"-").concat(_i),zr={id:Pr,onClick:$r,onMouseMove:Ur,onMouseOver:Ur,tabIndex:-1,role:"option","aria-selected":xt.isAppleDevice?void 0:fn};return v.createElement(Ln,(0,i.A)({},En,{innerProps:zr,data:ir,isDisabled:mt,isSelected:fn,key:Pr,label:gt,type:Sn,value:tn,isFocused:Vn,innerRef:Vn?xt.getFocusedOptionRef:void 0}),xt.formatOptionLabel(Cr.data,"menu"))},un;if(this.hasOptions())un=this.getCategorizedOptions().map(function(An){if(An.type==="group"){var Cr=An.data,_i=An.options,Sn=An.index,ir="".concat(xt.getElementId("group"),"-").concat(Sn),mt="".concat(ir,"-heading");return v.createElement(gn,(0,i.A)({},En,{key:ir,data:Cr,options:_i,Heading:Qt,headingProps:{id:mt,data:An.data},label:xt.formatGroupLabel(An.data)}),An.options.map(function(fn){return Gr(fn,"".concat(Sn,"-").concat(fn.index))}))}else if(An.type==="option")return Gr(An,"".concat(An.index))});else if(yi){var qn=jr({inputValue:pi});if(qn===null)return null;un=v.createElement(an,En,qn)}else{var kn=Pi({inputValue:pi});if(kn===null)return null;un=v.createElement(Or,En,kn)}var St={minMenuHeight:ui,maxMenuHeight:bi,menuPlacement:hi,menuPosition:Si,menuShouldScrollIntoView:Ai},ln=v.createElement(h.M,(0,i.A)({},En,St),function(An){var Cr=An.ref,_i=An.placerProps,Sn=_i.placement,ir=_i.maxHeight;return v.createElement(Dt,(0,i.A)({},En,St,{innerRef:Cr,innerProps:{onMouseDown:xt.onMenuMouseDown,onMouseMove:xt.onMenuMouseMove},isLoading:yi,placement:Sn}),v.createElement(pt,{captureEnabled:sr,onTopArrive:io,onBottomArrive:lo,lockEnabled:xi},function(mt){return v.createElement(hn,(0,i.A)({},En,{innerRef:function(gt){xt.getMenuListRef(gt),mt(gt)},innerProps:{role:"listbox","aria-multiselectable":En.isMulti,id:xt.getElementId("listbox")},isLoading:yi,maxHeight:ir,focusedOption:Gn}),un)}))});return Kr||Si==="fixed"?v.createElement(cn,(0,i.A)({},En,{appendTo:Kr,controlElement:this.controlRef,menuPlacement:hi,menuPosition:Si}),ln):ln}},{key:"renderFormField",value:function(){var xt=this,Xe=this.props,gn=Xe.delimiter,Qt=Xe.isDisabled,Dt=Xe.isMulti,hn=Xe.name,cn=Xe.required,an=this.state.selectValue;if(cn&&!this.hasValue()&&!Qt)return v.createElement(F,{name:hn,onFocus:this.onValueInputFocus});if(!(!hn||Qt))if(Dt)if(gn){var Or=an.map(function(Gn){return xt.getOptionValue(Gn)}).join(gn);return v.createElement("input",{name:hn,type:"hidden",value:Or})}else{var Ln=an.length>0?an.map(function(Gn,rr){return v.createElement("input",{key:"i-".concat(rr),name:hn,type:"hidden",value:xt.getOptionValue(Gn)})}):v.createElement("input",{name:hn,type:"hidden",value:""});return v.createElement("div",null,Ln)}else{var En=an[0]?this.getOptionValue(an[0]):"";return v.createElement("input",{name:hn,type:"hidden",value:En})}}},{key:"renderLiveRegion",value:function(){var xt=this.commonProps,Xe=this.state,gn=Xe.ariaSelection,Qt=Xe.focusedOption,Dt=Xe.focusedValue,hn=Xe.isFocused,cn=Xe.selectValue,an=this.getFocusableOptions();return v.createElement(P,(0,i.A)({},xt,{id:this.getElementId("live-region"),ariaSelection:gn,focusedOption:Qt,focusedValue:Dt,isFocused:hn,selectValue:cn,focusableOptions:an,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var xt=this.getComponents(),Xe=xt.Control,gn=xt.IndicatorsContainer,Qt=xt.SelectContainer,Dt=xt.ValueContainer,hn=this.props,cn=hn.className,an=hn.id,Or=hn.isDisabled,Ln=hn.menuIsOpen,En=this.state.isFocused,Gn=this.commonProps=this.getCommonProps();return v.createElement(Qt,(0,i.A)({},Gn,{className:cn,innerProps:{id:an,onKeyDown:this.onKeyDown},isDisabled:Or,isFocused:En}),this.renderLiveRegion(),v.createElement(Xe,(0,i.A)({},Gn,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:Or,isFocused:En,menuIsOpen:Ln}),v.createElement(Dt,(0,i.A)({},Gn,{isDisabled:Or}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(gn,(0,i.A)({},Gn,{isDisabled:Or}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(xt,Xe){var gn=Xe.prevProps,Qt=Xe.clearFocusValueOnUpdate,Dt=Xe.inputIsHiddenAfterUpdate,hn=Xe.ariaSelection,cn=Xe.isFocused,an=Xe.prevWasFocused,Or=Xe.instancePrefix,Ln=xt.options,En=xt.value,Gn=xt.menuIsOpen,rr=xt.inputValue,sr=xt.isMulti,pi=(0,h.H)(En),yi={};if(gn&&(En!==gn.value||Ln!==gn.options||Gn!==gn.menuIsOpen||rr!==gn.inputValue)){var jr=Gn?st(xt,pi):[],ui=Gn?Ge(_t(xt,pi),"".concat(Or,"-option")):[],bi=Qt?ie(Xe,pi):null,ri=ge(Xe,jr),hi=z(ui,ri);yi={selectValue:pi,focusedOption:ri,focusedOptionId:hi,focusableOptionsWithIds:ui,focusedValue:bi,clearFocusValueOnUpdate:!1}}var Si=Dt!=null&&xt!==gn?{inputIsHidden:Dt,inputIsHiddenAfterUpdate:void 0}:{},Kr=hn,xi=cn&&an;return cn&&!xi&&(Kr={value:(0,h.D)(sr,pi,pi[0]||null),options:pi,action:"initial-input-focus"},xi=!an),hn?.action==="initial-input-focus"&&(Kr=null),(0,l.A)((0,l.A)((0,l.A)({},yi),Si),{},{prevProps:xt,ariaSelection:Kr,prevWasFocused:xi})}}]),Wn}(v.Component);On.defaultProps=qe},28581:(J,g,t)=>{"use strict";t.d(g,{A:()=>ce,B:()=>pe,C:()=>ne,D:()=>Re,E:()=>R,F:()=>lo,G:()=>A,H:()=>M,I:()=>me,J:()=>S,K:()=>Q,L:()=>T,M:()=>Rt,a:()=>Me,b:()=>it,c:()=>io,d:()=>bt,e:()=>Ge,f:()=>Wn,g:()=>Ct,h:()=>ge,i:()=>I,j:()=>gn,k:()=>Ye,l:()=>Qe,m:()=>Tt,n:()=>F,o:()=>Ut,p:()=>Or,q:()=>Ln,r:()=>ye,s:()=>V,t:()=>En,u:()=>ke,v:()=>ui,w:()=>hi,x:()=>xi,y:()=>et,z:()=>ve});var i=t(89379),l=t(58168),s=t(94659),m=t(5544),u=t(80045),f=t(82284);function p(Gr,un){return un||(un=Gr.slice(0)),Object.freeze(Object.defineProperties(Gr,{raw:{value:Object.freeze(un)}}))}var v=t(64467),h=t(96540),d=t(40961),b=t(18491),y=t(27003),w=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],S=function(){};function O(Gr,un){return un?un[0]==="-"?Gr+un:Gr+"__"+un:Gr}function R(Gr,un){for(var qn=arguments.length,kn=new Array(qn>2?qn-2:0),St=2;St<qn;St++)kn[St-2]=arguments[St];var ln=[].concat(kn);if(un&&Gr)for(var An in un)un.hasOwnProperty(An)&&un[An]&&ln.push("".concat(O(Gr,An)));return ln.filter(function(Cr){return Cr}).map(function(Cr){return String(Cr).trim()}).join(" ")}var M=function(un){return Te(un)?un.filter(Boolean):(0,f.A)(un)==="object"&&un!==null?[un]:[]},D=function(un){un.className,un.clearValue,un.cx,un.getStyles,un.getClassNames,un.getValue,un.hasValue,un.isMulti,un.isRtl,un.options,un.selectOption,un.selectProps,un.setValue,un.theme;var qn=(0,u.A)(un,w);return(0,i.A)({},qn)},P=function(un,qn,kn){var St=un.cx,ln=un.getStyles,An=un.getClassNames,Cr=un.className;return{css:ln(qn,un),className:St(kn??{},An(qn,un),Cr)}};function T(Gr,un,qn){if(qn){var kn=qn(Gr,un);if(typeof kn=="string")return kn}return Gr}function A(Gr){return[document.documentElement,document.body,window].indexOf(Gr)>-1}function j(Gr){return A(Gr)?window.innerHeight:Gr.clientHeight}function ae(Gr){return A(Gr)?window.pageYOffset:Gr.scrollTop}function _(Gr,un){if(A(Gr)){window.scrollTo(0,un);return}Gr.scrollTop=un}function N(Gr){var un=getComputedStyle(Gr),qn=un.position==="absolute",kn=/(auto|scroll)/;if(un.position==="fixed")return document.documentElement;for(var St=Gr;St=St.parentElement;)if(un=getComputedStyle(St),!(qn&&un.position==="static")&&kn.test(un.overflow+un.overflowY+un.overflowX))return St;return document.documentElement}function W(Gr,un,qn,kn){return qn*((Gr=Gr/kn-1)*Gr*Gr+1)+un}function he(Gr,un){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,St=ae(Gr),ln=un-St,An=10,Cr=0;function _i(){Cr+=An;var Sn=W(Cr,St,ln,qn);_(Gr,Sn),Cr<qn?window.requestAnimationFrame(_i):kn(Gr)}_i()}function me(Gr,un){var qn=Gr.getBoundingClientRect(),kn=un.getBoundingClientRect(),St=un.offsetHeight/3;kn.bottom+St>qn.bottom?_(Gr,Math.min(un.offsetTop+un.clientHeight-Gr.offsetHeight+St,Gr.scrollHeight)):kn.top-St<qn.top&&_(Gr,Math.max(un.offsetTop-St,0))}function fe(Gr){var un=Gr.getBoundingClientRect();return{bottom:un.bottom,height:un.height,left:un.left,right:un.right,top:un.top,width:un.width}}function ve(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function ce(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var oe=!1,re={get passive(){return oe=!0}},H=typeof window<"u"?window:{};H.addEventListener&&H.removeEventListener&&(H.addEventListener("p",S,re),H.removeEventListener("p",S,!1));var V=oe;function Q(Gr){return Gr!=null}function Te(Gr){return Array.isArray(Gr)}function Re(Gr,un,qn){return Gr?un:qn}function ne(Gr){return Gr}function pe(Gr){return Gr}var ye=function(un){for(var qn=arguments.length,kn=new Array(qn>1?qn-1:0),St=1;St<qn;St++)kn[St-1]=arguments[St];var ln=Object.entries(un).filter(function(An){var Cr=(0,m.A)(An,1),_i=Cr[0];return!kn.includes(_i)});return ln.reduce(function(An,Cr){var _i=(0,m.A)(Cr,2),Sn=_i[0],ir=_i[1];return An[Sn]=ir,An},{})},Se=["children","innerProps"],Ae=["children","innerProps"];function Ee(Gr){var un=Gr.maxHeight,qn=Gr.menuEl,kn=Gr.minHeight,St=Gr.placement,ln=Gr.shouldScroll,An=Gr.isFixedPosition,Cr=Gr.controlHeight,_i=N(qn),Sn={placement:"bottom",maxHeight:un};if(!qn||!qn.offsetParent)return Sn;var ir=_i.getBoundingClientRect(),mt=ir.height,fn=qn.getBoundingClientRect(),gt=fn.bottom,tn=fn.height,Vn=fn.top,Ur=qn.offsetParent.getBoundingClientRect(),$r=Ur.top,Pr=An?window.innerHeight:j(_i),zr=ae(_i),gi=parseInt(getComputedStyle(qn).marginBottom,10),$i=parseInt(getComputedStyle(qn).marginTop,10),eo=$r-$i,ki=Pr-Vn,so=eo+zr,Ho=mt-zr-Vn,ra=gt-Pr+zr+gi,So=zr+Vn-$i,gr=160;switch(St){case"auto":case"bottom":if(ki>=tn)return{placement:"bottom",maxHeight:un};if(Ho>=tn&&!An)return ln&&he(_i,ra,gr),{placement:"bottom",maxHeight:un};if(!An&&Ho>=kn||An&&ki>=kn){ln&&he(_i,ra,gr);var di=An?ki-gi:Ho-gi;return{placement:"bottom",maxHeight:di}}if(St==="auto"||An){var Vi=un,Ro=An?eo:so;return Ro>=kn&&(Vi=Math.min(Ro-gi-Cr,un)),{placement:"top",maxHeight:Vi}}if(St==="bottom")return ln&&_(_i,ra),{placement:"bottom",maxHeight:un};break;case"top":if(eo>=tn)return{placement:"top",maxHeight:un};if(so>=tn&&!An)return ln&&he(_i,So,gr),{placement:"top",maxHeight:un};if(!An&&so>=kn||An&&eo>=kn){var na=un;return(!An&&so>=kn||An&&eo>=kn)&&(na=An?eo-$i:so-$i),ln&&he(_i,So,gr),{placement:"top",maxHeight:na}}return{placement:"bottom",maxHeight:un};default:throw new Error('Invalid placement provided "'.concat(St,'".'))}return Sn}function xe(Gr){var un={bottom:"top",top:"bottom"};return Gr?un[Gr]:"bottom"}var nt=function(un){return un==="auto"?"bottom":un},Tt=function(un,qn){var kn,St=un.placement,ln=un.theme,An=ln.borderRadius,Cr=ln.spacing,_i=ln.colors;return(0,i.A)((kn={label:"menu"},(0,v.A)(kn,xe(St),"100%"),(0,v.A)(kn,"position","absolute"),(0,v.A)(kn,"width","100%"),(0,v.A)(kn,"zIndex",1),kn),qn?{}:{backgroundColor:_i.neutral0,borderRadius:An,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:Cr.menuGutter,marginTop:Cr.menuGutter})},pt=(0,h.createContext)(null),Rt=function(un){var qn=un.children,kn=un.minMenuHeight,St=un.maxMenuHeight,ln=un.menuPlacement,An=un.menuPosition,Cr=un.menuShouldScrollIntoView,_i=un.theme,Sn=(0,h.useContext)(pt)||{},ir=Sn.setPortalPlacement,mt=(0,h.useRef)(null),fn=(0,h.useState)(St),gt=(0,m.A)(fn,2),tn=gt[0],Vn=gt[1],Ur=(0,h.useState)(null),$r=(0,m.A)(Ur,2),Pr=$r[0],zr=$r[1],gi=_i.spacing.controlHeight;return(0,y.A)(function(){var $i=mt.current;if($i){var eo=An==="fixed",ki=Cr&&!eo,so=Ee({maxHeight:St,menuEl:$i,minHeight:kn,placement:ln,shouldScroll:ki,isFixedPosition:eo,controlHeight:gi});Vn(so.maxHeight),zr(so.placement),ir?.(so.placement)}},[St,ln,An,Cr,kn,ir,gi]),qn({ref:mt,placerProps:(0,i.A)((0,i.A)({},un),{},{placement:Pr||nt(ln),maxHeight:tn})})},tt=function(un){var qn=un.children,kn=un.innerRef,St=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"menu",{menu:!0}),{ref:kn},St),qn)},U=tt,F=function(un,qn){var kn=un.maxHeight,St=un.theme.spacing.baseUnit;return(0,i.A)({maxHeight:kn,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},qn?{}:{paddingBottom:St,paddingTop:St})},Y=function(un){var qn=un.children,kn=un.innerProps,St=un.innerRef,ln=un.isMulti;return(0,s.jsx)("div",(0,l.A)({},P(un,"menuList",{"menu-list":!0,"menu-list--is-multi":ln}),{ref:St},kn),qn)},le=function(un,qn){var kn=un.theme,St=kn.spacing.baseUnit,ln=kn.colors;return(0,i.A)({textAlign:"center"},qn?{}:{color:ln.neutral40,padding:"".concat(St*2,"px ").concat(St*3,"px")})},ke=le,Ye=le,ft=function(un){var qn=un.children,kn=qn===void 0?"No options":qn,St=un.innerProps,ln=(0,u.A)(un,Se);return(0,s.jsx)("div",(0,l.A)({},P((0,i.A)((0,i.A)({},ln),{},{children:kn,innerProps:St}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),St),kn)},wt=function(un){var qn=un.children,kn=qn===void 0?"Loading...":qn,St=un.innerProps,ln=(0,u.A)(un,Ae);return(0,s.jsx)("div",(0,l.A)({},P((0,i.A)((0,i.A)({},ln),{},{children:kn,innerProps:St}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),St),kn)},Ut=function(un){var qn=un.rect,kn=un.offset,St=un.position;return{left:qn.left,position:St,top:kn,width:qn.width,zIndex:1}},Ke=function(un){var qn=un.appendTo,kn=un.children,St=un.controlElement,ln=un.innerProps,An=un.menuPlacement,Cr=un.menuPosition,_i=(0,h.useRef)(null),Sn=(0,h.useRef)(null),ir=(0,h.useState)(nt(An)),mt=(0,m.A)(ir,2),fn=mt[0],gt=mt[1],tn=(0,h.useMemo)(function(){return{setPortalPlacement:gt}},[]),Vn=(0,h.useState)(null),Ur=(0,m.A)(Vn,2),$r=Ur[0],Pr=Ur[1],zr=(0,h.useCallback)(function(){if(St){var ki=fe(St),so=Cr==="fixed"?0:window.pageYOffset,Ho=ki[fn]+so;(Ho!==$r?.offset||ki.left!==$r?.rect.left||ki.width!==$r?.rect.width)&&Pr({offset:Ho,rect:ki})}},[St,Cr,fn,$r?.offset,$r?.rect.left,$r?.rect.width]);(0,y.A)(function(){zr()},[zr]);var gi=(0,h.useCallback)(function(){typeof Sn.current=="function"&&(Sn.current(),Sn.current=null),St&&_i.current&&(Sn.current=(0,b.ll)(St,_i.current,zr,{elementResize:"ResizeObserver"in window}))},[St,zr]);(0,y.A)(function(){gi()},[gi]);var $i=(0,h.useCallback)(function(ki){_i.current=ki,gi()},[gi]);if(!qn&&Cr!=="fixed"||!$r)return null;var eo=(0,s.jsx)("div",(0,l.A)({ref:$i},P((0,i.A)((0,i.A)({},un),{},{offset:$r.offset,position:Cr,rect:$r.rect}),"menuPortal",{"menu-portal":!0}),ln),kn);return(0,s.jsx)(pt.Provider,{value:tn},qn?(0,d.createPortal)(eo,qn):eo)},it=function(un){var qn=un.isDisabled,kn=un.isRtl;return{label:"container",direction:kn?"rtl":void 0,pointerEvents:qn?"none":void 0,position:"relative"}},At=function(un){var qn=un.children,kn=un.innerProps,St=un.isDisabled,ln=un.isRtl;return(0,s.jsx)("div",(0,l.A)({},P(un,"container",{"--is-disabled":St,"--is-rtl":ln}),kn),qn)},et=function(un,qn){var kn=un.theme.spacing,St=un.isMulti,ln=un.hasValue,An=un.selectProps.controlShouldRenderValue;return(0,i.A)({alignItems:"center",display:St&&ln&&An?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},qn?{}:{padding:"".concat(kn.baseUnit/2,"px ").concat(kn.baseUnit*2,"px")})},ee=function(un){var qn=un.children,kn=un.innerProps,St=un.isMulti,ln=un.hasValue;return(0,s.jsx)("div",(0,l.A)({},P(un,"valueContainer",{"value-container":!0,"value-container--is-multi":St,"value-container--has-value":ln}),kn),qn)},I=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},K=function(un){var qn=un.children,kn=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"indicatorsContainer",{indicators:!0}),kn),qn)},ue,De=["size"],He=["innerProps","isRtl","size"];function Fe(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ze={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qe=function(un){var qn=un.size,kn=(0,u.A)(un,De);return(0,s.jsx)("svg",(0,l.A)({height:qn,width:qn,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ze},kn))},We=function(un){return(0,s.jsx)(qe,(0,l.A)({size:20},un),(0,s.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},_t=function(un){return(0,s.jsx)(qe,(0,l.A)({size:20},un),(0,s.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ct=function(un,qn){var kn=un.isFocused,St=un.theme,ln=St.spacing.baseUnit,An=St.colors;return(0,i.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},qn?{}:{color:kn?An.neutral60:An.neutral20,padding:ln*2,":hover":{color:kn?An.neutral80:An.neutral40}})},Ge=ct,st=function(un){var qn=un.children,kn=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),kn),qn||(0,s.jsx)(_t,null))},Me=ct,ie=function(un){var qn=un.children,kn=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"clearIndicator",{indicator:!0,"clear-indicator":!0}),kn),qn||(0,s.jsx)(We,null))},ge=function(un,qn){var kn=un.isDisabled,St=un.theme,ln=St.spacing.baseUnit,An=St.colors;return(0,i.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},qn?{}:{backgroundColor:kn?An.neutral10:An.neutral20,marginBottom:ln*2,marginTop:ln*2})},z=function(un){var qn=un.innerProps;return(0,s.jsx)("span",(0,l.A)({},qn,P(un,"indicatorSeparator",{"indicator-separator":!0})))},be=(0,s.keyframes)(ue||(ue=p([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),Qe=function(un,qn){var kn=un.isFocused,St=un.size,ln=un.theme,An=ln.colors,Cr=ln.spacing.baseUnit;return(0,i.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:St,lineHeight:1,marginRight:St,textAlign:"center",verticalAlign:"middle"},qn?{}:{color:kn?An.neutral60:An.neutral20,padding:Cr*2})},Bt=function(un){var qn=un.delay,kn=un.offset;return(0,s.jsx)("span",{css:(0,s.css)({animation:"".concat(be," 1s ease-in-out ").concat(qn,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:kn?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},nn=function(un){var qn=un.innerProps,kn=un.isRtl,St=un.size,ln=St===void 0?4:St,An=(0,u.A)(un,He);return(0,s.jsx)("div",(0,l.A)({},P((0,i.A)((0,i.A)({},An),{},{innerProps:qn,isRtl:kn,size:ln}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),qn),(0,s.jsx)(Bt,{delay:0,offset:kn}),(0,s.jsx)(Bt,{delay:160,offset:!0}),(0,s.jsx)(Bt,{delay:320,offset:!kn}))},bt=function(un,qn){var kn=un.isDisabled,St=un.isFocused,ln=un.theme,An=ln.colors,Cr=ln.borderRadius,_i=ln.spacing;return(0,i.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:_i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},qn?{}:{backgroundColor:kn?An.neutral5:An.neutral0,borderColor:kn?An.neutral10:St?An.primary:An.neutral20,borderRadius:Cr,borderStyle:"solid",borderWidth:1,boxShadow:St?"0 0 0 1px ".concat(An.primary):void 0,"&:hover":{borderColor:St?An.primary:An.neutral30}})},at=function(un){var qn=un.children,kn=un.isDisabled,St=un.isFocused,ln=un.innerRef,An=un.innerProps,Cr=un.menuIsOpen;return(0,s.jsx)("div",(0,l.A)({ref:ln},P(un,"control",{control:!0,"control--is-disabled":kn,"control--is-focused":St,"control--menu-is-open":Cr}),An,{"aria-disabled":kn||void 0}),qn)},$t=at,On=["data"],Ct=function(un,qn){var kn=un.theme.spacing;return qn?{}:{paddingBottom:kn.baseUnit*2,paddingTop:kn.baseUnit*2}},Zt=function(un){var qn=un.children,kn=un.cx,St=un.getStyles,ln=un.getClassNames,An=un.Heading,Cr=un.headingProps,_i=un.innerProps,Sn=un.label,ir=un.theme,mt=un.selectProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"group",{group:!0}),_i),(0,s.jsx)(An,(0,l.A)({},Cr,{selectProps:mt,theme:ir,getStyles:St,getClassNames:ln,cx:kn}),Sn),(0,s.jsx)("div",null,qn))},Wn=function(un,qn){var kn=un.theme,St=kn.colors,ln=kn.spacing;return(0,i.A)({label:"group",cursor:"default",display:"block"},qn?{}:{color:St.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:ln.baseUnit*3,paddingRight:ln.baseUnit*3,textTransform:"uppercase"})},Zn=function(un){var qn=D(un);qn.data;var kn=(0,u.A)(qn,On);return(0,s.jsx)("div",(0,l.A)({},P(un,"groupHeading",{"group-heading":!0}),kn))},xt=Zt,Xe=["innerRef","isDisabled","isHidden","inputClassName"],gn=function(un,qn){var kn=un.isDisabled,St=un.value,ln=un.theme,An=ln.spacing,Cr=ln.colors;return(0,i.A)((0,i.A)({visibility:kn?"hidden":"visible",transform:St?"translateZ(0)":""},Dt),qn?{}:{margin:An.baseUnit/2,paddingBottom:An.baseUnit/2,paddingTop:An.baseUnit/2,color:Cr.neutral80})},Qt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Dt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qt)},hn=function(un){return(0,i.A)({label:"input",color:"inherit",background:0,opacity:un?0:1,width:"100%"},Qt)},cn=function(un){var qn=un.cx,kn=un.value,St=D(un),ln=St.innerRef,An=St.isDisabled,Cr=St.isHidden,_i=St.inputClassName,Sn=(0,u.A)(St,Xe);return(0,s.jsx)("div",(0,l.A)({},P(un,"input",{"input-container":!0}),{"data-value":kn||""}),(0,s.jsx)("input",(0,l.A)({className:qn({input:!0},_i),ref:ln,style:hn(Cr),disabled:An},Sn)))},an=cn,Or=function(un,qn){var kn=un.theme,St=kn.spacing,ln=kn.borderRadius,An=kn.colors;return(0,i.A)({label:"multiValue",display:"flex",minWidth:0},qn?{}:{backgroundColor:An.neutral10,borderRadius:ln/2,margin:St.baseUnit/2})},Ln=function(un,qn){var kn=un.theme,St=kn.borderRadius,ln=kn.colors,An=un.cropWithEllipsis;return(0,i.A)({overflow:"hidden",textOverflow:An||An===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},qn?{}:{borderRadius:St/2,color:ln.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},En=function(un,qn){var kn=un.theme,St=kn.spacing,ln=kn.borderRadius,An=kn.colors,Cr=un.isFocused;return(0,i.A)({alignItems:"center",display:"flex"},qn?{}:{borderRadius:ln/2,backgroundColor:Cr?An.dangerLight:void 0,paddingLeft:St.baseUnit,paddingRight:St.baseUnit,":hover":{backgroundColor:An.dangerLight,color:An.danger}})},Gn=function(un){var qn=un.children,kn=un.innerProps;return(0,s.jsx)("div",kn,qn)},rr=Gn,sr=Gn;function pi(Gr){var un=Gr.children,qn=Gr.innerProps;return(0,s.jsx)("div",(0,l.A)({role:"button"},qn),un||(0,s.jsx)(We,{size:14}))}var yi=function(un){var qn=un.children,kn=un.components,St=un.data,ln=un.innerProps,An=un.isDisabled,Cr=un.removeProps,_i=un.selectProps,Sn=kn.Container,ir=kn.Label,mt=kn.Remove;return(0,s.jsx)(Sn,{data:St,innerProps:(0,i.A)((0,i.A)({},P(un,"multiValue",{"multi-value":!0,"multi-value--is-disabled":An})),ln),selectProps:_i},(0,s.jsx)(ir,{data:St,innerProps:(0,i.A)({},P(un,"multiValueLabel",{"multi-value__label":!0})),selectProps:_i},qn),(0,s.jsx)(mt,{data:St,innerProps:(0,i.A)((0,i.A)({},P(un,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(qn||"option")},Cr),selectProps:_i}))},jr=yi,ui=function(un,qn){var kn=un.isDisabled,St=un.isFocused,ln=un.isSelected,An=un.theme,Cr=An.spacing,_i=An.colors;return(0,i.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},qn?{}:{backgroundColor:ln?_i.primary:St?_i.primary25:"transparent",color:kn?_i.neutral20:ln?_i.neutral0:"inherit",padding:"".concat(Cr.baseUnit*2,"px ").concat(Cr.baseUnit*3,"px"),":active":{backgroundColor:kn?void 0:ln?_i.primary:_i.primary50}})},bi=function(un){var qn=un.children,kn=un.isDisabled,St=un.isFocused,ln=un.isSelected,An=un.innerRef,Cr=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"option",{option:!0,"option--is-disabled":kn,"option--is-focused":St,"option--is-selected":ln}),{ref:An,"aria-disabled":kn},Cr),qn)},ri=bi,hi=function(un,qn){var kn=un.theme,St=kn.spacing,ln=kn.colors;return(0,i.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},qn?{}:{color:ln.neutral50,marginLeft:St.baseUnit/2,marginRight:St.baseUnit/2})},Si=function(un){var qn=un.children,kn=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"placeholder",{placeholder:!0}),kn),qn)},Kr=Si,xi=function(un,qn){var kn=un.isDisabled,St=un.theme,ln=St.spacing,An=St.colors;return(0,i.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},qn?{}:{color:kn?An.neutral40:An.neutral80,marginLeft:ln.baseUnit/2,marginRight:ln.baseUnit/2})},Ai=function(un){var qn=un.children,kn=un.isDisabled,St=un.innerProps;return(0,s.jsx)("div",(0,l.A)({},P(un,"singleValue",{"single-value":!0,"single-value--is-disabled":kn}),St),qn)},Pi=Ai,io={ClearIndicator:ie,Control:$t,DropdownIndicator:st,DownChevron:_t,CrossIcon:We,Group:xt,GroupHeading:Zn,IndicatorsContainer:K,IndicatorSeparator:z,Input:an,LoadingIndicator:nn,Menu:U,MenuList:Y,MenuPortal:Ke,LoadingMessage:wt,NoOptionsMessage:ft,MultiValue:jr,MultiValueContainer:rr,MultiValueLabel:sr,MultiValueRemove:pi,Option:ri,Placeholder:Kr,SelectContainer:At,SingleValue:Pi,ValueContainer:ee},lo=function(un){return(0,i.A)((0,i.A)({},io),un.components)}},46005:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>h});var i=t(52836),l=t(58168),s=t(96540),m=t(88131),u=t(84300),f=t(40961),p=t(27003),v=(0,s.forwardRef)(function(b,y){var w=(0,i.u)(b);return s.createElement(m.S,(0,l.A)({ref:y},w))}),h=v,d=function(b){var y=b.nonce,w=b.children,S=b.cacheKey,O=useMemo(function(){return createCache({key:S,nonce:y})},[S,y]);return React.createElement(CacheProvider,{value:O},w)}},46648:(J,g,t)=>{"use strict";t.d(g,{u:()=>v});var i=t(64467),l=t(89379),s=t(5544),m=t(80045),u=t(96540),f=t(28581),p=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function v(h){var d=h.defaultOptions,b=d===void 0?!1:d,y=h.cacheOptions,w=y===void 0?!1:y,S=h.loadOptions;h.options;var O=h.isLoading,R=O===void 0?!1:O,M=h.onInputChange,D=h.filterOption,P=D===void 0?null:D,T=(0,m.A)(h,p),A=T.inputValue,j=(0,u.useRef)(void 0),ae=(0,u.useRef)(!1),_=(0,u.useState)(Array.isArray(b)?b:void 0),N=(0,s.A)(_,2),W=N[0],he=N[1],me=(0,u.useState)(typeof A<"u"?A:""),fe=(0,s.A)(me,2),ve=fe[0],ce=fe[1],oe=(0,u.useState)(b===!0),re=(0,s.A)(oe,2),H=re[0],V=re[1],Q=(0,u.useState)(void 0),Te=(0,s.A)(Q,2),Re=Te[0],ne=Te[1],pe=(0,u.useState)([]),ye=(0,s.A)(pe,2),Se=ye[0],Ae=ye[1],Ee=(0,u.useState)(!1),xe=(0,s.A)(Ee,2),nt=xe[0],Tt=xe[1],pt=(0,u.useState)({}),Rt=(0,s.A)(pt,2),tt=Rt[0],U=Rt[1],F=(0,u.useState)(void 0),Y=(0,s.A)(F,2),le=Y[0],ke=Y[1],Ye=(0,u.useState)(void 0),ft=(0,s.A)(Ye,2),wt=ft[0],Ut=ft[1];w!==wt&&(U({}),Ut(w)),b!==le&&(he(Array.isArray(b)?b:void 0),ke(b)),(0,u.useEffect)(function(){return ae.current=!0,function(){ae.current=!1}},[]);var Ke=(0,u.useCallback)(function(et,ee){if(!S)return ee();var I=S(et,ee);I&&typeof I.then=="function"&&I.then(ee,function(){return ee()})},[S]);(0,u.useEffect)(function(){b===!0&&Ke(ve,function(et){ae.current&&(he(et||[]),V(!!j.current))})},[]);var it=(0,u.useCallback)(function(et,ee){var I=(0,f.L)(et,ee,M);if(!I){j.current=void 0,ce(""),ne(""),Ae([]),V(!1),Tt(!1);return}if(w&&tt[I])ce(I),ne(I),Ae(tt[I]),V(!1),Tt(!1);else{var K=j.current={};ce(I),V(!0),Tt(!Re),Ke(I,function(ue){ae&&K===j.current&&(j.current=void 0,V(!1),ne(I),Ae(ue||[]),Tt(!1),U(ue?(0,l.A)((0,l.A)({},tt),{},(0,i.A)({},I,ue)):tt))})}},[w,Ke,Re,tt,M]),At=nt?[]:ve&&Re?Se:W||[];return(0,l.A)((0,l.A)({},T),{},{options:At,isLoading:H||R,onInputChange:it,filterOption:P})}},59189:(J,g,t)=>{"use strict";t.d(g,{u:()=>d});var i=t(89379),l=t(60436),s=t(80045),m=t(96540),u=t(28581),f=t(88131),p=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],v=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",w=arguments.length>1?arguments[1]:void 0,S=arguments.length>2?arguments[2]:void 0,O=String(y).toLowerCase(),R=String(S.getOptionValue(w)).toLowerCase(),M=String(S.getOptionLabel(w)).toLowerCase();return R===O||M===O},h={formatCreateLabel:function(y){return'Create "'.concat(y,'"')},isValidNewOption:function(y,w,S,O){return!(!y||w.some(function(R){return v(y,R,O)})||S.some(function(R){return v(y,R,O)}))},getNewOptionData:function(y,w){return{label:w,value:y,__isNew__:!0}}};function d(b){var y=b.allowCreateWhileLoading,w=y===void 0?!1:y,S=b.createOptionPosition,O=S===void 0?"last":S,R=b.formatCreateLabel,M=R===void 0?h.formatCreateLabel:R,D=b.isValidNewOption,P=D===void 0?h.isValidNewOption:D,T=b.getNewOptionData,A=T===void 0?h.getNewOptionData:T,j=b.onCreateOption,ae=b.options,_=ae===void 0?[]:ae,N=b.onChange,W=(0,s.A)(b,p),he=W.getOptionValue,me=he===void 0?f.g:he,fe=W.getOptionLabel,ve=fe===void 0?f.b:fe,ce=W.inputValue,oe=W.isLoading,re=W.isMulti,H=W.value,V=W.name,Q=(0,m.useMemo)(function(){return P(ce,(0,u.H)(H),_,{getOptionValue:me,getOptionLabel:ve})?A(ce,M(ce)):void 0},[M,A,ve,me,ce,P,_,H]),Te=(0,m.useMemo)(function(){return(w||!oe)&&Q?O==="first"?[Q].concat((0,l.A)(_)):[].concat((0,l.A)(_),[Q]):_},[w,O,oe,Q,_]),Re=(0,m.useCallback)(function(ne,pe){if(pe.action!=="select-option")return N(ne,pe);var ye=Array.isArray(ne)?ne:[ne];if(ye[ye.length-1]===Q){if(j)j(ce);else{var Se=A(ce,ce),Ae={action:"create-option",name:V,option:Se};N((0,u.D)(re,[].concat((0,l.A)((0,u.H)(H)),[Se]),Se),Ae)}return}N(ne,pe)},[A,ce,re,V,Q,j,N,H]);return(0,i.A)((0,i.A)({},W),{},{options:Te,onChange:Re})}},52836:(J,g,t)=>{"use strict";t.d(g,{u:()=>f});var i=t(89379),l=t(5544),s=t(80045),m=t(96540),u=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function f(p){var v=p.defaultInputValue,h=v===void 0?"":v,d=p.defaultMenuIsOpen,b=d===void 0?!1:d,y=p.defaultValue,w=y===void 0?null:y,S=p.inputValue,O=p.menuIsOpen,R=p.onChange,M=p.onInputChange,D=p.onMenuClose,P=p.onMenuOpen,T=p.value,A=(0,s.A)(p,u),j=(0,m.useState)(S!==void 0?S:h),ae=(0,l.A)(j,2),_=ae[0],N=ae[1],W=(0,m.useState)(O!==void 0?O:b),he=(0,l.A)(W,2),me=he[0],fe=he[1],ve=(0,m.useState)(T!==void 0?T:w),ce=(0,l.A)(ve,2),oe=ce[0],re=ce[1],H=(0,m.useCallback)(function(ye,Se){typeof R=="function"&&R(ye,Se),re(ye)},[R]),V=(0,m.useCallback)(function(ye,Se){var Ae;typeof M=="function"&&(Ae=M(ye,Se)),N(Ae!==void 0?Ae:ye)},[M]),Q=(0,m.useCallback)(function(){typeof P=="function"&&P(),fe(!0)},[P]),Te=(0,m.useCallback)(function(){typeof D=="function"&&D(),fe(!1)},[D]),Re=S!==void 0?S:_,ne=O!==void 0?O:me,pe=T!==void 0?T:oe;return(0,i.A)((0,i.A)({},A),{},{inputValue:Re,menuIsOpen:ne,onChange:H,onInputChange:V,onMenuClose:Te,onMenuOpen:Q,value:pe})}},28829:function(J,g,t){(function(i,l){l(g,t(96540))})(this,function(i,l){"use strict";function s(rn,Dr,Lr,li,Zi,Di,wo){try{var Go=rn[Di](wo),Ko=Go.value}catch(Ie){return void Lr(Ie)}Go.done?Dr(Ko):Promise.resolve(Ko).then(li,Zi)}function m(rn){return function(){var Dr=this,Lr=arguments;return new Promise(function(li,Zi){var Di=rn.apply(Dr,Lr);function wo(Ko){s(Di,li,Zi,wo,Go,"next",Ko)}function Go(Ko){s(Di,li,Zi,wo,Go,"throw",Ko)}wo(void 0)})}}function u(){return(u=Object.assign||function(rn){for(var Dr=1;Dr<arguments.length;Dr++){var Lr=arguments[Dr];for(var li in Lr)Object.prototype.hasOwnProperty.call(Lr,li)&&(rn[li]=Lr[li])}return rn}).apply(this,arguments)}function f(rn,Dr){if(rn==null)return{};var Lr,li,Zi={},Di=Object.keys(rn);for(li=0;li<Di.length;li++)Lr=Di[li],Dr.indexOf(Lr)>=0||(Zi[Lr]=rn[Lr]);return Zi}function p(rn){var Dr=function(Lr,li){if(typeof Lr!="object"||Lr===null)return Lr;var Zi=Lr[Symbol.toPrimitive];if(Zi!==void 0){var Di=Zi.call(Lr,li||"default");if(typeof Di!="object")return Di;throw new TypeError("@@toPrimitive must return a primitive value.")}return(li==="string"?String:Number)(Lr)}(rn,"string");return typeof Dr=="symbol"?Dr:String(Dr)}l=l&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l;var v={init:"init"},h=function(rn){var Dr=rn.value;return Dr===void 0?"":Dr},d=function(){return l.createElement(l.Fragment,null,"\xA0")},b={Cell:h,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function y(){for(var rn=arguments.length,Dr=new Array(rn),Lr=0;Lr<rn;Lr++)Dr[Lr]=arguments[Lr];return Dr.reduce(function(li,Zi){var Di=Zi.style,wo=Zi.className;return li=u({},li,{},f(Zi,["style","className"])),Di&&(li.style=li.style?u({},li.style||{},{},Di||{}):Di),wo&&(li.className=li.className?li.className+" "+wo:wo),li.className===""&&delete li.className,li},{})}var w=function(rn,Dr){return Dr===void 0&&(Dr={}),function(Lr){return Lr===void 0&&(Lr={}),[].concat(rn,[Lr]).reduce(function(li,Zi){return function Di(wo,Go,Ko){return typeof Go=="function"?Di({},Go(wo,Ko)):Array.isArray(Go)?y.apply(void 0,[wo].concat(Go)):y(wo,Go)}(li,Zi,u({},Dr,{userProps:Lr}))},{})}},S=function(rn,Dr,Lr,li){return Lr===void 0&&(Lr={}),rn.reduce(function(Zi,Di){return Di(Zi,Lr)},Dr)},O=function(rn,Dr,Lr){return Lr===void 0&&(Lr={}),rn.forEach(function(li){li(Dr,Lr)})};function R(rn,Dr,Lr,li){rn.findIndex(function(Zi){return Zi.pluginName===Lr}),Dr.forEach(function(Zi){rn.findIndex(function(Di){return Di.pluginName===Zi})})}function M(rn,Dr){return typeof rn=="function"?rn(Dr):rn}function D(rn){var Dr=l.useRef();return Dr.current=rn,l.useCallback(function(){return Dr.current},[])}var P=typeof document<"u"?l.useLayoutEffect:l.useEffect;function T(rn,Dr){var Lr=l.useRef(!1);P(function(){Lr.current&&rn(),Lr.current=!0},Dr)}function A(rn,Dr,Lr){return Lr===void 0&&(Lr={}),function(li,Zi){Zi===void 0&&(Zi={});var Di=typeof li=="string"?Dr[li]:li;if(Di===void 0)throw console.info(Dr),new Error("Renderer Error \u261D\uFE0F");return j(Di,u({},rn,{column:Dr},Lr,{},Zi))}}function j(rn,Dr){return function(li){return typeof li=="function"&&(Zi=Object.getPrototypeOf(li)).prototype&&Zi.prototype.isReactComponent;var Zi}(Lr=rn)||typeof Lr=="function"||function(li){return typeof li=="object"&&typeof li.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(li.$$typeof.description)}(Lr)?l.createElement(rn,Dr):rn;var Lr}function ae(rn,Dr,Lr){return Lr===void 0&&(Lr=0),rn.map(function(li){return N(li=u({},li,{parent:Dr,depth:Lr})),li.columns&&(li.columns=ae(li.columns,li,Lr+1)),li})}function _(rn){return ce(rn,"columns")}function N(rn){var Dr=rn.id,Lr=rn.accessor,li=rn.Header;if(typeof Lr=="string"){Dr=Dr||Lr;var Zi=Lr.split(".");Lr=function(Di){return function(wo,Go,Ko){if(!Go)return wo;var Ie,yt=typeof Go=="function"?Go:JSON.stringify(Go),on=me.get(yt)||function(){var _n=function(er){return function or(Er,Mi){if(Mi===void 0&&(Mi=[]),Array.isArray(Er))for(var Ui=0;Ui<Er.length;Ui+=1)or(Er[Ui],Mi);else Mi.push(Er);return Mi}(er).map(function(or){return String(or).replace(".","_")}).join(".").replace(Te,".").replace(Re,"").split(".")}(Go);return me.set(yt,_n),_n}();try{Ie=on.reduce(function(_n,er){return _n[er]},wo)}catch{}return Ie!==void 0?Ie:Ko}(Di,Zi)}}if(!Dr&&typeof li=="string"&&li&&(Dr=li),!Dr&&rn.columns)throw console.error(rn),new Error('A column ID (or unique "Header" value) is required!');if(!Dr)throw console.error(rn),new Error("A column ID (or string accessor) is required!");return Object.assign(rn,{id:Dr,accessor:Lr}),rn}function W(rn,Dr){if(!Dr)throw new Error;return Object.assign(rn,u({Header:d,Footer:d},b,{},Dr,{},rn)),Object.assign(rn,{originalWidth:rn.width}),rn}function he(rn,Dr,Lr){Lr===void 0&&(Lr=function(){return{}});for(var li=[],Zi=rn,Di=0,wo=function(){return Di++},Go=function(){var Ko={headers:[]},Ie=[],yt=Zi.some(function(on){return on.parent});Zi.forEach(function(on){var _n,er=[].concat(Ie).reverse()[0];yt&&(on.parent?_n=u({},on.parent,{originalId:on.parent.id,id:on.parent.id+"_"+wo(),headers:[on]},Lr(on)):_n=W(u({originalId:on.id+"_placeholder",id:on.id+"_placeholder_"+wo(),placeholderOf:on,headers:[on]},Lr(on)),Dr),er&&er.originalId===_n.originalId?er.headers.push(on):Ie.push(_n)),Ko.headers.push(on)}),li.push(Ko),Zi=Ie};Zi.length;)Go();return li.reverse()}var me=new Map;function fe(){for(var rn=arguments.length,Dr=new Array(rn),Lr=0;Lr<rn;Lr++)Dr[Lr]=arguments[Lr];for(var li=0;li<Dr.length;li+=1)if(Dr[li]!==void 0)return Dr[li]}function ve(rn){if(typeof rn=="function")return rn}function ce(rn,Dr){var Lr=[];return function li(Zi){Zi.forEach(function(Di){Di[Dr]?li(Di[Dr]):Lr.push(Di)})}(rn),Lr}function oe(rn,Dr){var Lr=Dr.manualExpandedKey,li=Dr.expanded,Zi=Dr.expandSubRows,Di=Zi===void 0||Zi,wo=[];return rn.forEach(function(Go){return function Ko(Ie,yt){yt===void 0&&(yt=!0),Ie.isExpanded=Ie.original&&Ie.original[Lr]||li[Ie.id],Ie.canExpand=Ie.subRows&&!!Ie.subRows.length,yt&&wo.push(Ie),Ie.subRows&&Ie.subRows.length&&Ie.isExpanded&&Ie.subRows.forEach(function(on){return Ko(on,Di)})}(Go)}),wo}function re(rn,Dr,Lr){return ve(rn)||Dr[rn]||Lr[rn]||Lr.text}function H(rn,Dr,Lr){return rn?rn(Dr,Lr):Dr===void 0}function V(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var Q=null,Te=/\[/g,Re=/\]/g,ne=function(rn){return u({role:"table"},rn)},pe=function(rn){return u({role:"rowgroup"},rn)},ye=function(rn,Dr){var Lr=Dr.column;return u({key:"header_"+Lr.id,colSpan:Lr.totalVisibleHeaderCount,role:"columnheader"},rn)},Se=function(rn,Dr){var Lr=Dr.column;return u({key:"footer_"+Lr.id,colSpan:Lr.totalVisibleHeaderCount},rn)},Ae=function(rn,Dr){return u({key:"headerGroup_"+Dr.index,role:"row"},rn)},Ee=function(rn,Dr){return u({key:"footerGroup_"+Dr.index},rn)},xe=function(rn,Dr){return u({key:"row_"+Dr.row.id,role:"row"},rn)},nt=function(rn,Dr){var Lr=Dr.cell;return u({key:"cell_"+Lr.row.id+"_"+Lr.column.id,role:"cell"},rn)};function Tt(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[ne],getTableBodyProps:[pe],getHeaderGroupProps:[Ae],getFooterGroupProps:[Ee],getHeaderProps:[ye],getFooterProps:[Se],getRowProps:[xe],getCellProps:[nt],useFinalInstance:[]}}v.resetHiddenColumns="resetHiddenColumns",v.toggleHideColumn="toggleHideColumn",v.setHiddenColumns="setHiddenColumns",v.toggleHideAllColumns="toggleHideAllColumns";var pt=function(rn){rn.getToggleHiddenProps=[Rt],rn.getToggleHideAllColumnsProps=[tt],rn.stateReducers.push(U),rn.useInstanceBeforeDimensions.push(F),rn.headerGroupsDeps.push(function(Dr,Lr){var li=Lr.instance;return[].concat(Dr,[li.state.hiddenColumns])}),rn.useInstance.push(Y)};pt.pluginName="useColumnVisibility";var Rt=function(rn,Dr){var Lr=Dr.column;return[rn,{onChange:function(li){Lr.toggleHidden(!li.target.checked)},style:{cursor:"pointer"},checked:Lr.isVisible,title:"Toggle Column Visible"}]},tt=function(rn,Dr){var Lr=Dr.instance;return[rn,{onChange:function(li){Lr.toggleHideAllColumns(!li.target.checked)},style:{cursor:"pointer"},checked:!Lr.allColumnsHidden&&!Lr.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!Lr.allColumnsHidden&&Lr.state.hiddenColumns.length}]};function U(rn,Dr,Lr,li){if(Dr.type===v.init)return u({hiddenColumns:[]},rn);if(Dr.type===v.resetHiddenColumns)return u({},rn,{hiddenColumns:li.initialState.hiddenColumns||[]});if(Dr.type===v.toggleHideColumn){var Zi=(Dr.value!==void 0?Dr.value:!rn.hiddenColumns.includes(Dr.columnId))?[].concat(rn.hiddenColumns,[Dr.columnId]):rn.hiddenColumns.filter(function(Di){return Di!==Dr.columnId});return u({},rn,{hiddenColumns:Zi})}return Dr.type===v.setHiddenColumns?u({},rn,{hiddenColumns:M(Dr.value,rn.hiddenColumns)}):Dr.type===v.toggleHideAllColumns?u({},rn,{hiddenColumns:(Dr.value!==void 0?Dr.value:!rn.hiddenColumns.length)?li.allColumns.map(function(Di){return Di.id}):[]}):void 0}function F(rn){var Dr=rn.headers,Lr=rn.state.hiddenColumns;l.useRef(!1).current;var li=0;Dr.forEach(function(Zi){return li+=function Di(wo,Go){wo.isVisible=Go&&!Lr.includes(wo.id);var Ko=0;return wo.headers&&wo.headers.length?wo.headers.forEach(function(Ie){return Ko+=Di(Ie,wo.isVisible)}):Ko=wo.isVisible?1:0,wo.totalVisibleHeaderCount=Ko,Ko}(Zi,!0)})}function Y(rn){var Dr=rn.columns,Lr=rn.flatHeaders,li=rn.dispatch,Zi=rn.allColumns,Di=rn.getHooks,wo=rn.state.hiddenColumns,Go=rn.autoResetHiddenColumns,Ko=Go===void 0||Go,Ie=D(rn),yt=Zi.length===wo.length,on=l.useCallback(function(Mi,Ui){return li({type:v.toggleHideColumn,columnId:Mi,value:Ui})},[li]),_n=l.useCallback(function(Mi){return li({type:v.setHiddenColumns,value:Mi})},[li]),er=l.useCallback(function(Mi){return li({type:v.toggleHideAllColumns,value:Mi})},[li]),or=w(Di().getToggleHideAllColumnsProps,{instance:Ie()});Lr.forEach(function(Mi){Mi.toggleHidden=function(Ui){li({type:v.toggleHideColumn,columnId:Mi.id,value:Ui})},Mi.getToggleHiddenProps=w(Di().getToggleHiddenProps,{instance:Ie(),column:Mi})});var Er=D(Ko);T(function(){Er()&&li({type:v.resetHiddenColumns})},[li,Dr]),Object.assign(rn,{allColumnsHidden:yt,toggleHideColumn:on,setHiddenColumns:_n,toggleHideAllColumns:er,getToggleHideAllColumnsProps:or})}var le={},ke={},Ye=function(rn,Dr,Lr){return rn},ft=function(rn,Dr){return rn.subRows||[]},wt=function(rn,Dr,Lr){return""+(Lr?[Lr.id,Dr].join("."):Dr)},Ut=function(rn){return rn};function Ke(rn){var Dr=rn.initialState,Lr=Dr===void 0?le:Dr,li=rn.defaultColumn,Zi=li===void 0?ke:li,Di=rn.getSubRows,wo=Di===void 0?ft:Di,Go=rn.getRowId,Ko=Go===void 0?wt:Go,Ie=rn.stateReducer,yt=Ie===void 0?Ye:Ie,on=rn.useControlledState,_n=on===void 0?Ut:on;return u({},f(rn,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:Lr,defaultColumn:Zi,getSubRows:wo,getRowId:Ko,stateReducer:yt,useControlledState:_n})}function it(rn,Dr){Dr===void 0&&(Dr=0);var Lr=0,li=0,Zi=0,Di=0;return rn.forEach(function(wo){var Go=wo.headers;if(wo.totalLeft=Dr,Go&&Go.length){var Ko=it(Go,Dr),Ie=Ko[0],yt=Ko[1],on=Ko[2],_n=Ko[3];wo.totalMinWidth=Ie,wo.totalWidth=yt,wo.totalMaxWidth=on,wo.totalFlexWidth=_n}else wo.totalMinWidth=wo.minWidth,wo.totalWidth=Math.min(Math.max(wo.minWidth,wo.width),wo.maxWidth),wo.totalMaxWidth=wo.maxWidth,wo.totalFlexWidth=wo.canResize?wo.totalWidth:0;wo.isVisible&&(Dr+=wo.totalWidth,Lr+=wo.totalMinWidth,li+=wo.totalWidth,Zi+=wo.totalMaxWidth,Di+=wo.totalFlexWidth)}),[Lr,li,Zi,Di]}function At(rn){var Dr=rn.data,Lr=rn.rows,li=rn.flatRows,Zi=rn.rowsById,Di=rn.column,wo=rn.getRowId,Go=rn.getSubRows,Ko=rn.accessValueHooks,Ie=rn.getInstance;Dr.forEach(function(yt,on){return function _n(er,or,Er,Mi,Ui){Er===void 0&&(Er=0);var Nn=er,cr=wo(er,or,Mi),ni=Zi[cr];if(ni)ni.subRows&&ni.originalSubRows.forEach(function(Jr,Qi){return _n(Jr,Qi,Er+1,ni)});else if((ni={id:cr,original:Nn,index:or,depth:Er,cells:[{}]}).cells.map=V,ni.cells.filter=V,ni.cells.forEach=V,ni.cells[0].getCellProps=V,ni.values={},Ui.push(ni),li.push(ni),Zi[cr]=ni,ni.originalSubRows=Go(er,or),ni.originalSubRows){var Xr=[];ni.originalSubRows.forEach(function(Jr,Qi){return _n(Jr,Qi,Er+1,ni,Xr)}),ni.subRows=Xr}Di.accessor&&(ni.values[Di.id]=Di.accessor(er,or,ni,Ui,Dr)),ni.values[Di.id]=S(Ko,ni.values[Di.id],{row:ni,column:Di,instance:Ie()})}(yt,on,0,void 0,Lr)})}v.resetExpanded="resetExpanded",v.toggleRowExpanded="toggleRowExpanded",v.toggleAllRowsExpanded="toggleAllRowsExpanded";var et=function(rn){rn.getToggleAllRowsExpandedProps=[ee],rn.getToggleRowExpandedProps=[I],rn.stateReducers.push(K),rn.useInstance.push(ue),rn.prepareRow.push(De)};et.pluginName="useExpanded";var ee=function(rn,Dr){var Lr=Dr.instance;return[rn,{onClick:function(li){Lr.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},I=function(rn,Dr){var Lr=Dr.row;return[rn,{onClick:function(){Lr.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function K(rn,Dr,Lr,li){if(Dr.type===v.init)return u({expanded:{}},rn);if(Dr.type===v.resetExpanded)return u({},rn,{expanded:li.initialState.expanded||{}});if(Dr.type===v.toggleAllRowsExpanded){var Zi=Dr.value,Di=li.rowsById,wo=Object.keys(Di).length===Object.keys(rn.expanded).length;if(Zi!==void 0?Zi:!wo){var Go={};return Object.keys(Di).forEach(function(or){Go[or]=!0}),u({},rn,{expanded:Go})}return u({},rn,{expanded:{}})}if(Dr.type===v.toggleRowExpanded){var Ko,Ie=Dr.id,yt=Dr.value,on=rn.expanded[Ie],_n=yt!==void 0?yt:!on;if(!on&&_n)return u({},rn,{expanded:u({},rn.expanded,(Ko={},Ko[Ie]=!0,Ko))});if(on&&!_n){var er=rn.expanded;return er[Ie],u({},rn,{expanded:f(er,[Ie].map(p))})}return rn}}function ue(rn){var Dr=rn.data,Lr=rn.rows,li=rn.rowsById,Zi=rn.manualExpandedKey,Di=Zi===void 0?"expanded":Zi,wo=rn.paginateExpandedRows,Go=wo===void 0||wo,Ko=rn.expandSubRows,Ie=Ko===void 0||Ko,yt=rn.autoResetExpanded,on=yt===void 0||yt,_n=rn.getHooks,er=rn.plugins,or=rn.state.expanded,Er=rn.dispatch;R(er,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var Mi=D(on),Ui=!!(Object.keys(li).length&&Object.keys(or).length);Ui&&Object.keys(li).some(function(Fo){return!or[Fo]})&&(Ui=!1),T(function(){Mi()&&Er({type:v.resetExpanded})},[Er,Dr]);var Nn=l.useCallback(function(Fo,No){Er({type:v.toggleRowExpanded,id:Fo,value:No})},[Er]),cr=l.useCallback(function(Fo){return Er({type:v.toggleAllRowsExpanded,value:Fo})},[Er]),ni=l.useMemo(function(){return Go?oe(Lr,{manualExpandedKey:Di,expanded:or,expandSubRows:Ie}):Lr},[Go,Lr,Di,or,Ie]),Xr=l.useMemo(function(){return function(Fo){var No=0;return Object.keys(Fo).forEach(function(Jo){var br=Jo.split(".");No=Math.max(No,br.length)}),No}(or)},[or]),Jr=D(rn),Qi=w(_n().getToggleAllRowsExpandedProps,{instance:Jr()});Object.assign(rn,{preExpandedRows:Lr,expandedRows:ni,rows:ni,expandedDepth:Xr,isAllRowsExpanded:Ui,toggleRowExpanded:Nn,toggleAllRowsExpanded:cr,getToggleAllRowsExpandedProps:Qi})}function De(rn,Dr){var Lr=Dr.instance.getHooks,li=Dr.instance;rn.toggleRowExpanded=function(Zi){return li.toggleRowExpanded(rn.id,Zi)},rn.getToggleRowExpandedProps=w(Lr().getToggleRowExpandedProps,{instance:li,row:rn})}var He=function(rn,Dr,Lr){return rn=rn.filter(function(li){return Dr.some(function(Zi){var Di=li.values[Zi];return String(Di).toLowerCase().includes(String(Lr).toLowerCase())})})};He.autoRemove=function(rn){return!rn};var Fe=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){var Di=li.values[Zi];return Di===void 0||String(Di).toLowerCase()===String(Lr).toLowerCase()})})};Fe.autoRemove=function(rn){return!rn};var ze=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){var Di=li.values[Zi];return Di===void 0||String(Di)===String(Lr)})})};ze.autoRemove=function(rn){return!rn};var qe=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){return li.values[Zi].includes(Lr)})})};qe.autoRemove=function(rn){return!rn||!rn.length};var We=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){var Di=li.values[Zi];return Di&&Di.length&&Lr.every(function(wo){return Di.includes(wo)})})})};We.autoRemove=function(rn){return!rn||!rn.length};var _t=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){var Di=li.values[Zi];return Di&&Di.length&&Lr.some(function(wo){return Di.includes(wo)})})})};_t.autoRemove=function(rn){return!rn||!rn.length};var ct=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){var Di=li.values[Zi];return Lr.includes(Di)})})};ct.autoRemove=function(rn){return!rn||!rn.length};var Ge=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){return li.values[Zi]===Lr})})};Ge.autoRemove=function(rn){return rn===void 0};var st=function(rn,Dr,Lr){return rn.filter(function(li){return Dr.some(function(Zi){return li.values[Zi]==Lr})})};st.autoRemove=function(rn){return rn==null};var Me=function(rn,Dr,Lr){var li=Lr||[],Zi=li[0],Di=li[1];if((Zi=typeof Zi=="number"?Zi:-1/0)>(Di=typeof Di=="number"?Di:1/0)){var wo=Zi;Zi=Di,Di=wo}return rn.filter(function(Go){return Dr.some(function(Ko){var Ie=Go.values[Ko];return Ie>=Zi&&Ie<=Di})})};Me.autoRemove=function(rn){return!rn||typeof rn[0]!="number"&&typeof rn[1]!="number"};var ie=Object.freeze({__proto__:null,text:He,exactText:Fe,exactTextCase:ze,includes:qe,includesAll:We,includesSome:_t,includesValue:ct,exact:Ge,equals:st,between:Me});v.resetFilters="resetFilters",v.setFilter="setFilter",v.setAllFilters="setAllFilters";var ge=function(rn){rn.stateReducers.push(z),rn.useInstance.push(be)};function z(rn,Dr,Lr,li){if(Dr.type===v.init)return u({filters:[]},rn);if(Dr.type===v.resetFilters)return u({},rn,{filters:li.initialState.filters||[]});if(Dr.type===v.setFilter){var Zi=Dr.columnId,Di=Dr.filterValue,wo=li.allColumns,Go=li.filterTypes,Ko=wo.find(function(Er){return Er.id===Zi});if(!Ko)throw new Error("React-Table: Could not find a column with id: "+Zi);var Ie=re(Ko.filter,Go||{},ie),yt=rn.filters.find(function(Er){return Er.id===Zi}),on=M(Di,yt&&yt.value);return H(Ie.autoRemove,on,Ko)?u({},rn,{filters:rn.filters.filter(function(Er){return Er.id!==Zi})}):u({},rn,yt?{filters:rn.filters.map(function(Er){return Er.id===Zi?{id:Zi,value:on}:Er})}:{filters:[].concat(rn.filters,[{id:Zi,value:on}])})}if(Dr.type===v.setAllFilters){var _n=Dr.filters,er=li.allColumns,or=li.filterTypes;return u({},rn,{filters:M(_n,rn.filters).filter(function(Er){var Mi=er.find(function(Ui){return Ui.id===Er.id});return!H(re(Mi.filter,or||{},ie).autoRemove,Er.value,Mi)})})}}function be(rn){var Dr=rn.data,Lr=rn.rows,li=rn.flatRows,Zi=rn.rowsById,Di=rn.allColumns,wo=rn.filterTypes,Go=rn.manualFilters,Ko=rn.defaultCanFilter,Ie=Ko!==void 0&&Ko,yt=rn.disableFilters,on=rn.state.filters,_n=rn.dispatch,er=rn.autoResetFilters,or=er===void 0||er,Er=l.useCallback(function(Jr,Qi){_n({type:v.setFilter,columnId:Jr,filterValue:Qi})},[_n]),Mi=l.useCallback(function(Jr){_n({type:v.setAllFilters,filters:Jr})},[_n]);Di.forEach(function(Jr){var Qi=Jr.id,Fo=Jr.accessor,No=Jr.defaultCanFilter,Jo=Jr.disableFilters;Jr.canFilter=Fo?fe(Jo!==!0&&void 0,yt!==!0&&void 0,!0):fe(No,Ie,!1),Jr.setFilter=function(Yn){return Er(Jr.id,Yn)};var br=on.find(function(Yn){return Yn.id===Qi});Jr.filterValue=br&&br.value});var Ui=l.useMemo(function(){if(Go||!on.length)return[Lr,li,Zi];var Jr=[],Qi={};return[function Fo(No,Jo){Jo===void 0&&(Jo=0);var br=No;return(br=on.reduce(function(Yn,Z){var se=Z.id,G=Z.value,B=Di.find(function(dt){return dt.id===se});if(!B)return Yn;Jo===0&&(B.preFilteredRows=Yn);var Pe=re(B.filter,wo||{},ie);return Pe?(B.filteredRows=Pe(Yn,[se],G),B.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+B.id+"."),Yn)},No)).forEach(function(Yn){Jr.push(Yn),Qi[Yn.id]=Yn,Yn.subRows&&(Yn.subRows=Yn.subRows&&Yn.subRows.length>0?Fo(Yn.subRows,Jo+1):Yn.subRows)}),br}(Lr),Jr,Qi]},[Go,on,Lr,li,Zi,Di,wo]),Nn=Ui[0],cr=Ui[1],ni=Ui[2];l.useMemo(function(){Di.filter(function(Jr){return!on.find(function(Qi){return Qi.id===Jr.id})}).forEach(function(Jr){Jr.preFilteredRows=Nn,Jr.filteredRows=Nn})},[Nn,on,Di]);var Xr=D(or);T(function(){Xr()&&_n({type:v.resetFilters})},[_n,Go?null:Dr]),Object.assign(rn,{preFilteredRows:Lr,preFilteredFlatRows:li,preFilteredRowsById:Zi,filteredRows:Nn,filteredFlatRows:cr,filteredRowsById:ni,rows:Nn,flatRows:cr,rowsById:ni,setFilter:Er,setAllFilters:Mi})}ge.pluginName="useFilters",v.resetGlobalFilter="resetGlobalFilter",v.setGlobalFilter="setGlobalFilter";var Qe=function(rn){rn.stateReducers.push(Bt),rn.useInstance.push(nn)};function Bt(rn,Dr,Lr,li){if(Dr.type===v.resetGlobalFilter)return u({},rn,{globalFilter:li.initialState.globalFilter||void 0});if(Dr.type===v.setGlobalFilter){var Zi=Dr.filterValue,Di=li.userFilterTypes,wo=re(li.globalFilter,Di||{},ie),Go=M(Zi,rn.globalFilter);return H(wo.autoRemove,Go)?(rn.globalFilter,f(rn,["globalFilter"])):u({},rn,{globalFilter:Go})}}function nn(rn){var Dr=rn.data,Lr=rn.rows,li=rn.flatRows,Zi=rn.rowsById,Di=rn.allColumns,wo=rn.filterTypes,Go=rn.globalFilter,Ko=rn.manualGlobalFilter,Ie=rn.state.globalFilter,yt=rn.dispatch,on=rn.autoResetGlobalFilter,_n=on===void 0||on,er=rn.disableGlobalFilter,or=l.useCallback(function(ni){yt({type:v.setGlobalFilter,filterValue:ni})},[yt]),Er=l.useMemo(function(){if(Ko||Ie===void 0)return[Lr,li,Zi];var ni=[],Xr={},Jr=re(Go,wo||{},ie);if(!Jr)return console.warn("Could not find a valid 'globalFilter' option."),Lr;Di.forEach(function(Fo){var No=Fo.disableGlobalFilter;Fo.canFilter=fe(No!==!0&&void 0,er!==!0&&void 0,!0)});var Qi=Di.filter(function(Fo){return Fo.canFilter===!0});return[function Fo(No){return(No=Jr(No,Qi.map(function(Jo){return Jo.id}),Ie)).forEach(function(Jo){ni.push(Jo),Xr[Jo.id]=Jo,Jo.subRows=Jo.subRows&&Jo.subRows.length?Fo(Jo.subRows):Jo.subRows}),No}(Lr),ni,Xr]},[Ko,Ie,Go,wo,Di,Lr,li,Zi,er]),Mi=Er[0],Ui=Er[1],Nn=Er[2],cr=D(_n);T(function(){cr()&&yt({type:v.resetGlobalFilter})},[yt,Ko?null:Dr]),Object.assign(rn,{preGlobalFilteredRows:Lr,preGlobalFilteredFlatRows:li,preGlobalFilteredRowsById:Zi,globalFilteredRows:Mi,globalFilteredFlatRows:Ui,globalFilteredRowsById:Nn,rows:Mi,flatRows:Ui,rowsById:Nn,setGlobalFilter:or,disableGlobalFilter:er})}function bt(rn,Dr){return Dr.reduce(function(Lr,li){return Lr+(typeof li=="number"?li:0)},0)}Qe.pluginName="useGlobalFilter";var at=Object.freeze({__proto__:null,sum:bt,min:function(rn){var Dr=rn[0]||0;return rn.forEach(function(Lr){typeof Lr=="number"&&(Dr=Math.min(Dr,Lr))}),Dr},max:function(rn){var Dr=rn[0]||0;return rn.forEach(function(Lr){typeof Lr=="number"&&(Dr=Math.max(Dr,Lr))}),Dr},minMax:function(rn){var Dr=rn[0]||0,Lr=rn[0]||0;return rn.forEach(function(li){typeof li=="number"&&(Dr=Math.min(Dr,li),Lr=Math.max(Lr,li))}),Dr+".."+Lr},average:function(rn){return bt(0,rn)/rn.length},median:function(rn){if(!rn.length)return null;var Dr=Math.floor(rn.length/2),Lr=[].concat(rn).sort(function(li,Zi){return li-Zi});return rn.length%2!=0?Lr[Dr]:(Lr[Dr-1]+Lr[Dr])/2},unique:function(rn){return Array.from(new Set(rn).values())},uniqueCount:function(rn){return new Set(rn).size},count:function(rn){return rn.length}}),$t=[],On={};v.resetGroupBy="resetGroupBy",v.setGroupBy="setGroupBy",v.toggleGroupBy="toggleGroupBy";var Ct=function(rn){rn.getGroupByToggleProps=[Zt],rn.stateReducers.push(Wn),rn.visibleColumnsDeps.push(function(Dr,Lr){var li=Lr.instance;return[].concat(Dr,[li.state.groupBy])}),rn.visibleColumns.push(Zn),rn.useInstance.push(Xe),rn.prepareRow.push(gn)};Ct.pluginName="useGroupBy";var Zt=function(rn,Dr){var Lr=Dr.header;return[rn,{onClick:Lr.canGroupBy?function(li){li.persist(),Lr.toggleGroupBy()}:void 0,style:{cursor:Lr.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function Wn(rn,Dr,Lr,li){if(Dr.type===v.init)return u({groupBy:[]},rn);if(Dr.type===v.resetGroupBy)return u({},rn,{groupBy:li.initialState.groupBy||[]});if(Dr.type===v.setGroupBy)return u({},rn,{groupBy:Dr.value});if(Dr.type===v.toggleGroupBy){var Zi=Dr.columnId,Di=Dr.value,wo=Di!==void 0?Di:!rn.groupBy.includes(Zi);return u({},rn,wo?{groupBy:[].concat(rn.groupBy,[Zi])}:{groupBy:rn.groupBy.filter(function(Go){return Go!==Zi})})}}function Zn(rn,Dr){var Lr=Dr.instance.state.groupBy,li=Lr.map(function(Di){return rn.find(function(wo){return wo.id===Di})}).filter(Boolean),Zi=rn.filter(function(Di){return!Lr.includes(Di.id)});return(rn=[].concat(li,Zi)).forEach(function(Di){Di.isGrouped=Lr.includes(Di.id),Di.groupedIndex=Lr.indexOf(Di.id)}),rn}var xt={};function Xe(rn){var Dr=rn.data,Lr=rn.rows,li=rn.flatRows,Zi=rn.rowsById,Di=rn.allColumns,wo=rn.flatHeaders,Go=rn.groupByFn,Ko=Go===void 0?Qt:Go,Ie=rn.manualGroupBy,yt=rn.aggregations,on=yt===void 0?xt:yt,_n=rn.plugins,er=rn.state.groupBy,or=rn.dispatch,Er=rn.autoResetGroupBy,Mi=Er===void 0||Er,Ui=rn.disableGroupBy,Nn=rn.defaultCanGroupBy,cr=rn.getHooks;R(_n,["useColumnOrder","useFilters"],"useGroupBy");var ni=D(rn);Di.forEach(function(B){var Pe=B.accessor,dt=B.defaultGroupBy,Lt=B.disableGroupBy;B.canGroupBy=Pe?fe(B.canGroupBy,Lt!==!0&&void 0,Ui!==!0&&void 0,!0):fe(B.canGroupBy,dt,Nn,!1),B.canGroupBy&&(B.toggleGroupBy=function(){return rn.toggleGroupBy(B.id)}),B.Aggregated=B.Aggregated||B.Cell});var Xr=l.useCallback(function(B,Pe){or({type:v.toggleGroupBy,columnId:B,value:Pe})},[or]),Jr=l.useCallback(function(B){or({type:v.setGroupBy,value:B})},[or]);wo.forEach(function(B){B.getGroupByToggleProps=w(cr().getGroupByToggleProps,{instance:ni(),header:B})});var Qi=l.useMemo(function(){if(Ie||!er.length)return[Lr,li,Zi,$t,On,li,Zi];var B=er.filter(function(Ht){return Di.find(function(Fn){return Fn.id===Ht})}),Pe=[],dt={},Lt=[],Pt={},$e=[],ut={},zt=function Ht(Fn,Cn,tr){if(Cn===void 0&&(Cn=0),Cn===B.length)return Fn.map(function(Ci){return u({},Ci,{depth:Cn})});var Jn=B[Cn],ei=Ko(Fn,Jn);return Object.entries(ei).map(function(Ci,zi){var co=Ci[0],Xo=Ci[1],Eo=Jn+":"+co,Yo=Ht(Xo,Cn+1,Eo=tr?tr+">"+Eo:Eo),Xn=Cn?ce(Xo,"leafRows"):Xo,fr=function(yr,Rr,ai){var jt={};return Di.forEach(function(Pn){if(B.includes(Pn.id))jt[Pn.id]=Rr[0]?Rr[0].values[Pn.id]:null;else{var nr=typeof Pn.aggregate=="function"?Pn.aggregate:on[Pn.aggregate]||at[Pn.aggregate];if(nr){var Ir=Rr.map(function(Ti){return Ti.values[Pn.id]}),fi=yr.map(function(Ti){var Oe=Ti.values[Pn.id];if(!ai&&Pn.aggregateValue){var pn=typeof Pn.aggregateValue=="function"?Pn.aggregateValue:on[Pn.aggregateValue]||at[Pn.aggregateValue];if(!pn)throw console.info({column:Pn}),new Error("React Table: Invalid column.aggregateValue option for column listed above");Oe=pn(Oe,Ti,Pn)}return Oe});jt[Pn.id]=nr(fi,Ir)}else{if(Pn.aggregate)throw console.info({column:Pn}),new Error("React Table: Invalid column.aggregate option for column listed above");jt[Pn.id]=null}}}),jt}(Xn,Xo,Cn),mr={id:Eo,isGrouped:!0,groupByID:Jn,groupByVal:co,values:fr,subRows:Yo,leafRows:Xn,depth:Cn,index:zi};return Yo.forEach(function(yr){Pe.push(yr),dt[yr.id]=yr,yr.isGrouped?(Lt.push(yr),Pt[yr.id]=yr):($e.push(yr),ut[yr.id]=yr)}),mr})}(Lr);return zt.forEach(function(Ht){Pe.push(Ht),dt[Ht.id]=Ht,Ht.isGrouped?(Lt.push(Ht),Pt[Ht.id]=Ht):($e.push(Ht),ut[Ht.id]=Ht)}),[zt,Pe,dt,Lt,Pt,$e,ut]},[Ie,er,Lr,li,Zi,Di,on,Ko]),Fo=Qi[0],No=Qi[1],Jo=Qi[2],br=Qi[3],Yn=Qi[4],Z=Qi[5],se=Qi[6],G=D(Mi);T(function(){G()&&or({type:v.resetGroupBy})},[or,Ie?null:Dr]),Object.assign(rn,{preGroupedRows:Lr,preGroupedFlatRow:li,preGroupedRowsById:Zi,groupedRows:Fo,groupedFlatRows:No,groupedRowsById:Jo,onlyGroupedFlatRows:br,onlyGroupedRowsById:Yn,nonGroupedFlatRows:Z,nonGroupedRowsById:se,rows:Fo,flatRows:No,rowsById:Jo,toggleGroupBy:Xr,setGroupBy:Jr})}function gn(rn){rn.allCells.forEach(function(Dr){var Lr;Dr.isGrouped=Dr.column.isGrouped&&Dr.column.id===rn.groupByID,Dr.isPlaceholder=!Dr.isGrouped&&Dr.column.isGrouped,Dr.isAggregated=!Dr.isGrouped&&!Dr.isPlaceholder&&((Lr=rn.subRows)==null?void 0:Lr.length)})}function Qt(rn,Dr){return rn.reduce(function(Lr,li,Zi){var Di=""+li.values[Dr];return Lr[Di]=Array.isArray(Lr[Di])?Lr[Di]:[],Lr[Di].push(li),Lr},{})}var Dt=/([0-9]+)/gm;function hn(rn,Dr){return rn===Dr?0:rn>Dr?1:-1}function cn(rn,Dr,Lr){return[rn.values[Lr],Dr.values[Lr]]}function an(rn){return typeof rn=="number"?isNaN(rn)||rn===1/0||rn===-1/0?"":String(rn):typeof rn=="string"?rn:""}var Or=Object.freeze({__proto__:null,alphanumeric:function(rn,Dr,Lr){var li=cn(rn,Dr,Lr),Zi=li[0],Di=li[1];for(Zi=an(Zi),Di=an(Di),Zi=Zi.split(Dt).filter(Boolean),Di=Di.split(Dt).filter(Boolean);Zi.length&&Di.length;){var wo=Zi.shift(),Go=Di.shift(),Ko=parseInt(wo,10),Ie=parseInt(Go,10),yt=[Ko,Ie].sort();if(isNaN(yt[0])){if(wo>Go)return 1;if(Go>wo)return-1}else{if(isNaN(yt[1]))return isNaN(Ko)?-1:1;if(Ko>Ie)return 1;if(Ie>Ko)return-1}}return Zi.length-Di.length},datetime:function(rn,Dr,Lr){var li=cn(rn,Dr,Lr),Zi=li[0],Di=li[1];return hn(Zi=Zi.getTime(),Di=Di.getTime())},basic:function(rn,Dr,Lr){var li=cn(rn,Dr,Lr);return hn(li[0],li[1])},string:function(rn,Dr,Lr){var li=cn(rn,Dr,Lr),Zi=li[0],Di=li[1];for(Zi=Zi.split("").filter(Boolean),Di=Di.split("").filter(Boolean);Zi.length&&Di.length;){var wo=Zi.shift(),Go=Di.shift(),Ko=wo.toLowerCase(),Ie=Go.toLowerCase();if(Ko>Ie)return 1;if(Ie>Ko)return-1;if(wo>Go)return 1;if(Go>wo)return-1}return Zi.length-Di.length},number:function(rn,Dr,Lr){var li=cn(rn,Dr,Lr),Zi=li[0],Di=li[1],wo=/[^0-9.]/gi;return hn(Zi=Number(String(Zi).replace(wo,"")),Di=Number(String(Di).replace(wo,"")))}});v.resetSortBy="resetSortBy",v.setSortBy="setSortBy",v.toggleSortBy="toggleSortBy",v.clearSortBy="clearSortBy",b.sortType="alphanumeric",b.sortDescFirst=!1;var Ln=function(rn){rn.getSortByToggleProps=[En],rn.stateReducers.push(Gn),rn.useInstance.push(rr)};Ln.pluginName="useSortBy";var En=function(rn,Dr){var Lr=Dr.instance,li=Dr.column,Zi=Lr.isMultiSortEvent,Di=Zi===void 0?function(wo){return wo.shiftKey}:Zi;return[rn,{onClick:li.canSort?function(wo){wo.persist(),li.toggleSortBy(void 0,!Lr.disableMultiSort&&Di(wo))}:void 0,style:{cursor:li.canSort?"pointer":void 0},title:li.canSort?"Toggle SortBy":void 0}]};function Gn(rn,Dr,Lr,li){if(Dr.type===v.init)return u({sortBy:[]},rn);if(Dr.type===v.resetSortBy)return u({},rn,{sortBy:li.initialState.sortBy||[]});if(Dr.type===v.clearSortBy)return u({},rn,{sortBy:rn.sortBy.filter(function(ni){return ni.id!==Dr.columnId})});if(Dr.type===v.setSortBy)return u({},rn,{sortBy:Dr.sortBy});if(Dr.type===v.toggleSortBy){var Zi,Di=Dr.columnId,wo=Dr.desc,Go=Dr.multi,Ko=li.allColumns,Ie=li.disableMultiSort,yt=li.disableSortRemove,on=li.disableMultiRemove,_n=li.maxMultiSortColCount,er=_n===void 0?Number.MAX_SAFE_INTEGER:_n,or=rn.sortBy,Er=Ko.find(function(ni){return ni.id===Di}).sortDescFirst,Mi=or.find(function(ni){return ni.id===Di}),Ui=or.findIndex(function(ni){return ni.id===Di}),Nn=wo!=null,cr=[];return(Zi=!Ie&&Go?Mi?"toggle":"add":Ui!==or.length-1||or.length!==1?"replace":Mi?"toggle":"replace")!="toggle"||yt||Nn||Go&&on||!(Mi&&Mi.desc&&!Er||!Mi.desc&&Er)||(Zi="remove"),Zi==="replace"?cr=[{id:Di,desc:Nn?wo:Er}]:Zi==="add"?(cr=[].concat(or,[{id:Di,desc:Nn?wo:Er}])).splice(0,cr.length-er):Zi==="toggle"?cr=or.map(function(ni){return ni.id===Di?u({},ni,{desc:Nn?wo:!Mi.desc}):ni}):Zi==="remove"&&(cr=or.filter(function(ni){return ni.id!==Di})),u({},rn,{sortBy:cr})}}function rr(rn){var Dr=rn.data,Lr=rn.rows,li=rn.flatRows,Zi=rn.allColumns,Di=rn.orderByFn,wo=Di===void 0?sr:Di,Go=rn.sortTypes,Ko=rn.manualSortBy,Ie=rn.defaultCanSort,yt=rn.disableSortBy,on=rn.flatHeaders,_n=rn.state.sortBy,er=rn.dispatch,or=rn.plugins,Er=rn.getHooks,Mi=rn.autoResetSortBy,Ui=Mi===void 0||Mi;R(or,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var Nn=l.useCallback(function(No){er({type:v.setSortBy,sortBy:No})},[er]),cr=l.useCallback(function(No,Jo,br){er({type:v.toggleSortBy,columnId:No,desc:Jo,multi:br})},[er]),ni=D(rn);on.forEach(function(No){var Jo=No.accessor,br=No.canSort,Yn=No.disableSortBy,Z=No.id,se=Jo?fe(Yn!==!0&&void 0,yt!==!0&&void 0,!0):fe(Ie,br,!1);No.canSort=se,No.canSort&&(No.toggleSortBy=function(B,Pe){return cr(No.id,B,Pe)},No.clearSortBy=function(){er({type:v.clearSortBy,columnId:No.id})}),No.getSortByToggleProps=w(Er().getSortByToggleProps,{instance:ni(),column:No});var G=_n.find(function(B){return B.id===Z});No.isSorted=!!G,No.sortedIndex=_n.findIndex(function(B){return B.id===Z}),No.isSortedDesc=No.isSorted?G.desc:void 0});var Xr=l.useMemo(function(){if(Ko||!_n.length)return[Lr,li];var No=[],Jo=_n.filter(function(br){return Zi.find(function(Yn){return Yn.id===br.id})});return[function br(Yn){var Z=wo(Yn,Jo.map(function(se){var G=Zi.find(function(dt){return dt.id===se.id});if(!G)throw new Error("React-Table: Could not find a column with id: "+se.id+" while sorting");var B=G.sortType,Pe=ve(B)||(Go||{})[B]||Or[B];if(!Pe)throw new Error("React-Table: Could not find a valid sortType of '"+B+"' for column '"+se.id+"'.");return function(dt,Lt){return Pe(dt,Lt,se.id,se.desc)}}),Jo.map(function(se){var G=Zi.find(function(B){return B.id===se.id});return G&&G.sortInverted?se.desc:!se.desc}));return Z.forEach(function(se){No.push(se),se.subRows&&se.subRows.length!==0&&(se.subRows=br(se.subRows))}),Z}(Lr),No]},[Ko,_n,Lr,li,Zi,wo,Go]),Jr=Xr[0],Qi=Xr[1],Fo=D(Ui);T(function(){Fo()&&er({type:v.resetSortBy})},[Ko?null:Dr]),Object.assign(rn,{preSortedRows:Lr,preSortedFlatRows:li,sortedRows:Jr,sortedFlatRows:Qi,rows:Jr,flatRows:Qi,setSortBy:Nn,toggleSortBy:cr})}function sr(rn,Dr,Lr){return[].concat(rn).sort(function(li,Zi){for(var Di=0;Di<Dr.length;Di+=1){var wo=Dr[Di],Go=Lr[Di]===!1||Lr[Di]==="desc",Ko=wo(li,Zi);if(Ko!==0)return Go?-Ko:Ko}return Lr[0]?li.index-Zi.index:Zi.index-li.index})}v.resetPage="resetPage",v.gotoPage="gotoPage",v.setPageSize="setPageSize";var pi=function(rn){rn.stateReducers.push(yi),rn.useInstance.push(jr)};function yi(rn,Dr,Lr,li){if(Dr.type===v.init)return u({pageSize:10,pageIndex:0},rn);if(Dr.type===v.resetPage)return u({},rn,{pageIndex:li.initialState.pageIndex||0});if(Dr.type===v.gotoPage){var Zi=li.pageCount,Di=li.page,wo=M(Dr.pageIndex,rn.pageIndex),Go=!1;return wo>rn.pageIndex?Go=Zi===-1?Di.length>=rn.pageSize:wo<Zi:wo<rn.pageIndex&&(Go=wo>-1),Go?u({},rn,{pageIndex:wo}):rn}if(Dr.type===v.setPageSize){var Ko=Dr.pageSize,Ie=rn.pageSize*rn.pageIndex;return u({},rn,{pageIndex:Math.floor(Ie/Ko),pageSize:Ko})}}function jr(rn){var Dr=rn.rows,Lr=rn.autoResetPage,li=Lr===void 0||Lr,Zi=rn.manualExpandedKey,Di=Zi===void 0?"expanded":Zi,wo=rn.plugins,Go=rn.pageCount,Ko=rn.paginateExpandedRows,Ie=Ko===void 0||Ko,yt=rn.expandSubRows,on=yt===void 0||yt,_n=rn.state,er=_n.pageSize,or=_n.pageIndex,Er=_n.expanded,Mi=_n.globalFilter,Ui=_n.filters,Nn=_n.groupBy,cr=_n.sortBy,ni=rn.dispatch,Xr=rn.data,Jr=rn.manualPagination;R(wo,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var Qi=D(li);T(function(){Qi()&&ni({type:v.resetPage})},[ni,Jr?null:Xr,Mi,Ui,Nn,cr]);var Fo=Jr?Go:Math.ceil(Dr.length/er),No=l.useMemo(function(){return Fo>0?[].concat(new Array(Fo)).fill(null).map(function(Pe,dt){return dt}):[]},[Fo]),Jo=l.useMemo(function(){var Pe;if(Jr)Pe=Dr;else{var dt=er*or,Lt=dt+er;Pe=Dr.slice(dt,Lt)}return Ie?Pe:oe(Pe,{manualExpandedKey:Di,expanded:Er,expandSubRows:on})},[on,Er,Di,Jr,or,er,Ie,Dr]),br=or>0,Yn=Fo===-1?Jo.length>=er:or<Fo-1,Z=l.useCallback(function(Pe){ni({type:v.gotoPage,pageIndex:Pe})},[ni]),se=l.useCallback(function(){return Z(function(Pe){return Pe-1})},[Z]),G=l.useCallback(function(){return Z(function(Pe){return Pe+1})},[Z]),B=l.useCallback(function(Pe){ni({type:v.setPageSize,pageSize:Pe})},[ni]);Object.assign(rn,{pageOptions:No,pageCount:Fo,page:Jo,canPreviousPage:br,canNextPage:Yn,gotoPage:Z,previousPage:se,nextPage:G,setPageSize:B})}pi.pluginName="usePagination",v.resetPivot="resetPivot",v.togglePivot="togglePivot";var ui=function(rn){rn.getPivotToggleProps=[ri],rn.stateReducers.push(hi),rn.useInstanceAfterData.push(Si),rn.allColumns.push(Kr),rn.accessValue.push(xi),rn.materializedColumns.push(Ai),rn.materializedColumnsDeps.push(Pi),rn.visibleColumns.push(io),rn.visibleColumnsDeps.push(lo),rn.useInstance.push(Gr),rn.prepareRow.push(un)};ui.pluginName="usePivotColumns";var bi=[],ri=function(rn,Dr){var Lr=Dr.header;return[rn,{onClick:Lr.canPivot?function(li){li.persist(),Lr.togglePivot()}:void 0,style:{cursor:Lr.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function hi(rn,Dr,Lr,li){if(Dr.type===v.init)return u({pivotColumns:bi},rn);if(Dr.type===v.resetPivot)return u({},rn,{pivotColumns:li.initialState.pivotColumns||bi});if(Dr.type===v.togglePivot){var Zi=Dr.columnId,Di=Dr.value,wo=Di!==void 0?Di:!rn.pivotColumns.includes(Zi);return u({},rn,wo?{pivotColumns:[].concat(rn.pivotColumns,[Zi])}:{pivotColumns:rn.pivotColumns.filter(function(Go){return Go!==Zi})})}}function Si(rn){rn.allColumns.forEach(function(Dr){Dr.isPivotSource=rn.state.pivotColumns.includes(Dr.id)})}function Kr(rn,Dr){var Lr=Dr.instance;return rn.forEach(function(li){li.isPivotSource=Lr.state.pivotColumns.includes(li.id),li.uniqueValues=new Set}),rn}function xi(rn,Dr){var Lr=Dr.column;return Lr.uniqueValues&&rn!==void 0&&Lr.uniqueValues.add(rn),rn}function Ai(rn,Dr){var Lr=Dr.instance,li=Lr.allColumns,Zi=Lr.state;if(!Zi.pivotColumns.length||!Zi.groupBy||!Zi.groupBy.length)return rn;var Di=Zi.pivotColumns.map(function(Ko){return li.find(function(Ie){return Ie.id===Ko})}).filter(Boolean),wo=li.filter(function(Ko){return!Ko.isPivotSource&&!Zi.groupBy.includes(Ko.id)&&!Zi.pivotColumns.includes(Ko.id)}),Go=_(function Ko(Ie,yt,on){Ie===void 0&&(Ie=0),on===void 0&&(on=[]);var _n=Di[Ie];return _n?Array.from(_n.uniqueValues).sort().map(function(er){var or=u({},_n,{Header:_n.PivotHeader||typeof _n.header=="string"?_n.Header+": "+er:er,isPivotGroup:!0,parent:yt,depth:Ie,id:yt?yt.id+"."+_n.id+"."+er:_n.id+"."+er,pivotValue:er});return or.columns=Ko(Ie+1,or,[].concat(on,[function(Er){return Er.values[_n.id]===er}])),or}):wo.map(function(er){return u({},er,{canPivot:!1,isPivoted:!0,parent:yt,depth:Ie,id:""+(yt?yt.id+"."+er.id:er.id),accessor:function(or,Er,Mi){if(on.every(function(Ui){return Ui(Mi)}))return Mi.values[er.id]}})})}());return[].concat(rn,Go)}function Pi(rn,Dr){var Lr=Dr.instance.state,li=Lr.pivotColumns,Zi=Lr.groupBy;return[].concat(rn,[li,Zi])}function io(rn,Dr){var Lr=Dr.instance.state;return rn=rn.filter(function(li){return!li.isPivotSource}),Lr.pivotColumns.length&&Lr.groupBy&&Lr.groupBy.length&&(rn=rn.filter(function(li){return li.isGrouped||li.isPivoted})),rn}function lo(rn,Dr){var Lr=Dr.instance;return[].concat(rn,[Lr.state.pivotColumns,Lr.state.groupBy])}function Gr(rn){var Dr=rn.columns,Lr=rn.allColumns,li=rn.flatHeaders,Zi=rn.getHooks,Di=rn.plugins,wo=rn.dispatch,Go=rn.autoResetPivot,Ko=Go===void 0||Go,Ie=rn.manaulPivot,yt=rn.disablePivot,on=rn.defaultCanPivot;R(Di,["useGroupBy"],"usePivotColumns");var _n=D(rn);Lr.forEach(function(or){var Er=or.accessor,Mi=or.defaultPivot,Ui=or.disablePivot;or.canPivot=Er?fe(or.canPivot,Ui!==!0&&void 0,yt!==!0&&void 0,!0):fe(or.canPivot,Mi,on,!1),or.canPivot&&(or.togglePivot=function(){return rn.togglePivot(or.id)}),or.Aggregated=or.Aggregated||or.Cell}),li.forEach(function(or){or.getPivotToggleProps=w(Zi().getPivotToggleProps,{instance:_n(),header:or})});var er=D(Ko);T(function(){er()&&wo({type:v.resetPivot})},[wo,Ie?null:Dr]),Object.assign(rn,{togglePivot:function(or,Er){wo({type:v.togglePivot,columnId:or,value:Er})}})}function un(rn){rn.allCells.forEach(function(Dr){Dr.isPivoted=Dr.column.isPivoted})}v.resetSelectedRows="resetSelectedRows",v.toggleAllRowsSelected="toggleAllRowsSelected",v.toggleRowSelected="toggleRowSelected",v.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var qn=function(rn){rn.getToggleRowSelectedProps=[kn],rn.getToggleAllRowsSelectedProps=[St],rn.getToggleAllPageRowsSelectedProps=[ln],rn.stateReducers.push(An),rn.useInstance.push(Cr),rn.prepareRow.push(_i)};qn.pluginName="useRowSelect";var kn=function(rn,Dr){var Lr=Dr.instance,li=Dr.row,Zi=Lr.manualRowSelectedKey,Di=Zi===void 0?"isSelected":Zi;return[rn,{onChange:function(wo){li.toggleRowSelected(wo.target.checked)},style:{cursor:"pointer"},checked:!(!li.original||!li.original[Di])||li.isSelected,title:"Toggle Row Selected",indeterminate:li.isSomeSelected}]},St=function(rn,Dr){var Lr=Dr.instance;return[rn,{onChange:function(li){Lr.toggleAllRowsSelected(li.target.checked)},style:{cursor:"pointer"},checked:Lr.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:!!(!Lr.isAllRowsSelected&&Object.keys(Lr.state.selectedRowIds).length)}]},ln=function(rn,Dr){var Lr=Dr.instance;return[rn,{onChange:function(li){Lr.toggleAllPageRowsSelected(li.target.checked)},style:{cursor:"pointer"},checked:Lr.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:!!(!Lr.isAllPageRowsSelected&&Lr.page.some(function(li){var Zi=li.id;return Lr.state.selectedRowIds[Zi]}))}]};function An(rn,Dr,Lr,li){if(Dr.type===v.init)return u({selectedRowIds:{}},rn);if(Dr.type===v.resetSelectedRows)return u({},rn,{selectedRowIds:li.initialState.selectedRowIds||{}});if(Dr.type===v.toggleAllRowsSelected){var Zi=Dr.value,Di=li.isAllRowsSelected,wo=li.rowsById,Go=li.nonGroupedRowsById,Ko=Go===void 0?wo:Go,Ie=Zi!==void 0?Zi:!Di,yt=Object.assign({},rn.selectedRowIds);return Ie?Object.keys(Ko).forEach(function(Z){yt[Z]=!0}):Object.keys(Ko).forEach(function(Z){delete yt[Z]}),u({},rn,{selectedRowIds:yt})}if(Dr.type===v.toggleRowSelected){var on=Dr.id,_n=Dr.value,er=li.rowsById,or=li.selectSubRows,Er=or===void 0||or,Mi=li.getSubRows,Ui=rn.selectedRowIds[on],Nn=_n!==void 0?_n:!Ui;if(Ui===Nn)return rn;var cr=u({},rn.selectedRowIds);return function Z(se){var G=er[se];if(G&&(G.isGrouped||(Nn?cr[se]=!0:delete cr[se]),Er&&Mi(G)))return Mi(G).forEach(function(B){return Z(B.id)})}(on),u({},rn,{selectedRowIds:cr})}if(Dr.type===v.toggleAllPageRowsSelected){var ni=Dr.value,Xr=li.page,Jr=li.rowsById,Qi=li.selectSubRows,Fo=Qi===void 0||Qi,No=li.isAllPageRowsSelected,Jo=li.getSubRows,br=ni!==void 0?ni:!No,Yn=u({},rn.selectedRowIds);return Xr.forEach(function(Z){return function se(G){var B=Jr[G];if(B.isGrouped||(br?Yn[G]=!0:delete Yn[G]),Fo&&Jo(B))return Jo(B).forEach(function(Pe){return se(Pe.id)})}(Z.id)}),u({},rn,{selectedRowIds:Yn})}return rn}function Cr(rn){var Dr=rn.data,Lr=rn.rows,li=rn.getHooks,Zi=rn.plugins,Di=rn.rowsById,wo=rn.nonGroupedRowsById,Go=wo===void 0?Di:wo,Ko=rn.autoResetSelectedRows,Ie=Ko===void 0||Ko,yt=rn.state.selectedRowIds,on=rn.selectSubRows,_n=on===void 0||on,er=rn.dispatch,or=rn.page,Er=rn.getSubRows;R(Zi,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var Mi=l.useMemo(function(){var Jo=[];return Lr.forEach(function(br){var Yn=_n?function Z(se,G,B){if(G[se.id])return!0;var Pe=B(se);if(Pe&&Pe.length){var dt=!0,Lt=!1;return Pe.forEach(function(Pt){Lt&&!dt||(Z(Pt,G,B)?Lt=!0:dt=!1)}),!!dt||!!Lt&&null}return!1}(br,yt,Er):!!yt[br.id];br.isSelected=!!Yn,br.isSomeSelected=Yn===null,Yn&&Jo.push(br)}),Jo},[Lr,_n,yt,Er]),Ui=!!(Object.keys(Go).length&&Object.keys(yt).length),Nn=Ui;Ui&&Object.keys(Go).some(function(Jo){return!yt[Jo]})&&(Ui=!1),Ui||or&&or.length&&or.some(function(Jo){var br=Jo.id;return!yt[br]})&&(Nn=!1);var cr=D(Ie);T(function(){cr()&&er({type:v.resetSelectedRows})},[er,Dr]);var ni=l.useCallback(function(Jo){return er({type:v.toggleAllRowsSelected,value:Jo})},[er]),Xr=l.useCallback(function(Jo){return er({type:v.toggleAllPageRowsSelected,value:Jo})},[er]),Jr=l.useCallback(function(Jo,br){return er({type:v.toggleRowSelected,id:Jo,value:br})},[er]),Qi=D(rn),Fo=w(li().getToggleAllRowsSelectedProps,{instance:Qi()}),No=w(li().getToggleAllPageRowsSelectedProps,{instance:Qi()});Object.assign(rn,{selectedFlatRows:Mi,isAllRowsSelected:Ui,isAllPageRowsSelected:Nn,toggleRowSelected:Jr,toggleAllRowsSelected:ni,getToggleAllRowsSelectedProps:Fo,getToggleAllPageRowsSelectedProps:No,toggleAllPageRowsSelected:Xr})}function _i(rn,Dr){var Lr=Dr.instance;rn.toggleRowSelected=function(li){return Lr.toggleRowSelected(rn.id,li)},rn.getToggleRowSelectedProps=w(Lr.getHooks().getToggleRowSelectedProps,{instance:Lr,row:rn})}var Sn=function(rn){return{}},ir=function(rn){return{}};v.setRowState="setRowState",v.setCellState="setCellState",v.resetRowState="resetRowState";var mt=function(rn){rn.stateReducers.push(fn),rn.useInstance.push(gt),rn.prepareRow.push(tn)};function fn(rn,Dr,Lr,li){var Zi=li.initialRowStateAccessor,Di=Zi===void 0?Sn:Zi,wo=li.initialCellStateAccessor,Go=wo===void 0?ir:wo,Ko=li.rowsById;if(Dr.type===v.init)return u({rowState:{}},rn);if(Dr.type===v.resetRowState)return u({},rn,{rowState:li.initialState.rowState||{}});if(Dr.type===v.setRowState){var Ie,yt=Dr.rowId,on=Dr.value,_n=rn.rowState[yt]!==void 0?rn.rowState[yt]:Di(Ko[yt]);return u({},rn,{rowState:u({},rn.rowState,(Ie={},Ie[yt]=M(on,_n),Ie))})}if(Dr.type===v.setCellState){var er,or,Er,Mi,Ui,Nn=Dr.rowId,cr=Dr.columnId,ni=Dr.value,Xr=rn.rowState[Nn]!==void 0?rn.rowState[Nn]:Di(Ko[Nn]),Jr=(Xr==null||(er=Xr.cellState)==null?void 0:er[cr])!==void 0?Xr.cellState[cr]:Go((or=Ko[Nn])==null||(Er=or.cells)==null?void 0:Er.find(function(Qi){return Qi.column.id===cr}));return u({},rn,{rowState:u({},rn.rowState,(Ui={},Ui[Nn]=u({},Xr,{cellState:u({},Xr.cellState||{},(Mi={},Mi[cr]=M(ni,Jr),Mi))}),Ui))})}}function gt(rn){var Dr=rn.autoResetRowState,Lr=Dr===void 0||Dr,li=rn.data,Zi=rn.dispatch,Di=l.useCallback(function(Ko,Ie){return Zi({type:v.setRowState,rowId:Ko,value:Ie})},[Zi]),wo=l.useCallback(function(Ko,Ie,yt){return Zi({type:v.setCellState,rowId:Ko,columnId:Ie,value:yt})},[Zi]),Go=D(Lr);T(function(){Go()&&Zi({type:v.resetRowState})},[li]),Object.assign(rn,{setRowState:Di,setCellState:wo})}function tn(rn,Dr){var Lr=Dr.instance,li=Lr.initialRowStateAccessor,Zi=li===void 0?Sn:li,Di=Lr.initialCellStateAccessor,wo=Di===void 0?ir:Di,Go=Lr.state.rowState;rn&&(rn.state=Go[rn.id]!==void 0?Go[rn.id]:Zi(rn),rn.setState=function(Ko){return Lr.setRowState(rn.id,Ko)},rn.cells.forEach(function(Ko){rn.state.cellState||(rn.state.cellState={}),Ko.state=rn.state.cellState[Ko.column.id]!==void 0?rn.state.cellState[Ko.column.id]:wo(Ko),Ko.setState=function(Ie){return Lr.setCellState(rn.id,Ko.column.id,Ie)}}))}mt.pluginName="useRowState",v.resetColumnOrder="resetColumnOrder",v.setColumnOrder="setColumnOrder";var Vn=function(rn){rn.stateReducers.push(Ur),rn.visibleColumnsDeps.push(function(Dr,Lr){var li=Lr.instance;return[].concat(Dr,[li.state.columnOrder])}),rn.visibleColumns.push($r),rn.useInstance.push(Pr)};function Ur(rn,Dr,Lr,li){return Dr.type===v.init?u({columnOrder:[]},rn):Dr.type===v.resetColumnOrder?u({},rn,{columnOrder:li.initialState.columnOrder||[]}):Dr.type===v.setColumnOrder?u({},rn,{columnOrder:M(Dr.columnOrder,rn.columnOrder)}):void 0}function $r(rn,Dr){var Lr=Dr.instance.state.columnOrder;if(!Lr||!Lr.length)return rn;for(var li=[].concat(Lr),Zi=[].concat(rn),Di=[],wo=function(){var Go=li.shift(),Ko=Zi.findIndex(function(Ie){return Ie.id===Go});Ko>-1&&Di.push(Zi.splice(Ko,1)[0])};Zi.length&&li.length;)wo();return[].concat(Di,Zi)}function Pr(rn){var Dr=rn.dispatch;rn.setColumnOrder=l.useCallback(function(Lr){return Dr({type:v.setColumnOrder,columnOrder:Lr})},[Dr])}Vn.pluginName="useColumnOrder",b.canResize=!0,v.columnStartResizing="columnStartResizing",v.columnResizing="columnResizing",v.columnDoneResizing="columnDoneResizing",v.resetResize="resetResize";var zr=function(rn){rn.getResizerProps=[gi],rn.getHeaderProps.push({style:{position:"relative"}}),rn.stateReducers.push($i),rn.useInstance.push(ki),rn.useInstanceBeforeDimensions.push(eo)},gi=function(rn,Dr){var Lr=Dr.instance,li=Dr.header,Zi=Lr.dispatch,Di=function(wo,Go){var Ko=!1;if(wo.type==="touchstart"){if(wo.touches&&wo.touches.length>1)return;Ko=!0}var Ie,yt,on=function(cr){var ni=[];return function Xr(Jr){Jr.columns&&Jr.columns.length&&Jr.columns.map(Xr),ni.push(Jr)}(cr),ni}(Go).map(function(cr){return[cr.id,cr.totalWidth]}),_n=Ko?Math.round(wo.touches[0].clientX):wo.clientX,er=function(){window.cancelAnimationFrame(Ie),Ie=null,Zi({type:v.columnDoneResizing})},or=function(){window.cancelAnimationFrame(Ie),Ie=null,Zi({type:v.columnResizing,clientX:yt})},Er=function(cr){yt=cr,Ie||(Ie=window.requestAnimationFrame(or))},Mi={mouse:{moveEvent:"mousemove",moveHandler:function(cr){return Er(cr.clientX)},upEvent:"mouseup",upHandler:function(cr){document.removeEventListener("mousemove",Mi.mouse.moveHandler),document.removeEventListener("mouseup",Mi.mouse.upHandler),er()}},touch:{moveEvent:"touchmove",moveHandler:function(cr){return cr.cancelable&&(cr.preventDefault(),cr.stopPropagation()),Er(cr.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(cr){document.removeEventListener(Mi.touch.moveEvent,Mi.touch.moveHandler),document.removeEventListener(Mi.touch.upEvent,Mi.touch.moveHandler),er()}}},Ui=Ko?Mi.touch:Mi.mouse,Nn=!!function(){if(typeof Q=="boolean")return Q;var cr=!1;try{var ni={get passive(){return cr=!0,!1}};window.addEventListener("test",null,ni),window.removeEventListener("test",null,ni)}catch{cr=!1}return Q=cr}()&&{passive:!1};document.addEventListener(Ui.moveEvent,Ui.moveHandler,Nn),document.addEventListener(Ui.upEvent,Ui.upHandler,Nn),Zi({type:v.columnStartResizing,columnId:Go.id,columnWidth:Go.totalWidth,headerIdWidths:on,clientX:_n})};return[rn,{onMouseDown:function(wo){return wo.persist()||Di(wo,li)},onTouchStart:function(wo){return wo.persist()||Di(wo,li)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function $i(rn,Dr){if(Dr.type===v.init)return u({columnResizing:{columnWidths:{}}},rn);if(Dr.type===v.resetResize)return u({},rn,{columnResizing:{columnWidths:{}}});if(Dr.type===v.columnStartResizing){var Lr=Dr.clientX,li=Dr.columnId,Zi=Dr.columnWidth,Di=Dr.headerIdWidths;return u({},rn,{columnResizing:u({},rn.columnResizing,{startX:Lr,headerIdWidths:Di,columnWidth:Zi,isResizingColumn:li})})}if(Dr.type===v.columnResizing){var wo=Dr.clientX,Go=rn.columnResizing,Ko=Go.startX,Ie=Go.columnWidth,yt=Go.headerIdWidths,on=(wo-Ko)/Ie,_n={};return(yt===void 0?[]:yt).forEach(function(er){var or=er[0],Er=er[1];_n[or]=Math.max(Er+Er*on,0)}),u({},rn,{columnResizing:u({},rn.columnResizing,{columnWidths:u({},rn.columnResizing.columnWidths,{},_n)})})}return Dr.type===v.columnDoneResizing?u({},rn,{columnResizing:u({},rn.columnResizing,{startX:null,isResizingColumn:null})}):void 0}zr.pluginName="useResizeColumns";var eo=function(rn){var Dr=rn.flatHeaders,Lr=rn.disableResizing,li=rn.getHooks,Zi=rn.state.columnResizing,Di=D(rn);Dr.forEach(function(wo){var Go=fe(wo.disableResizing!==!0&&void 0,Lr!==!0&&void 0,!0);wo.canResize=Go,wo.width=Zi.columnWidths[wo.id]||wo.originalWidth||wo.width,wo.isResizing=Zi.isResizingColumn===wo.id,Go&&(wo.getResizerProps=w(li().getResizerProps,{instance:Di(),header:wo}))})};function ki(rn){var Dr=rn.plugins,Lr=rn.dispatch,li=rn.autoResetResize,Zi=li===void 0||li,Di=rn.columns;R(Dr,["useAbsoluteLayout"],"useResizeColumns");var wo=D(Zi);T(function(){wo()&&Lr({type:v.resetResize})},[Di]);var Go=l.useCallback(function(){return Lr({type:v.resetResize})},[Lr]);Object.assign(rn,{resetResizing:Go})}var so={position:"absolute",top:0},Ho=function(rn){rn.getTableBodyProps.push(ra),rn.getRowProps.push(ra),rn.getHeaderGroupProps.push(ra),rn.getFooterGroupProps.push(ra),rn.getHeaderProps.push(function(Dr,Lr){var li=Lr.column;return[Dr,{style:u({},so,{left:li.totalLeft+"px",width:li.totalWidth+"px"})}]}),rn.getCellProps.push(function(Dr,Lr){var li=Lr.cell;return[Dr,{style:u({},so,{left:li.column.totalLeft+"px",width:li.column.totalWidth+"px"})}]}),rn.getFooterProps.push(function(Dr,Lr){var li=Lr.column;return[Dr,{style:u({},so,{left:li.totalLeft+"px",width:li.totalWidth+"px"})}]})};Ho.pluginName="useAbsoluteLayout";var ra=function(rn,Dr){return[rn,{style:{position:"relative",width:Dr.instance.totalColumnsWidth+"px"}}]},So={display:"inline-block",boxSizing:"border-box"},gr=function(rn,Dr){return[rn,{style:{display:"flex",width:Dr.instance.totalColumnsWidth+"px"}}]},di=function(rn){rn.getRowProps.push(gr),rn.getHeaderGroupProps.push(gr),rn.getFooterGroupProps.push(gr),rn.getHeaderProps.push(function(Dr,Lr){var li=Lr.column;return[Dr,{style:u({},So,{width:li.totalWidth+"px"})}]}),rn.getCellProps.push(function(Dr,Lr){var li=Lr.cell;return[Dr,{style:u({},So,{width:li.column.totalWidth+"px"})}]}),rn.getFooterProps.push(function(Dr,Lr){var li=Lr.column;return[Dr,{style:u({},So,{width:li.totalWidth+"px"})}]})};function Vi(rn){rn.getTableProps.push(Ro),rn.getRowProps.push(na),rn.getHeaderGroupProps.push(na),rn.getFooterGroupProps.push(na),rn.getHeaderProps.push(ta),rn.getCellProps.push(aa),rn.getFooterProps.push(vi)}di.pluginName="useBlockLayout",Vi.pluginName="useFlexLayout";var Ro=function(rn,Dr){return[rn,{style:{minWidth:Dr.instance.totalColumnsMinWidth+"px"}}]},na=function(rn,Dr){return[rn,{style:{display:"flex",flex:"1 0 auto",minWidth:Dr.instance.totalColumnsMinWidth+"px"}}]},ta=function(rn,Dr){var Lr=Dr.column;return[rn,{style:{boxSizing:"border-box",flex:Lr.totalFlexWidth?Lr.totalFlexWidth+" 0 auto":void 0,minWidth:Lr.totalMinWidth+"px",width:Lr.totalWidth+"px"}}]},aa=function(rn,Dr){var Lr=Dr.cell;return[rn,{style:{boxSizing:"border-box",flex:Lr.column.totalFlexWidth+" 0 auto",minWidth:Lr.column.totalMinWidth+"px",width:Lr.column.totalWidth+"px"}}]},vi=function(rn,Dr){var Lr=Dr.column;return[rn,{style:{boxSizing:"border-box",flex:Lr.totalFlexWidth?Lr.totalFlexWidth+" 0 auto":void 0,minWidth:Lr.totalMinWidth+"px",width:Lr.totalWidth+"px"}}]};function to(rn){rn.stateReducers.push(ro),rn.getTableProps.push($o),rn.getHeaderProps.push(ja),rn.getRowProps.push(hs)}v.columnStartResizing="columnStartResizing",v.columnResizing="columnResizing",v.columnDoneResizing="columnDoneResizing",v.resetResize="resetResize",to.pluginName="useGridLayout";var $o=function(rn,Dr){var Lr=Dr.instance;return[rn,{style:{display:"grid",gridTemplateColumns:Lr.visibleColumns.map(function(li){var Zi;return Lr.state.gridLayout.columnWidths[li.id]?Lr.state.gridLayout.columnWidths[li.id]+"px":(Zi=Lr.state.columnResizing)!=null&&Zi.isResizingColumn?Lr.state.gridLayout.startWidths[li.id]+"px":typeof li.width=="number"?li.width+"px":li.width}).join(" ")}}]},ja=function(rn,Dr){var Lr=Dr.column;return[rn,{id:"header-cell-"+Lr.id,style:{position:"sticky",gridColumn:"span "+Lr.totalVisibleHeaderCount}}]},hs=function(rn,Dr){var Lr=Dr.row;return Lr.isExpanded?[rn,{style:{gridColumn:"1 / "+(Lr.cells.length+1)}}]:[rn,{}]};function ro(rn,Dr,Lr,li){if(Dr.type===v.init)return u({gridLayout:{columnWidths:{}}},rn);if(Dr.type===v.resetResize)return u({},rn,{gridLayout:{columnWidths:{}}});if(Dr.type===v.columnStartResizing){var Zi=Dr.columnId,Di=Dr.headerIdWidths,wo=as(Zi);if(wo!==void 0){var Go=li.visibleColumns.reduce(function(ni,Xr){var Jr;return u({},ni,((Jr={})[Xr.id]=as(Xr.id),Jr))},{}),Ko=li.visibleColumns.reduce(function(ni,Xr){var Jr;return u({},ni,((Jr={})[Xr.id]=Xr.minWidth,Jr))},{}),Ie=li.visibleColumns.reduce(function(ni,Xr){var Jr;return u({},ni,((Jr={})[Xr.id]=Xr.maxWidth,Jr))},{}),yt=Di.map(function(ni){var Xr=ni[0];return[Xr,as(Xr)]});return u({},rn,{gridLayout:u({},rn.gridLayout,{startWidths:Go,minWidths:Ko,maxWidths:Ie,headerIdGridWidths:yt,columnWidth:wo})})}return rn}if(Dr.type===v.columnResizing){var on=Dr.clientX,_n=rn.columnResizing.startX,er=rn.gridLayout,or=er.columnWidth,Er=er.minWidths,Mi=er.maxWidths,Ui=er.headerIdGridWidths,Nn=(on-_n)/or,cr={};return(Ui===void 0?[]:Ui).forEach(function(ni){var Xr=ni[0],Jr=ni[1];cr[Xr]=Math.min(Math.max(Er[Xr],Jr+Jr*Nn),Mi[Xr])}),u({},rn,{gridLayout:u({},rn.gridLayout,{columnWidths:u({},rn.gridLayout.columnWidths,{},cr)})})}return Dr.type===v.columnDoneResizing?u({},rn,{gridLayout:u({},rn.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function as(rn){var Dr,Lr=(Dr=document.getElementById("header-cell-"+rn))==null?void 0:Dr.offsetWidth;if(Lr!==void 0)return Lr}i._UNSTABLE_usePivotColumns=ui,i.actions=v,i.defaultColumn=b,i.defaultGroupByFn=Qt,i.defaultOrderByFn=sr,i.defaultRenderer=h,i.emptyRenderer=d,i.ensurePluginOrder=R,i.flexRender=j,i.functionalUpdate=M,i.loopHooks=O,i.makePropGetter=w,i.makeRenderer=A,i.reduceHooks=S,i.safeUseLayoutEffect=P,i.useAbsoluteLayout=Ho,i.useAsyncDebounce=function(rn,Dr){Dr===void 0&&(Dr=0);var Lr=l.useRef({}),li=D(rn),Zi=D(Dr);return l.useCallback(function(){var Di=m(regeneratorRuntime.mark(function wo(){var Go,Ko,Ie,yt=arguments;return regeneratorRuntime.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:for(Go=yt.length,Ko=new Array(Go),Ie=0;Ie<Go;Ie++)Ko[Ie]=yt[Ie];return Lr.current.promise||(Lr.current.promise=new Promise(function(_n,er){Lr.current.resolve=_n,Lr.current.reject=er})),Lr.current.timeout&&clearTimeout(Lr.current.timeout),Lr.current.timeout=setTimeout(m(regeneratorRuntime.mark(function _n(){return regeneratorRuntime.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return delete Lr.current.timeout,er.prev=1,er.t0=Lr.current,er.next=5,li().apply(void 0,Ko);case 5:er.t1=er.sent,er.t0.resolve.call(er.t0,er.t1),er.next=12;break;case 9:er.prev=9,er.t2=er.catch(1),Lr.current.reject(er.t2);case 12:return er.prev=12,delete Lr.current.promise,er.finish(12);case 15:case"end":return er.stop()}},_n,null,[[1,9,12,15]])})),Zi()),on.abrupt("return",Lr.current.promise);case 5:case"end":return on.stop()}},wo)}));return function(){return Di.apply(this,arguments)}}(),[li,Zi])},i.useBlockLayout=di,i.useColumnOrder=Vn,i.useExpanded=et,i.useFilters=ge,i.useFlexLayout=Vi,i.useGetLatest=D,i.useGlobalFilter=Qe,i.useGridLayout=to,i.useGroupBy=Ct,i.useMountedLayoutEffect=T,i.usePagination=pi,i.useResizeColumns=zr,i.useRowSelect=qn,i.useRowState=mt,i.useSortBy=Ln,i.useTable=function(rn){for(var Dr=arguments.length,Lr=new Array(Dr>1?Dr-1:0),li=1;li<Dr;li++)Lr[li-1]=arguments[li];rn=Ke(rn),Lr=[pt].concat(Lr);var Zi=l.useRef({}),Di=D(Zi.current);Object.assign(Di(),u({},rn,{plugins:Lr,hooks:Tt()})),Lr.filter(Boolean).forEach(function(Pt){Pt(Di().hooks)});var wo=D(Di().hooks);Di().getHooks=wo,delete Di().hooks,Object.assign(Di(),S(wo().useOptions,Ke(rn)));var Go=Di(),Ko=Go.data,Ie=Go.columns,yt=Go.initialState,on=Go.defaultColumn,_n=Go.getSubRows,er=Go.getRowId,or=Go.stateReducer,Er=Go.useControlledState,Mi=D(or),Ui=l.useCallback(function(Pt,$e){if(!$e.type)throw console.info({action:$e}),new Error("Unknown Action \u{1F446}");return[].concat(wo().stateReducers,Array.isArray(Mi())?Mi():[Mi()]).reduce(function(ut,zt){return zt(ut,$e,Pt,Di())||ut},Pt)},[wo,Mi,Di]),Nn=l.useReducer(Ui,void 0,function(){return Ui(yt,{type:v.init})}),cr=Nn[0],ni=Nn[1],Xr=S([].concat(wo().useControlledState,[Er]),cr,{instance:Di()});Object.assign(Di(),{state:Xr,dispatch:ni});var Jr=l.useMemo(function(){return ae(S(wo().columns,Ie,{instance:Di()}))},[wo,Di,Ie].concat(S(wo().columnsDeps,[],{instance:Di()})));Di().columns=Jr;var Qi=l.useMemo(function(){return S(wo().allColumns,_(Jr),{instance:Di()}).map(N)},[Jr,wo,Di].concat(S(wo().allColumnsDeps,[],{instance:Di()})));Di().allColumns=Qi;var Fo=l.useMemo(function(){for(var Pt=[],$e=[],ut={},zt=[].concat(Qi);zt.length;){var Ht=zt.shift();At({data:Ko,rows:Pt,flatRows:$e,rowsById:ut,column:Ht,getRowId:er,getSubRows:_n,accessValueHooks:wo().accessValue,getInstance:Di})}return[Pt,$e,ut]},[Qi,Ko,er,_n,wo,Di]),No=Fo[0],Jo=Fo[1],br=Fo[2];Object.assign(Di(),{rows:No,initialRows:[].concat(No),flatRows:Jo,rowsById:br}),O(wo().useInstanceAfterData,Di());var Yn=l.useMemo(function(){return S(wo().visibleColumns,Qi,{instance:Di()}).map(function(Pt){return W(Pt,on)})},[wo,Qi,Di,on].concat(S(wo().visibleColumnsDeps,[],{instance:Di()})));Qi=l.useMemo(function(){var Pt=[].concat(Yn);return Qi.forEach(function($e){Pt.find(function(ut){return ut.id===$e.id})||Pt.push($e)}),Pt},[Qi,Yn]),Di().allColumns=Qi;var Z=l.useMemo(function(){return S(wo().headerGroups,he(Yn,on),Di())},[wo,Yn,on,Di].concat(S(wo().headerGroupsDeps,[],{instance:Di()})));Di().headerGroups=Z;var se=l.useMemo(function(){return Z.length?Z[0].headers:[]},[Z]);Di().headers=se,Di().flatHeaders=Z.reduce(function(Pt,$e){return[].concat(Pt,$e.headers)},[]),O(wo().useInstanceBeforeDimensions,Di());var G=Yn.filter(function(Pt){return Pt.isVisible}).map(function(Pt){return Pt.id}).sort().join("_");Yn=l.useMemo(function(){return Yn.filter(function(Pt){return Pt.isVisible})},[Yn,G]),Di().visibleColumns=Yn;var B=it(se),Pe=B[0],dt=B[1],Lt=B[2];return Di().totalColumnsMinWidth=Pe,Di().totalColumnsWidth=dt,Di().totalColumnsMaxWidth=Lt,O(wo().useInstance,Di()),[].concat(Di().flatHeaders,Di().allColumns).forEach(function(Pt){Pt.render=A(Di(),Pt),Pt.getHeaderProps=w(wo().getHeaderProps,{instance:Di(),column:Pt}),Pt.getFooterProps=w(wo().getFooterProps,{instance:Di(),column:Pt})}),Di().headerGroups=l.useMemo(function(){return Z.filter(function(Pt,$e){return Pt.headers=Pt.headers.filter(function(ut){return ut.headers?function zt(Ht){return Ht.filter(function(Fn){return Fn.headers?zt(Fn.headers):Fn.isVisible}).length}(ut.headers):ut.isVisible}),!!Pt.headers.length&&(Pt.getHeaderGroupProps=w(wo().getHeaderGroupProps,{instance:Di(),headerGroup:Pt,index:$e}),Pt.getFooterGroupProps=w(wo().getFooterGroupProps,{instance:Di(),headerGroup:Pt,index:$e}),!0)})},[Z,Di,wo]),Di().footerGroups=[].concat(Di().headerGroups).reverse(),Di().prepareRow=l.useCallback(function(Pt){Pt.getRowProps=w(wo().getRowProps,{instance:Di(),row:Pt}),Pt.allCells=Qi.map(function($e){var ut=Pt.values[$e.id],zt={column:$e,row:Pt,value:ut};return zt.getCellProps=w(wo().getCellProps,{instance:Di(),cell:zt}),zt.render=A(Di(),$e,{row:Pt,cell:zt,value:ut}),zt}),Pt.cells=Yn.map(function($e){return Pt.allCells.find(function(ut){return ut.column.id===$e.id})}),O(wo().prepareRow,Pt,{instance:Di()})},[wo,Di,Qi,Yn]),Di().getTableProps=w(wo().getTableProps,{instance:Di()}),Di().getTableBodyProps=w(wo().getTableBodyProps,{instance:Di()}),O(wo().useFinalInstance,Di()),Di()},Object.defineProperty(i,"__esModule",{value:!0})})},32885:(J,g,t)=>{J.exports=t(28829)},86634:(J,g,t)=>{"use strict";t.d(g,{A:()=>S});var i=t(58168),l=t(98587),s=t(77387);function m(O,R){return O.classList?!!R&&O.classList.contains(R):(" "+(O.className.baseVal||O.className)+" ").indexOf(" "+R+" ")!==-1}function u(O,R){O.classList?O.classList.add(R):m(O,R)||(typeof O.className=="string"?O.className=O.className+" "+R:O.setAttribute("class",(O.className&&O.className.baseVal||"")+" "+R))}function f(O,R){return O.replace(new RegExp("(^|\\s)"+R+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function p(O,R){O.classList?O.classList.remove(R):typeof O.className=="string"?O.className=f(O.className,R):O.setAttribute("class",f(O.className&&O.className.baseVal||"",R))}var v=t(96540),h=t(22669),d=t(92403),b=function(R,M){return R&&M&&M.split(" ").forEach(function(D){return u(R,D)})},y=function(R,M){return R&&M&&M.split(" ").forEach(function(D){return p(R,D)})},w=function(O){(0,s.A)(R,O);function R(){for(var D,P=arguments.length,T=new Array(P),A=0;A<P;A++)T[A]=arguments[A];return D=O.call.apply(O,[this].concat(T))||this,D.appliedClasses={appear:{},enter:{},exit:{}},D.onEnter=function(j,ae){var _=D.resolveArguments(j,ae),N=_[0],W=_[1];D.removeClasses(N,"exit"),D.addClass(N,W?"appear":"enter","base"),D.props.onEnter&&D.props.onEnter(j,ae)},D.onEntering=function(j,ae){var _=D.resolveArguments(j,ae),N=_[0],W=_[1],he=W?"appear":"enter";D.addClass(N,he,"active"),D.props.onEntering&&D.props.onEntering(j,ae)},D.onEntered=function(j,ae){var _=D.resolveArguments(j,ae),N=_[0],W=_[1],he=W?"appear":"enter";D.removeClasses(N,he),D.addClass(N,he,"done"),D.props.onEntered&&D.props.onEntered(j,ae)},D.onExit=function(j){var ae=D.resolveArguments(j),_=ae[0];D.removeClasses(_,"appear"),D.removeClasses(_,"enter"),D.addClass(_,"exit","base"),D.props.onExit&&D.props.onExit(j)},D.onExiting=function(j){var ae=D.resolveArguments(j),_=ae[0];D.addClass(_,"exit","active"),D.props.onExiting&&D.props.onExiting(j)},D.onExited=function(j){var ae=D.resolveArguments(j),_=ae[0];D.removeClasses(_,"exit"),D.addClass(_,"exit","done"),D.props.onExited&&D.props.onExited(j)},D.resolveArguments=function(j,ae){return D.props.nodeRef?[D.props.nodeRef.current,j]:[j,ae]},D.getClassNames=function(j){var ae=D.props.classNames,_=typeof ae=="string",N=_&&ae?ae+"-":"",W=_?""+N+j:ae[j],he=_?W+"-active":ae[j+"Active"],me=_?W+"-done":ae[j+"Done"];return{baseClassName:W,activeClassName:he,doneClassName:me}},D}var M=R.prototype;return M.addClass=function(P,T,A){var j=this.getClassNames(T)[A+"ClassName"],ae=this.getClassNames("enter"),_=ae.doneClassName;T==="appear"&&A==="done"&&_&&(j+=" "+_),A==="active"&&P&&(0,d.F)(P),j&&(this.appliedClasses[T][A]=j,b(P,j))},M.removeClasses=function(P,T){var A=this.appliedClasses[T],j=A.base,ae=A.active,_=A.done;this.appliedClasses[T]={},j&&y(P,j),ae&&y(P,ae),_&&y(P,_)},M.render=function(){var P=this.props,T=P.classNames,A=(0,l.A)(P,["classNames"]);return v.createElement(h.Ay,(0,i.A)({},A,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},R}(v.Component);w.defaultProps={classNames:""},w.propTypes={};const S=w},22669:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>O});var i=t(98587),l=t(77387),s=t(96540),m=t(40961);const u={disabled:!1},f=s.createContext(null);var p=t(92403),v="unmounted",h="exited",d="entering",b="entered",y="exiting",w=function(R){(0,l.A)(M,R);function M(P,T){var A;A=R.call(this,P,T)||this;var j=T,ae=j&&!j.isMounting?P.enter:P.appear,_;return A.appearStatus=null,P.in?ae?(_=h,A.appearStatus=d):_=b:P.unmountOnExit||P.mountOnEnter?_=v:_=h,A.state={status:_},A.nextCallback=null,A}M.getDerivedStateFromProps=function(T,A){var j=T.in;return j&&A.status===v?{status:h}:null};var D=M.prototype;return D.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},D.componentDidUpdate=function(T){var A=null;if(T!==this.props){var j=this.state.status;this.props.in?j!==d&&j!==b&&(A=d):(j===d||j===b)&&(A=y)}this.updateStatus(!1,A)},D.componentWillUnmount=function(){this.cancelNextCallback()},D.getTimeouts=function(){var T=this.props.timeout,A,j,ae;return A=j=ae=T,T!=null&&typeof T!="number"&&(A=T.exit,j=T.enter,ae=T.appear!==void 0?T.appear:j),{exit:A,enter:j,appear:ae}},D.updateStatus=function(T,A){if(T===void 0&&(T=!1),A!==null)if(this.cancelNextCallback(),A===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var j=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this);j&&(0,p.F)(j)}this.performEnter(T)}else this.performExit();else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:v})},D.performEnter=function(T){var A=this,j=this.props.enter,ae=this.context?this.context.isMounting:T,_=this.props.nodeRef?[ae]:[m.findDOMNode(this),ae],N=_[0],W=_[1],he=this.getTimeouts(),me=ae?he.appear:he.enter;if(!T&&!j||u.disabled){this.safeSetState({status:b},function(){A.props.onEntered(N)});return}this.props.onEnter(N,W),this.safeSetState({status:d},function(){A.props.onEntering(N,W),A.onTransitionEnd(me,function(){A.safeSetState({status:b},function(){A.props.onEntered(N,W)})})})},D.performExit=function(){var T=this,A=this.props.exit,j=this.getTimeouts(),ae=this.props.nodeRef?void 0:m.findDOMNode(this);if(!A||u.disabled){this.safeSetState({status:h},function(){T.props.onExited(ae)});return}this.props.onExit(ae),this.safeSetState({status:y},function(){T.props.onExiting(ae),T.onTransitionEnd(j.exit,function(){T.safeSetState({status:h},function(){T.props.onExited(ae)})})})},D.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},D.safeSetState=function(T,A){A=this.setNextCallback(A),this.setState(T,A)},D.setNextCallback=function(T){var A=this,j=!0;return this.nextCallback=function(ae){j&&(j=!1,A.nextCallback=null,T(ae))},this.nextCallback.cancel=function(){j=!1},this.nextCallback},D.onTransitionEnd=function(T,A){this.setNextCallback(A);var j=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this),ae=T==null&&!this.props.addEndListener;if(!j||ae){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var _=this.props.nodeRef?[this.nextCallback]:[j,this.nextCallback],N=_[0],W=_[1];this.props.addEndListener(N,W)}T!=null&&setTimeout(this.nextCallback,T)},D.render=function(){var T=this.state.status;if(T===v)return null;var A=this.props,j=A.children,ae=A.in,_=A.mountOnEnter,N=A.unmountOnExit,W=A.appear,he=A.enter,me=A.exit,fe=A.timeout,ve=A.addEndListener,ce=A.onEnter,oe=A.onEntering,re=A.onEntered,H=A.onExit,V=A.onExiting,Q=A.onExited,Te=A.nodeRef,Re=(0,i.A)(A,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s.createElement(f.Provider,{value:null},typeof j=="function"?j(T,Re):s.cloneElement(s.Children.only(j),Re))},M}(s.Component);w.contextType=f,w.propTypes={};function S(){}w.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S,onEntering:S,onEntered:S,onExit:S,onExiting:S,onExited:S},w.UNMOUNTED=v,w.EXITED=h,w.ENTERING=d,w.ENTERED=b,w.EXITING=y;const O=w},92403:(J,g,t)=>{"use strict";t.d(g,{F:()=>i});var i=function(s){return s.scrollTop}},42303:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(96540),l=function(m){var u=(0,i.createContext)(void 0),f=function(h,d){return(0,i.createElement)(u.Provider,h,d)},p=function(h){var d=h.children,b=h.initialValue,y=(0,i.useState)(b!==void 0?b:m);return f({value:y},d)},v=function(){var h=(0,i.useContext)(u);if(h==null)throw new Error("useStateContext must be used inside a StateProvider.");return h};return[v,p,u]};const s=l},2739:(J,g,t)=>{"use strict";t.d(g,{AU:()=>s,Bd:()=>m,lQ:()=>i,on:()=>l});var i=function(){};function l(f){for(var p=[],v=1;v<arguments.length;v++)p[v-1]=arguments[v];f&&f.addEventListener&&f.addEventListener.apply(f,p)}function s(f){for(var p=[],v=1;v<arguments.length;v++)p[v-1]=arguments[v];f&&f.removeEventListener&&f.removeEventListener.apply(f,p)}var m=typeof window<"u",u=typeof navigator<"u"},16817:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(96540),l=t(41053);function s(m,u){u===void 0&&(u=[]);var f=(0,l.A)(m,u,{loading:!0}),p=f[0],v=f[1];return(0,i.useEffect)(function(){v()},[v]),p}},41053:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(31635),l=t(96540),s=t(1604);function m(u,f,p){f===void 0&&(f=[]),p===void 0&&(p={loading:!1});var v=(0,l.useRef)(0),h=(0,s.A)(),d=(0,l.useState)(p),b=d[0],y=d[1],w=(0,l.useCallback)(function(){for(var S=[],O=0;O<arguments.length;O++)S[O]=arguments[O];var R=++v.current;return b.loading||y(function(M){return(0,i.__assign)((0,i.__assign)({},M),{loading:!0})}),u.apply(void 0,S).then(function(M){return h()&&R===v.current&&y({value:M,loading:!1}),M},function(M){return h()&&R===v.current&&y({error:M,loading:!1}),M})},f);return[b,w]}},29647:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96540),l=t(2739),s=["mousedown","touchstart"],m=function(f,p,v){v===void 0&&(v=s);var h=(0,i.useRef)(p);(0,i.useEffect)(function(){h.current=p},[p]),(0,i.useEffect)(function(){for(var d=function(S){var O=f.current;O&&!O.contains(S.target)&&h.current(S)},b=0,y=v;b<y.length;b++){var w=y[b];(0,l.on)(document,w,d)}return function(){for(var S=0,O=v;S<O.length;S++){var R=O[S];(0,l.AU)(document,R,d)}}},[v,f])};const u=m},73287:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});var i=t(17965),l=t.n(i),s=t(96540),m=t(1604),u=function(h){h===void 0&&(h={});var d=(0,s.useState)(h),b=d[0],y=d[1],w=(0,s.useCallback)(function(S){y(function(O){return Object.assign({},O,S instanceof Function?S(O):S)})},[]);return[b,w]};const f=u;var p=function(){var h=(0,m.A)(),d=f({value:void 0,error:void 0,noUserInteraction:!0}),b=d[0],y=d[1],w=(0,s.useCallback)(function(S){if(h()){var O,R;try{if(typeof S!="string"&&typeof S!="number"){var M=new Error("Cannot copy typeof "+typeof S+" to clipboard, must be a string");y({value:S,error:M,noUserInteraction:!0});return}else if(S===""){var M=new Error("Cannot copy empty string to clipboard.");y({value:S,error:M,noUserInteraction:!0});return}R=S.toString(),O=l()(R),y({value:R,error:void 0,noUserInteraction:O})}catch(D){y({value:R,error:D,noUserInteraction:O})}}},[]);return[b,w]};const v=p},56737:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(96540),l=function(p){return(p+1)%1e6};function s(){var p=(0,i.useReducer)(l,0),v=p[1];return v}function m(p,v){return typeof p=="function"?p.length?p(v):p():p}function u(p){var v=(0,i.useRef)(m(p)),h=s();return(0,i.useMemo)(function(){return[function(){return v.current},function(d){v.current=m(d,v.current),h()}]},[])}function f(p,v,h){p===void 0&&(p=0),v===void 0&&(v=null),h===void 0&&(h=null);var d=m(p);typeof d!="number"&&console.error("initialValue has to be a number, got "+typeof p),typeof h=="number"?d=Math.max(d,h):h!==null&&console.error("min has to be a number, got "+typeof h),typeof v=="number"?d=Math.min(d,v):v!==null&&console.error("max has to be a number, got "+typeof v);var b=u(d),y=b[0],w=b[1];return[y(),(0,i.useMemo)(function(){var S=function(O){var R=y(),M=m(O,R);R!==M&&(typeof h=="number"&&(M=Math.max(M,h)),typeof v=="number"&&(M=Math.min(M,v)),R!==M&&w(M))};return{get:y,set:S,inc:function(O){O===void 0&&(O=1);var R=m(O,y());typeof R!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof R),S(function(M){return M+R})},dec:function(O){O===void 0&&(O=1);var R=m(O,y());typeof R!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof R),S(function(M){return M-R})},reset:function(O){O===void 0&&(O=d);var R=m(O,y());typeof R!="number"&&console.error("value has to be a number or function returning a number, got "+typeof R),d=R,S(R)}}},[d,h,v])]}},40996:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(96540);function l(m,u){u===void 0&&(u=0);var f=(0,i.useRef)(!1),p=(0,i.useRef)(),v=(0,i.useRef)(m),h=(0,i.useCallback)(function(){return f.current},[]),d=(0,i.useCallback)(function(){f.current=!1,p.current&&clearTimeout(p.current),p.current=setTimeout(function(){f.current=!0,v.current()},u)},[u]),b=(0,i.useCallback)(function(){f.current=null,p.current&&clearTimeout(p.current)},[]);return(0,i.useEffect)(function(){v.current=m},[m]),(0,i.useEffect)(function(){return d(),b},[u]),[h,b,d]}function s(m,u,f){u===void 0&&(u=0),f===void 0&&(f=[]);var p=l(m,u),v=p[0],h=p[1],d=p[2];return(0,i.useEffect)(d,f),[v,h]}},94701:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(96540),l=function(m){(0,i.useEffect)(m,[])};const s=l},57007:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=t(2739),s=l.Bd?i.useLayoutEffect:i.useEffect;const m=s},78685:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=t(2739),s=function(u,f,p){if(!l.Bd)return[f,l.lQ,l.lQ];if(!u)throw new Error("useLocalStorage key may not be falsy");var v=p?p.raw?function(O){return O}:p.deserializer:JSON.parse,h=(0,i.useRef)(function(O){try{var R=p?p.raw?String:p.serializer:JSON.stringify,M=localStorage.getItem(O);return M!==null?v(M):(f&&localStorage.setItem(O,R(f)),f)}catch{return f}}),d=(0,i.useState)(function(){return h.current(u)}),b=d[0],y=d[1];(0,i.useLayoutEffect)(function(){return y(h.current(u))},[u]);var w=(0,i.useCallback)(function(O){try{var R=typeof O=="function"?O(b):O;if(typeof R>"u")return;var M=void 0;p?p.raw?typeof R=="string"?M=R:M=JSON.stringify(R):p.serializer?M=p.serializer(R):M=JSON.stringify(R):M=JSON.stringify(R),localStorage.setItem(u,M),y(v(M))}catch{}},[u,y]),S=(0,i.useCallback)(function(){try{localStorage.removeItem(u),y(void 0)}catch{}},[u,y]);return[b,w,S]};const m=s},87586:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});var i=t(96540),l=t(2739),s=function(h){var d=window.history,b=d[h];d[h]=function(y){var w=b.apply(this,arguments),S=new Event(h.toLowerCase());return S.state=y,window.dispatchEvent(S),w}};l.Bd&&(s("pushState"),s("replaceState"));var m=function(){return{trigger:"load",length:1}},u=function(h){var d=window.history,b=d.state,y=d.length,w=window.location,S=w.hash,O=w.host,R=w.hostname,M=w.href,D=w.origin,P=w.pathname,T=w.port,A=w.protocol,j=w.search;return{trigger:h,state:b,length:y,hash:S,host:O,hostname:R,href:M,origin:D,pathname:P,port:T,protocol:A,search:j}},f=function(){var h=(0,i.useState)(u("load")),d=h[0],b=h[1];return(0,i.useEffect)(function(){var y=function(){return b(u("popstate"))},w=function(){return b(u("pushstate"))},S=function(){return b(u("replacestate"))};return(0,l.on)(window,"popstate",y),(0,l.on)(window,"pushstate",w),(0,l.on)(window,"replacestate",S),function(){(0,l.AU)(window,"popstate",y),(0,l.AU)(window,"pushstate",w),(0,l.AU)(window,"replacestate",S)}},[]),d},p=typeof Event=="function";const v=l.Bd&&p?f:m},49185:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(96540),l=t(57007),s=t(2739),m={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function u(){var p=(0,i.useState)(null),v=p[0],h=p[1],d=(0,i.useState)(m),b=d[0],y=d[1],w=(0,i.useMemo)(function(){return new window.ResizeObserver(function(S){if(S[0]){var O=S[0].contentRect,R=O.x,M=O.y,D=O.width,P=O.height,T=O.top,A=O.left,j=O.bottom,ae=O.right;y({x:R,y:M,width:D,height:P,top:T,left:A,bottom:j,right:ae})}})},[]);return(0,l.A)(function(){if(v)return w.observe(v),function(){w.disconnect()}},[v]),[h,b]}const f=s.Bd&&typeof window.ResizeObserver<"u"?u:function(){return[s.lQ,m]}},49045:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96540),l=t(2739),s=function(f,p){return p!==void 0?p:l.Bd?window.matchMedia(f).matches:!1},m=function(f,p){var v=(0,i.useState)(s(f,p)),h=v[0],d=v[1];return(0,i.useEffect)(function(){var b=!0,y=window.matchMedia(f),w=function(){b&&d(!!y.matches)};return y.addEventListener("change",w),d(y.matches),function(){b=!1,y.removeEventListener("change",w)}},[f]),h};const u=m},1604:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(96540);function l(){var s=(0,i.useRef)(!1),m=(0,i.useCallback)(function(){return s.current},[]);return(0,i.useEffect)(function(){return s.current=!0,function(){s.current=!1}},[]),m}},24120:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=t(57007);function s(u,f){var p=(0,i.useState)(f),v=p[0],h=p[1];return(0,l.A)(function(){var d=u.subscribe(h);return function(){return d.unsubscribe()}},[u]),v}const m=s},84596:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(96540);function l(s){var m=(0,i.useRef)();return(0,i.useEffect)(function(){m.current=s}),m.current}},23535:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=t(64305),s=function(u){var f=(0,i.useRef)(0),p=(0,i.useState)(u),v=p[0],h=p[1],d=(0,i.useCallback)(function(b){cancelAnimationFrame(f.current),f.current=requestAnimationFrame(function(){h(b)})},[]);return(0,l.A)(function(){cancelAnimationFrame(f.current)}),[v,d]};const m=s},65229:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=t(64305),s=function(u,f,p){f===void 0&&(f=200);var v=(0,i.useState)(null),h=v[0],d=v[1],b=(0,i.useRef)(),y=(0,i.useRef)();return(0,i.useEffect)(function(){if(b.current)y.current=p;else{d(u.apply(void 0,p));var w=function(){y.current?(d(u.apply(void 0,y.current)),y.current=void 0,b.current=setTimeout(w,f)):b.current=void 0};b.current=setTimeout(w,f)}},p),(0,l.A)(function(){b.current&&clearTimeout(b.current)}),h};const m=s},42941:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=function(u,f){return typeof f=="boolean"?f:!u},s=function(u){return(0,i.useReducer)(l,u)};const m=s},64305:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540),l=t(94701),s=function(u){var f=(0,i.useRef)(u);f.current=u,(0,l.A)(function(){return function(){return f.current()}})};const m=s},22589:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(96540);function l(){var u=(0,i.useRef)(!0);return u.current?(u.current=!1,!0):u.current}var s=function(u,f){var p=l();(0,i.useEffect)(function(){if(!p)return u()},f)};const m=s},52908:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96540),l=t(23535),s=t(2739),m=function(f,p){f===void 0&&(f=1/0),p===void 0&&(p=1/0);var v=(0,l.A)({width:s.Bd?window.innerWidth:f,height:s.Bd?window.innerHeight:p}),h=v[0],d=v[1];return(0,i.useEffect)(function(){if(s.Bd){var b=function(){d({width:window.innerWidth,height:window.innerHeight})};return(0,s.on)(window,"resize",b),function(){(0,s.AU)(window,"resize",b)}}},[]),h};const u=m},66691:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isNavigator=g.isBrowser=g.off=g.on=g.noop=void 0;var t=function(){};g.noop=t;function i(s){for(var m=[],u=1;u<arguments.length;u++)m[u-1]=arguments[u];s&&s.addEventListener&&s.addEventListener.apply(s,m)}g.on=i;function l(s){for(var m=[],u=1;u<arguments.length;u++)m[u-1]=arguments[u];s&&s.removeEventListener&&s.removeEventListener.apply(s,m)}g.off=l,g.isBrowser=typeof window<"u",g.isNavigator=typeof navigator<"u"},24705:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(31635),s=t(96540),m=l.__importDefault(t(5805));function u(f,p){p===void 0&&(p=[]);var v=m.default(f,p,{loading:!0}),h=v[0],d=v[1];return s.useEffect(function(){d()},[d]),h}g.A=u},5805:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(31635),l=t(96540),s=i.__importDefault(t(13876));function m(u,f,p){f===void 0&&(f=[]),p===void 0&&(p={loading:!1});var v=l.useRef(0),h=s.default(),d=l.useState(p),b=d[0],y=d[1],w=l.useCallback(function(){for(var S=[],O=0;O<arguments.length;O++)S[O]=arguments[O];var R=++v.current;return b.loading||y(function(M){return i.__assign(i.__assign({},M),{loading:!0})}),u.apply(void 0,S).then(function(M){return h()&&R===v.current&&y({value:M,loading:!1}),M},function(M){return h()&&R===v.current&&y({error:M,loading:!1}),M})},f);return[b,w]}g.default=m},37151:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(96540),s=t(66691),m=["mousedown","touchstart"],u=function(f,p,v){v===void 0&&(v=m);var h=l.useRef(p);l.useEffect(function(){h.current=p},[p]),l.useEffect(function(){for(var d=function(S){var O=f.current;O&&!O.contains(S.target)&&h.current(S)},b=0,y=v;b<y.length;b++){var w=y[b];s.on(document,w,d)}return function(){for(var S=0,O=v;S<O.length;S++){var R=O[S];s.off(document,R,d)}}},[v,f])};g.A=u},75198:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(31635),s=t(96540),m=l.__importDefault(t(93182));function u(f,p,v){p===void 0&&(p=0),v===void 0&&(v=[]);var h=m.default(f,p),d=h[0],b=h[1],y=h[2];return s.useEffect(y,v),[d,b]}g.A=u},18367:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(96540),l=t(66691),s=l.isBrowser?i.useLayoutEffect:i.useEffect;g.default=s},71473:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(31635),s=t(96540),m=l.__importDefault(t(18367)),u=t(66691),f={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function p(){var v=s.useState(null),h=v[0],d=v[1],b=s.useState(f),y=b[0],w=b[1],S=s.useMemo(function(){return new window.ResizeObserver(function(O){if(O[0]){var R=O[0].contentRect,M=R.x,D=R.y,P=R.width,T=R.height,A=R.top,j=R.left,ae=R.bottom,_=R.right;w({x:M,y:D,width:P,height:T,top:A,left:j,bottom:ae,right:_})}})},[]);return m.default(function(){if(h)return S.observe(h),function(){S.disconnect()}},[h]),[d,y]}g.A=u.isBrowser&&typeof window.ResizeObserver<"u"?p:function(){return[u.noop,f]}},13876:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(96540);function l(){var s=i.useRef(!1),m=i.useCallback(function(){return s.current},[]);return i.useEffect(function(){return s.current=!0,function(){s.current=!1}},[]),m}g.default=l},80292:(J,g,t)=>{"use strict";var i;i={value:!0};var l=t(96540);function s(m){var u=l.useRef();return l.useEffect(function(){u.current=m}),u.current}g.A=s},93182:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var i=t(96540);function l(s,m){m===void 0&&(m=0);var u=i.useRef(!1),f=i.useRef(),p=i.useRef(s),v=i.useCallback(function(){return u.current},[]),h=i.useCallback(function(){u.current=!1,f.current&&clearTimeout(f.current),f.current=setTimeout(function(){u.current=!0,p.current()},m)},[m]),d=i.useCallback(function(){u.current=null,f.current&&clearTimeout(f.current)},[]);return i.useEffect(function(){p.current=s},[s]),i.useEffect(function(){return h(),d},[m]),[v,d,h]}g.default=l},70713:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>b});var i=t(96540);let l;typeof window<"u"?l=window:typeof self<"u"?l=self:l=t.g;let s=null,m=null;const u=20,f=l.clearTimeout,p=l.setTimeout,v=l.cancelAnimationFrame||l.mozCancelAnimationFrame||l.webkitCancelAnimationFrame,h=l.requestAnimationFrame||l.mozRequestAnimationFrame||l.webkitRequestAnimationFrame;v==null||h==null?(s=f,m=function(R){return p(R,u)}):(s=function([R,M]){v(R),f(M)},m=function(R){const M=h(function(){f(D),R()}),D=p(function(){v(M),R()},u);return[M,D]});function d(O){let R,M,D,P,T,A,j;const ae=typeof document<"u"&&document.attachEvent;if(!ae){A=function(oe){const re=oe.__resizeTriggers__,H=re.firstElementChild,V=re.lastElementChild,Q=H.firstElementChild;V.scrollLeft=V.scrollWidth,V.scrollTop=V.scrollHeight,Q.style.width=H.offsetWidth+1+"px",Q.style.height=H.offsetHeight+1+"px",H.scrollLeft=H.scrollWidth,H.scrollTop=H.scrollHeight},T=function(oe){return oe.offsetWidth!==oe.__resizeLast__.width||oe.offsetHeight!==oe.__resizeLast__.height},j=function(oe){if(oe.target.className&&typeof oe.target.className.indexOf=="function"&&oe.target.className.indexOf("contract-trigger")<0&&oe.target.className.indexOf("expand-trigger")<0)return;const re=this;A(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=m(function(){T(re)&&(re.__resizeLast__.width=re.offsetWidth,re.__resizeLast__.height=re.offsetHeight,re.__resizeListeners__.forEach(function(Q){Q.call(re,oe)}))})};let he=!1,me="";D="animationstart";const fe="Webkit Moz O ms".split(" ");let ve="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),ce="";{const oe=document.createElement("fakeelement");if(oe.style.animationName!==void 0&&(he=!0),he===!1){for(let re=0;re<fe.length;re++)if(oe.style[fe[re]+"AnimationName"]!==void 0){ce=fe[re],me="-"+ce.toLowerCase()+"-",D=ve[re],he=!0;break}}}M="resizeanim",R="@"+me+"keyframes "+M+" { from { opacity: 0; } to { opacity: 0; } } ",P=me+"animation: 1ms "+M+"; "}const _=function(he){if(!he.getElementById("detectElementResize")){const me=(R||"")+".resize-triggers { "+(P||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',fe=he.head||he.getElementsByTagName("head")[0],ve=he.createElement("style");ve.id="detectElementResize",ve.type="text/css",O!=null&&ve.setAttribute("nonce",O),ve.styleSheet?ve.styleSheet.cssText=me:ve.appendChild(he.createTextNode(me)),fe.appendChild(ve)}};return{addResizeListener:function(he,me){if(ae)he.attachEvent("onresize",me);else{if(!he.__resizeTriggers__){const fe=he.ownerDocument,ve=l.getComputedStyle(he);ve&&ve.position==="static"&&(he.style.position="relative"),_(fe),he.__resizeLast__={},he.__resizeListeners__=[],(he.__resizeTriggers__=fe.createElement("div")).className="resize-triggers";const ce=fe.createElement("div");ce.className="expand-trigger",ce.appendChild(fe.createElement("div"));const oe=fe.createElement("div");oe.className="contract-trigger",he.__resizeTriggers__.appendChild(ce),he.__resizeTriggers__.appendChild(oe),he.appendChild(he.__resizeTriggers__),A(he),he.addEventListener("scroll",j,!0),D&&(he.__resizeTriggers__.__animationListener__=function(H){H.animationName===M&&A(he)},he.__resizeTriggers__.addEventListener(D,he.__resizeTriggers__.__animationListener__))}he.__resizeListeners__.push(me)}},removeResizeListener:function(he,me){if(ae)he.detachEvent("onresize",me);else if(he.__resizeListeners__.splice(he.__resizeListeners__.indexOf(me),1),!he.__resizeListeners__.length){he.removeEventListener("scroll",j,!0),he.__resizeTriggers__.__animationListener__&&(he.__resizeTriggers__.removeEventListener(D,he.__resizeTriggers__.__animationListener__),he.__resizeTriggers__.__animationListener__=null);try{he.__resizeTriggers__=!he.removeChild(he.__resizeTriggers__)}catch{}}}}}class b extends i.Component{constructor(...R){super(...R),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:M,disableWidth:D,onResize:P}=this.props;if(this._parentNode){const T=window.getComputedStyle(this._parentNode)||{},A=parseFloat(T.paddingLeft||"0"),j=parseFloat(T.paddingRight||"0"),ae=parseFloat(T.paddingTop||"0"),_=parseFloat(T.paddingBottom||"0"),N=this._parentNode.getBoundingClientRect(),W=N.height-ae-_,he=N.width-A-j,me=this._parentNode.offsetHeight-ae-_,fe=this._parentNode.offsetWidth-A-j;(!M&&(this.state.height!==me||this.state.scaledHeight!==W)||!D&&(this.state.width!==fe||this.state.scaledWidth!==he))&&(this.setState({height:me,width:fe,scaledHeight:W,scaledWidth:he}),typeof P=="function"&&P({height:me,scaledHeight:W,scaledWidth:he,width:fe}))}},this._setRef=M=>{this._autoSizer=M}}componentDidMount(){const{nonce:R}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=d(R),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:R,defaultHeight:M,defaultWidth:D,disableHeight:P=!1,disableWidth:T=!1,nonce:A,onResize:j,style:ae={},tagName:_="div",...N}=this.props,{height:W,scaledHeight:he,scaledWidth:me,width:fe}=this.state,ve={overflow:"visible"},ce={};let oe=!1;return P||(W===0&&(oe=!0),ve.height=0,ce.height=W,ce.scaledHeight=he),T||(fe===0&&(oe=!0),ve.width=0,ce.width=fe,ce.scaledWidth=me),(0,i.createElement)(_,{ref:this._setRef,style:{...ve,...ae},...N},!oe&&R(ce))}}function y(O){return O&&O.disableHeight!==!0&&O.disableWidth!==!0}function w(O){return O&&O.disableHeight!==!0&&O.disableWidth===!0}function S(O){return O&&O.disableHeight===!0&&O.disableWidth!==!0}},10022:(J,g,t)=>{"use strict";t.d(g,{A:()=>d});var i=t(96540);function l(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function s(b){var y=b.lastRenderedStartIndex,w=b.lastRenderedStopIndex,S=b.startIndex,O=b.stopIndex;return!(S>w||O<y)}function m(b){for(var y=b.isItemLoaded,w=b.itemCount,S=b.minimumBatchSize,O=b.startIndex,R=b.stopIndex,M=[],D=null,P=null,T=O;T<=R;T++){var A=y(T);A?P!==null&&(M.push(D,P),D=P=null):(P=T,D===null&&(D=T))}if(P!==null){for(var j=Math.min(Math.max(P,D+S-1),w-1),ae=P+1;ae<=j&&!y(ae);ae++)P=ae;M.push(D,P)}if(M.length)for(;M[1]-M[0]+1<S&&M[0]>0;){var _=M[0]-1;if(!y(_))M[0]=_;else break}return M}var u=function(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")},f=function(){function b(y,w){for(var S=0;S<w.length;S++){var O=w[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}return function(y,w,S){return w&&b(y.prototype,w),S&&b(y,S),y}}(),p=function(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)},v=function(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b},h=function(b){p(y,b);function y(){var w,S,O,R;u(this,y);for(var M=arguments.length,D=Array(M),P=0;P<M;P++)D[P]=arguments[P];return R=(S=(O=v(this,(w=y.__proto__||Object.getPrototypeOf(y)).call.apply(w,[this].concat(D))),O),O._lastRenderedStartIndex=-1,O._lastRenderedStopIndex=-1,O._memoizedUnloadedRanges=[],O._onItemsRendered=function(T){var A=T.visibleStartIndex,j=T.visibleStopIndex;O._lastRenderedStartIndex=A,O._lastRenderedStopIndex=j,O._ensureRowsLoaded(A,j)},O._setRef=function(T){O._listRef=T},S),v(O,R)}return f(y,[{key:"resetloadMoreItemsCache",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],S&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var S=this.props.children;return S({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(S,O){var R=this.props,M=R.isItemLoaded,D=R.itemCount,P=R.minimumBatchSize,T=P===void 0?10:P,A=R.threshold,j=A===void 0?15:A,ae=m({isItemLoaded:M,itemCount:D,minimumBatchSize:T,startIndex:Math.max(0,S-j),stopIndex:Math.min(D-1,O+j)});(this._memoizedUnloadedRanges.length!==ae.length||this._memoizedUnloadedRanges.some(function(_,N){return ae[N]!==_}))&&(this._memoizedUnloadedRanges=ae,this._loadUnloadedRanges(ae))}},{key:"_loadUnloadedRanges",value:function(S){for(var O=this,R=this.props.loadMoreItems||this.props.loadMoreRows,M=function(T){var A=S[T],j=S[T+1],ae=R(A,j);ae?.then(function(){if(s({lastRenderedStartIndex:O._lastRenderedStartIndex,lastRenderedStopIndex:O._lastRenderedStopIndex,startIndex:A,stopIndex:j})){if(O._listRef==null)return;typeof O._listRef.resetAfterIndex=="function"?O._listRef.resetAfterIndex(A,!0):(typeof O._listRef._getItemStyleCache=="function"&&O._listRef._getItemStyleCache(-1),O._listRef.forceUpdate())}})},D=0;D<S.length;D+=2)M(D)}}]),y}(i.PureComponent);const d=h},91793:(J,g,t)=>{"use strict";t.d(g,{yi:()=>pt,Y1:()=>Rt,_m:()=>Tt,t7:()=>Y});var i=t(58168),l=t(9417),s=t(77387),m=Number.isNaN||function(Ye){return typeof Ye=="number"&&Ye!==Ye};function u(ke,Ye){return!!(ke===Ye||m(ke)&&m(Ye))}function f(ke,Ye){if(ke.length!==Ye.length)return!1;for(var ft=0;ft<ke.length;ft++)if(!u(ke[ft],Ye[ft]))return!1;return!0}function p(ke,Ye){Ye===void 0&&(Ye=f);var ft,wt=[],Ut,Ke=!1;function it(){for(var At=[],et=0;et<arguments.length;et++)At[et]=arguments[et];return Ke&&ft===this&&Ye(At,wt)||(Ut=ke.apply(this,At),Ke=!0,ft=this,wt=At),Ut}return it}const v=p;var h=t(96540),d=t(98587),b=typeof performance=="object"&&typeof performance.now=="function",y=b?function(){return performance.now()}:function(){return Date.now()};function w(ke){cancelAnimationFrame(ke.id)}function S(ke,Ye){var ft=y();function wt(){y()-ft>=Ye?ke.call(null):Ut.id=requestAnimationFrame(wt)}var Ut={id:requestAnimationFrame(wt)};return Ut}var O=-1;function R(ke){if(ke===void 0&&(ke=!1),O===-1||ke){var Ye=document.createElement("div"),ft=Ye.style;ft.width="50px",ft.height="50px",ft.overflow="scroll",document.body.appendChild(Ye),O=Ye.offsetWidth-Ye.clientWidth,document.body.removeChild(Ye)}return O}var M=null;function D(ke){if(ke===void 0&&(ke=!1),M===null||ke){var Ye=document.createElement("div"),ft=Ye.style;ft.width="50px",ft.height="50px",ft.overflow="scroll",ft.direction="rtl";var wt=document.createElement("div"),Ut=wt.style;return Ut.width="100px",Ut.height="100px",Ye.appendChild(wt),document.body.appendChild(Ye),Ye.scrollLeft>0?M="positive-descending":(Ye.scrollLeft=1,Ye.scrollLeft===0?M="negative":M="positive-ascending"),document.body.removeChild(Ye),M}return M}var P=150,T=function(Ye){var ft=Ye.columnIndex,wt=Ye.data,Ut=Ye.rowIndex;return Ut+":"+ft},A=null,j=null,ae=null;function _(ke){var Ye,ft=ke.getColumnOffset,wt=ke.getColumnStartIndexForOffset,Ut=ke.getColumnStopIndexForStartIndex,Ke=ke.getColumnWidth,it=ke.getEstimatedTotalHeight,At=ke.getEstimatedTotalWidth,et=ke.getOffsetForColumnAndAlignment,ee=ke.getOffsetForRowAndAlignment,I=ke.getRowHeight,K=ke.getRowOffset,ue=ke.getRowStartIndexForOffset,De=ke.getRowStopIndexForStartIndex,He=ke.initInstanceProps,Fe=ke.shouldResetStyleCacheOnItemSizeChange,ze=ke.validateProps;return Ye=function(qe){(0,s.A)(We,qe);function We(ct){var Ge;return Ge=qe.call(this,ct)||this,Ge._instanceProps=He(Ge.props,(0,l.A)(Ge)),Ge._resetIsScrollingTimeoutId=null,Ge._outerRef=void 0,Ge.state={instance:(0,l.A)(Ge),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof Ge.props.initialScrollLeft=="number"?Ge.props.initialScrollLeft:0,scrollTop:typeof Ge.props.initialScrollTop=="number"?Ge.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},Ge._callOnItemsRendered=void 0,Ge._callOnItemsRendered=v(function(st,Me,ie,ge,z,be,Qe,Bt){return Ge.props.onItemsRendered({overscanColumnStartIndex:st,overscanColumnStopIndex:Me,overscanRowStartIndex:ie,overscanRowStopIndex:ge,visibleColumnStartIndex:z,visibleColumnStopIndex:be,visibleRowStartIndex:Qe,visibleRowStopIndex:Bt})}),Ge._callOnScroll=void 0,Ge._callOnScroll=v(function(st,Me,ie,ge,z){return Ge.props.onScroll({horizontalScrollDirection:ie,scrollLeft:st,scrollTop:Me,verticalScrollDirection:ge,scrollUpdateWasRequested:z})}),Ge._getItemStyle=void 0,Ge._getItemStyle=function(st,Me){var ie=Ge.props,ge=ie.columnWidth,z=ie.direction,be=ie.rowHeight,Qe=Ge._getItemStyleCache(Fe&&ge,Fe&&z,Fe&&be),Bt=st+":"+Me,nn;if(Qe.hasOwnProperty(Bt))nn=Qe[Bt];else{var bt=ft(Ge.props,Me,Ge._instanceProps),at=z==="rtl";Qe[Bt]=nn={position:"absolute",left:at?void 0:bt,right:at?bt:void 0,top:K(Ge.props,st,Ge._instanceProps),height:I(Ge.props,st,Ge._instanceProps),width:Ke(Ge.props,Me,Ge._instanceProps)}}return nn},Ge._getItemStyleCache=void 0,Ge._getItemStyleCache=v(function(st,Me,ie){return{}}),Ge._onScroll=function(st){var Me=st.currentTarget,ie=Me.clientHeight,ge=Me.clientWidth,z=Me.scrollLeft,be=Me.scrollTop,Qe=Me.scrollHeight,Bt=Me.scrollWidth;Ge.setState(function(nn){if(nn.scrollLeft===z&&nn.scrollTop===be)return null;var bt=Ge.props.direction,at=z;if(bt==="rtl")switch(D()){case"negative":at=-z;break;case"positive-descending":at=Bt-ge-z;break}at=Math.max(0,Math.min(at,Bt-ge));var $t=Math.max(0,Math.min(be,Qe-ie));return{isScrolling:!0,horizontalScrollDirection:nn.scrollLeft<z?"forward":"backward",scrollLeft:at,scrollTop:$t,verticalScrollDirection:nn.scrollTop<be?"forward":"backward",scrollUpdateWasRequested:!1}},Ge._resetIsScrollingDebounced)},Ge._outerRefSetter=function(st){var Me=Ge.props.outerRef;Ge._outerRef=st,typeof Me=="function"?Me(st):Me!=null&&typeof Me=="object"&&Me.hasOwnProperty("current")&&(Me.current=st)},Ge._resetIsScrollingDebounced=function(){Ge._resetIsScrollingTimeoutId!==null&&w(Ge._resetIsScrollingTimeoutId),Ge._resetIsScrollingTimeoutId=S(Ge._resetIsScrolling,P)},Ge._resetIsScrolling=function(){Ge._resetIsScrollingTimeoutId=null,Ge.setState({isScrolling:!1},function(){Ge._getItemStyleCache(-1)})},Ge}We.getDerivedStateFromProps=function(Ge,st){return N(Ge,st),ze(Ge),null};var _t=We.prototype;return _t.scrollTo=function(Ge){var st=Ge.scrollLeft,Me=Ge.scrollTop;st!==void 0&&(st=Math.max(0,st)),Me!==void 0&&(Me=Math.max(0,Me)),this.setState(function(ie){return st===void 0&&(st=ie.scrollLeft),Me===void 0&&(Me=ie.scrollTop),ie.scrollLeft===st&&ie.scrollTop===Me?null:{horizontalScrollDirection:ie.scrollLeft<st?"forward":"backward",scrollLeft:st,scrollTop:Me,scrollUpdateWasRequested:!0,verticalScrollDirection:ie.scrollTop<Me?"forward":"backward"}},this._resetIsScrollingDebounced)},_t.scrollToItem=function(Ge){var st=Ge.align,Me=st===void 0?"auto":st,ie=Ge.columnIndex,ge=Ge.rowIndex,z=this.props,be=z.columnCount,Qe=z.height,Bt=z.rowCount,nn=z.width,bt=this.state,at=bt.scrollLeft,$t=bt.scrollTop,On=R();ie!==void 0&&(ie=Math.max(0,Math.min(ie,be-1))),ge!==void 0&&(ge=Math.max(0,Math.min(ge,Bt-1)));var Ct=it(this.props,this._instanceProps),Zt=At(this.props,this._instanceProps),Wn=Zt>nn?On:0,Zn=Ct>Qe?On:0;this.scrollTo({scrollLeft:ie!==void 0?et(this.props,ie,Me,at,this._instanceProps,Zn):at,scrollTop:ge!==void 0?ee(this.props,ge,Me,$t,this._instanceProps,Wn):$t})},_t.componentDidMount=function(){var Ge=this.props,st=Ge.initialScrollLeft,Me=Ge.initialScrollTop;if(this._outerRef!=null){var ie=this._outerRef;typeof st=="number"&&(ie.scrollLeft=st),typeof Me=="number"&&(ie.scrollTop=Me)}this._callPropsCallbacks()},_t.componentDidUpdate=function(){var Ge=this.props.direction,st=this.state,Me=st.scrollLeft,ie=st.scrollTop,ge=st.scrollUpdateWasRequested;if(ge&&this._outerRef!=null){var z=this._outerRef;if(Ge==="rtl")switch(D()){case"negative":z.scrollLeft=-Me;break;case"positive-ascending":z.scrollLeft=Me;break;default:var be=z.clientWidth,Qe=z.scrollWidth;z.scrollLeft=Qe-be-Me;break}else z.scrollLeft=Math.max(0,Me);z.scrollTop=Math.max(0,ie)}this._callPropsCallbacks()},_t.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&w(this._resetIsScrollingTimeoutId)},_t.render=function(){var Ge=this.props,st=Ge.children,Me=Ge.className,ie=Ge.columnCount,ge=Ge.direction,z=Ge.height,be=Ge.innerRef,Qe=Ge.innerElementType,Bt=Ge.innerTagName,nn=Ge.itemData,bt=Ge.itemKey,at=bt===void 0?T:bt,$t=Ge.outerElementType,On=Ge.outerTagName,Ct=Ge.rowCount,Zt=Ge.style,Wn=Ge.useIsScrolling,Zn=Ge.width,xt=this.state.isScrolling,Xe=this._getHorizontalRangeToRender(),gn=Xe[0],Qt=Xe[1],Dt=this._getVerticalRangeToRender(),hn=Dt[0],cn=Dt[1],an=[];if(ie>0&&Ct)for(var Or=hn;Or<=cn;Or++)for(var Ln=gn;Ln<=Qt;Ln++)an.push((0,h.createElement)(st,{columnIndex:Ln,data:nn,isScrolling:Wn?xt:void 0,key:at({columnIndex:Ln,data:nn,rowIndex:Or}),rowIndex:Or,style:this._getItemStyle(Or,Ln)}));var En=it(this.props,this._instanceProps),Gn=At(this.props,this._instanceProps);return(0,h.createElement)($t||On||"div",{className:Me,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,i.A)({position:"relative",height:z,width:Zn,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:ge},Zt)},(0,h.createElement)(Qe||Bt||"div",{children:an,ref:be,style:{height:En,pointerEvents:xt?"none":void 0,width:Gn}}))},_t._callPropsCallbacks=function(){var Ge=this.props,st=Ge.columnCount,Me=Ge.onItemsRendered,ie=Ge.onScroll,ge=Ge.rowCount;if(typeof Me=="function"&&st>0&&ge>0){var z=this._getHorizontalRangeToRender(),be=z[0],Qe=z[1],Bt=z[2],nn=z[3],bt=this._getVerticalRangeToRender(),at=bt[0],$t=bt[1],On=bt[2],Ct=bt[3];this._callOnItemsRendered(be,Qe,at,$t,Bt,nn,On,Ct)}if(typeof ie=="function"){var Zt=this.state,Wn=Zt.horizontalScrollDirection,Zn=Zt.scrollLeft,xt=Zt.scrollTop,Xe=Zt.scrollUpdateWasRequested,gn=Zt.verticalScrollDirection;this._callOnScroll(Zn,xt,Wn,gn,Xe)}},_t._getHorizontalRangeToRender=function(){var Ge=this.props,st=Ge.columnCount,Me=Ge.overscanColumnCount,ie=Ge.overscanColumnsCount,ge=Ge.overscanCount,z=Ge.rowCount,be=this.state,Qe=be.horizontalScrollDirection,Bt=be.isScrolling,nn=be.scrollLeft,bt=Me||ie||ge||1;if(st===0||z===0)return[0,0,0,0];var at=wt(this.props,nn,this._instanceProps),$t=Ut(this.props,at,nn,this._instanceProps),On=!Bt||Qe==="backward"?Math.max(1,bt):1,Ct=!Bt||Qe==="forward"?Math.max(1,bt):1;return[Math.max(0,at-On),Math.max(0,Math.min(st-1,$t+Ct)),at,$t]},_t._getVerticalRangeToRender=function(){var Ge=this.props,st=Ge.columnCount,Me=Ge.overscanCount,ie=Ge.overscanRowCount,ge=Ge.overscanRowsCount,z=Ge.rowCount,be=this.state,Qe=be.isScrolling,Bt=be.verticalScrollDirection,nn=be.scrollTop,bt=ie||ge||Me||1;if(st===0||z===0)return[0,0,0,0];var at=ue(this.props,nn,this._instanceProps),$t=De(this.props,at,nn,this._instanceProps),On=!Qe||Bt==="backward"?Math.max(1,bt):1,Ct=!Qe||Bt==="forward"?Math.max(1,bt):1;return[Math.max(0,at-On),Math.max(0,Math.min(z-1,$t+Ct)),at,$t]},We}(h.PureComponent),Ye.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},Ye}var N=function(Ye,ft){var wt=Ye.children,Ut=Ye.direction,Ke=Ye.height,it=Ye.innerTagName,At=Ye.outerTagName,et=Ye.overscanColumnsCount,ee=Ye.overscanCount,I=Ye.overscanRowsCount,K=Ye.width,ue=ft.instance},W=50,he=function(Ye,ft){var wt=Ye.rowCount,Ut=ft.rowMetadataMap,Ke=ft.estimatedRowHeight,it=ft.lastMeasuredRowIndex,At=0;if(it>=wt&&(it=wt-1),it>=0){var et=Ut[it];At=et.offset+et.size}var ee=wt-it-1,I=ee*Ke;return At+I},me=function(Ye,ft){var wt=Ye.columnCount,Ut=ft.columnMetadataMap,Ke=ft.estimatedColumnWidth,it=ft.lastMeasuredColumnIndex,At=0;if(it>=wt&&(it=wt-1),it>=0){var et=Ut[it];At=et.offset+et.size}var ee=wt-it-1,I=ee*Ke;return At+I},fe=function(Ye,ft,wt,Ut){var Ke,it,At;if(Ye==="column"?(Ke=Ut.columnMetadataMap,it=ft.columnWidth,At=Ut.lastMeasuredColumnIndex):(Ke=Ut.rowMetadataMap,it=ft.rowHeight,At=Ut.lastMeasuredRowIndex),wt>At){var et=0;if(At>=0){var ee=Ke[At];et=ee.offset+ee.size}for(var I=At+1;I<=wt;I++){var K=it(I);Ke[I]={offset:et,size:K},et+=K}Ye==="column"?Ut.lastMeasuredColumnIndex=wt:Ut.lastMeasuredRowIndex=wt}return Ke[wt]},ve=function(Ye,ft,wt,Ut){var Ke,it;Ye==="column"?(Ke=wt.columnMetadataMap,it=wt.lastMeasuredColumnIndex):(Ke=wt.rowMetadataMap,it=wt.lastMeasuredRowIndex);var At=it>0?Ke[it].offset:0;return At>=Ut?ce(Ye,ft,wt,it,0,Ut):oe(Ye,ft,wt,Math.max(0,it),Ut)},ce=function(Ye,ft,wt,Ut,Ke,it){for(;Ke<=Ut;){var At=Ke+Math.floor((Ut-Ke)/2),et=fe(Ye,ft,At,wt).offset;if(et===it)return At;et<it?Ke=At+1:et>it&&(Ut=At-1)}return Ke>0?Ke-1:0},oe=function(Ye,ft,wt,Ut,Ke){for(var it=Ye==="column"?ft.columnCount:ft.rowCount,At=1;Ut<it&&fe(Ye,ft,Ut,wt).offset<Ke;)Ut+=At,At*=2;return ce(Ye,ft,wt,Math.min(Ut,it-1),Math.floor(Ut/2),Ke)},re=function(Ye,ft,wt,Ut,Ke,it,At){var et=Ye==="column"?ft.width:ft.height,ee=fe(Ye,ft,wt,it),I=Ye==="column"?me(ft,it):he(ft,it),K=Math.max(0,Math.min(I-et,ee.offset)),ue=Math.max(0,ee.offset-et+At+ee.size);switch(Ut==="smart"&&(Ke>=ue-et&&Ke<=K+et?Ut="auto":Ut="center"),Ut){case"start":return K;case"end":return ue;case"center":return Math.round(ue+(K-ue)/2);case"auto":default:return Ke>=ue&&Ke<=K?Ke:ue>K||Ke<ue?ue:K}},H=_({getColumnOffset:function(Ye,ft,wt){return fe("column",Ye,ft,wt).offset},getColumnStartIndexForOffset:function(Ye,ft,wt){return ve("column",Ye,wt,ft)},getColumnStopIndexForStartIndex:function(Ye,ft,wt,Ut){for(var Ke=Ye.columnCount,it=Ye.width,At=fe("column",Ye,ft,Ut),et=wt+it,ee=At.offset+At.size,I=ft;I<Ke-1&&ee<et;)I++,ee+=fe("column",Ye,I,Ut).size;return I},getColumnWidth:function(Ye,ft,wt){return wt.columnMetadataMap[ft].size},getEstimatedTotalHeight:he,getEstimatedTotalWidth:me,getOffsetForColumnAndAlignment:function(Ye,ft,wt,Ut,Ke,it){return re("column",Ye,ft,wt,Ut,Ke,it)},getOffsetForRowAndAlignment:function(Ye,ft,wt,Ut,Ke,it){return re("row",Ye,ft,wt,Ut,Ke,it)},getRowOffset:function(Ye,ft,wt){return fe("row",Ye,ft,wt).offset},getRowHeight:function(Ye,ft,wt){return wt.rowMetadataMap[ft].size},getRowStartIndexForOffset:function(Ye,ft,wt){return ve("row",Ye,wt,ft)},getRowStopIndexForStartIndex:function(Ye,ft,wt,Ut){for(var Ke=Ye.rowCount,it=Ye.height,At=fe("row",Ye,ft,Ut),et=wt+it,ee=At.offset+At.size,I=ft;I<Ke-1&&ee<et;)I++,ee+=fe("row",Ye,I,Ut).size;return I},initInstanceProps:function(Ye,ft){var wt=Ye,Ut=wt.estimatedColumnWidth,Ke=wt.estimatedRowHeight,it={columnMetadataMap:{},estimatedColumnWidth:Ut||W,estimatedRowHeight:Ke||W,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return ft.resetAfterColumnIndex=function(At,et){et===void 0&&(et=!0),ft.resetAfterIndices({columnIndex:At,shouldForceUpdate:et})},ft.resetAfterRowIndex=function(At,et){et===void 0&&(et=!0),ft.resetAfterIndices({rowIndex:At,shouldForceUpdate:et})},ft.resetAfterIndices=function(At){var et=At.columnIndex,ee=At.rowIndex,I=At.shouldForceUpdate,K=I===void 0?!0:I;typeof et=="number"&&(it.lastMeasuredColumnIndex=Math.min(it.lastMeasuredColumnIndex,et-1)),typeof ee=="number"&&(it.lastMeasuredRowIndex=Math.min(it.lastMeasuredRowIndex,ee-1)),ft._getItemStyleCache(-1),K&&ft.forceUpdate()},it},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(Ye){var ft=Ye.columnWidth,wt=Ye.rowHeight}}),V=150,Q=function(Ye,ft){return Ye},Te=null,Re=null;function ne(ke){var Ye,ft=ke.getItemOffset,wt=ke.getEstimatedTotalSize,Ut=ke.getItemSize,Ke=ke.getOffsetForIndexAndAlignment,it=ke.getStartIndexForOffset,At=ke.getStopIndexForStartIndex,et=ke.initInstanceProps,ee=ke.shouldResetStyleCacheOnItemSizeChange,I=ke.validateProps;return Ye=function(K){(0,s.A)(ue,K);function ue(He){var Fe;return Fe=K.call(this,He)||this,Fe._instanceProps=et(Fe.props,(0,l.A)(Fe)),Fe._outerRef=void 0,Fe._resetIsScrollingTimeoutId=null,Fe.state={instance:(0,l.A)(Fe),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof Fe.props.initialScrollOffset=="number"?Fe.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},Fe._callOnItemsRendered=void 0,Fe._callOnItemsRendered=v(function(ze,qe,We,_t){return Fe.props.onItemsRendered({overscanStartIndex:ze,overscanStopIndex:qe,visibleStartIndex:We,visibleStopIndex:_t})}),Fe._callOnScroll=void 0,Fe._callOnScroll=v(function(ze,qe,We){return Fe.props.onScroll({scrollDirection:ze,scrollOffset:qe,scrollUpdateWasRequested:We})}),Fe._getItemStyle=void 0,Fe._getItemStyle=function(ze){var qe=Fe.props,We=qe.direction,_t=qe.itemSize,ct=qe.layout,Ge=Fe._getItemStyleCache(ee&&_t,ee&&ct,ee&&We),st;if(Ge.hasOwnProperty(ze))st=Ge[ze];else{var Me=ft(Fe.props,ze,Fe._instanceProps),ie=Ut(Fe.props,ze,Fe._instanceProps),ge=We==="horizontal"||ct==="horizontal",z=We==="rtl",be=ge?Me:0;Ge[ze]=st={position:"absolute",left:z?void 0:be,right:z?be:void 0,top:ge?0:Me,height:ge?"100%":ie,width:ge?ie:"100%"}}return st},Fe._getItemStyleCache=void 0,Fe._getItemStyleCache=v(function(ze,qe,We){return{}}),Fe._onScrollHorizontal=function(ze){var qe=ze.currentTarget,We=qe.clientWidth,_t=qe.scrollLeft,ct=qe.scrollWidth;Fe.setState(function(Ge){if(Ge.scrollOffset===_t)return null;var st=Fe.props.direction,Me=_t;if(st==="rtl")switch(D()){case"negative":Me=-_t;break;case"positive-descending":Me=ct-We-_t;break}return Me=Math.max(0,Math.min(Me,ct-We)),{isScrolling:!0,scrollDirection:Ge.scrollOffset<Me?"forward":"backward",scrollOffset:Me,scrollUpdateWasRequested:!1}},Fe._resetIsScrollingDebounced)},Fe._onScrollVertical=function(ze){var qe=ze.currentTarget,We=qe.clientHeight,_t=qe.scrollHeight,ct=qe.scrollTop;Fe.setState(function(Ge){if(Ge.scrollOffset===ct)return null;var st=Math.max(0,Math.min(ct,_t-We));return{isScrolling:!0,scrollDirection:Ge.scrollOffset<st?"forward":"backward",scrollOffset:st,scrollUpdateWasRequested:!1}},Fe._resetIsScrollingDebounced)},Fe._outerRefSetter=function(ze){var qe=Fe.props.outerRef;Fe._outerRef=ze,typeof qe=="function"?qe(ze):qe!=null&&typeof qe=="object"&&qe.hasOwnProperty("current")&&(qe.current=ze)},Fe._resetIsScrollingDebounced=function(){Fe._resetIsScrollingTimeoutId!==null&&w(Fe._resetIsScrollingTimeoutId),Fe._resetIsScrollingTimeoutId=S(Fe._resetIsScrolling,V)},Fe._resetIsScrolling=function(){Fe._resetIsScrollingTimeoutId=null,Fe.setState({isScrolling:!1},function(){Fe._getItemStyleCache(-1,null)})},Fe}ue.getDerivedStateFromProps=function(Fe,ze){return pe(Fe,ze),I(Fe),null};var De=ue.prototype;return De.scrollTo=function(Fe){Fe=Math.max(0,Fe),this.setState(function(ze){return ze.scrollOffset===Fe?null:{scrollDirection:ze.scrollOffset<Fe?"forward":"backward",scrollOffset:Fe,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},De.scrollToItem=function(Fe,ze){ze===void 0&&(ze="auto");var qe=this.props,We=qe.itemCount,_t=qe.layout,ct=this.state.scrollOffset;Fe=Math.max(0,Math.min(Fe,We-1));var Ge=0;if(this._outerRef){var st=this._outerRef;_t==="vertical"?Ge=st.scrollWidth>st.clientWidth?R():0:Ge=st.scrollHeight>st.clientHeight?R():0}this.scrollTo(Ke(this.props,Fe,ze,ct,this._instanceProps,Ge))},De.componentDidMount=function(){var Fe=this.props,ze=Fe.direction,qe=Fe.initialScrollOffset,We=Fe.layout;if(typeof qe=="number"&&this._outerRef!=null){var _t=this._outerRef;ze==="horizontal"||We==="horizontal"?_t.scrollLeft=qe:_t.scrollTop=qe}this._callPropsCallbacks()},De.componentDidUpdate=function(){var Fe=this.props,ze=Fe.direction,qe=Fe.layout,We=this.state,_t=We.scrollOffset,ct=We.scrollUpdateWasRequested;if(ct&&this._outerRef!=null){var Ge=this._outerRef;if(ze==="horizontal"||qe==="horizontal")if(ze==="rtl")switch(D()){case"negative":Ge.scrollLeft=-_t;break;case"positive-ascending":Ge.scrollLeft=_t;break;default:var st=Ge.clientWidth,Me=Ge.scrollWidth;Ge.scrollLeft=Me-st-_t;break}else Ge.scrollLeft=_t;else Ge.scrollTop=_t}this._callPropsCallbacks()},De.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&w(this._resetIsScrollingTimeoutId)},De.render=function(){var Fe=this.props,ze=Fe.children,qe=Fe.className,We=Fe.direction,_t=Fe.height,ct=Fe.innerRef,Ge=Fe.innerElementType,st=Fe.innerTagName,Me=Fe.itemCount,ie=Fe.itemData,ge=Fe.itemKey,z=ge===void 0?Q:ge,be=Fe.layout,Qe=Fe.outerElementType,Bt=Fe.outerTagName,nn=Fe.style,bt=Fe.useIsScrolling,at=Fe.width,$t=this.state.isScrolling,On=We==="horizontal"||be==="horizontal",Ct=On?this._onScrollHorizontal:this._onScrollVertical,Zt=this._getRangeToRender(),Wn=Zt[0],Zn=Zt[1],xt=[];if(Me>0)for(var Xe=Wn;Xe<=Zn;Xe++)xt.push((0,h.createElement)(ze,{data:ie,key:z(Xe,ie),index:Xe,isScrolling:bt?$t:void 0,style:this._getItemStyle(Xe)}));var gn=wt(this.props,this._instanceProps);return(0,h.createElement)(Qe||Bt||"div",{className:qe,onScroll:Ct,ref:this._outerRefSetter,style:(0,i.A)({position:"relative",height:_t,width:at,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:We},nn)},(0,h.createElement)(Ge||st||"div",{children:xt,ref:ct,style:{height:On?"100%":gn,pointerEvents:$t?"none":void 0,width:On?gn:"100%"}}))},De._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var Fe=this.props.itemCount;if(Fe>0){var ze=this._getRangeToRender(),qe=ze[0],We=ze[1],_t=ze[2],ct=ze[3];this._callOnItemsRendered(qe,We,_t,ct)}}if(typeof this.props.onScroll=="function"){var Ge=this.state,st=Ge.scrollDirection,Me=Ge.scrollOffset,ie=Ge.scrollUpdateWasRequested;this._callOnScroll(st,Me,ie)}},De._getRangeToRender=function(){var Fe=this.props,ze=Fe.itemCount,qe=Fe.overscanCount,We=this.state,_t=We.isScrolling,ct=We.scrollDirection,Ge=We.scrollOffset;if(ze===0)return[0,0,0,0];var st=it(this.props,Ge,this._instanceProps),Me=At(this.props,st,Ge,this._instanceProps),ie=!_t||ct==="backward"?Math.max(1,qe):1,ge=!_t||ct==="forward"?Math.max(1,qe):1;return[Math.max(0,st-ie),Math.max(0,Math.min(ze-1,Me+ge)),st,Me]},ue}(h.PureComponent),Ye.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},Ye}var pe=function(Ye,ft){var wt=Ye.children,Ut=Ye.direction,Ke=Ye.height,it=Ye.layout,At=Ye.innerTagName,et=Ye.outerTagName,ee=Ye.width,I=ft.instance;if(!1)var K},ye=50,Se=function(Ye,ft,wt){var Ut=Ye,Ke=Ut.itemSize,it=wt.itemMetadataMap,At=wt.lastMeasuredIndex;if(ft>At){var et=0;if(At>=0){var ee=it[At];et=ee.offset+ee.size}for(var I=At+1;I<=ft;I++){var K=Ke(I);it[I]={offset:et,size:K},et+=K}wt.lastMeasuredIndex=ft}return it[ft]},Ae=function(Ye,ft,wt){var Ut=ft.itemMetadataMap,Ke=ft.lastMeasuredIndex,it=Ke>0?Ut[Ke].offset:0;return it>=wt?Ee(Ye,ft,Ke,0,wt):xe(Ye,ft,Math.max(0,Ke),wt)},Ee=function(Ye,ft,wt,Ut,Ke){for(;Ut<=wt;){var it=Ut+Math.floor((wt-Ut)/2),At=Se(Ye,it,ft).offset;if(At===Ke)return it;At<Ke?Ut=it+1:At>Ke&&(wt=it-1)}return Ut>0?Ut-1:0},xe=function(Ye,ft,wt,Ut){for(var Ke=Ye.itemCount,it=1;wt<Ke&&Se(Ye,wt,ft).offset<Ut;)wt+=it,it*=2;return Ee(Ye,ft,Math.min(wt,Ke-1),Math.floor(wt/2),Ut)},nt=function(Ye,ft){var wt=Ye.itemCount,Ut=ft.itemMetadataMap,Ke=ft.estimatedItemSize,it=ft.lastMeasuredIndex,At=0;if(it>=wt&&(it=wt-1),it>=0){var et=Ut[it];At=et.offset+et.size}var ee=wt-it-1,I=ee*Ke;return At+I},Tt=ne({getItemOffset:function(Ye,ft,wt){return Se(Ye,ft,wt).offset},getItemSize:function(Ye,ft,wt){return wt.itemMetadataMap[ft].size},getEstimatedTotalSize:nt,getOffsetForIndexAndAlignment:function(Ye,ft,wt,Ut,Ke,it){var At=Ye.direction,et=Ye.height,ee=Ye.layout,I=Ye.width,K=At==="horizontal"||ee==="horizontal",ue=K?I:et,De=Se(Ye,ft,Ke),He=nt(Ye,Ke),Fe=Math.max(0,Math.min(He-ue,De.offset)),ze=Math.max(0,De.offset-ue+De.size+it);switch(wt==="smart"&&(Ut>=ze-ue&&Ut<=Fe+ue?wt="auto":wt="center"),wt){case"start":return Fe;case"end":return ze;case"center":return Math.round(ze+(Fe-ze)/2);case"auto":default:return Ut>=ze&&Ut<=Fe?Ut:Ut<ze?ze:Fe}},getStartIndexForOffset:function(Ye,ft,wt){return Ae(Ye,wt,ft)},getStopIndexForStartIndex:function(Ye,ft,wt,Ut){for(var Ke=Ye.direction,it=Ye.height,At=Ye.itemCount,et=Ye.layout,ee=Ye.width,I=Ke==="horizontal"||et==="horizontal",K=I?ee:it,ue=Se(Ye,ft,Ut),De=wt+K,He=ue.offset+ue.size,Fe=ft;Fe<At-1&&He<De;)Fe++,He+=Se(Ye,Fe,Ut).size;return Fe},initInstanceProps:function(Ye,ft){var wt=Ye,Ut=wt.estimatedItemSize,Ke={itemMetadataMap:{},estimatedItemSize:Ut||ye,lastMeasuredIndex:-1};return ft.resetAfterIndex=function(it,At){At===void 0&&(At=!0),Ke.lastMeasuredIndex=Math.min(Ke.lastMeasuredIndex,it-1),ft._getItemStyleCache(-1),At&&ft.forceUpdate()},Ke},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(Ye){var ft=Ye.itemSize}}),pt=_({getColumnOffset:function(Ye,ft){var wt=Ye.columnWidth;return ft*wt},getColumnWidth:function(Ye,ft){var wt=Ye.columnWidth;return wt},getRowOffset:function(Ye,ft){var wt=Ye.rowHeight;return ft*wt},getRowHeight:function(Ye,ft){var wt=Ye.rowHeight;return wt},getEstimatedTotalHeight:function(Ye){var ft=Ye.rowCount,wt=Ye.rowHeight;return wt*ft},getEstimatedTotalWidth:function(Ye){var ft=Ye.columnCount,wt=Ye.columnWidth;return wt*ft},getOffsetForColumnAndAlignment:function(Ye,ft,wt,Ut,Ke,it){var At=Ye.columnCount,et=Ye.columnWidth,ee=Ye.width,I=Math.max(0,At*et-ee),K=Math.min(I,ft*et),ue=Math.max(0,ft*et-ee+it+et);switch(wt==="smart"&&(Ut>=ue-ee&&Ut<=K+ee?wt="auto":wt="center"),wt){case"start":return K;case"end":return ue;case"center":var De=Math.round(ue+(K-ue)/2);return De<Math.ceil(ee/2)?0:De>I+Math.floor(ee/2)?I:De;case"auto":default:return Ut>=ue&&Ut<=K?Ut:ue>K||Ut<ue?ue:K}},getOffsetForRowAndAlignment:function(Ye,ft,wt,Ut,Ke,it){var At=Ye.rowHeight,et=Ye.height,ee=Ye.rowCount,I=Math.max(0,ee*At-et),K=Math.min(I,ft*At),ue=Math.max(0,ft*At-et+it+At);switch(wt==="smart"&&(Ut>=ue-et&&Ut<=K+et?wt="auto":wt="center"),wt){case"start":return K;case"end":return ue;case"center":var De=Math.round(ue+(K-ue)/2);return De<Math.ceil(et/2)?0:De>I+Math.floor(et/2)?I:De;case"auto":default:return Ut>=ue&&Ut<=K?Ut:ue>K||Ut<ue?ue:K}},getColumnStartIndexForOffset:function(Ye,ft){var wt=Ye.columnWidth,Ut=Ye.columnCount;return Math.max(0,Math.min(Ut-1,Math.floor(ft/wt)))},getColumnStopIndexForStartIndex:function(Ye,ft,wt){var Ut=Ye.columnWidth,Ke=Ye.columnCount,it=Ye.width,At=ft*Ut,et=Math.ceil((it+wt-At)/Ut);return Math.max(0,Math.min(Ke-1,ft+et-1))},getRowStartIndexForOffset:function(Ye,ft){var wt=Ye.rowHeight,Ut=Ye.rowCount;return Math.max(0,Math.min(Ut-1,Math.floor(ft/wt)))},getRowStopIndexForStartIndex:function(Ye,ft,wt){var Ut=Ye.rowHeight,Ke=Ye.rowCount,it=Ye.height,At=ft*Ut,et=Math.ceil((it+wt-At)/Ut);return Math.max(0,Math.min(Ke-1,ft+et-1))},initInstanceProps:function(Ye){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(Ye){var ft=Ye.columnWidth,wt=Ye.rowHeight}}),Rt=ne({getItemOffset:function(Ye,ft){var wt=Ye.itemSize;return ft*wt},getItemSize:function(Ye,ft){var wt=Ye.itemSize;return wt},getEstimatedTotalSize:function(Ye){var ft=Ye.itemCount,wt=Ye.itemSize;return wt*ft},getOffsetForIndexAndAlignment:function(Ye,ft,wt,Ut,Ke,it){var At=Ye.direction,et=Ye.height,ee=Ye.itemCount,I=Ye.itemSize,K=Ye.layout,ue=Ye.width,De=At==="horizontal"||K==="horizontal",He=De?ue:et,Fe=Math.max(0,ee*I-He),ze=Math.min(Fe,ft*I),qe=Math.max(0,ft*I-He+I+it);switch(wt==="smart"&&(Ut>=qe-He&&Ut<=ze+He?wt="auto":wt="center"),wt){case"start":return ze;case"end":return qe;case"center":{var We=Math.round(qe+(ze-qe)/2);return We<Math.ceil(He/2)?0:We>Fe+Math.floor(He/2)?Fe:We}case"auto":default:return Ut>=qe&&Ut<=ze?Ut:Ut<qe?qe:ze}},getStartIndexForOffset:function(Ye,ft){var wt=Ye.itemCount,Ut=Ye.itemSize;return Math.max(0,Math.min(wt-1,Math.floor(ft/Ut)))},getStopIndexForStartIndex:function(Ye,ft,wt){var Ut=Ye.direction,Ke=Ye.height,it=Ye.itemCount,At=Ye.itemSize,et=Ye.layout,ee=Ye.width,I=Ut==="horizontal"||et==="horizontal",K=ft*At,ue=I?ee:Ke,De=Math.ceil((ue+wt-K)/At);return Math.max(0,Math.min(it-1,ft+De-1))},initInstanceProps:function(Ye){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(Ye){var ft=Ye.itemSize}});function tt(ke,Ye){for(var ft in ke)if(!(ft in Ye))return!0;for(var wt in Ye)if(ke[wt]!==Ye[wt])return!0;return!1}var U=["style"],F=["style"];function Y(ke,Ye){var ft=ke.style,wt=(0,d.A)(ke,U),Ut=Ye.style,Ke=(0,d.A)(Ye,F);return!tt(ft,Ut)&&!tt(wt,Ke)}function le(ke,Ye){return!Y(this.props,ke)||tt(this.state,Ye)}},15287:(J,g)=>{"use strict";/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.iterator;function y(Q){return Q===null||typeof Q!="object"?null:(Q=b&&Q[b]||Q["@@iterator"],typeof Q=="function"?Q:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,O={};function R(Q,Te,Re){this.props=Q,this.context=Te,this.refs=O,this.updater=Re||w}R.prototype.isReactComponent={},R.prototype.setState=function(Q,Te){if(typeof Q!="object"&&typeof Q!="function"&&Q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Q,Te,"setState")},R.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function M(){}M.prototype=R.prototype;function D(Q,Te,Re){this.props=Q,this.context=Te,this.refs=O,this.updater=Re||w}var P=D.prototype=new M;P.constructor=D,S(P,R.prototype),P.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function _(Q,Te,Re){var ne,pe={},ye=null,Se=null;if(Te!=null)for(ne in Te.ref!==void 0&&(Se=Te.ref),Te.key!==void 0&&(ye=""+Te.key),Te)A.call(Te,ne)&&!ae.hasOwnProperty(ne)&&(pe[ne]=Te[ne]);var Ae=arguments.length-2;if(Ae===1)pe.children=Re;else if(1<Ae){for(var Ee=Array(Ae),xe=0;xe<Ae;xe++)Ee[xe]=arguments[xe+2];pe.children=Ee}if(Q&&Q.defaultProps)for(ne in Ae=Q.defaultProps,Ae)pe[ne]===void 0&&(pe[ne]=Ae[ne]);return{$$typeof:t,type:Q,key:ye,ref:Se,props:pe,_owner:j.current}}function N(Q,Te){return{$$typeof:t,type:Q.type,key:Te,ref:Q.ref,props:Q.props,_owner:Q._owner}}function W(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function he(Q){var Te={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(Re){return Te[Re]})}var me=/\/+/g;function fe(Q,Te){return typeof Q=="object"&&Q!==null&&Q.key!=null?he(""+Q.key):Te.toString(36)}function ve(Q,Te,Re,ne,pe){var ye=typeof Q;(ye==="undefined"||ye==="boolean")&&(Q=null);var Se=!1;if(Q===null)Se=!0;else switch(ye){case"string":case"number":Se=!0;break;case"object":switch(Q.$$typeof){case t:case i:Se=!0}}if(Se)return Se=Q,pe=pe(Se),Q=ne===""?"."+fe(Se,0):ne,T(pe)?(Re="",Q!=null&&(Re=Q.replace(me,"$&/")+"/"),ve(pe,Te,Re,"",function(xe){return xe})):pe!=null&&(W(pe)&&(pe=N(pe,Re+(!pe.key||Se&&Se.key===pe.key?"":(""+pe.key).replace(me,"$&/")+"/")+Q)),Te.push(pe)),1;if(Se=0,ne=ne===""?".":ne+":",T(Q))for(var Ae=0;Ae<Q.length;Ae++){ye=Q[Ae];var Ee=ne+fe(ye,Ae);Se+=ve(ye,Te,Re,Ee,pe)}else if(Ee=y(Q),typeof Ee=="function")for(Q=Ee.call(Q),Ae=0;!(ye=Q.next()).done;)ye=ye.value,Ee=ne+fe(ye,Ae++),Se+=ve(ye,Te,Re,Ee,pe);else if(ye==="object")throw Te=String(Q),Error("Objects are not valid as a React child (found: "+(Te==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":Te)+"). If you meant to render a collection of children, use an array instead.");return Se}function ce(Q,Te,Re){if(Q==null)return Q;var ne=[],pe=0;return ve(Q,ne,"","",function(ye){return Te.call(Re,ye,pe++)}),ne}function oe(Q){if(Q._status===-1){var Te=Q._result;Te=Te(),Te.then(function(Re){(Q._status===0||Q._status===-1)&&(Q._status=1,Q._result=Re)},function(Re){(Q._status===0||Q._status===-1)&&(Q._status=2,Q._result=Re)}),Q._status===-1&&(Q._status=0,Q._result=Te)}if(Q._status===1)return Q._result.default;throw Q._result}var re={current:null},H={transition:null},V={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:H,ReactCurrentOwner:j};g.Children={map:ce,forEach:function(Q,Te,Re){ce(Q,function(){Te.apply(this,arguments)},Re)},count:function(Q){var Te=0;return ce(Q,function(){Te++}),Te},toArray:function(Q){return ce(Q,function(Te){return Te})||[]},only:function(Q){if(!W(Q))throw Error("React.Children.only expected to receive a single React element child.");return Q}},g.Component=R,g.Fragment=l,g.Profiler=m,g.PureComponent=D,g.StrictMode=s,g.Suspense=v,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,g.cloneElement=function(Q,Te,Re){if(Q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Q+".");var ne=S({},Q.props),pe=Q.key,ye=Q.ref,Se=Q._owner;if(Te!=null){if(Te.ref!==void 0&&(ye=Te.ref,Se=j.current),Te.key!==void 0&&(pe=""+Te.key),Q.type&&Q.type.defaultProps)var Ae=Q.type.defaultProps;for(Ee in Te)A.call(Te,Ee)&&!ae.hasOwnProperty(Ee)&&(ne[Ee]=Te[Ee]===void 0&&Ae!==void 0?Ae[Ee]:Te[Ee])}var Ee=arguments.length-2;if(Ee===1)ne.children=Re;else if(1<Ee){Ae=Array(Ee);for(var xe=0;xe<Ee;xe++)Ae[xe]=arguments[xe+2];ne.children=Ae}return{$$typeof:t,type:Q.type,key:pe,ref:ye,props:ne,_owner:Se}},g.createContext=function(Q){return Q={$$typeof:f,_currentValue:Q,_currentValue2:Q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Q.Provider={$$typeof:u,_context:Q},Q.Consumer=Q},g.createElement=_,g.createFactory=function(Q){var Te=_.bind(null,Q);return Te.type=Q,Te},g.createRef=function(){return{current:null}},g.forwardRef=function(Q){return{$$typeof:p,render:Q}},g.isValidElement=W,g.lazy=function(Q){return{$$typeof:d,_payload:{_status:-1,_result:Q},_init:oe}},g.memo=function(Q,Te){return{$$typeof:h,type:Q,compare:Te===void 0?null:Te}},g.startTransition=function(Q){var Te=H.transition;H.transition={};try{Q()}finally{H.transition=Te}},g.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},g.useCallback=function(Q,Te){return re.current.useCallback(Q,Te)},g.useContext=function(Q){return re.current.useContext(Q)},g.useDebugValue=function(){},g.useDeferredValue=function(Q){return re.current.useDeferredValue(Q)},g.useEffect=function(Q,Te){return re.current.useEffect(Q,Te)},g.useId=function(){return re.current.useId()},g.useImperativeHandle=function(Q,Te,Re){return re.current.useImperativeHandle(Q,Te,Re)},g.useInsertionEffect=function(Q,Te){return re.current.useInsertionEffect(Q,Te)},g.useLayoutEffect=function(Q,Te){return re.current.useLayoutEffect(Q,Te)},g.useMemo=function(Q,Te){return re.current.useMemo(Q,Te)},g.useReducer=function(Q,Te,Re){return re.current.useReducer(Q,Te,Re)},g.useRef=function(Q){return re.current.useRef(Q)},g.useState=function(Q){return re.current.useState(Q)},g.useSyncExternalStore=function(Q,Te,Re){return re.current.useSyncExternalStore(Q,Te,Re)},g.useTransition=function(){return re.current.useTransition()},g.version="18.2.0"},96540:(J,g,t)=>{"use strict";J.exports=t(15287)},82960:(J,g,t)=>{"use strict";t.r(g),t.d(g,{__DO_NOT_USE__ActionTypes:()=>u,applyMiddleware:()=>A,bindActionCreators:()=>P,combineReducers:()=>M,compose:()=>T,createStore:()=>y,legacy_createStore:()=>w});var i=t(89379);function l(j){return"Minified Redux error #"+j+"; visit https://redux.js.org/Errors?code="+j+" for the full message or use the non-minified dev environment for full errors. "}var s=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),m=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+m(),REPLACE:"@@redux/REPLACE"+m(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+m()}};function f(j){if(typeof j!="object"||j===null)return!1;for(var ae=j;Object.getPrototypeOf(ae)!==null;)ae=Object.getPrototypeOf(ae);return Object.getPrototypeOf(j)===ae}function p(j){if(j===void 0)return"undefined";if(j===null)return"null";var ae=typeof j;switch(ae){case"boolean":case"string":case"number":case"symbol":case"function":return ae}if(Array.isArray(j))return"array";if(d(j))return"date";if(h(j))return"error";var _=v(j);switch(_){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return _}return ae.slice(8,-1).toLowerCase().replace(/\s/g,"")}function v(j){return typeof j.constructor=="function"?j.constructor.name:null}function h(j){return j instanceof Error||typeof j.message=="string"&&j.constructor&&typeof j.constructor.stackTraceLimit=="number"}function d(j){return j instanceof Date?!0:typeof j.toDateString=="function"&&typeof j.getDate=="function"&&typeof j.setDate=="function"}function b(j){var ae=typeof j;return ae}function y(j,ae,_){var N;if(typeof ae=="function"&&typeof _=="function"||typeof _=="function"&&typeof arguments[3]=="function")throw new Error(l(0));if(typeof ae=="function"&&typeof _>"u"&&(_=ae,ae=void 0),typeof _<"u"){if(typeof _!="function")throw new Error(l(1));return _(y)(j,ae)}if(typeof j!="function")throw new Error(l(2));var W=j,he=ae,me=[],fe=me,ve=!1;function ce(){fe===me&&(fe=me.slice())}function oe(){if(ve)throw new Error(l(3));return he}function re(Te){if(typeof Te!="function")throw new Error(l(4));if(ve)throw new Error(l(5));var Re=!0;return ce(),fe.push(Te),function(){if(Re){if(ve)throw new Error(l(6));Re=!1,ce();var pe=fe.indexOf(Te);fe.splice(pe,1),me=null}}}function H(Te){if(!f(Te))throw new Error(l(7));if(typeof Te.type>"u")throw new Error(l(8));if(ve)throw new Error(l(9));try{ve=!0,he=W(he,Te)}finally{ve=!1}for(var Re=me=fe,ne=0;ne<Re.length;ne++){var pe=Re[ne];pe()}return Te}function V(Te){if(typeof Te!="function")throw new Error(l(10));W=Te,H({type:u.REPLACE})}function Q(){var Te,Re=re;return Te={subscribe:function(pe){if(typeof pe!="object"||pe===null)throw new Error(l(11));function ye(){pe.next&&pe.next(oe())}ye();var Se=Re(ye);return{unsubscribe:Se}}},Te[s]=function(){return this},Te}return H({type:u.INIT}),N={dispatch:H,subscribe:re,getState:oe,replaceReducer:V},N[s]=Q,N}var w=y;function S(j){typeof console<"u"&&typeof console.error=="function"&&console.error(j);try{throw new Error(j)}catch{}}function O(j,ae,_,N){var W=Object.keys(ae),he=_&&_.type===u.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(W.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!f(j))return"The "+he+' has unexpected type of "'+b(j)+'". Expected argument to be an object with the following '+('keys: "'+W.join('", "')+'"');var me=Object.keys(j).filter(function(fe){return!ae.hasOwnProperty(fe)&&!N[fe]});if(me.forEach(function(fe){N[fe]=!0}),!(_&&_.type===u.REPLACE)&&me.length>0)return"Unexpected "+(me.length>1?"keys":"key")+" "+('"'+me.join('", "')+'" found in '+he+". ")+"Expected to find one of the known reducer keys instead: "+('"'+W.join('", "')+'". Unexpected keys will be ignored.')}function R(j){Object.keys(j).forEach(function(ae){var _=j[ae],N=_(void 0,{type:u.INIT});if(typeof N>"u")throw new Error(l(12));if(typeof _(void 0,{type:u.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(l(13))})}function M(j){for(var ae=Object.keys(j),_={},N=0;N<ae.length;N++){var W=ae[N];typeof j[W]=="function"&&(_[W]=j[W])}var he=Object.keys(_),me,fe;try{R(_)}catch(ve){fe=ve}return function(ce,oe){if(ce===void 0&&(ce={}),fe)throw fe;if(!1)var re;for(var H=!1,V={},Q=0;Q<he.length;Q++){var Te=he[Q],Re=_[Te],ne=ce[Te],pe=Re(ne,oe);if(typeof pe>"u"){var ye=oe&&oe.type;throw new Error(l(14))}V[Te]=pe,H=H||pe!==ne}return H=H||he.length!==Object.keys(ce).length,H?V:ce}}function D(j,ae){return function(){return ae(j.apply(this,arguments))}}function P(j,ae){if(typeof j=="function")return D(j,ae);if(typeof j!="object"||j===null)throw new Error(l(16));var _={};for(var N in j){var W=j[N];typeof W=="function"&&(_[N]=D(W,ae))}return _}function T(){for(var j=arguments.length,ae=new Array(j),_=0;_<j;_++)ae[_]=arguments[_];return ae.length===0?function(N){return N}:ae.length===1?ae[0]:ae.reduce(function(N,W){return function(){return N(W.apply(void 0,arguments))}})}function A(){for(var j=arguments.length,ae=new Array(j),_=0;_<j;_++)ae[_]=arguments[_];return function(N){return function(){var W=N.apply(void 0,arguments),he=function(){throw new Error(l(15))},me={getState:W.getState,dispatch:function(){return he.apply(void 0,arguments)}},fe=ae.map(function(ve){return ve(me)});return he=T.apply(void 0,fe)(W.dispatch),(0,i.A)((0,i.A)({},W),{},{dispatch:he})}}}},7452:J=>{var g=function(t){"use strict";var i=Object.prototype,l=i.hasOwnProperty,s=Object.defineProperty||function(re,H,V){re[H]=V.value},m,u=typeof Symbol=="function"?Symbol:{},f=u.iterator||"@@iterator",p=u.asyncIterator||"@@asyncIterator",v=u.toStringTag||"@@toStringTag";function h(re,H,V){return Object.defineProperty(re,H,{value:V,enumerable:!0,configurable:!0,writable:!0}),re[H]}try{h({},"")}catch{h=function(H,V,Q){return H[V]=Q}}function d(re,H,V,Q){var Te=H&&H.prototype instanceof M?H:M,Re=Object.create(Te.prototype),ne=new ve(Q||[]);return s(Re,"_invoke",{value:W(re,V,ne)}),Re}t.wrap=d;function b(re,H,V){try{return{type:"normal",arg:re.call(H,V)}}catch(Q){return{type:"throw",arg:Q}}}var y="suspendedStart",w="suspendedYield",S="executing",O="completed",R={};function M(){}function D(){}function P(){}var T={};h(T,f,function(){return this});var A=Object.getPrototypeOf,j=A&&A(A(ce([])));j&&j!==i&&l.call(j,f)&&(T=j);var ae=P.prototype=M.prototype=Object.create(T);D.prototype=P,s(ae,"constructor",{value:P,configurable:!0}),s(P,"constructor",{value:D,configurable:!0}),D.displayName=h(P,v,"GeneratorFunction");function _(re){["next","throw","return"].forEach(function(H){h(re,H,function(V){return this._invoke(H,V)})})}t.isGeneratorFunction=function(re){var H=typeof re=="function"&&re.constructor;return H?H===D||(H.displayName||H.name)==="GeneratorFunction":!1},t.mark=function(re){return Object.setPrototypeOf?Object.setPrototypeOf(re,P):(re.__proto__=P,h(re,v,"GeneratorFunction")),re.prototype=Object.create(ae),re},t.awrap=function(re){return{__await:re}};function N(re,H){function V(Re,ne,pe,ye){var Se=b(re[Re],re,ne);if(Se.type==="throw")ye(Se.arg);else{var Ae=Se.arg,Ee=Ae.value;return Ee&&typeof Ee=="object"&&l.call(Ee,"__await")?H.resolve(Ee.__await).then(function(xe){V("next",xe,pe,ye)},function(xe){V("throw",xe,pe,ye)}):H.resolve(Ee).then(function(xe){Ae.value=xe,pe(Ae)},function(xe){return V("throw",xe,pe,ye)})}}var Q;function Te(Re,ne){function pe(){return new H(function(ye,Se){V(Re,ne,ye,Se)})}return Q=Q?Q.then(pe,pe):pe()}s(this,"_invoke",{value:Te})}_(N.prototype),h(N.prototype,p,function(){return this}),t.AsyncIterator=N,t.async=function(re,H,V,Q,Te){Te===void 0&&(Te=Promise);var Re=new N(d(re,H,V,Q),Te);return t.isGeneratorFunction(H)?Re:Re.next().then(function(ne){return ne.done?ne.value:Re.next()})};function W(re,H,V){var Q=y;return function(Re,ne){if(Q===S)throw new Error("Generator is already running");if(Q===O){if(Re==="throw")throw ne;return oe()}for(V.method=Re,V.arg=ne;;){var pe=V.delegate;if(pe){var ye=he(pe,V);if(ye){if(ye===R)continue;return ye}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(Q===y)throw Q=O,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);Q=S;var Se=b(re,H,V);if(Se.type==="normal"){if(Q=V.done?O:w,Se.arg===R)continue;return{value:Se.arg,done:V.done}}else Se.type==="throw"&&(Q=O,V.method="throw",V.arg=Se.arg)}}}function he(re,H){var V=H.method,Q=re.iterator[V];if(Q===m)return H.delegate=null,V==="throw"&&re.iterator.return&&(H.method="return",H.arg=m,he(re,H),H.method==="throw")||V!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+V+"' method")),R;var Te=b(Q,re.iterator,H.arg);if(Te.type==="throw")return H.method="throw",H.arg=Te.arg,H.delegate=null,R;var Re=Te.arg;if(!Re)return H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,R;if(Re.done)H[re.resultName]=Re.value,H.next=re.nextLoc,H.method!=="return"&&(H.method="next",H.arg=m);else return Re;return H.delegate=null,R}_(ae),h(ae,v,"Generator"),h(ae,f,function(){return this}),h(ae,"toString",function(){return"[object Generator]"});function me(re){var H={tryLoc:re[0]};1 in re&&(H.catchLoc=re[1]),2 in re&&(H.finallyLoc=re[2],H.afterLoc=re[3]),this.tryEntries.push(H)}function fe(re){var H=re.completion||{};H.type="normal",delete H.arg,re.completion=H}function ve(re){this.tryEntries=[{tryLoc:"root"}],re.forEach(me,this),this.reset(!0)}t.keys=function(re){var H=Object(re),V=[];for(var Q in H)V.push(Q);return V.reverse(),function Te(){for(;V.length;){var Re=V.pop();if(Re in H)return Te.value=Re,Te.done=!1,Te}return Te.done=!0,Te}};function ce(re){if(re!=null){var H=re[f];if(H)return H.call(re);if(typeof re.next=="function")return re;if(!isNaN(re.length)){var V=-1,Q=function Te(){for(;++V<re.length;)if(l.call(re,V))return Te.value=re[V],Te.done=!1,Te;return Te.value=m,Te.done=!0,Te};return Q.next=Q}}throw new TypeError(typeof re+" is not iterable")}t.values=ce;function oe(){return{value:m,done:!0}}return ve.prototype={constructor:ve,reset:function(re){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(fe),!re)for(var H in this)H.charAt(0)==="t"&&l.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=m)},stop:function(){this.done=!0;var re=this.tryEntries[0],H=re.completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(re){if(this.done)throw re;var H=this;function V(ye,Se){return Re.type="throw",Re.arg=re,H.next=ye,Se&&(H.method="next",H.arg=m),!!Se}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var Te=this.tryEntries[Q],Re=Te.completion;if(Te.tryLoc==="root")return V("end");if(Te.tryLoc<=this.prev){var ne=l.call(Te,"catchLoc"),pe=l.call(Te,"finallyLoc");if(ne&&pe){if(this.prev<Te.catchLoc)return V(Te.catchLoc,!0);if(this.prev<Te.finallyLoc)return V(Te.finallyLoc)}else if(ne){if(this.prev<Te.catchLoc)return V(Te.catchLoc,!0)}else if(pe){if(this.prev<Te.finallyLoc)return V(Te.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(re,H){for(var V=this.tryEntries.length-1;V>=0;--V){var Q=this.tryEntries[V];if(Q.tryLoc<=this.prev&&l.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var Te=Q;break}}Te&&(re==="break"||re==="continue")&&Te.tryLoc<=H&&H<=Te.finallyLoc&&(Te=null);var Re=Te?Te.completion:{};return Re.type=re,Re.arg=H,Te?(this.method="next",this.next=Te.finallyLoc,R):this.complete(Re)},complete:function(re,H){if(re.type==="throw")throw re.arg;return re.type==="break"||re.type==="continue"?this.next=re.arg:re.type==="return"?(this.rval=this.arg=re.arg,this.method="return",this.next="end"):re.type==="normal"&&H&&(this.next=H),R},finish:function(re){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V.finallyLoc===re)return this.complete(V.completion,V.afterLoc),fe(V),R}},catch:function(re){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V.tryLoc===re){var Q=V.completion;if(Q.type==="throw"){var Te=Q.arg;fe(V)}return Te}}throw new Error("illegal catch attempt")},delegateYield:function(re,H,V){return this.delegate={iterator:ce(re),resultName:H,nextLoc:V},this.method==="next"&&(this.arg=m),R}},t}(J.exports);try{regeneratorRuntime=g}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=g:Function("r","regeneratorRuntime = r")(g)}},86234:(J,g,t)=>{"use strict";t.d(g,{UI:()=>f});var i="NOT_FOUND";function l(p){var v;return{get:function(d){return v&&p(v.key,d)?v.value:i},put:function(d,b){v={key:d,value:b}},getEntries:function(){return v?[v]:[]},clear:function(){v=void 0}}}function s(p,v){var h=[];function d(S){var O=h.findIndex(function(M){return v(S,M.key)});if(O>-1){var R=h[O];return O>0&&(h.splice(O,1),h.unshift(R)),R.value}return i}function b(S,O){d(S)===i&&(h.unshift({key:S,value:O}),h.length>p&&h.pop())}function y(){return h}function w(){h=[]}return{get:d,put:b,getEntries:y,clear:w}}var m=function(v,h){return v===h};function u(p){return function(h,d){if(h===null||d===null||h.length!==d.length)return!1;for(var b=h.length,y=0;y<b;y++)if(!p(h[y],d[y]))return!1;return!0}}function f(p,v){var h=typeof v=="object"?v:{equalityCheck:v},d=h.equalityCheck,b=d===void 0?m:d,y=h.maxSize,w=y===void 0?1:y,S=h.resultEqualityCheck,O=u(b),R=w===1?l(O):s(w,O);function M(){var D=R.get(arguments);if(D===i){if(D=p.apply(null,arguments),S){var P=R.getEntries(),T=P.find(function(A){return S(A.value,D)});T&&(D=T.value)}R.put(arguments,D)}return D}return M.clearCache=function(){return R.clear()},M}},1081:(J,g,t)=>{"use strict";t.d(g,{Mz:()=>m});var i=t(86234);function l(f){var p=Array.isArray(f[0])?f[0]:f;if(!p.every(function(h){return typeof h=="function"})){var v=p.map(function(h){return typeof h=="function"?"function "+(h.name||"unnamed")+"()":typeof h}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+v+"]")}return p}function s(f){for(var p=arguments.length,v=new Array(p>1?p-1:0),h=1;h<p;h++)v[h-1]=arguments[h];var d=function(){for(var y=arguments.length,w=new Array(y),S=0;S<y;S++)w[S]=arguments[S];var O=0,R,M={memoizeOptions:void 0},D=w.pop();if(typeof D=="object"&&(M=D,D=w.pop()),typeof D!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof D+"]");var P=M,T=P.memoizeOptions,A=T===void 0?v:T,j=Array.isArray(A)?A:[A],ae=l(w),_=f.apply(void 0,[function(){return O++,D.apply(null,arguments)}].concat(j)),N=f(function(){for(var he=[],me=ae.length,fe=0;fe<me;fe++)he.push(ae[fe].apply(null,arguments));return R=_.apply(null,he),R});return Object.assign(N,{resultFunc:D,memoizedResultFunc:_,dependencies:ae,lastResult:function(){return R},recomputations:function(){return O},resetRecomputations:function(){return O=0}}),N};return d}var m=s(i.UI),u=function(p,v){if(v===void 0&&(v=m),typeof p!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof p));var h=Object.keys(p),d=v(h.map(function(b){return p[b]}),function(){for(var b=arguments.length,y=new Array(b),w=0;w<b;w++)y[w]=arguments[w];return y.reduce(function(S,O,R){return S[h[R]]=O,S},{})});return d}},43591:(J,g,t)=>{"use strict";t.r(g),t.d(g,{default:()=>ve});var i=function(){if(typeof Map<"u")return Map;function ce(oe,re){var H=-1;return oe.some(function(V,Q){return V[0]===re?(H=Q,!0):!1}),H}return function(){function oe(){this.__entries__=[]}return Object.defineProperty(oe.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),oe.prototype.get=function(re){var H=ce(this.__entries__,re),V=this.__entries__[H];return V&&V[1]},oe.prototype.set=function(re,H){var V=ce(this.__entries__,re);~V?this.__entries__[V][1]=H:this.__entries__.push([re,H])},oe.prototype.delete=function(re){var H=this.__entries__,V=ce(H,re);~V&&H.splice(V,1)},oe.prototype.has=function(re){return!!~ce(this.__entries__,re)},oe.prototype.clear=function(){this.__entries__.splice(0)},oe.prototype.forEach=function(re,H){H===void 0&&(H=null);for(var V=0,Q=this.__entries__;V<Q.length;V++){var Te=Q[V];re.call(H,Te[1],Te[0])}},oe}()}(),l=typeof window<"u"&&typeof document<"u"&&window.document===document,s=function(){return typeof t.g<"u"&&t.g.Math===Math?t.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),m=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(s):function(ce){return setTimeout(function(){return ce(Date.now())},1e3/60)}}(),u=2;function f(ce,oe){var re=!1,H=!1,V=0;function Q(){re&&(re=!1,ce()),H&&Re()}function Te(){m(Q)}function Re(){var ne=Date.now();if(re){if(ne-V<u)return;H=!0}else re=!0,H=!1,setTimeout(Te,oe);V=ne}return Re}var p=20,v=["top","right","bottom","left","width","height","size","weight"],h=typeof MutationObserver<"u",d=function(){function ce(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=f(this.refresh.bind(this),p)}return ce.prototype.addObserver=function(oe){~this.observers_.indexOf(oe)||this.observers_.push(oe),this.connected_||this.connect_()},ce.prototype.removeObserver=function(oe){var re=this.observers_,H=re.indexOf(oe);~H&&re.splice(H,1),!re.length&&this.connected_&&this.disconnect_()},ce.prototype.refresh=function(){var oe=this.updateObservers_();oe&&this.refresh()},ce.prototype.updateObservers_=function(){var oe=this.observers_.filter(function(re){return re.gatherActive(),re.hasActive()});return oe.forEach(function(re){return re.broadcastActive()}),oe.length>0},ce.prototype.connect_=function(){!l||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ce.prototype.disconnect_=function(){!l||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ce.prototype.onTransitionEnd_=function(oe){var re=oe.propertyName,H=re===void 0?"":re,V=v.some(function(Q){return!!~H.indexOf(Q)});V&&this.refresh()},ce.getInstance=function(){return this.instance_||(this.instance_=new ce),this.instance_},ce.instance_=null,ce}(),b=function(ce,oe){for(var re=0,H=Object.keys(oe);re<H.length;re++){var V=H[re];Object.defineProperty(ce,V,{value:oe[V],enumerable:!1,writable:!1,configurable:!0})}return ce},y=function(ce){var oe=ce&&ce.ownerDocument&&ce.ownerDocument.defaultView;return oe||s},w=ae(0,0,0,0);function S(ce){return parseFloat(ce)||0}function O(ce){for(var oe=[],re=1;re<arguments.length;re++)oe[re-1]=arguments[re];return oe.reduce(function(H,V){var Q=ce["border-"+V+"-width"];return H+S(Q)},0)}function R(ce){for(var oe=["top","right","bottom","left"],re={},H=0,V=oe;H<V.length;H++){var Q=V[H],Te=ce["padding-"+Q];re[Q]=S(Te)}return re}function M(ce){var oe=ce.getBBox();return ae(0,0,oe.width,oe.height)}function D(ce){var oe=ce.clientWidth,re=ce.clientHeight;if(!oe&&!re)return w;var H=y(ce).getComputedStyle(ce),V=R(H),Q=V.left+V.right,Te=V.top+V.bottom,Re=S(H.width),ne=S(H.height);if(H.boxSizing==="border-box"&&(Math.round(Re+Q)!==oe&&(Re-=O(H,"left","right")+Q),Math.round(ne+Te)!==re&&(ne-=O(H,"top","bottom")+Te)),!T(ce)){var pe=Math.round(Re+Q)-oe,ye=Math.round(ne+Te)-re;Math.abs(pe)!==1&&(Re-=pe),Math.abs(ye)!==1&&(ne-=ye)}return ae(V.left,V.top,Re,ne)}var P=function(){return typeof SVGGraphicsElement<"u"?function(ce){return ce instanceof y(ce).SVGGraphicsElement}:function(ce){return ce instanceof y(ce).SVGElement&&typeof ce.getBBox=="function"}}();function T(ce){return ce===y(ce).document.documentElement}function A(ce){return l?P(ce)?M(ce):D(ce):w}function j(ce){var oe=ce.x,re=ce.y,H=ce.width,V=ce.height,Q=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Te=Object.create(Q.prototype);return b(Te,{x:oe,y:re,width:H,height:V,top:re,right:oe+H,bottom:V+re,left:oe}),Te}function ae(ce,oe,re,H){return{x:ce,y:oe,width:re,height:H}}var _=function(){function ce(oe){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ae(0,0,0,0),this.target=oe}return ce.prototype.isActive=function(){var oe=A(this.target);return this.contentRect_=oe,oe.width!==this.broadcastWidth||oe.height!==this.broadcastHeight},ce.prototype.broadcastRect=function(){var oe=this.contentRect_;return this.broadcastWidth=oe.width,this.broadcastHeight=oe.height,oe},ce}(),N=function(){function ce(oe,re){var H=j(re);b(this,{target:oe,contentRect:H})}return ce}(),W=function(){function ce(oe,re,H){if(this.activeObservations_=[],this.observations_=new i,typeof oe!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=oe,this.controller_=re,this.callbackCtx_=H}return ce.prototype.observe=function(oe){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(oe instanceof y(oe).Element))throw new TypeError('parameter 1 is not of type "Element".');var re=this.observations_;re.has(oe)||(re.set(oe,new _(oe)),this.controller_.addObserver(this),this.controller_.refresh())}},ce.prototype.unobserve=function(oe){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(oe instanceof y(oe).Element))throw new TypeError('parameter 1 is not of type "Element".');var re=this.observations_;re.has(oe)&&(re.delete(oe),re.size||this.controller_.removeObserver(this))}},ce.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ce.prototype.gatherActive=function(){var oe=this;this.clearActive(),this.observations_.forEach(function(re){re.isActive()&&oe.activeObservations_.push(re)})},ce.prototype.broadcastActive=function(){if(this.hasActive()){var oe=this.callbackCtx_,re=this.activeObservations_.map(function(H){return new N(H.target,H.broadcastRect())});this.callback_.call(oe,re,oe),this.clearActive()}},ce.prototype.clearActive=function(){this.activeObservations_.splice(0)},ce.prototype.hasActive=function(){return this.activeObservations_.length>0},ce}(),he=typeof WeakMap<"u"?new WeakMap:new i,me=function(){function ce(oe){if(!(this instanceof ce))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var re=d.getInstance(),H=new W(oe,re,this);he.set(this,H)}return ce}();["observe","unobserve","disconnect"].forEach(function(ce){me.prototype[ce]=function(){var oe;return(oe=he.get(this))[ce].apply(oe,arguments)}});var fe=function(){return typeof s.ResizeObserver<"u"?s.ResizeObserver:me}();const ve=fe},79364:function(J,g,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(wo,Go,Ko,Ie){Ie===void 0&&(Ie=Ko),Object.defineProperty(wo,Ie,{enumerable:!0,get:function(){return Go[Ko]}})}:function(wo,Go,Ko,Ie){Ie===void 0&&(Ie=Ko),wo[Ie]=Go[Ko]}),l=this&&this.__exportStar||function(wo,Go){for(var Ko in wo)Ko!=="default"&&!Object.prototype.hasOwnProperty.call(Go,Ko)&&i(Go,wo,Ko)};Object.defineProperty(g,"__esModule",{value:!0}),g.interval=g.iif=g.generate=g.fromEventPattern=g.fromEvent=g.from=g.forkJoin=g.empty=g.defer=g.connectable=g.concat=g.combineLatest=g.bindNodeCallback=g.bindCallback=g.UnsubscriptionError=g.TimeoutError=g.SequenceError=g.ObjectUnsubscribedError=g.NotFoundError=g.EmptyError=g.ArgumentOutOfRangeError=g.firstValueFrom=g.lastValueFrom=g.isObservable=g.identity=g.noop=g.pipe=g.NotificationKind=g.Notification=g.Subscriber=g.Subscription=g.Scheduler=g.VirtualAction=g.VirtualTimeScheduler=g.animationFrameScheduler=g.animationFrame=g.queueScheduler=g.queue=g.asyncScheduler=g.async=g.asapScheduler=g.asap=g.AsyncSubject=g.ReplaySubject=g.BehaviorSubject=g.Subject=g.animationFrames=g.observable=g.ConnectableObservable=g.Observable=void 0,g.filter=g.expand=g.exhaustMap=g.exhaustAll=g.exhaust=g.every=g.endWith=g.elementAt=g.distinctUntilKeyChanged=g.distinctUntilChanged=g.distinct=g.dematerialize=g.delayWhen=g.delay=g.defaultIfEmpty=g.debounceTime=g.debounce=g.count=g.connect=g.concatWith=g.concatMapTo=g.concatMap=g.concatAll=g.combineLatestWith=g.combineLatestAll=g.combineAll=g.catchError=g.bufferWhen=g.bufferToggle=g.bufferTime=g.bufferCount=g.buffer=g.auditTime=g.audit=g.config=g.NEVER=g.EMPTY=g.scheduled=g.zip=g.using=g.timer=g.throwError=g.range=g.race=g.partition=g.pairs=g.onErrorResumeNext=g.of=g.never=g.merge=void 0,g.switchMap=g.switchAll=g.subscribeOn=g.startWith=g.skipWhile=g.skipUntil=g.skipLast=g.skip=g.single=g.shareReplay=g.share=g.sequenceEqual=g.scan=g.sampleTime=g.sample=g.refCount=g.retryWhen=g.retry=g.repeatWhen=g.repeat=g.reduce=g.raceWith=g.publishReplay=g.publishLast=g.publishBehavior=g.publish=g.pluck=g.pairwise=g.onErrorResumeNextWith=g.observeOn=g.multicast=g.min=g.mergeWith=g.mergeScan=g.mergeMapTo=g.mergeMap=g.flatMap=g.mergeAll=g.max=g.materialize=g.mapTo=g.map=g.last=g.isEmpty=g.ignoreElements=g.groupBy=g.first=g.findIndex=g.find=g.finalize=void 0,g.zipWith=g.zipAll=g.withLatestFrom=g.windowWhen=g.windowToggle=g.windowTime=g.windowCount=g.window=g.toArray=g.timestamp=g.timeoutWith=g.timeout=g.timeInterval=g.throwIfEmpty=g.throttleTime=g.throttle=g.tap=g.takeWhile=g.takeUntil=g.takeLast=g.take=g.switchScan=g.switchMapTo=void 0;var s=t(48051);Object.defineProperty(g,"Observable",{enumerable:!0,get:function(){return s.Observable}});var m=t(14359);Object.defineProperty(g,"ConnectableObservable",{enumerable:!0,get:function(){return m.ConnectableObservable}});var u=t(2884);Object.defineProperty(g,"observable",{enumerable:!0,get:function(){return u.observable}});var f=t(21875);Object.defineProperty(g,"animationFrames",{enumerable:!0,get:function(){return f.animationFrames}});var p=t(76808);Object.defineProperty(g,"Subject",{enumerable:!0,get:function(){return p.Subject}});var v=t(97314);Object.defineProperty(g,"BehaviorSubject",{enumerable:!0,get:function(){return v.BehaviorSubject}});var h=t(10381);Object.defineProperty(g,"ReplaySubject",{enumerable:!0,get:function(){return h.ReplaySubject}});var d=t(5130);Object.defineProperty(g,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var b=t(22105);Object.defineProperty(g,"asap",{enumerable:!0,get:function(){return b.asap}}),Object.defineProperty(g,"asapScheduler",{enumerable:!0,get:function(){return b.asapScheduler}});var y=t(62326);Object.defineProperty(g,"async",{enumerable:!0,get:function(){return y.async}}),Object.defineProperty(g,"asyncScheduler",{enumerable:!0,get:function(){return y.asyncScheduler}});var w=t(99245);Object.defineProperty(g,"queue",{enumerable:!0,get:function(){return w.queue}}),Object.defineProperty(g,"queueScheduler",{enumerable:!0,get:function(){return w.queueScheduler}});var S=t(15887);Object.defineProperty(g,"animationFrame",{enumerable:!0,get:function(){return S.animationFrame}}),Object.defineProperty(g,"animationFrameScheduler",{enumerable:!0,get:function(){return S.animationFrameScheduler}});var O=t(50875);Object.defineProperty(g,"VirtualTimeScheduler",{enumerable:!0,get:function(){return O.VirtualTimeScheduler}}),Object.defineProperty(g,"VirtualAction",{enumerable:!0,get:function(){return O.VirtualAction}});var R=t(65881);Object.defineProperty(g,"Scheduler",{enumerable:!0,get:function(){return R.Scheduler}});var M=t(69879);Object.defineProperty(g,"Subscription",{enumerable:!0,get:function(){return M.Subscription}});var D=t(2708);Object.defineProperty(g,"Subscriber",{enumerable:!0,get:function(){return D.Subscriber}});var P=t(31245);Object.defineProperty(g,"Notification",{enumerable:!0,get:function(){return P.Notification}}),Object.defineProperty(g,"NotificationKind",{enumerable:!0,get:function(){return P.NotificationKind}});var T=t(99517);Object.defineProperty(g,"pipe",{enumerable:!0,get:function(){return T.pipe}});var A=t(5717);Object.defineProperty(g,"noop",{enumerable:!0,get:function(){return A.noop}});var j=t(87699);Object.defineProperty(g,"identity",{enumerable:!0,get:function(){return j.identity}});var ae=t(62560);Object.defineProperty(g,"isObservable",{enumerable:!0,get:function(){return ae.isObservable}});var _=t(85761);Object.defineProperty(g,"lastValueFrom",{enumerable:!0,get:function(){return _.lastValueFrom}});var N=t(40841);Object.defineProperty(g,"firstValueFrom",{enumerable:!0,get:function(){return N.firstValueFrom}});var W=t(7024);Object.defineProperty(g,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return W.ArgumentOutOfRangeError}});var he=t(59328);Object.defineProperty(g,"EmptyError",{enumerable:!0,get:function(){return he.EmptyError}});var me=t(23506);Object.defineProperty(g,"NotFoundError",{enumerable:!0,get:function(){return me.NotFoundError}});var fe=t(50839);Object.defineProperty(g,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return fe.ObjectUnsubscribedError}});var ve=t(94708);Object.defineProperty(g,"SequenceError",{enumerable:!0,get:function(){return ve.SequenceError}});var ce=t(81713);Object.defineProperty(g,"TimeoutError",{enumerable:!0,get:function(){return ce.TimeoutError}});var oe=t(69517);Object.defineProperty(g,"UnsubscriptionError",{enumerable:!0,get:function(){return oe.UnsubscriptionError}});var re=t(79750);Object.defineProperty(g,"bindCallback",{enumerable:!0,get:function(){return re.bindCallback}});var H=t(21946);Object.defineProperty(g,"bindNodeCallback",{enumerable:!0,get:function(){return H.bindNodeCallback}});var V=t(88246);Object.defineProperty(g,"combineLatest",{enumerable:!0,get:function(){return V.combineLatest}});var Q=t(39546);Object.defineProperty(g,"concat",{enumerable:!0,get:function(){return Q.concat}});var Te=t(98590);Object.defineProperty(g,"connectable",{enumerable:!0,get:function(){return Te.connectable}});var Re=t(35884);Object.defineProperty(g,"defer",{enumerable:!0,get:function(){return Re.defer}});var ne=t(44885);Object.defineProperty(g,"empty",{enumerable:!0,get:function(){return ne.empty}});var pe=t(75266);Object.defineProperty(g,"forkJoin",{enumerable:!0,get:function(){return pe.forkJoin}});var ye=t(47058);Object.defineProperty(g,"from",{enumerable:!0,get:function(){return ye.from}});var Se=t(88616);Object.defineProperty(g,"fromEvent",{enumerable:!0,get:function(){return Se.fromEvent}});var Ae=t(26920);Object.defineProperty(g,"fromEventPattern",{enumerable:!0,get:function(){return Ae.fromEventPattern}});var Ee=t(87281);Object.defineProperty(g,"generate",{enumerable:!0,get:function(){return Ee.generate}});var xe=t(99380);Object.defineProperty(g,"iif",{enumerable:!0,get:function(){return xe.iif}});var nt=t(62275);Object.defineProperty(g,"interval",{enumerable:!0,get:function(){return nt.interval}});var Tt=t(95936);Object.defineProperty(g,"merge",{enumerable:!0,get:function(){return Tt.merge}});var pt=t(11934);Object.defineProperty(g,"never",{enumerable:!0,get:function(){return pt.never}});var Rt=t(61587);Object.defineProperty(g,"of",{enumerable:!0,get:function(){return Rt.of}});var tt=t(1903);Object.defineProperty(g,"onErrorResumeNext",{enumerable:!0,get:function(){return tt.onErrorResumeNext}});var U=t(88269);Object.defineProperty(g,"pairs",{enumerable:!0,get:function(){return U.pairs}});var F=t(57406);Object.defineProperty(g,"partition",{enumerable:!0,get:function(){return F.partition}});var Y=t(89795);Object.defineProperty(g,"race",{enumerable:!0,get:function(){return Y.race}});var le=t(74385);Object.defineProperty(g,"range",{enumerable:!0,get:function(){return le.range}});var ke=t(26680);Object.defineProperty(g,"throwError",{enumerable:!0,get:function(){return ke.throwError}});var Ye=t(5825);Object.defineProperty(g,"timer",{enumerable:!0,get:function(){return Ye.timer}});var ft=t(35904);Object.defineProperty(g,"using",{enumerable:!0,get:function(){return ft.using}});var wt=t(11415);Object.defineProperty(g,"zip",{enumerable:!0,get:function(){return wt.zip}});var Ut=t(30131);Object.defineProperty(g,"scheduled",{enumerable:!0,get:function(){return Ut.scheduled}});var Ke=t(44885);Object.defineProperty(g,"EMPTY",{enumerable:!0,get:function(){return Ke.EMPTY}});var it=t(11934);Object.defineProperty(g,"NEVER",{enumerable:!0,get:function(){return it.NEVER}}),l(t(96153),g);var At=t(93728);Object.defineProperty(g,"config",{enumerable:!0,get:function(){return At.config}});var et=t(88877);Object.defineProperty(g,"audit",{enumerable:!0,get:function(){return et.audit}});var ee=t(51608);Object.defineProperty(g,"auditTime",{enumerable:!0,get:function(){return ee.auditTime}});var I=t(10706);Object.defineProperty(g,"buffer",{enumerable:!0,get:function(){return I.buffer}});var K=t(9287);Object.defineProperty(g,"bufferCount",{enumerable:!0,get:function(){return K.bufferCount}});var ue=t(41719);Object.defineProperty(g,"bufferTime",{enumerable:!0,get:function(){return ue.bufferTime}});var De=t(61778);Object.defineProperty(g,"bufferToggle",{enumerable:!0,get:function(){return De.bufferToggle}});var He=t(56606);Object.defineProperty(g,"bufferWhen",{enumerable:!0,get:function(){return He.bufferWhen}});var Fe=t(72719);Object.defineProperty(g,"catchError",{enumerable:!0,get:function(){return Fe.catchError}});var ze=t(89244);Object.defineProperty(g,"combineAll",{enumerable:!0,get:function(){return ze.combineAll}});var qe=t(67933);Object.defineProperty(g,"combineLatestAll",{enumerable:!0,get:function(){return qe.combineLatestAll}});var We=t(82044);Object.defineProperty(g,"combineLatestWith",{enumerable:!0,get:function(){return We.combineLatestWith}});var _t=t(70201);Object.defineProperty(g,"concatAll",{enumerable:!0,get:function(){return _t.concatAll}});var ct=t(29512);Object.defineProperty(g,"concatMap",{enumerable:!0,get:function(){return ct.concatMap}});var Ge=t(19913);Object.defineProperty(g,"concatMapTo",{enumerable:!0,get:function(){return Ge.concatMapTo}});var st=t(98032);Object.defineProperty(g,"concatWith",{enumerable:!0,get:function(){return st.concatWith}});var Me=t(17812);Object.defineProperty(g,"connect",{enumerable:!0,get:function(){return Me.connect}});var ie=t(88589);Object.defineProperty(g,"count",{enumerable:!0,get:function(){return ie.count}});var ge=t(3143);Object.defineProperty(g,"debounce",{enumerable:!0,get:function(){return ge.debounce}});var z=t(21762);Object.defineProperty(g,"debounceTime",{enumerable:!0,get:function(){return z.debounceTime}});var be=t(58799);Object.defineProperty(g,"defaultIfEmpty",{enumerable:!0,get:function(){return be.defaultIfEmpty}});var Qe=t(5797);Object.defineProperty(g,"delay",{enumerable:!0,get:function(){return Qe.delay}});var Bt=t(72885);Object.defineProperty(g,"delayWhen",{enumerable:!0,get:function(){return Bt.delayWhen}});var nn=t(19818);Object.defineProperty(g,"dematerialize",{enumerable:!0,get:function(){return nn.dematerialize}});var bt=t(77876);Object.defineProperty(g,"distinct",{enumerable:!0,get:function(){return bt.distinct}});var at=t(22044);Object.defineProperty(g,"distinctUntilChanged",{enumerable:!0,get:function(){return at.distinctUntilChanged}});var $t=t(76035);Object.defineProperty(g,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return $t.distinctUntilKeyChanged}});var On=t(61279);Object.defineProperty(g,"elementAt",{enumerable:!0,get:function(){return On.elementAt}});var Ct=t(66791);Object.defineProperty(g,"endWith",{enumerable:!0,get:function(){return Ct.endWith}});var Zt=t(21361);Object.defineProperty(g,"every",{enumerable:!0,get:function(){return Zt.every}});var Wn=t(11464);Object.defineProperty(g,"exhaust",{enumerable:!0,get:function(){return Wn.exhaust}});var Zn=t(17977);Object.defineProperty(g,"exhaustAll",{enumerable:!0,get:function(){return Zn.exhaustAll}});var xt=t(86632);Object.defineProperty(g,"exhaustMap",{enumerable:!0,get:function(){return xt.exhaustMap}});var Xe=t(75544);Object.defineProperty(g,"expand",{enumerable:!0,get:function(){return Xe.expand}});var gn=t(85934);Object.defineProperty(g,"filter",{enumerable:!0,get:function(){return gn.filter}});var Qt=t(17802);Object.defineProperty(g,"finalize",{enumerable:!0,get:function(){return Qt.finalize}});var Dt=t(98183);Object.defineProperty(g,"find",{enumerable:!0,get:function(){return Dt.find}});var hn=t(29035);Object.defineProperty(g,"findIndex",{enumerable:!0,get:function(){return hn.findIndex}});var cn=t(19980);Object.defineProperty(g,"first",{enumerable:!0,get:function(){return cn.first}});var an=t(5128);Object.defineProperty(g,"groupBy",{enumerable:!0,get:function(){return an.groupBy}});var Or=t(2959);Object.defineProperty(g,"ignoreElements",{enumerable:!0,get:function(){return Or.ignoreElements}});var Ln=t(69915);Object.defineProperty(g,"isEmpty",{enumerable:!0,get:function(){return Ln.isEmpty}});var En=t(32568);Object.defineProperty(g,"last",{enumerable:!0,get:function(){return En.last}});var Gn=t(26872);Object.defineProperty(g,"map",{enumerable:!0,get:function(){return Gn.map}});var rr=t(13337);Object.defineProperty(g,"mapTo",{enumerable:!0,get:function(){return rr.mapTo}});var sr=t(75019);Object.defineProperty(g,"materialize",{enumerable:!0,get:function(){return sr.materialize}});var pi=t(50096);Object.defineProperty(g,"max",{enumerable:!0,get:function(){return pi.max}});var yi=t(68087);Object.defineProperty(g,"mergeAll",{enumerable:!0,get:function(){return yi.mergeAll}});var jr=t(74613);Object.defineProperty(g,"flatMap",{enumerable:!0,get:function(){return jr.flatMap}});var ui=t(67478);Object.defineProperty(g,"mergeMap",{enumerable:!0,get:function(){return ui.mergeMap}});var bi=t(76075);Object.defineProperty(g,"mergeMapTo",{enumerable:!0,get:function(){return bi.mergeMapTo}});var ri=t(16707);Object.defineProperty(g,"mergeScan",{enumerable:!0,get:function(){return ri.mergeScan}});var hi=t(79694);Object.defineProperty(g,"mergeWith",{enumerable:!0,get:function(){return hi.mergeWith}});var Si=t(80142);Object.defineProperty(g,"min",{enumerable:!0,get:function(){return Si.min}});var Kr=t(18464);Object.defineProperty(g,"multicast",{enumerable:!0,get:function(){return Kr.multicast}});var xi=t(32071);Object.defineProperty(g,"observeOn",{enumerable:!0,get:function(){return xi.observeOn}});var Ai=t(95513);Object.defineProperty(g,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Ai.onErrorResumeNextWith}});var Pi=t(26744);Object.defineProperty(g,"pairwise",{enumerable:!0,get:function(){return Pi.pairwise}});var io=t(66355);Object.defineProperty(g,"pluck",{enumerable:!0,get:function(){return io.pluck}});var lo=t(53197);Object.defineProperty(g,"publish",{enumerable:!0,get:function(){return lo.publish}});var Gr=t(82955);Object.defineProperty(g,"publishBehavior",{enumerable:!0,get:function(){return Gr.publishBehavior}});var un=t(26569);Object.defineProperty(g,"publishLast",{enumerable:!0,get:function(){return un.publishLast}});var qn=t(68710);Object.defineProperty(g,"publishReplay",{enumerable:!0,get:function(){return qn.publishReplay}});var kn=t(6677);Object.defineProperty(g,"raceWith",{enumerable:!0,get:function(){return kn.raceWith}});var St=t(92070);Object.defineProperty(g,"reduce",{enumerable:!0,get:function(){return St.reduce}});var ln=t(56131);Object.defineProperty(g,"repeat",{enumerable:!0,get:function(){return ln.repeat}});var An=t(82139);Object.defineProperty(g,"repeatWhen",{enumerable:!0,get:function(){return An.repeatWhen}});var Cr=t(3352);Object.defineProperty(g,"retry",{enumerable:!0,get:function(){return Cr.retry}});var _i=t(73956);Object.defineProperty(g,"retryWhen",{enumerable:!0,get:function(){return _i.retryWhen}});var Sn=t(79224);Object.defineProperty(g,"refCount",{enumerable:!0,get:function(){return Sn.refCount}});var ir=t(43434);Object.defineProperty(g,"sample",{enumerable:!0,get:function(){return ir.sample}});var mt=t(44143);Object.defineProperty(g,"sampleTime",{enumerable:!0,get:function(){return mt.sampleTime}});var fn=t(35565);Object.defineProperty(g,"scan",{enumerable:!0,get:function(){return fn.scan}});var gt=t(73929);Object.defineProperty(g,"sequenceEqual",{enumerable:!0,get:function(){return gt.sequenceEqual}});var tn=t(93405);Object.defineProperty(g,"share",{enumerable:!0,get:function(){return tn.share}});var Vn=t(17782);Object.defineProperty(g,"shareReplay",{enumerable:!0,get:function(){return Vn.shareReplay}});var Ur=t(55440);Object.defineProperty(g,"single",{enumerable:!0,get:function(){return Ur.single}});var $r=t(23079);Object.defineProperty(g,"skip",{enumerable:!0,get:function(){return $r.skip}});var Pr=t(92359);Object.defineProperty(g,"skipLast",{enumerable:!0,get:function(){return Pr.skipLast}});var zr=t(97783);Object.defineProperty(g,"skipUntil",{enumerable:!0,get:function(){return zr.skipUntil}});var gi=t(65774);Object.defineProperty(g,"skipWhile",{enumerable:!0,get:function(){return gi.skipWhile}});var $i=t(99054);Object.defineProperty(g,"startWith",{enumerable:!0,get:function(){return $i.startWith}});var eo=t(5455);Object.defineProperty(g,"subscribeOn",{enumerable:!0,get:function(){return eo.subscribeOn}});var ki=t(16201);Object.defineProperty(g,"switchAll",{enumerable:!0,get:function(){return ki.switchAll}});var so=t(90680);Object.defineProperty(g,"switchMap",{enumerable:!0,get:function(){return so.switchMap}});var Ho=t(761);Object.defineProperty(g,"switchMapTo",{enumerable:!0,get:function(){return Ho.switchMapTo}});var ra=t(48461);Object.defineProperty(g,"switchScan",{enumerable:!0,get:function(){return ra.switchScan}});var So=t(54383);Object.defineProperty(g,"take",{enumerable:!0,get:function(){return So.take}});var gr=t(65279);Object.defineProperty(g,"takeLast",{enumerable:!0,get:function(){return gr.takeLast}});var di=t(66911);Object.defineProperty(g,"takeUntil",{enumerable:!0,get:function(){return di.takeUntil}});var Vi=t(60598);Object.defineProperty(g,"takeWhile",{enumerable:!0,get:function(){return Vi.takeWhile}});var Ro=t(15019);Object.defineProperty(g,"tap",{enumerable:!0,get:function(){return Ro.tap}});var na=t(44880);Object.defineProperty(g,"throttle",{enumerable:!0,get:function(){return na.throttle}});var ta=t(7245);Object.defineProperty(g,"throttleTime",{enumerable:!0,get:function(){return ta.throttleTime}});var aa=t(30632);Object.defineProperty(g,"throwIfEmpty",{enumerable:!0,get:function(){return aa.throwIfEmpty}});var vi=t(32508);Object.defineProperty(g,"timeInterval",{enumerable:!0,get:function(){return vi.timeInterval}});var to=t(81713);Object.defineProperty(g,"timeout",{enumerable:!0,get:function(){return to.timeout}});var $o=t(50597);Object.defineProperty(g,"timeoutWith",{enumerable:!0,get:function(){return $o.timeoutWith}});var ja=t(53866);Object.defineProperty(g,"timestamp",{enumerable:!0,get:function(){return ja.timestamp}});var hs=t(73484);Object.defineProperty(g,"toArray",{enumerable:!0,get:function(){return hs.toArray}});var ro=t(78072);Object.defineProperty(g,"window",{enumerable:!0,get:function(){return ro.window}});var as=t(62893);Object.defineProperty(g,"windowCount",{enumerable:!0,get:function(){return as.windowCount}});var rn=t(90037);Object.defineProperty(g,"windowTime",{enumerable:!0,get:function(){return rn.windowTime}});var Dr=t(28996);Object.defineProperty(g,"windowToggle",{enumerable:!0,get:function(){return Dr.windowToggle}});var Lr=t(65156);Object.defineProperty(g,"windowWhen",{enumerable:!0,get:function(){return Lr.windowWhen}});var li=t(66975);Object.defineProperty(g,"withLatestFrom",{enumerable:!0,get:function(){return li.withLatestFrom}});var Zi=t(5362);Object.defineProperty(g,"zipAll",{enumerable:!0,get:function(){return Zi.zipAll}});var Di=t(36977);Object.defineProperty(g,"zipWith",{enumerable:!0,get:function(){return Di.zipWith}})},5130:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AsyncSubject=void 0;var l=t(76808),s=function(m){i(u,m);function u(){var f=m!==null&&m.apply(this,arguments)||this;return f._value=null,f._hasValue=!1,f._isComplete=!1,f}return u.prototype._checkFinalizedStatuses=function(f){var p=this,v=p.hasError,h=p._hasValue,d=p._value,b=p.thrownError,y=p.isStopped,w=p._isComplete;v?f.error(b):(y||w)&&(h&&f.next(d),f.complete())},u.prototype.next=function(f){this.isStopped||(this._value=f,this._hasValue=!0)},u.prototype.complete=function(){var f=this,p=f._hasValue,v=f._value,h=f._isComplete;h||(this._isComplete=!0,p&&m.prototype.next.call(this,v),m.prototype.complete.call(this))},u}(l.Subject);g.AsyncSubject=s},97314:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.BehaviorSubject=void 0;var l=t(76808),s=function(m){i(u,m);function u(f){var p=m.call(this)||this;return p._value=f,p}return Object.defineProperty(u.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),u.prototype._subscribe=function(f){var p=m.prototype._subscribe.call(this,f);return!p.closed&&f.next(this._value),p},u.prototype.getValue=function(){var f=this,p=f.hasError,v=f.thrownError,h=f._value;if(p)throw v;return this._throwIfClosed(),h},u.prototype.next=function(f){m.prototype.next.call(this,this._value=f)},u}(l.Subject);g.BehaviorSubject=s},31245:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.observeNotification=g.Notification=g.NotificationKind=void 0;var i=t(44885),l=t(61587),s=t(26680),m=t(10281),u;(function(v){v.NEXT="N",v.ERROR="E",v.COMPLETE="C"})(u=g.NotificationKind||(g.NotificationKind={}));var f=function(){function v(h,d,b){this.kind=h,this.value=d,this.error=b,this.hasValue=h==="N"}return v.prototype.observe=function(h){return p(this,h)},v.prototype.do=function(h,d,b){var y=this,w=y.kind,S=y.value,O=y.error;return w==="N"?h?.(S):w==="E"?d?.(O):b?.()},v.prototype.accept=function(h,d,b){var y;return m.isFunction((y=h)===null||y===void 0?void 0:y.next)?this.observe(h):this.do(h,d,b)},v.prototype.toObservable=function(){var h=this,d=h.kind,b=h.value,y=h.error,w=d==="N"?l.of(b):d==="E"?s.throwError(function(){return y}):d==="C"?i.EMPTY:0;if(!w)throw new TypeError("Unexpected notification kind "+d);return w},v.createNext=function(h){return new v("N",h)},v.createError=function(h){return new v("E",void 0,h)},v.createComplete=function(){return v.completeNotification},v.completeNotification=new v("C"),v}();g.Notification=f;function p(v,h){var d,b,y,w=v,S=w.kind,O=w.value,R=w.error;if(typeof S!="string")throw new TypeError('Invalid notification, missing "kind"');S==="N"?(d=h.next)===null||d===void 0||d.call(h,O):S==="E"?(b=h.error)===null||b===void 0||b.call(h,R):(y=h.complete)===null||y===void 0||y.call(h)}g.observeNotification=p},42767:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createNotification=g.nextNotification=g.errorNotification=g.COMPLETE_NOTIFICATION=void 0,g.COMPLETE_NOTIFICATION=function(){return l("C",void 0,void 0)}();function t(s){return l("E",void 0,s)}g.errorNotification=t;function i(s){return l("N",s,void 0)}g.nextNotification=i;function l(s,m,u){return{kind:s,value:m,error:u}}g.createNotification=l},48051:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Observable=void 0;var i=t(2708),l=t(69879),s=t(2884),m=t(99517),u=t(93728),f=t(10281),p=t(12688),v=function(){function y(w){w&&(this._subscribe=w)}return y.prototype.lift=function(w){var S=new y;return S.source=this,S.operator=w,S},y.prototype.subscribe=function(w,S,O){var R=this,M=b(w)?w:new i.SafeSubscriber(w,S,O);return p.errorContext(function(){var D=R,P=D.operator,T=D.source;M.add(P?P.call(M,T):T?R._subscribe(M):R._trySubscribe(M))}),M},y.prototype._trySubscribe=function(w){try{return this._subscribe(w)}catch(S){w.error(S)}},y.prototype.forEach=function(w,S){var O=this;return S=h(S),new S(function(R,M){var D=new i.SafeSubscriber({next:function(P){try{w(P)}catch(T){M(T),D.unsubscribe()}},error:M,complete:R});O.subscribe(D)})},y.prototype._subscribe=function(w){var S;return(S=this.source)===null||S===void 0?void 0:S.subscribe(w)},y.prototype[s.observable]=function(){return this},y.prototype.pipe=function(){for(var w=[],S=0;S<arguments.length;S++)w[S]=arguments[S];return m.pipeFromArray(w)(this)},y.prototype.toPromise=function(w){var S=this;return w=h(w),new w(function(O,R){var M;S.subscribe(function(D){return M=D},function(D){return R(D)},function(){return O(M)})})},y.create=function(w){return new y(w)},y}();g.Observable=v;function h(y){var w;return(w=y??u.config.Promise)!==null&&w!==void 0?w:Promise}function d(y){return y&&f.isFunction(y.next)&&f.isFunction(y.error)&&f.isFunction(y.complete)}function b(y){return y&&y instanceof i.Subscriber||d(y)&&l.isSubscription(y)}},10381:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var u=function(f,p){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},u(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");u(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.ReplaySubject=void 0;var l=t(76808),s=t(93275),m=function(u){i(f,u);function f(p,v,h){p===void 0&&(p=1/0),v===void 0&&(v=1/0),h===void 0&&(h=s.dateTimestampProvider);var d=u.call(this)||this;return d._bufferSize=p,d._windowTime=v,d._timestampProvider=h,d._buffer=[],d._infiniteTimeWindow=!0,d._infiniteTimeWindow=v===1/0,d._bufferSize=Math.max(1,p),d._windowTime=Math.max(1,v),d}return f.prototype.next=function(p){var v=this,h=v.isStopped,d=v._buffer,b=v._infiniteTimeWindow,y=v._timestampProvider,w=v._windowTime;h||(d.push(p),!b&&d.push(y.now()+w)),this._trimBuffer(),u.prototype.next.call(this,p)},f.prototype._subscribe=function(p){this._throwIfClosed(),this._trimBuffer();for(var v=this._innerSubscribe(p),h=this,d=h._infiniteTimeWindow,b=h._buffer,y=b.slice(),w=0;w<y.length&&!p.closed;w+=d?1:2)p.next(y[w]);return this._checkFinalizedStatuses(p),v},f.prototype._trimBuffer=function(){var p=this,v=p._bufferSize,h=p._timestampProvider,d=p._buffer,b=p._infiniteTimeWindow,y=(b?1:2)*v;if(v<1/0&&y<d.length&&d.splice(0,d.length-y),!b){for(var w=h.now(),S=0,O=1;O<d.length&&d[O]<=w;O+=2)S=O;S&&d.splice(0,S+1)}},f}(l.Subject);g.ReplaySubject=m},65881:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Scheduler=void 0;var i=t(93275),l=function(){function s(m,u){u===void 0&&(u=s.now),this.schedulerActionCtor=m,this.now=u}return s.prototype.schedule=function(m,u,f){return u===void 0&&(u=0),new this.schedulerActionCtor(this,m).schedule(f,u)},s.now=i.dateTimestampProvider.now,s}();g.Scheduler=l},76808:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var d=function(b,y){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var O in S)Object.prototype.hasOwnProperty.call(S,O)&&(w[O]=S[O])},d(b,y)};return function(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");d(b,y);function w(){this.constructor=b}b.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),l=this&&this.__values||function(d){var b=typeof Symbol=="function"&&Symbol.iterator,y=b&&d[b],w=0;if(y)return y.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&w>=d.length&&(d=void 0),{value:d&&d[w++],done:!d}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.AnonymousSubject=g.Subject=void 0;var s=t(48051),m=t(69879),u=t(50839),f=t(54830),p=t(12688),v=function(d){i(b,d);function b(){var y=d.call(this)||this;return y.closed=!1,y.currentObservers=null,y.observers=[],y.isStopped=!1,y.hasError=!1,y.thrownError=null,y}return b.prototype.lift=function(y){var w=new h(this,this);return w.operator=y,w},b.prototype._throwIfClosed=function(){if(this.closed)throw new u.ObjectUnsubscribedError},b.prototype.next=function(y){var w=this;p.errorContext(function(){var S,O;if(w._throwIfClosed(),!w.isStopped){w.currentObservers||(w.currentObservers=Array.from(w.observers));try{for(var R=l(w.currentObservers),M=R.next();!M.done;M=R.next()){var D=M.value;D.next(y)}}catch(P){S={error:P}}finally{try{M&&!M.done&&(O=R.return)&&O.call(R)}finally{if(S)throw S.error}}}})},b.prototype.error=function(y){var w=this;p.errorContext(function(){if(w._throwIfClosed(),!w.isStopped){w.hasError=w.isStopped=!0,w.thrownError=y;for(var S=w.observers;S.length;)S.shift().error(y)}})},b.prototype.complete=function(){var y=this;p.errorContext(function(){if(y._throwIfClosed(),!y.isStopped){y.isStopped=!0;for(var w=y.observers;w.length;)w.shift().complete()}})},b.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(b.prototype,"observed",{get:function(){var y;return((y=this.observers)===null||y===void 0?void 0:y.length)>0},enumerable:!1,configurable:!0}),b.prototype._trySubscribe=function(y){return this._throwIfClosed(),d.prototype._trySubscribe.call(this,y)},b.prototype._subscribe=function(y){return this._throwIfClosed(),this._checkFinalizedStatuses(y),this._innerSubscribe(y)},b.prototype._innerSubscribe=function(y){var w=this,S=this,O=S.hasError,R=S.isStopped,M=S.observers;return O||R?m.EMPTY_SUBSCRIPTION:(this.currentObservers=null,M.push(y),new m.Subscription(function(){w.currentObservers=null,f.arrRemove(M,y)}))},b.prototype._checkFinalizedStatuses=function(y){var w=this,S=w.hasError,O=w.thrownError,R=w.isStopped;S?y.error(O):R&&y.complete()},b.prototype.asObservable=function(){var y=new s.Observable;return y.source=this,y},b.create=function(y,w){return new h(y,w)},b}(s.Observable);g.Subject=v;var h=function(d){i(b,d);function b(y,w){var S=d.call(this)||this;return S.destination=y,S.source=w,S}return b.prototype.next=function(y){var w,S;(S=(w=this.destination)===null||w===void 0?void 0:w.next)===null||S===void 0||S.call(w,y)},b.prototype.error=function(y){var w,S;(S=(w=this.destination)===null||w===void 0?void 0:w.error)===null||S===void 0||S.call(w,y)},b.prototype.complete=function(){var y,w;(w=(y=this.destination)===null||y===void 0?void 0:y.complete)===null||w===void 0||w.call(y)},b.prototype._subscribe=function(y){var w,S;return(S=(w=this.source)===null||w===void 0?void 0:w.subscribe(y))!==null&&S!==void 0?S:m.EMPTY_SUBSCRIPTION},b}(v);g.AnonymousSubject=h},2708:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var D=function(P,T){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,j){A.__proto__=j}||function(A,j){for(var ae in j)Object.prototype.hasOwnProperty.call(j,ae)&&(A[ae]=j[ae])},D(P,T)};return function(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");D(P,T);function A(){this.constructor=P}P.prototype=T===null?Object.create(T):(A.prototype=T.prototype,new A)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.EMPTY_OBSERVER=g.SafeSubscriber=g.Subscriber=void 0;var l=t(10281),s=t(69879),m=t(93728),u=t(32980),f=t(5717),p=t(42767),v=t(94808),h=t(12688),d=function(D){i(P,D);function P(T){var A=D.call(this)||this;return A.isStopped=!1,T?(A.destination=T,s.isSubscription(T)&&T.add(A)):A.destination=g.EMPTY_OBSERVER,A}return P.create=function(T,A,j){return new S(T,A,j)},P.prototype.next=function(T){this.isStopped?M(p.nextNotification(T),this):this._next(T)},P.prototype.error=function(T){this.isStopped?M(p.errorNotification(T),this):(this.isStopped=!0,this._error(T))},P.prototype.complete=function(){this.isStopped?M(p.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},P.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,D.prototype.unsubscribe.call(this),this.destination=null)},P.prototype._next=function(T){this.destination.next(T)},P.prototype._error=function(T){try{this.destination.error(T)}finally{this.unsubscribe()}},P.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},P}(s.Subscription);g.Subscriber=d;var b=Function.prototype.bind;function y(D,P){return b.call(D,P)}var w=function(){function D(P){this.partialObserver=P}return D.prototype.next=function(P){var T=this.partialObserver;if(T.next)try{T.next(P)}catch(A){O(A)}},D.prototype.error=function(P){var T=this.partialObserver;if(T.error)try{T.error(P)}catch(A){O(A)}else O(P)},D.prototype.complete=function(){var P=this.partialObserver;if(P.complete)try{P.complete()}catch(T){O(T)}},D}(),S=function(D){i(P,D);function P(T,A,j){var ae=D.call(this)||this,_;if(l.isFunction(T)||!T)_={next:T??void 0,error:A??void 0,complete:j??void 0};else{var N;ae&&m.config.useDeprecatedNextContext?(N=Object.create(T),N.unsubscribe=function(){return ae.unsubscribe()},_={next:T.next&&y(T.next,N),error:T.error&&y(T.error,N),complete:T.complete&&y(T.complete,N)}):_=T}return ae.destination=new w(_),ae}return P}(d);g.SafeSubscriber=S;function O(D){m.config.useDeprecatedSynchronousErrorHandling?h.captureError(D):u.reportUnhandledError(D)}function R(D){throw D}function M(D,P){var T=m.config.onStoppedNotification;T&&v.timeoutProvider.setTimeout(function(){return T(D,P)})}g.EMPTY_OBSERVER={closed:!0,next:f.noop,error:R,complete:f.noop}},69879:function(J,g,t){"use strict";var i=this&&this.__values||function(d){var b=typeof Symbol=="function"&&Symbol.iterator,y=b&&d[b],w=0;if(y)return y.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&w>=d.length&&(d=void 0),{value:d&&d[w++],done:!d}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(d,b){var y=typeof Symbol=="function"&&d[Symbol.iterator];if(!y)return d;var w=y.call(d),S,O=[],R;try{for(;(b===void 0||b-- >0)&&!(S=w.next()).done;)O.push(S.value)}catch(M){R={error:M}}finally{try{S&&!S.done&&(y=w.return)&&y.call(w)}finally{if(R)throw R.error}}return O},s=this&&this.__spreadArray||function(d,b){for(var y=0,w=b.length,S=d.length;y<w;y++,S++)d[S]=b[y];return d};Object.defineProperty(g,"__esModule",{value:!0}),g.isSubscription=g.EMPTY_SUBSCRIPTION=g.Subscription=void 0;var m=t(10281),u=t(69517),f=t(54830),p=function(){function d(b){this.initialTeardown=b,this.closed=!1,this._parentage=null,this._finalizers=null}return d.prototype.unsubscribe=function(){var b,y,w,S,O;if(!this.closed){this.closed=!0;var R=this._parentage;if(R)if(this._parentage=null,Array.isArray(R))try{for(var M=i(R),D=M.next();!D.done;D=M.next()){var P=D.value;P.remove(this)}}catch(N){b={error:N}}finally{try{D&&!D.done&&(y=M.return)&&y.call(M)}finally{if(b)throw b.error}}else R.remove(this);var T=this.initialTeardown;if(m.isFunction(T))try{T()}catch(N){O=N instanceof u.UnsubscriptionError?N.errors:[N]}var A=this._finalizers;if(A){this._finalizers=null;try{for(var j=i(A),ae=j.next();!ae.done;ae=j.next()){var _=ae.value;try{h(_)}catch(N){O=O??[],N instanceof u.UnsubscriptionError?O=s(s([],l(O)),l(N.errors)):O.push(N)}}}catch(N){w={error:N}}finally{try{ae&&!ae.done&&(S=j.return)&&S.call(j)}finally{if(w)throw w.error}}}if(O)throw new u.UnsubscriptionError(O)}},d.prototype.add=function(b){var y;if(b&&b!==this)if(this.closed)h(b);else{if(b instanceof d){if(b.closed||b._hasParent(this))return;b._addParent(this)}(this._finalizers=(y=this._finalizers)!==null&&y!==void 0?y:[]).push(b)}},d.prototype._hasParent=function(b){var y=this._parentage;return y===b||Array.isArray(y)&&y.includes(b)},d.prototype._addParent=function(b){var y=this._parentage;this._parentage=Array.isArray(y)?(y.push(b),y):y?[y,b]:b},d.prototype._removeParent=function(b){var y=this._parentage;y===b?this._parentage=null:Array.isArray(y)&&f.arrRemove(y,b)},d.prototype.remove=function(b){var y=this._finalizers;y&&f.arrRemove(y,b),b instanceof d&&b._removeParent(this)},d.EMPTY=function(){var b=new d;return b.closed=!0,b}(),d}();g.Subscription=p,g.EMPTY_SUBSCRIPTION=p.EMPTY;function v(d){return d instanceof p||d&&"closed"in d&&m.isFunction(d.remove)&&m.isFunction(d.add)&&m.isFunction(d.unsubscribe)}g.isSubscription=v;function h(d){m.isFunction(d)?d():d.unsubscribe()}},93728:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.config=void 0,g.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},40841:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.firstValueFrom=void 0;var i=t(59328),l=t(2708);function s(m,u){var f=typeof u=="object";return new Promise(function(p,v){var h=new l.SafeSubscriber({next:function(d){p(d),h.unsubscribe()},error:v,complete:function(){f?p(u.defaultValue):v(new i.EmptyError)}});m.subscribe(h)})}g.firstValueFrom=s},85761:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.lastValueFrom=void 0;var i=t(59328);function l(s,m){var u=typeof m=="object";return new Promise(function(f,p){var v=!1,h;s.subscribe({next:function(d){h=d,v=!0},error:p,complete:function(){v?f(h):u?f(m.defaultValue):p(new i.EmptyError)}})})}g.lastValueFrom=l},14359:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var v=function(h,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(b[w]=y[w])},v(h,d)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(h,d);function b(){this.constructor=h}h.prototype=d===null?Object.create(d):(b.prototype=d.prototype,new b)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.ConnectableObservable=void 0;var l=t(48051),s=t(69879),m=t(79224),u=t(17214),f=t(65212),p=function(v){i(h,v);function h(d,b){var y=v.call(this)||this;return y.source=d,y.subjectFactory=b,y._subject=null,y._refCount=0,y._connection=null,f.hasLift(d)&&(y.lift=d.lift),y}return h.prototype._subscribe=function(d){return this.getSubject().subscribe(d)},h.prototype.getSubject=function(){var d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject},h.prototype._teardown=function(){this._refCount=0;var d=this._connection;this._subject=this._connection=null,d?.unsubscribe()},h.prototype.connect=function(){var d=this,b=this._connection;if(!b){b=this._connection=new s.Subscription;var y=this.getSubject();b.add(this.source.subscribe(u.createOperatorSubscriber(y,void 0,function(){d._teardown(),y.complete()},function(w){d._teardown(),y.error(w)},function(){return d._teardown()}))),b.closed&&(this._connection=null,b=s.Subscription.EMPTY)}return b},h.prototype.refCount=function(){return m.refCount()(this)},h}(l.Observable);g.ConnectableObservable=p},79750:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.bindCallback=void 0;var i=t(17474);function l(s,m,u){return i.bindCallbackInternals(!1,s,m,u)}g.bindCallback=l},17474:function(J,g,t){"use strict";var i=this&&this.__read||function(d,b){var y=typeof Symbol=="function"&&d[Symbol.iterator];if(!y)return d;var w=y.call(d),S,O=[],R;try{for(;(b===void 0||b-- >0)&&!(S=w.next()).done;)O.push(S.value)}catch(M){R={error:M}}finally{try{S&&!S.done&&(y=w.return)&&y.call(w)}finally{if(R)throw R.error}}return O},l=this&&this.__spreadArray||function(d,b){for(var y=0,w=b.length,S=d.length;y<w;y++,S++)d[S]=b[y];return d};Object.defineProperty(g,"__esModule",{value:!0}),g.bindCallbackInternals=void 0;var s=t(68596),m=t(48051),u=t(5455),f=t(13916),p=t(32071),v=t(5130);function h(d,b,y,w){if(y)if(s.isScheduler(y))w=y;else return function(){for(var S=[],O=0;O<arguments.length;O++)S[O]=arguments[O];return h(d,b,w).apply(this,S).pipe(f.mapOneOrManyArgs(y))};return w?function(){for(var S=[],O=0;O<arguments.length;O++)S[O]=arguments[O];return h(d,b).apply(this,S).pipe(u.subscribeOn(w),p.observeOn(w))}:function(){for(var S=this,O=[],R=0;R<arguments.length;R++)O[R]=arguments[R];var M=new v.AsyncSubject,D=!0;return new m.Observable(function(P){var T=M.subscribe(P);if(D){D=!1;var A=!1,j=!1;b.apply(S,l(l([],i(O)),[function(){for(var ae=[],_=0;_<arguments.length;_++)ae[_]=arguments[_];if(d){var N=ae.shift();if(N!=null){M.error(N);return}}M.next(1<ae.length?ae:ae[0]),j=!0,A&&M.complete()}])),j&&M.complete(),A=!0}return T})}}g.bindCallbackInternals=h},21946:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.bindNodeCallback=void 0;var i=t(17474);function l(s,m,u){return i.bindCallbackInternals(!0,s,m,u)}g.bindNodeCallback=l},88246:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.combineLatestInit=g.combineLatest=void 0;var i=t(48051),l=t(50439),s=t(47058),m=t(87699),u=t(13916),f=t(26404),p=t(15810),v=t(17214),h=t(28619);function d(){for(var w=[],S=0;S<arguments.length;S++)w[S]=arguments[S];var O=f.popScheduler(w),R=f.popResultSelector(w),M=l.argsArgArrayOrObject(w),D=M.args,P=M.keys;if(D.length===0)return s.from([],O);var T=new i.Observable(b(D,O,P?function(A){return p.createObject(P,A)}:m.identity));return R?T.pipe(u.mapOneOrManyArgs(R)):T}g.combineLatest=d;function b(w,S,O){return O===void 0&&(O=m.identity),function(R){y(S,function(){for(var M=w.length,D=new Array(M),P=M,T=M,A=function(ae){y(S,function(){var _=s.from(w[ae],S),N=!1;_.subscribe(v.createOperatorSubscriber(R,function(W){D[ae]=W,N||(N=!0,T--),T||R.next(O(D.slice()))},function(){--P||R.complete()}))},R)},j=0;j<M;j++)A(j)},R)}}g.combineLatestInit=b;function y(w,S,O){w?h.executeSchedule(O,w,S):S()}},39546:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.concat=void 0;var i=t(70201),l=t(26404),s=t(47058);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return i.concatAll()(s.from(u,l.popScheduler(u)))}g.concat=m},98590:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.connectable=void 0;var i=t(76808),l=t(48051),s=t(35884),m={connector:function(){return new i.Subject},resetOnDisconnect:!0};function u(f,p){p===void 0&&(p=m);var v=null,h=p.connector,d=p.resetOnDisconnect,b=d===void 0?!0:d,y=h(),w=new l.Observable(function(S){return y.subscribe(S)});return w.connect=function(){return(!v||v.closed)&&(v=s.defer(function(){return f}).subscribe(y),b&&v.add(function(){return y=h()})),v},w}g.connectable=u},35884:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.defer=void 0;var i=t(48051),l=t(19724);function s(m){return new i.Observable(function(u){l.innerFrom(m()).subscribe(u)})}g.defer=s},21875:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.animationFrames=void 0;var i=t(48051),l=t(22931),s=t(35726);function m(p){return p?u(p):f}g.animationFrames=m;function u(p){return new i.Observable(function(v){var h=p||l.performanceTimestampProvider,d=h.now(),b=0,y=function(){v.closed||(b=s.animationFrameProvider.requestAnimationFrame(function(w){b=0;var S=h.now();v.next({timestamp:p?S:w,elapsed:S-d}),y()}))};return y(),function(){b&&s.animationFrameProvider.cancelAnimationFrame(b)}})}var f=u()},44885:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.empty=g.EMPTY=void 0;var i=t(48051);g.EMPTY=new i.Observable(function(m){return m.complete()});function l(m){return m?s(m):g.EMPTY}g.empty=l;function s(m){return new i.Observable(function(u){return m.schedule(function(){return u.complete()})})}},75266:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.forkJoin=void 0;var i=t(48051),l=t(50439),s=t(19724),m=t(26404),u=t(17214),f=t(13916),p=t(15810);function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];var b=m.popResultSelector(h),y=l.argsArgArrayOrObject(h),w=y.args,S=y.keys,O=new i.Observable(function(R){var M=w.length;if(!M){R.complete();return}for(var D=new Array(M),P=M,T=M,A=function(ae){var _=!1;s.innerFrom(w[ae]).subscribe(u.createOperatorSubscriber(R,function(N){_||(_=!0,T--),D[ae]=N},function(){return P--},void 0,function(){(!P||!_)&&(T||R.next(S?p.createObject(S,D):D),R.complete())}))},j=0;j<M;j++)A(j)});return b?O.pipe(f.mapOneOrManyArgs(b)):O}g.forkJoin=v},47058:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.from=void 0;var i=t(30131),l=t(19724);function s(m,u){return u?i.scheduled(m,u):l.innerFrom(m)}g.from=s},88616:function(J,g,t){"use strict";var i=this&&this.__read||function(R,M){var D=typeof Symbol=="function"&&R[Symbol.iterator];if(!D)return R;var P=D.call(R),T,A=[],j;try{for(;(M===void 0||M-- >0)&&!(T=P.next()).done;)A.push(T.value)}catch(ae){j={error:ae}}finally{try{T&&!T.done&&(D=P.return)&&D.call(P)}finally{if(j)throw j.error}}return A};Object.defineProperty(g,"__esModule",{value:!0}),g.fromEvent=void 0;var l=t(19724),s=t(48051),m=t(67478),u=t(94975),f=t(10281),p=t(13916),v=["addListener","removeListener"],h=["addEventListener","removeEventListener"],d=["on","off"];function b(R,M,D,P){if(f.isFunction(D)&&(P=D,D=void 0),P)return b(R,M,D).pipe(p.mapOneOrManyArgs(P));var T=i(O(R)?h.map(function(ae){return function(_){return R[ae](M,_,D)}}):w(R)?v.map(y(R,M)):S(R)?d.map(y(R,M)):[],2),A=T[0],j=T[1];if(!A&&u.isArrayLike(R))return m.mergeMap(function(ae){return b(ae,M,D)})(l.innerFrom(R));if(!A)throw new TypeError("Invalid event target");return new s.Observable(function(ae){var _=function(){for(var N=[],W=0;W<arguments.length;W++)N[W]=arguments[W];return ae.next(1<N.length?N:N[0])};return A(_),function(){return j(_)}})}g.fromEvent=b;function y(R,M){return function(D){return function(P){return R[D](M,P)}}}function w(R){return f.isFunction(R.addListener)&&f.isFunction(R.removeListener)}function S(R){return f.isFunction(R.on)&&f.isFunction(R.off)}function O(R){return f.isFunction(R.addEventListener)&&f.isFunction(R.removeEventListener)}},26920:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.fromEventPattern=void 0;var i=t(48051),l=t(10281),s=t(13916);function m(u,f,p){return p?m(u,f).pipe(s.mapOneOrManyArgs(p)):new i.Observable(function(v){var h=function(){for(var b=[],y=0;y<arguments.length;y++)b[y]=arguments[y];return v.next(b.length===1?b[0]:b)},d=u(h);return l.isFunction(f)?function(){return f(h,d)}:void 0})}g.fromEventPattern=m},51071:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.fromSubscribable=void 0;var i=t(48051);function l(s){return new i.Observable(function(m){return s.subscribe(m)})}g.fromSubscribable=l},87281:function(J,g,t){"use strict";var i=this&&this.__generator||function(p,v){var h={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},d,b,y,w;return w={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function S(R){return function(M){return O([R,M])}}function O(R){if(d)throw new TypeError("Generator is already executing.");for(;h;)try{if(d=1,b&&(y=R[0]&2?b.return:R[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,R[1])).done)return y;switch(b=0,y&&(R=[R[0]&2,y.value]),R[0]){case 0:case 1:y=R;break;case 4:return h.label++,{value:R[1],done:!1};case 5:h.label++,b=R[1],R=[0];continue;case 7:R=h.ops.pop(),h.trys.pop();continue;default:if(y=h.trys,!(y=y.length>0&&y[y.length-1])&&(R[0]===6||R[0]===2)){h=0;continue}if(R[0]===3&&(!y||R[1]>y[0]&&R[1]<y[3])){h.label=R[1];break}if(R[0]===6&&h.label<y[1]){h.label=y[1],y=R;break}if(y&&h.label<y[2]){h.label=y[2],h.ops.push(R);break}y[2]&&h.ops.pop(),h.trys.pop();continue}R=v.call(p,h)}catch(M){R=[6,M],b=0}finally{d=y=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}};Object.defineProperty(g,"__esModule",{value:!0}),g.generate=void 0;var l=t(87699),s=t(68596),m=t(35884),u=t(36805);function f(p,v,h,d,b){var y,w,S,O;arguments.length===1?(y=p,O=y.initialState,v=y.condition,h=y.iterate,w=y.resultSelector,S=w===void 0?l.identity:w,b=y.scheduler):(O=p,!d||s.isScheduler(d)?(S=l.identity,b=d):S=d);function R(){var M;return i(this,function(D){switch(D.label){case 0:M=O,D.label=1;case 1:return!v||v(M)?[4,S(M)]:[3,4];case 2:D.sent(),D.label=3;case 3:return M=h(M),[3,1];case 4:return[2]}})}return m.defer(b?function(){return u.scheduleIterable(R(),b)}:R)}g.generate=f},99380:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.iif=void 0;var i=t(35884);function l(s,m,u){return i.defer(function(){return s()?m:u})}g.iif=l},19724:function(J,g,t){"use strict";var i=this&&this.__awaiter||function(_,N,W,he){function me(fe){return fe instanceof W?fe:new W(function(ve){ve(fe)})}return new(W||(W=Promise))(function(fe,ve){function ce(H){try{re(he.next(H))}catch(V){ve(V)}}function oe(H){try{re(he.throw(H))}catch(V){ve(V)}}function re(H){H.done?fe(H.value):me(H.value).then(ce,oe)}re((he=he.apply(_,N||[])).next())})},l=this&&this.__generator||function(_,N){var W={label:0,sent:function(){if(fe[0]&1)throw fe[1];return fe[1]},trys:[],ops:[]},he,me,fe,ve;return ve={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(ve[Symbol.iterator]=function(){return this}),ve;function ce(re){return function(H){return oe([re,H])}}function oe(re){if(he)throw new TypeError("Generator is already executing.");for(;W;)try{if(he=1,me&&(fe=re[0]&2?me.return:re[0]?me.throw||((fe=me.return)&&fe.call(me),0):me.next)&&!(fe=fe.call(me,re[1])).done)return fe;switch(me=0,fe&&(re=[re[0]&2,fe.value]),re[0]){case 0:case 1:fe=re;break;case 4:return W.label++,{value:re[1],done:!1};case 5:W.label++,me=re[1],re=[0];continue;case 7:re=W.ops.pop(),W.trys.pop();continue;default:if(fe=W.trys,!(fe=fe.length>0&&fe[fe.length-1])&&(re[0]===6||re[0]===2)){W=0;continue}if(re[0]===3&&(!fe||re[1]>fe[0]&&re[1]<fe[3])){W.label=re[1];break}if(re[0]===6&&W.label<fe[1]){W.label=fe[1],fe=re;break}if(fe&&W.label<fe[2]){W.label=fe[2],W.ops.push(re);break}fe[2]&&W.ops.pop(),W.trys.pop();continue}re=N.call(_,W)}catch(H){re=[6,H],me=0}finally{he=fe=0}if(re[0]&5)throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}},s=this&&this.__asyncValues||function(_){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=_[Symbol.asyncIterator],W;return N?N.call(_):(_=typeof m=="function"?m(_):_[Symbol.iterator](),W={},he("next"),he("throw"),he("return"),W[Symbol.asyncIterator]=function(){return this},W);function he(fe){W[fe]=_[fe]&&function(ve){return new Promise(function(ce,oe){ve=_[fe](ve),me(ce,oe,ve.done,ve.value)})}}function me(fe,ve,ce,oe){Promise.resolve(oe).then(function(re){fe({value:re,done:ce})},ve)}},m=this&&this.__values||function(_){var N=typeof Symbol=="function"&&Symbol.iterator,W=N&&_[N],he=0;if(W)return W.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&he>=_.length&&(_=void 0),{value:_&&_[he++],done:!_}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.fromReadableStreamLike=g.fromAsyncIterable=g.fromIterable=g.fromPromise=g.fromArrayLike=g.fromInteropObservable=g.innerFrom=void 0;var u=t(94975),f=t(67552),p=t(48051),v=t(80629),h=t(78263),d=t(86297),b=t(12187),y=t(95462),w=t(10281),S=t(32980),O=t(2884);function R(_){if(_ instanceof p.Observable)return _;if(_!=null){if(v.isInteropObservable(_))return M(_);if(u.isArrayLike(_))return D(_);if(f.isPromise(_))return P(_);if(h.isAsyncIterable(_))return A(_);if(b.isIterable(_))return T(_);if(y.isReadableStreamLike(_))return j(_)}throw d.createInvalidObservableTypeError(_)}g.innerFrom=R;function M(_){return new p.Observable(function(N){var W=_[O.observable]();if(w.isFunction(W.subscribe))return W.subscribe(N);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}g.fromInteropObservable=M;function D(_){return new p.Observable(function(N){for(var W=0;W<_.length&&!N.closed;W++)N.next(_[W]);N.complete()})}g.fromArrayLike=D;function P(_){return new p.Observable(function(N){_.then(function(W){N.closed||(N.next(W),N.complete())},function(W){return N.error(W)}).then(null,S.reportUnhandledError)})}g.fromPromise=P;function T(_){return new p.Observable(function(N){var W,he;try{for(var me=m(_),fe=me.next();!fe.done;fe=me.next()){var ve=fe.value;if(N.next(ve),N.closed)return}}catch(ce){W={error:ce}}finally{try{fe&&!fe.done&&(he=me.return)&&he.call(me)}finally{if(W)throw W.error}}N.complete()})}g.fromIterable=T;function A(_){return new p.Observable(function(N){ae(_,N).catch(function(W){return N.error(W)})})}g.fromAsyncIterable=A;function j(_){return A(y.readableStreamLikeToAsyncGenerator(_))}g.fromReadableStreamLike=j;function ae(_,N){var W,he,me,fe;return i(this,void 0,void 0,function(){var ve,ce;return l(this,function(oe){switch(oe.label){case 0:oe.trys.push([0,5,6,11]),W=s(_),oe.label=1;case 1:return[4,W.next()];case 2:if(he=oe.sent(),!!he.done)return[3,4];if(ve=he.value,N.next(ve),N.closed)return[2];oe.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return ce=oe.sent(),me={error:ce},[3,11];case 6:return oe.trys.push([6,,9,10]),he&&!he.done&&(fe=W.return)?[4,fe.call(W)]:[3,8];case 7:oe.sent(),oe.label=8;case 8:return[3,10];case 9:if(me)throw me.error;return[7];case 10:return[7];case 11:return N.complete(),[2]}})})}},62275:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.interval=void 0;var i=t(62326),l=t(5825);function s(m,u){return m===void 0&&(m=0),u===void 0&&(u=i.asyncScheduler),m<0&&(m=0),l.timer(m,m,u)}g.interval=s},95936:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.merge=void 0;var i=t(68087),l=t(19724),s=t(44885),m=t(26404),u=t(47058);function f(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];var h=m.popScheduler(p),d=m.popNumber(p,1/0),b=p;return b.length?b.length===1?l.innerFrom(b[0]):i.mergeAll(d)(u.from(b,h)):s.EMPTY}g.merge=f},11934:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.never=g.NEVER=void 0;var i=t(48051),l=t(5717);g.NEVER=new i.Observable(l.noop);function s(){return g.NEVER}g.never=s},61587:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.of=void 0;var i=t(26404),l=t(47058);function s(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];var f=i.popScheduler(m);return l.from(m,f)}g.of=s},1903:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.onErrorResumeNext=void 0;var i=t(48051),l=t(7652),s=t(17214),m=t(5717),u=t(19724);function f(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];var h=l.argsOrArgArray(p);return new i.Observable(function(d){var b=0,y=function(){if(b<h.length){var w=void 0;try{w=u.innerFrom(h[b++])}catch{y();return}var S=new s.OperatorSubscriber(d,void 0,m.noop,m.noop);w.subscribe(S),S.add(y)}else d.complete()};y()})}g.onErrorResumeNext=f},88269:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.pairs=void 0;var i=t(47058);function l(s,m){return i.from(Object.entries(s),m)}g.pairs=l},57406:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.partition=void 0;var i=t(14120),l=t(85934),s=t(19724);function m(u,f,p){return[l.filter(f,p)(s.innerFrom(u)),l.filter(i.not(f,p))(s.innerFrom(u))]}g.partition=m},89795:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.raceInit=g.race=void 0;var i=t(48051),l=t(19724),s=t(7652),m=t(17214);function u(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return p=s.argsOrArgArray(p),p.length===1?l.innerFrom(p[0]):new i.Observable(f(p))}g.race=u;function f(p){return function(v){for(var h=[],d=function(y){h.push(l.innerFrom(p[y]).subscribe(m.createOperatorSubscriber(v,function(w){if(h){for(var S=0;S<h.length;S++)S!==y&&h[S].unsubscribe();h=null}v.next(w)})))},b=0;h&&!v.closed&&b<p.length;b++)d(b)}}g.raceInit=f},74385:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.range=void 0;var i=t(48051),l=t(44885);function s(m,u,f){if(u==null&&(u=m,m=0),u<=0)return l.EMPTY;var p=u+m;return new i.Observable(f?function(v){var h=m;return f.schedule(function(){h<p?(v.next(h++),this.schedule()):v.complete()})}:function(v){for(var h=m;h<p&&!v.closed;)v.next(h++);v.complete()})}g.range=s},26680:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.throwError=void 0;var i=t(48051),l=t(10281);function s(m,u){var f=l.isFunction(m)?m:function(){return m},p=function(v){return v.error(f())};return new i.Observable(u?function(v){return u.schedule(p,0,v)}:p)}g.throwError=s},5825:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.timer=void 0;var i=t(48051),l=t(62326),s=t(68596),m=t(85345);function u(f,p,v){f===void 0&&(f=0),v===void 0&&(v=l.async);var h=-1;return p!=null&&(s.isScheduler(p)?v=p:h=p),new i.Observable(function(d){var b=m.isValidDate(f)?+f-v.now():f;b<0&&(b=0);var y=0;return v.schedule(function(){d.closed||(d.next(y++),0<=h?this.schedule(void 0,h):d.complete())},b)})}g.timer=u},35904:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.using=void 0;var i=t(48051),l=t(19724),s=t(44885);function m(u,f){return new i.Observable(function(p){var v=u(),h=f(v),d=h?l.innerFrom(h):s.EMPTY;return d.subscribe(p),function(){v&&v.unsubscribe()}})}g.using=m},11415:function(J,g,t){"use strict";var i=this&&this.__read||function(d,b){var y=typeof Symbol=="function"&&d[Symbol.iterator];if(!y)return d;var w=y.call(d),S,O=[],R;try{for(;(b===void 0||b-- >0)&&!(S=w.next()).done;)O.push(S.value)}catch(M){R={error:M}}finally{try{S&&!S.done&&(y=w.return)&&y.call(w)}finally{if(R)throw R.error}}return O},l=this&&this.__spreadArray||function(d,b){for(var y=0,w=b.length,S=d.length;y<w;y++,S++)d[S]=b[y];return d};Object.defineProperty(g,"__esModule",{value:!0}),g.zip=void 0;var s=t(48051),m=t(19724),u=t(7652),f=t(44885),p=t(17214),v=t(26404);function h(){for(var d=[],b=0;b<arguments.length;b++)d[b]=arguments[b];var y=v.popResultSelector(d),w=u.argsOrArgArray(d);return w.length?new s.Observable(function(S){var O=w.map(function(){return[]}),R=w.map(function(){return!1});S.add(function(){O=R=null});for(var M=function(P){m.innerFrom(w[P]).subscribe(p.createOperatorSubscriber(S,function(T){if(O[P].push(T),O.every(function(j){return j.length})){var A=O.map(function(j){return j.shift()});S.next(y?y.apply(void 0,l([],i(A))):A),O.some(function(j,ae){return!j.length&&R[ae]})&&S.complete()}},function(){R[P]=!0,!O[P].length&&S.complete()}))},D=0;!S.closed&&D<w.length;D++)M(D);return function(){O=R=null}}):f.EMPTY}g.zip=h},17214:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var u=function(f,p){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},u(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");u(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.OperatorSubscriber=g.createOperatorSubscriber=void 0;var l=t(2708);function s(u,f,p,v,h){return new m(u,f,p,v,h)}g.createOperatorSubscriber=s;var m=function(u){i(f,u);function f(p,v,h,d,b,y){var w=u.call(this,p)||this;return w.onFinalize=b,w.shouldUnsubscribe=y,w._next=v?function(S){try{v(S)}catch(O){p.error(O)}}:u.prototype._next,w._error=d?function(S){try{d(S)}catch(O){p.error(O)}finally{this.unsubscribe()}}:u.prototype._error,w._complete=h?function(){try{h()}catch(S){p.error(S)}finally{this.unsubscribe()}}:u.prototype._complete,w}return f.prototype.unsubscribe=function(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var v=this.closed;u.prototype.unsubscribe.call(this),!v&&((p=this.onFinalize)===null||p===void 0||p.call(this))}},f}(l.Subscriber);g.OperatorSubscriber=m},88877:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.audit=void 0;var i=t(65212),l=t(19724),s=t(17214);function m(u){return i.operate(function(f,p){var v=!1,h=null,d=null,b=!1,y=function(){if(d?.unsubscribe(),d=null,v){v=!1;var S=h;h=null,p.next(S)}b&&p.complete()},w=function(){d=null,b&&p.complete()};f.subscribe(s.createOperatorSubscriber(p,function(S){v=!0,h=S,d||l.innerFrom(u(S)).subscribe(d=s.createOperatorSubscriber(p,y,w))},function(){b=!0,(!v||!d||d.closed)&&p.complete()}))})}g.audit=m},51608:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.auditTime=void 0;var i=t(62326),l=t(88877),s=t(5825);function m(u,f){return f===void 0&&(f=i.asyncScheduler),l.audit(function(){return s.timer(u,f)})}g.auditTime=m},10706:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.buffer=void 0;var i=t(65212),l=t(5717),s=t(17214),m=t(19724);function u(f){return i.operate(function(p,v){var h=[];return p.subscribe(s.createOperatorSubscriber(v,function(d){return h.push(d)},function(){v.next(h),v.complete()})),m.innerFrom(f).subscribe(s.createOperatorSubscriber(v,function(){var d=h;h=[],v.next(d)},l.noop)),function(){h=null}})}g.buffer=u},9287:function(J,g,t){"use strict";var i=this&&this.__values||function(f){var p=typeof Symbol=="function"&&Symbol.iterator,v=p&&f[p],h=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&h>=f.length&&(f=void 0),{value:f&&f[h++],done:!f}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.bufferCount=void 0;var l=t(65212),s=t(17214),m=t(54830);function u(f,p){return p===void 0&&(p=null),p=p??f,l.operate(function(v,h){var d=[],b=0;v.subscribe(s.createOperatorSubscriber(h,function(y){var w,S,O,R,M=null;b++%p===0&&d.push([]);try{for(var D=i(d),P=D.next();!P.done;P=D.next()){var T=P.value;T.push(y),f<=T.length&&(M=M??[],M.push(T))}}catch(ae){w={error:ae}}finally{try{P&&!P.done&&(S=D.return)&&S.call(D)}finally{if(w)throw w.error}}if(M)try{for(var A=i(M),j=A.next();!j.done;j=A.next()){var T=j.value;m.arrRemove(d,T),h.next(T)}}catch(ae){O={error:ae}}finally{try{j&&!j.done&&(R=A.return)&&R.call(A)}finally{if(O)throw O.error}}},function(){var y,w;try{for(var S=i(d),O=S.next();!O.done;O=S.next()){var R=O.value;h.next(R)}}catch(M){y={error:M}}finally{try{O&&!O.done&&(w=S.return)&&w.call(S)}finally{if(y)throw y.error}}h.complete()},void 0,function(){d=null}))})}g.bufferCount=u},41719:function(J,g,t){"use strict";var i=this&&this.__values||function(d){var b=typeof Symbol=="function"&&Symbol.iterator,y=b&&d[b],w=0;if(y)return y.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&w>=d.length&&(d=void 0),{value:d&&d[w++],done:!d}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.bufferTime=void 0;var l=t(69879),s=t(65212),m=t(17214),u=t(54830),f=t(62326),p=t(26404),v=t(28619);function h(d){for(var b,y,w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];var O=(b=p.popScheduler(w))!==null&&b!==void 0?b:f.asyncScheduler,R=(y=w[0])!==null&&y!==void 0?y:null,M=w[1]||1/0;return s.operate(function(D,P){var T=[],A=!1,j=function(N){var W=N.buffer,he=N.subs;he.unsubscribe(),u.arrRemove(T,N),P.next(W),A&&ae()},ae=function(){if(T){var N=new l.Subscription;P.add(N);var W=[],he={buffer:W,subs:N};T.push(he),v.executeSchedule(N,O,function(){return j(he)},d)}};R!==null&&R>=0?v.executeSchedule(P,O,ae,R,!0):A=!0,ae();var _=m.createOperatorSubscriber(P,function(N){var W,he,me=T.slice();try{for(var fe=i(me),ve=fe.next();!ve.done;ve=fe.next()){var ce=ve.value,oe=ce.buffer;oe.push(N),M<=oe.length&&j(ce)}}catch(re){W={error:re}}finally{try{ve&&!ve.done&&(he=fe.return)&&he.call(fe)}finally{if(W)throw W.error}}},function(){for(;T?.length;)P.next(T.shift().buffer);_?.unsubscribe(),P.complete(),P.unsubscribe()},void 0,function(){return T=null});D.subscribe(_)})}g.bufferTime=h},61778:function(J,g,t){"use strict";var i=this&&this.__values||function(h){var d=typeof Symbol=="function"&&Symbol.iterator,b=d&&h[d],y=0;if(b)return b.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&y>=h.length&&(h=void 0),{value:h&&h[y++],done:!h}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.bufferToggle=void 0;var l=t(69879),s=t(65212),m=t(19724),u=t(17214),f=t(5717),p=t(54830);function v(h,d){return s.operate(function(b,y){var w=[];m.innerFrom(h).subscribe(u.createOperatorSubscriber(y,function(S){var O=[];w.push(O);var R=new l.Subscription,M=function(){p.arrRemove(w,O),y.next(O),R.unsubscribe()};R.add(m.innerFrom(d(S)).subscribe(u.createOperatorSubscriber(y,M,f.noop)))},f.noop)),b.subscribe(u.createOperatorSubscriber(y,function(S){var O,R;try{for(var M=i(w),D=M.next();!D.done;D=M.next()){var P=D.value;P.push(S)}}catch(T){O={error:T}}finally{try{D&&!D.done&&(R=M.return)&&R.call(M)}finally{if(O)throw O.error}}},function(){for(;w.length>0;)y.next(w.shift());y.complete()}))})}g.bufferToggle=v},56606:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.bufferWhen=void 0;var i=t(65212),l=t(5717),s=t(17214),m=t(19724);function u(f){return i.operate(function(p,v){var h=null,d=null,b=function(){d?.unsubscribe();var y=h;h=[],y&&v.next(y),m.innerFrom(f()).subscribe(d=s.createOperatorSubscriber(v,b,l.noop))};b(),p.subscribe(s.createOperatorSubscriber(v,function(y){return h?.push(y)},function(){h&&v.next(h),v.complete()},void 0,function(){return h=d=null}))})}g.bufferWhen=u},72719:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.catchError=void 0;var i=t(19724),l=t(17214),s=t(65212);function m(u){return s.operate(function(f,p){var v=null,h=!1,d;v=f.subscribe(l.createOperatorSubscriber(p,void 0,void 0,function(b){d=i.innerFrom(u(b,m(u)(f))),v?(v.unsubscribe(),v=null,d.subscribe(p)):h=!0})),h&&(v.unsubscribe(),v=null,d.subscribe(p))})}g.catchError=m},89244:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.combineAll=void 0;var i=t(67933);g.combineAll=i.combineLatestAll},64948:function(J,g,t){"use strict";var i=this&&this.__read||function(d,b){var y=typeof Symbol=="function"&&d[Symbol.iterator];if(!y)return d;var w=y.call(d),S,O=[],R;try{for(;(b===void 0||b-- >0)&&!(S=w.next()).done;)O.push(S.value)}catch(M){R={error:M}}finally{try{S&&!S.done&&(y=w.return)&&y.call(w)}finally{if(R)throw R.error}}return O},l=this&&this.__spreadArray||function(d,b){for(var y=0,w=b.length,S=d.length;y<w;y++,S++)d[S]=b[y];return d};Object.defineProperty(g,"__esModule",{value:!0}),g.combineLatest=void 0;var s=t(88246),m=t(65212),u=t(7652),f=t(13916),p=t(99517),v=t(26404);function h(){for(var d=[],b=0;b<arguments.length;b++)d[b]=arguments[b];var y=v.popResultSelector(d);return y?p.pipe(h.apply(void 0,l([],i(d))),f.mapOneOrManyArgs(y)):m.operate(function(w,S){s.combineLatestInit(l([w],i(u.argsOrArgArray(d))))(S)})}g.combineLatest=h},67933:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.combineLatestAll=void 0;var i=t(88246),l=t(80719);function s(m){return l.joinAllInternals(i.combineLatest,m)}g.combineLatestAll=s},82044:function(J,g,t){"use strict";var i=this&&this.__read||function(u,f){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var v=p.call(u),h,d=[],b;try{for(;(f===void 0||f-- >0)&&!(h=v.next()).done;)d.push(h.value)}catch(y){b={error:y}}finally{try{h&&!h.done&&(p=v.return)&&p.call(v)}finally{if(b)throw b.error}}return d},l=this&&this.__spreadArray||function(u,f){for(var p=0,v=f.length,h=u.length;p<v;p++,h++)u[h]=f[p];return u};Object.defineProperty(g,"__esModule",{value:!0}),g.combineLatestWith=void 0;var s=t(64948);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.combineLatest.apply(void 0,l([],i(u)))}g.combineLatestWith=m},96328:function(J,g,t){"use strict";var i=this&&this.__read||function(v,h){var d=typeof Symbol=="function"&&v[Symbol.iterator];if(!d)return v;var b=d.call(v),y,w=[],S;try{for(;(h===void 0||h-- >0)&&!(y=b.next()).done;)w.push(y.value)}catch(O){S={error:O}}finally{try{y&&!y.done&&(d=b.return)&&d.call(b)}finally{if(S)throw S.error}}return w},l=this&&this.__spreadArray||function(v,h){for(var d=0,b=h.length,y=v.length;d<b;d++,y++)v[y]=h[d];return v};Object.defineProperty(g,"__esModule",{value:!0}),g.concat=void 0;var s=t(65212),m=t(70201),u=t(26404),f=t(47058);function p(){for(var v=[],h=0;h<arguments.length;h++)v[h]=arguments[h];var d=u.popScheduler(v);return s.operate(function(b,y){m.concatAll()(f.from(l([b],i(v)),d)).subscribe(y)})}g.concat=p},70201:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.concatAll=void 0;var i=t(68087);function l(){return i.mergeAll(1)}g.concatAll=l},29512:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.concatMap=void 0;var i=t(67478),l=t(10281);function s(m,u){return l.isFunction(u)?i.mergeMap(m,u,1):i.mergeMap(m,1)}g.concatMap=s},19913:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.concatMapTo=void 0;var i=t(29512),l=t(10281);function s(m,u){return l.isFunction(u)?i.concatMap(function(){return m},u):i.concatMap(function(){return m})}g.concatMapTo=s},98032:function(J,g,t){"use strict";var i=this&&this.__read||function(u,f){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var v=p.call(u),h,d=[],b;try{for(;(f===void 0||f-- >0)&&!(h=v.next()).done;)d.push(h.value)}catch(y){b={error:y}}finally{try{h&&!h.done&&(p=v.return)&&p.call(v)}finally{if(b)throw b.error}}return d},l=this&&this.__spreadArray||function(u,f){for(var p=0,v=f.length,h=u.length;p<v;p++,h++)u[h]=f[p];return u};Object.defineProperty(g,"__esModule",{value:!0}),g.concatWith=void 0;var s=t(96328);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.concat.apply(void 0,l([],i(u)))}g.concatWith=m},17812:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.connect=void 0;var i=t(76808),l=t(19724),s=t(65212),m=t(51071),u={connector:function(){return new i.Subject}};function f(p,v){v===void 0&&(v=u);var h=v.connector;return s.operate(function(d,b){var y=h();l.innerFrom(p(m.fromSubscribable(y))).subscribe(b),b.add(d.subscribe(y))})}g.connect=f},88589:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.count=void 0;var i=t(92070);function l(s){return i.reduce(function(m,u,f){return!s||s(u,f)?m+1:m},0)}g.count=l},3143:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.debounce=void 0;var i=t(65212),l=t(5717),s=t(17214),m=t(19724);function u(f){return i.operate(function(p,v){var h=!1,d=null,b=null,y=function(){if(b?.unsubscribe(),b=null,h){h=!1;var w=d;d=null,v.next(w)}};p.subscribe(s.createOperatorSubscriber(v,function(w){b?.unsubscribe(),h=!0,d=w,b=s.createOperatorSubscriber(v,y,l.noop),m.innerFrom(f(w)).subscribe(b)},function(){y(),v.complete()},void 0,function(){d=b=null}))})}g.debounce=u},21762:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.debounceTime=void 0;var i=t(62326),l=t(65212),s=t(17214);function m(u,f){return f===void 0&&(f=i.asyncScheduler),l.operate(function(p,v){var h=null,d=null,b=null,y=function(){if(h){h.unsubscribe(),h=null;var S=d;d=null,v.next(S)}};function w(){var S=b+u,O=f.now();if(O<S){h=this.schedule(void 0,S-O),v.add(h);return}y()}p.subscribe(s.createOperatorSubscriber(v,function(S){d=S,b=f.now(),h||(h=f.schedule(w,u),v.add(h))},function(){y(),v.complete()},void 0,function(){d=h=null}))})}g.debounceTime=m},58799:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.defaultIfEmpty=void 0;var i=t(65212),l=t(17214);function s(m){return i.operate(function(u,f){var p=!1;u.subscribe(l.createOperatorSubscriber(f,function(v){p=!0,f.next(v)},function(){p||f.next(m),f.complete()}))})}g.defaultIfEmpty=s},5797:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.delay=void 0;var i=t(62326),l=t(72885),s=t(5825);function m(u,f){f===void 0&&(f=i.asyncScheduler);var p=s.timer(u,f);return l.delayWhen(function(){return p})}g.delay=m},72885:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.delayWhen=void 0;var i=t(39546),l=t(54383),s=t(2959),m=t(13337),u=t(67478),f=t(19724);function p(v,h){return h?function(d){return i.concat(h.pipe(l.take(1),s.ignoreElements()),d.pipe(p(v)))}:u.mergeMap(function(d,b){return f.innerFrom(v(d,b)).pipe(l.take(1),m.mapTo(d))})}g.delayWhen=p},19818:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.dematerialize=void 0;var i=t(31245),l=t(65212),s=t(17214);function m(){return l.operate(function(u,f){u.subscribe(s.createOperatorSubscriber(f,function(p){return i.observeNotification(p,f)}))})}g.dematerialize=m},77876:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.distinct=void 0;var i=t(65212),l=t(17214),s=t(5717),m=t(19724);function u(f,p){return i.operate(function(v,h){var d=new Set;v.subscribe(l.createOperatorSubscriber(h,function(b){var y=f?f(b):b;d.has(y)||(d.add(y),h.next(b))})),p&&m.innerFrom(p).subscribe(l.createOperatorSubscriber(h,function(){return d.clear()},s.noop))})}g.distinct=u},22044:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.distinctUntilChanged=void 0;var i=t(87699),l=t(65212),s=t(17214);function m(f,p){return p===void 0&&(p=i.identity),f=f??u,l.operate(function(v,h){var d,b=!0;v.subscribe(s.createOperatorSubscriber(h,function(y){var w=p(y);(b||!f(d,w))&&(b=!1,d=w,h.next(y))}))})}g.distinctUntilChanged=m;function u(f,p){return f===p}},76035:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.distinctUntilKeyChanged=void 0;var i=t(22044);function l(s,m){return i.distinctUntilChanged(function(u,f){return m?m(u[s],f[s]):u[s]===f[s]})}g.distinctUntilKeyChanged=l},61279:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.elementAt=void 0;var i=t(7024),l=t(85934),s=t(30632),m=t(58799),u=t(54383);function f(p,v){if(p<0)throw new i.ArgumentOutOfRangeError;var h=arguments.length>=2;return function(d){return d.pipe(l.filter(function(b,y){return y===p}),u.take(1),h?m.defaultIfEmpty(v):s.throwIfEmpty(function(){return new i.ArgumentOutOfRangeError}))}}g.elementAt=f},66791:function(J,g,t){"use strict";var i=this&&this.__read||function(f,p){var v=typeof Symbol=="function"&&f[Symbol.iterator];if(!v)return f;var h=v.call(f),d,b=[],y;try{for(;(p===void 0||p-- >0)&&!(d=h.next()).done;)b.push(d.value)}catch(w){y={error:w}}finally{try{d&&!d.done&&(v=h.return)&&v.call(h)}finally{if(y)throw y.error}}return b},l=this&&this.__spreadArray||function(f,p){for(var v=0,h=p.length,d=f.length;v<h;v++,d++)f[d]=p[v];return f};Object.defineProperty(g,"__esModule",{value:!0}),g.endWith=void 0;var s=t(39546),m=t(61587);function u(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return function(v){return s.concat(v,m.of.apply(void 0,l([],i(f))))}}g.endWith=u},21361:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.every=void 0;var i=t(65212),l=t(17214);function s(m,u){return i.operate(function(f,p){var v=0;f.subscribe(l.createOperatorSubscriber(p,function(h){m.call(u,h,v++,f)||(p.next(!1),p.complete())},function(){p.next(!0),p.complete()}))})}g.every=s},11464:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.exhaust=void 0;var i=t(17977);g.exhaust=i.exhaustAll},17977:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.exhaustAll=void 0;var i=t(86632),l=t(87699);function s(){return i.exhaustMap(l.identity)}g.exhaustAll=s},86632:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.exhaustMap=void 0;var i=t(26872),l=t(19724),s=t(65212),m=t(17214);function u(f,p){return p?function(v){return v.pipe(u(function(h,d){return l.innerFrom(f(h,d)).pipe(i.map(function(b,y){return p(h,b,d,y)}))}))}:s.operate(function(v,h){var d=0,b=null,y=!1;v.subscribe(m.createOperatorSubscriber(h,function(w){b||(b=m.createOperatorSubscriber(h,void 0,function(){b=null,y&&h.complete()}),l.innerFrom(f(w,d++)).subscribe(b))},function(){y=!0,!b&&h.complete()}))})}g.exhaustMap=u},75544:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.expand=void 0;var i=t(65212),l=t(2574);function s(m,u,f){return u===void 0&&(u=1/0),u=(u||0)<1?1/0:u,i.operate(function(p,v){return l.mergeInternals(p,v,m,u,void 0,!0,f)})}g.expand=s},85934:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.filter=void 0;var i=t(65212),l=t(17214);function s(m,u){return i.operate(function(f,p){var v=0;f.subscribe(l.createOperatorSubscriber(p,function(h){return m.call(u,h,v++)&&p.next(h)}))})}g.filter=s},17802:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.finalize=void 0;var i=t(65212);function l(s){return i.operate(function(m,u){try{m.subscribe(u)}finally{u.add(s)}})}g.finalize=l},98183:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createFind=g.find=void 0;var i=t(65212),l=t(17214);function s(u,f){return i.operate(m(u,f,"value"))}g.find=s;function m(u,f,p){var v=p==="index";return function(h,d){var b=0;h.subscribe(l.createOperatorSubscriber(d,function(y){var w=b++;u.call(f,y,w,h)&&(d.next(v?w:y),d.complete())},function(){d.next(v?-1:void 0),d.complete()}))}}g.createFind=m},29035:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.findIndex=void 0;var i=t(65212),l=t(98183);function s(m,u){return i.operate(l.createFind(m,u,"index"))}g.findIndex=s},19980:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.first=void 0;var i=t(59328),l=t(85934),s=t(54383),m=t(58799),u=t(30632),f=t(87699);function p(v,h){var d=arguments.length>=2;return function(b){return b.pipe(v?l.filter(function(y,w){return v(y,w,b)}):f.identity,s.take(1),d?m.defaultIfEmpty(h):u.throwIfEmpty(function(){return new i.EmptyError}))}}g.first=p},74613:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.flatMap=void 0;var i=t(67478);g.flatMap=i.mergeMap},5128:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.groupBy=void 0;var i=t(48051),l=t(19724),s=t(76808),m=t(65212),u=t(17214);function f(p,v,h,d){return m.operate(function(b,y){var w;!v||typeof v=="function"?w=v:(h=v.duration,w=v.element,d=v.connector);var S=new Map,O=function(A){S.forEach(A),A(y)},R=function(A){return O(function(j){return j.error(A)})},M=0,D=!1,P=new u.OperatorSubscriber(y,function(A){try{var j=p(A),ae=S.get(j);if(!ae){S.set(j,ae=d?d():new s.Subject);var _=T(j,ae);if(y.next(_),h){var N=u.createOperatorSubscriber(ae,function(){ae.complete(),N?.unsubscribe()},void 0,void 0,function(){return S.delete(j)});P.add(l.innerFrom(h(_)).subscribe(N))}}ae.next(w?w(A):A)}catch(W){R(W)}},function(){return O(function(A){return A.complete()})},R,function(){return S.clear()},function(){return D=!0,M===0});b.subscribe(P);function T(A,j){var ae=new i.Observable(function(_){M++;var N=j.subscribe(_);return function(){N.unsubscribe(),--M===0&&D&&P.unsubscribe()}});return ae.key=A,ae}})}g.groupBy=f},2959:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ignoreElements=void 0;var i=t(65212),l=t(17214),s=t(5717);function m(){return i.operate(function(u,f){u.subscribe(l.createOperatorSubscriber(f,s.noop))})}g.ignoreElements=m},69915:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isEmpty=void 0;var i=t(65212),l=t(17214);function s(){return i.operate(function(m,u){m.subscribe(l.createOperatorSubscriber(u,function(){u.next(!1),u.complete()},function(){u.next(!0),u.complete()}))})}g.isEmpty=s},80719:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.joinAllInternals=void 0;var i=t(87699),l=t(13916),s=t(99517),m=t(67478),u=t(73484);function f(p,v){return s.pipe(u.toArray(),m.mergeMap(function(h){return p(h)}),v?l.mapOneOrManyArgs(v):i.identity)}g.joinAllInternals=f},32568:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.last=void 0;var i=t(59328),l=t(85934),s=t(65279),m=t(30632),u=t(58799),f=t(87699);function p(v,h){var d=arguments.length>=2;return function(b){return b.pipe(v?l.filter(function(y,w){return v(y,w,b)}):f.identity,s.takeLast(1),d?u.defaultIfEmpty(h):m.throwIfEmpty(function(){return new i.EmptyError}))}}g.last=p},26872:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.map=void 0;var i=t(65212),l=t(17214);function s(m,u){return i.operate(function(f,p){var v=0;f.subscribe(l.createOperatorSubscriber(p,function(h){p.next(m.call(u,h,v++))}))})}g.map=s},13337:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.mapTo=void 0;var i=t(26872);function l(s){return i.map(function(){return s})}g.mapTo=l},75019:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.materialize=void 0;var i=t(31245),l=t(65212),s=t(17214);function m(){return l.operate(function(u,f){u.subscribe(s.createOperatorSubscriber(f,function(p){f.next(i.Notification.createNext(p))},function(){f.next(i.Notification.createComplete()),f.complete()},function(p){f.next(i.Notification.createError(p)),f.complete()}))})}g.materialize=m},50096:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.max=void 0;var i=t(92070),l=t(10281);function s(m){return i.reduce(l.isFunction(m)?function(u,f){return m(u,f)>0?u:f}:function(u,f){return u>f?u:f})}g.max=s},9330:function(J,g,t){"use strict";var i=this&&this.__read||function(h,d){var b=typeof Symbol=="function"&&h[Symbol.iterator];if(!b)return h;var y=b.call(h),w,S=[],O;try{for(;(d===void 0||d-- >0)&&!(w=y.next()).done;)S.push(w.value)}catch(R){O={error:R}}finally{try{w&&!w.done&&(b=y.return)&&b.call(y)}finally{if(O)throw O.error}}return S},l=this&&this.__spreadArray||function(h,d){for(var b=0,y=d.length,w=h.length;b<y;b++,w++)h[w]=d[b];return h};Object.defineProperty(g,"__esModule",{value:!0}),g.merge=void 0;var s=t(65212),m=t(7652),u=t(68087),f=t(26404),p=t(47058);function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];var b=f.popScheduler(h),y=f.popNumber(h,1/0);return h=m.argsOrArgArray(h),s.operate(function(w,S){u.mergeAll(y)(p.from(l([w],i(h)),b)).subscribe(S)})}g.merge=v},68087:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.mergeAll=void 0;var i=t(67478),l=t(87699);function s(m){return m===void 0&&(m=1/0),i.mergeMap(l.identity,m)}g.mergeAll=s},2574:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.mergeInternals=void 0;var i=t(19724),l=t(28619),s=t(17214);function m(u,f,p,v,h,d,b,y){var w=[],S=0,O=0,R=!1,M=function(){R&&!w.length&&!S&&f.complete()},D=function(T){return S<v?P(T):w.push(T)},P=function(T){d&&f.next(T),S++;var A=!1;i.innerFrom(p(T,O++)).subscribe(s.createOperatorSubscriber(f,function(j){h?.(j),d?D(j):f.next(j)},function(){A=!0},void 0,function(){if(A)try{S--;for(var j=function(){var ae=w.shift();b?l.executeSchedule(f,b,function(){return P(ae)}):P(ae)};w.length&&S<v;)j();M()}catch(ae){f.error(ae)}}))};return u.subscribe(s.createOperatorSubscriber(f,D,function(){R=!0,M()})),function(){y?.()}}g.mergeInternals=m},67478:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.mergeMap=void 0;var i=t(26872),l=t(19724),s=t(65212),m=t(2574),u=t(10281);function f(p,v,h){return h===void 0&&(h=1/0),u.isFunction(v)?f(function(d,b){return i.map(function(y,w){return v(d,y,b,w)})(l.innerFrom(p(d,b)))},h):(typeof v=="number"&&(h=v),s.operate(function(d,b){return m.mergeInternals(d,b,p,h)}))}g.mergeMap=f},76075:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.mergeMapTo=void 0;var i=t(67478),l=t(10281);function s(m,u,f){return f===void 0&&(f=1/0),l.isFunction(u)?i.mergeMap(function(){return m},u,f):(typeof u=="number"&&(f=u),i.mergeMap(function(){return m},f))}g.mergeMapTo=s},16707:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.mergeScan=void 0;var i=t(65212),l=t(2574);function s(m,u,f){return f===void 0&&(f=1/0),i.operate(function(p,v){var h=u;return l.mergeInternals(p,v,function(d,b){return m(h,d,b)},f,function(d){h=d},!1,void 0,function(){return h=null})})}g.mergeScan=s},79694:function(J,g,t){"use strict";var i=this&&this.__read||function(u,f){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var v=p.call(u),h,d=[],b;try{for(;(f===void 0||f-- >0)&&!(h=v.next()).done;)d.push(h.value)}catch(y){b={error:y}}finally{try{h&&!h.done&&(p=v.return)&&p.call(v)}finally{if(b)throw b.error}}return d},l=this&&this.__spreadArray||function(u,f){for(var p=0,v=f.length,h=u.length;p<v;p++,h++)u[h]=f[p];return u};Object.defineProperty(g,"__esModule",{value:!0}),g.mergeWith=void 0;var s=t(9330);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.merge.apply(void 0,l([],i(u)))}g.mergeWith=m},80142:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.min=void 0;var i=t(92070),l=t(10281);function s(m){return i.reduce(l.isFunction(m)?function(u,f){return m(u,f)<0?u:f}:function(u,f){return u<f?u:f})}g.min=s},18464:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.multicast=void 0;var i=t(14359),l=t(10281),s=t(17812);function m(u,f){var p=l.isFunction(u)?u:function(){return u};return l.isFunction(f)?s.connect(f,{connector:p}):function(v){return new i.ConnectableObservable(v,p)}}g.multicast=m},32071:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.observeOn=void 0;var i=t(28619),l=t(65212),s=t(17214);function m(u,f){return f===void 0&&(f=0),l.operate(function(p,v){p.subscribe(s.createOperatorSubscriber(v,function(h){return i.executeSchedule(v,u,function(){return v.next(h)},f)},function(){return i.executeSchedule(v,u,function(){return v.complete()},f)},function(h){return i.executeSchedule(v,u,function(){return v.error(h)},f)}))})}g.observeOn=m},95513:function(J,g,t){"use strict";var i=this&&this.__read||function(f,p){var v=typeof Symbol=="function"&&f[Symbol.iterator];if(!v)return f;var h=v.call(f),d,b=[],y;try{for(;(p===void 0||p-- >0)&&!(d=h.next()).done;)b.push(d.value)}catch(w){y={error:w}}finally{try{d&&!d.done&&(v=h.return)&&v.call(h)}finally{if(y)throw y.error}}return b},l=this&&this.__spreadArray||function(f,p){for(var v=0,h=p.length,d=f.length;v<h;v++,d++)f[d]=p[v];return f};Object.defineProperty(g,"__esModule",{value:!0}),g.onErrorResumeNext=g.onErrorResumeNextWith=void 0;var s=t(7652),m=t(1903);function u(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var v=s.argsOrArgArray(f);return function(h){return m.onErrorResumeNext.apply(void 0,l([h],i(v)))}}g.onErrorResumeNextWith=u,g.onErrorResumeNext=u},26744:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.pairwise=void 0;var i=t(65212),l=t(17214);function s(){return i.operate(function(m,u){var f,p=!1;m.subscribe(l.createOperatorSubscriber(u,function(v){var h=f;f=v,p&&u.next([h,v]),p=!0}))})}g.pairwise=s},66355:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.pluck=void 0;var i=t(26872);function l(){for(var s=[],m=0;m<arguments.length;m++)s[m]=arguments[m];var u=s.length;if(u===0)throw new Error("list of properties cannot be empty.");return i.map(function(f){for(var p=f,v=0;v<u;v++){var h=p?.[s[v]];if(typeof h<"u")p=h;else return}return p})}g.pluck=l},53197:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.publish=void 0;var i=t(76808),l=t(18464),s=t(17812);function m(u){return u?function(f){return s.connect(u)(f)}:function(f){return l.multicast(new i.Subject)(f)}}g.publish=m},82955:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.publishBehavior=void 0;var i=t(97314),l=t(14359);function s(m){return function(u){var f=new i.BehaviorSubject(m);return new l.ConnectableObservable(u,function(){return f})}}g.publishBehavior=s},26569:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.publishLast=void 0;var i=t(5130),l=t(14359);function s(){return function(m){var u=new i.AsyncSubject;return new l.ConnectableObservable(m,function(){return u})}}g.publishLast=s},68710:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.publishReplay=void 0;var i=t(10381),l=t(18464),s=t(10281);function m(u,f,p,v){p&&!s.isFunction(p)&&(v=p);var h=s.isFunction(p)?p:void 0;return function(d){return l.multicast(new i.ReplaySubject(u,f,v),h)(d)}}g.publishReplay=m},6677:function(J,g,t){"use strict";var i=this&&this.__read||function(p,v){var h=typeof Symbol=="function"&&p[Symbol.iterator];if(!h)return p;var d=h.call(p),b,y=[],w;try{for(;(v===void 0||v-- >0)&&!(b=d.next()).done;)y.push(b.value)}catch(S){w={error:S}}finally{try{b&&!b.done&&(h=d.return)&&h.call(d)}finally{if(w)throw w.error}}return y},l=this&&this.__spreadArray||function(p,v){for(var h=0,d=v.length,b=p.length;h<d;h++,b++)p[b]=v[h];return p};Object.defineProperty(g,"__esModule",{value:!0}),g.raceWith=void 0;var s=t(89795),m=t(65212),u=t(87699);function f(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return p.length?m.operate(function(h,d){s.raceInit(l([h],i(p)))(d)}):u.identity}g.raceWith=f},92070:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.reduce=void 0;var i=t(78531),l=t(65212);function s(m,u){return l.operate(i.scanInternals(m,u,arguments.length>=2,!1,!0))}g.reduce=s},79224:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.refCount=void 0;var i=t(65212),l=t(17214);function s(){return i.operate(function(m,u){var f=null;m._refCount++;var p=l.createOperatorSubscriber(u,void 0,void 0,void 0,function(){if(!m||m._refCount<=0||0<--m._refCount){f=null;return}var v=m._connection,h=f;f=null,v&&(!h||v===h)&&v.unsubscribe(),u.unsubscribe()});m.subscribe(p),p.closed||(f=m.connect())})}g.refCount=s},56131:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.repeat=void 0;var i=t(44885),l=t(65212),s=t(17214),m=t(19724),u=t(5825);function f(p){var v,h=1/0,d;return p!=null&&(typeof p=="object"?(v=p.count,h=v===void 0?1/0:v,d=p.delay):h=p),h<=0?function(){return i.EMPTY}:l.operate(function(b,y){var w=0,S,O=function(){if(S?.unsubscribe(),S=null,d!=null){var M=typeof d=="number"?u.timer(d):m.innerFrom(d(w)),D=s.createOperatorSubscriber(y,function(){D.unsubscribe(),R()});M.subscribe(D)}else R()},R=function(){var M=!1;S=b.subscribe(s.createOperatorSubscriber(y,void 0,function(){++w<h?S?O():M=!0:y.complete()})),M&&O()};R()})}g.repeat=f},82139:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.repeatWhen=void 0;var i=t(19724),l=t(76808),s=t(65212),m=t(17214);function u(f){return s.operate(function(p,v){var h,d=!1,b,y=!1,w=!1,S=function(){return w&&y&&(v.complete(),!0)},O=function(){return b||(b=new l.Subject,i.innerFrom(f(b)).subscribe(m.createOperatorSubscriber(v,function(){h?R():d=!0},function(){y=!0,S()}))),b},R=function(){w=!1,h=p.subscribe(m.createOperatorSubscriber(v,void 0,function(){w=!0,!S()&&O().next()})),d&&(h.unsubscribe(),h=null,d=!1,R())};R()})}g.repeatWhen=u},3352:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.retry=void 0;var i=t(65212),l=t(17214),s=t(87699),m=t(5825),u=t(19724);function f(p){p===void 0&&(p=1/0);var v;p&&typeof p=="object"?v=p:v={count:p};var h=v.count,d=h===void 0?1/0:h,b=v.delay,y=v.resetOnSuccess,w=y===void 0?!1:y;return d<=0?s.identity:i.operate(function(S,O){var R=0,M,D=function(){var P=!1;M=S.subscribe(l.createOperatorSubscriber(O,function(T){w&&(R=0),O.next(T)},void 0,function(T){if(R++<d){var A=function(){M?(M.unsubscribe(),M=null,D()):P=!0};if(b!=null){var j=typeof b=="number"?m.timer(b):u.innerFrom(b(T,R)),ae=l.createOperatorSubscriber(O,function(){ae.unsubscribe(),A()},function(){O.complete()});j.subscribe(ae)}else A()}else O.error(T)})),P&&(M.unsubscribe(),M=null,D())};D()})}g.retry=f},73956:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.retryWhen=void 0;var i=t(19724),l=t(76808),s=t(65212),m=t(17214);function u(f){return s.operate(function(p,v){var h,d=!1,b,y=function(){h=p.subscribe(m.createOperatorSubscriber(v,void 0,void 0,function(w){b||(b=new l.Subject,i.innerFrom(f(b)).subscribe(m.createOperatorSubscriber(v,function(){return h?y():d=!0}))),b&&b.next(w)})),d&&(h.unsubscribe(),h=null,d=!1,y())};y()})}g.retryWhen=u},43434:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.sample=void 0;var i=t(19724),l=t(65212),s=t(5717),m=t(17214);function u(f){return l.operate(function(p,v){var h=!1,d=null;p.subscribe(m.createOperatorSubscriber(v,function(b){h=!0,d=b})),i.innerFrom(f).subscribe(m.createOperatorSubscriber(v,function(){if(h){h=!1;var b=d;d=null,v.next(b)}},s.noop))})}g.sample=u},44143:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.sampleTime=void 0;var i=t(62326),l=t(43434),s=t(62275);function m(u,f){return f===void 0&&(f=i.asyncScheduler),l.sample(s.interval(u,f))}g.sampleTime=m},35565:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scan=void 0;var i=t(65212),l=t(78531);function s(m,u){return i.operate(l.scanInternals(m,u,arguments.length>=2,!0))}g.scan=s},78531:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scanInternals=void 0;var i=t(17214);function l(s,m,u,f,p){return function(v,h){var d=u,b=m,y=0;v.subscribe(i.createOperatorSubscriber(h,function(w){var S=y++;b=d?s(b,w,S):(d=!0,w),f&&h.next(b)},p&&function(){d&&h.next(b),h.complete()}))}}g.scanInternals=l},73929:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.sequenceEqual=void 0;var i=t(65212),l=t(17214),s=t(19724);function m(f,p){return p===void 0&&(p=function(v,h){return v===h}),i.operate(function(v,h){var d=u(),b=u(),y=function(S){h.next(S),h.complete()},w=function(S,O){var R=l.createOperatorSubscriber(h,function(M){var D=O.buffer,P=O.complete;D.length===0?P?y(!1):S.buffer.push(M):!p(M,D.shift())&&y(!1)},function(){S.complete=!0;var M=O.complete,D=O.buffer;M&&y(D.length===0),R?.unsubscribe()});return R};v.subscribe(w(d,b)),s.innerFrom(f).subscribe(w(b,d))})}g.sequenceEqual=m;function u(){return{buffer:[],complete:!1}}},93405:function(J,g,t){"use strict";var i=this&&this.__read||function(h,d){var b=typeof Symbol=="function"&&h[Symbol.iterator];if(!b)return h;var y=b.call(h),w,S=[],O;try{for(;(d===void 0||d-- >0)&&!(w=y.next()).done;)S.push(w.value)}catch(R){O={error:R}}finally{try{w&&!w.done&&(b=y.return)&&b.call(y)}finally{if(O)throw O.error}}return S},l=this&&this.__spreadArray||function(h,d){for(var b=0,y=d.length,w=h.length;b<y;b++,w++)h[w]=d[b];return h};Object.defineProperty(g,"__esModule",{value:!0}),g.share=void 0;var s=t(19724),m=t(76808),u=t(2708),f=t(65212);function p(h){h===void 0&&(h={});var d=h.connector,b=d===void 0?function(){return new m.Subject}:d,y=h.resetOnError,w=y===void 0?!0:y,S=h.resetOnComplete,O=S===void 0?!0:S,R=h.resetOnRefCountZero,M=R===void 0?!0:R;return function(D){var P,T,A,j=0,ae=!1,_=!1,N=function(){T?.unsubscribe(),T=void 0},W=function(){N(),P=A=void 0,ae=_=!1},he=function(){var me=P;W(),me?.unsubscribe()};return f.operate(function(me,fe){j++,!_&&!ae&&N();var ve=A=A??b();fe.add(function(){j--,j===0&&!_&&!ae&&(T=v(he,M))}),ve.subscribe(fe),!P&&j>0&&(P=new u.SafeSubscriber({next:function(ce){return ve.next(ce)},error:function(ce){_=!0,N(),T=v(W,w,ce),ve.error(ce)},complete:function(){ae=!0,N(),T=v(W,O),ve.complete()}}),s.innerFrom(me).subscribe(P))})(D)}}g.share=p;function v(h,d){for(var b=[],y=2;y<arguments.length;y++)b[y-2]=arguments[y];if(d===!0){h();return}if(d!==!1){var w=new u.SafeSubscriber({next:function(){w.unsubscribe(),h()}});return s.innerFrom(d.apply(void 0,l([],i(b)))).subscribe(w)}}},17782:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.shareReplay=void 0;var i=t(10381),l=t(93405);function s(m,u,f){var p,v,h,d,b=!1;return m&&typeof m=="object"?(p=m.bufferSize,d=p===void 0?1/0:p,v=m.windowTime,u=v===void 0?1/0:v,h=m.refCount,b=h===void 0?!1:h,f=m.scheduler):d=m??1/0,l.share({connector:function(){return new i.ReplaySubject(d,u,f)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:b})}g.shareReplay=s},55440:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.single=void 0;var i=t(59328),l=t(94708),s=t(23506),m=t(65212),u=t(17214);function f(p){return m.operate(function(v,h){var d=!1,b,y=!1,w=0;v.subscribe(u.createOperatorSubscriber(h,function(S){y=!0,(!p||p(S,w++,v))&&(d&&h.error(new l.SequenceError("Too many matching values")),d=!0,b=S)},function(){d?(h.next(b),h.complete()):h.error(y?new s.NotFoundError("No matching values"):new i.EmptyError)}))})}g.single=f},23079:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.skip=void 0;var i=t(85934);function l(s){return i.filter(function(m,u){return s<=u})}g.skip=l},92359:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.skipLast=void 0;var i=t(87699),l=t(65212),s=t(17214);function m(u){return u<=0?i.identity:l.operate(function(f,p){var v=new Array(u),h=0;return f.subscribe(s.createOperatorSubscriber(p,function(d){var b=h++;if(b<u)v[b]=d;else{var y=b%u,w=v[y];v[y]=d,p.next(w)}})),function(){v=null}})}g.skipLast=m},97783:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.skipUntil=void 0;var i=t(65212),l=t(17214),s=t(19724),m=t(5717);function u(f){return i.operate(function(p,v){var h=!1,d=l.createOperatorSubscriber(v,function(){d?.unsubscribe(),h=!0},m.noop);s.innerFrom(f).subscribe(d),p.subscribe(l.createOperatorSubscriber(v,function(b){return h&&v.next(b)}))})}g.skipUntil=u},65774:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.skipWhile=void 0;var i=t(65212),l=t(17214);function s(m){return i.operate(function(u,f){var p=!1,v=0;u.subscribe(l.createOperatorSubscriber(f,function(h){return(p||(p=!m(h,v++)))&&f.next(h)}))})}g.skipWhile=s},99054:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.startWith=void 0;var i=t(39546),l=t(26404),s=t(65212);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];var p=l.popScheduler(u);return s.operate(function(v,h){(p?i.concat(u,v,p):i.concat(u,v)).subscribe(h)})}g.startWith=m},5455:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.subscribeOn=void 0;var i=t(65212);function l(s,m){return m===void 0&&(m=0),i.operate(function(u,f){f.add(s.schedule(function(){return u.subscribe(f)},m))})}g.subscribeOn=l},16201:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.switchAll=void 0;var i=t(90680),l=t(87699);function s(){return i.switchMap(l.identity)}g.switchAll=s},90680:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.switchMap=void 0;var i=t(19724),l=t(65212),s=t(17214);function m(u,f){return l.operate(function(p,v){var h=null,d=0,b=!1,y=function(){return b&&!h&&v.complete()};p.subscribe(s.createOperatorSubscriber(v,function(w){h?.unsubscribe();var S=0,O=d++;i.innerFrom(u(w,O)).subscribe(h=s.createOperatorSubscriber(v,function(R){return v.next(f?f(w,R,O,S++):R)},function(){h=null,y()}))},function(){b=!0,y()}))})}g.switchMap=m},761:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.switchMapTo=void 0;var i=t(90680),l=t(10281);function s(m,u){return l.isFunction(u)?i.switchMap(function(){return m},u):i.switchMap(function(){return m})}g.switchMapTo=s},48461:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.switchScan=void 0;var i=t(90680),l=t(65212);function s(m,u){return l.operate(function(f,p){var v=u;return i.switchMap(function(h,d){return m(v,h,d)},function(h,d){return v=d,d})(f).subscribe(p),function(){v=null}})}g.switchScan=s},54383:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.take=void 0;var i=t(44885),l=t(65212),s=t(17214);function m(u){return u<=0?function(){return i.EMPTY}:l.operate(function(f,p){var v=0;f.subscribe(s.createOperatorSubscriber(p,function(h){++v<=u&&(p.next(h),u<=v&&p.complete())}))})}g.take=m},65279:function(J,g,t){"use strict";var i=this&&this.__values||function(f){var p=typeof Symbol=="function"&&Symbol.iterator,v=p&&f[p],h=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&h>=f.length&&(f=void 0),{value:f&&f[h++],done:!f}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.takeLast=void 0;var l=t(44885),s=t(65212),m=t(17214);function u(f){return f<=0?function(){return l.EMPTY}:s.operate(function(p,v){var h=[];p.subscribe(m.createOperatorSubscriber(v,function(d){h.push(d),f<h.length&&h.shift()},function(){var d,b;try{for(var y=i(h),w=y.next();!w.done;w=y.next()){var S=w.value;v.next(S)}}catch(O){d={error:O}}finally{try{w&&!w.done&&(b=y.return)&&b.call(y)}finally{if(d)throw d.error}}v.complete()},void 0,function(){h=null}))})}g.takeLast=u},66911:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.takeUntil=void 0;var i=t(65212),l=t(17214),s=t(19724),m=t(5717);function u(f){return i.operate(function(p,v){s.innerFrom(f).subscribe(l.createOperatorSubscriber(v,function(){return v.complete()},m.noop)),!v.closed&&p.subscribe(v)})}g.takeUntil=u},60598:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.takeWhile=void 0;var i=t(65212),l=t(17214);function s(m,u){return u===void 0&&(u=!1),i.operate(function(f,p){var v=0;f.subscribe(l.createOperatorSubscriber(p,function(h){var d=m(h,v++);(d||u)&&p.next(h),!d&&p.complete()}))})}g.takeWhile=s},15019:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.tap=void 0;var i=t(10281),l=t(65212),s=t(17214),m=t(87699);function u(f,p,v){var h=i.isFunction(f)||p||v?{next:f,error:p,complete:v}:f;return h?l.operate(function(d,b){var y;(y=h.subscribe)===null||y===void 0||y.call(h);var w=!0;d.subscribe(s.createOperatorSubscriber(b,function(S){var O;(O=h.next)===null||O===void 0||O.call(h,S),b.next(S)},function(){var S;w=!1,(S=h.complete)===null||S===void 0||S.call(h),b.complete()},function(S){var O;w=!1,(O=h.error)===null||O===void 0||O.call(h,S),b.error(S)},function(){var S,O;w&&((S=h.unsubscribe)===null||S===void 0||S.call(h)),(O=h.finalize)===null||O===void 0||O.call(h)}))}):m.identity}g.tap=u},44880:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.throttle=void 0;var i=t(65212),l=t(17214),s=t(19724);function m(u,f){return i.operate(function(p,v){var h=f??{},d=h.leading,b=d===void 0?!0:d,y=h.trailing,w=y===void 0?!1:y,S=!1,O=null,R=null,M=!1,D=function(){R?.unsubscribe(),R=null,w&&(A(),M&&v.complete())},P=function(){R=null,M&&v.complete()},T=function(j){return R=s.innerFrom(u(j)).subscribe(l.createOperatorSubscriber(v,D,P))},A=function(){if(S){S=!1;var j=O;O=null,v.next(j),!M&&T(j)}};p.subscribe(l.createOperatorSubscriber(v,function(j){S=!0,O=j,!(R&&!R.closed)&&(b?A():T(j))},function(){M=!0,!(w&&S&&R&&!R.closed)&&v.complete()}))})}g.throttle=m},7245:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.throttleTime=void 0;var i=t(62326),l=t(44880),s=t(5825);function m(u,f,p){f===void 0&&(f=i.asyncScheduler);var v=s.timer(u,f);return l.throttle(function(){return v},p)}g.throttleTime=m},30632:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.throwIfEmpty=void 0;var i=t(59328),l=t(65212),s=t(17214);function m(f){return f===void 0&&(f=u),l.operate(function(p,v){var h=!1;p.subscribe(s.createOperatorSubscriber(v,function(d){h=!0,v.next(d)},function(){return h?v.complete():v.error(f())}))})}g.throwIfEmpty=m;function u(){return new i.EmptyError}},32508:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.TimeInterval=g.timeInterval=void 0;var i=t(62326),l=t(65212),s=t(17214);function m(f){return f===void 0&&(f=i.asyncScheduler),l.operate(function(p,v){var h=f.now();p.subscribe(s.createOperatorSubscriber(v,function(d){var b=f.now(),y=b-h;h=b,v.next(new u(d,y))}))})}g.timeInterval=m;var u=function(){function f(p,v){this.value=p,this.interval=v}return f}();g.TimeInterval=u},81713:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.timeout=g.TimeoutError=void 0;var i=t(62326),l=t(85345),s=t(65212),m=t(19724),u=t(9619),f=t(17214),p=t(28619);g.TimeoutError=u.createErrorClass(function(d){return function(y){y===void 0&&(y=null),d(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=y}});function v(d,b){var y=l.isValidDate(d)?{first:d}:typeof d=="number"?{each:d}:d,w=y.first,S=y.each,O=y.with,R=O===void 0?h:O,M=y.scheduler,D=M===void 0?b??i.asyncScheduler:M,P=y.meta,T=P===void 0?null:P;if(w==null&&S==null)throw new TypeError("No timeout provided.");return s.operate(function(A,j){var ae,_,N=null,W=0,he=function(me){_=p.executeSchedule(j,D,function(){try{ae.unsubscribe(),m.innerFrom(R({meta:T,lastValue:N,seen:W})).subscribe(j)}catch(fe){j.error(fe)}},me)};ae=A.subscribe(f.createOperatorSubscriber(j,function(me){_?.unsubscribe(),W++,j.next(N=me),S>0&&he(S)},void 0,void 0,function(){_?.closed||_?.unsubscribe(),N=null})),!W&&he(w!=null?typeof w=="number"?w:+w-D.now():S)})}g.timeout=v;function h(d){throw new g.TimeoutError(d)}},50597:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.timeoutWith=void 0;var i=t(62326),l=t(85345),s=t(81713);function m(u,f,p){var v,h,d;if(p=p??i.async,l.isValidDate(u)?v=u:typeof u=="number"&&(h=u),f)d=function(){return f};else throw new TypeError("No observable provided to switch to");if(v==null&&h==null)throw new TypeError("No timeout provided.");return s.timeout({first:v,each:h,scheduler:p,with:d})}g.timeoutWith=m},53866:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.timestamp=void 0;var i=t(93275),l=t(26872);function s(m){return m===void 0&&(m=i.dateTimestampProvider),l.map(function(u){return{value:u,timestamp:m.now()}})}g.timestamp=s},73484:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.toArray=void 0;var i=t(92070),l=t(65212),s=function(u,f){return u.push(f),u};function m(){return l.operate(function(u,f){i.reduce(s,[])(u).subscribe(f)})}g.toArray=m},78072:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.window=void 0;var i=t(76808),l=t(65212),s=t(17214),m=t(5717),u=t(19724);function f(p){return l.operate(function(v,h){var d=new i.Subject;h.next(d.asObservable());var b=function(y){d.error(y),h.error(y)};return v.subscribe(s.createOperatorSubscriber(h,function(y){return d?.next(y)},function(){d.complete(),h.complete()},b)),u.innerFrom(p).subscribe(s.createOperatorSubscriber(h,function(){d.complete(),h.next(d=new i.Subject)},m.noop,b)),function(){d?.unsubscribe(),d=null}})}g.window=f},62893:function(J,g,t){"use strict";var i=this&&this.__values||function(f){var p=typeof Symbol=="function"&&Symbol.iterator,v=p&&f[p],h=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&h>=f.length&&(f=void 0),{value:f&&f[h++],done:!f}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.windowCount=void 0;var l=t(76808),s=t(65212),m=t(17214);function u(f,p){p===void 0&&(p=0);var v=p>0?p:f;return s.operate(function(h,d){var b=[new l.Subject],y=[],w=0;d.next(b[0].asObservable()),h.subscribe(m.createOperatorSubscriber(d,function(S){var O,R;try{for(var M=i(b),D=M.next();!D.done;D=M.next()){var P=D.value;P.next(S)}}catch(j){O={error:j}}finally{try{D&&!D.done&&(R=M.return)&&R.call(M)}finally{if(O)throw O.error}}var T=w-f+1;if(T>=0&&T%v===0&&b.shift().complete(),++w%v===0){var A=new l.Subject;b.push(A),d.next(A.asObservable())}},function(){for(;b.length>0;)b.shift().complete();d.complete()},function(S){for(;b.length>0;)b.shift().error(S);d.error(S)},function(){y=null,b=null}))})}g.windowCount=u},90037:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.windowTime=void 0;var i=t(76808),l=t(62326),s=t(69879),m=t(65212),u=t(17214),f=t(54830),p=t(26404),v=t(28619);function h(d){for(var b,y,w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];var O=(b=p.popScheduler(w))!==null&&b!==void 0?b:l.asyncScheduler,R=(y=w[0])!==null&&y!==void 0?y:null,M=w[1]||1/0;return m.operate(function(D,P){var T=[],A=!1,j=function(W){var he=W.window,me=W.subs;he.complete(),me.unsubscribe(),f.arrRemove(T,W),A&&ae()},ae=function(){if(T){var W=new s.Subscription;P.add(W);var he=new i.Subject,me={window:he,subs:W,seen:0};T.push(me),P.next(he.asObservable()),v.executeSchedule(W,O,function(){return j(me)},d)}};R!==null&&R>=0?v.executeSchedule(P,O,ae,R,!0):A=!0,ae();var _=function(W){return T.slice().forEach(W)},N=function(W){_(function(he){var me=he.window;return W(me)}),W(P),P.unsubscribe()};return D.subscribe(u.createOperatorSubscriber(P,function(W){_(function(he){he.window.next(W),M<=++he.seen&&j(he)})},function(){return N(function(W){return W.complete()})},function(W){return N(function(he){return he.error(W)})})),function(){T=null}})}g.windowTime=h},28996:function(J,g,t){"use strict";var i=this&&this.__values||function(d){var b=typeof Symbol=="function"&&Symbol.iterator,y=b&&d[b],w=0;if(y)return y.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&w>=d.length&&(d=void 0),{value:d&&d[w++],done:!d}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(g,"__esModule",{value:!0}),g.windowToggle=void 0;var l=t(76808),s=t(69879),m=t(65212),u=t(19724),f=t(17214),p=t(5717),v=t(54830);function h(d,b){return m.operate(function(y,w){var S=[],O=function(R){for(;0<S.length;)S.shift().error(R);w.error(R)};u.innerFrom(d).subscribe(f.createOperatorSubscriber(w,function(R){var M=new l.Subject;S.push(M);var D=new s.Subscription,P=function(){v.arrRemove(S,M),M.complete(),D.unsubscribe()},T;try{T=u.innerFrom(b(R))}catch(A){O(A);return}w.next(M.asObservable()),D.add(T.subscribe(f.createOperatorSubscriber(w,P,p.noop,O)))},p.noop)),y.subscribe(f.createOperatorSubscriber(w,function(R){var M,D,P=S.slice();try{for(var T=i(P),A=T.next();!A.done;A=T.next()){var j=A.value;j.next(R)}}catch(ae){M={error:ae}}finally{try{A&&!A.done&&(D=T.return)&&D.call(T)}finally{if(M)throw M.error}}},function(){for(;0<S.length;)S.shift().complete();w.complete()},O,function(){for(;0<S.length;)S.shift().unsubscribe()}))})}g.windowToggle=h},65156:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.windowWhen=void 0;var i=t(76808),l=t(65212),s=t(17214),m=t(19724);function u(f){return l.operate(function(p,v){var h,d,b=function(w){h.error(w),v.error(w)},y=function(){d?.unsubscribe(),h?.complete(),h=new i.Subject,v.next(h.asObservable());var w;try{w=m.innerFrom(f())}catch(S){b(S);return}w.subscribe(d=s.createOperatorSubscriber(v,y,y,b))};y(),p.subscribe(s.createOperatorSubscriber(v,function(w){return h.next(w)},function(){h.complete(),v.complete()},b,function(){d?.unsubscribe(),h=null}))})}g.windowWhen=u},66975:function(J,g,t){"use strict";var i=this&&this.__read||function(d,b){var y=typeof Symbol=="function"&&d[Symbol.iterator];if(!y)return d;var w=y.call(d),S,O=[],R;try{for(;(b===void 0||b-- >0)&&!(S=w.next()).done;)O.push(S.value)}catch(M){R={error:M}}finally{try{S&&!S.done&&(y=w.return)&&y.call(w)}finally{if(R)throw R.error}}return O},l=this&&this.__spreadArray||function(d,b){for(var y=0,w=b.length,S=d.length;y<w;y++,S++)d[S]=b[y];return d};Object.defineProperty(g,"__esModule",{value:!0}),g.withLatestFrom=void 0;var s=t(65212),m=t(17214),u=t(19724),f=t(87699),p=t(5717),v=t(26404);function h(){for(var d=[],b=0;b<arguments.length;b++)d[b]=arguments[b];var y=v.popResultSelector(d);return s.operate(function(w,S){for(var O=d.length,R=new Array(O),M=d.map(function(){return!1}),D=!1,P=function(A){u.innerFrom(d[A]).subscribe(m.createOperatorSubscriber(S,function(j){R[A]=j,!D&&!M[A]&&(M[A]=!0,(D=M.every(f.identity))&&(M=null))},p.noop))},T=0;T<O;T++)P(T);w.subscribe(m.createOperatorSubscriber(S,function(A){if(D){var j=l([A],i(R));S.next(y?y.apply(void 0,l([],i(j))):j)}}))})}g.withLatestFrom=h},26749:function(J,g,t){"use strict";var i=this&&this.__read||function(f,p){var v=typeof Symbol=="function"&&f[Symbol.iterator];if(!v)return f;var h=v.call(f),d,b=[],y;try{for(;(p===void 0||p-- >0)&&!(d=h.next()).done;)b.push(d.value)}catch(w){y={error:w}}finally{try{d&&!d.done&&(v=h.return)&&v.call(h)}finally{if(y)throw y.error}}return b},l=this&&this.__spreadArray||function(f,p){for(var v=0,h=p.length,d=f.length;v<h;v++,d++)f[d]=p[v];return f};Object.defineProperty(g,"__esModule",{value:!0}),g.zip=void 0;var s=t(11415),m=t(65212);function u(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return m.operate(function(v,h){s.zip.apply(void 0,l([v],i(f))).subscribe(h)})}g.zip=u},5362:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.zipAll=void 0;var i=t(11415),l=t(80719);function s(m){return l.joinAllInternals(i.zip,m)}g.zipAll=s},36977:function(J,g,t){"use strict";var i=this&&this.__read||function(u,f){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var v=p.call(u),h,d=[],b;try{for(;(f===void 0||f-- >0)&&!(h=v.next()).done;)d.push(h.value)}catch(y){b={error:y}}finally{try{h&&!h.done&&(p=v.return)&&p.call(v)}finally{if(b)throw b.error}}return d},l=this&&this.__spreadArray||function(u,f){for(var p=0,v=f.length,h=u.length;p<v;p++,h++)u[h]=f[p];return u};Object.defineProperty(g,"__esModule",{value:!0}),g.zipWith=void 0;var s=t(26749);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.zip.apply(void 0,l([],i(u)))}g.zipWith=m},34950:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scheduleArray=void 0;var i=t(48051);function l(s,m){return new i.Observable(function(u){var f=0;return m.schedule(function(){f===s.length?u.complete():(u.next(s[f++]),u.closed||this.schedule())})})}g.scheduleArray=l},17873:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scheduleAsyncIterable=void 0;var i=t(48051),l=t(28619);function s(m,u){if(!m)throw new Error("Iterable cannot be null");return new i.Observable(function(f){l.executeSchedule(f,u,function(){var p=m[Symbol.asyncIterator]();l.executeSchedule(f,u,function(){p.next().then(function(v){v.done?f.complete():f.next(v.value)})},0,!0)})})}g.scheduleAsyncIterable=s},36805:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scheduleIterable=void 0;var i=t(48051),l=t(34891),s=t(10281),m=t(28619);function u(f,p){return new i.Observable(function(v){var h;return m.executeSchedule(v,p,function(){h=f[l.iterator](),m.executeSchedule(v,p,function(){var d,b,y;try{d=h.next(),b=d.value,y=d.done}catch(w){v.error(w);return}y?v.complete():v.next(b)},0,!0)}),function(){return s.isFunction(h?.return)&&h.return()}})}g.scheduleIterable=u},65650:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scheduleObservable=void 0;var i=t(19724),l=t(32071),s=t(5455);function m(u,f){return i.innerFrom(u).pipe(s.subscribeOn(f),l.observeOn(f))}g.scheduleObservable=m},54530:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.schedulePromise=void 0;var i=t(19724),l=t(32071),s=t(5455);function m(u,f){return i.innerFrom(u).pipe(s.subscribeOn(f),l.observeOn(f))}g.schedulePromise=m},30380:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scheduleReadableStreamLike=void 0;var i=t(17873),l=t(95462);function s(m,u){return i.scheduleAsyncIterable(l.readableStreamLikeToAsyncGenerator(m),u)}g.scheduleReadableStreamLike=s},30131:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.scheduled=void 0;var i=t(65650),l=t(54530),s=t(34950),m=t(36805),u=t(17873),f=t(80629),p=t(67552),v=t(94975),h=t(12187),d=t(78263),b=t(86297),y=t(95462),w=t(30380);function S(O,R){if(O!=null){if(f.isInteropObservable(O))return i.scheduleObservable(O,R);if(v.isArrayLike(O))return s.scheduleArray(O,R);if(p.isPromise(O))return l.schedulePromise(O,R);if(d.isAsyncIterable(O))return u.scheduleAsyncIterable(O,R);if(h.isIterable(O))return m.scheduleIterable(O,R);if(y.isReadableStreamLike(O))return w.scheduleReadableStreamLike(O,R)}throw b.createInvalidObservableTypeError(O)}g.scheduled=S},71666:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.Action=void 0;var l=t(69879),s=function(m){i(u,m);function u(f,p){return m.call(this)||this}return u.prototype.schedule=function(f,p){return p===void 0&&(p=0),this},u}(l.Subscription);g.Action=s},6757:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var u=function(f,p){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},u(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");u(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AnimationFrameAction=void 0;var l=t(64772),s=t(35726),m=function(u){i(f,u);function f(p,v){var h=u.call(this,p,v)||this;return h.scheduler=p,h.work=v,h}return f.prototype.requestAsyncId=function(p,v,h){return h===void 0&&(h=0),h!==null&&h>0?u.prototype.requestAsyncId.call(this,p,v,h):(p.actions.push(this),p._scheduled||(p._scheduled=s.animationFrameProvider.requestAnimationFrame(function(){return p.flush(void 0)})))},f.prototype.recycleAsyncId=function(p,v,h){var d;if(h===void 0&&(h=0),h!=null?h>0:this.delay>0)return u.prototype.recycleAsyncId.call(this,p,v,h);var b=p.actions;v!=null&&((d=b[b.length-1])===null||d===void 0?void 0:d.id)!==v&&(s.animationFrameProvider.cancelAnimationFrame(v),p._scheduled=void 0)},f}(l.AsyncAction);g.AnimationFrameAction=m},74478:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AnimationFrameScheduler=void 0;var l=t(19533),s=function(m){i(u,m);function u(){return m!==null&&m.apply(this,arguments)||this}return u.prototype.flush=function(f){this._active=!0;var p=this._scheduled;this._scheduled=void 0;var v=this.actions,h;f=f||v.shift();do if(h=f.execute(f.state,f.delay))break;while((f=v[0])&&f.id===p&&v.shift());if(this._active=!1,h){for(;(f=v[0])&&f.id===p&&v.shift();)f.unsubscribe();throw h}},u}(l.AsyncScheduler);g.AnimationFrameScheduler=s},78051:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var u=function(f,p){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},u(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");u(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AsapAction=void 0;var l=t(64772),s=t(16002),m=function(u){i(f,u);function f(p,v){var h=u.call(this,p,v)||this;return h.scheduler=p,h.work=v,h}return f.prototype.requestAsyncId=function(p,v,h){return h===void 0&&(h=0),h!==null&&h>0?u.prototype.requestAsyncId.call(this,p,v,h):(p.actions.push(this),p._scheduled||(p._scheduled=s.immediateProvider.setImmediate(p.flush.bind(p,void 0))))},f.prototype.recycleAsyncId=function(p,v,h){var d;if(h===void 0&&(h=0),h!=null?h>0:this.delay>0)return u.prototype.recycleAsyncId.call(this,p,v,h);var b=p.actions;v!=null&&((d=b[b.length-1])===null||d===void 0?void 0:d.id)!==v&&(s.immediateProvider.clearImmediate(v),p._scheduled===v&&(p._scheduled=void 0))},f}(l.AsyncAction);g.AsapAction=m},23952:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AsapScheduler=void 0;var l=t(19533),s=function(m){i(u,m);function u(){return m!==null&&m.apply(this,arguments)||this}return u.prototype.flush=function(f){this._active=!0;var p=this._scheduled;this._scheduled=void 0;var v=this.actions,h;f=f||v.shift();do if(h=f.execute(f.state,f.delay))break;while((f=v[0])&&f.id===p&&v.shift());if(this._active=!1,h){for(;(f=v[0])&&f.id===p&&v.shift();)f.unsubscribe();throw h}},u}(l.AsyncScheduler);g.AsapScheduler=s},64772:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var f=function(p,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&(h[b]=d[b])},f(p,v)};return function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(p,v);function h(){this.constructor=p}p.prototype=v===null?Object.create(v):(h.prototype=v.prototype,new h)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AsyncAction=void 0;var l=t(71666),s=t(8284),m=t(54830),u=function(f){i(p,f);function p(v,h){var d=f.call(this,v,h)||this;return d.scheduler=v,d.work=h,d.pending=!1,d}return p.prototype.schedule=function(v,h){var d;if(h===void 0&&(h=0),this.closed)return this;this.state=v;var b=this.id,y=this.scheduler;return b!=null&&(this.id=this.recycleAsyncId(y,b,h)),this.pending=!0,this.delay=h,this.id=(d=this.id)!==null&&d!==void 0?d:this.requestAsyncId(y,this.id,h),this},p.prototype.requestAsyncId=function(v,h,d){return d===void 0&&(d=0),s.intervalProvider.setInterval(v.flush.bind(v,this),d)},p.prototype.recycleAsyncId=function(v,h,d){if(d===void 0&&(d=0),d!=null&&this.delay===d&&this.pending===!1)return h;h!=null&&s.intervalProvider.clearInterval(h)},p.prototype.execute=function(v,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var d=this._execute(v,h);if(d)return d;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},p.prototype._execute=function(v,h){var d=!1,b;try{this.work(v)}catch(y){d=!0,b=y||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),b},p.prototype.unsubscribe=function(){if(!this.closed){var v=this,h=v.id,d=v.scheduler,b=d.actions;this.work=this.state=this.scheduler=null,this.pending=!1,m.arrRemove(b,this),h!=null&&(this.id=this.recycleAsyncId(d,h,null)),this.delay=null,f.prototype.unsubscribe.call(this)}},p}(l.Action);g.AsyncAction=u},19533:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.AsyncScheduler=void 0;var l=t(65881),s=function(m){i(u,m);function u(f,p){p===void 0&&(p=l.Scheduler.now);var v=m.call(this,f,p)||this;return v.actions=[],v._active=!1,v}return u.prototype.flush=function(f){var p=this.actions;if(this._active){p.push(f);return}var v;this._active=!0;do if(v=f.execute(f.state,f.delay))break;while(f=p.shift());if(this._active=!1,v){for(;f=p.shift();)f.unsubscribe();throw v}},u}(l.Scheduler);g.AsyncScheduler=s},31983:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.QueueAction=void 0;var l=t(64772),s=function(m){i(u,m);function u(f,p){var v=m.call(this,f,p)||this;return v.scheduler=f,v.work=p,v}return u.prototype.schedule=function(f,p){return p===void 0&&(p=0),p>0?m.prototype.schedule.call(this,f,p):(this.delay=p,this.state=f,this.scheduler.flush(this),this)},u.prototype.execute=function(f,p){return p>0||this.closed?m.prototype.execute.call(this,f,p):this._execute(f,p)},u.prototype.requestAsyncId=function(f,p,v){return v===void 0&&(v=0),v!=null&&v>0||v==null&&this.delay>0?m.prototype.requestAsyncId.call(this,f,p,v):(f.flush(this),0)},u}(l.AsyncAction);g.QueueAction=s},32036:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(p[h]=v[h])},m(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");m(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.QueueScheduler=void 0;var l=t(19533),s=function(m){i(u,m);function u(){return m!==null&&m.apply(this,arguments)||this}return u}(l.AsyncScheduler);g.QueueScheduler=s},50875:function(J,g,t){"use strict";var i=this&&this.__extends||function(){var p=function(v,h){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(d[y]=b[y])},p(v,h)};return function(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");p(v,h);function d(){this.constructor=v}v.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(g,"__esModule",{value:!0}),g.VirtualAction=g.VirtualTimeScheduler=void 0;var l=t(64772),s=t(69879),m=t(19533),u=function(p){i(v,p);function v(h,d){h===void 0&&(h=f),d===void 0&&(d=1/0);var b=p.call(this,h,function(){return b.frame})||this;return b.maxFrames=d,b.frame=0,b.index=-1,b}return v.prototype.flush=function(){for(var h=this,d=h.actions,b=h.maxFrames,y,w;(w=d[0])&&w.delay<=b&&(d.shift(),this.frame=w.delay,!(y=w.execute(w.state,w.delay))););if(y){for(;w=d.shift();)w.unsubscribe();throw y}},v.frameTimeFactor=10,v}(m.AsyncScheduler);g.VirtualTimeScheduler=u;var f=function(p){i(v,p);function v(h,d,b){b===void 0&&(b=h.index+=1);var y=p.call(this,h,d)||this;return y.scheduler=h,y.work=d,y.index=b,y.active=!0,y.index=h.index=b,y}return v.prototype.schedule=function(h,d){if(d===void 0&&(d=0),Number.isFinite(d)){if(!this.id)return p.prototype.schedule.call(this,h,d);this.active=!1;var b=new v(this.scheduler,this.work);return this.add(b),b.schedule(h,d)}else return s.Subscription.EMPTY},v.prototype.requestAsyncId=function(h,d,b){b===void 0&&(b=0),this.delay=h.frame+b;var y=h.actions;return y.push(this),y.sort(v.sortActions),1},v.prototype.recycleAsyncId=function(h,d,b){b===void 0&&(b=0)},v.prototype._execute=function(h,d){if(this.active===!0)return p.prototype._execute.call(this,h,d)},v.sortActions=function(h,d){return h.delay===d.delay?h.index===d.index?0:h.index>d.index?1:-1:h.delay>d.delay?1:-1},v}(l.AsyncAction);g.VirtualAction=f},15887:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.animationFrame=g.animationFrameScheduler=void 0;var i=t(6757),l=t(74478);g.animationFrameScheduler=new l.AnimationFrameScheduler(i.AnimationFrameAction),g.animationFrame=g.animationFrameScheduler},35726:function(J,g,t){"use strict";var i=this&&this.__read||function(m,u){var f=typeof Symbol=="function"&&m[Symbol.iterator];if(!f)return m;var p=f.call(m),v,h=[],d;try{for(;(u===void 0||u-- >0)&&!(v=p.next()).done;)h.push(v.value)}catch(b){d={error:b}}finally{try{v&&!v.done&&(f=p.return)&&f.call(p)}finally{if(d)throw d.error}}return h},l=this&&this.__spreadArray||function(m,u){for(var f=0,p=u.length,v=m.length;f<p;f++,v++)m[v]=u[f];return m};Object.defineProperty(g,"__esModule",{value:!0}),g.animationFrameProvider=void 0;var s=t(69879);g.animationFrameProvider={schedule:function(m){var u=requestAnimationFrame,f=cancelAnimationFrame,p=g.animationFrameProvider.delegate;p&&(u=p.requestAnimationFrame,f=p.cancelAnimationFrame);var v=u(function(h){f=void 0,m(h)});return new s.Subscription(function(){return f?.(v)})},requestAnimationFrame:function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];var f=g.animationFrameProvider.delegate;return(f?.requestAnimationFrame||requestAnimationFrame).apply(void 0,l([],i(m)))},cancelAnimationFrame:function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];var f=g.animationFrameProvider.delegate;return(f?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,l([],i(m)))},delegate:void 0}},22105:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.asap=g.asapScheduler=void 0;var i=t(78051),l=t(23952);g.asapScheduler=new l.AsapScheduler(i.AsapAction),g.asap=g.asapScheduler},62326:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.async=g.asyncScheduler=void 0;var i=t(64772),l=t(19533);g.asyncScheduler=new l.AsyncScheduler(i.AsyncAction),g.async=g.asyncScheduler},93275:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.dateTimestampProvider=void 0,g.dateTimestampProvider={now:function(){return(g.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},16002:function(J,g,t){"use strict";var i=this&&this.__read||function(f,p){var v=typeof Symbol=="function"&&f[Symbol.iterator];if(!v)return f;var h=v.call(f),d,b=[],y;try{for(;(p===void 0||p-- >0)&&!(d=h.next()).done;)b.push(d.value)}catch(w){y={error:w}}finally{try{d&&!d.done&&(v=h.return)&&v.call(h)}finally{if(y)throw y.error}}return b},l=this&&this.__spreadArray||function(f,p){for(var v=0,h=p.length,d=f.length;v<h;v++,d++)f[d]=p[v];return f};Object.defineProperty(g,"__esModule",{value:!0}),g.immediateProvider=void 0;var s=t(92052),m=s.Immediate.setImmediate,u=s.Immediate.clearImmediate;g.immediateProvider={setImmediate:function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var v=g.immediateProvider.delegate;return(v?.setImmediate||m).apply(void 0,l([],i(f)))},clearImmediate:function(f){var p=g.immediateProvider.delegate;return(p?.clearImmediate||u)(f)},delegate:void 0}},8284:function(J,g){"use strict";var t=this&&this.__read||function(l,s){var m=typeof Symbol=="function"&&l[Symbol.iterator];if(!m)return l;var u=m.call(l),f,p=[],v;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)p.push(f.value)}catch(h){v={error:h}}finally{try{f&&!f.done&&(m=u.return)&&m.call(u)}finally{if(v)throw v.error}}return p},i=this&&this.__spreadArray||function(l,s){for(var m=0,u=s.length,f=l.length;m<u;m++,f++)l[f]=s[m];return l};Object.defineProperty(g,"__esModule",{value:!0}),g.intervalProvider=void 0,g.intervalProvider={setInterval:function(l,s){for(var m=[],u=2;u<arguments.length;u++)m[u-2]=arguments[u];var f=g.intervalProvider.delegate;return f?.setInterval?f.setInterval.apply(f,i([l,s],t(m))):setInterval.apply(void 0,i([l,s],t(m)))},clearInterval:function(l){var s=g.intervalProvider.delegate;return(s?.clearInterval||clearInterval)(l)},delegate:void 0}},22931:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.performanceTimestampProvider=void 0,g.performanceTimestampProvider={now:function(){return(g.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},99245:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.queue=g.queueScheduler=void 0;var i=t(31983),l=t(32036);g.queueScheduler=new l.QueueScheduler(i.QueueAction),g.queue=g.queueScheduler},94808:function(J,g){"use strict";var t=this&&this.__read||function(l,s){var m=typeof Symbol=="function"&&l[Symbol.iterator];if(!m)return l;var u=m.call(l),f,p=[],v;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)p.push(f.value)}catch(h){v={error:h}}finally{try{f&&!f.done&&(m=u.return)&&m.call(u)}finally{if(v)throw v.error}}return p},i=this&&this.__spreadArray||function(l,s){for(var m=0,u=s.length,f=l.length;m<u;m++,f++)l[f]=s[m];return l};Object.defineProperty(g,"__esModule",{value:!0}),g.timeoutProvider=void 0,g.timeoutProvider={setTimeout:function(l,s){for(var m=[],u=2;u<arguments.length;u++)m[u-2]=arguments[u];var f=g.timeoutProvider.delegate;return f?.setTimeout?f.setTimeout.apply(f,i([l,s],t(m))):setTimeout.apply(void 0,i([l,s],t(m)))},clearTimeout:function(l){var s=g.timeoutProvider.delegate;return(s?.clearTimeout||clearTimeout)(l)},delegate:void 0}},34891:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.iterator=g.getSymbolIterator=void 0;function t(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}g.getSymbolIterator=t,g.iterator=t()},2884:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.observable=void 0,g.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()},96153:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0})},7024:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ArgumentOutOfRangeError=void 0;var i=t(9619);g.ArgumentOutOfRangeError=i.createErrorClass(function(l){return function(){l(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},59328:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.EmptyError=void 0;var i=t(9619);g.EmptyError=i.createErrorClass(function(l){return function(){l(this),this.name="EmptyError",this.message="no elements in sequence"}})},92052:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.TestTools=g.Immediate=void 0;var t=1,i,l={};function s(m){return m in l?(delete l[m],!0):!1}g.Immediate={setImmediate:function(m){var u=t++;return l[u]=!0,i||(i=Promise.resolve()),i.then(function(){return s(u)&&m()}),u},clearImmediate:function(m){s(m)}},g.TestTools={pending:function(){return Object.keys(l).length}}},23506:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.NotFoundError=void 0;var i=t(9619);g.NotFoundError=i.createErrorClass(function(l){return function(m){l(this),this.name="NotFoundError",this.message=m}})},50839:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ObjectUnsubscribedError=void 0;var i=t(9619);g.ObjectUnsubscribedError=i.createErrorClass(function(l){return function(){l(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},94708:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.SequenceError=void 0;var i=t(9619);g.SequenceError=i.createErrorClass(function(l){return function(m){l(this),this.name="SequenceError",this.message=m}})},69517:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.UnsubscriptionError=void 0;var i=t(9619);g.UnsubscriptionError=i.createErrorClass(function(l){return function(m){l(this),this.message=m?m.length+` errors occurred during unsubscription: `+m.map(function(u,f){return f+1+") "+u.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=m}})},26404:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.popNumber=g.popScheduler=g.popResultSelector=void 0;var i=t(10281),l=t(68596);function s(p){return p[p.length-1]}function m(p){return i.isFunction(s(p))?p.pop():void 0}g.popResultSelector=m;function u(p){return l.isScheduler(s(p))?p.pop():void 0}g.popScheduler=u;function f(p,v){return typeof s(p)=="number"?p.pop():v}g.popNumber=f},50439:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.argsArgArrayOrObject=void 0;var t=Array.isArray,i=Object.getPrototypeOf,l=Object.prototype,s=Object.keys;function m(f){if(f.length===1){var p=f[0];if(t(p))return{args:p,keys:null};if(u(p)){var v=s(p);return{args:v.map(function(h){return p[h]}),keys:v}}}return{args:f,keys:null}}g.argsArgArrayOrObject=m;function u(f){return f&&typeof f=="object"&&i(f)===l}},7652:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.argsOrArgArray=void 0;var t=Array.isArray;function i(l){return l.length===1&&t(l[0])?l[0]:l}g.argsOrArgArray=i},54830:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.arrRemove=void 0;function t(i,l){if(i){var s=i.indexOf(l);0<=s&&i.splice(s,1)}}g.arrRemove=t},9619:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createErrorClass=void 0;function t(i){var l=function(m){Error.call(m),m.stack=new Error().stack},s=i(l);return s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s}g.createErrorClass=t},15810:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createObject=void 0;function t(i,l){return i.reduce(function(s,m,u){return s[m]=l[u],s},{})}g.createObject=t},12688:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.captureError=g.errorContext=void 0;var i=t(93728),l=null;function s(u){if(i.config.useDeprecatedSynchronousErrorHandling){var f=!l;if(f&&(l={errorThrown:!1,error:null}),u(),f){var p=l,v=p.errorThrown,h=p.error;if(l=null,v)throw h}}else u()}g.errorContext=s;function m(u){i.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=u)}g.captureError=m},28619:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.executeSchedule=void 0;function t(i,l,s,m,u){m===void 0&&(m=0),u===void 0&&(u=!1);var f=l.schedule(function(){s(),u?i.add(this.schedule(null,m)):this.unsubscribe()},m);if(i.add(f),!u)return f}g.executeSchedule=t},87699:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.identity=void 0;function t(i){return i}g.identity=t},94975:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isArrayLike=void 0,g.isArrayLike=function(t){return t&&typeof t.length=="number"&&typeof t!="function"}},78263:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isAsyncIterable=void 0;var i=t(10281);function l(s){return Symbol.asyncIterator&&i.isFunction(s?.[Symbol.asyncIterator])}g.isAsyncIterable=l},85345:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isValidDate=void 0;function t(i){return i instanceof Date&&!isNaN(i)}g.isValidDate=t},10281:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isFunction=void 0;function t(i){return typeof i=="function"}g.isFunction=t},80629:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isInteropObservable=void 0;var i=t(2884),l=t(10281);function s(m){return l.isFunction(m[i.observable])}g.isInteropObservable=s},12187:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isIterable=void 0;var i=t(34891),l=t(10281);function s(m){return l.isFunction(m?.[i.iterator])}g.isIterable=s},62560:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isObservable=void 0;var i=t(48051),l=t(10281);function s(m){return!!m&&(m instanceof i.Observable||l.isFunction(m.lift)&&l.isFunction(m.subscribe))}g.isObservable=s},67552:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isPromise=void 0;var i=t(10281);function l(s){return i.isFunction(s?.then)}g.isPromise=l},95462:function(J,g,t){"use strict";var i=this&&this.__generator||function(p,v){var h={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},d,b,y,w;return w={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function S(R){return function(M){return O([R,M])}}function O(R){if(d)throw new TypeError("Generator is already executing.");for(;h;)try{if(d=1,b&&(y=R[0]&2?b.return:R[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,R[1])).done)return y;switch(b=0,y&&(R=[R[0]&2,y.value]),R[0]){case 0:case 1:y=R;break;case 4:return h.label++,{value:R[1],done:!1};case 5:h.label++,b=R[1],R=[0];continue;case 7:R=h.ops.pop(),h.trys.pop();continue;default:if(y=h.trys,!(y=y.length>0&&y[y.length-1])&&(R[0]===6||R[0]===2)){h=0;continue}if(R[0]===3&&(!y||R[1]>y[0]&&R[1]<y[3])){h.label=R[1];break}if(R[0]===6&&h.label<y[1]){h.label=y[1],y=R;break}if(y&&h.label<y[2]){h.label=y[2],h.ops.push(R);break}y[2]&&h.ops.pop(),h.trys.pop();continue}R=v.call(p,h)}catch(M){R=[6,M],b=0}finally{d=y=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},l=this&&this.__await||function(p){return this instanceof l?(this.v=p,this):new l(p)},s=this&&this.__asyncGenerator||function(p,v,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=h.apply(p,v||[]),b,y=[];return b={},w("next"),w("throw"),w("return"),b[Symbol.asyncIterator]=function(){return this},b;function w(P){d[P]&&(b[P]=function(T){return new Promise(function(A,j){y.push([P,T,A,j])>1||S(P,T)})})}function S(P,T){try{O(d[P](T))}catch(A){D(y[0][3],A)}}function O(P){P.value instanceof l?Promise.resolve(P.value.v).then(R,M):D(y[0][2],P)}function R(P){S("next",P)}function M(P){S("throw",P)}function D(P,T){P(T),y.shift(),y.length&&S(y[0][0],y[0][1])}};Object.defineProperty(g,"__esModule",{value:!0}),g.isReadableStreamLike=g.readableStreamLikeToAsyncGenerator=void 0;var m=t(10281);function u(p){return s(this,arguments,function(){var h,d,b,y;return i(this,function(w){switch(w.label){case 0:h=p.getReader(),w.label=1;case 1:w.trys.push([1,,9,10]),w.label=2;case 2:return[4,l(h.read())];case 3:return d=w.sent(),b=d.value,y=d.done,y?[4,l(void 0)]:[3,5];case 4:return[2,w.sent()];case 5:return[4,l(b)];case 6:return[4,w.sent()];case 7:return w.sent(),[3,2];case 8:return[3,10];case 9:return h.releaseLock(),[7];case 10:return[2]}})})}g.readableStreamLikeToAsyncGenerator=u;function f(p){return m.isFunction(p?.getReader)}g.isReadableStreamLike=f},68596:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.isScheduler=void 0;var i=t(10281);function l(s){return s&&i.isFunction(s.schedule)}g.isScheduler=l},65212:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.operate=g.hasLift=void 0;var i=t(10281);function l(m){return i.isFunction(m?.lift)}g.hasLift=l;function s(m){return function(u){if(l(u))return u.lift(function(f){try{return m(f,this)}catch(p){this.error(p)}});throw new TypeError("Unable to lift unknown Observable type")}}g.operate=s},13916:function(J,g,t){"use strict";var i=this&&this.__read||function(p,v){var h=typeof Symbol=="function"&&p[Symbol.iterator];if(!h)return p;var d=h.call(p),b,y=[],w;try{for(;(v===void 0||v-- >0)&&!(b=d.next()).done;)y.push(b.value)}catch(S){w={error:S}}finally{try{b&&!b.done&&(h=d.return)&&h.call(d)}finally{if(w)throw w.error}}return y},l=this&&this.__spreadArray||function(p,v){for(var h=0,d=v.length,b=p.length;h<d;h++,b++)p[b]=v[h];return p};Object.defineProperty(g,"__esModule",{value:!0}),g.mapOneOrManyArgs=void 0;var s=t(26872),m=Array.isArray;function u(p,v){return m(v)?p.apply(void 0,l([],i(v))):p(v)}function f(p){return s.map(function(v){return u(p,v)})}g.mapOneOrManyArgs=f},5717:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.noop=void 0;function t(){}g.noop=t},14120:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.not=void 0;function t(i,l){return function(s,m){return!i.call(l,s,m)}}g.not=t},99517:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.pipeFromArray=g.pipe=void 0;var i=t(87699);function l(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return s(m)}g.pipe=l;function s(m){return m.length===0?i.identity:m.length===1?m[0]:function(f){return m.reduce(function(p,v){return v(p)},f)}}g.pipeFromArray=s},32980:(J,g,t)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.reportUnhandledError=void 0;var i=t(93728),l=t(94808);function s(m){l.timeoutProvider.setTimeout(function(){var u=i.config.onUnhandledError;if(u)u(m);else throw m})}g.reportUnhandledError=s},86297:(J,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createInvalidObservableTypeError=void 0;function t(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}g.createInvalidObservableTypeError=t},75091:(J,g,t)=>{"use strict";t.r(g),t.d(g,{ArgumentOutOfRangeError:()=>tt.k,AsyncSubject:()=>S.h,BehaviorSubject:()=>y.t,ConnectableObservable:()=>l.G,EMPTY:()=>He.w,EmptyError:()=>U.G,NEVER:()=>On.t,NotFoundError:()=>F.m,Notification:()=>Ae.Eg,NotificationKind:()=>Ae.Ij,ObjectUnsubscribedError:()=>Y.P,Observable:()=>i.c,ReplaySubject:()=>w.m,Scheduler:()=>ye._,SequenceError:()=>le.I,Subject:()=>b.B,Subscriber:()=>Se.vU,Subscription:()=>f.yU,TimeoutError:()=>ke.M,UnsubscriptionError:()=>Ye.Z,VirtualAction:()=>pe,VirtualTimeScheduler:()=>ne,animationFrame:()=>Re,animationFrameScheduler:()=>Te,animationFrames:()=>v,asap:()=>fe,asapScheduler:()=>me,async:()=>ve.b,asyncScheduler:()=>ve.E,audit:()=>En.s,auditTime:()=>Gn.Z,bindCallback:()=>At,bindNodeCallback:()=>et,buffer:()=>rr.r,bufferCount:()=>sr.S,bufferTime:()=>pi.w,bufferToggle:()=>yi.H,bufferWhen:()=>jr.n,catchError:()=>ui.W,combineAll:()=>bi.p,combineLatest:()=>ee.z,combineLatestAll:()=>ri.A,combineLatestWith:()=>hi.v,concat:()=>I.x,concatAll:()=>Si.K,concatMap:()=>Kr.H,concatMapTo:()=>xi.S,concatWith:()=>Ai.$,config:()=>Ln.$,connect:()=>Pi.N,connectable:()=>De,count:()=>io.U,debounce:()=>lo.s,debounceTime:()=>Gr.B,defaultIfEmpty:()=>un.U,defer:()=>K.v,delay:()=>qn.c,delayWhen:()=>kn.o,dematerialize:()=>St.Z,distinct:()=>ln.d,distinctUntilChanged:()=>An.F,distinctUntilKeyChanged:()=>Cr.w,elementAt:()=>_i.s,empty:()=>He.I,endWith:()=>Sn.q,every:()=>ir.S,exhaust:()=>mt.B,exhaustAll:()=>fn.C,exhaustMap:()=>gt.p,expand:()=>tn.f,filter:()=>xt.p,finalize:()=>Vn.j,find:()=>Ur.I,findIndex:()=>$r.S,first:()=>Pr.$,firstValueFrom:()=>Rt._,flatMap:()=>gr.q,forkJoin:()=>Fe.p,from:()=>ze.H,fromEvent:()=>ie,fromEventPattern:()=>Bt,generate:()=>nn.c,groupBy:()=>zr.$,identity:()=>nt.D,ignoreElements:()=>gi.w,iif:()=>bt,interval:()=>at.Y,isEmpty:()=>$i.I,isObservable:()=>Tt.A,last:()=>eo.H,lastValueFrom:()=>pt.s,map:()=>ki.T,mapTo:()=>so.u,materialize:()=>Ho.O,max:()=>ra.T,merge:()=>$t.h,mergeAll:()=>So.U,mergeMap:()=>We.Z,mergeMapTo:()=>di.C,mergeScan:()=>Vi.i,mergeWith:()=>Ro.X,min:()=>na.j,multicast:()=>ta.f,never:()=>On.Z,noop:()=>xe.l,observable:()=>s.s,observeOn:()=>Ke.Q,of:()=>Ct.of,onErrorResumeNext:()=>Zt.g,onErrorResumeNextWith:()=>aa.w,pairs:()=>Wn,pairwise:()=>vi.J,partition:()=>Xe,pipe:()=>Ee.F,pluck:()=>to.E,publish:()=>$o.m,publishBehavior:()=>ja.K,publishLast:()=>hs.k,publishReplay:()=>ro.H,queue:()=>H,queueScheduler:()=>re,race:()=>gn.O,raceWith:()=>as.w,range:()=>Qt,reduce:()=>rn.T,refCount:()=>Di.B,repeat:()=>Dr.u,repeatWhen:()=>Lr.Y,retry:()=>li.L,retryWhen:()=>Zi.l,sample:()=>wo.X,sampleTime:()=>Go.q,scan:()=>Ko.S,scheduled:()=>Or.c,sequenceEqual:()=>Ie.m,share:()=>yt.u,shareReplay:()=>on.t,single:()=>_n.J,skip:()=>er.i,skipLast:()=>or.G,skipUntil:()=>Er.U,skipWhile:()=>Mi.j,startWith:()=>Ui.Z,subscribeOn:()=>wt._,switchAll:()=>Nn.w,switchMap:()=>cr.n,switchMapTo:()=>ni.K,switchScan:()=>Xr.m,take:()=>Jr.s,takeLast:()=>Qi.o,takeUntil:()=>Fo.Q,takeWhile:()=>No.v,tap:()=>Jo.M,throttle:()=>br.n,throttleTime:()=>Yn.c,throwError:()=>Dt.$,throwIfEmpty:()=>Z.v,timeInterval:()=>se.f,timeout:()=>ke.w,timeoutWith:()=>G.o,timer:()=>hn.O,timestamp:()=>B.v,toArray:()=>Pe.$,using:()=>cn,window:()=>dt.x,windowCount:()=>Lt.k,windowTime:()=>Pt.s,windowToggle:()=>$e.J,windowWhen:()=>ut.p,withLatestFrom:()=>zt.E,zip:()=>an.y,zipAll:()=>Ht.x,zipWith:()=>Fn.O});var i=t(88483),l=t(97255),s=t(55604),m={now:function(){return(m.delegate||performance).now()},delegate:void 0},u=t(31635),f=t(64423),p={schedule:function(Cn){var tr=requestAnimationFrame,Jn=cancelAnimationFrame,ei=p.delegate;ei&&(tr=ei.requestAnimationFrame,Jn=ei.cancelAnimationFrame);var Ci=tr(function(zi){Jn=void 0,Cn(zi)});return new f.yU(function(){return Jn?.(Ci)})},requestAnimationFrame:function(){for(var Cn=[],tr=0;tr<arguments.length;tr++)Cn[tr]=arguments[tr];var Jn=p.delegate;return(Jn?.requestAnimationFrame||requestAnimationFrame).apply(void 0,(0,u.__spreadArray)([],(0,u.__read)(Cn)))},cancelAnimationFrame:function(){for(var Cn=[],tr=0;tr<arguments.length;tr++)Cn[tr]=arguments[tr];var Jn=p.delegate;return(Jn?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,(0,u.__spreadArray)([],(0,u.__read)(Cn)))},delegate:void 0};function v(Cn){return Cn?h(Cn):d}function h(Cn){return new i.c(function(tr){var Jn=Cn||m,ei=Jn.now(),Ci=0,zi=function(){tr.closed||(Ci=p.requestAnimationFrame(function(co){Ci=0;var Xo=Jn.now();tr.next({timestamp:Cn?Xo:co,elapsed:Xo-ei}),zi()}))};return zi(),function(){Ci&&p.cancelAnimationFrame(Ci)}})}var d=h(),b=t(13752),y=t(49426),w=t(39741),S=t(54746),O=t(44876),R=1,M,D={};function P(Cn){return Cn in D?(delete D[Cn],!0):!1}var T={setImmediate:function(Cn){var tr=R++;return D[tr]=!0,M||(M=Promise.resolve()),M.then(function(){return P(tr)&&Cn()}),tr},clearImmediate:function(Cn){P(Cn)}},A={pending:function(){return Object.keys(D).length}},j=T.setImmediate,ae=T.clearImmediate,_={setImmediate:function(){for(var Cn=[],tr=0;tr<arguments.length;tr++)Cn[tr]=arguments[tr];var Jn=_.delegate;return(Jn?.setImmediate||j).apply(void 0,(0,u.__spreadArray)([],(0,u.__read)(Cn)))},clearImmediate:function(Cn){var tr=_.delegate;return(tr?.clearImmediate||ae)(Cn)},delegate:void 0},N=function(Cn){(0,u.__extends)(tr,Cn);function tr(Jn,ei){var Ci=Cn.call(this,Jn,ei)||this;return Ci.scheduler=Jn,Ci.work=ei,Ci}return tr.prototype.requestAsyncId=function(Jn,ei,Ci){return Ci===void 0&&(Ci=0),Ci!==null&&Ci>0?Cn.prototype.requestAsyncId.call(this,Jn,ei,Ci):(Jn.actions.push(this),Jn._scheduled||(Jn._scheduled=_.setImmediate(Jn.flush.bind(Jn,void 0))))},tr.prototype.recycleAsyncId=function(Jn,ei,Ci){var zi;if(Ci===void 0&&(Ci=0),Ci!=null?Ci>0:this.delay>0)return Cn.prototype.recycleAsyncId.call(this,Jn,ei,Ci);var co=Jn.actions;ei!=null&&((zi=co[co.length-1])===null||zi===void 0?void 0:zi.id)!==ei&&(_.clearImmediate(ei),Jn._scheduled===ei&&(Jn._scheduled=void 0))},tr}(O.R),W=t(40989),he=function(Cn){(0,u.__extends)(tr,Cn);function tr(){return Cn!==null&&Cn.apply(this,arguments)||this}return tr.prototype.flush=function(Jn){this._active=!0;var ei=this._scheduled;this._scheduled=void 0;var Ci=this.actions,zi;Jn=Jn||Ci.shift();do if(zi=Jn.execute(Jn.state,Jn.delay))break;while((Jn=Ci[0])&&Jn.id===ei&&Ci.shift());if(this._active=!1,zi){for(;(Jn=Ci[0])&&Jn.id===ei&&Ci.shift();)Jn.unsubscribe();throw zi}},tr}(W.q),me=new he(N),fe=me,ve=t(44838),ce=function(Cn){(0,u.__extends)(tr,Cn);function tr(Jn,ei){var Ci=Cn.call(this,Jn,ei)||this;return Ci.scheduler=Jn,Ci.work=ei,Ci}return tr.prototype.schedule=function(Jn,ei){return ei===void 0&&(ei=0),ei>0?Cn.prototype.schedule.call(this,Jn,ei):(this.delay=ei,this.state=Jn,this.scheduler.flush(this),this)},tr.prototype.execute=function(Jn,ei){return ei>0||this.closed?Cn.prototype.execute.call(this,Jn,ei):this._execute(Jn,ei)},tr.prototype.requestAsyncId=function(Jn,ei,Ci){return Ci===void 0&&(Ci=0),Ci!=null&&Ci>0||Ci==null&&this.delay>0?Cn.prototype.requestAsyncId.call(this,Jn,ei,Ci):(Jn.flush(this),0)},tr}(O.R),oe=function(Cn){(0,u.__extends)(tr,Cn);function tr(){return Cn!==null&&Cn.apply(this,arguments)||this}return tr}(W.q),re=new oe(ce),H=re,V=function(Cn){(0,u.__extends)(tr,Cn);function tr(Jn,ei){var Ci=Cn.call(this,Jn,ei)||this;return Ci.scheduler=Jn,Ci.work=ei,Ci}return tr.prototype.requestAsyncId=function(Jn,ei,Ci){return Ci===void 0&&(Ci=0),Ci!==null&&Ci>0?Cn.prototype.requestAsyncId.call(this,Jn,ei,Ci):(Jn.actions.push(this),Jn._scheduled||(Jn._scheduled=p.requestAnimationFrame(function(){return Jn.flush(void 0)})))},tr.prototype.recycleAsyncId=function(Jn,ei,Ci){var zi;if(Ci===void 0&&(Ci=0),Ci!=null?Ci>0:this.delay>0)return Cn.prototype.recycleAsyncId.call(this,Jn,ei,Ci);var co=Jn.actions;ei!=null&&((zi=co[co.length-1])===null||zi===void 0?void 0:zi.id)!==ei&&(p.cancelAnimationFrame(ei),Jn._scheduled=void 0)},tr}(O.R),Q=function(Cn){(0,u.__extends)(tr,Cn);function tr(){return Cn!==null&&Cn.apply(this,arguments)||this}return tr.prototype.flush=function(Jn){this._active=!0;var ei=this._scheduled;this._scheduled=void 0;var Ci=this.actions,zi;Jn=Jn||Ci.shift();do if(zi=Jn.execute(Jn.state,Jn.delay))break;while((Jn=Ci[0])&&Jn.id===ei&&Ci.shift());if(this._active=!1,zi){for(;(Jn=Ci[0])&&Jn.id===ei&&Ci.shift();)Jn.unsubscribe();throw zi}},tr}(W.q),Te=new Q(V),Re=Te,ne=function(Cn){(0,u.__extends)(tr,Cn);function tr(Jn,ei){Jn===void 0&&(Jn=pe),ei===void 0&&(ei=1/0);var Ci=Cn.call(this,Jn,function(){return Ci.frame})||this;return Ci.maxFrames=ei,Ci.frame=0,Ci.index=-1,Ci}return tr.prototype.flush=function(){for(var Jn=this,ei=Jn.actions,Ci=Jn.maxFrames,zi,co;(co=ei[0])&&co.delay<=Ci&&(ei.shift(),this.frame=co.delay,!(zi=co.execute(co.state,co.delay))););if(zi){for(;co=ei.shift();)co.unsubscribe();throw zi}},tr.frameTimeFactor=10,tr}(W.q),pe=function(Cn){(0,u.__extends)(tr,Cn);function tr(Jn,ei,Ci){Ci===void 0&&(Ci=Jn.index+=1);var zi=Cn.call(this,Jn,ei)||this;return zi.scheduler=Jn,zi.work=ei,zi.index=Ci,zi.active=!0,zi.index=Jn.index=Ci,zi}return tr.prototype.schedule=function(Jn,ei){if(ei===void 0&&(ei=0),Number.isFinite(ei)){if(!this.id)return Cn.prototype.schedule.call(this,Jn,ei);this.active=!1;var Ci=new tr(this.scheduler,this.work);return this.add(Ci),Ci.schedule(Jn,ei)}else return f.yU.EMPTY},tr.prototype.requestAsyncId=function(Jn,ei,Ci){Ci===void 0&&(Ci=0),this.delay=Jn.frame+Ci;var zi=Jn.actions;return zi.push(this),zi.sort(tr.sortActions),1},tr.prototype.recycleAsyncId=function(Jn,ei,Ci){Ci===void 0&&(Ci=0)},tr.prototype._execute=function(Jn,ei){if(this.active===!0)return Cn.prototype._execute.call(this,Jn,ei)},tr.sortActions=function(Jn,ei){return Jn.delay===ei.delay?Jn.index===ei.index?0:Jn.index>ei.index?1:-1:Jn.delay>ei.delay?1:-1},tr}(O.R),ye=t(94121),Se=t(75508),Ae=t(39005),Ee=t(81485),xe=t(92357),nt=t(58307),Tt=t(50832),pt=t(75505),Rt=t(72985),tt=t(60064),U=t(76464),F=t(16418),Y=t(24455),le=t(17156),ke=t(90593),Ye=t(58909),ft=t(98820),wt=t(1343),Ut=t(35135),Ke=t(19895);function it(Cn,tr,Jn,ei){if(Jn)if((0,ft.m)(Jn))ei=Jn;else return function(){for(var Ci=[],zi=0;zi<arguments.length;zi++)Ci[zi]=arguments[zi];return it(Cn,tr,ei).apply(this,Ci).pipe((0,Ut.I)(Jn))};return ei?function(){for(var Ci=[],zi=0;zi<arguments.length;zi++)Ci[zi]=arguments[zi];return it(Cn,tr).apply(this,Ci).pipe((0,wt._)(ei),(0,Ke.Q)(ei))}:function(){for(var Ci=this,zi=[],co=0;co<arguments.length;co++)zi[co]=arguments[co];var Xo=new S.h,Eo=!0;return new i.c(function(Yo){var Xn=Xo.subscribe(Yo);if(Eo){Eo=!1;var fr=!1,mr=!1;tr.apply(Ci,(0,u.__spreadArray)((0,u.__spreadArray)([],(0,u.__read)(zi)),[function(){for(var yr=[],Rr=0;Rr<arguments.length;Rr++)yr[Rr]=arguments[Rr];if(Cn){var ai=yr.shift();if(ai!=null){Xo.error(ai);return}}Xo.next(1<yr.length?yr:yr[0]),mr=!0,fr&&Xo.complete()}])),mr&&Xo.complete(),fr=!0}return Xn})}}function At(Cn,tr,Jn){return it(!1,Cn,tr,Jn)}function et(Cn,tr,Jn){return it(!0,Cn,tr,Jn)}var ee=t(49510),I=t(47370),K=t(72316),ue={connector:function(){return new b.B},resetOnDisconnect:!0};function De(Cn,tr){tr===void 0&&(tr=ue);var Jn=null,ei=tr.connector,Ci=tr.resetOnDisconnect,zi=Ci===void 0?!0:Ci,co=ei(),Xo=new i.c(function(Eo){return co.subscribe(Eo)});return Xo.connect=function(){return(!Jn||Jn.closed)&&(Jn=(0,K.v)(function(){return Cn}).subscribe(co),zi&&Jn.add(function(){return co=ei()})),Jn},Xo}var He=t(61701),Fe=t(45650),ze=t(65474),qe=t(15964),We=t(69862),_t=t(69391),ct=t(61209),Ge=["addListener","removeListener"],st=["addEventListener","removeEventListener"],Me=["on","off"];function ie(Cn,tr,Jn,ei){if((0,ct.T)(Jn)&&(ei=Jn,Jn=void 0),ei)return ie(Cn,tr,Jn).pipe((0,Ut.I)(ei));var Ci=(0,u.__read)(Qe(Cn)?st.map(function(Xo){return function(Eo){return Cn[Xo](tr,Eo,Jn)}}):z(Cn)?Ge.map(ge(Cn,tr)):be(Cn)?Me.map(ge(Cn,tr)):[],2),zi=Ci[0],co=Ci[1];if(!zi&&(0,_t.X)(Cn))return(0,We.Z)(function(Xo){return ie(Xo,tr,Jn)})((0,qe.Tg)(Cn));if(!zi)throw new TypeError("Invalid event target");return new i.c(function(Xo){var Eo=function(){for(var Yo=[],Xn=0;Xn<arguments.length;Xn++)Yo[Xn]=arguments[Xn];return Xo.next(1<Yo.length?Yo:Yo[0])};return zi(Eo),function(){return co(Eo)}})}function ge(Cn,tr){return function(Jn){return function(ei){return Cn[Jn](tr,ei)}}}function z(Cn){return(0,ct.T)(Cn.addListener)&&(0,ct.T)(Cn.removeListener)}function be(Cn){return(0,ct.T)(Cn.on)&&(0,ct.T)(Cn.off)}function Qe(Cn){return(0,ct.T)(Cn.addEventListener)&&(0,ct.T)(Cn.removeEventListener)}function Bt(Cn,tr,Jn){return Jn?Bt(Cn,tr).pipe((0,Ut.I)(Jn)):new i.c(function(ei){var Ci=function(){for(var co=[],Xo=0;Xo<arguments.length;Xo++)co[Xo]=arguments[Xo];return ei.next(co.length===1?co[0]:co)},zi=Cn(Ci);return(0,ct.T)(tr)?function(){return tr(Ci,zi)}:void 0})}var nn=t(51553);function bt(Cn,tr,Jn){return(0,K.v)(function(){return Cn()?tr:Jn})}var at=t(96083),$t=t(44240),On=t(11150),Ct=t(62467),Zt=t(45983);function Wn(Cn,tr){return(0,ze.H)(Object.entries(Cn),tr)}var Zn=t(44696),xt=t(16126);function Xe(Cn,tr,Jn){return[(0,xt.p)(tr,Jn)((0,qe.Tg)(Cn)),(0,xt.p)((0,Zn.A)(tr,Jn))((0,qe.Tg)(Cn))]}var gn=t(39123);function Qt(Cn,tr,Jn){if(tr==null&&(tr=Cn,Cn=0),tr<=0)return He.w;var ei=tr+Cn;return new i.c(Jn?function(Ci){var zi=Cn;return Jn.schedule(function(){zi<ei?(Ci.next(zi++),this.schedule()):Ci.complete()})}:function(Ci){for(var zi=Cn;zi<ei&&!Ci.closed;)Ci.next(zi++);Ci.complete()})}var Dt=t(13288),hn=t(39697);function cn(Cn,tr){return new i.c(function(Jn){var ei=Cn(),Ci=tr(ei),zi=Ci?(0,qe.Tg)(Ci):He.w;return zi.subscribe(Jn),function(){ei&&ei.unsubscribe()}})}var an=t(43431),Or=t(3738),Ln=t(94384),En=t(7069),Gn=t(55208),rr=t(28354),sr=t(27639),pi=t(86471),yi=t(70978),jr=t(87598),ui=t(66847),bi=t(36172),ri=t(53389),hi=t(65548),Si=t(54889),Kr=t(95864),xi=t(53881),Ai=t(75552),Pi=t(68504),io=t(84093),lo=t(51575),Gr=t(56978),un=t(38495),qn=t(76981),kn=t(85925),St=t(4506),ln=t(6276),An=t(41900),Cr=t(91283),_i=t(24271),Sn=t(69111),ir=t(93313),mt=t(4056),fn=t(22953),gt=t(81080),tn=t(16424),Vn=t(69850),Ur=t(91223),$r=t(24123),Pr=t(57532),zr=t(25016),gi=t(8767),$i=t(82027),eo=t(71528),ki=t(81160),so=t(65961),Ho=t(12827),ra=t(17312),So=t(93031),gr=t(72773),di=t(14299),Vi=t(42771),Ro=t(32382),na=t(43134),ta=t(14576),aa=t(38633),vi=t(97256),to=t(48547),$o=t(75805),ja=t(55771),hs=t(44921),ro=t(68310),as=t(43781),rn=t(71030),Dr=t(31731),Lr=t(715),li=t(33160),Zi=t(37748),Di=t(93256),wo=t(13146),Go=t(25759),Ko=t(29405),Ie=t(11929),yt=t(1005),on=t(87718),_n=t(704),er=t(77655),or=t(26775),Er=t(31911),Mi=t(2174),Ui=t(96222),Nn=t(4409),cr=t(63720),ni=t(28009),Xr=t(72189),Jr=t(38975),Qi=t(80047),Fo=t(67791),No=t(46662),Jo=t(59099),br=t(49184),Yn=t(99165),Z=t(41560),se=t(9420),G=t(25941),B=t(1498),Pe=t(9084),dt=t(85384),Lt=t(45149),Pt=t(37125),$e=t(96340),ut=t(40084),zt=t(19823),Ht=t(70370),Fn=t(79201)},54746:(J,g,t)=>{"use strict";t.d(g,{h:()=>s});var i=t(31635),l=t(13752),s=function(m){(0,i.__extends)(u,m);function u(){var f=m!==null&&m.apply(this,arguments)||this;return f._value=null,f._hasValue=!1,f._isComplete=!1,f}return u.prototype._checkFinalizedStatuses=function(f){var p=this,v=p.hasError,h=p._hasValue,d=p._value,b=p.thrownError,y=p.isStopped,w=p._isComplete;v?f.error(b):(y||w)&&(h&&f.next(d),f.complete())},u.prototype.next=function(f){this.isStopped||(this._value=f,this._hasValue=!0)},u.prototype.complete=function(){var f=this,p=f._hasValue,v=f._value,h=f._isComplete;h||(this._isComplete=!0,p&&m.prototype.next.call(this,v),m.prototype.complete.call(this))},u}(l.B)},49426:(J,g,t)=>{"use strict";t.d(g,{t:()=>s});var i=t(31635),l=t(13752),s=function(m){(0,i.__extends)(u,m);function u(f){var p=m.call(this)||this;return p._value=f,p}return Object.defineProperty(u.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),u.prototype._subscribe=function(f){var p=m.prototype._subscribe.call(this,f);return!p.closed&&f.next(this._value),p},u.prototype.getValue=function(){var f=this,p=f.hasError,v=f.thrownError,h=f._value;if(p)throw v;return this._throwIfClosed(),h},u.prototype.next=function(f){m.prototype.next.call(this,this._value=f)},u}(l.B)},39005:(J,g,t)=>{"use strict";t.d(g,{Eg:()=>f,Ij:()=>u,gV:()=>p});var i=t(61701),l=t(62467),s=t(13288),m=t(61209),u;(function(v){v.NEXT="N",v.ERROR="E",v.COMPLETE="C"})(u||(u={}));var f=function(){function v(h,d,b){this.kind=h,this.value=d,this.error=b,this.hasValue=h==="N"}return v.prototype.observe=function(h){return p(this,h)},v.prototype.do=function(h,d,b){var y=this,w=y.kind,S=y.value,O=y.error;return w==="N"?h?.(S):w==="E"?d?.(O):b?.()},v.prototype.accept=function(h,d,b){var y;return(0,m.T)((y=h)===null||y===void 0?void 0:y.next)?this.observe(h):this.do(h,d,b)},v.prototype.toObservable=function(){var h=this,d=h.kind,b=h.value,y=h.error,w=d==="N"?(0,l.of)(b):d==="E"?(0,s.$)(function(){return y}):d==="C"?i.w:0;if(!w)throw new TypeError("Unexpected notification kind "+d);return w},v.createNext=function(h){return new v("N",h)},v.createError=function(h){return new v("E",void 0,h)},v.createComplete=function(){return v.completeNotification},v.completeNotification=new v("C"),v}();function p(v,h){var d,b,y,w=v,S=w.kind,O=w.value,R=w.error;if(typeof S!="string")throw new TypeError('Invalid notification, missing "kind"');S==="N"?(d=h.next)===null||d===void 0||d.call(h,O):S==="E"?(b=h.error)===null||b===void 0||b.call(h,R):(y=h.complete)===null||y===void 0||y.call(h)}},88483:(J,g,t)=>{"use strict";t.d(g,{c:()=>v});var i=t(75508),l=t(64423),s=t(55604),m=t(81485),u=t(94384),f=t(61209),p=t(7008),v=function(){function y(w){w&&(this._subscribe=w)}return y.prototype.lift=function(w){var S=new y;return S.source=this,S.operator=w,S},y.prototype.subscribe=function(w,S,O){var R=this,M=b(w)?w:new i.Ms(w,S,O);return(0,p.Y)(function(){var D=R,P=D.operator,T=D.source;M.add(P?P.call(M,T):T?R._subscribe(M):R._trySubscribe(M))}),M},y.prototype._trySubscribe=function(w){try{return this._subscribe(w)}catch(S){w.error(S)}},y.prototype.forEach=function(w,S){var O=this;return S=h(S),new S(function(R,M){var D=new i.Ms({next:function(P){try{w(P)}catch(T){M(T),D.unsubscribe()}},error:M,complete:R});O.subscribe(D)})},y.prototype._subscribe=function(w){var S;return(S=this.source)===null||S===void 0?void 0:S.subscribe(w)},y.prototype[s.s]=function(){return this},y.prototype.pipe=function(){for(var w=[],S=0;S<arguments.length;S++)w[S]=arguments[S];return(0,m.m)(w)(this)},y.prototype.toPromise=function(w){var S=this;return w=h(w),new w(function(O,R){var M;S.subscribe(function(D){return M=D},function(D){return R(D)},function(){return O(M)})})},y.create=function(w){return new y(w)},y}();function h(y){var w;return(w=y??u.$.Promise)!==null&&w!==void 0?w:Promise}function d(y){return y&&(0,f.T)(y.next)&&(0,f.T)(y.error)&&(0,f.T)(y.complete)}function b(y){return y&&y instanceof i.vU||d(y)&&(0,l.Uv)(y)}},39741:(J,g,t)=>{"use strict";t.d(g,{m:()=>m});var i=t(31635),l=t(13752),s=t(31179),m=function(u){(0,i.__extends)(f,u);function f(p,v,h){p===void 0&&(p=1/0),v===void 0&&(v=1/0),h===void 0&&(h=s.U);var d=u.call(this)||this;return d._bufferSize=p,d._windowTime=v,d._timestampProvider=h,d._buffer=[],d._infiniteTimeWindow=!0,d._infiniteTimeWindow=v===1/0,d._bufferSize=Math.max(1,p),d._windowTime=Math.max(1,v),d}return f.prototype.next=function(p){var v=this,h=v.isStopped,d=v._buffer,b=v._infiniteTimeWindow,y=v._timestampProvider,w=v._windowTime;h||(d.push(p),!b&&d.push(y.now()+w)),this._trimBuffer(),u.prototype.next.call(this,p)},f.prototype._subscribe=function(p){this._throwIfClosed(),this._trimBuffer();for(var v=this._innerSubscribe(p),h=this,d=h._infiniteTimeWindow,b=h._buffer,y=b.slice(),w=0;w<y.length&&!p.closed;w+=d?1:2)p.next(y[w]);return this._checkFinalizedStatuses(p),v},f.prototype._trimBuffer=function(){var p=this,v=p._bufferSize,h=p._timestampProvider,d=p._buffer,b=p._infiniteTimeWindow,y=(b?1:2)*v;if(v<1/0&&y<d.length&&d.splice(0,d.length-y),!b){for(var w=h.now(),S=0,O=1;O<d.length&&d[O]<=w;O+=2)S=O;S&&d.splice(0,S+1)}},f}(l.B)},94121:(J,g,t)=>{"use strict";t.d(g,{_:()=>l});var i=t(31179),l=function(){function s(m,u){u===void 0&&(u=s.now),this.schedulerActionCtor=m,this.now=u}return s.prototype.schedule=function(m,u,f){return u===void 0&&(u=0),new this.schedulerActionCtor(this,m).schedule(f,u)},s.now=i.U.now,s}()},13752:(J,g,t)=>{"use strict";t.d(g,{B:()=>p,k:()=>v});var i=t(31635),l=t(88483),s=t(64423),m=t(24455),u=t(6174),f=t(7008),p=function(h){(0,i.__extends)(d,h);function d(){var b=h.call(this)||this;return b.closed=!1,b.currentObservers=null,b.observers=[],b.isStopped=!1,b.hasError=!1,b.thrownError=null,b}return d.prototype.lift=function(b){var y=new v(this,this);return y.operator=b,y},d.prototype._throwIfClosed=function(){if(this.closed)throw new m.P},d.prototype.next=function(b){var y=this;(0,f.Y)(function(){var w,S;if(y._throwIfClosed(),!y.isStopped){y.currentObservers||(y.currentObservers=Array.from(y.observers));try{for(var O=(0,i.__values)(y.currentObservers),R=O.next();!R.done;R=O.next()){var M=R.value;M.next(b)}}catch(D){w={error:D}}finally{try{R&&!R.done&&(S=O.return)&&S.call(O)}finally{if(w)throw w.error}}}})},d.prototype.error=function(b){var y=this;(0,f.Y)(function(){if(y._throwIfClosed(),!y.isStopped){y.hasError=y.isStopped=!0,y.thrownError=b;for(var w=y.observers;w.length;)w.shift().error(b)}})},d.prototype.complete=function(){var b=this;(0,f.Y)(function(){if(b._throwIfClosed(),!b.isStopped){b.isStopped=!0;for(var y=b.observers;y.length;)y.shift().complete()}})},d.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(d.prototype,"observed",{get:function(){var b;return((b=this.observers)===null||b===void 0?void 0:b.length)>0},enumerable:!1,configurable:!0}),d.prototype._trySubscribe=function(b){return this._throwIfClosed(),h.prototype._trySubscribe.call(this,b)},d.prototype._subscribe=function(b){return this._throwIfClosed(),this._checkFinalizedStatuses(b),this._innerSubscribe(b)},d.prototype._innerSubscribe=function(b){var y=this,w=this,S=w.hasError,O=w.isStopped,R=w.observers;return S||O?s.Kn:(this.currentObservers=null,R.push(b),new s.yU(function(){y.currentObservers=null,(0,u.o)(R,b)}))},d.prototype._checkFinalizedStatuses=function(b){var y=this,w=y.hasError,S=y.thrownError,O=y.isStopped;w?b.error(S):O&&b.complete()},d.prototype.asObservable=function(){var b=new l.c;return b.source=this,b},d.create=function(b,y){return new v(b,y)},d}(l.c),v=function(h){(0,i.__extends)(d,h);function d(b,y){var w=h.call(this)||this;return w.destination=b,w.source=y,w}return d.prototype.next=function(b){var y,w;(w=(y=this.destination)===null||y===void 0?void 0:y.next)===null||w===void 0||w.call(y,b)},d.prototype.error=function(b){var y,w;(w=(y=this.destination)===null||y===void 0?void 0:y.error)===null||w===void 0||w.call(y,b)},d.prototype.complete=function(){var b,y;(y=(b=this.destination)===null||b===void 0?void 0:b.complete)===null||y===void 0||y.call(b)},d.prototype._subscribe=function(b){var y,w;return(w=(y=this.source)===null||y===void 0?void 0:y.subscribe(b))!==null&&w!==void 0?w:s.Kn},d}(p)},75508:(J,g,t)=>{"use strict";t.d(g,{Ms:()=>M,vU:()=>w});var i=t(31635),l=t(61209),s=t(64423),m=t(94384),u=t(22564),f=t(92357),p=function(){return d("C",void 0,void 0)}();function v(j){return d("E",void 0,j)}function h(j){return d("N",j,void 0)}function d(j,ae,_){return{kind:j,value:ae,error:_}}var b=t(96744),y=t(7008),w=function(j){(0,i.__extends)(ae,j);function ae(_){var N=j.call(this)||this;return N.isStopped=!1,_?(N.destination=_,(0,s.Uv)(_)&&_.add(N)):N.destination=A,N}return ae.create=function(_,N,W){return new M(_,N,W)},ae.prototype.next=function(_){this.isStopped?T(h(_),this):this._next(_)},ae.prototype.error=function(_){this.isStopped?T(v(_),this):(this.isStopped=!0,this._error(_))},ae.prototype.complete=function(){this.isStopped?T(p,this):(this.isStopped=!0,this._complete())},ae.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,j.prototype.unsubscribe.call(this),this.destination=null)},ae.prototype._next=function(_){this.destination.next(_)},ae.prototype._error=function(_){try{this.destination.error(_)}finally{this.unsubscribe()}},ae.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ae}(s.yU),S=Function.prototype.bind;function O(j,ae){return S.call(j,ae)}var R=function(){function j(ae){this.partialObserver=ae}return j.prototype.next=function(ae){var _=this.partialObserver;if(_.next)try{_.next(ae)}catch(N){D(N)}},j.prototype.error=function(ae){var _=this.partialObserver;if(_.error)try{_.error(ae)}catch(N){D(N)}else D(ae)},j.prototype.complete=function(){var ae=this.partialObserver;if(ae.complete)try{ae.complete()}catch(_){D(_)}},j}(),M=function(j){(0,i.__extends)(ae,j);function ae(_,N,W){var he=j.call(this)||this,me;if((0,l.T)(_)||!_)me={next:_??void 0,error:N??void 0,complete:W??void 0};else{var fe;he&&m.$.useDeprecatedNextContext?(fe=Object.create(_),fe.unsubscribe=function(){return he.unsubscribe()},me={next:_.next&&O(_.next,fe),error:_.error&&O(_.error,fe),complete:_.complete&&O(_.complete,fe)}):me=_}return he.destination=new R(me),he}return ae}(w);function D(j){m.$.useDeprecatedSynchronousErrorHandling?(0,y.l)(j):(0,u.m)(j)}function P(j){throw j}function T(j,ae){var _=m.$.onStoppedNotification;_&&b.f.setTimeout(function(){return _(j,ae)})}var A={closed:!0,next:f.l,error:P,complete:f.l}},64423:(J,g,t)=>{"use strict";t.d(g,{Kn:()=>f,Uv:()=>p,yU:()=>u});var i=t(31635),l=t(61209),s=t(58909),m=t(6174),u=function(){function h(d){this.initialTeardown=d,this.closed=!1,this._parentage=null,this._finalizers=null}return h.prototype.unsubscribe=function(){var d,b,y,w,S;if(!this.closed){this.closed=!0;var O=this._parentage;if(O)if(this._parentage=null,Array.isArray(O))try{for(var R=(0,i.__values)(O),M=R.next();!M.done;M=R.next()){var D=M.value;D.remove(this)}}catch(_){d={error:_}}finally{try{M&&!M.done&&(b=R.return)&&b.call(R)}finally{if(d)throw d.error}}else O.remove(this);var P=this.initialTeardown;if((0,l.T)(P))try{P()}catch(_){S=_ instanceof s.Z?_.errors:[_]}var T=this._finalizers;if(T){this._finalizers=null;try{for(var A=(0,i.__values)(T),j=A.next();!j.done;j=A.next()){var ae=j.value;try{v(ae)}catch(_){S=S??[],_ instanceof s.Z?S=(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(S)),(0,i.__read)(_.errors)):S.push(_)}}}catch(_){y={error:_}}finally{try{j&&!j.done&&(w=A.return)&&w.call(A)}finally{if(y)throw y.error}}}if(S)throw new s.Z(S)}},h.prototype.add=function(d){var b;if(d&&d!==this)if(this.closed)v(d);else{if(d instanceof h){if(d.closed||d._hasParent(this))return;d._addParent(this)}(this._finalizers=(b=this._finalizers)!==null&&b!==void 0?b:[]).push(d)}},h.prototype._hasParent=function(d){var b=this._parentage;return b===d||Array.isArray(b)&&b.includes(d)},h.prototype._addParent=function(d){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(d),b):b?[b,d]:d},h.prototype._removeParent=function(d){var b=this._parentage;b===d?this._parentage=null:Array.isArray(b)&&(0,m.o)(b,d)},h.prototype.remove=function(d){var b=this._finalizers;b&&(0,m.o)(b,d),d instanceof h&&d._removeParent(this)},h.EMPTY=function(){var d=new h;return d.closed=!0,d}(),h}(),f=u.EMPTY;function p(h){return h instanceof u||h&&"closed"in h&&(0,l.T)(h.remove)&&(0,l.T)(h.add)&&(0,l.T)(h.unsubscribe)}function v(h){(0,l.T)(h)?h():h.unsubscribe()}},94384:(J,g,t)=>{"use strict";t.d(g,{$:()=>i});var i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},72985:(J,g,t)=>{"use strict";t.d(g,{_:()=>s});var i=t(76464),l=t(75508);function s(m,u){var f=typeof u=="object";return new Promise(function(p,v){var h=new l.Ms({next:function(d){p(d),h.unsubscribe()},error:v,complete:function(){f?p(u.defaultValue):v(new i.G)}});m.subscribe(h)})}},75505:(J,g,t)=>{"use strict";t.d(g,{s:()=>l});var i=t(76464);function l(s,m){var u=typeof m=="object";return new Promise(function(f,p){var v=!1,h;s.subscribe({next:function(d){h=d,v=!0},error:p,complete:function(){v?f(h):u?f(m.defaultValue):p(new i.G)}})})}},97255:(J,g,t)=>{"use strict";t.d(g,{G:()=>p});var i=t(31635),l=t(88483),s=t(64423),m=t(93256),u=t(64878),f=t(92908),p=function(v){(0,i.__extends)(h,v);function h(d,b){var y=v.call(this)||this;return y.source=d,y.subjectFactory=b,y._subject=null,y._refCount=0,y._connection=null,(0,f.S)(d)&&(y.lift=d.lift),y}return h.prototype._subscribe=function(d){return this.getSubject().subscribe(d)},h.prototype.getSubject=function(){var d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject},h.prototype._teardown=function(){this._refCount=0;var d=this._connection;this._subject=this._connection=null,d?.unsubscribe()},h.prototype.connect=function(){var d=this,b=this._connection;if(!b){b=this._connection=new s.yU;var y=this.getSubject();b.add(this.source.subscribe((0,u._)(y,void 0,function(){d._teardown(),y.complete()},function(w){d._teardown(),y.error(w)},function(){return d._teardown()}))),b.closed&&(this._connection=null,b=s.yU.EMPTY)}return b},h.prototype.refCount=function(){return(0,m.B)()(this)},h}(l.c)},49510:(J,g,t)=>{"use strict";t.d(g,{P:()=>b,z:()=>d});var i=t(88483),l=t(24151),s=t(65474),m=t(58307),u=t(35135),f=t(82100),p=t(66450),v=t(64878),h=t(56315);function d(){for(var w=[],S=0;S<arguments.length;S++)w[S]=arguments[S];var O=(0,f.lI)(w),R=(0,f.ms)(w),M=(0,l.D)(w),D=M.args,P=M.keys;if(D.length===0)return(0,s.H)([],O);var T=new i.c(b(D,O,P?function(A){return(0,p.e)(P,A)}:m.D));return R?T.pipe((0,u.I)(R)):T}function b(w,S,O){return O===void 0&&(O=m.D),function(R){y(S,function(){for(var M=w.length,D=new Array(M),P=M,T=M,A=function(ae){y(S,function(){var _=(0,s.H)(w[ae],S),N=!1;_.subscribe((0,v._)(R,function(W){D[ae]=W,N||(N=!0,T--),T||R.next(O(D.slice()))},function(){--P||R.complete()}))},R)},j=0;j<M;j++)A(j)},R)}}function y(w,S,O){w?(0,h.N)(O,w,S):S()}},47370:(J,g,t)=>{"use strict";t.d(g,{x:()=>m});var i=t(54889),l=t(82100),s=t(65474);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return(0,i.K)()((0,s.H)(u,(0,l.lI)(u)))}},72316:(J,g,t)=>{"use strict";t.d(g,{v:()=>s});var i=t(88483),l=t(15964);function s(m){return new i.c(function(u){(0,l.Tg)(m()).subscribe(u)})}},20039:(J,g,t)=>{"use strict";t.d(g,{$:()=>u});var i=t(31635),l=t(64878),s=t(88483),m=t(15964);function u(f,p){p===void 0&&(p={});var v=p.selector,h=(0,i.__rest)(p,["selector"]);return new s.c(function(d){var b=new AbortController,y=b.signal,w=!0,S=h.signal;if(S)if(S.aborted)b.abort();else{var O=function(){y.aborted||b.abort()};S.addEventListener("abort",O),d.add(function(){return S.removeEventListener("abort",O)})}var R=(0,i.__assign)((0,i.__assign)({},h),{signal:y}),M=function(D){w=!1,d.error(D)};return fetch(f,R).then(function(D){v?(0,m.Tg)(v(D)).subscribe((0,l._)(d,void 0,function(){w=!1,d.complete()},M)):(w=!1,d.next(D),d.complete())}).catch(M),function(){w&&b.abort()}})}},61701:(J,g,t)=>{"use strict";t.d(g,{I:()=>s,w:()=>l});var i=t(88483),l=new i.c(function(u){return u.complete()});function s(u){return u?m(u):l}function m(u){return new i.c(function(f){return u.schedule(function(){return f.complete()})})}},45650:(J,g,t)=>{"use strict";t.d(g,{p:()=>v});var i=t(88483),l=t(24151),s=t(15964),m=t(82100),u=t(64878),f=t(35135),p=t(66450);function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];var b=(0,m.ms)(h),y=(0,l.D)(h),w=y.args,S=y.keys,O=new i.c(function(R){var M=w.length;if(!M){R.complete();return}for(var D=new Array(M),P=M,T=M,A=function(ae){var _=!1;(0,s.Tg)(w[ae]).subscribe((0,u._)(R,function(N){_||(_=!0,T--),D[ae]=N},function(){return P--},void 0,function(){(!P||!_)&&(T||R.next(S?(0,p.e)(S,D):D),R.complete())}))},j=0;j<M;j++)A(j)});return b?O.pipe((0,f.I)(b)):O}},65474:(J,g,t)=>{"use strict";t.d(g,{H:()=>s});var i=t(3738),l=t(15964);function s(m,u){return u?(0,i.c)(m,u):(0,l.Tg)(m)}},51553:(J,g,t)=>{"use strict";t.d(g,{c:()=>f});var i=t(31635),l=t(58307),s=t(98820),m=t(72316),u=t(98581);function f(p,v,h,d,b){var y,w,S,O;arguments.length===1?(y=p,O=y.initialState,v=y.condition,h=y.iterate,w=y.resultSelector,S=w===void 0?l.D:w,b=y.scheduler):(O=p,!d||(0,s.m)(d)?(S=l.D,b=d):S=d);function R(){var M;return(0,i.__generator)(this,function(D){switch(D.label){case 0:M=O,D.label=1;case 1:return!v||v(M)?[4,S(M)]:[3,4];case 2:D.sent(),D.label=3;case 3:return M=h(M),[3,1];case 4:return[2]}})}return(0,m.v)(b?function(){return(0,u.S)(R(),b)}:R)}},15964:(J,g,t)=>{"use strict";t.d(g,{Tg:()=>w});var i=t(31635),l=t(69391),s=t(3440),m=t(88483),u=t(37541),f=t(62471),p=t(43465),v=t(58667),h=t(8438),d=t(61209),b=t(22564),y=t(55604);function w(A){if(A instanceof m.c)return A;if(A!=null){if((0,u.l)(A))return S(A);if((0,l.X)(A))return O(A);if((0,s.y)(A))return R(A);if((0,f.T)(A))return D(A);if((0,v.x)(A))return M(A);if((0,h.U)(A))return P(A)}throw(0,p.L)(A)}function S(A){return new m.c(function(j){var ae=A[y.s]();if((0,d.T)(ae.subscribe))return ae.subscribe(j);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function O(A){return new m.c(function(j){for(var ae=0;ae<A.length&&!j.closed;ae++)j.next(A[ae]);j.complete()})}function R(A){return new m.c(function(j){A.then(function(ae){j.closed||(j.next(ae),j.complete())},function(ae){return j.error(ae)}).then(null,b.m)})}function M(A){return new m.c(function(j){var ae,_;try{for(var N=(0,i.__values)(A),W=N.next();!W.done;W=N.next()){var he=W.value;if(j.next(he),j.closed)return}}catch(me){ae={error:me}}finally{try{W&&!W.done&&(_=N.return)&&_.call(N)}finally{if(ae)throw ae.error}}j.complete()})}function D(A){return new m.c(function(j){T(A,j).catch(function(ae){return j.error(ae)})})}function P(A){return D((0,h.C)(A))}function T(A,j){var ae,_,N,W;return(0,i.__awaiter)(this,void 0,void 0,function(){var he,me;return(0,i.__generator)(this,function(fe){switch(fe.label){case 0:fe.trys.push([0,5,6,11]),ae=(0,i.__asyncValues)(A),fe.label=1;case 1:return[4,ae.next()];case 2:if(_=fe.sent(),!!_.done)return[3,4];if(he=_.value,j.next(he),j.closed)return[2];fe.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return me=fe.sent(),N={error:me},[3,11];case 6:return fe.trys.push([6,,9,10]),_&&!_.done&&(W=ae.return)?[4,W.call(ae)]:[3,8];case 7:fe.sent(),fe.label=8;case 8:return[3,10];case 9:if(N)throw N.error;return[7];case 10:return[7];case 11:return j.complete(),[2]}})})}},96083:(J,g,t)=>{"use strict";t.d(g,{Y:()=>s});var i=t(44838),l=t(39697);function s(m,u){return m===void 0&&(m=0),u===void 0&&(u=i.E),m<0&&(m=0),(0,l.O)(m,m,u)}},44240:(J,g,t)=>{"use strict";t.d(g,{h:()=>f});var i=t(93031),l=t(15964),s=t(61701),m=t(82100),u=t(65474);function f(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];var h=(0,m.lI)(p),d=(0,m.R0)(p,1/0),b=p;return b.length?b.length===1?(0,l.Tg)(b[0]):(0,i.U)(d)((0,u.H)(b,h)):s.w}},11150:(J,g,t)=>{"use strict";t.d(g,{Z:()=>m,t:()=>s});var i=t(88483),l=t(92357),s=new i.c(l.l);function m(){return s}},62467:(J,g,t)=>{"use strict";t.d(g,{of:()=>s});var i=t(82100),l=t(65474);function s(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];var f=(0,i.lI)(m);return(0,l.H)(m,f)}},45983:(J,g,t)=>{"use strict";t.d(g,{g:()=>f});var i=t(88483),l=t(40052),s=t(64878),m=t(92357),u=t(15964);function f(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];var h=(0,l.K)(p);return new i.c(function(d){var b=0,y=function(){if(b<h.length){var w=void 0;try{w=(0,u.Tg)(h[b++])}catch{y();return}var S=new s.H(d,void 0,m.l,m.l);w.subscribe(S),S.add(y)}else d.complete()};y()})}},39123:(J,g,t)=>{"use strict";t.d(g,{O:()=>u,w:()=>f});var i=t(88483),l=t(15964),s=t(40052),m=t(64878);function u(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return p=(0,s.K)(p),p.length===1?(0,l.Tg)(p[0]):new i.c(f(p))}function f(p){return function(v){for(var h=[],d=function(y){h.push((0,l.Tg)(p[y]).subscribe((0,m._)(v,function(w){if(h){for(var S=0;S<h.length;S++)S!==y&&h[S].unsubscribe();h=null}v.next(w)})))},b=0;h&&!v.closed&&b<p.length;b++)d(b)}}},13288:(J,g,t)=>{"use strict";t.d(g,{$:()=>s});var i=t(88483),l=t(61209);function s(m,u){var f=(0,l.T)(m)?m:function(){return m},p=function(v){return v.error(f())};return new i.c(u?function(v){return u.schedule(p,0,v)}:p)}},39697:(J,g,t)=>{"use strict";t.d(g,{O:()=>u});var i=t(88483),l=t(44838),s=t(98820),m=t(86577);function u(f,p,v){f===void 0&&(f=0),v===void 0&&(v=l.b);var h=-1;return p!=null&&((0,s.m)(p)?v=p:h=p),new i.c(function(d){var b=(0,m.v)(f)?+f-v.now():f;b<0&&(b=0);var y=0;return v.schedule(function(){d.closed||(d.next(y++),0<=h?this.schedule(void 0,h):d.complete())},b)})}},43431:(J,g,t)=>{"use strict";t.d(g,{y:()=>v});var i=t(31635),l=t(88483),s=t(15964),m=t(40052),u=t(61701),f=t(64878),p=t(82100);function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];var b=(0,p.ms)(h),y=(0,m.K)(h);return y.length?new l.c(function(w){var S=y.map(function(){return[]}),O=y.map(function(){return!1});w.add(function(){S=O=null});for(var R=function(D){(0,s.Tg)(y[D]).subscribe((0,f._)(w,function(P){if(S[D].push(P),S.every(function(A){return A.length})){var T=S.map(function(A){return A.shift()});w.next(b?b.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(T))):T),S.some(function(A,j){return!A.length&&O[j]})&&w.complete()}},function(){O[D]=!0,!S[D].length&&w.complete()}))},M=0;!w.closed&&M<y.length;M++)R(M);return function(){S=O=null}}):u.w}},64878:(J,g,t)=>{"use strict";t.d(g,{H:()=>m,_:()=>s});var i=t(31635),l=t(75508);function s(u,f,p,v,h){return new m(u,f,p,v,h)}var m=function(u){(0,i.__extends)(f,u);function f(p,v,h,d,b,y){var w=u.call(this,p)||this;return w.onFinalize=b,w.shouldUnsubscribe=y,w._next=v?function(S){try{v(S)}catch(O){p.error(O)}}:u.prototype._next,w._error=d?function(S){try{d(S)}catch(O){p.error(O)}finally{this.unsubscribe()}}:u.prototype._error,w._complete=h?function(){try{h()}catch(S){p.error(S)}finally{this.unsubscribe()}}:u.prototype._complete,w}return f.prototype.unsubscribe=function(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var v=this.closed;u.prototype.unsubscribe.call(this),!v&&((p=this.onFinalize)===null||p===void 0||p.call(this))}},f}(l.vU)},7069:(J,g,t)=>{"use strict";t.d(g,{s:()=>m});var i=t(92908),l=t(15964),s=t(64878);function m(u){return(0,i.N)(function(f,p){var v=!1,h=null,d=null,b=!1,y=function(){if(d?.unsubscribe(),d=null,v){v=!1;var S=h;h=null,p.next(S)}b&&p.complete()},w=function(){d=null,b&&p.complete()};f.subscribe((0,s._)(p,function(S){v=!0,h=S,d||(0,l.Tg)(u(S)).subscribe(d=(0,s._)(p,y,w))},function(){b=!0,(!v||!d||d.closed)&&p.complete()}))})}},55208:(J,g,t)=>{"use strict";t.d(g,{Z:()=>m});var i=t(44838),l=t(7069),s=t(39697);function m(u,f){return f===void 0&&(f=i.E),(0,l.s)(function(){return(0,s.O)(u,f)})}},28354:(J,g,t)=>{"use strict";t.d(g,{r:()=>u});var i=t(92908),l=t(92357),s=t(64878),m=t(15964);function u(f){return(0,i.N)(function(p,v){var h=[];return p.subscribe((0,s._)(v,function(d){return h.push(d)},function(){v.next(h),v.complete()})),(0,m.Tg)(f).subscribe((0,s._)(v,function(){var d=h;h=[],v.next(d)},l.l)),function(){h=null}})}},27639:(J,g,t)=>{"use strict";t.d(g,{S:()=>u});var i=t(31635),l=t(92908),s=t(64878),m=t(6174);function u(f,p){return p===void 0&&(p=null),p=p??f,(0,l.N)(function(v,h){var d=[],b=0;v.subscribe((0,s._)(h,function(y){var w,S,O,R,M=null;b++%p===0&&d.push([]);try{for(var D=(0,i.__values)(d),P=D.next();!P.done;P=D.next()){var T=P.value;T.push(y),f<=T.length&&(M=M??[],M.push(T))}}catch(ae){w={error:ae}}finally{try{P&&!P.done&&(S=D.return)&&S.call(D)}finally{if(w)throw w.error}}if(M)try{for(var A=(0,i.__values)(M),j=A.next();!j.done;j=A.next()){var T=j.value;(0,m.o)(d,T),h.next(T)}}catch(ae){O={error:ae}}finally{try{j&&!j.done&&(R=A.return)&&R.call(A)}finally{if(O)throw O.error}}},function(){var y,w;try{for(var S=(0,i.__values)(d),O=S.next();!O.done;O=S.next()){var R=O.value;h.next(R)}}catch(M){y={error:M}}finally{try{O&&!O.done&&(w=S.return)&&w.call(S)}finally{if(y)throw y.error}}h.complete()},void 0,function(){d=null}))})}},86471:(J,g,t)=>{"use strict";t.d(g,{w:()=>h});var i=t(31635),l=t(64423),s=t(92908),m=t(64878),u=t(6174),f=t(44838),p=t(82100),v=t(56315);function h(d){for(var b,y,w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];var O=(b=(0,p.lI)(w))!==null&&b!==void 0?b:f.E,R=(y=w[0])!==null&&y!==void 0?y:null,M=w[1]||1/0;return(0,s.N)(function(D,P){var T=[],A=!1,j=function(N){var W=N.buffer,he=N.subs;he.unsubscribe(),(0,u.o)(T,N),P.next(W),A&&ae()},ae=function(){if(T){var N=new l.yU;P.add(N);var W=[],he={buffer:W,subs:N};T.push(he),(0,v.N)(N,O,function(){return j(he)},d)}};R!==null&&R>=0?(0,v.N)(P,O,ae,R,!0):A=!0,ae();var _=(0,m._)(P,function(N){var W,he,me=T.slice();try{for(var fe=(0,i.__values)(me),ve=fe.next();!ve.done;ve=fe.next()){var ce=ve.value,oe=ce.buffer;oe.push(N),M<=oe.length&&j(ce)}}catch(re){W={error:re}}finally{try{ve&&!ve.done&&(he=fe.return)&&he.call(fe)}finally{if(W)throw W.error}}},function(){for(;T?.length;)P.next(T.shift().buffer);_?.unsubscribe(),P.complete(),P.unsubscribe()},void 0,function(){return T=null});D.subscribe(_)})}},70978:(J,g,t)=>{"use strict";t.d(g,{H:()=>v});var i=t(31635),l=t(64423),s=t(92908),m=t(15964),u=t(64878),f=t(92357),p=t(6174);function v(h,d){return(0,s.N)(function(b,y){var w=[];(0,m.Tg)(h).subscribe((0,u._)(y,function(S){var O=[];w.push(O);var R=new l.yU,M=function(){(0,p.o)(w,O),y.next(O),R.unsubscribe()};R.add((0,m.Tg)(d(S)).subscribe((0,u._)(y,M,f.l)))},f.l)),b.subscribe((0,u._)(y,function(S){var O,R;try{for(var M=(0,i.__values)(w),D=M.next();!D.done;D=M.next()){var P=D.value;P.push(S)}}catch(T){O={error:T}}finally{try{D&&!D.done&&(R=M.return)&&R.call(M)}finally{if(O)throw O.error}}},function(){for(;w.length>0;)y.next(w.shift());y.complete()}))})}},87598:(J,g,t)=>{"use strict";t.d(g,{n:()=>u});var i=t(92908),l=t(92357),s=t(64878),m=t(15964);function u(f){return(0,i.N)(function(p,v){var h=null,d=null,b=function(){d?.unsubscribe();var y=h;h=[],y&&v.next(y),(0,m.Tg)(f()).subscribe(d=(0,s._)(v,b,l.l))};b(),p.subscribe((0,s._)(v,function(y){return h?.push(y)},function(){h&&v.next(h),v.complete()},void 0,function(){return h=d=null}))})}},66847:(J,g,t)=>{"use strict";t.d(g,{W:()=>m});var i=t(15964),l=t(64878),s=t(92908);function m(u){return(0,s.N)(function(f,p){var v=null,h=!1,d;v=f.subscribe((0,l._)(p,void 0,void 0,function(b){d=(0,i.Tg)(u(b,m(u)(f))),v?(v.unsubscribe(),v=null,d.subscribe(p)):h=!0})),h&&(v.unsubscribe(),v=null,d.subscribe(p))})}},36172:(J,g,t)=>{"use strict";t.d(g,{p:()=>l});var i=t(53389),l=i.A},25572:(J,g,t)=>{"use strict";t.d(g,{z:()=>v});var i=t(31635),l=t(49510),s=t(92908),m=t(40052),u=t(35135),f=t(81485),p=t(82100);function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];var b=(0,p.ms)(h);return b?(0,f.F)(v.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(h))),(0,u.I)(b)):(0,s.N)(function(y,w){(0,l.P)((0,i.__spreadArray)([y],(0,i.__read)((0,m.K)(h))))(w)})}},53389:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(49510),l=t(40479);function s(m){return(0,l.q)(i.z,m)}},65548:(J,g,t)=>{"use strict";t.d(g,{v:()=>s});var i=t(31635),l=t(25572);function s(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return l.z.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(m)))}},29784:(J,g,t)=>{"use strict";t.d(g,{x:()=>f});var i=t(31635),l=t(92908),s=t(54889),m=t(82100),u=t(65474);function f(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];var h=(0,m.lI)(p);return(0,l.N)(function(d,b){(0,s.K)()((0,u.H)((0,i.__spreadArray)([d],(0,i.__read)(p)),h)).subscribe(b)})}},54889:(J,g,t)=>{"use strict";t.d(g,{K:()=>l});var i=t(93031);function l(){return(0,i.U)(1)}},95864:(J,g,t)=>{"use strict";t.d(g,{H:()=>s});var i=t(69862),l=t(61209);function s(m,u){return(0,l.T)(u)?(0,i.Z)(m,u,1):(0,i.Z)(m,1)}},53881:(J,g,t)=>{"use strict";t.d(g,{S:()=>s});var i=t(95864),l=t(61209);function s(m,u){return(0,l.T)(u)?(0,i.H)(function(){return m},u):(0,i.H)(function(){return m})}},75552:(J,g,t)=>{"use strict";t.d(g,{$:()=>s});var i=t(31635),l=t(29784);function s(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return l.x.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(m)))}},68504:(J,g,t)=>{"use strict";t.d(g,{N:()=>p});var i=t(13752),l=t(15964),s=t(92908),m=t(88483);function u(v){return new m.c(function(h){return v.subscribe(h)})}var f={connector:function(){return new i.B}};function p(v,h){h===void 0&&(h=f);var d=h.connector;return(0,s.N)(function(b,y){var w=d();(0,l.Tg)(v(u(w))).subscribe(y),y.add(b.subscribe(w))})}},84093:(J,g,t)=>{"use strict";t.d(g,{U:()=>l});var i=t(71030);function l(s){return(0,i.T)(function(m,u,f){return!s||s(u,f)?m+1:m},0)}},51575:(J,g,t)=>{"use strict";t.d(g,{s:()=>u});var i=t(92908),l=t(92357),s=t(64878),m=t(15964);function u(f){return(0,i.N)(function(p,v){var h=!1,d=null,b=null,y=function(){if(b?.unsubscribe(),b=null,h){h=!1;var w=d;d=null,v.next(w)}};p.subscribe((0,s._)(v,function(w){b?.unsubscribe(),h=!0,d=w,b=(0,s._)(v,y,l.l),(0,m.Tg)(f(w)).subscribe(b)},function(){y(),v.complete()},void 0,function(){d=b=null}))})}},56978:(J,g,t)=>{"use strict";t.d(g,{B:()=>m});var i=t(44838),l=t(92908),s=t(64878);function m(u,f){return f===void 0&&(f=i.E),(0,l.N)(function(p,v){var h=null,d=null,b=null,y=function(){if(h){h.unsubscribe(),h=null;var S=d;d=null,v.next(S)}};function w(){var S=b+u,O=f.now();if(O<S){h=this.schedule(void 0,S-O),v.add(h);return}y()}p.subscribe((0,s._)(v,function(S){d=S,b=f.now(),h||(h=f.schedule(w,u),v.add(h))},function(){y(),v.complete()},void 0,function(){d=h=null}))})}},38495:(J,g,t)=>{"use strict";t.d(g,{U:()=>s});var i=t(92908),l=t(64878);function s(m){return(0,i.N)(function(u,f){var p=!1;u.subscribe((0,l._)(f,function(v){p=!0,f.next(v)},function(){p||f.next(m),f.complete()}))})}},76981:(J,g,t)=>{"use strict";t.d(g,{c:()=>m});var i=t(44838),l=t(85925),s=t(39697);function m(u,f){f===void 0&&(f=i.E);var p=(0,s.O)(u,f);return(0,l.o)(function(){return p})}},85925:(J,g,t)=>{"use strict";t.d(g,{o:()=>p});var i=t(47370),l=t(38975),s=t(8767),m=t(65961),u=t(69862),f=t(15964);function p(v,h){return h?function(d){return(0,i.x)(h.pipe((0,l.s)(1),(0,s.w)()),d.pipe(p(v)))}:(0,u.Z)(function(d,b){return(0,f.Tg)(v(d,b)).pipe((0,l.s)(1),(0,m.u)(d))})}},4506:(J,g,t)=>{"use strict";t.d(g,{Z:()=>m});var i=t(39005),l=t(92908),s=t(64878);function m(){return(0,l.N)(function(u,f){u.subscribe((0,s._)(f,function(p){return(0,i.gV)(p,f)}))})}},6276:(J,g,t)=>{"use strict";t.d(g,{d:()=>u});var i=t(92908),l=t(64878),s=t(92357),m=t(15964);function u(f,p){return(0,i.N)(function(v,h){var d=new Set;v.subscribe((0,l._)(h,function(b){var y=f?f(b):b;d.has(y)||(d.add(y),h.next(b))})),p&&(0,m.Tg)(p).subscribe((0,l._)(h,function(){return d.clear()},s.l))})}},41900:(J,g,t)=>{"use strict";t.d(g,{F:()=>m});var i=t(58307),l=t(92908),s=t(64878);function m(f,p){return p===void 0&&(p=i.D),f=f??u,(0,l.N)(function(v,h){var d,b=!0;v.subscribe((0,s._)(h,function(y){var w=p(y);(b||!f(d,w))&&(b=!1,d=w,h.next(y))}))})}function u(f,p){return f===p}},91283:(J,g,t)=>{"use strict";t.d(g,{w:()=>l});var i=t(41900);function l(s,m){return(0,i.F)(function(u,f){return m?m(u[s],f[s]):u[s]===f[s]})}},24271:(J,g,t)=>{"use strict";t.d(g,{s:()=>f});var i=t(60064),l=t(16126),s=t(41560),m=t(38495),u=t(38975);function f(p,v){if(p<0)throw new i.k;var h=arguments.length>=2;return function(d){return d.pipe((0,l.p)(function(b,y){return y===p}),(0,u.s)(1),h?(0,m.U)(v):(0,s.v)(function(){return new i.k}))}}},69111:(J,g,t)=>{"use strict";t.d(g,{q:()=>m});var i=t(31635),l=t(47370),s=t(62467);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return function(p){return(0,l.x)(p,s.of.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(u))))}}},93313:(J,g,t)=>{"use strict";t.d(g,{S:()=>s});var i=t(92908),l=t(64878);function s(m,u){return(0,i.N)(function(f,p){var v=0;f.subscribe((0,l._)(p,function(h){m.call(u,h,v++,f)||(p.next(!1),p.complete())},function(){p.next(!0),p.complete()}))})}},4056:(J,g,t)=>{"use strict";t.d(g,{B:()=>l});var i=t(22953),l=i.C},22953:(J,g,t)=>{"use strict";t.d(g,{C:()=>s});var i=t(81080),l=t(58307);function s(){return(0,i.p)(l.D)}},81080:(J,g,t)=>{"use strict";t.d(g,{p:()=>u});var i=t(81160),l=t(15964),s=t(92908),m=t(64878);function u(f,p){return p?function(v){return v.pipe(u(function(h,d){return(0,l.Tg)(f(h,d)).pipe((0,i.T)(function(b,y){return p(h,b,d,y)}))}))}:(0,s.N)(function(v,h){var d=0,b=null,y=!1;v.subscribe((0,m._)(h,function(w){b||(b=(0,m._)(h,void 0,function(){b=null,y&&h.complete()}),(0,l.Tg)(f(w,d++)).subscribe(b))},function(){y=!0,!b&&h.complete()}))})}},16424:(J,g,t)=>{"use strict";t.d(g,{f:()=>s});var i=t(92908),l=t(74462);function s(m,u,f){return u===void 0&&(u=1/0),u=(u||0)<1?1/0:u,(0,i.N)(function(p,v){return(0,l.h)(p,v,m,u,void 0,!0,f)})}},16126:(J,g,t)=>{"use strict";t.d(g,{p:()=>s});var i=t(92908),l=t(64878);function s(m,u){return(0,i.N)(function(f,p){var v=0;f.subscribe((0,l._)(p,function(h){return m.call(u,h,v++)&&p.next(h)}))})}},69850:(J,g,t)=>{"use strict";t.d(g,{j:()=>l});var i=t(92908);function l(s){return(0,i.N)(function(m,u){try{m.subscribe(u)}finally{u.add(s)}})}},91223:(J,g,t)=>{"use strict";t.d(g,{I:()=>s,k:()=>m});var i=t(92908),l=t(64878);function s(u,f){return(0,i.N)(m(u,f,"value"))}function m(u,f,p){var v=p==="index";return function(h,d){var b=0;h.subscribe((0,l._)(d,function(y){var w=b++;u.call(f,y,w,h)&&(d.next(v?w:y),d.complete())},function(){d.next(v?-1:void 0),d.complete()}))}}},24123:(J,g,t)=>{"use strict";t.d(g,{S:()=>s});var i=t(92908),l=t(91223);function s(m,u){return(0,i.N)((0,l.k)(m,u,"index"))}},57532:(J,g,t)=>{"use strict";t.d(g,{$:()=>p});var i=t(76464),l=t(16126),s=t(38975),m=t(38495),u=t(41560),f=t(58307);function p(v,h){var d=arguments.length>=2;return function(b){return b.pipe(v?(0,l.p)(function(y,w){return v(y,w,b)}):f.D,(0,s.s)(1),d?(0,m.U)(h):(0,u.v)(function(){return new i.G}))}}},72773:(J,g,t)=>{"use strict";t.d(g,{q:()=>l});var i=t(69862),l=i.Z},25016:(J,g,t)=>{"use strict";t.d(g,{$:()=>f});var i=t(88483),l=t(15964),s=t(13752),m=t(92908),u=t(64878);function f(p,v,h,d){return(0,m.N)(function(b,y){var w;!v||typeof v=="function"?w=v:(h=v.duration,w=v.element,d=v.connector);var S=new Map,O=function(A){S.forEach(A),A(y)},R=function(A){return O(function(j){return j.error(A)})},M=0,D=!1,P=new u.H(y,function(A){try{var j=p(A),ae=S.get(j);if(!ae){S.set(j,ae=d?d():new s.B);var _=T(j,ae);if(y.next(_),h){var N=(0,u._)(ae,function(){ae.complete(),N?.unsubscribe()},void 0,void 0,function(){return S.delete(j)});P.add((0,l.Tg)(h(_)).subscribe(N))}}ae.next(w?w(A):A)}catch(W){R(W)}},function(){return O(function(A){return A.complete()})},R,function(){return S.clear()},function(){return D=!0,M===0});b.subscribe(P);function T(A,j){var ae=new i.c(function(_){M++;var N=j.subscribe(_);return function(){N.unsubscribe(),--M===0&&D&&P.unsubscribe()}});return ae.key=A,ae}})}},8767:(J,g,t)=>{"use strict";t.d(g,{w:()=>m});var i=t(92908),l=t(64878),s=t(92357);function m(){return(0,i.N)(function(u,f){u.subscribe((0,l._)(f,s.l))})}},82027:(J,g,t)=>{"use strict";t.d(g,{I:()=>s});var i=t(92908),l=t(64878);function s(){return(0,i.N)(function(m,u){m.subscribe((0,l._)(u,function(){u.next(!1),u.complete()},function(){u.next(!0),u.complete()}))})}},40479:(J,g,t)=>{"use strict";t.d(g,{q:()=>f});var i=t(58307),l=t(35135),s=t(81485),m=t(69862),u=t(9084);function f(p,v){return(0,s.F)((0,u.$)(),(0,m.Z)(function(h){return p(h)}),v?(0,l.I)(v):i.D)}},71528:(J,g,t)=>{"use strict";t.d(g,{H:()=>p});var i=t(76464),l=t(16126),s=t(80047),m=t(41560),u=t(38495),f=t(58307);function p(v,h){var d=arguments.length>=2;return function(b){return b.pipe(v?(0,l.p)(function(y,w){return v(y,w,b)}):f.D,(0,s.o)(1),d?(0,u.U)(h):(0,m.v)(function(){return new i.G}))}}},81160:(J,g,t)=>{"use strict";t.d(g,{T:()=>s});var i=t(92908),l=t(64878);function s(m,u){return(0,i.N)(function(f,p){var v=0;f.subscribe((0,l._)(p,function(h){p.next(m.call(u,h,v++))}))})}},65961:(J,g,t)=>{"use strict";t.d(g,{u:()=>l});var i=t(81160);function l(s){return(0,i.T)(function(){return s})}},12827:(J,g,t)=>{"use strict";t.d(g,{O:()=>m});var i=t(39005),l=t(92908),s=t(64878);function m(){return(0,l.N)(function(u,f){u.subscribe((0,s._)(f,function(p){f.next(i.Eg.createNext(p))},function(){f.next(i.Eg.createComplete()),f.complete()},function(p){f.next(i.Eg.createError(p)),f.complete()}))})}},17312:(J,g,t)=>{"use strict";t.d(g,{T:()=>s});var i=t(71030),l=t(61209);function s(m){return(0,i.T)((0,l.T)(m)?function(u,f){return m(u,f)>0?u:f}:function(u,f){return u>f?u:f})}},46805:(J,g,t)=>{"use strict";t.d(g,{h:()=>p});var i=t(31635),l=t(92908),s=t(40052),m=t(93031),u=t(82100),f=t(65474);function p(){for(var v=[],h=0;h<arguments.length;h++)v[h]=arguments[h];var d=(0,u.lI)(v),b=(0,u.R0)(v,1/0);return v=(0,s.K)(v),(0,l.N)(function(y,w){(0,m.U)(b)((0,f.H)((0,i.__spreadArray)([y],(0,i.__read)(v)),d)).subscribe(w)})}},93031:(J,g,t)=>{"use strict";t.d(g,{U:()=>s});var i=t(69862),l=t(58307);function s(m){return m===void 0&&(m=1/0),(0,i.Z)(l.D,m)}},74462:(J,g,t)=>{"use strict";t.d(g,{h:()=>m});var i=t(15964),l=t(56315),s=t(64878);function m(u,f,p,v,h,d,b,y){var w=[],S=0,O=0,R=!1,M=function(){R&&!w.length&&!S&&f.complete()},D=function(T){return S<v?P(T):w.push(T)},P=function(T){d&&f.next(T),S++;var A=!1;(0,i.Tg)(p(T,O++)).subscribe((0,s._)(f,function(j){h?.(j),d?D(j):f.next(j)},function(){A=!0},void 0,function(){if(A)try{S--;for(var j=function(){var ae=w.shift();b?(0,l.N)(f,b,function(){return P(ae)}):P(ae)};w.length&&S<v;)j();M()}catch(ae){f.error(ae)}}))};return u.subscribe((0,s._)(f,D,function(){R=!0,M()})),function(){y?.()}}},69862:(J,g,t)=>{"use strict";t.d(g,{Z:()=>f});var i=t(81160),l=t(15964),s=t(92908),m=t(74462),u=t(61209);function f(p,v,h){return h===void 0&&(h=1/0),(0,u.T)(v)?f(function(d,b){return(0,i.T)(function(y,w){return v(d,y,b,w)})((0,l.Tg)(p(d,b)))},h):(typeof v=="number"&&(h=v),(0,s.N)(function(d,b){return(0,m.h)(d,b,p,h)}))}},14299:(J,g,t)=>{"use strict";t.d(g,{C:()=>s});var i=t(69862),l=t(61209);function s(m,u,f){return f===void 0&&(f=1/0),(0,l.T)(u)?(0,i.Z)(function(){return m},u,f):(typeof u=="number"&&(f=u),(0,i.Z)(function(){return m},f))}},42771:(J,g,t)=>{"use strict";t.d(g,{i:()=>s});var i=t(92908),l=t(74462);function s(m,u,f){return f===void 0&&(f=1/0),(0,i.N)(function(p,v){var h=u;return(0,l.h)(p,v,function(d,b){return m(h,d,b)},f,function(d){h=d},!1,void 0,function(){return h=null})})}},32382:(J,g,t)=>{"use strict";t.d(g,{X:()=>s});var i=t(31635),l=t(46805);function s(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return l.h.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(m)))}},43134:(J,g,t)=>{"use strict";t.d(g,{j:()=>s});var i=t(71030),l=t(61209);function s(m){return(0,i.T)((0,l.T)(m)?function(u,f){return m(u,f)<0?u:f}:function(u,f){return u<f?u:f})}},14576:(J,g,t)=>{"use strict";t.d(g,{f:()=>m});var i=t(97255),l=t(61209),s=t(68504);function m(u,f){var p=(0,l.T)(u)?u:function(){return u};return(0,l.T)(f)?(0,s.N)(f,{connector:p}):function(v){return new i.G(v,p)}}},19895:(J,g,t)=>{"use strict";t.d(g,{Q:()=>m});var i=t(56315),l=t(92908),s=t(64878);function m(u,f){return f===void 0&&(f=0),(0,l.N)(function(p,v){p.subscribe((0,s._)(v,function(h){return(0,i.N)(v,u,function(){return v.next(h)},f)},function(){return(0,i.N)(v,u,function(){return v.complete()},f)},function(h){return(0,i.N)(v,u,function(){return v.error(h)},f)}))})}},38633:(J,g,t)=>{"use strict";t.d(g,{g:()=>u,w:()=>m});var i=t(31635),l=t(40052),s=t(45983);function m(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var v=(0,l.K)(f);return function(h){return s.g.apply(void 0,(0,i.__spreadArray)([h],(0,i.__read)(v)))}}var u=m},97256:(J,g,t)=>{"use strict";t.d(g,{J:()=>s});var i=t(92908),l=t(64878);function s(){return(0,i.N)(function(m,u){var f,p=!1;m.subscribe((0,l._)(u,function(v){var h=f;f=v,p&&u.next([h,v]),p=!0}))})}},48547:(J,g,t)=>{"use strict";t.d(g,{E:()=>l});var i=t(81160);function l(){for(var s=[],m=0;m<arguments.length;m++)s[m]=arguments[m];var u=s.length;if(u===0)throw new Error("list of properties cannot be empty.");return(0,i.T)(function(f){for(var p=f,v=0;v<u;v++){var h=p?.[s[v]];if(typeof h<"u")p=h;else return}return p})}},75805:(J,g,t)=>{"use strict";t.d(g,{m:()=>m});var i=t(13752),l=t(14576),s=t(68504);function m(u){return u?function(f){return(0,s.N)(u)(f)}:function(f){return(0,l.f)(new i.B)(f)}}},55771:(J,g,t)=>{"use strict";t.d(g,{K:()=>s});var i=t(49426),l=t(97255);function s(m){return function(u){var f=new i.t(m);return new l.G(u,function(){return f})}}},44921:(J,g,t)=>{"use strict";t.d(g,{k:()=>s});var i=t(54746),l=t(97255);function s(){return function(m){var u=new i.h;return new l.G(m,function(){return u})}}},68310:(J,g,t)=>{"use strict";t.d(g,{H:()=>m});var i=t(39741),l=t(14576),s=t(61209);function m(u,f,p,v){p&&!(0,s.T)(p)&&(v=p);var h=(0,s.T)(p)?p:void 0;return function(d){return(0,l.f)(new i.m(u,f,v),h)(d)}}},43781:(J,g,t)=>{"use strict";t.d(g,{w:()=>u});var i=t(31635),l=t(39123),s=t(92908),m=t(58307);function u(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return f.length?(0,s.N)(function(v,h){(0,l.w)((0,i.__spreadArray)([v],(0,i.__read)(f)))(h)}):m.D}},71030:(J,g,t)=>{"use strict";t.d(g,{T:()=>s});var i=t(97843),l=t(92908);function s(m,u){return(0,l.N)((0,i.S)(m,u,arguments.length>=2,!1,!0))}},93256:(J,g,t)=>{"use strict";t.d(g,{B:()=>s});var i=t(92908),l=t(64878);function s(){return(0,i.N)(function(m,u){var f=null;m._refCount++;var p=(0,l._)(u,void 0,void 0,void 0,function(){if(!m||m._refCount<=0||0<--m._refCount){f=null;return}var v=m._connection,h=f;f=null,v&&(!h||v===h)&&v.unsubscribe(),u.unsubscribe()});m.subscribe(p),p.closed||(f=m.connect())})}},31731:(J,g,t)=>{"use strict";t.d(g,{u:()=>f});var i=t(61701),l=t(92908),s=t(64878),m=t(15964),u=t(39697);function f(p){var v,h=1/0,d;return p!=null&&(typeof p=="object"?(v=p.count,h=v===void 0?1/0:v,d=p.delay):h=p),h<=0?function(){return i.w}:(0,l.N)(function(b,y){var w=0,S,O=function(){if(S?.unsubscribe(),S=null,d!=null){var M=typeof d=="number"?(0,u.O)(d):(0,m.Tg)(d(w)),D=(0,s._)(y,function(){D.unsubscribe(),R()});M.subscribe(D)}else R()},R=function(){var M=!1;S=b.subscribe((0,s._)(y,void 0,function(){++w<h?S?O():M=!0:y.complete()})),M&&O()};R()})}},715:(J,g,t)=>{"use strict";t.d(g,{Y:()=>u});var i=t(15964),l=t(13752),s=t(92908),m=t(64878);function u(f){return(0,s.N)(function(p,v){var h,d=!1,b,y=!1,w=!1,S=function(){return w&&y&&(v.complete(),!0)},O=function(){return b||(b=new l.B,(0,i.Tg)(f(b)).subscribe((0,m._)(v,function(){h?R():d=!0},function(){y=!0,S()}))),b},R=function(){w=!1,h=p.subscribe((0,m._)(v,void 0,function(){w=!0,!S()&&O().next()})),d&&(h.unsubscribe(),h=null,d=!1,R())};R()})}},33160:(J,g,t)=>{"use strict";t.d(g,{L:()=>f});var i=t(92908),l=t(64878),s=t(58307),m=t(39697),u=t(15964);function f(p){p===void 0&&(p=1/0);var v;p&&typeof p=="object"?v=p:v={count:p};var h=v.count,d=h===void 0?1/0:h,b=v.delay,y=v.resetOnSuccess,w=y===void 0?!1:y;return d<=0?s.D:(0,i.N)(function(S,O){var R=0,M,D=function(){var P=!1;M=S.subscribe((0,l._)(O,function(T){w&&(R=0),O.next(T)},void 0,function(T){if(R++<d){var A=function(){M?(M.unsubscribe(),M=null,D()):P=!0};if(b!=null){var j=typeof b=="number"?(0,m.O)(b):(0,u.Tg)(b(T,R)),ae=(0,l._)(O,function(){ae.unsubscribe(),A()},function(){O.complete()});j.subscribe(ae)}else A()}else O.error(T)})),P&&(M.unsubscribe(),M=null,D())};D()})}},37748:(J,g,t)=>{"use strict";t.d(g,{l:()=>u});var i=t(15964),l=t(13752),s=t(92908),m=t(64878);function u(f){return(0,s.N)(function(p,v){var h,d=!1,b,y=function(){h=p.subscribe((0,m._)(v,void 0,void 0,function(w){b||(b=new l.B,(0,i.Tg)(f(b)).subscribe((0,m._)(v,function(){return h?y():d=!0}))),b&&b.next(w)})),d&&(h.unsubscribe(),h=null,d=!1,y())};y()})}},13146:(J,g,t)=>{"use strict";t.d(g,{X:()=>u});var i=t(15964),l=t(92908),s=t(92357),m=t(64878);function u(f){return(0,l.N)(function(p,v){var h=!1,d=null;p.subscribe((0,m._)(v,function(b){h=!0,d=b})),(0,i.Tg)(f).subscribe((0,m._)(v,function(){if(h){h=!1;var b=d;d=null,v.next(b)}},s.l))})}},25759:(J,g,t)=>{"use strict";t.d(g,{q:()=>m});var i=t(44838),l=t(13146),s=t(96083);function m(u,f){return f===void 0&&(f=i.E),(0,l.X)((0,s.Y)(u,f))}},29405:(J,g,t)=>{"use strict";t.d(g,{S:()=>s});var i=t(92908),l=t(97843);function s(m,u){return(0,i.N)((0,l.S)(m,u,arguments.length>=2,!0))}},97843:(J,g,t)=>{"use strict";t.d(g,{S:()=>l});var i=t(64878);function l(s,m,u,f,p){return function(v,h){var d=u,b=m,y=0;v.subscribe((0,i._)(h,function(w){var S=y++;b=d?s(b,w,S):(d=!0,w),f&&h.next(b)},p&&function(){d&&h.next(b),h.complete()}))}}},11929:(J,g,t)=>{"use strict";t.d(g,{m:()=>m});var i=t(92908),l=t(64878),s=t(15964);function m(f,p){return p===void 0&&(p=function(v,h){return v===h}),(0,i.N)(function(v,h){var d=u(),b=u(),y=function(S){h.next(S),h.complete()},w=function(S,O){var R=(0,l._)(h,function(M){var D=O.buffer,P=O.complete;D.length===0?P?y(!1):S.buffer.push(M):!p(M,D.shift())&&y(!1)},function(){S.complete=!0;var M=O.complete,D=O.buffer;M&&y(D.length===0),R?.unsubscribe()});return R};v.subscribe(w(d,b)),(0,s.Tg)(f).subscribe(w(b,d))})}function u(){return{buffer:[],complete:!1}}},1005:(J,g,t)=>{"use strict";t.d(g,{u:()=>f});var i=t(31635),l=t(15964),s=t(13752),m=t(75508),u=t(92908);function f(v){v===void 0&&(v={});var h=v.connector,d=h===void 0?function(){return new s.B}:h,b=v.resetOnError,y=b===void 0?!0:b,w=v.resetOnComplete,S=w===void 0?!0:w,O=v.resetOnRefCountZero,R=O===void 0?!0:O;return function(M){var D,P,T,A=0,j=!1,ae=!1,_=function(){P?.unsubscribe(),P=void 0},N=function(){_(),D=T=void 0,j=ae=!1},W=function(){var he=D;N(),he?.unsubscribe()};return(0,u.N)(function(he,me){A++,!ae&&!j&&_();var fe=T=T??d();me.add(function(){A--,A===0&&!ae&&!j&&(P=p(W,R))}),fe.subscribe(me),!D&&A>0&&(D=new m.Ms({next:function(ve){return fe.next(ve)},error:function(ve){ae=!0,_(),P=p(N,y,ve),fe.error(ve)},complete:function(){j=!0,_(),P=p(N,S),fe.complete()}}),(0,l.Tg)(he).subscribe(D))})(M)}}function p(v,h){for(var d=[],b=2;b<arguments.length;b++)d[b-2]=arguments[b];if(h===!0){v();return}if(h!==!1){var y=new m.Ms({next:function(){y.unsubscribe(),v()}});return(0,l.Tg)(h.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(d)))).subscribe(y)}}},87718:(J,g,t)=>{"use strict";t.d(g,{t:()=>s});var i=t(39741),l=t(1005);function s(m,u,f){var p,v,h,d,b=!1;return m&&typeof m=="object"?(p=m.bufferSize,d=p===void 0?1/0:p,v=m.windowTime,u=v===void 0?1/0:v,h=m.refCount,b=h===void 0?!1:h,f=m.scheduler):d=m??1/0,(0,l.u)({connector:function(){return new i.m(d,u,f)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:b})}},704:(J,g,t)=>{"use strict";t.d(g,{J:()=>f});var i=t(76464),l=t(17156),s=t(16418),m=t(92908),u=t(64878);function f(p){return(0,m.N)(function(v,h){var d=!1,b,y=!1,w=0;v.subscribe((0,u._)(h,function(S){y=!0,(!p||p(S,w++,v))&&(d&&h.error(new l.I("Too many matching values")),d=!0,b=S)},function(){d?(h.next(b),h.complete()):h.error(y?new s.m("No matching values"):new i.G)}))})}},77655:(J,g,t)=>{"use strict";t.d(g,{i:()=>l});var i=t(16126);function l(s){return(0,i.p)(function(m,u){return s<=u})}},26775:(J,g,t)=>{"use strict";t.d(g,{G:()=>m});var i=t(58307),l=t(92908),s=t(64878);function m(u){return u<=0?i.D:(0,l.N)(function(f,p){var v=new Array(u),h=0;return f.subscribe((0,s._)(p,function(d){var b=h++;if(b<u)v[b]=d;else{var y=b%u,w=v[y];v[y]=d,p.next(w)}})),function(){v=null}})}},31911:(J,g,t)=>{"use strict";t.d(g,{U:()=>u});var i=t(92908),l=t(64878),s=t(15964),m=t(92357);function u(f){return(0,i.N)(function(p,v){var h=!1,d=(0,l._)(v,function(){d?.unsubscribe(),h=!0},m.l);(0,s.Tg)(f).subscribe(d),p.subscribe((0,l._)(v,function(b){return h&&v.next(b)}))})}},2174:(J,g,t)=>{"use strict";t.d(g,{j:()=>s});var i=t(92908),l=t(64878);function s(m){return(0,i.N)(function(u,f){var p=!1,v=0;u.subscribe((0,l._)(f,function(h){return(p||(p=!m(h,v++)))&&f.next(h)}))})}},96222:(J,g,t)=>{"use strict";t.d(g,{Z:()=>m});var i=t(47370),l=t(82100),s=t(92908);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];var p=(0,l.lI)(u);return(0,s.N)(function(v,h){(p?(0,i.x)(u,v,p):(0,i.x)(u,v)).subscribe(h)})}},1343:(J,g,t)=>{"use strict";t.d(g,{_:()=>l});var i=t(92908);function l(s,m){return m===void 0&&(m=0),(0,i.N)(function(u,f){f.add(s.schedule(function(){return u.subscribe(f)},m))})}},4409:(J,g,t)=>{"use strict";t.d(g,{w:()=>s});var i=t(63720),l=t(58307);function s(){return(0,i.n)(l.D)}},63720:(J,g,t)=>{"use strict";t.d(g,{n:()=>m});var i=t(15964),l=t(92908),s=t(64878);function m(u,f){return(0,l.N)(function(p,v){var h=null,d=0,b=!1,y=function(){return b&&!h&&v.complete()};p.subscribe((0,s._)(v,function(w){h?.unsubscribe();var S=0,O=d++;(0,i.Tg)(u(w,O)).subscribe(h=(0,s._)(v,function(R){return v.next(f?f(w,R,O,S++):R)},function(){h=null,y()}))},function(){b=!0,y()}))})}},28009:(J,g,t)=>{"use strict";t.d(g,{K:()=>s});var i=t(63720),l=t(61209);function s(m,u){return(0,l.T)(u)?(0,i.n)(function(){return m},u):(0,i.n)(function(){return m})}},72189:(J,g,t)=>{"use strict";t.d(g,{m:()=>s});var i=t(63720),l=t(92908);function s(m,u){return(0,l.N)(function(f,p){var v=u;return(0,i.n)(function(h,d){return m(v,h,d)},function(h,d){return v=d,d})(f).subscribe(p),function(){v=null}})}},38975:(J,g,t)=>{"use strict";t.d(g,{s:()=>m});var i=t(61701),l=t(92908),s=t(64878);function m(u){return u<=0?function(){return i.w}:(0,l.N)(function(f,p){var v=0;f.subscribe((0,s._)(p,function(h){++v<=u&&(p.next(h),u<=v&&p.complete())}))})}},80047:(J,g,t)=>{"use strict";t.d(g,{o:()=>u});var i=t(31635),l=t(61701),s=t(92908),m=t(64878);function u(f){return f<=0?function(){return l.w}:(0,s.N)(function(p,v){var h=[];p.subscribe((0,m._)(v,function(d){h.push(d),f<h.length&&h.shift()},function(){var d,b;try{for(var y=(0,i.__values)(h),w=y.next();!w.done;w=y.next()){var S=w.value;v.next(S)}}catch(O){d={error:O}}finally{try{w&&!w.done&&(b=y.return)&&b.call(y)}finally{if(d)throw d.error}}v.complete()},void 0,function(){h=null}))})}},67791:(J,g,t)=>{"use strict";t.d(g,{Q:()=>u});var i=t(92908),l=t(64878),s=t(15964),m=t(92357);function u(f){return(0,i.N)(function(p,v){(0,s.Tg)(f).subscribe((0,l._)(v,function(){return v.complete()},m.l)),!v.closed&&p.subscribe(v)})}},46662:(J,g,t)=>{"use strict";t.d(g,{v:()=>s});var i=t(92908),l=t(64878);function s(m,u){return u===void 0&&(u=!1),(0,i.N)(function(f,p){var v=0;f.subscribe((0,l._)(p,function(h){var d=m(h,v++);(d||u)&&p.next(h),!d&&p.complete()}))})}},59099:(J,g,t)=>{"use strict";t.d(g,{M:()=>u});var i=t(61209),l=t(92908),s=t(64878),m=t(58307);function u(f,p,v){var h=(0,i.T)(f)||p||v?{next:f,error:p,complete:v}:f;return h?(0,l.N)(function(d,b){var y;(y=h.subscribe)===null||y===void 0||y.call(h);var w=!0;d.subscribe((0,s._)(b,function(S){var O;(O=h.next)===null||O===void 0||O.call(h,S),b.next(S)},function(){var S;w=!1,(S=h.complete)===null||S===void 0||S.call(h),b.complete()},function(S){var O;w=!1,(O=h.error)===null||O===void 0||O.call(h,S),b.error(S)},function(){var S,O;w&&((S=h.unsubscribe)===null||S===void 0||S.call(h)),(O=h.finalize)===null||O===void 0||O.call(h)}))}):m.D}},49184:(J,g,t)=>{"use strict";t.d(g,{n:()=>m});var i=t(92908),l=t(64878),s=t(15964);function m(u,f){return(0,i.N)(function(p,v){var h=f??{},d=h.leading,b=d===void 0?!0:d,y=h.trailing,w=y===void 0?!1:y,S=!1,O=null,R=null,M=!1,D=function(){R?.unsubscribe(),R=null,w&&(A(),M&&v.complete())},P=function(){R=null,M&&v.complete()},T=function(j){return R=(0,s.Tg)(u(j)).subscribe((0,l._)(v,D,P))},A=function(){if(S){S=!1;var j=O;O=null,v.next(j),!M&&T(j)}};p.subscribe((0,l._)(v,function(j){S=!0,O=j,!(R&&!R.closed)&&(b?A():T(j))},function(){M=!0,!(w&&S&&R&&!R.closed)&&v.complete()}))})}},99165:(J,g,t)=>{"use strict";t.d(g,{c:()=>m});var i=t(44838),l=t(49184),s=t(39697);function m(u,f,p){f===void 0&&(f=i.E);var v=(0,s.O)(u,f);return(0,l.n)(function(){return v},p)}},41560:(J,g,t)=>{"use strict";t.d(g,{v:()=>m});var i=t(76464),l=t(92908),s=t(64878);function m(f){return f===void 0&&(f=u),(0,l.N)(function(p,v){var h=!1;p.subscribe((0,s._)(v,function(d){h=!0,v.next(d)},function(){return h?v.complete():v.error(f())}))})}function u(){return new i.G}},9420:(J,g,t)=>{"use strict";t.d(g,{f:()=>m});var i=t(44838),l=t(92908),s=t(64878);function m(f){return f===void 0&&(f=i.E),(0,l.N)(function(p,v){var h=f.now();p.subscribe((0,s._)(v,function(d){var b=f.now(),y=b-h;h=b,v.next(new u(d,y))}))})}var u=function(){function f(p,v){this.value=p,this.interval=v}return f}()},90593:(J,g,t)=>{"use strict";t.d(g,{M:()=>v,w:()=>h});var i=t(44838),l=t(86577),s=t(92908),m=t(15964),u=t(82947),f=t(64878),p=t(56315),v=(0,u.L)(function(b){return function(w){w===void 0&&(w=null),b(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=w}});function h(b,y){var w=(0,l.v)(b)?{first:b}:typeof b=="number"?{each:b}:b,S=w.first,O=w.each,R=w.with,M=R===void 0?d:R,D=w.scheduler,P=D===void 0?y??i.E:D,T=w.meta,A=T===void 0?null:T;if(S==null&&O==null)throw new TypeError("No timeout provided.");return(0,s.N)(function(j,ae){var _,N,W=null,he=0,me=function(fe){N=(0,p.N)(ae,P,function(){try{_.unsubscribe(),(0,m.Tg)(M({meta:A,lastValue:W,seen:he})).subscribe(ae)}catch(ve){ae.error(ve)}},fe)};_=j.subscribe((0,f._)(ae,function(fe){N?.unsubscribe(),he++,ae.next(W=fe),O>0&&me(O)},void 0,void 0,function(){N?.closed||N?.unsubscribe(),W=null})),!he&&me(S!=null?typeof S=="number"?S:+S-P.now():O)})}function d(b){throw new v(b)}},25941:(J,g,t)=>{"use strict";t.d(g,{o:()=>m});var i=t(44838),l=t(86577),s=t(90593);function m(u,f,p){var v,h,d;if(p=p??i.b,(0,l.v)(u)?v=u:typeof u=="number"&&(h=u),f)d=function(){return f};else throw new TypeError("No observable provided to switch to");if(v==null&&h==null)throw new TypeError("No timeout provided.");return(0,s.w)({first:v,each:h,scheduler:p,with:d})}},1498:(J,g,t)=>{"use strict";t.d(g,{v:()=>s});var i=t(31179),l=t(81160);function s(m){return m===void 0&&(m=i.U),(0,l.T)(function(u){return{value:u,timestamp:m.now()}})}},9084:(J,g,t)=>{"use strict";t.d(g,{$:()=>m});var i=t(71030),l=t(92908),s=function(u,f){return u.push(f),u};function m(){return(0,l.N)(function(u,f){(0,i.T)(s,[])(u).subscribe(f)})}},85384:(J,g,t)=>{"use strict";t.d(g,{x:()=>f});var i=t(13752),l=t(92908),s=t(64878),m=t(92357),u=t(15964);function f(p){return(0,l.N)(function(v,h){var d=new i.B;h.next(d.asObservable());var b=function(y){d.error(y),h.error(y)};return v.subscribe((0,s._)(h,function(y){return d?.next(y)},function(){d.complete(),h.complete()},b)),(0,u.Tg)(p).subscribe((0,s._)(h,function(){d.complete(),h.next(d=new i.B)},m.l,b)),function(){d?.unsubscribe(),d=null}})}},45149:(J,g,t)=>{"use strict";t.d(g,{k:()=>u});var i=t(31635),l=t(13752),s=t(92908),m=t(64878);function u(f,p){p===void 0&&(p=0);var v=p>0?p:f;return(0,s.N)(function(h,d){var b=[new l.B],y=[],w=0;d.next(b[0].asObservable()),h.subscribe((0,m._)(d,function(S){var O,R;try{for(var M=(0,i.__values)(b),D=M.next();!D.done;D=M.next()){var P=D.value;P.next(S)}}catch(j){O={error:j}}finally{try{D&&!D.done&&(R=M.return)&&R.call(M)}finally{if(O)throw O.error}}var T=w-f+1;if(T>=0&&T%v===0&&b.shift().complete(),++w%v===0){var A=new l.B;b.push(A),d.next(A.asObservable())}},function(){for(;b.length>0;)b.shift().complete();d.complete()},function(S){for(;b.length>0;)b.shift().error(S);d.error(S)},function(){y=null,b=null}))})}},37125:(J,g,t)=>{"use strict";t.d(g,{s:()=>h});var i=t(13752),l=t(44838),s=t(64423),m=t(92908),u=t(64878),f=t(6174),p=t(82100),v=t(56315);function h(d){for(var b,y,w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];var O=(b=(0,p.lI)(w))!==null&&b!==void 0?b:l.E,R=(y=w[0])!==null&&y!==void 0?y:null,M=w[1]||1/0;return(0,m.N)(function(D,P){var T=[],A=!1,j=function(W){var he=W.window,me=W.subs;he.complete(),me.unsubscribe(),(0,f.o)(T,W),A&&ae()},ae=function(){if(T){var W=new s.yU;P.add(W);var he=new i.B,me={window:he,subs:W,seen:0};T.push(me),P.next(he.asObservable()),(0,v.N)(W,O,function(){return j(me)},d)}};R!==null&&R>=0?(0,v.N)(P,O,ae,R,!0):A=!0,ae();var _=function(W){return T.slice().forEach(W)},N=function(W){_(function(he){var me=he.window;return W(me)}),W(P),P.unsubscribe()};return D.subscribe((0,u._)(P,function(W){_(function(he){he.window.next(W),M<=++he.seen&&j(he)})},function(){return N(function(W){return W.complete()})},function(W){return N(function(he){return he.error(W)})})),function(){T=null}})}},96340:(J,g,t)=>{"use strict";t.d(g,{J:()=>h});var i=t(31635),l=t(13752),s=t(64423),m=t(92908),u=t(15964),f=t(64878),p=t(92357),v=t(6174);function h(d,b){return(0,m.N)(function(y,w){var S=[],O=function(R){for(;0<S.length;)S.shift().error(R);w.error(R)};(0,u.Tg)(d).subscribe((0,f._)(w,function(R){var M=new l.B;S.push(M);var D=new s.yU,P=function(){(0,v.o)(S,M),M.complete(),D.unsubscribe()},T;try{T=(0,u.Tg)(b(R))}catch(A){O(A);return}w.next(M.asObservable()),D.add(T.subscribe((0,f._)(w,P,p.l,O)))},p.l)),y.subscribe((0,f._)(w,function(R){var M,D,P=S.slice();try{for(var T=(0,i.__values)(P),A=T.next();!A.done;A=T.next()){var j=A.value;j.next(R)}}catch(ae){M={error:ae}}finally{try{A&&!A.done&&(D=T.return)&&D.call(T)}finally{if(M)throw M.error}}},function(){for(;0<S.length;)S.shift().complete();w.complete()},O,function(){for(;0<S.length;)S.shift().unsubscribe()}))})}},40084:(J,g,t)=>{"use strict";t.d(g,{p:()=>u});var i=t(13752),l=t(92908),s=t(64878),m=t(15964);function u(f){return(0,l.N)(function(p,v){var h,d,b=function(w){h.error(w),v.error(w)},y=function(){d?.unsubscribe(),h?.complete(),h=new i.B,v.next(h.asObservable());var w;try{w=(0,m.Tg)(f())}catch(S){b(S);return}w.subscribe(d=(0,s._)(v,y,y,b))};y(),p.subscribe((0,s._)(v,function(w){return h.next(w)},function(){h.complete(),v.complete()},b,function(){d?.unsubscribe(),h=null}))})}},19823:(J,g,t)=>{"use strict";t.d(g,{E:()=>v});var i=t(31635),l=t(92908),s=t(64878),m=t(15964),u=t(58307),f=t(92357),p=t(82100);function v(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];var b=(0,p.ms)(h);return(0,l.N)(function(y,w){for(var S=h.length,O=new Array(S),R=h.map(function(){return!1}),M=!1,D=function(T){(0,m.Tg)(h[T]).subscribe((0,s._)(w,function(A){O[T]=A,!M&&!R[T]&&(R[T]=!0,(M=R.every(u.D))&&(R=null))},f.l))},P=0;P<S;P++)D(P);y.subscribe((0,s._)(w,function(T){if(M){var A=(0,i.__spreadArray)([T],(0,i.__read)(O));w.next(b?b.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(A))):A)}}))})}},27642:(J,g,t)=>{"use strict";t.d(g,{y:()=>m});var i=t(31635),l=t(43431),s=t(92908);function m(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return(0,s.N)(function(p,v){l.y.apply(void 0,(0,i.__spreadArray)([p],(0,i.__read)(u))).subscribe(v)})}},70370:(J,g,t)=>{"use strict";t.d(g,{x:()=>s});var i=t(43431),l=t(40479);function s(m){return(0,l.q)(i.y,m)}},79201:(J,g,t)=>{"use strict";t.d(g,{O:()=>s});var i=t(31635),l=t(27642);function s(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return l.y.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(m)))}},98581:(J,g,t)=>{"use strict";t.d(g,{S:()=>u});var i=t(88483),l=t(12059),s=t(61209),m=t(56315);function u(f,p){return new i.c(function(v){var h;return(0,m.N)(v,p,function(){h=f[l.l](),(0,m.N)(v,p,function(){var d,b,y;try{d=h.next(),b=d.value,y=d.done}catch(w){v.error(w);return}y?v.complete():v.next(b)},0,!0)}),function(){return(0,s.T)(h?.return)&&h.return()}})}},3738:(J,g,t)=>{"use strict";t.d(g,{c:()=>P});var i=t(15964),l=t(19895),s=t(1343);function m(T,A){return(0,i.Tg)(T).pipe((0,s._)(A),(0,l.Q)(A))}function u(T,A){return(0,i.Tg)(T).pipe((0,s._)(A),(0,l.Q)(A))}var f=t(88483);function p(T,A){return new f.c(function(j){var ae=0;return A.schedule(function(){ae===T.length?j.complete():(j.next(T[ae++]),j.closed||this.schedule())})})}var v=t(98581),h=t(56315);function d(T,A){if(!T)throw new Error("Iterable cannot be null");return new f.c(function(j){(0,h.N)(j,A,function(){var ae=T[Symbol.asyncIterator]();(0,h.N)(j,A,function(){ae.next().then(function(_){_.done?j.complete():j.next(_.value)})},0,!0)})})}var b=t(37541),y=t(3440),w=t(69391),S=t(58667),O=t(62471),R=t(43465),M=t(8438);function D(T,A){return d((0,M.C)(T),A)}function P(T,A){if(T!=null){if((0,b.l)(T))return m(T,A);if((0,w.X)(T))return p(T,A);if((0,y.y)(T))return u(T,A);if((0,O.T)(T))return d(T,A);if((0,S.x)(T))return(0,v.S)(T,A);if((0,M.U)(T))return D(T,A)}throw(0,R.L)(T)}},44876:(J,g,t)=>{"use strict";t.d(g,{R:()=>f});var i=t(31635),l=t(64423),s=function(p){(0,i.__extends)(v,p);function v(h,d){return p.call(this)||this}return v.prototype.schedule=function(h,d){return d===void 0&&(d=0),this},v}(l.yU),m={setInterval:function(p,v){for(var h=[],d=2;d<arguments.length;d++)h[d-2]=arguments[d];var b=m.delegate;return b?.setInterval?b.setInterval.apply(b,(0,i.__spreadArray)([p,v],(0,i.__read)(h))):setInterval.apply(void 0,(0,i.__spreadArray)([p,v],(0,i.__read)(h)))},clearInterval:function(p){var v=m.delegate;return(v?.clearInterval||clearInterval)(p)},delegate:void 0},u=t(6174),f=function(p){(0,i.__extends)(v,p);function v(h,d){var b=p.call(this,h,d)||this;return b.scheduler=h,b.work=d,b.pending=!1,b}return v.prototype.schedule=function(h,d){var b;if(d===void 0&&(d=0),this.closed)return this;this.state=h;var y=this.id,w=this.scheduler;return y!=null&&(this.id=this.recycleAsyncId(w,y,d)),this.pending=!0,this.delay=d,this.id=(b=this.id)!==null&&b!==void 0?b:this.requestAsyncId(w,this.id,d),this},v.prototype.requestAsyncId=function(h,d,b){return b===void 0&&(b=0),m.setInterval(h.flush.bind(h,this),b)},v.prototype.recycleAsyncId=function(h,d,b){if(b===void 0&&(b=0),b!=null&&this.delay===b&&this.pending===!1)return d;d!=null&&m.clearInterval(d)},v.prototype.execute=function(h,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var b=this._execute(h,d);if(b)return b;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},v.prototype._execute=function(h,d){var b=!1,y;try{this.work(h)}catch(w){b=!0,y=w||new Error("Scheduled action threw falsy error")}if(b)return this.unsubscribe(),y},v.prototype.unsubscribe=function(){if(!this.closed){var h=this,d=h.id,b=h.scheduler,y=b.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.o)(y,this),d!=null&&(this.id=this.recycleAsyncId(b,d,null)),this.delay=null,p.prototype.unsubscribe.call(this)}},v}(s)},40989:(J,g,t)=>{"use strict";t.d(g,{q:()=>s});var i=t(31635),l=t(94121),s=function(m){(0,i.__extends)(u,m);function u(f,p){p===void 0&&(p=l._.now);var v=m.call(this,f,p)||this;return v.actions=[],v._active=!1,v}return u.prototype.flush=function(f){var p=this.actions;if(this._active){p.push(f);return}var v;this._active=!0;do if(v=f.execute(f.state,f.delay))break;while(f=p.shift());if(this._active=!1,v){for(;f=p.shift();)f.unsubscribe();throw v}},u}(l._)},44838:(J,g,t)=>{"use strict";t.d(g,{E:()=>s,b:()=>m});var i=t(44876),l=t(40989),s=new l.q(i.R),m=s},31179:(J,g,t)=>{"use strict";t.d(g,{U:()=>i});var i={now:function(){return(i.delegate||Date).now()},delegate:void 0}},96744:(J,g,t)=>{"use strict";t.d(g,{f:()=>l});var i=t(31635),l={setTimeout:function(s,m){for(var u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];var p=l.delegate;return p?.setTimeout?p.setTimeout.apply(p,(0,i.__spreadArray)([s,m],(0,i.__read)(u))):setTimeout.apply(void 0,(0,i.__spreadArray)([s,m],(0,i.__read)(u)))},clearTimeout:function(s){var m=l.delegate;return(m?.clearTimeout||clearTimeout)(s)},delegate:void 0}},12059:(J,g,t)=>{"use strict";t.d(g,{l:()=>l});function i(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var l=i()},55604:(J,g,t)=>{"use strict";t.d(g,{s:()=>i});var i=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()},60064:(J,g,t)=>{"use strict";t.d(g,{k:()=>l});var i=t(82947),l=(0,i.L)(function(s){return function(){s(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},76464:(J,g,t)=>{"use strict";t.d(g,{G:()=>l});var i=t(82947),l=(0,i.L)(function(s){return function(){s(this),this.name="EmptyError",this.message="no elements in sequence"}})},16418:(J,g,t)=>{"use strict";t.d(g,{m:()=>l});var i=t(82947),l=(0,i.L)(function(s){return function(u){s(this),this.name="NotFoundError",this.message=u}})},24455:(J,g,t)=>{"use strict";t.d(g,{P:()=>l});var i=t(82947),l=(0,i.L)(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},17156:(J,g,t)=>{"use strict";t.d(g,{I:()=>l});var i=t(82947),l=(0,i.L)(function(s){return function(u){s(this),this.name="SequenceError",this.message=u}})},58909:(J,g,t)=>{"use strict";t.d(g,{Z:()=>l});var i=t(82947),l=(0,i.L)(function(s){return function(u){s(this),this.message=u?u.length+` errors occurred during unsubscription: `+u.map(function(f,p){return p+1+") "+f.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=u}})},82100:(J,g,t)=>{"use strict";t.d(g,{R0:()=>f,lI:()=>u,ms:()=>m});var i=t(61209),l=t(98820);function s(p){return p[p.length-1]}function m(p){return(0,i.T)(s(p))?p.pop():void 0}function u(p){return(0,l.m)(s(p))?p.pop():void 0}function f(p,v){return typeof s(p)=="number"?p.pop():v}},24151:(J,g,t)=>{"use strict";t.d(g,{D:()=>u});var i=Array.isArray,l=Object.getPrototypeOf,s=Object.prototype,m=Object.keys;function u(p){if(p.length===1){var v=p[0];if(i(v))return{args:v,keys:null};if(f(v)){var h=m(v);return{args:h.map(function(d){return v[d]}),keys:h}}}return{args:p,keys:null}}function f(p){return p&&typeof p=="object"&&l(p)===s}},40052:(J,g,t)=>{"use strict";t.d(g,{K:()=>l});var i=Array.isArray;function l(s){return s.length===1&&i(s[0])?s[0]:s}},6174:(J,g,t)=>{"use strict";t.d(g,{o:()=>i});function i(l,s){if(l){var m=l.indexOf(s);0<=m&&l.splice(m,1)}}},82947:(J,g,t)=>{"use strict";t.d(g,{L:()=>i});function i(l){var s=function(u){Error.call(u),u.stack=new Error().stack},m=l(s);return m.prototype=Object.create(Error.prototype),m.prototype.constructor=m,m}},66450:(J,g,t)=>{"use strict";t.d(g,{e:()=>i});function i(l,s){return l.reduce(function(m,u,f){return m[u]=s[f],m},{})}},7008:(J,g,t)=>{"use strict";t.d(g,{Y:()=>s,l:()=>m});var i=t(94384),l=null;function s(u){if(i.$.useDeprecatedSynchronousErrorHandling){var f=!l;if(f&&(l={errorThrown:!1,error:null}),u(),f){var p=l,v=p.errorThrown,h=p.error;if(l=null,v)throw h}}else u()}function m(u){i.$.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=u)}},56315:(J,g,t)=>{"use strict";t.d(g,{N:()=>i});function i(l,s,m,u,f){u===void 0&&(u=0),f===void 0&&(f=!1);var p=s.schedule(function(){m(),f?l.add(this.schedule(null,u)):this.unsubscribe()},u);if(l.add(p),!f)return p}},58307:(J,g,t)=>{"use strict";t.d(g,{D:()=>i});function i(l){return l}},69391:(J,g,t)=>{"use strict";t.d(g,{X:()=>i});var i=function(l){return l&&typeof l.length=="number"&&typeof l!="function"}},62471:(J,g,t)=>{"use strict";t.d(g,{T:()=>l});var i=t(61209);function l(s){return Symbol.asyncIterator&&(0,i.T)(s?.[Symbol.asyncIterator])}},86577:(J,g,t)=>{"use strict";t.d(g,{v:()=>i});function i(l){return l instanceof Date&&!isNaN(l)}},61209:(J,g,t)=>{"use strict";t.d(g,{T:()=>i});function i(l){return typeof l=="function"}},37541:(J,g,t)=>{"use strict";t.d(g,{l:()=>s});var i=t(55604),l=t(61209);function s(m){return(0,l.T)(m[i.s])}},58667:(J,g,t)=>{"use strict";t.d(g,{x:()=>s});var i=t(12059),l=t(61209);function s(m){return(0,l.T)(m?.[i.l])}},50832:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(88483),l=t(61209);function s(m){return!!m&&(m instanceof i.c||(0,l.T)(m.lift)&&(0,l.T)(m.subscribe))}},3440:(J,g,t)=>{"use strict";t.d(g,{y:()=>l});var i=t(61209);function l(s){return(0,i.T)(s?.then)}},8438:(J,g,t)=>{"use strict";t.d(g,{C:()=>s,U:()=>m});var i=t(31635),l=t(61209);function s(u){return(0,i.__asyncGenerator)(this,arguments,function(){var p,v,h,d;return(0,i.__generator)(this,function(b){switch(b.label){case 0:p=u.getReader(),b.label=1;case 1:b.trys.push([1,,9,10]),b.label=2;case 2:return[4,(0,i.__await)(p.read())];case 3:return v=b.sent(),h=v.value,d=v.done,d?[4,(0,i.__await)(void 0)]:[3,5];case 4:return[2,b.sent()];case 5:return[4,(0,i.__await)(h)];case 6:return[4,b.sent()];case 7:return b.sent(),[3,2];case 8:return[3,10];case 9:return p.releaseLock(),[7];case 10:return[2]}})})}function m(u){return(0,l.T)(u?.getReader)}},98820:(J,g,t)=>{"use strict";t.d(g,{m:()=>l});var i=t(61209);function l(s){return s&&(0,i.T)(s.schedule)}},92908:(J,g,t)=>{"use strict";t.d(g,{N:()=>s,S:()=>l});var i=t(61209);function l(m){return(0,i.T)(m?.lift)}function s(m){return function(u){if(l(u))return u.lift(function(f){try{return m(f,this)}catch(p){this.error(p)}});throw new TypeError("Unable to lift unknown Observable type")}}},35135:(J,g,t)=>{"use strict";t.d(g,{I:()=>u});var i=t(31635),l=t(81160),s=Array.isArray;function m(f,p){return s(p)?f.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(p))):f(p)}function u(f){return(0,l.T)(function(p){return m(f,p)})}},92357:(J,g,t)=>{"use strict";t.d(g,{l:()=>i});function i(){}},44696:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){return function(m,u){return!l.call(s,m,u)}}},81485:(J,g,t)=>{"use strict";t.d(g,{F:()=>l,m:()=>s});var i=t(58307);function l(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return s(m)}function s(m){return m.length===0?i.D:m.length===1?m[0]:function(f){return m.reduce(function(p,v){return v(p)},f)}}},22564:(J,g,t)=>{"use strict";t.d(g,{m:()=>s});var i=t(94384),l=t(96744);function s(m){l.f.setTimeout(function(){var u=i.$.onUnhandledError;if(u)u(m);else throw m})}},43465:(J,g,t)=>{"use strict";t.d(g,{L:()=>i});function i(l){return new TypeError("You provided "+(l!==null&&typeof l=="object"?"an invalid object":"'"+l+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},32975:(J,g,t)=>{"use strict";t.r(g),t.d(g,{audit:()=>i.s,auditTime:()=>l.Z,buffer:()=>s.r,bufferCount:()=>m.S,bufferTime:()=>u.w,bufferToggle:()=>f.H,bufferWhen:()=>p.n,catchError:()=>v.W,combineAll:()=>h.p,combineLatest:()=>b.z,combineLatestAll:()=>d.A,combineLatestWith:()=>y.v,concat:()=>w.x,concatAll:()=>S.K,concatMap:()=>O.H,concatMapTo:()=>R.S,concatWith:()=>M.$,connect:()=>D.N,count:()=>P.U,debounce:()=>T.s,debounceTime:()=>A.B,defaultIfEmpty:()=>j.U,delay:()=>ae.c,delayWhen:()=>_.o,dematerialize:()=>N.Z,distinct:()=>W.d,distinctUntilChanged:()=>he.F,distinctUntilKeyChanged:()=>me.w,elementAt:()=>fe.s,endWith:()=>ve.q,every:()=>ce.S,exhaust:()=>oe.B,exhaustAll:()=>re.C,exhaustMap:()=>H.p,expand:()=>V.f,filter:()=>Q.p,finalize:()=>Te.j,find:()=>Re.I,findIndex:()=>ne.S,first:()=>pe.$,flatMap:()=>U.q,groupBy:()=>ye.$,ignoreElements:()=>Se.w,isEmpty:()=>Ae.I,last:()=>Ee.H,map:()=>xe.T,mapTo:()=>nt.u,materialize:()=>Tt.O,max:()=>pt.T,merge:()=>Rt.h,mergeAll:()=>tt.U,mergeMap:()=>F.Z,mergeMapTo:()=>Y.C,mergeScan:()=>le.i,mergeWith:()=>ke.X,min:()=>Ye.j,multicast:()=>ft.f,observeOn:()=>wt.Q,onErrorResumeNext:()=>Ut.g,pairwise:()=>Ke.J,partition:()=>At,pluck:()=>et.E,publish:()=>ee.m,publishBehavior:()=>I.K,publishLast:()=>K.k,publishReplay:()=>ue.H,race:()=>ze,raceWith:()=>Fe.w,reduce:()=>qe.T,refCount:()=>st.B,repeat:()=>We.u,repeatWhen:()=>_t.Y,retry:()=>ct.L,retryWhen:()=>Ge.l,sample:()=>Me.X,sampleTime:()=>ie.q,scan:()=>ge.S,sequenceEqual:()=>z.m,share:()=>be.u,shareReplay:()=>Qe.t,single:()=>Bt.J,skip:()=>nn.i,skipLast:()=>bt.G,skipUntil:()=>at.U,skipWhile:()=>$t.j,startWith:()=>On.Z,subscribeOn:()=>Ct._,switchAll:()=>Zt.w,switchMap:()=>Wn.n,switchMapTo:()=>Zn.K,switchScan:()=>xt.m,take:()=>Xe.s,takeLast:()=>gn.o,takeUntil:()=>Qt.Q,takeWhile:()=>Dt.v,tap:()=>hn.M,throttle:()=>cn.n,throttleTime:()=>an.c,throwIfEmpty:()=>Or.v,timeInterval:()=>Ln.f,timeout:()=>En.w,timeoutWith:()=>Gn.o,timestamp:()=>rr.v,toArray:()=>sr.$,window:()=>pi.x,windowCount:()=>yi.k,windowTime:()=>jr.s,windowToggle:()=>ui.J,windowWhen:()=>bi.p,withLatestFrom:()=>ri.E,zip:()=>hi.y,zipAll:()=>Si.x,zipWith:()=>Kr.O});var i=t(7069),l=t(55208),s=t(28354),m=t(27639),u=t(86471),f=t(70978),p=t(87598),v=t(66847),h=t(36172),d=t(53389),b=t(25572),y=t(65548),w=t(29784),S=t(54889),O=t(95864),R=t(53881),M=t(75552),D=t(68504),P=t(84093),T=t(51575),A=t(56978),j=t(38495),ae=t(76981),_=t(85925),N=t(4506),W=t(6276),he=t(41900),me=t(91283),fe=t(24271),ve=t(69111),ce=t(93313),oe=t(4056),re=t(22953),H=t(81080),V=t(16424),Q=t(16126),Te=t(69850),Re=t(91223),ne=t(24123),pe=t(57532),ye=t(25016),Se=t(8767),Ae=t(82027),Ee=t(71528),xe=t(81160),nt=t(65961),Tt=t(12827),pt=t(17312),Rt=t(46805),tt=t(93031),U=t(72773),F=t(69862),Y=t(14299),le=t(42771),ke=t(32382),Ye=t(43134),ft=t(14576),wt=t(19895),Ut=t(38633),Ke=t(97256),it=t(44696);function At(xi,Ai){return function(Pi){return[(0,Q.p)(xi,Ai)(Pi),(0,Q.p)((0,it.A)(xi,Ai))(Pi)]}}var et=t(48547),ee=t(75805),I=t(55771),K=t(44921),ue=t(68310),De=t(31635),He=t(40052),Fe=t(43781);function ze(){for(var xi=[],Ai=0;Ai<arguments.length;Ai++)xi[Ai]=arguments[Ai];return Fe.w.apply(void 0,(0,De.__spreadArray)([],(0,De.__read)((0,He.K)(xi))))}var qe=t(71030),We=t(31731),_t=t(715),ct=t(33160),Ge=t(37748),st=t(93256),Me=t(13146),ie=t(25759),ge=t(29405),z=t(11929),be=t(1005),Qe=t(87718),Bt=t(704),nn=t(77655),bt=t(26775),at=t(31911),$t=t(2174),On=t(96222),Ct=t(1343),Zt=t(4409),Wn=t(63720),Zn=t(28009),xt=t(72189),Xe=t(38975),gn=t(80047),Qt=t(67791),Dt=t(46662),hn=t(59099),cn=t(49184),an=t(99165),Or=t(41560),Ln=t(9420),En=t(90593),Gn=t(25941),rr=t(1498),sr=t(9084),pi=t(85384),yi=t(45149),jr=t(37125),ui=t(96340),bi=t(40084),ri=t(19823),hi=t(27642),Si=t(70370),Kr=t(79201)},92861:(J,g,t)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=t(48287),l=i.Buffer;function s(u,f){for(var p in u)f[p]=u[p]}l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?J.exports=i:(s(i,g),g.Buffer=m);function m(u,f,p){return l(u,f,p)}m.prototype=Object.create(l.prototype),s(l,m),m.from=function(u,f,p){if(typeof u=="number")throw new TypeError("Argument must not be a number");return l(u,f,p)},m.alloc=function(u,f,p){if(typeof u!="number")throw new TypeError("Argument must be a number");var v=l(u);return f!==void 0?typeof p=="string"?v.fill(f,p):v.fill(f):v.fill(0),v},m.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return l(u)},m.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(u)}},7463:(J,g)=>{"use strict";/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function t(re,H){var V=re.length;re.push(H);e:for(;0<V;){var Q=V-1>>>1,Te=re[Q];if(0<s(Te,H))re[Q]=H,re[V]=Te,V=Q;else break e}}function i(re){return re.length===0?null:re[0]}function l(re){if(re.length===0)return null;var H=re[0],V=re.pop();if(V!==H){re[0]=V;e:for(var Q=0,Te=re.length,Re=Te>>>1;Q<Re;){var ne=2*(Q+1)-1,pe=re[ne],ye=ne+1,Se=re[ye];if(0>s(pe,V))ye<Te&&0>s(Se,pe)?(re[Q]=Se,re[ye]=V,Q=ye):(re[Q]=pe,re[ne]=V,Q=ne);else if(ye<Te&&0>s(Se,V))re[Q]=Se,re[ye]=V,Q=ye;else break e}}return H}function s(re,H){var V=re.sortIndex-H.sortIndex;return V!==0?V:re.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var m=performance;g.unstable_now=function(){return m.now()}}else{var u=Date,f=u.now();g.unstable_now=function(){return u.now()-f}}var p=[],v=[],h=1,d=null,b=3,y=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(re){for(var H=i(v);H!==null;){if(H.callback===null)l(v);else if(H.startTime<=re)l(v),H.sortIndex=H.expirationTime,t(p,H);else break;H=i(v)}}function P(re){if(S=!1,D(re),!w)if(i(p)!==null)w=!0,ce(T);else{var H=i(v);H!==null&&oe(P,H.startTime-re)}}function T(re,H){w=!1,S&&(S=!1,R(ae),ae=-1),y=!0;var V=b;try{for(D(H),d=i(p);d!==null&&(!(d.expirationTime>H)||re&&!W());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,b=d.priorityLevel;var Te=Q(d.expirationTime<=H);H=g.unstable_now(),typeof Te=="function"?d.callback=Te:d===i(p)&&l(p),D(H)}else l(p);d=i(p)}if(d!==null)var Re=!0;else{var ne=i(v);ne!==null&&oe(P,ne.startTime-H),Re=!1}return Re}finally{d=null,b=V,y=!1}}var A=!1,j=null,ae=-1,_=5,N=-1;function W(){return!(g.unstable_now()-N<_)}function he(){if(j!==null){var re=g.unstable_now();N=re;var H=!0;try{H=j(!0,re)}finally{H?me():(A=!1,j=null)}}else A=!1}var me;if(typeof M=="function")me=function(){M(he)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,ve=fe.port2;fe.port1.onmessage=he,me=function(){ve.postMessage(null)}}else me=function(){O(he,0)};function ce(re){j=re,A||(A=!0,me())}function oe(re,H){ae=O(function(){re(g.unstable_now())},H)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(re){re.callback=null},g.unstable_continueExecution=function(){w||y||(w=!0,ce(T))},g.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<re?Math.floor(1e3/re):5},g.unstable_getCurrentPriorityLevel=function(){return b},g.unstable_getFirstCallbackNode=function(){return i(p)},g.unstable_next=function(re){switch(b){case 1:case 2:case 3:var H=3;break;default:H=b}var V=b;b=H;try{return re()}finally{b=V}},g.unstable_pauseExecution=function(){},g.unstable_requestPaint=function(){},g.unstable_runWithPriority=function(re,H){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var V=b;b=re;try{return H()}finally{b=V}},g.unstable_scheduleCallback=function(re,H,V){var Q=g.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?Q+V:Q):V=Q,re){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=V+Te,re={id:h++,callback:H,priorityLevel:re,startTime:V,expirationTime:Te,sortIndex:-1},V>Q?(re.sortIndex=V,t(v,re),i(p)===null&&re===i(v)&&(S?(R(ae),ae=-1):S=!0,oe(P,V-Q))):(re.sortIndex=Te,t(p,re),w||y||(w=!0,ce(T))),re},g.unstable_shouldYield=W,g.unstable_wrapCallback=function(re){var H=b;return function(){var V=b;b=H;try{return re.apply(this,arguments)}finally{b=V}}}},69982:(J,g,t)=>{"use strict";J.exports=t(7463)},25718:J=>{function g(t){var i=t.anchorNode,l=t.anchorOffset,s=t.focusNode,m=t.focusOffset,u=i.compareDocumentPosition(s);return!(u===4||u===0&&l<m)}J.exports=g},93904:(J,g,t)=>{const i=Symbol("SemVer ANY");class l{static get ANY(){return i}constructor(b,y){if(y=s(y),b instanceof l){if(b.loose===!!y.loose)return b;b=b.value}b=b.trim().split(/\s+/).join(" "),p("comparator",b,y),this.options=y,this.loose=!!y.loose,this.parse(b),this.semver===i?this.value="":this.value=this.operator+this.semver.version,p("comp",this)}parse(b){const y=this.options.loose?m[u.COMPARATORLOOSE]:m[u.COMPARATOR],w=b.match(y);if(!w)throw new TypeError(`Invalid comparator: ${b}`);this.operator=w[1]!==void 0?w[1]:"",this.operator==="="&&(this.operator=""),w[2]?this.semver=new v(w[2],this.options.loose):this.semver=i}toString(){return this.value}test(b){if(p("Comparator.test",b,this.options.loose),this.semver===i||b===i)return!0;if(typeof b=="string")try{b=new v(b,this.options)}catch{return!1}return f(b,this.operator,this.semver,this.options)}intersects(b,y){if(!(b instanceof l))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new h(b.value,y).test(this.value):b.operator===""?b.value===""?!0:new h(this.value,y).test(b.semver):(y=s(y),y.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")||!y.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&b.operator.startsWith(">")||this.operator.startsWith("<")&&b.operator.startsWith("<")||this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")||f(this.semver,"<",b.semver,y)&&this.operator.startsWith(">")&&b.operator.startsWith("<")||f(this.semver,">",b.semver,y)&&this.operator.startsWith("<")&&b.operator.startsWith(">")))}}J.exports=l;const s=t(20968),{safeRe:m,t:u}=t(99718),f=t(72111),p=t(57272),v=t(53908),h=t(78311)},78311:(J,g,t)=>{class i{constructor(ce,oe){if(oe=m(oe),ce instanceof i)return ce.loose===!!oe.loose&&ce.includePrerelease===!!oe.includePrerelease?ce:new i(ce.raw,oe);if(ce instanceof u)return this.raw=ce.value,this.set=[[ce]],this.format(),this;if(this.options=oe,this.loose=!!oe.loose,this.includePrerelease=!!oe.includePrerelease,this.raw=ce.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(re=>this.parseRange(re.trim())).filter(re=>re.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const re=this.set[0];if(this.set=this.set.filter(H=>!O(H[0])),this.set.length===0)this.set=[re];else if(this.set.length>1){for(const H of this.set)if(H.length===1&&R(H[0])){this.set=[H];break}}}this.format()}format(){return this.range=this.set.map(ce=>ce.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(ce){const re=((this.options.includePrerelease&&w)|(this.options.loose&&S))+":"+ce,H=s.get(re);if(H)return H;const V=this.options.loose,Q=V?v[h.HYPHENRANGELOOSE]:v[h.HYPHENRANGE];ce=ce.replace(Q,me(this.options.includePrerelease)),f("hyphen replace",ce),ce=ce.replace(v[h.COMPARATORTRIM],d),f("comparator trim",ce),ce=ce.replace(v[h.TILDETRIM],b),f("tilde trim",ce),ce=ce.replace(v[h.CARETTRIM],y),f("caret trim",ce);let Te=ce.split(" ").map(ye=>D(ye,this.options)).join(" ").split(/\s+/).map(ye=>he(ye,this.options));V&&(Te=Te.filter(ye=>(f("loose invalid filter",ye,this.options),!!ye.match(v[h.COMPARATORLOOSE])))),f("range list",Te);const Re=new Map,ne=Te.map(ye=>new u(ye,this.options));for(const ye of ne){if(O(ye))return[ye];Re.set(ye.value,ye)}Re.size>1&&Re.has("")&&Re.delete("");const pe=[...Re.values()];return s.set(re,pe),pe}intersects(ce,oe){if(!(ce instanceof i))throw new TypeError("a Range is required");return this.set.some(re=>M(re,oe)&&ce.set.some(H=>M(H,oe)&&re.every(V=>H.every(Q=>V.intersects(Q,oe)))))}test(ce){if(!ce)return!1;if(typeof ce=="string")try{ce=new p(ce,this.options)}catch{return!1}for(let oe=0;oe<this.set.length;oe++)if(fe(this.set[oe],ce,this.options))return!0;return!1}}J.exports=i;const l=t(38357),s=new l({max:1e3}),m=t(20968),u=t(93904),f=t(57272),p=t(53908),{safeRe:v,t:h,comparatorTrimReplace:d,tildeTrimReplace:b,caretTrimReplace:y}=t(99718),{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:S}=t(16874),O=ve=>ve.value==="<0.0.0-0",R=ve=>ve.value==="",M=(ve,ce)=>{let oe=!0;const re=ve.slice();let H=re.pop();for(;oe&&re.length;)oe=re.every(V=>H.intersects(V,ce)),H=re.pop();return oe},D=(ve,ce)=>(f("comp",ve,ce),ve=j(ve,ce),f("caret",ve),ve=T(ve,ce),f("tildes",ve),ve=_(ve,ce),f("xrange",ve),ve=W(ve,ce),f("stars",ve),ve),P=ve=>!ve||ve.toLowerCase()==="x"||ve==="*",T=(ve,ce)=>ve.trim().split(/\s+/).map(oe=>A(oe,ce)).join(" "),A=(ve,ce)=>{const oe=ce.loose?v[h.TILDELOOSE]:v[h.TILDE];return ve.replace(oe,(re,H,V,Q,Te)=>{f("tilde",ve,re,H,V,Q,Te);let Re;return P(H)?Re="":P(V)?Re=`>=${H}.0.0 <${+H+1}.0.0-0`:P(Q)?Re=`>=${H}.${V}.0 <${H}.${+V+1}.0-0`:Te?(f("replaceTilde pr",Te),Re=`>=${H}.${V}.${Q}-${Te} <${H}.${+V+1}.0-0`):Re=`>=${H}.${V}.${Q} <${H}.${+V+1}.0-0`,f("tilde return",Re),Re})},j=(ve,ce)=>ve.trim().split(/\s+/).map(oe=>ae(oe,ce)).join(" "),ae=(ve,ce)=>{f("caret",ve,ce);const oe=ce.loose?v[h.CARETLOOSE]:v[h.CARET],re=ce.includePrerelease?"-0":"";return ve.replace(oe,(H,V,Q,Te,Re)=>{f("caret",ve,H,V,Q,Te,Re);let ne;return P(V)?ne="":P(Q)?ne=`>=${V}.0.0${re} <${+V+1}.0.0-0`:P(Te)?V==="0"?ne=`>=${V}.${Q}.0${re} <${V}.${+Q+1}.0-0`:ne=`>=${V}.${Q}.0${re} <${+V+1}.0.0-0`:Re?(f("replaceCaret pr",Re),V==="0"?Q==="0"?ne=`>=${V}.${Q}.${Te}-${Re} <${V}.${Q}.${+Te+1}-0`:ne=`>=${V}.${Q}.${Te}-${Re} <${V}.${+Q+1}.0-0`:ne=`>=${V}.${Q}.${Te}-${Re} <${+V+1}.0.0-0`):(f("no pr"),V==="0"?Q==="0"?ne=`>=${V}.${Q}.${Te}${re} <${V}.${Q}.${+Te+1}-0`:ne=`>=${V}.${Q}.${Te}${re} <${V}.${+Q+1}.0-0`:ne=`>=${V}.${Q}.${Te} <${+V+1}.0.0-0`),f("caret return",ne),ne})},_=(ve,ce)=>(f("replaceXRanges",ve,ce),ve.split(/\s+/).map(oe=>N(oe,ce)).join(" ")),N=(ve,ce)=>{ve=ve.trim();const oe=ce.loose?v[h.XRANGELOOSE]:v[h.XRANGE];return ve.replace(oe,(re,H,V,Q,Te,Re)=>{f("xRange",ve,re,H,V,Q,Te,Re);const ne=P(V),pe=ne||P(Q),ye=pe||P(Te),Se=ye;return H==="="&&Se&&(H=""),Re=ce.includePrerelease?"-0":"",ne?H===">"||H==="<"?re="<0.0.0-0":re="*":H&&Se?(pe&&(Q=0),Te=0,H===">"?(H=">=",pe?(V=+V+1,Q=0,Te=0):(Q=+Q+1,Te=0)):H==="<="&&(H="<",pe?V=+V+1:Q=+Q+1),H==="<"&&(Re="-0"),re=`${H+V}.${Q}.${Te}${Re}`):pe?re=`>=${V}.0.0${Re} <${+V+1}.0.0-0`:ye&&(re=`>=${V}.${Q}.0${Re} <${V}.${+Q+1}.0-0`),f("xRange return",re),re})},W=(ve,ce)=>(f("replaceStars",ve,ce),ve.trim().replace(v[h.STAR],"")),he=(ve,ce)=>(f("replaceGTE0",ve,ce),ve.trim().replace(v[ce.includePrerelease?h.GTE0PRE:h.GTE0],"")),me=ve=>(ce,oe,re,H,V,Q,Te,Re,ne,pe,ye,Se,Ae)=>(P(re)?oe="":P(H)?oe=`>=${re}.0.0${ve?"-0":""}`:P(V)?oe=`>=${re}.${H}.0${ve?"-0":""}`:Q?oe=`>=${oe}`:oe=`>=${oe}${ve?"-0":""}`,P(ne)?Re="":P(pe)?Re=`<${+ne+1}.0.0-0`:P(ye)?Re=`<${ne}.${+pe+1}.0-0`:Se?Re=`<=${ne}.${pe}.${ye}-${Se}`:ve?Re=`<${ne}.${pe}.${+ye+1}-0`:Re=`<=${Re}`,`${oe} ${Re}`.trim()),fe=(ve,ce,oe)=>{for(let re=0;re<ve.length;re++)if(!ve[re].test(ce))return!1;if(ce.prerelease.length&&!oe.includePrerelease){for(let re=0;re<ve.length;re++)if(f(ve[re].semver),ve[re].semver!==u.ANY&&ve[re].semver.prerelease.length>0){const H=ve[re].semver;if(H.major===ce.major&&H.minor===ce.minor&&H.patch===ce.patch)return!0}return!1}return!0}},53908:(J,g,t)=>{const i=t(57272),{MAX_LENGTH:l,MAX_SAFE_INTEGER:s}=t(16874),{safeRe:m,t:u}=t(99718),f=t(20968),{compareIdentifiers:p}=t(61123);class v{constructor(d,b){if(b=f(b),d instanceof v){if(d.loose===!!b.loose&&d.includePrerelease===!!b.includePrerelease)return d;d=d.version}else if(typeof d!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>l)throw new TypeError(`version is longer than ${l} characters`);i("SemVer",d,b),this.options=b,this.loose=!!b.loose,this.includePrerelease=!!b.includePrerelease;const y=d.trim().match(b.loose?m[u.LOOSE]:m[u.FULL]);if(!y)throw new TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+y[1],this.minor=+y[2],this.patch=+y[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");y[4]?this.prerelease=y[4].split(".").map(w=>{if(/^[0-9]+$/.test(w)){const S=+w;if(S>=0&&S<s)return S}return w}):this.prerelease=[],this.build=y[5]?y[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(d){if(i("SemVer.compare",this.version,this.options,d),!(d instanceof v)){if(typeof d=="string"&&d===this.version)return 0;d=new v(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof v||(d=new v(d,this.options)),p(this.major,d.major)||p(this.minor,d.minor)||p(this.patch,d.patch)}comparePre(d){if(d instanceof v||(d=new v(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let b=0;do{const y=this.prerelease[b],w=d.prerelease[b];if(i("prerelease compare",b,y,w),y===void 0&&w===void 0)return 0;if(w===void 0)return 1;if(y===void 0)return-1;if(y===w)continue;return p(y,w)}while(++b)}compareBuild(d){d instanceof v||(d=new v(d,this.options));let b=0;do{const y=this.build[b],w=d.build[b];if(i("prerelease compare",b,y,w),y===void 0&&w===void 0)return 0;if(w===void 0)return 1;if(y===void 0)return-1;if(y===w)continue;return p(y,w)}while(++b)}inc(d,b,y){switch(d){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",b,y);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",b,y);break;case"prepatch":this.prerelease.length=0,this.inc("patch",b,y),this.inc("pre",b,y);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",b,y),this.inc("pre",b,y);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const w=Number(y)?1:0;if(!b&&y===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[w];else{let S=this.prerelease.length;for(;--S>=0;)typeof this.prerelease[S]=="number"&&(this.prerelease[S]++,S=-2);if(S===-1){if(b===this.prerelease.join(".")&&y===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(w)}}if(b){let S=[b,w];y===!1&&(S=[b]),p(this.prerelease[0],b)===0?isNaN(this.prerelease[1])&&(this.prerelease=S):this.prerelease=S}break}default:throw new Error(`invalid increment argument: ${d}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}J.exports=v},57414:(J,g,t)=>{const i=t(30144),l=(s,m)=>{const u=i(s.trim().replace(/^[=v]+/,""),m);return u?u.version:null};J.exports=l},72111:(J,g,t)=>{const i=t(94641),l=t(36380),s=t(35580),m=t(54089),u=t(7059),f=t(25200),p=(v,h,d,b)=>{switch(h){case"===":return typeof v=="object"&&(v=v.version),typeof d=="object"&&(d=d.version),v===d;case"!==":return typeof v=="object"&&(v=v.version),typeof d=="object"&&(d=d.version),v!==d;case"":case"=":case"==":return i(v,d,b);case"!=":return l(v,d,b);case">":return s(v,d,b);case">=":return m(v,d,b);case"<":return u(v,d,b);case"<=":return f(v,d,b);default:throw new TypeError(`Invalid operator: ${h}`)}};J.exports=p},46170:(J,g,t)=>{const i=t(53908),l=t(30144),{safeRe:s,t:m}=t(99718),u=(f,p)=>{if(f instanceof i)return f;if(typeof f=="number"&&(f=String(f)),typeof f!="string")return null;p=p||{};let v=null;if(!p.rtl)v=f.match(p.includePrerelease?s[m.COERCEFULL]:s[m.COERCE]);else{const S=p.includePrerelease?s[m.COERCERTLFULL]:s[m.COERCERTL];let O;for(;(O=S.exec(f))&&(!v||v.index+v[0].length!==f.length);)(!v||O.index+O[0].length!==v.index+v[0].length)&&(v=O),S.lastIndex=O.index+O[1].length+O[2].length;S.lastIndex=-1}if(v===null)return null;const h=v[2],d=v[3]||"0",b=v[4]||"0",y=p.includePrerelease&&v[5]?`-${v[5]}`:"",w=p.includePrerelease&&v[6]?`+${v[6]}`:"";return l(`${h}.${d}.${b}${y}${w}`,p)};J.exports=u},40909:(J,g,t)=>{const i=t(53908),l=(s,m,u)=>{const f=new i(s,u),p=new i(m,u);return f.compare(p)||f.compareBuild(p)};J.exports=l},11763:(J,g,t)=>{const i=t(50560),l=(s,m)=>i(s,m,!0);J.exports=l},50560:(J,g,t)=>{const i=t(53908),l=(s,m,u)=>new i(s,u).compare(new i(m,u));J.exports=l},51832:(J,g,t)=>{const i=t(30144),l=(s,m)=>{const u=i(s,null,!0),f=i(m,null,!0),p=u.compare(f);if(p===0)return null;const v=p>0,h=v?u:f,d=v?f:u,b=!!h.prerelease.length;if(!!d.prerelease.length&&!b)return!d.patch&&!d.minor?"major":h.patch?"patch":h.minor?"minor":"major";const w=b?"pre":"";return u.major!==f.major?w+"major":u.minor!==f.minor?w+"minor":u.patch!==f.patch?w+"patch":"prerelease"};J.exports=l},94641:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(s,m,u)===0;J.exports=l},35580:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(s,m,u)>0;J.exports=l},54089:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(s,m,u)>=0;J.exports=l},93007:(J,g,t)=>{const i=t(53908),l=(s,m,u,f,p)=>{typeof u=="string"&&(p=f,f=u,u=void 0);try{return new i(s instanceof i?s.version:s,u).inc(m,f,p).version}catch{return null}};J.exports=l},7059:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(s,m,u)<0;J.exports=l},25200:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(s,m,u)<=0;J.exports=l},32938:(J,g,t)=>{const i=t(53908),l=(s,m)=>new i(s,m).major;J.exports=l},46254:(J,g,t)=>{const i=t(53908),l=(s,m)=>new i(s,m).minor;J.exports=l},36380:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(s,m,u)!==0;J.exports=l},30144:(J,g,t)=>{const i=t(53908),l=(s,m,u=!1)=>{if(s instanceof i)return s;try{return new i(s,m)}catch(f){if(!u)return null;throw f}};J.exports=l},24493:(J,g,t)=>{const i=t(53908),l=(s,m)=>new i(s,m).patch;J.exports=l},31729:(J,g,t)=>{const i=t(30144),l=(s,m)=>{const u=i(s,m);return u&&u.prerelease.length?u.prerelease:null};J.exports=l},9970:(J,g,t)=>{const i=t(50560),l=(s,m,u)=>i(m,s,u);J.exports=l},74277:(J,g,t)=>{const i=t(40909),l=(s,m)=>s.sort((u,f)=>i(f,u,m));J.exports=l},97638:(J,g,t)=>{const i=t(78311),l=(s,m,u)=>{try{m=new i(m,u)}catch{return!1}return m.test(s)};J.exports=l},43927:(J,g,t)=>{const i=t(40909),l=(s,m)=>s.sort((u,f)=>i(u,f,m));J.exports=l},56953:(J,g,t)=>{const i=t(30144),l=(s,m)=>{const u=i(s,m);return u?u.version:null};J.exports=l},99589:(J,g,t)=>{const i=t(99718),l=t(16874),s=t(53908),m=t(61123),u=t(30144),f=t(56953),p=t(57414),v=t(93007),h=t(51832),d=t(32938),b=t(46254),y=t(24493),w=t(31729),S=t(50560),O=t(9970),R=t(11763),M=t(40909),D=t(43927),P=t(74277),T=t(35580),A=t(7059),j=t(94641),ae=t(36380),_=t(54089),N=t(25200),W=t(72111),he=t(46170),me=t(93904),fe=t(78311),ve=t(97638),ce=t(77631),oe=t(19628),re=t(270),H=t(41261),V=t(13874),Q=t(97075),Te=t(75571),Re=t(82961),ne=t(76780),pe=t(72525),ye=t(75032);J.exports={parse:u,valid:f,clean:p,inc:v,diff:h,major:d,minor:b,patch:y,prerelease:w,compare:S,rcompare:O,compareLoose:R,compareBuild:M,sort:D,rsort:P,gt:T,lt:A,eq:j,neq:ae,gte:_,lte:N,cmp:W,coerce:he,Comparator:me,Range:fe,satisfies:ve,toComparators:ce,maxSatisfying:oe,minSatisfying:re,minVersion:H,validRange:V,outside:Q,gtr:Te,ltr:Re,intersects:ne,simplifyRange:pe,subset:ye,SemVer:s,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:l.SEMVER_SPEC_VERSION,RELEASE_TYPES:l.RELEASE_TYPES,compareIdentifiers:m.compareIdentifiers,rcompareIdentifiers:m.rcompareIdentifiers}},16874:J=>{const g="2.0.0",i=Number.MAX_SAFE_INTEGER||9007199254740991,l=16,s=256-6,m=["major","premajor","minor","preminor","patch","prepatch","prerelease"];J.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l,MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:i,RELEASE_TYPES:m,SEMVER_SPEC_VERSION:g,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:J=>{const g=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};J.exports=g},61123:J=>{const g=/^[0-9]+$/,t=(l,s)=>{const m=g.test(l),u=g.test(s);return m&&u&&(l=+l,s=+s),l===s?0:m&&!u?-1:u&&!m?1:l<s?-1:1},i=(l,s)=>t(s,l);J.exports={compareIdentifiers:t,rcompareIdentifiers:i}},20968:J=>{const g=Object.freeze({loose:!0}),t=Object.freeze({}),i=l=>l?typeof l!="object"?g:l:t;J.exports=i},99718:(J,g,t)=>{const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:l,MAX_LENGTH:s}=t(16874),m=t(57272);g=J.exports={};const u=g.re=[],f=g.safeRe=[],p=g.src=[],v=g.t={};let h=0;const d="[a-zA-Z0-9-]",b=[["\\s",1],["\\d",s],[d,l]],y=S=>{for(const[O,R]of b)S=S.split(`${O}*`).join(`${O}{0,${R}}`).split(`${O}+`).join(`${O}{1,${R}}`);return S},w=(S,O,R)=>{const M=y(O),D=h++;m(S,D,O),v[S]=D,p[D]=O,u[D]=new RegExp(O,R?"g":void 0),f[D]=new RegExp(M,R?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*"),w("NUMERICIDENTIFIERLOOSE","\\d+"),w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),w("MAINVERSION",`(${p[v.NUMERICIDENTIFIER]})\\.(${p[v.NUMERICIDENTIFIER]})\\.(${p[v.NUMERICIDENTIFIER]})`),w("MAINVERSIONLOOSE",`(${p[v.NUMERICIDENTIFIERLOOSE]})\\.(${p[v.NUMERICIDENTIFIERLOOSE]})\\.(${p[v.NUMERICIDENTIFIERLOOSE]})`),w("PRERELEASEIDENTIFIER",`(?:${p[v.NUMERICIDENTIFIER]}|${p[v.NONNUMERICIDENTIFIER]})`),w("PRERELEASEIDENTIFIERLOOSE",`(?:${p[v.NUMERICIDENTIFIERLOOSE]}|${p[v.NONNUMERICIDENTIFIER]})`),w("PRERELEASE",`(?:-(${p[v.PRERELEASEIDENTIFIER]}(?:\\.${p[v.PRERELEASEIDENTIFIER]})*))`),w("PRERELEASELOOSE",`(?:-?(${p[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[v.PRERELEASEIDENTIFIERLOOSE]})*))`),w("BUILDIDENTIFIER",`${d}+`),w("BUILD",`(?:\\+(${p[v.BUILDIDENTIFIER]}(?:\\.${p[v.BUILDIDENTIFIER]})*))`),w("FULLPLAIN",`v?${p[v.MAINVERSION]}${p[v.PRERELEASE]}?${p[v.BUILD]}?`),w("FULL",`^${p[v.FULLPLAIN]}$`),w("LOOSEPLAIN",`[v=\\s]*${p[v.MAINVERSIONLOOSE]}${p[v.PRERELEASELOOSE]}?${p[v.BUILD]}?`),w("LOOSE",`^${p[v.LOOSEPLAIN]}$`),w("GTLT","((?:<|>)?=?)"),w("XRANGEIDENTIFIERLOOSE",`${p[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),w("XRANGEIDENTIFIER",`${p[v.NUMERICIDENTIFIER]}|x|X|\\*`),w("XRANGEPLAIN",`[v=\\s]*(${p[v.XRANGEIDENTIFIER]})(?:\\.(${p[v.XRANGEIDENTIFIER]})(?:\\.(${p[v.XRANGEIDENTIFIER]})(?:${p[v.PRERELEASE]})?${p[v.BUILD]}?)?)?`),w("XRANGEPLAINLOOSE",`[v=\\s]*(${p[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[v.XRANGEIDENTIFIERLOOSE]})(?:${p[v.PRERELEASELOOSE]})?${p[v.BUILD]}?)?)?`),w("XRANGE",`^${p[v.GTLT]}\\s*${p[v.XRANGEPLAIN]}$`),w("XRANGELOOSE",`^${p[v.GTLT]}\\s*${p[v.XRANGEPLAINLOOSE]}$`),w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),w("COERCE",`${p[v.COERCEPLAIN]}(?:$|[^\\d])`),w("COERCEFULL",p[v.COERCEPLAIN]+`(?:${p[v.PRERELEASE]})?(?:${p[v.BUILD]})?(?:$|[^\\d])`),w("COERCERTL",p[v.COERCE],!0),w("COERCERTLFULL",p[v.COERCEFULL],!0),w("LONETILDE","(?:~>?)"),w("TILDETRIM",`(\\s*)${p[v.LONETILDE]}\\s+`,!0),g.tildeTrimReplace="$1~",w("TILDE",`^${p[v.LONETILDE]}${p[v.XRANGEPLAIN]}$`),w("TILDELOOSE",`^${p[v.LONETILDE]}${p[v.XRANGEPLAINLOOSE]}$`),w("LONECARET","(?:\\^)"),w("CARETTRIM",`(\\s*)${p[v.LONECARET]}\\s+`,!0),g.caretTrimReplace="$1^",w("CARET",`^${p[v.LONECARET]}${p[v.XRANGEPLAIN]}$`),w("CARETLOOSE",`^${p[v.LONECARET]}${p[v.XRANGEPLAINLOOSE]}$`),w("COMPARATORLOOSE",`^${p[v.GTLT]}\\s*(${p[v.LOOSEPLAIN]})$|^$`),w("COMPARATOR",`^${p[v.GTLT]}\\s*(${p[v.FULLPLAIN]})$|^$`),w("COMPARATORTRIM",`(\\s*)${p[v.GTLT]}\\s*(${p[v.LOOSEPLAIN]}|${p[v.XRANGEPLAIN]})`,!0),g.comparatorTrimReplace="$1$2$3",w("HYPHENRANGE",`^\\s*(${p[v.XRANGEPLAIN]})\\s+-\\s+(${p[v.XRANGEPLAIN]})\\s*$`),w("HYPHENRANGELOOSE",`^\\s*(${p[v.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[v.XRANGEPLAINLOOSE]})\\s*$`),w("STAR","(<|>)?=?\\s*\\*"),w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},38357:(J,g,t)=>{"use strict";const i=t(28799),l=Symbol("max"),s=Symbol("length"),m=Symbol("lengthCalculator"),u=Symbol("allowStale"),f=Symbol("maxAge"),p=Symbol("dispose"),v=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),b=Symbol("updateAgeOnGet"),y=()=>1;class w{constructor(A){if(typeof A=="number"&&(A={max:A}),A||(A={}),A.max&&(typeof A.max!="number"||A.max<0))throw new TypeError("max must be a non-negative number");const j=this[l]=A.max||1/0,ae=A.length||y;if(this[m]=typeof ae!="function"?y:ae,this[u]=A.stale||!1,A.maxAge&&typeof A.maxAge!="number")throw new TypeError("maxAge must be a number");this[f]=A.maxAge||0,this[p]=A.dispose,this[v]=A.noDisposeOnSet||!1,this[b]=A.updateAgeOnGet||!1,this.reset()}set max(A){if(typeof A!="number"||A<0)throw new TypeError("max must be a non-negative number");this[l]=A||1/0,R(this)}get max(){return this[l]}set allowStale(A){this[u]=!!A}get allowStale(){return this[u]}set maxAge(A){if(typeof A!="number")throw new TypeError("maxAge must be a non-negative number");this[f]=A,R(this)}get maxAge(){return this[f]}set lengthCalculator(A){typeof A!="function"&&(A=y),A!==this[m]&&(this[m]=A,this[s]=0,this[h].forEach(j=>{j.length=this[m](j.value,j.key),this[s]+=j.length})),R(this)}get lengthCalculator(){return this[m]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(A,j){j=j||this;for(let ae=this[h].tail;ae!==null;){const _=ae.prev;P(this,A,ae,j),ae=_}}forEach(A,j){j=j||this;for(let ae=this[h].head;ae!==null;){const _=ae.next;P(this,A,ae,j),ae=_}}keys(){return this[h].toArray().map(A=>A.key)}values(){return this[h].toArray().map(A=>A.value)}reset(){this[p]&&this[h]&&this[h].length&&this[h].forEach(A=>this[p](A.key,A.value)),this[d]=new Map,this[h]=new i,this[s]=0}dump(){return this[h].map(A=>O(this,A)?!1:{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[h]}set(A,j,ae){if(ae=ae||this[f],ae&&typeof ae!="number")throw new TypeError("maxAge must be a number");const _=ae?Date.now():0,N=this[m](j,A);if(this[d].has(A)){if(N>this[l])return M(this,this[d].get(A)),!1;const me=this[d].get(A).value;return this[p]&&(this[v]||this[p](A,me.value)),me.now=_,me.maxAge=ae,me.value=j,this[s]+=N-me.length,me.length=N,this.get(A),R(this),!0}const W=new D(A,j,N,_,ae);return W.length>this[l]?(this[p]&&this[p](A,j),!1):(this[s]+=W.length,this[h].unshift(W),this[d].set(A,this[h].head),R(this),!0)}has(A){if(!this[d].has(A))return!1;const j=this[d].get(A).value;return!O(this,j)}get(A){return S(this,A,!0)}peek(A){return S(this,A,!1)}pop(){const A=this[h].tail;return A?(M(this,A),A.value):null}del(A){M(this,this[d].get(A))}load(A){this.reset();const j=Date.now();for(let ae=A.length-1;ae>=0;ae--){const _=A[ae],N=_.e||0;if(N===0)this.set(_.k,_.v);else{const W=N-j;W>0&&this.set(_.k,_.v,W)}}}prune(){this[d].forEach((A,j)=>S(this,j,!1))}}const S=(T,A,j)=>{const ae=T[d].get(A);if(ae){const _=ae.value;if(O(T,_)){if(M(T,ae),!T[u])return}else j&&(T[b]&&(ae.value.now=Date.now()),T[h].unshiftNode(ae));return _.value}},O=(T,A)=>{if(!A||!A.maxAge&&!T[f])return!1;const j=Date.now()-A.now;return A.maxAge?j>A.maxAge:T[f]&&j>T[f]},R=T=>{if(T[s]>T[l])for(let A=T[h].tail;T[s]>T[l]&&A!==null;){const j=A.prev;M(T,A),A=j}},M=(T,A)=>{if(A){const j=A.value;T[p]&&T[p](j.key,j.value),T[s]-=j.length,T[d].delete(j.key),T[h].removeNode(A)}};class D{constructor(A,j,ae,_,N){this.key=A,this.value=j,this.length=ae,this.now=_,this.maxAge=N||0}}const P=(T,A,j,ae)=>{let _=j.value;O(T,_)&&(M(T,j),T[u]||(_=void 0)),_&&A.call(ae,_.value,_.key,T)};J.exports=w},97716:(J,g,t)=>{J.exports=t(99589)},75571:(J,g,t)=>{const i=t(97075),l=(s,m,u)=>i(s,m,">",u);J.exports=l},76780:(J,g,t)=>{const i=t(78311),l=(s,m,u)=>(s=new i(s,u),m=new i(m,u),s.intersects(m,u));J.exports=l},82961:(J,g,t)=>{const i=t(97075),l=(s,m,u)=>i(s,m,"<",u);J.exports=l},19628:(J,g,t)=>{const i=t(53908),l=t(78311),s=(m,u,f)=>{let p=null,v=null,h=null;try{h=new l(u,f)}catch{return null}return m.forEach(d=>{h.test(d)&&(!p||v.compare(d)===-1)&&(p=d,v=new i(p,f))}),p};J.exports=s},270:(J,g,t)=>{const i=t(53908),l=t(78311),s=(m,u,f)=>{let p=null,v=null,h=null;try{h=new l(u,f)}catch{return null}return m.forEach(d=>{h.test(d)&&(!p||v.compare(d)===1)&&(p=d,v=new i(p,f))}),p};J.exports=s},41261:(J,g,t)=>{const i=t(53908),l=t(78311),s=t(35580),m=(u,f)=>{u=new l(u,f);let p=new i("0.0.0");if(u.test(p)||(p=new i("0.0.0-0"),u.test(p)))return p;p=null;for(let v=0;v<u.set.length;++v){const h=u.set[v];let d=null;h.forEach(b=>{const y=new i(b.semver.version);switch(b.operator){case">":y.prerelease.length===0?y.patch++:y.prerelease.push(0),y.raw=y.format();case"":case">=":(!d||s(y,d))&&(d=y);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${b.operator}`)}}),d&&(!p||s(p,d))&&(p=d)}return p&&u.test(p)?p:null};J.exports=m},97075:(J,g,t)=>{const i=t(53908),l=t(93904),{ANY:s}=l,m=t(78311),u=t(97638),f=t(35580),p=t(7059),v=t(25200),h=t(54089),d=(b,y,w,S)=>{b=new i(b,S),y=new m(y,S);let O,R,M,D,P;switch(w){case">":O=f,R=v,M=p,D=">",P=">=";break;case"<":O=p,R=h,M=f,D="<",P="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(u(b,y,S))return!1;for(let T=0;T<y.set.length;++T){const A=y.set[T];let j=null,ae=null;if(A.forEach(_=>{_.semver===s&&(_=new l(">=0.0.0")),j=j||_,ae=ae||_,O(_.semver,j.semver,S)?j=_:M(_.semver,ae.semver,S)&&(ae=_)}),j.operator===D||j.operator===P||(!ae.operator||ae.operator===D)&&R(b,ae.semver))return!1;if(ae.operator===P&&M(b,ae.semver))return!1}return!0};J.exports=d},72525:(J,g,t)=>{const i=t(97638),l=t(50560);J.exports=(s,m,u)=>{const f=[];let p=null,v=null;const h=s.sort((w,S)=>l(w,S,u));for(const w of h)i(w,m,u)?(v=w,p||(p=w)):(v&&f.push([p,v]),v=null,p=null);p&&f.push([p,null]);const d=[];for(const[w,S]of f)w===S?d.push(w):!S&&w===h[0]?d.push("*"):S?w===h[0]?d.push(`<=${S}`):d.push(`${w} - ${S}`):d.push(`>=${w}`);const b=d.join(" || "),y=typeof m.raw=="string"?m.raw:String(m);return b.length<y.length?b:m}},75032:(J,g,t)=>{const i=t(78311),l=t(93904),{ANY:s}=l,m=t(97638),u=t(50560),f=(y,w,S={})=>{if(y===w)return!0;y=new i(y,S),w=new i(w,S);let O=!1;e:for(const R of y.set){for(const M of w.set){const D=h(R,M,S);if(O=O||D!==null,D)continue e}if(O)return!1}return!0},p=[new l(">=0.0.0-0")],v=[new l(">=0.0.0")],h=(y,w,S)=>{if(y===w)return!0;if(y.length===1&&y[0].semver===s){if(w.length===1&&w[0].semver===s)return!0;S.includePrerelease?y=p:y=v}if(w.length===1&&w[0].semver===s){if(S.includePrerelease)return!0;w=v}const O=new Set;let R,M;for(const N of y)N.operator===">"||N.operator===">="?R=d(R,N,S):N.operator==="<"||N.operator==="<="?M=b(M,N,S):O.add(N.semver);if(O.size>1)return null;let D;if(R&&M){if(D=u(R.semver,M.semver,S),D>0)return null;if(D===0&&(R.operator!==">="||M.operator!=="<="))return null}for(const N of O){if(R&&!m(N,String(R),S)||M&&!m(N,String(M),S))return null;for(const W of w)if(!m(N,String(W),S))return!1;return!0}let P,T,A,j,ae=M&&!S.includePrerelease&&M.semver.prerelease.length?M.semver:!1,_=R&&!S.includePrerelease&&R.semver.prerelease.length?R.semver:!1;ae&&ae.prerelease.length===1&&M.operator==="<"&&ae.prerelease[0]===0&&(ae=!1);for(const N of w){if(j=j||N.operator===">"||N.operator===">=",A=A||N.operator==="<"||N.operator==="<=",R){if(_&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===_.major&&N.semver.minor===_.minor&&N.semver.patch===_.patch&&(_=!1),N.operator===">"||N.operator===">="){if(P=d(R,N,S),P===N&&P!==R)return!1}else if(R.operator===">="&&!m(R.semver,String(N),S))return!1}if(M){if(ae&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===ae.major&&N.semver.minor===ae.minor&&N.semver.patch===ae.patch&&(ae=!1),N.operator==="<"||N.operator==="<="){if(T=b(M,N,S),T===N&&T!==M)return!1}else if(M.operator==="<="&&!m(M.semver,String(N),S))return!1}if(!N.operator&&(M||R)&&D!==0)return!1}return!(R&&A&&!M&&D!==0||M&&j&&!R&&D!==0||_||ae)},d=(y,w,S)=>{if(!y)return w;const O=u(y.semver,w.semver,S);return O>0?y:O<0||w.operator===">"&&y.operator===">="?w:y},b=(y,w,S)=>{if(!y)return w;const O=u(y.semver,w.semver,S);return O<0?y:O>0||w.operator==="<"&&y.operator==="<="?w:y};J.exports=f},77631:(J,g,t)=>{const i=t(78311),l=(s,m)=>new i(s,m).set.map(u=>u.map(f=>f.value).join(" ").trim().split(" "));J.exports=l},13874:(J,g,t)=>{const i=t(78311),l=(s,m)=>{try{return new i(s,m).range||"*"}catch{return null}};J.exports=l},17005:(J,g)=>{"use strict";var t;t={value:!0};for(var i=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),l={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},s={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:i?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},m={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},u=1;u<20;u++)m["f"+u]=111+u;function f(w,S,O){S&&!("byKey"in S)&&(O=S,S=null),Array.isArray(w)||(w=[w]);var R=w.map(function(P){return h(P,S)}),M=function(T){return R.some(function(A){return d(A,T)})},D=O==null?M:M(O);return D}function p(w,S){return f(w,S)}function v(w,S){return f(w,{byKey:!0},S)}function h(w,S){var O=S&&S.byKey,R={};w=w.replace("++","+add");var M=w.split("+"),D=M.length;for(var P in l)R[l[P]]=!1;var T=!0,A=!1,j=void 0;try{for(var ae=M[Symbol.iterator](),_;!(T=(_=ae.next()).done);T=!0){var N=_.value,W=N.endsWith("?");W&&(N=N.slice(0,-1));var he=y(N),me=l[he];(D===1||!me)&&(O?R.key=he:R.which=b(N)),me&&(R[me]=W?null:!0)}}catch(fe){A=!0,j=fe}finally{try{!T&&ae.return&&ae.return()}finally{if(A)throw j}}return R}function d(w,S){for(var O in w){var R=w[O],M=void 0;if(R!=null&&(O==="key"?M=S.key.toLowerCase():O==="which"?M=R===91&&S.which===93?91:S.which:M=S[O],!(M==null&&R===!1)&&M!==R))return!1}return!0}function b(w){w=y(w);var S=m[w]||w.toUpperCase().charCodeAt(0);return S}function y(w){return w=w.toLowerCase(),w=s[w]||w,w}t=f,t=f,t=p,g.Sn=v,t=h,t=d,t=b,t=y},75226:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});var i=t(82611),l=t(49568),s=Object.assign||function(h){for(var d=1;d<arguments.length;d++){var b=arguments[d];for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(h[y]=b[y])}return h};function m(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=d.defaultBlock,y=b===void 0?"line":b,w=d.defaultMarks,S=w===void 0?[]:w,O=d.delimiter,R=O===void 0?` `:O,M=d.toJSON,D=M===void 0?!1:M;l.Set.isSet(S)&&(S=S.toArray()),y=i.bP.createProperties(y),S=S.map(i.CU.createProperties);var P={object:"value",document:{object:"document",data:{},nodes:h.split(R).map(function(A){return s({},y,{object:"block",data:{},nodes:[{object:"text",text:A,marks:S}]})})}},T=D?P:i.WT.fromJSON(P);return T}function u(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return f(h.document,d)}function f(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=d.delimiter,y=b===void 0?` `:b;return h.object==="document"||h.object==="block"&&i.eB.isBlockList(h.nodes)?h.nodes.map(f).join(y):h.text}var p={deserialize:m,serialize:u};const v=p},29317:(J,g,t)=>{"use strict";t.d(g,{KE:()=>zt,Ay:()=>Yo});var i=t(96540),l=t(5556),s=t.n(l),m=t(82611);function u(Xn,fr){function mr(Rr,ai,jt,Pn,nr){var Ir=ai[jt];return Ir==null&&!Rr?null:Ir==null&&Rr?new Error("The "+nr+" `"+jt+"` is marked as required in `"+Pn+"`, but it was not supplied."):fr(Ir)?null:new Error("Invalid "+nr+" `"+jt+"` supplied to `"+Pn+"`, expected a Slate `"+Xn+"` but received: "+Ir)}function yr(){for(var Rr=arguments.length,ai=Array(Rr),jt=0;jt<Rr;jt++)ai[jt]=arguments[jt];return mr.apply(void 0,[!1].concat(ai))}return yr.isRequired=function(){for(var Rr=arguments.length,ai=Array(Rr),jt=0;jt<Rr;jt++)ai[jt]=arguments[jt];return mr.apply(void 0,[!0].concat(ai))},yr}var f={block:u("Block",function(Xn){return m.eB.isBlock(Xn)}),blocks:u("List<Block>",function(Xn){return m.eB.isBlockList(Xn)}),change:u("Change",function(Xn){return m.lY.isChange(Xn)}),data:u("Data",function(Xn){return m.B_.isData(Xn)}),document:u("Document",function(Xn){return m.yo.isDocument(Xn)}),inline:u("Inline",function(Xn){return m.cV.isInline(Xn)}),inlines:u("Inline",function(Xn){return m.cV.isInlineList(Xn)}),leaf:u("Leaf",function(Xn){return m.hK.isLeaf(Xn)}),leaves:u("List<Leaf>",function(Xn){return m.hK.isLeafList(Xn)}),mark:u("Mark",function(Xn){return m.CU.isMark(Xn)}),marks:u("Set<Mark>",function(Xn){return m.CU.isMarkSet(Xn)}),node:u("Node",function(Xn){return m.bP.isNode(Xn)}),nodes:u("List<Node>",function(Xn){return m.bP.isNodeList(Xn)}),range:u("Range",function(Xn){return m.Q6.isRange(Xn)}),ranges:u("List<Range>",function(Xn){return m.Q6.isRangeList(Xn)}),selection:u("Selection",function(Xn){return m.LN.isSelection(Xn)}),value:u("Value",function(Xn){return m.WT.isValue(Xn)}),text:u("Text",function(Xn){return m.EY.isText(Xn)}),texts:u("List<Text>",function(Xn){return m.EY.isTextList(Xn)})};const p=f;var v=t(2209),h=t.n(v),d=t(85190),b=t.n(d),y=!0,w=function(Xn,fr){if(!y){if(Xn)return;console.warn(fr)}};const S=w;var O=t(27166),R=t.n(O),M=t(25718),D=t.n(M),P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Xn){return typeof Xn}:function(Xn){return Xn&&typeof Symbol=="function"&&Xn.constructor===Symbol&&Xn!==Symbol.prototype?"symbol":typeof Xn},T=(typeof window>"u"?"undefined":P(window))==="object"&&(typeof document>"u"?"undefined":P(document))==="object"&&document.nodeType===9;const A=T;var j=function(){function Xn(fr,mr){var yr=[],Rr=!0,ai=!1,jt=void 0;try{for(var Pn=fr[Symbol.iterator](),nr;!(Rr=(nr=Pn.next()).done)&&(yr.push(nr.value),!(mr&&yr.length===mr));Rr=!0);}catch(Ir){ai=!0,jt=Ir}finally{try{!Rr&&Pn.return&&Pn.return()}finally{if(ai)throw jt}}return yr}return function(fr,mr){if(Array.isArray(fr))return fr;if(Symbol.iterator in Object(fr))return Xn(fr,mr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ae=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]],_=void 0;if(A){var N=!0,W=!1,he=void 0;try{for(var me=ae[Symbol.iterator](),fe;!(N=(fe=me.next()).done);N=!0){var ve=fe.value,ce=j(ve,2),oe=ce[0],re=ce[1];if(re.test(window.navigator.userAgent)){_=oe;break}}}catch(Xn){W=!0,he=Xn}finally{try{!N&&me.return&&me.return()}finally{if(W)throw he}}}var H=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]],V=void 0;if(A){var Q=!0,Te=!1,Re=void 0;try{for(var ne=H[Symbol.iterator](),pe;!(Q=(pe=ne.next()).done);Q=!0){var ye=pe.value,Se=j(ye,2),Ae=Se[0],Ee=Se[1];if(Ee.test(window.navigator.userAgent)){V=Ae;break}}}catch(Xn){Te=!0,Re=Xn}finally{try{!Q&&ne.return&&ne.return()}finally{if(Te)throw Re}}}var xe=[["inputeventslevel1",function(Xn){var fr=Xn.InputEvent?new Xn.InputEvent("input"):{},mr="inputType"in fr;return mr}],["inputeventslevel2",function(Xn){return!1}]],nt=[];if(A){var Tt=!0,pt=!1,Rt=void 0;try{for(var tt=xe[Symbol.iterator](),U;!(Tt=(U=tt.next()).done);Tt=!0){var F=U.value,Y=j(F,2),le=Y[0],ke=Y[1];ke(window)&&nt.push(le)}}catch(Xn){pt=!0,Rt=Xn}finally{try{!Tt&&tt.return&&tt.return()}finally{if(pt)throw Rt}}}var Ye=[[/^9([.]0|)/,28],[/^8[.]1/,27],[/^8([.]0|)/,26],[/^7[.]1/,25],[/^7([.]0|)/,24],[/^6([.]0|)/,23],[/^5[.]1/,22],[/^5([.]0|)/,21],[/^4[.]4/,20]];function ft(){if(V!=="android")return null;var Xn=window.navigator.userAgent,fr=Xn.match(/Android\s([0-9\.]+)/);if(fr==null)return null;var mr=fr[1],yr=!0,Rr=!1,ai=void 0;try{for(var jt=Ye[Symbol.iterator](),Pn;!(yr=(Pn=jt.next()).done);yr=!0){var nr=Pn.value,Ir=j(nr,2),fi=Ir[0],Ti=Ir[1];if(mr.match(fi))return Ti}}catch(Oe){Rr=!0,ai=Oe}finally{try{!yr&&jt.return&&jt.return()}finally{if(Rr)throw ai}}return null}var wt=_==="chrome",Ut=_==="opera",Ke=_==="firefox",it=_==="safari",At=_==="ie",et=_==="edge",ee=V==="android",I=V==="ios",K=V==="macos",ue=V==="windows",De=ft(),He=nt.includes("inputeventslevel1"),Fe=nt.includes("inputeventslevel2")||ee&&(De===28||De===null),ze=t(7350),qe=t.n(ze),We=t(90179),_t=t.n(We),ct=t(49568),Ge=t(17005),st={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},Me={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ie={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:"ctrl+y"},ge={},z=I||K,be=!z,Qe=[].concat(Object.keys(st)).concat(Object.keys(Me)).concat(Object.keys(ie));Qe.forEach(function(Xn){var fr="is"+Xn[0].toUpperCase()+Xn.slice(1);if(!ge[fr]){var mr=st[Xn],yr=Me[Xn],Rr=ie[Xn],ai=mr&&(0,Ge.Sn)(mr),jt=yr&&(0,Ge.Sn)(yr),Pn=Rr&&(0,Ge.Sn)(Rr);ge[fr]=function(nr){return!!(ai&&ai(nr)||z&&jt&&jt(nr)||be&&Pn&&Pn(nr))}}});const Bt=ge;var nn=t(40961),bt=t(25948);function at(Xn){var fr=JSON.stringify(Xn),mr=(0,bt.E)(encodeURIComponent(fr));return mr}function $t(Xn){var fr=decodeURIComponent((0,bt.l)(Xn)),mr=JSON.parse(fr);return mr}function On(Xn,fr){var mr=$t(Xn),yr=m.WT.fromJSON(mr,fr);return yr}function Ct(Xn,fr){var mr=$t(Xn),yr=m.bP.fromJSON(mr,fr);return yr}function Zt(Xn,fr){var mr=Xn.toJSON(fr),yr=at(mr);return yr}function Wn(Xn,fr){var mr=Xn.toJSON(fr),yr=at(mr);return yr}var Zn={deserialize:On,deserializeNode:Ct,serialize:Zt,serializeNode:Wn};const xt=Zn;var Xe=t(75226),gn=t(11561),Qt=!1,Dt="Invariant failed",hn=function(Xn,fr){if(!Xn)throw Qt?new Error(Dt):new Error(Dt+": "+(fr||""))},cn=Object.assign||function(Xn){for(var fr=1;fr<arguments.length;fr++){var mr=arguments[fr];for(var yr in mr)Object.prototype.hasOwnProperty.call(mr,yr)&&(Xn[yr]=mr[yr])}return Xn},an=function(){function Xn(fr,mr){var yr=[],Rr=!0,ai=!1,jt=void 0;try{for(var Pn=fr[Symbol.iterator](),nr;!(Rr=(nr=Pn.next()).done)&&(yr.push(nr.value),!(mr&&yr.length===mr));Rr=!0);}catch(Ir){ai=!0,jt=Ir}finally{try{!Rr&&Pn.return&&Pn.return()}finally{if(ai)throw jt}}return yr}return function(fr,mr){if(Array.isArray(fr))return fr;if(Symbol.iterator in Object(fr))return Xn(fr,mr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Or=function(Xn){if(Array.isArray(Xn)){for(var fr=0,mr=Array(Xn.length);fr<Xn.length;fr++)mr[fr]=Xn[fr];return mr}else return Array.from(Xn)},Ln=0;function En(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fr=Ln++,mr=Xn.placeholder,yr=Xn.when,Rr=Xn.style,ai=Rr===void 0?{}:Rr;hn(typeof mr=="string","You must pass `SlateReactPlaceholder` an `options.placeholder` string."),hn(typeof yr=="string"||typeof yr=="function","You must pass `SlateReactPlaceholder` an `options.when` query.");function jt(nr,Ir,fi){if(!Ir.query(yr,nr))return fi();var Ti=fi(),Oe=nr.texts(),pn=an(Oe,1),Qn=pn[0],Sr=nr.texts({direction:"backward"}),hr=an(Sr,1),kr=hr[0],Ve=an(Qn,2),Ot=Ve[0],wn=Ve[1],Wt=an(kr,2),Yt=Wt[0],zn=Wt[1],Nr={type:"placeholder",data:{key:fr},anchor:{key:Ot.key,offset:0,path:wn},focus:{key:Yt.key,offset:Yt.text.length,path:zn}};return[].concat(Or(Ti),[Nr])}function Pn(nr,Ir,fi){var Ti=nr.children,Oe=nr.decoration;if(Oe.type==="placeholder"&&Oe.data.get("key")===fr){var pn=cn({pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",verticalAlign:"text-top"},ai);return i.createElement("span",null,i.createElement("span",{contentEditable:!1,style:pn},mr),Ti)}return fi()}return{decorateNode:jt,renderDecoration:Pn}}const Gn=En;var rr=function(fr,mr){return fr===mr};function sr(Xn,fr){fr===void 0&&(fr=rr);var mr,yr=[],Rr,ai=!1,jt=function(Ir,fi){return fr(Ir,yr[fi])},Pn=function(){for(var Ir=arguments.length,fi=new Array(Ir),Ti=0;Ti<Ir;Ti++)fi[Ti]=arguments[Ti];return ai&&mr===this&&fi.length===yr.length&&fi.every(jt)||(Rr=Xn.apply(this,fi),ai=!0,mr=this,yr=fi),Rr};return Pn}const pi=sr;var yi=["onBeforeInput","onBlur","onClick","onContextMenu","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPaste","onSelect"],jr=["decorateNode","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark"],ui={EDITOR:"data-slate-editor",FRAGMENT:"data-slate-fragment",KEY:"data-key",LEAF:"data-slate-leaf",LENGTH:"data-slate-length",OBJECT:"data-slate-object",OFFSET_KEY:"data-offset-key",SPACER:"data-slate-spacer",STRING:"data-slate-string",TEXT:"data-slate-object",VOID:"data-slate-void",ZERO_WIDTH:"data-slate-zero-width"},bi={BLOCK:"["+ui.OBJECT+'="block"]',EDITOR:"["+ui.EDITOR+"]",INLINE:"["+ui.OBJECT+'="inline"]',KEY:"["+ui.KEY+"]",LEAF:"["+ui.LEAF+"]",OBJECT:"["+ui.OBJECT+"]",STRING:"["+ui.STRING+"]",TEXT:"["+ui.OBJECT+'="text"]',VOID:"["+ui.VOID+"]",ZERO_WIDTH:"["+ui.ZERO_WIDTH+"]"},ri=function(Xn,fr){if(!(Xn instanceof fr))throw new TypeError("Cannot call a class as a function")},hi=function(){function Xn(fr,mr){for(var yr=0;yr<mr.length;yr++){var Rr=mr[yr];Rr.enumerable=Rr.enumerable||!1,Rr.configurable=!0,"value"in Rr&&(Rr.writable=!0),Object.defineProperty(fr,Rr.key,Rr)}}return function(fr,mr,yr){return mr&&Xn(fr.prototype,mr),yr&&Xn(fr,yr),fr}}(),Si=function(Xn,fr,mr){return fr in Xn?Object.defineProperty(Xn,fr,{value:mr,enumerable:!0,configurable:!0,writable:!0}):Xn[fr]=mr,Xn},Kr=Object.assign||function(Xn){for(var fr=1;fr<arguments.length;fr++){var mr=arguments[fr];for(var yr in mr)Object.prototype.hasOwnProperty.call(mr,yr)&&(Xn[yr]=mr[yr])}return Xn},xi=function(Xn,fr){if(typeof fr!="function"&&fr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fr);Xn.prototype=Object.create(fr&&fr.prototype,{constructor:{value:Xn,enumerable:!1,writable:!0,configurable:!0}}),fr&&(Object.setPrototypeOf?Object.setPrototypeOf(Xn,fr):Xn.__proto__=fr)},Ai=function(Xn,fr){if(!Xn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fr&&(typeof fr=="object"||typeof fr=="function")?fr:Xn},Pi=function(){function Xn(fr,mr){var yr=[],Rr=!0,ai=!1,jt=void 0;try{for(var Pn=fr[Symbol.iterator](),nr;!(Rr=(nr=Pn.next()).done)&&(yr.push(nr.value),!(mr&&yr.length===mr));Rr=!0);}catch(Ir){ai=!0,jt=Ir}finally{try{!Rr&&Pn.return&&Pn.return()}finally{if(ai)throw jt}}return yr}return function(fr,mr){if(Array.isArray(fr))return fr;if(Symbol.iterator in Object(fr))return Xn(fr,mr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),io=function(Xn){if(Array.isArray(Xn)){for(var fr=0,mr=Array(Xn.length);fr<Xn.length;fr++)mr[fr]=Xn[fr];return mr}else return Array.from(Xn)},lo=/^([\w-]+)(?::(\d+))?$/;function Gr(Xn){var fr=lo.exec(Xn);if(!fr)throw new Error('Invalid offset key string "'+Xn+'".');var mr=Pi(fr,3),yr=mr[0],Rr=mr[1],ai=mr[2];return{key:Rr,index:parseInt(ai,10)}}function un(Xn){return Xn.key+":"+Xn.index}var qn={parse:Gr,stringify:un},kn=function(fr){var mr=fr.text,yr=mr===void 0?"":mr,Rr=fr.isTrailing,ai=Rr===void 0?!1:Rr;return i.createElement("span",Si({},ui.STRING,!0),yr,ai?` `:null)},St=function(fr){var mr,yr=fr.length,Rr=yr===void 0?0:yr,ai=fr.isLineBreak,jt=ai===void 0?!1:ai;return i.createElement("span",(mr={},Si(mr,ui.ZERO_WIDTH,jt?"n":"z"),Si(mr,ui.LENGTH,Rr),mr),"\uFEFF",jt?i.createElement("br",null):null)},ln=function(fr){var mr,yr=fr.marks,Rr=fr.annotations,ai=fr.decorations,jt=fr.node,Pn=fr.index,nr=fr.offset,Ir=fr.text,fi=fr.editor,Ti=fr.parent,Oe=fr.block,pn=fr.leaves,Qn=qn.stringify({key:jt.key,index:Pn}),Sr=void 0;if(fi.query("isVoid",Ti))Sr=i.createElement(St,{length:Ti.text.length});else if(Ir===""&&Ti.object==="block"&&Ti.text===""&&Ti.nodes.last()===jt)Sr=i.createElement(St,{isLineBreak:!0});else if(Ir==="")Sr=i.createElement(St,null);else{var hr=Oe.getLastText(),kr=Ir.charAt(Ir.length-1),Ve=jt===hr,Ot=Pn===pn.size-1;Ve&&Ot&&kr===` `?Sr=i.createElement(kn,{isTrailing:!0,text:Ir}):Sr=i.createElement(kn,{text:Ir})}var wn={editor:fi,marks:yr,annotations:Rr,decorations:ai,node:jt,offset:nr,text:Ir},Wt=!0,Yt=!1,zn=void 0;try{for(var Nr=yr[Symbol.iterator](),si;!(Wt=(si=Nr.next()).done);Wt=!0){var Ki=si.value,Bi=fi.run("renderMark",Kr({},wn,{mark:Ki,children:Sr,attributes:Si({},ui.OBJECT,"mark")}));Bi&&(Sr=Bi)}}catch(Wu){Yt=!0,zn=Wu}finally{try{!Wt&&Nr.return&&Nr.return()}finally{if(Yt)throw zn}}var Xi=!0,vo=!1,ea=void 0;try{for(var la=ai[Symbol.iterator](),ss;!(Xi=(ss=la.next()).done);Xi=!0){var Rs=ss.value,Bi=fi.run("renderDecoration",Kr({},wn,{decoration:Rs,children:Sr,attributes:Si({},ui.OBJECT,"decoration")}));Bi&&(Sr=Bi)}}catch(Wu){vo=!0,ea=Wu}finally{try{!Xi&&la.return&&la.return()}finally{if(vo)throw ea}}var Ds=!0,Is=!1,nu=void 0;try{for(var Ls=Rr[Symbol.iterator](),gu;!(Ds=(gu=Ls.next()).done);Ds=!0){var Us=gu.value,Bi=fi.run("renderAnnotation",Kr({},wn,{annotation:Us,children:Sr,attributes:Si({},ui.OBJECT,"annotation")}));Bi&&(Sr=Bi)}}catch(Wu){Is=!0,nu=Wu}finally{try{!Ds&&Ls.return&&Ls.return()}finally{if(Is)throw nu}}var Iu=(mr={},Si(mr,ui.LEAF,!0),Si(mr,ui.OFFSET_KEY,Qn),mr);return i.createElement("span",Iu,Sr)};ln.propTypes={annotations:h().list.isRequired,block:p.block.isRequired,decorations:h().list.isRequired,editor:s().object.isRequired,index:s().number.isRequired,leaves:s().object.isRequired,marks:p.marks.isRequired,node:p.node.isRequired,offset:s().number.isRequired,parent:p.node.isRequired,text:s().string.isRequired};var An=i.memo(ln,function(Xn,fr){return fr.block===Xn.block&&fr.index===Xn.index&&fr.marks===Xn.marks&&fr.parent===Xn.parent&&fr.text===Xn.text&&fr.annotations.equals(Xn.annotations)&&fr.decorations.equals(Xn.decorations)}),Cr=i.forwardRef(function(Xn,fr){var mr,yr=Xn.annotations,Rr=Xn.block,ai=Xn.decorations,jt=Xn.node,Pn=Xn.parent,nr=Xn.editor,Ir=Xn.style,fi=jt.key,Ti=jt.getLeaves(yr,ai),Oe=0;return i.createElement("span",Kr({ref:fr,style:Ir},(mr={},Si(mr,ui.OBJECT,jt.object),Si(mr,ui.KEY,fi),mr)),Ti.map(function(pn,Qn){var Sr=pn.text,hr=Oe;return Oe+=Sr.length,i.createElement(An,{key:jt.key+"-"+Qn,block:Rr,editor:nr,index:Qn,annotations:pn.annotations,decorations:pn.decorations,marks:pn.marks,node:jt,offset:hr,parent:Pn,leaves:Ti,text:Sr})}))});Cr.propTypes={annotations:h().map.isRequired,block:p.block,decorations:h().list.isRequired,editor:s().object.isRequired,node:p.node.isRequired,parent:p.node.isRequired,style:s().object};var _i=i.memo(Cr,function(Xn,fr){return fr.node===Xn.node&&fr.parent.object==="block"&&Xn.parent.nodes.last()===Xn.node&&fr.parent.nodes.last()!==fr.node&&fr.annotations.equals(Xn.annotations)&&fr.decorations.equals(Xn.decorations)}),Sn=b()("slate:void"),ir=function(Xn){xi(fr,Xn);function fr(){var mr,yr,Rr,ai;ri(this,fr);for(var jt=arguments.length,Pn=Array(jt),nr=0;nr<jt;nr++)Pn[nr]=arguments[nr];return ai=(yr=(Rr=Ai(this,(mr=fr.__proto__||Object.getPrototypeOf(fr)).call.apply(mr,[this].concat(Pn))),Rr),mt.call(Rr),yr),Ai(Rr,ai)}return hi(fr,[{key:"render",value:function(){var yr,Rr=this.props,ai=Rr.children,jt=Rr.node,Pn=Rr.readOnly,nr=jt.object==="block"?"div":"span",Ir={height:"0",color:"transparent",outline:"none",position:"absolute"},fi=Si({},ui.SPACER,!0),Ti=i.createElement(nr,Kr({style:Ir},fi),this.renderText()),Oe=i.createElement(nr,{contentEditable:Pn?null:!1},ai);this.debug("render",{props:Rr});var pn=(yr={},Si(yr,ui.VOID,!0),Si(yr,ui.KEY,jt.key),yr);return i.createElement(nr,Kr({contentEditable:Pn||jt.object==="block"?null:!1},pn),Pn?null:Ti,Oe)}}]),fr}(i.Component);ir.propTypes={block:p.block,children:s().any.isRequired,editor:s().object.isRequired,node:p.node.isRequired,parent:p.node.isRequired,readOnly:s().bool.isRequired};var mt=function(){var fr=this;this.debug=function(mr){for(var yr=arguments.length,Rr=Array(yr>1?yr-1:0),ai=1;ai<yr;ai++)Rr[ai-1]=arguments[ai];var jt=fr.props.node,Pn=jt.key,nr=jt.type,Ir=Pn+" ("+nr+")";Sn.apply(void 0,[mr,""+Ir].concat(Rr))},this.renderText=function(){var mr=fr.props,yr=mr.annotations,Rr=mr.block,ai=mr.decorations,jt=mr.node,Pn=mr.readOnly,nr=mr.editor,Ir=mr.textRef,fi=jt.getFirstText();return i.createElement(_i,{ref:Ir,annotations:yr,block:jt.object==="block"?jt:Rr,decorations:ai,editor:nr,key:fi.key,node:fi,parent:jt,readOnly:Pn})}},fn=b()("slate:node"),gt=function(Xn){xi(fr,Xn);function fr(){var mr,yr,Rr,ai;ri(this,fr);for(var jt=arguments.length,Pn=Array(jt),nr=0;nr<jt;nr++)Pn[nr]=arguments[nr];return ai=(yr=(Rr=Ai(this,(mr=fr.__proto__||Object.getPrototypeOf(fr)).call.apply(mr,[this].concat(Pn))),Rr),tn.call(Rr),yr),Ai(Rr,ai)}return hi(fr,[{key:"shouldComponentUpdate",value:function(yr){var Rr=this.props,ai=Rr.editor,jt=ai.run("shouldNodeComponentUpdate",Rr,yr),Pn=yr,nr=Rr;if(jt!=null){if(S(!1,'As of slate-react@0.22 the `shouldNodeComponentUpdate` middleware is deprecated. You can pass specific values down the tree using React\'s built-in "context" construct instead.'),jt)return!0;S(jt!==!1,"Returning false in `shouldNodeComponentUpdate` does not disable Slate's internal `shouldComponentUpdate` logic. If you want to prevent updates, use React's `shouldComponentUpdate` instead.")}return!!(Pn.readOnly!==nr.readOnly||Pn.node!==nr.node||!Pn.selection&&nr.selection||Pn.selection&&!nr.selection||Pn.selection&&nr.selection&&!Pn.selection.equals(nr.selection)||!Pn.annotations.equals(nr.annotations)||!Pn.decorations.equals(nr.decorations))}},{key:"render",value:function(){var yr=this,Rr;this.debug("render",this);var ai=this.props,jt=ai.annotations,Pn=ai.block,nr=ai.decorations,Ir=ai.editor,fi=ai.node,Ti=ai.parent,Oe=ai.readOnly,pn=ai.selection,Qn=fi.getDecorations(Ir),Sr=fi.nodes.toArray().map(function(wn,Wt){var Yt=wn.object==="text"?_i:fr,zn=pn&&Vn(fi,Wt,pn),Nr=Qn.concat(nr).map(function(Ki){return Vn(fi,Wt,Ki)}).filter(function(Ki){return Ki}),si=jt.map(function(Ki){return Vn(fi,Wt,Ki)}).filter(function(Ki){return Ki});return i.createElement(Yt,{block:fi.object==="block"?fi:Pn,editor:Ir,annotations:si,decorations:Nr,selection:zn,key:wn.key,node:wn,parent:fi,readOnly:Oe,ref:function(Bi){Bi?yr.tmp.nodeRefs[Wt]=Bi:delete yr.tmp.nodeRefs[Wt]}})}),hr=(Rr={},Si(Rr,ui.OBJECT,fi.object),Si(Rr,ui.KEY,fi.key),Si(Rr,"ref",this.ref),Rr);if(fi.isLeafBlock()){var kr=fi.getTextDirection();kr==="rtl"&&(hr.dir="rtl")}var Ve=void 0;fi.object==="block"?Ve="renderBlock":fi.object==="document"?Ve="renderDocument":fi.object==="inline"&&(Ve="renderInline");var Ot=Ir.run(Ve,{attributes:hr,children:Sr,editor:Ir,isFocused:!!pn&&pn.isFocused,isSelected:!!pn,node:fi,parent:Ti,readOnly:Oe});return Ir.isVoid(fi)?i.createElement(ir,Kr({},this.props,{textRef:function(Wt){Wt?yr.tmp.nodeRefs[0]=Wt:delete yr.tmp.nodeRefs[0]}}),Ot):Ot}}]),fr}(i.Component);gt.propTypes={annotations:h().map.isRequired,block:p.block,decorations:h().list.isRequired,editor:s().object.isRequired,node:p.node.isRequired,parent:p.node,readOnly:s().bool.isRequired,selection:p.selection};var tn=function(){var fr=this;this.tmp={nodeRefs:{}},this.ref=i.createRef(),this.debug=function(mr){for(var yr=arguments.length,Rr=Array(yr>1?yr-1:0),ai=1;ai<yr;ai++)Rr[ai-1]=arguments[ai];var jt=fr.props.node,Pn=jt.key,nr=jt.type;fn.apply(void 0,[mr,Pn+" ("+nr+")"].concat(Rr))}};function Vn(Xn,fr,mr){if(mr.isUnset)return null;var yr=Xn.nodes.get(fr),Rr=mr,ai=Rr.start,jt=Rr.end,Pn=ai,nr=Pn.path,Ir=jt,fi=Ir.path,Ti=nr.first(),Oe=fi.first();if(Ti===fr)ai=ai.setPath(nr.rest());else if(Ti<fr&&fr<=Oe)if(yr.object==="text")ai=ai.moveTo(m.PW.create([fr]),0).setKey(yr.key);else{var pn=yr.texts(),Qn=Pi(pn,1),Sr=Qn[0],hr=Pi(Sr,2),kr=hr[0],Ve=hr[1];ai=ai.moveTo(Ve,0).setKey(kr.key)}else ai=null;if(Oe===fr)jt=jt.setPath(fi.rest());else if(Ti<=fr&&fr<Oe)if(yr.object==="text"){var Ot=yr.text.length;jt=jt.moveTo(m.PW.create([fr]),Ot).setKey(yr.key)}else{var wn=yr.texts({direction:"backward"}),Wt=Pi(wn,1),Yt=Wt[0],zn=Pi(Yt,2),Nr=zn[0],si=zn[1];jt=jt.moveTo(si,Nr.text.length).setKey(Nr.key)}else jt=null;return!ai||!jt?null:(mr=mr.setAnchor(ai),mr=mr.setFocus(jt),mr)}var Ur=["auto","overlay","scroll"],$r=I&&!!window.navigator.userAgent.match(/os 11_/i);function Pr(Xn,fr){for(var mr=Xn.parentNode,yr=void 0;!yr&&mr.parentNode;){var Rr=fr.getComputedStyle(mr),ai=Rr.overflowY;if(Ur.includes(ai)){yr=mr;break}mr=mr.parentNode}return yr||fr.document.body}function zr(Xn){if(!$r&&Xn.anchorNode){var fr=R()(Xn.anchorNode),mr=Pr(Xn.anchorNode,fr),yr=mr===fr.document.body||mr===fr.document.documentElement,Rr=D()(Xn),ai=Xn.getRangeAt(0).cloneRange();ai.collapse(Rr);var jt=ai.getBoundingClientRect();it&&ai.collapsed&&jt.top===0&&jt.height===0&&(ai.startOffset===0?ai.setEnd(ai.endContainer,1):ai.setStart(ai.startContainer,ai.startOffset-1),jt=ai.getBoundingClientRect(),jt.top===0&&jt.height===0&&ai.getClientRects().length&&(jt=ai.getClientRects()[0]));var Pn=void 0,nr=void 0,Ir=void 0,fi=void 0,Ti=0,Oe=0,pn=0,Qn=0,Sr=0,hr=0,kr=0,Ve=0;if(yr){var Ot=fr.innerWidth,wn=fr.innerHeight,Wt=fr.pageYOffset,Yt=fr.pageXOffset;Pn=Ot,nr=wn,Ir=Wt,fi=Yt}else{var zn=mr.offsetWidth,Nr=mr.offsetHeight,si=mr.scrollTop,Ki=mr.scrollLeft,Bi=fr.getComputedStyle(mr),Xi=Bi.borderTopWidth,vo=Bi.borderBottomWidth,ea=Bi.borderLeftWidth,la=Bi.borderRightWidth,ss=Bi.paddingTop,Rs=Bi.paddingBottom,Ds=Bi.paddingLeft,Is=Bi.paddingRight,nu=mr.getBoundingClientRect();Pn=zn,nr=Nr,Ti=nu.top+parseInt(Xi,10),Oe=nu.left+parseInt(ea,10),pn=parseInt(Xi,10)+parseInt(vo,10),Qn=parseInt(ea,10)+parseInt(la,10),Sr=parseInt(ss,10),hr=parseInt(Rs,10),kr=parseInt(Ds,10),Ve=parseInt(Is,10),Ir=si,fi=Ki}var Ls=jt.top+Ir-Ti,gu=jt.left+fi-Oe,Us=fi,Iu=Ir;gu<fi?Us=gu-kr:gu+jt.width+Qn>fi+Pn&&(Us=gu+Qn+Ve-Pn),Ls<Ir?Iu=Ls-Sr:Ls+jt.height+pn>Ir+nr&&(Iu=Ls+pn+hr+jt.height-nr),yr?fr.scrollTo(Us,Iu):(mr.scrollTop=Iu,mr.scrollLeft=Us)}}function gi(Xn){if(At){var fr=window.document.body.createTextRange();fr.collapse(),fr.select()}else Xn.removeAllRanges()}var $i=/Permission denied to access property "nodeType"/,eo=b()("slate:content");eo.update=b()("slate:update");var ki=function(Xn){xi(fr,Xn);function fr(){var mr,yr,Rr,ai;ri(this,fr);for(var jt=arguments.length,Pn=Array(jt),nr=0;nr<jt;nr++)Pn[nr]=arguments[nr];return ai=(yr=(Rr=Ai(this,(mr=fr.__proto__||Object.getPrototypeOf(fr)).call.apply(mr,[this].concat(Pn))),Rr),Rr.tmp={isUpdatingSelection:!1,nodeRef:i.createRef(),nodeRefs:{},contentKey:0,nativeSelection:{}},Rr.ref=i.createRef(),Rr.setRef=function(Ir){Rr.ref.current=Ir,Rr.props.editor.el=Ir},Rr.handlers=yi.reduce(function(Ir,fi){return Ir[fi]=function(Ti){return Rr.onEvent(fi,Ti)},Ir},{}),Rr.updateSelection=function(){var Ir=Rr.props.editor,fi=Ir.value,Ti=fi.selection,Oe=Ti.isBackward,pn=R()(Rr.ref.current),Qn=pn.getSelection(),Sr=pn.document.activeElement;if(eo.update.enabled&&eo.update("updateSelection",{selection:Ti.toJSON()}),!!Qn){var hr=Qn.rangeCount,kr=Qn.anchorNode,Ve=!1;Ti.isBlurred&&Sr===Rr.ref.current&&(Rr.ref.current.blur(),Ve=!0);var Ot=["anchorNode","anchorOffset","focusNode","focusOffset","isCollapsed","rangeCount","type"],wn=!0,Wt=!0,Yt=!1,zn=void 0;try{for(var Nr=Ot[Symbol.iterator](),si;!(Wt=(si=Nr.next()).done);Wt=!0){var Ki=si.value;Rr.tmp.nativeSelection[Ki]!==Qn[Ki]&&(wn=!1)}}catch(Rs){Yt=!0,zn=Rs}finally{try{!Wt&&Nr.return&&Nr.return()}finally{if(Yt)throw zn}}if(Ti.isUnset&&hr&&Rr.isInEditor(kr)&&wn&&(gi(Qn),Ve=!0),Ti.isFocused&&Sr!==Rr.ref.current&&(Rr.ref.current.focus({preventScroll:!0}),Ve=!0),Ti.isFocused&&Ti.isSet){var Bi=!!Qn.rangeCount&&Qn.getRangeAt(0),Xi=Ir.findDOMRange(Ti);if(!Xi){S(!1,"Unable to find a native DOM range from the current selection.");return}var vo=Xi.startContainer,ea=Xi.startOffset,la=Xi.endContainer,ss=Xi.endOffset;if(Bi&&(vo===Bi.startContainer&&ea===Bi.startOffset&&la===Bi.endContainer&&ss===Bi.endOffset||vo===Bi.endContainer&&ea===Bi.endOffset&&la===Bi.startContainer&&ss===Bi.startOffset))return;Ve=!0,Rr.tmp.isUpdatingSelection=!0,gi(Qn),Qn.setBaseAndExtent?Oe?Qn.setBaseAndExtent(Xi.endContainer,Xi.endOffset,Xi.startContainer,Xi.startOffset):Qn.setBaseAndExtent(Xi.startContainer,Xi.startOffset,Xi.endContainer,Xi.endOffset):Qn.addRange(Xi),Ir.userActionPerformed()===!0&&zr(Qn),setTimeout(function(){Ke&&Rr.ref.current&&Rr.ref.current.focus(),Rr.tmp.isUpdatingSelection=!1,eo.update("updateSelection:setTimeout",{anchorOffset:pn.getSelection().anchorOffset})})}Ve&&(eo.enabled||eo.update.enabled)&&(eo("updateSelection",{selection:Ti,native:Qn,activeElement:Sr}),eo.update("updateSelection:applied",{selection:Ti.toJSON(),native:{anchorOffset:Qn.anchorOffset,focusOffset:Qn.focusOffset}}))}},Rr.isInEditor=function(Ir){var fi=void 0;try{if(Ir.nodeType===8)return!1;fi=Ir.nodeType===3?Ir.parentNode:Ir}catch(Ti){if(Ke&&$i.test(Ti.message))return!1;throw Ti}return fi.isContentEditable&&(fi===Rr.ref.current||fi.closest(bi.EDITOR)===Rr.ref.current)},Rr.onNativeSelectionChange=qe()(function(Ir){if(!Rr.props.readOnly){var fi=R()(Ir.target),Ti=fi.document.activeElement,Oe=fi.getSelection();eo.update("onNativeSelectionChange",{anchorOffset:Oe.anchorOffset}),Ti===Rr.ref.current&&(Rr.tmp.nativeSelection={anchorNode:Oe.anchorNode,anchorOffset:Oe.anchorOffset,focusNode:Oe.focusNode,focusOffset:Oe.focusOffset,isCollapsed:Oe.isCollapsed,rangeCount:Oe.rangeCount,type:Oe.type},Rr.props.onEvent("onSelect",Ir))}},100),yr),Ai(Rr,ai)}return hi(fr,[{key:"componentDidCatch",value:function(yr,Rr){eo("componentDidCatch",{error:yr,info:Rr}),this.setState({})}},{key:"componentDidMount",value:function(){var yr=R()(this.ref.current);yr.document.addEventListener("selectionchange",this.onNativeSelectionChange),Fe&&this.ref.current.addEventListener("beforeinput",this.handlers.onBeforeInput),this.updateSelection(),this.props.onEvent("onComponentDidMount")}},{key:"componentWillUnmount",value:function(){var yr=R()(this.ref.current);yr&&yr.document.removeEventListener("selectionchange",this.onNativeSelectionChange),Fe&&this.ref.current.removeEventListener("beforeinput",this.handlers.onBeforeInput),this.props.onEvent("onComponentWillUnmount")}},{key:"componentDidUpdate",value:function(){eo.update("componentDidUpdate"),this.updateSelection(),this.props.editor.clearUserActionPerformed(),this.props.onEvent("onComponentDidUpdate")}},{key:"onEvent",value:function(yr,Rr){eo("onEvent",yr);var ai=Rr.nativeEvent||Rr,jt=Rr.type==="keydown"&&(Bt.isUndo(ai)||Bt.isRedo(ai));if(!((this.tmp.isUpdatingSelection||jt)&&(yr==="onSelect"||yr==="onBlur"||yr==="onFocus"))){if(!ee&&yr==="onSelect"){var Pn=this.props.editor,nr=Pn.value,Ir=nr.selection,fi=R()(Rr.target),Ti=fi.getSelection(),Oe=Pn.findRange(Ti);if(Oe&&Oe.equals(Ir.toRange())){this.updateSelection();return}}if(yr==="onDragEnd"||yr==="onDragEnter"||yr==="onDragExit"||yr==="onDragLeave"||yr==="onDragOver"||yr==="onDragStart"||yr==="onDrop"){var pn=Rr.target.closest(bi.EDITOR);if(pn!==this.ref.current)return}(yr==="onBeforeInput"||yr==="onBlur"||yr==="onCompositionEnd"||yr==="onCompositionStart"||yr==="onCopy"||yr==="onCut"||yr==="onFocus"||yr==="onInput"||yr==="onKeyDown"||yr==="onKeyUp"||yr==="onPaste"||yr==="onSelect")&&!this.isInEditor(Rr.target)||this.props.onEvent(yr,Rr)}}},{key:"render",value:function(){var yr,Rr=this.props,ai=this.handlers,jt=Rr.id,Pn=Rr.className,nr=Rr.readOnly,Ir=Rr.editor,fi=Rr.tabIndex,Ti=Rr.role,Oe=Rr.tagName,pn=Rr.spellCheck,Qn=Ir.value,Sr=Oe,hr=Qn.document,kr=Qn.selection,Ve=Kr({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},nr?{}:{WebkitUserModify:"read-write-plaintext-only"},Rr.style);eo("render",{props:Rr}),eo.update("render",this.tmp.contentKey,hr.text),this.props.onEvent("onRender");var Ot=(yr={},Si(yr,ui.EDITOR,!0),Si(yr,ui.KEY,hr.key),yr),wn=_t()(this.props,Object.keys(fr.propTypes));return i.createElement(Sr,Kr({},wn,{key:this.tmp.contentKey},ai,Ot,{ref:this.setRef,contentEditable:nr?null:!0,suppressContentEditableWarning:!0,id:jt,className:Pn,autoCorrect:Rr.autoCorrect?"on":"off",spellCheck:pn,style:Ve,role:nr?null:Ti||"textbox",tabIndex:fi,"data-gramm":wn["data-gramm"]?void 0:!1}),i.createElement(gt,{annotations:Qn.annotations,block:null,decorations:(0,ct.List)(),editor:Ir,node:hr,parent:null,readOnly:nr,selection:kr,ref:this.tmp.nodeRef}))}}]),fr}(i.Component);ki.propTypes={autoCorrect:s().bool.isRequired,className:s().string,contentKey:s().number,editor:s().object.isRequired,id:s().string,onEvent:s().func.isRequired,readOnly:s().bool.isRequired,role:s().string,spellCheck:s().bool.isRequired,style:s().object,tabIndex:s().number,tagName:s().string},ki.defaultProps={style:{},tagName:"div"};var so=[].concat(io(yi),["commands","decorateNode","queries","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark","schema"]);function Ho(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fr=so.reduce(function(mr,yr){return yr in Xn&&(mr[yr]=Xn[yr]),mr},{});return fr}function ra(){return{decorateNode:function(){return[]},renderAnnotation:function(fr){var mr=fr.attributes,yr=fr.children;return i.createElement("span",mr,yr)},renderBlock:function(fr){var mr=fr.attributes,yr=fr.children;return i.createElement("div",Kr({},mr,{style:{position:"relative"}}),yr)},renderDecoration:function(fr){var mr=fr.attributes,yr=fr.children;return i.createElement("span",mr,yr)},renderDocument:function(fr){var mr=fr.children;return mr},renderEditor:function(fr){var mr=fr.children;return mr},renderInline:function(fr){var mr=fr.attributes,yr=fr.children;return i.createElement("span",Kr({},mr,{style:{position:"relative"}}),yr)},renderMark:function(fr){var mr=fr.attributes,yr=fr.children;return i.createElement("span",mr,yr)}}}function So(){function Xn(mr,yr){var Rr=mr.value,ai=Rr.document,jt=Rr.selection,Pn=ai.getPath(yr.key),nr=mr.findDOMNode(Pn),Ir=ai.getClosestBlock(Pn),fi=yr.text,Ti=nr.textContent,Oe=Ir.nodes.last()===yr,pn=Ti.charAt(Ti.length-1);if(Oe&&pn===` `&&(Ti=Ti.slice(0,-1)),fi!==Ti){var Qn=jt.moveAnchorTo(Pn,0).moveFocusTo(Pn,fi.length);Qn=ai.resolveRange(Qn),mr.insertTextAtRange(Qn,Ti,yr.marks)}}function fr(mr,yr){var Rr=yr.parentElement.closest("[data-key]"),ai=mr.findNode(Rr);mr.reconcileNode(ai)}return{commands:{reconcileNode:Xn,reconcileDOMNode:fr}}}function gr(){function Xn(Ir,fi){fi=m.PW.create(fi);var Ti=Ir.tmp.contentRef.current;if(!Ti)return null;if(!fi.size)return Ti.ref.current||null;var Oe=function Sr(hr,kr){if(!hr)return null;if(!kr.size)return hr.ref?hr.ref.current||null:hr||null;var Ve=kr.first(),Ot=kr.rest(),wn=hr.tmp.nodeRefs[Ve];return Sr(wn,Ot)},pn=Ti.tmp.nodeRef.current,Qn=Oe(pn,fi);return Qn}function fr(Ir,fi){var Ti=Ir.findDOMNode(fi.path),Oe=0;if(!Ti)return null;var pn=Array.from(Ti.querySelectorAll(bi.STRING+", "+bi.ZERO_WIDTH)),Qn=!0,Sr=!1,hr=void 0;try{for(var kr=pn[Symbol.iterator](),Ve;!(Qn=(Ve=kr.next()).done);Qn=!0){var Ot=Ve.value,wn=Ot.childNodes[0],Wt=wn.textContent.length,Yt=Wt;Ot.hasAttribute(ui.LENGTH)&&(Yt=parseInt(Ot.getAttribute(ui.LENGTH),10));var zn=Oe+Yt;if(fi.offset<=zn){var Nr=Math.min(Wt,Math.max(0,fi.offset-Oe));return{node:wn,offset:Nr}}Oe=zn}}catch(si){Sr=!0,hr=si}finally{try{!Qn&&kr.return&&kr.return()}finally{if(Sr)throw hr}}return null}function mr(Ir,fi){var Ti=fi.anchor,Oe=fi.focus,pn=fi.isBackward,Qn=fi.isCollapsed,Sr=Ir.findDOMPoint(Ti),hr=Qn?Sr:Ir.findDOMPoint(Oe);if(!Sr||!hr)return null;var kr=R()(Sr.node),Ve=kr.document.createRange(),Ot=pn?hr:Sr,wn=pn?Sr:hr;return Ve.setStart(Ot.node,Ot.offset),Ve.setEnd(wn.node,wn.offset),Ve}function yr(Ir,fi){var Ti=Ir.findPath(fi);if(!Ti)return null;var Oe=Ir.value,pn=Oe.document,Qn=pn.getNode(Ti);return Qn}function Rr(Ir,fi){fi.nativeEvent&&(fi=fi.nativeEvent);var Ti=fi,Oe=Ti.clientX,pn=Ti.clientY,Qn=Ti.target;if(Oe==null||pn==null)return null;var Sr=Ir.value,hr=Sr.document,kr=Ir.findPath(fi.target);if(!kr)return null;var Ve=hr.getNode(kr);if(Ir.isVoid(Ve)){var Ot=Qn.getBoundingClientRect(),wn=Ve.object==="inline"?Oe-Ot.left<Ot.left+Ot.width-Oe:pn-Ot.top<Ot.top+Ot.height-pn,Wt=hr.createRange(),Yt=wn?"moveToEndOfNode":"moveToStartOfNode",zn=hr[wn?"getPreviousText":"getNextText"](kr);return zn?Wt[Yt](zn):null}var Nr=R()(Qn),si=void 0;if(Nr.document.caretRangeFromPoint)si=Nr.document.caretRangeFromPoint(Oe,pn);else if(Nr.document.caretPositionFromPoint){var Ki=Nr.document.caretPositionFromPoint(Oe,pn);si=Nr.document.createRange(),si.setStart(Ki.offsetNode,Ki.offset),si.setEnd(Ki.offsetNode,Ki.offset)}else if(Nr.document.body.createTextRange){si=Nr.document.body.createTextRange();try{si.moveToPoint(Oe,pn)}catch{return null}}var Bi=Ir.findRange(si);return Bi}function ai(Ir,fi){var Ti=Ir.tmp.contentRef.current,Oe=fi;if(Oe.hasAttribute(ui.KEY)||(Oe=Oe.closest(bi.KEY)),!Oe||!Oe.getAttribute(ui.KEY))return null;if(Oe===Ti.ref.current)return m.PW.create([]);var pn=function hr(kr,Ve){if(Oe===kr)return Ve;if(!kr.ref)return null;if(Oe===kr.ref.current)return Ve;if(!kr.tmp)return null;var Ot=kr.tmp.nodeRefs,wn=Object.keys(Ot),Wt=!0,Yt=!1,zn=void 0;try{for(var Nr=wn[Symbol.iterator](),si;!(Wt=(si=Nr.next()).done);Wt=!0){var Ki=si.value,Bi=Ot[Ki],Xi=parseInt(Ki,10),vo=hr(Bi,[].concat(io(Ve),[Xi]));if(vo)return vo}}catch(ea){Yt=!0,zn=ea}finally{try{!Wt&&Nr.return&&Nr.return()}finally{if(Yt)throw zn}}return null},Qn=Ti.tmp.nodeRef.current,Sr=pn(Qn,[]);return Sr?m.PW.create(Sr):null}function jt(Ir,fi,Ti){var Oe=di(fi,Ti),pn=Oe.node,Qn=Oe.offset,Sr=R()(fi),hr=pn.parentNode,kr=hr.closest(bi.LEAF),Ve=void 0,Ot=void 0,wn=void 0;if(kr){Ve=kr.closest(bi.TEXT);var Wt=Sr.document.createRange();Wt.setStart(Ve,0),Wt.setEnd(pn,Qn);var Yt=Wt.cloneContents(),zn=Yt.querySelectorAll(bi.ZERO_WIDTH);Array.from(zn).forEach(function(vo){vo.parentNode.removeChild(vo)}),Ot=Yt.textContent.length,wn=Ve}else{var Nr=hr.closest(bi.VOID);if(!Nr||(kr=Nr.querySelector(bi.LEAF),!kr))return null;Ve=kr.closest(bi.TEXT),wn=kr,Ot=wn.textContent.length}Ot===wn.textContent.length&&hr.hasAttribute(ui.ZERO_WIDTH)&&Ot--;var si=Ir.findPath(Ve);if(!si)return null;var Ki=Ir.value,Bi=Ki.document,Xi=Bi.createPoint({path:si,offset:Ot});return Xi}function Pn(Ir,fi){var Ti=fi.anchorNode||fi.startContainer;if(!Ti)return null;var Oe=R()(Ti);(fi instanceof Oe.Range||Oe.StaticRange&&fi instanceof Oe.StaticRange)&&(fi={anchorNode:fi.startContainer,anchorOffset:fi.startOffset,focusNode:fi.endContainer,focusOffset:fi.endOffset});var pn=fi,Qn=pn.anchorNode,Sr=pn.anchorOffset,hr=pn.focusNode,kr=pn.focusOffset,Ve=pn.isCollapsed,Ot=Ir.value,wn=Ir.findPoint(Qn,Sr),Wt=Ve?wn:Ir.findPoint(hr,kr);if(!wn||!Wt)return null;var Yt=Ot.document,zn=Yt.createRange({anchor:wn,focus:Wt});return zn}function nr(Ir,fi){var Ti=Ir.value,Oe=Ti.document;if(!fi.rangeCount)return null;var pn=Ir.findRange(fi);if(!pn)return null;var Qn=pn,Sr=Qn.anchor,hr=Qn.focus,kr=Oe.getNode(Sr.path),Ve=Oe.getNode(hr.path),Ot=Oe.getClosestInline(Sr.path),wn=Oe.getClosestInline(hr.path),Wt=Oe.getClosestBlock(hr.path),Yt=Oe.getClosestBlock(Sr.path);if(Yt&&!Ir.isVoid(Yt)&&Sr.offset===0&&Wt&&Ir.isVoid(Wt)&&hr.offset!==0&&(pn=pn.setFocus(hr.setOffset(0))),Ot&&!Ir.isVoid(Ot)&&Sr.offset===kr.text.length){var zn=Oe.getClosestBlock(Sr.path),Nr=Oe.getDepth(zn.key),si=m.PW.drop(Sr.path,Nr),Ki=zn.texts({path:si}),Bi=Pi(Ki,1),Xi=Bi[0];if(Xi){var vo=Pi(Xi,2),ea=vo[1],la=Sr.path.slice(0,Nr).concat(ea);pn=pn.moveAnchorTo(la,0)}}if(wn&&!Ir.isVoid(wn)&&hr.offset===Ve.text.length){var ss=Oe.getClosestBlock(hr.path),Rs=Oe.getDepth(ss.key),Ds=m.PW.drop(hr.path,Rs),Is=ss.texts({path:Ds}),nu=Pi(Is,1),Ls=nu[0];if(Ls){var gu=Pi(Ls,2),Us=gu[1],Iu=hr.path.slice(0,Rs).concat(Us);pn=pn.moveFocusTo(Iu,0)}}var Wu=Oe.createSelection(pn);return Wu=Wu.setIsFocused(!0),Wu=Wu.set("marks",Ti.selection.marks),Wu}return{queries:{findDOMNode:Xn,findDOMPoint:fr,findDOMRange:mr,findEventRange:Rr,findNode:yr,findPath:ai,findPoint:jt,findRange:Pn,findSelection:nr}}}function di(Xn,fr){if(Xn.nodeType===1&&Xn.childNodes.length){var mr=fr===Xn.childNodes.length,yr=mr?"backward":"forward",Rr=mr?fr-1:fr;for(Xn=Vi(Xn,Rr,yr);Xn.nodeType===1&&Xn.childNodes.length;){var ai=mr?Xn.childNodes.length-1:0;Xn=Vi(Xn,ai,yr)}fr=mr?Xn.textContent.length:0}return{node:Xn,offset:fr}}function Vi(Xn,fr,mr){for(var yr=Xn.childNodes,Rr=yr[fr],ai=fr,jt=!1,Pn=!1;(Rr.nodeType===8||Rr.nodeType===1&&Rr.childNodes.length===0||Rr.nodeType===1&&Rr.getAttribute("contenteditable")==="false")&&!(jt&&Pn);){if(ai>=yr.length){jt=!0,ai=fr-1,mr="backward";continue}if(ai<0){Pn=!0,ai=fr+1,mr="forward";continue}Rr=yr[ai],mr==="forward"&&ai++,mr==="backward"&&ai--}return Rr||null}function Ro(Xn,fr){for(var mr=Math.min(Xn.length,fr.length),yr=0;yr<mr;yr++)if(Xn.charAt(yr)!==fr.charAt(yr))return yr;return Xn.length!==fr.length?mr:null}function na(Xn,fr,mr){for(var yr=Xn.length,Rr=fr.length,ai=Math.min(yr,Rr,mr),jt=0;jt<ai;jt++){var Pn=Xn.charAt(yr-jt-1),nr=fr.charAt(Rr-jt-1);if(Pn!==nr)return jt}return Xn.length!==fr.length?ai:null}function ta(Xn,fr){if(Xn===fr)return null;var mr=Ro(Xn,fr),yr=Math.min(Xn.length-mr,fr.length-mr),Rr=na(Xn,fr,yr);return{start:mr,end:Rr,total:mr+Rr}}function aa(Xn,fr){return Xn.slice(fr.start,Xn.length-fr.end)}function vi(Xn,fr){var mr=ta(Xn,fr);if(mr==null)return null;var yr=aa(fr,mr),Rr=aa(Xn,mr);return{start:mr.start,end:Xn.length-mr.end,cursor:mr.start+yr.length,insertText:yr,removeText:Rr}}var to=b()("slate:composition-manager"),$o=String.fromCharCode(65279),ja=nn.unstable_flushControlled;function hs(Xn,fr){ja(function(){fr(),Xn.controller.flush()})}function ro(Xn){for(var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yr=fr,Rr=Xn,ai=0;ai!==-1&&(ai=Rr.indexOf($o,ai),ai!==-1);)yr>ai&&yr--,Rr=""+Rr.slice(0,ai)+Rr.slice(ai+1);var jt=Rr.charAt(Rr.length-1);mr&&jt===` `&&(Rr=Rr.slice(0,-1));var Pn=Rr.length;return yr>Pn&&(yr=Pn),{text:Rr,offset:yr}}function as(Xn){var fr=new window.MutationObserver(hr),mr=null,yr={rootEl:null,diff:null,range:null,domNode:null};function Rr(){to("connect",{rootEl:zn});var zn=Xn.findDOMNode([]);yr.rootEl!==zn&&(to("connect:run"),mr=R()(zn),fr.observe(zn,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}))}function ai(){to("disconnect"),fr.disconnect(),yr.rootEl=null}function jt(){to("clearDIff"),yr.diff=null}function Pn(){to("clearAction"),yr.diff=null,yr.domNode=null}function nr(){to("applyDiff");var zn=yr.diff;if(zn!=null){to("applyDiff:run");var Nr=Xn.value.document,si=Xn.value.selection.moveAnchorTo(zn.path,zn.start).moveFocusTo(zn.path,zn.end);si=Nr.resolveRange(si),Xn.insertTextAtRange(si,zn.insertText)}}function Ir(){to("splitBlock"),hs(Xn,function(){nr(),yr.range?Xn.select(yr.range):to("splitBlock:NO-SELECTION"),Xn.splitBlock().focus().restoreDOM(),Pn()})}function fi(){to("mergeBlock"),mr.requestAnimationFrame(function(){hs(Xn,function(){nr(),Xn.select(yr.range).deleteBackward().focus().restoreDOM(),Pn()})})}var Ti=null,Oe=[],pn=null,Qn=!1;function Sr(){Ti&&(window.cancelAnimationFrame(Ti),Ti=null),Qn=!0,pn&&window.cancelAnimationFrame(pn),pn=window.requestAnimationFrame(function(){Oe.length>0&&kr(Oe),pn=null,Oe=[],Qn=!1})}function hr(zn){var Nr;to("flush"),(Nr=Oe).push.apply(Nr,io(zn)),Sr()}function kr(zn){if(to("flushAction",zn.length,zn),yr.range&&!yr.range.isCollapsed){hs(Xn,function(){Xn.select(yr.range).deleteBackward().focus().restoreDOM()});return}if(zn.length>1){var Nr=zn.find(function(Ki){if(Ki.type!=="childList"||Ki.addedNodes.length===0)return!1;var Bi=Ki.addedNodes[0];if(Bi.nodeType===window.Node.TEXT_NODE&&Bi.textContent===` `)return!0;if(Bi.nodeType!==window.Node.ELEMENT_NODE)return!1;var Xi=Bi.dataset,vo=Xi.key;if(vo==null)return!1;var ea=Xn.value.document.getClosestBlock(vo);return!!ea});if(Nr){Ir();return}}var si=zn[0];si.type==="characterData"?Ve(si.target.parentNode):si.type==="childList"&&(si.removedNodes.length>0?zn.length===1?Ot(si.removedNodes[0]):fi():si.addedNodes.length>0&&Ir())}function Ve(zn){to("resolveDOMNode");var Nr=Xn.value,si=Nr.document,Ki=zn.closest("[data-key]"),Bi=Ki.dataset.key,Xi=si.getPath(Bi),vo=si.getClosestBlock(Bi),ea=si.getDescendant(Bi),la=ea.text,ss=vo.nodes.last()===ea,Rs=ro(zn.textContent,0,ss),Ds=Rs.text;if(Ds===la){yr.diff=null;return}var Is=vi(la,Ds);yr.diff={path:Xi,start:Is.start,end:Is.end,insertText:Is.insertText},to("resolveDOMNode:diff",yr.diff)}function Ot(zn){if(to("removeNode"),zn.nodeType===window.Node.ELEMENT_NODE){var Nr=Xn.value,si=Nr.document,Ki=Nr.selection,Bi=Xn.findNode(zn),Xi=si.resolveRange(Ki.moveToRangeOfNode(Bi));hs(Xn,function(){Xn.select(Xi).delete().restoreDOM()})}}function wn(){to("onCompositionStart")}function Wt(){to("onCompositionEnd"),window.setTimeout(function(){yr.diff&&(to("onCompositionEnd:applyDiff"),hs(Xn,function(){nr();var zn=mr.getSelection().getRangeAt(0),Nr=zn.startContainer.textContent,si=zn.startOffset,Ki=ro(Nr,si),Bi=Xn.findRange({anchorNode:zn.startContainer,anchorOffset:0,focusNode:zn.startContainer,focusOffset:0,isCollapsed:!0}).moveTo(Ki.offset);Xn.select(Bi).focus().restoreDOM()})),Pn()},20)}function Yt(zn){to("onSelect:try"),zn=zn.nativeEvent?zn.nativeEvent:zn,window.cancelAnimationFrame(Ti),Ti=null,!Qn&&(Ti=window.requestAnimationFrame(function(){to("onSelect:save-selection");var Nr=R()(zn.target).getSelection(),si=Xn.findRange(Nr),Ki=ro(Nr.anchorNode.textContent,Nr.anchorOffset),Bi=ro(Nr.focusNode.textContent,Nr.focusOffset);si.anchor.offset!==Ki.offset&&(si=si.set("anchor",si.anchor.set("offset",Ki.offset))),si.focus.offset!==Bi.offset&&(si=si.set("focus",si.focus.set("offset",Bi.offset))),to("onSelect:save-data",{domSelection:rn(Nr),range:si.toJS()}),Nr.isCollapsed&&yr.node!==Nr.anchorNode&&yr.diff!=null&&(to("onSelect:applyDiff",yr.diff),nr(),Xn.select(si),Pn()),yr.range=si,yr.node=Nr.anchorNode}))}return{clearDiff:jt,connect:Rr,disconnect:ai,onKeyDown:Sr,onCompositionStart:wn,onCompositionEnd:Wt,onSelect:Yt}}function rn(Xn){return{anchorNode:Xn.anchorNode,anchorOffset:Xn.anchorOffset,focusNode:Xn.focusNode,focusOffset:Xn.focusOffset}}function Dr(Xn){var fr=Xn.getSelection(),mr=fr.anchorNode;if(mr!=null){var yr=mr.parentElement.dataset,Rr=yr?yr.slateZeroWidth==="n":!1;if(Rr&&mr.textContent.length===1&&fr.anchorOffset!==0){var ai=Xn.document.createRange();ai.setStart(mr,0),ai.setEnd(mr,0),fr.removeAllRanges(),fr.addRange(ai)}}}function Lr(Xn){var fr=Xn.editor,mr=new as(fr);function yr(){mr.onCompositionStart()}function Rr(){mr.onCompositionEnd()}function ai(fi){var Ti=R()(fi.target);Dr(Ti),mr.onSelect(fi)}function jt(){mr.connect()}function Pn(){mr.connect()}function nr(){mr.disconnect()}function Ir(){mr.disconnect(),mr.clearDiff()}return{onComponentDidMount:jt,onComponentDidUpdate:Pn,onComponentWillUnmount:nr,onCompositionEnd:Rr,onCompositionStart:yr,onRender:Ir,onSelect:ai}}function li(){var Xn={},fr=!0,mr=!1,yr=void 0;try{for(var Rr=yi[Symbol.iterator](),ai;!(fr=(ai=Rr.next()).done);fr=!0){var jt=ai.value;Xn[jt]=function(Pn,nr,Ir){}}}catch(Pn){mr=!0,yr=Pn}finally{try{!fr&&Rr.return&&Rr.return()}finally{if(mr)throw yr}}return Xn}var Zi={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"},Di=Zi.FRAGMENT,wo=Zi.HTML,Go=Zi.TEXT;function Ko(Xn,fr){var mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};(0,gn.A)(!m.WT.isValue(fr),"As of Slate 0.42.0, the `cloneFragment` utility takes an `editor` instead of a `value`.");var yr=R()(Xn.target),Rr=yr.getSelection(),ai=fr.value,jt=ai.document,Pn=ai.fragment,nr=ai.selection,Ir=nr.start,fi=nr.end,Ti=jt.getClosestVoid(Ir.path,fr),Oe=jt.getClosestVoid(fi.path,fr);if(!(Rr.isCollapsed&&!Ti)){var pn=xt.serializeNode(Pn),Qn=Rr.getRangeAt(0),Sr=Qn.cloneContents(),hr=Sr.childNodes[0];if(Sr.childNodes.forEach(function(si){si.textContent&&si.textContent.trim()!==""&&(hr=si)}),Oe){var kr=Qn.cloneRange(),Ve=jt.getPath(Oe.key);if(Ve){var Ot=fr.findDOMNode(Ve);kr.setEndAfter(Ot),Sr=kr.cloneContents()}}if(Ti&&(hr=Sr.childNodes[0].childNodes[1].firstChild),[].slice.call(Sr.querySelectorAll(bi.ZERO_WIDTH)).forEach(function(si){var Ki=si.getAttribute(ui.ZERO_WIDTH)==="n";si.textContent=Ki?` `:""}),hr.nodeType===3){var wn=yr.document.createElement("span");wn.style.whiteSpace="pre",wn.appendChild(hr),Sr.appendChild(wn),hr=wn}hr.setAttribute(ui.FRAGMENT,pn);var Wt=m.WT.create({document:Pn}),Yt=Xe.A.serialize(Wt),zn=yr.document.createElement("div");if(zn.appendChild(Sr),Xn.clipboardData&&Xn.clipboardData.setData&&!At){Xn.preventDefault(),Xn.clipboardData.setData(Go,Yt),Xn.clipboardData.setData(Di,pn),Xn.clipboardData.setData(wo,zn.innerHTML),mr();return}var Nr=Xn.target.closest(bi.EDITOR);zn.setAttribute("contenteditable",!0),zn.style.position="absolute",zn.style.left="-9999px",Nr.appendChild(zn),Rr.selectAllChildren(zn),yr.requestAnimationFrame(function(){Nr.removeChild(zn),gi(Rr),Rr.addRange(Qn),mr()})}}var Ie=Zi.FRAGMENT,yt=Zi.HTML,on=Zi.NODE,_n=Zi.RICH,er=Zi.TEXT,or=/ data-slate-fragment="([^\s"]+)"/;function Er(Xn){!At&&Xn.nativeEvent&&(Xn=Xn.nativeEvent);var fr=Xn.dataTransfer||Xn.clipboardData,mr=Nn(fr,Ie),yr=Nn(fr,on),Rr=Nn(fr,yt),ai=Nn(fr,_n),jt=Nn(fr,er),Pn=void 0;if(!mr&&Rr&&~Rr.indexOf(" "+ui.FRAGMENT+'="')){var nr=or.exec(Rr),Ir=Pi(nr,2),fi=Ir[0],Ti=Ir[1];Ti&&(mr=Ti)}if(jt){var Oe=Mi(jt);Oe[Ie]&&(mr=Oe[Ie]),Oe[on]&&(yr=Oe[on]),Oe[er]&&(jt=Oe[er])}mr&&(mr=xt.deserializeNode(mr)),yr&&(yr=xt.deserializeNode(yr));try{fr.items&&fr.items.length?Pn=Array.from(fr.items).map(function(Qn){return Qn.kind==="file"?Qn.getAsFile():null}).filter(function(Qn){return Qn}):fr.files&&fr.files.length&&(Pn=Array.from(fr.files))}catch{fr.files&&fr.files.length&&(Pn=Array.from(fr.files))}var pn={files:Pn,fragment:mr,html:Rr,node:yr,rich:ai,text:jt};return pn.type=Ui(pn),pn}function Mi(Xn){var fr="SLATE-DATA-EMBED::";if(Xn.substring(0,fr.length)!==fr)return{TEXT:Xn};try{return JSON.parse(Xn.substring(fr.length))}catch{throw new Error("Unable to parse custom Slate drag event data.")}}function Ui(Xn){return Xn.fragment?"fragment":Xn.node?"node":Xn.rich&&Xn.html?"html":Xn.rich&&Xn.text?"text":Xn.files&&Xn.files.length?"files":Xn.html?"html":Xn.text?"text":"unknown"}function Nn(Xn,fr){if(!Xn.types||!Xn.types.length)return fr===er&&Xn.getData("Text")||null;var mr=Array.from(Xn.types);return mr.indexOf(fr)!==-1&&Xn.getData(fr)||null}var cr=Zi.TEXT;function ni(Xn,fr,mr){var yr=Zi[fr.toUpperCase()];if(!yr)throw new Error('Cannot set unknown transfer type "'+yr+'".');Xn.nativeEvent&&(Xn=Xn.nativeEvent);var Rr=Xn.dataTransfer||Xn.clipboardData;try{Rr.setData(yr,mr),Rr.setData("text",Rr.getData("text"))}catch{var ai="SLATE-DATA-EMBED::",jt=Rr.getData(cr),Pn={};if(jt.substring(0,ai.length)===ai)try{Pn=JSON.parse(jt.substring(ai.length))}catch{throw new Error("Failed to parse Slate data from `DataTransfer` object.")}else Pn[cr]=jt;Pn[yr]=mr;var nr=""+ai+JSON.stringify(Pn);Rr.setData(cr,nr)}}var Xr=b()("slate:after");function Jr(){var Xn=null,fr=!1;function mr(kr,Ve,Ot){var wn=Ve.value,Wt=!!kr.nativeEvent;if(Wt)return kr.preventDefault(),Ve.insertText(kr.data),Ot();var Yt=kr.getTargetRanges(),zn=Pi(Yt,1),Nr=zn[0];if(!Nr)return Ot();Xr("onBeforeInput",{event:kr}),kr.preventDefault();var si=wn.document,Ki=wn.selection,Bi=Ve.findRange(Nr);switch(kr.inputType){case"deleteByDrag":case"deleteByCut":case"deleteContent":case"deleteContentBackward":case"deleteContentForward":{Ve.deleteAtRange(Bi);break}case"deleteWordBackward":{Ve.deleteWordBackwardAtRange(Bi);break}case"deleteWordForward":{Ve.deleteWordForwardAtRange(Bi);break}case"deleteSoftLineBackward":case"deleteHardLineBackward":{Ve.deleteLineBackwardAtRange(Bi);break}case"deleteSoftLineForward":case"deleteHardLineForward":{Ve.deleteLineForwardAtRange(Bi);break}case"insertLineBreak":case"insertParagraph":{var Xi=si.hasVoidParent(Ki.start.path,Ve);Xi?Ve.moveToStartOfNextText():Ve.splitBlockAtRange(Bi);break}case"insertFromYank":case"insertReplacementText":case"insertText":{var vo=kr.data==null?kr.dataTransfer.getData("text/plain"):kr.data;if(vo==null)break;Ve.insertTextAtRange(Bi,vo,Ki.marks),Ki.marks&&wn.document!==Ve.value.document&&Ve.select({marks:null});break}}Ot()}function yr(kr,Ve,Ot){Xr("onBlur",{event:kr}),Ve.blur(),Ot()}function Rr(kr,Ve,Ot){if(Ve.readOnly)return Ot();var wn=Ve.value,Wt=wn.document,Yt=Ve.findPath(kr.target);if(!Yt)return Ot();Xr("onClick",{event:kr});var zn=Wt.getNode(Yt),Nr=Wt.getAncestors(Yt),si=zn&&(Ve.isVoid(zn)||Nr.some(function(Ki){return Ve.isVoid(Ki)}));si&&Ve.focus().moveToEndOfNode(zn),Ot()}function ai(kr,Ve,Ot){Xr("onCopy",{event:kr}),Ko(kr,Ve),Ot()}function jt(kr,Ve,Ot){Xr("onCut",{event:kr}),Ko(kr,Ve,function(){var wn=Ve.value,Wt=wn.document,Yt=wn.selection,zn=Yt.end,Nr=Yt.isCollapsed,si=void 0;if(Nr){var Ki=!0,Bi=!1,Xi=void 0;try{for(var vo=Wt.ancestors(zn.path)[Symbol.iterator](),ea;!(Ki=(ea=vo.next()).done);Ki=!0){var la=ea.value,ss=Pi(la,2),Rs=ss[0],Ds=ss[1];if(Ve.isVoid(Rs)){si=Ds;break}}}catch(Is){Bi=!0,Xi=Is}finally{try{!Ki&&vo.return&&vo.return()}finally{if(Bi)throw Xi}}}si?Ve.removeNodeByKey(si):Ve.delete()}),Ot()}function Pn(kr,Ve,Ot){Xr("onDragEnd",{event:kr}),Xn=null,Ot()}function nr(kr,Ve,Ot){Xr("onDragStart",{event:kr}),Xn=!0;var wn=Ve.value,Wt=wn.document,Yt=Ve.findPath(kr.target),zn=Wt.getNode(Yt),Nr=Wt.getAncestors(Yt),si=zn&&(Ve.isVoid(zn)||Nr.some(function(vo){return Ve.isVoid(vo)})),Ki=wn.blocks.some(function(vo){return vo===zn});si&&!Ki&&Ve.moveToRangeOfNode(zn);var Bi=Ve.value.fragment,Xi=xt.serializeNode(Bi);ni(kr,"fragment",Xi),Ot()}function Ir(kr,Ve,Ot){var wn=Ve.value,Wt=wn.document,Yt=wn.selection,zn=R()(kr.target),Nr=Ve.findEventRange(kr);if(!Nr)return Ot();Xr("onDrop",{event:kr});var si=Er(kr),Ki=si.type,Bi=si.fragment,Xi=si.text;Ve.focus();var vo=Ve.findDOMNode(Nr.focus.path);vo&&vo.dispatchEvent(new MouseEvent("mouseup",{view:zn,bubbles:!0,cancelable:!0}));var ea=Yt;if(Ve.select(Nr),Xn&&Ve.deleteAtRange(ea),Ki==="text"||Ki==="html"){var la=Nr.anchor,ss=Wt.hasVoidParent(la.path,Ve);if(ss){for(var Rs=la.path,Ds=Wt.getNode(la.path);ss;){var Is=Wt.texts({path:Rs}),nu=Pi(Is,1),Ls=nu[0];if(!Ls)break;var gu=Pi(Ls,2);Ds=gu[0],Rs=gu[1],ss=Wt.hasVoidParent(Rs,Ve)}Ds&&Ve.moveToStartOfNode(Ds)}Xi&&Xi.split(` `).forEach(function(Us,Iu){Iu>0&&Ve.splitBlock(),Ve.insertText(Us)})}Ki==="fragment"&&Ve.insertFragment(Bi),Ot()}function fi(kr,Ve,Ot){Xr("onFocus",{event:kr}),fr&&!At&&!et?Ve.deselect().focus():Ve.focus(),Ot()}function Ti(kr,Ve,Ot){Xr("onInput");var wn=R()(kr.target),Wt=wn.getSelection(),Yt=Ve.findSelection(Wt);Yt?Ve.select(Yt):Ve.blur();var zn=Wt.anchorNode;Ve.reconcileDOMNode(zn),Ot()}function Oe(kr,Ve,Ot){Xr("onKeyDown",{event:kr});var wn=Ve.value,Wt=wn.document,Yt=wn.selection,zn=Yt.start,Nr=Wt.hasVoidParent(zn.path,Ve);if(Bt.isSplitBlock(kr)&&!I)return Nr?Ve.moveToStartOfNextText():Ve.splitBlock();if(Bt.isDeleteBackward(kr)&&!I)return Ve.deleteCharBackward();if(Bt.isDeleteForward(kr)&&!I)return Ve.deleteCharForward();if(Bt.isDeleteLineBackward(kr))return Ve.deleteLineBackward();if(Bt.isDeleteLineForward(kr))return Ve.deleteLineForward();if(Bt.isDeleteWordBackward(kr))return Ve.deleteWordBackward();if(Bt.isDeleteWordForward(kr))return Ve.deleteWordForward();if(Bt.isRedo(kr))return Ve.redo();if(Bt.isUndo(kr))return Ve.undo();if(Bt.isMoveLineBackward(kr))return kr.preventDefault(),Ve.moveToStartOfBlock();if(Bt.isMoveLineForward(kr))return kr.preventDefault(),Ve.moveToEndOfBlock();if(Bt.isExtendLineBackward(kr))return kr.preventDefault(),Ve.moveFocusToStartOfBlock();if(Bt.isExtendLineForward(kr))return kr.preventDefault(),Ve.moveFocusToEndOfBlock();if(Bt.isMoveBackward(kr))return kr.preventDefault(),Yt.isCollapsed?Ve.moveBackward():Ve.moveToStart();if(Bt.isMoveForward(kr))return kr.preventDefault(),Yt.isCollapsed?Ve.moveForward():Ve.moveToEnd();if(Bt.isMoveWordBackward(kr))return kr.preventDefault(),Ve.moveWordBackward();if(Bt.isMoveWordForward(kr))return kr.preventDefault(),Ve.moveWordForward();if(Bt.isExtendBackward(kr)){var si=Wt.getNode(zn.path),Ki=Wt.texts({path:zn.path,direction:"backward"}),Bi=Pi(Ki,1),Xi=Bi[0],vo=!1;if(Xi){var ea=Pi(Xi,2),la=ea[1];vo=Wt.hasVoidParent(la,Ve)}if(Nr||vo||si.text==="")return kr.preventDefault(),Ve.moveFocusBackward()}if(Bt.isExtendForward(kr)){var ss=Wt.getNode(zn.path),Rs=Wt.texts({path:zn.path}),Ds=Pi(Rs,1),Is=Ds[0],nu=!1;if(Is){var Ls=Pi(Is,2),gu=Ls[1];nu=Wt.hasVoidParent(gu,Ve)}if(Nr||nu||ss.text==="")return kr.preventDefault(),Ve.moveFocusForward()}Ot()}function pn(kr,Ve,Ot){Xr("onMouseDown",{event:kr}),fr=!0,Ot()}function Qn(kr,Ve,Ot){Xr("onMouseUp",{event:kr}),fr=!1,Ot()}function Sr(kr,Ve,Ot){Xr("onPaste",{event:kr});var wn=Ve.value,Wt=Er(kr),Yt=Wt.type,zn=Wt.fragment,Nr=Wt.text;if(Yt==="fragment"&&Ve.insertFragment(zn),Yt==="text"||Yt==="html"){if(!Nr)return Ot();var si=wn.document,Ki=wn.selection,Bi=wn.startBlock;if(Ve.isVoid(Bi))return Ot();var Xi=Bi,vo=si.getInsertMarksAtRange(Ki),ea=Xe.A.deserialize(Nr,{defaultBlock:Xi,defaultMarks:vo}).document;Ve.insertFragment(ea)}Ot()}function hr(kr,Ve,Ot){Xr("onSelect",{event:kr});var wn=R()(kr.target),Wt=wn.getSelection(),Yt=Ve.findSelection(Wt);Yt?Ve.select(Yt):Ve.blur(),fr=!1,Ot()}return{onBeforeInput:mr,onBlur:yr,onClick:Rr,onCopy:ai,onCut:jt,onDragEnd:Pn,onDragStart:nr,onDrop:Ir,onFocus:fi,onInput:Ti,onKeyDown:Oe,onMouseDown:pn,onMouseUp:Qn,onPaste:Sr,onSelect:hr}}var Qi=b()("slate:before");function Fo(){var Xn=null,fr=0,mr=!1,yr=!1,Rr=!1,ai=!1;function jt(Bi,Xi,vo){var ea=!!Bi.nativeEvent;Xi.readOnly||(ai=!0,!(ea&&Fe)&&(Qi("onBeforeInput",{event:Bi}),vo()))}function Pn(Bi,Xi,vo){if(!yr&&!Xi.readOnly){var ea=Bi.relatedTarget,la=Bi.target,ss=R()(la);if(Xn!==ss.document.activeElement){if(ea){var Rs=Xi.findDOMNode([]);if(ea===Rs||ea.hasAttribute(ui.SPACER))return;var Ds=Xi.findNode(ea);if(Rs.contains(ea)&&Ds&&!Xi.isVoid(Ds))return}Qi("onBlur",{event:Bi}),vo()}}}function nr(Bi,Xi,vo){var ea=fr;ai=!0,window.requestAnimationFrame(function(){fr>ea||(mr=!1)}),Qi("onCompositionEnd",{event:Bi}),vo()}function Ir(Bi,Xi,vo){Qi("onClick",{event:Bi}),ai=!0,vo()}function fi(Bi,Xi,vo){mr=!0,fr++;var ea=Xi.value,la=ea.selection;ai=!0,la.isCollapsed||Xi.delete(),Qi("onCompositionStart",{event:Bi}),vo()}function Ti(Bi,Xi,vo){var ea=R()(Bi.target);yr=!0,ea.requestAnimationFrame(function(){return yr=!1}),Qi("onCopy",{event:Bi}),vo()}function Oe(Bi,Xi,vo){if(!Xi.readOnly){var ea=R()(Bi.target);yr=!0,ea.requestAnimationFrame(function(){return yr=!1}),Qi("onCut",{event:Bi}),vo()}}function pn(Bi,Xi,vo){Rr=!1,Qi("onDragEnd",{event:Bi}),vo()}function Qn(Bi,Xi,vo){Qi("onDragEnter",{event:Bi}),vo()}function Sr(Bi,Xi,vo){Qi("onDragExit",{event:Bi}),vo()}function hr(Bi,Xi,vo){Qi("onDragLeave",{event:Bi}),vo()}function kr(Bi,Xi,vo){var ea=Xi.findNode(Bi.target);(!ea||Xi.isVoid(ea))&&Bi.preventDefault(),At&&Bi.preventDefault(),Rr||(Rr=!0,At||(Bi.nativeEvent.dataTransfer.dropEffect="move")),Qi("onDragOver",{event:Bi}),vo()}function Ve(Bi,Xi,vo){Rr=!0,Qi("onDragStart",{event:Bi}),vo()}function Ot(Bi,Xi,vo){Xi.readOnly||(ai=!0,Bi.preventDefault(),Qi("onDrop",{event:Bi}),vo())}function wn(Bi,Xi,vo){if(!yr&&!Xi.readOnly){var ea=Xi.findDOMNode([]),la=R()(Bi.target);if(Xn=la.document.activeElement,Ke&&Bi.target!==ea){ea.focus();return}Qi("onFocus",{event:Bi}),vo()}}function Wt(Bi,Xi,vo){mr||Xi.value.selection.isBlurred||(ai=!0,Qi("onInput",{event:Bi}),vo())}function Yt(Bi,Xi,vo){if(!Xi.readOnly){if(mr){Bt.isCompose(Bi)&&Bi.preventDefault();return}!I&&(Bt.isBold(Bi)||Bt.isDeleteBackward(Bi)||Bt.isDeleteForward(Bi)||Bt.isDeleteLineBackward(Bi)||Bt.isDeleteLineForward(Bi)||Bt.isDeleteWordBackward(Bi)||Bt.isDeleteWordForward(Bi)||Bt.isItalic(Bi)||Bt.isRedo(Bi)||Bt.isSplitBlock(Bi)||Bt.isTransposeCharacter(Bi)||Bt.isUndo(Bi))&&Bi.preventDefault(),ai=!0,Qi("onKeyDown",{event:Bi}),vo()}}function zn(Bi,Xi,vo){Xi.readOnly||(ai=!0,Bi.preventDefault(),Qi("onPaste",{event:Bi}),vo())}function Nr(Bi,Xi,vo){if(!yr&&!mr&&!Xi.readOnly){var ea=R()(Bi.target);Xn=ea.document.activeElement,ai=!0,Qi("onSelect",{event:Bi}),vo()}}function si(){return ai}function Ki(){return ai=!1,null}return{onBeforeInput:jt,onBlur:Pn,onClick:Ir,onCompositionEnd:nr,onCompositionStart:fi,onCopy:Ti,onCut:Oe,onDragEnd:pn,onDragEnter:Qn,onDragExit:Sr,onDragLeave:hr,onDragOver:kr,onDragStart:Ve,onDrop:Ot,onFocus:wn,onInput:Wt,onKeyDown:Yt,onPaste:zn,onSelect:Nr,queries:{userActionPerformed:si},commands:{clearUserActionPerformed:Ki}}}function No(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fr=Xn.plugins,mr=fr===void 0?[]:fr,yr=Fo(),Rr=Jr(),ai=ee?[Lr(Xn),li(Xn)]:[];return[].concat(ai,[yr],io(mr),[Rr])}function Jo(){function Xn(fr){var mr=fr.tmp.contentRef.current.tmp;mr.contentKey=mr.contentKey+1}return{commands:{restoreDOM:Xn}}}function br(Xn){var fr=Xn.nativeEvent||Xn;switch(fr.type){case"keydown":return fr.type+" "+JSON.stringify(fr.key);case"input":case"beforeinput":case"textInput":return fr.type+":"+fr.inputType+" "+JSON.stringify(fr.data);default:return fr.type}}var Yn=b()("slate:events");function Z(){var Xn={},fr=!0,mr=!1,yr=void 0;try{for(var Rr=yi[Symbol.iterator](),ai;!(fr=(ai=Rr.next()).done);fr=!0){var jt=ai.value;Xn[jt]=function(Pn,nr,Ir){var fi=br(Pn);Yn(fi),Ir()}}}catch(Pn){mr=!0,yr=Pn}finally{try{!fr&&Rr.return&&Rr.return()}finally{if(mr)throw yr}}return Xn}var se=2e3,G=b()("slate:batch-events");function B(){var Xn=null,fr=null,mr=[];function yr(){G(` `+mr.join(` `)),mr.length=0}function Rr(Oe){mr.length===0&&(Xn=new Date);var pn=br(Oe),Qn=new Date;mr.push("- "+(Qn-Xn)+" - "+pn),clearTimeout(fr),fr=setTimeout(yr,se)}var ai={},jt=!0,Pn=!1,nr=void 0;try{for(var Ir=yi[Symbol.iterator](),fi;!(jt=(fi=Ir.next()).done);jt=!0){var Ti=fi.value;ai[Ti]=function(Oe,pn,Qn){Rr(Oe),Qn()}}}catch(Oe){Pn=!0,nr=Oe}finally{try{!jt&&Ir.return&&Ir.return()}finally{if(Pn)throw nr}}return ai}var Pe=b()("slate:mutations"),dt=["type","oldValue","target","addedNodes","removedNodes","attributeName","attributeNamespace","nextSibling","previousSibling"];function Lt(Xn){if(Xn.nodeType===window.Node.TEXT_NODE)return Xn.textContent;if(Xn.nodeType===window.Node.ELEMENT_NODE){var fr=Xn.outerHTML,mr=Xn.innerHTML;return fr==null?JSON.stringify(Xn.textContent):fr.slice(0,fr.indexOf(mr))}else return"Node(type="+Xn.nodeType}function Pt(){var Xn=new window.MutationObserver(function(Rr){var ai=Array.from(Rr).map(function(jt){var Pn={};return dt.forEach(function(nr){var Ir=jt[nr];if(Ir!=null){if(Ir instanceof window.NodeList){if(Ir.length===0)return;Pn[nr]=Array.from(Ir).map(Lt).join(", ");return}Ir instanceof window.Node&&(Ir=Lt(Ir)),Pn[nr]=Ir}}),Pn});Pe.apply(void 0,[ai.length+" Mutations"].concat(io(ai)))}),fr=null;function mr(Rr,ai,jt){var Pn=ai.findDOMNode([]);if(Pn===fr)return jt();Pe("start"),Xn.observe(Pn,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}),fr=Pn,jt()}function yr(Rr,ai,jt){Pe("stop"),Xn.disconnect(),fr=null,jt()}return{onComponentDidMount:mr,onComponentDidUpdate:mr,onComponentWillUnmount:yr}}function $e(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fr=Xn.placeholder,mr=fr===void 0?"":fr,yr=b().enabled("slate:events")?Z(Xn):null,Rr=b().enabled("slate:batch-events")?B(Xn):null,ai=b().enabled("slate:mutations")?Pt(Xn):null,jt=ra(Xn),Pn=So(Xn),nr=gr(Xn),Ir=Ho(Xn),fi=No(Xn),Ti=Jo(),Oe=ee?null:Gn({placeholder:mr,when:function(Qn,Sr){return Sr.object==="document"&&Sr.text===""&&Sr.nodes.size===1&&Array.from(Sr.texts()).length===1}});return[yr,Rr,ai,Ir,fi,Ti,Oe,jt,Pn,nr]}var ut=b()("slate:editor"),zt=function(Xn){xi(fr,Xn);function fr(){var mr,yr,Rr,ai;ri(this,fr);for(var jt=arguments.length,Pn=Array(jt),nr=0;nr<jt;nr++)Pn[nr]=arguments[nr];return ai=(yr=(Rr=Ai(this,(mr=fr.__proto__||Object.getPrototypeOf(fr)).call.apply(mr,[this].concat(Pn))),Rr),Rr.state={value:Rr.props.defaultValue,contentKey:0},Rr.tmp={mounted:!1,change:null,resolves:0,updates:0,contentRef:i.createRef()},Rr.resolveController=pi(function(){var Ir=arguments[5];S(Rr.tmp.resolves<5||Rr.tmp.resolves!==Rr.tmp.updates,"A Slate <Editor> component is re-resolving the `plugins`, `schema`, `commands`, `queries` or `placeholder` prop on each update, which leads to poor performance. This is often due to passing in a new references for these props with each render by declaring them inline in your render function. Do not do this! Declare them outside your render function, or memoize them instead."),Rr.tmp.resolves++;var fi=Ir(Kr({},Rr.props,{editor:Rr,value:Rr.props.value||Rr.state.value})),Ti=function(pn){Rr.tmp.mounted?Rr.handleChange(pn):Rr.tmp.change=pn};Rr.controller=new m.KE({plugins:[fi],onChange:Ti},{controller:Rr,construct:!1}),Rr.controller.run("onConstruct")}),yr),Ai(Rr,ai)}return hi(fr,[{key:"componentDidMount",value:function(){this.tmp.mounted=!0,this.tmp.updates++,this.props.autoFocus&&this.focus(),this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentDidUpdate",value:function(){this.tmp.updates++,this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentWillUnmount",value:function(){this.tmp.mounted=!1}},{key:"render",value:function(){var yr=this;ut("render",this);var Rr=this.props,ai=Rr.commands,jt=Rr.placeholder,Pn=Rr.plugins,nr=Rr.queries,Ir=Rr.schema;this.resolveController(Pn,Ir,ai,nr,jt,$e);var fi=this.props,Ti=fi.options,Oe=fi.readOnly,pn=fi.value,Qn=this.state.value,Sr=pn||Qn,hr=this.state.contentKey;this.controller.setReadOnly(Oe),this.controller.setValue(Sr,Ti);var kr=this.props,Ve=kr.autoCorrect,Ot=kr.className,wn=kr.id,Wt=kr.role,Yt=kr.spellCheck,zn=kr.tabIndex,Nr=kr.style,si=kr.tagName,Ki=_t()(this.props,Object.keys(fr.propTypes)),Bi=i.createElement(ki,Kr({},Ki,{ref:this.tmp.contentRef,autoCorrect:Ve,className:Ot,contentKey:hr,editor:this,id:wn,onEvent:function(ea,la){return yr.run(ea,la)},readOnly:Oe,role:Wt,spellCheck:Yt,style:Nr,tabIndex:zn,tagName:si})),Xi=this.controller.run("renderEditor",Kr({},this.props,{editor:this,children:Bi}));return Xi}},{key:"handleChange",value:function(yr){var Rr=this.props.onChange,ai=this.state.value;ai&&this.setState({value:yr.value}),Rr(yr)}},{key:"applyOperation",value:function(){var yr;return(yr=this.controller).applyOperation.apply(yr,arguments)}},{key:"command",value:function(){var yr;return(yr=this.controller).command.apply(yr,arguments)}},{key:"hasCommand",value:function(){var yr;return(yr=this.controller).hasCommand.apply(yr,arguments)}},{key:"hasQuery",value:function(){var yr;return(yr=this.controller).hasQuery.apply(yr,arguments)}},{key:"normalize",value:function(){var yr;return(yr=this.controller).normalize.apply(yr,arguments)}},{key:"query",value:function(){var yr;return(yr=this.controller).query.apply(yr,arguments)}},{key:"registerCommand",value:function(){var yr;return(yr=this.controller).registerCommand.apply(yr,arguments)}},{key:"registerQuery",value:function(){var yr;return(yr=this.controller).registerQuery.apply(yr,arguments)}},{key:"run",value:function(){var yr;return(yr=this.controller).run.apply(yr,arguments)}},{key:"withoutNormalizing",value:function(){var yr;return(yr=this.controller).withoutNormalizing.apply(yr,arguments)}},{key:"call",value:function(){var yr;return(yr=this.controller).call.apply(yr,arguments)}},{key:"change",value:function(){var yr;return(yr=this.controller).change.apply(yr,arguments)}},{key:"onChange",value:function(){var yr;return(yr=this.controller).onChange.apply(yr,arguments)}},{key:"applyOperations",value:function(){var yr;return(yr=this.controller).applyOperations.apply(yr,arguments)}},{key:"setOperationFlag",value:function(){var yr;return(yr=this.controller).setOperationFlag.apply(yr,arguments)}},{key:"getFlag",value:function(){var yr;return(yr=this.controller).getFlag.apply(yr,arguments)}},{key:"unsetOperationFlag",value:function(){var yr;return(yr=this.controller).unsetOperationFlag.apply(yr,arguments)}},{key:"withoutNormalization",value:function(){var yr;return(yr=this.controller).withoutNormalization.apply(yr,arguments)}},{key:"operations",get:function(){return this.controller.operations}},{key:"readOnly",get:function(){return this.controller.readOnly}},{key:"value",get:function(){return this.controller.value}},{key:"editor",get:function(){return this.controller.editor}},{key:"schema",get:function(){(0,gn.A)(!1,"As of Slate 0.42, the `editor.schema` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}},{key:"stack",get:function(){(0,gn.A)(!1,"As of Slate 0.42, the `editor.stack` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}}]),fr}(i.Component);zt.propTypes=Kr({autoCorrect:s().bool,autoFocus:s().bool,className:s().string,defaultValue:p.value,id:s().string,onChange:s().func,options:s().object,placeholder:s().any,plugins:s().array,readOnly:s().bool,role:s().string,schema:s().object,spellCheck:s().bool,style:s().object,tabIndex:s().number,value:p.value},yi.reduce(function(Xn,fr){return Xn[fr]=s().func,Xn},{}),jr.reduce(function(Xn,fr){return Xn[fr]=s().func,Xn},{})),zt.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:function(){},options:{},placeholder:"",plugins:[],readOnly:!1,schema:{},spellCheck:!0};function Ht(Xn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;S(!1,"As of slate-react@0.22 the `findDOMNode(key)` helper is deprecated in favor of `editor.findDOMNode(path)`."),m.bP.isNode(Xn)&&(Xn=Xn.key);var mr=fr.document.querySelector("["+ui.KEY+'="'+Xn+'"]');if(!mr)throw new Error('Unable to find a DOM node for "'+Xn+'". This is often because of forgetting to add `props.attributes` to a custom component.');return mr}function Fn(Xn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;S(!1,"As of slate-react@0.22 the `findDOMPoint(point)` helper is deprecated in favor of `editor.findDOMPoint(point)`.");var mr=Ht(Xn.key,fr),yr=0,Rr=Array.from(mr.querySelectorAll(bi.STRING+", "+bi.ZERO_WIDTH)),ai=!0,jt=!1,Pn=void 0;try{for(var nr=Rr[Symbol.iterator](),Ir;!(ai=(Ir=nr.next()).done);ai=!0){var fi=Ir.value,Ti=fi.childNodes[0],Oe=Ti.textContent.length,pn=Oe;fi.hasAttribute(ui.LENGTH)&&(pn=parseInt(fi.getAttribute(ui.LENGTH),10));var Qn=yr+pn;if(Xn.offset<=Qn){var Sr=Math.min(Oe,Math.max(0,Xn.offset-yr));return{node:Ti,offset:Sr}}yr=Qn}}catch(hr){jt=!0,Pn=hr}finally{try{!ai&&nr.return&&nr.return()}finally{if(jt)throw Pn}}return null}function Cn(Xn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;S(!1,"As of slate-react@0.22 the `findDOMRange(range)` helper is deprecated in favor of `editor.findDOMRange(range)`.");var mr=Xn.anchor,yr=Xn.focus,Rr=Xn.isBackward,ai=Xn.isCollapsed,jt=Fn(mr,fr),Pn=ai?jt:Fn(yr,fr);if(!jt||!Pn)return null;var nr=fr.document.createRange(),Ir=Rr?Pn:jt,fi=Rr?jt:Pn;return nr.setStart(Ir.node,Ir.offset),nr.setEnd(fi.node,fi.offset),nr}function tr(Xn,fr){S(!1,"As of slate-react@0.22 the `findNode(element)` helper is deprecated in favor of `editor.findNode(element)`."),(0,gn.A)(!m.WT.isValue(fr),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var mr=Xn.closest(bi.KEY);if(!mr)return null;var yr=mr.getAttribute(ui.KEY);if(!yr)return null;var Rr=fr.value,ai=Rr.document,jt=ai.getNode(yr);return jt||null}function Jn(Xn,fr){S(!1,"As of slate-react@0.22 the `findPath(element)` helper is deprecated in favor of `editor.findPath(element)`.");var mr=tr(Xn,fr);if(!mr)return null;var yr=fr.value,Rr=yr.document,ai=Rr.getPath(mr);return ai}function ei(Xn,fr,mr){S(!1,"As of slate-react@0.22 the `findPoint(node, offset)` helper is deprecated in favor of `editor.findPoint(node, offset)`."),(0,gn.A)(!m.WT.isValue(mr),"As of Slate 0.42.0, the `findPoint` utility takes an `editor` instead of a `value`.");var yr=Ci(Xn,fr),Rr=yr.node,ai=yr.offset,jt=R()(Xn),Pn=Rr.parentNode,nr=Pn.closest(bi.LEAF),Ir=void 0,fi=void 0;if(nr){var Ti=jt.document.createRange(),Oe=nr.closest(bi.TEXT);Ti.setStart(Oe,0),Ti.setEnd(Rr,ai),fi=Oe;var pn=Ti.cloneContents(),Qn=pn.querySelectorAll("["+ui.ZERO_WIDTH+"]");Ir=pn.textContent.length-Qn.length}else{var Sr=Pn.closest(bi.VOID);if(!Sr||(nr=Sr.querySelector(bi.LEAF),!nr))return null;fi=nr,Ir=fi.textContent.length}Ir===fi.textContent.length&&Pn.hasAttribute(ui.ZERO_WIDTH)&&Ir--;var hr=nr.getAttribute(ui.OFFSET_KEY);if(!hr)return null;var kr=qn.parse(hr),Ve=kr.key,Ot=mr.value;if(!Ot.document.hasDescendant(Ve))return null;var wn=Ot.document.createPoint({key:Ve,offset:Ir});return wn}function Ci(Xn,fr){if(Xn.nodeType===1&&Xn.childNodes.length){var mr=fr===Xn.childNodes.length,yr=mr?"backward":"forward",Rr=mr?fr-1:fr;for(Xn=zi(Xn,Rr,yr);Xn.nodeType===1&&Xn.childNodes.length;){var ai=mr?Xn.childNodes.length-1:0;Xn=zi(Xn,ai,yr)}fr=mr?Xn.textContent.length:0}return{node:Xn,offset:fr}}function zi(Xn,fr,mr){for(var yr=Xn.childNodes,Rr=yr[fr],ai=fr,jt=!1,Pn=!1;(Rr.nodeType===8||Rr.nodeType===1&&Rr.childNodes.length===0||Rr.nodeType===1&&Rr.getAttribute("contenteditable")==="false")&&!(jt&&Pn);){if(ai>=yr.length){jt=!0,ai=fr-1,mr="backward";continue}if(ai<0){Pn=!0,ai=fr+1,mr="forward";continue}Rr=yr[ai],mr==="forward"&&ai++,mr==="backward"&&ai--}return Rr||null}function co(Xn,fr){S(!1,"As of slate-react@0.22 the `findRange(selection)` helper is deprecated in favor of `editor.findRange(selection)`."),(0,gn.A)(!m.WT.isValue(fr),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var mr=Xn.anchorNode||Xn.startContainer;if(!mr)return null;var yr=R()(mr);(Xn instanceof yr.Range||yr.StaticRange&&Xn instanceof yr.StaticRange)&&(Xn={anchorNode:Xn.startContainer,anchorOffset:Xn.startOffset,focusNode:Xn.endContainer,focusOffset:Xn.endOffset});var Rr=Xn,ai=Rr.anchorNode,jt=Rr.anchorOffset,Pn=Rr.focusNode,nr=Rr.focusOffset,Ir=Rr.isCollapsed,fi=fr.value,Ti=ei(ai,jt,fr),Oe=Ir?Ti:ei(Pn,nr,fr);if(!Ti||!Oe)return null;var pn=fi.document,Qn=pn.createRange({anchor:Ti,focus:Oe});return Qn}function Xo(Xn,fr){S(!1,"As of slate-react@0.22 the `getEventRange(event, editor)` helper is deprecated in favor of `editor.findEventRange(event)`."),(0,gn.A)(!m.WT.isValue(fr),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`."),Xn.nativeEvent&&(Xn=Xn.nativeEvent);var mr=Xn,yr=mr.clientX,Rr=mr.clientY,ai=mr.target;if(yr==null||Rr==null)return null;var jt=fr.value,Pn=jt.document,nr=Jn(Xn.target,fr);if(!nr)return null;var Ir=Pn.getNode(nr);if(fr.isVoid(Ir)){var fi=ai.getBoundingClientRect(),Ti=Ir.object==="inline"?yr-fi.left<fi.left+fi.width-yr:Rr-fi.top<fi.top+fi.height-Rr,Oe=Pn.createRange(),pn=Ti?"moveToEndOfNode":"moveToStartOfNode",Qn=Pn[Ti?"getPreviousText":"getNextText"](nr);return Qn?Oe[pn](Qn):null}var Sr=R()(ai),hr=void 0;if(Sr.document.caretRangeFromPoint)hr=Sr.document.caretRangeFromPoint(yr,Rr);else if(Sr.document.caretPositionFromPoint){var kr=Sr.document.caretPositionFromPoint(yr,Rr);hr=Sr.document.createRange(),hr.setStart(kr.offsetNode,kr.offset),hr.setEnd(kr.offsetNode,kr.offset)}else if(Sr.document.body.createTextRange){hr=Sr.document.body.createTextRange();try{hr.moveToPoint(yr,Rr)}catch{return null}}var Ve=co(hr,fr);return Ve||null}var Eo={Editor:zt,cloneFragment:Ko,findDOMNode:Ht,findDOMPoint:Fn,findDOMRange:Cn,findNode:tr,findPath:Jn,findPoint:ei,findRange:co,getEventRange:Xo,getEventTransfer:Er,setEventTransfer:ni,ReactPlugin:$e};const Yo=Eo},85190:(J,g,t)=>{"use strict";function i(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(b){return typeof b}:i=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},i(h)}g.log=m,g.formatArgs=s,g.save=u,g.load=f,g.useColors=l,g.storage=p(),g.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function l(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(h){if(h[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+h[0]+(this.useColors?"%c ":" ")+"+"+J.exports.humanize(this.diff),!!this.useColors){var d="color: "+this.color;h.splice(1,0,d,"color: inherit");var b=0,y=0;h[0].replace(/%[a-zA-Z%]/g,function(w){w!=="%%"&&(b++,w==="%c"&&(y=b))}),h.splice(y,0,d)}}function m(){var h;return(typeof console>"u"?"undefined":i(console))==="object"&&console.log&&(h=console).log.apply(h,arguments)}function u(h){try{h?g.storage.setItem("debug",h):g.storage.removeItem("debug")}catch{}}function f(){var h;try{h=g.storage.getItem("debug")}catch{}return!h&&typeof process<"u"&&"env"in process&&(h=process.env.DEBUG),h}function p(){try{return localStorage}catch{}}J.exports=t(93049)(g);var v=J.exports.formatters;v.j=function(h){try{return JSON.stringify(h)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}},93049:(J,g,t)=>{"use strict";function i(l){m.debug=m,m.default=m,m.coerce=d,m.disable=v,m.enable=p,m.enabled=h,m.humanize=t(6585),Object.keys(l).forEach(function(b){m[b]=l[b]}),m.instances=[],m.names=[],m.skips=[],m.formatters={};function s(b){for(var y=0,w=0;w<b.length;w++)y=(y<<5)-y+b.charCodeAt(w),y|=0;return m.colors[Math.abs(y)%m.colors.length]}m.selectColor=s;function m(b){var y;function w(){if(w.enabled){for(var S=arguments.length,O=new Array(S),R=0;R<S;R++)O[R]=arguments[R];var M=w,D=Number(new Date),P=D-(y||D);M.diff=P,M.prev=y,M.curr=D,y=D,O[0]=m.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");var T=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,function(j,ae){if(j==="%%")return j;T++;var _=m.formatters[ae];if(typeof _=="function"){var N=O[T];j=_.call(M,N),O.splice(T,1),T--}return j}),m.formatArgs.call(M,O);var A=M.log||m.log;A.apply(M,O)}}return w.namespace=b,w.enabled=m.enabled(b),w.useColors=m.useColors(),w.color=s(b),w.destroy=u,w.extend=f,typeof m.init=="function"&&m.init(w),m.instances.push(w),w}function u(){var b=m.instances.indexOf(this);return b!==-1?(m.instances.splice(b,1),!0):!1}function f(b,y){return m(this.namespace+(typeof y>"u"?":":y)+b)}function p(b){m.save(b),m.names=[],m.skips=[];var y,w=(typeof b=="string"?b:"").split(/[\s,]+/),S=w.length;for(y=0;y<S;y++)w[y]&&(b=w[y].replace(/\*/g,".*?"),b[0]==="-"?m.skips.push(new RegExp("^"+b.substr(1)+"$")):m.names.push(new RegExp("^"+b+"$")));for(y=0;y<m.instances.length;y++){var O=m.instances[y];O.enabled=m.enabled(O.namespace)}}function v(){m.enable("")}function h(b){if(b[b.length-1]==="*")return!0;var y,w;for(y=0,w=m.skips.length;y<w;y++)if(m.skips[y].test(b))return!1;for(y=0,w=m.names.length;y<w;y++)if(m.names[y].test(b))return!0;return!1}function d(b){return b instanceof Error?b.stack||b.message:b}return m.enable(m.load()),m}J.exports=i},82611:(J,g,t)=>{"use strict";t.d(g,{eB:()=>Me,lY:()=>On,B_:()=>Ye,yo:()=>Fe,KE:()=>aa,cV:()=>qe,hK:()=>ro,CU:()=>wt,bP:()=>Ge,PW:()=>Y,Q6:()=>K,LN:()=>At,EY:()=>ct,WT:()=>ge,Ay:()=>Yn});var i=t(49568),l=t(38365),s=t.n(l),m=!0,u=function(Z,se){if(!m){if(Z)return;console.warn(se)}};const f=u;var p=t(11561),v=t(97388),h=t.n(v),d=t(30399),b=t(44383),y=t.n(b),w=t(90179),S=t.n(w),O=t(19086),R=t.n(O),M=void 0,D=void 0;function P(Z){if(Z==null)return D();if(typeof Z=="string")return Z;throw new Error("Keys must be strings, but you passed: "+Z)}function T(Z){D=Z}function A(){M=0,D=function(){return""+M++}}A();var j={create:P,setGenerator:T,resetGenerator:A},ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},_=function(Z,se){if(!(Z instanceof se))throw new TypeError("Cannot call a class as a function")},N=function(){function Z(se,G){for(var B=0;B<G.length;B++){var Pe=G[B];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(se,Pe.key,Pe)}}return function(se,G,B){return G&&Z(se.prototype,G),B&&Z(se,B),se}}(),W=function(Z,se,G){return se in Z?Object.defineProperty(Z,se,{value:G,enumerable:!0,configurable:!0,writable:!0}):Z[se]=G,Z},he=Object.assign||function(Z){for(var se=1;se<arguments.length;se++){var G=arguments[se];for(var B in G)Object.prototype.hasOwnProperty.call(G,B)&&(Z[B]=G[B])}return Z},me=function(Z,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);Z.prototype=Object.create(se&&se.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,se):Z.__proto__=se)},fe=function(Z,se){var G={};for(var B in Z)se.indexOf(B)>=0||Object.prototype.hasOwnProperty.call(Z,B)&&(G[B]=Z[B]);return G},ve=function(Z,se){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:Z},ce=function(){function Z(se,G){var B=[],Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=se[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done)&&(B.push($e.value),!(G&&B.length===G));Pe=!0);}catch(ut){dt=!0,Lt=ut}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}return B}return function(se,G){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return Z(se,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),oe=function(Z){if(Array.isArray(Z)){for(var se=0,G=Array(Z.length);se<Z.length;se++)G[se]=Z[se];return G}else return Array.from(Z)};function re(Z,se){for(var G=tt(Z,se),B=0;B<G;B++){var Pe=Z.get(B),dt=se.get(B);if(Pe<dt)return-1;if(Pe>dt)return 1}return Z.size===se.size?0:null}function H(Z){if(Z==null)return null;if(i.List.isList(Z))return Z;if(Array.isArray(Z))return(0,i.List)(Z);throw new Error("Paths can only be created from arrays or lists, but you passed: "+Z)}function V(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tt(Z,se),B=Z.slice(0,G),Pe=se.slice(0,G);return[B,Pe]}function Q(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Z.size-1;return Re(Z,0-se,G)}function Te(Z){var se=(0,i.List)().withMutations(function(G){for(var B=0;B<Z.size;B++)G.push(Z.slice(0,B))});return se}function Re(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Z.size-1,B=Z.get(G),Pe=B+se,dt=Z.set(G,Pe);return dt}function ne(Z,se){var G=V(Z,se),B=ce(G,2),Pe=B[0],dt=B[1];return Z.size<se.size&&re(Pe,dt)===0}function pe(Z,se){var G=V(Z,se),B=ce(G,2),Pe=B[0],dt=B[1];return re(Pe,dt)===1}function ye(Z,se){var G=V(Z,se),B=ce(G,2),Pe=B[0],dt=B[1];return re(Pe,dt)===-1}function Se(Z,se){return Z.equals(se)}function Ae(Z,se){var G=Z.size-1,B=V(Z,se,G),Pe=ce(B,2),dt=Pe[0],Lt=Pe[1],Pt=Z.get(G),$e=se.get(G);return Se(dt,Lt)&&Pt>$e}function Ee(Z){return(i.List.isList(Z)||Array.isArray(Z))&&Z.every(function(se){return typeof se=="number"})}function xe(Z,se){if(Z.size!==se.size)return!1;var G=Z.butLast(),B=se.butLast();return G.equals(B)}function nt(Z,se){var G=Z.size-1,B=V(Z,se,G),Pe=ce(B,2),dt=Pe[0],Lt=Pe[1],Pt=Z.get(G),$e=se.get(G);return Se(dt,Lt)&&Pt<$e}function Tt(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=Z.slice(0,-1*se);return G}function pt(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=Z.slice(se);return G}function Rt(Z,se){var G=Math.max(Z.size,se.size);return G}function tt(Z,se){var G=Math.min(Z.size,se.size);return G}function U(Z,se){for(var G=[],B=0;B<Z.size&&B<se.size;B++){var Pe=Z.get(B),dt=se.get(B);if(Pe!==dt)break;G.push(Pe)}var Lt=H(G);return Lt}function F(Z,se){var G=se.type,B=se.position,Pe=se.path;if(G==="add_mark"||G==="insert_text"||G==="remove_mark"||G==="remove_text"||G==="set_mark"||G==="set_node"||G==="set_selection"||G==="set_value"||G==="add_annotation"||G==="remove_annotation"||G==="set_annotation"||Z.size===0)return(0,i.List)([Z]);var dt=Pe.size-1,Lt=Se(Pe,Z),Pt=nt(Pe,Z),$e=ne(Pe,Z);if(G==="insert_node"&&(Lt||Pt||$e)&&(Z=Re(Z,1,dt)),G==="remove_node"&&(Pt?Z=Q(Z,1,dt):(Lt||$e)&&(Z=[])),G==="merge_node"&&(Lt||Pt?Z=Q(Z,1,dt):$e&&(Z=Q(Z,1,dt),Z=Re(Z,B,dt+1))),G==="split_node"&&(Lt?Z=[Z,Re(Z)]:Pt?Z=Re(Z,1,dt):$e&&Z.get(dt+1)>=B&&(Z=Re(Z,1,dt),Z=Q(Z,B,dt+1))),G==="move_node"){var ut=se.newPath;if(Se(Pe,ut))return(0,i.List)([Z]);$e||Lt?nt(Pe,ut)&&Pe.size<ut.size?Z=Q(ut,1,tt(ut,Pe)-1).concat(Z.slice(Pe.size)):Z=ut.concat(Z.slice(Pe.size)):(Pt&&(Z=Q(Z,1,dt)),(nt(ut,Z)||Se(ut,Z)||ne(ut,Z))&&(Z=Re(Z,1,ut.size-1)))}var zt=Array.isArray(Z)?Z:[Z];return(0,i.List)(zt)}var Y={compare:re,create:H,crop:V,decrement:Q,getAncestors:Te,increment:Re,isAbove:ne,isAfter:pe,isBefore:ye,isEqual:Se,isOlder:Ae,isPath:Ee,isSibling:xe,isYounger:nt,lift:Tt,drop:pt,max:Rt,min:tt,relate:U,transform:F},le={key:void 0,offset:void 0,path:void 0},ke=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"isAfterPoint",value:function(B){if(this.isUnset)return!1;var Pe=this.key===B.key&&this.offset>B.offset||Y.compare(this.path,B.path)===1;return Pe}},{key:"isAfterRange",value:function(B){if(this.isUnset)return!1;var Pe=this.isAfterPoint(B.end);return Pe}},{key:"isAtEndOfRange",value:function(B){if(this.isUnset)return!1;var Pe=this.equals(B.end);return Pe}},{key:"isAtStartOfRange",value:function(B){if(this.isUnset)return!1;var Pe=this.equals(B.start);return Pe}},{key:"isBeforePoint",value:function(B){if(this.isUnset)return!1;var Pe=this.key===B.key&&this.offset<B.offset||Y.compare(this.path,B.path)===-1;return Pe}},{key:"isBeforeRange",value:function(B){if(this.isUnset)return!1;var Pe=this.isBeforePoint(B.start);return Pe}},{key:"isInRange",value:function(B){if(this.isUnset)return!1;var Pe=this.equals(B.start)||this.equals(B.end)||this.isAfterPoint(B.start)&&this.isBeforePoint(B.end);return Pe}},{key:"isAtEndOfNode",value:function(B){if(this.isUnset)return!1;var Pe=B.getLastText(),dt=this.key===Pe.key&&this.offset===Pe.text.length;return dt}},{key:"isAtStartOfNode",value:function(B){if(this.isUnset||this.offset!==0)return!1;var Pe=B.getFirstText(),dt=this.key===Pe.key;return dt}},{key:"isInNode",value:function(B){return this.isUnset?!1:!!(B.object==="text"&&B.key===this.key||B.hasNode(this.key))}},{key:"moveBackward",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(B===0)return this;if(B<0)return this.moveForward(-B);var Pe=this.setOffset(this.offset-B);return Pe}},{key:"moveForward",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(B===0)return this;if(B<0)return this.moveBackward(-B);var Pe=this.setOffset(this.offset+B);return Pe}},{key:"moveTo",value:function(B){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,dt=this.key;typeof B=="number"?(Pe=B,B=this.path):typeof B=="string"?(dt=B,B=dt===this.key?this.path:null):dt=B.equals(this.path)?this.key:null;var Lt=this.merge({key:dt,path:B,offset:Pe});return Lt}},{key:"moveToStartOfNode",value:function(B){var Pe=B.getFirstText(),dt=this.moveTo(Pe.key,0);return dt}},{key:"moveToEndOfNode",value:function(B){var Pe=B.getLastText(),dt=this.moveTo(Pe.key,Pe.text.length);return dt}},{key:"normalize",value:function(B){if(this.key==null&&this.path==null)return this.setOffset(null);var Pe=this.key,dt=this.offset,Lt=this.path,Pt=Lt&&B.getNode(Lt);if(!Pt&&(Pt=B.getNode(Pe),Pt)){var $e=this.merge({path:B.getPath(Pe)});return $e}if(!Pt){f(!1,"A point's `path` or `key` invalid and was reset!");var ut=B.getFirstText();if(!ut)return se.create();var zt=this.merge({key:ut.key,offset:0,path:B.getPath(ut.key)});return zt}if(Pt.object!=="text"){f(!1,"A point should not reference a non-text node!");var Ht=Pt.getTextAtOffset(dt),Fn=Pt.getOffset(Ht.key),Cn=this.merge({offset:dt-Fn,key:Ht.key,path:B.getPath(Ht.key)});return Cn}Pt&&Lt&&Pe&&Pe!==Pt.key&&f(!1,"A point's `key` did not match its `path`!");var tr=this.merge({key:Pt.key,path:Lt??B.getPath(Pt.key),offset:dt==null?0:Math.min(dt,Pt.text.length)});if(tr.offset===Pt.text.length){var Jn=B.getClosestBlock(tr.path),ei=Jn.getNextText();ei&&(tr=tr.merge({key:ei.key,path:B.getPath(ei.key),offset:0}))}return tr}},{key:"setKey",value:function(B){B!=null&&(B=j.create(B));var Pe=this.set("key",B);return Pe}},{key:"setOffset",value:function(B){var Pe=this.set("offset",B);return Pe}},{key:"setPath",value:function(B){B!=null&&(B=Y.create(B));var Pe=this.set("path",B);return Pe}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return B.preserveKeys||delete Pe.key,Pe}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return this.key!=null&&this.offset!=null&&this.path!=null}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isPoint(B))return B;if(s()(B))return se.fromJSON(B);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isPoint(B))return{key:B.key,offset:B.offset,path:B.path};if(s()(B)){var Pe={};return"key"in B&&(Pe.key=B.key),"offset"in B&&(Pe.offset=B.offset),"path"in B&&(Pe.path=Y.create(B.path)),"path"in B&&!("key"in B)&&(Pe.key=null),"key"in B&&!("path"in B)&&(Pe.path=null),Pe}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.key,dt=Pe===void 0?null:Pe,Lt=B.offset,Pt=Lt===void 0?null:Lt,$e=B.path,ut=$e===void 0?null:$e,zt=new se({key:dt,offset:Pt,path:Y.create(ut)});return zt}}]),se}((0,i.Record)(le)),Ye=function(){function Z(){_(this,Z)}return N(Z,null,[{key:"create",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.Map.isMap(G))return G;if(s()(G))return Z.fromJSON(G);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+G)}},{key:"fromJSON",value:function(G){return new i.Map(G)}}]),Z}();Ye.fromJS=Ye.fromJSON;var ft={data:void 0,type:void 0},wt=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"toJSON",value:function(){var B={object:this.object,type:this.type,data:this.data.toJSON()};return B}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isMark(B))return B;if(typeof B=="string"&&(B={type:B}),s()(B))return se.fromJSON(B);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+B)}},{key:"createSet",value:function(B){if(i.Set.isSet(B)||Array.isArray(B)){var Pe=new i.Set(B.map(se.create));return Pe}if(B==null)return(0,i.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isMark(B))return{data:B.data,type:B.type};if(typeof B=="string")return{type:B};if(s()(B)){var Pe={};return"type"in B&&(Pe.type=B.type),"data"in B&&(Pe.data=Ye.create(B.data)),Pe}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.data,dt=Pe===void 0?{}:Pe,Lt=B.type;if(typeof Lt!="string")throw new Error("`Mark.fromJS` requires a `type` string.");var Pt=new se({type:Lt,data:new i.Map(dt)});return Pt}},{key:"isMarkSet",value:function(B){return i.Set.isSet(B)&&B.every(function(Pe){return se.isMark(Pe)})}}]),se}((0,i.Record)(ft)),Ut={type:void 0,data:void 0,anchor:void 0,focus:void 0},Ke=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"setProperties",value:function(B){B=se.createProperties(B);var Pe=this.merge(B);return Pe}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B)};return Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isDecoration(B))return B;if(K.isRange(B))return se.fromJSON(K.createProperties(B));if(s()(B))return se.fromJSON(B);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isDecoration(B))return{type:B.type,data:B.data,anchor:ke.createProperties(B.anchor),focus:ke.createProperties(B.focus),mark:wt.create(B.mark)};if(s()(B)){var Pe={};return"type"in B&&(Pe.type=B.type),"data"in B&&(Pe.data=Ye.create(B.data)),"anchor"in B&&(Pe.anchor=ke.create(B.anchor)),"focus"in B&&(Pe.focus=ke.create(B.focus)),Pe}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.anchor,dt=B.focus,Lt=B.type,Pt=B.data;if(B.mark&&!Lt&&(f(!1,"As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly."),Lt=B.mark.type,Pt=B.mark.data),!Lt)throw new Error("Decorations must be created with a `type`, but you passed: "+JSON.stringify(B));var $e=new se({type:Lt,data:Ye.create(Pt||{}),anchor:ke.fromJSON(Pe||{}),focus:ke.fromJSON(dt||{})});return $e}}]),se}((0,i.Record)(Ut)),it={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},At=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"setIsFocused",value:function(B){var Pe=this.set("isFocused",B);return Pe}},{key:"setMarks",value:function(B){var Pe=this.set("marks",B);return Pe}},{key:"setProperties",value:function(B){B=se.createProperties(B);var Pe=B,dt=Pe.anchor,Lt=Pe.focus,Pt=fe(Pe,["anchor","focus"]);dt&&(Pt.anchor=ke.create(dt)),Lt&&(Pt.focus=ke.create(Lt));var $e=this.merge(Pt);return $e}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B),isFocused:this.isFocused,marks:this.marks==null?null:this.marks.toArray().map(function(dt){return dt.toJSON()})};return Pe}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isSelection(B))return B;if(K.isRange(B))return se.fromJSON(K.createProperties(B));if(s()(B))return se.fromJSON(B);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isSelection(B))return{anchor:ke.createProperties(B.anchor),focus:ke.createProperties(B.focus),isFocused:B.isFocused,marks:B.marks};if(K.isRange(B))return{anchor:ke.createProperties(B.anchor),focus:ke.createProperties(B.focus)};if(s()(B)){var Pe={};return"anchor"in B&&(Pe.anchor=ke.create(B.anchor)),"focus"in B&&(Pe.focus=ke.create(B.focus)),"isFocused"in B&&(Pe.isFocused=B.isFocused),"marks"in B&&(Pe.marks=B.marks==null?null:wt.createSet(B.marks)),Pe}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.anchor,dt=B.focus,Lt=B.isFocused,Pt=Lt===void 0?!1:Lt,$e=B.marks,ut=$e===void 0?null:$e,zt=new se({anchor:ke.fromJSON(Pe||{}),focus:ke.fromJSON(dt||{}),isFocused:Pt,marks:ut==null?null:new i.Set(ut.map(wt.fromJSON))});return zt}}]),se}((0,i.Record)(it)),et={annotation:"@@__SLATE_ANNOTATION__@@",block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function ee(Z,se){return!!(se&&se[et[Z]])}var I={anchor:void 0,focus:void 0},K=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B)};return Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isRange(B))return B.object==="range"?B:se.fromJSON(se.createProperties(B));if(s()(B))return se.fromJSON(B);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isRange(B))return{anchor:ke.createProperties(B.anchor),focus:ke.createProperties(B.focus)};if(s()(B)){var Pe={};return"anchor"in B&&(Pe.anchor=ke.create(B.anchor)),"focus"in B&&(Pe.focus=ke.create(B.focus)),Pe}throw new Error("`Range.createProperties` only accepts objects, annotations, decorations, ranges or selections, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.anchor,dt=B.focus,Lt=new se({anchor:ke.fromJSON(Pe||{}),focus:ke.fromJSON(dt||{})});return Lt}},{key:"isRange",value:function(B){return ee("range",B)||Ke.isDecoration(B)||At.isSelection(B)}}]),se}((0,i.Record)(I)),ue={key:void 0,type:void 0,data:void 0,anchor:void 0,focus:void 0},De=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"setProperties",value:function(B){B=se.createProperties(B);var Pe=this.merge(B);return Pe}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,key:this.key,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B)};return Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isAnnotation(B))return B;if(K.isRange(B))return se.fromJSON(K.createProperties(B));if(s()(B))return se.fromJSON(B);throw new Error("`Annotation.create` only accepts objects or annotations, but you passed it: "+B)}},{key:"createMap",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.Map.isMap(B))return B;if(s()(B)){var Pe={};for(var dt in B){var Lt=B[dt],Pt=se.create(Lt);Pe[dt]=Pt}return(0,i.Map)(Pe)}throw new Error("`Annotation.createMap` only accepts arrays or lists, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isAnnotation(B))return{key:B.key,type:B.type,data:B.data,anchor:ke.createProperties(B.anchor),focus:ke.createProperties(B.focus)};if(s()(B)){var Pe={};return"key"in B&&(Pe.key=B.key),"type"in B&&(Pe.type=B.type),"data"in B&&(Pe.data=Ye.create(B.data)),"anchor"in B&&(Pe.anchor=ke.create(B.anchor)),"focus"in B&&(Pe.focus=ke.create(B.focus)),Pe}throw new Error("`Annotation.createProperties` only accepts objects or annotations, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.key,dt=B.type,Lt=B.data,Pt=B.anchor,$e=B.focus;if(!Pe)throw new Error("Annotations must be created with a `key`, but you passed: "+JSON.stringify(B));if(!dt)throw new Error("Annotations must be created with a `type`, but you passed: "+JSON.stringify(B));var ut=new se({key:Pe,type:dt,data:Ye.create(Lt||{}),anchor:ke.fromJSON(Pt||{}),focus:ke.fromJSON($e||{})});return ut}}]),se}((0,i.Record)(ue)),He={data:void 0,key:void 0,nodes:void 0},Fe=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(dt){return dt.toJSON(B)})};return B.preserveKeys&&(Pe.key=this.key),Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isDocument(B))return B;if((i.List.isList(B)||Array.isArray(B))&&(B={nodes:B}),s()(B))return se.fromJSON(B);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(se.isDocument(B))return B;var Pe=B.data,dt=Pe===void 0?{}:Pe,Lt=B.key,Pt=Lt===void 0?j.create():Lt,$e=B.nodes,ut=$e===void 0?[]:$e,zt=new se({key:Pt,data:new i.Map(dt),nodes:Ge.createList(ut)});return zt}}]),se}((0,i.Record)(He)),ze={data:void 0,key:void 0,nodes:void 0,type:void 0},qe=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(dt){return dt.toJSON(B)})};return B.preserveKeys&&(Pe.key=this.key),Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isInline(B))return B;if(typeof B=="string"&&(B={type:B}),s()(B))return se.fromJSON(B);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(se.isInline(B))return B;var Pe=B.data,dt=Pe===void 0?{}:Pe,Lt=B.key,Pt=Lt===void 0?j.create():Lt,$e=B.nodes,ut=$e===void 0?[]:$e,zt=B.type;if(typeof zt!="string")throw new Error("`Inline.fromJS` requires a `type` string.");var Ht=new se({key:Pt,type:zt,data:new i.Map(dt),nodes:Ge.createList(ut)});return Ht}},{key:"isInlineList",value:function(B){return i.List.isList(B)&&B.every(function(Pe){return se.isInline(Pe)})}}]),se}((0,i.Record)(ze)),We={key:void 0,marks:void 0,text:void 0},_t=(0,i.Record)({text:void 0,marks:void 0,annotations:void 0,decorations:void 0}),ct=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"addMark",value:function(B){B=wt.create(B);var Pe=this.marks,dt=Pe.add(B),Lt=this.set("marks",dt);return Lt}},{key:"addMarks",value:function(B){B=wt.createSet(B);var Pe=this.set("marks",this.marks.union(B));return Pe}},{key:"getLeaves",value:function(B,Pe){var dt=this.text,Lt=this.marks,Pt=[{text:dt,marks:Lt,annotations:[],decorations:[]}],$e=function(Fn,Cn){return[{text:Fn.text.slice(0,Cn),marks:Fn.marks,annotations:[].concat(oe(Fn.annotations)),decorations:[].concat(oe(Fn.decorations))},{text:Fn.text.slice(Cn),marks:Fn.marks,annotations:[].concat(oe(Fn.annotations)),decorations:[].concat(oe(Fn.decorations))}]},ut=function(Fn){var Cn=Fn==="annotations"?B.values():Pe,tr=!0,Jn=!1,ei=void 0;try{for(var Ci=Cn[Symbol.iterator](),zi;!(tr=(zi=Ci.next()).done);tr=!0){var co=zi.value,Xo=co.start,Eo=co.end,Yo=[],Xn=0,fr=!0,mr=!1,yr=void 0;try{for(var Rr=Pt[Symbol.iterator](),ai;!(fr=(ai=Rr.next()).done);fr=!0){var jt=ai.value,Pn=jt.text.length,nr=Xn;if(Xn+=Pn,Xo.offset<=nr&&Eo.offset>=nr+Pn){jt[Fn].push(co),Yo.push(jt);continue}if(Xo.offset>nr+Pn||Eo.offset<nr||Eo.offset===nr&&nr!==0){Yo.push(jt);continue}var Ir=jt,fi=void 0,Ti=void 0;if(Eo.offset<nr+Pn){var Oe=$e(Ir,Eo.offset-nr),pn=ce(Oe,2);Ir=pn[0],Ti=pn[1]}if(Xo.offset>nr){var Qn=$e(Ir,Xo.offset-nr),Sr=ce(Qn,2);fi=Sr[0],Ir=Sr[1]}Ir[Fn].push(co),fi&&Yo.push(fi),Yo.push(Ir),Ti&&Yo.push(Ti)}}catch(hr){mr=!0,yr=hr}finally{try{!fr&&Rr.return&&Rr.return()}finally{if(mr)throw yr}}Pt=Yo}}catch(hr){Jn=!0,ei=hr}finally{try{!tr&&Ci.return&&Ci.return()}finally{if(Jn)throw ei}}};ut("annotations"),ut("decorations"),Pt=Pt.map(function(Ht){return new _t(he({},Ht,{annotations:(0,i.List)(Ht.annotations),decorations:(0,i.List)(Ht.decorations)}))});var zt=(0,i.List)(Pt);return zt}},{key:"insertText",value:function(B,Pe){var dt=this.text,Lt=dt.slice(0,B)+Pe+dt.slice(B),Pt=this.set("text",Lt);return Pt}},{key:"removeMark",value:function(B){B=wt.create(B);var Pe=this.marks,dt=Pe.remove(B),Lt=this.set("marks",dt);return Lt}},{key:"removeText",value:function(B,Pe){var dt=this.text,Lt=dt.slice(0,B)+dt.slice(B+Pe),Pt=this.set("text",Lt);return Pt}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,text:this.text,marks:this.marks.toArray().map(function(dt){return dt.toJSON()})};return B.preserveKeys&&(Pe.key=this.key),Pe}},{key:"setMark",value:function(B,Pe){var dt=this.marks,Lt=wt.create(B),Pt=Lt.merge(Pe),$e=dt.remove(Lt).add(Pt),ut=this.set("marks",$e);return ut}},{key:"splitText",value:function(B){var Pe=this.text,dt=this.set("text",Pe.slice(0,B)),Lt=this.set("text",Pe.slice(B)).regenerateKey();return[dt,Lt]}},{key:"mergeText",value:function(B){var Pe=this.text+B.text,dt=this.set("text",Pe);return dt}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(se.isText(B))return B;if(typeof B=="string"&&(B={text:B}),s()(B))return se.fromJSON(B);throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(se.isText(B))return B;(0,p.A)(B.leaves==null,"As of slate@0.46, the `leaves` property of text nodes has been removed! Each individual leaf should be created as a text node instead.");var Pe=B.text,dt=Pe===void 0?"":Pe,Lt=B.marks,Pt=Lt===void 0?[]:Lt,$e=B.key,ut=$e===void 0?j.create():$e,zt=new se({key:ut,text:dt,marks:wt.createSet(Pt)});return zt}},{key:"isTextList",value:function(B){return i.List.isList(B)&&B.every(function(Pe){return se.isText(Pe)})}}]),se}((0,i.Record)(We)),Ge=function(){function Z(){_(this,Z)}return N(Z,null,[{key:"create",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Z.isNode(G))return G;if(s()(G)){var B=G.object;switch(!B&&G.kind&&(f(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),B=G.kind),B){case"block":return Me.create(G);case"document":return Fe.create(G);case"inline":return qe.create(G);case"text":return ct.create(G);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+G)}},{key:"createList",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(G)||Array.isArray(G)){var B=[];G.forEach(function(dt){if(dt&&dt.object==="text"&&dt.leaves&&Array.isArray(dt.leaves)){f(!1,"As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.");var Lt=ct.createList(dt.leaves).toArray();B=B.concat(Lt);return}var Pt=Z.create(dt);B.push(Pt)});var Pe=(0,i.List)(B);return Pe}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+G)}},{key:"createProperties",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Me.isBlock(G)||qe.isInline(G))return{data:G.data,type:G.type};if(typeof G=="string")return{type:G};if(s()(G)){var B={};return"type"in G&&(B.type=G.type),"data"in G&&(B.data=Ye.create(G.data)),B}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+G)}},{key:"fromJSON",value:function(G){var B=G.object;switch(!B&&G.kind&&(f(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),B=G.kind),B){case"block":return Me.fromJSON(G);case"document":return Fe.fromJSON(G);case"inline":return qe.fromJSON(G);case"text":return ct.fromJSON(G);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+G)}}},{key:"isNode",value:function(G){return Me.isBlock(G)||Fe.isDocument(G)||qe.isInline(G)||ct.isText(G)}},{key:"isNodeList",value:function(G){return i.List.isList(G)&&G.every(function(B){return Z.isNode(B)})}}]),Z}(),st={data:void 0,key:void 0,nodes:void 0,type:void 0},Me=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(dt){return dt.toJSON(B)})};return B.preserveKeys&&(Pe.key=this.key),Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isBlock(B))return B;if(typeof B=="string"&&(B={type:B}),s()(B))return se.fromJSON(B);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(se.isBlock(B))return B;var Pe=B.data,dt=Pe===void 0?{}:Pe,Lt=B.key,Pt=Lt===void 0?j.create():Lt,$e=B.nodes,ut=$e===void 0?[]:$e,zt=B.type;if(typeof zt!="string")throw new Error("`Block.fromJSON` requires a `type` string.");var Ht=new se({key:Pt,type:zt,data:(0,i.Map)(dt),nodes:Ge.createList(ut)});return Ht}},{key:"isBlockList",value:function(B){return i.List.isList(B)&&B.every(function(Pe){return se.isBlock(Pe)})}}]),se}((0,i.Record)(st)),ie={annotations:void 0,data:void 0,document:void 0,selection:void 0},ge=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"addAnnotation",value:function(B){B=De.create(B);var Pe=this,dt=Pe,Lt=dt.annotations,Pt=dt.document,$e=B,ut=$e.key;return B=B.updatePoints(function(zt){return zt.normalize(Pt)}),Lt=Lt.set(ut,B),Pe=Pe.set("annotations",Lt),Pe}},{key:"addMark",value:function(B,Pe){Pe=wt.create(Pe);var dt=this,Lt=dt,Pt=Lt.document;return Pt=Pt.addMark(B,Pe),dt=dt.set("document",Pt),dt}},{key:"insertNode",value:function(B,Pe){var dt=this,Lt=dt,Pt=Lt.document;return Pt=Pt.insertNode(B,Pe),dt=dt.set("document",Pt),dt=dt.mapRanges(function($e){return $e.updatePoints(function(ut){return ut.setPath(null)})}),dt}},{key:"insertText",value:function(B,Pe,dt){var Lt=this,Pt=Lt,$e=Pt.document,ut=$e.assertNode(B);return $e=$e.insertText(B,Pe,dt),ut=$e.assertNode(B),Lt=Lt.set("document",$e),Lt=Lt.mapPoints(function(zt){return zt.key===ut.key&&zt.offset>=Pe?zt.setOffset(zt.offset+dt.length):zt}),Lt}},{key:"mergeNode",value:function(B){var Pe=this,dt=Pe,Lt=dt.document,Pt=Lt.mergeNode(B);B=Lt.resolvePath(B);var $e=Y.decrement(B),ut=Lt.getNode($e),zt=Lt.getNode(B);return Pe=Pe.set("document",Pt),Pe=Pe.mapRanges(function(Ht){if(zt.object==="text"){var Fn=ut.text.length;Ht.anchor.key===zt.key&&(Ht=Ht.moveAnchorTo(ut.key,Fn+Ht.anchor.offset)),Ht.focus.key===zt.key&&(Ht=Ht.moveFocusTo(ut.key,Fn+Ht.focus.offset))}return Ht=Ht.updatePoints(function(Cn){return Cn.setPath(null)}),Ht}),Pe}},{key:"moveNode",value:function(B,Pe){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Lt=this,Pt=Lt,$e=Pt.document;return Y.isEqual(B,Pe)||($e=$e.moveNode(B,Pe,dt),Lt=Lt.set("document",$e),Lt=Lt.mapPoints(function(ut){return ut.setPath(null)})),Lt}},{key:"removeAnnotation",value:function(B){B=De.create(B);var Pe=this,dt=Pe,Lt=dt.annotations,Pt=B,$e=Pt.key;return Lt=Lt.delete($e),Pe=Pe.set("annotations",Lt),Pe}},{key:"removeMark",value:function(B,Pe){Pe=wt.create(Pe);var dt=this,Lt=dt,Pt=Lt.document;return Pt=Pt.removeMark(B,Pe),dt=dt.set("document",Pt),dt}},{key:"removeNode",value:function(B){var Pe=this,dt=Pe,Lt=dt.document,Pt=Lt.assertNode(B),$e=Pt.object==="text"?Pt:Pt.getFirstText()||Pt,ut=Pt.object==="text"?Pt:Pt.getLastText()||Pt,zt=Lt.getPreviousText($e.key),Ht=Lt.getNextText(ut.key);return Lt=Lt.removeNode(B),Pe=Pe.set("document",Lt),Pe=Pe.mapRanges(function(Fn){var Cn=Fn,tr=Cn.anchor,Jn=Cn.focus;return Pt.hasNode(tr.key)&&(Fn=zt?Fn.moveAnchorTo(zt.key,zt.text.length):Ht?Fn.moveAnchorTo(Ht.key,0):Fn.unset()),Pt.hasNode(Jn.key)&&(Fn=zt?Fn.moveFocusTo(zt.key,zt.text.length):Ht?Fn.moveFocusTo(Ht.key,0):Fn.unset()),Fn=Fn.updatePoints(function(ei){return ei.setPath(null)}),Fn}),Pe}},{key:"removeText",value:function(B,Pe,dt){var Lt=this,Pt=Lt,$e=Pt.document,ut=$e.assertNode(B);$e=$e.removeText(B,Pe,dt),Lt=Lt.set("document",$e);var zt=dt.length,Ht=Pe,Fn=Pe+zt;return Lt=Lt.mapPoints(function(Cn){return Cn.key!==ut.key?Cn:Cn.offset>=Fn?Cn.setOffset(Cn.offset-zt):Cn.offset>Ht?Cn.setOffset(Ht):Cn}),Lt}},{key:"setAnnotation",value:function(B,Pe){Pe=De.createProperties(Pe);var dt=De.create(B),Lt=dt.merge(Pe),Pt=this,$e=Pt,ut=$e.annotations,zt=dt.key;return ut=ut.set(zt,Lt),Pt=Pt.set("annotations",ut),Pt}},{key:"setNode",value:function(B,Pe){var dt=this,Lt=dt,Pt=Lt.document;return Pt=Pt.setNode(B,Pe),dt=dt.set("document",Pt),dt}},{key:"setMark",value:function(B,Pe,dt){var Lt=this,Pt=Lt,$e=Pt.document;return $e=$e.setMark(B,Pe,dt),Lt=Lt.set("document",$e),Lt}},{key:"setProperties",value:function(B){var Pe=this,dt=Pe,Lt=dt.document,Pt=B.data,$e=B.annotations,ut={};return Pt&&(ut.data=Pt),$e&&(ut.annotations=$e.map(function(zt){return zt.isSet?zt:Lt.resolveAnnotation(zt)})),Pe=Pe.merge(ut),Pe}},{key:"setSelection",value:function(B){var Pe=this,dt=Pe,Lt=dt.document,Pt=dt.selection,$e=Pt.setProperties(B);return Pt=Lt.resolveSelection($e),Pe=Pe.set("selection",Pt),Pe}},{key:"splitNode",value:function(B,Pe,dt){var Lt=this,Pt=Lt,$e=Pt.document,ut=$e.splitNode(B,Pe,dt),zt=$e.assertNode(B);return Lt=Lt.set("document",ut),Lt=Lt.mapRanges(function(Ht){var Fn=ut.getNextText(zt.key),Cn=Ht,tr=Cn.anchor,Jn=Cn.focus;return zt.key===tr.key&&Pe<=tr.offset&&(Ht=Ht.moveAnchorTo(Fn.key,tr.offset-Pe)),zt.key===Jn.key&&Pe<=Jn.offset&&(Ht=Ht.moveFocusTo(Fn.key,Jn.offset-Pe)),Ht=Ht.updatePoints(function(ei){return ei.setPath(null)}),Ht}),Lt}},{key:"mapRanges",value:function(B){var Pe=this,dt=Pe,Lt=dt.document,Pt=dt.selection,$e=dt.annotations,ut=Pt.isSet?B(Pt):Pt;ut||(ut=Pt.unset()),ut!==Pt&&(ut=Lt.createSelection(ut)),Pe=Pe.set("selection",ut);var zt=$e.map(function(Ht){var Fn=Ht.isSet?B(Ht):Ht;return Fn&&Fn!==Ht&&(Fn=Lt.createAnnotation(Fn)),Fn});return zt=zt.filter(function(Ht){return!!Ht}),Pe=Pe.set("annotations",zt),Pe}},{key:"mapPoints",value:function(B){return this.mapRanges(function(Pe){return Pe.updatePoints(B)})}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,document:this.document.toJSON(B)};return B.preserveData&&(Pe.data=this.data.toJSON(B)),B.preserveAnnotations&&(Pe.annotations=this.annotations.map(function(dt){return dt.toJSON(B)}).toObject()),B.preserveSelection&&(Pe.selection=this.selection.toJSON(B)),Pe}},{key:"change",value:function(){(0,p.A)(!1,"As of Slate 0.42.0, value object are no longer schema-aware, and the `value.change()` method is no longer available. Use the `editor.change()` method on the new `Editor` controller instead.")}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new i.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new i.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new i.List:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?Fe.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new i.List:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new i.List:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){(0,p.A)(!1,"As of Slate 0.42.0, the `value.history` model no longer exists, and the history is stored in `value.data` instead using plugins.")}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(se.isValue(B))return B;if(s()(B))return se.fromJSON(B,Pe);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isValue(B))return{annotations:B.annotations,data:B.data};if(s()(B)){var Pe={};return"annotations"in B&&(Pe.annotations=De.createMap(B.annotations)),"data"in B&&(Pe.data=Ye.create(B.data)),Pe}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.data,dt=Pe===void 0?{}:Pe,Lt=B.annotations,Pt=Lt===void 0?{}:Lt,$e=B.document,ut=$e===void 0?{}:$e,zt=B.selection,Ht=zt===void 0?{}:zt;if(dt=Ye.fromJSON(dt),ut=Fe.fromJSON(ut),Ht=ut.createSelection(Ht),Pt=De.createMap(Pt),Ht.isUnset){var Fn=ut.getFirstText();Fn&&(Ht=Ht.moveToStartOfNode(Fn)),Ht=ut.createSelection(Ht)}var Cn=new se({annotations:Pt,data:dt,document:ut,selection:Ht});return Cn}}]),se}((0,i.Record)(ie)),z=h()("slate:operation:apply");function be(Z,se){se=at.create(se);var G=se,B=G.type;switch(z(B,se),B){case"add_annotation":{var Pe=se,dt=Pe.annotation,Lt=Z.addAnnotation(dt);return Lt}case"add_mark":{var Pt=se,$e=Pt.path,ut=Pt.mark,zt=Z.addMark($e,ut);return zt}case"insert_node":{var Ht=se,Fn=Ht.path,Cn=Ht.node,tr=Z.insertNode(Fn,Cn);return tr}case"insert_text":{var Jn=se,ei=Jn.path,Ci=Jn.offset,zi=Jn.text,co=Jn.marks,Xo=Z.insertText(ei,Ci,zi,co);return Xo}case"merge_node":{var Eo=se,Yo=Eo.path,Xn=Z.mergeNode(Yo);return Xn}case"move_node":{var fr=se,mr=fr.path,yr=fr.newPath,Rr=Z.moveNode(mr,yr);return Rr}case"remove_annotation":{var ai=se,jt=ai.annotation,Pn=Z.removeAnnotation(jt);return Pn}case"remove_mark":{var nr=se,Ir=nr.path,fi=nr.mark,Ti=Z.removeMark(Ir,fi);return Ti}case"remove_node":{var Oe=se,pn=Oe.path,Qn=Z.removeNode(pn);return Qn}case"remove_text":{var Sr=se,hr=Sr.path,kr=Sr.offset,Ve=Sr.text,Ot=Z.removeText(hr,kr,Ve);return Ot}case"set_annotation":{var wn=se,Wt=wn.properties,Yt=wn.newProperties,zn=Z.setAnnotation(Wt,Yt);return zn}case"set_mark":{var Nr=se,si=Nr.path,Ki=Nr.properties,Bi=Nr.newProperties,Xi=Z.setMark(si,Ki,Bi);return Xi}case"set_node":{var vo=se,ea=vo.path,la=vo.newProperties,ss=Z.setNode(ea,la);return ss}case"set_selection":{var Rs=se,Ds=Rs.newProperties,Is=Z.setSelection(Ds);return Is}case"set_value":{var nu=se,Ls=nu.newProperties,gu=Z.setProperties(Ls);return gu}case"split_node":{var Us=se,Iu=Us.path,Wu=Us.position,rl=Us.properties,Hu=Z.splitNode(Iu,Wu,rl);return Hu}default:throw new Error('Unknown operation type: "'+B+'".')}}var Qe=h()("slate:operation:invert");function Bt(Z){Z=at.create(Z);var se=Z,G=se.type;switch(Qe(G,Z),G){case"move_node":{var B=Z,Pe=B.newPath,dt=B.path;if(Y.isEqual(Pe,dt))return Z;var Lt=Y.transform(dt,Z).first(),Pt=Y.transform(Y.increment(dt),Z).first(),$e=Z.set("path",Lt).set("newPath",Pt);return $e}case"merge_node":{var ut=Z,zt=ut.path,Ht=Y.decrement(zt),Fn=Z.set("type","split_node").set("path",Ht);return Fn}case"split_node":{var Cn=Z,tr=Cn.path,Jn=Y.increment(tr),ei=Z.set("type","merge_node").set("path",Jn);return ei}case"set_annotation":case"set_node":case"set_value":case"set_selection":case"set_mark":{var Ci=Z,zi=Ci.properties,co=Ci.newProperties,Xo=Z.set("properties",co).set("newProperties",zi);return Xo}case"insert_node":case"insert_text":{var Eo=Z.set("type",G.replace("insert_","remove_"));return Eo}case"remove_node":case"remove_text":{var Yo=Z.set("type",G.replace("remove_","insert_"));return Yo}case"add_annotation":case"add_mark":{var Xn=Z.set("type",G.replace("add_","remove_"));return Xn}case"remove_annotation":case"remove_mark":{var fr=Z.set("type",G.replace("remove_","add_"));return fr}default:throw new Error('Unknown operation type: "'+G+'".')}}var nn={add_mark:["path","mark","data"],add_annotation:["annotation","data"],insert_node:["path","node","data"],insert_text:["path","offset","text","data"],merge_node:["path","position","properties","target","data"],move_node:["path","newPath","data"],remove_annotation:["annotation","data"],remove_mark:["path","mark","data"],remove_node:["path","node","data"],remove_text:["path","offset","text","data"],set_annotation:["properties","newProperties","data"],set_mark:["path","properties","newProperties","data"],set_node:["path","properties","newProperties","data"],set_selection:["properties","newProperties","data"],set_value:["properties","newProperties","data"],split_node:["path","position","properties","target","data"]},bt={annotation:void 0,data:void 0,length:void 0,mark:void 0,marks:void 0,newPath:void 0,newProperties:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,target:void 0,text:void 0,type:void 0},at=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"apply",value:function(B){var Pe=be(B,this);return Pe}},{key:"invert",value:function(){var B=Bt(this);return B}},{key:"toJSON",value:function(){var B=this.object,Pe=this.type,dt={object:B,type:Pe},Lt=nn[Pe],Pt=!0,$e=!1,ut=void 0;try{for(var zt=Lt[Symbol.iterator](),Ht;!(Pt=(Ht=zt.next()).done);Pt=!0){var Fn=Ht.value,Cn=this[Fn];if((Fn==="annotation"||Fn==="mark"||Fn==="marks"||Fn==="node"||Fn==="path"||Fn==="newPath")&&(Cn=Cn.toJSON()),Fn==="properties"&&Pe==="merge_node"){var tr={};"data"in Cn&&(tr.data=Cn.data.toJS()),"type"in Cn&&(tr.type=Cn.type),Cn=tr}if((Fn==="properties"||Fn==="newProperties")&&Pe==="set_annotation"){var Jn={};"anchor"in Cn&&(Jn.anchor=Cn.anchor.toJS()),"focus"in Cn&&(Jn.focus=Cn.focus.toJS()),"key"in Cn&&(Jn.key=Cn.key),"data"in Cn&&(Jn.data=Cn.data.toJS()),"type"in Cn&&(Jn.type=Cn.type),Cn=Jn}if((Fn==="properties"||Fn==="newProperties")&&Pe==="set_mark"){var ei={};"data"in Cn&&(ei.data=Cn.data.toJS()),"type"in Cn&&(ei.type=Cn.type),Cn=ei}if((Fn==="properties"||Fn==="newProperties")&&Pe==="set_node"){var Ci={};"data"in Cn&&(Ci.data=Cn.data.toJS()),"type"in Cn&&(Ci.type=Cn.type),Cn=Ci}if((Fn==="properties"||Fn==="newProperties")&&Pe==="set_selection"){var zi={};"anchor"in Cn&&(zi.anchor=Cn.anchor.toJSON()),"focus"in Cn&&(zi.focus=Cn.focus.toJSON()),"isFocused"in Cn&&(zi.isFocused=Cn.isFocused),"marks"in Cn&&(zi.marks=Cn.marks&&Cn.marks.toJSON()),Cn=zi}if((Fn==="properties"||Fn==="newProperties")&&Pe==="set_value"){var co={};"data"in Cn&&(co.data=Cn.data.toJS()),Cn=co}if(Fn==="properties"&&Pe==="split_node"){var Xo={};"data"in Cn&&(Xo.data=Cn.data.toJS()),"type"in Cn&&(Xo.type=Cn.type),Cn=Xo}Fn==="data"&&(Cn=Cn.toJSON()),dt[Fn]=Cn}}catch(Eo){$e=!0,ut=Eo}finally{try{!Pt&&zt.return&&zt.return()}finally{if($e)throw ut}}return dt}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isOperation(B))return B;if(s()(B))return se.fromJSON(B);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(se.isOperation(B))return B;var Pe=B.type,dt=nn[Pe],Lt={type:Pe};if(!dt)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+Pe+'"');var Pt=!0,$e=!1,ut=void 0;try{for(var zt=dt[Symbol.iterator](),Ht;!(Pt=(Ht=zt.next()).done);Pt=!0){var Fn=Ht.value,Cn=B[Fn];if(Fn==="data"&&Cn===void 0&&(Cn={}),Cn===void 0)throw new Error('`Operation.fromJSON` was passed a "'+Pe+'" operation without the required "'+Fn+'" attribute.');Fn==="annotation"&&(Cn=De.create(Cn)),(Fn==="path"||Fn==="newPath")&&(Cn=Y.create(Cn)),Fn==="mark"&&(Cn=wt.create(Cn)),Fn==="node"&&(Cn=Ge.create(Cn)),(Fn==="properties"||Fn==="newProperties")&&Pe==="set_annotation"&&(Cn=De.createProperties(Cn)),(Fn==="properties"||Fn==="newProperties")&&Pe==="set_mark"&&(Cn=wt.createProperties(Cn)),(Fn==="properties"||Fn==="newProperties")&&(Pe==="set_node"||Pe==="merge_node"||Pe==="split_node")&&(Cn=Ge.createProperties(Cn)),(Fn==="properties"||Fn==="newProperties")&&Pe==="set_selection"&&(Cn=At.createProperties(Cn)),(Fn==="properties"||Fn==="newProperties")&&Pe==="set_value"&&(Cn=ge.createProperties(Cn)),Fn==="data"&&(Cn=(0,i.Map)(Cn)),Lt[Fn]=Cn}}catch(Jn){$e=!0,ut=Jn}finally{try{!Pt&&zt.return&&zt.return()}finally{if($e)throw ut}}var tr=new se(Lt);return tr}},{key:"isOperationList",value:function(B){return i.List.isList(B)&&B.every(function(Pe){return se.isOperation(Pe)})}}]),se}((0,i.Record)(bt)),$t={operations:void 0,value:void 0},On=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe={object:this.object,value:this.value.toJSON(B),operations:this.operations.toArray().map(function(dt){return dt.toJSON(B)})};return Pe}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(se.isChange(B))return B;if(s()(B))return se.fromJSON(B);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.value,dt=B.operations,Lt=dt===void 0?[]:dt,Pt=new se({value:ge.create(Pe),operations:at.createList(Lt)});return Pt}}]),se}((0,i.Record)($t));function Ct(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function se(B,Pe,dt){var Lt=B.type,Pt=B.args,$e=Z[Lt];if(!$e)return dt();Pe.command.apply(Pe,[$e].concat(oe(Pt)))}function G(B,Pe){for(var dt in Z)B.registerCommand(dt);return Pe()}return{onCommand:se,onConstruct:G}}var Zt=55296,Wn=57343,Zn=/\s/,xt=/['\u2018\u2019]/,Xe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function gn(Z){return Zt<=Z&&Z<=Wn}function Qt(Z,se,G){if(Z===55356){var B=se.charCodeAt(G+1);return B<=57343&&B>=57339}return!1}function Dt(Z){return Z<=65039&&Z>=65024}function hn(Z){return Z===10084||Z===9794||Z===9792||Z===9760||Z===9877||Z===9992||Z===9711}function cn(Z,se){if(Zn.test(Z))return!1;if(xt.test(Z)){var G=se.charAt(0),B=an(G);G=se.slice(0,B);var Pe=se.slice(B);if(cn(G,Pe))return!0}return!Xe.test(Z)}function an(Z){return gn(Z.charCodeAt(0))?2:1}function Or(Z,se,G){var B=0;if(Z==="")return 1;for(var Pe=0;Pe<se;Pe++)for(var dt=null,Lt=Z.charCodeAt(B);Lt;){if(gn(Lt)){var Pt=Qt(Lt,Z,B);if(G){if(!Pt&&dt&&dt!=="ZWJ"||Pt&&dt&&dt!=="SURR")break}else if(dt==="SURR"||dt==="BMP")break;B+=2,dt=Pt?"MOD":"SURR",Lt=Z.charCodeAt(B);continue}if(Lt===8205){B+=1,dt="ZWJ",Lt=Z.charCodeAt(B);continue}if(hn(Lt)){if(G&&dt==="VAR"||dt&&dt!=="ZWJ"&&dt!=="VAR")break;B+=1,dt="BMP",Lt=Z.charCodeAt(B);continue}if(Dt(Lt)){if(!G&&dt&&dt!=="ZWJ")break;B+=1,dt="VAR",Lt=Z.charCodeAt(B);continue}if(G){var $e=Z.charCodeAt(B+1);if(Qt($e,Z,B+1)){B+=3,dt="MOD",Lt=Z.charCodeAt(B);continue}}else if(dt==="MOD"){B+=1;break}dt===null&&(B+=1);break}return B}function Ln(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Z=Z.slice(0,se),Z=(0,d.reverse)(Z),Or(Z,G)}function En(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Z=Z.slice(se),Or(Z,G,!0)}function Gn(Z){for(var se=0,G=0,B=!1,Pe=void 0;Pe=Z.charAt(G);){var dt=an(Pe);Pe=Z.slice(G,G+dt);var Lt=Z.slice(G+dt);if(cn(Pe,Lt))B=!0,se+=dt;else if(!B)se+=dt;else break;G+=dt}return se}function rr(Z,se){Z=Z.slice(0,se),Z=(0,d.reverse)(Z);var G=Gn(Z);return G}function sr(Z,se){Z=Z.slice(se);var G=Gn(Z);return G}var pi={getCharLength:an,getCharOffset:Or,getCharOffsetBackward:Ln,getCharOffsetForward:En,getWordOffset:Gn,getWordOffsetBackward:rr,getWordOffsetForward:sr,isSurrogate:gn,isWord:cn};function yi(Z,se){se.isExpanded&&Z.deleteAtRange(se);var G=Z.value,B=G.document,Pe=se,dt=Pe.start,Lt=Pe.end;return B.hasDescendant(dt.path)?se=se.moveToStart():se=se.moveTo(Lt.path,0).normalize(B),se}var jr={};jr.addMarkAtRange=function(Z,se,G){if(!se.isCollapsed){var B=Z.value,Pe=B.document,dt=se.start,Lt=se.end,Pt=Pe.getTextsAtRange(se);Z.withoutNormalizing(function(){Pt.forEach(function($e){var ut=$e.key,zt=0,Ht=$e.text.length;ut===dt.key&&(zt=dt.offset),ut===Lt.key&&(Ht=Lt.offset),ut===dt.key&&ut===Lt.key&&(Ht=Lt.offset-dt.offset),Z.addMarkByKey(ut,zt,Ht,G)})})}},jr.addMarksAtRange=function(Z,se,G){G.forEach(function(B){return Z.addMarkAtRange(se,B)})},jr.deleteAtRange=function(Z,se){Z.snapshotSelection();var G=Z.value,B=se.start,Pe=se.end,dt=B.key,Lt=B.offset,Pt=Pe.key,$e=Pe.offset,ut=G.document,zt=ut.hasVoidParent(dt,Z),Ht=ut.hasVoidParent(Pt,Z),Fn=ut.getClosestBlock(dt),Cn=ut.getClosestBlock(Pt),tr=Lt===0&&$e===0&&zt===!1&&dt===Fn.getFirstText().key&&Pt===Cn.getFirstText().key&&dt!==Pt;if(tr&&Ht){var Jn=ut.getPreviousText(Pt);Pt=Jn.key,$e=Jn.text.length,Ht=ut.hasVoidParent(Pt,Z)}Z.withoutNormalizing(function(){for(;zt;){var ei=ut.getClosestVoid(dt,Z),Ci=ut.getNextText(dt);if(Z.removeNodeByKey(ei.key),dt===Pt||!Ci)return;ut=Z.value.document,dt=Ci.key,Lt=0,zt=ut.hasVoidParent(dt,Z)}for(;Ht;){var zi=ut.getClosestVoid(Pt,Z),co=ut.getPreviousText(Pt);Z.removeNodeByKey(zi.key),ut=Z.value.document,Pt=co.key,$e=co.text.length,Ht=ut.hasVoidParent(Pt,Z)}if(dt===Pt&&tr){Z.removeNodeByKey(Fn.key);return}else if(dt===Pt){var Xo=Lt,Eo=$e-Lt;Z.removeTextByKey(dt,Xo,Eo);return}else{Fn=ut.getClosestBlock(dt),Cn=ut.getClosestBlock(Pt);var Yo=ut.getNode(dt),Xn=ut.getNode(Pt),fr=Yo.text.length-Lt,mr=$e,yr=ut.getCommonAncestor(dt,Pt),Rr=yr.getFurthestChild(dt),ai=yr.getFurthestChild(Pt),jt=ut.getParent(Fn.key),Pn=jt.nodes.indexOf(Fn),nr=jt.nodes.indexOf(Cn),Ir=void 0;for(Ir=Yo;Ir.key!==Rr.key;){var fi=ut.getParent(Ir.key),Ti=fi.nodes.indexOf(Ir),Oe=fi.nodes.slice(Ti+1);Oe.reverse().forEach(function(Xi){Z.removeNodeByKey(Xi.key)}),Ir=fi}var pn=yr.nodes.indexOf(Rr),Qn=yr.nodes.indexOf(ai),Sr=yr.nodes.slice(pn+1,Qn);for(Sr.reverse().forEach(function(Xi){Z.removeNodeByKey(Xi.key)}),Ir=Xn;Ir.key!==ai.key;){var hr=ut.getParent(Ir.key),kr=hr.nodes.indexOf(Ir),Ve=hr.nodes.slice(0,kr);Ve.reverse().forEach(function(Xi){Z.removeNodeByKey(Xi.key)}),Ir=hr}if(fr!==0&&Z.removeTextByKey(dt,Lt,fr),mr!==0&&Z.removeTextByKey(Pt,0,$e),Fn.key!==Cn.key){ut=Z.value.document;var Ot=void 0,wn=!0,Wt=!1,Yt=void 0;try{for(var zn=ut.ancestors(Cn.key)[Symbol.iterator](),Nr;!(wn=(Nr=zn.next()).done);wn=!0){var si=Nr.value,Ki=ce(si,1),Bi=Ki[0];if(Bi.nodes.size>1)break;Ot=Bi}}catch(Xi){Wt=!0,Yt=Xi}finally{try{!wn&&zn.return&&zn.return()}finally{if(Wt)throw Yt}}nr!==Pn+1&&Z.moveNodeByKey(Cn.key,jt.key,Pn+1),tr?Z.removeNodeByKey(Fn.key):Z.mergeNodeByKey(Cn.key),Ot&&Z.removeNodeByKey(Ot.key)}}})},jr.deleteBackwardAtRange=function(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(G!==0){var B=Z.value,Pe=B.document,dt=se,Lt=dt.start,Pt=dt.focus;if(se.isExpanded){Z.deleteAtRange(se);return}var $e=Pe.getClosestVoid(Lt.path,Z);if($e){Z.removeNodeByKey($e.key);return}if(!Lt.isAtStartOfNode(Pe)){var ut=Pe.getClosestBlock(Lt.path);if(Pe.nodes.size!==1&&ut&&ut.text===""&&ut.nodes.size===1){Z.removeNodeByKey(ut.key);return}var zt=Pe.getDescendant(Lt.path);if(Lt.isAtStartOfNode(zt)){var Ht=Pe.getPreviousText(zt.key),Fn=Pe.getClosestInline(zt.key);Fn&&Ht.text===""&&(Ht=Pe.getPreviousText(Ht.key));var Cn=Pe.getClosestBlock(Ht.key),tr=Pe.getClosestVoid(Ht.key,Z);if(tr){Z.removeNodeByKey(tr.key);return}if(G===1&&Cn!==ut){se=se.moveAnchorTo(Ht.key,Ht.text.length),Z.deleteAtRange(se);return}}if(G<=Pt.offset){se=se.moveFocusBackward(G),Z.deleteAtRange(se);return}for(var Jn=zt,ei=0,Ci=Pt.offset;G>Ci;){Jn=Pe.getPreviousText(Jn.key);var zi=Ci+Jn.text.length;if(G<=zi){ei=zi-G;break}else Ci=zi}se=se.moveAnchorTo(Jn.key,ei),Z.deleteAtRange(se)}}},jr.deleteCharBackwardAtRange=function(Z,se){if(se.isExpanded){Z.deleteAtRange(se);return}var G=Z.value,B=G.document,Pe=se.start,dt=B.getClosestBlock(Pe.path),Lt=dt.getOffset(Pe.key),Pt=Lt+Pe.offset,$e=dt.text,ut=pi.getCharOffsetBackward($e,Pt);Z.deleteBackwardAtRange(se,ut)},jr.deleteCharForwardAtRange=function(Z,se){if(se.isExpanded){Z.deleteAtRange(se);return}var G=Z.value,B=G.document,Pe=se.start,dt=B.getClosestBlock(Pe.path),Lt=dt.getOffset(Pe.key),Pt=Lt+Pe.offset,$e=dt.text,ut=pi.getCharOffsetForward($e,Pt);Z.deleteForwardAtRange(se,ut)},jr.deleteForwardAtRange=function(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(G!==0){var B=Z.value,Pe=B.document,dt=se,Lt=dt.start,Pt=dt.focus;if(se.isExpanded){Z.deleteAtRange(se);return}var $e=Pe.getClosestVoid(Lt.path,Z);if($e){Z.removeNodeByKey($e.key);return}var ut=Pe.getClosestBlock(Lt.path);if(ut&&!Z.isVoid(ut)&&ut.text===""&&Pe.nodes.size!==1){var zt=Pe.getNextBlock(ut.key);Z.removeNodeByKey(ut.key),zt&&zt.key&&Z.moveToStartOfNode(zt);return}if(!Lt.isAtEndOfNode(Pe)){var Ht=Pe.getDescendant(Lt.path);if(Lt.isAtEndOfNode(Ht)){var Fn=Pe.getNextText(Ht.key),Cn=Pe.getClosestBlock(Fn.key),tr=Pe.getClosestVoid(Fn.key,Z);if(tr){Z.removeNodeByKey(tr.key);return}if(G===1&&Cn!==ut){se=se.moveFocusTo(Fn.key,0),Z.deleteAtRange(se);return}}if(G<=Ht.text.length-Pt.offset){se=se.moveFocusForward(G),Z.deleteAtRange(se);return}for(var Jn=Ht,ei=Pt.offset,Ci=Ht.text.length-Pt.offset;G>Ci;){Jn=Pe.getNextText(Jn.key);var zi=Ci+Jn.text.length;if(G<=zi){ei=G-Ci;break}else Ci=zi}se=se.moveFocusTo(Jn.key,ei),Z.deleteAtRange(se)}}},jr.deleteLineBackwardAtRange=function(Z,se){if(se.isExpanded){Z.deleteAtRange(se);return}var G=Z.value,B=G.document,Pe=se.start,dt=B.getClosestBlock(Pe.path),Lt=dt.getOffset(Pe.key),Pt=Lt+Pe.offset;Z.deleteBackwardAtRange(se,Pt)},jr.deleteLineForwardAtRange=function(Z,se){if(se.isExpanded){Z.deleteAtRange(se);return}var G=Z.value,B=G.document,Pe=se.start,dt=B.getClosestBlock(Pe.path),Lt=dt.getOffset(Pe.key),Pt=Lt+Pe.offset;Z.deleteForwardAtRange(se,dt.text.length-Pt)},jr.deleteWordBackwardAtRange=function(Z,se){if(se.isExpanded){Z.deleteAtRange(se);return}var G=Z.value,B=G.document,Pe=se.start,dt=B.getClosestBlock(Pe.path),Lt=dt.getOffset(Pe.key),Pt=Lt+Pe.offset,$e=dt.text,ut=Pt===0?1:pi.getWordOffsetBackward($e,Pt);Z.deleteBackwardAtRange(se,ut)},jr.deleteWordForwardAtRange=function(Z,se){if(se.isExpanded){Z.deleteAtRange(se);return}var G=Z.value,B=G.document,Pe=se.start,dt=B.getClosestBlock(Pe.path),Lt=dt.getOffset(Pe.key),Pt=Lt+Pe.offset,$e=dt.text,ut=pi.getWordOffsetForward($e,Pt),zt=ut===0?1:ut;Z.deleteForwardAtRange(se,zt)},jr.insertBlockAtRange=function(Z,se,G){se=yi(Z,se),G=Me.create(G);var B=Z.value,Pe=B.document,dt=se,Lt=dt.start,Pt=Lt.key,$e=Lt.offset,ut=Pe.getClosestBlock(Pt),zt=Pe.getClosestInline(Pt),Ht=Pe.getParent(ut.key),Fn=Ht.nodes.indexOf(ut),Cn=ui(Z,se);if(Cn==="before")Z.insertNodeByKey(Ht.key,Fn,G);else if(Cn==="behind")Z.insertNodeByKey(Ht.key,Fn+1,G);else{if(zt&&Z.isVoid(zt)){var tr=Lt.isAtEndOfNode(zt),Jn=tr?Pe.getNextText(Pt):Pe.getPreviousText(Pt),ei=tr?se.moveToStartOfNode(Jn):se.moveToEndOfNode(Jn);Pt=ei.start.key,$e=ei.start.offset}Z.withoutNormalizing(function(){Z.splitDescendantsByKey(ut.key,Pt,$e),Z.insertNodeByKey(Ht.key,Fn+1,G)})}};var ui=function(se,G){var B=se.value,Pe=B.document,dt=G.start,Lt=dt.key,Pt=Pe.getClosestBlock(Lt),$e=Pe.getClosestInline(Lt);return se.isVoid(Pt)?dt.isAtEndOfNode(Pt)?"behind":"before":!$e&&Pt.text===""?"behind":dt.isAtStartOfNode(Pt)?"before":dt.isAtEndOfNode(Pt)?"behind":"split"};jr.insertFragmentAtRange=function(Z,se,G){Z.withoutNormalizing(function(){if(se=yi(Z,se),!!G.nodes.size){G=G.mapDescendants(function(Pn){return Pn.regenerateKey()});var B=se,Pe=B.start,dt=Z.value,Lt=dt.document,Pt=Lt.getDescendant(Pe.path),$e=Lt.getClosestBlock(Pt.key),ut=$e.getFurthestChild(Pt.key),zt=Pe.isAtStartOfNode($e),Ht=Lt.getParent($e.key),Fn=Ht.nodes.indexOf($e),Cn=G.getBlocks(),tr=G.nodes.first(),Jn=G.nodes.last(),ei=Cn.first(),Ci=Cn.last(),zi=bi(G,Lt,$e.key);if(ei===Ci&&Z.isVoid(ei)){Z.insertBlockAtRange(se,ei);return}if(zi===G&&(tr.hasBlockChildren()||Jn.hasBlockChildren())){var co=ui(Z,se),Xo=co==="before"?G.nodes:G.nodes.reverse();Xo.forEach(function(Pn){Z.insertBlockAtRange(se,Pn)});return}if(ei!==Ci){var Eo=zi.getFurthest(ei.key,function(Pn){return Pn.nodes.size===1}),Yo=Eo||ei,Xn=Ht.nodes.indexOf($e),fr=zi.removeNode(Yo.key);fr.nodes.forEach(function(Pn,nr){var Ir=Xn+nr+1;Z.insertNodeByKey(Ht.key,Ir,Pn)})}if(Pe.offset!==0&&Z.splitDescendantsByKey(ut.key,Pe.key,Pe.offset),Lt=Z.value.document,Pt=Lt.getDescendant(Pe.key),$e=Lt.getClosestBlock(Pe.key),ut=$e.getFurthestChild(Pt.key),ei!==Ci){var mr=zt?ut:$e.getNextSibling(ut.key),yr=mr?$e.nodes.skipUntil(function(Pn){return Pn.key===mr.key}):(0,i.List)(),Rr=Ci.nodes.size;yr.forEach(function(Pn,nr){var Ir=Rr+nr;Z.moveNodeByKey(Pn.key,Ci.key,Ir)})}if(!Z.isVoid($e)&&$e.text===""&&!$e.findDescendant(function(Pn){return Z.isVoid(Pn)}))Z.removeNodeByKey($e.key),Z.insertNodeByKey(Ht.key,Fn,ei);else{var ai=$e.getFurthestChild(Pt.key),jt=$e.nodes.indexOf(ai);ei.nodes.forEach(function(Pn,nr){var Ir=Pe.offset===0?0:1,fi=jt+nr+Ir;Z.insertNodeByKey($e.key,fi,Pn)})}}})};var bi=function(se,G,B){var Pe=function(Fn){for(var Cn=Fn;Cn.nodes.size===1&&Cn.nodes.first().object==="block";)Cn=Cn.nodes.first();return Cn===Fn?null:Cn},dt=function(Fn,Cn){return Cn.size>=Fn.size&&Fn.every(function(tr,Jn){return Cn.get(Jn).type===tr.type})},Lt=function(Fn,Cn){var tr=Fn.size-Cn.size;if(tr<0)return se;for(var Jn=0;Jn<Cn.size;Jn++)for(var ei=0;ei<=tr;ei++)if(dt(Cn.slice(Jn),Fn.slice(ei)))return Cn.get(Jn);return se},Pt=function(Fn,Cn){return Fn.getAncestors(Cn).slice(1).push(Fn.getNode(Cn)).reverse()},$e=Pe(se);if(!$e)return se;var ut=Pt(G,B),zt=Pt(se,$e.key);return Lt(ut,zt)};jr.insertInlineAtRange=function(Z,se,G){G=qe.create(G),Z.withoutNormalizing(function(){se=yi(Z,se);var B=Z.value,Pe=B.document,dt=se,Lt=dt.start,Pt=Pe.getParent(Lt.path),$e=Pe.assertDescendant(Lt.path),ut=Pt.nodes.indexOf($e);Z.isVoid(Pt)||(Z.splitNodeByPath(Lt.path,Lt.offset),Z.insertNodeByKey(Pt.key,ut+1,G))})},jr.insertTextAtRange=function(Z,se,G,B){Z.withoutNormalizing(function(){se=yi(Z,se);var Pe=Z.value,dt=Pe.document,Lt=se,Pt=Lt.start,$e=Pt.offset,ut=dt.getParent(Pt.path);Z.isVoid(ut)||Z.insertTextByPath(Pt.path,$e,G,B)})},jr.removeMarkAtRange=function(Z,se,G){if(!se.isCollapsed){var B=Z.value,Pe=B.document,dt=Pe.getTextsAtRange(se),Lt=se.start,Pt=se.end;Z.withoutNormalizing(function(){dt.forEach(function($e){var ut=$e.key,zt=0,Ht=$e.text.length;ut===Lt.key&&(zt=Lt.offset),ut===Pt.key&&(Ht=Pt.offset),ut===Lt.key&&ut===Pt.key&&(Ht=Pt.offset-Lt.offset),Z.removeMarkByKey(ut,zt,Ht,G)})})}},jr.setBlocksAtRange=function(Z,se,G){var B=Z.value,Pe=B.document,dt=Pe.getLeafBlocksAtRange(se),Lt=se.start,Pt=se.end,$e=se.isCollapsed,ut=Pe.hasVoidParent(Lt.path,Z),zt=Pe.getClosestBlock(Lt.path),Ht=Pe.getClosestBlock(Pt.key),Fn=$e===!1&&Lt.offset===0&&Pt.offset===0&&ut===!1&&Lt.key===zt.getFirstText().key&&Pt.key===Ht.getFirstText().key,Cn=Fn?dt.slice(0,-1):dt;Z.withoutNormalizing(function(){Cn.forEach(function(tr){Z.setNodeByKey(tr.key,G)})})},jr.setInlinesAtRange=function(Z,se,G){var B=Z.value,Pe=B.document,dt=Pe.getLeafInlinesAtRange(se);Z.withoutNormalizing(function(){dt.forEach(function(Lt){Z.setNodeByKey(Lt.key,G)})})},jr.splitBlockAtRange=function(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;se=yi(Z,se);for(var B=se,Pe=B.start,dt=B.end,Lt=Z.value,Pt=Lt,$e=Pt.document,ut=$e.assertDescendant(Pe.path),zt=$e.getClosestBlock(ut.key),Ht=0;zt&&zt.object==="block"&&Ht<G;)ut=zt,zt=$e.getClosestBlock(zt.key),Ht++;Z.withoutNormalizing(function(){if(Z.splitDescendantsByKey(ut.key,Pe.path,Pe.offset),Lt=Z.value,$e=Lt.document,se.isExpanded){se.isBackward&&(se=se.flip());var Fn=$e.getNextBlock(ut.key);se=se.moveAnchorToStartOfNode(Fn),se=se.setFocus(se.focus.setPath(null)),Pe.path.equals(dt.path)&&(se=se.moveFocusTo(se.anchor.key,dt.offset-Pe.offset)),se=$e.resolveRange(se),Z.deleteAtRange(se)}})},jr.splitInlineAtRange=function(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0;se=yi(Z,se);for(var B=se,Pe=B.start,dt=Z.value,Lt=dt.document,Pt=Lt.assertDescendant(Pe.path),$e=Lt.getClosestInline(Pt.key),ut=0;$e&&$e.object==="inline"&&ut<G;)Pt=$e,$e=Lt.getClosestInline($e.key),ut++;Z.splitDescendantsByKey(Pt.key,Pe.path,Pe.offset)},jr.toggleMarkAtRange=function(Z,se,G){if(!se.isCollapsed){G=wt.create(G);var B=Z.value,Pe=B.document,dt=Pe.getActiveMarksAtRange(se),Lt=dt.some(function(Pt){return Pt.equals(G)});Lt?Z.removeMarkAtRange(se,G):Z.addMarkAtRange(se,G)}},jr.unwrapBlockAtRange=function(Z,se,G){G=Ge.createProperties(G);var B=Z.value,Pe=B.document,dt=Pe.getLeafBlocksAtRange(se),Lt=dt.map(function(Pt){return Pe.getClosest(Pt.key,function($e){return!($e.object!=="block"||G.type!=null&&$e.type!==G.type||G.data!=null&&!$e.data.isSuperset(G.data))})}).filter(function(Pt){return Pt}).toOrderedSet().toList();Z.withoutNormalizing(function(){Lt.forEach(function(Pt){var $e=Pt.nodes.first(),ut=Pt.nodes.last(),zt=Z.value.document.getParent(Pt.key),Ht=zt.nodes.indexOf(Pt),Fn=Pt.nodes.filter(function(ei){return dt.some(function(Ci){return ei===Ci||ei.hasDescendant(Ci.key)})}),Cn=Fn.first(),tr=Fn.last();if($e===Cn&&ut===tr)Pt.nodes.forEach(function(ei,Ci){Z.moveNodeByKey(ei.key,zt.key,Ht+Ci)}),Z.removeNodeByKey(Pt.key);else if(ut===tr)Pt.nodes.skipUntil(function(ei){return ei===Cn}).forEach(function(ei,Ci){Z.moveNodeByKey(ei.key,zt.key,Ht+1+Ci)});else if($e===Cn)Pt.nodes.takeUntil(function(ei){return ei===tr}).push(tr).forEach(function(ei,Ci){Z.moveNodeByKey(ei.key,zt.key,Ht+Ci)});else{var Jn=Cn.getFirstText();Z.splitDescendantsByKey(Pt.key,Jn.key,0),Pe=Z.value.document,Fn.forEach(function(ei,Ci){if(Ci===0){var zi=ei;ei=Pe.getNextBlock(ei.key),Z.removeNodeByKey(zi.key)}Z.moveNodeByKey(ei.key,zt.key,Ht+1+Ci)})}})})},jr.unwrapInlineAtRange=function(Z,se,G){G=Ge.createProperties(G);var B=Z.value,Pe=B.document,dt=Pe.getTextsAtRange(se),Lt=dt.map(function(Pt){return Pe.getClosest(Pt.key,function($e){return!($e.object!=="inline"||G.type!=null&&$e.type!==G.type||G.data!=null&&!$e.data.isSuperset(G.data))})}).filter(function(Pt){return Pt}).toOrderedSet().toList();Z.withoutNormalizing(function(){Lt.forEach(function(Pt){var $e=Z.value.document.getParent(Pt.key),ut=$e.nodes.indexOf(Pt);Pt.nodes.forEach(function(zt,Ht){Z.moveNodeByKey(zt.key,$e.key,ut+Ht)}),Z.removeNodeByKey(Pt.key)})})},jr.wrapBlockAtRange=function(Z,se,G){G=Me.create(G),G=G.set("nodes",G.nodes.clear());var B=Z.value,Pe=B.document,dt=Pe.getLeafBlocksAtRange(se),Lt=dt.first(),Pt=dt.last(),$e=void 0,ut=void 0,zt=void 0;if(dt.length===1?($e=Pe.getParent(Lt.key),ut=dt):$e=Pe.getClosest(Lt.key,function(Fn){return!!Pe.getClosest(Pt.key,function(Cn){return Fn===Cn})}),$e==null&&($e=Pe),ut==null){var Ht=$e.nodes.reduce(function(Fn,Cn,tr){return(Cn===Lt||Cn.hasDescendant(Lt.key))&&(Fn[0]=tr),(Cn===Pt||Cn.hasDescendant(Pt.key))&&(Fn[1]=tr),Fn},[]);zt=Ht[0],ut=$e.nodes.slice(Ht[0],Ht[1]+1)}zt==null&&(zt=$e.nodes.indexOf(ut.first())),Z.withoutNormalizing(function(){Z.insertNodeByKey($e.key,zt,G),ut.forEach(function(Fn,Cn){Z.moveNodeByKey(Fn.key,G.key,Cn)})})},jr.wrapInlineAtRange=function(Z,se,G){var B=Z.value,Pe=B.document,dt=se.start,Lt=se.end;if(se.isCollapsed){var Pt=Pe.getClosestInline(dt.path);return!Pt||!Z.isVoid(Pt)?void 0:Z.wrapInlineByKey(Pt.key,G)}G=qe.create(G),G=G.set("nodes",G.nodes.clear());var $e=Pe.getLeafBlocksAtRange(se),ut=Pe.getClosestBlock(dt.path),zt=Pe.getClosestBlock(Lt.path),Ht=Pe.getClosestInline(dt.path),Fn=Pe.getClosestInline(Lt.path),Cn=ut.getFurthestChild(dt.key),tr=zt.getFurthestChild(Lt.key);Z.withoutNormalizing(function(){(!Ht||Ht!==Fn)&&(Z.splitDescendantsByKey(tr.key,Lt.key,Lt.offset),Z.splitDescendantsByKey(Cn.key,dt.key,dt.offset)),Pe=Z.value.document,ut=Pe.getDescendant(ut.key),zt=Pe.getDescendant(zt.key),Cn=ut.getFurthestChild(dt.key),tr=zt.getFurthestChild(Lt.key);var Jn=ut.nodes.indexOf(Cn),ei=zt.nodes.indexOf(tr);if(Ht&&Ht===Fn){var Ci=ut.getTextsAtRange(se).map(function(Rr){return dt.key===Rr.key&&Lt.key===Rr.key?Rr.splitText(dt.offset)[1].splitText(Lt.offset-dt.offset)[0].regenerateKey():dt.key===Rr.key?Rr.splitText(dt.offset)[1].regenerateKey():Lt.key===Rr.key?Rr.splitText(Lt.offset)[0].regenerateKey():Rr.regenerateKey()});G=G.set("nodes",Ci),Z.insertInlineAtRange(se,G)}else if(ut===zt){Pe=Z.value.document,ut=Pe.getClosestBlock(dt.key),Cn=ut.getFurthestChild(dt.key);var zi=Pe.getNextSibling(Cn.key),co=ut.nodes.indexOf(zi),Xo=dt.key===Lt.key?zi:ut.getFurthestChild(Lt.key),Eo=ut.nodes.skipUntil(function(Rr){return Rr===zi}).takeUntil(function(Rr){return Rr===Xo}).push(Xo),Yo=G.regenerateKey();Z.insertNodeByKey(ut.key,co,Yo),Eo.forEach(function(Rr,ai){Z.moveNodeByKey(Rr.key,Yo.key,ai)})}else{var Xn=ut.nodes.slice(Jn+1),fr=zt.nodes.slice(0,ei+1),mr=G.regenerateKey(),yr=G.regenerateKey();Z.insertNodeByKey(ut.key,Jn+1,mr),Z.insertNodeByKey(zt.key,ei,yr),Xn.forEach(function(Rr,ai){Z.moveNodeByKey(Rr.key,mr.key,ai)}),fr.forEach(function(Rr,ai){Z.moveNodeByKey(Rr.key,yr.key,ai)}),$e.slice(1,-1).forEach(function(Rr){var ai=G.regenerateKey();Z.insertNodeByKey(Rr.key,0,ai),Rr.nodes.forEach(function(jt,Pn){Z.moveNodeByKey(jt.key,ai.key,Pn)})})}})},jr.wrapTextAtRange=function(Z,se,G){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:G,Pe=se.start,dt=se.end,Lt=se.moveToStart(),Pt=se.moveToEnd();Pe.path.equals(dt.path)&&(Pt=Pt.moveForward(G.length)),Z.withoutNormalizing(function(){Z.insertTextAtRange(Lt,G),Z.insertTextAtRange(Pt,B)})};var ri={};ri.addMarkByPath=function(Z,se,G,B,Pe){Pe=wt.create(Pe),Z.addMarksByPath(se,G,B,[Pe])},ri.addMarksByPath=function(Z,se,G,B,Pe){if(Pe=wt.createSet(Pe),!!Pe.size){var dt=Z.value,Lt=dt.document,Pt=Lt.assertNode(se);Z.withoutNormalizing(function(){G+B<Pt.text.length&&Z.splitNodeByPath(se,G+B),G>0&&(Z.splitNodeByPath(se,G),se=Y.increment(se),G=0),Pe.forEach(function($e){Z.applyOperation({type:"add_mark",path:se,mark:wt.create($e)})})})}},ri.replaceMarksByPath=function(Z,se,G,B,Pe){var dt=wt.createSet(Pe),Lt=Z.value,Pt=Lt.document,$e=Pt.assertNode(se);$e.marks.equals(dt)||Z.withoutNormalizing(function(){G+B<$e.text.length&&Z.splitNodeByPath(se,G+B),G>0&&(Z.splitNodeByPath(se,G),se=Y.increment(se),G=0);var ut=dt.subtract($e.marks),zt=$e.marks.subtract(dt);zt.forEach(function(Ht){Z.applyOperation({type:"remove_mark",path:se,mark:wt.create(Ht)})}),ut.forEach(function(Ht){Z.applyOperation({type:"add_mark",path:se,mark:wt.create(Ht)})})})},ri.insertFragmentByPath=function(Z,se,G,B){B.nodes.forEach(function(Pe,dt){Z.insertNodeByPath(se,G+dt,Pe)})},ri.insertNodeByPath=function(Z,se,G,B){Z.applyOperation({type:"insert_node",path:se.concat(G),node:B})},ri.insertTextByPath=function(Z,se,G,B,Pe){var dt=Z.value,Lt=dt.annotations,Pt=dt.document;Pt.assertNode(se),Z.withoutNormalizing(function(){var $e=!0,ut=!1,zt=void 0;try{for(var Ht=Lt.values()[Symbol.iterator](),Fn;!($e=(Fn=Ht.next()).done);$e=!0){var Cn=Fn.value,tr=Cn.start,Jn=Cn.end,ei=Z.isAtomic(Cn);ei&&tr.path.equals(se)&&tr.offset<G&&(!Jn.path.equals(se)||Jn.offset>G)&&Z.removeAnnotation(Cn)}}catch(Ci){ut=!0,zt=Ci}finally{try{!$e&&Ht.return&&Ht.return()}finally{if(ut)throw zt}}Z.applyOperation({type:"insert_text",path:se,offset:G,text:B}),Pe&&Z.replaceMarksByPath(se,G,B.length,Pe)})},ri.mergeNodeByPath=function(Z,se){var G=Z.value,B=G.document,Pe=B.getDescendant(se),dt=B.getPreviousSibling(se);if(!dt)throw new Error('Unable to merge node with path "'+se+'", because it has no previous sibling.');var Lt=dt.object==="text"?dt.text.length:dt.nodes.size;Z.applyOperation({type:"merge_node",path:se,position:Lt,properties:{type:Pe.type,data:Pe.data},target:null})},ri.moveNodeByPath=function(Z,se,G,B){if(Y.isEqual(se,G))return Z;var Pe=G.concat(B);if(Y.isEqual(se,Pe))return Z;Z.applyOperation({type:"move_node",path:se,newPath:Pe})},ri.removeMarkByPath=function(Z,se,G,B,Pe){Pe=wt.create(Pe),Z.removeMarksByPath(se,G,B,[Pe])},ri.removeMarksByPath=function(Z,se,G,B,Pe){if(Pe=wt.createSet(Pe),!!Pe.size){var dt=Z.value,Lt=dt.document,Pt=Lt.assertNode(se);Pe.intersect(Pt.marks).isEmpty()||Z.withoutNormalizing(function(){G+B<Pt.text.length&&Z.splitNodeByPath(se,G+B),G>0&&(Z.splitNodeByPath(se,G),se=Y.increment(se),G=0),Pe.forEach(function($e){Z.applyOperation({type:"remove_mark",path:se,offset:G,length:B,mark:$e})})})}},ri.removeAllMarksByPath=function(Z,se){var G=Z.state,B=G.document,Pe=B.assertNode(se);Z.withoutNormalizing(function(){if(Pe.object==="text"){Z.removeMarksByPath(se,0,Pe.text.length,Pe.marks);return}var dt=!0,Lt=!1,Pt=void 0;try{for(var $e=Pe.texts()[Symbol.iterator](),ut;!(dt=(ut=$e.next()).done);dt=!0){var zt=ut.value,Ht=ce(zt,2),Fn=Ht[0],Cn=Ht[1],tr=se.concat(Cn);Z.removeMarksByPath(tr,0,Fn.text.length,Fn.marks)}}catch(Jn){Lt=!0,Pt=Jn}finally{try{!dt&&$e.return&&$e.return()}finally{if(Lt)throw Pt}}})},ri.removeNodeByPath=function(Z,se){var G=Z.value,B=G.document,Pe=B.assertNode(se);Z.applyOperation({type:"remove_node",path:se,node:Pe})},ri.removeTextByPath=function(Z,se,G,B){var Pe=Z.value,dt=Pe.document,Lt=Pe.annotations,Pt=dt.assertNode(se),$e=Pt.text.slice(G,G+B);Z.withoutNormalizing(function(){var ut=!0,zt=!1,Ht=void 0;try{for(var Fn=Lt.values()[Symbol.iterator](),Cn;!(ut=(Cn=Fn.next()).done);ut=!0){var tr=Cn.value,Jn=tr.start,ei=tr.end,Ci=Z.isAtomic(tr);Ci&&Jn.path.equals(se)&&Jn.offset<G&&(!ei.path.equals(se)||ei.offset>G)&&Z.removeAnnotation(tr)}}catch(zi){zt=!0,Ht=zi}finally{try{!ut&&Fn.return&&Fn.return()}finally{if(zt)throw Ht}}Z.applyOperation({type:"remove_text",path:se,offset:G,text:$e})})},ri.replaceNodeByPath=function(Z,se,G){G=Ge.create(G);var B=se.last(),Pe=Y.lift(se);Z.withoutNormalizing(function(){Z.removeNodeByPath(se),Z.insertNodeByPath(Pe,B,G)})},ri.replaceTextByPath=function(Z,se,G,B,Pe,dt){Z.withoutNormalizing(function(){Z.removeTextByPath(se,G,B),Z.insertTextByPath(se,G,Pe,dt)})},ri.setMarkByPath=function(Z,se,G,B,Pe,dt){Pe=wt.create(Pe),dt=wt.createProperties(dt);var Lt=Z.value,Pt=Lt.document,$e=Pt.assertNode(se);Z.withoutNormalizing(function(){G+B<$e.text.length&&Z.splitNodeByPath(se,G+B),G>0&&(Z.splitNodeByPath(se,G),se=Y.increment(se),G=0),Z.applyOperation({type:"set_mark",path:se,properties:Pe,newProperties:dt})})},ri.setNodeByPath=function(Z,se,G){var B=Z.value,Pe=B.document,dt=Pe.assertNode(se);G=Ge.createProperties(G);var Lt=y()(dt,Object.keys(G));Z.applyOperation({type:"set_node",path:se,properties:Lt,newProperties:G})},ri.setTextByPath=function(Z,se,G,B){var Pe=Z.value,dt=Pe.document,Lt=dt.assertNode(se),Pt=Lt.text.length;Z.replaceTextByPath(se,0,Pt,G,B)},ri.splitNodeByPath=function(Z,se,G){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Pe=B.target,dt=Pe===void 0?null:Pe,Lt=Z.value,Pt=Lt.document,$e=Pt.getDescendant(se);Z.applyOperation({type:"split_node",path:se,position:G,target:dt,properties:{type:$e.type,data:$e.data}})},ri.splitDescendantsByPath=function(Z,se,G,B){if(se.equals(G)){Z.splitNodeByPath(G,B);return}var Pe=Z.value,dt=Pe.document,Lt=B,Pt=G;Z.withoutNormalizing(function(){Z.splitNodeByKey(G,B);var $e=!0,ut=!1,zt=void 0;try{for(var Ht=dt.ancestors(G)[Symbol.iterator](),Fn;!($e=(Fn=Ht.next()).done);$e=!0){var Cn=Fn.value,tr=ce(Cn,2),Jn=tr[1],ei=Lt;if(Lt=Pt.last()+1,Pt=Jn,Z.splitNodeByPath(Jn,Lt,{target:ei}),Jn.equals(se))break}}catch(Ci){ut=!0,zt=Ci}finally{try{!$e&&Ht.return&&Ht.return()}finally{if(ut)throw zt}}})},ri.unwrapInlineByPath=function(Z,se,G){var B=Z.value,Pe=B.document,dt=B.selection,Lt=Pe.assertNode(se),Pt=Lt.getFirstText(),$e=Lt.getLastText(),ut=dt.moveToRangeOfNode(Pt,$e);Z.unwrapInlineAtRange(ut,G)},ri.unwrapBlockByPath=function(Z,se,G){var B=Z.value,Pe=B.document,dt=B.selection,Lt=Pe.assertNode(se),Pt=Lt.getFirstText(),$e=Lt.getLastText(),ut=dt.moveToRangeOfNode(Pt,$e);Z.unwrapBlockAtRange(ut,G)},ri.unwrapNodeByPath=function(Z,se){var G=Z.value,B=G.document;B.assertNode(se);var Pe=Y.lift(se),dt=B.assertNode(Pe),Lt=se.last(),Pt=Pe.last(),$e=Y.lift(Pe),ut=Lt===0,zt=Lt===dt.nodes.size-1;Z.withoutNormalizing(function(){if(dt.nodes.size===1)Z.moveNodeByPath(se,$e,Pt+1),Z.removeNodeByPath(Pe);else if(ut)Z.moveNodeByPath(se,$e,Pt);else if(zt)Z.moveNodeByPath(se,$e,Pt+1);else{var Ht=Y.increment(se,1,Pe.size-1);Ht=Ht.set(Ht.size-1,0),Z.splitNodeByPath(Pe,Lt),Z.moveNodeByPath(Ht,$e,Pt+1)}})},ri.unwrapChildrenByPath=function(Z,se){se=Y.create(se);var G=Z.value,B=G.document,Pe=B.assertNode(se),dt=Y.lift(se),Lt=se.last(),Pt=Pe.nodes;Z.withoutNormalizing(function(){Pt.reverse().forEach(function($e,ut){var zt=Pt.size-ut-1,Ht=se.push(zt);Z.moveNodeByPath(Ht,dt,Lt+1)}),Z.removeNodeByPath(se)})},ri.wrapBlockByPath=function(Z,se,G){G=Me.create(G),G=G.set("nodes",G.nodes.clear());var B=Y.lift(se),Pe=se.last(),dt=Y.increment(se);Z.withoutNormalizing(function(){Z.insertNodeByPath(B,Pe,G),Z.moveNodeByPath(dt,se,0)})},ri.wrapInlineByPath=function(Z,se,G){G=qe.create(G),G=G.set("nodes",G.nodes.clear());var B=Y.lift(se),Pe=se.last(),dt=Y.increment(se);Z.withoutNormalizing(function(){Z.insertNodeByPath(B,Pe,G),Z.moveNodeByPath(dt,se,0)})},ri.wrapNodeByPath=function(Z,se,G){G=Ge.create(G),G.object==="block"?Z.wrapBlockByPath(se,G):G.object==="inline"&&Z.wrapInlineByPath(se,G)};var hi=["addMark","insertFragment","insertNode","insertText","mergeNode","removeAllMarks","removeMark","removeNode","removeText","replaceMarks","replaceNode","replaceText","setMark","setNode","setText","splitNode","unwrapBlock","unwrapChildren","unwrapInline","unwrapNode","wrapBlock","wrapInline","wrapNode"],Si=function(se){ri[se+"ByKey"]=function(G,B){for(var Pe=arguments.length,dt=Array(Pe>2?Pe-2:0),Lt=2;Lt<Pe;Lt++)dt[Lt-2]=arguments[Lt];var Pt=G.value,$e=Pt.document,ut=$e.assertPath(B);G[se+"ByPath"].apply(G,[ut].concat(dt))}},Kr=!0,xi=!1,Ai=void 0;try{for(var Pi=hi[Symbol.iterator](),io;!(Kr=(io=Pi.next()).done);Kr=!0){var lo=io.value;Si(lo)}}catch(Z){xi=!0,Ai=Z}finally{try{!Kr&&Pi.return&&Pi.return()}finally{if(xi)throw Ai}}ri.moveNodeByKey=function(Z,se,G){for(var B=arguments.length,Pe=Array(B>3?B-3:0),dt=3;dt<B;dt++)Pe[dt-3]=arguments[dt];var Lt=Z.value,Pt=Lt.document,$e=Pt.assertPath(se),ut=Pt.assertPath(G);Z.moveNodeByPath.apply(Z,[$e,ut].concat(Pe))},ri.splitDescendantsByKey=function(Z,se,G){for(var B=arguments.length,Pe=Array(B>3?B-3:0),dt=3;dt<B;dt++)Pe[dt-3]=arguments[dt];var Lt=Z.value,Pt=Lt.document,$e=Pt.assertPath(se),ut=Pt.assertPath(G);Z.splitDescendantsByPath.apply(Z,[$e,ut].concat(Pe))};var Gr={};Gr.save=function(Z,se){var G=Z.operations,B=Z.value,Pe=B.data,dt=Z.tmp,Lt=dt.save,Pt=dt.merge;if(!(Lt===!1||!qn(se))){var $e=Pe.get("undos")||(0,i.List)(),ut=$e.last(),zt=ut&&ut.last();if(Pt==null&&(G.size!==0?Pt=!0:Pt=un(se,zt)),Pt&&ut){var Ht=ut.push(se);$e=$e.pop(),$e=$e.push(Ht)}else{var Fn=(0,i.List)([se]);$e=$e.push(Fn)}$e.size>100&&($e=$e.takeLast(100)),Z.withoutSaving(function(){var Cn=(0,i.List)(),tr=Pe.set("undos",$e).set("redos",Cn);Z.setData(tr)})}},Gr.redo=function(Z){var se=Z.value,G=se.data,B=G.get("redos")||(0,i.List)(),Pe=G.get("undos")||(0,i.List)(),dt=B.last();dt&&Z.withoutSaving(function(){Z.withoutNormalizing(function(){dt.forEach(function(Pt){var $e=Pt,ut=$e.type,zt=$e.newProperties;ut==="set_selection"&&(Pt=Pt.set("newProperties",S()(zt,"isFocused"))),Z.applyOperation(Pt)}),B=B.pop(),Pe=Pe.push(dt);var Lt=G.set("undos",Pe).set("redos",B);Z.setData(Lt)})})},Gr.undo=function(Z){var se=Z.value,G=se.data,B=G.get("redos")||(0,i.List)(),Pe=G.get("undos")||(0,i.List)(),dt=Pe.last();dt&&Z.withoutSaving(function(){Z.withoutNormalizing(function(){dt.slice().reverse().map(function(Pt){return Pt.invert()}).forEach(function(Pt){var $e=Pt,ut=$e.type,zt=$e.newProperties;ut==="set_selection"&&(Pt=Pt.set("newProperties",S()(zt,"isFocused"))),Z.applyOperation(Pt)}),B=B.push(dt),Pe=Pe.pop();var Lt=G.set("undos",Pe).set("redos",B);Z.setData(Lt)})})},Gr.withoutMerging=function(Z,se){var G=Z.tmp.merge;Z.tmp.merge=!1,se(Z),Z.tmp.merge=G},Gr.withoutSaving=function(Z,se){var G=Z.tmp.save;Z.tmp.save=!1,se(Z),Z.tmp.save=G};function un(Z,se){if(!se)return!1;var G=Z.type==="set_selection"&&se.type==="set_selection"||Z.type==="insert_text"&&se.type==="insert_text"&&Z.offset===se.offset+se.text.length&&Z.path.equals(se.path)||Z.type==="remove_text"&&se.type==="remove_text"&&Z.offset+Z.text.length===se.offset&&Z.path.equals(se.path);return G}function qn(Z){if(Z.type==="set_selection"){var se=Z.newProperties,G=se.isFocused,B=se.anchor,Pe=se.focus;if(G!==void 0&&!B&&!Pe)return!1}return!0}var kn={};kn.blur=function(Z){Z.select({isFocused:!1})},kn.deselect=function(Z){var se=At.create();Z.select(se)},kn.focus=function(Z){Z.select({isFocused:!0})},kn.flip=function(Z){Z.command(St,"flip")},kn.moveAnchorBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Cr,"anchor"].concat(G))},kn.moveAnchorWordBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Sn,"anchor"].concat(G))},kn.moveAnchorForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[_i,"anchor"].concat(G))},kn.moveAnchorWordForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[ir,"anchor"].concat(G))},kn.moveAnchorTo=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveAnchorTo"].concat(G))},kn.moveAnchorToEndOfBlock=function(Z){Z.command(ln,"anchor","end","block")},kn.moveAnchorToEndOfInline=function(Z){Z.command(ln,"anchor","end","inline")},kn.moveAnchorToEndOfDocument=function(Z){Z.moveAnchorToEndOfNode(Z.value.document).moveToAnchor()},kn.moveAnchorToEndOfNextBlock=function(Z){Z.command(An,"anchor","end","next","block")},kn.moveAnchorToEndOfNextInline=function(Z){Z.command(An,"anchor","end","next","inline")},kn.moveAnchorToEndOfNextText=function(Z){Z.command(An,"anchor","end","next","text")},kn.moveAnchorToEndOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveAnchorToEndOfNode"].concat(G))},kn.moveAnchorToEndOfPreviousBlock=function(Z){Z.command(An,"anchor","end","previous","block")},kn.moveAnchorToEndOfPreviousInline=function(Z){Z.command(An,"anchor","end","previous","inline")},kn.moveAnchorToEndOfPreviousText=function(Z){Z.command(An,"anchor","end","previous","text")},kn.moveAnchorToEndOfText=function(Z){Z.command(ln,"anchor","end","text")},kn.moveAnchorToStartOfBlock=function(Z){Z.command(ln,"anchor","start","block")},kn.moveAnchorToStartOfDocument=function(Z){Z.moveAnchorToStartOfNode(Z.value.document).moveToAnchor()},kn.moveAnchorToStartOfInline=function(Z){Z.command(ln,"anchor","start","inline")},kn.moveAnchorToStartOfNextBlock=function(Z){Z.command(An,"anchor","start","next","block")},kn.moveAnchorToStartOfNextInline=function(Z){Z.command(An,"anchor","start","next","inline")},kn.moveAnchorToStartOfNextText=function(Z){Z.command(An,"anchor","start","next","text")},kn.moveAnchorToStartOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveAnchorToStartOfNode"].concat(G))},kn.moveAnchorToStartOfPreviousBlock=function(Z){Z.command(An,"anchor","start","previous","block")},kn.moveAnchorToStartOfPreviousInline=function(Z){Z.command(An,"anchor","start","previous","inline")},kn.moveAnchorToStartOfPreviousText=function(Z){Z.command(An,"anchor","start","previous","text")},kn.moveAnchorToStartOfText=function(Z){Z.command(ln,"anchor","start","text")},kn.moveBackward=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(se!==0){var G=Z.value,B=G.document,Pe=G.selection,dt=Pe.start,Lt=B.getClosestBlock(dt.key),Pt=Lt.getOffset(dt.key),$e=Pt+dt.offset,ut=Lt.text,zt=pi.getCharOffsetBackward(ut,$e,se);Z.moveAnchorBackward(zt).moveFocusBackward(zt)}},kn.moveWordBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.moveFocusWordBackward.apply(Z,G).moveToFocus()},kn.moveEndBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Cr,"end"].concat(G))},kn.moveEndWordBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Sn,"end"].concat(G))},kn.moveEndForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[_i,"end"].concat(G))},kn.moveEndWordForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[ir,"end"].concat(G))},kn.moveEndTo=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveEndTo"].concat(G))},kn.moveEndToEndOfBlock=function(Z){Z.command(ln,"end","end","block")},kn.moveEndToEndOfDocument=function(Z){Z.moveEndToEndOfNode(Z.value.document).moveToEnd()},kn.moveEndToEndOfInline=function(Z){Z.command(ln,"end","end","inline")},kn.moveEndToEndOfNextBlock=function(Z){Z.command(An,"end","end","next","block")},kn.moveEndToEndOfNextInline=function(Z){Z.command(An,"end","end","next","inline")},kn.moveEndToEndOfNextText=function(Z){Z.command(An,"end","end","next","text")},kn.moveEndToEndOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveEndToEndOfNode"].concat(G))},kn.moveEndToEndOfPreviousBlock=function(Z){Z.command(An,"end","end","previous","block")},kn.moveEndToEndOfPreviousInline=function(Z){Z.command(An,"end","end","previous","inline")},kn.moveEndToEndOfPreviousText=function(Z){Z.command(An,"end","end","previous","text")},kn.moveEndToEndOfText=function(Z){Z.command(ln,"end","end","text")},kn.moveEndToStartOfBlock=function(Z){Z.command(ln,"end","start","block")},kn.moveEndToStartOfDocument=function(Z){Z.moveEndToStartOfNode(Z.value.document).moveToEnd()},kn.moveEndToStartOfInline=function(Z){Z.command(ln,"end","start","inline")},kn.moveEndToStartOfNextBlock=function(Z){Z.command(An,"end","start","next","block")},kn.moveEndToStartOfNextInline=function(Z){Z.command(An,"end","start","next","inline")},kn.moveEndToStartOfNextText=function(Z){Z.command(An,"end","start","next","text")},kn.moveEndToStartOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveEndToStartOfNode"].concat(G))},kn.moveEndToStartOfPreviousBlock=function(Z){Z.command(An,"end","start","previous","block")},kn.moveEndToStartOfPreviousInline=function(Z){Z.command(An,"end","start","previous","inline")},kn.moveEndToStartOfPreviousText=function(Z){Z.command(An,"end","start","previous","text")},kn.moveEndToStartOfText=function(Z){Z.command(ln,"end","start","text")},kn.moveFocusBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Cr,"focus"].concat(G))},kn.moveFocusWordBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Sn,"focus"].concat(G))},kn.moveFocusForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[_i,"focus"].concat(G))},kn.moveFocusWordForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[ir,"focus"].concat(G))},kn.moveFocusTo=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveFocusTo"].concat(G))},kn.moveFocusToEndOfBlock=function(Z){Z.command(ln,"focus","end","block")},kn.moveFocusToEndOfDocument=function(Z){Z.moveFocusToEndOfNode(Z.value.document).moveToFocus()},kn.moveFocusToEndOfInline=function(Z){Z.command(ln,"focus","end","inline")},kn.moveFocusToEndOfNextBlock=function(Z){Z.command(An,"focus","end","next","block")},kn.moveFocusToEndOfNextInline=function(Z){Z.command(An,"focus","end","next","inline")},kn.moveFocusToEndOfNextText=function(Z){Z.command(An,"focus","end","next","text")},kn.moveFocusToEndOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveFocusToEndOfNode"].concat(G))},kn.moveFocusToEndOfPreviousBlock=function(Z){Z.command(An,"focus","end","previous","block")},kn.moveFocusToEndOfPreviousInline=function(Z){Z.command(An,"focus","end","previous","inline")},kn.moveFocusToEndOfPreviousText=function(Z){Z.command(An,"focus","end","previous","text")},kn.moveFocusToEndOfText=function(Z){Z.command(ln,"focus","end","text")},kn.moveFocusToStartOfBlock=function(Z){Z.command(ln,"focus","start","block")},kn.moveFocusToStartOfDocument=function(Z){Z.moveFocusToStartOfNode(Z.value.document).moveToFocus()},kn.moveFocusToStartOfInline=function(Z){Z.command(ln,"focus","start","inline")},kn.moveFocusToStartOfNextBlock=function(Z){Z.command(An,"focus","start","next","block")},kn.moveFocusToStartOfNextInline=function(Z){Z.command(An,"focus","start","next","inline")},kn.moveFocusToStartOfNextText=function(Z){Z.command(An,"focus","start","next","text")},kn.moveFocusToStartOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveFocusToStartOfNode"].concat(G))},kn.moveFocusToStartOfPreviousBlock=function(Z){Z.command(An,"focus","start","previous","block")},kn.moveFocusToStartOfPreviousInline=function(Z){Z.command(An,"focus","start","previous","inline")},kn.moveFocusToStartOfPreviousText=function(Z){Z.command(An,"focus","start","previous","text")},kn.moveFocusToStartOfText=function(Z){Z.command(ln,"focus","start","text")},kn.moveForward=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(se!==0){var G=Z.value,B=G.document,Pe=G.selection,dt=Pe.start,Lt=B.getClosestBlock(dt.path),Pt=Lt.getOffset(dt.key),$e=Pt+dt.offset,ut=Lt.text,zt=pi.getCharOffsetForward(ut,$e,se);Z.moveAnchorForward(zt).moveFocusForward(zt)}},kn.moveWordForward=function(Z){for(var se,G=arguments.length,B=Array(G>1?G-1:0),Pe=1;Pe<G;Pe++)B[Pe-1]=arguments[Pe];(se=Z.moveFocusWordForward.apply(Z,B)).moveToFocus.apply(se,B)},kn.moveStartBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Cr,"start"].concat(G))},kn.moveStartWordBackward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[Sn,"start"].concat(G))},kn.moveStartForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[_i,"start"].concat(G))},kn.moveStartWordForward=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[ir,"start"].concat(G))},kn.moveStartTo=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveStartTo"].concat(G))},kn.moveStartToEndOfBlock=function(Z){Z.command(ln,"start","end","block")},kn.moveStartToEndOfDocument=function(Z){Z.moveStartToEndOfNode(Z.value.document).moveToStart()},kn.moveStartToEndOfInline=function(Z){Z.command(ln,"start","end","inline")},kn.moveStartToEndOfNextBlock=function(Z){Z.command(An,"start","end","next","block")},kn.moveStartToEndOfNextInline=function(Z){Z.command(An,"start","end","next","inline")},kn.moveStartToEndOfNextText=function(Z){Z.command(An,"start","end","next","text")},kn.moveStartToEndOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveStartToEndOfNode"].concat(G))},kn.moveStartToEndOfPreviousBlock=function(Z){Z.command(An,"start","end","previous","block")},kn.moveStartToEndOfPreviousInline=function(Z){Z.command(An,"start","end","previous","inline")},kn.moveStartToEndOfPreviousText=function(Z){Z.command(An,"start","end","previous","text")},kn.moveStartToEndOfText=function(Z){Z.command(ln,"start","end","text")},kn.moveStartToStartOfBlock=function(Z){Z.command(ln,"start","start","block")},kn.moveStartToStartOfDocument=function(Z){Z.moveStartToStartOfNode(Z.value.document).moveToStart()},kn.moveStartToStartOfInline=function(Z){Z.command(ln,"start","start","inline")},kn.moveStartToStartOfNextBlock=function(Z){Z.command(An,"start","start","next","block")},kn.moveStartToStartOfNextInline=function(Z){Z.command(An,"start","start","next","inline")},kn.moveStartToStartOfNextText=function(Z){Z.command(An,"start","start","next","text")},kn.moveStartToStartOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveStartToStartOfNode"].concat(G))},kn.moveStartToStartOfPreviousBlock=function(Z){Z.command(An,"start","start","previous","block")},kn.moveStartToStartOfPreviousInline=function(Z){Z.command(An,"start","start","previous","inline")},kn.moveStartToStartOfPreviousText=function(Z){Z.command(An,"start","start","previous","text")},kn.moveStartToStartOfText=function(Z){Z.command(ln,"start","start","text")},kn.moveTo=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveTo"].concat(G))},kn.moveToAnchor=function(Z){Z.command(St,"moveToAnchor")},kn.moveToEnd=function(Z){Z.command(St,"moveToEnd")},kn.moveToEndOfBlock=function(Z){Z.moveEndToEndOfBlock().moveToEnd()},kn.moveToEndOfDocument=function(Z){Z.moveEndToEndOfNode(Z.value.document).moveToEnd()},kn.moveToEndOfInline=function(Z){Z.moveEndToEndOfInline().moveToEnd()},kn.moveToEndOfNextBlock=function(Z){Z.moveEndToEndOfNextBlock().moveToEnd()},kn.moveToEndOfNextInline=function(Z){Z.moveEndToEndOfNextInline().moveToEnd()},kn.moveToEndOfNextText=function(Z){Z.moveEndToEndOfNextText().moveToEnd()},kn.moveToEndOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveToEndOfNode"].concat(G))},kn.moveToEndOfPreviousBlock=function(Z){Z.moveStartToEndOfPreviousBlock().moveToStart()},kn.moveToEndOfPreviousInline=function(Z){Z.moveStartToEndOfPreviousInline().moveToStart()},kn.moveToEndOfPreviousText=function(Z){Z.moveStartToEndOfPreviousText().moveToStart()},kn.moveToEndOfText=function(Z){Z.moveEndToEndOfText().moveToEnd()},kn.moveToFocus=function(Z){Z.command(St,"moveToFocus")},kn.moveToRangeOfDocument=function(Z){Z.moveToRangeOfNode(Z.value.document)},kn.moveToRangeOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveToRangeOfNode"].concat(G))},kn.moveToStart=function(Z){Z.command(St,"moveToStart")},kn.moveToStartOfBlock=function(Z){Z.moveStartToStartOfBlock().moveToStart()},kn.moveToStartOfDocument=function(Z){Z.moveStartToStartOfNode(Z.value.document).moveToStart()},kn.moveToStartOfInline=function(Z){Z.moveStartToStartOfInline().moveToStart()},kn.moveToStartOfNextBlock=function(Z){Z.moveEndToStartOfNextBlock().moveToEnd()},kn.moveToStartOfNextInline=function(Z){Z.moveEndToStartOfNextInline().moveToEnd()},kn.moveToStartOfNextText=function(Z){Z.moveEndToStartOfNextText().moveToEnd()},kn.moveToStartOfNode=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"moveToStartOfNode"].concat(G))},kn.moveToStartOfPreviousBlock=function(Z){Z.moveStartToStartOfPreviousBlock().moveToStart()},kn.moveToStartOfPreviousInline=function(Z){Z.moveStartToStartOfPreviousInline().moveToStart()},kn.moveToStartOfPreviousText=function(Z){Z.moveStartToStartOfPreviousText().moveToStart()},kn.moveToStartOfText=function(Z){Z.moveStartToStartOfText().moveToStart()},kn.select=function(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};se=At.createProperties(se);var B=G.snapshot,Pe=B===void 0?!1:B,dt=Z.value,Lt=dt.document,Pt=dt.selection,$e={},ut=Pt.setProperties(se);ut=Lt.resolveSelection(ut),se=y()(ut,Object.keys(se));for(var zt in se)(Pe===!0||!(0,i.is)(se[zt],Pt[zt]))&&($e[zt]=se[zt]);if(Pt.marks&&!$e.marks&&($e.anchor||$e.focus)&&($e.marks=null),Object.keys($e).length!==0){var Ht=y()(Pt.toJSON(),Object.keys($e));Z.applyOperation({type:"set_selection",value:dt,properties:Ht,newProperties:$e},Pe?{skip:!1,merge:!1}:{})}},kn.setAnchor=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"setAnchor"].concat(G))},kn.setEnd=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"setEnd"].concat(G))},kn.setFocus=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"setFocus"].concat(G))},kn.setStart=function(Z){for(var se=arguments.length,G=Array(se>1?se-1:0),B=1;B<se;B++)G[B-1]=arguments[B];Z.command.apply(Z,[St,"setStart"].concat(G))},kn.snapshotSelection=function(Z){Z.withoutMerging(function(){Z.select(Z.value.selection,{snapshot:!0})})};function St(Z,se){for(var G,B=arguments.length,Pe=Array(B>2?B-2:0),dt=2;dt<B;dt++)Pe[dt-2]=arguments[dt];var Lt=(G=Z.value.selection)[se].apply(G,Pe);Z.select(Lt)}function ln(Z,se,G,B){var Pe=se.slice(0,1).toUpperCase()+se.slice(1),dt=G.slice(0,1).toUpperCase()+G.slice(1),Lt=B.slice(0,1).toUpperCase()+B.slice(1),Pt="move"+Pe+"To"+dt+"OfNode",$e=B==="text"?"getNode":"getClosest"+Lt,ut=Z.value,zt=ut.document,Ht=ut.selection,Fn=Ht[se],Cn=zt[$e](Fn.key);Cn&&Z[Pt](Cn)}function An(Z,se,G,B,Pe){var dt=se.slice(0,1).toUpperCase()+se.slice(1),Lt=G.slice(0,1).toUpperCase()+G.slice(1),Pt=B.slice(0,1).toUpperCase()+B.slice(1),$e=Pe.slice(0,1).toUpperCase()+Pe.slice(1),ut="move"+dt+"To"+Lt+"OfNode",zt=Pe==="text"?"getNode":"getClosest"+$e,Ht="get"+Pt+$e,Fn=Z.value,Cn=Fn.document,tr=Fn.selection,Jn=tr[se],ei=Cn[zt](Jn.key);if(ei){var Ci=Cn[Ht](ei.key);Ci&&Z[ut](Ci)}}function Cr(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(G!==0){if(G<0)return _i(Z,se,-G);var B=se.slice(0,1).toUpperCase()+se.slice(1),Pe=Z.value,dt=Pe.document,Lt=Pe.selection,Pt=Lt[se],$e=dt.hasVoidParent(Pt.path,Z);if(!$e&&Pt.offset-G>=0){var ut=Lt["move"+B+"Backward"](G);Z.select(ut);return}var zt=dt.getPreviousText(Pt.path);if(zt){var Ht=dt.getClosestBlock(Pt.path),Fn=Ht.hasNode(zt.key),Cn=zt&&dt.hasVoidParent(zt.key,Z);if(Z["move"+B+"ToEndOfNode"](zt),!$e&&!Cn&&Fn){var tr=Z.value.selection["move"+B+"Backward"](G);Z.select(tr)}}}}function _i(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(G!==0){if(G<0)return Cr(Z,se,-G);var B=se.slice(0,1).toUpperCase()+se.slice(1),Pe=Z.value,dt=Pe.document,Lt=Pe.selection,Pt=Lt[se],$e=dt.getNode(Pt.path),ut=dt.hasVoidParent(Pt.path,Z);if(!ut&&Pt.offset+G<=$e.text.length){var zt=Lt["move"+B+"Forward"](G);Z.select(zt);return}var Ht=dt.getNextText(Pt.path);if(Ht){var Fn=dt.getClosestBlock(Pt.path),Cn=Fn.hasNode(Ht.key),tr=dt.hasVoidParent(Ht.key,Z);if(Z["move"+B+"ToStartOfNode"](Ht),!ut&&!tr&&Cn){var Jn=Z.value.selection["move"+B+"Forward"](G);Z.select(Jn)}}}}function Sn(Z,se){var G=Z.value,B=G.document,Pe=G.selection,dt=Pe[se],Lt=B.getClosestBlock(dt.key),Pt=Lt.getOffset(dt.key),$e=Pt+dt.offset,ut=Lt.text,zt=pi.getWordOffsetBackward(ut,$e);Z.command(Cr,se,zt>0?zt:1)}function ir(Z,se){var G=Z.value,B=G.document,Pe=G.selection,dt=Pe[se],Lt=B.getClosestBlock(dt.key),Pt=Lt.getOffset(dt.key),$e=Pt+dt.offset,ut=Lt.text,zt=pi.getWordOffsetForward(ut,$e);Z.command(_i,se,zt>0?zt:1)}var mt={};mt.setData=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=Z.value,B=ge.createProperties({data:se}),Pe=y()(G,Object.keys(B));Z.applyOperation({type:"set_value",properties:Pe,newProperties:B})},mt.addAnnotation=function(Z,se){se=De.create(se),Z.applyOperation({type:"add_annotation",annotation:se})},mt.removeAnnotation=function(Z,se){se=De.create(se),Z.applyOperation({type:"remove_annotation",annotation:se})},mt.setAnnotation=function(Z,se,G){se=De.create(se),G=De.createProperties(G),Z.applyOperation({type:"set_annotation",properties:se,newProperties:G})},mt.setAnnotations=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],G=Z.value,B=ge.createProperties({annotations:se}),Pe=y()(G,Object.keys(B));Z.applyOperation({type:"set_value",properties:Pe,newProperties:B})};function fn(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function se(B,Pe){for(var dt in Z)B.registerQuery(dt);return Pe()}function G(B,Pe,dt){var Lt=B.type,Pt=B.args,$e=Z[Lt];if(!$e)return dt();var ut=$e.apply(void 0,[Pe].concat(oe(Pt)));return ut===void 0?dt():ut}return{onConstruct:se,onQuery:G}}var gt=function(Z){me(se,Z);function se(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_(this,se);var Pe=ve(this,(se.__proto__||Object.getPrototypeOf(se)).call(this,G));Pe.code=G;for(var dt in B)Pe[dt]=B[dt];return Error.captureStackTrace?Error.captureStackTrace(Pe,Pe.constructor):Pe.stack=new Error().stack,Pe}return se}(Error);function tn(Z){var se=Z.rules,G=Z.document,B=Z.blocks,Pe=Z.inlines,dt=Z.marks,Lt=Z.annotations,Pt=Z.decorations,$e=[];if(se&&($e=$e.concat(se)),G&&$e.push(he({match:[{object:"document"}]},G)),B)for(var ut in B)$e.push(he({match:[{object:"block",type:ut}]},B[ut]));if(Pe)for(var zt in Pe)$e.push(he({match:[{object:"inline",type:zt}]},Pe[zt]));if(dt)for(var Ht in dt)$e.push(he({match:[{object:"mark",type:Ht}]},dt[Ht]));if(Lt)for(var Fn in Lt)$e.push(he({match:[{object:"annotation",type:Fn}]},Lt[Fn]));if(Pt)for(var Cn in Pt)$e.push(he({match:[{object:"decoration",type:Cn}]},Pt[Cn]));function tr(co,Xo){var Eo=$e.find(function(Yo){return"isAtomic"in Yo&&Ur(Xo,Yo.match)});return Eo&&Eo.isAtomic}function Jn(co,Xo){var Eo=$e.find(function(Yo){return"isVoid"in Yo&&Ur(Xo,Yo.match)});return Eo&&Eo.isVoid}function ei(co,Xo,Eo){var Yo=Ci(co,Xo,function(){});return Yo?function(){var Xn=Yo.rule,fr=Xo.operations.size;Xn.normalize&&Xn.normalize(Xo,Yo),Xo.operations.size===fr&&Vn(Xo,Yo)}:Eo()}function Ci(co,Xo,Eo){var Yo=$e.filter(function(mr){return Ur(co,mr.match)}),Xn=$r(co,Yo,$e,{every:!0});if(!Xn)return Eo();var fr=new gt(Xn.code,Xn);return fr}var zi=fn({isAtomic:tr,isVoid:Jn});return[{normalizeNode:ei,validateNode:Ci},zi]}function Vn(Z,se){var G=se.code,B=se.node,Pe=se.child,dt=se.next,Lt=se.previous,Pt=se.key,$e=se.mark;switch(G){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return Pe.object==="text"&&B.object==="block"&&B.nodes.size===1?Z.removeNodeByKey(B.key):Z.removeNodeByKey(Pe.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return Lt.object==="text"&&B.object==="block"&&B.nodes.size===1?Z.removeNodeByKey(B.key):Z.removeNodeByKey(Lt.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return dt.object==="text"&&B.object==="block"&&B.nodes.size===1?Z.removeNodeByKey(B.key):Z.removeNodeByKey(dt.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return B.object==="document"?B.nodes.forEach(function(ut){return Z.removeNodeByKey(ut.key)}):Z.removeNodeByKey(B.key);case"node_data_invalid":return B.data.get(Pt)===void 0&&B.object!=="document"?Z.removeNodeByKey(B.key):Z.setNodeByKey(B.key,{data:B.data.delete(Pt)});case"node_mark_invalid":return B.getTexts().forEach(function(ut){return Z.removeMarkByKey(ut.key,0,ut.text.length,$e)});default:return Z.removeNodeByKey(B.key)}}function Ur(Z,se){var G=$r(Z,se);return!G}function $r(Z,se,G){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Pe=B.every,dt=Pe===void 0?!1:Pe,Lt=B.match,Pt=Lt===void 0?null:Lt;if(typeof se=="function"){var $e=se(Z,Pt);return $e?null:di("node_invalid",{rule:se,node:Z})}if(Array.isArray(se)){var ut=se.length?se:[{}],zt=void 0,Ht=!0,Fn=!1,Cn=void 0;try{for(var tr=ut[Symbol.iterator](),Jn;!(Ht=(Jn=tr.next()).done);Ht=!0){var ei=Jn.value,Ci=$r(Z,ei,G);if(zt=zt||Ci,dt&&Ci)return Ci;if(!dt&&!Ci)return}}catch(co){Fn=!0,Cn=co}finally{try{!Ht&&tr.return&&tr.return()}finally{if(Fn)throw Cn}}return zt}var zi=Pr(Z,se)||zr(Z,se)||gi(Z,se)||$i(Z,se)||eo(Z,se)||ki(Z,se)||so(Z,se)||Ho(Z,se,G);return zi}function Pr(Z,se){if(se.object!=null&&se.object!==Z.object&&!(typeof se.object=="function"&&se.object(Z.object)))return di("node_object_invalid",{rule:se,node:Z})}function zr(Z,se){if(se.type!=null&&se.type!==Z.type&&!(typeof se.type=="function"&&se.type(Z.type)))return di("node_type_invalid",{rule:se,node:Z})}function gi(Z,se){if(se.data!=null&&Z.data!=null){if(typeof se.data=="function")return se.data(Z.data)?void 0:di("node_data_invalid",{rule:se,node:Z});for(var G in se.data){var B=se.data[G],Pe=Z.data&&Z.data.get(G),dt=typeof B=="function"?B(Pe):B===Pe;if(!dt)return di("node_data_invalid",{rule:se,node:Z,key:G,value:Pe})}}}function $i(Z,se){if(se.marks!=null){var G=Z.object==="text"?Z.marks.toArray():Z.getMarks().toArray(),B=function(Fn){var Cn=se.marks.some(function(tr){return typeof tr.type=="function"?tr.type(Fn.type):tr.type===Fn.type});return Cn?"continue":{v:di("node_mark_invalid",{rule:se,node:Z,mark:Fn})}},Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=G[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done);Pe=!0){var ut=$e.value,zt=B(ut);switch(zt){case"continue":continue;default:if((typeof zt>"u"?"undefined":ae(zt))==="object")return zt.v}}}catch(Ht){dt=!0,Lt=Ht}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}}}function eo(Z,se){if(se.text!=null){var G=Z.text,B=typeof se.text=="function"?se.text(G):se.text.test(G);if(!B)return di("node_text_invalid",{rule:se,node:Z,text:G})}}function ki(Z,se){if(se.first!=null){var G=Z.nodes.first();if(G){var B=$r(G,se.first);if(B)return B.rule=se,B.node=Z,B.child=G,B.code=B.code.replace("node_","first_child_"),B}}}function so(Z,se){if(se.last!=null){var G=Z.nodes.last();if(G){var B=$r(G,se.last);if(B)return B.rule=se,B.node=Z,B.child=G,B.code=B.code.replace("node_","last_child_"),B}}}function Ho(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(Z.nodes==null)return;var B=Z.nodes,Pe=se.nodes!=null?se.nodes.slice():[],dt=0,Lt=0,Pt=null,$e=-1,ut=null,zt=null,Ht=null,Fn=null,Cn=null;function tr(){return Pe.length===0?!1:(ut=Pe.shift(),Lt=dt,dt=0,Pt=ut.min||null,zt=ut.max||null,!0)}function Jn(){return $e+=1,Fn=$e?B.get($e-1):null,Ht=B.get($e),Cn=B.get($e+1),Ht?(Lt=dt,dt+=1,!0):!1}function ei(){$e>0&&($e-=1,dt=Lt)}for(se.nodes!=null&&tr();Jn();){var Ci=ra(Z,Ht,G)||So(Z,Ht,Fn,$e,G)||gr(Z,Ht,Cn,$e,G);if(Ci)return Ci;if(se.nodes!=null){if(!ut)return di("child_unknown",{rule:se,node:Z,child:Ht,index:$e});if(ut.match){var zi=$r(Ht,ut.match);if(zi){if(zt!=null&&dt-1>zt)return ei(),di("child_max_invalid",{rule:se,node:Z,index:$e,child:B.get($e),count:dt,limit:zt});var co=Pt;if(tr()){if(Lt-1>=co){$e-=1;continue}return $r(Ht,ut.match)==null?(ei(),di("child_min_invalid",{rule:se,node:Z,index:$e,count:Lt-1,limit:co})):(zi.rule=se,zi.node=Z,zi.child=Ht,zi.index=$e,zi.code=zi.code.replace("node_","child_"),zi)}return zt!=null&&dt>zt?di("child_unknown",{rule:se,node:Z,child:Ht,index:$e}):(zi.rule=se,zi.node=Z,zi.child=Ht,zi.index=$e,zi.code=zi.code.replace("node_","child_"),zi)}}}}if(zt!=null&&dt>zt)return di("child_max_invalid",{rule:se,node:Z,index:$e-1,count:dt,child:B.get($e-1),limit:zt});if(se.nodes!=null)do if(dt<Pt)return di("child_min_invalid",{rule:se,node:Z,index:$e,count:dt,limit:Pt});while(tr())}function ra(Z,se,G){var B=!0,Pe=!1,dt=void 0;try{for(var Lt=G[Symbol.iterator](),Pt;!(B=(Pt=Lt.next()).done);B=!0){var $e=Pt.value;if($e.parent!=null&&Ur(se,$e.match)){var ut=$r(Z,$e.parent);if(ut)return ut.rule=$e,ut.parent=Z,ut.node=se,ut.code=ut.code.replace("node_","parent_"),ut}}}catch(zt){Pe=!0,dt=zt}finally{try{!B&&Lt.return&&Lt.return()}finally{if(Pe)throw dt}}}function So(Z,se,G,B,Pe){if(G){var dt=!0,Lt=!1,Pt=void 0;try{for(var $e=Pe[Symbol.iterator](),ut;!(dt=(ut=$e.next()).done);dt=!0){var zt=ut.value;if(zt.previous!=null&&Ur(se,zt.match)){var Ht=$r(G,zt.previous);if(Ht)return Ht.rule=zt,Ht.node=Z,Ht.child=se,Ht.index=B,Ht.previous=G,Ht.code=Ht.code.replace("node_","previous_sibling_"),Ht}}}catch(Fn){Lt=!0,Pt=Fn}finally{try{!dt&&$e.return&&$e.return()}finally{if(Lt)throw Pt}}}}function gr(Z,se,G,B,Pe){if(G){var dt=!0,Lt=!1,Pt=void 0;try{for(var $e=Pe[Symbol.iterator](),ut;!(dt=(ut=$e.next()).done);dt=!0){var zt=ut.value;if(zt.next!=null&&Ur(se,zt.match)){var Ht=$r(G,zt.next,[],{match:se});if(Ht)return Ht.rule=zt,Ht.node=Z,Ht.child=se,Ht.index=B,Ht.next=G,Ht.code=Ht.code.replace("node_","next_sibling_"),Ht}}}catch(Fn){Lt=!0,Pt=Fn}finally{try{!dt&&$e.return&&$e.return()}finally{if(Lt)throw Pt}}}}function di(Z,se){return he({code:Z},se)}function Vi(Z){var se=Z.value,G=se.selection;G.isExpanded&&Z.delete()}var Ro={};Ro.addMark=function(Z,se){se=wt.create(se);var G=Z.value,B=G.document,Pe=G.selection;if(Pe.isExpanded)Z.addMarkAtRange(Pe,se);else if(Pe.marks){var dt=Pe.marks.add(se),Lt=Pe.set("marks",dt);Z.select(Lt)}else{var Pt=B.getActiveMarksAtRange(Pe).add(se),$e=Pe.set("marks",Pt);Z.select($e)}},Ro.addMarks=function(Z,se){se.forEach(function(G){return Z.addMark(G)})},Ro.delete=function(Z){var se=Z.value,G=se.selection;Z.deleteAtRange(G),Z.moveToFocus()},Ro.deleteBackward=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=Z.value,B=G.selection;B.isExpanded?Z.delete():Z.deleteBackwardAtRange(B,se)},Ro.deleteCharBackward=function(Z){var se=Z.value,G=se.selection;G.isExpanded?Z.delete():Z.deleteCharBackwardAtRange(G)},Ro.deleteLineBackward=function(Z){var se=Z.value,G=se.selection;G.isExpanded?Z.delete():Z.deleteLineBackwardAtRange(G)},Ro.deleteWordBackward=function(Z){var se=Z.value,G=se.selection;G.isExpanded?Z.delete():Z.deleteWordBackwardAtRange(G)},Ro.deleteForward=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=Z.value,B=G.selection;B.isExpanded?Z.delete():Z.deleteForwardAtRange(B,se)},Ro.deleteCharForward=function(Z){var se=Z.value,G=se.selection;G.isExpanded?Z.delete():Z.deleteCharForwardAtRange(G)},Ro.deleteLineForward=function(Z){var se=Z.value,G=se.selection;G.isExpanded?Z.delete():Z.deleteLineForwardAtRange(G)},Ro.deleteWordForward=function(Z){var se=Z.value,G=se.selection;G.isExpanded?Z.delete():Z.deleteWordForwardAtRange(G)},Ro.insertBlock=function(Z,se){Vi(Z),se=Me.create(se);var G=Z.value,B=G.selection;Z.insertBlockAtRange(B,se);var Pe=Z.value.document.getNode(se.key);Pe&&Z.moveToEndOfNode(Pe)},Ro.insertFragment=function(Z,se){if(se.nodes.size){Vi(Z);var G=Z.value,B=G,Pe=B.document,dt=B.selection,Lt=dt.start,Pt=Array.from(Pe.texts(),function(tr){var Jn=ce(tr,1),ei=Jn[0];return ei.key});Z.insertFragmentAtRange(dt,se),G=Z.value,Pe=G.document;var $e=Pe.getTexts().filter(function(tr){return!Pt.includes(tr.key)});if($e.size!==0){var ut=se.text.length,zt=Pe.getNode(Lt.key)||$e.first(),Ht=$e.last()||zt;if(zt===Ht){Z.moveTo(Ht.key,ut);return}var Fn=Pe.getCommonAncestor(zt.key,Ht.key),Cn=Fn.getOffset(zt.key)+(Lt.key===zt.key?Lt.offset:0);Ht=Fn.getTextAtOffset(Cn+ut-1)||Ht,Z.moveTo(Ht.key,Cn+ut-Fn.getOffset(Ht.key))}}},Ro.insertInline=function(Z,se){Vi(Z),se=qe.create(se);var G=Z.value,B=G.selection;Z.insertInlineAtRange(B,se);var Pe=Z.value.document.getNode(se.key);Pe&&Z.moveToEndOfNode(Pe)},Ro.insertText=function(Z,se,G){Vi(Z);var B=Z.value,Pe=B.document,dt=B.selection;G=G||dt.marks||Pe.getInsertMarksAtRange(dt),Z.withoutNormalizing(function(){Z.insertTextAtRange(dt,se,G),dt.marks&&Pe!==Z.value.document&&Z.select({marks:null})})},Ro.removeMark=function(Z,se){se=wt.create(se);var G=Z.value,B=G.document,Pe=G.selection;if(Pe.isExpanded)Z.removeMarkAtRange(Pe,se);else if(Pe.marks){var dt=Pe.marks.remove(se),Lt=Pe.set("marks",dt);Z.select(Lt)}else{var Pt=B.getActiveMarksAtRange(Pe).remove(se),$e=Pe.set("marks",Pt);Z.select($e)}},Ro.replaceMark=function(Z,se,G){Z.removeMark(se),Z.addMark(G)},Ro.setBlocks=function(Z,se){var G=Z.value,B=G.selection;Z.setBlocksAtRange(B,se)},Ro.setInlines=function(Z,se){var G=Z.value,B=G.selection;Z.setInlinesAtRange(B,se)},Ro.splitBlock=function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vi(Z);var G=Z.value,B=G.selection,Pe=G.document,dt=B.marks||Pe.getInsertMarksAtRange(B);Z.splitBlockAtRange(B,se).moveToEnd(),dt&&dt.size!==0&&Z.select({marks:dt})},Ro.splitInline=function(Z,se){Vi(Z);var G=Z.value,B=G.selection;Z.splitInlineAtRange(B,se)},Ro.toggleMark=function(Z,se){se=wt.create(se);var G=Z.value,B=G.activeMarks.has(se);B?Z.removeMark(se):Z.addMark(se)},Ro.unwrapBlock=function(Z,se){var G=Z.value,B=G.selection;Z.unwrapBlockAtRange(B,se)},Ro.unwrapInline=function(Z,se){var G=Z.value,B=G.selection;Z.unwrapInlineAtRange(B,se)},Ro.wrapBlock=function(Z,se){var G=Z.value,B=G.selection;Z.wrapBlockAtRange(B,se)},Ro.wrapInline=function(Z,se){var G=Z.value,B=G.selection;Z.wrapInlineAtRange(B,se)},Ro.wrapText=function(Z,se){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:se,B=Z.value,Pe=B.selection;Z.wrapTextAtRange(Pe,se,G),Pe.isCollapsed&&Z.moveStartBackward(se.length),Z.moveEndBackward(G.length),Pe.isForward!==Z.value.selection.isForward&&Z.flip()};function na(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=Z.plugins,G=se===void 0?[]:se,B=Ct(he({},jr,ri,Gr,kn,mt,Ro)),Pe=fn({isAtomic:function(){return!1},isVoid:function(){return!1}}),dt=tn({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(Pt,$e){var ut=$e.code,zt=$e.node;ut==="child_min_invalid"&&zt.nodes.isEmpty()&&Pt.insertNodeByKey(zt.key,0,ct.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(Pt,$e){var ut=$e.code,zt=$e.node,Ht=ct.create(),Fn=void 0;if(ut==="first_child_object_invalid")Fn=0;else if(ut==="last_child_object_invalid")Fn=zt.nodes.size;else return;Pt.insertNodeByKey(zt.key,Fn,Ht)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(Pt,$e){var ut=$e.code,zt=$e.node,Ht=$e.index,Fn=ct.create(),Cn=void 0;if(ut==="first_child_object_invalid")Cn=0;else if(ut==="last_child_object_invalid")Cn=zt.nodes.size;else if(ut==="previous_sibling_object_invalid")Cn=Ht;else if(ut==="next_sibling_object_invalid")Cn=Ht+1;else return;Pt.insertNodeByKey(zt.key,Cn,Fn)}},{match:{object:"text"},next:function(Pt,$e){return Pt.object!=="text"||!$e.marks.equals(Pt.marks)},normalize:function(Pt,$e){var ut=$e.code,zt=$e.next;ut==="next_sibling_invalid"&&Pt.mergeNodeByKey(zt.key)}},{match:{object:"text"},previous:function(Pt){return Pt.object!=="text"||Pt.text!==""},next:function(Pt){return Pt.object!=="text"||Pt.text!==""},normalize:function(Pt,$e){var ut=$e.code,zt=$e.next,Ht=$e.previous;ut==="next_sibling_invalid"?Pt.removeNodeByKey(zt.key):ut==="previous_sibling_invalid"&&Pt.removeNodeByKey(Ht.key)}}]});return[dt].concat(oe(G),[B,Pe])}var ta=h()("slate:editor"),aa=function(){function Z(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_(this,Z);var B=G.controller,Pe=B===void 0?this:B,dt=G.construct,Lt=dt===void 0?!0:dt,Pt=se.onChange,$e=Pt===void 0?function(){}:Pt,ut=se.plugins,zt=ut===void 0?[]:ut,Ht=se.readOnly,Fn=Ht===void 0?!1:Ht,Cn=se.value,tr=Cn===void 0?ge.create():Cn;this.controller=Pe,this.middleware={},this.onChange=$e,this.operations=(0,i.List)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0};var Jn=na({plugins:zt});ja(this,Jn),Lt&&(this.run("onConstruct"),this.setReadOnly(Fn),this.setValue(tr,G))}return N(Z,[{key:"applyOperation",value:function(G){var B=this,Pe=this.operations,dt=this.controller,Lt=this.value;s()(G)&&(G=he({},G,{value:Lt})),G=at.create(G),this.withoutNormalizing(function(){dt.save(G),Lt=B.value}),ta("apply",{operation:G}),this.value=G.apply(Lt),this.operations=Pe.push(G);var Pt=vi(G),$e=this.tmp.dirty.map(function(Ht){Ht=Y.create(Ht);var Fn=Y.transform(Ht,G);return Fn.toArray()}),ut={},zt=Array.prototype.concat.apply(Pt,$e);return this.tmp.dirty=[],zt.forEach(function(Ht){var Fn=Ht.join(",");ut[Fn]||B.tmp.dirty.push(Ht),ut[Fn]=!0}),this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then(function(){return B.flush()})),dt}},{key:"flush",value:function(){this.run("onChange");var G=this.value,B=this.operations,Pe=this.controller,dt={value:G,operations:B};return this.operations=(0,i.List)(),this.tmp.flushing=!1,this.onChange(dt),Pe}},{key:"command",value:function(G){for(var B=arguments.length,Pe=Array(B>1?B-1:0),dt=1;dt<B;dt++)Pe[dt-1]=arguments[dt];var Lt=this.controller;if(typeof G=="function")return G.apply(void 0,[Lt].concat(Pe)),to(this),Lt;ta("command",{type:G,args:Pe});var Pt={type:G,args:Pe};return this.run("onCommand",Pt),to(this),Lt}},{key:"hasCommand",value:function(G){var B=this.controller,Pe=G in B&&B[G].__command;return Pe}},{key:"hasQuery",value:function(G){var B=this.controller,Pe=G in B&&B[G].__query;return Pe}},{key:"normalize",value:function(){var G=this.value,B=this.controller,Pe=G.document,dt=Pe.getKeysToPathsTable(),Lt=Object.values(dt).map(Y.create);this.tmp.dirty=this.tmp.dirty.concat(Lt),to(this);var Pt=G.selection;return Pe=G.document,Pt.isUnset&&Pe.nodes.size&&B.moveToStartOfDocument(),B}},{key:"query",value:function(G){for(var B=arguments.length,Pe=Array(B>1?B-1:0),dt=1;dt<B;dt++)Pe[dt-1]=arguments[dt];var Lt=this.controller;if(typeof G=="function")return G.apply(void 0,[Lt].concat(Pe));ta("query",{type:G,args:Pe});var Pt={type:G,args:Pe};return this.run("onQuery",Pt)}},{key:"registerCommand",value:function(G){var B=this,Pe=this.controller;if(G in Pe&&Pe[G].__command)return Pe;(0,p.A)(!(G in Pe),"You cannot register a `"+G+"` command because it would overwrite an existing property of the `Editor`.");var dt=function(){for(var Pt=arguments.length,$e=Array(Pt),ut=0;ut<Pt;ut++)$e[ut]=arguments[ut];return B.command.apply(B,[G].concat($e))};return Pe[G]=dt,dt.__command=!0,Pe}},{key:"registerQuery",value:function(G){var B=this,Pe=this.controller;if(G in Pe&&Pe[G].__query)return Pe;(0,p.A)(!(G in Pe),"You cannot register a `"+G+"` query because it would overwrite an existing property of the `Editor`.");var dt=function(){for(var Pt=arguments.length,$e=Array(Pt),ut=0;ut<Pt;ut++)$e[ut]=arguments[ut];return B.query.apply(B,[G].concat($e))};return Pe[G]=dt,dt.__query=!0,Pe}},{key:"run",value:function(G){for(var B=arguments.length,Pe=Array(B>1?B-1:0),dt=1;dt<B;dt++)Pe[dt-1]=arguments[dt];var Lt=this.controller,Pt=this.middleware,$e=Pt[G]||[],ut=0;function zt(){var Ht=$e[ut++];if(Ht){for(var Fn=arguments.length,Cn=Array(Fn),tr=0;tr<Fn;tr++)Cn[tr]=arguments[tr];Cn.length&&(Pe=Cn);var Jn=Ht.apply(void 0,oe(Pe).concat([Lt,zt]));return Jn}}return Object.defineProperty(zt,"change",{get:function(){(0,p.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(zt,"onChange",{get:function(){(0,p.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(zt,"props",{get:function(){(0,p.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(zt,"schema",{get:function(){(0,p.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(zt,"stack",{get:function(){(0,p.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),zt()}},{key:"setReadOnly",value:function(G){return this.readOnly=G,this}},{key:"setValue",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=B.normalize,dt=Pe===void 0?G!==this.value:Pe;return this.value=G,dt&&this.normalize(),this}},{key:"withoutNormalizing",value:function(G){var B=this.controller,Pe=this.tmp.normalize;return this.tmp.normalize=!1,G(B),this.tmp.normalize=Pe,to(this),B}},{key:"change",value:function(G){f(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var B=arguments.length,Pe=Array(B>1?B-1:0),dt=1;dt<B;dt++)Pe[dt-1]=arguments[dt];G.apply(void 0,[this.controller].concat(Pe))}},{key:"call",value:function(G){f(!1,"As of Slate 0.43 the `editor.call(fn)` method has been deprecated, please use `editor.command(fn)` instead.");for(var B=arguments.length,Pe=Array(B>1?B-1:0),dt=1;dt<B;dt++)Pe[dt-1]=arguments[dt];return G.apply(void 0,[this.controller].concat(Pe)),this.controller}},{key:"applyOperations",value:function(G){var B=this;return f(!1,"As of Slate 0.43 the `applyOperations` method is deprecated, please apply each operation in a loop instead."),G.forEach(function(Pe){return B.applyOperation(Pe)}),this.controller}},{key:"setOperationFlag",value:function(G,B){return f(!1,"As of slate@0.41 the `change.setOperationFlag` method has been deprecated."),this.tmp[G]=B,this}},{key:"getFlag",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return f(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),B[G]!==void 0?B[G]:this.tmp[G]}},{key:"unsetOperationFlag",value:function(G){return f(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[G],this}},{key:"withoutNormalization",value:function(G){return f(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(G)}},{key:"editor",get:function(){return f(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),Z}();function vi(Z){var se=Z.type,G=Z.node,B=Z.path,Pe=Z.newPath;switch(se){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":{var dt=Y.getAncestors(B).toArray();return[].concat(oe(dt),[B])}case"insert_node":{var Lt=G.getKeysToPathsTable(),Pt=Object.values(Lt).map(function(ei){return B.concat(ei)}),$e=Y.getAncestors(B).toArray();return[].concat(oe($e),[B],oe(Pt))}case"split_node":{var ut=Y.getAncestors(B).toArray(),zt=Y.increment(B);return[].concat(oe(ut),[B,zt])}case"merge_node":{var Ht=Y.getAncestors(B).toArray(),Fn=Y.decrement(B);return[].concat(oe(Ht),[Fn])}case"move_node":{if(Y.isEqual(B,Pe))return[];var Cn=Y.getAncestors(B).reduce(function(ei,Ci){return ei.push.apply(ei,oe(Y.transform(Ci,Z).toArray())),ei},[]),tr=Y.getAncestors(Pe).reduce(function(ei,Ci){return ei.push.apply(ei,oe(Y.transform(Ci,Z).toArray())),ei},[]);return[].concat(oe(Cn),oe(tr))}case"remove_node":{var Jn=Y.getAncestors(B).toArray();return[].concat(oe(Jn))}default:return[]}}function to(Z){Z.tmp.normalize&&Z.tmp.dirty.length&&Z.withoutNormalizing(function(){for(;Z.tmp.dirty.length;){var se=Z.tmp.dirty.pop();$o(Z,se)}})}function $o(Z,se){for(var G=Z.controller,B=Z.value,Pe=B,dt=Pe.document,Lt=dt.assertNode(se),Pt=0,$e=100+(Lt.object==="text"?1:Lt.nodes.size);Lt;){var ut=Lt.normalize(G);if(!ut)break;ut(G),B=Z.value,dt=B.document;var zt=Lt,Ht=zt.key,Fn=dt.getDescendant(se);if(Fn&&Fn.key===Ht)Lt=Fn;else if(Fn=dt.getDescendant(Ht),Fn)Lt=Fn,se=dt.getPath(Ht);else break;if(Pt++,Pt>$e)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function ja(Z,se){if(Array.isArray(se)){se.forEach(function(Fn){return ja(Z,Fn)});return}if(se!=null){var G=se.commands,B=se.queries,Pe=se.schema,dt=fe(se,["commands","queries","schema"]);if(G){var Lt=Ct(G);ja(Z,Lt)}if(B){var Pt=fn(B);ja(Z,Pt)}if(Pe){var $e=tn(Pe);ja(Z,$e)}for(var ut in dt){var zt=dt[ut],Ht=Z.middleware[ut]=Z.middleware[ut]||[];Ht.push(zt)}}}var hs={marks:void 0,text:void 0},ro=function(Z){me(se,Z);function se(){return _(this,se),ve(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return N(se,[{key:"updateMark",value:function(B,Pe){var dt=this.marks;if(Pe.equals(B))return this;if(!dt.has(B))return this;var Lt=dt.withMutations(function(Pt){Pt.remove(B).add(Pe)});return this.set("marks",Lt)}},{key:"addMark",value:function(B){var Pe=this.marks;return this.set("marks",Pe.add(B))}},{key:"addMarks",value:function(B){var Pe=this.marks;return this.set("marks",Pe.union(B))}},{key:"insertText",value:function(B,Pe){var dt=this.text,Lt=dt.slice(0,B)+Pe+dt.slice(B);return this.set("text",Lt)}},{key:"removeMark",value:function(B){var Pe=this.marks;return this.set("marks",Pe.remove(B))}},{key:"toJSON",value:function(){var B={object:this.object,text:this.text,marks:this.marks.toArray().map(function(Pe){return Pe.toJSON()})};return B}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(f(!1,"As of slate@0.47 the `Leaf` model is deprecated."),se.isLeaf(B))return B;if(typeof B=="string"&&(B={text:B}),s()(B))return se.fromJSON(B);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+B)}},{key:"createLeaves",value:function(B){if(B.size<=1)return B;var Pe=!1,dt=(0,i.List)().withMutations(function(Lt){B.findLast(function(Pt,$e){var ut=Lt.first();if(ut){if(ut.marks.equals(Pt.marks)){Pe=!0,Lt.set(0,ut.set("text",""+Pt.text+ut.text));return}if(ut.text===""){Pe=!0,Lt.set(0,Pt);return}if(Pt.text===""){Pe=!0;return}}Lt.unshift(Pt)})});return Pe?dt:B}},{key:"splitLeaves",value:function(B,Pe){if(Pe<0)return[(0,i.List)(),B];if(B.size===0)return[(0,i.List)(),(0,i.List)()];var dt=0,Lt=-1,Pt=void 0,$e=void 0;return B.find(function(ut){Lt++;var zt=dt,Ht=ut.text;if(dt+=Ht.length,dt<Pe||zt>Pe)return!1;var Fn=Pe-zt;return Pt=ut.set("text",Ht.slice(0,Fn)),$e=ut.set("text",Ht.slice(Fn)),!0}),Pt?Pt.text===""?Lt===0?[i.List.of(Pt),B]:[B.take(Lt),B.skip(Lt)]:$e.text===""?Lt===B.size-1?[B,i.List.of($e)]:[B.take(Lt+1),B.skip(Lt+1)]:[B.take(Lt).push(Pt),B.skip(Lt+1).unshift($e)]:[B,(0,i.List)()]}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var Pe=new i.List(B.map(se.create));return Pe}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var Pe=B.text,dt=Pe===void 0?"":Pe,Lt=B.marks,Pt=Lt===void 0?[]:Lt,$e=new se({text:dt,marks:(0,i.Set)(Pt.map(wt.fromJSON))});return $e}},{key:"isLeafList",value:function(B){return i.List.isList(B)&&B.every(function(Pe){return se.isLeaf(Pe)})}}]),se}((0,i.Record)(hs));function as(Z,se){var G=!0,B=!1,Pe=void 0;try{for(var dt=se[Symbol.iterator](),Lt;!(G=(Lt=dt.next()).done);G=!0){var Pt=Lt.value,$e=!0,ut=!1,zt=void 0;try{for(var Ht=Object.getOwnPropertyNames(Z)[Symbol.iterator](),Fn;!($e=(Fn=Ht.next()).done);$e=!0){var Cn=Fn.value;if(!Pt.hasOwnProperty(Cn)){var tr=Object.getOwnPropertyDescriptor(Z,Cn);Object.defineProperty(Pt,Cn,tr)}}}catch(Eo){ut=!0,zt=Eo}finally{try{!$e&&Ht.return&&Ht.return()}finally{if(ut)throw zt}}var Jn=!0,ei=!1,Ci=void 0;try{for(var zi=Object.getOwnPropertyNames(Z.prototype)[Symbol.iterator](),co;!(Jn=(co=zi.next()).done);Jn=!0){var Xo=co.value;if(!Pt.prototype.hasOwnProperty(Xo)){var tr=Object.getOwnPropertyDescriptor(Z.prototype,Xo);Object.defineProperty(Pt.prototype,Xo,tr)}}}catch(Eo){ei=!0,Ci=Eo}finally{try{!Jn&&zi.return&&zi.return()}finally{if(ei)throw Ci}}}}catch(Eo){B=!0,Pe=Eo}finally{try{!G&&dt.return&&dt.return()}finally{if(B)throw Pe}}}function rn(Z){var se=et[Z],G=""+Z.charAt(0).toUpperCase()+Z.slice(1),B="is"+G,Pe=function(){function dt(){_(this,dt)}return N(dt,[{key:"object",get:function(){return Z}}]),dt}();return Pe[B]=ee.bind(null,Z),Pe.prototype[se]=!0,Pe}Object.entries({Annotation:De,Block:Me,Change:On,Decoration:Ke,Document:Fe,Editor:aa,Inline:qe,Leaf:ro,Mark:wt,Node:Ge,Operation:at,Point:ke,Range:K,Selection:At,Text:ct,Value:ge}).forEach(function(Z){var se=ce(Z,2),G=se[0],B=se[1];return as(rn(G.toLowerCase()),[B])});var Dr=function(){function Z(){_(this,Z)}return N(Z,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),Z}();as(Dr,[De,Me,Ke,Fe,qe,ro,wt,Ge,at,ke,K,At,ct,ge]);var Lr=!0,li=Symbol("LEAF"),Zi=Symbol("STORE_KEY"),Di=Symbol("undefined"),wo=Symbol("null"),Go=void 0,Ko=new WeakMap;function Ie(Z,se){var G=function(zt){var Ht=Z[zt];if(!Ht)throw new Error('Object does not have a property named "'+zt+'".');Z[zt]=function(){for(var Fn=arguments.length,Cn=Array(Fn),tr=0;tr<Fn;tr++)Cn[tr]=arguments[tr];if(!Lr)return Ht.apply(this,Cn);Ko.has(this)||Ko.set(this,{noArgs:{},hasArgs:{}});var Jn=Ko.get(this),ei=Jn.noArgs,Ci=Jn.hasArgs,zi=Cn.length!==0,co=void 0,Xo=void 0;if(zi?(Xo=[zt].concat(Cn),co=yt(Ci,Xo)):co=ei[zt],co!==Go)return co===Di?void 0:co;var Eo=Ht.apply(this,Cn),Yo=Eo===void 0?Di:Eo;return zi?on(Ci,Xo,Yo):ei[zt]=Yo,Eo}},B=!0,Pe=!1,dt=void 0;try{for(var Lt=se[Symbol.iterator](),Pt;!(B=(Pt=Lt.next()).done);B=!0){var $e=Pt.value;G($e)}}catch(ut){Pe=!0,dt=ut}finally{try{!B&&Lt.return&&Lt.return()}finally{if(Pe)throw dt}}}function yt(Z,se){var G=!0,B=!1,Pe=void 0;try{for(var dt=se[Symbol.iterator](),Lt;!(G=(Lt=dt.next()).done);G=!0){var Pt=Lt.value;if(Pt===void 0?Pt=Di:Pt==null&&(Pt=wo),(typeof Pt>"u"?"undefined":ae(Pt))==="object"?Z=Z[Zi]&&Z[Zi].get(Pt):Z=Z[Pt],Z===Go)return Go}}catch($e){B=!0,Pe=$e}finally{try{!G&&dt.return&&dt.return()}finally{if(B)throw Pe}}return Z[li]}function on(Z,se,G){var B=Z,Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=se[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done);Pe=!0){var ut=$e.value;if(ut===void 0?ut=Di:ut==null&&(ut=wo),(typeof ut>"u"?"undefined":ae(ut))!=="object"){B[ut]||(B[ut]={}),B=B[ut];continue}if(B[Zi]||(B[Zi]=new WeakMap),!B[Zi].has(ut)){var zt={};B[Zi].set(ut,zt),B=zt;continue}B=B[Zi].get(ut)}}catch(Ht){dt=!0,Lt=Ht}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}return B[li]=G,Z}function _n(){Ko=new WeakMap}function er(Z){Lr=Z}var or=function(){function Z(){_(this,Z)}return N(Z,[{key:"getFirstText",value:function(){if(this.object==="text")return this;var G=null,B=this.nodes.find(function(Pe){return Pe.object==="text"?!0:(G=Pe.getFirstText(),!!G)});return G||B}},{key:"getKeysToPathsTable",value:function(){var G=W({},this.key,[]);return this.nodes&&this.nodes.forEach(function(B,Pe){var dt=B.getKeysToPathsTable();for(var Lt in dt){var Pt=dt[Lt];f(!(Lt in G),'A node with a duplicate key of "'+Lt+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),G[Lt]=[Pe].concat(oe(Pt))}}),G}},{key:"getLastText",value:function(){if(this.object==="text")return this;var G=null,B=this.nodes.findLast(function(Pe){return Pe.object==="text"?!0:(G=Pe.getLastText(),G)});return G||B}},{key:"getNode",value:function(G){if(G=this.resolvePath(G),!G||this.object==="text"&&G.size)return null;var B=G.size?this.getDescendant(G):this;return B}},{key:"getPath",value:function(G){if(i.List.isList(G))return G;if(Ge.isNode(G)&&this.descendants){var B=!0,Pe=!1,dt=void 0;try{for(var Lt=this.descendants()[Symbol.iterator](),Pt;!(B=(Pt=Lt.next()).done);B=!0){var $e=Pt.value,ut=ce($e,2),zt=ut[0],Ht=ut[1];if(G===zt)return Ht}}catch(tr){Pe=!0,dt=tr}finally{try{!B&&Lt.return&&Lt.return()}finally{if(Pe)throw dt}}}var Fn=this.getKeysToPathsTable(),Cn=Fn[G];return Cn?(0,i.List)(Cn):null}},{key:"getText",value:function(){if(this.object==="text")return this.text;var G=this.nodes.reduce(function(B,Pe){return B+Pe.text},"");return G}},{key:"hasNode",value:function(G){var B=this.getNode(G);return!!B}},{key:"normalize",value:function(G){var B=G.run("normalizeNode",this);return B}},{key:"regenerateKey",value:function(){var G=j.create(),B=this.set("key",G);return B}},{key:"resolvePath",value:function(G,B){return typeof G=="string"?(G=this.getPath(G),B!=null&&(G=G.concat(B))):G=Y.create(G),G}},{key:"validate",value:function(G){var B=G.run("validateNode",this);return B}}]),Z}();Ie(or.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),as(or,[Me,Fe,qe,ct]);var Er=typeof t.g<"u"?t.g:typeof self<"u"?self:typeof window<"u"?window:{};function Mi(){return!0}var Ui=function(){function Z(){_(this,Z)}return N(Z,[{key:"addMark",value:function(G,B){G=this.resolvePath(G);var Pe=this.assertDescendant(G);Pe=Pe.addMark(B);var dt=this.replaceNode(G,Pe);return dt}},{key:"ancestors",value:function(G){var B=this.createIterable({path:G,direction:null,downward:!1,includeTargetAncestors:!0,includeRoot:!0});return B}},{key:"blocks",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=G.onlyLeaves,Pe=G.onlyRoots,dt=G.onlyTypes,Lt=G.match,Pt=fe(G,["onlyLeaves","onlyRoots","onlyTypes","match"]),$e=this.descendants(he({includeDocument:!1,includeInlines:!1,includeTexts:!1},Pt,{match:function(zt,Ht){return dt&&!dt.includes(zt.type)||Pe&&Ht.size!==1||B&&!zt.isLeafBlock()?!1:!(Lt&&!Lt(zt,Ht))}}));return $e}},{key:"createAnnotation",value:function(G){G=De.createProperties(G);var B=this.resolveAnnotation(G);return B}},{key:"createDecoration",value:function(G){G=Ke.createProperties(G);var B=this.resolveDecoration(G);return B}},{key:"createIterable",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=G.direction,Pe=B===void 0?"forward":B,dt=G.downward,Lt=dt===void 0?!0:dt,Pt=G.upward,$e=Pt===void 0?!0:Pt,ut=G.includeBlocks,zt=ut===void 0?!0:ut,Ht=G.includeDocument,Fn=Ht===void 0?!0:Ht,Cn=G.includeInlines,tr=Cn===void 0?!0:Cn,Jn=G.includeRoot,ei=Jn===void 0?!1:Jn,Ci=G.includeTarget,zi=Ci===void 0?!!G.range:Ci,co=G.includeTargetAncestors,Xo=co===void 0?!1:co,Eo=G.includeTexts,Yo=Eo===void 0?!0:Eo,Xn=G.match,fr=Xn===void 0?null:Xn,mr=this,yr=null,Rr=null;G.range?(Rr=mr.resolveRange(G.range),yr=mr.resolvePath(Rr.start.path)):G.path&&(yr=mr.resolvePath(G.path));var ai=yr&&mr.assertNode(yr),jt=typeof window>"u"?Er.Set:window.Set;return W({},Symbol.iterator,function(){var Pn=new jt,nr=Rr&&Rr.start.path,Ir=Rr&&Rr.end.path,fi=yr,Ti=ai,Oe=!1,pn=!1,Qn=!1,Sr=function(){return!fi||!Ti?{done:!0}:!ei&&Ti===mr||!zt&&Ti.object==="block"||!Fn&&Ti.object==="document"||!tr&&Ti.object==="inline"||!Yo&&Ti.object==="text"||fr&&!fr(Ti,fi)?hr():{value:[Ti,fi],done:!1}},hr=function kr(){if(!fi||!Ti)return Sr();if(nr&&!pn)return Qn?fi.size===nr.size-1?(pn=!0,fi=yr,Ti=ai,kr()):(fi=nr.slice(0,fi.size+1),Ti=mr.assertNode(fi),Sr()):(Qn=!0,fi=Y.create([]),Ti=mr,Sr());if(zi&&!Oe)return Oe=!0,Sr();if(Ir&&fi.equals(Ir))return Ti=null,fi=null,kr();if(Lt&&Ti.nodes&&Ti.nodes.size&&!Pn.has(Ti)){Pn.add(Ti);var Ve=Pe==="forward"?0:Ti.nodes.size-1;return fi=fi.push(Ve),Ti=mr.assertNode(fi),Sr()}if(Pe==="forward"){var Ot=Y.increment(fi),wn=mr.getNode(Ot);if(wn)return fi=Ot,Ti=wn,Sr()}if(Pe==="backward"&&fi.last()!==0){var Wt=Y.decrement(fi),Yt=mr.getNode(Wt);if(Yt)return fi=Wt,Ti=Yt,Sr()}return $e&&fi.size?(fi=Y.lift(fi),Ti=mr.assertNode(fi),Pn.has(Ti)?kr():(Pn.add(Ti),Xo?Sr():kr())):(fi=null,Ti=null,kr())};return{next:hr}})}},{key:"createPoint",value:function(G){G=ke.createProperties(G);var B=this.resolvePoint(G);return B}},{key:"createRange",value:function(G){G=K.createProperties(G);var B=this.resolveRange(G);return B}},{key:"createSelection",value:function(G){G=At.createProperties(G);var B=this.resolveSelection(G);return B}},{key:"descendants",value:function(G){var B=this.createIterable(he({path:[]},G));return B}},{key:"filterDescendants",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mi,B=[],Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=this.descendants()[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done);Pe=!0){var ut=$e.value,zt=ce(ut,2),Ht=zt[0],Fn=zt[1];G(Ht,Fn)&&B.push(Ht)}}catch(Cn){dt=!0,Lt=Cn}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}return(0,i.List)(B)}},{key:"findDescendant",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mi,B=!0,Pe=!1,dt=void 0;try{for(var Lt=this.descendants()[Symbol.iterator](),Pt;!(B=(Pt=Lt.next()).done);B=!0){var $e=Pt.value,ut=ce($e,2),zt=ut[0],Ht=ut[1];if(G(zt,Ht))return zt}}catch(Fn){Pe=!0,dt=Fn}finally{try{!B&&Lt.return&&Lt.return()}finally{if(Pe)throw dt}}return null}},{key:"forEachDescendant",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mi,B=!0,Pe=!1,dt=void 0;try{for(var Lt=this.descendants()[Symbol.iterator](),Pt;!(B=(Pt=Lt.next()).done);B=!0){var $e=Pt.value,ut=G.apply(void 0,oe($e));if(ut===!1)return}}catch(zt){Pe=!0,dt=zt}finally{try{!B&&Lt.return&&Lt.return()}finally{if(Pe)throw dt}}}},{key:"getActiveMarksAtRange",value:function(G){if(G=this.resolveRange(G),G.isUnset)return(0,i.Set)();if(G.isCollapsed){var B=G,Pe=B.start;return this.getInsertMarksAtPoint(Pe)}var dt=G,Lt=dt.start,Pt=dt.end,$e=Lt.path,ut=Lt.offset,zt=Pt.path,Ht=Pt.offset,Fn=this.getDescendant($e),Cn=this.getDescendant(zt);if(!$e.equals(zt)){for(;!$e.equals(zt)&&Ht===0;){var tr=this.texts({path:zt,direction:"backward"}),Jn=ce(tr,1),ei=ce(Jn[0],2);Cn=ei[0],zt=ei[1],Ht=Cn.text.length}for(;!$e.equals(zt)&&ut===Fn.text.length;){var Ci=this.texts({path:$e}),zi=ce(Ci,1),co=ce(zi[0],2);Fn=co[0],$e=co[1],ut=0}}if($e.equals(zt))return Fn.marks;var Xo=Fn.marks;if(Xo.size===0)return(0,i.Set)();var Eo=Cn.marks,Yo=Xo.intersect(Eo);if(Yo.size===0)return Yo;var Xn=this.texts({path:$e}),fr=ce(Xn,1),mr=ce(fr[0],2);for(Fn=mr[0],$e=mr[1];!$e.equals(zt);){if(Fn.text.length!==0&&(Yo=Yo.intersect(Fn.marks),Yo.size===0))return(0,i.Set)();var yr=this.texts({path:$e}),Rr=ce(yr,1),ai=ce(Rr[0],2);Fn=ai[0],$e=ai[1]}return Yo}},{key:"getAncestors",value:function(G){var B=this.ancestors(G),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}).reverse(),dt=(0,i.List)(Pe);return dt}},{key:"getBlocks",value:function(){var G=this.blocks({onlyLeaves:!0}),B=Array.from(G,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt}),Pe=(0,i.List)(B);return Pe}},{key:"getBlocksByType",value:function(G){var B=this.blocks({onlyLeaves:!0,onlyTypes:[G]}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getChild",value:function(G){if(G=this.resolvePath(G),!G||G.size>1)return null;var B=this.nodes.get(G.first());return B}},{key:"getClosest",value:function(G,B){var Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=this.ancestors(G)[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done);Pe=!0){var ut=$e.value,zt=ce(ut,2),Ht=zt[0],Fn=zt[1];if(B(Ht,Fn))return Ht}}catch(Cn){dt=!0,Lt=Cn}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}return null}},{key:"getClosestBlock",value:function(G){var B=this.getClosest(G,function(Pe){return Pe.object==="block"});return B}},{key:"getClosestInline",value:function(G){var B=this.getClosest(G,function(Pe){return Pe.object==="inline"});return B}},{key:"getClosestVoid",value:function(G,B){(0,p.A)(!ge.isValue(B),"As of Slate 0.42.0, the `node.getClosestVoid` method takes an `editor` instead of a `value`.");var Pe=this.getClosest(G,function(dt){return B.isVoid(dt)});return Pe}},{key:"getCommonAncestor",value:function(G,B){if(G=this.resolvePath(G),B=this.resolvePath(B),!G||!B)return null;var Pe=Y.relate(G,B),dt=this.getNode(Pe);return dt}},{key:"getDecorations",value:function(G){var B=G.run("decorateNode",this);return B=Ke.createList(B),B}},{key:"getDepth",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(G=this.resolvePath(G),!G)return null;var Pe=this.getNode(G),dt=Pe?G.size-1+B:null;return dt}},{key:"getDescendant",value:function(G){if(G=this.resolvePath(G),!G||!G.size)return null;var B=this;return G.forEach(function(Pe){return B=B.getIn(["nodes",Pe]),!!B}),B}},{key:"getDescendantsAtRange",value:function(G){var B=this.descendants({range:G}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getFragmentAtRange",value:function(G){if(G=this.resolveRange(G),G.isUnset)return Fe.create();for(var B=G,Pe=B.start,dt=B.end,Lt=this,Pt=dt.path,$e=dt.offset,ut="end";Pt.size;){var zt=Pt.last();Lt=Lt.splitNode(Pt,$e),$e=zt+1,Pt=Y.lift(Pt),!Pt.size&&ut==="end"&&(Pt=Pe.path,$e=Pe.offset,ut="start")}var Ht=Pe.path.first()+1,Fn=dt.path.first()+2,Cn=Lt.nodes.slice(Ht,Fn),tr=Fe.create({nodes:Cn});return tr}},{key:"getFurthest",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mi,Pe=this.ancestors(G),dt=Array.from(Pe).reverse(),Lt=!0,Pt=!1,$e=void 0;try{for(var ut=dt[Symbol.iterator](),zt;!(Lt=(zt=ut.next()).done);Lt=!0){var Ht=zt.value,Fn=ce(Ht,2),Cn=Fn[0],tr=Fn[1];if(B(Cn,tr))return Cn}}catch(Jn){Pt=!0,$e=Jn}finally{try{!Lt&&ut.return&&ut.return()}finally{if(Pt)throw $e}}return null}},{key:"getFurthestBlock",value:function(G){var B=this.getFurthest(G,function(Pe){return Pe.object==="block"});return B}},{key:"getFurthestChild",value:function(G){if(G=this.resolvePath(G),!G||!G.size)return null;var B=this.nodes.get(G.first());return B}},{key:"getFurthestInline",value:function(G){var B=this.getFurthest(G,function(Pe){return Pe.object==="inline"});return B}},{key:"getInlines",value:function(){var G=this.inlines({onlyLeaves:!0}),B=Array.from(G,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt}),Pe=(0,i.List)(B);return Pe}},{key:"getInlinesByType",value:function(G){var B=this.inlines({onlyLeaves:!0,onlyTypes:[G]}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getInsertMarksAtPoint",value:function(G){G=this.resolvePoint(G);var B=G,Pe=B.path,dt=B.offset,Lt=this.getDescendant(Pe);if(dt!==0)return Lt.marks;var Pt=void 0,$e=void 0,ut=!0,zt=!1,Ht=void 0;try{for(var Fn=this.ancestors(Pe)[Symbol.iterator](),Cn;!(ut=(Cn=Fn.next()).done);ut=!0){var tr=Cn.value,Jn=ce(tr,2),ei=Jn[0],Ci=Jn[1];ei.object==="block"&&(Pt=ei,$e=Ci)}}catch(fr){zt=!0,Ht=fr}finally{try{!ut&&Fn.return&&Fn.return()}finally{if(zt)throw Ht}}var zi=Y.drop(Pe,$e.size),co=Pt.texts({path:zi,direction:"backward"}),Xo=ce(co,1),Eo=Xo[0];if(!Eo)return Lt.marks;var Yo=ce(Eo,1),Xn=Yo[0];return Xn.marks}},{key:"getInsertMarksAtRange",value:function(G){G=this.resolveRange(G);var B=G,Pe=B.start;if(G.isUnset)return(0,i.Set)();if(G.isCollapsed)return this.getInsertMarksAtPoint(Pe);var dt=this.getDescendant(Pe.path);return dt.marks}},{key:"getLeafBlocksAtRange",value:function(G){var B=this.blocks({range:G,onlyLeaves:!0}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getLeafInlinesAtRange",value:function(G){var B=this.inlines({range:G,onlyLeaves:!0}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getNodesToPathsMap",value:function(){var G=this,B=typeof window>"u"?new Er.Map:new window.Map;return B.set(G,Y.create([])),G.forEachDescendant(function(Pe,dt){B.set(Pe,dt)}),B}},{key:"getMarks",value:function(){var G=this.marks(),B=Array.from(G,function(Pe){var dt=ce(Pe,1),Lt=dt[0];return Lt});return(0,i.OrderedSet)(B)}},{key:"getMarksAtRange",value:function(G){var B=this.marks({range:G}),Pe=Array.from(B,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt});return(0,i.OrderedSet)(Pe)}},{key:"getMarksByType",value:function(G){var B=this.marks({onlyTypes:[G]}),Pe=Array.from(B,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt});return(0,i.OrderedSet)(Pe)}},{key:"getNextBlock",value:function(G){var B=this.blocks({path:G,onlyLeaves:!0}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getNextNode",value:function(G){var B=this.createIterable({path:G,downward:!1}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getNextSibling",value:function(G){var B=this.siblings(G),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getNextText",value:function(G){var B=this.texts({path:G}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getOffset",value:function(G){G=this.resolvePath(G),this.assertDescendant(G);var B=G.first(),Pe=this.nodes.slice(0,B).reduce(function(Lt,Pt){return Lt+Pt.text.length},0),dt=G.size===1?Pe:Pe+this.nodes.get(B).getOffset(Y.drop(G));return dt}},{key:"getOffsetAtRange",value:function(G){if(G=this.resolveRange(G),G.isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(G.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var B=G,Pe=B.start,dt=this.getOffset(Pe.path)+Pe.offset;return dt}},{key:"getParent",value:function(G){if(G=this.resolvePath(G),!G||!G.size)return null;var B=Y.lift(G),Pe=this.getNode(B);return Pe}},{key:"getPreviousBlock",value:function(G){var B=this.blocks({path:G,onlyLeaves:!0,direction:"backward"}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getPreviousNode",value:function(G){var B=this.createIterable({path:G,downward:!1,direction:"backward"}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getPreviousSibling",value:function(G){var B=this.siblings(G,{direction:"backward"}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getPreviousText",value:function(G){var B=this.texts({path:G,direction:"backward"}),Pe=ce(B,1),dt=Pe[0],Lt=dt?dt[0]:null;return Lt}},{key:"getRootBlocksAtRange",value:function(G){var B=this.blocks({range:G,onlyRoots:!0}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getRootInlinesAtRange",value:function(G){var B=this.inlines({range:G,onlyRoots:!0}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"getTextAtOffset",value:function(G){if(G===0)return this.getFirstText();if(G===this.text.length)return this.getLastText();if(G<0||G>this.text.length)return null;var B=0,Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=this.texts()[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done);Pe=!0){var ut=$e.value,zt=ce(ut,1),Ht=zt[0];if(B+=Ht.text.length,B>G)return Ht}}catch(Fn){dt=!0,Lt=Fn}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}return null}},{key:"getTextDirection",value:function(){var G=R()(this.text);return G==="neutral"?null:G}},{key:"getTexts",value:function(){var G=this.texts(),B=Array.from(G,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt}),Pe=(0,i.List)(B);return Pe}},{key:"getTextsAtRange",value:function(G){var B=this.texts({range:G}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"hasBlockChildren",value:function(){return!!(this.nodes&&this.nodes.find(function(G){return G.object==="block"}))}},{key:"hasChild",value:function(G){var B=this.getChild(G);return!!B}},{key:"hasInlineChildren",value:function(){return!!(this.nodes&&this.nodes.find(function(G){return G.object==="inline"||G.object==="text"}))}},{key:"hasDescendant",value:function(G){var B=this.getDescendant(G);return!!B}},{key:"hasVoidParent",value:function(G,B){(0,p.A)(!ge.isValue(B),"As of Slate 0.42.0, the `node.hasVoidParent` method takes an `editor` instead of a `value`.");var Pe=this.getClosestVoid(G,B);return!!Pe}},{key:"inlines",value:function(){var G=this,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=B.onlyLeaves,dt=B.onlyRoots,Lt=B.onlyTypes,Pt=B.match,$e=fe(B,["onlyLeaves","onlyRoots","onlyTypes","match"]),ut=this.descendants(he({includeBlocks:!1,includeTexts:!1,includeDocument:!1},$e,{match:function(Ht,Fn){return Lt&&!Lt.includes(Ht.type)||Pe&&!Ht.isLeafInline()||dt&&G.getParent(Fn).object!=="block"?!1:!(Pt&&!Pt(Ht,Fn))}}));return ut}},{key:"insertNode",value:function(G,B){G=this.resolvePath(G);var Pe=G.last(),dt=Y.lift(G),Lt=this.assertNode(dt),Pt=Lt.nodes.splice(Pe,0,B);Lt=Lt.set("nodes",Pt);var $e=this.replaceNode(dt,Lt);return $e}},{key:"insertText",value:function(G,B,Pe){G=this.resolvePath(G);var dt=this.assertDescendant(G);dt=dt.insertText(B,Pe);var Lt=this.replaceNode(G,dt);return Lt}},{key:"isLeafBlock",value:function(){return!(this.object!=="block"||this.nodes.some(function(G){return G.object==="block"}))}},{key:"isLeafInline",value:function(){return!(this.object!=="inline"||this.nodes.some(function(G){return G.object==="inline"}))}},{key:"isInRange",value:function(G,B){if(G=this.resolvePath(G),B=this.resolveRange(B),B.isUnset)return!1;var Pe=Y.compare(G,B.start.path),dt=Y.compare(G,B.end.path),Lt=Pe!==-1&&dt!==1;return Lt}},{key:"mapChildren",value:function(){var G=this,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mi,Pe=this.nodes;Pe.forEach(function(Lt,Pt){var $e=B(Lt,Pt,G.nodes);$e!==Lt&&(Pe=Pe.set($e.key,$e))});var dt=this.set("nodes",Pe);return dt}},{key:"mapDescendants",value:function(){var G=this,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mi,Pe=this.nodes;Pe.forEach(function(Lt,Pt){var $e=Lt;$e.object!=="text"&&($e=$e.mapDescendants(B)),$e=B($e,Pt,G.nodes),$e!==Lt&&(Pe=Pe.set(Pt,$e))});var dt=this.set("nodes",Pe);return dt}},{key:"marks",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=G.onlyTypes,Pe=B===void 0?null:B,dt=G.match,Lt=fe(G,["onlyTypes","match"]),Pt=this.texts(Lt);return W({},Symbol.iterator,function(){var $e=Pt[Symbol.iterator](),ut=null,zt=null,Ht=[],Fn=function Cn(){if(Ht.length){var tr=Ht.shift();return Pe&&!Pe.includes(tr.type)||dt&&!dt(tr,ut,zt)?Cn():{value:[tr,ut,zt],done:!1}}var Jn=$e.next(),ei=Jn.value,Ci=Jn.done;if(Ci)return{done:!0};var zi=ce(ei,2);return ut=zi[0],zt=zi[1],Ht=ut.marks.toArray(),Cn()};return{next:Fn}})}},{key:"mergeNode",value:function(G){var B=this.assertNode(G);if(G=this.resolvePath(G),G.last()===0)throw new Error("Unable to merge node because it has no previous sibling: "+B);var Pe=Y.decrement(G),dt=this.assertNode(Pe);if(dt.object!==B.object)throw new Error("Unable to merge two different kinds of nodes: "+dt+" and "+B);var Lt=dt.object==="text"?dt.mergeText(B):dt.set("nodes",dt.nodes.concat(B.nodes)),Pt=this;return Pt=Pt.removeNode(G),Pt=Pt.removeNode(Pe),Pt=Pt.insertNode(Pe,Lt),Pt}},{key:"moveNode",value:function(G,B){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,dt=this.assertNode(G);G=this.resolvePath(G),B=this.resolvePath(B,Pe);var Lt=Y.lift(B);this.assertNode(Lt);var Pt=at.create({type:"move_node",path:G,newPath:B});B=Y.transform(G,Pt).first();var $e=this;return $e=$e.removeNode(G),$e=$e.insertNode(B,dt),$e}},{key:"removeMark",value:function(G,B){G=this.resolvePath(G);var Pe=this.assertDescendant(G);Pe=Pe.removeMark(B);var dt=this.replaceNode(G,Pe);return dt}},{key:"removeNode",value:function(G){this.assertDescendant(G),G=this.resolvePath(G);var B=G.flatMap(function(dt){return["nodes",dt]}),Pe=this.deleteIn(B);return Pe}},{key:"removeText",value:function(G,B,Pe){var dt=this.assertDescendant(G);dt=dt.removeText(B,Pe.length);var Lt=this.replaceNode(G,dt);return Lt}},{key:"replaceNode",value:function(G,B){if(G=this.resolvePath(G),!G)throw new Error("Unable to replace a node because it could not be found in the first place: "+G);if(!G.size)return B;this.assertNode(G);var Pe=G.flatMap(function(Lt){return["nodes",Lt]}),dt=this.setIn(Pe,B);return dt}},{key:"resolveAnnotation",value:function(G){return G=De.create(G),G=G.normalize(this),G}},{key:"resolveDecoration",value:function(G){return G=Ke.create(G),G=G.normalize(this),G}},{key:"resolvePoint",value:function(G){return G=ke.create(G),G=G.normalize(this),G}},{key:"resolveRange",value:function(G){return G=K.create(G),G=G.normalize(this),G}},{key:"resolveSelection",value:function(G){return G=At.create(G),G=G.normalize(this),G}},{key:"setNode",value:function(G,B){var Pe=this.assertNode(G);Pe=Pe.merge(B);var dt=this.replaceNode(G,Pe);return dt}},{key:"setMark",value:function(G,B,Pe){G=this.resolvePath(G);var dt=this.assertDescendant(G);dt=dt.setMark(B,Pe);var Lt=this.replaceNode(G,dt);return Lt}},{key:"siblings",value:function(G,B){var Pe=this.createIterable(he({path:G,upward:!1,downward:!1},B));return Pe}},{key:"splitNode",value:function(G,B,Pe){var dt=this.assertNode(G);G=this.resolvePath(G);var Lt=void 0,Pt=void 0;if(dt.object==="text"){var $e=dt.splitText(B),ut=ce($e,2);Lt=ut[0],Pt=ut[1]}else{var zt=dt.nodes.take(B),Ht=dt.nodes.skip(B);Lt=dt.set("nodes",zt),Pt=dt.set("nodes",Ht).regenerateKey()}Pe&&dt.object!=="text"&&(Pt=Pt.merge(Pe));var Fn=this;return Fn=Fn.removeNode(G),Fn=Fn.insertNode(G,Pt),Fn=Fn.insertNode(G,Lt),Fn}},{key:"texts",value:function(G){var B=this.descendants(he({includeBlocks:!1,includeInlines:!1,includeDocument:!1},G));return B}},{key:"getBlocksAtRange",value:function(G){return f(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(G)}},{key:"getBlocksAtRangeAsArray",value:function(G){return f(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(G)}},{key:"getInlinesAtRange",value:function(G){return f(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(G)}},{key:"getInlinesAtRangeAsArray",value:function(G){return f(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(G)}},{key:"getNextTextAndPath",value:function(G){return f(!1,"As of slate@0.47, the `getNextTextAndPath` method has been renamed to `getNextTextEntry`."),this.getNextTextEntry(G)}},{key:"getNextDeepMatchingNodeAndPath",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};f(!1,"As of slate@0.47, the `getNextDeepMatchingNodeAndPath` method is deprecated.");var Pe=this.getNextMatchingNodeAndPath(G);if(!Pe)return null;for(var dt=ce(Pe,2),Lt=dt[0],Pt=dt[1],$e=void 0,ut=function(){return $e=Lt.object!=="text"&&Lt.findFirstDescendantAndPath(B,Pt),$e};ut($e);){var zt=$e,Ht=ce(zt,2);Lt=Ht[0],Pt=Ht[1]}return Lt?B(Lt)?[Lt,Pt]:this.getNextDeepMatchingNodeAndPath(Pe[1],B):null}},{key:"getPreviousTextAndPath",value:function(G){return f(!1,"As of slate@0.47, the `getPreviousTextAndPath` method has been renamed to `getPreviousTextEntry`."),this.getPreviousTextEntry(G)}},{key:"findFirstDescendantAndPath",value:function(G,B){return f(!1,"As of slate@0.47, the `findFirstDescendantAndPath` method is deprecated."),this.findDescendantAndPath(G,B,!1)}},{key:"getPreviousMatchingNodeAndPath",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};if(f(!1,"As of slate@0.47, the `getPreviousMatchingNodeAndPath` method is deprecated."),!G)return null;for(var Pe=G.size;Pe>0;Pe--){var dt=G.slice(0,Pe);if(dt.last()!==0){for(var Lt=Y.decrement(dt),Pt=this.getNode(Lt);Pt&&!B(Pt);)Lt=Y.decrement(Lt),Pt=this.getNode(Lt);if(Pt)return[Pt,Lt]}}return null}},{key:"getPreviousDeepMatchingNodeAndPath",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};f(!1,"As of slate@0.47, the `getPreviousDeepMatchingNodeAndPath` method is deprecated.");var Pe=this.getPreviousMatchingNodeAndPath(G);if(!Pe)return null;for(var dt=ce(Pe,2),Lt=dt[0],Pt=dt[1],$e=void 0,ut=function(){return $e=Lt.object!=="text"&&Lt.findLastDescendantAndPath(B,Pt),$e};ut($e);){var zt=$e,Ht=ce(zt,2);Lt=Ht[0],Pt=Ht[1]}return Lt?B(Lt)?[Lt,Pt]:this.getPreviousDeepMatchingNodeAndPath(Pe[1],B):null}},{key:"findLastDescendantAndPath",value:function(G,B){return f(!1,"As of slate@0.47, the `findLastDescendantAndPath` method is deprecated."),this.findDescendantAndPath(G,B,!0)}},{key:"findDescendantAndPath",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y.create([]),Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(!1,"As of slate@0.47, the `findDescendantAndPath` method is deprecated.");var dt=void 0,Lt=void 0;return this.forEachDescendantWithPath(function(Pt,$e,ut){if(G(Pt,$e,ut))return dt=Pt,Lt=$e,!1},B,Pe),dt?[dt,Lt]:null}},{key:"forEachDescendantWithPath",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y.create([]),Pe=arguments[2];f(!1,"As of slate@0.47, the `forEachDescendantWithPath` method is deprecated.");var dt=this.nodes,Lt=void 0;return Pe&&(dt=dt.reverse()),dt.forEach(function(Pt,$e){var ut=B.concat($e);if(G(Pt,ut,dt)===!1)return Lt=!1,!1;if(Pt.object!=="text")return Lt=Pt.forEachDescendantWithPath(G,ut,Pe),Lt}),Lt}},{key:"getNextMatchingNodeAndPath",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};if(f(!1,"As of slate@0.47, the `getNextMatchingNodeAndPath` method is deprecated."),!G)return null;for(var Pe=G.size;Pe>0;Pe--){for(var dt=G.slice(0,Pe),Lt=Y.increment(dt),Pt=this.getNode(Lt);Pt&&!B(Pt);)Lt=Y.increment(Lt),Pt=this.getNode(Lt);if(Pt)return[Pt,Lt]}return null}},{key:"getSelectionIndexes",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;f(!1,"As of slate@0.47, the `getSelectionIndexes` method is deprecated.");var Pe=G.start,dt=G.end;if(!B||G.isUnset)return null;if(Pe.path.equals(dt.path)){var Lt=this.getFurthestAncestor(Pe.path),Pt=Lt?this.nodes.indexOf(Lt):null;return{start:Pt,end:Pt+1}}var $e=null,ut=null;return this.nodes.forEach(function(zt,Ht){return zt.object==="text"?($e==null&&zt.key===Pe.key&&($e=Ht),ut==null&&zt.key===dt.key&&(ut=Ht+1)):($e==null&&zt.hasDescendant(Pe.key)&&($e=Ht),ut==null&&zt.hasDescendant(dt.key)&&(ut=Ht+1)),$e==null||ut==null}),B&&$e==null&&($e=0),B&&ut==null&&(ut=this.nodes.size),$e==null?null:{start:$e,end:ut}}},{key:"getTextsBetweenPositionsAsArray",value:function(G,B){return f(!1,"As of slate@0.47, the `getTextsBetweenPositionsAsArray` method is deprecated."),G=this.resolvePath(G),B=this.resolvePath(B),this.getTextsBetweenPathPositionsAsArray(G,B)}},{key:"getOrderedMarksBetweenPositions",value:function(G,B,Pe,dt){f(!1,"As of slate@0.47, the `getOrderedMarksBetweenPositions` method is deprecated."),G=this.resolvePath(G),Pe=this.resolvePath(Pe);var Lt=this.getDescendant(G);if(Y.isEqual(G,Pe))return Lt.marks;var Pt=this.getTextsBetweenPathPositionsAsArray(G,Pe);return(0,i.OrderedSet)().withMutations(function($e){Pt.forEach(function(ut){$e.union(ut.marks)})})}},{key:"getTextsBetweenPathPositionsAsArray",value:function(G,B){if(f(!1,"As of slate@0.47, the `getTextsBetweenPathPositionsAsArray` method is deprecated."),G&&B&&Y.isEqual(G,B))return[this.getDescendant(G)];if(!G&&!B)return this.getTextsAsArray();var Pe=G?G.get(0,0):0,dt=B?B.get(0,this.nodes.size-1):this.nodes.size-1,Lt=[];return this.nodes.slice(Pe,dt+1).forEach(function(Pt,$e){if(Pt.object==="text")Lt.push(Pt);else{var ut=G&&$e===0?Y.drop(G):null,zt=B&&$e===dt-Pe?Y.drop(B):null;Lt=Lt.concat(Pt.getTextsBetweenPathPositionsAsArray(ut,zt))}}),Lt}},{key:"getFurthestAncestor",value:function(G){return f(!1,"As of slate@0.47, the `getFurthestAncestor` method has been renamed to `getFurthestChild`."),this.getFurthestChild(G)}},{key:"getLeafBlocksAtRangeAsArray",value:function(G){if(f(!1,"As of slate@0.47, the `getLeafBlocksAtRangeAsArray` method is deprecated."),G=this.resolveRange(G),G.isUnset)return[];var B=G,Pe=B.start,dt=B.end;return this.getLeafBlocksBetweenPathPositionsAsArray(Pe.path,dt.path)}},{key:"getLeafBlocksBetweenPathPositionsAsArray",value:function(G,B){if(f(!1,"As of slate@0.47, the `getLeafBlocksBetweenPathPositionsAsArray` method is deprecated."),G&&B&&Y.isEqual(G,B))return[this.getClosestBlock(G)];if(!G&&!B)return this.getBlocksAsArray();var Pe=G?G.get(0,0):0,dt=B?B.get(0,this.nodes.size-1):this.nodes.size-1,Lt=[];return this.nodes.slice(Pe,dt+1).forEach(function(Pt,$e){if(Pt.object==="block")if(Pt.isLeafBlock())Lt.push(Pt);else{var ut=G&&$e===0?Y.drop(G):null,zt=B&&$e===dt-Pe?Y.drop(B):null;Lt=Lt.concat(Pt.getLeafBlocksBetweenPathPositionsAsArray(ut,zt))}}),Lt}},{key:"getBlocksAsArray",value:function(){f(!1,"As of slate@0.47, the `getBlocksAsArray` method is deprecated.");var G=this.blocks({onlyLeaves:!0}),B=Array.from(G,function(Pe){var dt=ce(Pe,1),Lt=dt[0];return Lt});return B}},{key:"getBlocksByTypeAsArray",value:function(G){f(!1,"As of slate@0.47, the `getBlocksByTypeAsArray` method is deprecated.");var B=this.blocks({onlyLeaves:!0,onlyTypes:[G]}),Pe=Array.from(B,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt});return Pe}},{key:"getFurthestOnlyChildAncestor",value:function(G){f(!1,"As of slate@0.47, the `getFurthestOnlyChildAncestor` method is deprecated.");var B=this.getAncestors(G);if(!B)return null;var Pe=B.rest().reverse().takeUntil(function(dt){return dt.nodes.size>1}).last();return Pe||null}},{key:"getInlinesAsArray",value:function(){f(!1,"As of slate@0.47, the `getInlinesAsArray` method is deprecated.");var G=Array.from(this.inlines({onlyLeaves:!0}),function(B){var Pe=ce(B,1),dt=Pe[0];return dt});return G}},{key:"getInlinesByTypeAsArray",value:function(G){f(!1,"As of slate@0.47, the `getInlinesByTypeAsArray` method is deprecated.");var B=Array.from(this.inlines({onlyLeaves:!0,onlyTypes:[G]}),function(Pe){var dt=ce(Pe,1),Lt=dt[0];return Lt});return B}},{key:"getLeafInlinesAtRangeAsArray",value:function(G){var B=this;if(f(!1,"As of slate@0.47, the `getLeafInlinesAtRangeAsArray` method is deprecated."),G=this.resolveRange(G),G.isUnset)return[];var Pe=this.getTextsAtRangeAsArray(G).map(function(dt){return B.getClosestInline(dt.key)}).filter(function(dt){return dt});return Pe}},{key:"getOrderedMarks",value:function(){return f(!1,"As of slate@0.47, the `getOrderedMarks` method has been folded into `getMarks`, which will now return an ordered set."),this.getMarks()}},{key:"getOrderedMarksAtRange",value:function(G){return f(!1,"As of slate@0.47, the `getOrderedMarksAtRange` method has been folded into `getMarksAtRange`, which will now return an ordered set."),this.getMarksAtRange(G)}},{key:"getOrderedMarksByType",value:function(G){return f(!1,"As of slate@0.47, the `getOrderedMarksByType` method has been folded into `getMarksByType`, which will now return an ordered set."),this.getMarksByType(G)}},{key:"getMarksByTypeAsArray",value:function(G){f(!1,"As of slate@0.47, the `getMarksByTypeAsArray` method is deprecated.");var B=this.nodes.reduce(function(Pe,dt){return dt.object==="text"?Pe.concat(dt.marks.filter(function(Lt){return Lt.type===G})):Pe.concat(dt.getMarksByTypeAsArray(G))},[]);return B}},{key:"getMarksAsArray",value:function(){var G;f(!1,"As of slate@0.47, the `getMarksAsArray` method is deprecated.");var B=[],Pe=!0,dt=!1,Lt=void 0;try{for(var Pt=this.texts()[Symbol.iterator](),$e;!(Pe=($e=Pt.next()).done);Pe=!0){var ut=$e.value,zt=ce(ut,1),Ht=zt[0];B.push(Ht.marks.toArray())}}catch(Cn){dt=!0,Lt=Cn}finally{try{!Pe&&Pt.return&&Pt.return()}finally{if(dt)throw Lt}}var Fn=(G=[]).concat.apply(G,B);return Fn}},{key:"getRootInlinesAtRangeAsArray",value:function(G){var B=this;if(f(!1,"As of slate@0.47, the `getRootInlinesAtRangeAsArray` method is deprecated."),G=this.resolveRange(G),G.isUnset)return(0,i.List)();var Pe=this.getTextsAtRangeAsArray(G).map(function(dt){return B.getFurthestInline(dt.key)}).filter(function(dt){return dt});return Pe}},{key:"getTextsAsArray",value:function(){f(!1,"As of slate@0.47, the `getTextsAsArray` method is deprecated.");var G=this.texts(),B=Array.from(G,function(Pe){var dt=ce(Pe,1),Lt=dt[0];return Lt});return B}},{key:"getTextsAtRangeAsArray",value:function(G){f(!1,"As of slate@0.47, the `getTextsAtRangeAsArray` method is deprecated.");var B=this.texts({range:G}),Pe=Array.from(B,function(dt){var Lt=ce(dt,1),Pt=Lt[0];return Pt});return Pe}},{key:"getMarksAtPosition",value:function(G,B){f(!1,"As of slate@0.47, the `getMarksAtPosition` method is deprecated."),G=this.resolvePath(G);var Pe=this.getDescendant(G),dt=Pe.marks;if(B!==0)return(0,i.OrderedSet)(dt);var Lt=this.getClosestBlock(G);if(Lt.text==="")return(0,i.OrderedSet)(dt);var Pt=this.texts({path:G,direction:"backward"}),$e=ce(Pt,1),ut=$e[0];if(!ut)return(0,i.OrderedSet)();var zt=ce(ut,2),Ht=zt[0],Fn=zt[1];return Lt.hasDescendant(Fn)?(0,i.OrderedSet)(Ht.marks):(0,i.OrderedSet)(dt)}},{key:"getNodesAtRange",value:function(G){f(!1,"As of slate@0.47, the `getNodesAtRange` method has been renamed to `getDescendantsAtRange`.");var B=this.descendants({range:G}),Pe=Array.from(B,function(Lt){var Pt=ce(Lt,1),$e=Pt[0];return $e}),dt=(0,i.List)(Pe);return dt}},{key:"isNodeInRange",value:function(G,B){return f(!1,"As of slate@0.47, the `isNodeInRange` method has been renamed to `isInRange`."),this.isInRange(G,B)}},{key:"text",get:function(){return this.getText()}}]),Z}(),Nn=["Child","Depth","Descendant","Node","Parent","Path"],cr=function(se){Ui.prototype["assert"+se]=function(G){for(var B=arguments.length,Pe=Array(B>1?B-1:0),dt=1;dt<B;dt++)Pe[dt-1]=arguments[dt];var Lt=this["get"+se].apply(this,[G].concat(Pe));if(Lt==null)throw new Error("`Node.assert"+se+"` could not find node with path or key: "+G);return Lt}},ni=!0,Xr=!1,Jr=void 0;try{for(var Qi=Nn[Symbol.iterator](),Fo;!(ni=(Fo=Qi.next()).done);ni=!0){var No=Fo.value;cr(No)}}catch(Z){Xr=!0,Jr=Z}finally{try{!ni&&Qi.return&&Qi.return()}finally{if(Xr)throw Jr}}Ie(Ui.prototype,["getBlocksAsArray","getBlocksByTypeAsArray","getDecorations","getFragmentAtRange","getInlinesAsArray","getInlinesByTypeAsArray","getInsertMarksAtRange","getLeafBlocksAtRangeAsArray","getLeafBlocksAtRangeAsArray","getLeafInlinesAtRangeAsArray","getMarksAsArray","getMarksAtPosition","getMarksByTypeAsArray","getNextBlock","getNodesAtRange","getNodesToPathsMap","getOffset","getOffsetAtRange","getOrderedMarksBetweenPositions","getPreviousBlock","getRootBlocksAtRange","getRootInlinesAtRangeAsArray","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPathPositionsAsArray"]),as(Ui,[Me,Fe,qe]);var Jo=function(){function Z(){_(this,Z)}return N(Z,[{key:"flip",value:function(){var G=this.setPoints([this.focus,this.anchor]);return G}},{key:"moveForward",value:function(G){return this.updatePoints(function(B){return B.moveForward(G)})}},{key:"moveBackward",value:function(G){return this.updatePoints(function(B){return B.moveBackward(G)})}},{key:"moveAnchorBackward",value:function(G){var B=this.setAnchor(this.anchor.moveBackward(G));return B}},{key:"moveAnchorForward",value:function(G){var B=this.setAnchor(this.anchor.moveForward(G));return B}},{key:"moveAnchorTo",value:function(G,B){var Pe=this.setAnchor(this.anchor.moveTo(G,B));return Pe}},{key:"moveAnchorToStartOfNode",value:function(G){var B=this.setAnchor(this.anchor.moveToStartOfNode(G));return B}},{key:"moveAnchorToEndOfNode",value:function(G){var B=this.setAnchor(this.anchor.moveToEndOfNode(G));return B}},{key:"moveEndBackward",value:function(G){var B=this.setEnd(this.end.moveBackward(G));return B}},{key:"moveEndForward",value:function(G){var B=this.setEnd(this.end.moveForward(G));return B}},{key:"moveEndTo",value:function(G,B){var Pe=this.setEnd(this.end.moveTo(G,B));return Pe}},{key:"moveEndToStartOfNode",value:function(G){var B=this.setEnd(this.end.moveToStartOfNode(G));return B}},{key:"moveEndToEndOfNode",value:function(G){var B=this.setEnd(this.end.moveToEndOfNode(G));return B}},{key:"moveFocusBackward",value:function(G){var B=this.setFocus(this.focus.moveBackward(G));return B}},{key:"moveFocusForward",value:function(G){var B=this.setFocus(this.focus.moveForward(G));return B}},{key:"moveFocusTo",value:function(G,B){var Pe=this.setFocus(this.focus.moveTo(G,B));return Pe}},{key:"moveFocusToStartOfNode",value:function(G){var B=this.setFocus(this.focus.moveToStartOfNode(G));return B}},{key:"moveFocusToEndOfNode",value:function(G){var B=this.setFocus(this.focus.moveToEndOfNode(G));return B}},{key:"moveStartBackward",value:function(G){var B=this.setStart(this.start.moveBackward(G));return B}},{key:"moveStartForward",value:function(G){var B=this.setStart(this.start.moveForward(G));return B}},{key:"moveStartTo",value:function(G,B){var Pe=this.setStart(this.start.moveTo(G,B));return Pe}},{key:"moveStartToStartOfNode",value:function(G){var B=this.setStart(this.start.moveToStartOfNode(G));return B}},{key:"moveStartToEndOfNode",value:function(G){var B=this.setStart(this.start.moveToEndOfNode(G));return B}},{key:"moveTo",value:function(G,B){return this.updatePoints(function(Pe){return Pe.moveTo(G,B)})}},{key:"moveToAnchor",value:function(){var G=this.setFocus(this.anchor);return G}},{key:"moveToEnd",value:function(){var G=this.setStart(this.end);return G}},{key:"moveToEndOfNode",value:function(G){return this.updatePoints(function(B){return B.moveToEndOfNode(G)})}},{key:"moveToFocus",value:function(){var G=this.setAnchor(this.focus);return G}},{key:"moveToRangeOfNode",value:function(G){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G,Pe=this.setPoints([this.anchor.moveToStartOfNode(G),this.focus.moveToEndOfNode(B)]);return Pe}},{key:"moveToStart",value:function(){var G=this.setEnd(this.start);return G}},{key:"moveToStartOfNode",value:function(G){return this.updatePoints(function(B){return B.moveToStartOfNode(G)})}},{key:"normalize",value:function(G){return this.updatePoints(function(B){return B.normalize(G)})}},{key:"setAnchor",value:function(G){var B=this.set("anchor",G);return B}},{key:"setEnd",value:function(G){var B=this.isBackward?this.setAnchor(G):this.setFocus(G);return B}},{key:"setFocus",value:function(G){var B=this.set("focus",G);return B}},{key:"setPoints",value:function(G){var B=ce(G,2),Pe=B[0],dt=B[1],Lt=this.set("anchor",Pe).set("focus",dt);return Lt}},{key:"updatePoints",value:function(G){var B=this.anchor,Pe=this.focus;return B=G(B),Pe=G(Pe),this.merge({anchor:B,focus:Pe})}},{key:"setStart",value:function(G){var B=this.isBackward?this.setFocus(G):this.setAnchor(G);return B}},{key:"setProperties",value:function(G){G=K.createProperties(G);var B=G,Pe=B.anchor,dt=B.focus,Lt=fe(B,["anchor","focus"]);Pe&&(Lt.anchor=ke.create(Pe)),dt&&(Lt.focus=ke.create(dt));var Pt=this.merge(Lt);return Pt}},{key:"toJSON",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B={object:this.object,anchor:this.anchor.toJSON(G),focus:this.focus.toJSON(G)};return B}},{key:"toRange",value:function(){var G=K.createProperties(this),B=K.create(G);return B}},{key:"unset",value:function(){var G=this.updatePoints(function(B){return B.unset()});return G}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var G=this.isUnset,B=this.anchor,Pe=this.focus;if(G)return null;if(B.key===Pe.key)return B.offset>Pe.offset;var dt=Y.isBefore(Pe.path,B.path);return dt}},{key:"isForward",get:function(){var G=this.isBackward,B=G==null?null:!G;return B}},{key:"isUnset",get:function(){var G=this.anchor,B=this.focus,Pe=G.isUnset||B.isUnset;return Pe}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),Z}();as(Jo,[De,Ke,K,At]);var br={Annotation:De,Block:Me,Change:On,Data:Ye,Decoration:Ke,Document:Fe,Editor:aa,Inline:qe,KeyUtils:j,Leaf:ro,Mark:wt,Node:Ge,Operation:at,PathUtils:Y,Point:ke,Range:K,resetMemoization:_n,Selection:At,Text:ct,TextUtils:pi,useMemoization:er,Value:ge};const Yn=br},97388:(J,g,t)=>{"use strict";function i(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(b){return typeof b}:i=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},i(h)}g.log=m,g.formatArgs=s,g.save=u,g.load=f,g.useColors=l,g.storage=p(),g.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function l(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(h){if(h[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+h[0]+(this.useColors?"%c ":" ")+"+"+J.exports.humanize(this.diff),!!this.useColors){var d="color: "+this.color;h.splice(1,0,d,"color: inherit");var b=0,y=0;h[0].replace(/%[a-zA-Z%]/g,function(w){w!=="%%"&&(b++,w==="%c"&&(y=b))}),h.splice(y,0,d)}}function m(){var h;return(typeof console>"u"?"undefined":i(console))==="object"&&console.log&&(h=console).log.apply(h,arguments)}function u(h){try{h?g.storage.setItem("debug",h):g.storage.removeItem("debug")}catch{}}function f(){var h;try{h=g.storage.getItem("debug")}catch{}return!h&&typeof process<"u"&&"env"in process&&(h=process.env.DEBUG),h}function p(){try{return localStorage}catch{}}J.exports=t(11939)(g);var v=J.exports.formatters;v.j=function(h){try{return JSON.stringify(h)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}},11939:(J,g,t)=>{"use strict";function i(l){m.debug=m,m.default=m,m.coerce=d,m.disable=v,m.enable=p,m.enabled=h,m.humanize=t(6585),Object.keys(l).forEach(function(b){m[b]=l[b]}),m.instances=[],m.names=[],m.skips=[],m.formatters={};function s(b){for(var y=0,w=0;w<b.length;w++)y=(y<<5)-y+b.charCodeAt(w),y|=0;return m.colors[Math.abs(y)%m.colors.length]}m.selectColor=s;function m(b){var y;function w(){if(w.enabled){for(var S=arguments.length,O=new Array(S),R=0;R<S;R++)O[R]=arguments[R];var M=w,D=Number(new Date),P=D-(y||D);M.diff=P,M.prev=y,M.curr=D,y=D,O[0]=m.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");var T=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,function(j,ae){if(j==="%%")return j;T++;var _=m.formatters[ae];if(typeof _=="function"){var N=O[T];j=_.call(M,N),O.splice(T,1),T--}return j}),m.formatArgs.call(M,O);var A=M.log||m.log;A.apply(M,O)}}return w.namespace=b,w.enabled=m.enabled(b),w.useColors=m.useColors(),w.color=s(b),w.destroy=u,w.extend=f,typeof m.init=="function"&&m.init(w),m.instances.push(w),w}function u(){var b=m.instances.indexOf(this);return b!==-1?(m.instances.splice(b,1),!0):!1}function f(b,y){return m(this.namespace+(typeof y>"u"?":":y)+b)}function p(b){m.save(b),m.names=[],m.skips=[];var y,w=(typeof b=="string"?b:"").split(/[\s,]+/),S=w.length;for(y=0;y<S;y++)w[y]&&(b=w[y].replace(/\*/g,".*?"),b[0]==="-"?m.skips.push(new RegExp("^"+b.substr(1)+"$")):m.names.push(new RegExp("^"+b+"$")));for(y=0;y<m.instances.length;y++){var O=m.instances[y];O.enabled=m.enabled(O.namespace)}}function v(){m.enable("")}function h(b){if(b[b.length-1]==="*")return!0;var y,w;for(y=0,w=m.skips.length;y<w;y++)if(m.skips[y].test(b))return!1;for(y=0,w=m.names.length;y<w;y++)if(m.names[y].test(b))return!0;return!1}function d(b){return b instanceof Error?b.stack||b.message:b}return m.enable(m.load()),m}J.exports=i},38365:(J,g,t)=>{"use strict";/*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */var i=t(13798);function l(s){return i(s)===!0&&Object.prototype.toString.call(s)==="[object Object]"}J.exports=function(m){var u,f;return!(l(m)===!1||(u=m.constructor,typeof u!="function")||(f=u.prototype,l(f)===!1)||f.hasOwnProperty("isPrototypeOf")===!1)}},55459:J=>{"use strict";function g(t){for(var i=5381,l=t.length;l;)i=i*33^t.charCodeAt(--l);return i>>>0}J.exports=g},83141:(J,g,t)=>{"use strict";var i=t(92861).Buffer,l=i.isEncoding||function(D){switch(D=""+D,D&&D.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(D){if(!D)return"utf8";for(var P;;)switch(D){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return D;default:if(P)return;D=(""+D).toLowerCase(),P=!0}}function m(D){var P=s(D);if(typeof P!="string"&&(i.isEncoding===l||!l(D)))throw new Error("Unknown encoding: "+D);return P||D}g.I=u;function u(D){this.encoding=m(D);var P;switch(this.encoding){case"utf16le":this.text=y,this.end=w,P=4;break;case"utf8":this.fillLast=h,P=4;break;case"base64":this.text=S,this.end=O,P=3;break;default:this.write=R,this.end=M;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(P)}u.prototype.write=function(D){if(D.length===0)return"";var P,T;if(this.lastNeed){if(P=this.fillLast(D),P===void 0)return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<D.length?P?P+this.text(D,T):this.text(D,T):P||""},u.prototype.end=b,u.prototype.text=d,u.prototype.fillLast=function(D){if(this.lastNeed<=D.length)return D.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);D.copy(this.lastChar,this.lastTotal-this.lastNeed,0,D.length),this.lastNeed-=D.length};function f(D){return D<=127?0:D>>5===6?2:D>>4===14?3:D>>3===30?4:D>>6===2?-1:-2}function p(D,P,T){var A=P.length-1;if(A<T)return 0;var j=f(P[A]);return j>=0?(j>0&&(D.lastNeed=j-1),j):--A<T||j===-2?0:(j=f(P[A]),j>=0?(j>0&&(D.lastNeed=j-2),j):--A<T||j===-2?0:(j=f(P[A]),j>=0?(j>0&&(j===2?j=0:D.lastNeed=j-3),j):0))}function v(D,P,T){if((P[0]&192)!==128)return D.lastNeed=0,"\uFFFD";if(D.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return D.lastNeed=1,"\uFFFD";if(D.lastNeed>2&&P.length>2&&(P[2]&192)!==128)return D.lastNeed=2,"\uFFFD"}}function h(D){var P=this.lastTotal-this.lastNeed,T=v(this,D,P);if(T!==void 0)return T;if(this.lastNeed<=D.length)return D.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);D.copy(this.lastChar,P,0,D.length),this.lastNeed-=D.length}function d(D,P){var T=p(this,D,P);if(!this.lastNeed)return D.toString("utf8",P);this.lastTotal=T;var A=D.length-(T-this.lastNeed);return D.copy(this.lastChar,0,A),D.toString("utf8",P,A)}function b(D){var P=D&&D.length?this.write(D):"";return this.lastNeed?P+"\uFFFD":P}function y(D,P){if((D.length-P)%2===0){var T=D.toString("utf16le",P);if(T){var A=T.charCodeAt(T.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=D[D.length-2],this.lastChar[1]=D[D.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=D[D.length-1],D.toString("utf16le",P,D.length-1)}function w(D){var P=D&&D.length?this.write(D):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return P+this.lastChar.toString("utf16le",0,T)}return P}function S(D,P){var T=(D.length-P)%3;return T===0?D.toString("base64",P):(this.lastNeed=3-T,this.lastTotal=3,T===1?this.lastChar[0]=D[D.length-1]:(this.lastChar[0]=D[D.length-2],this.lastChar[1]=D[D.length-1]),D.toString("base64",P,D.length-T))}function O(D){var P=D&&D.length?this.write(D):"";return this.lastNeed?P+this.lastChar.toString("base64",0,3-this.lastNeed):P}function R(D){return D.toString(this.encoding)}function M(D){return D&&D.length?this.write(D):""}},85072:J=>{"use strict";var g=[];function t(s){for(var m=-1,u=0;u<g.length;u++)if(g[u].identifier===s){m=u;break}return m}function i(s,m){for(var u={},f=[],p=0;p<s.length;p++){var v=s[p],h=m.base?v[0]+m.base:v[0],d=u[h]||0,b="".concat(h," ").concat(d);u[h]=d+1;var y=t(b),w={css:v[1],media:v[2],sourceMap:v[3],supports:v[4],layer:v[5]};if(y!==-1)g[y].references++,g[y].updater(w);else{var S=l(w,m);m.byIndex=p,g.splice(p,0,{identifier:b,updater:S,references:1})}f.push(b)}return f}function l(s,m){var u=m.domAPI(m);u.update(s);var f=function(v){if(v){if(v.css===s.css&&v.media===s.media&&v.sourceMap===s.sourceMap&&v.supports===s.supports&&v.layer===s.layer)return;u.update(s=v)}else u.remove()};return f}J.exports=function(s,m){m=m||{},s=s||[];var u=i(s,m);return function(p){p=p||[];for(var v=0;v<u.length;v++){var h=u[v],d=t(h);g[d].references--}for(var b=i(p,m),y=0;y<u.length;y++){var w=u[y],S=t(w);g[S].references===0&&(g[S].updater(),g.splice(S,1))}u=b}}},40:J=>{"use strict";var g={};function t(l){if(typeof g[l]>"u"){var s=document.querySelector(l);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}g[l]=s}return g[l]}function i(l,s){var m=t(l);if(!m)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");m.appendChild(s)}J.exports=i},10540:J=>{"use strict";function g(t){var i=document.createElement("style");return t.setAttributes(i,t.attributes),t.insert(i,t.options),i}J.exports=g},55056:(J,g,t)=>{"use strict";function i(l){var s=t.nc;s&&l.setAttribute("nonce",s)}J.exports=i},97825:J=>{"use strict";function g(l,s,m){var u="";m.supports&&(u+="@supports (".concat(m.supports,") {")),m.media&&(u+="@media ".concat(m.media," {"));var f=typeof m.layer<"u";f&&(u+="@layer".concat(m.layer.length>0?" ".concat(m.layer):""," {")),u+=m.css,f&&(u+="}"),m.media&&(u+="}"),m.supports&&(u+="}");var p=m.sourceMap;p&&typeof btoa<"u"&&(u+=` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(p))))," */")),s.styleTagTransform(u,l,s.options)}function t(l){if(l.parentNode===null)return!1;l.parentNode.removeChild(l)}function i(l){if(typeof document>"u")return{update:function(){},remove:function(){}};var s=l.insertStyleElement(l);return{update:function(u){g(s,l,u)},remove:function(){t(s)}}}J.exports=i},41113:J=>{"use strict";function g(t,i){if(i.styleSheet)i.styleSheet.cssText=t;else{for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(document.createTextNode(t))}}J.exports=g},9423:(J,g,t)=>{"use strict";function i(u){var f,p=u.Symbol;if(typeof p=="function")if(p.observable)f=p.observable;else{typeof p.for=="function"?f=p.for("https://github.com/benlesh/symbol-observable"):f=p("https://github.com/benlesh/symbol-observable");try{p.observable=f}catch{}}else f="@@observable";return f}J=t.hmd(J);var l;typeof self<"u"?l=self:typeof window<"u"?l=window:typeof t.g<"u"?l=t.g:l=J;var s=i(l);const m=null},57516:(J,g,t)=>{(function(i){"use strict";const l=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*'|`[^`\\]*(?:\\.[^`\\]*)*`)\s*\)/g,s=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,m=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.]))/,u=/__filename|__dirname]/,f=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,p=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,v=/^[^#?]+\.js([?#].*)?$/,h=/^(text|application)\/(x-)?javascript(;|$)/;function d(T){return!s.test(T)&&(l.test(T)||m.test(T)||u.test(T))}function b(T,A){return(A||"")+" (SystemJS Error#"+T+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+T+")"}function y(T){const A=T.substring(T.lastIndexOf("/")+1);let j=T.split("/");return j.pop(),j=j.join("/"),{filename:A,dirname:j}}function w(T){l.lastIndex=f.lastIndex=p.lastIndex=0;let A=[],j=[],ae=[],_;if(T.length/T.split(` `).length<200){for(;_=p.exec(T);)j.push([_.index,_.index+_[0].length]);for(;_=f.exec(T);)S(j,_)||ae.push([_.index+_[1].length,_.index+_[0].length-1])}for(;_=l.exec(T);)if(!S(j,_)&&!S(ae,_)){var N=_[1].substring(1,_[1].length-1);if(N.match(/"|'/))continue;A.push(N)}return A}function S(T,A){for(var j=0;j<T.length;j++)if(T[j][0]<A.index&&T[j][1]>A.index)return!0;return!1}function O(T){return`(function (module,exports,require,__filename,__dirname, global, GLOBAL) { ${T} }).apply(__cjsWrapper.exports, __cjsWrapper.args)`}function R(T,A){return function(ae){const _=T.resolve(ae,A),N=T.get(_);if(!N)throw new Error('Module not already loaded loading "'+ae+'" as '+_+(A?' from "'+A+'".':"."));return"__useDefault"in N?N.default:N}}const M=i.System.constructor.prototype,D=M.instantiate,P=M.shouldFetch.bind(M);M.shouldFetch=function(T){return P(T)||v.test(T)},M.instantiate=function(T,A,j){return v.test(T)?M.fetch(T,{credentials:"same-origin",meta:j}).then(_=>{if(!_.ok)throw Error(b(7,_.status+" "+_.statusText+", loading "+T+(A?" from "+A:"")));const N=_.headers.get("content-type");if(!N||!h.test(N))throw Error(b(4,'Unknown Content-Type "'+N+'", loading '+T+(A?" from "+A:"")));return _.text().then(W=>{if(d(W)){const he={},me={exports:he},fe=R(this,A??T),ve=w(W),ce=ve.map(oe=>i.System.import(oe,A??T));return Promise.all(ce).then(()=>{let oe=O(W);oe.indexOf("//# sourceURL=")<0&&(oe+=` //# sourceURL=`+T);const{filename:re,dirname:H}=y(T);return i.__cjsWrapper={exports:he,args:[me,he,fe,re,H,i,i]},(0,eval)(oe),i.__cjsWrapper=void 0,M.register(ve,function(V,Q){return{setters:[],execute:function(){V(me.exports),V("default",me.exports)}}}),M.getRegister(T)})}else return W.indexOf("//# sourceURL=")<0&&(W+=` //# sourceURL=`+T),(0,eval)(W),M.getRegister(T)})}):D.call(this,T,A,j)}})(typeof self<"u"?self:t.g)},65024:(J,g,t)=>{(function(){function i(l,s){return(s||"")+" (SystemJS Error#"+l+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+l+")"}(function(l){function s(){throw Error(i(5,"AMD require not supported."))}var m=["require","exports","module"];function u(f,p){for(var v={},h={exports:v},d=[],b=[],y=0,w=0;w<f.length;w++){var S=f[w],O=b.length;S==="require"?(d[w]=s,y++):S==="module"?(d[w]=h,y++):S==="exports"?(d[w]=v,y++):M(w),y&&(f[O]=S)}y&&(f.length-=y);var R=p;return[f,function(D){return D({default:v,__useDefault:!0}),{setters:b,execute:function(){var P=R.apply(v,d);P!==void 0&&(h.exports=P),D(h.exports),D("default",h.exports)}}}];function M(D){b.push(function(P){d[D]=P.__useDefault?P.default:P})}}l.define=function(f,p,v){var h=typeof f=="string",d=h?f:null,b=h?p:f,y=h?v:p,w,S;if(Array.isArray(b))w=b,S=y;else if(typeof b=="object")w=[],S=function(){return b};else if(typeof b=="function")w=m,S=b;else throw Error(i(9,"Invalid call to AMD define()"));var O=u(w,S);h&&(System.registerRegistry?(System.registerRegistry[d]=O,System.register(d,O[0],O[1])):console.warn(i("W6","Include named-register.js for full named define support"))),System.register(O[0],O[1])},l.define.amd={}})(typeof self<"u"?self:t.g)})()},59511:(J,g,t)=>{/*! * SystemJS 6.14.3 */(function(){function i(pt,Rt){return(Rt||"")+" (SystemJS Error#"+pt+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+pt+")"}var l=typeof Symbol<"u",s=typeof self<"u",m=typeof document<"u",u=s?self:t.g,f;if(m){var p=document.querySelector("base[href]");p&&(f=p.href)}if(!f&&typeof location<"u"){f=location.href.split("#")[0].split("?")[0];var v=f.lastIndexOf("/");v!==-1&&(f=f.slice(0,v+1))}var h=/\\/g;function d(pt,Rt){if(pt.indexOf("\\")!==-1&&(pt=pt.replace(h,"/")),pt[0]==="/"&&pt[1]==="/")return Rt.slice(0,Rt.indexOf(":")+1)+pt;if(pt[0]==="."&&(pt[1]==="/"||pt[1]==="."&&(pt[2]==="/"||pt.length===2&&(pt+="/"))||pt.length===1&&(pt+="/"))||pt[0]==="/"){var tt=Rt.slice(0,Rt.indexOf(":")+1),U;if(Rt[tt.length+1]==="/"?tt!=="file:"?(U=Rt.slice(tt.length+2),U=U.slice(U.indexOf("/")+1)):U=Rt.slice(8):U=Rt.slice(tt.length+(Rt[tt.length]==="/")),pt[0]==="/")return Rt.slice(0,Rt.length-U.length-1)+pt;for(var F=U.slice(0,U.lastIndexOf("/")+1)+pt,Y=[],le=-1,ke=0;ke<F.length;ke++)le!==-1?F[ke]==="/"&&(Y.push(F.slice(le,ke+1)),le=-1):F[ke]==="."?F[ke+1]==="."&&(F[ke+2]==="/"||ke+2===F.length)?(Y.pop(),ke+=2):F[ke+1]==="/"||ke+1===F.length?ke+=1:le=ke:le=ke;return le!==-1&&Y.push(F.slice(le)),Rt.slice(0,Rt.length-U.length)+Y.join("")}}function b(pt,Rt){return d(pt,Rt)||(pt.indexOf(":")!==-1?pt:d("./"+pt,Rt))}function y(pt,Rt,tt,U,F){for(var Y in pt){var le=d(Y,tt)||Y,ke=pt[Y];if(typeof ke=="string"){var Ye=M(U,d(ke,tt)||ke,F);Ye?Rt[le]=Ye:R("W1",Y,ke,"bare specifier did not resolve")}}}function w(pt,Rt,tt){pt.imports&&y(pt.imports,tt.imports,Rt,tt,null);var U;for(U in pt.scopes||{}){var F=b(U,Rt);y(pt.scopes[U],tt.scopes[F]||(tt.scopes[F]={}),Rt,tt,F)}for(U in pt.depcache||{})tt.depcache[b(U,Rt)]=pt.depcache[U];for(U in pt.integrity||{})tt.integrity[b(U,Rt)]=pt.integrity[U]}function S(pt,Rt){if(Rt[pt])return pt;var tt=pt.length;do{var U=pt.slice(0,tt+1);if(U in Rt)return U}while((tt=pt.lastIndexOf("/",tt-1))!==-1)}function O(pt,Rt){var tt=S(pt,Rt);if(tt){var U=Rt[tt];if(U===null)return;if(pt.length>tt.length&&U[U.length-1]!=="/")R("W2",tt,U,"should have a trailing '/'");else return U+pt.slice(tt.length)}}function R(pt,Rt,tt,U){console.warn(i(pt,"Package target "+U+", resolving target '"+tt+"' for "+Rt))}function M(pt,Rt,tt){for(var U=pt.scopes,F=tt&&S(tt,U);F;){var Y=O(Rt,U[F]);if(Y)return Y;F=S(F.slice(0,F.lastIndexOf("/")),U)}return O(Rt,pt.imports)||Rt.indexOf(":")!==-1&&Rt}var D=l&&Symbol.toStringTag,P=l?Symbol():"@";function T(){this[P]={}}var A=T.prototype;A.import=function(pt,Rt,tt){var U=this;return Rt&&typeof Rt=="object"&&(tt=Rt,Rt=void 0),Promise.resolve(U.prepareImport()).then(function(){return U.resolve(pt,Rt,tt)}).then(function(F){var Y=N(U,F,void 0,tt);return Y.C||he(U,Y)})},A.createContext=function(pt){var Rt=this;return{url:pt,resolve:function(tt,U){return Promise.resolve(Rt.resolve(tt,U||pt))}}},A.onload=function(){};function j(pt){return pt.id}function ae(pt,Rt,tt,U){if(pt.onload(tt,Rt.id,Rt.d&&Rt.d.map(j),!!U),tt)throw tt}var _;A.register=function(pt,Rt,tt){_=[pt,Rt,tt]},A.getRegister=function(){var pt=_;return _=void 0,pt};function N(pt,Rt,tt,U){var F=pt[P][Rt];if(F)return F;var Y=[],le=Object.create(null);D&&Object.defineProperty(le,D,{value:"Module"});var ke=Promise.resolve().then(function(){return pt.instantiate(Rt,tt,U)}).then(function(ft){if(!ft)throw Error(i(2,"Module "+Rt+" did not instantiate"));function wt(Ke,it){F.h=!0;var At=!1;if(typeof Ke=="string")(!(Ke in le)||le[Ke]!==it)&&(le[Ke]=it,At=!0);else{for(var et in Ke){var it=Ke[et];(!(et in le)||le[et]!==it)&&(le[et]=it,At=!0)}Ke&&Ke.__esModule&&(le.__esModule=Ke.__esModule)}if(At)for(var ee=0;ee<Y.length;ee++){var I=Y[ee];I&&I(le)}return it}var Ut=ft[1](wt,ft[1].length===2?{import:function(Ke,it){return pt.import(Ke,Rt,it)},meta:pt.createContext(Rt)}:void 0);return F.e=Ut.execute||function(){},[ft[0],Ut.setters||[],ft[2]||[]]},function(ft){throw F.e=null,F.er=ft,ae(pt,F,ft,!0),ft}),Ye=ke.then(function(ft){return Promise.all(ft[0].map(function(wt,Ut){var Ke=ft[1][Ut],it=ft[2][Ut];return Promise.resolve(pt.resolve(wt,Rt)).then(function(At){var et=N(pt,At,Rt,it);return Promise.resolve(et.I).then(function(){return Ke&&(et.i.push(Ke),(et.h||!et.I)&&Ke(et.n)),et})})})).then(function(wt){F.d=wt})});return F=pt[P][Rt]={id:Rt,i:Y,n:le,m:U,I:ke,L:Ye,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function W(pt,Rt,tt,U){if(!U[Rt.id])return U[Rt.id]=!0,Promise.resolve(Rt.L).then(function(){return(!Rt.p||Rt.p.e===null)&&(Rt.p=tt),Promise.all(Rt.d.map(function(F){return W(pt,F,tt,U)}))}).catch(function(F){throw Rt.er||(Rt.e=null,ae(pt,Rt,F,!1)),F})}function he(pt,Rt){return Rt.C=W(pt,Rt,Rt,{}).then(function(){return fe(pt,Rt,{})}).then(function(){return Rt.n})}var me=Object.freeze(Object.create(null));function fe(pt,Rt,tt){if(tt[Rt.id])return;if(tt[Rt.id]=!0,!Rt.e){if(Rt.er)throw Rt.er;return Rt.E?Rt.E:void 0}var U=Rt.e;Rt.e=null;var F;if(Rt.d.forEach(function(le){try{var ke=fe(pt,le,tt);ke&&(F=F||[]).push(ke)}catch(Ye){throw Rt.er=Ye,ae(pt,Rt,Ye,!1),Ye}}),F)return Promise.all(F).then(Y);return Y();function Y(){try{var le=U.call(me);if(le)return le=le.then(function(){Rt.C=Rt.n,Rt.E=null,ae(pt,Rt,null,!0)},function(ke){throw Rt.er=ke,Rt.E=null,ae(pt,Rt,ke,!0),ke}),Rt.E=le;Rt.C=Rt.n,Rt.L=Rt.I=void 0}catch(ke){throw Rt.er=ke,ke}finally{ae(pt,Rt,Rt.er,!0)}}}u.System=new T;var ve=Promise.resolve(),ce={imports:{},scopes:{},depcache:{},integrity:{}},oe=m;A.prepareImport=function(pt){return(oe||pt)&&(re(),oe=!1),ve},m&&(re(),window.addEventListener("DOMContentLoaded",re)),A.addImportMap=function(pt,Rt){w(pt,Rt||f,ce)};function re(){[].forEach.call(document.querySelectorAll("script"),function(pt){if(!pt.sp){if(pt.type==="systemjs-module"){if(pt.sp=!0,!pt.src)return;System.import(pt.src.slice(0,7)==="import:"?pt.src.slice(7):b(pt.src,f)).catch(function(tt){if(tt.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var U=document.createEvent("Event");U.initEvent("error",!1,!1),pt.dispatchEvent(U)}return Promise.reject(tt)})}else if(pt.type==="systemjs-importmap"){pt.sp=!0;var Rt=pt.src?(System.fetch||fetch)(pt.src,{integrity:pt.integrity,passThrough:!0}).then(function(tt){if(!tt.ok)throw Error("Invalid status code: "+tt.status);return tt.text()}).catch(function(tt){return tt.message=i("W4","Error fetching systemjs-import map "+pt.src)+` `+tt.message,console.warn(tt),typeof pt.onerror=="function"&&pt.onerror(),"{}"}):pt.innerHTML;ve=ve.then(function(){return Rt}).then(function(tt){H(ce,tt,pt.src||f)})}}})}function H(pt,Rt,tt){var U={};try{U=JSON.parse(Rt)}catch{console.warn(Error(i("W5","systemjs-importmap contains invalid JSON")+` `+Rt+` `))}w(U,tt,pt)}if(m){window.addEventListener("error",function(pt){pe=pt.filename,ye=pt.error});var V=location.origin}A.createScript=function(pt){var Rt=document.createElement("script");Rt.async=!0,pt.indexOf(V+"/")&&(Rt.crossOrigin="anonymous");var tt=ce.integrity[pt];return tt&&(Rt.integrity=tt),Rt.src=pt,Rt};var Q,Te,Re={},ne=A.register;A.register=function(pt,Rt){if(m&&document.readyState==="loading"&&typeof pt!="string"){var tt=document.querySelectorAll("script[src]"),U=tt[tt.length-1];if(U){U.src,Q=pt;var F=this;Te=setTimeout(function(){Re[U.src]=[pt,Rt],F.import(U.src)})}}else Q=void 0;return ne.call(this,pt,Rt)};var pe,ye;A.instantiate=function(pt,Rt){var tt=Re[pt];if(tt)return delete Re[pt],tt;var U=this;return Promise.resolve(A.createScript(pt)).then(function(F){return new Promise(function(Y,le){F.addEventListener("error",function(){le(Error(i(3,"Error loading "+pt+(Rt?" from "+Rt:""))))}),F.addEventListener("load",function(){if(document.head.removeChild(F),pe===pt)le(ye);else{var ke=U.getRegister(pt);ke&&ke[0]===Q&&clearTimeout(Te),Y(ke)}}),document.head.appendChild(F)})})},A.shouldFetch=function(){return!1},typeof fetch<"u"&&(A.fetch=fetch);var Se=A.instantiate,Ae=/^(text|application)\/(x-)?javascript(;|$)/;A.instantiate=function(pt,Rt,tt){var U=this;return this.shouldFetch(pt,Rt,tt)?this.fetch(pt,{credentials:"same-origin",integrity:ce.integrity[pt],meta:tt}).then(function(F){if(!F.ok)throw Error(i(7,F.status+" "+F.statusText+", loading "+pt+(Rt?" from "+Rt:"")));var Y=F.headers.get("content-type");if(!Y||!Ae.test(Y))throw Error(i(4,'Unknown Content-Type "'+Y+'", loading '+pt+(Rt?" from "+Rt:"")));return F.text().then(function(le){return le.indexOf("//# sourceURL=")<0&&(le+=` //# sourceURL=`+pt),(0,eval)(le),U.getRegister(pt)})}):Se.apply(this,arguments)},A.resolve=function(pt,Rt){return Rt=Rt||!1||f,M(ce,d(pt,Rt)||pt,Rt)||Ee(pt,Rt)};function Ee(pt,Rt){throw Error(i(8,"Unable to resolve bare specifier '"+pt+(Rt?"' from "+Rt:"'")))}var xe=A.instantiate;A.instantiate=function(pt,Rt,tt){var U=ce.depcache[pt];if(U)for(var F=0;F<U.length;F++)N(this,this.resolve(U[F],pt),pt);return xe.call(this,pt,Rt,tt)},s&&typeof importScripts=="function"&&(A.instantiate=function(pt){var Rt=this;return Promise.resolve().then(function(){return importScripts(pt),Rt.getRegister(pt)})}),function(pt){var Rt=pt.System.constructor.prototype,tt,U,F;function Y(Ke){var it=0,At,et;for(var ee in pt)if(!Ut(ee)){if(it===0&&ee!==tt||it===1&&ee!==U)return ee;At?(F=ee,et=Ke&&et||ee):At=ee===F,it++}return et}function le(){tt=U=void 0;for(var Ke in pt)Ut(Ke)||(tt?U||(U=Ke):tt=Ke,F=Ke);return F}var ke=Rt.import;Rt.import=function(Ke,it,At){return le(),ke.call(this,Ke,it,At)};var Ye=[[],function(){return{}}],ft=Rt.getRegister;Rt.getRegister=function(){var Ke=ft.call(this);if(Ke)return Ke;var it=Y(this.firstGlobalProp);if(!it)return Ye;var At;try{At=pt[it]}catch{return Ye}return[[],function(et){return{execute:function(){et(At),et({default:At,__useDefault:!0})}}}]};var wt=typeof navigator<"u"&&navigator.userAgent.indexOf("Trident")!==-1;function Ut(Ke){return!pt.hasOwnProperty(Ke)||!isNaN(Ke)&&Ke<pt.length||wt&&pt[Ke]&&typeof window<"u"&&pt[Ke].parent===window}}(typeof self<"u"?self:t.g),function(pt){var Rt=pt.System.constructor.prototype,tt=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,U=Rt.shouldFetch.bind(Rt);Rt.shouldFetch=function(Ye){return U(Ye)||tt.test(Ye)};var F=/^application\/json(;|$)/,Y=/^text\/css(;|$)/,le=/^application\/wasm(;|$)/,ke=Rt.fetch;Rt.fetch=function(Ye,ft){return ke(Ye,ft).then(function(wt){if(ft.passThrough||!wt.ok)return wt;var Ut=wt.headers.get("content-type");return F.test(Ut)?wt.json().then(function(Ke){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(Ke)+")}}})"],{type:"application/javascript"}))}):Y.test(Ut)?wt.text().then(function(Ke){return Ke=Ke.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,function(it,At,et,ee){return["url(",At,b(et||ee,Ye),At,")"].join("")}),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(Ke)+');e("default",s)}}})'],{type:"application/javascript"}))}):le.test(Ut)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(wt):wt.arrayBuffer().then(WebAssembly.compile)).then(function(Ke){pt.System.wasmModules||(pt.System.wasmModules=Object.create(null)),pt.System.wasmModules[Ye]=Ke;var it=[],At=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(Ke).forEach(function(et){var ee=JSON.stringify(et.module);it.indexOf(ee)===-1&&(it.push(ee),At.push("function(m){i["+ee+"]=m}"))}),new Response(new Blob(["System.register(["+it.join(",")+"],function(e){var i={};return{setters:["+At.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(Ye)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))}):wt})}}(typeof self<"u"?self:t.g);var nt=typeof Symbol<"u"&&Symbol.toStringTag;A.get=function(pt){var Rt=this[P][pt];if(Rt&&Rt.e===null&&!Rt.E)return Rt.er?null:Rt.n},A.set=function(pt,Rt){try{new URL(pt)}catch{console.warn(Error(i("W3",'"'+pt+'" is not a valid URL to set in the module registry')))}var tt;nt&&Rt[nt]==="Module"?tt=Rt:(tt=Object.assign(Object.create(null),Rt),nt&&Object.defineProperty(tt,nt,{value:"Module"}));var U=Promise.resolve(tt),F=this[P][pt]||(this[P][pt]={id:pt,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return F.e||F.E?!1:(Object.assign(F,{n:tt,I:void 0,L:void 0,C:U}),tt)},A.has=function(pt){var Rt=this[P][pt];return!!Rt},A.delete=function(pt){var Rt=this[P],tt=Rt[pt];if(!tt||tt.p&&tt.p.e!==null||tt.E)return!1;var U=tt.i;return tt.d&&tt.d.forEach(function(F){var Y=F.i.indexOf(tt);Y!==-1&&F.i.splice(Y,1)}),delete Rt[pt],function(){var F=Rt[pt];if(!F||!U||F.e!==null||F.E)return!1;U.forEach(function(Y){F.i.push(Y),Y(F.n)}),U=null}};var Tt=typeof Symbol<"u"&&Symbol.iterator;A.entries=function(){var pt=this,Rt=Object.keys(pt[P]),tt=0,U,F,Y={next:function(){for(;(F=Rt[tt++])!==void 0&&(U=pt.get(F))===void 0;);return{done:F===void 0,value:F!==void 0&&[F,U]}}};return Y[Tt]=function(){return this},Y}})()},66899:function(J,g,t){var i,l,s;/*! tether-drop 1.5.0 */(function(m,u){l=[t(2418)],i=u,s=typeof i=="function"?i.apply(g,l):i,s!==void 0&&(J.exports=s)})(this,function(m){"use strict";var u=Function.prototype.bind,f=function(){function me(fe,ve){var ce=[],oe=!0,re=!1,H=void 0;try{for(var V=fe[Symbol.iterator](),Q;!(oe=(Q=V.next()).done)&&(ce.push(Q.value),!(ve&&ce.length===ve));oe=!0);}catch(Te){re=!0,H=Te}finally{try{!oe&&V.return&&V.return()}finally{if(re)throw H}}return ce}return function(fe,ve){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return me(fe,ve);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function me(fe,ve){for(var ce=0;ce<ve.length;ce++){var oe=ve[ce];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(fe,oe.key,oe)}}return function(fe,ve,ce){return ve&&me(fe.prototype,ve),ce&&me(fe,ce),fe}}(),v=function(fe,ve,ce){var oe=!0;e:for(;oe;){var re=fe,H=ve,V=ce;oe=!1,re===null&&(re=Function.prototype);var Q=Object.getOwnPropertyDescriptor(re,H);if(Q===void 0){var Te=Object.getPrototypeOf(re);if(Te===null)return;fe=Te,ve=H,ce=V,oe=!0,Q=Te=void 0;continue e}else{if("value"in Q)return Q.value;var Re=Q.get;return Re===void 0?void 0:Re.call(V)}}};function h(me,fe){if(!(me instanceof fe))throw new TypeError("Cannot call a class as a function")}function d(me,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);me.prototype=Object.create(fe&&fe.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(me,fe):me.__proto__=fe)}var b=m.Utils,y=b.extend,w=b.addClass,S=b.removeClass,O=b.hasClass,R=b.Evented;function M(me){var fe=me.split(" "),ve=f(fe,2),ce=ve[0],oe=ve[1];if(["left","right"].indexOf(ce)>=0){var re=[oe,ce];ce=re[0],oe=re[1]}return[ce,oe].join(" ")}function D(me,fe){for(var ve=void 0,ce=[];(ve=me.indexOf(fe))!==-1;)ce.push(me.splice(ve,1));return ce}var P=["click"];"ontouchstart"in document.documentElement&&P.push("touchstart");var T={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"},A="";for(var j in T)if({}.hasOwnProperty.call(T,j)){var ae=document.createElement("p");typeof ae.style[j]<"u"&&(A=T[j])}var _={left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle",center:"center"},N={};function W(){var me=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],fe=function(){for(var re=arguments.length,H=Array(re),V=0;V<re;V++)H[V]=arguments[V];return new(u.apply(ce,[null].concat(H)))};y(fe,{createContext:W,drops:[],defaults:{}});var ve={classPrefix:"drop",defaults:{position:"bottom left",openOn:"click",beforeClose:null,constrainToScrollParent:!0,constrainToWindow:!0,classes:"",remove:!1,openDelay:0,closeDelay:50,focusDelay:null,blurDelay:null,hoverOpenDelay:null,hoverCloseDelay:null,tetherOptions:{}}};y(fe,ve,me),y(fe.defaults,ve.defaults,me.defaults),typeof N[fe.classPrefix]>"u"&&(N[fe.classPrefix]=[]),fe.updateBodyClasses=function(){for(var oe=!1,re=N[fe.classPrefix],H=re.length,V=0;V<H;++V)if(re[V].isOpened()){oe=!0;break}oe?w(document.body,fe.classPrefix+"-open"):S(document.body,fe.classPrefix+"-open")};var ce=function(oe){d(re,oe);function re(H){if(h(this,re),v(Object.getPrototypeOf(re.prototype),"constructor",this).call(this),this.options=y({},fe.defaults,H),this.target=this.options.target,typeof this.target>"u")throw new Error("Drop Error: You must provide a target.");var V="data-"+fe.classPrefix,Q=this.target.getAttribute(V);Q&&this.options.content==null&&(this.options.content=Q);for(var Te=["position","openOn"],Re=0;Re<Te.length;++Re){var ne=this.target.getAttribute(V+"-"+Te[Re]);ne&&this.options[Te[Re]]==null&&(this.options[Te[Re]]=ne)}this.options.classes&&this.options.addTargetClasses!==!1&&w(this.target,this.options.classes),fe.drops.push(this),N[fe.classPrefix].push(this),this._boundEvents=[],this.bindMethods(),this.setupElements(),this.setupEvents(),this.setupTether()}return p(re,[{key:"_on",value:function(V,Q,Te){this._boundEvents.push({element:V,event:Q,handler:Te}),V.addEventListener(Q,Te)}},{key:"bindMethods",value:function(){this.transitionEndHandler=this._transitionEndHandler.bind(this)}},{key:"setupElements",value:function(){var V=this;if(this.drop=document.createElement("div"),w(this.drop,fe.classPrefix),this.options.classes&&w(this.drop,this.options.classes),this.content=document.createElement("div"),w(this.content,fe.classPrefix+"-content"),typeof this.options.content=="function"){var Q=function(){var Re=V.options.content.call(V,V);if(typeof Re=="string")V.content.innerHTML=Re;else if(typeof Re=="object")V.content.innerHTML="",V.content.appendChild(Re);else throw new Error("Drop Error: Content function should return a string or HTMLElement.")};this.on("beforeOpen",Q.bind(this))}else typeof this.options.content=="object"?this.content.appendChild(this.options.content):this.content.innerHTML=this.options.content;this.drop.appendChild(this.content)}},{key:"setupTether",value:function(){var V=this.options.position.split(" ");V[0]=_[V[0]],V=V.join(" ");var Q=[];this.options.constrainToScrollParent?Q.push({to:"scrollParent",pin:"top, bottom",attachment:"together none"}):Q.push({to:"scrollParent"}),this.options.constrainToWindow!==!1?Q.push({to:"window",attachment:"together"}):Q.push({to:"window"});var Te={element:this.drop,target:this.target,attachment:M(V),targetAttachment:M(this.options.position),classPrefix:fe.classPrefix,offset:"0 0",targetOffset:"0 0",enabled:!1,constraints:Q,addTargetClasses:this.options.addTargetClasses};this.options.tetherOptions!==!1&&(this.tether=new m(y({},Te,this.options.tetherOptions)))}},{key:"setupEvents",value:function(){var V=this;if(this.options.openOn){if(this.options.openOn==="always"){setTimeout(this.open.bind(this));return}var Q=this.options.openOn.split(" ");if(Q.indexOf("click")>=0)for(var Te=function(nt){V.toggle(nt),nt.preventDefault()},Re=function(nt){V.isOpened()&&(nt.target===V.drop||V.drop.contains(nt.target)||nt.target===V.target||V.target.contains(nt.target)||V.close(nt))},ne=0;ne<P.length;++ne){var pe=P[ne];this._on(this.target,pe,Te),this._on(document,pe,Re)}var ye=null,Se=null,Ae=function(nt){Se!==null?clearTimeout(Se):ye=setTimeout(function(){V.open(nt),ye=null},(nt.type==="focus"?V.options.focusDelay:V.options.hoverOpenDelay)||V.options.openDelay)},Ee=function(nt){ye!==null?clearTimeout(ye):Se=setTimeout(function(){V.close(nt),Se=null},(nt.type==="blur"?V.options.blurDelay:V.options.hoverCloseDelay)||V.options.closeDelay)};Q.indexOf("hover")>=0&&(this._on(this.target,"mouseover",Ae),this._on(this.drop,"mouseover",Ae),this._on(this.target,"mouseout",Ee),this._on(this.drop,"mouseout",Ee)),Q.indexOf("focus")>=0&&(this._on(this.target,"focus",Ae),this._on(this.drop,"focus",Ae),this._on(this.target,"blur",Ee),this._on(this.drop,"blur",Ee))}}},{key:"isOpened",value:function(){if(this.drop)return O(this.drop,fe.classPrefix+"-open")}},{key:"toggle",value:function(V){this.isOpened()?this.close(V):this.open(V)}},{key:"open",value:function(V){var Q=this;this.isOpened()||(this.drop.parentNode||document.body.appendChild(this.drop),typeof this.tether<"u"&&this.tether.enable(),w(this.drop,fe.classPrefix+"-open"),w(this.drop,fe.classPrefix+"-open-transitionend"),setTimeout(function(){Q.drop&&w(Q.drop,fe.classPrefix+"-after-open")}),this.trigger("beforeOpen"),typeof this.tether<"u"&&this.tether.position(),this.trigger("open"),fe.updateBodyClasses())}},{key:"_transitionEndHandler",value:function(V){V.target===V.currentTarget&&(O(this.drop,fe.classPrefix+"-open")||S(this.drop,fe.classPrefix+"-open-transitionend"),this.drop.removeEventListener(A,this.transitionEndHandler))}},{key:"beforeCloseHandler",value:function(V){var Q=!0;return!this.isClosing&&typeof this.options.beforeClose=="function"&&(this.isClosing=!0,Q=this.options.beforeClose(V,this)!==!1),this.isClosing=!1,Q}},{key:"close",value:function(V){this.isOpened()&&this.beforeCloseHandler(V)&&(S(this.drop,fe.classPrefix+"-open"),S(this.drop,fe.classPrefix+"-after-open"),this.drop.addEventListener(A,this.transitionEndHandler),this.trigger("close"),typeof this.tether<"u"&&this.tether.disable(),fe.updateBodyClasses(),this.options.remove&&this.remove(V))}},{key:"remove",value:function(V){this.close(V),this.drop.parentNode&&this.drop.parentNode.removeChild(this.drop)}},{key:"position",value:function(){this.isOpened()&&typeof this.tether<"u"&&this.tether.position()}},{key:"destroy",value:function(){this.remove(),typeof this.tether<"u"&&this.tether.destroy();for(var V=0;V<this._boundEvents.length;++V){var Q=this._boundEvents[V],Te=Q.element,Re=Q.event,ne=Q.handler;Te.removeEventListener(Re,ne)}this._boundEvents=[],this.tether=null,this.drop=null,this.content=null,this.target=null,D(N[fe.classPrefix],this),D(fe.drops,this)}}]),re}(R);return fe}var he=W();return document.addEventListener("DOMContentLoaded",function(){he.updateBodyClasses()}),he})},2418:function(J,g){var t,i,l;/*! tether 1.4.7 */(function(s,m){i=[],t=m,l=typeof t=="function"?t.apply(g,i):t,l!==void 0&&(J.exports=l)})(this,function(){"use strict";var O=function(){function tt(U,F){for(var Y=0;Y<F.length;Y++){var le=F[Y];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(U,le.key,le)}}return function(U,F,Y){return F&&tt(U.prototype,F),Y&&tt(U,Y),U}}(),s=void 0;typeof s>"u"&&(s={modules:[]});var m=null;function u(tt){var U=tt.getBoundingClientRect(),F={};for(var Y in U)F[Y]=U[Y];try{if(tt.ownerDocument!==document){var le=tt.ownerDocument.defaultView.frameElement;if(le){var ke=u(le);F.top+=ke.top,F.bottom+=ke.top,F.left+=ke.left,F.right+=ke.left}}}catch{}return F}function P(tt){var U=getComputedStyle(tt)||{},F=U.position,Y=[];if(F==="fixed")return[tt];for(var le=tt;(le=le.parentNode)&&le&&le.nodeType===1;){var ke=void 0;try{ke=getComputedStyle(le)}catch{}if(typeof ke>"u"||ke===null)return Y.push(le),Y;var Ye=ke,ft=Ye.overflow,wt=Ye.overflowX,Ut=Ye.overflowY;/(auto|scroll|overlay)/.test(ft+Ut+wt)&&(F!=="absolute"||["relative","absolute","fixed"].indexOf(ke.position)>=0)&&Y.push(le)}return Y.push(tt.ownerDocument.body),tt.ownerDocument!==document&&Y.push(tt.ownerDocument.defaultView),Y}var f=function(){var tt=0;return function(){return++tt}}(),p={},v=function(){var U=m;(!U||!document.body.contains(U))&&(U=document.createElement("div"),U.setAttribute("data-tether-id",f()),Se(U.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(U),m=U);var F=U.getAttribute("data-tether-id");return typeof p[F]>"u"&&(p[F]=u(U),pt(function(){delete p[F]})),p[F]};function N(){m&&document.body.removeChild(m),m=null}function nt(tt){var U=void 0;tt===document?(U=document,tt=document.documentElement):U=tt.ownerDocument;var F=U.documentElement,Y=u(tt),le=v();return Y.top-=le.top,Y.left-=le.left,typeof Y.width>"u"&&(Y.width=document.body.scrollWidth-Y.left-Y.right),typeof Y.height>"u"&&(Y.height=document.body.scrollHeight-Y.top-Y.bottom),Y.top=Y.top-F.clientTop,Y.left=Y.left-F.clientLeft,Y.right=U.body.clientWidth-Y.width-Y.left,Y.bottom=U.body.clientHeight-Y.height-Y.top,Y}function T(tt){return tt.offsetParent||document.documentElement}var h=null;function _(){if(h)return h;var tt=document.createElement("div");tt.style.width="100%",tt.style.height="200px";var U=document.createElement("div");Se(U.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),U.appendChild(tt),document.body.appendChild(U);var F=tt.offsetWidth;U.style.overflow="scroll";var Y=tt.offsetWidth;F===Y&&(Y=U.clientWidth),document.body.removeChild(U);var le=F-Y;return h={width:le,height:le},h}function Se(){var tt=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],U=[];return Array.prototype.push.apply(U,arguments),U.slice(1).forEach(function(F){if(F)for(var Y in F)({}).hasOwnProperty.call(F,Y)&&(tt[Y]=F[Y])}),tt}function j(tt,U){if(typeof tt.classList<"u")U.split(" ").forEach(function(le){le.trim()&&tt.classList.remove(le)});else{var F=new RegExp("(^| )"+U.split(" ").join("|")+"( |$)","gi"),Y=b(tt).replace(F," ");y(tt,Y)}}function A(tt,U){if(typeof tt.classList<"u")U.split(" ").forEach(function(Y){Y.trim()&&tt.classList.add(Y)});else{j(tt,U);var F=b(tt)+(" "+U);y(tt,F)}}function d(tt,U){if(typeof tt.classList<"u")return tt.classList.contains(U);var F=b(tt);return new RegExp("(^| )"+U+"( |$)","gi").test(F)}function b(tt){return tt.className instanceof tt.ownerDocument.defaultView.SVGAnimatedString?tt.className.baseVal:tt.className}function y(tt,U){tt.setAttribute("class",U)}function Tt(tt,U,F){F.forEach(function(Y){U.indexOf(Y)===-1&&d(tt,Y)&&j(tt,Y)}),U.forEach(function(Y){d(tt,Y)||A(tt,Y)})}var w=[],pt=function(U){w.push(U)},ae=function(){for(var U=void 0;U=w.pop();)U()},S=function(){function tt(){M(this,tt)}return O(tt,[{key:"on",value:function(F,Y,le){var ke=arguments.length<=3||arguments[3]===void 0?!1:arguments[3];typeof this.bindings>"u"&&(this.bindings={}),typeof this.bindings[F]>"u"&&(this.bindings[F]=[]),this.bindings[F].push({handler:Y,ctx:le,once:ke})}},{key:"once",value:function(F,Y,le){this.on(F,Y,le,!0)}},{key:"off",value:function(F,Y){if(!(typeof this.bindings>"u"||typeof this.bindings[F]>"u"))if(typeof Y>"u")delete this.bindings[F];else for(var le=0;le<this.bindings[F].length;)this.bindings[F][le].handler===Y?this.bindings[F].splice(le,1):++le}},{key:"trigger",value:function(F){if(typeof this.bindings<"u"&&this.bindings[F]){for(var Y=0,le=arguments.length,ke=Array(le>1?le-1:0),Ye=1;Ye<le;Ye++)ke[Ye-1]=arguments[Ye];for(;Y<this.bindings[F].length;){var ft=this.bindings[F][Y],wt=ft.handler,Ut=ft.ctx,Ke=ft.once,it=Ut;typeof it>"u"&&(it=this),wt.apply(it,ke),Ke?this.bindings[F].splice(Y,1):++Y}}}}]),tt}();s.Utils={getActualBoundingClientRect:u,getScrollParents:P,getBounds:nt,getOffsetParent:T,extend:Se,addClass:A,removeClass:j,hasClass:d,updateClasses:Tt,defer:pt,flush:ae,uniqueId:f,Evented:S,getScrollBarSize:_,removeUtilElements:N};var Rt=function(){function tt(U,F){var Y=[],le=!0,ke=!1,Ye=void 0;try{for(var ft=U[Symbol.iterator](),wt;!(le=(wt=ft.next()).done)&&(Y.push(wt.value),!(F&&Y.length===F));le=!0);}catch(Ut){ke=!0,Ye=Ut}finally{try{!le&&ft.return&&ft.return()}finally{if(ke)throw Ye}}return Y}return function(U,F){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return tt(U,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function tt(U,F){for(var Y=0;Y<F.length;Y++){var le=F[Y];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(U,le.key,le)}}return function(U,F,Y){return F&&tt(U.prototype,F),Y&&tt(U,Y),U}}(),R=function(U,F,Y){var le=!0;e:for(;le;){var ke=U,Ye=F,ft=Y;le=!1,ke===null&&(ke=Function.prototype);var wt=Object.getOwnPropertyDescriptor(ke,Ye);if(wt===void 0){var Ut=Object.getPrototypeOf(ke);if(Ut===null)return;U=Ut,F=Ye,Y=ft,le=!0,wt=Ut=void 0;continue e}else{if("value"in wt)return wt.value;var Ke=wt.get;return Ke===void 0?void 0:Ke.call(ft)}}};function M(tt,U){if(!(tt instanceof U))throw new TypeError("Cannot call a class as a function")}function D(tt,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);tt.prototype=Object.create(U&&U.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,U):tt.__proto__=U)}if(typeof s>"u")throw new Error("You must include the utils.js file before tether.js");var xe=s.Utils,P=xe.getScrollParents,nt=xe.getBounds,T=xe.getOffsetParent,Se=xe.extend,A=xe.addClass,j=xe.removeClass,Tt=xe.updateClasses,pt=xe.defer,ae=xe.flush,_=xe.getScrollBarSize,N=xe.removeUtilElements;function W(tt,U){var F=arguments.length<=2||arguments[2]===void 0?1:arguments[2];return tt+F>=U&&U>=tt-F}var he=function(){if(typeof document>"u")return"";for(var tt=document.createElement("div"),U=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],F=0;F<U.length;++F){var Y=U[F];if(tt.style[Y]!==void 0)return Y}}(),me=[],fe=function(){me.forEach(function(U){U.position(!1)}),ae()};function ve(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():+new Date}(function(){var tt=null,U=null,F=null,Y=function le(){if(typeof U<"u"&&U>16){U=Math.min(U-16,250),F=setTimeout(le,250);return}typeof tt<"u"&&ve()-tt<10||(F!=null&&(clearTimeout(F),F=null),tt=ve(),fe(),U=ve()-tt)};typeof window<"u"&&typeof window.addEventListener<"u"&&["resize","scroll","touchmove"].forEach(function(le){window.addEventListener(le,Y)})})();var ce={center:"center",left:"right",right:"left"},oe={middle:"middle",top:"bottom",bottom:"top"},re={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(U,F){var Y=U.left,le=U.top;return Y==="auto"&&(Y=ce[F.left]),le==="auto"&&(le=oe[F.top]),{left:Y,top:le}},V=function(U){var F=U.left,Y=U.top;return typeof re[U.left]<"u"&&(F=re[U.left]),typeof re[U.top]<"u"&&(Y=re[U.top]),{left:F,top:Y}};function Q(){for(var tt={top:0,left:0},U=arguments.length,F=Array(U),Y=0;Y<U;Y++)F[Y]=arguments[Y];return F.forEach(function(le){var ke=le.top,Ye=le.left;typeof ke=="string"&&(ke=parseFloat(ke,10)),typeof Ye=="string"&&(Ye=parseFloat(Ye,10)),tt.top+=ke,tt.left+=Ye}),tt}function Te(tt,U){return typeof tt.left=="string"&&tt.left.indexOf("%")!==-1&&(tt.left=parseFloat(tt.left,10)/100*U.width),typeof tt.top=="string"&&tt.top.indexOf("%")!==-1&&(tt.top=parseFloat(tt.top,10)/100*U.height),tt}var Re=function(U){var F=U.split(" "),Y=Rt(F,2),le=Y[0],ke=Y[1];return{top:le,left:ke}},ne=Re,pe=function(tt){D(U,tt);function U(F){var Y=this;M(this,U),R(Object.getPrototypeOf(U.prototype),"constructor",this).call(this),this.position=this.position.bind(this),me.push(this),this.history=[],this.setOptions(F,!1),s.modules.forEach(function(le){typeof le.initialize<"u"&&le.initialize.call(Y)}),this.position()}return O(U,[{key:"getClass",value:function(){var Y=arguments.length<=0||arguments[0]===void 0?"":arguments[0],le=this.options.classes;return typeof le<"u"&&le[Y]?this.options.classes[Y]:this.options.classPrefix?this.options.classPrefix+"-"+Y:Y}},{key:"setOptions",value:function(Y){var le=this,ke=arguments.length<=1||arguments[1]===void 0?!0:arguments[1],Ye={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=Se(Ye,Y);var ft=this.options,wt=ft.element,Ut=ft.target,Ke=ft.targetModifier;if(this.element=wt,this.target=Ut,this.targetModifier=Ke,this.target==="viewport"?(this.target=document.body,this.targetModifier="visible"):this.target==="scroll-handle"&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(it){if(typeof le[it]>"u")throw new Error("Tether Error: Both element and target must be defined");typeof le[it].jquery<"u"?le[it]=le[it][0]:typeof le[it]=="string"&&(le[it]=document.querySelector(le[it]))}),A(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&A(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=ne(this.options.targetAttachment),this.attachment=ne(this.options.attachment),this.offset=Re(this.options.offset),this.targetOffset=Re(this.options.targetOffset),typeof this.scrollParents<"u"&&this.disable(),this.targetModifier==="scroll-handle"?this.scrollParents=[this.target]:this.scrollParents=P(this.target),this.options.enabled!==!1&&this.enable(ke)}},{key:"getTargetBounds",value:function(){if(typeof this.targetModifier<"u"){if(this.targetModifier==="visible"){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var Y=nt(this.target),le={height:Y.height,width:Y.width,top:Y.top,left:Y.left};return le.height=Math.min(le.height,Y.height-(pageYOffset-Y.top)),le.height=Math.min(le.height,Y.height-(Y.top+Y.height-(pageYOffset+innerHeight))),le.height=Math.min(innerHeight,le.height),le.height-=2,le.width=Math.min(le.width,Y.width-(pageXOffset-Y.left)),le.width=Math.min(le.width,Y.width-(Y.left+Y.width-(pageXOffset+innerWidth))),le.width=Math.min(innerWidth,le.width),le.width-=2,le.top<pageYOffset&&(le.top=pageYOffset),le.left<pageXOffset&&(le.left=pageXOffset),le}else if(this.targetModifier==="scroll-handle"){var Y=void 0,ke=this.target;ke===document.body?(ke=document.documentElement,Y={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):Y=nt(ke);var Ye=getComputedStyle(ke),ft=ke.scrollWidth>ke.clientWidth||[Ye.overflow,Ye.overflowX].indexOf("scroll")>=0||this.target!==document.body,wt=0;ft&&(wt=15);var Ut=Y.height-parseFloat(Ye.borderTopWidth)-parseFloat(Ye.borderBottomWidth)-wt,le={width:15,height:Ut*.975*(Ut/ke.scrollHeight),left:Y.left+Y.width-parseFloat(Ye.borderLeftWidth)-15},Ke=0;Ut<408&&this.target===document.body&&(Ke=-11e-5*Math.pow(Ut,2)-.00727*Ut+22.58),this.target!==document.body&&(le.height=Math.max(le.height,24));var it=this.target.scrollTop/(ke.scrollHeight-Ut);return le.top=it*(Ut-le.height-Ke)+Y.top+parseFloat(Ye.borderTopWidth),this.target===document.body&&(le.height=Math.max(le.height,24)),le}}else return nt(this.target)}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(Y,le){return typeof this._cache>"u"&&(this._cache={}),typeof this._cache[Y]>"u"&&(this._cache[Y]=le.call(this)),this._cache[Y]}},{key:"enable",value:function(){var Y=this,le=arguments.length<=0||arguments[0]===void 0?!0:arguments[0];this.options.addTargetClasses!==!1&&A(this.target,this.getClass("enabled")),A(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(ke){ke!==Y.target.ownerDocument&&ke.addEventListener("scroll",Y.position)}),le&&this.position()}},{key:"disable",value:function(){var Y=this;j(this.target,this.getClass("enabled")),j(this.element,this.getClass("enabled")),this.enabled=!1,typeof this.scrollParents<"u"&&this.scrollParents.forEach(function(le){le.removeEventListener("scroll",Y.position)})}},{key:"destroy",value:function(){var Y=this;this.disable(),me.forEach(function(le,ke){le===Y&&me.splice(ke,1)}),me.length===0&&N()}},{key:"updateAttachClasses",value:function(Y,le){var ke=this;Y=Y||this.attachment,le=le||this.targetAttachment;var Ye=["left","top","bottom","right","middle","center"];typeof this._addAttachClasses<"u"&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),typeof this._addAttachClasses>"u"&&(this._addAttachClasses=[]);var ft=this._addAttachClasses;Y.top&&ft.push(this.getClass("element-attached")+"-"+Y.top),Y.left&&ft.push(this.getClass("element-attached")+"-"+Y.left),le.top&&ft.push(this.getClass("target-attached")+"-"+le.top),le.left&&ft.push(this.getClass("target-attached")+"-"+le.left);var wt=[];Ye.forEach(function(Ut){wt.push(ke.getClass("element-attached")+"-"+Ut),wt.push(ke.getClass("target-attached")+"-"+Ut)}),pt(function(){typeof ke._addAttachClasses<"u"&&(Tt(ke.element,ke._addAttachClasses,wt),ke.options.addTargetClasses!==!1&&Tt(ke.target,ke._addAttachClasses,wt),delete ke._addAttachClasses)})}},{key:"position",value:function(){var Y=this,le=arguments.length<=0||arguments[0]===void 0?!0:arguments[0];if(this.enabled){this.clearCache();var ke=H(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,ke);var Ye=this.cache("element-bounds",function(){return nt(Y.element)}),ft=Ye.width,wt=Ye.height;if(ft===0&&wt===0&&typeof this.lastSize<"u"){var Ut=this.lastSize;ft=Ut.width,wt=Ut.height}else this.lastSize={width:ft,height:wt};var Ke=this.cache("target-bounds",function(){return Y.getTargetBounds()}),it=Ke,At=Te(V(this.attachment),{width:ft,height:wt}),et=Te(V(ke),it),ee=Te(this.offset,{width:ft,height:wt}),I=Te(this.targetOffset,it);At=Q(At,ee),et=Q(et,I);for(var K=Ke.left+et.left-At.left,ue=Ke.top+et.top-At.top,De=0;De<s.modules.length;++De){var He=s.modules[De],Fe=He.position.call(this,{left:K,top:ue,targetAttachment:ke,targetPos:Ke,elementPos:Ye,offset:At,targetOffset:et,manualOffset:ee,manualTargetOffset:I,scrollbarSize:_t,attachment:this.attachment});if(Fe===!1)return!1;if(typeof Fe>"u"||typeof Fe!="object")continue;ue=Fe.top,K=Fe.left}var ze={page:{top:ue,left:K},viewport:{top:ue-pageYOffset,bottom:pageYOffset-ue-wt+innerHeight,left:K-pageXOffset,right:pageXOffset-K-ft+innerWidth}},qe=this.target.ownerDocument,We=qe.defaultView,_t=void 0;return We.innerHeight>qe.documentElement.clientHeight&&(_t=this.cache("scrollbar-size",_),ze.viewport.bottom-=_t.height),We.innerWidth>qe.documentElement.clientWidth&&(_t=this.cache("scrollbar-size",_),ze.viewport.right-=_t.width),(["","static"].indexOf(qe.body.style.position)===-1||["","static"].indexOf(qe.body.parentElement.style.position)===-1)&&(ze.page.bottom=qe.body.scrollHeight-ue-wt,ze.page.right=qe.body.scrollWidth-K-ft),typeof this.options.optimizations<"u"&&this.options.optimizations.moveElement!==!1&&!(typeof this.targetModifier<"u")&&function(){var ct=Y.cache("target-offsetparent",function(){return T(Y.target)}),Ge=Y.cache("target-offsetparent-bounds",function(){return nt(ct)}),st=getComputedStyle(ct),Me=Ge,ie={};if(["Top","Left","Bottom","Right"].forEach(function(be){ie[be.toLowerCase()]=parseFloat(st["border"+be+"Width"])}),Ge.right=qe.body.scrollWidth-Ge.left-Me.width+ie.right,Ge.bottom=qe.body.scrollHeight-Ge.top-Me.height+ie.bottom,ze.page.top>=Ge.top+ie.top&&ze.page.bottom>=Ge.bottom&&ze.page.left>=Ge.left+ie.left&&ze.page.right>=Ge.right){var ge=ct.scrollTop,z=ct.scrollLeft;ze.offset={top:ze.page.top-Ge.top+ge-ie.top,left:ze.page.left-Ge.left+z-ie.left}}}(),this.move(ze),this.history.unshift(ze),this.history.length>3&&this.history.pop(),le&&ae(),!0}}},{key:"move",value:function(Y){var le=this;if(typeof this.element.parentNode<"u"){var ke={};for(var Ye in Y){ke[Ye]={};for(var ft in Y[Ye]){for(var wt=!1,Ut=0;Ut<this.history.length;++Ut){var Ke=this.history[Ut];if(typeof Ke[Ye]<"u"&&!W(Ke[Ye][ft],Y[Ye][ft])){wt=!0;break}}wt||(ke[Ye][ft]=!0)}}var it={top:"",left:"",right:"",bottom:""},At=function(qe,We){var _t=typeof le.options.optimizations<"u",ct=_t?le.options.optimizations.gpu:null;if(ct!==!1){var Ge=void 0,st=void 0;qe.top?(it.top=0,Ge=We.top):(it.bottom=0,Ge=-We.bottom),qe.left?(it.left=0,st=We.left):(it.right=0,st=-We.right),typeof window.devicePixelRatio=="number"&&devicePixelRatio%1===0&&(st=Math.round(st*devicePixelRatio)/devicePixelRatio,Ge=Math.round(Ge*devicePixelRatio)/devicePixelRatio),it[he]="translateX("+st+"px) translateY("+Ge+"px)",he!=="msTransform"&&(it[he]+=" translateZ(0)")}else qe.top?it.top=We.top+"px":it.bottom=We.bottom+"px",qe.left?it.left=We.left+"px":it.right=We.right+"px"},et=!1;if((ke.page.top||ke.page.bottom)&&(ke.page.left||ke.page.right)?(it.position="absolute",At(ke.page,Y.page)):(ke.viewport.top||ke.viewport.bottom)&&(ke.viewport.left||ke.viewport.right)?(it.position="fixed",At(ke.viewport,Y.viewport)):typeof ke.offset<"u"&&ke.offset.top&&ke.offset.left?function(){it.position="absolute";var ze=le.cache("target-offsetparent",function(){return T(le.target)});T(le.element)!==ze&&pt(function(){le.element.parentNode.removeChild(le.element),ze.appendChild(le.element)}),At(ke.offset,Y.offset),et=!0}():(it.position="absolute",At({top:!0,left:!0},Y.page)),!et)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var ee=function(qe){var We=qe.ownerDocument,_t=We.fullscreenElement||We.webkitFullscreenElement||We.mozFullScreenElement||We.msFullscreenElement;return _t===qe},I=!0,K=this.element.parentNode;K&&K.nodeType===1&&K.tagName!=="BODY"&&!ee(K);){if(getComputedStyle(K).position!=="static"){I=!1;break}K=K.parentNode}I||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var ue={},De=!1;for(var ft in it){var He=it[ft],Fe=this.element.style[ft];Fe!==He&&(De=!0,ue[ft]=He)}De&&pt(function(){Se(le.element.style,ue),le.trigger("repositioned")})}}}]),U}(S);pe.modules=[],s.position=fe;var ye=Se(pe,s),Rt=function(){function tt(U,F){var Y=[],le=!0,ke=!1,Ye=void 0;try{for(var ft=U[Symbol.iterator](),wt;!(le=(wt=ft.next()).done)&&(Y.push(wt.value),!(F&&Y.length===F));le=!0);}catch(Ut){ke=!0,Ye=Ut}finally{try{!le&&ft.return&&ft.return()}finally{if(ke)throw Ye}}return Y}return function(U,F){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return tt(U,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xe=s.Utils,nt=xe.getBounds,Se=xe.extend,Tt=xe.updateClasses,pt=xe.defer,Ae=["left","top","right","bottom"];function Ee(tt,U){return U==="scrollParent"?U=tt.scrollParents[0]:U==="window"&&(U=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),U===document&&(U=U.documentElement),typeof U.nodeType<"u"&&function(){var F=U,Y=nt(U),le=Y,ke=getComputedStyle(U);if(U=[le.left,le.top,Y.width+le.left,Y.height+le.top],F.ownerDocument!==document){var Ye=F.ownerDocument.defaultView;U[0]+=Ye.pageXOffset,U[1]+=Ye.pageYOffset,U[2]+=Ye.pageXOffset,U[3]+=Ye.pageYOffset}Ae.forEach(function(ft,wt){ft=ft[0].toUpperCase()+ft.substr(1),ft==="Top"||ft==="Left"?U[wt]+=parseFloat(ke["border"+ft+"Width"]):U[wt]-=parseFloat(ke["border"+ft+"Width"])})}(),U}s.modules.push({position:function(U){var F=this,Y=U.top,le=U.left,ke=U.targetAttachment;if(!this.options.constraints)return!0;var Ye=this.cache("element-bounds",function(){return nt(F.element)}),ft=Ye.height,wt=Ye.width;if(wt===0&&ft===0&&typeof this.lastSize<"u"){var Ut=this.lastSize;wt=Ut.width,ft=Ut.height}var Ke=this.cache("target-bounds",function(){return F.getTargetBounds()}),it=Ke.height,At=Ke.width,et=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(ue){var De=ue.outOfBoundsClass,He=ue.pinnedClass;De&&et.push(De),He&&et.push(He)}),et.forEach(function(ue){["left","top","right","bottom"].forEach(function(De){et.push(ue+"-"+De)})});var ee=[],I=Se({},ke),K=Se({},this.attachment);return this.options.constraints.forEach(function(ue){var De=ue.to,He=ue.attachment,Fe=ue.pin;typeof He>"u"&&(He="");var ze=void 0,qe=void 0;if(He.indexOf(" ")>=0){var We=He.split(" "),_t=Rt(We,2);qe=_t[0],ze=_t[1]}else ze=qe=He;var ct=Ee(F,De);(qe==="target"||qe==="both")&&(Y<ct[1]&&I.top==="top"&&(Y+=it,I.top="bottom"),Y+ft>ct[3]&&I.top==="bottom"&&(Y-=it,I.top="top")),qe==="together"&&(I.top==="top"&&(K.top==="bottom"&&Y<ct[1]?(Y+=it,I.top="bottom",Y+=ft,K.top="top"):K.top==="top"&&Y+ft>ct[3]&&Y-(ft-it)>=ct[1]&&(Y-=ft-it,I.top="bottom",K.top="bottom")),I.top==="bottom"&&(K.top==="top"&&Y+ft>ct[3]?(Y-=it,I.top="top",Y-=ft,K.top="bottom"):K.top==="bottom"&&Y<ct[1]&&Y+(ft*2-it)<=ct[3]&&(Y+=ft-it,I.top="top",K.top="top")),I.top==="middle"&&(Y+ft>ct[3]&&K.top==="top"?(Y-=ft,K.top="bottom"):Y<ct[1]&&K.top==="bottom"&&(Y+=ft,K.top="top"))),(ze==="target"||ze==="both")&&(le<ct[0]&&I.left==="left"&&(le+=At,I.left="right"),le+wt>ct[2]&&I.left==="right"&&(le-=At,I.left="left")),ze==="together"&&(le<ct[0]&&I.left==="left"?K.left==="right"?(le+=At,I.left="right",le+=wt,K.left="left"):K.left==="left"&&(le+=At,I.left="right",le-=wt,K.left="right"):le+wt>ct[2]&&I.left==="right"?K.left==="left"?(le-=At,I.left="left",le-=wt,K.left="right"):K.left==="right"&&(le-=At,I.left="left",le+=wt,K.left="left"):I.left==="center"&&(le+wt>ct[2]&&K.left==="left"?(le-=wt,K.left="right"):le<ct[0]&&K.left==="right"&&(le+=wt,K.left="left"))),(qe==="element"||qe==="both")&&(Y<ct[1]&&K.top==="bottom"&&(Y+=ft,K.top="top"),Y+ft>ct[3]&&K.top==="top"&&(Y-=ft,K.top="bottom")),(ze==="element"||ze==="both")&&(le<ct[0]&&(K.left==="right"?(le+=wt,K.left="left"):K.left==="center"&&(le+=wt/2,K.left="left")),le+wt>ct[2]&&(K.left==="left"?(le-=wt,K.left="right"):K.left==="center"&&(le-=wt/2,K.left="right"))),typeof Fe=="string"?Fe=Fe.split(",").map(function(Me){return Me.trim()}):Fe===!0&&(Fe=["top","left","right","bottom"]),Fe=Fe||[];var Ge=[],st=[];Y<ct[1]&&(Fe.indexOf("top")>=0?(Y=ct[1],Ge.push("top")):st.push("top")),Y+ft>ct[3]&&(Fe.indexOf("bottom")>=0?(Y=ct[3]-ft,Ge.push("bottom")):st.push("bottom")),le<ct[0]&&(Fe.indexOf("left")>=0?(le=ct[0],Ge.push("left")):st.push("left")),le+wt>ct[2]&&(Fe.indexOf("right")>=0?(le=ct[2]-wt,Ge.push("right")):st.push("right")),Ge.length&&function(){var Me=void 0;typeof F.options.pinnedClass<"u"?Me=F.options.pinnedClass:Me=F.getClass("pinned"),ee.push(Me),Ge.forEach(function(ie){ee.push(Me+"-"+ie)})}(),st.length&&function(){var Me=void 0;typeof F.options.outOfBoundsClass<"u"?Me=F.options.outOfBoundsClass:Me=F.getClass("out-of-bounds"),ee.push(Me),st.forEach(function(ie){ee.push(Me+"-"+ie)})}(),(Ge.indexOf("left")>=0||Ge.indexOf("right")>=0)&&(K.left=I.left=!1),(Ge.indexOf("top")>=0||Ge.indexOf("bottom")>=0)&&(K.top=I.top=!1),(I.top!==ke.top||I.left!==ke.left||K.top!==F.attachment.top||K.left!==F.attachment.left)&&(F.updateAttachClasses(K,I),F.trigger("update",{attachment:K,targetAttachment:I}))}),pt(function(){F.options.addTargetClasses!==!1&&Tt(F.target,ee,et),Tt(F.element,ee,et)}),{top:Y,left:le}}});var xe=s.Utils,nt=xe.getBounds,Tt=xe.updateClasses,pt=xe.defer;s.modules.push({position:function(U){var F=this,Y=U.top,le=U.left,ke=this.cache("element-bounds",function(){return nt(F.element)}),Ye=ke.height,ft=ke.width,wt=this.getTargetBounds(),Ut=Y+Ye,Ke=le+ft,it=[];Y<=wt.bottom&&Ut>=wt.top&&["left","right"].forEach(function(I){var K=wt[I];(K===le||K===Ke)&&it.push(I)}),le<=wt.right&&Ke>=wt.left&&["top","bottom"].forEach(function(I){var K=wt[I];(K===Y||K===Ut)&&it.push(I)});var At=[],et=[],ee=["left","top","right","bottom"];return At.push(this.getClass("abutted")),ee.forEach(function(I){At.push(F.getClass("abutted")+"-"+I)}),it.length&&et.push(this.getClass("abutted")),it.forEach(function(I){et.push(F.getClass("abutted")+"-"+I)}),pt(function(){F.options.addTargetClasses!==!1&&Tt(F.target,et,At),Tt(F.element,et,At)}),!0}});var Rt=function(){function tt(U,F){var Y=[],le=!0,ke=!1,Ye=void 0;try{for(var ft=U[Symbol.iterator](),wt;!(le=(wt=ft.next()).done)&&(Y.push(wt.value),!(F&&Y.length===F));le=!0);}catch(Ut){ke=!0,Ye=Ut}finally{try{!le&&ft.return&&ft.return()}finally{if(ke)throw Ye}}return Y}return function(U,F){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return tt(U,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return s.modules.push({position:function(U){var F=U.top,Y=U.left;if(this.options.shift){var le=this.options.shift;typeof this.options.shift=="function"&&(le=this.options.shift.call(this,{top:F,left:Y}));var ke=void 0,Ye=void 0;if(typeof le=="string"){le=le.split(" "),le[1]=le[1]||le[0];var ft=le,wt=Rt(ft,2);ke=wt[0],Ye=wt[1],ke=parseFloat(ke,10),Ye=parseFloat(Ye,10)}else ke=le.top,Ye=le.left;return F+=ke,Y+=Ye,{top:F,left:Y}}}}),ye})},11094:(J,g,t)=>{var i=t(50668);g=J.exports=l,l.through=l;function l(s,m,u){s=s||function(w){this.queue(w)},m=m||function(){this.queue(null)};var f=!1,p=!1,v=[],h=!1,d=new i;d.readable=d.writable=!0,d.paused=!1,d.autoDestroy=!(u&&u.autoDestroy===!1),d.write=function(w){return s.call(this,w),!d.paused};function b(){for(;v.length&&!d.paused;){var w=v.shift();if(w===null)return d.emit("end");d.emit("data",w)}}d.queue=d.push=function(w){return h||(w===null&&(h=!0),v.push(w),b()),d},d.on("end",function(){d.readable=!1,!d.writable&&d.autoDestroy&&process.nextTick(function(){d.destroy()})});function y(){d.writable=!1,m.call(d),!d.readable&&d.autoDestroy&&d.destroy()}return d.end=function(w){if(!f)return f=!0,arguments.length&&d.write(w),y(),d},d.destroy=function(){if(!p)return p=!0,f=!0,v.length=0,d.writable=d.readable=!1,d.emit("close"),d},d.pause=function(){if(!d.paused)return d.paused=!0,d},d.resume=function(){return d.paused&&(d.paused=!1,d.emit("resume")),b(),d.paused||d.emit("drain"),d},d}},17676:J=>{"use strict";var g=!0,t="Invariant failed";function i(l,s){if(!l){if(g)throw new Error(t);var m=typeof s=="function"?s():s,u=m?"".concat(t,": ").concat(m):t;throw new Error(u)}}J.exports=i},78978:(J,g,t)=>{var i=t(27214);J.exports=l;function l(s){return i(s).replace(/\s(\w)/g,function(m,u){return u.toUpperCase()})}},49879:J=>{J.exports=l;var g=/\s/,t=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;function l(p){return g.test(p)?p.toLowerCase():t.test(p)?(m(p)||p).toLowerCase():i.test(p)?f(p).toLowerCase():p.toLowerCase()}var s=/[\W_]+(.|$)/g;function m(p){return p.replace(s,function(v,h){return h?" "+h:""})}var u=/(.)([A-Z]+)/g;function f(p){return p.replace(u,function(v,h,d){return h+" "+d.toLowerCase().split("").join(" ")})}},27214:(J,g,t)=>{var i=t(49879);J.exports=l;function l(s){return i(s).replace(/[\W_]+(.|$)/g,function(m,u){return u?" "+u:""}).trim()}},16426:J=>{J.exports=function(){var g=document.getSelection();if(!g.rangeCount)return function(){};for(var t=document.activeElement,i=[],l=0;l<g.rangeCount;l++)i.push(g.getRangeAt(l));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return g.removeAllRanges(),function(){g.type==="Caret"&&g.removeAllRanges(),g.rangeCount||i.forEach(function(s){g.addRange(s)}),t&&t.focus()}}},77232:function(J,g,t){var i;(function(l,s){"use strict";var m="1.0.33",u="",f="?",p="function",v="undefined",h="object",d="string",b="major",y="model",w="name",S="type",O="vendor",R="version",M="architecture",D="console",P="mobile",T="tablet",A="smarttv",j="wearable",ae="embedded",_=350,N="Amazon",W="Apple",he="ASUS",me="BlackBerry",fe="Browser",ve="Chrome",ce="Edge",oe="Firefox",re="Google",H="Huawei",V="LG",Q="Microsoft",Te="Motorola",Re="Opera",ne="Samsung",pe="Sharp",ye="Sony",Se="Xiaomi",Ae="Zebra",Ee="Facebook",xe=function(Ut,Ke){var it={};for(var At in Ut)Ke[At]&&Ke[At].length%2===0?it[At]=Ke[At].concat(Ut[At]):it[At]=Ut[At];return it},nt=function(Ut){for(var Ke={},it=0;it<Ut.length;it++)Ke[Ut[it].toUpperCase()]=Ut[it];return Ke},Tt=function(Ut,Ke){return typeof Ut===d?pt(Ke).indexOf(pt(Ut))!==-1:!1},pt=function(Ut){return Ut.toLowerCase()},Rt=function(Ut){return typeof Ut===d?Ut.replace(/[^\d\.]/g,u).split(".")[0]:s},tt=function(Ut,Ke){if(typeof Ut===d)return Ut=Ut.replace(/^\s\s*/,u),typeof Ke===v?Ut:Ut.substring(0,_)},U=function(Ut,Ke){for(var it=0,At,et,ee,I,K,ue;it<Ke.length&&!K;){var De=Ke[it],He=Ke[it+1];for(At=et=0;At<De.length&&!K;)if(K=De[At++].exec(Ut),K)for(ee=0;ee<He.length;ee++)ue=K[++et],I=He[ee],typeof I===h&&I.length>0?I.length===2?typeof I[1]==p?this[I[0]]=I[1].call(this,ue):this[I[0]]=I[1]:I.length===3?typeof I[1]===p&&!(I[1].exec&&I[1].test)?this[I[0]]=ue?I[1].call(this,ue,I[2]):s:this[I[0]]=ue?ue.replace(I[1],I[2]):s:I.length===4&&(this[I[0]]=ue?I[3].call(this,ue.replace(I[1],I[2])):s):this[I]=ue||s;it+=2}},F=function(Ut,Ke){for(var it in Ke)if(typeof Ke[it]===h&&Ke[it].length>0){for(var At=0;At<Ke[it].length;At++)if(Tt(Ke[it][At],Ut))return it===f?s:it}else if(Tt(Ke[it],Ut))return it===f?s:it;return Ut},Y={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},le={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ke={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[R,[w,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[R,[w,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[w,R],[/opios[\/ ]+([\w\.]+)/i],[R,[w,Re+" Mini"]],[/\bopr\/([\w\.]+)/i],[R,[w,Re]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[w,R],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[R,[w,"UC"+fe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[R,[w,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[R,[w,"WeChat"]],[/konqueror\/([\w\.]+)/i],[R,[w,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[R,[w,"IE"]],[/yabrowser\/([\w\.]+)/i],[R,[w,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure "+fe],R],[/\bfocus\/([\w\.]+)/i],[R,[w,oe+" Focus"]],[/\bopt\/([\w\.]+)/i],[R,[w,Re+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[R,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[R,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[R,[w,Re+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[R,[w,"MIUI "+fe]],[/fxios\/([-\w\.]+)/i],[R,[w,oe]],[/\bqihu|(qi?ho?o?|360)browser/i],[[w,"360 "+fe]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1 "+fe],R],[/(comodo_dragon)\/([\w\.]+)/i],[[w,/_/g," "],R],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[w,R],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[w],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[w,Ee],R],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[w,R],[/\bgsa\/([\w\.]+) .*safari\//i],[R,[w,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[R,[w,ve+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[w,ve+" WebView"],R],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[R,[w,"Android "+fe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[w,R],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[R,[w,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[R,w],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[w,[R,F,Y]],[/(webkit|khtml)\/([\w\.]+)/i],[w,R],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[w,"Netscape"],R],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[R,[w,oe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[w,R],[/(cobalt)\/([\w\.]+)/i],[w,[R,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[M,"amd64"]],[/(ia32(?=;))/i],[[M,pt]],[/((?:i[346]|x)86)[;\)]/i],[[M,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[M,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[M,"armhf"]],[/windows (ce|mobile); ppc;/i],[[M,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[M,/ower/,u,pt]],[/(sun4\w)[;\)]/i],[[M,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[M,pt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[y,[O,ne],[S,T]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[y,[O,ne],[S,P]],[/\((ip(?:hone|od)[\w ]*);/i],[y,[O,W],[S,P]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[y,[O,W],[S,T]],[/(macintosh);/i],[y,[O,W]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[y,[O,H],[S,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[y,[O,H],[S,P]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[y,/_/g," "],[O,Se],[S,P]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[y,/_/g," "],[O,Se],[S,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[y,[O,"OPPO"],[S,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[y,[O,"Vivo"],[S,P]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[y,[O,"Realme"],[S,P]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[y,[O,Te],[S,P]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[y,[O,Te],[S,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[y,[O,V],[S,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[y,[O,V],[S,P]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[y,[O,"Lenovo"],[S,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[y,/_/g," "],[O,"Nokia"],[S,P]],[/(pixel c)\b/i],[y,[O,re],[S,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[y,[O,re],[S,P]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[y,[O,ye],[S,P]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[y,"Xperia Tablet"],[O,ye],[S,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[y,[O,"OnePlus"],[S,P]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[y,[O,N],[S,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[y,/(.+)/g,"Fire Phone $1"],[O,N],[S,P]],[/(playbook);[-\w\),; ]+(rim)/i],[y,O,[S,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[y,[O,me],[S,P]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[y,[O,he],[S,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[y,[O,he],[S,P]],[/(nexus 9)/i],[y,[O,"HTC"],[S,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[O,[y,/_/g," "],[S,P]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[y,[O,"Acer"],[S,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[y,[O,"Meizu"],[S,P]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[y,[O,pe],[S,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[O,y,[S,P]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[O,y,[S,T]],[/(surface duo)/i],[y,[O,Q],[S,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[y,[O,"Fairphone"],[S,P]],[/(u304aa)/i],[y,[O,"AT&T"],[S,P]],[/\bsie-(\w*)/i],[y,[O,"Siemens"],[S,P]],[/\b(rct\w+) b/i],[y,[O,"RCA"],[S,T]],[/\b(venue[\d ]{2,7}) b/i],[y,[O,"Dell"],[S,T]],[/\b(q(?:mv|ta)\w+) b/i],[y,[O,"Verizon"],[S,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[y,[O,"Barnes & Noble"],[S,T]],[/\b(tm\d{3}\w+) b/i],[y,[O,"NuVision"],[S,T]],[/\b(k88) b/i],[y,[O,"ZTE"],[S,T]],[/\b(nx\d{3}j) b/i],[y,[O,"ZTE"],[S,P]],[/\b(gen\d{3}) b.+49h/i],[y,[O,"Swiss"],[S,P]],[/\b(zur\d{3}) b/i],[y,[O,"Swiss"],[S,T]],[/\b((zeki)?tb.*\b) b/i],[y,[O,"Zeki"],[S,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[O,"Dragon Touch"],y,[S,T]],[/\b(ns-?\w{0,9}) b/i],[y,[O,"Insignia"],[S,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[y,[O,"NextBook"],[S,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[O,"Voice"],y,[S,P]],[/\b(lvtel\-)?(v1[12]) b/i],[[O,"LvTel"],y,[S,P]],[/\b(ph-1) /i],[y,[O,"Essential"],[S,P]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[y,[O,"Envizen"],[S,T]],[/\b(trio[-\w\. ]+) b/i],[y,[O,"MachSpeed"],[S,T]],[/\btu_(1491) b/i],[y,[O,"Rotor"],[S,T]],[/(shield[\w ]+) b/i],[y,[O,"Nvidia"],[S,T]],[/(sprint) (\w+)/i],[O,y,[S,P]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[O,Q],[S,P]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[y,[O,Ae],[S,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[y,[O,Ae],[S,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[O,y,[S,D]],[/droid.+; (shield) bui/i],[y,[O,"Nvidia"],[S,D]],[/(playstation [345portablevi]+)/i],[y,[O,ye],[S,D]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[y,[O,Q],[S,D]],[/smart-tv.+(samsung)/i],[O,[S,A]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[O,ne],[S,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[O,V],[S,A]],[/(apple) ?tv/i],[O,[y,W+" TV"],[S,A]],[/crkey/i],[[y,ve+"cast"],[O,re],[S,A]],[/droid.+aft(\w)( bui|\))/i],[y,[O,N],[S,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[y,[O,pe],[S,A]],[/(bravia[\w ]+)( bui|\))/i],[y,[O,ye],[S,A]],[/(mitv-\w{5}) bui/i],[y,[O,Se],[S,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[O,tt],[y,tt],[S,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[S,A]],[/((pebble))app/i],[O,y,[S,j]],[/droid.+; (glass) \d/i],[y,[O,re],[S,j]],[/droid.+; (wt63?0{2,3})\)/i],[y,[O,Ae],[S,j]],[/(quest( 2)?)/i],[y,[O,Ee],[S,j]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[O,[S,ae]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[y,[S,P]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[y,[S,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[S,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[S,P]],[/(android[-\w\. ]{0,9});.+buil/i],[y,[O,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[R,[w,ce+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[R,[w,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[w,R],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[R,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,R],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[w,[R,F,le]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,"Windows"],[R,F,le]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[R,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[w,"Mac OS"],[R,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[R,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[w,R],[/\(bb(10);/i],[R,[w,me]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[R,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[R,[w,oe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[R,[w,"webOS"]],[/crkey\/([\d\.]+)/i],[R,[w,ve+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[w,"Chromium OS"],R],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[w,R],[/(sunos) ?([\w\.\d]*)/i],[[w,"Solaris"],R],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[w,R]]},Ye=function(Ut,Ke){if(typeof Ut===h&&(Ke=Ut,Ut=s),!(this instanceof Ye))return new Ye(Ut,Ke).getResult();var it=Ut||(typeof l!==v&&l.navigator&&l.navigator.userAgent?l.navigator.userAgent:u),At=Ke?xe(ke,Ke):ke;return this.getBrowser=function(){var et={};return et[w]=s,et[R]=s,U.call(et,it,At.browser),et.major=Rt(et.version),et},this.getCPU=function(){var et={};return et[M]=s,U.call(et,it,At.cpu),et},this.getDevice=function(){var et={};return et[O]=s,et[y]=s,et[S]=s,U.call(et,it,At.device),et},this.getEngine=function(){var et={};return et[w]=s,et[R]=s,U.call(et,it,At.engine),et},this.getOS=function(){var et={};return et[w]=s,et[R]=s,U.call(et,it,At.os),et},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return it},this.setUA=function(et){return it=typeof et===d&&et.length>_?tt(et,_):et,this},this.setUA(it),this};Ye.VERSION=m,Ye.BROWSER=nt([w,R,b]),Ye.CPU=nt([M]),Ye.DEVICE=nt([y,O,S,D,P,A,T,j,ae]),Ye.ENGINE=Ye.OS=nt([w,R]),typeof g!==v?(v!=="object"&&J.exports&&(g=J.exports=Ye),g.UAParser=Ye):p==="function"&&t.amdO?(i=function(){return Ye}.call(g,t,g,J),i!==s&&(J.exports=i)):typeof l!==v&&(l.UAParser=Ye);var ft=typeof l!==v&&(l.jQuery||l.Zepto);if(ft&&!ft.ua){var wt=new Ye;ft.ua=wt.getResult(),ft.ua.get=function(){return wt.getUA()},ft.ua.set=function(Ut){wt.setUA(Ut);var Ke=wt.getResult();for(var it in Ke)ft.ua[it]=Ke[it]}}})(typeof window=="object"?window:this)},36613:(J,g,t)=>{"use strict";t.d(g,{A:()=>Le});const i=!0,l="u-",s="uplot",m=l+"hz",u=l+"vt",f=l+"title",p=l+"wrap",v=l+"under",h=l+"over",d=l+"axis",b=l+"off",y=l+"select",w=l+"cursor-x",S=l+"cursor-y",O=l+"cursor-pt",R=l+"legend",M=l+"live",D=l+"inline",P=l+"series",T=l+"marker",A=l+"label",j=l+"value",ae="width",_="height",N="top",W="bottom",he="left",me="right",fe="#000",ve=fe+"0",ce="mousemove",oe="mousedown",re="mouseup",H="mouseenter",V="mouseleave",Q="dblclick",Te="resize",Re="scroll",ne="change",pe="dppxchange",ye="--",Se=typeof window<"u",Ae=Se?document:null,Ee=Se?window:null,xe=Se?navigator:null;let nt,Tt;function pt(){let te=devicePixelRatio;nt!=te&&(nt=te,Tt&&et(ne,Tt,pt),Tt=matchMedia(`(min-resolution: ${nt-.001}dppx) and (max-resolution: ${nt+.001}dppx)`),At(ne,Tt,pt),Ee.dispatchEvent(new CustomEvent(pe)))}function Rt(te,Ue){if(Ue!=null){let rt=te.classList;!rt.contains(Ue)&&rt.add(Ue)}}function tt(te,Ue){let rt=te.classList;rt.contains(Ue)&&rt.remove(Ue)}function U(te,Ue,rt){te.style[Ue]=rt+"px"}function F(te,Ue,rt,ht){let Gt=Ae.createElement(te);return Ue!=null&&Rt(Gt,Ue),rt?.insertBefore(Gt,ht),Gt}function Y(te,Ue){return F("div",te,Ue)}const le=new WeakMap;function ke(te,Ue,rt,ht,Gt){let xn="translate("+Ue+"px,"+rt+"px)",Hn=le.get(te);xn!=Hn&&(te.style.transform=xn,le.set(te,xn),Ue<0||rt<0||Ue>ht||rt>Gt?Rt(te,b):tt(te,b))}const Ye=new WeakMap;function ft(te,Ue,rt){let ht=Ue+rt,Gt=Ye.get(te);ht!=Gt&&(Ye.set(te,ht),te.style.background=Ue,te.style.borderColor=rt)}const wt=new WeakMap;function Ut(te,Ue,rt,ht){let Gt=Ue+""+rt,xn=wt.get(te);Gt!=xn&&(wt.set(te,Gt),te.style.height=rt+"px",te.style.width=Ue+"px",te.style.marginLeft=ht?-Ue/2+"px":0,te.style.marginTop=ht?-rt/2+"px":0)}const Ke={passive:!0},it={...Ke,capture:!0};function At(te,Ue,rt,ht){Ue.addEventListener(te,rt,ht?it:Ke)}function et(te,Ue,rt,ht){Ue.removeEventListener(te,rt,ht?it:Ke)}Se&&pt();function ee(te,Ue,rt,ht){let Gt;rt=rt||0,ht=ht||Ue.length-1;let xn=ht<=2147483647;for(;ht-rt>1;)Gt=xn?rt+ht>>1:Qe((rt+ht)/2),Ue[Gt]<te?rt=Gt:ht=Gt;return te-Ue[rt]<=Ue[ht]-te?rt:ht}function I(te,Ue,rt,ht){for(let Gt=ht==1?Ue:rt;Gt>=Ue&&Gt<=rt;Gt+=ht)if(te[Gt]!=null)return Gt;return-1}function K(te,Ue,rt,ht){let Gt=xt,xn=-xt;if(ht==1)Gt=te[Ue],xn=te[rt];else if(ht==-1)Gt=te[rt],xn=te[Ue];else for(let Hn=Ue;Hn<=rt;Hn++){let wr=te[Hn];wr!=null&&(wr<Gt&&(Gt=wr),wr>xn&&(xn=wr))}return[Gt,xn]}function ue(te,Ue,rt){let ht=xt,Gt=-xt;for(let xn=Ue;xn<=rt;xn++){let Hn=te[xn];Hn!=null&&Hn>0&&(Hn<ht&&(ht=Hn),Hn>Gt&&(Gt=Hn))}return[ht,Gt]}function De(te,Ue,rt,ht){let Gt=On(te),xn=On(Ue);te==Ue&&(Gt==-1?(te*=rt,Ue/=rt):(te/=rt,Ue*=rt));let Hn=rt==10?Ct:Zt,wr=Gt==1?Qe:nn,Wr=xn==1?nn:Qe,vt=wr(Hn(be(te))),Vt=Wr(Hn(be(Ue))),dn=$t(rt,vt),yn=$t(rt,Vt);return rt==10&&(vt<0&&(dn=pi(dn,-vt)),Vt<0&&(yn=pi(yn,-Vt))),ht||rt==2?(te=dn*Gt,Ue=yn*xn):(te=sr(te,dn),Ue=rr(Ue,yn)),[te,Ue]}function He(te,Ue,rt,ht){let Gt=De(te,Ue,rt,ht);return te==0&&(Gt[0]=0),Ue==0&&(Gt[1]=0),Gt}const Fe=.1,ze={mode:3,pad:Fe},qe={pad:0,soft:null,mode:0},We={min:qe,max:qe};function _t(te,Ue,rt,ht){return Pi(rt)?st(te,Ue,rt):(qe.pad=rt,qe.soft=ht?0:null,qe.mode=ht?3:0,st(te,Ue,We))}function ct(te,Ue){return te??Ue}function Ge(te,Ue,rt){for(Ue=ct(Ue,0),rt=ct(rt,te.length-1);Ue<=rt;){if(te[Ue]!=null)return!0;Ue++}return!1}function st(te,Ue,rt){let ht=rt.min,Gt=rt.max,xn=ct(ht.pad,0),Hn=ct(Gt.pad,0),wr=ct(ht.hard,-xt),Wr=ct(Gt.hard,xt),vt=ct(ht.soft,xt),Vt=ct(Gt.soft,-xt),dn=ct(ht.mode,0),yn=ct(Gt.mode,0),ar=Ue-te,wi=Ct(ar),mi=at(be(te),be(Ue)),ho=Ct(mi),Ao=be(ho-wi);(ar<1e-9||Ao>10)&&(ar=0,(te==0||Ue==0)&&(ar=1e-9,dn==2&&vt!=xt&&(xn=0),yn==2&&Vt!=-xt&&(Hn=0)));let Mo=ar||mi||1e3,bo=Ct(Mo),ca=$t(10,Qe(bo)),sa=Mo*(ar==0?te==0?.1:1:xn),Da=pi(sr(te-sa,ca/10),9),La=te>=vt&&(dn==1||dn==3&&Da<=vt||dn==2&&Da>=vt)?vt:xt,Ja=at(wr,Da<La&&te>=La?La:bt(La,Da)),Ya=Mo*(ar==0?Ue==0?.1:1:Hn),Aa=pi(rr(Ue+Ya,ca/10),9),ba=Ue<=Vt&&(yn==1||yn==3&&Aa>=Vt||yn==2&&Aa<=Vt)?Vt:-xt,Ka=bt(Wr,Aa>ba&&Ue<=ba?ba:at(ba,Aa));return Ja==Ka&&Ja==0&&(Ka=100),[Ja,Ka]}const Me=new Intl.NumberFormat(Se?xe.language:"en-US"),ie=te=>Me.format(te),ge=Math,z=ge.PI,be=ge.abs,Qe=ge.floor,Bt=ge.round,nn=ge.ceil,bt=ge.min,at=ge.max,$t=ge.pow,On=ge.sign,Ct=ge.log10,Zt=ge.log2,Wn=(te,Ue=1)=>ge.sinh(te)*Ue,Zn=(te,Ue=1)=>ge.asinh(te/Ue),xt=1/0;function Xe(te){return(Ct((te^te>>31)-(te>>31))|0)+1}function gn(te,Ue,rt){return bt(at(te,Ue),rt)}function Qt(te){return typeof te=="function"?te:()=>te}const Dt=()=>{},hn=te=>te,cn=(te,Ue)=>Ue,an=te=>null,Or=te=>!0,Ln=(te,Ue)=>te==Ue,En=te=>pi(te,14);function Gn(te,Ue){return En(pi(En(te/Ue))*Ue)}function rr(te,Ue){return En(nn(En(te/Ue))*Ue)}function sr(te,Ue){return En(Qe(En(te/Ue))*Ue)}function pi(te,Ue=0){if(Kr(te))return te;let rt=10**Ue,ht=te*rt*(1+Number.EPSILON);return Bt(ht)/rt}const yi=new Map;function jr(te){return((""+te).split(".")[1]||"").length}function ui(te,Ue,rt,ht){let Gt=[],xn=ht.map(jr);for(let Hn=Ue;Hn<rt;Hn++){let wr=be(Hn),Wr=pi($t(te,Hn),wr);for(let vt=0;vt<ht.length;vt++){let Vt=ht[vt]*Wr,dn=(Vt>=0&&Hn>=0?0:wr)+(Hn>=xn[vt]?0:xn[vt]),yn=pi(Vt,dn);Gt.push(yn),yi.set(yn,dn)}}return Gt}const bi={},ri=[],hi=[null,null],Si=Array.isArray,Kr=Number.isInteger,xi=te=>te===void 0;function Ai(te){return typeof te=="string"}function Pi(te){let Ue=!1;if(te!=null){let rt=te.constructor;Ue=rt==null||rt==Object}return Ue}function io(te){return te!=null&&typeof te=="object"}const lo=Object.getPrototypeOf(Uint8Array);function Gr(te,Ue=Pi){let rt;if(Si(te)){let ht=te.find(Gt=>Gt!=null);if(Si(ht)||Ue(ht)){rt=Array(te.length);for(let Gt=0;Gt<te.length;Gt++)rt[Gt]=Gr(te[Gt],Ue)}else rt=te.slice()}else if(te instanceof lo)rt=te.slice();else if(Ue(te)){rt={};for(let ht in te)rt[ht]=Gr(te[ht],Ue)}else rt=te;return rt}function un(te){let Ue=arguments;for(let rt=1;rt<Ue.length;rt++){let ht=Ue[rt];for(let Gt in ht)Pi(te[Gt])?un(te[Gt],Gr(ht[Gt])):te[Gt]=Gr(ht[Gt])}return te}const qn=0,kn=1,St=2;function ln(te,Ue,rt){for(let ht=0,Gt,xn=-1;ht<Ue.length;ht++){let Hn=Ue[ht];if(Hn>xn){for(Gt=Hn-1;Gt>=0&&te[Gt]==null;)te[Gt--]=null;for(Gt=Hn+1;Gt<rt&&te[Gt]==null;)te[xn=Gt++]=null}}}function An(te,Ue){if(Sn(te)){let Hn=te[0].slice();for(let wr=1;wr<te.length;wr++)Hn.push(...te[wr].slice(1));return ir(Hn[0])||(Hn=_i(Hn)),Hn}let rt=new Set;for(let Hn=0;Hn<te.length;Hn++){let Wr=te[Hn][0],vt=Wr.length;for(let Vt=0;Vt<vt;Vt++)rt.add(Wr[Vt])}let ht=[Array.from(rt).sort((Hn,wr)=>Hn-wr)],Gt=ht[0].length,xn=new Map;for(let Hn=0;Hn<Gt;Hn++)xn.set(ht[0][Hn],Hn);for(let Hn=0;Hn<te.length;Hn++){let wr=te[Hn],Wr=wr[0];for(let vt=1;vt<wr.length;vt++){let Vt=wr[vt],dn=Array(Gt).fill(void 0),yn=Ue?Ue[Hn][vt]:kn,ar=[];for(let wi=0;wi<Vt.length;wi++){let mi=Vt[wi],ho=xn.get(Wr[wi]);mi===null?yn!=qn&&(dn[ho]=mi,yn==St&&ar.push(ho)):dn[ho]=mi}ln(dn,ar,Gt),ht.push(dn)}}return ht}const Cr=typeof queueMicrotask>"u"?te=>Promise.resolve().then(te):queueMicrotask;function _i(te){let Ue=te[0],rt=Ue.length,ht=Array(rt);for(let xn=0;xn<ht.length;xn++)ht[xn]=xn;ht.sort((xn,Hn)=>Ue[xn]-Ue[Hn]);let Gt=[];for(let xn=0;xn<te.length;xn++){let Hn=te[xn],wr=Array(rt);for(let Wr=0;Wr<rt;Wr++)wr[Wr]=Hn[ht[Wr]];Gt.push(wr)}return Gt}function Sn(te){let Ue=te[0][0],rt=Ue.length;for(let ht=1;ht<te.length;ht++){let Gt=te[ht][0];if(Gt.length!=rt)return!1;if(Gt!=Ue){for(let xn=0;xn<rt;xn++)if(Gt[xn]!=Ue[xn])return!1}}return!0}function ir(te,Ue=100){const rt=te.length;if(rt<=1)return!0;let ht=0,Gt=rt-1;for(;ht<=Gt&&te[ht]==null;)ht++;for(;Gt>=ht&&te[Gt]==null;)Gt--;if(Gt<=ht)return!0;const xn=at(1,Qe((Gt-ht+1)/Ue));for(let Hn=te[ht],wr=ht+xn;wr<=Gt;wr+=xn){const Wr=te[wr];if(Wr!=null){if(Wr<=Hn)return!1;Hn=Wr}}return!0}const mt=["January","February","March","April","May","June","July","August","September","October","November","December"],fn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(te){return te.slice(0,3)}const tn=fn.map(gt),Vn=mt.map(gt),Ur={MMMM:mt,MMM:Vn,WWWW:fn,WWW:tn};function $r(te){return(te<10?"0":"")+te}function Pr(te){return(te<10?"00":te<100?"0":"")+te}const zr={YYYY:te=>te.getFullYear(),YY:te=>(te.getFullYear()+"").slice(2),MMMM:(te,Ue)=>Ue.MMMM[te.getMonth()],MMM:(te,Ue)=>Ue.MMM[te.getMonth()],MM:te=>$r(te.getMonth()+1),M:te=>te.getMonth()+1,DD:te=>$r(te.getDate()),D:te=>te.getDate(),WWWW:(te,Ue)=>Ue.WWWW[te.getDay()],WWW:(te,Ue)=>Ue.WWW[te.getDay()],HH:te=>$r(te.getHours()),H:te=>te.getHours(),h:te=>{let Ue=te.getHours();return Ue==0?12:Ue>12?Ue-12:Ue},AA:te=>te.getHours()>=12?"PM":"AM",aa:te=>te.getHours()>=12?"pm":"am",a:te=>te.getHours()>=12?"p":"a",mm:te=>$r(te.getMinutes()),m:te=>te.getMinutes(),ss:te=>$r(te.getSeconds()),s:te=>te.getSeconds(),fff:te=>Pr(te.getMilliseconds())};function gi(te,Ue){Ue=Ue||Ur;let rt=[],ht=/\{([a-z]+)\}|[^{]+/gi,Gt;for(;Gt=ht.exec(te);)rt.push(Gt[0][0]=="{"?zr[Gt[1]]:Gt[0]);return xn=>{let Hn="";for(let wr=0;wr<rt.length;wr++)Hn+=typeof rt[wr]=="string"?rt[wr]:rt[wr](xn,Ue);return Hn}}const $i=new Intl.DateTimeFormat().resolvedOptions().timeZone;function eo(te,Ue){let rt;return Ue=="UTC"||Ue=="Etc/UTC"?rt=new Date(+te+te.getTimezoneOffset()*6e4):Ue==$i?rt=te:(rt=new Date(te.toLocaleString("en-US",{timeZone:Ue})),rt.setMilliseconds(te.getMilliseconds())),rt}const ki=te=>te%1==0,so=[1,2,2.5,5],Ho=ui(10,-16,0,so),ra=ui(10,0,16,so),So=ra.filter(ki),gr=Ho.concat(ra),di=` `,Vi="{YYYY}",Ro=di+Vi,na="{M}/{D}",ta=di+na,aa=ta+"/{YY}",vi="{aa}",$o="{h}:{mm}"+vi,ja=di+$o,hs=":{ss}",ro=null;function as(te){let Ue=te*1e3,rt=Ue*60,ht=rt*60,Gt=ht*24,xn=Gt*30,Hn=Gt*365,Wr=(te==1?ui(10,0,3,so).filter(ki):ui(10,-3,0,so)).concat([Ue,Ue*5,Ue*10,Ue*15,Ue*30,rt,rt*5,rt*10,rt*15,rt*30,ht,ht*2,ht*3,ht*4,ht*6,ht*8,ht*12,Gt,Gt*2,Gt*3,Gt*4,Gt*5,Gt*6,Gt*7,Gt*8,Gt*9,Gt*10,Gt*15,xn,xn*2,xn*3,xn*4,xn*6,Hn,Hn*2,Hn*5,Hn*10,Hn*25,Hn*50,Hn*100]);const vt=[[Hn,Vi,ro,ro,ro,ro,ro,ro,1],[Gt*28,"{MMM}",Ro,ro,ro,ro,ro,ro,1],[Gt,na,Ro,ro,ro,ro,ro,ro,1],[ht,"{h}"+vi,aa,ro,ta,ro,ro,ro,1],[rt,$o,aa,ro,ta,ro,ro,ro,1],[Ue,hs,aa+" "+$o,ro,ta+" "+$o,ro,ja,ro,1],[te,hs+".{fff}",aa+" "+$o,ro,ta+" "+$o,ro,ja,ro,1]];function Vt(dn){return(yn,ar,wi,mi,ho,Ao)=>{let Mo=[],bo=ho>=Hn,ca=ho>=xn&&ho<Hn,sa=dn(wi),Da=pi(sa*te,3),La=Ie(sa.getFullYear(),bo?0:sa.getMonth(),ca||bo?1:sa.getDate()),Ja=pi(La*te,3);if(ca||bo){let Ya=ca?ho/xn:0,Aa=bo?ho/Hn:0,ba=Da==Ja?Da:pi(Ie(La.getFullYear()+Aa,La.getMonth()+Ya,1)*te,3),Ka=new Date(Bt(ba/te)),us=Ka.getFullYear(),ii=Ka.getMonth();for(let Wo=0;ba<=mi;Wo++){let Ra=Ie(us+Aa*Wo,ii+Ya*Wo,1),_a=Ra-dn(pi(Ra*te,3));ba=pi((+Ra+_a)*te,3),ba<=mi&&Mo.push(ba)}}else{let Ya=ho>=Gt?Gt:ho,Aa=Qe(wi)-Qe(Da),ba=Ja+Aa+rr(Da-Ja,Ya);Mo.push(ba);let Ka=dn(ba),us=Ka.getHours()+Ka.getMinutes()/rt+Ka.getSeconds()/ht,ii=ho/ht,Wo=yn.axes[ar]._space,Ra=Ao/Wo;for(;ba=pi(ba+ho,te==1?0:3),!(ba>mi);)if(ii>1){let _a=Qe(pi(us+ii,6))%24,Ws=dn(ba).getHours()-_a;Ws>1&&(Ws=-1),ba-=Ws*ht,us=(us+ii)%24;let Ne=Mo[Mo.length-1];pi((ba-Ne)/ho,3)*Ra>=.7&&Mo.push(ba)}else Mo.push(ba)}return Mo}}return[Wr,vt,Vt]}const[rn,Dr,Lr]=as(1),[li,Zi,Di]=as(.001);ui(2,-53,53,[1]);function wo(te,Ue){return te.map(rt=>rt.map((ht,Gt)=>Gt==0||Gt==8||ht==null?ht:Ue(Gt==1||rt[8]==0?ht:rt[1]+ht)))}function Go(te,Ue){return(rt,ht,Gt,xn,Hn)=>{let wr=Ue.find(wi=>Hn>=wi[0])||Ue[Ue.length-1],Wr,vt,Vt,dn,yn,ar;return ht.map(wi=>{let mi=te(wi),ho=mi.getFullYear(),Ao=mi.getMonth(),Mo=mi.getDate(),bo=mi.getHours(),ca=mi.getMinutes(),sa=mi.getSeconds(),Da=ho!=Wr&&wr[2]||Ao!=vt&&wr[3]||Mo!=Vt&&wr[4]||bo!=dn&&wr[5]||ca!=yn&&wr[6]||sa!=ar&&wr[7]||wr[1];return Wr=ho,vt=Ao,Vt=Mo,dn=bo,yn=ca,ar=sa,Da(mi)})}}function Ko(te,Ue){let rt=gi(Ue);return(ht,Gt,xn,Hn,wr)=>Gt.map(Wr=>rt(te(Wr)))}function Ie(te,Ue,rt){return new Date(te,Ue,rt)}function yt(te,Ue){return Ue(te)}const on="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function _n(te,Ue){return(rt,ht,Gt,xn)=>xn==null?ye:Ue(te(ht))}function er(te,Ue){let rt=te.series[Ue];return rt.width?rt.stroke(te,Ue):rt.points.width?rt.points.stroke(te,Ue):null}function or(te,Ue){return te.series[Ue].fill(te,Ue)}const Er={show:!0,live:!0,isolate:!1,mount:Dt,markers:{show:!0,width:2,stroke:er,fill:or,dash:"solid"},idx:null,idxs:null,values:[]};function Mi(te,Ue){let rt=te.cursor.points,ht=Y(),Gt=rt.size(te,Ue);U(ht,ae,Gt),U(ht,_,Gt);let xn=Gt/-2;U(ht,"marginLeft",xn),U(ht,"marginTop",xn);let Hn=rt.width(te,Ue,Gt);return Hn&&U(ht,"borderWidth",Hn),ht}function Ui(te,Ue){let rt=te.series[Ue].points;return rt._fill||rt._stroke}function Nn(te,Ue){let rt=te.series[Ue].points;return rt._stroke||rt._fill}function cr(te,Ue){return te.series[Ue].points.size}const ni=[0,0];function Xr(te,Ue,rt){return ni[0]=Ue,ni[1]=rt,ni}function Jr(te,Ue,rt,ht=!0){return Gt=>{Gt.button==0&&(!ht||Gt.target==Ue)&&rt(Gt)}}function Qi(te,Ue,rt,ht=!0){return Gt=>{(!ht||Gt.target==Ue)&&rt(Gt)}}const Fo={show:!0,x:!0,y:!0,lock:!1,move:Xr,points:{show:Mi,size:cr,width:0,stroke:Nn,fill:Ui},bind:{mousedown:Jr,mouseup:Jr,click:Jr,dblclick:Jr,mousemove:Qi,mouseleave:Qi,mouseenter:Qi},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(te,Ue)=>{Ue.stopPropagation(),Ue.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(te,Ue,rt,ht,Gt)=>ht-Gt,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},No={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Jo=un({},No,{filter:cn}),br=un({},Jo,{size:10}),Yn=un({},No,{show:!1}),Z='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',se="bold "+Z,G=1.5,B={show:!0,scale:"x",stroke:fe,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:se,side:2,grid:Jo,ticks:br,border:Yn,font:Z,lineGap:G,rotate:0},Pe="Value",dt="Time",Lt={show:!0,scale:"x",auto:!1,sorted:1,min:xt,max:-xt,idxs:[]};function Pt(te,Ue,rt,ht,Gt){return Ue.map(xn=>xn==null?"":ie(xn))}function $e(te,Ue,rt,ht,Gt,xn,Hn){let wr=[],Wr=yi.get(Gt)||0;rt=Hn?rt:pi(rr(rt,Gt),Wr);for(let vt=rt;vt<=ht;vt=pi(vt+Gt,Wr))wr.push(Object.is(vt,-0)?0:vt);return wr}function ut(te,Ue,rt,ht,Gt,xn,Hn){const wr=[],Wr=te.scales[te.axes[Ue].scale].log,vt=Wr==10?Ct:Zt,Vt=Qe(vt(rt));Gt=$t(Wr,Vt),Wr==10&&Vt<0&&(Gt=pi(Gt,-Vt));let dn=rt;do wr.push(dn),dn=dn+Gt,Wr==10&&(dn=pi(dn,yi.get(Gt))),dn>=Gt*Wr&&(Gt=dn);while(dn<=ht);return wr}function zt(te,Ue,rt,ht,Gt,xn,Hn){let Wr=te.scales[te.axes[Ue].scale].asinh,vt=ht>Wr?ut(te,Ue,at(Wr,rt),ht,Gt):[Wr],Vt=ht>=0&&rt<=0?[0]:[];return(rt<-Wr?ut(te,Ue,at(Wr,-ht),-rt,Gt):[Wr]).reverse().map(yn=>-yn).concat(Vt,vt)}const Ht=/./,Fn=/[12357]/,Cn=/[125]/,tr=/1/,Jn=(te,Ue,rt,ht)=>te.map((Gt,xn)=>Ue==4&&Gt==0||xn%ht==0&&rt.test(Gt.toExponential()[Gt<0?1:0])?Gt:null);function ei(te,Ue,rt,ht,Gt){let xn=te.axes[rt],Hn=xn.scale,wr=te.scales[Hn],Wr=te.valToPos,vt=xn._space,Vt=Wr(10,Hn),dn=Wr(9,Hn)-Vt>=vt?Ht:Wr(7,Hn)-Vt>=vt?Fn:Wr(5,Hn)-Vt>=vt?Cn:tr;if(dn==tr){let yn=be(Wr(1,Hn)-Vt);if(yn<vt)return Jn(Ue.slice().reverse(),wr.distr,dn,nn(vt/yn)).reverse()}return Jn(Ue,wr.distr,dn,1)}function Ci(te,Ue,rt,ht,Gt){let xn=te.axes[rt],Hn=xn.scale,wr=xn._space,Wr=te.valToPos,vt=be(Wr(1,Hn)-Wr(2,Hn));return vt<wr?Jn(Ue.slice().reverse(),3,Ht,nn(wr/vt)).reverse():Ue}function zi(te,Ue,rt,ht){return ht==null?ye:Ue==null?"":ie(Ue)}const co={show:!0,scale:"y",stroke:fe,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:se,side:3,grid:Jo,ticks:br,border:Yn,font:Z,lineGap:G,rotate:0};function Xo(te,Ue){let rt=3+(te||1)*2;return pi(rt*Ue,3)}function Eo(te,Ue){let{scale:rt,idxs:ht}=te.series[0],Gt=te._data[0],xn=te.valToPos(Gt[ht[0]],rt,!0),Hn=te.valToPos(Gt[ht[1]],rt,!0),wr=be(Hn-xn),Wr=te.series[Ue],vt=wr/(Wr.points.space*nt);return ht[1]-ht[0]<=vt}const Yo={scale:null,auto:!0,sorted:0,min:xt,max:-xt},Xn=(te,Ue,rt,ht,Gt)=>Gt,fr={show:!0,auto:!0,sorted:0,gaps:Xn,alpha:1,facets:[un({},Yo,{scale:"x"}),un({},Yo,{scale:"y"})]},mr={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Xn,alpha:1,points:{show:Eo,filter:null},values:null,min:xt,max:-xt,idxs:[],path:null,clip:null};function yr(te,Ue,rt,ht,Gt){return rt/10}const Rr={time:i,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ai=un({},Rr,{time:!1,ori:1}),jt={};function Pn(te,Ue){let rt=jt[te];return rt||(rt={key:te,plots:[],sub(ht){rt.plots.push(ht)},unsub(ht){rt.plots=rt.plots.filter(Gt=>Gt!=ht)},pub(ht,Gt,xn,Hn,wr,Wr,vt){for(let Vt=0;Vt<rt.plots.length;Vt++)rt.plots[Vt]!=Gt&&rt.plots[Vt].pub(ht,Gt,xn,Hn,wr,Wr,vt)}},te!=null&&(jt[te]=rt)),rt}const nr=1,Ir=2;function fi(te,Ue,rt){const ht=te.mode,Gt=te.series[Ue],xn=ht==2?te._data[Ue]:te._data,Hn=te.scales,wr=te.bbox;let Wr=xn[0],vt=ht==2?xn[1]:xn[Ue],Vt=ht==2?Hn[Gt.facets[0].scale]:Hn[te.series[0].scale],dn=ht==2?Hn[Gt.facets[1].scale]:Hn[Gt.scale],yn=wr.left,ar=wr.top,wi=wr.width,mi=wr.height,ho=te.valToPosH,Ao=te.valToPosV;return Vt.ori==0?rt(Gt,Wr,vt,Vt,dn,ho,Ao,yn,ar,wi,mi,Ot,Wt,zn,si,Bi):rt(Gt,Wr,vt,Vt,dn,Ao,ho,ar,yn,mi,wi,wn,Yt,Nr,Ki,Xi)}function Ti(te,Ue){let rt=0,ht=0,Gt=ct(te.bands,ri);for(let xn=0;xn<Gt.length;xn++){let Hn=Gt[xn];Hn.series[0]==Ue?rt=Hn.dir:Hn.series[1]==Ue&&(Hn.dir==1?ht|=1:ht|=2)}return[rt,ht==1?-1:ht==2?1:ht==3?2:0]}function Oe(te,Ue,rt,ht,Gt){let xn=te.mode,Hn=te.series[Ue],wr=xn==2?Hn.facets[1].scale:Hn.scale,Wr=te.scales[wr];return Gt==-1?Wr.min:Gt==1?Wr.max:Wr.distr==3?Wr.dir==1?Wr.min:Wr.max:0}function pn(te,Ue,rt,ht,Gt,xn){return fi(te,Ue,(Hn,wr,Wr,vt,Vt,dn,yn,ar,wi,mi,ho)=>{let Ao=Hn.pxRound;const Mo=vt.dir*(vt.ori==0?1:-1),bo=vt.ori==0?Wt:Yt;let ca,sa;Mo==1?(ca=rt,sa=ht):(ca=ht,sa=rt);let Da=Ao(dn(wr[ca],vt,mi,ar)),La=Ao(yn(Wr[ca],Vt,ho,wi)),Ja=Ao(dn(wr[sa],vt,mi,ar)),Ya=Ao(yn(xn==1?Vt.max:Vt.min,Vt,ho,wi)),Aa=new Path2D(Gt);return bo(Aa,Ja,Ya),bo(Aa,Da,Ya),bo(Aa,Da,La),Aa})}function Qn(te,Ue,rt,ht,Gt,xn){let Hn=null;if(te.length>0){Hn=new Path2D;const wr=Ue==0?zn:Nr;let Wr=rt;for(let dn=0;dn<te.length;dn++){let yn=te[dn];if(yn[1]>yn[0]){let ar=yn[0]-Wr;ar>0&&wr(Hn,Wr,ht,ar,ht+xn),Wr=yn[1]}}let vt=rt+Gt-Wr,Vt=10;vt>0&&wr(Hn,Wr,ht-Vt/2,vt,ht+xn+Vt)}return Hn}function Sr(te,Ue,rt){let ht=te[te.length-1];ht&&ht[0]==Ue?ht[1]=rt:te.push([Ue,rt])}function hr(te,Ue,rt,ht,Gt,xn,Hn){let wr=[],Wr=te.length;for(let vt=Gt==1?rt:ht;vt>=rt&&vt<=ht;vt+=Gt)if(Ue[vt]===null){let dn=vt,yn=vt;if(Gt==1)for(;++vt<=ht&&Ue[vt]===null;)yn=vt;else for(;--vt>=rt&&Ue[vt]===null;)yn=vt;let ar=xn(te[dn]),wi=yn==dn?ar:xn(te[yn]),mi=dn-Gt;ar=Hn<=0&&mi>=0&&mi<Wr?xn(te[mi]):ar;let Ao=yn+Gt;wi=Hn>=0&&Ao>=0&&Ao<Wr?xn(te[Ao]):wi,wi>=ar&&wr.push([ar,wi])}return wr}function kr(te){return te==0?hn:te==1?Bt:Ue=>Gn(Ue,te)}function Ve(te){let Ue=te==0?Ot:wn,rt=te==0?(Gt,xn,Hn,wr,Wr,vt)=>{Gt.arcTo(xn,Hn,wr,Wr,vt)}:(Gt,xn,Hn,wr,Wr,vt)=>{Gt.arcTo(Hn,xn,Wr,wr,vt)},ht=te==0?(Gt,xn,Hn,wr,Wr)=>{Gt.rect(xn,Hn,wr,Wr)}:(Gt,xn,Hn,wr,Wr)=>{Gt.rect(Hn,xn,Wr,wr)};return(Gt,xn,Hn,wr,Wr,vt=0,Vt=0)=>{vt==0&&Vt==0?ht(Gt,xn,Hn,wr,Wr):(vt=bt(vt,wr/2,Wr/2),Vt=bt(Vt,wr/2,Wr/2),Ue(Gt,xn+vt,Hn),rt(Gt,xn+wr,Hn,xn+wr,Hn+Wr,vt),rt(Gt,xn+wr,Hn+Wr,xn,Hn+Wr,Vt),rt(Gt,xn,Hn+Wr,xn,Hn,Vt),rt(Gt,xn,Hn,xn+wr,Hn,vt),Gt.closePath())}}const Ot=(te,Ue,rt)=>{te.moveTo(Ue,rt)},wn=(te,Ue,rt)=>{te.moveTo(rt,Ue)},Wt=(te,Ue,rt)=>{te.lineTo(Ue,rt)},Yt=(te,Ue,rt)=>{te.lineTo(rt,Ue)},zn=Ve(0),Nr=Ve(1),si=(te,Ue,rt,ht,Gt,xn)=>{te.arc(Ue,rt,ht,Gt,xn)},Ki=(te,Ue,rt,ht,Gt,xn)=>{te.arc(rt,Ue,ht,Gt,xn)},Bi=(te,Ue,rt,ht,Gt,xn,Hn)=>{te.bezierCurveTo(Ue,rt,ht,Gt,xn,Hn)},Xi=(te,Ue,rt,ht,Gt,xn,Hn)=>{te.bezierCurveTo(rt,Ue,Gt,ht,Hn,xn)};function vo(te){return(Ue,rt,ht,Gt,xn)=>fi(Ue,rt,(Hn,wr,Wr,vt,Vt,dn,yn,ar,wi,mi,ho)=>{let{pxRound:Ao,points:Mo}=Hn,bo,ca;vt.ori==0?(bo=Ot,ca=si):(bo=wn,ca=Ki);const sa=pi(Mo.width*nt,3);let Da=(Mo.size-Mo.width)/2*nt,La=pi(Da*2,3),Ja=new Path2D,Ya=new Path2D,{left:Aa,top:ba,width:Ka,height:us}=Ue.bbox;zn(Ya,Aa-La,ba-La,Ka+La*2,us+La*2);const ii=Wo=>{if(Wr[Wo]!=null){let Ra=Ao(dn(wr[Wo],vt,mi,ar)),_a=Ao(yn(Wr[Wo],Vt,ho,wi));bo(Ja,Ra+Da,_a),ca(Ja,Ra,_a,Da,0,z*2)}};if(xn)xn.forEach(ii);else for(let Wo=ht;Wo<=Gt;Wo++)ii(Wo);return{stroke:sa>0?Ja:null,fill:Ja,clip:Ya,flags:nr|Ir}})}function ea(te){return(Ue,rt,ht,Gt,xn,Hn)=>{ht!=Gt&&(xn!=ht&&Hn!=ht&&te(Ue,rt,ht),xn!=Gt&&Hn!=Gt&&te(Ue,rt,Gt),te(Ue,rt,Hn))}}const la=ea(Wt),ss=ea(Yt);function Rs(te){const Ue=ct(te?.alignGaps,0);return(rt,ht,Gt,xn)=>fi(rt,ht,(Hn,wr,Wr,vt,Vt,dn,yn,ar,wi,mi,ho)=>{let Ao=Hn.pxRound,Mo=kt=>Ao(dn(kt,vt,mi,ar)),bo=kt=>Ao(yn(kt,Vt,ho,wi)),ca,sa;vt.ori==0?(ca=Wt,sa=la):(ca=Yt,sa=ss);const Da=vt.dir*(vt.ori==0?1:-1),La={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:nr},Ja=La.stroke;let Ya=xt,Aa=-xt,ba,Ka,us,ii=Mo(wr[Da==1?Gt:xn]),Wo=I(Wr,Gt,xn,1*Da),Ra=I(Wr,Gt,xn,-1*Da),_a=Mo(wr[Wo]),Wa=Mo(wr[Ra]),eu=!1;for(let kt=Da==1?Gt:xn;kt>=Gt&&kt<=xn;kt+=Da){let Rn=Mo(wr[kt]),jn=Wr[kt];Rn==ii?jn!=null?(Ka=bo(jn),Ya==xt&&(ca(Ja,Rn,Ka),ba=Ka),Ya=bt(Ka,Ya),Aa=at(Ka,Aa)):jn===null&&(eu=!0):(Ya!=xt&&(sa(Ja,ii,Ya,Aa,ba,Ka),us=ii),jn!=null?(Ka=bo(jn),ca(Ja,Rn,Ka),Ya=Aa=ba=Ka):(Ya=xt,Aa=-xt,jn===null&&(eu=!0)),ii=Rn)}Ya!=xt&&Ya!=Aa&&us!=ii&&sa(Ja,ii,Ya,Aa,ba,Ka);let[Ws,Ne]=Ti(rt,ht);if(Hn.fill!=null||Ws!=0){let kt=La.fill=new Path2D(Ja),Rn=Hn.fillTo(rt,ht,Hn.min,Hn.max,Ws),jn=bo(Rn);ca(kt,Wa,jn),ca(kt,_a,jn)}if(!Hn.spanGaps){let kt=[];eu&&kt.push(...hr(wr,Wr,Gt,xn,Da,Mo,Ue)),La.gaps=kt=Hn.gaps(rt,ht,Gt,xn,kt),La.clip=Qn(kt,vt.ori,ar,wi,mi,ho)}return Ne!=0&&(La.band=Ne==2?[pn(rt,ht,Gt,xn,Ja,-1),pn(rt,ht,Gt,xn,Ja,1)]:pn(rt,ht,Gt,xn,Ja,Ne)),La})}function Ds(te){const Ue=ct(te.align,1),rt=ct(te.ascDesc,!1),ht=ct(te.alignGaps,0),Gt=ct(te.extend,!1);return(xn,Hn,wr,Wr)=>fi(xn,Hn,(vt,Vt,dn,yn,ar,wi,mi,ho,Ao,Mo,bo)=>{let ca=vt.pxRound,{left:sa,width:Da}=xn.bbox,La=Ws=>ca(wi(Ws,yn,Mo,ho)),Ja=Ws=>ca(mi(Ws,ar,bo,Ao)),Ya=yn.ori==0?Wt:Yt;const Aa={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:nr},ba=Aa.stroke,Ka=yn.dir*(yn.ori==0?1:-1);wr=I(dn,wr,Wr,1),Wr=I(dn,wr,Wr,-1);let us=Ja(dn[Ka==1?wr:Wr]),ii=La(Vt[Ka==1?wr:Wr]),Wo=ii,Ra=ii;Gt&&Ue==-1&&(Ra=sa,Ya(ba,Ra,us)),Ya(ba,ii,us);for(let Ws=Ka==1?wr:Wr;Ws>=wr&&Ws<=Wr;Ws+=Ka){let Ne=dn[Ws];if(Ne==null)continue;let kt=La(Vt[Ws]),Rn=Ja(Ne);Ue==1?Ya(ba,kt,us):Ya(ba,Wo,Rn),Ya(ba,kt,Rn),us=Rn,Wo=kt}let _a=Wo;Gt&&Ue==1&&(_a=sa+Da,Ya(ba,_a,us));let[Wa,eu]=Ti(xn,Hn);if(vt.fill!=null||Wa!=0){let Ws=Aa.fill=new Path2D(ba),Ne=vt.fillTo(xn,Hn,vt.min,vt.max,Wa),kt=Ja(Ne);Ya(Ws,_a,kt),Ya(Ws,Ra,kt)}if(!vt.spanGaps){let Ws=[];Ws.push(...hr(Vt,dn,wr,Wr,Ka,La,ht));let Ne=vt.width*nt/2,kt=rt||Ue==1?Ne:-Ne,Rn=rt||Ue==-1?-Ne:Ne;Ws.forEach(jn=>{jn[0]+=kt,jn[1]+=Rn}),Aa.gaps=Ws=vt.gaps(xn,Hn,wr,Wr,Ws),Aa.clip=Qn(Ws,yn.ori,ho,Ao,Mo,bo)}return eu!=0&&(Aa.band=eu==2?[pn(xn,Hn,wr,Wr,ba,-1),pn(xn,Hn,wr,Wr,ba,1)]:pn(xn,Hn,wr,Wr,ba,eu)),Aa})}function Is(te,Ue,rt,ht,Gt,xn,Hn=xt){if(te.length>1){let wr=null;for(let Wr=0,vt=1/0;Wr<te.length;Wr++)if(Ue[Wr]!==void 0){if(wr!=null){let Vt=be(te[Wr]-te[wr]);Vt<vt&&(vt=Vt,Hn=be(rt(te[Wr],ht,Gt,xn)-rt(te[wr],ht,Gt,xn)))}wr=Wr}}return Hn}function nu(te){te=te||bi;const Ue=ct(te.size,[.6,xt,1]),rt=te.align||0,ht=te.gap||0;let Gt=te.radius;Gt=Gt==null?[0,0]:typeof Gt=="number"?[Gt,0]:Gt;const xn=Qt(Gt),Hn=1-Ue[0],wr=ct(Ue[1],xt),Wr=ct(Ue[2],1),vt=ct(te.disp,bi),Vt=ct(te.each,ar=>{}),{fill:dn,stroke:yn}=vt;return(ar,wi,mi,ho)=>fi(ar,wi,(Ao,Mo,bo,ca,sa,Da,La,Ja,Ya,Aa,ba)=>{let Ka=Ao.pxRound,us=rt,ii=ht*nt,Wo=wr*nt,Ra=Wr*nt,_a,Wa;ca.ori==0?[_a,Wa]=xn(ar,wi):[Wa,_a]=xn(ar,wi);const eu=ca.dir*(ca.ori==0?1:-1);let Ws=ca.ori==0?zn:Nr,Ne=ca.ori==0?Vt:(Xa,wa,Ga,vs,Za,$a,ns)=>{Vt(Xa,wa,Ga,Za,vs,ns,$a)},kt=ct(ar.bands,ri).find(Xa=>Xa.series[0]==wi),Rn=kt!=null?kt.dir:0,jn=Ao.fillTo(ar,wi,Ao.min,Ao.max,Rn),_r=Ka(La(jn,sa,ba,Ya)),xr,oi,ti,Ri=Aa,Fi=Ka(Ao.width*nt),Gi=!1,yo=null,Do=null,po=null,Ji=null;dn!=null&&(Fi==0||yn!=null)&&(Gi=!0,yo=dn.values(ar,wi,mi,ho),Do=new Map,new Set(yo).forEach(Xa=>{Xa!=null&&Do.set(Xa,new Path2D)}),Fi>0&&(po=yn.values(ar,wi,mi,ho),Ji=new Map,new Set(po).forEach(Xa=>{Xa!=null&&Ji.set(Xa,new Path2D)})));let{x0:Uo,size:Ia}=vt;if(Uo!=null&&Ia!=null){us=1,Mo=Uo.values(ar,wi,mi,ho),Uo.unit==2&&(Mo=Mo.map(Ga=>ar.posToVal(Ja+Ga*Aa,ca.key,!0)));let Xa=Ia.values(ar,wi,mi,ho);Ia.unit==2?oi=Xa[0]*Aa:oi=Da(Xa[0],ca,Aa,Ja)-Da(0,ca,Aa,Ja),Ri=Is(Mo,bo,Da,ca,Aa,Ja,Ri),ti=Ri-oi+ii}else Ri=Is(Mo,bo,Da,ca,Aa,Ja,Ri),ti=Ri*Hn+ii,oi=Ri-ti;ti<1&&(ti=0),Fi>=oi/2&&(Fi=0),ti<5&&(Ka=hn);let za=ti>0,Ma=Ri-ti-(za?Fi:0);oi=Ka(gn(Ma,Ra,Wo)),xr=(us==0?oi/2:us==eu?0:oi)-us*eu*((us==0?ii/2:0)+(za?Fi/2:0));const xo={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},xs=Gi?null:new Path2D;let va=null;if(kt!=null)va=ar.data[kt.series[1]];else{let{y0:Xa,y1:wa}=vt;Xa!=null&&wa!=null&&(bo=wa.values(ar,wi,mi,ho),va=Xa.values(ar,wi,mi,ho))}let Pa=_a*oi,Na=Wa*oi;for(let Xa=eu==1?mi:ho;Xa>=mi&&Xa<=ho;Xa+=eu){let wa=bo[Xa];if(wa==null)continue;if(va!=null){let Lu=va[Xa]??0;if(wa-Lu==0)continue;_r=La(Lu,sa,ba,Ya)}let Ga=ca.distr!=2||vt!=null?Mo[Xa]:Xa,vs=Da(Ga,ca,Aa,Ja),Za=La(ct(wa,jn),sa,ba,Ya),$a=Ka(vs-xr),ns=Ka(at(Za,_r)),uu=Ka(bt(Za,_r)),Mu=ns-uu;if(wa!=null){let Lu=wa<0?Na:Pa,ju=wa<0?Pa:Na;Gi?(Fi>0&&po[Xa]!=null&&Ws(Ji.get(po[Xa]),$a,uu+Qe(Fi/2),oi,at(0,Mu-Fi),Lu,ju),yo[Xa]!=null&&Ws(Do.get(yo[Xa]),$a,uu+Qe(Fi/2),oi,at(0,Mu-Fi),Lu,ju)):Ws(xs,$a,uu+Qe(Fi/2),oi,at(0,Mu-Fi),Lu,ju),Ne(ar,wi,Xa,$a-Fi/2,uu,oi+Fi,Mu)}}return Fi>0?xo.stroke=Gi?Ji:xs:Gi||(xo._fill=Ao.width==0?Ao._fill:Ao._stroke??Ao._fill,xo.width=0),xo.fill=Gi?Do:xs,xo})}function Ls(te,Ue){const rt=ct(Ue?.alignGaps,0);return(ht,Gt,xn,Hn)=>fi(ht,Gt,(wr,Wr,vt,Vt,dn,yn,ar,wi,mi,ho,Ao)=>{let Mo=wr.pxRound,bo=_a=>Mo(yn(_a,Vt,ho,wi)),ca=_a=>Mo(ar(_a,dn,Ao,mi)),sa,Da,La;Vt.ori==0?(sa=Ot,La=Wt,Da=Bi):(sa=wn,La=Yt,Da=Xi);const Ja=Vt.dir*(Vt.ori==0?1:-1);xn=I(vt,xn,Hn,1),Hn=I(vt,xn,Hn,-1);let Ya=bo(Wr[Ja==1?xn:Hn]),Aa=Ya,ba=[],Ka=[];for(let _a=Ja==1?xn:Hn;_a>=xn&&_a<=Hn;_a+=Ja)if(vt[_a]!=null){let eu=Wr[_a],Ws=bo(eu);ba.push(Aa=Ws),Ka.push(ca(vt[_a]))}const us={stroke:te(ba,Ka,sa,La,Da,Mo),fill:null,clip:null,band:null,gaps:null,flags:nr},ii=us.stroke;let[Wo,Ra]=Ti(ht,Gt);if(wr.fill!=null||Wo!=0){let _a=us.fill=new Path2D(ii),Wa=wr.fillTo(ht,Gt,wr.min,wr.max,Wo),eu=ca(Wa);La(_a,Aa,eu),La(_a,Ya,eu)}if(!wr.spanGaps){let _a=[];_a.push(...hr(Wr,vt,xn,Hn,Ja,bo,rt)),us.gaps=_a=wr.gaps(ht,Gt,xn,Hn,_a),us.clip=Qn(_a,Vt.ori,wi,mi,ho,Ao)}return Ra!=0&&(us.band=Ra==2?[pn(ht,Gt,xn,Hn,ii,-1),pn(ht,Gt,xn,Hn,ii,1)]:pn(ht,Gt,xn,Hn,ii,Ra)),us})}function gu(te){return Ls(Us,te)}function Us(te,Ue,rt,ht,Gt,xn){const Hn=te.length;if(Hn<2)return null;const wr=new Path2D;if(rt(wr,te[0],Ue[0]),Hn==2)ht(wr,te[1],Ue[1]);else{let Wr=Array(Hn),vt=Array(Hn-1),Vt=Array(Hn-1),dn=Array(Hn-1);for(let yn=0;yn<Hn-1;yn++)Vt[yn]=Ue[yn+1]-Ue[yn],dn[yn]=te[yn+1]-te[yn],vt[yn]=Vt[yn]/dn[yn];Wr[0]=vt[0];for(let yn=1;yn<Hn-1;yn++)vt[yn]===0||vt[yn-1]===0||vt[yn-1]>0!=vt[yn]>0?Wr[yn]=0:(Wr[yn]=3*(dn[yn-1]+dn[yn])/((2*dn[yn]+dn[yn-1])/vt[yn-1]+(dn[yn]+2*dn[yn-1])/vt[yn]),isFinite(Wr[yn])||(Wr[yn]=0));Wr[Hn-1]=vt[Hn-2];for(let yn=0;yn<Hn-1;yn++)Gt(wr,te[yn]+dn[yn]/3,Ue[yn]+Wr[yn]*dn[yn]/3,te[yn+1]-dn[yn]/3,Ue[yn+1]-Wr[yn+1]*dn[yn]/3,te[yn+1],Ue[yn+1])}return wr}const Iu=new Set;function Wu(){for(let te of Iu)te.syncRect(!0)}Se&&(At(Te,Ee,Wu),At(Re,Ee,Wu,!0),At(pe,Ee,()=>{Le.pxRatio=nt}));const rl=Rs(),Hu=vo();function Ts(te,Ue,rt,ht){return(ht?[te[0],te[1]].concat(te.slice(2)):[te[0]].concat(te.slice(1))).map((xn,Hn)=>fl(xn,Hn,Ue,rt))}function Al(te,Ue){return te.map((rt,ht)=>ht==0?null:un({},Ue,rt))}function fl(te,Ue,rt,ht){return un({},Ue==0?rt:ht,te)}function Rl(te,Ue,rt){return Ue==null?hi:[Ue,rt]}const Bu=Rl;function Mn(te,Ue,rt){return Ue==null?hi:_t(Ue,rt,Fe,!0)}function en(te,Ue,rt,ht){return Ue==null?hi:De(Ue,rt,te.scales[ht].log,!1)}const sn=en;function qt(te,Ue,rt,ht){return Ue==null?hi:He(Ue,rt,te.scales[ht].log,!1)}const In=qt;function Kn(te,Ue,rt,ht,Gt){let xn=at(Xe(te),Xe(Ue)),Hn=Ue-te,wr=ee(Gt/ht*Hn,rt);do{let Wr=rt[wr],vt=ht*Wr/Hn;if(vt>=Gt&&xn+(Wr<5?yi.get(Wr):0)<=17)return[Wr,vt]}while(++wr<rt.length);return[0,0]}function Fr(te){let Ue,rt;return te=te.replace(/(\d+)px/,(ht,Gt)=>(Ue=Bt((rt=+Gt)*nt))+"px"),[te,Ue,rt]}function ci(te){te.show&&[te.font,te.labelFont].forEach(Ue=>{let rt=pi(Ue[2]*nt,1);Ue[0]=Ue[0].replace(/[0-9.]+px/,rt+"px"),Ue[1]=rt})}function Le(te,Ue,rt){const ht={mode:ct(te.mode,1)},Gt=ht.mode;function xn(Vr,Ni){return((Ni.distr==3?Ct(Vr>0?Vr:Ni.clamp(ht,Vr,Ni.min,Ni.max,Ni.key)):Ni.distr==4?Zn(Vr,Ni.asinh):Vr)-Ni._min)/(Ni._max-Ni._min)}function Hn(Vr,Ni,fo,Po){let pa=xn(Vr,Ni);return Po+fo*(Ni.dir==-1?1-pa:pa)}function wr(Vr,Ni,fo,Po){let pa=xn(Vr,Ni);return Po+fo*(Ni.dir==-1?pa:1-pa)}function Wr(Vr,Ni,fo,Po){return Ni.ori==0?Hn(Vr,Ni,fo,Po):wr(Vr,Ni,fo,Po)}ht.valToPosH=Hn,ht.valToPosV=wr;let vt=!1;ht.status=0;const Vt=ht.root=Y(s);if(te.id!=null&&(Vt.id=te.id),Rt(Vt,te.class),te.title){let Vr=Y(f,Vt);Vr.textContent=te.title}const dn=F("canvas"),yn=ht.ctx=dn.getContext("2d"),ar=Y(p,Vt);At("click",ar,Vr=>{Vr.target===mi&&(rc!=sd||Pc!=ud)&&Qc.click(ht,Vr)},!0);const wi=ht.under=Y(v,ar);ar.appendChild(dn);const mi=ht.over=Y(h,ar);te=Gr(te);const ho=+ct(te.pxAlign,1),Ao=kr(ho);(te.plugins||[]).forEach(Vr=>{Vr.opts&&(te=Vr.opts(ht,te)||te)});const Mo=te.ms||.001,bo=ht.series=Gt==1?Ts(te.series||[],Lt,mr,!1):Al(te.series||[null],fr),ca=ht.axes=Ts(te.axes||[],B,co,!0),sa=ht.scales={},Da=ht.bands=te.bands||[];Da.forEach(Vr=>{Vr.fill=Qt(Vr.fill||null),Vr.dir=ct(Vr.dir,-1)});const La=Gt==2?bo[1].facets[0].scale:bo[0].scale,Ja={axes:jd,series:ad},Ya=(te.drawOrder||["axes","series"]).map(Vr=>Ja[Vr]);function Aa(Vr){let Ni=sa[Vr];if(Ni==null){let fo=(te.scales||bi)[Vr]||bi;if(fo.from!=null)Aa(fo.from),sa[Vr]=un({},sa[fo.from],fo,{key:Vr});else{Ni=sa[Vr]=un({},Vr==La?Rr:ai,fo),Ni.key=Vr;let Po=Ni.time,pa=Ni.range,Va=Si(pa);if((Vr!=La||Gt==2&&!Po)&&(Va&&(pa[0]==null||pa[1]==null)&&(pa={min:pa[0]==null?ze:{mode:1,hard:pa[0],soft:pa[0]},max:pa[1]==null?ze:{mode:1,hard:pa[1],soft:pa[1]}},Va=!1),!Va&&Pi(pa))){let fs=pa;pa=(zs,cu,Ru)=>cu==null?hi:_t(cu,Ru,fs)}Ni.range=Qt(pa||(Po?Bu:Vr==La?Ni.distr==3?sn:Ni.distr==4?In:Rl:Ni.distr==3?en:Ni.distr==4?qt:Mn)),Ni.auto=Qt(Va?!1:Ni.auto),Ni.clamp=Qt(Ni.clamp||yr),Ni._min=Ni._max=null}}}Aa("x"),Aa("y"),Gt==1&&bo.forEach(Vr=>{Aa(Vr.scale)}),ca.forEach(Vr=>{Aa(Vr.scale)});for(let Vr in te.scales)Aa(Vr);const ba=sa[La],Ka=ba.distr;let us,ii;ba.ori==0?(Rt(Vt,m),us=Hn,ii=wr):(Rt(Vt,u),us=wr,ii=Hn);const Wo={};for(let Vr in sa){let Ni=sa[Vr];(Ni.min!=null||Ni.max!=null)&&(Wo[Vr]={min:Ni.min,max:Ni.max},Ni.min=Ni.max=null)}const Ra=te.tzDate||(Vr=>new Date(Bt(Vr/Mo))),_a=te.fmtDate||gi,Wa=Mo==1?Lr(Ra):Di(Ra),eu=Go(Ra,wo(Mo==1?Dr:Zi,_a)),Ws=_n(Ra,yt(on,_a)),Ne=[],kt=ht.legend=un({},Er,te.legend),Rn=kt.show,jn=kt.markers;kt.idxs=Ne,jn.width=Qt(jn.width),jn.dash=Qt(jn.dash),jn.stroke=Qt(jn.stroke),jn.fill=Qt(jn.fill);let _r,xr,oi,ti=[],Ri=[],Fi,Gi=!1,yo={};if(kt.live){const Vr=bo[1]?bo[1].values:null;Gi=Vr!=null,Fi=Gi?Vr(ht,1,0):{_:0};for(let Ni in Fi)yo[Ni]=ye}if(Rn)if(_r=F("table",R,Vt),oi=F("tbody",null,_r),kt.mount(ht,_r),Gi){xr=F("thead",null,_r,oi);let Vr=F("tr",null,xr);F("th",null,Vr);for(var Do in Fi)F("th",A,Vr).textContent=Do}else Rt(_r,D),kt.live&&Rt(_r,M);const po={show:!0},Ji={show:!1};function Uo(Vr,Ni){if(Ni==0&&(Gi||!kt.live||Gt==2))return hi;let fo=[],Po=F("tr",P,oi,oi.childNodes[Ni]);Rt(Po,Vr.class),Vr.show||Rt(Po,b);let pa=F("th",null,Po);if(jn.show){let zs=Y(T,pa);if(Ni>0){let cu=jn.width(ht,Ni);cu&&(zs.style.border=cu+"px "+jn.dash(ht,Ni)+" "+jn.stroke(ht,Ni)),zs.style.background=jn.fill(ht,Ni)}}let Va=Y(A,pa);Va.textContent=Vr.label,Ni>0&&(jn.show||(Va.style.color=Vr.width>0?jn.stroke(ht,Ni):jn.fill(ht,Ni)),za("click",pa,zs=>{if(Hs._lock)return;Pl(zs);let cu=bo.indexOf(Vr);if((zs.ctrlKey||zs.metaKey)!=kt.isolate){let Ru=bo.some((Vs,Ou)=>Ou>0&&Ou!=cu&&Vs.show);bo.forEach((Vs,Ou)=>{Ou>0&&kf(Ou,Ru?Ou==cu?po:Ji:po,!0,Ol.setSeries)})}else kf(cu,{show:!Vr.show},!0,Ol.setSeries)},!1),Kl&&za(H,pa,zs=>{Hs._lock||(Pl(zs),kf(bo.indexOf(Vr),ys,!0,Ol.setSeries))},!1));for(var fs in Fi){let zs=F("td",j,Po);zs.textContent="--",fo.push(zs)}return[Po,fo]}const Ia=new Map;function za(Vr,Ni,fo,Po=!0){const pa=Ia.get(Ni)||{},Va=Hs.bind[Vr](ht,Ni,fo,Po);Va&&(At(Vr,Ni,pa[Vr]=Va),Ia.set(Ni,pa))}function Ma(Vr,Ni,fo){const Po=Ia.get(Ni)||{};for(let pa in Po)(Vr==null||pa==Vr)&&(et(pa,Ni,Po[pa]),delete Po[pa]);Vr==null&&Ia.delete(Ni)}let xo=0,xs=0,va=0,Pa=0,Na=0,Xa=0,wa=Na,Ga=Xa,vs=va,Za=Pa,$a=0,ns=0,uu=0,Mu=0;ht.bbox={};let Lu=!1,ju=!1,pl=!1,pu=!1,ks=!1,su=!1;function Au(Vr,Ni,fo){(fo||Vr!=ht.width||Ni!=ht.height)&&wl(Vr,Ni),Jf(!1),pl=!0,ju=!0,nf()}function wl(Vr,Ni){ht.width=xo=va=Vr,ht.height=xs=Pa=Ni,Na=Xa=0,il(),_l();let fo=ht.bbox;$a=fo.left=Gn(Na*nt,.5),ns=fo.top=Gn(Xa*nt,.5),uu=fo.width=Gn(va*nt,.5),Mu=fo.height=Gn(Pa*nt,.5)}const bu=3;function Ul(){let Vr=!1,Ni=0;for(;!Vr;){Ni++;let fo=jf(Ni),Po=Ml(Ni);Vr=Ni==bu||fo&&Po,Vr||(wl(ht.width,ht.height),ju=!0)}}function Wl({width:Vr,height:Ni}){Au(Vr,Ni)}ht.setSize=Wl;function il(){let Vr=!1,Ni=!1,fo=!1,Po=!1;ca.forEach((pa,Va)=>{if(pa.show&&pa._show){let{side:fs,_size:zs}=pa,cu=fs%2,Ru=pa.label!=null?pa.labelSize:0,Vs=zs+Ru;Vs>0&&(cu?(va-=Vs,fs==3?(Na+=Vs,Po=!0):fo=!0):(Pa-=Vs,fs==0?(Xa+=Vs,Vr=!0):Ni=!0))}}),Dn[0]=Vr,Dn[1]=fo,Dn[2]=Ni,Dn[3]=Po,va-=Zo[1]+Zo[3],Na+=Zo[3],Pa-=Zo[2]+Zo[0],Xa+=Zo[0]}function _l(){let Vr=Na+va,Ni=Xa+Pa,fo=Na,Po=Xa;function pa(Va,fs){switch(Va){case 1:return Vr+=fs,Vr-fs;case 2:return Ni+=fs,Ni-fs;case 3:return fo-=fs,fo+fs;case 0:return Po-=fs,Po+fs}}ca.forEach((Va,fs)=>{if(Va.show&&Va._show){let zs=Va.side;Va._pos=pa(zs,Va._size),Va.label!=null&&(Va._lpos=pa(zs,Va.labelSize))}})}const Hs=ht.cursor=un({},Fo,{drag:{y:Gt==2}},te.cursor);if(Hs.dataIdx==null){let Vr=Hs.hover,Ni=Vr.skip=new Set(Vr.skip??[]);Ni.add(void 0);let fo=Vr.prox=Qt(Vr.prox),Po=Vr.bias??=0;Hs.dataIdx=(pa,Va,fs,zs)=>{if(Va==0)return fs;let cu=fs,Ru=fo(pa,Va,fs,zs)??xt,Vs=Ru>=0&&Ru<xt,Ou=ba.ori==0?va:Pa,iu=Hs.left,Uu=Ue[0],kl=Ue[Va];if(Ni.has(kl[fs])){cu=null;let gl=null,ol=null,El;if(Po==0||Po==-1)for(El=fs;gl==null&&El-- >0;)Ni.has(kl[El])||(gl=El);if(Po==0||Po==1)for(El=fs;ol==null&&El++<kl.length;)Ni.has(kl[El])||(ol=El);if(gl!=null||ol!=null)if(Vs){let Zc=gl==null?-1/0:us(Uu[gl],ba,Ou,0),mu=ol==null?1/0:us(Uu[ol],ba,Ou,0),Ps=iu-Zc,Kc=mu-iu;Ps<=Kc?Ps<=Ru&&(cu=gl):Kc<=Ru&&(cu=ol)}else cu=ol==null?gl:gl==null?ol:fs-gl<=ol-fs?gl:ol}else Vs&&be(iu-us(Uu[fs],ba,Ou,0))>Ru&&(cu=null);return cu}}const Pl=Vr=>{Hs.event=Vr};Hs.idxs=Ne,Hs._lock=!1;let Ql=Hs.points;Ql.show=Qt(Ql.show),Ql.size=Qt(Ql.size),Ql.stroke=Qt(Ql.stroke),Ql.width=Qt(Ql.width),Ql.fill=Qt(Ql.fill);const ll=ht.focus=un({},te.focus||{alpha:.3},Hs.focus),Kl=ll.prox>=0;let ia=[null],Sa=[null],Ea=[null];function rs(Vr,Ni){if(Ni>0){let fo=Hs.points.show(ht,Ni);if(fo)return Rt(fo,O),Rt(fo,Vr.class),ke(fo,-10,-10,va,Pa),mi.insertBefore(fo,ia[Ni]),fo}}function Ns(Vr,Ni){if(Gt==1||Ni>0){let fo=Gt==1&&sa[Vr.scale].time,Po=Vr.value;Vr.value=fo?Ai(Po)?_n(Ra,yt(Po,_a)):Po||Ws:Po||zi,Vr.label=Vr.label||(fo?dt:Pe)}if(Ni>0){Vr.width=Vr.width==null?1:Vr.width,Vr.paths=Vr.paths||rl||an,Vr.fillTo=Qt(Vr.fillTo||Oe),Vr.pxAlign=+ct(Vr.pxAlign,ho),Vr.pxRound=kr(Vr.pxAlign),Vr.stroke=Qt(Vr.stroke||null),Vr.fill=Qt(Vr.fill||null),Vr._stroke=Vr._fill=Vr._paths=Vr._focus=null;let fo=Xo(at(1,Vr.width),1),Po=Vr.points=un({},{size:fo,width:at(1,fo*.2),stroke:Vr.stroke,space:fo*2,paths:Hu,_stroke:null,_fill:null},Vr.points);Po.show=Qt(Po.show),Po.filter=Qt(Po.filter),Po.fill=Qt(Po.fill),Po.stroke=Qt(Po.stroke),Po.paths=Qt(Po.paths),Po.pxAlign=Vr.pxAlign}if(Rn){let fo=Uo(Vr,Ni);ti.splice(Ni,0,fo[0]),Ri.splice(Ni,0,fo[1]),kt.values.push(null)}if(Hs.show){Ne.splice(Ni,0,null);let fo=rs(Vr,Ni);fo!=null&&(ia.splice(Ni,0,fo),Sa.splice(Ni,0,0),Ea.splice(Ni,0,0))}xu("addSeries",Ni)}function Xt(Vr,Ni){Ni=Ni??bo.length,Vr=Gt==1?fl(Vr,Ni,Lt,mr):fl(Vr,Ni,null,fr),bo.splice(Ni,0,Vr),Ns(bo[Ni],Ni)}ht.addSeries=Xt;function bn(Vr){if(bo.splice(Vr,1),Rn){kt.values.splice(Vr,1),Ri.splice(Vr,1);let Ni=ti.splice(Vr,1)[0];Ma(null,Ni.firstChild),Ni.remove()}Hs.show&&(Ne.splice(Vr,1),ia.length>1&&(ia.splice(Vr,1)[0].remove(),Sa.splice(Vr,1),Ea.splice(Vr,1))),xu("delSeries",Vr)}ht.delSeries=bn;const Dn=[!1,!1,!1,!1];function Ii(Vr,Ni){if(Vr._show=Vr.show,Vr.show){let fo=Vr.side%2,Po=sa[Vr.scale];Po==null&&(Vr.scale=fo?bo[1].scale:La,Po=sa[Vr.scale]);let pa=Po.time;Vr.size=Qt(Vr.size),Vr.space=Qt(Vr.space),Vr.rotate=Qt(Vr.rotate),Si(Vr.incrs)&&Vr.incrs.forEach(fs=>{!yi.has(fs)&&yi.set(fs,jr(fs))}),Vr.incrs=Qt(Vr.incrs||(Po.distr==2?So:pa?Mo==1?rn:li:gr)),Vr.splits=Qt(Vr.splits||(pa&&Po.distr==1?Wa:Po.distr==3?ut:Po.distr==4?zt:$e)),Vr.stroke=Qt(Vr.stroke),Vr.grid.stroke=Qt(Vr.grid.stroke),Vr.ticks.stroke=Qt(Vr.ticks.stroke),Vr.border.stroke=Qt(Vr.border.stroke);let Va=Vr.values;Vr.values=Si(Va)&&!Si(Va[0])?Qt(Va):pa?Si(Va)?Go(Ra,wo(Va,_a)):Ai(Va)?Ko(Ra,Va):Va||eu:Va||Pt,Vr.filter=Qt(Vr.filter||(Po.distr>=3&&Po.log==10?ei:Po.distr==3&&Po.log==2?Ci:cn)),Vr.font=Fr(Vr.font),Vr.labelFont=Fr(Vr.labelFont),Vr._size=Vr.size(ht,null,Ni,0),Vr._space=Vr._rotate=Vr._incrs=Vr._found=Vr._splits=Vr._values=null,Vr._size>0&&(Dn[Ni]=!0,Vr._el=Y(d,ar))}}function ko(Vr,Ni,fo,Po){let[pa,Va,fs,zs]=fo,cu=Ni%2,Ru=0;return cu==0&&(zs||Va)&&(Ru=Ni==0&&!pa||Ni==2&&!fs?Bt(B.size/3):0),cu==1&&(pa||fs)&&(Ru=Ni==1&&!Va||Ni==3&&!zs?Bt(co.size/2):0),Ru}const fa=ht.padding=(te.padding||[ko,ko,ko,ko]).map(Vr=>Qt(ct(Vr,ko))),Zo=ht._padding=fa.map((Vr,Ni)=>Vr(ht,Ni,Dn,0));let Fa,Ua=null,ms=null;const Fs=Gt==1?bo[0].idxs:null;let ws=null,fu=!1;function wu(Vr,Ni){if(Ue=Vr??[],ht.data=ht._data=Ue,Gt==2){Fa=0;for(let fo=1;fo<bo.length;fo++)Fa+=Ue[fo][0].length}else{Ue.length==0&&(ht.data=ht._data=Ue=[[]]),ws=Ue[0],Fa=ws.length;let fo=Ue;if(Ka==2){fo=Ue.slice();let Po=fo[0]=Array(Fa);for(let pa=0;pa<Fa;pa++)Po[pa]=pa}ht._data=Ue=fo}if(Jf(!0),xu("setData"),Ka==2&&(pl=!0),Ni!==!1){let fo=ba;fo.auto(ht,fu)?Du():cf(La,fo.min,fo.max),pu=pu||Hs.left>=0,su=!0,nf()}}ht.setData=wu;function Du(){fu=!0;let Vr,Ni;Gt==1&&(Fa>0?(Ua=Fs[0]=0,ms=Fs[1]=Fa-1,Vr=Ue[0][Ua],Ni=Ue[0][ms],Ka==2?(Vr=Ua,Ni=ms):Vr==Ni&&(Ka==3?[Vr,Ni]=De(Vr,Vr,ba.log,!1):Ka==4?[Vr,Ni]=He(Vr,Vr,ba.log,!1):ba.time?Ni=Vr+Bt(86400/Mo):[Vr,Ni]=_t(Vr,Ni,Fe,!0))):(Ua=Fs[0]=Vr=null,ms=Fs[1]=Ni=null)),cf(La,Vr,Ni)}let zu,Il,bc,Gl,oc,ac,jl,nc,Fl,Zu;function Ac(Vr,Ni,fo,Po,pa,Va){Vr??=ve,fo??=ri,Po??="butt",pa??=ve,Va??="round",Vr!=zu&&(yn.strokeStyle=zu=Vr),pa!=Il&&(yn.fillStyle=Il=pa),Ni!=bc&&(yn.lineWidth=bc=Ni),Va!=oc&&(yn.lineJoin=oc=Va),Po!=ac&&(yn.lineCap=ac=Po),fo!=Gl&&yn.setLineDash(Gl=fo)}function tf(Vr,Ni,fo,Po){Ni!=Il&&(yn.fillStyle=Il=Ni),Vr!=jl&&(yn.font=jl=Vr),fo!=nc&&(yn.textAlign=nc=fo),Po!=Fl&&(yn.textBaseline=Fl=Po)}function Jl(Vr,Ni,fo,Po,pa=0){if(Po.length>0&&Vr.auto(ht,fu)&&(Ni==null||Ni.min==null)){let Va=ct(Ua,0),fs=ct(ms,Po.length-1),zs=fo.min==null?Vr.distr==3?ue(Po,Va,fs):K(Po,Va,fs,pa):[fo.min,fo.max];Vr.min=bt(Vr.min,fo.min=zs[0]),Vr.max=at(Vr.max,fo.max=zs[1])}}const ml={min:null,max:null};function vl(){for(let Po in sa){let pa=sa[Po];Wo[Po]==null&&(pa.min==null||Wo[La]!=null&&pa.auto(ht,fu))&&(Wo[Po]=ml)}for(let Po in sa){let pa=sa[Po];Wo[Po]==null&&pa.from!=null&&Wo[pa.from]!=null&&(Wo[Po]=ml)}Wo[La]!=null&&Jf(!0);let Vr={};for(let Po in Wo){let pa=Wo[Po];if(pa!=null){let Va=Vr[Po]=Gr(sa[Po],io);if(pa.min!=null)un(Va,pa);else if(Po!=La||Gt==2)if(Fa==0&&Va.from==null){let fs=Va.range(ht,null,null,Po);Va.min=fs[0],Va.max=fs[1]}else Va.min=xt,Va.max=-xt}}if(Fa>0){bo.forEach((Po,pa)=>{if(Gt==1){let Va=Po.scale,fs=Wo[Va];if(fs==null)return;let zs=Vr[Va];if(pa==0){let cu=zs.range(ht,zs.min,zs.max,Va);zs.min=cu[0],zs.max=cu[1],Ua=ee(zs.min,Ue[0]),ms=ee(zs.max,Ue[0]),ms-Ua>1&&(Ue[0][Ua]<zs.min&&Ua++,Ue[0][ms]>zs.max&&ms--),Po.min=ws[Ua],Po.max=ws[ms]}else Po.show&&Po.auto&&Jl(zs,fs,Po,Ue[pa],Po.sorted);Po.idxs[0]=Ua,Po.idxs[1]=ms}else if(pa>0&&Po.show&&Po.auto){let[Va,fs]=Po.facets,zs=Va.scale,cu=fs.scale,[Ru,Vs]=Ue[pa],Ou=Vr[zs],iu=Vr[cu];Ou!=null&&Jl(Ou,Wo[zs],Va,Ru,Va.sorted),iu!=null&&Jl(iu,Wo[cu],fs,Vs,fs.sorted),Po.min=fs.min,Po.max=fs.max}});for(let Po in Vr){let pa=Vr[Po],Va=Wo[Po];if(pa.from==null&&(Va==null||Va.min==null)){let fs=pa.range(ht,pa.min==xt?null:pa.min,pa.max==-xt?null:pa.max,Po);pa.min=fs[0],pa.max=fs[1]}}}for(let Po in Vr){let pa=Vr[Po];if(pa.from!=null){let Va=Vr[pa.from];if(Va.min==null)pa.min=pa.max=null;else{let fs=pa.range(ht,Va.min,Va.max,Po);pa.min=fs[0],pa.max=fs[1]}}}let Ni={},fo=!1;for(let Po in Vr){let pa=Vr[Po],Va=sa[Po];if(Va.min!=pa.min||Va.max!=pa.max){Va.min=pa.min,Va.max=pa.max;let fs=Va.distr;Va._min=fs==3?Ct(Va.min):fs==4?Zn(Va.min,Va.asinh):Va.min,Va._max=fs==3?Ct(Va.max):fs==4?Zn(Va.max,Va.asinh):Va.max,Ni[Po]=fo=!0}}if(fo){bo.forEach((Po,pa)=>{Gt==2?pa>0&&Ni.y&&(Po._paths=null):Ni[Po.scale]&&(Po._paths=null)});for(let Po in Ni)pl=!0,xu("setScale",Po);Hs.show&&Hs.left>=0&&(pu=su=!0)}for(let Po in Wo)Wo[Po]=null}function Vu(Vr){let Ni=gn(Ua-1,0,Fa-1),fo=gn(ms+1,0,Fa-1);for(;Vr[Ni]==null&&Ni>0;)Ni--;for(;Vr[fo]==null&&fo<Fa-1;)fo++;return[Ni,fo]}function ad(){Fa>0&&(bo.forEach((Vr,Ni)=>{if(Ni>0&&Vr.show&&(Bc(Ni,!1),Bc(Ni,!0),Vr._paths==null)){Zu!=Vr.alpha&&(yn.globalAlpha=Zu=Vr.alpha);let fo=Gt==2?[0,Ue[Ni][0].length-1]:Vu(Ue[Ni]);Vr._paths=Vr.paths(ht,Ni,fo[0],fo[1]),Zu!=1&&(yn.globalAlpha=Zu=1)}}),bo.forEach((Vr,Ni)=>{if(Ni>0&&Vr.show){Zu!=Vr.alpha&&(yn.globalAlpha=Zu=Vr.alpha),Vr._paths!=null&&hf(Ni,!1);{let fo=Vr._paths!=null?Vr._paths.gaps:null,Po=Vr.points.show(ht,Ni,Ua,ms,fo),pa=Vr.points.filter(ht,Ni,Po,fo);(Po||pa)&&(Vr.points._paths=Vr.points.paths(ht,Ni,Ua,ms,pa),hf(Ni,!0))}Zu!=1&&(yn.globalAlpha=Zu=1),xu("drawSeries",Ni)}}))}function Bc(Vr,Ni){let fo=Ni?bo[Vr].points:bo[Vr];fo._stroke=fo.stroke(ht,Vr),fo._fill=fo.fill(ht,Vr)}function hf(Vr,Ni){let fo=Ni?bo[Vr].points:bo[Vr],{stroke:Po,fill:pa,clip:Va,flags:fs,_stroke:zs=fo._stroke,_fill:cu=fo._fill,_width:Ru=fo.width}=fo._paths;Ru=pi(Ru*nt,3);let Vs=null,Ou=Ru%2/2;Ni&&cu==null&&(cu=Ru>0?"#fff":zs);let iu=fo.pxAlign==1&&Ou>0;if(iu&&yn.translate(Ou,Ou),!Ni){let Uu=$a-Ru/2,kl=ns-Ru/2,gl=uu+Ru,ol=Mu+Ru;Vs=new Path2D,Vs.rect(Uu,kl,gl,ol)}Ni?_c(zs,Ru,fo.dash,fo.cap,cu,Po,pa,fs,Va):Vc(Vr,zs,Ru,fo.dash,fo.cap,cu,Po,pa,fs,Vs,Va),iu&&yn.translate(-Ou,-Ou)}function Vc(Vr,Ni,fo,Po,pa,Va,fs,zs,cu,Ru,Vs){let Ou=!1;cu!=0&&Da.forEach((iu,Uu)=>{if(iu.series[0]==Vr){let kl=bo[iu.series[1]],gl=Ue[iu.series[1]],ol=(kl._paths||bi).band;Si(ol)&&(ol=iu.dir==1?ol[0]:ol[1]);let El,Zc=null;kl.show&&ol&&Ge(gl,Ua,ms)?(Zc=iu.fill(ht,Uu)||Va,El=kl._paths.clip):ol=null,_c(Ni,fo,Po,pa,Zc,fs,zs,cu,Ru,Vs,El,ol),Ou=!0}}),Ou||_c(Ni,fo,Po,pa,Va,fs,zs,cu,Ru,Vs)}const Od=nr|Ir;function _c(Vr,Ni,fo,Po,pa,Va,fs,zs,cu,Ru,Vs,Ou){Ac(Vr,Ni,fo,Po,pa),(cu||Ru||Ou)&&(yn.save(),cu&&yn.clip(cu),Ru&&yn.clip(Ru)),Ou?(zs&Od)==Od?(yn.clip(Ou),Vs&&yn.clip(Vs),Zl(pa,fs),Xc(Vr,Va,Ni)):zs&Ir?(Zl(pa,fs),yn.clip(Ou),Xc(Vr,Va,Ni)):zs&nr&&(yn.save(),yn.clip(Ou),Vs&&yn.clip(Vs),Zl(pa,fs),yn.restore(),Xc(Vr,Va,Ni)):(Zl(pa,fs),Xc(Vr,Va,Ni)),(cu||Ru||Ou)&&yn.restore()}function Xc(Vr,Ni,fo){fo>0&&(Ni instanceof Map?Ni.forEach((Po,pa)=>{yn.strokeStyle=zu=pa,yn.stroke(Po)}):Ni!=null&&Vr&&yn.stroke(Ni))}function Zl(Vr,Ni){Ni instanceof Map?Ni.forEach((fo,Po)=>{yn.fillStyle=Il=Po,yn.fill(fo)}):Ni!=null&&Vr&&yn.fill(Ni)}function qd(Vr,Ni,fo,Po){let pa=ca[Vr],Va;if(Po<=0)Va=[0,0];else{let fs=pa._space=pa.space(ht,Vr,Ni,fo,Po),zs=pa._incrs=pa.incrs(ht,Vr,Ni,fo,Po,fs);Va=Kn(Ni,fo,zs,Po,fs)}return pa._found=Va}function Kd(Vr,Ni,fo,Po,pa,Va,fs,zs,cu,Ru){let Vs=fs%2/2;ho==1&&yn.translate(Vs,Vs),Ac(zs,fs,cu,Ru,zs),yn.beginPath();let Ou,iu,Uu,kl,gl=pa+(Po==0||Po==3?-Va:Va);fo==0?(iu=pa,kl=gl):(Ou=pa,Uu=gl);for(let ol=0;ol<Vr.length;ol++)Ni[ol]!=null&&(fo==0?Ou=Uu=Vr[ol]:iu=kl=Vr[ol],yn.moveTo(Ou,iu),yn.lineTo(Uu,kl));yn.stroke(),ho==1&&yn.translate(-Vs,-Vs)}function jf(Vr){let Ni=!0;return ca.forEach((fo,Po)=>{if(!fo.show)return;let pa=sa[fo.scale];if(pa.min==null){fo._show&&(Ni=!1,fo._show=!1,Jf(!1));return}else fo._show||(Ni=!1,fo._show=!0,Jf(!1));let Va=fo.side,fs=Va%2,{min:zs,max:cu}=pa,[Ru,Vs]=qd(Po,zs,cu,fs==0?va:Pa);if(Vs==0)return;let Ou=pa.distr==2,iu=fo._splits=fo.splits(ht,Po,zs,cu,Ru,Vs,Ou),Uu=pa.distr==2?iu.map(El=>ws[El]):iu,kl=pa.distr==2?ws[iu[1]]-ws[iu[0]]:Ru,gl=fo._values=fo.values(ht,fo.filter(ht,Uu,Po,Vs,kl),Po,Vs,kl);fo._rotate=Va==2?fo.rotate(ht,gl,Po,Vs):0;let ol=fo._size;fo._size=nn(fo.size(ht,gl,Po,Vr)),ol!=null&&fo._size!=ol&&(Ni=!1)}),Ni}function Ml(Vr){let Ni=!0;return fa.forEach((fo,Po)=>{let pa=fo(ht,Po,Dn,Vr);pa!=Zo[Po]&&(Ni=!1),Zo[Po]=pa}),Ni}function jd(){for(let Vr=0;Vr<ca.length;Vr++){let Ni=ca[Vr];if(!Ni.show||!Ni._show)continue;let fo=Ni.side,Po=fo%2,pa,Va,fs=Ni.stroke(ht,Vr),zs=fo==0||fo==3?-1:1;if(Ni.label){let $f=Ni.labelGap*zs,Dc=Bt((Ni._lpos+$f)*nt);tf(Ni.labelFont[0],fs,"center",fo==2?N:W),yn.save(),Po==1?(pa=Va=0,yn.translate(Dc,Bt(ns+Mu/2)),yn.rotate((fo==3?-z:z)/2)):(pa=Bt($a+uu/2),Va=Dc),yn.fillText(Ni.label,pa,Va),yn.restore()}let[cu,Ru]=Ni._found;if(Ru==0)continue;let Vs=sa[Ni.scale],Ou=Po==0?uu:Mu,iu=Po==0?$a:ns,Uu=Bt(Ni.gap*nt),kl=Ni._splits,gl=Vs.distr==2?kl.map($f=>ws[$f]):kl,ol=Vs.distr==2?ws[kl[1]]-ws[kl[0]]:cu,El=Ni.ticks,Zc=Ni.border,mu=El.show?Bt(El.size*nt):0,Ps=Ni._rotate*-z/180,Kc=Ao(Ni._pos*nt),vc=(mu+Uu)*zs,ff=Kc+vc;Va=Po==0?ff:0,pa=Po==1?ff:0;let Wc=Ni.font[0],Mf=Ni.align==1?he:Ni.align==2?me:Ps>0?he:Ps<0?me:Po==0?"center":fo==3?me:he,wd=Ps||Po==1?"middle":fo==2?N:W;tf(Wc,fs,Mf,wd);let mf=Ni.font[1]*Ni.lineGap,Df=kl.map($f=>Ao(Wr($f,Vs,Ou,iu))),Ah=Ni._values;for(let $f=0;$f<Ah.length;$f++){let Dc=Ah[$f];if(Dc!=null){Po==0?pa=Df[$f]:Va=Df[$f],Dc=""+Dc;let _f=Dc.indexOf(` `)==-1?[Dc]:Dc.split(/\n/gm);for(let wf=0;wf<_f.length;wf++){let Uf=_f[wf];Ps?(yn.save(),yn.translate(pa,Va+wf*mf),yn.rotate(Ps),yn.fillText(Uf,0,0),yn.restore()):yn.fillText(Uf,pa,Va+wf*mf)}}}El.show&&Kd(Df,El.filter(ht,gl,Vr,Ru,ol),Po,fo,Kc,mu,pi(El.width*nt,3),El.stroke(ht,Vr),El.dash,El.cap);let Ed=Ni.grid;Ed.show&&Kd(Df,Ed.filter(ht,gl,Vr,Ru,ol),Po,Po==0?2:1,Po==0?ns:$a,Po==0?Mu:uu,pi(Ed.width*nt,3),Ed.stroke(ht,Vr),Ed.dash,Ed.cap),Zc.show&&Kd([Kc],[1],Po==0?1:0,Po==0?1:2,Po==1?ns:$a,Po==1?Mu:uu,pi(Zc.width*nt,3),Zc.stroke(ht,Vr),Zc.dash,Zc.cap)}xu("drawAxes")}function Jf(Vr){bo.forEach((Ni,fo)=>{fo>0&&(Ni._paths=null,Vr&&(Gt==1?(Ni.min=null,Ni.max=null):Ni.facets.forEach(Po=>{Po.min=null,Po.max=null})))})}let ql=!1,sc=!1,Uc=[];function Gd(){sc=!1;for(let Vr=0;Vr<Uc.length;Vr++)xu(...Uc[Vr]);Uc.length=0}function nf(){ql||(Cr(yd),ql=!0)}function Dd(Vr,Ni=!1){ql=!0,sc=Ni,Vr(ht),yd(),Ni&&Uc.length>0&&queueMicrotask(Gd)}ht.batch=Dd;function yd(){if(Lu&&(vl(),Lu=!1),pl&&(Ul(),pl=!1),ju){if(U(wi,he,Na),U(wi,N,Xa),U(wi,ae,va),U(wi,_,Pa),U(mi,he,Na),U(mi,N,Xa),U(mi,ae,va),U(mi,_,Pa),U(ar,ae,xo),U(ar,_,xs),dn.width=Bt(xo*nt),dn.height=Bt(xs*nt),ca.forEach(({_el:Vr,_show:Ni,_size:fo,_pos:Po,side:pa})=>{if(Vr!=null)if(Ni){let Va=pa===3||pa===0?fo:0,fs=pa%2==1;U(Vr,fs?"left":"top",Po-Va),U(Vr,fs?"width":"height",fo),U(Vr,fs?"top":"left",fs?Xa:Na),U(Vr,fs?"height":"width",fs?Pa:va),tt(Vr,b)}else Rt(Vr,b)}),zu=Il=bc=oc=ac=jl=nc=Fl=Gl=null,Zu=1,Gf(!0),Na!=wa||Xa!=Ga||va!=vs||Pa!=Za){Jf(!1);let Vr=va/vs,Ni=Pa/Za;if(Hs.show&&!pu&&Hs.left>=0){Hs.left*=Vr,Hs.top*=Ni,vf&&ke(vf,Bt(Hs.left),0,va,Pa),jc&&ke(jc,0,Bt(Hs.top),va,Pa);for(let fo=1;fo<ia.length;fo++)Sa[fo]*=Vr,Ea[fo]*=Ni,ke(ia[fo],rr(Sa[fo],1),rr(Ea[fo],1),va,Pa)}if(ic.show&&!ks&&ic.left>=0&&ic.width>0){ic.left*=Vr,ic.width*=Vr,ic.top*=Ni,ic.height*=Ni;for(let fo in eh)U(Kf,fo,ic[fo])}wa=Na,Ga=Xa,vs=va,Za=Pa}xu("setSize"),ju=!1}xo>0&&xs>0&&(yn.clearRect(0,0,dn.width,dn.height),xu("drawClear"),Ya.forEach(Vr=>Vr()),xu("draw")),ic.show&&ks&&(ld(ic),ks=!1),Hs.show&&pu&&(cd(null,!0,!1),pu=!1),kt.show&&kt.live&&su&&(Pf(),su=!1),vt||(vt=!0,ht.status=1,xu("ready")),fu=!1,ql=!1}ht.redraw=(Vr,Ni)=>{pl=Ni||!1,Vr!==!1?cf(La,ba.min,ba.max):nf()};function pf(Vr,Ni){let fo=sa[Vr];if(fo.from==null){if(Fa==0){let Po=fo.range(ht,Ni.min,Ni.max,Vr);Ni.min=Po[0],Ni.max=Po[1]}if(Ni.min>Ni.max){let Po=Ni.min;Ni.min=Ni.max,Ni.max=Po}if(Fa>1&&Ni.min!=null&&Ni.max!=null&&Ni.max-Ni.min<1e-16)return;Vr==La&&fo.distr==2&&Fa>0&&(Ni.min=ee(Ni.min,Ue[0]),Ni.max=ee(Ni.max,Ue[0]),Ni.min==Ni.max&&Ni.max++),Wo[Vr]=Ni,Lu=!0,nf()}}ht.setScale=pf;let Lf,Cd,vf,jc,gf,Id,sd,ud,Yd,xd,rc,Pc,lf=!1;const Qc=Hs.drag;let yc=Qc.x,fc=Qc.y;Hs.show&&(Hs.x&&(Lf=Y(w,mi)),Hs.y&&(Cd=Y(S,mi)),ba.ori==0?(vf=Lf,jc=Cd):(vf=Cd,jc=Lf),rc=Hs.left,Pc=Hs.top);const ic=ht.select=un({show:!0,over:!0,left:0,width:0,top:0,height:0},te.select),Kf=ic.show?Y(y,ic.over?mi:wi):null;function ld(Vr,Ni){if(ic.show){for(let fo in Vr)ic[fo]=Vr[fo],fo in eh&&U(Kf,fo,Vr[fo]);Ni!==!1&&xu("setSelect")}}ht.setSelect=ld;function Ld(Vr,Ni){let fo=bo[Vr],Po=Rn?ti[Vr]:null;fo.show?Po&&tt(Po,b):(Po&&Rt(Po,b),ia.length>1&&ke(ia[Vr],-10,-10,va,Pa))}function cf(Vr,Ni,fo){pf(Vr,{min:Ni,max:fo})}function kf(Vr,Ni,fo,Po){Ni.focus!=null&&Hc(Vr),Ni.show!=null&&bo.forEach((pa,Va)=>{Va>0&&(Vr==Va||Vr==null)&&(pa.show=Ni.show,Ld(Va,Ni.show),Gt==2?(cf(pa.facets[0].scale,null,null),cf(pa.facets[1].scale,null,null)):cf(pa.scale,null,null),nf())}),fo!==!1&&xu("setSeries",Vr,Ni),Po&&Mc("setSeries",ht,Vr,Ni)}ht.setSeries=kf;function uh(Vr,Ni){un(Da[Vr],Ni)}function $d(Vr,Ni){Vr.fill=Qt(Vr.fill||null),Vr.dir=ct(Vr.dir,-1),Ni=Ni??Da.length,Da.splice(Ni,0,Vr)}function bh(Vr){Vr==null?Da.length=0:Da.splice(Vr,1)}ht.addBand=$d,ht.setBand=uh,ht.delBand=bh;function Zf(Vr,Ni){bo[Vr].alpha=Ni,Hs.show&&ia[Vr]&&(ia[Vr].style.opacity=Ni),Rn&&ti[Vr]&&(ti[Vr].style.opacity=Ni)}let dc,yf,Nf;const ys={focus:!0};function Hc(Vr){if(Vr!=Nf){let Ni=Vr==null,fo=ll.alpha!=1;bo.forEach((Po,pa)=>{if(Gt==1||pa>0){let Va=Ni||pa==0||pa==Vr;Po._focus=Ni?null:Va,fo&&Zf(pa,Va?1:ll.alpha)}}),Nf=Vr,fo&&nf()}}Rn&&Kl&&za(V,_r,Vr=>{Hs._lock||(Pl(Vr),Nf!=null&&kf(null,ys,!0,Ol.setSeries))});function Jc(Vr,Ni,fo){let Po=sa[Ni];fo&&(Vr=Vr/nt-(Po.ori==1?Xa:Na));let pa=va;Po.ori==1&&(pa=Pa,Vr=pa-Vr),Po.dir==-1&&(Vr=pa-Vr);let Va=Po._min,fs=Po._max,zs=Vr/pa,cu=Va+(fs-Va)*zs,Ru=Po.distr;return Ru==3?$t(10,cu):Ru==4?Wn(cu,Po.asinh):cu}function Fh(Vr,Ni){let fo=Jc(Vr,La,Ni);return ee(fo,Ue[0],Ua,ms)}ht.valToIdx=Vr=>ee(Vr,Ue[0]),ht.posToIdx=Fh,ht.posToVal=Jc,ht.valToPos=(Vr,Ni,fo)=>sa[Ni].ori==0?Hn(Vr,sa[Ni],fo?uu:va,fo?$a:0):wr(Vr,sa[Ni],fo?Mu:Pa,fo?ns:0),ht.setCursor=(Vr,Ni,fo)=>{rc=Vr.left,Pc=Vr.top,cd(null,Ni,fo)};function lh(Vr,Ni){U(Kf,he,ic.left=Vr),U(Kf,ae,ic.width=Ni)}function Xd(Vr,Ni){U(Kf,N,ic.top=Vr),U(Kf,_,ic.height=Ni)}let Ud=ba.ori==0?lh:Xd,bd=ba.ori==1?lh:Xd;function Ms(){if(Rn&&kt.live)for(let Vr=Gt==2?1:0;Vr<bo.length;Vr++){if(Vr==0&&Gi)continue;let Ni=kt.values[Vr],fo=0;for(let Po in Ni)Ri[Vr][fo++].firstChild.nodeValue=Ni[Po]}}function Pf(Vr,Ni){Vr!=null&&(Vr.idxs?Vr.idxs.forEach((fo,Po)=>{Ne[Po]=fo}):xi(Vr.idx)||Ne.fill(Vr.idx),kt.idx=Ne[0]);for(let fo=0;fo<bo.length;fo++)(fo>0||Gt==1&&!Gi)&&bf(fo,Ne[fo]);Rn&&kt.live&&Ms(),su=!1,Ni!==!1&&xu("setLegend")}ht.setLegend=Pf;function bf(Vr,Ni){let fo=bo[Vr],Po=Vr==0&&Ka==2?ws:Ue[Vr],pa;Gi?pa=fo.values(ht,Vr,Ni)??yo:(pa=fo.value(ht,Ni==null?null:Po[Ni],Vr,Ni),pa=pa==null?yo:{_:pa}),kt.values[Vr]=pa}function cd(Vr,Ni,fo){Yd=rc,xd=Pc,[rc,Pc]=Hs.move(ht,rc,Pc),Hs.left=rc,Hs.top=Pc,Hs.show&&(vf&&ke(vf,Bt(rc),0,va,Pa),jc&&ke(jc,0,Bt(Pc),va,Pa));let Po,pa=Ua>ms;dc=xt;let Va=ba.ori==0?va:Pa,fs=ba.ori==1?va:Pa;if(rc<0||Fa==0||pa){Po=Hs.idx=null;for(let zs=0;zs<bo.length;zs++)zs>0&&ia.length>1&&ke(ia[zs],-10,-10,va,Pa);Kl&&kf(null,ys,!0,Vr==null&&Ol.setSeries),kt.live&&(Ne.fill(Po),su=!0)}else{let zs,cu,Ru;Gt==1&&(zs=ba.ori==0?rc:Pc,cu=Jc(zs,La),Po=Hs.idx=ee(cu,Ue[0],Ua,ms),Ru=us(Ue[0][Po],ba,Va,0));for(let Vs=Gt==2?1:0;Vs<bo.length;Vs++){let Ou=bo[Vs],iu=Ne[Vs],Uu=iu==null?null:Gt==1?Ue[Vs][iu]:Ue[Vs][1][iu],kl=Hs.dataIdx(ht,Vs,Po,cu),gl=kl==null?null:Gt==1?Ue[Vs][kl]:Ue[Vs][1][kl];su=su||gl!=Uu||kl!=iu,Ne[Vs]=kl;let ol=kl==Po?Ru:us(Gt==1?Ue[0][kl]:Ue[Vs][0][kl],ba,Va,0);if(Vs>0&&Ou.show){let El=gl==null?-10:ii(gl,Gt==1?sa[Ou.scale]:sa[Ou.facets[1].scale],fs,0);if(Kl&&gl!=null){let Ps=ba.ori==1?rc:Pc,Kc=be(ll.dist(ht,Vs,kl,El,Ps));if(Kc<dc){let vc=ll.bias;if(vc!=0){let ff=Jc(Ps,Ou.scale),Wc=gl>=0?1:-1,Mf=ff>=0?1:-1;Mf==Wc&&(Mf==1?vc==1?gl>=ff:gl<=ff:vc==1?gl<=ff:gl>=ff)&&(dc=Kc,yf=Vs)}else dc=Kc,yf=Vs}}let Zc,mu;if(ba.ori==0?(Zc=ol,mu=El):(Zc=El,mu=ol),su&&ia.length>1){ft(ia[Vs],Hs.points.fill(ht,Vs),Hs.points.stroke(ht,Vs));let Ps,Kc,vc,ff,Wc=!0,Mf=Hs.points.bbox;if(Mf!=null){Wc=!1;let wd=Mf(ht,Vs);vc=wd.left,ff=wd.top,Ps=wd.width,Kc=wd.height}else vc=Zc,ff=mu,Ps=Kc=Hs.points.size(ht,Vs);Ut(ia[Vs],Ps,Kc,Wc),Sa[Vs]=vc,Ea[Vs]=ff,ke(ia[Vs],rr(vc,1),rr(ff,1),va,Pa)}}}}if(ic.show&&lf)if(Vr!=null){let[zs,cu]=Ol.scales,[Ru,Vs]=Ol.match,[Ou,iu]=Vr.cursor.sync.scales,Uu=Vr.cursor.drag;if(yc=Uu._x,fc=Uu._y,yc||fc){let{left:kl,top:gl,width:ol,height:El}=Vr.select,Zc=Vr.scales[zs].ori,mu=Vr.posToVal,Ps,Kc,vc,ff,Wc,Mf=zs!=null&&Ru(zs,Ou),wd=cu!=null&&Vs(cu,iu);Mf&&yc?(Zc==0?(Ps=kl,Kc=ol):(Ps=gl,Kc=El),vc=sa[zs],ff=us(mu(Ps,Ou),vc,Va,0),Wc=us(mu(Ps+Kc,Ou),vc,Va,0),Ud(bt(ff,Wc),be(Wc-ff))):Ud(0,Va),wd&&fc?(Zc==1?(Ps=kl,Kc=ol):(Ps=gl,Kc=El),vc=sa[cu],ff=ii(mu(Ps,iu),vc,fs,0),Wc=ii(mu(Ps+Kc,iu),vc,fs,0),bd(bt(ff,Wc),be(Wc-ff))):bd(0,fs)}else Rf()}else{let zs=be(Yd-gf),cu=be(xd-Id);if(ba.ori==1){let iu=zs;zs=cu,cu=iu}yc=Qc.x&&zs>=Qc.dist,fc=Qc.y&&cu>=Qc.dist;let Ru=Qc.uni;Ru!=null?yc&&fc&&(yc=zs>=Ru,fc=cu>=Ru,!yc&&!fc&&(cu>zs?fc=!0:yc=!0)):Qc.x&&Qc.y&&(yc||fc)&&(yc=fc=!0);let Vs,Ou;yc&&(ba.ori==0?(Vs=sd,Ou=rc):(Vs=ud,Ou=Pc),Ud(bt(Vs,Ou),be(Ou-Vs)),fc||bd(0,fs)),fc&&(ba.ori==1?(Vs=sd,Ou=rc):(Vs=ud,Ou=Pc),bd(bt(Vs,Ou),be(Ou-Vs)),yc||Ud(0,Va)),!yc&&!fc&&(Ud(0,0),bd(0,0))}if(Qc._x=yc,Qc._y=fc,Vr==null){if(fo){if(wc!=null){let[zs,cu]=Ol.scales;Ol.values[0]=zs!=null?Jc(ba.ori==0?rc:Pc,zs):null,Ol.values[1]=cu!=null?Jc(ba.ori==1?rc:Pc,cu):null}Mc(ce,ht,rc,Pc,va,Pa,Po)}if(Kl){let zs=fo&&Ol.setSeries,cu=ll.prox;Nf==null?dc<=cu&&kf(yf,ys,!0,zs):dc>cu?kf(null,ys,!0,zs):yf!=Nf&&kf(yf,ys,!0,zs)}}su&&(kt.idx=Po,Pf()),Ni!==!1&&xu("setCursor")}let rf=null;Object.defineProperty(ht,"rect",{get(){return rf==null&&Gf(!1),rf}});function Gf(Vr=!1){Vr?rf=null:(rf=mi.getBoundingClientRect(),xu("syncRect",rf))}function Tf(Vr,Ni,fo,Po,pa,Va,fs){Hs._lock||lf&&Vr!=null&&Vr.movementX==0&&Vr.movementY==0||(fd(Vr,Ni,fo,Po,pa,Va,fs,!1,Vr!=null),Vr!=null?cd(null,!0,!0):cd(Ni,!0,!1))}function fd(Vr,Ni,fo,Po,pa,Va,fs,zs,cu){if(rf==null&&Gf(!1),Pl(Vr),Vr!=null)fo=Vr.clientX-rf.left,Po=Vr.clientY-rf.top;else{if(fo<0||Po<0){rc=-10,Pc=-10;return}let[Ru,Vs]=Ol.scales,Ou=Ni.cursor.sync,[iu,Uu]=Ou.values,[kl,gl]=Ou.scales,[ol,El]=Ol.match,Zc=Ni.axes[0].side%2==1,mu=ba.ori==0?va:Pa,Ps=ba.ori==1?va:Pa,Kc=Zc?Va:pa,vc=Zc?pa:Va,ff=Zc?Po:fo,Wc=Zc?fo:Po;if(kl!=null?fo=ol(Ru,kl)?Wr(iu,sa[Ru],mu,0):-10:fo=mu*(ff/Kc),gl!=null?Po=El(Vs,gl)?Wr(Uu,sa[Vs],Ps,0):-10:Po=Ps*(Wc/vc),ba.ori==1){let Mf=fo;fo=Po,Po=Mf}}cu&&((fo<=1||fo>=va-1)&&(fo=Gn(fo,va)),(Po<=1||Po>=Pa-1)&&(Po=Gn(Po,Pa))),zs?(gf=fo,Id=Po,[sd,ud]=Hs.move(ht,fo,Po)):(rc=fo,Pc=Po)}const eh={width:0,height:0,left:0,top:0};function Rf(){ld(eh,!1)}let qf,kd,qa,Gs;function hu(Vr,Ni,fo,Po,pa,Va,fs){lf=!0,yc=fc=Qc._x=Qc._y=!1,fd(Vr,Ni,fo,Po,pa,Va,fs,!0,!1),Vr!=null&&(za(re,Ae,du,!1),Mc(oe,ht,sd,ud,va,Pa,null));let{left:zs,top:cu,width:Ru,height:Vs}=ic;qf=zs,kd=cu,qa=Ru,Gs=Vs,Rf()}function du(Vr,Ni,fo,Po,pa,Va,fs){lf=Qc._x=Qc._y=!1,fd(Vr,Ni,fo,Po,pa,Va,fs,!1,!0);let{left:zs,top:cu,width:Ru,height:Vs}=ic,Ou=Ru>0||Vs>0,iu=qf!=zs||kd!=cu||qa!=Ru||Gs!=Vs;if(Ou&&iu&&ld(ic),Qc.setScale&&Ou&&iu){let Uu=zs,kl=Ru,gl=cu,ol=Vs;if(ba.ori==1&&(Uu=cu,kl=Vs,gl=zs,ol=Ru),yc&&cf(La,Jc(Uu,La),Jc(Uu+kl,La)),fc)for(let El in sa){let Zc=sa[El];El!=La&&Zc.from==null&&Zc.min!=xt&&cf(El,Jc(gl+ol,El),Jc(gl,El))}Rf()}else Hs.lock&&(Hs._lock=!Hs._lock,Hs._lock||cd(null,!0,!1));Vr!=null&&(Ma(re,Ae),Mc(re,ht,rc,Pc,va,Pa,null))}function Ys(Vr,Ni,fo,Po,pa,Va,fs){if(Hs._lock)return;Pl(Vr);let zs=lf;if(lf){let cu=!0,Ru=!0,Vs=10,Ou,iu;ba.ori==0?(Ou=yc,iu=fc):(Ou=fc,iu=yc),Ou&&iu&&(cu=rc<=Vs||rc>=va-Vs,Ru=Pc<=Vs||Pc>=Pa-Vs),Ou&&cu&&(rc=rc<sd?0:va),iu&&Ru&&(Pc=Pc<ud?0:Pa),cd(null,!0,!0),lf=!1}rc=-10,Pc=-10,cd(null,!0,!0),zs&&(lf=zs)}function Pu(Vr,Ni,fo,Po,pa,Va,fs){Hs._lock||(Pl(Vr),Du(),Rf(),Vr!=null&&Mc(Q,ht,rc,Pc,va,Pa,null))}function sl(){ca.forEach(ci),Au(ht.width,ht.height,!0)}At(pe,Ee,sl);const Tu={};Tu.mousedown=hu,Tu.mousemove=Tf,Tu.mouseup=du,Tu.dblclick=Pu,Tu.setSeries=(Vr,Ni,fo,Po)=>{let pa=Ol.match[2];fo=pa(ht,Ni,fo),fo!=-1&&kf(fo,Po,!0,!1)},Hs.show&&(za(oe,mi,hu),za(ce,mi,Tf),za(H,mi,Vr=>{Pl(Vr),Gf(!1)}),za(V,mi,Ys),za(Q,mi,Pu),Iu.add(ht),ht.syncRect=Gf);const Yu=ht.hooks=te.hooks||{};function xu(Vr,Ni,fo){sc?Uc.push([Vr,Ni,fo]):Vr in Yu&&Yu[Vr].forEach(Po=>{Po.call(null,ht,Ni,fo)})}(te.plugins||[]).forEach(Vr=>{for(let Ni in Vr.hooks)Yu[Ni]=(Yu[Ni]||[]).concat(Vr.hooks[Ni])});const of=(Vr,Ni,fo)=>fo,Ol=un({key:null,setSeries:!1,filters:{pub:Or,sub:Or},scales:[La,bo[1]?bo[1].scale:null],match:[Ln,Ln,of],values:[null,null]},Hs.sync);Ol.match.length==2&&Ol.match.push(of),Hs.sync=Ol;const wc=Ol.key,Ll=Pn(wc);function Mc(Vr,Ni,fo,Po,pa,Va,fs){Ol.filters.pub(Vr,Ni,fo,Po,pa,Va,fs)&&Ll.pub(Vr,Ni,fo,Po,pa,Va,fs)}Ll.sub(ht);function Bl(Vr,Ni,fo,Po,pa,Va,fs){Ol.filters.sub(Vr,Ni,fo,Po,pa,Va,fs)&&Tu[Vr](null,Ni,fo,Po,pa,Va,fs)}ht.pub=Bl;function Ic(){Ll.unsub(ht),Iu.delete(ht),Ia.clear(),et(pe,Ee,sl),Vt.remove(),_r?.remove(),xu("destroy")}ht.destroy=Ic;function qu(){xu("init",te,Ue),wu(Ue||te.data,!1),Wo[La]?pf(La,Wo[La]):Du(),ks=ic.show&&(ic.width>0||ic.height>0),pu=su=!0,Au(te.width,te.height)}return bo.forEach(Ns),ca.forEach(Ii),rt?rt instanceof HTMLElement?(rt.appendChild(Vt),qu()):rt(ht,qu):qu(),ht}Le.assign=un,Le.fmtNum=ie,Le.rangeNum=_t,Le.rangeLog=De,Le.rangeAsinh=He,Le.orient=fi,Le.pxRatio=nt,Le.join=An,Le.fmtDate=gi,Le.tzDate=eo,Le.sync=Pn;{Le.addGap=Sr,Le.clipGaps=Qn;let te=Le.paths={points:vo};te.linear=Rs,te.stepped=Ds,te.bars=nu,te.spline=gu}},27003:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(96540),l=i.useLayoutEffect;const s=l},1063:(J,g,t)=>{"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=t(96540);function l(y,w){return y===w&&(y!==0||1/y===1/w)||y!==y&&w!==w}var s=typeof Object.is=="function"?Object.is:l,m=i.useState,u=i.useEffect,f=i.useLayoutEffect,p=i.useDebugValue;function v(y,w){var S=w(),O=m({inst:{value:S,getSnapshot:w}}),R=O[0].inst,M=O[1];return f(function(){R.value=S,R.getSnapshot=w,h(R)&&M({inst:R})},[y,S,w]),u(function(){return h(R)&&M({inst:R}),y(function(){h(R)&&M({inst:R})})},[y]),p(S),S}function h(y){var w=y.getSnapshot;y=y.value;try{var S=w();return!s(y,S)}catch{return!0}}function d(y,w){return w()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:v;g.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:b},88940:(J,g,t)=>{"use strict";/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=t(96540),l=t(19888);function s(d,b){return d===b&&(d!==0||1/d===1/b)||d!==d&&b!==b}var m=typeof Object.is=="function"?Object.is:s,u=l.useSyncExternalStore,f=i.useRef,p=i.useEffect,v=i.useMemo,h=i.useDebugValue;g.useSyncExternalStoreWithSelector=function(d,b,y,w,S){var O=f(null);if(O.current===null){var R={hasValue:!1,value:null};O.current=R}else R=O.current;O=v(function(){function D(ae){if(!P){if(P=!0,T=ae,ae=w(ae),S!==void 0&&R.hasValue){var _=R.value;if(S(_,ae))return A=_}return A=ae}if(_=A,m(T,ae))return _;var N=w(ae);return S!==void 0&&S(_,N)?_:(T=ae,A=N)}var P=!1,T,A,j=y===void 0?null:y;return[function(){return D(b())},j===null?void 0:function(){return D(j())}]},[b,y,w,S]);var M=u(d,O[0],O[1]);return p(function(){R.hasValue=!0,R.value=M},[M]),h(M),M}},19888:(J,g,t)=>{"use strict";J.exports=t(1063)},69242:(J,g,t)=>{"use strict";J.exports=t(88940)},38823:(J,g,t)=>{"use strict";t.d(g,{k:()=>l});const i=[];for(let u=0;u<256;++u)i.push((u+256).toString(16).slice(1));function l(u,f=0){return i[u[f+0]]+i[u[f+1]]+i[u[f+2]]+i[u[f+3]]+"-"+i[u[f+4]]+i[u[f+5]]+"-"+i[u[f+6]]+i[u[f+7]]+"-"+i[u[f+8]]+i[u[f+9]]+"-"+i[u[f+10]]+i[u[f+11]]+i[u[f+12]]+i[u[f+13]]+i[u[f+14]]+i[u[f+15]]}function s(u,f=0){const p=l(u,f);if(!validate(p))throw TypeError("Stringified UUID is invalid");return p}var m=null},62938:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});const l={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s;const m=new Uint8Array(16);function u(){if(!s&&(s=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(m)}var f=t(38823);function p(h,d,b){if(l.randomUUID&&!d&&!h)return l.randomUUID();h=h||{};const y=h.random||(h.rng||u)();if(y[6]=y[6]&15|64,y[8]=y[8]&63|128,d){b=b||0;for(let w=0;w<16;++w)d[b+w]=y[w];return d}return(0,f.k)(y)}const v=p},34915:J=>{J.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},9771:J=>{"use strict";var g=!1,t=function(){};if(g){var i=function(s,m){var u=arguments.length;m=new Array(u>1?u-1:0);for(var f=1;f<u;f++)m[f-1]=arguments[f];var p=0,v="Warning: "+s.replace(/%s/g,function(){return m[p++]});typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}};t=function(l,s,m){var u=arguments.length;m=new Array(u>2?u-2:0);for(var f=2;f<u;f++)m[f-2]=arguments[f];if(s===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");l||i.apply(null,[s].concat(m))}}J.exports=t},78624:(J,g,t)=>{"use strict";var i=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof t.g<"u"&&t.g||{},l={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function s(W){return W&&DataView.prototype.isPrototypeOf(W)}if(l.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(W){return W&&m.indexOf(Object.prototype.toString.call(W))>-1};function f(W){if(typeof W!="string"&&(W=String(W)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(W)||W==="")throw new TypeError('Invalid character in header field name: "'+W+'"');return W.toLowerCase()}function p(W){return typeof W!="string"&&(W=String(W)),W}function v(W){var he={next:function(){var me=W.shift();return{done:me===void 0,value:me}}};return l.iterable&&(he[Symbol.iterator]=function(){return he}),he}function h(W){this.map={},W instanceof h?W.forEach(function(he,me){this.append(me,he)},this):Array.isArray(W)?W.forEach(function(he){if(he.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+he.length);this.append(he[0],he[1])},this):W&&Object.getOwnPropertyNames(W).forEach(function(he){this.append(he,W[he])},this)}h.prototype.append=function(W,he){W=f(W),he=p(he);var me=this.map[W];this.map[W]=me?me+", "+he:he},h.prototype.delete=function(W){delete this.map[f(W)]},h.prototype.get=function(W){return W=f(W),this.has(W)?this.map[W]:null},h.prototype.has=function(W){return this.map.hasOwnProperty(f(W))},h.prototype.set=function(W,he){this.map[f(W)]=p(he)},h.prototype.forEach=function(W,he){for(var me in this.map)this.map.hasOwnProperty(me)&&W.call(he,this.map[me],me,this)},h.prototype.keys=function(){var W=[];return this.forEach(function(he,me){W.push(me)}),v(W)},h.prototype.values=function(){var W=[];return this.forEach(function(he){W.push(he)}),v(W)},h.prototype.entries=function(){var W=[];return this.forEach(function(he,me){W.push([me,he])}),v(W)},l.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function d(W){if(!W._noBody){if(W.bodyUsed)return Promise.reject(new TypeError("Already read"));W.bodyUsed=!0}}function b(W){return new Promise(function(he,me){W.onload=function(){he(W.result)},W.onerror=function(){me(W.error)}})}function y(W){var he=new FileReader,me=b(he);return he.readAsArrayBuffer(W),me}function w(W){var he=new FileReader,me=b(he),fe=/charset=([A-Za-z0-9_-]+)/.exec(W.type),ve=fe?fe[1]:"utf-8";return he.readAsText(W,ve),me}function S(W){for(var he=new Uint8Array(W),me=new Array(he.length),fe=0;fe<he.length;fe++)me[fe]=String.fromCharCode(he[fe]);return me.join("")}function O(W){if(W.slice)return W.slice(0);var he=new Uint8Array(W.byteLength);return he.set(new Uint8Array(W)),he.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(W){this.bodyUsed=this.bodyUsed,this._bodyInit=W,W?typeof W=="string"?this._bodyText=W:l.blob&&Blob.prototype.isPrototypeOf(W)?this._bodyBlob=W:l.formData&&FormData.prototype.isPrototypeOf(W)?this._bodyFormData=W:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(W)?this._bodyText=W.toString():l.arrayBuffer&&l.blob&&s(W)?(this._bodyArrayBuffer=O(W.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(W)||u(W))?this._bodyArrayBuffer=O(W):this._bodyText=W=Object.prototype.toString.call(W):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof W=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(W)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var W=d(this);if(W)return W;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var W=d(this);return W||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(l.blob)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var W=d(this);if(W)return W;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function D(W){var he=W.toUpperCase();return M.indexOf(he)>-1?he:W}function P(W,he){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');he=he||{};var me=he.body;if(W instanceof P){if(W.bodyUsed)throw new TypeError("Already read");this.url=W.url,this.credentials=W.credentials,he.headers||(this.headers=new h(W.headers)),this.method=W.method,this.mode=W.mode,this.signal=W.signal,!me&&W._bodyInit!=null&&(me=W._bodyInit,W.bodyUsed=!0)}else this.url=String(W);if(this.credentials=he.credentials||this.credentials||"same-origin",(he.headers||!this.headers)&&(this.headers=new h(he.headers)),this.method=D(he.method||this.method||"GET"),this.mode=he.mode||this.mode||null,this.signal=he.signal||this.signal||function(){if("AbortController"in i){var ce=new AbortController;return ce.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&me)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(me),(this.method==="GET"||this.method==="HEAD")&&(he.cache==="no-store"||he.cache==="no-cache")){var fe=/([?&])_=[^&]*/;if(fe.test(this.url))this.url=this.url.replace(fe,"$1_="+new Date().getTime());else{var ve=/\?/;this.url+=(ve.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function T(W){var he=new FormData;return W.trim().split("&").forEach(function(me){if(me){var fe=me.split("="),ve=fe.shift().replace(/\+/g," "),ce=fe.join("=").replace(/\+/g," ");he.append(decodeURIComponent(ve),decodeURIComponent(ce))}}),he}function A(W){var he=new h,me=W.replace(/\r?\n[\t ]+/g," ");return me.split("\r").map(function(fe){return fe.indexOf(` `)===0?fe.substr(1,fe.length):fe}).forEach(function(fe){var ve=fe.split(":"),ce=ve.shift().trim();if(ce){var oe=ve.join(":").trim();try{he.append(ce,oe)}catch(re){console.warn("Response "+re.message)}}}),he}R.call(P.prototype);function j(W,he){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(he||(he={}),this.type="default",this.status=he.status===void 0?200:he.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=he.statusText===void 0?"":""+he.statusText,this.headers=new h(he.headers),this.url=he.url||"",this._initBody(W)}R.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},j.error=function(){var W=new j(null,{status:200,statusText:""});return W.ok=!1,W.status=0,W.type="error",W};var ae=[301,302,303,307,308];j.redirect=function(W,he){if(ae.indexOf(he)===-1)throw new RangeError("Invalid status code");return new j(null,{status:he,headers:{location:W}})};var _=i.DOMException;try{new _}catch{_=function(he,me){this.message=he,this.name=me;var fe=Error(he);this.stack=fe.stack},_.prototype=Object.create(Error.prototype),_.prototype.constructor=_}function N(W,he){return new Promise(function(me,fe){var ve=new P(W,he);if(ve.signal&&ve.signal.aborted)return fe(new _("Aborted","AbortError"));var ce=new XMLHttpRequest;function oe(){ce.abort()}ce.onload=function(){var V={statusText:ce.statusText,headers:A(ce.getAllResponseHeaders()||"")};ve.url.indexOf("file://")===0&&(ce.status<200||ce.status>599)?V.status=200:V.status=ce.status,V.url="responseURL"in ce?ce.responseURL:V.headers.get("X-Request-URL");var Q="response"in ce?ce.response:ce.responseText;setTimeout(function(){me(new j(Q,V))},0)},ce.onerror=function(){setTimeout(function(){fe(new TypeError("Network request failed"))},0)},ce.ontimeout=function(){setTimeout(function(){fe(new TypeError("Network request timed out"))},0)},ce.onabort=function(){setTimeout(function(){fe(new _("Aborted","AbortError"))},0)};function re(V){try{return V===""&&i.location.href?i.location.href:V}catch{return V}}if(ce.open(ve.method,re(ve.url),!0),ve.credentials==="include"?ce.withCredentials=!0:ve.credentials==="omit"&&(ce.withCredentials=!1),"responseType"in ce&&(l.blob?ce.responseType="blob":l.arrayBuffer&&(ce.responseType="arraybuffer")),he&&typeof he.headers=="object"&&!(he.headers instanceof h||i.Headers&&he.headers instanceof i.Headers)){var H=[];Object.getOwnPropertyNames(he.headers).forEach(function(V){H.push(f(V)),ce.setRequestHeader(V,p(he.headers[V]))}),ve.headers.forEach(function(V,Q){H.indexOf(Q)===-1&&ce.setRequestHeader(Q,V)})}else ve.headers.forEach(function(V,Q){ce.setRequestHeader(Q,V)});ve.signal&&(ve.signal.addEventListener("abort",oe),ce.onreadystatechange=function(){ce.readyState===4&&ve.signal.removeEventListener("abort",oe)}),ce.send(typeof ve._bodyInit>"u"?null:ve._bodyInit)})}N.polyfill=!0,i.fetch||(i.fetch=N,i.Headers=h,i.Request=P,i.Response=j)},22048:(J,g,t)=>{var i=t(56018).FilterCSS,l=t(56018).getDefaultWhiteList,s=t(29349);function m(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var u=new i;function f(re,H,V){}function p(re,H,V){}function v(re,H,V){}function h(re,H,V){}function d(re){return re.replace(y,"<").replace(w,">")}function b(re,H,V,Q){if(V=he(V),H==="href"||H==="src"){if(V=s.trim(V),V==="#")return"#";if(!(V.substr(0,7)==="http://"||V.substr(0,8)==="https://"||V.substr(0,7)==="mailto:"||V.substr(0,4)==="tel:"||V.substr(0,11)==="data:image/"||V.substr(0,6)==="ftp://"||V.substr(0,2)==="./"||V.substr(0,3)==="../"||V[0]==="#"||V[0]==="/"))return""}else if(H==="background"){if(P.lastIndex=0,P.test(V))return""}else if(H==="style"){if(T.lastIndex=0,T.test(V)||(A.lastIndex=0,A.test(V)&&(P.lastIndex=0,P.test(V))))return"";Q!==!1&&(Q=Q||u,V=Q.process(V))}return V=me(V),V}var y=/</g,w=/>/g,S=/"/g,O=/"/g,R=/&#([a-zA-Z0-9]*);?/gim,M=/:?/gim,D=/&newline;?/gim,P=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,T=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,A=/u\s*r\s*l\s*\(.*/gi;function j(re){return re.replace(S,""")}function ae(re){return re.replace(O,'"')}function _(re){return re.replace(R,function(V,Q){return Q[0]==="x"||Q[0]==="X"?String.fromCharCode(parseInt(Q.substr(1),16)):String.fromCharCode(parseInt(Q,10))})}function N(re){return re.replace(M,":").replace(D," ")}function W(re){for(var H="",V=0,Q=re.length;V<Q;V++)H+=re.charCodeAt(V)<32?" ":re.charAt(V);return s.trim(H)}function he(re){return re=ae(re),re=_(re),re=N(re),re=W(re),re}function me(re){return re=j(re),re=d(re),re}function fe(){return""}function ve(re,H){typeof H!="function"&&(H=function(){});var V=!Array.isArray(re);function Q(ne){return V?!0:s.indexOf(re,ne)!==-1}var Te=[],Re=!1;return{onIgnoreTag:function(ne,pe,ye){if(Q(ne))if(ye.isClosing){var Se="[/removed]",Ae=ye.position+Se.length;return Te.push([Re!==!1?Re:ye.position,Ae]),Re=!1,Se}else return Re||(Re=ye.position),"[removed]";else return H(ne,pe,ye)},remove:function(ne){var pe="",ye=0;return s.forEach(Te,function(Se){pe+=ne.slice(ye,Se[0]),ye=Se[1]}),pe+=ne.slice(ye),pe}}}function ce(re){for(var H="",V=0;V<re.length;){var Q=re.indexOf("<!--",V);if(Q===-1){H+=re.slice(V);break}H+=re.slice(V,Q);var Te=re.indexOf("-->",Q);if(Te===-1)break;V=Te+3}return H}function oe(re){var H=re.split("");return H=H.filter(function(V){var Q=V.charCodeAt(0);return Q===127?!1:Q<=31?Q===10||Q===13:!0}),H.join("")}g.whiteList=m(),g.getDefaultWhiteList=m,g.onTag=f,g.onIgnoreTag=p,g.onTagAttr=v,g.onIgnoreTagAttr=h,g.safeAttrValue=b,g.escapeHtml=d,g.escapeQuote=j,g.unescapeQuote=ae,g.escapeHtmlEntities=_,g.escapeDangerHtml5Entities=N,g.clearNonPrintableCharacter=W,g.friendlyAttrValue=he,g.escapeAttrValue=me,g.onIgnoreTagStripAll=fe,g.StripTagBody=ve,g.stripCommentTag=ce,g.stripBlankChar=oe,g.cssFilter=u,g.getDefaultCSSWhiteList=l},34005:(J,g,t)=>{var i=t(22048),l=t(5930),s=t(18327);function m(f,p){var v=new s(p);return v.process(f)}g=J.exports=m,g.filterXSS=m,g.FilterXSS=s,function(){for(var f in i)g[f]=i[f];for(var p in l)g[p]=l[p]}(),typeof window<"u"&&(window.filterXSS=J.exports);function u(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}u()&&(self.filterXSS=J.exports)},5930:(J,g,t)=>{var i=t(29349);function l(y){var w=i.spaceIndex(y),S;return w===-1?S=y.slice(1,-1):S=y.slice(1,w+1),S=i.trim(S).toLowerCase(),S.slice(0,1)==="/"&&(S=S.slice(1)),S.slice(-1)==="/"&&(S=S.slice(0,-1)),S}function s(y){return y.slice(0,2)==="</"}function m(y,w,S){"use strict";var O="",R=0,M=!1,D=!1,P=0,T=y.length,A="",j="";e:for(P=0;P<T;P++){var ae=y.charAt(P);if(M===!1){if(ae==="<"){M=P;continue}}else if(D===!1){if(ae==="<"){O+=S(y.slice(R,P)),M=P,R=P;continue}if(ae===">"||P===T-1){O+=S(y.slice(R,M)),j=y.slice(M,P+1),A=l(j),O+=w(M,O.length,A,j,s(j)),R=P+1,M=!1;continue}if(ae==='"'||ae==="'")for(var _=1,N=y.charAt(P-_);N.trim()===""||N==="=";){if(N==="="){D=ae;continue e}N=y.charAt(P-++_)}}else if(ae===D){D=!1;continue}}return R<T&&(O+=S(y.substr(R))),O}var u=/[^a-zA-Z0-9\\_:.-]/gim;function f(y,w){"use strict";var S=0,O=0,R=[],M=!1,D=y.length;function P(_,N){if(_=i.trim(_),_=_.replace(u,"").toLowerCase(),!(_.length<1)){var W=w(_,N||"");W&&R.push(W)}}for(var T=0;T<D;T++){var A=y.charAt(T),j,ae;if(M===!1&&A==="="){M=y.slice(S,T),S=T+1,O=y.charAt(S)==='"'||y.charAt(S)==="'"?S:v(y,T+1);continue}if(M!==!1&&T===O){if(ae=y.indexOf(A,T+1),ae===-1)break;j=i.trim(y.slice(O+1,ae)),P(M,j),M=!1,T=ae,S=T+1;continue}if(/\s|\n|\t/.test(A))if(y=y.replace(/\s|\n|\t/g," "),M===!1)if(ae=p(y,T),ae===-1){j=i.trim(y.slice(S,T)),P(j),M=!1,S=T+1;continue}else{T=ae-1;continue}else if(ae=h(y,T-1),ae===-1){j=i.trim(y.slice(S,T)),j=b(j),P(M,j),M=!1,S=T+1;continue}else continue}return S<y.length&&(M===!1?P(y.slice(S)):P(M,b(i.trim(y.slice(S))))),i.trim(R.join(" "))}function p(y,w){for(;w<y.length;w++){var S=y[w];if(S!==" ")return S==="="?w:-1}}function v(y,w){for(;w<y.length;w++){var S=y[w];if(S!==" ")return S==="'"||S==='"'?w:-1}}function h(y,w){for(;w>0;w--){var S=y[w];if(S!==" ")return S==="="?w:-1}}function d(y){return y[0]==='"'&&y[y.length-1]==='"'||y[0]==="'"&&y[y.length-1]==="'"}function b(y){return d(y)?y.substr(1,y.length-2):y}g.parseTag=m,g.parseAttr=f},29349:J=>{J.exports={indexOf:function(g,t){var i,l;if(Array.prototype.indexOf)return g.indexOf(t);for(i=0,l=g.length;i<l;i++)if(g[i]===t)return i;return-1},forEach:function(g,t,i){var l,s;if(Array.prototype.forEach)return g.forEach(t,i);for(l=0,s=g.length;l<s;l++)t.call(i,g[l],l,g)},trim:function(g){return String.prototype.trim?g.trim():g.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(g){var t=/\s|\n|\t/,i=t.exec(g);return i?i.index:-1}}},18327:(J,g,t)=>{var i=t(56018).FilterCSS,l=t(22048),s=t(5930),m=s.parseTag,u=s.parseAttr,f=t(29349);function p(y){return y==null}function v(y){var w=f.spaceIndex(y);if(w===-1)return{html:"",closing:y[y.length-2]==="/"};y=f.trim(y.slice(w+1,-1));var S=y[y.length-1]==="/";return S&&(y=f.trim(y.slice(0,-1))),{html:y,closing:S}}function h(y){var w={};for(var S in y)w[S]=y[S];return w}function d(y){var w={};for(var S in y)Array.isArray(y[S])?w[S.toLowerCase()]=y[S].map(function(O){return O.toLowerCase()}):w[S.toLowerCase()]=y[S];return w}function b(y){y=h(y||{}),y.stripIgnoreTag&&(y.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),y.onIgnoreTag=l.onIgnoreTagStripAll),y.whiteList||y.allowList?y.whiteList=d(y.whiteList||y.allowList):y.whiteList=l.whiteList,y.onTag=y.onTag||l.onTag,y.onTagAttr=y.onTagAttr||l.onTagAttr,y.onIgnoreTag=y.onIgnoreTag||l.onIgnoreTag,y.onIgnoreTagAttr=y.onIgnoreTagAttr||l.onIgnoreTagAttr,y.safeAttrValue=y.safeAttrValue||l.safeAttrValue,y.escapeHtml=y.escapeHtml||l.escapeHtml,this.options=y,y.css===!1?this.cssFilter=!1:(y.css=y.css||{},this.cssFilter=new i(y.css))}b.prototype.process=function(y){if(y=y||"",y=y.toString(),!y)return"";var w=this,S=w.options,O=S.whiteList,R=S.onTag,M=S.onIgnoreTag,D=S.onTagAttr,P=S.onIgnoreTagAttr,T=S.safeAttrValue,A=S.escapeHtml,j=w.cssFilter;S.stripBlankChar&&(y=l.stripBlankChar(y)),S.allowCommentTag||(y=l.stripCommentTag(y));var ae=!1;S.stripIgnoreTagBody&&(ae=l.StripTagBody(S.stripIgnoreTagBody,M),M=ae.onIgnoreTag);var _=m(y,function(N,W,he,me,fe){var ve={sourcePosition:N,position:W,isClosing:fe,isWhite:Object.prototype.hasOwnProperty.call(O,he)},ce=R(he,me,ve);if(!p(ce))return ce;if(ve.isWhite){if(ve.isClosing)return"</"+he+">";var oe=v(me),re=O[he],H=u(oe.html,function(V,Q){var Te=f.indexOf(re,V)!==-1,Re=D(he,V,Q,Te);return p(Re)?Te?(Q=T(he,V,Q,j),Q?V+'="'+Q+'"':V):(Re=P(he,V,Q,Te),p(Re)?void 0:Re):Re});return me="<"+he,H&&(me+=" "+H),oe.closing&&(me+=" /"),me+=">",me}else return ce=M(he,me,ve),p(ce)?A(me):ce},A);return ae&&(_=ae.remove(_)),_},J.exports=b},40259:J=>{"use strict";J.exports=function(g){g.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},28799:(J,g,t)=>{"use strict";J.exports=i,i.Node=u,i.create=i;function i(f){var p=this;if(p instanceof i||(p=new i),p.tail=null,p.head=null,p.length=0,f&&typeof f.forEach=="function")f.forEach(function(d){p.push(d)});else if(arguments.length>0)for(var v=0,h=arguments.length;v<h;v++)p.push(arguments[v]);return p}i.prototype.removeNode=function(f){if(f.list!==this)throw new Error("removing node which does not belong to this list");var p=f.next,v=f.prev;return p&&(p.prev=v),v&&(v.next=p),f===this.head&&(this.head=p),f===this.tail&&(this.tail=v),f.list.length--,f.next=null,f.prev=null,f.list=null,p},i.prototype.unshiftNode=function(f){if(f!==this.head){f.list&&f.list.removeNode(f);var p=this.head;f.list=this,f.next=p,p&&(p.prev=f),this.head=f,this.tail||(this.tail=f),this.length++}},i.prototype.pushNode=function(f){if(f!==this.tail){f.list&&f.list.removeNode(f);var p=this.tail;f.list=this,f.prev=p,p&&(p.next=f),this.tail=f,this.head||(this.head=f),this.length++}},i.prototype.push=function(){for(var f=0,p=arguments.length;f<p;f++)s(this,arguments[f]);return this.length},i.prototype.unshift=function(){for(var f=0,p=arguments.length;f<p;f++)m(this,arguments[f]);return this.length},i.prototype.pop=function(){if(this.tail){var f=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,f}},i.prototype.shift=function(){if(this.head){var f=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,f}},i.prototype.forEach=function(f,p){p=p||this;for(var v=this.head,h=0;v!==null;h++)f.call(p,v.value,h,this),v=v.next},i.prototype.forEachReverse=function(f,p){p=p||this;for(var v=this.tail,h=this.length-1;v!==null;h--)f.call(p,v.value,h,this),v=v.prev},i.prototype.get=function(f){for(var p=0,v=this.head;v!==null&&p<f;p++)v=v.next;if(p===f&&v!==null)return v.value},i.prototype.getReverse=function(f){for(var p=0,v=this.tail;v!==null&&p<f;p++)v=v.prev;if(p===f&&v!==null)return v.value},i.prototype.map=function(f,p){p=p||this;for(var v=new i,h=this.head;h!==null;)v.push(f.call(p,h.value,this)),h=h.next;return v},i.prototype.mapReverse=function(f,p){p=p||this;for(var v=new i,h=this.tail;h!==null;)v.push(f.call(p,h.value,this)),h=h.prev;return v},i.prototype.reduce=function(f,p){var v,h=this.head;if(arguments.length>1)v=p;else if(this.head)h=this.head.next,v=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var d=0;h!==null;d++)v=f(v,h.value,d),h=h.next;return v},i.prototype.reduceReverse=function(f,p){var v,h=this.tail;if(arguments.length>1)v=p;else if(this.tail)h=this.tail.prev,v=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var d=this.length-1;h!==null;d--)v=f(v,h.value,d),h=h.prev;return v},i.prototype.toArray=function(){for(var f=new Array(this.length),p=0,v=this.head;v!==null;p++)f[p]=v.value,v=v.next;return f},i.prototype.toArrayReverse=function(){for(var f=new Array(this.length),p=0,v=this.tail;v!==null;p++)f[p]=v.value,v=v.prev;return f},i.prototype.slice=function(f,p){p=p||this.length,p<0&&(p+=this.length),f=f||0,f<0&&(f+=this.length);var v=new i;if(p<f||p<0)return v;f<0&&(f=0),p>this.length&&(p=this.length);for(var h=0,d=this.head;d!==null&&h<f;h++)d=d.next;for(;d!==null&&h<p;h++,d=d.next)v.push(d.value);return v},i.prototype.sliceReverse=function(f,p){p=p||this.length,p<0&&(p+=this.length),f=f||0,f<0&&(f+=this.length);var v=new i;if(p<f||p<0)return v;f<0&&(f=0),p>this.length&&(p=this.length);for(var h=this.length,d=this.tail;d!==null&&h>p;h--)d=d.prev;for(;d!==null&&h>f;h--,d=d.prev)v.push(d.value);return v},i.prototype.splice=function(f,p,...v){f>this.length&&(f=this.length-1),f<0&&(f=this.length+f);for(var h=0,d=this.head;d!==null&&h<f;h++)d=d.next;for(var b=[],h=0;d&&h<p;h++)b.push(d.value),d=this.removeNode(d);d===null&&(d=this.tail),d!==this.head&&d!==this.tail&&(d=d.prev);for(var h=0;h<v.length;h++)d=l(this,d,v[h]);return b},i.prototype.reverse=function(){for(var f=this.head,p=this.tail,v=f;v!==null;v=v.prev){var h=v.prev;v.prev=v.next,v.next=h}return this.head=p,this.tail=f,this};function l(f,p,v){var h=p===f.head?new u(v,null,p,f):new u(v,p,p.next,f);return h.next===null&&(f.tail=h),h.prev===null&&(f.head=h),f.length++,h}function s(f,p){f.tail=new u(p,f.tail,null,f),f.head||(f.head=f.tail),f.length++}function m(f,p){f.head=new u(p,null,f.head,f),f.tail||(f.tail=f.head),f.length++}function u(f,p,v,h){if(!(this instanceof u))return new u(f,p,v,h);this.list=h,this.value=f,p?(p.next=this,this.prev=p):this.prev=null,v?(v.prev=this,this.next=v):this.next=null}try{t(40259)(i)}catch{}},94634:J=>{function g(){return J.exports=g=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(t[s]=l[s])}return t},J.exports.__esModule=!0,J.exports.default=J.exports,g.apply(this,arguments)}J.exports=g,J.exports.__esModule=!0,J.exports.default=J.exports},46942:(J,g)=>{var t,i;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){"use strict";var l={}.hasOwnProperty;function s(){for(var f="",p=0;p<arguments.length;p++){var v=arguments[p];v&&(f=u(f,m(v)))}return f}function m(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return s.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var p="";for(var v in f)l.call(f,v)&&f[v]&&(p=u(p,v));return p}function u(f,p){return p?f?f+" "+p:f+p:f}J.exports?(s.default=s,J.exports=s):(t=[],i=function(){return s}.apply(g,t),i!==void 0&&(J.exports=i))})()},43145:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){(s==null||s>l.length)&&(s=l.length);for(var m=0,u=new Array(s);m<s;m++)u[m]=l[m];return u}},96369:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l){if(Array.isArray(l))return l}},9417:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}},23029:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}},92901:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(20816);function l(m,u){for(var f=0;f<u.length;f++){var p=u[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,(0,i.A)(p.key),p)}}function s(m,u,f){return u&&l(m.prototype,u),f&&l(m,f),Object.defineProperty(m,"prototype",{writable:!1}),m}},88293:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});var i=t(53954);function l(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l=function(){return!!u})()}var s=t(56822);function m(u){var f=l();return function(){var v=(0,i.A)(u),h;if(f){var d=(0,i.A)(this).constructor;h=Reflect.construct(v,arguments,d)}else h=v.apply(this,arguments);return(0,s.A)(this,h)}}},64467:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(20816);function l(s,m,u){return m=(0,i.A)(m),m in s?Object.defineProperty(s,m,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[m]=u,s}},58168:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(){return i=Object.assign?Object.assign.bind():function(l){for(var s=1;s<arguments.length;s++){var m=arguments[s];for(var u in m)Object.prototype.hasOwnProperty.call(m,u)&&(l[u]=m[u])}return l},i.apply(this,arguments)}},53954:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},i(l)}},85501:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(63662);function l(s,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(m&&m.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),m&&(0,i.A)(s,m)}},77387:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(63662);function l(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,(0,i.A)(s,m)}},73893:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}},76562:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},89379:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(64467);function l(m,u){var f=Object.keys(m);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(m);u&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(m,v).enumerable})),f.push.apply(f,p)}return f}function s(m){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?l(Object(f),!0).forEach(function(p){(0,i.A)(m,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(m,p,Object.getOwnPropertyDescriptor(f,p))})}return m}},80045:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(98587);function l(s,m){if(s==null)return{};var u=(0,i.A)(s,m),f,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(s);for(p=0;p<v.length;p++)f=v[p],!(m.indexOf(f)>=0)&&Object.prototype.propertyIsEnumerable.call(s,f)&&(u[f]=s[f])}return u}},98587:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){if(l==null)return{};var m={},u=Object.keys(l),f,p;for(p=0;p<u.length;p++)f=u[p],!(s.indexOf(f)>=0)&&(m[f]=l[f]);return m}},56822:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(82284),l=t(9417);function s(m,u){if(u&&((0,i.A)(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.A)(m)}},63662:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,f){return u.__proto__=f,u},i(l,s)}},5544:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96369);function l(f,p){var v=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(v!=null){var h,d,b,y,w=[],S=!0,O=!1;try{if(b=(v=v.call(f)).next,p===0){if(Object(v)!==v)return;S=!1}else for(;!(S=(h=b.call(v)).done)&&(w.push(h.value),w.length!==p);S=!0);}catch(R){O=!0,d=R}finally{try{if(!S&&v.return!=null&&(y=v.return(),Object(y)!==y))return}finally{if(O)throw d}}return w}}var s=t(27800),m=t(76562);function u(f,p){return(0,i.A)(f)||l(f,p)||(0,s.A)(f,p)||(0,m.A)()}},87695:(J,g,t)=>{"use strict";t.d(g,{A:()=>u});var i=t(96369),l=t(73893),s=t(27800),m=t(76562);function u(f){return(0,i.A)(f)||(0,l.A)(f)||(0,s.A)(f)||(0,m.A)()}},60436:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(43145);function l(p){if(Array.isArray(p))return(0,i.A)(p)}var s=t(73893),m=t(27800);function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(p){return l(p)||(0,s.A)(p)||(0,m.A)(p)||u()}},20816:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(82284);function l(m,u){if((0,i.A)(m)!="object"||!m)return m;var f=m[Symbol.toPrimitive];if(f!==void 0){var p=f.call(m,u||"default");if((0,i.A)(p)!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(m)}function s(m){var u=l(m,"string");return(0,i.A)(u)=="symbol"?u:String(u)}},82284:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},i(l)}},27800:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(43145);function l(s,m){if(s){if(typeof s=="string")return(0,i.A)(s,m);var u=Object.prototype.toString.call(s).slice(8,-1);if(u==="Object"&&s.constructor&&(u=s.constructor.name),u==="Map"||u==="Set")return Array.from(s);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return(0,i.A)(s,m)}}},95361:(J,g,t)=>{"use strict";t.d(g,{BN:()=>M,Ej:()=>P,UE:()=>u,UU:()=>v,cY:()=>R,rD:()=>s});var i=t(97193);function l(T,A,j){let{reference:ae,floating:_}=T;const N=(0,i.TV)(A),W=(0,i.Dz)(A),he=(0,i.sq)(W),me=(0,i.C0)(A),fe=N==="y",ve=ae.x+ae.width/2-_.width/2,ce=ae.y+ae.height/2-_.height/2,oe=ae[he]/2-_[he]/2;let re;switch(me){case"top":re={x:ve,y:ae.y-_.height};break;case"bottom":re={x:ve,y:ae.y+ae.height};break;case"right":re={x:ae.x+ae.width,y:ce};break;case"left":re={x:ae.x-_.width,y:ce};break;default:re={x:ae.x,y:ae.y}}switch((0,i.Sg)(A)){case"start":re[W]-=oe*(j&&fe?-1:1);break;case"end":re[W]+=oe*(j&&fe?-1:1);break}return re}const s=async(T,A,j)=>{const{placement:ae="bottom",strategy:_="absolute",middleware:N=[],platform:W}=j,he=N.filter(Boolean),me=await(W.isRTL==null?void 0:W.isRTL(A));let fe=await W.getElementRects({reference:T,floating:A,strategy:_}),{x:ve,y:ce}=l(fe,ae,me),oe=ae,re={},H=0;for(let V=0;V<he.length;V++){const{name:Q,fn:Te}=he[V],{x:Re,y:ne,data:pe,reset:ye}=await Te({x:ve,y:ce,initialPlacement:ae,placement:oe,strategy:_,middlewareData:re,rects:fe,platform:W,elements:{reference:T,floating:A}});ve=Re??ve,ce=ne??ce,re={...re,[Q]:{...re[Q],...pe}},ye&&H<=50&&(H++,typeof ye=="object"&&(ye.placement&&(oe=ye.placement),ye.rects&&(fe=ye.rects===!0?await W.getElementRects({reference:T,floating:A,strategy:_}):ye.rects),{x:ve,y:ce}=l(fe,oe,me)),V=-1)}return{x:ve,y:ce,placement:oe,strategy:_,middlewareData:re}};async function m(T,A){var j;A===void 0&&(A={});const{x:ae,y:_,platform:N,rects:W,elements:he,strategy:me}=T,{boundary:fe="clippingAncestors",rootBoundary:ve="viewport",elementContext:ce="floating",altBoundary:oe=!1,padding:re=0}=(0,i._3)(A,T),H=(0,i.nI)(re),Q=he[oe?ce==="floating"?"reference":"floating":ce],Te=(0,i.B1)(await N.getClippingRect({element:(j=await(N.isElement==null?void 0:N.isElement(Q)))==null||j?Q:Q.contextElement||await(N.getDocumentElement==null?void 0:N.getDocumentElement(he.floating)),boundary:fe,rootBoundary:ve,strategy:me})),Re=ce==="floating"?{...W.floating,x:ae,y:_}:W.reference,ne=await(N.getOffsetParent==null?void 0:N.getOffsetParent(he.floating)),pe=await(N.isElement==null?void 0:N.isElement(ne))?await(N.getScale==null?void 0:N.getScale(ne))||{x:1,y:1}:{x:1,y:1},ye=(0,i.B1)(N.convertOffsetParentRelativeRectToViewportRelativeRect?await N.convertOffsetParentRelativeRectToViewportRelativeRect({elements:he,rect:Re,offsetParent:ne,strategy:me}):Re);return{top:(Te.top-ye.top+H.top)/pe.y,bottom:(ye.bottom-Te.bottom+H.bottom)/pe.y,left:(Te.left-ye.left+H.left)/pe.x,right:(ye.right-Te.right+H.right)/pe.x}}const u=T=>({name:"arrow",options:T,async fn(A){const{x:j,y:ae,placement:_,rects:N,platform:W,elements:he,middlewareData:me}=A,{element:fe,padding:ve=0}=(0,i._3)(T,A)||{};if(fe==null)return{};const ce=(0,i.nI)(ve),oe={x:j,y:ae},re=(0,i.Dz)(_),H=(0,i.sq)(re),V=await W.getDimensions(fe),Q=re==="y",Te=Q?"top":"left",Re=Q?"bottom":"right",ne=Q?"clientHeight":"clientWidth",pe=N.reference[H]+N.reference[re]-oe[re]-N.floating[H],ye=oe[re]-N.reference[re],Se=await(W.getOffsetParent==null?void 0:W.getOffsetParent(fe));let Ae=Se?Se[ne]:0;(!Ae||!await(W.isElement==null?void 0:W.isElement(Se)))&&(Ae=he.floating[ne]||N.floating[H]);const Ee=pe/2-ye/2,xe=Ae/2-V[H]/2-1,nt=(0,i.jk)(ce[Te],xe),Tt=(0,i.jk)(ce[Re],xe),pt=nt,Rt=Ae-V[H]-Tt,tt=Ae/2-V[H]/2+Ee,U=(0,i.qE)(pt,tt,Rt),F=!me.arrow&&(0,i.Sg)(_)!=null&&tt!==U&&N.reference[H]/2-(tt<pt?nt:Tt)-V[H]/2<0,Y=F?tt<pt?tt-pt:tt-Rt:0;return{[re]:oe[re]+Y,data:{[re]:U,centerOffset:tt-U-Y,...F&&{alignmentOffset:Y}},reset:F}}});function f(T,A,j){return(T?[...j.filter(_=>getAlignment(_)===T),...j.filter(_=>getAlignment(_)!==T)]:j.filter(_=>getSide(_)===_)).filter(_=>T?getAlignment(_)===T||(A?getOppositeAlignmentPlacement(_)!==_:!1):!0)}const p=function(T){return T===void 0&&(T={}),{name:"autoPlacement",options:T,async fn(A){var j,ae,_;const{rects:N,middlewareData:W,placement:he,platform:me,elements:fe}=A,{crossAxis:ve=!1,alignment:ce,allowedPlacements:oe=placements,autoAlignment:re=!0,...H}=evaluate(T,A),V=ce!==void 0||oe===placements?f(ce||null,re,oe):oe,Q=await m(A,H),Te=((j=W.autoPlacement)==null?void 0:j.index)||0,Re=V[Te];if(Re==null)return{};const ne=getAlignmentSides(Re,N,await(me.isRTL==null?void 0:me.isRTL(fe.floating)));if(he!==Re)return{reset:{placement:V[0]}};const pe=[Q[getSide(Re)],Q[ne[0]],Q[ne[1]]],ye=[...((ae=W.autoPlacement)==null?void 0:ae.overflows)||[],{placement:Re,overflows:pe}],Se=V[Te+1];if(Se)return{data:{index:Te+1,overflows:ye},reset:{placement:Se}};const Ae=ye.map(nt=>{const Tt=getAlignment(nt.placement);return[nt.placement,Tt&&ve?nt.overflows.slice(0,2).reduce((pt,Rt)=>pt+Rt,0):nt.overflows[0],nt.overflows]}).sort((nt,Tt)=>nt[1]-Tt[1]),xe=((_=Ae.filter(nt=>nt[2].slice(0,getAlignment(nt[0])?2:3).every(Tt=>Tt<=0))[0])==null?void 0:_[0])||Ae[0][0];return xe!==he?{data:{index:Te+1,overflows:ye},reset:{placement:xe}}:{}}}},v=function(T){return T===void 0&&(T={}),{name:"flip",options:T,async fn(A){var j,ae;const{placement:_,middlewareData:N,rects:W,initialPlacement:he,platform:me,elements:fe}=A,{mainAxis:ve=!0,crossAxis:ce=!0,fallbackPlacements:oe,fallbackStrategy:re="bestFit",fallbackAxisSideDirection:H="none",flipAlignment:V=!0,...Q}=(0,i._3)(T,A);if((j=N.arrow)!=null&&j.alignmentOffset)return{};const Te=(0,i.C0)(_),Re=(0,i.C0)(he)===he,ne=await(me.isRTL==null?void 0:me.isRTL(fe.floating)),pe=oe||(Re||!V?[(0,i.bV)(he)]:(0,i.WJ)(he));!oe&&H!=="none"&&pe.push(...(0,i.lP)(he,V,H,ne));const ye=[he,...pe],Se=await m(A,Q),Ae=[];let Ee=((ae=N.flip)==null?void 0:ae.overflows)||[];if(ve&&Ae.push(Se[Te]),ce){const pt=(0,i.w7)(_,W,ne);Ae.push(Se[pt[0]],Se[pt[1]])}if(Ee=[...Ee,{placement:_,overflows:Ae}],!Ae.every(pt=>pt<=0)){var xe,nt;const pt=(((xe=N.flip)==null?void 0:xe.index)||0)+1,Rt=ye[pt];if(Rt)return{data:{index:pt,overflows:Ee},reset:{placement:Rt}};let tt=(nt=Ee.filter(U=>U.overflows[0]<=0).sort((U,F)=>U.overflows[1]-F.overflows[1])[0])==null?void 0:nt.placement;if(!tt)switch(re){case"bestFit":{var Tt;const U=(Tt=Ee.map(F=>[F.placement,F.overflows.filter(Y=>Y>0).reduce((Y,le)=>Y+le,0)]).sort((F,Y)=>F[1]-Y[1])[0])==null?void 0:Tt[0];U&&(tt=U);break}case"initialPlacement":tt=he;break}if(_!==tt)return{reset:{placement:tt}}}return{}}}};function h(T,A){return{top:T.top-A.height,right:T.right-A.width,bottom:T.bottom-A.height,left:T.left-A.width}}function d(T){return sides.some(A=>T[A]>=0)}const b=function(T){return T===void 0&&(T={}),{name:"hide",options:T,async fn(A){const{rects:j}=A,{strategy:ae="referenceHidden",..._}=evaluate(T,A);switch(ae){case"referenceHidden":{const N=await m(A,{..._,elementContext:"reference"}),W=h(N,j.reference);return{data:{referenceHiddenOffsets:W,referenceHidden:d(W)}}}case"escaped":{const N=await m(A,{..._,altBoundary:!0}),W=h(N,j.floating);return{data:{escapedOffsets:W,escaped:d(W)}}}default:return{}}}}};function y(T){const A=min(...T.map(N=>N.left)),j=min(...T.map(N=>N.top)),ae=max(...T.map(N=>N.right)),_=max(...T.map(N=>N.bottom));return{x:A,y:j,width:ae-A,height:_-j}}function w(T){const A=T.slice().sort((_,N)=>_.y-N.y),j=[];let ae=null;for(let _=0;_<A.length;_++){const N=A[_];!ae||N.y-ae.y>ae.height/2?j.push([N]):j[j.length-1].push(N),ae=N}return j.map(_=>rectToClientRect(y(_)))}const S=function(T){return T===void 0&&(T={}),{name:"inline",options:T,async fn(A){const{placement:j,elements:ae,rects:_,platform:N,strategy:W}=A,{padding:he=2,x:me,y:fe}=evaluate(T,A),ve=Array.from(await(N.getClientRects==null?void 0:N.getClientRects(ae.reference))||[]),ce=w(ve),oe=rectToClientRect(y(ve)),re=getPaddingObject(he);function H(){if(ce.length===2&&ce[0].left>ce[1].right&&me!=null&&fe!=null)return ce.find(Q=>me>Q.left-re.left&&me<Q.right+re.right&&fe>Q.top-re.top&&fe<Q.bottom+re.bottom)||oe;if(ce.length>=2){if(getSideAxis(j)==="y"){const nt=ce[0],Tt=ce[ce.length-1],pt=getSide(j)==="top",Rt=nt.top,tt=Tt.bottom,U=pt?nt.left:Tt.left,F=pt?nt.right:Tt.right,Y=F-U,le=tt-Rt;return{top:Rt,bottom:tt,left:U,right:F,width:Y,height:le,x:U,y:Rt}}const Q=getSide(j)==="left",Te=max(...ce.map(nt=>nt.right)),Re=min(...ce.map(nt=>nt.left)),ne=ce.filter(nt=>Q?nt.left===Re:nt.right===Te),pe=ne[0].top,ye=ne[ne.length-1].bottom,Se=Re,Ae=Te,Ee=Ae-Se,xe=ye-pe;return{top:pe,bottom:ye,left:Se,right:Ae,width:Ee,height:xe,x:Se,y:pe}}return oe}const V=await N.getElementRects({reference:{getBoundingClientRect:H},floating:ae.floating,strategy:W});return _.reference.x!==V.reference.x||_.reference.y!==V.reference.y||_.reference.width!==V.reference.width||_.reference.height!==V.reference.height?{reset:{rects:V}}:{}}}};async function O(T,A){const{placement:j,platform:ae,elements:_}=T,N=await(ae.isRTL==null?void 0:ae.isRTL(_.floating)),W=(0,i.C0)(j),he=(0,i.Sg)(j),me=(0,i.TV)(j)==="y",fe=["left","top"].includes(W)?-1:1,ve=N&&me?-1:1,ce=(0,i._3)(A,T);let{mainAxis:oe,crossAxis:re,alignmentAxis:H}=typeof ce=="number"?{mainAxis:ce,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ce};return he&&typeof H=="number"&&(re=he==="end"?H*-1:H),me?{x:re*ve,y:oe*fe}:{x:oe*fe,y:re*ve}}const R=function(T){return T===void 0&&(T=0),{name:"offset",options:T,async fn(A){var j,ae;const{x:_,y:N,placement:W,middlewareData:he}=A,me=await O(A,T);return W===((j=he.offset)==null?void 0:j.placement)&&(ae=he.arrow)!=null&&ae.alignmentOffset?{}:{x:_+me.x,y:N+me.y,data:{...me,placement:W}}}}},M=function(T){return T===void 0&&(T={}),{name:"shift",options:T,async fn(A){const{x:j,y:ae,placement:_}=A,{mainAxis:N=!0,crossAxis:W=!1,limiter:he={fn:Q=>{let{x:Te,y:Re}=Q;return{x:Te,y:Re}}},...me}=(0,i._3)(T,A),fe={x:j,y:ae},ve=await m(A,me),ce=(0,i.TV)((0,i.C0)(_)),oe=(0,i.PG)(ce);let re=fe[oe],H=fe[ce];if(N){const Q=oe==="y"?"top":"left",Te=oe==="y"?"bottom":"right",Re=re+ve[Q],ne=re-ve[Te];re=(0,i.qE)(Re,re,ne)}if(W){const Q=ce==="y"?"top":"left",Te=ce==="y"?"bottom":"right",Re=H+ve[Q],ne=H-ve[Te];H=(0,i.qE)(Re,H,ne)}const V=he.fn({...A,[oe]:re,[ce]:H});return{...V,data:{x:V.x-j,y:V.y-ae}}}}},D=function(T){return T===void 0&&(T={}),{options:T,fn(A){const{x:j,y:ae,placement:_,rects:N,middlewareData:W}=A,{offset:he=0,mainAxis:me=!0,crossAxis:fe=!0}=evaluate(T,A),ve={x:j,y:ae},ce=getSideAxis(_),oe=getOppositeAxis(ce);let re=ve[oe],H=ve[ce];const V=evaluate(he,A),Q=typeof V=="number"?{mainAxis:V,crossAxis:0}:{mainAxis:0,crossAxis:0,...V};if(me){const ne=oe==="y"?"height":"width",pe=N.reference[oe]-N.floating[ne]+Q.mainAxis,ye=N.reference[oe]+N.reference[ne]-Q.mainAxis;re<pe?re=pe:re>ye&&(re=ye)}if(fe){var Te,Re;const ne=oe==="y"?"width":"height",pe=["top","left"].includes(getSide(_)),ye=N.reference[ce]-N.floating[ne]+(pe&&((Te=W.offset)==null?void 0:Te[ce])||0)+(pe?0:Q.crossAxis),Se=N.reference[ce]+N.reference[ne]+(pe?0:((Re=W.offset)==null?void 0:Re[ce])||0)-(pe?Q.crossAxis:0);H<ye?H=ye:H>Se&&(H=Se)}return{[oe]:re,[ce]:H}}}},P=function(T){return T===void 0&&(T={}),{name:"size",options:T,async fn(A){const{placement:j,rects:ae,platform:_,elements:N}=A,{apply:W=()=>{},...he}=(0,i._3)(T,A),me=await m(A,he),fe=(0,i.C0)(j),ve=(0,i.Sg)(j),ce=(0,i.TV)(j)==="y",{width:oe,height:re}=ae.floating;let H,V;fe==="top"||fe==="bottom"?(H=fe,V=ve===(await(_.isRTL==null?void 0:_.isRTL(N.floating))?"start":"end")?"left":"right"):(V=fe,H=ve==="end"?"top":"bottom");const Q=re-me[H],Te=oe-me[V],Re=!A.middlewareData.shift;let ne=Q,pe=Te;if(ce){const Se=oe-me.left-me.right;pe=ve||Re?(0,i.jk)(Te,Se):Se}else{const Se=re-me.top-me.bottom;ne=ve||Re?(0,i.jk)(Q,Se):Se}if(Re&&!ve){const Se=(0,i.T9)(me.left,0),Ae=(0,i.T9)(me.right,0),Ee=(0,i.T9)(me.top,0),xe=(0,i.T9)(me.bottom,0);ce?pe=oe-2*(Se!==0||Ae!==0?Se+Ae:(0,i.T9)(me.left,me.right)):ne=re-2*(Ee!==0||xe!==0?Ee+xe:(0,i.T9)(me.top,me.bottom))}await W({...A,availableWidth:pe,availableHeight:ne});const ye=await _.getDimensions(N.floating);return oe!==ye.width||re!==ye.height?{reset:{rects:!0}}:{}}}}},18491:(J,g,t)=>{"use strict";t.d(g,{BN:()=>re,Ej:()=>V,UE:()=>Te,UU:()=>H,iD:()=>fe,ll:()=>ce,rD:()=>pe});var i=t(97193),l=t(95361),s=t(86635);function m(ye){const Se=(0,s.L9)(ye);let Ae=parseFloat(Se.width)||0,Ee=parseFloat(Se.height)||0;const xe=(0,s.sb)(ye),nt=xe?ye.offsetWidth:Ae,Tt=xe?ye.offsetHeight:Ee,pt=(0,i.LI)(Ae)!==nt||(0,i.LI)(Ee)!==Tt;return pt&&(Ae=nt,Ee=Tt),{width:Ae,height:Ee,$:pt}}function u(ye){return(0,s.vq)(ye)?ye:ye.contextElement}function f(ye){const Se=u(ye);if(!(0,s.sb)(Se))return(0,i.Jx)(1);const Ae=Se.getBoundingClientRect(),{width:Ee,height:xe,$:nt}=m(Se);let Tt=(nt?(0,i.LI)(Ae.width):Ae.width)/Ee,pt=(nt?(0,i.LI)(Ae.height):Ae.height)/xe;return(!Tt||!Number.isFinite(Tt))&&(Tt=1),(!pt||!Number.isFinite(pt))&&(pt=1),{x:Tt,y:pt}}const p=(0,i.Jx)(0);function v(ye){const Se=(0,s.zk)(ye);return!(0,s.Tc)()||!Se.visualViewport?p:{x:Se.visualViewport.offsetLeft,y:Se.visualViewport.offsetTop}}function h(ye,Se,Ae){return Se===void 0&&(Se=!1),!Ae||Se&&Ae!==(0,s.zk)(ye)?!1:Se}function d(ye,Se,Ae,Ee){Se===void 0&&(Se=!1),Ae===void 0&&(Ae=!1);const xe=ye.getBoundingClientRect(),nt=u(ye);let Tt=(0,i.Jx)(1);Se&&(Ee?(0,s.vq)(Ee)&&(Tt=f(Ee)):Tt=f(ye));const pt=h(nt,Ae,Ee)?v(nt):(0,i.Jx)(0);let Rt=(xe.left+pt.x)/Tt.x,tt=(xe.top+pt.y)/Tt.y,U=xe.width/Tt.x,F=xe.height/Tt.y;if(nt){const Y=(0,s.zk)(nt),le=Ee&&(0,s.vq)(Ee)?(0,s.zk)(Ee):Ee;let ke=Y.frameElement;for(;ke&&Ee&&le!==Y;){const Ye=f(ke),ft=ke.getBoundingClientRect(),wt=(0,s.L9)(ke),Ut=ft.left+(ke.clientLeft+parseFloat(wt.paddingLeft))*Ye.x,Ke=ft.top+(ke.clientTop+parseFloat(wt.paddingTop))*Ye.y;Rt*=Ye.x,tt*=Ye.y,U*=Ye.x,F*=Ye.y,Rt+=Ut,tt+=Ke,ke=(0,s.zk)(ke).frameElement}}return(0,i.B1)({width:U,height:F,x:Rt,y:tt})}const b=[":popover-open",":modal"];function y(ye){let Se=!1,Ae=0,Ee=0;function xe(nt){try{Se=Se||ye.matches(nt)}catch{}}if(b.forEach(nt=>{xe(nt)}),Se){const nt=(0,s.gJ)(ye);if(nt){const Tt=nt.getBoundingClientRect();Ae=Tt.x,Ee=Tt.y}}return[Se,Ae,Ee]}function w(ye){let{elements:Se,rect:Ae,offsetParent:Ee,strategy:xe}=ye;const nt=(0,s.ep)(Ee),[Tt]=Se?y(Se.floating):[!1];if(Ee===nt||Tt)return Ae;let pt={scrollLeft:0,scrollTop:0},Rt=(0,i.Jx)(1);const tt=(0,i.Jx)(0),U=(0,s.sb)(Ee);if((U||!U&&xe!=="fixed")&&(((0,s.mq)(Ee)!=="body"||(0,s.ZU)(nt))&&(pt=(0,s.CP)(Ee)),(0,s.sb)(Ee))){const F=d(Ee);Rt=f(Ee),tt.x=F.x+Ee.clientLeft,tt.y=F.y+Ee.clientTop}return{width:Ae.width*Rt.x,height:Ae.height*Rt.y,x:Ae.x*Rt.x-pt.scrollLeft*Rt.x+tt.x,y:Ae.y*Rt.y-pt.scrollTop*Rt.y+tt.y}}function S(ye){return Array.from(ye.getClientRects())}function O(ye){return d((0,s.ep)(ye)).left+(0,s.CP)(ye).scrollLeft}function R(ye){const Se=(0,s.ep)(ye),Ae=(0,s.CP)(ye),Ee=ye.ownerDocument.body,xe=(0,i.T9)(Se.scrollWidth,Se.clientWidth,Ee.scrollWidth,Ee.clientWidth),nt=(0,i.T9)(Se.scrollHeight,Se.clientHeight,Ee.scrollHeight,Ee.clientHeight);let Tt=-Ae.scrollLeft+O(ye);const pt=-Ae.scrollTop;return(0,s.L9)(Ee).direction==="rtl"&&(Tt+=(0,i.T9)(Se.clientWidth,Ee.clientWidth)-xe),{width:xe,height:nt,x:Tt,y:pt}}function M(ye,Se){const Ae=(0,s.zk)(ye),Ee=(0,s.ep)(ye),xe=Ae.visualViewport;let nt=Ee.clientWidth,Tt=Ee.clientHeight,pt=0,Rt=0;if(xe){nt=xe.width,Tt=xe.height;const tt=(0,s.Tc)();(!tt||tt&&Se==="fixed")&&(pt=xe.offsetLeft,Rt=xe.offsetTop)}return{width:nt,height:Tt,x:pt,y:Rt}}function D(ye,Se){const Ae=d(ye,!0,Se==="fixed"),Ee=Ae.top+ye.clientTop,xe=Ae.left+ye.clientLeft,nt=(0,s.sb)(ye)?f(ye):(0,i.Jx)(1),Tt=ye.clientWidth*nt.x,pt=ye.clientHeight*nt.y,Rt=xe*nt.x,tt=Ee*nt.y;return{width:Tt,height:pt,x:Rt,y:tt}}function P(ye,Se,Ae){let Ee;if(Se==="viewport")Ee=M(ye,Ae);else if(Se==="document")Ee=R((0,s.ep)(ye));else if((0,s.vq)(Se))Ee=D(Se,Ae);else{const xe=v(ye);Ee={...Se,x:Se.x-xe.x,y:Se.y-xe.y}}return(0,i.B1)(Ee)}function T(ye,Se){const Ae=(0,s.$4)(ye);return Ae===Se||!(0,s.vq)(Ae)||(0,s.eu)(Ae)?!1:(0,s.L9)(Ae).position==="fixed"||T(Ae,Se)}function A(ye,Se){const Ae=Se.get(ye);if(Ae)return Ae;let Ee=(0,s.v9)(ye,[],!1).filter(pt=>(0,s.vq)(pt)&&(0,s.mq)(pt)!=="body"),xe=null;const nt=(0,s.L9)(ye).position==="fixed";let Tt=nt?(0,s.$4)(ye):ye;for(;(0,s.vq)(Tt)&&!(0,s.eu)(Tt);){const pt=(0,s.L9)(Tt),Rt=(0,s.sQ)(Tt);!Rt&&pt.position==="fixed"&&(xe=null),(nt?!Rt&&!xe:!Rt&&pt.position==="static"&&!!xe&&["absolute","fixed"].includes(xe.position)||(0,s.ZU)(Tt)&&!Rt&&T(ye,Tt))?Ee=Ee.filter(U=>U!==Tt):xe=pt,Tt=(0,s.$4)(Tt)}return Se.set(ye,Ee),Ee}function j(ye){let{element:Se,boundary:Ae,rootBoundary:Ee,strategy:xe}=ye;const Tt=[...Ae==="clippingAncestors"?A(Se,this._c):[].concat(Ae),Ee],pt=Tt[0],Rt=Tt.reduce((tt,U)=>{const F=P(Se,U,xe);return tt.top=(0,i.T9)(F.top,tt.top),tt.right=(0,i.jk)(F.right,tt.right),tt.bottom=(0,i.jk)(F.bottom,tt.bottom),tt.left=(0,i.T9)(F.left,tt.left),tt},P(Se,pt,xe));return{width:Rt.right-Rt.left,height:Rt.bottom-Rt.top,x:Rt.left,y:Rt.top}}function ae(ye){const{width:Se,height:Ae}=m(ye);return{width:Se,height:Ae}}function _(ye,Se,Ae,Ee){const xe=(0,s.sb)(Se),nt=(0,s.ep)(Se),Tt=Ae==="fixed",pt=d(ye,!0,Tt,Se);let Rt={scrollLeft:0,scrollTop:0};const tt=(0,i.Jx)(0);if(xe||!xe&&!Tt)if(((0,s.mq)(Se)!=="body"||(0,s.ZU)(nt))&&(Rt=(0,s.CP)(Se)),xe){const Ye=d(Se,!0,Tt,Se);tt.x=Ye.x+Se.clientLeft,tt.y=Ye.y+Se.clientTop}else nt&&(tt.x=O(nt));let U=pt.left+Rt.scrollLeft-tt.x,F=pt.top+Rt.scrollTop-tt.y;const[Y,le,ke]=y(Ee);return Y&&(U+=le,F+=ke,xe&&(U+=Se.clientLeft,F+=Se.clientTop)),{x:U,y:F,width:pt.width,height:pt.height}}function N(ye,Se){return!(0,s.sb)(ye)||(0,s.L9)(ye).position==="fixed"?null:Se?Se(ye):ye.offsetParent}function W(ye,Se){const Ae=(0,s.zk)(ye);if(!(0,s.sb)(ye))return Ae;let Ee=N(ye,Se);for(;Ee&&(0,s.Lv)(Ee)&&(0,s.L9)(Ee).position==="static";)Ee=N(Ee,Se);return Ee&&((0,s.mq)(Ee)==="html"||(0,s.mq)(Ee)==="body"&&(0,s.L9)(Ee).position==="static"&&!(0,s.sQ)(Ee))?Ae:Ee||(0,s.gJ)(ye)||Ae}const he=async function(ye){const Se=this.getOffsetParent||W,Ae=this.getDimensions;return{reference:_(ye.reference,await Se(ye.floating),ye.strategy,ye.floating),floating:{x:0,y:0,...await Ae(ye.floating)}}};function me(ye){return(0,s.L9)(ye).direction==="rtl"}const fe={convertOffsetParentRelativeRectToViewportRelativeRect:w,getDocumentElement:s.ep,getClippingRect:j,getOffsetParent:W,getElementRects:he,getClientRects:S,getDimensions:ae,getScale:f,isElement:s.vq,isRTL:me};function ve(ye,Se){let Ae=null,Ee;const xe=(0,s.ep)(ye);function nt(){var pt;clearTimeout(Ee),(pt=Ae)==null||pt.disconnect(),Ae=null}function Tt(pt,Rt){pt===void 0&&(pt=!1),Rt===void 0&&(Rt=1),nt();const{left:tt,top:U,width:F,height:Y}=ye.getBoundingClientRect();if(pt||Se(),!F||!Y)return;const le=(0,i.RI)(U),ke=(0,i.RI)(xe.clientWidth-(tt+F)),Ye=(0,i.RI)(xe.clientHeight-(U+Y)),ft=(0,i.RI)(tt),Ut={rootMargin:-le+"px "+-ke+"px "+-Ye+"px "+-ft+"px",threshold:(0,i.T9)(0,(0,i.jk)(1,Rt))||1};let Ke=!0;function it(At){const et=At[0].intersectionRatio;if(et!==Rt){if(!Ke)return Tt();et?Tt(!1,et):Ee=setTimeout(()=>{Tt(!1,1e-7)},100)}Ke=!1}try{Ae=new IntersectionObserver(it,{...Ut,root:xe.ownerDocument})}catch{Ae=new IntersectionObserver(it,Ut)}Ae.observe(ye)}return Tt(!0),nt}function ce(ye,Se,Ae,Ee){Ee===void 0&&(Ee={});const{ancestorScroll:xe=!0,ancestorResize:nt=!0,elementResize:Tt=typeof ResizeObserver=="function",layoutShift:pt=typeof IntersectionObserver=="function",animationFrame:Rt=!1}=Ee,tt=u(ye),U=xe||nt?[...tt?(0,s.v9)(tt):[],...(0,s.v9)(Se)]:[];U.forEach(wt=>{xe&&wt.addEventListener("scroll",Ae,{passive:!0}),nt&&wt.addEventListener("resize",Ae)});const F=tt&&pt?ve(tt,Ae):null;let Y=-1,le=null;Tt&&(le=new ResizeObserver(wt=>{let[Ut]=wt;Ut&&Ut.target===tt&&le&&(le.unobserve(Se),cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>{var Ke;(Ke=le)==null||Ke.observe(Se)})),Ae()}),tt&&!Rt&&le.observe(tt),le.observe(Se));let ke,Ye=Rt?d(ye):null;Rt&&ft();function ft(){const wt=d(ye);Ye&&(wt.x!==Ye.x||wt.y!==Ye.y||wt.width!==Ye.width||wt.height!==Ye.height)&&Ae(),Ye=wt,ke=requestAnimationFrame(ft)}return Ae(),()=>{var wt;U.forEach(Ut=>{xe&&Ut.removeEventListener("scroll",Ae),nt&&Ut.removeEventListener("resize",Ae)}),F?.(),(wt=le)==null||wt.disconnect(),le=null,Rt&&cancelAnimationFrame(ke)}}const oe=null,re=l.BN,H=l.UU,V=l.Ej,Q=null,Te=l.UE,Re=null,ne=null,pe=(ye,Se,Ae)=>{const Ee=new Map,xe={platform:fe,...Ae},nt={...xe.platform,_c:Ee};return(0,l.rD)(ye,Se,{...xe,platform:nt})}},34743:(J,g,t)=>{"use strict";t.d(g,{UE:()=>m,we:()=>d});var i=t(18491),l=t(96540),s=t(40961);const m=b=>{function y(w){return{}.hasOwnProperty.call(w,"current")}return{name:"arrow",options:b,fn(w){const{element:S,padding:O}=typeof b=="function"?b(w):b;return S&&y(S)?S.current!=null?(0,i.UE)({element:S.current,padding:O}).fn(w):{}:S?(0,i.UE)({element:S,padding:O}).fn(w):{}}}};var u=typeof document<"u"?l.useLayoutEffect:l.useEffect;function f(b,y){if(b===y)return!0;if(typeof b!=typeof y)return!1;if(typeof b=="function"&&b.toString()===y.toString())return!0;let w,S,O;if(b&&y&&typeof b=="object"){if(Array.isArray(b)){if(w=b.length,w!==y.length)return!1;for(S=w;S--!==0;)if(!f(b[S],y[S]))return!1;return!0}if(O=Object.keys(b),w=O.length,w!==Object.keys(y).length)return!1;for(S=w;S--!==0;)if(!{}.hasOwnProperty.call(y,O[S]))return!1;for(S=w;S--!==0;){const R=O[S];if(!(R==="_owner"&&b.$$typeof)&&!f(b[R],y[R]))return!1}return!0}return b!==b&&y!==y}function p(b){return typeof window>"u"?1:(b.ownerDocument.defaultView||window).devicePixelRatio||1}function v(b,y){const w=p(b);return Math.round(y*w)/w}function h(b){const y=l.useRef(b);return u(()=>{y.current=b}),y}function d(b){b===void 0&&(b={});const{placement:y="bottom",strategy:w="absolute",middleware:S=[],platform:O,elements:{reference:R,floating:M}={},transform:D=!0,whileElementsMounted:P,open:T}=b,[A,j]=l.useState({x:0,y:0,strategy:w,placement:y,middlewareData:{},isPositioned:!1}),[ae,_]=l.useState(S);f(ae,S)||_(S);const[N,W]=l.useState(null),[he,me]=l.useState(null),fe=l.useCallback(Ee=>{Ee!==re.current&&(re.current=Ee,W(Ee))},[]),ve=l.useCallback(Ee=>{Ee!==H.current&&(H.current=Ee,me(Ee))},[]),ce=R||N,oe=M||he,re=l.useRef(null),H=l.useRef(null),V=l.useRef(A),Q=P!=null,Te=h(P),Re=h(O),ne=l.useCallback(()=>{if(!re.current||!H.current)return;const Ee={placement:y,strategy:w,middleware:ae};Re.current&&(Ee.platform=Re.current),(0,i.rD)(re.current,H.current,Ee).then(xe=>{const nt={...xe,isPositioned:!0};pe.current&&!f(V.current,nt)&&(V.current=nt,s.flushSync(()=>{j(nt)}))})},[ae,y,w,Re]);u(()=>{T===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,j(Ee=>({...Ee,isPositioned:!1})))},[T]);const pe=l.useRef(!1);u(()=>(pe.current=!0,()=>{pe.current=!1}),[]),u(()=>{if(ce&&(re.current=ce),oe&&(H.current=oe),ce&&oe){if(Te.current)return Te.current(ce,oe,ne);ne()}},[ce,oe,ne,Te,Q]);const ye=l.useMemo(()=>({reference:re,floating:H,setReference:fe,setFloating:ve}),[fe,ve]),Se=l.useMemo(()=>({reference:ce,floating:oe}),[ce,oe]),Ae=l.useMemo(()=>{const Ee={position:w,left:0,top:0};if(!Se.floating)return Ee;const xe=v(Se.floating,A.x),nt=v(Se.floating,A.y);return D?{...Ee,transform:"translate("+xe+"px, "+nt+"px)",...p(Se.floating)>=1.5&&{willChange:"transform"}}:{position:w,left:xe,top:nt}},[w,D,Se.floating,A.x,A.y]);return l.useMemo(()=>({...A,update:ne,refs:ye,elements:Se,floatingStyles:Ae}),[A,ne,ye,Se,Ae])}},36376:(J,g,t)=>{"use strict";t.d(g,{ie:()=>hn,s3:()=>gr,iB:()=>Jo,kp:()=>ta,s9:()=>ro,we:()=>rn,iQ:()=>Dr,Mk:()=>bi,bv:()=>Di,DL:()=>cr});var i=t(96540),l=t.t(i,2),s=t(86635);function m(br){let Yn=br.activeElement;for(;((Z=Yn)==null||(Z=Z.shadowRoot)==null?void 0:Z.activeElement)!=null;){var Z;Yn=Yn.shadowRoot.activeElement}return Yn}function u(br,Yn){if(!br||!Yn)return!1;const Z=Yn.getRootNode==null?void 0:Yn.getRootNode();if(br.contains(Yn))return!0;if(Z&&(0,s.Ng)(Z)){let se=Yn;for(;se;){if(br===se)return!0;se=se.parentNode||se.host}}return!1}function f(){const br=navigator.userAgentData;return br!=null&&br.platform?br.platform:navigator.platform}function p(){const br=navigator.userAgentData;return br&&Array.isArray(br.brands)?br.brands.map(Yn=>{let{brand:Z,version:se}=Yn;return Z+"/"+se}).join(" "):navigator.userAgent}function v(br){return br.mozInputSource===0&&br.isTrusted?!0:b()&&br.pointerType?br.type==="click"&&br.buttons===1:br.detail===0&&!br.pointerType}function h(br){return w()?!1:!b()&&br.width===0&&br.height===0||b()&&br.width===1&&br.height===1&&br.pressure===0&&br.detail===0&&br.pointerType==="mouse"||br.width<1&&br.height<1&&br.pressure===0&&br.detail===0&&br.pointerType==="touch"}function d(){return/apple/i.test(navigator.vendor)}function b(){const br=/android/i;return br.test(f())||br.test(p())}function y(){return f().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function w(){return p().includes("jsdom/")}function S(br,Yn){const Z=["mouse","pen"];return Yn||Z.push("",void 0),Z.includes(br)}function O(br){return"nativeEvent"in br}function R(br){return br.matches("html,body")}function M(br){return br?.ownerDocument||document}function D(br,Yn){if(Yn==null)return!1;if("composedPath"in br)return br.composedPath().includes(Yn);const Z=br;return Z.target!=null&&Yn.contains(Z.target)}function P(br){return"composedPath"in br?br.composedPath()[0]:br.target}const T="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function A(br){return(0,s.sb)(br)&&br.matches(T)}function j(br){br.preventDefault(),br.stopPropagation()}function ae(br){return br?br.getAttribute("role")==="combobox"&&A(br):!1}var _=t(18491),N=t(34743);/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var W=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],he=W.join(","),me=typeof Element>"u",fe=me?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ve=!me&&Element.prototype.getRootNode?function(br){var Yn;return br==null||(Yn=br.getRootNode)===null||Yn===void 0?void 0:Yn.call(br)}:function(br){return br?.ownerDocument},ce=function br(Yn,Z){var se;Z===void 0&&(Z=!0);var G=Yn==null||(se=Yn.getAttribute)===null||se===void 0?void 0:se.call(Yn,"inert"),B=G===""||G==="true",Pe=B||Z&&Yn&&br(Yn.parentNode);return Pe},oe=function(Yn){var Z,se=Yn==null||(Z=Yn.getAttribute)===null||Z===void 0?void 0:Z.call(Yn,"contenteditable");return se===""||se==="true"},re=function(Yn,Z,se){if(ce(Yn))return[];var G=Array.prototype.slice.apply(Yn.querySelectorAll(he));return Z&&fe.call(Yn,he)&&G.unshift(Yn),G=G.filter(se),G},H=function br(Yn,Z,se){for(var G=[],B=Array.from(Yn);B.length;){var Pe=B.shift();if(!ce(Pe,!1))if(Pe.tagName==="SLOT"){var dt=Pe.assignedElements(),Lt=dt.length?dt:Pe.children,Pt=br(Lt,!0,se);se.flatten?G.push.apply(G,Pt):G.push({scopeParent:Pe,candidates:Pt})}else{var $e=fe.call(Pe,he);$e&&se.filter(Pe)&&(Z||!Yn.includes(Pe))&&G.push(Pe);var ut=Pe.shadowRoot||typeof se.getShadowRoot=="function"&&se.getShadowRoot(Pe),zt=!ce(ut,!1)&&(!se.shadowRootFilter||se.shadowRootFilter(Pe));if(ut&&zt){var Ht=br(ut===!0?Pe.children:ut.children,!0,se);se.flatten?G.push.apply(G,Ht):G.push({scopeParent:Pe,candidates:Ht})}else B.unshift.apply(B,Pe.children)}}return G},V=function(Yn){return!isNaN(parseInt(Yn.getAttribute("tabindex"),10))},Q=function(Yn){if(!Yn)throw new Error("No node provided");return Yn.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(Yn.tagName)||oe(Yn))&&!V(Yn)?0:Yn.tabIndex},Te=function(Yn,Z){var se=Q(Yn);return se<0&&Z&&!V(Yn)?0:se},Re=function(Yn,Z){return Yn.tabIndex===Z.tabIndex?Yn.documentOrder-Z.documentOrder:Yn.tabIndex-Z.tabIndex},ne=function(Yn){return Yn.tagName==="INPUT"},pe=function(Yn){return ne(Yn)&&Yn.type==="hidden"},ye=function(Yn){var Z=Yn.tagName==="DETAILS"&&Array.prototype.slice.apply(Yn.children).some(function(se){return se.tagName==="SUMMARY"});return Z},Se=function(Yn,Z){for(var se=0;se<Yn.length;se++)if(Yn[se].checked&&Yn[se].form===Z)return Yn[se]},Ae=function(Yn){if(!Yn.name)return!0;var Z=Yn.form||ve(Yn),se=function(dt){return Z.querySelectorAll('input[type="radio"][name="'+dt+'"]')},G;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")G=se(window.CSS.escape(Yn.name));else try{G=se(Yn.name)}catch(Pe){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",Pe.message),!1}var B=Se(G,Yn.form);return!B||B===Yn},Ee=function(Yn){return ne(Yn)&&Yn.type==="radio"},xe=function(Yn){return Ee(Yn)&&!Ae(Yn)},nt=function(Yn){var Z,se=Yn&&ve(Yn),G=(Z=se)===null||Z===void 0?void 0:Z.host,B=!1;if(se&&se!==Yn){var Pe,dt,Lt;for(B=!!((Pe=G)!==null&&Pe!==void 0&&(dt=Pe.ownerDocument)!==null&&dt!==void 0&&dt.contains(G)||Yn!=null&&(Lt=Yn.ownerDocument)!==null&&Lt!==void 0&&Lt.contains(Yn));!B&&G;){var Pt,$e,ut;se=ve(G),G=(Pt=se)===null||Pt===void 0?void 0:Pt.host,B=!!(($e=G)!==null&&$e!==void 0&&(ut=$e.ownerDocument)!==null&&ut!==void 0&&ut.contains(G))}}return B},Tt=function(Yn){var Z=Yn.getBoundingClientRect(),se=Z.width,G=Z.height;return se===0&&G===0},pt=function(Yn,Z){var se=Z.displayCheck,G=Z.getShadowRoot;if(getComputedStyle(Yn).visibility==="hidden")return!0;var B=fe.call(Yn,"details>summary:first-of-type"),Pe=B?Yn.parentElement:Yn;if(fe.call(Pe,"details:not([open]) *"))return!0;if(!se||se==="full"||se==="legacy-full"){if(typeof G=="function"){for(var dt=Yn;Yn;){var Lt=Yn.parentElement,Pt=ve(Yn);if(Lt&&!Lt.shadowRoot&&G(Lt)===!0)return Tt(Yn);Yn.assignedSlot?Yn=Yn.assignedSlot:!Lt&&Pt!==Yn.ownerDocument?Yn=Pt.host:Yn=Lt}Yn=dt}if(nt(Yn))return!Yn.getClientRects().length;if(se!=="legacy-full")return!0}else if(se==="non-zero-area")return Tt(Yn);return!1},Rt=function(Yn){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(Yn.tagName))for(var Z=Yn.parentElement;Z;){if(Z.tagName==="FIELDSET"&&Z.disabled){for(var se=0;se<Z.children.length;se++){var G=Z.children.item(se);if(G.tagName==="LEGEND")return fe.call(Z,"fieldset[disabled] *")?!0:!G.contains(Yn)}return!0}Z=Z.parentElement}return!1},tt=function(Yn,Z){return!(Z.disabled||ce(Z)||pe(Z)||pt(Z,Yn)||ye(Z)||Rt(Z))},U=function(Yn,Z){return!(xe(Z)||Q(Z)<0||!tt(Yn,Z))},F=function(Yn){var Z=parseInt(Yn.getAttribute("tabindex"),10);return!!(isNaN(Z)||Z>=0)},Y=function br(Yn){var Z=[],se=[];return Yn.forEach(function(G,B){var Pe=!!G.scopeParent,dt=Pe?G.scopeParent:G,Lt=Te(dt,Pe),Pt=Pe?br(G.candidates):dt;Lt===0?Pe?Z.push.apply(Z,Pt):Z.push(dt):se.push({documentOrder:B,tabIndex:Lt,item:G,isScope:Pe,content:Pt})}),se.sort(Re).reduce(function(G,B){return B.isScope?G.push.apply(G,B.content):G.push(B.content),G},[]).concat(Z)},le=function(Yn,Z){Z=Z||{};var se;return Z.getShadowRoot?se=H([Yn],Z.includeContainer,{filter:U.bind(null,Z),flatten:!1,getShadowRoot:Z.getShadowRoot,shadowRootFilter:F}):se=re(Yn,Z.includeContainer,U.bind(null,Z)),Y(se)},ke=function(Yn,Z){Z=Z||{};var se;return Z.getShadowRoot?se=H([Yn],Z.includeContainer,{filter:tt.bind(null,Z),flatten:!0,getShadowRoot:Z.getShadowRoot}):se=re(Yn,Z.includeContainer,tt.bind(null,Z)),se},Ye=function(Yn,Z){if(Z=Z||{},!Yn)throw new Error("No node provided");return fe.call(Yn,he)===!1?!1:U(Z,Yn)},ft=null,wt=function(Yn,Z){if(Z=Z||{},!Yn)throw new Error("No node provided");return fe.call(Yn,ft)===!1?!1:tt(Z,Yn)},Ut=t(40961);function Ke(br){return React.useMemo(()=>br.every(Yn=>Yn==null)?null:Yn=>{br.forEach(Z=>{typeof Z=="function"?Z(Yn):Z!=null&&(Z.current=Yn)})},br)}const At=l["useInsertionEffect".toString()]||(br=>br());function et(br){const Yn=i.useRef(()=>{});return At(()=>{Yn.current=br}),i.useCallback(function(){for(var Z=arguments.length,se=new Array(Z),G=0;G<Z;G++)se[G]=arguments[G];return Yn.current==null?void 0:Yn.current(...se)},[])}const ee="ArrowUp",I="ArrowDown",K="ArrowLeft",ue="ArrowRight";function De(br,Yn,Z){return Math.floor(br/Yn)!==Z}function He(br,Yn){return Yn<0||Yn>=br.current.length}function Fe(br,Yn){return qe(br,{disabledIndices:Yn})}function ze(br,Yn){return qe(br,{decrement:!0,startingIndex:br.current.length,disabledIndices:Yn})}function qe(br,Yn){let{startingIndex:Z=-1,decrement:se=!1,disabledIndices:G,amount:B=1}=Yn===void 0?{}:Yn;const Pe=br.current,dt=G?Pt=>G.includes(Pt):Pt=>{const $e=Pe[Pt];return $e==null||$e.hasAttribute("disabled")||$e.getAttribute("aria-disabled")==="true"};let Lt=Z;do Lt+=se?-B:B;while(Lt>=0&&Lt<=Pe.length-1&&dt(Lt));return Lt}function We(br,Yn){let{event:Z,orientation:se,loop:G,cols:B,disabledIndices:Pe,minIndex:dt,maxIndex:Lt,prevIndex:Pt,stopEvent:$e=!1}=Yn,ut=Pt;if(Z.key===ee){if($e&&stopEvent(Z),Pt===-1)ut=Lt;else if(ut=qe(br,{startingIndex:ut,amount:B,decrement:!0,disabledIndices:Pe}),G&&(Pt-B<dt||ut<0)){const zt=Pt%B,Ht=Lt%B,Fn=Lt-(Ht-zt);Ht===zt?ut=Lt:ut=Ht>zt?Fn:Fn-B}He(br,ut)&&(ut=Pt)}if(Z.key===I&&($e&&stopEvent(Z),Pt===-1?ut=dt:(ut=qe(br,{startingIndex:Pt,amount:B,disabledIndices:Pe}),G&&Pt+B>Lt&&(ut=qe(br,{startingIndex:Pt%B-B,amount:B,disabledIndices:Pe}))),He(br,ut)&&(ut=Pt)),se==="both"){const zt=floor(Pt/B);Z.key===ue&&($e&&stopEvent(Z),Pt%B!==B-1?(ut=qe(br,{startingIndex:Pt,disabledIndices:Pe}),G&&De(ut,B,zt)&&(ut=qe(br,{startingIndex:Pt-Pt%B-1,disabledIndices:Pe}))):G&&(ut=qe(br,{startingIndex:Pt-Pt%B-1,disabledIndices:Pe})),De(ut,B,zt)&&(ut=Pt)),Z.key===K&&($e&&stopEvent(Z),Pt%B!==0?(ut=qe(br,{startingIndex:Pt,disabledIndices:Pe,decrement:!0}),G&&De(ut,B,zt)&&(ut=qe(br,{startingIndex:Pt+(B-Pt%B),decrement:!0,disabledIndices:Pe}))):G&&(ut=qe(br,{startingIndex:Pt+(B-Pt%B),decrement:!0,disabledIndices:Pe})),De(ut,B,zt)&&(ut=Pt));const Ht=floor(Lt/B)===zt;He(br,ut)&&(G&&Ht?ut=Z.key===K?Lt:qe(br,{startingIndex:Pt-Pt%B-1,disabledIndices:Pe}):ut=Pt)}return ut}function _t(br,Yn,Z){const se=[];let G=0;return br.forEach((B,Pe)=>{let{width:dt,height:Lt}=B;dt>Yn;let Pt=!1;for(Z&&(G=0);!Pt;){const $e=[];for(let ut=0;ut<dt;ut++)for(let zt=0;zt<Lt;zt++)$e.push(G+ut+zt*Yn);G%Yn+dt<=Yn&&$e.every(ut=>se[ut]==null)?($e.forEach(ut=>{se[ut]=Pe}),Pt=!0):G++}}),[...se]}function ct(br,Yn,Z,se,G){if(br===-1)return-1;const B=Z.indexOf(br);switch(G){case"tl":return B;case"tr":return B+Yn[br].width-1;case"bl":return B+(Yn[br].height-1)*se;case"br":return Z.lastIndexOf(br)}}function Ge(br,Yn){return Yn.flatMap((Z,se)=>br.includes(Z)?[se]:[])}let st=0;function Me(br,Yn){Yn===void 0&&(Yn={});const{preventScroll:Z=!1,cancelPrevious:se=!0,sync:G=!1}=Yn;se&&cancelAnimationFrame(st);const B=()=>br?.focus({preventScroll:Z});G?B():st=requestAnimationFrame(B)}var ie=typeof document<"u"?i.useLayoutEffect:i.useEffect;function ge(br,Yn){const Z=br.compareDocumentPosition(Yn);return Z&Node.DOCUMENT_POSITION_FOLLOWING||Z&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:Z&Node.DOCUMENT_POSITION_PRECEDING||Z&Node.DOCUMENT_POSITION_CONTAINS?1:0}function z(br,Yn){if(br.size!==Yn.size)return!1;for(const[Z,se]of br.entries())if(se!==Yn.get(Z))return!1;return!0}const be=i.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Qe(br){let{children:Yn,elementsRef:Z,labelsRef:se}=br;const[G,B]=React.useState(()=>new Map),Pe=React.useCallback(Lt=>{B(Pt=>new Map(Pt).set(Lt,null))},[]),dt=React.useCallback(Lt=>{B(Pt=>{const $e=new Map(Pt);return $e.delete(Lt),$e})},[]);return ie(()=>{const Lt=new Map(G);Array.from(Lt.keys()).sort(ge).forEach(($e,ut)=>{Lt.set($e,ut)}),z(G,Lt)||B(Lt)},[G]),React.createElement(be.Provider,{value:React.useMemo(()=>({register:Pe,unregister:dt,map:G,elementsRef:Z,labelsRef:se}),[Pe,dt,G,Z,se])},Yn)}function Bt(br){let{label:Yn}=br===void 0?{}:br;const[Z,se]=React.useState(null),G=React.useRef(null),{register:B,unregister:Pe,map:dt,elementsRef:Lt,labelsRef:Pt}=React.useContext(be),$e=React.useCallback(ut=>{if(G.current=ut,Z!==null&&(Lt.current[Z]=ut,Pt)){var zt;const Ht=Yn!==void 0;Pt.current[Z]=Ht?Yn:(zt=ut?.textContent)!=null?zt:null}},[Z,Lt,Pt,Yn]);return ie(()=>{const ut=G.current;if(ut)return B(ut),()=>{Pe(ut)}},[B,Pe]),ie(()=>{const ut=G.current?dt.get(G.current):null;ut!=null&&se(ut)},[dt]),React.useMemo(()=>({ref:$e,index:Z??-1}),[Z,$e])}function nn(br,Yn){return typeof br=="function"?br(Yn):br?React.cloneElement(br,Yn):React.createElement("div",Yn)}const bt=i.createContext({activeIndex:0,onNavigate:()=>{}}),at=[K,ue],$t=[ee,I],On=[...at,...$t],Ct=null,Zt=null;function Wn(){return Wn=Object.assign?Object.assign.bind():function(br){for(var Yn=1;Yn<arguments.length;Yn++){var Z=arguments[Yn];for(var se in Z)Object.prototype.hasOwnProperty.call(Z,se)&&(br[se]=Z[se])}return br},Wn.apply(this,arguments)}let Zn=!1,xt=0;const Xe=()=>"floating-ui-"+xt++;function gn(){const[br,Yn]=i.useState(()=>Zn?Xe():void 0);return ie(()=>{br==null&&Yn(Xe())},[]),i.useEffect(()=>{Zn||(Zn=!0)},[]),br}const Dt=l["useId".toString()]||gn,hn=i.forwardRef(function(Yn,Z){let{context:{placement:se,elements:{floating:G},middlewareData:{arrow:B}},width:Pe=14,height:dt=7,tipRadius:Lt=0,strokeWidth:Pt=0,staticOffset:$e,stroke:ut,d:zt,style:{transform:Ht,...Fn}={},...Cn}=Yn;const tr=Dt();if(!G)return null;Pt*=2;const Jn=Pt/2,ei=Pe/2*(Lt/-8+1),Ci=dt/2*Lt/4,[zi,co]=se.split("-"),Xo=_.iD.isRTL(G),Eo=!!zt,Yo=zi==="top"||zi==="bottom",Xn=$e&&co==="end"?"bottom":"top";let fr=$e&&co==="end"?"right":"left";$e&&Xo&&(fr=co==="end"?"left":"right");const mr=B?.x!=null?$e||B.x:"",yr=B?.y!=null?$e||B.y:"",Rr=zt||"M0,0"+(" H"+Pe)+(" L"+(Pe-ei)+","+(dt-Ci))+(" Q"+Pe/2+","+dt+" "+ei+","+(dt-Ci))+" Z",ai={top:Eo?"rotate(180deg)":"",left:Eo?"rotate(90deg)":"rotate(-90deg)",bottom:Eo?"":"rotate(180deg)",right:Eo?"rotate(-90deg)":"rotate(90deg)"}[zi];return i.createElement("svg",Wn({},Cn,{"aria-hidden":!0,ref:Z,width:Eo?Pe:Pe+Pt,height:Pe,viewBox:"0 0 "+Pe+" "+(dt>Pe?dt:Pe),style:{position:"absolute",pointerEvents:"none",[fr]:mr,[Xn]:yr,[zi]:Yo||Eo?"100%":"calc(100% - "+Pt/2+"px)",transform:""+ai+(Ht??""),...Fn}}),Pt>0&&i.createElement("path",{clipPath:"url(#"+tr+")",fill:"none",stroke:ut,strokeWidth:Pt+(zt?0:1),d:Rr}),i.createElement("path",{stroke:Pt&&!zt?Cn.fill:"none",d:Rr}),i.createElement("clipPath",{id:tr},i.createElement("rect",{x:-Jn,y:Jn*(Eo?-1:1),width:Pe+Pt,height:Pe})))});function cn(){const br=new Map;return{emit(Yn,Z){var se;(se=br.get(Yn))==null||se.forEach(G=>G(Z))},on(Yn,Z){br.set(Yn,[...br.get(Yn)||[],Z])},off(Yn,Z){var se;br.set(Yn,((se=br.get(Yn))==null?void 0:se.filter(G=>G!==Z))||[])}}}const an=i.createContext(null),Or=i.createContext(null),Ln=()=>{var br;return((br=i.useContext(an))==null?void 0:br.id)||null},En=()=>i.useContext(Or);function Gn(br){const Yn=Dt(),Z=En(),se=Ln(),G=br||se;return ie(()=>{const B={id:Yn,parentId:G};return Z?.addNode(B),()=>{Z?.removeNode(B)}},[Z,Yn,G]),Yn}function rr(br){let{children:Yn,id:Z}=br;const se=Ln();return React.createElement(an.Provider,{value:React.useMemo(()=>({id:Z,parentId:se}),[Z,se])},Yn)}function sr(br){let{children:Yn}=br;const Z=React.useRef([]),se=React.useCallback(Pe=>{Z.current=[...Z.current,Pe]},[]),G=React.useCallback(Pe=>{Z.current=Z.current.filter(dt=>dt!==Pe)},[]),B=React.useState(()=>cn())[0];return React.createElement(Or.Provider,{value:React.useMemo(()=>({nodesRef:Z,addNode:se,removeNode:G,events:B}),[se,G,B])},Yn)}function pi(br){return"data-floating-ui-"+br}function yi(br){const Yn=(0,i.useRef)(br);return ie(()=>{Yn.current=br}),Yn}const jr=pi("safe-polygon");function ui(br,Yn,Z){return Z&&!S(Z)?0:typeof br=="number"?br:br?.[Yn]}function bi(br,Yn){Yn===void 0&&(Yn={});const{open:Z,onOpenChange:se,dataRef:G,events:B,elements:{domReference:Pe,floating:dt},refs:Lt}=br,{enabled:Pt=!0,delay:$e=0,handleClose:ut=null,mouseOnly:zt=!1,restMs:Ht=0,move:Fn=!0}=Yn,Cn=En(),tr=Ln(),Jn=yi(ut),ei=yi($e),Ci=i.useRef(),zi=i.useRef(),co=i.useRef(),Xo=i.useRef(),Eo=i.useRef(!0),Yo=i.useRef(!1),Xn=i.useRef(()=>{}),fr=i.useCallback(()=>{var ai;const jt=(ai=G.current.openEvent)==null?void 0:ai.type;return jt?.includes("mouse")&&jt!=="mousedown"},[G]);i.useEffect(()=>{if(!Pt)return;function ai(jt){let{open:Pn}=jt;Pn||(clearTimeout(zi.current),clearTimeout(Xo.current),Eo.current=!0)}return B.on("openchange",ai),()=>{B.off("openchange",ai)}},[Pt,B]),i.useEffect(()=>{if(!Pt||!Jn.current||!Z)return;function ai(Pn){fr()&&se(!1,Pn,"hover")}const jt=M(dt).documentElement;return jt.addEventListener("mouseleave",ai),()=>{jt.removeEventListener("mouseleave",ai)}},[dt,Z,se,Pt,Jn,fr]);const mr=i.useCallback(function(ai,jt,Pn){jt===void 0&&(jt=!0),Pn===void 0&&(Pn="hover");const nr=ui(ei.current,"close",Ci.current);nr&&!co.current?(clearTimeout(zi.current),zi.current=setTimeout(()=>se(!1,ai,Pn),nr)):jt&&(clearTimeout(zi.current),se(!1,ai,Pn))},[ei,se]),yr=i.useCallback(()=>{Xn.current(),co.current=void 0},[]),Rr=i.useCallback(()=>{if(Yo.current){const ai=M(Lt.floating.current).body;ai.style.pointerEvents="",ai.removeAttribute(jr),Yo.current=!1}},[Lt]);return i.useEffect(()=>{if(!Pt)return;function ai(){return G.current.openEvent?["click","mousedown"].includes(G.current.openEvent.type):!1}function jt(Ir){if(clearTimeout(zi.current),Eo.current=!1,zt&&!S(Ci.current)||Ht>0&&ui(ei.current,"open")===0)return;const fi=ui(ei.current,"open",Ci.current);fi?zi.current=setTimeout(()=>{se(!0,Ir,"hover")},fi):se(!0,Ir,"hover")}function Pn(Ir){if(ai())return;Xn.current();const fi=M(dt);if(clearTimeout(Xo.current),Jn.current){Z||clearTimeout(zi.current),co.current=Jn.current({...br,tree:Cn,x:Ir.clientX,y:Ir.clientY,onClose(){Rr(),yr(),mr(Ir,!0,"safe-polygon")}});const Oe=co.current;fi.addEventListener("mousemove",Oe),Xn.current=()=>{fi.removeEventListener("mousemove",Oe)};return}(Ci.current==="touch"?!u(dt,Ir.relatedTarget):!0)&&mr(Ir)}function nr(Ir){ai()||Jn.current==null||Jn.current({...br,tree:Cn,x:Ir.clientX,y:Ir.clientY,onClose(){Rr(),yr(),mr(Ir)}})(Ir)}if((0,s.vq)(Pe)){const Ir=Pe;return Z&&Ir.addEventListener("mouseleave",nr),dt?.addEventListener("mouseleave",nr),Fn&&Ir.addEventListener("mousemove",jt,{once:!0}),Ir.addEventListener("mouseenter",jt),Ir.addEventListener("mouseleave",Pn),()=>{Z&&Ir.removeEventListener("mouseleave",nr),dt?.removeEventListener("mouseleave",nr),Fn&&Ir.removeEventListener("mousemove",jt),Ir.removeEventListener("mouseenter",jt),Ir.removeEventListener("mouseleave",Pn)}}},[Pe,dt,Pt,br,zt,Ht,Fn,mr,yr,Rr,se,Z,Cn,ei,Jn,G]),ie(()=>{var ai;if(Pt&&Z&&(ai=Jn.current)!=null&&ai.__options.blockPointerEvents&&fr()){const Pn=M(dt).body;if(Pn.setAttribute(jr,""),Pn.style.pointerEvents="none",Yo.current=!0,(0,s.vq)(Pe)&&dt){var jt;const nr=Pe,Ir=Cn==null||(jt=Cn.nodesRef.current.find(fi=>fi.id===tr))==null||(jt=jt.context)==null?void 0:jt.elements.floating;return Ir&&(Ir.style.pointerEvents=""),nr.style.pointerEvents="auto",dt.style.pointerEvents="auto",()=>{nr.style.pointerEvents="",dt.style.pointerEvents=""}}}},[Pt,Z,tr,dt,Pe,Cn,Jn,fr]),ie(()=>{Z||(Ci.current=void 0,yr(),Rr())},[Z,yr,Rr]),i.useEffect(()=>()=>{yr(),clearTimeout(zi.current),clearTimeout(Xo.current),Rr()},[Pt,Pe,yr,Rr]),i.useMemo(()=>{if(!Pt)return{};function ai(jt){Ci.current=jt.pointerType}return{reference:{onPointerDown:ai,onPointerEnter:ai,onMouseMove(jt){Z||Ht===0||(clearTimeout(Xo.current),Xo.current=setTimeout(()=>{Eo.current||se(!0,jt.nativeEvent,"hover")},Ht))}},floating:{onMouseEnter(){clearTimeout(zi.current)},onMouseLeave(jt){mr(jt.nativeEvent,!1)}}}},[Pt,Ht,Z,se,mr])}const ri=i.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),hi=()=>React.useContext(ri),Si=br=>{let{children:Yn,delay:Z,timeoutMs:se=0}=br;const[G,B]=React.useReducer((Lt,Pt)=>({...Lt,...Pt}),{delay:Z,timeoutMs:se,initialDelay:Z,currentId:null,isInstantPhase:!1}),Pe=React.useRef(null),dt=React.useCallback(Lt=>{B({currentId:Lt})},[]);return ie(()=>{G.currentId?Pe.current===null?Pe.current=G.currentId:B({isInstantPhase:!0}):(B({isInstantPhase:!1}),Pe.current=null)},[G.currentId]),React.createElement(ri.Provider,{value:React.useMemo(()=>({...G,setState:B,setCurrentId:dt}),[G,dt])},Yn)},Kr=(br,Yn)=>{let{open:Z,onOpenChange:se}=br,{id:G}=Yn;const{currentId:B,setCurrentId:Pe,initialDelay:dt,setState:Lt,timeoutMs:Pt}=hi();ie(()=>{B&&(Lt({delay:{open:1,close:ui(dt,"close")}}),B!==G&&se(!1))},[G,se,Lt,B,dt]),ie(()=>{function $e(){se(!1),Lt({delay:dt,currentId:null})}if(!Z&&B===G){if(Pt){const ut=window.setTimeout($e,Pt);return()=>{clearTimeout(ut)}}$e()}},[Z,Lt,B,G,se,dt,Pt]),ie(()=>{Z&&Pe(G)},[Z,Pe,G])};function xi(br,Yn){var Z;let se=[],G=(Z=br.find(B=>B.id===Yn))==null?void 0:Z.parentId;for(;G;){const B=br.find(Pe=>Pe.id===G);G=B?.parentId,B&&(se=se.concat(B))}return se}function Ai(br,Yn){let Z=br.filter(G=>{var B;return G.parentId===Yn&&((B=G.context)==null?void 0:B.open)}),se=Z;for(;se.length;)se=br.filter(G=>{var B;return(B=se)==null?void 0:B.some(Pe=>{var dt;return G.parentId===Pe.id&&((dt=G.context)==null?void 0:dt.open)})}),Z=Z.concat(se);return Z}function Pi(br,Yn){let Z,se=-1;function G(B,Pe){Pe>se&&(Z=B,se=Pe),Ai(br,B).forEach(Lt=>{G(Lt.id,Pe+1)})}return G(Yn,0),br.find(B=>B.id===Z)}let io=new WeakMap,lo=new WeakSet,Gr={},un=0;const qn=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,kn=br=>br&&(br.host||kn(br.parentNode)),St=(br,Yn)=>Yn.map(Z=>{if(br.contains(Z))return Z;const se=kn(Z);return br.contains(se)?se:null}).filter(Z=>Z!=null);function ln(br,Yn,Z,se){const G="data-floating-ui-inert",B=se?"inert":Z?"aria-hidden":null,Pe=St(Yn,br),dt=new Set,Lt=new Set(Pe),Pt=[];Gr[G]||(Gr[G]=new WeakMap);const $e=Gr[G];Pe.forEach(ut),zt(Yn),dt.clear();function ut(Ht){!Ht||dt.has(Ht)||(dt.add(Ht),Ht.parentNode&&ut(Ht.parentNode))}function zt(Ht){!Ht||Lt.has(Ht)||Array.prototype.forEach.call(Ht.children,Fn=>{if(dt.has(Fn))zt(Fn);else{const Cn=B?Fn.getAttribute(B):null,tr=Cn!==null&&Cn!=="false",Jn=(io.get(Fn)||0)+1,ei=($e.get(Fn)||0)+1;io.set(Fn,Jn),$e.set(Fn,ei),Pt.push(Fn),Jn===1&&tr&&lo.add(Fn),ei===1&&Fn.setAttribute(G,""),!tr&&B&&Fn.setAttribute(B,"true")}})}return un++,()=>{Pt.forEach(Ht=>{const Fn=(io.get(Ht)||0)-1,Cn=($e.get(Ht)||0)-1;io.set(Ht,Fn),$e.set(Ht,Cn),Fn||(!lo.has(Ht)&&B&&Ht.removeAttribute(B),lo.delete(Ht)),Cn||Ht.removeAttribute(G)}),un--,un||(io=new WeakMap,io=new WeakMap,lo=new WeakSet,Gr={})}}function An(br,Yn,Z){Yn===void 0&&(Yn=!1),Z===void 0&&(Z=!1);const se=M(br[0]).body;return ln(br.concat(Array.from(se.querySelectorAll("[aria-live]"))),se,Yn,Z)}const Cr=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function _i(br,Yn){const Z=le(br,Cr());Yn==="prev"&&Z.reverse();const se=Z.indexOf(m(M(br)));return Z.slice(se+1)[0]}function Sn(){return _i(document.body,"next")}function ir(){return _i(document.body,"prev")}function mt(br,Yn){const Z=Yn||br.currentTarget,se=br.relatedTarget;return!se||!u(Z,se)}function fn(br){tabbable(br,Cr()).forEach(Z=>{Z.dataset.tabindex=Z.getAttribute("tabindex")||"",Z.setAttribute("tabindex","-1")})}function gt(br){br.querySelectorAll("[data-tabindex]").forEach(Z=>{const se=Z.dataset.tabindex;delete Z.dataset.tabindex,se?Z.setAttribute("tabindex",se):Z.removeAttribute("tabindex")})}const tn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Vn;function Ur(br){br.key==="Tab"&&(br.target,clearTimeout(Vn))}const $r=i.forwardRef(function(Yn,Z){const[se,G]=i.useState();ie(()=>(d()&&G("button"),document.addEventListener("keydown",Ur),()=>{document.removeEventListener("keydown",Ur)}),[]);const B={ref:Z,tabIndex:0,role:se,"aria-hidden":se?void 0:!0,[pi("focus-guard")]:"",style:tn};return i.createElement("span",Wn({},Yn,B))}),Pr=i.createContext(null),zr=null;function gi(br){let{id:Yn,root:Z}=br===void 0?{}:br;const[se,G]=React.useState(null),B=Dt(),Pe=eo(),dt=React.useRef(null);return ie(()=>()=>{se?.remove(),queueMicrotask(()=>{dt.current=null})},[se]),ie(()=>{if(dt.current)return;const Lt=Yn?document.getElementById(Yn):null;if(!Lt)return;const Pt=document.createElement("div");Pt.id=B,Pt.setAttribute(zr,""),Lt.appendChild(Pt),dt.current=Pt,G(Pt)},[Yn,B]),ie(()=>{if(dt.current)return;let Lt=Z||Pe?.portalNode;Lt&&!isElement(Lt)&&(Lt=Lt.current),Lt=Lt||document.body;let Pt=null;Yn&&(Pt=document.createElement("div"),Pt.id=Yn,Lt.appendChild(Pt));const $e=document.createElement("div");$e.id=B,$e.setAttribute(zr,""),Lt=Pt||Lt,Lt.appendChild($e),dt.current=$e,G($e)},[Yn,Z,B,Pe]),se}function $i(br){let{children:Yn,id:Z,root:se=null,preserveTabOrder:G=!0}=br;const B=gi({id:Z,root:se}),[Pe,dt]=React.useState(null),Lt=React.useRef(null),Pt=React.useRef(null),$e=React.useRef(null),ut=React.useRef(null),zt=!!Pe&&!Pe.modal&&Pe.open&&G&&!!(se||B);return React.useEffect(()=>{if(!B||!G||Pe!=null&&Pe.modal)return;function Ht(Fn){B&&mt(Fn)&&(Fn.type==="focusin"?gt:fn)(B)}return B.addEventListener("focusin",Ht,!0),B.addEventListener("focusout",Ht,!0),()=>{B.removeEventListener("focusin",Ht,!0),B.removeEventListener("focusout",Ht,!0)}},[B,G,Pe?.modal]),React.createElement(Pr.Provider,{value:React.useMemo(()=>({preserveTabOrder:G,beforeOutsideRef:Lt,afterOutsideRef:Pt,beforeInsideRef:$e,afterInsideRef:ut,portalNode:B,setFocusManagerState:dt}),[G,B])},zt&&B&&React.createElement($r,{"data-type":"outside",ref:Lt,onFocus:Ht=>{if(mt(Ht,B)){var Fn;(Fn=$e.current)==null||Fn.focus()}else{const Cn=ir()||Pe?.refs.domReference.current;Cn?.focus()}}}),zt&&B&&React.createElement("span",{"aria-owns":B.id,style:tn}),B&&createPortal(Yn,B),zt&&B&&React.createElement($r,{"data-type":"outside",ref:Pt,onFocus:Ht=>{if(mt(Ht,B)){var Fn;(Fn=ut.current)==null||Fn.focus()}else{const Cn=Sn()||Pe?.refs.domReference.current;Cn?.focus(),Pe?.closeOnFocusOut&&Pe?.onOpenChange(!1,Ht.nativeEvent)}}}))}const eo=()=>i.useContext(Pr),ki=20;let so=[];function Ho(br){so=so.filter(Yn=>Yn.isConnected),br&&(0,s.mq)(br)!=="body"&&(so.push(br),so.length>ki&&(so=so.slice(-ki)))}function ra(){return so.slice().reverse().find(br=>br.isConnected)}const So=i.forwardRef(function(Yn,Z){return i.createElement("button",Wn({},Yn,{type:"button",ref:Z,tabIndex:-1,style:tn}))});function gr(br){const{context:Yn,children:Z,disabled:se=!1,order:G=["content"],guards:B=!0,initialFocus:Pe=0,returnFocus:dt=!0,modal:Lt=!0,visuallyHiddenDismiss:Pt=!1,closeOnFocusOut:$e=!0}=br,{open:ut,refs:zt,nodeId:Ht,onOpenChange:Fn,events:Cn,dataRef:tr,elements:{domReference:Jn,floating:ei}}=Yn,Ci=typeof Pe=="number"&&Pe<0,zi=ae(Jn)&&Ci,co=qn()?B:!0,Xo=yi(G),Eo=yi(Pe),Yo=yi(dt),Xn=En(),fr=eo(),mr=i.useRef(null),yr=i.useRef(null),Rr=i.useRef(!1),ai=i.useRef(!1),jt=fr!=null,Pn=i.useCallback(function(Ti){return Ti===void 0&&(Ti=ei),Ti?le(Ti,Cr()):[]},[ei]),nr=i.useCallback(Ti=>{const Oe=Pn(Ti);return Xo.current.map(pn=>Jn&&pn==="reference"?Jn:ei&&pn==="floating"?ei:Oe).filter(Boolean).flat()},[Jn,ei,Xo,Pn]);i.useEffect(()=>{if(se||!Lt)return;function Ti(pn){if(pn.key==="Tab"){u(ei,m(M(ei)))&&Pn().length===0&&!zi&&j(pn);const Qn=nr(),Sr=P(pn);Xo.current[0]==="reference"&&Sr===Jn&&(j(pn),pn.shiftKey?Me(Qn[Qn.length-1]):Me(Qn[1])),Xo.current[1]==="floating"&&Sr===ei&&pn.shiftKey&&(j(pn),Me(Qn[0]))}}const Oe=M(ei);return Oe.addEventListener("keydown",Ti),()=>{Oe.removeEventListener("keydown",Ti)}},[se,Jn,ei,Lt,Xo,zi,Pn,nr]),i.useEffect(()=>{if(se||!$e)return;function Ti(){ai.current=!0,setTimeout(()=>{ai.current=!1})}function Oe(pn){const Qn=pn.relatedTarget;queueMicrotask(()=>{const Sr=!(u(Jn,Qn)||u(ei,Qn)||u(Qn,ei)||u(fr?.portalNode,Qn)||Qn!=null&&Qn.hasAttribute(pi("focus-guard"))||Xn&&(Ai(Xn.nodesRef.current,Ht).find(hr=>{var kr,Ve;return u((kr=hr.context)==null?void 0:kr.elements.floating,Qn)||u((Ve=hr.context)==null?void 0:Ve.elements.domReference,Qn)})||xi(Xn.nodesRef.current,Ht).find(hr=>{var kr,Ve;return((kr=hr.context)==null?void 0:kr.elements.floating)===Qn||((Ve=hr.context)==null?void 0:Ve.elements.domReference)===Qn})));Qn&&Sr&&!ai.current&&Qn!==ra()&&(Rr.current=!0,Fn(!1,pn))})}if(ei&&(0,s.sb)(Jn))return Jn.addEventListener("focusout",Oe),Jn.addEventListener("pointerdown",Ti),!Lt&&ei.addEventListener("focusout",Oe),()=>{Jn.removeEventListener("focusout",Oe),Jn.removeEventListener("pointerdown",Ti),!Lt&&ei.removeEventListener("focusout",Oe)}},[se,Jn,ei,Lt,Ht,Xn,fr,Fn,$e]),i.useEffect(()=>{var Ti;if(se)return;const Oe=Array.from((fr==null||(Ti=fr.portalNode)==null?void 0:Ti.querySelectorAll("["+pi("portal")+"]"))||[]);if(ei){const pn=[ei,...Oe,mr.current,yr.current,Xo.current.includes("reference")||zi?Jn:null].filter(Sr=>Sr!=null),Qn=Lt||zi?An(pn,co,!co):An(pn);return()=>{Qn()}}},[se,Jn,ei,Lt,Xo,fr,zi,co]),ie(()=>{if(se||!ei)return;const Ti=M(ei),Oe=m(Ti);queueMicrotask(()=>{const pn=nr(ei),Qn=Eo.current,Sr=(typeof Qn=="number"?pn[Qn]:Qn.current)||ei,hr=u(ei,Oe);!Ci&&!hr&&ut&&Me(Sr,{preventScroll:Sr===ei})})},[se,ut,ei,Ci,nr,Eo]),ie(()=>{if(se||!ei)return;let Ti=!1;const Oe=M(ei),pn=m(Oe),Qn=tr.current;Ho(pn);function Sr(hr){let{reason:kr,event:Ve,nested:Ot}=hr;kr==="escape-key"&&zt.domReference.current&&Ho(zt.domReference.current),kr==="hover"&&Ve.type==="mouseleave"&&(Rr.current=!0),kr==="outside-press"&&(Ot?(Rr.current=!1,Ti=!0):Rr.current=!(v(Ve)||h(Ve)))}return Cn.on("openchange",Sr),()=>{Cn.off("openchange",Sr);const hr=m(Oe),kr=u(ei,hr)||Xn&&Ai(Xn.nodesRef.current,Ht).some(wn=>{var Wt;return u((Wt=wn.context)==null?void 0:Wt.elements.floating,hr)});(kr||Qn.openEvent&&["click","mousedown"].includes(Qn.openEvent.type))&&zt.domReference.current&&Ho(zt.domReference.current);const Ot=ra();Yo.current&&!Rr.current&&(0,s.sb)(Ot)&&(!(Ot!==hr&&hr!==Oe.body)||kr)&&Me(Ot,{cancelPrevious:!1,preventScroll:Ti})}},[se,ei,Yo,tr,zt,Cn,Xn,Ht]),ie(()=>{if(!(se||!fr))return fr.setFocusManagerState({modal:Lt,closeOnFocusOut:$e,open:ut,onOpenChange:Fn,refs:zt}),()=>{fr.setFocusManagerState(null)}},[se,fr,Lt,ut,Fn,zt,$e]),ie(()=>{if(se||!ei||typeof MutationObserver!="function"||Ci)return;const Ti=()=>{const pn=ei.getAttribute("tabindex");Xo.current.includes("floating")||m(M(ei))!==zt.domReference.current&&Pn().length===0?pn!=="0"&&ei.setAttribute("tabindex","0"):pn!=="-1"&&ei.setAttribute("tabindex","-1")};Ti();const Oe=new MutationObserver(Ti);return Oe.observe(ei,{childList:!0,subtree:!0,attributes:!0}),()=>{Oe.disconnect()}},[se,ei,zt,Xo,Pn,Ci]);function Ir(Ti){return se||!Pt||!Lt?null:i.createElement(So,{ref:Ti==="start"?mr:yr,onClick:Oe=>Fn(!1,Oe.nativeEvent)},typeof Pt=="string"?Pt:"Dismiss")}const fi=!se&&co&&(jt||Lt);return i.createElement(i.Fragment,null,fi&&i.createElement($r,{"data-type":"inside",ref:fr?.beforeInsideRef,onFocus:Ti=>{if(Lt){const pn=nr();Me(G[0]==="reference"?pn[0]:pn[pn.length-1])}else if(fr!=null&&fr.preserveTabOrder&&fr.portalNode)if(Rr.current=!1,mt(Ti,fr.portalNode)){const pn=Sn()||Jn;pn?.focus()}else{var Oe;(Oe=fr.beforeOutsideRef.current)==null||Oe.focus()}}}),!zi&&Ir("start"),Z,Ir("end"),fi&&i.createElement($r,{"data-type":"inside",ref:fr?.afterInsideRef,onFocus:Ti=>{if(Lt)Me(nr()[0]);else if(fr!=null&&fr.preserveTabOrder&&fr.portalNode)if($e&&(Rr.current=!0),mt(Ti,fr.portalNode)){const pn=ir()||Jn;pn?.focus()}else{var Oe;(Oe=fr.afterOutsideRef.current)==null||Oe.focus()}}}))}const di=new Set,Vi=null;function Ro(br){return(0,s.sb)(br.target)&&br.target.tagName==="BUTTON"}function na(br){return A(br)}function ta(br,Yn){Yn===void 0&&(Yn={});const{open:Z,onOpenChange:se,dataRef:G,elements:{domReference:B}}=br,{enabled:Pe=!0,event:dt="click",toggle:Lt=!0,ignoreMouse:Pt=!1,keyboardHandlers:$e=!0}=Yn,ut=i.useRef(),zt=i.useRef(!1);return i.useMemo(()=>Pe?{reference:{onPointerDown(Ht){ut.current=Ht.pointerType},onMouseDown(Ht){Ht.button===0&&(S(ut.current,!0)&&Pt||dt!=="click"&&(Z&&Lt&&(!G.current.openEvent||G.current.openEvent.type==="mousedown")?se(!1,Ht.nativeEvent,"click"):(Ht.preventDefault(),se(!0,Ht.nativeEvent,"click"))))},onClick(Ht){if(dt==="mousedown"&&ut.current){ut.current=void 0;return}S(ut.current,!0)&&Pt||(Z&&Lt&&(!G.current.openEvent||G.current.openEvent.type==="click")?se(!1,Ht.nativeEvent,"click"):se(!0,Ht.nativeEvent,"click"))},onKeyDown(Ht){ut.current=void 0,!(Ht.defaultPrevented||!$e||Ro(Ht))&&(Ht.key===" "&&!na(B)&&(Ht.preventDefault(),zt.current=!0),Ht.key==="Enter"&&se(!(Z&&Lt),Ht.nativeEvent,"click"))},onKeyUp(Ht){Ht.defaultPrevented||!$e||Ro(Ht)||na(B)||Ht.key===" "&&zt.current&&(zt.current=!1,se(!(Z&&Lt),Ht.nativeEvent,"click"))}}}:{},[Pe,G,dt,Pt,$e,B,Lt,Z,se])}function aa(br,Yn){let Z=null,se=null,G=!1;return{contextElement:br.current||void 0,getBoundingClientRect(){var B,Pe;const dt=((B=br.current)==null?void 0:B.getBoundingClientRect())||{width:0,height:0,x:0,y:0},Lt=Yn.axis==="x"||Yn.axis==="both",Pt=Yn.axis==="y"||Yn.axis==="both",$e=["mouseenter","mousemove"].includes(((Pe=Yn.dataRef.current.openEvent)==null?void 0:Pe.type)||"")&&Yn.pointerType!=="touch";let ut=dt.width,zt=dt.height,Ht=dt.x,Fn=dt.y;return Z==null&&Yn.x&&Lt&&(Z=dt.x-Yn.x),se==null&&Yn.y&&Pt&&(se=dt.y-Yn.y),Ht-=Z||0,Fn-=se||0,ut=0,zt=0,!G||$e?(ut=Yn.axis==="y"?dt.width:0,zt=Yn.axis==="x"?dt.height:0,Ht=Lt&&Yn.x!=null?Yn.x:Ht,Fn=Pt&&Yn.y!=null?Yn.y:Fn):G&&!$e&&(zt=Yn.axis==="x"?dt.height:zt,ut=Yn.axis==="y"?dt.width:ut),G=!0,{width:ut,height:zt,x:Ht,y:Fn,top:Fn,right:Ht+ut,bottom:Fn+zt,left:Ht}}}}function vi(br){return br!=null&&br.clientX!=null}function to(br,Yn){Yn===void 0&&(Yn={});const{open:Z,refs:se,dataRef:G,elements:{floating:B}}=br,{enabled:Pe=!0,axis:dt="both",x:Lt=null,y:Pt=null}=Yn,$e=React.useRef(!1),ut=React.useRef(null),[zt,Ht]=React.useState(),[Fn,Cn]=React.useState([]),tr=et((zi,co)=>{$e.current||G.current.openEvent&&!vi(G.current.openEvent)||se.setPositionReference(aa(se.domReference,{x:zi,y:co,axis:dt,dataRef:G,pointerType:zt}))}),Jn=et(zi=>{Lt!=null||Pt!=null||(Z?ut.current||Cn([]):tr(zi.clientX,zi.clientY))}),ei=isMouseLikePointerType(zt)?B:Z,Ci=React.useCallback(()=>{if(!ei||!Pe||Lt!=null||Pt!=null)return;const zi=getWindow(se.floating.current);function co(Xo){const Eo=getTarget(Xo);contains(se.floating.current,Eo)?(zi.removeEventListener("mousemove",co),ut.current=null):tr(Xo.clientX,Xo.clientY)}if(!G.current.openEvent||vi(G.current.openEvent)){zi.addEventListener("mousemove",co);const Xo=()=>{zi.removeEventListener("mousemove",co),ut.current=null};return ut.current=Xo,Xo}se.setPositionReference(se.domReference.current)},[G,Pe,ei,se,tr,Lt,Pt]);return React.useEffect(()=>Ci(),[Ci,Fn]),React.useEffect(()=>{Pe&&!B&&($e.current=!1)},[Pe,B]),React.useEffect(()=>{!Pe&&Z&&($e.current=!0)},[Pe,Z]),ie(()=>{Pe&&(Lt!=null||Pt!=null)&&($e.current=!1,tr(Lt,Pt))},[Pe,Lt,Pt,tr]),React.useMemo(()=>{if(!Pe)return{};function zi(co){let{pointerType:Xo}=co;Ht(Xo)}return{reference:{onPointerDown:zi,onPointerEnter:zi,onMouseMove:Jn,onMouseEnter:Jn}}},[Pe,Jn])}const $o={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ja={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},hs=br=>{var Yn,Z;return{escapeKey:typeof br=="boolean"?br:(Yn=br?.escapeKey)!=null?Yn:!1,outsidePress:typeof br=="boolean"?br:(Z=br?.outsidePress)!=null?Z:!0}};function ro(br,Yn){Yn===void 0&&(Yn={});const{open:Z,onOpenChange:se,nodeId:G,elements:{reference:B,domReference:Pe,floating:dt},dataRef:Lt}=br,{enabled:Pt=!0,escapeKey:$e=!0,outsidePress:ut=!0,outsidePressEvent:zt="pointerdown",referencePress:Ht=!1,referencePressEvent:Fn="pointerdown",ancestorScroll:Cn=!1,bubbles:tr,capture:Jn}=Yn,ei=En(),Ci=et(typeof ut=="function"?ut:()=>!1),zi=typeof ut=="function"?Ci:ut,co=i.useRef(!1),Xo=i.useRef(!1),{escapeKey:Eo,outsidePress:Yo}=hs(tr),{escapeKey:Xn,outsidePress:fr}=hs(Jn),mr=et(jt=>{if(!Z||!Pt||!$e||jt.key!=="Escape")return;const Pn=ei?Ai(ei.nodesRef.current,G):[];if(!Eo&&(jt.stopPropagation(),Pn.length>0)){let nr=!0;if(Pn.forEach(Ir=>{var fi;if((fi=Ir.context)!=null&&fi.open&&!Ir.context.dataRef.current.__escapeKeyBubbles){nr=!1;return}}),!nr)return}se(!1,O(jt)?jt.nativeEvent:jt,"escape-key")}),yr=et(jt=>{var Pn;const nr=()=>{var Ir;mr(jt),(Ir=P(jt))==null||Ir.removeEventListener("keydown",nr)};(Pn=P(jt))==null||Pn.addEventListener("keydown",nr)}),Rr=et(jt=>{const Pn=co.current;co.current=!1;const nr=Xo.current;if(Xo.current=!1,zt==="click"&&nr||Pn||typeof zi=="function"&&!zi(jt))return;const Ir=P(jt),fi="["+pi("inert")+"]",Ti=M(dt).querySelectorAll(fi);let Oe=(0,s.vq)(Ir)?Ir:null;for(;Oe&&!(0,s.eu)(Oe);){const Sr=(0,s.$4)(Oe);if((0,s.eu)(Sr)||!(0,s.vq)(Sr))break;Oe=Sr}if(Ti.length&&(0,s.vq)(Ir)&&!R(Ir)&&!u(Ir,dt)&&Array.from(Ti).every(Sr=>!u(Oe,Sr)))return;if((0,s.sb)(Ir)&&dt){const Sr=Ir.clientWidth>0&&Ir.scrollWidth>Ir.clientWidth,hr=Ir.clientHeight>0&&Ir.scrollHeight>Ir.clientHeight;let kr=hr&&jt.offsetX>Ir.clientWidth;if(hr&&(0,s.L9)(Ir).direction==="rtl"&&(kr=jt.offsetX<=Ir.offsetWidth-Ir.clientWidth),kr||Sr&&jt.offsetY>Ir.clientHeight)return}const pn=ei&&Ai(ei.nodesRef.current,G).some(Sr=>{var hr;return D(jt,(hr=Sr.context)==null?void 0:hr.elements.floating)});if(D(jt,dt)||D(jt,Pe)||pn)return;const Qn=ei?Ai(ei.nodesRef.current,G):[];if(Qn.length>0){let Sr=!0;if(Qn.forEach(hr=>{var kr;if((kr=hr.context)!=null&&kr.open&&!hr.context.dataRef.current.__outsidePressBubbles){Sr=!1;return}}),!Sr)return}se(!1,jt,"outside-press")}),ai=et(jt=>{var Pn;const nr=()=>{var Ir;Rr(jt),(Ir=P(jt))==null||Ir.removeEventListener(zt,nr)};(Pn=P(jt))==null||Pn.addEventListener(zt,nr)});return i.useEffect(()=>{if(!Z||!Pt)return;Lt.current.__escapeKeyBubbles=Eo,Lt.current.__outsidePressBubbles=Yo;function jt(Ir){se(!1,Ir,"ancestor-scroll")}const Pn=M(dt);$e&&Pn.addEventListener("keydown",Xn?yr:mr,Xn),zi&&Pn.addEventListener(zt,fr?ai:Rr,fr);let nr=[];return Cn&&((0,s.vq)(Pe)&&(nr=(0,s.v9)(Pe)),(0,s.vq)(dt)&&(nr=nr.concat((0,s.v9)(dt))),!(0,s.vq)(B)&&B&&B.contextElement&&(nr=nr.concat((0,s.v9)(B.contextElement)))),nr=nr.filter(Ir=>{var fi;return Ir!==((fi=Pn.defaultView)==null?void 0:fi.visualViewport)}),nr.forEach(Ir=>{Ir.addEventListener("scroll",jt,{passive:!0})}),()=>{$e&&Pn.removeEventListener("keydown",Xn?yr:mr,Xn),zi&&Pn.removeEventListener(zt,fr?ai:Rr,fr),nr.forEach(Ir=>{Ir.removeEventListener("scroll",jt)})}},[Lt,dt,Pe,B,$e,zi,zt,Z,se,Cn,Pt,Eo,Yo,mr,Xn,yr,Rr,fr,ai]),i.useEffect(()=>{co.current=!1},[zi,zt]),i.useMemo(()=>Pt?{reference:{onKeyDown:mr,[$o[Fn]]:jt=>{Ht&&se(!1,jt.nativeEvent,"reference-press")}},floating:{onKeyDown:mr,onMouseDown(){Xo.current=!0},onMouseUp(){Xo.current=!0},[ja[zt]]:()=>{co.current=!0}}}:{},[Pt,Ht,zt,Fn,se,mr])}let as;function rn(br){var Yn;br===void 0&&(br={});const{open:Z=!1,onOpenChange:se,nodeId:G}=br;if(!1)var B,Pe,dt;const[Lt,Pt]=i.useState(null),$e=((Yn=br.elements)==null?void 0:Yn.reference)||Lt,ut=(0,N.we)(br),zt=En(),Ht=Ln()!=null,Fn=et((Yo,Xn,fr)=>{Yo&&(tr.current.openEvent=Xn),Jn.emit("openchange",{open:Yo,event:Xn,reason:fr,nested:Ht}),se?.(Yo,Xn,fr)}),Cn=i.useRef(null),tr=i.useRef({}),Jn=i.useState(()=>cn())[0],ei=Dt(),Ci=i.useCallback(Yo=>{const Xn=(0,s.vq)(Yo)?{getBoundingClientRect:()=>Yo.getBoundingClientRect(),contextElement:Yo}:Yo;ut.refs.setReference(Xn)},[ut.refs]),zi=i.useCallback(Yo=>{((0,s.vq)(Yo)||Yo===null)&&(Cn.current=Yo,Pt(Yo)),((0,s.vq)(ut.refs.reference.current)||ut.refs.reference.current===null||Yo!==null&&!(0,s.vq)(Yo))&&ut.refs.setReference(Yo)},[ut.refs]),co=i.useMemo(()=>({...ut.refs,setReference:zi,setPositionReference:Ci,domReference:Cn}),[ut.refs,zi,Ci]),Xo=i.useMemo(()=>({...ut.elements,domReference:$e}),[ut.elements,$e]),Eo=i.useMemo(()=>({...ut,refs:co,elements:Xo,dataRef:tr,nodeId:G,floatingId:ei,events:Jn,open:Z,onOpenChange:Fn}),[ut,G,ei,Jn,Z,Fn,co,Xo]);return ie(()=>{const Yo=zt?.nodesRef.current.find(Xn=>Xn.id===G);Yo&&(Yo.context=Eo)}),i.useMemo(()=>({...ut,context:Eo,refs:co,elements:Xo}),[ut,co,Xo,Eo])}function Dr(br,Yn){Yn===void 0&&(Yn={});const{open:Z,onOpenChange:se,events:G,refs:B,elements:{domReference:Pe}}=br,{enabled:dt=!0,visibleOnly:Lt=!0}=Yn,Pt=i.useRef(!1),$e=i.useRef(),ut=i.useRef(!0);return i.useEffect(()=>{if(!dt)return;const zt=(0,s.zk)(Pe);function Ht(){!Z&&(0,s.sb)(Pe)&&Pe===m(M(Pe))&&(Pt.current=!0)}function Fn(){ut.current=!0}return zt.addEventListener("blur",Ht),zt.addEventListener("keydown",Fn,!0),()=>{zt.removeEventListener("blur",Ht),zt.removeEventListener("keydown",Fn,!0)}},[Pe,Z,dt]),i.useEffect(()=>{if(!dt)return;function zt(Ht){let{reason:Fn}=Ht;(Fn==="reference-press"||Fn==="escape-key")&&(Pt.current=!0)}return G.on("openchange",zt),()=>{G.off("openchange",zt)}},[G,dt]),i.useEffect(()=>()=>{clearTimeout($e.current)},[]),i.useMemo(()=>dt?{reference:{onPointerDown(zt){h(zt.nativeEvent)||(ut.current=!1)},onMouseLeave(){Pt.current=!1},onFocus(zt){if(Pt.current)return;const Ht=P(zt.nativeEvent);if(Lt&&(0,s.vq)(Ht))try{if(d()&&y())throw Error();if(!Ht.matches(":focus-visible"))return}catch{if(!ut.current&&!A(Ht))return}se(!0,zt.nativeEvent,"focus")},onBlur(zt){Pt.current=!1;const Ht=zt.relatedTarget,Fn=(0,s.vq)(Ht)&&Ht.hasAttribute(pi("focus-guard"))&&Ht.getAttribute("data-type")==="outside";$e.current=window.setTimeout(()=>{const Cn=m(Pe?Pe.ownerDocument:document);!Ht&&Cn===Pe||u(B.floating.current,Cn)||u(Pe,Cn)||Fn||se(!1,zt.nativeEvent,"focus")})}}}:{},[dt,Lt,Pe,B,se])}const Lr="active",li="selected";function Zi(br,Yn,Z){const se=new Map,G=Z==="item";let B=br;if(G&&br){const{[Lr]:Pe,[li]:dt,...Lt}=br;B=Lt}return{...Z==="floating"&&{tabIndex:-1},...B,...Yn.map(Pe=>{const dt=Pe?Pe[Z]:null;return typeof dt=="function"?br?dt(br):null:dt}).concat(br).reduce((Pe,dt)=>(dt&&Object.entries(dt).forEach(Lt=>{let[Pt,$e]=Lt;if(!(G&&[Lr,li].includes(Pt)))if(Pt.indexOf("on")===0){if(se.has(Pt)||se.set(Pt,[]),typeof $e=="function"){var ut;(ut=se.get(Pt))==null||ut.push($e),Pe[Pt]=function(){for(var zt,Ht=arguments.length,Fn=new Array(Ht),Cn=0;Cn<Ht;Cn++)Fn[Cn]=arguments[Cn];return(zt=se.get(Pt))==null?void 0:zt.map(tr=>tr(...Fn)).find(tr=>tr!==void 0)}}}else Pe[Pt]=$e}),Pe),{})}}function Di(br){br===void 0&&(br=[]);const Yn=br,Z=i.useCallback(B=>Zi(B,br,"reference"),Yn),se=i.useCallback(B=>Zi(B,br,"floating"),Yn),G=i.useCallback(B=>Zi(B,br,"item"),br.map(B=>B?.item));return i.useMemo(()=>({getReferenceProps:Z,getFloatingProps:se,getItemProps:G}),[Z,se,G])}let wo=!1;function Go(br,Yn,Z){switch(br){case"vertical":return Yn;case"horizontal":return Z;default:return Yn||Z}}function Ko(br,Yn){return Go(Yn,br===ee||br===I,br===K||br===ue)}function Ie(br,Yn,Z){return Go(Yn,br===I,Z?br===K:br===ue)||br==="Enter"||br===" "||br===""}function yt(br,Yn,Z){return Go(Yn,Z?br===K:br===ue,br===I)}function on(br,Yn,Z){return Go(Yn,Z?br===ue:br===K,br===ee)}function _n(br,Yn){const{open:Z,onOpenChange:se,refs:G,elements:{domReference:B,floating:Pe}}=br,{listRef:dt,activeIndex:Lt,onNavigate:Pt=()=>{},enabled:$e=!0,selectedIndex:ut=null,allowEscape:zt=!1,loop:Ht=!1,nested:Fn=!1,rtl:Cn=!1,virtual:tr=!1,focusItemOnOpen:Jn="auto",focusItemOnHover:ei=!0,openOnArrowKeyDown:Ci=!0,disabledIndices:zi=void 0,orientation:co="vertical",cols:Xo=1,scrollItemIntoView:Eo=!0,virtualItemRef:Yo,itemSizes:Xn,dense:fr=!1}=Yn,mr=Ln(),yr=En(),Rr=et(Pt),ai=React.useRef(Jn),jt=React.useRef(ut??-1),Pn=React.useRef(null),nr=React.useRef(!0),Ir=React.useRef(Rr),fi=React.useRef(!!Pe),Ti=React.useRef(!1),Oe=React.useRef(!1),pn=yi(zi),Qn=yi(Z),Sr=yi(Eo),[hr,kr]=React.useState(),[Ve,Ot]=React.useState(),wn=et(function(zn,Nr,si){si===void 0&&(si=!1);const Ki=zn.current[Nr.current];Ki&&(tr?(kr(Ki.id),yr?.events.emit("virtualfocus",Ki),Yo&&(Yo.current=Ki)):Me(Ki,{preventScroll:!0,sync:isMac()&&isSafari()?wo||Ti.current:!1}),requestAnimationFrame(()=>{const Bi=Sr.current;Bi&&Ki&&(si||!nr.current)&&(Ki.scrollIntoView==null||Ki.scrollIntoView(typeof Bi=="boolean"?{block:"nearest",inline:"nearest"}:Bi))}))});ie(()=>{document.createElement("div").focus({get preventScroll(){return wo=!0,!1}})},[]),ie(()=>{$e&&(Z&&Pe?ai.current&&ut!=null&&(Oe.current=!0,jt.current=ut,Rr(ut)):fi.current&&(jt.current=-1,Ir.current(null)))},[$e,Z,Pe,ut,Rr]),ie(()=>{if($e&&Z&&Pe)if(Lt==null){if(Ti.current=!1,ut!=null)return;if(fi.current&&(jt.current=-1,wn(dt,jt)),!fi.current&&ai.current&&(Pn.current!=null||ai.current===!0&&Pn.current==null)){let zn=0;const Nr=()=>{dt.current[0]==null?(zn<2&&(zn?requestAnimationFrame:queueMicrotask)(Nr),zn++):(jt.current=Pn.current==null||Ie(Pn.current,co,Cn)||Fn?Fe(dt,pn.current):ze(dt,pn.current),Pn.current=null,Rr(jt.current))};Nr()}}else He(dt,Lt)||(jt.current=Lt,wn(dt,jt,Oe.current),Oe.current=!1)},[$e,Z,Pe,Lt,ut,Fn,dt,co,Cn,Rr,wn,pn]),ie(()=>{var zn;if(!$e||Pe||!yr||tr||!fi.current)return;const Nr=yr.nodesRef.current,si=(zn=Nr.find(Xi=>Xi.id===mr))==null||(zn=zn.context)==null?void 0:zn.elements.floating,Ki=activeElement(getDocument(Pe)),Bi=Nr.some(Xi=>Xi.context&&contains(Xi.context.elements.floating,Ki));si&&!Bi&&nr.current&&si.focus({preventScroll:!0})},[$e,Pe,yr,mr,tr]),ie(()=>{if(!$e||!yr||!tr||mr)return;function zn(Nr){Ot(Nr.id),Yo&&(Yo.current=Nr)}return yr.events.on("virtualfocus",zn),()=>{yr.events.off("virtualfocus",zn)}},[$e,yr,tr,mr,Yo]),ie(()=>{Ir.current=Rr,fi.current=!!Pe}),ie(()=>{Z||(Pn.current=null)},[Z]);const Wt=Lt!=null,Yt=React.useMemo(()=>{function zn(si){if(!Z)return;const Ki=dt.current.indexOf(si);Ki!==-1&&Rr(Ki)}return{onFocus(si){let{currentTarget:Ki}=si;zn(Ki)},onClick:si=>{let{currentTarget:Ki}=si;return Ki.focus({preventScroll:!0})},...ei&&{onMouseMove(si){let{currentTarget:Ki}=si;zn(Ki)},onPointerLeave(si){let{pointerType:Ki}=si;!nr.current||Ki==="touch"||(jt.current=-1,wn(dt,jt),Rr(null),tr||Me(G.floating.current,{preventScroll:!0}))}}}},[Z,G,wn,ei,dt,Rr,tr]);return React.useMemo(()=>{if(!$e)return{};const zn=pn.current;function Nr(vo){if(nr.current=!1,Ti.current=!0,!Qn.current&&vo.currentTarget===G.floating.current)return;if(Fn&&on(vo.key,co,Cn)){stopEvent(vo),se(!1,vo.nativeEvent,"list-navigation"),isHTMLElement(B)&&!tr&&B.focus();return}const ea=jt.current,la=Fe(dt,zn),ss=ze(dt,zn);if(vo.key==="Home"&&(stopEvent(vo),jt.current=la,Rr(jt.current)),vo.key==="End"&&(stopEvent(vo),jt.current=ss,Rr(jt.current)),Xo>1){const Rs=Xn||Array.from({length:dt.current.length},()=>({width:1,height:1})),Ds=_t(Rs,Xo,fr),Is=Ds.findIndex(Ls=>Ls!=null&&!(zn!=null&&zn.includes(Ls))),nu=Ds.reduce((Ls,gu,Us)=>gu!=null&&!(zn!=null&&zn.includes(gu))?Us:Ls,-1);if(jt.current=Ds[We({current:Ds.map(Ls=>Ls!=null?dt.current[Ls]:null)},{event:vo,orientation:co,loop:Ht,cols:Xo,disabledIndices:Ge([...zn||[],void 0],Ds),minIndex:Is,maxIndex:nu,prevIndex:ct(jt.current,Rs,Ds,Xo,vo.key===I?"bl":vo.key===ue?"tr":"tl"),stopEvent:!0})],Rr(jt.current),co==="both")return}if(Ko(vo.key,co)){if(stopEvent(vo),Z&&!tr&&activeElement(vo.currentTarget.ownerDocument)===vo.currentTarget){jt.current=Ie(vo.key,co,Cn)?la:ss,Rr(jt.current);return}Ie(vo.key,co,Cn)?Ht?jt.current=ea>=ss?zt&&ea!==dt.current.length?-1:la:qe(dt,{startingIndex:ea,disabledIndices:zn}):jt.current=Math.min(ss,qe(dt,{startingIndex:ea,disabledIndices:zn})):Ht?jt.current=ea<=la?zt&&ea!==-1?dt.current.length:ss:qe(dt,{startingIndex:ea,decrement:!0,disabledIndices:zn}):jt.current=Math.max(la,qe(dt,{startingIndex:ea,decrement:!0,disabledIndices:zn})),He(dt,jt.current)?Rr(null):Rr(jt.current)}}function si(vo){Jn==="auto"&&isVirtualClick(vo.nativeEvent)&&(ai.current=!0)}function Ki(vo){ai.current=Jn,Jn==="auto"&&isVirtualPointerEvent(vo.nativeEvent)&&(ai.current=!0)}const Bi=tr&&Z&&Wt&&{"aria-activedescendant":Ve||hr},Xi=dt.current.find(vo=>vo?.id===hr);return{reference:{...Bi,onKeyDown(vo){nr.current=!1;const ea=vo.key.indexOf("Arrow")===0,la=yt(vo.key,co,Cn),ss=on(vo.key,co,Cn),Rs=Ko(vo.key,co),Ds=(Fn?la:Rs)||vo.key==="Enter"||vo.key.trim()==="";if(tr&&Z){const gu=yr?.nodesRef.current.find(Iu=>Iu.parentId==null),Us=yr&&gu?Pi(yr.nodesRef.current,gu.id):null;if(ea&&Us&&Yo){const Iu=new KeyboardEvent("keydown",{key:vo.key,bubbles:!0});if(la||ss){var Is,nu;const Wu=((Is=Us.context)==null?void 0:Is.elements.domReference)===vo.currentTarget,rl=ss&&!Wu?(nu=Us.context)==null?void 0:nu.elements.domReference:la?Xi:null;rl&&(stopEvent(vo),rl.dispatchEvent(Iu),Ot(void 0))}if(Rs&&Us.context&&Us.context.open&&Us.parentId&&vo.currentTarget!==Us.context.elements.domReference){var Ls;stopEvent(vo),(Ls=Us.context.elements.domReference)==null||Ls.dispatchEvent(Iu);return}}return Nr(vo)}if(!(!Z&&!Ci&&ea)){if(Ds&&(Pn.current=Fn&&Rs?null:vo.key),Fn){la&&(stopEvent(vo),Z?(jt.current=Fe(dt,zn),Rr(jt.current)):se(!0,vo.nativeEvent,"list-navigation"));return}Rs&&(ut!=null&&(jt.current=ut),stopEvent(vo),!Z&&Ci?se(!0,vo.nativeEvent,"list-navigation"):Nr(vo),Z&&Rr(jt.current))}},onFocus(){Z&&Rr(null)},onPointerDown:Ki,onMouseDown:si,onClick:si},floating:{"aria-orientation":co==="both"?void 0:co,...!isTypeableCombobox(B)&&Bi,onKeyDown:Nr,onPointerMove(){nr.current=!0}},item:Yt}},[B,G,hr,Ve,pn,Qn,dt,$e,co,Cn,tr,Z,Wt,Fn,ut,Ci,zt,Xo,Ht,Jn,Rr,se,Yt,yr,Yo,Xn,fr])}const er=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function or(br,Yn){var Z;Yn===void 0&&(Yn={});const{open:se,floatingId:G}=br,{enabled:B=!0,role:Pe="dialog"}=Yn,dt=(Z=er.get(Pe))!=null?Z:Pe,Lt=Dt(),$e=Ln()!=null;return React.useMemo(()=>{if(!B)return{};const ut={id:G,...dt&&{role:dt}};return dt==="tooltip"||Pe==="label"?{reference:{["aria-"+(Pe==="label"?"labelledby":"describedby")]:se?G:void 0},floating:ut}:{reference:{"aria-expanded":se?"true":"false","aria-haspopup":dt==="alertdialog"?"dialog":dt,"aria-controls":se?G:void 0,...dt==="listbox"&&{role:"combobox"},...dt==="menu"&&{id:Lt},...dt==="menu"&&$e&&{role:"menuitem"},...Pe==="select"&&{"aria-autocomplete":"none"},...Pe==="combobox"&&{"aria-autocomplete":"list"}},floating:{...ut,...dt==="menu"&&{"aria-labelledby":Lt}},item(zt){let{active:Ht,selected:Fn}=zt;const Cn={role:"option",...Ht&&{id:G+"-option"}};switch(Pe){case"select":return{...Cn,"aria-selected":Ht&&Fn};case"combobox":return{...Cn,...Ht&&{"aria-selected":!0}}}return{}}}},[B,Pe,dt,se,G,Lt,$e])}const Er=br=>br.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(Yn,Z)=>(Z?"-":"")+Yn.toLowerCase());function Mi(br,Yn){return typeof br=="function"?br(Yn):br}function Ui(br,Yn){const[Z,se]=i.useState(br);return br&&!Z&&se(!0),i.useEffect(()=>{if(!br){const G=setTimeout(()=>se(!1),Yn);return()=>clearTimeout(G)}},[br,Yn]),Z}function Nn(br,Yn){Yn===void 0&&(Yn={});const{open:Z,elements:{floating:se}}=br,{duration:G=250}=Yn,Pe=(typeof G=="number"?G:G.close)||0,[dt,Lt]=i.useState(!1),[Pt,$e]=i.useState("unmounted"),ut=Ui(Z,Pe);return ie(()=>{dt&&!ut&&$e("unmounted")},[dt,ut]),ie(()=>{if(se){if(Z){$e("initial");const zt=requestAnimationFrame(()=>{$e("open")});return()=>{cancelAnimationFrame(zt)}}Lt(!0),$e("close")}},[Z,se]),{isMounted:ut,status:Pt}}function cr(br,Yn){Yn===void 0&&(Yn={});const{initial:Z={opacity:0},open:se,close:G,common:B,duration:Pe=250}=Yn,dt=br.placement,Lt=dt.split("-")[0],Pt=i.useMemo(()=>({side:Lt,placement:dt}),[Lt,dt]),$e=typeof Pe=="number",ut=($e?Pe:Pe.open)||0,zt=($e?Pe:Pe.close)||0,[Ht,Fn]=i.useState(()=>({...Mi(B,Pt),...Mi(Z,Pt)})),{isMounted:Cn,status:tr}=Nn(br,{duration:Pe}),Jn=yi(Z),ei=yi(se),Ci=yi(G),zi=yi(B);return ie(()=>{const co=Mi(Jn.current,Pt),Xo=Mi(Ci.current,Pt),Eo=Mi(zi.current,Pt),Yo=Mi(ei.current,Pt)||Object.keys(co).reduce((Xn,fr)=>(Xn[fr]="",Xn),{});if(tr==="initial"&&Fn(Xn=>({transitionProperty:Xn.transitionProperty,...Eo,...co})),tr==="open"&&Fn({transitionProperty:Object.keys(Yo).map(Er).join(","),transitionDuration:ut+"ms",...Eo,...Yo}),tr==="close"){const Xn=Xo||co;Fn({transitionProperty:Object.keys(Xn).map(Er).join(","),transitionDuration:zt+"ms",...Eo,...Xn})}},[zt,Ci,Jn,ei,zi,ut,tr,Pt]),{isMounted:Cn,styles:Ht}}function ni(br,Yn){var Z;const{open:se,dataRef:G}=br,{listRef:B,activeIndex:Pe,onMatch:dt,onTypingChange:Lt,enabled:Pt=!0,findMatch:$e=null,resetMs:ut=750,ignoreKeys:zt=[],selectedIndex:Ht=null}=Yn,Fn=React.useRef(),Cn=React.useRef(""),tr=React.useRef((Z=Ht??Pe)!=null?Z:-1),Jn=React.useRef(null),ei=et(dt),Ci=et(Lt),zi=yi($e),co=yi(zt);return ie(()=>{se&&(clearTimeout(Fn.current),Jn.current=null,Cn.current="")},[se]),ie(()=>{if(se&&Cn.current===""){var Xo;tr.current=(Xo=Ht??Pe)!=null?Xo:-1}},[se,Ht,Pe]),React.useMemo(()=>{if(!Pt)return{};function Xo(Xn){Xn?G.current.typing||(G.current.typing=Xn,Ci(Xn)):G.current.typing&&(G.current.typing=Xn,Ci(Xn))}function Eo(Xn,fr,mr){const yr=zi.current?zi.current(fr,mr):fr.find(Rr=>Rr?.toLocaleLowerCase().indexOf(mr.toLocaleLowerCase())===0);return yr?Xn.indexOf(yr):-1}function Yo(Xn){const fr=B.current;if(Cn.current.length>0&&Cn.current[0]!==" "&&(Eo(fr,fr,Cn.current)===-1?Xo(!1):Xn.key===" "&&stopEvent(Xn)),fr==null||co.current.includes(Xn.key)||Xn.key.length!==1||Xn.ctrlKey||Xn.metaKey||Xn.altKey)return;se&&Xn.key!==" "&&(stopEvent(Xn),Xo(!0)),fr.every(ai=>{var jt,Pn;return ai?((jt=ai[0])==null?void 0:jt.toLocaleLowerCase())!==((Pn=ai[1])==null?void 0:Pn.toLocaleLowerCase()):!0})&&Cn.current===Xn.key&&(Cn.current="",tr.current=Jn.current),Cn.current+=Xn.key,clearTimeout(Fn.current),Fn.current=setTimeout(()=>{Cn.current="",tr.current=Jn.current,Xo(!1)},ut);const yr=tr.current,Rr=Eo(fr,[...fr.slice((yr||0)+1),...fr.slice(0,(yr||0)+1)],Cn.current);Rr!==-1?(ei(Rr),Jn.current=Rr):Xn.key!==" "&&(Cn.current="",Xo(!1))}return{reference:{onKeyDown:Yo},floating:{onKeyDown:Yo,onKeyUp(Xn){Xn.key===" "&&Xo(!1)}}}},[Pt,se,G,B,ut,co,zi,ei,Ci])}function Xr(br,Yn){return{...br,rects:{...br.rects,floating:{...br.rects.floating,height:Yn}}}}const Jr=br=>({name:"inner",options:br,async fn(Yn){const{listRef:Z,overflowRef:se,onFallbackChange:G,offset:B=0,index:Pe=0,minItemsVisible:dt=4,referenceOverflowThreshold:Lt=0,scrollRef:Pt,...$e}=br,{rects:ut,elements:{floating:zt}}=Yn,Ht=Z.current[Pe];if(!Ht)return{};const Fn={...Yn,...await offset(-Ht.offsetTop-zt.clientTop-ut.reference.height/2-Ht.offsetHeight/2-B).fn(Yn)},Cn=Pt?.current||zt,tr=await detectOverflow(Xr(Fn,Cn.scrollHeight),$e),Jn=await detectOverflow(Fn,{...$e,elementContext:"reference"}),ei=Math.max(0,tr.top),Ci=Fn.y+ei,zi=Math.max(0,Cn.scrollHeight-ei-Math.max(0,tr.bottom));return Cn.style.maxHeight=zi+"px",Cn.scrollTop=ei,G&&(Cn.offsetHeight<Ht.offsetHeight*Math.min(dt,Z.current.length-1)-1||Jn.top>=-Lt||Jn.bottom>=-Lt?flushSync(()=>G(!0)):flushSync(()=>G(!1))),se&&(se.current=await detectOverflow(Xr({...Fn,y:Ci},Cn.offsetHeight),$e)),{y:Ci}}});function Qi(br,Yn){const{open:Z,elements:se}=br,{enabled:G=!0,overflowRef:B,scrollRef:Pe,onChange:dt}=Yn,Lt=et(dt),Pt=React.useRef(!1),$e=React.useRef(null),ut=React.useRef(null);return React.useEffect(()=>{if(!G)return;function zt(Fn){if(Fn.ctrlKey||!Ht||B.current==null)return;const Cn=Fn.deltaY,tr=B.current.top>=-.5,Jn=B.current.bottom>=-.5,ei=Ht.scrollHeight-Ht.clientHeight,Ci=Cn<0?-1:1,zi=Cn<0?"max":"min";Ht.scrollHeight<=Ht.clientHeight||(!tr&&Cn>0||!Jn&&Cn<0?(Fn.preventDefault(),flushSync(()=>{Lt(co=>co+Math[zi](Cn,ei*Ci))})):/firefox/i.test(getUserAgent())&&(Ht.scrollTop+=Cn))}const Ht=Pe?.current||se.floating;if(Z&&Ht)return Ht.addEventListener("wheel",zt),requestAnimationFrame(()=>{$e.current=Ht.scrollTop,B.current!=null&&(ut.current={...B.current})}),()=>{$e.current=null,ut.current=null,Ht.removeEventListener("wheel",zt)}},[G,Z,se.floating,B,Pe,Lt]),React.useMemo(()=>G?{floating:{onKeyDown(){Pt.current=!0},onWheel(){Pt.current=!1},onPointerMove(){Pt.current=!1},onScroll(){const zt=Pe?.current||se.floating;if(!(!B.current||!zt||!Pt.current)){if($e.current!==null){const Ht=zt.scrollTop-$e.current;(B.current.bottom<-.5&&Ht<-1||B.current.top<-.5&&Ht>1)&&flushSync(()=>Lt(Fn=>Fn+Ht))}requestAnimationFrame(()=>{$e.current=zt.scrollTop})}}}}:{},[G,B,se.floating,Pe,Lt])}function Fo(br,Yn){const[Z,se]=br;let G=!1;const B=Yn.length;for(let Pe=0,dt=B-1;Pe<B;dt=Pe++){const[Lt,Pt]=Yn[Pe]||[0,0],[$e,ut]=Yn[dt]||[0,0];Pt>=se!=ut>=se&&Z<=($e-Lt)*(se-Pt)/(ut-Pt)+Lt&&(G=!G)}return G}function No(br,Yn){return br[0]>=Yn.x&&br[0]<=Yn.x+Yn.width&&br[1]>=Yn.y&&br[1]<=Yn.y+Yn.height}function Jo(br){br===void 0&&(br={});const{buffer:Yn=.5,blockPointerEvents:Z=!1,requireIntent:se=!0}=br;let G,B=!1,Pe=null,dt=null,Lt=performance.now();function Pt(ut,zt){const Ht=performance.now(),Fn=Ht-Lt;if(Pe===null||dt===null||Fn===0)return Pe=ut,dt=zt,Lt=Ht,null;const Cn=ut-Pe,tr=zt-dt,ei=Math.sqrt(Cn*Cn+tr*tr)/Fn;return Pe=ut,dt=zt,Lt=Ht,ei}const $e=ut=>{let{x:zt,y:Ht,placement:Fn,elements:Cn,onClose:tr,nodeId:Jn,tree:ei}=ut;return function(zi){function co(){clearTimeout(G),tr()}if(clearTimeout(G),!Cn.domReference||!Cn.floating||Fn==null||zt==null||Ht==null)return;const{clientX:Xo,clientY:Eo}=zi,Yo=[Xo,Eo],Xn=P(zi),fr=zi.type==="mouseleave",mr=u(Cn.floating,Xn),yr=u(Cn.domReference,Xn),Rr=Cn.domReference.getBoundingClientRect(),ai=Cn.floating.getBoundingClientRect(),jt=Fn.split("-")[0],Pn=zt>ai.right-ai.width/2,nr=Ht>ai.bottom-ai.height/2,Ir=No(Yo,Rr),fi=ai.width>Rr.width,Ti=ai.height>Rr.height,Oe=(fi?Rr:ai).left,pn=(fi?Rr:ai).right,Qn=(Ti?Rr:ai).top,Sr=(Ti?Rr:ai).bottom;if(mr&&(B=!0,!fr))return;if(yr&&(B=!1),yr&&!fr){B=!0;return}if(fr&&(0,s.vq)(zi.relatedTarget)&&u(Cn.floating,zi.relatedTarget)||ei&&Ai(ei.nodesRef.current,Jn).some(Ve=>{let{context:Ot}=Ve;return Ot?.open}))return;if(jt==="top"&&Ht>=Rr.bottom-1||jt==="bottom"&&Ht<=Rr.top+1||jt==="left"&&zt>=Rr.right-1||jt==="right"&&zt<=Rr.left+1)return co();let hr=[];switch(jt){case"top":hr=[[Oe,Rr.top+1],[Oe,ai.bottom-1],[pn,ai.bottom-1],[pn,Rr.top+1]];break;case"bottom":hr=[[Oe,ai.top+1],[Oe,Rr.bottom-1],[pn,Rr.bottom-1],[pn,ai.top+1]];break;case"left":hr=[[ai.right-1,Sr],[ai.right-1,Qn],[Rr.left+1,Qn],[Rr.left+1,Sr]];break;case"right":hr=[[Rr.right-1,Sr],[Rr.right-1,Qn],[ai.left+1,Qn],[ai.left+1,Sr]];break}function kr(Ve){let[Ot,wn]=Ve;switch(jt){case"top":{const Wt=[fi?Ot+Yn/2:Pn?Ot+Yn*4:Ot-Yn*4,wn+Yn+1],Yt=[fi?Ot-Yn/2:Pn?Ot+Yn*4:Ot-Yn*4,wn+Yn+1],zn=[[ai.left,Pn||fi?ai.bottom-Yn:ai.top],[ai.right,Pn?fi?ai.bottom-Yn:ai.top:ai.bottom-Yn]];return[Wt,Yt,...zn]}case"bottom":{const Wt=[fi?Ot+Yn/2:Pn?Ot+Yn*4:Ot-Yn*4,wn-Yn],Yt=[fi?Ot-Yn/2:Pn?Ot+Yn*4:Ot-Yn*4,wn-Yn],zn=[[ai.left,Pn||fi?ai.top+Yn:ai.bottom],[ai.right,Pn?fi?ai.top+Yn:ai.bottom:ai.top+Yn]];return[Wt,Yt,...zn]}case"left":{const Wt=[Ot+Yn+1,Ti?wn+Yn/2:nr?wn+Yn*4:wn-Yn*4],Yt=[Ot+Yn+1,Ti?wn-Yn/2:nr?wn+Yn*4:wn-Yn*4];return[...[[nr||Ti?ai.right-Yn:ai.left,ai.top],[nr?Ti?ai.right-Yn:ai.left:ai.right-Yn,ai.bottom]],Wt,Yt]}case"right":{const Wt=[Ot-Yn,Ti?wn+Yn/2:nr?wn+Yn*4:wn-Yn*4],Yt=[Ot-Yn,Ti?wn-Yn/2:nr?wn+Yn*4:wn-Yn*4],zn=[[nr||Ti?ai.left+Yn:ai.right,ai.top],[nr?Ti?ai.left+Yn:ai.right:ai.left+Yn,ai.bottom]];return[Wt,Yt,...zn]}}}if(!Fo([Xo,Eo],hr)){if(B&&!Ir)return co();if(!fr&&se){const Ve=Pt(zi.clientX,zi.clientY);if(Ve!==null&&Ve<.1)return co()}Fo([Xo,Eo],kr([zt,Ht]))?!B&&se&&(G=window.setTimeout(co,40)):co()}}};return $e.__options={blockPointerEvents:Z},$e}},86635:(J,g,t)=>{"use strict";t.d(g,{$4:()=>R,CP:()=>O,L9:()=>S,Lv:()=>h,Ng:()=>p,Tc:()=>y,ZU:()=>v,ep:()=>s,eu:()=>w,gJ:()=>b,mq:()=>i,sQ:()=>d,sb:()=>f,v9:()=>D,vq:()=>u,zk:()=>l});function i(P){return m(P)?(P.nodeName||"").toLowerCase():"#document"}function l(P){var T;return(P==null||(T=P.ownerDocument)==null?void 0:T.defaultView)||window}function s(P){var T;return(T=(m(P)?P.ownerDocument:P.document)||window.document)==null?void 0:T.documentElement}function m(P){return P instanceof Node||P instanceof l(P).Node}function u(P){return P instanceof Element||P instanceof l(P).Element}function f(P){return P instanceof HTMLElement||P instanceof l(P).HTMLElement}function p(P){return typeof ShadowRoot>"u"?!1:P instanceof ShadowRoot||P instanceof l(P).ShadowRoot}function v(P){const{overflow:T,overflowX:A,overflowY:j,display:ae}=S(P);return/auto|scroll|overlay|hidden|clip/.test(T+j+A)&&!["inline","contents"].includes(ae)}function h(P){return["table","td","th"].includes(i(P))}function d(P){const T=y(),A=S(P);return A.transform!=="none"||A.perspective!=="none"||(A.containerType?A.containerType!=="normal":!1)||!T&&(A.backdropFilter?A.backdropFilter!=="none":!1)||!T&&(A.filter?A.filter!=="none":!1)||["transform","perspective","filter"].some(j=>(A.willChange||"").includes(j))||["paint","layout","strict","content"].some(j=>(A.contain||"").includes(j))}function b(P){let T=R(P);for(;f(T)&&!w(T);){if(d(T))return T;T=R(T)}return null}function y(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function w(P){return["html","body","#document"].includes(i(P))}function S(P){return l(P).getComputedStyle(P)}function O(P){return u(P)?{scrollLeft:P.scrollLeft,scrollTop:P.scrollTop}:{scrollLeft:P.pageXOffset,scrollTop:P.pageYOffset}}function R(P){if(i(P)==="html")return P;const T=P.assignedSlot||P.parentNode||p(P)&&P.host||s(P);return p(T)?T.host:T}function M(P){const T=R(P);return w(T)?P.ownerDocument?P.ownerDocument.body:P.body:f(T)&&v(T)?T:M(T)}function D(P,T,A){var j;T===void 0&&(T=[]),A===void 0&&(A=!0);const ae=M(P),_=ae===((j=P.ownerDocument)==null?void 0:j.body),N=l(ae);return _?T.concat(N,N.visualViewport||[],v(ae)?ae:[],N.frameElement&&A?D(N.frameElement):[]):T.concat(ae,D(ae,[],A))}},97193:(J,g,t)=>{"use strict";t.d(g,{B1:()=>he,C0:()=>w,Dz:()=>D,Jx:()=>v,LI:()=>f,PG:()=>O,RI:()=>p,Sg:()=>S,T9:()=>u,TV:()=>M,WJ:()=>T,_3:()=>y,bV:()=>_,jk:()=>m,lP:()=>ae,nI:()=>W,qE:()=>b,sq:()=>R,w7:()=>P});const i=null,l=null,s=null,m=Math.min,u=Math.max,f=Math.round,p=Math.floor,v=me=>({x:me,y:me}),h={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function b(me,fe,ve){return u(me,m(fe,ve))}function y(me,fe){return typeof me=="function"?me(fe):me}function w(me){return me.split("-")[0]}function S(me){return me.split("-")[1]}function O(me){return me==="x"?"y":"x"}function R(me){return me==="y"?"height":"width"}function M(me){return["top","bottom"].includes(w(me))?"y":"x"}function D(me){return O(M(me))}function P(me,fe,ve){ve===void 0&&(ve=!1);const ce=S(me),oe=D(me),re=R(oe);let H=oe==="x"?ce===(ve?"end":"start")?"right":"left":ce==="start"?"bottom":"top";return fe.reference[re]>fe.floating[re]&&(H=_(H)),[H,_(H)]}function T(me){const fe=_(me);return[A(me),fe,A(fe)]}function A(me){return me.replace(/start|end/g,fe=>d[fe])}function j(me,fe,ve){const ce=["left","right"],oe=["right","left"],re=["top","bottom"],H=["bottom","top"];switch(me){case"top":case"bottom":return ve?fe?oe:ce:fe?ce:oe;case"left":case"right":return fe?re:H;default:return[]}}function ae(me,fe,ve,ce){const oe=S(me);let re=j(w(me),ve==="start",ce);return oe&&(re=re.map(H=>H+"-"+oe),fe&&(re=re.concat(re.map(A)))),re}function _(me){return me.replace(/left|right|bottom|top/g,fe=>h[fe])}function N(me){return{top:0,right:0,bottom:0,left:0,...me}}function W(me){return typeof me!="number"?N(me):{top:me,right:me,bottom:me,left:me}}function he(me){return{...me,top:me.y,left:me.x,right:me.x+me.width,bottom:me.y+me.height}}},78086:(J,g,t)=>{"use strict";t.d(g,{Dx:()=>f,P6:()=>v,n6:()=>u,zc:()=>s});var i=t(96540),l=t(73121);function s(h){return{"--gdg-accent-color":h.accentColor,"--gdg-accent-fg":h.accentFg,"--gdg-accent-light":h.accentLight,"--gdg-text-dark":h.textDark,"--gdg-text-medium":h.textMedium,"--gdg-text-light":h.textLight,"--gdg-text-bubble":h.textBubble,"--gdg-bg-icon-header":h.bgIconHeader,"--gdg-fg-icon-header":h.fgIconHeader,"--gdg-text-header":h.textHeader,"--gdg-text-group-header":h.textGroupHeader??h.textHeader,"--gdg-text-header-selected":h.textHeaderSelected,"--gdg-bg-cell":h.bgCell,"--gdg-bg-cell-medium":h.bgCellMedium,"--gdg-bg-header":h.bgHeader,"--gdg-bg-header-has-focus":h.bgHeaderHasFocus,"--gdg-bg-header-hovered":h.bgHeaderHovered,"--gdg-bg-bubble":h.bgBubble,"--gdg-bg-bubble-selected":h.bgBubbleSelected,"--gdg-bg-search-result":h.bgSearchResult,"--gdg-border-color":h.borderColor,"--gdg-horizontal-border-color":h.horizontalBorderColor??h.borderColor,"--gdg-drilldown-border":h.drilldownBorder,"--gdg-link-color":h.linkColor,"--gdg-cell-horizontal-padding":`${h.cellHorizontalPadding}px`,"--gdg-cell-vertical-padding":`${h.cellVerticalPadding}px`,"--gdg-header-font-style":h.headerFontStyle,"--gdg-base-font-style":h.baseFontStyle,"--gdg-marker-font-style":h.markerFontStyle,"--gdg-font-family":h.fontFamily,"--gdg-editor-font-size":h.editorFontSize,...h.resizeIndicatorColor===void 0?{}:{"--gdg-resize-indicator-color":h.resizeIndicatorColor},...h.headerBottomBorderColor===void 0?{}:{"--gdg-header-bottom-border-color":h.headerBottomBorderColor},...h.roundingRadius===void 0?{}:{"--gdg-rounding-radius":`${h.roundingRadius}px`}}}const m={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#353fb5",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",markerFontStyle:"9px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function u(){return m}const f=i.createContext(m);function p(){return React.useContext(f)}function v(h,...d){const b={...h};for(const y of d)if(y!==void 0)for(const w in y)y.hasOwnProperty(w)&&(w==="bgCell"?b[w]=(0,l.au)(y[w],b[w]):b[w]=y[w]);return(b.headerFontFull===void 0||h.fontFamily!==b.fontFamily||h.headerFontStyle!==b.headerFontStyle)&&(b.headerFontFull=`${b.headerFontStyle} ${b.fontFamily}`),(b.baseFontFull===void 0||h.fontFamily!==b.fontFamily||h.baseFontStyle!==b.baseFontStyle)&&(b.baseFontFull=`${b.baseFontStyle} ${b.fontFamily}`),(b.markerFontFull===void 0||h.fontFamily!==b.fontFamily||h.markerFontStyle!==b.markerFontStyle)&&(b.markerFontFull=`${b.markerFontStyle} ${b.fontFamily}`),b}},74433:(J,g,t)=>{"use strict";t.d(g,{HD:()=>i,bD:()=>p,no:()=>u,vA:()=>s,xb:()=>m});function i(v){}function l(v="This should not happen"){throw new Error(v)}function s(v,h="Assertion failed"){if(!v)return l(h)}function m(v,h){return l(h??"Hell froze over")}function u(v,h){try{return v()}catch{return h}}const f=Object.prototype.hasOwnProperty;function p(v,h){let d,b;if(v===h)return!0;if(v&&h&&(d=v.constructor)===h.constructor){if(d===Date)return v.getTime()===h.getTime();if(d===RegExp)return v.toString()===h.toString();if(d===Array){if((b=v.length)===h.length)for(;b--&&p(v[b],h[b]););return b===-1}if(!d||typeof v=="object"){b=0;for(d in v)if(f.call(v,d)&&++b&&!f.call(h,d)||!(d in h)||!p(v[d],h[d]))return!1;return Object.keys(h).length===b}}return v!==v&&h!==h}},47187:(J,g,t)=>{"use strict";t.d(g,{D:()=>Ws});var i=t(96540),l=t(74433),s=t(78659),m=t(63375),u=t(35970),f=t(23181),p=t(38221),v=t(69321);function h(Ne,kt,Rn,jn,_r=!1){const xr=i.useRef();xr.current=kt,i.useEffect(()=>{if(Rn===null||Rn.addEventListener===void 0)return;const oi=Rn,ti=Ri=>{xr.current?.call(oi,Ri)};return oi.addEventListener(Ne,ti,{passive:jn,capture:_r}),()=>{oi.removeEventListener(Ne,ti,{capture:_r})}},[Ne,Rn,jn,_r])}function d(Ne,kt){return Ne===void 0?void 0:kt}const b=Math.PI;function y(Ne){return Ne*b/180}const w=(Ne,kt,Rn)=>({x1:Ne-Rn/2,y1:kt-Rn/2,x2:Ne+Rn/2,y2:kt+Rn/2}),S=(Ne,kt,Rn,jn,_r)=>{switch(Ne){case"left":return Math.floor(kt)+jn+_r/2;case"center":return Math.floor(kt+Rn/2);case"right":return Math.floor(kt+Rn)-jn-_r/2}},O=(Ne,kt,Rn)=>Math.min(Ne,kt-Rn*2),R=(Ne,kt,Rn)=>Rn.x1<=Ne&&Ne<=Rn.x2&&Rn.y1<=kt&&kt<=Rn.y2,M=Ne=>{const kt=Ne.fgColor??"currentColor";return i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:kt,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),i.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:kt,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},D=Ne=>{const kt=Ne.fgColor??"currentColor";return i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:kt,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};function P(Ne,kt,Rn){const[jn,_r]=i.useState(Ne),xr=i.useRef(!0);i.useEffect(()=>()=>{xr.current=!1},[]);const oi=i.useRef(p(ti=>{xr.current&&_r(ti)},Rn));return i.useLayoutEffect(()=>{xr.current&&oi.current(()=>Ne())},kt),jn}const T="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",A="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",j=new RegExp("^[^"+A+"]*["+T+"]");function ae(Ne){return j.test(Ne)?"rtl":"not-rtl"}let _;function N(){if(typeof document>"u")return 0;if(_!==void 0)return _;const Ne=document.createElement("p");Ne.style.width="100%",Ne.style.height="200px";const kt=document.createElement("div");kt.id="testScrollbar",kt.style.position="absolute",kt.style.top="0px",kt.style.left="0px",kt.style.visibility="hidden",kt.style.width="200px",kt.style.height="150px",kt.style.overflow="hidden",kt.append(Ne),document.body.append(kt);const Rn=Ne.offsetWidth;kt.style.overflow="scroll";let jn=Ne.offsetWidth;return Rn===jn&&(jn=kt.clientWidth),kt.remove(),_=Rn-jn,_}const W=Symbol();function he(Ne){const kt=i.useRef([W,Ne]);kt.current[1]!==Ne&&(kt.current[0]=Ne),kt.current[1]=Ne;const[Rn,jn]=i.useState(Ne),[,_r]=i.useState(),xr=i.useCallback(ti=>{const Ri=kt.current[0];Ri!==W&&(ti=typeof ti=="function"?ti(Ri):ti,ti===Ri)||(Ri!==W&&_r({}),jn(Fi=>typeof ti=="function"?ti(Ri===W?Fi:Ri):ti),kt.current[0]=W)},[]),oi=i.useCallback(()=>{kt.current[0]=W,_r({})},[]);return[kt.current[0]===W?Rn:kt.current[0],xr,oi]}function me(Ne){if(Ne.length===0)return"";let kt=0,Rn=0;for(const jn of Ne){if(Rn+=jn.length,Rn>1e4)break;kt++}return Ne.slice(0,kt).join(", ")}function fe(Ne){const kt=i.useRef(Ne);return(0,l.bD)(Ne,kt.current)||(kt.current=Ne),kt.current}var ve=new Map,ce=new Map,oe=new Map;function re(){ve.clear(),oe.clear(),ce.clear()}function H(Ne,kt,Rn,jn,_r){var xr,oi,ti;let Ri=0,Fi={};for(let yo of Ne)Ri+=(xr=Rn.get(yo))!=null?xr:_r,Fi[yo]=((oi=Fi[yo])!=null?oi:0)+1;let Gi=kt-Ri;for(let yo of Object.keys(Fi)){let Do=Fi[yo],po=(ti=Rn.get(yo))!=null?ti:_r,Ji=po*Do/Ri,Uo=Gi*Ji*jn/Do,Ia=po+Uo;Rn.set(yo,Ia)}}function V(Ne,kt){var Rn;let jn=new Map,_r=0;for(let Fi of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let Gi=Ne.measureText(Fi).width;jn.set(Fi,Gi),_r+=Gi}let xr=_r/jn.size,oi=3,ti=(kt/xr+oi)/(oi+1),Ri=jn.keys();for(let Fi of Ri)jn.set(Fi,((Rn=jn.get(Fi))!=null?Rn:xr)*ti);return jn}function Q(Ne,kt,Rn,jn){var _r,xr;let oi=ce.get(Rn);if(jn&&oi!==void 0&&oi.count>2e4){let Fi=oe.get(Rn);if(Fi===void 0&&(Fi=V(Ne,oi.size),oe.set(Rn,Fi)),oi.count>5e5){let yo=0;for(let Do of kt)yo+=(_r=Fi.get(Do))!=null?_r:oi.size;return yo*1.01}let Gi=Ne.measureText(kt);return H(kt,Gi.width,Fi,Math.max(.05,1-oi.count/2e5),oi.size),ce.set(Rn,{count:oi.count+kt.length,size:oi.size}),Gi.width}let ti=Ne.measureText(kt),Ri=ti.width/kt.length;if(((xr=oi?.count)!=null?xr:0)>2e4)return ti.width;if(oi===void 0)ce.set(Rn,{count:kt.length,size:Ri});else{let Fi=Ri-oi.size,Gi=kt.length/(oi.count+kt.length),yo=oi.size+Fi*Gi;ce.set(Rn,{count:oi.count+kt.length,size:yo})}return ti.width}function Te(Ne,kt,Rn,jn,_r,xr,oi,ti){if(kt.length<=1)return kt.length;if(_r<Rn)return-1;let Ri=Math.floor(Rn/_r*xr),Fi=Q(Ne,kt.slice(0,Math.max(0,Ri)),jn,oi),Gi=ti?.(kt);if(Fi!==Rn)if(Fi<Rn){for(;Fi<Rn;)Ri++,Fi=Q(Ne,kt.slice(0,Math.max(0,Ri)),jn,oi);Ri--}else for(;Fi>Rn;){let yo=Gi!==void 0?0:kt.lastIndexOf(" ",Ri-1);yo>0?Ri=yo:Ri--,Fi=Q(Ne,kt.slice(0,Math.max(0,Ri)),jn,oi)}if(kt[Ri]!==" "){let yo=0;if(Gi===void 0)yo=kt.lastIndexOf(" ",Ri);else for(let Do of Gi){if(Do>Ri)break;yo=Do}yo>0&&(Ri=yo)}return Ri}function Re(Ne,kt,Rn,jn,_r,xr){let oi=`${kt}_${Rn}_${jn}px`,ti=ve.get(oi);if(ti!==void 0)return ti;if(jn<=0)return[];let Ri=[],Fi=kt.split(` `),Gi=ce.get(Rn),yo=Gi===void 0?kt.length:jn/Gi.size*1.5,Do=_r&&Gi!==void 0&&Gi.count>2e4;for(let po of Fi){let Ji=Q(Ne,po.slice(0,Math.max(0,yo)),Rn,Do),Uo=Math.min(po.length,yo);if(Ji<=jn)Ri.push(po);else{for(;Ji>jn;){let Ia=Te(Ne,po,jn,Rn,Ji,Uo,Do,xr),za=po.slice(0,Math.max(0,Ia));po=po.slice(za.length),Ri.push(za),Ji=Q(Ne,po.slice(0,Math.max(0,yo)),Rn,Do),Uo=Math.min(po.length,yo)}Ji>0&&Ri.push(po)}}return Ri=Ri.map((po,Ji)=>Ji===0?po.trimEnd():po.trim()),ve.set(oi,Ri),ve.size>500&&ve.delete(ve.keys().next().value),Ri}function ne(Ne,kt){return i.useMemo(()=>Ne.map((Rn,jn)=>({group:Rn.group,grow:Rn.grow,hasMenu:Rn.hasMenu,icon:Rn.icon,id:Rn.id,menuIcon:Rn.menuIcon,overlayIcon:Rn.overlayIcon,sourceIndex:jn,sticky:jn<kt,style:Rn.style,themeOverride:Rn.themeOverride,title:Rn.title,trailingRowOptions:Rn.trailingRowOptions,width:Rn.width,growOffset:Rn.growOffset,rowMarker:Rn.rowMarker,rowMarkerChecked:Rn.rowMarkerChecked})),[Ne,kt])}function pe(Ne,kt){const[Rn,jn]=kt;if(Ne.columns.hasIndex(Rn)||Ne.rows.hasIndex(jn))return!0;if(Ne.current!==void 0){if(Ee(Ne.current.cell,kt))return!0;const _r=[Ne.current.range,...Ne.current.rangeStack];for(const xr of _r)if(Rn>=xr.x&&Rn<xr.x+xr.width&&jn>=xr.y&&jn<xr.y+xr.height)return!0}return!1}function ye(Ne,kt){return(Ne??"")===(kt??"")}function Se(Ne,kt,Rn){return Rn.current===void 0||Ne[1]!==Rn.current.cell[1]?!1:kt.span===void 0?Rn.current.cell[0]===Ne[0]:Rn.current.cell[0]>=kt.span[0]&&Rn.current.cell[0]<=kt.span[1]}function Ae(Ne,kt){const[Rn,jn]=Ne;return Rn>=kt.x&&Rn<kt.x+kt.width&&jn>=kt.y&&jn<kt.y+kt.height}function Ee(Ne,kt){return Ne?.[0]===kt?.[0]&&Ne?.[1]===kt?.[1]}function xe(Ne){return[Ne.x+Ne.width-1,Ne.y+Ne.height-1]}function nt(Ne,kt,Rn){const jn=Rn.x,_r=Rn.x+Rn.width-1,xr=Rn.y,oi=Rn.y+Rn.height-1,[ti,Ri]=Ne;if(Ri<xr||Ri>oi)return!1;if(kt.span===void 0)return ti>=jn&&ti<=_r;const[Fi,Gi]=kt.span;return Fi>=jn&&Fi<=_r||Gi>=jn&&Fi<=_r||Fi<jn&&Gi>_r}function Tt(Ne,kt,Rn,jn){let _r=0;if(Rn.current===void 0)return _r;const xr=Rn.current.range;(jn||xr.height*xr.width>1)&&nt(Ne,kt,xr)&&_r++;for(const oi of Rn.current.rangeStack)nt(Ne,kt,oi)&&_r++;return _r}function pt(Ne,kt){let Rn=Ne;if(kt!==void 0){let jn=[...Ne];const _r=Rn[kt.src];kt.src>kt.dest?(jn.splice(kt.src,1),jn.splice(kt.dest,0,_r)):(jn.splice(kt.dest+1,0,_r),jn.splice(kt.src,1)),jn=jn.map((xr,oi)=>({...xr,sticky:Ne[oi].sticky})),Rn=jn}return Rn}function Rt(Ne,kt){let Rn=0;const jn=pt(Ne,kt);for(let _r=0;_r<jn.length;_r++){const xr=jn[_r];if(xr.sticky)Rn+=xr.width;else break}return Rn}function tt(Ne,kt,Rn){if(typeof Rn=="number")return kt*Rn;{let jn=0;for(let _r=Ne-kt;_r<Ne;_r++)jn+=Rn(_r);return jn}}function U(Ne,kt,Rn,jn,_r){const xr=pt(Ne,jn),oi=[];for(const Fi of xr)if(Fi.sticky)oi.push(Fi);else break;if(oi.length>0)for(const Fi of oi)Rn-=Fi.width;let ti=kt,Ri=_r??0;for(;Ri<=Rn&&ti<xr.length;)Ri+=xr[ti].width,ti++;for(let Fi=kt;Fi<ti;Fi++){const Gi=xr[Fi];Gi.sticky||oi.push(Gi)}return oi}function F(Ne,kt,Rn){let jn=0;for(const _r of kt){const xr=_r.sticky?jn:jn+(Rn??0);if(Ne<=xr+_r.width)return _r.sourceIndex;jn+=_r.width}return-1}function Y(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi){const Gi=jn+_r;if(Rn&&Ne<=_r)return-2;if(Ne<=Gi)return-1;let yo=kt;for(let Ji=0;Ji<Fi;Ji++){const Uo=xr-1-Ji,Ia=typeof oi=="number"?oi:oi(Uo);if(yo-=Ia,Ne>=yo)return Uo}const Do=xr-Fi,po=Ne-(Ri??0);if(typeof oi=="number"){const Ji=Math.floor((po-Gi)/oi)+ti;return Ji>=Do?void 0:Ji}else{let Ji=Gi;for(let Uo=ti;Uo<Do;Uo++){const Ia=oi(Uo);if(po<=Ji+Ia)return Uo;Ji+=Ia}return}}let le=0,ke={};const Ye=typeof window>"u";async function ft(){Ye||document?.fonts?.ready===void 0||(await document.fonts.ready,le=0,ke={},re())}ft();function wt(Ne,kt,Rn,jn){return`${Ne}_${jn??kt?.font}_${Rn}`}function Ut(Ne,kt,Rn,jn="middle"){const _r=wt(Ne,kt,jn,Rn);let xr=ke[_r];return xr===void 0&&(xr=kt.measureText(Ne),ke[_r]=xr,le++),le>1e4&&(ke={},le=0),xr}function Ke(Ne,kt){const Rn=wt(Ne,void 0,"middle",kt);return ke[Rn]}function it(Ne,kt){return typeof kt!="string"&&(kt=kt.baseFontFull),ee(Ne,kt)}function At(Ne,kt){const Rn="ABCDEFGHIJKLMNOPQRSTUVWXYZ";Ne.save(),Ne.textBaseline=kt;const jn=Ne.measureText(Rn);return Ne.restore(),jn}const et=[];function ee(Ne,kt){for(const xr of et)if(xr.key===kt)return xr.val;const Rn=At(Ne,"alphabetic"),_r=-(At(Ne,"middle").actualBoundingBoxDescent-Rn.actualBoundingBoxDescent)+Rn.actualBoundingBoxAscent/2;return et.push({key:kt,val:_r}),_r}function I(Ne,kt,Rn,jn,_r,xr){const{ctx:oi,rect:ti,theme:Ri}=Ne;let Fi=Number.MAX_SAFE_INTEGER;const Gi=500;if(kt!==void 0&&(Fi=Rn-kt,Fi<Gi)){const yo=1-Fi/Gi;oi.globalAlpha=yo,oi.fillStyle=Ri.bgSearchResult,oi.fillRect(ti.x+1,ti.y+1,ti.width-(_r?2:1),ti.height-(xr?2:1)),oi.globalAlpha=1,jn!==void 0&&(jn.fillStyle=Ri.bgSearchResult)}return Fi<Gi}function K(Ne,kt,Rn){const{ctx:jn,theme:_r}=Ne,xr=kt??{},oi=Rn??_r.textDark;return oi!==xr.fillStyle&&(jn.fillStyle=oi,xr.fillStyle=oi),xr}function ue(Ne,kt,Rn){const{rect:jn,ctx:_r,theme:xr}=Ne;_r.fillStyle=xr.textDark,qe({ctx:_r,rect:jn,theme:xr},kt,Rn)}function De(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri){Ri==="right"?Ne.fillText(kt,Rn+_r-(ti.cellHorizontalPadding+.5),jn+xr/2+oi):Ri==="center"?Ne.fillText(kt,Rn+_r/2,jn+xr/2+oi):Ne.fillText(kt,Rn+ti.cellHorizontalPadding+.5,jn+xr/2+oi)}function He(Ne,kt){const Rn=Ut("ABCi09jgqpy",Ne,kt);return Rn.actualBoundingBoxAscent+Rn.actualBoundingBoxDescent}function Fe(Ne,kt){Ne.includes(` `)&&(Ne=Ne.split(/\r?\n/,1)[0]);const Rn=kt/4;return Ne.length>Rn&&(Ne=Ne.slice(0,Rn)),Ne}function ze(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi){const Gi=ti.baseFontFull,yo=Re(Ne,kt,Gi,_r-ti.cellHorizontalPadding*2,Fi??!1),Do=He(Ne,Gi),po=ti.lineHeight*Do,Ji=Do+po*(yo.length-1),Uo=Ji+ti.cellVerticalPadding>xr;Uo&&(Ne.save(),Ne.rect(Rn,jn,_r,xr),Ne.clip());const Ia=jn+xr/2-Ji/2;let za=Math.max(jn+ti.cellVerticalPadding,Ia);for(const Ma of yo)if(De(Ne,Ma,Rn,za,_r,Do,oi,ti,Ri),za+=po,za>jn+xr)break;Uo&&Ne.restore()}function qe(Ne,kt,Rn,jn,_r){const{ctx:xr,rect:oi,theme:ti}=Ne,{x:Ri,y:Fi,width:Gi,height:yo}=oi;jn=jn??!1,jn||(kt=Fe(kt,Gi));const Do=it(xr,ti),po=ae(kt)==="rtl";if(Rn===void 0&&po&&(Rn="right"),po&&(xr.direction="rtl"),kt.length>0){let Ji=!1;Rn==="right"?(xr.textAlign="right",Ji=!0):Rn!==void 0&&Rn!=="left"&&(xr.textAlign=Rn,Ji=!0),jn?ze(xr,kt,Ri,Fi,Gi,yo,Do,ti,Rn,_r):De(xr,kt,Ri,Fi,Gi,yo,Do,ti,Rn),Ji&&(xr.textAlign="start"),po&&(xr.direction="inherit")}}function We(Ne,kt,Rn,jn,_r,xr){typeof xr=="number"&&(xr={tl:xr,tr:xr,br:xr,bl:xr}),xr={tl:Math.max(0,Math.min(xr.tl,_r/2,jn/2)),tr:Math.max(0,Math.min(xr.tr,_r/2,jn/2)),bl:Math.max(0,Math.min(xr.bl,_r/2,jn/2)),br:Math.max(0,Math.min(xr.br,_r/2,jn/2))},Ne.moveTo(kt+xr.tl,Rn),Ne.arcTo(kt+jn,Rn,kt+jn,Rn+xr.tr,xr.tr),Ne.arcTo(kt+jn,Rn+_r,kt+jn-xr.br,Rn+_r,xr.br),Ne.arcTo(kt,Rn+_r,kt,Rn+_r-xr.bl,xr.bl),Ne.arcTo(kt,Rn,kt+xr.tl,Rn,xr.tl)}function _t(Ne,kt,Rn){Ne.arc(kt,Rn-1.25*3.5,1.25,0,2*Math.PI,!1),Ne.arc(kt,Rn,1.25,0,2*Math.PI,!1),Ne.arc(kt,Rn+1.25*3.5,1.25,0,2*Math.PI,!1)}function ct(Ne,kt,Rn){const jn=function(ti,Ri){const Fi=Ri.x-ti.x,Gi=Ri.y-ti.y,yo=Math.sqrt(Fi*Fi+Gi*Gi),Do=Fi/yo,po=Gi/yo;return{x:Fi,y:Ri.y-ti.y,len:yo,nx:Do,ny:po,ang:Math.atan2(po,Do)}};let _r;const xr=kt.length;let oi=kt[xr-1];for(let ti=0;ti<xr;ti++){let Ri=kt[ti%xr];const Fi=kt[(ti+1)%xr],Gi=jn(Ri,oi),yo=jn(Ri,Fi),Do=Gi.nx*yo.ny-Gi.ny*yo.nx,po=Gi.nx*yo.nx-Gi.ny*-yo.ny;let Ji=Math.asin(Do<-1?-1:Do>1?1:Do),Uo=1,Ia=!1;po<0?Ji<0?Ji=Math.PI+Ji:(Ji=Math.PI-Ji,Uo=-1,Ia=!0):Ji>0&&(Uo=-1,Ia=!0),_r=Ri.radius!==void 0?Ri.radius:Rn;const za=Ji/2;let Ma=Math.abs(Math.cos(za)*_r/Math.sin(za)),xo;Ma>Math.min(Gi.len/2,yo.len/2)?(Ma=Math.min(Gi.len/2,yo.len/2),xo=Math.abs(Ma*Math.sin(za)/Math.cos(za))):xo=_r;let xs=Ri.x+yo.nx*Ma,va=Ri.y+yo.ny*Ma;xs+=-yo.ny*xo*Uo,va+=yo.nx*xo*Uo,Ne.arc(xs,va,xo,Gi.ang+Math.PI/2*Uo,yo.ang-Math.PI/2*Uo,Ia),oi=Ri,Ri=Fi}Ne.closePath()}function Ge(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji){const Uo={x:0,y:xr+Fi,width:0,height:0};if(Ne>=po.length||kt>=Gi||kt<-2||Ne<0)return Uo;const Ia=xr-_r;if(Ne>=yo){const za=oi>Ne?-1:1,Ma=Rt(po);Uo.x+=Ma+Ri;for(let xo=oi;xo!==Ne;xo+=za)Uo.x+=po[za===1?xo:xo-1].width*za}else for(let za=0;za<Ne;za++)Uo.x+=po[za].width;if(Uo.width=po[Ne].width+1,kt===-1)Uo.y=_r,Uo.height=Ia;else if(kt===-2){Uo.y=0,Uo.height=_r;let za=Ne;const Ma=po[Ne].group,xo=po[Ne].sticky;for(;za>0&&ye(po[za-1].group,Ma)&&po[za-1].sticky===xo;){const va=po[za-1];Uo.x-=va.width,Uo.width+=va.width,za--}let xs=Ne;for(;xs+1<po.length&&ye(po[xs+1].group,Ma)&&po[xs+1].sticky===xo;){const va=po[xs+1];Uo.width+=va.width,xs++}if(!xo){const va=Rt(po),Pa=Uo.x-va;Pa<0&&(Uo.x-=Pa,Uo.width+=Pa),Uo.x+Uo.width>Rn&&(Uo.width=Rn-Uo.x)}}else if(kt>=Gi-Do){let za=Gi-kt;for(Uo.y=jn;za>0;){const Ma=kt+za-1;Uo.height=typeof Ji=="number"?Ji:Ji(Ma),Uo.y-=Uo.height,za--}Uo.height+=1}else{const za=ti>kt?-1:1;if(typeof Ji=="number"){const Ma=kt-ti;Uo.y+=Ma*Ji}else for(let Ma=ti;Ma!==kt;Ma+=za)Uo.y+=Ji(Ma)*za;Uo.height=(typeof Ji=="number"?Ji:Ji(kt))+1}return Uo}const st=1<<21;function Me(Ne,kt){return(kt+2)*st+Ne}function ie(Ne){return Ne%st}function ge(Ne){return Math.floor(Ne/st)-2}function z(Ne){const kt=ie(Ne),Rn=ge(Ne);return[kt,Rn]}class be{visibleWindow={x:0,y:0,width:0,height:0};freezeCols=0;freezeRows=[];isInWindow=kt=>{const Rn=ie(kt),jn=ge(kt),_r=this.visibleWindow,xr=Rn>=_r.x&&Rn<=_r.x+_r.width||Rn<this.freezeCols,oi=jn>=_r.y&&jn<=_r.y+_r.height||this.freezeRows.includes(jn);return xr&&oi};setWindow(kt,Rn,jn){this.visibleWindow.x===kt.x&&this.visibleWindow.y===kt.y&&this.visibleWindow.width===kt.width&&this.visibleWindow.height===kt.height&&this.freezeCols===Rn&&(0,l.bD)(this.freezeRows,jn)||(this.visibleWindow=kt,this.freezeCols=Rn,this.freezeRows=jn,this.clearOutOfWindow())}}class Qe extends be{cache=new Map;setValue=(kt,Rn)=>{this.cache.set(Me(kt[0],kt[1]),Rn)};getValue=kt=>this.cache.get(Me(kt[0],kt[1]));clearOutOfWindow=()=>{for(const[kt]of this.cache.entries())this.isInWindow(kt)||this.cache.delete(kt)}}class Bt{cells;constructor(kt=[]){this.cells=new Set(kt.map(Rn=>Me(Rn[0],Rn[1])))}add(kt){this.cells.add(Me(kt[0],kt[1]))}has(kt){return kt===void 0?!1:this.cells.has(Me(kt[0],kt[1]))}remove(kt){this.cells.delete(Me(kt[0],kt[1]))}clear(){this.cells.clear()}get size(){return this.cells.size}hasHeader(){for(const kt of this.cells)if(ge(kt)<0)return!0;return!1}hasItemInRectangle(kt){for(let Rn=kt.y;Rn<kt.y+kt.height;Rn++)for(let jn=kt.x;jn<kt.x+kt.width;jn++)if(this.cells.has(Me(jn,Rn)))return!0;return!1}hasItemInRegion(kt){for(const Rn of kt)if(this.hasItemInRectangle(Rn))return!0;return!1}*values(){for(const kt of this.cells)yield z(kt)}}function nn(Ne,kt){return Ne==="normal"?[kt.bgIconHeader,kt.fgIconHeader]:Ne==="selected"?["white",kt.accentColor]:[kt.accentColor,kt.bgHeader]}class bt{onSettled;spriteMap=new Map;headerIcons;inFlight=0;constructor(kt,Rn){this.onSettled=Rn,this.headerIcons=kt??{}}drawSprite(kt,Rn,jn,_r,xr,oi,ti,Ri=1){const[Fi,Gi]=nn(Rn,ti),yo=oi*Math.ceil(window.devicePixelRatio),Do=`${Fi}_${Gi}_${yo}_${kt}`;let po=this.spriteMap.get(Do);if(po===void 0){const Ji=this.headerIcons[kt];if(Ji===void 0)return;po=document.createElement("canvas");const Uo=po.getContext("2d");if(Uo===null)return;const Ia=new Image;Ia.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(Ji({fgColor:Gi,bgColor:Fi}))}`,this.spriteMap.set(Do,po);const za=Ia.decode();if(za===void 0)return;this.inFlight++,za.then(()=>{Uo.drawImage(Ia,0,0,yo,yo)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else Ri<1&&(jn.globalAlpha=Ri),jn.drawImage(po,0,0,yo,yo,_r,xr,oi,oi),Ri<1&&(jn.globalAlpha=1)}}var at=t(73121);function $t(Ne){if(Ne.length===0)return;let kt;for(const Rn of Ne)kt=Math.min(kt??Rn.y,Rn.y)}function On(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri){ti=ti??kt;let Fi=kt,Gi=Ne;const yo=jn-xr;let Do=!1;for(;Fi<Rn&&Gi<yo;){const po=_r(Gi);if(Fi+po>ti&&Ri(Fi,Gi,po,!1,oi&&Gi===jn-1)===!0){Do=!0;break}Fi+=po,Gi++}if(!Do){Fi=Rn;for(let po=0;po<xr;po++){Gi=jn-1-po;const Ji=_r(Gi);Fi-=Ji,Ri(Fi,Gi,Ji,!0,oi&&Gi===jn-1)}}}function Ct(Ne,kt,Rn,jn,_r,xr){let oi=0,ti=0;const Ri=_r+jn;for(const Fi of Ne){const Gi=Fi.sticky?ti:oi+Rn;if(xr(Fi,Gi,Ri,Fi.sticky?0:ti,kt)===!0)break;oi+=Fi.width,ti+=Fi.sticky?Fi.width:0}}function Zt(Ne,kt,Rn,jn,_r){let xr=0,oi=0;for(let ti=0;ti<Ne.length;ti++){const Ri=Ne[ti];let Fi=ti+1,Gi=Ri.width;for(Ri.sticky&&(oi+=Gi);Fi<Ne.length&&ye(Ne[Fi].group,Ri.group)&&Ne[Fi].sticky===Ne[ti].sticky;){const Uo=Ne[Fi];Gi+=Uo.width,Fi++,ti++,Uo.sticky&&(oi+=Uo.width)}const yo=Ri.sticky?0:Rn,Do=xr+yo,po=Ri.sticky?0:Math.max(0,oi-Do),Ji=Math.min(Gi-po,kt-(Do+po));_r([Ri.sourceIndex,Ne[Fi-1].sourceIndex],Ri.group??"",Do+po,0,Ji,jn),xr+=Gi}}function Wn(Ne,kt,Rn,jn,_r,xr,oi){const[ti,Ri]=Ne;let Fi,Gi;const yo=oi.find(Do=>!Do.sticky)?.sourceIndex??0;if(Ri>yo){const Do=Math.max(ti,yo);let po=kt,Ji=jn;for(let Uo=xr.sourceIndex-1;Uo>=Do;Uo--)po-=oi[Uo].width,Ji+=oi[Uo].width;for(let Uo=xr.sourceIndex+1;Uo<=Ri;Uo++)Ji+=oi[Uo].width;Gi={x:po,y:Rn,width:Ji,height:_r}}if(yo>ti){const Do=Math.min(Ri,yo-1);let po=kt,Ji=jn;for(let Uo=xr.sourceIndex-1;Uo>=ti;Uo--)po-=oi[Uo].width,Ji+=oi[Uo].width;for(let Uo=xr.sourceIndex+1;Uo<=Do;Uo++)Ji+=oi[Uo].width;Fi={x:po,y:Rn,width:Ji,height:_r}}return[Fi,Gi]}var Zn=t(78086);function xt(Ne,kt,Rn,jn){if(jn==="any")return Qt(Ne,{x:kt,y:Rn,width:1,height:1});if(jn==="vertical"&&(kt=Ne.x),jn==="horizontal"&&(Rn=Ne.y),Ae([kt,Rn],Ne))return;const _r=kt-Ne.x,xr=Ne.x+Ne.width-kt,oi=Rn-Ne.y+1,ti=Ne.y+Ne.height-Rn,Ri=Math.min(jn==="vertical"?Number.MAX_SAFE_INTEGER:_r,jn==="vertical"?Number.MAX_SAFE_INTEGER:xr,jn==="horizontal"?Number.MAX_SAFE_INTEGER:oi,jn==="horizontal"?Number.MAX_SAFE_INTEGER:ti);return Ri===ti?{x:Ne.x,y:Ne.y+Ne.height,width:Ne.width,height:Rn-Ne.y-Ne.height+1}:Ri===oi?{x:Ne.x,y:Rn,width:Ne.width,height:Ne.y-Rn}:Ri===xr?{x:Ne.x+Ne.width,y:Ne.y,width:kt-Ne.x-Ne.width+1,height:Ne.height}:{x:kt,y:Ne.y,width:Ne.x-kt,height:Ne.height}}function Xe(Ne,kt,Rn,jn,_r,xr,oi,ti){return Ne<=_r+oi&&_r<=Ne+Rn&&kt<=xr+ti&&xr<=kt+jn}function gn(Ne,kt,Rn){return kt>=Ne.x&&kt<=Ne.x+Ne.width&&Rn>=Ne.y&&Rn<=Ne.y+Ne.height}function Qt(Ne,kt){const Rn=Math.min(Ne.x,kt.x),jn=Math.min(Ne.y,kt.y),_r=Math.max(Ne.x+Ne.width,kt.x+kt.width)-Rn,xr=Math.max(Ne.y+Ne.height,kt.y+kt.height)-jn;return{x:Rn,y:jn,width:_r,height:xr}}function Dt(Ne,kt){return Ne.x<=kt.x&&Ne.y<=kt.y&&Ne.x+Ne.width>=kt.x+kt.width&&Ne.y+Ne.height>=kt.y+kt.height}function hn(Ne,kt,Rn,jn){if(Ne.x>kt||Ne.y>Rn||Ne.x<0&&Ne.y<0&&Ne.x+Ne.width>kt&&Ne.y+Ne.height>Rn)return;if(Ne.x>=0&&Ne.y>=0&&Ne.x+Ne.width<=kt&&Ne.y+Ne.height<=Rn)return Ne;const _r=-4,xr=-4,oi=kt+4,ti=Rn+4,Ri=_r-Ne.x,Fi=Ne.x+Ne.width-oi,Gi=xr-Ne.y,yo=Ne.y+Ne.height-ti,Do=Ri>0?Ne.x+Math.floor(Ri/jn)*jn:Ne.x,po=Fi>0?Ne.x+Ne.width-Math.floor(Fi/jn)*jn:Ne.x+Ne.width,Ji=Gi>0?Ne.y+Math.floor(Gi/jn)*jn:Ne.y,Uo=yo>0?Ne.y+Ne.height-Math.floor(yo/jn)*jn:Ne.y+Ne.height;return{x:Do,y:Ji,width:po-Do,height:Uo-Ji}}function cn(Ne,kt,Rn,jn,_r){const[xr,oi,ti,Ri]=kt,[Fi,Gi,yo,Do]=_r,{x:po,y:Ji,width:Uo,height:Ia}=Ne,za=[];if(Uo<=0||Ia<=0)return za;const Ma=po+Uo,xo=Ji+Ia,xs=po<xr,va=Ji<oi,Pa=po+Uo>ti,Na=Ji+Ia>Ri,Xa=po>=xr&&po<ti||Ma>xr&&Ma<=ti||po<xr&&Ma>ti,wa=Ji>=oi&&Ji<Ri||xo>oi&&xo<=Ri||Ji<oi&&xo>Ri;if(Xa&&wa){const vs=Math.max(po,xr),Za=Math.max(Ji,oi),$a=Math.min(Ma,ti),ns=Math.min(xo,Ri);za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:Fi,y:Gi,width:yo-Fi+1,height:Do-Gi+1}})}if(xs&&va){const vs=po,Za=Ji,$a=Math.min(Ma,xr),ns=Math.min(xo,oi);za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:0,y:0,width:Fi+1,height:Gi+1}})}if(va&&Xa){const vs=Math.max(po,xr),Za=Ji,$a=Math.min(Ma,ti),ns=Math.min(xo,oi);za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:Fi,y:0,width:yo-Fi+1,height:Gi+1}})}if(va&&Pa){const vs=Math.max(po,ti),Za=Ji,$a=Ma,ns=Math.min(xo,oi);za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:yo,y:0,width:Rn-yo+1,height:Gi+1}})}if(xs&&wa){const vs=po,Za=Math.max(Ji,oi),$a=Math.min(Ma,xr),ns=Math.min(xo,Ri);za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:0,y:Gi,width:Fi+1,height:Do-Gi+1}})}if(Pa&&wa){const vs=Math.max(po,ti),Za=Math.max(Ji,oi),$a=Ma,ns=Math.min(xo,Ri);za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:yo,y:Gi,width:Rn-yo+1,height:Do-Gi+1}})}if(xs&&Na){const vs=po,Za=Math.max(Ji,Ri),$a=Math.min(Ma,xr),ns=xo;za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:0,y:Do,width:Fi+1,height:jn-Do+1}})}if(Na&&Xa){const vs=Math.max(po,xr),Za=Math.max(Ji,Ri),$a=Math.min(Ma,ti),ns=xo;za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:Fi,y:Do,width:yo-Fi+1,height:jn-Do+1}})}if(Pa&&Na){const vs=Math.max(po,ti),Za=Math.max(Ji,Ri),$a=Ma,ns=xo;za.push({rect:{x:vs,y:Za,width:$a-vs,height:ns-Za},clip:{x:yo,y:Do,width:Rn-yo+1,height:jn-Do+1}})}return za}const an={kind:v.dd.Loading,allowOverlay:!1};function Or(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia,za,Ma,xo,xs,va,Pa,Na,Xa,wa,Ga,vs,Za,$a,ns,uu,Mu,Lu,ju){let pl=xo?.size??Number.MAX_SAFE_INTEGER;const pu=performance.now();let ks=$a.baseFontFull;Ne.font=ks;const su={ctx:Ne},Au=[0,0],wl=Ia>0?tt(Ri,Ia,Fi):0;let bu,Ul;const Wl=$t(Ma);return Ct(kt,ti,xr,oi,_r,(il,_l,Hs,Pl,Ql)=>{const ll=Math.max(0,Pl-_l),Kl=_l+ll,ia=_r+1,Sa=il.width-ll,Ea=jn-_r-1;if(Ma.length>0){let ko=!1;for(let fa=0;fa<Ma.length;fa++){const Zo=Ma[fa];if(Xe(Kl,ia,Sa,Ea,Zo.x,Zo.y,Zo.width,Zo.height)){ko=!0;break}}if(!ko)return}const rs=()=>{Ne.save(),Ne.beginPath(),Ne.rect(Kl,ia,Sa,Ea),Ne.clip()},Ns=xs.columns.hasIndex(il.sourceIndex),Xt=yo(il.group??"").overrideTheme,bn=il.themeOverride===void 0&&Xt===void 0?$a:(0,Zn.P6)($a,Xt,il.themeOverride),Dn=bn.baseFontFull;Dn!==ks&&(ks=Dn,Ne.font=Dn),rs();let Ii;return On(Ql,Hs,jn,Ri,Fi,Ia,za,Wl,(ko,fa,Zo,Fa,Ua)=>{if(fa<0||(Au[0]=il.sourceIndex,Au[1]=fa,xo!==void 0&&!xo.has(Au)))return;if(Ma.length>0){let ml=!1;for(let vl=0;vl<Ma.length;vl++){const Vu=Ma[vl];if(Xe(_l,ko,il.width,Zo,Vu.x,Vu.y,Vu.width,Vu.height)){ml=!0;break}}if(!ml)return}const ms=xs.rows.hasIndex(fa),Fs=po.hasIndex(fa),ws=fa<Ri?Gi(Au):an;let fu=_l,wu=il.width,Du=!1,zu=!1;if(ws.span!==void 0){const[ml,vl]=ws.span,Vu=`${fa},${ml},${vl},${il.sticky}`;if(Ul===void 0&&(Ul=new Set),Ul.has(Vu)){pl--;return}else{const ad=Wn(ws.span,_l,ko,il.width,Zo,il,Rn),Bc=il.sticky?ad[0]:ad[1];if(!il.sticky&&ad[0]!==void 0&&(zu=!0),Bc!==void 0){fu=Bc.x,wu=Bc.width,Ul.add(Vu),Ne.restore(),Ii=void 0,Ne.save(),Ne.beginPath();const hf=Math.max(0,Pl-Bc.x);Ne.rect(Bc.x+hf,ko,Bc.width-hf,Zo),bu===void 0&&(bu=[]),bu.push({x:Bc.x+hf,y:ko,width:Bc.width-hf,height:Zo}),Ne.clip(),Du=!0}}}const Il=Do?.(fa),bc=Ua&&il.trailingRowOptions?.themeOverride!==void 0?il.trailingRowOptions?.themeOverride:void 0,Gl=ws.themeOverride===void 0&&Il===void 0&&bc===void 0?bn:(0,Zn.P6)(bn,Il,bc,ws.themeOverride);Ne.beginPath();const oc=Se(Au,ws,xs);let ac=Tt(Au,ws,xs,Uo);const jl=ws.span!==void 0&&xs.columns.some(ml=>ws.span!==void 0&&ml>=ws.span[0]&&ml<=ws.span[1]);oc&&!Ji&&Uo?ac=0:oc&&Uo&&(ac=Math.max(ac,1)),jl&&ac++,oc||(ms&&ac++,Ns&&!Ua&&ac++);const nc=ws.kind===v.dd.Protected?Gl.bgCellMedium:Gl.bgCell;let Fl;if((Fa||nc!==$a.bgCell)&&(Fl=(0,at.au)(nc,Fl)),ac>0||Fs){Fs&&(Fl=(0,at.au)(Gl.bgHeader,Fl));for(let ml=0;ml<ac;ml++)Fl=(0,at.au)(Gl.accentLight,Fl)}else if(va!==void 0){for(const ml of va)if(ml[0]===il.sourceIndex&&ml[1]===fa){Fl=(0,at.au)(Gl.bgSearchResult,Fl);break}}if(Pa!==void 0)for(let ml=0;ml<Pa.length;ml++){const vl=Pa[ml],Vu=vl.range;vl.style!=="solid-outline"&&Vu.x<=il.sourceIndex&&il.sourceIndex<Vu.x+Vu.width&&Vu.y<=fa&&fa<Vu.y+Vu.height&&(Fl=(0,at.au)(vl.color,Fl))}let Zu=!1;if(xo!==void 0){const ml=ko+1,Vu=(Fa?ml+Zo-1:Math.min(ml+Zo-1,jn-wl))-ml;(Vu!==Zo-1||fu+1<=Pl)&&(Zu=!0,Ne.save(),Ne.beginPath(),Ne.rect(fu+1,ml,wu-1,Vu),Ne.clip()),Fl=Fl===void 0?Gl.bgCell:(0,at.au)(Fl,Gl.bgCell)}const Ac=il.sourceIndex===Rn.length-1,tf=fa===Ri-1;Fl!==void 0&&(Ne.fillStyle=Fl,Ii!==void 0&&(Ii.fillStyle=Fl),xo!==void 0?Ne.fillRect(fu+1,ko+1,wu-(Ac?2:1),Zo-(tf?2:1)):Ne.fillRect(fu,ko,wu,Zo)),ws.style==="faded"&&(Ne.globalAlpha=.6);let Jl;for(let ml=0;ml<wa.length;ml++){const vl=wa[ml];if(vl.item[0]===il.sourceIndex&&vl.item[1]===fa){Jl=vl;break}}if(wu>ju&&!zu){const ml=Gl.baseFontFull;ml!==ks&&(Ne.font=ml,ks=ml),Ii=pi(Ne,ws,il.sourceIndex,fa,Ac,tf,fu,ko,wu,Zo,ac>0,Gl,Fl??Gl.bgCell,Na,Xa,Jl?.hoverAmount??0,Ga,Za,pu,vs,Ii,ns,uu,Mu,Lu)}return Zu&&Ne.restore(),ws.style==="faded"&&(Ne.globalAlpha=1),pl--,Du&&(Ne.restore(),Ii?.deprep?.(su),Ii=void 0,rs(),ks=Dn,Ne.font=Dn),pl<=0}),Ne.restore(),pl<=0}),bu}const Ln=[0,0],En={x:0,y:0,width:0,height:0},Gn=[void 0,()=>{}];let rr=!1;function sr(){rr=!0}function pi(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia,za,Ma,xo,xs,va,Pa,Na,Xa){let wa,Ga;Ia!==void 0&&Ia[0][0]===Rn&&Ia[0][1]===jn&&(wa=Ia[1][0],Ga=Ia[1][1]);let vs;Ln[0]=Rn,Ln[1]=jn,En.x=oi,En.y=ti,En.width=Ri,En.height=Fi,Gn[0]=Pa.getValue(Ln),Gn[1]=uu=>Pa.setValue(Ln,uu),rr=!1;const Za={ctx:Ne,theme:yo,col:Rn,row:jn,cell:kt,rect:En,highlighted:Gi,cellFillColor:Do,hoverAmount:Uo,frameTime:Ma,hoverX:wa,drawState:Gn,hoverY:Ga,imageLoader:po,spriteManager:Ji,hyperWrapping:za,overrideCursor:wa!==void 0?Xa:void 0,requestAnimationFrame:sr},$a=I(Za,kt.lastUpdated,Ma,xs,_r,xr),ns=Na(kt);if(ns!==void 0){xs?.renderer!==ns&&(xs?.deprep?.(Za),xs=void 0);const uu=ns.drawPrep?.(Za,xs);xo!==void 0&&!(0,v.pg)(Za.cell)?xo(Za,()=>ns.draw(Za,kt)):ns.draw(Za,kt),vs=uu===void 0?void 0:{deprep:uu?.deprep,fillStyle:uu?.fillStyle,font:uu?.font,renderer:ns}}return($a||rr)&&va?.(Ln),vs}function yi(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri=-20,Fi=-20,Gi=32,yo="center",Do="square"){const po=Math.floor(_r+oi/2),Ji=Do==="circle"?1e4:kt.roundingRadius??4;let Uo=O(Gi,oi,kt.cellVerticalPadding),Ia=Uo/2;const za=S(yo,jn,xr,kt.cellHorizontalPadding,Uo),Ma=w(za,po,Uo),xo=R(jn+Ri,_r+Fi,Ma);switch(Rn){case!0:{Ne.beginPath(),We(Ne,za-Uo/2,po-Uo/2,Uo,Uo,Ji),Do==="circle"&&(Ia*=.8,Uo*=.8),Ne.fillStyle=ti?kt.accentColor:kt.textMedium,Ne.fill(),Ne.beginPath(),Ne.moveTo(za-Ia+Uo/4.23,po-Ia+Uo/1.97),Ne.lineTo(za-Ia+Uo/2.42,po-Ia+Uo/1.44),Ne.lineTo(za-Ia+Uo/1.29,po-Ia+Uo/3.25),Ne.strokeStyle=kt.bgCell,Ne.lineJoin="round",Ne.lineCap="round",Ne.lineWidth=1.9,Ne.stroke();break}case v.WE:case!1:{Ne.beginPath(),We(Ne,za-Uo/2+.5,po-Uo/2+.5,Uo-1,Uo-1,Ji),Ne.lineWidth=1,Ne.strokeStyle=xo?kt.textDark:kt.textMedium,Ne.stroke();break}case v.wm:{Ne.beginPath(),We(Ne,za-Uo/2,po-Uo/2,Uo,Uo,Ji),Ne.fillStyle=xo?kt.textMedium:kt.textLight,Ne.fill(),Do==="circle"&&(Ia*=.8,Uo*=.8),Ne.beginPath(),Ne.moveTo(za-Uo/3,po),Ne.lineTo(za+Uo/3,po),Ne.strokeStyle=kt.bgCell,Ne.lineCap="round",Ne.lineWidth=1.9,Ne.stroke();break}default:(0,l.xb)(Rn)}}function jr(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia,za,Ma){const xo=oi+ti;if(xo<=0)return;Ne.fillStyle=yo.bgHeader,Ne.fillRect(0,0,_r,xo);const[xs,va]=jn?.[0]??[],Pa=yo.headerFontFull;Ne.font=Pa,Ct(kt,0,xr,0,xo,(Na,Xa,wa,Ga)=>{if(Ia!==void 0&&!Ia.has([Na.sourceIndex,-1]))return;const vs=Math.max(0,Ga-Xa);Ne.save(),Ne.beginPath(),Ne.rect(Xa+vs,ti,Na.width-vs,oi),Ne.clip();const Za=Uo(Na.group??"").overrideTheme,$a=Na.themeOverride===void 0&&Za===void 0?yo:(0,Zn.P6)(yo,Za,Na.themeOverride);$a.bgHeader!==yo.bgHeader&&(Ne.fillStyle=$a.bgHeader,Ne.fill()),$a!==yo&&(Ne.font=$a.baseFontFull);const ns=Gi.columns.hasIndex(Na.sourceIndex),uu=Ri!==void 0||Fi,Mu=!uu&&va===-1&&xs===Na.sourceIndex,Lu=uu?0:po.find(su=>su.item[0]===Na.sourceIndex&&su.item[1]===-1)?.hoverAmount??0,ju=Gi?.current!==void 0&&Gi.current.cell[0]===Na.sourceIndex,pl=ns?$a.accentColor:ju?$a.bgHeaderHasFocus:$a.bgHeader,pu=Rn?ti:0,ks=Na.sourceIndex===0?0:1;ns?(Ne.fillStyle=pl,Ne.fillRect(Xa+ks,pu,Na.width-ks,oi)):(ju||Lu>0)&&(Ne.beginPath(),Ne.rect(Xa+ks,pu,Na.width-ks,oi),ju&&(Ne.fillStyle=$a.bgHeaderHasFocus,Ne.fill()),Lu>0&&(Ne.globalAlpha=Lu,Ne.fillStyle=$a.bgHeaderHovered,Ne.fill(),Ne.globalAlpha=1)),Kr(Ne,Xa,pu,Na.width,oi,Na,ns,$a,Mu,ju,Lu,Do,za,Ma),Ne.restore()}),Rn&&ui(Ne,kt,_r,xr,ti,jn,yo,Do,po,Ji,Uo,Ia)}function ui(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo){const[po,Ji]=xr?.[0]??[];let Uo=0;Zt(kt,Rn,jn,_r,(Ia,za,Ma,xo,xs,va)=>{if(yo!==void 0&&!yo.hasItemInRectangle({x:Ia[0],y:-2,width:Ia[1]-Ia[0]+1,height:1}))return;Ne.save(),Ne.beginPath(),Ne.rect(Ma,xo,xs,va),Ne.clip();const Pa=Gi(za),Na=Pa?.overrideTheme===void 0?oi:(0,Zn.P6)(oi,Pa.overrideTheme),Xa=Ji===-2&&po!==void 0&&po>=Ia[0]&&po<=Ia[1],wa=Xa?Na.bgHeaderHovered:Na.bgHeader;if(wa!==oi.bgHeader&&(Ne.fillStyle=wa,Ne.fill()),Ne.fillStyle=Na.textGroupHeader??Na.textHeader,Pa!==void 0){let Ga=Ma;if(Pa.icon!==void 0&&(ti.drawSprite(Pa.icon,"normal",Ne,Ga+8,(_r-20)/2,20,Na),Ga+=26),Ne.fillText(Pa.name,Ga+8,_r/2+it(Ne,oi.headerFontFull)),Pa.actions!==void 0&&Xa){const vs=hi({x:Ma,y:xo,width:xs,height:va},Pa.actions);Ne.beginPath();const Za=vs[0].x-10,$a=Ma+xs-Za;Ne.rect(Za,0,$a,_r);const ns=Ne.createLinearGradient(Za,0,Za+$a,0),uu=(0,at.fu)(wa,0);ns.addColorStop(0,uu),ns.addColorStop(10/$a,wa),ns.addColorStop(1,wa),Ne.fillStyle=ns,Ne.fill(),Ne.globalAlpha=.6;const[Mu,Lu]=xr?.[1]??[-1,-1];for(let ju=0;ju<Pa.actions.length;ju++){const pl=Pa.actions[ju],pu=vs[ju],ks=gn(pu,Mu+Ma,Lu);ks&&(Ne.globalAlpha=1),ti.drawSprite(pl.icon,"normal",Ne,pu.x+pu.width/2-10,pu.y+pu.height/2-10,20,Na),ks&&(Ne.globalAlpha=.6)}Ne.globalAlpha=1}}Ma!==0&&Fi(Ia[0])&&(Ne.beginPath(),Ne.moveTo(Ma+.5,0),Ne.lineTo(Ma+.5,_r),Ne.strokeStyle=oi.borderColor,Ne.lineWidth=1,Ne.stroke()),Ne.restore(),Uo=Ma+xs}),Ne.beginPath(),Ne.moveTo(Uo+.5,0),Ne.lineTo(Uo+.5,_r),Ne.moveTo(0,_r+.5),Ne.lineTo(Rn,_r+.5),Ne.strokeStyle=oi.borderColor,Ne.lineWidth=1,Ne.stroke()}const bi=30;function ri(Ne,kt,Rn,jn,_r){return _r?{x:Ne,y:kt,width:bi,height:Math.min(bi,jn)}:{x:Ne+Rn-bi,y:Math.max(kt,kt+jn/2-bi/2),width:bi,height:Math.min(bi,jn)}}function hi(Ne,kt){const Rn=[];let jn=Ne.x+Ne.width-26*kt.length;const _r=Ne.y+Ne.height/2-13,xr=26,oi=26;for(let ti=0;ti<kt.length;ti++)Rn.push({x:jn,y:_r,width:oi,height:xr}),jn+=26;return Rn}function Si(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po){if(xr.rowMarker!==void 0){const xo=xr.rowMarkerChecked;xo!==!0&&(Ne.globalAlpha=Fi),yi(Ne,ti,xo,kt,Rn,jn,_r,!1,void 0,void 0,18,"center",xr.rowMarker),xo!==!0&&(Ne.globalAlpha=1);return}const Ji=ti.cellHorizontalPadding,Uo=oi?ti.textHeaderSelected:ti.textHeader,Ia=xr.hasMenu===!0&&(Ri||yo&&oi),za=Do?-1:1;let Ma=Do?kt+jn-Ji:kt+Ji;if(xr.icon!==void 0){let xo=oi?"selected":"normal";xr.style==="highlight"&&(xo=oi?"selected":"special");const xs=ti.headerIconSize;Gi.drawSprite(xr.icon,xo,Ne,Do?Ma-xs:Ma,Rn+(_r-xs)/2,xs,ti),xr.overlayIcon!==void 0&&Gi.drawSprite(xr.overlayIcon,oi?"selected":"special",Ne,Do?Ma-xs+9:Ma+9,Rn+((_r-18)/2+6),18,ti),Ma+=Math.ceil(xs*1.3)*za}if(Ia&&xr.hasMenu===!0&&jn>35){const xs=Do?35:jn-35,va=Do?35*.7:jn-35*.7,Pa=xs/jn,Na=va/jn,Xa=Ne.createLinearGradient(kt,0,kt+jn,0),wa=(0,at.fu)(Uo,0);Xa.addColorStop(Do?1:0,Uo),Xa.addColorStop(Pa,Uo),Xa.addColorStop(Na,wa),Xa.addColorStop(Do?0:1,wa),Ne.fillStyle=Xa}else Ne.fillStyle=Uo;if(Do&&(Ne.textAlign="right"),Ne.fillText(xr.title,Ma,Rn+_r/2+it(Ne,ti.headerFontFull)),Do&&(Ne.textAlign="left"),Ia&&xr.hasMenu===!0)if(xr.menuIcon===void 0||xr.menuIcon===v.N4.Triangle){Ne.beginPath();const xo=po.x+po.width/2-5.5,xs=po.y+po.height/2-3;ct(Ne,[{x:xo,y:xs},{x:xo+11,y:xs},{x:xo+5.5,y:xs+6}],1),Ne.fillStyle=Uo,Ne.fill()}else if(xr.menuIcon===v.N4.Dots){Ne.beginPath();const xo=po.x+po.width/2,xs=po.y+po.height/2;_t(Ne,xo,xs),Ne.fillStyle=Uo,Ne.fill()}else{const xo=po.x+(po.width-ti.headerIconSize)/2,xs=po.y+(po.height-ti.headerIconSize)/2;Gi.drawSprite(xr.menuIcon,"normal",Ne,xo,xs,ti.headerIconSize,ti)}}function Kr(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po){const Ji=ae(xr.title)==="rtl",Uo=ri(kt,Rn,jn,_r,Ji);Do!==void 0?Do({ctx:Ne,theme:ti,rect:{x:kt,y:Rn,width:jn,height:_r},column:xr,columnIndex:xr.sourceIndex,isSelected:oi,hoverAmount:Gi,isHovered:Ri,hasSelectedCell:Fi,spriteManager:yo,menuBounds:Uo},()=>Si(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Gi,yo,po,Ji,Uo)):Si(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Gi,yo,po,Ji,Uo)}var xi=t(94394);function Ai(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia,za,Ma){if(za!==void 0||kt[kt.length-1]!==Rn[kt.length-1])return;const xo=$t(Ia);Ct(kt,Ri,oi,ti,xr,(xs,va,Pa,Na,Xa)=>{if(xs!==kt[kt.length-1])return;va+=xs.width;const wa=Math.max(va,Na);wa>jn||(Ne.save(),Ne.beginPath(),Ne.rect(wa,xr+1,1e4,_r-xr-1),Ne.clip(),On(Xa,Pa,_r,Fi,Gi,Ji,Uo,xo,(Ga,vs,Za,$a)=>{if(!$a&&Ia.length>0&&!Ia.some(ju=>Xe(va,Ga,1e4,Za,ju.x,ju.y,ju.width,ju.height)))return;const ns=Do.hasIndex(vs),uu=po.hasIndex(vs);Ne.beginPath();const Mu=yo?.(vs),Lu=Mu===void 0?Ma:(0,Zn.P6)(Ma,Mu);Lu.bgCell!==Ma.bgCell&&(Ne.fillStyle=Lu.bgCell,Ne.fillRect(va,Ga,1e4,Za)),uu&&(Ne.fillStyle=Lu.bgHeader,Ne.fillRect(va,Ga,1e4,Za)),ns&&(Ne.fillStyle=Lu.accentLight,Ne.fillRect(va,Ga,1e4,Za))}),Ne.restore())})}function Pi(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri){let Fi=!1;for(const Ji of kt)if(!Ji.sticky){Fi=oi(Ji.sourceIndex);break}const Gi=Ri.horizontalBorderColor??Ri.borderColor,yo=Ri.borderColor,Do=Fi?Rt(kt):0;let po;if(Do!==0&&(po=(0,at.mN)(yo,Ri.bgCell),Ne.beginPath(),Ne.moveTo(Do+.5,0),Ne.lineTo(Do+.5,jn),Ne.strokeStyle=po,Ne.stroke()),_r>0){const Ji=yo===Gi&&po!==void 0?po:(0,at.mN)(Gi,Ri.bgCell),Uo=tt(xr,_r,ti);Ne.beginPath(),Ne.moveTo(0,jn-Uo+.5),Ne.lineTo(Rn,jn-Uo+.5),Ne.strokeStyle=Ji,Ne.stroke()}}const io=(Ne,kt,Rn)=>{let jn=0,_r=kt,xr=0,oi=Rn;if(Ne!==void 0&&Ne.length>0){jn=Number.MAX_SAFE_INTEGER,xr=Number.MAX_SAFE_INTEGER,_r=Number.MIN_SAFE_INTEGER,oi=Number.MIN_SAFE_INTEGER;for(const ti of Ne)jn=Math.min(jn,ti.x-1),_r=Math.max(_r,ti.x+ti.width+1),xr=Math.min(xr,ti.y-1),oi=Math.max(oi,ti.y+ti.height+1)}return{minX:jn,maxX:_r,minY:xr,maxY:oi}};function lo(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji){const Uo=Ji.bgCell,{minX:Ia,maxX:za,minY:Ma,maxY:xo}=io(ti,xr,oi),xs=[],va=oi-tt(po,Do,Fi);let Pa=Ri,Na=Rn,Xa=0;for(;Pa+_r<va;){const Za=Pa+_r,$a=Fi(Na);if(Za>=Ma&&Za<=xo-1){const uu=Gi?.(Na)?.bgCell;uu!==void 0&&uu!==Uo&&Na>=po-Do&&xs.push({x:Ia,y:Za,w:za-Ia,h:$a,color:uu})}Pa+=$a,Na<po-Do&&(Xa=Pa),Na++}let wa=0;const Ga=Math.min(va,xo)-Xa;if(Ga>0)for(let Za=0;Za<kt.length;Za++){const $a=kt[Za];if($a.width===0)continue;const ns=$a.sticky?wa:wa+jn,uu=$a.themeOverride?.bgCell;uu!==void 0&&uu!==Uo&&ns>=Ia&&ns<=za&&yo(Za+1)&&xs.push({x:ns,y:Xa,w:$a.width,h:Ga,color:uu}),wa+=$a.width}if(xs.length===0)return;let vs;Ne.beginPath();for(let Za=xs.length-1;Za>=0;Za--){const $a=xs[Za];vs===void 0?vs=$a.color:$a.color!==vs&&(Ne.fillStyle=vs,Ne.fill(),Ne.beginPath(),vs=$a.color),Ne.rect($a.x,$a.y,$a.w,$a.h)}vs!==void 0&&(Ne.fillStyle=vs,Ne.fill()),Ne.beginPath()}function Gr(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia,za=!1){if(Ri!==void 0){Ne.beginPath(),Ne.save(),Ne.rect(0,0,xr,oi);for(const Za of Ri)Ne.rect(Za.x+1,Za.y+1,Za.width-1,Za.height-1);Ne.clip("evenodd")}const Ma=Ia.horizontalBorderColor??Ia.borderColor,xo=Ia.borderColor,{minX:xs,maxX:va,minY:Pa,maxY:Na}=io(ti,xr,oi),Xa=[];Ne.beginPath();let wa=.5;for(let Za=0;Za<kt.length;Za++){const $a=kt[Za];if($a.width===0)continue;wa+=$a.width;const ns=$a.sticky?wa:wa+jn;ns>=xs&&ns<=va&&po(Za+1)&&Xa.push({x1:ns,y1:Math.max(Fi,Pa),x2:ns,y2:Math.min(oi,Na),color:xo})}let Ga=oi+.5;for(let Za=Uo-Ji;Za<Uo;Za++){const $a=yo(Za);Ga-=$a,Xa.push({x1:xs,y1:Ga,x2:va,y2:Ga,color:Ma})}if(za!==!0){let Za=Gi+.5,$a=Rn;const ns=Ga;for(;Za+_r<ns;){const uu=Za+_r;if(uu>=Pa&&uu<=Na-1){const Mu=Do?.($a);Xa.push({x1:xs,y1:uu,x2:va,y2:uu,color:Mu?.horizontalBorderColor??Mu?.borderColor??Ma})}Za+=yo($a),$a++}}const vs=xi(Xa,Za=>Za.color);for(const Za of Object.keys(vs)){Ne.strokeStyle=Za;for(const $a of vs[Za])Ne.moveTo($a.x1,$a.y1),Ne.lineTo($a.x2,$a.y2);Ne.stroke(),Ne.beginPath()}Ri!==void 0&&Ne.restore()}function un(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia,za,Ma){const xo=[];Ne.imageSmoothingEnabled=!1;const xs=Math.min(_r.cellYOffset,oi),va=Math.max(_r.cellYOffset,oi);let Pa=0;if(typeof za=="number")Pa+=(va-xs)*za;else for(let ns=xs;ns<va;ns++)Pa+=za(ns);oi>_r.cellYOffset&&(Pa=-Pa),Pa+=Ri-_r.translateY;const Na=Math.min(_r.cellXOffset,xr),Xa=Math.max(_r.cellXOffset,xr);let wa=0;for(let ns=Na;ns<Xa;ns++)wa+=Uo[ns].width;xr>_r.cellXOffset&&(wa=-wa),wa+=ti-_r.translateX;const Ga=Rt(Ia);if(wa!==0&&Pa!==0)return{regions:[]};const vs=Fi>0?tt(Do,Fi,za):0,Za=Gi-Ga-Math.abs(wa),$a=yo-po-vs-Math.abs(Pa)-1;if(Za>150&&$a>150){const ns={sx:0,sy:0,sw:Gi*Ji,sh:yo*Ji,dx:0,dy:0,dw:Gi*Ji,dh:yo*Ji};if(Pa>0?(ns.sy=(po+1)*Ji,ns.sh=$a*Ji,ns.dy=(Pa+po+1)*Ji,ns.dh=$a*Ji,xo.push({x:0,y:po,width:Gi,height:Pa+1})):Pa<0&&(ns.sy=(-Pa+po+1)*Ji,ns.sh=$a*Ji,ns.dy=(po+1)*Ji,ns.dh=$a*Ji,xo.push({x:0,y:yo+Pa-vs,width:Gi,height:-Pa+vs})),wa>0?(ns.sx=Ga*Ji,ns.sw=Za*Ji,ns.dx=(wa+Ga)*Ji,ns.dw=Za*Ji,xo.push({x:Ga-1,y:0,width:wa+2,height:yo})):wa<0&&(ns.sx=(Ga-wa)*Ji,ns.sw=Za*Ji,ns.dx=Ga*Ji,ns.dw=Za*Ji,xo.push({x:Gi+wa,y:0,width:-wa,height:yo})),Ne.setTransform(1,0,0,1,0,0),Ma){if(Ga>0&&wa!==0&&Pa===0&&(jn===void 0||Rn?.[1]!==!1)){const uu=Ga*Ji,Mu=yo*Ji;Ne.drawImage(kt,0,0,uu,Mu,0,0,uu,Mu)}if(vs>0&&wa===0&&Pa!==0&&(jn===void 0||Rn?.[0]!==!1)){const uu=(yo-vs)*Ji,Mu=Gi*Ji,Lu=vs*Ji;Ne.drawImage(kt,0,uu,Mu,Lu,0,uu,Mu,Lu)}}Ne.drawImage(kt,ns.sx,ns.sy,ns.sw,ns.sh,ns.dx,ns.dy,ns.dw,ns.dh),Ne.scale(Ji,Ji)}return Ne.imageSmoothingEnabled=!0,{regions:xo}}function qn(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi){const Gi=[];return kt!==Ne.cellXOffset||Rn!==Ne.cellYOffset||jn!==Ne.translateX||_r!==Ne.translateY||Ct(Ri,Rn,jn,_r,ti,(yo,Do,po,Ji)=>{if(yo.sourceIndex===Fi){const Uo=Math.max(Do,Ji)+1;return Gi.push({x:Uo,y:0,width:xr-Uo,height:oi}),!0}}),Gi}function kn(Ne,kt){if(kt===void 0||Ne.width!==kt.width||Ne.height!==kt.height||Ne.theme!==kt.theme||Ne.headerHeight!==kt.headerHeight||Ne.rowHeight!==kt.rowHeight||Ne.rows!==kt.rows||Ne.freezeColumns!==kt.freezeColumns||Ne.getRowThemeOverride!==kt.getRowThemeOverride||Ne.isFocused!==kt.isFocused||Ne.isResizing!==kt.isResizing||Ne.verticalBorder!==kt.verticalBorder||Ne.getCellContent!==kt.getCellContent||Ne.highlightRegions!==kt.highlightRegions||Ne.selection!==kt.selection||Ne.dragAndDropState!==kt.dragAndDropState||Ne.prelightCells!==kt.prelightCells||Ne.touchMode!==kt.touchMode||Ne.maxScaleFactor!==kt.maxScaleFactor)return!1;if(Ne.mappedColumns!==kt.mappedColumns){if(Ne.mappedColumns.length>100||Ne.mappedColumns.length!==kt.mappedColumns.length)return!1;let Rn;for(let jn=0;jn<Ne.mappedColumns.length;jn++){const _r=Ne.mappedColumns[jn],xr=kt.mappedColumns[jn];if((0,l.bD)(_r,xr))continue;if(Rn!==void 0||_r.width===xr.width)return!1;const{width:oi,...ti}=_r,{width:Ri,...Fi}=xr;if(!(0,l.bD)(ti,Fi))return!1;Rn=jn}return Rn===void 0?!0:Rn}return!0}function St(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo){const Ia=Ji?.filter(Na=>Na.style!=="no-outline");if(Ia===void 0||Ia.length===0)return;const za=Rt(ti),Ma=tt(po,Do,yo),xo=[Ri,0,ti.length,po-Do],xs=[za,0,kt,Rn-Ma],va=Ia.map(Na=>{const Xa=Na.range,wa=Na.style??"dashed";return cn(Xa,xo,kt,Rn,xs).map(Ga=>{const vs=Ga.rect,Za=Ge(vs.x,vs.y,kt,Rn,Gi,Fi+Gi,jn,_r,xr,oi,po,Ri,Do,ti,yo),$a=vs.width===1&&vs.height===1?Za:Ge(vs.x+vs.width-1,vs.y+vs.height-1,kt,Rn,Gi,Fi+Gi,jn,_r,xr,oi,po,Ri,Do,ti,yo);return vs.x+vs.width>=ti.length&&($a.width-=1),vs.y+vs.height>=po&&($a.height-=1),{color:Na.color,style:wa,clip:Ga.clip,rect:hn({x:Za.x,y:Za.y,width:$a.x+$a.width-Za.x,height:$a.y+$a.height-Za.y},kt,Rn,8)}})}),Pa=()=>{Ne.lineWidth=1;let Na=!1;for(const Xa of va)for(const wa of Xa)if(wa?.rect!==void 0&&Xe(0,0,kt,Rn,wa.rect.x,wa.rect.y,wa.rect.width,wa.rect.height)){const Ga=Na,vs=!Dt(wa.clip,wa.rect);vs&&(Ne.save(),Ne.rect(wa.clip.x,wa.clip.y,wa.clip.width,wa.clip.height),Ne.clip()),wa.style==="dashed"&&!Na?(Ne.setLineDash([5,3]),Na=!0):(wa.style==="solid"||wa.style==="solid-outline")&&Na&&(Ne.setLineDash([]),Na=!1),Ne.strokeStyle=wa.style==="solid-outline"?(0,at.au)((0,at.au)(wa.color,Uo.borderColor),Uo.bgCell):(0,at.fu)(wa.color,1),Ne.strokeRect(wa.rect.x+.5,wa.rect.y+.5,wa.rect.width-1,wa.rect.height-1),vs&&(Ne.restore(),Na=Ga)}Na&&Ne.setLineDash([])};return Pa(),Pa}function ln(Ne,kt,Rn,jn,_r){Ne.beginPath(),Ne.moveTo(kt,Rn),Ne.lineTo(kt,jn),Ne.lineWidth=2,Ne.strokeStyle=_r,Ne.stroke(),Ne.globalAlpha=1}function An(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi,Gi,yo,Do,po,Ji,Uo,Ia){if(Gi.current===void 0)return;const za=Gi.current.range,Ma=Gi.current.cell,xo=[za.x+za.width-1,za.y+za.height-1];if(Ma[1]>=Ia&&xo[1]>=Ia||!oi.some(ns=>ns.sourceIndex===Ma[0]||ns.sourceIndex===xo[0]))return;const[va,Pa]=Gi.current.cell,Na=Do(Gi.current.cell),Xa=Na.span??[va,va],wa=Pa>=Ia-po,Ga=po>0&&!wa?tt(Ia,po,yo)-1:0,vs=xo[1];let Za;if(Ct(oi,jn,_r,xr,Fi,(ns,uu,Mu,Lu,ju)=>{if(ns.sticky&&va>ns.sourceIndex)return;const pl=ns.sourceIndex<Xa[0],pu=ns.sourceIndex>Xa[1],ks=ns.sourceIndex===xo[0];if(!(!ks&&(pl||pu)))return On(ju,Mu,Rn,Ia,yo,po,Ji,void 0,(su,Au,wl)=>{if(Au!==Pa&&Au!==vs)return;let bu=uu,Ul=ns.width;if(Na.span!==void 0){const il=Wn(Na.span,uu,su,ns.width,wl,ns,ti),_l=ns.sticky?il[0]:il[1];_l!==void 0&&(bu=_l.x,Ul=_l.width)}return Au===vs&&ks&&Uo&&(Za=()=>{Lu>bu&&!ns.sticky&&(Ne.beginPath(),Ne.rect(Lu,0,kt-Lu,Rn),Ne.clip()),Ne.beginPath(),Ne.rect(bu+Ul-4,su+wl-4,4,4),Ne.fillStyle=ns.themeOverride?.accentColor??Ri.accentColor,Ne.fill()}),Za!==void 0}),Za!==void 0}),Za===void 0)return;const $a=()=>{Ne.save(),Ne.beginPath(),Ne.rect(0,Fi,kt,Rn-Fi-Ga),Ne.clip(),Za?.(),Ne.restore()};return $a(),$a}function Cr(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri){Ri===void 0||Ri.size===0||(Ne.beginPath(),Zt(kt,Rn,xr,jn,(Fi,Gi,yo,Do,po,Ji)=>{Ri.hasItemInRectangle({x:Fi[0],y:-2,width:Fi[1]-Fi[0]+1,height:1})&&Ne.rect(yo,Do,po,Ji)}),Ct(kt,ti,xr,oi,_r,(Fi,Gi,yo,Do)=>{const po=Math.max(0,Do-Gi),Ji=Gi+po+1,Uo=Fi.width-po-1;Ri.has([Fi.sourceIndex,-1])&&Ne.rect(Ji,jn,Uo,_r-jn)}),Ne.clip())}function _i(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri,Fi){let Gi=0;return Ct(Ne,xr,jn,_r,Rn,(yo,Do,po,Ji,Uo)=>(On(Uo,po,kt,oi,ti,Ri,Fi,void 0,(Ia,za,Ma,xo)=>{xo||(Gi=Math.max(za,Gi))}),!0)),Gi}function Sn(Ne,kt){const{canvasCtx:Rn,headerCanvasCtx:jn,width:_r,height:xr,cellXOffset:oi,cellYOffset:ti,translateX:Ri,translateY:Fi,mappedColumns:Gi,enableGroups:yo,freezeColumns:Do,dragAndDropState:po,theme:Ji,drawFocus:Uo,headerHeight:Ia,groupHeaderHeight:za,disabledRows:Ma,rowHeight:xo,verticalBorder:xs,overrideCursor:va,isResizing:Pa,selection:Na,fillHandle:Xa,freezeTrailingRows:wa,rows:Ga,getCellContent:vs,getGroupDetails:Za,getRowThemeOverride:$a,isFocused:ns,drawHeaderCallback:uu,prelightCells:Mu,drawCellCallback:Lu,highlightRegions:ju,resizeCol:pl,imageLoader:pu,lastBlitData:ks,hoverValues:su,hyperWrapping:Au,hoverInfo:wl,spriteManager:bu,maxScaleFactor:Ul,hasAppendRow:Wl,touchMode:il,enqueue:_l,renderStateProvider:Hs,getCellRenderer:Pl,renderStrategy:Ql,bufferACtx:ll,bufferBCtx:Kl,damage:ia,minimumCellWidth:Sa}=Ne;if(_r===0||xr===0)return;const Ea=Ql==="double-buffer",rs=Math.min(Ul,Math.ceil(window.devicePixelRatio??1)),Ns=Ql!=="direct"&&kn(Ne,kt),Xt=Rn.canvas;(Xt.width!==_r*rs||Xt.height!==xr*rs)&&(Xt.width=_r*rs,Xt.height=xr*rs,Xt.style.width=_r+"px",Xt.style.height=xr+"px");const bn=jn.canvas,Dn=yo?za+Ia:Ia,Ii=Dn+1;(bn.width!==_r*rs||bn.height!==Ii*rs)&&(bn.width=_r*rs,bn.height=Ii*rs,bn.style.width=_r+"px",bn.style.height=Ii+"px");const ko=ll.canvas,fa=Kl.canvas;Ea&&(ko.width!==_r*rs||ko.height!==xr*rs)&&(ko.width=_r*rs,ko.height=xr*rs,ks.current!==void 0&&(ks.current.aBufferScroll=void 0)),Ea&&(fa.width!==_r*rs||fa.height!==xr*rs)&&(fa.width=_r*rs,fa.height=xr*rs,ks.current!==void 0&&(ks.current.bBufferScroll=void 0));const Zo=ks.current;if(Ns===!0&&oi===Zo?.cellXOffset&&ti===Zo?.cellYOffset&&Ri===Zo?.translateX&&Fi===Zo?.translateY)return;let Fa=null;Ea&&(Fa=Rn);const Ua=jn;let ms;Ea?ia!==void 0?ms=Zo?.lastBuffer==="b"?Kl:ll:ms=Zo?.lastBuffer==="b"?ll:Kl:ms=Rn;const Fs=ms.canvas,ws=Ea?Fs===ko?fa:ko:Xt,fu=typeof xo=="number"?()=>xo:xo;Ua.save(),ms.save(),Ua.beginPath(),ms.beginPath(),Ua.textBaseline="middle",ms.textBaseline="middle",rs!==1&&(Ua.scale(rs,rs),ms.scale(rs,rs));const wu=U(Gi,oi,_r,po,Ri);let Du=[];const zu=Uo&&Na.current?.cell[1]===ti&&Fi===0;let Il=!1;if(ju!==void 0){for(const Zu of ju)if(Zu.style!=="no-outline"&&Zu.range.y===ti&&Fi===0){Il=!0;break}}const bc=()=>{jr(Ua,wu,yo,wl,_r,Ri,Ia,za,po,Pa,Na,Ji,bu,su,xs,Za,ia,uu,il),Gr(Ua,wu,ti,Ri,Fi,_r,xr,void 0,void 0,za,Dn,fu,$a,xs,wa,Ga,Ji,!0),Ua.beginPath(),Ua.moveTo(0,Ii-.5),Ua.lineTo(_r,Ii-.5),Ua.strokeStyle=(0,at.au)(Ji.headerBottomBorderColor??Ji.horizontalBorderColor??Ji.borderColor,Ji.bgHeader),Ua.stroke(),Il&&St(Ua,_r,xr,oi,ti,Ri,Fi,Gi,Do,Ia,za,xo,wa,Ga,ju,Ji),zu&&An(Ua,_r,xr,ti,Ri,Fi,wu,Gi,Ji,Dn,Na,fu,vs,wa,Wl,Xa,Ga)};if(ia!==void 0){const Zu=wu[wu.length-1].sourceIndex+1,Ac=ia.hasItemInRegion([{x:oi,y:-2,width:Zu,height:2},{x:oi,y:ti,width:Zu,height:300},{x:0,y:ti,width:Do,height:300},{x:0,y:-2,width:Do,height:2},{x:oi,y:Ga-wa,width:Zu,height:wa,when:wa>0}]),tf=Jl=>{Or(Jl,wu,Gi,xr,Dn,Ri,Fi,ti,Ga,fu,vs,Za,$a,Ma,ns,Uo,wa,Wl,Du,ia,Na,Mu,ju,pu,bu,su,wl,Lu,Au,Ji,_l,Hs,Pl,va,Sa);const ml=Na.current;Xa&&Uo&&ml!==void 0&&ia.has(xe(ml.range))&&An(Jl,_r,xr,ti,Ri,Fi,wu,Gi,Ji,Dn,Na,fu,vs,wa,Wl,Xa,Ga)};Ac&&(tf(ms),Fa!==null&&(Fa.save(),Fa.scale(rs,rs),Fa.textBaseline="middle",tf(Fa),Fa.restore()),ia.hasHeader()&&(Cr(Ua,wu,_r,za,Dn,Ri,Fi,ti,ia),bc())),ms.restore(),Ua.restore();return}if((Ns!==!0||oi!==Zo?.cellXOffset||Ri!==Zo?.translateX||zu!==Zo?.mustDrawFocusOnHeader||Il!==Zo?.mustDrawHighlightRingsOnHeader)&&bc(),Ns===!0){(0,l.vA)(ws!==void 0&&Zo!==void 0);const{regions:Zu}=un(ms,ws,ws===ko?Zo.aBufferScroll:Zo.bBufferScroll,ws===ko?Zo.bBufferScroll:Zo.aBufferScroll,Zo,oi,ti,Ri,Fi,wa,_r,xr,Ga,Dn,rs,Gi,wu,xo,Ea);Du=Zu}else Ns!==!1&&((0,l.vA)(Zo!==void 0),Du=qn(Zo,oi,ti,Ri,Fi,_r,xr,Dn,wu,Ns));Pi(ms,wu,_r,xr,wa,Ga,xs,fu,Ji);const Gl=St(ms,_r,xr,oi,ti,Ri,Fi,Gi,Do,Ia,za,xo,wa,Ga,ju,Ji),oc=Uo?An(ms,_r,xr,ti,Ri,Fi,wu,Gi,Ji,Dn,Na,fu,vs,wa,Wl,Xa,Ga):void 0;if(ms.fillStyle=Ji.bgCell,Du.length>0){ms.beginPath();for(const Zu of Du)ms.rect(Zu.x,Zu.y,Zu.width,Zu.height);ms.clip(),ms.fill(),ms.beginPath()}else ms.fillRect(0,0,_r,xr);const ac=Or(ms,wu,Gi,xr,Dn,Ri,Fi,ti,Ga,fu,vs,Za,$a,Ma,ns,Uo,wa,Wl,Du,ia,Na,Mu,ju,pu,bu,su,wl,Lu,Au,Ji,_l,Hs,Pl,va,Sa);Ai(ms,wu,Gi,_r,xr,Dn,Ri,Fi,ti,Ga,fu,$a,Na.rows,Ma,wa,Wl,Du,ia,Ji),lo(ms,wu,ti,Ri,Fi,_r,xr,Du,Dn,fu,$a,xs,wa,Ga,Ji),Gr(ms,wu,ti,Ri,Fi,_r,xr,Du,ac,za,Dn,fu,$a,xs,wa,Ga,Ji),Gl?.(),oc?.(),Pa&&Ct(wu,0,Ri,0,Dn,(Zu,Ac)=>Zu.sourceIndex===pl?(ln(Ua,Ac+Zu.width,0,Dn+1,(0,at.au)(Ji.resizeIndicatorColor??Ji.accentLight,Ji.bgHeader)),ln(ms,Ac+Zu.width,Dn,xr,(0,at.au)(Ji.resizeIndicatorColor??Ji.accentLight,Ji.bgCell)),!0):!1),Fa!==null&&(Fa.fillStyle=Ji.bgCell,Fa.fillRect(0,0,_r,xr),Fa.drawImage(ms.canvas,0,0));const jl=_i(wu,xr,Dn,Ri,Fi,ti,Ga,fu,wa,Wl);pu?.setWindow({x:oi,y:ti,width:wu.length,height:jl-ti},Do,Array.from({length:wa},(Zu,Ac)=>Ga-1-Ac));const nc=Zo!==void 0&&(oi!==Zo.cellXOffset||Ri!==Zo.translateX),Fl=Zo!==void 0&&(ti!==Zo.cellYOffset||Fi!==Zo.translateY);ks.current={cellXOffset:oi,cellYOffset:ti,translateX:Ri,translateY:Fi,mustDrawFocusOnHeader:zu,mustDrawHighlightRingsOnHeader:Il,lastBuffer:Ea?Fs===ko?"a":"b":void 0,aBufferScroll:Fs===ko?[nc,Fl]:Zo?.aBufferScroll,bBufferScroll:Fs===fa?[nc,Fl]:Zo?.bBufferScroll},ms.restore(),Ua.restore()}const ir=80;function mt(Ne){const kt=Ne-1;return kt*kt*kt+1}class fn{callback;constructor(kt){this.callback=kt}currentHoveredItem=void 0;leavingItems=[];lastAnimationTime;addToLeavingItems=kt=>{this.leavingItems.some(jn=>Ee(jn.item,kt.item))||this.leavingItems.push(kt)};removeFromLeavingItems=kt=>{const Rn=this.leavingItems.find(jn=>Ee(jn.item,kt));return this.leavingItems=this.leavingItems.filter(jn=>jn!==Rn),Rn?.hoverAmount??0};cleanUpLeavingElements=()=>{this.leavingItems=this.leavingItems.filter(kt=>kt.hoverAmount>0)};shouldStep=()=>{const kt=this.leavingItems.length>0,Rn=this.currentHoveredItem!==void 0&&this.currentHoveredItem.hoverAmount<1;return kt||Rn};getAnimatingItems=()=>this.currentHoveredItem!==void 0?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map(kt=>({...kt,hoverAmount:mt(kt.hoverAmount)}));step=kt=>{if(this.lastAnimationTime===void 0)this.lastAnimationTime=kt;else{const jn=(kt-this.lastAnimationTime)/ir;for(const xr of this.leavingItems)xr.hoverAmount=s(xr.hoverAmount-jn,0,1);this.currentHoveredItem!==void 0&&(this.currentHoveredItem.hoverAmount=s(this.currentHoveredItem.hoverAmount+jn,0,1));const _r=this.getAnimatingItems();this.callback(_r),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=kt,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0};setHovered=kt=>{if(!Ee(this.currentHoveredItem?.item,kt)){if(this.currentHoveredItem!==void 0&&this.addToLeavingItems(this.currentHoveredItem),kt!==void 0){const Rn=this.removeFromLeavingItems(kt);this.currentHoveredItem={item:kt,hoverAmount:Rn}}else this.currentHoveredItem=void 0;this.lastAnimationTime===void 0&&window.requestAnimationFrame(this.step)}}}class gt{fn;val;constructor(kt){this.fn=kt}get value(){return this.val??(this.val=this.fn())}}function tn(Ne){return new gt(Ne)}const Vn=tn(()=>window.navigator.userAgent.includes("Firefox")),Ur=tn(()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")),$r=tn(()=>window.navigator.platform.toLowerCase().startsWith("mac"));function Pr(Ne){const kt=i.useRef([]),Rn=i.useRef(0),jn=i.useRef(Ne);jn.current=Ne;const _r=i.useCallback(()=>{const xr=()=>window.requestAnimationFrame(oi),oi=()=>{const ti=kt.current.map(z);kt.current=[],jn.current(new Bt(ti)),kt.current.length>0?Rn.current++:Rn.current=0};window.requestAnimationFrame(Rn.current>600?xr:oi)},[]);return i.useCallback(xr=>{kt.current.length===0&&_r();const oi=Me(xr[0],xr[1]);kt.current.includes(oi)||kt.current.push(oi)},[_r])}const zr="header",gi="group-header",$i="out-of-bounds";var eo;(function(Ne){Ne[Ne.Start=-2]="Start",Ne[Ne.StartPadding=-1]="StartPadding",Ne[Ne.Center=0]="Center",Ne[Ne.EndPadding=1]="EndPadding",Ne[Ne.End=2]="End"})(eo||(eo={}));function ki(Ne,kt){return Ne===kt?!0:Ne?.kind==="out-of-bounds"?Ne?.kind===kt?.kind&&Ne?.location[0]===kt?.location[0]&&Ne?.location[1]===kt?.location[1]&&Ne?.region[0]===kt?.region[0]&&Ne?.region[1]===kt?.region[1]:Ne?.kind===kt?.kind&&Ne?.location[0]===kt?.location[0]&&Ne?.location[1]===kt?.location[1]}const so=6,Ho=(Ne,kt)=>Ne.kind===v.dd.Custom?Ne.copyData:kt?.(Ne)?.getAccessibilityString(Ne)??"",ra=(Ne,kt)=>{const{width:Rn,height:jn,accessibilityHeight:_r,columns:xr,cellXOffset:oi,cellYOffset:ti,headerHeight:Ri,fillHandle:Fi=!1,groupHeaderHeight:Gi,rowHeight:yo,rows:Do,getCellContent:po,getRowThemeOverride:Ji,onHeaderMenuClick:Uo,enableGroups:Ia,isFilling:za,onCanvasFocused:Ma,onCanvasBlur:xo,isFocused:xs,selection:va,freezeColumns:Pa,onContextMenu:Na,freezeTrailingRows:Xa,fixedShadowX:wa=!0,fixedShadowY:Ga=!0,drawFocusRing:vs,onMouseDown:Za,onMouseUp:$a,onMouseMoveRaw:ns,onMouseMove:uu,onItemHovered:Mu,dragAndDropState:Lu,firstColAccessible:ju,onKeyDown:pl,onKeyUp:pu,highlightRegions:ks,canvasRef:su,onDragStart:Au,onDragEnd:wl,eventTargetRef:bu,isResizing:Ul,resizeColumn:Wl,isDragging:il,isDraggable:_l=!1,allowResize:Hs,disabledRows:Pl,hasAppendRow:Ql,getGroupDetails:ll,theme:Kl,prelightCells:ia,headerIcons:Sa,verticalBorder:Ea,drawCell:rs,drawHeader:Ns,onCellFocused:Xt,onDragOverCell:bn,onDrop:Dn,onDragLeave:Ii,imageWindowLoader:ko,smoothScrollX:fa=!1,smoothScrollY:Zo=!1,experimental:Fa,getCellRenderer:Ua}=Ne,ms=Ne.translateX??0,Fs=Ne.translateY??0,ws=Math.max(Pa,Math.min(xr.length-1,oi)),fu=i.useRef(null),wu=ko,Du=i.useRef(),[zu,Il]=i.useState(!1),bc=i.useRef([]),Gl=i.useRef(),[oc,ac]=i.useState(),[jl,nc]=i.useState(),Fl=i.useRef(null),[Zu,Ac]=i.useState(),[tf,Jl]=i.useState(!1),ml=i.useRef(tf);ml.current=tf;const vl=i.useMemo(()=>new bt(Sa,()=>{sc.current=void 0,Dd.current()}),[Sa]),Vu=Ia?Gi+Ri:Ri,ad=i.useRef(-1),Bc=(Fa?.enableFirefoxRescaling??!1)&&Vn.value,hf=(Fa?.enableSafariRescaling??!1)&&Ur.value;i.useLayoutEffect(()=>{window.devicePixelRatio===1||!Bc&&!hf||(ad.current!==-1&&Il(!0),window.clearTimeout(ad.current),ad.current=window.setTimeout(()=>{Il(!1),ad.current=-1},200))},[ti,ws,ms,Fs,Bc,hf]);const Vc=ne(xr,Pa),Od=wa?Rt(Vc,Lu):0,_c=i.useCallback((qa,Gs,hu)=>{const du=qa.getBoundingClientRect();if(Gs>=Vc.length||hu>=Do)return;const Ys=du.width/Rn,Pu=Ge(Gs,hu,Rn,jn,Gi,Vu,ws,ti,ms,Fs,Do,Pa,Xa,Vc,yo);return Ys!==1&&(Pu.x*=Ys,Pu.y*=Ys,Pu.width*=Ys,Pu.height*=Ys),Pu.x+=du.x,Pu.y+=du.y,Pu},[Rn,jn,Gi,Vu,ws,ti,ms,Fs,Do,Pa,Xa,Vc,yo]),Xc=i.useCallback((qa,Gs,hu,du)=>{const Ys=qa.getBoundingClientRect(),Pu=Ys.width/Rn,sl=(Gs-Ys.left)/Pu,Tu=(hu-Ys.top)/Pu,Yu=5,xu=U(Vc,ws,Rn,void 0,ms);let of=0,Ol=0;du instanceof MouseEvent&&(of=du.button,Ol=du.buttons);const wc=F(sl,xu,ms),Ll=Y(Tu,jn,Ia,Ri,Gi,Do,yo,ti,Fs,Xa),Mc=du?.shiftKey===!0,Bl=du?.ctrlKey===!0,Ic=du?.metaKey===!0,qu=du!==void 0&&!(du instanceof MouseEvent)||du?.pointerType==="touch",Vr=[sl<0?-1:Rn<sl?1:0,Tu<Vu?-1:jn<Tu?1:0];let Ni;if(wc===-1||Tu<0||sl<0||Ll===void 0||sl>Rn||Tu>jn){const fo=sl>Rn?1:sl<0?-1:0,Po=Tu>jn?1:Tu<0?-1:0;let pa=fo*2,Va=Po*2;fo===0&&(pa=wc===-1?eo.EndPadding:eo.Center),Po===0&&(Va=Ll===void 0?eo.EndPadding:eo.Center);let fs=!1;if(wc===-1&&Ll===-1){const cu=_c(qa,Vc.length-1,-1);(0,l.vA)(cu!==void 0),fs=Gs<cu.x+cu.width+Yu}const zs=sl>Rn&&sl<Rn+N()||Tu>jn&&Tu<jn+N();Ni={kind:$i,location:[wc!==-1?wc:sl<0?0:Vc.length-1,Ll??Do-1],region:[pa,Va],shiftKey:Mc,ctrlKey:Bl,metaKey:Ic,isEdge:fs,isTouch:qu,button:of,buttons:Ol,scrollEdge:Vr,isMaybeScrollbar:zs}}else if(Ll<=-1){let fo=_c(qa,wc,Ll);(0,l.vA)(fo!==void 0);let Po=fo!==void 0&&fo.x+fo.width-Gs<=Yu;const pa=wc-1;Gs-fo.x<=Yu&&pa>=0?(Po=!0,fo=_c(qa,pa,Ll),(0,l.vA)(fo!==void 0),Ni={kind:Ia&&Ll===-2?gi:zr,location:[pa,Ll],bounds:fo,group:Vc[pa].group??"",isEdge:Po,shiftKey:Mc,ctrlKey:Bl,metaKey:Ic,isTouch:qu,localEventX:Gs-fo.x,localEventY:hu-fo.y,button:of,buttons:Ol,scrollEdge:Vr}):Ni={kind:Ia&&Ll===-2?gi:zr,group:Vc[wc].group??"",location:[wc,Ll],bounds:fo,isEdge:Po,shiftKey:Mc,ctrlKey:Bl,metaKey:Ic,isTouch:qu,localEventX:Gs-fo.x,localEventY:hu-fo.y,button:of,buttons:Ol,scrollEdge:Vr}}else{const fo=_c(qa,wc,Ll);(0,l.vA)(fo!==void 0);const Po=fo!==void 0&&fo.x+fo.width-Gs<Yu;let pa=!1;if(Fi&&va.current!==void 0){const Va=xe(va.current.range),fs=_c(qa,Va[0],Va[1]);if(fs!==void 0){const zs=fs.x+fs.width-2,cu=fs.y+fs.height-2;pa=Math.abs(zs-Gs)<so&&Math.abs(cu-hu)<so}}Ni={kind:"cell",location:[wc,Ll],bounds:fo,isEdge:Po,shiftKey:Mc,ctrlKey:Bl,isFillHandle:pa,metaKey:Ic,isTouch:qu,localEventX:Gs-fo.x,localEventY:hu-fo.y,button:of,buttons:Ol,scrollEdge:Vr}}return Ni},[Rn,Vc,ws,ms,jn,Ia,Ri,Gi,Do,yo,ti,Fs,Xa,_c,Fi,va,Vu]),[Zl]=oc??[],qd=i.useRef(()=>{}),Kd=i.useRef(oc);Kd.current=oc;const[jf,Ml]=i.useMemo(()=>{const qa=document.createElement("canvas"),Gs=document.createElement("canvas");return qa.style.display="none",qa.style.opacity="0",qa.style.position="fixed",Gs.style.display="none",Gs.style.opacity="0",Gs.style.position="fixed",[qa.getContext("2d",{alpha:!1}),Gs.getContext("2d",{alpha:!1})]},[]);i.useLayoutEffect(()=>{if(!(jf===null||Ml===null))return document.documentElement.append(jf.canvas),document.documentElement.append(Ml.canvas),()=>{jf.canvas.remove(),Ml.canvas.remove()}},[jf,Ml]);const jd=i.useMemo(()=>new Qe,[]),Jf=Bc&&zu?1:hf&&zu?2:5,ql=Fa?.disableMinimumCellWidth===!0?1:10,sc=i.useRef(),Uc=i.useRef(null),Gd=i.useRef(null),nf=i.useCallback(()=>{const qa=fu.current,Gs=Fl.current;if(qa===null||Gs===null||(Uc.current===null&&(Uc.current=qa.getContext("2d",{alpha:!1}),qa.width=0,qa.height=0),Gd.current===null&&(Gd.current=Gs.getContext("2d",{alpha:!1}),Gs.width=0,Gs.height=0),Uc.current===null||Gd.current===null||jf===null||Ml===null))return;let hu=!1;const du=sl=>{hu=!0,Ac(sl)},Ys=sc.current,Pu={headerCanvasCtx:Gd.current,canvasCtx:Uc.current,bufferACtx:jf,bufferBCtx:Ml,width:Rn,height:jn,cellXOffset:ws,cellYOffset:ti,translateX:Math.round(ms),translateY:Math.round(Fs),mappedColumns:Vc,enableGroups:Ia,freezeColumns:Pa,dragAndDropState:Lu,theme:Kl,headerHeight:Ri,groupHeaderHeight:Gi,disabledRows:Pl??v.I1.empty(),rowHeight:yo,verticalBorder:Ea,isResizing:Ul,resizeCol:Wl,isFocused:xs,selection:va,fillHandle:Fi,drawCellCallback:rs,hasAppendRow:Ql,overrideCursor:du,maxScaleFactor:Jf,freezeTrailingRows:Xa,rows:Do,drawFocus:vs,getCellContent:po,getGroupDetails:ll??(sl=>({name:sl})),getRowThemeOverride:Ji,drawHeaderCallback:Ns,prelightCells:ia,highlightRegions:ks,imageLoader:wu,lastBlitData:Gl,damage:Du.current,hoverValues:bc.current,hoverInfo:Kd.current,spriteManager:vl,scrolling:zu,hyperWrapping:Fa?.hyperWrapping??!1,touchMode:tf,enqueue:qd.current,renderStateProvider:jd,renderStrategy:Fa?.renderStrategy??(Ur.value?"double-buffer":"single-buffer"),getCellRenderer:Ua,minimumCellWidth:ql};Pu.damage===void 0?(sc.current=Pu,Sn(Pu,Ys)):Sn(Pu,void 0),!hu&&(Pu.damage===void 0||Pu.damage.has(Kd?.current?.[0]))&&Ac(void 0)},[jf,Ml,Rn,jn,ws,ti,ms,Fs,Vc,Ia,Pa,Lu,Kl,Ri,Gi,Pl,yo,Ea,Ul,Ql,Wl,xs,va,Fi,Xa,Do,vs,Jf,po,ll,Ji,rs,Ns,ia,ks,wu,vl,zu,Fa?.hyperWrapping,Fa?.renderStrategy,tf,jd,Ua,ql]),Dd=i.useRef(nf);i.useLayoutEffect(()=>{nf(),Dd.current=nf},[nf]),i.useLayoutEffect(()=>{(async()=>{document?.fonts?.ready!==void 0&&(await document.fonts.ready,sc.current=void 0,Dd.current())})()},[]);const yd=i.useCallback(qa=>{Du.current=qa,Dd.current(),Du.current=void 0},[]),pf=Pr(yd);qd.current=pf;const Lf=i.useCallback(qa=>{yd(new Bt(qa.map(Gs=>Gs.cell)))},[yd]);wu.setCallback(yd);const[Cd,vf]=i.useState(!1),[jc,gf]=Zl??[],Id=jc!==void 0&&gf===-1,sd=jc!==void 0&&gf===-2;let ud=!1,Yd=!1,xd=Zu;if(xd===void 0&&jc!==void 0&&gf!==void 0&&gf>-1&&gf<Do){const qa=po([jc,gf],!0);ud=qa.kind===v.Ld.NewRow||qa.kind===v.Ld.Marker&&qa.markerKind!=="number",Yd=qa.kind===v.dd.Boolean&&(0,v.dB)(qa),xd=qa.cursor}const Pc=il?"grabbing":(jl??!1)||Ul?"col-resize":Cd||za?"crosshair":xd!==void 0?xd:Id||ud||Yd||sd?"pointer":"default",lf=i.useMemo(()=>({contain:"strict",display:"block",cursor:Pc}),[Pc]),Qc=i.useRef("default"),yc=bu?.current;yc!=null&&Qc.current!==lf.cursor&&(yc.style.cursor=Qc.current=lf.cursor);const fc=i.useCallback((qa,Gs,hu,du)=>{if(ll===void 0)return;const Ys=ll(qa);if(Ys.actions!==void 0){const Pu=hi(Gs,Ys.actions);for(const[sl,Tu]of Pu.entries())if(gn(Tu,hu+Gs.x,du+Tu.y))return Ys.actions[sl]}},[ll]),ic=i.useCallback((qa,Gs,hu,du)=>{const Ys=xr[Gs];if(!il&&!Ul&&Ys.hasMenu===!0&&!(jl??!1)){const Pu=_c(qa,Gs,-1);(0,l.vA)(Pu!==void 0);const sl=ri(Pu.x,Pu.y,Pu.width,Pu.height,ae(Ys.title)==="rtl");if(hu>sl.x&&hu<sl.x+sl.width&&du>sl.y&&du<sl.y+sl.height)return Pu}},[xr,_c,jl,il,Ul]),Kf=i.useRef(0),ld=i.useRef(),Ld=i.useRef(!1),cf=i.useCallback(qa=>{const Gs=fu.current,hu=bu?.current;if(Gs===null||qa.target!==Gs&&qa.target!==hu)return;Ld.current=!0;let du,Ys;if(qa instanceof MouseEvent?(du=qa.clientX,Ys=qa.clientY):(du=qa.touches[0].clientX,Ys=qa.touches[0].clientY),qa.target===hu&&hu!==null){const sl=hu.getBoundingClientRect();if(du>sl.right||Ys>sl.bottom)return}const Pu=Xc(Gs,du,Ys,qa);ld.current=Pu.location,Pu.isTouch&&(Kf.current=Date.now()),ml.current!==Pu.isTouch&&Jl(Pu.isTouch),!(Pu.kind===zr&&ic(Gs,Pu.location[0],du,Ys)!==void 0)&&(Pu.kind===gi&&fc(Pu.group,Pu.bounds,Pu.localEventX,Pu.localEventY)!==void 0||(Za?.(Pu),!Pu.isTouch&&_l!==!0&&_l!==Pu.kind&&Pu.button<3&&Pu.button!==1&&qa.preventDefault()))},[bu,_l,Xc,fc,ic,Za]);h("touchstart",cf,window,!1),h("mousedown",cf,window,!1);const kf=i.useRef(0),uh=i.useCallback(qa=>{const Gs=kf.current;kf.current=Date.now();const hu=fu.current;if(Ld.current=!1,$a===void 0||hu===null)return;const du=bu?.current,Ys=qa.target!==hu&&qa.target!==du;let Pu,sl,Tu=!0;if(qa instanceof MouseEvent){if(Pu=qa.clientX,sl=qa.clientY,Tu=qa.button<3,qa.pointerType==="touch")return}else Pu=qa.changedTouches[0].clientX,sl=qa.changedTouches[0].clientY;let Yu=Xc(hu,Pu,sl,qa);Yu.isTouch&&Kf.current!==0&&Date.now()-Kf.current>500&&(Yu={...Yu,isLongTouch:!0}),Gs!==0&&Date.now()-Gs<(Yu.isTouch?1e3:500)&&(Yu={...Yu,isDoubleClick:!0}),ml.current!==Yu.isTouch&&Jl(Yu.isTouch),!Ys&&qa.cancelable&&Tu&&qa.preventDefault();const[xu]=Yu.location,of=ic(hu,xu,Pu,sl);if(Yu.kind===zr&&of!==void 0){(Yu.button!==0||ld.current?.[0]!==xu||ld.current?.[1]!==-1)&&$a(Yu,!0);return}else if(Yu.kind===gi){const Ol=fc(Yu.group,Yu.bounds,Yu.localEventX,Yu.localEventY);if(Ol!==void 0){Yu.button===0&&Ol.onClick(Yu);return}}$a(Yu,Ys)},[$a,bu,Xc,ic,fc]);h("mouseup",uh,window,!1),h("touchend",uh,window,!1);const $d=i.useCallback(qa=>{const Gs=fu.current;if(Gs===null)return;const hu=bu?.current,du=qa.target!==Gs&&qa.target!==hu;let Ys,Pu,sl=!0;qa instanceof MouseEvent?(Ys=qa.clientX,Pu=qa.clientY,sl=qa.button<3):(Ys=qa.changedTouches[0].clientX,Pu=qa.changedTouches[0].clientY);const Tu=Xc(Gs,Ys,Pu,qa);ml.current!==Tu.isTouch&&Jl(Tu.isTouch),!du&&qa.cancelable&&sl&&qa.preventDefault();const[Yu]=Tu.location,xu=ic(Gs,Yu,Ys,Pu);if(Tu.kind===zr&&xu!==void 0)Tu.button===0&&ld.current?.[0]===Yu&&ld.current?.[1]===-1&&Uo?.(Yu,xu);else if(Tu.kind===gi){const of=fc(Tu.group,Tu.bounds,Tu.localEventX,Tu.localEventY);of!==void 0&&Tu.button===0&&of.onClick(Tu)}},[bu,Xc,ic,Uo,fc]);h("click",$d,window,!1);const bh=i.useCallback(qa=>{const Gs=fu.current,hu=bu?.current;if(Gs===null||qa.target!==Gs&&qa.target!==hu||Na===void 0)return;const du=Xc(Gs,qa.clientX,qa.clientY,qa);Na(du,()=>{qa.cancelable&&qa.preventDefault()})},[bu,Xc,Na]);h("contextmenu",bh,bu?.current??null,!1);const Zf=i.useCallback(qa=>{Du.current=new Bt(qa.map(Gs=>Gs.item)),bc.current=qa,Dd.current(),Du.current=void 0},[]),dc=i.useMemo(()=>new fn(Zf),[Zf]),yf=i.useRef(dc);yf.current=dc,i.useLayoutEffect(()=>{const qa=yf.current;if(Zl===void 0||Zl[1]<0){qa.setHovered(Zl);return}const Gs=po(Zl,!0),hu=Ua(Gs),du=hu===void 0&&Gs.kind===v.dd.Custom||hu?.needsHover!==void 0&&(typeof hu.needsHover=="boolean"?hu.needsHover:hu.needsHover(Gs));qa.setHovered(du?Zl:void 0)},[po,Ua,Zl]);const Nf=i.useRef(),ys=i.useCallback(qa=>{const Gs=fu.current;if(Gs===null)return;const hu=bu?.current,du=qa.target!==Gs&&qa.target!==hu,Ys=Xc(Gs,qa.clientX,qa.clientY,qa);if(Ys.kind!=="out-of-bounds"&&du&&!Ld.current&&!Ys.isTouch)return;const Pu=(Tu,Yu)=>{ac(xu=>xu===Tu||xu?.[0][0]===Tu?.[0][0]&&xu?.[0][1]===Tu?.[0][1]&&(xu?.[1][0]===Tu?.[1][0]&&xu?.[1][1]===Tu?.[1][1]||!Yu)?xu:Tu)};if(!ki(Ys,Nf.current))Ac(void 0),Mu?.(Ys),Pu(Ys.kind===$i?void 0:[Ys.location,[Ys.localEventX,Ys.localEventY]],!0),Nf.current=Ys;else if(Ys.kind==="cell"||Ys.kind===zr||Ys.kind===gi){let Tu=!1,Yu=!0;if(Ys.kind==="cell"){const of=po(Ys.location);Yu=Ua(of)?.needsHoverPosition??of.kind===v.dd.Custom,Tu=Yu}else Ys.kind===gi&&(Tu=!0);const xu=[Ys.location,[Ys.localEventX,Ys.localEventY]];Pu(xu,Yu),Kd.current=xu,Tu&&yd(new Bt([Ys.location]))}const sl=Ys.location[0]>=(ju?0:1);nc(Ys.kind===zr&&Ys.isEdge&&sl&&Hs===!0),vf(Ys.kind==="cell"&&Ys.isFillHandle),ns?.(qa),uu(Ys)},[bu,Xc,ju,Hs,ns,uu,Mu,po,Ua,yd]);h("mousemove",ys,window,!0);const Hc=i.useCallback(qa=>{const Gs=fu.current;if(Gs===null)return;let hu,du;va.current!==void 0&&(hu=_c(Gs,va.current.cell[0],va.current.cell[1]),du=va.current.cell),pl?.({bounds:hu,stopPropagation:()=>qa.stopPropagation(),preventDefault:()=>qa.preventDefault(),cancel:()=>{},ctrlKey:qa.ctrlKey,metaKey:qa.metaKey,shiftKey:qa.shiftKey,altKey:qa.altKey,key:qa.key,keyCode:qa.keyCode,rawEvent:qa,location:du})},[pl,va,_c]),Jc=i.useCallback(qa=>{const Gs=fu.current;if(Gs===null)return;let hu,du;va.current!==void 0&&(hu=_c(Gs,va.current.cell[0],va.current.cell[1]),du=va.current.cell),pu?.({bounds:hu,stopPropagation:()=>qa.stopPropagation(),preventDefault:()=>qa.preventDefault(),cancel:()=>{},ctrlKey:qa.ctrlKey,metaKey:qa.metaKey,shiftKey:qa.shiftKey,altKey:qa.altKey,key:qa.key,keyCode:qa.keyCode,rawEvent:qa,location:du})},[pu,va,_c]),Fh=i.useCallback(qa=>{fu.current=qa,su!==void 0&&(su.current=qa)},[su]),lh=i.useCallback(qa=>{const Gs=fu.current;if(Gs===null||_l===!1||Ul){qa.preventDefault();return}let hu,du;const Ys=Xc(Gs,qa.clientX,qa.clientY);if(_l!==!0&&Ys.kind!==_l){qa.preventDefault();return}const Pu=(Ol,wc)=>{hu=Ol,du=wc};let sl,Tu,Yu;const xu=(Ol,wc,Ll)=>{sl=Ol,Tu=wc,Yu=Ll};let of=!1;if(Au?.({...Ys,setData:Pu,setDragImage:xu,preventDefault:()=>of=!0,defaultPrevented:()=>of}),!of&&hu!==void 0&&du!==void 0&&qa.dataTransfer!==null)if(qa.dataTransfer.setData(hu,du),qa.dataTransfer.effectAllowed="copyLink",sl!==void 0&&Tu!==void 0&&Yu!==void 0)qa.dataTransfer.setDragImage(sl,Tu,Yu);else{const[Ol,wc]=Ys.location;if(wc!==void 0){const Ll=document.createElement("canvas"),Mc=_c(Gs,Ol,wc);(0,l.vA)(Mc!==void 0);const Bl=Math.ceil(window.devicePixelRatio??1);Ll.width=Mc.width*Bl,Ll.height=Mc.height*Bl;const Ic=Ll.getContext("2d");Ic!==null&&(Ic.scale(Bl,Bl),Ic.textBaseline="middle",wc===-1?(Ic.font=Kl.headerFontFull,Ic.fillStyle=Kl.bgHeader,Ic.fillRect(0,0,Ll.width,Ll.height),Kr(Ic,0,0,Mc.width,Mc.height,Vc[Ol],!1,Kl,!1,!1,0,vl,Ns,!1)):(Ic.font=Kl.baseFontFull,Ic.fillStyle=Kl.bgCell,Ic.fillRect(0,0,Ll.width,Ll.height),pi(Ic,po([Ol,wc]),0,wc,!1,!1,0,0,Mc.width,Mc.height,!1,Kl,Kl.bgCell,wu,vl,1,void 0,!1,0,void 0,void 0,void 0,jd,Ua,()=>{}))),Ll.style.left="-100%",Ll.style.position="absolute",Ll.style.width=`${Mc.width}px`,Ll.style.height=`${Mc.height}px`,document.body.append(Ll),qa.dataTransfer.setDragImage(Ll,Mc.width/2,Mc.height/2),window.setTimeout(()=>{Ll.remove()},0)}}else qa.preventDefault()},[_l,Ul,Xc,Au,_c,Kl,Vc,vl,Ns,po,wu,jd,Ua]);h("dragstart",lh,bu?.current??null,!1,!1);const Xd=i.useRef(),Ud=i.useCallback(qa=>{const Gs=fu.current;if(Dn!==void 0&&qa.preventDefault(),Gs===null||bn===void 0)return;const hu=Xc(Gs,qa.clientX,qa.clientY),[du,Ys]=hu.location,Pu=du-(ju?0:1),[sl,Tu]=Xd.current??[];(sl!==Pu||Tu!==Ys)&&(Xd.current=[Pu,Ys],bn([Pu,Ys],qa.dataTransfer))},[ju,Xc,bn,Dn]);h("dragover",Ud,bu?.current??null,!1,!1);const bd=i.useCallback(()=>{Xd.current=void 0,wl?.()},[wl]);h("dragend",bd,bu?.current??null,!1,!1);const Ms=i.useCallback(qa=>{const Gs=fu.current;if(Gs===null||Dn===void 0)return;qa.preventDefault();const hu=Xc(Gs,qa.clientX,qa.clientY),[du,Ys]=hu.location,Pu=du-(ju?0:1);Dn([Pu,Ys],qa.dataTransfer)},[ju,Xc,Dn]);h("drop",Ms,bu?.current??null,!1,!1);const Pf=i.useCallback(()=>{Ii?.()},[Ii]);h("dragleave",Pf,bu?.current??null,!1,!1);const bf=i.useRef(va);bf.current=va;const cd=i.useRef(null),rf=i.useCallback(qa=>{fu.current===null||!fu.current.contains(document.activeElement)||(qa===null&&bf.current.current!==void 0?su?.current?.focus({preventScroll:!0}):qa!==null&&qa.focus({preventScroll:!0}),cd.current=qa)},[su]);i.useImperativeHandle(kt,()=>({focus:()=>{const qa=cd.current;qa===null||!document.contains(qa)?su?.current?.focus({preventScroll:!0}):qa.focus({preventScroll:!0})},getBounds:(qa,Gs)=>{if(!(su===void 0||su.current===null))return _c(su.current,qa??0,Gs??-1)},damage:Lf}),[su,Lf,_c]);const Gf=i.useRef(),Tf=P(()=>{if(Rn<50||Fa?.disableAccessibilityTree===!0)return null;let qa=U(Vc,ws,Rn,Lu,ms);const Gs=ju?0:-1;!ju&&qa[0]?.sourceIndex===0&&(qa=qa.slice(1));const[hu,du]=va.current?.cell??[],Ys=va.current?.range,Pu=qa.map(Tu=>Tu.sourceIndex),sl=f(ti,Math.min(Do,ti+_r));return hu!==void 0&&du!==void 0&&!(Pu.includes(hu)&&sl.includes(du))&&rf(null),i.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":Do+1,"aria-multiselectable":"true","aria-colcount":Vc.length+Gs},i.createElement("thead",{role:"rowgroup"},i.createElement("tr",{role:"row","aria-rowindex":1},qa.map(Tu=>i.createElement("th",{role:"columnheader","aria-selected":va.columns.hasIndex(Tu.sourceIndex),"aria-colindex":Tu.sourceIndex+1+Gs,tabIndex:-1,onFocus:Yu=>{if(Yu.target!==cd.current)return Xt?.([Tu.sourceIndex,-1])},key:Tu.sourceIndex},Tu.title)))),i.createElement("tbody",{role:"rowgroup"},sl.map(Tu=>i.createElement("tr",{role:"row","aria-selected":va.rows.hasIndex(Tu),key:Tu,"aria-rowindex":Tu+2},qa.map(Yu=>{const xu=Yu.sourceIndex,of=Me(xu,Tu),Ol=hu===xu&&du===Tu,wc=Ys!==void 0&&xu>=Ys.x&&xu<Ys.x+Ys.width&&Tu>=Ys.y&&Tu<Ys.y+Ys.height,Ll=`glide-cell-${xu}-${Tu}`,Mc=[xu,Tu],Bl=po(Mc,!0);return i.createElement("td",{key:of,role:"gridcell","aria-colindex":xu+1+Gs,"aria-selected":wc,"aria-readonly":(0,v.pg)(Bl)||!(0,v.uQ)(Bl),id:Ll,"data-testid":Ll,onClick:()=>{const Ic=su?.current;if(Ic!=null)return pl?.({bounds:_c(Ic,xu,Tu),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:Mc})},onFocusCapture:Ic=>{if(!(Ic.target===cd.current||Gf.current?.[0]===xu&&Gf.current?.[1]===Tu))return Gf.current=Mc,Xt?.(Mc)},ref:Ol?rf:void 0,tabIndex:-1},Ho(Bl,Ua))})))))},[Rn,Vc,ws,Lu,ms,Do,ti,_r,va,rf,po,su,pl,_c,Xt],200),fd=Pa===0||!wa?0:ws>Pa?1:s(-ms/100,0,1),eh=-ti*32+Fs,Rf=Ga?s(-eh/100,0,1):0,qf=i.useMemo(()=>{if(!fd&&!Rf)return null;const qa={position:"absolute",top:0,left:Od,width:Rn-Od,height:jn,opacity:fd,pointerEvents:"none",transition:fa?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},Gs={position:"absolute",top:Vu,left:0,width:Rn,height:jn,opacity:Rf,pointerEvents:"none",transition:Zo?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return i.createElement(i.Fragment,null,fd>0&&i.createElement("div",{id:"shadow-x",style:qa}),Rf>0&&i.createElement("div",{id:"shadow-y",style:Gs}))},[fd,Rf,Od,Rn,fa,Vu,jn,Zo]),kd=i.useMemo(()=>({position:"absolute",top:0,left:0}),[]);return i.createElement(i.Fragment,null,i.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:Hc,onKeyUp:Jc,onFocus:Ma,onBlur:xo,ref:Fh,style:lf},Tf),i.createElement("canvas",{ref:Fl,style:kd}),qf)},So=i.memo(i.forwardRef(ra));function gr(Ne,kt,Rn,jn){return s(Math.round(kt-(Ne.growOffset??0)),Math.ceil(Rn),Math.floor(jn))}const Vi=Ne=>{const[kt,Rn]=i.useState(),[jn,_r]=i.useState(),[xr,oi]=i.useState(),[ti,Ri]=i.useState(),[Fi,Gi]=i.useState(!1),[yo,Do]=i.useState(),[po,Ji]=i.useState(),[Uo,Ia]=i.useState(),[za,Ma]=i.useState(!1),[xo,xs]=i.useState(),{onHeaderMenuClick:va,getCellContent:Pa,onColumnMoved:Na,onColumnResize:Xa,onColumnResizeStart:wa,onColumnResizeEnd:Ga,gridRef:vs,maxColumnWidth:Za,minColumnWidth:$a,onRowMoved:ns,lockColumns:uu,onColumnProposeMove:Mu,onMouseDown:Lu,onMouseUp:ju,onItemHovered:pl,onDragStart:pu,canvasRef:ks}=Ne,su=(Xa??Ga??wa)!==void 0,{columns:Au,selection:wl}=Ne,bu=wl.columns,Ul=i.useCallback(Ea=>{const[rs,Ns]=Ea.location;xr!==void 0&&ti!==rs&&rs>=uu?(Gi(!0),Ri(rs)):po!==void 0&&Ns!==void 0?(Ma(!0),Ia(Math.max(0,Ns))):jn===void 0&&!Fi&&!za&&pl?.(Ea)},[xr,po,ti,pl,uu,jn,Fi,za]),Wl=Na!==void 0,il=i.useCallback(Ea=>{if(Ea.button===0){const[rs,Ns]=Ea.location;if(Ea.kind==="out-of-bounds"&&Ea.isEdge&&su){const Xt=vs?.current?.getBounds(Au.length-1,-1);Xt!==void 0&&(Rn(Xt.x),_r(Au.length-1))}else if(Ea.kind==="header"&&rs>=uu){const Xt=ks?.current;if(Ea.isEdge&&su&&Xt){Rn(Ea.bounds.x),_r(rs);const Dn=Xt.getBoundingClientRect().width/Xt.offsetWidth,Ii=Ea.bounds.width/Dn;wa?.(Au[rs],Ii,rs,Ii+(Au[rs].growOffset??0))}else Ea.kind==="header"&&Wl&&(Do(Ea.bounds.x),oi(rs))}else Ea.kind==="cell"&&uu>0&&rs===0&&Ns!==void 0&&ns!==void 0&&(xs(Ea.bounds.y),Ji(Ns))}Lu?.(Ea)},[Lu,su,uu,ns,vs,Au,Wl,wa,ks]),_l=i.useCallback((Ea,rs)=>{Fi||za||va?.(Ea,rs)},[Fi,za,va]),Hs=i.useRef(-1),Pl=i.useCallback(()=>{Hs.current=-1,Ji(void 0),Ia(void 0),xs(void 0),Ma(!1),oi(void 0),Ri(void 0),Do(void 0),Gi(!1),_r(void 0),Rn(void 0)},[]),Ql=i.useCallback((Ea,rs)=>{if(Ea.button===0){if(jn!==void 0){if(bu?.hasIndex(jn)===!0)for(const Xt of bu){if(Xt===jn)continue;const bn=Au[Xt],Dn=gr(bn,Hs.current,$a,Za);Xa?.(bn,Dn,Xt,Dn+(bn.growOffset??0))}const Ns=gr(Au[jn],Hs.current,$a,Za);if(Ga?.(Au[jn],Ns,jn,Ns+(Au[jn].growOffset??0)),bu.hasIndex(jn))for(const Xt of bu){if(Xt===jn)continue;const bn=Au[Xt],Dn=gr(bn,Hs.current,$a,Za);Ga?.(bn,Dn,Xt,Dn+(bn.growOffset??0))}}Pl(),xr!==void 0&&ti!==void 0&&Na?.(xr,ti),po!==void 0&&Uo!==void 0&&ns?.(po,Uo)}ju?.(Ea,rs)},[ju,jn,xr,ti,po,Uo,bu,Ga,Au,$a,Za,Xa,Na,ns,Pl]),ll=i.useMemo(()=>{if(!(xr===void 0||ti===void 0)&&xr!==ti&&Mu?.(xr,ti)!==!1)return{src:xr,dest:ti}},[xr,ti,Mu]),Kl=i.useCallback(Ea=>{const rs=ks?.current;if(xr!==void 0&&yo!==void 0)Math.abs(Ea.clientX-yo)>20&&Gi(!0);else if(po!==void 0&&xo!==void 0)Math.abs(Ea.clientY-xo)>20&&Ma(!0);else if(jn!==void 0&&kt!==void 0&&rs){const Xt=rs.getBoundingClientRect().width/rs.offsetWidth,bn=(Ea.clientX-kt)/Xt,Dn=Au[jn],Ii=gr(Dn,bn,$a,Za);if(Xa?.(Dn,Ii,jn,Ii+(Dn.growOffset??0)),Hs.current=bn,bu?.first()===jn)for(const ko of bu){if(ko===jn)continue;const fa=Au[ko],Zo=gr(fa,Hs.current,$a,Za);Xa?.(fa,Zo,ko,Zo+(fa.growOffset??0))}}},[xr,yo,po,xo,jn,kt,Au,$a,Za,Xa,bu,ks]),ia=i.useCallback((Ea,rs)=>{if(po===void 0||Uo===void 0)return Pa(Ea,rs);let[Ns,Xt]=Ea;return Xt===Uo?Xt=po:(Xt>Uo&&(Xt-=1),Xt>=po&&(Xt+=1)),Pa([Ns,Xt],rs)},[po,Uo,Pa]),Sa=i.useCallback(Ea=>{pu?.(Ea),Ea.defaultPrevented()||Pl()},[Pl,pu]);return i.createElement(So,{accessibilityHeight:Ne.accessibilityHeight,canvasRef:Ne.canvasRef,cellXOffset:Ne.cellXOffset,cellYOffset:Ne.cellYOffset,columns:Ne.columns,disabledRows:Ne.disabledRows,drawFocusRing:Ne.drawFocusRing,drawHeader:Ne.drawHeader,drawCell:Ne.drawCell,enableGroups:Ne.enableGroups,eventTargetRef:Ne.eventTargetRef,experimental:Ne.experimental,fillHandle:Ne.fillHandle,firstColAccessible:Ne.firstColAccessible,fixedShadowX:Ne.fixedShadowX,fixedShadowY:Ne.fixedShadowY,freezeColumns:Ne.freezeColumns,getCellRenderer:Ne.getCellRenderer,getGroupDetails:Ne.getGroupDetails,getRowThemeOverride:Ne.getRowThemeOverride,groupHeaderHeight:Ne.groupHeaderHeight,headerHeight:Ne.headerHeight,headerIcons:Ne.headerIcons,height:Ne.height,highlightRegions:Ne.highlightRegions,imageWindowLoader:Ne.imageWindowLoader,resizeColumn:jn,isDraggable:Ne.isDraggable,isFilling:Ne.isFilling,isFocused:Ne.isFocused,onCanvasBlur:Ne.onCanvasBlur,onCanvasFocused:Ne.onCanvasFocused,onCellFocused:Ne.onCellFocused,onContextMenu:Ne.onContextMenu,onDragEnd:Ne.onDragEnd,onDragLeave:Ne.onDragLeave,onDragOverCell:Ne.onDragOverCell,onDrop:Ne.onDrop,onKeyDown:Ne.onKeyDown,onKeyUp:Ne.onKeyUp,onMouseMove:Ne.onMouseMove,prelightCells:Ne.prelightCells,rowHeight:Ne.rowHeight,rows:Ne.rows,selection:Ne.selection,smoothScrollX:Ne.smoothScrollX,smoothScrollY:Ne.smoothScrollY,theme:Ne.theme,freezeTrailingRows:Ne.freezeTrailingRows,hasAppendRow:Ne.hasAppendRow,translateX:Ne.translateX,translateY:Ne.translateY,verticalBorder:Ne.verticalBorder,width:Ne.width,getCellContent:ia,isResizing:jn!==void 0,onHeaderMenuClick:_l,isDragging:Fi,onItemHovered:Ul,onDragStart:Sa,onMouseDown:il,allowResize:su,onMouseUp:Ql,dragAndDropState:ll,onMouseMoveRaw:Kl,ref:vs})};var Ro=t(25704);function na(Ne){const kt=(0,i.useRef)(null),[Rn,jn]=(0,i.useState)({width:Ne?.[0],height:Ne?.[1]});return(0,i.useLayoutEffect)(()=>{const _r=oi=>{for(const ti of oi){const{width:Ri,height:Fi}=ti&&ti.contentRect||{};jn(Gi=>Gi.width===Ri&&Gi.height===Fi?Gi:{width:Ri,height:Fi})}},xr=new window.ResizeObserver(_r);return kt.current&&xr.observe(kt.current,void 0),()=>{xr.disconnect()}},[kt.current]),{ref:kt,...Rn}}const aa=(Ne,kt,Rn)=>{const jn=(0,i.useRef)(null),_r=(0,i.useRef)(null),xr=(0,i.useRef)(null),oi=(0,i.useRef)(0),ti=(0,i.useRef)(kt);ti.current=kt;const Ri=Rn.current;(0,i.useEffect)(()=>{const Fi=()=>{if(_r.current===!1&&Ri!==null){const Do=[Ri.scrollLeft,Ri.scrollTop];if(xr.current?.[0]===Do[0]&&xr.current?.[1]===Do[1])if(oi.current>10){xr.current=null,_r.current=null;return}else oi.current++;else oi.current=0,ti.current(Do[0],Do[1]),xr.current=Do;jn.current=window.setTimeout(Fi,8.333333333333334)}},Gi=()=>{_r.current=!0,xr.current=null,jn.current!==null&&(window.clearTimeout(jn.current),jn.current=null)},yo=Do=>{Do.touches.length===0&&(_r.current=!1,oi.current=0,jn.current=window.setTimeout(Fi,8.333333333333334))};if(Ne&&Ri!==null){const Do=Ri;return Do.addEventListener("touchstart",Gi),Do.addEventListener("touchend",yo),()=>{Do.removeEventListener("touchstart",Gi),Do.removeEventListener("touchend",yo),jn.current!==null&&window.clearTimeout(jn.current)}}},[Ne,Ri])},vi=()=>Ne=>Ne.isSafari?"scroll":"auto",to=(0,Ro.I)("div")({name:"ScrollRegionStyle",class:"gdg-s1dgczr6",propsAsIs:!1,vars:{"s1dgczr6-0":[vi()]}});function $o(Ne){const[kt,Rn]=i.useState(!1),jn=typeof window>"u"?null:window,_r=i.useRef(0);return h("touchstart",i.useCallback(()=>{window.clearTimeout(_r.current),Rn(!0)},[]),jn,!0,!1),h("touchend",i.useCallback(xr=>{xr.touches.length===0&&(_r.current=window.setTimeout(()=>Rn(!1),Ne))},[Ne]),jn,!0,!1),kt}const ja=Ne=>{const{children:kt,clientHeight:Rn,scrollHeight:jn,scrollWidth:_r,update:xr,draggable:oi,className:ti,preventDiagonalScrolling:Ri=!1,paddingBottom:Fi=0,paddingRight:Gi=0,rightElement:yo,rightElementProps:Do,kineticScrollPerfHack:po=!1,scrollRef:Ji,initialSize:Uo}=Ne,Ia=[],za=Do?.sticky??!1,Ma=Do?.fill??!1,xo=i.useRef(0),xs=i.useRef(0),va=i.useRef(null),Pa=typeof window>"u"?1:window.devicePixelRatio,Na=i.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),Xa=i.useRef(null),wa=$o(200),[Ga,vs]=i.useState(!0),Za=i.useRef(0);i.useLayoutEffect(()=>{if(!Ga||wa||Na.current.lockDirection===void 0)return;const Au=va.current;if(Au===null)return;const[wl,bu]=Na.current.lockDirection;wl!==void 0?Au.scrollLeft=wl:bu!==void 0&&(Au.scrollTop=bu),Na.current.lockDirection=void 0},[wa,Ga]);const $a=i.useCallback((Au,wl)=>{const bu=va.current;if(bu===null)return;wl=wl??bu.scrollTop,Au=Au??bu.scrollLeft;const Ul=Na.current.scrollTop,Wl=Na.current.scrollLeft,il=Au-Wl,_l=wl-Ul;wa&&il!==0&&_l!==0&&(Math.abs(il)>3||Math.abs(_l)>3)&&Ri&&Na.current.lockDirection===void 0&&(Na.current.lockDirection=Math.abs(il)<Math.abs(_l)?[Wl,void 0]:[void 0,Ul]);const Hs=Na.current.lockDirection;Au=Hs?.[0]??Au,wl=Hs?.[1]??wl,Na.current.scrollLeft=Au,Na.current.scrollTop=wl;const Pl=bu.clientWidth,Ql=bu.clientHeight,ll=wl,Kl=xs.current-ll,ia=bu.scrollHeight-Ql;if(xs.current=ll,ia>0&&(Math.abs(Kl)>2e3||ll===0||ll===ia)&&jn>bu.scrollHeight+5){const Sa=ll/ia,Ea=(jn-Ql)*Sa;xo.current=Ea-ll}Hs!==void 0&&(window.clearTimeout(Za.current),vs(!1),Za.current=window.setTimeout(()=>vs(!0),200)),xr({x:Au,y:ll+xo.current,width:Pl-Gi,height:Ql-Fi,paddingRight:Xa.current?.clientWidth??0})},[Fi,Gi,jn,xr,Ri,wa]);aa(po&&Ur.value,$a,va);const ns=i.useRef($a);ns.current=$a;const uu=i.useRef(),Mu=i.useRef(!1);i.useLayoutEffect(()=>{Mu.current?$a():Mu.current=!0},[$a,Fi,Gi]);const Lu=i.useCallback(Au=>{va.current=Au,Ji!==void 0&&(Ji.current=Au)},[Ji]);let ju=0,pl=0;for(Ia.push(i.createElement("div",{key:ju++,style:{width:_r,height:0}}));pl<jn;){const Au=Math.min(5e6,jn-pl);Ia.push(i.createElement("div",{key:ju++,style:{width:0,height:Au}})),pl+=Au}const{ref:pu,width:ks,height:su}=na(Uo);return typeof window<"u"&&(uu.current?.height!==su||uu.current?.width!==ks)&&(window.setTimeout(()=>ns.current(),0),uu.current={width:ks,height:su}),(ks??0)===0||(su??0)===0?i.createElement("div",{ref:pu}):i.createElement("div",{ref:pu},i.createElement(to,{isSafari:Ur.value},i.createElement("div",{className:"dvn-underlay"},kt),i.createElement("div",{ref:Lu,style:uu.current,draggable:oi,onDragStart:Au=>{oi||(Au.stopPropagation(),Au.preventDefault())},className:"dvn-scroller "+(ti??""),onScroll:()=>$a()},i.createElement("div",{className:"dvn-scroll-inner"+(yo===void 0?" dvn-hidden":"")},i.createElement("div",{className:"dvn-stack"},Ia),yo!==void 0&&i.createElement(i.Fragment,null,!Ma&&i.createElement("div",{className:"dvn-spacer"}),i.createElement("div",{ref:Xa,style:{height:su,maxHeight:Rn-Math.ceil(Pa%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:Gi,flexGrow:Ma?1:void 0,right:za?Gi??0:void 0,pointerEvents:"auto"}},yo))))))},ro=Ne=>{const{columns:kt,rows:Rn,rowHeight:jn,headerHeight:_r,groupHeaderHeight:xr,enableGroups:oi,freezeColumns:ti,experimental:Ri,nonGrowWidth:Fi,clientSize:Gi,className:yo,onVisibleRegionChanged:Do,scrollRef:po,preventDiagonalScrolling:Ji,rightElement:Uo,rightElementProps:Ia,overscrollX:za,overscrollY:Ma,initialSize:xo,smoothScrollX:xs=!1,smoothScrollY:va=!1,isDraggable:Pa}=Ne,{paddingRight:Na,paddingBottom:Xa}=Ri??{},[wa,Ga]=Gi,vs=i.useRef(),Za=i.useRef(),$a=i.useRef(),ns=i.useRef(),uu=Fi+Math.max(0,za??0);let Mu=oi?_r+xr:_r;if(typeof jn=="number")Mu+=Rn*jn;else for(let pu=0;pu<Rn;pu++)Mu+=jn(pu);Ma!==void 0&&(Mu+=Ma);const Lu=i.useRef(),ju=i.useCallback(()=>{if(Lu.current===void 0)return;const pu={...Lu.current};let ks=0,su=pu.x<0?-pu.x:0,Au=0,wl=0;pu.x=pu.x<0?0:pu.x;let bu=0;for(let Pl=0;Pl<ti;Pl++)bu+=kt[Pl].width;for(const Pl of kt){const Ql=ks-bu;if(pu.x>=Ql+Pl.width)ks+=Pl.width,wl++,Au++;else if(pu.x>Ql)ks+=Pl.width,xs?su+=Ql-pu.x:wl++,Au++;else if(pu.x+pu.width>Ql)ks+=Pl.width,Au++;else break}let Ul=0,Wl=0,il=0;if(typeof jn=="number")va?(Wl=Math.floor(pu.y/jn),Ul=Wl*jn-pu.y):Wl=Math.ceil(pu.y/jn),il=Math.ceil(pu.height/jn)+Wl,Ul<0&&il++;else{let Pl=0;for(let Ql=0;Ql<Rn;Ql++){const ll=jn(Ql),Kl=Pl+(va?0:ll/2);if(pu.y>=Pl+ll)Pl+=ll,Wl++,il++;else if(pu.y>Kl)Pl+=ll,va?Ul+=Kl-pu.y:Wl++,il++;else if(pu.y+pu.height>ll/2+Pl)Pl+=ll,il++;else break}}const _l={x:wl,y:Wl,width:Au-wl,height:il-Wl},Hs=vs.current;(Hs===void 0||Hs.y!==_l.y||Hs.x!==_l.x||Hs.height!==_l.height||Hs.width!==_l.width||Za.current!==su||$a.current!==Ul||pu.width!==ns.current?.[0]||pu.height!==ns.current?.[1])&&(Do?.({x:wl,y:Wl,width:Au-wl,height:il-Wl},pu.width,pu.height,pu.paddingRight??0,su,Ul),vs.current=_l,Za.current=su,$a.current=Ul,ns.current=[pu.width,pu.height])},[kt,jn,Rn,Do,ti,xs,va]),pl=i.useCallback(pu=>{Lu.current=pu,ju()},[ju]);return i.useEffect(()=>{ju()},[ju]),i.createElement(ja,{scrollRef:po,className:yo,kineticScrollPerfHack:Ri?.kineticScrollPerfHack,preventDiagonalScrolling:Ji,draggable:Pa===!0||typeof Pa=="string",scrollWidth:uu+(Na??0),scrollHeight:Mu+(Xa??0),clientHeight:Ga,rightElement:Uo,paddingBottom:Xa,paddingRight:Na,rightElementProps:Ia,update:pl,initialSize:xo},i.createElement(Vi,{eventTargetRef:po,width:wa,height:Ga,accessibilityHeight:Ne.accessibilityHeight,canvasRef:Ne.canvasRef,cellXOffset:Ne.cellXOffset,cellYOffset:Ne.cellYOffset,columns:Ne.columns,disabledRows:Ne.disabledRows,enableGroups:Ne.enableGroups,fillHandle:Ne.fillHandle,firstColAccessible:Ne.firstColAccessible,fixedShadowX:Ne.fixedShadowX,fixedShadowY:Ne.fixedShadowY,freezeColumns:Ne.freezeColumns,getCellContent:Ne.getCellContent,getCellRenderer:Ne.getCellRenderer,getGroupDetails:Ne.getGroupDetails,getRowThemeOverride:Ne.getRowThemeOverride,groupHeaderHeight:Ne.groupHeaderHeight,headerHeight:Ne.headerHeight,highlightRegions:Ne.highlightRegions,imageWindowLoader:Ne.imageWindowLoader,isFilling:Ne.isFilling,isFocused:Ne.isFocused,lockColumns:Ne.lockColumns,maxColumnWidth:Ne.maxColumnWidth,minColumnWidth:Ne.minColumnWidth,onHeaderMenuClick:Ne.onHeaderMenuClick,onMouseMove:Ne.onMouseMove,prelightCells:Ne.prelightCells,rowHeight:Ne.rowHeight,rows:Ne.rows,selection:Ne.selection,theme:Ne.theme,freezeTrailingRows:Ne.freezeTrailingRows,hasAppendRow:Ne.hasAppendRow,translateX:Ne.translateX,translateY:Ne.translateY,onColumnProposeMove:Ne.onColumnProposeMove,verticalBorder:Ne.verticalBorder,drawFocusRing:Ne.drawFocusRing,drawHeader:Ne.drawHeader,drawCell:Ne.drawCell,experimental:Ne.experimental,gridRef:Ne.gridRef,headerIcons:Ne.headerIcons,isDraggable:Ne.isDraggable,onCanvasBlur:Ne.onCanvasBlur,onCanvasFocused:Ne.onCanvasFocused,onCellFocused:Ne.onCellFocused,onColumnMoved:Ne.onColumnMoved,onColumnResize:Ne.onColumnResize,onColumnResizeEnd:Ne.onColumnResizeEnd,onColumnResizeStart:Ne.onColumnResizeStart,onContextMenu:Ne.onContextMenu,onDragEnd:Ne.onDragEnd,onDragLeave:Ne.onDragLeave,onDragOverCell:Ne.onDragOverCell,onDragStart:Ne.onDragStart,onDrop:Ne.onDrop,onItemHovered:Ne.onItemHovered,onKeyDown:Ne.onKeyDown,onKeyUp:Ne.onKeyUp,onMouseDown:Ne.onMouseDown,onMouseUp:Ne.onMouseUp,onRowMoved:Ne.onRowMoved,smoothScrollX:Ne.smoothScrollX,smoothScrollY:Ne.smoothScrollY}))},as=(0,Ro.I)("div")({name:"SearchWrapper",class:"gdg-seveqep",propsAsIs:!1}),rn=i.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},i.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),Dr=i.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},i.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),Lr=i.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},i.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),li=10,Di=Ne=>{const{canvasRef:kt,cellYOffset:Rn,rows:jn,columns:_r,searchInputRef:xr,searchValue:oi,searchResults:ti,onSearchValueChange:Ri,getCellsForSelection:Fi,onSearchResultsChanged:Gi,showSearch:yo=!1,onSearchClose:Do}=Ne,[po]=i.useState(()=>"search-box-"+Math.round(Math.random()*1e3)),[Ji,Uo]=i.useState(""),Ia=oi??Ji,za=i.useCallback(ks=>{Uo(ks),Ri?.(ks)},[Ri]),[Ma,xo]=i.useState(),xs=i.useRef(Ma);xs.current=Ma,i.useEffect(()=>{ti!==void 0&&(ti.length>0?xo(ks=>({rowsSearched:jn,results:ti.length,selectedIndex:ks?.selectedIndex??-1})):xo(void 0))},[jn,ti]);const va=i.useRef();va.current===void 0&&(va.current=new AbortController);const Pa=i.useRef(),[Na,Xa]=i.useState([]),wa=ti??Na,Ga=i.useCallback(()=>{Pa.current!==void 0&&(window.cancelAnimationFrame(Pa.current),Pa.current=void 0,va.current.abort())},[]),vs=i.useRef(Rn);vs.current=Rn;const Za=i.useCallback(ks=>{const su=new RegExp(ks.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i");let Au=vs.current,wl=Math.min(10,jn),bu=0;xo(void 0),Xa([]);const Ul=[],Wl=async()=>{if(Fi===void 0)return;const il=performance.now(),_l=jn-bu;let Hs=Fi({x:0,y:Au,width:_r.length,height:Math.min(wl,_l,jn-Au)},va.current.signal);typeof Hs=="function"&&(Hs=await Hs());let Pl=!1;for(const[Ea,rs]of Hs.entries())for(const[Ns,Xt]of rs.entries()){let bn;switch(Xt.kind){case v.dd.Text:case v.dd.Number:bn=Xt.displayData;break;case v.dd.Uri:case v.dd.Markdown:bn=Xt.data;break;case v.dd.Boolean:bn=typeof Xt.data=="boolean"?Xt.data.toString():void 0;break;case v.dd.Image:case v.dd.Bubble:bn=Xt.data.join("\u{1F433}");break;case v.dd.Custom:bn=Xt.copyData;break}bn!==void 0&&su.test(bn)&&(Ul.push([Ns,Ea+Au]),Pl=!0)}const Ql=performance.now();Pl&&Xa([...Ul]),bu+=Hs.length,(0,l.vA)(bu<=jn);const ll=xs.current?.selectedIndex??-1;xo({results:Ul.length,rowsSearched:bu,selectedIndex:ll}),Gi?.(Ul,ll),Au+wl>=jn?Au=0:Au+=wl;const Kl=Ql-il,ia=Math.max(Kl,1),Sa=li/ia;wl=Math.ceil(wl*Sa),bu<jn&&Ul.length<1e3&&(Pa.current=window.requestAnimationFrame(Wl))};Ga(),Pa.current=window.requestAnimationFrame(Wl)},[Ga,_r.length,Fi,Gi,jn]),$a=i.useCallback(()=>{Do?.(),xo(void 0),Xa([]),Gi?.([],-1),Ga(),kt?.current?.focus()},[Ga,kt,Do,Gi]),ns=i.useCallback(ks=>{za(ks.target.value),ti===void 0&&(ks.target.value===""?(xo(void 0),Xa([]),Ga()):Za(ks.target.value))},[Za,Ga,za,ti]);i.useEffect(()=>{yo&&xr.current!==null&&(za(""),xr.current.focus({preventScroll:!0}))},[yo,xr,za]);const uu=i.useCallback(ks=>{if(ks?.stopPropagation?.(),Ma===void 0)return;const su=(Ma.selectedIndex+1)%Ma.results;xo({...Ma,selectedIndex:su}),Gi?.(wa,su)},[Ma,Gi,wa]),Mu=i.useCallback(ks=>{if(ks?.stopPropagation?.(),Ma===void 0)return;let su=(Ma.selectedIndex-1)%Ma.results;su<0&&(su+=Ma.results),xo({...Ma,selectedIndex:su}),Gi?.(wa,su)},[Gi,wa,Ma]),Lu=i.useCallback(ks=>{(ks.ctrlKey||ks.metaKey)&&ks.nativeEvent.code==="KeyF"||ks.key==="Escape"?($a(),ks.stopPropagation(),ks.preventDefault()):ks.key==="Enter"&&(ks.shiftKey?Mu():uu())},[$a,uu,Mu]);i.useEffect(()=>()=>{Ga()},[Ga]);const[ju,pl]=i.useState(!1);i.useEffect(()=>{if(yo)pl(!0);else{const ks=setTimeout(()=>pl(!1),150);return()=>clearTimeout(ks)}},[yo]);const pu=i.useMemo(()=>{if(!yo&&!ju)return null;let ks;Ma!==void 0&&(ks=Ma.results>=1e3?"over 1000":`${Ma.results} result${Ma.results!==1?"s":""}`,Ma.selectedIndex>=0&&(ks=`${Ma.selectedIndex+1} of ${ks}`));const su=bu=>{bu.stopPropagation()},wl={width:`${Math.floor((Ma?.rowsSearched??0)/jn*100)}%`};return i.createElement(as,{className:yo?"":"out",onMouseDown:su,onMouseMove:su,onMouseUp:su,onClick:su},i.createElement("div",{className:"gdg-search-bar-inner"},i.createElement("input",{id:po,"aria-hidden":!yo,"data-testid":"search-input",ref:xr,onChange:ns,value:Ia,tabIndex:yo?void 0:-1,onKeyDownCapture:Lu}),i.createElement("button",{"aria-label":"Previous Result","aria-hidden":!yo,tabIndex:yo?void 0:-1,onClick:Mu,disabled:(Ma?.results??0)===0},rn),i.createElement("button",{"aria-label":"Next Result","aria-hidden":!yo,tabIndex:yo?void 0:-1,onClick:uu,disabled:(Ma?.results??0)===0},Dr),Do!==void 0&&i.createElement("button",{"aria-label":"Close Search","aria-hidden":!yo,"data-testid":"search-close-button",tabIndex:yo?void 0:-1,onClick:$a},Lr)),Ma!==void 0?i.createElement(i.Fragment,null,i.createElement("div",{className:"gdg-search-status"},i.createElement("div",{"data-testid":"search-result-area"},ks)),i.createElement("div",{className:"gdg-search-progress",style:wl})):i.createElement("div",{className:"gdg-search-status"},i.createElement("label",{htmlFor:po},"Type to search")))},[yo,ju,Ma,jn,po,xr,ns,Ia,Lu,Mu,uu,Do,$a]);return i.createElement(i.Fragment,null,i.createElement(ro,{prelightCells:wa,accessibilityHeight:Ne.accessibilityHeight,canvasRef:Ne.canvasRef,cellXOffset:Ne.cellXOffset,cellYOffset:Ne.cellYOffset,className:Ne.className,clientSize:Ne.clientSize,columns:Ne.columns,disabledRows:Ne.disabledRows,enableGroups:Ne.enableGroups,fillHandle:Ne.fillHandle,firstColAccessible:Ne.firstColAccessible,nonGrowWidth:Ne.nonGrowWidth,fixedShadowX:Ne.fixedShadowX,fixedShadowY:Ne.fixedShadowY,freezeColumns:Ne.freezeColumns,getCellContent:Ne.getCellContent,getCellRenderer:Ne.getCellRenderer,getGroupDetails:Ne.getGroupDetails,getRowThemeOverride:Ne.getRowThemeOverride,groupHeaderHeight:Ne.groupHeaderHeight,headerHeight:Ne.headerHeight,highlightRegions:Ne.highlightRegions,imageWindowLoader:Ne.imageWindowLoader,initialSize:Ne.initialSize,isFilling:Ne.isFilling,isFocused:Ne.isFocused,lockColumns:Ne.lockColumns,maxColumnWidth:Ne.maxColumnWidth,minColumnWidth:Ne.minColumnWidth,onHeaderMenuClick:Ne.onHeaderMenuClick,onMouseMove:Ne.onMouseMove,onVisibleRegionChanged:Ne.onVisibleRegionChanged,overscrollX:Ne.overscrollX,overscrollY:Ne.overscrollY,preventDiagonalScrolling:Ne.preventDiagonalScrolling,rightElement:Ne.rightElement,rightElementProps:Ne.rightElementProps,rowHeight:Ne.rowHeight,rows:Ne.rows,scrollRef:Ne.scrollRef,selection:Ne.selection,theme:Ne.theme,freezeTrailingRows:Ne.freezeTrailingRows,hasAppendRow:Ne.hasAppendRow,translateX:Ne.translateX,translateY:Ne.translateY,verticalBorder:Ne.verticalBorder,onColumnProposeMove:Ne.onColumnProposeMove,drawFocusRing:Ne.drawFocusRing,drawCell:Ne.drawCell,drawHeader:Ne.drawHeader,experimental:Ne.experimental,gridRef:Ne.gridRef,headerIcons:Ne.headerIcons,isDraggable:Ne.isDraggable,onCanvasBlur:Ne.onCanvasBlur,onCanvasFocused:Ne.onCanvasFocused,onCellFocused:Ne.onCellFocused,onColumnMoved:Ne.onColumnMoved,onColumnResize:Ne.onColumnResize,onColumnResizeEnd:Ne.onColumnResizeEnd,onColumnResizeStart:Ne.onColumnResizeStart,onContextMenu:Ne.onContextMenu,onDragEnd:Ne.onDragEnd,onDragLeave:Ne.onDragLeave,onDragOverCell:Ne.onDragOverCell,onDragStart:Ne.onDragStart,onDrop:Ne.onDrop,onItemHovered:Ne.onItemHovered,onKeyDown:Ne.onKeyDown,onKeyUp:Ne.onKeyUp,onMouseDown:Ne.onMouseDown,onMouseUp:Ne.onMouseUp,onRowMoved:Ne.onRowMoved,smoothScrollX:Ne.smoothScrollX,smoothScrollY:Ne.smoothScrollY}),pu)};var wo=t(11421);const Go=()=>Ne=>Math.max(16,Ne.targetHeight-10),Ko=(0,Ro.I)("input")({name:"RenameInput",class:"gdg-r17m35ur",propsAsIs:!1,vars:{"r17m35ur-0":[Go(),"px"]}}),Ie=Ne=>{const{bounds:kt,group:Rn,onClose:jn,canvasBounds:_r,onFinish:xr}=Ne,[oi,ti]=i.useState(Rn);return i.createElement(wo.A,{style:{position:"absolute",left:kt.x-_r.left+1,top:kt.y-_r.top,width:kt.width-2,height:kt.height},className:"gdg-c1tqibwd",onClickOutside:jn},i.createElement(Ko,{targetHeight:kt.height,"data-testid":"group-rename-input",value:oi,onBlur:jn,onFocus:Ri=>Ri.target.setSelectionRange(0,oi.length),onChange:Ri=>ti(Ri.target.value),onKeyDown:Ri=>{Ri.key==="Enter"?xr(oi):Ri.key==="Escape"&&jn()},autoFocus:!0}))},yt=150;function on(Ne,kt,Rn,jn){return jn(kt)?.measure?.(Ne,kt,Rn)??yt}function _n(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri){let Fi=0;const Gi=_r===void 0?[]:_r.map(Do=>{const po=on(Ne,Do[jn],kt,Ri);return Fi=Math.max(Fi,po),po});if(Gi.length>5&&ti){Fi=0;let Do=0;for(const Ji of Gi)Do+=Ji;const po=Do/Gi.length;for(let Ji=0;Ji<Gi.length;Ji++)Gi[Ji]>=po*2?Gi[Ji]=0:Fi=Math.max(Fi,Gi[Ji])}Fi=Math.max(Fi,Ne.measureText(Rn.title).width+16+(Rn.icon===void 0?0:28));const yo=Math.max(Math.ceil(xr),Math.min(Math.floor(oi),Math.ceil(Fi)));return{...Rn,width:yo}}function er(Ne,kt,Rn,jn,_r,xr,oi,ti,Ri){const Fi=i.useRef(kt),Gi=i.useRef(Rn),yo=i.useRef(oi);Fi.current=kt,Gi.current=Rn,yo.current=oi;const[Do,po]=i.useMemo(()=>{if(typeof window>"u")return[null,null];const Ma=document.createElement("canvas");return Ma.style.display="none",Ma.style.opacity="0",Ma.style.position="fixed",[Ma,Ma.getContext("2d",{alpha:!1})]},[]);i.useLayoutEffect(()=>(Do&&document.documentElement.append(Do),()=>{Do?.remove()}),[Do]);const Ji=i.useRef({}),Uo=i.useRef(),[Ia,za]=i.useState();return i.useLayoutEffect(()=>{const Ma=Gi.current;if(Ma===void 0||Ne.every(v.AA))return;let xo=Math.max(1,10-Math.floor(Ne.length/1e4)),xs=0;xo<Fi.current&&xo>1&&(xo--,xs=1);const va={x:0,y:0,width:Ne.length,height:Math.min(Fi.current,xo)},Pa={x:0,y:Fi.current-1,width:Ne.length,height:1};(async()=>{const Xa=Ma(va,Ri.signal),wa=xs>0?Ma(Pa,Ri.signal):void 0;let Ga;typeof Xa=="object"?Ga=Xa:Ga=await(0,v.Mp)(Xa),wa!==void 0&&(typeof wa=="object"?Ga=[...Ga,...wa]:Ga=[...Ga,...await(0,v.Mp)(wa)]),Uo.current=Ne,za(Ga)})()},[Ri.signal,Ne]),i.useMemo(()=>{let xo=(()=>Ne.every(v.AA)?Ne:po===null?Ne.map(Na=>(0,v.AA)(Na)?Na:{...Na,width:yt}):(po.font=yo.current.baseFontFull,Ne.map((Na,Xa)=>{if((0,v.AA)(Na))return Na;if(Ji.current[Na.id]!==void 0)return{...Na,width:Ji.current[Na.id]};if(Ia===void 0||Uo.current!==Ne||Na.id===void 0)return{...Na,width:yt};const wa=_n(po,oi,Na,Xa,Ia,_r,xr,!0,ti);return Ji.current[Na.id]=wa.width,wa})))(),xs=0,va=0;const Pa=[];for(const[Na,Xa]of xo.entries())xs+=Xa.width,Xa.grow!==void 0&&Xa.grow>0&&(va+=Xa.grow,Pa.push(Na));if(xs<jn&&Pa.length>0){const Na=[...xo],Xa=jn-xs;let wa=Xa;for(let Ga=0;Ga<Pa.length;Ga++){const vs=Pa[Ga],Za=(xo[vs].grow??0)/va,$a=Ga===Pa.length-1?wa:Math.min(wa,Math.floor(Xa*Za));Na[vs]={...xo[vs],growOffset:$a,width:xo[vs].width+$a},wa-=$a}xo=Na}return{sizedColumns:xo,nonGrowWidth:xs}},[jn,Ne,po,Ia,oi,_r,xr,ti])}function or(Ne,kt){return Ne===void 0?!1:Ne.length>1&&Ne.startsWith("_")?Number.parseInt(Ne.slice(1))===kt.keyCode:Ne.length===1&&Ne>="a"&&Ne<="z"?Ne.toUpperCase().codePointAt(0)===kt.keyCode:Ne===kt.key}function Er(Ne,kt,Rn){const jn=Mi(Ne,kt);return jn&&(Rn.didMatch=!0),jn}function Mi(Ne,kt){if(Ne.length===0)return!1;if(Ne.includes("|")){const Ri=Ne.split("|");for(const Fi of Ri)if(Mi(Fi,kt))return!0;return!1}let Rn=!1,jn=!1,_r=!1,xr=!1;const oi=Ne.split("+"),ti=oi.pop();if(!or(ti,kt))return!1;if(oi[0]==="any")return!0;for(const Ri of oi)switch(Ri){case"ctrl":Rn=!0;break;case"shift":jn=!0;break;case"alt":_r=!0;break;case"meta":xr=!0;break;case"primary":$r.value?xr=!0:Rn=!0;break}return kt.altKey===_r&&kt.ctrlKey===Rn&&kt.shiftKey===jn&&kt.metaKey===xr}function Ui(Ne,kt,Rn,jn,_r,xr){const oi=i.useCallback((Fi,Gi,yo,Do)=>{(xr==="cell"||xr==="multi-cell")&&Fi!==void 0&&(Fi={...Fi,range:{x:Fi.cell[0],y:Fi.cell[1],width:1,height:1}});const po=Rn==="mixed"&&(yo||Do==="drag"),Ji=jn==="mixed"&&po,Uo=_r==="mixed"&&po;let Ia={current:Fi===void 0?void 0:{...Fi,rangeStack:Do==="drag"?Ne.current?.rangeStack??[]:[]},columns:Ji?Ne.columns:v.I1.empty(),rows:Uo?Ne.rows:v.I1.empty()};yo&&(xr==="multi-rect"||xr==="multi-cell")&&Ia.current!==void 0&&Ne.current!==void 0&&(Ia={...Ia,current:{...Ia.current,rangeStack:[...Ne.current.rangeStack,Ne.current.range]}}),kt(Ia,Gi)},[jn,Ne,Rn,xr,_r,kt]),ti=i.useCallback((Fi,Gi,yo)=>{Fi=Fi??Ne.rows,Gi!==void 0&&(Fi=Fi.add(Gi));let Do;if(_r==="exclusive"&&Fi.length>0)Do={current:void 0,columns:v.I1.empty(),rows:Fi};else{const po=yo&&Rn==="mixed",Ji=yo&&jn==="mixed";Do={current:po?Ne.current:void 0,columns:Ji?Ne.columns:v.I1.empty(),rows:Fi}}kt(Do,!1)},[jn,Ne,Rn,_r,kt]),Ri=i.useCallback((Fi,Gi,yo)=>{Fi=Fi??Ne.columns,Gi!==void 0&&(Fi=Fi.add(Gi));let Do;if(jn==="exclusive"&&Fi.length>0)Do={current:void 0,rows:v.I1.empty(),columns:Fi};else{const po=yo&&Rn==="mixed",Ji=yo&&_r==="mixed";Do={current:po?Ne.current:void 0,rows:Ji?Ne.rows:v.I1.empty(),columns:Fi}}kt(Do,!1)},[jn,Ne,Rn,_r,kt]);return[oi,ti,Ri]}function Nn(Ne,kt,Rn,jn,_r){const xr=i.useCallback(Fi=>{if(Ne===!0){const Gi=[];for(let yo=Fi.y;yo<Fi.y+Fi.height;yo++){const Do=[];for(let po=Fi.x;po<Fi.x+Fi.width;po++)po<0||yo>=_r?Do.push({kind:v.dd.Loading,allowOverlay:!1}):Do.push(kt([po,yo]));Gi.push(Do)}return Gi}return Ne?.(Fi,jn.signal)??[]},[jn.signal,kt,Ne,_r]),oi=Ne!==void 0?xr:void 0,ti=i.useCallback(Fi=>{if(oi===void 0)return[];const Gi={...Fi,x:Fi.x-Rn};if(Gi.x<0){Gi.x=0,Gi.width--;const yo=oi(Gi,jn.signal);return typeof yo=="function"?async()=>(await yo()).map(Do=>[{kind:v.dd.Loading,allowOverlay:!1},...Do]):yo.map(Do=>[{kind:v.dd.Loading,allowOverlay:!1},...Do])}return oi(Gi,jn.signal)},[jn.signal,oi,Rn]);return[Ne!==void 0?ti:void 0,oi]}function cr(Ne){if(Ne.copyData!==void 0)return{formatted:Ne.copyData,rawValue:Ne.copyData,format:"string"};switch(Ne.kind){case v.dd.Boolean:return{formatted:Ne.data===!0?"TRUE":Ne.data===!1?"FALSE":Ne.data===v.wm?"INDETERMINATE":"",rawValue:Ne.data,format:"boolean"};case v.dd.Custom:return{formatted:Ne.copyData,rawValue:Ne.copyData,format:"string"};case v.dd.Image:case v.dd.Bubble:return{formatted:Ne.data,rawValue:Ne.data,format:"string-array"};case v.dd.Drilldown:return{formatted:Ne.data.map(kt=>kt.text),rawValue:Ne.data.map(kt=>kt.text),format:"string-array"};case v.dd.Text:return{formatted:Ne.displayData??Ne.data,rawValue:Ne.data,format:"string"};case v.dd.Uri:return{formatted:Ne.displayData??Ne.data,rawValue:Ne.data,format:"url"};case v.dd.Markdown:case v.dd.RowID:return{formatted:Ne.data,rawValue:Ne.data,format:"string"};case v.dd.Number:return{formatted:Ne.displayData,rawValue:Ne.data,format:"number"};case v.dd.Loading:return{formatted:"#LOADING",rawValue:"",format:"string"};case v.dd.Protected:return{formatted:"************",rawValue:"",format:"string"};default:(0,l.xb)(Ne)}}function ni(Ne,kt){return Ne.map((jn,_r)=>{const xr=kt[_r];return jn.map(oi=>oi.span!==void 0&&oi.span[0]!==xr?{formatted:"",rawValue:"",format:"string"}:cr(oi))})}function Xr(Ne,kt){return(kt?/[\t\n",]/:/[\t\n"]/).test(Ne)&&(Ne=`"${Ne.replace(/"/g,'""')}"`),Ne}function Jr(Ne){const kt=[];for(const Rn of Ne){const jn=[];for(const _r of Rn)_r.format==="url"?jn.push(_r.rawValue?.toString()??""):_r.format==="string-array"?jn.push(_r.formatted.map(xr=>Xr(xr,!0)).join(",")):jn.push(Xr(_r.formatted,!1));kt.push(jn.join(" "))}return kt.join(` `)}function Qi(Ne){return Ne.replace(/\t/g," ").replace(/ {2,}/g,kt=>"<span> </span>".repeat(kt.length))}function Fo(Ne){return'"'+Ne.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")+'"'}function No(Ne){return Ne.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function Jo(Ne){const kt=[];kt.push('<style type="text/css"><!--br {mso-data-placement:same-cell;}--></style>',"<table><tbody>");for(const Rn of Ne){kt.push("<tr>");for(const jn of Rn){const _r=`gdg-format="${jn.format}"`;jn.format==="url"?kt.push(`<td ${_r}><a href="${jn.rawValue}">${Qi(jn.formatted)}</a></td>`):jn.format==="string-array"?kt.push(`<td ${_r}><ol>${jn.formatted.map((xr,oi)=>`<li gdg-raw-value=${Fo(jn.rawValue[oi])}>`+Qi(xr)+"</li>").join("")}</ol></td>`):kt.push(`<td gdg-raw-value=${Fo(jn.rawValue?.toString()??"")} ${_r}>${Qi(jn.formatted)}</td>`)}kt.push("</tr>")}return kt.push("</tbody></table>"),kt.join("")}function br(Ne,kt){const Rn=ni(Ne,kt),jn=Jr(Rn),_r=Jo(Rn);return{textPlain:jn,textHtml:_r}}function Yn(Ne){const kt=document.createElement("html");kt.innerHTML=Ne.replace(/ /g," ");const Rn=kt.querySelector("table");if(Rn===null)return;const jn=[Rn],_r=[];let xr;for(;jn.length>0;){const oi=jn.pop();if(oi===void 0)break;if(oi instanceof HTMLTableElement||oi.nodeName==="TBODY")jn.push(...[...oi.children].reverse());else if(oi instanceof HTMLTableRowElement)xr!==void 0&&_r.push(xr),xr=[],jn.push(...[...oi.children].reverse());else if(oi instanceof HTMLTableCellElement){const ti=oi.cloneNode(!0),Fi=ti.children.length===1&&ti.children[0].nodeName==="P"?ti.children[0]:null,Gi=Fi?.children.length===1&&Fi.children[0].nodeName==="FONT",yo=ti.querySelectorAll("br");for(const Ji of yo)Ji.replaceWith(` `);const Do=ti.getAttribute("gdg-raw-value"),po=ti.getAttribute("gdg-format")??"string";if(ti.querySelector("a")!==null)xr?.push({rawValue:ti.querySelector("a")?.getAttribute("href")??"",formatted:ti.textContent??"",format:po});else if(ti.querySelector("ol")!==null){const Ji=ti.querySelectorAll("li");xr?.push({rawValue:[...Ji].map(Uo=>Uo.getAttribute("gdg-raw-value")??""),formatted:[...Ji].map(Uo=>Uo.textContent??""),format:"string-array"})}else if(Do!==null)xr?.push({rawValue:No(Do),formatted:ti.textContent??"",format:po});else{let Ji=ti.textContent??"";Gi&&(Ji=Ji.replace(/\n(?!\n)/g,"")),xr?.push({rawValue:Ji??"",formatted:Ji??"",format:po})}}}return xr!==void 0&&_r.push(xr),_r}function Z(Ne,kt,Rn,jn,_r){const xr=Ne;if(jn==="allowPartial"||Ne.current===void 0||kt===void 0)return Ne;let oi=!1;do{if(Ne?.current===void 0)break;const ti=Ne.current?.range,Ri=[];if(ti.width>2){const yo=kt({x:ti.x,y:ti.y,width:1,height:ti.height},_r.signal);if(typeof yo=="function")return xr;Ri.push(...yo);const Do=kt({x:ti.x+ti.width-1,y:ti.y,width:1,height:ti.height},_r.signal);if(typeof Do=="function")return xr;Ri.push(...Do)}else{const yo=kt({x:ti.x,y:ti.y,width:ti.width,height:ti.height},_r.signal);if(typeof yo=="function")return xr;Ri.push(...yo)}let Fi=ti.x-Rn,Gi=ti.x+ti.width-1-Rn;for(const yo of Ri)for(const Do of yo)Do.span!==void 0&&(Fi=Math.min(Do.span[0],Fi),Gi=Math.max(Do.span[1],Gi));Fi===ti.x-Rn&&Gi===ti.x+ti.width-1-Rn?oi=!0:Ne={current:{cell:Ne.current.cell??[0,0],range:{x:Fi+Rn,y:ti.y,width:Gi-Fi+1,height:ti.height},rangeStack:Ne.current.rangeStack},columns:Ne.columns,rows:Ne.rows}}while(!oi);return Ne}function se(Ne){return Ne.startsWith('"')&&Ne.endsWith('"')&&(Ne=Ne.slice(1,-1).replace(/""/g,'"')),Ne}function G(Ne){let kt;(function(ti){ti[ti.None=0]="None",ti[ti.inString=1]="inString",ti[ti.inStringPostQuote=2]="inStringPostQuote"})(kt||(kt={}));const Rn=[];let jn=[],_r=0,xr=kt.None;Ne=Ne.replace(/\r\n/g,` `);let oi=0;for(const ti of Ne){switch(xr){case kt.None:ti===" "||ti===` `?(jn.push(Ne.slice(_r,oi)),_r=oi+1,ti===` `&&(Rn.push(jn),jn=[])):ti==='"'&&(xr=kt.inString);break;case kt.inString:ti==='"'&&(xr=kt.inStringPostQuote);break;case kt.inStringPostQuote:ti==='"'?xr=kt.inString:((ti===" "||ti===` `)&&(jn.push(se(Ne.slice(_r,oi))),_r=oi+1,ti===` `&&(Rn.push(jn),jn=[])),xr=kt.None);break}oi++}return _r<Ne.length&&jn.push(se(Ne.slice(_r,Ne.length))),Rn.push(jn),Rn.map(ti=>ti.map(Ri=>({rawValue:Ri,formatted:Ri,format:"string"})))}function B(Ne,kt,Rn){const jn=br(Ne,kt),_r=ti=>{window.navigator.clipboard?.writeText(ti)},xr=(ti,Ri)=>window.navigator.clipboard?.write===void 0?!1:(window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([ti],{type:"text/plain"}),"text/html":new Blob([Ri],{type:"text/html"})})]),!0),oi=(ti,Ri)=>{try{if(Rn===void 0||Rn.clipboardData===null)throw new Error("No clipboard data");Rn?.clipboardData?.setData("text/plain",ti),Rn?.clipboardData?.setData("text/html",Ri)}catch{xr(ti,Ri)||_r(ti)}};window.navigator.clipboard?.write!==void 0||Rn?.clipboardData!==void 0?oi(jn.textPlain,jn.textHtml):_r(jn.textPlain),Rn?.preventDefault()}function Pe(Ne){return Ne!==!0}function dt(Ne){return typeof Ne=="string"?Ne:`${Ne}px`}const Lt=()=>Ne=>Ne.innerWidth,Pt=()=>Ne=>Ne.innerHeight,$e=(0,Ro.I)("div")({name:"Wrapper",class:"gdg-wmyidgi",propsAsIs:!1,vars:{"wmyidgi-0":[Lt()],"wmyidgi-1":[Pt()]}}),ut=Ne=>{const{inWidth:kt,inHeight:Rn,children:jn,..._r}=Ne;return i.createElement($e,{innerHeight:dt(Rn),innerWidth:dt(kt),..._r},jn)},zt=2,Ht=1300;function Fn(Ne,kt,Rn){const jn=i.useRef(0),[_r,xr]=Ne??[0,0];i.useEffect(()=>{if(_r===0&&xr===0){jn.current=0;return}let oi=!1,ti=0;const Ri=Fi=>{if(!oi){if(ti===0)ti=Fi;else{const Gi=Fi-ti;jn.current=Math.min(1,jn.current+Gi/Ht);const yo=jn.current**1.618*Gi*zt;kt.current?.scrollBy(_r*yo,xr*yo),ti=Fi,Rn?.()}window.requestAnimationFrame(Ri)}};return window.requestAnimationFrame(Ri),()=>{oi=!0}},[kt,_r,xr,Rn])}function Cn({rowHeight:Ne,headerHeight:kt,groupHeaderHeight:Rn,theme:jn,overscrollX:_r,overscrollY:xr,scaleToRem:oi,remSize:ti}){const[Ri,Fi,Gi,yo,Do,po]=i.useMemo(()=>{if(!oi||ti===16)return[Ne,kt,Rn,jn,_r,xr];const Ji=ti/16,Uo=Ne,Ia=(0,Zn.n6)();return[typeof Uo=="number"?Uo*Ji:za=>Math.ceil(Uo(za)*Ji),Math.ceil(kt*Ji),Math.ceil(Rn*Ji),{...jn,headerIconSize:(jn?.headerIconSize??Ia.headerIconSize)*Ji,cellHorizontalPadding:(jn?.cellHorizontalPadding??Ia.cellHorizontalPadding)*Ji,cellVerticalPadding:(jn?.cellVerticalPadding??Ia.cellVerticalPadding)*Ji},Math.ceil((_r??0)*Ji),Math.ceil((xr??0)*Ji)]},[Rn,kt,_r,xr,ti,Ne,oi,jn]);return{rowHeight:Ri,headerHeight:Fi,groupHeaderHeight:Gi,theme:yo,overscrollX:Do,overscrollY:po}}const tr={downFill:!1,rightFill:!1,clear:!0,closeOverlay:!0,acceptOverlayDown:!0,acceptOverlayUp:!0,acceptOverlayLeft:!0,acceptOverlayRight:!0,copy:!0,paste:!0,cut:!0,search:!1,delete:!0,activateCell:!0,scrollToSelectedCell:!0,goToFirstCell:!0,goToFirstColumn:!0,goToFirstRow:!0,goToLastCell:!0,goToLastColumn:!0,goToLastRow:!0,goToNextPage:!0,goToPreviousPage:!0,selectToFirstCell:!0,selectToFirstColumn:!0,selectToFirstRow:!0,selectToLastCell:!0,selectToLastColumn:!0,selectToLastRow:!0,selectAll:!0,selectRow:!0,selectColumn:!0,goUpCell:!0,goRightCell:!0,goDownCell:!0,goLeftCell:!0,goUpCellRetainSelection:!0,goRightCellRetainSelection:!0,goDownCellRetainSelection:!0,goLeftCellRetainSelection:!0,selectGrowUp:!0,selectGrowRight:!0,selectGrowDown:!0,selectGrowLeft:!0};function Jn(Ne,kt){return Ne===!0?kt:Ne===!1?"":Ne}function ei(Ne){const kt=$r.value;return{activateCell:Jn(Ne.activateCell," |Enter|shift+Enter"),clear:Jn(Ne.clear,"any+Escape"),closeOverlay:Jn(Ne.closeOverlay,"any+Escape"),acceptOverlayDown:Jn(Ne.acceptOverlayDown,"Enter"),acceptOverlayUp:Jn(Ne.acceptOverlayUp,"shift+Enter"),acceptOverlayLeft:Jn(Ne.acceptOverlayLeft,"shift+Tab"),acceptOverlayRight:Jn(Ne.acceptOverlayRight,"Tab"),copy:Ne.copy,cut:Ne.cut,delete:Jn(Ne.delete,kt?"Backspace|Delete":"Delete"),downFill:Jn(Ne.downFill,"primary+_68"),scrollToSelectedCell:Jn(Ne.scrollToSelectedCell,"primary+Enter"),goDownCell:Jn(Ne.goDownCell,"ArrowDown"),goDownCellRetainSelection:Jn(Ne.goDownCellRetainSelection,"alt+ArrowDown"),goLeftCell:Jn(Ne.goLeftCell,"ArrowLeft|shift+Tab"),goLeftCellRetainSelection:Jn(Ne.goLeftCellRetainSelection,"alt+ArrowLeft"),goRightCell:Jn(Ne.goRightCell,"ArrowRight|Tab"),goRightCellRetainSelection:Jn(Ne.goRightCellRetainSelection,"alt+ArrowRight"),goUpCell:Jn(Ne.goUpCell,"ArrowUp"),goUpCellRetainSelection:Jn(Ne.goUpCellRetainSelection,"alt+ArrowUp"),goToFirstCell:Jn(Ne.goToFirstCell,"primary+Home"),goToFirstColumn:Jn(Ne.goToFirstColumn,"Home|primary+ArrowLeft"),goToFirstRow:Jn(Ne.goToFirstRow,"primary+ArrowUp"),goToLastCell:Jn(Ne.goToLastCell,"primary+End"),goToLastColumn:Jn(Ne.goToLastColumn,"End|primary+ArrowRight"),goToLastRow:Jn(Ne.goToLastRow,"primary+ArrowDown"),goToNextPage:Jn(Ne.goToNextPage,"PageDown"),goToPreviousPage:Jn(Ne.goToPreviousPage,"PageUp"),paste:Ne.paste,rightFill:Jn(Ne.rightFill,"primary+_82"),search:Jn(Ne.search,"primary+f"),selectAll:Jn(Ne.selectAll,"primary+a"),selectColumn:Jn(Ne.selectColumn,"ctrl+ "),selectGrowDown:Jn(Ne.selectGrowDown,"shift+ArrowDown"),selectGrowLeft:Jn(Ne.selectGrowLeft,"shift+ArrowLeft"),selectGrowRight:Jn(Ne.selectGrowRight,"shift+ArrowRight"),selectGrowUp:Jn(Ne.selectGrowUp,"shift+ArrowUp"),selectRow:Jn(Ne.selectRow,"shift+ "),selectToFirstCell:Jn(Ne.selectToFirstCell,"primary+shift+Home"),selectToFirstColumn:Jn(Ne.selectToFirstColumn,"primary+shift+ArrowLeft"),selectToFirstRow:Jn(Ne.selectToFirstRow,"primary+shift+ArrowUp"),selectToLastCell:Jn(Ne.selectToLastCell,"primary+shift+End"),selectToLastColumn:Jn(Ne.selectToLastColumn,"primary+shift+ArrowRight"),selectToLastRow:Jn(Ne.selectToLastRow,"primary+shift+ArrowDown")}}function Ci(Ne){const kt=fe(Ne);return i.useMemo(()=>{if(kt===void 0)return ei(tr);const Rn={...kt,goToNextPage:kt?.goToNextPage??kt?.pageDown??tr.goToNextPage,goToPreviousPage:kt?.goToPreviousPage??kt?.pageUp??tr.goToPreviousPage,goToFirstCell:kt?.goToFirstCell??kt?.first??tr.goToFirstCell,goToLastCell:kt?.goToLastCell??kt?.last??tr.goToLastCell,selectToFirstCell:kt?.selectToFirstCell??kt?.first??tr.selectToFirstCell,selectToLastCell:kt?.selectToLastCell??kt?.last??tr.selectToLastCell};return ei({...tr,...Rn})},[kt])}const zi=i.lazy(async()=>await t.e(7882).then(t.bind(t,47882)));let co=0;function Xo(Ne){return m(u(u(Ne).filter(kt=>kt.span!==void 0).map(kt=>f((kt.span?.[0]??0)+1,(kt.span?.[1]??0)+1))))}function Eo(Ne,kt){return Ne===void 0||kt===0||Ne.columns.length===0&&Ne.current===void 0?Ne:{current:Ne.current===void 0?void 0:{cell:[Ne.current.cell[0]+kt,Ne.current.cell[1]],range:{...Ne.current.range,x:Ne.current.range.x+kt},rangeStack:Ne.current.rangeStack.map(Rn=>({...Rn,x:Rn.x+kt}))},rows:Ne.rows,columns:Ne.columns.offset(kt)}}const Yo={kind:v.dd.Loading,allowOverlay:!1},Xn={columns:v.I1.empty(),rows:v.I1.empty(),current:void 0},fr=(Ne,kt)=>{const[Rn,jn]=i.useState(Xn),[_r,xr]=i.useState(),oi=i.useRef(null),ti=i.useRef(null),[Ri,Fi]=i.useState(),Gi=i.useRef(null),yo=i.useRef(),Do=typeof window>"u"?null:window,{imageEditorOverride:po,getRowThemeOverride:Ji,markdownDivCreateNode:Uo,width:Ia,height:za,columns:Ma,rows:xo,getCellContent:xs,onCellClicked:va,onCellActivated:Pa,onFillPattern:Na,onFinishedEditing:Xa,coercePasteValue:wa,drawHeader:Ga,drawCell:vs,editorBloom:Za,onHeaderClicked:$a,onColumnProposeMove:ns,spanRangeBehavior:uu="default",onGroupHeaderClicked:Mu,onCellContextMenu:Lu,className:ju,onHeaderContextMenu:pl,getCellsForSelection:pu,onGroupHeaderContextMenu:ks,onGroupHeaderRenamed:su,onCellEdited:Au,onCellsEdited:wl,onSearchResultsChanged:bu,searchResults:Ul,onSearchValueChange:Wl,searchValue:il,onKeyDown:_l,onKeyUp:Hs,keybindings:Pl,editOnType:Ql=!0,onRowAppended:ll,onColumnMoved:Kl,validateCell:ia,highlightRegions:Sa,rangeSelect:Ea="rect",columnSelect:rs="multi",rowSelect:Ns="multi",rangeSelectionBlending:Xt="exclusive",columnSelectionBlending:bn="exclusive",rowSelectionBlending:Dn="exclusive",onDelete:Ii,onDragStart:ko,onMouseMove:fa,onPaste:Zo,copyHeaders:Fa=!1,freezeColumns:Ua=0,cellActivationBehavior:ms="second-click",rowSelectionMode:Fs="auto",onHeaderMenuClick:ws,getGroupDetails:fu,onSearchClose:wu,onItemHovered:Du,onSelectionCleared:zu,showSearch:Il,onVisibleRegionChanged:bc,gridSelection:Gl,onGridSelectionChange:oc,minColumnWidth:ac=50,maxColumnWidth:jl=500,maxColumnAutoWidth:nc,provideEditor:Fl,trailingRowOptions:Zu,freezeTrailingRows:Ac=0,allowedFillDirections:tf="orthogonal",scrollOffsetX:Jl,scrollOffsetY:ml,verticalBorder:vl,onDragOverCell:Vu,onDrop:ad,onColumnResize:Bc,onColumnResizeEnd:hf,onColumnResizeStart:Vc,customRenderers:Od,fillHandle:_c,drawFocusRing:Xc=!0,experimental:Zl,fixedShadowX:qd,fixedShadowY:Kd,headerIcons:jf,imageWindowLoader:Ml,initialSize:jd,isDraggable:Jf,onDragLeave:ql,onRowMoved:sc,overscrollX:Uc,overscrollY:Gd,preventDiagonalScrolling:nf,rightElement:Dd,rightElementProps:yd,trapFocus:pf=!1,smoothScrollX:Lf,smoothScrollY:Cd,scaleToRem:vf=!1,rowHeight:jc=34,headerHeight:gf=36,groupHeaderHeight:Id=gf,theme:sd,isOutsideClick:ud,renderers:Yd}=Ne,xd=typeof Ne.rowMarkers=="string"?void 0:Ne.rowMarkers,rc=xd?.kind??Ne.rowMarkers??"none",Pc=xd?.width??Ne.rowMarkerWidth,lf=xd?.startIndex??Ne.rowMarkerStartIndex??1,Qc=xd?.theme??Ne.rowMarkerTheme,yc=xd?.checkboxStyle??"square",fc=Math.max(ac,20),ic=Math.max(jl,fc),Kf=Math.max(nc??ic,fc),ld=i.useMemo(()=>typeof window>"u"?{fontSize:"16px"}:window.getComputedStyle(document.documentElement),[]),Ld=i.useMemo(()=>Number.parseFloat(ld.fontSize),[ld]),{rowHeight:cf,headerHeight:kf,groupHeaderHeight:uh,theme:$d,overscrollX:bh,overscrollY:Zf}=Cn({groupHeaderHeight:Id,headerHeight:gf,overscrollX:Uc,overscrollY:Gd,remSize:Ld,rowHeight:jc,scaleToRem:vf,theme:sd}),dc=Ci(Pl),yf=Pc??(xo>1e4?48:xo>1e3?44:xo>100?36:32),Nf=rc!=="none",ys=Nf?1:0,Hc=ll!==void 0,Jc=Zu?.sticky===!0,[Fh,lh]=i.useState(!1),Xd=Il??Fh,Ud=i.useCallback(()=>{wu!==void 0?wu():lh(!1)},[wu]),Ms=i.useMemo(()=>Gl===void 0?void 0:Eo(Gl,ys),[Gl,ys])??Rn,Pf=i.useRef();Pf.current===void 0&&(Pf.current=new AbortController),i.useEffect(()=>()=>Pf?.current.abort(),[]);const[bf,cd]=Nn(pu,xs,ys,Pf.current,xo),rf=i.useCallback((Wi,Oa,Ca)=>{if(ia===void 0)return!0;const Es=[Wi[0]-ys,Wi[1]];return ia?.(Es,Oa,Ca)},[ys,ia]),Gf=i.useRef(Gl),Tf=i.useCallback((Wi,Oa)=>{Oa&&(Wi=Z(Wi,bf,ys,uu,Pf.current)),oc!==void 0?(Gf.current=Eo(Wi,-ys),oc(Gf.current)):jn(Wi)},[oc,bf,ys,uu]),fd=d(Bc,i.useCallback((Wi,Oa,Ca,Es)=>{Bc?.(Ma[Ca-ys],Oa,Ca-ys,Es)},[Bc,ys,Ma])),eh=d(hf,i.useCallback((Wi,Oa,Ca,Es)=>{hf?.(Ma[Ca-ys],Oa,Ca-ys,Es)},[hf,ys,Ma])),Rf=d(Vc,i.useCallback((Wi,Oa,Ca,Es)=>{Vc?.(Ma[Ca-ys],Oa,Ca-ys,Es)},[Vc,ys,Ma])),qf=d(Ga,i.useCallback((Wi,Oa)=>Ga?.({...Wi,columnIndex:Wi.columnIndex-ys},Oa)??!1,[Ga,ys])),kd=d(vs,i.useCallback((Wi,Oa)=>vs?.({...Wi,col:Wi.col-ys},Oa)??!1,[vs,ys])),qa=i.useCallback(Wi=>{if(Ii!==void 0){const Oa=Ii(Eo(Wi,-ys));return typeof Oa=="boolean"?Oa:Eo(Oa,ys)}return!0},[Ii,ys]),[Gs,hu,du]=Ui(Ms,Tf,Xt,bn,Dn,Ea),Ys=i.useMemo(()=>(0,Zn.P6)((0,Zn.n6)(),$d),[$d]),[Pu,sl]=i.useState([0,0,0]),Tu=i.useMemo(()=>{if(Yd===void 0)return{};const Wi={};for(const Oa of Yd)Wi[Oa.kind]=Oa;return Wi},[Yd]),Yu=i.useCallback(Wi=>Wi.kind!==v.dd.Custom?Tu[Wi.kind]:Od?.find(Oa=>Oa.isMatch(Wi)),[Od,Tu]);let{sizedColumns:xu,nonGrowWidth:of}=er(Ma,xo,cd,Pu[0]-(ys===0?0:yf)-Pu[2],fc,Kf,Ys,Yu,Pf.current);rc!=="none"&&(of+=yf);const Ol=i.useMemo(()=>xu.some(Wi=>Wi.group!==void 0),[xu]),wc=Ol?kf+uh:kf,Ll=Ms.rows.length,Mc=rc==="none"?void 0:Ll===0?!1:Ll===xo?!0:void 0,Bl=i.useMemo(()=>rc==="none"?xu:[{title:"",width:yf,icon:void 0,hasMenu:!1,style:"normal",themeOverride:Qc,rowMarker:yc,rowMarkerChecked:Mc},...xu],[rc,xu,yf,Qc,yc,Mc]),[Ic,qu]=i.useMemo(()=>[ml!==void 0&&typeof cf=="number"?Math.floor(ml/cf):0,ml!==void 0&&typeof cf=="number"?-(ml%cf):0],[ml,cf]),Vr=i.useRef({height:1,width:1,x:0,y:0}),Ni=i.useMemo(()=>({x:Vr.current.x,y:Ic,width:Vr.current.width??1,height:Vr.current.height??1,ty:qu}),[qu,Ic]),fo=i.useRef(!1),[Po,pa,Va]=he(Ni);Vr.current=Po;const fs=(Po.height??1)>1;i.useLayoutEffect(()=>{if(ml!==void 0&&Gi.current!==null&&fs){if(Gi.current.scrollTop===ml)return;Gi.current.scrollTop=ml,Gi.current.scrollTop!==ml&&Va(),fo.current=!0}},[ml,fs,Va]);const zs=(Po.width??1)>1;i.useLayoutEffect(()=>{if(Jl!==void 0&&Gi.current!==null&&zs){if(Gi.current.scrollLeft===Jl)return;Gi.current.scrollLeft=Jl,Gi.current.scrollLeft!==Jl&&Va(),fo.current=!0}},[Jl,zs,Va]);const cu=Po.x+ys,Ru=Po.y,Vs=i.useRef(null),Ou=i.useCallback(Wi=>{Wi===!0?Vs.current?.focus():window.requestAnimationFrame(()=>{Vs.current?.focus()})},[]),iu=Hc?xo+1:xo,Uu=i.useCallback(Wi=>{const Oa=ys===0?Wi:Wi.map(Es=>({...Es,location:[Es.location[0]-ys,Es.location[1]]})),Ca=wl?.(Oa);if(Ca!==!0)for(const Es of Oa)Au?.(Es.location,Es.value);return Ca},[Au,wl,ys]),[kl,gl]=i.useState(),ol=Ms.current!==void 0&&Ms.current.range.width*Ms.current.range.height>1?Ms.current.range:void 0,El=Xc?Ms.current?.cell:void 0,Zc=El?.[0],mu=El?.[1],Ps=i.useMemo(()=>{if((Sa===void 0||Sa.length===0)&&(ol??Zc??mu??kl)===void 0)return;const Wi=[];if(Sa!==void 0)for(const Oa of Sa){const Ca=Bl.length-Oa.range.x-ys;Ca>0&&Wi.push({color:Oa.color,range:{...Oa.range,x:Oa.range.x+ys,width:Math.min(Ca,Oa.range.width)},style:Oa.style})}return kl!==void 0&&Wi.push({color:(0,at.fu)(Ys.accentColor,0),range:kl,style:"dashed"}),ol!==void 0&&Wi.push({color:(0,at.fu)(Ys.accentColor,.5),range:ol,style:"solid-outline"}),Zc!==void 0&&mu!==void 0&&Wi.push({color:Ys.accentColor,range:{x:Zc,y:mu,width:1,height:1},style:"solid-outline"}),Wi.length>0?Wi:void 0},[kl,ol,Zc,mu,Sa,Bl.length,Ys.accentColor,ys]),Kc=i.useRef(Bl);Kc.current=Bl;const vc=i.useCallback(([Wi,Oa],Ca=!1)=>{const Es=Hc&&Oa===iu-1;if(Wi===0&&Nf)return Es?Yo:{kind:v.Ld.Marker,allowOverlay:!1,checkboxStyle:yc,checked:Ms?.rows.hasIndex(Oa)===!0,markerKind:rc==="clickable-number"?"number":rc,row:lf+Oa,drawHandle:sc!==void 0,cursor:rc==="clickable-number"?"pointer":void 0};if(Es){const Ha=Wi===ys?Zu?.hint??"":"",bs=Kc.current[Wi];if(bs?.trailingRowOptions?.disabled===!0)return Yo;{const Qs=bs?.trailingRowOptions?.hint??Ha,vu=bs?.trailingRowOptions?.addIcon??Zu?.addIcon;return{kind:v.Ld.NewRow,hint:Qs,allowOverlay:!1,icon:vu}}}else{const ds=Wi-ys;if(Ca||Zl?.strict===!0){const bs=Vr.current,Qs=bs.x>ds||ds>bs.x+bs.width||bs.y>Oa||Oa>bs.y+bs.height||Oa>=Ed.current,vu=ds===bs.extras?.selected?.[0]&&Oa===bs.extras?.selected[1];let Nu=!1;if(bs.extras?.freezeRegions!==void 0){for(const zl of bs.extras.freezeRegions)if(gn(zl,ds,Oa)){Nu=!0;break}}if(Qs&&!vu&&!Nu)return Yo}let Ha=xs([ds,Oa]);return ys!==0&&Ha.span!==void 0&&(Ha={...Ha,span:[Ha.span[0]+ys,Ha.span[1]+ys]}),Ha}},[Hc,iu,Nf,yc,Ms?.rows,rc,lf,sc,ys,Zu?.hint,Zu?.addIcon,Zl?.strict,xs]),ff=i.useCallback(Wi=>{let Oa=fu?.(Wi)??{name:Wi};return su!==void 0&&Wi!==""&&(Oa={icon:Oa.icon,name:Oa.name,overrideTheme:Oa.overrideTheme,actions:[...Oa.actions??[],{title:"Rename",icon:"renameIcon",onClick:Ca=>lt({group:Oa.name,bounds:Ca.bounds})}]}),Oa},[fu,su]),Wc=i.useCallback(Wi=>{const[Oa,Ca]=Wi.cell,Es=Bl[Oa],Ss=Es?.group!==void 0?ff(Es.group)?.overrideTheme:void 0,ds=Es?.themeOverride,Ha=Ji?.(Ca);xr({...Wi,theme:(0,Zn.P6)(Ys,Ss,ds,Ha,Wi.content.themeOverride)})},[Ji,Bl,ff,Ys]),Mf=i.useCallback((Wi,Oa,Ca)=>{if(Ms.current===void 0)return;const[Es,Ss]=Ms.current.cell,ds=vc([Es,Ss]);if(ds.kind!==v.dd.Boolean&&ds.allowOverlay){let Ha=ds;if(Ca!==void 0)switch(Ha.kind){case v.dd.Number:{const bs=(0,l.no)(()=>Ca==="-"?-0:Number.parseFloat(Ca),0);Ha={...Ha,data:Number.isNaN(bs)?0:bs};break}case v.dd.Text:case v.dd.Markdown:case v.dd.Uri:Ha={...Ha,data:Ca};break}Wc({target:Wi,content:Ha,initialValue:Ca,cell:[Es,Ss],highlight:Ca===void 0,forceEditMode:Ca!==void 0})}else ds.kind===v.dd.Boolean&&Oa&&ds.readonly!==!0&&(Uu([{location:Ms.current.cell,value:{...ds,data:Pe(ds.data)}}]),Vs.current?.damage([{cell:Ms.current.cell}]))},[vc,Ms,Uu,Wc]),wd=i.useCallback((Wi,Oa)=>{const Ca=Vs.current?.getBounds(Wi,Oa);if(Ca===void 0||Gi.current===null)return;const Es=vc([Wi,Oa]);Es.allowOverlay&&Wc({target:Ca,content:Es,initialValue:void 0,highlight:!0,cell:[Wi,Oa],forceEditMode:!0})},[vc,Wc]),mf=i.useCallback((Wi,Oa,Ca="both",Es=0,Ss=0,ds=void 0)=>{if(Gi.current!==null){const Ha=Vs.current,bs=ti.current,Qs=typeof Wi!="number"?Wi.unit==="cell"?Wi.amount:void 0:Wi,vu=typeof Oa!="number"?Oa.unit==="cell"?Oa.amount:void 0:Oa,Nu=typeof Wi!="number"&&Wi.unit==="px"?Wi.amount:void 0,zl=typeof Oa!="number"&&Oa.unit==="px"?Oa.amount:void 0;if(Ha!==null&&bs!==null){let bl={x:0,y:0,width:0,height:0},tl=0,lc=0;if((Qs!==void 0||vu!==void 0)&&(bl=Ha.getBounds((Qs??0)+ys,vu??0)??bl,bl.width===0||bl.height===0))return;const qc=bs.getBoundingClientRect(),df=qc.width/bs.offsetWidth;if(Nu!==void 0&&(bl={...bl,x:Nu-qc.left-Gi.current.scrollLeft,width:1}),zl!==void 0&&(bl={...bl,y:zl+qc.top-Gi.current.scrollTop,height:1}),bl!==void 0){const uf={x:bl.x-Es,y:bl.y-Ss,width:bl.width+2*Es,height:bl.height+2*Ss};let Jd=0;for(let wh=0;wh<Ua;wh++)Jd+=xu[wh].width;let dh=0;const Ph=Ac+(Jc?1:0);Ph>0&&(dh=tt(iu,Ph,cf));let th=Jd*df+qc.left+ys*yf*df,Vh=qc.right,rh=qc.top+wc*df,Th=qc.bottom-dh*df;const Bh=bl.width+Es*2;switch(ds?.hAlign){case"start":Vh=th+Bh;break;case"end":th=Vh-Bh;break;case"center":th=Math.floor((th+Vh)/2)-Bh/2,Vh=th+Bh;break}const Rh=bl.height+Ss*2;switch(ds?.vAlign){case"start":Th=rh+Rh;break;case"end":rh=Th-Rh;break;case"center":rh=Math.floor((rh+Th)/2)-Rh/2,Th=rh+Rh;break}th>uf.x?tl=uf.x-th:Vh<uf.x+uf.width&&(tl=uf.x+uf.width-Vh),rh>uf.y?lc=uf.y-rh:Th<uf.y+uf.height&&(lc=uf.y+uf.height-Th),Ca==="vertical"||typeof Wi=="number"&&Wi<Ua?tl=0:(Ca==="horizontal"||typeof Oa=="number"&&Oa>=iu-Ph)&&(lc=0),(tl!==0||lc!==0)&&(df!==1&&(tl/=df,lc/=df),Gi.current.scrollTo(tl+Gi.current.scrollLeft,lc+Gi.current.scrollTop))}}}},[ys,Ac,yf,wc,Ua,xu,iu,Jc,cf]),Df=i.useRef(wd),Ah=i.useRef(xs),Ed=i.useRef(xo);Df.current=wd,Ah.current=xs,Ed.current=xo;const $f=i.useCallback(async(Wi,Oa=!0)=>{if(Bl[Wi]?.trailingRowOptions?.disabled===!0)return;const Es=ll?.();let Ss,ds=!0;Es!==void 0&&(Ss=await Es,Ss==="top"&&(ds=!1),typeof Ss=="number"&&(ds=!1));let Ha=0;const bs=()=>{if(Ed.current<=xo){Ha<500&&window.setTimeout(bs,Ha),Ha=50+Ha*2;return}const Qs=typeof Ss=="number"?Ss:ds?xo:0;Ad.current(Wi-ys,Qs),Gs({cell:[Wi,Qs],range:{x:Wi,y:Qs,width:1,height:1}},!1,!1,"edit");const vu=Ah.current([Wi-ys,Qs]);vu.allowOverlay&&(0,v.uQ)(vu)&&vu.readonly!==!0&&Oa&&window.setTimeout(()=>{Df.current(Wi,Qs)},0)};bs()},[Bl,ll,ys,xo,Gs]),Dc=i.useCallback(Wi=>{const Oa=xu[Wi]?.trailingRowOptions?.targetColumn??Zu?.targetColumn;if(typeof Oa=="number")return Oa+(Nf?1:0);if(typeof Oa=="object"){const Ca=Ma.indexOf(Oa);if(Ca>=0)return Ca+(Nf?1:0)}},[xu,Ma,Nf,Zu?.targetColumn]),_f=i.useRef(),wf=i.useRef(),Uf=i.useCallback((Wi,Oa)=>{const[Ca,Es]=Oa;return(0,Zn.P6)(Ys,Bl[Ca]?.themeOverride,Ji?.(Es),Wi.themeOverride)},[Ji,Bl,Ys]),Wd=i.useCallback(Wi=>{const Oa=$r.value?Wi.metaKey:Wi.ctrlKey,Ca=Oa&&Ns==="multi",Es=Oa&&rs==="multi",[Ss,ds]=Wi.location,Ha=Ms.columns,bs=Ms.rows,[Qs,vu]=Ms.current?.cell??[];if(Wi.kind==="cell"){if(wf.current=void 0,Qd.current=[Ss,ds],Ss===0&&Nf){if(Hc===!0&&ds===xo||rc==="number"||Ns==="none")return;const Nu=vc(Wi.location);if(Nu.kind!==v.Ld.Marker)return;if(sc!==void 0){const tl=Yu(Nu);(0,l.vA)(tl?.kind===v.Ld.Marker);const lc=tl?.onClick?.({...Wi,cell:Nu,posX:Wi.localEventX,posY:Wi.localEventY,bounds:Wi.bounds,theme:Uf(Nu,Wi.location),preventDefault:()=>{}});if(lc===void 0||lc.checked===Nu.checked)return}xr(void 0),Ou();const zl=bs.hasIndex(ds),bl=_f.current;if(Ns==="multi"&&(Wi.shiftKey||Wi.isLongTouch===!0)&&bl!==void 0&&bs.hasIndex(bl)){const tl=[Math.min(bl,ds),Math.max(bl,ds)+1];Ca||Fs==="multi"?hu(void 0,tl,!0):hu(v.I1.fromSingleSelection(tl),void 0,Ca)}else Ca||Wi.isTouch||Fs==="multi"?zl?hu(bs.remove(ds),void 0,!0):(hu(void 0,ds,!0),_f.current=ds):zl&&bs.length===1?hu(v.I1.empty(),void 0,Oa):(hu(v.I1.fromSingleSelection(ds),void 0,Oa),_f.current=ds)}else if(Ss>=ys&&Hc&&ds===xo){const Nu=Dc(Ss);$f(Nu??Ss)}else if(Qs!==Ss||vu!==ds){const Nu=vc(Wi.location),zl=Yu(Nu);if(zl?.onSelect!==void 0){let lc=!1;if(zl.onSelect({...Wi,cell:Nu,posX:Wi.localEventX,posY:Wi.localEventY,bounds:Wi.bounds,preventDefault:()=>lc=!0,theme:Uf(Nu,Wi.location)}),lc)return}const bl=Jc&&ds===xo,tl=Jc&&Ms!==void 0&&Ms.current?.cell[1]===xo;if((Wi.shiftKey||Wi.isLongTouch===!0)&&Qs!==void 0&&vu!==void 0&&Ms.current!==void 0&&!tl){if(bl)return;const lc=Math.min(Ss,Qs),qc=Math.max(Ss,Qs),df=Math.min(ds,vu),uf=Math.max(ds,vu);Gs({...Ms.current,range:{x:lc,y:df,width:qc-lc+1,height:uf-df+1}},!0,Oa,"click"),_f.current=void 0,Ou()}else Gs({cell:[Ss,ds],range:{x:Ss,y:ds,width:1,height:1}},!0,Oa,"click"),_f.current=void 0,xr(void 0),Ou()}}else if(Wi.kind==="header")if(Qd.current=[Ss,ds],xr(void 0),Nf&&Ss===0)_f.current=void 0,wf.current=void 0,Ns==="multi"&&(bs.length!==xo?hu(v.I1.fromSingleSelection([0,xo]),void 0,Oa):hu(v.I1.empty(),void 0,Oa),Ou());else{const Nu=wf.current;if(rs==="multi"&&(Wi.shiftKey||Wi.isLongTouch===!0)&&Nu!==void 0&&Ha.hasIndex(Nu)){const zl=[Math.min(Nu,Ss),Math.max(Nu,Ss)+1];Es?du(void 0,zl,Oa):du(v.I1.fromSingleSelection(zl),void 0,Oa)}else Es?(Ha.hasIndex(Ss)?du(Ha.remove(Ss),void 0,Oa):du(void 0,Ss,Oa),wf.current=Ss):rs!=="none"&&(du(v.I1.fromSingleSelection(Ss),void 0,Oa),wf.current=Ss);_f.current=void 0,Ou()}else Wi.kind===gi?Qd.current=[Ss,ds]:Wi.kind===$i&&!Wi.isMaybeScrollbar&&(Tf(Xn,!1),xr(void 0),Ou(),zu?.(),_f.current=void 0,wf.current=void 0)},[$f,rs,Ou,Yu,Dc,vc,Ms,Nf,Jc,zu,sc,ys,rc,Ns,Fs,xo,Gs,Tf,du,hu,Hc,Uf]),Ff=i.useRef(!1),Qd=i.useRef(),Nd=i.useRef(Po),Wf=i.useRef(),nh=i.useCallback(Wi=>{if(Bn.current=!1,Nd.current=Vr.current,Wi.button!==0&&Wi.button!==1){Wf.current=void 0;return}const Oa=performance.now();Wf.current={button:Wi.button,time:Oa,location:Wi.location},Wi?.kind==="header"&&(Ff.current=!0);const Ca=Wi.kind==="cell"&&Wi.isFillHandle;!Ca&&Wi.kind!=="cell"&&Wi.isEdge||(Fi({previousSelection:Ms,fillHandle:Ca}),Qd.current=void 0,!Wi.isTouch&&Wi.button===0&&!Ca?Wd(Wi):!Wi.isTouch&&Wi.button===1&&(Qd.current=Wi.location))},[Ms,Wd]),[Ze,lt]=i.useState(),Kt=i.useCallback(Wi=>{if(Wi.kind!==gi||rs!=="multi")return;const Oa=$r.value?Wi.metaKey:Wi.ctrlKey,[Ca]=Wi.location,Es=Ms.columns;if(Ca<ys)return;const Ss=Bl[Ca];let ds=Ca,Ha=Ca;for(let bs=Ca-1;bs>=ys&&ye(Ss.group,Bl[bs].group);bs--)ds--;for(let bs=Ca+1;bs<Bl.length&&ye(Ss.group,Bl[bs].group);bs++)Ha++;if(Ou(),Oa)if(Es.hasAll([ds,Ha+1])){let bs=Es;for(let Qs=ds;Qs<=Ha;Qs++)bs=bs.remove(Qs);du(bs,void 0,Oa)}else du(void 0,[ds,Ha+1],Oa);else du(v.I1.fromSingleSelection([ds,Ha+1]),void 0,Oa)},[rs,Ou,Ms.columns,Bl,ys,du]),Bn=i.useRef(!1),Ar=i.useCallback(async Wi=>{if(bf!==void 0&&fd!==void 0){const Oa=Vr.current.y,Ca=Vr.current.height;let Es=bf({x:Wi,y:Oa,width:1,height:Math.min(Ca,xo-Oa)},Pf.current.signal);typeof Es!="object"&&(Es=await Es());const Ss=xu[Wi-ys],Ha=document.createElement("canvas").getContext("2d",{alpha:!1});if(Ha!==null){Ha.font=Ys.baseFontFull;const bs=_n(Ha,Ys,Ss,0,Es,fc,ic,!1,Yu);fd?.(Ss,bs.width,Wi,bs.width)}}},[xu,bf,ic,Ys,fc,fd,ys,xo,Yu]),[Tr,Yr]=i.useState(),qr=i.useCallback(async(Wi,Oa)=>{const Ca=Wi.current?.range;if(Ca===void 0||bf===void 0||Oa.current===void 0)return;const Es=Oa.current.range;if(Na!==void 0){let bs=!1;if(Na({fillDestination:{...Es,x:Es.x-ys},patternSource:{...Ca,x:Ca.x-ys},preventDefault:()=>bs=!0}),bs)return}let Ss=bf(Ca,Pf.current.signal);typeof Ss!="object"&&(Ss=await Ss());const ds=Ss,Ha=[];for(let bs=0;bs<Es.width;bs++)for(let Qs=0;Qs<Es.height;Qs++){const vu=[Es.x+bs,Es.y+Qs];if(Ae(vu,Ca))continue;const Nu=ds[Qs%Ca.height][bs%Ca.width];(0,v.pg)(Nu)||!(0,v.uQ)(Nu)||Ha.push({location:vu,value:{...Nu}})}Uu(Ha),Vs.current?.damage(Ha.map(bs=>({cell:bs.location})))},[bf,Uu,Na,ys]),qi=i.useCallback(()=>{if(Ms.current===void 0||Ms.current.range.width<=1)return;const Wi={...Ms,current:{...Ms.current,range:{...Ms.current.range,width:1}}};qr(Wi,Ms)},[qr,Ms]),Co=i.useCallback(()=>{if(Ms.current===void 0||Ms.current.range.height<=1)return;const Wi={...Ms,current:{...Ms.current,range:{...Ms.current.range,height:1}}};qr(Wi,Ms)},[qr,Ms]),_o=i.useCallback((Wi,Oa)=>{const Ca=Ri;if(Fi(void 0),gl(void 0),Yr(void 0),Ff.current=!1,Oa)return;if(Ca?.fillHandle===!0&&Ms.current!==void 0&&Ca.previousSelection?.current!==void 0){if(kl===void 0)return;const Nu={...Ms,current:{...Ms.current,range:Qt(Ca.previousSelection.current.range,kl)}};qr(Ca.previousSelection,Nu),Tf(Nu,!0);return}const[Es,Ss]=Wi.location,[ds,Ha]=Qd.current??[],bs=()=>{Bn.current=!0},Qs=Nu=>{const zl=Nu.isTouch||ds===Es&&Ha===Ss;if(zl&&va?.([Es-ys,Ss],{...Nu,preventDefault:bs}),Nu.button===1)return!Bn.current;if(!Bn.current){const bl=vc(Wi.location),tl=Yu(bl);if(tl!==void 0&&tl.onClick!==void 0&&zl){const qc=tl.onClick({...Nu,cell:bl,posX:Nu.localEventX,posY:Nu.localEventY,bounds:Nu.bounds,theme:Uf(bl,Wi.location),preventDefault:bs});qc!==void 0&&!(0,v.pg)(qc)&&(0,v.Bc)(qc)&&(Uu([{location:Nu.location,value:qc}]),Vs.current?.damage([{cell:Nu.location}]))}if(Bn.current||Ms.current===void 0)return!1;let lc=!1;switch(bl.activationBehaviorOverride??ms){case"double-click":case"second-click":{if(Ca?.previousSelection?.current?.cell===void 0)break;const[qc,df]=Ms.current.cell,[uf,Jd]=Ca.previousSelection.current.cell;lc=Es===qc&&Es===uf&&Ss===df&&Ss===Jd&&(Nu.isDoubleClick===!0||ms==="second-click");break}case"single-click":{lc=!0;break}}if(lc)return Pa?.([Es-ys,Ss]),Mf(Nu.bounds,!1),!0}return!1},vu=Wi.location[0]-ys;if(Wi.isTouch){const Nu=Vr.current,zl=Nd.current;if(Nu.x!==zl.x||Nu.y!==zl.y)return;if(Wi.isLongTouch===!0){if(Wi.kind==="cell"&&Ee(Ms.current?.cell,Wi.location)){Lu?.([vu,Wi.location[1]],{...Wi,preventDefault:bs});return}else if(Wi.kind==="header"&&Ms.columns.hasIndex(Es)){pl?.(vu,{...Wi,preventDefault:bs});return}else if(Wi.kind===gi){if(vu<0)return;ks?.(vu,{...Wi,preventDefault:bs});return}}Wi.kind==="cell"?Qs(Wi)||Wd(Wi):Wi.kind===gi?Mu?.(vu,{...Wi,preventDefault:bs}):(Wi.kind===zr&&$a?.(vu,{...Wi,preventDefault:bs}),Wd(Wi));return}if(Wi.kind==="header"){if(vu<0)return;Wi.isEdge?Wi.isDoubleClick===!0&&Ar(Es):Wi.button===0&&Es===ds&&Ss===Ha&&$a?.(vu,{...Wi,preventDefault:bs})}if(Wi.kind===gi){if(vu<0)return;Wi.button===0&&Es===ds&&Ss===Ha&&(Mu?.(vu,{...Wi,preventDefault:bs}),Bn.current||Kt(Wi))}Wi.kind==="cell"&&(Wi.button===0||Wi.button===1)&&Qs(Wi),Qd.current=void 0},[Ri,Ms,ys,kl,qr,Tf,va,vc,Yu,ms,Uf,Uu,Pa,Mf,Lu,pl,ks,Wd,Mu,$a,Ar,Kt]),go=i.useCallback(Wi=>{const Oa={...Wi,location:[Wi.location[0]-ys,Wi.location[1]]};fa?.(Oa),Ri!==void 0&&Wi.buttons===0&&(Fi(void 0),gl(void 0),Yr(void 0),Ff.current=!1),Yr(Ca=>Ff.current?[Wi.scrollEdge[0],0]:Wi.scrollEdge[0]===Ca?.[0]&&Wi.scrollEdge[1]===Ca[1]?Ca:Ri===void 0||(Wf.current?.location[0]??0)<ys?void 0:Wi.scrollEdge)},[Ri,fa,ys]),mo=i.useCallback((Wi,Oa)=>{ws?.(Wi-ys,Oa)},[ws,ys]),Bo=Ms?.current?.cell,Ba=i.useCallback((Wi,Oa,Ca,Es,Ss,ds)=>{fo.current=!1;let Ha=Bo;Ha!==void 0&&(Ha=[Ha[0]-ys,Ha[1]]);const bs=Ua===0?void 0:{x:0,y:Wi.y,width:Ua,height:Wi.height},Qs=[];bs!==void 0&&Qs.push(bs),Ac>0&&(Qs.push({x:Wi.x-ys,y:xo-Ac,width:Wi.width,height:Ac}),Ua>0&&Qs.push({x:0,y:xo-Ac,width:Ua,height:Ac}));const vu={x:Wi.x-ys,y:Wi.y,width:Wi.width,height:Hc&&Wi.y+Wi.height>=xo?Wi.height-1:Wi.height,tx:Ss,ty:ds,extras:{selected:Ha,freezeRegion:bs,freezeRegions:Qs}};Vr.current=vu,pa(vu),sl([Oa,Ca,Es]),bc?.(vu,vu.tx,vu.ty,vu.extras)},[Bo,ys,Hc,xo,Ua,Ac,pa,bc]),Bs=d(Kl,i.useCallback((Wi,Oa)=>{Kl?.(Wi-ys,Oa-ys),rs!=="none"&&du(v.I1.fromSingleSelection(Oa),void 0,!0)},[rs,Kl,ys,du])),Xs=i.useRef(!1),lu=i.useCallback(Wi=>{if(Wi.location[0]===0&&ys>0){Wi.preventDefault();return}ko?.({...Wi,location:[Wi.location[0]-ys,Wi.location[1]]}),Wi.defaultPrevented()||(Xs.current=!0),Fi(void 0)},[ko,ys]),Cu=i.useCallback(()=>{Xs.current=!1},[]),yu=i.useRef(),Ku=i.useCallback(Wi=>{if(!ki(Wi,yu.current)&&(yu.current=Wi,!(Wf?.current?.button!==void 0&&Wf.current.button>=1))){if(Wi.buttons!==0&&Ri!==void 0&&Wf.current?.location[0]===0&&Wi.location[0]===0&&ys===1&&Ns==="multi"&&Ri.previousSelection&&!Ri.previousSelection.rows.hasIndex(Wf.current.location[1])&&Ms.rows.hasIndex(Wf.current.location[1])){const Oa=Math.min(Wf.current.location[1],Wi.location[1]),Ca=Math.max(Wf.current.location[1],Wi.location[1])+1;hu(v.I1.fromSingleSelection([Oa,Ca]),void 0,!1)}if(Wi.buttons!==0&&Ri!==void 0&&Ms.current!==void 0&&!Xs.current&&!Ff.current&&(Ea==="rect"||Ea==="multi-rect")){const[Oa,Ca]=Ms.current.cell;let[Es,Ss]=Wi.location;if(Ss<0&&(Ss=Vr.current.y),Ri.fillHandle===!0&&Ri.previousSelection?.current!==void 0){const ds=Ri.previousSelection.current.range;Ss=Math.min(Ss,Hc?xo-1:xo);const Ha=xt(ds,Es,Ss,tf);gl(Ha)}else{if(Hc&&Ca===xo)return;if(Hc&&Ss===xo)if(Wi.kind===$i)Ss--;else return;Es=Math.max(Es,ys);const bs=Es-Oa,Qs=Ss-Ca,vu={x:bs>=0?Oa:Es,y:Qs>=0?Ca:Ss,width:Math.abs(bs)+1,height:Math.abs(Qs)+1};Gs({...Ms.current,range:vu},!0,!1,"drag")}}Du?.({...Wi,location:[Wi.location[0]-ys,Wi.location[1]]})}},[tf,Ri,ys,Ns,Ms,Ea,Du,hu,Hc,xo,Gs]),yl=i.useCallback(()=>{const Wi=yu.current;if(Wi===void 0)return;const[Oa,Ca]=Wi.scrollEdge;let[Es,Ss]=Wi.location;const ds=Vr.current;Oa===-1?Es=ds.extras?.freezeRegion?.x??ds.x:Oa===1&&(Es=ds.x+ds.width),Ca===-1?Ss=Math.max(0,ds.y):Ca===1&&(Ss=Math.min(xo-1,ds.y+ds.height)),Es=s(Es,0,Bl.length-1),Ss=s(Ss,0,xo-1),Ku({...Wi,location:[Es,Ss]})},[Bl.length,Ku,xo]);Fn(Tr,Gi,yl);const $u=i.useCallback(Wi=>{if(Ms.current===void 0)return;const[Oa,Ca]=Wi,[Es,Ss]=Ms.current.cell,ds=Ms.current.range;let Ha=ds.x,bs=ds.x+ds.width,Qs=ds.y,vu=ds.y+ds.height;if(Ca!==0)switch(Ca){case 2:{vu=xo,Qs=Ss,mf(0,vu,"vertical");break}case-2:{Qs=0,vu=Ss+1,mf(0,Qs,"vertical");break}case 1:{Qs<Ss?(Qs++,mf(0,Qs,"vertical")):(vu=Math.min(xo,vu+1),mf(0,vu,"vertical"));break}case-1:{vu>Ss+1?(vu--,mf(0,vu,"vertical")):(Qs=Math.max(0,Qs-1),mf(0,Qs,"vertical"));break}default:(0,l.xb)(Ca)}if(Oa!==0)if(Oa===2)bs=Bl.length,Ha=Es,mf(bs-1-ys,0,"horizontal");else if(Oa===-2)Ha=ys,bs=Es+1,mf(Ha-ys,0,"horizontal");else{let Nu=[];if(bf!==void 0){const zl=bf({x:Ha,y:Qs,width:bs-Ha-ys,height:vu-Qs},Pf.current.signal);typeof zl=="object"&&(Nu=Xo(zl))}if(Oa===1){let zl=!1;if(Ha<Es){if(Nu.length>0){const bl=f(Ha+1,Es+1).find(tl=>!Nu.includes(tl-ys));bl!==void 0&&(Ha=bl,zl=!0)}else Ha++,zl=!0;zl&&mf(Ha,0,"horizontal")}zl||(bs=Math.min(Bl.length,bs+1),mf(bs-1-ys,0,"horizontal"))}else if(Oa===-1){let zl=!1;if(bs>Es+1){if(Nu.length>0){const bl=f(bs-1,Es,-1).find(tl=>!Nu.includes(tl-ys));bl!==void 0&&(bs=bl,zl=!0)}else bs--,zl=!0;zl&&mf(bs-ys,0,"horizontal")}zl||(Ha=Math.max(ys,Ha-1),mf(Ha-ys,0,"horizontal"))}else(0,l.xb)(Oa)}Gs({cell:Ms.current.cell,range:{x:Ha,y:Qs,width:bs-Ha,height:vu-Qs}},!0,!1,"keyboard-select")},[bf,Ms,Bl.length,ys,xo,mf,Gs]),Cl=i.useCallback((Wi,Oa,Ca,Es)=>{const Ss=iu-(Ca?0:1);if(Wi=s(Wi,ys,xu.length-1+ys),Oa=s(Oa,0,Ss),Wi===Bo?.[0]&&Oa===Bo?.[1])return!1;if(Es&&Ms.current!==void 0){const ds=[...Ms.current.rangeStack];(Ms.current.range.width>1||Ms.current.range.height>1)&&ds.push(Ms.current.range),Tf({...Ms,current:{cell:[Wi,Oa],range:{x:Wi,y:Oa,width:1,height:1},rangeStack:ds}},!0)}else Gs({cell:[Wi,Oa],range:{x:Wi,y:Oa,width:1,height:1}},!0,!1,"keyboard-nav");return yo.current!==void 0&&yo.current[0]===Wi&&yo.current[1]===Oa&&(yo.current=void 0),mf(Wi-ys,Oa),!0},[iu,ys,xu.length,Bo,Ms,mf,Tf,Gs]),Tc=i.useCallback((Wi,Oa)=>{_r?.cell!==void 0&&Wi!==void 0&&(0,v.Bc)(Wi)&&(Uu([{location:_r.cell,value:Wi}]),window.requestAnimationFrame(()=>{Vs.current?.damage([{cell:_r.cell}])})),Ou(!0),xr(void 0);const[Ca,Es]=Oa;if(Ms.current!==void 0&&(Ca!==0||Es!==0)){const Ss=Ms.current.cell[1]===iu-1&&Wi!==void 0;Cl(s(Ms.current.cell[0]+Ca,0,Bl.length-1),s(Ms.current.cell[1]+Es,0,iu-1),Ss,!1)}Xa?.(Wi,Oa)},[_r?.cell,Ou,Ms,Xa,Uu,iu,Cl,Bl.length]),xl=i.useMemo(()=>`gdg-overlay-${co++}`,[]),Dl=i.useCallback(Wi=>{Ou();const Oa=[];for(let Ca=Wi.x;Ca<Wi.x+Wi.width;Ca++)for(let Es=Wi.y;Es<Wi.y+Wi.height;Es++){const Ss=xs([Ca-ys,Es]);if(!Ss.allowOverlay&&Ss.kind!==v.dd.Boolean)continue;let ds;if(Ss.kind===v.dd.Custom){const Ha=Yu(Ss),bs=Ha?.provideEditor?.(Ss);Ha?.onDelete!==void 0?ds=Ha.onDelete(Ss):(0,v.zT)(bs)&&(ds=bs?.deletedValue?.(Ss))}else((0,v.Bc)(Ss)&&Ss.allowOverlay||Ss.kind===v.dd.Boolean)&&(ds=Yu(Ss)?.onDelete?.(Ss));ds!==void 0&&!(0,v.pg)(ds)&&(0,v.Bc)(ds)&&Oa.push({location:[Ca,Es],value:ds})}Uu(Oa),Vs.current?.damage(Oa.map(Ca=>({cell:Ca.location})))},[Ou,xs,Yu,Uu,ys]),ec=_r!==void 0,Oc=i.useCallback(Wi=>{const Oa=()=>{Wi.stopPropagation(),Wi.preventDefault()},Ca={didMatch:!1},{bounds:Es}=Wi,Ss=Ms.columns,ds=Ms.rows,Ha=dc;if(!ec&&Er(Ha.clear,Wi,Ca))Tf(Xn,!1),zu?.();else if(!ec&&Er(Ha.selectAll,Wi,Ca))Tf({columns:v.I1.empty(),rows:v.I1.empty(),current:{cell:Ms.current?.cell??[ys,0],range:{x:ys,y:0,width:Ma.length,height:xo},rangeStack:[]}},!1);else if(Er(Ha.search,Wi,Ca))oi?.current?.focus({preventScroll:!0}),lh(!0);else if(Er(Ha.delete,Wi,Ca)){const tl=qa?.(Ms)??!0;if(tl!==!1){const lc=tl===!0?Ms:tl;if(lc.current!==void 0){Dl(lc.current.range);for(const qc of lc.current.rangeStack)Dl(qc)}for(const qc of lc.rows)Dl({x:ys,y:qc,width:Ma.length,height:1});for(const qc of lc.columns)Dl({x:qc,y:0,width:1,height:xo})}}if(Ca.didMatch)return Oa(),!0;if(Ms.current===void 0)return!1;let[bs,Qs]=Ms.current.cell,vu=!1,Nu=!1;Er(Ha.scrollToSelectedCell,Wi,Ca)?Ad.current(bs-ys,Qs):rs!=="none"&&Er(Ha.selectColumn,Wi,Ca)?Ss.hasIndex(bs)?du(Ss.remove(bs),void 0,!0):rs==="single"?du(v.I1.fromSingleSelection(bs),void 0,!0):du(void 0,bs,!0):Ns!=="none"&&Er(Ha.selectRow,Wi,Ca)?ds.hasIndex(Qs)?hu(ds.remove(Qs),void 0,!0):Ns==="single"?hu(v.I1.fromSingleSelection(Qs),void 0,!0):hu(void 0,Qs,!0):!ec&&Es!==void 0&&Er(Ha.activateCell,Wi,Ca)?Qs===xo&&Hc?window.setTimeout(()=>{const tl=Dc(bs);$f(tl??bs)},0):(Pa?.([bs-ys,Qs]),Mf(Es,!0)):Ms.current.range.height>1&&Er(Ha.downFill,Wi,Ca)?Co():Ms.current.range.width>1&&Er(Ha.rightFill,Wi,Ca)?qi():Er(Ha.goToNextPage,Wi,Ca)?Qs+=Math.max(1,Vr.current.height-4):Er(Ha.goToPreviousPage,Wi,Ca)?Qs-=Math.max(1,Vr.current.height-4):Er(Ha.goToFirstCell,Wi,Ca)?(xr(void 0),Qs=0,bs=0):Er(Ha.goToLastCell,Wi,Ca)?(xr(void 0),Qs=Number.MAX_SAFE_INTEGER,bs=Number.MAX_SAFE_INTEGER):Er(Ha.selectToFirstCell,Wi,Ca)?(xr(void 0),$u([-2,-2])):Er(Ha.selectToLastCell,Wi,Ca)?(xr(void 0),$u([2,2])):ec?(Er(Ha.closeOverlay,Wi,Ca)&&xr(void 0),Er(Ha.acceptOverlayDown,Wi,Ca)&&(xr(void 0),Qs++),Er(Ha.acceptOverlayUp,Wi,Ca)&&(xr(void 0),Qs--),Er(Ha.acceptOverlayLeft,Wi,Ca)&&(xr(void 0),bs--),Er(Ha.acceptOverlayRight,Wi,Ca)&&(xr(void 0),bs++)):(Er(Ha.goDownCell,Wi,Ca)?Qs+=1:Er(Ha.goUpCell,Wi,Ca)?Qs-=1:Er(Ha.goRightCell,Wi,Ca)?bs+=1:Er(Ha.goLeftCell,Wi,Ca)?bs-=1:Er(Ha.goDownCellRetainSelection,Wi,Ca)?(Qs+=1,vu=!0):Er(Ha.goUpCellRetainSelection,Wi,Ca)?(Qs-=1,vu=!0):Er(Ha.goRightCellRetainSelection,Wi,Ca)?(bs+=1,vu=!0):Er(Ha.goLeftCellRetainSelection,Wi,Ca)?(bs-=1,vu=!0):Er(Ha.goToLastRow,Wi,Ca)?Qs=xo-1:Er(Ha.goToFirstRow,Wi,Ca)?Qs=Number.MIN_SAFE_INTEGER:Er(Ha.goToLastColumn,Wi,Ca)?bs=Number.MAX_SAFE_INTEGER:Er(Ha.goToFirstColumn,Wi,Ca)?bs=Number.MIN_SAFE_INTEGER:(Ea==="rect"||Ea==="multi-rect")&&(Er(Ha.selectGrowDown,Wi,Ca)?$u([0,1]):Er(Ha.selectGrowUp,Wi,Ca)?$u([0,-1]):Er(Ha.selectGrowRight,Wi,Ca)?$u([1,0]):Er(Ha.selectGrowLeft,Wi,Ca)?$u([-1,0]):Er(Ha.selectToLastRow,Wi,Ca)?$u([0,2]):Er(Ha.selectToFirstRow,Wi,Ca)?$u([0,-2]):Er(Ha.selectToLastColumn,Wi,Ca)?$u([2,0]):Er(Ha.selectToFirstColumn,Wi,Ca)&&$u([-2,0])),Nu=Ca.didMatch);const zl=Cl(bs,Qs,!1,vu),bl=Ca.didMatch;return bl&&(zl||!Nu||pf)&&Oa(),bl},[ec,Ms,dc,rs,Ns,Ea,ys,xo,Cl,Tf,zu,Ma.length,qa,pf,Dl,du,hu,Hc,Dc,$f,Pa,Mf,Co,qi,$u]),zf=i.useCallback(Wi=>{let Oa=!1;if(_l!==void 0&&_l({...Wi,cancel:()=>{Oa=!0}}),Oa||Oc(Wi)||Ms.current===void 0)return;const[Ca,Es]=Ms.current.cell,Ss=Vr.current;if(Ql&&!Wi.metaKey&&!Wi.ctrlKey&&Ms.current!==void 0&&Wi.key.length===1&&/[ -~]/g.test(Wi.key)&&Wi.bounds!==void 0&&(0,v.uQ)(xs([Ca-ys,Math.max(0,Math.min(Es,xo-1))]))){if((!Hc||Es!==xo)&&(Ss.y>Es||Es>Ss.y+Ss.height||Ss.x>Ca||Ca>Ss.x+Ss.width))return;Mf(Wi.bounds,!0,Wi.key),Wi.stopPropagation(),Wi.preventDefault()}},[Ql,_l,Oc,Ms,xs,ys,xo,Hc,Mf]),Sd=i.useCallback((Wi,Oa)=>{const Ca=Wi.location[0]-ys;if(Wi.kind==="header"&&pl?.(Ca,{...Wi,preventDefault:Oa}),Wi.kind===gi){if(Ca<0)return;ks?.(Ca,{...Wi,preventDefault:Oa})}if(Wi.kind==="cell"){const[Es,Ss]=Wi.location;Lu?.([Ca,Ss],{...Wi,preventDefault:Oa}),pe(Ms,Wi.location)||Cl(Es,Ss,!1,!1)}},[Ms,Lu,ks,pl,ys,Cl]),Bf=i.useCallback(async Wi=>{if(!dc.paste)return;function Oa(Ha,bs,Qs,vu){const Nu=typeof Qs=="object"?Qs?.join(` `)??"":Qs?.toString()??"";if(!(0,v.pg)(Ha)&&(0,v.uQ)(Ha)&&Ha.readonly!==!0){const zl=wa?.(Nu,Ha);if(zl!==void 0&&(0,v.Bc)(zl))return{location:bs,value:zl};const bl=Yu(Ha);if(bl===void 0)return;if(bl.kind===v.dd.Custom){(0,l.vA)(Ha.kind===v.dd.Custom);const tl=bl.onPaste?.(Nu,Ha.data);return tl===void 0?void 0:{location:bs,value:{...Ha,data:tl}}}else{const tl=bl.onPaste?.(Nu,Ha,{formatted:vu,formattedString:typeof vu=="string"?vu:vu?.join(` `),rawValue:Qs});return tl===void 0?void 0:((0,l.vA)(tl.kind===Ha.kind),{location:bs,value:tl})}}}const Ca=Ms.columns,Es=Ms.rows,Ss=Gi.current?.contains(document.activeElement)===!0||ti.current?.contains(document.activeElement)===!0;let ds;if(Ms.current!==void 0?ds=[Ms.current.range.x,Ms.current.range.y]:Ca.length===1?ds=[Ca.first()??0,0]:Es.length===1&&(ds=[ys,Es.first()??0]),Ss&&ds!==void 0){let Ha,bs;const Qs="text/plain",vu="text/html";if(navigator.clipboard.read!==void 0){const tl=await navigator.clipboard.read();for(const lc of tl){if(lc.types.includes(vu)){const df=await(await lc.getType(vu)).text(),uf=Yn(df);if(uf!==void 0){Ha=uf;break}}lc.types.includes(Qs)&&(bs=await(await lc.getType(Qs)).text())}}else if(navigator.clipboard.readText!==void 0)bs=await navigator.clipboard.readText();else if(Wi!==void 0&&Wi?.clipboardData!==null){if(Wi.clipboardData.types.includes(vu)){const tl=Wi.clipboardData.getData(vu);Ha=Yn(tl)}Ha===void 0&&Wi.clipboardData.types.includes(Qs)&&(bs=Wi.clipboardData.getData(Qs))}else return;const[Nu,zl]=ds,bl=[];do{if(Zo===void 0){const tl=vc(ds),lc=bs??Ha?.map(df=>df.map(uf=>uf.rawValue).join(" ")).join(" ")??"",qc=Oa(tl,ds,lc,void 0);qc!==void 0&&bl.push(qc);break}if(Ha===void 0){if(bs===void 0)return;Ha=G(bs)}if(Zo===!1||typeof Zo=="function"&&Zo?.([ds[0]-ys,ds[1]],Ha.map(tl=>tl.map(lc=>lc.rawValue?.toString()??"")))!==!0)return;for(const[tl,lc]of Ha.entries()){if(tl+zl>=xo)break;for(const[qc,df]of lc.entries()){const uf=[qc+Nu,tl+zl],[Jd,dh]=uf;if(Jd>=Bl.length||dh>=iu)continue;const Ph=vc(uf),th=Oa(Ph,uf,df.rawValue,df.formatted);th!==void 0&&bl.push(th)}}}while(!1);Uu(bl),Vs.current?.damage(bl.map(tl=>({cell:tl.location})))}},[wa,Yu,vc,Ms,dc.paste,Bl.length,Uu,iu,Zo,ys,xo]);h("paste",Bf,Do,!1,!0);const Yf=i.useCallback(async(Wi,Oa)=>{if(!dc.copy)return;const Ca=Oa===!0||Gi.current?.contains(document.activeElement)===!0||ti.current?.contains(document.activeElement)===!0,Es=Ms.columns,Ss=Ms.rows,ds=(Ha,bs)=>{if(!Fa)B(Ha,bs,Wi);else{const Qs=bs.map(vu=>({kind:v.dd.Text,data:Ma[vu].title,displayData:Ma[vu].title,allowOverlay:!1}));B([Qs,...Ha],bs,Wi)}};if(Ca&&bf!==void 0){if(Ms.current!==void 0){let Ha=bf(Ms.current.range,Pf.current.signal);typeof Ha!="object"&&(Ha=await Ha()),ds(Ha,f(Ms.current.range.x-ys,Ms.current.range.x+Ms.current.range.width-ys))}else if(Ss!==void 0&&Ss.length>0){const bs=[...Ss].map(Qs=>{const vu=bf({x:ys,y:Qs,width:Ma.length,height:1},Pf.current.signal);return typeof vu=="object"?vu[0]:vu().then(Nu=>Nu[0])});if(bs.some(Qs=>Qs instanceof Promise)){const Qs=await Promise.all(bs);ds(Qs,f(Ma.length))}else ds(bs,f(Ma.length))}else if(Es.length>0){const Ha=[],bs=[];for(const Qs of Es){let vu=bf({x:Qs,y:0,width:1,height:xo},Pf.current.signal);typeof vu!="object"&&(vu=await vu()),Ha.push(vu),bs.push(Qs-ys)}if(Ha.length===1)ds(Ha[0],bs);else{const Qs=Ha.reduce((vu,Nu)=>vu.map((zl,bl)=>[...zl,...Nu[bl]]));ds(Qs,bs)}}}},[Ma,bf,Ms,dc.copy,ys,xo,Fa]);h("copy",Yf,Do,!1,!1);const Lc=i.useCallback(async Wi=>{if(!(!dc.cut||!(Gi.current?.contains(document.activeElement)===!0||ti.current?.contains(document.activeElement)===!0))&&(await Yf(Wi),Ms.current!==void 0)){let Ca={current:{cell:Ms.current.cell,range:Ms.current.range,rangeStack:[]},rows:v.I1.empty(),columns:v.I1.empty()};const Es=qa?.(Ca);if(Es===!1||(Ca=Es===!0?Ca:Es,Ca.current===void 0))return;Dl(Ca.current.range)}},[Dl,Ms,dc.cut,Yf,qa]);h("cut",Lc,Do,!1,!1);const dd=i.useCallback((Wi,Oa)=>{if(bu!==void 0){ys!==0&&(Wi=Wi.map(Ss=>[Ss[0]-ys,Ss[1]])),bu(Wi,Oa);return}if(Wi.length===0||Oa===-1)return;const[Ca,Es]=Wi[Oa];yo.current!==void 0&&yo.current[0]===Ca&&yo.current[1]===Es||(yo.current=[Ca,Es],Cl(Ca,Es,!1,!1))},[bu,ys,Cl]),[af,Of]=Gl?.current?.cell??[],Ad=i.useRef(mf);Ad.current=mf,i.useLayoutEffect(()=>{!fo.current&&af!==void 0&&Of!==void 0&&(af!==Gf.current?.current?.cell[0]||Of!==Gf.current?.current?.cell[1])&&Ad.current(af,Of),fo.current=!1},[af,Of]);const hd=Ms.current!==void 0&&(Ms.current.cell[0]>=Bl.length||Ms.current.cell[1]>=iu);i.useLayoutEffect(()=>{hd&&Tf(Xn,!1)},[hd,Tf]);const ed=i.useMemo(()=>Hc===!0&&Zu?.tint===!0?v.I1.fromSingleSelection(iu-1):v.I1.empty(),[iu,Hc,Zu?.tint]),Fd=i.useCallback(Wi=>typeof vl=="boolean"?vl:vl?.(Wi-ys)??!0,[ys,vl]),ku=i.useMemo(()=>{if(Ze===void 0||ti.current===null)return null;const{bounds:Wi,group:Oa}=Ze,Ca=ti.current.getBoundingClientRect();return i.createElement(Ie,{bounds:Wi,group:Oa,canvasBounds:Ca,onClose:()=>lt(void 0),onFinish:Es=>{lt(void 0),su?.(Oa,Es)}})},[su,Ze]),el=Math.min(Bl.length,Ua+(Nf?1:0));i.useImperativeHandle(kt,()=>({appendRow:(Wi,Oa)=>$f(Wi+ys,Oa),updateCells:Wi=>(ys!==0&&(Wi=Wi.map(Oa=>({cell:[Oa.cell[0]+ys,Oa.cell[1]]}))),Vs.current?.damage(Wi)),getBounds:(Wi,Oa)=>{if(!(ti?.current===null||Gi?.current===null)){if(Wi===void 0&&Oa===void 0){const Ca=ti.current.getBoundingClientRect(),Es=Ca.width/Gi.current.clientWidth;return{x:Ca.x-Gi.current.scrollLeft*Es,y:Ca.y-Gi.current.scrollTop*Es,width:Gi.current.scrollWidth*Es,height:Gi.current.scrollHeight*Es}}return Vs.current?.getBounds((Wi??0)+ys,Oa)}},focus:()=>Vs.current?.focus(),emit:async Wi=>{switch(Wi){case"delete":zf({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-right":zf({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-down":zf({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"copy":await Yf(void 0,!0);break;case"paste":await Bf();break}},scrollTo:mf,remeasureColumns:Wi=>{for(const Oa of Wi)Ar(Oa+ys)}}),[$f,Ar,Yf,zf,Bf,ys,mf]);const[Ec,hc]=Bo??[],uc=i.useCallback(Wi=>{const[Oa,Ca]=Wi;if(Ca===-1){rs!=="none"&&(du(v.I1.fromSingleSelection(Oa),void 0,!1),Ou());return}Ec===Oa&&hc===Ca||(Gs({cell:Wi,range:{x:Oa,y:Ca,width:1,height:1}},!0,!1,"keyboard-nav"),mf(Oa,Ca))},[rs,Ou,mf,Ec,hc,Gs,du]),[td,sf]=i.useState(!1),pd=i.useRef(p(Wi=>{sf(Wi)},5)),ch=i.useCallback(()=>{pd.current(!0),Ms.current===void 0&&Ms.columns.length===0&&Ms.rows.length===0&&Ri===void 0&&Gs({cell:[ys,Ru],range:{x:ys,y:Ru,width:1,height:1}},!0,!1,"keyboard-select")},[Ru,Ms,Ri,ys,Gs]),fh=i.useCallback(()=>{pd.current(!1)},[]),[Cf,op]=i.useMemo(()=>{let Wi;const Oa=Zl?.scrollbarWidthOverride??N(),Ca=xo+(Hc?1:0);if(typeof cf=="number")Wi=wc+Ca*cf;else{let Ss=0;const ds=Math.min(Ca,10);for(let Ha=0;Ha<ds;Ha++)Ss+=cf(Ha);Ss=Math.floor(Ss/ds),Wi=wc+Ca*Ss}Wi+=Oa;const Es=Bl.reduce((Ss,ds)=>ds.width+Ss,0)+Oa;return[`${Math.min(1e5,Es)}px`,`${Math.min(1e5,Wi)}px`]},[Bl,Zl?.scrollbarWidthOverride,cf,xo,Hc,wc]),np=i.useMemo(()=>(0,Zn.zc)(Ys),[Ys]);return i.createElement(Zn.Dx.Provider,{value:Ys},i.createElement(ut,{style:np,className:ju,inWidth:Ia??Cf,inHeight:za??op},i.createElement(Di,{fillHandle:_c,drawFocusRing:Xc,experimental:Zl,fixedShadowX:qd,fixedShadowY:Kd,getRowThemeOverride:Ji,headerIcons:jf,imageWindowLoader:Ml,initialSize:jd,isDraggable:Jf,onDragLeave:ql,onRowMoved:sc,overscrollX:bh,overscrollY:Zf,preventDiagonalScrolling:nf,rightElement:Dd,rightElementProps:yd,smoothScrollX:Lf,smoothScrollY:Cd,className:ju,enableGroups:Ol,onCanvasFocused:ch,onCanvasBlur:fh,canvasRef:ti,onContextMenu:Sd,theme:Ys,cellXOffset:cu,cellYOffset:Ru,accessibilityHeight:Po.height,onDragEnd:Cu,columns:Bl,nonGrowWidth:of,drawHeader:qf,onColumnProposeMove:ns,drawCell:kd,disabledRows:ed,freezeColumns:el,lockColumns:ys,firstColAccessible:ys===0,getCellContent:vc,minColumnWidth:fc,maxColumnWidth:ic,searchInputRef:oi,showSearch:Xd,onSearchClose:Ud,highlightRegions:Ps,getCellsForSelection:bf,getGroupDetails:ff,headerHeight:kf,isFocused:td,groupHeaderHeight:Ol?uh:0,freezeTrailingRows:Ac+(Hc&&Zu?.sticky===!0?1:0),hasAppendRow:Hc,onColumnResize:fd,onColumnResizeEnd:eh,onColumnResizeStart:Rf,onCellFocused:uc,onColumnMoved:Bs,onDragStart:lu,onHeaderMenuClick:mo,onItemHovered:Ku,isFilling:Ri?.fillHandle===!0,onMouseMove:go,onKeyDown:zf,onKeyUp:Hs,onMouseDown:nh,onMouseUp:_o,onDragOverCell:Vu,onDrop:ad,onSearchResultsChanged:dd,onVisibleRegionChanged:Ba,clientSize:Pu,rowHeight:cf,searchResults:Ul,searchValue:il,onSearchValueChange:Wl,rows:iu,scrollRef:Gi,selection:Ms,translateX:Po.tx,translateY:Po.ty,verticalBorder:Fd,gridRef:Vs,getCellRenderer:Yu}),ku,_r!==void 0&&i.createElement(i.Suspense,{fallback:null},i.createElement(zi,{..._r,validateCell:rf,bloom:Za,id:xl,getCellRenderer:Yu,className:Zl?.isSubGrid===!0?"click-outside-ignore":void 0,provideEditor:Fl,imageEditorOverride:po,onFinishEditing:Tc,markdownDivCreateNode:Uo,isOutsideClick:ud}))))},mr=i.forwardRef(fr),yr=20,Rr={getAccessibilityString:Ne=>Ne.data?.toString()??"false",kind:v.dd.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:Ne=>ai(Ne,Ne.cell.data,(0,v.dB)(Ne.cell),Ne.cell.maxSize??yr),onDelete:Ne=>({...Ne,data:!1}),onClick:Ne=>{const{cell:kt,posX:Rn,posY:jn,bounds:_r,theme:xr}=Ne,{width:oi,height:ti,x:Ri,y:Fi}=_r,Gi=kt.maxSize??yr,yo=Math.floor(_r.y+ti/2),Do=O(Gi,ti,xr.cellVerticalPadding),po=S(kt.contentAlign??"center",Ri,oi,xr.cellHorizontalPadding,Do),Ji=w(po,yo,Do),Uo=R(Ri+Rn,Fi+jn,Ji);if((0,v.dB)(kt)&&Uo)return{...kt,data:Pe(kt.data)}},onPaste:(Ne,kt)=>{let Rn=v.WE;return Ne.toLowerCase()==="true"?Rn=!0:Ne.toLowerCase()==="false"?Rn=!1:Ne.toLowerCase()==="indeterminate"&&(Rn=v.wm),Rn===kt.data?void 0:{...kt,data:Rn}}};function ai(Ne,kt,Rn,jn){if(!Rn&&kt===v.WE)return;const{ctx:_r,hoverAmount:xr,theme:oi,rect:ti,highlighted:Ri,hoverX:Fi,hoverY:Gi,cell:{contentAlign:yo}}=Ne,{x:Do,y:po,width:Ji,height:Uo}=ti,Ia=.35;let za=Rn?1-Ia+Ia*xr:.4;kt===v.WE&&(za*=xr),za!==0&&(_r.globalAlpha=za,yi(_r,oi,kt,Do,po,Ji,Uo,Ri,Fi,Gi,jn,yo),_r.globalAlpha=1)}const jt=(0,Ro.I)("div")({name:"BubblesOverlayEditorStyle",class:"gdg-b1ygi5by",propsAsIs:!1}),nr=Ne=>{const{bubbles:kt}=Ne;return i.createElement(jt,null,kt.map((Rn,jn)=>i.createElement("div",{key:jn,className:"boe-bubble"},Rn)),i.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},Ir={getAccessibilityString:Ne=>me(Ne.data),kind:v.dd.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(Ne,kt,Rn)=>kt.data.reduce((jn,_r)=>Ne.measureText(_r).width+jn+20,0)+2*Rn.cellHorizontalPadding-4,draw:Ne=>Ti(Ne,Ne.cell.data),provideEditor:()=>Ne=>{const{value:kt}=Ne;return i.createElement(nr,{bubbles:kt.data})},onPaste:()=>{}},fi=4;function Ti(Ne,kt){const{rect:Rn,theme:jn,ctx:_r,highlighted:xr}=Ne,{x:oi,y:ti,width:Ri,height:Fi}=Rn,Gi=20,yo=8,Do=fi;let po=oi+jn.cellHorizontalPadding;const Ji=[];for(const Uo of kt){if(po>oi+Ri)break;const Ia=Ut(Uo,_r,jn.baseFontFull).width;Ji.push({x:po,width:Ia}),po+=Ia+yo*2+Do}_r.beginPath();for(const Uo of Ji)We(_r,Uo.x,ti+(Fi-Gi)/2,Uo.width+yo*2,Gi,jn.roundingRadius??Gi/2);_r.fillStyle=xr?jn.bgBubbleSelected:jn.bgBubble,_r.fill();for(const[Uo,Ia]of Ji.entries())_r.beginPath(),_r.fillStyle=jn.textBubble,_r.fillText(kt[Uo],Ia.x+yo,ti+Fi/2+it(_r,jn))}const Oe=(0,Ro.I)("div")({name:"DrilldownOverlayEditorStyle",class:"gdg-d4zsq0x",propsAsIs:!1}),Qn=Ne=>{const{drilldowns:kt}=Ne;return i.createElement(Oe,null,kt.map((Rn,jn)=>i.createElement("div",{key:jn,className:"doe-bubble"},Rn.img!==void 0&&i.createElement("img",{src:Rn.img}),i.createElement("div",null,Rn.text))))},Sr={getAccessibilityString:Ne=>me(Ne.data.map(kt=>kt.text)),kind:v.dd.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(Ne,kt,Rn)=>kt.data.reduce((jn,_r)=>Ne.measureText(_r.text).width+jn+20+(_r.img!==void 0?18:0),0)+2*Rn.cellHorizontalPadding-4,draw:Ne=>Ot(Ne,Ne.cell.data),provideEditor:()=>Ne=>{const{value:kt}=Ne;return i.createElement(Qn,{drilldowns:kt.data})},onPaste:()=>{}},hr=4,kr={};function Ve(Ne,kt,Rn,jn){const _r=Math.ceil(window.devicePixelRatio),xr=5,oi=Rn-xr*2,ti=4,Ri=Rn*_r,Fi=jn+xr,Gi=jn*3,yo=(Gi+xr*2)*_r,Do=`${Ne},${kt},${_r},${Rn}`;if(kr[Do]!==void 0)return{el:kr[Do],height:Ri,width:yo,middleWidth:ti*_r,sideWidth:Fi*_r,padding:xr*_r,dpr:_r};const po=document.createElement("canvas"),Ji=po.getContext("2d");return Ji===null?null:(po.width=yo,po.height=Ri,Ji.scale(_r,_r),kr[Do]=po,Ji.beginPath(),We(Ji,xr,xr,Gi,oi,jn),Ji.shadowColor="rgba(24, 25, 34, 0.4)",Ji.shadowBlur=1,Ji.fillStyle=Ne,Ji.fill(),Ji.shadowColor="rgba(24, 25, 34, 0.3)",Ji.shadowOffsetY=1,Ji.shadowBlur=5,Ji.fillStyle=Ne,Ji.fill(),Ji.shadowOffsetY=0,Ji.shadowBlur=0,Ji.shadowBlur=0,Ji.beginPath(),We(Ji,xr+.5,xr+.5,Gi,oi,jn),Ji.strokeStyle=kt,Ji.lineWidth=1,Ji.stroke(),{el:po,height:Ri,width:yo,sideWidth:Fi*_r,middleWidth:jn*_r,padding:xr*_r,dpr:_r})}function Ot(Ne,kt){const{rect:Rn,theme:jn,ctx:_r,imageLoader:xr,col:oi,row:ti}=Ne,{x:Ri,width:Fi}=Rn,Gi=jn.baseFontFull,yo=He(_r,Gi),Do=Math.min(Rn.height,Math.max(16,Math.ceil(yo*jn.lineHeight)*2)),po=Math.floor(Rn.y+(Rn.height-Do)/2),Ji=Do-10,Uo=8,Ia=hr;let za=Ri+jn.cellHorizontalPadding;const Ma=jn.roundingRadius??6,xo=Ve(jn.bgCell,jn.drilldownBorder,Do,Ma),xs=[];for(const va of kt){if(za>Ri+Fi)break;const Na=Ut(va.text,_r,Gi).width;let Xa=0;va.img!==void 0&&xr.loadOrGetImage(va.img,oi,ti)!==void 0&&(Xa=Ji-8+4);const wa=Na+Xa+Uo*2;xs.push({x:za,width:wa}),za+=wa+Ia}if(xo!==null){const{el:va,height:Pa,middleWidth:Na,sideWidth:Xa,width:wa,dpr:Ga,padding:vs}=xo,Za=Xa/Ga,$a=vs/Ga;for(const ns of xs){const uu=Math.floor(ns.x),Mu=Math.floor(ns.width),Lu=Mu-(Za-$a)*2;_r.imageSmoothingEnabled=!1,_r.drawImage(va,0,0,Xa,Pa,uu-$a,po,Za,Do),Lu>0&&_r.drawImage(va,Xa,0,Na,Pa,uu+(Za-$a),po,Lu,Do),_r.drawImage(va,wa-Xa,0,Xa,Pa,uu+Mu-(Za-$a),po,Za,Do),_r.imageSmoothingEnabled=!0}}_r.beginPath();for(const[va,Pa]of xs.entries()){const Na=kt[va];let Xa=Pa.x+Uo;if(Na.img!==void 0){const wa=xr.loadOrGetImage(Na.img,oi,ti);if(wa!==void 0){const Ga=Ji-8;let vs=0,Za=0,$a=wa.width,ns=wa.height;$a>ns?(vs+=($a-ns)/2,$a=ns):ns>$a&&(Za+=(ns-$a)/2,ns=$a),_r.beginPath(),We(_r,Xa,po+Do/2-Ga/2,Ga,Ga,jn.roundingRadius??3),_r.save(),_r.clip(),_r.drawImage(wa,vs,Za,$a,ns,Xa,po+Do/2-Ga/2,Ga,Ga),_r.restore(),Xa+=Ga+4}}_r.beginPath(),_r.fillStyle=jn.textBubble,_r.fillText(Na.text,Xa,po+Do/2+it(_r,jn))}}const wn=(0,Ro.I)("div")({name:"ImageOverlayEditorStyle",class:"gdg-i2iowwq",propsAsIs:!1});var Wt=t(27428);const Yt=Ne=>{const{urls:kt,canWrite:Rn,onEditClick:jn,renderImage:_r}=Ne,xr=kt.filter(ti=>ti!=="");if(xr.length===0)return null;const oi=xr.length>1;return i.createElement(wn,{"data-testid":"GDG-default-image-overlay-editor"},i.createElement(Wt.FN,{showArrows:oi,showThumbs:!1,swipeable:oi,emulateTouch:oi,infiniteLoop:oi},xr.map(ti=>{const Ri=_r?.(ti)??i.createElement("img",{draggable:!1,src:ti});return i.createElement("div",{className:"gdg-centering-container",key:ti},Ri)})),Rn&&jn&&i.createElement("button",{className:"gdg-edit-icon",onClick:jn},i.createElement(M,null)))},zn={getAccessibilityString:Ne=>Ne.data.join(", "),kind:v.dd.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:Ne=>si(Ne,Ne.cell.displayData??Ne.cell.data,Ne.cell.rounding??Ne.theme.roundingRadius??4,Ne.cell.contentAlign),measure:(Ne,kt)=>kt.data.length*50,onDelete:Ne=>({...Ne,data:[]}),provideEditor:()=>Ne=>{const{value:kt,onFinishedEditing:Rn,imageEditorOverride:jn}=Ne,_r=jn??Yt;return i.createElement(_r,{urls:kt.data,canWrite:kt.readonly!==!1,onCancel:Rn,onChange:xr=>{Rn({...kt,data:[xr]})}})},onPaste:(Ne,kt)=>{Ne=Ne.trim();const jn=Ne.split(",").map(_r=>{try{return new URL(_r),_r}catch{return}}).filter(_r=>_r!==void 0);if(!(jn.length===kt.data.length&&jn.every((_r,xr)=>_r===kt.data[xr])))return{...kt,data:jn}}},Nr=4;function si(Ne,kt,Rn,jn){const{rect:_r,col:xr,row:oi,theme:ti,ctx:Ri,imageLoader:Fi}=Ne,{x:Gi,y:yo,height:Do,width:po}=_r,Ji=Do-ti.cellVerticalPadding*2,Uo=[];let Ia=0;for(let Ma=0;Ma<kt.length;Ma++){const xo=kt[Ma];if(xo.length===0)continue;const xs=Fi.loadOrGetImage(xo,xr,oi);if(xs!==void 0){Uo[Ma]=xs;const va=xs.width*(Ji/xs.height);Ia+=va+Nr}}if(Ia===0)return;Ia-=Nr;let za=Gi+ti.cellHorizontalPadding;jn==="right"?za=Math.floor(Gi+po-ti.cellHorizontalPadding-Ia):jn==="center"&&(za=Math.floor(Gi+po/2-Ia/2));for(const Ma of Uo){if(Ma===void 0)continue;const xo=Ma.width*(Ji/Ma.height);Rn>0&&(Ri.beginPath(),We(Ri,za,yo+ti.cellVerticalPadding,xo,Ji,Rn),Ri.save(),Ri.clip()),Ri.drawImage(Ma,za,yo+ti.cellVerticalPadding,xo,Ji),Rn>0&&Ri.restore(),za+=xo+Nr}}function Ki(Ne,kt){let Rn=Ne*49632+kt*325176;return Rn^=Rn<<13,Rn^=Rn>>17,Rn^=Rn<<5,Rn/4294967295*2}const Bi={getAccessibilityString:()=>"",kind:v.dd.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:Ne=>{const{cell:kt,col:Rn,row:jn,ctx:_r,rect:xr,theme:oi}=Ne;if(kt.skeletonWidth===void 0||kt.skeletonWidth===0)return;let ti=kt.skeletonWidth;kt.skeletonWidthVariability!==void 0&&kt.skeletonWidthVariability>0&&(ti+=Math.round(Ki(Rn,jn)*kt.skeletonWidthVariability));const Ri=oi.cellHorizontalPadding,Fi=kt.skeletonHeight??Math.min(18,xr.height-2*oi.cellVerticalPadding);We(_r,xr.x+Ri,xr.y+(xr.height-Fi)/2,ti,Fi,oi.roundingRadius??3),_r.fillStyle=(0,at.fu)(oi.textDark,.1),_r.fill()},onPaste:()=>{}};var Xi=t(60023);const vo=(0,Ro.I)("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});class ea extends i.PureComponent{targetElement=null;renderMarkdownIntoDiv(){const{targetElement:kt,props:Rn}=this;if(kt===null)return;const{contents:jn,createNode:_r}=Rn,xr=(0,Xi.xI)(jn),oi=document.createRange();oi.selectNodeContents(kt),oi.deleteContents();let ti=_r?.(xr);if(ti===void 0){const Fi=document.createElement("template");Fi.innerHTML=xr,ti=Fi.content}kt.append(ti);const Ri=kt.getElementsByTagName("a");for(const Fi of Ri)Fi.target="_blank",Fi.rel="noreferrer noopener"}containerRefHook=kt=>{this.targetElement=kt,this.renderMarkdownIntoDiv()};render(){return this.renderMarkdownIntoDiv(),i.createElement(vo,{ref:this.containerRefHook})}}const la=(0,Ro.I)("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),ss=(0,Ro.I)("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),Rs=(0,Ro.I)("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});let Ds=0;const Is=Ne=>{const{placeholder:kt,value:Rn,onKeyDown:jn,highlight:_r,altNewline:xr,validatedSelection:oi,...ti}=Ne,{onChange:Ri,className:Fi}=ti,Gi=i.useRef(null),yo=Rn??"";(0,l.vA)(Ri!==void 0,"GrowingEntry must be a controlled input area");const[Do]=i.useState(()=>"input-box-"+(Ds=(Ds+1)%1e7));i.useEffect(()=>{const Ji=Gi.current;if(Ji===null||Ji.disabled)return;const Uo=yo.toString().length;Ji.focus(),Ji.setSelectionRange(_r?0:Uo,Uo)},[]),i.useLayoutEffect(()=>{if(oi!==void 0){const Ji=typeof oi=="number"?[oi,null]:oi;Gi.current?.setSelectionRange(Ji[0],Ji[1])}},[oi]);const po=i.useCallback(Ji=>{Ji.key==="Enter"&&Ji.shiftKey&&xr===!0||jn?.(Ji)},[xr,jn]);return i.createElement(Rs,{className:"gdg-growing-entry"},i.createElement(ss,{className:Fi},yo+` `),i.createElement(la,{...ti,className:(Fi??"")+" gdg-input",id:Do,ref:Gi,onKeyDown:po,value:yo,placeholder:kt,dir:"auto"}))},nu=()=>Ne=>Ne.targetWidth,Ls=(0,Ro.I)("div")({name:"MarkdownOverlayEditorStyle",class:"gdg-m1pnx84e",propsAsIs:!1,vars:{"m1pnx84e-0":[nu(),"px"]}}),gu=Ne=>{const{value:kt,onChange:Rn,forceEditMode:jn,createNode:_r,targetRect:xr,onFinish:oi,validatedSelection:ti}=Ne,Ri=kt.data,Fi=kt.readonly===!0,[Gi,yo]=i.useState(Ri===""||jn),Do=i.useCallback(()=>{yo(Ji=>!Ji)},[]),po=Ri?"gdg-ml-6":"";return Gi?i.createElement(Ls,{targetWidth:xr.width-20},i.createElement(Is,{autoFocus:!0,highlight:!1,validatedSelection:ti,value:Ri,onKeyDown:Ji=>{Ji.key==="Enter"&&Ji.stopPropagation()},onChange:Rn}),i.createElement("div",{className:`gdg-edit-icon gdg-checkmark-hover ${po}`,onClick:()=>oi(kt)},i.createElement(D,null))):i.createElement(Ls,{targetWidth:xr.width},i.createElement(ea,{contents:Ri,createNode:_r}),!Fi&&i.createElement(i.Fragment,null,i.createElement("div",{className:"spacer"}),i.createElement("div",{className:`gdg-edit-icon gdg-edit-hover ${po}`,onClick:Do},i.createElement(M,null))),i.createElement("textarea",{className:"gdg-md-edit-textarea gdg-input",autoFocus:!0}))},Us={getAccessibilityString:Ne=>Ne.data?.toString()??"",kind:v.dd.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:K,measure:(Ne,kt,Rn)=>{const jn=kt.data.split(` `)[0];return Ne.measureText(jn).width+2*Rn.cellHorizontalPadding},draw:Ne=>qe(Ne,Ne.cell.data,Ne.cell.contentAlign),onDelete:Ne=>({...Ne,data:""}),provideEditor:()=>Ne=>{const{onChange:kt,value:Rn,target:jn,onFinishedEditing:_r,markdownDivCreateNode:xr,forceEditMode:oi,validatedSelection:ti}=Ne;return i.createElement(gu,{onFinish:_r,targetRect:jn,value:Rn,validatedSelection:ti,onChange:Ri=>kt({...Rn,data:Ri.target.value}),forceEditMode:oi,createNode:xr})},onPaste:(Ne,kt)=>Ne===kt.data?void 0:{...kt,data:Ne}},Iu={getAccessibilityString:Ne=>Ne.row.toString(),kind:v.Ld.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:Wu,measure:()=>44,draw:Ne=>Hu(Ne,Ne.cell.row,Ne.cell.checked,Ne.cell.markerKind,Ne.cell.drawHandle,Ne.cell.checkboxStyle),onClick:Ne=>{const{bounds:kt,cell:Rn,posX:jn,posY:_r}=Ne,{width:xr,height:oi}=kt,ti=Rn.drawHandle?7+(xr-7)/2:xr/2,Ri=oi/2;if(Math.abs(jn-ti)<=10&&Math.abs(_r-Ri)<=10)return{...Rn,checked:!Rn.checked}},onPaste:()=>{}};function Wu(Ne,kt){const{ctx:Rn,theme:jn}=Ne,_r=jn.markerFontFull,xr=kt??{};return xr?.font!==_r&&(Rn.font=_r,xr.font=_r),xr.deprep=rl,Rn.textAlign="center",xr}function rl(Ne){const{ctx:kt}=Ne;kt.textAlign="start"}function Hu(Ne,kt,Rn,jn,_r,xr){const{ctx:oi,rect:ti,hoverAmount:Ri,theme:Fi}=Ne,{x:Gi,y:yo,width:Do,height:po}=ti,Ji=Rn?1:jn==="checkbox-visible"?.6+.4*Ri:Ri;if(jn!=="number"&&Ji>0){oi.globalAlpha=Ji;const Uo=7*(Rn?Ri:1);if(yi(oi,Fi,Rn,_r?Gi+Uo:Gi,yo,_r?Do-Uo:Do,po,!0,void 0,void 0,18,"center",xr),_r){oi.globalAlpha=Ri,oi.beginPath();for(const Ia of[3,6])for(const za of[-5,-1,3])oi.rect(Gi+Ia,yo+po/2+za,2,2);oi.fillStyle=Fi.textLight,oi.fill(),oi.beginPath()}oi.globalAlpha=1}if(jn==="number"||jn==="both"&&!Rn){const Uo=kt.toString(),Ia=Fi.markerFontFull,za=Gi+Do/2;jn==="both"&&Ri!==0&&(oi.globalAlpha=1-Ri),oi.fillStyle=Fi.textLight,oi.font=Ia,oi.fillText(Uo,za,yo+po/2+it(oi,Ia)),Ri!==0&&(oi.globalAlpha=1)}}const Ts={getAccessibilityString:()=>"",kind:v.Ld.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:Ne=>Al(Ne,Ne.cell.hint,Ne.cell.icon),onPaste:()=>{}};function Al(Ne,kt,Rn){const{ctx:jn,rect:_r,hoverAmount:xr,theme:oi,spriteManager:ti}=Ne,{x:Ri,y:Fi,width:Gi,height:yo}=_r;jn.beginPath(),jn.globalAlpha=xr,jn.rect(Ri+1,Fi+1,Gi,yo-2),jn.fillStyle=oi.bgHeaderHovered,jn.fill(),jn.globalAlpha=1,jn.beginPath();const Do=kt!=="";let po=0;if(Rn!==void 0){const Uo=yo-8,Ia=Ri+8/2,za=Fi+8/2;ti.drawSprite(Rn,"normal",jn,Ia,za,Uo,oi,Do?1:xr),po=Uo}else{po=24;const Ji=12,Uo=Do?Ji:xr*Ji,Ia=Do?0:(1-xr)*Ji*.5,za=oi.cellHorizontalPadding+4;Uo>0&&(jn.moveTo(Ri+za+Ia,Fi+yo/2),jn.lineTo(Ri+za+Ia+Uo,Fi+yo/2),jn.moveTo(Ri+za+Ia+Uo*.5,Fi+yo/2-Uo*.5),jn.lineTo(Ri+za+Ia+Uo*.5,Fi+yo/2+Uo*.5),jn.lineWidth=2,jn.strokeStyle=oi.bgIconHeader,jn.lineCap="round",jn.stroke())}jn.fillStyle=oi.textMedium,jn.fillText(kt,po+Ri+oi.cellHorizontalPadding+.5,Fi+yo/2+it(jn,oi)),jn.beginPath()}const fl=i.lazy(async()=>await t.e(5280).then(t.bind(t,55280))),Rl={getAccessibilityString:Ne=>Ne.data?.toString()??"",kind:v.dd.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:K,draw:Ne=>qe(Ne,Ne.cell.displayData,Ne.cell.contentAlign),measure:(Ne,kt,Rn)=>Ne.measureText(kt.displayData).width+Rn.cellHorizontalPadding*2,onDelete:Ne=>({...Ne,data:void 0}),provideEditor:()=>Ne=>{const{isHighlighted:kt,onChange:Rn,value:jn,validatedSelection:_r}=Ne;return i.createElement(i.Suspense,{fallback:null},i.createElement(fl,{highlight:kt,disabled:jn.readonly===!0,value:jn.data,fixedDecimals:jn.fixedDecimals,allowNegative:jn.allowNegative,thousandSeparator:jn.thousandSeparator,decimalSeparator:jn.decimalSeparator,validatedSelection:_r,onChange:xr=>Rn({...jn,data:Number.isNaN(xr.floatValue??0)?0:xr.floatValue})}))},onPaste:(Ne,kt,Rn)=>{const jn=typeof Rn.rawValue=="number"?Rn.rawValue:Number.parseFloat(typeof Rn.rawValue=="string"?Rn.rawValue:Ne);if(!(Number.isNaN(jn)||kt.data===jn))return{...kt,data:jn,displayData:Rn.formattedString??kt.displayData}}},Bu={getAccessibilityString:()=>"",measure:()=>108,kind:v.dd.Protected,needsHover:!1,needsHoverPosition:!1,draw:Mn,onPaste:()=>{}};function Mn(Ne){const{ctx:kt,theme:Rn,rect:jn}=Ne,{x:_r,y:xr,height:oi}=jn;kt.beginPath();const ti=2.5;let Ri=_r+Rn.cellHorizontalPadding+ti;const Fi=xr+oi/2,Gi=Math.cos(y(30))*ti,yo=Math.sin(y(30))*ti;for(let Do=0;Do<12;Do++)kt.moveTo(Ri,Fi-ti),kt.lineTo(Ri,Fi+ti),kt.moveTo(Ri+Gi,Fi-yo),kt.lineTo(Ri-Gi,Fi+yo),kt.moveTo(Ri-Gi,Fi-yo),kt.lineTo(Ri+Gi,Fi+yo),Ri+=8;kt.lineWidth=1.1,kt.lineCap="square",kt.strokeStyle=Rn.textLight,kt.stroke()}const en={getAccessibilityString:Ne=>Ne.data?.toString()??"",kind:v.dd.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(Ne,kt)=>K(Ne,kt,Ne.theme.textLight),draw:Ne=>qe(Ne,Ne.cell.data,Ne.cell.contentAlign),measure:(Ne,kt,Rn)=>Ne.measureText(kt.data).width+Rn.cellHorizontalPadding*2,provideEditor:()=>Ne=>{const{isHighlighted:kt,onChange:Rn,value:jn,validatedSelection:_r}=Ne;return i.createElement(Is,{highlight:kt,autoFocus:jn.readonly!==!0,disabled:jn.readonly!==!1,value:jn.data,validatedSelection:_r,onChange:xr=>Rn({...jn,data:xr.target.value})})},onPaste:()=>{}},sn={getAccessibilityString:Ne=>Ne.data?.toString()??"",kind:v.dd.Text,needsHover:Ne=>Ne.hoverEffect===!0,needsHoverPosition:!1,drawPrep:K,useLabel:!0,draw:Ne=>{const{cell:kt,hoverAmount:Rn,hyperWrapping:jn,ctx:_r,rect:xr,theme:oi,overrideCursor:ti}=Ne,{displayData:Ri,contentAlign:Fi,hoverEffect:Gi,allowWrapping:yo}=kt;if(Gi===!0&&Rn>0){_r.textBaseline="alphabetic";const Do=oi.cellHorizontalPadding,po=oi.cellVerticalPadding,Ji=Ut(Ri,_r,oi.baseFontFull,"alphabetic"),Uo=xr.height-po,Ia=Math.min(Uo,Ji.actualBoundingBoxAscent*2.5);_r.beginPath(),We(_r,xr.x+Do/2,xr.y+(xr.height-Ia)/2+1,Ji.width+Do*3,Ia-1,oi.roundingRadius??4),_r.globalAlpha=Rn,_r.fillStyle=(0,at.fu)(oi.textDark,.1),_r.fill(),_r.globalAlpha=1,_r.fillStyle=oi.textDark,_r.textBaseline="middle",ti?.("text")}qe(Ne,Ri,Fi,yo,jn)},measure:(Ne,kt,Rn)=>{const jn=kt.displayData.split(` `,kt.allowWrapping===!0?void 0:1);let _r=0;for(const xr of jn)_r=Math.max(_r,Ne.measureText(xr).width);return _r+2*Rn.cellHorizontalPadding},onDelete:Ne=>({...Ne,data:""}),provideEditor:Ne=>({disablePadding:Ne.allowWrapping===!0,editor:kt=>{const{isHighlighted:Rn,onChange:jn,value:_r,validatedSelection:xr}=kt;return i.createElement(Is,{style:Ne.allowWrapping===!0?{padding:"3px 8.5px"}:void 0,highlight:Rn,autoFocus:_r.readonly!==!0,disabled:_r.readonly===!0,altNewline:!0,value:_r.data,validatedSelection:xr,onChange:oi=>jn({..._r,data:oi.target.value})})}}),onPaste:(Ne,kt,Rn)=>Ne===kt.data?void 0:{...kt,data:Ne,displayData:Rn.formattedString??kt.displayData}},qt=(0,Ro.I)("div")({name:"UriOverlayEditorStyle",class:"gdg-u1rrojo",propsAsIs:!1}),Kn=Ne=>{const{uri:kt,onChange:Rn,forceEditMode:jn,readonly:_r,validatedSelection:xr,preview:oi}=Ne,[ti,Ri]=i.useState(!_r&&(kt===""||jn)),Fi=i.useCallback(()=>{Ri(!0)},[]);return ti?i.createElement(Is,{validatedSelection:xr,highlight:!0,autoFocus:!0,value:kt,onChange:Rn}):i.createElement(qt,null,i.createElement("a",{className:"gdg-link-area",href:kt,target:"_blank",rel:"noopener noreferrer"},oi),!_r&&i.createElement("div",{className:"gdg-edit-icon",onClick:Fi},i.createElement(M,null)),i.createElement("textarea",{className:"gdg-input",autoFocus:!0}))};function Fr(Ne,kt,Rn,jn){let _r=Rn.cellHorizontalPadding;const xr=kt.height/2-Ne.actualBoundingBoxAscent/2,oi=Ne.width,ti=Ne.actualBoundingBoxAscent;return jn==="right"?_r=kt.width-oi-Rn.cellHorizontalPadding:jn==="center"&&(_r=kt.width/2-oi/2),{x:_r,y:xr,width:oi,height:ti}}const ci={getAccessibilityString:Ne=>Ne.data?.toString()??"",kind:v.dd.Uri,needsHover:Ne=>Ne.hoverEffect===!0,needsHoverPosition:!0,useLabel:!0,drawPrep:K,draw:Ne=>{const{cell:kt,theme:Rn,overrideCursor:jn,hoverX:_r,hoverY:xr,rect:oi,ctx:ti}=Ne,Ri=kt.displayData??kt.data,Fi=kt.hoverEffect===!0;if(jn!==void 0&&Fi&&_r!==void 0&&xr!==void 0){const Gi=Ut(Ri,ti,Rn.baseFontFull),yo=Fr(Gi,oi,Rn,kt.contentAlign),{x:Do,y:po,width:Ji,height:Uo}=yo;if(_r>=Do-4&&_r<=Do-4+Ji+8&&xr>=po-4&&xr<=po-4+Uo+8){const Ia=it(ti,Rn.baseFontFull);jn("pointer");const za=5,Ma=po-Ia;ti.beginPath(),ti.moveTo(oi.x+Do,Math.floor(oi.y+Ma+Uo+za)+.5),ti.lineTo(oi.x+Do+Ji,Math.floor(oi.y+Ma+Uo+za)+.5),ti.strokeStyle=Rn.linkColor,ti.stroke(),ti.save(),ti.fillStyle=Ne.cellFillColor,qe({...Ne,rect:{...oi,x:oi.x-1}},Ri,kt.contentAlign),qe({...Ne,rect:{...oi,x:oi.x-2}},Ri,kt.contentAlign),qe({...Ne,rect:{...oi,x:oi.x+1}},Ri,kt.contentAlign),qe({...Ne,rect:{...oi,x:oi.x+2}},Ri,kt.contentAlign),ti.restore()}}ti.fillStyle=Fi?Rn.linkColor:Rn.textDark,qe(Ne,Ri,kt.contentAlign)},onClick:Ne=>{const{cell:kt,bounds:Rn,posX:jn,posY:_r,theme:xr}=Ne,oi=kt.displayData??kt.data;if(kt.hoverEffect!==!0||kt.onClickUri===void 0)return;const ti=Ke(oi,xr.baseFontFull);if(ti===void 0)return;const Ri=Fr(ti,Rn,xr,kt.contentAlign);gn({x:Ri.x-4,y:Ri.y-4,width:Ri.width+8,height:Ri.height+8},jn,_r)&&kt.onClickUri(Ne)},measure:(Ne,kt,Rn)=>Ne.measureText(kt.displayData??kt.data).width+Rn.cellHorizontalPadding*2,onDelete:Ne=>({...Ne,data:""}),provideEditor:Ne=>kt=>{const{onChange:Rn,value:jn,forceEditMode:_r,validatedSelection:xr}=kt;return i.createElement(Kn,{forceEditMode:jn.readonly!==!0&&(_r||Ne.hoverEffect===!0&&Ne.onClickUri!==void 0),uri:jn.data,preview:jn.displayData??jn.data,validatedSelection:xr,readonly:jn.readonly===!0,onChange:oi=>Rn({...jn,data:oi.target.value})})},onPaste:(Ne,kt,Rn)=>Ne===kt.data?void 0:{...kt,data:Ne,displayData:Rn.formattedString??kt.displayData}},Le=[Iu,Ts,Rr,Ir,Sr,zn,Bi,Us,Rl,Bu,en,sn,ci],te='<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">',Ue=Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te}<rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/><path d="M15.75 4h-1.5a.25.25 0 0 0-.177.074L9.308 8.838a3.75 3.75 0 1 0 1.854 1.854l1.155-1.157.967.322a.5.5 0 0 0 .65-.55l-.18-1.208.363-.363.727.331a.5.5 0 0 0 .69-.59l-.254-.904.647-.647A.25.25 0 0 0 16 5.75v-1.5a.25.25 0 0 0-.25-.25zM7.5 13.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z" fill="${kt}"/></svg>`},rt=Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te}<rect x="2" y="2" width="16" height="16" rx="4" fill="${Rn}"/><path d="m12.223 13.314 3.052-2.826a.65.65 0 0 0 0-.984l-3.052-2.822c-.27-.25-.634-.242-.865.022-.232.263-.206.636.056.882l2.601 2.41-2.601 2.41c-.262.245-.288.619-.056.882.231.263.595.277.865.026Zm-4.444.005c.266.25.634.241.866-.027.231-.263.206-.636-.06-.882L5.983 10l2.602-2.405c.266-.25.291-.62.06-.887-.232-.263-.596-.272-.866-.022L4.723 9.51a.653.653 0 0 0 0 .983l3.056 2.827Z" fill="${kt}"/></svg>`},ht=Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${Rn}"/> <path d="M6.52 12.78H5.51V8.74l-1.33.47v-.87l2.29-.83h.05v5.27zm5.2 0H8.15v-.69l1.7-1.83a6.38 6.38 0 0 0 .34-.4c.09-.11.16-.22.22-.32s.1-.19.12-.27a.9.9 0 0 0 0-.56.63.63 0 0 0-.15-.23.58.58 0 0 0-.22-.15.75.75 0 0 0-.29-.05c-.27 0-.48.08-.62.23a.95.95 0 0 0-.2.65H8.03c0-.24.04-.46.13-.67a1.67 1.67 0 0 1 .97-.91c.23-.1.49-.14.77-.14.26 0 .5.04.7.11.21.08.38.18.52.32.14.13.25.3.32.48a1.74 1.74 0 0 1 .03 1.13 2.05 2.05 0 0 1-.24.47 4.16 4.16 0 0 1-.35.47l-.47.5-1 1.05h2.32v.8zm1.8-3.08h.55c.28 0 .48-.06.61-.2a.76.76 0 0 0 .2-.55.8.8 0 0 0-.05-.28.56.56 0 0 0-.13-.22.6.6 0 0 0-.23-.15.93.93 0 0 0-.32-.05.92.92 0 0 0-.29.05.72.72 0 0 0-.23.12.57.57 0 0 0-.21.46H12.4a1.3 1.3 0 0 1 .5-1.04c.15-.13.33-.23.54-.3a2.48 2.48 0 0 1 1.4 0c.2.06.4.15.55.28.15.13.27.28.36.47.08.19.13.4.13.65a1.15 1.15 0 0 1-.2.65 1.36 1.36 0 0 1-.58.49c.15.05.28.12.38.2a1.14 1.14 0 0 1 .43.62c.03.13.05.26.05.4 0 .25-.05.47-.14.66a1.42 1.42 0 0 1-.4.49c-.16.13-.35.23-.58.3a2.51 2.51 0 0 1-.73.1c-.22 0-.44-.03-.65-.09a1.8 1.8 0 0 1-.57-.28 1.43 1.43 0 0 1-.4-.47 1.41 1.41 0 0 1-.15-.66h1a.66.66 0 0 0 .22.5.87.87 0 0 0 .58.2c.25 0 .45-.07.6-.2a.71.71 0 0 0 .21-.56.97.97 0 0 0-.06-.36.61.61 0 0 0-.18-.25.74.74 0 0 0-.28-.15 1.33 1.33 0 0 0-.37-.04h-.55V9.7z" fill="${kt}"/> </svg>`},Gt=Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${Rn}"/> <path d="M8.182 12.4h3.636l.655 1.6H14l-3.454-8H9.455L6 14h1.527l.655-1.6zM10 7.44l1.36 3.651H8.64L10 7.441z" fill="${kt}"/> </svg>`},xn=Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 17.9911 17.2 17.9911 16.2222L18 3.77778C18 2.8 17.2 2 16.2222 2Z" fill="${Rn}" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z" fill="${kt}" /> </svg>`},Hn=Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${Rn}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10.29 4.947a3.368 3.368 0 014.723.04 3.375 3.375 0 01.041 4.729l-.009.009-1.596 1.597a3.367 3.367 0 01-5.081-.364.71.71 0 011.136-.85 1.95 1.95 0 002.942.21l1.591-1.593a1.954 1.954 0 00-.027-2.733 1.95 1.95 0 00-2.732-.027l-.91.907a.709.709 0 11-1.001-1.007l.915-.911.007-.007z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.55 8.678a3.368 3.368 0 015.082.364.71.71 0 01-1.136.85 1.95 1.95 0 00-2.942-.21l-1.591 1.593a1.954 1.954 0 00.027 2.733 1.95 1.95 0 002.73.028l.906-.906a.709.709 0 111.003 1.004l-.91.91-.008.01a3.368 3.368 0 01-4.724-.042 3.375 3.375 0 01-.041-4.728l.009-.009L6.55 8.678z" fill="${kt}"/> </svg> `},ii={headerRowID:Ue,headerNumber:ht,headerCode:rt,headerString:Gt,headerBoolean:xn,headerAudioUri:Hn,headerVideoUri:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${Rn}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7 13.138a.5.5 0 00.748.434l5.492-3.138a.5.5 0 000-.868L7.748 6.427A.5.5 0 007 6.862v6.276z" fill="${kt}"/> </svg>`},headerEmoji:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <path d="M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 9.17A4.17 4.17 0 0 1 5.83 10 4.17 4.17 0 0 1 10 5.83 4.17 4.17 0 0 1 14.17 10 4.17 4.17 0 0 1 10 14.17z" fill="${kt}"/> <path d="M8.33 8.21a.83.83 0 1 0-.03 1.67.83.83 0 0 0 .03-1.67zm3.34 0a.83.83 0 1 0-.04 1.67.83.83 0 0 0 .04-1.67z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.53 13.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="${kt}"/> <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${Rn}"/> <path d="M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 11a5 5 0 1 1 .01-10.01A5 5 0 0 1 10 15z" fill="${kt}"/> <path d="M8 7.86a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2zm4 0a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.53 11.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="${kt}"/> </svg>`},headerImage:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${Rn}"/> <path opacity=".5" fill-rule="evenodd" clip-rule="evenodd" d="M12.499 10.801a.5.5 0 01.835 0l2.698 4.098a.5.5 0 01-.418.775H10.22a.5.5 0 01-.417-.775l2.697-4.098z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.07 8.934a.5.5 0 01.824 0l4.08 5.958a.5.5 0 01-.412.782h-8.16a.5.5 0 01-.413-.782l4.08-5.958zM13.75 8.333a2.083 2.083 0 100-4.166 2.083 2.083 0 000 4.166z" fill="${kt}"/> </svg>`},headerUri:Hn,headerPhone:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <path fill="${kt}" d="M3 3h14v14H3z"/> <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2zm-7.24 9.78h1.23c.15 0 .27.06.36.18l.98 1.28a.43.43 0 0 1-.05.58l-1.2 1.21a.45.45 0 0 1-.6.04A6.72 6.72 0 0 1 7.33 10c0-.61.1-1.2.25-1.78a6.68 6.68 0 0 1 2.12-3.3.44.44 0 0 1 .6.04l1.2 1.2c.16.17.18.42.05.59l-.98 1.29a.43.43 0 0 1-.36.17H8.98A5.38 5.38 0 0 0 8.67 10c0 .62.11 1.23.3 1.79z" fill="${Rn}"/> </svg>`},headerMarkdown:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${Rn}"/> <path d="m13.49 13.15-2.32-3.27h1.4V7h1.86v2.88h1.4l-2.34 3.27zM11 13H9v-3l-1.5 1.92L6 10v3H4V7h2l1.5 2L9 7h2v6z" fill="${kt}"/> </svg>`},headerDate:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${Rn}"/> <path d="M14.8 4.182h-.6V3H13v1.182H7V3H5.8v1.182h-.6c-.66 0-1.2.532-1.2 1.182v9.454C4 15.468 4.54 16 5.2 16h9.6c.66 0 1.2-.532 1.2-1.182V5.364c0-.65-.54-1.182-1.2-1.182zm0 10.636H5.2V7.136h9.6v7.682z" fill="${kt}"/> </svg>`},headerTime:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${Rn}"/> <path d="M10 4a6 6 0 0 0-6 6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0-6-6zm0 10.8A4.8 4.8 0 0 1 5.2 10a4.8 4.8 0 1 1 4.8 4.8z" fill="${kt}"/> <path d="M10 7H9v3.93L12.5 13l.5-.8-3-1.76V7z" fill="${kt}"/> </svg>`},headerEmail:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 8.643a1.357 1.357 0 100 2.714 1.357 1.357 0 000-2.714zM7.357 10a2.643 2.643 0 115.286 0 2.643 2.643 0 01-5.286 0z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.589 4.898A5.643 5.643 0 0115.643 10v.5a2.143 2.143 0 01-4.286 0V8a.643.643 0 011.286 0v2.5a.857.857 0 001.714 0V10a4.357 4.357 0 10-1.708 3.46.643.643 0 01.782 1.02 5.643 5.643 0 11-5.842-9.582z" fill="${kt}"/> </svg>`},headerReference:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <rect x="2" y="8" width="10" height="8" rx="2" fill="${Rn}"/> <rect x="8" y="4" width="10" height="8" rx="2" fill="${Rn}"/> <path d="M10.68 7.73V6l2.97 3.02-2.97 3.02v-1.77c-2.13 0-3.62.7-4.68 2.2.43-2.15 1.7-4.31 4.68-4.74z" fill="${kt}"/> </svg>`},headerIfThenElse:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path fill="${kt}" d="M4 3h12v14H4z"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3.6 2A1.6 1.6 0 002 3.6v12.8A1.6 1.6 0 003.6 18h12.8a1.6 1.6 0 001.6-1.6V3.6A1.6 1.6 0 0016.4 2H3.6zm11.3 10.8a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7h-1.4a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.6-.693.117.117 0 00.1-.115V10.35a.117.117 0 00-.117-.116h-2.8a.117.117 0 00-.117.116v2.333c0 .064.053.117.117.117h.117a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7H9.3a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.117a.117.117 0 00.117-.117V10.35a.117.117 0 00-.117-.117h-2.8a.117.117 0 00-.117.117v2.342c0 .058.042.106.1.115a.7.7 0 01.6.693v1.4a.7.7 0 01-.7.7H5.1a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.35a.116.116 0 00.116-.117v-2.45c0-.515.418-.933.934-.933h2.917a.117.117 0 00.117-.117V6.85a.117.117 0 00-.117-.116h-2.45a.7.7 0 01-.7-.7V5.1a.7.7 0 01.7-.7h6.067a.7.7 0 01.7.7v.934a.7.7 0 01-.7.7h-2.45a.117.117 0 00-.118.116v2.333c0 .064.053.117.117.117H13.5c.516 0 .934.418.934.934v2.45c0 .063.052.116.116.116h.35z" fill="${Rn}"/> </svg>`},headerSingleValue:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path d="M9.98 13.33c.45 0 .74-.3.73-.75l-.01-.1-.16-1.67 1.45 1.05a.81.81 0 0 0 .5.18c.37 0 .72-.32.72-.76 0-.3-.17-.54-.49-.68l-1.63-.77 1.63-.77c.32-.14.49-.37.49-.67 0-.45-.34-.76-.71-.76a.81.81 0 0 0-.5.18l-1.47 1.03.16-1.74.01-.08c.01-.46-.27-.76-.72-.76-.46 0-.76.32-.75.76l.01.08.16 1.74-1.47-1.03a.77.77 0 0 0-.5-.18.74.74 0 0 0-.72.76c0 .3.17.53.49.67l1.63.77-1.62.77c-.32.14-.5.37-.5.68 0 .44.35.75.72.75a.78.78 0 0 0 .5-.17L9.4 10.8l-.16 1.68v.09c-.02.44.28.75.74.75z" fill="${kt}"/> </svg>`},headerLookup:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path d="M8 5.83H5.83a.83.83 0 0 0 0 1.67h1.69A4.55 4.55 0 0 1 8 5.83zm-.33 3.34H5.83a.83.83 0 0 0 0 1.66h2.72a4.57 4.57 0 0 1-.88-1.66zM5.83 12.5a.83.83 0 0 0 0 1.67h7.5a.83.83 0 1 0 0-1.67h-7.5zm8.8-2.9a3.02 3.02 0 0 0 .46-1.6c0-1.66-1.32-3-2.94-3C10.52 5 9.2 6.34 9.2 8s1.31 3 2.93 3c.58 0 1.11-.17 1.56-.47l2.04 2.08.93-.94-2.04-2.08zm-2.48.07c-.9 0-1.63-.75-1.63-1.67s.73-1.67 1.63-1.67c.9 0 1.63.75 1.63 1.67s-.73 1.67-1.63 1.67z" fill="${kt}"/> </svg>`},headerTextTemplate:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path d="M7.676 4.726V3l2.976 3.021-2.976 3.022v-1.77c-2.125 0-3.613.69-4.676 2.201.425-2.158 1.7-4.316 4.676-4.748zM10.182 14.4h3.636l.655 1.6H16l-3.454-8h-1.091L8 16h1.527l.655-1.6zM12 9.44l1.36 3.65h-2.72L12 9.44z" fill="${kt}"/> </svg>`},headerMath:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.167 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666H4.167z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.083 4.167a.833.833 0 10-1.666 0v4.166a.833.833 0 101.666 0V4.167zM11.667 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666h-4.166zM5.367 11.688a.833.833 0 00-1.179 1.179l2.947 2.946a.833.833 0 001.178-1.178l-2.946-2.947z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.313 12.867a.833.833 0 10-1.178-1.179l-2.947 2.947a.833.833 0 101.179 1.178l2.946-2.946z" fill="${kt}"/> <path d="M10.833 12.5c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833zM10.833 15c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833z" fill="${kt}"/> </svg>`},headerRollup:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${Rn}"/> <path d="M10 8.84a1.16 1.16 0 1 0 0 2.32 1.16 1.16 0 0 0 0-2.32zm3.02 3.61a3.92 3.92 0 0 0 .78-3.28.49.49 0 1 0-.95.2c.19.87-.02 1.78-.58 2.47a2.92 2.92 0 1 1-4.13-4.08 2.94 2.94 0 0 1 2.43-.62.49.49 0 1 0 .17-.96 3.89 3.89 0 1 0 2.28 6.27zM10 4.17a5.84 5.84 0 0 0-5.44 7.93.49.49 0 1 0 .9-.35 4.86 4.86 0 1 1 2.5 2.67.49.49 0 1 0-.4.88c.76.35 1.6.54 2.44.53a5.83 5.83 0 0 0 0-11.66zm3.02 3.5a.7.7 0 1 0-1.4 0 .7.7 0 0 0 1.4 0zm-6.97 5.35a.7.7 0 1 1 0 1.4.7.7 0 0 1 0-1.4z" fill="${kt}"/> </svg>`},headerJoinStrings:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path d="M12.4 13.565c1.865-.545 3.645-2.083 3.645-4.396 0-1.514-.787-2.604-2.071-2.604C12.69 6.565 12 7.63 12 8.939c1.114.072 1.865.726 1.865 1.683 0 .933-.8 1.647-1.84 2.023l.375.92zM4 5h6v2H4zM4 9h5v2H4zM4 13h4v2H4z" fill="${kt}"/> </svg>`},headerSplitString:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return` ${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path d="M12.4 13.56c1.86-.54 3.65-2.08 3.65-4.4 0-1.5-.8-2.6-2.08-2.6S12 7.64 12 8.95c1.11.07 1.86.73 1.86 1.68 0 .94-.8 1.65-1.83 2.03l.37.91zM4 5h6v2H4zm0 4h5v2H4zm0 4h4v2H4z" fill="${kt}"/> </svg>`},headerGeoDistance:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${Rn}"/> <path d="M10 7a1 1 0 100-2v2zm0 6a1 1 0 100 2v-2zm0-8H7v2h3V5zm-3 6h5V9H7v2zm5 2h-2v2h2v-2zm1-1a1 1 0 01-1 1v2a3 3 0 003-3h-2zm-1-1a1 1 0 011 1h2a3 3 0 00-3-3v2zM4 8a3 3 0 003 3V9a1 1 0 01-1-1H4zm3-3a3 3 0 00-3 3h2a1 1 0 011-1V5z" fill="${kt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.856 12.014a.5.5 0 00-.712.702L5.409 14l-1.265 1.284a.5.5 0 00.712.702l1.255-1.274 1.255 1.274a.5.5 0 00.712-.702L6.813 14l1.265-1.284a.5.5 0 00-.712-.702L6.11 13.288l-1.255-1.274zM12.856 4.014a.5.5 0 00-.712.702L13.409 6l-1.265 1.284a.5.5 0 10.712.702l1.255-1.274 1.255 1.274a.5.5 0 10.712-.702L14.813 6l1.265-1.284a.5.5 0 00-.712-.702L14.11 5.288l-1.255-1.274z" fill="${kt}"/> </svg>`},headerArray:Ne=>{const kt=Ne.fgColor,Rn=Ne.bgColor;return`${te} <rect x="2" y="2" width="16" height="16" rx="2" fill="${Rn}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 7.25a.75.75 0 000-1.5h-6.5a.75.75 0 100 1.5h6.5zM15 10a.75.75 0 01-.75.75h-6.5a.75.75 0 010-1.5h6.5A.75.75 0 0115 10zm-.75 4.25a.75.75 0 000-1.5h-6.5a.75.75 0 000 1.5h6.5zm-8.987-7a.75.75 0 100-1.5.75.75 0 000 1.5zm.75 2.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm-.75 4.25a.75.75 0 100-1.5.75.75 0 000 1.5z" fill="${kt}"/> </svg>`},rowOwnerOverlay:Ne=>{const kt=Ne.fgColor;return` <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 15v1h14v-2.5c0-.87-.44-1.55-.98-2.04a6.19 6.19 0 0 0-1.9-1.14 12.1 12.1 0 0 0-2.48-.67A4 4 0 1 0 5 6a4 4 0 0 0 2.36 3.65c-.82.13-1.7.36-2.48.67-.69.28-1.37.65-1.9 1.13A2.8 2.8 0 0 0 2 13.5V15z" fill="${Ne.bgColor}" stroke="${kt}" stroke-width="2"/> </svg>`},protectedColumnOverlay:Ne=>{const kt=Ne.fgColor;return` <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.43 6.04v-.18a3.86 3.86 0 0 0-7.72 0v.18A2.15 2.15 0 0 0 3 8.14v5.72C3 15.04 3.96 16 5.14 16H12c1.18 0 2.14-.96 2.14-2.14V8.14c0-1.03-.73-1.9-1.71-2.1zM7.86 6v-.14a.71.71 0 1 1 1.43 0V6H7.86z" fill="${Ne.bgColor}" stroke="${kt}" stroke-width="2"/> </svg> `},renameIcon:Ne=>{const kt=Ne.bgColor;return`${te} <path stroke="${kt}" stroke-width="2" d="M12 3v14"/> <path stroke="${kt}" stroke-width="2" stroke-linecap="round" d="M10 4h4m-4 12h4"/> <path d="M11 14h4a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-4v2h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4v2ZM9.5 8H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h4.5v2H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h4.5v2Z" fill="${kt}"/> </svg> `}};var Wo=t(7350);const Ra=[];class _a extends be{imageLoaded=()=>{};loadedLocations=[];cache={};setCallback(kt){this.imageLoaded=kt}sendLoaded=Wo(()=>{this.imageLoaded(new Bt(this.loadedLocations)),this.loadedLocations=[]},20);clearOutOfWindow=()=>{const kt=Object.keys(this.cache);for(const Rn of kt){const jn=this.cache[Rn];let _r=!1;for(let xr=0;xr<jn.cells.length;xr++){const oi=jn.cells[xr];if(this.isInWindow(oi)){_r=!0;break}}_r?jn.cells=jn.cells.filter(this.isInWindow):(jn.cancel(),delete this.cache[Rn])}};loadImage(kt,Rn,jn,_r){let xr=!1;const oi=Ra.pop()??new Image;let ti=!1;const Ri={img:void 0,cells:[Me(Rn,jn)],url:kt,cancel:()=>{ti||(ti=!0,Ra.length<12?Ra.unshift(oi):xr||(oi.src=""))}},Fi=new Promise(Gi=>oi.addEventListener("load",()=>Gi(null)));requestAnimationFrame(async()=>{try{oi.src=kt,await Fi,await oi.decode();const Gi=this.cache[_r];if(Gi!==void 0&&!ti){Gi.img=oi;for(const yo of Gi.cells)this.loadedLocations.push(z(yo));xr=!0,this.sendLoaded()}}catch{Ri.cancel()}}),this.cache[_r]=Ri}loadOrGetImage(kt,Rn,jn){const _r=kt,xr=this.cache[_r];if(xr!==void 0){const oi=Me(Rn,jn);return xr.cells.includes(oi)||xr.cells.push(oi),xr.img}else this.loadImage(kt,Rn,jn,_r)}}const Wa=_a,eu=(Ne,kt)=>{const Rn=i.useMemo(()=>({...ii,...Ne.headerIcons}),[Ne.headerIcons]),jn=i.useMemo(()=>Ne.imageWindowLoader??new Wa,[Ne.imageWindowLoader]);return i.createElement(mr,{...Ne,renderers:Le,headerIcons:Rn,ref:kt,imageWindowLoader:jn})},Ws=i.forwardRef(eu)},11421:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(96540);class l extends i.PureComponent{wrapperRef=i.createRef();componentDidMount(){document.addEventListener("touchend",this.clickOutside,!0),document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener("touchend",this.clickOutside,!0),document.removeEventListener("mousedown",this.clickOutside,!0),document.removeEventListener("contextmenu",this.clickOutside,!0)}clickOutside=m=>{if(!(this.props.isOutsideClick&&!this.props.isOutsideClick(m))&&this.wrapperRef.current!==null&&!this.wrapperRef.current.contains(m.target)){let u=m.target;for(;u!==null;){if(u.classList.contains("click-outside-ignore"))return;u=u.parentElement}this.props.onClickOutside()}};render(){const{onClickOutside:m,isOutsideClick:u,...f}=this.props;return i.createElement("div",{...f,ref:this.wrapperRef},this.props.children)}}},73121:(J,g,t)=>{"use strict";t.d(g,{au:()=>v,fu:()=>u,mN:()=>p});const i={};let l=null;function s(){const b=document.createElement("div");return b.style.opacity="0",b.style.pointerEvents="none",b.style.position="fixed",document.body.append(b),b}function m(b){const y=b.toLowerCase().trim();if(i[y]!==void 0)return i[y];l=l||s(),l.style.color="#000",l.style.color=y;const w=getComputedStyle(l).color;l.style.color="#fff",l.style.color=y;const S=getComputedStyle(l).color;if(S!==w)return[0,0,0,1];let O=S.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return O.length<4&&O.push(1),O=O.map(R=>Number.isNaN(R)?0:R),i[y]=O,O}function u(b,y){const[w,S,O]=m(b);return`rgba(${w}, ${S}, ${O}, ${y})`}const f=new Map;function p(b,y){const w=`${b}-${y}`,S=f.get(w);if(S!==void 0)return S;const O=v(b,y);return f.set(w,O),O}function v(b,y){if(y===void 0)return b;const[w,S,O,R]=m(b);if(R===1)return b;const[M,D,P,T]=m(y),A=R+T*(1-R),j=(R*w+T*M*(1-R))/A,ae=(R*S+T*D*(1-R))/A,_=(R*O+T*P*(1-R))/A;return`rgba(${j}, ${ae}, ${_}, ${A})`}function h(b,y,w){if(w<=0)return b;if(w>=1)return y;const S=[...m(b)];S[0]=S[0]*S[3],S[1]=S[1]*S[3],S[2]=S[2]*S[3];const O=[...m(y)];O[0]=O[0]*O[3],O[1]=O[1]*O[3],O[2]=O[2]*O[3];const R=w,M=1-w,D=S[3]*M+O[3]*R,P=Math.floor((S[0]*M+O[0]*R)/D),T=Math.floor((S[1]*M+O[1]*R)/D),A=Math.floor((S[2]*M+O[2]*R)/D);return`rgba(${P}, ${T}, ${A}, ${D})`}function d(b){if(b==="transparent")return 0;function y(R){const M=R/255;return M<=.04045?M/12.92:Math.pow((M+.055)/1.055,2.4)}const[w,S,O]=m(b);return .2126*y(w)+.7152*y(S)+.0722*y(O)}},69321:(J,g,t)=>{"use strict";t.d(g,{AA:()=>v,Bc:()=>d,Gf:()=>f,I1:()=>T,Ld:()=>M,Mp:()=>h,N4:()=>p,WE:()=>s,dB:()=>R,dd:()=>u,pg:()=>y,uQ:()=>w,wm:()=>m,zT:()=>O});var i=t(74433),l=t(61448);const s=null,m=void 0;var u;(function(A){A.Uri="uri",A.Text="text",A.Image="image",A.RowID="row-id",A.Number="number",A.Bubble="bubble",A.Boolean="boolean",A.Loading="loading",A.Markdown="markdown",A.Drilldown="drilldown",A.Protected="protected",A.Custom="custom"})(u||(u={}));var f;(function(A){A.HeaderRowID="headerRowID",A.HeaderCode="headerCode",A.HeaderNumber="headerNumber",A.HeaderString="headerString",A.HeaderBoolean="headerBoolean",A.HeaderAudioUri="headerAudioUri",A.HeaderVideoUri="headerVideoUri",A.HeaderEmoji="headerEmoji",A.HeaderImage="headerImage",A.HeaderUri="headerUri",A.HeaderPhone="headerPhone",A.HeaderMarkdown="headerMarkdown",A.HeaderDate="headerDate",A.HeaderTime="headerTime",A.HeaderEmail="headerEmail",A.HeaderReference="headerReference",A.HeaderIfThenElse="headerIfThenElse",A.HeaderSingleValue="headerSingleValue",A.HeaderLookup="headerLookup",A.HeaderTextTemplate="headerTextTemplate",A.HeaderMath="headerMath",A.HeaderRollup="headerRollup",A.HeaderJoinStrings="headerJoinStrings",A.HeaderSplitString="headerSplitString",A.HeaderGeoDistance="headerGeoDistance",A.HeaderArray="headerArray",A.RowOwnerOverlay="rowOwnerOverlay",A.ProtectedColumnOverlay="protectedColumnOverlay"})(f||(f={}));var p;(function(A){A.Triangle="triangle",A.Dots="dots"})(p||(p={}));function v(A){return"width"in A&&typeof A.width=="number"}async function h(A){return typeof A=="object"?A:await A()}function d(A){return A.kind===u.Loading||A.kind===u.Bubble||A.kind===u.RowID||A.kind===u.Protected||A.kind===u.Drilldown?!1:((0,i.HD)(A),!0)}function b(A){return A.kind===u.Loading||A.kind===u.Bubble||A.kind===u.RowID||A.kind===u.Protected||A.kind===u.Drilldown||A.kind===u.Boolean||A.kind===u.Image||A.kind===u.Custom?!1:(proveType(A),!0)}function y(A){return A.kind===M.Marker||A.kind===M.NewRow}function w(A){if(!d(A)||A.kind===u.Image)return!1;if(A.kind===u.Text||A.kind===u.Number||A.kind===u.Markdown||A.kind===u.Uri||A.kind===u.Custom||A.kind===u.Boolean)return A.readonly!==!0;(0,i.xb)(A,"A cell was passed with an invalid kind")}function S(A,j){return A===j?!0:A===void 0||j===void 0?!1:A.x===j.x&&A.y===j.y&&A.width===j.width&&A.height===j.height}function O(A){return l(A,"editor")}function R(A){return!(A.readonly??!1)}var M;(function(A){A.NewRow="new-row",A.Marker="marker"})(M||(M={}));function D(A){if(A.length===0)return[];const j=[...A],ae=[];j.sort(function(_,N){return _[0]-N[0]}),ae.push([...j[0]]);for(const _ of j.slice(1)){const N=ae[ae.length-1];N[1]<_[0]?ae.push([..._]):N[1]<_[1]&&(N[1]=_[1])}return ae}let P;class T{items;constructor(j){this.items=j}static empty=()=>P??(P=new T([]));static fromSingleSelection=j=>T.empty().add(j);offset(j){if(j===0)return this;const ae=this.items.map(_=>[_[0]+j,_[1]+j]);return new T(ae)}add(j){const ae=typeof j=="number"?[j,j+1]:j,_=D([...this.items,ae]);return new T(_)}remove(j){const ae=[...this.items],_=typeof j=="number"?j:j[0],N=typeof j=="number"?j+1:j[1];for(const[W,he]of ae.entries()){const[me,fe]=he;if(me<=N&&_<=fe){const ve=[];me<_&&ve.push([me,_]),N<fe&&ve.push([N,fe]),ae.splice(W,1,...ve)}}return new T(ae)}first(){if(this.items.length!==0)return this.items[0][0]}last(){if(this.items.length!==0)return this.items.slice(-1)[0][1]-1}hasIndex(j){for(let ae=0;ae<this.items.length;ae++){const[_,N]=this.items[ae];if(j>=_&&j<N)return!0}return!1}hasAll(j){for(let ae=j[0];ae<j[1];ae++)if(!this.hasIndex(ae))return!1;return!0}some(j){for(const ae of this)if(j(ae))return!0;return!1}equals(j){if(j===this)return!0;if(j.items.length!==this.items.length)return!1;for(let ae=0;ae<this.items.length;ae++){const _=j.items[ae],N=this.items[ae];if(_[0]!==N[0]||_[1]!==N[1])return!1}return!0}toArray(){const j=[];for(const[ae,_]of this.items)for(let N=ae;N<_;N++)j.push(N);return j}get length(){let j=0;for(const[ae,_]of this.items)j+=_-ae;return j}*[Symbol.iterator](){for(const[j,ae]of this.items)for(let _=j;_<ae;_++)yield _}}},90365:(J,g,t)=>{"use strict";t.d(g,{PH:()=>y,Qj:()=>b,Z6:()=>p,cF:()=>i,fI:()=>v,iX:()=>H,uY:()=>m});const i=1024;let l=0;class s{constructor(U,F){this.from=U,this.to=F}}class m{constructor(U={}){this.id=l++,this.perNode=!!U.perNode,this.deserialize=U.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(U){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof U!="function"&&(U=p.match(U)),F=>{let Y=U(F);return Y===void 0?null:[this,Y]}}}m.closedBy=new m({deserialize:tt=>tt.split(" ")}),m.openedBy=new m({deserialize:tt=>tt.split(" ")}),m.group=new m({deserialize:tt=>tt.split(" ")}),m.isolate=new m({deserialize:tt=>{if(tt&&tt!="rtl"&&tt!="ltr"&&tt!="auto")throw new RangeError("Invalid value for isolate: "+tt);return tt||"auto"}}),m.contextHash=new m({perNode:!0}),m.lookAhead=new m({perNode:!0}),m.mounted=new m({perNode:!0});class u{constructor(U,F,Y){this.tree=U,this.overlay=F,this.parser=Y}static get(U){return U&&U.props&&U.props[m.mounted.id]}}const f=Object.create(null);class p{constructor(U,F,Y,le=0){this.name=U,this.props=F,this.id=Y,this.flags=le}static define(U){let F=U.props&&U.props.length?Object.create(null):f,Y=(U.top?1:0)|(U.skipped?2:0)|(U.error?4:0)|(U.name==null?8:0),le=new p(U.name||"",F,U.id,Y);if(U.props){for(let ke of U.props)if(Array.isArray(ke)||(ke=ke(le)),ke){if(ke[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");F[ke[0].id]=ke[1]}}return le}prop(U){return this.props[U.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(U){if(typeof U=="string"){if(this.name==U)return!0;let F=this.prop(m.group);return F?F.indexOf(U)>-1:!1}return this.id==U}static match(U){let F=Object.create(null);for(let Y in U)for(let le of Y.split(" "))F[le]=U[Y];return Y=>{for(let le=Y.prop(m.group),ke=-1;ke<(le?le.length:0);ke++){let Ye=F[ke<0?Y.name:le[ke]];if(Ye)return Ye}}}}p.none=new p("",Object.create(null),0,8);class v{constructor(U){this.types=U;for(let F=0;F<U.length;F++)if(U[F].id!=F)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...U){let F=[];for(let Y of this.types){let le=null;for(let ke of U){let Ye=ke(Y);Ye&&(le||(le=Object.assign({},Y.props)),le[Ye[0].id]=Ye[1])}F.push(le?new p(Y.name,le,Y.id,Y.flags):Y)}return new v(F)}}const h=new WeakMap,d=new WeakMap;var b;(function(tt){tt[tt.ExcludeBuffers=1]="ExcludeBuffers",tt[tt.IncludeAnonymous=2]="IncludeAnonymous",tt[tt.IgnoreMounts=4]="IgnoreMounts",tt[tt.IgnoreOverlays=8]="IgnoreOverlays"})(b||(b={}));class y{constructor(U,F,Y,le,ke){if(this.type=U,this.children=F,this.positions=Y,this.length=le,this.props=null,ke&&ke.length){this.props=Object.create(null);for(let[Ye,ft]of ke)this.props[typeof Ye=="number"?Ye:Ye.id]=ft}}toString(){let U=u.get(this);if(U&&!U.overlay)return U.tree.toString();let F="";for(let Y of this.children){let le=Y.toString();le&&(F&&(F+=","),F+=le)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(F.length?"("+F+")":""):F}cursor(U=0){return new W(this.topNode,U)}cursorAt(U,F=0,Y=0){let le=h.get(this)||this.topNode,ke=new W(le);return ke.moveTo(U,F),h.set(this,ke._tree),ke}get topNode(){return new D(this,0,0,null)}resolve(U,F=0){let Y=R(h.get(this)||this.topNode,U,F,!1);return h.set(this,Y),Y}resolveInner(U,F=0){let Y=R(d.get(this)||this.topNode,U,F,!0);return d.set(this,Y),Y}resolveStack(U,F=0){return N(this,U,F)}iterate(U){let{enter:F,leave:Y,from:le=0,to:ke=this.length}=U,Ye=U.mode||0,ft=(Ye&b.IncludeAnonymous)>0;for(let wt=this.cursor(Ye|b.IncludeAnonymous);;){let Ut=!1;if(wt.from<=ke&&wt.to>=le&&(!ft&&wt.type.isAnonymous||F(wt)!==!1)){if(wt.firstChild())continue;Ut=!0}for(;Ut&&Y&&(ft||!wt.type.isAnonymous)&&Y(wt),!wt.nextSibling();){if(!wt.parent())return;Ut=!0}}}prop(U){return U.perNode?this.props?this.props[U.id]:void 0:this.type.prop(U)}get propValues(){let U=[];if(this.props)for(let F in this.props)U.push([+F,this.props[F]]);return U}balance(U={}){return this.children.length<=8?this:ce(p.none,this.children,this.positions,0,this.children.length,0,this.length,(F,Y,le)=>new y(this.type,F,Y,le,this.propValues),U.makeTree||((F,Y,le)=>new y(p.none,F,Y,le)))}static build(U){return me(U)}}y.empty=new y(p.none,[],[],0);class w{constructor(U,F){this.buffer=U,this.index=F}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new w(this.buffer,this.index)}}class S{constructor(U,F,Y){this.buffer=U,this.length=F,this.set=Y}get type(){return p.none}toString(){let U=[];for(let F=0;F<this.buffer.length;)U.push(this.childString(F)),F=this.buffer[F+3];return U.join(",")}childString(U){let F=this.buffer[U],Y=this.buffer[U+3],le=this.set.types[F],ke=le.name;if(/\W/.test(ke)&&!le.isError&&(ke=JSON.stringify(ke)),U+=4,Y==U)return ke;let Ye=[];for(;U<Y;)Ye.push(this.childString(U)),U=this.buffer[U+3];return ke+"("+Ye.join(",")+")"}findChild(U,F,Y,le,ke){let{buffer:Ye}=this,ft=-1;for(let wt=U;wt!=F&&!(O(ke,le,Ye[wt+1],Ye[wt+2])&&(ft=wt,Y>0));wt=Ye[wt+3]);return ft}slice(U,F,Y){let le=this.buffer,ke=new Uint16Array(F-U),Ye=0;for(let ft=U,wt=0;ft<F;){ke[wt++]=le[ft++],ke[wt++]=le[ft++]-Y;let Ut=ke[wt++]=le[ft++]-Y;ke[wt++]=le[ft++]-U,Ye=Math.max(Ye,Ut)}return new S(ke,Ye,this.set)}}function O(tt,U,F,Y){switch(tt){case-2:return F<U;case-1:return Y>=U&&F<U;case 0:return F<U&&Y>U;case 1:return F<=U&&Y>U;case 2:return Y>U;case 4:return!0}}function R(tt,U,F,Y){for(var le;tt.from==tt.to||(F<1?tt.from>=U:tt.from>U)||(F>-1?tt.to<=U:tt.to<U);){let Ye=!Y&&tt instanceof D&&tt.index<0?null:tt.parent;if(!Ye)return tt;tt=Ye}let ke=Y?0:b.IgnoreOverlays;if(Y)for(let Ye=tt,ft=Ye.parent;ft;Ye=ft,ft=Ye.parent)Ye instanceof D&&Ye.index<0&&((le=ft.enter(U,F,ke))===null||le===void 0?void 0:le.from)!=Ye.from&&(tt=ft);for(;;){let Ye=tt.enter(U,F,ke);if(!Ye)return tt;tt=Ye}}class M{cursor(U=0){return new W(this,U)}getChild(U,F=null,Y=null){let le=P(this,U,F,Y);return le.length?le[0]:null}getChildren(U,F=null,Y=null){return P(this,U,F,Y)}resolve(U,F=0){return R(this,U,F,!1)}resolveInner(U,F=0){return R(this,U,F,!0)}matchContext(U){return T(this,U)}enterUnfinishedNodesBefore(U){let F=this.childBefore(U),Y=this;for(;F;){let le=F.lastChild;if(!le||le.to!=F.to)break;le.type.isError&&le.from==le.to?(Y=F,F=le.prevSibling):F=le}return Y}get node(){return this}get next(){return this.parent}}class D extends M{constructor(U,F,Y,le){super(),this._tree=U,this.from=F,this.index=Y,this._parent=le}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(U,F,Y,le,ke=0){for(let Ye=this;;){for(let{children:ft,positions:wt}=Ye._tree,Ut=F>0?ft.length:-1;U!=Ut;U+=F){let Ke=ft[U],it=wt[U]+Ye.from;if(O(le,Y,it,it+Ke.length)){if(Ke instanceof S){if(ke&b.ExcludeBuffers)continue;let At=Ke.findChild(0,Ke.buffer.length,F,Y-it,le);if(At>-1)return new j(new A(Ye,Ke,U,it),null,At)}else if(ke&b.IncludeAnonymous||!Ke.type.isAnonymous||he(Ke)){let At;if(!(ke&b.IgnoreMounts)&&(At=u.get(Ke))&&!At.overlay)return new D(At.tree,it,U,Ye);let et=new D(Ke,it,U,Ye);return ke&b.IncludeAnonymous||!et.type.isAnonymous?et:et.nextChild(F<0?Ke.children.length-1:0,F,Y,le)}}}if(ke&b.IncludeAnonymous||!Ye.type.isAnonymous||(Ye.index>=0?U=Ye.index+F:U=F<0?-1:Ye._parent._tree.children.length,Ye=Ye._parent,!Ye))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(U){return this.nextChild(0,1,U,2)}childBefore(U){return this.nextChild(this._tree.children.length-1,-1,U,-2)}enter(U,F,Y=0){let le;if(!(Y&b.IgnoreOverlays)&&(le=u.get(this._tree))&&le.overlay){let ke=U-this.from;for(let{from:Ye,to:ft}of le.overlay)if((F>0?Ye<=ke:Ye<ke)&&(F<0?ft>=ke:ft>ke))return new D(le.tree,le.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,U,F,Y)}nextSignificantParent(){let U=this;for(;U.type.isAnonymous&&U._parent;)U=U._parent;return U}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function P(tt,U,F,Y){let le=tt.cursor(),ke=[];if(!le.firstChild())return ke;if(F!=null){for(let Ye=!1;!Ye;)if(Ye=le.type.is(F),!le.nextSibling())return ke}for(;;){if(Y!=null&&le.type.is(Y))return ke;if(le.type.is(U)&&ke.push(le.node),!le.nextSibling())return Y==null?ke:[]}}function T(tt,U,F=U.length-1){for(let Y=tt.parent;F>=0;Y=Y.parent){if(!Y)return!1;if(!Y.type.isAnonymous){if(U[F]&&U[F]!=Y.name)return!1;F--}}return!0}class A{constructor(U,F,Y,le){this.parent=U,this.buffer=F,this.index=Y,this.start=le}}class j extends M{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(U,F,Y){super(),this.context=U,this._parent=F,this.index=Y,this.type=U.buffer.set.types[U.buffer.buffer[Y]]}child(U,F,Y){let{buffer:le}=this.context,ke=le.findChild(this.index+4,le.buffer[this.index+3],U,F-this.context.start,Y);return ke<0?null:new j(this.context,this,ke)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(U){return this.child(1,U,2)}childBefore(U){return this.child(-1,U,-2)}enter(U,F,Y=0){if(Y&b.ExcludeBuffers)return null;let{buffer:le}=this.context,ke=le.findChild(this.index+4,le.buffer[this.index+3],F>0?1:-1,U-this.context.start,F);return ke<0?null:new j(this.context,this,ke)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(U){return this._parent?null:this.context.parent.nextChild(this.context.index+U,U,0,4)}get nextSibling(){let{buffer:U}=this.context,F=U.buffer[this.index+3];return F<(this._parent?U.buffer[this._parent.index+3]:U.buffer.length)?new j(this.context,this._parent,F):this.externalSibling(1)}get prevSibling(){let{buffer:U}=this.context,F=this._parent?this._parent.index+4:0;return this.index==F?this.externalSibling(-1):new j(this.context,this._parent,U.findChild(F,this.index,-1,0,4))}get tree(){return null}toTree(){let U=[],F=[],{buffer:Y}=this.context,le=this.index+4,ke=Y.buffer[this.index+3];if(ke>le){let Ye=Y.buffer[this.index+1];U.push(Y.slice(le,ke,Ye)),F.push(0)}return new y(this.type,U,F,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function ae(tt){if(!tt.length)return null;let U=0,F=tt[0];for(let ke=1;ke<tt.length;ke++){let Ye=tt[ke];(Ye.from>F.from||Ye.to<F.to)&&(F=Ye,U=ke)}let Y=F instanceof D&&F.index<0?null:F.parent,le=tt.slice();return Y?le[U]=Y:le.splice(U,1),new _(le,F)}class _{constructor(U,F){this.heads=U,this.node=F}get next(){return ae(this.heads)}}function N(tt,U,F){let Y=tt.resolveInner(U,F),le=null;for(let ke=Y instanceof D?Y:Y.context.parent;ke;ke=ke.parent)if(ke.index<0){let Ye=ke.parent;(le||(le=[Y])).push(Ye.resolve(U,F)),ke=Ye}else{let Ye=u.get(ke.tree);if(Ye&&Ye.overlay&&Ye.overlay[0].from<=U&&Ye.overlay[Ye.overlay.length-1].to>=U){let ft=new D(Ye.tree,Ye.overlay[0].from+ke.from,-1,ke);(le||(le=[Y])).push(R(ft,U,F,!1))}}return le?ae(le):Y}class W{get name(){return this.type.name}constructor(U,F=0){if(this.mode=F,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,U instanceof D)this.yieldNode(U);else{this._tree=U.context.parent,this.buffer=U.context;for(let Y=U._parent;Y;Y=Y._parent)this.stack.unshift(Y.index);this.bufferNode=U,this.yieldBuf(U.index)}}yieldNode(U){return U?(this._tree=U,this.type=U.type,this.from=U.from,this.to=U.to,!0):!1}yieldBuf(U,F){this.index=U;let{start:Y,buffer:le}=this.buffer;return this.type=F||le.set.types[le.buffer[U]],this.from=Y+le.buffer[U+1],this.to=Y+le.buffer[U+2],!0}yield(U){return U?U instanceof D?(this.buffer=null,this.yieldNode(U)):(this.buffer=U.context,this.yieldBuf(U.index,U.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(U,F,Y){if(!this.buffer)return this.yield(this._tree.nextChild(U<0?this._tree._tree.children.length-1:0,U,F,Y,this.mode));let{buffer:le}=this.buffer,ke=le.findChild(this.index+4,le.buffer[this.index+3],U,F-this.buffer.start,Y);return ke<0?!1:(this.stack.push(this.index),this.yieldBuf(ke))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(U){return this.enterChild(1,U,2)}childBefore(U){return this.enterChild(-1,U,-2)}enter(U,F,Y=this.mode){return this.buffer?Y&b.ExcludeBuffers?!1:this.enterChild(1,U,F):this.yield(this._tree.enter(U,F,Y))}parent(){if(!this.buffer)return this.yieldNode(this.mode&b.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let U=this.mode&b.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(U)}sibling(U){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+U,U,0,4,this.mode)):!1;let{buffer:F}=this.buffer,Y=this.stack.length-1;if(U<0){let le=Y<0?0:this.stack[Y]+4;if(this.index!=le)return this.yieldBuf(F.findChild(le,this.index,-1,0,4))}else{let le=F.buffer[this.index+3];if(le<(Y<0?F.buffer.length:F.buffer[this.stack[Y]+3]))return this.yieldBuf(le)}return Y<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+U,U,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(U){let F,Y,{buffer:le}=this;if(le){if(U>0){if(this.index<le.buffer.buffer.length)return!1}else for(let ke=0;ke<this.index;ke++)if(le.buffer.buffer[ke+3]<this.index)return!1;({index:F,parent:Y}=le)}else({index:F,_parent:Y}=this._tree);for(;Y;{index:F,_parent:Y}=Y)if(F>-1)for(let ke=F+U,Ye=U<0?-1:Y._tree.children.length;ke!=Ye;ke+=U){let ft=Y._tree.children[ke];if(this.mode&b.IncludeAnonymous||ft instanceof S||!ft.type.isAnonymous||he(ft))return!1}return!0}move(U,F){if(F&&this.enterChild(U,0,4))return!0;for(;;){if(this.sibling(U))return!0;if(this.atLastNode(U)||!this.parent())return!1}}next(U=!0){return this.move(1,U)}prev(U=!0){return this.move(-1,U)}moveTo(U,F=0){for(;(this.from==this.to||(F<1?this.from>=U:this.from>U)||(F>-1?this.to<=U:this.to<U))&&this.parent(););for(;this.enterChild(1,U,F););return this}get node(){if(!this.buffer)return this._tree;let U=this.bufferNode,F=null,Y=0;if(U&&U.context==this.buffer)e:for(let le=this.index,ke=this.stack.length;ke>=0;){for(let Ye=U;Ye;Ye=Ye._parent)if(Ye.index==le){if(le==this.index)return Ye;F=Ye,Y=ke+1;break e}le=this.stack[--ke]}for(let le=Y;le<this.stack.length;le++)F=new j(this.buffer,F,this.stack[le]);return this.bufferNode=new j(this.buffer,F,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(U,F){for(let Y=0;;){let le=!1;if(this.type.isAnonymous||U(this)!==!1){if(this.firstChild()){Y++;continue}this.type.isAnonymous||(le=!0)}for(;le&&F&&F(this),le=this.type.isAnonymous,!this.nextSibling();){if(!Y)return;this.parent(),Y--,le=!0}}}matchContext(U){if(!this.buffer)return T(this.node,U);let{buffer:F}=this.buffer,{types:Y}=F.set;for(let le=U.length-1,ke=this.stack.length-1;le>=0;ke--){if(ke<0)return T(this.node,U,le);let Ye=Y[F.buffer[this.stack[ke]]];if(!Ye.isAnonymous){if(U[le]&&U[le]!=Ye.name)return!1;le--}}return!0}}function he(tt){return tt.children.some(U=>U instanceof S||!U.type.isAnonymous||he(U))}function me(tt){var U;let{buffer:F,nodeSet:Y,maxBufferLength:le=i,reused:ke=[],minRepeatType:Ye=Y.types.length}=tt,ft=Array.isArray(F)?new w(F,F.length):F,wt=Y.types,Ut=0,Ke=0;function it(ze,qe,We,_t,ct,Ge){let{id:st,start:Me,end:ie,size:ge}=ft,z=Ke;for(;ge<0;)if(ft.next(),ge==-1){let bt=ke[st];We.push(bt),_t.push(Me-ze);return}else if(ge==-3){Ut=st;return}else if(ge==-4){Ke=st;return}else throw new RangeError(`Unrecognized record size: ${ge}`);let be=wt[st],Qe,Bt,nn=Me-ze;if(ie-Me<=le&&(Bt=K(ft.pos-qe,ct))){let bt=new Uint16Array(Bt.size-Bt.skip),at=ft.pos-Bt.size,$t=bt.length;for(;ft.pos>at;)$t=ue(Bt.start,bt,$t);Qe=new S(bt,ie-Bt.start,Y),nn=Bt.start-ze}else{let bt=ft.pos-ge;ft.next();let at=[],$t=[],On=st>=Ye?st:-1,Ct=0,Zt=ie;for(;ft.pos>bt;)On>=0&&ft.id==On&&ft.size>=0?(ft.end<=Zt-le&&(ee(at,$t,Me,Ct,ft.end,Zt,On,z),Ct=at.length,Zt=ft.end),ft.next()):Ge>2500?At(Me,bt,at,$t):it(Me,bt,at,$t,On,Ge+1);if(On>=0&&Ct>0&&Ct<at.length&&ee(at,$t,Me,Ct,Me,Zt,On,z),at.reverse(),$t.reverse(),On>-1&&Ct>0){let Wn=et(be);Qe=ce(be,at,$t,0,at.length,0,ie-Me,Wn,Wn)}else Qe=I(be,at,$t,ie-Me,z-ie)}We.push(Qe),_t.push(nn)}function At(ze,qe,We,_t){let ct=[],Ge=0,st=-1;for(;ft.pos>qe;){let{id:Me,start:ie,end:ge,size:z}=ft;if(z>4)ft.next();else{if(st>-1&&ie<st)break;st<0&&(st=ge-le),ct.push(Me,ie,ge),Ge++,ft.next()}}if(Ge){let Me=new Uint16Array(Ge*4),ie=ct[ct.length-2];for(let ge=ct.length-3,z=0;ge>=0;ge-=3)Me[z++]=ct[ge],Me[z++]=ct[ge+1]-ie,Me[z++]=ct[ge+2]-ie,Me[z++]=z;We.push(new S(Me,ct[2]-ie,Y)),_t.push(ie-ze)}}function et(ze){return(qe,We,_t)=>{let ct=0,Ge=qe.length-1,st,Me;if(Ge>=0&&(st=qe[Ge])instanceof y){if(!Ge&&st.type==ze&&st.length==_t)return st;(Me=st.prop(m.lookAhead))&&(ct=We[Ge]+st.length+Me)}return I(ze,qe,We,_t,ct)}}function ee(ze,qe,We,_t,ct,Ge,st,Me){let ie=[],ge=[];for(;ze.length>_t;)ie.push(ze.pop()),ge.push(qe.pop()+We-ct);ze.push(I(Y.types[st],ie,ge,Ge-ct,Me-Ge)),qe.push(ct-We)}function I(ze,qe,We,_t,ct=0,Ge){if(Ut){let st=[m.contextHash,Ut];Ge=Ge?[st].concat(Ge):[st]}if(ct>25){let st=[m.lookAhead,ct];Ge=Ge?[st].concat(Ge):[st]}return new y(ze,qe,We,_t,Ge)}function K(ze,qe){let We=ft.fork(),_t=0,ct=0,Ge=0,st=We.end-le,Me={size:0,start:0,skip:0};e:for(let ie=We.pos-ze;We.pos>ie;){let ge=We.size;if(We.id==qe&&ge>=0){Me.size=_t,Me.start=ct,Me.skip=Ge,Ge+=4,_t+=4,We.next();continue}let z=We.pos-ge;if(ge<0||z<ie||We.start<st)break;let be=We.id>=Ye?4:0,Qe=We.start;for(We.next();We.pos>z;){if(We.size<0)if(We.size==-3)be+=4;else break e;else We.id>=Ye&&(be+=4);We.next()}ct=Qe,_t+=ge,Ge+=be}return(qe<0||_t==ze)&&(Me.size=_t,Me.start=ct,Me.skip=Ge),Me.size>4?Me:void 0}function ue(ze,qe,We){let{id:_t,start:ct,end:Ge,size:st}=ft;if(ft.next(),st>=0&&_t<Ye){let Me=We;if(st>4){let ie=ft.pos-(st-4);for(;ft.pos>ie;)We=ue(ze,qe,We)}qe[--We]=Me,qe[--We]=Ge-ze,qe[--We]=ct-ze,qe[--We]=_t}else st==-3?Ut=_t:st==-4&&(Ke=_t);return We}let De=[],He=[];for(;ft.pos>0;)it(tt.start||0,tt.bufferStart||0,De,He,-1,0);let Fe=(U=tt.length)!==null&&U!==void 0?U:De.length?He[0]+De[0].length:0;return new y(wt[tt.topID],De.reverse(),He.reverse(),Fe)}const fe=new WeakMap;function ve(tt,U){if(!tt.isAnonymous||U instanceof S||U.type!=tt)return 1;let F=fe.get(U);if(F==null){F=1;for(let Y of U.children){if(Y.type!=tt||!(Y instanceof y)){F=1;break}F+=ve(tt,Y)}fe.set(U,F)}return F}function ce(tt,U,F,Y,le,ke,Ye,ft,wt){let Ut=0;for(let ee=Y;ee<le;ee++)Ut+=ve(tt,U[ee]);let Ke=Math.ceil(Ut*1.5/8),it=[],At=[];function et(ee,I,K,ue,De){for(let He=K;He<ue;){let Fe=He,ze=I[He],qe=ve(tt,ee[He]);for(He++;He<ue;He++){let We=ve(tt,ee[He]);if(qe+We>=Ke)break;qe+=We}if(He==Fe+1){if(qe>Ke){let We=ee[Fe];et(We.children,We.positions,0,We.children.length,I[Fe]+De);continue}it.push(ee[Fe])}else{let We=I[He-1]+ee[He-1].length-ze;it.push(ce(tt,ee,I,Fe,He,ze,We,null,wt))}At.push(ze+De-ke)}}return et(U,F,Y,le,0),(ft||wt)(it,At,Ye)}class oe{constructor(){this.map=new WeakMap}setBuffer(U,F,Y){let le=this.map.get(U);le||this.map.set(U,le=new Map),le.set(F,Y)}getBuffer(U,F){let Y=this.map.get(U);return Y&&Y.get(F)}set(U,F){U instanceof j?this.setBuffer(U.context.buffer,U.index,F):U instanceof D&&this.map.set(U.tree,F)}get(U){return U instanceof j?this.getBuffer(U.context.buffer,U.index):U instanceof D?this.map.get(U.tree):void 0}cursorSet(U,F){U.buffer?this.setBuffer(U.buffer.buffer,U.index,F):this.map.set(U.tree,F)}cursorGet(U){return U.buffer?this.getBuffer(U.buffer.buffer,U.index):this.map.get(U.tree)}}class re{constructor(U,F,Y,le,ke=!1,Ye=!1){this.from=U,this.to=F,this.tree=Y,this.offset=le,this.open=(ke?1:0)|(Ye?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(U,F=[],Y=!1){let le=[new re(0,U.length,U,0,!1,Y)];for(let ke of F)ke.to>U.length&&le.push(ke);return le}static applyChanges(U,F,Y=128){if(!F.length)return U;let le=[],ke=1,Ye=U.length?U[0]:null;for(let ft=0,wt=0,Ut=0;;ft++){let Ke=ft<F.length?F[ft]:null,it=Ke?Ke.fromA:1e9;if(it-wt>=Y)for(;Ye&&Ye.from<it;){let At=Ye;if(wt>=At.from||it<=At.to||Ut){let et=Math.max(At.from,wt)-Ut,ee=Math.min(At.to,it)-Ut;At=et>=ee?null:new re(et,ee,At.tree,At.offset+Ut,ft>0,!!Ke)}if(At&&le.push(At),Ye.to>it)break;Ye=ke<U.length?U[ke++]:null}if(!Ke)break;wt=Ke.toA,Ut=Ke.toA-Ke.toB}return le}}class H{startParse(U,F,Y){return typeof U=="string"&&(U=new V(U)),Y=Y?Y.length?Y.map(le=>new s(le.from,le.to)):[new s(0,0)]:[new s(0,U.length)],this.createParse(U,F||[],Y)}parse(U,F,Y){let le=this.startParse(U,F,Y);for(;;){let ke=le.advance();if(ke)return ke}}}class V{constructor(U){this.string=U}get length(){return this.string.length}chunk(U){return this.string.slice(U)}get lineChunks(){return!1}read(U,F){return this.string.slice(U,F)}}function Q(tt){return(U,F,Y,le)=>new ye(U,tt,F,Y,le)}class Te{constructor(U,F,Y,le,ke){this.parser=U,this.parse=F,this.overlay=Y,this.target=le,this.from=ke}}function Re(tt){if(!tt.length||tt.some(U=>U.from>=U.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(tt))}class ne{constructor(U,F,Y,le,ke,Ye,ft){this.parser=U,this.predicate=F,this.mounts=Y,this.index=le,this.start=ke,this.target=Ye,this.prev=ft,this.depth=0,this.ranges=[]}}const pe=new m({perNode:!0});class ye{constructor(U,F,Y,le,ke){this.nest=F,this.input=Y,this.fragments=le,this.ranges=ke,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=U}advance(){if(this.baseParse){let Y=this.baseParse.advance();if(!Y)return null;if(this.baseParse=null,this.baseTree=Y,this.startInner(),this.stoppedAt!=null)for(let le of this.inner)le.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let Y=this.baseTree;return this.stoppedAt!=null&&(Y=new y(Y.type,Y.children,Y.positions,Y.length,Y.propValues.concat([[pe,this.stoppedAt]]))),Y}let U=this.inner[this.innerDone],F=U.parse.advance();if(F){this.innerDone++;let Y=Object.assign(Object.create(null),U.target.props);Y[m.mounted.id]=new u(F,U.overlay,U.parser),U.target.props=Y}return null}get parsedPos(){if(this.baseParse)return 0;let U=this.input.length;for(let F=this.innerDone;F<this.inner.length;F++)this.inner[F].from<U&&(U=Math.min(U,this.inner[F].parse.parsedPos));return U}stopAt(U){if(this.stoppedAt=U,this.baseParse)this.baseParse.stopAt(U);else for(let F=this.innerDone;F<this.inner.length;F++)this.inner[F].parse.stopAt(U)}startInner(){let U=new nt(this.fragments),F=null,Y=null,le=new W(new D(this.baseTree,this.ranges[0].from,0,null),b.IncludeAnonymous|b.IgnoreMounts);e:for(let ke,Ye;;){let ft=!0,wt;if(this.stoppedAt!=null&&le.from>=this.stoppedAt)ft=!1;else if(U.hasNode(le)){if(F){let Ut=F.mounts.find(Ke=>Ke.frag.from<=le.from&&Ke.frag.to>=le.to&&Ke.mount.overlay);if(Ut)for(let Ke of Ut.mount.overlay){let it=Ke.from+Ut.pos,At=Ke.to+Ut.pos;it>=le.from&&At<=le.to&&!F.ranges.some(et=>et.from<At&&et.to>it)&&F.ranges.push({from:it,to:At})}}ft=!1}else if(Y&&(Ye=Se(Y.ranges,le.from,le.to)))ft=Ye!=2;else if(!le.type.isAnonymous&&(ke=this.nest(le,this.input))&&(le.from<le.to||!ke.overlay)){le.tree||Ee(le);let Ut=U.findMounts(le.from,ke.parser);if(typeof ke.overlay=="function")F=new ne(ke.parser,ke.overlay,Ut,this.inner.length,le.from,le.tree,F);else{let Ke=Tt(this.ranges,ke.overlay||(le.from<le.to?[new s(le.from,le.to)]:[]));Ke.length&&Re(Ke),(Ke.length||!ke.overlay)&&this.inner.push(new Te(ke.parser,Ke.length?ke.parser.startParse(this.input,Rt(Ut,Ke),Ke):ke.parser.startParse(""),ke.overlay?ke.overlay.map(it=>new s(it.from-le.from,it.to-le.from)):null,le.tree,Ke.length?Ke[0].from:le.from)),ke.overlay?Ke.length&&(Y={ranges:Ke,depth:0,prev:Y}):ft=!1}}else F&&(wt=F.predicate(le))&&(wt===!0&&(wt=new s(le.from,le.to)),wt.from<wt.to&&F.ranges.push(wt));if(ft&&le.firstChild())F&&F.depth++,Y&&Y.depth++;else for(;!le.nextSibling();){if(!le.parent())break e;if(F&&!--F.depth){let Ut=Tt(this.ranges,F.ranges);Ut.length&&(Re(Ut),this.inner.splice(F.index,0,new Te(F.parser,F.parser.startParse(this.input,Rt(F.mounts,Ut),Ut),F.ranges.map(Ke=>new s(Ke.from-F.start,Ke.to-F.start)),F.target,Ut[0].from))),F=F.prev}Y&&!--Y.depth&&(Y=Y.prev)}}}}function Se(tt,U,F){for(let Y of tt){if(Y.from>=F)break;if(Y.to>U)return Y.from<=U&&Y.to>=F?2:1}return 0}function Ae(tt,U,F,Y,le,ke){if(U<F){let Ye=tt.buffer[U+1];Y.push(tt.slice(U,F,Ye)),le.push(Ye-ke)}}function Ee(tt){let{node:U}=tt,F=[],Y=U.context.buffer;do F.push(tt.index),tt.parent();while(!tt.tree);let le=tt.tree,ke=le.children.indexOf(Y),Ye=le.children[ke],ft=Ye.buffer,wt=[ke];function Ut(Ke,it,At,et,ee,I){let K=F[I],ue=[],De=[];Ae(Ye,Ke,K,ue,De,et);let He=ft[K+1],Fe=ft[K+2];wt.push(ue.length);let ze=I?Ut(K+4,ft[K+3],Ye.set.types[ft[K]],He,Fe-He,I-1):U.toTree();return ue.push(ze),De.push(He-et),Ae(Ye,ft[K+3],it,ue,De,et),new y(At,ue,De,ee)}le.children[ke]=Ut(0,ft.length,p.none,0,Ye.length,F.length-1);for(let Ke of wt){let it=tt.tree.children[Ke],At=tt.tree.positions[Ke];tt.yield(new D(it,At+tt.from,Ke,tt._tree))}}class xe{constructor(U,F){this.offset=F,this.done=!1,this.cursor=U.cursor(b.IncludeAnonymous|b.IgnoreMounts)}moveTo(U){let{cursor:F}=this,Y=U-this.offset;for(;!this.done&&F.from<Y;)F.to>=U&&F.enter(Y,1,b.IgnoreOverlays|b.ExcludeBuffers)||F.next(!1)||(this.done=!0)}hasNode(U){if(this.moveTo(U.from),!this.done&&this.cursor.from+this.offset==U.from&&this.cursor.tree)for(let F=this.cursor.tree;;){if(F==U.tree)return!0;if(F.children.length&&F.positions[0]==0&&F.children[0]instanceof y)F=F.children[0];else break}return!1}}class nt{constructor(U){var F;if(this.fragments=U,this.curTo=0,this.fragI=0,U.length){let Y=this.curFrag=U[0];this.curTo=(F=Y.tree.prop(pe))!==null&&F!==void 0?F:Y.to,this.inner=new xe(Y.tree,-Y.offset)}else this.curFrag=this.inner=null}hasNode(U){for(;this.curFrag&&U.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=U.from&&this.curTo>=U.to&&this.inner.hasNode(U)}nextFrag(){var U;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let F=this.curFrag=this.fragments[this.fragI];this.curTo=(U=F.tree.prop(pe))!==null&&U!==void 0?U:F.to,this.inner=new xe(F.tree,-F.offset)}}findMounts(U,F){var Y;let le=[];if(this.inner){this.inner.cursor.moveTo(U,1);for(let ke=this.inner.cursor.node;ke;ke=ke.parent){let Ye=(Y=ke.tree)===null||Y===void 0?void 0:Y.prop(m.mounted);if(Ye&&Ye.parser==F)for(let ft=this.fragI;ft<this.fragments.length;ft++){let wt=this.fragments[ft];if(wt.from>=ke.to)break;wt.tree==this.curFrag.tree&&le.push({frag:wt,pos:ke.from-wt.offset,mount:Ye})}}}return le}}function Tt(tt,U){let F=null,Y=U;for(let le=1,ke=0;le<tt.length;le++){let Ye=tt[le-1].to,ft=tt[le].from;for(;ke<Y.length;ke++){let wt=Y[ke];if(wt.from>=ft)break;wt.to<=Ye||(F||(Y=F=U.slice()),wt.from<Ye?(F[ke]=new s(wt.from,Ye),wt.to>ft&&F.splice(ke+1,0,new s(ft,wt.to))):wt.to>ft?F[ke--]=new s(ft,wt.to):F.splice(ke--,1))}}return Y}function pt(tt,U,F,Y){let le=0,ke=0,Ye=!1,ft=!1,wt=-1e9,Ut=[];for(;;){let Ke=le==tt.length?1e9:Ye?tt[le].to:tt[le].from,it=ke==U.length?1e9:ft?U[ke].to:U[ke].from;if(Ye!=ft){let At=Math.max(wt,F),et=Math.min(Ke,it,Y);At<et&&Ut.push(new s(At,et))}if(wt=Math.min(Ke,it),wt==1e9)break;Ke==wt&&(Ye?(Ye=!1,le++):Ye=!0),it==wt&&(ft?(ft=!1,ke++):ft=!0)}return Ut}function Rt(tt,U){let F=[];for(let{pos:Y,mount:le,frag:ke}of tt){let Ye=Y+(le.overlay?le.overlay[0].from:0),ft=Ye+le.tree.length,wt=Math.max(ke.from,Ye),Ut=Math.min(ke.to,ft);if(le.overlay){let Ke=le.overlay.map(At=>new s(At.from+Y,At.to+Y)),it=pt(U,Ke,wt,Ut);for(let At=0,et=wt;;At++){let ee=At==it.length,I=ee?Ut:it[At].from;if(I>et&&F.push(new re(et,I,le.tree,-Ye,ke.from>=et||ke.openStart,ke.to<=I||ke.openEnd)),ee)break;et=it[At].to}}else F.push(new re(wt,Ut,le.tree,-Ye,ke.from>=Ye||ke.openStart,ke.to<=ft||ke.openEnd))}return F}},48820:(J,g,t)=>{"use strict";t.d(g,{U1:()=>fe,uC:()=>y});var i=t(90365);class l{constructor(H,V,Q,Te,Re,ne,pe,ye,Se,Ae=0,Ee){this.p=H,this.stack=V,this.state=Q,this.reducePos=Te,this.pos=Re,this.score=ne,this.buffer=pe,this.bufferBase=ye,this.curContext=Se,this.lookAhead=Ae,this.parent=Ee}toString(){return`[${this.stack.filter((H,V)=>V%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(H,V,Q=0){let Te=H.parser.context;return new l(H,[],V,Q,Q,0,[],0,Te?new s(Te,Te.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(H,V){this.stack.push(this.state,V,this.bufferBase+this.buffer.length),this.state=H}reduce(H){var V;let Q=H>>19,Te=H&65535,{parser:Re}=this.p,ne=Re.dynamicPrecedence(Te);if(ne&&(this.score+=ne),Q==0){this.pushState(Re.getGoto(this.state,Te,!0),this.reducePos),Te<Re.minRepeatTerm&&this.storeNode(Te,this.reducePos,this.reducePos,4,!0),this.reduceContext(Te,this.reducePos);return}let pe=this.stack.length-(Q-1)*3-(H&262144?6:0),ye=pe?this.stack[pe-2]:this.p.ranges[0].from,Se=this.reducePos-ye;Se>=2e3&&!(!((V=this.p.parser.nodeSet.types[Te])===null||V===void 0)&&V.isAnonymous)&&(ye==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=Se):this.p.lastBigReductionSize<Se&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=ye,this.p.lastBigReductionSize=Se));let Ae=pe?this.stack[pe-1]:0,Ee=this.bufferBase+this.buffer.length-Ae;if(Te<Re.minRepeatTerm||H&131072){let xe=Re.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(Te,ye,xe,Ee+4,!0)}if(H&262144)this.state=this.stack[pe];else{let xe=this.stack[pe-3];this.state=Re.getGoto(xe,Te,!0)}for(;this.stack.length>pe;)this.stack.pop();this.reduceContext(Te,ye)}storeNode(H,V,Q,Te=4,Re=!1){if(H==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let ne=this,pe=this.buffer.length;if(pe==0&&ne.parent&&(pe=ne.bufferBase-ne.parent.bufferBase,ne=ne.parent),pe>0&&ne.buffer[pe-4]==0&&ne.buffer[pe-1]>-1){if(V==Q)return;if(ne.buffer[pe-2]>=V){ne.buffer[pe-2]=Q;return}}}if(!Re||this.pos==Q)this.buffer.push(H,V,Q,Te);else{let ne=this.buffer.length;if(ne>0&&this.buffer[ne-4]!=0)for(;ne>0&&this.buffer[ne-2]>Q;)this.buffer[ne]=this.buffer[ne-4],this.buffer[ne+1]=this.buffer[ne-3],this.buffer[ne+2]=this.buffer[ne-2],this.buffer[ne+3]=this.buffer[ne-1],ne-=4,Te>4&&(Te-=4);this.buffer[ne]=H,this.buffer[ne+1]=V,this.buffer[ne+2]=Q,this.buffer[ne+3]=Te}}shift(H,V,Q){let Te=this.pos;if(H&131072)this.pushState(H&65535,this.pos);else if(H&262144)this.pos=Q,this.shiftContext(V,Te),V<=this.p.parser.maxNode&&this.buffer.push(V,Te,Q,4);else{let Re=H,{parser:ne}=this.p;(Q>this.pos||V<=ne.maxNode)&&(this.pos=Q,ne.stateFlag(Re,1)||(this.reducePos=Q)),this.pushState(Re,Te),this.shiftContext(V,Te),V<=ne.maxNode&&this.buffer.push(V,Te,Q,4)}}apply(H,V,Q){H&65536?this.reduce(H):this.shift(H,V,Q)}useNode(H,V){let Q=this.p.reused.length-1;(Q<0||this.p.reused[Q]!=H)&&(this.p.reused.push(H),Q++);let Te=this.pos;this.reducePos=this.pos=Te+H.length,this.pushState(V,Te),this.buffer.push(Q,Te,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,H,this,this.p.stream.reset(this.pos-H.length)))}split(){let H=this,V=H.buffer.length;for(;V>0&&H.buffer[V-2]>H.reducePos;)V-=4;let Q=H.buffer.slice(V),Te=H.bufferBase+V;for(;H&&Te==H.bufferBase;)H=H.parent;return new l(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,Q,Te,this.curContext,this.lookAhead,H)}recoverByDelete(H,V){let Q=H<=this.p.parser.maxNode;Q&&this.storeNode(H,this.pos,V,4),this.storeNode(0,this.pos,V,Q?8:4),this.pos=this.reducePos=V,this.score-=190}canShift(H){for(let V=new u(this);;){let Q=this.p.parser.stateSlot(V.state,4)||this.p.parser.hasAction(V.state,H);if(Q==0)return!1;if(!(Q&65536))return!0;V.reduce(Q)}}recoverByInsert(H){if(this.stack.length>=300)return[];let V=this.p.parser.nextStates(this.state);if(V.length>8||this.stack.length>=120){let Te=[];for(let Re=0,ne;Re<V.length;Re+=2)(ne=V[Re+1])!=this.state&&this.p.parser.hasAction(ne,H)&&Te.push(V[Re],ne);if(this.stack.length<120)for(let Re=0;Te.length<8&&Re<V.length;Re+=2){let ne=V[Re+1];Te.some((pe,ye)=>ye&1&&pe==ne)||Te.push(V[Re],ne)}V=Te}let Q=[];for(let Te=0;Te<V.length&&Q.length<4;Te+=2){let Re=V[Te+1];if(Re==this.state)continue;let ne=this.split();ne.pushState(Re,this.pos),ne.storeNode(0,ne.pos,ne.pos,4,!0),ne.shiftContext(V[Te],this.pos),ne.score-=200,Q.push(ne)}return Q}forceReduce(){let H=this.p.parser.stateSlot(this.state,5);if(!(H&65536))return!1;let{parser:V}=this.p;if(!V.validAction(this.state,H)){let Q=H>>19,Te=H&65535,Re=this.stack.length-Q*3;if(Re<0||V.getGoto(this.stack[Re],Te,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(H),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:H}=this.p;return H.data[H.stateSlot(this.state,1)]==65535&&!H.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(H){if(this.state!=H.state||this.stack.length!=H.stack.length)return!1;for(let V=0;V<this.stack.length;V+=3)if(this.stack[V]!=H.stack[V])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(H){return this.p.parser.dialect.flags[H]}shiftContext(H,V){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,H,this,this.p.stream.reset(V)))}reduceContext(H,V){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,H,this,this.p.stream.reset(V)))}emitContext(){let H=this.buffer.length-1;(H<0||this.buffer[H]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}emitLookAhead(){let H=this.buffer.length-1;(H<0||this.buffer[H]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}updateContext(H){if(H!=this.curContext.context){let V=new s(this.curContext.tracker,H);V.hash!=this.curContext.hash&&this.emitContext(),this.curContext=V}}setLookAhead(H){H>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=H)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class s{constructor(H,V){this.tracker=H,this.context=V,this.hash=H.strict?H.hash(V):0}}var m;(function(re){re[re.Insert=200]="Insert",re[re.Delete=190]="Delete",re[re.Reduce=100]="Reduce",re[re.MaxNext=4]="MaxNext",re[re.MaxInsertStackDepth=300]="MaxInsertStackDepth",re[re.DampenInsertStackDepth=120]="DampenInsertStackDepth",re[re.MinBigReduction=2e3]="MinBigReduction"})(m||(m={}));class u{constructor(H){this.start=H,this.state=H.state,this.stack=H.stack,this.base=this.stack.length}reduce(H){let V=H&65535,Q=H>>19;Q==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(Q-1)*3;let Te=this.start.p.parser.getGoto(this.stack[this.base-3],V,!0);this.state=Te}}class f{constructor(H,V,Q){this.stack=H,this.pos=V,this.index=Q,this.buffer=H.buffer,this.index==0&&this.maybeNext()}static create(H,V=H.bufferBase+H.buffer.length){return new f(H,V,V-H.bufferBase)}maybeNext(){let H=this.stack.parent;H!=null&&(this.index=this.stack.bufferBase-H.bufferBase,this.stack=H,this.buffer=H.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new f(this.stack,this.pos,this.index)}}function p(re,H=Uint16Array){if(typeof re!="string")return re;let V=null;for(let Q=0,Te=0;Q<re.length;){let Re=0;for(;;){let ne=re.charCodeAt(Q++),pe=!1;if(ne==126){Re=65535;break}ne>=92&&ne--,ne>=34&&ne--;let ye=ne-32;if(ye>=46&&(ye-=46,pe=!0),Re+=ye,pe)break;Re*=46}V?V[Te++]=Re:V=new H(Re)}return V}class v{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const h=new v;class d{constructor(H,V){this.input=H,this.ranges=V,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=h,this.rangeIndex=0,this.pos=this.chunkPos=V[0].from,this.range=V[0],this.end=V[V.length-1].to,this.readNext()}resolveOffset(H,V){let Q=this.range,Te=this.rangeIndex,Re=this.pos+H;for(;Re<Q.from;){if(!Te)return null;let ne=this.ranges[--Te];Re-=Q.from-ne.to,Q=ne}for(;V<0?Re>Q.to:Re>=Q.to;){if(Te==this.ranges.length-1)return null;let ne=this.ranges[++Te];Re+=ne.from-Q.to,Q=ne}return Re}clipPos(H){if(H>=this.range.from&&H<this.range.to)return H;for(let V of this.ranges)if(V.to>H)return Math.max(H,V.from);return this.end}peek(H){let V=this.chunkOff+H,Q,Te;if(V>=0&&V<this.chunk.length)Q=this.pos+H,Te=this.chunk.charCodeAt(V);else{let Re=this.resolveOffset(H,1);if(Re==null)return-1;if(Q=Re,Q>=this.chunk2Pos&&Q<this.chunk2Pos+this.chunk2.length)Te=this.chunk2.charCodeAt(Q-this.chunk2Pos);else{let ne=this.rangeIndex,pe=this.range;for(;pe.to<=Q;)pe=this.ranges[++ne];this.chunk2=this.input.chunk(this.chunk2Pos=Q),Q+this.chunk2.length>pe.to&&(this.chunk2=this.chunk2.slice(0,pe.to-Q)),Te=this.chunk2.charCodeAt(0)}}return Q>=this.token.lookAhead&&(this.token.lookAhead=Q+1),Te}acceptToken(H,V=0){let Q=V?this.resolveOffset(V,-1):this.pos;if(Q==null||Q<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=H,this.token.end=Q}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:H,chunkPos:V}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=H,this.chunk2Pos=V,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let H=this.input.chunk(this.pos),V=this.pos+H.length;this.chunk=V>this.range.to?H.slice(0,this.range.to-this.pos):H,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(H=1){for(this.chunkOff+=H;this.pos+H>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();H-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=H,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(H,V){if(V?(this.token=V,V.start=H,V.lookAhead=H+1,V.value=V.extended=-1):this.token=h,this.pos!=H){if(this.pos=H,H==this.end)return this.setDone(),this;for(;H<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;H>=this.range.to;)this.range=this.ranges[++this.rangeIndex];H>=this.chunkPos&&H<this.chunkPos+this.chunk.length?this.chunkOff=H-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(H,V){if(H>=this.chunkPos&&V<=this.chunkPos+this.chunk.length)return this.chunk.slice(H-this.chunkPos,V-this.chunkPos);if(H>=this.chunk2Pos&&V<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(H-this.chunk2Pos,V-this.chunk2Pos);if(H>=this.range.from&&V<=this.range.to)return this.input.read(H,V);let Q="";for(let Te of this.ranges){if(Te.from>=V)break;Te.to>H&&(Q+=this.input.read(Math.max(Te.from,H),Math.min(Te.to,V)))}return Q}}class b{constructor(H,V){this.data=H,this.id=V}token(H,V){let{parser:Q}=V.p;S(this.data,H,V,this.id,Q.data,Q.tokenPrecTable)}}b.prototype.contextual=b.prototype.fallback=b.prototype.extend=!1;class y{constructor(H,V,Q){this.precTable=V,this.elseToken=Q,this.data=typeof H=="string"?p(H):H}token(H,V){let Q=H.pos,Te;for(;Te=H.pos,S(this.data,H,V,0,this.data,this.precTable),!(H.token.value>-1);){if(this.elseToken==null)return;if(H.next<0)break;H.advance(),H.reset(Te+1,H.token)}Te>Q&&(H.reset(Q,H.token),H.acceptToken(this.elseToken,Te-Q))}}y.prototype.contextual=b.prototype.fallback=b.prototype.extend=!1;class w{constructor(H,V={}){this.token=H,this.contextual=!!V.contextual,this.fallback=!!V.fallback,this.extend=!!V.extend}}function S(re,H,V,Q,Te,Re){let ne=0,pe=1<<Q,{dialect:ye}=V.p.parser;e:for(;pe&re[ne];){let Se=re[ne+1];for(let nt=ne+3;nt<Se;nt+=2)if((re[nt+1]&pe)>0){let Tt=re[nt];if(ye.allows(Tt)&&(H.token.value==-1||H.token.value==Tt||R(Tt,H.token.value,Te,Re))){H.acceptToken(Tt);break}}let Ae=H.next,Ee=0,xe=re[ne+2];if(H.next<0&&xe>Ee&&re[Se+xe*3-3]==65535&&re[Se+xe*3-3]==65535){ne=re[Se+xe*3-1];continue e}for(;Ee<xe;){let nt=Ee+xe>>1,Tt=Se+nt+(nt<<1),pt=re[Tt],Rt=re[Tt+1]||65536;if(Ae<pt)xe=nt;else if(Ae>=Rt)Ee=nt+1;else{ne=re[Tt+2],H.advance();continue e}}break}}function O(re,H,V){for(let Q=H,Te;(Te=re[Q])!=65535;Q++)if(Te==V)return Q-H;return-1}function R(re,H,V,Q){let Te=O(V,Q,H);return Te<0||O(V,Q,re)<Te}const M=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let D=null;var P;(function(re){re[re.Margin=25]="Margin"})(P||(P={}));function T(re,H,V){let Q=re.cursor(i.Qj.IncludeAnonymous);for(Q.moveTo(H);;)if(!(V<0?Q.childBefore(H):Q.childAfter(H)))for(;;){if((V<0?Q.to<H:Q.from>H)&&!Q.type.isError)return V<0?Math.max(0,Math.min(Q.to-1,H-25)):Math.min(re.length,Math.max(Q.from+1,H+25));if(V<0?Q.prevSibling():Q.nextSibling())break;if(!Q.parent())return V<0?0:re.length}}class A{constructor(H,V){this.fragments=H,this.nodeSet=V,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let H=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(H){for(this.safeFrom=H.openStart?T(H.tree,H.from+H.offset,1)-H.offset:H.from,this.safeTo=H.openEnd?T(H.tree,H.to+H.offset,-1)-H.offset:H.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(H.tree),this.start.push(-H.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(H){if(H<this.nextStart)return null;for(;this.fragment&&this.safeTo<=H;)this.nextFragment();if(!this.fragment)return null;for(;;){let V=this.trees.length-1;if(V<0)return this.nextFragment(),null;let Q=this.trees[V],Te=this.index[V];if(Te==Q.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let Re=Q.children[Te],ne=this.start[V]+Q.positions[Te];if(ne>H)return this.nextStart=ne,null;if(Re instanceof i.PH){if(ne==H){if(ne<this.safeFrom)return null;let pe=ne+Re.length;if(pe<=this.safeTo){let ye=Re.prop(i.uY.lookAhead);if(!ye||pe+ye<this.fragment.to)return Re}}this.index[V]++,ne+Re.length>=Math.max(this.safeFrom,H)&&(this.trees.push(Re),this.start.push(ne),this.index.push(0))}else this.index[V]++,this.nextStart=ne+Re.length}}}class j{constructor(H,V){this.stream=V,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=H.tokenizers.map(Q=>new v)}getActions(H){let V=0,Q=null,{parser:Te}=H.p,{tokenizers:Re}=Te,ne=Te.stateSlot(H.state,3),pe=H.curContext?H.curContext.hash:0,ye=0;for(let Se=0;Se<Re.length;Se++){if(!(1<<Se&ne))continue;let Ae=Re[Se],Ee=this.tokens[Se];if(!(Q&&!Ae.fallback)&&((Ae.contextual||Ee.start!=H.pos||Ee.mask!=ne||Ee.context!=pe)&&(this.updateCachedToken(Ee,Ae,H),Ee.mask=ne,Ee.context=pe),Ee.lookAhead>Ee.end+25&&(ye=Math.max(Ee.lookAhead,ye)),Ee.value!=0)){let xe=V;if(Ee.extended>-1&&(V=this.addActions(H,Ee.extended,Ee.end,V)),V=this.addActions(H,Ee.value,Ee.end,V),!Ae.extend&&(Q=Ee,V>xe))break}}for(;this.actions.length>V;)this.actions.pop();return ye&&H.setLookAhead(ye),!Q&&H.pos==this.stream.end&&(Q=new v,Q.value=H.p.parser.eofTerm,Q.start=Q.end=H.pos,V=this.addActions(H,Q.value,Q.end,V)),this.mainToken=Q,this.actions}getMainToken(H){if(this.mainToken)return this.mainToken;let V=new v,{pos:Q,p:Te}=H;return V.start=Q,V.end=Math.min(Q+1,Te.stream.end),V.value=Q==Te.stream.end?Te.parser.eofTerm:0,V}updateCachedToken(H,V,Q){let Te=this.stream.clipPos(Q.pos);if(V.token(this.stream.reset(Te,H),Q),H.value>-1){let{parser:Re}=Q.p;for(let ne=0;ne<Re.specialized.length;ne++)if(Re.specialized[ne]==H.value){let pe=Re.specializers[ne](this.stream.read(H.start,H.end),Q);if(pe>=0&&Q.p.parser.dialect.allows(pe>>1)){pe&1?H.extended=pe>>1:H.value=pe>>1;break}}}else H.value=0,H.end=this.stream.clipPos(Te+1)}putAction(H,V,Q,Te){for(let Re=0;Re<Te;Re+=3)if(this.actions[Re]==H)return Te;return this.actions[Te++]=H,this.actions[Te++]=V,this.actions[Te++]=Q,Te}addActions(H,V,Q,Te){let{state:Re}=H,{parser:ne}=H.p,{data:pe}=ne;for(let ye=0;ye<2;ye++)for(let Se=ne.stateSlot(Re,ye?2:1);;Se+=3){if(pe[Se]==65535)if(pe[Se+1]==1)Se=ve(pe,Se+2);else{Te==0&&pe[Se+1]==2&&(Te=this.putAction(ve(pe,Se+2),V,Q,Te));break}pe[Se]==V&&(Te=this.putAction(ve(pe,Se+1),V,Q,Te))}return Te}}var ae;(function(re){re[re.Distance=5]="Distance",re[re.MaxRemainingPerStep=3]="MaxRemainingPerStep",re[re.MinBufferLengthPrune=500]="MinBufferLengthPrune",re[re.ForceReduceLimit=10]="ForceReduceLimit",re[re.CutDepth=15e3]="CutDepth",re[re.CutTo=9e3]="CutTo",re[re.MaxLeftAssociativeReductionCount=300]="MaxLeftAssociativeReductionCount",re[re.MaxStackCount=12]="MaxStackCount"})(ae||(ae={}));class _{constructor(H,V,Q,Te){this.parser=H,this.input=V,this.ranges=Te,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new d(V,Te),this.tokens=new j(H,this.stream),this.topTerm=H.top[1];let{from:Re}=Te[0];this.stacks=[l.start(this,H.top[0],Re)],this.fragments=Q.length&&this.stream.end-Re>H.bufferLength*4?new A(Q,H.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let H=this.stacks,V=this.minStackPos,Q=this.stacks=[],Te,Re;if(this.bigReductionCount>300&&H.length==1){let[ne]=H;for(;ne.forceReduce()&&ne.stack.length&&ne.stack[ne.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let ne=0;ne<H.length;ne++){let pe=H[ne];for(;;){if(this.tokens.mainToken=null,pe.pos>V)Q.push(pe);else{if(this.advanceStack(pe,Q,H))continue;{Te||(Te=[],Re=[]),Te.push(pe);let ye=this.tokens.getMainToken(pe);Re.push(ye.value,ye.end)}}break}}if(!Q.length){let ne=Te&&ce(Te);if(ne)return this.stackToTree(ne);if(this.parser.strict)throw M&&Te&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+V);this.recovering||(this.recovering=5)}if(this.recovering&&Te){let ne=this.stoppedAt!=null&&Te[0].pos>this.stoppedAt?Te[0]:this.runRecovery(Te,Re,Q);if(ne)return this.stackToTree(ne.forceAll())}if(this.recovering){let ne=this.recovering==1?1:this.recovering*3;if(Q.length>ne)for(Q.sort((pe,ye)=>ye.score-pe.score);Q.length>ne;)Q.pop();Q.some(pe=>pe.reducePos>V)&&this.recovering--}else if(Q.length>1){e:for(let ne=0;ne<Q.length-1;ne++){let pe=Q[ne];for(let ye=ne+1;ye<Q.length;ye++){let Se=Q[ye];if(pe.sameState(Se)||pe.buffer.length>500&&Se.buffer.length>500)if((pe.score-Se.score||pe.buffer.length-Se.buffer.length)>0)Q.splice(ye--,1);else{Q.splice(ne--,1);continue e}}}Q.length>12&&Q.splice(12,Q.length-12)}this.minStackPos=Q[0].pos;for(let ne=1;ne<Q.length;ne++)Q[ne].pos<this.minStackPos&&(this.minStackPos=Q[ne].pos);return null}stopAt(H){if(this.stoppedAt!=null&&this.stoppedAt<H)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=H}advanceStack(H,V,Q){let Te=H.pos,{parser:Re}=this,ne=M?this.stackID(H)+" -> ":"";if(this.stoppedAt!=null&&Te>this.stoppedAt)return H.forceReduce()?H:null;if(this.fragments){let Se=H.curContext&&H.curContext.tracker.strict,Ae=Se?H.curContext.hash:0;for(let Ee=this.fragments.nodeAt(Te);Ee;){let xe=this.parser.nodeSet.types[Ee.type.id]==Ee.type?Re.getGoto(H.state,Ee.type.id):-1;if(xe>-1&&Ee.length&&(!Se||(Ee.prop(i.uY.contextHash)||0)==Ae))return H.useNode(Ee,xe),M&&console.log(ne+this.stackID(H)+` (via reuse of ${Re.getName(Ee.type.id)})`),!0;if(!(Ee instanceof i.PH)||Ee.children.length==0||Ee.positions[0]>0)break;let nt=Ee.children[0];if(nt instanceof i.PH&&Ee.positions[0]==0)Ee=nt;else break}}let pe=Re.stateSlot(H.state,4);if(pe>0)return H.reduce(pe),M&&console.log(ne+this.stackID(H)+` (via always-reduce ${Re.getName(pe&65535)})`),!0;if(H.stack.length>=15e3)for(;H.stack.length>9e3&&H.forceReduce(););let ye=this.tokens.getActions(H);for(let Se=0;Se<ye.length;){let Ae=ye[Se++],Ee=ye[Se++],xe=ye[Se++],nt=Se==ye.length||!Q,Tt=nt?H:H.split();if(Tt.apply(Ae,Ee,xe),M&&console.log(ne+this.stackID(Tt)+` (via ${Ae&65536?`reduce of ${Re.getName(Ae&65535)}`:"shift"} for ${Re.getName(Ee)} @ ${Te}${Tt==H?"":", split"})`),nt)return!0;Tt.pos>Te?V.push(Tt):Q.push(Tt)}return!1}advanceFully(H,V){let Q=H.pos;for(;;){if(!this.advanceStack(H,null,null))return!1;if(H.pos>Q)return N(H,V),!0}}runRecovery(H,V,Q){let Te=null,Re=!1;for(let ne=0;ne<H.length;ne++){let pe=H[ne],ye=V[ne<<1],Se=V[(ne<<1)+1],Ae=M?this.stackID(pe)+" -> ":"";if(pe.deadEnd&&(Re||(Re=!0,pe.restart(),M&&console.log(Ae+this.stackID(pe)+" (restarted)"),this.advanceFully(pe,Q))))continue;let Ee=pe.split(),xe=Ae;for(let nt=0;Ee.forceReduce()&&nt<10&&(M&&console.log(xe+this.stackID(Ee)+" (via force-reduce)"),!this.advanceFully(Ee,Q));nt++)M&&(xe=this.stackID(Ee)+" -> ");for(let nt of pe.recoverByInsert(ye))M&&console.log(Ae+this.stackID(nt)+" (via recover-insert)"),this.advanceFully(nt,Q);this.stream.end>pe.pos?(Se==pe.pos&&(Se++,ye=0),pe.recoverByDelete(ye,Se),M&&console.log(Ae+this.stackID(pe)+` (via recover-delete ${this.parser.getName(ye)})`),N(pe,Q)):(!Te||Te.score<pe.score)&&(Te=pe)}return Te}stackToTree(H){return H.close(),i.PH.build({buffer:f.create(H),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:H.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(H){let V=(D||(D=new WeakMap)).get(H);return V||D.set(H,V=String.fromCodePoint(this.nextStackID++)),V+H}}function N(re,H){for(let V=0;V<H.length;V++){let Q=H[V];if(Q.pos==re.pos&&Q.sameState(re)){H[V].score<re.score&&(H[V]=re);return}}H.push(re)}class W{constructor(H,V,Q){this.source=H,this.flags=V,this.disabled=Q}allows(H){return!this.disabled||this.disabled[H]==0}}const he=re=>re;class me{constructor(H){this.start=H.start,this.shift=H.shift||he,this.reduce=H.reduce||he,this.reuse=H.reuse||he,this.hash=H.hash||(()=>0),this.strict=H.strict!==!1}}class fe extends i.iX{constructor(H){if(super(),this.wrappers=[],H.version!=14)throw new RangeError(`Parser version (${H.version}) doesn't match runtime version (14)`);let V=H.nodeNames.split(" ");this.minRepeatTerm=V.length;for(let pe=0;pe<H.repeatNodeCount;pe++)V.push("");let Q=Object.keys(H.topRules).map(pe=>H.topRules[pe][1]),Te=[];for(let pe=0;pe<V.length;pe++)Te.push([]);function Re(pe,ye,Se){Te[pe].push([ye,ye.deserialize(String(Se))])}if(H.nodeProps)for(let pe of H.nodeProps){let ye=pe[0];typeof ye=="string"&&(ye=i.uY[ye]);for(let Se=1;Se<pe.length;){let Ae=pe[Se++];if(Ae>=0)Re(Ae,ye,pe[Se++]);else{let Ee=pe[Se+-Ae];for(let xe=-Ae;xe>0;xe--)Re(pe[Se++],ye,Ee);Se++}}}this.nodeSet=new i.fI(V.map((pe,ye)=>i.Z6.define({name:ye>=this.minRepeatTerm?void 0:pe,id:ye,props:Te[ye],top:Q.indexOf(ye)>-1,error:ye==0,skipped:H.skippedNodes&&H.skippedNodes.indexOf(ye)>-1}))),H.propSources&&(this.nodeSet=this.nodeSet.extend(...H.propSources)),this.strict=!1,this.bufferLength=i.cF;let ne=p(H.tokenData);this.context=H.context,this.specializerSpecs=H.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let pe=0;pe<this.specializerSpecs.length;pe++)this.specialized[pe]=this.specializerSpecs[pe].term;this.specializers=this.specializerSpecs.map(oe),this.states=p(H.states,Uint32Array),this.data=p(H.stateData),this.goto=p(H.goto),this.maxTerm=H.maxTerm,this.tokenizers=H.tokenizers.map(pe=>typeof pe=="number"?new b(ne,pe):pe),this.topRules=H.topRules,this.dialects=H.dialects||{},this.dynamicPrecedences=H.dynamicPrecedences||null,this.tokenPrecTable=H.tokenPrec,this.termNames=H.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(H,V,Q){let Te=new _(this,H,V,Q);for(let Re of this.wrappers)Te=Re(Te,H,V,Q);return Te}getGoto(H,V,Q=!1){let Te=this.goto;if(V>=Te[0])return-1;for(let Re=Te[V+1];;){let ne=Te[Re++],pe=ne&1,ye=Te[Re++];if(pe&&Q)return ye;for(let Se=Re+(ne>>1);Re<Se;Re++)if(Te[Re]==H)return ye;if(pe)return-1}}hasAction(H,V){let Q=this.data;for(let Te=0;Te<2;Te++)for(let Re=this.stateSlot(H,Te?2:1),ne;;Re+=3){if((ne=Q[Re])==65535)if(Q[Re+1]==1)ne=Q[Re=ve(Q,Re+2)];else{if(Q[Re+1]==2)return ve(Q,Re+2);break}if(ne==V||ne==0)return ve(Q,Re+1)}return 0}stateSlot(H,V){return this.states[H*6+V]}stateFlag(H,V){return(this.stateSlot(H,0)&V)>0}validAction(H,V){if(V==this.stateSlot(H,4))return!0;for(let Q=this.stateSlot(H,1);;Q+=3){if(this.data[Q]==65535)if(this.data[Q+1]==1)Q=ve(this.data,Q+2);else return!1;if(V==ve(this.data,Q+1))return!0}}nextStates(H){let V=[];for(let Q=this.stateSlot(H,1);;Q+=3){if(this.data[Q]==65535)if(this.data[Q+1]==1)Q=ve(this.data,Q+2);else break;if(!(this.data[Q+2]&1)){let Te=this.data[Q+1];V.some((Re,ne)=>ne&1&&Re==Te)||V.push(this.data[Q],Te)}}return V}configure(H){let V=Object.assign(Object.create(fe.prototype),this);if(H.props&&(V.nodeSet=this.nodeSet.extend(...H.props)),H.top){let Q=this.topRules[H.top];if(!Q)throw new RangeError(`Invalid top rule name ${H.top}`);V.top=Q}return H.tokenizers&&(V.tokenizers=this.tokenizers.map(Q=>{let Te=H.tokenizers.find(Re=>Re.from==Q);return Te?Te.to:Q})),H.specializers&&(V.specializers=this.specializers.slice(),V.specializerSpecs=this.specializerSpecs.map((Q,Te)=>{let Re=H.specializers.find(pe=>pe.from==Q.external);if(!Re)return Q;let ne=Object.assign(Object.assign({},Q),{external:Re.to});return V.specializers[Te]=oe(ne),ne})),H.contextTracker&&(V.context=H.contextTracker),H.dialect&&(V.dialect=this.parseDialect(H.dialect)),H.strict!=null&&(V.strict=H.strict),H.wrap&&(V.wrappers=V.wrappers.concat(H.wrap)),H.bufferLength!=null&&(V.bufferLength=H.bufferLength),V}hasWrappers(){return this.wrappers.length>0}getName(H){return this.termNames?this.termNames[H]:String(H<=this.maxNode&&this.nodeSet.types[H].name||H)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(H){let V=this.dynamicPrecedences;return V==null?0:V[H]||0}parseDialect(H){let V=Object.keys(this.dialects),Q=V.map(()=>!1);if(H)for(let Re of H.split(" ")){let ne=V.indexOf(Re);ne>=0&&(Q[ne]=!0)}let Te=null;for(let Re=0;Re<V.length;Re++)if(!Q[Re])for(let ne=this.dialects[V[Re]],pe;(pe=this.data[ne++])!=65535;)(Te||(Te=new Uint8Array(this.maxTerm+1)))[pe]=1;return new W(H,Q,Te)}static deserialize(H){return new fe(H)}}function ve(re,H){return re[H]|re[H+1]<<16}function ce(re){let H=null;for(let V of re){let Q=V.p.stoppedAt;(V.pos==V.p.stream.end||Q!=null&&V.pos>Q)&&V.p.parser.stateFlag(V.state,2)&&(!H||H.score<V.score)&&(H=V)}return H}function oe(re){if(re.external){let H=re.extend?1:0;return(V,Q)=>re.external(V,Q)<<1|H}return re.get}},25704:(J,g,t)=>{"use strict";t.d(g,{I:()=>M});var i=t(36289),l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)(function(D){return l.test(D)||D.charCodeAt(0)===111&&D.charCodeAt(1)===110&&D.charCodeAt(2)<91}),m=t(96540),u=0,f=()=>{throw new Error('Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.')},p=null,v=function(){const P=Array.prototype.slice.call(arguments).filter(Boolean),T={},A=[];P.forEach(ae=>{(ae?ae.split(" "):[]).forEach(N=>{if(N.startsWith("atm_")){const[,W]=N.split("_");T[W]=N}else A.push(N)})});const j=[];for(const ae in T)Object.prototype.hasOwnProperty.call(T,ae)&&j.push(T[ae]);return j.push(...A),j.join(" ")},h=v,d=D=>D.toUpperCase()===D,b=D=>P=>D.indexOf(P)===-1,y=(D,P)=>{const T={};return Object.keys(D).filter(b(P)).forEach(A=>{T[A]=D[A]}),T};function w(D,P,T){const A=y(P,T);if(!D){const j=typeof s=="function"?{default:s}:s;Object.keys(A).forEach(ae=>{j.default(ae)||delete A[ae]})}return A}var S=(D,P)=>{},O=0;function R(D){var P;let T="";return A=>{const j=(_,N)=>{const{as:W=D,class:he=T}=_,me=A.propsAsIs===void 0?!(typeof W=="string"&&W.indexOf("-")===-1&&!d(W[0])):A.propsAsIs,fe=w(me,_,["as","class"]);fe.ref=N,fe.className=A.atomic?h(A.class,fe.className||he):h(fe.className||he,A.class);const{vars:ve}=A;if(ve){const ce={};for(const H in ve){const V=ve[H],Q=V[0],Te=V[1]||"",Re=typeof Q=="function"?Q(_):Q;S(Re,A.name),ce[`--${H}`]=`${Re}${Te}`}const oe=fe.style||{},re=Object.keys(oe);re.length>0&&re.forEach(H=>{ce[H]=oe[H]}),fe.style=ce}return D.__linaria&&D!==W?(fe.as=W,m.createElement(D,fe)):m.createElement(W,fe)},ae=m.forwardRef?m.forwardRef(j):_=>{const N=y(_,["innerRef"]);return j(N,_.innerRef)};return ae.displayName=A.name,ae.__linaria={className:A.class||T,extends:D},ae}}var M=R},21489:(J,g,t)=>{"use strict";t.d(g,{Fn:()=>an,hI:()=>Ln,xb:()=>Or,Wy:()=>bi,df:()=>jr,Ed:()=>zi,Hl:()=>Ci,GN:()=>cn,R6:()=>kn,qI:()=>yi,Dh:()=>pi,m3:()=>St,_p:()=>rr,qJ:()=>Gn,x$:()=>En,gw:()=>An,Uq:()=>tr,BG:()=>Jn,ww:()=>Cn,IC:()=>sr,Lf:()=>ei,l4:()=>G,iP:()=>Fn,l3:()=>qn,$i:()=>co,Po:()=>Pe,On:()=>_t,UX:()=>ri,ek:()=>Lt,ab:()=>hn,LW:()=>Pt,Fb:()=>Ht,xB:()=>Wn,K3:()=>He});var i=t(48820),l=t(90365);let s=0;class m{constructor(mr,yr,Rr){this.set=mr,this.base=yr,this.modified=Rr,this.id=s++}static define(mr){if(mr?.base)throw new Error("Can not derive from a modified tag");let yr=new m([],null,[]);if(yr.set.push(yr),mr)for(let Rr of mr.set)yr.set.push(Rr);return yr}static defineModifier(){let mr=new f;return yr=>yr.modified.indexOf(mr)>-1?yr:f.get(yr.base||yr,yr.modified.concat(mr).sort((Rr,ai)=>Rr.id-ai.id))}}let u=0;class f{constructor(){this.instances=[],this.id=u++}static get(mr,yr){if(!yr.length)return mr;let Rr=yr[0].instances.find(nr=>nr.base==mr&&p(yr,nr.modified));if(Rr)return Rr;let ai=[],jt=new m(ai,mr,yr);for(let nr of yr)nr.instances.push(jt);let Pn=v(yr);for(let nr of mr.set)if(!nr.modified.length)for(let Ir of Pn)ai.push(f.get(nr,Ir));return jt}}function p(fr,mr){return fr.length==mr.length&&fr.every((yr,Rr)=>yr==mr[Rr])}function v(fr){let mr=[[]];for(let yr=0;yr<fr.length;yr++)for(let Rr=0,ai=mr.length;Rr<ai;Rr++)mr.push(mr[Rr].concat(fr[yr]));return mr.sort((yr,Rr)=>Rr.length-yr.length)}function h(fr){let mr=Object.create(null);for(let yr in fr){let Rr=fr[yr];Array.isArray(Rr)||(Rr=[Rr]);for(let ai of yr.split(" "))if(ai){let jt=[],Pn=2,nr=ai;for(let Oe=0;;){if(nr=="..."&&Oe>0&&Oe+3==ai.length){Pn=1;break}let pn=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(nr);if(!pn)throw new RangeError("Invalid path: "+ai);if(jt.push(pn[0]=="*"?"":pn[0][0]=='"'?JSON.parse(pn[0]):pn[0]),Oe+=pn[0].length,Oe==ai.length)break;let Qn=ai[Oe++];if(Oe==ai.length&&Qn=="!"){Pn=0;break}if(Qn!="/")throw new RangeError("Invalid path: "+ai);nr=ai.slice(Oe)}let Ir=jt.length-1,fi=jt[Ir];if(!fi)throw new RangeError("Invalid path: "+ai);let Ti=new b(Rr,Pn,Ir>0?jt.slice(0,Ir):null);mr[fi]=Ti.sort(mr[fi])}}return d.add(mr)}const d=new l.uY;class b{constructor(mr,yr,Rr,ai){this.tags=mr,this.mode=yr,this.context=Rr,this.next=ai}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(mr){return!mr||mr.depth<this.depth?(this.next=mr,this):(mr.next=this.sort(mr.next),mr)}get depth(){return this.context?this.context.length:0}}b.empty=new b([],2,null);function y(fr,mr){let yr=Object.create(null);for(let jt of fr)if(!Array.isArray(jt.tag))yr[jt.tag.id]=jt.class;else for(let Pn of jt.tag)yr[Pn.id]=jt.class;let{scope:Rr,all:ai=null}=mr||{};return{style:jt=>{let Pn=ai;for(let nr of jt)for(let Ir of nr.set){let fi=yr[Ir.id];if(fi){Pn=Pn?Pn+" "+fi:fi;break}}return Pn},scope:Rr}}function w(fr,mr){let yr=null;for(let Rr of fr){let ai=Rr.style(mr);ai&&(yr=yr?yr+" "+ai:ai)}return yr}function S(fr,mr,yr,Rr=0,ai=fr.length){let jt=new R(Rr,Array.isArray(mr)?mr:[mr],yr);jt.highlightRange(fr.cursor(),Rr,ai,"",jt.highlighters),jt.flush(ai)}function O(fr,mr,yr,Rr,ai,jt=0,Pn=fr.length){let nr=jt;function Ir(fi,Ti){if(!(fi<=nr)){for(let Oe=fr.slice(nr,fi),pn=0;;){let Qn=Oe.indexOf(` `,pn),Sr=Qn<0?Oe.length:Qn;if(Sr>pn&&Rr(Oe.slice(pn,Sr),Ti),Qn<0)break;ai(),pn=Qn+1}nr=fi}}S(mr,yr,(fi,Ti,Oe)=>{Ir(fi,""),Ir(Ti,Oe)},jt,Pn),Ir(Pn,"")}class R{constructor(mr,yr,Rr){this.at=mr,this.highlighters=yr,this.span=Rr,this.class=""}startSpan(mr,yr){yr!=this.class&&(this.flush(mr),mr>this.at&&(this.at=mr),this.class=yr)}flush(mr){mr>this.at&&this.class&&this.span(this.at,mr,this.class)}highlightRange(mr,yr,Rr,ai,jt){let{type:Pn,from:nr,to:Ir}=mr;if(nr>=Rr||Ir<=yr)return;Pn.isTop&&(jt=this.highlighters.filter(Qn=>!Qn.scope||Qn.scope(Pn)));let fi=ai,Ti=M(mr)||b.empty,Oe=w(jt,Ti.tags);if(Oe&&(fi&&(fi+=" "),fi+=Oe,Ti.mode==1&&(ai+=(ai?" ":"")+Oe)),this.startSpan(Math.max(yr,nr),fi),Ti.opaque)return;let pn=mr.tree&&mr.tree.prop(NodeProp.mounted);if(pn&&pn.overlay){let Qn=mr.node.enter(pn.overlay[0].from+nr,1),Sr=this.highlighters.filter(kr=>!kr.scope||kr.scope(pn.tree.type)),hr=mr.firstChild();for(let kr=0,Ve=nr;;kr++){let Ot=kr<pn.overlay.length?pn.overlay[kr]:null,wn=Ot?Ot.from+nr:Ir,Wt=Math.max(yr,Ve),Yt=Math.min(Rr,wn);if(Wt<Yt&&hr)for(;mr.from<Yt&&(this.highlightRange(mr,Wt,Yt,ai,jt),this.startSpan(Math.min(Yt,mr.to),fi),!(mr.to>=wn||!mr.nextSibling())););if(!Ot||wn>Rr)break;Ve=Ot.to+nr,Ve>yr&&(this.highlightRange(Qn.cursor(),Math.max(yr,Ot.from+nr),Math.min(Rr,Ve),"",Sr),this.startSpan(Math.min(Rr,Ve),fi))}hr&&mr.parent()}else if(mr.firstChild()){pn&&(ai="");do if(!(mr.to<=yr)){if(mr.from>=Rr)break;this.highlightRange(mr,yr,Rr,ai,jt),this.startSpan(Math.min(Rr,mr.to),fi)}while(mr.nextSibling());mr.parent()}}}function M(fr){let mr=fr.type.prop(d);for(;mr&&mr.context&&!fr.matchContext(mr.context);)mr=mr.next;return mr||null}const D=m.define,P=D(),T=D(),A=D(T),j=D(T),ae=D(),_=D(ae),N=D(ae),W=D(),he=D(W),me=D(),fe=D(),ve=D(),ce=D(ve),oe=D(),re={comment:P,lineComment:D(P),blockComment:D(P),docComment:D(P),name:T,variableName:D(T),typeName:A,tagName:D(A),propertyName:j,attributeName:D(j),className:D(T),labelName:D(T),namespace:D(T),macroName:D(T),literal:ae,string:_,docString:D(_),character:D(_),attributeValue:D(_),number:N,integer:D(N),float:D(N),bool:D(ae),regexp:D(ae),escape:D(ae),color:D(ae),url:D(ae),keyword:me,self:D(me),null:D(me),atom:D(me),unit:D(me),modifier:D(me),operatorKeyword:D(me),controlKeyword:D(me),definitionKeyword:D(me),moduleKeyword:D(me),operator:fe,derefOperator:D(fe),arithmeticOperator:D(fe),logicOperator:D(fe),bitwiseOperator:D(fe),compareOperator:D(fe),updateOperator:D(fe),definitionOperator:D(fe),typeOperator:D(fe),controlOperator:D(fe),punctuation:ve,separator:D(ve),bracket:ce,angleBracket:D(ce),squareBracket:D(ce),paren:D(ce),brace:D(ce),content:W,heading:he,heading1:D(he),heading2:D(he),heading3:D(he),heading4:D(he),heading5:D(he),heading6:D(he),contentSeparator:D(W),list:D(W),quote:D(W),emphasis:D(W),strong:D(W),link:D(W),monospace:D(W),strikethrough:D(W),inserted:D(),deleted:D(),changed:D(),invalid:D(),meta:oe,documentMeta:D(oe),annotation:D(oe),processingInstruction:D(oe),definition:m.defineModifier(),constant:m.defineModifier(),function:m.defineModifier(),standard:m.defineModifier(),local:m.defineModifier(),special:m.defineModifier()},H=y([{tag:re.link,class:"tok-link"},{tag:re.heading,class:"tok-heading"},{tag:re.emphasis,class:"tok-emphasis"},{tag:re.strong,class:"tok-strong"},{tag:re.keyword,class:"tok-keyword"},{tag:re.atom,class:"tok-atom"},{tag:re.bool,class:"tok-bool"},{tag:re.url,class:"tok-url"},{tag:re.labelName,class:"tok-labelName"},{tag:re.inserted,class:"tok-inserted"},{tag:re.deleted,class:"tok-deleted"},{tag:re.literal,class:"tok-literal"},{tag:re.string,class:"tok-string"},{tag:re.number,class:"tok-number"},{tag:[re.regexp,re.escape,re.special(re.string)],class:"tok-string2"},{tag:re.variableName,class:"tok-variableName"},{tag:re.local(re.variableName),class:"tok-variableName tok-local"},{tag:re.definition(re.variableName),class:"tok-variableName tok-definition"},{tag:re.special(re.variableName),class:"tok-variableName2"},{tag:re.definition(re.propertyName),class:"tok-propertyName tok-definition"},{tag:re.typeName,class:"tok-typeName"},{tag:re.namespace,class:"tok-namespace"},{tag:re.className,class:"tok-className"},{tag:re.macroName,class:"tok-macroName"},{tag:re.propertyName,class:"tok-propertyName"},{tag:re.operator,class:"tok-operator"},{tag:re.comment,class:"tok-comment"},{tag:re.meta,class:"tok-meta"},{tag:re.invalid,class:"tok-invalid"},{tag:re.punctuation,class:"tok-punctuation"}]),V=147,Q=148,Te=1,Re=2,ne=3,pe=4,ye=5,Se=6,Ae=7,Ee=8,xe=9,nt=10,Tt=11,pt=12,Rt=13,tt=14,U=15,F=16,Y=17,le=18,ke=19,Ye=20,ft=21,wt=22,Ut=23,Ke=24,it=25,At=26,et={inf:V,nan:Q,bool:Te,ignoring:Re,on:ne,group_left:pe,group_right:ye,offset:Se},ee=(fr,mr)=>et[fr.toLowerCase()]||-1,I={avg:Ee,atan2:Ae,bottomk:xe,count:nt,count_values:Tt,group:pt,max:Rt,min:tt,quantile:U,stddev:F,stdvar:Y,sum:le,topk:ke,by:Ye,without:ft,and:wt,or:Ut,unless:Ke,start:it,end:At},K=(fr,mr)=>I[fr.toLowerCase()]||-1,ue=h({LineComment:re.comment,LabelName:re.labelName,StringLiteral:re.string,NumberLiteral:re.number,Duration:re.number,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramQuantile HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":re.function(re.variableName),"Avg Bottomk Count Count_values Group Max Min Quantile Stddev Stdvar Sum Topk":re.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":re.modifier,"And Unless Or":re.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":re.operator,UnaryOp:re.arithmeticOperator,"( )":re.paren,"[ ]":re.squareBracket,"{ }":re.brace,"\u26A0":re.invalid}),De={__proto__:null,absent_over_time:309,absent:311,abs:313,acos:315,acosh:317,asin:319,asinh:321,atan:323,atanh:325,avg_over_time:327,ceil:329,changes:331,clamp:333,clamp_max:335,clamp_min:337,cos:339,cosh:341,count_over_time:343,days_in_month:345,day_of_month:347,day_of_week:349,day_of_year:351,deg:353,delta:355,deriv:357,exp:359,floor:361,histogram_quantile:363,holt_winters:365,hour:367,idelta:369,increase:371,irate:373,label_replace:375,label_join:377,last_over_time:379,ln:381,log10:383,log2:385,max_over_time:387,min_over_time:389,minute:391,month:393,pi:395,predict_linear:397,present_over_time:399,quantile_over_time:401,rad:403,rate:405,resets:407,round:409,scalar:411,sgn:413,sin:415,sinh:417,sort:419,sort_desc:421,sqrt:423,stddev_over_time:425,stdvar_over_time:427,sum_over_time:429,tan:431,tanh:433,timestamp:435,time:437,vector:439,year:441},He=i.U1.deserialize({version:14,states:"6bOYQPOOO'OQPOOOOQO'#C{'#C{O'TQPO'#CzQ'`QQOOOOQO'#De'#DeO'ZQPO'#DdOOQO'#FO'#FOO(mQPO'#FUOYQPO'#FQOYQPO'#FTOOQO'#FW'#FWO.lQSO'#FXO.tQQO'#FVOOQO'#FV'#FVOOQO'#Cy'#CyOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzOOQO'#E{'#E{QOQPOOO0_QPO'#C|O0dQPO'#DRO'ZQPO,59fO0kQQO,59fO2XQPO,59oO2XQPO,59oO2XQPO,59oO2XQPO,59oO2XQPO,59oO8WQQO,5;hO8]QQO,5;kO8eQPO,5;zOOQO,5:O,5:OOOQO,5;j,5;jO8|QQO,5;lO9TQQO,5;oO:kQPO'#FZO:yQPO,5;sOOQO'#FY'#FYOOQO,5;s,5;sOOQO,5;q,5;qO;RQSO'#C}OOQO,59h,59hO;ZQPO,59mO;cQQO'#DSOOQO,59m,59mOOQO1G/Q1G/QO0_QPO'#DWOAcQPO'#DVOAmQPO'#DVOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOAwQSO1G1SOOQO1G1V1G1VOBPQQO1G1VOBUQPO'#FOOOQO'#Fb'#FbOOQO1G1f1G1fOBaQPO1G1fOOQO1G1W1G1WOOQO'#F['#F[OBfQPO,5;uOBkQSO1G1_OOQO1G1_1G1_OOQO'#DP'#DPOBsQPO,59iOOQO'#DO'#DOOOQO,59i,59iOYQPO,59nOOQO1G/X1G/XOOQO,59r,59rOHnQPO,59qOHuQPO,59qOJ^QQO7+$uOJnQQO7+$uOLSQQO7+$uOLjQQO7+$uONRQQO7+$uOOQO7+&n7+&nONlQQO7+&tOOQO7+&q7+&qONtQPO7+'QOOQO1G1a1G1aOOQO1G1`1G1`OOQO7+&y7+&yONyQSO1G/TOOQO1G/T1G/TO! RQQO1G/YOOQO1G/]1G/]O! ]QPO1G/]OOQO<<J`<<J`O!'RQPO<<J`OOQO<<Jl<<JlOOQO1G/U1G/UOOQO7+$o7+$oOOQO7+$w7+$wOOQOAN?zAN?z",stateData:"!'W~O$[OSkOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQO!ZZO#u_O$XVO$YVO$]XO$``O$aaO$bbO$ccO$ddO$eeO$ffO$ggO$hhO$iiO$jjO$kkO$llO$mmO$nnO$ooO$ppO$qqO$rrO$ssO$ttO$uuO$vvO$wwO$xxO$yyO$zzO${{O$||O$}}O%O!OO%P!PO%Q!QO%R!RO%S!SO%T!TO%U!UO%V!VO%W!WO%X!XO%Y!YO%Z!ZO%[![O%]!]O%^!^O%_!_O%`!`O%a!aO%b!bO%c!cO%d!dO%e!eO%f!fO%g!gO%h!hO%i!iO%j!jO%k!kO%l!lO%m!mO%n!nO%o!oO%p!pO%q!qO%r!rO%s!sO%t!tO%wWO%xWO%yVO%{[O~O!ZZO~Od!vOe!vO$]!wO~OU#QOV!zOf!}Og#OOh!}Ox!zO{!zO|!zO}!zO!O!{O!P!{O!Q!|O!R!|O!S!|O!T!|O!U!|O!V!|O$T#RO%u#PO~O$X#TO$Y#TO%y#TOW#xXX#xXY#xXZ#xX[#xX]#xX^#xX_#xX`#xXa#xXb#xXc#xX!Z#xX#u#xX$X#xX$Y#xX$]#xX$`#xX$a#xX$b#xX$c#xX$d#xX$e#xX$f#xX$g#xX$h#xX$i#xX$j#xX$k#xX$l#xX$m#xX$n#xX$o#xX$p#xX$q#xX$r#xX$s#xX$t#xX$u#xX$v#xX$w#xX$x#xX$y#xX$z#xX${#xX$|#xX$}#xX%O#xX%P#xX%Q#xX%R#xX%S#xX%T#xX%U#xX%V#xX%W#xX%X#xX%Y#xX%Z#xX%[#xX%]#xX%^#xX%_#xX%`#xX%a#xX%b#xX%c#xX%d#xX%e#xX%f#xX%g#xX%h#xX%i#xX%j#xX%k#xX%l#xX%m#xX%n#xX%o#xX%p#xX%q#xX%r#xX%s#xX%t#xX%w#xX%x#xX%y#xX%{#xX~Ot#WO%|#ZO~O%{[OU#yXV#yXf#yXg#yXh#yXx#yX{#yX|#yX}#yX!O#yX!P#yX!Q#yX!R#yX!S#yX!T#yX!U#yX!V#yX$T#yX$W#yX%u#yX$_#yX$^#yX~O$]#]O~O$_#aO~PYOd!vOe!vOUnaVnafnagnahnaxna{na|na}na!Ona!Pna!Qna!Rna!Sna!Tna!Una!Vna$Tna$Wna%una$_na$^na~OP#eOQ#cOR#cOWyPXyPYyPZyP[yP]yP^yP_yP`yPayPbyPcyP!ZyP#uyP$XyP$YyP$]yP$`yP$ayP$byP$cyP$dyP$eyP$fyP$gyP$hyP$iyP$jyP$kyP$lyP$myP$nyP$oyP$pyP$qyP$ryP$syP$tyP$uyP$vyP$wyP$xyP$yyP$zyP${yP$|yP$}yP%OyP%PyP%QyP%RyP%SyP%TyP%UyP%VyP%WyP%XyP%YyP%ZyP%[yP%]yP%^yP%_yP%`yP%ayP%byP%cyP%dyP%eyP%fyP%gyP%hyP%iyP%jyP%kyP%lyP%myP%nyP%oyP%pyP%qyP%ryP%syP%tyP%wyP%xyP%yyP%{yP~O#q#kO~O!P#mO#q#lO~Oi#oOj#oO$XVO$YVO%w#nO%x#nO%yVO~O$_#rO~P'`Ox!zOU#waV#waf#wag#wah#wa{#wa|#wa}#wa!O#wa!P#wa!Q#wa!R#wa!S#wa!T#wa!U#wa!V#wa$T#wa$W#wa%u#wa$_#wa$^#wa~O!V#sO$P#sO$Q#sO$R#sO~O$^#uO%|#vO~Ot#wO$_#zO~O$^#{O$_#|O~O$^vX$_vX~P'`OWyXXyXYyXZyX[yX]yX^yX_yX`yXayXbyXcyX!ZyX#uyX$XyX$YyX$]yX$`yX$ayX$byX$cyX$dyX$eyX$fyX$gyX$hyX$iyX$jyX$kyX$lyX$myX$nyX$oyX$pyX$qyX$ryX$syX$tyX$uyX$vyX$wyX$xyX$yyX$zyX${yX$|yX$}yX%OyX%PyX%QyX%RyX%SyX%TyX%UyX%VyX%WyX%XyX%YyX%ZyX%[yX%]yX%^yX%_yX%`yX%ayX%byX%cyX%dyX%eyX%fyX%gyX%hyX%iyX%jyX%kyX%lyX%myX%nyX%oyX%pyX%qyX%ryX%syX%tyX%wyX%xyX%yyX%{yX~OS$OOT$OO~P;mOQ#cOR#cO~P;mO%v$VO%z$WO~O#q$XO~O$X#TO$Y#TO%y#TO~O$]$YO~O#u$ZO~Ot#WO%|$]O~O$^$^O$_$_O~OWyaXyaYyaZya[ya]ya^ya_ya`yaayabyacya!Zya#uya$Xya$Yya$`ya$aya$bya$cya$dya$eya$fya$gya$hya$iya$jya$kya$lya$mya$nya$oya$pya$qya$rya$sya$tya$uya$vya$wya$xya$yya$zya${ya$|ya$}ya%Oya%Pya%Qya%Rya%Sya%Tya%Uya%Vya%Wya%Xya%Yya%Zya%[ya%]ya%^ya%_ya%`ya%aya%bya%cya%dya%eya%fya%gya%hya%iya%jya%kya%lya%mya%nya%oya%pya%qya%rya%sya%tya%wya%xya%yya%{ya~O$]#]O~PB{OS$bOT$bO$]ya~PB{Ox!zOUwqfwqgwqhwq!Owq!Pwq!Qwq!Rwq!Swq!Twq!Uwq!Vwq$Twq$Wwq%uwq$_wq$^wq~OVwq{wq|wq}wq~PISOV!zO{!zO|!zO}!zO~PISOV!zOx!zO{!zO|!zO}!zO!O!{O!P!{OUwqfwqgwqhwq$Twq$Wwq%uwq$_wq$^wq~O!Qwq!Rwq!Swq!Twq!Uwq!Vwq~PKOO!Q!|O!R!|O!S!|O!T!|O!U!|O!V!|O~PKOOV!zOf!}Oh!}Ox!zO{!zO|!zO}!zO!O!{O!P!{O!Q!|O!R!|O!S!|O!T!|O!U!|O!V!|O~OUwqgwq$Twq$Wwq%uwq$_wq$^wq~PMQO#q$dO%v$cO~O$_$eO~Ot#wO$_$gO~O$^vi$_vi~P'`O$]#]OWyiXyiYyiZyi[yi]yi^yi_yi`yiayibyicyi!Zyi#uyi$Xyi$Yyi$`yi$ayi$byi$cyi$dyi$eyi$fyi$gyi$hyi$iyi$jyi$kyi$lyi$myi$nyi$oyi$pyi$qyi$ryi$syi$tyi$uyi$vyi$wyi$xyi$yyi$zyi${yi$|yi$}yi%Oyi%Pyi%Qyi%Ryi%Syi%Tyi%Uyi%Vyi%Wyi%Xyi%Yyi%Zyi%[yi%]yi%^yi%_yi%`yi%ayi%byi%cyi%dyi%eyi%fyi%gyi%hyi%iyi%jyi%kyi%lyi%myi%nyi%oyi%pyi%qyi%ryi%syi%tyi%wyi%xyi%yyi%{yi~O%v$iO~O",goto:"(v$VPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$W$v%S%`%f%r%uP%{&U$vP&X&hPPPPPPPPPPP$v&r'OP'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O$vP'[$v$vP$v$v'k$v'w(W(g(j(pPPP$vP(sQSOQ#UXQ#VYQ#`!wQ$Q#fQ$R#gQ$S#hQ$T#iQ$U#jR$`#{e_OXY!w#f#g#h#i#j#{eROXY!w#f#g#h#i#j#{Q!xRR#b!yQ#^!vQ#}#cQ$a$OR$h$bR#x#]Q#y#]R$f$^Q!yRQ#SUR#b!xR#_!wQ#f!zQ#g!{Q#h!|Q#i!}R#j#OY#d!z!{!|!}#OR$P#eeUOXY!w#f#g#h#i#j#{eTOXY!w#f#g#h#i#j#{d_OXY!w#f#g#h#i#j#{R#p#ReYOXY!w#f#g#h#i#j#{d]OXY!w#f#g#h#i#j#{R!uPd^OXY!w#f#g#h#i#j#{R#[]R#X[Q#Y[R$[#uR#t#WR#q#R",nodeNames:"\u26A0 Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL Expr AggregateExpr AggregateOp AggregateModifier GroupingLabels GroupingLabelList GroupingLabel LabelName FunctionCallBody FunctionCallArgs BinaryExpr Pow BinModifiers OnOrIgnoring Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramQuantile HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector Duration NumberLiteral OffsetExpr ParenExpr StringLiteral SubqueryExpr UnaryExpr UnaryOp VectorSelector MetricIdentifier LabelMatchers LabelMatchList LabelMatcher MatchOp EqlSingle EqlRegex NeqRegex StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:228,propSources:[ue],skippedNodes:[0,27],repeatNodeCount:0,tokenData:"1R~RwX^#lpq#lqr$ars$tst%huv%swx%xxy&gyz&lz{&q{|&v|}&}}!O'S!O!P'Z!P!Q(Z!Q!R(`!R![)W![!]-r!^!_.n!_!`.{!`!a/b!b!c/o!c!}/t!}#O0[#P#Q0a#Q#R0f#R#S/t#S#T0k#T#o/t#o#p0w#q#r0|#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$[~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$R~~$yU#u~OY$tZr$trs%]s#O$t#O#P%b#P~$t~%bO#u~~%ePO~$t~%mQk~OY%hZ~%h~%xO}~~%}U#u~OY%xZw%xwx%]x#O%x#O#P&a#P~%x~&dPO~%x~&lO$]~~&qO$_~~&vO{~R&}O%xP!OQ~'SO$^~R'ZO%wP!PQP'^P!Q!['aP'fR%yP!Q!['a!g!h'o#X#Y'oP'rR{|'{}!O'{!Q![(RP(OP!Q![(RP(WP%yP!Q![(R~(`O|~R(eZ%yP!O!P'a!Q![)W!g!h'o#W#X){#X#Y'o#[#]*d#a#b*x#g#h+l#k#l+}#l#m-W#m#n,iR)]Y%yP!O!P'a!Q![)W!g!h'o#W#X){#X#Y'o#[#]*d#a#b*x#g#h+l#k#l+}#m#n,iQ*QP#qQ!Q![*TQ*WS!Q![*T#[#]*d#a#b*x#g#h+lQ*iP#qQ!Q![*lQ*oR!Q![*l#a#b*x#g#h+lQ*}Q#qQ!Q![+T#g#h+gQ+WR!Q![+T#a#b+a#g#h+lQ+dP#g#h+gQ+lO#qQQ+qP#qQ!Q![+tQ+wQ!Q![+t#a#b+aQ,SP#qQ!Q![,VQ,YT!Q![,V#W#X){#[#]*d#a#b*x#g#h+lQ,nP#qQ!Q![,qQ,tU!Q![,q#W#X){#[#]*d#a#b*x#g#h+l#k#l+}P-ZR!Q![-d!c!i-d#T#Z-dP-iR%yP!Q![-d!c!i-d#T#Z-dV-yT%zS!ZR!Q![.Y![!].Y!c!}.Y#R#S.Y#T#o.YR._T!ZR!Q![.Y![!].Y!c!}.Y#R#S.Y#T#o.Y~.sP!U~!_!`.v~.{O!T~~/QQ$PP!_!`/W#r#s/]Q/]O!QQ~/bO$Q~~/gP!S~!_!`/j~/oO!R~~/tO$T~V/{T!ZRtS!Q![/t![!].Y!c!}/t#R#S/t#T#o/t~0aO%u~~0fO%v~~0kOx~~0nRO#S0k#S#T%]#T~0k~0|O%{~~1RO%|~",tokenizers:[0,1,2],topRules:{PromQL:[0,28],MetricName:[1,145]},specialized:[{term:57,get:(fr,mr)=>ee(fr)<<1},{term:57,get:(fr,mr)=>K(fr)<<1|1},{term:57,get:fr=>De[fr]||-1}],tokenPrec:0}),Fe=147,ze=148,qe=1,We=2,_t=3,ct=4,Ge=5,st=6,Me=7,ie=8,ge=9,z=10,be=11,Qe=12,Bt=13,nn=14,bt=15,at=16,$t=17,On=18,Ct=19,Zt=20,Wn=21,Zn=22,xt=23,Xe=24,gn=25,Qt=26,Dt=27,hn=28,cn=29,an=30,Or=31,Ln=32,En=33,Gn=34,rr=35,sr=36,pi=37,yi=38,jr=39,ui=40,bi=41,ri=42,hi=43,Si=44,Kr=45,xi=46,Ai=47,Pi=48,io=49,lo=50,Gr=51,un=52,qn=53,kn=54,St=55,ln=56,An=57,Cr=58,_i=59,Sn=60,ir=61,mt=62,fn=63,gt=64,tn=65,Vn=66,Ur=67,$r=68,Pr=69,zr=70,gi=71,$i=72,eo=73,ki=74,so=75,Ho=76,ra=77,So=78,gr=79,di=80,Vi=81,Ro=82,na=83,ta=84,aa=85,vi=86,to=87,$o=88,ja=89,hs=90,ro=91,as=92,rn=93,Dr=94,Lr=95,li=96,Zi=97,Di=98,wo=99,Go=100,Ko=101,Ie=102,yt=103,on=104,_n=105,er=106,or=107,Er=108,Mi=109,Ui=110,Nn=111,cr=112,ni=113,Xr=114,Jr=115,Qi=116,Fo=117,No=118,Jo=119,br=120,Yn=121,Z=122,se=123,G=124,B=125,Pe=126,dt=127,Lt=128,Pt=129,$e=130,ut=131,zt=132,Ht=133,Fn=134,Cn=135,tr=136,Jn=137,ei=138,Ci=139,zi=140,co=141,Xo=142,Eo=143,Yo=144,Xn=145},80279:(J,g,t)=>{"use strict";t.d(g,{s:()=>u});var i=t(16792),l=t(7887),s=t(96540),m=t(82148);function u(f,p){let{role:v="dialog"}=f,h=(0,i.X1)();h=f["aria-label"]?void 0:h;let d=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(p.current&&!p.current.contains(document.activeElement)){(0,l.lY)(p.current);let b=setTimeout(()=>{document.activeElement===p.current&&(d.current=!0,p.current&&(p.current.blur(),(0,l.lY)(p.current)),d.current=!1)},500);return()=>{clearTimeout(b)}}},[p]),(0,m.Se)(),{dialogProps:{...(0,i.$X)(f,{labelable:!0}),role:v,tabIndex:-1,"aria-labelledby":f["aria-labelledby"]||h,onBlur:b=>{d.current&&b.stopPropagation()}},titleProps:{id:h}}}},7887:(J,g,t)=>{"use strict";t.d(g,{Pu:()=>j,lY:()=>m,n1:()=>d,og:()=>Q});var i=t(16792),l=t(96540),s=t(17452);function m(Ee){const xe=(0,i.TW)(Ee);if((0,s.ME)()==="virtual"){let nt=xe.activeElement;(0,i.vg)(()=>{xe.activeElement===nt&&Ee.isConnected&&(0,i.eC)(Ee)})}else(0,i.eC)(Ee)}function u(Ee){const xe=(0,i.mD)(Ee);if(!(Ee instanceof xe.HTMLElement)&&!(Ee instanceof xe.SVGElement))return!1;let{display:nt,visibility:Tt}=Ee.style,pt=nt!=="none"&&Tt!=="hidden"&&Tt!=="collapse";if(pt){const{getComputedStyle:Rt}=Ee.ownerDocument.defaultView;let{display:tt,visibility:U}=Rt(Ee);pt=tt!=="none"&&U!=="hidden"&&U!=="collapse"}return pt}function f(Ee,xe){return!Ee.hasAttribute("hidden")&&(Ee.nodeName==="DETAILS"&&xe&&xe.nodeName!=="SUMMARY"?Ee.hasAttribute("open"):!0)}function p(Ee,xe){return Ee.nodeName!=="#comment"&&u(Ee)&&f(Ee,xe)&&(!Ee.parentElement||p(Ee.parentElement,Ee))}const v=l.createContext(null);let h=null;function d(Ee){let{children:xe,contain:nt,restoreFocus:Tt,autoFocus:pt}=Ee,Rt=(0,l.useRef)(null),tt=(0,l.useRef)(null),U=(0,l.useRef)([]),{parentNode:F}=(0,l.useContext)(v)||{},Y=(0,l.useMemo)(()=>new H({scopeRef:U}),[U]);(0,i.Nf)(()=>{let Ye=F||V.root;if(V.getTreeNode(Ye.scopeRef)&&h&&!ae(h,Ye.scopeRef)){let ft=V.getTreeNode(h);ft&&(Ye=ft)}Ye.addChild(Y),V.addNode(Y)},[Y,F]),(0,i.Nf)(()=>{let Ye=V.getTreeNode(U);Ye&&(Ye.contain=!!nt)},[nt]),(0,i.Nf)(()=>{var Ye;let ft=(Ye=Rt.current)===null||Ye===void 0?void 0:Ye.nextSibling,wt=[];for(;ft&&ft!==tt.current;)wt.push(ft),ft=ft.nextSibling;U.current=wt},[xe]),he(U,Tt,nt),D(U,nt),fe(U,Tt,nt),W(U,pt),(0,l.useEffect)(()=>{const Ye=(0,i.TW)(U.current?U.current[0]:void 0).activeElement;let ft=null;if(T(Ye,U.current)){for(let wt of V.traverse())wt.scopeRef&&T(Ye,wt.scopeRef.current)&&(ft=wt);ft===V.getTreeNode(U)&&(h=ft.scopeRef)}},[U]),(0,i.Nf)(()=>()=>{var Ye,ft,wt;let Ut=(wt=(ft=V.getTreeNode(U))===null||ft===void 0||(Ye=ft.parent)===null||Ye===void 0?void 0:Ye.scopeRef)!==null&&wt!==void 0?wt:null;(U===h||ae(U,h))&&(!Ut||V.getTreeNode(Ut))&&(h=Ut),V.removeTreeNode(U)},[U]);let le=(0,l.useMemo)(()=>y(U),[]),ke=(0,l.useMemo)(()=>({focusManager:le,parentNode:Y}),[Y,le]);return l.createElement(v.Provider,{value:ke},l.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:Rt}),xe,l.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:tt}))}function b(){var Ee;return(Ee=$6nfFC$useContext(v))===null||Ee===void 0?void 0:Ee.focusManager}function y(Ee){return{focusNext(xe={}){let nt=Ee.current,{from:Tt,tabbable:pt,wrap:Rt,accept:tt}=xe,U=Tt||(0,i.TW)(nt[0]).activeElement,F=nt[0].previousElementSibling,Y=R(nt),le=ve(Y,{tabbable:pt,accept:tt},nt);le.currentNode=T(U,nt)?U:F;let ke=le.nextNode();return!ke&&Rt&&(le.currentNode=F,ke=le.nextNode()),ke&&_(ke,!0),ke},focusPrevious(xe={}){let nt=Ee.current,{from:Tt,tabbable:pt,wrap:Rt,accept:tt}=xe,U=Tt||(0,i.TW)(nt[0]).activeElement,F=nt[nt.length-1].nextElementSibling,Y=R(nt),le=ve(Y,{tabbable:pt,accept:tt},nt);le.currentNode=T(U,nt)?U:F;let ke=le.previousNode();return!ke&&Rt&&(le.currentNode=F,ke=le.previousNode()),ke&&_(ke,!0),ke},focusFirst(xe={}){let nt=Ee.current,{tabbable:Tt,accept:pt}=xe,Rt=R(nt),tt=ve(Rt,{tabbable:Tt,accept:pt},nt);tt.currentNode=nt[0].previousElementSibling;let U=tt.nextNode();return U&&_(U,!0),U},focusLast(xe={}){let nt=Ee.current,{tabbable:Tt,accept:pt}=xe,Rt=R(nt),tt=ve(Rt,{tabbable:Tt,accept:pt},nt);tt.currentNode=nt[nt.length-1].nextElementSibling;let U=tt.previousNode();return U&&_(U,!0),U}}}const w=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],S=w.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";w.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const O=w.join(':not([hidden]):not([tabindex="-1"]),');function R(Ee){return Ee[0].parentElement}function M(Ee){let xe=V.getTreeNode(h);for(;xe&&xe.scopeRef!==Ee;){if(xe.contain)return!1;xe=xe.parent}return!0}function D(Ee,xe){let nt=(0,l.useRef)(),Tt=(0,l.useRef)();(0,i.Nf)(()=>{let pt=Ee.current;if(!xe){Tt.current&&(cancelAnimationFrame(Tt.current),Tt.current=void 0);return}const Rt=(0,i.TW)(pt?pt[0]:void 0);let tt=Y=>{if(Y.key!=="Tab"||Y.altKey||Y.ctrlKey||Y.metaKey||!M(Ee))return;let le=Rt.activeElement,ke=Ee.current;if(!ke||!T(le,ke))return;let Ye=R(ke),ft=ve(Ye,{tabbable:!0},ke);if(!le)return;ft.currentNode=le;let wt=Y.shiftKey?ft.previousNode():ft.nextNode();wt||(ft.currentNode=Y.shiftKey?ke[ke.length-1].nextElementSibling:ke[0].previousElementSibling,wt=Y.shiftKey?ft.previousNode():ft.nextNode()),Y.preventDefault(),wt&&_(wt,!0)},U=Y=>{(!h||ae(h,Ee))&&T(Y.target,Ee.current)?(h=Ee,nt.current=Y.target):M(Ee)&&!A(Y.target,Ee)?nt.current?nt.current.focus():h&&h.current&&N(h.current):M(Ee)&&(nt.current=Y.target)},F=Y=>{Tt.current&&cancelAnimationFrame(Tt.current),Tt.current=requestAnimationFrame(()=>{if(Rt.activeElement&&M(Ee)&&!A(Rt.activeElement,Ee))if(h=Ee,Rt.body.contains(Y.target)){var le;nt.current=Y.target,(le=nt.current)===null||le===void 0||le.focus()}else h.current&&N(h.current)})};return Rt.addEventListener("keydown",tt,!1),Rt.addEventListener("focusin",U,!1),pt?.forEach(Y=>Y.addEventListener("focusin",U,!1)),pt?.forEach(Y=>Y.addEventListener("focusout",F,!1)),()=>{Rt.removeEventListener("keydown",tt,!1),Rt.removeEventListener("focusin",U,!1),pt?.forEach(Y=>Y.removeEventListener("focusin",U,!1)),pt?.forEach(Y=>Y.removeEventListener("focusout",F,!1))}},[Ee,xe]),(0,i.Nf)(()=>()=>{Tt.current&&cancelAnimationFrame(Tt.current)},[Tt])}function P(Ee){return A(Ee)}function T(Ee,xe){return!Ee||!xe?!1:xe.some(nt=>nt.contains(Ee))}function A(Ee,xe=null){if(Ee instanceof Element&&Ee.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:nt}of V.traverse(V.getTreeNode(xe)))if(nt&&T(Ee,nt.current))return!0;return!1}function j(Ee){return A(Ee,h)}function ae(Ee,xe){var nt;let Tt=(nt=V.getTreeNode(xe))===null||nt===void 0?void 0:nt.parent;for(;Tt;){if(Tt.scopeRef===Ee)return!0;Tt=Tt.parent}return!1}function _(Ee,xe=!1){if(Ee!=null&&!xe)try{m(Ee)}catch{}else if(Ee!=null)try{Ee.focus()}catch{}}function N(Ee,xe=!0){let nt=Ee[0].previousElementSibling,Tt=R(Ee),pt=ve(Tt,{tabbable:xe},Ee);pt.currentNode=nt;let Rt=pt.nextNode();xe&&!Rt&&(Tt=R(Ee),pt=ve(Tt,{tabbable:!1},Ee),pt.currentNode=nt,Rt=pt.nextNode()),_(Rt)}function W(Ee,xe){const nt=l.useRef(xe);(0,l.useEffect)(()=>{if(nt.current){h=Ee;const Tt=(0,i.TW)(Ee.current?Ee.current[0]:void 0);!T(Tt.activeElement,h.current)&&Ee.current&&N(Ee.current)}nt.current=!1},[Ee])}function he(Ee,xe,nt){(0,i.Nf)(()=>{if(xe||nt)return;let Tt=Ee.current;const pt=(0,i.TW)(Tt?Tt[0]:void 0);let Rt=tt=>{let U=tt.target;T(U,Ee.current)?h=Ee:P(U)||(h=null)};return pt.addEventListener("focusin",Rt,!1),Tt?.forEach(tt=>tt.addEventListener("focusin",Rt,!1)),()=>{pt.removeEventListener("focusin",Rt,!1),Tt?.forEach(tt=>tt.removeEventListener("focusin",Rt,!1))}},[Ee,xe,nt])}function me(Ee){let xe=V.getTreeNode(h);for(;xe&&xe.scopeRef!==Ee;){if(xe.nodeToRestore)return!1;xe=xe.parent}return xe?.scopeRef===Ee}function fe(Ee,xe,nt){const Tt=(0,l.useRef)(typeof document<"u"?(0,i.TW)(Ee.current?Ee.current[0]:void 0).activeElement:null);(0,i.Nf)(()=>{let pt=Ee.current;const Rt=(0,i.TW)(pt?pt[0]:void 0);if(!xe||nt)return;let tt=()=>{(!h||ae(h,Ee))&&T(Rt.activeElement,Ee.current)&&(h=Ee)};return Rt.addEventListener("focusin",tt,!1),pt?.forEach(U=>U.addEventListener("focusin",tt,!1)),()=>{Rt.removeEventListener("focusin",tt,!1),pt?.forEach(U=>U.removeEventListener("focusin",tt,!1))}},[Ee,nt]),(0,i.Nf)(()=>{const pt=(0,i.TW)(Ee.current?Ee.current[0]:void 0);if(!xe)return;let Rt=tt=>{if(tt.key!=="Tab"||tt.altKey||tt.ctrlKey||tt.metaKey||!M(Ee))return;let U=pt.activeElement;if(!T(U,Ee.current))return;let F=V.getTreeNode(Ee);if(!F)return;let Y=F.nodeToRestore,le=ve(pt.body,{tabbable:!0});le.currentNode=U;let ke=tt.shiftKey?le.previousNode():le.nextNode();if((!Y||!pt.body.contains(Y)||Y===pt.body)&&(Y=void 0,F.nodeToRestore=void 0),(!ke||!T(ke,Ee.current))&&Y){le.currentNode=Y;do ke=tt.shiftKey?le.previousNode():le.nextNode();while(T(ke,Ee.current));tt.preventDefault(),tt.stopPropagation(),ke?_(ke,!0):P(Y)?_(Y,!0):U.blur()}};return nt||pt.addEventListener("keydown",Rt,!0),()=>{nt||pt.removeEventListener("keydown",Rt,!0)}},[Ee,xe,nt]),(0,i.Nf)(()=>{const pt=(0,i.TW)(Ee.current?Ee.current[0]:void 0);if(!xe)return;let Rt=V.getTreeNode(Ee);if(Rt){var tt;return Rt.nodeToRestore=(tt=Tt.current)!==null&&tt!==void 0?tt:void 0,()=>{let U=V.getTreeNode(Ee);if(!U)return;let F=U.nodeToRestore;if(xe&&F&&(T(pt.activeElement,Ee.current)||pt.activeElement===pt.body&&me(Ee))){let Y=V.clone();requestAnimationFrame(()=>{if(pt.activeElement===pt.body){let le=Y.getTreeNode(Ee);for(;le;){if(le.nodeToRestore&&le.nodeToRestore.isConnected){_(le.nodeToRestore);return}le=le.parent}for(le=Y.getTreeNode(Ee);le;){if(le.scopeRef&&le.scopeRef.current&&V.getTreeNode(le.scopeRef)){N(le.scopeRef.current,!0);return}le=le.parent}}})}}}},[Ee,xe])}function ve(Ee,xe,nt){let Tt=xe?.tabbable?O:S,pt=(0,i.TW)(Ee).createTreeWalker(Ee,NodeFilter.SHOW_ELEMENT,{acceptNode(Rt){var tt;return!(xe==null||(tt=xe.from)===null||tt===void 0)&&tt.contains(Rt)?NodeFilter.FILTER_REJECT:Rt.matches(Tt)&&p(Rt)&&(!nt||T(Rt,nt))&&(!xe?.accept||xe.accept(Rt))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return xe?.from&&(pt.currentNode=xe.from),pt}function ce(Ee,xe={}){return{focusNext(nt={}){let Tt=Ee.current;if(!Tt)return null;let{from:pt,tabbable:Rt=xe.tabbable,wrap:tt=xe.wrap,accept:U=xe.accept}=nt,F=pt||$6nfFC$getOwnerDocument(Tt).activeElement,Y=ve(Tt,{tabbable:Rt,accept:U});Tt.contains(F)&&(Y.currentNode=F);let le=Y.nextNode();return!le&&tt&&(Y.currentNode=Tt,le=Y.nextNode()),le&&_(le,!0),le},focusPrevious(nt=xe){let Tt=Ee.current;if(!Tt)return null;let{from:pt,tabbable:Rt=xe.tabbable,wrap:tt=xe.wrap,accept:U=xe.accept}=nt,F=pt||$6nfFC$getOwnerDocument(Tt).activeElement,Y=ve(Tt,{tabbable:Rt,accept:U});if(Tt.contains(F))Y.currentNode=F;else{let ke=oe(Y);return ke&&_(ke,!0),ke??null}let le=Y.previousNode();if(!le&&tt){Y.currentNode=Tt;let ke=oe(Y);if(!ke)return null;le=ke}return le&&_(le,!0),le??null},focusFirst(nt=xe){let Tt=Ee.current;if(!Tt)return null;let{tabbable:pt=xe.tabbable,accept:Rt=xe.accept}=nt,U=ve(Tt,{tabbable:pt,accept:Rt}).nextNode();return U&&_(U,!0),U},focusLast(nt=xe){let Tt=Ee.current;if(!Tt)return null;let{tabbable:pt=xe.tabbable,accept:Rt=xe.accept}=nt,tt=ve(Tt,{tabbable:pt,accept:Rt}),U=oe(tt);return U&&_(U,!0),U??null}}}function oe(Ee){let xe,nt;do nt=Ee.lastChild(),nt&&(xe=nt);while(nt);return xe}class re{get size(){return this.fastMap.size}getTreeNode(xe){return this.fastMap.get(xe)}addTreeNode(xe,nt,Tt){let pt=this.fastMap.get(nt??null);if(!pt)return;let Rt=new H({scopeRef:xe});pt.addChild(Rt),Rt.parent=pt,this.fastMap.set(xe,Rt),Tt&&(Rt.nodeToRestore=Tt)}addNode(xe){this.fastMap.set(xe.scopeRef,xe)}removeTreeNode(xe){if(xe===null)return;let nt=this.fastMap.get(xe);if(!nt)return;let Tt=nt.parent;for(let Rt of this.traverse())Rt!==nt&&nt.nodeToRestore&&Rt.nodeToRestore&&nt.scopeRef&&nt.scopeRef.current&&T(Rt.nodeToRestore,nt.scopeRef.current)&&(Rt.nodeToRestore=nt.nodeToRestore);let pt=nt.children;Tt&&(Tt.removeChild(nt),pt.size>0&&pt.forEach(Rt=>Tt&&Tt.addChild(Rt))),this.fastMap.delete(nt.scopeRef)}*traverse(xe=this.root){if(xe.scopeRef!=null&&(yield xe),xe.children.size>0)for(let nt of xe.children)yield*this.traverse(nt)}clone(){var xe;let nt=new re;var Tt;for(let pt of this.traverse())nt.addTreeNode(pt.scopeRef,(Tt=(xe=pt.parent)===null||xe===void 0?void 0:xe.scopeRef)!==null&&Tt!==void 0?Tt:null,pt.nodeToRestore);return nt}constructor(){this.fastMap=new Map,this.root=new H({scopeRef:null}),this.fastMap.set(null,this.root)}}class H{addChild(xe){this.children.add(xe),xe.parent=this}removeChild(xe){this.children.delete(xe),xe.parent=void 0}constructor(xe){this.children=new Set,this.contain=!1,this.scopeRef=xe.scopeRef}}let V=new re;function Q(Ee={}){let{autoFocus:xe=!1,isTextInput:nt,within:Tt}=Ee,pt=(0,l.useRef)({isFocused:!1,isFocusVisible:xe||(0,s.pP)()}),[Rt,tt]=(0,l.useState)(!1),[U,F]=(0,l.useState)(()=>pt.current.isFocused&&pt.current.isFocusVisible),Y=(0,l.useCallback)(()=>F(pt.current.isFocused&&pt.current.isFocusVisible),[]),le=(0,l.useCallback)(ft=>{pt.current.isFocused=ft,tt(ft),Y()},[Y]);(0,s.K7)(ft=>{pt.current.isFocusVisible=ft,Y()},[],{isTextInput:nt});let{focusProps:ke}=(0,s.iQ)({isDisabled:Tt,onFocusChange:le}),{focusWithinProps:Ye}=(0,s.Rb)({isDisabled:!Tt,onFocusWithinChange:le});return{isFocused:Rt,isFocusVisible:U,focusProps:Tt?Ye:ke}}function Te(Ee){let{children:xe,focusClass:nt,focusRingClass:Tt}=Ee,{isFocused:pt,isFocusVisible:Rt,focusProps:tt}=Q(Ee),U=$6nfFC$react.Children.only(xe);return $6nfFC$react.cloneElement(U,$6nfFC$mergeProps(U.props,{...tt,className:$6nfFC$clsx({[nt||""]:pt,[Tt||""]:Rt})}))}let Re=null;function ne(Ee){let xe=$6nfFC$useContext(Re)||{};$6nfFC$useSyncRef(xe,Ee);let{ref:nt,...Tt}=xe;return Tt}function pe(Ee,xe){let{children:nt,...Tt}=Ee,pt=$6nfFC$useObjectRef(xe),Rt={...Tt,ref:pt};return $6nfFC$react.createElement(Re.Provider,{value:Rt},nt)}let ye=null;function Se(Ee,xe){let{focusProps:nt}=$6nfFC$useFocus(Ee),{keyboardProps:Tt}=$6nfFC$useKeyboard(Ee),pt=$6nfFC$mergeProps(nt,Tt),Rt=ne(xe),tt=Ee.isDisabled?{}:Rt,U=$6nfFC$useRef(Ee.autoFocus);return $6nfFC$useEffect(()=>{U.current&&xe.current&&m(xe.current),U.current=!1},[xe]),{focusableProps:$6nfFC$mergeProps({...pt,tabIndex:Ee.excludeFromTabOrder&&!Ee.isDisabled?-1:void 0},tt)}}function Ae(Ee,xe){let nt=xe?.isDisabled,[Tt,pt]=$6nfFC$useState(!1);return $6nfFC$useLayoutEffect(()=>{if(Ee?.current&&!nt){let Rt=()=>{if(Ee.current){let U=ve(Ee.current,{tabbable:!0});pt(!!U.nextNode())}};Rt();let tt=new MutationObserver(Rt);return tt.observe(Ee.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{tt.disconnect()}}}),nt?!1:Tt}},17452:(J,g,t)=>{"use strict";t.d(g,{$Z:()=>et,K7:()=>ke,ME:()=>Rt,Rb:()=>Ye,iQ:()=>ce,pP:()=>pt});var i=t(16792),l=t(96540);let s="default",m="",u=new WeakMap;function f(ze){if($bx7SL$isIOS()){if(s==="default"){const qe=$bx7SL$getOwnerDocument(ze);m=qe.documentElement.style.webkitUserSelect,qe.documentElement.style.webkitUserSelect="none"}s="disabled"}else(ze instanceof HTMLElement||ze instanceof SVGElement)&&(u.set(ze,ze.style.userSelect),ze.style.userSelect="none")}function p(ze){if($bx7SL$isIOS()){if(s!=="disabled")return;s="restoring",setTimeout(()=>{$bx7SL$runAfterTransition(()=>{if(s==="restoring"){const qe=$bx7SL$getOwnerDocument(ze);qe.documentElement.style.webkitUserSelect==="none"&&(qe.documentElement.style.webkitUserSelect=m||""),m="",s="default"}})},300)}else if((ze instanceof HTMLElement||ze instanceof SVGElement)&&ze&&u.has(ze)){let qe=u.get(ze);ze.style.userSelect==="none"&&(ze.style.userSelect=qe),ze.getAttribute("style")===""&&ze.removeAttribute("style"),u.delete(ze)}}const v=l.createContext({register:()=>{}});v.displayName="PressResponderContext";function h(ze){let qe=$bx7SL$useContext(v);if(qe){let{register:We,..._t}=qe;ze=$bx7SL$mergeProps(_t,ze),We()}return $bx7SL$useSyncRef(qe,ze.ref),ze}var d=new WeakMap;class b{continuePropagation(){$bx7SL$_2(this,d,!1)}get shouldStopPropagation(){return $bx7SL$_(this,d)}constructor(qe,We,_t){$bx7SL$_1(this,d,{writable:!0,value:void 0}),$bx7SL$_2(this,d,!0),this.type=qe,this.pointerType=We,this.target=_t.currentTarget,this.shiftKey=_t.shiftKey,this.metaKey=_t.metaKey,this.ctrlKey=_t.ctrlKey,this.altKey=_t.altKey}}const y=Symbol("linkClicked");function w(ze){let{onPress:qe,onPressChange:We,onPressStart:_t,onPressEnd:ct,onPressUp:Ge,isDisabled:st,isPressed:Me,preventFocusOnPress:ie,shouldCancelOnPointerExit:ge,allowTextSelectionOnPress:z,ref:be,...Qe}=h(ze),[Bt,nn]=$bx7SL$useState(!1),bt=$bx7SL$useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:at,removeAllGlobalListeners:$t}=$bx7SL$useGlobalListeners(),On=$bx7SL$useEffectEvent((Xe,gn)=>{let Qt=bt.current;if(st||Qt.didFirePressStart)return!1;let Dt=!0;if(Qt.isTriggeringEvent=!0,_t){let hn=new b("pressstart",gn,Xe);_t(hn),Dt=hn.shouldStopPropagation}return We&&We(!0),Qt.isTriggeringEvent=!1,Qt.didFirePressStart=!0,nn(!0),Dt}),Ct=$bx7SL$useEffectEvent((Xe,gn,Qt=!0)=>{let Dt=bt.current;if(!Dt.didFirePressStart)return!1;Dt.ignoreClickAfterPress=!0,Dt.didFirePressStart=!1,Dt.isTriggeringEvent=!0;let hn=!0;if(ct){let cn=new b("pressend",gn,Xe);ct(cn),hn=cn.shouldStopPropagation}if(We&&We(!1),nn(!1),qe&&Qt&&!st){let cn=new b("press",gn,Xe);qe(cn),hn&&(hn=cn.shouldStopPropagation)}return Dt.isTriggeringEvent=!1,hn}),Zt=$bx7SL$useEffectEvent((Xe,gn)=>{let Qt=bt.current;if(st)return!1;if(Ge){Qt.isTriggeringEvent=!0;let Dt=new b("pressup",gn,Xe);return Ge(Dt),Qt.isTriggeringEvent=!1,Dt.shouldStopPropagation}return!0}),Wn=$bx7SL$useEffectEvent(Xe=>{let gn=bt.current;gn.isPressed&&gn.target&&(gn.isOverTarget&&gn.pointerType!=null&&Ct(D(gn.target,Xe),gn.pointerType,!1),gn.isPressed=!1,gn.isOverTarget=!1,gn.activePointerId=null,gn.pointerType=null,$t(),z||p(gn.target))}),Zn=$bx7SL$useEffectEvent(Xe=>{ge&&Wn(Xe)}),xt=$bx7SL$useMemo(()=>{let Xe=bt.current,gn={onKeyDown(Dt){if(O(Dt.nativeEvent,Dt.currentTarget)&&Dt.currentTarget.contains(Dt.target)){var hn;ae(Dt.target,Dt.key)&&Dt.preventDefault();let cn=!0;if(!Xe.isPressed&&!Dt.repeat){Xe.target=Dt.currentTarget,Xe.isPressed=!0,cn=On(Dt,"keyboard");let an=Dt.currentTarget,Or=Ln=>{O(Ln,an)&&!Ln.repeat&&an.contains(Ln.target)&&Xe.target&&Zt(D(Xe.target,Ln),"keyboard")};at($bx7SL$getOwnerDocument(Dt.currentTarget),"keyup",$bx7SL$chain(Or,Qt),!0)}cn&&Dt.stopPropagation(),Dt.metaKey&&$bx7SL$isMac()&&((hn=Xe.metaKeyEvents)===null||hn===void 0||hn.set(Dt.key,Dt.nativeEvent))}else Dt.key==="Meta"&&(Xe.metaKeyEvents=new Map)},onClick(Dt){if(!(Dt&&!Dt.currentTarget.contains(Dt.target))&&Dt&&Dt.button===0&&!Xe.isTriggeringEvent&&!$bx7SL$openLink.isOpening){let hn=!0;if(st&&Dt.preventDefault(),!Xe.ignoreClickAfterPress&&!Xe.ignoreEmulatedMouseEvents&&!Xe.isPressed&&(Xe.pointerType==="virtual"||$bx7SL$isVirtualClick(Dt.nativeEvent))){!st&&!ie&&$bx7SL$focusWithoutScrolling(Dt.currentTarget);let cn=On(Dt,"virtual"),an=Zt(Dt,"virtual"),Or=Ct(Dt,"virtual");hn=cn&&an&&Or}Xe.ignoreEmulatedMouseEvents=!1,Xe.ignoreClickAfterPress=!1,hn&&Dt.stopPropagation()}}},Qt=Dt=>{var hn;if(Xe.isPressed&&Xe.target&&O(Dt,Xe.target)){var cn;ae(Dt.target,Dt.key)&&Dt.preventDefault();let Or=Dt.target;Ct(D(Xe.target,Dt),"keyboard",Xe.target.contains(Or)),$t(),Dt.key!=="Enter"&&S(Xe.target)&&Xe.target.contains(Or)&&!Dt[y]&&(Dt[y]=!0,$bx7SL$openLink(Xe.target,Dt,!1)),Xe.isPressed=!1,(cn=Xe.metaKeyEvents)===null||cn===void 0||cn.delete(Dt.key)}else if(Dt.key==="Meta"&&(!((hn=Xe.metaKeyEvents)===null||hn===void 0)&&hn.size)){var an;let Or=Xe.metaKeyEvents;Xe.metaKeyEvents=void 0;for(let Ln of Or.values())(an=Xe.target)===null||an===void 0||an.dispatchEvent(new KeyboardEvent("keyup",Ln))}};if(typeof PointerEvent<"u"){gn.onPointerDown=an=>{if(an.button!==0||!an.currentTarget.contains(an.target))return;if($bx7SL$isVirtualPointerEvent(an.nativeEvent)){Xe.pointerType="virtual";return}j(an.currentTarget)&&an.preventDefault(),Xe.pointerType=an.pointerType;let Or=!0;Xe.isPressed||(Xe.isPressed=!0,Xe.isOverTarget=!0,Xe.activePointerId=an.pointerId,Xe.target=an.currentTarget,!st&&!ie&&$bx7SL$focusWithoutScrolling(an.currentTarget),z||f(Xe.target),Or=On(an,Xe.pointerType),at($bx7SL$getOwnerDocument(an.currentTarget),"pointermove",Dt,!1),at($bx7SL$getOwnerDocument(an.currentTarget),"pointerup",hn,!1),at($bx7SL$getOwnerDocument(an.currentTarget),"pointercancel",cn,!1)),Or&&an.stopPropagation()},gn.onMouseDown=an=>{an.currentTarget.contains(an.target)&&an.button===0&&(j(an.currentTarget)&&an.preventDefault(),an.stopPropagation())},gn.onPointerUp=an=>{!an.currentTarget.contains(an.target)||Xe.pointerType==="virtual"||an.button===0&&A(an,an.currentTarget)&&Zt(an,Xe.pointerType||an.pointerType)};let Dt=an=>{an.pointerId===Xe.activePointerId&&(Xe.target&&A(an,Xe.target)?!Xe.isOverTarget&&Xe.pointerType!=null&&(Xe.isOverTarget=!0,On(D(Xe.target,an),Xe.pointerType)):Xe.target&&Xe.isOverTarget&&Xe.pointerType!=null&&(Xe.isOverTarget=!1,Ct(D(Xe.target,an),Xe.pointerType,!1),Zn(an)))},hn=an=>{an.pointerId===Xe.activePointerId&&Xe.isPressed&&an.button===0&&Xe.target&&(A(an,Xe.target)&&Xe.pointerType!=null?Ct(D(Xe.target,an),Xe.pointerType):Xe.isOverTarget&&Xe.pointerType!=null&&Ct(D(Xe.target,an),Xe.pointerType,!1),Xe.isPressed=!1,Xe.isOverTarget=!1,Xe.activePointerId=null,Xe.pointerType=null,$t(),z||p(Xe.target))},cn=an=>{Wn(an)};gn.onDragStart=an=>{an.currentTarget.contains(an.target)&&Wn(an)}}else{gn.onMouseDown=cn=>{if(cn.button!==0||!cn.currentTarget.contains(cn.target))return;if(j(cn.currentTarget)&&cn.preventDefault(),Xe.ignoreEmulatedMouseEvents){cn.stopPropagation();return}Xe.isPressed=!0,Xe.isOverTarget=!0,Xe.target=cn.currentTarget,Xe.pointerType=$bx7SL$isVirtualClick(cn.nativeEvent)?"virtual":"mouse",!st&&!ie&&$bx7SL$focusWithoutScrolling(cn.currentTarget),On(cn,Xe.pointerType)&&cn.stopPropagation(),at($bx7SL$getOwnerDocument(cn.currentTarget),"mouseup",Dt,!1)},gn.onMouseEnter=cn=>{if(!cn.currentTarget.contains(cn.target))return;let an=!0;Xe.isPressed&&!Xe.ignoreEmulatedMouseEvents&&Xe.pointerType!=null&&(Xe.isOverTarget=!0,an=On(cn,Xe.pointerType)),an&&cn.stopPropagation()},gn.onMouseLeave=cn=>{if(!cn.currentTarget.contains(cn.target))return;let an=!0;Xe.isPressed&&!Xe.ignoreEmulatedMouseEvents&&Xe.pointerType!=null&&(Xe.isOverTarget=!1,an=Ct(cn,Xe.pointerType,!1),Zn(cn)),an&&cn.stopPropagation()},gn.onMouseUp=cn=>{cn.currentTarget.contains(cn.target)&&!Xe.ignoreEmulatedMouseEvents&&cn.button===0&&Zt(cn,Xe.pointerType||"mouse")};let Dt=cn=>{if(cn.button===0){if(Xe.isPressed=!1,$t(),Xe.ignoreEmulatedMouseEvents){Xe.ignoreEmulatedMouseEvents=!1;return}Xe.target&&A(cn,Xe.target)&&Xe.pointerType!=null?Ct(D(Xe.target,cn),Xe.pointerType):Xe.target&&Xe.isOverTarget&&Xe.pointerType!=null&&Ct(D(Xe.target,cn),Xe.pointerType,!1),Xe.isOverTarget=!1}};gn.onTouchStart=cn=>{if(!cn.currentTarget.contains(cn.target))return;let an=R(cn.nativeEvent);if(!an)return;Xe.activePointerId=an.identifier,Xe.ignoreEmulatedMouseEvents=!0,Xe.isOverTarget=!0,Xe.isPressed=!0,Xe.target=cn.currentTarget,Xe.pointerType="touch",!st&&!ie&&$bx7SL$focusWithoutScrolling(cn.currentTarget),z||f(Xe.target),On(cn,Xe.pointerType)&&cn.stopPropagation(),at($bx7SL$getOwnerWindow(cn.currentTarget),"scroll",hn,!0)},gn.onTouchMove=cn=>{if(!cn.currentTarget.contains(cn.target))return;if(!Xe.isPressed){cn.stopPropagation();return}let an=M(cn.nativeEvent,Xe.activePointerId),Or=!0;an&&A(an,cn.currentTarget)?!Xe.isOverTarget&&Xe.pointerType!=null&&(Xe.isOverTarget=!0,Or=On(cn,Xe.pointerType)):Xe.isOverTarget&&Xe.pointerType!=null&&(Xe.isOverTarget=!1,Or=Ct(cn,Xe.pointerType,!1),Zn(cn)),Or&&cn.stopPropagation()},gn.onTouchEnd=cn=>{if(!cn.currentTarget.contains(cn.target))return;if(!Xe.isPressed){cn.stopPropagation();return}let an=M(cn.nativeEvent,Xe.activePointerId),Or=!0;an&&A(an,cn.currentTarget)&&Xe.pointerType!=null?(Zt(cn,Xe.pointerType),Or=Ct(cn,Xe.pointerType)):Xe.isOverTarget&&Xe.pointerType!=null&&(Or=Ct(cn,Xe.pointerType,!1)),Or&&cn.stopPropagation(),Xe.isPressed=!1,Xe.activePointerId=null,Xe.isOverTarget=!1,Xe.ignoreEmulatedMouseEvents=!0,Xe.target&&!z&&p(Xe.target),$t()},gn.onTouchCancel=cn=>{cn.currentTarget.contains(cn.target)&&(cn.stopPropagation(),Xe.isPressed&&Wn(cn))};let hn=cn=>{Xe.isPressed&&cn.target.contains(Xe.target)&&Wn({currentTarget:Xe.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};gn.onDragStart=cn=>{cn.currentTarget.contains(cn.target)&&Wn(cn)}}return gn},[at,st,ie,$t,z,Wn,Zn,Ct,On,Zt]);return $bx7SL$useEffect(()=>()=>{var Xe;z||p((Xe=bt.current.target)!==null&&Xe!==void 0?Xe:void 0)},[z]),{isPressed:Me||Bt,pressProps:$bx7SL$mergeProps(Qe,xt)}}function S(ze){return ze.tagName==="A"&&ze.hasAttribute("href")}function O(ze,qe){const{key:We,code:_t}=ze,ct=qe,Ge=ct.getAttribute("role");return(We==="Enter"||We===" "||We==="Spacebar"||_t==="Space")&&!(ct instanceof $bx7SL$getOwnerWindow(ct).HTMLInputElement&&!N(ct,We)||ct instanceof $bx7SL$getOwnerWindow(ct).HTMLTextAreaElement||ct.isContentEditable)&&!((Ge==="link"||!Ge&&S(ct))&&We!=="Enter")}function R(ze){const{targetTouches:qe}=ze;return qe.length>0?qe[0]:null}function M(ze,qe){const We=ze.changedTouches;for(let _t=0;_t<We.length;_t++){const ct=We[_t];if(ct.identifier===qe)return ct}return null}function D(ze,qe){return{currentTarget:ze,shiftKey:qe.shiftKey,ctrlKey:qe.ctrlKey,metaKey:qe.metaKey,altKey:qe.altKey}}function P(ze){let qe=0,We=0;return ze.width!==void 0?qe=ze.width/2:ze.radiusX!==void 0&&(qe=ze.radiusX),ze.height!==void 0?We=ze.height/2:ze.radiusY!==void 0&&(We=ze.radiusY),{top:ze.clientY-We,right:ze.clientX+qe,bottom:ze.clientY+We,left:ze.clientX-qe}}function T(ze,qe){return!(ze.left>qe.right||qe.left>ze.right||ze.top>qe.bottom||qe.top>ze.bottom)}function A(ze,qe){let We=qe.getBoundingClientRect(),_t=P(ze);return T(We,_t)}function j(ze){return!(ze instanceof HTMLElement)||!ze.hasAttribute("draggable")}function ae(ze,qe){return ze instanceof HTMLInputElement?!N(ze,qe):ze instanceof HTMLButtonElement?ze.type!=="submit"&&ze.type!=="reset":!S(ze)}const _=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function N(ze,qe){return ze.type==="checkbox"||ze.type==="radio"?qe===" ":_.has(ze.type)}const W=null,he=null;function me({children:ze}){let qe=$bx7SL$useMemo(()=>({register:()=>{}}),[]);return $bx7SL$react.createElement(v.Provider,{value:qe},ze)}class fe{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(qe,We){this.nativeEvent=We,this.target=We.target,this.currentTarget=We.currentTarget,this.relatedTarget=We.relatedTarget,this.bubbles=We.bubbles,this.cancelable=We.cancelable,this.defaultPrevented=We.defaultPrevented,this.eventPhase=We.eventPhase,this.isTrusted=We.isTrusted,this.timeStamp=We.timeStamp,this.type=qe}}function ve(ze){let qe=(0,l.useRef)({isFocused:!1,observer:null});(0,i.Nf)(()=>{const _t=qe.current;return()=>{_t.observer&&(_t.observer.disconnect(),_t.observer=null)}},[]);let We=(0,i.Jt)(_t=>{ze?.(_t)});return(0,l.useCallback)(_t=>{if(_t.target instanceof HTMLButtonElement||_t.target instanceof HTMLInputElement||_t.target instanceof HTMLTextAreaElement||_t.target instanceof HTMLSelectElement){qe.current.isFocused=!0;let ct=_t.target,Ge=st=>{qe.current.isFocused=!1,ct.disabled&&We(new fe("blur",st)),qe.current.observer&&(qe.current.observer.disconnect(),qe.current.observer=null)};ct.addEventListener("focusout",Ge,{once:!0}),qe.current.observer=new MutationObserver(()=>{if(qe.current.isFocused&&ct.disabled){var st;(st=qe.current.observer)===null||st===void 0||st.disconnect();let Me=ct===document.activeElement?null:document.activeElement;ct.dispatchEvent(new FocusEvent("blur",{relatedTarget:Me})),ct.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:Me}))}}),qe.current.observer.observe(ct,{attributes:!0,attributeFilter:["disabled"]})}},[We])}function ce(ze){let{isDisabled:qe,onFocus:We,onBlur:_t,onFocusChange:ct}=ze;const Ge=(0,l.useCallback)(ie=>{if(ie.target===ie.currentTarget)return _t&&_t(ie),ct&&ct(!1),!0},[_t,ct]),st=ve(Ge),Me=(0,l.useCallback)(ie=>{ie.target===ie.currentTarget&&document.activeElement===ie.target&&(We&&We(ie),ct&&ct(!0),st(ie))},[ct,We,st]);return{focusProps:{onFocus:!qe&&(We||ct||_t)?Me:void 0,onBlur:!qe&&(_t||ct)?Ge:void 0}}}let oe=null,re=new Set,H=new Map,V=!1,Q=!1;const Te={Tab:!0,Escape:!0};function Re(ze,qe){for(let We of re)We(ze,qe)}function ne(ze){return!(ze.metaKey||!(0,i.cX)()&&ze.altKey||ze.ctrlKey||ze.key==="Control"||ze.key==="Shift"||ze.key==="Meta")}function pe(ze){V=!0,ne(ze)&&(oe="keyboard",Re("keyboard",ze))}function ye(ze){oe="pointer",(ze.type==="mousedown"||ze.type==="pointerdown")&&(V=!0,Re("pointer",ze))}function Se(ze){(0,i.YF)(ze)&&(V=!0,oe="virtual")}function Ae(ze){ze.target===window||ze.target===document||(!V&&!Q&&(oe="virtual",Re("virtual",ze)),V=!1,Q=!1)}function Ee(){V=!1,Q=!0}function xe(ze){if(typeof window>"u"||H.get((0,i.mD)(ze)))return;const qe=(0,i.mD)(ze),We=(0,i.TW)(ze);let _t=qe.HTMLElement.prototype.focus;qe.HTMLElement.prototype.focus=function(){V=!0,_t.apply(this,arguments)},We.addEventListener("keydown",pe,!0),We.addEventListener("keyup",pe,!0),We.addEventListener("click",Se,!0),qe.addEventListener("focus",Ae,!0),qe.addEventListener("blur",Ee,!1),typeof PointerEvent<"u"?(We.addEventListener("pointerdown",ye,!0),We.addEventListener("pointermove",ye,!0),We.addEventListener("pointerup",ye,!0)):(We.addEventListener("mousedown",ye,!0),We.addEventListener("mousemove",ye,!0),We.addEventListener("mouseup",ye,!0)),qe.addEventListener("beforeunload",()=>{nt(ze)},{once:!0}),H.set(qe,{focus:_t})}const nt=(ze,qe)=>{const We=(0,i.mD)(ze),_t=(0,i.TW)(ze);qe&&_t.removeEventListener("DOMContentLoaded",qe),H.has(We)&&(We.HTMLElement.prototype.focus=H.get(We).focus,_t.removeEventListener("keydown",pe,!0),_t.removeEventListener("keyup",pe,!0),_t.removeEventListener("click",Se,!0),We.removeEventListener("focus",Ae,!0),We.removeEventListener("blur",Ee,!1),typeof PointerEvent<"u"?(_t.removeEventListener("pointerdown",ye,!0),_t.removeEventListener("pointermove",ye,!0),_t.removeEventListener("pointerup",ye,!0)):(_t.removeEventListener("mousedown",ye,!0),_t.removeEventListener("mousemove",ye,!0),_t.removeEventListener("mouseup",ye,!0)),H.delete(We))};function Tt(ze){const qe=(0,i.TW)(ze);let We;return qe.readyState!=="loading"?xe(ze):(We=()=>{xe(ze)},qe.addEventListener("DOMContentLoaded",We)),()=>nt(ze,We)}typeof document<"u"&&Tt();function pt(){return oe!=="pointer"}function Rt(){return oe}function tt(ze){oe=ze,Re(ze,null)}function U(){xe();let[ze,qe]=$bx7SL$useState(oe);return $bx7SL$useEffect(()=>{let We=()=>{qe(oe)};return re.add(We),()=>{re.delete(We)}},[]),$bx7SL$useIsSSR()?null:ze}const F=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Y(ze,qe,We){var _t;const ct=typeof window<"u"?(0,i.mD)(We?.target).HTMLInputElement:HTMLInputElement,Ge=typeof window<"u"?(0,i.mD)(We?.target).HTMLTextAreaElement:HTMLTextAreaElement,st=typeof window<"u"?(0,i.mD)(We?.target).HTMLElement:HTMLElement,Me=typeof window<"u"?(0,i.mD)(We?.target).KeyboardEvent:KeyboardEvent;return ze=ze||We?.target instanceof ct&&!F.has(We==null||(_t=We.target)===null||_t===void 0?void 0:_t.type)||We?.target instanceof Ge||We?.target instanceof st&&We?.target.isContentEditable,!(ze&&qe==="keyboard"&&We instanceof Me&&!Te[We.key])}function le(ze={}){let{isTextInput:qe,autoFocus:We}=ze,[_t,ct]=$bx7SL$useState(We||pt());return ke(Ge=>{ct(Ge)},[qe],{isTextInput:qe}),{isFocusVisible:_t}}function ke(ze,qe,We){xe(),(0,l.useEffect)(()=>{let _t=(ct,Ge)=>{Y(!!We?.isTextInput,ct,Ge)&&ze(pt())};return re.add(_t),()=>{re.delete(_t)}},qe)}function Ye(ze){let{isDisabled:qe,onBlurWithin:We,onFocusWithin:_t,onFocusWithinChange:ct}=ze,Ge=(0,l.useRef)({isFocusWithin:!1}),st=(0,l.useCallback)(ge=>{Ge.current.isFocusWithin&&!ge.currentTarget.contains(ge.relatedTarget)&&(Ge.current.isFocusWithin=!1,We&&We(ge),ct&&ct(!1))},[We,ct,Ge]),Me=ve(st),ie=(0,l.useCallback)(ge=>{!Ge.current.isFocusWithin&&document.activeElement===ge.target&&(_t&&_t(ge),ct&&ct(!0),Ge.current.isFocusWithin=!0,Me(ge))},[_t,ct,Me]);return qe?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:ie,onBlur:st}}}let ft=!1,wt=0;function Ut(){ft=!0,setTimeout(()=>{ft=!1},50)}function Ke(ze){ze.pointerType==="touch"&&Ut()}function it(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Ke):document.addEventListener("touchend",Ut),wt++,()=>{wt--,!(wt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ke):document.removeEventListener("touchend",Ut))}}function At(ze){let{onHoverStart:qe,onHoverChange:We,onHoverEnd:_t,isDisabled:ct}=ze,[Ge,st]=$bx7SL$useState(!1),Me=$bx7SL$useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;$bx7SL$useEffect(it,[]);let{hoverProps:ie,triggerHoverEnd:ge}=$bx7SL$useMemo(()=>{let z=(Bt,nn)=>{if(Me.pointerType=nn,ct||nn==="touch"||Me.isHovered||!Bt.currentTarget.contains(Bt.target))return;Me.isHovered=!0;let bt=Bt.currentTarget;Me.target=bt,qe&&qe({type:"hoverstart",target:bt,pointerType:nn}),We&&We(!0),st(!0)},be=(Bt,nn)=>{if(Me.pointerType="",Me.target=null,nn==="touch"||!Me.isHovered)return;Me.isHovered=!1;let bt=Bt.currentTarget;_t&&_t({type:"hoverend",target:bt,pointerType:nn}),We&&We(!1),st(!1)},Qe={};return typeof PointerEvent<"u"?(Qe.onPointerEnter=Bt=>{ft&&Bt.pointerType==="mouse"||z(Bt,Bt.pointerType)},Qe.onPointerLeave=Bt=>{!ct&&Bt.currentTarget.contains(Bt.target)&&be(Bt,Bt.pointerType)}):(Qe.onTouchStart=()=>{Me.ignoreEmulatedMouseEvents=!0},Qe.onMouseEnter=Bt=>{!Me.ignoreEmulatedMouseEvents&&!ft&&z(Bt,"mouse"),Me.ignoreEmulatedMouseEvents=!1},Qe.onMouseLeave=Bt=>{!ct&&Bt.currentTarget.contains(Bt.target)&&be(Bt,"mouse")}),{hoverProps:Qe,triggerHoverEnd:be}},[qe,We,_t,ct,Me]);return $bx7SL$useEffect(()=>{ct&&ge({currentTarget:Me.target},Me.pointerType)},[ct]),{hoverProps:ie,isHovered:Ge}}function et(ze){let{ref:qe,onInteractOutside:We,isDisabled:_t,onInteractOutsideStart:ct}=ze,Ge=(0,l.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),st=(0,i.Jt)(ie=>{We&&ee(ie,qe)&&(ct&&ct(ie),Ge.current.isPointerDown=!0)}),Me=(0,i.Jt)(ie=>{We&&We(ie)});(0,l.useEffect)(()=>{let ie=Ge.current;if(_t)return;const ge=qe.current,z=(0,i.TW)(ge);if(typeof PointerEvent<"u"){let be=Qe=>{ie.isPointerDown&&ee(Qe,qe)&&Me(Qe),ie.isPointerDown=!1};return z.addEventListener("pointerdown",st,!0),z.addEventListener("pointerup",be,!0),()=>{z.removeEventListener("pointerdown",st,!0),z.removeEventListener("pointerup",be,!0)}}else{let be=Bt=>{ie.ignoreEmulatedMouseEvents?ie.ignoreEmulatedMouseEvents=!1:ie.isPointerDown&&ee(Bt,qe)&&Me(Bt),ie.isPointerDown=!1},Qe=Bt=>{ie.ignoreEmulatedMouseEvents=!0,ie.isPointerDown&&ee(Bt,qe)&&Me(Bt),ie.isPointerDown=!1};return z.addEventListener("mousedown",st,!0),z.addEventListener("mouseup",be,!0),z.addEventListener("touchstart",st,!0),z.addEventListener("touchend",Qe,!0),()=>{z.removeEventListener("mousedown",st,!0),z.removeEventListener("mouseup",be,!0),z.removeEventListener("touchstart",st,!0),z.removeEventListener("touchend",Qe,!0)}}},[qe,_t,st,Me])}function ee(ze,qe){if(ze.button>0)return!1;if(ze.target){const We=ze.target.ownerDocument;if(!We||!We.documentElement.contains(ze.target)||ze.target.closest("[data-react-aria-top-layer]"))return!1}return qe.current&&!qe.current.contains(ze.target)}function I(ze){if(!ze)return;let qe=!0;return We=>{let _t={...We,preventDefault(){We.preventDefault()},isDefaultPrevented(){return We.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){qe=!1}};ze(_t),qe&&We.stopPropagation()}}function K(ze){return{keyboardProps:ze.isDisabled?{}:{onKeyDown:I(ze.onKeyDown),onKeyUp:I(ze.onKeyUp)}}}function ue(ze){let{onMoveStart:qe,onMove:We,onMoveEnd:_t}=ze,ct=$bx7SL$useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:Ge,removeGlobalListener:st}=$bx7SL$useGlobalListeners(),Me=$bx7SL$useEffectEvent((z,be,Qe,Bt)=>{Qe===0&&Bt===0||(ct.current.didMove||(ct.current.didMove=!0,qe?.({type:"movestart",pointerType:be,shiftKey:z.shiftKey,metaKey:z.metaKey,ctrlKey:z.ctrlKey,altKey:z.altKey})),We?.({type:"move",pointerType:be,deltaX:Qe,deltaY:Bt,shiftKey:z.shiftKey,metaKey:z.metaKey,ctrlKey:z.ctrlKey,altKey:z.altKey}))}),ie=$bx7SL$useEffectEvent((z,be)=>{p(),ct.current.didMove&&_t?.({type:"moveend",pointerType:be,shiftKey:z.shiftKey,metaKey:z.metaKey,ctrlKey:z.ctrlKey,altKey:z.altKey})});return{moveProps:$bx7SL$useMemo(()=>{let z={},be=()=>{f(),ct.current.didMove=!1};if(typeof PointerEvent>"u"){let Bt=$t=>{if($t.button===0){var On,Ct,Zt,Wn;Me($t,"mouse",$t.pageX-((Zt=(On=ct.current.lastPosition)===null||On===void 0?void 0:On.pageX)!==null&&Zt!==void 0?Zt:0),$t.pageY-((Wn=(Ct=ct.current.lastPosition)===null||Ct===void 0?void 0:Ct.pageY)!==null&&Wn!==void 0?Wn:0)),ct.current.lastPosition={pageX:$t.pageX,pageY:$t.pageY}}},nn=$t=>{$t.button===0&&(ie($t,"mouse"),st(window,"mousemove",Bt,!1),st(window,"mouseup",nn,!1))};z.onMouseDown=$t=>{$t.button===0&&(be(),$t.stopPropagation(),$t.preventDefault(),ct.current.lastPosition={pageX:$t.pageX,pageY:$t.pageY},Ge(window,"mousemove",Bt,!1),Ge(window,"mouseup",nn,!1))};let bt=$t=>{let On=[...$t.changedTouches].findIndex(({identifier:xt})=>xt===ct.current.id);if(On>=0){var Ct,Zt;let{pageX:xt,pageY:Xe}=$t.changedTouches[On];var Wn,Zn;Me($t,"touch",xt-((Wn=(Ct=ct.current.lastPosition)===null||Ct===void 0?void 0:Ct.pageX)!==null&&Wn!==void 0?Wn:0),Xe-((Zn=(Zt=ct.current.lastPosition)===null||Zt===void 0?void 0:Zt.pageY)!==null&&Zn!==void 0?Zn:0)),ct.current.lastPosition={pageX:xt,pageY:Xe}}},at=$t=>{[...$t.changedTouches].findIndex(({identifier:Ct})=>Ct===ct.current.id)>=0&&(ie($t,"touch"),ct.current.id=null,st(window,"touchmove",bt),st(window,"touchend",at),st(window,"touchcancel",at))};z.onTouchStart=$t=>{if($t.changedTouches.length===0||ct.current.id!=null)return;let{pageX:On,pageY:Ct,identifier:Zt}=$t.changedTouches[0];be(),$t.stopPropagation(),$t.preventDefault(),ct.current.lastPosition={pageX:On,pageY:Ct},ct.current.id=Zt,Ge(window,"touchmove",bt,!1),Ge(window,"touchend",at,!1),Ge(window,"touchcancel",at,!1)}}else{let Bt=bt=>{if(bt.pointerId===ct.current.id){var at,$t;let Zt=bt.pointerType||"mouse";var On,Ct;Me(bt,Zt,bt.pageX-((On=(at=ct.current.lastPosition)===null||at===void 0?void 0:at.pageX)!==null&&On!==void 0?On:0),bt.pageY-((Ct=($t=ct.current.lastPosition)===null||$t===void 0?void 0:$t.pageY)!==null&&Ct!==void 0?Ct:0)),ct.current.lastPosition={pageX:bt.pageX,pageY:bt.pageY}}},nn=bt=>{if(bt.pointerId===ct.current.id){let at=bt.pointerType||"mouse";ie(bt,at),ct.current.id=null,st(window,"pointermove",Bt,!1),st(window,"pointerup",nn,!1),st(window,"pointercancel",nn,!1)}};z.onPointerDown=bt=>{bt.button===0&&ct.current.id==null&&(be(),bt.stopPropagation(),bt.preventDefault(),ct.current.lastPosition={pageX:bt.pageX,pageY:bt.pageY},ct.current.id=bt.pointerId,Ge(window,"pointermove",Bt,!1),Ge(window,"pointerup",nn,!1),Ge(window,"pointercancel",nn,!1))}}let Qe=(Bt,nn,bt)=>{be(),Me(Bt,"keyboard",nn,bt),ie(Bt,"keyboard")};return z.onKeyDown=Bt=>{switch(Bt.key){case"Left":case"ArrowLeft":Bt.preventDefault(),Bt.stopPropagation(),Qe(Bt,-1,0);break;case"Right":case"ArrowRight":Bt.preventDefault(),Bt.stopPropagation(),Qe(Bt,1,0);break;case"Up":case"ArrowUp":Bt.preventDefault(),Bt.stopPropagation(),Qe(Bt,0,-1);break;case"Down":case"ArrowDown":Bt.preventDefault(),Bt.stopPropagation(),Qe(Bt,0,1);break}},z},[ct,Ge,st,Me,ie])}}function De(ze,qe){let{onScroll:We,isDisabled:_t}=ze,ct=$bx7SL$useCallback(Ge=>{Ge.ctrlKey||(Ge.preventDefault(),Ge.stopPropagation(),We&&We({deltaX:Ge.deltaX,deltaY:Ge.deltaY}))},[We]);$bx7SL$useEvent(qe,"wheel",_t?void 0:ct)}const He=500;function Fe(ze){let{isDisabled:qe,onLongPressStart:We,onLongPressEnd:_t,onLongPress:ct,threshold:Ge=He,accessibilityDescription:st}=ze;const Me=$bx7SL$useRef();let{addGlobalListener:ie,removeGlobalListener:ge}=$bx7SL$useGlobalListeners(),{pressProps:z}=w({isDisabled:qe,onPressStart(Qe){if(Qe.continuePropagation(),(Qe.pointerType==="mouse"||Qe.pointerType==="touch")&&(We&&We({...Qe,type:"longpressstart"}),Me.current=setTimeout(()=>{Qe.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ct&&ct({...Qe,type:"longpress"}),Me.current=void 0},Ge),Qe.pointerType==="touch")){let Bt=nn=>{nn.preventDefault()};ie(Qe.target,"contextmenu",Bt,{once:!0}),ie(window,"pointerup",()=>{setTimeout(()=>{ge(Qe.target,"contextmenu",Bt)},30)},{once:!0})}},onPressEnd(Qe){Me.current&&clearTimeout(Me.current),_t&&(Qe.pointerType==="mouse"||Qe.pointerType==="touch")&&_t({...Qe,type:"longpressend"})}}),be=$bx7SL$useDescription(ct&&!qe?st:void 0);return{longPressProps:$bx7SL$mergeProps(z,be)}}},82148:(J,g,t)=>{"use strict";t.d(g,{Se:()=>Dt,Sf:()=>le,e:()=>Q});var i=t(96540),l=t(16792),s=t(7887),m=t(17452),u=t(40961),f=t(3059);function p(cn){return cn&&cn.__esModule?cn.default:cn}const v={top:"top",bottom:"top",left:"left",right:"left"},h={top:"bottom",bottom:"top",left:"right",right:"left"},d={top:"left",left:"top"},b={top:"height",left:"width"},y={width:"totalWidth",height:"totalHeight"},w={};let S=typeof document<"u"&&window.visualViewport;function O(cn){let an=0,Or=0,Ln=0,En=0,Gn=0,rr=0,sr={},pi=S?.scale>1;if(cn.tagName==="BODY"){let ui=document.documentElement;Ln=ui.clientWidth,En=ui.clientHeight;var yi;an=(yi=S?.width)!==null&&yi!==void 0?yi:Ln;var jr;Or=(jr=S?.height)!==null&&jr!==void 0?jr:En,sr.top=ui.scrollTop||cn.scrollTop,sr.left=ui.scrollLeft||cn.scrollLeft,S&&(Gn=S.offsetTop,rr=S.offsetLeft)}else({width:an,height:Or,top:Gn,left:rr}=N(cn)),sr.top=cn.scrollTop,sr.left=cn.scrollLeft,Ln=an,En=Or;return $k7QOs$isWebKit()&&(cn.tagName==="BODY"||cn.tagName==="HTML")&&pi&&(sr.top=0,sr.left=0,Gn=S.pageTop,rr=S.pageLeft),{width:an,height:Or,totalWidth:Ln,totalHeight:En,scroll:sr,top:Gn,left:rr}}function R(cn){return{top:cn.scrollTop,left:cn.scrollLeft,width:cn.scrollWidth,height:cn.scrollHeight}}function M(cn,an,Or,Ln,En,Gn,rr){let sr=En.scroll[cn],pi=Ln[b[cn]],yi=Ln.scroll[v[cn]]+Gn,jr=pi+Ln.scroll[v[cn]]-Gn,ui=an-sr+rr[cn]-Ln[v[cn]],bi=an-sr+Or+rr[cn]-Ln[v[cn]];return ui<yi?yi-ui:bi>jr?Math.max(jr-bi,yi-ui):0}function D(cn){let an=window.getComputedStyle(cn);return{top:parseInt(an.marginTop,10)||0,bottom:parseInt(an.marginBottom,10)||0,left:parseInt(an.marginLeft,10)||0,right:parseInt(an.marginRight,10)||0}}function P(cn){if(w[cn])return w[cn];let[an,Or]=cn.split(" "),Ln=v[an]||"right",En=d[Ln];v[Or]||(Or="center");let Gn=b[Ln],rr=b[En];return w[cn]={placement:an,crossPlacement:Or,axis:Ln,crossAxis:En,size:Gn,crossSize:rr},w[cn]}function T(cn,an,Or,Ln,En,Gn,rr,sr,pi,yi){let{placement:jr,crossPlacement:ui,axis:bi,crossAxis:ri,size:hi,crossSize:Si}=Ln,Kr={};Kr[ri]=cn[ri],ui==="center"?Kr[ri]+=(cn[Si]-Or[Si])/2:ui!==ri&&(Kr[ri]+=cn[Si]-Or[Si]),Kr[ri]+=Gn;const xi=cn[ri]-Or[Si]+pi+yi,Ai=cn[ri]+cn[Si]-pi-yi;if(Kr[ri]=$k7QOs$clamp(Kr[ri],xi,Ai),jr===bi){const Pi=sr?rr[hi]:an[y[hi]];Kr[h[bi]]=Math.floor(Pi-cn[bi]+En)}else Kr[bi]=Math.floor(cn[bi]+cn[hi]+En);return Kr}function A(cn,an,Or,Ln,En,Gn,rr,sr){const pi=Ln?Or.height:an[y.height];let yi=cn.top!=null?Or.top+cn.top:Or.top+(pi-cn.bottom-rr),jr=sr!=="top"?Math.max(0,an.height+an.top+an.scroll.top-yi-(En.top+En.bottom+Gn)):Math.max(0,yi+rr-(an.top+an.scroll.top)-(En.top+En.bottom+Gn));return Math.min(an.height-Gn*2,jr)}function j(cn,an,Or,Ln,En,Gn){let{placement:rr,axis:sr,size:pi}=Gn;return rr===sr?Math.max(0,Or[sr]-cn[sr]-cn.scroll[sr]+an[sr]-Ln[sr]-Ln[h[sr]]-En):Math.max(0,cn[pi]+cn[sr]+cn.scroll[sr]-an[sr]-Or[sr]-Or[pi]-Ln[sr]-Ln[h[sr]]-En)}function ae(cn,an,Or,Ln,En,Gn,rr,sr,pi,yi,jr,ui,bi,ri,hi,Si){let Kr=P(cn),{size:xi,crossAxis:Ai,crossSize:Pi,placement:io,crossPlacement:lo}=Kr,Gr=T(an,sr,Or,Kr,jr,ui,yi,bi,hi,Si),un=jr,qn=j(sr,yi,an,En,Gn+jr,Kr);if(rr&&Ln[xi]>qn){let gt=P(`${h[io]} ${lo}`),tn=T(an,sr,Or,gt,jr,ui,yi,bi,hi,Si);j(sr,yi,an,En,Gn+jr,gt)>qn&&(Kr=gt,Gr=tn,un=jr)}let kn="bottom";Kr.axis==="top"?Kr.placement==="top"?kn="top":Kr.placement==="bottom"&&(kn="bottom"):Kr.crossAxis==="top"&&(Kr.crossPlacement==="top"?kn="bottom":Kr.crossPlacement==="bottom"&&(kn="top"));let St=M(Ai,Gr[Ai],Or[Pi],sr,pi,Gn,yi);Gr[Ai]+=St;let ln=A(Gr,sr,yi,bi,En,Gn,Or.height,kn);ri&&ri<ln&&(ln=ri),Or.height=Math.min(Or.height,ln),Gr=T(an,sr,Or,Kr,un,ui,yi,bi,hi,Si),St=M(Ai,Gr[Ai],Or[Pi],sr,pi,Gn,yi),Gr[Ai]+=St;let An={},Cr=an[Ai]+.5*an[Pi]-Or[Ai];const _i=hi/2+Si,Sn=Or[Pi]-hi/2-Si,ir=an[Ai]-Or[Ai]+hi/2,mt=an[Ai]+an[Pi]-Or[Ai]-hi/2,fn=$k7QOs$clamp(Cr,ir,mt);return An[Ai]=$k7QOs$clamp(fn,_i,Sn),{position:Gr,maxHeight:ln,arrowOffsetLeft:An.left,arrowOffsetTop:An.top,placement:Kr.placement}}function _(cn){let{placement:an,targetNode:Or,overlayNode:Ln,scrollNode:En,padding:Gn,shouldFlip:rr,boundaryElement:sr,offset:pi,crossOffset:yi,maxHeight:jr,arrowSize:ui=0,arrowBoundaryOffset:bi=0}=cn,ri=Ln instanceof HTMLElement?he(Ln):document.documentElement,hi=ri===document.documentElement;const Si=window.getComputedStyle(ri).position;let Kr=!!Si&&Si!=="static",xi=hi?N(Or):W(Or,ri);if(!hi){let{marginTop:qn,marginLeft:kn}=window.getComputedStyle(Or);xi.top+=parseInt(qn,10)||0,xi.left+=parseInt(kn,10)||0}let Ai=N(Ln),Pi=D(Ln);Ai.width+=Pi.left+Pi.right,Ai.height+=Pi.top+Pi.bottom;let io=R(En),lo=O(sr),Gr=O(ri),un=sr.tagName==="BODY"?N(ri):W(ri,sr);return ri.tagName==="HTML"&&sr.tagName==="BODY"&&(Gr.scroll.top=0,Gr.scroll.left=0),ae(an,xi,Ai,io,Pi,Gn,rr,lo,Gr,un,pi,yi,Kr,jr,ui,bi)}function N(cn){let{top:an,left:Or,width:Ln,height:En}=cn.getBoundingClientRect(),{scrollTop:Gn,scrollLeft:rr,clientTop:sr,clientLeft:pi}=document.documentElement;return{top:an+Gn-sr,left:Or+rr-pi,width:Ln,height:En}}function W(cn,an){let Or=window.getComputedStyle(cn),Ln;if(Or.position==="fixed"){let{top:En,left:Gn,width:rr,height:sr}=cn.getBoundingClientRect();Ln={top:En,left:Gn,width:rr,height:sr}}else{Ln=N(cn);let En=N(an),Gn=window.getComputedStyle(an);En.top+=(parseInt(Gn.borderTopWidth,10)||0)-an.scrollTop,En.left+=(parseInt(Gn.borderLeftWidth,10)||0)-an.scrollLeft,Ln.top-=En.top,Ln.left-=En.left}return Ln.top-=parseInt(Or.marginTop,10)||0,Ln.left-=parseInt(Or.marginLeft,10)||0,Ln}function he(cn){let an=cn.offsetParent;if(an&&an===document.body&&window.getComputedStyle(an).position==="static"&&!me(an)&&(an=document.documentElement),an==null)for(an=cn.parentElement;an&&!me(an);)an=an.parentElement;return an||document.documentElement}function me(cn){let an=window.getComputedStyle(cn);return an.transform!=="none"||/transform|perspective/.test(an.willChange)||an.filter!=="none"||an.contain==="paint"||"backdropFilter"in an&&an.backdropFilter!=="none"||"WebkitBackdropFilter"in an&&an.WebkitBackdropFilter!=="none"}const fe=new WeakMap;function ve(cn){let{triggerRef:an,isOpen:Or,onClose:Ln}=cn;$k7QOs$useEffect(()=>{if(!Or||Ln===null)return;let En=Gn=>{let rr=Gn.target;if(!an.current||rr instanceof Node&&!rr.contains(an.current))return;let sr=Ln||fe.get(an.current);sr&&sr()};return window.addEventListener("scroll",En,!0),()=>{window.removeEventListener("scroll",En,!0)}},[Or,Ln,an])}let ce=typeof document<"u"&&window.visualViewport;function oe(cn){let{direction:an}=$k7QOs$useLocale(),{arrowSize:Or=0,targetRef:Ln,overlayRef:En,scrollRef:Gn=En,placement:rr="bottom",containerPadding:sr=12,shouldFlip:pi=!0,boundaryElement:yi=typeof document<"u"?document.body:null,offset:jr=0,crossOffset:ui=0,shouldUpdatePosition:bi=!0,isOpen:ri=!0,onClose:hi,maxHeight:Si,arrowBoundaryOffset:Kr=0}=cn,[xi,Ai]=$k7QOs$useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),Pi=[bi,rr,En.current,Ln.current,Gn.current,sr,pi,yi,jr,ui,ri,an,Si,Kr,Or],io=$k7QOs$useRef(ce?.scale);$k7QOs$useEffect(()=>{ri&&(io.current=ce?.scale)},[ri]);let lo=$k7QOs$useCallback(()=>{if(bi===!1||!ri||!En.current||!Ln.current||!Gn.current||!yi||ce?.scale!==io.current)return;!Si&&En.current&&(En.current.style.maxHeight="none");let qn=_({placement:H(rr,an),overlayNode:En.current,targetNode:Ln.current,scrollNode:Gn.current,padding:sr,shouldFlip:pi,boundaryElement:yi,offset:jr,crossOffset:ui,maxHeight:Si,arrowSize:Or,arrowBoundaryOffset:Kr});Object.keys(qn.position).forEach(kn=>En.current.style[kn]=qn.position[kn]+"px"),En.current.style.maxHeight=qn.maxHeight!=null?qn.maxHeight+"px":void 0,Ai(qn)},Pi);$k7QOs$useLayoutEffect(lo,Pi),re(lo),$k7QOs$useResizeObserver({ref:En,onResize:lo});let Gr=$k7QOs$useRef(!1);$k7QOs$useLayoutEffect(()=>{let qn,kn=()=>{Gr.current=!0,clearTimeout(qn),qn=setTimeout(()=>{Gr.current=!1},500),lo()},St=()=>{Gr.current&&kn()};return ce?.addEventListener("resize",kn),ce?.addEventListener("scroll",St),()=>{ce?.removeEventListener("resize",kn),ce?.removeEventListener("scroll",St)}},[lo]);let un=$k7QOs$useCallback(()=>{Gr.current||hi()},[hi,Gr]);return ve({triggerRef:Ln,isOpen:ri,onClose:hi&&un}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...xi.position,maxHeight:xi.maxHeight}},placement:xi.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:xi.arrowOffsetLeft,top:xi.arrowOffsetTop}},updatePosition:lo}}function re(cn){$k7QOs$useLayoutEffect(()=>(window.addEventListener("resize",cn,!1),()=>{window.removeEventListener("resize",cn,!1)}),[cn])}function H(cn,an){return an==="rtl"?cn.replace("start","right").replace("end","left"):cn.replace("start","left").replace("end","right")}const V=[];function Q(cn,an){let{onClose:Or,shouldCloseOnBlur:Ln,isOpen:En,isDismissable:Gn=!1,isKeyboardDismissDisabled:rr=!1,shouldCloseOnInteractOutside:sr}=cn;(0,i.useEffect)(()=>(En&&V.push(an),()=>{let hi=V.indexOf(an);hi>=0&&V.splice(hi,1)}),[En,an]);let pi=()=>{V[V.length-1]===an&&Or&&Or()},yi=hi=>{(!sr||sr(hi.target))&&V[V.length-1]===an&&(hi.stopPropagation(),hi.preventDefault())},jr=hi=>{(!sr||sr(hi.target))&&(V[V.length-1]===an&&(hi.stopPropagation(),hi.preventDefault()),pi())},ui=hi=>{hi.key==="Escape"&&!rr&&(hi.stopPropagation(),hi.preventDefault(),pi())};(0,m.$Z)({ref:an,onInteractOutside:Gn&&En?jr:null,onInteractOutsideStart:yi});let{focusWithinProps:bi}=(0,m.Rb)({isDisabled:!Ln,onBlurWithin:hi=>{!hi.relatedTarget||(0,s.Pu)(hi.relatedTarget)||(!sr||sr(hi.relatedTarget))&&Or()}}),ri=hi=>{hi.target===hi.currentTarget&&hi.preventDefault()};return{overlayProps:{onKeyDown:ui,...bi},underlayProps:{onPointerDown:ri}}}function Te(cn,an,Or){let{type:Ln}=cn,{isOpen:En}=an;$k7QOs$useEffect(()=>{Or&&Or.current&&fe.set(Or.current,an.close)});let Gn;Ln==="menu"?Gn=!0:Ln==="listbox"&&(Gn="listbox");let rr=$k7QOs$useId();return{triggerProps:{"aria-haspopup":Gn,"aria-expanded":En,"aria-controls":En?rr:null,onPress:an.toggle},overlayProps:{id:rr}}}const Re=typeof document<"u"&&window.visualViewport,ne=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let pe=0,ye;function Se(cn={}){let{isDisabled:an}=cn;$k7QOs$useLayoutEffect(()=>{if(!an)return pe++,pe===1&&($k7QOs$isIOS()?ye=Ee():ye=Ae()),()=>{pe--,pe===0&&ye()}},[an])}function Ae(){return $k7QOs$chain(xe(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),xe(document.documentElement,"overflow","hidden"))}function Ee(){let cn,an,Or=yi=>{cn=$k7QOs$getScrollParent(yi.target,!0),!(cn===document.documentElement&&cn===document.body)&&cn instanceof HTMLElement&&window.getComputedStyle(cn).overscrollBehavior==="auto"&&(an=xe(cn,"overscrollBehavior","contain"))},Ln=yi=>{if(!cn||cn===document.documentElement||cn===document.body){yi.preventDefault();return}cn.scrollHeight===cn.clientHeight&&cn.scrollWidth===cn.clientWidth&&yi.preventDefault()},En=yi=>{let jr=yi.target;pt(jr)&&jr!==document.activeElement&&(yi.preventDefault(),sr(),jr.style.transform="translateY(-2000px)",jr.focus(),requestAnimationFrame(()=>{jr.style.transform=""})),an&&an()},Gn=yi=>{let jr=yi.target;pt(jr)&&(sr(),jr.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{jr.style.transform="",Re&&(Re.height<window.innerHeight?requestAnimationFrame(()=>{Tt(jr)}):Re.addEventListener("resize",()=>Tt(jr),{once:!0}))}))},rr=null,sr=()=>{if(rr)return;let yi=()=>{window.scrollTo(0,0)},jr=window.pageXOffset,ui=window.pageYOffset;rr=$k7QOs$chain(nt(window,"scroll",yi),xe(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),xe(document.documentElement,"overflow","hidden"),xe(document.body,"marginTop",`-${ui}px`),()=>{window.scrollTo(jr,ui)}),window.scrollTo(0,0)},pi=$k7QOs$chain(nt(document,"touchstart",Or,{passive:!1,capture:!0}),nt(document,"touchmove",Ln,{passive:!1,capture:!0}),nt(document,"touchend",En,{passive:!1,capture:!0}),nt(document,"focus",Gn,!0));return()=>{an?.(),rr?.(),pi()}}function xe(cn,an,Or){let Ln=cn.style[an];return cn.style[an]=Or,()=>{cn.style[an]=Ln}}function nt(cn,an,Or,Ln){return cn.addEventListener(an,Or,Ln),()=>{cn.removeEventListener(an,Or,Ln)}}function Tt(cn){let an=document.scrollingElement||document.documentElement;for(;cn&&cn!==an;){let Or=$k7QOs$getScrollParent(cn);if(Or!==document.documentElement&&Or!==document.body&&Or!==cn){let Ln=Or.getBoundingClientRect().top,En=cn.getBoundingClientRect().top;En>Ln+cn.clientHeight&&(Or.scrollTop+=En-Ln)}cn=Or.parentElement}}function pt(cn){return cn instanceof HTMLInputElement&&!ne.has(cn.type)||cn instanceof HTMLTextAreaElement||cn instanceof HTMLElement&&cn.isContentEditable}const Rt=i.createContext(null);function tt(cn){let{children:an}=cn,Or=(0,i.useContext)(Rt),[Ln,En]=(0,i.useState)(0),Gn=(0,i.useMemo)(()=>({parent:Or,modalCount:Ln,addModal(){En(rr=>rr+1),Or&&Or.addModal()},removeModal(){En(rr=>rr-1),Or&&Or.removeModal()}}),[Or,Ln]);return i.createElement(Rt.Provider,{value:Gn},an)}function U(){let cn=(0,i.useContext)(Rt);return{modalProviderProps:{"aria-hidden":cn&&cn.modalCount>0?!0:null}}}function F(cn){let{modalProviderProps:an}=U();return i.createElement("div",{"data-overlay-container":!0,...cn,...an})}function Y(cn){return i.createElement(tt,null,i.createElement(F,cn))}function le(cn){let an=(0,f.wR)(),{portalContainer:Or=an?null:document.body,...Ln}=cn;if(i.useEffect(()=>{if(Or?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[Or]),!Or)return null;let En=i.createElement(Y,Ln);return u.createPortal(En,Or)}function ke(cn){let an=$k7QOs$useContext(Rt);if(!an)throw new Error("Modal is not contained within a provider");return $k7QOs$useEffect(()=>{if(!(cn?.isDisabled||!an||!an.parent))return an.parent.addModal(),()=>{an&&an.parent&&an.parent.removeModal()}},[an,an.parent,cn?.isDisabled]),{modalProps:{"data-ismodal":!cn?.isDisabled}}}var Ye={},ft={};ft={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var wt={};wt={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Ut={};Ut={dismiss:"Odstranit"};var Ke={};Ke={dismiss:"Luk"};var it={};it={dismiss:"Schlie\xDFen"};var At={};At={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var et={};et={dismiss:"Dismiss"};var ee={};ee={dismiss:"Descartar"};var I={};I={dismiss:"L\xF5peta"};var K={};K={dismiss:"Hylk\xE4\xE4"};var ue={};ue={dismiss:"Rejeter"};var De={};De={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var He={};He={dismiss:"Odbaci"};var Fe={};Fe={dismiss:"Elutas\xEDt\xE1s"};var ze={};ze={dismiss:"Ignora"};var qe={};qe={dismiss:"\u9589\u3058\u308B"};var We={};We={dismiss:"\uBB34\uC2DC"};var _t={};_t={dismiss:"Atmesti"};var ct={};ct={dismiss:"Ner\u0101d\u012Bt"};var Ge={};Ge={dismiss:"Lukk"};var st={};st={dismiss:"Negeren"};var Me={};Me={dismiss:"Zignoruj"};var ie={};ie={dismiss:"Descartar"};var ge={};ge={dismiss:"Dispensar"};var z={};z={dismiss:"Revocare"};var be={};be={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var Qe={};Qe={dismiss:"Zru\u0161i\u0165"};var Bt={};Bt={dismiss:"Opusti"};var nn={};nn={dismiss:"Odbaci"};var bt={};bt={dismiss:"Avvisa"};var at={};at={dismiss:"Kapat"};var $t={};$t={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var On={};On={dismiss:"\u53D6\u6D88"};var Ct={};Ct={dismiss:"\u95DC\u9589"},Ye={"ar-AE":ft,"bg-BG":wt,"cs-CZ":Ut,"da-DK":Ke,"de-DE":it,"el-GR":At,"en-US":et,"es-ES":ee,"et-EE":I,"fi-FI":K,"fr-FR":ue,"he-IL":De,"hr-HR":He,"hu-HU":Fe,"it-IT":ze,"ja-JP":qe,"ko-KR":We,"lt-LT":_t,"lv-LV":ct,"nb-NO":Ge,"nl-NL":st,"pl-PL":Me,"pt-BR":ie,"pt-PT":ge,"ro-RO":z,"ru-RU":be,"sk-SK":Qe,"sl-SI":Bt,"sr-SP":nn,"sv-SE":bt,"tr-TR":at,"uk-UA":$t,"zh-CN":On,"zh-TW":Ct};function Zt(cn){let{onDismiss:an,...Or}=cn,Ln=$k7QOs$useLocalizedStringFormatter(p(Ye),"@react-aria/overlays"),En=$k7QOs$useLabels(Or,Ln.format("dismiss")),Gn=()=>{an&&an()};return $k7QOs$react.createElement($k7QOs$VisuallyHidden,null,$k7QOs$react.createElement("button",{...En,tabIndex:-1,onClick:Gn,style:{width:1,height:1}}))}let Wn=new WeakMap,Zn=null;function xt(cn,an=document.body){let Or=new Set(cn),Ln=new Set,En=pi=>{for(let bi of pi.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))Or.add(bi);let yi=bi=>{if(Or.has(bi)||Ln.has(bi.parentElement)&&bi.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let ri of Or)if(bi.contains(ri))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},jr=document.createTreeWalker(pi,NodeFilter.SHOW_ELEMENT,{acceptNode:yi}),ui=yi(pi);if(ui===NodeFilter.FILTER_ACCEPT&&Gn(pi),ui!==NodeFilter.FILTER_REJECT){let bi=jr.nextNode();for(;bi!=null;)Gn(bi),bi=jr.nextNode()}},Gn=pi=>{var yi;let jr=(yi=Wn.get(pi))!==null&&yi!==void 0?yi:0;pi.getAttribute("aria-hidden")==="true"&&jr===0||(jr===0&&pi.setAttribute("aria-hidden","true"),Ln.add(pi),Wn.set(pi,jr+1))};Zn.length&&Zn[Zn.length-1].disconnect(),En(an);let rr=new MutationObserver(pi=>{for(let yi of pi)if(!(yi.type!=="childList"||yi.addedNodes.length===0)&&![...Or,...Ln].some(jr=>jr.contains(yi.target))){for(let jr of yi.removedNodes)jr instanceof Element&&(Or.delete(jr),Ln.delete(jr));for(let jr of yi.addedNodes)(jr instanceof HTMLElement||jr instanceof SVGElement)&&(jr.dataset.liveAnnouncer==="true"||jr.dataset.reactAriaTopLayer==="true")?Or.add(jr):jr instanceof Element&&En(jr)}});rr.observe(an,{childList:!0,subtree:!0});let sr={observe(){rr.observe(an,{childList:!0,subtree:!0})},disconnect(){rr.disconnect()}};return Zn.push(sr),()=>{rr.disconnect();for(let pi of Ln){let yi=Wn.get(pi);yi===1?(pi.removeAttribute("aria-hidden"),Wn.delete(pi)):Wn.set(pi,yi-1)}sr===Zn[Zn.length-1]?(Zn.pop(),Zn.length&&Zn[Zn.length-1].observe()):Zn.splice(Zn.indexOf(sr),1)}}function Xe(cn,an){let{triggerRef:Or,popoverRef:Ln,isNonModal:En,isKeyboardDismissDisabled:Gn,shouldCloseOnInteractOutside:rr,...sr}=cn,{overlayProps:pi,underlayProps:yi}=Q({isOpen:an.isOpen,onClose:an.close,shouldCloseOnBlur:!0,isDismissable:!En,isKeyboardDismissDisabled:Gn,shouldCloseOnInteractOutside:rr},Ln),{overlayProps:jr,arrowProps:ui,placement:bi}=oe({...sr,targetRef:Or,overlayRef:Ln,isOpen:an.isOpen,onClose:En?an.close:null});return Se({isDisabled:En||!an.isOpen}),$k7QOs$useLayoutEffect(()=>{if(an.isOpen&&!En&&Ln.current)return xt([Ln.current])},[En,an.isOpen,Ln]),{popoverProps:$k7QOs$mergeProps(pi,jr),arrowProps:ui,underlayProps:yi,placement:bi}}const gn=i.createContext(null);function Qt(cn){let an=$k7QOs$useIsSSR(),{portalContainer:Or=an?null:document.body,isExiting:Ln}=cn,[En,Gn]=$k7QOs$useState(!1),rr=$k7QOs$useMemo(()=>({contain:En,setContain:Gn}),[En,Gn]);if(!Or)return null;let sr=cn.children;return cn.disableFocusManagement||(sr=$k7QOs$react.createElement($k7QOs$FocusScope,{restoreFocus:!0,contain:En&&!Ln},sr)),sr=$k7QOs$react.createElement(gn.Provider,{value:rr},$k7QOs$react.createElement($k7QOs$ClearPressResponder,null,sr)),$k7QOs$reactdom.createPortal(sr,Or)}function Dt(){let cn=(0,i.useContext)(gn),an=cn?.setContain;(0,l.Nf)(()=>{an?.(!0)},[an])}function hn(cn,an,Or){let{overlayProps:Ln,underlayProps:En}=Q({...cn,isOpen:an.isOpen,onClose:an.close},Or);return Se({isDisabled:!an.isOpen}),Dt(),$k7QOs$useEffect(()=>{if(an.isOpen)return xt([Or.current])},[an.isOpen,Or]),{modalProps:$k7QOs$mergeProps(Ln),underlayProps:En}}},3059:(J,g,t)=>{"use strict";t.d(g,{Cc:()=>w,wR:()=>M});var i=t(96540);const l={prefix:String(Math.round(Math.random()*1e10)),current:0},s=i.createContext(l),m=i.createContext(!1);function u(D){let P=$73SJx$useContext(s),T=d(P===l),[A,j]=$73SJx$useState(!0),ae=$73SJx$useMemo(()=>({prefix:P===l?"":`${P.prefix}-${T}`,current:0}),[P,T]);return typeof document<"u"&&$73SJx$useLayoutEffect(()=>{j(!1)},[]),$73SJx$react.createElement(s.Provider,{value:ae},$73SJx$react.createElement(m.Provider,{value:A},D.children))}let f=!1;function p(D){return typeof $73SJx$react.useId=="function"?(f||(console.warn("In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app."),f=!0),$73SJx$react.createElement($73SJx$react.Fragment,null,D.children)):$73SJx$react.createElement(u,D)}let v=!!(typeof window<"u"&&window.document&&window.document.createElement),h=new WeakMap;function d(D=!1){let P=(0,i.useContext)(s),T=(0,i.useRef)(null);if(T.current===null&&!D){var A,j;let ae=(j=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||j===void 0||(A=j.ReactCurrentOwner)===null||A===void 0?void 0:A.current;if(ae){let _=h.get(ae);_==null?h.set(ae,{id:P.current,state:ae.memoizedState}):ae.memoizedState!==_.state&&(P.current=_.id,h.delete(ae))}T.current=++P.current}return T.current}function b(D){let P=(0,i.useContext)(s);P===l&&!v&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let T=d(!!D),A=`react-aria${P.prefix}`;return D||`${A}-${T}`}function y(D){let P=i.useId(),[T]=(0,i.useState)(M()),A=T?"react-aria":`react-aria${l.prefix}`;return D||`${A}-${P}`}const w=typeof i.useId=="function"?y:b;function S(){return!1}function O(){return!0}function R(D){return()=>{}}function M(){return typeof i.useSyncExternalStore=="function"?i.useSyncExternalStore(R,S,O):(0,i.useContext)(m)}},16792:(J,g,t)=>{"use strict";t.d(g,{$X:()=>T,Bi:()=>v,Jt:()=>m,Nf:()=>s,TW:()=>y,X1:()=>d,YF:()=>ze,cX:()=>fe,eC:()=>A,mD:()=>w,vg:()=>Rt,wY:()=>ft});var i=t(96540),l=t(3059);const s=typeof document<"u"?i.useLayoutEffect:()=>{};function m(ct){const Ge=(0,i.useRef)(null);return s(()=>{Ge.current=ct},[ct]),(0,i.useCallback)((...st)=>{const Me=Ge.current;return Me?.(...st)},[])}function u(ct){let[Ge,st]=(0,i.useState)(ct),Me=(0,i.useRef)(null),ie=m(()=>{if(!Me.current)return;let z=Me.current.next();if(z.done){Me.current=null;return}Ge===z.value?ie():st(z.value)});s(()=>{Me.current&&ie()});let ge=m(z=>{Me.current=z(Ge),ie()});return[Ge,ge]}let f=!!(typeof window<"u"&&window.document&&window.document.createElement),p=new Map;function v(ct){let[Ge,st]=(0,i.useState)(ct),Me=(0,i.useRef)(null),ie=(0,l.Cc)(Ge),ge=(0,i.useCallback)(z=>{Me.current=z},[]);return f&&p.set(ie,ge),s(()=>{let z=ie;return()=>{p.delete(z)}},[ie]),(0,i.useEffect)(()=>{let z=Me.current;z&&(Me.current=null,st(z))}),ie}function h(ct,Ge){if(ct===Ge)return ct;let st=p.get(ct);if(st)return st(Ge),Ge;let Me=p.get(Ge);return Me?(Me(ct),ct):Ge}function d(ct=[]){let Ge=v(),[st,Me]=u(Ge),ie=(0,i.useCallback)(()=>{Me(function*(){yield Ge,yield document.getElementById(Ge)?Ge:void 0})},[Ge,Me]);return s(ie,[Ge,ie,...ct]),st}function b(...ct){return(...Ge)=>{for(let st of ct)typeof st=="function"&&st(...Ge)}}const y=ct=>{var Ge;return(Ge=ct?.ownerDocument)!==null&&Ge!==void 0?Ge:document},w=ct=>ct&&"window"in ct&&ct.window===ct?ct:y(ct).defaultView||window;function S(...ct){let Ge={...ct[0]};for(let st=1;st<ct.length;st++){let Me=ct[st];for(let ie in Me){let ge=Ge[ie],z=Me[ie];typeof ge=="function"&&typeof z=="function"&&ie[0]==="o"&&ie[1]==="n"&&ie.charCodeAt(2)>=65&&ie.charCodeAt(2)<=90?Ge[ie]=b(ge,z):(ie==="className"||ie==="UNSAFE_className")&&typeof ge=="string"&&typeof z=="string"?Ge[ie]=$12uGp$clsx(ge,z):ie==="id"&&ge&&z?Ge.id=h(ge,z):Ge[ie]=z!==void 0?z:ge}}return Ge}function O(...ct){return ct.length===1?ct[0]:Ge=>{for(let st of ct)typeof st=="function"?st(Ge):st!=null&&(st.current=Ge)}}const R=new Set(["id"]),M=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),D=new Set(["href","target","rel","download","ping","referrerPolicy"]),P=/^(data-.*)$/;function T(ct,Ge={}){let{labelable:st,isLink:Me,propNames:ie}=Ge,ge={};for(const z in ct)Object.prototype.hasOwnProperty.call(ct,z)&&(R.has(z)||st&&M.has(z)||Me&&D.has(z)||ie?.has(z)||P.test(z))&&(ge[z]=ct[z]);return ge}function A(ct){if(ae())ct.focus({preventScroll:!0});else{let Ge=_(ct);ct.focus(),N(Ge)}}let j=null;function ae(){if(j==null){j=!1;try{document.createElement("div").focus({get preventScroll(){return j=!0,!0}})}catch{}}return j}function _(ct){let Ge=ct.parentNode,st=[],Me=document.scrollingElement||document.documentElement;for(;Ge instanceof HTMLElement&&Ge!==Me;)(Ge.offsetHeight<Ge.scrollHeight||Ge.offsetWidth<Ge.scrollWidth)&&st.push({element:Ge,scrollTop:Ge.scrollTop,scrollLeft:Ge.scrollLeft}),Ge=Ge.parentNode;return Me instanceof HTMLElement&&st.push({element:Me,scrollTop:Me.scrollTop,scrollLeft:Me.scrollLeft}),st}function N(ct){for(let{element:Ge,scrollTop:st,scrollLeft:Me}of ct)Ge.scrollTop=st,Ge.scrollLeft=Me}function W(ct,Ge,st="horizontal"){let Me=ct.getBoundingClientRect();return Ge?st==="horizontal"?Me.right:Me.bottom:st==="horizontal"?Me.left:Me.top}function he(ct){var Ge;return typeof window>"u"||window.navigator==null?!1:((Ge=window.navigator.userAgentData)===null||Ge===void 0?void 0:Ge.brands.some(st=>ct.test(st.brand)))||ct.test(window.navigator.userAgent)}function me(ct){var Ge;return typeof window<"u"&&window.navigator!=null?ct.test(((Ge=window.navigator.userAgentData)===null||Ge===void 0?void 0:Ge.platform)||window.navigator.platform):!1}function fe(){return me(/^Mac/i)}function ve(){return me(/^iPhone/i)}function ce(){return me(/^iPad/i)||fe()&&navigator.maxTouchPoints>1}function oe(){return ve()||ce()}function re(){return fe()||oe()}function H(){return he(/AppleWebKit/i)&&!V()}function V(){return he(/Chrome/i)}function Q(){return he(/Android/i)}function Te(){return he(/Firefox/i)}const Re=(0,i.createContext)({isNative:!0,open:Ee});function ne(ct){let{children:Ge,navigate:st}=ct,Me=$12uGp$useMemo(()=>({isNative:!1,open:(ie,ge)=>{Ae(ie,z=>{ye(z,ge)?st(z.pathname+z.search+z.hash):Se(z,ge)})}}),[st]);return $12uGp$react.createElement(Re.Provider,{value:Me},Ge)}function pe(){return $12uGp$useContext(Re)}function ye(ct,Ge){let st=ct.getAttribute("target");return(!st||st==="_self")&&ct.origin===location.origin&&!ct.hasAttribute("download")&&!Ge.metaKey&&!Ge.ctrlKey&&!Ge.altKey&&!Ge.shiftKey}function Se(ct,Ge,st=!0){var Me,ie;let{metaKey:ge,ctrlKey:z,altKey:be,shiftKey:Qe}=Ge;Te()&&(!((ie=window.event)===null||ie===void 0||(Me=ie.type)===null||Me===void 0)&&Me.startsWith("key"))&&ct.target==="_blank"&&(fe()?ge=!0:z=!0);let Bt=H()&&fe()&&!ce()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:ge,ctrlKey:z,altKey:be,shiftKey:Qe}):new MouseEvent("click",{metaKey:ge,ctrlKey:z,altKey:be,shiftKey:Qe,bubbles:!0,cancelable:!0});Se.isOpening=st,A(ct),ct.dispatchEvent(Bt),Se.isOpening=!1}Se.isOpening=!1;function Ae(ct,Ge){if(ct instanceof HTMLAnchorElement)Ge(ct);else if(ct.hasAttribute("data-href")){let st=document.createElement("a");st.href=ct.getAttribute("data-href"),ct.hasAttribute("data-target")&&(st.target=ct.getAttribute("data-target")),ct.hasAttribute("data-rel")&&(st.rel=ct.getAttribute("data-rel")),ct.hasAttribute("data-download")&&(st.download=ct.getAttribute("data-download")),ct.hasAttribute("data-ping")&&(st.ping=ct.getAttribute("data-ping")),ct.hasAttribute("data-referrer-policy")&&(st.referrerPolicy=ct.getAttribute("data-referrer-policy")),ct.appendChild(st),Ge(st),ct.removeChild(st)}}function Ee(ct,Ge){Ae(ct,st=>Se(st,Ge))}function xe(ct){return{"data-href":ct.href,"data-target":ct.target,"data-rel":ct.rel,"data-download":ct.download,"data-ping":ct.ping,"data-referrer-policy":ct.referrerPolicy}}let nt=new Map,Tt=new Set;function pt(){if(typeof window>"u")return;function ct(Me){return"propertyName"in Me}let Ge=Me=>{if(!ct(Me)||!Me.target)return;let ie=nt.get(Me.target);ie||(ie=new Set,nt.set(Me.target,ie),Me.target.addEventListener("transitioncancel",st,{once:!0})),ie.add(Me.propertyName)},st=Me=>{if(!ct(Me)||!Me.target)return;let ie=nt.get(Me.target);if(ie&&(ie.delete(Me.propertyName),ie.size===0&&(Me.target.removeEventListener("transitioncancel",st),nt.delete(Me.target)),nt.size===0)){for(let ge of Tt)ge();Tt.clear()}};document.body.addEventListener("transitionrun",Ge),document.body.addEventListener("transitionend",st)}typeof document<"u"&&(document.readyState!=="loading"?pt():document.addEventListener("DOMContentLoaded",pt));function Rt(ct){requestAnimationFrame(()=>{nt.size===0?ct():Tt.add(ct)})}const tt=null;function U(ct){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:Ge,reverse:st,orientation:Me,onHover:ie,onDrag:ge,onPositionChange:z,onIncrement:be,onDecrement:Qe,onIncrementToMax:Bt,onDecrementToMin:nn,onCollapseToggle:bt}=ct,at=Dt=>Me==="horizontal"?Dt.clientX:Dt.clientY,$t=Dt=>{let hn=W(Ge.current,st,Me),cn=at(Dt);return st?hn-cn:cn-hn},On=$12uGp$useRef(!1),Ct=$12uGp$useRef(0),Zt=$12uGp$useRef({onPositionChange:z,onDrag:ge});Zt.current.onDrag=ge,Zt.current.onPositionChange=z;let Wn=Dt=>{Dt.preventDefault();let hn=$t(Dt);On.current||(On.current=!0,Zt.current.onDrag&&Zt.current.onDrag(!0),Zt.current.onPositionChange&&Zt.current.onPositionChange(hn)),Ct.current!==hn&&(Ct.current=hn,z&&z(hn))},Zn=Dt=>{const hn=Dt.target;On.current=!1;let cn=$t(Dt);Zt.current.onDrag&&Zt.current.onDrag(!1),Zt.current.onPositionChange&&Zt.current.onPositionChange(cn),tt.splice(tt.indexOf(hn),1),window.removeEventListener("mouseup",Zn,!1),window.removeEventListener("mousemove",Wn,!1)};return{onMouseDown:Dt=>{const hn=Dt.currentTarget;tt.some(cn=>hn.contains(cn))||(tt.push(hn),window.addEventListener("mousemove",Wn,!1),window.addEventListener("mouseup",Zn,!1))},onMouseEnter:()=>{ie&&ie(!0)},onMouseOut:()=>{ie&&ie(!1)},onKeyDown:Dt=>{switch(Dt.key){case"Left":case"ArrowLeft":Me==="horizontal"&&(Dt.preventDefault(),Qe&&!st?Qe():be&&st&&be());break;case"Up":case"ArrowUp":Me==="vertical"&&(Dt.preventDefault(),Qe&&!st?Qe():be&&st&&be());break;case"Right":case"ArrowRight":Me==="horizontal"&&(Dt.preventDefault(),be&&!st?be():Qe&&st&&Qe());break;case"Down":case"ArrowDown":Me==="vertical"&&(Dt.preventDefault(),be&&!st?be():Qe&&st&&Qe());break;case"Home":Dt.preventDefault(),nn&&nn();break;case"End":Dt.preventDefault(),Bt&&Bt();break;case"Enter":Dt.preventDefault(),bt&&bt();break}}}}function F(){let ct=$12uGp$useRef(new Map),Ge=$12uGp$useCallback((ie,ge,z,be)=>{let Qe=be?.once?(...Bt)=>{ct.current.delete(z),z(...Bt)}:z;ct.current.set(z,{type:ge,eventTarget:ie,fn:Qe,options:be}),ie.addEventListener(ge,z,be)},[]),st=$12uGp$useCallback((ie,ge,z,be)=>{var Qe;let Bt=((Qe=ct.current.get(z))===null||Qe===void 0?void 0:Qe.fn)||z;ie.removeEventListener(ge,Bt,be),ct.current.delete(z)},[]),Me=$12uGp$useCallback(()=>{ct.current.forEach((ie,ge)=>{st(ie.eventTarget,ie.type,ge,ie.options)})},[st]);return $12uGp$useEffect(()=>Me,[Me]),{addGlobalListener:Ge,removeGlobalListener:st,removeAllGlobalListeners:Me}}function Y(ct,Ge){let{id:st,"aria-label":Me,"aria-labelledby":ie}=ct;return st=v(st),ie&&Me?ie=[...new Set([st,...ie.trim().split(/\s+/)])].join(" "):ie&&(ie=ie.trim().split(/\s+/).join(" ")),!Me&&!ie&&Ge&&(Me=Ge),{id:st,"aria-label":Me,"aria-labelledby":ie}}function le(ct){const Ge=$12uGp$useRef(null);return $12uGp$useMemo(()=>({get current(){return Ge.current},set current(st){Ge.current=st,typeof ct=="function"?ct(st):ct&&(ct.current=st)}}),[ct])}function ke(ct,Ge){const st=$12uGp$useRef(!0),Me=$12uGp$useRef(null);$12uGp$useEffect(()=>(st.current=!0,()=>{st.current=!1}),[]),$12uGp$useEffect(()=>{st.current?st.current=!1:(!Me.current||Ge.some((ie,ge)=>!Object.is(ie,Me[ge])))&&ct(),Me.current=Ge},Ge)}function Ye(){return typeof window.ResizeObserver<"u"}function ft(ct){const{ref:Ge,onResize:st}=ct;(0,i.useEffect)(()=>{let Me=Ge?.current;if(Me)if(Ye()){const ie=new window.ResizeObserver(ge=>{ge.length&&st()});return ie.observe(Me),()=>{Me&&ie.unobserve(Me)}}else return window.addEventListener("resize",st,!1),()=>{window.removeEventListener("resize",st,!1)}},[st,Ge])}function wt(ct,Ge){s(()=>{if(ct&&ct.ref&&Ge)return ct.ref.current=Ge.current,()=>{ct.ref&&(ct.ref.current=null)}})}function Ut(ct,Ge){let st=ct;for(Ke(st,Ge)&&(st=st.parentElement);st&&!Ke(st,Ge);)st=st.parentElement;return st||document.scrollingElement||document.documentElement}function Ke(ct,Ge){let st=window.getComputedStyle(ct),Me=/(auto|scroll)/.test(st.overflow+st.overflowX+st.overflowY);return Me&&Ge&&(Me=ct.scrollHeight!==ct.clientHeight||ct.scrollWidth!==ct.clientWidth),Me}let it=typeof document<"u"&&window.visualViewport;function At(){let ct=$12uGp$useIsSSR(),[Ge,st]=$12uGp$useState(()=>ct?{width:0,height:0}:et());return $12uGp$useEffect(()=>{let Me=()=>{st(ie=>{let ge=et();return ge.width===ie.width&&ge.height===ie.height?ie:ge})};return it?it.addEventListener("resize",Me):window.addEventListener("resize",Me),()=>{it?it.removeEventListener("resize",Me):window.removeEventListener("resize",Me)}},[]),Ge}function et(){return{width:it&&it?.width||window.innerWidth,height:it&&it?.height||window.innerHeight}}let ee=0;const I=new Map;function K(ct){let[Ge,st]=$12uGp$useState();return s(()=>{if(!ct)return;let Me=I.get(ct);if(Me)st(Me.element.id);else{let ie=`react-aria-description-${ee++}`;st(ie);let ge=document.createElement("div");ge.id=ie,ge.style.display="none",ge.textContent=ct,document.body.appendChild(ge),Me={refCount:0,element:ge},I.set(ct,Me)}return Me.refCount++,()=>{Me&&--Me.refCount===0&&(Me.element.remove(),I.delete(ct))}},[ct]),{"aria-describedby":ct?Ge:void 0}}function ue(ct,Ge,st,Me){let ie=m(st),ge=st==null;$12uGp$useEffect(()=>{if(ge||!ct.current)return;let z=ct.current;return z.addEventListener(Ge,ie,Me),()=>{z.removeEventListener(Ge,ie,Me)}},[ct,Ge,Me,ge,ie])}function De(ct,Ge){let st=He(ct,Ge,"left"),Me=He(ct,Ge,"top"),ie=Ge.offsetWidth,ge=Ge.offsetHeight,z=ct.scrollLeft,be=ct.scrollTop,{borderTopWidth:Qe,borderLeftWidth:Bt}=getComputedStyle(ct),nn=ct.scrollLeft+parseInt(Bt,10),bt=ct.scrollTop+parseInt(Qe,10),at=nn+ct.clientWidth,$t=bt+ct.clientHeight;st<=z?z=st-parseInt(Bt,10):st+ie>at&&(z+=st+ie-at),Me<=bt?be=Me-parseInt(Qe,10):Me+ge>$t&&(be+=Me+ge-$t),ct.scrollLeft=z,ct.scrollTop=be}function He(ct,Ge,st){const Me=st==="left"?"offsetLeft":"offsetTop";let ie=0;for(;Ge.offsetParent&&(ie+=Ge[Me],Ge.offsetParent!==ct);){if(Ge.offsetParent.contains(ct)){ie-=ct[Me];break}Ge=Ge.offsetParent}return ie}function Fe(ct,Ge){if(document.contains(ct)){let z=document.scrollingElement||document.documentElement;if(window.getComputedStyle(z).overflow==="hidden"){let Qe=Ut(ct);for(;ct&&Qe&&ct!==z&&Qe!==z;)De(Qe,ct),ct=Qe,Qe=Ut(ct)}else{var st;let{left:Qe,top:Bt}=ct.getBoundingClientRect();ct==null||(st=ct.scrollIntoView)===null||st===void 0||st.call(ct,{block:"nearest"});let{left:nn,top:bt}=ct.getBoundingClientRect();if(Math.abs(Qe-nn)>1||Math.abs(Bt-bt)>1){var Me,ie,ge;Ge==null||(ie=Ge.containingElement)===null||ie===void 0||(Me=ie.scrollIntoView)===null||Me===void 0||Me.call(ie,{block:"center",inline:"center"}),(ge=ct.scrollIntoView)===null||ge===void 0||ge.call(ct,{block:"nearest"})}}}}function ze(ct){return ct.mozInputSource===0&&ct.isTrusted?!0:Q()&&ct.pointerType?ct.type==="click"&&ct.buttons===1:ct.detail===0&&!ct.pointerType}function qe(ct){return!Q()&&ct.width===0&&ct.height===0||ct.width===1&&ct.height===1&&ct.pressure===0&&ct.detail===0&&ct.pointerType==="mouse"}function We(ct,Ge){let st=$12uGp$useRef(null);return ct&&st.current&&Ge(ct,st.current)&&(ct=st.current),st.current=ct,ct}function _t(ct,Ge,st){let Me=$12uGp$useRef(Ge),ie=m(()=>{st&&st(Me.current)});$12uGp$useEffect(()=>{var ge;let z=ct==null||(ge=ct.current)===null||ge===void 0?void 0:ge.form;return z?.addEventListener("reset",ie),()=>{z?.removeEventListener("reset",ie)}},[ct,ie])}},2435:(J,g,t)=>{"use strict";t.d(g,{$i:()=>K,Ay:()=>He,Qx:()=>l,YT:()=>Re,a6:()=>s,c2:()=>m,rF:()=>Te,ss:()=>V,vI:()=>et});function i(Fe){for(var ze=arguments.length,qe=Array(ze>1?ze-1:0),We=1;We<ze;We++)qe[We-1]=arguments[We];if(!1)var _t,ct;throw Error("[Immer] minified error nr: "+Fe+(qe.length?" "+qe.map(function(Ge){return"'"+Ge+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function l(Fe){return!!Fe&&!!Fe[U]}function s(Fe){var ze;return!!Fe&&(function(qe){if(!qe||typeof qe!="object")return!1;var We=Object.getPrototypeOf(qe);if(We===null)return!0;var _t=Object.hasOwnProperty.call(We,"constructor")&&We.constructor;return _t===Object||typeof _t=="function"&&Function.toString.call(_t)===le}(Fe)||Array.isArray(Fe)||!!Fe[tt]||!!(!((ze=Fe.constructor)===null||ze===void 0)&&ze[tt])||b(Fe)||y(Fe))}function m(Fe){return l(Fe)||i(23,Fe),Fe[U].t}function u(Fe,ze,qe){qe===void 0&&(qe=!1),f(Fe)===0?(qe?Object.keys:ke)(Fe).forEach(function(We){qe&&typeof We=="symbol"||ze(We,Fe[We],Fe)}):Fe.forEach(function(We,_t){return ze(_t,We,Fe)})}function f(Fe){var ze=Fe[U];return ze?ze.i>3?ze.i-4:ze.i:Array.isArray(Fe)?1:b(Fe)?2:y(Fe)?3:0}function p(Fe,ze){return f(Fe)===2?Fe.has(ze):Object.prototype.hasOwnProperty.call(Fe,ze)}function v(Fe,ze){return f(Fe)===2?Fe.get(ze):Fe[ze]}function h(Fe,ze,qe){var We=f(Fe);We===2?Fe.set(ze,qe):We===3?Fe.add(qe):Fe[ze]=qe}function d(Fe,ze){return Fe===ze?Fe!==0||1/Fe==1/ze:Fe!=Fe&&ze!=ze}function b(Fe){return nt&&Fe instanceof Map}function y(Fe){return Tt&&Fe instanceof Set}function w(Fe){return Fe.o||Fe.t}function S(Fe){if(Array.isArray(Fe))return Array.prototype.slice.call(Fe);var ze=Ye(Fe);delete ze[U];for(var qe=ke(ze),We=0;We<qe.length;We++){var _t=qe[We],ct=ze[_t];ct.writable===!1&&(ct.writable=!0,ct.configurable=!0),(ct.get||ct.set)&&(ze[_t]={configurable:!0,writable:!0,enumerable:ct.enumerable,value:Fe[_t]})}return Object.create(Object.getPrototypeOf(Fe),ze)}function O(Fe,ze){return ze===void 0&&(ze=!1),M(Fe)||l(Fe)||!s(Fe)||(f(Fe)>1&&(Fe.set=Fe.add=Fe.clear=Fe.delete=R),Object.freeze(Fe),ze&&u(Fe,function(qe,We){return O(We,!0)},!0)),Fe}function R(){i(2)}function M(Fe){return Fe==null||typeof Fe!="object"||Object.isFrozen(Fe)}function D(Fe){var ze=ft[Fe];return ze||i(18,Fe),ze}function P(Fe,ze){ft[Fe]||(ft[Fe]=ze)}function T(){return Ee}function A(Fe,ze){ze&&(D("Patches"),Fe.u=[],Fe.s=[],Fe.v=ze)}function j(Fe){ae(Fe),Fe.p.forEach(N),Fe.p=null}function ae(Fe){Fe===Ee&&(Ee=Fe.l)}function _(Fe){return Ee={p:[],l:Ee,h:Fe,m:!0,_:0}}function N(Fe){var ze=Fe[U];ze.i===0||ze.i===1?ze.j():ze.g=!0}function W(Fe,ze){ze._=ze.p.length;var qe=ze.p[0],We=Fe!==void 0&&Fe!==qe;return ze.h.O||D("ES5").S(ze,Fe,We),We?(qe[U].P&&(j(ze),i(4)),s(Fe)&&(Fe=he(ze,Fe),ze.l||fe(ze,Fe)),ze.u&&D("Patches").M(qe[U].t,Fe,ze.u,ze.s)):Fe=he(ze,qe,[]),j(ze),ze.u&&ze.v(ze.u,ze.s),Fe!==Rt?Fe:void 0}function he(Fe,ze,qe){if(M(ze))return ze;var We=ze[U];if(!We)return u(ze,function(st,Me){return me(Fe,We,ze,st,Me,qe)},!0),ze;if(We.A!==Fe)return ze;if(!We.P)return fe(Fe,We.t,!0),We.t;if(!We.I){We.I=!0,We.A._--;var _t=We.i===4||We.i===5?We.o=S(We.k):We.o,ct=_t,Ge=!1;We.i===3&&(ct=new Set(_t),_t.clear(),Ge=!0),u(ct,function(st,Me){return me(Fe,We,_t,st,Me,qe,Ge)}),fe(Fe,_t,!1),qe&&Fe.u&&D("Patches").N(We,qe,Fe.u,Fe.s)}return We.o}function me(Fe,ze,qe,We,_t,ct,Ge){if(l(_t)){var st=he(Fe,_t,ct&&ze&&ze.i!==3&&!p(ze.R,We)?ct.concat(We):void 0);if(h(qe,We,st),!l(st))return;Fe.m=!1}else Ge&&qe.add(_t);if(s(_t)&&!M(_t)){if(!Fe.h.D&&Fe._<1)return;he(Fe,_t),ze&&ze.A.l||fe(Fe,_t)}}function fe(Fe,ze,qe){qe===void 0&&(qe=!1),!Fe.l&&Fe.h.D&&Fe.m&&O(ze,qe)}function ve(Fe,ze){var qe=Fe[U];return(qe?w(qe):Fe)[ze]}function ce(Fe,ze){if(ze in Fe)for(var qe=Object.getPrototypeOf(Fe);qe;){var We=Object.getOwnPropertyDescriptor(qe,ze);if(We)return We;qe=Object.getPrototypeOf(qe)}}function oe(Fe){Fe.P||(Fe.P=!0,Fe.l&&oe(Fe.l))}function re(Fe){Fe.o||(Fe.o=S(Fe.t))}function H(Fe,ze,qe){var We=b(ze)?D("MapSet").F(ze,qe):y(ze)?D("MapSet").T(ze,qe):Fe.O?function(_t,ct){var Ge=Array.isArray(_t),st={i:Ge?1:0,A:ct?ct.A:T(),P:!1,I:!1,R:{},l:ct,t:_t,k:null,o:null,j:null,C:!1},Me=st,ie=wt;Ge&&(Me=[st],ie=Ut);var ge=Proxy.revocable(Me,ie),z=ge.revoke,be=ge.proxy;return st.k=be,st.j=z,be}(ze,qe):D("ES5").J(ze,qe);return(qe?qe.A:T()).p.push(We),We}function V(Fe){return l(Fe)||i(22,Fe),function ze(qe){if(!s(qe))return qe;var We,_t=qe[U],ct=f(qe);if(_t){if(!_t.P&&(_t.i<4||!D("ES5").K(_t)))return _t.t;_t.I=!0,We=Q(qe,ct),_t.I=!1}else We=Q(qe,ct);return u(We,function(Ge,st){_t&&v(_t.t,Ge)===st||h(We,Ge,ze(st))}),ct===3?new Set(We):We}(Fe)}function Q(Fe,ze){switch(ze){case 2:return new Map(Fe);case 3:return Array.from(Fe)}return S(Fe)}function Te(){function Fe(Ge,st){var Me=ct[Ge];return Me?Me.enumerable=st:ct[Ge]=Me={configurable:!0,enumerable:st,get:function(){var ie=this[U];return wt.get(ie,Ge)},set:function(ie){var ge=this[U];wt.set(ge,Ge,ie)}},Me}function ze(Ge){for(var st=Ge.length-1;st>=0;st--){var Me=Ge[st][U];if(!Me.P)switch(Me.i){case 5:We(Me)&&oe(Me);break;case 4:qe(Me)&&oe(Me)}}}function qe(Ge){for(var st=Ge.t,Me=Ge.k,ie=ke(Me),ge=ie.length-1;ge>=0;ge--){var z=ie[ge];if(z!==U){var be=st[z];if(be===void 0&&!p(st,z))return!0;var Qe=Me[z],Bt=Qe&&Qe[U];if(Bt?Bt.t!==be:!d(Qe,be))return!0}}var nn=!!st[U];return ie.length!==ke(st).length+(nn?0:1)}function We(Ge){var st=Ge.k;if(st.length!==Ge.t.length)return!0;var Me=Object.getOwnPropertyDescriptor(st,st.length-1);if(Me&&!Me.get)return!0;for(var ie=0;ie<st.length;ie++)if(!st.hasOwnProperty(ie))return!0;return!1}function _t(Ge){Ge.g&&i(3,JSON.stringify(w(Ge)))}var ct={};P("ES5",{J:function(Ge,st){var Me=Array.isArray(Ge),ie=function(z,be){if(z){for(var Qe=Array(be.length),Bt=0;Bt<be.length;Bt++)Object.defineProperty(Qe,""+Bt,Fe(Bt,!0));return Qe}var nn=Ye(be);delete nn[U];for(var bt=ke(nn),at=0;at<bt.length;at++){var $t=bt[at];nn[$t]=Fe($t,z||!!nn[$t].enumerable)}return Object.create(Object.getPrototypeOf(be),nn)}(Me,Ge),ge={i:Me?5:4,A:st?st.A:T(),P:!1,I:!1,R:{},l:st,t:Ge,k:ie,o:null,g:!1,C:!1};return Object.defineProperty(ie,U,{value:ge,writable:!0}),ie},S:function(Ge,st,Me){Me?l(st)&&st[U].A===Ge&&ze(Ge.p):(Ge.u&&function ie(ge){if(ge&&typeof ge=="object"){var z=ge[U];if(z){var be=z.t,Qe=z.k,Bt=z.R,nn=z.i;if(nn===4)u(Qe,function(Ct){Ct!==U&&(be[Ct]!==void 0||p(be,Ct)?Bt[Ct]||ie(Qe[Ct]):(Bt[Ct]=!0,oe(z)))}),u(be,function(Ct){Qe[Ct]!==void 0||p(Qe,Ct)||(Bt[Ct]=!1,oe(z))});else if(nn===5){if(We(z)&&(oe(z),Bt.length=!0),Qe.length<be.length)for(var bt=Qe.length;bt<be.length;bt++)Bt[bt]=!1;else for(var at=be.length;at<Qe.length;at++)Bt[at]=!0;for(var $t=Math.min(Qe.length,be.length),On=0;On<$t;On++)Qe.hasOwnProperty(On)||(Bt[On]=!0),Bt[On]===void 0&&ie(Qe[On])}}}}(Ge.p[0]),ze(Ge.p))},K:function(Ge){return Ge.i===4?qe(Ge):We(Ge)}})}function Re(){function Fe(We){if(!s(We))return We;if(Array.isArray(We))return We.map(Fe);if(b(We))return new Map(Array.from(We.entries()).map(function(Ge){return[Ge[0],Fe(Ge[1])]}));if(y(We))return new Set(Array.from(We).map(Fe));var _t=Object.create(Object.getPrototypeOf(We));for(var ct in We)_t[ct]=Fe(We[ct]);return p(We,tt)&&(_t[tt]=We[tt]),_t}function ze(We){return l(We)?Fe(We):We}var qe="add";P("Patches",{$:function(We,_t){return _t.forEach(function(ct){for(var Ge=ct.path,st=ct.op,Me=We,ie=0;ie<Ge.length-1;ie++){var ge=f(Me),z=Ge[ie];typeof z!="string"&&typeof z!="number"&&(z=""+z),ge!==0&&ge!==1||z!=="__proto__"&&z!=="constructor"||i(24),typeof Me=="function"&&z==="prototype"&&i(24),typeof(Me=v(Me,z))!="object"&&i(15,Ge.join("/"))}var be=f(Me),Qe=Fe(ct.value),Bt=Ge[Ge.length-1];switch(st){case"replace":switch(be){case 2:return Me.set(Bt,Qe);case 3:i(16);default:return Me[Bt]=Qe}case qe:switch(be){case 1:return Bt==="-"?Me.push(Qe):Me.splice(Bt,0,Qe);case 2:return Me.set(Bt,Qe);case 3:return Me.add(Qe);default:return Me[Bt]=Qe}case"remove":switch(be){case 1:return Me.splice(Bt,1);case 2:return Me.delete(Bt);case 3:return Me.delete(ct.value);default:return delete Me[Bt]}default:i(17,st)}}),We},N:function(We,_t,ct,Ge){switch(We.i){case 0:case 4:case 2:return function(st,Me,ie,ge){var z=st.t,be=st.o;u(st.R,function(Qe,Bt){var nn=v(z,Qe),bt=v(be,Qe),at=Bt?p(z,Qe)?"replace":qe:"remove";if(nn!==bt||at!=="replace"){var $t=Me.concat(Qe);ie.push(at==="remove"?{op:at,path:$t}:{op:at,path:$t,value:bt}),ge.push(at===qe?{op:"remove",path:$t}:at==="remove"?{op:qe,path:$t,value:ze(nn)}:{op:"replace",path:$t,value:ze(nn)})}})}(We,_t,ct,Ge);case 5:case 1:return function(st,Me,ie,ge){var z=st.t,be=st.R,Qe=st.o;if(Qe.length<z.length){var Bt=[Qe,z];z=Bt[0],Qe=Bt[1];var nn=[ge,ie];ie=nn[0],ge=nn[1]}for(var bt=0;bt<z.length;bt++)if(be[bt]&&Qe[bt]!==z[bt]){var at=Me.concat([bt]);ie.push({op:"replace",path:at,value:ze(Qe[bt])}),ge.push({op:"replace",path:at,value:ze(z[bt])})}for(var $t=z.length;$t<Qe.length;$t++){var On=Me.concat([$t]);ie.push({op:qe,path:On,value:ze(Qe[$t])})}z.length<Qe.length&&ge.push({op:"replace",path:Me.concat(["length"]),value:z.length})}(We,_t,ct,Ge);case 3:return function(st,Me,ie,ge){var z=st.t,be=st.o,Qe=0;z.forEach(function(Bt){if(!be.has(Bt)){var nn=Me.concat([Qe]);ie.push({op:"remove",path:nn,value:Bt}),ge.unshift({op:qe,path:nn,value:Bt})}Qe++}),Qe=0,be.forEach(function(Bt){if(!z.has(Bt)){var nn=Me.concat([Qe]);ie.push({op:qe,path:nn,value:Bt}),ge.unshift({op:"remove",path:nn,value:Bt})}Qe++})}(We,_t,ct,Ge)}},M:function(We,_t,ct,Ge){ct.push({op:"replace",path:[],value:_t===Rt?void 0:_t}),Ge.push({op:"replace",path:[],value:We})}})}function ne(){function Fe(st,Me){function ie(){this.constructor=st}_t(st,Me),st.prototype=(ie.prototype=Me.prototype,new ie)}function ze(st){st.o||(st.R=new Map,st.o=new Map(st.t))}function qe(st){st.o||(st.o=new Set,st.t.forEach(function(Me){if(s(Me)){var ie=H(st.A.h,Me,st);st.p.set(Me,ie),st.o.add(ie)}else st.o.add(Me)}))}function We(st){st.g&&i(3,JSON.stringify(w(st)))}var _t=function(st,Me){return(_t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ge){ie.__proto__=ge}||function(ie,ge){for(var z in ge)ge.hasOwnProperty(z)&&(ie[z]=ge[z])})(st,Me)},ct=function(){function st(ie,ge){return this[U]={i:2,l:ge,A:ge?ge.A:T(),P:!1,I:!1,o:void 0,R:void 0,t:ie,k:this,C:!1,g:!1},this}Fe(st,Map);var Me=st.prototype;return Object.defineProperty(Me,"size",{get:function(){return w(this[U]).size}}),Me.has=function(ie){return w(this[U]).has(ie)},Me.set=function(ie,ge){var z=this[U];return We(z),w(z).has(ie)&&w(z).get(ie)===ge||(ze(z),oe(z),z.R.set(ie,!0),z.o.set(ie,ge),z.R.set(ie,!0)),this},Me.delete=function(ie){if(!this.has(ie))return!1;var ge=this[U];return We(ge),ze(ge),oe(ge),ge.t.has(ie)?ge.R.set(ie,!1):ge.R.delete(ie),ge.o.delete(ie),!0},Me.clear=function(){var ie=this[U];We(ie),w(ie).size&&(ze(ie),oe(ie),ie.R=new Map,u(ie.t,function(ge){ie.R.set(ge,!1)}),ie.o.clear())},Me.forEach=function(ie,ge){var z=this;w(this[U]).forEach(function(be,Qe){ie.call(ge,z.get(Qe),Qe,z)})},Me.get=function(ie){var ge=this[U];We(ge);var z=w(ge).get(ie);if(ge.I||!s(z)||z!==ge.t.get(ie))return z;var be=H(ge.A.h,z,ge);return ze(ge),ge.o.set(ie,be),be},Me.keys=function(){return w(this[U]).keys()},Me.values=function(){var ie,ge=this,z=this.keys();return(ie={})[F]=function(){return ge.values()},ie.next=function(){var be=z.next();return be.done?be:{done:!1,value:ge.get(be.value)}},ie},Me.entries=function(){var ie,ge=this,z=this.keys();return(ie={})[F]=function(){return ge.entries()},ie.next=function(){var be=z.next();if(be.done)return be;var Qe=ge.get(be.value);return{done:!1,value:[be.value,Qe]}},ie},Me[F]=function(){return this.entries()},st}(),Ge=function(){function st(ie,ge){return this[U]={i:3,l:ge,A:ge?ge.A:T(),P:!1,I:!1,o:void 0,t:ie,k:this,p:new Map,g:!1,C:!1},this}Fe(st,Set);var Me=st.prototype;return Object.defineProperty(Me,"size",{get:function(){return w(this[U]).size}}),Me.has=function(ie){var ge=this[U];return We(ge),ge.o?!!ge.o.has(ie)||!(!ge.p.has(ie)||!ge.o.has(ge.p.get(ie))):ge.t.has(ie)},Me.add=function(ie){var ge=this[U];return We(ge),this.has(ie)||(qe(ge),oe(ge),ge.o.add(ie)),this},Me.delete=function(ie){if(!this.has(ie))return!1;var ge=this[U];return We(ge),qe(ge),oe(ge),ge.o.delete(ie)||!!ge.p.has(ie)&&ge.o.delete(ge.p.get(ie))},Me.clear=function(){var ie=this[U];We(ie),w(ie).size&&(qe(ie),oe(ie),ie.o.clear())},Me.values=function(){var ie=this[U];return We(ie),qe(ie),ie.o.values()},Me.entries=function(){var ie=this[U];return We(ie),qe(ie),ie.o.entries()},Me.keys=function(){return this.values()},Me[F]=function(){return this.values()},Me.forEach=function(ie,ge){for(var z=this.values(),be=z.next();!be.done;)ie.call(ge,be.value,be.value,this),be=z.next()},st}();P("MapSet",{F:function(st,Me){return new ct(st,Me)},T:function(st,Me){return new Ge(st,Me)}})}function pe(){Te(),ne(),Re()}function ye(Fe){return Fe}function Se(Fe){return Fe}var Ae,Ee,xe=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",nt=typeof Map<"u",Tt=typeof Set<"u",pt=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rt=xe?Symbol.for("immer-nothing"):((Ae={})["immer-nothing"]=!0,Ae),tt=xe?Symbol.for("immer-draftable"):"__$immer_draftable",U=xe?Symbol.for("immer-state"):"__$immer_state",F=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(Fe){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+Fe},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(Fe){return"Cannot apply patch, path doesn't resolve: "+Fe},16:'Sets cannot have "replace" patches.',17:function(Fe){return"Unsupported patch operation: "+Fe},18:function(Fe){return"The plugin for '"+Fe+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+Fe+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(Fe){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+Fe+"'"},22:function(Fe){return"'current' expects a draft, got: "+Fe},23:function(Fe){return"'original' expects a draft, got: "+Fe},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},le=""+Object.prototype.constructor,ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(Fe){return Object.getOwnPropertyNames(Fe).concat(Object.getOwnPropertySymbols(Fe))}:Object.getOwnPropertyNames,Ye=Object.getOwnPropertyDescriptors||function(Fe){var ze={};return ke(Fe).forEach(function(qe){ze[qe]=Object.getOwnPropertyDescriptor(Fe,qe)}),ze},ft={},wt={get:function(Fe,ze){if(ze===U)return Fe;var qe=w(Fe);if(!p(qe,ze))return function(_t,ct,Ge){var st,Me=ce(ct,Ge);return Me?"value"in Me?Me.value:(st=Me.get)===null||st===void 0?void 0:st.call(_t.k):void 0}(Fe,qe,ze);var We=qe[ze];return Fe.I||!s(We)?We:We===ve(Fe.t,ze)?(re(Fe),Fe.o[ze]=H(Fe.A.h,We,Fe)):We},has:function(Fe,ze){return ze in w(Fe)},ownKeys:function(Fe){return Reflect.ownKeys(w(Fe))},set:function(Fe,ze,qe){var We=ce(w(Fe),ze);if(We?.set)return We.set.call(Fe.k,qe),!0;if(!Fe.P){var _t=ve(w(Fe),ze),ct=_t?.[U];if(ct&&ct.t===qe)return Fe.o[ze]=qe,Fe.R[ze]=!1,!0;if(d(qe,_t)&&(qe!==void 0||p(Fe.t,ze)))return!0;re(Fe),oe(Fe)}return Fe.o[ze]===qe&&(qe!==void 0||ze in Fe.o)||Number.isNaN(qe)&&Number.isNaN(Fe.o[ze])||(Fe.o[ze]=qe,Fe.R[ze]=!0),!0},deleteProperty:function(Fe,ze){return ve(Fe.t,ze)!==void 0||ze in Fe.t?(Fe.R[ze]=!1,re(Fe),oe(Fe)):delete Fe.R[ze],Fe.o&&delete Fe.o[ze],!0},getOwnPropertyDescriptor:function(Fe,ze){var qe=w(Fe),We=Reflect.getOwnPropertyDescriptor(qe,ze);return We&&{writable:!0,configurable:Fe.i!==1||ze!=="length",enumerable:We.enumerable,value:qe[ze]}},defineProperty:function(){i(11)},getPrototypeOf:function(Fe){return Object.getPrototypeOf(Fe.t)},setPrototypeOf:function(){i(12)}},Ut={};u(wt,function(Fe,ze){Ut[Fe]=function(){return arguments[0]=arguments[0][0],ze.apply(this,arguments)}}),Ut.deleteProperty=function(Fe,ze){return Ut.set.call(this,Fe,ze,void 0)},Ut.set=function(Fe,ze,qe){return wt.set.call(this,Fe[0],ze,qe,Fe[0])};var Ke=function(){function Fe(qe){var We=this;this.O=pt,this.D=!0,this.produce=function(_t,ct,Ge){if(typeof _t=="function"&&typeof ct!="function"){var st=ct;ct=_t;var Me=We;return function(nn){var bt=this;nn===void 0&&(nn=st);for(var at=arguments.length,$t=Array(at>1?at-1:0),On=1;On<at;On++)$t[On-1]=arguments[On];return Me.produce(nn,function(Ct){var Zt;return(Zt=ct).call.apply(Zt,[bt,Ct].concat($t))})}}var ie;if(typeof ct!="function"&&i(6),Ge!==void 0&&typeof Ge!="function"&&i(7),s(_t)){var ge=_(We),z=H(We,_t,void 0),be=!0;try{ie=ct(z),be=!1}finally{be?j(ge):ae(ge)}return typeof Promise<"u"&&ie instanceof Promise?ie.then(function(nn){return A(ge,Ge),W(nn,ge)},function(nn){throw j(ge),nn}):(A(ge,Ge),W(ie,ge))}if(!_t||typeof _t!="object"){if((ie=ct(_t))===void 0&&(ie=_t),ie===Rt&&(ie=void 0),We.D&&O(ie,!0),Ge){var Qe=[],Bt=[];D("Patches").M(_t,ie,Qe,Bt),Ge(Qe,Bt)}return ie}i(21,_t)},this.produceWithPatches=function(_t,ct){if(typeof _t=="function")return function(ie){for(var ge=arguments.length,z=Array(ge>1?ge-1:0),be=1;be<ge;be++)z[be-1]=arguments[be];return We.produceWithPatches(ie,function(Qe){return _t.apply(void 0,[Qe].concat(z))})};var Ge,st,Me=We.produce(_t,ct,function(ie,ge){Ge=ie,st=ge});return typeof Promise<"u"&&Me instanceof Promise?Me.then(function(ie){return[ie,Ge,st]}):[Me,Ge,st]},typeof qe?.useProxies=="boolean"&&this.setUseProxies(qe.useProxies),typeof qe?.autoFreeze=="boolean"&&this.setAutoFreeze(qe.autoFreeze)}var ze=Fe.prototype;return ze.createDraft=function(qe){s(qe)||i(8),l(qe)&&(qe=V(qe));var We=_(this),_t=H(this,qe,void 0);return _t[U].C=!0,ae(We),_t},ze.finishDraft=function(qe,We){var _t=qe&&qe[U],ct=_t.A;return A(ct,We),W(void 0,ct)},ze.setAutoFreeze=function(qe){this.D=qe},ze.setUseProxies=function(qe){qe&&!pt&&i(20),this.O=qe},ze.applyPatches=function(qe,We){var _t;for(_t=We.length-1;_t>=0;_t--){var ct=We[_t];if(ct.path.length===0&&ct.op==="replace"){qe=ct.value;break}}_t>-1&&(We=We.slice(_t+1));var Ge=D("Patches").$;return l(qe)?Ge(qe,We):this.produce(qe,function(st){return Ge(st,We)})},Fe}(),it=new Ke,At=it.produce,et=it.produceWithPatches.bind(it),ee=it.setAutoFreeze.bind(it),I=it.setUseProxies.bind(it),K=it.applyPatches.bind(it),ue=it.createDraft.bind(it),De=it.finishDraft.bind(it);const He=At},88838:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>F,DB:()=>u});var i=t(48556);const l=i.nice,s=i.parse,m=i.strip,u=i.ansicolor,f=i.black,p=i.bgBlack,v=i.red,h=i.bgRed,d=i.green,b=i.bgGreen,y=i.yellow,w=i.bgYellow,S=i.blue,O=i.bgBlue,R=i.magenta,M=i.bgMagenta,D=i.cyan,P=i.bgCyan,T=i.lightGray,A=i.bgLightGray,j=i.bgDefault,ae=i.darkGray,_=i.bgDarkGray,N=i.lightRed,W=i.bgLightRed,he=i.lightGreen,me=i.bgLightGreen,fe=i.lightYellow,ve=i.bgLightYellow,ce=i.lightBlue,oe=i.bgLightBlue,re=i.lightMagenta,H=i.bgLightMagenta,V=i.lightCyan,Q=i.bgLightCyan,Te=i.white,Re=i.bgWhite,ne=i.bgBrightRed,pe=i.bgBrightGreen,ye=i.bgBrightYellow,Se=i.bgBrightBlue,Ae=i.bgBrightMagenta,Ee=i.bgBrightCyan,xe=i.bright,nt=i.dim,Tt=i.italic,pt=i.underline,Rt=i.inverse,tt=i.names,U=i.rgb,F=i},35392:(J,g,t)=>{"use strict";t.d(g,{Ft:()=>Rt,Uw:()=>ve});function i(tt){return tt&&tt.__esModule&&Object.prototype.hasOwnProperty.call(tt,"default")?tt.default:tt}var l={exports:{}},s=typeof Reflect=="object"?Reflect:null,m=s&&typeof s.apply=="function"?s.apply:function(U,F,Y){return Function.prototype.apply.call(U,F,Y)},u;s&&typeof s.ownKeys=="function"?u=s.ownKeys:Object.getOwnPropertySymbols?u=function(U){return Object.getOwnPropertyNames(U).concat(Object.getOwnPropertySymbols(U))}:u=function(U){return Object.getOwnPropertyNames(U)};function f(tt){console&&console.warn&&console.warn(tt)}var p=Number.isNaN||function(U){return U!==U};function v(){v.init.call(this)}l.exports=v,l.exports.once=T,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var h=10;function d(tt){if(typeof tt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof tt)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(tt){if(typeof tt!="number"||tt<0||p(tt))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+tt+".");h=tt}}),v.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},v.prototype.setMaxListeners=function(U){if(typeof U!="number"||U<0||p(U))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+U+".");return this._maxListeners=U,this};function b(tt){return tt._maxListeners===void 0?v.defaultMaxListeners:tt._maxListeners}v.prototype.getMaxListeners=function(){return b(this)},v.prototype.emit=function(U){for(var F=[],Y=1;Y<arguments.length;Y++)F.push(arguments[Y]);var le=U==="error",ke=this._events;if(ke!==void 0)le=le&&ke.error===void 0;else if(!le)return!1;if(le){var Ye;if(F.length>0&&(Ye=F[0]),Ye instanceof Error)throw Ye;var ft=new Error("Unhandled error."+(Ye?" ("+Ye.message+")":""));throw ft.context=Ye,ft}var wt=ke[U];if(wt===void 0)return!1;if(typeof wt=="function")m(wt,this,F);else for(var Ut=wt.length,Ke=M(wt,Ut),Y=0;Y<Ut;++Y)m(Ke[Y],this,F);return!0};function y(tt,U,F,Y){var le,ke,Ye;if(d(F),ke=tt._events,ke===void 0?(ke=tt._events=Object.create(null),tt._eventsCount=0):(ke.newListener!==void 0&&(tt.emit("newListener",U,F.listener?F.listener:F),ke=tt._events),Ye=ke[U]),Ye===void 0)Ye=ke[U]=F,++tt._eventsCount;else if(typeof Ye=="function"?Ye=ke[U]=Y?[F,Ye]:[Ye,F]:Y?Ye.unshift(F):Ye.push(F),le=b(tt),le>0&&Ye.length>le&&!Ye.warned){Ye.warned=!0;var ft=new Error("Possible EventEmitter memory leak detected. "+Ye.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");ft.name="MaxListenersExceededWarning",ft.emitter=tt,ft.type=U,ft.count=Ye.length,f(ft)}return tt}v.prototype.addListener=function(U,F){return y(this,U,F,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(U,F){return y(this,U,F,!0)};function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(tt,U,F){var Y={fired:!1,wrapFn:void 0,target:tt,type:U,listener:F},le=w.bind(Y);return le.listener=F,Y.wrapFn=le,le}v.prototype.once=function(U,F){return d(F),this.on(U,S(this,U,F)),this},v.prototype.prependOnceListener=function(U,F){return d(F),this.prependListener(U,S(this,U,F)),this},v.prototype.removeListener=function(U,F){var Y,le,ke,Ye,ft;if(d(F),le=this._events,le===void 0)return this;if(Y=le[U],Y===void 0)return this;if(Y===F||Y.listener===F)--this._eventsCount===0?this._events=Object.create(null):(delete le[U],le.removeListener&&this.emit("removeListener",U,Y.listener||F));else if(typeof Y!="function"){for(ke=-1,Ye=Y.length-1;Ye>=0;Ye--)if(Y[Ye]===F||Y[Ye].listener===F){ft=Y[Ye].listener,ke=Ye;break}if(ke<0)return this;ke===0?Y.shift():D(Y,ke),Y.length===1&&(le[U]=Y[0]),le.removeListener!==void 0&&this.emit("removeListener",U,ft||F)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(U){var F,Y,le;if(Y=this._events,Y===void 0)return this;if(Y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Y[U]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Y[U]),this;if(arguments.length===0){var ke=Object.keys(Y),Ye;for(le=0;le<ke.length;++le)Ye=ke[le],Ye!=="removeListener"&&this.removeAllListeners(Ye);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(F=Y[U],typeof F=="function")this.removeListener(U,F);else if(F!==void 0)for(le=F.length-1;le>=0;le--)this.removeListener(U,F[le]);return this};function O(tt,U,F){var Y=tt._events;if(Y===void 0)return[];var le=Y[U];return le===void 0?[]:typeof le=="function"?F?[le.listener||le]:[le]:F?P(le):M(le,le.length)}v.prototype.listeners=function(U){return O(this,U,!0)},v.prototype.rawListeners=function(U){return O(this,U,!1)},v.listenerCount=function(tt,U){return typeof tt.listenerCount=="function"?tt.listenerCount(U):R.call(tt,U)},v.prototype.listenerCount=R;function R(tt){var U=this._events;if(U!==void 0){var F=U[tt];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?u(this._events):[]};function M(tt,U){for(var F=new Array(U),Y=0;Y<U;++Y)F[Y]=tt[Y];return F}function D(tt,U){for(;U+1<tt.length;U++)tt[U]=tt[U+1];tt.pop()}function P(tt){for(var U=new Array(tt.length),F=0;F<U.length;++F)U[F]=tt[F].listener||tt[F];return U}function T(tt,U){return new Promise(function(F,Y){function le(Ye){tt.removeListener(U,ke),Y(Ye)}function ke(){typeof tt.removeListener=="function"&&tt.removeListener("error",le),F([].slice.call(arguments))}j(tt,U,ke,{once:!0}),U!=="error"&&A(tt,le,{once:!0})})}function A(tt,U,F){typeof tt.on=="function"&&j(tt,"error",U,F)}function j(tt,U,F,Y){if(typeof tt.on=="function")Y.once?tt.once(U,F):tt.on(U,F);else if(typeof tt.addEventListener=="function")tt.addEventListener(U,function le(ke){Y.once&&tt.removeEventListener(U,le),F(ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof tt)}var ae=l.exports,_=i(ae),N;(function(tt){tt[tt.timeout=1]="timeout",tt[tt.transportClosed=2]="transportClosed",tt[tt.clientDisconnected=3]="clientDisconnected",tt[tt.clientClosed=4]="clientClosed",tt[tt.clientConnectToken=5]="clientConnectToken",tt[tt.clientRefreshToken=6]="clientRefreshToken",tt[tt.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",tt[tt.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",tt[tt.subscriptionRefreshToken=9]="subscriptionRefreshToken",tt[tt.transportWriteError=10]="transportWriteError",tt[tt.connectionClosed=11]="connectionClosed",tt[tt.badConfiguration=12]="badConfiguration"})(N||(N={}));var W;(function(tt){tt[tt.connectCalled=0]="connectCalled",tt[tt.transportClosed=1]="transportClosed",tt[tt.noPing=2]="noPing",tt[tt.subscribeTimeout=3]="subscribeTimeout",tt[tt.unsubscribeError=4]="unsubscribeError"})(W||(W={}));var he;(function(tt){tt[tt.disconnectCalled=0]="disconnectCalled",tt[tt.unauthorized=1]="unauthorized",tt[tt.badProtocol=2]="badProtocol",tt[tt.messageSizeLimit=3]="messageSizeLimit"})(he||(he={}));var me;(function(tt){tt[tt.subscribeCalled=0]="subscribeCalled",tt[tt.transportClosed=1]="transportClosed"})(me||(me={}));var fe;(function(tt){tt[tt.unsubscribeCalled=0]="unsubscribeCalled",tt[tt.unauthorized=1]="unauthorized",tt[tt.clientClosed=2]="clientClosed"})(fe||(fe={}));var ve;(function(tt){tt.Disconnected="disconnected",tt.Connecting="connecting",tt.Connected="connected"})(ve||(ve={}));var ce;(function(tt){tt.Unsubscribed="unsubscribed",tt.Subscribing="subscribing",tt.Subscribed="subscribed"})(ce||(ce={}));function oe(tt,U){return tt.lastIndexOf(U,0)===0}function re(tt){return tt==null?!1:typeof tt=="function"}function H(tt,U){if(globalThis.console){const F=globalThis.console[tt];re(F)&&F.apply(globalThis.console,U)}}function V(tt,U){return Math.floor(Math.random()*(U-tt+1)+tt)}function Q(tt,U,F){tt>31&&(tt=31);const Y=V(0,Math.min(F,U*Math.pow(2,tt)));return Math.min(F,U+Y)}function Te(tt){return"error"in tt&&tt.error!==null}function Re(tt){return Math.min(tt*1e3,2147483647)}class ne extends _{constructor(U,F,Y){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=F,this.state=ce.Unsubscribed,this._centrifuge=U,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._setOptions(Y),this._centrifuge._debugEnabled?(this.on("state",le=>{this._centrifuge._debug("subscription state",F,le.oldState,"->",le.newState)}),this.on("error",le=>{this._centrifuge._debug("subscription error",F,le)})):this.on("error",function(){Function.prototype()})}ready(U){return this.state===ce.Unsubscribed?Promise.reject({code:N.subscriptionUnsubscribed,message:this.state}):this.state===ce.Subscribed?Promise.resolve():new Promise((F,Y)=>{const le={resolve:F,reject:Y};U&&(le.timeout=setTimeout(function(){Y({code:N.timeout,message:"timeout"})},U)),this._promises[this._nextPromiseId()]=le})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(me.subscribeCalled,"subscribe called"))}unsubscribe(){this._setUnsubscribed(fe.unsubscribeCalled,"unsubscribe called",!0)}publish(U){const F=this;return this._methodCall().then(function(){return F._centrifuge.publish(F.channel,U)})}presence(){const U=this;return this._methodCall().then(function(){return U._centrifuge.presence(U.channel)})}presenceStats(){const U=this;return this._methodCall().then(function(){return U._centrifuge.presenceStats(U.channel)})}history(U){const F=this;return this._methodCall().then(function(){return F._centrifuge.history(F.channel,U)})}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:N.subscriptionUnsubscribed,message:this.state}):new Promise((U,F)=>{const Y=setTimeout(function(){F({code:N.timeout,message:"timeout"})},this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:U,reject:F}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===ce.Unsubscribed}_isSubscribing(){return this.state===ce.Subscribing}_isSubscribed(){return this.state===ce.Subscribed}_setState(U){if(this.state!==U){const F=this.state;return this.state=U,this.emit("state",{newState:U,oldState:F,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(U){if(!this._isSubscribing())return;this._clearSubscribingState(),U.recoverable&&(this._recover=!0,this._offset=U.offset||0,this._epoch=U.epoch||""),this._setState(ce.Subscribed);const F=this._centrifuge._getSubscribeContext(this.channel,U);this.emit("subscribed",F),this._resolvePromises();const Y=U.publications;if(Y&&Y.length>0)for(const le in Y)Y.hasOwnProperty(le)&&this._handlePublication(Y[le]);U.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),Re(U.ttl)))}_setSubscribing(U,F){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(ce.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:U,reason:F}),this._subscribe(!1,!1))}_subscribe(U,F){if(this._centrifuge._debug("subscribing on",this.channel),this._centrifuge.state!==ve.Connected&&!U)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;const Y=this,le={channel:Y.channel};return!this._usesToken()||this._token?Y._getData?(Y._getData(le).then(function(ke){Y._isSubscribing()&&(Y._data=ke,Y._sendSubscribe(Y._token,!1))}),null):Y._sendSubscribe(Y._token,F):(U||this._getSubscriptionToken().then(function(ke){if(Y._isSubscribing()){if(!ke){Y._failUnauthorized();return}Y._token=ke,Y._getData?Y._getData(le).then(function(Ye){Y._isSubscribing()&&(Y._data=Ye,Y._sendSubscribe(ke,!1))}):Y._sendSubscribe(ke,!1)}}).catch(function(ke){if(Y._isSubscribing()){if(ke instanceof pt){Y._failUnauthorized();return}Y.emit("error",{type:"subscribeToken",channel:Y.channel,error:{code:N.subscriptionSubscribeToken,message:ke!==void 0?ke.toString():""}}),Y._scheduleResubscribe()}}),null)}_sendSubscribe(U,F){const le={channel:this.channel};if(U&&(le.token=U),this._data&&(le.data=this._data),this._positioned&&(le.positioned=!0),this._recoverable&&(le.recoverable=!0),this._joinLeave&&(le.join_leave=!0),this._needRecover()){le.recover=!0;const Ye=this._getOffset();Ye&&(le.offset=Ye);const ft=this._getEpoch();ft&&(le.epoch=ft)}const ke={subscribe:le};return this._inflight=!0,this._centrifuge._call(ke,F).then(Ye=>{this._inflight=!1;const ft=Ye.reply.subscribe;this._handleSubscribeResponse(ft),Ye.next&&Ye.next()},Ye=>{this._inflight=!1,this._handleSubscribeError(Ye.error),Ye.next&&Ye.next()}),ke}_handleSubscribeError(U){if(this._isSubscribing()){if(U.code===N.timeout){this._centrifuge._disconnect(W.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(U)}}_handleSubscribeResponse(U){this._isSubscribing()&&this._setSubscribed(U)}_setUnsubscribed(U,F,Y){this._isUnsubscribed()||(this._isSubscribed()&&(Y&&this._centrifuge._unsubscribe(this),this._clearSubscribedState()),this._isSubscribing()&&(this._inflight&&Y&&this._centrifuge._unsubscribe(this),this._clearSubscribingState()),this._setState(ce.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:U,reason:F}),this._rejectPromises({code:N.subscriptionUnsubscribed,message:this.state}))}_handlePublication(U){const F=this._centrifuge._getPublicationContext(this.channel,U);this.emit("publication",F),U.offset&&(this._offset=U.offset)}_handleJoin(U){const F=this._centrifuge._getJoinLeaveContext(U.info);this.emit("join",{channel:this.channel,info:F})}_handleLeave(U){const F=this._centrifuge._getJoinLeaveContext(U.info);this.emit("leave",{channel:this.channel,info:F})}_resolvePromises(){for(const U in this._promises)this._promises.hasOwnProperty(U)&&(this._promises[U].timeout&&clearTimeout(this._promises[U].timeout),this._promises[U].resolve(),delete this._promises[U])}_rejectPromises(U){for(const F in this._promises)this._promises.hasOwnProperty(F)&&(this._promises[F].timeout&&clearTimeout(this._promises[F].timeout),this._promises[F].reject(U),delete this._promises[F])}_scheduleResubscribe(){const U=this,F=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){U._isSubscribing()&&U._subscribe(!1,!1)},F)}_subscribeError(U){if(this._isSubscribing())if(U.code<100||U.code===109||U.temporary===!0){U.code===109&&(this._token="");const F={channel:this.channel,type:"subscribe",error:U};this._centrifuge.state===ve.Connected&&this.emit("error",F),this._scheduleResubscribe()}else this._setUnsubscribed(U.code,U.message,!1)}_getResubscribeDelay(){const U=Q(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,U}_setOptions(U){U&&(U.since&&(this._offset=U.since.offset,this._epoch=U.since.epoch,this._recover=!0),U.data&&(this._data=U.data),U.getData&&(this._getData=U.getData),U.minResubscribeDelay!==void 0&&(this._minResubscribeDelay=U.minResubscribeDelay),U.maxResubscribeDelay!==void 0&&(this._maxResubscribeDelay=U.maxResubscribeDelay),U.token&&(this._token=U.token),U.getToken&&(this._getToken=U.getToken),U.positioned===!0&&(this._positioned=!0),U.recoverable===!0&&(this._recoverable=!0),U.joinLeave===!0&&(this._joinLeave=!0))}_getOffset(){const U=this._offset;return U!==null?U:0}_getEpoch(){const U=this._epoch;return U!==null?U:""}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){this._resubscribeTimeout!==null&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const U={channel:this.channel},F=this._getToken;if(F===null)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:N.badConfiguration,message:"provide a function to get channel subscription token"}}),new pt("");return F(U)}_refresh(){this._clearRefreshTimeout();const U=this;this._getSubscriptionToken().then(function(F){if(!U._isSubscribed())return;if(!F){U._failUnauthorized();return}U._token=F;const le={sub_refresh:{channel:U.channel,token:F}};U._centrifuge._call(le).then(ke=>{const Ye=ke.reply.sub_refresh;U._refreshResponse(Ye),ke.next&&ke.next()},ke=>{U._refreshError(ke.error),ke.next&&ke.next()})}).catch(function(F){if(F instanceof pt){U._failUnauthorized();return}U.emit("error",{type:"refreshToken",channel:U.channel,error:{code:N.subscriptionRefreshToken,message:F!==void 0?F.toString():""}}),U._refreshTimeout=setTimeout(()=>U._refresh(),U._getRefreshRetryDelay())})}_refreshResponse(U){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),U.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),Re(U.ttl))))}_refreshError(U){this._isSubscribed()&&(U.code<100||U.temporary===!0?(this.emit("error",{type:"refresh",channel:this.channel,error:U}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(U.code,U.message,!0))}_getRefreshRetryDelay(){return Q(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(fe.unauthorized,"unauthorized",!0)}}class pe{constructor(U,F){this.endpoint=U,this.options=F,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(U,F){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{F.onOpen()},this._transport.onerror=Y=>{F.onError(Y)},this._transport.onclose=Y=>{F.onClose(Y)},this._transport.onmessage=Y=>{F.onMessage(Y.data)}}close(){this._transport.close()}send(U){this._transport.send(U)}}class ye{constructor(U,F){this.endpoint=U,this.options=F,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(U,F){let Y="";U==="protobuf"&&(Y="centrifuge-protobuf"),Y!==""?this._transport=new this.options.websocket(this.endpoint,Y):this._transport=new this.options.websocket(this.endpoint),U==="protobuf"&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{F.onOpen()},this._transport.onerror=le=>{F.onError(le)},this._transport.onclose=le=>{F.onClose(le)},this._transport.onmessage=le=>{F.onMessage(le.data)}}close(){this._transport.close()}send(U){this._transport.send(U)}}class Se{constructor(U,F){this.endpoint=U,this.options=F,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(U){if(!U.ok)throw new Error(U.status);return U}_fetchEventTarget(U,F,Y){const le=new EventTarget,ke=U.options.fetch;return ke(F,Y).then(U._handleErrors).then(Ye=>{le.dispatchEvent(new Event("open"));let ft="",wt=0,Ut=new Uint8Array;const Ke=Ye.body.getReader();return new U.options.readableStream({start(it){function At(){return Ke.read().then(({done:et,value:ee})=>{if(et){le.dispatchEvent(new Event("close")),it.close();return}try{if(U._protocol==="json")for(ft+=U._utf8decoder.decode(ee);wt<ft.length;)if(ft[wt]===` `){const I=ft.substring(0,wt);le.dispatchEvent(new MessageEvent("message",{data:I})),ft=ft.substring(wt+1),wt=0}else++wt;else{const I=new Uint8Array(Ut.length+ee.length);for(I.set(Ut),I.set(ee,Ut.length),Ut=I;;){const K=U.options.decoder.decodeReply(Ut);if(K.ok){const ue=Ut.slice(0,K.pos);le.dispatchEvent(new MessageEvent("message",{data:ue})),Ut=Ut.slice(K.pos);continue}break}}}catch(I){le.dispatchEvent(new Event("error",{detail:I})),le.dispatchEvent(new Event("close")),it.close();return}At()}).catch(function(et){le.dispatchEvent(new Event("error",{detail:et})),le.dispatchEvent(new Event("close")),it.close()})}return At()}})}).catch(Ye=>{le.dispatchEvent(new Event("error",{detail:Ye})),le.dispatchEvent(new Event("close"))}),le}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(U,F,Y){this._protocol=U,this._abortController=new AbortController;let le,ke;U==="json"?(le={Accept:"application/json","Content-Type":"application/json"},ke=Y):(le={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},ke=Y);const Ye={method:"POST",headers:le,body:ke,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},ft=this._fetchEventTarget(this,this.endpoint,Ye);ft.addEventListener("open",()=>{F.onOpen()}),ft.addEventListener("error",wt=>{this._abortController.abort(),F.onError(wt)}),ft.addEventListener("close",()=>{this._abortController.abort(),F.onClose({code:4,reason:"connection closed"})}),ft.addEventListener("message",wt=>{F.onMessage(wt.data)})}close(){this._abortController.abort()}send(U,F,Y){let le,ke;const Ye={session:F,node:Y,data:U};this._protocol==="json"?(le={"Content-Type":"application/json"},ke=JSON.stringify(Ye)):(le={"Content-Type":"application/octet-stream"},ke=this.options.encoder.encodeEmulationRequest(Ye));const ft=this.options.fetch,wt={method:"POST",headers:le,body:ke,mode:"cors",credentials:"same-origin",cache:"no-cache"};ft(this.options.emulationEndpoint,wt)}}class Ae{constructor(U,F){this.endpoint=U,this.options=F,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(U,F,Y){let le;globalThis&&globalThis.document&&globalThis.document.baseURI?le=new URL(this.endpoint,globalThis.document.baseURI):le=new URL(this.endpoint),le.searchParams.append("cf_connect",Y);const ke={},Ye=new this.options.eventsource(le.toString(),ke);this._transport=Ye;const ft=this;Ye.onopen=function(){F.onOpen()},Ye.onerror=function(wt){Ye.close(),F.onError(wt),F.onClose({code:4,reason:"connection closed"})},Ye.onmessage=function(wt){F.onMessage(wt.data)},ft._onClose=function(){F.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),this._onClose!==null&&this._onClose()}send(U,F,Y){const le={session:F,node:Y,data:U},ke={"Content-Type":"application/json"},Ye=JSON.stringify(le),ft=this.options.fetch,wt={method:"POST",headers:ke,body:Ye,mode:"cors",credentials:"same-origin",cache:"no-cache"};ft(this.options.emulationEndpoint,wt)}}function Ee(tt,U,F,Y){function le(ke){return ke instanceof F?ke:new F(function(Ye){Ye(ke)})}return new(F||(F=Promise))(function(ke,Ye){function ft(Ke){try{Ut(Y.next(Ke))}catch(it){Ye(it)}}function wt(Ke){try{Ut(Y.throw(Ke))}catch(it){Ye(it)}}function Ut(Ke){Ke.done?ke(Ke.value):le(Ke.value).then(ft,wt)}Ut((Y=Y.apply(tt,U||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class xe{constructor(U,F){this.endpoint=U,this.options=F,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(U,F){return Ee(this,void 0,void 0,function*(){let Y;globalThis&&globalThis.document&&globalThis.document.baseURI?Y=new URL(this.endpoint,globalThis.document.baseURI):Y=new URL(this.endpoint),U==="protobuf"&&Y.searchParams.append("cf_protocol","protobuf"),this._protocol=U;const le=new EventTarget;this._transport=new this.options.webtransport(Y.toString()),this._transport.closed.then(()=>{F.onClose({code:4,reason:"connection closed"})}).catch(()=>{F.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch{this.close();return}let ke;try{ke=yield this._transport.createBidirectionalStream()}catch{this.close();return}this._stream=ke,this._writer=this._stream.writable.getWriter(),le.addEventListener("close",()=>{F.onClose({code:4,reason:"connection closed"})}),le.addEventListener("message",Ye=>{F.onMessage(Ye.data)}),this._startReading(le),F.onOpen()})}_startReading(U){return Ee(this,void 0,void 0,function*(){const F=this._stream.readable.getReader();let Y="",le=0,ke=new Uint8Array;try{for(;;){const{done:Ye,value:ft}=yield F.read();if(ft.length>0)if(this._protocol==="json")for(Y+=this._utf8decoder.decode(ft);le<Y.length;)if(Y[le]===` `){const wt=Y.substring(0,le);U.dispatchEvent(new MessageEvent("message",{data:wt})),Y=Y.substring(le+1),le=0}else++le;else{const wt=new Uint8Array(ke.length+ft.length);for(wt.set(ke),wt.set(ft,ke.length),ke=wt;;){const Ut=this.options.decoder.decodeReply(ke);if(Ut.ok){const Ke=ke.slice(0,Ut.pos);U.dispatchEvent(new MessageEvent("message",{data:Ke})),ke=ke.slice(Ut.pos);continue}break}}if(Ye)break}}catch{U.dispatchEvent(new Event("close"))}})}close(){return Ee(this,void 0,void 0,function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch{}})}send(U){return Ee(this,void 0,void 0,function*(){let F;this._protocol==="json"?F=new TextEncoder().encode(U+` `):F=U;try{yield this._writer.write(F)}catch{this.close()}})}}class nt{name(){return"json"}encodeCommands(U){return U.map(F=>JSON.stringify(F)).join(` `)}decodeReplies(U){return U.trim().split(` `).map(F=>JSON.parse(F))}}const Tt={token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class pt extends Error{constructor(U){super(U),this.name=this.constructor.name}}class Rt extends _{constructor(U,F){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=ve.Disconnected,this._endpoint=U,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new nt,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},Tt),F),this._configure(),this._debugEnabled?(this.on("state",Y=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",Y=>{this._debug("client error",Y)})):this.on("error",function(){Function.prototype()})}newSubscription(U,F){if(this.getSubscription(U)!==null)throw new Error("Subscription to the channel "+U+" already exists");const Y=new ne(this,U,F);return this._subs[U]=Y,Y}getSubscription(U){return this._getSub(U)}removeSubscription(U){U&&(U.state!==ce.Unsubscribed&&U.unsubscribe(),this._removeSubscription(U))}subscriptions(){return this._subs}ready(U){return this.state===ve.Disconnected?Promise.reject({code:N.clientDisconnected,message:"client disconnected"}):this.state===ve.Connected?Promise.resolve():new Promise((F,Y)=>{const le={resolve:F,reject:Y};U&&(le.timeout=setTimeout(function(){Y({code:N.timeout,message:"timeout"})},U)),this._promises[this._nextPromiseId()]=le})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(he.disconnectCalled,"disconnect called",!1)}setToken(U){this._token=U}send(U){const F={send:{data:U}},Y=this;return this._methodCall().then(function(){return Y._transportSendCommands([F])?Promise.resolve():Promise.reject(Y._createErrorObject(N.transportWriteError,"transport write error"))})}rpc(U,F){const Y={rpc:{method:U,data:F}},le=this;return this._methodCall().then(function(){return le._callPromise(Y,function(ke){return{data:ke.rpc.data}})})}publish(U,F){const Y={publish:{channel:U,data:F}},le=this;return this._methodCall().then(function(){return le._callPromise(Y,function(){return{}})})}history(U,F){const Y={history:this._getHistoryRequest(U,F)},le=this;return this._methodCall().then(function(){return le._callPromise(Y,function(ke){const Ye=ke.history,ft=[];if(Ye.publications)for(let wt=0;wt<Ye.publications.length;wt++)ft.push(le._getPublicationContext(U,Ye.publications[wt]));return{publications:ft,epoch:Ye.epoch||"",offset:Ye.offset||0}})})}presence(U){const F={presence:{channel:U}},Y=this;return this._methodCall().then(function(){return Y._callPromise(F,function(le){const ke=le.presence.presence;for(const Ye in ke)if(ke.hasOwnProperty(Ye)){const ft=ke[Ye].conn_info,wt=ke[Ye].chan_info;ft&&(ke[Ye].connInfo=ft),wt&&(ke[Ye].chanInfo=wt)}return{clients:ke}})})}presenceStats(U){const F={presence_stats:{channel:U}},Y=this;return this._methodCall().then(function(){return Y._callPromise(F,function(le){const ke=le.presence_stats;return{numUsers:ke.num_users,numClients:ke.num_clients}})})}startBatching(){this._batching=!0}stopBatching(){const U=this;Promise.resolve().then(function(){Promise.resolve().then(function(){U._batching=!1,U._flush()})})}_debug(...U){this._debugEnabled&&H("debug",U)}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._codec=new nt,this._formatOverride(),(this._config.debug===!0||typeof localStorage<"u"&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),typeof this._endpoint!="string")if(typeof this._endpoint=="object"&&this._endpoint instanceof Array){this._transports=this._endpoint,this._emulation=!0;for(const U in this._transports)if(this._transports.hasOwnProperty(U)){const F=this._transports[U];if(!F.endpoint||!F.transport)throw new Error("malformed transport configuration");const Y=F.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw new Error("unsupported transport name: "+Y)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(U){if(this.state!==U){this._reconnecting=!1;const F=this.state;return this.state=U,this.emit("state",{newState:U,oldState:F}),!0}return!1}_isDisconnected(){return this.state===ve.Disconnected}_isConnecting(){return this.state===ve.Connecting}_isConnected(){return this.state===ve.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let U=null;this._config.networkEventTarget!==null?U=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(U=globalThis),U&&(U.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===ve.Connected||this.state===ve.Connecting)&&(this._disconnect(W.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),U.addEventListener("online",()=>{this._debug("online event triggered"),this.state===ve.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const U=Q(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,U}_clearOutgoingRequests(){for(const U in this._callbacks)if(this._callbacks.hasOwnProperty(U)){const F=this._callbacks[U];clearTimeout(F.timeout);const Y=F.errback;if(!Y)continue;Y({error:this._createErrorObject(N.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const U in this._subs){if(!this._subs.hasOwnProperty(U))continue;const F=this._subs[U];F.state===ce.Subscribed&&F._setSubscribing(me.transportClosed,"transport closed")}for(const U in this._serverSubs)this._serverSubs.hasOwnProperty(U)&&this.emit("subscribing",{channel:U})}_handleWriteError(U){for(const F of U){const Y=F.id;if(!(Y in this._callbacks))continue;const le=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];const ke=le.errback;ke({error:this._createErrorObject(N.transportWriteError,"transport write error")})}}_transportSendCommands(U){if(!U.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(U),this._session,this._node)}catch(F){return this._debug("error writing commands",F),this._handleWriteError(U),!1}return!0}_initializeTransport(){let U;this._config.websocket!==null?U=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(U=globalThis.WebSocket);let F=null;this._config.sockjs!==null?F=this._config.sockjs:typeof globalThis.SockJS<"u"&&(F=globalThis.SockJS);let Y=null;this._config.eventsource!==null?Y=this._config.eventsource:typeof globalThis.EventSource<"u"&&(Y=globalThis.EventSource);let le=null;this._config.fetch!==null?le=this._config.fetch:typeof globalThis.fetch<"u"&&(le=globalThis.fetch);let ke=null;if(this._config.readableStream!==null?ke=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(ke=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let ee=0;for(;;){if(ee>=this._transports.length)throw new Error("no supported transport found");const I=this._transports[this._currentTransportIndex],K=I.transport,ue=I.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new ye(ue,{websocket:U}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,ee++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new xe(ue,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,ee++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new Se(ue,{fetch:le,readableStream:ke,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,ee++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new Ae(ue,{eventsource:Y,fetch:le,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,ee++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new pe(ue,{sockjs:F,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,ee++;continue}}else throw new Error("unknown transport "+K);break}}else{if(oe(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new ye(this._endpoint,{websocket:U}),!this._transport.supported())throw new Error("WebSocket not available")}const Ye=this,ft=this._transport,wt=this._nextTransportId();Ye._debug("id of transport",wt);let Ut=!1,Ke=!0;this._transport.name()==="sse"&&(Ke=!1);const it=[];if(this._transport.emulation()){const ee=Ye._sendConnect(!0);if(it.push(ee),Ke){const I=Ye._sendSubscribeCommands(!0,!0);for(const K in I)I.hasOwnProperty(K)&&it.push(I[K])}}this._setNetworkEvents();const At=this._codec.encodeCommands(it);this._transportClosed=!1;let et;et=setTimeout(function(){ft.close()},this._config.timeout),this._transport.initialize(this._codec.name(),{onOpen:function(){if(et&&(clearTimeout(et),et=null),Ye._transportId!=wt){Ye._debug("open callback from non-actual transport"),ft.close();return}Ut=!0,Ye._debug(ft.subName(),"transport open"),Ye._transportWasOpen=!0,!ft.emulation()&&(Ye.startBatching(),Ye._sendConnect(!1),Ke&&Ye._sendSubscribeCommands(!0,!1),Ye.stopBatching())},onError:function(ee){if(Ye._transportId!=wt){Ye._debug("error callback from non-actual transport");return}Ye._debug("transport level error",ee)},onClose:function(ee){if(et&&(clearTimeout(et),et=null),Ye._transportId!=wt){Ye._debug("close callback from non-actual transport");return}Ye._debug(ft.subName(),"transport closed"),Ye._transportClosed=!0;let I="connection closed",K=!0,ue=0;if(ee&&"code"in ee&&ee.code&&(ue=ee.code),ee&&ee.reason)try{const De=JSON.parse(ee.reason);I=De.reason,K=De.reconnect}catch{I=ee.reason,(ue>=3500&&ue<4e3||ue>=4500&&ue<5e3)&&(K=!1)}ue<3e3?(ue===1009?(ue=he.messageSizeLimit,I="message size limit exceeded",K=!1):(ue=W.transportClosed,I="transport closed"),Ye._emulation&&!Ye._transportWasOpen&&(Ye._currentTransportIndex++,Ye._currentTransportIndex>=Ye._transports.length&&(Ye._triedAllTransports=!0,Ye._currentTransportIndex=0))):Ye._transportWasOpen=!0,Ye._isConnecting()&&!Ut&&Ye.emit("error",{type:"transport",error:{code:N.transportClosed,message:"transport closed"},transport:ft.name()}),Ye._reconnecting=!1,Ye._disconnect(ue,I,K)},onMessage:function(ee){Ye._dataReceived(ee)}},At)}_sendConnect(U){const F=this._constructConnectCommand(),Y=this;return this._call(F,U).then(le=>{const ke=le.reply.connect;Y._connectResponse(ke),le.next&&le.next()},le=>{Y._connectError(le.error),le.next&&le.next()}),F}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;const U=this,F=this._token==="";if(!(this._refreshRequired||F&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(function(le){U._isConnecting()&&(U._data=le,U._initializeTransport())}):this._initializeTransport();return}this._getToken().then(function(le){if(U._isConnecting()){if(le==null||le==null){U._failUnauthorized();return}U._token=le,U._debug("connection token refreshed"),U._config.getData?U._config.getData().then(function(ke){U._isConnecting()&&(U._data=ke,U._initializeTransport())}):U._initializeTransport()}}).catch(function(le){if(!U._isConnecting())return;if(le instanceof pt){U._failUnauthorized();return}U.emit("error",{type:"connectToken",error:{code:N.clientConnectToken,message:le!==void 0?le.toString():""}});const ke=U._getReconnectDelay();U._debug("error on connection token refresh, reconnect after "+ke+" milliseconds",le),U._reconnecting=!1,U._reconnectTimeout=setTimeout(()=>{U._startReconnecting()},ke)})}_connectError(U){this.state===ve.Connecting&&(U.code===109&&(this._refreshRequired=!0),U.code<100||U.temporary===!0||U.code===109?(this.emit("error",{type:"connect",error:U}),this._debug("closing transport due to connect error"),this._reconnecting=!1,this._disconnect(U.code,U.message,!0)):this._disconnect(U.code,U.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let U=!1;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(U=!0);let F=this._getReconnectDelay();U&&(F=0),this._debug("reconnect after "+F+" milliseconds"),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},F)}_constructConnectCommand(){const U={};this._token&&(U.token=this._token),this._data&&(U.data=this._data),this._config.name&&(U.name=this._config.name),this._config.version&&(U.version=this._config.version);const F={};let Y=!1;for(const le in this._serverSubs)if(this._serverSubs.hasOwnProperty(le)&&this._serverSubs[le].recoverable){Y=!0;const ke={recover:!0};this._serverSubs[le].offset&&(ke.offset=this._serverSubs[le].offset),this._serverSubs[le].epoch&&(ke.epoch=this._serverSubs[le].epoch),F[le]=ke}return Y&&(U.subs=F),{connect:U}}_getHistoryRequest(U,F){const Y={channel:U};return F!==void 0&&(F.since&&(Y.since={offset:F.since.offset},F.since.epoch&&(Y.since.epoch=F.since.epoch)),F.limit!==void 0&&(Y.limit=F.limit),F.reverse===!0&&(Y.reverse=!0)),Y}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((U,F)=>{const Y=setTimeout(function(){F({code:N.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:U,reject:F}})}_callPromise(U,F){return new Promise((Y,le)=>{this._call(U,!1).then(ke=>{Y(F(ke.reply)),ke.next&&ke.next()},ke=>{le(ke.error),ke.next&&ke.next()})})}_dataReceived(U){this._serverPing>0&&this._waitServerPing();const F=this._codec.decodeReplies(U);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise(le=>{Y=le}),this._dispatchSynchronized(F,Y)})}_dispatchSynchronized(U,F){let Y=Promise.resolve();for(const le in U)U.hasOwnProperty(le)&&(Y=Y.then(()=>this._dispatchReply(U[le])));Y=Y.then(()=>{F()})}_dispatchReply(U){let F;const Y=new Promise(ke=>{F=ke});if(U==null)return this._debug("dispatch: got undefined or null reply"),F(),Y;const le=U.id;return le&&le>0?this._handleReply(U,F):U.push?this._handlePush(U.push,F):this._handleServerPing(F),Y}_call(U,F){return new Promise((Y,le)=>{U.id=this._nextCommandId(),this._registerCall(U.id,Y,le),F||this._addCommand(U)})}_startConnecting(){this._debug("start connecting"),this._setState(ve.Connecting)&&this.emit("connecting",{code:W.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(U,F,Y){if(this._isDisconnected())return;const le=this.state,ke={code:U,reason:F};let Ye=!1;if(Y?Ye=this._setState(ve.Connecting):(Ye=this._setState(ve.Disconnected),this._rejectPromises({code:N.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),le===ve.Connecting&&this._clearReconnectTimeout(),le===ve.Connected&&this._clearConnectedState(),Ye&&(this._isConnecting()?this.emit("connecting",ke):this.emit("disconnected",ke)),this._transport){this._debug("closing existing transport");const ft=this._transport;this._transport=null,ft.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(he.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:N.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new pt("");return this._config.getToken({})}_refresh(){const U=this._client,F=this;this._getToken().then(function(Y){if(U!==F._client)return;if(!Y){F._failUnauthorized();return}if(F._token=Y,F._debug("connection token refreshed"),!F._isConnected())return;const le={refresh:{token:F._token}};F._call(le,!1).then(ke=>{const Ye=ke.reply.refresh;F._refreshResponse(Ye),ke.next&&ke.next()},ke=>{F._refreshError(ke.error),ke.next&&ke.next()})}).catch(function(Y){if(F._isConnected()){if(Y instanceof pt){F._failUnauthorized();return}F.emit("error",{type:"refreshToken",error:{code:N.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),F._refreshTimeout=setTimeout(()=>F._refresh(),F._getRefreshRetryDelay())}})}_refreshError(U){U.code<100||U.temporary===!0?(this.emit("error",{type:"refresh",error:U}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(U.code,U.message,!1)}_getRefreshRetryDelay(){return Q(0,5e3,1e4)}_refreshResponse(U){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),U.expires&&(this._client=U.client,this._refreshTimeout=setTimeout(()=>this._refresh(),Re(U.ttl)))}_removeSubscription(U){U!==null&&delete this._subs[U.channel]}_unsubscribe(U){if(!this._isConnected())return;const Y={unsubscribe:{channel:U.channel}},le=this;this._call(Y,!1).then(ke=>{ke.next&&ke.next()},ke=>{ke.next&&ke.next(),le._disconnect(W.unsubscribeError,"unsubscribe error",!0)})}_getSub(U){const F=this._subs[U];return F||null}_isServerSub(U){return this._serverSubs[U]!==void 0}_sendSubscribeCommands(U,F){const Y=[];for(const le in this._subs){if(!this._subs.hasOwnProperty(le))continue;const ke=this._subs[le];if(ke._inflight!==!0&&ke.state===ce.Subscribing){const Ye=ke._subscribe(U,F);Ye&&Y.push(Ye)}}return Y}_connectResponse(U){if(this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=U.client,this._setState(ve.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),U.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),Re(U.ttl))),this._session=U.session,this._node=U.node,this.startBatching(),this._sendSubscribeCommands(!1,!1),this.stopBatching();const F={client:U.client,transport:this._transport.subName()};U.data&&(F.data=U.data),this.emit("connected",F),this._resolvePromises(),this._processServerSubs(U.subs||{}),U.ping&&U.ping>0?(this._serverPing=U.ping*1e3,this._sendPong=U.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(U){for(const F in U){if(!U.hasOwnProperty(F))continue;const Y=U[F];this._serverSubs[F]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};const le=this._getSubscribeContext(F,Y);this.emit("subscribed",le)}for(const F in U){if(!U.hasOwnProperty(F))continue;const Y=U[F];if(Y.recovered){const le=Y.publications;if(le&&le.length>0)for(const ke in le)le.hasOwnProperty(ke)&&this._handlePublication(F,le[ke])}}for(const F in this._serverSubs)this._serverSubs.hasOwnProperty(F)&&(U[F]||(this.emit("unsubscribed",{channel:F}),delete this._serverSubs[F]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(W.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(U,F){const Y={channel:U,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};F.recovered&&(Y.recovered=!0),F.positioned&&(Y.positioned=!0),F.recoverable&&(Y.recoverable=!0),F.was_recovering&&(Y.wasRecovering=!0);let le="";"epoch"in F&&(le=F.epoch);let ke=0;return"offset"in F&&(ke=F.offset),(Y.positioned||Y.recoverable)&&(Y.streamPosition={offset:ke,epoch:le}),F.data&&(Y.data=F.data),Y}_handleReply(U,F){const Y=U.id;if(!(Y in this._callbacks)){F();return}const le=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],Te(U)){const ke=le.errback;if(!ke){F();return}const Ye=U.error;ke({error:Ye,next:F})}else{const ke=le.callback;if(!ke)return;ke({reply:U,next:F})}}_handleJoin(U,F){const Y=this._getSub(U);if(!Y){if(this._isServerSub(U)){const le={channel:U,info:this._getJoinLeaveContext(F.info)};this.emit("join",le)}return}Y._handleJoin(F)}_handleLeave(U,F){const Y=this._getSub(U);if(!Y){if(this._isServerSub(U)){const le={channel:U,info:this._getJoinLeaveContext(F.info)};this.emit("leave",le)}return}Y._handleLeave(F)}_handleUnsubscribe(U,F){const Y=this._getSub(U);if(!Y){this._isServerSub(U)&&(delete this._serverSubs[U],this.emit("unsubscribed",{channel:U}));return}F.code<2500?Y._setUnsubscribed(F.code,F.reason,!1):Y._setSubscribing(F.code,F.reason)}_handleSubscribe(U,F){this._serverSubs[U]={offset:F.offset,epoch:F.epoch,recoverable:F.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(U,F))}_handleDisconnect(U){const F=U.code;let Y=!0;(F>=3500&&F<4e3||F>=4500&&F<5e3)&&(Y=!1),this._disconnect(F,U.reason,Y)}_getPublicationContext(U,F){const Y={channel:U,data:F.data};return F.offset&&(Y.offset=F.offset),F.info&&(Y.info=this._getJoinLeaveContext(F.info)),F.tags&&(Y.tags=F.tags),Y}_getJoinLeaveContext(U){const F={client:U.client,user:U.user};return U.conn_info&&(F.connInfo=U.conn_info),U.chan_info&&(F.chanInfo=U.chan_info),F}_handlePublication(U,F){const Y=this._getSub(U);if(!Y){if(this._isServerSub(U)){const le=this._getPublicationContext(U,F);this.emit("publication",le),F.offset!==void 0&&(this._serverSubs[U].offset=F.offset)}return}Y._handlePublication(F)}_handleMessage(U){this.emit("message",{data:U.data})}_handleServerPing(U){if(this._sendPong){const F={};this._transportSendCommands([F])}U()}_handlePush(U,F){const Y=U.channel;U.pub?this._handlePublication(Y,U.pub):U.message?this._handleMessage(U.message):U.join?this._handleJoin(Y,U.join):U.leave?this._handleLeave(Y,U.leave):U.unsubscribe?this._handleUnsubscribe(Y,U.unsubscribe):U.subscribe?this._handleSubscribe(Y,U.subscribe):U.disconnect&&this._handleDisconnect(U.disconnect),F()}_flush(){const U=this._commands.slice(0);this._commands=[],this._transportSendCommands(U)}_createErrorObject(U,F,Y){const le={code:U,message:F};return Y&&(le.temporary=!0),le}_registerCall(U,F,Y){this._callbacks[U]={callback:F,errback:Y,timeout:null},this._callbacks[U].timeout=setTimeout(()=>{delete this._callbacks[U],re(Y)&&Y({error:this._createErrorObject(N.timeout,"timeout")})},this._config.timeout)}_addCommand(U){this._batching?this._commands.push(U):this._transportSendCommands([U])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const U in this._promises)this._promises.hasOwnProperty(U)&&(this._promises[U].timeout&&clearTimeout(this._promises[U].timeout),this._promises[U].resolve(),delete this._promises[U])}_rejectPromises(U){for(const F in this._promises)this._promises.hasOwnProperty(F)&&(this._promises[F].timeout&&clearTimeout(this._promises[F].timeout),this._promises[F].reject(U),delete this._promises[F])}}Rt.SubscriptionState=ce,Rt.State=ve,Rt.UnauthorizedError=pt},14590:(J,g,t)=>{"use strict";t.d(g,{A2:()=>s,BX:()=>W,J3:()=>h,LV:()=>S,p:()=>b});/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 */const i=Symbol("Comlink.proxy"),l=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),m=Symbol("Comlink.finalizer"),u=Symbol("Comlink.thrown"),f=oe=>typeof oe=="object"&&oe!==null||typeof oe=="function",p={canHandle:oe=>f(oe)&&oe[i],serialize(oe){const{port1:re,port2:H}=new MessageChannel;return b(oe,re),[H,[H]]},deserialize(oe){return oe.start(),S(oe)}},v={canHandle:oe=>f(oe)&&u in oe,serialize({value:oe}){let re;return oe instanceof Error?re={isError:!0,value:{message:oe.message,name:oe.name,stack:oe.stack}}:re={isError:!1,value:oe},[re,[]]},deserialize(oe){throw oe.isError?Object.assign(new Error(oe.value.message),oe.value):oe.value}},h=new Map([["proxy",p],["throw",v]]);function d(oe,re){for(const H of oe)if(re===H||H==="*"||H instanceof RegExp&&H.test(re))return!0;return!1}function b(oe,re=globalThis,H=["*"]){re.addEventListener("message",function V(Q){if(!Q||!Q.data)return;if(!d(H,Q.origin)){console.warn(`Invalid origin '${Q.origin}' for comlink proxy`);return}const{id:Te,type:Re,path:ne}=Object.assign({path:[]},Q.data),pe=(Q.data.argumentList||[]).map(fe);let ye;try{const Se=ne.slice(0,-1).reduce((Ee,xe)=>Ee[xe],oe),Ae=ne.reduce((Ee,xe)=>Ee[xe],oe);switch(Re){case"GET":ye=Ae;break;case"SET":Se[ne.slice(-1)[0]]=fe(Q.data.value),ye=!0;break;case"APPLY":ye=Ae.apply(Se,pe);break;case"CONSTRUCT":{const Ee=new Ae(...pe);ye=W(Ee)}break;case"ENDPOINT":{const{port1:Ee,port2:xe}=new MessageChannel;b(oe,xe),ye=N(Ee,[Ee])}break;case"RELEASE":ye=void 0;break;default:return}}catch(Se){ye={value:Se,[u]:0}}Promise.resolve(ye).catch(Se=>({value:Se,[u]:0})).then(Se=>{const[Ae,Ee]=me(Se);re.postMessage(Object.assign(Object.assign({},Ae),{id:Te}),Ee),Re==="RELEASE"&&(re.removeEventListener("message",V),w(re),m in oe&&typeof oe[m]=="function"&&oe[m]())}).catch(Se=>{const[Ae,Ee]=me({value:new TypeError("Unserializable return value"),[u]:0});re.postMessage(Object.assign(Object.assign({},Ae),{id:Te}),Ee)})}),re.start&&re.start()}function y(oe){return oe.constructor.name==="MessagePort"}function w(oe){y(oe)&&oe.close()}function S(oe,re){return A(oe,[],re)}function O(oe){if(oe)throw new Error("Proxy has been released and is not useable")}function R(oe){return ve(oe,{type:"RELEASE"}).then(()=>{w(oe)})}const M=new WeakMap,D="FinalizationRegistry"in globalThis&&new FinalizationRegistry(oe=>{const re=(M.get(oe)||0)-1;M.set(oe,re),re===0&&R(oe)});function P(oe,re){const H=(M.get(re)||0)+1;M.set(re,H),D&&D.register(oe,re,oe)}function T(oe){D&&D.unregister(oe)}function A(oe,re=[],H=function(){}){let V=!1;const Q=new Proxy(H,{get(Te,Re){if(O(V),Re===s)return()=>{T(Q),R(oe),V=!0};if(Re==="then"){if(re.length===0)return{then:()=>Q};const ne=ve(oe,{type:"GET",path:re.map(pe=>pe.toString())}).then(fe);return ne.then.bind(ne)}return A(oe,[...re,Re])},set(Te,Re,ne){O(V);const[pe,ye]=me(ne);return ve(oe,{type:"SET",path:[...re,Re].map(Se=>Se.toString()),value:pe},ye).then(fe)},apply(Te,Re,ne){O(V);const pe=re[re.length-1];if(pe===l)return ve(oe,{type:"ENDPOINT"}).then(fe);if(pe==="bind")return A(oe,re.slice(0,-1));const[ye,Se]=ae(ne);return ve(oe,{type:"APPLY",path:re.map(Ae=>Ae.toString()),argumentList:ye},Se).then(fe)},construct(Te,Re){O(V);const[ne,pe]=ae(Re);return ve(oe,{type:"CONSTRUCT",path:re.map(ye=>ye.toString()),argumentList:ne},pe).then(fe)}});return P(Q,oe),Q}function j(oe){return Array.prototype.concat.apply([],oe)}function ae(oe){const re=oe.map(me);return[re.map(H=>H[0]),j(re.map(H=>H[1]))]}const _=new WeakMap;function N(oe,re){return _.set(oe,re),oe}function W(oe){return Object.assign(oe,{[i]:!0})}function he(oe,re=globalThis,H="*"){return{postMessage:(V,Q)=>oe.postMessage(V,H,Q),addEventListener:re.addEventListener.bind(re),removeEventListener:re.removeEventListener.bind(re)}}function me(oe){for(const[re,H]of h)if(H.canHandle(oe)){const[V,Q]=H.serialize(oe);return[{type:"HANDLER",name:re,value:V},Q]}return[{type:"RAW",value:oe},_.get(oe)||[]]}function fe(oe){switch(oe.type){case"HANDLER":return h.get(oe.name).deserialize(oe.value);case"RAW":return oe.value}}function ve(oe,re,H){return new Promise(V=>{const Q=ce();oe.addEventListener("message",function Te(Re){!Re.data||!Re.data.id||Re.data.id!==Q||(oe.removeEventListener("message",Te),V(Re.data))}),oe.start&&oe.start(),oe.postMessage(Object.assign({id:Q},re),H)})}function ce(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}},46957:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>T,Gw:()=>N,KI:()=>H,Q1:()=>l,Qh:()=>_,Uw:()=>m,b:()=>ae,ef:()=>s});var i=t(40871);function l(){}var s=.7,m=1/s,u="\\s*([+-]?\\d+)\\s*",f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",v=/^#([0-9a-f]{3,8})$/,h=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),d=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),b=new RegExp(`^rgba\\(${u},${u},${u},${f}\\)$`),y=new RegExp(`^rgba\\(${p},${p},${p},${f}\\)$`),w=new RegExp(`^hsl\\(${f},${p},${p}\\)$`),S=new RegExp(`^hsla\\(${f},${p},${p},${f}\\)$`),O={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};(0,i.A)(l,T,{copy(ne){return Object.assign(new this.constructor,this,ne)},displayable(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:M,formatHsl:D,formatRgb:P,toString:P});function R(){return this.rgb().formatHex()}function M(){return this.rgb().formatHex8()}function D(){return re(this).formatHsl()}function P(){return this.rgb().formatRgb()}function T(ne){var pe,ye;return ne=(ne+"").trim().toLowerCase(),(pe=v.exec(ne))?(ye=pe[1].length,pe=parseInt(pe[1],16),ye===6?A(pe):ye===3?new N(pe>>8&15|pe>>4&240,pe>>4&15|pe&240,(pe&15)<<4|pe&15,1):ye===8?j(pe>>24&255,pe>>16&255,pe>>8&255,(pe&255)/255):ye===4?j(pe>>12&15|pe>>8&240,pe>>8&15|pe>>4&240,pe>>4&15|pe&240,((pe&15)<<4|pe&15)/255):null):(pe=h.exec(ne))?new N(pe[1],pe[2],pe[3],1):(pe=d.exec(ne))?new N(pe[1]*255/100,pe[2]*255/100,pe[3]*255/100,1):(pe=b.exec(ne))?j(pe[1],pe[2],pe[3],pe[4]):(pe=y.exec(ne))?j(pe[1]*255/100,pe[2]*255/100,pe[3]*255/100,pe[4]):(pe=w.exec(ne))?oe(pe[1],pe[2]/100,pe[3]/100,1):(pe=S.exec(ne))?oe(pe[1],pe[2]/100,pe[3]/100,pe[4]):O.hasOwnProperty(ne)?A(O[ne]):ne==="transparent"?new N(NaN,NaN,NaN,0):null}function A(ne){return new N(ne>>16&255,ne>>8&255,ne&255,1)}function j(ne,pe,ye,Se){return Se<=0&&(ne=pe=ye=NaN),new N(ne,pe,ye,Se)}function ae(ne){return ne instanceof l||(ne=T(ne)),ne?(ne=ne.rgb(),new N(ne.r,ne.g,ne.b,ne.opacity)):new N}function _(ne,pe,ye,Se){return arguments.length===1?ae(ne):new N(ne,pe,ye,Se??1)}function N(ne,pe,ye,Se){this.r=+ne,this.g=+pe,this.b=+ye,this.opacity=+Se}(0,i.A)(N,_,(0,i.X)(l,{brighter(ne){return ne=ne==null?m:Math.pow(m,ne),new N(this.r*ne,this.g*ne,this.b*ne,this.opacity)},darker(ne){return ne=ne==null?s:Math.pow(s,ne),new N(this.r*ne,this.g*ne,this.b*ne,this.opacity)},rgb(){return this},clamp(){return new N(ve(this.r),ve(this.g),ve(this.b),fe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W,formatHex:W,formatHex8:he,formatRgb:me,toString:me}));function W(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function he(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce((isNaN(this.opacity)?1:this.opacity)*255)}`}function me(){const ne=fe(this.opacity);return`${ne===1?"rgb(":"rgba("}${ve(this.r)}, ${ve(this.g)}, ${ve(this.b)}${ne===1?")":`, ${ne})`}`}function fe(ne){return isNaN(ne)?1:Math.max(0,Math.min(1,ne))}function ve(ne){return Math.max(0,Math.min(255,Math.round(ne)||0))}function ce(ne){return ne=ve(ne),(ne<16?"0":"")+ne.toString(16)}function oe(ne,pe,ye,Se){return Se<=0?ne=pe=ye=NaN:ye<=0||ye>=1?ne=pe=NaN:pe<=0&&(ne=NaN),new V(ne,pe,ye,Se)}function re(ne){if(ne instanceof V)return new V(ne.h,ne.s,ne.l,ne.opacity);if(ne instanceof l||(ne=T(ne)),!ne)return new V;if(ne instanceof V)return ne;ne=ne.rgb();var pe=ne.r/255,ye=ne.g/255,Se=ne.b/255,Ae=Math.min(pe,ye,Se),Ee=Math.max(pe,ye,Se),xe=NaN,nt=Ee-Ae,Tt=(Ee+Ae)/2;return nt?(pe===Ee?xe=(ye-Se)/nt+(ye<Se)*6:ye===Ee?xe=(Se-pe)/nt+2:xe=(pe-ye)/nt+4,nt/=Tt<.5?Ee+Ae:2-Ee-Ae,xe*=60):nt=Tt>0&&Tt<1?0:xe,new V(xe,nt,Tt,ne.opacity)}function H(ne,pe,ye,Se){return arguments.length===1?re(ne):new V(ne,pe,ye,Se??1)}function V(ne,pe,ye,Se){this.h=+ne,this.s=+pe,this.l=+ye,this.opacity=+Se}(0,i.A)(V,H,(0,i.X)(l,{brighter(ne){return ne=ne==null?m:Math.pow(m,ne),new V(this.h,this.s,this.l*ne,this.opacity)},darker(ne){return ne=ne==null?s:Math.pow(s,ne),new V(this.h,this.s,this.l*ne,this.opacity)},rgb(){var ne=this.h%360+(this.h<0)*360,pe=isNaN(ne)||isNaN(this.s)?0:this.s,ye=this.l,Se=ye+(ye<.5?ye:1-ye)*pe,Ae=2*ye-Se;return new N(Re(ne>=240?ne-240:ne+120,Ae,Se),Re(ne,Ae,Se),Re(ne<120?ne+240:ne-120,Ae,Se),this.opacity)},clamp(){return new V(Q(this.h),Te(this.s),Te(this.l),fe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const ne=fe(this.opacity);return`${ne===1?"hsl(":"hsla("}${Q(this.h)}, ${Te(this.s)*100}%, ${Te(this.l)*100}%${ne===1?")":`, ${ne})`}`}}));function Q(ne){return ne=(ne||0)%360,ne<0?ne+360:ne}function Te(ne){return Math.max(0,Math.min(1,ne||0))}function Re(ne,pe,ye){return(ne<60?pe+(ye-pe)*ne/60:ne<180?ye:ne<240?pe+(ye-pe)*(240-ne)/60:pe)*255}},75653:(J,g,t)=>{"use strict";t.d(g,{A:()=>w});var i=t(40871),l=t(46957),s=t(49710),m=-.14861,u=1.78277,f=-.29227,p=-.90649,v=1.97294,h=v*p,d=v*u,b=u*f-p*m;function y(O){if(O instanceof S)return new S(O.h,O.s,O.l,O.opacity);O instanceof l.Gw||(O=(0,l.b)(O));var R=O.r/255,M=O.g/255,D=O.b/255,P=(b*D+h*R-d*M)/(b+h-d),T=D-P,A=(v*(M-P)-f*T)/p,j=Math.sqrt(A*A+T*T)/(v*P*(1-P)),ae=j?Math.atan2(A,T)*s.u-120:NaN;return new S(ae<0?ae+360:ae,j,P,O.opacity)}function w(O,R,M,D){return arguments.length===1?y(O):new S(O,R,M,D??1)}function S(O,R,M,D){this.h=+O,this.s=+R,this.l=+M,this.opacity=+D}(0,i.A)(S,w,(0,i.X)(l.Q1,{brighter(O){return O=O==null?l.Uw:Math.pow(l.Uw,O),new S(this.h,this.s,this.l*O,this.opacity)},darker(O){return O=O==null?l.ef:Math.pow(l.ef,O),new S(this.h,this.s,this.l*O,this.opacity)},rgb(){var O=isNaN(this.h)?0:(this.h+120)*s.F,R=+this.l,M=isNaN(this.s)?0:this.s*R*(1-R),D=Math.cos(O),P=Math.sin(O);return new l.Gw(255*(R+M*(m*D+u*P)),255*(R+M*(f*D+p*P)),255*(R+M*(v*D)),this.opacity)}}))},40871:(J,g,t)=>{"use strict";t.d(g,{A:()=>i,X:()=>l});function i(s,m,u){s.prototype=m.prototype=u,u.constructor=s}function l(s,m){var u=Object.create(s.prototype);for(var f in m)u[f]=m[f];return u}},49710:(J,g,t)=>{"use strict";t.d(g,{F:()=>i,u:()=>l});const i=Math.PI/180,l=180/Math.PI},86160:(J,g,t)=>{"use strict";t.d(g,{A:()=>l,H:()=>i});function i(s,m,u,f,p){var v=s*s,h=v*s;return((1-3*s+3*v-h)*m+(4-6*v+3*h)*u+(1+3*s+3*v-3*h)*f+h*p)/6}function l(s){var m=s.length-1;return function(u){var f=u<=0?u=0:u>=1?(u=1,m-1):Math.floor(u*m),p=s[f],v=s[f+1],h=f>0?s[f-1]:2*p-v,d=f<m-1?s[f+2]:2*v-p;return i((u-f/m)*m,h,p,v,d)}}},19804:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(86160);function l(s){var m=s.length;return function(u){var f=Math.floor(((u%=1)<0?++u:u)*m),p=s[(f+m-1)%m],v=s[f%m],h=s[(f+1)%m],d=s[(f+2)%m];return(0,i.H)((u-f/m)*m,p,v,h,d)}}},84709:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>f,lG:()=>m,uN:()=>u});var i=t(3116);function l(p,v){return function(h){return p+h*v}}function s(p,v,h){return p=Math.pow(p,h),v=Math.pow(v,h)-p,h=1/h,function(d){return Math.pow(p+d*v,h)}}function m(p,v){var h=v-p;return h?l(p,h>180||h<-180?h-360*Math.round(h/360):h):(0,i.A)(isNaN(p)?v:p)}function u(p){return(p=+p)==1?f:function(v,h){return h-v?s(v,h,p):(0,i.A)(isNaN(v)?h:v)}}function f(p,v){var h=v-p;return h?l(p,h):(0,i.A)(isNaN(p)?v:p)}},3116:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i=l=>()=>l},69837:(J,g,t)=>{"use strict";t.d(g,{A:()=>m,w:()=>u});var i=t(75653),l=t(84709);function s(f){return function p(v){v=+v;function h(d,b){var y=f((d=(0,i.A)(d)).h,(b=(0,i.A)(b)).h),w=(0,l.Ay)(d.s,b.s),S=(0,l.Ay)(d.l,b.l),O=(0,l.Ay)(d.opacity,b.opacity);return function(R){return d.h=y(R),d.s=w(R),d.l=S(Math.pow(R,v)),d.opacity=O(R),d+""}}return h.gamma=p,h}(1)}const m=s(l.lG);var u=s(l.Ay)},21197:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>u,Ik:()=>p,uL:()=>v});var i=t(46957),l=t(86160),s=t(19804),m=t(84709);const u=function h(d){var b=(0,m.uN)(d);function y(w,S){var O=b((w=(0,i.Qh)(w)).r,(S=(0,i.Qh)(S)).r),R=b(w.g,S.g),M=b(w.b,S.b),D=(0,m.Ay)(w.opacity,S.opacity);return function(P){return w.r=O(P),w.g=R(P),w.b=M(P),w.opacity=D(P),w+""}}return y.gamma=h,y}(1);function f(h){return function(d){var b=d.length,y=new Array(b),w=new Array(b),S=new Array(b),O,R;for(O=0;O<b;++O)R=(0,i.Qh)(d[O]),y[O]=R.r||0,w[O]=R.g||0,S[O]=R.b||0;return y=h(y),w=h(w),S=h(S),R.opacity=1,function(M){return R.r=y(M),R.g=w(M),R.b=S(M),R+""}}}var p=f(l.A),v=f(s.A)},73844:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});const i=1664525,l=1013904223,s=1/4294967296;function m(u=Math.random()){let f=(0<=u&&u<1?u/s:Math.abs(u))|0;return()=>(f=i*f+l|0,s*(f>>>0))}},77389:(J,g,t)=>{"use strict";t.r(g),t.d(g,{interpolateBlues:()=>ft,interpolateBrBG:()=>O,interpolateBuGn:()=>re,interpolateBuPu:()=>V,interpolateCividis:()=>De,interpolateCool:()=>We,interpolateCubehelixDefault:()=>ze,interpolateGnBu:()=>Te,interpolateGreens:()=>Ut,interpolateGreys:()=>it,interpolateInferno:()=>nn,interpolateMagma:()=>Bt,interpolateOrRd:()=>ne,interpolateOranges:()=>ue,interpolatePRGn:()=>M,interpolatePiYG:()=>P,interpolatePlasma:()=>bt,interpolatePuBu:()=>Ae,interpolatePuBuGn:()=>ye,interpolatePuOr:()=>A,interpolatePuRd:()=>xe,interpolatePurples:()=>et,interpolateRainbow:()=>ct,interpolateRdBu:()=>ae,interpolateRdGy:()=>N,interpolateRdPu:()=>Tt,interpolateRdYlBu:()=>he,interpolateRdYlGn:()=>fe,interpolateReds:()=>I,interpolateSinebow:()=>ge,interpolateSpectral:()=>ce,interpolateTurbo:()=>z,interpolateViridis:()=>Qe,interpolateWarm:()=>qe,interpolateYlGn:()=>U,interpolateYlGnBu:()=>Rt,interpolateYlOrBr:()=>Y,interpolateYlOrRd:()=>ke,schemeAccent:()=>s,schemeBlues:()=>Ye,schemeBrBG:()=>S,schemeBuGn:()=>oe,schemeBuPu:()=>H,schemeCategory10:()=>l,schemeDark2:()=>m,schemeGnBu:()=>Q,schemeGreens:()=>wt,schemeGreys:()=>Ke,schemeOrRd:()=>Re,schemeOranges:()=>K,schemePRGn:()=>R,schemePaired:()=>u,schemePastel1:()=>f,schemePastel2:()=>p,schemePiYG:()=>D,schemePuBu:()=>Se,schemePuBuGn:()=>pe,schemePuOr:()=>T,schemePuRd:()=>Ee,schemePurples:()=>At,schemeRdBu:()=>j,schemeRdGy:()=>_,schemeRdPu:()=>nt,schemeRdYlBu:()=>W,schemeRdYlGn:()=>me,schemeReds:()=>ee,schemeSet1:()=>v,schemeSet2:()=>h,schemeSet3:()=>d,schemeSpectral:()=>ve,schemeTableau10:()=>b,schemeYlGn:()=>tt,schemeYlGnBu:()=>pt,schemeYlOrBr:()=>F,schemeYlOrRd:()=>le});function i(at){for(var $t=at.length/6|0,On=new Array($t),Ct=0;Ct<$t;)On[Ct]="#"+at.slice(Ct*6,++Ct*6);return On}const l=i("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),s=i("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),m=i("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),u=i("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),f=i("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),p=i("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),v=i("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),h=i("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),d=i("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),b=i("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var y=t(21197);const w=at=>(0,y.Ik)(at[at.length-1]);var S=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(i);const O=w(S);var R=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(i);const M=w(R);var D=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(i);const P=w(D);var T=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(i);const A=w(T);var j=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(i);const ae=w(j);var _=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(i);const N=w(_);var W=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(i);const he=w(W);var me=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(i);const fe=w(me);var ve=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(i);const ce=w(ve);var oe=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(i);const re=w(oe);var H=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(i);const V=w(H);var Q=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(i);const Te=w(Q);var Re=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(i);const ne=w(Re);var pe=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(i);const ye=w(pe);var Se=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(i);const Ae=w(Se);var Ee=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(i);const xe=w(Ee);var nt=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(i);const Tt=w(nt);var pt=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(i);const Rt=w(pt);var tt=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(i);const U=w(tt);var F=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(i);const Y=w(F);var le=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(i);const ke=w(le);var Ye=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(i);const ft=w(Ye);var wt=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(i);const Ut=w(wt);var Ke=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(i);const it=w(Ke);var At=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(i);const et=w(At);var ee=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(i);const I=w(ee);var K=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(i);const ue=w(K);function De(at){return at=Math.max(0,Math.min(1,at)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-at*(35.34-at*(2381.73-at*(6402.7-at*(7024.72-at*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+at*(170.73+at*(52.82-at*(131.46-at*(176.58-at*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+at*(442.36-at*(2482.43-at*(6167.24-at*(6614.94-at*2475.67)))))))+")"}var He=t(75653),Fe=t(69837);const ze=(0,Fe.w)((0,He.A)(300,.5,0),(0,He.A)(-240,.5,1));var qe=(0,Fe.w)((0,He.A)(-100,.75,.35),(0,He.A)(80,1.5,.8)),We=(0,Fe.w)((0,He.A)(260,.75,.35),(0,He.A)(80,1.5,.8)),_t=(0,He.A)();function ct(at){(at<0||at>1)&&(at-=Math.floor(at));var $t=Math.abs(at-.5);return _t.h=360*at-100,_t.s=1.5-1.5*$t,_t.l=.8-.9*$t,_t+""}var Ge=t(46957),st=(0,Ge.Qh)(),Me=Math.PI/3,ie=Math.PI*2/3;function ge(at){var $t;return at=(.5-at)*Math.PI,st.r=255*($t=Math.sin(at))*$t,st.g=255*($t=Math.sin(at+Me))*$t,st.b=255*($t=Math.sin(at+ie))*$t,st+""}function z(at){return at=Math.max(0,Math.min(1,at)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+at*(1172.33-at*(10793.56-at*(33300.12-at*(38394.49-at*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+at*(557.33+at*(1225.33-at*(3574.96-at*(1073.77+at*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+at*(3211.1-at*(15327.97-at*(27814-at*(22569.18-at*6838.66)))))))+")"}function be(at){var $t=at.length;return function(On){return at[Math.max(0,Math.min($t-1,Math.floor(On*$t)))]}}const Qe=be(i("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Bt=be(i("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),nn=be(i("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bt=be(i("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},44115:(J,g,t)=>{"use strict";t.r(g),t.d(g,{Adder:()=>ce,Delaunay:()=>Dh,FormatSpecifier:()=>_p,InternMap:()=>H,InternSet:()=>V,Node:()=>xg,Path:()=>Ld,Voronoi:()=>bv,ZoomTransform:()=>qp,active:()=>oc,arc:()=>UA,area:()=>gS,areaRadial:()=>wS,ascending:()=>i,autoType:()=>$m,axisBottom:()=>Sn,axisLeft:()=>ir,axisRight:()=>_i,axisTop:()=>Cr,bin:()=>Fe,bisect:()=>b,bisectCenter:()=>d,bisectLeft:()=>h,bisectRight:()=>v,bisector:()=>s,blob:()=>Jm,blur:()=>y,blur2:()=>w,blurImage:()=>S,brush:()=>Dd,brushSelection:()=>Uc,brushX:()=>Gd,brushY:()=>nf,buffer:()=>Yg,chord:()=>xd,chordDirected:()=>Pc,chordTranspose:()=>rc,cluster:()=>gO,color:()=>Us.Ay,contourDensity:()=>Ou,contours:()=>Po,count:()=>A,create:()=>TA,creator:()=>Pn,cross:()=>W,csv:()=>Sh,csvFormat:()=>Fm,csvFormatBody:()=>Bm,csvFormatRow:()=>Ng,csvFormatRows:()=>jm,csvFormatValue:()=>Fg,csvParse:()=>kg,csvParseRows:()=>Nm,cubehelix:()=>Yu.A,cumsum:()=>he,curveBasis:()=>uP,curveBasisClosed:()=>lP,curveBasisOpen:()=>cP,curveBumpX:()=>SS,curveBumpY:()=>_S,curveBundle:()=>fP,curveCardinal:()=>dP,curveCardinalClosed:()=>hP,curveCardinalOpen:()=>pP,curveCatmullRom:()=>vP,curveCatmullRomClosed:()=>gP,curveCatmullRomOpen:()=>mP,curveLinear:()=>rb,curveLinearClosed:()=>yP,curveMonotoneX:()=>bP,curveMonotoneY:()=>wP,curveNatural:()=>EP,curveStep:()=>SP,curveStepAfter:()=>OP,curveStepBefore:()=>_P,descending:()=>l,deviation:()=>fe,difference:()=>yi,disjoint:()=>jr,dispatch:()=>$r,drag:()=>Zh,dragDisable:()=>Ls,dragEnable:()=>gu,dsv:()=>qm,dsvFormat:()=>Xf,easeBack:()=>ng,easeBackIn:()=>Gg,easeBackInOut:()=>ng,easeBackOut:()=>Pv,easeBounce:()=>Wp,easeBounceIn:()=>Ym,easeBounceInOut:()=>Zd,easeBounceOut:()=>Wp,easeCircle:()=>eg,easeCircleIn:()=>zg,easeCircleInOut:()=>eg,easeCircleOut:()=>Vg,easeCubic:()=>Du,easeCubicIn:()=>fu,easeCubicInOut:()=>Du,easeCubicOut:()=>wu,easeElastic:()=>Tv,easeElasticIn:()=>ig,easeElasticInOut:()=>Xm,easeElasticOut:()=>Tv,easeExp:()=>iv,easeExpIn:()=>zm,easeExpInOut:()=>iv,easeExpOut:()=>Vm,easeLinear:()=>Um,easePoly:()=>Ov,easePolyIn:()=>qv,easePolyInOut:()=>Ov,easePolyOut:()=>Ih,easeQuad:()=>qh,easeQuadIn:()=>Wm,easeQuadInOut:()=>qh,easeQuadOut:()=>$g,easeSin:()=>$p,easeSinIn:()=>Wg,easeSinInOut:()=>$p,easeSinOut:()=>ph,every:()=>Ln,extent:()=>ve,fcumsum:()=>re,filter:()=>Gn,flatGroup:()=>Ee,flatRollup:()=>xe,forceCenter:()=>n0,forceCollide:()=>dg,forceLink:()=>hg,forceManyBody:()=>Dv,forceRadial:()=>w0,forceSimulation:()=>b0,forceX:()=>Iv,forceY:()=>E0,format:()=>uv,formatDefaultLocale:()=>C0,formatLocale:()=>dm,formatPrefix:()=>Nv,formatSpecifier:()=>Sp,fsum:()=>oe,geoAlbers:()=>Cw,geoAlbersUsa:()=>Y_,geoArea:()=>dy,geoAzimuthalEqualArea:()=>X_,geoAzimuthalEqualAreaRaw:()=>jb,geoAzimuthalEquidistant:()=>Q_,geoAzimuthalEquidistantRaw:()=>$b,geoBounds:()=>qo,geoCentroid:()=>Tp,geoCircle:()=>l_,geoClipAntimeridian:()=>yb,geoClipCircle:()=>V1,geoClipExtent:()=>g_,geoClipRectangle:()=>Ey,geoConicConformal:()=>Z_,geoConicConformalRaw:()=>Pw,geoConicEqualArea:()=>Ly,geoConicEqualAreaRaw:()=>Ow,geoConicEquidistant:()=>eO,geoConicEquidistantRaw:()=>Tw,geoContains:()=>__,geoDistance:()=>Oy,geoEqualEarth:()=>nO,geoEqualEarthRaw:()=>Ub,geoEquirectangular:()=>q_,geoEquirectangularRaw:()=>U0,geoGnomonic:()=>rO,geoGnomonicRaw:()=>Wb,geoGraticule:()=>ew,geoGraticule10:()=>O_,geoIdentity:()=>iO,geoInterpolate:()=>C_,geoLength:()=>H1,geoMercator:()=>J_,geoMercatorRaw:()=>$0,geoNaturalEarth1:()=>oO,geoNaturalEarth1Raw:()=>zb,geoOrthographic:()=>aO,geoOrthographicRaw:()=>Vb,geoPath:()=>B_,geoProjection:()=>Qp,geoProjectionMutator:()=>Fb,geoRotation:()=>R0,geoStereographic:()=>sO,geoStereographicRaw:()=>Hb,geoStream:()=>kh,geoTransform:()=>j_,geoTransverseMercator:()=>uO,geoTransverseMercatorRaw:()=>Kb,gray:()=>eh,greatest:()=>st,greatestIndex:()=>Xe,group:()=>ye,groupSort:()=>Ye,groups:()=>Se,hcl:()=>Pu,hierarchy:()=>Gb,histogram:()=>Fe,hsl:()=>Us.KI,html:()=>qg,image:()=>Qg,index:()=>pt,indexes:()=>Rt,interpolate:()=>Kn,interpolateArray:()=>Hu,interpolateBasis:()=>lC.A,interpolateBasisClosed:()=>cC.A,interpolateBlues:()=>nl.interpolateBlues,interpolateBrBG:()=>nl.interpolateBrBG,interpolateBuGn:()=>nl.interpolateBuGn,interpolateBuPu:()=>nl.interpolateBuPu,interpolateCividis:()=>nl.interpolateCividis,interpolateCool:()=>nl.interpolateCool,interpolateCubehelix:()=>Zw.A,interpolateCubehelixDefault:()=>nl.interpolateCubehelixDefault,interpolateCubehelixLong:()=>Zw.w,interpolateDate:()=>Al,interpolateDiscrete:()=>fC,interpolateGnBu:()=>nl.interpolateGnBu,interpolateGreens:()=>nl.interpolateGreens,interpolateGreys:()=>nl.interpolateGreys,interpolateHcl:()=>bC,interpolateHclLong:()=>wC,interpolateHsl:()=>gC,interpolateHslLong:()=>mC,interpolateHue:()=>dC,interpolateInferno:()=>nl.interpolateInferno,interpolateLab:()=>yC,interpolateMagma:()=>nl.interpolateMagma,interpolateNumber:()=>fl,interpolateNumberArray:()=>Wu,interpolateObject:()=>Rl,interpolateOrRd:()=>nl.interpolateOrRd,interpolateOranges:()=>nl.interpolateOranges,interpolatePRGn:()=>nl.interpolatePRGn,interpolatePiYG:()=>nl.interpolatePiYG,interpolatePlasma:()=>nl.interpolatePlasma,interpolatePuBu:()=>nl.interpolatePuBu,interpolatePuBuGn:()=>nl.interpolatePuBuGn,interpolatePuOr:()=>nl.interpolatePuOr,interpolatePuRd:()=>nl.interpolatePuRd,interpolatePurples:()=>nl.interpolatePurples,interpolateRainbow:()=>nl.interpolateRainbow,interpolateRdBu:()=>nl.interpolateRdBu,interpolateRdGy:()=>nl.interpolateRdGy,interpolateRdPu:()=>nl.interpolateRdPu,interpolateRdYlBu:()=>nl.interpolateRdYlBu,interpolateRdYlGn:()=>nl.interpolateRdYlGn,interpolateReds:()=>nl.interpolateReds,interpolateRgb:()=>Iu.Ay,interpolateRgbBasis:()=>Iu.Ik,interpolateRgbBasisClosed:()=>Iu.uL,interpolateRound:()=>Wy,interpolateSinebow:()=>nl.interpolateSinebow,interpolateSpectral:()=>nl.interpolateSpectral,interpolateString:()=>qt,interpolateTransformCss:()=>oi,interpolateTransformSvg:()=>ti,interpolateTurbo:()=>nl.interpolateTurbo,interpolateViridis:()=>nl.interpolateViridis,interpolateWarm:()=>nl.interpolateWarm,interpolateYlGn:()=>nl.interpolateYlGn,interpolateYlGnBu:()=>nl.interpolateYlGnBu,interpolateYlOrBr:()=>nl.interpolateYlOrBr,interpolateYlOrRd:()=>nl.interpolateYlOrRd,interpolateZoom:()=>Xw,interrupt:()=>Wa,intersection:()=>ui,interval:()=>WP,isoFormat:()=>BP,isoParse:()=>UP,json:()=>t0,lab:()=>Rf,lch:()=>Ys,least:()=>Zn,leastIndex:()=>xt,line:()=>A1,lineRadial:()=>bS,link:()=>ib,linkHorizontal:()=>QA,linkRadial:()=>ZA,linkVertical:()=>JA,local:()=>dS,map:()=>rr,matcher:()=>ra,max:()=>ze,maxIndex:()=>qe,mean:()=>Qe,median:()=>Bt,medianIndex:()=>nn,merge:()=>at,min:()=>We,minIndex:()=>_t,mode:()=>$t,namespace:()=>Nn,namespaces:()=>Ui,nice:()=>De,now:()=>Vt,pack:()=>KO,packEnclose:()=>$O,packSiblings:()=>VO,pairs:()=>On,partition:()=>GO,path:()=>cf,pathRound:()=>kf,permute:()=>F,pie:()=>HA,piecewise:()=>qw,pointRadial:()=>ry,pointer:()=>ci,pointers:()=>MA,polygonArea:()=>SC,polygonCentroid:()=>_C,polygonContains:()=>AC,polygonHull:()=>xC,polygonLength:()=>PC,precisionFixed:()=>hm,precisionPrefix:()=>mg,precisionRound:()=>pm,quadtree:()=>av,quantile:()=>Me,quantileIndex:()=>ge,quantileSorted:()=>ie,quantize:()=>EC,quickselect:()=>ct,radialArea:()=>wS,radialLine:()=>bS,randomBates:()=>DC,randomBernoulli:()=>kC,randomBeta:()=>rE,randomBinomial:()=>iE,randomCauchy:()=>FC,randomExponential:()=>IC,randomGamma:()=>n1,randomGeometric:()=>nE,randomInt:()=>RC,randomIrwinHall:()=>tE,randomLcg:()=>$C.A,randomLogNormal:()=>MC,randomLogistic:()=>BC,randomNormal:()=>t1,randomPareto:()=>LC,randomPoisson:()=>jC,randomUniform:()=>TC,randomWeibull:()=>NC,range:()=>Zt,rank:()=>Wn,reduce:()=>sr,reverse:()=>pi,rgb:()=>Us.Qh,ribbon:()=>Fh,ribbonArrow:()=>lh,rollup:()=>nt,rollups:()=>Tt,scaleBand:()=>o1,scaleDiverging:()=>lS,scaleDivergingLog:()=>cS,scaleDivergingPow:()=>_1,scaleDivergingSqrt:()=>PA,scaleDivergingSymlog:()=>fS,scaleIdentity:()=>lE,scaleImplicit:()=>r1,scaleLinear:()=>uE,scaleLog:()=>pE,scaleOrdinal:()=>i1,scalePoint:()=>UC,scalePow:()=>f1,scaleQuantile:()=>EE,scaleQuantize:()=>SE,scaleRadial:()=>wE,scaleSequential:()=>oS,scaleSequentialLog:()=>aS,scaleSequentialPow:()=>S1,scaleSequentialQuantile:()=>uS,scaleSequentialSqrt:()=>AA,scaleSequentialSymlog:()=>sS,scaleSqrt:()=>qC,scaleSymlog:()=>mE,scaleThreshold:()=>_E,scaleTime:()=>CA,scaleUtc:()=>xA,scan:()=>gn,schemeAccent:()=>nl.schemeAccent,schemeBlues:()=>nl.schemeBlues,schemeBrBG:()=>nl.schemeBrBG,schemeBuGn:()=>nl.schemeBuGn,schemeBuPu:()=>nl.schemeBuPu,schemeCategory10:()=>nl.schemeCategory10,schemeDark2:()=>nl.schemeDark2,schemeGnBu:()=>nl.schemeGnBu,schemeGreens:()=>nl.schemeGreens,schemeGreys:()=>nl.schemeGreys,schemeOrRd:()=>nl.schemeOrRd,schemeOranges:()=>nl.schemeOranges,schemePRGn:()=>nl.schemePRGn,schemePaired:()=>nl.schemePaired,schemePastel1:()=>nl.schemePastel1,schemePastel2:()=>nl.schemePastel2,schemePiYG:()=>nl.schemePiYG,schemePuBu:()=>nl.schemePuBu,schemePuBuGn:()=>nl.schemePuBuGn,schemePuOr:()=>nl.schemePuOr,schemePuRd:()=>nl.schemePuRd,schemePurples:()=>nl.schemePurples,schemeRdBu:()=>nl.schemeRdBu,schemeRdGy:()=>nl.schemeRdGy,schemeRdPu:()=>nl.schemeRdPu,schemeRdYlBu:()=>nl.schemeRdYlBu,schemeRdYlGn:()=>nl.schemeRdYlGn,schemeReds:()=>nl.schemeReds,schemeSet1:()=>nl.schemeSet1,schemeSet2:()=>nl.schemeSet2,schemeSet3:()=>nl.schemeSet3,schemeSpectral:()=>nl.schemeSpectral,schemeTableau10:()=>nl.schemeTableau10,schemeYlGn:()=>nl.schemeYlGn,schemeYlGnBu:()=>nl.schemeYlGnBu,schemeYlOrBr:()=>nl.schemeYlOrBr,schemeYlOrRd:()=>nl.schemeYlOrRd,select:()=>ss,selectAll:()=>DA,selection:()=>la,selector:()=>zr,selectorAll:()=>ki,shuffle:()=>Qt,shuffler:()=>Dt,some:()=>En,sort:()=>Y,stack:()=>AP,stackOffsetDiverging:()=>TP,stackOffsetExpand:()=>PP,stackOffsetNone:()=>Tm,stackOffsetSilhouette:()=>RP,stackOffsetWiggle:()=>MP,stackOrderAppearance:()=>qS,stackOrderAscending:()=>e_,stackOrderDescending:()=>IP,stackOrderInsideOut:()=>LP,stackOrderNone:()=>Rm,stackOrderReverse:()=>kP,stratify:()=>JO,style:()=>G,subset:()=>Si,sum:()=>hn,superset:()=>ri,svg:()=>sg,symbol:()=>sP,symbolAsterisk:()=>OS,symbolCircle:()=>ob,symbolCross:()=>CS,symbolDiamond:()=>AS,symbolDiamond2:()=>PS,symbolPlus:()=>TS,symbolSquare:()=>RS,symbolSquare2:()=>DS,symbolStar:()=>LS,symbolTimes:()=>M1,symbolTriangle:()=>kS,symbolTriangle2:()=>NS,symbolWye:()=>FS,symbolX:()=>M1,symbols:()=>BS,symbolsFill:()=>BS,symbolsStroke:()=>aP,text:()=>ov,thresholdFreedmanDiaconis:()=>z,thresholdScott:()=>be,thresholdSturges:()=>He,tickFormat:()=>sE,tickIncrement:()=>K,tickStep:()=>ue,ticks:()=>I,timeDay:()=>Om,timeDays:()=>ox,timeFormat:()=>b1,timeFormatDefaultLocale:()=>iS,timeFormatLocale:()=>WE,timeFriday:()=>TE,timeFridays:()=>dx,timeHour:()=>Gy,timeHours:()=>rx,timeInterval:()=>sh,timeMillisecond:()=>_m,timeMilliseconds:()=>CE,timeMinute:()=>Hy,timeMinutes:()=>tx,timeMonday:()=>Q0,timeMondays:()=>ux,timeMonth:()=>Xy,timeMonths:()=>wx,timeParse:()=>rS,timeSaturday:()=>RE,timeSaturdays:()=>hx,timeSecond:()=>gv,timeSeconds:()=>xE,timeSunday:()=>Cm,timeSundays:()=>ME,timeThursday:()=>Tg,timeThursdays:()=>fx,timeTickInterval:()=>UE,timeTicks:()=>$E,timeTuesday:()=>AE,timeTuesdays:()=>lx,timeWednesday:()=>PE,timeWednesdays:()=>cx,timeWeek:()=>Cm,timeWeeks:()=>ME,timeYear:()=>Jp,timeYears:()=>Sx,timeout:()=>bo,timer:()=>ar,timerFlush:()=>wi,transition:()=>ms,transpose:()=>cn,tree:()=>iC,treemap:()=>oC,treemapBinary:()=>aC,treemapDice:()=>G0,treemapResquarify:()=>uC,treemapSlice:()=>Uy,treemapSliceDice:()=>sC,treemapSquarify:()=>Gw,tsv:()=>e0,tsvFormat:()=>Zv,tsvFormatBody:()=>jp,tsvFormatRow:()=>up,tsvFormatRows:()=>Eh,tsvFormatValue:()=>Bg,tsvParse:()=>Bp,tsvParseRows:()=>Jv,union:()=>Kr,unixDay:()=>g1,unixDays:()=>sx,utcDay:()=>X0,utcDays:()=>ax,utcFormat:()=>Jy,utcFriday:()=>LE,utcFridays:()=>yx,utcHour:()=>Yy,utcHours:()=>ix,utcMillisecond:()=>_m,utcMilliseconds:()=>CE,utcMinute:()=>Ky,utcMinutes:()=>nx,utcMonday:()=>J0,utcMondays:()=>px,utcMonth:()=>Qy,utcMonths:()=>Ex,utcParse:()=>w1,utcSaturday:()=>kE,utcSaturdays:()=>bx,utcSecond:()=>gv,utcSeconds:()=>xE,utcSunday:()=>xm,utcSundays:()=>NE,utcThursday:()=>Mg,utcThursdays:()=>mx,utcTickInterval:()=>jE,utcTicks:()=>BE,utcTuesday:()=>DE,utcTuesdays:()=>vx,utcWednesday:()=>IE,utcWednesdays:()=>gx,utcWeek:()=>xm,utcWeeks:()=>NE,utcYear:()=>Zp,utcYears:()=>_x,variance:()=>me,window:()=>Jo,xml:()=>Zg,zip:()=>Or,zoom:()=>XP,zoomIdentity:()=>db,zoomTransform:()=>r_});function i(c,E){return c==null||E==null?NaN:c<E?-1:c>E?1:c>=E?0:NaN}function l(c,E){return c==null||E==null?NaN:E<c?-1:E>c?1:E>=c?0:NaN}function s(c){let E,C,k;c.length!==2?(E=i,C=(Je,Et)=>i(c(Je),Et),k=(Je,Et)=>c(Je)-Et):(E=c===i||c===l?c:m,C=c,k=c);function q(Je,Et,ot=0,It=Je.length){if(ot<It){if(E(Et,Et)!==0)return It;do{const Jt=ot+It>>>1;C(Je[Jt],Et)<0?ot=Jt+1:It=Jt}while(ot<It)}return ot}function we(Je,Et,ot=0,It=Je.length){if(ot<It){if(E(Et,Et)!==0)return It;do{const Jt=ot+It>>>1;C(Je[Jt],Et)<=0?ot=Jt+1:It=Jt}while(ot<It)}return ot}function Be(Je,Et,ot=0,It=Je.length){const Jt=q(Je,Et,ot,It-1);return Jt>ot&&k(Je[Jt-1],Et)>-k(Je[Jt],Et)?Jt-1:Jt}return{left:q,center:Be,right:we}}function m(){return 0}function u(c){return c===null?NaN:+c}function*f(c,E){if(E===void 0)for(let C of c)C!=null&&(C=+C)>=C&&(yield C);else{let C=-1;for(let k of c)(k=E(k,++C,c))!=null&&(k=+k)>=k&&(yield k)}}const p=s(i),v=p.right,h=p.left,d=s(u).center,b=v;function y(c,E){if(!((E=+E)>=0))throw new RangeError("invalid r");let C=c.length;if(!((C=Math.floor(C))>=0))throw new RangeError("invalid length");if(!C||!E)return c;const k=P(E),q=c.slice();return k(c,q,0,C,1),k(q,c,0,C,1),k(c,q,0,C,1),c}const w=O(P),S=O(D);function O(c){return function(E,C,k=C){if(!((C=+C)>=0))throw new RangeError("invalid rx");if(!((k=+k)>=0))throw new RangeError("invalid ry");let{data:q,width:we,height:Be}=E;if(!((we=Math.floor(we))>=0))throw new RangeError("invalid width");if(!((Be=Math.floor(Be!==void 0?Be:q.length/we))>=0))throw new RangeError("invalid height");if(!we||!Be||!C&&!k)return E;const Je=C&&c(C),Et=k&&c(k),ot=q.slice();return Je&&Et?(R(Je,ot,q,we,Be),R(Je,q,ot,we,Be),R(Je,ot,q,we,Be),M(Et,q,ot,we,Be),M(Et,ot,q,we,Be),M(Et,q,ot,we,Be)):Je?(R(Je,q,ot,we,Be),R(Je,ot,q,we,Be),R(Je,q,ot,we,Be)):Et&&(M(Et,q,ot,we,Be),M(Et,ot,q,we,Be),M(Et,q,ot,we,Be)),E}}function R(c,E,C,k,q){for(let we=0,Be=k*q;we<Be;)c(E,C,we,we+=k,1)}function M(c,E,C,k,q){for(let we=0,Be=k*q;we<k;++we)c(E,C,we,we+Be,k)}function D(c){const E=P(c);return(C,k,q,we,Be)=>{q<<=2,we<<=2,Be<<=2,E(C,k,q+0,we+0,Be),E(C,k,q+1,we+1,Be),E(C,k,q+2,we+2,Be),E(C,k,q+3,we+3,Be)}}function P(c){const E=Math.floor(c);if(E===c)return T(c);const C=c-E,k=2*c+1;return(q,we,Be,Je,Et)=>{if(!((Je-=Et)>=Be))return;let ot=E*we[Be];const It=Et*E,Jt=It+Et;for(let Nt=Be,vn=Be+It;Nt<vn;Nt+=Et)ot+=we[Math.min(Je,Nt)];for(let Nt=Be,vn=Je;Nt<=vn;Nt+=Et)ot+=we[Math.min(Je,Nt+It)],q[Nt]=(ot+C*(we[Math.max(Be,Nt-Jt)]+we[Math.min(Je,Nt+Jt)]))/k,ot-=we[Math.max(Be,Nt-It)]}}function T(c){const E=2*c+1;return(C,k,q,we,Be)=>{if(!((we-=Be)>=q))return;let Je=c*k[q];const Et=Be*c;for(let ot=q,It=q+Et;ot<It;ot+=Be)Je+=k[Math.min(we,ot)];for(let ot=q,It=we;ot<=It;ot+=Be)Je+=k[Math.min(we,ot+Et)],C[ot]=Je/E,Je-=k[Math.max(q,ot-Et)]}}function A(c,E){let C=0;if(E===void 0)for(let k of c)k!=null&&(k=+k)>=k&&++C;else{let k=-1;for(let q of c)(q=E(q,++k,c))!=null&&(q=+q)>=q&&++C}return C}function j(c){return c.length|0}function ae(c){return!(c>0)}function _(c){return typeof c!="object"||"length"in c?c:Array.from(c)}function N(c){return E=>c(...E)}function W(...c){const E=typeof c[c.length-1]=="function"&&N(c.pop());c=c.map(_);const C=c.map(j),k=c.length-1,q=new Array(k+1).fill(0),we=[];if(k<0||C.some(ae))return we;for(;;){we.push(q.map((Je,Et)=>c[Et][Je]));let Be=k;for(;++q[Be]===C[Be];){if(Be===0)return E?we.map(E):we;q[Be--]=0}}}function he(c,E){var C=0,k=0;return Float64Array.from(c,E===void 0?q=>C+=+q||0:q=>C+=+E(q,k++,c)||0)}function me(c,E){let C=0,k,q=0,we=0;if(E===void 0)for(let Be of c)Be!=null&&(Be=+Be)>=Be&&(k=Be-q,q+=k/++C,we+=k*(Be-q));else{let Be=-1;for(let Je of c)(Je=E(Je,++Be,c))!=null&&(Je=+Je)>=Je&&(k=Je-q,q+=k/++C,we+=k*(Je-q))}if(C>1)return we/(C-1)}function fe(c,E){const C=me(c,E);return C&&Math.sqrt(C)}function ve(c,E){let C,k;if(E===void 0)for(const q of c)q!=null&&(C===void 0?q>=q&&(C=k=q):(C>q&&(C=q),k<q&&(k=q)));else{let q=-1;for(let we of c)(we=E(we,++q,c))!=null&&(C===void 0?we>=we&&(C=k=we):(C>we&&(C=we),k<we&&(k=we)))}return[C,k]}class ce{constructor(){this._partials=new Float64Array(32),this._n=0}add(E){const C=this._partials;let k=0;for(let q=0;q<this._n&&q<32;q++){const we=C[q],Be=E+we,Je=Math.abs(E)<Math.abs(we)?E-(Be-we):we-(Be-E);Je&&(C[k++]=Je),E=Be}return C[k]=E,this._n=k+1,this}valueOf(){const E=this._partials;let C=this._n,k,q,we,Be=0;if(C>0){for(Be=E[--C];C>0&&(k=Be,q=E[--C],Be=k+q,we=q-(Be-k),!we););C>0&&(we<0&&E[C-1]<0||we>0&&E[C-1]>0)&&(q=we*2,k=Be+q,q==k-Be&&(Be=k))}return Be}}function oe(c,E){const C=new ce;if(E===void 0)for(let k of c)(k=+k)&&C.add(k);else{let k=-1;for(let q of c)(q=+E(q,++k,c))&&C.add(q)}return+C}function re(c,E){const C=new ce;let k=-1;return Float64Array.from(c,E===void 0?q=>C.add(+q||0):q=>C.add(+E(q,++k,c)||0))}class H extends Map{constructor(E,C=ne){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:C}}),E!=null)for(const[k,q]of E)this.set(k,q)}get(E){return super.get(Q(this,E))}has(E){return super.has(Q(this,E))}set(E,C){return super.set(Te(this,E),C)}delete(E){return super.delete(Re(this,E))}}class V extends Set{constructor(E,C=ne){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:C}}),E!=null)for(const k of E)this.add(k)}has(E){return super.has(Q(this,E))}add(E){return super.add(Te(this,E))}delete(E){return super.delete(Re(this,E))}}function Q({_intern:c,_key:E},C){const k=E(C);return c.has(k)?c.get(k):C}function Te({_intern:c,_key:E},C){const k=E(C);return c.has(k)?c.get(k):(c.set(k,C),C)}function Re({_intern:c,_key:E},C){const k=E(C);return c.has(k)&&(C=c.get(k),c.delete(k)),C}function ne(c){return c!==null&&typeof c=="object"?c.valueOf():c}function pe(c){return c}function ye(c,...E){return U(c,pe,pe,E)}function Se(c,...E){return U(c,Array.from,pe,E)}function Ae(c,E){for(let C=1,k=E.length;C<k;++C)c=c.flatMap(q=>q.pop().map(([we,Be])=>[...q,we,Be]));return c}function Ee(c,...E){return Ae(Se(c,...E),E)}function xe(c,E,...C){return Ae(Tt(c,E,...C),C)}function nt(c,E,...C){return U(c,pe,E,C)}function Tt(c,E,...C){return U(c,Array.from,E,C)}function pt(c,...E){return U(c,pe,tt,E)}function Rt(c,...E){return U(c,Array.from,tt,E)}function tt(c){if(c.length!==1)throw new Error("duplicate key");return c[0]}function U(c,E,C,k){return function q(we,Be){if(Be>=k.length)return C(we);const Je=new H,Et=k[Be++];let ot=-1;for(const It of we){const Jt=Et(It,++ot,we),Nt=Je.get(Jt);Nt?Nt.push(It):Je.set(Jt,[It])}for(const[It,Jt]of Je)Je.set(It,q(Jt,Be));return E(Je)}(c,0)}function F(c,E){return Array.from(E,C=>c[C])}function Y(c,...E){if(typeof c[Symbol.iterator]!="function")throw new TypeError("values is not iterable");c=Array.from(c);let[C]=E;if(C&&C.length!==2||E.length>1){const k=Uint32Array.from(c,(q,we)=>we);return E.length>1?(E=E.map(q=>c.map(q)),k.sort((q,we)=>{for(const Be of E){const Je=ke(Be[q],Be[we]);if(Je)return Je}})):(C=c.map(C),k.sort((q,we)=>ke(C[q],C[we]))),F(c,k)}return c.sort(le(C))}function le(c=i){if(c===i)return ke;if(typeof c!="function")throw new TypeError("compare is not a function");return(E,C)=>{const k=c(E,C);return k||k===0?k:(c(C,C)===0)-(c(E,E)===0)}}function ke(c,E){return(c==null||!(c>=c))-(E==null||!(E>=E))||(c<E?-1:c>E?1:0)}function Ye(c,E,C){return(E.length!==2?Y(nt(c,E,C),([k,q],[we,Be])=>i(q,Be)||i(k,we)):Y(ye(c,C),([k,q],[we,Be])=>E(q,Be)||i(k,we))).map(([k])=>k)}var ft=Array.prototype,wt=ft.slice,Ut=ft.map;function Ke(c){return()=>c}const it=Math.sqrt(50),At=Math.sqrt(10),et=Math.sqrt(2);function ee(c,E,C){const k=(E-c)/Math.max(0,C),q=Math.floor(Math.log10(k)),we=k/Math.pow(10,q),Be=we>=it?10:we>=At?5:we>=et?2:1;let Je,Et,ot;return q<0?(ot=Math.pow(10,-q)/Be,Je=Math.round(c*ot),Et=Math.round(E*ot),Je/ot<c&&++Je,Et/ot>E&&--Et,ot=-ot):(ot=Math.pow(10,q)*Be,Je=Math.round(c/ot),Et=Math.round(E/ot),Je*ot<c&&++Je,Et*ot>E&&--Et),Et<Je&&.5<=C&&C<2?ee(c,E,C*2):[Je,Et,ot]}function I(c,E,C){if(E=+E,c=+c,C=+C,!(C>0))return[];if(c===E)return[c];const k=E<c,[q,we,Be]=k?ee(E,c,C):ee(c,E,C);if(!(we>=q))return[];const Je=we-q+1,Et=new Array(Je);if(k)if(Be<0)for(let ot=0;ot<Je;++ot)Et[ot]=(we-ot)/-Be;else for(let ot=0;ot<Je;++ot)Et[ot]=(we-ot)*Be;else if(Be<0)for(let ot=0;ot<Je;++ot)Et[ot]=(q+ot)/-Be;else for(let ot=0;ot<Je;++ot)Et[ot]=(q+ot)*Be;return Et}function K(c,E,C){return E=+E,c=+c,C=+C,ee(c,E,C)[2]}function ue(c,E,C){E=+E,c=+c,C=+C;const k=E<c,q=k?K(E,c,C):K(c,E,C);return(k?-1:1)*(q<0?1/-q:q)}function De(c,E,C){let k;for(;;){const q=K(c,E,C);if(q===k||q===0||!isFinite(q))return[c,E];q>0?(c=Math.floor(c/q)*q,E=Math.ceil(E/q)*q):q<0&&(c=Math.ceil(c*q)/q,E=Math.floor(E*q)/q),k=q}}function He(c){return Math.ceil(Math.log(A(c))/Math.LN2)+1}function Fe(){var c=pe,E=ve,C=He;function k(q){Array.isArray(q)||(q=Array.from(q));var we,Be=q.length,Je,Et,ot=new Array(Be);for(we=0;we<Be;++we)ot[we]=c(q[we],we,q);var It=E(ot),Jt=It[0],Nt=It[1],vn=C(ot,Jt,Nt);if(!Array.isArray(vn)){const Br=Nt,Mr=+vn;if(E===ve&&([Jt,Nt]=De(Jt,Nt,Mr)),vn=I(Jt,Nt,Mr),vn[0]<=Jt&&(Et=K(Jt,Nt,Mr)),vn[vn.length-1]>=Nt)if(Br>=Nt&&E===ve){const Oi=K(Jt,Nt,Mr);isFinite(Oi)&&(Oi>0?Nt=(Math.floor(Nt/Oi)+1)*Oi:Oi<0&&(Nt=(Math.ceil(Nt*-Oi)+1)/-Oi))}else vn.pop()}for(var pr=vn.length,$n=0,Un=pr;vn[$n]<=Jt;)++$n;for(;vn[Un-1]>Nt;)--Un;($n||Un<pr)&&(vn=vn.slice($n,Un),pr=Un-$n);var lr=new Array(pr+1),Hr;for(we=0;we<=pr;++we)Hr=lr[we]=[],Hr.x0=we>0?vn[we-1]:Jt,Hr.x1=we<pr?vn[we]:Nt;if(isFinite(Et)){if(Et>0)for(we=0;we<Be;++we)(Je=ot[we])!=null&&Jt<=Je&&Je<=Nt&&lr[Math.min(pr,Math.floor((Je-Jt)/Et))].push(q[we]);else if(Et<0){for(we=0;we<Be;++we)if((Je=ot[we])!=null&&Jt<=Je&&Je<=Nt){const Br=Math.floor((Jt-Je)*Et);lr[Math.min(pr,Br+(vn[Br]<=Je))].push(q[we])}}}else for(we=0;we<Be;++we)(Je=ot[we])!=null&&Jt<=Je&&Je<=Nt&&lr[b(vn,Je,0,pr)].push(q[we]);return lr}return k.value=function(q){return arguments.length?(c=typeof q=="function"?q:Ke(q),k):c},k.domain=function(q){return arguments.length?(E=typeof q=="function"?q:Ke([q[0],q[1]]),k):E},k.thresholds=function(q){return arguments.length?(C=typeof q=="function"?q:Ke(Array.isArray(q)?wt.call(q):q),k):C},k}function ze(c,E){let C;if(E===void 0)for(const k of c)k!=null&&(C<k||C===void 0&&k>=k)&&(C=k);else{let k=-1;for(let q of c)(q=E(q,++k,c))!=null&&(C<q||C===void 0&&q>=q)&&(C=q)}return C}function qe(c,E){let C,k=-1,q=-1;if(E===void 0)for(const we of c)++q,we!=null&&(C<we||C===void 0&&we>=we)&&(C=we,k=q);else for(let we of c)(we=E(we,++q,c))!=null&&(C<we||C===void 0&&we>=we)&&(C=we,k=q);return k}function We(c,E){let C;if(E===void 0)for(const k of c)k!=null&&(C>k||C===void 0&&k>=k)&&(C=k);else{let k=-1;for(let q of c)(q=E(q,++k,c))!=null&&(C>q||C===void 0&&q>=q)&&(C=q)}return C}function _t(c,E){let C,k=-1,q=-1;if(E===void 0)for(const we of c)++q,we!=null&&(C>we||C===void 0&&we>=we)&&(C=we,k=q);else for(let we of c)(we=E(we,++q,c))!=null&&(C>we||C===void 0&&we>=we)&&(C=we,k=q);return k}function ct(c,E,C=0,k=1/0,q){if(E=Math.floor(E),C=Math.floor(Math.max(0,C)),k=Math.floor(Math.min(c.length-1,k)),!(C<=E&&E<=k))return c;for(q=q===void 0?ke:le(q);k>C;){if(k-C>600){const Et=k-C+1,ot=E-C+1,It=Math.log(Et),Jt=.5*Math.exp(2*It/3),Nt=.5*Math.sqrt(It*Jt*(Et-Jt)/Et)*(ot-Et/2<0?-1:1),vn=Math.max(C,Math.floor(E-ot*Jt/Et+Nt)),pr=Math.min(k,Math.floor(E+(Et-ot)*Jt/Et+Nt));ct(c,E,vn,pr,q)}const we=c[E];let Be=C,Je=k;for(Ge(c,C,E),q(c[k],we)>0&&Ge(c,C,k);Be<Je;){for(Ge(c,Be,Je),++Be,--Je;q(c[Be],we)<0;)++Be;for(;q(c[Je],we)>0;)--Je}q(c[C],we)===0?Ge(c,C,Je):(++Je,Ge(c,Je,k)),Je<=E&&(C=Je+1),E<=Je&&(k=Je-1)}return c}function Ge(c,E,C){const k=c[E];c[E]=c[C],c[C]=k}function st(c,E=i){let C,k=!1;if(E.length===1){let q;for(const we of c){const Be=E(we);(k?i(Be,q)>0:i(Be,Be)===0)&&(C=we,q=Be,k=!0)}}else for(const q of c)(k?E(q,C)>0:E(q,q)===0)&&(C=q,k=!0);return C}function Me(c,E,C){if(c=Float64Array.from(f(c,C)),!(!(k=c.length)||isNaN(E=+E))){if(E<=0||k<2)return We(c);if(E>=1)return ze(c);var k,q=(k-1)*E,we=Math.floor(q),Be=ze(ct(c,we).subarray(0,we+1)),Je=We(c.subarray(we+1));return Be+(Je-Be)*(q-we)}}function ie(c,E,C=u){if(!(!(k=c.length)||isNaN(E=+E))){if(E<=0||k<2)return+C(c[0],0,c);if(E>=1)return+C(c[k-1],k-1,c);var k,q=(k-1)*E,we=Math.floor(q),Be=+C(c[we],we,c),Je=+C(c[we+1],we+1,c);return Be+(Je-Be)*(q-we)}}function ge(c,E,C){if(c=Float64Array.from(f(c,C)),!(!(k=c.length)||isNaN(E=+E))){if(E<=0||k<2)return _t(c);if(E>=1)return qe(c);var k,q=Math.floor((k-1)*E),we=(Je,Et)=>ke(c[Je],c[Et]),Be=ct(Uint32Array.from(c,(Je,Et)=>Et),q,0,k-1,we);return st(Be.subarray(0,q+1),Je=>c[Je])}}function z(c,E,C){return Math.ceil((C-E)/(2*(Me(c,.75)-Me(c,.25))*Math.pow(A(c),-1/3)))}function be(c,E,C){return Math.ceil((C-E)*Math.cbrt(A(c))/(3.49*fe(c)))}function Qe(c,E){let C=0,k=0;if(E===void 0)for(let q of c)q!=null&&(q=+q)>=q&&(++C,k+=q);else{let q=-1;for(let we of c)(we=E(we,++q,c))!=null&&(we=+we)>=we&&(++C,k+=we)}if(C)return k/C}function Bt(c,E){return Me(c,.5,E)}function nn(c,E){return ge(c,.5,E)}function*bt(c){for(const E of c)yield*E}function at(c){return Array.from(bt(c))}function $t(c,E){const C=new H;if(E===void 0)for(let we of c)we!=null&&we>=we&&C.set(we,(C.get(we)||0)+1);else{let we=-1;for(let Be of c)(Be=E(Be,++we,c))!=null&&Be>=Be&&C.set(Be,(C.get(Be)||0)+1)}let k,q=0;for(const[we,Be]of C)Be>q&&(q=Be,k=we);return k}function On(c,E=Ct){const C=[];let k,q=!1;for(const we of c)q&&C.push(E(k,we)),k=we,q=!0;return C}function Ct(c,E){return[c,E]}function Zt(c,E,C){c=+c,E=+E,C=(q=arguments.length)<2?(E=c,c=0,1):q<3?1:+C;for(var k=-1,q=Math.max(0,Math.ceil((E-c)/C))|0,we=new Array(q);++k<q;)we[k]=c+k*C;return we}function Wn(c,E=i){if(typeof c[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let C=Array.from(c);const k=new Float64Array(C.length);E.length!==2&&(C=C.map(E),E=i);const q=(Je,Et)=>E(C[Je],C[Et]);let we,Be;return Uint32Array.from(C,(Je,Et)=>Et).sort(E===i?(Je,Et)=>ke(C[Je],C[Et]):le(q)).forEach((Je,Et)=>{const ot=q(Je,we===void 0?Je:we);ot>=0?((we===void 0||ot>0)&&(we=Je,Be=Et),k[Je]=Be):k[Je]=NaN}),k}function Zn(c,E=i){let C,k=!1;if(E.length===1){let q;for(const we of c){const Be=E(we);(k?i(Be,q)<0:i(Be,Be)===0)&&(C=we,q=Be,k=!0)}}else for(const q of c)(k?E(q,C)<0:E(q,q)===0)&&(C=q,k=!0);return C}function xt(c,E=i){if(E.length===1)return _t(c,E);let C,k=-1,q=-1;for(const we of c)++q,(k<0?E(we,we)===0:E(we,C)<0)&&(C=we,k=q);return k}function Xe(c,E=i){if(E.length===1)return qe(c,E);let C,k=-1,q=-1;for(const we of c)++q,(k<0?E(we,we)===0:E(we,C)>0)&&(C=we,k=q);return k}function gn(c,E){const C=xt(c,E);return C<0?void 0:C}const Qt=Dt(Math.random);function Dt(c){return function(C,k=0,q=C.length){let we=q-(k=+k);for(;we;){const Be=c()*we--|0,Je=C[we+k];C[we+k]=C[Be+k],C[Be+k]=Je}return C}}function hn(c,E){let C=0;if(E===void 0)for(let k of c)(k=+k)&&(C+=k);else{let k=-1;for(let q of c)(q=+E(q,++k,c))&&(C+=q)}return C}function cn(c){if(!(we=c.length))return[];for(var E=-1,C=We(c,an),k=new Array(C);++E<C;)for(var q=-1,we,Be=k[E]=new Array(we);++q<we;)Be[q]=c[q][E];return k}function an(c){return c.length}function Or(){return cn(arguments)}function Ln(c,E){if(typeof E!="function")throw new TypeError("test is not a function");let C=-1;for(const k of c)if(!E(k,++C,c))return!1;return!0}function En(c,E){if(typeof E!="function")throw new TypeError("test is not a function");let C=-1;for(const k of c)if(E(k,++C,c))return!0;return!1}function Gn(c,E){if(typeof E!="function")throw new TypeError("test is not a function");const C=[];let k=-1;for(const q of c)E(q,++k,c)&&C.push(q);return C}function rr(c,E){if(typeof c[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof E!="function")throw new TypeError("mapper is not a function");return Array.from(c,(C,k)=>E(C,k,c))}function sr(c,E,C){if(typeof E!="function")throw new TypeError("reducer is not a function");const k=c[Symbol.iterator]();let q,we,Be=-1;if(arguments.length<3){if({done:q,value:C}=k.next(),q)return;++Be}for(;{done:q,value:we}=k.next(),!q;)C=E(C,we,++Be,c);return C}function pi(c){if(typeof c[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(c).reverse()}function yi(c,...E){c=new V(c);for(const C of E)for(const k of C)c.delete(k);return c}function jr(c,E){const C=E[Symbol.iterator](),k=new V;for(const q of c){if(k.has(q))return!1;let we,Be;for(;({value:we,done:Be}=C.next())&&!Be;){if(Object.is(q,we))return!1;k.add(we)}}return!0}function ui(c,...E){c=new V(c),E=E.map(bi);e:for(const C of c)for(const k of E)if(!k.has(C)){c.delete(C);continue e}return c}function bi(c){return c instanceof V?c:new V(c)}function ri(c,E){const C=c[Symbol.iterator](),k=new Set;for(const q of E){const we=hi(q);if(k.has(we))continue;let Be,Je;for(;{value:Be,done:Je}=C.next();){if(Je)return!1;const Et=hi(Be);if(k.add(Et),Object.is(we,Et))break}}return!0}function hi(c){return c!==null&&typeof c=="object"?c.valueOf():c}function Si(c,E){return ri(E,c)}function Kr(...c){const E=new V;for(const C of c)for(const k of C)E.add(k);return E}function xi(c){return c}var Ai=1,Pi=2,io=3,lo=4,Gr=1e-6;function un(c){return"translate("+c+",0)"}function qn(c){return"translate(0,"+c+")"}function kn(c){return E=>+c(E)}function St(c,E){return E=Math.max(0,c.bandwidth()-E*2)/2,c.round()&&(E=Math.round(E)),C=>+c(C)+E}function ln(){return!this.__axis}function An(c,E){var C=[],k=null,q=null,we=6,Be=6,Je=3,Et=typeof window<"u"&&window.devicePixelRatio>1?0:.5,ot=c===Ai||c===lo?-1:1,It=c===lo||c===Pi?"x":"y",Jt=c===Ai||c===io?un:qn;function Nt(vn){var pr=k??(E.ticks?E.ticks.apply(E,C):E.domain()),$n=q??(E.tickFormat?E.tickFormat.apply(E,C):xi),Un=Math.max(we,0)+Je,lr=E.range(),Hr=+lr[0]+Et,Br=+lr[lr.length-1]+Et,Mr=(E.bandwidth?St:kn)(E.copy(),Et),Oi=vn.selection?vn.selection():vn,Yi=Oi.selectAll(".domain").data([null]),uo=Oi.selectAll(".tick").data(pr,E).order(),Io=uo.exit(),ua=uo.enter().append("g").attr("class","tick"),To=uo.select("line"),Lo=uo.select("text");Yi=Yi.merge(Yi.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),uo=uo.merge(ua),To=To.merge(ua.append("line").attr("stroke","currentColor").attr(It+"2",ot*we)),Lo=Lo.merge(ua.append("text").attr("fill","currentColor").attr(It,ot*Un).attr("dy",c===Ai?"0em":c===io?"0.71em":"0.32em")),vn!==Oi&&(Yi=Yi.transition(vn),uo=uo.transition(vn),To=To.transition(vn),Lo=Lo.transition(vn),Io=Io.transition(vn).attr("opacity",Gr).attr("transform",function(Ta){return isFinite(Ta=Mr(Ta))?Jt(Ta+Et):this.getAttribute("transform")}),ua.attr("opacity",Gr).attr("transform",function(Ta){var da=this.parentNode.__axis;return Jt((da&&isFinite(da=da(Ta))?da:Mr(Ta))+Et)})),Io.remove(),Yi.attr("d",c===lo||c===Pi?Be?"M"+ot*Be+","+Hr+"H"+Et+"V"+Br+"H"+ot*Be:"M"+Et+","+Hr+"V"+Br:Be?"M"+Hr+","+ot*Be+"V"+Et+"H"+Br+"V"+ot*Be:"M"+Hr+","+Et+"H"+Br),uo.attr("opacity",1).attr("transform",function(Ta){return Jt(Mr(Ta)+Et)}),To.attr(It+"2",ot*we),Lo.attr(It,ot*Un).text($n),Oi.filter(ln).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",c===Pi?"start":c===lo?"end":"middle"),Oi.each(function(){this.__axis=Mr})}return Nt.scale=function(vn){return arguments.length?(E=vn,Nt):E},Nt.ticks=function(){return C=Array.from(arguments),Nt},Nt.tickArguments=function(vn){return arguments.length?(C=vn==null?[]:Array.from(vn),Nt):C.slice()},Nt.tickValues=function(vn){return arguments.length?(k=vn==null?null:Array.from(vn),Nt):k&&k.slice()},Nt.tickFormat=function(vn){return arguments.length?(q=vn,Nt):q},Nt.tickSize=function(vn){return arguments.length?(we=Be=+vn,Nt):we},Nt.tickSizeInner=function(vn){return arguments.length?(we=+vn,Nt):we},Nt.tickSizeOuter=function(vn){return arguments.length?(Be=+vn,Nt):Be},Nt.tickPadding=function(vn){return arguments.length?(Je=+vn,Nt):Je},Nt.offset=function(vn){return arguments.length?(Et=+vn,Nt):Et},Nt}function Cr(c){return An(Ai,c)}function _i(c){return An(Pi,c)}function Sn(c){return An(io,c)}function ir(c){return An(lo,c)}var mt={value:()=>{}};function fn(){for(var c=0,E=arguments.length,C={},k;c<E;++c){if(!(k=arguments[c]+"")||k in C||/[\s.]/.test(k))throw new Error("illegal type: "+k);C[k]=[]}return new gt(C)}function gt(c){this._=c}function tn(c,E){return c.trim().split(/^|\s+/).map(function(C){var k="",q=C.indexOf(".");if(q>=0&&(k=C.slice(q+1),C=C.slice(0,q)),C&&!E.hasOwnProperty(C))throw new Error("unknown type: "+C);return{type:C,name:k}})}gt.prototype=fn.prototype={constructor:gt,on:function(c,E){var C=this._,k=tn(c+"",C),q,we=-1,Be=k.length;if(arguments.length<2){for(;++we<Be;)if((q=(c=k[we]).type)&&(q=Vn(C[q],c.name)))return q;return}if(E!=null&&typeof E!="function")throw new Error("invalid callback: "+E);for(;++we<Be;)if(q=(c=k[we]).type)C[q]=Ur(C[q],c.name,E);else if(E==null)for(q in C)C[q]=Ur(C[q],c.name,null);return this},copy:function(){var c={},E=this._;for(var C in E)c[C]=E[C].slice();return new gt(c)},call:function(c,E){if((q=arguments.length-2)>0)for(var C=new Array(q),k=0,q,we;k<q;++k)C[k]=arguments[k+2];if(!this._.hasOwnProperty(c))throw new Error("unknown type: "+c);for(we=this._[c],k=0,q=we.length;k<q;++k)we[k].value.apply(E,C)},apply:function(c,E,C){if(!this._.hasOwnProperty(c))throw new Error("unknown type: "+c);for(var k=this._[c],q=0,we=k.length;q<we;++q)k[q].value.apply(E,C)}};function Vn(c,E){for(var C=0,k=c.length,q;C<k;++C)if((q=c[C]).name===E)return q.value}function Ur(c,E,C){for(var k=0,q=c.length;k<q;++k)if(c[k].name===E){c[k]=mt,c=c.slice(0,k).concat(c.slice(k+1));break}return C!=null&&c.push({name:E,value:C}),c}const $r=fn;function Pr(){}function zr(c){return c==null?Pr:function(){return this.querySelector(c)}}function gi(c){typeof c!="function"&&(c=zr(c));for(var E=this._groups,C=E.length,k=new Array(C),q=0;q<C;++q)for(var we=E[q],Be=we.length,Je=k[q]=new Array(Be),Et,ot,It=0;It<Be;++It)(Et=we[It])&&(ot=c.call(Et,Et.__data__,It,we))&&("__data__"in Et&&(ot.__data__=Et.__data__),Je[It]=ot);return new Xi(k,this._parents)}function $i(c){return c==null?[]:Array.isArray(c)?c:Array.from(c)}function eo(){return[]}function ki(c){return c==null?eo:function(){return this.querySelectorAll(c)}}function so(c){return function(){return $i(c.apply(this,arguments))}}function Ho(c){typeof c=="function"?c=so(c):c=ki(c);for(var E=this._groups,C=E.length,k=[],q=[],we=0;we<C;++we)for(var Be=E[we],Je=Be.length,Et,ot=0;ot<Je;++ot)(Et=Be[ot])&&(k.push(c.call(Et,Et.__data__,ot,Be)),q.push(Et));return new Xi(k,q)}function ra(c){return function(){return this.matches(c)}}function So(c){return function(E){return E.matches(c)}}var gr=Array.prototype.find;function di(c){return function(){return gr.call(this.children,c)}}function Vi(){return this.firstElementChild}function Ro(c){return this.select(c==null?Vi:di(typeof c=="function"?c:So(c)))}var na=Array.prototype.filter;function ta(){return Array.from(this.children)}function aa(c){return function(){return na.call(this.children,c)}}function vi(c){return this.selectAll(c==null?ta:aa(typeof c=="function"?c:So(c)))}function to(c){typeof c!="function"&&(c=ra(c));for(var E=this._groups,C=E.length,k=new Array(C),q=0;q<C;++q)for(var we=E[q],Be=we.length,Je=k[q]=[],Et,ot=0;ot<Be;++ot)(Et=we[ot])&&c.call(Et,Et.__data__,ot,we)&&Je.push(Et);return new Xi(k,this._parents)}function $o(c){return new Array(c.length)}function ja(){return new Xi(this._enter||this._groups.map($o),this._parents)}function hs(c,E){this.ownerDocument=c.ownerDocument,this.namespaceURI=c.namespaceURI,this._next=null,this._parent=c,this.__data__=E}hs.prototype={constructor:hs,appendChild:function(c){return this._parent.insertBefore(c,this._next)},insertBefore:function(c,E){return this._parent.insertBefore(c,E)},querySelector:function(c){return this._parent.querySelector(c)},querySelectorAll:function(c){return this._parent.querySelectorAll(c)}};function ro(c){return function(){return c}}function as(c,E,C,k,q,we){for(var Be=0,Je,Et=E.length,ot=we.length;Be<ot;++Be)(Je=E[Be])?(Je.__data__=we[Be],k[Be]=Je):C[Be]=new hs(c,we[Be]);for(;Be<Et;++Be)(Je=E[Be])&&(q[Be]=Je)}function rn(c,E,C,k,q,we,Be){var Je,Et,ot=new Map,It=E.length,Jt=we.length,Nt=new Array(It),vn;for(Je=0;Je<It;++Je)(Et=E[Je])&&(Nt[Je]=vn=Be.call(Et,Et.__data__,Je,E)+"",ot.has(vn)?q[Je]=Et:ot.set(vn,Et));for(Je=0;Je<Jt;++Je)vn=Be.call(c,we[Je],Je,we)+"",(Et=ot.get(vn))?(k[Je]=Et,Et.__data__=we[Je],ot.delete(vn)):C[Je]=new hs(c,we[Je]);for(Je=0;Je<It;++Je)(Et=E[Je])&&ot.get(Nt[Je])===Et&&(q[Je]=Et)}function Dr(c){return c.__data__}function Lr(c,E){if(!arguments.length)return Array.from(this,Dr);var C=E?rn:as,k=this._parents,q=this._groups;typeof c!="function"&&(c=ro(c));for(var we=q.length,Be=new Array(we),Je=new Array(we),Et=new Array(we),ot=0;ot<we;++ot){var It=k[ot],Jt=q[ot],Nt=Jt.length,vn=li(c.call(It,It&&It.__data__,ot,k)),pr=vn.length,$n=Je[ot]=new Array(pr),Un=Be[ot]=new Array(pr),lr=Et[ot]=new Array(Nt);C(It,Jt,$n,Un,lr,vn,E);for(var Hr=0,Br=0,Mr,Oi;Hr<pr;++Hr)if(Mr=$n[Hr]){for(Hr>=Br&&(Br=Hr+1);!(Oi=Un[Br])&&++Br<pr;);Mr._next=Oi||null}}return Be=new Xi(Be,k),Be._enter=Je,Be._exit=Et,Be}function li(c){return typeof c=="object"&&"length"in c?c:Array.from(c)}function Zi(){return new Xi(this._exit||this._groups.map($o),this._parents)}function Di(c,E,C){var k=this.enter(),q=this,we=this.exit();return typeof c=="function"?(k=c(k),k&&(k=k.selection())):k=k.append(c+""),E!=null&&(q=E(q),q&&(q=q.selection())),C==null?we.remove():C(we),k&&q?k.merge(q).order():q}function wo(c){for(var E=c.selection?c.selection():c,C=this._groups,k=E._groups,q=C.length,we=k.length,Be=Math.min(q,we),Je=new Array(q),Et=0;Et<Be;++Et)for(var ot=C[Et],It=k[Et],Jt=ot.length,Nt=Je[Et]=new Array(Jt),vn,pr=0;pr<Jt;++pr)(vn=ot[pr]||It[pr])&&(Nt[pr]=vn);for(;Et<q;++Et)Je[Et]=C[Et];return new Xi(Je,this._parents)}function Go(){for(var c=this._groups,E=-1,C=c.length;++E<C;)for(var k=c[E],q=k.length-1,we=k[q],Be;--q>=0;)(Be=k[q])&&(we&&Be.compareDocumentPosition(we)^4&&we.parentNode.insertBefore(Be,we),we=Be);return this}function Ko(c){c||(c=Ie);function E(Jt,Nt){return Jt&&Nt?c(Jt.__data__,Nt.__data__):!Jt-!Nt}for(var C=this._groups,k=C.length,q=new Array(k),we=0;we<k;++we){for(var Be=C[we],Je=Be.length,Et=q[we]=new Array(Je),ot,It=0;It<Je;++It)(ot=Be[It])&&(Et[It]=ot);Et.sort(E)}return new Xi(q,this._parents).order()}function Ie(c,E){return c<E?-1:c>E?1:c>=E?0:NaN}function yt(){var c=arguments[0];return arguments[0]=this,c.apply(null,arguments),this}function on(){return Array.from(this)}function _n(){for(var c=this._groups,E=0,C=c.length;E<C;++E)for(var k=c[E],q=0,we=k.length;q<we;++q){var Be=k[q];if(Be)return Be}return null}function er(){let c=0;for(const E of this)++c;return c}function or(){return!this.node()}function Er(c){for(var E=this._groups,C=0,k=E.length;C<k;++C)for(var q=E[C],we=0,Be=q.length,Je;we<Be;++we)(Je=q[we])&&c.call(Je,Je.__data__,we,q);return this}var Mi="http://www.w3.org/1999/xhtml";const Ui={svg:"http://www.w3.org/2000/svg",xhtml:Mi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nn(c){var E=c+="",C=E.indexOf(":");return C>=0&&(E=c.slice(0,C))!=="xmlns"&&(c=c.slice(C+1)),Ui.hasOwnProperty(E)?{space:Ui[E],local:c}:c}function cr(c){return function(){this.removeAttribute(c)}}function ni(c){return function(){this.removeAttributeNS(c.space,c.local)}}function Xr(c,E){return function(){this.setAttribute(c,E)}}function Jr(c,E){return function(){this.setAttributeNS(c.space,c.local,E)}}function Qi(c,E){return function(){var C=E.apply(this,arguments);C==null?this.removeAttribute(c):this.setAttribute(c,C)}}function Fo(c,E){return function(){var C=E.apply(this,arguments);C==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,C)}}function No(c,E){var C=Nn(c);if(arguments.length<2){var k=this.node();return C.local?k.getAttributeNS(C.space,C.local):k.getAttribute(C)}return this.each((E==null?C.local?ni:cr:typeof E=="function"?C.local?Fo:Qi:C.local?Jr:Xr)(C,E))}function Jo(c){return c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView}function br(c){return function(){this.style.removeProperty(c)}}function Yn(c,E,C){return function(){this.style.setProperty(c,E,C)}}function Z(c,E,C){return function(){var k=E.apply(this,arguments);k==null?this.style.removeProperty(c):this.style.setProperty(c,k,C)}}function se(c,E,C){return arguments.length>1?this.each((E==null?br:typeof E=="function"?Z:Yn)(c,E,C??"")):G(this.node(),c)}function G(c,E){return c.style.getPropertyValue(E)||Jo(c).getComputedStyle(c,null).getPropertyValue(E)}function B(c){return function(){delete this[c]}}function Pe(c,E){return function(){this[c]=E}}function dt(c,E){return function(){var C=E.apply(this,arguments);C==null?delete this[c]:this[c]=C}}function Lt(c,E){return arguments.length>1?this.each((E==null?B:typeof E=="function"?dt:Pe)(c,E)):this.node()[c]}function Pt(c){return c.trim().split(/^|\s+/)}function $e(c){return c.classList||new ut(c)}function ut(c){this._node=c,this._names=Pt(c.getAttribute("class")||"")}ut.prototype={add:function(c){var E=this._names.indexOf(c);E<0&&(this._names.push(c),this._node.setAttribute("class",this._names.join(" ")))},remove:function(c){var E=this._names.indexOf(c);E>=0&&(this._names.splice(E,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(c){return this._names.indexOf(c)>=0}};function zt(c,E){for(var C=$e(c),k=-1,q=E.length;++k<q;)C.add(E[k])}function Ht(c,E){for(var C=$e(c),k=-1,q=E.length;++k<q;)C.remove(E[k])}function Fn(c){return function(){zt(this,c)}}function Cn(c){return function(){Ht(this,c)}}function tr(c,E){return function(){(E.apply(this,arguments)?zt:Ht)(this,c)}}function Jn(c,E){var C=Pt(c+"");if(arguments.length<2){for(var k=$e(this.node()),q=-1,we=C.length;++q<we;)if(!k.contains(C[q]))return!1;return!0}return this.each((typeof E=="function"?tr:E?Fn:Cn)(C,E))}function ei(){this.textContent=""}function Ci(c){return function(){this.textContent=c}}function zi(c){return function(){var E=c.apply(this,arguments);this.textContent=E??""}}function co(c){return arguments.length?this.each(c==null?ei:(typeof c=="function"?zi:Ci)(c)):this.node().textContent}function Xo(){this.innerHTML=""}function Eo(c){return function(){this.innerHTML=c}}function Yo(c){return function(){var E=c.apply(this,arguments);this.innerHTML=E??""}}function Xn(c){return arguments.length?this.each(c==null?Xo:(typeof c=="function"?Yo:Eo)(c)):this.node().innerHTML}function fr(){this.nextSibling&&this.parentNode.appendChild(this)}function mr(){return this.each(fr)}function yr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rr(){return this.each(yr)}function ai(c){return function(){var E=this.ownerDocument,C=this.namespaceURI;return C===Mi&&E.documentElement.namespaceURI===Mi?E.createElement(c):E.createElementNS(C,c)}}function jt(c){return function(){return this.ownerDocument.createElementNS(c.space,c.local)}}function Pn(c){var E=Nn(c);return(E.local?jt:ai)(E)}function nr(c){var E=typeof c=="function"?c:Pn(c);return this.select(function(){return this.appendChild(E.apply(this,arguments))})}function Ir(){return null}function fi(c,E){var C=typeof c=="function"?c:Pn(c),k=E==null?Ir:typeof E=="function"?E:zr(E);return this.select(function(){return this.insertBefore(C.apply(this,arguments),k.apply(this,arguments)||null)})}function Ti(){var c=this.parentNode;c&&c.removeChild(this)}function Oe(){return this.each(Ti)}function pn(){var c=this.cloneNode(!1),E=this.parentNode;return E?E.insertBefore(c,this.nextSibling):c}function Qn(){var c=this.cloneNode(!0),E=this.parentNode;return E?E.insertBefore(c,this.nextSibling):c}function Sr(c){return this.select(c?Qn:pn)}function hr(c){return arguments.length?this.property("__data__",c):this.node().__data__}function kr(c){return function(E){c.call(this,E,this.__data__)}}function Ve(c){return c.trim().split(/^|\s+/).map(function(E){var C="",k=E.indexOf(".");return k>=0&&(C=E.slice(k+1),E=E.slice(0,k)),{type:E,name:C}})}function Ot(c){return function(){var E=this.__on;if(E){for(var C=0,k=-1,q=E.length,we;C<q;++C)we=E[C],(!c.type||we.type===c.type)&&we.name===c.name?this.removeEventListener(we.type,we.listener,we.options):E[++k]=we;++k?E.length=k:delete this.__on}}}function wn(c,E,C){return function(){var k=this.__on,q,we=kr(E);if(k){for(var Be=0,Je=k.length;Be<Je;++Be)if((q=k[Be]).type===c.type&&q.name===c.name){this.removeEventListener(q.type,q.listener,q.options),this.addEventListener(q.type,q.listener=we,q.options=C),q.value=E;return}}this.addEventListener(c.type,we,C),q={type:c.type,name:c.name,value:E,listener:we,options:C},k?k.push(q):this.__on=[q]}}function Wt(c,E,C){var k=Ve(c+""),q,we=k.length,Be;if(arguments.length<2){var Je=this.node().__on;if(Je){for(var Et=0,ot=Je.length,It;Et<ot;++Et)for(q=0,It=Je[Et];q<we;++q)if((Be=k[q]).type===It.type&&Be.name===It.name)return It.value}return}for(Je=E?wn:Ot,q=0;q<we;++q)this.each(Je(k[q],E,C));return this}function Yt(c,E,C){var k=Jo(c),q=k.CustomEvent;typeof q=="function"?q=new q(E,C):(q=k.document.createEvent("Event"),C?(q.initEvent(E,C.bubbles,C.cancelable),q.detail=C.detail):q.initEvent(E,!1,!1)),c.dispatchEvent(q)}function zn(c,E){return function(){return Yt(this,c,E)}}function Nr(c,E){return function(){return Yt(this,c,E.apply(this,arguments))}}function si(c,E){return this.each((typeof E=="function"?Nr:zn)(c,E))}function*Ki(){for(var c=this._groups,E=0,C=c.length;E<C;++E)for(var k=c[E],q=0,we=k.length,Be;q<we;++q)(Be=k[q])&&(yield Be)}var Bi=[null];function Xi(c,E){this._groups=c,this._parents=E}function vo(){return new Xi([[document.documentElement]],Bi)}function ea(){return this}Xi.prototype=vo.prototype={constructor:Xi,select:gi,selectAll:Ho,selectChild:Ro,selectChildren:vi,filter:to,data:Lr,enter:ja,exit:Zi,join:Di,merge:wo,selection:ea,order:Go,sort:Ko,call:yt,nodes:on,node:_n,size:er,empty:or,each:Er,attr:No,style:se,property:Lt,classed:Jn,text:co,html:Xn,raise:mr,lower:Rr,append:nr,insert:fi,remove:Oe,clone:Sr,datum:hr,on:Wt,dispatch:si,[Symbol.iterator]:Ki};const la=vo;function ss(c){return typeof c=="string"?new Xi([[document.querySelector(c)]],[document.documentElement]):new Xi([[c]],Bi)}const Rs={passive:!1},Ds={capture:!0,passive:!1};function Is(c){c.stopImmediatePropagation()}function nu(c){c.preventDefault(),c.stopImmediatePropagation()}function Ls(c){var E=c.document.documentElement,C=ss(c).on("dragstart.drag",nu,Ds);"onselectstart"in E?C.on("selectstart.drag",nu,Ds):(E.__noselect=E.style.MozUserSelect,E.style.MozUserSelect="none")}function gu(c,E){var C=c.document.documentElement,k=ss(c).on("dragstart.drag",null);E&&(k.on("click.drag",nu,Ds),setTimeout(function(){k.on("click.drag",null)},0)),"onselectstart"in C?k.on("selectstart.drag",null):(C.style.MozUserSelect=C.__noselect,delete C.__noselect)}var Us=t(46957),Iu=t(21197);function Wu(c,E){E||(E=[]);var C=c?Math.min(E.length,c.length):0,k=E.slice(),q;return function(we){for(q=0;q<C;++q)k[q]=c[q]*(1-we)+E[q]*we;return k}}function rl(c){return ArrayBuffer.isView(c)&&!(c instanceof DataView)}function Hu(c,E){return(rl(E)?Wu:Ts)(c,E)}function Ts(c,E){var C=E?E.length:0,k=c?Math.min(C,c.length):0,q=new Array(k),we=new Array(C),Be;for(Be=0;Be<k;++Be)q[Be]=Kn(c[Be],E[Be]);for(;Be<C;++Be)we[Be]=E[Be];return function(Je){for(Be=0;Be<k;++Be)we[Be]=q[Be](Je);return we}}function Al(c,E){var C=new Date;return c=+c,E=+E,function(k){return C.setTime(c*(1-k)+E*k),C}}function fl(c,E){return c=+c,E=+E,function(C){return c*(1-C)+E*C}}function Rl(c,E){var C={},k={},q;(c===null||typeof c!="object")&&(c={}),(E===null||typeof E!="object")&&(E={});for(q in E)q in c?C[q]=Kn(c[q],E[q]):k[q]=E[q];return function(we){for(q in C)k[q]=C[q](we);return k}}var Bu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mn=new RegExp(Bu.source,"g");function en(c){return function(){return c}}function sn(c){return function(E){return c(E)+""}}function qt(c,E){var C=Bu.lastIndex=Mn.lastIndex=0,k,q,we,Be=-1,Je=[],Et=[];for(c=c+"",E=E+"";(k=Bu.exec(c))&&(q=Mn.exec(E));)(we=q.index)>C&&(we=E.slice(C,we),Je[Be]?Je[Be]+=we:Je[++Be]=we),(k=k[0])===(q=q[0])?Je[Be]?Je[Be]+=q:Je[++Be]=q:(Je[++Be]=null,Et.push({i:Be,x:fl(k,q)})),C=Mn.lastIndex;return C<E.length&&(we=E.slice(C),Je[Be]?Je[Be]+=we:Je[++Be]=we),Je.length<2?Et[0]?sn(Et[0].x):en(E):(E=Et.length,function(ot){for(var It=0,Jt;It<E;++It)Je[(Jt=Et[It]).i]=Jt.x(ot);return Je.join("")})}var In=t(3116);function Kn(c,E){var C=typeof E,k;return E==null||C==="boolean"?(0,In.A)(E):(C==="number"?fl:C==="string"?(k=(0,Us.Ay)(E))?(E=k,Iu.Ay):qt:E instanceof Us.Ay?Iu.Ay:E instanceof Date?Al:rl(E)?Wu:Array.isArray(E)?Ts:typeof E.valueOf!="function"&&typeof E.toString!="function"||isNaN(E)?Rl:fl)(c,E)}function Fr(c){let E;for(;E=c.sourceEvent;)c=E;return c}function ci(c,E){if(c=Fr(c),E===void 0&&(E=c.currentTarget),E){var C=E.ownerSVGElement||E;if(C.createSVGPoint){var k=C.createSVGPoint();return k.x=c.clientX,k.y=c.clientY,k=k.matrixTransform(E.getScreenCTM().inverse()),[k.x,k.y]}if(E.getBoundingClientRect){var q=E.getBoundingClientRect();return[c.clientX-q.left-E.clientLeft,c.clientY-q.top-E.clientTop]}}return[c.pageX,c.pageY]}var Le=0,te=0,Ue=0,rt=1e3,ht,Gt,xn=0,Hn=0,wr=0,Wr=typeof performance=="object"&&performance.now?performance:Date,vt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(c){setTimeout(c,17)};function Vt(){return Hn||(vt(dn),Hn=Wr.now()+wr)}function dn(){Hn=0}function yn(){this._call=this._time=this._next=null}yn.prototype=ar.prototype={constructor:yn,restart:function(c,E,C){if(typeof c!="function")throw new TypeError("callback is not a function");C=(C==null?Vt():+C)+(E==null?0:+E),!this._next&&Gt!==this&&(Gt?Gt._next=this:ht=this,Gt=this),this._call=c,this._time=C,Mo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mo())}};function ar(c,E,C){var k=new yn;return k.restart(c,E,C),k}function wi(){Vt(),++Le;for(var c=ht,E;c;)(E=Hn-c._time)>=0&&c._call.call(void 0,E),c=c._next;--Le}function mi(){Hn=(xn=Wr.now())+wr,Le=te=0;try{wi()}finally{Le=0,Ao(),Hn=0}}function ho(){var c=Wr.now(),E=c-xn;E>rt&&(wr-=E,xn=c)}function Ao(){for(var c,E=ht,C,k=1/0;E;)E._call?(k>E._time&&(k=E._time),c=E,E=E._next):(C=E._next,E._next=null,E=c?c._next=C:ht=C);Gt=c,Mo(k)}function Mo(c){if(!Le){te&&(te=clearTimeout(te));var E=c-Hn;E>24?(c<1/0&&(te=setTimeout(mi,c-Wr.now()-wr)),Ue&&(Ue=clearInterval(Ue))):(Ue||(xn=Wr.now(),Ue=setInterval(ho,rt)),Le=1,vt(mi))}}function bo(c,E,C){var k=new yn;return E=E==null?0:+E,k.restart(q=>{k.stop(),c(q+E)},E,C),k}var ca=$r("start","end","cancel","interrupt"),sa=[],Da=0,La=1,Ja=2,Ya=3,Aa=4,ba=5,Ka=6;function us(c,E,C,k,q,we){var Be=c.__transition;if(!Be)c.__transition={};else if(C in Be)return;_a(c,C,{name:E,index:k,group:q,on:ca,tween:sa,time:we.time,delay:we.delay,duration:we.duration,ease:we.ease,timer:null,state:Da})}function ii(c,E){var C=Ra(c,E);if(C.state>Da)throw new Error("too late; already scheduled");return C}function Wo(c,E){var C=Ra(c,E);if(C.state>Ya)throw new Error("too late; already running");return C}function Ra(c,E){var C=c.__transition;if(!C||!(C=C[E]))throw new Error("transition not found");return C}function _a(c,E,C){var k=c.__transition,q;k[E]=C,C.timer=ar(we,0,C.time);function we(ot){C.state=La,C.timer.restart(Be,C.delay,C.time),C.delay<=ot&&Be(ot-C.delay)}function Be(ot){var It,Jt,Nt,vn;if(C.state!==La)return Et();for(It in k)if(vn=k[It],vn.name===C.name){if(vn.state===Ya)return bo(Be);vn.state===Aa?(vn.state=Ka,vn.timer.stop(),vn.on.call("interrupt",c,c.__data__,vn.index,vn.group),delete k[It]):+It<E&&(vn.state=Ka,vn.timer.stop(),vn.on.call("cancel",c,c.__data__,vn.index,vn.group),delete k[It])}if(bo(function(){C.state===Ya&&(C.state=Aa,C.timer.restart(Je,C.delay,C.time),Je(ot))}),C.state=Ja,C.on.call("start",c,c.__data__,C.index,C.group),C.state===Ja){for(C.state=Ya,q=new Array(Nt=C.tween.length),It=0,Jt=-1;It<Nt;++It)(vn=C.tween[It].value.call(c,c.__data__,C.index,C.group))&&(q[++Jt]=vn);q.length=Jt+1}}function Je(ot){for(var It=ot<C.duration?C.ease.call(null,ot/C.duration):(C.timer.restart(Et),C.state=ba,1),Jt=-1,Nt=q.length;++Jt<Nt;)q[Jt].call(c,It);C.state===ba&&(C.on.call("end",c,c.__data__,C.index,C.group),Et())}function Et(){C.state=Ka,C.timer.stop(),delete k[E];for(var ot in k)return;delete c.__transition}}function Wa(c,E){var C=c.__transition,k,q,we=!0,Be;if(C){E=E==null?null:E+"";for(Be in C){if((k=C[Be]).name!==E){we=!1;continue}q=k.state>Ja&&k.state<ba,k.state=Ka,k.timer.stop(),k.on.call(q?"interrupt":"cancel",c,c.__data__,k.index,k.group),delete C[Be]}we&&delete c.__transition}}function eu(c){return this.each(function(){Wa(this,c)})}var Ws=180/Math.PI,Ne={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kt(c,E,C,k,q,we){var Be,Je,Et;return(Be=Math.sqrt(c*c+E*E))&&(c/=Be,E/=Be),(Et=c*C+E*k)&&(C-=c*Et,k-=E*Et),(Je=Math.sqrt(C*C+k*k))&&(C/=Je,k/=Je,Et/=Je),c*k<E*C&&(c=-c,E=-E,Et=-Et,Be=-Be),{translateX:q,translateY:we,rotate:Math.atan2(E,c)*Ws,skewX:Math.atan(Et)*Ws,scaleX:Be,scaleY:Je}}var Rn;function jn(c){const E=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(c+"");return E.isIdentity?Ne:kt(E.a,E.b,E.c,E.d,E.e,E.f)}function _r(c){return c==null||(Rn||(Rn=document.createElementNS("http://www.w3.org/2000/svg","g")),Rn.setAttribute("transform",c),!(c=Rn.transform.baseVal.consolidate()))?Ne:(c=c.matrix,kt(c.a,c.b,c.c,c.d,c.e,c.f))}function xr(c,E,C,k){function q(ot){return ot.length?ot.pop()+" ":""}function we(ot,It,Jt,Nt,vn,pr){if(ot!==Jt||It!==Nt){var $n=vn.push("translate(",null,E,null,C);pr.push({i:$n-4,x:fl(ot,Jt)},{i:$n-2,x:fl(It,Nt)})}else(Jt||Nt)&&vn.push("translate("+Jt+E+Nt+C)}function Be(ot,It,Jt,Nt){ot!==It?(ot-It>180?It+=360:It-ot>180&&(ot+=360),Nt.push({i:Jt.push(q(Jt)+"rotate(",null,k)-2,x:fl(ot,It)})):It&&Jt.push(q(Jt)+"rotate("+It+k)}function Je(ot,It,Jt,Nt){ot!==It?Nt.push({i:Jt.push(q(Jt)+"skewX(",null,k)-2,x:fl(ot,It)}):It&&Jt.push(q(Jt)+"skewX("+It+k)}function Et(ot,It,Jt,Nt,vn,pr){if(ot!==Jt||It!==Nt){var $n=vn.push(q(vn)+"scale(",null,",",null,")");pr.push({i:$n-4,x:fl(ot,Jt)},{i:$n-2,x:fl(It,Nt)})}else(Jt!==1||Nt!==1)&&vn.push(q(vn)+"scale("+Jt+","+Nt+")")}return function(ot,It){var Jt=[],Nt=[];return ot=c(ot),It=c(It),we(ot.translateX,ot.translateY,It.translateX,It.translateY,Jt,Nt),Be(ot.rotate,It.rotate,Jt,Nt),Je(ot.skewX,It.skewX,Jt,Nt),Et(ot.scaleX,ot.scaleY,It.scaleX,It.scaleY,Jt,Nt),ot=It=null,function(vn){for(var pr=-1,$n=Nt.length,Un;++pr<$n;)Jt[(Un=Nt[pr]).i]=Un.x(vn);return Jt.join("")}}}var oi=xr(jn,"px, ","px)","deg)"),ti=xr(_r,", ",")",")");function Ri(c,E){var C,k;return function(){var q=Wo(this,c),we=q.tween;if(we!==C){k=C=we;for(var Be=0,Je=k.length;Be<Je;++Be)if(k[Be].name===E){k=k.slice(),k.splice(Be,1);break}}q.tween=k}}function Fi(c,E,C){var k,q;if(typeof C!="function")throw new Error;return function(){var we=Wo(this,c),Be=we.tween;if(Be!==k){q=(k=Be).slice();for(var Je={name:E,value:C},Et=0,ot=q.length;Et<ot;++Et)if(q[Et].name===E){q[Et]=Je;break}Et===ot&&q.push(Je)}we.tween=q}}function Gi(c,E){var C=this._id;if(c+="",arguments.length<2){for(var k=Ra(this.node(),C).tween,q=0,we=k.length,Be;q<we;++q)if((Be=k[q]).name===c)return Be.value;return null}return this.each((E==null?Ri:Fi)(C,c,E))}function yo(c,E,C){var k=c._id;return c.each(function(){var q=Wo(this,k);(q.value||(q.value={}))[E]=C.apply(this,arguments)}),function(q){return Ra(q,k).value[E]}}function Do(c,E){var C;return(typeof E=="number"?fl:E instanceof Us.Ay?Iu.Ay:(C=(0,Us.Ay)(E))?(E=C,Iu.Ay):qt)(c,E)}function po(c){return function(){this.removeAttribute(c)}}function Ji(c){return function(){this.removeAttributeNS(c.space,c.local)}}function Uo(c,E,C){var k,q=C+"",we;return function(){var Be=this.getAttribute(c);return Be===q?null:Be===k?we:we=E(k=Be,C)}}function Ia(c,E,C){var k,q=C+"",we;return function(){var Be=this.getAttributeNS(c.space,c.local);return Be===q?null:Be===k?we:we=E(k=Be,C)}}function za(c,E,C){var k,q,we;return function(){var Be,Je=C(this),Et;return Je==null?void this.removeAttribute(c):(Be=this.getAttribute(c),Et=Je+"",Be===Et?null:Be===k&&Et===q?we:(q=Et,we=E(k=Be,Je)))}}function Ma(c,E,C){var k,q,we;return function(){var Be,Je=C(this),Et;return Je==null?void this.removeAttributeNS(c.space,c.local):(Be=this.getAttributeNS(c.space,c.local),Et=Je+"",Be===Et?null:Be===k&&Et===q?we:(q=Et,we=E(k=Be,Je)))}}function xo(c,E){var C=Nn(c),k=C==="transform"?ti:Do;return this.attrTween(c,typeof E=="function"?(C.local?Ma:za)(C,k,yo(this,"attr."+c,E)):E==null?(C.local?Ji:po)(C):(C.local?Ia:Uo)(C,k,E))}function xs(c,E){return function(C){this.setAttribute(c,E.call(this,C))}}function va(c,E){return function(C){this.setAttributeNS(c.space,c.local,E.call(this,C))}}function Pa(c,E){var C,k;function q(){var we=E.apply(this,arguments);return we!==k&&(C=(k=we)&&va(c,we)),C}return q._value=E,q}function Na(c,E){var C,k;function q(){var we=E.apply(this,arguments);return we!==k&&(C=(k=we)&&xs(c,we)),C}return q._value=E,q}function Xa(c,E){var C="attr."+c;if(arguments.length<2)return(C=this.tween(C))&&C._value;if(E==null)return this.tween(C,null);if(typeof E!="function")throw new Error;var k=Nn(c);return this.tween(C,(k.local?Pa:Na)(k,E))}function wa(c,E){return function(){ii(this,c).delay=+E.apply(this,arguments)}}function Ga(c,E){return E=+E,function(){ii(this,c).delay=E}}function vs(c){var E=this._id;return arguments.length?this.each((typeof c=="function"?wa:Ga)(E,c)):Ra(this.node(),E).delay}function Za(c,E){return function(){Wo(this,c).duration=+E.apply(this,arguments)}}function $a(c,E){return E=+E,function(){Wo(this,c).duration=E}}function ns(c){var E=this._id;return arguments.length?this.each((typeof c=="function"?Za:$a)(E,c)):Ra(this.node(),E).duration}function uu(c,E){if(typeof E!="function")throw new Error;return function(){Wo(this,c).ease=E}}function Mu(c){var E=this._id;return arguments.length?this.each(uu(E,c)):Ra(this.node(),E).ease}function Lu(c,E){return function(){var C=E.apply(this,arguments);if(typeof C!="function")throw new Error;Wo(this,c).ease=C}}function ju(c){if(typeof c!="function")throw new Error;return this.each(Lu(this._id,c))}function pl(c){typeof c!="function"&&(c=ra(c));for(var E=this._groups,C=E.length,k=new Array(C),q=0;q<C;++q)for(var we=E[q],Be=we.length,Je=k[q]=[],Et,ot=0;ot<Be;++ot)(Et=we[ot])&&c.call(Et,Et.__data__,ot,we)&&Je.push(Et);return new Ua(k,this._parents,this._name,this._id)}function pu(c){if(c._id!==this._id)throw new Error;for(var E=this._groups,C=c._groups,k=E.length,q=C.length,we=Math.min(k,q),Be=new Array(k),Je=0;Je<we;++Je)for(var Et=E[Je],ot=C[Je],It=Et.length,Jt=Be[Je]=new Array(It),Nt,vn=0;vn<It;++vn)(Nt=Et[vn]||ot[vn])&&(Jt[vn]=Nt);for(;Je<k;++Je)Be[Je]=E[Je];return new Ua(Be,this._parents,this._name,this._id)}function ks(c){return(c+"").trim().split(/^|\s+/).every(function(E){var C=E.indexOf(".");return C>=0&&(E=E.slice(0,C)),!E||E==="start"})}function su(c,E,C){var k,q,we=ks(E)?ii:Wo;return function(){var Be=we(this,c),Je=Be.on;Je!==k&&(q=(k=Je).copy()).on(E,C),Be.on=q}}function Au(c,E){var C=this._id;return arguments.length<2?Ra(this.node(),C).on.on(c):this.each(su(C,c,E))}function wl(c){return function(){var E=this.parentNode;for(var C in this.__transition)if(+C!==c)return;E&&E.removeChild(this)}}function bu(){return this.on("end.remove",wl(this._id))}function Ul(c){var E=this._name,C=this._id;typeof c!="function"&&(c=zr(c));for(var k=this._groups,q=k.length,we=new Array(q),Be=0;Be<q;++Be)for(var Je=k[Be],Et=Je.length,ot=we[Be]=new Array(Et),It,Jt,Nt=0;Nt<Et;++Nt)(It=Je[Nt])&&(Jt=c.call(It,It.__data__,Nt,Je))&&("__data__"in It&&(Jt.__data__=It.__data__),ot[Nt]=Jt,us(ot[Nt],E,C,Nt,ot,Ra(It,C)));return new Ua(we,this._parents,E,C)}function Wl(c){var E=this._name,C=this._id;typeof c!="function"&&(c=ki(c));for(var k=this._groups,q=k.length,we=[],Be=[],Je=0;Je<q;++Je)for(var Et=k[Je],ot=Et.length,It,Jt=0;Jt<ot;++Jt)if(It=Et[Jt]){for(var Nt=c.call(It,It.__data__,Jt,Et),vn,pr=Ra(It,C),$n=0,Un=Nt.length;$n<Un;++$n)(vn=Nt[$n])&&us(vn,E,C,$n,Nt,pr);we.push(Nt),Be.push(It)}return new Ua(we,Be,E,C)}var il=la.prototype.constructor;function _l(){return new il(this._groups,this._parents)}function Hs(c,E){var C,k,q;return function(){var we=G(this,c),Be=(this.style.removeProperty(c),G(this,c));return we===Be?null:we===C&&Be===k?q:q=E(C=we,k=Be)}}function Pl(c){return function(){this.style.removeProperty(c)}}function Ql(c,E,C){var k,q=C+"",we;return function(){var Be=G(this,c);return Be===q?null:Be===k?we:we=E(k=Be,C)}}function ll(c,E,C){var k,q,we;return function(){var Be=G(this,c),Je=C(this),Et=Je+"";return Je==null&&(Et=Je=(this.style.removeProperty(c),G(this,c))),Be===Et?null:Be===k&&Et===q?we:(q=Et,we=E(k=Be,Je))}}function Kl(c,E){var C,k,q,we="style."+E,Be="end."+we,Je;return function(){var Et=Wo(this,c),ot=Et.on,It=Et.value[we]==null?Je||(Je=Pl(E)):void 0;(ot!==C||q!==It)&&(k=(C=ot).copy()).on(Be,q=It),Et.on=k}}function ia(c,E,C){var k=(c+="")=="transform"?oi:Do;return E==null?this.styleTween(c,Hs(c,k)).on("end.style."+c,Pl(c)):typeof E=="function"?this.styleTween(c,ll(c,k,yo(this,"style."+c,E))).each(Kl(this._id,c)):this.styleTween(c,Ql(c,k,E),C).on("end.style."+c,null)}function Sa(c,E,C){return function(k){this.style.setProperty(c,E.call(this,k),C)}}function Ea(c,E,C){var k,q;function we(){var Be=E.apply(this,arguments);return Be!==q&&(k=(q=Be)&&Sa(c,Be,C)),k}return we._value=E,we}function rs(c,E,C){var k="style."+(c+="");if(arguments.length<2)return(k=this.tween(k))&&k._value;if(E==null)return this.tween(k,null);if(typeof E!="function")throw new Error;return this.tween(k,Ea(c,E,C??""))}function Ns(c){return function(){this.textContent=c}}function Xt(c){return function(){var E=c(this);this.textContent=E??""}}function bn(c){return this.tween("text",typeof c=="function"?Xt(yo(this,"text",c)):Ns(c==null?"":c+""))}function Dn(c){return function(E){this.textContent=c.call(this,E)}}function Ii(c){var E,C;function k(){var q=c.apply(this,arguments);return q!==C&&(E=(C=q)&&Dn(q)),E}return k._value=c,k}function ko(c){var E="text";if(arguments.length<1)return(E=this.tween(E))&&E._value;if(c==null)return this.tween(E,null);if(typeof c!="function")throw new Error;return this.tween(E,Ii(c))}function fa(){for(var c=this._name,E=this._id,C=Fs(),k=this._groups,q=k.length,we=0;we<q;++we)for(var Be=k[we],Je=Be.length,Et,ot=0;ot<Je;++ot)if(Et=Be[ot]){var It=Ra(Et,E);us(Et,c,C,ot,Be,{time:It.time+It.delay+It.duration,delay:0,duration:It.duration,ease:It.ease})}return new Ua(k,this._parents,c,C)}function Zo(){var c,E,C=this,k=C._id,q=C.size();return new Promise(function(we,Be){var Je={value:Be},Et={value:function(){--q===0&&we()}};C.each(function(){var ot=Wo(this,k),It=ot.on;It!==c&&(E=(c=It).copy(),E._.cancel.push(Je),E._.interrupt.push(Je),E._.end.push(Et)),ot.on=E}),q===0&&we()})}var Fa=0;function Ua(c,E,C,k){this._groups=c,this._parents=E,this._name=C,this._id=k}function ms(c){return la().transition(c)}function Fs(){return++Fa}var ws=la.prototype;Ua.prototype=ms.prototype={constructor:Ua,select:Ul,selectAll:Wl,selectChild:ws.selectChild,selectChildren:ws.selectChildren,filter:pl,merge:pu,selection:_l,transition:fa,call:ws.call,nodes:ws.nodes,node:ws.node,size:ws.size,empty:ws.empty,each:ws.each,on:Au,attr:xo,attrTween:Xa,style:ia,styleTween:rs,text:bn,textTween:ko,remove:bu,tween:Gi,delay:vs,duration:ns,ease:Mu,easeVarying:ju,end:Zo,[Symbol.iterator]:ws[Symbol.iterator]};function fu(c){return c*c*c}function wu(c){return--c*c*c+1}function Du(c){return((c*=2)<=1?c*c*c:(c-=2)*c*c+2)/2}var zu={time:null,delay:0,duration:250,ease:Du};function Il(c,E){for(var C;!(C=c.__transition)||!(C=C[E]);)if(!(c=c.parentNode))throw new Error(`transition ${E} not found`);return C}function bc(c){var E,C;c instanceof Ua?(E=c._id,c=c._name):(E=Fs(),(C=zu).time=Vt(),c=c==null?null:c+"");for(var k=this._groups,q=k.length,we=0;we<q;++we)for(var Be=k[we],Je=Be.length,Et,ot=0;ot<Je;++ot)(Et=Be[ot])&&us(Et,c,E,ot,Be,C||Il(Et,E));return new Ua(k,this._parents,c,E)}la.prototype.interrupt=eu,la.prototype.transition=bc;var Gl=[null];function oc(c,E){var C=c.__transition,k,q;if(C){E=E==null?null:E+"";for(q in C)if((k=C[q]).state>La&&k.name===E)return new Ua([[c]],Gl,E,+q)}return null}const ac=c=>()=>c;function jl(c,{sourceEvent:E,target:C,selection:k,mode:q,dispatch:we}){Object.defineProperties(this,{type:{value:c,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},target:{value:C,enumerable:!0,configurable:!0},selection:{value:k,enumerable:!0,configurable:!0},mode:{value:q,enumerable:!0,configurable:!0},_:{value:we}})}function nc(c){c.stopImmediatePropagation()}function Fl(c){c.preventDefault(),c.stopImmediatePropagation()}var Zu={name:"drag"},Ac={name:"space"},tf={name:"handle"},Jl={name:"center"};const{abs:ml,max:vl,min:Vu}=Math;function ad(c){return[+c[0],+c[1]]}function Bc(c){return[ad(c[0]),ad(c[1])]}var hf={name:"x",handles:["w","e"].map(jf),input:function(c,E){return c==null?null:[[+c[0],E[0][1]],[+c[1],E[1][1]]]},output:function(c){return c&&[c[0][0],c[1][0]]}},Vc={name:"y",handles:["n","s"].map(jf),input:function(c,E){return c==null?null:[[E[0][0],+c[0]],[E[1][0],+c[1]]]},output:function(c){return c&&[c[0][1],c[1][1]]}},Od={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(jf),input:function(c){return c==null?null:Bc(c)},output:function(c){return c}},_c={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Xc={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Zl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},qd={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Kd={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function jf(c){return{type:c}}function Ml(c){return!c.ctrlKey&&!c.button}function jd(){var c=this.ownerSVGElement||this;return c.hasAttribute("viewBox")?(c=c.viewBox.baseVal,[[c.x,c.y],[c.x+c.width,c.y+c.height]]):[[0,0],[c.width.baseVal.value,c.height.baseVal.value]]}function Jf(){return navigator.maxTouchPoints||"ontouchstart"in this}function ql(c){for(;!c.__brush;)if(!(c=c.parentNode))return;return c.__brush}function sc(c){return c[0][0]===c[1][0]||c[0][1]===c[1][1]}function Uc(c){var E=c.__brush;return E?E.dim.output(E.selection):null}function Gd(){return yd(hf)}function nf(){return yd(Vc)}function Dd(){return yd(Od)}function yd(c){var E=jd,C=Ml,k=Jf,q=!0,we=$r("start","brush","end"),Be=6,Je;function Et(Un){var lr=Un.property("__brush",$n).selectAll(".overlay").data([jf("overlay")]);lr.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",_c.overlay).merge(lr).each(function(){var Br=ql(this).extent;ss(this).attr("x",Br[0][0]).attr("y",Br[0][1]).attr("width",Br[1][0]-Br[0][0]).attr("height",Br[1][1]-Br[0][1])}),Un.selectAll(".selection").data([jf("selection")]).enter().append("rect").attr("class","selection").attr("cursor",_c.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Hr=Un.selectAll(".handle").data(c.handles,function(Br){return Br.type});Hr.exit().remove(),Hr.enter().append("rect").attr("class",function(Br){return"handle handle--"+Br.type}).attr("cursor",function(Br){return _c[Br.type]}),Un.each(ot).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Nt).filter(k).on("touchstart.brush",Nt).on("touchmove.brush",vn).on("touchend.brush touchcancel.brush",pr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Et.move=function(Un,lr,Hr){Un.tween?Un.on("start.brush",function(Br){It(this,arguments).beforestart().start(Br)}).on("interrupt.brush end.brush",function(Br){It(this,arguments).end(Br)}).tween("brush",function(){var Br=this,Mr=Br.__brush,Oi=It(Br,arguments),Yi=Mr.selection,uo=c.input(typeof lr=="function"?lr.apply(this,arguments):lr,Mr.extent),Io=Kn(Yi,uo);function ua(To){Mr.selection=To===1&&uo===null?null:Io(To),ot.call(Br),Oi.brush()}return Yi!==null&&uo!==null?ua:ua(1)}):Un.each(function(){var Br=this,Mr=arguments,Oi=Br.__brush,Yi=c.input(typeof lr=="function"?lr.apply(Br,Mr):lr,Oi.extent),uo=It(Br,Mr).beforestart();Wa(Br),Oi.selection=Yi===null?null:Yi,ot.call(Br),uo.start(Hr).brush(Hr).end(Hr)})},Et.clear=function(Un,lr){Et.move(Un,null,lr)};function ot(){var Un=ss(this),lr=ql(this).selection;lr?(Un.selectAll(".selection").style("display",null).attr("x",lr[0][0]).attr("y",lr[0][1]).attr("width",lr[1][0]-lr[0][0]).attr("height",lr[1][1]-lr[0][1]),Un.selectAll(".handle").style("display",null).attr("x",function(Hr){return Hr.type[Hr.type.length-1]==="e"?lr[1][0]-Be/2:lr[0][0]-Be/2}).attr("y",function(Hr){return Hr.type[0]==="s"?lr[1][1]-Be/2:lr[0][1]-Be/2}).attr("width",function(Hr){return Hr.type==="n"||Hr.type==="s"?lr[1][0]-lr[0][0]+Be:Be}).attr("height",function(Hr){return Hr.type==="e"||Hr.type==="w"?lr[1][1]-lr[0][1]+Be:Be})):Un.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function It(Un,lr,Hr){var Br=Un.__brush.emitter;return Br&&(!Hr||!Br.clean)?Br:new Jt(Un,lr,Hr)}function Jt(Un,lr,Hr){this.that=Un,this.args=lr,this.state=Un.__brush,this.active=0,this.clean=Hr}Jt.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(Un,lr){return this.starting?(this.starting=!1,this.emit("start",Un,lr)):this.emit("brush",Un),this},brush:function(Un,lr){return this.emit("brush",Un,lr),this},end:function(Un,lr){return--this.active===0&&(delete this.state.emitter,this.emit("end",Un,lr)),this},emit:function(Un,lr,Hr){var Br=ss(this.that).datum();we.call(Un,this.that,new jl(Un,{sourceEvent:lr,target:Et,selection:c.output(this.state.selection),mode:Hr,dispatch:we}),Br)}};function Nt(Un){if(Je&&!Un.touches||!C.apply(this,arguments))return;var lr=this,Hr=Un.target.__data__.type,Br=(q&&Un.metaKey?Hr="overlay":Hr)==="selection"?Zu:q&&Un.altKey?Jl:tf,Mr=c===Vc?null:qd[Hr],Oi=c===hf?null:Kd[Hr],Yi=ql(lr),uo=Yi.extent,Io=Yi.selection,ua=uo[0][0],To,Lo,Ta=uo[0][1],da,Zr,Hi=uo[1][0],no,jo,oo=uo[1][1],zo,Oo,ma=0,ka=0,os,es=Mr&&Oi&&q&&Un.shiftKey,gs,Zs,As=Array.from(Un.touches||[Un],Su=>{const cc=Su.identifier;return Su=ci(Su,lr),Su.point0=Su.slice(),Su.identifier=cc,Su});Wa(lr);var _u=It(lr,arguments,!0).beforestart();if(Hr==="overlay"){Io&&(os=!0);const Su=[As[0],As[1]||As[0]];Yi.selection=Io=[[To=c===Vc?ua:Vu(Su[0][0],Su[1][0]),da=c===hf?Ta:Vu(Su[0][1],Su[1][1])],[no=c===Vc?Hi:vl(Su[0][0],Su[1][0]),zo=c===hf?oo:vl(Su[0][1],Su[1][1])]],As.length>1&&Fu(Un)}else To=Io[0][0],da=Io[0][1],no=Io[1][0],zo=Io[1][1];Lo=To,Zr=da,jo=no,Oo=zo;var Cs=ss(lr).attr("pointer-events","none"),Js=Cs.selectAll(".overlay").attr("cursor",_c[Hr]);if(Un.touches)_u.moved=cs,_u.ended=Sl;else{var au=ss(Un.view).on("mousemove.brush",cs,!0).on("mouseup.brush",Sl,!0);q&&au.on("keydown.brush",mc,!0).on("keyup.brush",Nl,!0),Ls(Un.view)}ot.call(lr),_u.start(Un,Br.name);function cs(Su){for(const cc of Su.changedTouches||[Su])for(const Md of As)Md.identifier===cc.identifier&&(Md.cur=ci(cc,lr));if(es&&!gs&&!Zs&&As.length===1){const cc=As[0];ml(cc.cur[0]-cc[0])>ml(cc.cur[1]-cc[1])?Zs=!0:gs=!0}for(const cc of As)cc.cur&&(cc[0]=cc.cur[0],cc[1]=cc.cur[1]);os=!0,Fl(Su),Fu(Su)}function Fu(Su){const cc=As[0],Md=cc.point0;var od;switch(ma=cc[0]-Md[0],ka=cc[1]-Md[1],Br){case Ac:case Zu:{Mr&&(ma=vl(ua-To,Vu(Hi-no,ma)),Lo=To+ma,jo=no+ma),Oi&&(ka=vl(Ta-da,Vu(oo-zo,ka)),Zr=da+ka,Oo=zo+ka);break}case tf:{As[1]?(Mr&&(Lo=vl(ua,Vu(Hi,As[0][0])),jo=vl(ua,Vu(Hi,As[1][0])),Mr=1),Oi&&(Zr=vl(Ta,Vu(oo,As[0][1])),Oo=vl(Ta,Vu(oo,As[1][1])),Oi=1)):(Mr<0?(ma=vl(ua-To,Vu(Hi-To,ma)),Lo=To+ma,jo=no):Mr>0&&(ma=vl(ua-no,Vu(Hi-no,ma)),Lo=To,jo=no+ma),Oi<0?(ka=vl(Ta-da,Vu(oo-da,ka)),Zr=da+ka,Oo=zo):Oi>0&&(ka=vl(Ta-zo,Vu(oo-zo,ka)),Zr=da,Oo=zo+ka));break}case Jl:{Mr&&(Lo=vl(ua,Vu(Hi,To-ma*Mr)),jo=vl(ua,Vu(Hi,no+ma*Mr))),Oi&&(Zr=vl(Ta,Vu(oo,da-ka*Oi)),Oo=vl(Ta,Vu(oo,zo+ka*Oi)));break}}jo<Lo&&(Mr*=-1,od=To,To=no,no=od,od=Lo,Lo=jo,jo=od,Hr in Xc&&Js.attr("cursor",_c[Hr=Xc[Hr]])),Oo<Zr&&(Oi*=-1,od=da,da=zo,zo=od,od=Zr,Zr=Oo,Oo=od,Hr in Zl&&Js.attr("cursor",_c[Hr=Zl[Hr]])),Yi.selection&&(Io=Yi.selection),gs&&(Lo=Io[0][0],jo=Io[1][0]),Zs&&(Zr=Io[0][1],Oo=Io[1][1]),(Io[0][0]!==Lo||Io[0][1]!==Zr||Io[1][0]!==jo||Io[1][1]!==Oo)&&(Yi.selection=[[Lo,Zr],[jo,Oo]],ot.call(lr),_u.brush(Su,Br.name))}function Sl(Su){if(nc(Su),Su.touches){if(Su.touches.length)return;Je&&clearTimeout(Je),Je=setTimeout(function(){Je=null},500)}else gu(Su.view,os),au.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Cs.attr("pointer-events","all"),Js.attr("cursor",_c.overlay),Yi.selection&&(Io=Yi.selection),sc(Io)&&(Yi.selection=null,ot.call(lr)),_u.end(Su,Br.name)}function mc(Su){switch(Su.keyCode){case 16:{es=Mr&&Oi;break}case 18:{Br===tf&&(Mr&&(no=jo-ma*Mr,To=Lo+ma*Mr),Oi&&(zo=Oo-ka*Oi,da=Zr+ka*Oi),Br=Jl,Fu(Su));break}case 32:{(Br===tf||Br===Jl)&&(Mr<0?no=jo-ma:Mr>0&&(To=Lo-ma),Oi<0?zo=Oo-ka:Oi>0&&(da=Zr-ka),Br=Ac,Js.attr("cursor",_c.selection),Fu(Su));break}default:return}Fl(Su)}function Nl(Su){switch(Su.keyCode){case 16:{es&&(gs=Zs=es=!1,Fu(Su));break}case 18:{Br===Jl&&(Mr<0?no=jo:Mr>0&&(To=Lo),Oi<0?zo=Oo:Oi>0&&(da=Zr),Br=tf,Fu(Su));break}case 32:{Br===Ac&&(Su.altKey?(Mr&&(no=jo-ma*Mr,To=Lo+ma*Mr),Oi&&(zo=Oo-ka*Oi,da=Zr+ka*Oi),Br=Jl):(Mr<0?no=jo:Mr>0&&(To=Lo),Oi<0?zo=Oo:Oi>0&&(da=Zr),Br=tf),Js.attr("cursor",_c[Hr]),Fu(Su));break}default:return}Fl(Su)}}function vn(Un){It(this,arguments).moved(Un)}function pr(Un){It(this,arguments).ended(Un)}function $n(){var Un=this.__brush||{selection:null};return Un.extent=Bc(E.apply(this,arguments)),Un.dim=c,Un}return Et.extent=function(Un){return arguments.length?(E=typeof Un=="function"?Un:ac(Bc(Un)),Et):E},Et.filter=function(Un){return arguments.length?(C=typeof Un=="function"?Un:ac(!!Un),Et):C},Et.touchable=function(Un){return arguments.length?(k=typeof Un=="function"?Un:ac(!!Un),Et):k},Et.handleSize=function(Un){return arguments.length?(Be=+Un,Et):Be},Et.keyModifiers=function(Un){return arguments.length?(q=!!Un,Et):q},Et.on=function(){var Un=we.on.apply(we,arguments);return Un===we?Et:Un},Et}var pf=Math.abs,Lf=Math.cos,Cd=Math.sin,vf=Math.PI,jc=vf/2,gf=vf*2,Id=Math.max,sd=1e-12;function ud(c,E){return Array.from({length:E-c},(C,k)=>c+k)}function Yd(c){return function(E,C){return c(E.source.value+E.target.value,C.source.value+C.target.value)}}function xd(){return lf(!1,!1)}function rc(){return lf(!1,!0)}function Pc(){return lf(!0,!1)}function lf(c,E){var C=0,k=null,q=null,we=null;function Be(Je){var Et=Je.length,ot=new Array(Et),It=ud(0,Et),Jt=new Array(Et*Et),Nt=new Array(Et),vn=0,pr;Je=Float64Array.from({length:Et*Et},E?($n,Un)=>Je[Un%Et][Un/Et|0]:($n,Un)=>Je[Un/Et|0][Un%Et]);for(let $n=0;$n<Et;++$n){let Un=0;for(let lr=0;lr<Et;++lr)Un+=Je[$n*Et+lr]+c*Je[lr*Et+$n];vn+=ot[$n]=Un}vn=Id(0,gf-C*Et)/vn,pr=vn?C:gf/Et;{let $n=0;k&&It.sort((Un,lr)=>k(ot[Un],ot[lr]));for(const Un of It){const lr=$n;if(c){const Hr=ud(~Et+1,Et).filter(Br=>Br<0?Je[~Br*Et+Un]:Je[Un*Et+Br]);q&&Hr.sort((Br,Mr)=>q(Br<0?-Je[~Br*Et+Un]:Je[Un*Et+Br],Mr<0?-Je[~Mr*Et+Un]:Je[Un*Et+Mr]));for(const Br of Hr)if(Br<0){const Mr=Jt[~Br*Et+Un]||(Jt[~Br*Et+Un]={source:null,target:null});Mr.target={index:Un,startAngle:$n,endAngle:$n+=Je[~Br*Et+Un]*vn,value:Je[~Br*Et+Un]}}else{const Mr=Jt[Un*Et+Br]||(Jt[Un*Et+Br]={source:null,target:null});Mr.source={index:Un,startAngle:$n,endAngle:$n+=Je[Un*Et+Br]*vn,value:Je[Un*Et+Br]}}Nt[Un]={index:Un,startAngle:lr,endAngle:$n,value:ot[Un]}}else{const Hr=ud(0,Et).filter(Br=>Je[Un*Et+Br]||Je[Br*Et+Un]);q&&Hr.sort((Br,Mr)=>q(Je[Un*Et+Br],Je[Un*Et+Mr]));for(const Br of Hr){let Mr;if(Un<Br?(Mr=Jt[Un*Et+Br]||(Jt[Un*Et+Br]={source:null,target:null}),Mr.source={index:Un,startAngle:$n,endAngle:$n+=Je[Un*Et+Br]*vn,value:Je[Un*Et+Br]}):(Mr=Jt[Br*Et+Un]||(Jt[Br*Et+Un]={source:null,target:null}),Mr.target={index:Un,startAngle:$n,endAngle:$n+=Je[Un*Et+Br]*vn,value:Je[Un*Et+Br]},Un===Br&&(Mr.source=Mr.target)),Mr.source&&Mr.target&&Mr.source.value<Mr.target.value){const Oi=Mr.source;Mr.source=Mr.target,Mr.target=Oi}}Nt[Un]={index:Un,startAngle:lr,endAngle:$n,value:ot[Un]}}$n+=pr}}return Jt=Object.values(Jt),Jt.groups=Nt,we?Jt.sort(we):Jt}return Be.padAngle=function(Je){return arguments.length?(C=Id(0,Je),Be):C},Be.sortGroups=function(Je){return arguments.length?(k=Je,Be):k},Be.sortSubgroups=function(Je){return arguments.length?(q=Je,Be):q},Be.sortChords=function(Je){return arguments.length?(Je==null?we=null:(we=Yd(Je))._=Je,Be):we&&we._},Be}const Qc=Math.PI,yc=2*Qc,fc=1e-6,ic=yc-fc;function Kf(c){this._+=c[0];for(let E=1,C=c.length;E<C;++E)this._+=arguments[E]+c[E]}function ld(c){let E=Math.floor(c);if(!(E>=0))throw new Error(`invalid digits: ${c}`);if(E>15)return Kf;const C=10**E;return function(k){this._+=k[0];for(let q=1,we=k.length;q<we;++q)this._+=Math.round(arguments[q]*C)/C+k[q]}}class Ld{constructor(E){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=E==null?Kf:ld(E)}moveTo(E,C){this._append`M${this._x0=this._x1=+E},${this._y0=this._y1=+C}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(E,C){this._append`L${this._x1=+E},${this._y1=+C}`}quadraticCurveTo(E,C,k,q){this._append`Q${+E},${+C},${this._x1=+k},${this._y1=+q}`}bezierCurveTo(E,C,k,q,we,Be){this._append`C${+E},${+C},${+k},${+q},${this._x1=+we},${this._y1=+Be}`}arcTo(E,C,k,q,we){if(E=+E,C=+C,k=+k,q=+q,we=+we,we<0)throw new Error(`negative radius: ${we}`);let Be=this._x1,Je=this._y1,Et=k-E,ot=q-C,It=Be-E,Jt=Je-C,Nt=It*It+Jt*Jt;if(this._x1===null)this._append`M${this._x1=E},${this._y1=C}`;else if(Nt>fc)if(!(Math.abs(Jt*Et-ot*It)>fc)||!we)this._append`L${this._x1=E},${this._y1=C}`;else{let vn=k-Be,pr=q-Je,$n=Et*Et+ot*ot,Un=vn*vn+pr*pr,lr=Math.sqrt($n),Hr=Math.sqrt(Nt),Br=we*Math.tan((Qc-Math.acos(($n+Nt-Un)/(2*lr*Hr)))/2),Mr=Br/Hr,Oi=Br/lr;Math.abs(Mr-1)>fc&&this._append`L${E+Mr*It},${C+Mr*Jt}`,this._append`A${we},${we},0,0,${+(Jt*vn>It*pr)},${this._x1=E+Oi*Et},${this._y1=C+Oi*ot}`}}arc(E,C,k,q,we,Be){if(E=+E,C=+C,k=+k,Be=!!Be,k<0)throw new Error(`negative radius: ${k}`);let Je=k*Math.cos(q),Et=k*Math.sin(q),ot=E+Je,It=C+Et,Jt=1^Be,Nt=Be?q-we:we-q;this._x1===null?this._append`M${ot},${It}`:(Math.abs(this._x1-ot)>fc||Math.abs(this._y1-It)>fc)&&this._append`L${ot},${It}`,k&&(Nt<0&&(Nt=Nt%yc+yc),Nt>ic?this._append`A${k},${k},0,1,${Jt},${E-Je},${C-Et}A${k},${k},0,1,${Jt},${this._x1=ot},${this._y1=It}`:Nt>fc&&this._append`A${k},${k},0,${+(Nt>=Qc)},${Jt},${this._x1=E+k*Math.cos(we)},${this._y1=C+k*Math.sin(we)}`)}rect(E,C,k,q){this._append`M${this._x0=this._x1=+E},${this._y0=this._y1=+C}h${k=+k}v${+q}h${-k}Z`}toString(){return this._}}function cf(){return new Ld}cf.prototype=Ld.prototype;function kf(c=3){return new Ld(+c)}var uh=Array.prototype.slice;function $d(c){return function(){return c}}function bh(c){return c.source}function Zf(c){return c.target}function dc(c){return c.radius}function yf(c){return c.startAngle}function Nf(c){return c.endAngle}function ys(){return 0}function Hc(){return 10}function Jc(c){var E=bh,C=Zf,k=dc,q=dc,we=yf,Be=Nf,Je=ys,Et=null;function ot(){var It,Jt=E.apply(this,arguments),Nt=C.apply(this,arguments),vn=Je.apply(this,arguments)/2,pr=uh.call(arguments),$n=+k.apply(this,(pr[0]=Jt,pr)),Un=we.apply(this,pr)-jc,lr=Be.apply(this,pr)-jc,Hr=+q.apply(this,(pr[0]=Nt,pr)),Br=we.apply(this,pr)-jc,Mr=Be.apply(this,pr)-jc;if(Et||(Et=It=cf()),vn>sd&&(pf(lr-Un)>vn*2+sd?lr>Un?(Un+=vn,lr-=vn):(Un-=vn,lr+=vn):Un=lr=(Un+lr)/2,pf(Mr-Br)>vn*2+sd?Mr>Br?(Br+=vn,Mr-=vn):(Br-=vn,Mr+=vn):Br=Mr=(Br+Mr)/2),Et.moveTo($n*Lf(Un),$n*Cd(Un)),Et.arc(0,0,$n,Un,lr),Un!==Br||lr!==Mr)if(c){var Oi=+c.apply(this,arguments),Yi=Hr-Oi,uo=(Br+Mr)/2;Et.quadraticCurveTo(0,0,Yi*Lf(Br),Yi*Cd(Br)),Et.lineTo(Hr*Lf(uo),Hr*Cd(uo)),Et.lineTo(Yi*Lf(Mr),Yi*Cd(Mr))}else Et.quadraticCurveTo(0,0,Hr*Lf(Br),Hr*Cd(Br)),Et.arc(0,0,Hr,Br,Mr);if(Et.quadraticCurveTo(0,0,$n*Lf(Un),$n*Cd(Un)),Et.closePath(),It)return Et=null,It+""||null}return c&&(ot.headRadius=function(It){return arguments.length?(c=typeof It=="function"?It:$d(+It),ot):c}),ot.radius=function(It){return arguments.length?(k=q=typeof It=="function"?It:$d(+It),ot):k},ot.sourceRadius=function(It){return arguments.length?(k=typeof It=="function"?It:$d(+It),ot):k},ot.targetRadius=function(It){return arguments.length?(q=typeof It=="function"?It:$d(+It),ot):q},ot.startAngle=function(It){return arguments.length?(we=typeof It=="function"?It:$d(+It),ot):we},ot.endAngle=function(It){return arguments.length?(Be=typeof It=="function"?It:$d(+It),ot):Be},ot.padAngle=function(It){return arguments.length?(Je=typeof It=="function"?It:$d(+It),ot):Je},ot.source=function(It){return arguments.length?(E=It,ot):E},ot.target=function(It){return arguments.length?(C=It,ot):C},ot.context=function(It){return arguments.length?(Et=It??null,ot):Et},ot}function Fh(){return Jc()}function lh(){return Jc(Hc)}var Xd=t(40871),Ud=t(49710);const bd=18,Ms=.96422,Pf=1,bf=.82521,cd=4/29,rf=6/29,Gf=3*rf*rf,Tf=rf*rf*rf;function fd(c){if(c instanceof qf)return new qf(c.l,c.a,c.b,c.opacity);if(c instanceof sl)return Tu(c);c instanceof Us.Gw||(c=(0,Us.b)(c));var E=hu(c.r),C=hu(c.g),k=hu(c.b),q=kd((.2225045*E+.7168786*C+.0606169*k)/Pf),we,Be;return E===C&&C===k?we=Be=q:(we=kd((.4360747*E+.3850649*C+.1430804*k)/Ms),Be=kd((.0139322*E+.0971045*C+.7141733*k)/bf)),new qf(116*q-16,500*(we-q),200*(q-Be),c.opacity)}function eh(c,E){return new qf(c,0,0,E??1)}function Rf(c,E,C,k){return arguments.length===1?fd(c):new qf(c,E,C,k??1)}function qf(c,E,C,k){this.l=+c,this.a=+E,this.b=+C,this.opacity=+k}(0,Xd.A)(qf,Rf,(0,Xd.X)(Us.Q1,{brighter(c){return new qf(this.l+bd*(c??1),this.a,this.b,this.opacity)},darker(c){return new qf(this.l-bd*(c??1),this.a,this.b,this.opacity)},rgb(){var c=(this.l+16)/116,E=isNaN(this.a)?c:c+this.a/500,C=isNaN(this.b)?c:c-this.b/200;return E=Ms*qa(E),c=Pf*qa(c),C=bf*qa(C),new Us.Gw(Gs(3.1338561*E-1.6168667*c-.4906146*C),Gs(-.9787684*E+1.9161415*c+.033454*C),Gs(.0719453*E-.2289914*c+1.4052427*C),this.opacity)}}));function kd(c){return c>Tf?Math.pow(c,1/3):c/Gf+cd}function qa(c){return c>rf?c*c*c:Gf*(c-cd)}function Gs(c){return 255*(c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055)}function hu(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function du(c){if(c instanceof sl)return new sl(c.h,c.c,c.l,c.opacity);if(c instanceof qf||(c=fd(c)),c.a===0&&c.b===0)return new sl(NaN,0<c.l&&c.l<100?0:NaN,c.l,c.opacity);var E=Math.atan2(c.b,c.a)*Ud.u;return new sl(E<0?E+360:E,Math.sqrt(c.a*c.a+c.b*c.b),c.l,c.opacity)}function Ys(c,E,C,k){return arguments.length===1?du(c):new sl(C,E,c,k??1)}function Pu(c,E,C,k){return arguments.length===1?du(c):new sl(c,E,C,k??1)}function sl(c,E,C,k){this.h=+c,this.c=+E,this.l=+C,this.opacity=+k}function Tu(c){if(isNaN(c.h))return new qf(c.l,0,0,c.opacity);var E=c.h*Ud.F;return new qf(c.l,Math.cos(E)*c.c,Math.sin(E)*c.c,c.opacity)}(0,Xd.A)(sl,Pu,(0,Xd.X)(Us.Q1,{brighter(c){return new sl(this.h,this.c,this.l+bd*(c??1),this.opacity)},darker(c){return new sl(this.h,this.c,this.l-bd*(c??1),this.opacity)},rgb(){return Tu(this).rgb()}}));var Yu=t(75653),xu=Array.prototype,of=xu.slice;function Ol(c,E){return c-E}function wc(c){for(var E=0,C=c.length,k=c[C-1][1]*c[0][0]-c[C-1][0]*c[0][1];++E<C;)k+=c[E-1][1]*c[E][0]-c[E-1][0]*c[E][1];return k}const Ll=c=>()=>c;function Mc(c,E){for(var C=-1,k=E.length,q;++C<k;)if(q=Bl(c,E[C]))return q;return 0}function Bl(c,E){for(var C=E[0],k=E[1],q=-1,we=0,Be=c.length,Je=Be-1;we<Be;Je=we++){var Et=c[we],ot=Et[0],It=Et[1],Jt=c[Je],Nt=Jt[0],vn=Jt[1];if(Ic(Et,Jt,E))return 0;It>k!=vn>k&&C<(Nt-ot)*(k-It)/(vn-It)+ot&&(q=-q)}return q}function Ic(c,E,C){var k;return qu(c,E,C)&&Vr(c[k=+(c[0]===E[0])],C[k],E[k])}function qu(c,E,C){return(E[0]-c[0])*(C[1]-c[1])===(C[0]-c[0])*(E[1]-c[1])}function Vr(c,E,C){return c<=E&&E<=C||C<=E&&E<=c}function Ni(){}var fo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Po(){var c=1,E=1,C=He,k=Et;function q(ot){var It=C(ot);if(Array.isArray(It))It=It.slice().sort(Ol);else{const Jt=ve(ot,pa);for(It=I(...De(Jt[0],Jt[1],It),It);It[It.length-1]>=Jt[1];)It.pop();for(;It[1]<Jt[0];)It.shift()}return It.map(Jt=>we(ot,Jt))}function we(ot,It){const Jt=It==null?NaN:+It;if(isNaN(Jt))throw new Error(`invalid value: ${It}`);var Nt=[],vn=[];return Be(ot,Jt,function(pr){k(pr,ot,Jt),wc(pr)>0?Nt.push([pr]):vn.push(pr)}),vn.forEach(function(pr){for(var $n=0,Un=Nt.length,lr;$n<Un;++$n)if(Mc((lr=Nt[$n])[0],pr)!==-1){lr.push(pr);return}}),{type:"MultiPolygon",value:It,coordinates:Nt}}function Be(ot,It,Jt){var Nt=new Array,vn=new Array,pr,$n,Un,lr,Hr,Br;for(pr=$n=-1,lr=Va(ot[0],It),fo[lr<<1].forEach(Mr);++pr<c-1;)Un=lr,lr=Va(ot[pr+1],It),fo[Un|lr<<1].forEach(Mr);for(fo[lr<<0].forEach(Mr);++$n<E-1;){for(pr=-1,lr=Va(ot[$n*c+c],It),Hr=Va(ot[$n*c],It),fo[lr<<1|Hr<<2].forEach(Mr);++pr<c-1;)Un=lr,lr=Va(ot[$n*c+c+pr+1],It),Br=Hr,Hr=Va(ot[$n*c+pr+1],It),fo[Un|lr<<1|Hr<<2|Br<<3].forEach(Mr);fo[lr|Hr<<3].forEach(Mr)}for(pr=-1,Hr=ot[$n*c]>=It,fo[Hr<<2].forEach(Mr);++pr<c-1;)Br=Hr,Hr=Va(ot[$n*c+pr+1],It),fo[Hr<<2|Br<<3].forEach(Mr);fo[Hr<<3].forEach(Mr);function Mr(Oi){var Yi=[Oi[0][0]+pr,Oi[0][1]+$n],uo=[Oi[1][0]+pr,Oi[1][1]+$n],Io=Je(Yi),ua=Je(uo),To,Lo;(To=vn[Io])?(Lo=Nt[ua])?(delete vn[To.end],delete Nt[Lo.start],To===Lo?(To.ring.push(uo),Jt(To.ring)):Nt[To.start]=vn[Lo.end]={start:To.start,end:Lo.end,ring:To.ring.concat(Lo.ring)}):(delete vn[To.end],To.ring.push(uo),vn[To.end=ua]=To):(To=Nt[ua])?(Lo=vn[Io])?(delete Nt[To.start],delete vn[Lo.end],To===Lo?(To.ring.push(uo),Jt(To.ring)):Nt[Lo.start]=vn[To.end]={start:Lo.start,end:To.end,ring:Lo.ring.concat(To.ring)}):(delete Nt[To.start],To.ring.unshift(Yi),Nt[To.start=Io]=To):Nt[Io]=vn[ua]={start:Io,end:ua,ring:[Yi,uo]}}}function Je(ot){return ot[0]*2+ot[1]*(c+1)*4}function Et(ot,It,Jt){ot.forEach(function(Nt){var vn=Nt[0],pr=Nt[1],$n=vn|0,Un=pr|0,lr=fs(It[Un*c+$n]);vn>0&&vn<c&&$n===vn&&(Nt[0]=zs(vn,fs(It[Un*c+$n-1]),lr,Jt)),pr>0&&pr<E&&Un===pr&&(Nt[1]=zs(pr,fs(It[(Un-1)*c+$n]),lr,Jt))})}return q.contour=we,q.size=function(ot){if(!arguments.length)return[c,E];var It=Math.floor(ot[0]),Jt=Math.floor(ot[1]);if(!(It>=0&&Jt>=0))throw new Error("invalid size");return c=It,E=Jt,q},q.thresholds=function(ot){return arguments.length?(C=typeof ot=="function"?ot:Array.isArray(ot)?Ll(of.call(ot)):Ll(ot),q):C},q.smooth=function(ot){return arguments.length?(k=ot?Et:Ni,q):k===Et},q}function pa(c){return isFinite(c)?c:NaN}function Va(c,E){return c==null?!1:+c>=E}function fs(c){return c==null||isNaN(c=+c)?-1/0:c}function zs(c,E,C,k){const q=k-E,we=C-E,Be=isFinite(q)||isFinite(we)?q/we:Math.sign(q)/Math.sign(we);return isNaN(Be)?c:c+Be-.5}function cu(c){return c[0]}function Ru(c){return c[1]}function Vs(){return 1}function Ou(){var c=cu,E=Ru,C=Vs,k=960,q=500,we=20,Be=2,Je=we*3,Et=k+Je*2>>Be,ot=q+Je*2>>Be,It=Ll(20);function Jt(Hr){var Br=new Float32Array(Et*ot),Mr=Math.pow(2,-Be),Oi=-1;for(const da of Hr){var Yi=(c(da,++Oi,Hr)+Je)*Mr,uo=(E(da,Oi,Hr)+Je)*Mr,Io=+C(da,Oi,Hr);if(Io&&Yi>=0&&Yi<Et&&uo>=0&&uo<ot){var ua=Math.floor(Yi),To=Math.floor(uo),Lo=Yi-ua-.5,Ta=uo-To-.5;Br[ua+To*Et]+=(1-Lo)*(1-Ta)*Io,Br[ua+1+To*Et]+=Lo*(1-Ta)*Io,Br[ua+1+(To+1)*Et]+=Lo*Ta*Io,Br[ua+(To+1)*Et]+=(1-Lo)*Ta*Io}}return w({data:Br,width:Et,height:ot},we*Mr),Br}function Nt(Hr){var Br=Jt(Hr),Mr=It(Br),Oi=Math.pow(2,2*Be);return Array.isArray(Mr)||(Mr=I(Number.MIN_VALUE,ze(Br)/Oi,Mr)),Po().size([Et,ot]).thresholds(Mr.map(Yi=>Yi*Oi))(Br).map((Yi,uo)=>(Yi.value=+Mr[uo],vn(Yi)))}Nt.contours=function(Hr){var Br=Jt(Hr),Mr=Po().size([Et,ot]),Oi=Math.pow(2,2*Be),Yi=uo=>{uo=+uo;var Io=vn(Mr.contour(Br,uo*Oi));return Io.value=uo,Io};return Object.defineProperty(Yi,"max",{get:()=>ze(Br)/Oi}),Yi};function vn(Hr){return Hr.coordinates.forEach(pr),Hr}function pr(Hr){Hr.forEach($n)}function $n(Hr){Hr.forEach(Un)}function Un(Hr){Hr[0]=Hr[0]*Math.pow(2,Be)-Je,Hr[1]=Hr[1]*Math.pow(2,Be)-Je}function lr(){return Je=we*3,Et=k+Je*2>>Be,ot=q+Je*2>>Be,Nt}return Nt.x=function(Hr){return arguments.length?(c=typeof Hr=="function"?Hr:Ll(+Hr),Nt):c},Nt.y=function(Hr){return arguments.length?(E=typeof Hr=="function"?Hr:Ll(+Hr),Nt):E},Nt.weight=function(Hr){return arguments.length?(C=typeof Hr=="function"?Hr:Ll(+Hr),Nt):C},Nt.size=function(Hr){if(!arguments.length)return[k,q];var Br=+Hr[0],Mr=+Hr[1];if(!(Br>=0&&Mr>=0))throw new Error("invalid size");return k=Br,q=Mr,lr()},Nt.cellSize=function(Hr){if(!arguments.length)return 1<<Be;if(!((Hr=+Hr)>=1))throw new Error("invalid cell size");return Be=Math.floor(Math.log(Hr)/Math.LN2),lr()},Nt.thresholds=function(Hr){return arguments.length?(It=typeof Hr=="function"?Hr:Array.isArray(Hr)?Ll(of.call(Hr)):Ll(Hr),Nt):It},Nt.bandwidth=function(Hr){if(!arguments.length)return Math.sqrt(we*(we+1));if(!((Hr=+Hr)>=0))throw new Error("invalid bandwidth");return we=(Math.sqrt(4*Hr*Hr+1)-1)/2,lr()},Nt}const iu=11102230246251565e-32,Uu=134217729,kl=(3+8*iu)*iu;function gl(c,E,C,k,q){let we,Be,Je,Et,ot=E[0],It=k[0],Jt=0,Nt=0;It>ot==It>-ot?(we=ot,ot=E[++Jt]):(we=It,It=k[++Nt]);let vn=0;if(Jt<c&&Nt<C)for(It>ot==It>-ot?(Be=ot+we,Je=we-(Be-ot),ot=E[++Jt]):(Be=It+we,Je=we-(Be-It),It=k[++Nt]),we=Be,Je!==0&&(q[vn++]=Je);Jt<c&&Nt<C;)It>ot==It>-ot?(Be=we+ot,Et=Be-we,Je=we-(Be-Et)+(ot-Et),ot=E[++Jt]):(Be=we+It,Et=Be-we,Je=we-(Be-Et)+(It-Et),It=k[++Nt]),we=Be,Je!==0&&(q[vn++]=Je);for(;Jt<c;)Be=we+ot,Et=Be-we,Je=we-(Be-Et)+(ot-Et),ot=E[++Jt],we=Be,Je!==0&&(q[vn++]=Je);for(;Nt<C;)Be=we+It,Et=Be-we,Je=we-(Be-Et)+(It-Et),It=k[++Nt],we=Be,Je!==0&&(q[vn++]=Je);return(we!==0||vn===0)&&(q[vn++]=we),vn}function ol(c,E,C,k,q,we,Be,Je){return gl(gl(c,E,C,k,Be),Be,q,we,Je)}function El(c,E,C,k){let q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr;It=Uu*C,vn=It-(It-C),pr=C-vn;let $n=E[0];q=$n*C,It=Uu*$n,Jt=It-(It-$n),Nt=$n-Jt,Be=Nt*pr-(q-Jt*vn-Nt*vn-Jt*pr);let Un=0;Be!==0&&(k[Un++]=Be);for(let lr=1;lr<c;lr++)$n=E[lr],Je=$n*C,It=Uu*$n,Jt=It-(It-$n),Nt=$n-Jt,Et=Nt*pr-(Je-Jt*vn-Nt*vn-Jt*pr),we=q+Et,ot=we-q,Be=q-(we-ot)+(Et-ot),Be!==0&&(k[Un++]=Be),q=Je+we,Be=we-(q-Je),Be!==0&&(k[Un++]=Be);return(q!==0||Un===0)&&(k[Un++]=q),Un}function Zc(c,E){for(let C=0;C<c;C++)E[C]=-E[C];return c}function mu(c,E){let C=E[0];for(let k=1;k<c;k++)C+=E[k];return C}function Ps(c){return new Float64Array(c)}const Kc=(3+16*iu)*iu,vc=(2+12*iu)*iu,ff=(9+64*iu)*iu*iu,Wc=Ps(4),Mf=Ps(8),wd=Ps(12),mf=Ps(16),Df=Ps(4);function Ah(c,E,C,k,q,we,Be){let Je,Et,ot,It,Jt,Nt,vn,pr,$n,Un,lr,Hr,Br,Mr,Oi,Yi,uo,Io;const ua=c-q,To=C-q,Lo=E-we,Ta=k-we;Mr=ua*Ta,Nt=Uu*ua,vn=Nt-(Nt-ua),pr=ua-vn,Nt=Uu*Ta,$n=Nt-(Nt-Ta),Un=Ta-$n,Oi=pr*Un-(Mr-vn*$n-pr*$n-vn*Un),Yi=Lo*To,Nt=Uu*Lo,vn=Nt-(Nt-Lo),pr=Lo-vn,Nt=Uu*To,$n=Nt-(Nt-To),Un=To-$n,uo=pr*Un-(Yi-vn*$n-pr*$n-vn*Un),lr=Oi-uo,Jt=Oi-lr,Wc[0]=Oi-(lr+Jt)+(Jt-uo),Hr=Mr+lr,Jt=Hr-Mr,Br=Mr-(Hr-Jt)+(lr-Jt),lr=Br-Yi,Jt=Br-lr,Wc[1]=Br-(lr+Jt)+(Jt-Yi),Io=Hr+lr,Jt=Io-Hr,Wc[2]=Hr-(Io-Jt)+(lr-Jt),Wc[3]=Io;let da=mu(4,Wc),Zr=vc*Be;if(da>=Zr||-da>=Zr||(Jt=c-ua,Je=c-(ua+Jt)+(Jt-q),Jt=C-To,ot=C-(To+Jt)+(Jt-q),Jt=E-Lo,Et=E-(Lo+Jt)+(Jt-we),Jt=k-Ta,It=k-(Ta+Jt)+(Jt-we),Je===0&&Et===0&&ot===0&&It===0)||(Zr=ff*Be+kl*Math.abs(da),da+=ua*It+Ta*Je-(Lo*ot+To*Et),da>=Zr||-da>=Zr))return da;Mr=Je*Ta,Nt=Uu*Je,vn=Nt-(Nt-Je),pr=Je-vn,Nt=Uu*Ta,$n=Nt-(Nt-Ta),Un=Ta-$n,Oi=pr*Un-(Mr-vn*$n-pr*$n-vn*Un),Yi=Et*To,Nt=Uu*Et,vn=Nt-(Nt-Et),pr=Et-vn,Nt=Uu*To,$n=Nt-(Nt-To),Un=To-$n,uo=pr*Un-(Yi-vn*$n-pr*$n-vn*Un),lr=Oi-uo,Jt=Oi-lr,Df[0]=Oi-(lr+Jt)+(Jt-uo),Hr=Mr+lr,Jt=Hr-Mr,Br=Mr-(Hr-Jt)+(lr-Jt),lr=Br-Yi,Jt=Br-lr,Df[1]=Br-(lr+Jt)+(Jt-Yi),Io=Hr+lr,Jt=Io-Hr,Df[2]=Hr-(Io-Jt)+(lr-Jt),Df[3]=Io;const Hi=gl(4,Wc,4,Df,Mf);Mr=ua*It,Nt=Uu*ua,vn=Nt-(Nt-ua),pr=ua-vn,Nt=Uu*It,$n=Nt-(Nt-It),Un=It-$n,Oi=pr*Un-(Mr-vn*$n-pr*$n-vn*Un),Yi=Lo*ot,Nt=Uu*Lo,vn=Nt-(Nt-Lo),pr=Lo-vn,Nt=Uu*ot,$n=Nt-(Nt-ot),Un=ot-$n,uo=pr*Un-(Yi-vn*$n-pr*$n-vn*Un),lr=Oi-uo,Jt=Oi-lr,Df[0]=Oi-(lr+Jt)+(Jt-uo),Hr=Mr+lr,Jt=Hr-Mr,Br=Mr-(Hr-Jt)+(lr-Jt),lr=Br-Yi,Jt=Br-lr,Df[1]=Br-(lr+Jt)+(Jt-Yi),Io=Hr+lr,Jt=Io-Hr,Df[2]=Hr-(Io-Jt)+(lr-Jt),Df[3]=Io;const no=gl(Hi,Mf,4,Df,wd);Mr=Je*It,Nt=Uu*Je,vn=Nt-(Nt-Je),pr=Je-vn,Nt=Uu*It,$n=Nt-(Nt-It),Un=It-$n,Oi=pr*Un-(Mr-vn*$n-pr*$n-vn*Un),Yi=Et*ot,Nt=Uu*Et,vn=Nt-(Nt-Et),pr=Et-vn,Nt=Uu*ot,$n=Nt-(Nt-ot),Un=ot-$n,uo=pr*Un-(Yi-vn*$n-pr*$n-vn*Un),lr=Oi-uo,Jt=Oi-lr,Df[0]=Oi-(lr+Jt)+(Jt-uo),Hr=Mr+lr,Jt=Hr-Mr,Br=Mr-(Hr-Jt)+(lr-Jt),lr=Br-Yi,Jt=Br-lr,Df[1]=Br-(lr+Jt)+(Jt-Yi),Io=Hr+lr,Jt=Io-Hr,Df[2]=Hr-(Io-Jt)+(lr-Jt),Df[3]=Io;const jo=gl(no,wd,4,Df,mf);return mf[jo-1]}function Ed(c,E,C,k,q,we){const Be=(E-we)*(C-q),Je=(c-q)*(k-we),Et=Be-Je;if(Be===0||Je===0||Be>0!=Je>0)return Et;const ot=Math.abs(Be+Je);return Math.abs(Et)>=Kc*ot?Et:-Ah(c,E,C,k,q,we,ot)}function $f(c,E,C,k,q,we){return(E-we)*(C-q)-(c-q)*(k-we)}const Dc=(7+56*iu)*iu,_f=(3+28*iu)*iu,wf=(26+288*iu)*iu*iu,Uf=Ps(4),Wd=Ps(4),Ff=Ps(4),Qd=Ps(4),Nd=Ps(4),Wf=Ps(4),nh=Ps(4),Ze=Ps(4),lt=Ps(4),Kt=Ps(8),Bn=Ps(8),Ar=Ps(8),Tr=Ps(4),Yr=Ps(8),qr=Ps(8),qi=Ps(8),Co=Ps(12);let _o=Ps(192),go=Ps(192);function mo(c,E,C){c=sum(c,_o,E,C,go);const k=_o;return _o=go,go=k,c}function Bo(c,E,C,k,q,we,Be,Je){let Et,ot,It,Jt,Nt,vn,pr,$n,Un,lr,Hr,Br,Mr,Oi,Yi,uo;return c===0?E===0?(Be[0]=0,Je[0]=0,1):(uo=-E,Hr=uo*C,ot=splitter*uo,It=ot-(ot-uo),Jt=uo-It,ot=splitter*C,Nt=ot-(ot-C),vn=C-Nt,Be[0]=Jt*vn-(Hr-It*Nt-Jt*Nt-It*vn),Be[1]=Hr,Hr=E*q,ot=splitter*E,It=ot-(ot-E),Jt=E-It,ot=splitter*q,Nt=ot-(ot-q),vn=q-Nt,Je[0]=Jt*vn-(Hr-It*Nt-Jt*Nt-It*vn),Je[1]=Hr,2):E===0?(Hr=c*k,ot=splitter*c,It=ot-(ot-c),Jt=c-It,ot=splitter*k,Nt=ot-(ot-k),vn=k-Nt,Be[0]=Jt*vn-(Hr-It*Nt-Jt*Nt-It*vn),Be[1]=Hr,uo=-c,Hr=uo*we,ot=splitter*uo,It=ot-(ot-uo),Jt=uo-It,ot=splitter*we,Nt=ot-(ot-we),vn=we-Nt,Je[0]=Jt*vn-(Hr-It*Nt-Jt*Nt-It*vn),Je[1]=Hr,2):(Hr=c*k,ot=splitter*c,It=ot-(ot-c),Jt=c-It,ot=splitter*k,Nt=ot-(ot-k),vn=k-Nt,Br=Jt*vn-(Hr-It*Nt-Jt*Nt-It*vn),Mr=E*C,ot=splitter*E,It=ot-(ot-E),Jt=E-It,ot=splitter*C,Nt=ot-(ot-C),vn=C-Nt,Oi=Jt*vn-(Mr-It*Nt-Jt*Nt-It*vn),pr=Br-Oi,Et=Br-pr,Be[0]=Br-(pr+Et)+(Et-Oi),$n=Hr+pr,Et=$n-Hr,lr=Hr-($n-Et)+(pr-Et),pr=lr-Mr,Et=lr-pr,Be[1]=lr-(pr+Et)+(Et-Mr),Yi=$n+pr,Et=Yi-$n,Be[2]=$n-(Yi-Et)+(pr-Et),Be[3]=Yi,Hr=E*q,ot=splitter*E,It=ot-(ot-E),Jt=E-It,ot=splitter*q,Nt=ot-(ot-q),vn=q-Nt,Br=Jt*vn-(Hr-It*Nt-Jt*Nt-It*vn),Mr=c*we,ot=splitter*c,It=ot-(ot-c),Jt=c-It,ot=splitter*we,Nt=ot-(ot-we),vn=we-Nt,Oi=Jt*vn-(Mr-It*Nt-Jt*Nt-It*vn),pr=Br-Oi,Et=Br-pr,Je[0]=Br-(pr+Et)+(Et-Oi),$n=Hr+pr,Et=$n-Hr,lr=Hr-($n-Et)+(pr-Et),pr=lr-Mr,Et=lr-pr,Je[1]=lr-(pr+Et)+(Et-Mr),Yi=$n+pr,Et=Yi-$n,Je[2]=$n-(Yi-Et)+(pr-Et),Je[3]=Yi,4)}function Ba(c,E,C,k,q){let we,Be,Je,Et,ot,It,Jt,Nt,vn,pr,$n,Un,lr;return $n=E*C,Be=splitter*E,Je=Be-(Be-E),Et=E-Je,Be=splitter*C,ot=Be-(Be-C),It=C-ot,Un=Et*It-($n-Je*ot-Et*ot-Je*It),Be=splitter*k,ot=Be-(Be-k),It=k-ot,Jt=Un*k,Be=splitter*Un,Je=Be-(Be-Un),Et=Un-Je,Tr[0]=Et*It-(Jt-Je*ot-Et*ot-Je*It),Nt=$n*k,Be=splitter*$n,Je=Be-(Be-$n),Et=$n-Je,pr=Et*It-(Nt-Je*ot-Et*ot-Je*It),vn=Jt+pr,we=vn-Jt,Tr[1]=Jt-(vn-we)+(pr-we),lr=Nt+vn,Tr[2]=vn-(lr-Nt),Tr[3]=lr,c=mo(c,4,Tr),q!==0&&(Be=splitter*q,ot=Be-(Be-q),It=q-ot,Jt=Un*q,Be=splitter*Un,Je=Be-(Be-Un),Et=Un-Je,Tr[0]=Et*It-(Jt-Je*ot-Et*ot-Je*It),Nt=$n*q,Be=splitter*$n,Je=Be-(Be-$n),Et=$n-Je,pr=Et*It-(Nt-Je*ot-Et*ot-Je*It),vn=Jt+pr,we=vn-Jt,Tr[1]=Jt-(vn-we)+(pr-we),lr=Nt+vn,Tr[2]=vn-(lr-Nt),Tr[3]=lr,c=mo(c,4,Tr)),c}function Bs(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt){let vn,pr,$n,Un,lr,Hr,Br,Mr,Oi,Yi,uo,Io,ua,To,Lo,Ta,da,Zr,Hi,no,jo,oo,zo,Oo,ma;const ka=c-ot,os=k-ot,es=Be-ot,gs=E-It,Zs=q-It,As=Je-It,_u=C-Jt,Cs=we-Jt,Js=Et-Jt;jo=os*As,Io=splitter*os,ua=Io-(Io-os),To=os-ua,Io=splitter*As,Lo=Io-(Io-As),Ta=As-Lo,oo=To*Ta-(jo-ua*Lo-To*Lo-ua*Ta),zo=es*Zs,Io=splitter*es,ua=Io-(Io-es),To=es-ua,Io=splitter*Zs,Lo=Io-(Io-Zs),Ta=Zs-Lo,Oo=To*Ta-(zo-ua*Lo-To*Lo-ua*Ta),da=oo-Oo,uo=oo-da,Uf[0]=oo-(da+uo)+(uo-Oo),Zr=jo+da,uo=Zr-jo,no=jo-(Zr-uo)+(da-uo),da=no-zo,uo=no-da,Uf[1]=no-(da+uo)+(uo-zo),ma=Zr+da,uo=ma-Zr,Uf[2]=Zr-(ma-uo)+(da-uo),Uf[3]=ma,jo=es*gs,Io=splitter*es,ua=Io-(Io-es),To=es-ua,Io=splitter*gs,Lo=Io-(Io-gs),Ta=gs-Lo,oo=To*Ta-(jo-ua*Lo-To*Lo-ua*Ta),zo=ka*As,Io=splitter*ka,ua=Io-(Io-ka),To=ka-ua,Io=splitter*As,Lo=Io-(Io-As),Ta=As-Lo,Oo=To*Ta-(zo-ua*Lo-To*Lo-ua*Ta),da=oo-Oo,uo=oo-da,Wd[0]=oo-(da+uo)+(uo-Oo),Zr=jo+da,uo=Zr-jo,no=jo-(Zr-uo)+(da-uo),da=no-zo,uo=no-da,Wd[1]=no-(da+uo)+(uo-zo),ma=Zr+da,uo=ma-Zr,Wd[2]=Zr-(ma-uo)+(da-uo),Wd[3]=ma,jo=ka*Zs,Io=splitter*ka,ua=Io-(Io-ka),To=ka-ua,Io=splitter*Zs,Lo=Io-(Io-Zs),Ta=Zs-Lo,oo=To*Ta-(jo-ua*Lo-To*Lo-ua*Ta),zo=os*gs,Io=splitter*os,ua=Io-(Io-os),To=os-ua,Io=splitter*gs,Lo=Io-(Io-gs),Ta=gs-Lo,Oo=To*Ta-(zo-ua*Lo-To*Lo-ua*Ta),da=oo-Oo,uo=oo-da,Ff[0]=oo-(da+uo)+(uo-Oo),Zr=jo+da,uo=Zr-jo,no=jo-(Zr-uo)+(da-uo),da=no-zo,uo=no-da,Ff[1]=no-(da+uo)+(uo-zo),ma=Zr+da,uo=ma-Zr,Ff[2]=Zr-(ma-uo)+(da-uo),Ff[3]=ma,vn=sum(sum(scale(4,Uf,_u,Yr),Yr,scale(4,Wd,Cs,qr),qr,qi),qi,scale(4,Ff,Js,Yr),Yr,_o);let au=estimate(vn,_o),cs=_f*Nt;if(au>=cs||-au>=cs||(uo=c-ka,pr=c-(ka+uo)+(uo-ot),uo=k-os,$n=k-(os+uo)+(uo-ot),uo=Be-es,Un=Be-(es+uo)+(uo-ot),uo=E-gs,lr=E-(gs+uo)+(uo-It),uo=q-Zs,Hr=q-(Zs+uo)+(uo-It),uo=Je-As,Br=Je-(As+uo)+(uo-It),uo=C-_u,Mr=C-(_u+uo)+(uo-Jt),uo=we-Cs,Oi=we-(Cs+uo)+(uo-Jt),uo=Et-Js,Yi=Et-(Js+uo)+(uo-Jt),pr===0&&$n===0&&Un===0&&lr===0&&Hr===0&&Br===0&&Mr===0&&Oi===0&&Yi===0)||(cs=wf*Nt+resulterrbound*Math.abs(au),au+=_u*(os*Br+As*$n-(Zs*Un+es*Hr))+Mr*(os*As-Zs*es)+Cs*(es*lr+gs*Un-(As*pr+ka*Br))+Oi*(es*gs-As*ka)+Js*(ka*Hr+Zs*pr-(gs*$n+os*lr))+Yi*(ka*Zs-gs*os),au>=cs||-au>=cs))return au;const Fu=Bo(pr,lr,os,Zs,es,As,Qd,Nd),Sl=Bo($n,Hr,es,As,ka,gs,Wf,nh),mc=Bo(Un,Br,ka,gs,os,Zs,Ze,lt),Nl=sum(Sl,Wf,mc,lt,Kt);vn=mo(vn,scale(Nl,Kt,_u,qi),qi);const Su=sum(mc,Ze,Fu,Nd,Bn);vn=mo(vn,scale(Su,Bn,Cs,qi),qi);const cc=sum(Fu,Qd,Sl,nh,Ar);return vn=mo(vn,scale(cc,Ar,Js,qi),qi),Mr!==0&&(vn=mo(vn,scale(4,Uf,Mr,Co),Co),vn=mo(vn,scale(Nl,Kt,Mr,qi),qi)),Oi!==0&&(vn=mo(vn,scale(4,Wd,Oi,Co),Co),vn=mo(vn,scale(Su,Bn,Oi,qi),qi)),Yi!==0&&(vn=mo(vn,scale(4,Ff,Yi,Co),Co),vn=mo(vn,scale(cc,Ar,Yi,qi),qi)),pr!==0&&(Hr!==0&&(vn=Ba(vn,pr,Hr,Js,Yi)),Br!==0&&(vn=Ba(vn,-pr,Br,Cs,Oi))),$n!==0&&(Br!==0&&(vn=Ba(vn,$n,Br,_u,Mr)),lr!==0&&(vn=Ba(vn,-$n,lr,Js,Yi))),Un!==0&&(lr!==0&&(vn=Ba(vn,Un,lr,Cs,Oi)),Hr!==0&&(vn=Ba(vn,-Un,Hr,_u,Mr))),_o[vn-1]}function Xs(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt){const Nt=c-ot,vn=k-ot,pr=Be-ot,$n=E-It,Un=q-It,lr=Je-It,Hr=C-Jt,Br=we-Jt,Mr=Et-Jt,Oi=vn*lr,Yi=pr*Un,uo=pr*$n,Io=Nt*lr,ua=Nt*Un,To=vn*$n,Lo=Hr*(Oi-Yi)+Br*(uo-Io)+Mr*(ua-To),Ta=(Math.abs(Oi)+Math.abs(Yi))*Math.abs(Hr)+(Math.abs(uo)+Math.abs(Io))*Math.abs(Br)+(Math.abs(ua)+Math.abs(To))*Math.abs(Mr),da=Dc*Ta;return Lo>da||-Lo>da?Lo:Bs(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Ta)}function lu(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt){const Nt=c-ot,vn=k-ot,pr=Be-ot,$n=E-It,Un=q-It,lr=Je-It,Hr=C-Jt,Br=we-Jt,Mr=Et-Jt;return Nt*(Un*Mr-Br*lr)+vn*(lr*Hr-Mr*$n)+pr*($n*Br-Hr*Un)}const Cu=(10+96*iu)*iu,yu=(4+48*iu)*iu,Ku=(44+576*iu)*iu*iu,yl=Ps(4),$u=Ps(4),Cl=Ps(4),Tc=Ps(4),xl=Ps(4),Dl=Ps(4),ec=Ps(4),Oc=Ps(4),zf=Ps(8),Sd=Ps(8),Bf=Ps(8),Yf=Ps(8),Lc=Ps(8),dd=Ps(8),af=Ps(8),Of=Ps(8),Ad=Ps(8),hd=Ps(4),ed=Ps(4),Fd=Ps(4),ku=Ps(8),el=Ps(16),Ec=Ps(16),hc=Ps(16),uc=Ps(32),td=Ps(32),sf=Ps(48),pd=Ps(64);let ch=Ps(1152),fh=Ps(1152);function Cf(c,E,C){c=sum(c,ch,E,C,fh);const k=ch;return ch=fh,fh=k,c}function op(c,E,C,k,q,we,Be,Je,Et){let ot,It,Jt,Nt,vn,pr,$n,Un,lr,Hr,Br,Mr,Oi,Yi,uo,Io,ua,To,Lo,Ta,da,Zr,Hi,no,jo,oo,zo,Oo,ma,ka,os,es,gs,Zs,As;const _u=c-Be,Cs=C-Be,Js=q-Be,au=E-Je,cs=k-Je,Fu=we-Je;os=Cs*Fu,Hi=splitter*Cs,no=Hi-(Hi-Cs),jo=Cs-no,Hi=splitter*Fu,oo=Hi-(Hi-Fu),zo=Fu-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Js*cs,Hi=splitter*Js,no=Hi-(Hi-Js),jo=Js-no,Hi=splitter*cs,oo=Hi-(Hi-cs),zo=cs-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es-Zs,Zr=es-Oo,yl[0]=es-(Oo+Zr)+(Zr-Zs),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka-gs,Zr=ka-Oo,yl[1]=ka-(Oo+Zr)+(Zr-gs),As=ma+Oo,Zr=As-ma,yl[2]=ma-(As-Zr)+(Oo-Zr),yl[3]=As,os=Js*au,Hi=splitter*Js,no=Hi-(Hi-Js),jo=Js-no,Hi=splitter*au,oo=Hi-(Hi-au),zo=au-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=_u*Fu,Hi=splitter*_u,no=Hi-(Hi-_u),jo=_u-no,Hi=splitter*Fu,oo=Hi-(Hi-Fu),zo=Fu-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es-Zs,Zr=es-Oo,$u[0]=es-(Oo+Zr)+(Zr-Zs),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka-gs,Zr=ka-Oo,$u[1]=ka-(Oo+Zr)+(Zr-gs),As=ma+Oo,Zr=As-ma,$u[2]=ma-(As-Zr)+(Oo-Zr),$u[3]=As,os=_u*cs,Hi=splitter*_u,no=Hi-(Hi-_u),jo=_u-no,Hi=splitter*cs,oo=Hi-(Hi-cs),zo=cs-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Cs*au,Hi=splitter*Cs,no=Hi-(Hi-Cs),jo=Cs-no,Hi=splitter*au,oo=Hi-(Hi-au),zo=au-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es-Zs,Zr=es-Oo,Cl[0]=es-(Oo+Zr)+(Zr-Zs),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka-gs,Zr=ka-Oo,Cl[1]=ka-(Oo+Zr)+(Zr-gs),As=ma+Oo,Zr=As-ma,Cl[2]=ma-(As-Zr)+(Oo-Zr),Cl[3]=As,ot=sum(sum(sum(scale(scale(4,yl,_u,ku),ku,_u,el),el,scale(scale(4,yl,au,ku),ku,au,Ec),Ec,uc),uc,sum(scale(scale(4,$u,Cs,ku),ku,Cs,el),el,scale(scale(4,$u,cs,ku),ku,cs,Ec),Ec,td),td,pd),pd,sum(scale(scale(4,Cl,Js,ku),ku,Js,el),el,scale(scale(4,Cl,Fu,ku),ku,Fu,Ec),Ec,uc),uc,ch);let Sl=estimate(ot,ch),mc=yu*Et;if(Sl>=mc||-Sl>=mc||(Zr=c-_u,It=c-(_u+Zr)+(Zr-Be),Zr=E-au,vn=E-(au+Zr)+(Zr-Je),Zr=C-Cs,Jt=C-(Cs+Zr)+(Zr-Be),Zr=k-cs,pr=k-(cs+Zr)+(Zr-Je),Zr=q-Js,Nt=q-(Js+Zr)+(Zr-Be),Zr=we-Fu,$n=we-(Fu+Zr)+(Zr-Je),It===0&&Jt===0&&Nt===0&&vn===0&&pr===0&&$n===0)||(mc=Ku*Et+resulterrbound*Math.abs(Sl),Sl+=(_u*_u+au*au)*(Cs*$n+Fu*Jt-(cs*Nt+Js*pr))+2*(_u*It+au*vn)*(Cs*Fu-cs*Js)+((Cs*Cs+cs*cs)*(Js*vn+au*Nt-(Fu*It+_u*$n))+2*(Cs*Jt+cs*pr)*(Js*au-Fu*_u))+((Js*Js+Fu*Fu)*(_u*pr+cs*It-(au*Jt+Cs*vn))+2*(Js*Nt+Fu*$n)*(_u*cs-au*Cs)),Sl>=mc||-Sl>=mc))return Sl;if((Jt!==0||pr!==0||Nt!==0||$n!==0)&&(os=_u*_u,Hi=splitter*_u,no=Hi-(Hi-_u),jo=_u-no,es=jo*jo-(os-no*no-(no+no)*jo),gs=au*au,Hi=splitter*au,no=Hi-(Hi-au),jo=au-no,Zs=jo*jo-(gs-no*no-(no+no)*jo),Oo=es+Zs,Zr=Oo-es,Tc[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,Tc[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,Tc[2]=ma-(As-Zr)+(Oo-Zr),Tc[3]=As),(Nt!==0||$n!==0||It!==0||vn!==0)&&(os=Cs*Cs,Hi=splitter*Cs,no=Hi-(Hi-Cs),jo=Cs-no,es=jo*jo-(os-no*no-(no+no)*jo),gs=cs*cs,Hi=splitter*cs,no=Hi-(Hi-cs),jo=cs-no,Zs=jo*jo-(gs-no*no-(no+no)*jo),Oo=es+Zs,Zr=Oo-es,xl[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,xl[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,xl[2]=ma-(As-Zr)+(Oo-Zr),xl[3]=As),(It!==0||vn!==0||Jt!==0||pr!==0)&&(os=Js*Js,Hi=splitter*Js,no=Hi-(Hi-Js),jo=Js-no,es=jo*jo-(os-no*no-(no+no)*jo),gs=Fu*Fu,Hi=splitter*Fu,no=Hi-(Hi-Fu),jo=Fu-no,Zs=jo*jo-(gs-no*no-(no+no)*jo),Oo=es+Zs,Zr=Oo-es,Dl[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,Dl[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,Dl[2]=ma-(As-Zr)+(Oo-Zr),Dl[3]=As),It!==0&&(Un=scale(4,yl,It,zf),ot=Cf(ot,sum_three(scale(Un,zf,2*_u,el),el,scale(scale(4,Dl,It,ku),ku,cs,Ec),Ec,scale(scale(4,xl,It,ku),ku,-Fu,hc),hc,uc,sf),sf)),vn!==0&&(lr=scale(4,yl,vn,Sd),ot=Cf(ot,sum_three(scale(lr,Sd,2*au,el),el,scale(scale(4,xl,vn,ku),ku,Js,Ec),Ec,scale(scale(4,Dl,vn,ku),ku,-Cs,hc),hc,uc,sf),sf)),Jt!==0&&(Hr=scale(4,$u,Jt,Bf),ot=Cf(ot,sum_three(scale(Hr,Bf,2*Cs,el),el,scale(scale(4,Tc,Jt,ku),ku,Fu,Ec),Ec,scale(scale(4,Dl,Jt,ku),ku,-au,hc),hc,uc,sf),sf)),pr!==0&&(Br=scale(4,$u,pr,Yf),ot=Cf(ot,sum_three(scale(Br,Yf,2*cs,el),el,scale(scale(4,Dl,pr,ku),ku,_u,Ec),Ec,scale(scale(4,Tc,pr,ku),ku,-Js,hc),hc,uc,sf),sf)),Nt!==0&&(Mr=scale(4,Cl,Nt,Lc),ot=Cf(ot,sum_three(scale(Mr,Lc,2*Js,el),el,scale(scale(4,xl,Nt,ku),ku,au,Ec),Ec,scale(scale(4,Tc,Nt,ku),ku,-cs,hc),hc,uc,sf),sf)),$n!==0&&(Oi=scale(4,Cl,$n,dd),ot=Cf(ot,sum_three(scale(Oi,dd,2*Fu,el),el,scale(scale(4,Tc,$n,ku),ku,Cs,Ec),Ec,scale(scale(4,xl,$n,ku),ku,-_u,hc),hc,uc,sf),sf)),It!==0||vn!==0){if(Jt!==0||pr!==0||Nt!==0||$n!==0?(os=Jt*Fu,Hi=splitter*Jt,no=Hi-(Hi-Jt),jo=Jt-no,Hi=splitter*Fu,oo=Hi-(Hi-Fu),zo=Fu-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Cs*$n,Hi=splitter*Cs,no=Hi-(Hi-Cs),jo=Cs-no,Hi=splitter*$n,oo=Hi-(Hi-$n),zo=$n-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es+Zs,Zr=Oo-es,ec[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,ec[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,ec[2]=ma-(As-Zr)+(Oo-Zr),ec[3]=As,os=Nt*-cs,Hi=splitter*Nt,no=Hi-(Hi-Nt),jo=Nt-no,Hi=splitter*-cs,oo=Hi-(Hi- -cs),zo=-cs-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Js*-pr,Hi=splitter*Js,no=Hi-(Hi-Js),jo=Js-no,Hi=splitter*-pr,oo=Hi-(Hi- -pr),zo=-pr-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es+Zs,Zr=Oo-es,Oc[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,Oc[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,Oc[2]=ma-(As-Zr)+(Oo-Zr),Oc[3]=As,uo=sum(4,ec,4,Oc,Of),os=Jt*$n,Hi=splitter*Jt,no=Hi-(Hi-Jt),jo=Jt-no,Hi=splitter*$n,oo=Hi-(Hi-$n),zo=$n-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Nt*pr,Hi=splitter*Nt,no=Hi-(Hi-Nt),jo=Nt-no,Hi=splitter*pr,oo=Hi-(Hi-pr),zo=pr-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es-Zs,Zr=es-Oo,ed[0]=es-(Oo+Zr)+(Zr-Zs),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka-gs,Zr=ka-Oo,ed[1]=ka-(Oo+Zr)+(Zr-gs),As=ma+Oo,Zr=As-ma,ed[2]=ma-(As-Zr)+(Oo-Zr),ed[3]=As,To=4):(Of[0]=0,uo=1,ed[0]=0,To=1),It!==0){const Nl=scale(uo,Of,It,hc);ot=Cf(ot,sum(scale(Un,zf,It,el),el,scale(Nl,hc,2*_u,uc),uc,sf),sf);const Su=scale(To,ed,It,ku);ot=Cf(ot,sum_three(scale(Su,ku,2*_u,el),el,scale(Su,ku,It,Ec),Ec,scale(Nl,hc,It,uc),uc,td,pd),pd),pr!==0&&(ot=Cf(ot,scale(scale(4,Dl,It,ku),ku,pr,el),el)),$n!==0&&(ot=Cf(ot,scale(scale(4,xl,-It,ku),ku,$n,el),el))}if(vn!==0){const Nl=scale(uo,Of,vn,hc);ot=Cf(ot,sum(scale(lr,Sd,vn,el),el,scale(Nl,hc,2*au,uc),uc,sf),sf);const Su=scale(To,ed,vn,ku);ot=Cf(ot,sum_three(scale(Su,ku,2*au,el),el,scale(Su,ku,vn,Ec),Ec,scale(Nl,hc,vn,uc),uc,td,pd),pd)}}if(Jt!==0||pr!==0){if(Nt!==0||$n!==0||It!==0||vn!==0?(os=Nt*au,Hi=splitter*Nt,no=Hi-(Hi-Nt),jo=Nt-no,Hi=splitter*au,oo=Hi-(Hi-au),zo=au-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Js*vn,Hi=splitter*Js,no=Hi-(Hi-Js),jo=Js-no,Hi=splitter*vn,oo=Hi-(Hi-vn),zo=vn-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es+Zs,Zr=Oo-es,ec[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,ec[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,ec[2]=ma-(As-Zr)+(Oo-Zr),ec[3]=As,Ta=-Fu,da=-$n,os=It*Ta,Hi=splitter*It,no=Hi-(Hi-It),jo=It-no,Hi=splitter*Ta,oo=Hi-(Hi-Ta),zo=Ta-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=_u*da,Hi=splitter*_u,no=Hi-(Hi-_u),jo=_u-no,Hi=splitter*da,oo=Hi-(Hi-da),zo=da-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es+Zs,Zr=Oo-es,Oc[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,Oc[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,Oc[2]=ma-(As-Zr)+(Oo-Zr),Oc[3]=As,Io=sum(4,ec,4,Oc,Ad),os=Nt*vn,Hi=splitter*Nt,no=Hi-(Hi-Nt),jo=Nt-no,Hi=splitter*vn,oo=Hi-(Hi-vn),zo=vn-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=It*$n,Hi=splitter*It,no=Hi-(Hi-It),jo=It-no,Hi=splitter*$n,oo=Hi-(Hi-$n),zo=$n-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es-Zs,Zr=es-Oo,Fd[0]=es-(Oo+Zr)+(Zr-Zs),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka-gs,Zr=ka-Oo,Fd[1]=ka-(Oo+Zr)+(Zr-gs),As=ma+Oo,Zr=As-ma,Fd[2]=ma-(As-Zr)+(Oo-Zr),Fd[3]=As,Lo=4):(Ad[0]=0,Io=1,Fd[0]=0,Lo=1),Jt!==0){const Nl=scale(Io,Ad,Jt,hc);ot=Cf(ot,sum(scale(Hr,Bf,Jt,el),el,scale(Nl,hc,2*Cs,uc),uc,sf),sf);const Su=scale(Lo,Fd,Jt,ku);ot=Cf(ot,sum_three(scale(Su,ku,2*Cs,el),el,scale(Su,ku,Jt,Ec),Ec,scale(Nl,hc,Jt,uc),uc,td,pd),pd),$n!==0&&(ot=Cf(ot,scale(scale(4,Tc,Jt,ku),ku,$n,el),el)),vn!==0&&(ot=Cf(ot,scale(scale(4,Dl,-Jt,ku),ku,vn,el),el))}if(pr!==0){const Nl=scale(Io,Ad,pr,hc);ot=Cf(ot,sum(scale(Br,Yf,pr,el),el,scale(Nl,hc,2*cs,uc),uc,sf),sf);const Su=scale(Lo,Fd,pr,ku);ot=Cf(ot,sum_three(scale(Su,ku,2*cs,el),el,scale(Su,ku,pr,Ec),Ec,scale(Nl,hc,pr,uc),uc,td,pd),pd)}}if(Nt!==0||$n!==0){if(It!==0||vn!==0||Jt!==0||pr!==0?(os=It*cs,Hi=splitter*It,no=Hi-(Hi-It),jo=It-no,Hi=splitter*cs,oo=Hi-(Hi-cs),zo=cs-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=_u*pr,Hi=splitter*_u,no=Hi-(Hi-_u),jo=_u-no,Hi=splitter*pr,oo=Hi-(Hi-pr),zo=pr-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es+Zs,Zr=Oo-es,ec[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,ec[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,ec[2]=ma-(As-Zr)+(Oo-Zr),ec[3]=As,Ta=-au,da=-vn,os=Jt*Ta,Hi=splitter*Jt,no=Hi-(Hi-Jt),jo=Jt-no,Hi=splitter*Ta,oo=Hi-(Hi-Ta),zo=Ta-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Cs*da,Hi=splitter*Cs,no=Hi-(Hi-Cs),jo=Cs-no,Hi=splitter*da,oo=Hi-(Hi-da),zo=da-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es+Zs,Zr=Oo-es,Oc[0]=es-(Oo-Zr)+(Zs-Zr),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka+gs,Zr=Oo-ka,Oc[1]=ka-(Oo-Zr)+(gs-Zr),As=ma+Oo,Zr=As-ma,Oc[2]=ma-(As-Zr)+(Oo-Zr),Oc[3]=As,Yi=sum(4,ec,4,Oc,af),os=It*pr,Hi=splitter*It,no=Hi-(Hi-It),jo=It-no,Hi=splitter*pr,oo=Hi-(Hi-pr),zo=pr-oo,es=jo*zo-(os-no*oo-jo*oo-no*zo),gs=Jt*vn,Hi=splitter*Jt,no=Hi-(Hi-Jt),jo=Jt-no,Hi=splitter*vn,oo=Hi-(Hi-vn),zo=vn-oo,Zs=jo*zo-(gs-no*oo-jo*oo-no*zo),Oo=es-Zs,Zr=es-Oo,hd[0]=es-(Oo+Zr)+(Zr-Zs),ma=os+Oo,Zr=ma-os,ka=os-(ma-Zr)+(Oo-Zr),Oo=ka-gs,Zr=ka-Oo,hd[1]=ka-(Oo+Zr)+(Zr-gs),As=ma+Oo,Zr=As-ma,hd[2]=ma-(As-Zr)+(Oo-Zr),hd[3]=As,ua=4):(af[0]=0,Yi=1,hd[0]=0,ua=1),Nt!==0){const Nl=scale(Yi,af,Nt,hc);ot=Cf(ot,sum(scale(Mr,Lc,Nt,el),el,scale(Nl,hc,2*Js,uc),uc,sf),sf);const Su=scale(ua,hd,Nt,ku);ot=Cf(ot,sum_three(scale(Su,ku,2*Js,el),el,scale(Su,ku,Nt,Ec),Ec,scale(Nl,hc,Nt,uc),uc,td,pd),pd),vn!==0&&(ot=Cf(ot,scale(scale(4,xl,Nt,ku),ku,vn,el),el)),pr!==0&&(ot=Cf(ot,scale(scale(4,Tc,-Nt,ku),ku,pr,el),el))}if($n!==0){const Nl=scale(Yi,af,$n,hc);ot=Cf(ot,sum(scale(Oi,dd,$n,el),el,scale(Nl,hc,2*Fu,uc),uc,sf),sf);const Su=scale(ua,hd,$n,ku);ot=Cf(ot,sum_three(scale(Su,ku,2*Fu,el),el,scale(Su,ku,$n,Ec),Ec,scale(Nl,hc,$n,uc),uc,td,pd),pd)}}return ch[ot-1]}function np(c,E,C,k,q,we,Be,Je){const Et=c-Be,ot=C-Be,It=q-Be,Jt=E-Je,Nt=k-Je,vn=we-Je,pr=ot*vn,$n=It*Nt,Un=Et*Et+Jt*Jt,lr=It*Jt,Hr=Et*vn,Br=ot*ot+Nt*Nt,Mr=Et*Nt,Oi=ot*Jt,Yi=It*It+vn*vn,uo=Un*(pr-$n)+Br*(lr-Hr)+Yi*(Mr-Oi),Io=(Math.abs(pr)+Math.abs($n))*Un+(Math.abs(lr)+Math.abs(Hr))*Br+(Math.abs(Mr)+Math.abs(Oi))*Yi,ua=Cu*Io;return uo>ua||-uo>ua?uo:op(c,E,C,k,q,we,Be,Je,Io)}function Wi(c,E,C,k,q,we,Be,Je){const Et=c-Be,ot=E-Je,It=C-Be,Jt=k-Je,Nt=q-Be,vn=we-Je,pr=Et*Jt-It*ot,$n=It*vn-Nt*Jt,Un=Nt*ot-Et*vn,lr=Et*Et+ot*ot,Hr=It*It+Jt*Jt,Br=Nt*Nt+vn*vn;return lr*$n+Hr*Un+Br*pr}const Oa=(16+224*iu)*iu,Ca=(5+72*iu)*iu,Es=(71+1408*iu)*iu*iu,Ss=Ps(4),ds=Ps(4),Ha=Ps(4),bs=Ps(4),Qs=Ps(4),vu=Ps(4),Nu=Ps(4),zl=Ps(4),bl=Ps(4),tl=Ps(4),lc=Ps(24),qc=Ps(24),df=Ps(24),uf=Ps(24),Jd=Ps(24),dh=Ps(24),Ph=Ps(24),th=Ps(24),Vh=Ps(24),rh=Ps(24),Th=Ps(1152),Bh=Ps(1152),Rh=Ps(1152),wh=Ps(1152),yp=Ps(1152),Ip=Ps(2304),rp=Ps(2304),ev=Ps(3456),bp=Ps(5760),Lp=Ps(8),wp=Ps(8),kp=Ps(8),Np=Ps(16),Xh=Ps(24),Qh=Ps(48),ap=Ps(48),Fp=Ps(96),Mh=Ps(192),yv=Ps(384),Ep=Ps(384),x=Ps(384),$=Ps(768);function je(c,E,C,k,q,we,Be){return sum_three(scale(4,c,k,Lp),Lp,scale(4,E,q,wp),wp,scale(4,C,we,kp),kp,Np,Be)}function Mt(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt){const Nt=sum(sum(c,E,C,k,Qh),Qh,negate(sum(q,we,Be,Je,ap),ap),ap,Fp);return sum_three(scale(scale(Nt,Fp,Et,Mh),Mh,Et,yv),yv,scale(scale(Nt,Fp,ot,Mh),Mh,ot,Ep),Ep,scale(scale(Nt,Fp,It,Mh),Mh,It,x),x,$,Jt)}function Tn(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr){let $n,Un,lr,Hr,Br,Mr,Oi,Yi,uo,Io,ua,To,Lo,Ta;Io=c*q,Un=splitter*c,lr=Un-(Un-c),Hr=c-lr,Un=splitter*q,Br=Un-(Un-q),Mr=q-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=k*E,Un=splitter*k,lr=Un-(Un-k),Hr=k-lr,Un=splitter*E,Br=Un-(Un-E),Mr=E-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,Ss[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,Ss[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,Ss[2]=Yi-(Ta-$n)+(Oi-$n),Ss[3]=Ta,Io=k*Je,Un=splitter*k,lr=Un-(Un-k),Hr=k-lr,Un=splitter*Je,Br=Un-(Un-Je),Mr=Je-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=Be*q,Un=splitter*Be,lr=Un-(Un-Be),Hr=Be-lr,Un=splitter*q,Br=Un-(Un-q),Mr=q-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,ds[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,ds[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,ds[2]=Yi-(Ta-$n)+(Oi-$n),ds[3]=Ta,Io=Be*It,Un=splitter*Be,lr=Un-(Un-Be),Hr=Be-lr,Un=splitter*It,Br=Un-(Un-It),Mr=It-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=ot*Je,Un=splitter*ot,lr=Un-(Un-ot),Hr=ot-lr,Un=splitter*Je,Br=Un-(Un-Je),Mr=Je-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,Ha[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,Ha[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,Ha[2]=Yi-(Ta-$n)+(Oi-$n),Ha[3]=Ta,Io=ot*vn,Un=splitter*ot,lr=Un-(Un-ot),Hr=ot-lr,Un=splitter*vn,Br=Un-(Un-vn),Mr=vn-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=Nt*It,Un=splitter*Nt,lr=Un-(Un-Nt),Hr=Nt-lr,Un=splitter*It,Br=Un-(Un-It),Mr=It-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,bs[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,bs[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,bs[2]=Yi-(Ta-$n)+(Oi-$n),bs[3]=Ta,Io=Nt*E,Un=splitter*Nt,lr=Un-(Un-Nt),Hr=Nt-lr,Un=splitter*E,Br=Un-(Un-E),Mr=E-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=c*vn,Un=splitter*c,lr=Un-(Un-c),Hr=c-lr,Un=splitter*vn,Br=Un-(Un-vn),Mr=vn-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,Qs[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,Qs[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,Qs[2]=Yi-(Ta-$n)+(Oi-$n),Qs[3]=Ta,Io=c*Je,Un=splitter*c,lr=Un-(Un-c),Hr=c-lr,Un=splitter*Je,Br=Un-(Un-Je),Mr=Je-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=Be*E,Un=splitter*Be,lr=Un-(Un-Be),Hr=Be-lr,Un=splitter*E,Br=Un-(Un-E),Mr=E-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,vu[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,vu[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,vu[2]=Yi-(Ta-$n)+(Oi-$n),vu[3]=Ta,Io=k*It,Un=splitter*k,lr=Un-(Un-k),Hr=k-lr,Un=splitter*It,Br=Un-(Un-It),Mr=It-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=ot*q,Un=splitter*ot,lr=Un-(Un-ot),Hr=ot-lr,Un=splitter*q,Br=Un-(Un-q),Mr=q-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,Nu[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,Nu[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,Nu[2]=Yi-(Ta-$n)+(Oi-$n),Nu[3]=Ta,Io=Be*vn,Un=splitter*Be,lr=Un-(Un-Be),Hr=Be-lr,Un=splitter*vn,Br=Un-(Un-vn),Mr=vn-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=Nt*Je,Un=splitter*Nt,lr=Un-(Un-Nt),Hr=Nt-lr,Un=splitter*Je,Br=Un-(Un-Je),Mr=Je-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,zl[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,zl[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,zl[2]=Yi-(Ta-$n)+(Oi-$n),zl[3]=Ta,Io=ot*E,Un=splitter*ot,lr=Un-(Un-ot),Hr=ot-lr,Un=splitter*E,Br=Un-(Un-E),Mr=E-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=c*It,Un=splitter*c,lr=Un-(Un-c),Hr=c-lr,Un=splitter*It,Br=Un-(Un-It),Mr=It-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,bl[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,bl[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,bl[2]=Yi-(Ta-$n)+(Oi-$n),bl[3]=Ta,Io=Nt*q,Un=splitter*Nt,lr=Un-(Un-Nt),Hr=Nt-lr,Un=splitter*q,Br=Un-(Un-q),Mr=q-Br,ua=Hr*Mr-(Io-lr*Br-Hr*Br-lr*Mr),To=k*vn,Un=splitter*k,lr=Un-(Un-k),Hr=k-lr,Un=splitter*vn,Br=Un-(Un-vn),Mr=vn-Br,Lo=Hr*Mr-(To-lr*Br-Hr*Br-lr*Mr),Oi=ua-Lo,$n=ua-Oi,tl[0]=ua-(Oi+$n)+($n-Lo),Yi=Io+Oi,$n=Yi-Io,uo=Io-(Yi-$n)+(Oi-$n),Oi=uo-To,$n=uo-Oi,tl[1]=uo-(Oi+$n)+($n-To),Ta=Yi+Oi,$n=Ta-Yi,tl[2]=Yi-(Ta-$n)+(Oi-$n),tl[3]=Ta;const da=je(Ss,ds,vu,Et,C,-we,lc),Zr=je(ds,Ha,Nu,Jt,we,-Et,qc),Hi=je(Ha,bs,zl,pr,Et,-Jt,df),no=je(bs,Qs,bl,C,Jt,-pr,uf),jo=je(Qs,Ss,tl,we,pr,-C,Jd),oo=je(Ss,Nu,bl,Jt,C,we,dh),zo=je(ds,zl,tl,pr,we,Et,Ph),Oo=je(Ha,bl,vu,C,Et,Jt,th),ma=je(bs,tl,Nu,we,Jt,pr,Vh),ka=je(Qs,vu,zl,Et,pr,C,rh),os=sum_three(Mt(Hi,df,zo,Ph,ma,Vh,Zr,qc,c,E,C,Th),Th,Mt(no,uf,Oo,th,ka,rh,Hi,df,k,q,we,Bh),Bh,sum_three(Mt(jo,Jd,ma,Vh,oo,dh,no,uf,Be,Je,Et,Rh),Rh,Mt(da,lc,ka,rh,zo,Ph,jo,Jd,ot,It,Jt,wh),wh,Mt(Zr,qc,oo,dh,Oo,th,da,lc,Nt,vn,pr,yp),yp,rp,ev),ev,Ip,bp);return bp[os-1]}const ur=Ps(96),Li=Ps(96),Vo=Ps(96),ga=Ps(1152);function ps(c,E,C,k,q,we,Be,Je,Et,ot){const It=je(c,E,C,k,q,we,Xh);return sum_three(scale(scale(It,Xh,Be,Qh),Qh,Be,ur),ur,scale(scale(It,Xh,Je,Qh),Qh,Je,Li),Li,scale(scale(It,Xh,Et,Qh),Qh,Et,Vo),Vo,Mh,ot)}function tu(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr,$n){let Un,lr,Hr,Br,Mr,Oi,Yi,uo,Io,ua,To,Lo,Ta,da,Zr,Hi,no,jo,oo,zo,Oo,ma,ka,os,es,gs,Zs,As,_u,Cs,Js;const au=c-Nt,cs=k-Nt,Fu=Be-Nt,Sl=ot-Nt,mc=E-vn,Nl=q-vn,Su=Je-vn,cc=It-vn,Md=C-pr,od=we-pr,yh=Et-pr,xh=Jt-pr;As=au*Nl,zo=splitter*au,Oo=zo-(zo-au),ma=au-Oo,zo=splitter*Nl,ka=zo-(zo-Nl),os=Nl-ka,_u=ma*os-(As-Oo*ka-ma*ka-Oo*os),Cs=cs*mc,zo=splitter*cs,Oo=zo-(zo-cs),ma=cs-Oo,zo=splitter*mc,ka=zo-(zo-mc),os=mc-ka,Js=ma*os-(Cs-Oo*ka-ma*ka-Oo*os),es=_u-Js,oo=_u-es,Ss[0]=_u-(es+oo)+(oo-Js),gs=As+es,oo=gs-As,Zs=As-(gs-oo)+(es-oo),es=Zs-Cs,oo=Zs-es,Ss[1]=Zs-(es+oo)+(oo-Cs),Un=gs+es,oo=Un-gs,Ss[2]=gs-(Un-oo)+(es-oo),Ss[3]=Un,As=cs*Su,zo=splitter*cs,Oo=zo-(zo-cs),ma=cs-Oo,zo=splitter*Su,ka=zo-(zo-Su),os=Su-ka,_u=ma*os-(As-Oo*ka-ma*ka-Oo*os),Cs=Fu*Nl,zo=splitter*Fu,Oo=zo-(zo-Fu),ma=Fu-Oo,zo=splitter*Nl,ka=zo-(zo-Nl),os=Nl-ka,Js=ma*os-(Cs-Oo*ka-ma*ka-Oo*os),es=_u-Js,oo=_u-es,ds[0]=_u-(es+oo)+(oo-Js),gs=As+es,oo=gs-As,Zs=As-(gs-oo)+(es-oo),es=Zs-Cs,oo=Zs-es,ds[1]=Zs-(es+oo)+(oo-Cs),lr=gs+es,oo=lr-gs,ds[2]=gs-(lr-oo)+(es-oo),ds[3]=lr,As=Fu*cc,zo=splitter*Fu,Oo=zo-(zo-Fu),ma=Fu-Oo,zo=splitter*cc,ka=zo-(zo-cc),os=cc-ka,_u=ma*os-(As-Oo*ka-ma*ka-Oo*os),Cs=Sl*Su,zo=splitter*Sl,Oo=zo-(zo-Sl),ma=Sl-Oo,zo=splitter*Su,ka=zo-(zo-Su),os=Su-ka,Js=ma*os-(Cs-Oo*ka-ma*ka-Oo*os),es=_u-Js,oo=_u-es,Ha[0]=_u-(es+oo)+(oo-Js),gs=As+es,oo=gs-As,Zs=As-(gs-oo)+(es-oo),es=Zs-Cs,oo=Zs-es,Ha[1]=Zs-(es+oo)+(oo-Cs),Hr=gs+es,oo=Hr-gs,Ha[2]=gs-(Hr-oo)+(es-oo),Ha[3]=Hr,As=Sl*mc,zo=splitter*Sl,Oo=zo-(zo-Sl),ma=Sl-Oo,zo=splitter*mc,ka=zo-(zo-mc),os=mc-ka,_u=ma*os-(As-Oo*ka-ma*ka-Oo*os),Cs=au*cc,zo=splitter*au,Oo=zo-(zo-au),ma=au-Oo,zo=splitter*cc,ka=zo-(zo-cc),os=cc-ka,Js=ma*os-(Cs-Oo*ka-ma*ka-Oo*os),es=_u-Js,oo=_u-es,bl[0]=_u-(es+oo)+(oo-Js),gs=As+es,oo=gs-As,Zs=As-(gs-oo)+(es-oo),es=Zs-Cs,oo=Zs-es,bl[1]=Zs-(es+oo)+(oo-Cs),Br=gs+es,oo=Br-gs,bl[2]=gs-(Br-oo)+(es-oo),bl[3]=Br,As=au*Su,zo=splitter*au,Oo=zo-(zo-au),ma=au-Oo,zo=splitter*Su,ka=zo-(zo-Su),os=Su-ka,_u=ma*os-(As-Oo*ka-ma*ka-Oo*os),Cs=Fu*mc,zo=splitter*Fu,Oo=zo-(zo-Fu),ma=Fu-Oo,zo=splitter*mc,ka=zo-(zo-mc),os=mc-ka,Js=ma*os-(Cs-Oo*ka-ma*ka-Oo*os),es=_u-Js,oo=_u-es,vu[0]=_u-(es+oo)+(oo-Js),gs=As+es,oo=gs-As,Zs=As-(gs-oo)+(es-oo),es=Zs-Cs,oo=Zs-es,vu[1]=Zs-(es+oo)+(oo-Cs),Mr=gs+es,oo=Mr-gs,vu[2]=gs-(Mr-oo)+(es-oo),vu[3]=Mr,As=cs*cc,zo=splitter*cs,Oo=zo-(zo-cs),ma=cs-Oo,zo=splitter*cc,ka=zo-(zo-cc),os=cc-ka,_u=ma*os-(As-Oo*ka-ma*ka-Oo*os),Cs=Sl*Nl,zo=splitter*Sl,Oo=zo-(zo-Sl),ma=Sl-Oo,zo=splitter*Nl,ka=zo-(zo-Nl),os=Nl-ka,Js=ma*os-(Cs-Oo*ka-ma*ka-Oo*os),es=_u-Js,oo=_u-es,Nu[0]=_u-(es+oo)+(oo-Js),gs=As+es,oo=gs-As,Zs=As-(gs-oo)+(es-oo),es=Zs-Cs,oo=Zs-es,Nu[1]=Zs-(es+oo)+(oo-Cs),Oi=gs+es,oo=Oi-gs,Nu[2]=gs-(Oi-oo)+(es-oo),Nu[3]=Oi;const hb=sum(sum(negate(ps(ds,Ha,Nu,xh,od,-yh,au,mc,Md,Th),Th),Th,ps(Ha,bl,vu,Md,yh,xh,cs,Nl,od,Bh),Bh,Ip),Ip,sum(negate(ps(bl,Ss,Nu,od,xh,Md,Fu,Su,yh,Rh),Rh),Rh,ps(Ss,ds,vu,yh,Md,-od,Sl,cc,xh,wh),wh,rp),rp,ga);let mp=estimate(hb,ga),Yv=Ca*$n;if(mp>=Yv||-mp>=Yv||(oo=c-au,Yi=c-(au+oo)+(oo-Nt),oo=E-mc,To=E-(mc+oo)+(oo-vn),oo=C-Md,Zr=C-(Md+oo)+(oo-pr),oo=k-cs,uo=k-(cs+oo)+(oo-Nt),oo=q-Nl,Lo=q-(Nl+oo)+(oo-vn),oo=we-od,Hi=we-(od+oo)+(oo-pr),oo=Be-Fu,Io=Be-(Fu+oo)+(oo-Nt),oo=Je-Su,Ta=Je-(Su+oo)+(oo-vn),oo=Et-yh,no=Et-(yh+oo)+(oo-pr),oo=ot-Sl,ua=ot-(Sl+oo)+(oo-Nt),oo=It-cc,da=It-(cc+oo)+(oo-vn),oo=Jt-xh,jo=Jt-(xh+oo)+(oo-pr),Yi===0&&To===0&&Zr===0&&uo===0&&Lo===0&&Hi===0&&Io===0&&Ta===0&&no===0&&ua===0&&da===0&&jo===0))return mp;Yv=Es*$n+resulterrbound*Math.abs(mp);const oy=au*Lo+Nl*Yi-(mc*uo+cs*To),ay=cs*Ta+Su*uo-(Nl*Io+Fu*Lo),sy=Fu*da+cc*Io-(Su*ua+Sl*Ta),uy=Sl*To+mc*ua-(cc*Yi+au*da),ly=au*Ta+Su*Yi-(mc*Io+Fu*To),cy=cs*da+cc*uo-(Nl*ua+Sl*Lo);return mp+=(cs*cs+Nl*Nl+od*od)*(yh*uy+xh*ly+Md*sy+(no*Br+jo*Mr+Zr*Hr))+(Sl*Sl+cc*cc+xh*xh)*(Md*ay-od*ly+yh*oy+(Zr*lr-Hi*Mr+no*Un))-((au*au+mc*mc+Md*Md)*(od*sy-yh*cy+xh*ay+(Hi*Hr-no*Oi+jo*lr))+(Fu*Fu+Su*Su+yh*yh)*(xh*oy+Md*cy+od*uy+(jo*Un+Zr*Oi+Hi*Br)))+2*((cs*uo+Nl*Lo+od*Hi)*(yh*Br+xh*Mr+Md*Hr)+(Sl*ua+cc*da+xh*jo)*(Md*lr-od*Mr+yh*Un)-((au*Yi+mc*To+Md*Zr)*(od*Hr-yh*Oi+xh*lr)+(Fu*Io+Su*Ta+yh*no)*(xh*Un+Md*Oi+od*Br))),mp>=Yv||-mp>=Yv?mp:Tn(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr)}function ru(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr){const $n=c-Nt,Un=k-Nt,lr=Be-Nt,Hr=ot-Nt,Br=E-vn,Mr=q-vn,Oi=Je-vn,Yi=It-vn,uo=C-pr,Io=we-pr,ua=Et-pr,To=Jt-pr,Lo=$n*Mr,Ta=Un*Br,da=Lo-Ta,Zr=Un*Oi,Hi=lr*Mr,no=Zr-Hi,jo=lr*Yi,oo=Hr*Oi,zo=jo-oo,Oo=Hr*Br,ma=$n*Yi,ka=Oo-ma,os=$n*Oi,es=lr*Br,gs=os-es,Zs=Un*Yi,As=Hr*Mr,_u=Zs-As,Cs=uo*no-Io*gs+ua*da,Js=Io*zo-ua*_u+To*no,au=ua*ka+To*gs+uo*zo,cs=To*da+uo*_u+Io*ka,Fu=$n*$n+Br*Br+uo*uo,Sl=Un*Un+Mr*Mr+Io*Io,mc=lr*lr+Oi*Oi+ua*ua,Nl=Hr*Hr+Yi*Yi+To*To,Su=mc*cs-Nl*Cs+(Fu*Js-Sl*au),cc=Math.abs(uo),Md=Math.abs(Io),od=Math.abs(ua),yh=Math.abs(To),xh=Math.abs(Lo),hb=Math.abs(Ta),mp=Math.abs(Zr),Yv=Math.abs(Hi),oy=Math.abs(jo),ay=Math.abs(oo),sy=Math.abs(Oo),uy=Math.abs(ma),ly=Math.abs(os),cy=Math.abs(es),o_=Math.abs(Zs),a_=Math.abs(As),s_=((oy+ay)*Md+(a_+o_)*od+(mp+Yv)*yh)*Fu+((sy+uy)*od+(ly+cy)*yh+(oy+ay)*cc)*Sl+((xh+hb)*yh+(o_+a_)*cc+(sy+uy)*Md)*mc+((mp+Yv)*cc+(cy+ly)*Md+(xh+hb)*od)*Nl,u_=Oa*s_;return Su>u_||-Su>u_?Su:-tu(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr,s_)}function Ks(c,E,C,k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr){const $n=c-Nt,Un=k-Nt,lr=Be-Nt,Hr=ot-Nt,Br=E-vn,Mr=q-vn,Oi=Je-vn,Yi=It-vn,uo=C-pr,Io=we-pr,ua=Et-pr,To=Jt-pr,Lo=$n*Mr-Un*Br,Ta=Un*Oi-lr*Mr,da=lr*Yi-Hr*Oi,Zr=Hr*Br-$n*Yi,Hi=$n*Oi-lr*Br,no=Un*Yi-Hr*Mr,jo=uo*Ta-Io*Hi+ua*Lo,oo=Io*da-ua*no+To*Ta,zo=ua*Zr+To*Hi+uo*da,Oo=To*Lo+uo*no+Io*Zr,ma=$n*$n+Br*Br+uo*uo,ka=Un*Un+Mr*Mr+Io*Io,os=lr*lr+Oi*Oi+ua*ua,es=Hr*Hr+Yi*Yi+To*To;return os*Oo-es*jo+(ma*oo-ka*zo)}const Xu=Math.pow(2,-52),ul=new Uint32Array(512);class dl{static from(E,C=Vl,k=tc){const q=E.length,we=new Float64Array(q*2);for(let Be=0;Be<q;Be++){const Je=E[Be];we[2*Be]=C(Je),we[2*Be+1]=k(Je)}return new dl(we)}constructor(E){const C=E.length>>1;if(C>0&&typeof E[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=E;const k=Math.max(2*C-5,0);this._triangles=new Uint32Array(k*3),this._halfedges=new Int32Array(k*3),this._hashSize=Math.ceil(Math.sqrt(C)),this._hullPrev=new Uint32Array(C),this._hullNext=new Uint32Array(C),this._hullTri=new Uint32Array(C),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(C),this._dists=new Float64Array(C),this.update()}update(){const{coords:E,_hullPrev:C,_hullNext:k,_hullTri:q,_hullHash:we}=this,Be=E.length>>1;let Je=1/0,Et=1/0,ot=-1/0,It=-1/0;for(let To=0;To<Be;To++){const Lo=E[2*To],Ta=E[2*To+1];Lo<Je&&(Je=Lo),Ta<Et&&(Et=Ta),Lo>ot&&(ot=Lo),Ta>It&&(It=Ta),this._ids[To]=To}const Jt=(Je+ot)/2,Nt=(Et+It)/2;let vn=1/0,pr,$n,Un;for(let To=0;To<Be;To++){const Lo=ts(Jt,Nt,E[2*To],E[2*To+1]);Lo<vn&&(pr=To,vn=Lo)}const lr=E[2*pr],Hr=E[2*pr+1];vn=1/0;for(let To=0;To<Be;To++){if(To===pr)continue;const Lo=ts(lr,Hr,E[2*To],E[2*To+1]);Lo<vn&&Lo>0&&($n=To,vn=Lo)}let Br=E[2*$n],Mr=E[2*$n+1],Oi=1/0;for(let To=0;To<Be;To++){if(To===pr||To===$n)continue;const Lo=ls(lr,Hr,Br,Mr,E[2*To],E[2*To+1]);Lo<Oi&&(Un=To,Oi=Lo)}let Yi=E[2*Un],uo=E[2*Un+1];if(Oi===1/0){for(let Ta=0;Ta<Be;Ta++)this._dists[Ta]=E[2*Ta]-E[0]||E[2*Ta+1]-E[1];al(this._ids,this._dists,0,Be-1);const To=new Uint32Array(Be);let Lo=0;for(let Ta=0,da=-1/0;Ta<Be;Ta++){const Zr=this._ids[Ta];this._dists[Zr]>da&&(To[Lo++]=Zr,da=this._dists[Zr])}this.hull=To.subarray(0,Lo),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Ed(lr,Hr,Br,Mr,Yi,uo)<0){const To=$n,Lo=Br,Ta=Mr;$n=Un,Br=Yi,Mr=uo,Un=To,Yi=Lo,uo=Ta}const Io=Eu(lr,Hr,Br,Mr,Yi,uo);this._cx=Io.x,this._cy=Io.y;for(let To=0;To<Be;To++)this._dists[To]=ts(E[2*To],E[2*To+1],Io.x,Io.y);al(this._ids,this._dists,0,Be-1),this._hullStart=pr;let ua=3;k[pr]=C[Un]=$n,k[$n]=C[pr]=Un,k[Un]=C[$n]=pr,q[pr]=0,q[$n]=1,q[Un]=2,we.fill(-1),we[this._hashKey(lr,Hr)]=pr,we[this._hashKey(Br,Mr)]=$n,we[this._hashKey(Yi,uo)]=Un,this.trianglesLen=0,this._addTriangle(pr,$n,Un,-1,-1,-1);for(let To=0,Lo,Ta;To<this._ids.length;To++){const da=this._ids[To],Zr=E[2*da],Hi=E[2*da+1];if(To>0&&Math.abs(Zr-Lo)<=Xu&&Math.abs(Hi-Ta)<=Xu||(Lo=Zr,Ta=Hi,da===pr||da===$n||da===Un))continue;let no=0;for(let ma=0,ka=this._hashKey(Zr,Hi);ma<this._hashSize&&(no=we[(ka+ma)%this._hashSize],!(no!==-1&&no!==k[no]));ma++);no=C[no];let jo=no,oo;for(;oo=k[jo],Ed(Zr,Hi,E[2*jo],E[2*jo+1],E[2*oo],E[2*oo+1])>=0;)if(jo=oo,jo===no){jo=-1;break}if(jo===-1)continue;let zo=this._addTriangle(jo,da,k[jo],-1,-1,q[jo]);q[da]=this._legalize(zo+2),q[jo]=zo,ua++;let Oo=k[jo];for(;oo=k[Oo],Ed(Zr,Hi,E[2*Oo],E[2*Oo+1],E[2*oo],E[2*oo+1])<0;)zo=this._addTriangle(Oo,da,oo,q[da],-1,q[Oo]),q[da]=this._legalize(zo+2),k[Oo]=Oo,ua--,Oo=oo;if(jo===no)for(;oo=C[jo],Ed(Zr,Hi,E[2*oo],E[2*oo+1],E[2*jo],E[2*jo+1])<0;)zo=this._addTriangle(oo,da,jo,-1,q[jo],q[oo]),this._legalize(zo+2),q[oo]=zo,k[jo]=jo,ua--,jo=oo;this._hullStart=C[da]=jo,k[jo]=C[Oo]=da,k[da]=Oo,we[this._hashKey(Zr,Hi)]=da,we[this._hashKey(E[2*jo],E[2*jo+1])]=jo}this.hull=new Uint32Array(ua);for(let To=0,Lo=this._hullStart;To<ua;To++)this.hull[To]=Lo,Lo=k[Lo];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(E,C){return Math.floor(Vf(E-this._cx,C-this._cy)*this._hashSize)%this._hashSize}_legalize(E){const{_triangles:C,_halfedges:k,coords:q}=this;let we=0,Be=0;for(;;){const Je=k[E],Et=E-E%3;if(Be=Et+(E+2)%3,Je===-1){if(we===0)break;E=ul[--we];continue}const ot=Je-Je%3,It=Et+(E+1)%3,Jt=ot+(Je+2)%3,Nt=C[Be],vn=C[E],pr=C[It],$n=C[Jt];if(xa(q[2*Nt],q[2*Nt+1],q[2*vn],q[2*vn+1],q[2*pr],q[2*pr+1],q[2*$n],q[2*$n+1])){C[E]=$n,C[Je]=Nt;const lr=k[Jt];if(lr===-1){let Br=this._hullStart;do{if(this._hullTri[Br]===Jt){this._hullTri[Br]=E;break}Br=this._hullPrev[Br]}while(Br!==this._hullStart)}this._link(E,lr),this._link(Je,k[Be]),this._link(Be,Jt);const Hr=ot+(Je+1)%3;we<ul.length&&(ul[we++]=Hr)}else{if(we===0)break;E=ul[--we]}}return Be}_link(E,C){this._halfedges[E]=C,C!==-1&&(this._halfedges[C]=E)}_addTriangle(E,C,k,q,we,Be){const Je=this.trianglesLen;return this._triangles[Je]=E,this._triangles[Je+1]=C,this._triangles[Je+2]=k,this._link(Je,q),this._link(Je+1,we),this._link(Je+2,Be),this.trianglesLen+=3,Je}}function Vf(c,E){const C=c/(Math.abs(c)+Math.abs(E));return(E>0?3-C:1+C)/4}function ts(c,E,C,k){const q=c-C,we=E-k;return q*q+we*we}function xa(c,E,C,k,q,we,Be,Je){const Et=c-Be,ot=E-Je,It=C-Be,Jt=k-Je,Nt=q-Be,vn=we-Je,pr=Et*Et+ot*ot,$n=It*It+Jt*Jt,Un=Nt*Nt+vn*vn;return Et*(Jt*Un-$n*vn)-ot*(It*Un-$n*Nt)+pr*(It*vn-Jt*Nt)<0}function ls(c,E,C,k,q,we){const Be=C-c,Je=k-E,Et=q-c,ot=we-E,It=Be*Be+Je*Je,Jt=Et*Et+ot*ot,Nt=.5/(Be*ot-Je*Et),vn=(ot*It-Je*Jt)*Nt,pr=(Be*Jt-Et*It)*Nt;return vn*vn+pr*pr}function Eu(c,E,C,k,q,we){const Be=C-c,Je=k-E,Et=q-c,ot=we-E,It=Be*Be+Je*Je,Jt=Et*Et+ot*ot,Nt=.5/(Be*ot-Je*Et),vn=c+(ot*It-Je*Jt)*Nt,pr=E+(Be*Jt-Et*It)*Nt;return{x:vn,y:pr}}function al(c,E,C,k){if(k-C<=20)for(let q=C+1;q<=k;q++){const we=c[q],Be=E[we];let Je=q-1;for(;Je>=C&&E[c[Je]]>Be;)c[Je+1]=c[Je--];c[Je+1]=we}else{const q=C+k>>1;let we=C+1,Be=k;Tl(c,q,we),E[c[C]]>E[c[k]]&&Tl(c,C,k),E[c[we]]>E[c[k]]&&Tl(c,we,k),E[c[C]]>E[c[we]]&&Tl(c,C,we);const Je=c[we],Et=E[Je];for(;;){do we++;while(E[c[we]]<Et);do Be--;while(E[c[Be]]>Et);if(Be<we)break;Tl(c,we,Be)}c[C+1]=c[Be],c[Be]=Je,k-we+1>=Be-C?(al(c,E,we,k),al(c,E,C,Be-1)):(al(c,E,C,Be-1),al(c,E,we,k))}}function Tl(c,E,C){const k=c[E];c[E]=c[C],c[C]=k}function Vl(c){return c[0]}function tc(c){return c[1]}const Pd=1e-6;class Rc{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(E,C){this._+=`M${this._x0=this._x1=+E},${this._y0=this._y1=+C}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(E,C){this._+=`L${this._x1=+E},${this._y1=+C}`}arc(E,C,k){E=+E,C=+C,k=+k;const q=E+k,we=C;if(k<0)throw new Error("negative radius");this._x1===null?this._+=`M${q},${we}`:(Math.abs(this._x1-q)>Pd||Math.abs(this._y1-we)>Pd)&&(this._+="L"+q+","+we),k&&(this._+=`A${k},${k},0,1,1,${E-k},${C}A${k},${k},0,1,1,${this._x1=q},${this._y1=we}`)}rect(E,C,k,q){this._+=`M${this._x0=this._x1=+E},${this._y0=this._y1=+C}h${+k}v${+q}h${-k}Z`}value(){return this._||null}}class jh{constructor(){this._=[]}moveTo(E,C){this._.push([E,C])}closePath(){this._.push(this._[0].slice())}lineTo(E,C){this._.push([E,C])}value(){return this._.length?this._:null}}class bv{constructor(E,[C,k,q,we]=[0,0,960,500]){if(!((q=+q)>=(C=+C))||!((we=+we)>=(k=+k)))throw new Error("invalid bounds");this.delaunay=E,this._circumcenters=new Float64Array(E.points.length*2),this.vectors=new Float64Array(E.points.length*2),this.xmax=q,this.xmin=C,this.ymax=we,this.ymin=k,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:E,hull:C,triangles:k},vectors:q}=this,we=this.circumcenters=this._circumcenters.subarray(0,k.length/3*2);for(let vn=0,pr=0,$n=k.length,Un,lr;vn<$n;vn+=3,pr+=2){const Hr=k[vn]*2,Br=k[vn+1]*2,Mr=k[vn+2]*2,Oi=E[Hr],Yi=E[Hr+1],uo=E[Br],Io=E[Br+1],ua=E[Mr],To=E[Mr+1],Lo=uo-Oi,Ta=Io-Yi,da=ua-Oi,Zr=To-Yi,Hi=(Lo*Zr-Ta*da)*2;if(Math.abs(Hi)<1e-9){let no=1e9;const jo=k[0]*2;no*=Math.sign((E[jo]-Oi)*Zr-(E[jo+1]-Yi)*da),Un=(Oi+ua)/2-no*Zr,lr=(Yi+To)/2+no*da}else{const no=1/Hi,jo=Lo*Lo+Ta*Ta,oo=da*da+Zr*Zr;Un=Oi+(Zr*jo-Ta*oo)*no,lr=Yi+(Lo*oo-da*jo)*no}we[pr]=Un,we[pr+1]=lr}let Be=C[C.length-1],Je,Et=Be*4,ot,It=E[2*Be],Jt,Nt=E[2*Be+1];q.fill(0);for(let vn=0;vn<C.length;++vn)Be=C[vn],Je=Et,ot=It,Jt=Nt,Et=Be*4,It=E[2*Be],Nt=E[2*Be+1],q[Je+2]=q[Et]=Jt-Nt,q[Je+3]=q[Et+1]=It-ot}render(E){const C=E==null?E=new Rc:void 0,{delaunay:{halfedges:k,inedges:q,hull:we},circumcenters:Be,vectors:Je}=this;if(we.length<=1)return null;for(let It=0,Jt=k.length;It<Jt;++It){const Nt=k[It];if(Nt<It)continue;const vn=Math.floor(It/3)*2,pr=Math.floor(Nt/3)*2,$n=Be[vn],Un=Be[vn+1],lr=Be[pr],Hr=Be[pr+1];this._renderSegment($n,Un,lr,Hr,E)}let Et,ot=we[we.length-1];for(let It=0;It<we.length;++It){Et=ot,ot=we[It];const Jt=Math.floor(q[ot]/3)*2,Nt=Be[Jt],vn=Be[Jt+1],pr=Et*4,$n=this._project(Nt,vn,Je[pr+2],Je[pr+3]);$n&&this._renderSegment(Nt,vn,$n[0],$n[1],E)}return C&&C.value()}renderBounds(E){const C=E==null?E=new Rc:void 0;return E.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),C&&C.value()}renderCell(E,C){const k=C==null?C=new Rc:void 0,q=this._clip(E);if(q===null||!q.length)return;C.moveTo(q[0],q[1]);let we=q.length;for(;q[0]===q[we-2]&&q[1]===q[we-1]&&we>1;)we-=2;for(let Be=2;Be<we;Be+=2)(q[Be]!==q[Be-2]||q[Be+1]!==q[Be-1])&&C.lineTo(q[Be],q[Be+1]);return C.closePath(),k&&k.value()}*cellPolygons(){const{delaunay:{points:E}}=this;for(let C=0,k=E.length/2;C<k;++C){const q=this.cellPolygon(C);q&&(q.index=C,yield q)}}cellPolygon(E){const C=new jh;return this.renderCell(E,C),C.value()}_renderSegment(E,C,k,q,we){let Be;const Je=this._regioncode(E,C),Et=this._regioncode(k,q);Je===0&&Et===0?(we.moveTo(E,C),we.lineTo(k,q)):(Be=this._clipSegment(E,C,k,q,Je,Et))&&(we.moveTo(Be[0],Be[1]),we.lineTo(Be[2],Be[3]))}contains(E,C,k){return C=+C,C!==C||(k=+k,k!==k)?!1:this.delaunay._step(E,C,k)===E}*neighbors(E){const C=this._clip(E);if(C)for(const k of this.delaunay.neighbors(E)){const q=this._clip(k);if(q){e:for(let we=0,Be=C.length;we<Be;we+=2)for(let Je=0,Et=q.length;Je<Et;Je+=2)if(C[we]==q[Je]&&C[we+1]==q[Je+1]&&C[(we+2)%Be]==q[(Je+Et-2)%Et]&&C[(we+3)%Be]==q[(Je+Et-1)%Et]){yield k;break e}}}}_cell(E){const{circumcenters:C,delaunay:{inedges:k,halfedges:q,triangles:we}}=this,Be=k[E];if(Be===-1)return null;const Je=[];let Et=Be;do{const ot=Math.floor(Et/3);if(Je.push(C[ot*2],C[ot*2+1]),Et=Et%3===2?Et-2:Et+1,we[Et]!==E)break;Et=q[Et]}while(Et!==Be&&Et!==-1);return Je}_clip(E){if(E===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const C=this._cell(E);if(C===null)return null;const{vectors:k}=this,q=E*4;return k[q]||k[q+1]?this._clipInfinite(E,C,k[q],k[q+1],k[q+2],k[q+3]):this._clipFinite(E,C)}_clipFinite(E,C){const k=C.length;let q=null,we,Be,Je=C[k-2],Et=C[k-1],ot,It=this._regioncode(Je,Et),Jt,Nt=0;for(let vn=0;vn<k;vn+=2)if(we=Je,Be=Et,Je=C[vn],Et=C[vn+1],ot=It,It=this._regioncode(Je,Et),ot===0&&It===0)Jt=Nt,Nt=0,q?q.push(Je,Et):q=[Je,Et];else{let pr,$n,Un,lr,Hr;if(ot===0){if((pr=this._clipSegment(we,Be,Je,Et,ot,It))===null)continue;[$n,Un,lr,Hr]=pr}else{if((pr=this._clipSegment(Je,Et,we,Be,It,ot))===null)continue;[lr,Hr,$n,Un]=pr,Jt=Nt,Nt=this._edgecode($n,Un),Jt&&Nt&&this._edge(E,Jt,Nt,q,q.length),q?q.push($n,Un):q=[$n,Un]}Jt=Nt,Nt=this._edgecode(lr,Hr),Jt&&Nt&&this._edge(E,Jt,Nt,q,q.length),q?q.push(lr,Hr):q=[lr,Hr]}if(q)Jt=Nt,Nt=this._edgecode(q[0],q[1]),Jt&&Nt&&this._edge(E,Jt,Nt,q,q.length);else if(this.contains(E,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return q}_clipSegment(E,C,k,q,we,Be){for(;;){if(we===0&&Be===0)return[E,C,k,q];if(we&Be)return null;let Je,Et,ot=we||Be;ot&8?(Je=E+(k-E)*(this.ymax-C)/(q-C),Et=this.ymax):ot&4?(Je=E+(k-E)*(this.ymin-C)/(q-C),Et=this.ymin):ot&2?(Et=C+(q-C)*(this.xmax-E)/(k-E),Je=this.xmax):(Et=C+(q-C)*(this.xmin-E)/(k-E),Je=this.xmin),we?(E=Je,C=Et,we=this._regioncode(E,C)):(k=Je,q=Et,Be=this._regioncode(k,q))}}_clipInfinite(E,C,k,q,we,Be){let Je=Array.from(C),Et;if((Et=this._project(Je[0],Je[1],k,q))&&Je.unshift(Et[0],Et[1]),(Et=this._project(Je[Je.length-2],Je[Je.length-1],we,Be))&&Je.push(Et[0],Et[1]),Je=this._clipFinite(E,Je))for(let ot=0,It=Je.length,Jt,Nt=this._edgecode(Je[It-2],Je[It-1]);ot<It;ot+=2)Jt=Nt,Nt=this._edgecode(Je[ot],Je[ot+1]),Jt&&Nt&&(ot=this._edge(E,Jt,Nt,Je,ot),It=Je.length);else this.contains(E,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(Je=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return Je}_edge(E,C,k,q,we){for(;C!==k;){let Be,Je;switch(C){case 5:C=4;continue;case 4:C=6,Be=this.xmax,Je=this.ymin;break;case 6:C=2;continue;case 2:C=10,Be=this.xmax,Je=this.ymax;break;case 10:C=8;continue;case 8:C=9,Be=this.xmin,Je=this.ymax;break;case 9:C=1;continue;case 1:C=5,Be=this.xmin,Je=this.ymin;break}(q[we]!==Be||q[we+1]!==Je)&&this.contains(E,Be,Je)&&(q.splice(we,0,Be,Je),we+=2)}if(q.length>4)for(let Be=0;Be<q.length;Be+=2){const Je=(Be+2)%q.length,Et=(Be+4)%q.length;(q[Be]===q[Je]&&q[Je]===q[Et]||q[Be+1]===q[Je+1]&&q[Je+1]===q[Et+1])&&(q.splice(Je,2),Be-=2)}return we}_project(E,C,k,q){let we=1/0,Be,Je,Et;if(q<0){if(C<=this.ymin)return null;(Be=(this.ymin-C)/q)<we&&(Et=this.ymin,Je=E+(we=Be)*k)}else if(q>0){if(C>=this.ymax)return null;(Be=(this.ymax-C)/q)<we&&(Et=this.ymax,Je=E+(we=Be)*k)}if(k>0){if(E>=this.xmax)return null;(Be=(this.xmax-E)/k)<we&&(Je=this.xmax,Et=C+(we=Be)*q)}else if(k<0){if(E<=this.xmin)return null;(Be=(this.xmin-E)/k)<we&&(Je=this.xmin,Et=C+(we=Be)*q)}return[Je,Et]}_edgecode(E,C){return(E===this.xmin?1:E===this.xmax?2:0)|(C===this.ymin?4:C===this.ymax?8:0)}_regioncode(E,C){return(E<this.xmin?1:E>this.xmax?2:0)|(C<this.ymin?4:C>this.ymax?8:0)}}const Dg=2*Math.PI,Jh=Math.pow;function tv(c){return c[0]}function Mm(c){return c[1]}function Dm(c){const{triangles:E,coords:C}=c;for(let k=0;k<E.length;k+=3){const q=2*E[k],we=2*E[k+1],Be=2*E[k+2];if((C[Be]-C[q])*(C[we+1]-C[q+1])-(C[we]-C[q])*(C[Be+1]-C[q+1])>1e-10)return!1}return!0}function Xv(c,E,C){return[c+Math.sin(c+E)*C,E+Math.cos(c-E)*C]}class Dh{static from(E,C=tv,k=Mm,q){return new Dh("length"in E?Im(E,C,k,q):Float64Array.from(Lm(E,C,k,q)))}constructor(E){this._delaunator=new dl(E),this.inedges=new Int32Array(E.length/2),this._hullIndex=new Int32Array(E.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const E=this._delaunator,C=this.points;if(E.hull&&E.hull.length>2&&Dm(E)){this.collinear=Int32Array.from({length:C.length/2},(Nt,vn)=>vn).sort((Nt,vn)=>C[2*Nt]-C[2*vn]||C[2*Nt+1]-C[2*vn+1]);const Et=this.collinear[0],ot=this.collinear[this.collinear.length-1],It=[C[2*Et],C[2*Et+1],C[2*ot],C[2*ot+1]],Jt=1e-8*Math.hypot(It[3]-It[1],It[2]-It[0]);for(let Nt=0,vn=C.length/2;Nt<vn;++Nt){const pr=Xv(C[2*Nt],C[2*Nt+1],Jt);C[2*Nt]=pr[0],C[2*Nt+1]=pr[1]}this._delaunator=new dl(C)}else delete this.collinear;const k=this.halfedges=this._delaunator.halfedges,q=this.hull=this._delaunator.hull,we=this.triangles=this._delaunator.triangles,Be=this.inedges.fill(-1),Je=this._hullIndex.fill(-1);for(let Et=0,ot=k.length;Et<ot;++Et){const It=we[Et%3===2?Et-2:Et+1];(k[Et]===-1||Be[It]===-1)&&(Be[It]=Et)}for(let Et=0,ot=q.length;Et<ot;++Et)Je[q[Et]]=Et;q.length<=2&&q.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=q[0],Be[q[0]]=1,q.length===2&&(Be[q[1]]=0,this.triangles[1]=q[1],this.triangles[2]=q[1]))}voronoi(E){return new bv(this,E)}*neighbors(E){const{inedges:C,hull:k,_hullIndex:q,halfedges:we,triangles:Be,collinear:Je}=this;if(Je){const Jt=Je.indexOf(E);Jt>0&&(yield Je[Jt-1]),Jt<Je.length-1&&(yield Je[Jt+1]);return}const Et=C[E];if(Et===-1)return;let ot=Et,It=-1;do{if(yield It=Be[ot],ot=ot%3===2?ot-2:ot+1,Be[ot]!==E)return;if(ot=we[ot],ot===-1){const Jt=k[(q[E]+1)%k.length];Jt!==It&&(yield Jt);return}}while(ot!==Et)}find(E,C,k=0){if(E=+E,E!==E||(C=+C,C!==C))return-1;const q=k;let we;for(;(we=this._step(k,E,C))>=0&&we!==k&&we!==q;)k=we;return we}_step(E,C,k){const{inedges:q,hull:we,_hullIndex:Be,halfedges:Je,triangles:Et,points:ot}=this;if(q[E]===-1||!ot.length)return(E+1)%(ot.length>>1);let It=E,Jt=Jh(C-ot[E*2],2)+Jh(k-ot[E*2+1],2);const Nt=q[E];let vn=Nt;do{let pr=Et[vn];const $n=Jh(C-ot[pr*2],2)+Jh(k-ot[pr*2+1],2);if($n<Jt&&(Jt=$n,It=pr),vn=vn%3===2?vn-2:vn+1,Et[vn]!==E)break;if(vn=Je[vn],vn===-1){if(vn=we[(Be[E]+1)%we.length],vn!==pr&&Jh(C-ot[vn*2],2)+Jh(k-ot[vn*2+1],2)<Jt)return vn;break}}while(vn!==Nt);return It}render(E){const C=E==null?E=new Rc:void 0,{points:k,halfedges:q,triangles:we}=this;for(let Be=0,Je=q.length;Be<Je;++Be){const Et=q[Be];if(Et<Be)continue;const ot=we[Be]*2,It=we[Et]*2;E.moveTo(k[ot],k[ot+1]),E.lineTo(k[It],k[It+1])}return this.renderHull(E),C&&C.value()}renderPoints(E,C){C===void 0&&(!E||typeof E.moveTo!="function")&&(C=E,E=null),C=C==null?2:+C;const k=E==null?E=new Rc:void 0,{points:q}=this;for(let we=0,Be=q.length;we<Be;we+=2){const Je=q[we],Et=q[we+1];E.moveTo(Je+C,Et),E.arc(Je,Et,C,0,Dg)}return k&&k.value()}renderHull(E){const C=E==null?E=new Rc:void 0,{hull:k,points:q}=this,we=k[0]*2,Be=k.length;E.moveTo(q[we],q[we+1]);for(let Je=1;Je<Be;++Je){const Et=2*k[Je];E.lineTo(q[Et],q[Et+1])}return E.closePath(),C&&C.value()}hullPolygon(){const E=new jh;return this.renderHull(E),E.value()}renderTriangle(E,C){const k=C==null?C=new Rc:void 0,{points:q,triangles:we}=this,Be=we[E*=3]*2,Je=we[E+1]*2,Et=we[E+2]*2;return C.moveTo(q[Be],q[Be+1]),C.lineTo(q[Je],q[Je+1]),C.lineTo(q[Et],q[Et+1]),C.closePath(),k&&k.value()}*trianglePolygons(){const{triangles:E}=this;for(let C=0,k=E.length/3;C<k;++C)yield this.trianglePolygon(C)}trianglePolygon(E){const C=new jh;return this.renderTriangle(E,C),C.value()}}function Im(c,E,C,k){const q=c.length,we=new Float64Array(q*2);for(let Be=0;Be<q;++Be){const Je=c[Be];we[Be*2]=E.call(k,Je,Be,c),we[Be*2+1]=C.call(k,Je,Be,c)}return we}function*Lm(c,E,C,k){let q=0;for(const we of c)yield E.call(k,we,q,c),yield C.call(k,we,q,c),++q}const Hh=c=>()=>c;function gc(c,{sourceEvent:E,subject:C,target:k,identifier:q,active:we,x:Be,y:Je,dx:Et,dy:ot,dispatch:It}){Object.defineProperties(this,{type:{value:c,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},subject:{value:C,enumerable:!0,configurable:!0},target:{value:k,enumerable:!0,configurable:!0},identifier:{value:q,enumerable:!0,configurable:!0},active:{value:we,enumerable:!0,configurable:!0},x:{value:Be,enumerable:!0,configurable:!0},y:{value:Je,enumerable:!0,configurable:!0},dx:{value:Et,enumerable:!0,configurable:!0},dy:{value:ot,enumerable:!0,configurable:!0},_:{value:It}})}gc.prototype.on=function(){var c=this._.on.apply(this._,arguments);return c===this._?this:c};function km(c){return!c.ctrlKey&&!c.button}function hh(){return this.parentNode}function nd(c,E){return E??{x:c.x,y:c.y}}function Qv(){return navigator.maxTouchPoints||"ontouchstart"in this}function Zh(){var c=km,E=hh,C=nd,k=Qv,q={},we=$r("start","drag","end"),Be=0,Je,Et,ot,It,Jt=0;function Nt(Mr){Mr.on("mousedown.drag",vn).filter(k).on("touchstart.drag",Un).on("touchmove.drag",lr,Rs).on("touchend.drag touchcancel.drag",Hr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function vn(Mr,Oi){if(!(It||!c.call(this,Mr,Oi))){var Yi=Br(this,E.call(this,Mr,Oi),Mr,Oi,"mouse");Yi&&(ss(Mr.view).on("mousemove.drag",pr,Ds).on("mouseup.drag",$n,Ds),Ls(Mr.view),Is(Mr),ot=!1,Je=Mr.clientX,Et=Mr.clientY,Yi("start",Mr))}}function pr(Mr){if(nu(Mr),!ot){var Oi=Mr.clientX-Je,Yi=Mr.clientY-Et;ot=Oi*Oi+Yi*Yi>Jt}q.mouse("drag",Mr)}function $n(Mr){ss(Mr.view).on("mousemove.drag mouseup.drag",null),gu(Mr.view,ot),nu(Mr),q.mouse("end",Mr)}function Un(Mr,Oi){if(c.call(this,Mr,Oi)){var Yi=Mr.changedTouches,uo=E.call(this,Mr,Oi),Io=Yi.length,ua,To;for(ua=0;ua<Io;++ua)(To=Br(this,uo,Mr,Oi,Yi[ua].identifier,Yi[ua]))&&(Is(Mr),To("start",Mr,Yi[ua]))}}function lr(Mr){var Oi=Mr.changedTouches,Yi=Oi.length,uo,Io;for(uo=0;uo<Yi;++uo)(Io=q[Oi[uo].identifier])&&(nu(Mr),Io("drag",Mr,Oi[uo]))}function Hr(Mr){var Oi=Mr.changedTouches,Yi=Oi.length,uo,Io;for(It&&clearTimeout(It),It=setTimeout(function(){It=null},500),uo=0;uo<Yi;++uo)(Io=q[Oi[uo].identifier])&&(Is(Mr),Io("end",Mr,Oi[uo]))}function Br(Mr,Oi,Yi,uo,Io,ua){var To=we.copy(),Lo=ci(ua||Yi,Oi),Ta,da,Zr;if((Zr=C.call(Mr,new gc("beforestart",{sourceEvent:Yi,target:Nt,identifier:Io,active:Be,x:Lo[0],y:Lo[1],dx:0,dy:0,dispatch:To}),uo))!=null)return Ta=Zr.x-Lo[0]||0,da=Zr.y-Lo[1]||0,function Hi(no,jo,oo){var zo=Lo,Oo;switch(no){case"start":q[Io]=Hi,Oo=Be++;break;case"end":delete q[Io],--Be;case"drag":Lo=ci(oo||jo,Oi),Oo=Be;break}To.call(no,Mr,new gc(no,{sourceEvent:jo,subject:Zr,target:Nt,identifier:Io,active:Oo,x:Lo[0]+Ta,y:Lo[1]+da,dx:Lo[0]-zo[0],dy:Lo[1]-zo[1],dispatch:To}),uo)}}return Nt.filter=function(Mr){return arguments.length?(c=typeof Mr=="function"?Mr:Hh(!!Mr),Nt):c},Nt.container=function(Mr){return arguments.length?(E=typeof Mr=="function"?Mr:Hh(Mr),Nt):E},Nt.subject=function(Mr){return arguments.length?(C=typeof Mr=="function"?Mr:Hh(Mr),Nt):C},Nt.touchable=function(Mr){return arguments.length?(k=typeof Mr=="function"?Mr:Hh(!!Mr),Nt):k},Nt.on=function(){var Mr=we.on.apply(we,arguments);return Mr===we?Nt:Mr},Nt.clickDistance=function(Mr){return arguments.length?(Jt=(Mr=+Mr)*Mr,Nt):Math.sqrt(Jt)},Nt}var Ig={},nv={},wv=34,rv=10,Ev=13;function Sv(c){return new Function("d","return {"+c.map(function(E,C){return JSON.stringify(E)+": d["+C+'] || ""'}).join(",")+"}")}function Lg(c,E){var C=Sv(c);return function(k,q){return E(C(k),q,c)}}function Kh(c){var E=Object.create(null),C=[];return c.forEach(function(k){for(var q in k)q in E||C.push(E[q]=q)}),C}function ih(c,E){var C=c+"",k=C.length;return k<E?new Array(E-k+1).join(0)+C:C}function _v(c){return c<0?"-"+ih(-c,6):c>9999?"+"+ih(c,6):ih(c,4)}function rd(c){var E=c.getUTCHours(),C=c.getUTCMinutes(),k=c.getUTCSeconds(),q=c.getUTCMilliseconds();return isNaN(c)?"Invalid Date":_v(c.getUTCFullYear(),4)+"-"+ih(c.getUTCMonth()+1,2)+"-"+ih(c.getUTCDate(),2)+(q?"T"+ih(E,2)+":"+ih(C,2)+":"+ih(k,2)+"."+ih(q,3)+"Z":k?"T"+ih(E,2)+":"+ih(C,2)+":"+ih(k,2)+"Z":C||E?"T"+ih(E,2)+":"+ih(C,2)+"Z":"")}function Xf(c){var E=new RegExp('["'+c+` \r]`),C=c.charCodeAt(0);function k(Jt,Nt){var vn,pr,$n=q(Jt,function(Un,lr){if(vn)return vn(Un,lr-1);pr=Un,vn=Nt?Lg(Un,Nt):Sv(Un)});return $n.columns=pr||[],$n}function q(Jt,Nt){var vn=[],pr=Jt.length,$n=0,Un=0,lr,Hr=pr<=0,Br=!1;Jt.charCodeAt(pr-1)===rv&&--pr,Jt.charCodeAt(pr-1)===Ev&&--pr;function Mr(){if(Hr)return nv;if(Br)return Br=!1,Ig;var Yi,uo=$n,Io;if(Jt.charCodeAt(uo)===wv){for(;$n++<pr&&Jt.charCodeAt($n)!==wv||Jt.charCodeAt(++$n)===wv;);return(Yi=$n)>=pr?Hr=!0:(Io=Jt.charCodeAt($n++))===rv?Br=!0:Io===Ev&&(Br=!0,Jt.charCodeAt($n)===rv&&++$n),Jt.slice(uo+1,Yi-1).replace(/""/g,'"')}for(;$n<pr;){if((Io=Jt.charCodeAt(Yi=$n++))===rv)Br=!0;else if(Io===Ev)Br=!0,Jt.charCodeAt($n)===rv&&++$n;else if(Io!==C)continue;return Jt.slice(uo,Yi)}return Hr=!0,Jt.slice(uo,pr)}for(;(lr=Mr())!==nv;){for(var Oi=[];lr!==Ig&&lr!==nv;)Oi.push(lr),lr=Mr();Nt&&(Oi=Nt(Oi,Un++))==null||vn.push(Oi)}return vn}function we(Jt,Nt){return Jt.map(function(vn){return Nt.map(function(pr){return It(vn[pr])}).join(c)})}function Be(Jt,Nt){return Nt==null&&(Nt=Kh(Jt)),[Nt.map(It).join(c)].concat(we(Jt,Nt)).join(` `)}function Je(Jt,Nt){return Nt==null&&(Nt=Kh(Jt)),we(Jt,Nt).join(` `)}function Et(Jt){return Jt.map(ot).join(` `)}function ot(Jt){return Jt.map(It).join(c)}function It(Jt){return Jt==null?"":Jt instanceof Date?rd(Jt):E.test(Jt+="")?'"'+Jt.replace(/"/g,'""')+'"':Jt}return{parse:k,parseRows:q,format:Be,formatBody:Je,formatRows:Et,formatRow:ot,formatValue:It}}var sp=Xf(","),kg=sp.parse,Nm=sp.parseRows,Fm=sp.format,Bm=sp.formatBody,jm=sp.formatRows,Ng=sp.formatRow,Fg=sp.formatValue,_d=Xf(" "),Bp=_d.parse,Jv=_d.parseRows,Zv=_d.format,jp=_d.formatBody,Eh=_d.formatRows,up=_d.formatRow,Bg=_d.formatValue;function $m(c){for(var E in c){var C=c[E].trim(),k,q;if(!C)C=null;else if(C==="true")C=!0;else if(C==="false")C=!1;else if(C==="NaN")C=NaN;else if(!isNaN(k=+C))C=k;else if(q=C.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))jg&&q[4]&&!q[7]&&(C=C.replace(/-/g,"/").replace(/T/," ")),C=new Date(C);else continue;c[E]=C}return c}const jg=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Um=c=>+c;function Wm(c){return c*c}function $g(c){return c*(2-c)}function qh(c){return((c*=2)<=1?c*c:--c*(2-c)+1)/2}var pc=3,qv=function c(E){E=+E;function C(k){return Math.pow(k,E)}return C.exponent=c,C}(pc),Ih=function c(E){E=+E;function C(k){return 1-Math.pow(1-k,E)}return C.exponent=c,C}(pc),Ov=function c(E){E=+E;function C(k){return((k*=2)<=1?Math.pow(k,E):2-Math.pow(2-k,E))/2}return C.exponent=c,C}(pc),Ug=Math.PI,Ef=Ug/2;function Wg(c){return+c==1?1:1-Math.cos(c*Ef)}function ph(c){return Math.sin(c*Ef)}function $p(c){return(1-Math.cos(Ug*c))/2}function lp(c){return(Math.pow(2,-10*c)-.0009765625)*1.0009775171065494}function zm(c){return lp(1-+c)}function Vm(c){return 1-lp(c)}function iv(c){return((c*=2)<=1?lp(1-c):2-lp(c-1))/2}function zg(c){return 1-Math.sqrt(1-c*c)}function Vg(c){return Math.sqrt(1- --c*c)}function eg(c){return((c*=2)<=1?1-Math.sqrt(1-c*c):Math.sqrt(1-(c-=2)*c)+1)/2}var Up=4/11,Cv=6/11,Hg=8/11,Hm=3/4,Kg=9/11,Km=10/11,xv=15/16,Gm=21/22,tg=63/64,Av=1/Up/Up;function Ym(c){return 1-Wp(1-c)}function Wp(c){return(c=+c)<Up?Av*c*c:c<Hg?Av*(c-=Cv)*c+Hm:c<Km?Av*(c-=Kg)*c+xv:Av*(c-=Gm)*c+tg}function Zd(c){return((c*=2)<=1?1-Wp(1-c):Wp(c-1)+1)/2}var oh=1.70158,Gg=function c(E){E=+E;function C(k){return(k=+k)*k*(E*(k-1)+k)}return C.overshoot=c,C}(oh),Pv=function c(E){E=+E;function C(k){return--k*k*((k+1)*E+k)+1}return C.overshoot=c,C}(oh),ng=function c(E){E=+E;function C(k){return((k*=2)<1?k*k*((E+1)*k-E):(k-=2)*k*((E+1)*k+E)+2)/2}return C.overshoot=c,C}(oh),cp=2*Math.PI,zp=1,rg=.3,ig=function c(E,C){var k=Math.asin(1/(E=Math.max(1,E)))*(C/=cp);function q(we){return E*lp(- --we)*Math.sin((k-we)/C)}return q.amplitude=function(we){return c(we,C*cp)},q.period=function(we){return c(E,we)},q}(zp,rg),Tv=function c(E,C){var k=Math.asin(1/(E=Math.max(1,E)))*(C/=cp);function q(we){return 1-E*lp(we=+we)*Math.sin((we+k)/C)}return q.amplitude=function(we){return c(we,C*cp)},q.period=function(we){return c(E,we)},q}(zp,rg),Xm=function c(E,C){var k=Math.asin(1/(E=Math.max(1,E)))*(C/=cp);function q(we){return((we=we*2-1)<0?E*lp(-we)*Math.sin((k-we)/C):2-E*lp(we)*Math.sin((k+we)/C))/2}return q.amplitude=function(we){return c(we,C*cp)},q.period=function(we){return c(E,we)},q}(zp,rg);function Qm(c){if(!c.ok)throw new Error(c.status+" "+c.statusText);return c.blob()}function Jm(c,E){return fetch(c,E).then(Qm)}function og(c){if(!c.ok)throw new Error(c.status+" "+c.statusText);return c.arrayBuffer()}function Yg(c,E){return fetch(c,E).then(og)}function Zm(c){if(!c.ok)throw new Error(c.status+" "+c.statusText);return c.text()}function ov(c,E){return fetch(c,E).then(Zm)}function Xg(c){return function(E,C,k){return arguments.length===2&&typeof C=="function"&&(k=C,C=void 0),ov(E,C).then(function(q){return c(q,k)})}}function qm(c,E,C,k){arguments.length===3&&typeof C=="function"&&(k=C,C=void 0);var q=Xf(c);return ov(E,C).then(function(we){return q.parse(we,k)})}var Sh=Xg(kg),e0=Xg(Bp);function Qg(c,E){return new Promise(function(C,k){var q=new Image;for(var we in E)q[we]=E[we];q.onerror=k,q.onload=function(){C(q)},q.src=c})}function Jg(c){if(!c.ok)throw new Error(c.status+" "+c.statusText);if(!(c.status===204||c.status===205))return c.json()}function t0(c,E){return fetch(c,E).then(Jg)}function ag(c){return(E,C)=>ov(E,C).then(k=>new DOMParser().parseFromString(k,c))}const Zg=ag("application/xml");var qg=ag("text/html"),sg=ag("image/svg+xml");function n0(c,E){var C,k=1;c==null&&(c=0),E==null&&(E=0);function q(){var we,Be=C.length,Je,Et=0,ot=0;for(we=0;we<Be;++we)Je=C[we],Et+=Je.x,ot+=Je.y;for(Et=(Et/Be-c)*k,ot=(ot/Be-E)*k,we=0;we<Be;++we)Je=C[we],Je.x-=Et,Je.y-=ot}return q.initialize=function(we){C=we},q.x=function(we){return arguments.length?(c=+we,q):c},q.y=function(we){return arguments.length?(E=+we,q):E},q.strength=function(we){return arguments.length?(k=+we,q):k},q}function r0(c){const E=+this._x.call(null,c),C=+this._y.call(null,c);return em(this.cover(E,C),E,C,c)}function em(c,E,C,k){if(isNaN(E)||isNaN(C))return c;var q,we=c._root,Be={data:k},Je=c._x0,Et=c._y0,ot=c._x1,It=c._y1,Jt,Nt,vn,pr,$n,Un,lr,Hr;if(!we)return c._root=Be,c;for(;we.length;)if(($n=E>=(Jt=(Je+ot)/2))?Je=Jt:ot=Jt,(Un=C>=(Nt=(Et+It)/2))?Et=Nt:It=Nt,q=we,!(we=we[lr=Un<<1|$n]))return q[lr]=Be,c;if(vn=+c._x.call(null,we.data),pr=+c._y.call(null,we.data),E===vn&&C===pr)return Be.next=we,q?q[lr]=Be:c._root=Be,c;do q=q?q[lr]=new Array(4):c._root=new Array(4),($n=E>=(Jt=(Je+ot)/2))?Je=Jt:ot=Jt,(Un=C>=(Nt=(Et+It)/2))?Et=Nt:It=Nt;while((lr=Un<<1|$n)===(Hr=(pr>=Nt)<<1|vn>=Jt));return q[Hr]=we,q[lr]=Be,c}function tm(c){var E,C,k=c.length,q,we,Be=new Array(k),Je=new Array(k),Et=1/0,ot=1/0,It=-1/0,Jt=-1/0;for(C=0;C<k;++C)isNaN(q=+this._x.call(null,E=c[C]))||isNaN(we=+this._y.call(null,E))||(Be[C]=q,Je[C]=we,q<Et&&(Et=q),q>It&&(It=q),we<ot&&(ot=we),we>Jt&&(Jt=we));if(Et>It||ot>Jt)return this;for(this.cover(Et,ot).cover(It,Jt),C=0;C<k;++C)em(this,Be[C],Je[C],c[C]);return this}function i0(c,E){if(isNaN(c=+c)||isNaN(E=+E))return this;var C=this._x0,k=this._y0,q=this._x1,we=this._y1;if(isNaN(C))q=(C=Math.floor(c))+1,we=(k=Math.floor(E))+1;else{for(var Be=q-C||1,Je=this._root,Et,ot;C>c||c>=q||k>E||E>=we;)switch(ot=(E<k)<<1|c<C,Et=new Array(4),Et[ot]=Je,Je=Et,Be*=2,ot){case 0:q=C+Be,we=k+Be;break;case 1:C=q-Be,we=k+Be;break;case 2:q=C+Be,k=we-Be;break;case 3:C=q-Be,k=we-Be;break}this._root&&this._root.length&&(this._root=Je)}return this._x0=C,this._y0=k,this._x1=q,this._y1=we,this}function o0(){var c=[];return this.visit(function(E){if(!E.length)do c.push(E.data);while(E=E.next)}),c}function ug(c){return arguments.length?this.cover(+c[0][0],+c[0][1]).cover(+c[1][0],+c[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ah(c,E,C,k,q){this.node=c,this.x0=E,this.y0=C,this.x1=k,this.y1=q}function a0(c,E,C){var k,q=this._x0,we=this._y0,Be,Je,Et,ot,It=this._x1,Jt=this._y1,Nt=[],vn=this._root,pr,$n;for(vn&&Nt.push(new ah(vn,q,we,It,Jt)),C==null?C=1/0:(q=c-C,we=E-C,It=c+C,Jt=E+C,C*=C);pr=Nt.pop();)if(!(!(vn=pr.node)||(Be=pr.x0)>It||(Je=pr.y0)>Jt||(Et=pr.x1)<q||(ot=pr.y1)<we))if(vn.length){var Un=(Be+Et)/2,lr=(Je+ot)/2;Nt.push(new ah(vn[3],Un,lr,Et,ot),new ah(vn[2],Be,lr,Un,ot),new ah(vn[1],Un,Je,Et,lr),new ah(vn[0],Be,Je,Un,lr)),($n=(E>=lr)<<1|c>=Un)&&(pr=Nt[Nt.length-1],Nt[Nt.length-1]=Nt[Nt.length-1-$n],Nt[Nt.length-1-$n]=pr)}else{var Hr=c-+this._x.call(null,vn.data),Br=E-+this._y.call(null,vn.data),Mr=Hr*Hr+Br*Br;if(Mr<C){var Oi=Math.sqrt(C=Mr);q=c-Oi,we=E-Oi,It=c+Oi,Jt=E+Oi,k=vn.data}}return k}function s0(c){if(isNaN(It=+this._x.call(null,c))||isNaN(Jt=+this._y.call(null,c)))return this;var E,C=this._root,k,q,we,Be=this._x0,Je=this._y0,Et=this._x1,ot=this._y1,It,Jt,Nt,vn,pr,$n,Un,lr;if(!C)return this;if(C.length)for(;;){if((pr=It>=(Nt=(Be+Et)/2))?Be=Nt:Et=Nt,($n=Jt>=(vn=(Je+ot)/2))?Je=vn:ot=vn,E=C,!(C=C[Un=$n<<1|pr]))return this;if(!C.length)break;(E[Un+1&3]||E[Un+2&3]||E[Un+3&3])&&(k=E,lr=Un)}for(;C.data!==c;)if(q=C,!(C=C.next))return this;return(we=C.next)&&delete C.next,q?(we?q.next=we:delete q.next,this):E?(we?E[Un]=we:delete E[Un],(C=E[0]||E[1]||E[2]||E[3])&&C===(E[3]||E[2]||E[1]||E[0])&&!C.length&&(k?k[lr]=C:this._root=C),this):(this._root=we,this)}function u0(c){for(var E=0,C=c.length;E<C;++E)this.remove(c[E]);return this}function l0(){return this._root}function nm(){var c=0;return this.visit(function(E){if(!E.length)do++c;while(E=E.next)}),c}function c0(c){var E=[],C,k=this._root,q,we,Be,Je,Et;for(k&&E.push(new ah(k,this._x0,this._y0,this._x1,this._y1));C=E.pop();)if(!c(k=C.node,we=C.x0,Be=C.y0,Je=C.x1,Et=C.y1)&&k.length){var ot=(we+Je)/2,It=(Be+Et)/2;(q=k[3])&&E.push(new ah(q,ot,It,Je,Et)),(q=k[2])&&E.push(new ah(q,we,It,ot,Et)),(q=k[1])&&E.push(new ah(q,ot,Be,Je,It)),(q=k[0])&&E.push(new ah(q,we,Be,ot,It))}return this}function f0(c){var E=[],C=[],k;for(this._root&&E.push(new ah(this._root,this._x0,this._y0,this._x1,this._y1));k=E.pop();){var q=k.node;if(q.length){var we,Be=k.x0,Je=k.y0,Et=k.x1,ot=k.y1,It=(Be+Et)/2,Jt=(Je+ot)/2;(we=q[0])&&E.push(new ah(we,Be,Je,It,Jt)),(we=q[1])&&E.push(new ah(we,It,Je,Et,Jt)),(we=q[2])&&E.push(new ah(we,Be,Jt,It,ot)),(we=q[3])&&E.push(new ah(we,It,Jt,Et,ot))}C.push(k)}for(;k=C.pop();)c(k.node,k.x0,k.y0,k.x1,k.y1);return this}function rm(c){return c[0]}function d0(c){return arguments.length?(this._x=c,this):this._x}function h0(c){return c[1]}function p0(c){return arguments.length?(this._y=c,this):this._y}function av(c,E,C){var k=new lg(E??rm,C??h0,NaN,NaN,NaN,NaN);return c==null?k:k.addAll(c)}function lg(c,E,C,k,q,we){this._x=c,this._y=E,this._x0=C,this._y0=k,this._x1=q,this._y1=we,this._root=void 0}function im(c){for(var E={data:c.data},C=E;c=c.next;)C=C.next={data:c.data};return E}var vh=av.prototype=lg.prototype;vh.copy=function(){var c=new lg(this._x,this._y,this._x0,this._y0,this._x1,this._y1),E=this._root,C,k;if(!E)return c;if(!E.length)return c._root=im(E),c;for(C=[{source:E,target:c._root=new Array(4)}];E=C.pop();)for(var q=0;q<4;++q)(k=E.source[q])&&(k.length?C.push({source:k,target:E.target[q]=new Array(4)}):E.target[q]=im(k));return c},vh.add=r0,vh.addAll=tm,vh.cover=i0,vh.data=o0,vh.extent=ug,vh.find=a0,vh.remove=s0,vh.removeAll=u0,vh.root=l0,vh.size=nm,vh.visit=c0,vh.visitAfter=f0,vh.x=d0,vh.y=p0;function zd(c){return function(){return c}}function ep(c){return(c()-.5)*1e-6}function cg(c){return c.x+c.vx}function fg(c){return c.y+c.vy}function dg(c){var E,C,k,q=1,we=1;typeof c!="function"&&(c=zd(c==null?1:+c));function Be(){for(var ot,It=E.length,Jt,Nt,vn,pr,$n,Un,lr=0;lr<we;++lr)for(Jt=av(E,cg,fg).visitAfter(Je),ot=0;ot<It;++ot)Nt=E[ot],$n=C[Nt.index],Un=$n*$n,vn=Nt.x+Nt.vx,pr=Nt.y+Nt.vy,Jt.visit(Hr);function Hr(Br,Mr,Oi,Yi,uo){var Io=Br.data,ua=Br.r,To=$n+ua;if(Io){if(Io.index>Nt.index){var Lo=vn-Io.x-Io.vx,Ta=pr-Io.y-Io.vy,da=Lo*Lo+Ta*Ta;da<To*To&&(Lo===0&&(Lo=ep(k),da+=Lo*Lo),Ta===0&&(Ta=ep(k),da+=Ta*Ta),da=(To-(da=Math.sqrt(da)))/da*q,Nt.vx+=(Lo*=da)*(To=(ua*=ua)/(Un+ua)),Nt.vy+=(Ta*=da)*To,Io.vx-=Lo*(To=1-To),Io.vy-=Ta*To)}return}return Mr>vn+To||Yi<vn-To||Oi>pr+To||uo<pr-To}}function Je(ot){if(ot.data)return ot.r=C[ot.data.index];for(var It=ot.r=0;It<4;++It)ot[It]&&ot[It].r>ot.r&&(ot.r=ot[It].r)}function Et(){if(E){var ot,It=E.length,Jt;for(C=new Array(It),ot=0;ot<It;++ot)Jt=E[ot],C[Jt.index]=+c(Jt,ot,E)}}return Be.initialize=function(ot,It){E=ot,k=It,Et()},Be.iterations=function(ot){return arguments.length?(we=+ot,Be):we},Be.strength=function(ot){return arguments.length?(q=+ot,Be):q},Be.radius=function(ot){return arguments.length?(c=typeof ot=="function"?ot:zd(+ot),Et(),Be):c},Be}function v0(c){return c.index}function Rv(c,E){var C=c.get(E);if(!C)throw new Error("node not found: "+E);return C}function hg(c){var E=v0,C=Jt,k,q=zd(30),we,Be,Je,Et,ot,It=1;c==null&&(c=[]);function Jt(Un){return 1/Math.min(Je[Un.source.index],Je[Un.target.index])}function Nt(Un){for(var lr=0,Hr=c.length;lr<It;++lr)for(var Br=0,Mr,Oi,Yi,uo,Io,ua,To;Br<Hr;++Br)Mr=c[Br],Oi=Mr.source,Yi=Mr.target,uo=Yi.x+Yi.vx-Oi.x-Oi.vx||ep(ot),Io=Yi.y+Yi.vy-Oi.y-Oi.vy||ep(ot),ua=Math.sqrt(uo*uo+Io*Io),ua=(ua-we[Br])/ua*Un*k[Br],uo*=ua,Io*=ua,Yi.vx-=uo*(To=Et[Br]),Yi.vy-=Io*To,Oi.vx+=uo*(To=1-To),Oi.vy+=Io*To}function vn(){if(Be){var Un,lr=Be.length,Hr=c.length,Br=new Map(Be.map((Oi,Yi)=>[E(Oi,Yi,Be),Oi])),Mr;for(Un=0,Je=new Array(lr);Un<Hr;++Un)Mr=c[Un],Mr.index=Un,typeof Mr.source!="object"&&(Mr.source=Rv(Br,Mr.source)),typeof Mr.target!="object"&&(Mr.target=Rv(Br,Mr.target)),Je[Mr.source.index]=(Je[Mr.source.index]||0)+1,Je[Mr.target.index]=(Je[Mr.target.index]||0)+1;for(Un=0,Et=new Array(Hr);Un<Hr;++Un)Mr=c[Un],Et[Un]=Je[Mr.source.index]/(Je[Mr.source.index]+Je[Mr.target.index]);k=new Array(Hr),pr(),we=new Array(Hr),$n()}}function pr(){if(Be)for(var Un=0,lr=c.length;Un<lr;++Un)k[Un]=+C(c[Un],Un,c)}function $n(){if(Be)for(var Un=0,lr=c.length;Un<lr;++Un)we[Un]=+q(c[Un],Un,c)}return Nt.initialize=function(Un,lr){Be=Un,ot=lr,vn()},Nt.links=function(Un){return arguments.length?(c=Un,vn(),Nt):c},Nt.id=function(Un){return arguments.length?(E=Un,Nt):E},Nt.iterations=function(Un){return arguments.length?(It=+Un,Nt):It},Nt.strength=function(Un){return arguments.length?(C=typeof Un=="function"?Un:zd(+Un),pr(),Nt):C},Nt.distance=function(Un){return arguments.length?(q=typeof Un=="function"?Un:zd(+Un),$n(),Nt):q},Nt}const om=1664525,g0=1013904223,am=4294967296;function _h(){let c=1;return()=>(c=(om*c+g0)%am)/am}function Mv(c){return c.x}function m0(c){return c.y}var y0=10,sm=Math.PI*(3-Math.sqrt(5));function b0(c){var E,C=1,k=.001,q=1-Math.pow(k,1/300),we=0,Be=.6,Je=new Map,Et=ar(Jt),ot=$r("tick","end"),It=_h();c==null&&(c=[]);function Jt(){Nt(),ot.call("tick",E),C<k&&(Et.stop(),ot.call("end",E))}function Nt($n){var Un,lr=c.length,Hr;$n===void 0&&($n=1);for(var Br=0;Br<$n;++Br)for(C+=(we-C)*q,Je.forEach(function(Mr){Mr(C)}),Un=0;Un<lr;++Un)Hr=c[Un],Hr.fx==null?Hr.x+=Hr.vx*=Be:(Hr.x=Hr.fx,Hr.vx=0),Hr.fy==null?Hr.y+=Hr.vy*=Be:(Hr.y=Hr.fy,Hr.vy=0);return E}function vn(){for(var $n=0,Un=c.length,lr;$n<Un;++$n){if(lr=c[$n],lr.index=$n,lr.fx!=null&&(lr.x=lr.fx),lr.fy!=null&&(lr.y=lr.fy),isNaN(lr.x)||isNaN(lr.y)){var Hr=y0*Math.sqrt(.5+$n),Br=$n*sm;lr.x=Hr*Math.cos(Br),lr.y=Hr*Math.sin(Br)}(isNaN(lr.vx)||isNaN(lr.vy))&&(lr.vx=lr.vy=0)}}function pr($n){return $n.initialize&&$n.initialize(c,It),$n}return vn(),E={tick:Nt,restart:function(){return Et.restart(Jt),E},stop:function(){return Et.stop(),E},nodes:function($n){return arguments.length?(c=$n,vn(),Je.forEach(pr),E):c},alpha:function($n){return arguments.length?(C=+$n,E):C},alphaMin:function($n){return arguments.length?(k=+$n,E):k},alphaDecay:function($n){return arguments.length?(q=+$n,E):+q},alphaTarget:function($n){return arguments.length?(we=+$n,E):we},velocityDecay:function($n){return arguments.length?(Be=1-$n,E):1-Be},randomSource:function($n){return arguments.length?(It=$n,Je.forEach(pr),E):It},force:function($n,Un){return arguments.length>1?(Un==null?Je.delete($n):Je.set($n,pr(Un)),E):Je.get($n)},find:function($n,Un,lr){var Hr=0,Br=c.length,Mr,Oi,Yi,uo,Io;for(lr==null?lr=1/0:lr*=lr,Hr=0;Hr<Br;++Hr)uo=c[Hr],Mr=$n-uo.x,Oi=Un-uo.y,Yi=Mr*Mr+Oi*Oi,Yi<lr&&(Io=uo,lr=Yi);return Io},on:function($n,Un){return arguments.length>1?(ot.on($n,Un),E):ot.on($n)}}}function Dv(){var c,E,C,k,q=zd(-30),we,Be=1,Je=1/0,Et=.81;function ot(vn){var pr,$n=c.length,Un=av(c,Mv,m0).visitAfter(Jt);for(k=vn,pr=0;pr<$n;++pr)E=c[pr],Un.visit(Nt)}function It(){if(c){var vn,pr=c.length,$n;for(we=new Array(pr),vn=0;vn<pr;++vn)$n=c[vn],we[$n.index]=+q($n,vn,c)}}function Jt(vn){var pr=0,$n,Un,lr=0,Hr,Br,Mr;if(vn.length){for(Hr=Br=Mr=0;Mr<4;++Mr)($n=vn[Mr])&&(Un=Math.abs($n.value))&&(pr+=$n.value,lr+=Un,Hr+=Un*$n.x,Br+=Un*$n.y);vn.x=Hr/lr,vn.y=Br/lr}else{$n=vn,$n.x=$n.data.x,$n.y=$n.data.y;do pr+=we[$n.data.index];while($n=$n.next)}vn.value=pr}function Nt(vn,pr,$n,Un){if(!vn.value)return!0;var lr=vn.x-E.x,Hr=vn.y-E.y,Br=Un-pr,Mr=lr*lr+Hr*Hr;if(Br*Br/Et<Mr)return Mr<Je&&(lr===0&&(lr=ep(C),Mr+=lr*lr),Hr===0&&(Hr=ep(C),Mr+=Hr*Hr),Mr<Be&&(Mr=Math.sqrt(Be*Mr)),E.vx+=lr*vn.value*k/Mr,E.vy+=Hr*vn.value*k/Mr),!0;if(vn.length||Mr>=Je)return;(vn.data!==E||vn.next)&&(lr===0&&(lr=ep(C),Mr+=lr*lr),Hr===0&&(Hr=ep(C),Mr+=Hr*Hr),Mr<Be&&(Mr=Math.sqrt(Be*Mr)));do vn.data!==E&&(Br=we[vn.data.index]*k/Mr,E.vx+=lr*Br,E.vy+=Hr*Br);while(vn=vn.next)}return ot.initialize=function(vn,pr){c=vn,C=pr,It()},ot.strength=function(vn){return arguments.length?(q=typeof vn=="function"?vn:zd(+vn),It(),ot):q},ot.distanceMin=function(vn){return arguments.length?(Be=vn*vn,ot):Math.sqrt(Be)},ot.distanceMax=function(vn){return arguments.length?(Je=vn*vn,ot):Math.sqrt(Je)},ot.theta=function(vn){return arguments.length?(Et=vn*vn,ot):Math.sqrt(Et)},ot}function w0(c,E,C){var k,q=zd(.1),we,Be;typeof c!="function"&&(c=zd(+c)),E==null&&(E=0),C==null&&(C=0);function Je(ot){for(var It=0,Jt=k.length;It<Jt;++It){var Nt=k[It],vn=Nt.x-E||1e-6,pr=Nt.y-C||1e-6,$n=Math.sqrt(vn*vn+pr*pr),Un=(Be[It]-$n)*we[It]*ot/$n;Nt.vx+=vn*Un,Nt.vy+=pr*Un}}function Et(){if(k){var ot,It=k.length;for(we=new Array(It),Be=new Array(It),ot=0;ot<It;++ot)Be[ot]=+c(k[ot],ot,k),we[ot]=isNaN(Be[ot])?0:+q(k[ot],ot,k)}}return Je.initialize=function(ot){k=ot,Et()},Je.strength=function(ot){return arguments.length?(q=typeof ot=="function"?ot:zd(+ot),Et(),Je):q},Je.radius=function(ot){return arguments.length?(c=typeof ot=="function"?ot:zd(+ot),Et(),Je):c},Je.x=function(ot){return arguments.length?(E=+ot,Je):E},Je.y=function(ot){return arguments.length?(C=+ot,Je):C},Je}function Iv(c){var E=zd(.1),C,k,q;typeof c!="function"&&(c=zd(c==null?0:+c));function we(Je){for(var Et=0,ot=C.length,It;Et<ot;++Et)It=C[Et],It.vx+=(q[Et]-It.x)*k[Et]*Je}function Be(){if(C){var Je,Et=C.length;for(k=new Array(Et),q=new Array(Et),Je=0;Je<Et;++Je)k[Je]=isNaN(q[Je]=+c(C[Je],Je,C))?0:+E(C[Je],Je,C)}}return we.initialize=function(Je){C=Je,Be()},we.strength=function(Je){return arguments.length?(E=typeof Je=="function"?Je:zd(+Je),Be(),we):E},we.x=function(Je){return arguments.length?(c=typeof Je=="function"?Je:zd(+Je),Be(),we):c},we}function E0(c){var E=zd(.1),C,k,q;typeof c!="function"&&(c=zd(c==null?0:+c));function we(Je){for(var Et=0,ot=C.length,It;Et<ot;++Et)It=C[Et],It.vy+=(q[Et]-It.y)*k[Et]*Je}function Be(){if(C){var Je,Et=C.length;for(k=new Array(Et),q=new Array(Et),Je=0;Je<Et;++Je)k[Je]=isNaN(q[Je]=+c(C[Je],Je,C))?0:+E(C[Je],Je,C)}}return we.initialize=function(Je){C=Je,Be()},we.strength=function(Je){return arguments.length?(E=typeof Je=="function"?Je:zd(+Je),Be(),we):E},we.y=function(Je){return arguments.length?(c=typeof Je=="function"?Je:zd(+Je),Be(),we):c},we}function S0(c){return Math.abs(c=Math.round(c))>=1e21?c.toLocaleString("en").replace(/,/g,""):c.toString(10)}function Lv(c,E){if((C=(c=E?c.toExponential(E-1):c.toExponential()).indexOf("e"))<0)return null;var C,k=c.slice(0,C);return[k.length>1?k[0]+k.slice(2):k,+c.slice(C+1)]}function Vp(c){return c=Lv(Math.abs(c)),c?c[1]:NaN}function pg(c,E){return function(C,k){for(var q=C.length,we=[],Be=0,Je=c[0],Et=0;q>0&&Je>0&&(Et+Je+1>k&&(Je=Math.max(1,k-Et)),we.push(C.substring(q-=Je,q+Je)),!((Et+=Je+1)>k));)Je=c[Be=(Be+1)%c.length];return we.reverse().join(E)}}function _0(c){return function(E){return E.replace(/[0-9]/g,function(C){return c[+C]})}}var O0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sp(c){if(!(E=O0.exec(c)))throw new Error("invalid format: "+c);var E;return new _p({fill:E[1],align:E[2],sign:E[3],symbol:E[4],zero:E[5],width:E[6],comma:E[7],precision:E[8]&&E[8].slice(1),trim:E[9],type:E[10]})}Sp.prototype=_p.prototype;function _p(c){this.fill=c.fill===void 0?" ":c.fill+"",this.align=c.align===void 0?">":c.align+"",this.sign=c.sign===void 0?"-":c.sign+"",this.symbol=c.symbol===void 0?"":c.symbol+"",this.zero=!!c.zero,this.width=c.width===void 0?void 0:+c.width,this.comma=!!c.comma,this.precision=c.precision===void 0?void 0:+c.precision,this.trim=!!c.trim,this.type=c.type===void 0?"":c.type+""}_p.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function vg(c){e:for(var E=c.length,C=1,k=-1,q;C<E;++C)switch(c[C]){case".":k=q=C;break;case"0":k===0&&(k=C),q=C;break;default:if(!+c[C])break e;k>0&&(k=0);break}return k>0?c.slice(0,k)+c.slice(q+1):c}var gg;function um(c,E){var C=Lv(c,E);if(!C)return c+"";var k=C[0],q=C[1],we=q-(gg=Math.max(-8,Math.min(8,Math.floor(q/3)))*3)+1,Be=k.length;return we===Be?k:we>Be?k+new Array(we-Be+1).join("0"):we>0?k.slice(0,we)+"."+k.slice(we):"0."+new Array(1-we).join("0")+Lv(c,Math.max(0,E+we-1))[0]}function sv(c,E){var C=Lv(c,E);if(!C)return c+"";var k=C[0],q=C[1];return q<0?"0."+new Array(-q).join("0")+k:k.length>q+1?k.slice(0,q+1)+"."+k.slice(q+1):k+new Array(q-k.length+2).join("0")}const lm={"%":(c,E)=>(c*100).toFixed(E),b:c=>Math.round(c).toString(2),c:c=>c+"",d:S0,e:(c,E)=>c.toExponential(E),f:(c,E)=>c.toFixed(E),g:(c,E)=>c.toPrecision(E),o:c=>Math.round(c).toString(8),p:(c,E)=>sv(c*100,E),r:sv,s:um,X:c=>Math.round(c).toString(16).toUpperCase(),x:c=>Math.round(c).toString(16)};function cm(c){return c}var Op=Array.prototype.map,fm=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function dm(c){var E=c.grouping===void 0||c.thousands===void 0?cm:pg(Op.call(c.grouping,Number),c.thousands+""),C=c.currency===void 0?"":c.currency[0]+"",k=c.currency===void 0?"":c.currency[1]+"",q=c.decimal===void 0?".":c.decimal+"",we=c.numerals===void 0?cm:_0(Op.call(c.numerals,String)),Be=c.percent===void 0?"%":c.percent+"",Je=c.minus===void 0?"\u2212":c.minus+"",Et=c.nan===void 0?"NaN":c.nan+"";function ot(Jt){Jt=Sp(Jt);var Nt=Jt.fill,vn=Jt.align,pr=Jt.sign,$n=Jt.symbol,Un=Jt.zero,lr=Jt.width,Hr=Jt.comma,Br=Jt.precision,Mr=Jt.trim,Oi=Jt.type;Oi==="n"?(Hr=!0,Oi="g"):lm[Oi]||(Br===void 0&&(Br=12),Mr=!0,Oi="g"),(Un||Nt==="0"&&vn==="=")&&(Un=!0,Nt="0",vn="=");var Yi=$n==="$"?C:$n==="#"&&/[boxX]/.test(Oi)?"0"+Oi.toLowerCase():"",uo=$n==="$"?k:/[%p]/.test(Oi)?Be:"",Io=lm[Oi],ua=/[defgprs%]/.test(Oi);Br=Br===void 0?6:/[gprs]/.test(Oi)?Math.max(1,Math.min(21,Br)):Math.max(0,Math.min(20,Br));function To(Lo){var Ta=Yi,da=uo,Zr,Hi,no;if(Oi==="c")da=Io(Lo)+da,Lo="";else{Lo=+Lo;var jo=Lo<0||1/Lo<0;if(Lo=isNaN(Lo)?Et:Io(Math.abs(Lo),Br),Mr&&(Lo=vg(Lo)),jo&&+Lo==0&&pr!=="+"&&(jo=!1),Ta=(jo?pr==="("?pr:Je:pr==="-"||pr==="("?"":pr)+Ta,da=(Oi==="s"?fm[8+gg/3]:"")+da+(jo&&pr==="("?")":""),ua){for(Zr=-1,Hi=Lo.length;++Zr<Hi;)if(no=Lo.charCodeAt(Zr),48>no||no>57){da=(no===46?q+Lo.slice(Zr+1):Lo.slice(Zr))+da,Lo=Lo.slice(0,Zr);break}}}Hr&&!Un&&(Lo=E(Lo,1/0));var oo=Ta.length+Lo.length+da.length,zo=oo<lr?new Array(lr-oo+1).join(Nt):"";switch(Hr&&Un&&(Lo=E(zo+Lo,zo.length?lr-da.length:1/0),zo=""),vn){case"<":Lo=Ta+Lo+da+zo;break;case"=":Lo=Ta+zo+Lo+da;break;case"^":Lo=zo.slice(0,oo=zo.length>>1)+Ta+Lo+da+zo.slice(oo);break;default:Lo=zo+Ta+Lo+da;break}return we(Lo)}return To.toString=function(){return Jt+""},To}function It(Jt,Nt){var vn=ot((Jt=Sp(Jt),Jt.type="f",Jt)),pr=Math.max(-8,Math.min(8,Math.floor(Vp(Nt)/3)))*3,$n=Math.pow(10,-pr),Un=fm[8+pr/3];return function(lr){return vn($n*lr)+Un}}return{format:ot,formatPrefix:It}}var kv,uv,Nv;C0({thousands:",",grouping:[3],currency:["$",""]});function C0(c){return kv=dm(c),uv=kv.format,Nv=kv.formatPrefix,kv}function hm(c){return Math.max(0,-Vp(Math.abs(c)))}function mg(c,E){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vp(E)/3)))*3-Vp(Math.abs(c)))}function pm(c,E){return c=Math.abs(c),E=Math.abs(E)-c,Math.max(0,Vp(E)-Vp(c))+1}var Hl=1e-6,Hp=1e-12,$c=Math.PI,id=$c/2,Fv=$c/4,gh=$c*2,X=180/$c,Ce=$c/180,Ft=Math.abs,dr=Math.atan,Ei=Math.atan2,ji=Math.cos,Qo=Math.ceil,ya=Math.exp,Qa=Math.floor,js=Math.hypot,$s=Math.log,qs=Math.pow,Os=Math.sin,Gu=Math.sign||function(c){return c>0?1:c<0?-1:0},hl=Math.sqrt,Cc=Math.tan;function Yl(c){return c>1?0:c<-1?$c:Math.acos(c)}function Xl(c){return c>1?id:c<-1?-id:Math.asin(c)}function kc(c){return(c=Os(c/2))*c}function Gc(){}function Vd(c,E){c&&vd.hasOwnProperty(c.type)&&vd[c.type](c,E)}var mh={Feature:function(c,E){Vd(c.geometry,E)},FeatureCollection:function(c,E){for(var C=c.features,k=-1,q=C.length;++k<q;)Vd(C[k].geometry,E)}},vd={Sphere:function(c,E){E.sphere()},Point:function(c,E){c=c.coordinates,E.point(c[0],c[1],c[2])},MultiPoint:function(c,E){for(var C=c.coordinates,k=-1,q=C.length;++k<q;)c=C[k],E.point(c[0],c[1],c[2])},LineString:function(c,E){Oh(c.coordinates,E,0)},MultiLineString:function(c,E){for(var C=c.coordinates,k=-1,q=C.length;++k<q;)Oh(C[k],E,0)},Polygon:function(c,E){Lh(c.coordinates,E)},MultiPolygon:function(c,E){for(var C=c.coordinates,k=-1,q=C.length;++k<q;)Lh(C[k],E)},GeometryCollection:function(c,E){for(var C=c.geometries,k=-1,q=C.length;++k<q;)Vd(C[k],E)}};function Oh(c,E,C){var k=-1,q=c.length-C,we;for(E.lineStart();++k<q;)we=c[k],E.point(we[0],we[1],we[2]);E.lineEnd()}function Lh(c,E){var C=-1,k=c.length;for(E.polygonStart();++C<k;)Oh(c[C],E,1);E.polygonEnd()}function kh(c,E){c&&mh.hasOwnProperty(c.type)?mh[c.type](c,E):Vd(c,E)}var yg=new ce,bg=new ce,wg,Eg,vm,gm,Bv,fp={point:Gc,lineStart:Gc,lineEnd:Gc,polygonStart:function(){yg=new ce,fp.lineStart=pb,fp.lineEnd=vb},polygonEnd:function(){var c=+yg;bg.add(c<0?gh+c:c),this.lineStart=this.lineEnd=this.point=Gc},sphere:function(){bg.add(gh)}};function pb(){fp.point=gb}function vb(){fy(wg,Eg)}function gb(c,E){fp.point=fy,wg=c,Eg=E,c*=Ce,E*=Ce,vm=c,gm=ji(E=E/2+Fv),Bv=Os(E)}function fy(c,E){c*=Ce,E*=Ce,E=E/2+Fv;var C=c-vm,k=C>=0?1:-1,q=k*C,we=ji(E),Be=Os(E),Je=Bv*Be,Et=gm*we+Je*ji(q),ot=Je*k*Os(q);yg.add(Ei(ot,Et)),vm=c,gm=we,Bv=Be}function dy(c){return bg=new ce,kh(c,fp),bg*2}function mm(c){return[Ei(c[1],c[0]),Xl(c[2])]}function lv(c){var E=c[0],C=c[1],k=ji(C);return[k*ji(E),k*Os(E),Os(C)]}function Sg(c,E){return c[0]*E[0]+c[1]*E[1]+c[2]*E[2]}function cv(c,E){return[c[1]*E[2]-c[2]*E[1],c[2]*E[0]-c[0]*E[2],c[0]*E[1]-c[1]*E[0]]}function ym(c,E){c[0]+=E[0],c[1]+=E[1],c[2]+=E[2]}function gd(c,E){return[c[0]*E,c[1]*E,c[2]*E]}function md(c){var E=hl(c[0]*c[0]+c[1]*c[1]+c[2]*c[2]);c[0]/=E,c[1]/=E,c[2]/=E}var Td,$h,Bd,Uh,fv,hy,x0,jv,_g,Hf,Cp,Kp={point:py,lineStart:de,lineEnd:L,polygonStart:function(){Kp.point=_e,Kp.lineStart=mn,Kp.lineEnd=vr,_g=new ce,fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),Kp.point=py,Kp.lineStart=de,Kp.lineEnd=L,yg<0?(Td=-(Bd=180),$h=-(Uh=90)):_g>Hl?Uh=90:_g<-Hl&&($h=-90),Cp[0]=Td,Cp[1]=Bd},sphere:function(){Td=-(Bd=180),$h=-(Uh=90)}};function py(c,E){Hf.push(Cp=[Td=c,Bd=c]),E<$h&&($h=E),E>Uh&&(Uh=E)}function vy(c,E){var C=lv([c*Ce,E*Ce]);if(jv){var k=cv(jv,C),q=[k[1],-k[0],0],we=cv(q,k);md(we),we=mm(we);var Be=c-fv,Je=Be>0?1:-1,Et=we[0]*X*Je,ot,It=Ft(Be)>180;It^(Je*fv<Et&&Et<Je*c)?(ot=we[1]*X,ot>Uh&&(Uh=ot)):(Et=(Et+360)%360-180,It^(Je*fv<Et&&Et<Je*c)?(ot=-we[1]*X,ot<$h&&($h=ot)):(E<$h&&($h=E),E>Uh&&(Uh=E))),It?c<fv?Qr(Td,c)>Qr(Td,Bd)&&(Bd=c):Qr(c,Bd)>Qr(Td,Bd)&&(Td=c):Bd>=Td?(c<Td&&(Td=c),c>Bd&&(Bd=c)):c>fv?Qr(Td,c)>Qr(Td,Bd)&&(Bd=c):Qr(c,Bd)>Qr(Td,Bd)&&(Td=c)}else Hf.push(Cp=[Td=c,Bd=c]);E<$h&&($h=E),E>Uh&&(Uh=E),jv=C,fv=c}function de(){Kp.point=vy}function L(){Cp[0]=Td,Cp[1]=Bd,Kp.point=py,jv=null}function _e(c,E){if(jv){var C=c-fv;_g.add(Ft(C)>180?C+(C>0?360:-360):C)}else hy=c,x0=E;fp.point(c,E),vy(c,E)}function mn(){fp.lineStart()}function vr(){_e(hy,x0),fp.lineEnd(),Ft(_g)>Hl&&(Td=-(Bd=180)),Cp[0]=Td,Cp[1]=Bd,jv=null}function Qr(c,E){return(E-=c)<0?E+360:E}function ao(c,E){return c[0]-E[0]}function oa(c,E){return c[0]<=c[1]?c[0]<=E&&E<=c[1]:E<c[0]||c[1]<E}function qo(c){var E,C,k,q,we,Be,Je;if(Uh=Bd=-(Td=$h=1/0),Hf=[],kh(c,Kp),C=Hf.length){for(Hf.sort(ao),E=1,k=Hf[0],we=[k];E<C;++E)q=Hf[E],oa(k,q[0])||oa(k,q[1])?(Qr(k[0],q[1])>Qr(k[0],k[1])&&(k[1]=q[1]),Qr(q[0],k[1])>Qr(k[0],k[1])&&(k[0]=q[0])):we.push(k=q);for(Be=-1/0,C=we.length-1,E=0,k=we[C];E<=C;k=q,++E)q=we[E],(Je=Qr(k[1],q[0]))>Be&&(Be=Je,Td=q[0],Bd=k[1])}return Hf=Cp=null,Td===1/0||$h===1/0?[[NaN,NaN],[NaN,NaN]]:[[Td,$h],[Bd,Uh]]}var ha,is,_s,ou,Ju,cl,$l,Sc,Qf,zc,xf,Qu,Sf,ef,xc,Nc,Hd={sphere:Gc,point:dp,lineStart:$v,lineEnd:Pp,polygonStart:function(){Hd.lineStart=Gp,Hd.lineEnd=Og},polygonEnd:function(){Hd.lineStart=$v,Hd.lineEnd=Pp}};function dp(c,E){c*=Ce,E*=Ce;var C=ji(E);xp(C*ji(c),C*Os(c),Os(E))}function xp(c,E,C){++ha,_s+=(c-_s)/ha,ou+=(E-ou)/ha,Ju+=(C-Ju)/ha}function $v(){Hd.point=A0}function A0(c,E){c*=Ce,E*=Ce;var C=ji(E);ef=C*ji(c),xc=C*Os(c),Nc=Os(E),Hd.point=Ap,xp(ef,xc,Nc)}function Ap(c,E){c*=Ce,E*=Ce;var C=ji(E),k=C*ji(c),q=C*Os(c),we=Os(E),Be=Ei(hl((Be=xc*we-Nc*q)*Be+(Be=Nc*k-ef*we)*Be+(Be=ef*q-xc*k)*Be),ef*k+xc*q+Nc*we);is+=Be,cl+=Be*(ef+(ef=k)),$l+=Be*(xc+(xc=q)),Sc+=Be*(Nc+(Nc=we)),xp(ef,xc,Nc)}function Pp(){Hd.point=dp}function Gp(){Hd.point=P0}function Og(){Yc(Qu,Sf),Hd.point=dp}function P0(c,E){Qu=c,Sf=E,c*=Ce,E*=Ce,Hd.point=Yc;var C=ji(E);ef=C*ji(c),xc=C*Os(c),Nc=Os(E),xp(ef,xc,Nc)}function Yc(c,E){c*=Ce,E*=Ce;var C=ji(E),k=C*ji(c),q=C*Os(c),we=Os(E),Be=xc*we-Nc*q,Je=Nc*k-ef*we,Et=ef*q-xc*k,ot=js(Be,Je,Et),It=Xl(ot),Jt=ot&&-It/ot;Qf.add(Jt*Be),zc.add(Jt*Je),xf.add(Jt*Et),is+=It,cl+=It*(ef+(ef=k)),$l+=It*(xc+(xc=q)),Sc+=It*(Nc+(Nc=we)),xp(ef,xc,Nc)}function Tp(c){ha=is=_s=ou=Ju=cl=$l=Sc=0,Qf=new ce,zc=new ce,xf=new ce,kh(c,Hd);var E=+Qf,C=+zc,k=+xf,q=js(E,C,k);return q<Hp&&(E=cl,C=$l,k=Sc,is<Hl&&(E=_s,C=ou,k=Ju),q=js(E,C,k),q<Hp)?[NaN,NaN]:[Ei(C,E)*X,Xl(k/q)*X]}function Af(c){return function(){return c}}function ip(c,E){function C(k,q){return k=c(k,q),E(k[0],k[1])}return c.invert&&E.invert&&(C.invert=function(k,q){return k=E.invert(k,q),k&&c.invert(k[0],k[1])}),C}function Rp(c,E){return Ft(c)>$c&&(c-=Math.round(c/gh)*gh),[c,E]}Rp.invert=Rp;function Mp(c,E,C){return(c%=gh)?E||C?ip(gy(c),T0(E,C)):gy(c):E||C?T0(E,C):Rp}function Uv(c){return function(E,C){return E+=c,Ft(E)>$c&&(E-=Math.round(E/gh)*gh),[E,C]}}function gy(c){var E=Uv(c);return E.invert=Uv(-c),E}function T0(c,E){var C=ji(c),k=Os(c),q=ji(E),we=Os(E);function Be(Je,Et){var ot=ji(Et),It=ji(Je)*ot,Jt=Os(Je)*ot,Nt=Os(Et),vn=Nt*C+It*k;return[Ei(Jt*q-vn*we,It*C-Nt*k),Xl(vn*q+Jt*we)]}return Be.invert=function(Je,Et){var ot=ji(Et),It=ji(Je)*ot,Jt=Os(Je)*ot,Nt=Os(Et),vn=Nt*q-Jt*we;return[Ei(Jt*q+Nt*we,It*C+vn*k),Xl(vn*C-It*k)]},Be}function R0(c){c=Mp(c[0]*Ce,c[1]*Ce,c.length>2?c[2]*Ce:0);function E(C){return C=c(C[0]*Ce,C[1]*Ce),C[0]*=X,C[1]*=X,C}return E.invert=function(C){return C=c.invert(C[0]*Ce,C[1]*Ce),C[0]*=X,C[1]*=X,C},E}function my(c,E,C,k,q,we){if(C){var Be=ji(E),Je=Os(E),Et=k*C;q==null?(q=E+k*gh,we=E-Et/2):(q=B1(Be,q),we=B1(Be,we),(k>0?q<we:q>we)&&(q+=k*gh));for(var ot,It=q;k>0?It>we:It<we;It-=Et)ot=mm([Be,-Je*ji(It),-Je*Os(It)]),c.point(ot[0],ot[1])}}function B1(c,E){E=lv(E),E[0]-=c,md(E);var C=Yl(-E[1]);return((-E[2]<0?-C:C)+gh-Hl)%gh}function l_(){var c=Af([0,0]),E=Af(90),C=Af(6),k,q,we={point:Be};function Be(Et,ot){k.push(Et=q(Et,ot)),Et[0]*=X,Et[1]*=X}function Je(){var Et=c.apply(this,arguments),ot=E.apply(this,arguments)*Ce,It=C.apply(this,arguments)*Ce;return k=[],q=Mp(-Et[0]*Ce,-Et[1]*Ce,0).invert,my(we,ot,It,1),Et={type:"Polygon",coordinates:[k]},k=q=null,Et}return Je.center=function(Et){return arguments.length?(c=typeof Et=="function"?Et:Af([+Et[0],+Et[1]]),Je):c},Je.radius=function(Et){return arguments.length?(E=typeof Et=="function"?Et:Af(+Et),Je):E},Je.precision=function(Et){return arguments.length?(C=typeof Et=="function"?Et:Af(+Et),Je):C},Je}function j1(){var c=[],E;return{point:function(C,k,q){E.push([C,k,q])},lineStart:function(){c.push(E=[])},lineEnd:Gc,rejoin:function(){c.length>1&&c.push(c.pop().concat(c.shift()))},result:function(){var C=c;return c=[],E=null,C}}}function yy(c,E){return Ft(c[0]-E[0])<Hl&&Ft(c[1]-E[1])<Hl}function by(c,E,C,k){this.x=c,this.z=E,this.o=C,this.e=k,this.v=!1,this.n=this.p=null}function $1(c,E,C,k,q){var we=[],Be=[],Je,Et;if(c.forEach(function(pr){if(!(($n=pr.length-1)<=0)){var $n,Un=pr[0],lr=pr[$n],Hr;if(yy(Un,lr)){if(!Un[2]&&!lr[2]){for(q.lineStart(),Je=0;Je<$n;++Je)q.point((Un=pr[Je])[0],Un[1]);q.lineEnd();return}lr[0]+=2*Hl}we.push(Hr=new by(Un,pr,null,!0)),Be.push(Hr.o=new by(Un,null,Hr,!1)),we.push(Hr=new by(lr,pr,null,!1)),Be.push(Hr.o=new by(lr,null,Hr,!0))}}),!!we.length){for(Be.sort(E),U1(we),U1(Be),Je=0,Et=Be.length;Je<Et;++Je)Be[Je].e=C=!C;for(var ot=we[0],It,Jt;;){for(var Nt=ot,vn=!0;Nt.v;)if((Nt=Nt.n)===ot)return;It=Nt.z,q.lineStart();do{if(Nt.v=Nt.o.v=!0,Nt.e){if(vn)for(Je=0,Et=It.length;Je<Et;++Je)q.point((Jt=It[Je])[0],Jt[1]);else k(Nt.x,Nt.n.x,1,q);Nt=Nt.n}else{if(vn)for(It=Nt.p.z,Je=It.length-1;Je>=0;--Je)q.point((Jt=It[Je])[0],Jt[1]);else k(Nt.x,Nt.p.x,-1,q);Nt=Nt.p}Nt=Nt.o,It=Nt.z,vn=!vn}while(!Nt.v);q.lineEnd()}}}function U1(c){if(E=c.length){for(var E,C=0,k=c[0],q;++C<E;)k.n=q=c[C],q.p=k,k=q;k.n=q=c[0],q.p=k}}function mb(c){return Ft(c[0])<=$c?c[0]:Gu(c[0])*((Ft(c[0])+$c)%gh-$c)}function W1(c,E){var C=mb(E),k=E[1],q=Os(k),we=[Os(C),-ji(C),0],Be=0,Je=0,Et=new ce;q===1?k=id+Hl:q===-1&&(k=-id-Hl);for(var ot=0,It=c.length;ot<It;++ot)if(Nt=(Jt=c[ot]).length)for(var Jt,Nt,vn=Jt[Nt-1],pr=mb(vn),$n=vn[1]/2+Fv,Un=Os($n),lr=ji($n),Hr=0;Hr<Nt;++Hr,pr=Mr,Un=Yi,lr=uo,vn=Br){var Br=Jt[Hr],Mr=mb(Br),Oi=Br[1]/2+Fv,Yi=Os(Oi),uo=ji(Oi),Io=Mr-pr,ua=Io>=0?1:-1,To=ua*Io,Lo=To>$c,Ta=Un*Yi;if(Et.add(Ei(Ta*ua*Os(To),lr*uo+Ta*ji(To))),Be+=Lo?Io+ua*gh:Io,Lo^pr>=C^Mr>=C){var da=cv(lv(vn),lv(Br));md(da);var Zr=cv(we,da);md(Zr);var Hi=(Lo^Io>=0?-1:1)*Xl(Zr[2]);(k>Hi||k===Hi&&(da[0]||da[1]))&&(Je+=Lo^Io>=0?1:-1)}}return(Be<-Hl||Be<Hl&&Et<-Hp)^Je&1}function z1(c,E,C,k){return function(q){var we=E(q),Be=j1(),Je=E(Be),Et=!1,ot,It,Jt,Nt={point:vn,lineStart:$n,lineEnd:Un,polygonStart:function(){Nt.point=lr,Nt.lineStart=Hr,Nt.lineEnd=Br,It=[],ot=[]},polygonEnd:function(){Nt.point=vn,Nt.lineStart=$n,Nt.lineEnd=Un,It=at(It);var Mr=W1(ot,k);It.length?(Et||(q.polygonStart(),Et=!0),$1(It,f_,Mr,C,q)):Mr&&(Et||(q.polygonStart(),Et=!0),q.lineStart(),C(null,null,1,q),q.lineEnd()),Et&&(q.polygonEnd(),Et=!1),It=ot=null},sphere:function(){q.polygonStart(),q.lineStart(),C(null,null,1,q),q.lineEnd(),q.polygonEnd()}};function vn(Mr,Oi){c(Mr,Oi)&&q.point(Mr,Oi)}function pr(Mr,Oi){we.point(Mr,Oi)}function $n(){Nt.point=pr,we.lineStart()}function Un(){Nt.point=vn,we.lineEnd()}function lr(Mr,Oi){Jt.push([Mr,Oi]),Je.point(Mr,Oi)}function Hr(){Je.lineStart(),Jt=[]}function Br(){lr(Jt[0][0],Jt[0][1]),Je.lineEnd();var Mr=Je.clean(),Oi=Be.result(),Yi,uo=Oi.length,Io,ua,To;if(Jt.pop(),ot.push(Jt),Jt=null,!!uo){if(Mr&1){if(ua=Oi[0],(Io=ua.length-1)>0){for(Et||(q.polygonStart(),Et=!0),q.lineStart(),Yi=0;Yi<Io;++Yi)q.point((To=ua[Yi])[0],To[1]);q.lineEnd()}return}uo>1&&Mr&2&&Oi.push(Oi.pop().concat(Oi.shift())),It.push(Oi.filter(c_))}}return Nt}}function c_(c){return c.length>1}function f_(c,E){return((c=c.x)[0]<0?c[1]-id-Hl:id-c[1])-((E=E.x)[0]<0?E[1]-id-Hl:id-E[1])}const yb=z1(function(){return!0},d_,p_,[-$c,-id]);function d_(c){var E=NaN,C=NaN,k=NaN,q;return{lineStart:function(){c.lineStart(),q=1},point:function(we,Be){var Je=we>0?$c:-$c,Et=Ft(we-E);Ft(Et-$c)<Hl?(c.point(E,C=(C+Be)/2>0?id:-id),c.point(k,C),c.lineEnd(),c.lineStart(),c.point(Je,C),c.point(we,C),q=0):k!==Je&&Et>=$c&&(Ft(E-k)<Hl&&(E-=k*Hl),Ft(we-Je)<Hl&&(we-=Je*Hl),C=h_(E,C,we,Be),c.point(k,C),c.lineEnd(),c.lineStart(),c.point(Je,C),q=0),c.point(E=we,C=Be),k=Je},lineEnd:function(){c.lineEnd(),E=C=NaN},clean:function(){return 2-q}}}function h_(c,E,C,k){var q,we,Be=Os(c-C);return Ft(Be)>Hl?dr((Os(E)*(we=ji(k))*Os(C)-Os(k)*(q=ji(E))*Os(c))/(q*we*Be)):(E+k)/2}function p_(c,E,C,k){var q;if(c==null)q=C*id,k.point(-$c,q),k.point(0,q),k.point($c,q),k.point($c,0),k.point($c,-q),k.point(0,-q),k.point(-$c,-q),k.point(-$c,0),k.point(-$c,q);else if(Ft(c[0]-E[0])>Hl){var we=c[0]<E[0]?$c:-$c;q=C*we/2,k.point(-we,q),k.point(0,q),k.point(we,q)}else k.point(E[0],E[1])}function V1(c){var E=ji(c),C=6*Ce,k=E>0,q=Ft(E)>Hl;function we(It,Jt,Nt,vn){my(vn,c,C,Nt,It,Jt)}function Be(It,Jt){return ji(It)*ji(Jt)>E}function Je(It){var Jt,Nt,vn,pr,$n;return{lineStart:function(){pr=vn=!1,$n=1},point:function(Un,lr){var Hr=[Un,lr],Br,Mr=Be(Un,lr),Oi=k?Mr?0:ot(Un,lr):Mr?ot(Un+(Un<0?$c:-$c),lr):0;if(!Jt&&(pr=vn=Mr)&&It.lineStart(),Mr!==vn&&(Br=Et(Jt,Hr),(!Br||yy(Jt,Br)||yy(Hr,Br))&&(Hr[2]=1)),Mr!==vn)$n=0,Mr?(It.lineStart(),Br=Et(Hr,Jt),It.point(Br[0],Br[1])):(Br=Et(Jt,Hr),It.point(Br[0],Br[1],2),It.lineEnd()),Jt=Br;else if(q&&Jt&&k^Mr){var Yi;!(Oi&Nt)&&(Yi=Et(Hr,Jt,!0))&&($n=0,k?(It.lineStart(),It.point(Yi[0][0],Yi[0][1]),It.point(Yi[1][0],Yi[1][1]),It.lineEnd()):(It.point(Yi[1][0],Yi[1][1]),It.lineEnd(),It.lineStart(),It.point(Yi[0][0],Yi[0][1],3)))}Mr&&(!Jt||!yy(Jt,Hr))&&It.point(Hr[0],Hr[1]),Jt=Hr,vn=Mr,Nt=Oi},lineEnd:function(){vn&&It.lineEnd(),Jt=null},clean:function(){return $n|(pr&&vn)<<1}}}function Et(It,Jt,Nt){var vn=lv(It),pr=lv(Jt),$n=[1,0,0],Un=cv(vn,pr),lr=Sg(Un,Un),Hr=Un[0],Br=lr-Hr*Hr;if(!Br)return!Nt&&It;var Mr=E*lr/Br,Oi=-E*Hr/Br,Yi=cv($n,Un),uo=gd($n,Mr),Io=gd(Un,Oi);ym(uo,Io);var ua=Yi,To=Sg(uo,ua),Lo=Sg(ua,ua),Ta=To*To-Lo*(Sg(uo,uo)-1);if(!(Ta<0)){var da=hl(Ta),Zr=gd(ua,(-To-da)/Lo);if(ym(Zr,uo),Zr=mm(Zr),!Nt)return Zr;var Hi=It[0],no=Jt[0],jo=It[1],oo=Jt[1],zo;no<Hi&&(zo=Hi,Hi=no,no=zo);var Oo=no-Hi,ma=Ft(Oo-$c)<Hl,ka=ma||Oo<Hl;if(!ma&&oo<jo&&(zo=jo,jo=oo,oo=zo),ka?ma?jo+oo>0^Zr[1]<(Ft(Zr[0]-Hi)<Hl?jo:oo):jo<=Zr[1]&&Zr[1]<=oo:Oo>$c^(Hi<=Zr[0]&&Zr[0]<=no)){var os=gd(ua,(-To+da)/Lo);return ym(os,uo),[Zr,mm(os)]}}}function ot(It,Jt){var Nt=k?c:$c-c,vn=0;return It<-Nt?vn|=1:It>Nt&&(vn|=2),Jt<-Nt?vn|=4:Jt>Nt&&(vn|=8),vn}return z1(Be,Je,we,k?[0,-c]:[-$c,c-$c])}function v_(c,E,C,k,q,we){var Be=c[0],Je=c[1],Et=E[0],ot=E[1],It=0,Jt=1,Nt=Et-Be,vn=ot-Je,pr;if(pr=C-Be,!(!Nt&&pr>0)){if(pr/=Nt,Nt<0){if(pr<It)return;pr<Jt&&(Jt=pr)}else if(Nt>0){if(pr>Jt)return;pr>It&&(It=pr)}if(pr=q-Be,!(!Nt&&pr<0)){if(pr/=Nt,Nt<0){if(pr>Jt)return;pr>It&&(It=pr)}else if(Nt>0){if(pr<It)return;pr<Jt&&(Jt=pr)}if(pr=k-Je,!(!vn&&pr>0)){if(pr/=vn,vn<0){if(pr<It)return;pr<Jt&&(Jt=pr)}else if(vn>0){if(pr>Jt)return;pr>It&&(It=pr)}if(pr=we-Je,!(!vn&&pr<0)){if(pr/=vn,vn<0){if(pr>Jt)return;pr>It&&(It=pr)}else if(vn>0){if(pr<It)return;pr<Jt&&(Jt=pr)}return It>0&&(c[0]=Be+It*Nt,c[1]=Je+It*vn),Jt<1&&(E[0]=Be+Jt*Nt,E[1]=Je+Jt*vn),!0}}}}}var M0=1e9,wy=-M0;function Ey(c,E,C,k){function q(ot,It){return c<=ot&&ot<=C&&E<=It&&It<=k}function we(ot,It,Jt,Nt){var vn=0,pr=0;if(ot==null||(vn=Be(ot,Jt))!==(pr=Be(It,Jt))||Et(ot,It)<0^Jt>0)do Nt.point(vn===0||vn===3?c:C,vn>1?k:E);while((vn=(vn+Jt+4)%4)!==pr);else Nt.point(It[0],It[1])}function Be(ot,It){return Ft(ot[0]-c)<Hl?It>0?0:3:Ft(ot[0]-C)<Hl?It>0?2:1:Ft(ot[1]-E)<Hl?It>0?1:0:It>0?3:2}function Je(ot,It){return Et(ot.x,It.x)}function Et(ot,It){var Jt=Be(ot,1),Nt=Be(It,1);return Jt!==Nt?Jt-Nt:Jt===0?It[1]-ot[1]:Jt===1?ot[0]-It[0]:Jt===2?ot[1]-It[1]:It[0]-ot[0]}return function(ot){var It=ot,Jt=j1(),Nt,vn,pr,$n,Un,lr,Hr,Br,Mr,Oi,Yi,uo={point:Io,lineStart:Ta,lineEnd:da,polygonStart:To,polygonEnd:Lo};function Io(Hi,no){q(Hi,no)&&It.point(Hi,no)}function ua(){for(var Hi=0,no=0,jo=vn.length;no<jo;++no)for(var oo=vn[no],zo=1,Oo=oo.length,ma=oo[0],ka,os,es=ma[0],gs=ma[1];zo<Oo;++zo)ka=es,os=gs,ma=oo[zo],es=ma[0],gs=ma[1],os<=k?gs>k&&(es-ka)*(k-os)>(gs-os)*(c-ka)&&++Hi:gs<=k&&(es-ka)*(k-os)<(gs-os)*(c-ka)&&--Hi;return Hi}function To(){It=Jt,Nt=[],vn=[],Yi=!0}function Lo(){var Hi=ua(),no=Yi&&Hi,jo=(Nt=at(Nt)).length;(no||jo)&&(ot.polygonStart(),no&&(ot.lineStart(),we(null,null,1,ot),ot.lineEnd()),jo&&$1(Nt,Je,Hi,we,ot),ot.polygonEnd()),It=ot,Nt=vn=pr=null}function Ta(){uo.point=Zr,vn&&vn.push(pr=[]),Oi=!0,Mr=!1,Hr=Br=NaN}function da(){Nt&&(Zr($n,Un),lr&&Mr&&Jt.rejoin(),Nt.push(Jt.result())),uo.point=Io,Mr&&It.lineEnd()}function Zr(Hi,no){var jo=q(Hi,no);if(vn&&pr.push([Hi,no]),Oi)$n=Hi,Un=no,lr=jo,Oi=!1,jo&&(It.lineStart(),It.point(Hi,no));else if(jo&&Mr)It.point(Hi,no);else{var oo=[Hr=Math.max(wy,Math.min(M0,Hr)),Br=Math.max(wy,Math.min(M0,Br))],zo=[Hi=Math.max(wy,Math.min(M0,Hi)),no=Math.max(wy,Math.min(M0,no))];v_(oo,zo,c,E,C,k)?(Mr||(It.lineStart(),It.point(oo[0],oo[1])),It.point(zo[0],zo[1]),jo||It.lineEnd(),Yi=!1):jo&&(It.lineStart(),It.point(Hi,no),Yi=!1)}Hr=Hi,Br=no,Mr=jo}return uo}}function g_(){var c=0,E=0,C=960,k=500,q,we,Be;return Be={stream:function(Je){return q&&we===Je?q:q=Ey(c,E,C,k)(we=Je)},extent:function(Je){return arguments.length?(c=+Je[0][0],E=+Je[0][1],C=+Je[1][0],k=+Je[1][1],q=we=null,Be):[[c,E],[C,k]]}}}var bb,wb,Sy,_y,bm={sphere:Gc,point:Gc,lineStart:m_,lineEnd:Gc,polygonStart:Gc,polygonEnd:Gc};function m_(){bm.point=b_,bm.lineEnd=y_}function y_(){bm.point=bm.lineEnd=Gc}function b_(c,E){c*=Ce,E*=Ce,wb=c,Sy=Os(E),_y=ji(E),bm.point=w_}function w_(c,E){c*=Ce,E*=Ce;var C=Os(E),k=ji(E),q=Ft(c-wb),we=ji(q),Be=Os(q),Je=k*Be,Et=_y*C-Sy*k*we,ot=Sy*C+_y*k*we;bb.add(Ei(hl(Je*Je+Et*Et),ot)),wb=c,Sy=C,_y=k}function H1(c){return bb=new ce,kh(c,bm),+bb}var Eb=[null,null],E_={type:"LineString",coordinates:Eb};function Oy(c,E){return Eb[0]=c,Eb[1]=E,H1(E_)}var K1={Feature:function(c,E){return Cy(c.geometry,E)},FeatureCollection:function(c,E){for(var C=c.features,k=-1,q=C.length;++k<q;)if(Cy(C[k].geometry,E))return!0;return!1}},G1={Sphere:function(){return!0},Point:function(c,E){return Y1(c.coordinates,E)},MultiPoint:function(c,E){for(var C=c.coordinates,k=-1,q=C.length;++k<q;)if(Y1(C[k],E))return!0;return!1},LineString:function(c,E){return X1(c.coordinates,E)},MultiLineString:function(c,E){for(var C=c.coordinates,k=-1,q=C.length;++k<q;)if(X1(C[k],E))return!0;return!1},Polygon:function(c,E){return Q1(c.coordinates,E)},MultiPolygon:function(c,E){for(var C=c.coordinates,k=-1,q=C.length;++k<q;)if(Q1(C[k],E))return!0;return!1},GeometryCollection:function(c,E){for(var C=c.geometries,k=-1,q=C.length;++k<q;)if(Cy(C[k],E))return!0;return!1}};function Cy(c,E){return c&&G1.hasOwnProperty(c.type)?G1[c.type](c,E):!1}function Y1(c,E){return Oy(c,E)===0}function X1(c,E){for(var C,k,q,we=0,Be=c.length;we<Be;we++){if(k=Oy(c[we],E),k===0||we>0&&(q=Oy(c[we],c[we-1]),q>0&&C<=q&&k<=q&&(C+k-q)*(1-Math.pow((C-k)/q,2))<Hp*q))return!0;C=k}return!1}function Q1(c,E){return!!W1(c.map(S_),J1(E))}function S_(c){return c=c.map(J1),c.pop(),c}function J1(c){return[c[0]*Ce,c[1]*Ce]}function __(c,E){return(c&&K1.hasOwnProperty(c.type)?K1[c.type]:Cy)(c,E)}function Z1(c,E,C){var k=Zt(c,E-Hl,C).concat(E);return function(q){return k.map(function(we){return[q,we]})}}function q1(c,E,C){var k=Zt(c,E-Hl,C).concat(E);return function(q){return k.map(function(we){return[we,q]})}}function ew(){var c,E,C,k,q,we,Be,Je,Et=10,ot=Et,It=90,Jt=360,Nt,vn,pr,$n,Un=2.5;function lr(){return{type:"MultiLineString",coordinates:Hr()}}function Hr(){return Zt(Qo(k/It)*It,C,It).map(pr).concat(Zt(Qo(Je/Jt)*Jt,Be,Jt).map($n)).concat(Zt(Qo(E/Et)*Et,c,Et).filter(function(Br){return Ft(Br%It)>Hl}).map(Nt)).concat(Zt(Qo(we/ot)*ot,q,ot).filter(function(Br){return Ft(Br%Jt)>Hl}).map(vn))}return lr.lines=function(){return Hr().map(function(Br){return{type:"LineString",coordinates:Br}})},lr.outline=function(){return{type:"Polygon",coordinates:[pr(k).concat($n(Be).slice(1),pr(C).reverse().slice(1),$n(Je).reverse().slice(1))]}},lr.extent=function(Br){return arguments.length?lr.extentMajor(Br).extentMinor(Br):lr.extentMinor()},lr.extentMajor=function(Br){return arguments.length?(k=+Br[0][0],C=+Br[1][0],Je=+Br[0][1],Be=+Br[1][1],k>C&&(Br=k,k=C,C=Br),Je>Be&&(Br=Je,Je=Be,Be=Br),lr.precision(Un)):[[k,Je],[C,Be]]},lr.extentMinor=function(Br){return arguments.length?(E=+Br[0][0],c=+Br[1][0],we=+Br[0][1],q=+Br[1][1],E>c&&(Br=E,E=c,c=Br),we>q&&(Br=we,we=q,q=Br),lr.precision(Un)):[[E,we],[c,q]]},lr.step=function(Br){return arguments.length?lr.stepMajor(Br).stepMinor(Br):lr.stepMinor()},lr.stepMajor=function(Br){return arguments.length?(It=+Br[0],Jt=+Br[1],lr):[It,Jt]},lr.stepMinor=function(Br){return arguments.length?(Et=+Br[0],ot=+Br[1],lr):[Et,ot]},lr.precision=function(Br){return arguments.length?(Un=+Br,Nt=Z1(we,q,90),vn=q1(E,c,Un),pr=Z1(Je,Be,90),$n=q1(k,C,Un),lr):Un},lr.extentMajor([[-180,-90+Hl],[180,90-Hl]]).extentMinor([[-180,-80-Hl],[180,80+Hl]])}function O_(){return ew()()}function C_(c,E){var C=c[0]*Ce,k=c[1]*Ce,q=E[0]*Ce,we=E[1]*Ce,Be=ji(k),Je=Os(k),Et=ji(we),ot=Os(we),It=Be*ji(C),Jt=Be*Os(C),Nt=Et*ji(q),vn=Et*Os(q),pr=2*Xl(hl(kc(we-k)+Be*Et*kc(q-C))),$n=Os(pr),Un=pr?function(lr){var Hr=Os(lr*=pr)/$n,Br=Os(pr-lr)/$n,Mr=Br*It+Hr*Nt,Oi=Br*Jt+Hr*vn,Yi=Br*Je+Hr*ot;return[Ei(Oi,Mr)*X,Ei(Yi,hl(Mr*Mr+Oi*Oi))*X]}:function(){return[C*X,k*X]};return Un.distance=pr,Un}const D0=c=>c;var Sb=new ce,_b=new ce,tw,nw,Ob,Cb,Wv={point:Gc,lineStart:Gc,lineEnd:Gc,polygonStart:function(){Wv.lineStart=x_,Wv.lineEnd=P_},polygonEnd:function(){Wv.lineStart=Wv.lineEnd=Wv.point=Gc,Sb.add(Ft(_b)),_b=new ce},result:function(){var c=Sb/2;return Sb=new ce,c}};function x_(){Wv.point=A_}function A_(c,E){Wv.point=rw,tw=Ob=c,nw=Cb=E}function rw(c,E){_b.add(Cb*c-Ob*E),Ob=c,Cb=E}function P_(){rw(tw,nw)}const iw=Wv;var wm=1/0,xy=wm,I0=-wm,Ay=I0,T_={point:R_,lineStart:Gc,lineEnd:Gc,polygonStart:Gc,polygonEnd:Gc,result:function(){var c=[[wm,xy],[I0,Ay]];return I0=Ay=-(xy=wm=1/0),c}};function R_(c,E){c<wm&&(wm=c),c>I0&&(I0=c),E<xy&&(xy=E),E>Ay&&(Ay=E)}const Py=T_;var xb=0,Ab=0,L0=0,Ty=0,Ry=0,Em=0,Pb=0,Tb=0,k0=0,ow,aw,Yp,Xp,Dp={point:Cg,lineStart:sw,lineEnd:uw,polygonStart:function(){Dp.lineStart=I_,Dp.lineEnd=L_},polygonEnd:function(){Dp.point=Cg,Dp.lineStart=sw,Dp.lineEnd=uw},result:function(){var c=k0?[Pb/k0,Tb/k0]:Em?[Ty/Em,Ry/Em]:L0?[xb/L0,Ab/L0]:[NaN,NaN];return xb=Ab=L0=Ty=Ry=Em=Pb=Tb=k0=0,c}};function Cg(c,E){xb+=c,Ab+=E,++L0}function sw(){Dp.point=M_}function M_(c,E){Dp.point=D_,Cg(Yp=c,Xp=E)}function D_(c,E){var C=c-Yp,k=E-Xp,q=hl(C*C+k*k);Ty+=q*(Yp+c)/2,Ry+=q*(Xp+E)/2,Em+=q,Cg(Yp=c,Xp=E)}function uw(){Dp.point=Cg}function I_(){Dp.point=k_}function L_(){lw(ow,aw)}function k_(c,E){Dp.point=lw,Cg(ow=Yp=c,aw=Xp=E)}function lw(c,E){var C=c-Yp,k=E-Xp,q=hl(C*C+k*k);Ty+=q*(Yp+c)/2,Ry+=q*(Xp+E)/2,Em+=q,q=Xp*c-Yp*E,Pb+=q*(Yp+c),Tb+=q*(Xp+E),k0+=q*3,Cg(Yp=c,Xp=E)}const cw=Dp;function fw(c){this._context=c}fw.prototype={_radius:4.5,pointRadius:function(c){return this._radius=c,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(c,E){switch(this._point){case 0:{this._context.moveTo(c,E),this._point=1;break}case 1:{this._context.lineTo(c,E);break}default:{this._context.moveTo(c+this._radius,E),this._context.arc(c,E,this._radius,0,gh);break}}},result:Gc};var Rb=new ce,Mb,dw,hw,N0,F0,My={point:Gc,lineStart:function(){My.point=N_},lineEnd:function(){Mb&&pw(dw,hw),My.point=Gc},polygonStart:function(){Mb=!0},polygonEnd:function(){Mb=null},result:function(){var c=+Rb;return Rb=new ce,c}};function N_(c,E){My.point=pw,dw=N0=c,hw=F0=E}function pw(c,E){N0-=c,F0-=E,Rb.add(hl(N0*N0+F0*F0)),N0=c,F0=E}const vw=My;let gw,Dy,mw,yw;class bw{constructor(E){this._append=E==null?ww:F_(E),this._radius=4.5,this._=""}pointRadius(E){return this._radius=+E,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(E,C){switch(this._point){case 0:{this._append`M${E},${C}`,this._point=1;break}case 1:{this._append`L${E},${C}`;break}default:{if(this._append`M${E},${C}`,this._radius!==mw||this._append!==Dy){const k=this._radius,q=this._;this._="",this._append`m0,${k}a${k},${k} 0 1,1 0,${-2*k}a${k},${k} 0 1,1 0,${2*k}z`,mw=k,Dy=this._append,yw=this._,this._=q}this._+=yw;break}}}result(){const E=this._;return this._="",E.length?E:null}}function ww(c){let E=1;this._+=c[0];for(const C=c.length;E<C;++E)this._+=arguments[E]+c[E]}function F_(c){const E=Math.floor(c);if(!(E>=0))throw new RangeError(`invalid digits: ${c}`);if(E>15)return ww;if(E!==gw){const C=10**E;gw=E,Dy=function(q){let we=1;this._+=q[0];for(const Be=q.length;we<Be;++we)this._+=Math.round(arguments[we]*C)/C+q[we]}}return Dy}function B_(c,E){let C=3,k=4.5,q,we;function Be(Je){return Je&&(typeof k=="function"&&we.pointRadius(+k.apply(this,arguments)),kh(Je,q(we))),we.result()}return Be.area=function(Je){return kh(Je,q(iw)),iw.result()},Be.measure=function(Je){return kh(Je,q(vw)),vw.result()},Be.bounds=function(Je){return kh(Je,q(Py)),Py.result()},Be.centroid=function(Je){return kh(Je,q(cw)),cw.result()},Be.projection=function(Je){return arguments.length?(q=Je==null?(c=null,D0):(c=Je).stream,Be):c},Be.context=function(Je){return arguments.length?(we=Je==null?(E=null,new bw(C)):new fw(E=Je),typeof k!="function"&&we.pointRadius(k),Be):E},Be.pointRadius=function(Je){return arguments.length?(k=typeof Je=="function"?Je:(we.pointRadius(+Je),+Je),Be):k},Be.digits=function(Je){if(!arguments.length)return C;if(Je==null)C=null;else{const Et=Math.floor(Je);if(!(Et>=0))throw new RangeError(`invalid digits: ${Je}`);C=Et}return E===null&&(we=new bw(C)),Be},Be.projection(c).digits(C).context(E)}function j_(c){return{stream:B0(c)}}function B0(c){return function(E){var C=new Db;for(var k in c)C[k]=c[k];return C.stream=E,C}}function Db(){}Db.prototype={constructor:Db,point:function(c,E){this.stream.point(c,E)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ib(c,E,C){var k=c.clipExtent&&c.clipExtent();return c.scale(150).translate([0,0]),k!=null&&c.clipExtent(null),kh(C,c.stream(Py)),E(Py.result()),k!=null&&c.clipExtent(k),c}function Iy(c,E,C){return Ib(c,function(k){var q=E[1][0]-E[0][0],we=E[1][1]-E[0][1],Be=Math.min(q/(k[1][0]-k[0][0]),we/(k[1][1]-k[0][1])),Je=+E[0][0]+(q-Be*(k[1][0]+k[0][0]))/2,Et=+E[0][1]+(we-Be*(k[1][1]+k[0][1]))/2;c.scale(150*Be).translate([Je,Et])},C)}function Lb(c,E,C){return Iy(c,[[0,0],E],C)}function kb(c,E,C){return Ib(c,function(k){var q=+E,we=q/(k[1][0]-k[0][0]),Be=(q-we*(k[1][0]+k[0][0]))/2,Je=-we*k[0][1];c.scale(150*we).translate([Be,Je])},C)}function Nb(c,E,C){return Ib(c,function(k){var q=+E,we=q/(k[1][1]-k[0][1]),Be=-we*k[0][0],Je=(q-we*(k[1][1]+k[0][1]))/2;c.scale(150*we).translate([Be,Je])},C)}var Ew=16,$_=ji(30*Ce);function Sw(c,E){return+E?W_(c,E):U_(c)}function U_(c){return B0({point:function(E,C){E=c(E,C),this.stream.point(E[0],E[1])}})}function W_(c,E){function C(k,q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr,$n,Un){var lr=ot-k,Hr=It-q,Br=lr*lr+Hr*Hr;if(Br>4*E&&$n--){var Mr=Be+Nt,Oi=Je+vn,Yi=Et+pr,uo=hl(Mr*Mr+Oi*Oi+Yi*Yi),Io=Xl(Yi/=uo),ua=Ft(Ft(Yi)-1)<Hl||Ft(we-Jt)<Hl?(we+Jt)/2:Ei(Oi,Mr),To=c(ua,Io),Lo=To[0],Ta=To[1],da=Lo-k,Zr=Ta-q,Hi=Hr*da-lr*Zr;(Hi*Hi/Br>E||Ft((lr*da+Hr*Zr)/Br-.5)>.3||Be*Nt+Je*vn+Et*pr<$_)&&(C(k,q,we,Be,Je,Et,Lo,Ta,ua,Mr/=uo,Oi/=uo,Yi,$n,Un),Un.point(Lo,Ta),C(Lo,Ta,ua,Mr,Oi,Yi,ot,It,Jt,Nt,vn,pr,$n,Un))}}return function(k){var q,we,Be,Je,Et,ot,It,Jt,Nt,vn,pr,$n,Un={point:lr,lineStart:Hr,lineEnd:Mr,polygonStart:function(){k.polygonStart(),Un.lineStart=Oi},polygonEnd:function(){k.polygonEnd(),Un.lineStart=Hr}};function lr(Io,ua){Io=c(Io,ua),k.point(Io[0],Io[1])}function Hr(){Jt=NaN,Un.point=Br,k.lineStart()}function Br(Io,ua){var To=lv([Io,ua]),Lo=c(Io,ua);C(Jt,Nt,It,vn,pr,$n,Jt=Lo[0],Nt=Lo[1],It=Io,vn=To[0],pr=To[1],$n=To[2],Ew,k),k.point(Jt,Nt)}function Mr(){Un.point=lr,k.lineEnd()}function Oi(){Hr(),Un.point=Yi,Un.lineEnd=uo}function Yi(Io,ua){Br(q=Io,ua),we=Jt,Be=Nt,Je=vn,Et=pr,ot=$n,Un.point=Br}function uo(){C(Jt,Nt,It,vn,pr,$n,we,Be,q,Je,Et,ot,Ew,k),Un.lineEnd=Mr,Mr()}return Un}}var z_=B0({point:function(c,E){this.stream.point(c*Ce,E*Ce)}});function V_(c){return B0({point:function(E,C){var k=c(E,C);return this.stream.point(k[0],k[1])}})}function H_(c,E,C,k,q){function we(Be,Je){return Be*=k,Je*=q,[E+c*Be,C-c*Je]}return we.invert=function(Be,Je){return[(Be-E)/c*k,(C-Je)/c*q]},we}function _w(c,E,C,k,q,we){if(!we)return H_(c,E,C,k,q);var Be=ji(we),Je=Os(we),Et=Be*c,ot=Je*c,It=Be/c,Jt=Je/c,Nt=(Je*C-Be*E)/c,vn=(Je*E+Be*C)/c;function pr($n,Un){return $n*=k,Un*=q,[Et*$n-ot*Un+E,C-ot*$n-Et*Un]}return pr.invert=function($n,Un){return[k*(It*$n-Jt*Un+Nt),q*(vn-Jt*$n-It*Un)]},pr}function Qp(c){return Fb(function(){return c})()}function Fb(c){var E,C=150,k=480,q=250,we=0,Be=0,Je=0,Et=0,ot=0,It,Jt=0,Nt=1,vn=1,pr=null,$n=yb,Un=null,lr,Hr,Br,Mr=D0,Oi=.5,Yi,uo,Io,ua,To;function Lo(Hi){return Io(Hi[0]*Ce,Hi[1]*Ce)}function Ta(Hi){return Hi=Io.invert(Hi[0],Hi[1]),Hi&&[Hi[0]*X,Hi[1]*X]}Lo.stream=function(Hi){return ua&&To===Hi?ua:ua=z_(V_(It)($n(Yi(Mr(To=Hi)))))},Lo.preclip=function(Hi){return arguments.length?($n=Hi,pr=void 0,Zr()):$n},Lo.postclip=function(Hi){return arguments.length?(Mr=Hi,Un=lr=Hr=Br=null,Zr()):Mr},Lo.clipAngle=function(Hi){return arguments.length?($n=+Hi?V1(pr=Hi*Ce):(pr=null,yb),Zr()):pr*X},Lo.clipExtent=function(Hi){return arguments.length?(Mr=Hi==null?(Un=lr=Hr=Br=null,D0):Ey(Un=+Hi[0][0],lr=+Hi[0][1],Hr=+Hi[1][0],Br=+Hi[1][1]),Zr()):Un==null?null:[[Un,lr],[Hr,Br]]},Lo.scale=function(Hi){return arguments.length?(C=+Hi,da()):C},Lo.translate=function(Hi){return arguments.length?(k=+Hi[0],q=+Hi[1],da()):[k,q]},Lo.center=function(Hi){return arguments.length?(we=Hi[0]%360*Ce,Be=Hi[1]%360*Ce,da()):[we*X,Be*X]},Lo.rotate=function(Hi){return arguments.length?(Je=Hi[0]%360*Ce,Et=Hi[1]%360*Ce,ot=Hi.length>2?Hi[2]%360*Ce:0,da()):[Je*X,Et*X,ot*X]},Lo.angle=function(Hi){return arguments.length?(Jt=Hi%360*Ce,da()):Jt*X},Lo.reflectX=function(Hi){return arguments.length?(Nt=Hi?-1:1,da()):Nt<0},Lo.reflectY=function(Hi){return arguments.length?(vn=Hi?-1:1,da()):vn<0},Lo.precision=function(Hi){return arguments.length?(Yi=Sw(uo,Oi=Hi*Hi),Zr()):hl(Oi)},Lo.fitExtent=function(Hi,no){return Iy(Lo,Hi,no)},Lo.fitSize=function(Hi,no){return Lb(Lo,Hi,no)},Lo.fitWidth=function(Hi,no){return kb(Lo,Hi,no)},Lo.fitHeight=function(Hi,no){return Nb(Lo,Hi,no)};function da(){var Hi=_w(C,0,0,Nt,vn,Jt).apply(null,E(we,Be)),no=_w(C,k-Hi[0],q-Hi[1],Nt,vn,Jt);return It=Mp(Je,Et,ot),uo=ip(E,no),Io=ip(It,uo),Yi=Sw(uo,Oi),Zr()}function Zr(){return ua=To=null,Lo}return function(){return E=c.apply(this,arguments),Lo.invert=E.invert&&Ta,da()}}function Bb(c){var E=0,C=$c/3,k=Fb(c),q=k(E,C);return q.parallels=function(we){return arguments.length?k(E=we[0]*Ce,C=we[1]*Ce):[E*X,C*X]},q}function K_(c){var E=ji(c);function C(k,q){return[k*E,Os(q)/E]}return C.invert=function(k,q){return[k/E,Xl(q*E)]},C}function Ow(c,E){var C=Os(c),k=(C+Os(E))/2;if(Ft(k)<Hl)return K_(c);var q=1+C*(2*k-C),we=hl(q)/k;function Be(Je,Et){var ot=hl(q-2*k*Os(Et))/k;return[ot*Os(Je*=k),we-ot*ji(Je)]}return Be.invert=function(Je,Et){var ot=we-Et,It=Ei(Je,Ft(ot))*Gu(ot);return ot*k<0&&(It-=$c*Gu(Je)*Gu(ot)),[It/k,Xl((q-(Je*Je+ot*ot)*k*k)/(2*k))]},Be}function Ly(){return Bb(Ow).scale(155.424).center([0,33.6442])}function Cw(){return Ly().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function G_(c){var E=c.length;return{point:function(C,k){for(var q=-1;++q<E;)c[q].point(C,k)},sphere:function(){for(var C=-1;++C<E;)c[C].sphere()},lineStart:function(){for(var C=-1;++C<E;)c[C].lineStart()},lineEnd:function(){for(var C=-1;++C<E;)c[C].lineEnd()},polygonStart:function(){for(var C=-1;++C<E;)c[C].polygonStart()},polygonEnd:function(){for(var C=-1;++C<E;)c[C].polygonEnd()}}}function Y_(){var c,E,C=Cw(),k,q=Ly().rotate([154,0]).center([-2,58.5]).parallels([55,65]),we,Be=Ly().rotate([157,0]).center([-3,19.9]).parallels([8,18]),Je,Et,ot={point:function(Nt,vn){Et=[Nt,vn]}};function It(Nt){var vn=Nt[0],pr=Nt[1];return Et=null,k.point(vn,pr),Et||(we.point(vn,pr),Et)||(Je.point(vn,pr),Et)}It.invert=function(Nt){var vn=C.scale(),pr=C.translate(),$n=(Nt[0]-pr[0])/vn,Un=(Nt[1]-pr[1])/vn;return(Un>=.12&&Un<.234&&$n>=-.425&&$n<-.214?q:Un>=.166&&Un<.234&&$n>=-.214&&$n<-.115?Be:C).invert(Nt)},It.stream=function(Nt){return c&&E===Nt?c:c=G_([C.stream(E=Nt),q.stream(Nt),Be.stream(Nt)])},It.precision=function(Nt){return arguments.length?(C.precision(Nt),q.precision(Nt),Be.precision(Nt),Jt()):C.precision()},It.scale=function(Nt){return arguments.length?(C.scale(Nt),q.scale(Nt*.35),Be.scale(Nt),It.translate(C.translate())):C.scale()},It.translate=function(Nt){if(!arguments.length)return C.translate();var vn=C.scale(),pr=+Nt[0],$n=+Nt[1];return k=C.translate(Nt).clipExtent([[pr-.455*vn,$n-.238*vn],[pr+.455*vn,$n+.238*vn]]).stream(ot),we=q.translate([pr-.307*vn,$n+.201*vn]).clipExtent([[pr-.425*vn+Hl,$n+.12*vn+Hl],[pr-.214*vn-Hl,$n+.234*vn-Hl]]).stream(ot),Je=Be.translate([pr-.205*vn,$n+.212*vn]).clipExtent([[pr-.214*vn+Hl,$n+.166*vn+Hl],[pr-.115*vn-Hl,$n+.234*vn-Hl]]).stream(ot),Jt()},It.fitExtent=function(Nt,vn){return Iy(It,Nt,vn)},It.fitSize=function(Nt,vn){return Lb(It,Nt,vn)},It.fitWidth=function(Nt,vn){return kb(It,Nt,vn)},It.fitHeight=function(Nt,vn){return Nb(It,Nt,vn)};function Jt(){return c=E=null,It}return It.scale(1070)}function xw(c){return function(E,C){var k=ji(E),q=ji(C),we=c(k*q);return we===1/0?[2,0]:[we*q*Os(E),we*Os(C)]}}function j0(c){return function(E,C){var k=hl(E*E+C*C),q=c(k),we=Os(q),Be=ji(q);return[Ei(E*we,k*Be),Xl(k&&C*we/k)]}}var jb=xw(function(c){return hl(2/(1+c))});jb.invert=j0(function(c){return 2*Xl(c/2)});function X_(){return Qp(jb).scale(124.75).clipAngle(180-.001)}var $b=xw(function(c){return(c=Yl(c))&&c/Os(c)});$b.invert=j0(function(c){return c});function Q_(){return Qp($b).scale(79.4188).clipAngle(180-.001)}function $0(c,E){return[c,$s(Cc((id+E)/2))]}$0.invert=function(c,E){return[c,2*dr(ya(E))-id]};function J_(){return Aw($0).scale(961/gh)}function Aw(c){var E=Qp(c),C=E.center,k=E.scale,q=E.translate,we=E.clipExtent,Be=null,Je,Et,ot;E.scale=function(Jt){return arguments.length?(k(Jt),It()):k()},E.translate=function(Jt){return arguments.length?(q(Jt),It()):q()},E.center=function(Jt){return arguments.length?(C(Jt),It()):C()},E.clipExtent=function(Jt){return arguments.length?(Jt==null?Be=Je=Et=ot=null:(Be=+Jt[0][0],Je=+Jt[0][1],Et=+Jt[1][0],ot=+Jt[1][1]),It()):Be==null?null:[[Be,Je],[Et,ot]]};function It(){var Jt=$c*k(),Nt=E(R0(E.rotate()).invert([0,0]));return we(Be==null?[[Nt[0]-Jt,Nt[1]-Jt],[Nt[0]+Jt,Nt[1]+Jt]]:c===$0?[[Math.max(Nt[0]-Jt,Be),Je],[Math.min(Nt[0]+Jt,Et),ot]]:[[Be,Math.max(Nt[1]-Jt,Je)],[Et,Math.min(Nt[1]+Jt,ot)]])}return It()}function ky(c){return Cc((id+c)/2)}function Pw(c,E){var C=ji(c),k=c===E?Os(c):$s(C/ji(E))/$s(ky(E)/ky(c)),q=C*qs(ky(c),k)/k;if(!k)return $0;function we(Be,Je){q>0?Je<-id+Hl&&(Je=-id+Hl):Je>id-Hl&&(Je=id-Hl);var Et=q/qs(ky(Je),k);return[Et*Os(k*Be),q-Et*ji(k*Be)]}return we.invert=function(Be,Je){var Et=q-Je,ot=Gu(k)*hl(Be*Be+Et*Et),It=Ei(Be,Ft(Et))*Gu(Et);return Et*k<0&&(It-=$c*Gu(Be)*Gu(Et)),[It/k,2*dr(qs(q/ot,1/k))-id]},we}function Z_(){return Bb(Pw).scale(109.5).parallels([30,30])}function U0(c,E){return[c,E]}U0.invert=U0;function q_(){return Qp(U0).scale(152.63)}function Tw(c,E){var C=ji(c),k=c===E?Os(c):(C-ji(E))/(E-c),q=C/k+c;if(Ft(k)<Hl)return U0;function we(Be,Je){var Et=q-Je,ot=k*Be;return[Et*Os(ot),q-Et*ji(ot)]}return we.invert=function(Be,Je){var Et=q-Je,ot=Ei(Be,Ft(Et))*Gu(Et);return Et*k<0&&(ot-=$c*Gu(Be)*Gu(Et)),[ot/k,q-Gu(k)*hl(Be*Be+Et*Et)]},we}function eO(){return Bb(Tw).scale(131.154).center([0,13.9389])}var W0=1.340264,z0=-.081106,V0=893e-6,H0=.003796,Ny=hl(3)/2,tO=12;function Ub(c,E){var C=Xl(Ny*Os(E)),k=C*C,q=k*k*k;return[c*ji(C)/(Ny*(W0+3*z0*k+q*(7*V0+9*H0*k))),C*(W0+z0*k+q*(V0+H0*k))]}Ub.invert=function(c,E){for(var C=E,k=C*C,q=k*k*k,we=0,Be,Je,Et;we<tO&&(Je=C*(W0+z0*k+q*(V0+H0*k))-E,Et=W0+3*z0*k+q*(7*V0+9*H0*k),C-=Be=Je/Et,k=C*C,q=k*k*k,!(Ft(Be)<Hp));++we);return[Ny*c*(W0+3*z0*k+q*(7*V0+9*H0*k))/ji(C),Xl(Os(C)/Ny)]};function nO(){return Qp(Ub).scale(177.158)}function Wb(c,E){var C=ji(E),k=ji(c)*C;return[C*Os(c)/k,Os(E)/k]}Wb.invert=j0(dr);function rO(){return Qp(Wb).scale(144.049).clipAngle(60)}function iO(){var c=1,E=0,C=0,k=1,q=1,we=0,Be,Je,Et=null,ot,It,Jt,Nt=1,vn=1,pr=B0({point:function(Mr,Oi){var Yi=Br([Mr,Oi]);this.stream.point(Yi[0],Yi[1])}}),$n=D0,Un,lr;function Hr(){return Nt=c*k,vn=c*q,Un=lr=null,Br}function Br(Mr){var Oi=Mr[0]*Nt,Yi=Mr[1]*vn;if(we){var uo=Yi*Be-Oi*Je;Oi=Oi*Be+Yi*Je,Yi=uo}return[Oi+E,Yi+C]}return Br.invert=function(Mr){var Oi=Mr[0]-E,Yi=Mr[1]-C;if(we){var uo=Yi*Be+Oi*Je;Oi=Oi*Be-Yi*Je,Yi=uo}return[Oi/Nt,Yi/vn]},Br.stream=function(Mr){return Un&&lr===Mr?Un:Un=pr($n(lr=Mr))},Br.postclip=function(Mr){return arguments.length?($n=Mr,Et=ot=It=Jt=null,Hr()):$n},Br.clipExtent=function(Mr){return arguments.length?($n=Mr==null?(Et=ot=It=Jt=null,D0):Ey(Et=+Mr[0][0],ot=+Mr[0][1],It=+Mr[1][0],Jt=+Mr[1][1]),Hr()):Et==null?null:[[Et,ot],[It,Jt]]},Br.scale=function(Mr){return arguments.length?(c=+Mr,Hr()):c},Br.translate=function(Mr){return arguments.length?(E=+Mr[0],C=+Mr[1],Hr()):[E,C]},Br.angle=function(Mr){return arguments.length?(we=Mr%360*Ce,Je=Os(we),Be=ji(we),Hr()):we*X},Br.reflectX=function(Mr){return arguments.length?(k=Mr?-1:1,Hr()):k<0},Br.reflectY=function(Mr){return arguments.length?(q=Mr?-1:1,Hr()):q<0},Br.fitExtent=function(Mr,Oi){return Iy(Br,Mr,Oi)},Br.fitSize=function(Mr,Oi){return Lb(Br,Mr,Oi)},Br.fitWidth=function(Mr,Oi){return kb(Br,Mr,Oi)},Br.fitHeight=function(Mr,Oi){return Nb(Br,Mr,Oi)},Br}function zb(c,E){var C=E*E,k=C*C;return[c*(.8707-.131979*C+k*(-.013791+k*(.003971*C-.001529*k))),E*(1.007226+C*(.015085+k*(-.044475+.028874*C-.005916*k)))]}zb.invert=function(c,E){var C=E,k=25,q;do{var we=C*C,Be=we*we;C-=q=(C*(1.007226+we*(.015085+Be*(-.044475+.028874*we-.005916*Be)))-E)/(1.007226+we*(.015085*3+Be*(-.044475*7+.028874*9*we-.005916*11*Be)))}while(Ft(q)>Hl&&--k>0);return[c/(.8707+(we=C*C)*(-.131979+we*(-.013791+we*we*we*(.003971-.001529*we)))),C]};function oO(){return Qp(zb).scale(175.295)}function Vb(c,E){return[ji(E)*Os(c),Os(E)]}Vb.invert=j0(Xl);function aO(){return Qp(Vb).scale(249.5).clipAngle(90+Hl)}function Hb(c,E){var C=ji(E),k=1+ji(c)*C;return[C*Os(c)/k,Os(E)/k]}Hb.invert=j0(function(c){return 2*dr(c)});function sO(){return Qp(Hb).scale(250).clipAngle(142)}function Kb(c,E){return[$s(Cc((id+E)/2)),-c]}Kb.invert=function(c,E){return[-E,2*dr(ya(c))-id]};function uO(){var c=Aw(Kb),E=c.center,C=c.rotate;return c.center=function(k){return arguments.length?E([-k[1],k[0]]):(k=E(),[k[1],-k[0]])},c.rotate=function(k){return arguments.length?C([k[0],k[1],k.length>2?k[2]+90:90]):(k=C(),[k[0],k[1],k[2]-90])},C([0,0,90]).scale(159.155)}function lO(c,E){return c.parent===E.parent?1:2}function cO(c){return c.reduce(fO,0)/c.length}function fO(c,E){return c+E.x}function dO(c){return 1+c.reduce(hO,0)}function hO(c,E){return Math.max(c,E.y)}function pO(c){for(var E;E=c.children;)c=E[0];return c}function vO(c){for(var E;E=c.children;)c=E[E.length-1];return c}function gO(){var c=lO,E=1,C=1,k=!1;function q(we){var Be,Je=0;we.eachAfter(function(Nt){var vn=Nt.children;vn?(Nt.x=cO(vn),Nt.y=dO(vn)):(Nt.x=Be?Je+=c(Nt,Be):0,Nt.y=0,Be=Nt)});var Et=pO(we),ot=vO(we),It=Et.x-c(Et,ot)/2,Jt=ot.x+c(ot,Et)/2;return we.eachAfter(k?function(Nt){Nt.x=(Nt.x-we.x)*E,Nt.y=(we.y-Nt.y)*C}:function(Nt){Nt.x=(Nt.x-It)/(Jt-It)*E,Nt.y=(1-(we.y?Nt.y/we.y:1))*C})}return q.separation=function(we){return arguments.length?(c=we,q):c},q.size=function(we){return arguments.length?(k=!1,E=+we[0],C=+we[1],q):k?null:[E,C]},q.nodeSize=function(we){return arguments.length?(k=!0,E=+we[0],C=+we[1],q):k?[E,C]:null},q}function mO(c){var E=0,C=c.children,k=C&&C.length;if(!k)E=1;else for(;--k>=0;)E+=C[k].value;c.value=E}function yO(){return this.eachAfter(mO)}function bO(c,E){let C=-1;for(const k of this)c.call(E,k,++C,this);return this}function wO(c,E){for(var C=this,k=[C],q,we,Be=-1;C=k.pop();)if(c.call(E,C,++Be,this),q=C.children)for(we=q.length-1;we>=0;--we)k.push(q[we]);return this}function EO(c,E){for(var C=this,k=[C],q=[],we,Be,Je,Et=-1;C=k.pop();)if(q.push(C),we=C.children)for(Be=0,Je=we.length;Be<Je;++Be)k.push(we[Be]);for(;C=q.pop();)c.call(E,C,++Et,this);return this}function SO(c,E){let C=-1;for(const k of this)if(c.call(E,k,++C,this))return k}function _O(c){return this.eachAfter(function(E){for(var C=+c(E.data)||0,k=E.children,q=k&&k.length;--q>=0;)C+=k[q].value;E.value=C})}function OO(c){return this.eachBefore(function(E){E.children&&E.children.sort(c)})}function CO(c){for(var E=this,C=xO(E,c),k=[E];E!==C;)E=E.parent,k.push(E);for(var q=k.length;c!==C;)k.splice(q,0,c),c=c.parent;return k}function xO(c,E){if(c===E)return c;var C=c.ancestors(),k=E.ancestors(),q=null;for(c=C.pop(),E=k.pop();c===E;)q=c,c=C.pop(),E=k.pop();return q}function AO(){for(var c=this,E=[c];c=c.parent;)E.push(c);return E}function PO(){return Array.from(this)}function TO(){var c=[];return this.eachBefore(function(E){E.children||c.push(E)}),c}function RO(){var c=this,E=[];return c.each(function(C){C!==c&&E.push({source:C.parent,target:C})}),E}function*MO(){var c=this,E,C=[c],k,q,we;do for(E=C.reverse(),C=[];c=E.pop();)if(yield c,k=c.children)for(q=0,we=k.length;q<we;++q)C.push(k[q]);while(C.length)}function Gb(c,E){c instanceof Map?(c=[void 0,c],E===void 0&&(E=LO)):E===void 0&&(E=IO);for(var C=new xg(c),k,q=[C],we,Be,Je,Et;k=q.pop();)if((Be=E(k.data))&&(Et=(Be=Array.from(Be)).length))for(k.children=Be,Je=Et-1;Je>=0;--Je)q.push(we=Be[Je]=new xg(Be[Je])),we.parent=k,we.depth=k.depth+1;return C.eachBefore(Rw)}function DO(){return Gb(this).eachBefore(kO)}function IO(c){return c.children}function LO(c){return Array.isArray(c)?c[1]:null}function kO(c){c.data.value!==void 0&&(c.value=c.data.value),c.data=c.data.data}function Rw(c){var E=0;do c.height=E;while((c=c.parent)&&c.height<++E)}function xg(c){this.data=c,this.depth=this.height=0,this.parent=null}xg.prototype=Gb.prototype={constructor:xg,count:yO,each:bO,eachAfter:EO,eachBefore:wO,find:SO,sum:_O,sort:OO,path:CO,ancestors:AO,descendants:PO,leaves:TO,links:RO,copy:DO,[Symbol.iterator]:MO};function Fy(c){return c==null?null:Mw(c)}function Mw(c){if(typeof c!="function")throw new Error;return c}function Ag(){return 0}function Sm(c){return function(){return c}}const NO=1664525,FO=1013904223,Dw=4294967296;function Yb(){let c=1;return()=>(c=(NO*c+FO)%Dw)/Dw}function BO(c){return typeof c=="object"&&"length"in c?c:Array.from(c)}function jO(c,E){let C=c.length,k,q;for(;C;)q=E()*C--|0,k=c[C],c[C]=c[q],c[q]=k;return c}function $O(c){return Iw(c,Yb())}function Iw(c,E){for(var C=0,k=(c=jO(Array.from(c),E)).length,q=[],we,Be;C<k;)we=c[C],Be&&Lw(Be,we)?++C:(Be=WO(q=UO(q,we)),C=0);return Be}function UO(c,E){var C,k;if(Xb(E,c))return[E];for(C=0;C<c.length;++C)if(By(E,c[C])&&Xb(K0(c[C],E),c))return[c[C],E];for(C=0;C<c.length-1;++C)for(k=C+1;k<c.length;++k)if(By(K0(c[C],c[k]),E)&&By(K0(c[C],E),c[k])&&By(K0(c[k],E),c[C])&&Xb(kw(c[C],c[k],E),c))return[c[C],c[k],E];throw new Error}function By(c,E){var C=c.r-E.r,k=E.x-c.x,q=E.y-c.y;return C<0||C*C<k*k+q*q}function Lw(c,E){var C=c.r-E.r+Math.max(c.r,E.r,1)*1e-9,k=E.x-c.x,q=E.y-c.y;return C>0&&C*C>k*k+q*q}function Xb(c,E){for(var C=0;C<E.length;++C)if(!Lw(c,E[C]))return!1;return!0}function WO(c){switch(c.length){case 1:return zO(c[0]);case 2:return K0(c[0],c[1]);case 3:return kw(c[0],c[1],c[2])}}function zO(c){return{x:c.x,y:c.y,r:c.r}}function K0(c,E){var C=c.x,k=c.y,q=c.r,we=E.x,Be=E.y,Je=E.r,Et=we-C,ot=Be-k,It=Je-q,Jt=Math.sqrt(Et*Et+ot*ot);return{x:(C+we+Et/Jt*It)/2,y:(k+Be+ot/Jt*It)/2,r:(Jt+q+Je)/2}}function kw(c,E,C){var k=c.x,q=c.y,we=c.r,Be=E.x,Je=E.y,Et=E.r,ot=C.x,It=C.y,Jt=C.r,Nt=k-Be,vn=k-ot,pr=q-Je,$n=q-It,Un=Et-we,lr=Jt-we,Hr=k*k+q*q-we*we,Br=Hr-Be*Be-Je*Je+Et*Et,Mr=Hr-ot*ot-It*It+Jt*Jt,Oi=vn*pr-Nt*$n,Yi=(pr*Mr-$n*Br)/(Oi*2)-k,uo=($n*Un-pr*lr)/Oi,Io=(vn*Br-Nt*Mr)/(Oi*2)-q,ua=(Nt*lr-vn*Un)/Oi,To=uo*uo+ua*ua-1,Lo=2*(we+Yi*uo+Io*ua),Ta=Yi*Yi+Io*Io-we*we,da=-(Math.abs(To)>1e-6?(Lo+Math.sqrt(Lo*Lo-4*To*Ta))/(2*To):Ta/Lo);return{x:k+Yi+uo*da,y:q+Io+ua*da,r:da}}function Nw(c,E,C){var k=c.x-E.x,q,we,Be=c.y-E.y,Je,Et,ot=k*k+Be*Be;ot?(we=E.r+C.r,we*=we,Et=c.r+C.r,Et*=Et,we>Et?(q=(ot+Et-we)/(2*ot),Je=Math.sqrt(Math.max(0,Et/ot-q*q)),C.x=c.x-q*k-Je*Be,C.y=c.y-q*Be+Je*k):(q=(ot+we-Et)/(2*ot),Je=Math.sqrt(Math.max(0,we/ot-q*q)),C.x=E.x+q*k-Je*Be,C.y=E.y+q*Be+Je*k)):(C.x=E.x+C.r,C.y=E.y)}function Fw(c,E){var C=c.r+E.r-1e-6,k=E.x-c.x,q=E.y-c.y;return C>0&&C*C>k*k+q*q}function Bw(c){var E=c._,C=c.next._,k=E.r+C.r,q=(E.x*C.r+C.x*E.r)/k,we=(E.y*C.r+C.y*E.r)/k;return q*q+we*we}function jy(c){this._=c,this.next=null,this.previous=null}function jw(c,E){if(!(we=(c=BO(c)).length))return 0;var C,k,q,we,Be,Je,Et,ot,It,Jt,Nt;if(C=c[0],C.x=0,C.y=0,!(we>1))return C.r;if(k=c[1],C.x=-k.r,k.x=C.r,k.y=0,!(we>2))return C.r+k.r;Nw(k,C,q=c[2]),C=new jy(C),k=new jy(k),q=new jy(q),C.next=q.previous=k,k.next=C.previous=q,q.next=k.previous=C;e:for(Et=3;Et<we;++Et){Nw(C._,k._,q=c[Et]),q=new jy(q),ot=k.next,It=C.previous,Jt=k._.r,Nt=C._.r;do if(Jt<=Nt){if(Fw(ot._,q._)){k=ot,C.next=k,k.previous=C,--Et;continue e}Jt+=ot._.r,ot=ot.next}else{if(Fw(It._,q._)){C=It,C.next=k,k.previous=C,--Et;continue e}Nt+=It._.r,It=It.previous}while(ot!==It.next);for(q.previous=C,q.next=k,C.next=k.previous=k=q,Be=Bw(C);(q=q.next)!==k;)(Je=Bw(q))<Be&&(C=q,Be=Je);k=C.next}for(C=[k._],q=k;(q=q.next)!==k;)C.push(q._);for(q=Iw(C,E),Et=0;Et<we;++Et)C=c[Et],C.x-=q.x,C.y-=q.y;return q.r}function VO(c){return jw(c,Yb()),c}function HO(c){return Math.sqrt(c.value)}function KO(){var c=null,E=1,C=1,k=Ag;function q(we){const Be=Yb();return we.x=E/2,we.y=C/2,c?we.eachBefore($w(c)).eachAfter(Qb(k,.5,Be)).eachBefore(Uw(1)):we.eachBefore($w(HO)).eachAfter(Qb(Ag,1,Be)).eachAfter(Qb(k,we.r/Math.min(E,C),Be)).eachBefore(Uw(Math.min(E,C)/(2*we.r))),we}return q.radius=function(we){return arguments.length?(c=Fy(we),q):c},q.size=function(we){return arguments.length?(E=+we[0],C=+we[1],q):[E,C]},q.padding=function(we){return arguments.length?(k=typeof we=="function"?we:Sm(+we),q):k},q}function $w(c){return function(E){E.children||(E.r=Math.max(0,+c(E)||0))}}function Qb(c,E,C){return function(k){if(q=k.children){var q,we,Be=q.length,Je=c(k)*E||0,Et;if(Je)for(we=0;we<Be;++we)q[we].r+=Je;if(Et=jw(q,C),Je)for(we=0;we<Be;++we)q[we].r-=Je;k.r=Et+Je}}}function Uw(c){return function(E){var C=E.parent;E.r*=c,C&&(E.x=C.x+c*E.x,E.y=C.y+c*E.y)}}function Ww(c){c.x0=Math.round(c.x0),c.y0=Math.round(c.y0),c.x1=Math.round(c.x1),c.y1=Math.round(c.y1)}function G0(c,E,C,k,q){for(var we=c.children,Be,Je=-1,Et=we.length,ot=c.value&&(k-E)/c.value;++Je<Et;)Be=we[Je],Be.y0=C,Be.y1=q,Be.x0=E,Be.x1=E+=Be.value*ot}function GO(){var c=1,E=1,C=0,k=!1;function q(Be){var Je=Be.height+1;return Be.x0=Be.y0=C,Be.x1=c,Be.y1=E/Je,Be.eachBefore(we(E,Je)),k&&Be.eachBefore(Ww),Be}function we(Be,Je){return function(Et){Et.children&&G0(Et,Et.x0,Be*(Et.depth+1)/Je,Et.x1,Be*(Et.depth+2)/Je);var ot=Et.x0,It=Et.y0,Jt=Et.x1-C,Nt=Et.y1-C;Jt<ot&&(ot=Jt=(ot+Jt)/2),Nt<It&&(It=Nt=(It+Nt)/2),Et.x0=ot,Et.y0=It,Et.x1=Jt,Et.y1=Nt}}return q.round=function(Be){return arguments.length?(k=!!Be,q):k},q.size=function(Be){return arguments.length?(c=+Be[0],E=+Be[1],q):[c,E]},q.padding=function(Be){return arguments.length?(C=+Be,q):C},q}var YO={depth:-1},zw={},Jb={};function XO(c){return c.id}function QO(c){return c.parentId}function JO(){var c=XO,E=QO,C;function k(q){var we=Array.from(q),Be=c,Je=E,Et,ot,It,Jt,Nt,vn,pr,$n,Un=new Map;if(C!=null){const lr=we.map((Mr,Oi)=>ZO(C(Mr,Oi,q))),Hr=lr.map(Vw),Br=new Set(lr).add("");for(const Mr of Hr)Br.has(Mr)||(Br.add(Mr),lr.push(Mr),Hr.push(Vw(Mr)),we.push(Jb));Be=(Mr,Oi)=>lr[Oi],Je=(Mr,Oi)=>Hr[Oi]}for(It=0,Et=we.length;It<Et;++It)ot=we[It],vn=we[It]=new xg(ot),(pr=Be(ot,It,q))!=null&&(pr+="")&&($n=vn.id=pr,Un.set($n,Un.has($n)?zw:vn)),(pr=Je(ot,It,q))!=null&&(pr+="")&&(vn.parent=pr);for(It=0;It<Et;++It)if(vn=we[It],pr=vn.parent){if(Nt=Un.get(pr),!Nt)throw new Error("missing: "+pr);if(Nt===zw)throw new Error("ambiguous: "+pr);Nt.children?Nt.children.push(vn):Nt.children=[vn],vn.parent=Nt}else{if(Jt)throw new Error("multiple roots");Jt=vn}if(!Jt)throw new Error("no root");if(C!=null){for(;Jt.data===Jb&&Jt.children.length===1;)Jt=Jt.children[0],--Et;for(let lr=we.length-1;lr>=0&&(vn=we[lr],vn.data===Jb);--lr)vn.data=null}if(Jt.parent=YO,Jt.eachBefore(function(lr){lr.depth=lr.parent.depth+1,--Et}).eachBefore(Rw),Jt.parent=null,Et>0)throw new Error("cycle");return Jt}return k.id=function(q){return arguments.length?(c=Fy(q),k):c},k.parentId=function(q){return arguments.length?(E=Fy(q),k):E},k.path=function(q){return arguments.length?(C=Fy(q),k):C},k}function ZO(c){c=`${c}`;let E=c.length;return Zb(c,E-1)&&!Zb(c,E-2)&&(c=c.slice(0,-1)),c[0]==="/"?c:`/${c}`}function Vw(c){let E=c.length;if(E<2)return"";for(;--E>1&&!Zb(c,E););return c.slice(0,E)}function Zb(c,E){if(c[E]==="/"){let C=0;for(;E>0&&c[--E]==="\\";)++C;if(!(C&1))return!0}return!1}function qO(c,E){return c.parent===E.parent?1:2}function qb(c){var E=c.children;return E?E[0]:c.t}function e1(c){var E=c.children;return E?E[E.length-1]:c.t}function eC(c,E,C){var k=C/(E.i-c.i);E.c-=k,E.s+=C,c.c+=k,E.z+=C,E.m+=C}function tC(c){for(var E=0,C=0,k=c.children,q=k.length,we;--q>=0;)we=k[q],we.z+=E,we.m+=E,E+=we.s+(C+=we.c)}function nC(c,E,C){return c.a.parent===E.parent?c.a:C}function $y(c,E){this._=c,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=E}$y.prototype=Object.create(xg.prototype);function rC(c){for(var E=new $y(c,0),C,k=[E],q,we,Be,Je;C=k.pop();)if(we=C._.children)for(C.children=new Array(Je=we.length),Be=Je-1;Be>=0;--Be)k.push(q=C.children[Be]=new $y(we[Be],Be)),q.parent=C;return(E.parent=new $y(null,0)).children=[E],E}function iC(){var c=qO,E=1,C=1,k=null;function q(ot){var It=rC(ot);if(It.eachAfter(we),It.parent.m=-It.z,It.eachBefore(Be),k)ot.eachBefore(Et);else{var Jt=ot,Nt=ot,vn=ot;ot.eachBefore(function(Hr){Hr.x<Jt.x&&(Jt=Hr),Hr.x>Nt.x&&(Nt=Hr),Hr.depth>vn.depth&&(vn=Hr)});var pr=Jt===Nt?1:c(Jt,Nt)/2,$n=pr-Jt.x,Un=E/(Nt.x+pr+$n),lr=C/(vn.depth||1);ot.eachBefore(function(Hr){Hr.x=(Hr.x+$n)*Un,Hr.y=Hr.depth*lr})}return ot}function we(ot){var It=ot.children,Jt=ot.parent.children,Nt=ot.i?Jt[ot.i-1]:null;if(It){tC(ot);var vn=(It[0].z+It[It.length-1].z)/2;Nt?(ot.z=Nt.z+c(ot._,Nt._),ot.m=ot.z-vn):ot.z=vn}else Nt&&(ot.z=Nt.z+c(ot._,Nt._));ot.parent.A=Je(ot,Nt,ot.parent.A||Jt[0])}function Be(ot){ot._.x=ot.z+ot.parent.m,ot.m+=ot.parent.m}function Je(ot,It,Jt){if(It){for(var Nt=ot,vn=ot,pr=It,$n=Nt.parent.children[0],Un=Nt.m,lr=vn.m,Hr=pr.m,Br=$n.m,Mr;pr=e1(pr),Nt=qb(Nt),pr&&Nt;)$n=qb($n),vn=e1(vn),vn.a=ot,Mr=pr.z+Hr-Nt.z-Un+c(pr._,Nt._),Mr>0&&(eC(nC(pr,ot,Jt),ot,Mr),Un+=Mr,lr+=Mr),Hr+=pr.m,Un+=Nt.m,Br+=$n.m,lr+=vn.m;pr&&!e1(vn)&&(vn.t=pr,vn.m+=Hr-lr),Nt&&!qb($n)&&($n.t=Nt,$n.m+=Un-Br,Jt=ot)}return Jt}function Et(ot){ot.x*=E,ot.y=ot.depth*C}return q.separation=function(ot){return arguments.length?(c=ot,q):c},q.size=function(ot){return arguments.length?(k=!1,E=+ot[0],C=+ot[1],q):k?null:[E,C]},q.nodeSize=function(ot){return arguments.length?(k=!0,E=+ot[0],C=+ot[1],q):k?[E,C]:null},q}function Uy(c,E,C,k,q){for(var we=c.children,Be,Je=-1,Et=we.length,ot=c.value&&(q-C)/c.value;++Je<Et;)Be=we[Je],Be.x0=E,Be.x1=k,Be.y0=C,Be.y1=C+=Be.value*ot}var Hw=(1+Math.sqrt(5))/2;function Kw(c,E,C,k,q,we){for(var Be=[],Je=E.children,Et,ot,It=0,Jt=0,Nt=Je.length,vn,pr,$n=E.value,Un,lr,Hr,Br,Mr,Oi,Yi;It<Nt;){vn=q-C,pr=we-k;do Un=Je[Jt++].value;while(!Un&&Jt<Nt);for(lr=Hr=Un,Oi=Math.max(pr/vn,vn/pr)/($n*c),Yi=Un*Un*Oi,Mr=Math.max(Hr/Yi,Yi/lr);Jt<Nt;++Jt){if(Un+=ot=Je[Jt].value,ot<lr&&(lr=ot),ot>Hr&&(Hr=ot),Yi=Un*Un*Oi,Br=Math.max(Hr/Yi,Yi/lr),Br>Mr){Un-=ot;break}Mr=Br}Be.push(Et={value:Un,dice:vn<pr,children:Je.slice(It,Jt)}),Et.dice?G0(Et,C,k,q,$n?k+=pr*Un/$n:we):Uy(Et,C,k,$n?C+=vn*Un/$n:q,we),$n-=Un,It=Jt}return Be}const Gw=function c(E){function C(k,q,we,Be,Je){Kw(E,k,q,we,Be,Je)}return C.ratio=function(k){return c((k=+k)>1?k:1)},C}(Hw);function oC(){var c=Gw,E=!1,C=1,k=1,q=[0],we=Ag,Be=Ag,Je=Ag,Et=Ag,ot=Ag;function It(Nt){return Nt.x0=Nt.y0=0,Nt.x1=C,Nt.y1=k,Nt.eachBefore(Jt),q=[0],E&&Nt.eachBefore(Ww),Nt}function Jt(Nt){var vn=q[Nt.depth],pr=Nt.x0+vn,$n=Nt.y0+vn,Un=Nt.x1-vn,lr=Nt.y1-vn;Un<pr&&(pr=Un=(pr+Un)/2),lr<$n&&($n=lr=($n+lr)/2),Nt.x0=pr,Nt.y0=$n,Nt.x1=Un,Nt.y1=lr,Nt.children&&(vn=q[Nt.depth+1]=we(Nt)/2,pr+=ot(Nt)-vn,$n+=Be(Nt)-vn,Un-=Je(Nt)-vn,lr-=Et(Nt)-vn,Un<pr&&(pr=Un=(pr+Un)/2),lr<$n&&($n=lr=($n+lr)/2),c(Nt,pr,$n,Un,lr))}return It.round=function(Nt){return arguments.length?(E=!!Nt,It):E},It.size=function(Nt){return arguments.length?(C=+Nt[0],k=+Nt[1],It):[C,k]},It.tile=function(Nt){return arguments.length?(c=Mw(Nt),It):c},It.padding=function(Nt){return arguments.length?It.paddingInner(Nt).paddingOuter(Nt):It.paddingInner()},It.paddingInner=function(Nt){return arguments.length?(we=typeof Nt=="function"?Nt:Sm(+Nt),It):we},It.paddingOuter=function(Nt){return arguments.length?It.paddingTop(Nt).paddingRight(Nt).paddingBottom(Nt).paddingLeft(Nt):It.paddingTop()},It.paddingTop=function(Nt){return arguments.length?(Be=typeof Nt=="function"?Nt:Sm(+Nt),It):Be},It.paddingRight=function(Nt){return arguments.length?(Je=typeof Nt=="function"?Nt:Sm(+Nt),It):Je},It.paddingBottom=function(Nt){return arguments.length?(Et=typeof Nt=="function"?Nt:Sm(+Nt),It):Et},It.paddingLeft=function(Nt){return arguments.length?(ot=typeof Nt=="function"?Nt:Sm(+Nt),It):ot},It}function aC(c,E,C,k,q){var we=c.children,Be,Je=we.length,Et,ot=new Array(Je+1);for(ot[0]=Et=Be=0;Be<Je;++Be)ot[Be+1]=Et+=we[Be].value;It(0,Je,c.value,E,C,k,q);function It(Jt,Nt,vn,pr,$n,Un,lr){if(Jt>=Nt-1){var Hr=we[Jt];Hr.x0=pr,Hr.y0=$n,Hr.x1=Un,Hr.y1=lr;return}for(var Br=ot[Jt],Mr=vn/2+Br,Oi=Jt+1,Yi=Nt-1;Oi<Yi;){var uo=Oi+Yi>>>1;ot[uo]<Mr?Oi=uo+1:Yi=uo}Mr-ot[Oi-1]<ot[Oi]-Mr&&Jt+1<Oi&&--Oi;var Io=ot[Oi]-Br,ua=vn-Io;if(Un-pr>lr-$n){var To=vn?(pr*ua+Un*Io)/vn:Un;It(Jt,Oi,Io,pr,$n,To,lr),It(Oi,Nt,ua,To,$n,Un,lr)}else{var Lo=vn?($n*ua+lr*Io)/vn:lr;It(Jt,Oi,Io,pr,$n,Un,Lo),It(Oi,Nt,ua,pr,Lo,Un,lr)}}}function sC(c,E,C,k,q){(c.depth&1?Uy:G0)(c,E,C,k,q)}const uC=function c(E){function C(k,q,we,Be,Je){if((Et=k._squarify)&&Et.ratio===E)for(var Et,ot,It,Jt,Nt=-1,vn,pr=Et.length,$n=k.value;++Nt<pr;){for(ot=Et[Nt],It=ot.children,Jt=ot.value=0,vn=It.length;Jt<vn;++Jt)ot.value+=It[Jt].value;ot.dice?G0(ot,q,we,Be,$n?we+=(Je-we)*ot.value/$n:Je):Uy(ot,q,we,$n?q+=(Be-q)*ot.value/$n:Be,Je),$n-=ot.value}else k._squarify=Et=Kw(E,k,q,we,Be,Je),Et.ratio=E}return C.ratio=function(k){return c((k=+k)>1?k:1)},C}(Hw);var lC=t(86160),cC=t(19804);function fC(c){var E=c.length;return function(C){return c[Math.max(0,Math.min(E-1,Math.floor(C*E)))]}}var Gh=t(84709);function dC(c,E){var C=(0,Gh.lG)(+c,+E);return function(k){var q=C(k);return q-360*Math.floor(q/360)}}function Wy(c,E){return c=+c,E=+E,function(C){return Math.round(c*(1-C)+E*C)}}var hC=1e-12;function Yw(c){return((c=Math.exp(c))+1/c)/2}function pC(c){return((c=Math.exp(c))-1/c)/2}function vC(c){return((c=Math.exp(2*c))-1)/(c+1)}const Xw=function c(E,C,k){function q(we,Be){var Je=we[0],Et=we[1],ot=we[2],It=Be[0],Jt=Be[1],Nt=Be[2],vn=It-Je,pr=Jt-Et,$n=vn*vn+pr*pr,Un,lr;if($n<hC)lr=Math.log(Nt/ot)/E,Un=function(uo){return[Je+uo*vn,Et+uo*pr,ot*Math.exp(E*uo*lr)]};else{var Hr=Math.sqrt($n),Br=(Nt*Nt-ot*ot+k*$n)/(2*ot*C*Hr),Mr=(Nt*Nt-ot*ot-k*$n)/(2*Nt*C*Hr),Oi=Math.log(Math.sqrt(Br*Br+1)-Br),Yi=Math.log(Math.sqrt(Mr*Mr+1)-Mr);lr=(Yi-Oi)/E,Un=function(uo){var Io=uo*lr,ua=Yw(Oi),To=ot/(C*Hr)*(ua*vC(E*Io+Oi)-pC(Oi));return[Je+To*vn,Et+To*pr,ot*ua/Yw(E*Io+Oi)]}}return Un.duration=lr*1e3*E/Math.SQRT2,Un}return q.rho=function(we){var Be=Math.max(.001,+we),Je=Be*Be,Et=Je*Je;return c(Be,Je,Et)},q}(Math.SQRT2,2,4);function Qw(c){return function(E,C){var k=c((E=(0,Us.KI)(E)).h,(C=(0,Us.KI)(C)).h),q=(0,Gh.Ay)(E.s,C.s),we=(0,Gh.Ay)(E.l,C.l),Be=(0,Gh.Ay)(E.opacity,C.opacity);return function(Je){return E.h=k(Je),E.s=q(Je),E.l=we(Je),E.opacity=Be(Je),E+""}}}const gC=Qw(Gh.lG);var mC=Qw(Gh.Ay);function yC(c,E){var C=(0,Gh.Ay)((c=Rf(c)).l,(E=Rf(E)).l),k=(0,Gh.Ay)(c.a,E.a),q=(0,Gh.Ay)(c.b,E.b),we=(0,Gh.Ay)(c.opacity,E.opacity);return function(Be){return c.l=C(Be),c.a=k(Be),c.b=q(Be),c.opacity=we(Be),c+""}}function Jw(c){return function(E,C){var k=c((E=Pu(E)).h,(C=Pu(C)).h),q=(0,Gh.Ay)(E.c,C.c),we=(0,Gh.Ay)(E.l,C.l),Be=(0,Gh.Ay)(E.opacity,C.opacity);return function(Je){return E.h=k(Je),E.c=q(Je),E.l=we(Je),E.opacity=Be(Je),E+""}}}const bC=Jw(Gh.lG);var wC=Jw(Gh.Ay),Zw=t(69837);function qw(c,E){E===void 0&&(E=c,c=Kn);for(var C=0,k=E.length-1,q=E[0],we=new Array(k<0?0:k);C<k;)we[C]=c(q,q=E[++C]);return function(Be){var Je=Math.max(0,Math.min(k-1,Math.floor(Be*=k)));return we[Je](Be-Je)}}function EC(c,E){for(var C=new Array(E),k=0;k<E;++k)C[k]=c(k/(E-1));return C}function SC(c){for(var E=-1,C=c.length,k,q=c[C-1],we=0;++E<C;)k=q,q=c[E],we+=k[1]*q[0]-k[0]*q[1];return we/2}function _C(c){for(var E=-1,C=c.length,k=0,q=0,we,Be=c[C-1],Je,Et=0;++E<C;)we=Be,Be=c[E],Et+=Je=we[0]*Be[1]-Be[0]*we[1],k+=(we[0]+Be[0])*Je,q+=(we[1]+Be[1])*Je;return Et*=3,[k/Et,q/Et]}function OC(c,E,C){return(E[0]-c[0])*(C[1]-c[1])-(E[1]-c[1])*(C[0]-c[0])}function CC(c,E){return c[0]-E[0]||c[1]-E[1]}function eE(c){const E=c.length,C=[0,1];let k=2,q;for(q=2;q<E;++q){for(;k>1&&OC(c[C[k-2]],c[C[k-1]],c[q])<=0;)--k;C[k++]=q}return C.slice(0,k)}function xC(c){if((C=c.length)<3)return null;var E,C,k=new Array(C),q=new Array(C);for(E=0;E<C;++E)k[E]=[+c[E][0],+c[E][1],E];for(k.sort(CC),E=0;E<C;++E)q[E]=[k[E][0],-k[E][1]];var we=eE(k),Be=eE(q),Je=Be[0]===we[0],Et=Be[Be.length-1]===we[we.length-1],ot=[];for(E=we.length-1;E>=0;--E)ot.push(c[k[we[E]][2]]);for(E=+Je;E<Be.length-Et;++E)ot.push(c[k[Be[E]][2]]);return ot}function AC(c,E){for(var C=c.length,k=c[C-1],q=E[0],we=E[1],Be=k[0],Je=k[1],Et,ot,It=!1,Jt=0;Jt<C;++Jt)k=c[Jt],Et=k[0],ot=k[1],ot>we!=Je>we&&q<(Be-Et)*(we-ot)/(Je-ot)+Et&&(It=!It),Be=Et,Je=ot;return It}function PC(c){for(var E=-1,C=c.length,k=c[C-1],q,we,Be=k[0],Je=k[1],Et=0;++E<C;)q=Be,we=Je,k=c[E],Be=k[0],Je=k[1],q-=Be,we-=Je,Et+=Math.hypot(q,we);return Et}const Nh=Math.random,TC=function c(E){function C(k,q){return k=k==null?0:+k,q=q==null?1:+q,arguments.length===1?(q=k,k=0):q-=k,function(){return E()*q+k}}return C.source=c,C}(Nh),RC=function c(E){function C(k,q){return arguments.length<2&&(q=k,k=0),k=Math.floor(k),q=Math.floor(q)-k,function(){return Math.floor(E()*q+k)}}return C.source=c,C}(Nh),t1=function c(E){function C(k,q){var we,Be;return k=k==null?0:+k,q=q==null?1:+q,function(){var Je;if(we!=null)Je=we,we=null;else do we=E()*2-1,Je=E()*2-1,Be=we*we+Je*Je;while(!Be||Be>1);return k+q*Je*Math.sqrt(-2*Math.log(Be)/Be)}}return C.source=c,C}(Nh),MC=function c(E){var C=t1.source(E);function k(){var q=C.apply(this,arguments);return function(){return Math.exp(q())}}return k.source=c,k}(Nh),tE=function c(E){function C(k){return(k=+k)<=0?()=>0:function(){for(var q=0,we=k;we>1;--we)q+=E();return q+we*E()}}return C.source=c,C}(Nh),DC=function c(E){var C=tE.source(E);function k(q){if((q=+q)==0)return E;var we=C(q);return function(){return we()/q}}return k.source=c,k}(Nh),IC=function c(E){function C(k){return function(){return-Math.log1p(-E())/k}}return C.source=c,C}(Nh),LC=function c(E){function C(k){if((k=+k)<0)throw new RangeError("invalid alpha");return k=1/-k,function(){return Math.pow(1-E(),k)}}return C.source=c,C}(Nh),kC=function c(E){function C(k){if((k=+k)<0||k>1)throw new RangeError("invalid p");return function(){return Math.floor(E()+k)}}return C.source=c,C}(Nh),nE=function c(E){function C(k){if((k=+k)<0||k>1)throw new RangeError("invalid p");return k===0?()=>1/0:k===1?()=>1:(k=Math.log1p(-k),function(){return 1+Math.floor(Math.log1p(-E())/k)})}return C.source=c,C}(Nh),n1=function c(E){var C=t1.source(E)();function k(q,we){if((q=+q)<0)throw new RangeError("invalid k");if(q===0)return()=>0;if(we=we==null?1:+we,q===1)return()=>-Math.log1p(-E())*we;var Be=(q<1?q+1:q)-1/3,Je=1/(3*Math.sqrt(Be)),Et=q<1?()=>Math.pow(E(),1/q):()=>1;return function(){do{do var ot=C(),It=1+Je*ot;while(It<=0);It*=It*It;var Jt=1-E()}while(Jt>=1-.0331*ot*ot*ot*ot&&Math.log(Jt)>=.5*ot*ot+Be*(1-It+Math.log(It)));return Be*It*Et()*we}}return k.source=c,k}(Nh),rE=function c(E){var C=n1.source(E);function k(q,we){var Be=C(q),Je=C(we);return function(){var Et=Be();return Et===0?0:Et/(Et+Je())}}return k.source=c,k}(Nh),iE=function c(E){var C=nE.source(E),k=rE.source(E);function q(we,Be){return we=+we,(Be=+Be)>=1?()=>we:Be<=0?()=>0:function(){for(var Je=0,Et=we,ot=Be;Et*ot>16&&Et*(1-ot)>16;){var It=Math.floor((Et+1)*ot),Jt=k(It,Et-It+1)();Jt<=ot?(Je+=It,Et-=It,ot=(ot-Jt)/(1-Jt)):(Et=It-1,ot/=Jt)}for(var Nt=ot<.5,vn=Nt?ot:1-ot,pr=C(vn),$n=pr(),Un=0;$n<=Et;++Un)$n+=pr();return Je+(Nt?Un:Et-Un)}}return q.source=c,q}(Nh),NC=function c(E){function C(k,q,we){var Be;return(k=+k)==0?Be=Je=>-Math.log(Je):(k=1/k,Be=Je=>Math.pow(Je,k)),q=q==null?0:+q,we=we==null?1:+we,function(){return q+we*Be(-Math.log1p(-E()))}}return C.source=c,C}(Nh),FC=function c(E){function C(k,q){return k=k==null?0:+k,q=q==null?1:+q,function(){return k+q*Math.tan(Math.PI*E())}}return C.source=c,C}(Nh),BC=function c(E){function C(k,q){return k=k==null?0:+k,q=q==null?1:+q,function(){var we=E();return k+q*Math.log(we/(1-we))}}return C.source=c,C}(Nh),jC=function c(E){var C=n1.source(E),k=iE.source(E);function q(we){return function(){for(var Be=0,Je=we;Je>16;){var Et=Math.floor(.875*Je),ot=C(Et)();if(ot>Je)return Be+k(Et-1,Je/ot)();Be+=Et,Je-=ot}for(var It=-Math.log1p(-E()),Jt=0;It<=Je;++Jt)It-=Math.log1p(-E());return Be+Jt}}return q.source=c,q}(Nh);var $C=t(73844);function hp(c,E){switch(arguments.length){case 0:break;case 1:this.range(c);break;default:this.range(E).domain(c);break}return this}function dv(c,E){switch(arguments.length){case 0:break;case 1:{typeof c=="function"?this.interpolator(c):this.range(c);break}default:{this.domain(c),typeof E=="function"?this.interpolator(E):this.range(E);break}}return this}const r1=Symbol("implicit");function i1(){var c=new H,E=[],C=[],k=r1;function q(we){let Be=c.get(we);if(Be===void 0){if(k!==r1)return k;c.set(we,Be=E.push(we)-1)}return C[Be%C.length]}return q.domain=function(we){if(!arguments.length)return E.slice();E=[],c=new H;for(const Be of we)c.has(Be)||c.set(Be,E.push(Be)-1);return q},q.range=function(we){return arguments.length?(C=Array.from(we),q):C.slice()},q.unknown=function(we){return arguments.length?(k=we,q):k},q.copy=function(){return i1(E,C).unknown(k)},hp.apply(q,arguments),q}function o1(){var c=i1().unknown(void 0),E=c.domain,C=c.range,k=0,q=1,we,Be,Je=!1,Et=0,ot=0,It=.5;delete c.unknown;function Jt(){var Nt=E().length,vn=q<k,pr=vn?q:k,$n=vn?k:q;we=($n-pr)/Math.max(1,Nt-Et+ot*2),Je&&(we=Math.floor(we)),pr+=($n-pr-we*(Nt-Et))*It,Be=we*(1-Et),Je&&(pr=Math.round(pr),Be=Math.round(Be));var Un=Zt(Nt).map(function(lr){return pr+we*lr});return C(vn?Un.reverse():Un)}return c.domain=function(Nt){return arguments.length?(E(Nt),Jt()):E()},c.range=function(Nt){return arguments.length?([k,q]=Nt,k=+k,q=+q,Jt()):[k,q]},c.rangeRound=function(Nt){return[k,q]=Nt,k=+k,q=+q,Je=!0,Jt()},c.bandwidth=function(){return Be},c.step=function(){return we},c.round=function(Nt){return arguments.length?(Je=!!Nt,Jt()):Je},c.padding=function(Nt){return arguments.length?(Et=Math.min(1,ot=+Nt),Jt()):Et},c.paddingInner=function(Nt){return arguments.length?(Et=Math.min(1,Nt),Jt()):Et},c.paddingOuter=function(Nt){return arguments.length?(ot=+Nt,Jt()):ot},c.align=function(Nt){return arguments.length?(It=Math.max(0,Math.min(1,Nt)),Jt()):It},c.copy=function(){return o1(E(),[k,q]).round(Je).paddingInner(Et).paddingOuter(ot).align(It)},hp.apply(Jt(),arguments)}function oE(c){var E=c.copy;return c.padding=c.paddingOuter,delete c.paddingInner,delete c.paddingOuter,c.copy=function(){return oE(E())},c}function UC(){return oE(o1.apply(null,arguments).paddingInner(1))}function WC(c){return function(){return c}}function zy(c){return+c}var aE=[0,1];function Yh(c){return c}function a1(c,E){return(E-=c=+c)?function(C){return(C-c)/E}:WC(isNaN(E)?NaN:.5)}function zC(c,E){var C;return c>E&&(C=c,c=E,E=C),function(k){return Math.max(c,Math.min(E,k))}}function VC(c,E,C){var k=c[0],q=c[1],we=E[0],Be=E[1];return q<k?(k=a1(q,k),we=C(Be,we)):(k=a1(k,q),we=C(we,Be)),function(Je){return we(k(Je))}}function HC(c,E,C){var k=Math.min(c.length,E.length)-1,q=new Array(k),we=new Array(k),Be=-1;for(c[k]<c[0]&&(c=c.slice().reverse(),E=E.slice().reverse());++Be<k;)q[Be]=a1(c[Be],c[Be+1]),we[Be]=C(E[Be],E[Be+1]);return function(Je){var Et=b(c,Je,1,k)-1;return we[Et](q[Et](Je))}}function Y0(c,E){return E.domain(c.domain()).range(c.range()).interpolate(c.interpolate()).clamp(c.clamp()).unknown(c.unknown())}function Vy(){var c=aE,E=aE,C=Kn,k,q,we,Be=Yh,Je,Et,ot;function It(){var Nt=Math.min(c.length,E.length);return Be!==Yh&&(Be=zC(c[0],c[Nt-1])),Je=Nt>2?HC:VC,Et=ot=null,Jt}function Jt(Nt){return Nt==null||isNaN(Nt=+Nt)?we:(Et||(Et=Je(c.map(k),E,C)))(k(Be(Nt)))}return Jt.invert=function(Nt){return Be(q((ot||(ot=Je(E,c.map(k),fl)))(Nt)))},Jt.domain=function(Nt){return arguments.length?(c=Array.from(Nt,zy),It()):c.slice()},Jt.range=function(Nt){return arguments.length?(E=Array.from(Nt),It()):E.slice()},Jt.rangeRound=function(Nt){return E=Array.from(Nt),C=Wy,It()},Jt.clamp=function(Nt){return arguments.length?(Be=Nt?!0:Yh,It()):Be!==Yh},Jt.interpolate=function(Nt){return arguments.length?(C=Nt,It()):C},Jt.unknown=function(Nt){return arguments.length?(we=Nt,Jt):we},function(Nt,vn){return k=Nt,q=vn,It()}}function s1(){return Vy()(Yh,Yh)}function sE(c,E,C,k){var q=ue(c,E,C),we;switch(k=Sp(k??",f"),k.type){case"s":{var Be=Math.max(Math.abs(c),Math.abs(E));return k.precision==null&&!isNaN(we=mg(q,Be))&&(k.precision=we),Nv(k,Be)}case"":case"e":case"g":case"p":case"r":{k.precision==null&&!isNaN(we=pm(q,Math.max(Math.abs(c),Math.abs(E))))&&(k.precision=we-(k.type==="e"));break}case"f":case"%":{k.precision==null&&!isNaN(we=hm(q))&&(k.precision=we-(k.type==="%")*2);break}}return uv(k)}function zv(c){var E=c.domain;return c.ticks=function(C){var k=E();return I(k[0],k[k.length-1],C??10)},c.tickFormat=function(C,k){var q=E();return sE(q[0],q[q.length-1],C??10,k)},c.nice=function(C){C==null&&(C=10);var k=E(),q=0,we=k.length-1,Be=k[q],Je=k[we],Et,ot,It=10;for(Je<Be&&(ot=Be,Be=Je,Je=ot,ot=q,q=we,we=ot);It-- >0;){if(ot=K(Be,Je,C),ot===Et)return k[q]=Be,k[we]=Je,E(k);if(ot>0)Be=Math.floor(Be/ot)*ot,Je=Math.ceil(Je/ot)*ot;else if(ot<0)Be=Math.ceil(Be*ot)/ot,Je=Math.floor(Je*ot)/ot;else break;Et=ot}return c},c}function uE(){var c=s1();return c.copy=function(){return Y0(c,uE())},hp.apply(c,arguments),zv(c)}function lE(c){var E;function C(k){return k==null||isNaN(k=+k)?E:k}return C.invert=C,C.domain=C.range=function(k){return arguments.length?(c=Array.from(k,zy),C):c.slice()},C.unknown=function(k){return arguments.length?(E=k,C):E},C.copy=function(){return lE(c).unknown(E)},c=arguments.length?Array.from(c,zy):[0,1],zv(C)}function cE(c,E){c=c.slice();var C=0,k=c.length-1,q=c[C],we=c[k],Be;return we<q&&(Be=C,C=k,k=Be,Be=q,q=we,we=Be),c[C]=E.floor(q),c[k]=E.ceil(we),c}function fE(c){return Math.log(c)}function dE(c){return Math.exp(c)}function KC(c){return-Math.log(-c)}function GC(c){return-Math.exp(-c)}function YC(c){return isFinite(c)?+("1e"+c):c<0?0:c}function XC(c){return c===10?YC:c===Math.E?Math.exp:E=>Math.pow(c,E)}function QC(c){return c===Math.E?Math.log:c===10&&Math.log10||c===2&&Math.log2||(c=Math.log(c),E=>Math.log(E)/c)}function hE(c){return(E,C)=>-c(-E,C)}function u1(c){const E=c(fE,dE),C=E.domain;let k=10,q,we;function Be(){return q=QC(k),we=XC(k),C()[0]<0?(q=hE(q),we=hE(we),c(KC,GC)):c(fE,dE),E}return E.base=function(Je){return arguments.length?(k=+Je,Be()):k},E.domain=function(Je){return arguments.length?(C(Je),Be()):C()},E.ticks=Je=>{const Et=C();let ot=Et[0],It=Et[Et.length-1];const Jt=It<ot;Jt&&([ot,It]=[It,ot]);let Nt=q(ot),vn=q(It),pr,$n;const Un=Je==null?10:+Je;let lr=[];if(!(k%1)&&vn-Nt<Un){if(Nt=Math.floor(Nt),vn=Math.ceil(vn),ot>0){for(;Nt<=vn;++Nt)for(pr=1;pr<k;++pr)if($n=Nt<0?pr/we(-Nt):pr*we(Nt),!($n<ot)){if($n>It)break;lr.push($n)}}else for(;Nt<=vn;++Nt)for(pr=k-1;pr>=1;--pr)if($n=Nt>0?pr/we(-Nt):pr*we(Nt),!($n<ot)){if($n>It)break;lr.push($n)}lr.length*2<Un&&(lr=I(ot,It,Un))}else lr=I(Nt,vn,Math.min(vn-Nt,Un)).map(we);return Jt?lr.reverse():lr},E.tickFormat=(Je,Et)=>{if(Je==null&&(Je=10),Et==null&&(Et=k===10?"s":","),typeof Et!="function"&&(!(k%1)&&(Et=Sp(Et)).precision==null&&(Et.trim=!0),Et=uv(Et)),Je===1/0)return Et;const ot=Math.max(1,k*Je/E.ticks().length);return It=>{let Jt=It/we(Math.round(q(It)));return Jt*k<k-.5&&(Jt*=k),Jt<=ot?Et(It):""}},E.nice=()=>C(cE(C(),{floor:Je=>we(Math.floor(q(Je))),ceil:Je=>we(Math.ceil(q(Je)))})),E}function pE(){const c=u1(Vy()).domain([1,10]);return c.copy=()=>Y0(c,pE()).base(c.base()),hp.apply(c,arguments),c}function vE(c){return function(E){return Math.sign(E)*Math.log1p(Math.abs(E/c))}}function gE(c){return function(E){return Math.sign(E)*Math.expm1(Math.abs(E))*c}}function l1(c){var E=1,C=c(vE(E),gE(E));return C.constant=function(k){return arguments.length?c(vE(E=+k),gE(E)):E},zv(C)}function mE(){var c=l1(Vy());return c.copy=function(){return Y0(c,mE()).constant(c.constant())},hp.apply(c,arguments)}function yE(c){return function(E){return E<0?-Math.pow(-E,c):Math.pow(E,c)}}function JC(c){return c<0?-Math.sqrt(-c):Math.sqrt(c)}function ZC(c){return c<0?-c*c:c*c}function c1(c){var E=c(Yh,Yh),C=1;function k(){return C===1?c(Yh,Yh):C===.5?c(JC,ZC):c(yE(C),yE(1/C))}return E.exponent=function(q){return arguments.length?(C=+q,k()):C},zv(E)}function f1(){var c=c1(Vy());return c.copy=function(){return Y0(c,f1()).exponent(c.exponent())},hp.apply(c,arguments),c}function qC(){return f1.apply(null,arguments).exponent(.5)}function bE(c){return Math.sign(c)*c*c}function ex(c){return Math.sign(c)*Math.sqrt(Math.abs(c))}function wE(){var c=s1(),E=[0,1],C=!1,k;function q(we){var Be=ex(c(we));return isNaN(Be)?k:C?Math.round(Be):Be}return q.invert=function(we){return c.invert(bE(we))},q.domain=function(we){return arguments.length?(c.domain(we),q):c.domain()},q.range=function(we){return arguments.length?(c.range((E=Array.from(we,zy)).map(bE)),q):E.slice()},q.rangeRound=function(we){return q.range(we).round(!0)},q.round=function(we){return arguments.length?(C=!!we,q):C},q.clamp=function(we){return arguments.length?(c.clamp(we),q):c.clamp()},q.unknown=function(we){return arguments.length?(k=we,q):k},q.copy=function(){return wE(c.domain(),E).round(C).clamp(c.clamp()).unknown(k)},hp.apply(q,arguments),zv(q)}function EE(){var c=[],E=[],C=[],k;function q(){var Be=0,Je=Math.max(1,E.length);for(C=new Array(Je-1);++Be<Je;)C[Be-1]=ie(c,Be/Je);return we}function we(Be){return Be==null||isNaN(Be=+Be)?k:E[b(C,Be)]}return we.invertExtent=function(Be){var Je=E.indexOf(Be);return Je<0?[NaN,NaN]:[Je>0?C[Je-1]:c[0],Je<C.length?C[Je]:c[c.length-1]]},we.domain=function(Be){if(!arguments.length)return c.slice();c=[];for(let Je of Be)Je!=null&&!isNaN(Je=+Je)&&c.push(Je);return c.sort(i),q()},we.range=function(Be){return arguments.length?(E=Array.from(Be),q()):E.slice()},we.unknown=function(Be){return arguments.length?(k=Be,we):k},we.quantiles=function(){return C.slice()},we.copy=function(){return EE().domain(c).range(E).unknown(k)},hp.apply(we,arguments)}function SE(){var c=0,E=1,C=1,k=[.5],q=[0,1],we;function Be(Et){return Et!=null&&Et<=Et?q[b(k,Et,0,C)]:we}function Je(){var Et=-1;for(k=new Array(C);++Et<C;)k[Et]=((Et+1)*E-(Et-C)*c)/(C+1);return Be}return Be.domain=function(Et){return arguments.length?([c,E]=Et,c=+c,E=+E,Je()):[c,E]},Be.range=function(Et){return arguments.length?(C=(q=Array.from(Et)).length-1,Je()):q.slice()},Be.invertExtent=function(Et){var ot=q.indexOf(Et);return ot<0?[NaN,NaN]:ot<1?[c,k[0]]:ot>=C?[k[C-1],E]:[k[ot-1],k[ot]]},Be.unknown=function(Et){return arguments.length&&(we=Et),Be},Be.thresholds=function(){return k.slice()},Be.copy=function(){return SE().domain([c,E]).range(q).unknown(we)},hp.apply(zv(Be),arguments)}function _E(){var c=[.5],E=[0,1],C,k=1;function q(we){return we!=null&&we<=we?E[b(c,we,0,k)]:C}return q.domain=function(we){return arguments.length?(c=Array.from(we),k=Math.min(c.length,E.length-1),q):c.slice()},q.range=function(we){return arguments.length?(E=Array.from(we),k=Math.min(c.length,E.length-1),q):E.slice()},q.invertExtent=function(we){var Be=E.indexOf(we);return[c[Be-1],c[Be]]},q.unknown=function(we){return arguments.length?(C=we,q):C},q.copy=function(){return _E().domain(c).range(E).unknown(C)},hp.apply(q,arguments)}const hv=1e3,pp=hv*60,pv=pp*60,vv=pv*24,d1=vv*7,OE=vv*30,h1=vv*365,p1=new Date,v1=new Date;function sh(c,E,C,k){function q(we){return c(we=arguments.length===0?new Date:new Date(+we)),we}return q.floor=we=>(c(we=new Date(+we)),we),q.ceil=we=>(c(we=new Date(we-1)),E(we,1),c(we),we),q.round=we=>{const Be=q(we),Je=q.ceil(we);return we-Be<Je-we?Be:Je},q.offset=(we,Be)=>(E(we=new Date(+we),Be==null?1:Math.floor(Be)),we),q.range=(we,Be,Je)=>{const Et=[];if(we=q.ceil(we),Je=Je==null?1:Math.floor(Je),!(we<Be)||!(Je>0))return Et;let ot;do Et.push(ot=new Date(+we)),E(we,Je),c(we);while(ot<we&&we<Be);return Et},q.filter=we=>sh(Be=>{if(Be>=Be)for(;c(Be),!we(Be);)Be.setTime(Be-1)},(Be,Je)=>{if(Be>=Be)if(Je<0)for(;++Je<=0;)for(;E(Be,-1),!we(Be););else for(;--Je>=0;)for(;E(Be,1),!we(Be););}),C&&(q.count=(we,Be)=>(p1.setTime(+we),v1.setTime(+Be),c(p1),c(v1),Math.floor(C(p1,v1))),q.every=we=>(we=Math.floor(we),!isFinite(we)||!(we>0)?null:we>1?q.filter(k?Be=>k(Be)%we===0:Be=>q.count(0,Be)%we===0):q)),q}const _m=sh(()=>{},(c,E)=>{c.setTime(+c+E)},(c,E)=>E-c);_m.every=c=>(c=Math.floor(c),!isFinite(c)||!(c>0)?null:c>1?sh(E=>{E.setTime(Math.floor(E/c)*c)},(E,C)=>{E.setTime(+E+C*c)},(E,C)=>(C-E)/c):_m);const CE=_m.range,gv=sh(c=>{c.setTime(c-c.getMilliseconds())},(c,E)=>{c.setTime(+c+E*hv)},(c,E)=>(E-c)/hv,c=>c.getUTCSeconds()),xE=gv.range,Hy=sh(c=>{c.setTime(c-c.getMilliseconds()-c.getSeconds()*hv)},(c,E)=>{c.setTime(+c+E*pp)},(c,E)=>(E-c)/pp,c=>c.getMinutes()),tx=Hy.range,Ky=sh(c=>{c.setUTCSeconds(0,0)},(c,E)=>{c.setTime(+c+E*pp)},(c,E)=>(E-c)/pp,c=>c.getUTCMinutes()),nx=Ky.range,Gy=sh(c=>{c.setTime(c-c.getMilliseconds()-c.getSeconds()*hv-c.getMinutes()*pp)},(c,E)=>{c.setTime(+c+E*pv)},(c,E)=>(E-c)/pv,c=>c.getHours()),rx=Gy.range,Yy=sh(c=>{c.setUTCMinutes(0,0,0)},(c,E)=>{c.setTime(+c+E*pv)},(c,E)=>(E-c)/pv,c=>c.getUTCHours()),ix=Yy.range,Om=sh(c=>c.setHours(0,0,0,0),(c,E)=>c.setDate(c.getDate()+E),(c,E)=>(E-c-(E.getTimezoneOffset()-c.getTimezoneOffset())*pp)/vv,c=>c.getDate()-1),ox=Om.range,X0=sh(c=>{c.setUTCHours(0,0,0,0)},(c,E)=>{c.setUTCDate(c.getUTCDate()+E)},(c,E)=>(E-c)/vv,c=>c.getUTCDate()-1),ax=X0.range,g1=sh(c=>{c.setUTCHours(0,0,0,0)},(c,E)=>{c.setUTCDate(c.getUTCDate()+E)},(c,E)=>(E-c)/vv,c=>Math.floor(c/vv)),sx=g1.range;function Pg(c){return sh(E=>{E.setDate(E.getDate()-(E.getDay()+7-c)%7),E.setHours(0,0,0,0)},(E,C)=>{E.setDate(E.getDate()+C*7)},(E,C)=>(C-E-(C.getTimezoneOffset()-E.getTimezoneOffset())*pp)/d1)}const Cm=Pg(0),Q0=Pg(1),AE=Pg(2),PE=Pg(3),Tg=Pg(4),TE=Pg(5),RE=Pg(6),ME=Cm.range,ux=Q0.range,lx=AE.range,cx=PE.range,fx=Tg.range,dx=TE.range,hx=RE.range;function Rg(c){return sh(E=>{E.setUTCDate(E.getUTCDate()-(E.getUTCDay()+7-c)%7),E.setUTCHours(0,0,0,0)},(E,C)=>{E.setUTCDate(E.getUTCDate()+C*7)},(E,C)=>(C-E)/d1)}const xm=Rg(0),J0=Rg(1),DE=Rg(2),IE=Rg(3),Mg=Rg(4),LE=Rg(5),kE=Rg(6),NE=xm.range,px=J0.range,vx=DE.range,gx=IE.range,mx=Mg.range,yx=LE.range,bx=kE.range,Xy=sh(c=>{c.setDate(1),c.setHours(0,0,0,0)},(c,E)=>{c.setMonth(c.getMonth()+E)},(c,E)=>E.getMonth()-c.getMonth()+(E.getFullYear()-c.getFullYear())*12,c=>c.getMonth()),wx=Xy.range,Qy=sh(c=>{c.setUTCDate(1),c.setUTCHours(0,0,0,0)},(c,E)=>{c.setUTCMonth(c.getUTCMonth()+E)},(c,E)=>E.getUTCMonth()-c.getUTCMonth()+(E.getUTCFullYear()-c.getUTCFullYear())*12,c=>c.getUTCMonth()),Ex=Qy.range,Jp=sh(c=>{c.setMonth(0,1),c.setHours(0,0,0,0)},(c,E)=>{c.setFullYear(c.getFullYear()+E)},(c,E)=>E.getFullYear()-c.getFullYear(),c=>c.getFullYear());Jp.every=c=>!isFinite(c=Math.floor(c))||!(c>0)?null:sh(E=>{E.setFullYear(Math.floor(E.getFullYear()/c)*c),E.setMonth(0,1),E.setHours(0,0,0,0)},(E,C)=>{E.setFullYear(E.getFullYear()+C*c)});const Sx=Jp.range,Zp=sh(c=>{c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0)},(c,E)=>{c.setUTCFullYear(c.getUTCFullYear()+E)},(c,E)=>E.getUTCFullYear()-c.getUTCFullYear(),c=>c.getUTCFullYear());Zp.every=c=>!isFinite(c=Math.floor(c))||!(c>0)?null:sh(E=>{E.setUTCFullYear(Math.floor(E.getUTCFullYear()/c)*c),E.setUTCMonth(0,1),E.setUTCHours(0,0,0,0)},(E,C)=>{E.setUTCFullYear(E.getUTCFullYear()+C*c)});const _x=Zp.range;function FE(c,E,C,k,q,we){const Be=[[gv,1,hv],[gv,5,5*hv],[gv,15,15*hv],[gv,30,30*hv],[we,1,pp],[we,5,5*pp],[we,15,15*pp],[we,30,30*pp],[q,1,pv],[q,3,3*pv],[q,6,6*pv],[q,12,12*pv],[k,1,vv],[k,2,2*vv],[C,1,d1],[E,1,OE],[E,3,3*OE],[c,1,h1]];function Je(ot,It,Jt){const Nt=It<ot;Nt&&([ot,It]=[It,ot]);const vn=Jt&&typeof Jt.range=="function"?Jt:Et(ot,It,Jt),pr=vn?vn.range(ot,+It+1):[];return Nt?pr.reverse():pr}function Et(ot,It,Jt){const Nt=Math.abs(It-ot)/Jt,vn=s(([,,Un])=>Un).right(Be,Nt);if(vn===Be.length)return c.every(ue(ot/h1,It/h1,Jt));if(vn===0)return _m.every(Math.max(ue(ot,It,Jt),1));const[pr,$n]=Be[Nt/Be[vn-1][2]<Be[vn][2]/Nt?vn-1:vn];return pr.every($n)}return[Je,Et]}const[BE,jE]=FE(Zp,Qy,xm,g1,Yy,Ky),[$E,UE]=FE(Jp,Xy,Cm,Om,Gy,Hy);function m1(c){if(0<=c.y&&c.y<100){var E=new Date(-1,c.m,c.d,c.H,c.M,c.S,c.L);return E.setFullYear(c.y),E}return new Date(c.y,c.m,c.d,c.H,c.M,c.S,c.L)}function y1(c){if(0<=c.y&&c.y<100){var E=new Date(Date.UTC(-1,c.m,c.d,c.H,c.M,c.S,c.L));return E.setUTCFullYear(c.y),E}return new Date(Date.UTC(c.y,c.m,c.d,c.H,c.M,c.S,c.L))}function Z0(c,E,C){return{y:c,m:E,d:C,H:0,M:0,S:0,L:0}}function WE(c){var E=c.dateTime,C=c.date,k=c.time,q=c.periods,we=c.days,Be=c.shortDays,Je=c.months,Et=c.shortMonths,ot=q0(q),It=ey(q),Jt=q0(we),Nt=ey(we),vn=q0(Be),pr=ey(Be),$n=q0(Je),Un=ey(Je),lr=q0(Et),Hr=ey(Et),Br={a:jo,A:oo,b:zo,B:Oo,c:null,d:YE,e:YE,f:Kx,g:nA,G:iA,H:zx,I:Vx,j:Hx,L:XE,m:Gx,M:Yx,p:ma,q:ka,Q:tS,s:nS,S:Xx,u:Qx,U:Jx,V:Zx,w:qx,W:eA,x:null,X:null,y:tA,Y:rA,Z:oA,"%":eS},Mr={a:os,A:es,b:gs,B:Zs,c:null,d:JE,e:JE,f:lA,g:bA,G:EA,H:aA,I:sA,j:uA,L:ZE,m:cA,M:fA,p:As,q:_u,Q:tS,s:nS,S:dA,u:hA,U:pA,V:vA,w:gA,W:mA,x:null,X:null,y:yA,Y:wA,Z:SA,"%":eS},Oi={a:To,A:Lo,b:Ta,B:da,c:Zr,d:KE,e:KE,f:jx,g:HE,G:VE,H:GE,I:GE,j:kx,L:Bx,m:Lx,M:Nx,p:ua,q:Ix,Q:Ux,s:Wx,S:Fx,u:Px,U:Tx,V:Rx,w:Ax,W:Mx,x:Hi,X:no,y:HE,Y:VE,Z:Dx,"%":$x};Br.x=Yi(C,Br),Br.X=Yi(k,Br),Br.c=Yi(E,Br),Mr.x=Yi(C,Mr),Mr.X=Yi(k,Mr),Mr.c=Yi(E,Mr);function Yi(Cs,Js){return function(au){var cs=[],Fu=-1,Sl=0,mc=Cs.length,Nl,Su,cc;for(au instanceof Date||(au=new Date(+au));++Fu<mc;)Cs.charCodeAt(Fu)===37&&(cs.push(Cs.slice(Sl,Fu)),(Su=zE[Nl=Cs.charAt(++Fu)])!=null?Nl=Cs.charAt(++Fu):Su=Nl==="e"?" ":"0",(cc=Js[Nl])&&(Nl=cc(au,Su)),cs.push(Nl),Sl=Fu+1);return cs.push(Cs.slice(Sl,Fu)),cs.join("")}}function uo(Cs,Js){return function(au){var cs=Z0(1900,void 0,1),Fu=Io(cs,Cs,au+="",0),Sl,mc;if(Fu!=au.length)return null;if("Q"in cs)return new Date(cs.Q);if("s"in cs)return new Date(cs.s*1e3+("L"in cs?cs.L:0));if(Js&&!("Z"in cs)&&(cs.Z=0),"p"in cs&&(cs.H=cs.H%12+cs.p*12),cs.m===void 0&&(cs.m="q"in cs?cs.q:0),"V"in cs){if(cs.V<1||cs.V>53)return null;"w"in cs||(cs.w=1),"Z"in cs?(Sl=y1(Z0(cs.y,0,1)),mc=Sl.getUTCDay(),Sl=mc>4||mc===0?J0.ceil(Sl):J0(Sl),Sl=X0.offset(Sl,(cs.V-1)*7),cs.y=Sl.getUTCFullYear(),cs.m=Sl.getUTCMonth(),cs.d=Sl.getUTCDate()+(cs.w+6)%7):(Sl=m1(Z0(cs.y,0,1)),mc=Sl.getDay(),Sl=mc>4||mc===0?Q0.ceil(Sl):Q0(Sl),Sl=Om.offset(Sl,(cs.V-1)*7),cs.y=Sl.getFullYear(),cs.m=Sl.getMonth(),cs.d=Sl.getDate()+(cs.w+6)%7)}else("W"in cs||"U"in cs)&&("w"in cs||(cs.w="u"in cs?cs.u%7:"W"in cs?1:0),mc="Z"in cs?y1(Z0(cs.y,0,1)).getUTCDay():m1(Z0(cs.y,0,1)).getDay(),cs.m=0,cs.d="W"in cs?(cs.w+6)%7+cs.W*7-(mc+5)%7:cs.w+cs.U*7-(mc+6)%7);return"Z"in cs?(cs.H+=cs.Z/100|0,cs.M+=cs.Z%100,y1(cs)):m1(cs)}}function Io(Cs,Js,au,cs){for(var Fu=0,Sl=Js.length,mc=au.length,Nl,Su;Fu<Sl;){if(cs>=mc)return-1;if(Nl=Js.charCodeAt(Fu++),Nl===37){if(Nl=Js.charAt(Fu++),Su=Oi[Nl in zE?Js.charAt(Fu++):Nl],!Su||(cs=Su(Cs,au,cs))<0)return-1}else if(Nl!=au.charCodeAt(cs++))return-1}return cs}function ua(Cs,Js,au){var cs=ot.exec(Js.slice(au));return cs?(Cs.p=It.get(cs[0].toLowerCase()),au+cs[0].length):-1}function To(Cs,Js,au){var cs=vn.exec(Js.slice(au));return cs?(Cs.w=pr.get(cs[0].toLowerCase()),au+cs[0].length):-1}function Lo(Cs,Js,au){var cs=Jt.exec(Js.slice(au));return cs?(Cs.w=Nt.get(cs[0].toLowerCase()),au+cs[0].length):-1}function Ta(Cs,Js,au){var cs=lr.exec(Js.slice(au));return cs?(Cs.m=Hr.get(cs[0].toLowerCase()),au+cs[0].length):-1}function da(Cs,Js,au){var cs=$n.exec(Js.slice(au));return cs?(Cs.m=Un.get(cs[0].toLowerCase()),au+cs[0].length):-1}function Zr(Cs,Js,au){return Io(Cs,E,Js,au)}function Hi(Cs,Js,au){return Io(Cs,C,Js,au)}function no(Cs,Js,au){return Io(Cs,k,Js,au)}function jo(Cs){return Be[Cs.getDay()]}function oo(Cs){return we[Cs.getDay()]}function zo(Cs){return Et[Cs.getMonth()]}function Oo(Cs){return Je[Cs.getMonth()]}function ma(Cs){return q[+(Cs.getHours()>=12)]}function ka(Cs){return 1+~~(Cs.getMonth()/3)}function os(Cs){return Be[Cs.getUTCDay()]}function es(Cs){return we[Cs.getUTCDay()]}function gs(Cs){return Et[Cs.getUTCMonth()]}function Zs(Cs){return Je[Cs.getUTCMonth()]}function As(Cs){return q[+(Cs.getUTCHours()>=12)]}function _u(Cs){return 1+~~(Cs.getUTCMonth()/3)}return{format:function(Cs){var Js=Yi(Cs+="",Br);return Js.toString=function(){return Cs},Js},parse:function(Cs){var Js=uo(Cs+="",!1);return Js.toString=function(){return Cs},Js},utcFormat:function(Cs){var Js=Yi(Cs+="",Mr);return Js.toString=function(){return Cs},Js},utcParse:function(Cs){var Js=uo(Cs+="",!0);return Js.toString=function(){return Cs},Js}}}var zE={"-":"",_:" ",0:"0"},Ch=/^\s*\d+/,Ox=/^%/,Cx=/[\\^$*+?|[\]().{}]/g;function If(c,E,C){var k=c<0?"-":"",q=(k?-c:c)+"",we=q.length;return k+(we<C?new Array(C-we+1).join(E)+q:q)}function xx(c){return c.replace(Cx,"\\$&")}function q0(c){return new RegExp("^(?:"+c.map(xx).join("|")+")","i")}function ey(c){return new Map(c.map((E,C)=>[E.toLowerCase(),C]))}function Ax(c,E,C){var k=Ch.exec(E.slice(C,C+1));return k?(c.w=+k[0],C+k[0].length):-1}function Px(c,E,C){var k=Ch.exec(E.slice(C,C+1));return k?(c.u=+k[0],C+k[0].length):-1}function Tx(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.U=+k[0],C+k[0].length):-1}function Rx(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.V=+k[0],C+k[0].length):-1}function Mx(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.W=+k[0],C+k[0].length):-1}function VE(c,E,C){var k=Ch.exec(E.slice(C,C+4));return k?(c.y=+k[0],C+k[0].length):-1}function HE(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.y=+k[0]+(+k[0]>68?1900:2e3),C+k[0].length):-1}function Dx(c,E,C){var k=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(E.slice(C,C+6));return k?(c.Z=k[1]?0:-(k[2]+(k[3]||"00")),C+k[0].length):-1}function Ix(c,E,C){var k=Ch.exec(E.slice(C,C+1));return k?(c.q=k[0]*3-3,C+k[0].length):-1}function Lx(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.m=k[0]-1,C+k[0].length):-1}function KE(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.d=+k[0],C+k[0].length):-1}function kx(c,E,C){var k=Ch.exec(E.slice(C,C+3));return k?(c.m=0,c.d=+k[0],C+k[0].length):-1}function GE(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.H=+k[0],C+k[0].length):-1}function Nx(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.M=+k[0],C+k[0].length):-1}function Fx(c,E,C){var k=Ch.exec(E.slice(C,C+2));return k?(c.S=+k[0],C+k[0].length):-1}function Bx(c,E,C){var k=Ch.exec(E.slice(C,C+3));return k?(c.L=+k[0],C+k[0].length):-1}function jx(c,E,C){var k=Ch.exec(E.slice(C,C+6));return k?(c.L=Math.floor(k[0]/1e3),C+k[0].length):-1}function $x(c,E,C){var k=Ox.exec(E.slice(C,C+1));return k?C+k[0].length:-1}function Ux(c,E,C){var k=Ch.exec(E.slice(C));return k?(c.Q=+k[0],C+k[0].length):-1}function Wx(c,E,C){var k=Ch.exec(E.slice(C));return k?(c.s=+k[0],C+k[0].length):-1}function YE(c,E){return If(c.getDate(),E,2)}function zx(c,E){return If(c.getHours(),E,2)}function Vx(c,E){return If(c.getHours()%12||12,E,2)}function Hx(c,E){return If(1+Om.count(Jp(c),c),E,3)}function XE(c,E){return If(c.getMilliseconds(),E,3)}function Kx(c,E){return XE(c,E)+"000"}function Gx(c,E){return If(c.getMonth()+1,E,2)}function Yx(c,E){return If(c.getMinutes(),E,2)}function Xx(c,E){return If(c.getSeconds(),E,2)}function Qx(c){var E=c.getDay();return E===0?7:E}function Jx(c,E){return If(Cm.count(Jp(c)-1,c),E,2)}function QE(c){var E=c.getDay();return E>=4||E===0?Tg(c):Tg.ceil(c)}function Zx(c,E){return c=QE(c),If(Tg.count(Jp(c),c)+(Jp(c).getDay()===4),E,2)}function qx(c){return c.getDay()}function eA(c,E){return If(Q0.count(Jp(c)-1,c),E,2)}function tA(c,E){return If(c.getFullYear()%100,E,2)}function nA(c,E){return c=QE(c),If(c.getFullYear()%100,E,2)}function rA(c,E){return If(c.getFullYear()%1e4,E,4)}function iA(c,E){var C=c.getDay();return c=C>=4||C===0?Tg(c):Tg.ceil(c),If(c.getFullYear()%1e4,E,4)}function oA(c){var E=c.getTimezoneOffset();return(E>0?"-":(E*=-1,"+"))+If(E/60|0,"0",2)+If(E%60,"0",2)}function JE(c,E){return If(c.getUTCDate(),E,2)}function aA(c,E){return If(c.getUTCHours(),E,2)}function sA(c,E){return If(c.getUTCHours()%12||12,E,2)}function uA(c,E){return If(1+X0.count(Zp(c),c),E,3)}function ZE(c,E){return If(c.getUTCMilliseconds(),E,3)}function lA(c,E){return ZE(c,E)+"000"}function cA(c,E){return If(c.getUTCMonth()+1,E,2)}function fA(c,E){return If(c.getUTCMinutes(),E,2)}function dA(c,E){return If(c.getUTCSeconds(),E,2)}function hA(c){var E=c.getUTCDay();return E===0?7:E}function pA(c,E){return If(xm.count(Zp(c)-1,c),E,2)}function qE(c){var E=c.getUTCDay();return E>=4||E===0?Mg(c):Mg.ceil(c)}function vA(c,E){return c=qE(c),If(Mg.count(Zp(c),c)+(Zp(c).getUTCDay()===4),E,2)}function gA(c){return c.getUTCDay()}function mA(c,E){return If(J0.count(Zp(c)-1,c),E,2)}function yA(c,E){return If(c.getUTCFullYear()%100,E,2)}function bA(c,E){return c=qE(c),If(c.getUTCFullYear()%100,E,2)}function wA(c,E){return If(c.getUTCFullYear()%1e4,E,4)}function EA(c,E){var C=c.getUTCDay();return c=C>=4||C===0?Mg(c):Mg.ceil(c),If(c.getUTCFullYear()%1e4,E,4)}function SA(){return"+0000"}function eS(){return"%"}function tS(c){return+c}function nS(c){return Math.floor(+c/1e3)}var Am,b1,rS,Jy,w1;iS({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function iS(c){return Am=WE(c),b1=Am.format,rS=Am.parse,Jy=Am.utcFormat,w1=Am.utcParse,Am}function _A(c){return new Date(c)}function OA(c){return c instanceof Date?+c:+new Date(+c)}function E1(c,E,C,k,q,we,Be,Je,Et,ot){var It=s1(),Jt=It.invert,Nt=It.domain,vn=ot(".%L"),pr=ot(":%S"),$n=ot("%I:%M"),Un=ot("%I %p"),lr=ot("%a %d"),Hr=ot("%b %d"),Br=ot("%B"),Mr=ot("%Y");function Oi(Yi){return(Et(Yi)<Yi?vn:Je(Yi)<Yi?pr:Be(Yi)<Yi?$n:we(Yi)<Yi?Un:k(Yi)<Yi?q(Yi)<Yi?lr:Hr:C(Yi)<Yi?Br:Mr)(Yi)}return It.invert=function(Yi){return new Date(Jt(Yi))},It.domain=function(Yi){return arguments.length?Nt(Array.from(Yi,OA)):Nt().map(_A)},It.ticks=function(Yi){var uo=Nt();return c(uo[0],uo[uo.length-1],Yi??10)},It.tickFormat=function(Yi,uo){return uo==null?Oi:ot(uo)},It.nice=function(Yi){var uo=Nt();return(!Yi||typeof Yi.range!="function")&&(Yi=E(uo[0],uo[uo.length-1],Yi??10)),Yi?Nt(cE(uo,Yi)):It},It.copy=function(){return Y0(It,E1(c,E,C,k,q,we,Be,Je,Et,ot))},It}function CA(){return hp.apply(E1($E,UE,Jp,Xy,Cm,Om,Gy,Hy,gv,b1).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xA(){return hp.apply(E1(BE,jE,Zp,Qy,xm,X0,Yy,Ky,gv,Jy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zy(){var c=0,E=1,C,k,q,we,Be=Yh,Je=!1,Et;function ot(Jt){return Jt==null||isNaN(Jt=+Jt)?Et:Be(q===0?.5:(Jt=(we(Jt)-C)*q,Je?Math.max(0,Math.min(1,Jt)):Jt))}ot.domain=function(Jt){return arguments.length?([c,E]=Jt,C=we(c=+c),k=we(E=+E),q=C===k?0:1/(k-C),ot):[c,E]},ot.clamp=function(Jt){return arguments.length?(Je=!!Jt,ot):Je},ot.interpolator=function(Jt){return arguments.length?(Be=Jt,ot):Be};function It(Jt){return function(Nt){var vn,pr;return arguments.length?([vn,pr]=Nt,Be=Jt(vn,pr),ot):[Be(0),Be(1)]}}return ot.range=It(Kn),ot.rangeRound=It(Wy),ot.unknown=function(Jt){return arguments.length?(Et=Jt,ot):Et},function(Jt){return we=Jt,C=Jt(c),k=Jt(E),q=C===k?0:1/(k-C),ot}}function Vv(c,E){return E.domain(c.domain()).interpolator(c.interpolator()).clamp(c.clamp()).unknown(c.unknown())}function oS(){var c=zv(Zy()(Yh));return c.copy=function(){return Vv(c,oS())},dv.apply(c,arguments)}function aS(){var c=u1(Zy()).domain([1,10]);return c.copy=function(){return Vv(c,aS()).base(c.base())},dv.apply(c,arguments)}function sS(){var c=l1(Zy());return c.copy=function(){return Vv(c,sS()).constant(c.constant())},dv.apply(c,arguments)}function S1(){var c=c1(Zy());return c.copy=function(){return Vv(c,S1()).exponent(c.exponent())},dv.apply(c,arguments)}function AA(){return S1.apply(null,arguments).exponent(.5)}function uS(){var c=[],E=Yh;function C(k){if(k!=null&&!isNaN(k=+k))return E((b(c,k,1)-1)/(c.length-1))}return C.domain=function(k){if(!arguments.length)return c.slice();c=[];for(let q of k)q!=null&&!isNaN(q=+q)&&c.push(q);return c.sort(i),C},C.interpolator=function(k){return arguments.length?(E=k,C):E},C.range=function(){return c.map((k,q)=>E(q/(c.length-1)))},C.quantiles=function(k){return Array.from({length:k+1},(q,we)=>Me(c,we/k))},C.copy=function(){return uS(E).domain(c)},dv.apply(C,arguments)}function qy(){var c=0,E=.5,C=1,k=1,q,we,Be,Je,Et,ot=Yh,It,Jt=!1,Nt;function vn($n){return isNaN($n=+$n)?Nt:($n=.5+(($n=+It($n))-we)*(k*$n<k*we?Je:Et),ot(Jt?Math.max(0,Math.min(1,$n)):$n))}vn.domain=function($n){return arguments.length?([c,E,C]=$n,q=It(c=+c),we=It(E=+E),Be=It(C=+C),Je=q===we?0:.5/(we-q),Et=we===Be?0:.5/(Be-we),k=we<q?-1:1,vn):[c,E,C]},vn.clamp=function($n){return arguments.length?(Jt=!!$n,vn):Jt},vn.interpolator=function($n){return arguments.length?(ot=$n,vn):ot};function pr($n){return function(Un){var lr,Hr,Br;return arguments.length?([lr,Hr,Br]=Un,ot=qw($n,[lr,Hr,Br]),vn):[ot(0),ot(.5),ot(1)]}}return vn.range=pr(Kn),vn.rangeRound=pr(Wy),vn.unknown=function($n){return arguments.length?(Nt=$n,vn):Nt},function($n){return It=$n,q=$n(c),we=$n(E),Be=$n(C),Je=q===we?0:.5/(we-q),Et=we===Be?0:.5/(Be-we),k=we<q?-1:1,vn}}function lS(){var c=zv(qy()(Yh));return c.copy=function(){return Vv(c,lS())},dv.apply(c,arguments)}function cS(){var c=u1(qy()).domain([.1,1,10]);return c.copy=function(){return Vv(c,cS()).base(c.base())},dv.apply(c,arguments)}function fS(){var c=l1(qy());return c.copy=function(){return Vv(c,fS()).constant(c.constant())},dv.apply(c,arguments)}function _1(){var c=c1(qy());return c.copy=function(){return Vv(c,_1()).exponent(c.exponent())},dv.apply(c,arguments)}function PA(){return _1.apply(null,arguments).exponent(.5)}var nl=t(77389);function TA(c){return ss(Pn(c).call(document.documentElement))}var RA=0;function dS(){return new O1}function O1(){this._="@"+(++RA).toString(36)}O1.prototype=dS.prototype={constructor:O1,get:function(c){for(var E=this._;!(E in c);)if(!(c=c.parentNode))return;return c[E]},set:function(c,E){return c[this._]=E},remove:function(c){return this._ in c&&delete c[this._]},toString:function(){return this._}};function MA(c,E){return c.target&&(c=Fr(c),E===void 0&&(E=c.currentTarget),c=c.touches||[c]),Array.from(c,C=>ci(C,E))}function DA(c){return typeof c=="string"?new Xi([document.querySelectorAll(c)],[document.documentElement]):new Xi([$i(c)],Bi)}function Fc(c){return function(){return c}}const hS=Math.abs,Wh=Math.atan2,mv=Math.cos,IA=Math.max,Pm=Math.min,tp=Math.sin,Rd=Math.sqrt,zh=1e-12,Hv=Math.PI,eb=Hv/2,Kv=2*Hv;function LA(c){return c>1?0:c<-1?Hv:Math.acos(c)}function pS(c){return c>=1?eb:c<=-1?-eb:Math.asin(c)}function ty(c){let E=3;return c.digits=function(C){if(!arguments.length)return E;if(C==null)E=null;else{const k=Math.floor(C);if(!(k>=0))throw new RangeError(`invalid digits: ${C}`);E=k}return c},()=>new Ld(E)}function kA(c){return c.innerRadius}function NA(c){return c.outerRadius}function FA(c){return c.startAngle}function BA(c){return c.endAngle}function jA(c){return c&&c.padAngle}function $A(c,E,C,k,q,we,Be,Je){var Et=C-c,ot=k-E,It=Be-q,Jt=Je-we,Nt=Jt*Et-It*ot;if(!(Nt*Nt<zh))return Nt=(It*(E-we)-Jt*(c-q))/Nt,[c+Nt*Et,E+Nt*ot]}function tb(c,E,C,k,q,we,Be){var Je=c-C,Et=E-k,ot=(Be?we:-we)/Rd(Je*Je+Et*Et),It=ot*Et,Jt=-ot*Je,Nt=c+It,vn=E+Jt,pr=C+It,$n=k+Jt,Un=(Nt+pr)/2,lr=(vn+$n)/2,Hr=pr-Nt,Br=$n-vn,Mr=Hr*Hr+Br*Br,Oi=q-we,Yi=Nt*$n-pr*vn,uo=(Br<0?-1:1)*Rd(IA(0,Oi*Oi*Mr-Yi*Yi)),Io=(Yi*Br-Hr*uo)/Mr,ua=(-Yi*Hr-Br*uo)/Mr,To=(Yi*Br+Hr*uo)/Mr,Lo=(-Yi*Hr+Br*uo)/Mr,Ta=Io-Un,da=ua-lr,Zr=To-Un,Hi=Lo-lr;return Ta*Ta+da*da>Zr*Zr+Hi*Hi&&(Io=To,ua=Lo),{cx:Io,cy:ua,x01:-It,y01:-Jt,x11:Io*(q/Oi-1),y11:ua*(q/Oi-1)}}function UA(){var c=kA,E=NA,C=Fc(0),k=null,q=FA,we=BA,Be=jA,Je=null,Et=ty(ot);function ot(){var It,Jt,Nt=+c.apply(this,arguments),vn=+E.apply(this,arguments),pr=q.apply(this,arguments)-eb,$n=we.apply(this,arguments)-eb,Un=hS($n-pr),lr=$n>pr;if(Je||(Je=It=Et()),vn<Nt&&(Jt=vn,vn=Nt,Nt=Jt),!(vn>zh))Je.moveTo(0,0);else if(Un>Kv-zh)Je.moveTo(vn*mv(pr),vn*tp(pr)),Je.arc(0,0,vn,pr,$n,!lr),Nt>zh&&(Je.moveTo(Nt*mv($n),Nt*tp($n)),Je.arc(0,0,Nt,$n,pr,lr));else{var Hr=pr,Br=$n,Mr=pr,Oi=$n,Yi=Un,uo=Un,Io=Be.apply(this,arguments)/2,ua=Io>zh&&(k?+k.apply(this,arguments):Rd(Nt*Nt+vn*vn)),To=Pm(hS(vn-Nt)/2,+C.apply(this,arguments)),Lo=To,Ta=To,da,Zr;if(ua>zh){var Hi=pS(ua/Nt*tp(Io)),no=pS(ua/vn*tp(Io));(Yi-=Hi*2)>zh?(Hi*=lr?1:-1,Mr+=Hi,Oi-=Hi):(Yi=0,Mr=Oi=(pr+$n)/2),(uo-=no*2)>zh?(no*=lr?1:-1,Hr+=no,Br-=no):(uo=0,Hr=Br=(pr+$n)/2)}var jo=vn*mv(Hr),oo=vn*tp(Hr),zo=Nt*mv(Oi),Oo=Nt*tp(Oi);if(To>zh){var ma=vn*mv(Br),ka=vn*tp(Br),os=Nt*mv(Mr),es=Nt*tp(Mr),gs;if(Un<Hv)if(gs=$A(jo,oo,os,es,ma,ka,zo,Oo)){var Zs=jo-gs[0],As=oo-gs[1],_u=ma-gs[0],Cs=ka-gs[1],Js=1/tp(LA((Zs*_u+As*Cs)/(Rd(Zs*Zs+As*As)*Rd(_u*_u+Cs*Cs)))/2),au=Rd(gs[0]*gs[0]+gs[1]*gs[1]);Lo=Pm(To,(Nt-au)/(Js-1)),Ta=Pm(To,(vn-au)/(Js+1))}else Lo=Ta=0}uo>zh?Ta>zh?(da=tb(os,es,jo,oo,vn,Ta,lr),Zr=tb(ma,ka,zo,Oo,vn,Ta,lr),Je.moveTo(da.cx+da.x01,da.cy+da.y01),Ta<To?Je.arc(da.cx,da.cy,Ta,Wh(da.y01,da.x01),Wh(Zr.y01,Zr.x01),!lr):(Je.arc(da.cx,da.cy,Ta,Wh(da.y01,da.x01),Wh(da.y11,da.x11),!lr),Je.arc(0,0,vn,Wh(da.cy+da.y11,da.cx+da.x11),Wh(Zr.cy+Zr.y11,Zr.cx+Zr.x11),!lr),Je.arc(Zr.cx,Zr.cy,Ta,Wh(Zr.y11,Zr.x11),Wh(Zr.y01,Zr.x01),!lr))):(Je.moveTo(jo,oo),Je.arc(0,0,vn,Hr,Br,!lr)):Je.moveTo(jo,oo),!(Nt>zh)||!(Yi>zh)?Je.lineTo(zo,Oo):Lo>zh?(da=tb(zo,Oo,ma,ka,Nt,-Lo,lr),Zr=tb(jo,oo,os,es,Nt,-Lo,lr),Je.lineTo(da.cx+da.x01,da.cy+da.y01),Lo<To?Je.arc(da.cx,da.cy,Lo,Wh(da.y01,da.x01),Wh(Zr.y01,Zr.x01),!lr):(Je.arc(da.cx,da.cy,Lo,Wh(da.y01,da.x01),Wh(da.y11,da.x11),!lr),Je.arc(0,0,Nt,Wh(da.cy+da.y11,da.cx+da.x11),Wh(Zr.cy+Zr.y11,Zr.cx+Zr.x11),lr),Je.arc(Zr.cx,Zr.cy,Lo,Wh(Zr.y11,Zr.x11),Wh(Zr.y01,Zr.x01),!lr))):Je.arc(0,0,Nt,Oi,Mr,lr)}if(Je.closePath(),It)return Je=null,It+""||null}return ot.centroid=function(){var It=(+c.apply(this,arguments)+ +E.apply(this,arguments))/2,Jt=(+q.apply(this,arguments)+ +we.apply(this,arguments))/2-Hv/2;return[mv(Jt)*It,tp(Jt)*It]},ot.innerRadius=function(It){return arguments.length?(c=typeof It=="function"?It:Fc(+It),ot):c},ot.outerRadius=function(It){return arguments.length?(E=typeof It=="function"?It:Fc(+It),ot):E},ot.cornerRadius=function(It){return arguments.length?(C=typeof It=="function"?It:Fc(+It),ot):C},ot.padRadius=function(It){return arguments.length?(k=It==null?null:typeof It=="function"?It:Fc(+It),ot):k},ot.startAngle=function(It){return arguments.length?(q=typeof It=="function"?It:Fc(+It),ot):q},ot.endAngle=function(It){return arguments.length?(we=typeof It=="function"?It:Fc(+It),ot):we},ot.padAngle=function(It){return arguments.length?(Be=typeof It=="function"?It:Fc(+It),ot):Be},ot.context=function(It){return arguments.length?(Je=It??null,ot):Je},ot}var WA=Array.prototype.slice;function nb(c){return typeof c=="object"&&"length"in c?c:Array.from(c)}function vS(c){this._context=c}vS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1,this._line?this._context.lineTo(c,E):this._context.moveTo(c,E);break;case 1:this._point=2;default:this._context.lineTo(c,E);break}}};function rb(c){return new vS(c)}function C1(c){return c[0]}function x1(c){return c[1]}function A1(c,E){var C=Fc(!0),k=null,q=rb,we=null,Be=ty(Je);c=typeof c=="function"?c:c===void 0?C1:Fc(c),E=typeof E=="function"?E:E===void 0?x1:Fc(E);function Je(Et){var ot,It=(Et=nb(Et)).length,Jt,Nt=!1,vn;for(k==null&&(we=q(vn=Be())),ot=0;ot<=It;++ot)!(ot<It&&C(Jt=Et[ot],ot,Et))===Nt&&((Nt=!Nt)?we.lineStart():we.lineEnd()),Nt&&we.point(+c(Jt,ot,Et),+E(Jt,ot,Et));if(vn)return we=null,vn+""||null}return Je.x=function(Et){return arguments.length?(c=typeof Et=="function"?Et:Fc(+Et),Je):c},Je.y=function(Et){return arguments.length?(E=typeof Et=="function"?Et:Fc(+Et),Je):E},Je.defined=function(Et){return arguments.length?(C=typeof Et=="function"?Et:Fc(!!Et),Je):C},Je.curve=function(Et){return arguments.length?(q=Et,k!=null&&(we=q(k)),Je):q},Je.context=function(Et){return arguments.length?(Et==null?k=we=null:we=q(k=Et),Je):k},Je}function gS(c,E,C){var k=null,q=Fc(!0),we=null,Be=rb,Je=null,Et=ty(ot);c=typeof c=="function"?c:c===void 0?C1:Fc(+c),E=typeof E=="function"?E:Fc(E===void 0?0:+E),C=typeof C=="function"?C:C===void 0?x1:Fc(+C);function ot(Jt){var Nt,vn,pr,$n=(Jt=nb(Jt)).length,Un,lr=!1,Hr,Br=new Array($n),Mr=new Array($n);for(we==null&&(Je=Be(Hr=Et())),Nt=0;Nt<=$n;++Nt){if(!(Nt<$n&&q(Un=Jt[Nt],Nt,Jt))===lr)if(lr=!lr)vn=Nt,Je.areaStart(),Je.lineStart();else{for(Je.lineEnd(),Je.lineStart(),pr=Nt-1;pr>=vn;--pr)Je.point(Br[pr],Mr[pr]);Je.lineEnd(),Je.areaEnd()}lr&&(Br[Nt]=+c(Un,Nt,Jt),Mr[Nt]=+E(Un,Nt,Jt),Je.point(k?+k(Un,Nt,Jt):Br[Nt],C?+C(Un,Nt,Jt):Mr[Nt]))}if(Hr)return Je=null,Hr+""||null}function It(){return A1().defined(q).curve(Be).context(we)}return ot.x=function(Jt){return arguments.length?(c=typeof Jt=="function"?Jt:Fc(+Jt),k=null,ot):c},ot.x0=function(Jt){return arguments.length?(c=typeof Jt=="function"?Jt:Fc(+Jt),ot):c},ot.x1=function(Jt){return arguments.length?(k=Jt==null?null:typeof Jt=="function"?Jt:Fc(+Jt),ot):k},ot.y=function(Jt){return arguments.length?(E=typeof Jt=="function"?Jt:Fc(+Jt),C=null,ot):E},ot.y0=function(Jt){return arguments.length?(E=typeof Jt=="function"?Jt:Fc(+Jt),ot):E},ot.y1=function(Jt){return arguments.length?(C=Jt==null?null:typeof Jt=="function"?Jt:Fc(+Jt),ot):C},ot.lineX0=ot.lineY0=function(){return It().x(c).y(E)},ot.lineY1=function(){return It().x(c).y(C)},ot.lineX1=function(){return It().x(k).y(E)},ot.defined=function(Jt){return arguments.length?(q=typeof Jt=="function"?Jt:Fc(!!Jt),ot):q},ot.curve=function(Jt){return arguments.length?(Be=Jt,we!=null&&(Je=Be(we)),ot):Be},ot.context=function(Jt){return arguments.length?(Jt==null?we=Je=null:Je=Be(we=Jt),ot):we},ot}function zA(c,E){return E<c?-1:E>c?1:E>=c?0:NaN}function VA(c){return c}function HA(){var c=VA,E=zA,C=null,k=Fc(0),q=Fc(Kv),we=Fc(0);function Be(Je){var Et,ot=(Je=nb(Je)).length,It,Jt,Nt=0,vn=new Array(ot),pr=new Array(ot),$n=+k.apply(this,arguments),Un=Math.min(Kv,Math.max(-Kv,q.apply(this,arguments)-$n)),lr,Hr=Math.min(Math.abs(Un)/ot,we.apply(this,arguments)),Br=Hr*(Un<0?-1:1),Mr;for(Et=0;Et<ot;++Et)(Mr=pr[vn[Et]=Et]=+c(Je[Et],Et,Je))>0&&(Nt+=Mr);for(E!=null?vn.sort(function(Oi,Yi){return E(pr[Oi],pr[Yi])}):C!=null&&vn.sort(function(Oi,Yi){return C(Je[Oi],Je[Yi])}),Et=0,Jt=Nt?(Un-ot*Br)/Nt:0;Et<ot;++Et,$n=lr)It=vn[Et],Mr=pr[It],lr=$n+(Mr>0?Mr*Jt:0)+Br,pr[It]={data:Je[It],index:Et,value:Mr,startAngle:$n,endAngle:lr,padAngle:Hr};return pr}return Be.value=function(Je){return arguments.length?(c=typeof Je=="function"?Je:Fc(+Je),Be):c},Be.sortValues=function(Je){return arguments.length?(E=Je,C=null,Be):E},Be.sort=function(Je){return arguments.length?(C=Je,E=null,Be):C},Be.startAngle=function(Je){return arguments.length?(k=typeof Je=="function"?Je:Fc(+Je),Be):k},Be.endAngle=function(Je){return arguments.length?(q=typeof Je=="function"?Je:Fc(+Je),Be):q},Be.padAngle=function(Je){return arguments.length?(we=typeof Je=="function"?Je:Fc(+Je),Be):we},Be}var mS=P1(rb);function yS(c){this._curve=c}yS.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(c,E){this._curve.point(E*Math.sin(c),E*-Math.cos(c))}};function P1(c){function E(C){return new yS(c(C))}return E._curve=c,E}function ny(c){var E=c.curve;return c.angle=c.x,delete c.x,c.radius=c.y,delete c.y,c.curve=function(C){return arguments.length?E(P1(C)):E()._curve},c}function bS(){return ny(A1().curve(mS))}function wS(){var c=gS().curve(mS),E=c.curve,C=c.lineX0,k=c.lineX1,q=c.lineY0,we=c.lineY1;return c.angle=c.x,delete c.x,c.startAngle=c.x0,delete c.x0,c.endAngle=c.x1,delete c.x1,c.radius=c.y,delete c.y,c.innerRadius=c.y0,delete c.y0,c.outerRadius=c.y1,delete c.y1,c.lineStartAngle=function(){return ny(C())},delete c.lineX0,c.lineEndAngle=function(){return ny(k())},delete c.lineX1,c.lineInnerRadius=function(){return ny(q())},delete c.lineY0,c.lineOuterRadius=function(){return ny(we())},delete c.lineY1,c.curve=function(Be){return arguments.length?E(P1(Be)):E()._curve},c}function ry(c,E){return[(E=+E)*Math.cos(c-=Math.PI/2),E*Math.sin(c)]}class ES{constructor(E,C){this._context=E,this._x=C}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(E,C){switch(E=+E,C=+C,this._point){case 0:{this._point=1,this._line?this._context.lineTo(E,C):this._context.moveTo(E,C);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+E)/2,this._y0,this._x0,C,E,C):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+C)/2,E,this._y0,E,C);break}}this._x0=E,this._y0=C}}class KA{constructor(E){this._context=E}lineStart(){this._point=0}lineEnd(){}point(E,C){if(E=+E,C=+C,this._point===0)this._point=1;else{const k=ry(this._x0,this._y0),q=ry(this._x0,this._y0=(this._y0+C)/2),we=ry(E,this._y0),Be=ry(E,C);this._context.moveTo(...k),this._context.bezierCurveTo(...q,...we,...Be)}this._x0=E,this._y0=C}}function SS(c){return new ES(c,!0)}function _S(c){return new ES(c,!1)}function GA(c){return new KA(c)}function YA(c){return c.source}function XA(c){return c.target}function ib(c){let E=YA,C=XA,k=C1,q=x1,we=null,Be=null,Je=ty(Et);function Et(){let ot;const It=WA.call(arguments),Jt=E.apply(this,It),Nt=C.apply(this,It);if(we==null&&(Be=c(ot=Je())),Be.lineStart(),It[0]=Jt,Be.point(+k.apply(this,It),+q.apply(this,It)),It[0]=Nt,Be.point(+k.apply(this,It),+q.apply(this,It)),Be.lineEnd(),ot)return Be=null,ot+""||null}return Et.source=function(ot){return arguments.length?(E=ot,Et):E},Et.target=function(ot){return arguments.length?(C=ot,Et):C},Et.x=function(ot){return arguments.length?(k=typeof ot=="function"?ot:Fc(+ot),Et):k},Et.y=function(ot){return arguments.length?(q=typeof ot=="function"?ot:Fc(+ot),Et):q},Et.context=function(ot){return arguments.length?(ot==null?we=Be=null:Be=c(we=ot),Et):we},Et}function QA(){return ib(SS)}function JA(){return ib(_S)}function ZA(){const c=ib(GA);return c.angle=c.x,delete c.x,c.radius=c.y,delete c.y,c}const qA=Rd(3),OS={draw(c,E){const C=Rd(E+Pm(E/28,.75))*.59436,k=C/2,q=k*qA;c.moveTo(0,C),c.lineTo(0,-C),c.moveTo(-q,-k),c.lineTo(q,k),c.moveTo(-q,k),c.lineTo(q,-k)}},ob={draw(c,E){const C=Rd(E/Hv);c.moveTo(C,0),c.arc(0,0,C,0,Kv)}},CS={draw(c,E){const C=Rd(E/5)/2;c.moveTo(-3*C,-C),c.lineTo(-C,-C),c.lineTo(-C,-3*C),c.lineTo(C,-3*C),c.lineTo(C,-C),c.lineTo(3*C,-C),c.lineTo(3*C,C),c.lineTo(C,C),c.lineTo(C,3*C),c.lineTo(-C,3*C),c.lineTo(-C,C),c.lineTo(-3*C,C),c.closePath()}},xS=Rd(1/3),eP=xS*2,AS={draw(c,E){const C=Rd(E/eP),k=C*xS;c.moveTo(0,-C),c.lineTo(k,0),c.lineTo(0,C),c.lineTo(-k,0),c.closePath()}},PS={draw(c,E){const C=Rd(E)*.62625;c.moveTo(0,-C),c.lineTo(C,0),c.lineTo(0,C),c.lineTo(-C,0),c.closePath()}},TS={draw(c,E){const C=Rd(E-Pm(E/7,2))*.87559;c.moveTo(-C,0),c.lineTo(C,0),c.moveTo(0,C),c.lineTo(0,-C)}},RS={draw(c,E){const C=Rd(E),k=-C/2;c.rect(k,k,C,C)}},DS={draw(c,E){const C=Rd(E)*.4431;c.moveTo(C,C),c.lineTo(C,-C),c.lineTo(-C,-C),c.lineTo(-C,C),c.closePath()}},tP=.8908130915292852,IS=tp(Hv/10)/tp(7*Hv/10),nP=tp(Kv/10)*IS,rP=-mv(Kv/10)*IS,LS={draw(c,E){const C=Rd(E*tP),k=nP*C,q=rP*C;c.moveTo(0,-C),c.lineTo(k,q);for(let we=1;we<5;++we){const Be=Kv*we/5,Je=mv(Be),Et=tp(Be);c.lineTo(Et*C,-Je*C),c.lineTo(Je*k-Et*q,Et*k+Je*q)}c.closePath()}},T1=Rd(3),kS={draw(c,E){const C=-Rd(E/(T1*3));c.moveTo(0,C*2),c.lineTo(-T1*C,-C),c.lineTo(T1*C,-C),c.closePath()}},iP=Rd(3),NS={draw(c,E){const C=Rd(E)*.6824,k=C/2,q=C*iP/2;c.moveTo(0,-C),c.lineTo(q,k),c.lineTo(-q,k),c.closePath()}},vp=-.5,gp=Rd(3)/2,R1=1/Rd(12),oP=(R1/2+1)*3,FS={draw(c,E){const C=Rd(E/oP),k=C/2,q=C*R1,we=k,Be=C*R1+C,Je=-we,Et=Be;c.moveTo(k,q),c.lineTo(we,Be),c.lineTo(Je,Et),c.lineTo(vp*k-gp*q,gp*k+vp*q),c.lineTo(vp*we-gp*Be,gp*we+vp*Be),c.lineTo(vp*Je-gp*Et,gp*Je+vp*Et),c.lineTo(vp*k+gp*q,vp*q-gp*k),c.lineTo(vp*we+gp*Be,vp*Be-gp*we),c.lineTo(vp*Je+gp*Et,vp*Et-gp*Je),c.closePath()}},M1={draw(c,E){const C=Rd(E-Pm(E/6,1.7))*.6189;c.moveTo(-C,-C),c.lineTo(C,C),c.moveTo(-C,C),c.lineTo(C,-C)}},BS=[ob,CS,AS,RS,LS,kS,FS],aP=[ob,TS,M1,NS,OS,DS,PS];function sP(c,E){let C=null,k=ty(q);c=typeof c=="function"?c:Fc(c||ob),E=typeof E=="function"?E:Fc(E===void 0?64:+E);function q(){let we;if(C||(C=we=k()),c.apply(this,arguments).draw(C,+E.apply(this,arguments)),we)return C=null,we+""||null}return q.type=function(we){return arguments.length?(c=typeof we=="function"?we:Fc(we),q):c},q.size=function(we){return arguments.length?(E=typeof we=="function"?we:Fc(+we),q):E},q.context=function(we){return arguments.length?(C=we??null,q):C},q}function Gv(){}function ab(c,E,C){c._context.bezierCurveTo((2*c._x0+c._x1)/3,(2*c._y0+c._y1)/3,(c._x0+2*c._x1)/3,(c._y0+2*c._y1)/3,(c._x0+4*c._x1+E)/6,(c._y0+4*c._y1+C)/6)}function sb(c){this._context=c}sb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ab(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1,this._line?this._context.lineTo(c,E):this._context.moveTo(c,E);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ab(this,c,E);break}this._x0=this._x1,this._x1=c,this._y0=this._y1,this._y1=E}};function uP(c){return new sb(c)}function jS(c){this._context=c}jS.prototype={areaStart:Gv,areaEnd:Gv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1,this._x2=c,this._y2=E;break;case 1:this._point=2,this._x3=c,this._y3=E;break;case 2:this._point=3,this._x4=c,this._y4=E,this._context.moveTo((this._x0+4*this._x1+c)/6,(this._y0+4*this._y1+E)/6);break;default:ab(this,c,E);break}this._x0=this._x1,this._x1=c,this._y0=this._y1,this._y1=E}};function lP(c){return new jS(c)}function $S(c){this._context=c}$S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var C=(this._x0+4*this._x1+c)/6,k=(this._y0+4*this._y1+E)/6;this._line?this._context.lineTo(C,k):this._context.moveTo(C,k);break;case 3:this._point=4;default:ab(this,c,E);break}this._x0=this._x1,this._x1=c,this._y0=this._y1,this._y1=E}};function cP(c){return new $S(c)}function US(c,E){this._basis=new sb(c),this._beta=E}US.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var c=this._x,E=this._y,C=c.length-1;if(C>0)for(var k=c[0],q=E[0],we=c[C]-k,Be=E[C]-q,Je=-1,Et;++Je<=C;)Et=Je/C,this._basis.point(this._beta*c[Je]+(1-this._beta)*(k+Et*we),this._beta*E[Je]+(1-this._beta)*(q+Et*Be));this._x=this._y=null,this._basis.lineEnd()},point:function(c,E){this._x.push(+c),this._y.push(+E)}};const fP=function c(E){function C(k){return E===1?new sb(k):new US(k,E)}return C.beta=function(k){return c(+k)},C}(.85);function ub(c,E,C){c._context.bezierCurveTo(c._x1+c._k*(c._x2-c._x0),c._y1+c._k*(c._y2-c._y0),c._x2+c._k*(c._x1-E),c._y2+c._k*(c._y1-C),c._x2,c._y2)}function D1(c,E){this._context=c,this._k=(1-E)/6}D1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ub(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1,this._line?this._context.lineTo(c,E):this._context.moveTo(c,E);break;case 1:this._point=2,this._x1=c,this._y1=E;break;case 2:this._point=3;default:ub(this,c,E);break}this._x0=this._x1,this._x1=this._x2,this._x2=c,this._y0=this._y1,this._y1=this._y2,this._y2=E}};const dP=function c(E){function C(k){return new D1(k,E)}return C.tension=function(k){return c(+k)},C}(0);function I1(c,E){this._context=c,this._k=(1-E)/6}I1.prototype={areaStart:Gv,areaEnd:Gv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1,this._x3=c,this._y3=E;break;case 1:this._point=2,this._context.moveTo(this._x4=c,this._y4=E);break;case 2:this._point=3,this._x5=c,this._y5=E;break;default:ub(this,c,E);break}this._x0=this._x1,this._x1=this._x2,this._x2=c,this._y0=this._y1,this._y1=this._y2,this._y2=E}};const hP=function c(E){function C(k){return new I1(k,E)}return C.tension=function(k){return c(+k)},C}(0);function L1(c,E){this._context=c,this._k=(1-E)/6}L1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ub(this,c,E);break}this._x0=this._x1,this._x1=this._x2,this._x2=c,this._y0=this._y1,this._y1=this._y2,this._y2=E}};const pP=function c(E){function C(k){return new L1(k,E)}return C.tension=function(k){return c(+k)},C}(0);function k1(c,E,C){var k=c._x1,q=c._y1,we=c._x2,Be=c._y2;if(c._l01_a>zh){var Je=2*c._l01_2a+3*c._l01_a*c._l12_a+c._l12_2a,Et=3*c._l01_a*(c._l01_a+c._l12_a);k=(k*Je-c._x0*c._l12_2a+c._x2*c._l01_2a)/Et,q=(q*Je-c._y0*c._l12_2a+c._y2*c._l01_2a)/Et}if(c._l23_a>zh){var ot=2*c._l23_2a+3*c._l23_a*c._l12_a+c._l12_2a,It=3*c._l23_a*(c._l23_a+c._l12_a);we=(we*ot+c._x1*c._l23_2a-E*c._l12_2a)/It,Be=(Be*ot+c._y1*c._l23_2a-C*c._l12_2a)/It}c._context.bezierCurveTo(k,q,we,Be,c._x2,c._y2)}function WS(c,E){this._context=c,this._alpha=E}WS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){if(c=+c,E=+E,this._point){var C=this._x2-c,k=this._y2-E;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(C*C+k*k,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(c,E):this._context.moveTo(c,E);break;case 1:this._point=2;break;case 2:this._point=3;default:k1(this,c,E);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=c,this._y0=this._y1,this._y1=this._y2,this._y2=E}};const vP=function c(E){function C(k){return E?new WS(k,E):new D1(k,0)}return C.alpha=function(k){return c(+k)},C}(.5);function zS(c,E){this._context=c,this._alpha=E}zS.prototype={areaStart:Gv,areaEnd:Gv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(c,E){if(c=+c,E=+E,this._point){var C=this._x2-c,k=this._y2-E;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(C*C+k*k,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=c,this._y3=E;break;case 1:this._point=2,this._context.moveTo(this._x4=c,this._y4=E);break;case 2:this._point=3,this._x5=c,this._y5=E;break;default:k1(this,c,E);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=c,this._y0=this._y1,this._y1=this._y2,this._y2=E}};const gP=function c(E){function C(k){return E?new zS(k,E):new I1(k,0)}return C.alpha=function(k){return c(+k)},C}(.5);function VS(c,E){this._context=c,this._alpha=E}VS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){if(c=+c,E=+E,this._point){var C=this._x2-c,k=this._y2-E;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(C*C+k*k,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:k1(this,c,E);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=c,this._y0=this._y1,this._y1=this._y2,this._y2=E}};const mP=function c(E){function C(k){return E?new VS(k,E):new L1(k,0)}return C.alpha=function(k){return c(+k)},C}(.5);function HS(c){this._context=c}HS.prototype={areaStart:Gv,areaEnd:Gv,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(c,E){c=+c,E=+E,this._point?this._context.lineTo(c,E):(this._point=1,this._context.moveTo(c,E))}};function yP(c){return new HS(c)}function KS(c){return c<0?-1:1}function GS(c,E,C){var k=c._x1-c._x0,q=E-c._x1,we=(c._y1-c._y0)/(k||q<0&&-0),Be=(C-c._y1)/(q||k<0&&-0),Je=(we*q+Be*k)/(k+q);return(KS(we)+KS(Be))*Math.min(Math.abs(we),Math.abs(Be),.5*Math.abs(Je))||0}function YS(c,E){var C=c._x1-c._x0;return C?(3*(c._y1-c._y0)/C-E)/2:E}function N1(c,E,C){var k=c._x0,q=c._y0,we=c._x1,Be=c._y1,Je=(we-k)/3;c._context.bezierCurveTo(k+Je,q+Je*E,we-Je,Be-Je*C,we,Be)}function lb(c){this._context=c}lb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:N1(this,this._t0,YS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(c,E){var C=NaN;if(c=+c,E=+E,!(c===this._x1&&E===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(c,E):this._context.moveTo(c,E);break;case 1:this._point=2;break;case 2:this._point=3,N1(this,YS(this,C=GS(this,c,E)),C);break;default:N1(this,this._t0,C=GS(this,c,E));break}this._x0=this._x1,this._x1=c,this._y0=this._y1,this._y1=E,this._t0=C}}};function XS(c){this._context=new QS(c)}(XS.prototype=Object.create(lb.prototype)).point=function(c,E){lb.prototype.point.call(this,E,c)};function QS(c){this._context=c}QS.prototype={moveTo:function(c,E){this._context.moveTo(E,c)},closePath:function(){this._context.closePath()},lineTo:function(c,E){this._context.lineTo(E,c)},bezierCurveTo:function(c,E,C,k,q,we){this._context.bezierCurveTo(E,c,k,C,we,q)}};function bP(c){return new lb(c)}function wP(c){return new XS(c)}function JS(c){this._context=c}JS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var c=this._x,E=this._y,C=c.length;if(C)if(this._line?this._context.lineTo(c[0],E[0]):this._context.moveTo(c[0],E[0]),C===2)this._context.lineTo(c[1],E[1]);else for(var k=ZS(c),q=ZS(E),we=0,Be=1;Be<C;++we,++Be)this._context.bezierCurveTo(k[0][we],q[0][we],k[1][we],q[1][we],c[Be],E[Be]);(this._line||this._line!==0&&C===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(c,E){this._x.push(+c),this._y.push(+E)}};function ZS(c){var E,C=c.length-1,k,q=new Array(C),we=new Array(C),Be=new Array(C);for(q[0]=0,we[0]=2,Be[0]=c[0]+2*c[1],E=1;E<C-1;++E)q[E]=1,we[E]=4,Be[E]=4*c[E]+2*c[E+1];for(q[C-1]=2,we[C-1]=7,Be[C-1]=8*c[C-1]+c[C],E=1;E<C;++E)k=q[E]/we[E-1],we[E]-=k,Be[E]-=k*Be[E-1];for(q[C-1]=Be[C-1]/we[C-1],E=C-2;E>=0;--E)q[E]=(Be[E]-q[E+1])/we[E];for(we[C-1]=(c[C]+q[C-1])/2,E=0;E<C-1;++E)we[E]=2*c[E+1]-q[E+1];return[q,we]}function EP(c){return new JS(c)}function cb(c,E){this._context=c,this._t=E}cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(c,E){switch(c=+c,E=+E,this._point){case 0:this._point=1,this._line?this._context.lineTo(c,E):this._context.moveTo(c,E);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,E),this._context.lineTo(c,E);else{var C=this._x*(1-this._t)+c*this._t;this._context.lineTo(C,this._y),this._context.lineTo(C,E)}break}}this._x=c,this._y=E}};function SP(c){return new cb(c,.5)}function _P(c){return new cb(c,0)}function OP(c){return new cb(c,1)}function Tm(c,E){if((Be=c.length)>1)for(var C=1,k,q,we=c[E[0]],Be,Je=we.length;C<Be;++C)for(q=we,we=c[E[C]],k=0;k<Je;++k)we[k][1]+=we[k][0]=isNaN(q[k][1])?q[k][0]:q[k][1]}function Rm(c){for(var E=c.length,C=new Array(E);--E>=0;)C[E]=E;return C}function CP(c,E){return c[E]}function xP(c){const E=[];return E.key=c,E}function AP(){var c=Fc([]),E=Rm,C=Tm,k=CP;function q(we){var Be=Array.from(c.apply(this,arguments),xP),Je,Et=Be.length,ot=-1,It;for(const Jt of we)for(Je=0,++ot;Je<Et;++Je)(Be[Je][ot]=[0,+k(Jt,Be[Je].key,ot,we)]).data=Jt;for(Je=0,It=nb(E(Be));Je<Et;++Je)Be[It[Je]].index=Je;return C(Be,It),Be}return q.keys=function(we){return arguments.length?(c=typeof we=="function"?we:Fc(Array.from(we)),q):c},q.value=function(we){return arguments.length?(k=typeof we=="function"?we:Fc(+we),q):k},q.order=function(we){return arguments.length?(E=we==null?Rm:typeof we=="function"?we:Fc(Array.from(we)),q):E},q.offset=function(we){return arguments.length?(C=we??Tm,q):C},q}function PP(c,E){if((k=c.length)>0){for(var C,k,q=0,we=c[0].length,Be;q<we;++q){for(Be=C=0;C<k;++C)Be+=c[C][q][1]||0;if(Be)for(C=0;C<k;++C)c[C][q][1]/=Be}Tm(c,E)}}function TP(c,E){if((Et=c.length)>0)for(var C,k=0,q,we,Be,Je,Et,ot=c[E[0]].length;k<ot;++k)for(Be=Je=0,C=0;C<Et;++C)(we=(q=c[E[C]][k])[1]-q[0])>0?(q[0]=Be,q[1]=Be+=we):we<0?(q[1]=Je,q[0]=Je+=we):(q[0]=0,q[1]=we)}function RP(c,E){if((q=c.length)>0){for(var C=0,k=c[E[0]],q,we=k.length;C<we;++C){for(var Be=0,Je=0;Be<q;++Be)Je+=c[Be][C][1]||0;k[C][1]+=k[C][0]=-Je/2}Tm(c,E)}}function MP(c,E){if(!(!((Be=c.length)>0)||!((we=(q=c[E[0]]).length)>0))){for(var C=0,k=1,q,we,Be;k<we;++k){for(var Je=0,Et=0,ot=0;Je<Be;++Je){for(var It=c[E[Je]],Jt=It[k][1]||0,Nt=It[k-1][1]||0,vn=(Jt-Nt)/2,pr=0;pr<Je;++pr){var $n=c[E[pr]],Un=$n[k][1]||0,lr=$n[k-1][1]||0;vn+=Un-lr}Et+=Jt,ot+=vn*Jt}q[k-1][1]+=q[k-1][0]=C,Et&&(C-=ot/Et)}q[k-1][1]+=q[k-1][0]=C,Tm(c,E)}}function qS(c){var E=c.map(DP);return Rm(c).sort(function(C,k){return E[C]-E[k]})}function DP(c){for(var E=-1,C=0,k=c.length,q,we=-1/0;++E<k;)(q=+c[E][1])>we&&(we=q,C=E);return C}function e_(c){var E=c.map(t_);return Rm(c).sort(function(C,k){return E[C]-E[k]})}function t_(c){for(var E=0,C=-1,k=c.length,q;++C<k;)(q=+c[C][1])&&(E+=q);return E}function IP(c){return e_(c).reverse()}function LP(c){var E=c.length,C,k,q=c.map(t_),we=qS(c),Be=0,Je=0,Et=[],ot=[];for(C=0;C<E;++C)k=we[C],Be<Je?(Be+=q[k],Et.push(k)):(Je+=q[k],ot.push(k));return ot.reverse().concat(Et)}function kP(c){return Rm(c).reverse()}var n_="%Y-%m-%dT%H:%M:%S.%LZ";function NP(c){return c.toISOString()}var FP=Date.prototype.toISOString?NP:Jy(n_);const BP=FP;function jP(c){var E=new Date(c);return isNaN(E)?null:E}var $P=+new Date("2000-01-01T00:00:00.000Z")?jP:w1(n_);const UP=$P;function WP(c,E,C){var k=new yn,q=E;return E==null?(k.restart(c,E,C),k):(k._restart=k.restart,k.restart=function(we,Be,Je){Be=+Be,Je=Je==null?Vt():+Je,k._restart(function Et(ot){ot+=q,k._restart(Et,q+=Be,Je),we(ot)},Be,Je)},k.restart(c,E,C),k)}const fb=c=>()=>c;function zP(c,{sourceEvent:E,target:C,transform:k,dispatch:q}){Object.defineProperties(this,{type:{value:c,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},target:{value:C,enumerable:!0,configurable:!0},transform:{value:k,enumerable:!0,configurable:!0},_:{value:q}})}function qp(c,E,C){this.k=c,this.x=E,this.y=C}qp.prototype={constructor:qp,scale:function(c){return c===1?this:new qp(this.k*c,this.x,this.y)},translate:function(c,E){return c===0&E===0?this:new qp(this.k,this.x+this.k*c,this.y+this.k*E)},apply:function(c){return[c[0]*this.k+this.x,c[1]*this.k+this.y]},applyX:function(c){return c*this.k+this.x},applyY:function(c){return c*this.k+this.y},invert:function(c){return[(c[0]-this.x)/this.k,(c[1]-this.y)/this.k]},invertX:function(c){return(c-this.x)/this.k},invertY:function(c){return(c-this.y)/this.k},rescaleX:function(c){return c.copy().domain(c.range().map(this.invertX,this).map(c.invert,c))},rescaleY:function(c){return c.copy().domain(c.range().map(this.invertY,this).map(c.invert,c))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var db=new qp(1,0,0);r_.prototype=qp.prototype;function r_(c){for(;!c.__zoom;)if(!(c=c.parentNode))return db;return c.__zoom}function F1(c){c.stopImmediatePropagation()}function iy(c){c.preventDefault(),c.stopImmediatePropagation()}function VP(c){return(!c.ctrlKey||c.type==="wheel")&&!c.button}function HP(){var c=this;return c instanceof SVGElement?(c=c.ownerSVGElement||c,c.hasAttribute("viewBox")?(c=c.viewBox.baseVal,[[c.x,c.y],[c.x+c.width,c.y+c.height]]):[[0,0],[c.width.baseVal.value,c.height.baseVal.value]]):[[0,0],[c.clientWidth,c.clientHeight]]}function i_(){return this.__zoom||db}function KP(c){return-c.deltaY*(c.deltaMode===1?.05:c.deltaMode?1:.002)*(c.ctrlKey?10:1)}function GP(){return navigator.maxTouchPoints||"ontouchstart"in this}function YP(c,E,C){var k=c.invertX(E[0][0])-C[0][0],q=c.invertX(E[1][0])-C[1][0],we=c.invertY(E[0][1])-C[0][1],Be=c.invertY(E[1][1])-C[1][1];return c.translate(q>k?(k+q)/2:Math.min(0,k)||Math.max(0,q),Be>we?(we+Be)/2:Math.min(0,we)||Math.max(0,Be))}function XP(){var c=VP,E=HP,C=YP,k=KP,q=GP,we=[0,1/0],Be=[[-1/0,-1/0],[1/0,1/0]],Je=250,Et=Xw,ot=$r("start","zoom","end"),It,Jt,Nt,vn=500,pr=150,$n=0,Un=10;function lr(Zr){Zr.property("__zoom",i_).on("wheel.zoom",Io,{passive:!1}).on("mousedown.zoom",ua).on("dblclick.zoom",To).filter(q).on("touchstart.zoom",Lo).on("touchmove.zoom",Ta).on("touchend.zoom touchcancel.zoom",da).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}lr.transform=function(Zr,Hi,no,jo){var oo=Zr.selection?Zr.selection():Zr;oo.property("__zoom",i_),Zr!==oo?Oi(Zr,Hi,no,jo):oo.interrupt().each(function(){Yi(this,arguments).event(jo).start().zoom(null,typeof Hi=="function"?Hi.apply(this,arguments):Hi).end()})},lr.scaleBy=function(Zr,Hi,no,jo){lr.scaleTo(Zr,function(){var oo=this.__zoom.k,zo=typeof Hi=="function"?Hi.apply(this,arguments):Hi;return oo*zo},no,jo)},lr.scaleTo=function(Zr,Hi,no,jo){lr.transform(Zr,function(){var oo=E.apply(this,arguments),zo=this.__zoom,Oo=no==null?Mr(oo):typeof no=="function"?no.apply(this,arguments):no,ma=zo.invert(Oo),ka=typeof Hi=="function"?Hi.apply(this,arguments):Hi;return C(Br(Hr(zo,ka),Oo,ma),oo,Be)},no,jo)},lr.translateBy=function(Zr,Hi,no,jo){lr.transform(Zr,function(){return C(this.__zoom.translate(typeof Hi=="function"?Hi.apply(this,arguments):Hi,typeof no=="function"?no.apply(this,arguments):no),E.apply(this,arguments),Be)},null,jo)},lr.translateTo=function(Zr,Hi,no,jo,oo){lr.transform(Zr,function(){var zo=E.apply(this,arguments),Oo=this.__zoom,ma=jo==null?Mr(zo):typeof jo=="function"?jo.apply(this,arguments):jo;return C(db.translate(ma[0],ma[1]).scale(Oo.k).translate(typeof Hi=="function"?-Hi.apply(this,arguments):-Hi,typeof no=="function"?-no.apply(this,arguments):-no),zo,Be)},jo,oo)};function Hr(Zr,Hi){return Hi=Math.max(we[0],Math.min(we[1],Hi)),Hi===Zr.k?Zr:new qp(Hi,Zr.x,Zr.y)}function Br(Zr,Hi,no){var jo=Hi[0]-no[0]*Zr.k,oo=Hi[1]-no[1]*Zr.k;return jo===Zr.x&&oo===Zr.y?Zr:new qp(Zr.k,jo,oo)}function Mr(Zr){return[(+Zr[0][0]+ +Zr[1][0])/2,(+Zr[0][1]+ +Zr[1][1])/2]}function Oi(Zr,Hi,no,jo){Zr.on("start.zoom",function(){Yi(this,arguments).event(jo).start()}).on("interrupt.zoom end.zoom",function(){Yi(this,arguments).event(jo).end()}).tween("zoom",function(){var oo=this,zo=arguments,Oo=Yi(oo,zo).event(jo),ma=E.apply(oo,zo),ka=no==null?Mr(ma):typeof no=="function"?no.apply(oo,zo):no,os=Math.max(ma[1][0]-ma[0][0],ma[1][1]-ma[0][1]),es=oo.__zoom,gs=typeof Hi=="function"?Hi.apply(oo,zo):Hi,Zs=Et(es.invert(ka).concat(os/es.k),gs.invert(ka).concat(os/gs.k));return function(As){if(As===1)As=gs;else{var _u=Zs(As),Cs=os/_u[2];As=new qp(Cs,ka[0]-_u[0]*Cs,ka[1]-_u[1]*Cs)}Oo.zoom(null,As)}})}function Yi(Zr,Hi,no){return!no&&Zr.__zooming||new uo(Zr,Hi)}function uo(Zr,Hi){this.that=Zr,this.args=Hi,this.active=0,this.sourceEvent=null,this.extent=E.apply(Zr,Hi),this.taps=0}uo.prototype={event:function(Zr){return Zr&&(this.sourceEvent=Zr),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Zr,Hi){return this.mouse&&Zr!=="mouse"&&(this.mouse[1]=Hi.invert(this.mouse[0])),this.touch0&&Zr!=="touch"&&(this.touch0[1]=Hi.invert(this.touch0[0])),this.touch1&&Zr!=="touch"&&(this.touch1[1]=Hi.invert(this.touch1[0])),this.that.__zoom=Hi,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Zr){var Hi=ss(this.that).datum();ot.call(Zr,this.that,new zP(Zr,{sourceEvent:this.sourceEvent,target:lr,type:Zr,transform:this.that.__zoom,dispatch:ot}),Hi)}};function Io(Zr,...Hi){if(!c.apply(this,arguments))return;var no=Yi(this,Hi).event(Zr),jo=this.__zoom,oo=Math.max(we[0],Math.min(we[1],jo.k*Math.pow(2,k.apply(this,arguments)))),zo=ci(Zr);if(no.wheel)(no.mouse[0][0]!==zo[0]||no.mouse[0][1]!==zo[1])&&(no.mouse[1]=jo.invert(no.mouse[0]=zo)),clearTimeout(no.wheel);else{if(jo.k===oo)return;no.mouse=[zo,jo.invert(zo)],Wa(this),no.start()}iy(Zr),no.wheel=setTimeout(Oo,pr),no.zoom("mouse",C(Br(Hr(jo,oo),no.mouse[0],no.mouse[1]),no.extent,Be));function Oo(){no.wheel=null,no.end()}}function ua(Zr,...Hi){if(Nt||!c.apply(this,arguments))return;var no=Zr.currentTarget,jo=Yi(this,Hi,!0).event(Zr),oo=ss(Zr.view).on("mousemove.zoom",ka,!0).on("mouseup.zoom",os,!0),zo=ci(Zr,no),Oo=Zr.clientX,ma=Zr.clientY;Ls(Zr.view),F1(Zr),jo.mouse=[zo,this.__zoom.invert(zo)],Wa(this),jo.start();function ka(es){if(iy(es),!jo.moved){var gs=es.clientX-Oo,Zs=es.clientY-ma;jo.moved=gs*gs+Zs*Zs>$n}jo.event(es).zoom("mouse",C(Br(jo.that.__zoom,jo.mouse[0]=ci(es,no),jo.mouse[1]),jo.extent,Be))}function os(es){oo.on("mousemove.zoom mouseup.zoom",null),gu(es.view,jo.moved),iy(es),jo.event(es).end()}}function To(Zr,...Hi){if(c.apply(this,arguments)){var no=this.__zoom,jo=ci(Zr.changedTouches?Zr.changedTouches[0]:Zr,this),oo=no.invert(jo),zo=no.k*(Zr.shiftKey?.5:2),Oo=C(Br(Hr(no,zo),jo,oo),E.apply(this,Hi),Be);iy(Zr),Je>0?ss(this).transition().duration(Je).call(Oi,Oo,jo,Zr):ss(this).call(lr.transform,Oo,jo,Zr)}}function Lo(Zr,...Hi){if(c.apply(this,arguments)){var no=Zr.touches,jo=no.length,oo=Yi(this,Hi,Zr.changedTouches.length===jo).event(Zr),zo,Oo,ma,ka;for(F1(Zr),Oo=0;Oo<jo;++Oo)ma=no[Oo],ka=ci(ma,this),ka=[ka,this.__zoom.invert(ka),ma.identifier],oo.touch0?!oo.touch1&&oo.touch0[2]!==ka[2]&&(oo.touch1=ka,oo.taps=0):(oo.touch0=ka,zo=!0,oo.taps=1+!!It);It&&(It=clearTimeout(It)),zo&&(oo.taps<2&&(Jt=ka[0],It=setTimeout(function(){It=null},vn)),Wa(this),oo.start())}}function Ta(Zr,...Hi){if(this.__zooming){var no=Yi(this,Hi).event(Zr),jo=Zr.changedTouches,oo=jo.length,zo,Oo,ma,ka;for(iy(Zr),zo=0;zo<oo;++zo)Oo=jo[zo],ma=ci(Oo,this),no.touch0&&no.touch0[2]===Oo.identifier?no.touch0[0]=ma:no.touch1&&no.touch1[2]===Oo.identifier&&(no.touch1[0]=ma);if(Oo=no.that.__zoom,no.touch1){var os=no.touch0[0],es=no.touch0[1],gs=no.touch1[0],Zs=no.touch1[1],As=(As=gs[0]-os[0])*As+(As=gs[1]-os[1])*As,_u=(_u=Zs[0]-es[0])*_u+(_u=Zs[1]-es[1])*_u;Oo=Hr(Oo,Math.sqrt(As/_u)),ma=[(os[0]+gs[0])/2,(os[1]+gs[1])/2],ka=[(es[0]+Zs[0])/2,(es[1]+Zs[1])/2]}else if(no.touch0)ma=no.touch0[0],ka=no.touch0[1];else return;no.zoom("touch",C(Br(Oo,ma,ka),no.extent,Be))}}function da(Zr,...Hi){if(this.__zooming){var no=Yi(this,Hi).event(Zr),jo=Zr.changedTouches,oo=jo.length,zo,Oo;for(F1(Zr),Nt&&clearTimeout(Nt),Nt=setTimeout(function(){Nt=null},vn),zo=0;zo<oo;++zo)Oo=jo[zo],no.touch0&&no.touch0[2]===Oo.identifier?delete no.touch0:no.touch1&&no.touch1[2]===Oo.identifier&&delete no.touch1;if(no.touch1&&!no.touch0&&(no.touch0=no.touch1,delete no.touch1),no.touch0)no.touch0[1]=this.__zoom.invert(no.touch0[0]);else if(no.end(),no.taps===2&&(Oo=ci(Oo,this),Math.hypot(Jt[0]-Oo[0],Jt[1]-Oo[1])<Un)){var ma=ss(this).on("dblclick.zoom");ma&&ma.apply(this,arguments)}}}return lr.wheelDelta=function(Zr){return arguments.length?(k=typeof Zr=="function"?Zr:fb(+Zr),lr):k},lr.filter=function(Zr){return arguments.length?(c=typeof Zr=="function"?Zr:fb(!!Zr),lr):c},lr.touchable=function(Zr){return arguments.length?(q=typeof Zr=="function"?Zr:fb(!!Zr),lr):q},lr.extent=function(Zr){return arguments.length?(E=typeof Zr=="function"?Zr:fb([[+Zr[0][0],+Zr[0][1]],[+Zr[1][0],+Zr[1][1]]]),lr):E},lr.scaleExtent=function(Zr){return arguments.length?(we[0]=+Zr[0],we[1]=+Zr[1],lr):[we[0],we[1]]},lr.translateExtent=function(Zr){return arguments.length?(Be[0][0]=+Zr[0][0],Be[1][0]=+Zr[1][0],Be[0][1]=+Zr[0][1],Be[1][1]=+Zr[1][1],lr):[[Be[0][0],Be[0][1]],[Be[1][0],Be[1][1]]]},lr.constrain=function(Zr){return arguments.length?(C=Zr,lr):C},lr.duration=function(Zr){return arguments.length?(Je=+Zr,lr):Je},lr.interpolate=function(Zr){return arguments.length?(Et=Zr,lr):Et},lr.on=function(){var Zr=ot.on.apply(ot,arguments);return Zr===ot?lr:Zr},lr.clickDistance=function(Zr){return arguments.length?($n=(Zr=+Zr)*Zr,lr):Math.sqrt($n)},lr.tapDistance=function(Zr){return arguments.length?(Un=+Zr,lr):Un},lr}},82695:(J,g,t)=>{"use strict";t.d(g,{q:()=>l});let i={};function l(){return i}function s(m){i=m}},14123:(J,g,t)=>{"use strict";t.d(g,{u:()=>i});function i(l){return s=>{const u=(l?Math[l]:Math.trunc)(s);return u===0?0:u}}},40215:(J,g,t)=>{"use strict";t.d(g,{G:()=>l});var i=t(2642);function l(s){const m=(0,i.a)(s),u=new Date(Date.UTC(m.getFullYear(),m.getMonth(),m.getDate(),m.getHours(),m.getMinutes(),m.getSeconds(),m.getMilliseconds()));return u.setUTCFullYear(m.getFullYear()),+s-+u}},25579:(J,g,t)=>{"use strict";t.d(g,{W:()=>f});var i=t(13999),l=t(2642),s=t(35840);function m(v,h){const d=(0,l.a)(v);if(isNaN(h))return(0,s.w)(v,NaN);if(!h)return d;const b=d.getDate(),y=(0,s.w)(v,d.getTime());y.setMonth(d.getMonth()+h+1,0);const w=y.getDate();return b>=w?y:(d.setFullYear(y.getFullYear(),y.getMonth(),b),d)}const u=null;function f(v,h){const{years:d=0,months:b=0,weeks:y=0,days:w=0,hours:S=0,minutes:O=0,seconds:R=0}=h,M=(0,l.a)(v),D=b||d?m(M,b+d*12):M,P=w||y?(0,i.f)(D,w+y*7):D,T=O+S*60,j=(R+T*60)*1e3;return(0,s.w)(v,P.getTime()+j)}const p=null},13999:(J,g,t)=>{"use strict";t.d(g,{f:()=>s});var i=t(2642),l=t(35840);function s(u,f){const p=(0,i.a)(u);return isNaN(f)?(0,l.w)(u,NaN):(f&&p.setDate(p.getDate()+f),p)}var m=null},25733:(J,g,t)=>{"use strict";t.d(g,{z:()=>l});var i=t(2642);function l(m,u){const f=(0,i.a)(m),p=(0,i.a)(u),v=f.getTime()-p.getTime();return v<0?-1:v>0?1:v}var s=null},2940:(J,g,t)=>{"use strict";t.d(g,{Cg:()=>p,F6:()=>y,Ks:()=>d,Nw:()=>b,s0:()=>v,w4:()=>f});const i=7,l=365.2425,m=-(Math.pow(10,8)*24*60*60*1e3),u=6048e5,f=864e5,p=6e4,v=36e5,h=1e3,d=525600,b=43200,y=1440,w=60,S=3,O=12,R=4,M=3600,D=60,P=M*24,T=P*7,ae=P*l/12*3},35840:(J,g,t)=>{"use strict";t.d(g,{w:()=>i});function i(s,m){return s instanceof Date?new s.constructor(m):new Date(m)}var l=null},77275:(J,g,t)=>{"use strict";t.d(g,{b:()=>l});var i=t(2642);function l(m,u){return+(0,i.a)(m)-+(0,i.a)(u)}var s=null},90397:(J,g,t)=>{"use strict";t.d(g,{W:()=>b});var i=t(25733),l=t(2642);function s(w,S){const O=(0,l.a)(w),R=(0,l.a)(S),M=O.getFullYear()-R.getFullYear(),D=O.getMonth()-R.getMonth();return M*12+D}const m=null;function u(w){const S=(0,l.a)(w);return S.setHours(23,59,59,999),S}const f=null;function p(w){const S=(0,l.a)(w),O=S.getMonth();return S.setFullYear(S.getFullYear(),O+1,0),S.setHours(23,59,59,999),S}const v=null;function h(w){const S=(0,l.a)(w);return+u(S)==+p(S)}const d=null;function b(w,S){const O=(0,l.a)(w),R=(0,l.a)(S),M=(0,i.z)(O,R),D=Math.abs(s(O,R));let P;if(D<1)P=0;else{O.getMonth()===1&&O.getDate()>27&&O.setDate(30),O.setMonth(O.getMonth()-M*D);let T=(0,i.z)(O,R)===-M;h((0,l.a)(w))&&D===1&&(0,i.z)(w,R)===1&&(T=!1),P=M*(D-Number(T))}return P===0?0:P}const y=null},43924:(J,g,t)=>{"use strict";t.d(g,{O:()=>s});var i=t(14123),l=t(77275);function s(u,f,p){const v=(0,l.b)(u,f)/1e3;return(0,i.u)(p?.roundingMethod)(v)}var m=null},72095:(J,g,t)=>{"use strict";t.d(g,{B:()=>d});var i=t(96519),l=t(82695),s=t(14123),m=t(40215),u=t(25733),f=t(2940),p=t(2642);function v(y,w,S){const O=(0,l.q)(),R=S?.locale??O.locale??i.c,M=(0,u.z)(y,w);if(isNaN(M))throw new RangeError("Invalid time value");const D=Object.assign({},S,{addSuffix:S?.addSuffix,comparison:M});let P,T;M>0?(P=(0,p.a)(w),T=(0,p.a)(y)):(P=(0,p.a)(y),T=(0,p.a)(w));const A=(0,s.u)(S?.roundingMethod??"round"),j=T.getTime()-P.getTime(),ae=j/f.Cg,_=(0,m.G)(T)-(0,m.G)(P),N=(j-_)/f.Cg,W=S?.unit;let he;if(W?he=W:ae<1?he="second":ae<60?he="minute":ae<f.F6?he="hour":N<f.Nw?he="day":N<f.Ks?he="month":he="year",he==="second"){const me=A(j/1e3);return R.formatDistance("xSeconds",me,D)}else if(he==="minute"){const me=A(ae);return R.formatDistance("xMinutes",me,D)}else if(he==="hour"){const me=A(ae/60);return R.formatDistance("xHours",me,D)}else if(he==="day"){const me=A(N/f.F6);return R.formatDistance("xDays",me,D)}else if(he==="month"){const me=A(N/f.Nw);return me===12&&W!=="month"?R.formatDistance("xYears",1,D):R.formatDistance("xMonths",me,D)}else{const me=A(N/f.Ks);return R.formatDistance("xYears",me,D)}}const h=null;function d(y,w){return v(y,Date.now(),w)}const b=null},91e3:(J,g,t)=>{"use strict";t.d(g,{a:()=>m});var i=t(96519),l=t(82695);const s=["years","months","weeks","days","hours","minutes","seconds"];function m(f,p){const v=(0,l.q)(),h=p?.locale??v.locale??i.c,d=p?.format??s,b=p?.zero??!1,y=p?.delimiter??" ";return h.formatDistance?d.reduce((S,O)=>{const R=`x${O.replace(/(^.)/,D=>D.toUpperCase())}`,M=f[O];return M!==void 0&&(b||f[O])?S.concat(h.formatDistance(R,M)):S},[]).join(y):""}var u=null},68284:(J,g,t)=>{"use strict";t.d(g,{F:()=>N});var i=t(25579),l=t(2940),s=t(2642);function m(he){const me=(0,s.a)(he);return me.setHours(0,0,0,0),me}const u=null;var f=t(40215);function p(he,me){const fe=m(he),ve=m(me),ce=+fe-(0,f.G)(fe),oe=+ve-(0,f.G)(ve);return Math.round((ce-oe)/l.w4)}const v=null;function h(he,me){const fe=(0,s.a)(he),ve=(0,s.a)(me),ce=d(fe,ve),oe=Math.abs(p(fe,ve));fe.setDate(fe.getDate()-ce*oe);const re=+(d(fe,ve)===-ce),H=ce*(oe-re);return H===0?0:H}function d(he,me){const fe=he.getFullYear()-me.getFullYear()||he.getMonth()-me.getMonth()||he.getDate()-me.getDate()||he.getHours()-me.getHours()||he.getMinutes()-me.getMinutes()||he.getSeconds()-me.getSeconds()||he.getMilliseconds()-me.getMilliseconds();return fe<0?-1:fe>0?1:fe}const b=null;var y=t(14123),w=t(77275);function S(he,me,fe){const ve=(0,w.b)(he,me)/l.s0;return(0,y.u)(fe?.roundingMethod)(ve)}const O=null;function R(he,me,fe){const ve=(0,w.b)(he,me)/l.Cg;return(0,y.u)(fe?.roundingMethod)(ve)}const M=null;var D=t(90397),P=t(43924),T=t(25733);function A(he,me){const fe=(0,s.a)(he),ve=(0,s.a)(me);return fe.getFullYear()-ve.getFullYear()}const j=null;function ae(he,me){const fe=(0,s.a)(he),ve=(0,s.a)(me),ce=(0,T.z)(fe,ve),oe=Math.abs(A(fe,ve));fe.setFullYear(1584),ve.setFullYear(1584);const re=(0,T.z)(fe,ve)===-ce,H=ce*(oe-+re);return H===0?0:H}const _=null;function N(he){const me=(0,s.a)(he.start),fe=(0,s.a)(he.end),ve={},ce=ae(fe,me);ce&&(ve.years=ce);const oe=(0,i.W)(me,{years:ve.years}),re=(0,D.W)(fe,oe);re&&(ve.months=re);const H=(0,i.W)(oe,{months:ve.months}),V=h(fe,H);V&&(ve.days=V);const Q=(0,i.W)(H,{days:ve.days}),Te=S(fe,Q);Te&&(ve.hours=Te);const Re=(0,i.W)(Q,{hours:ve.hours}),ne=R(fe,Re);ne&&(ve.minutes=ne);const pe=(0,i.W)(Re,{minutes:ve.minutes}),ye=(0,P.O)(fe,pe);return ye&&(ve.seconds=ye),ve}const W=null},89369:(J,g,t)=>{"use strict";t.d(g,{d:()=>l});var i=t(2642);function l(m,u){const f=(0,i.a)(m),p=(0,i.a)(u);return f.getTime()>p.getTime()}var s=null},72880:(J,g,t)=>{"use strict";t.d(g,{Y:()=>l});var i=t(2642);function l(m,u){const f=(0,i.a)(m),p=(0,i.a)(u);return+f<+p}var s=null},96519:(J,g,t)=>{"use strict";t.d(g,{c:()=>Q});const i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l=(Re,ne,pe)=>{let ye;const Se=i[Re];return typeof Se=="string"?ye=Se:ne===1?ye=Se.one:ye=Se.other.replace("{{count}}",ne.toString()),pe?.addSuffix?pe.comparison&&pe.comparison>0?"in "+ye:ye+" ago":ye};function s(Re){return(ne={})=>{const pe=ne.width?String(ne.width):Re.defaultWidth;return Re.formats[pe]||Re.formats[Re.defaultWidth]}}const m={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},u={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},f={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},p={date:s({formats:m,defaultWidth:"full"}),time:s({formats:u,defaultWidth:"full"}),dateTime:s({formats:f,defaultWidth:"full"})},v={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},h=(Re,ne,pe,ye)=>v[Re];function d(Re){return(ne,pe)=>{const ye=pe?.context?String(pe.context):"standalone";let Se;if(ye==="formatting"&&Re.formattingValues){const Ee=Re.defaultFormattingWidth||Re.defaultWidth,xe=pe?.width?String(pe.width):Ee;Se=Re.formattingValues[xe]||Re.formattingValues[Ee]}else{const Ee=Re.defaultWidth,xe=pe?.width?String(pe.width):Re.defaultWidth;Se=Re.values[xe]||Re.values[Ee]}const Ae=Re.argumentCallback?Re.argumentCallback(ne):ne;return Se[Ae]}}const b={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},y={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},w={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},S={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},R={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},D={ordinalNumber:(Re,ne)=>{const pe=Number(Re),ye=pe%100;if(ye>20||ye<10)switch(ye%10){case 1:return pe+"st";case 2:return pe+"nd";case 3:return pe+"rd"}return pe+"th"},era:d({values:b,defaultWidth:"wide"}),quarter:d({values:y,defaultWidth:"wide",argumentCallback:Re=>Re-1}),month:d({values:w,defaultWidth:"wide"}),day:d({values:S,defaultWidth:"wide"}),dayPeriod:d({values:O,defaultWidth:"wide",formattingValues:R,defaultFormattingWidth:"wide"})};function P(Re){return(ne,pe={})=>{const ye=pe.width,Se=ye&&Re.matchPatterns[ye]||Re.matchPatterns[Re.defaultMatchWidth],Ae=ne.match(Se);if(!Ae)return null;const Ee=Ae[0],xe=ye&&Re.parsePatterns[ye]||Re.parsePatterns[Re.defaultParseWidth],nt=Array.isArray(xe)?A(xe,Rt=>Rt.test(Ee)):T(xe,Rt=>Rt.test(Ee));let Tt;Tt=Re.valueCallback?Re.valueCallback(nt):nt,Tt=pe.valueCallback?pe.valueCallback(Tt):Tt;const pt=ne.slice(Ee.length);return{value:Tt,rest:pt}}}function T(Re,ne){for(const pe in Re)if(Object.prototype.hasOwnProperty.call(Re,pe)&&ne(Re[pe]))return pe}function A(Re,ne){for(let pe=0;pe<Re.length;pe++)if(ne(Re[pe]))return pe}function j(Re){return(ne,pe={})=>{const ye=ne.match(Re.matchPattern);if(!ye)return null;const Se=ye[0],Ae=ne.match(Re.parsePattern);if(!Ae)return null;let Ee=Re.valueCallback?Re.valueCallback(Ae[0]):Ae[0];Ee=pe.valueCallback?pe.valueCallback(Ee):Ee;const xe=ne.slice(Se.length);return{value:Ee,rest:xe}}}const ae=/^(\d+)(th|st|nd|rd)?/i,_=/\d+/i,N={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},W={any:[/^b/i,/^(a|c)/i]},he={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},me={any:[/1/i,/2/i,/3/i,/4/i]},fe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ve={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ce={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},re={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},H={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},V={ordinalNumber:j({matchPattern:ae,parsePattern:_,valueCallback:Re=>parseInt(Re,10)}),era:P({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:W,defaultParseWidth:"any"}),quarter:P({matchPatterns:he,defaultMatchWidth:"wide",parsePatterns:me,defaultParseWidth:"any",valueCallback:Re=>Re+1}),month:P({matchPatterns:fe,defaultMatchWidth:"wide",parsePatterns:ve,defaultParseWidth:"any"}),day:P({matchPatterns:ce,defaultMatchWidth:"wide",parsePatterns:oe,defaultParseWidth:"any"}),dayPeriod:P({matchPatterns:re,defaultMatchWidth:"any",parsePatterns:H,defaultParseWidth:"any"})},Q={code:"en-US",formatDistance:l,formatLong:p,formatRelative:h,localize:D,match:V,options:{weekStartsOn:0,firstWeekContainsDate:1}},Te=null},2642:(J,g,t)=>{"use strict";t.d(g,{a:()=>i});function i(s){const m=Object.prototype.toString.call(s);return s instanceof Date||typeof s=="object"&&m==="[object Date]"?new s.constructor(+s):typeof s=="number"||m==="[object Number]"||typeof s=="string"||m==="[object String]"?new Date(s):new Date(NaN)}var l=null},90254:(J,g,t)=>{"use strict";t.d(g,{ss:()=>pe});function i(){}i.prototype={diff:function(ue,De){var He,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ze=Fe.callback;typeof Fe=="function"&&(ze=Fe,Fe={}),this.options=Fe;var qe=this;function We(bt){return ze?(setTimeout(function(){ze(void 0,bt)},0),!0):bt}ue=this.castInput(ue),De=this.castInput(De),ue=this.removeEmpty(this.tokenize(ue)),De=this.removeEmpty(this.tokenize(De));var _t=De.length,ct=ue.length,Ge=1,st=_t+ct;Fe.maxEditLength&&(st=Math.min(st,Fe.maxEditLength));var Me=(He=Fe.timeout)!==null&&He!==void 0?He:1/0,ie=Date.now()+Me,ge=[{oldPos:-1,lastComponent:void 0}],z=this.extractCommon(ge[0],De,ue,0);if(ge[0].oldPos+1>=ct&&z+1>=_t)return We([{value:this.join(De),count:De.length}]);var be=-1/0,Qe=1/0;function Bt(){for(var bt=Math.max(be,-Ge);bt<=Math.min(Qe,Ge);bt+=2){var at=void 0,$t=ge[bt-1],On=ge[bt+1];$t&&(ge[bt-1]=void 0);var Ct=!1;if(On){var Zt=On.oldPos-bt;Ct=On&&0<=Zt&&Zt<_t}var Wn=$t&&$t.oldPos+1<ct;if(!Ct&&!Wn){ge[bt]=void 0;continue}if(!Wn||Ct&&$t.oldPos+1<On.oldPos?at=qe.addToPath(On,!0,void 0,0):at=qe.addToPath($t,void 0,!0,1),z=qe.extractCommon(at,De,ue,bt),at.oldPos+1>=ct&&z+1>=_t)return We(l(qe,at.lastComponent,De,ue,qe.useLongestToken));ge[bt]=at,at.oldPos+1>=ct&&(Qe=Math.min(Qe,bt-1)),z+1>=_t&&(be=Math.max(be,bt+1))}Ge++}if(ze)(function bt(){setTimeout(function(){if(Ge>st||Date.now()>ie)return ze();Bt()||bt()},0)})();else for(;Ge<=st&&Date.now()<=ie;){var nn=Bt();if(nn)return nn}},addToPath:function(ue,De,He,Fe){var ze=ue.lastComponent;return ze&&ze.added===De&&ze.removed===He?{oldPos:ue.oldPos+Fe,lastComponent:{count:ze.count+1,added:De,removed:He,previousComponent:ze.previousComponent}}:{oldPos:ue.oldPos+Fe,lastComponent:{count:1,added:De,removed:He,previousComponent:ze}}},extractCommon:function(ue,De,He,Fe){for(var ze=De.length,qe=He.length,We=ue.oldPos,_t=We-Fe,ct=0;_t+1<ze&&We+1<qe&&this.equals(De[_t+1],He[We+1]);)_t++,We++,ct++;return ct&&(ue.lastComponent={count:ct,previousComponent:ue.lastComponent}),ue.oldPos=We,_t},equals:function(ue,De){return this.options.comparator?this.options.comparator(ue,De):ue===De||this.options.ignoreCase&&ue.toLowerCase()===De.toLowerCase()},removeEmpty:function(ue){for(var De=[],He=0;He<ue.length;He++)ue[He]&&De.push(ue[He]);return De},castInput:function(ue){return ue},tokenize:function(ue){return ue.split("")},join:function(ue){return ue.join("")}};function l(K,ue,De,He,Fe){for(var ze=[],qe;ue;)ze.push(ue),qe=ue.previousComponent,delete ue.previousComponent,ue=qe;ze.reverse();for(var We=0,_t=ze.length,ct=0,Ge=0;We<_t;We++){var st=ze[We];if(st.removed){if(st.value=K.join(He.slice(Ge,Ge+st.count)),Ge+=st.count,We&&ze[We-1].added){var ie=ze[We-1];ze[We-1]=ze[We],ze[We]=ie}}else{if(!st.added&&Fe){var Me=De.slice(ct,ct+st.count);Me=Me.map(function(z,be){var Qe=He[Ge+be];return Qe.length>z.length?Qe:z}),st.value=K.join(Me)}else st.value=K.join(De.slice(ct,ct+st.count));ct+=st.count,st.added||(Ge+=st.count)}}var ge=ze[_t-1];return _t>1&&typeof ge.value=="string"&&(ge.added||ge.removed)&&K.equals("",ge.value)&&(ze[_t-2].value+=ge.value,ze.pop()),ze}var s=new i;function m(K,ue,De){return s.diff(K,ue,De)}function u(K,ue){if(typeof K=="function")ue.callback=K;else if(K)for(var De in K)K.hasOwnProperty(De)&&(ue[De]=K[De]);return ue}var f=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,p=/\S/,v=new i;v.equals=function(K,ue){return this.options.ignoreCase&&(K=K.toLowerCase(),ue=ue.toLowerCase()),K===ue||this.options.ignoreWhitespace&&!p.test(K)&&!p.test(ue)},v.tokenize=function(K){for(var ue=K.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),De=0;De<ue.length-1;De++)!ue[De+1]&&ue[De+2]&&f.test(ue[De])&&f.test(ue[De+2])&&(ue[De]+=ue[De+2],ue.splice(De+1,2),De--);return ue};function h(K,ue,De){return De=u(De,{ignoreWhitespace:!0}),v.diff(K,ue,De)}function d(K,ue,De){return v.diff(K,ue,De)}var b=new i;b.tokenize=function(K){this.options.stripTrailingCr&&(K=K.replace(/\r\n/g,` `));var ue=[],De=K.split(/(\n|\r\n)/);De[De.length-1]||De.pop();for(var He=0;He<De.length;He++){var Fe=De[He];He%2&&!this.options.newlineIsToken?ue[ue.length-1]+=Fe:(this.options.ignoreWhitespace&&(Fe=Fe.trim()),ue.push(Fe))}return ue};function y(K,ue,De){return b.diff(K,ue,De)}function w(K,ue,De){var He=u(De,{ignoreWhitespace:!0});return b.diff(K,ue,He)}var S=new i;S.tokenize=function(K){return K.split(/(\S.+?[.!?])(?=\s+|$)/)};function O(K,ue,De){return S.diff(K,ue,De)}var R=new i;R.tokenize=function(K){return K.split(/([{}:;,]|\s+)/)};function M(K,ue,De){return R.diff(K,ue,De)}function D(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(ue){return typeof ue}:D=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},D(K)}function P(K,ue,De){return ue in K?Object.defineProperty(K,ue,{value:De,enumerable:!0,configurable:!0,writable:!0}):K[ue]=De,K}function T(K,ue){var De=Object.keys(K);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(K);ue&&(He=He.filter(function(Fe){return Object.getOwnPropertyDescriptor(K,Fe).enumerable})),De.push.apply(De,He)}return De}function A(K){for(var ue=1;ue<arguments.length;ue++){var De=arguments[ue]!=null?arguments[ue]:{};ue%2?T(Object(De),!0).forEach(function(He){P(K,He,De[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(De)):T(Object(De)).forEach(function(He){Object.defineProperty(K,He,Object.getOwnPropertyDescriptor(De,He))})}return K}function j(K){return ae(K)||_(K)||N(K)||he()}function ae(K){if(Array.isArray(K))return W(K)}function _(K){if(typeof Symbol<"u"&&Symbol.iterator in Object(K))return Array.from(K)}function N(K,ue){if(K){if(typeof K=="string")return W(K,ue);var De=Object.prototype.toString.call(K).slice(8,-1);if(De==="Object"&&K.constructor&&(De=K.constructor.name),De==="Map"||De==="Set")return Array.from(K);if(De==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return W(K,ue)}}function W(K,ue){(ue==null||ue>K.length)&&(ue=K.length);for(var De=0,He=new Array(ue);De<ue;De++)He[De]=K[De];return He}function he(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var me=Object.prototype.toString,fe=new i;fe.useLongestToken=!0,fe.tokenize=b.tokenize,fe.castInput=function(K){var ue=this.options,De=ue.undefinedReplacement,He=ue.stringifyReplacer,Fe=He===void 0?function(ze,qe){return typeof qe>"u"?De:qe}:He;return typeof K=="string"?K:JSON.stringify(ce(K,null,null,Fe),Fe," ")},fe.equals=function(K,ue){return i.prototype.equals.call(fe,K.replace(/,([\r\n])/g,"$1"),ue.replace(/,([\r\n])/g,"$1"))};function ve(K,ue,De){return fe.diff(K,ue,De)}function ce(K,ue,De,He,Fe){ue=ue||[],De=De||[],He&&(K=He(Fe,K));var ze;for(ze=0;ze<ue.length;ze+=1)if(ue[ze]===K)return De[ze];var qe;if(me.call(K)==="[object Array]"){for(ue.push(K),qe=new Array(K.length),De.push(qe),ze=0;ze<K.length;ze+=1)qe[ze]=ce(K[ze],ue,De,He,Fe);return ue.pop(),De.pop(),qe}if(K&&K.toJSON&&(K=K.toJSON()),D(K)==="object"&&K!==null){ue.push(K),qe={},De.push(qe);var We=[],_t;for(_t in K)K.hasOwnProperty(_t)&&We.push(_t);for(We.sort(),ze=0;ze<We.length;ze+=1)_t=We[ze],qe[_t]=ce(K[_t],ue,De,He,_t);ue.pop(),De.pop()}else qe=K;return qe}var oe=new i;oe.tokenize=function(K){return K.slice()},oe.join=oe.removeEmpty=function(K){return K};function re(K,ue,De){return oe.diff(K,ue,De)}function H(K){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=K.split(/\r\n|[\n\v\f\r\x85]/),He=K.match(/\r\n|[\n\v\f\r\x85]/g)||[],Fe=[],ze=0;function qe(){var ct={};for(Fe.push(ct);ze<De.length;){var Ge=De[ze];if(/^(\-\-\-|\+\+\+|@@)\s/.test(Ge))break;var st=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(Ge);st&&(ct.index=st[1]),ze++}for(We(ct),We(ct),ct.hunks=[];ze<De.length;){var Me=De[ze];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(Me))break;if(/^@@/.test(Me))ct.hunks.push(_t());else{if(Me&&ue.strict)throw new Error("Unknown line "+(ze+1)+" "+JSON.stringify(Me));ze++}}}function We(ct){var Ge=/^(---|\+\+\+)\s+(.*)$/.exec(De[ze]);if(Ge){var st=Ge[1]==="---"?"old":"new",Me=Ge[2].split(" ",2),ie=Me[0].replace(/\\\\/g,"\\");/^".*"$/.test(ie)&&(ie=ie.substr(1,ie.length-2)),ct[st+"FileName"]=ie,ct[st+"Header"]=(Me[1]||"").trim(),ze++}}function _t(){var ct=ze,Ge=De[ze++],st=Ge.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),Me={oldStart:+st[1],oldLines:typeof st[2]>"u"?1:+st[2],newStart:+st[3],newLines:typeof st[4]>"u"?1:+st[4],lines:[],linedelimiters:[]};Me.oldLines===0&&(Me.oldStart+=1),Me.newLines===0&&(Me.newStart+=1);for(var ie=0,ge=0;ze<De.length&&!(De[ze].indexOf("--- ")===0&&ze+2<De.length&&De[ze+1].indexOf("+++ ")===0&&De[ze+2].indexOf("@@")===0);ze++){var z=De[ze].length==0&&ze!=De.length-1?" ":De[ze][0];if(z==="+"||z==="-"||z===" "||z==="\\")Me.lines.push(De[ze]),Me.linedelimiters.push(He[ze]||` `),z==="+"?ie++:z==="-"?ge++:z===" "&&(ie++,ge++);else break}if(!ie&&Me.newLines===1&&(Me.newLines=0),!ge&&Me.oldLines===1&&(Me.oldLines=0),ue.strict){if(ie!==Me.newLines)throw new Error("Added line count did not match for hunk at line "+(ct+1));if(ge!==Me.oldLines)throw new Error("Removed line count did not match for hunk at line "+(ct+1))}return Me}for(;ze<De.length;)qe();return Fe}function V(K,ue,De){var He=!0,Fe=!1,ze=!1,qe=1;return function We(){if(He&&!ze){if(Fe?qe++:He=!1,K+qe<=De)return qe;ze=!0}if(!Fe)return ze||(He=!0),ue<=K-qe?-qe++:(Fe=!0,We())}}function Q(K,ue){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof ue=="string"&&(ue=H(ue)),Array.isArray(ue)){if(ue.length>1)throw new Error("applyPatch only works with a single input.");ue=ue[0]}var He=K.split(/\r\n|[\n\v\f\r\x85]/),Fe=K.match(/\r\n|[\n\v\f\r\x85]/g)||[],ze=ue.hunks,qe=De.compareLine||function(Qt,Dt,hn,cn){return Dt===cn},We=0,_t=De.fuzzFactor||0,ct=0,Ge=0,st,Me;function ie(Qt,Dt){for(var hn=0;hn<Qt.lines.length;hn++){var cn=Qt.lines[hn],an=cn.length>0?cn[0]:" ",Or=cn.length>0?cn.substr(1):cn;if(an===" "||an==="-"){if(!qe(Dt+1,He[Dt],an,Or)&&(We++,We>_t))return!1;Dt++}}return!0}for(var ge=0;ge<ze.length;ge++){for(var z=ze[ge],be=He.length-z.oldLines,Qe=0,Bt=Ge+z.oldStart-1,nn=V(Bt,ct,be);Qe!==void 0;Qe=nn())if(ie(z,Bt+Qe)){z.offset=Ge+=Qe;break}if(Qe===void 0)return!1;ct=z.offset+z.oldStart+z.oldLines}for(var bt=0,at=0;at<ze.length;at++){var $t=ze[at],On=$t.oldStart+$t.offset+bt-1;bt+=$t.newLines-$t.oldLines;for(var Ct=0;Ct<$t.lines.length;Ct++){var Zt=$t.lines[Ct],Wn=Zt.length>0?Zt[0]:" ",Zn=Zt.length>0?Zt.substr(1):Zt,xt=$t.linedelimiters&&$t.linedelimiters[Ct]||` `;if(Wn===" ")On++;else if(Wn==="-")He.splice(On,1),Fe.splice(On,1);else if(Wn==="+")He.splice(On,0,Zn),Fe.splice(On,0,xt),On++;else if(Wn==="\\"){var Xe=$t.lines[Ct-1]?$t.lines[Ct-1][0]:null;Xe==="+"?st=!0:Xe==="-"&&(Me=!0)}}}if(st)for(;!He[He.length-1];)He.pop(),Fe.pop();else Me&&(He.push(""),Fe.push(` `));for(var gn=0;gn<He.length-1;gn++)He[gn]=He[gn]+Fe[gn];return He.join("")}function Te(K,ue){typeof K=="string"&&(K=H(K));var De=0;function He(){var Fe=K[De++];if(!Fe)return ue.complete();ue.loadFile(Fe,function(ze,qe){if(ze)return ue.complete(ze);var We=Q(qe,Fe,ue);ue.patched(Fe,We,function(_t){if(_t)return ue.complete(_t);He()})})}He()}function Re(K,ue,De,He,Fe,ze,qe){qe||(qe={}),typeof qe.context>"u"&&(qe.context=4);var We=y(De,He,qe);if(!We)return;We.push({value:"",lines:[]});function _t(Qe){return Qe.map(function(Bt){return" "+Bt})}for(var ct=[],Ge=0,st=0,Me=[],ie=1,ge=1,z=function(Bt){var nn=We[Bt],bt=nn.lines||nn.value.replace(/\n$/,"").split(` `);if(nn.lines=bt,nn.added||nn.removed){var at;if(!Ge){var $t=We[Bt-1];Ge=ie,st=ge,$t&&(Me=qe.context>0?_t($t.lines.slice(-qe.context)):[],Ge-=Me.length,st-=Me.length)}(at=Me).push.apply(at,j(bt.map(function(gn){return(nn.added?"+":"-")+gn}))),nn.added?ge+=bt.length:ie+=bt.length}else{if(Ge)if(bt.length<=qe.context*2&&Bt<We.length-2){var On;(On=Me).push.apply(On,j(_t(bt)))}else{var Ct,Zt=Math.min(bt.length,qe.context);(Ct=Me).push.apply(Ct,j(_t(bt.slice(0,Zt))));var Wn={oldStart:Ge,oldLines:ie-Ge+Zt,newStart:st,newLines:ge-st+Zt,lines:Me};if(Bt>=We.length-2&&bt.length<=qe.context){var Zn=/\n$/.test(De),xt=/\n$/.test(He),Xe=bt.length==0&&Me.length>Wn.oldLines;!Zn&&Xe&&De.length>0&&Me.splice(Wn.oldLines,0,"\\ No newline at end of file"),(!Zn&&!Xe||!xt)&&Me.push("\\ No newline at end of file")}ct.push(Wn),Ge=0,st=0,Me=[]}ie+=bt.length,ge+=bt.length}},be=0;be<We.length;be++)z(be);return{oldFileName:K,newFileName:ue,oldHeader:Fe,newHeader:ze,hunks:ct}}function ne(K){if(Array.isArray(K))return K.map(ne).join(` `);var ue=[];K.oldFileName==K.newFileName&&ue.push("Index: "+K.oldFileName),ue.push("==================================================================="),ue.push("--- "+K.oldFileName+(typeof K.oldHeader>"u"?"":" "+K.oldHeader)),ue.push("+++ "+K.newFileName+(typeof K.newHeader>"u"?"":" "+K.newHeader));for(var De=0;De<K.hunks.length;De++){var He=K.hunks[De];He.oldLines===0&&(He.oldStart-=1),He.newLines===0&&(He.newStart-=1),ue.push("@@ -"+He.oldStart+","+He.oldLines+" +"+He.newStart+","+He.newLines+" @@"),ue.push.apply(ue,He.lines)}return ue.join(` `)+` `}function pe(K,ue,De,He,Fe,ze,qe){return ne(Re(K,ue,De,He,Fe,ze,qe))}function ye(K,ue,De,He,Fe,ze){return pe(K,K,ue,De,He,Fe,ze)}function Se(K,ue){return K.length!==ue.length?!1:Ae(K,ue)}function Ae(K,ue){if(ue.length>K.length)return!1;for(var De=0;De<ue.length;De++)if(ue[De]!==K[De])return!1;return!0}function Ee(K){var ue=it(K.lines),De=ue.oldLines,He=ue.newLines;De!==void 0?K.oldLines=De:delete K.oldLines,He!==void 0?K.newLines=He:delete K.newLines}function xe(K,ue,De){K=nt(K,De),ue=nt(ue,De);var He={};(K.index||ue.index)&&(He.index=K.index||ue.index),(K.newFileName||ue.newFileName)&&(Tt(K)?Tt(ue)?(He.oldFileName=pt(He,K.oldFileName,ue.oldFileName),He.newFileName=pt(He,K.newFileName,ue.newFileName),He.oldHeader=pt(He,K.oldHeader,ue.oldHeader),He.newHeader=pt(He,K.newHeader,ue.newHeader)):(He.oldFileName=K.oldFileName,He.newFileName=K.newFileName,He.oldHeader=K.oldHeader,He.newHeader=K.newHeader):(He.oldFileName=ue.oldFileName||K.oldFileName,He.newFileName=ue.newFileName||K.newFileName,He.oldHeader=ue.oldHeader||K.oldHeader,He.newHeader=ue.newHeader||K.newHeader)),He.hunks=[];for(var Fe=0,ze=0,qe=0,We=0;Fe<K.hunks.length||ze<ue.hunks.length;){var _t=K.hunks[Fe]||{oldStart:1/0},ct=ue.hunks[ze]||{oldStart:1/0};if(Rt(_t,ct))He.hunks.push(tt(_t,qe)),Fe++,We+=_t.newLines-_t.oldLines;else if(Rt(ct,_t))He.hunks.push(tt(ct,We)),ze++,qe+=ct.newLines-ct.oldLines;else{var Ge={oldStart:Math.min(_t.oldStart,ct.oldStart),oldLines:0,newStart:Math.min(_t.newStart+qe,ct.oldStart+We),newLines:0,lines:[]};U(Ge,_t.oldStart,_t.lines,ct.oldStart,ct.lines),ze++,Fe++,He.hunks.push(Ge)}}return He}function nt(K,ue){if(typeof K=="string"){if(/^@@/m.test(K)||/^Index:/m.test(K))return H(K)[0];if(!ue)throw new Error("Must provide a base reference or pass in a patch");return Re(void 0,void 0,ue,K)}return K}function Tt(K){return K.newFileName&&K.newFileName!==K.oldFileName}function pt(K,ue,De){return ue===De?ue:(K.conflict=!0,{mine:ue,theirs:De})}function Rt(K,ue){return K.oldStart<ue.oldStart&&K.oldStart+K.oldLines<ue.oldStart}function tt(K,ue){return{oldStart:K.oldStart,oldLines:K.oldLines,newStart:K.newStart+ue,newLines:K.newLines,lines:K.lines}}function U(K,ue,De,He,Fe){var ze={offset:ue,lines:De,index:0},qe={offset:He,lines:Fe,index:0};for(ke(K,ze,qe),ke(K,qe,ze);ze.index<ze.lines.length&&qe.index<qe.lines.length;){var We=ze.lines[ze.index],_t=qe.lines[qe.index];if((We[0]==="-"||We[0]==="+")&&(_t[0]==="-"||_t[0]==="+"))F(K,ze,qe);else if(We[0]==="+"&&_t[0]===" "){var ct;(ct=K.lines).push.apply(ct,j(ft(ze)))}else if(_t[0]==="+"&&We[0]===" "){var Ge;(Ge=K.lines).push.apply(Ge,j(ft(qe)))}else We[0]==="-"&&_t[0]===" "?Y(K,ze,qe):_t[0]==="-"&&We[0]===" "?Y(K,qe,ze,!0):We===_t?(K.lines.push(We),ze.index++,qe.index++):le(K,ft(ze),ft(qe))}Ye(K,ze),Ye(K,qe),Ee(K)}function F(K,ue,De){var He=ft(ue),Fe=ft(De);if(Ut(He)&&Ut(Fe)){if(Ae(He,Fe)&&Ke(De,He,He.length-Fe.length)){var ze;(ze=K.lines).push.apply(ze,j(He));return}else if(Ae(Fe,He)&&Ke(ue,Fe,Fe.length-He.length)){var qe;(qe=K.lines).push.apply(qe,j(Fe));return}}else if(Se(He,Fe)){var We;(We=K.lines).push.apply(We,j(He));return}le(K,He,Fe)}function Y(K,ue,De,He){var Fe=ft(ue),ze=wt(De,Fe);if(ze.merged){var qe;(qe=K.lines).push.apply(qe,j(ze.merged))}else le(K,He?ze:Fe,He?Fe:ze)}function le(K,ue,De){K.conflict=!0,K.lines.push({conflict:!0,mine:ue,theirs:De})}function ke(K,ue,De){for(;ue.offset<De.offset&&ue.index<ue.lines.length;){var He=ue.lines[ue.index++];K.lines.push(He),ue.offset++}}function Ye(K,ue){for(;ue.index<ue.lines.length;){var De=ue.lines[ue.index++];K.lines.push(De)}}function ft(K){for(var ue=[],De=K.lines[K.index][0];K.index<K.lines.length;){var He=K.lines[K.index];if(De==="-"&&He[0]==="+"&&(De="+"),De===He[0])ue.push(He),K.index++;else break}return ue}function wt(K,ue){for(var De=[],He=[],Fe=0,ze=!1,qe=!1;Fe<ue.length&&K.index<K.lines.length;){var We=K.lines[K.index],_t=ue[Fe];if(_t[0]==="+")break;if(ze=ze||We[0]!==" ",He.push(_t),Fe++,We[0]==="+")for(qe=!0;We[0]==="+";)De.push(We),We=K.lines[++K.index];_t.substr(1)===We.substr(1)?(De.push(We),K.index++):qe=!0}if((ue[Fe]||"")[0]==="+"&&ze&&(qe=!0),qe)return De;for(;Fe<ue.length;)He.push(ue[Fe++]);return{merged:He,changes:De}}function Ut(K){return K.reduce(function(ue,De){return ue&&De[0]==="-"},!0)}function Ke(K,ue,De){for(var He=0;He<De;He++){var Fe=ue[ue.length-De+He].substr(1);if(K.lines[K.index+He]!==" "+Fe)return!1}return K.index+=De,!0}function it(K){var ue=0,De=0;return K.forEach(function(He){if(typeof He!="string"){var Fe=it(He.mine),ze=it(He.theirs);ue!==void 0&&(Fe.oldLines===ze.oldLines?ue+=Fe.oldLines:ue=void 0),De!==void 0&&(Fe.newLines===ze.newLines?De+=Fe.newLines:De=void 0)}else De!==void 0&&(He[0]==="+"||He[0]===" ")&&De++,ue!==void 0&&(He[0]==="-"||He[0]===" ")&&ue++}),{oldLines:ue,newLines:De}}function At(K){return Array.isArray(K)?K.map(At).reverse():A(A({},K),{},{oldFileName:K.newFileName,oldHeader:K.newHeader,newFileName:K.oldFileName,newHeader:K.oldHeader,hunks:K.hunks.map(function(ue){return{oldLines:ue.newLines,oldStart:ue.newStart,newLines:ue.oldLines,newStart:ue.oldStart,linedelimiters:ue.linedelimiters,lines:ue.lines.map(function(De){return De.startsWith("-")?"+".concat(De.slice(1)):De.startsWith("+")?"-".concat(De.slice(1)):De})}})})}function et(K){for(var ue=[],De,He,Fe=0;Fe<K.length;Fe++)De=K[Fe],De.added?He=1:De.removed?He=-1:He=0,ue.push([He,De.value]);return ue}function ee(K){for(var ue=[],De=0;De<K.length;De++){var He=K[De];He.added?ue.push("<ins>"):He.removed&&ue.push("<del>"),ue.push(I(He.value)),He.added?ue.push("</ins>"):He.removed&&ue.push("</del>")}return ue.join("")}function I(K){var ue=K;return ue=ue.replace(/&/g,"&"),ue=ue.replace(/</g,"<"),ue=ue.replace(/>/g,">"),ue=ue.replace(/"/g,"""),ue}},74486:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(30228);const l=i},54949:(J,g,t)=>{"use strict";t.d(g,{UD:()=>Te});var i={};t.r(i),t.d(i,{JsonPatchError:()=>R,_areEquals:()=>W,applyOperation:()=>A,applyPatch:()=>j,applyReducer:()=>ae,deepClone:()=>M,getValueByPointer:()=>T,validate:()=>N,validator:()=>_});var l={};t.r(l),t.d(l,{compare:()=>Te,generate:()=>V,observe:()=>H,unobserve:()=>re});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed */var s=function(){var ne=function(pe,ye){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,Ae){Se.__proto__=Ae}||function(Se,Ae){for(var Ee in Ae)Ae.hasOwnProperty(Ee)&&(Se[Ee]=Ae[Ee])},ne(pe,ye)};return function(pe,ye){ne(pe,ye);function Se(){this.constructor=pe}pe.prototype=ye===null?Object.create(ye):(Se.prototype=ye.prototype,new Se)}}(),m=Object.prototype.hasOwnProperty;function u(ne,pe){return m.call(ne,pe)}function f(ne){if(Array.isArray(ne)){for(var pe=new Array(ne.length),ye=0;ye<pe.length;ye++)pe[ye]=""+ye;return pe}if(Object.keys)return Object.keys(ne);var Se=[];for(var Ae in ne)u(ne,Ae)&&Se.push(Ae);return Se}function p(ne){switch(typeof ne){case"object":return JSON.parse(JSON.stringify(ne));case"undefined":return null;default:return ne}}function v(ne){for(var pe=0,ye=ne.length,Se;pe<ye;){if(Se=ne.charCodeAt(pe),Se>=48&&Se<=57){pe++;continue}return!1}return!0}function h(ne){return ne.indexOf("/")===-1&&ne.indexOf("~")===-1?ne:ne.replace(/~/g,"~0").replace(/\//g,"~1")}function d(ne){return ne.replace(/~1/g,"/").replace(/~0/g,"~")}function b(ne,pe){var ye;for(var Se in ne)if(u(ne,Se)){if(ne[Se]===pe)return h(Se)+"/";if(typeof ne[Se]=="object"&&(ye=b(ne[Se],pe),ye!=""))return h(Se)+"/"+ye}return""}function y(ne,pe){if(ne===pe)return"/";var ye=b(ne,pe);if(ye==="")throw new Error("Object not found in root");return"/"+ye}function w(ne){if(ne===void 0)return!0;if(ne){if(Array.isArray(ne)){for(var pe=0,ye=ne.length;pe<ye;pe++)if(w(ne[pe]))return!0}else if(typeof ne=="object"){for(var Se=f(ne),Ae=Se.length,Ee=0;Ee<Ae;Ee++)if(w(ne[Se[Ee]]))return!0}}return!1}function S(ne,pe){var ye=[ne];for(var Se in pe){var Ae=typeof pe[Se]=="object"?JSON.stringify(pe[Se],null,2):pe[Se];typeof Ae<"u"&&ye.push(Se+": "+Ae)}return ye.join(` `)}var O=function(ne){s(pe,ne);function pe(ye,Se,Ae,Ee,xe){var nt=this.constructor,Tt=ne.call(this,S(ye,{name:Se,index:Ae,operation:Ee,tree:xe}))||this;return Tt.name=Se,Tt.index=Ae,Tt.operation=Ee,Tt.tree=xe,Object.setPrototypeOf(Tt,nt.prototype),Tt.message=S(ye,{name:Se,index:Ae,operation:Ee,tree:xe}),Tt}return pe}(Error),R=O,M=p,D={add:function(ne,pe,ye){return ne[pe]=this.value,{newDocument:ye}},remove:function(ne,pe,ye){var Se=ne[pe];return delete ne[pe],{newDocument:ye,removed:Se}},replace:function(ne,pe,ye){var Se=ne[pe];return ne[pe]=this.value,{newDocument:ye,removed:Se}},move:function(ne,pe,ye){var Se=T(ye,this.path);Se&&(Se=p(Se));var Ae=A(ye,{op:"remove",path:this.from}).removed;return A(ye,{op:"add",path:this.path,value:Ae}),{newDocument:ye,removed:Se}},copy:function(ne,pe,ye){var Se=T(ye,this.from);return A(ye,{op:"add",path:this.path,value:p(Se)}),{newDocument:ye}},test:function(ne,pe,ye){return{newDocument:ye,test:W(ne[pe],this.value)}},_get:function(ne,pe,ye){return this.value=ne[pe],{newDocument:ye}}},P={add:function(ne,pe,ye){return v(pe)?ne.splice(pe,0,this.value):ne[pe]=this.value,{newDocument:ye,index:pe}},remove:function(ne,pe,ye){var Se=ne.splice(pe,1);return{newDocument:ye,removed:Se[0]}},replace:function(ne,pe,ye){var Se=ne[pe];return ne[pe]=this.value,{newDocument:ye,removed:Se}},move:D.move,copy:D.copy,test:D.test,_get:D._get};function T(ne,pe){if(pe=="")return ne;var ye={op:"_get",path:pe};return A(ne,ye),ye.value}function A(ne,pe,ye,Se,Ae,Ee){if(ye===void 0&&(ye=!1),Se===void 0&&(Se=!0),Ae===void 0&&(Ae=!0),Ee===void 0&&(Ee=0),ye&&(typeof ye=="function"?ye(pe,0,ne,pe.path):_(pe,0)),pe.path===""){var xe={newDocument:ne};if(pe.op==="add")return xe.newDocument=pe.value,xe;if(pe.op==="replace")return xe.newDocument=pe.value,xe.removed=ne,xe;if(pe.op==="move"||pe.op==="copy")return xe.newDocument=T(ne,pe.from),pe.op==="move"&&(xe.removed=ne),xe;if(pe.op==="test"){if(xe.test=W(ne,pe.value),xe.test===!1)throw new R("Test operation failed","TEST_OPERATION_FAILED",Ee,pe,ne);return xe.newDocument=ne,xe}else{if(pe.op==="remove")return xe.removed=ne,xe.newDocument=null,xe;if(pe.op==="_get")return pe.value=ne,xe;if(ye)throw new R("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",Ee,pe,ne);return xe}}else{Se||(ne=p(ne));var nt=pe.path||"",Tt=nt.split("/"),pt=ne,Rt=1,tt=Tt.length,U=void 0,F=void 0,Y=void 0;for(typeof ye=="function"?Y=ye:Y=_;;){if(F=Tt[Rt],F&&F.indexOf("~")!=-1&&(F=d(F)),Ae&&(F=="__proto__"||F=="prototype"&&Rt>0&&Tt[Rt-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(ye&&U===void 0&&(pt[F]===void 0?U=Tt.slice(0,Rt).join("/"):Rt==tt-1&&(U=pe.path),U!==void 0&&Y(pe,0,ne,U)),Rt++,Array.isArray(pt)){if(F==="-")F=pt.length;else{if(ye&&!v(F))throw new R("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",Ee,pe,ne);v(F)&&(F=~~F)}if(Rt>=tt){if(ye&&pe.op==="add"&&F>pt.length)throw new R("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",Ee,pe,ne);var xe=P[pe.op].call(pe,pt,F,ne);if(xe.test===!1)throw new R("Test operation failed","TEST_OPERATION_FAILED",Ee,pe,ne);return xe}}else if(Rt>=tt){var xe=D[pe.op].call(pe,pt,F,ne);if(xe.test===!1)throw new R("Test operation failed","TEST_OPERATION_FAILED",Ee,pe,ne);return xe}if(pt=pt[F],ye&&Rt<tt&&(!pt||typeof pt!="object"))throw new R("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",Ee,pe,ne)}}}function j(ne,pe,ye,Se,Ae){if(Se===void 0&&(Se=!0),Ae===void 0&&(Ae=!0),ye&&!Array.isArray(pe))throw new R("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");Se||(ne=p(ne));for(var Ee=new Array(pe.length),xe=0,nt=pe.length;xe<nt;xe++)Ee[xe]=A(ne,pe[xe],ye,!0,Ae,xe),ne=Ee[xe].newDocument;return Ee.newDocument=ne,Ee}function ae(ne,pe,ye){var Se=A(ne,pe);if(Se.test===!1)throw new R("Test operation failed","TEST_OPERATION_FAILED",ye,pe,ne);return Se.newDocument}function _(ne,pe,ye,Se){if(typeof ne!="object"||ne===null||Array.isArray(ne))throw new R("Operation is not an object","OPERATION_NOT_AN_OBJECT",pe,ne,ye);if(D[ne.op]){if(typeof ne.path!="string")throw new R("Operation `path` property is not a string","OPERATION_PATH_INVALID",pe,ne,ye);if(ne.path.indexOf("/")!==0&&ne.path.length>0)throw new R('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",pe,ne,ye);if((ne.op==="move"||ne.op==="copy")&&typeof ne.from!="string")throw new R("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",pe,ne,ye);if((ne.op==="add"||ne.op==="replace"||ne.op==="test")&&ne.value===void 0)throw new R("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",pe,ne,ye);if((ne.op==="add"||ne.op==="replace"||ne.op==="test")&&w(ne.value))throw new R("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",pe,ne,ye);if(ye){if(ne.op=="add"){var Ae=ne.path.split("/").length,Ee=Se.split("/").length;if(Ae!==Ee+1&&Ae!==Ee)throw new R("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",pe,ne,ye)}else if(ne.op==="replace"||ne.op==="remove"||ne.op==="_get"){if(ne.path!==Se)throw new R("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",pe,ne,ye)}else if(ne.op==="move"||ne.op==="copy"){var xe={op:"_get",path:ne.from,value:void 0},nt=N([xe],ye);if(nt&&nt.name==="OPERATION_PATH_UNRESOLVABLE")throw new R("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",pe,ne,ye)}}}else throw new R("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",pe,ne,ye)}function N(ne,pe,ye){try{if(!Array.isArray(ne))throw new R("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(pe)j(p(pe),p(ne),ye||!0);else{ye=ye||_;for(var Se=0;Se<ne.length;Se++)ye(ne[Se],Se,pe,void 0)}}catch(Ae){if(Ae instanceof R)return Ae;throw Ae}}function W(ne,pe){if(ne===pe)return!0;if(ne&&pe&&typeof ne=="object"&&typeof pe=="object"){var ye=Array.isArray(ne),Se=Array.isArray(pe),Ae,Ee,xe;if(ye&&Se){if(Ee=ne.length,Ee!=pe.length)return!1;for(Ae=Ee;Ae--!==0;)if(!W(ne[Ae],pe[Ae]))return!1;return!0}if(ye!=Se)return!1;var nt=Object.keys(ne);if(Ee=nt.length,Ee!==Object.keys(pe).length)return!1;for(Ae=Ee;Ae--!==0;)if(!pe.hasOwnProperty(nt[Ae]))return!1;for(Ae=Ee;Ae--!==0;)if(xe=nt[Ae],!W(ne[xe],pe[xe]))return!1;return!0}return ne!==ne&&pe!==pe}/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license */var he=new WeakMap,me=function(){function ne(pe){this.observers=new Map,this.obj=pe}return ne}(),fe=function(){function ne(pe,ye){this.callback=pe,this.observer=ye}return ne}();function ve(ne){return he.get(ne)}function ce(ne,pe){return ne.observers.get(pe)}function oe(ne,pe){ne.observers.delete(pe.callback)}function re(ne,pe){pe.unobserve()}function H(ne,pe){var ye=[],Se,Ae=ve(ne);if(!Ae)Ae=new me(ne),he.set(ne,Ae);else{var Ee=ce(Ae,pe);Se=Ee&&Ee.observer}if(Se)return Se;if(Se={},Ae.value=p(ne),pe){Se.callback=pe,Se.next=null;var xe=function(){V(Se)},nt=function(){clearTimeout(Se.next),Se.next=setTimeout(xe)};typeof window<"u"&&(window.addEventListener("mouseup",nt),window.addEventListener("keyup",nt),window.addEventListener("mousedown",nt),window.addEventListener("keydown",nt),window.addEventListener("change",nt))}return Se.patches=ye,Se.object=ne,Se.unobserve=function(){V(Se),clearTimeout(Se.next),oe(Ae,Se),typeof window<"u"&&(window.removeEventListener("mouseup",nt),window.removeEventListener("keyup",nt),window.removeEventListener("mousedown",nt),window.removeEventListener("keydown",nt),window.removeEventListener("change",nt))},Ae.observers.set(pe,new fe(pe,Se)),Se}function V(ne,pe){pe===void 0&&(pe=!1);var ye=he.get(ne.object);Q(ye.value,ne.object,ne.patches,"",pe),ne.patches.length&&j(ye.value,ne.patches);var Se=ne.patches;return Se.length>0&&(ne.patches=[],ne.callback&&ne.callback(Se)),Se}function Q(ne,pe,ye,Se,Ae){if(pe!==ne){typeof pe.toJSON=="function"&&(pe=pe.toJSON());for(var Ee=f(pe),xe=f(ne),nt=!1,Tt=!1,pt=xe.length-1;pt>=0;pt--){var Rt=xe[pt],tt=ne[Rt];if(u(pe,Rt)&&!(pe[Rt]===void 0&&tt!==void 0&&Array.isArray(pe)===!1)){var U=pe[Rt];typeof tt=="object"&&tt!=null&&typeof U=="object"&&U!=null&&Array.isArray(tt)===Array.isArray(U)?Q(tt,U,ye,Se+"/"+h(Rt),Ae):tt!==U&&(nt=!0,Ae&&ye.push({op:"test",path:Se+"/"+h(Rt),value:p(tt)}),ye.push({op:"replace",path:Se+"/"+h(Rt),value:p(U)}))}else Array.isArray(ne)===Array.isArray(pe)?(Ae&&ye.push({op:"test",path:Se+"/"+h(Rt),value:p(tt)}),ye.push({op:"remove",path:Se+"/"+h(Rt)}),Tt=!0):(Ae&&ye.push({op:"test",path:Se,value:ne}),ye.push({op:"replace",path:Se,value:pe}),nt=!0)}if(!(!Tt&&Ee.length==xe.length))for(var pt=0;pt<Ee.length;pt++){var Rt=Ee[pt];!u(ne,Rt)&&pe[Rt]!==void 0&&ye.push({op:"add",path:Se+"/"+h(Rt),value:p(pe[Rt])})}}}function Te(ne,pe,ye){ye===void 0&&(ye=!1);var Se=[];return Q(ne,pe,Se,"",ye),Se}const Re=Object.assign({},i,l,{JsonPatchError:O,deepClone:p,escapePathComponent:h,unescapePathComponent:d})},94997:(J,g,t)=>{"use strict";t.d(g,{A:()=>ae});var i=t(23029),l=t(92901),s=[],m=s.forEach,u=s.slice;function f(_){return m.call(u.call(arguments,1),function(N){if(N)for(var W in N)_[W]===void 0&&(_[W]=N[W])}),_}var p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,v=function(N,W,he){var me=he||{};me.path=me.path||"/";var fe=encodeURIComponent(W),ve="".concat(N,"=").concat(fe);if(me.maxAge>0){var ce=me.maxAge-0;if(Number.isNaN(ce))throw new Error("maxAge should be a Number");ve+="; Max-Age=".concat(Math.floor(ce))}if(me.domain){if(!p.test(me.domain))throw new TypeError("option domain is invalid");ve+="; Domain=".concat(me.domain)}if(me.path){if(!p.test(me.path))throw new TypeError("option path is invalid");ve+="; Path=".concat(me.path)}if(me.expires){if(typeof me.expires.toUTCString!="function")throw new TypeError("option expires is invalid");ve+="; Expires=".concat(me.expires.toUTCString())}if(me.httpOnly&&(ve+="; HttpOnly"),me.secure&&(ve+="; Secure"),me.sameSite){var oe=typeof me.sameSite=="string"?me.sameSite.toLowerCase():me.sameSite;switch(oe){case!0:ve+="; SameSite=Strict";break;case"lax":ve+="; SameSite=Lax";break;case"strict":ve+="; SameSite=Strict";break;case"none":ve+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return ve},h={create:function(N,W,he,me){var fe=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};he&&(fe.expires=new Date,fe.expires.setTime(fe.expires.getTime()+he*60*1e3)),me&&(fe.domain=me),document.cookie=v(N,encodeURIComponent(W),fe)},read:function(N){for(var W="".concat(N,"="),he=document.cookie.split(";"),me=0;me<he.length;me++){for(var fe=he[me];fe.charAt(0)===" ";)fe=fe.substring(1,fe.length);if(fe.indexOf(W)===0)return fe.substring(W.length,fe.length)}return null},remove:function(N){this.create(N,"",-1)}},d={name:"cookie",lookup:function(N){var W;if(N.lookupCookie&&typeof document<"u"){var he=h.read(N.lookupCookie);he&&(W=he)}return W},cacheUserLanguage:function(N,W){W.lookupCookie&&typeof document<"u"&&h.create(W.lookupCookie,N,W.cookieMinutes,W.cookieDomain,W.cookieOptions)}},b={name:"querystring",lookup:function(N){var W;if(typeof window<"u"){var he=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(he=window.location.hash.substring(window.location.hash.indexOf("?")));for(var me=he.substring(1),fe=me.split("&"),ve=0;ve<fe.length;ve++){var ce=fe[ve].indexOf("=");if(ce>0){var oe=fe[ve].substring(0,ce);oe===N.lookupQuerystring&&(W=fe[ve].substring(ce+1))}}}return W}},y=null,w=function(){if(y!==null)return y;try{y=window!=="undefined"&&window.localStorage!==null;var N="i18next.translate.boo";window.localStorage.setItem(N,"foo"),window.localStorage.removeItem(N)}catch{y=!1}return y},S={name:"localStorage",lookup:function(N){var W;if(N.lookupLocalStorage&&w()){var he=window.localStorage.getItem(N.lookupLocalStorage);he&&(W=he)}return W},cacheUserLanguage:function(N,W){W.lookupLocalStorage&&w()&&window.localStorage.setItem(W.lookupLocalStorage,N)}},O=null,R=function(){if(O!==null)return O;try{O=window!=="undefined"&&window.sessionStorage!==null;var N="i18next.translate.boo";window.sessionStorage.setItem(N,"foo"),window.sessionStorage.removeItem(N)}catch{O=!1}return O},M={name:"sessionStorage",lookup:function(N){var W;if(N.lookupSessionStorage&&R()){var he=window.sessionStorage.getItem(N.lookupSessionStorage);he&&(W=he)}return W},cacheUserLanguage:function(N,W){W.lookupSessionStorage&&R()&&window.sessionStorage.setItem(W.lookupSessionStorage,N)}},D={name:"navigator",lookup:function(N){var W=[];if(typeof navigator<"u"){if(navigator.languages)for(var he=0;he<navigator.languages.length;he++)W.push(navigator.languages[he]);navigator.userLanguage&&W.push(navigator.userLanguage),navigator.language&&W.push(navigator.language)}return W.length>0?W:void 0}},P={name:"htmlTag",lookup:function(N){var W,he=N.htmlTag||(typeof document<"u"?document.documentElement:null);return he&&typeof he.getAttribute=="function"&&(W=he.getAttribute("lang")),W}},T={name:"path",lookup:function(N){var W;if(typeof window<"u"){var he=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(he instanceof Array)if(typeof N.lookupFromPathIndex=="number"){if(typeof he[N.lookupFromPathIndex]!="string")return;W=he[N.lookupFromPathIndex].replace("/","")}else W=he[0].replace("/","")}return W}},A={name:"subdomain",lookup:function(N){var W=typeof N.lookupFromSubdomainIndex=="number"?N.lookupFromSubdomainIndex+1:1,he=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(he)return he[W]}};function j(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(N){return N}}}var ae=function(){function _(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,i.A)(this,_),this.type="languageDetector",this.detectors={},this.init(N,W)}return(0,l.A)(_,[{key:"init",value:function(W){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=W||{languageUtils:{}},this.options=f(he,this.options||{},j()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(fe){return fe.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=me,this.addDetector(d),this.addDetector(b),this.addDetector(S),this.addDetector(M),this.addDetector(D),this.addDetector(P),this.addDetector(T),this.addDetector(A)}},{key:"addDetector",value:function(W){this.detectors[W.name]=W}},{key:"detect",value:function(W){var he=this;W||(W=this.options.order);var me=[];return W.forEach(function(fe){if(he.detectors[fe]){var ve=he.detectors[fe].lookup(he.options);ve&&typeof ve=="string"&&(ve=[ve]),ve&&(me=me.concat(ve))}}),me=me.map(function(fe){return he.options.convertDetectedLanguage(fe)}),this.services.languageUtils.getBestMatchFromCodes?me:me.length>0?me[0]:null}},{key:"cacheUserLanguage",value:function(W,he){var me=this;he||(he=this.options.caches),he&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(W)>-1||he.forEach(function(fe){me.detectors[fe]&&me.detectors[fe].cacheUserLanguage(W,me.options)}))}}]),_}();ae.type="languageDetector"},72635:(J,g,t)=>{"use strict";t.r(g),t.d(g,{changeLanguage:()=>Ye,createInstance:()=>tt,default:()=>Rt,dir:()=>U,exists:()=>Ut,getFixedT:()=>ft,hasLoadedNamespace:()=>it,init:()=>F,loadLanguages:()=>et,loadNamespaces:()=>At,loadResources:()=>Y,reloadResources:()=>le,setDefaultNamespace:()=>Ke,t:()=>wt,use:()=>ke});const i={type:"logger",log(ee){this.output("log",ee)},warn(ee){this.output("warn",ee)},error(ee){this.output("error",ee)},output(ee,I){console&&console[ee]&&console[ee].apply(console,I)}};class l{constructor(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(I,K)}init(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=K.prefix||"i18next:",this.logger=I||i,this.options=K,this.debug=K.debug}log(){for(var I=arguments.length,K=new Array(I),ue=0;ue<I;ue++)K[ue]=arguments[ue];return this.forward(K,"log","",!0)}warn(){for(var I=arguments.length,K=new Array(I),ue=0;ue<I;ue++)K[ue]=arguments[ue];return this.forward(K,"warn","",!0)}error(){for(var I=arguments.length,K=new Array(I),ue=0;ue<I;ue++)K[ue]=arguments[ue];return this.forward(K,"error","")}deprecate(){for(var I=arguments.length,K=new Array(I),ue=0;ue<I;ue++)K[ue]=arguments[ue];return this.forward(K,"warn","WARNING DEPRECATED: ",!0)}forward(I,K,ue,De){return De&&!this.debug?null:(typeof I[0]=="string"&&(I[0]=`${ue}${this.prefix} ${I[0]}`),this.logger[K](I))}create(I){return new l(this.logger,{prefix:`${this.prefix}:${I}:`,...this.options})}clone(I){return I=I||this.options,I.prefix=I.prefix||this.prefix,new l(this.logger,I)}}var s=new l;class m{constructor(){this.observers={}}on(I,K){return I.split(" ").forEach(ue=>{this.observers[ue]||(this.observers[ue]=new Map);const De=this.observers[ue].get(K)||0;this.observers[ue].set(K,De+1)}),this}off(I,K){if(this.observers[I]){if(!K){delete this.observers[I];return}this.observers[I].delete(K)}}emit(I){for(var K=arguments.length,ue=new Array(K>1?K-1:0),De=1;De<K;De++)ue[De-1]=arguments[De];this.observers[I]&&Array.from(this.observers[I].entries()).forEach(Fe=>{let[ze,qe]=Fe;for(let We=0;We<qe;We++)ze(...ue)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(Fe=>{let[ze,qe]=Fe;for(let We=0;We<qe;We++)ze.apply(ze,[I,...ue])})}}function u(){let ee,I;const K=new Promise((ue,De)=>{ee=ue,I=De});return K.resolve=ee,K.reject=I,K}function f(ee){return ee==null?"":""+ee}function p(ee,I,K){ee.forEach(ue=>{I[ue]&&(K[ue]=I[ue])})}const v=/###/g;function h(ee,I,K){function ue(ze){return ze&&ze.indexOf("###")>-1?ze.replace(v,"."):ze}function De(){return!ee||typeof ee=="string"}const He=typeof I!="string"?I:I.split(".");let Fe=0;for(;Fe<He.length-1;){if(De())return{};const ze=ue(He[Fe]);!ee[ze]&&K&&(ee[ze]=new K),Object.prototype.hasOwnProperty.call(ee,ze)?ee=ee[ze]:ee={},++Fe}return De()?{}:{obj:ee,k:ue(He[Fe])}}function d(ee,I,K){const{obj:ue,k:De}=h(ee,I,Object);if(ue!==void 0||I.length===1){ue[De]=K;return}let He=I[I.length-1],Fe=I.slice(0,I.length-1),ze=h(ee,Fe,Object);for(;ze.obj===void 0&&Fe.length;)He=`${Fe[Fe.length-1]}.${He}`,Fe=Fe.slice(0,Fe.length-1),ze=h(ee,Fe,Object),ze&&ze.obj&&typeof ze.obj[`${ze.k}.${He}`]<"u"&&(ze.obj=void 0);ze.obj[`${ze.k}.${He}`]=K}function b(ee,I,K,ue){const{obj:De,k:He}=h(ee,I,Object);De[He]=De[He]||[],ue&&(De[He]=De[He].concat(K)),ue||De[He].push(K)}function y(ee,I){const{obj:K,k:ue}=h(ee,I);if(K)return K[ue]}function w(ee,I,K){const ue=y(ee,K);return ue!==void 0?ue:y(I,K)}function S(ee,I,K){for(const ue in I)ue!=="__proto__"&&ue!=="constructor"&&(ue in ee?typeof ee[ue]=="string"||ee[ue]instanceof String||typeof I[ue]=="string"||I[ue]instanceof String?K&&(ee[ue]=I[ue]):S(ee[ue],I[ue],K):ee[ue]=I[ue]);return ee}function O(ee){return ee.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var R={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function M(ee){return typeof ee=="string"?ee.replace(/[&<>"'\/]/g,I=>R[I]):ee}class D{constructor(I){this.capacity=I,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(I){const K=this.regExpMap.get(I);if(K!==void 0)return K;const ue=new RegExp(I);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(I,ue),this.regExpQueue.push(I),ue}}const P=[" ",",","?","!",";"],T=new D(20);function A(ee,I,K){I=I||"",K=K||"";const ue=P.filter(Fe=>I.indexOf(Fe)<0&&K.indexOf(Fe)<0);if(ue.length===0)return!0;const De=T.getRegExp(`(${ue.map(Fe=>Fe==="?"?"\\?":Fe).join("|")})`);let He=!De.test(ee);if(!He){const Fe=ee.indexOf(K);Fe>0&&!De.test(ee.substring(0,Fe))&&(He=!0)}return He}function j(ee,I){let K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!ee)return;if(ee[I])return ee[I];const ue=I.split(K);let De=ee;for(let He=0;He<ue.length;){if(!De||typeof De!="object")return;let Fe,ze="";for(let qe=He;qe<ue.length;++qe)if(qe!==He&&(ze+=K),ze+=ue[qe],Fe=De[ze],Fe!==void 0){if(["string","number","boolean"].indexOf(typeof Fe)>-1&&qe<ue.length-1)continue;He+=qe-He+1;break}De=Fe}return De}function ae(ee){return ee&&ee.indexOf("_")>0?ee.replace("_","-"):ee}class _ extends m{constructor(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=I||{},this.options=K,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(I){this.options.ns.indexOf(I)<0&&this.options.ns.push(I)}removeNamespaces(I){const K=this.options.ns.indexOf(I);K>-1&&this.options.ns.splice(K,1)}getResource(I,K,ue){let De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const He=De.keySeparator!==void 0?De.keySeparator:this.options.keySeparator,Fe=De.ignoreJSONStructure!==void 0?De.ignoreJSONStructure:this.options.ignoreJSONStructure;let ze;I.indexOf(".")>-1?ze=I.split("."):(ze=[I,K],ue&&(Array.isArray(ue)?ze.push(...ue):typeof ue=="string"&&He?ze.push(...ue.split(He)):ze.push(ue)));const qe=y(this.data,ze);return!qe&&!K&&!ue&&I.indexOf(".")>-1&&(I=ze[0],K=ze[1],ue=ze.slice(2).join(".")),qe||!Fe||typeof ue!="string"?qe:j(this.data&&this.data[I]&&this.data[I][K],ue,He)}addResource(I,K,ue,De){let He=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const Fe=He.keySeparator!==void 0?He.keySeparator:this.options.keySeparator;let ze=[I,K];ue&&(ze=ze.concat(Fe?ue.split(Fe):ue)),I.indexOf(".")>-1&&(ze=I.split("."),De=K,K=ze[1]),this.addNamespaces(K),d(this.data,ze,De),He.silent||this.emit("added",I,K,ue,De)}addResources(I,K,ue){let De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const He in ue)(typeof ue[He]=="string"||Object.prototype.toString.apply(ue[He])==="[object Array]")&&this.addResource(I,K,He,ue[He],{silent:!0});De.silent||this.emit("added",I,K,ue)}addResourceBundle(I,K,ue,De,He){let Fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},ze=[I,K];I.indexOf(".")>-1&&(ze=I.split("."),De=ue,ue=K,K=ze[1]),this.addNamespaces(K);let qe=y(this.data,ze)||{};De?S(qe,ue,He):qe={...qe,...ue},d(this.data,ze,qe),Fe.silent||this.emit("added",I,K,ue)}removeResourceBundle(I,K){this.hasResourceBundle(I,K)&&delete this.data[I][K],this.removeNamespaces(K),this.emit("removed",I,K)}hasResourceBundle(I,K){return this.getResource(I,K)!==void 0}getResourceBundle(I,K){return K||(K=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(I,K)}:this.getResource(I,K)}getDataByLanguage(I){return this.data[I]}hasLanguageSomeTranslations(I){const K=this.getDataByLanguage(I);return!!(K&&Object.keys(K)||[]).find(De=>K[De]&&Object.keys(K[De]).length>0)}toJSON(){return this.data}}var N={processors:{},addPostProcessor(ee){this.processors[ee.name]=ee},handle(ee,I,K,ue,De){return ee.forEach(He=>{this.processors[He]&&(I=this.processors[He].process(I,K,ue,De))}),I}};const W={};class he extends m{constructor(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),p(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],I,this),this.options=K,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=s.create("translator")}changeLanguage(I){I&&(this.language=I)}exists(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(I==null)return!1;const ue=this.resolve(I,K);return ue&&ue.res!==void 0}extractFromKey(I,K){let ue=K.nsSeparator!==void 0?K.nsSeparator:this.options.nsSeparator;ue===void 0&&(ue=":");const De=K.keySeparator!==void 0?K.keySeparator:this.options.keySeparator;let He=K.ns||this.options.defaultNS||[];const Fe=ue&&I.indexOf(ue)>-1,ze=!this.options.userDefinedKeySeparator&&!K.keySeparator&&!this.options.userDefinedNsSeparator&&!K.nsSeparator&&!A(I,ue,De);if(Fe&&!ze){const qe=I.match(this.interpolator.nestingRegexp);if(qe&&qe.length>0)return{key:I,namespaces:He};const We=I.split(ue);(ue!==De||ue===De&&this.options.ns.indexOf(We[0])>-1)&&(He=We.shift()),I=We.join(De)}return typeof He=="string"&&(He=[He]),{key:I,namespaces:He}}translate(I,K,ue){if(typeof K!="object"&&this.options.overloadTranslationOptionHandler&&(K=this.options.overloadTranslationOptionHandler(arguments)),typeof K=="object"&&(K={...K}),K||(K={}),I==null)return"";Array.isArray(I)||(I=[String(I)]);const De=K.returnDetails!==void 0?K.returnDetails:this.options.returnDetails,He=K.keySeparator!==void 0?K.keySeparator:this.options.keySeparator,{key:Fe,namespaces:ze}=this.extractFromKey(I[I.length-1],K),qe=ze[ze.length-1],We=K.lng||this.language,_t=K.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(We&&We.toLowerCase()==="cimode"){if(_t){const Bt=K.nsSeparator||this.options.nsSeparator;return De?{res:`${qe}${Bt}${Fe}`,usedKey:Fe,exactUsedKey:Fe,usedLng:We,usedNS:qe,usedParams:this.getUsedParamsDetails(K)}:`${qe}${Bt}${Fe}`}return De?{res:Fe,usedKey:Fe,exactUsedKey:Fe,usedLng:We,usedNS:qe,usedParams:this.getUsedParamsDetails(K)}:Fe}const ct=this.resolve(I,K);let Ge=ct&&ct.res;const st=ct&&ct.usedKey||Fe,Me=ct&&ct.exactUsedKey||Fe,ie=Object.prototype.toString.apply(Ge),ge=["[object Number]","[object Function]","[object RegExp]"],z=K.joinArrays!==void 0?K.joinArrays:this.options.joinArrays,be=!this.i18nFormat||this.i18nFormat.handleAsObject;if(be&&Ge&&(typeof Ge!="string"&&typeof Ge!="boolean"&&typeof Ge!="number")&&ge.indexOf(ie)<0&&!(typeof z=="string"&&ie==="[object Array]")){if(!K.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Bt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(st,Ge,{...K,ns:ze}):`key '${Fe} (${this.language})' returned an object instead of string.`;return De?(ct.res=Bt,ct.usedParams=this.getUsedParamsDetails(K),ct):Bt}if(He){const Bt=ie==="[object Array]",nn=Bt?[]:{},bt=Bt?Me:st;for(const at in Ge)if(Object.prototype.hasOwnProperty.call(Ge,at)){const $t=`${bt}${He}${at}`;nn[at]=this.translate($t,{...K,joinArrays:!1,ns:ze}),nn[at]===$t&&(nn[at]=Ge[at])}Ge=nn}}else if(be&&typeof z=="string"&&ie==="[object Array]")Ge=Ge.join(z),Ge&&(Ge=this.extendTranslation(Ge,I,K,ue));else{let Bt=!1,nn=!1;const bt=K.count!==void 0&&typeof K.count!="string",at=he.hasDefaultValue(K),$t=bt?this.pluralResolver.getSuffix(We,K.count,K):"",On=K.ordinal&&bt?this.pluralResolver.getSuffix(We,K.count,{ordinal:!1}):"",Ct=bt&&!K.ordinal&&K.count===0&&this.pluralResolver.shouldUseIntlApi(),Zt=Ct&&K[`defaultValue${this.options.pluralSeparator}zero`]||K[`defaultValue${$t}`]||K[`defaultValue${On}`]||K.defaultValue;!this.isValidLookup(Ge)&&at&&(Bt=!0,Ge=Zt),this.isValidLookup(Ge)||(nn=!0,Ge=Fe);const Zn=(K.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&nn?void 0:Ge,xt=at&&Zt!==Ge&&this.options.updateMissing;if(nn||Bt||xt){if(this.logger.log(xt?"updateKey":"missingKey",We,qe,Fe,xt?Zt:Ge),He){const Dt=this.resolve(Fe,{...K,keySeparator:!1});Dt&&Dt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Xe=[];const gn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,K.lng||this.language);if(this.options.saveMissingTo==="fallback"&&gn&&gn[0])for(let Dt=0;Dt<gn.length;Dt++)Xe.push(gn[Dt]);else this.options.saveMissingTo==="all"?Xe=this.languageUtils.toResolveHierarchy(K.lng||this.language):Xe.push(K.lng||this.language);const Qt=(Dt,hn,cn)=>{const an=at&&cn!==Ge?cn:Zn;this.options.missingKeyHandler?this.options.missingKeyHandler(Dt,qe,hn,an,xt,K):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Dt,qe,hn,an,xt,K),this.emit("missingKey",Dt,qe,hn,Ge)};this.options.saveMissing&&(this.options.saveMissingPlurals&&bt?Xe.forEach(Dt=>{const hn=this.pluralResolver.getSuffixes(Dt,K);Ct&&K[`defaultValue${this.options.pluralSeparator}zero`]&&hn.indexOf(`${this.options.pluralSeparator}zero`)<0&&hn.push(`${this.options.pluralSeparator}zero`),hn.forEach(cn=>{Qt([Dt],Fe+cn,K[`defaultValue${cn}`]||Zt)})}):Qt(Xe,Fe,Zt))}Ge=this.extendTranslation(Ge,I,K,ct,ue),nn&&Ge===Fe&&this.options.appendNamespaceToMissingKey&&(Ge=`${qe}:${Fe}`),(nn||Bt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?Ge=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${qe}:${Fe}`:Fe,Bt?Ge:void 0):Ge=this.options.parseMissingKeyHandler(Ge))}return De?(ct.res=Ge,ct.usedParams=this.getUsedParamsDetails(K),ct):Ge}extendTranslation(I,K,ue,De,He){var Fe=this;if(this.i18nFormat&&this.i18nFormat.parse)I=this.i18nFormat.parse(I,{...this.options.interpolation.defaultVariables,...ue},ue.lng||this.language||De.usedLng,De.usedNS,De.usedKey,{resolved:De});else if(!ue.skipInterpolation){ue.interpolation&&this.interpolator.init({...ue,interpolation:{...this.options.interpolation,...ue.interpolation}});const We=typeof I=="string"&&(ue&&ue.interpolation&&ue.interpolation.skipOnVariables!==void 0?ue.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let _t;if(We){const Ge=I.match(this.interpolator.nestingRegexp);_t=Ge&&Ge.length}let ct=ue.replace&&typeof ue.replace!="string"?ue.replace:ue;if(this.options.interpolation.defaultVariables&&(ct={...this.options.interpolation.defaultVariables,...ct}),I=this.interpolator.interpolate(I,ct,ue.lng||this.language,ue),We){const Ge=I.match(this.interpolator.nestingRegexp),st=Ge&&Ge.length;_t<st&&(ue.nest=!1)}!ue.lng&&this.options.compatibilityAPI!=="v1"&&De&&De.res&&(ue.lng=De.usedLng),ue.nest!==!1&&(I=this.interpolator.nest(I,function(){for(var Ge=arguments.length,st=new Array(Ge),Me=0;Me<Ge;Me++)st[Me]=arguments[Me];return He&&He[0]===st[0]&&!ue.context?(Fe.logger.warn(`It seems you are nesting recursively key: ${st[0]} in key: ${K[0]}`),null):Fe.translate(...st,K)},ue)),ue.interpolation&&this.interpolator.reset()}const ze=ue.postProcess||this.options.postProcess,qe=typeof ze=="string"?[ze]:ze;return I!=null&&qe&&qe.length&&ue.applyPostProcessor!==!1&&(I=N.handle(qe,I,K,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...De,usedParams:this.getUsedParamsDetails(ue)},...ue}:ue,this)),I}resolve(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue,De,He,Fe,ze;return typeof I=="string"&&(I=[I]),I.forEach(qe=>{if(this.isValidLookup(ue))return;const We=this.extractFromKey(qe,K),_t=We.key;De=_t;let ct=We.namespaces;this.options.fallbackNS&&(ct=ct.concat(this.options.fallbackNS));const Ge=K.count!==void 0&&typeof K.count!="string",st=Ge&&!K.ordinal&&K.count===0&&this.pluralResolver.shouldUseIntlApi(),Me=K.context!==void 0&&(typeof K.context=="string"||typeof K.context=="number")&&K.context!=="",ie=K.lngs?K.lngs:this.languageUtils.toResolveHierarchy(K.lng||this.language,K.fallbackLng);ct.forEach(ge=>{this.isValidLookup(ue)||(ze=ge,!W[`${ie[0]}-${ge}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(ze)&&(W[`${ie[0]}-${ge}`]=!0,this.logger.warn(`key "${De}" for languages "${ie.join(", ")}" won't get resolved as namespace "${ze}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ie.forEach(z=>{if(this.isValidLookup(ue))return;Fe=z;const be=[_t];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(be,_t,z,ge,K);else{let Bt;Ge&&(Bt=this.pluralResolver.getSuffix(z,K.count,K));const nn=`${this.options.pluralSeparator}zero`,bt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(Ge&&(be.push(_t+Bt),K.ordinal&&Bt.indexOf(bt)===0&&be.push(_t+Bt.replace(bt,this.options.pluralSeparator)),st&&be.push(_t+nn)),Me){const at=`${_t}${this.options.contextSeparator}${K.context}`;be.push(at),Ge&&(be.push(at+Bt),K.ordinal&&Bt.indexOf(bt)===0&&be.push(at+Bt.replace(bt,this.options.pluralSeparator)),st&&be.push(at+nn))}}let Qe;for(;Qe=be.pop();)this.isValidLookup(ue)||(He=Qe,ue=this.getResource(z,ge,Qe,K))}))})}),{res:ue,usedKey:De,exactUsedKey:He,usedLng:Fe,usedNS:ze}}isValidLookup(I){return I!==void 0&&!(!this.options.returnNull&&I===null)&&!(!this.options.returnEmptyString&&I==="")}getResource(I,K,ue){let De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(I,K,ue,De):this.resourceStore.getResource(I,K,ue,De)}getUsedParamsDetails(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const K=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],ue=I.replace&&typeof I.replace!="string";let De=ue?I.replace:I;if(ue&&typeof I.count<"u"&&(De.count=I.count),this.options.interpolation.defaultVariables&&(De={...this.options.interpolation.defaultVariables,...De}),!ue){De={...De};for(const He of K)delete De[He]}return De}static hasDefaultValue(I){const K="defaultValue";for(const ue in I)if(Object.prototype.hasOwnProperty.call(I,ue)&&K===ue.substring(0,K.length)&&I[ue]!==void 0)return!0;return!1}}function me(ee){return ee.charAt(0).toUpperCase()+ee.slice(1)}class fe{constructor(I){this.options=I,this.supportedLngs=this.options.supportedLngs||!1,this.logger=s.create("languageUtils")}getScriptPartFromCode(I){if(I=ae(I),!I||I.indexOf("-")<0)return null;const K=I.split("-");return K.length===2||(K.pop(),K[K.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(K.join("-"))}getLanguagePartFromCode(I){if(I=ae(I),!I||I.indexOf("-")<0)return I;const K=I.split("-");return this.formatLanguageCode(K[0])}formatLanguageCode(I){if(typeof I=="string"&&I.indexOf("-")>-1){const K=["hans","hant","latn","cyrl","cans","mong","arab"];let ue=I.split("-");return this.options.lowerCaseLng?ue=ue.map(De=>De.toLowerCase()):ue.length===2?(ue[0]=ue[0].toLowerCase(),ue[1]=ue[1].toUpperCase(),K.indexOf(ue[1].toLowerCase())>-1&&(ue[1]=me(ue[1].toLowerCase()))):ue.length===3&&(ue[0]=ue[0].toLowerCase(),ue[1].length===2&&(ue[1]=ue[1].toUpperCase()),ue[0]!=="sgn"&&ue[2].length===2&&(ue[2]=ue[2].toUpperCase()),K.indexOf(ue[1].toLowerCase())>-1&&(ue[1]=me(ue[1].toLowerCase())),K.indexOf(ue[2].toLowerCase())>-1&&(ue[2]=me(ue[2].toLowerCase()))),ue.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?I.toLowerCase():I}isSupportedCode(I){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(I=this.getLanguagePartFromCode(I)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(I)>-1}getBestMatchFromCodes(I){if(!I)return null;let K;return I.forEach(ue=>{if(K)return;const De=this.formatLanguageCode(ue);(!this.options.supportedLngs||this.isSupportedCode(De))&&(K=De)}),!K&&this.options.supportedLngs&&I.forEach(ue=>{if(K)return;const De=this.getLanguagePartFromCode(ue);if(this.isSupportedCode(De))return K=De;K=this.options.supportedLngs.find(He=>{if(He===De)return He;if(!(He.indexOf("-")<0&&De.indexOf("-")<0)&&He.indexOf(De)===0)return He})}),K||(K=this.getFallbackCodes(this.options.fallbackLng)[0]),K}getFallbackCodes(I,K){if(!I)return[];if(typeof I=="function"&&(I=I(K)),typeof I=="string"&&(I=[I]),Object.prototype.toString.apply(I)==="[object Array]")return I;if(!K)return I.default||[];let ue=I[K];return ue||(ue=I[this.getScriptPartFromCode(K)]),ue||(ue=I[this.formatLanguageCode(K)]),ue||(ue=I[this.getLanguagePartFromCode(K)]),ue||(ue=I.default),ue||[]}toResolveHierarchy(I,K){const ue=this.getFallbackCodes(K||this.options.fallbackLng||[],I),De=[],He=Fe=>{Fe&&(this.isSupportedCode(Fe)?De.push(Fe):this.logger.warn(`rejecting language code not found in supportedLngs: ${Fe}`))};return typeof I=="string"&&(I.indexOf("-")>-1||I.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&He(this.formatLanguageCode(I)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&He(this.getScriptPartFromCode(I)),this.options.load!=="currentOnly"&&He(this.getLanguagePartFromCode(I))):typeof I=="string"&&He(this.formatLanguageCode(I)),ue.forEach(Fe=>{De.indexOf(Fe)<0&&He(this.formatLanguageCode(Fe))}),De}}let ve=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ce={1:function(ee){return+(ee>1)},2:function(ee){return+(ee!=1)},3:function(ee){return 0},4:function(ee){return ee%10==1&&ee%100!=11?0:ee%10>=2&&ee%10<=4&&(ee%100<10||ee%100>=20)?1:2},5:function(ee){return ee==0?0:ee==1?1:ee==2?2:ee%100>=3&&ee%100<=10?3:ee%100>=11?4:5},6:function(ee){return ee==1?0:ee>=2&&ee<=4?1:2},7:function(ee){return ee==1?0:ee%10>=2&&ee%10<=4&&(ee%100<10||ee%100>=20)?1:2},8:function(ee){return ee==1?0:ee==2?1:ee!=8&&ee!=11?2:3},9:function(ee){return+(ee>=2)},10:function(ee){return ee==1?0:ee==2?1:ee<7?2:ee<11?3:4},11:function(ee){return ee==1||ee==11?0:ee==2||ee==12?1:ee>2&&ee<20?2:3},12:function(ee){return+(ee%10!=1||ee%100==11)},13:function(ee){return+(ee!==0)},14:function(ee){return ee==1?0:ee==2?1:ee==3?2:3},15:function(ee){return ee%10==1&&ee%100!=11?0:ee%10>=2&&(ee%100<10||ee%100>=20)?1:2},16:function(ee){return ee%10==1&&ee%100!=11?0:ee!==0?1:2},17:function(ee){return ee==1||ee%10==1&&ee%100!=11?0:1},18:function(ee){return ee==0?0:ee==1?1:2},19:function(ee){return ee==1?0:ee==0||ee%100>1&&ee%100<11?1:ee%100>10&&ee%100<20?2:3},20:function(ee){return ee==1?0:ee==0||ee%100>0&&ee%100<20?1:2},21:function(ee){return ee%100==1?1:ee%100==2?2:ee%100==3||ee%100==4?3:0},22:function(ee){return ee==1?0:ee==2?1:(ee<0||ee>10)&&ee%10==0?2:3}};const oe=["v1","v2","v3"],re=["v4"],H={zero:0,one:1,two:2,few:3,many:4,other:5};function V(){const ee={};return ve.forEach(I=>{I.lngs.forEach(K=>{ee[K]={numbers:I.nr,plurals:ce[I.fc]}})}),ee}class Q{constructor(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=I,this.options=K,this.logger=s.create("pluralResolver"),(!this.options.compatibilityJSON||re.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=V()}addRule(I,K){this.rules[I]=K}getRule(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ae(I==="dev"?"en":I),{type:K.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[I]||this.rules[this.languageUtils.getLanguagePartFromCode(I)]}needsPlural(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ue=this.getRule(I,K);return this.shouldUseIntlApi()?ue&&ue.resolvedOptions().pluralCategories.length>1:ue&&ue.numbers.length>1}getPluralFormsOfKey(I,K){let ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(I,ue).map(De=>`${K}${De}`)}getSuffixes(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ue=this.getRule(I,K);return ue?this.shouldUseIntlApi()?ue.resolvedOptions().pluralCategories.sort((De,He)=>H[De]-H[He]).map(De=>`${this.options.prepend}${K.ordinal?`ordinal${this.options.prepend}`:""}${De}`):ue.numbers.map(De=>this.getSuffix(I,De,K)):[]}getSuffix(I,K){let ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const De=this.getRule(I,ue);return De?this.shouldUseIntlApi()?`${this.options.prepend}${ue.ordinal?`ordinal${this.options.prepend}`:""}${De.select(K)}`:this.getSuffixRetroCompatible(De,K):(this.logger.warn(`no plural rule found for: ${I}`),"")}getSuffixRetroCompatible(I,K){const ue=I.noAbs?I.plurals(K):I.plurals(Math.abs(K));let De=I.numbers[ue];this.options.simplifyPluralSuffix&&I.numbers.length===2&&I.numbers[0]===1&&(De===2?De="plural":De===1&&(De=""));const He=()=>this.options.prepend&&De.toString()?this.options.prepend+De.toString():De.toString();return this.options.compatibilityJSON==="v1"?De===1?"":typeof De=="number"?`_plural_${De.toString()}`:He():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&I.numbers.length===2&&I.numbers[0]===1?He():this.options.prepend&&ue.toString()?this.options.prepend+ue.toString():ue.toString()}shouldUseIntlApi(){return!oe.includes(this.options.compatibilityJSON)}}function Te(ee,I,K){let ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",De=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,He=w(ee,I,K);return!He&&De&&typeof K=="string"&&(He=j(ee,K,ue),He===void 0&&(He=j(I,K,ue))),He}class Re{constructor(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=s.create("interpolator"),this.options=I,this.format=I.interpolation&&I.interpolation.format||(K=>K),this.init(I)}init(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};I.interpolation||(I.interpolation={escapeValue:!0});const K=I.interpolation;this.escape=K.escape!==void 0?K.escape:M,this.escapeValue=K.escapeValue!==void 0?K.escapeValue:!0,this.useRawValueToEscape=K.useRawValueToEscape!==void 0?K.useRawValueToEscape:!1,this.prefix=K.prefix?O(K.prefix):K.prefixEscaped||"{{",this.suffix=K.suffix?O(K.suffix):K.suffixEscaped||"}}",this.formatSeparator=K.formatSeparator?K.formatSeparator:K.formatSeparator||",",this.unescapePrefix=K.unescapeSuffix?"":K.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":K.unescapeSuffix||"",this.nestingPrefix=K.nestingPrefix?O(K.nestingPrefix):K.nestingPrefixEscaped||O("$t("),this.nestingSuffix=K.nestingSuffix?O(K.nestingSuffix):K.nestingSuffixEscaped||O(")"),this.nestingOptionsSeparator=K.nestingOptionsSeparator?K.nestingOptionsSeparator:K.nestingOptionsSeparator||",",this.maxReplaces=K.maxReplaces?K.maxReplaces:1e3,this.alwaysFormat=K.alwaysFormat!==void 0?K.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const I=(K,ue)=>K&&K.source===ue?(K.lastIndex=0,K):new RegExp(ue,"g");this.regexp=I(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=I(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=I(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(I,K,ue,De){let He,Fe,ze;const qe=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function We(Me){return Me.replace(/\$/g,"$$$$")}const _t=Me=>{if(Me.indexOf(this.formatSeparator)<0){const be=Te(K,qe,Me,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(be,void 0,ue,{...De,...K,interpolationkey:Me}):be}const ie=Me.split(this.formatSeparator),ge=ie.shift().trim(),z=ie.join(this.formatSeparator).trim();return this.format(Te(K,qe,ge,this.options.keySeparator,this.options.ignoreJSONStructure),z,ue,{...De,...K,interpolationkey:ge})};this.resetRegExp();const ct=De&&De.missingInterpolationHandler||this.options.missingInterpolationHandler,Ge=De&&De.interpolation&&De.interpolation.skipOnVariables!==void 0?De.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Me=>We(Me)},{regex:this.regexp,safeValue:Me=>this.escapeValue?We(this.escape(Me)):We(Me)}].forEach(Me=>{for(ze=0;He=Me.regex.exec(I);){const ie=He[1].trim();if(Fe=_t(ie),Fe===void 0)if(typeof ct=="function"){const z=ct(I,He,De);Fe=typeof z=="string"?z:""}else if(De&&Object.prototype.hasOwnProperty.call(De,ie))Fe="";else if(Ge){Fe=He[0];continue}else this.logger.warn(`missed to pass in variable ${ie} for interpolating ${I}`),Fe="";else typeof Fe!="string"&&!this.useRawValueToEscape&&(Fe=f(Fe));const ge=Me.safeValue(Fe);if(I=I.replace(He[0],ge),Ge?(Me.regex.lastIndex+=Fe.length,Me.regex.lastIndex-=He[0].length):Me.regex.lastIndex=0,ze++,ze>=this.maxReplaces)break}}),I}nest(I,K){let ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De,He,Fe;function ze(qe,We){const _t=this.nestingOptionsSeparator;if(qe.indexOf(_t)<0)return qe;const ct=qe.split(new RegExp(`${_t}[ ]*{`));let Ge=`{${ct[1]}`;qe=ct[0],Ge=this.interpolate(Ge,Fe);const st=Ge.match(/'/g),Me=Ge.match(/"/g);(st&&st.length%2===0&&!Me||Me.length%2!==0)&&(Ge=Ge.replace(/'/g,'"'));try{Fe=JSON.parse(Ge),We&&(Fe={...We,...Fe})}catch(ie){return this.logger.warn(`failed parsing options string in nesting for key ${qe}`,ie),`${qe}${_t}${Ge}`}return delete Fe.defaultValue,qe}for(;De=this.nestingRegexp.exec(I);){let qe=[];Fe={...ue},Fe=Fe.replace&&typeof Fe.replace!="string"?Fe.replace:Fe,Fe.applyPostProcessor=!1,delete Fe.defaultValue;let We=!1;if(De[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(De[1])){const _t=De[1].split(this.formatSeparator).map(ct=>ct.trim());De[1]=_t.shift(),qe=_t,We=!0}if(He=K(ze.call(this,De[1].trim(),Fe),Fe),He&&De[0]===I&&typeof He!="string")return He;typeof He!="string"&&(He=f(He)),He||(this.logger.warn(`missed to resolve ${De[1]} for nesting ${I}`),He=""),We&&(He=qe.reduce((_t,ct)=>this.format(_t,ct,ue.lng,{...ue,interpolationkey:De[1].trim()}),He.trim())),I=I.replace(De[0],He),this.regexp.lastIndex=0}return I}}function ne(ee){let I=ee.toLowerCase().trim();const K={};if(ee.indexOf("(")>-1){const ue=ee.split("(");I=ue[0].toLowerCase().trim();const De=ue[1].substring(0,ue[1].length-1);I==="currency"&&De.indexOf(":")<0?K.currency||(K.currency=De.trim()):I==="relativetime"&&De.indexOf(":")<0?K.range||(K.range=De.trim()):De.split(";").forEach(Fe=>{if(!Fe)return;const[ze,...qe]=Fe.split(":"),We=qe.join(":").trim().replace(/^'+|'+$/g,"");K[ze.trim()]||(K[ze.trim()]=We),We==="false"&&(K[ze.trim()]=!1),We==="true"&&(K[ze.trim()]=!0),isNaN(We)||(K[ze.trim()]=parseInt(We,10))})}return{formatName:I,formatOptions:K}}function pe(ee){const I={};return function(ue,De,He){const Fe=De+JSON.stringify(He);let ze=I[Fe];return ze||(ze=ee(ae(De),He),I[Fe]=ze),ze(ue)}}class ye{constructor(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=s.create("formatter"),this.options=I,this.formats={number:pe((K,ue)=>{const De=new Intl.NumberFormat(K,{...ue});return He=>De.format(He)}),currency:pe((K,ue)=>{const De=new Intl.NumberFormat(K,{...ue,style:"currency"});return He=>De.format(He)}),datetime:pe((K,ue)=>{const De=new Intl.DateTimeFormat(K,{...ue});return He=>De.format(He)}),relativetime:pe((K,ue)=>{const De=new Intl.RelativeTimeFormat(K,{...ue});return He=>De.format(He,ue.range||"day")}),list:pe((K,ue)=>{const De=new Intl.ListFormat(K,{...ue});return He=>De.format(He)})},this.init(I)}init(I){const ue=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=ue.formatSeparator?ue.formatSeparator:ue.formatSeparator||","}add(I,K){this.formats[I.toLowerCase().trim()]=K}addCached(I,K){this.formats[I.toLowerCase().trim()]=pe(K)}format(I,K,ue){let De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return K.split(this.formatSeparator).reduce((ze,qe)=>{const{formatName:We,formatOptions:_t}=ne(qe);if(this.formats[We]){let ct=ze;try{const Ge=De&&De.formatParams&&De.formatParams[De.interpolationkey]||{},st=Ge.locale||Ge.lng||De.locale||De.lng||ue;ct=this.formats[We](ze,st,{..._t,...De,...Ge})}catch(Ge){this.logger.warn(Ge)}return ct}else this.logger.warn(`there was no format function for ${We}`);return ze},I)}}function Se(ee,I){ee.pending[I]!==void 0&&(delete ee.pending[I],ee.pendingCount--)}class Ae extends m{constructor(I,K,ue){let De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=I,this.store=K,this.services=ue,this.languageUtils=ue.languageUtils,this.options=De,this.logger=s.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=De.maxParallelReads||10,this.readingCalls=0,this.maxRetries=De.maxRetries>=0?De.maxRetries:5,this.retryTimeout=De.retryTimeout>=1?De.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(ue,De.backend,De)}queueLoad(I,K,ue,De){const He={},Fe={},ze={},qe={};return I.forEach(We=>{let _t=!0;K.forEach(ct=>{const Ge=`${We}|${ct}`;!ue.reload&&this.store.hasResourceBundle(We,ct)?this.state[Ge]=2:this.state[Ge]<0||(this.state[Ge]===1?Fe[Ge]===void 0&&(Fe[Ge]=!0):(this.state[Ge]=1,_t=!1,Fe[Ge]===void 0&&(Fe[Ge]=!0),He[Ge]===void 0&&(He[Ge]=!0),qe[ct]===void 0&&(qe[ct]=!0)))}),_t||(ze[We]=!0)}),(Object.keys(He).length||Object.keys(Fe).length)&&this.queue.push({pending:Fe,pendingCount:Object.keys(Fe).length,loaded:{},errors:[],callback:De}),{toLoad:Object.keys(He),pending:Object.keys(Fe),toLoadLanguages:Object.keys(ze),toLoadNamespaces:Object.keys(qe)}}loaded(I,K,ue){const De=I.split("|"),He=De[0],Fe=De[1];K&&this.emit("failedLoading",He,Fe,K),ue&&this.store.addResourceBundle(He,Fe,ue),this.state[I]=K?-1:2;const ze={};this.queue.forEach(qe=>{b(qe.loaded,[He],Fe),Se(qe,I),K&&qe.errors.push(K),qe.pendingCount===0&&!qe.done&&(Object.keys(qe.loaded).forEach(We=>{ze[We]||(ze[We]={});const _t=qe.loaded[We];_t.length&&_t.forEach(ct=>{ze[We][ct]===void 0&&(ze[We][ct]=!0)})}),qe.done=!0,qe.errors.length?qe.callback(qe.errors):qe.callback())}),this.emit("loaded",ze),this.queue=this.queue.filter(qe=>!qe.done)}read(I,K,ue){let De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,He=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,Fe=arguments.length>5?arguments[5]:void 0;if(!I.length)return Fe(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:I,ns:K,fcName:ue,tried:De,wait:He,callback:Fe});return}this.readingCalls++;const ze=(We,_t)=>{if(this.readingCalls--,this.waitingReads.length>0){const ct=this.waitingReads.shift();this.read(ct.lng,ct.ns,ct.fcName,ct.tried,ct.wait,ct.callback)}if(We&&_t&&De<this.maxRetries){setTimeout(()=>{this.read.call(this,I,K,ue,De+1,He*2,Fe)},He);return}Fe(We,_t)},qe=this.backend[ue].bind(this.backend);if(qe.length===2){try{const We=qe(I,K);We&&typeof We.then=="function"?We.then(_t=>ze(null,_t)).catch(ze):ze(null,We)}catch(We){ze(We)}return}return qe(I,K,ze)}prepareLoading(I,K){let ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),De&&De();typeof I=="string"&&(I=this.languageUtils.toResolveHierarchy(I)),typeof K=="string"&&(K=[K]);const He=this.queueLoad(I,K,ue,De);if(!He.toLoad.length)return He.pending.length||De(),null;He.toLoad.forEach(Fe=>{this.loadOne(Fe)})}load(I,K,ue){this.prepareLoading(I,K,{},ue)}reload(I,K,ue){this.prepareLoading(I,K,{reload:!0},ue)}loadOne(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const ue=I.split("|"),De=ue[0],He=ue[1];this.read(De,He,"read",void 0,void 0,(Fe,ze)=>{Fe&&this.logger.warn(`${K}loading namespace ${He} for language ${De} failed`,Fe),!Fe&&ze&&this.logger.log(`${K}loaded namespace ${He} for language ${De}`,ze),this.loaded(I,Fe,ze)})}saveMissing(I,K,ue,De,He){let Fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},ze=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(K)){this.logger.warn(`did not save key "${ue}" as the namespace "${K}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(ue==null||ue==="")){if(this.backend&&this.backend.create){const qe={...Fe,isUpdate:He},We=this.backend.create.bind(this.backend);if(We.length<6)try{let _t;We.length===5?_t=We(I,K,ue,De,qe):_t=We(I,K,ue,De),_t&&typeof _t.then=="function"?_t.then(ct=>ze(null,ct)).catch(ze):ze(null,_t)}catch(_t){ze(_t)}else We(I,K,ue,De,ze,qe)}!I||!I[0]||this.store.addResource(I[0],K,ue,De)}}}function Ee(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(I){let K={};if(typeof I[1]=="object"&&(K=I[1]),typeof I[1]=="string"&&(K.defaultValue=I[1]),typeof I[2]=="string"&&(K.tDescription=I[2]),typeof I[2]=="object"||typeof I[3]=="object"){const ue=I[3]||I[2];Object.keys(ue).forEach(De=>{K[De]=ue[De]})}return K},interpolation:{escapeValue:!0,format:ee=>ee,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function xe(ee){return typeof ee.ns=="string"&&(ee.ns=[ee.ns]),typeof ee.fallbackLng=="string"&&(ee.fallbackLng=[ee.fallbackLng]),typeof ee.fallbackNS=="string"&&(ee.fallbackNS=[ee.fallbackNS]),ee.supportedLngs&&ee.supportedLngs.indexOf("cimode")<0&&(ee.supportedLngs=ee.supportedLngs.concat(["cimode"])),ee}function nt(){}function Tt(ee){Object.getOwnPropertyNames(Object.getPrototypeOf(ee)).forEach(K=>{typeof ee[K]=="function"&&(ee[K]=ee[K].bind(ee))})}class pt extends m{constructor(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=arguments.length>1?arguments[1]:void 0;if(super(),this.options=xe(I),this.services={},this.logger=s,this.modules={external:[]},Tt(this),K&&!this.isInitialized&&!I.isClone){if(!this.options.initImmediate)return this.init(I,K),this;setTimeout(()=>{this.init(I,K)},0)}}init(){var I=this;let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=arguments.length>1?arguments[1]:void 0;typeof K=="function"&&(ue=K,K={}),!K.defaultNS&&K.defaultNS!==!1&&K.ns&&(typeof K.ns=="string"?K.defaultNS=K.ns:K.ns.indexOf("translation")<0&&(K.defaultNS=K.ns[0]));const De=Ee();this.options={...De,...this.options,...xe(K)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...De.interpolation,...this.options.interpolation}),K.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=K.keySeparator),K.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=K.nsSeparator);function He(_t){return _t?typeof _t=="function"?new _t:_t:null}if(!this.options.isClone){this.modules.logger?s.init(He(this.modules.logger),this.options):s.init(null,this.options);let _t;this.modules.formatter?_t=this.modules.formatter:typeof Intl<"u"&&(_t=ye);const ct=new fe(this.options);this.store=new _(this.options.resources,this.options);const Ge=this.services;Ge.logger=s,Ge.resourceStore=this.store,Ge.languageUtils=ct,Ge.pluralResolver=new Q(ct,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),_t&&(!this.options.interpolation.format||this.options.interpolation.format===De.interpolation.format)&&(Ge.formatter=He(_t),Ge.formatter.init(Ge,this.options),this.options.interpolation.format=Ge.formatter.format.bind(Ge.formatter)),Ge.interpolator=new Re(this.options),Ge.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},Ge.backendConnector=new Ae(He(this.modules.backend),Ge.resourceStore,Ge,this.options),Ge.backendConnector.on("*",function(st){for(var Me=arguments.length,ie=new Array(Me>1?Me-1:0),ge=1;ge<Me;ge++)ie[ge-1]=arguments[ge];I.emit(st,...ie)}),this.modules.languageDetector&&(Ge.languageDetector=He(this.modules.languageDetector),Ge.languageDetector.init&&Ge.languageDetector.init(Ge,this.options.detection,this.options)),this.modules.i18nFormat&&(Ge.i18nFormat=He(this.modules.i18nFormat),Ge.i18nFormat.init&&Ge.i18nFormat.init(this)),this.translator=new he(this.services,this.options),this.translator.on("*",function(st){for(var Me=arguments.length,ie=new Array(Me>1?Me-1:0),ge=1;ge<Me;ge++)ie[ge-1]=arguments[ge];I.emit(st,...ie)}),this.modules.external.forEach(st=>{st.init&&st.init(this)})}if(this.format=this.options.interpolation.format,ue||(ue=nt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const _t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_t.length>0&&_t[0]!=="dev"&&(this.options.lng=_t[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(_t=>{this[_t]=function(){return I.store[_t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(_t=>{this[_t]=function(){return I.store[_t](...arguments),I}});const qe=u(),We=()=>{const _t=(ct,Ge)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),qe.resolve(Ge),ue(ct,Ge)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return _t(null,this.t.bind(this));this.changeLanguage(this.options.lng,_t)};return this.options.resources||!this.options.initImmediate?We():setTimeout(We,0),qe}loadResources(I){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt;const De=typeof I=="string"?I:this.language;if(typeof I=="function"&&(ue=I),!this.options.resources||this.options.partialBundledLanguages){if(De&&De.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return ue();const He=[],Fe=ze=>{if(!ze||ze==="cimode")return;this.services.languageUtils.toResolveHierarchy(ze).forEach(We=>{We!=="cimode"&&He.indexOf(We)<0&&He.push(We)})};De?Fe(De):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(qe=>Fe(qe)),this.options.preload&&this.options.preload.forEach(ze=>Fe(ze)),this.services.backendConnector.load(He,this.options.ns,ze=>{!ze&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),ue(ze)})}else ue(null)}reloadResources(I,K,ue){const De=u();return I||(I=this.languages),K||(K=this.options.ns),ue||(ue=nt),this.services.backendConnector.reload(I,K,He=>{De.resolve(),ue(He)}),De}use(I){if(!I)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!I.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return I.type==="backend"&&(this.modules.backend=I),(I.type==="logger"||I.log&&I.warn&&I.error)&&(this.modules.logger=I),I.type==="languageDetector"&&(this.modules.languageDetector=I),I.type==="i18nFormat"&&(this.modules.i18nFormat=I),I.type==="postProcessor"&&N.addPostProcessor(I),I.type==="formatter"&&(this.modules.formatter=I),I.type==="3rdParty"&&this.modules.external.push(I),this}setResolvedLanguage(I){if(!(!I||!this.languages)&&!(["cimode","dev"].indexOf(I)>-1))for(let K=0;K<this.languages.length;K++){const ue=this.languages[K];if(!(["cimode","dev"].indexOf(ue)>-1)&&this.store.hasLanguageSomeTranslations(ue)){this.resolvedLanguage=ue;break}}}changeLanguage(I,K){var ue=this;this.isLanguageChangingTo=I;const De=u();this.emit("languageChanging",I);const He=qe=>{this.language=qe,this.languages=this.services.languageUtils.toResolveHierarchy(qe),this.resolvedLanguage=void 0,this.setResolvedLanguage(qe)},Fe=(qe,We)=>{We?(He(We),this.translator.changeLanguage(We),this.isLanguageChangingTo=void 0,this.emit("languageChanged",We),this.logger.log("languageChanged",We)):this.isLanguageChangingTo=void 0,De.resolve(function(){return ue.t(...arguments)}),K&&K(qe,function(){return ue.t(...arguments)})},ze=qe=>{!I&&!qe&&this.services.languageDetector&&(qe=[]);const We=typeof qe=="string"?qe:this.services.languageUtils.getBestMatchFromCodes(qe);We&&(this.language||He(We),this.translator.language||this.translator.changeLanguage(We),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(We)),this.loadResources(We,_t=>{Fe(_t,We)})};return!I&&this.services.languageDetector&&!this.services.languageDetector.async?ze(this.services.languageDetector.detect()):!I&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(ze):this.services.languageDetector.detect(ze):ze(I),De}getFixedT(I,K,ue){var De=this;const He=function(Fe,ze){let qe;if(typeof ze!="object"){for(var We=arguments.length,_t=new Array(We>2?We-2:0),ct=2;ct<We;ct++)_t[ct-2]=arguments[ct];qe=De.options.overloadTranslationOptionHandler([Fe,ze].concat(_t))}else qe={...ze};qe.lng=qe.lng||He.lng,qe.lngs=qe.lngs||He.lngs,qe.ns=qe.ns||He.ns,qe.keyPrefix=qe.keyPrefix||ue||He.keyPrefix;const Ge=De.options.keySeparator||".";let st;return qe.keyPrefix&&Array.isArray(Fe)?st=Fe.map(Me=>`${qe.keyPrefix}${Ge}${Me}`):st=qe.keyPrefix?`${qe.keyPrefix}${Ge}${Fe}`:Fe,De.t(st,qe)};return typeof I=="string"?He.lng=I:He.lngs=I,He.ns=K,He.keyPrefix=ue,He}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(I){this.options.defaultNS=I}hasLoadedNamespace(I){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const ue=K.lng||this.resolvedLanguage||this.languages[0],De=this.options?this.options.fallbackLng:!1,He=this.languages[this.languages.length-1];if(ue.toLowerCase()==="cimode")return!0;const Fe=(ze,qe)=>{const We=this.services.backendConnector.state[`${ze}|${qe}`];return We===-1||We===2};if(K.precheck){const ze=K.precheck(this,Fe);if(ze!==void 0)return ze}return!!(this.hasResourceBundle(ue,I)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||Fe(ue,I)&&(!De||Fe(He,I)))}loadNamespaces(I,K){const ue=u();return this.options.ns?(typeof I=="string"&&(I=[I]),I.forEach(De=>{this.options.ns.indexOf(De)<0&&this.options.ns.push(De)}),this.loadResources(De=>{ue.resolve(),K&&K(De)}),ue):(K&&K(),Promise.resolve())}loadLanguages(I,K){const ue=u();typeof I=="string"&&(I=[I]);const De=this.options.preload||[],He=I.filter(Fe=>De.indexOf(Fe)<0);return He.length?(this.options.preload=De.concat(He),this.loadResources(Fe=>{ue.resolve(),K&&K(Fe)}),ue):(K&&K(),Promise.resolve())}dir(I){if(I||(I=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!I)return"rtl";const K=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],ue=this.services&&this.services.languageUtils||new fe(Ee());return K.indexOf(ue.getLanguagePartFromCode(I))>-1||I.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=arguments.length>1?arguments[1]:void 0;return new pt(I,K)}cloneInstance(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt;const ue=I.forkResourceStore;ue&&delete I.forkResourceStore;const De={...this.options,...I,isClone:!0},He=new pt(De);return(I.debug!==void 0||I.prefix!==void 0)&&(He.logger=He.logger.clone(I)),["store","services","language"].forEach(ze=>{He[ze]=this[ze]}),He.services={...this.services},He.services.utils={hasLoadedNamespace:He.hasLoadedNamespace.bind(He)},ue&&(He.store=new _(this.store.data,De),He.services.resourceStore=He.store),He.translator=new he(He.services,De),He.translator.on("*",function(ze){for(var qe=arguments.length,We=new Array(qe>1?qe-1:0),_t=1;_t<qe;_t++)We[_t-1]=arguments[_t];He.emit(ze,...We)}),He.init(De,K),He.translator.options=De,He.translator.backendConnector.services.utils={hasLoadedNamespace:He.hasLoadedNamespace.bind(He)},He}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Rt=pt.createInstance();Rt.createInstance=pt.createInstance;const tt=Rt.createInstance,U=Rt.dir,F=Rt.init,Y=Rt.loadResources,le=Rt.reloadResources,ke=Rt.use,Ye=Rt.changeLanguage,ft=Rt.getFixedT,wt=Rt.t,Ut=Rt.exists,Ke=Rt.setDefaultNamespace,it=Rt.hasLoadedNamespace,At=Rt.loadNamespaces,et=Rt.loadLanguages},1932:(J,g,t)=>{"use strict";t.d(g,{jM:()=>ke});var i=Symbol.for("immer-nothing"),l=Symbol.for("immer-draftable"),s=Symbol.for("immer-state"),m=[];function u(ee,...I){throw new Error(`[Immer] minified error nr: ${ee}. Full error at: https://bit.ly/3cXEKWf`)}var f=Object.getPrototypeOf;function p(ee){return!!ee&&!!ee[s]}function v(ee){return ee?d(ee)||Array.isArray(ee)||!!ee[l]||!!ee.constructor?.[l]||D(ee)||P(ee):!1}var h=Object.prototype.constructor.toString();function d(ee){if(!ee||typeof ee!="object")return!1;const I=f(ee);if(I===null)return!0;const K=Object.hasOwnProperty.call(I,"constructor")&&I.constructor;return K===Object?!0:typeof K=="function"&&Function.toString.call(K)===h}function b(ee){return p(ee)||u(15,ee),ee[s].base_}function y(ee,I){w(ee)===0?Object.entries(ee).forEach(([K,ue])=>{I(K,ue,ee)}):ee.forEach((K,ue)=>I(ue,K,ee))}function w(ee){const I=ee[s];return I?I.type_:Array.isArray(ee)?1:D(ee)?2:P(ee)?3:0}function S(ee,I){return w(ee)===2?ee.has(I):Object.prototype.hasOwnProperty.call(ee,I)}function O(ee,I){return w(ee)===2?ee.get(I):ee[I]}function R(ee,I,K){const ue=w(ee);ue===2?ee.set(I,K):ue===3?ee.add(K):ee[I]=K}function M(ee,I){return ee===I?ee!==0||1/ee===1/I:ee!==ee&&I!==I}function D(ee){return ee instanceof Map}function P(ee){return ee instanceof Set}function T(ee){return ee.copy_||ee.base_}function A(ee,I){if(D(ee))return new Map(ee);if(P(ee))return new Set(ee);if(Array.isArray(ee))return Array.prototype.slice.call(ee);if(!I&&d(ee))return f(ee)?{...ee}:Object.assign(Object.create(null),ee);const K=Object.getOwnPropertyDescriptors(ee);delete K[s];let ue=Reflect.ownKeys(K);for(let De=0;De<ue.length;De++){const He=ue[De],Fe=K[He];Fe.writable===!1&&(Fe.writable=!0,Fe.configurable=!0),(Fe.get||Fe.set)&&(K[He]={configurable:!0,writable:!0,enumerable:Fe.enumerable,value:ee[He]})}return Object.create(f(ee),K)}function j(ee,I=!1){return _(ee)||p(ee)||!v(ee)||(w(ee)>1&&(ee.set=ee.add=ee.clear=ee.delete=ae),Object.freeze(ee),I&&y(ee,(K,ue)=>j(ue,!0),!0)),ee}function ae(){u(2)}function _(ee){return Object.isFrozen(ee)}var N={};function W(ee){const I=N[ee];return I||u(0,ee),I}function he(ee,I){N[ee]||(N[ee]=I)}var me;function fe(){return me}function ve(ee,I){return{drafts_:[],parent_:ee,immer_:I,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ce(ee,I){I&&(W("Patches"),ee.patches_=[],ee.inversePatches_=[],ee.patchListener_=I)}function oe(ee){re(ee),ee.drafts_.forEach(V),ee.drafts_=null}function re(ee){ee===me&&(me=ee.parent_)}function H(ee){return me=ve(me,ee)}function V(ee){const I=ee[s];I.type_===0||I.type_===1?I.revoke_():I.revoked_=!0}function Q(ee,I){I.unfinalizedDrafts_=I.drafts_.length;const K=I.drafts_[0];return ee!==void 0&&ee!==K?(K[s].modified_&&(oe(I),u(4)),v(ee)&&(ee=Te(I,ee),I.parent_||ne(I,ee)),I.patches_&&W("Patches").generateReplacementPatches_(K[s].base_,ee,I.patches_,I.inversePatches_)):ee=Te(I,K,[]),oe(I),I.patches_&&I.patchListener_(I.patches_,I.inversePatches_),ee!==i?ee:void 0}function Te(ee,I,K){if(_(I))return I;const ue=I[s];if(!ue)return y(I,(De,He)=>Re(ee,ue,I,De,He,K),!0),I;if(ue.scope_!==ee)return I;if(!ue.modified_)return ne(ee,ue.base_,!0),ue.base_;if(!ue.finalized_){ue.finalized_=!0,ue.scope_.unfinalizedDrafts_--;const De=ue.copy_;let He=De,Fe=!1;ue.type_===3&&(He=new Set(De),De.clear(),Fe=!0),y(He,(ze,qe)=>Re(ee,ue,De,ze,qe,K,Fe)),ne(ee,De,!1),K&&ee.patches_&&W("Patches").generatePatches_(ue,K,ee.patches_,ee.inversePatches_)}return ue.copy_}function Re(ee,I,K,ue,De,He,Fe){if(p(De)){const ze=He&&I&&I.type_!==3&&!S(I.assigned_,ue)?He.concat(ue):void 0,qe=Te(ee,De,ze);if(R(K,ue,qe),p(qe))ee.canAutoFreeze_=!1;else return}else Fe&&K.add(De);if(v(De)&&!_(De)){if(!ee.immer_.autoFreeze_&&ee.unfinalizedDrafts_<1)return;Te(ee,De),(!I||!I.scope_.parent_)&&ne(ee,De)}}function ne(ee,I,K=!1){!ee.parent_&&ee.immer_.autoFreeze_&&ee.canAutoFreeze_&&j(I,K)}function pe(ee,I){const K=Array.isArray(ee),ue={type_:K?1:0,scope_:I?I.scope_:fe(),modified_:!1,finalized_:!1,assigned_:{},parent_:I,base_:ee,draft_:null,copy_:null,revoke_:null,isManual_:!1};let De=ue,He=ye;K&&(De=[ue],He=Se);const{revoke:Fe,proxy:ze}=Proxy.revocable(De,He);return ue.draft_=ze,ue.revoke_=Fe,ze}var ye={get(ee,I){if(I===s)return ee;const K=T(ee);if(!S(K,I))return Ee(ee,K,I);const ue=K[I];return ee.finalized_||!v(ue)?ue:ue===Ae(ee.base_,I)?(Tt(ee),ee.copy_[I]=Rt(ue,ee)):ue},has(ee,I){return I in T(ee)},ownKeys(ee){return Reflect.ownKeys(T(ee))},set(ee,I,K){const ue=xe(T(ee),I);if(ue?.set)return ue.set.call(ee.draft_,K),!0;if(!ee.modified_){const De=Ae(T(ee),I),He=De?.[s];if(He&&He.base_===K)return ee.copy_[I]=K,ee.assigned_[I]=!1,!0;if(M(K,De)&&(K!==void 0||S(ee.base_,I)))return!0;Tt(ee),nt(ee)}return ee.copy_[I]===K&&(K!==void 0||I in ee.copy_)||Number.isNaN(K)&&Number.isNaN(ee.copy_[I])||(ee.copy_[I]=K,ee.assigned_[I]=!0),!0},deleteProperty(ee,I){return Ae(ee.base_,I)!==void 0||I in ee.base_?(ee.assigned_[I]=!1,Tt(ee),nt(ee)):delete ee.assigned_[I],ee.copy_&&delete ee.copy_[I],!0},getOwnPropertyDescriptor(ee,I){const K=T(ee),ue=Reflect.getOwnPropertyDescriptor(K,I);return ue&&{writable:!0,configurable:ee.type_!==1||I!=="length",enumerable:ue.enumerable,value:K[I]}},defineProperty(){u(11)},getPrototypeOf(ee){return f(ee.base_)},setPrototypeOf(){u(12)}},Se={};y(ye,(ee,I)=>{Se[ee]=function(){return arguments[0]=arguments[0][0],I.apply(this,arguments)}}),Se.deleteProperty=function(ee,I){return Se.set.call(this,ee,I,void 0)},Se.set=function(ee,I,K){return ye.set.call(this,ee[0],I,K,ee[0])};function Ae(ee,I){const K=ee[s];return(K?T(K):ee)[I]}function Ee(ee,I,K){const ue=xe(I,K);return ue?"value"in ue?ue.value:ue.get?.call(ee.draft_):void 0}function xe(ee,I){if(!(I in ee))return;let K=f(ee);for(;K;){const ue=Object.getOwnPropertyDescriptor(K,I);if(ue)return ue;K=f(K)}}function nt(ee){ee.modified_||(ee.modified_=!0,ee.parent_&&nt(ee.parent_))}function Tt(ee){ee.copy_||(ee.copy_=A(ee.base_,ee.scope_.immer_.useStrictShallowCopy_))}var pt=class{constructor(ee){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(I,K,ue)=>{if(typeof I=="function"&&typeof K!="function"){const He=K;K=I;const Fe=this;return function(qe=He,...We){return Fe.produce(qe,_t=>K.call(this,_t,...We))}}typeof K!="function"&&u(6),ue!==void 0&&typeof ue!="function"&&u(7);let De;if(v(I)){const He=H(this),Fe=Rt(I,void 0);let ze=!0;try{De=K(Fe),ze=!1}finally{ze?oe(He):re(He)}return ce(He,ue),Q(De,He)}else if(!I||typeof I!="object"){if(De=K(I),De===void 0&&(De=I),De===i&&(De=void 0),this.autoFreeze_&&j(De,!0),ue){const He=[],Fe=[];W("Patches").generateReplacementPatches_(I,De,He,Fe),ue(He,Fe)}return De}else u(1,I)},this.produceWithPatches=(I,K)=>{if(typeof I=="function")return(Fe,...ze)=>this.produceWithPatches(Fe,qe=>I(qe,...ze));let ue,De;return[this.produce(I,K,(Fe,ze)=>{ue=Fe,De=ze}),ue,De]},typeof ee?.autoFreeze=="boolean"&&this.setAutoFreeze(ee.autoFreeze),typeof ee?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(ee.useStrictShallowCopy)}createDraft(ee){v(ee)||u(8),p(ee)&&(ee=tt(ee));const I=H(this),K=Rt(ee,void 0);return K[s].isManual_=!0,re(I),K}finishDraft(ee,I){const K=ee&&ee[s];(!K||!K.isManual_)&&u(9);const{scope_:ue}=K;return ce(ue,I),Q(void 0,ue)}setAutoFreeze(ee){this.autoFreeze_=ee}setUseStrictShallowCopy(ee){this.useStrictShallowCopy_=ee}applyPatches(ee,I){let K;for(K=I.length-1;K>=0;K--){const De=I[K];if(De.path.length===0&&De.op==="replace"){ee=De.value;break}}K>-1&&(I=I.slice(K+1));const ue=W("Patches").applyPatches_;return p(ee)?ue(ee,I):this.produce(ee,De=>ue(De,I))}};function Rt(ee,I){const K=D(ee)?W("MapSet").proxyMap_(ee,I):P(ee)?W("MapSet").proxySet_(ee,I):pe(ee,I);return(I?I.scope_:fe()).drafts_.push(K),K}function tt(ee){return p(ee)||u(10,ee),U(ee)}function U(ee){if(!v(ee)||_(ee))return ee;const I=ee[s];let K;if(I){if(!I.modified_)return I.base_;I.finalized_=!0,K=A(ee,I.scope_.immer_.useStrictShallowCopy_)}else K=A(ee,!0);return y(K,(ue,De)=>{R(K,ue,U(De))}),I&&(I.finalized_=!1),K}function F(){const I="replace",K="add",ue="remove";function De(Ge,st,Me,ie){switch(Ge.type_){case 0:case 2:return Fe(Ge,st,Me,ie);case 1:return He(Ge,st,Me,ie);case 3:return ze(Ge,st,Me,ie)}}function He(Ge,st,Me,ie){let{base_:ge,assigned_:z}=Ge,be=Ge.copy_;be.length<ge.length&&([ge,be]=[be,ge],[Me,ie]=[ie,Me]);for(let Qe=0;Qe<ge.length;Qe++)if(z[Qe]&&be[Qe]!==ge[Qe]){const Bt=st.concat([Qe]);Me.push({op:I,path:Bt,value:ct(be[Qe])}),ie.push({op:I,path:Bt,value:ct(ge[Qe])})}for(let Qe=ge.length;Qe<be.length;Qe++){const Bt=st.concat([Qe]);Me.push({op:K,path:Bt,value:ct(be[Qe])})}for(let Qe=be.length-1;ge.length<=Qe;--Qe){const Bt=st.concat([Qe]);ie.push({op:ue,path:Bt})}}function Fe(Ge,st,Me,ie){const{base_:ge,copy_:z}=Ge;y(Ge.assigned_,(be,Qe)=>{const Bt=O(ge,be),nn=O(z,be),bt=Qe?S(ge,be)?I:K:ue;if(Bt===nn&&bt===I)return;const at=st.concat(be);Me.push(bt===ue?{op:bt,path:at}:{op:bt,path:at,value:nn}),ie.push(bt===K?{op:ue,path:at}:bt===ue?{op:K,path:at,value:ct(Bt)}:{op:I,path:at,value:ct(Bt)})})}function ze(Ge,st,Me,ie){let{base_:ge,copy_:z}=Ge,be=0;ge.forEach(Qe=>{if(!z.has(Qe)){const Bt=st.concat([be]);Me.push({op:ue,path:Bt,value:Qe}),ie.unshift({op:K,path:Bt,value:Qe})}be++}),be=0,z.forEach(Qe=>{if(!ge.has(Qe)){const Bt=st.concat([be]);Me.push({op:K,path:Bt,value:Qe}),ie.unshift({op:ue,path:Bt,value:Qe})}be++})}function qe(Ge,st,Me,ie){Me.push({op:I,path:[],value:st===i?void 0:st}),ie.push({op:I,path:[],value:Ge})}function We(Ge,st){return st.forEach(Me=>{const{path:ie,op:ge}=Me;let z=Ge;for(let nn=0;nn<ie.length-1;nn++){const bt=w(z);let at=ie[nn];typeof at!="string"&&typeof at!="number"&&(at=""+at),(bt===0||bt===1)&&(at==="__proto__"||at==="constructor")&&u(16+3),typeof z=="function"&&at==="prototype"&&u(16+3),z=O(z,at),typeof z!="object"&&u(16+2,ie.join("/"))}const be=w(z),Qe=_t(Me.value),Bt=ie[ie.length-1];switch(ge){case I:switch(be){case 2:return z.set(Bt,Qe);case 3:u(16);default:return z[Bt]=Qe}case K:switch(be){case 1:return Bt==="-"?z.push(Qe):z.splice(Bt,0,Qe);case 2:return z.set(Bt,Qe);case 3:return z.add(Qe);default:return z[Bt]=Qe}case ue:switch(be){case 1:return z.splice(Bt,1);case 2:return z.delete(Bt);case 3:return z.delete(Me.value);default:return delete z[Bt]}default:u(16+1,ge)}}),Ge}function _t(Ge){if(!v(Ge))return Ge;if(Array.isArray(Ge))return Ge.map(_t);if(D(Ge))return new Map(Array.from(Ge.entries()).map(([Me,ie])=>[Me,_t(ie)]));if(P(Ge))return new Set(Array.from(Ge).map(_t));const st=Object.create(f(Ge));for(const Me in Ge)st[Me]=_t(Ge[Me]);return S(Ge,l)&&(st[l]=Ge[l]),st}function ct(Ge){return p(Ge)?_t(Ge):Ge}he("Patches",{applyPatches_:We,generatePatches_:De,generateReplacementPatches_:qe})}function Y(){class ee extends Map{constructor(qe,We){super(),this[s]={type_:2,parent_:We,scope_:We?We.scope_:fe(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:qe,draft_:this,isManual_:!1,revoked_:!1}}get size(){return T(this[s]).size}has(qe){return T(this[s]).has(qe)}set(qe,We){const _t=this[s];return Fe(_t),(!T(_t).has(qe)||T(_t).get(qe)!==We)&&(K(_t),nt(_t),_t.assigned_.set(qe,!0),_t.copy_.set(qe,We),_t.assigned_.set(qe,!0)),this}delete(qe){if(!this.has(qe))return!1;const We=this[s];return Fe(We),K(We),nt(We),We.base_.has(qe)?We.assigned_.set(qe,!1):We.assigned_.delete(qe),We.copy_.delete(qe),!0}clear(){const qe=this[s];Fe(qe),T(qe).size&&(K(qe),nt(qe),qe.assigned_=new Map,y(qe.base_,We=>{qe.assigned_.set(We,!1)}),qe.copy_.clear())}forEach(qe,We){const _t=this[s];T(_t).forEach((ct,Ge,st)=>{qe.call(We,this.get(Ge),Ge,this)})}get(qe){const We=this[s];Fe(We);const _t=T(We).get(qe);if(We.finalized_||!v(_t)||_t!==We.base_.get(qe))return _t;const ct=Rt(_t,We);return K(We),We.copy_.set(qe,ct),ct}keys(){return T(this[s]).keys()}values(){const qe=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const We=qe.next();return We.done?We:{done:!1,value:this.get(We.value)}}}}entries(){const qe=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const We=qe.next();if(We.done)return We;const _t=this.get(We.value);return{done:!1,value:[We.value,_t]}}}}[Symbol.iterator](){return this.entries()}}function I(ze,qe){return new ee(ze,qe)}function K(ze){ze.copy_||(ze.assigned_=new Map,ze.copy_=new Map(ze.base_))}class ue extends Set{constructor(qe,We){super(),this[s]={type_:3,parent_:We,scope_:We?We.scope_:fe(),modified_:!1,finalized_:!1,copy_:void 0,base_:qe,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return T(this[s]).size}has(qe){const We=this[s];return Fe(We),We.copy_?!!(We.copy_.has(qe)||We.drafts_.has(qe)&&We.copy_.has(We.drafts_.get(qe))):We.base_.has(qe)}add(qe){const We=this[s];return Fe(We),this.has(qe)||(He(We),nt(We),We.copy_.add(qe)),this}delete(qe){if(!this.has(qe))return!1;const We=this[s];return Fe(We),He(We),nt(We),We.copy_.delete(qe)||(We.drafts_.has(qe)?We.copy_.delete(We.drafts_.get(qe)):!1)}clear(){const qe=this[s];Fe(qe),T(qe).size&&(He(qe),nt(qe),qe.copy_.clear())}values(){const qe=this[s];return Fe(qe),He(qe),qe.copy_.values()}entries(){const qe=this[s];return Fe(qe),He(qe),qe.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(qe,We){const _t=this.values();let ct=_t.next();for(;!ct.done;)qe.call(We,ct.value,ct.value,this),ct=_t.next()}}function De(ze,qe){return new ue(ze,qe)}function He(ze){ze.copy_||(ze.copy_=new Set,ze.base_.forEach(qe=>{if(v(qe)){const We=Rt(qe,ze);ze.drafts_.set(qe,We),ze.copy_.add(We)}else ze.copy_.add(qe)}))}function Fe(ze){ze.revoked_&&u(3,JSON.stringify(T(ze)))}he("MapSet",{proxyMap_:I,proxySet_:De})}var le=new pt,ke=le.produce,Ye=le.produceWithPatches.bind(le),ft=le.setAutoFreeze.bind(le),wt=le.setUseStrictShallowCopy.bind(le),Ut=le.applyPatches.bind(le),Ke=le.createDraft.bind(le),it=le.finishDraft.bind(le);function At(ee){return ee}function et(ee){return ee}},20382:(J,g,t)=>{"use strict";t.d(g,{Bh:()=>Rr,Hh:()=>mr});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function i(Oe){return typeof Oe>"u"||Oe===null}function l(Oe){return typeof Oe=="object"&&Oe!==null}function s(Oe){return Array.isArray(Oe)?Oe:i(Oe)?[]:[Oe]}function m(Oe,pn){var Qn,Sr,hr,kr;if(pn)for(kr=Object.keys(pn),Qn=0,Sr=kr.length;Qn<Sr;Qn+=1)hr=kr[Qn],Oe[hr]=pn[hr];return Oe}function u(Oe,pn){var Qn="",Sr;for(Sr=0;Sr<pn;Sr+=1)Qn+=Oe;return Qn}function f(Oe){return Oe===0&&Number.NEGATIVE_INFINITY===1/Oe}var p=i,v=l,h=s,d=u,b=f,y=m,w={isNothing:p,isObject:v,toArray:h,repeat:d,isNegativeZero:b,extend:y};function S(Oe,pn){var Qn="",Sr=Oe.reason||"(unknown reason)";return Oe.mark?(Oe.mark.name&&(Qn+='in "'+Oe.mark.name+'" '),Qn+="("+(Oe.mark.line+1)+":"+(Oe.mark.column+1)+")",!pn&&Oe.mark.snippet&&(Qn+=` `+Oe.mark.snippet),Sr+" "+Qn):Sr}function O(Oe,pn){Error.call(this),this.name="YAMLException",this.reason=Oe,this.mark=pn,this.message=S(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O.prototype.toString=function(pn){return this.name+": "+S(this,pn)};var R=O;function M(Oe,pn,Qn,Sr,hr){var kr="",Ve="",Ot=Math.floor(hr/2)-1;return Sr-pn>Ot&&(kr=" ... ",pn=Sr-Ot+kr.length),Qn-Sr>Ot&&(Ve=" ...",Qn=Sr+Ot-Ve.length),{str:kr+Oe.slice(pn,Qn).replace(/\t/g,"\u2192")+Ve,pos:Sr-pn+kr.length}}function D(Oe,pn){return w.repeat(" ",pn-Oe.length)+Oe}function P(Oe,pn){if(pn=Object.create(pn||null),!Oe.buffer)return null;pn.maxLength||(pn.maxLength=79),typeof pn.indent!="number"&&(pn.indent=1),typeof pn.linesBefore!="number"&&(pn.linesBefore=3),typeof pn.linesAfter!="number"&&(pn.linesAfter=2);for(var Qn=/\r?\n|\r|\0/g,Sr=[0],hr=[],kr,Ve=-1;kr=Qn.exec(Oe.buffer);)hr.push(kr.index),Sr.push(kr.index+kr[0].length),Oe.position<=kr.index&&Ve<0&&(Ve=Sr.length-2);Ve<0&&(Ve=Sr.length-1);var Ot="",wn,Wt,Yt=Math.min(Oe.line+pn.linesAfter,hr.length).toString().length,zn=pn.maxLength-(pn.indent+Yt+3);for(wn=1;wn<=pn.linesBefore&&!(Ve-wn<0);wn++)Wt=M(Oe.buffer,Sr[Ve-wn],hr[Ve-wn],Oe.position-(Sr[Ve]-Sr[Ve-wn]),zn),Ot=w.repeat(" ",pn.indent)+D((Oe.line-wn+1).toString(),Yt)+" | "+Wt.str+` `+Ot;for(Wt=M(Oe.buffer,Sr[Ve],hr[Ve],Oe.position,zn),Ot+=w.repeat(" ",pn.indent)+D((Oe.line+1).toString(),Yt)+" | "+Wt.str+` `,Ot+=w.repeat("-",pn.indent+Yt+3+Wt.pos)+`^ `,wn=1;wn<=pn.linesAfter&&!(Ve+wn>=hr.length);wn++)Wt=M(Oe.buffer,Sr[Ve+wn],hr[Ve+wn],Oe.position-(Sr[Ve]-Sr[Ve+wn]),zn),Ot+=w.repeat(" ",pn.indent)+D((Oe.line+wn+1).toString(),Yt)+" | "+Wt.str+` `;return Ot.replace(/\n$/,"")}var T=P,A=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],j=["scalar","sequence","mapping"];function ae(Oe){var pn={};return Oe!==null&&Object.keys(Oe).forEach(function(Qn){Oe[Qn].forEach(function(Sr){pn[String(Sr)]=Qn})}),pn}function _(Oe,pn){if(pn=pn||{},Object.keys(pn).forEach(function(Qn){if(A.indexOf(Qn)===-1)throw new R('Unknown option "'+Qn+'" is met in definition of "'+Oe+'" YAML type.')}),this.options=pn,this.tag=Oe,this.kind=pn.kind||null,this.resolve=pn.resolve||function(){return!0},this.construct=pn.construct||function(Qn){return Qn},this.instanceOf=pn.instanceOf||null,this.predicate=pn.predicate||null,this.represent=pn.represent||null,this.representName=pn.representName||null,this.defaultStyle=pn.defaultStyle||null,this.multi=pn.multi||!1,this.styleAliases=ae(pn.styleAliases||null),j.indexOf(this.kind)===-1)throw new R('Unknown kind "'+this.kind+'" is specified for "'+Oe+'" YAML type.')}var N=_;function W(Oe,pn){var Qn=[];return Oe[pn].forEach(function(Sr){var hr=Qn.length;Qn.forEach(function(kr,Ve){kr.tag===Sr.tag&&kr.kind===Sr.kind&&kr.multi===Sr.multi&&(hr=Ve)}),Qn[hr]=Sr}),Qn}function he(){var Oe={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},pn,Qn;function Sr(hr){hr.multi?(Oe.multi[hr.kind].push(hr),Oe.multi.fallback.push(hr)):Oe[hr.kind][hr.tag]=Oe.fallback[hr.tag]=hr}for(pn=0,Qn=arguments.length;pn<Qn;pn+=1)arguments[pn].forEach(Sr);return Oe}function me(Oe){return this.extend(Oe)}me.prototype.extend=function(pn){var Qn=[],Sr=[];if(pn instanceof N)Sr.push(pn);else if(Array.isArray(pn))Sr=Sr.concat(pn);else if(pn&&(Array.isArray(pn.implicit)||Array.isArray(pn.explicit)))pn.implicit&&(Qn=Qn.concat(pn.implicit)),pn.explicit&&(Sr=Sr.concat(pn.explicit));else throw new R("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");Qn.forEach(function(kr){if(!(kr instanceof N))throw new R("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(kr.loadKind&&kr.loadKind!=="scalar")throw new R("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(kr.multi)throw new R("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Sr.forEach(function(kr){if(!(kr instanceof N))throw new R("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var hr=Object.create(me.prototype);return hr.implicit=(this.implicit||[]).concat(Qn),hr.explicit=(this.explicit||[]).concat(Sr),hr.compiledImplicit=W(hr,"implicit"),hr.compiledExplicit=W(hr,"explicit"),hr.compiledTypeMap=he(hr.compiledImplicit,hr.compiledExplicit),hr};var fe=me,ve=new N("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Oe){return Oe!==null?Oe:""}}),ce=new N("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Oe){return Oe!==null?Oe:[]}}),oe=new N("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Oe){return Oe!==null?Oe:{}}}),re=new fe({explicit:[ve,ce,oe]});function H(Oe){if(Oe===null)return!0;var pn=Oe.length;return pn===1&&Oe==="~"||pn===4&&(Oe==="null"||Oe==="Null"||Oe==="NULL")}function V(){return null}function Q(Oe){return Oe===null}var Te=new N("tag:yaml.org,2002:null",{kind:"scalar",resolve:H,construct:V,predicate:Q,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Re(Oe){if(Oe===null)return!1;var pn=Oe.length;return pn===4&&(Oe==="true"||Oe==="True"||Oe==="TRUE")||pn===5&&(Oe==="false"||Oe==="False"||Oe==="FALSE")}function ne(Oe){return Oe==="true"||Oe==="True"||Oe==="TRUE"}function pe(Oe){return Object.prototype.toString.call(Oe)==="[object Boolean]"}var ye=new N("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Re,construct:ne,predicate:pe,represent:{lowercase:function(Oe){return Oe?"true":"false"},uppercase:function(Oe){return Oe?"TRUE":"FALSE"},camelcase:function(Oe){return Oe?"True":"False"}},defaultStyle:"lowercase"});function Se(Oe){return 48<=Oe&&Oe<=57||65<=Oe&&Oe<=70||97<=Oe&&Oe<=102}function Ae(Oe){return 48<=Oe&&Oe<=55}function Ee(Oe){return 48<=Oe&&Oe<=57}function xe(Oe){if(Oe===null)return!1;var pn=Oe.length,Qn=0,Sr=!1,hr;if(!pn)return!1;if(hr=Oe[Qn],(hr==="-"||hr==="+")&&(hr=Oe[++Qn]),hr==="0"){if(Qn+1===pn)return!0;if(hr=Oe[++Qn],hr==="b"){for(Qn++;Qn<pn;Qn++)if(hr=Oe[Qn],hr!=="_"){if(hr!=="0"&&hr!=="1")return!1;Sr=!0}return Sr&&hr!=="_"}if(hr==="x"){for(Qn++;Qn<pn;Qn++)if(hr=Oe[Qn],hr!=="_"){if(!Se(Oe.charCodeAt(Qn)))return!1;Sr=!0}return Sr&&hr!=="_"}if(hr==="o"){for(Qn++;Qn<pn;Qn++)if(hr=Oe[Qn],hr!=="_"){if(!Ae(Oe.charCodeAt(Qn)))return!1;Sr=!0}return Sr&&hr!=="_"}}if(hr==="_")return!1;for(;Qn<pn;Qn++)if(hr=Oe[Qn],hr!=="_"){if(!Ee(Oe.charCodeAt(Qn)))return!1;Sr=!0}return!(!Sr||hr==="_")}function nt(Oe){var pn=Oe,Qn=1,Sr;if(pn.indexOf("_")!==-1&&(pn=pn.replace(/_/g,"")),Sr=pn[0],(Sr==="-"||Sr==="+")&&(Sr==="-"&&(Qn=-1),pn=pn.slice(1),Sr=pn[0]),pn==="0")return 0;if(Sr==="0"){if(pn[1]==="b")return Qn*parseInt(pn.slice(2),2);if(pn[1]==="x")return Qn*parseInt(pn.slice(2),16);if(pn[1]==="o")return Qn*parseInt(pn.slice(2),8)}return Qn*parseInt(pn,10)}function Tt(Oe){return Object.prototype.toString.call(Oe)==="[object Number]"&&Oe%1===0&&!w.isNegativeZero(Oe)}var pt=new N("tag:yaml.org,2002:int",{kind:"scalar",resolve:xe,construct:nt,predicate:Tt,represent:{binary:function(Oe){return Oe>=0?"0b"+Oe.toString(2):"-0b"+Oe.toString(2).slice(1)},octal:function(Oe){return Oe>=0?"0o"+Oe.toString(8):"-0o"+Oe.toString(8).slice(1)},decimal:function(Oe){return Oe.toString(10)},hexadecimal:function(Oe){return Oe>=0?"0x"+Oe.toString(16).toUpperCase():"-0x"+Oe.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Rt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function tt(Oe){return!(Oe===null||!Rt.test(Oe)||Oe[Oe.length-1]==="_")}function U(Oe){var pn,Qn;return pn=Oe.replace(/_/g,"").toLowerCase(),Qn=pn[0]==="-"?-1:1,"+-".indexOf(pn[0])>=0&&(pn=pn.slice(1)),pn===".inf"?Qn===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:pn===".nan"?NaN:Qn*parseFloat(pn,10)}var F=/^[-+]?[0-9]+e/;function Y(Oe,pn){var Qn;if(isNaN(Oe))switch(pn){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Oe)switch(pn){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Oe)switch(pn){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(Oe))return"-0.0";return Qn=Oe.toString(10),F.test(Qn)?Qn.replace("e",".e"):Qn}function le(Oe){return Object.prototype.toString.call(Oe)==="[object Number]"&&(Oe%1!==0||w.isNegativeZero(Oe))}var ke=new N("tag:yaml.org,2002:float",{kind:"scalar",resolve:tt,construct:U,predicate:le,represent:Y,defaultStyle:"lowercase"}),Ye=re.extend({implicit:[Te,ye,pt,ke]}),ft=Ye,wt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ke(Oe){return Oe===null?!1:wt.exec(Oe)!==null||Ut.exec(Oe)!==null}function it(Oe){var pn,Qn,Sr,hr,kr,Ve,Ot,wn=0,Wt=null,Yt,zn,Nr;if(pn=wt.exec(Oe),pn===null&&(pn=Ut.exec(Oe)),pn===null)throw new Error("Date resolve error");if(Qn=+pn[1],Sr=+pn[2]-1,hr=+pn[3],!pn[4])return new Date(Date.UTC(Qn,Sr,hr));if(kr=+pn[4],Ve=+pn[5],Ot=+pn[6],pn[7]){for(wn=pn[7].slice(0,3);wn.length<3;)wn+="0";wn=+wn}return pn[9]&&(Yt=+pn[10],zn=+(pn[11]||0),Wt=(Yt*60+zn)*6e4,pn[9]==="-"&&(Wt=-Wt)),Nr=new Date(Date.UTC(Qn,Sr,hr,kr,Ve,Ot,wn)),Wt&&Nr.setTime(Nr.getTime()-Wt),Nr}function At(Oe){return Oe.toISOString()}var et=new N("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ke,construct:it,instanceOf:Date,represent:At});function ee(Oe){return Oe==="<<"||Oe===null}var I=new N("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ee}),K=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function ue(Oe){if(Oe===null)return!1;var pn,Qn,Sr=0,hr=Oe.length,kr=K;for(Qn=0;Qn<hr;Qn++)if(pn=kr.indexOf(Oe.charAt(Qn)),!(pn>64)){if(pn<0)return!1;Sr+=6}return Sr%8===0}function De(Oe){var pn,Qn,Sr=Oe.replace(/[\r\n=]/g,""),hr=Sr.length,kr=K,Ve=0,Ot=[];for(pn=0;pn<hr;pn++)pn%4===0&&pn&&(Ot.push(Ve>>16&255),Ot.push(Ve>>8&255),Ot.push(Ve&255)),Ve=Ve<<6|kr.indexOf(Sr.charAt(pn));return Qn=hr%4*6,Qn===0?(Ot.push(Ve>>16&255),Ot.push(Ve>>8&255),Ot.push(Ve&255)):Qn===18?(Ot.push(Ve>>10&255),Ot.push(Ve>>2&255)):Qn===12&&Ot.push(Ve>>4&255),new Uint8Array(Ot)}function He(Oe){var pn="",Qn=0,Sr,hr,kr=Oe.length,Ve=K;for(Sr=0;Sr<kr;Sr++)Sr%3===0&&Sr&&(pn+=Ve[Qn>>18&63],pn+=Ve[Qn>>12&63],pn+=Ve[Qn>>6&63],pn+=Ve[Qn&63]),Qn=(Qn<<8)+Oe[Sr];return hr=kr%3,hr===0?(pn+=Ve[Qn>>18&63],pn+=Ve[Qn>>12&63],pn+=Ve[Qn>>6&63],pn+=Ve[Qn&63]):hr===2?(pn+=Ve[Qn>>10&63],pn+=Ve[Qn>>4&63],pn+=Ve[Qn<<2&63],pn+=Ve[64]):hr===1&&(pn+=Ve[Qn>>2&63],pn+=Ve[Qn<<4&63],pn+=Ve[64],pn+=Ve[64]),pn}function Fe(Oe){return Object.prototype.toString.call(Oe)==="[object Uint8Array]"}var ze=new N("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ue,construct:De,predicate:Fe,represent:He}),qe=Object.prototype.hasOwnProperty,We=Object.prototype.toString;function _t(Oe){if(Oe===null)return!0;var pn=[],Qn,Sr,hr,kr,Ve,Ot=Oe;for(Qn=0,Sr=Ot.length;Qn<Sr;Qn+=1){if(hr=Ot[Qn],Ve=!1,We.call(hr)!=="[object Object]")return!1;for(kr in hr)if(qe.call(hr,kr))if(!Ve)Ve=!0;else return!1;if(!Ve)return!1;if(pn.indexOf(kr)===-1)pn.push(kr);else return!1}return!0}function ct(Oe){return Oe!==null?Oe:[]}var Ge=new N("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_t,construct:ct}),st=Object.prototype.toString;function Me(Oe){if(Oe===null)return!0;var pn,Qn,Sr,hr,kr,Ve=Oe;for(kr=new Array(Ve.length),pn=0,Qn=Ve.length;pn<Qn;pn+=1){if(Sr=Ve[pn],st.call(Sr)!=="[object Object]"||(hr=Object.keys(Sr),hr.length!==1))return!1;kr[pn]=[hr[0],Sr[hr[0]]]}return!0}function ie(Oe){if(Oe===null)return[];var pn,Qn,Sr,hr,kr,Ve=Oe;for(kr=new Array(Ve.length),pn=0,Qn=Ve.length;pn<Qn;pn+=1)Sr=Ve[pn],hr=Object.keys(Sr),kr[pn]=[hr[0],Sr[hr[0]]];return kr}var ge=new N("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Me,construct:ie}),z=Object.prototype.hasOwnProperty;function be(Oe){if(Oe===null)return!0;var pn,Qn=Oe;for(pn in Qn)if(z.call(Qn,pn)&&Qn[pn]!==null)return!1;return!0}function Qe(Oe){return Oe!==null?Oe:{}}var Bt=new N("tag:yaml.org,2002:set",{kind:"mapping",resolve:be,construct:Qe}),nn=ft.extend({implicit:[et,I],explicit:[ze,Ge,ge,Bt]}),bt=Object.prototype.hasOwnProperty,at=1,$t=2,On=3,Ct=4,Zt=1,Wn=2,Zn=3,xt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xe=/[\x85\u2028\u2029]/,gn=/[,\[\]\{\}]/,Qt=/^(?:!|!!|![a-z\-]+!)$/i,Dt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function hn(Oe){return Object.prototype.toString.call(Oe)}function cn(Oe){return Oe===10||Oe===13}function an(Oe){return Oe===9||Oe===32}function Or(Oe){return Oe===9||Oe===32||Oe===10||Oe===13}function Ln(Oe){return Oe===44||Oe===91||Oe===93||Oe===123||Oe===125}function En(Oe){var pn;return 48<=Oe&&Oe<=57?Oe-48:(pn=Oe|32,97<=pn&&pn<=102?pn-97+10:-1)}function Gn(Oe){return Oe===120?2:Oe===117?4:Oe===85?8:0}function rr(Oe){return 48<=Oe&&Oe<=57?Oe-48:-1}function sr(Oe){return Oe===48?"\0":Oe===97?"\x07":Oe===98?"\b":Oe===116||Oe===9?" ":Oe===110?` `:Oe===118?"\v":Oe===102?"\f":Oe===114?"\r":Oe===101?"\x1B":Oe===32?" ":Oe===34?'"':Oe===47?"/":Oe===92?"\\":Oe===78?"\x85":Oe===95?"\xA0":Oe===76?"\u2028":Oe===80?"\u2029":""}function pi(Oe){return Oe<=65535?String.fromCharCode(Oe):String.fromCharCode((Oe-65536>>10)+55296,(Oe-65536&1023)+56320)}for(var yi=new Array(256),jr=new Array(256),ui=0;ui<256;ui++)yi[ui]=sr(ui)?1:0,jr[ui]=sr(ui);function bi(Oe,pn){this.input=Oe,this.filename=pn.filename||null,this.schema=pn.schema||nn,this.onWarning=pn.onWarning||null,this.legacy=pn.legacy||!1,this.json=pn.json||!1,this.listener=pn.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Oe.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ri(Oe,pn){var Qn={name:Oe.filename,buffer:Oe.input.slice(0,-1),position:Oe.position,line:Oe.line,column:Oe.position-Oe.lineStart};return Qn.snippet=T(Qn),new R(pn,Qn)}function hi(Oe,pn){throw ri(Oe,pn)}function Si(Oe,pn){Oe.onWarning&&Oe.onWarning.call(null,ri(Oe,pn))}var Kr={YAML:function(pn,Qn,Sr){var hr,kr,Ve;pn.version!==null&&hi(pn,"duplication of %YAML directive"),Sr.length!==1&&hi(pn,"YAML directive accepts exactly one argument"),hr=/^([0-9]+)\.([0-9]+)$/.exec(Sr[0]),hr===null&&hi(pn,"ill-formed argument of the YAML directive"),kr=parseInt(hr[1],10),Ve=parseInt(hr[2],10),kr!==1&&hi(pn,"unacceptable YAML version of the document"),pn.version=Sr[0],pn.checkLineBreaks=Ve<2,Ve!==1&&Ve!==2&&Si(pn,"unsupported YAML version of the document")},TAG:function(pn,Qn,Sr){var hr,kr;Sr.length!==2&&hi(pn,"TAG directive accepts exactly two arguments"),hr=Sr[0],kr=Sr[1],Qt.test(hr)||hi(pn,"ill-formed tag handle (first argument) of the TAG directive"),bt.call(pn.tagMap,hr)&&hi(pn,'there is a previously declared suffix for "'+hr+'" tag handle'),Dt.test(kr)||hi(pn,"ill-formed tag prefix (second argument) of the TAG directive");try{kr=decodeURIComponent(kr)}catch{hi(pn,"tag prefix is malformed: "+kr)}pn.tagMap[hr]=kr}};function xi(Oe,pn,Qn,Sr){var hr,kr,Ve,Ot;if(pn<Qn){if(Ot=Oe.input.slice(pn,Qn),Sr)for(hr=0,kr=Ot.length;hr<kr;hr+=1)Ve=Ot.charCodeAt(hr),Ve===9||32<=Ve&&Ve<=1114111||hi(Oe,"expected valid JSON character");else xt.test(Ot)&&hi(Oe,"the stream contains non-printable characters");Oe.result+=Ot}}function Ai(Oe,pn,Qn,Sr){var hr,kr,Ve,Ot;for(w.isObject(Qn)||hi(Oe,"cannot merge mappings; the provided source object is unacceptable"),hr=Object.keys(Qn),Ve=0,Ot=hr.length;Ve<Ot;Ve+=1)kr=hr[Ve],bt.call(pn,kr)||(pn[kr]=Qn[kr],Sr[kr]=!0)}function Pi(Oe,pn,Qn,Sr,hr,kr,Ve,Ot,wn){var Wt,Yt;if(Array.isArray(hr))for(hr=Array.prototype.slice.call(hr),Wt=0,Yt=hr.length;Wt<Yt;Wt+=1)Array.isArray(hr[Wt])&&hi(Oe,"nested arrays are not supported inside keys"),typeof hr=="object"&&hn(hr[Wt])==="[object Object]"&&(hr[Wt]="[object Object]");if(typeof hr=="object"&&hn(hr)==="[object Object]"&&(hr="[object Object]"),hr=String(hr),pn===null&&(pn={}),Sr==="tag:yaml.org,2002:merge")if(Array.isArray(kr))for(Wt=0,Yt=kr.length;Wt<Yt;Wt+=1)Ai(Oe,pn,kr[Wt],Qn);else Ai(Oe,pn,kr,Qn);else!Oe.json&&!bt.call(Qn,hr)&&bt.call(pn,hr)&&(Oe.line=Ve||Oe.line,Oe.lineStart=Ot||Oe.lineStart,Oe.position=wn||Oe.position,hi(Oe,"duplicated mapping key")),hr==="__proto__"?Object.defineProperty(pn,hr,{configurable:!0,enumerable:!0,writable:!0,value:kr}):pn[hr]=kr,delete Qn[hr];return pn}function io(Oe){var pn;pn=Oe.input.charCodeAt(Oe.position),pn===10?Oe.position++:pn===13?(Oe.position++,Oe.input.charCodeAt(Oe.position)===10&&Oe.position++):hi(Oe,"a line break is expected"),Oe.line+=1,Oe.lineStart=Oe.position,Oe.firstTabInLine=-1}function lo(Oe,pn,Qn){for(var Sr=0,hr=Oe.input.charCodeAt(Oe.position);hr!==0;){for(;an(hr);)hr===9&&Oe.firstTabInLine===-1&&(Oe.firstTabInLine=Oe.position),hr=Oe.input.charCodeAt(++Oe.position);if(pn&&hr===35)do hr=Oe.input.charCodeAt(++Oe.position);while(hr!==10&&hr!==13&&hr!==0);if(cn(hr))for(io(Oe),hr=Oe.input.charCodeAt(Oe.position),Sr++,Oe.lineIndent=0;hr===32;)Oe.lineIndent++,hr=Oe.input.charCodeAt(++Oe.position);else break}return Qn!==-1&&Sr!==0&&Oe.lineIndent<Qn&&Si(Oe,"deficient indentation"),Sr}function Gr(Oe){var pn=Oe.position,Qn;return Qn=Oe.input.charCodeAt(pn),!!((Qn===45||Qn===46)&&Qn===Oe.input.charCodeAt(pn+1)&&Qn===Oe.input.charCodeAt(pn+2)&&(pn+=3,Qn=Oe.input.charCodeAt(pn),Qn===0||Or(Qn)))}function un(Oe,pn){pn===1?Oe.result+=" ":pn>1&&(Oe.result+=w.repeat(` `,pn-1))}function qn(Oe,pn,Qn){var Sr,hr,kr,Ve,Ot,wn,Wt,Yt,zn=Oe.kind,Nr=Oe.result,si;if(si=Oe.input.charCodeAt(Oe.position),Or(si)||Ln(si)||si===35||si===38||si===42||si===33||si===124||si===62||si===39||si===34||si===37||si===64||si===96||(si===63||si===45)&&(hr=Oe.input.charCodeAt(Oe.position+1),Or(hr)||Qn&&Ln(hr)))return!1;for(Oe.kind="scalar",Oe.result="",kr=Ve=Oe.position,Ot=!1;si!==0;){if(si===58){if(hr=Oe.input.charCodeAt(Oe.position+1),Or(hr)||Qn&&Ln(hr))break}else if(si===35){if(Sr=Oe.input.charCodeAt(Oe.position-1),Or(Sr))break}else{if(Oe.position===Oe.lineStart&&Gr(Oe)||Qn&&Ln(si))break;if(cn(si))if(wn=Oe.line,Wt=Oe.lineStart,Yt=Oe.lineIndent,lo(Oe,!1,-1),Oe.lineIndent>=pn){Ot=!0,si=Oe.input.charCodeAt(Oe.position);continue}else{Oe.position=Ve,Oe.line=wn,Oe.lineStart=Wt,Oe.lineIndent=Yt;break}}Ot&&(xi(Oe,kr,Ve,!1),un(Oe,Oe.line-wn),kr=Ve=Oe.position,Ot=!1),an(si)||(Ve=Oe.position+1),si=Oe.input.charCodeAt(++Oe.position)}return xi(Oe,kr,Ve,!1),Oe.result?!0:(Oe.kind=zn,Oe.result=Nr,!1)}function kn(Oe,pn){var Qn,Sr,hr;if(Qn=Oe.input.charCodeAt(Oe.position),Qn!==39)return!1;for(Oe.kind="scalar",Oe.result="",Oe.position++,Sr=hr=Oe.position;(Qn=Oe.input.charCodeAt(Oe.position))!==0;)if(Qn===39)if(xi(Oe,Sr,Oe.position,!0),Qn=Oe.input.charCodeAt(++Oe.position),Qn===39)Sr=Oe.position,Oe.position++,hr=Oe.position;else return!0;else cn(Qn)?(xi(Oe,Sr,hr,!0),un(Oe,lo(Oe,!1,pn)),Sr=hr=Oe.position):Oe.position===Oe.lineStart&&Gr(Oe)?hi(Oe,"unexpected end of the document within a single quoted scalar"):(Oe.position++,hr=Oe.position);hi(Oe,"unexpected end of the stream within a single quoted scalar")}function St(Oe,pn){var Qn,Sr,hr,kr,Ve,Ot;if(Ot=Oe.input.charCodeAt(Oe.position),Ot!==34)return!1;for(Oe.kind="scalar",Oe.result="",Oe.position++,Qn=Sr=Oe.position;(Ot=Oe.input.charCodeAt(Oe.position))!==0;){if(Ot===34)return xi(Oe,Qn,Oe.position,!0),Oe.position++,!0;if(Ot===92){if(xi(Oe,Qn,Oe.position,!0),Ot=Oe.input.charCodeAt(++Oe.position),cn(Ot))lo(Oe,!1,pn);else if(Ot<256&&yi[Ot])Oe.result+=jr[Ot],Oe.position++;else if((Ve=Gn(Ot))>0){for(hr=Ve,kr=0;hr>0;hr--)Ot=Oe.input.charCodeAt(++Oe.position),(Ve=En(Ot))>=0?kr=(kr<<4)+Ve:hi(Oe,"expected hexadecimal character");Oe.result+=pi(kr),Oe.position++}else hi(Oe,"unknown escape sequence");Qn=Sr=Oe.position}else cn(Ot)?(xi(Oe,Qn,Sr,!0),un(Oe,lo(Oe,!1,pn)),Qn=Sr=Oe.position):Oe.position===Oe.lineStart&&Gr(Oe)?hi(Oe,"unexpected end of the document within a double quoted scalar"):(Oe.position++,Sr=Oe.position)}hi(Oe,"unexpected end of the stream within a double quoted scalar")}function ln(Oe,pn){var Qn=!0,Sr,hr,kr,Ve=Oe.tag,Ot,wn=Oe.anchor,Wt,Yt,zn,Nr,si,Ki=Object.create(null),Bi,Xi,vo,ea;if(ea=Oe.input.charCodeAt(Oe.position),ea===91)Yt=93,si=!1,Ot=[];else if(ea===123)Yt=125,si=!0,Ot={};else return!1;for(Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=Ot),ea=Oe.input.charCodeAt(++Oe.position);ea!==0;){if(lo(Oe,!0,pn),ea=Oe.input.charCodeAt(Oe.position),ea===Yt)return Oe.position++,Oe.tag=Ve,Oe.anchor=wn,Oe.kind=si?"mapping":"sequence",Oe.result=Ot,!0;Qn?ea===44&&hi(Oe,"expected the node content, but found ','"):hi(Oe,"missed comma between flow collection entries"),Xi=Bi=vo=null,zn=Nr=!1,ea===63&&(Wt=Oe.input.charCodeAt(Oe.position+1),Or(Wt)&&(zn=Nr=!0,Oe.position++,lo(Oe,!0,pn))),Sr=Oe.line,hr=Oe.lineStart,kr=Oe.position,fn(Oe,pn,at,!1,!0),Xi=Oe.tag,Bi=Oe.result,lo(Oe,!0,pn),ea=Oe.input.charCodeAt(Oe.position),(Nr||Oe.line===Sr)&&ea===58&&(zn=!0,ea=Oe.input.charCodeAt(++Oe.position),lo(Oe,!0,pn),fn(Oe,pn,at,!1,!0),vo=Oe.result),si?Pi(Oe,Ot,Ki,Xi,Bi,vo,Sr,hr,kr):zn?Ot.push(Pi(Oe,null,Ki,Xi,Bi,vo,Sr,hr,kr)):Ot.push(Bi),lo(Oe,!0,pn),ea=Oe.input.charCodeAt(Oe.position),ea===44?(Qn=!0,ea=Oe.input.charCodeAt(++Oe.position)):Qn=!1}hi(Oe,"unexpected end of the stream within a flow collection")}function An(Oe,pn){var Qn,Sr,hr=Zt,kr=!1,Ve=!1,Ot=pn,wn=0,Wt=!1,Yt,zn;if(zn=Oe.input.charCodeAt(Oe.position),zn===124)Sr=!1;else if(zn===62)Sr=!0;else return!1;for(Oe.kind="scalar",Oe.result="";zn!==0;)if(zn=Oe.input.charCodeAt(++Oe.position),zn===43||zn===45)Zt===hr?hr=zn===43?Zn:Wn:hi(Oe,"repeat of a chomping mode identifier");else if((Yt=rr(zn))>=0)Yt===0?hi(Oe,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ve?hi(Oe,"repeat of an indentation width identifier"):(Ot=pn+Yt-1,Ve=!0);else break;if(an(zn)){do zn=Oe.input.charCodeAt(++Oe.position);while(an(zn));if(zn===35)do zn=Oe.input.charCodeAt(++Oe.position);while(!cn(zn)&&zn!==0)}for(;zn!==0;){for(io(Oe),Oe.lineIndent=0,zn=Oe.input.charCodeAt(Oe.position);(!Ve||Oe.lineIndent<Ot)&&zn===32;)Oe.lineIndent++,zn=Oe.input.charCodeAt(++Oe.position);if(!Ve&&Oe.lineIndent>Ot&&(Ot=Oe.lineIndent),cn(zn)){wn++;continue}if(Oe.lineIndent<Ot){hr===Zn?Oe.result+=w.repeat(` `,kr?1+wn:wn):hr===Zt&&kr&&(Oe.result+=` `);break}for(Sr?an(zn)?(Wt=!0,Oe.result+=w.repeat(` `,kr?1+wn:wn)):Wt?(Wt=!1,Oe.result+=w.repeat(` `,wn+1)):wn===0?kr&&(Oe.result+=" "):Oe.result+=w.repeat(` `,wn):Oe.result+=w.repeat(` `,kr?1+wn:wn),kr=!0,Ve=!0,wn=0,Qn=Oe.position;!cn(zn)&&zn!==0;)zn=Oe.input.charCodeAt(++Oe.position);xi(Oe,Qn,Oe.position,!1)}return!0}function Cr(Oe,pn){var Qn,Sr=Oe.tag,hr=Oe.anchor,kr=[],Ve,Ot=!1,wn;if(Oe.firstTabInLine!==-1)return!1;for(Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=kr),wn=Oe.input.charCodeAt(Oe.position);wn!==0&&(Oe.firstTabInLine!==-1&&(Oe.position=Oe.firstTabInLine,hi(Oe,"tab characters must not be used in indentation")),!(wn!==45||(Ve=Oe.input.charCodeAt(Oe.position+1),!Or(Ve))));){if(Ot=!0,Oe.position++,lo(Oe,!0,-1)&&Oe.lineIndent<=pn){kr.push(null),wn=Oe.input.charCodeAt(Oe.position);continue}if(Qn=Oe.line,fn(Oe,pn,On,!1,!0),kr.push(Oe.result),lo(Oe,!0,-1),wn=Oe.input.charCodeAt(Oe.position),(Oe.line===Qn||Oe.lineIndent>pn)&&wn!==0)hi(Oe,"bad indentation of a sequence entry");else if(Oe.lineIndent<pn)break}return Ot?(Oe.tag=Sr,Oe.anchor=hr,Oe.kind="sequence",Oe.result=kr,!0):!1}function _i(Oe,pn,Qn){var Sr,hr,kr,Ve,Ot,wn,Wt=Oe.tag,Yt=Oe.anchor,zn={},Nr=Object.create(null),si=null,Ki=null,Bi=null,Xi=!1,vo=!1,ea;if(Oe.firstTabInLine!==-1)return!1;for(Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=zn),ea=Oe.input.charCodeAt(Oe.position);ea!==0;){if(!Xi&&Oe.firstTabInLine!==-1&&(Oe.position=Oe.firstTabInLine,hi(Oe,"tab characters must not be used in indentation")),Sr=Oe.input.charCodeAt(Oe.position+1),kr=Oe.line,(ea===63||ea===58)&&Or(Sr))ea===63?(Xi&&(Pi(Oe,zn,Nr,si,Ki,null,Ve,Ot,wn),si=Ki=Bi=null),vo=!0,Xi=!0,hr=!0):Xi?(Xi=!1,hr=!0):hi(Oe,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Oe.position+=1,ea=Sr;else{if(Ve=Oe.line,Ot=Oe.lineStart,wn=Oe.position,!fn(Oe,Qn,$t,!1,!0))break;if(Oe.line===kr){for(ea=Oe.input.charCodeAt(Oe.position);an(ea);)ea=Oe.input.charCodeAt(++Oe.position);if(ea===58)ea=Oe.input.charCodeAt(++Oe.position),Or(ea)||hi(Oe,"a whitespace character is expected after the key-value separator within a block mapping"),Xi&&(Pi(Oe,zn,Nr,si,Ki,null,Ve,Ot,wn),si=Ki=Bi=null),vo=!0,Xi=!1,hr=!1,si=Oe.tag,Ki=Oe.result;else if(vo)hi(Oe,"can not read an implicit mapping pair; a colon is missed");else return Oe.tag=Wt,Oe.anchor=Yt,!0}else if(vo)hi(Oe,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Oe.tag=Wt,Oe.anchor=Yt,!0}if((Oe.line===kr||Oe.lineIndent>pn)&&(Xi&&(Ve=Oe.line,Ot=Oe.lineStart,wn=Oe.position),fn(Oe,pn,Ct,!0,hr)&&(Xi?Ki=Oe.result:Bi=Oe.result),Xi||(Pi(Oe,zn,Nr,si,Ki,Bi,Ve,Ot,wn),si=Ki=Bi=null),lo(Oe,!0,-1),ea=Oe.input.charCodeAt(Oe.position)),(Oe.line===kr||Oe.lineIndent>pn)&&ea!==0)hi(Oe,"bad indentation of a mapping entry");else if(Oe.lineIndent<pn)break}return Xi&&Pi(Oe,zn,Nr,si,Ki,null,Ve,Ot,wn),vo&&(Oe.tag=Wt,Oe.anchor=Yt,Oe.kind="mapping",Oe.result=zn),vo}function Sn(Oe){var pn,Qn=!1,Sr=!1,hr,kr,Ve;if(Ve=Oe.input.charCodeAt(Oe.position),Ve!==33)return!1;if(Oe.tag!==null&&hi(Oe,"duplication of a tag property"),Ve=Oe.input.charCodeAt(++Oe.position),Ve===60?(Qn=!0,Ve=Oe.input.charCodeAt(++Oe.position)):Ve===33?(Sr=!0,hr="!!",Ve=Oe.input.charCodeAt(++Oe.position)):hr="!",pn=Oe.position,Qn){do Ve=Oe.input.charCodeAt(++Oe.position);while(Ve!==0&&Ve!==62);Oe.position<Oe.length?(kr=Oe.input.slice(pn,Oe.position),Ve=Oe.input.charCodeAt(++Oe.position)):hi(Oe,"unexpected end of the stream within a verbatim tag")}else{for(;Ve!==0&&!Or(Ve);)Ve===33&&(Sr?hi(Oe,"tag suffix cannot contain exclamation marks"):(hr=Oe.input.slice(pn-1,Oe.position+1),Qt.test(hr)||hi(Oe,"named tag handle cannot contain such characters"),Sr=!0,pn=Oe.position+1)),Ve=Oe.input.charCodeAt(++Oe.position);kr=Oe.input.slice(pn,Oe.position),gn.test(kr)&&hi(Oe,"tag suffix cannot contain flow indicator characters")}kr&&!Dt.test(kr)&&hi(Oe,"tag name cannot contain such characters: "+kr);try{kr=decodeURIComponent(kr)}catch{hi(Oe,"tag name is malformed: "+kr)}return Qn?Oe.tag=kr:bt.call(Oe.tagMap,hr)?Oe.tag=Oe.tagMap[hr]+kr:hr==="!"?Oe.tag="!"+kr:hr==="!!"?Oe.tag="tag:yaml.org,2002:"+kr:hi(Oe,'undeclared tag handle "'+hr+'"'),!0}function ir(Oe){var pn,Qn;if(Qn=Oe.input.charCodeAt(Oe.position),Qn!==38)return!1;for(Oe.anchor!==null&&hi(Oe,"duplication of an anchor property"),Qn=Oe.input.charCodeAt(++Oe.position),pn=Oe.position;Qn!==0&&!Or(Qn)&&!Ln(Qn);)Qn=Oe.input.charCodeAt(++Oe.position);return Oe.position===pn&&hi(Oe,"name of an anchor node must contain at least one character"),Oe.anchor=Oe.input.slice(pn,Oe.position),!0}function mt(Oe){var pn,Qn,Sr;if(Sr=Oe.input.charCodeAt(Oe.position),Sr!==42)return!1;for(Sr=Oe.input.charCodeAt(++Oe.position),pn=Oe.position;Sr!==0&&!Or(Sr)&&!Ln(Sr);)Sr=Oe.input.charCodeAt(++Oe.position);return Oe.position===pn&&hi(Oe,"name of an alias node must contain at least one character"),Qn=Oe.input.slice(pn,Oe.position),bt.call(Oe.anchorMap,Qn)||hi(Oe,'unidentified alias "'+Qn+'"'),Oe.result=Oe.anchorMap[Qn],lo(Oe,!0,-1),!0}function fn(Oe,pn,Qn,Sr,hr){var kr,Ve,Ot,wn=1,Wt=!1,Yt=!1,zn,Nr,si,Ki,Bi,Xi;if(Oe.listener!==null&&Oe.listener("open",Oe),Oe.tag=null,Oe.anchor=null,Oe.kind=null,Oe.result=null,kr=Ve=Ot=Ct===Qn||On===Qn,Sr&&lo(Oe,!0,-1)&&(Wt=!0,Oe.lineIndent>pn?wn=1:Oe.lineIndent===pn?wn=0:Oe.lineIndent<pn&&(wn=-1)),wn===1)for(;Sn(Oe)||ir(Oe);)lo(Oe,!0,-1)?(Wt=!0,Ot=kr,Oe.lineIndent>pn?wn=1:Oe.lineIndent===pn?wn=0:Oe.lineIndent<pn&&(wn=-1)):Ot=!1;if(Ot&&(Ot=Wt||hr),(wn===1||Ct===Qn)&&(at===Qn||$t===Qn?Bi=pn:Bi=pn+1,Xi=Oe.position-Oe.lineStart,wn===1?Ot&&(Cr(Oe,Xi)||_i(Oe,Xi,Bi))||ln(Oe,Bi)?Yt=!0:(Ve&&An(Oe,Bi)||kn(Oe,Bi)||St(Oe,Bi)?Yt=!0:mt(Oe)?(Yt=!0,(Oe.tag!==null||Oe.anchor!==null)&&hi(Oe,"alias node should not have any properties")):qn(Oe,Bi,at===Qn)&&(Yt=!0,Oe.tag===null&&(Oe.tag="?")),Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=Oe.result)):wn===0&&(Yt=Ot&&Cr(Oe,Xi))),Oe.tag===null)Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=Oe.result);else if(Oe.tag==="?"){for(Oe.result!==null&&Oe.kind!=="scalar"&&hi(Oe,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+Oe.kind+'"'),zn=0,Nr=Oe.implicitTypes.length;zn<Nr;zn+=1)if(Ki=Oe.implicitTypes[zn],Ki.resolve(Oe.result)){Oe.result=Ki.construct(Oe.result),Oe.tag=Ki.tag,Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=Oe.result);break}}else if(Oe.tag!=="!"){if(bt.call(Oe.typeMap[Oe.kind||"fallback"],Oe.tag))Ki=Oe.typeMap[Oe.kind||"fallback"][Oe.tag];else for(Ki=null,si=Oe.typeMap.multi[Oe.kind||"fallback"],zn=0,Nr=si.length;zn<Nr;zn+=1)if(Oe.tag.slice(0,si[zn].tag.length)===si[zn].tag){Ki=si[zn];break}Ki||hi(Oe,"unknown tag !<"+Oe.tag+">"),Oe.result!==null&&Ki.kind!==Oe.kind&&hi(Oe,"unacceptable node kind for !<"+Oe.tag+'> tag; it should be "'+Ki.kind+'", not "'+Oe.kind+'"'),Ki.resolve(Oe.result,Oe.tag)?(Oe.result=Ki.construct(Oe.result,Oe.tag),Oe.anchor!==null&&(Oe.anchorMap[Oe.anchor]=Oe.result)):hi(Oe,"cannot resolve a node with !<"+Oe.tag+"> explicit tag")}return Oe.listener!==null&&Oe.listener("close",Oe),Oe.tag!==null||Oe.anchor!==null||Yt}function gt(Oe){var pn=Oe.position,Qn,Sr,hr,kr=!1,Ve;for(Oe.version=null,Oe.checkLineBreaks=Oe.legacy,Oe.tagMap=Object.create(null),Oe.anchorMap=Object.create(null);(Ve=Oe.input.charCodeAt(Oe.position))!==0&&(lo(Oe,!0,-1),Ve=Oe.input.charCodeAt(Oe.position),!(Oe.lineIndent>0||Ve!==37));){for(kr=!0,Ve=Oe.input.charCodeAt(++Oe.position),Qn=Oe.position;Ve!==0&&!Or(Ve);)Ve=Oe.input.charCodeAt(++Oe.position);for(Sr=Oe.input.slice(Qn,Oe.position),hr=[],Sr.length<1&&hi(Oe,"directive name must not be less than one character in length");Ve!==0;){for(;an(Ve);)Ve=Oe.input.charCodeAt(++Oe.position);if(Ve===35){do Ve=Oe.input.charCodeAt(++Oe.position);while(Ve!==0&&!cn(Ve));break}if(cn(Ve))break;for(Qn=Oe.position;Ve!==0&&!Or(Ve);)Ve=Oe.input.charCodeAt(++Oe.position);hr.push(Oe.input.slice(Qn,Oe.position))}Ve!==0&&io(Oe),bt.call(Kr,Sr)?Kr[Sr](Oe,Sr,hr):Si(Oe,'unknown document directive "'+Sr+'"')}if(lo(Oe,!0,-1),Oe.lineIndent===0&&Oe.input.charCodeAt(Oe.position)===45&&Oe.input.charCodeAt(Oe.position+1)===45&&Oe.input.charCodeAt(Oe.position+2)===45?(Oe.position+=3,lo(Oe,!0,-1)):kr&&hi(Oe,"directives end mark is expected"),fn(Oe,Oe.lineIndent-1,Ct,!1,!0),lo(Oe,!0,-1),Oe.checkLineBreaks&&Xe.test(Oe.input.slice(pn,Oe.position))&&Si(Oe,"non-ASCII line breaks are interpreted as content"),Oe.documents.push(Oe.result),Oe.position===Oe.lineStart&&Gr(Oe)){Oe.input.charCodeAt(Oe.position)===46&&(Oe.position+=3,lo(Oe,!0,-1));return}if(Oe.position<Oe.length-1)hi(Oe,"end of the stream or a document separator is expected");else return}function tn(Oe,pn){Oe=String(Oe),pn=pn||{},Oe.length!==0&&(Oe.charCodeAt(Oe.length-1)!==10&&Oe.charCodeAt(Oe.length-1)!==13&&(Oe+=` `),Oe.charCodeAt(0)===65279&&(Oe=Oe.slice(1)));var Qn=new bi(Oe,pn),Sr=Oe.indexOf("\0");for(Sr!==-1&&(Qn.position=Sr,hi(Qn,"null byte is not allowed in input")),Qn.input+="\0";Qn.input.charCodeAt(Qn.position)===32;)Qn.lineIndent+=1,Qn.position+=1;for(;Qn.position<Qn.length-1;)gt(Qn);return Qn.documents}function Vn(Oe,pn,Qn){pn!==null&&typeof pn=="object"&&typeof Qn>"u"&&(Qn=pn,pn=null);var Sr=tn(Oe,Qn);if(typeof pn!="function")return Sr;for(var hr=0,kr=Sr.length;hr<kr;hr+=1)pn(Sr[hr])}function Ur(Oe,pn){var Qn=tn(Oe,pn);if(Qn.length!==0){if(Qn.length===1)return Qn[0];throw new R("expected a single document in the stream, but found more")}}var $r=Vn,Pr=Ur,zr={loadAll:$r,load:Pr},gi=Object.prototype.toString,$i=Object.prototype.hasOwnProperty,eo=65279,ki=9,so=10,Ho=13,ra=32,So=33,gr=34,di=35,Vi=37,Ro=38,na=39,ta=42,aa=44,vi=45,to=58,$o=61,ja=62,hs=63,ro=64,as=91,rn=93,Dr=96,Lr=123,li=124,Zi=125,Di={};Di[0]="\\0",Di[7]="\\a",Di[8]="\\b",Di[9]="\\t",Di[10]="\\n",Di[11]="\\v",Di[12]="\\f",Di[13]="\\r",Di[27]="\\e",Di[34]='\\"',Di[92]="\\\\",Di[133]="\\N",Di[160]="\\_",Di[8232]="\\L",Di[8233]="\\P";var wo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Go=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ko(Oe,pn){var Qn,Sr,hr,kr,Ve,Ot,wn;if(pn===null)return{};for(Qn={},Sr=Object.keys(pn),hr=0,kr=Sr.length;hr<kr;hr+=1)Ve=Sr[hr],Ot=String(pn[Ve]),Ve.slice(0,2)==="!!"&&(Ve="tag:yaml.org,2002:"+Ve.slice(2)),wn=Oe.compiledTypeMap.fallback[Ve],wn&&$i.call(wn.styleAliases,Ot)&&(Ot=wn.styleAliases[Ot]),Qn[Ve]=Ot;return Qn}function Ie(Oe){var pn,Qn,Sr;if(pn=Oe.toString(16).toUpperCase(),Oe<=255)Qn="x",Sr=2;else if(Oe<=65535)Qn="u",Sr=4;else if(Oe<=4294967295)Qn="U",Sr=8;else throw new R("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+Qn+w.repeat("0",Sr-pn.length)+pn}var yt=1,on=2;function _n(Oe){this.schema=Oe.schema||nn,this.indent=Math.max(1,Oe.indent||2),this.noArrayIndent=Oe.noArrayIndent||!1,this.skipInvalid=Oe.skipInvalid||!1,this.flowLevel=w.isNothing(Oe.flowLevel)?-1:Oe.flowLevel,this.styleMap=Ko(this.schema,Oe.styles||null),this.sortKeys=Oe.sortKeys||!1,this.lineWidth=Oe.lineWidth||80,this.noRefs=Oe.noRefs||!1,this.noCompatMode=Oe.noCompatMode||!1,this.condenseFlow=Oe.condenseFlow||!1,this.quotingType=Oe.quotingType==='"'?on:yt,this.forceQuotes=Oe.forceQuotes||!1,this.replacer=typeof Oe.replacer=="function"?Oe.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function er(Oe,pn){for(var Qn=w.repeat(" ",pn),Sr=0,hr=-1,kr="",Ve,Ot=Oe.length;Sr<Ot;)hr=Oe.indexOf(` `,Sr),hr===-1?(Ve=Oe.slice(Sr),Sr=Ot):(Ve=Oe.slice(Sr,hr+1),Sr=hr+1),Ve.length&&Ve!==` `&&(kr+=Qn),kr+=Ve;return kr}function or(Oe,pn){return` `+w.repeat(" ",Oe.indent*pn)}function Er(Oe,pn){var Qn,Sr,hr;for(Qn=0,Sr=Oe.implicitTypes.length;Qn<Sr;Qn+=1)if(hr=Oe.implicitTypes[Qn],hr.resolve(pn))return!0;return!1}function Mi(Oe){return Oe===ra||Oe===ki}function Ui(Oe){return 32<=Oe&&Oe<=126||161<=Oe&&Oe<=55295&&Oe!==8232&&Oe!==8233||57344<=Oe&&Oe<=65533&&Oe!==eo||65536<=Oe&&Oe<=1114111}function Nn(Oe){return Ui(Oe)&&Oe!==eo&&Oe!==Ho&&Oe!==so}function cr(Oe,pn,Qn){var Sr=Nn(Oe),hr=Sr&&!Mi(Oe);return(Qn?Sr:Sr&&Oe!==aa&&Oe!==as&&Oe!==rn&&Oe!==Lr&&Oe!==Zi)&&Oe!==di&&!(pn===to&&!hr)||Nn(pn)&&!Mi(pn)&&Oe===di||pn===to&&hr}function ni(Oe){return Ui(Oe)&&Oe!==eo&&!Mi(Oe)&&Oe!==vi&&Oe!==hs&&Oe!==to&&Oe!==aa&&Oe!==as&&Oe!==rn&&Oe!==Lr&&Oe!==Zi&&Oe!==di&&Oe!==Ro&&Oe!==ta&&Oe!==So&&Oe!==li&&Oe!==$o&&Oe!==ja&&Oe!==na&&Oe!==gr&&Oe!==Vi&&Oe!==ro&&Oe!==Dr}function Xr(Oe){return!Mi(Oe)&&Oe!==to}function Jr(Oe,pn){var Qn=Oe.charCodeAt(pn),Sr;return Qn>=55296&&Qn<=56319&&pn+1<Oe.length&&(Sr=Oe.charCodeAt(pn+1),Sr>=56320&&Sr<=57343)?(Qn-55296)*1024+Sr-56320+65536:Qn}function Qi(Oe){var pn=/^\n* /;return pn.test(Oe)}var Fo=1,No=2,Jo=3,br=4,Yn=5;function Z(Oe,pn,Qn,Sr,hr,kr,Ve,Ot){var wn,Wt=0,Yt=null,zn=!1,Nr=!1,si=Sr!==-1,Ki=-1,Bi=ni(Jr(Oe,0))&&Xr(Jr(Oe,Oe.length-1));if(pn||Ve)for(wn=0;wn<Oe.length;Wt>=65536?wn+=2:wn++){if(Wt=Jr(Oe,wn),!Ui(Wt))return Yn;Bi=Bi&&cr(Wt,Yt,Ot),Yt=Wt}else{for(wn=0;wn<Oe.length;Wt>=65536?wn+=2:wn++){if(Wt=Jr(Oe,wn),Wt===so)zn=!0,si&&(Nr=Nr||wn-Ki-1>Sr&&Oe[Ki+1]!==" ",Ki=wn);else if(!Ui(Wt))return Yn;Bi=Bi&&cr(Wt,Yt,Ot),Yt=Wt}Nr=Nr||si&&wn-Ki-1>Sr&&Oe[Ki+1]!==" "}return!zn&&!Nr?Bi&&!Ve&&!hr(Oe)?Fo:kr===on?Yn:No:Qn>9&&Qi(Oe)?Yn:Ve?kr===on?Yn:No:Nr?br:Jo}function se(Oe,pn,Qn,Sr,hr){Oe.dump=function(){if(pn.length===0)return Oe.quotingType===on?'""':"''";if(!Oe.noCompatMode&&(wo.indexOf(pn)!==-1||Go.test(pn)))return Oe.quotingType===on?'"'+pn+'"':"'"+pn+"'";var kr=Oe.indent*Math.max(1,Qn),Ve=Oe.lineWidth===-1?-1:Math.max(Math.min(Oe.lineWidth,40),Oe.lineWidth-kr),Ot=Sr||Oe.flowLevel>-1&&Qn>=Oe.flowLevel;function wn(Wt){return Er(Oe,Wt)}switch(Z(pn,Ot,Oe.indent,Ve,wn,Oe.quotingType,Oe.forceQuotes&&!Sr,hr)){case Fo:return pn;case No:return"'"+pn.replace(/'/g,"''")+"'";case Jo:return"|"+G(pn,Oe.indent)+B(er(pn,kr));case br:return">"+G(pn,Oe.indent)+B(er(Pe(pn,Ve),kr));case Yn:return'"'+Lt(pn)+'"';default:throw new R("impossible error: invalid scalar style")}}()}function G(Oe,pn){var Qn=Qi(Oe)?String(pn):"",Sr=Oe[Oe.length-1]===` `,hr=Sr&&(Oe[Oe.length-2]===` `||Oe===` `),kr=hr?"+":Sr?"":"-";return Qn+kr+` `}function B(Oe){return Oe[Oe.length-1]===` `?Oe.slice(0,-1):Oe}function Pe(Oe,pn){for(var Qn=/(\n+)([^\n]*)/g,Sr=function(){var Wt=Oe.indexOf(` `);return Wt=Wt!==-1?Wt:Oe.length,Qn.lastIndex=Wt,dt(Oe.slice(0,Wt),pn)}(),hr=Oe[0]===` `||Oe[0]===" ",kr,Ve;Ve=Qn.exec(Oe);){var Ot=Ve[1],wn=Ve[2];kr=wn[0]===" ",Sr+=Ot+(!hr&&!kr&&wn!==""?` `:"")+dt(wn,pn),hr=kr}return Sr}function dt(Oe,pn){if(Oe===""||Oe[0]===" ")return Oe;for(var Qn=/ [^ ]/g,Sr,hr=0,kr,Ve=0,Ot=0,wn="";Sr=Qn.exec(Oe);)Ot=Sr.index,Ot-hr>pn&&(kr=Ve>hr?Ve:Ot,wn+=` `+Oe.slice(hr,kr),hr=kr+1),Ve=Ot;return wn+=` `,Oe.length-hr>pn&&Ve>hr?wn+=Oe.slice(hr,Ve)+` `+Oe.slice(Ve+1):wn+=Oe.slice(hr),wn.slice(1)}function Lt(Oe){for(var pn="",Qn=0,Sr,hr=0;hr<Oe.length;Qn>=65536?hr+=2:hr++)Qn=Jr(Oe,hr),Sr=Di[Qn],!Sr&&Ui(Qn)?(pn+=Oe[hr],Qn>=65536&&(pn+=Oe[hr+1])):pn+=Sr||Ie(Qn);return pn}function Pt(Oe,pn,Qn){var Sr="",hr=Oe.tag,kr,Ve,Ot;for(kr=0,Ve=Qn.length;kr<Ve;kr+=1)Ot=Qn[kr],Oe.replacer&&(Ot=Oe.replacer.call(Qn,String(kr),Ot)),(Fn(Oe,pn,Ot,!1,!1)||typeof Ot>"u"&&Fn(Oe,pn,null,!1,!1))&&(Sr!==""&&(Sr+=","+(Oe.condenseFlow?"":" ")),Sr+=Oe.dump);Oe.tag=hr,Oe.dump="["+Sr+"]"}function $e(Oe,pn,Qn,Sr){var hr="",kr=Oe.tag,Ve,Ot,wn;for(Ve=0,Ot=Qn.length;Ve<Ot;Ve+=1)wn=Qn[Ve],Oe.replacer&&(wn=Oe.replacer.call(Qn,String(Ve),wn)),(Fn(Oe,pn+1,wn,!0,!0,!1,!0)||typeof wn>"u"&&Fn(Oe,pn+1,null,!0,!0,!1,!0))&&((!Sr||hr!=="")&&(hr+=or(Oe,pn)),Oe.dump&&so===Oe.dump.charCodeAt(0)?hr+="-":hr+="- ",hr+=Oe.dump);Oe.tag=kr,Oe.dump=hr||"[]"}function ut(Oe,pn,Qn){var Sr="",hr=Oe.tag,kr=Object.keys(Qn),Ve,Ot,wn,Wt,Yt;for(Ve=0,Ot=kr.length;Ve<Ot;Ve+=1)Yt="",Sr!==""&&(Yt+=", "),Oe.condenseFlow&&(Yt+='"'),wn=kr[Ve],Wt=Qn[wn],Oe.replacer&&(Wt=Oe.replacer.call(Qn,wn,Wt)),Fn(Oe,pn,wn,!1,!1)&&(Oe.dump.length>1024&&(Yt+="? "),Yt+=Oe.dump+(Oe.condenseFlow?'"':"")+":"+(Oe.condenseFlow?"":" "),Fn(Oe,pn,Wt,!1,!1)&&(Yt+=Oe.dump,Sr+=Yt));Oe.tag=hr,Oe.dump="{"+Sr+"}"}function zt(Oe,pn,Qn,Sr){var hr="",kr=Oe.tag,Ve=Object.keys(Qn),Ot,wn,Wt,Yt,zn,Nr;if(Oe.sortKeys===!0)Ve.sort();else if(typeof Oe.sortKeys=="function")Ve.sort(Oe.sortKeys);else if(Oe.sortKeys)throw new R("sortKeys must be a boolean or a function");for(Ot=0,wn=Ve.length;Ot<wn;Ot+=1)Nr="",(!Sr||hr!=="")&&(Nr+=or(Oe,pn)),Wt=Ve[Ot],Yt=Qn[Wt],Oe.replacer&&(Yt=Oe.replacer.call(Qn,Wt,Yt)),Fn(Oe,pn+1,Wt,!0,!0,!0)&&(zn=Oe.tag!==null&&Oe.tag!=="?"||Oe.dump&&Oe.dump.length>1024,zn&&(Oe.dump&&so===Oe.dump.charCodeAt(0)?Nr+="?":Nr+="? "),Nr+=Oe.dump,zn&&(Nr+=or(Oe,pn)),Fn(Oe,pn+1,Yt,!0,zn)&&(Oe.dump&&so===Oe.dump.charCodeAt(0)?Nr+=":":Nr+=": ",Nr+=Oe.dump,hr+=Nr));Oe.tag=kr,Oe.dump=hr||"{}"}function Ht(Oe,pn,Qn){var Sr,hr,kr,Ve,Ot,wn;for(hr=Qn?Oe.explicitTypes:Oe.implicitTypes,kr=0,Ve=hr.length;kr<Ve;kr+=1)if(Ot=hr[kr],(Ot.instanceOf||Ot.predicate)&&(!Ot.instanceOf||typeof pn=="object"&&pn instanceof Ot.instanceOf)&&(!Ot.predicate||Ot.predicate(pn))){if(Qn?Ot.multi&&Ot.representName?Oe.tag=Ot.representName(pn):Oe.tag=Ot.tag:Oe.tag="?",Ot.represent){if(wn=Oe.styleMap[Ot.tag]||Ot.defaultStyle,gi.call(Ot.represent)==="[object Function]")Sr=Ot.represent(pn,wn);else if($i.call(Ot.represent,wn))Sr=Ot.represent[wn](pn,wn);else throw new R("!<"+Ot.tag+'> tag resolver accepts not "'+wn+'" style');Oe.dump=Sr}return!0}return!1}function Fn(Oe,pn,Qn,Sr,hr,kr,Ve){Oe.tag=null,Oe.dump=Qn,Ht(Oe,Qn,!1)||Ht(Oe,Qn,!0);var Ot=gi.call(Oe.dump),wn=Sr,Wt;Sr&&(Sr=Oe.flowLevel<0||Oe.flowLevel>pn);var Yt=Ot==="[object Object]"||Ot==="[object Array]",zn,Nr;if(Yt&&(zn=Oe.duplicates.indexOf(Qn),Nr=zn!==-1),(Oe.tag!==null&&Oe.tag!=="?"||Nr||Oe.indent!==2&&pn>0)&&(hr=!1),Nr&&Oe.usedDuplicates[zn])Oe.dump="*ref_"+zn;else{if(Yt&&Nr&&!Oe.usedDuplicates[zn]&&(Oe.usedDuplicates[zn]=!0),Ot==="[object Object]")Sr&&Object.keys(Oe.dump).length!==0?(zt(Oe,pn,Oe.dump,hr),Nr&&(Oe.dump="&ref_"+zn+Oe.dump)):(ut(Oe,pn,Oe.dump),Nr&&(Oe.dump="&ref_"+zn+" "+Oe.dump));else if(Ot==="[object Array]")Sr&&Oe.dump.length!==0?(Oe.noArrayIndent&&!Ve&&pn>0?$e(Oe,pn-1,Oe.dump,hr):$e(Oe,pn,Oe.dump,hr),Nr&&(Oe.dump="&ref_"+zn+Oe.dump)):(Pt(Oe,pn,Oe.dump),Nr&&(Oe.dump="&ref_"+zn+" "+Oe.dump));else if(Ot==="[object String]")Oe.tag!=="?"&&se(Oe,Oe.dump,pn,kr,wn);else{if(Ot==="[object Undefined]")return!1;if(Oe.skipInvalid)return!1;throw new R("unacceptable kind of an object to dump "+Ot)}Oe.tag!==null&&Oe.tag!=="?"&&(Wt=encodeURI(Oe.tag[0]==="!"?Oe.tag.slice(1):Oe.tag).replace(/!/g,"%21"),Oe.tag[0]==="!"?Wt="!"+Wt:Wt.slice(0,18)==="tag:yaml.org,2002:"?Wt="!!"+Wt.slice(18):Wt="!<"+Wt+">",Oe.dump=Wt+" "+Oe.dump)}return!0}function Cn(Oe,pn){var Qn=[],Sr=[],hr,kr;for(tr(Oe,Qn,Sr),hr=0,kr=Sr.length;hr<kr;hr+=1)pn.duplicates.push(Qn[Sr[hr]]);pn.usedDuplicates=new Array(kr)}function tr(Oe,pn,Qn){var Sr,hr,kr;if(Oe!==null&&typeof Oe=="object")if(hr=pn.indexOf(Oe),hr!==-1)Qn.indexOf(hr)===-1&&Qn.push(hr);else if(pn.push(Oe),Array.isArray(Oe))for(hr=0,kr=Oe.length;hr<kr;hr+=1)tr(Oe[hr],pn,Qn);else for(Sr=Object.keys(Oe),hr=0,kr=Sr.length;hr<kr;hr+=1)tr(Oe[Sr[hr]],pn,Qn)}function Jn(Oe,pn){pn=pn||{};var Qn=new _n(pn);Qn.noRefs||Cn(Oe,Qn);var Sr=Oe;return Qn.replacer&&(Sr=Qn.replacer.call({"":Sr},"",Sr)),Fn(Qn,0,Sr,!0,!0)?Qn.dump+` `:""}var ei=Jn,Ci={dump:ei};function zi(Oe,pn){return function(){throw new Error("Function yaml."+Oe+" is removed in js-yaml 4. Use yaml."+pn+" instead, which is now safe by default.")}}var co=N,Xo=fe,Eo=re,Yo=Ye,Xn=ft,fr=nn,mr=zr.load,yr=zr.loadAll,Rr=Ci.dump,ai=R,jt={binary:ze,float:ke,map:oe,null:Te,pairs:ge,set:Bt,timestamp:et,bool:ye,int:pt,merge:I,omap:Ge,seq:ce,str:ve},Pn=zi("safeLoad","load"),nr=zi("safeLoadAll","loadAll"),Ir=zi("safeDump","dump"),fi={Type:co,Schema:Xo,FAILSAFE_SCHEMA:Eo,JSON_SCHEMA:Yo,CORE_SCHEMA:Xn,DEFAULT_SCHEMA:fr,load:mr,loadAll:yr,dump:Rr,YAMLException:ai,types:jt,safeLoad:Pn,safeLoadAll:nr,safeDump:Ir},Ti=null},51088:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});const i=[],l=[];function s(m,u){if(m===u)return 0;const f=m;m.length>u.length&&(m=u,u=f);let p=m.length,v=u.length;for(;p>0&&m.charCodeAt(~-p)===u.charCodeAt(~-v);)p--,v--;let h=0;for(;h<p&&m.charCodeAt(h)===u.charCodeAt(h);)h++;if(p-=h,v-=h,p===0)return v;let d,b,y,w,S=0,O=0;for(;S<p;)l[S]=m.charCodeAt(h+S),i[S]=++S;for(;O<v;)for(d=u.charCodeAt(h+O),y=O++,b=O,S=0;S<p;S++)w=d===l[S]?y:y+1,y=i[S],b=i[S]=y>b?w>b?b+1:w:w>y?y+1:w;return b}},33836:(J,g,t)=>{"use strict";t.d(g,{z:()=>i});function i(){return{mangle:!1,walkTokens(s){if(s.type!=="link"||!s.href.startsWith("mailto:"))return;const m=s.href.substring(7),u=l(m);s.href=`mailto:${u}`,!(s.tokens.length!==1||s.tokens[0].type!=="text"||s.tokens[0].text!==m)&&(s.text=u,s.tokens[0].text=u)}}}function l(s){let m="",u,f;const p=s.length;for(u=0;u<p;u++)f=s.charCodeAt(u),Math.random()>.5&&(f="x"+f.toString(16)),m+="&#"+f+";";return m}},60023:(J,g,t)=>{"use strict";t.d(g,{xI:()=>Ge});function i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let l=i();function s(nn){l=nn}const m=/[&<>"']/,u=new RegExp(m.source,"g"),f=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,p=new RegExp(f.source,"g"),v={"&":"&","<":"<",">":">",'"':""","'":"'"},h=nn=>v[nn];function d(nn,bt){if(bt){if(m.test(nn))return nn.replace(u,h)}else if(f.test(nn))return nn.replace(p,h);return nn}const b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(nn){return nn.replace(b,(bt,at)=>(at=at.toLowerCase(),at==="colon"?":":at.charAt(0)==="#"?at.charAt(1)==="x"?String.fromCharCode(parseInt(at.substring(2),16)):String.fromCharCode(+at.substring(1)):""))}const w=/(^|[^\[])\^/g;function S(nn,bt){let at=typeof nn=="string"?nn:nn.source;bt=bt||"";const $t={replace:(On,Ct)=>{let Zt=typeof Ct=="string"?Ct:Ct.source;return Zt=Zt.replace(w,"$1"),at=at.replace(On,Zt),$t},getRegex:()=>new RegExp(at,bt)};return $t}function O(nn){try{nn=encodeURI(nn).replace(/%25/g,"%")}catch{return null}return nn}const R={exec:()=>null};function M(nn,bt){const at=nn.replace(/\|/g,(Ct,Zt,Wn)=>{let Zn=!1,xt=Zt;for(;--xt>=0&&Wn[xt]==="\\";)Zn=!Zn;return Zn?"|":" |"}),$t=at.split(/ \|/);let On=0;if($t[0].trim()||$t.shift(),$t.length>0&&!$t[$t.length-1].trim()&&$t.pop(),bt)if($t.length>bt)$t.splice(bt);else for(;$t.length<bt;)$t.push("");for(;On<$t.length;On++)$t[On]=$t[On].trim().replace(/\\\|/g,"|");return $t}function D(nn,bt,at){const $t=nn.length;if($t===0)return"";let On=0;for(;On<$t;){const Ct=nn.charAt($t-On-1);if(Ct===bt&&!at)On++;else if(Ct!==bt&&at)On++;else break}return nn.slice(0,$t-On)}function P(nn,bt){if(nn.indexOf(bt[1])===-1)return-1;let at=0;for(let $t=0;$t<nn.length;$t++)if(nn[$t]==="\\")$t++;else if(nn[$t]===bt[0])at++;else if(nn[$t]===bt[1]&&(at--,at<0))return $t;return-1}function T(nn,bt,at,$t){const On=bt.href,Ct=bt.title?d(bt.title):null,Zt=nn[1].replace(/\\([\[\]])/g,"$1");if(nn[0].charAt(0)!=="!"){$t.state.inLink=!0;const Wn={type:"link",raw:at,href:On,title:Ct,text:Zt,tokens:$t.inlineTokens(Zt)};return $t.state.inLink=!1,Wn}return{type:"image",raw:at,href:On,title:Ct,text:d(Zt)}}function A(nn,bt){const at=nn.match(/^(\s+)(?:```)/);if(at===null)return bt;const $t=at[1];return bt.split(` `).map(On=>{const Ct=On.match(/^\s+/);if(Ct===null)return On;const[Zt]=Ct;return Zt.length>=$t.length?On.slice($t.length):On}).join(` `)}class j{options;rules;lexer;constructor(bt){this.options=bt||l}space(bt){const at=this.rules.block.newline.exec(bt);if(at&&at[0].length>0)return{type:"space",raw:at[0]}}code(bt){const at=this.rules.block.code.exec(bt);if(at){const $t=at[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:at[0],codeBlockStyle:"indented",text:this.options.pedantic?$t:D($t,` `)}}}fences(bt){const at=this.rules.block.fences.exec(bt);if(at){const $t=at[0],On=A($t,at[3]||"");return{type:"code",raw:$t,lang:at[2]?at[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):at[2],text:On}}}heading(bt){const at=this.rules.block.heading.exec(bt);if(at){let $t=at[2].trim();if(/#$/.test($t)){const On=D($t,"#");(this.options.pedantic||!On||/ $/.test(On))&&($t=On.trim())}return{type:"heading",raw:at[0],depth:at[1].length,text:$t,tokens:this.lexer.inline($t)}}}hr(bt){const at=this.rules.block.hr.exec(bt);if(at)return{type:"hr",raw:at[0]}}blockquote(bt){const at=this.rules.block.blockquote.exec(bt);if(at){const $t=D(at[0].replace(/^ *>[ \t]?/gm,""),` `),On=this.lexer.state.top;this.lexer.state.top=!0;const Ct=this.lexer.blockTokens($t);return this.lexer.state.top=On,{type:"blockquote",raw:at[0],tokens:Ct,text:$t}}}list(bt){let at=this.rules.block.list.exec(bt);if(at){let $t=at[1].trim();const On=$t.length>1,Ct={type:"list",raw:"",ordered:On,start:On?+$t.slice(0,-1):"",loose:!1,items:[]};$t=On?`\\d{1,9}\\${$t.slice(-1)}`:`\\${$t}`,this.options.pedantic&&($t=On?$t:"[*+-]");const Zt=new RegExp(`^( {0,3}${$t})((?:[ ][^\\n]*)?(?:\\n|$))`);let Wn="",Zn="",xt=!1;for(;bt;){let Xe=!1;if(!(at=Zt.exec(bt))||this.rules.block.hr.test(bt))break;Wn=at[0],bt=bt.substring(Wn.length);let gn=at[2].split(` `,1)[0].replace(/^\t+/,Or=>" ".repeat(3*Or.length)),Qt=bt.split(` `,1)[0],Dt=0;this.options.pedantic?(Dt=2,Zn=gn.trimStart()):(Dt=at[2].search(/[^ ]/),Dt=Dt>4?1:Dt,Zn=gn.slice(Dt),Dt+=at[1].length);let hn=!1;if(!gn&&/^ *$/.test(Qt)&&(Wn+=Qt+` `,bt=bt.substring(Qt.length+1),Xe=!0),!Xe){const Or=new RegExp(`^ {0,${Math.min(3,Dt-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Ln=new RegExp(`^ {0,${Math.min(3,Dt-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),En=new RegExp(`^ {0,${Math.min(3,Dt-1)}}(?:\`\`\`|~~~)`),Gn=new RegExp(`^ {0,${Math.min(3,Dt-1)}}#`);for(;bt;){const rr=bt.split(` `,1)[0];if(Qt=rr,this.options.pedantic&&(Qt=Qt.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),En.test(Qt)||Gn.test(Qt)||Or.test(Qt)||Ln.test(bt))break;if(Qt.search(/[^ ]/)>=Dt||!Qt.trim())Zn+=` `+Qt.slice(Dt);else{if(hn||gn.search(/[^ ]/)>=4||En.test(gn)||Gn.test(gn)||Ln.test(gn))break;Zn+=` `+Qt}!hn&&!Qt.trim()&&(hn=!0),Wn+=rr+` `,bt=bt.substring(rr.length+1),gn=Qt.slice(Dt)}}Ct.loose||(xt?Ct.loose=!0:/\n *\n *$/.test(Wn)&&(xt=!0));let cn=null,an;this.options.gfm&&(cn=/^\[[ xX]\] /.exec(Zn),cn&&(an=cn[0]!=="[ ] ",Zn=Zn.replace(/^\[[ xX]\] +/,""))),Ct.items.push({type:"list_item",raw:Wn,task:!!cn,checked:an,loose:!1,text:Zn,tokens:[]}),Ct.raw+=Wn}Ct.items[Ct.items.length-1].raw=Wn.trimEnd(),Ct.items[Ct.items.length-1].text=Zn.trimEnd(),Ct.raw=Ct.raw.trimEnd();for(let Xe=0;Xe<Ct.items.length;Xe++)if(this.lexer.state.top=!1,Ct.items[Xe].tokens=this.lexer.blockTokens(Ct.items[Xe].text,[]),!Ct.loose){const gn=Ct.items[Xe].tokens.filter(Dt=>Dt.type==="space"),Qt=gn.length>0&&gn.some(Dt=>/\n.*\n/.test(Dt.raw));Ct.loose=Qt}if(Ct.loose)for(let Xe=0;Xe<Ct.items.length;Xe++)Ct.items[Xe].loose=!0;return Ct}}html(bt){const at=this.rules.block.html.exec(bt);if(at)return{type:"html",block:!0,raw:at[0],pre:at[1]==="pre"||at[1]==="script"||at[1]==="style",text:at[0]}}def(bt){const at=this.rules.block.def.exec(bt);if(at){const $t=at[1].toLowerCase().replace(/\s+/g," "),On=at[2]?at[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Ct=at[3]?at[3].substring(1,at[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):at[3];return{type:"def",tag:$t,raw:at[0],href:On,title:Ct}}}table(bt){const at=this.rules.block.table.exec(bt);if(!at||!/[:|]/.test(at[2]))return;const $t=M(at[1]),On=at[2].replace(/^\||\| *$/g,"").split("|"),Ct=at[3]&&at[3].trim()?at[3].replace(/\n[ \t]*$/,"").split(` `):[],Zt={type:"table",raw:at[0],header:[],align:[],rows:[]};if($t.length===On.length){for(const Wn of On)/^ *-+: *$/.test(Wn)?Zt.align.push("right"):/^ *:-+: *$/.test(Wn)?Zt.align.push("center"):/^ *:-+ *$/.test(Wn)?Zt.align.push("left"):Zt.align.push(null);for(const Wn of $t)Zt.header.push({text:Wn,tokens:this.lexer.inline(Wn)});for(const Wn of Ct)Zt.rows.push(M(Wn,Zt.header.length).map(Zn=>({text:Zn,tokens:this.lexer.inline(Zn)})));return Zt}}lheading(bt){const at=this.rules.block.lheading.exec(bt);if(at)return{type:"heading",raw:at[0],depth:at[2].charAt(0)==="="?1:2,text:at[1],tokens:this.lexer.inline(at[1])}}paragraph(bt){const at=this.rules.block.paragraph.exec(bt);if(at){const $t=at[1].charAt(at[1].length-1)===` `?at[1].slice(0,-1):at[1];return{type:"paragraph",raw:at[0],text:$t,tokens:this.lexer.inline($t)}}}text(bt){const at=this.rules.block.text.exec(bt);if(at)return{type:"text",raw:at[0],text:at[0],tokens:this.lexer.inline(at[0])}}escape(bt){const at=this.rules.inline.escape.exec(bt);if(at)return{type:"escape",raw:at[0],text:d(at[1])}}tag(bt){const at=this.rules.inline.tag.exec(bt);if(at)return!this.lexer.state.inLink&&/^<a /i.test(at[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(at[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(at[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(at[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:at[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:at[0]}}link(bt){const at=this.rules.inline.link.exec(bt);if(at){const $t=at[2].trim();if(!this.options.pedantic&&/^</.test($t)){if(!/>$/.test($t))return;const Zt=D($t.slice(0,-1),"\\");if(($t.length-Zt.length)%2===0)return}else{const Zt=P(at[2],"()");if(Zt>-1){const Zn=(at[0].indexOf("!")===0?5:4)+at[1].length+Zt;at[2]=at[2].substring(0,Zt),at[0]=at[0].substring(0,Zn).trim(),at[3]=""}}let On=at[2],Ct="";if(this.options.pedantic){const Zt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(On);Zt&&(On=Zt[1],Ct=Zt[3])}else Ct=at[3]?at[3].slice(1,-1):"";return On=On.trim(),/^</.test(On)&&(this.options.pedantic&&!/>$/.test($t)?On=On.slice(1):On=On.slice(1,-1)),T(at,{href:On&&On.replace(this.rules.inline.anyPunctuation,"$1"),title:Ct&&Ct.replace(this.rules.inline.anyPunctuation,"$1")},at[0],this.lexer)}}reflink(bt,at){let $t;if(($t=this.rules.inline.reflink.exec(bt))||($t=this.rules.inline.nolink.exec(bt))){const On=($t[2]||$t[1]).replace(/\s+/g," "),Ct=at[On.toLowerCase()];if(!Ct){const Zt=$t[0].charAt(0);return{type:"text",raw:Zt,text:Zt}}return T($t,Ct,$t[0],this.lexer)}}emStrong(bt,at,$t=""){let On=this.rules.inline.emStrongLDelim.exec(bt);if(!On||On[3]&&$t.match(/[\p{L}\p{N}]/u))return;if(!(On[1]||On[2]||"")||!$t||this.rules.inline.punctuation.exec($t)){const Zt=[...On[0]].length-1;let Wn,Zn,xt=Zt,Xe=0;const gn=On[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(gn.lastIndex=0,at=at.slice(-1*bt.length+Zt);(On=gn.exec(at))!=null;){if(Wn=On[1]||On[2]||On[3]||On[4]||On[5]||On[6],!Wn)continue;if(Zn=[...Wn].length,On[3]||On[4]){xt+=Zn;continue}else if((On[5]||On[6])&&Zt%3&&!((Zt+Zn)%3)){Xe+=Zn;continue}if(xt-=Zn,xt>0)continue;Zn=Math.min(Zn,Zn+xt+Xe);const Qt=[...On[0]][0].length,Dt=bt.slice(0,Zt+On.index+Qt+Zn);if(Math.min(Zt,Zn)%2){const cn=Dt.slice(1,-1);return{type:"em",raw:Dt,text:cn,tokens:this.lexer.inlineTokens(cn)}}const hn=Dt.slice(2,-2);return{type:"strong",raw:Dt,text:hn,tokens:this.lexer.inlineTokens(hn)}}}}codespan(bt){const at=this.rules.inline.code.exec(bt);if(at){let $t=at[2].replace(/\n/g," ");const On=/[^ ]/.test($t),Ct=/^ /.test($t)&&/ $/.test($t);return On&&Ct&&($t=$t.substring(1,$t.length-1)),$t=d($t,!0),{type:"codespan",raw:at[0],text:$t}}}br(bt){const at=this.rules.inline.br.exec(bt);if(at)return{type:"br",raw:at[0]}}del(bt){const at=this.rules.inline.del.exec(bt);if(at)return{type:"del",raw:at[0],text:at[2],tokens:this.lexer.inlineTokens(at[2])}}autolink(bt){const at=this.rules.inline.autolink.exec(bt);if(at){let $t,On;return at[2]==="@"?($t=d(at[1]),On="mailto:"+$t):($t=d(at[1]),On=$t),{type:"link",raw:at[0],text:$t,href:On,tokens:[{type:"text",raw:$t,text:$t}]}}}url(bt){let at;if(at=this.rules.inline.url.exec(bt)){let $t,On;if(at[2]==="@")$t=d(at[0]),On="mailto:"+$t;else{let Ct;do Ct=at[0],at[0]=this.rules.inline._backpedal.exec(at[0])?.[0]??"";while(Ct!==at[0]);$t=d(at[0]),at[1]==="www."?On="http://"+at[0]:On=at[0]}return{type:"link",raw:at[0],text:$t,href:On,tokens:[{type:"text",raw:$t,text:$t}]}}}inlineText(bt){const at=this.rules.inline.text.exec(bt);if(at){let $t;return this.lexer.state.inRawBlock?$t=at[0]:$t=d(at[0]),{type:"text",raw:at[0],text:$t}}}}const ae=/^(?: *(?:\n|$))+/,_=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,N=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,he=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,me=/(?:[*+-]|\d{1,9}[.)])/,fe=S(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,me).getRegex(),ve=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ce=/^[^\n]+/,oe=/(?!\s*\])(?:\\.|[^\[\]\\])+/,re=S(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",oe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),H=S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,me).getRegex(),V="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Te=S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Q).replace("tag",V).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Re=S(ve).replace("hr",W).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V).getRegex(),pe={blockquote:S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Re).getRegex(),code:_,def:re,fences:N,heading:he,hr:W,html:Te,lheading:fe,list:H,newline:ae,paragraph:Re,table:R,text:ce},ye=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V).getRegex(),Se={...pe,table:ye,paragraph:S(ve).replace("hr",W).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ye).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V).getRegex()},Ae={...pe,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Q).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:R,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(ve).replace("hr",W).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",fe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ee=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nt=/^( {2,}|\\)\n(?!\s*$)/,Tt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pt="\\p{P}\\p{S}",Rt=S(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,pt).getRegex(),tt=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,U=S(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,pt).getRegex(),F=S("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,pt).getRegex(),Y=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,pt).getRegex(),le=S(/\\([punct])/,"gu").replace(/punct/g,pt).getRegex(),ke=S(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ye=S(Q).replace("(?:-->|$)","-->").getRegex(),ft=S("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ye).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ut=S(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",wt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ke=S(/^!?\[(label)\]\[(ref)\]/).replace("label",wt).replace("ref",oe).getRegex(),it=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",oe).getRegex(),At=S("reflink|nolink(?!\\()","g").replace("reflink",Ke).replace("nolink",it).getRegex(),et={_backpedal:R,anyPunctuation:le,autolink:ke,blockSkip:tt,br:nt,code:xe,del:R,emStrongLDelim:U,emStrongRDelimAst:F,emStrongRDelimUnd:Y,escape:Ee,link:Ut,nolink:it,punctuation:Rt,reflink:Ke,reflinkSearch:At,tag:ft,text:Tt,url:R},ee={...et,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",wt).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wt).getRegex()},I={...et,escape:S(Ee).replace("])","~|])").getRegex(),url:S(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},K={...I,br:S(nt).replace("{2,}","*").getRegex(),text:S(I.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ue={normal:pe,gfm:Se,pedantic:Ae},De={normal:et,gfm:I,breaks:K,pedantic:ee};class He{tokens;options;state;tokenizer;inlineQueue;constructor(bt){this.tokens=[],this.tokens.links=Object.create(null),this.options=bt||l,this.options.tokenizer=this.options.tokenizer||new j,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const at={block:ue.normal,inline:De.normal};this.options.pedantic?(at.block=ue.pedantic,at.inline=De.pedantic):this.options.gfm&&(at.block=ue.gfm,this.options.breaks?at.inline=De.breaks:at.inline=De.gfm),this.tokenizer.rules=at}static get rules(){return{block:ue,inline:De}}static lex(bt,at){return new He(at).lex(bt)}static lexInline(bt,at){return new He(at).inlineTokens(bt)}lex(bt){bt=bt.replace(/\r\n|\r/g,` `),this.blockTokens(bt,this.tokens);for(let at=0;at<this.inlineQueue.length;at++){const $t=this.inlineQueue[at];this.inlineTokens($t.src,$t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(bt,at=[]){this.options.pedantic?bt=bt.replace(/\t/g," ").replace(/^ +$/gm,""):bt=bt.replace(/^( *)(\t+)/gm,(Wn,Zn,xt)=>Zn+" ".repeat(xt.length));let $t,On,Ct,Zt;for(;bt;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Wn=>($t=Wn.call({lexer:this},bt,at))?(bt=bt.substring($t.raw.length),at.push($t),!0):!1))){if($t=this.tokenizer.space(bt)){bt=bt.substring($t.raw.length),$t.raw.length===1&&at.length>0?at[at.length-1].raw+=` `:at.push($t);continue}if($t=this.tokenizer.code(bt)){bt=bt.substring($t.raw.length),On=at[at.length-1],On&&(On.type==="paragraph"||On.type==="text")?(On.raw+=` `+$t.raw,On.text+=` `+$t.text,this.inlineQueue[this.inlineQueue.length-1].src=On.text):at.push($t);continue}if($t=this.tokenizer.fences(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.heading(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.hr(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.blockquote(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.list(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.html(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.def(bt)){bt=bt.substring($t.raw.length),On=at[at.length-1],On&&(On.type==="paragraph"||On.type==="text")?(On.raw+=` `+$t.raw,On.text+=` `+$t.raw,this.inlineQueue[this.inlineQueue.length-1].src=On.text):this.tokens.links[$t.tag]||(this.tokens.links[$t.tag]={href:$t.href,title:$t.title});continue}if($t=this.tokenizer.table(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.lheading(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if(Ct=bt,this.options.extensions&&this.options.extensions.startBlock){let Wn=1/0;const Zn=bt.slice(1);let xt;this.options.extensions.startBlock.forEach(Xe=>{xt=Xe.call({lexer:this},Zn),typeof xt=="number"&&xt>=0&&(Wn=Math.min(Wn,xt))}),Wn<1/0&&Wn>=0&&(Ct=bt.substring(0,Wn+1))}if(this.state.top&&($t=this.tokenizer.paragraph(Ct))){On=at[at.length-1],Zt&&On.type==="paragraph"?(On.raw+=` `+$t.raw,On.text+=` `+$t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=On.text):at.push($t),Zt=Ct.length!==bt.length,bt=bt.substring($t.raw.length);continue}if($t=this.tokenizer.text(bt)){bt=bt.substring($t.raw.length),On=at[at.length-1],On&&On.type==="text"?(On.raw+=` `+$t.raw,On.text+=` `+$t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=On.text):at.push($t);continue}if(bt){const Wn="Infinite loop on byte: "+bt.charCodeAt(0);if(this.options.silent){console.error(Wn);break}else throw new Error(Wn)}}return this.state.top=!0,at}inline(bt,at=[]){return this.inlineQueue.push({src:bt,tokens:at}),at}inlineTokens(bt,at=[]){let $t,On,Ct,Zt=bt,Wn,Zn,xt;if(this.tokens.links){const Xe=Object.keys(this.tokens.links);if(Xe.length>0)for(;(Wn=this.tokenizer.rules.inline.reflinkSearch.exec(Zt))!=null;)Xe.includes(Wn[0].slice(Wn[0].lastIndexOf("[")+1,-1))&&(Zt=Zt.slice(0,Wn.index)+"["+"a".repeat(Wn[0].length-2)+"]"+Zt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Wn=this.tokenizer.rules.inline.blockSkip.exec(Zt))!=null;)Zt=Zt.slice(0,Wn.index)+"["+"a".repeat(Wn[0].length-2)+"]"+Zt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Wn=this.tokenizer.rules.inline.anyPunctuation.exec(Zt))!=null;)Zt=Zt.slice(0,Wn.index)+"++"+Zt.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;bt;)if(Zn||(xt=""),Zn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(Xe=>($t=Xe.call({lexer:this},bt,at))?(bt=bt.substring($t.raw.length),at.push($t),!0):!1))){if($t=this.tokenizer.escape(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.tag(bt)){bt=bt.substring($t.raw.length),On=at[at.length-1],On&&$t.type==="text"&&On.type==="text"?(On.raw+=$t.raw,On.text+=$t.text):at.push($t);continue}if($t=this.tokenizer.link(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.reflink(bt,this.tokens.links)){bt=bt.substring($t.raw.length),On=at[at.length-1],On&&$t.type==="text"&&On.type==="text"?(On.raw+=$t.raw,On.text+=$t.text):at.push($t);continue}if($t=this.tokenizer.emStrong(bt,Zt,xt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.codespan(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.br(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.del(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if($t=this.tokenizer.autolink(bt)){bt=bt.substring($t.raw.length),at.push($t);continue}if(!this.state.inLink&&($t=this.tokenizer.url(bt))){bt=bt.substring($t.raw.length),at.push($t);continue}if(Ct=bt,this.options.extensions&&this.options.extensions.startInline){let Xe=1/0;const gn=bt.slice(1);let Qt;this.options.extensions.startInline.forEach(Dt=>{Qt=Dt.call({lexer:this},gn),typeof Qt=="number"&&Qt>=0&&(Xe=Math.min(Xe,Qt))}),Xe<1/0&&Xe>=0&&(Ct=bt.substring(0,Xe+1))}if($t=this.tokenizer.inlineText(Ct)){bt=bt.substring($t.raw.length),$t.raw.slice(-1)!=="_"&&(xt=$t.raw.slice(-1)),Zn=!0,On=at[at.length-1],On&&On.type==="text"?(On.raw+=$t.raw,On.text+=$t.text):at.push($t);continue}if(bt){const Xe="Infinite loop on byte: "+bt.charCodeAt(0);if(this.options.silent){console.error(Xe);break}else throw new Error(Xe)}}return at}}class Fe{options;constructor(bt){this.options=bt||l}code(bt,at,$t){const On=(at||"").match(/^\S*/)?.[0];return bt=bt.replace(/\n$/,"")+` `,On?'<pre><code class="language-'+d(On)+'">'+($t?bt:d(bt,!0))+`</code></pre> `:"<pre><code>"+($t?bt:d(bt,!0))+`</code></pre> `}blockquote(bt){return`<blockquote> ${bt}</blockquote> `}html(bt,at){return bt}heading(bt,at,$t){return`<h${at}>${bt}</h${at}> `}hr(){return`<hr> `}list(bt,at,$t){const On=at?"ol":"ul",Ct=at&&$t!==1?' start="'+$t+'"':"";return"<"+On+Ct+`> `+bt+"</"+On+`> `}listitem(bt,at,$t){return`<li>${bt}</li> `}checkbox(bt){return"<input "+(bt?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(bt){return`<p>${bt}</p> `}table(bt,at){return at&&(at=`<tbody>${at}</tbody>`),`<table> <thead> `+bt+`</thead> `+at+`</table> `}tablerow(bt){return`<tr> ${bt}</tr> `}tablecell(bt,at){const $t=at.header?"th":"td";return(at.align?`<${$t} align="${at.align}">`:`<${$t}>`)+bt+`</${$t}> `}strong(bt){return`<strong>${bt}</strong>`}em(bt){return`<em>${bt}</em>`}codespan(bt){return`<code>${bt}</code>`}br(){return"<br>"}del(bt){return`<del>${bt}</del>`}link(bt,at,$t){const On=O(bt);if(On===null)return $t;bt=On;let Ct='<a href="'+bt+'"';return at&&(Ct+=' title="'+at+'"'),Ct+=">"+$t+"</a>",Ct}image(bt,at,$t){const On=O(bt);if(On===null)return $t;bt=On;let Ct=`<img src="${bt}" alt="${$t}"`;return at&&(Ct+=` title="${at}"`),Ct+=">",Ct}text(bt){return bt}}class ze{strong(bt){return bt}em(bt){return bt}codespan(bt){return bt}del(bt){return bt}html(bt){return bt}text(bt){return bt}link(bt,at,$t){return""+$t}image(bt,at,$t){return""+$t}br(){return""}}class qe{options;renderer;textRenderer;constructor(bt){this.options=bt||l,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ze}static parse(bt,at){return new qe(at).parse(bt)}static parseInline(bt,at){return new qe(at).parseInline(bt)}parse(bt,at=!0){let $t="";for(let On=0;On<bt.length;On++){const Ct=bt[On];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Ct.type]){const Zt=Ct,Wn=this.options.extensions.renderers[Zt.type].call({parser:this},Zt);if(Wn!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Zt.type)){$t+=Wn||"";continue}}switch(Ct.type){case"space":continue;case"hr":{$t+=this.renderer.hr();continue}case"heading":{const Zt=Ct;$t+=this.renderer.heading(this.parseInline(Zt.tokens),Zt.depth,y(this.parseInline(Zt.tokens,this.textRenderer)));continue}case"code":{const Zt=Ct;$t+=this.renderer.code(Zt.text,Zt.lang,!!Zt.escaped);continue}case"table":{const Zt=Ct;let Wn="",Zn="";for(let Xe=0;Xe<Zt.header.length;Xe++)Zn+=this.renderer.tablecell(this.parseInline(Zt.header[Xe].tokens),{header:!0,align:Zt.align[Xe]});Wn+=this.renderer.tablerow(Zn);let xt="";for(let Xe=0;Xe<Zt.rows.length;Xe++){const gn=Zt.rows[Xe];Zn="";for(let Qt=0;Qt<gn.length;Qt++)Zn+=this.renderer.tablecell(this.parseInline(gn[Qt].tokens),{header:!1,align:Zt.align[Qt]});xt+=this.renderer.tablerow(Zn)}$t+=this.renderer.table(Wn,xt);continue}case"blockquote":{const Zt=Ct,Wn=this.parse(Zt.tokens);$t+=this.renderer.blockquote(Wn);continue}case"list":{const Zt=Ct,Wn=Zt.ordered,Zn=Zt.start,xt=Zt.loose;let Xe="";for(let gn=0;gn<Zt.items.length;gn++){const Qt=Zt.items[gn],Dt=Qt.checked,hn=Qt.task;let cn="";if(Qt.task){const an=this.renderer.checkbox(!!Dt);xt?Qt.tokens.length>0&&Qt.tokens[0].type==="paragraph"?(Qt.tokens[0].text=an+" "+Qt.tokens[0].text,Qt.tokens[0].tokens&&Qt.tokens[0].tokens.length>0&&Qt.tokens[0].tokens[0].type==="text"&&(Qt.tokens[0].tokens[0].text=an+" "+Qt.tokens[0].tokens[0].text)):Qt.tokens.unshift({type:"text",text:an+" "}):cn+=an+" "}cn+=this.parse(Qt.tokens,xt),Xe+=this.renderer.listitem(cn,hn,!!Dt)}$t+=this.renderer.list(Xe,Wn,Zn);continue}case"html":{const Zt=Ct;$t+=this.renderer.html(Zt.text,Zt.block);continue}case"paragraph":{const Zt=Ct;$t+=this.renderer.paragraph(this.parseInline(Zt.tokens));continue}case"text":{let Zt=Ct,Wn=Zt.tokens?this.parseInline(Zt.tokens):Zt.text;for(;On+1<bt.length&&bt[On+1].type==="text";)Zt=bt[++On],Wn+=` `+(Zt.tokens?this.parseInline(Zt.tokens):Zt.text);$t+=at?this.renderer.paragraph(Wn):Wn;continue}default:{const Zt='Token with "'+Ct.type+'" type was not found.';if(this.options.silent)return console.error(Zt),"";throw new Error(Zt)}}}return $t}parseInline(bt,at){at=at||this.renderer;let $t="";for(let On=0;On<bt.length;On++){const Ct=bt[On];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Ct.type]){const Zt=this.options.extensions.renderers[Ct.type].call({parser:this},Ct);if(Zt!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(Ct.type)){$t+=Zt||"";continue}}switch(Ct.type){case"escape":{const Zt=Ct;$t+=at.text(Zt.text);break}case"html":{const Zt=Ct;$t+=at.html(Zt.text);break}case"link":{const Zt=Ct;$t+=at.link(Zt.href,Zt.title,this.parseInline(Zt.tokens,at));break}case"image":{const Zt=Ct;$t+=at.image(Zt.href,Zt.title,Zt.text);break}case"strong":{const Zt=Ct;$t+=at.strong(this.parseInline(Zt.tokens,at));break}case"em":{const Zt=Ct;$t+=at.em(this.parseInline(Zt.tokens,at));break}case"codespan":{const Zt=Ct;$t+=at.codespan(Zt.text);break}case"br":{$t+=at.br();break}case"del":{const Zt=Ct;$t+=at.del(this.parseInline(Zt.tokens,at));break}case"text":{const Zt=Ct;$t+=at.text(Zt.text);break}default:{const Zt='Token with "'+Ct.type+'" type was not found.';if(this.options.silent)return console.error(Zt),"";throw new Error(Zt)}}}return $t}}class We{options;constructor(bt){this.options=bt||l}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(bt){return bt}postprocess(bt){return bt}processAllTokens(bt){return bt}}class _t{defaults=i();options=this.setOptions;parse=this.#e(He.lex,qe.parse);parseInline=this.#e(He.lexInline,qe.parseInline);Parser=qe;Renderer=Fe;TextRenderer=ze;Lexer=He;Tokenizer=j;Hooks=We;constructor(...bt){this.use(...bt)}walkTokens(bt,at){let $t=[];for(const On of bt)switch($t=$t.concat(at.call(this,On)),On.type){case"table":{const Ct=On;for(const Zt of Ct.header)$t=$t.concat(this.walkTokens(Zt.tokens,at));for(const Zt of Ct.rows)for(const Wn of Zt)$t=$t.concat(this.walkTokens(Wn.tokens,at));break}case"list":{const Ct=On;$t=$t.concat(this.walkTokens(Ct.items,at));break}default:{const Ct=On;this.defaults.extensions?.childTokens?.[Ct.type]?this.defaults.extensions.childTokens[Ct.type].forEach(Zt=>{const Wn=Ct[Zt].flat(1/0);$t=$t.concat(this.walkTokens(Wn,at))}):Ct.tokens&&($t=$t.concat(this.walkTokens(Ct.tokens,at)))}}return $t}use(...bt){const at=this.defaults.extensions||{renderers:{},childTokens:{}};return bt.forEach($t=>{const On={...$t};if(On.async=this.defaults.async||On.async||!1,$t.extensions&&($t.extensions.forEach(Ct=>{if(!Ct.name)throw new Error("extension name required");if("renderer"in Ct){const Zt=at.renderers[Ct.name];Zt?at.renderers[Ct.name]=function(...Wn){let Zn=Ct.renderer.apply(this,Wn);return Zn===!1&&(Zn=Zt.apply(this,Wn)),Zn}:at.renderers[Ct.name]=Ct.renderer}if("tokenizer"in Ct){if(!Ct.level||Ct.level!=="block"&&Ct.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const Zt=at[Ct.level];Zt?Zt.unshift(Ct.tokenizer):at[Ct.level]=[Ct.tokenizer],Ct.start&&(Ct.level==="block"?at.startBlock?at.startBlock.push(Ct.start):at.startBlock=[Ct.start]:Ct.level==="inline"&&(at.startInline?at.startInline.push(Ct.start):at.startInline=[Ct.start]))}"childTokens"in Ct&&Ct.childTokens&&(at.childTokens[Ct.name]=Ct.childTokens)}),On.extensions=at),$t.renderer){const Ct=this.defaults.renderer||new Fe(this.defaults);for(const Zt in $t.renderer){if(!(Zt in Ct))throw new Error(`renderer '${Zt}' does not exist`);if(Zt==="options")continue;const Wn=Zt,Zn=$t.renderer[Wn],xt=Ct[Wn];Ct[Wn]=(...Xe)=>{let gn=Zn.apply(Ct,Xe);return gn===!1&&(gn=xt.apply(Ct,Xe)),gn||""}}On.renderer=Ct}if($t.tokenizer){const Ct=this.defaults.tokenizer||new j(this.defaults);for(const Zt in $t.tokenizer){if(!(Zt in Ct))throw new Error(`tokenizer '${Zt}' does not exist`);if(["options","rules","lexer"].includes(Zt))continue;const Wn=Zt,Zn=$t.tokenizer[Wn],xt=Ct[Wn];Ct[Wn]=(...Xe)=>{let gn=Zn.apply(Ct,Xe);return gn===!1&&(gn=xt.apply(Ct,Xe)),gn}}On.tokenizer=Ct}if($t.hooks){const Ct=this.defaults.hooks||new We;for(const Zt in $t.hooks){if(!(Zt in Ct))throw new Error(`hook '${Zt}' does not exist`);if(Zt==="options")continue;const Wn=Zt,Zn=$t.hooks[Wn],xt=Ct[Wn];We.passThroughHooks.has(Zt)?Ct[Wn]=Xe=>{if(this.defaults.async)return Promise.resolve(Zn.call(Ct,Xe)).then(Qt=>xt.call(Ct,Qt));const gn=Zn.call(Ct,Xe);return xt.call(Ct,gn)}:Ct[Wn]=(...Xe)=>{let gn=Zn.apply(Ct,Xe);return gn===!1&&(gn=xt.apply(Ct,Xe)),gn}}On.hooks=Ct}if($t.walkTokens){const Ct=this.defaults.walkTokens,Zt=$t.walkTokens;On.walkTokens=function(Wn){let Zn=[];return Zn.push(Zt.call(this,Wn)),Ct&&(Zn=Zn.concat(Ct.call(this,Wn))),Zn}}this.defaults={...this.defaults,...On}}),this}setOptions(bt){return this.defaults={...this.defaults,...bt},this}lexer(bt,at){return He.lex(bt,at??this.defaults)}parser(bt,at){return qe.parse(bt,at??this.defaults)}#e(bt,at){return($t,On)=>{const Ct={...On},Zt={...this.defaults,...Ct};this.defaults.async===!0&&Ct.async===!1&&(Zt.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Zt.async=!0);const Wn=this.#t(!!Zt.silent,!!Zt.async);if(typeof $t>"u"||$t===null)return Wn(new Error("marked(): input parameter is undefined or null"));if(typeof $t!="string")return Wn(new Error("marked(): input parameter is of type "+Object.prototype.toString.call($t)+", string expected"));if(Zt.hooks&&(Zt.hooks.options=Zt),Zt.async)return Promise.resolve(Zt.hooks?Zt.hooks.preprocess($t):$t).then(Zn=>bt(Zn,Zt)).then(Zn=>Zt.hooks?Zt.hooks.processAllTokens(Zn):Zn).then(Zn=>Zt.walkTokens?Promise.all(this.walkTokens(Zn,Zt.walkTokens)).then(()=>Zn):Zn).then(Zn=>at(Zn,Zt)).then(Zn=>Zt.hooks?Zt.hooks.postprocess(Zn):Zn).catch(Wn);try{Zt.hooks&&($t=Zt.hooks.preprocess($t));let Zn=bt($t,Zt);Zt.hooks&&(Zn=Zt.hooks.processAllTokens(Zn)),Zt.walkTokens&&this.walkTokens(Zn,Zt.walkTokens);let xt=at(Zn,Zt);return Zt.hooks&&(xt=Zt.hooks.postprocess(xt)),xt}catch(Zn){return Wn(Zn)}}}#t(bt,at){return $t=>{if($t.message+=` Please report this to https://github.com/markedjs/marked.`,bt){const On="<p>An error occurred:</p><pre>"+d($t.message+"",!0)+"</pre>";return at?Promise.resolve(On):On}if(at)return Promise.reject($t);throw $t}}}const ct=new _t;function Ge(nn,bt){return ct.parse(nn,bt)}Ge.options=Ge.setOptions=function(nn){return ct.setOptions(nn),Ge.defaults=ct.defaults,s(Ge.defaults),Ge},Ge.getDefaults=i,Ge.defaults=l,Ge.use=function(...nn){return ct.use(...nn),Ge.defaults=ct.defaults,s(Ge.defaults),Ge},Ge.walkTokens=function(nn,bt){return ct.walkTokens(nn,bt)},Ge.parseInline=ct.parseInline,Ge.Parser=qe,Ge.parser=qe.parse,Ge.Renderer=Fe,Ge.TextRenderer=ze,Ge.Lexer=He,Ge.lexer=He.lex,Ge.Tokenizer=j,Ge.Hooks=We,Ge.parse=Ge;const st=Ge.options,Me=Ge.setOptions,ie=Ge.use,ge=Ge.walkTokens,z=Ge.parseInline,be=null,Qe=qe.parse,Bt=He.lex},44329:(J,g,t)=>{"use strict";t.d(g,{d_:()=>s});let i=u=>crypto.getRandomValues(new Uint8Array(u)),l=(u,f,p)=>{let v=(2<<Math.log(u.length-1)/Math.LN2)-1,h=-~(1.6*v*f/u.length);return(d=f)=>{let b="";for(;;){let y=p(h),w=h;for(;w--;)if(b+=u[y[w]&v]||"",b.length===d)return b}}},s=(u,f=21)=>l(u,f,i),m=(u=21)=>{let f="",p=crypto.getRandomValues(new Uint8Array(u));for(;u--;)f+=urlAlphabet[p[u]&63];return f}},70017:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});const i={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class l extends Error{constructor(u){const f=i[u];super(f),this.code=u,this.name="AssertionError",this.message=f}}const s=l},50071:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});var i=t(70017),l=t(34120),s=t(32135),m=t(1685);const u={LENGTH:"length"};class f extends m.Ay{constructor(d,b,y){super(d),this.element=b,this.index=y}}class p extends l.A{constructor(d,b){if(super(),this.on,this.once,this.un,b=b||{},this.unique_=!!b.unique,this.array_=d||[],this.unique_)for(let y=0,w=this.array_.length;y<w;++y)this.assertUnique_(this.array_[y],y);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(d){for(let b=0,y=d.length;b<y;++b)this.push(d[b]);return this}forEach(d){const b=this.array_;for(let y=0,w=b.length;y<w;++y)d(b[y],y,b)}getArray(){return this.array_}item(d){return this.array_[d]}getLength(){return this.get(u.LENGTH)}insertAt(d,b){if(d<0||d>this.getLength())throw new Error("Index out of bounds: "+d);this.unique_&&this.assertUnique_(b),this.array_.splice(d,0,b),this.updateLength_(),this.dispatchEvent(new f(s.A.ADD,b,d))}pop(){return this.removeAt(this.getLength()-1)}push(d){this.unique_&&this.assertUnique_(d);const b=this.getLength();return this.insertAt(b,d),this.getLength()}remove(d){const b=this.array_;for(let y=0,w=b.length;y<w;++y)if(b[y]===d)return this.removeAt(y)}removeAt(d){if(d<0||d>=this.getLength())return;const b=this.array_[d];return this.array_.splice(d,1),this.updateLength_(),this.dispatchEvent(new f(s.A.REMOVE,b,d)),b}setAt(d,b){const y=this.getLength();if(d>=y){this.insertAt(d,b);return}if(d<0)throw new Error("Index out of bounds: "+d);this.unique_&&this.assertUnique_(b,d);const w=this.array_[d];this.array_[d]=b,this.dispatchEvent(new f(s.A.REMOVE,w,d)),this.dispatchEvent(new f(s.A.ADD,b,d))}updateLength_(){this.set(u.LENGTH,this.array_.length)}assertUnique_(d,b){for(let y=0,w=this.array_.length;y<w;++y)if(this.array_[y]===d&&y!==b)throw new i.A(58)}}const v=p},32135:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={ADD:"add",REMOVE:"remove"}},90025:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});class i{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const l=i},86717:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=t(34120),l=t(6837),s=t(90588),m=t(9438);class u extends i.A{constructor(h){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),h)if(typeof h.getSimplifiedGeometry=="function"){const d=h;this.setGeometry(d)}else{const d=h;this.setProperties(d)}}clone(){const h=new u(this.hasProperties()?this.getProperties():null);h.setGeometryName(this.getGeometryName());const d=this.getGeometry();d&&h.setGeometry(d.clone());const b=this.getStyle();return b&&h.setStyle(b),h}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,m.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const h=this.getGeometry();h&&(this.geometryChangeKey_=(0,m.KT)(h,l.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(h){this.set(this.geometryName_,h)}setStyle(h){this.style_=h,this.styleFunction_=h?f(h):void 0,this.changed()}setId(h){this.id_=h,this.changed()}setGeometryName(h){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=h,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function f(v){if(typeof v=="function")return v;let h;return Array.isArray(v)?h=v:((0,s.v)(typeof v.getZIndex=="function",41),h=[v]),function(){return h}}const p=u},92347:(J,g,t)=>{"use strict";t.d(g,{A:()=>et});var i=t(34120),l=t(50071),s=t(32135),m=t(90025),u=t(74238),f=t(4087),p=t(9703),v=t(70915),h=t(4622),d=t(60764),b=t(6933);class y extends m.A{constructor(I){super(),this.map_=I}dispatchRenderEvent(I,K){(0,f.b0)()}calculateMatrices2D(I){const K=I.viewState,ue=I.coordinateToPixelTransform,De=I.pixelToCoordinateTransform;(0,p.Zz)(ue,I.size[0]/2,I.size[1]/2,1/K.resolution,-1/K.resolution,-K.rotation,-K.center[0],-K.center[1]),(0,p.T9)(De,ue)}forEachFeatureAtCoordinate(I,K,ue,De,He,Fe,ze,qe){let We;const _t=K.viewState;function ct(Bt,nn,bt,at){return He.call(Fe,nn,Bt?bt:null,at)}const Ge=_t.projection,st=(0,b.Li)(I.slice(),Ge),Me=[[0,0]];if(Ge.canWrapX()&&De){const Bt=Ge.getExtent(),nn=(0,v.RG)(Bt);Me.push([-nn,0],[nn,0])}const ie=K.layerStatesArray,ge=ie.length,z=[],be=[];for(let Bt=0;Bt<Me.length;Bt++)for(let nn=ge-1;nn>=0;--nn){const bt=ie[nn],at=bt.layer;if(at.hasRenderer()&&(0,d.l)(bt,_t)&&ze.call(qe,at)){const $t=at.getRenderer(),On=at.getSource();if($t&&On){const Ct=On.getWrapX()?st:I,Zt=ct.bind(null,bt.managed);be[0]=Ct[0]+Me[Bt][0],be[1]=Ct[1]+Me[Bt][1],We=$t.forEachFeatureAtCoordinate(be,K,ue,Zt,z)}if(We)return We}}if(z.length===0)return;const Qe=1/z.length;return z.forEach((Bt,nn)=>Bt.distanceSq+=nn*Qe),z.sort((Bt,nn)=>Bt.distanceSq-nn.distanceSq),z.some(Bt=>We=Bt.callback(Bt.feature,Bt.layer,Bt.geometry)),We}hasFeatureAtCoordinate(I,K,ue,De,He,Fe){return this.forEachFeatureAtCoordinate(I,K,ue,De,u.rT,this,He,Fe)!==void 0}getMap(){return this.map_}renderFrame(I){(0,f.b0)()}scheduleExpireIconCache(I){h.u.canExpireCache()&&I.postRenderFunctions.push(w)}}function w(ee,I){h.u.expire()}const S=y;var O=t(28450),R=t(9960),M=t(83984),D=t(25176),P=t(38774),T=t(9438),A=t(68711);class j extends S{constructor(I){super(I),this.fontChangeListenerKey_=(0,T.KT)(P.yY,O.A.PROPERTYCHANGE,I.redrawText.bind(I)),this.element_=document.createElement("div");const K=this.element_.style;K.position="absolute",K.width="100%",K.height="100%",K.zIndex="0",this.element_.className=D.XI+" ol-layers";const ue=I.getViewport();ue.insertBefore(this.element_,ue.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(I,K){const ue=this.getMap();if(ue.hasListener(I)){const De=new R.A(I,void 0,K);ue.dispatchEvent(De)}}disposeInternal(){(0,T.JH)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(I){if(!I){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(I),this.dispatchRenderEvent(M.A.PRECOMPOSE,I);const K=I.layerStatesArray.sort(function(Fe,ze){return Fe.zIndex-ze.zIndex}),ue=I.viewState;this.children_.length=0;const De=[];let He=null;for(let Fe=0,ze=K.length;Fe<ze;++Fe){const qe=K[Fe];I.layerIndex=Fe;const We=qe.layer,_t=We.getSourceState();if(!(0,d.l)(qe,ue)||_t!="ready"&&_t!="undefined"){We.unrender();continue}const ct=We.render(I,He);ct&&(ct!==He&&(this.children_.push(ct),He=ct),"getDeclutter"in We&&De.push(We))}for(let Fe=De.length-1;Fe>=0;--Fe)De[Fe].renderDeclutter(I);(0,A.WM)(this.element_,this.children_),this.dispatchRenderEvent(M.A.POSTCOMPOSE,I),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(I)}}const ae=j;var _=t(6837),N=t(35598),W=t(10277),he=t(73445);const me={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};var fe=t(79332),ve=t(7771);class ce extends fe.A{constructor(I,K){super(I),this.map_=I,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=K===void 0?1:K,this.down_=null;const ue=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=ue,this.pointerdownListenerKey_=(0,T.KT)(ue,me.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,T.KT)(ue,me.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(_.A.TOUCHMOVE,this.boundHandleTouchMove_,ve.FT?{passive:!1}:!1)}emulateClick_(I){let K=new W.A(he.A.CLICK,this.map_,I);this.dispatchEvent(K),this.clickTimeoutId_!==void 0?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,K=new W.A(he.A.DBLCLICK,this.map_,I),this.dispatchEvent(K)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;const ue=new W.A(he.A.SINGLECLICK,this.map_,I);this.dispatchEvent(ue)},250)}updateActivePointers_(I){const K=I,ue=K.pointerId;if(K.type==he.A.POINTERUP||K.type==he.A.POINTERCANCEL){delete this.trackedTouches_[ue];for(const De in this.trackedTouches_)if(this.trackedTouches_[De].target!==K.target){delete this.trackedTouches_[De];break}}else(K.type==he.A.POINTERDOWN||K.type==he.A.POINTERMOVE)&&(this.trackedTouches_[ue]=K);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(I){this.updateActivePointers_(I);const K=new W.A(he.A.POINTERUP,this.map_,I,void 0,void 0,this.activePointers_);this.dispatchEvent(K),this.emulateClicks_&&!K.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(I)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(T.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(I){return I.button===0}handlePointerDown_(I){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(I);const K=new W.A(he.A.POINTERDOWN,this.map_,I,void 0,void 0,this.activePointers_);if(this.dispatchEvent(K),this.down_=new PointerEvent(I.type,I),Object.defineProperty(this.down_,"target",{writable:!1,value:I.target}),this.dragListenerKeys_.length===0){const ue=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,T.KT)(ue,he.A.POINTERMOVE,this.handlePointerMove_,this),(0,T.KT)(ue,he.A.POINTERUP,this.handlePointerUp_,this),(0,T.KT)(this.element_,he.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==ue&&this.dragListenerKeys_.push((0,T.KT)(this.element_.getRootNode(),he.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(I){if(this.isMoving_(I)){this.updateActivePointers_(I),this.dragging_=!0;const K=new W.A(he.A.POINTERDRAG,this.map_,I,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(K)}}relayMoveEvent_(I){this.originalPointerMoveEvent_=I;const K=!!(this.down_&&this.isMoving_(I));this.dispatchEvent(new W.A(he.A.POINTERMOVE,this.map_,I,K))}handleTouchMove_(I){const K=this.originalPointerMoveEvent_;(!K||K.defaultPrevented)&&(typeof I.cancelable!="boolean"||I.cancelable===!0)&&I.preventDefault()}isMoving_(I){return this.dragging_||Math.abs(I.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(I.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,T.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(_.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,T.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(T.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const oe=ce;var re=t(95801),H=t(82585);const V={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var Q=t(90588),Te=t(43530);const Re=1/0;class ne{constructor(I,K){this.priorityFunction_=I,this.keyFunction_=K,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,Te.I)(this.queuedElements_)}dequeue(){const I=this.elements_,K=this.priorities_,ue=I[0];I.length==1?(I.length=0,K.length=0):(I[0]=I.pop(),K[0]=K.pop(),this.siftUp_(0));const De=this.keyFunction_(ue);return delete this.queuedElements_[De],ue}enqueue(I){(0,Q.v)(!(this.keyFunction_(I)in this.queuedElements_),31);const K=this.priorityFunction_(I);return K!=Re?(this.elements_.push(I),this.priorities_.push(K),this.queuedElements_[this.keyFunction_(I)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(I){return I*2+1}getRightChildIndex_(I){return I*2+2}getParentIndex_(I){return I-1>>1}heapify_(){let I;for(I=(this.elements_.length>>1)-1;I>=0;I--)this.siftUp_(I)}isEmpty(){return this.elements_.length===0}isKeyQueued(I){return I in this.queuedElements_}isQueued(I){return this.isKeyQueued(this.keyFunction_(I))}siftUp_(I){const K=this.elements_,ue=this.priorities_,De=K.length,He=K[I],Fe=ue[I],ze=I;for(;I<De>>1;){const qe=this.getLeftChildIndex_(I),We=this.getRightChildIndex_(I),_t=We<De&&ue[We]<ue[qe]?We:qe;K[I]=K[_t],ue[I]=ue[_t],I=_t}K[I]=He,ue[I]=Fe,this.siftDown_(ze,I)}siftDown_(I,K){const ue=this.elements_,De=this.priorities_,He=ue[K],Fe=De[K];for(;K>I;){const ze=this.getParentIndex_(K);if(De[ze]>Fe)ue[K]=ue[ze],De[K]=De[ze],K=ze;else break}ue[K]=He,De[K]=Fe}reprioritize(){const I=this.priorityFunction_,K=this.elements_,ue=this.priorities_;let De=0;const He=K.length;let Fe,ze,qe;for(ze=0;ze<He;++ze)Fe=K[ze],qe=I(Fe),qe==Re?delete this.queuedElements_[this.keyFunction_(Fe)]:(ue[De]=qe,K[De++]=Fe);K.length=De,ue.length=De,this.heapify_()}}const pe=ne;var ye=t(11078);class Se extends pe{constructor(I,K){super(function(ue){return I.apply(null,ue)},function(ue){return ue[0].getKey()}),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=K,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(I){const K=super.enqueue(I);return K&&I[0].addEventListener(_.A.CHANGE,this.boundHandleTileChange_),K}getTilesLoading(){return this.tilesLoading_}handleTileChange(I){const K=I.target,ue=K.getState();if(ue===ye.A.LOADED||ue===ye.A.ERROR||ue===ye.A.EMPTY){ue!==ye.A.ERROR&&K.removeEventListener(_.A.CHANGE,this.boundHandleTileChange_);const De=K.getKey();De in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[De],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(I,K){let ue=0,De,He,Fe;for(;this.tilesLoading_<I&&ue<K&&this.getCount()>0;)He=this.dequeue()[0],Fe=He.getKey(),De=He.getState(),De===ye.A.IDLE&&!(Fe in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[Fe]=!0,++this.tilesLoading_,++ue,He.load())}}const Ae=Se;function Ee(ee,I,K,ue,De){if(!ee||!(K in ee.wantedTiles)||!ee.wantedTiles[K][I.getKey()])return Re;const He=ee.viewState.center,Fe=ue[0]-He[0],ze=ue[1]-He[1];return 65536*Math.log(De)+Math.sqrt(Fe*Fe+ze*ze)/De}var xe=t(91765),nt=t(62703),Tt=t(57456),pt=t(10972),Rt=t(93474);class tt extends pt.A{constructor(I){I=I||{},super({element:document.createElement("div"),render:I.render,target:I.target});const K=I.className!==void 0?I.className:"ol-rotate",ue=I.label!==void 0?I.label:"\u21E7",De=I.compassClassName!==void 0?I.compassClassName:"ol-compass";this.label_=null,typeof ue=="string"?(this.label_=document.createElement("span"),this.label_.className=De,this.label_.textContent=ue):(this.label_=ue,this.label_.classList.add(De));const He=I.tipLabel?I.tipLabel:"Reset rotation",Fe=document.createElement("button");Fe.className=K+"-reset",Fe.setAttribute("type","button"),Fe.title=He,Fe.appendChild(this.label_),Fe.addEventListener(_.A.CLICK,this.handleClick_.bind(this),!1);const ze=K+" "+D.XI+" "+D.$N,qe=this.element;qe.className=ze,qe.appendChild(Fe),this.callResetNorth_=I.resetNorth?I.resetNorth:void 0,this.duration_=I.duration!==void 0?I.duration:250,this.autoHide_=I.autoHide!==void 0?I.autoHide:!0,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(D.Si)}handleClick_(I){I.preventDefault(),this.callResetNorth_!==void 0?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const K=this.getMap().getView();if(!K)return;const ue=K.getRotation();ue!==void 0&&(this.duration_>0&&ue%(2*Math.PI)!==0?K.animate({rotation:0,duration:this.duration_,easing:Rt.vT}):K.setRotation(0))}render(I){const K=I.frameState;if(!K)return;const ue=K.viewState.rotation;if(ue!=this.rotation_){const De="rotate("+ue+"rad)";if(this.autoHide_){const He=this.element.classList.contains(D.Si);!He&&ue===0?this.element.classList.add(D.Si):He&&ue!==0&&this.element.classList.remove(D.Si)}this.label_.style.transform=De}this.rotation_=ue}}const U=tt;var F=t(69186);function Y(ee){ee=ee||{};const I=new l.A;return(ee.zoom!==void 0?ee.zoom:!0)&&I.push(new F.A(ee.zoomOptions)),(ee.rotate!==void 0?ee.rotate:!0)&&I.push(new U(ee.rotateOptions)),(ee.attribution!==void 0?ee.attribution:!0)&&I.push(new Tt.A(ee.attributionOptions)),I}var le=t(40239),ke=t(66514),Ye=t(22796),ft=t(6782),wt=t(54422);function Ut(ee){if(ee instanceof d.A){ee.setMapInternal(null);return}ee instanceof N.A&&ee.getLayers().forEach(Ut)}function Ke(ee,I){if(ee instanceof d.A){ee.setMapInternal(I);return}if(ee instanceof N.A){const K=ee.getLayers().getArray();for(let ue=0,De=K.length;ue<De;++ue)Ke(K[ue],I)}}class it extends i.A{constructor(I){super(),I=I||{},this.on,this.once,this.un;const K=At(I);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=I.maxTilesLoading!==void 0?I.maxTilesLoading:16,this.pixelRatio_=I.pixelRatio!==void 0?I.pixelRatio:ve.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,p.vt)(),this.pixelToCoordinateTransform_=(0,p.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=I.moveTolerance,this.keyboardEventTarget_=K.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver(()=>this.updateSize()),this.controls=K.controls||Y(),this.interactions=K.interactions||(0,le.N)({onFocusOnly:!0}),this.overlays_=K.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new Ae(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(V.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(V.VIEW,this.handleViewChanged_),this.addChangeListener(V.SIZE,this.handleSizeChanged_),this.addChangeListener(V.TARGET,this.handleTargetChanged_),this.setProperties(K.values);const ue=this;I.view&&!(I.view instanceof xe.Ay)&&I.view.then(function(De){ue.setView(new xe.Ay(De))}),this.controls.addEventListener(s.A.ADD,De=>{De.element.setMap(this)}),this.controls.addEventListener(s.A.REMOVE,De=>{De.element.setMap(null)}),this.interactions.addEventListener(s.A.ADD,De=>{De.element.setMap(this)}),this.interactions.addEventListener(s.A.REMOVE,De=>{De.element.setMap(null)}),this.overlays_.addEventListener(s.A.ADD,De=>{this.addOverlayInternal_(De.element)}),this.overlays_.addEventListener(s.A.REMOVE,De=>{const He=De.element.getId();He!==void 0&&delete this.overlayIdIndex_[He.toString()],De.element.setMap(null)}),this.controls.forEach(De=>{De.setMap(this)}),this.interactions.forEach(De=>{De.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(I){this.getControls().push(I)}addInteraction(I){this.getInteractions().push(I)}addLayer(I){this.getLayerGroup().getLayers().push(I)}handleLayerAdd_(I){Ke(I.layer,this)}addOverlay(I){this.getOverlays().push(I)}addOverlayInternal_(I){const K=I.getId();K!==void 0&&(this.overlayIdIndex_[K.toString()]=I),I.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(I,K,ue){if(!this.frameState_||!this.renderer_)return;const De=this.getCoordinateFromPixelInternal(I);ue=ue!==void 0?ue:{};const He=ue.hitTolerance!==void 0?ue.hitTolerance:0,Fe=ue.layerFilter!==void 0?ue.layerFilter:u.rT,ze=ue.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(De,this.frameState_,He,ze,K,null,Fe,null)}getFeaturesAtPixel(I,K){const ue=[];return this.forEachFeatureAtPixel(I,function(De){ue.push(De)},K),ue}getAllLayers(){const I=[];function K(ue){ue.forEach(function(De){De instanceof N.A?K(De.getLayers()):I.push(De)})}return K(this.getLayers()),I}hasFeatureAtPixel(I,K){if(!this.frameState_||!this.renderer_)return!1;const ue=this.getCoordinateFromPixelInternal(I);K=K!==void 0?K:{};const De=K.layerFilter!==void 0?K.layerFilter:u.rT,He=K.hitTolerance!==void 0?K.hitTolerance:0,Fe=K.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(ue,this.frameState_,He,Fe,De,null)}getEventCoordinate(I){return this.getCoordinateFromPixel(this.getEventPixel(I))}getEventCoordinateInternal(I){return this.getCoordinateFromPixelInternal(this.getEventPixel(I))}getEventPixel(I){const ue=this.viewport_.getBoundingClientRect(),De=this.getSize(),He=ue.width/De[0],Fe=ue.height/De[1],ze="changedTouches"in I?I.changedTouches[0]:I;return[(ze.clientX-ue.left)/He,(ze.clientY-ue.top)/Fe]}getTarget(){return this.get(V.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(I){return(0,Ye.te)(this.getCoordinateFromPixelInternal(I),this.getView().getProjection())}getCoordinateFromPixelInternal(I){const K=this.frameState_;return K?(0,p.Bb)(K.pixelToCoordinateTransform,I.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(I){const K=this.overlayIdIndex_[I.toString()];return K!==void 0?K:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(V.LAYERGROUP)}setLayers(I){const K=this.getLayerGroup();if(I instanceof l.A){K.setLayers(I);return}const ue=K.getLayers();ue.clear(),ue.extend(I)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const I=this.getLayerGroup().getLayerStatesArray();for(let K=0,ue=I.length;K<ue;++K){const De=I[K];if(!De.visible)continue;const He=De.layer.getRenderer();if(He&&!He.ready)return!0;const Fe=De.layer.getSource();if(Fe&&Fe.loading)return!0}return!1}getPixelFromCoordinate(I){const K=(0,Ye.Ad)(I,this.getView().getProjection());return this.getPixelFromCoordinateInternal(K)}getPixelFromCoordinateInternal(I){const K=this.frameState_;return K?(0,p.Bb)(K.coordinateToPixelTransform,I.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(V.SIZE)}getView(){return this.get(V.VIEW)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const I=this.getTargetElement();return I?I.ownerDocument:document}getTilePriority(I,K,ue,De){return Ee(this.frameState_,I,K,ue,De)}handleBrowserEvent(I,K){K=K||I.type;const ue=new W.A(K,this,I);this.handleMapBrowserEvent(ue)}handleMapBrowserEvent(I){if(!this.frameState_)return;const K=I.originalEvent,ue=K.type;if(ue===me.POINTERDOWN||ue===_.A.WHEEL||ue===_.A.KEYDOWN){const De=this.getOwnerDocument(),He=this.viewport_.getRootNode?this.viewport_.getRootNode():De,Fe=K.target;if(this.overlayContainerStopEvent_.contains(Fe)||!(He===De?De.documentElement:He).contains(Fe))return}if(I.frameState=this.frameState_,this.dispatchEvent(I)!==!1){const De=this.getInteractions().getArray().slice();for(let He=De.length-1;He>=0;He--){const Fe=De[He];if(Fe.getMap()!==this||!Fe.getActive()||!this.getTargetElement())continue;if(!Fe.handleEvent(I)||I.propagationStopped)break}}}handlePostRender(){const I=this.frameState_,K=this.tileQueue_;if(!K.isEmpty()){let De=this.maxTilesLoading_,He=De;if(I){const Fe=I.viewHints;if(Fe[nt.A.ANIMATING]||Fe[nt.A.INTERACTING]){const ze=Date.now()-I.time>8;De=ze?0:8,He=ze?0:2}}K.getTilesLoading()<De&&(K.reprioritize(),K.loadMoreTiles(De,He))}I&&this.renderer_&&!I.animate&&(this.renderComplete_===!0?(this.hasListener(M.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(M.A.RENDERCOMPLETE,I),this.loaded_===!1&&(this.loaded_=!0,this.dispatchEvent(new re.A(H.A.LOADEND,this,I)))):this.loaded_===!0&&(this.loaded_=!1,this.dispatchEvent(new re.A(H.A.LOADSTART,this,I))));const ue=this.postRenderFunctions_;for(let De=0,He=ue.length;De<He;++De)ue[De](this,I);ue.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let ue=0,De=this.targetChangeHandlerKeys_.length;ue<De;++ue)(0,T.JH)(this.targetChangeHandlerKeys_[ue]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(_.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(_.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,A.bf)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const ue=this.targetElement_.getRootNode();ue instanceof ShadowRoot&&this.resizeObserver_.unobserve(ue.host),this.setSize(void 0)}const I=this.getTarget(),K=typeof I=="string"?document.getElementById(I):I;if(this.targetElement_=K,!K)this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);else{K.appendChild(this.viewport_),this.renderer_||(this.renderer_=new ae(this)),this.mapBrowserEventHandler_=new oe(this,this.moveTolerance_);for(const He in he.A)this.mapBrowserEventHandler_.addEventListener(he.A[He],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(_.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(_.A.WHEEL,this.boundHandleBrowserEvent_,ve.FT?{passive:!1}:!1);const ue=this.keyboardEventTarget_?this.keyboardEventTarget_:K;this.targetChangeHandlerKeys_=[(0,T.KT)(ue,_.A.KEYDOWN,this.handleBrowserEvent,this),(0,T.KT)(ue,_.A.KEYPRESS,this.handleBrowserEvent,this)];const De=K.getRootNode();De instanceof ShadowRoot&&this.resizeObserver_.observe(De.host),this.resizeObserver_.observe(K)}this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,T.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,T.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const I=this.getView();I&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,T.KT)(I,O.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,T.KT)(I,_.A.CHANGE,this.handleViewPropertyChanged_,this),I.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(T.JH),this.layerGroupPropertyListenerKeys_=null);const I=this.getLayerGroup();I&&(this.handleLayerAdd_(new N.i("addlayer",I)),this.layerGroupPropertyListenerKeys_=[(0,T.KT)(I,O.A.PROPERTYCHANGE,this.render,this),(0,T.KT)(I,_.A.CHANGE,this.render,this),(0,T.KT)(I,"addlayer",this.handleLayerAdd_,this),(0,T.KT)(I,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const I=this.getLayerGroup().getLayerStatesArray();for(let K=0,ue=I.length;K<ue;++K){const De=I[K].layer;De.hasRenderer()&&De.getRenderer().handleFontsChanged()}}render(){this.renderer_&&this.animationDelayKey_===void 0&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(I){return this.getControls().remove(I)}removeInteraction(I){return this.getInteractions().remove(I)}removeLayer(I){return this.getLayerGroup().getLayers().remove(I)}handleLayerRemove_(I){Ut(I.layer)}removeOverlay(I){return this.getOverlays().remove(I)}renderFrame_(I){const K=this.getSize(),ue=this.getView(),De=this.frameState_;let He=null;if(K!==void 0&&(0,ft.Ie)(K)&&ue&&ue.isDef()){const Fe=ue.getHints(this.frameState_?this.frameState_.viewHints:void 0),ze=ue.getState();if(He={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,v.Bg)(ze.center,ze.resolution,ze.rotation,K),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:K,tileQueue:this.tileQueue_,time:I,usedTiles:{},viewState:ze,viewHints:Fe,wantedTiles:{},mapId:(0,f.v6)(this),renderTargets:{}},ze.nextCenter&&ze.nextResolution){const qe=isNaN(ze.nextRotation)?ze.rotation:ze.nextRotation;He.nextExtent=(0,v.Bg)(ze.nextCenter,ze.nextResolution,qe,K)}}this.frameState_=He,this.renderer_.renderFrame(He),He&&(He.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,He.postRenderFunctions),De&&(!this.previousExtent_||!(0,v.Im)(this.previousExtent_)&&!(0,v.aI)(He.extent,this.previousExtent_))&&(this.dispatchEvent(new re.A(H.A.MOVESTART,this,De)),this.previousExtent_=(0,v.aZ)(this.previousExtent_)),this.previousExtent_&&!He.viewHints[nt.A.ANIMATING]&&!He.viewHints[nt.A.INTERACTING]&&!(0,v.aI)(He.extent,this.previousExtent_)&&(this.dispatchEvent(new re.A(H.A.MOVEEND,this,He)),(0,v.o8)(He.extent,this.previousExtent_))),this.dispatchEvent(new re.A(H.A.POSTRENDER,this,He)),this.renderComplete_=this.hasListener(H.A.LOADSTART)||this.hasListener(H.A.LOADEND)||this.hasListener(M.A.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(I){const K=this.getLayerGroup();K&&this.handleLayerRemove_(new N.i("removelayer",K)),this.set(V.LAYERGROUP,I)}setSize(I){this.set(V.SIZE,I)}setTarget(I){this.set(V.TARGET,I)}setView(I){if(!I||I instanceof xe.Ay){this.set(V.VIEW,I);return}this.set(V.VIEW,new xe.Ay);const K=this;I.then(function(ue){K.setView(new xe.Ay(ue))})}updateSize(){const I=this.getTargetElement();let K;if(I){const De=getComputedStyle(I),He=I.offsetWidth-parseFloat(De.borderLeftWidth)-parseFloat(De.paddingLeft)-parseFloat(De.paddingRight)-parseFloat(De.borderRightWidth),Fe=I.offsetHeight-parseFloat(De.borderTopWidth)-parseFloat(De.paddingTop)-parseFloat(De.paddingBottom)-parseFloat(De.borderBottomWidth);!isNaN(He)&&!isNaN(Fe)&&(K=[He,Fe],!(0,ft.Ie)(K)&&(I.offsetWidth||I.offsetHeight||I.getClientRects().length)&&(0,wt.R8)("No map visible because the map container's width or height are 0."))}const ue=this.getSize();K&&(!ue||!(0,ke.aI)(K,ue))&&(this.setSize(K),this.updateViewportSize_())}updateViewportSize_(){const I=this.getView();if(I){let K;const ue=getComputedStyle(this.viewport_);ue.width&&ue.height&&(K=[parseInt(ue.width,10),parseInt(ue.height,10)]),I.setViewportSize(K)}}}function At(ee){let I=null;ee.keyboardEventTarget!==void 0&&(I=typeof ee.keyboardEventTarget=="string"?document.getElementById(ee.keyboardEventTarget):ee.keyboardEventTarget);const K={},ue=ee.layers&&typeof ee.layers.getLayers=="function"?ee.layers:new N.A({layers:ee.layers});K[V.LAYERGROUP]=ue,K[V.TARGET]=ee.target,K[V.VIEW]=ee.view instanceof xe.Ay?ee.view:new xe.Ay;let De;ee.controls!==void 0&&(Array.isArray(ee.controls)?De=new l.A(ee.controls.slice()):((0,Q.v)(typeof ee.controls.getArray=="function",47),De=ee.controls));let He;ee.interactions!==void 0&&(Array.isArray(ee.interactions)?He=new l.A(ee.interactions.slice()):((0,Q.v)(typeof ee.interactions.getArray=="function",48),He=ee.interactions));let Fe;return ee.overlays!==void 0?Array.isArray(ee.overlays)?Fe=new l.A(ee.overlays.slice()):((0,Q.v)(typeof ee.overlays.getArray=="function",49),Fe=ee.overlays):Fe=new l.A,{controls:De,interactions:He,keyboardEventTarget:I,overlays:Fe,values:K}}const et=it},10277:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(95801);class l extends i.A{constructor(u,f,p,v,h,d){super(u,f,h),this.originalEvent=p,this.pixel_=null,this.coordinate_=null,this.dragging=v!==void 0?v:!1,this.activePointers=d}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(u){this.pixel_=u}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(u){this.coordinate_=u}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}const s=l},73445:(J,g,t)=>{"use strict";t.d(g,{A:()=>l});var i=t(6837);const l={SINGLECLICK:"singleclick",CLICK:i.A.CLICK,DBLCLICK:i.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},95801:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(1685);class l extends i.Ay{constructor(u,f,p){super(u),this.map=f,this.frameState=p!==void 0?p:null}}const s=l},82585:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},34120:(J,g,t)=>{"use strict";t.d(g,{A:()=>v});var i=t(1685),l=t(28450),s=t(11854),m=t(4087),u=t(43530);class f extends i.Ay{constructor(d,b,y){super(d),this.key=b,this.oldValue=y}}class p extends s.A{constructor(d){super(),this.on,this.once,this.un,(0,m.v6)(this),this.values_=null,d!==void 0&&this.setProperties(d)}get(d){let b;return this.values_&&this.values_.hasOwnProperty(d)&&(b=this.values_[d]),b}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(d,b){let y;y=`change:${d}`,this.hasListener(y)&&this.dispatchEvent(new f(y,d,b)),y=l.A.PROPERTYCHANGE,this.hasListener(y)&&this.dispatchEvent(new f(y,d,b))}addChangeListener(d,b){this.addEventListener(`change:${d}`,b)}removeChangeListener(d,b){this.removeEventListener(`change:${d}`,b)}set(d,b,y){const w=this.values_||(this.values_={});if(y)w[d]=b;else{const S=w[d];w[d]=b,S!==b&&this.notify(d,S)}}setProperties(d,b){for(const y in d)this.set(y,d[y],b)}applyProperties(d){d.values_&&Object.assign(this.values_||(this.values_={}),d.values_)}unset(d,b){if(this.values_&&d in this.values_){const y=this.values_[d];delete this.values_[d],(0,u.p)(this.values_)&&(this.values_=null),b||this.notify(d,y)}}}const v=p},28450:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={PROPERTYCHANGE:"propertychange"}},11854:(J,g,t)=>{"use strict";t.d(g,{A:()=>f,e:()=>u});var i=t(79332),l=t(6837),s=t(9438);class m extends i.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(l.A.CHANGE)}getRevision(){return this.revision_}onInternal(v,h){if(Array.isArray(v)){const d=v.length,b=new Array(d);for(let y=0;y<d;++y)b[y]=(0,s.KT)(this,v[y],h);return b}return(0,s.KT)(this,v,h)}onceInternal(v,h){let d;if(Array.isArray(v)){const b=v.length;d=new Array(b);for(let y=0;y<b;++y)d[y]=(0,s.Jz)(this,v[y],h)}else d=(0,s.Jz)(this,v,h);return h.ol_key=d,d}unInternal(v,h){const d=h.ol_key;if(d)u(d);else if(Array.isArray(v))for(let b=0,y=v.length;b<y;++b)this.removeEventListener(v[b],h);else this.removeEventListener(v,h)}}m.prototype.on,m.prototype.once,m.prototype.un;function u(p){if(Array.isArray(p))for(let v=0,h=p.length;v<h;++v)(0,s.JH)(p[v]);else(0,s.JH)(p)}const f=m},11078:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},91765:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>ve});var i=t(34120),l=t(62703);const s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var m=t(57115),u=t(22796),f=t(74238),p=t(6933),v=t(90588),h=t(61597);function d(ce,oe,re){return function(H,V,Q,Te,Re){if(!H)return;if(!V&&!oe)return H;const ne=oe?0:Q[0]*V,pe=oe?0:Q[1]*V,ye=Re?Re[0]:0,Se=Re?Re[1]:0;let Ae=ce[0]+ne/2+ye,Ee=ce[2]-ne/2+ye,xe=ce[1]+pe/2+Se,nt=ce[3]-pe/2+Se;Ae>Ee&&(Ae=(Ee+Ae)/2,Ee=Ae),xe>nt&&(xe=(nt+xe)/2,nt=xe);let Tt=(0,h.qE)(H[0],Ae,Ee),pt=(0,h.qE)(H[1],xe,nt);if(Te&&re&&V){const Rt=30*V;Tt+=-Rt*Math.log(1+Math.max(0,Ae-H[0])/Rt)+Rt*Math.log(1+Math.max(0,H[0]-Ee)/Rt),pt+=-Rt*Math.log(1+Math.max(0,xe-H[1])/Rt)+Rt*Math.log(1+Math.max(0,H[1]-nt)/Rt)}return[Tt,pt]}}function b(ce){return ce}var y=t(70915),w=t(66514);function S(ce,oe,re,H){const V=(0,y.RG)(oe)/re[0],Q=(0,y.Oq)(oe)/re[1];return H?Math.min(ce,Math.max(V,Q)):Math.min(ce,Math.min(V,Q))}function O(ce,oe,re){let H=Math.min(ce,oe);const V=50;return H*=Math.log(1+V*Math.max(0,ce/oe-1))/V+1,re&&(H=Math.max(H,re),H/=Math.log(1+V*Math.max(0,re/ce-1))/V+1),(0,h.qE)(H,re/2,oe*2)}function R(ce,oe,re,H){return oe=oe!==void 0?oe:!0,function(V,Q,Te,Re){if(V!==void 0){const ne=ce[0],pe=ce[ce.length-1],ye=re?S(ne,re,Te,H):ne;if(Re)return oe?O(V,ye,pe):(0,h.qE)(V,pe,ye);const Se=Math.min(ye,V),Ae=Math.floor((0,w.FT)(ce,Se,Q));return ce[Ae]>ye&&Ae<ce.length-1?ce[Ae+1]:ce[Ae]}}}function M(ce,oe,re,H,V,Q){return H=H!==void 0?H:!0,re=re!==void 0?re:0,function(Te,Re,ne,pe){if(Te!==void 0){const ye=V?S(oe,V,ne,Q):oe;if(pe)return H?O(Te,ye,re):(0,h.qE)(Te,re,ye);const Se=1e-9,Ae=Math.ceil(Math.log(oe/ye)/Math.log(ce)-Se),Ee=-Re*(.5-Se)+.5,xe=Math.min(ye,Te),nt=Math.floor(Math.log(oe/xe)/Math.log(ce)+Ee),Tt=Math.max(Ae,nt),pt=oe/Math.pow(ce,Tt);return(0,h.qE)(pt,re,ye)}}}function D(ce,oe,re,H,V){return re=re!==void 0?re:!0,function(Q,Te,Re,ne){if(Q!==void 0){const pe=H?S(ce,H,Re,V):ce;return!re||!ne?(0,h.qE)(Q,oe,pe):O(Q,pe,oe)}}}var P=t(24498),T=t(93474),A=t(71064);const j=0;class ae extends i.A{constructor(oe){super(),this.on,this.once,this.un,oe=Object.assign({},oe),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,u.Av)(oe.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,oe.projection&&(0,u.RJ)(),oe.center&&(oe.center=(0,u.Ad)(oe.center,this.projection_)),oe.extent&&(oe.extent=(0,u.SD)(oe.extent,this.projection_)),this.applyOptions_(oe)}applyOptions_(oe){const re=Object.assign({},oe);for(const Re in s)delete re[Re];this.setProperties(re,!0);const H=W(oe);this.maxResolution_=H.maxResolution,this.minResolution_=H.minResolution,this.zoomFactor_=H.zoomFactor,this.resolutions_=oe.resolutions,this.padding_=oe.padding,this.minZoom_=H.minZoom;const V=N(oe),Q=H.constraint,Te=he(oe);this.constraints_={center:V,resolution:Q,rotation:Te},this.setRotation(oe.rotation!==void 0?oe.rotation:0),this.setCenterInternal(oe.center!==void 0?oe.center:null),oe.resolution!==void 0?this.setResolution(oe.resolution):oe.zoom!==void 0&&this.setZoom(oe.zoom)}get padding(){return this.padding_}set padding(oe){let re=this.padding_;this.padding_=oe;const H=this.getCenterInternal();if(H){const V=oe||[0,0,0,0];re=re||[0,0,0,0];const Q=this.getResolution(),Te=Q/2*(V[3]-re[3]+re[1]-V[1]),Re=Q/2*(V[0]-re[0]+re[2]-V[2]);this.setCenterInternal([H[0]+Te,H[1]-Re])}}getUpdatedOptions_(oe){const re=this.getProperties();return re.resolution!==void 0?re.resolution=this.getResolution():re.zoom=this.getZoom(),re.center=this.getCenterInternal(),re.rotation=this.getRotation(),Object.assign({},re,oe)}animate(oe){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const re=new Array(arguments.length);for(let H=0;H<re.length;++H){let V=arguments[H];V.center&&(V=Object.assign({},V),V.center=(0,u.Ad)(V.center,this.getProjection())),V.anchor&&(V=Object.assign({},V),V.anchor=(0,u.Ad)(V.anchor,this.getProjection())),re[H]=V}this.animateInternal.apply(this,re)}animateInternal(oe){let re=arguments.length,H;re>1&&typeof arguments[re-1]=="function"&&(H=arguments[re-1],--re);let V=0;for(;V<re&&!this.isDef();++V){const ye=arguments[V];ye.center&&this.setCenterInternal(ye.center),ye.zoom!==void 0?this.setZoom(ye.zoom):ye.resolution&&this.setResolution(ye.resolution),ye.rotation!==void 0&&this.setRotation(ye.rotation)}if(V===re){H&&_(H,!0);return}let Q=Date.now(),Te=this.targetCenter_.slice(),Re=this.targetResolution_,ne=this.targetRotation_;const pe=[];for(;V<re;++V){const ye=arguments[V],Se={start:Q,complete:!1,anchor:ye.anchor,duration:ye.duration!==void 0?ye.duration:1e3,easing:ye.easing||T.T9,callback:H};if(ye.center&&(Se.sourceCenter=Te,Se.targetCenter=ye.center.slice(),Te=Se.targetCenter),ye.zoom!==void 0?(Se.sourceResolution=Re,Se.targetResolution=this.getResolutionForZoom(ye.zoom),Re=Se.targetResolution):ye.resolution&&(Se.sourceResolution=Re,Se.targetResolution=ye.resolution,Re=Se.targetResolution),ye.rotation!==void 0){Se.sourceRotation=ne;const Ae=(0,h.xP)(ye.rotation-ne+Math.PI,2*Math.PI)-Math.PI;Se.targetRotation=ne+Ae,ne=Se.targetRotation}me(Se)?Se.complete=!0:Q+=Se.duration,pe.push(Se)}this.animations_.push(pe),this.setHint(l.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[l.A.ANIMATING]>0}getInteracting(){return this.hints_[l.A.INTERACTING]>0}cancelAnimations(){this.setHint(l.A.ANIMATING,-this.hints_[l.A.ANIMATING]);let oe;for(let re=0,H=this.animations_.length;re<H;++re){const V=this.animations_[re];if(V[0].callback&&_(V[0].callback,!1),!oe)for(let Q=0,Te=V.length;Q<Te;++Q){const Re=V[Q];if(!Re.complete){oe=Re.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=oe,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(this.updateAnimationKey_!==void 0&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const oe=Date.now();let re=!1;for(let H=this.animations_.length-1;H>=0;--H){const V=this.animations_[H];let Q=!0;for(let Te=0,Re=V.length;Te<Re;++Te){const ne=V[Te];if(ne.complete)continue;const pe=oe-ne.start;let ye=ne.duration>0?pe/ne.duration:1;ye>=1?(ne.complete=!0,ye=1):Q=!1;const Se=ne.easing(ye);if(ne.sourceCenter){const Ae=ne.sourceCenter[0],Ee=ne.sourceCenter[1],xe=ne.targetCenter[0],nt=ne.targetCenter[1];this.nextCenter_=ne.targetCenter;const Tt=Ae+Se*(xe-Ae),pt=Ee+Se*(nt-Ee);this.targetCenter_=[Tt,pt]}if(ne.sourceResolution&&ne.targetResolution){const Ae=Se===1?ne.targetResolution:ne.sourceResolution+Se*(ne.targetResolution-ne.sourceResolution);if(ne.anchor){const Ee=this.getViewportSize_(this.getRotation()),xe=this.constraints_.resolution(Ae,0,Ee,!0);this.targetCenter_=this.calculateCenterZoom(xe,ne.anchor)}this.nextResolution_=ne.targetResolution,this.targetResolution_=Ae,this.applyTargetState_(!0)}if(ne.sourceRotation!==void 0&&ne.targetRotation!==void 0){const Ae=Se===1?(0,h.xP)(ne.targetRotation+Math.PI,2*Math.PI)-Math.PI:ne.sourceRotation+Se*(ne.targetRotation-ne.sourceRotation);if(ne.anchor){const Ee=this.constraints_.rotation(Ae,!0);this.targetCenter_=this.calculateCenterRotate(Ee,ne.anchor)}this.nextRotation_=ne.targetRotation,this.targetRotation_=Ae}if(this.applyTargetState_(!0),re=!0,!ne.complete)break}if(Q){this.animations_[H]=null,this.setHint(l.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const Te=V[0].callback;Te&&_(Te,!0)}}this.animations_=this.animations_.filter(Boolean),re&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(oe,re){let H;const V=this.getCenterInternal();return V!==void 0&&(H=[V[0]-re[0],V[1]-re[1]],(0,p.e$)(H,oe-this.getRotation()),(0,p.WQ)(H,re)),H}calculateCenterZoom(oe,re){let H;const V=this.getCenterInternal(),Q=this.getResolution();if(V!==void 0&&Q!==void 0){const Te=re[0]-oe*(re[0]-V[0])/Q,Re=re[1]-oe*(re[1]-V[1])/Q;H=[Te,Re]}return H}getViewportSize_(oe){const re=this.viewportSize_;if(oe){const H=re[0],V=re[1];return[Math.abs(H*Math.cos(oe))+Math.abs(V*Math.sin(oe)),Math.abs(H*Math.sin(oe))+Math.abs(V*Math.cos(oe))]}return re}setViewportSize(oe){this.viewportSize_=Array.isArray(oe)?oe.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const oe=this.getCenterInternal();return oe&&(0,u.te)(oe,this.getProjection())}getCenterInternal(){return this.get(s.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(oe){return oe!==void 0?(oe[0]=this.hints_[0],oe[1]=this.hints_[1],oe):this.hints_.slice()}calculateExtent(oe){const re=this.calculateExtentInternal(oe);return(0,u.JR)(re,this.getProjection())}calculateExtentInternal(oe){oe=oe||this.getViewportSizeMinusPadding_();const re=this.getCenterInternal();(0,v.v)(re,1);const H=this.getResolution();(0,v.v)(H!==void 0,2);const V=this.getRotation();return(0,v.v)(V!==void 0,3),(0,y.Bg)(re,H,V,oe)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(oe){this.applyOptions_(this.getUpdatedOptions_({maxZoom:oe}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(oe){this.applyOptions_(this.getUpdatedOptions_({minZoom:oe}))}setConstrainResolution(oe){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:oe}))}getProjection(){return this.projection_}getResolution(){return this.get(s.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(oe,re){return this.getResolutionForExtentInternal((0,u.SD)(oe,this.getProjection()),re)}getResolutionForExtentInternal(oe,re){re=re||this.getViewportSizeMinusPadding_();const H=(0,y.RG)(oe)/re[0],V=(0,y.Oq)(oe)/re[1];return Math.max(H,V)}getResolutionForValueFunction(oe){oe=oe||2;const re=this.getConstrainedResolution(this.maxResolution_),H=this.minResolution_,V=Math.log(re/H)/Math.log(oe);return function(Q){return re/Math.pow(oe,Q*V)}}getRotation(){return this.get(s.ROTATION)}getValueForResolutionFunction(oe){const re=Math.log(oe||2),H=this.getConstrainedResolution(this.maxResolution_),V=this.minResolution_,Q=Math.log(H/V)/re;return function(Te){return Math.log(H/Te)/re/Q}}getViewportSizeMinusPadding_(oe){let re=this.getViewportSize_(oe);const H=this.padding_;return H&&(re=[re[0]-H[1]-H[3],re[1]-H[0]-H[2]]),re}getState(){const oe=this.getProjection(),re=this.getResolution(),H=this.getRotation();let V=this.getCenterInternal();const Q=this.padding_;if(Q){const Te=this.getViewportSizeMinusPadding_();V=fe(V,this.getViewportSize_(),[Te[0]/2+Q[3],Te[1]/2+Q[0]],re,H)}return{center:V.slice(0),projection:oe!==void 0?oe:null,resolution:re,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:H,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let oe;const re=this.getResolution();return re!==void 0&&(oe=this.getZoomForResolution(re)),oe}getZoomForResolution(oe){let re=this.minZoom_||0,H,V;if(this.resolutions_){const Q=(0,w.FT)(this.resolutions_,oe,1);re=Q,H=this.resolutions_[Q],Q==this.resolutions_.length-1?V=2:V=H/this.resolutions_[Q+1]}else H=this.maxResolution_,V=this.zoomFactor_;return re+Math.log(H/oe)/Math.log(V)}getResolutionForZoom(oe){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const re=(0,h.qE)(Math.floor(oe),0,this.resolutions_.length-2),H=this.resolutions_[re]/this.resolutions_[re+1];return this.resolutions_[re]/Math.pow(H,(0,h.qE)(oe-re,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,oe-this.minZoom_)}fit(oe,re){let H;if((0,v.v)(Array.isArray(oe)||typeof oe.getSimplifiedGeometry=="function",24),Array.isArray(oe)){(0,v.v)(!(0,y.Im)(oe),25);const V=(0,u.SD)(oe,this.getProjection());H=(0,A.VY)(V)}else if(oe.getType()==="Circle"){const V=(0,u.SD)(oe.getExtent(),this.getProjection());H=(0,A.VY)(V),H.rotate(this.getRotation(),(0,y.q1)(V))}else{const V=(0,u.Tf)();V?H=oe.clone().transform(V,this.getProjection()):H=oe}this.fitInternal(H,re)}rotatedExtentForGeometry(oe){const re=this.getRotation(),H=Math.cos(re),V=Math.sin(-re),Q=oe.getFlatCoordinates(),Te=oe.getStride();let Re=1/0,ne=1/0,pe=-1/0,ye=-1/0;for(let Se=0,Ae=Q.length;Se<Ae;Se+=Te){const Ee=Q[Se]*H-Q[Se+1]*V,xe=Q[Se]*V+Q[Se+1]*H;Re=Math.min(Re,Ee),ne=Math.min(ne,xe),pe=Math.max(pe,Ee),ye=Math.max(ye,xe)}return[Re,ne,pe,ye]}fitInternal(oe,re){re=re||{};let H=re.size;H||(H=this.getViewportSizeMinusPadding_());const V=re.padding!==void 0?re.padding:[0,0,0,0],Q=re.nearest!==void 0?re.nearest:!1;let Te;re.minResolution!==void 0?Te=re.minResolution:re.maxZoom!==void 0?Te=this.getResolutionForZoom(re.maxZoom):Te=0;const Re=this.rotatedExtentForGeometry(oe);let ne=this.getResolutionForExtentInternal(Re,[H[0]-V[1]-V[3],H[1]-V[0]-V[2]]);ne=isNaN(ne)?Te:Math.max(ne,Te),ne=this.getConstrainedResolution(ne,Q?0:1);const pe=this.getRotation(),ye=Math.sin(pe),Se=Math.cos(pe),Ae=(0,y.q1)(Re);Ae[0]+=(V[1]-V[3])/2*ne,Ae[1]+=(V[0]-V[2])/2*ne;const Ee=Ae[0]*Se-Ae[1]*ye,xe=Ae[1]*Se+Ae[0]*ye,nt=this.getConstrainedCenter([Ee,xe],ne),Tt=re.callback?re.callback:f.tV;re.duration!==void 0?this.animateInternal({resolution:ne,center:nt,duration:re.duration,easing:re.easing},Tt):(this.targetResolution_=ne,this.targetCenter_=nt,this.applyTargetState_(!1,!0),_(Tt,!0))}centerOn(oe,re,H){this.centerOnInternal((0,u.Ad)(oe,this.getProjection()),re,H)}centerOnInternal(oe,re,H){this.setCenterInternal(fe(oe,re,H,this.getResolution(),this.getRotation()))}calculateCenterShift(oe,re,H,V){let Q;const Te=this.padding_;if(Te&&oe){const Re=this.getViewportSizeMinusPadding_(-H),ne=fe(oe,V,[Re[0]/2+Te[3],Re[1]/2+Te[0]],re,H);Q=[oe[0]-ne[0],oe[1]-ne[1]]}return Q}isDef(){return!!this.getCenterInternal()&&this.getResolution()!==void 0}adjustCenter(oe){const re=(0,u.te)(this.targetCenter_,this.getProjection());this.setCenter([re[0]+oe[0],re[1]+oe[1]])}adjustCenterInternal(oe){const re=this.targetCenter_;this.setCenterInternal([re[0]+oe[0],re[1]+oe[1]])}adjustResolution(oe,re){re=re&&(0,u.Ad)(re,this.getProjection()),this.adjustResolutionInternal(oe,re)}adjustResolutionInternal(oe,re){const H=this.getAnimating()||this.getInteracting(),V=this.getViewportSize_(this.getRotation()),Q=this.constraints_.resolution(this.targetResolution_*oe,0,V,H);re&&(this.targetCenter_=this.calculateCenterZoom(Q,re)),this.targetResolution_*=oe,this.applyTargetState_()}adjustZoom(oe,re){this.adjustResolution(Math.pow(this.zoomFactor_,-oe),re)}adjustRotation(oe,re){re&&(re=(0,u.Ad)(re,this.getProjection())),this.adjustRotationInternal(oe,re)}adjustRotationInternal(oe,re){const H=this.getAnimating()||this.getInteracting(),V=this.constraints_.rotation(this.targetRotation_+oe,H);re&&(this.targetCenter_=this.calculateCenterRotate(V,re)),this.targetRotation_+=oe,this.applyTargetState_()}setCenter(oe){this.setCenterInternal(oe&&(0,u.Ad)(oe,this.getProjection()))}setCenterInternal(oe){this.targetCenter_=oe,this.applyTargetState_()}setHint(oe,re){return this.hints_[oe]+=re,this.changed(),this.hints_[oe]}setResolution(oe){this.targetResolution_=oe,this.applyTargetState_()}setRotation(oe){this.targetRotation_=oe,this.applyTargetState_()}setZoom(oe){this.setResolution(this.getResolutionForZoom(oe))}applyTargetState_(oe,re){const H=this.getAnimating()||this.getInteracting()||re,V=this.constraints_.rotation(this.targetRotation_,H),Q=this.getViewportSize_(V),Te=this.constraints_.resolution(this.targetResolution_,0,Q,H),Re=this.constraints_.center(this.targetCenter_,Te,Q,H,this.calculateCenterShift(this.targetCenter_,Te,V,Q));this.get(s.ROTATION)!==V&&this.set(s.ROTATION,V),this.get(s.RESOLUTION)!==Te&&(this.set(s.RESOLUTION,Te),this.set("zoom",this.getZoom(),!0)),(!Re||!this.get(s.CENTER)||!(0,p.aI)(this.get(s.CENTER),Re))&&this.set(s.CENTER,Re),this.getAnimating()&&!oe&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(oe,re,H){oe=oe!==void 0?oe:200;const V=re||0,Q=this.constraints_.rotation(this.targetRotation_),Te=this.getViewportSize_(Q),Re=this.constraints_.resolution(this.targetResolution_,V,Te),ne=this.constraints_.center(this.targetCenter_,Re,Te,!1,this.calculateCenterShift(this.targetCenter_,Re,Q,Te));if(oe===0&&!this.cancelAnchor_){this.targetResolution_=Re,this.targetRotation_=Q,this.targetCenter_=ne,this.applyTargetState_();return}H=H||(oe===0?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,(this.getResolution()!==Re||this.getRotation()!==Q||!this.getCenterInternal()||!(0,p.aI)(this.getCenterInternal(),ne))&&(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:Q,center:ne,resolution:Re,duration:oe,easing:T.vT,anchor:H}))}beginInteraction(){this.resolveConstraints(0),this.setHint(l.A.INTERACTING,1)}endInteraction(oe,re,H){H=H&&(0,u.Ad)(H,this.getProjection()),this.endInteractionInternal(oe,re,H)}endInteractionInternal(oe,re,H){this.getInteracting()&&(this.setHint(l.A.INTERACTING,-1),this.resolveConstraints(oe,re,H))}getConstrainedCenter(oe,re){const H=this.getViewportSize_(this.getRotation());return this.constraints_.center(oe,re||this.getResolution(),H)}getConstrainedZoom(oe,re){const H=this.getResolutionForZoom(oe);return this.getZoomForResolution(this.getConstrainedResolution(H,re))}getConstrainedResolution(oe,re){re=re||0;const H=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(oe,re,H)}}function _(ce,oe){setTimeout(function(){ce(oe)},0)}function N(ce){if(ce.extent!==void 0){const re=ce.smoothExtentConstraint!==void 0?ce.smoothExtentConstraint:!0;return d(ce.extent,ce.constrainOnlyCenter,re)}const oe=(0,u.Av)(ce.projection,"EPSG:3857");if(ce.multiWorld!==!0&&oe.isGlobal()){const re=oe.getExtent().slice();return re[0]=-1/0,re[2]=1/0,d(re,!1,!1)}return b}function W(ce){let oe,re,H,Te=ce.minZoom!==void 0?ce.minZoom:j,Re=ce.maxZoom!==void 0?ce.maxZoom:28;const ne=ce.zoomFactor!==void 0?ce.zoomFactor:2,pe=ce.multiWorld!==void 0?ce.multiWorld:!1,ye=ce.smoothResolutionConstraint!==void 0?ce.smoothResolutionConstraint:!0,Se=ce.showFullExtent!==void 0?ce.showFullExtent:!1,Ae=(0,u.Av)(ce.projection,"EPSG:3857"),Ee=Ae.getExtent();let xe=ce.constrainOnlyCenter,nt=ce.extent;if(!pe&&!nt&&Ae.isGlobal()&&(xe=!1,nt=Ee),ce.resolutions!==void 0){const Tt=ce.resolutions;re=Tt[Te],H=Tt[Re]!==void 0?Tt[Re]:Tt[Tt.length-1],ce.constrainResolution?oe=R(Tt,ye,!xe&&nt,Se):oe=D(re,H,ye,!xe&&nt,Se)}else{const pt=(Ee?Math.max((0,y.RG)(Ee),(0,y.Oq)(Ee)):360*u.Ig.degrees/Ae.getMetersPerUnit())/m.R/Math.pow(2,j),Rt=pt/Math.pow(2,28-j);re=ce.maxResolution,re!==void 0?Te=0:re=pt/Math.pow(ne,Te),H=ce.minResolution,H===void 0&&(ce.maxZoom!==void 0?ce.maxResolution!==void 0?H=re/Math.pow(ne,Re):H=pt/Math.pow(ne,Re):H=Rt),Re=Te+Math.floor(Math.log(re/H)/Math.log(ne)),H=re/Math.pow(ne,Re-Te),ce.constrainResolution?oe=M(ne,re,H,ye,!xe&&nt,Se):oe=D(re,H,ye,!xe&&nt,Se)}return{constraint:oe,maxResolution:re,minResolution:H,minZoom:Te,zoomFactor:ne}}function he(ce){if(ce.enableRotation!==void 0?ce.enableRotation:!0){const re=ce.constrainRotation;return re===void 0||re===!0?(0,P.cq)():re===!1?P.dv:typeof re=="number"?(0,P.a$)(re):P.dv}return P.b8}function me(ce){return!(ce.sourceCenter&&ce.targetCenter&&!(0,p.aI)(ce.sourceCenter,ce.targetCenter)||ce.sourceResolution!==ce.targetResolution||ce.sourceRotation!==ce.targetRotation)}function fe(ce,oe,re,H,V){const Q=Math.cos(-V);let Te=Math.sin(-V),Re=ce[0]*Q-ce[1]*Te,ne=ce[1]*Q+ce[0]*Te;Re+=(oe[0]/2-re[0])*H,ne+=(re[1]-oe[1]/2)*H,Te=-Te;const pe=Re*Q-ne*Te,ye=ne*Q+Re*Te;return[pe,ye]}const ve=ae},62703:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={ANIMATING:0,INTERACTING:1}},66514:(J,g,t)=>{"use strict";t.d(g,{El:()=>i,FT:()=>s,V_:()=>l,WC:()=>h,X$:()=>u,aI:()=>p,gI:()=>m});function i(d,b,y){let w,S;y=y||l;let O=0,R=d.length,M=!1;for(;O<R;)w=O+(R-O>>1),S=+y(d[w],b),S<0?O=w+1:(R=w,M=!S);return M?O:~O}function l(d,b){return d>b?1:d<b?-1:0}function s(d,b,y){if(d[0]<=b)return 0;const w=d.length;if(b<=d[w-1])return w-1;if(typeof y=="function"){for(let S=1;S<w;++S){const O=d[S];if(O===b)return S;if(O<b)return y(b,d[S-1],O)>0?S-1:S}return w-1}if(y>0){for(let S=1;S<w;++S)if(d[S]<b)return S-1;return w-1}if(y<0){for(let S=1;S<w;++S)if(d[S]<=b)return S;return w-1}for(let S=1;S<w;++S){if(d[S]==b)return S;if(d[S]<b)return d[S-1]-b<b-d[S]?S-1:S}return w-1}function m(d,b,y){for(;b<y;){const w=d[b];d[b]=d[y],d[y]=w,++b,--y}}function u(d,b){const y=Array.isArray(b)?b:[b],w=y.length;for(let S=0;S<w;S++)d[d.length]=y[S]}function f(d,b){const y=d.indexOf(b),w=y>-1;return w&&d.splice(y,1),w}function p(d,b){const y=d.length;if(y!==b.length)return!1;for(let w=0;w<y;w++)if(d[w]!==b[w])return!1;return!0}function v(d,b){const y=d.length,w=Array(d.length);let S;for(S=0;S<y;S++)w[S]={index:S,value:d[S]};for(w.sort(function(O,R){return b(O.value,R.value)||O.index-R.index}),S=0;S<d.length;S++)d[S]=w[S].value}function h(d,b,y){const w=b||l;return d.every(function(S,O){if(O===0)return!0;const R=w(d[O-1],S);return!(R>0||y&&R===0)})}},90588:(J,g,t)=>{"use strict";t.d(g,{v:()=>l});var i=t(70017);function l(s,m){if(!s)throw new i.A(m)}},89352:(J,g,t)=>{"use strict";t.d(g,{_j:()=>v,dI:()=>b,oJ:()=>u});var i=t(90588),l=t(61597);const s=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,m=/^([a-z]*)$|^hsla?\(.*\)$/i;function u(w){return typeof w=="string"?w:b(w)}function f(w){const S=document.createElement("div");if(S.style.color=w,S.style.color!==""){document.body.appendChild(S);const O=getComputedStyle(S).color;return document.body.removeChild(S),O}return""}const p=function(){const S={};let O=0;return function(R){let M;if(S.hasOwnProperty(R))M=S[R];else{if(O>=1024){let D=0;for(const P in S)D++&3||(delete S[P],--O)}M=h(R),S[R]=M,++O}return M}}();function v(w){return Array.isArray(w)?w:p(w)}function h(w){let S,O,R,M,D;if(m.exec(w)&&(w=f(w)),s.exec(w)){const P=w.length-1;let T;P<=4?T=1:T=2;const A=P===4||P===8;S=parseInt(w.substr(1+0*T,T),16),O=parseInt(w.substr(1+1*T,T),16),R=parseInt(w.substr(1+2*T,T),16),A?M=parseInt(w.substr(1+3*T,T),16):M=255,T==1&&(S=(S<<4)+S,O=(O<<4)+O,R=(R<<4)+R,A&&(M=(M<<4)+M)),D=[S,O,R,M/255]}else w.startsWith("rgba(")?(D=w.slice(5,-1).split(",").map(Number),d(D)):w.startsWith("rgb(")?(D=w.slice(4,-1).split(",").map(Number),D.push(1),d(D)):(0,i.v)(!1,14);return D}function d(w){return w[0]=(0,l.qE)(w[0]+.5|0,0,255),w[1]=(0,l.qE)(w[1]+.5|0,0,255),w[2]=(0,l.qE)(w[2]+.5|0,0,255),w[3]=(0,l.qE)(w[3],0,1),w}function b(w){let S=w[0];S!=(S|0)&&(S=S+.5|0);let O=w[1];O!=(O|0)&&(O=O+.5|0);let R=w[2];R!=(R|0)&&(R=R+.5|0);const M=w[3]===void 0?1:Math.round(w[3]*100)/100;return"rgba("+S+","+O+","+R+","+M+")"}function y(w){return m.test(w)&&(w=f(w)),s.test(w)||w.startsWith("rgba(")||w.startsWith("rgb(")}},54422:(J,g,t)=>{"use strict";t.d(g,{R8:()=>u});const i={info:1,warn:2,error:3,none:4};let l=i.info;function s(p){l=i[p]}function m(...p){l>i.info||console.log(...p)}function u(...p){l>i.warn||console.warn(...p)}function f(...p){l>i.error||console.error(...p)}},57456:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=t(10972),l=t(6837),s=t(25176),m=t(66514),u=t(68711);class f extends i.A{constructor(h){h=h||{},super({element:document.createElement("div"),render:h.render,target:h.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=h.collapsed!==void 0?h.collapsed:!0,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=h.collapsible!==void 0,this.collapsible_=h.collapsible!==void 0?h.collapsible:!0,this.collapsible_||(this.collapsed_=!1);const d=h.className!==void 0?h.className:"ol-attribution",b=h.tipLabel!==void 0?h.tipLabel:"Attributions",y=h.expandClassName!==void 0?h.expandClassName:d+"-expand",w=h.collapseLabel!==void 0?h.collapseLabel:"\u203A",S=h.collapseClassName!==void 0?h.collapseClassName:d+"-collapse";typeof w=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=w,this.collapseLabel_.className=S):this.collapseLabel_=w;const O=h.label!==void 0?h.label:"i";typeof O=="string"?(this.label_=document.createElement("span"),this.label_.textContent=O,this.label_.className=y):this.label_=O;const R=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=b,this.toggleButton_.appendChild(R),this.toggleButton_.addEventListener(l.A.CLICK,this.handleClick_.bind(this),!1);const M=d+" "+s.XI+" "+s.$N+(this.collapsed_&&this.collapsible_?" "+s.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),D=this.element;D.className=M,D.appendChild(this.toggleButton_),D.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(h){const d=Array.from(new Set(this.getMap().getAllLayers().flatMap(y=>y.getAttributions(h)))),b=!this.getMap().getAllLayers().some(y=>y.getSource()&&y.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(b),d}updateElement_(h){if(!h){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const d=this.collectSourceAttributions_(h),b=d.length>0;if(this.renderedVisible_!=b&&(this.element.style.display=b?"":"none",this.renderedVisible_=b),!(0,m.aI)(d,this.renderedAttributions_)){(0,u.gS)(this.ulElement_);for(let y=0,w=d.length;y<w;++y){const S=document.createElement("li");S.innerHTML=d[y],this.ulElement_.appendChild(S)}this.renderedAttributions_=d}}handleClick_(h){h.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(s.nT),this.collapsed_?(0,u.fo)(this.collapseLabel_,this.label_):(0,u.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(h){this.collapsible_!==h&&(this.collapsible_=h,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(h){this.userCollapsed_=h,!(!this.collapsible_||this.collapsed_===h)&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(h){this.updateElement_(h.frameState)}}const p=f},10972:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=t(34120),l=t(82585),s=t(74238),m=t(9438),u=t(68711);class f extends i.A{constructor(h){super();const d=h.element;d&&!h.target&&!d.style.pointerEvents&&(d.style.pointerEvents="auto"),this.element=d||null,this.target_=null,this.map_=null,this.listenerKeys=[],h.render&&(this.render=h.render),h.target&&this.setTarget(h.target)}disposeInternal(){(0,u.bf)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(h){this.map_&&(0,u.bf)(this.element);for(let d=0,b=this.listenerKeys.length;d<b;++d)(0,m.JH)(this.listenerKeys[d]);this.listenerKeys.length=0,this.map_=h,h&&((this.target_?this.target_:h.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==s.tV&&this.listenerKeys.push((0,m.KT)(h,l.A.POSTRENDER,this.render,this)),h.render())}render(h){}setTarget(h){this.target_=typeof h=="string"?document.getElementById(h):h}}const p=f},69186:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(10972),l=t(6837),s=t(25176),m=t(93474);class u extends i.A{constructor(v){v=v||{},super({element:document.createElement("div"),target:v.target});const h=v.className!==void 0?v.className:"ol-zoom",d=v.delta!==void 0?v.delta:1,b=v.zoomInClassName!==void 0?v.zoomInClassName:h+"-in",y=v.zoomOutClassName!==void 0?v.zoomOutClassName:h+"-out",w=v.zoomInLabel!==void 0?v.zoomInLabel:"+",S=v.zoomOutLabel!==void 0?v.zoomOutLabel:"\u2013",O=v.zoomInTipLabel!==void 0?v.zoomInTipLabel:"Zoom in",R=v.zoomOutTipLabel!==void 0?v.zoomOutTipLabel:"Zoom out",M=document.createElement("button");M.className=b,M.setAttribute("type","button"),M.title=O,M.appendChild(typeof w=="string"?document.createTextNode(w):w),M.addEventListener(l.A.CLICK,this.handleClick_.bind(this,d),!1);const D=document.createElement("button");D.className=y,D.setAttribute("type","button"),D.title=R,D.appendChild(typeof S=="string"?document.createTextNode(S):S),D.addEventListener(l.A.CLICK,this.handleClick_.bind(this,-d),!1);const P=h+" "+s.XI+" "+s.$N,T=this.element;T.className=P,T.appendChild(M),T.appendChild(D),this.duration_=v.duration!==void 0?v.duration:250}handleClick_(v,h){h.preventDefault(),this.zoomByDelta_(v)}zoomByDelta_(v){const d=this.getMap().getView();if(!d)return;const b=d.getZoom();if(b!==void 0){const y=d.getConstrainedZoom(b+v);this.duration_>0?(d.getAnimating()&&d.cancelAnimations(),d.animate({zoom:y,duration:this.duration_,easing:m.vT})):d.setZoom(y)}}}const f=u},6933:(J,g,t)=>{"use strict";t.d(g,{$x:()=>w,Io:()=>y,Li:()=>R,WQ:()=>l,aI:()=>v,e$:()=>h,hG:()=>b,hs:()=>d,sG:()=>m});var i=t(70915);function l(D,P){return D[0]+=+P[0],D[1]+=+P[1],D}function s(D,P){const T=P.getRadius(),A=P.getCenter(),j=A[0],ae=A[1],_=D[0],N=D[1];let W=_-j;const he=N-ae;W===0&&he===0&&(W=1);const me=Math.sqrt(W*W+he*he),fe=j+T*W/me,ve=ae+T*he/me;return[fe,ve]}function m(D,P){const T=D[0],A=D[1],j=P[0],ae=P[1],_=j[0],N=j[1],W=ae[0],he=ae[1],me=W-_,fe=he-N,ve=me===0&&fe===0?0:(me*(T-_)+fe*(A-N))/(me*me+fe*fe||0);let ce,oe;return ve<=0?(ce=_,oe=N):ve>=1?(ce=W,oe=he):(ce=_+ve*me,oe=N+ve*fe),[ce,oe]}function u(D){return function(P){return O(P,D)}}function f(D,P,T){const A=modulo(P+180,360)-180,j=Math.abs(3600*A),ae=T||0;let _=Math.floor(j/3600),N=Math.floor((j-_*3600)/60),W=toFixed(j-_*3600-N*60,ae);W>=60&&(W=0,N+=1),N>=60&&(N=0,_+=1);let he=_+"\xB0";return(N!==0||W!==0)&&(he+=" "+padNumber(N,2)+"\u2032"),W!==0&&(he+=" "+padNumber(W,2,ae)+"\u2033"),A!==0&&(he+=" "+D.charAt(A<0?1:0)),he}function p(D,P,T){return D?P.replace("{x}",D[0].toFixed(T)).replace("{y}",D[1].toFixed(T)):""}function v(D,P){let T=!0;for(let A=D.length-1;A>=0;--A)if(D[A]!=P[A]){T=!1;break}return T}function h(D,P){const T=Math.cos(P),A=Math.sin(P),j=D[0]*T-D[1]*A,ae=D[1]*T+D[0]*A;return D[0]=j,D[1]=ae,D}function d(D,P){return D[0]*=P,D[1]*=P,D}function b(D,P){const T=D[0]-P[0],A=D[1]-P[1];return T*T+A*A}function y(D,P){return Math.sqrt(b(D,P))}function w(D,P){return b(D,m(D,P))}function S(D,P){return D?f("NS",D[1],P)+" "+f("EW",D[0],P):""}function O(D,P){return p(D,"{x}, {y}",P)}function R(D,P){if(P.canWrapX()){const T=(0,i.RG)(P.getExtent()),A=M(D,P,T);A&&(D[0]-=A*T)}return D}function M(D,P,T){const A=P.getExtent();let j=0;return P.canWrapX()&&(D[0]<A[0]||D[0]>A[2])&&(T=T||(0,i.RG)(A),j=Math.floor((D[0]-A[0])/T)),j}},25176:(J,g,t)=>{"use strict";t.d(g,{$N:()=>u,K5:()=>h,Si:()=>i,XI:()=>s,nT:()=>f});const i="ol-hidden",l="ol-selectable",s="ol-unselectable",m="ol-unsupported",u="ol-control",f="ol-collapsed",p=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),v=["style","variant","weight","size","lineHeight","family"],h=function(d){const b=d.match(p);if(!b)return null;const y={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let w=0,S=v.length;w<S;++w){const O=b[w+1];O!==void 0&&(y[v[w]]=O)}return y.families=y.family.split(/,\s?/),y}},68711:(J,g,t)=>{"use strict";t.d(g,{WM:()=>h,Y:()=>l,Yg:()=>s,bf:()=>p,fo:()=>f,gS:()=>v});var i=t(7771);function l(d,b,y,w){let S;return y&&y.length?S=y.shift():i.Wl?S=new OffscreenCanvas(d||300,b||300):S=document.createElement("canvas"),d&&(S.width=d),b&&(S.height=b),S.getContext("2d",w)}function s(d){const b=d.canvas;b.width=1,b.height=1,d.clearRect(0,0,1,1)}function m(d){let b=d.offsetWidth;const y=getComputedStyle(d);return b+=parseInt(y.marginLeft,10)+parseInt(y.marginRight,10),b}function u(d){let b=d.offsetHeight;const y=getComputedStyle(d);return b+=parseInt(y.marginTop,10)+parseInt(y.marginBottom,10),b}function f(d,b){const y=b.parentNode;y&&y.replaceChild(d,b)}function p(d){return d&&d.parentNode?d.parentNode.removeChild(d):null}function v(d){for(;d.lastChild;)d.removeChild(d.lastChild)}function h(d,b){const y=d.childNodes;for(let w=0;;++w){const S=y[w],O=b[w];if(!S&&!O)break;if(S!==O){if(!S){d.appendChild(O);continue}if(!O){d.removeChild(S),--w;continue}d.insertBefore(O,S)}}}},93474:(J,g,t)=>{"use strict";t.d(g,{T9:()=>s,a6:()=>i,sn:()=>m,vT:()=>l});function i(f){return Math.pow(f,3)}function l(f){return 1-i(1-f)}function s(f){return 3*f*f-2*f*f*f}function m(f){return f}function u(f){return f<.5?s(2*f):1-s(2*(f-.5))}},9438:(J,g,t)=>{"use strict";t.d(g,{JH:()=>m,Jz:()=>s,KT:()=>l});var i=t(43530);function l(u,f,p,v,h){if(v&&v!==u&&(p=p.bind(v)),h){const b=p;p=function(){u.removeEventListener(f,p),b.apply(this,arguments)}}const d={target:u,type:f,listener:p};return u.addEventListener(f,p),d}function s(u,f,p,v){return l(u,f,p,v,!0)}function m(u){u&&u.target&&(u.target.removeEventListener(u.type,u.listener),(0,i.I)(u))}},1685:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>m});class i{constructor(f){this.propagationStopped,this.defaultPrevented,this.type=f,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}function l(u){u.stopPropagation()}function s(u){u.preventDefault()}const m=i},6837:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},79332:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(90025),l=t(1685),s=t(74238),m=t(43530);class u extends i.A{constructor(v){super(),this.eventTarget_=v,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(v,h){if(!v||!h)return;const d=this.listeners_||(this.listeners_={}),b=d[v]||(d[v]=[]);b.includes(h)||b.push(h)}dispatchEvent(v){const h=typeof v=="string",d=h?v:v.type,b=this.listeners_&&this.listeners_[d];if(!b)return;const y=h?new l.Ay(v):v;y.target||(y.target=this.eventTarget_||this);const w=this.dispatching_||(this.dispatching_={}),S=this.pendingRemovals_||(this.pendingRemovals_={});d in w||(w[d]=0,S[d]=0),++w[d];let O;for(let R=0,M=b.length;R<M;++R)if("handleEvent"in b[R]?O=b[R].handleEvent(y):O=b[R].call(this,y),O===!1||y.propagationStopped){O=!1;break}if(--w[d]===0){let R=S[d];for(delete S[d];R--;)this.removeEventListener(d,s.tV);delete w[d]}return O}disposeInternal(){this.listeners_&&(0,m.I)(this.listeners_)}getListeners(v){return this.listeners_&&this.listeners_[v]||void 0}hasListener(v){return this.listeners_?v?v in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(v,h){const d=this.listeners_&&this.listeners_[v];if(d){const b=d.indexOf(h);b!==-1&&(this.pendingRemovals_&&v in this.pendingRemovals_?(d[b]=s.tV,++this.pendingRemovals_[v]):(d.splice(b,1),d.length===0&&delete this.listeners_[v]))}}}const f=u},58704:(J,g,t)=>{"use strict";t.d(g,{A4:()=>A,Gk:()=>d,IO:()=>p,Js:()=>f,Kg:()=>P,Q7:()=>u,TS:()=>M,Zm:()=>w,at:()=>y,eL:()=>h,fs:()=>_,t5:()=>O,tE:()=>T});var i=t(73445),l=t(74238),s=t(7771),m=t(90588);function u(N){const W=arguments;return function(he){let me=!0;for(let fe=0,ve=W.length;fe<ve&&(me=me&&W[fe](he),!!me);++fe);return me}}const f=function(N){const W=N.originalEvent;return W.altKey&&!(W.metaKey||W.ctrlKey)&&!W.shiftKey},p=function(N){const W=N.originalEvent;return W.altKey&&!(W.metaKey||W.ctrlKey)&&W.shiftKey},v=function(N){const W=N.map.getTargetElement(),he=N.map.getOwnerDocument().activeElement;return W.contains(he)},h=function(N){return N.map.getTargetElement().hasAttribute("tabindex")?v(N):!0},d=l.rT,b=function(N){return N.type==MapBrowserEventType.CLICK},y=function(N){const W=N.originalEvent;return W.button==0&&!(s.j&&s.ew&&W.ctrlKey)},w=l.W8,S=function(N){return N.type=="pointermove"},O=function(N){return N.type==i.A.SINGLECLICK},R=function(N){return N.type==MapBrowserEventType.DBLCLICK},M=function(N){const W=N.originalEvent;return!W.altKey&&!(W.metaKey||W.ctrlKey)&&!W.shiftKey},D=function(N){const W=N.originalEvent;return!W.altKey&&(MAC?W.metaKey:W.ctrlKey)&&!W.shiftKey},P=function(N){const W=N.originalEvent;return!W.altKey&&!(W.metaKey||W.ctrlKey)&&W.shiftKey},T=function(N){const W=N.originalEvent,he=W.target.tagName;return he!=="INPUT"&&he!=="SELECT"&&he!=="TEXTAREA"&&!W.target.isContentEditable},A=function(N){const W=N.originalEvent;return(0,m.v)(W!==void 0,56),W.pointerType=="mouse"},j=function(N){const W=N.originalEvent;return assert(W!==void 0,56),W.pointerType==="touch"},ae=function(N){const W=N.originalEvent;return assert(W!==void 0,56),W.pointerType==="pen"},_=function(N){const W=N.originalEvent;return(0,m.v)(W!==void 0,56),W.isPrimary&&W.button===0}},70915:(J,g,t)=>{"use strict";t.d(g,{$C:()=>j,$u:()=>nt,Bg:()=>H,HY:()=>Ee,Im:()=>xe,Ld:()=>p,Li:()=>tt,Mx:()=>pt,N:()=>w,NW:()=>Rt,Oq:()=>Q,Py:()=>ye,QJ:()=>U,R:()=>fe,R8:()=>_,RG:()=>Ae,Rj:()=>d,S5:()=>y,Tr:()=>s,UG:()=>me,Vy:()=>M,WU:()=>Se,X$:()=>A,Ym:()=>v,Yw:()=>V,_N:()=>Re,aI:()=>P,aZ:()=>S,dP:()=>O,k_:()=>ve,ms:()=>h,o8:()=>f,q1:()=>ce,qF:()=>oe,r:()=>u,sB:()=>he,vz:()=>b});var i=t(11580),l=t(90588);function s(F){const Y=y();for(let le=0,ke=F.length;le<ke;++le)j(Y,F[le]);return Y}function m(F,Y,le){const ke=Math.min.apply(null,F),Ye=Math.min.apply(null,Y),ft=Math.max.apply(null,F),wt=Math.max.apply(null,Y);return w(ke,Ye,ft,wt,le)}function u(F,Y,le){return le?(le[0]=F[0]-Y,le[1]=F[1]-Y,le[2]=F[2]+Y,le[3]=F[3]+Y,le):[F[0]-Y,F[1]-Y,F[2]+Y,F[3]+Y]}function f(F,Y){return Y?(Y[0]=F[0],Y[1]=F[1],Y[2]=F[2],Y[3]=F[3],Y):F.slice()}function p(F,Y,le){let ke,Ye;return Y<F[0]?ke=F[0]-Y:F[2]<Y?ke=Y-F[2]:ke=0,le<F[1]?Ye=F[1]-le:F[3]<le?Ye=le-F[3]:Ye=0,ke*ke+Ye*Ye}function v(F,Y){return d(F,Y[0],Y[1])}function h(F,Y){return F[0]<=Y[0]&&Y[2]<=F[2]&&F[1]<=Y[1]&&Y[3]<=F[3]}function d(F,Y,le){return F[0]<=Y&&Y<=F[2]&&F[1]<=le&&le<=F[3]}function b(F,Y){const le=F[0],ke=F[1],Ye=F[2],ft=F[3],wt=Y[0],Ut=Y[1];let Ke=i.A.UNKNOWN;return wt<le?Ke=Ke|i.A.LEFT:wt>Ye&&(Ke=Ke|i.A.RIGHT),Ut<ke?Ke=Ke|i.A.BELOW:Ut>ft&&(Ke=Ke|i.A.ABOVE),Ke===i.A.UNKNOWN&&(Ke=i.A.INTERSECTING),Ke}function y(){return[1/0,1/0,-1/0,-1/0]}function w(F,Y,le,ke,Ye){return Ye?(Ye[0]=F,Ye[1]=Y,Ye[2]=le,Ye[3]=ke,Ye):[F,Y,le,ke]}function S(F){return w(1/0,1/0,-1/0,-1/0,F)}function O(F,Y){const le=F[0],ke=F[1];return w(le,ke,le,ke,Y)}function R(F,Y){const le=S(Y);return ae(le,F)}function M(F,Y,le,ke,Ye){const ft=S(Ye);return _(ft,F,Y,le,ke)}function D(F,Y){const le=S(Y);return N(le,F)}function P(F,Y){return F[0]==Y[0]&&F[2]==Y[2]&&F[1]==Y[1]&&F[3]==Y[3]}function T(F,Y,le){return Math.abs(F[0]-Y[0])<le&&Math.abs(F[2]-Y[2])<le&&Math.abs(F[1]-Y[1])<le&&Math.abs(F[3]-Y[3])<le}function A(F,Y){return Y[0]<F[0]&&(F[0]=Y[0]),Y[2]>F[2]&&(F[2]=Y[2]),Y[1]<F[1]&&(F[1]=Y[1]),Y[3]>F[3]&&(F[3]=Y[3]),F}function j(F,Y){Y[0]<F[0]&&(F[0]=Y[0]),Y[0]>F[2]&&(F[2]=Y[0]),Y[1]<F[1]&&(F[1]=Y[1]),Y[1]>F[3]&&(F[3]=Y[1])}function ae(F,Y){for(let le=0,ke=Y.length;le<ke;++le)j(F,Y[le]);return F}function _(F,Y,le,ke,Ye){for(;le<ke;le+=Ye)W(F,Y[le],Y[le+1]);return F}function N(F,Y){for(let le=0,ke=Y.length;le<ke;++le)ae(F,Y[le]);return F}function W(F,Y,le){F[0]=Math.min(F[0],Y),F[1]=Math.min(F[1],le),F[2]=Math.max(F[2],Y),F[3]=Math.max(F[3],le)}function he(F,Y){let le;return le=Y(fe(F)),le||(le=Y(ve(F)),le)||(le=Y(Se(F)),le)||(le=Y(ye(F)),le)?le:!1}function me(F){let Y=0;return xe(F)||(Y=Ae(F)*Q(F)),Y}function fe(F){return[F[0],F[1]]}function ve(F){return[F[2],F[1]]}function ce(F){return[(F[0]+F[2])/2,(F[1]+F[3])/2]}function oe(F,Y){let le;return Y==="bottom-left"?le=fe(F):Y==="bottom-right"?le=ve(F):Y==="top-left"?le=ye(F):Y==="top-right"?le=Se(F):(0,l.v)(!1,13),le}function re(F,Y){const le=Math.min(F[0],Y[0]),ke=Math.min(F[1],Y[1]),Ye=Math.max(F[2],Y[2]),ft=Math.max(F[3],Y[3]);return(Ye-le)*(ft-ke)}function H(F,Y,le,ke,Ye){const[ft,wt,Ut,Ke,it,At,et,ee]=V(F,Y,le,ke);return w(Math.min(ft,Ut,it,et),Math.min(wt,Ke,At,ee),Math.max(ft,Ut,it,et),Math.max(wt,Ke,At,ee),Ye)}function V(F,Y,le,ke){const Ye=Y*ke[0]/2,ft=Y*ke[1]/2,wt=Math.cos(le),Ut=Math.sin(le),Ke=Ye*wt,it=Ye*Ut,At=ft*wt,et=ft*Ut,ee=F[0],I=F[1];return[ee-Ke+et,I-it-At,ee-Ke-et,I-it+At,ee+Ke-et,I+it+At,ee+Ke+et,I+it-At,ee-Ke+et,I-it-At]}function Q(F){return F[3]-F[1]}function Te(F,Y){const le=Re(F,Y);return me(le)}function Re(F,Y,le){const ke=le||y();return Ee(F,Y)?(F[0]>Y[0]?ke[0]=F[0]:ke[0]=Y[0],F[1]>Y[1]?ke[1]=F[1]:ke[1]=Y[1],F[2]<Y[2]?ke[2]=F[2]:ke[2]=Y[2],F[3]<Y[3]?ke[3]=F[3]:ke[3]=Y[3]):S(ke),ke}function ne(F){return Ae(F)+Q(F)}function pe(F){return[F[2]-F[0],F[3]-F[1]]}function ye(F){return[F[0],F[3]]}function Se(F){return[F[2],F[3]]}function Ae(F){return F[2]-F[0]}function Ee(F,Y){return F[0]<=Y[2]&&F[2]>=Y[0]&&F[1]<=Y[3]&&F[3]>=Y[1]}function xe(F){return F[2]<F[0]||F[3]<F[1]}function nt(F,Y){return Y?(Y[0]=F[0],Y[1]=F[1],Y[2]=F[2],Y[3]=F[3],Y):F}function Tt(F,Y){const le=(F[2]-F[0])/2*(Y-1),ke=(F[3]-F[1])/2*(Y-1);F[0]-=le,F[2]+=le,F[1]-=ke,F[3]+=ke}function pt(F,Y,le){let ke=!1;const Ye=b(F,Y),ft=b(F,le);if(Ye===i.A.INTERSECTING||ft===i.A.INTERSECTING)ke=!0;else{const wt=F[0],Ut=F[1],Ke=F[2],it=F[3],At=Y[0],et=Y[1],ee=le[0],I=le[1],K=(I-et)/(ee-At);let ue,De;ft&i.A.ABOVE&&!(Ye&i.A.ABOVE)&&(ue=ee-(I-it)/K,ke=ue>=wt&&ue<=Ke),!ke&&ft&i.A.RIGHT&&!(Ye&i.A.RIGHT)&&(De=I-(ee-Ke)*K,ke=De>=Ut&&De<=it),!ke&&ft&i.A.BELOW&&!(Ye&i.A.BELOW)&&(ue=ee-(I-Ut)/K,ke=ue>=wt&&ue<=Ke),!ke&&ft&i.A.LEFT&&!(Ye&i.A.LEFT)&&(De=I-(ee-wt)*K,ke=De>=Ut&&De<=it)}return ke}function Rt(F,Y,le,ke){if(xe(F))return S(le);let Ye=[];if(ke>1){const Ut=F[2]-F[0],Ke=F[3]-F[1];for(let it=0;it<ke;++it)Ye.push(F[0]+Ut*it/ke,F[1],F[2],F[1]+Ke*it/ke,F[2]-Ut*it/ke,F[3],F[0],F[3]-Ke*it/ke)}else Ye=[F[0],F[1],F[2],F[1],F[2],F[3],F[0],F[3]];Y(Ye,Ye,2);const ft=[],wt=[];for(let Ut=0,Ke=Ye.length;Ut<Ke;Ut+=2)ft.push(Ye[Ut]),wt.push(Ye[Ut+1]);return m(ft,wt,le)}function tt(F,Y){const le=Y.getExtent(),ke=ce(F);if(Y.canWrapX()&&(ke[0]<le[0]||ke[0]>=le[2])){const Ye=Ae(le),wt=Math.floor((ke[0]-le[0])/Ye)*Ye;F[0]-=wt,F[2]-=wt}return F}function U(F,Y){if(Y.canWrapX()){const le=Y.getExtent();if(!isFinite(F[0])||!isFinite(F[2]))return[[le[0],F[1],le[2],F[3]]];tt(F,Y);const ke=Ae(le);if(Ae(F)>ke)return[[le[0],F[1],le[2],F[3]]];if(F[0]<le[0])return[[F[0]+ke,F[1],le[2],F[3]],[le[0],F[1],F[2],F[3]]];if(F[2]>le[2])return[[F[0],F[1],le[2],F[3]],[le[0],F[1],F[2]-ke,F[3]]]}return[F]}},11580:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},98217:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>m,hX:()=>u});var i=t(4087),l=t(22796);class s{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(v,h){if(h){let d=h.dataProjection?(0,l.Jt)(h.dataProjection):this.readProjection(v);h.extent&&d&&d.getUnits()==="tile-pixels"&&(d=(0,l.Jt)(d),d.setWorldExtent(h.extent)),h={dataProjection:d,featureProjection:h.featureProjection}}return this.adaptOptions(h)}adaptOptions(v){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},v)}getType(){return(0,i.b0)()}readFeature(v,h){return(0,i.b0)()}readFeatures(v,h){return(0,i.b0)()}readGeometry(v,h){return(0,i.b0)()}readProjection(v){return(0,i.b0)()}writeFeature(v,h){return(0,i.b0)()}writeFeatures(v,h){return(0,i.b0)()}writeGeometry(v,h){return(0,i.b0)()}}const m=s;function u(p,v,h){const d=h?(0,l.Jt)(h.featureProjection):null,b=h?(0,l.Jt)(h.dataProjection):null;let y;if(d&&b&&!(0,l.tI)(d,b)?y=(v?p.clone():p).transform(v?d:b,v?b:d):y=p,v&&h&&h.decimals!==void 0){const w=Math.pow(10,h.decimals),S=function(O){for(let R=0,M=O.length;R<M;++R)O[R]=Math.round(O[R]*w)/w;return O};y===p&&(y=p.clone()),y.applyTransform(S)}return y}function f(p,v){const h=v?getProjection(v.featureProjection):null,d=v?getProjection(v.dataProjection):null;return h&&d&&!equivalentProjection(h,d)?transformExtent(p,d,h):p}},11365:(J,g,t)=>{"use strict";t.d(g,{A:()=>H});var i=t(86717),l=t(34338),s=t(98217),m=t(4087);class u extends s.Ay{constructor(){super()}getType(){return"json"}readFeature(Q,Te){return this.readFeatureFromObject(f(Q),this.getReadOptions(Q,Te))}readFeatures(Q,Te){return this.readFeaturesFromObject(f(Q),this.getReadOptions(Q,Te))}readFeatureFromObject(Q,Te){return(0,m.b0)()}readFeaturesFromObject(Q,Te){return(0,m.b0)()}readGeometry(Q,Te){return this.readGeometryFromObject(f(Q),this.getReadOptions(Q,Te))}readGeometryFromObject(Q,Te){return(0,m.b0)()}readProjection(Q){return this.readProjectionFromObject(f(Q))}readProjectionFromObject(Q){return(0,m.b0)()}writeFeature(Q,Te){return JSON.stringify(this.writeFeatureObject(Q,Te))}writeFeatureObject(Q,Te){return(0,m.b0)()}writeFeatures(Q,Te){return JSON.stringify(this.writeFeaturesObject(Q,Te))}writeFeaturesObject(Q,Te){return(0,m.b0)()}writeGeometry(Q,Te){return JSON.stringify(this.writeGeometryObject(Q,Te))}writeGeometryObject(Q,Te){return(0,m.b0)()}}function f(V){if(typeof V=="string"){const Q=JSON.parse(V);return Q||null}return V!==null?V:null}const p=u;var v=t(11217),h=t(96702),d=t(30503),b=t(83123),y=t(44294),w=t(71064),S=t(90588),O=t(22796),R=t(43530);class M extends p{constructor(Q){Q=Q||{},super(),this.dataProjection=(0,O.Jt)(Q.dataProjection?Q.dataProjection:"EPSG:4326"),Q.featureProjection&&(this.defaultFeatureProjection=(0,O.Jt)(Q.featureProjection)),this.geometryName_=Q.geometryName,this.extractGeometryName_=Q.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(Q,Te){let Re=null;Q.type==="Feature"?Re=Q:Re={type:"Feature",geometry:Q,properties:null};const ne=D(Re.geometry,Te),pe=new i.A;return this.geometryName_?pe.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in Re!==void 0&&pe.setGeometryName(Re.geometry_name),pe.setGeometry(ne),"id"in Re&&pe.setId(Re.id),Re.properties&&pe.setProperties(Re.properties,!0),pe}readFeaturesFromObject(Q,Te){const Re=Q;let ne=null;if(Re.type==="FeatureCollection"){const pe=Q;ne=[];const ye=pe.features;for(let Se=0,Ae=ye.length;Se<Ae;++Se)ne.push(this.readFeatureFromObject(ye[Se],Te))}else ne=[this.readFeatureFromObject(Q,Te)];return ne}readGeometryFromObject(Q,Te){return D(Q,Te)}readProjectionFromObject(Q){const Te=Q.crs;let Re;return Te?Te.type=="name"?Re=(0,O.Jt)(Te.properties.name):Te.type==="EPSG"?Re=(0,O.Jt)("EPSG:"+Te.properties.code):(0,S.v)(!1,36):Re=this.dataProjection,Re}writeFeatureObject(Q,Te){Te=this.adaptOptions(Te);const Re={type:"Feature",geometry:null,properties:null},ne=Q.getId();if(ne!==void 0&&(Re.id=ne),!Q.hasProperties())return Re;const pe=Q.getProperties(),ye=Q.getGeometry();return ye&&(Re.geometry=W(ye,Te),delete pe[Q.getGeometryName()]),(0,R.p)(pe)||(Re.properties=pe),Re}writeFeaturesObject(Q,Te){Te=this.adaptOptions(Te);const Re=[];for(let ne=0,pe=Q.length;ne<pe;++ne)Re.push(this.writeFeatureObject(Q[ne],Te));return{type:"FeatureCollection",features:Re}}writeGeometryObject(Q,Te){return W(Q,this.adaptOptions(Te))}}function D(V,Q){if(!V)return null;let Te;switch(V.type){case"Point":{Te=T(V);break}case"LineString":{Te=A(V);break}case"Polygon":{Te=N(V);break}case"MultiPoint":{Te=ae(V);break}case"MultiLineString":{Te=j(V);break}case"MultiPolygon":{Te=_(V);break}case"GeometryCollection":{Te=P(V);break}default:throw new Error("Unsupported GeoJSON type: "+V.type)}return(0,s.hX)(Te,!1,Q)}function P(V,Q){const Te=V.geometries.map(function(Re){return D(Re,Q)});return new l.A(Te)}function T(V){return new y.A(V.coordinates)}function A(V){return new v.A(V.coordinates)}function j(V){return new h.A(V.coordinates)}function ae(V){return new d.A(V.coordinates)}function _(V){return new b.A(V.coordinates)}function N(V){return new w.Ay(V.coordinates)}function W(V,Q){V=(0,s.hX)(V,!0,Q);const Te=V.getType();let Re;switch(Te){case"Point":{Re=oe(V,Q);break}case"LineString":{Re=me(V,Q);break}case"Polygon":{Re=re(V,Q);break}case"MultiPoint":{Re=ve(V,Q);break}case"MultiLineString":{Re=fe(V,Q);break}case"MultiPolygon":{Re=ce(V,Q);break}case"GeometryCollection":{Re=he(V,Q);break}case"Circle":{Re={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+Te)}return Re}function he(V,Q){return Q=Object.assign({},Q),delete Q.featureProjection,{type:"GeometryCollection",geometries:V.getGeometriesArray().map(function(Re){return W(Re,Q)})}}function me(V,Q){return{type:"LineString",coordinates:V.getCoordinates()}}function fe(V,Q){return{type:"MultiLineString",coordinates:V.getCoordinates()}}function ve(V,Q){return{type:"MultiPoint",coordinates:V.getCoordinates()}}function ce(V,Q){let Te;return Q&&(Te=Q.rightHanded),{type:"MultiPolygon",coordinates:V.getCoordinates(Te)}}function oe(V,Q){return{type:"Point",coordinates:V.getCoordinates()}}function re(V,Q){let Te;return Q&&(Te=Q.rightHanded),{type:"Polygon",coordinates:V.getCoordinates(Te)}}const H=M},64136:(J,g,t)=>{"use strict";t.d(g,{A:()=>H});var i=t(86717),l=t(34338),s=t(11217),m=t(96702),u=t(30503),f=t(83123),p=t(44294),v=t(71064),h=t(98217),d=t(4087);class b extends h.Ay{constructor(){super()}getType(){return"text"}readFeature(Q,Te){return this.readFeatureFromText(y(Q),this.adaptOptions(Te))}readFeatureFromText(Q,Te){return(0,d.b0)()}readFeatures(Q,Te){return this.readFeaturesFromText(y(Q),this.adaptOptions(Te))}readFeaturesFromText(Q,Te){return(0,d.b0)()}readGeometry(Q,Te){return this.readGeometryFromText(y(Q),this.adaptOptions(Te))}readGeometryFromText(Q,Te){return(0,d.b0)()}readProjection(Q){return this.readProjectionFromText(y(Q))}readProjectionFromText(Q){return this.dataProjection}writeFeature(Q,Te){return this.writeFeatureText(Q,this.adaptOptions(Te))}writeFeatureText(Q,Te){return(0,d.b0)()}writeFeatures(Q,Te){return this.writeFeaturesText(Q,this.adaptOptions(Te))}writeFeaturesText(Q,Te){return(0,d.b0)()}writeGeometry(Q,Te){return this.writeGeometryText(Q,this.adaptOptions(Te))}writeGeometryText(Q,Te){return(0,d.b0)()}}function y(V){return typeof V=="string"?V:""}const w=b,S={POINT:p.A,LINESTRING:s.A,POLYGON:v.Ay,MULTIPOINT:u.A,MULTILINESTRING:m.A,MULTIPOLYGON:f.A},O="EMPTY",R="Z",M="M",D="ZM",P={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},T={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class A{constructor(Q){this.wkt=Q,this.index_=-1}isAlpha_(Q){return Q>="a"&&Q<="z"||Q>="A"&&Q<="Z"}isNumeric_(Q,Te){return Te=Te!==void 0?Te:!1,Q>="0"&&Q<="9"||Q=="."&&!Te}isWhiteSpace_(Q){return Q==" "||Q==" "||Q=="\r"||Q==` `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const Q=this.nextChar_(),Te=this.index_;let Re=Q,ne;if(Q=="(")ne=P.LEFT_PAREN;else if(Q==",")ne=P.COMMA;else if(Q==")")ne=P.RIGHT_PAREN;else if(this.isNumeric_(Q)||Q=="-")ne=P.NUMBER,Re=this.readNumber_();else if(this.isAlpha_(Q))ne=P.TEXT,Re=this.readText_();else{if(this.isWhiteSpace_(Q))return this.nextToken();if(Q==="")ne=P.EOF;else throw new Error("Unexpected character: "+Q)}return{position:Te,value:Re,type:ne}}readNumber_(){let Q;const Te=this.index_;let Re=!1,ne=!1;do Q=="."?Re=!0:(Q=="e"||Q=="E")&&(ne=!0),Q=this.nextChar_();while(this.isNumeric_(Q,Re)||!ne&&(Q=="e"||Q=="E")||ne&&(Q=="-"||Q=="+"));return parseFloat(this.wkt.substring(Te,this.index_--))}readText_(){let Q;const Te=this.index_;do Q=this.nextChar_();while(this.isAlpha_(Q));return this.wkt.substring(Te,this.index_--).toUpperCase()}}class j{constructor(Q){this.lexer_=Q,this.token_={position:0,type:P.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(Q){return this.token_.type==Q}match(Q){const Te=this.isTokenType(Q);return Te&&this.consume_(),Te}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let Q="XY";const Te=this.token_;if(this.isTokenType(P.TEXT)){const Re=Te.value;Re===R?Q="XYZ":Re===M?Q="XYM":Re===D&&(Q="XYZM"),Q!=="XY"&&this.consume_()}return Q}parseGeometryCollectionText_(){if(this.match(P.LEFT_PAREN)){const Q=[];do Q.push(this.parseGeometry_());while(this.match(P.COMMA));if(this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(P.LEFT_PAREN)){const Q=this.parsePoint_();if(this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(P.LEFT_PAREN)){const Q=this.parsePointList_();if(this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(P.LEFT_PAREN)){const Q=this.parseLineStringTextList_();if(this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(P.LEFT_PAREN)){let Q;if(this.token_.type==P.LEFT_PAREN?Q=this.parsePointTextList_():Q=this.parsePointList_(),this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(P.LEFT_PAREN)){const Q=this.parseLineStringTextList_();if(this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(P.LEFT_PAREN)){const Q=this.parsePolygonTextList_();if(this.match(P.RIGHT_PAREN))return Q}throw new Error(this.formatErrorMessage_())}parsePoint_(){const Q=[],Te=this.layout_.length;for(let Re=0;Re<Te;++Re){const ne=this.token_;if(this.match(P.NUMBER))Q.push(ne.value);else break}if(Q.length==Te)return Q;throw new Error(this.formatErrorMessage_())}parsePointList_(){const Q=[this.parsePoint_()];for(;this.match(P.COMMA);)Q.push(this.parsePoint_());return Q}parsePointTextList_(){const Q=[this.parsePointText_()];for(;this.match(P.COMMA);)Q.push(this.parsePointText_());return Q}parseLineStringTextList_(){const Q=[this.parseLineStringText_()];for(;this.match(P.COMMA);)Q.push(this.parseLineStringText_());return Q}parsePolygonTextList_(){const Q=[this.parsePolygonText_()];for(;this.match(P.COMMA);)Q.push(this.parsePolygonText_());return Q}isEmptyGeometry_(){const Q=this.isTokenType(P.TEXT)&&this.token_.value==O;return Q&&this.consume_(),Q}formatErrorMessage_(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}parseGeometry_(){const Q=this.token_;if(this.match(P.TEXT)){const Te=Q.value;this.layout_=this.parseGeometryLayout_();const Re=this.isEmptyGeometry_();if(Te=="GEOMETRYCOLLECTION"){if(Re)return new l.A([]);const ye=this.parseGeometryCollectionText_();return new l.A(ye)}const ne=S[Te];if(!ne)throw new Error("Invalid geometry type: "+Te);let pe;if(Re)Te=="POINT"?pe=[NaN,NaN]:pe=[];else switch(Te){case"POINT":{pe=this.parsePointText_();break}case"LINESTRING":{pe=this.parseLineStringText_();break}case"POLYGON":{pe=this.parsePolygonText_();break}case"MULTIPOINT":{pe=this.parseMultiPointText_();break}case"MULTILINESTRING":{pe=this.parseMultiLineStringText_();break}case"MULTIPOLYGON":{pe=this.parseMultiPolygonText_();break}default:break}return new ne(pe,this.layout_)}throw new Error(this.formatErrorMessage_())}}class ae extends w{constructor(Q){super(),Q=Q||{},this.splitCollection_=Q.splitCollection!==void 0?Q.splitCollection:!1}parse_(Q){const Te=new A(Q);return new j(Te).parse()}readFeatureFromText(Q,Te){const Re=this.readGeometryFromText(Q,Te),ne=new i.A;return ne.setGeometry(Re),ne}readFeaturesFromText(Q,Te){let Re=[];const ne=this.readGeometryFromText(Q,Te);this.splitCollection_&&ne.getType()=="GeometryCollection"?Re=ne.getGeometriesArray():Re=[ne];const pe=[];for(let ye=0,Se=Re.length;ye<Se;++ye){const Ae=new i.A;Ae.setGeometry(Re[ye]),pe.push(Ae)}return pe}readGeometryFromText(Q,Te){const Re=this.parse_(Q);return(0,h.hX)(Re,!1,Te)}writeFeatureText(Q,Te){const Re=Q.getGeometry();return Re?this.writeGeometryText(Re,Te):""}writeFeaturesText(Q,Te){if(Q.length==1)return this.writeFeatureText(Q[0],Te);const Re=[];for(let pe=0,ye=Q.length;pe<ye;++pe)Re.push(Q[pe].getGeometry());const ne=new l.A(Re);return this.writeGeometryText(ne,Te)}writeGeometryText(Q,Te){return re((0,h.hX)(Q,!0,Te))}}function _(V){const Q=V.getCoordinates();return Q.length===0?"":Q.join(" ")}function N(V){const Q=[],Te=V.getPoints();for(let Re=0,ne=Te.length;Re<ne;++Re)Q.push("("+_(Te[Re])+")");return Q.join(",")}function W(V){const Q=[],Te=V.getGeometries();for(let Re=0,ne=Te.length;Re<ne;++Re)Q.push(re(Te[Re]));return Q.join(",")}function he(V){const Q=V.getCoordinates(),Te=[];for(let Re=0,ne=Q.length;Re<ne;++Re)Te.push(Q[Re].join(" "));return Te.join(",")}function me(V){const Q=[],Te=V.getLineStrings();for(let Re=0,ne=Te.length;Re<ne;++Re)Q.push("("+he(Te[Re])+")");return Q.join(",")}function fe(V){const Q=[],Te=V.getLinearRings();for(let Re=0,ne=Te.length;Re<ne;++Re)Q.push("("+he(Te[Re])+")");return Q.join(",")}function ve(V){const Q=[],Te=V.getPolygons();for(let Re=0,ne=Te.length;Re<ne;++Re)Q.push("("+fe(Te[Re])+")");return Q.join(",")}function ce(V){const Q=V.getLayout();let Te="";return(Q==="XYZ"||Q==="XYZM")&&(Te+=R),(Q==="XYM"||Q==="XYZM")&&(Te+=M),Te}const oe={Point:_,LineString:he,Polygon:fe,MultiPoint:N,MultiLineString:me,MultiPolygon:ve,GeometryCollection:W};function re(V){const Q=V.getType(),Te=oe[Q],Re=Te(V);let ne=T[Q];if(typeof V.getFlatCoordinates=="function"){const pe=ce(V);pe.length>0&&(ne+=" "+pe)}return Re.length===0?ne+" "+O:ne+"("+Re+")"}const H=ae},74238:(J,g,t)=>{"use strict";t.d(g,{B4:()=>u,W8:()=>s,rT:()=>l,tV:()=>m});var i=t(66514);function l(){return!0}function s(){return!1}function m(){}function u(p){let v=!1,h,d,b;return function(){const y=Array.prototype.slice.call(arguments);return(!v||this!==b||!(0,i.aI)(y,d))&&(v=!0,b=this,d=y,h=p.apply(this,arguments)),h}}function f(p){function v(){let h;try{h=p()}catch(d){return Promise.reject(d)}return h instanceof Promise?h:Promise.resolve(h)}return v()}},27430:(J,g,t)=>{"use strict";t.d(g,{A:()=>d});var i=t(34120),l=t(4087),s=t(9703),m=t(70915),u=t(22796),f=t(74238),p=t(87622);const v=(0,s.vt)();class h extends i.A{constructor(){super(),this.extent_=(0,m.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,f.B4)(function(y,w,S){if(!S)return this.getSimplifiedGeometry(w);const O=this.clone();return O.applyTransform(S),O.getSimplifiedGeometry(w)})}simplifyTransformed(y,w){return this.simplifyTransformedInternal(this.getRevision(),y,w)}clone(){return(0,l.b0)()}closestPointXY(y,w,S,O){return(0,l.b0)()}containsXY(y,w){const S=this.getClosestPoint([y,w]);return S[0]===y&&S[1]===w}getClosestPoint(y,w){return w=w||[NaN,NaN],this.closestPointXY(y[0],y[1],w,1/0),w}intersectsCoordinate(y){return this.containsXY(y[0],y[1])}computeExtent(y){return(0,l.b0)()}getExtent(y){if(this.extentRevision_!=this.getRevision()){const w=this.computeExtent(this.extent_);(isNaN(w[0])||isNaN(w[1]))&&(0,m.aZ)(w),this.extentRevision_=this.getRevision()}return(0,m.$u)(this.extent_,y)}rotate(y,w){(0,l.b0)()}scale(y,w,S){(0,l.b0)()}simplify(y){return this.getSimplifiedGeometry(y*y)}getSimplifiedGeometry(y){return(0,l.b0)()}getType(){return(0,l.b0)()}applyTransform(y){(0,l.b0)()}intersectsExtent(y){return(0,l.b0)()}translate(y,w){(0,l.b0)()}transform(y,w){const S=(0,u.Jt)(y),O=S.getUnits()=="tile-pixels"?function(R,M,D){const P=S.getExtent(),T=S.getWorldExtent(),A=(0,m.Oq)(T)/(0,m.Oq)(P);return(0,s.Zz)(v,T[0],T[3],A,-A,0,0,0),(0,p.Rc)(R,0,R.length,D,v,M),(0,u.RG)(S,w)(R,M,D)}:(0,u.RG)(S,w);return this.applyTransform(O),this}}const d=h},34338:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=t(6837),l=t(27430),s=t(70915),m=t(9438);class u extends l.A{constructor(h){super(),this.geometries_=h||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(m.JH),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let h=0,d=this.geometries_.length;h<d;++h)this.changeEventsKeys_.push((0,m.KT)(this.geometries_[h],i.A.CHANGE,this.changed,this))}clone(){const h=new u(null);return h.setGeometries(this.geometries_),h.applyProperties(this),h}closestPointXY(h,d,b,y){if(y<(0,s.Ld)(this.getExtent(),h,d))return y;const w=this.geometries_;for(let S=0,O=w.length;S<O;++S)y=w[S].closestPointXY(h,d,b,y);return y}containsXY(h,d){const b=this.geometries_;for(let y=0,w=b.length;y<w;++y)if(b[y].containsXY(h,d))return!0;return!1}computeExtent(h){(0,s.aZ)(h);const d=this.geometries_;for(let b=0,y=d.length;b<y;++b)(0,s.X$)(h,d[b].getExtent());return h}getGeometries(){return f(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let h=[];const d=this.geometries_;for(let b=0,y=d.length;b<y;++b)d[b].getType()===this.getType()?h=h.concat(d[b].getGeometriesArrayRecursive()):h.push(d[b]);return h}getSimplifiedGeometry(h){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),h<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&h<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const d=[],b=this.geometries_;let y=!1;for(let w=0,S=b.length;w<S;++w){const O=b[w],R=O.getSimplifiedGeometry(h);d.push(R),R!==O&&(y=!0)}if(y){const w=new u(null);return w.setGeometriesArray(d),w}return this.simplifiedGeometryMaxMinSquaredTolerance=h,this}getType(){return"GeometryCollection"}intersectsExtent(h){const d=this.geometries_;for(let b=0,y=d.length;b<y;++b)if(d[b].intersectsExtent(h))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(h,d){const b=this.geometries_;for(let y=0,w=b.length;y<w;++y)b[y].rotate(h,d);this.changed()}scale(h,d,b){b||(b=(0,s.q1)(this.getExtent()));const y=this.geometries_;for(let w=0,S=y.length;w<S;++w)y[w].scale(h,d,b);this.changed()}setGeometries(h){this.setGeometriesArray(f(h))}setGeometriesArray(h){this.unlistenGeometriesChange_(),this.geometries_=h,this.listenGeometriesChange_(),this.changed()}applyTransform(h){const d=this.geometries_;for(let b=0,y=d.length;b<y;++b)d[b].applyTransform(h);this.changed()}translate(h,d){const b=this.geometries_;for(let y=0,w=b.length;y<w;++y)b[y].translate(h,d);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function f(v){const h=[];for(let d=0,b=v.length;d<b;++d)h.push(v[d].clone());return h}const p=u},11217:(J,g,t)=>{"use strict";t.d(g,{A:()=>w});var i=t(62096),l=t(63953),s=t(70915),m=t(92497),u=t(83671),f=t(66514),p=t(91374),v=t(78742),h=t(79969),d=t(4350),b=t(50904);class y extends i.Ay{constructor(O,R){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,R!==void 0&&!Array.isArray(O[0])?this.setFlatCoordinates(R,O):this.setCoordinates(O,R)}appendCoordinate(O){this.flatCoordinates?(0,f.X$)(this.flatCoordinates,O):this.flatCoordinates=O.slice(),this.changed()}clone(){const O=new y(this.flatCoordinates.slice(),this.layout);return O.applyProperties(this),O}closestPointXY(O,R,M,D){return D<(0,s.Ld)(this.getExtent(),O,R)?D:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,O,R,M,D))}forEachSegment(O){return(0,p.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,O)}getCoordinateAtM(O,R){return this.layout!="XYM"&&this.layout!="XYZM"?null:(R=R!==void 0?R:!1,(0,h.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,O,R))}getCoordinates(){return(0,v.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(O,R){return(0,h.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,O,R,this.stride)}getLength(){return(0,b.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(O){const R=[];return R.length=(0,u.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,O,R,0),new y(R,"XY")}getType(){return"LineString"}intersectsExtent(O){return(0,d.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,O)}setCoordinates(O,R){this.setLayout(R,O,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,m.z2)(this.flatCoordinates,0,O,this.stride),this.changed()}}const w=y},96702:(J,g,t)=>{"use strict";t.d(g,{A:()=>y});var i=t(11217),l=t(62096),s=t(63953),m=t(70915),u=t(92497),f=t(83671),p=t(66514),v=t(78742),h=t(79969),d=t(4350);class b extends l.Ay{constructor(S,O,R){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(S[0]))this.setCoordinates(S,O);else if(O!==void 0&&R)this.setFlatCoordinates(O,S),this.ends_=R;else{let M=this.getLayout();const D=S,P=[],T=[];for(let A=0,j=D.length;A<j;++A){const ae=D[A];A===0&&(M=ae.getLayout()),(0,p.X$)(P,ae.getFlatCoordinates()),T.push(P.length)}this.setFlatCoordinates(M,P),this.ends_=T}}appendLineString(S){this.flatCoordinates?(0,p.X$)(this.flatCoordinates,S.getFlatCoordinates().slice()):this.flatCoordinates=S.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const S=new b(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return S.applyProperties(this),S}closestPointXY(S,O,R,M){return M<(0,m.Ld)(this.getExtent(),S,O)?M:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,S,O,R,M))}getCoordinateAtM(S,O,R){return this.layout!="XYM"&&this.layout!="XYZM"||this.flatCoordinates.length===0?null:(O=O!==void 0?O:!1,R=R!==void 0?R:!1,(0,h.L8)(this.flatCoordinates,0,this.ends_,this.stride,S,O,R))}getCoordinates(){return(0,v.cD)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(S){return S<0||this.ends_.length<=S?null:new i.A(this.flatCoordinates.slice(S===0?0:this.ends_[S-1],this.ends_[S]),this.layout)}getLineStrings(){const S=this.flatCoordinates,O=this.ends_,R=this.layout,M=[];let D=0;for(let P=0,T=O.length;P<T;++P){const A=O[P],j=new i.A(S.slice(D,A),R);M.push(j),D=A}return M}getFlatMidpoints(){const S=[],O=this.flatCoordinates;let R=0;const M=this.ends_,D=this.stride;for(let P=0,T=M.length;P<T;++P){const A=M[P],j=(0,h.SH)(O,R,A,D,.5);(0,p.X$)(S,j),R=A}return S}getSimplifiedGeometryInternal(S){const O=[],R=[];return O.length=(0,f.AL)(this.flatCoordinates,0,this.ends_,this.stride,S,O,0,R),new b(O,"XY",R)}getType(){return"MultiLineString"}intersectsExtent(S){return(0,d.fB)(this.flatCoordinates,0,this.ends_,this.stride,S)}setCoordinates(S,O){this.setLayout(O,S,2),this.flatCoordinates||(this.flatCoordinates=[]);const R=(0,u.KG)(this.flatCoordinates,0,S,this.stride,this.ends_);this.flatCoordinates.length=R.length===0?0:R[R.length-1],this.changed()}}const y=b},30503:(J,g,t)=>{"use strict";t.d(g,{A:()=>h});var i=t(44294),l=t(62096),s=t(70915),m=t(92497),u=t(66514),f=t(78742),p=t(61597);class v extends l.Ay{constructor(b,y){super(),y&&!Array.isArray(b[0])?this.setFlatCoordinates(y,b):this.setCoordinates(b,y)}appendPoint(b){this.flatCoordinates?(0,u.X$)(this.flatCoordinates,b.getFlatCoordinates()):this.flatCoordinates=b.getFlatCoordinates().slice(),this.changed()}clone(){const b=new v(this.flatCoordinates.slice(),this.layout);return b.applyProperties(this),b}closestPointXY(b,y,w,S){if(S<(0,s.Ld)(this.getExtent(),b,y))return S;const O=this.flatCoordinates,R=this.stride;for(let M=0,D=O.length;M<D;M+=R){const P=(0,p.hG)(b,y,O[M],O[M+1]);if(P<S){S=P;for(let T=0;T<R;++T)w[T]=O[M+T];w.length=R}}return S}getCoordinates(){return(0,f.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(b){const y=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return b<0||y<=b?null:new i.A(this.flatCoordinates.slice(b*this.stride,(b+1)*this.stride),this.layout)}getPoints(){const b=this.flatCoordinates,y=this.layout,w=this.stride,S=[];for(let O=0,R=b.length;O<R;O+=w){const M=new i.A(b.slice(O,O+w),y);S.push(M)}return S}getType(){return"MultiPoint"}intersectsExtent(b){const y=this.flatCoordinates,w=this.stride;for(let S=0,O=y.length;S<O;S+=w){const R=y[S],M=y[S+1];if((0,s.Rj)(b,R,M))return!0}return!1}setCoordinates(b,y){this.setLayout(y,b,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,m.z2)(this.flatCoordinates,0,b,this.stride),this.changed()}}const h=v},83123:(J,g,t)=>{"use strict";t.d(g,{A:()=>M});var i=t(30503),l=t(71064),s=t(62096),m=t(63953),u=t(70915),f=t(92497),p=t(66514),v=t(22616),h=t(78742),d=t(4350),b=t(83402),y=t(28609);function w(D,P,T,A){const j=[];let ae=(0,u.S5)();for(let _=0,N=T.length;_<N;++_){const W=T[_];ae=(0,u.Vy)(D,P,W[0],A),j.push((ae[0]+ae[2])/2,(ae[1]+ae[3])/2),P=W[W.length-1]}return j}var S=t(52845),O=t(83671);class R extends s.Ay{constructor(P,T,A){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!A&&!Array.isArray(P[0])){let j=this.getLayout();const ae=P,_=[],N=[];for(let W=0,he=ae.length;W<he;++W){const me=ae[W];W===0&&(j=me.getLayout());const fe=_.length,ve=me.getEnds();for(let ce=0,oe=ve.length;ce<oe;++ce)ve[ce]+=fe;(0,p.X$)(_,me.getFlatCoordinates()),N.push(ve)}T=j,P=_,A=N}T!==void 0&&A?(this.setFlatCoordinates(T,P),this.endss_=A):this.setCoordinates(P,T)}appendPolygon(P){let T;if(!this.flatCoordinates)this.flatCoordinates=P.getFlatCoordinates().slice(),T=P.getEnds().slice(),this.endss_.push();else{const A=this.flatCoordinates.length;(0,p.X$)(this.flatCoordinates,P.getFlatCoordinates()),T=P.getEnds().slice();for(let j=0,ae=T.length;j<ae;++j)T[j]+=A}this.endss_.push(T),this.changed()}clone(){const P=this.endss_.length,T=new Array(P);for(let j=0;j<P;++j)T[j]=this.endss_[j].slice();const A=new R(this.flatCoordinates.slice(),this.layout,T);return A.applyProperties(this),A}closestPointXY(P,T,A,j){return j<(0,u.Ld)(this.getExtent(),P,T)?j:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,m.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,m.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,P,T,A,j))}containsXY(P,T){return(0,S.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,P,T)}getArea(){return(0,y.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(P){let T;return P!==void 0?(T=this.getOrientedFlatCoordinates().slice(),(0,b.NK)(T,0,this.endss_,this.stride,P)):T=this.flatCoordinates,(0,h.Dz)(T,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const P=w(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,v.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,P),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new i.A(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const P=this.flatCoordinates;(0,b.mb)(P,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=P:(this.orientedFlatCoordinates_=P.slice(),this.orientedFlatCoordinates_.length=(0,b.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(P){const T=[],A=[];return T.length=(0,O.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(P),T,0,A),new R(T,"XY",A)}getPolygon(P){if(P<0||this.endss_.length<=P)return null;let T;if(P===0)T=0;else{const ae=this.endss_[P-1];T=ae[ae.length-1]}const A=this.endss_[P].slice(),j=A[A.length-1];if(T!==0)for(let ae=0,_=A.length;ae<_;++ae)A[ae]-=T;return new l.Ay(this.flatCoordinates.slice(T,j),this.layout,A)}getPolygons(){const P=this.layout,T=this.flatCoordinates,A=this.endss_,j=[];let ae=0;for(let _=0,N=A.length;_<N;++_){const W=A[_].slice(),he=W[W.length-1];if(ae!==0)for(let fe=0,ve=W.length;fe<ve;++fe)W[fe]-=ae;const me=new l.Ay(T.slice(ae,he),P,W);j.push(me),ae=he}return j}getType(){return"MultiPolygon"}intersectsExtent(P){return(0,d.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,P)}setCoordinates(P,T){this.setLayout(T,P,3),this.flatCoordinates||(this.flatCoordinates=[]);const A=(0,f.d6)(this.flatCoordinates,0,P,this.stride,this.endss_);if(A.length===0)this.flatCoordinates.length=0;else{const j=A[A.length-1];this.flatCoordinates.length=j.length===0?0:j[j.length-1]}this.changed()}}const M=R},44294:(J,g,t)=>{"use strict";t.d(g,{A:()=>f});var i=t(62096),l=t(70915),s=t(92497),m=t(61597);class u extends i.Ay{constructor(v,h){super(),this.setCoordinates(v,h)}clone(){const v=new u(this.flatCoordinates.slice(),this.layout);return v.applyProperties(this),v}closestPointXY(v,h,d,b){const y=this.flatCoordinates,w=(0,m.hG)(v,h,y[0],y[1]);if(w<b){const S=this.stride;for(let O=0;O<S;++O)d[O]=y[O];return d.length=S,w}return b}getCoordinates(){return this.flatCoordinates?this.flatCoordinates.slice():[]}computeExtent(v){return(0,l.dP)(this.flatCoordinates,v)}getType(){return"Point"}intersectsExtent(v){return(0,l.Rj)(v,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(v,h){this.setLayout(h,v,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s._n)(this.flatCoordinates,0,v,this.stride),this.changed()}}const f=u},71064:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>D,nD:()=>A,VY:()=>T});var i=t(62096),l=t(63953),s=t(70915),m=t(92497),u=t(83671),f=t(78742),p=t(28609);class v extends i.Ay{constructor(_,N){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,N!==void 0&&!Array.isArray(_[0])?this.setFlatCoordinates(N,_):this.setCoordinates(_,N)}clone(){return new v(this.flatCoordinates.slice(),this.layout)}closestPointXY(_,N,W,he){return he<(0,s.Ld)(this.getExtent(),_,N)?he:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,_,N,W,he))}getArea(){return(0,p.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,f.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(_){const N=[];return N.length=(0,u.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,_,N,0),new v(N,"XY")}getType(){return"LinearRing"}intersectsExtent(_){return!1}setCoordinates(_,N){this.setLayout(N,_,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,m.z2)(this.flatCoordinates,0,_,this.stride),this.changed()}}const h=v;var d=t(44294),b=t(66514),y=t(22616),w=t(4350),S=t(83402),O=t(52845),R=t(61597);class M extends i.Ay{constructor(_,N,W){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,N!==void 0&&W?(this.setFlatCoordinates(N,_),this.ends_=W):this.setCoordinates(_,N)}appendLinearRing(_){this.flatCoordinates?(0,b.X$)(this.flatCoordinates,_.getFlatCoordinates()):this.flatCoordinates=_.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const _=new M(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return _.applyProperties(this),_}closestPointXY(_,N,W,he){return he<(0,s.Ld)(this.getExtent(),_,N)?he:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,_,N,W,he))}containsXY(_,N){return(0,O.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_,N)}getArea(){return(0,p.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(_){let N;return _!==void 0?(N=this.getOrientedFlatCoordinates().slice(),(0,S.ug)(N,0,this.ends_,this.stride,_)):N=this.flatCoordinates,(0,f.cD)(N,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const _=(0,s.q1)(this.getExtent());this.flatInteriorPoint_=(0,y.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(_){return _<0||this.ends_.length<=_?null:new h(this.flatCoordinates.slice(_===0?0:this.ends_[_-1],this.ends_[_]),this.layout)}getLinearRings(){const _=this.layout,N=this.flatCoordinates,W=this.ends_,he=[];let me=0;for(let fe=0,ve=W.length;fe<ve;++fe){const ce=W[fe],oe=new h(N.slice(me,ce),_);he.push(oe),me=ce}return he}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const _=this.flatCoordinates;(0,S.PA)(_,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=_:(this.orientedFlatCoordinates_=_.slice(),this.orientedFlatCoordinates_.length=(0,S.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(_){const N=[],W=[];return N.length=(0,u.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(_),N,0,W),new M(N,"XY",W)}getType(){return"Polygon"}intersectsExtent(_){return(0,w.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_)}setCoordinates(_,N){this.setLayout(N,_,2),this.flatCoordinates||(this.flatCoordinates=[]);const W=(0,m.KG)(this.flatCoordinates,0,_,this.stride,this.ends_);this.flatCoordinates.length=W.length===0?0:W[W.length-1],this.changed()}}const D=M;function P(ae,_,N,W){N=N||32;const he=[];for(let me=0;me<N;++me)extend(he,sphereOffset(ae,_,2*Math.PI*me/N,W));return he.push(he[0],he[1]),new M(he,"XY",[he.length])}function T(ae){const _=ae[0],N=ae[1],W=ae[2],he=ae[3],me=[_,N,_,he,W,he,W,N,_,N];return new M(me,"XY",[me.length])}function A(ae,_,N){_=_||32;const W=ae.getStride(),he=ae.getLayout(),me=ae.getCenter(),fe=W*(_+1),ve=new Array(fe);for(let re=0;re<fe;re+=W){ve[re]=0,ve[re+1]=0;for(let H=2;H<W;H++)ve[re+H]=me[H]}const ce=[ve.length],oe=new M(ve,he,ce);return j(oe,me,ae.getRadius(),N),oe}function j(ae,_,N,W){const he=ae.getFlatCoordinates(),me=ae.getStride(),fe=he.length/me-1,ve=W||0;for(let ce=0;ce<=fe;++ce){const oe=ce*me,re=ve+(0,R.xP)(ce,fe)*2*Math.PI/fe;he[oe]=_[0]+N*Math.cos(re),he[oe+1]=_[1]+N*Math.sin(re)}ae.changed()}},62096:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>h,dn:()=>p,v7:()=>v});var i=t(27430),l=t(4087),s=t(70915),m=t(87622);class u extends i.A{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(b){return(0,s.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,b)}getCoordinates(){return(0,l.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(b){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),b<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&b<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const y=this.getSimplifiedGeometryInternal(b);return y.getFlatCoordinates().length<this.flatCoordinates.length?y:(this.simplifiedGeometryMaxMinSquaredTolerance=b,this)}getSimplifiedGeometryInternal(b){return this}getStride(){return this.stride}setFlatCoordinates(b,y){this.stride=p(b),this.layout=b,this.flatCoordinates=y}setCoordinates(b,y){(0,l.b0)()}setLayout(b,y,w){let S;if(b)S=p(b);else{for(let O=0;O<w;++O){if(y.length===0){this.layout="XY",this.stride=2;return}y=y[0]}S=y.length,b=f(S)}this.layout=b,this.stride=S}applyTransform(b){this.flatCoordinates&&(b(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(b,y){const w=this.getFlatCoordinates();if(w){const S=this.getStride();(0,m.e$)(w,0,w.length,S,b,y,w),this.changed()}}scale(b,y,w){y===void 0&&(y=b),w||(w=(0,s.q1)(this.getExtent()));const S=this.getFlatCoordinates();if(S){const O=this.getStride();(0,m.hs)(S,0,S.length,O,b,y,w,S),this.changed()}}translate(b,y){const w=this.getFlatCoordinates();if(w){const S=this.getStride();(0,m.Tl)(w,0,w.length,S,b,y,w),this.changed()}}}function f(d){let b;return d==2?b="XY":d==3?b="XYZ":d==4&&(b="XYZM"),b}function p(d){let b;return d=="XY"?b=2:d=="XYZ"||d=="XYM"?b=3:d=="XYZM"&&(b=4),b}function v(d,b,y){const w=d.getFlatCoordinates();if(!w)return null;const S=d.getStride();return(0,m.Rc)(w,0,w.length,S,b,y)}const h=u},28609:(J,g,t)=>{"use strict";t.d(g,{Cs:()=>s,PK:()=>l,eN:()=>i});function i(m,u,f,p){let v=0,h=m[f-p],d=m[f-p+1];for(;u<f;u+=p){const b=m[u],y=m[u+1];v+=d*b-h*y,h=b,d=y}return v/2}function l(m,u,f,p){let v=0;for(let h=0,d=f.length;h<d;++h){const b=f[h];v+=i(m,u,b,p),u=b}return v}function s(m,u,f,p){let v=0;for(let h=0,d=f.length;h<d;++h){const b=f[h];v+=l(m,u,b,p),u=b[b.length-1]}return v}},63953:(J,g,t)=>{"use strict";t.d(g,{HX:()=>m,MD:()=>s,c:()=>u,n:()=>f,oW:()=>p,te:()=>v});var i=t(61597);function l(h,d,b,y,w,S,O){const R=h[d],M=h[d+1],D=h[b]-R,P=h[b+1]-M;let T;if(D===0&&P===0)T=d;else{const A=((w-R)*D+(S-M)*P)/(D*D+P*P);if(A>1)T=b;else if(A>0){for(let j=0;j<y;++j)O[j]=(0,i.Cc)(h[d+j],h[b+j],A);O.length=y;return}else T=d}for(let A=0;A<y;++A)O[A]=h[T+A];O.length=y}function s(h,d,b,y,w){let S=h[d],O=h[d+1];for(d+=y;d<b;d+=y){const R=h[d],M=h[d+1],D=(0,i.hG)(S,O,R,M);D>w&&(w=D),S=R,O=M}return w}function m(h,d,b,y,w){for(let S=0,O=b.length;S<O;++S){const R=b[S];w=s(h,d,R,y,w),d=R}return w}function u(h,d,b,y,w){for(let S=0,O=b.length;S<O;++S){const R=b[S];w=m(h,d,R,y,w),d=R[R.length-1]}return w}function f(h,d,b,y,w,S,O,R,M,D,P){if(d==b)return D;let T,A;if(w===0){if(A=(0,i.hG)(O,R,h[d],h[d+1]),A<D){for(T=0;T<y;++T)M[T]=h[d+T];return M.length=y,A}return D}P=P||[NaN,NaN];let j=d+y;for(;j<b;)if(l(h,j-y,j,y,O,R,P),A=(0,i.hG)(O,R,P[0],P[1]),A<D){for(D=A,T=0;T<y;++T)M[T]=P[T];M.length=y,j+=y}else j+=y*Math.max((Math.sqrt(A)-Math.sqrt(D))/w|0,1);if(S&&(l(h,b-y,d,y,O,R,P),A=(0,i.hG)(O,R,P[0],P[1]),A<D)){for(D=A,T=0;T<y;++T)M[T]=P[T];M.length=y}return D}function p(h,d,b,y,w,S,O,R,M,D,P){P=P||[NaN,NaN];for(let T=0,A=b.length;T<A;++T){const j=b[T];D=f(h,d,j,y,w,S,O,R,M,D,P),d=j}return D}function v(h,d,b,y,w,S,O,R,M,D,P){P=P||[NaN,NaN];for(let T=0,A=b.length;T<A;++T){const j=b[T];D=p(h,d,j,y,w,S,O,R,M,D,P),d=j[j.length-1]}return D}},52845:(J,g,t)=>{"use strict";t.d(g,{Gd:()=>u,a_:()=>s,t7:()=>l,zb:()=>m});var i=t(70915);function l(f,p,v,h,d){return!(0,i.sB)(d,function(y){return!s(f,p,v,h,y[0],y[1])})}function s(f,p,v,h,d,b){let y=0,w=f[v-h],S=f[v-h+1];for(;p<v;p+=h){const O=f[p],R=f[p+1];S<=b?R>b&&(O-w)*(b-S)-(d-w)*(R-S)>0&&y++:R<=b&&(O-w)*(b-S)-(d-w)*(R-S)<0&&y--,w=O,S=R}return y!==0}function m(f,p,v,h,d,b){if(v.length===0||!s(f,p,v[0],h,d,b))return!1;for(let y=1,w=v.length;y<w;++y)if(s(f,v[y-1],v[y],h,d,b))return!1;return!0}function u(f,p,v,h,d,b){if(v.length===0)return!1;for(let y=0,w=v.length;y<w;++y){const S=v[y];if(m(f,p,S,h,d,b))return!0;p=S[S.length-1]}return!1}},92497:(J,g,t)=>{"use strict";t.d(g,{KG:()=>s,_n:()=>i,d6:()=>m,z2:()=>l});function i(u,f,p,v){for(let h=0,d=p.length;h<d;++h)u[f++]=p[h];return f}function l(u,f,p,v){for(let h=0,d=p.length;h<d;++h){const b=p[h];for(let y=0;y<v;++y)u[f++]=b[y]}return f}function s(u,f,p,v,h){h=h||[];let d=0;for(let b=0,y=p.length;b<y;++b){const w=l(u,f,p[b],v);h[d++]=w,f=w}return h.length=d,h}function m(u,f,p,v,h){h=h||[];let d=0;for(let b=0,y=p.length;b<y;++b){const w=s(u,f,p[b],v,h[d]);w.length===0&&(w[0]=f),h[d++]=w,f=w[w.length-1]}return h.length=d,h}},78742:(J,g,t)=>{"use strict";t.d(g,{Dz:()=>s,cD:()=>l,n2:()=>i});function i(m,u,f,p,v){v=v!==void 0?v:[];let h=0;for(let d=u;d<f;d+=p)v[h++]=m.slice(d,d+p);return v.length=h,v}function l(m,u,f,p,v){v=v!==void 0?v:[];let h=0;for(let d=0,b=f.length;d<b;++d){const y=f[d];v[h++]=i(m,u,y,p,v[h]),u=y}return v.length=h,v}function s(m,u,f,p,v){v=v!==void 0?v:[];let h=0;for(let d=0,b=f.length;d<b;++d){const y=f[d];v[h++]=y.length===1&&y[0]===u?[]:l(m,u,y,p,v[h]),u=y[y.length-1]}return v.length=h,v}},22616:(J,g,t)=>{"use strict";t.d(g,{J:()=>s,p:()=>m});var i=t(66514),l=t(52845);function s(u,f,p,v,h,d,b){let y,w,S,O,R,M,D;const P=h[d+1],T=[];for(let ae=0,_=p.length;ae<_;++ae){const N=p[ae];for(O=u[N-v],M=u[N-v+1],y=f;y<N;y+=v)R=u[y],D=u[y+1],(P<=M&&D<=P||M<=P&&P<=D)&&(S=(P-M)/(D-M)*(R-O)+O,T.push(S)),O=R,M=D}let A=NaN,j=-1/0;for(T.sort(i.V_),O=T[0],y=1,w=T.length;y<w;++y){R=T[y];const ae=Math.abs(R-O);ae>j&&(S=(O+R)/2,(0,l.zb)(u,f,p,v,S,P)&&(A=S,j=ae)),O=R}return isNaN(A)&&(A=h[d]),b?(b.push(A,P,j),b):[A,P,j]}function m(u,f,p,v,h){let d=[];for(let b=0,y=p.length;b<y;++b){const w=p[b];d=s(u,f,w,v,h,2*b,d),f=w[w.length-1]}return d}},79969:(J,g,t)=>{"use strict";t.d(g,{L8:()=>u,SH:()=>s,gr:()=>m});var i=t(66514),l=t(61597);function s(f,p,v,h,d,b,y){let w,S;const O=(v-p)/h;if(O===1)w=p;else if(O===2)w=p,S=d;else if(O!==0){let R=f[p],M=f[p+1],D=0;const P=[0];for(let j=p+h;j<v;j+=h){const ae=f[j],_=f[j+1];D+=Math.sqrt((ae-R)*(ae-R)+(_-M)*(_-M)),P.push(D),R=ae,M=_}const T=d*D,A=(0,i.El)(P,T);A<0?(S=(T-P[-A-2])/(P[-A-1]-P[-A-2]),w=p+(-A-2)*h):w=p+A*h}y=y>1?y:2,b=b||new Array(y);for(let R=0;R<y;++R)b[R]=w===void 0?NaN:S===void 0?f[w+R]:(0,l.Cc)(f[w+R],f[w+h+R],S);return b}function m(f,p,v,h,d,b){if(v==p)return null;let y;if(d<f[p+h-1])return b?(y=f.slice(p,p+h),y[h-1]=d,y):null;if(f[v-1]<d)return b?(y=f.slice(v-h,v),y[h-1]=d,y):null;if(d==f[p+h-1])return f.slice(p,p+h);let w=p/h,S=v/h;for(;w<S;){const D=w+S>>1;d<f[(D+1)*h-1]?S=D:w=D+1}const O=f[w*h-1];if(d==O)return f.slice((w-1)*h,(w-1)*h+h);const R=f[(w+1)*h-1],M=(d-O)/(R-O);y=[];for(let D=0;D<h-1;++D)y.push((0,l.Cc)(f[(w-1)*h+D],f[w*h+D],M));return y.push(d),y}function u(f,p,v,h,d,b,y){if(y)return m(f,p,v[v.length-1],h,d,b);let w;if(d<f[h-1])return b?(w=f.slice(0,h),w[h-1]=d,w):null;if(f[f.length-1]<d)return b?(w=f.slice(f.length-h),w[h-1]=d,w):null;for(let S=0,O=v.length;S<O;++S){const R=v[S];if(p!=R){if(d<f[p+h-1])return null;if(d<=f[R-1])return m(f,p,R,h,d,!1);p=R}}return null}},4350:(J,g,t)=>{"use strict";t.d(g,{HT:()=>p,Wp:()=>v,fB:()=>u,gp:()=>m,sj:()=>f});var i=t(70915),l=t(91374),s=t(52845);function m(h,d,b,y,w){const S=(0,i.R8)((0,i.S5)(),h,d,b,y);return(0,i.HY)(w,S)?(0,i.ms)(w,S)||S[0]>=w[0]&&S[2]<=w[2]||S[1]>=w[1]&&S[3]<=w[3]?!0:(0,l.j)(h,d,b,y,function(O,R){return(0,i.Mx)(w,O,R)}):!1}function u(h,d,b,y,w){for(let S=0,O=b.length;S<O;++S){if(m(h,d,b[S],y,w))return!0;d=b[S]}return!1}function f(h,d,b,y,w){return!!(m(h,d,b,y,w)||(0,s.a_)(h,d,b,y,w[0],w[1])||(0,s.a_)(h,d,b,y,w[0],w[3])||(0,s.a_)(h,d,b,y,w[2],w[1])||(0,s.a_)(h,d,b,y,w[2],w[3]))}function p(h,d,b,y,w){if(!f(h,d,b[0],y,w))return!1;if(b.length===1)return!0;for(let S=1,O=b.length;S<O;++S)if((0,s.t7)(h,b[S-1],b[S],y,w)&&!m(h,b[S-1],b[S],y,w))return!1;return!0}function v(h,d,b,y,w){for(let S=0,O=b.length;S<O;++S){const R=b[S];if(p(h,d,R,y,w))return!0;d=R[R.length-1]}return!1}},50904:(J,g,t)=>{"use strict";t.d(g,{k:()=>i});function i(s,m,u,f){let p=s[m],v=s[m+1],h=0;for(let d=m+f;d<u;d+=f){const b=s[d],y=s[d+1];h+=Math.sqrt((b-p)*(b-p)+(y-v)*(y-v)),p=b,v=y}return h}function l(s,m,u,f){let p=i(s,m,u,f);const v=s[u-f]-s[m],h=s[u-f+1]-s[m+1];return p+=Math.sqrt(v*v+h*h),p}},83402:(J,g,t)=>{"use strict";t.d(g,{PA:()=>s,mb:()=>m,ug:()=>u,NK:()=>f});function i(v,h,d,b){for(;h<d-b;){for(let y=0;y<b;++y){const w=v[h+y];v[h+y]=v[d-b+y],v[d-b+y]=w}h+=b,d-=b}}function l(v,h,d,b){let y=0,w=v[d-b],S=v[d-b+1];for(;h<d;h+=b){const O=v[h],R=v[h+1];y+=(O-w)*(R+S),w=O,S=R}return y===0?void 0:y>0}function s(v,h,d,b,y){y=y!==void 0?y:!1;for(let w=0,S=d.length;w<S;++w){const O=d[w],R=l(v,h,O,b);if(w===0){if(y&&R||!y&&!R)return!1}else if(y&&!R||!y&&R)return!1;h=O}return!0}function m(v,h,d,b,y){for(let w=0,S=d.length;w<S;++w){const O=d[w];if(!s(v,h,O,b,y))return!1;O.length&&(h=O[O.length-1])}return!0}function u(v,h,d,b,y){y=y!==void 0?y:!1;for(let w=0,S=d.length;w<S;++w){const O=d[w],R=l(v,h,O,b);(w===0?y&&R||!y&&!R:y&&!R||!y&&R)&&i(v,h,O,b),h=O}return h}function f(v,h,d,b,y){for(let w=0,S=d.length;w<S;++w)h=u(v,h,d[w],b,y);return h}function p(v,h){const d=[];let b=0,y=0;for(let w=0,S=h.length;w<S;++w){const O=h[w];if(!l(v,b,O,2))d.push(h.slice(y,w+1));else{if(d.length===0)continue;d[d.length-1].push(h[y])}y=w+1,b=O}return d}},91374:(J,g,t)=>{"use strict";t.d(g,{j:()=>i});function i(l,s,m,u,f){let p;for(s+=u;s<m;s+=u)if(p=f(l.slice(s-u,s),l.slice(s,s+u)),p)return p;return!1}},83671:(J,g,t)=>{"use strict";t.d(g,{AL:()=>m,Hg:()=>h,P4:()=>s,n$:()=>p,sx:()=>d});var i=t(61597);function l(b,y,w,S,O,R,M){return M=M!==void 0?M:[],R||(w=f(b,y,w,S,O,M,0),b=M,y=0,S=2),M.length=s(b,y,w,S,O,M,0),M}function s(b,y,w,S,O,R,M){const D=(w-y)/S;if(D<3){for(;y<w;y+=S)R[M++]=b[y],R[M++]=b[y+1];return M}const P=new Array(D);P[0]=1,P[D-1]=1;const T=[y,w-S];let A=0;for(;T.length>0;){const j=T.pop(),ae=T.pop();let _=0;const N=b[ae],W=b[ae+1],he=b[j],me=b[j+1];for(let fe=ae+S;fe<j;fe+=S){const ve=b[fe],ce=b[fe+1],oe=(0,i.Q1)(ve,ce,N,W,he,me);oe>_&&(A=fe,_=oe)}_>O&&(P[(A-y)/S]=1,ae+S<A&&T.push(ae,A),A+S<j&&T.push(A,j))}for(let j=0;j<D;++j)P[j]&&(R[M++]=b[y+j*S],R[M++]=b[y+j*S+1]);return M}function m(b,y,w,S,O,R,M,D){for(let P=0,T=w.length;P<T;++P){const A=w[P];M=s(b,y,A,S,O,R,M),D.push(M),y=A}return M}function u(b,y,w,S,O,R,M,D){for(let P=0,T=w.length;P<T;++P){const A=w[P],j=[];M=m(b,y,A,S,O,R,M,j),D.push(j),y=A[A.length-1]}return M}function f(b,y,w,S,O,R,M){if(w<=y+S){for(;y<w;y+=S)R[M++]=b[y],R[M++]=b[y+1];return M}let D=b[y],P=b[y+1];R[M++]=D,R[M++]=P;let T=D,A=P;for(y+=S;y<w;y+=S)T=b[y],A=b[y+1],squaredDistance(D,P,T,A)>O&&(R[M++]=T,R[M++]=A,D=T,P=A);return(T!=D||A!=P)&&(R[M++]=T,R[M++]=A),M}function p(b,y){return y*Math.round(b/y)}function v(b,y,w,S,O,R,M){if(y==w)return M;let D=p(b[y],O),P=p(b[y+1],O);y+=S,R[M++]=D,R[M++]=P;let T,A;do if(T=p(b[y],O),A=p(b[y+1],O),y+=S,y==w)return R[M++]=T,R[M++]=A,M;while(T==D&&A==P);for(;y<w;){const j=p(b[y],O),ae=p(b[y+1],O);if(y+=S,j==T&&ae==A)continue;const _=T-D,N=A-P,W=j-D,he=ae-P;if(_*he==N*W&&(_<0&&W<_||_==W||_>0&&W>_)&&(N<0&&he<N||N==he||N>0&&he>N)){T=j,A=ae;continue}R[M++]=T,R[M++]=A,D=T,P=A,T=j,A=ae}return R[M++]=T,R[M++]=A,M}function h(b,y,w,S,O,R,M,D){for(let P=0,T=w.length;P<T;++P){const A=w[P];M=v(b,y,A,S,O,R,M),D.push(M),y=A}return M}function d(b,y,w,S,O,R,M,D){for(let P=0,T=w.length;P<T;++P){const A=w[P],j=[];M=h(b,y,A,S,O,R,M,j),D.push(j),y=A[A.length-1]}return M}},87622:(J,g,t)=>{"use strict";t.d(g,{Rc:()=>i,Tl:()=>m,e$:()=>l,hs:()=>s});function i(u,f,p,v,h,d){d=d||[];let b=0;for(let y=f;y<p;y+=v){const w=u[y],S=u[y+1];d[b++]=h[0]*w+h[2]*S+h[4],d[b++]=h[1]*w+h[3]*S+h[5]}return d&&d.length!=b&&(d.length=b),d}function l(u,f,p,v,h,d,b){b=b||[];const y=Math.cos(h),w=Math.sin(h),S=d[0],O=d[1];let R=0;for(let M=f;M<p;M+=v){const D=u[M]-S,P=u[M+1]-O;b[R++]=S+D*y-P*w,b[R++]=O+D*w+P*y;for(let T=M+2;T<M+v;++T)b[R++]=u[T]}return b&&b.length!=R&&(b.length=R),b}function s(u,f,p,v,h,d,b,y){y=y||[];const w=b[0],S=b[1];let O=0;for(let R=f;R<p;R+=v){const M=u[R]-w,D=u[R+1]-S;y[O++]=w+h*M,y[O++]=S+d*D;for(let P=R+2;P<R+v;++P)y[O++]=u[P]}return y&&y.length!=O&&(y.length=O),y}function m(u,f,p,v,h,d,b){b=b||[];let y=0;for(let w=f;w<p;w+=v){b[y++]=u[w]+h,b[y++]=u[w+1]+d;for(let S=w+2;S<w+v;++S)b[y++]=u[S]}return b&&b.length!=y&&(b.length=y),b}},7771:(J,g,t)=>{"use strict";t.d(g,{DT:()=>h,FT:()=>d,Wl:()=>v,_p:()=>l,cr:()=>p,ew:()=>f,j:()=>u,oF:()=>m});const i=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",l=i.includes("firefox"),m=i.includes("safari")&&!i.includes("chrom")&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),u=i.includes("webkit")&&!i.includes("edge"),f=i.includes("macintosh"),p=typeof devicePixelRatio<"u"?devicePixelRatio:1,v=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,h=typeof Image<"u"&&Image.prototype.decode,d=function(){let b=!1;try{const y=Object.defineProperty({},"passive",{get:function(){b=!0}});window.addEventListener("_",null,y),window.removeEventListener("_",null,y)}catch{}return b}()},6292:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>p,D2:()=>f,e4:()=>u});var i=t(34120),l=t(82187),s=t(93474);class m extends i.A{constructor(h){super(),this.on,this.once,this.un,h&&h.handleEvent&&(this.handleEvent=h.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(l.A.ACTIVE)}getMap(){return this.map_}handleEvent(h){return!0}setActive(h){this.set(l.A.ACTIVE,h)}setMap(h){this.map_=h}}function u(v,h,d){const b=v.getCenterInternal();if(b){const y=[b[0]+h[0],b[1]+h[1]];v.animateInternal({duration:d!==void 0?d:250,easing:s.sn,center:v.getConstrainedCenter(y)})}}function f(v,h,d,b){const y=v.getZoom();if(y===void 0)return;const w=v.getConstrainedZoom(y+h),S=v.getResolutionForZoom(w);v.getAnimating()&&v.cancelAnimations(),v.animate({resolution:S,anchor:d,duration:b!==void 0?b:250,easing:s.vT})}const p=m},88751:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=t(6837),l=t(6292),s=t(7771),m=t(58704),u=t(61597);class f extends l.Ay{constructor(h){h=h||{},super(h),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=h.maxDelta!==void 0?h.maxDelta:1,this.duration_=h.duration!==void 0?h.duration:250,this.timeout_=h.timeout!==void 0?h.timeout:80,this.useAnchor_=h.useAnchor!==void 0?h.useAnchor:!0,this.constrainResolution_=h.constrainResolution!==void 0?h.constrainResolution:!1;const d=h.condition?h.condition:m.Gk;this.condition_=h.onFocusOnly?(0,m.Q7)(m.eL,d):d,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const h=this.getMap();if(!h)return;h.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(h){if(!this.condition_(h)||h.type!==i.A.WHEEL)return!0;const b=h.map,y=h.originalEvent;y.preventDefault(),this.useAnchor_&&(this.lastAnchor_=h.coordinate);let w;if(h.type==i.A.WHEEL&&(w=y.deltaY,s._p&&y.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(w/=s.cr),y.deltaMode===WheelEvent.DOM_DELTA_LINE&&(w*=40)),w===0)return!1;this.lastDelta_=w;const S=Date.now();this.startTime_===void 0&&(this.startTime_=S),(!this.mode_||S-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(w)<4?"trackpad":"wheel");const O=b.getView();if(this.mode_==="trackpad"&&!(O.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(O.getAnimating()&&O.cancelAnimations(),O.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),O.adjustZoom(-w/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=S,!1;this.totalDelta_+=w;const R=Math.max(this.timeout_-(S-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,b),R),!1}handleWheelZoom_(h){const d=h.getView();d.getAnimating()&&d.cancelAnimations();let b=-(0,u.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(d.getConstrainResolution()||this.constrainResolution_)&&(b=b?b>0?1:-1:0),(0,l.D2)(d,b,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(h){this.useAnchor_=h,h||(this.lastAnchor_=null)}}const p=f},21409:(J,g,t)=>{"use strict";t.d(g,{A:()=>u,v:()=>m});var i=t(6292),l=t(73445);class s extends i.Ay{constructor(p){p=p||{},super(p),p.handleDownEvent&&(this.handleDownEvent=p.handleDownEvent),p.handleDragEvent&&(this.handleDragEvent=p.handleDragEvent),p.handleMoveEvent&&(this.handleMoveEvent=p.handleMoveEvent),p.handleUpEvent&&(this.handleUpEvent=p.handleUpEvent),p.stopDown&&(this.stopDown=p.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(p){return!1}handleDragEvent(p){}handleEvent(p){if(!p.originalEvent)return!0;let v=!1;if(this.updateTrackedPointers_(p),this.handlingDownUpSequence){if(p.type==l.A.POINTERDRAG)this.handleDragEvent(p),p.originalEvent.preventDefault();else if(p.type==l.A.POINTERUP){const h=this.handleUpEvent(p);this.handlingDownUpSequence=h&&this.targetPointers.length>0}}else if(p.type==l.A.POINTERDOWN){const h=this.handleDownEvent(p);this.handlingDownUpSequence=h,v=this.stopDown(h)}else p.type==l.A.POINTERMOVE&&this.handleMoveEvent(p);return!v}handleMoveEvent(p){}handleUpEvent(p){return!1}stopDown(p){return p}updateTrackedPointers_(p){p.activePointers&&(this.targetPointers=p.activePointers)}}function m(f){const p=f.length;let v=0,h=0;for(let d=0;d<p;d++)v+=f[d].clientX,h+=f[d].clientY;return{clientX:v/p,clientY:h/p}}const u=s},82187:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={ACTIVE:"active"}},40239:(J,g,t)=>{"use strict";t.d(g,{N:()=>pe});var i=t(50071),l=t(6292),s=t(73445);class m extends l.Ay{constructor(Se){super(),Se=Se||{},this.delta_=Se.delta?Se.delta:1,this.duration_=Se.duration!==void 0?Se.duration:250}handleEvent(Se){let Ae=!1;if(Se.type==s.A.DBLCLICK){const Ee=Se.originalEvent,xe=Se.map,nt=Se.coordinate,Tt=Ee.shiftKey?-this.delta_:this.delta_,pt=xe.getView();(0,l.D2)(pt,Tt,nt,this.duration_),Ee.preventDefault(),Ae=!0}return!Ae}}const u=m;var f=t(21409),p=t(74238),v=t(58704),h=t(93474),d=t(6933);class b extends f.A{constructor(Se){super({stopDown:p.W8}),Se=Se||{},this.kinetic_=Se.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const Ae=Se.condition?Se.condition:(0,v.Q7)(v.TS,v.fs);this.condition_=Se.onFocusOnly?(0,v.Q7)(v.eL,Ae):Ae,this.noKinetic_=!1}handleDragEvent(Se){const Ae=Se.map;this.panning_||(this.panning_=!0,Ae.getView().beginInteraction());const Ee=this.targetPointers,xe=Ae.getEventPixel((0,f.v)(Ee));if(Ee.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(xe[0],xe[1]),this.lastCentroid){const nt=[this.lastCentroid[0]-xe[0],xe[1]-this.lastCentroid[1]],pt=Se.map.getView();(0,d.hs)(nt,pt.getResolution()),(0,d.e$)(nt,pt.getRotation()),pt.adjustCenterInternal(nt)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=xe,this.lastPointersCount_=Ee.length,Se.originalEvent.preventDefault()}handleUpEvent(Se){const Ae=Se.map,Ee=Ae.getView();if(this.targetPointers.length===0){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const xe=this.kinetic_.getDistance(),nt=this.kinetic_.getAngle(),Tt=Ee.getCenterInternal(),pt=Ae.getPixelFromCoordinateInternal(Tt),Rt=Ae.getCoordinateFromPixelInternal([pt[0]-xe*Math.cos(nt),pt[1]-xe*Math.sin(nt)]);Ee.animateInternal({center:Ee.getConstrainedCenter(Rt),duration:500,easing:h.vT})}return this.panning_&&(this.panning_=!1,Ee.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(Se){if(this.targetPointers.length>0&&this.condition_(Se)){const Ee=Se.map.getView();return this.lastCentroid=null,Ee.getAnimating()&&Ee.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const y=b;var w=t(24498);class S extends f.A{constructor(Se){Se=Se||{},super({stopDown:p.W8}),this.condition_=Se.condition?Se.condition:v.IO,this.lastAngle_=void 0,this.duration_=Se.duration!==void 0?Se.duration:250}handleDragEvent(Se){if(!(0,v.A4)(Se))return;const Ae=Se.map,Ee=Ae.getView();if(Ee.getConstraints().rotation===w.b8)return;const xe=Ae.getSize(),nt=Se.pixel,Tt=Math.atan2(xe[1]/2-nt[1],nt[0]-xe[0]/2);if(this.lastAngle_!==void 0){const pt=Tt-this.lastAngle_;Ee.adjustRotationInternal(-pt)}this.lastAngle_=Tt}handleUpEvent(Se){return(0,v.A4)(Se)?(Se.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(Se){return(0,v.A4)(Se)&&(0,v.at)(Se)&&this.condition_(Se)?(Se.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const O=S;var R=t(1685),M=t(90025),D=t(71064);class P extends M.A{constructor(Se){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+Se,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const Se=this.startPixel_,Ae=this.endPixel_,Ee="px",xe=this.element_.style;xe.left=Math.min(Se[0],Ae[0])+Ee,xe.top=Math.min(Se[1],Ae[1])+Ee,xe.width=Math.abs(Ae[0]-Se[0])+Ee,xe.height=Math.abs(Ae[1]-Se[1])+Ee}setMap(Se){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const Ae=this.element_.style;Ae.left="inherit",Ae.top="inherit",Ae.width="inherit",Ae.height="inherit"}this.map_=Se,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(Se,Ae){this.startPixel_=Se,this.endPixel_=Ae,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const Se=this.startPixel_,Ae=this.endPixel_,xe=[Se,[Se[0],Ae[1]],Ae,[Ae[0],Se[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);xe[4]=xe[0].slice(),this.geometry_?this.geometry_.setCoordinates([xe]):this.geometry_=new D.Ay([xe])}getGeometry(){return this.geometry_}}const T=P,A={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class j extends R.Ay{constructor(Se,Ae,Ee){super(Se),this.coordinate=Ae,this.mapBrowserEvent=Ee}}class ae extends f.A{constructor(Se){super(),this.on,this.once,this.un,Se=Se||{},this.box_=new T(Se.className||"ol-dragbox"),this.minArea_=Se.minArea!==void 0?Se.minArea:64,Se.onBoxEnd&&(this.onBoxEnd=Se.onBoxEnd),this.startPixel_=null,this.condition_=Se.condition?Se.condition:v.at,this.boxEndCondition_=Se.boxEndCondition?Se.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(Se,Ae,Ee){const xe=Ee[0]-Ae[0],nt=Ee[1]-Ae[1];return xe*xe+nt*nt>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(Se){this.box_.setPixels(this.startPixel_,Se.pixel),this.dispatchEvent(new j(A.BOXDRAG,Se.coordinate,Se))}handleUpEvent(Se){this.box_.setMap(null);const Ae=this.boxEndCondition_(Se,this.startPixel_,Se.pixel);return Ae&&this.onBoxEnd(Se),this.dispatchEvent(new j(Ae?A.BOXEND:A.BOXCANCEL,Se.coordinate,Se)),!1}handleDownEvent(Se){return this.condition_(Se)?(this.startPixel_=Se.pixel,this.box_.setMap(Se.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new j(A.BOXSTART,Se.coordinate,Se)),!0):!1}onBoxEnd(Se){}}const _=ae;class N extends _{constructor(Se){Se=Se||{};const Ae=Se.condition?Se.condition:v.Kg;super({condition:Ae,className:Se.className||"ol-dragzoom",minArea:Se.minArea}),this.duration_=Se.duration!==void 0?Se.duration:200,this.out_=Se.out!==void 0?Se.out:!1}onBoxEnd(Se){const Ee=this.getMap().getView();let xe=this.getGeometry();if(this.out_){const nt=Ee.rotatedExtentForGeometry(xe),Tt=Ee.getResolutionForExtentInternal(nt),pt=Ee.getResolution()/Tt;xe=xe.clone(),xe.scale(pt*pt)}Ee.fitInternal(xe,{duration:this.duration_,easing:h.vT})}}const W=N;var he=t(6837);const me={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class fe extends l.Ay{constructor(Se){super(),Se=Se||{},this.defaultCondition_=function(Ae){return(0,v.TS)(Ae)&&(0,v.tE)(Ae)},this.condition_=Se.condition!==void 0?Se.condition:this.defaultCondition_,this.duration_=Se.duration!==void 0?Se.duration:100,this.pixelDelta_=Se.pixelDelta!==void 0?Se.pixelDelta:128}handleEvent(Se){let Ae=!1;if(Se.type==he.A.KEYDOWN){const Ee=Se.originalEvent,xe=Ee.key;if(this.condition_(Se)&&(xe==me.DOWN||xe==me.LEFT||xe==me.RIGHT||xe==me.UP)){const Tt=Se.map.getView(),pt=Tt.getResolution()*this.pixelDelta_;let Rt=0,tt=0;xe==me.DOWN?tt=-pt:xe==me.LEFT?Rt=-pt:xe==me.RIGHT?Rt=pt:tt=pt;const U=[Rt,tt];(0,d.e$)(U,Tt.getRotation()),(0,l.e4)(Tt,U,this.duration_),Ee.preventDefault(),Ae=!0}}return!Ae}}const ve=fe;class ce extends l.Ay{constructor(Se){super(),Se=Se||{},this.condition_=Se.condition?Se.condition:v.tE,this.delta_=Se.delta?Se.delta:1,this.duration_=Se.duration!==void 0?Se.duration:100}handleEvent(Se){let Ae=!1;if(Se.type==he.A.KEYDOWN||Se.type==he.A.KEYPRESS){const Ee=Se.originalEvent,xe=Ee.key;if(this.condition_(Se)&&(xe==="+"||xe==="-")){const nt=Se.map,Tt=xe==="+"?this.delta_:-this.delta_,pt=nt.getView();(0,l.D2)(pt,Tt,void 0,this.duration_),Ee.preventDefault(),Ae=!0}}return!Ae}}const oe=ce;class re{constructor(Se,Ae,Ee){this.decay_=Se,this.minVelocity_=Ae,this.delay_=Ee,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(Se,Ae){this.points_.push(Se,Ae,Date.now())}end(){if(this.points_.length<6)return!1;const Se=Date.now()-this.delay_,Ae=this.points_.length-3;if(this.points_[Ae+2]<Se)return!1;let Ee=Ae-3;for(;Ee>0&&this.points_[Ee+2]>Se;)Ee-=3;const xe=this.points_[Ae+2]-this.points_[Ee+2];if(xe<1e3/60)return!1;const nt=this.points_[Ae]-this.points_[Ee],Tt=this.points_[Ae+1]-this.points_[Ee+1];return this.angle_=Math.atan2(Tt,nt),this.initialVelocity_=Math.sqrt(nt*nt+Tt*Tt)/xe,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const H=re;var V=t(88751);class Q extends f.A{constructor(Se){Se=Se||{};const Ae=Se;Ae.stopDown||(Ae.stopDown=p.W8),super(Ae),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=Se.threshold!==void 0?Se.threshold:.3,this.duration_=Se.duration!==void 0?Se.duration:250}handleDragEvent(Se){let Ae=0;const Ee=this.targetPointers[0],xe=this.targetPointers[1],nt=Math.atan2(xe.clientY-Ee.clientY,xe.clientX-Ee.clientX);if(this.lastAngle_!==void 0){const Rt=nt-this.lastAngle_;this.rotationDelta_+=Rt,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),Ae=Rt}this.lastAngle_=nt;const Tt=Se.map,pt=Tt.getView();pt.getConstraints().rotation!==w.b8&&(this.anchor_=Tt.getCoordinateFromPixelInternal(Tt.getEventPixel((0,f.v)(this.targetPointers))),this.rotating_&&(Tt.render(),pt.adjustRotationInternal(Ae,this.anchor_)))}handleUpEvent(Se){return this.targetPointers.length<2?(Se.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(Se){if(this.targetPointers.length>=2){const Ae=Se.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||Ae.getView().beginInteraction(),!0}return!1}}const Te=Q;class Re extends f.A{constructor(Se){Se=Se||{};const Ae=Se;Ae.stopDown||(Ae.stopDown=p.W8),super(Ae),this.anchor_=null,this.duration_=Se.duration!==void 0?Se.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(Se){let Ae=1;const Ee=this.targetPointers[0],xe=this.targetPointers[1],nt=Ee.clientX-xe.clientX,Tt=Ee.clientY-xe.clientY,pt=Math.sqrt(nt*nt+Tt*Tt);this.lastDistance_!==void 0&&(Ae=this.lastDistance_/pt),this.lastDistance_=pt;const Rt=Se.map,tt=Rt.getView();Ae!=1&&(this.lastScaleDelta_=Ae),this.anchor_=Rt.getCoordinateFromPixelInternal(Rt.getEventPixel((0,f.v)(this.targetPointers))),Rt.render(),tt.adjustResolutionInternal(Ae,this.anchor_)}handleUpEvent(Se){if(this.targetPointers.length<2){const Ee=Se.map.getView(),xe=this.lastScaleDelta_>1?1:-1;return Ee.endInteraction(this.duration_,xe),!1}return!0}handleDownEvent(Se){if(this.targetPointers.length>=2){const Ae=Se.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||Ae.getView().beginInteraction(),!0}return!1}}const ne=Re;function pe(ye){ye=ye||{};const Se=new i.A,Ae=new H(-.005,.05,100);return(ye.altShiftDragRotate!==void 0?ye.altShiftDragRotate:!0)&&Se.push(new O),(ye.doubleClickZoom!==void 0?ye.doubleClickZoom:!0)&&Se.push(new u({delta:ye.zoomDelta,duration:ye.zoomDuration})),(ye.dragPan!==void 0?ye.dragPan:!0)&&Se.push(new y({onFocusOnly:ye.onFocusOnly,kinetic:Ae})),(ye.pinchRotate!==void 0?ye.pinchRotate:!0)&&Se.push(new Te),(ye.pinchZoom!==void 0?ye.pinchZoom:!0)&&Se.push(new ne({duration:ye.zoomDuration})),(ye.keyboard!==void 0?ye.keyboard:!0)&&(Se.push(new ve),Se.push(new oe({delta:ye.zoomDelta,duration:ye.zoomDuration}))),(ye.mouseWheelZoom!==void 0?ye.mouseWheelZoom:!0)&&Se.push(new V.A({onFocusOnly:ye.onFocusOnly,duration:ye.zoomDuration})),(ye.shiftDragZoom!==void 0?ye.shiftDragZoom:!0)&&Se.push(new W({duration:ye.zoomDuration})),Se}},58620:(J,g,t)=>{"use strict";t.d(g,{A:()=>p});var i=t(34120),l=t(75332),s=t(4087),m=t(90588),u=t(61597);class f extends i.A{constructor(h){super(),this.on,this.once,this.un,this.background_=h.background;const d=Object.assign({},h);typeof h.properties=="object"&&(delete d.properties,Object.assign(d,h.properties)),d[l.A.OPACITY]=h.opacity!==void 0?h.opacity:1,(0,m.v)(typeof d[l.A.OPACITY]=="number",64),d[l.A.VISIBLE]=h.visible!==void 0?h.visible:!0,d[l.A.Z_INDEX]=h.zIndex,d[l.A.MAX_RESOLUTION]=h.maxResolution!==void 0?h.maxResolution:1/0,d[l.A.MIN_RESOLUTION]=h.minResolution!==void 0?h.minResolution:0,d[l.A.MIN_ZOOM]=h.minZoom!==void 0?h.minZoom:-1/0,d[l.A.MAX_ZOOM]=h.maxZoom!==void 0?h.maxZoom:1/0,this.className_=d.className!==void 0?d.className:"ol-layer",delete d.className,this.setProperties(d),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(h){const d=this.state_||{layer:this,managed:h===void 0?!0:h},b=this.getZIndex();return d.opacity=(0,u.qE)(Math.round(this.getOpacity()*100)/100,0,1),d.visible=this.getVisible(),d.extent=this.getExtent(),d.zIndex=b===void 0&&!d.managed?1/0:b,d.maxResolution=this.getMaxResolution(),d.minResolution=Math.max(this.getMinResolution(),0),d.minZoom=this.getMinZoom(),d.maxZoom=this.getMaxZoom(),this.state_=d,d}getLayersArray(h){return(0,s.b0)()}getLayerStatesArray(h){return(0,s.b0)()}getExtent(){return this.get(l.A.EXTENT)}getMaxResolution(){return this.get(l.A.MAX_RESOLUTION)}getMinResolution(){return this.get(l.A.MIN_RESOLUTION)}getMinZoom(){return this.get(l.A.MIN_ZOOM)}getMaxZoom(){return this.get(l.A.MAX_ZOOM)}getOpacity(){return this.get(l.A.OPACITY)}getSourceState(){return(0,s.b0)()}getVisible(){return this.get(l.A.VISIBLE)}getZIndex(){return this.get(l.A.Z_INDEX)}setBackground(h){this.background_=h,this.changed()}setExtent(h){this.set(l.A.EXTENT,h)}setMaxResolution(h){this.set(l.A.MAX_RESOLUTION,h)}setMinResolution(h){this.set(l.A.MIN_RESOLUTION,h)}setMaxZoom(h){this.set(l.A.MAX_ZOOM,h)}setMinZoom(h){this.set(l.A.MIN_ZOOM,h)}setOpacity(h){(0,m.v)(typeof h=="number",64),this.set(l.A.OPACITY,h)}setVisible(h){this.set(l.A.VISIBLE,h)}setZIndex(h){this.set(l.A.Z_INDEX,h)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const p=f},35598:(J,g,t)=>{"use strict";t.d(g,{A:()=>O,i:()=>y});var i=t(58620),l=t(50071),s=t(32135),m=t(1685),u=t(6837),f=t(28450),p=t(90588),v=t(43530),h=t(70915),d=t(4087),b=t(9438);class y extends m.Ay{constructor(M,D){super(M),this.layer=D}}const w={LAYERS:"layers"};class S extends i.A{constructor(M){M=M||{};const D=Object.assign({},M);delete D.layers;let P=M.layers;super(D),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(w.LAYERS,this.handleLayersChanged_),P?Array.isArray(P)?P=new l.A(P.slice(),{unique:!0}):(0,p.v)(typeof P.getArray=="function",43):P=new l.A(void 0,{unique:!0}),this.setLayers(P)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(b.JH),this.layersListenerKeys_.length=0;const M=this.getLayers();this.layersListenerKeys_.push((0,b.KT)(M,s.A.ADD,this.handleLayersAdd_,this),(0,b.KT)(M,s.A.REMOVE,this.handleLayersRemove_,this));for(const P in this.listenerKeys_)this.listenerKeys_[P].forEach(b.JH);(0,v.I)(this.listenerKeys_);const D=M.getArray();for(let P=0,T=D.length;P<T;P++){const A=D[P];this.registerLayerListeners_(A),this.dispatchEvent(new y("addlayer",A))}this.changed()}registerLayerListeners_(M){const D=[(0,b.KT)(M,f.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,b.KT)(M,u.A.CHANGE,this.handleLayerChange_,this)];M instanceof S&&D.push((0,b.KT)(M,"addlayer",this.handleLayerGroupAdd_,this),(0,b.KT)(M,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,d.v6)(M)]=D}handleLayerGroupAdd_(M){this.dispatchEvent(new y("addlayer",M.layer))}handleLayerGroupRemove_(M){this.dispatchEvent(new y("removelayer",M.layer))}handleLayersAdd_(M){const D=M.element;this.registerLayerListeners_(D),this.dispatchEvent(new y("addlayer",D)),this.changed()}handleLayersRemove_(M){const D=M.element,P=(0,d.v6)(D);this.listenerKeys_[P].forEach(b.JH),delete this.listenerKeys_[P],this.dispatchEvent(new y("removelayer",D)),this.changed()}getLayers(){return this.get(w.LAYERS)}setLayers(M){const D=this.getLayers();if(D){const P=D.getArray();for(let T=0,A=P.length;T<A;++T)this.dispatchEvent(new y("removelayer",P[T]))}this.set(w.LAYERS,M)}getLayersArray(M){return M=M!==void 0?M:[],this.getLayers().forEach(function(D){D.getLayersArray(M)}),M}getLayerStatesArray(M){const D=M!==void 0?M:[],P=D.length;this.getLayers().forEach(function(j){j.getLayerStatesArray(D)});const T=this.getLayerState();let A=T.zIndex;!M&&T.zIndex===void 0&&(A=0);for(let j=P,ae=D.length;j<ae;j++){const _=D[j];_.opacity*=T.opacity,_.visible=_.visible&&T.visible,_.maxResolution=Math.min(_.maxResolution,T.maxResolution),_.minResolution=Math.max(_.minResolution,T.minResolution),_.minZoom=Math.max(_.minZoom,T.minZoom),_.maxZoom=Math.min(_.maxZoom,T.maxZoom),T.extent!==void 0&&(_.extent!==void 0?_.extent=(0,h._N)(_.extent,T.extent):_.extent=T.extent),_.zIndex===void 0&&(_.zIndex=A)}return D}getSourceState(){return"ready"}}const O=S},60764:(J,g,t)=>{"use strict";t.d(g,{A:()=>b,l:()=>d});var i=t(58620),l=t(6837),s=t(75332),m=t(83984),u=t(91765),f=t(90588),p=t(70915),v=t(9438);class h extends i.A{constructor(w){const S=Object.assign({},w);delete S.source,super(S),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,w.render&&(this.render=w.render),w.map&&this.setMap(w.map),this.addChangeListener(s.A.SOURCE,this.handleSourcePropertyChange_);const O=w.source?w.source:null;this.setSource(O)}getLayersArray(w){return w=w||[],w.push(this),w}getLayerStatesArray(w){return w=w||[],w.push(this.getLayerState()),w}getSource(){return this.get(s.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const w=this.getSource();return w?w.getState():"undefined"}handleSourceChange_(){this.changed(),!(this.sourceReady_||this.getSource().getState()!=="ready")&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,v.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const w=this.getSource();w&&(this.sourceChangeKey_=(0,v.KT)(w,l.A.CHANGE,this.handleSourceChange_,this),w.getState()==="ready"&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(w){return this.renderer_?this.renderer_.getFeatures(w):Promise.resolve([])}getData(w){return!this.renderer_||!this.rendered?null:this.renderer_.getData(w)}isVisible(w){let S;const O=this.getMapInternal();!w&&O&&(w=O.getView()),w instanceof u.Ay?S={viewState:w.getState(),extent:w.calculateExtent()}:S=w,!S.layerStatesArray&&O&&(S.layerStatesArray=O.getLayerGroup().getLayerStatesArray());let R;S.layerStatesArray?R=S.layerStatesArray.find(D=>D.layer===this):R=this.getLayerState();const M=this.getExtent();return d(R,S.viewState)&&(!M||(0,p.HY)(M,S.extent))}getAttributions(w){if(!this.isVisible(w))return[];let S;const O=this.getSource();if(O&&(S=O.getAttributions()),!S)return[];const R=w instanceof u.Ay?w.getViewStateAndExtent():w;let M=S(R);return Array.isArray(M)||(M=[M]),M}render(w,S){const O=this.getRenderer();return O.prepareFrame(w)?(this.rendered=!0,O.renderFrame(w,S)):null}unrender(){this.rendered=!1}setMapInternal(w){w||this.unrender(),this.set(s.A.MAP,w)}getMapInternal(){return this.get(s.A.MAP)}setMap(w){this.mapPrecomposeKey_&&((0,v.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),w||this.changed(),this.mapRenderKey_&&((0,v.JH)(this.mapRenderKey_),this.mapRenderKey_=null),w&&(this.mapPrecomposeKey_=(0,v.KT)(w,m.A.PRECOMPOSE,function(S){const R=S.frameState.layerStatesArray,M=this.getLayerState(!1);(0,f.v)(!R.some(function(D){return D.layer===M.layer}),67),R.push(M)},this),this.mapRenderKey_=(0,v.KT)(this,l.A.CHANGE,w.render,w),this.changed())}setSource(w){this.set(s.A.SOURCE,w)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(y,w){if(!y.visible)return!1;const S=w.resolution;if(S<y.minResolution||S>=y.maxResolution)return!1;const O=w.zoom;return O>y.minZoom&&O<=y.maxZoom}const b=h},75332:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},61597:(J,g,t)=>{"use strict";t.d(g,{Cc:()=>v,KU:()=>m,Mg:()=>h,Q1:()=>l,RI:()=>b,eh:()=>f,hG:()=>s,mk:()=>y,qE:()=>i,xP:()=>p});function i(w,S,O){return Math.min(Math.max(w,S),O)}function l(w,S,O,R,M,D){const P=M-O,T=D-R;if(P!==0||T!==0){const A=((w-O)*P+(S-R)*T)/(P*P+T*T);A>1?(O=M,R=D):A>0&&(O+=P*A,R+=T*A)}return s(w,S,O,R)}function s(w,S,O,R){const M=O-w,D=R-S;return M*M+D*D}function m(w){const S=w.length;for(let R=0;R<S;R++){let M=R,D=Math.abs(w[R][R]);for(let T=R+1;T<S;T++){const A=Math.abs(w[T][R]);A>D&&(D=A,M=T)}if(D===0)return null;const P=w[M];w[M]=w[R],w[R]=P;for(let T=R+1;T<S;T++){const A=-w[T][R]/w[R][R];for(let j=R;j<S+1;j++)R==j?w[T][j]=0:w[T][j]+=A*w[R][j]}}const O=new Array(S);for(let R=S-1;R>=0;R--){O[R]=w[R][S]/w[R][R];for(let M=R-1;M>=0;M--)w[M][S]-=w[M][R]*O[R]}return O}function u(w){return w*180/Math.PI}function f(w){return w*Math.PI/180}function p(w,S){const O=w%S;return O*S<0?O+S:O}function v(w,S,O){return w+O*(S-w)}function h(w,S){const O=Math.pow(10,S);return Math.round(w*O)/O}function d(w,S){return Math.round(h(w,S))}function b(w,S){return Math.floor(h(w,S))}function y(w,S){return Math.ceil(h(w,S))}},43530:(J,g,t)=>{"use strict";t.d(g,{I:()=>i,p:()=>l});function i(s){for(const m in s)delete s[m]}function l(s){let m;for(m in s)return!1;return!m}},22796:(J,g,t)=>{"use strict";t.d(g,{Ig:()=>s,Av:()=>xe,RJ:()=>V,tI:()=>tt,Rb:()=>pt,Ad:()=>At,SD:()=>ee,Jt:()=>pe,hO:()=>ye,RG:()=>F,FO:()=>U,Tf:()=>Ut,WP:()=>Rt,te:()=>it,JR:()=>et,vN:()=>I,pd:()=>Y});const i={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function l(He){return i[He]}const s={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class m{constructor(Fe){this.code_=Fe.code,this.units_=Fe.units,this.extent_=Fe.extent!==void 0?Fe.extent:null,this.worldExtent_=Fe.worldExtent!==void 0?Fe.worldExtent:null,this.axisOrientation_=Fe.axisOrientation!==void 0?Fe.axisOrientation:"enu",this.global_=Fe.global!==void 0?Fe.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=Fe.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=Fe.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||s[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(Fe){this.global_=Fe,this.canWrapX_=!!(Fe&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(Fe){this.defaultTileGrid_=Fe}setExtent(Fe){this.extent_=Fe,this.canWrapX_=!!(this.global_&&Fe)}setWorldExtent(Fe){this.worldExtent_=Fe}setGetPointResolution(Fe){this.getPointResolutionFunc_=Fe}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const u=m,f=6378137,p=Math.PI*f,v=[-p,-p,p,p],h=[-180,-85,180,85],d=f*Math.log(Math.tan(Math.PI/2));class b extends u{constructor(Fe){super({code:Fe,units:"m",extent:v,global:!0,worldExtent:h,getPointResolution:function(ze,qe){return ze/Math.cosh(qe[1]/f)}})}}const y=[new b("EPSG:3857"),new b("EPSG:102100"),new b("EPSG:102113"),new b("EPSG:900913"),new b("http://www.opengis.net/def/crs/EPSG/0/3857"),new b("http://www.opengis.net/gml/srs/epsg.xml#3857")];function w(He,Fe,ze){const qe=He.length;ze=ze>1?ze:2,Fe===void 0&&(ze>2?Fe=He.slice():Fe=new Array(qe));for(let We=0;We<qe;We+=ze){Fe[We]=p*He[We]/180;let _t=f*Math.log(Math.tan(Math.PI*(+He[We+1]+90)/360));_t>d?_t=d:_t<-d&&(_t=-d),Fe[We+1]=_t}return Fe}function S(He,Fe,ze){const qe=He.length;ze=ze>1?ze:2,Fe===void 0&&(ze>2?Fe=He.slice():Fe=new Array(qe));for(let We=0;We<qe;We+=ze)Fe[We]=180*He[We]/p,Fe[We+1]=360*Math.atan(Math.exp(He[We+1]/f))/Math.PI-90;return Fe}const O=6378137,R=[-180,-90,180,90],M=Math.PI*O/180;class D extends u{constructor(Fe,ze){super({code:Fe,units:"degrees",extent:R,axisOrientation:ze,global:!0,metersPerUnit:M,worldExtent:R})}}const P=[new D("CRS:84"),new D("EPSG:4326","neu"),new D("urn:ogc:def:crs:OGC:1.3:CRS84"),new D("urn:ogc:def:crs:OGC:2:84"),new D("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new D("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new D("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let T={};function A(){T={}}function j(He){return T[He]||T[He.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function ae(He,Fe){T[He]=Fe}let _={};function N(){_={}}function W(He,Fe,ze){const qe=He.getCode(),We=Fe.getCode();qe in _||(_[qe]={}),_[qe][We]=ze}function he(He,Fe){const ze=He.getCode(),qe=Fe.getCode(),We=_[ze][qe];return delete _[ze][qe],isEmpty(_[ze])&&delete _[ze],We}function me(He,Fe){let ze;return He in _&&Fe in _[He]&&(ze=_[He][Fe]),ze}var fe=t(70915),ve=t(61597),ce=t(6933),oe=t(52490),re=t(54422);let H=!0;function V(He){H=!(He===void 0?!0:He)}function Q(He,Fe){if(Fe!==void 0){for(let ze=0,qe=He.length;ze<qe;++ze)Fe[ze]=He[ze];Fe=Fe}else Fe=He.slice();return Fe}function Te(He,Fe){if(Fe!==void 0&&He!==Fe){for(let ze=0,qe=He.length;ze<qe;++ze)Fe[ze]=He[ze];He=Fe}return He}function Re(He){ae(He.getCode(),He),W(He,He,Q)}function ne(He){He.forEach(Re)}function pe(He){return typeof He=="string"?j(He):He||null}function ye(He,Fe,ze,qe){He=pe(He);let We;const _t=He.getPointResolutionFunc();if(_t){if(We=_t(Fe,ze),qe&&qe!==He.getUnits()){const ct=He.getMetersPerUnit();ct&&(We=We*ct/s[qe])}}else{const ct=He.getUnits();if(ct=="degrees"&&!qe||qe=="degrees")We=Fe;else{const Ge=U(He,pe("EPSG:4326"));if(Ge===Te&&ct!=="degrees")We=Fe*He.getMetersPerUnit();else{let Me=[ze[0]-Fe/2,ze[1],ze[0]+Fe/2,ze[1],ze[0],ze[1]-Fe/2,ze[0],ze[1]+Fe/2];Me=Ge(Me,Me,2);const ie=(0,oe.Yf)(Me.slice(0,2),Me.slice(2,4)),ge=(0,oe.Yf)(Me.slice(4,6),Me.slice(6,8));We=(ie+ge)/2}const st=qe?s[qe]:He.getMetersPerUnit();st!==void 0&&(We/=st)}}return We}function Se(He){ne(He),He.forEach(function(Fe){He.forEach(function(ze){Fe!==ze&&W(Fe,ze,Q)})})}function Ae(He,Fe,ze,qe){He.forEach(function(We){Fe.forEach(function(_t){W(We,_t,ze),W(_t,We,qe)})})}function Ee(){clearProj(),clearTransformFuncs()}function xe(He,Fe){return He?typeof He=="string"?pe(He):He:pe(Fe)}function nt(He){return function(Fe,ze,qe){const We=Fe.length;qe=qe!==void 0?qe:2,ze=ze!==void 0?ze:new Array(We);for(let _t=0;_t<We;_t+=qe){const ct=He(Fe.slice(_t,_t+qe)),Ge=ct.length;for(let st=0,Me=qe;st<Me;++st)ze[_t+st]=st>=Ge?Fe[_t+st]:ct[st]}return ze}}function Tt(He,Fe,ze,qe){const We=pe(He),_t=pe(Fe);addTransformFunc(We,_t,nt(ze)),addTransformFunc(_t,We,nt(qe))}function pt(He,Fe){return V(),Y(He,"EPSG:4326",Fe!==void 0?Fe:"EPSG:3857")}function Rt(He,Fe){const ze=Y(He,Fe!==void 0?Fe:"EPSG:3857","EPSG:4326"),qe=ze[0];return(qe<-180||qe>180)&&(ze[0]=(0,ve.xP)(qe+180,360)-180),ze}function tt(He,Fe){if(He===Fe)return!0;const ze=He.getUnits()===Fe.getUnits();return(He.getCode()===Fe.getCode()||U(He,Fe)===Q)&&ze}function U(He,Fe){const ze=He.getCode(),qe=Fe.getCode();let We=me(ze,qe);return We||(We=Te),We}function F(He,Fe){const ze=pe(He),qe=pe(Fe);return U(ze,qe)}function Y(He,Fe,ze){return F(Fe,ze)(He,void 0,He.length)}function le(He,Fe,ze,qe){const We=F(Fe,ze);return(0,fe.NW)(He,We,void 0,qe)}function ke(He,Fe,ze){return U(Fe,ze)(He)}let Ye=null;function ft(He){Ye=pe(He)}function wt(){Ye=null}function Ut(){return Ye}function Ke(){ft("EPSG:4326")}function it(He,Fe){return Ye?Y(He,Fe,Ye):He}function At(He,Fe){return Ye?Y(He,Ye,Fe):(H&&!(0,ce.aI)(He,[0,0])&&He[0]>=-180&&He[0]<=180&&He[1]>=-90&&He[1]<=90&&(H=!1,(0,re.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),He)}function et(He,Fe){return Ye?le(He,Fe,Ye):He}function ee(He,Fe){return Ye?le(He,Ye,Fe):He}function I(He,Fe){if(!Ye)return He;const ze=pe(Fe).getUnits(),qe=Ye.getUnits();return ze&&qe?He*s[ze]/s[qe]:He}function K(He,Fe){if(!Ye)return He;const ze=pe(Fe).getUnits(),qe=Ye.getUnits();return ze&&qe?He*METERS_PER_UNIT[qe]/METERS_PER_UNIT[ze]:He}function ue(He,Fe,ze){return function(qe){let We,_t;if(He.canWrapX()){const ct=He.getExtent(),Ge=getWidth(ct);qe=qe.slice(0),_t=getWorldsAway(qe,He,Ge),_t&&(qe[0]=qe[0]-_t*Ge),qe[0]=clamp(qe[0],ct[0],ct[2]),qe[1]=clamp(qe[1],ct[1],ct[3]),We=ze(qe)}else We=ze(qe);return _t&&Fe.canWrapX()&&(We[0]+=_t*getWidth(Fe.getExtent())),We}}function De(){Se(y),Se(P),Ae(P,y,w,S)}De()},9960:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=t(1685);class l extends i.Ay{constructor(u,f,p,v){super(u),this.inversePixelTransform=f,this.frameState=p,this.context=v}}const s=l},83984:(J,g,t)=>{"use strict";t.d(g,{A:()=>i});const i={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},38774:(J,g,t)=>{"use strict";t.d(g,{Jw:()=>fe,M8:()=>O,MY:()=>S,NT:()=>w,Oq:()=>h,TA:()=>W,Tq:()=>R,ZV:()=>f,_K:()=>b,_m:()=>v,aq:()=>M,eL:()=>y,fZ:()=>j,jT:()=>he,qY:()=>p,vk:()=>d,yY:()=>D});var i=t(34120),l=t(7771),s=t(43530),m=t(68711),u=t(25176);const f="10px sans-serif",p="#000",v="round",h=[],d=0,b="round",y=10,w="#000",S="center",O="middle",R=[0,0,0,0],M=1,D=new i.A;let P=null,T;const A={},j=function(){const oe="32px ",re=["monospace","serif"],H=re.length,V="wmytzilWMYTZIL@#/&?$%10\uF013";let Q,Te;function Re(pe,ye,Se){let Ae=!0;for(let Ee=0;Ee<H;++Ee){const xe=re[Ee];if(Te=N(pe+" "+ye+" "+oe+xe,V),Se!=xe){const nt=N(pe+" "+ye+" "+oe+Se+","+xe,V);Ae=Ae&&nt!=Te}}return!!Ae}function ne(){let pe=!0;const ye=D.getKeys();for(let Se=0,Ae=ye.length;Se<Ae;++Se){const Ee=ye[Se];D.get(Ee)<100&&(Re.apply(this,Ee.split(` `))?((0,s.I)(A),P=null,T=void 0,D.set(Ee,100)):(D.set(Ee,D.get(Ee)+1,!0),pe=!1))}pe&&(clearInterval(Q),Q=void 0)}return function(pe){const ye=(0,u.K5)(pe);if(!ye)return;const Se=ye.families;for(let Ae=0,Ee=Se.length;Ae<Ee;++Ae){const xe=Se[Ae],nt=ye.style+` `+ye.weight+` `+xe;D.get(nt)===void 0&&(D.set(nt,100,!0),Re(ye.style,ye.weight,xe)||(D.set(nt,0,!0),Q===void 0&&(Q=setInterval(ne,32))))}}}(),ae=function(){let ce;return function(oe){let re=A[oe];if(re==null){if(l.Wl){const H=(0,u.K5)(oe),V=_(oe,"\u017Dg");re=(isNaN(Number(H.lineHeight))?1.2:Number(H.lineHeight))*(V.actualBoundingBoxAscent+V.actualBoundingBoxDescent)}else ce||(ce=document.createElement("div"),ce.innerHTML="M",ce.style.minHeight="0",ce.style.maxHeight="none",ce.style.height="auto",ce.style.padding="0",ce.style.border="none",ce.style.position="absolute",ce.style.display="block",ce.style.left="-99999px"),ce.style.font=oe,document.body.appendChild(ce),re=ce.offsetHeight,document.body.removeChild(ce);A[oe]=re}return re}}();function _(ce,oe){return P||(P=(0,m.Y)(1,1)),ce!=T&&(P.font=ce,T=P.font),P.measureText(oe)}function N(ce,oe){return _(ce,oe).width}function W(ce,oe,re){if(oe in re)return re[oe];const H=oe.split(` `).reduce((V,Q)=>Math.max(V,N(ce,Q)),0);return re[oe]=H,H}function he(ce,oe){const re=[],H=[],V=[];let Q=0,Te=0,Re=0,ne=0;for(let pe=0,ye=oe.length;pe<=ye;pe+=2){const Se=oe[pe];if(Se===` `||pe===ye){Q=Math.max(Q,Te),V.push(Te),Te=0,Re+=ne;continue}const Ae=oe[pe+1]||ce.font,Ee=N(Ae,Se);re.push(Ee),Te+=Ee;const xe=ae(Ae);H.push(xe),ne=Math.max(ne,xe)}return{width:Q,height:Re,widths:re,heights:H,lineWidths:V}}function me(ce,oe,re,H){oe!==0&&(ce.translate(re,H),ce.rotate(oe),ce.translate(-re,-H))}function fe(ce,oe,re,H,V,Q,Te,Re,ne,pe,ye){ce.save(),re!==1&&(ce.globalAlpha*=re),oe&&ce.setTransform.apply(ce,oe),H.contextInstructions?(ce.translate(ne,pe),ce.scale(ye[0],ye[1]),ve(H,ce)):ye[0]<0||ye[1]<0?(ce.translate(ne,pe),ce.scale(ye[0],ye[1]),ce.drawImage(H,V,Q,Te,Re,0,0,Te,Re)):ce.drawImage(H,V,Q,Te,Re,ne,pe,Te*ye[0],Re*ye[1]),ce.restore()}function ve(ce,oe){const re=ce.contextInstructions;for(let H=0,V=re.length;H<V;H+=2)Array.isArray(re[H+1])?oe[re[H]].apply(oe,re[H+1]):oe[re[H]]=re[H+1]}},24498:(J,g,t)=>{"use strict";t.d(g,{a$:()=>m,b8:()=>l,cq:()=>u,dv:()=>s});var i=t(61597);function l(f){if(f!==void 0)return 0}function s(f){if(f!==void 0)return f}function m(f){const p=2*Math.PI/f;return function(v,h){if(h)return v;if(v!==void 0)return v=Math.floor(v/p+.5)*p,v}}function u(f){return f=f||(0,i.eh)(5),function(p,v){if(v)return p;if(p!==void 0)return Math.abs(p)<=f?0:p}}},6782:(J,g,t)=>{"use strict";t.d(g,{Ie:()=>l,hs:()=>s,xq:()=>m});function i(u,f,p){return p===void 0&&(p=[0,0]),p[0]=u[0]+2*f,p[1]=u[1]+2*f,p}function l(u){return u[0]>0&&u[1]>0}function s(u,f,p){return p===void 0&&(p=[0,0]),p[0]=u[0]*f+.5|0,p[1]=u[1]*f+.5|0,p}function m(u,f){return Array.isArray(u)?u:(f===void 0?f=[u,u]:(f[0]=u,f[1]=u),f)}},52490:(J,g,t)=>{"use strict";t.d(g,{R3:()=>u,UG:()=>p,Yf:()=>s});var i=t(61597);const l=63710088e-1;function s(h,d,b){b=b||l;const y=(0,i.eh)(h[1]),w=(0,i.eh)(d[1]),S=(w-y)/2,O=(0,i.eh)(d[0]-h[0])/2,R=Math.sin(S)*Math.sin(S)+Math.sin(O)*Math.sin(O)*Math.cos(y)*Math.cos(w);return 2*b*Math.atan2(Math.sqrt(R),Math.sqrt(1-R))}function m(h,d){let b=0;for(let y=0,w=h.length;y<w-1;++y)b+=s(h[y],h[y+1],d);return b}function u(h,d){d=d||{};const b=d.radius||l,y=d.projection||"EPSG:3857",w=h.getType();w!=="GeometryCollection"&&(h=h.clone().transform(y,"EPSG:4326"));let S=0,O,R,M,D,P,T;switch(w){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{O=h.getCoordinates(),S=m(O,b);break}case"MultiLineString":case"Polygon":{for(O=h.getCoordinates(),M=0,D=O.length;M<D;++M)S+=m(O[M],b);break}case"MultiPolygon":{for(O=h.getCoordinates(),M=0,D=O.length;M<D;++M)for(R=O[M],P=0,T=R.length;P<T;++P)S+=m(R[P],b);break}case"GeometryCollection":{const A=h.getGeometries();for(M=0,D=A.length;M<D;++M)S+=u(A[M],d);break}default:throw new Error("Unsupported geometry type: "+w)}return S}function f(h,d){let b=0;const y=h.length;let w=h[y-1][0],S=h[y-1][1];for(let O=0;O<y;O++){const R=h[O][0],M=h[O][1];b+=(0,i.eh)(R-w)*(2+Math.sin((0,i.eh)(S))+Math.sin((0,i.eh)(M))),w=R,S=M}return b*d*d/2}function p(h,d){d=d||{};const b=d.radius||l,y=d.projection||"EPSG:3857",w=h.getType();w!=="GeometryCollection"&&(h=h.clone().transform(y,"EPSG:4326"));let S=0,O,R,M,D,P,T;switch(w){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(O=h.getCoordinates(),S=Math.abs(f(O[0],b)),M=1,D=O.length;M<D;++M)S-=Math.abs(f(O[M],b));break}case"MultiPolygon":{for(O=h.getCoordinates(),M=0,D=O.length;M<D;++M)for(R=O[M],S+=Math.abs(f(R[0],b)),P=1,T=R.length;P<T;++P)S-=Math.abs(f(R[P],b));break}case"GeometryCollection":{const A=h.getGeometries();for(M=0,D=A.length;M<D;++M)S+=p(A[M],d);break}default:throw new Error("Unsupported geometry type: "+w)}return S}function v(h,d,b,y){y=y||l;const w=toRadians(h[1]),S=toRadians(h[0]),O=d/y,R=Math.asin(Math.sin(w)*Math.cos(O)+Math.cos(w)*Math.sin(O)*Math.cos(b)),M=S+Math.atan2(Math.sin(b)*Math.sin(O)*Math.cos(w),Math.cos(O)-Math.sin(w)*Math.sin(R));return[toDegrees(M),toDegrees(R)]}},4622:(J,g,t)=>{"use strict";t.d(g,{u:()=>u});var i=t(89352);class l{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let p=0;for(const v in this.cache_){const h=this.cache_[v];!(p++&3)&&!h.hasListener()&&(delete this.cache_[v],--this.cacheSize_)}}}get(p,v,h){const d=s(p,v,h);return d in this.cache_?this.cache_[d]:null}set(p,v,h,d){const b=s(p,v,h);this.cache_[b]=d,++this.cacheSize_}setSize(p){this.maxCacheSize_=p,this.expire()}}function s(f,p,v){const h=v?(0,i.oJ)(v):"null";return p+":"+f+":"+h}var m=null;const u=new l},57115:(J,g,t)=>{"use strict";t.d(g,{L:()=>i,R:()=>l});const i=42,l=256},9703:(J,g,t)=>{"use strict";t.d(g,{Bb:()=>h,T9:()=>M,Tl:()=>w,Zz:()=>S,cL:()=>u,dI:()=>T,e$:()=>d,hs:()=>b,k3:()=>v,lw:()=>f,rQ:()=>y,vt:()=>m});var i=t(7771),l=t(90588);const s=new Array(6);function m(){return[1,0,0,1,0,0]}function u(A){return p(A,1,0,0,1,0,0)}function f(A,j){const ae=A[0],_=A[1],N=A[2],W=A[3],he=A[4],me=A[5],fe=j[0],ve=j[1],ce=j[2],oe=j[3],re=j[4],H=j[5];return A[0]=ae*fe+N*ve,A[1]=_*fe+W*ve,A[2]=ae*ce+N*oe,A[3]=_*ce+W*oe,A[4]=ae*re+N*H+he,A[5]=_*re+W*H+me,A}function p(A,j,ae,_,N,W,he){return A[0]=j,A[1]=ae,A[2]=_,A[3]=N,A[4]=W,A[5]=he,A}function v(A,j){return A[0]=j[0],A[1]=j[1],A[2]=j[2],A[3]=j[3],A[4]=j[4],A[5]=j[5],A}function h(A,j){const ae=j[0],_=j[1];return j[0]=A[0]*ae+A[2]*_+A[4],j[1]=A[1]*ae+A[3]*_+A[5],j}function d(A,j){const ae=Math.cos(j),_=Math.sin(j);return f(A,p(s,ae,_,-_,ae,0,0))}function b(A,j,ae){return f(A,p(s,j,0,0,ae,0,0))}function y(A,j,ae){return p(A,j,0,0,ae,0,0)}function w(A,j,ae){return f(A,p(s,1,0,0,1,j,ae))}function S(A,j,ae,_,N,W,he,me){const fe=Math.sin(W),ve=Math.cos(W);return A[0]=_*ve,A[1]=N*fe,A[2]=-_*fe,A[3]=N*ve,A[4]=he*_*ve-me*_*fe+j,A[5]=he*N*fe+me*N*ve+ae,A}function O(A,j,ae,_,N,W,he){return T(S(m(),A,j,ae,_,N,W,he))}function R(A){return M(A,A)}function M(A,j){const ae=D(j);(0,l.v)(ae!==0,32);const _=j[0],N=j[1],W=j[2],he=j[3],me=j[4],fe=j[5];return A[0]=he/ae,A[1]=-N/ae,A[2]=-W/ae,A[3]=_/ae,A[4]=(W*fe-he*me)/ae,A[5]=-(_*fe-N*me)/ae,A}function D(A){return A[0]*A[3]-A[1]*A[2]}let P;function T(A){const j="matrix("+A.join(", ")+")";if(i.Wl)return j;const ae=P||(P=document.createElement("div"));return ae.style.transform=j,ae.style.transform}},4087:(J,g,t)=>{"use strict";t.d(g,{b0:()=>i,v6:()=>s});function i(){throw new Error("Unimplemented abstract method.")}let l=0;function s(u){return u.ol_uid||(u.ol_uid=String(++l))}const m="7.4.0"},29426:(J,g,t)=>{"use strict";t.d(g,{Ay:()=>kr});var i=t(96540),l=t(5556);function s(Ve){var Ot,wn,Wt="";if(typeof Ve=="string"||typeof Ve=="number")Wt+=Ve;else if(typeof Ve=="object")if(Array.isArray(Ve))for(Ot=0;Ot<Ve.length;Ot++)Ve[Ot]&&(wn=s(Ve[Ot]))&&(Wt&&(Wt+=" "),Wt+=wn);else for(Ot in Ve)Ve[Ot]&&(Wt&&(Wt+=" "),Wt+=Ot);return Wt}function m(){for(var Ve,Ot,wn=0,Wt="";wn<arguments.length;)(Ve=arguments[wn++])&&(Ot=s(Ve))&&(Wt&&(Wt+=" "),Wt+=Ot);return Wt}const u=m;var f=t(47654);function p(Ve){return JSON.stringify(Ve)}function v(Ve){return typeof Ve=="string"}function h(Ve,Ot,wn){return wn.indexOf(Ve)===Ot}function d(Ve){return Ve.toLowerCase()===Ve}function b(Ve){return Ve.indexOf(",")===-1?Ve:Ve.split(",")}function y(Ve){if(!Ve)return Ve;if(Ve==="C"||Ve==="posix"||Ve==="POSIX")return"en-US";if(Ve.indexOf(".")!==-1){var Ot=Ve.split(".")[0],wn=Ot===void 0?"":Ot;return y(wn)}if(Ve.indexOf("@")!==-1){var Wt=Ve.split("@")[0],wn=Wt===void 0?"":Wt;return y(wn)}if(Ve.indexOf("-")===-1||!d(Ve))return Ve;var Yt=Ve.split("-"),zn=Yt[0],Nr=Yt[1],si=Nr===void 0?"":Nr;return"".concat(zn,"-").concat(si.toUpperCase())}function w(Ve){var Ot=Ve===void 0?{}:Ve,wn=Ot.useFallbackLocale,Wt=wn===void 0?!0:wn,Yt=Ot.fallbackLocale,zn=Yt===void 0?"en-US":Yt,Nr=[];if(typeof navigator<"u"){for(var si=navigator.languages||[],Ki=[],Bi=0,Xi=si;Bi<Xi.length;Bi++){var vo=Xi[Bi];Ki=Ki.concat(b(vo))}var ea=navigator.language,la=ea&&b(ea);Nr=Nr.concat(Ki,la)}return Wt&&Nr.push(zn),Nr.filter(v).map(y).filter(h)}var S=f(w,p);function O(Ve){return S(Ve)[0]||null}var R=f(O,p);const M=R;function D(Ve,Ot,wn){return function(Yt,zn){zn===void 0&&(zn=wn);var Nr=Ve(Yt)+zn;return Ot(Nr)}}function P(Ve){return function(wn){return new Date(Ve(wn).getTime()-1)}}function T(Ve,Ot){return function(Wt){return[Ve(Wt),Ot(Wt)]}}function A(Ve){if(Ve instanceof Date)return Ve.getFullYear();if(typeof Ve=="number")return Ve;var Ot=parseInt(Ve,10);if(typeof Ve=="string"&&!isNaN(Ot))return Ot;throw new Error("Failed to get year from date: ".concat(Ve,"."))}function j(Ve){if(Ve instanceof Date)return Ve.getMonth();throw new Error("Failed to get month from date: ".concat(Ve,"."))}function ae(Ve){if(Ve instanceof Date)return Ve.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(Ve,"."))}function _(Ve){if(Ve instanceof Date)return Ve.getDate();throw new Error("Failed to get year from date: ".concat(Ve,"."))}function N(Ve){if(Ve instanceof Date)return Ve.getHours();if(typeof Ve=="string"){var Ot=Ve.split(":");if(Ot.length>=2){var wn=Ot[0];if(wn){var Wt=parseInt(wn,10);if(!isNaN(Wt))return Wt}}}throw new Error("Failed to get hours from date: ".concat(Ve,"."))}function W(Ve){if(Ve instanceof Date)return Ve.getMinutes();if(typeof Ve=="string"){var Ot=Ve.split(":");if(Ot.length>=2){var wn=Ot[1]||"0",Wt=parseInt(wn,10);if(!isNaN(Wt))return Wt}}throw new Error("Failed to get minutes from date: ".concat(Ve,"."))}function he(Ve){if(Ve instanceof Date)return Ve.getSeconds();if(typeof Ve=="string"){var Ot=Ve.split(":");if(Ot.length>=2){var wn=Ot[2]||"0",Wt=parseInt(wn,10);if(!isNaN(Wt))return Wt}}throw new Error("Failed to get seconds from date: ".concat(Ve,"."))}function me(Ve){var Ot=A(Ve),wn=Ot+(-Ot+1)%100,Wt=new Date;return Wt.setFullYear(wn,0,1),Wt.setHours(0,0,0,0),Wt}var fe=D(A,me,-100),ve=D(A,me,100),ce=P(ve),oe=D(A,ce,-100),re=D(A,ce,100),H=T(me,ce);function V(Ve){var Ot=A(Ve),wn=Ot+(-Ot+1)%10,Wt=new Date;return Wt.setFullYear(wn,0,1),Wt.setHours(0,0,0,0),Wt}var Q=D(A,V,-10),Te=D(A,V,10),Re=P(Te),ne=D(A,Re,-10),pe=D(A,Re,10),ye=T(V,Re);function Se(Ve){var Ot=A(Ve),wn=new Date;return wn.setFullYear(Ot,0,1),wn.setHours(0,0,0,0),wn}var Ae=D(A,Se,-1),Ee=D(A,Se,1),xe=P(Ee),nt=D(A,xe,-1),Tt=D(A,xe,1),pt=T(Se,xe);function Rt(Ve,Ot){return function(Wt,Yt){Yt===void 0&&(Yt=Ot);var zn=A(Wt),Nr=j(Wt)+Yt,si=new Date;return si.setFullYear(zn,Nr,1),si.setHours(0,0,0,0),Ve(si)}}function tt(Ve){var Ot=A(Ve),wn=j(Ve),Wt=new Date;return Wt.setFullYear(Ot,wn,1),Wt.setHours(0,0,0,0),Wt}var U=Rt(tt,-1),F=Rt(tt,1),Y=P(F),le=Rt(Y,-1),ke=Rt(Y,1),Ye=T(tt,Y);function ft(Ve,Ot){return function(Wt,Yt){Yt===void 0&&(Yt=Ot);var zn=A(Wt),Nr=j(Wt),si=_(Wt)+Yt,Ki=new Date;return Ki.setFullYear(zn,Nr,si),Ki.setHours(0,0,0,0),Ve(Ki)}}function wt(Ve){var Ot=A(Ve),wn=j(Ve),Wt=_(Ve),Yt=new Date;return Yt.setFullYear(Ot,wn,Wt),Yt.setHours(0,0,0,0),Yt}var Ut=ft(wt,-1),Ke=ft(wt,1),it=P(Ke),At=ft(it,-1),et=ft(it,1),ee=T(wt,it);function I(Ve){return _(Y(Ve))}function K(Ve,Ot){Ot===void 0&&(Ot=2);var wn="".concat(Ve);return wn.length>=Ot?Ve:"0000".concat(wn).slice(-Ot)}function ue(Ve){var Ot=K(N(Ve)),wn=K(W(Ve));return"".concat(Ot,":").concat(wn)}function De(Ve){var Ot=K(N(Ve)),wn=K(W(Ve)),Wt=K(he(Ve));return"".concat(Ot,":").concat(wn,":").concat(Wt)}function He(Ve){var Ot=K(A(Ve),4),wn=K(ae(Ve));return"".concat(Ot,"-").concat(wn)}function Fe(Ve){var Ot=K(A(Ve),4),wn=K(ae(Ve)),Wt=K(_(Ve));return"".concat(Ot,"-").concat(wn,"-").concat(Wt)}function ze(Ve){return"".concat(Fe(Ve),"T").concat(De(Ve))}var qe,We={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},_t={ARABIC:"Arabic",HEBREW:"Hebrew",ISO_8601:"ISO 8601",US:"US"},ct=(qe={},qe[We.GREGORY]=["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],qe[We.HEBREW]=["he","he-IL"],qe[We.ISLAMIC]=["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"],qe),Ge=[0,1,2,3,4,5,6],st=new Map;function Me(Ve){return function(wn,Wt){var Yt=wn||M();st.has(Yt)||st.set(Yt,new Map);var zn=st.get(Yt);return zn.has(Ve)||zn.set(Ve,new Intl.DateTimeFormat(Yt||void 0,Ve).format),zn.get(Ve)(Wt)}}function ie(Ve){var Ot=new Date(Ve);return new Date(Ot.setHours(12))}function ge(Ve){return function(Ot,wn){return Me(Ve)(Ot,ie(wn))}}var z={day:"numeric",month:"numeric",year:"numeric"},be={day:"numeric"},Qe={day:"numeric",month:"long",year:"numeric"},Bt={month:"long"},nn={month:"long",year:"numeric"},bt={weekday:"short"},at={weekday:"long"},$t={year:"numeric"},On=ge(z),Ct=ge(be),Zt=ge(Qe),Wn=ge(Bt),Zn=ge(nn),xt=ge(bt),Xe=ge(at),gn=ge($t),Qt=Ge[0],Dt=Ge[5],hn=Ge[6];function cn(Ve,Ot){Ot===void 0&&(Ot=We.ISO_8601);var wn=Ve.getDay();switch(Ot){case We.ISO_8601:return(wn+6)%7;case We.ISLAMIC:return(wn+1)%7;case We.HEBREW:case We.GREGORY:return wn;default:throw new Error("Unsupported calendar type.")}}function an(Ve){var Ot=me(Ve);return A(Ot)}function Or(Ve){var Ot=V(Ve);return A(Ot)}function Ln(Ve,Ot){Ot===void 0&&(Ot=We.ISO_8601);var wn=A(Ve),Wt=j(Ve),Yt=Ve.getDate()-cn(Ve,Ot);return new Date(wn,Wt,Yt)}function En(Ve,Ot){Ot===void 0&&(Ot=We.ISO_8601);var wn=Ot===We.GREGORY?We.GREGORY:We.ISO_8601,Wt=Ln(Ve,Ot),Yt=A(Ve)+1,zn,Nr;do zn=new Date(Yt,0,wn===We.ISO_8601?4:1),Nr=Ln(zn,Ot),Yt-=1;while(Ve<Nr);return Math.round((Wt.getTime()-Nr.getTime())/(864e5*7))+1}function Gn(Ve,Ot){switch(Ve){case"century":return me(Ot);case"decade":return V(Ot);case"year":return Se(Ot);case"month":return tt(Ot);case"day":return wt(Ot);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function rr(Ve,Ot){switch(Ve){case"century":return fe(Ot);case"decade":return Q(Ot);case"year":return Ae(Ot);case"month":return U(Ot);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function sr(Ve,Ot){switch(Ve){case"century":return ve(Ot);case"decade":return Te(Ot);case"year":return Ee(Ot);case"month":return F(Ot);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function pi(Ve,Ot){switch(Ve){case"decade":return Q(Ot,-100);case"year":return Ae(Ot,-10);case"month":return U(Ot,-12);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function yi(Ve,Ot){switch(Ve){case"decade":return Te(Ot,100);case"year":return Ee(Ot,10);case"month":return F(Ot,12);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function jr(Ve,Ot){switch(Ve){case"century":return ce(Ot);case"decade":return Re(Ot);case"year":return xe(Ot);case"month":return Y(Ot);case"day":return it(Ot);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function ui(Ve,Ot){switch(Ve){case"century":return oe(Ot);case"decade":return ne(Ot);case"year":return nt(Ot);case"month":return le(Ot);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function bi(Ve,Ot){switch(Ve){case"decade":return ne(Ot,-100);case"year":return nt(Ot,-10);case"month":return le(Ot,-12);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function ri(Ve,Ot){switch(Ve){case"century":return H(Ot);case"decade":return ye(Ot);case"year":return pt(Ot);case"month":return Ye(Ot);case"day":return ee(Ot);default:throw new Error("Invalid rangeType: ".concat(Ve))}}function hi(Ve,Ot,wn){var Wt=[Ot,wn].sort(function(Yt,zn){return Yt.getTime()-zn.getTime()});return[Gn(Ve,Wt[0]),jr(Ve,Wt[1])]}function Si(Ve,Ot,wn){return Ot===void 0&&(Ot=gn),wn.map(function(Wt){return Ot(Ve,Wt)}).join(" \u2013 ")}function Kr(Ve,Ot,wn){return Si(Ve,Ot,H(wn))}function xi(Ve,Ot,wn){return Si(Ve,Ot,ye(wn))}function Ai(Ve){return Ve.getDay()===new Date().getDay()}function Pi(Ve,Ot){Ot===void 0&&(Ot=We.ISO_8601);var wn=Ve.getDay();switch(Ot){case We.ISLAMIC:case We.HEBREW:return wn===Dt||wn===hn;case We.ISO_8601:case We.GREGORY:return wn===hn||wn===Qt;default:throw new Error("Unsupported calendar type.")}}var io="react-calendar__navigation";function lo(Ve){var Ot=Ve.activeStartDate,wn=Ve.drillUp,Wt=Ve.formatMonthYear,Yt=Wt===void 0?Zn:Wt,zn=Ve.formatYear,Nr=zn===void 0?gn:zn,si=Ve.locale,Ki=Ve.maxDate,Bi=Ve.minDate,Xi=Ve.navigationAriaLabel,vo=Xi===void 0?"":Xi,ea=Ve.navigationAriaLive,la=Ve.navigationLabel,ss=Ve.next2AriaLabel,Rs=ss===void 0?"":ss,Ds=Ve.next2Label,Is=Ds===void 0?"\xBB":Ds,nu=Ve.nextAriaLabel,Ls=nu===void 0?"":nu,gu=Ve.nextLabel,Us=gu===void 0?"\u203A":gu,Iu=Ve.prev2AriaLabel,Wu=Iu===void 0?"":Iu,rl=Ve.prev2Label,Hu=rl===void 0?"\xAB":rl,Ts=Ve.prevAriaLabel,Al=Ts===void 0?"":Ts,fl=Ve.prevLabel,Rl=fl===void 0?"\u2039":fl,Bu=Ve.setActiveStartDate,Mn=Ve.showDoubleView,en=Ve.view,sn=Ve.views,qt=sn.indexOf(en)>0,In=en!=="century",Kn=rr(en,Ot),Fr=In?pi(en,Ot):void 0,ci=sr(en,Ot),Le=In?yi(en,Ot):void 0,te=function(){if(Kn.getFullYear()<0)return!0;var Vt=ui(en,Ot);return Bi&&Bi>=Vt}(),Ue=In&&function(){if(Fr.getFullYear()<0)return!0;var Vt=bi(en,Ot);return Bi&&Bi>=Vt}(),rt=Ki&&Ki<ci,ht=In&&Ki&&Ki<Le;function Gt(){Bu(Kn,"prev")}function xn(){Bu(Fr,"prev2")}function Hn(){Bu(ci,"next")}function wr(){Bu(Le,"next2")}function Wr(Vt){var dn=function(){switch(en){case"century":return Kr(si,Nr,Vt);case"decade":return xi(si,Nr,Vt);case"year":return Nr(si,Vt);case"month":return Yt(si,Vt);default:throw new Error("Invalid view: ".concat(en,"."))}}();return la?la({date:Vt,label:dn,locale:si||R()||void 0,view:en}):dn}function vt(){var Vt="".concat(io,"__label");return i.createElement("button",{"aria-label":vo,"aria-live":ea,className:Vt,disabled:!qt,onClick:wn,style:{flexGrow:1},type:"button"},i.createElement("span",{className:"".concat(Vt,"__labelText ").concat(Vt,"__labelText--from")},Wr(Ot)),Mn?i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(Vt,"__divider")}," \u2013 "),i.createElement("span",{className:"".concat(Vt,"__labelText ").concat(Vt,"__labelText--to")},Wr(ci))):null)}return i.createElement("div",{className:io},Hu!==null&&In?i.createElement("button",{"aria-label":Wu,className:"".concat(io,"__arrow ").concat(io,"__prev2-button"),disabled:Ue,onClick:xn,type:"button"},Hu):null,Rl!==null&&i.createElement("button",{"aria-label":Al,className:"".concat(io,"__arrow ").concat(io,"__prev-button"),disabled:te,onClick:Gt,type:"button"},Rl),vt(),Us!==null&&i.createElement("button",{"aria-label":Ls,className:"".concat(io,"__arrow ").concat(io,"__next-button"),disabled:rt,onClick:Hn,type:"button"},Us),Is!==null&&In?i.createElement("button",{"aria-label":Rs,className:"".concat(io,"__arrow ").concat(io,"__next2-button"),disabled:ht,onClick:wr,type:"button"},Is):null)}var Gr=function(){return Gr=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Gr.apply(this,arguments)},un=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn};function qn(Ve){return"".concat(Ve,"%")}function kn(Ve){var Ot=Ve.children,wn=Ve.className,Wt=Ve.count,Yt=Ve.direction,zn=Ve.offset,Nr=Ve.style,si=Ve.wrap,Ki=un(Ve,["children","className","count","direction","offset","style","wrap"]);return i.createElement("div",Gr({className:wn,style:Gr({display:"flex",flexDirection:Yt,flexWrap:si?"wrap":"nowrap"},Nr)},Ki),i.Children.map(Ot,function(Bi,Xi){var vo=zn&&Xi===0?qn(100*zn/Wt):null;return i.cloneElement(Bi,Gr(Gr({},Bi.props),{style:{flexBasis:qn(100/Wt),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:vo,marginInlineStart:vo,marginInlineEnd:0}}))}))}var St=t(9771),ln;function An(Ve,Ot,wn){return Ot&&Ot>Ve?Ot:wn&&wn<Ve?wn:Ve}function Cr(Ve,Ot){return Ot[0]<=Ve&&Ot[1]>=Ve}function _i(Ve,Ot){return Ve[0]<=Ot[0]&&Ve[1]>=Ot[1]}function Sn(Ve,Ot){return Cr(Ve[0],Ot)||Cr(Ve[1],Ot)}function ir(Ve,Ot,wn){var Wt=Sn(Ot,Ve),Yt=[];if(Wt){Yt.push(wn);var zn=Cr(Ve[0],Ot),Nr=Cr(Ve[1],Ot);zn&&Yt.push("".concat(wn,"Start")),Nr&&Yt.push("".concat(wn,"End")),zn&&Nr&&Yt.push("".concat(wn,"BothEnds"))}return Yt}function mt(Ve){return Array.isArray(Ve)?Ve[0]!==null&&Ve[1]!==null:Ve!==null}function fn(Ve){if(!Ve)throw new Error("args is required");var Ot=Ve.value,wn=Ve.date,Wt=Ve.hover,Yt="react-calendar__tile",zn=[Yt];if(!wn)return zn;var Nr=new Date,si=function(){if(Array.isArray(wn))return wn;var la=Ve.dateType;if(!la)throw new Error("dateType is required when date is not an array of two dates");return ri(la,wn)}();if(Cr(Nr,si)&&zn.push("".concat(Yt,"--now")),!Ot||!mt(Ot))return zn;var Ki=function(){if(Array.isArray(Ot))return Ot;var la=Ve.valueType;if(!la)throw new Error("valueType is required when value is not an array of two dates");return ri(la,Ot)}();_i(Ki,si)?zn.push("".concat(Yt,"--active")):Sn(Ki,si)&&zn.push("".concat(Yt,"--hasActive"));var Bi=ir(Ki,si,"".concat(Yt,"--range"));zn.push.apply(zn,Bi);var Xi=Array.isArray(Ot)?Ot:[Ot];if(Wt&&Xi.length===1){var vo=Wt>Ki[0]?[Ki[0],Wt]:[Wt,Ki[0]],ea=ir(vo,si,"".concat(Yt,"--hover"));zn.push.apply(zn,ea)}return zn}var gt=(ln={},ln[_t.ARABIC]=We.ISLAMIC,ln[_t.HEBREW]=We.HEBREW,ln[_t.ISO_8601]=We.ISO_8601,ln[_t.US]=We.GREGORY,ln);function tn(Ve){return Ve!==void 0&&Ve in _t}var Vn=!1;function Ur(Ve){if(tn(Ve)){var Ot=gt[Ve];return St(Vn,'Specifying calendarType="'.concat(Ve,'" is deprecated. Use calendarType="').concat(Ot,'" instead.')),Vn=!0,Ot}return Ve}function $r(Ve){for(var Ot=Ve.className,wn=Ve.count,Wt=wn===void 0?3:wn,Yt=Ve.dateTransform,zn=Ve.dateType,Nr=Ve.end,si=Ve.hover,Ki=Ve.offset,Bi=Ve.renderTile,Xi=Ve.start,vo=Ve.step,ea=vo===void 0?1:vo,la=Ve.value,ss=Ve.valueType,Rs=[],Ds=Xi;Ds<=Nr;Ds+=ea){var Is=Yt(Ds);Rs.push(Bi({classes:fn({date:Is,dateType:zn,hover:si,value:la,valueType:ss}),date:Is}))}return i.createElement(kn,{className:Ot,count:Wt,offset:Ki,wrap:!0},Rs)}function Pr(Ve){var Ot=Ve.activeStartDate,wn=Ve.children,Wt=Ve.classes,Yt=Ve.date,zn=Ve.formatAbbr,Nr=Ve.locale,si=Ve.maxDate,Ki=Ve.maxDateTransform,Bi=Ve.minDate,Xi=Ve.minDateTransform,vo=Ve.onClick,ea=Ve.onMouseOver,la=Ve.style,ss=Ve.tileClassName,Rs=Ve.tileContent,Ds=Ve.tileDisabled,Is=Ve.view,nu=(0,i.useMemo)(function(){var gu={activeStartDate:Ot,date:Yt,view:Is};return typeof ss=="function"?ss(gu):ss},[Ot,Yt,ss,Is]),Ls=(0,i.useMemo)(function(){var gu={activeStartDate:Ot,date:Yt,view:Is};return typeof Rs=="function"?Rs(gu):Rs},[Ot,Yt,Rs,Is]);return i.createElement("button",{className:u(Wt,nu),disabled:Bi&&Xi(Bi)>Yt||si&&Ki(si)<Yt||Ds&&Ds({activeStartDate:Ot,date:Yt,view:Is}),onClick:vo?function(gu){return vo(Yt,gu)}:void 0,onFocus:ea?function(){return ea(Yt)}:void 0,onMouseOver:ea?function(){return ea(Yt)}:void 0,style:la,type:"button"},zn?i.createElement("abbr",{"aria-label":zn(Nr,Yt)},wn):wn,Ls)}var zr=function(){return zr=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},zr.apply(this,arguments)},gi=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn},$i="react-calendar__century-view__decades__decade";function eo(Ve){var Ot=Ve.classes,wn=Ot===void 0?[]:Ot,Wt=Ve.currentCentury,Yt=Ve.formatYear,zn=Yt===void 0?gn:Yt,Nr=gi(Ve,["classes","currentCentury","formatYear"]),si=Nr.date,Ki=Nr.locale,Bi=[];return wn&&Bi.push.apply(Bi,wn),$i&&Bi.push($i),me(si).getFullYear()!==Wt&&Bi.push("".concat($i,"--neighboringCentury")),i.createElement(Pr,zr({},Nr,{classes:Bi,maxDateTransform:Re,minDateTransform:V,view:"century"}),xi(Ki,zn,si))}var ki=function(){return ki=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},ki.apply(this,arguments)},so=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn};function Ho(Ve){var Ot=Ve.activeStartDate,wn=Ve.hover,Wt=Ve.showNeighboringCentury,Yt=Ve.value,zn=Ve.valueType,Nr=so(Ve,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),si=an(Ot),Ki=si+(Wt?119:99);return i.createElement($r,{className:"react-calendar__century-view__decades",dateTransform:V,dateType:"decade",end:Ki,hover:wn,renderTile:function(Bi){var Xi=Bi.date,vo=so(Bi,["date"]);return i.createElement(eo,ki({key:Xi.getTime()},Nr,vo,{activeStartDate:Ot,currentCentury:si,date:Xi}))},start:si,step:10,value:Yt,valueType:zn})}var ra=function(Ve,Ot,wn){if(wn||arguments.length===2)for(var Wt=0,Yt=Ot.length,zn;Wt<Yt;Wt++)(zn||!(Wt in Ot))&&(zn||(zn=Array.prototype.slice.call(Ot,0,Wt)),zn[Wt]=Ot[Wt]);return Ve.concat(zn||Array.prototype.slice.call(Ot))},So=Object.values(We),gr=Object.values(_t),di=["century","decade","year","month"],Vi=l.oneOf(ra(ra([],So,!0),gr,!0)),Ro=l.oneOfType([l.string,l.arrayOf(l.string)]),na=function(Ot,wn,Wt){var Yt=Ot,zn=wn,Nr=Yt[zn];if(!Nr)return null;if(!(Nr instanceof Date))return new Error("Invalid prop `".concat(wn,"` of type `").concat(typeof Nr,"` supplied to `").concat(Wt,"`, expected instance of `Date`."));var si=Ot.maxDate;return si&&Nr>si?new Error("Invalid prop `".concat(wn,"` of type `").concat(typeof Nr,"` supplied to `").concat(Wt,"`, minDate cannot be larger than maxDate.")):null},ta=function(Ot,wn,Wt){var Yt=Ot,zn=wn,Nr=Yt[zn];if(!Nr)return null;if(!(Nr instanceof Date))return new Error("Invalid prop `".concat(wn,"` of type `").concat(typeof Nr,"` supplied to `").concat(Wt,"`, expected instance of `Date`."));var si=Ot.minDate;return si&&Nr<si?new Error("Invalid prop `".concat(wn,"` of type `").concat(typeof Nr,"` supplied to `").concat(Wt,"`, maxDate cannot be smaller than minDate.")):null},aa=l.oneOfType([l.func,l.exact({current:l.any})]),vi=l.arrayOf(l.oneOfType([l.instanceOf(Date),l.oneOf([null])]).isRequired),to=l.oneOfType([l.instanceOf(Date),l.oneOf([null]),vi]),$o=l.arrayOf(l.oneOf(di)),ja=function(Ot,wn,Wt){var Yt=Ot,zn=wn,Nr=Yt[zn];return Nr!==void 0&&(typeof Nr!="string"||di.indexOf(Nr)===-1)?new Error("Invalid prop `".concat(wn,"` of value `").concat(Nr,"` supplied to `").concat(Wt,"`, expected one of [").concat(di.map(function(si){return'"'.concat(si,'"')}).join(", "),"].")):null};ja.isRequired=function(Ot,wn,Wt,Yt,zn){var Nr=Ot,si=wn,Ki=Nr[si];return Ki?ja(Ot,wn,Wt,Yt,zn):new Error("The prop `".concat(wn,"` is marked as required in `").concat(Wt,"`, but its value is `").concat(Ki,"`."))};var hs=function(Ve){return l.arrayOf(Ve)},ro={activeStartDate:l.instanceOf(Date).isRequired,hover:l.instanceOf(Date),locale:l.string,maxDate:ta,minDate:na,onClick:l.func,onMouseOver:l.func,tileClassName:l.oneOfType([l.func,Ro]),tileContent:l.oneOfType([l.func,l.node]),value:to,valueType:l.oneOf(["century","decade","year","month","day"]).isRequired},as={activeStartDate:l.instanceOf(Date).isRequired,classes:l.arrayOf(l.string.isRequired).isRequired,date:l.instanceOf(Date).isRequired,locale:l.string,maxDate:ta,minDate:na,onClick:l.func,onMouseOver:l.func,style:l.objectOf(l.oneOfType([l.string,l.number])),tileClassName:l.oneOfType([l.func,Ro]),tileContent:l.oneOfType([l.func,l.node]),tileDisabled:l.func},rn=function(){return rn=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},rn.apply(this,arguments)},Dr=function(Ot){function wn(){return i.createElement(Ho,rn({},Ot))}return i.createElement("div",{className:"react-calendar__century-view"},wn())};Dr.propTypes=rn(rn({},ro),{showNeighboringCentury:l.bool});const Lr=Dr;var li=function(){return li=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},li.apply(this,arguments)},Zi=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn},Di="react-calendar__decade-view__years__year";function wo(Ve){var Ot=Ve.classes,wn=Ot===void 0?[]:Ot,Wt=Ve.currentDecade,Yt=Ve.formatYear,zn=Yt===void 0?gn:Yt,Nr=Zi(Ve,["classes","currentDecade","formatYear"]),si=Nr.date,Ki=Nr.locale,Bi=[];return wn&&Bi.push.apply(Bi,wn),Di&&Bi.push(Di),V(si).getFullYear()!==Wt&&Bi.push("".concat(Di,"--neighboringDecade")),i.createElement(Pr,li({},Nr,{classes:Bi,maxDateTransform:xe,minDateTransform:Se,view:"decade"}),zn(Ki,si))}var Go=function(){return Go=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Go.apply(this,arguments)},Ko=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn};function Ie(Ve){var Ot=Ve.activeStartDate,wn=Ve.hover,Wt=Ve.showNeighboringDecade,Yt=Ve.value,zn=Ve.valueType,Nr=Ko(Ve,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),si=Or(Ot),Ki=si+(Wt?11:9);return i.createElement($r,{className:"react-calendar__decade-view__years",dateTransform:Se,dateType:"year",end:Ki,hover:wn,renderTile:function(Bi){var Xi=Bi.date,vo=Ko(Bi,["date"]);return i.createElement(wo,Go({key:Xi.getTime()},Nr,vo,{activeStartDate:Ot,currentDecade:si,date:Xi}))},start:si,value:Yt,valueType:zn})}var yt=function(){return yt=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},yt.apply(this,arguments)},on=function(Ot){function wn(){return i.createElement(Ie,yt({},Ot))}return i.createElement("div",{className:"react-calendar__decade-view"},wn())};on.propTypes=yt(yt({},ro),{showNeighboringDecade:l.bool});const _n=on;var er=function(){return er=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},er.apply(this,arguments)},or=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn},Er=function(Ve,Ot,wn){if(wn||arguments.length===2)for(var Wt=0,Yt=Ot.length,zn;Wt<Yt;Wt++)(zn||!(Wt in Ot))&&(zn||(zn=Array.prototype.slice.call(Ot,0,Wt)),zn[Wt]=Ot[Wt]);return Ve.concat(zn||Array.prototype.slice.call(Ot))},Mi="react-calendar__year-view__months__month";function Ui(Ve){var Ot=Ve.classes,wn=Ot===void 0?[]:Ot,Wt=Ve.formatMonth,Yt=Wt===void 0?Wn:Wt,zn=Ve.formatMonthYear,Nr=zn===void 0?Zn:zn,si=or(Ve,["classes","formatMonth","formatMonthYear"]),Ki=si.date,Bi=si.locale;return i.createElement(Pr,er({},si,{classes:Er(Er([],wn,!0),[Mi],!1),formatAbbr:Nr,maxDateTransform:Y,minDateTransform:tt,view:"year"}),Yt(Bi,Ki))}var Nn=function(){return Nn=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Nn.apply(this,arguments)},cr=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn};function ni(Ve){var Ot=Ve.activeStartDate,wn=Ve.hover,Wt=Ve.value,Yt=Ve.valueType,zn=cr(Ve,["activeStartDate","hover","value","valueType"]),Nr=0,si=11,Ki=A(Ot);return i.createElement($r,{className:"react-calendar__year-view__months",dateTransform:function(Bi){var Xi=new Date;return Xi.setFullYear(Ki,Bi,1),tt(Xi)},dateType:"month",end:si,hover:wn,renderTile:function(Bi){var Xi=Bi.date,vo=cr(Bi,["date"]);return i.createElement(Ui,Nn({key:Xi.getTime()},zn,vo,{activeStartDate:Ot,date:Xi}))},start:Nr,value:Wt,valueType:Yt})}var Xr=function(){return Xr=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Xr.apply(this,arguments)},Jr=function(Ot){function wn(){return i.createElement(ni,Xr({},Ot))}return i.createElement("div",{className:"react-calendar__year-view"},wn())};Jr.propTypes=Xr({},ro);const Qi=Jr;var Fo=function(){return Fo=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Fo.apply(this,arguments)},No=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn},Jo="react-calendar__month-view__days__day";function br(Ve){var Ot=Ve.calendarType,wn=Ve.classes,Wt=wn===void 0?[]:wn,Yt=Ve.currentMonthIndex,zn=Ve.formatDay,Nr=zn===void 0?Ct:zn,si=Ve.formatLongDate,Ki=si===void 0?Zt:si,Bi=No(Ve,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),Xi=Ur(Ot),vo=Bi.date,ea=Bi.locale,la=[];return Wt&&la.push.apply(la,Wt),Jo&&la.push(Jo),Pi(vo,Xi)&&la.push("".concat(Jo,"--weekend")),vo.getMonth()!==Yt&&la.push("".concat(Jo,"--neighboringMonth")),i.createElement(Pr,Fo({},Bi,{classes:la,formatAbbr:Ki,maxDateTransform:it,minDateTransform:wt,view:"month"}),Nr(ea,vo))}var Yn=function(){return Yn=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Yn.apply(this,arguments)},Z=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn};function se(Ve){var Ot=Ve.activeStartDate,wn=Ve.calendarType,Wt=Ve.hover,Yt=Ve.showFixedNumberOfWeeks,zn=Ve.showNeighboringMonth,Nr=Ve.value,si=Ve.valueType,Ki=Z(Ve,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),Bi=Ur(wn),Xi=A(Ot),vo=j(Ot),ea=Yt||zn,la=cn(Ot,Bi),ss=ea?0:la,Rs=(ea?-la:0)+1,Ds=function(){if(Yt)return Rs+6*7-1;var Is=I(Ot);if(zn){var nu=new Date;nu.setFullYear(Xi,vo,Is),nu.setHours(0,0,0,0);var Ls=7-cn(nu,Bi)-1;return Is+Ls}return Is}();return i.createElement($r,{className:"react-calendar__month-view__days",count:7,dateTransform:function(Is){var nu=new Date;return nu.setFullYear(Xi,vo,Is),wt(nu)},dateType:"day",hover:Wt,end:Ds,renderTile:function(Is){var nu=Is.date,Ls=Z(Is,["date"]);return i.createElement(br,Yn({key:nu.getTime()},Ki,Ls,{activeStartDate:Ot,calendarType:wn,currentMonthIndex:vo,date:nu}))},offset:ss,start:Rs,value:Nr,valueType:si})}var G="react-calendar__month-view__weekdays",B="".concat(G,"__weekday");function Pe(Ve){for(var Ot=Ve.calendarType,wn=Ve.formatShortWeekday,Wt=wn===void 0?xt:wn,Yt=Ve.formatWeekday,zn=Yt===void 0?Xe:Yt,Nr=Ve.locale,si=Ve.onMouseLeave,Ki=Ur(Ot),Bi=new Date,Xi=tt(Bi),vo=A(Xi),ea=j(Xi),la=[],ss=1;ss<=7;ss+=1){var Rs=new Date(vo,ea,ss-cn(Xi,Ki)),Ds=zn(Nr,Rs);la.push(i.createElement("div",{key:ss,className:u(B,Ai(Rs)&&"".concat(B,"--current"),Pi(Rs,Ki)&&"".concat(B,"--weekend"))},i.createElement("abbr",{"aria-label":Ds,title:Ds},Wt(Nr,Rs).replace(".",""))))}return i.createElement(kn,{className:G,count:7,onFocus:si,onMouseOver:si},la)}var dt=function(){return dt=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},dt.apply(this,arguments)},Lt=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn},Pt="react-calendar__tile";function $e(Ve){var Ot=Ve.onClickWeekNumber,wn=Ve.weekNumber,Wt=i.createElement("span",null,wn);if(Ot){var Yt=Ve.date,zn=Ve.onClickWeekNumber,Nr=Ve.weekNumber,si=Lt(Ve,["date","onClickWeekNumber","weekNumber"]);return i.createElement("button",dt({},si,{className:Pt,onClick:function(vo){return zn(Nr,Yt,vo)},type:"button"}),Wt)}else{var Ki=Ve.date,Bi=Ve.onClickWeekNumber,Xi=Ve.weekNumber,si=Lt(Ve,["date","onClickWeekNumber","weekNumber"]);return i.createElement("div",dt({},si,{className:Pt}),Wt)}}function ut(Ve){var Ot=Ve.activeStartDate,wn=Ve.calendarType,Wt=Ve.onClickWeekNumber,Yt=Ve.onMouseLeave,zn=Ve.showFixedNumberOfWeeks,Nr=Ur(wn),si=function(){if(zn)return 6;var Xi=I(Ot),vo=cn(Ot,Nr),ea=Xi-(7-vo);return 1+Math.ceil(ea/7)}(),Ki=function(){for(var Xi=A(Ot),vo=j(Ot),ea=_(Ot),la=[],ss=0;ss<si;ss+=1)la.push(Ln(new Date(Xi,vo,ea+ss*7),Nr));return la}(),Bi=Ki.map(function(Xi){return En(Xi,Nr)});return i.createElement(kn,{className:"react-calendar__month-view__weekNumbers",count:si,direction:"column",onFocus:Yt,onMouseOver:Yt,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},Bi.map(function(Xi,vo){var ea=Ki[vo];if(!ea)throw new Error("date is not defined");return i.createElement($e,{key:Xi,date:ea,onClickWeekNumber:Wt,weekNumber:Xi})}))}var zt=function(){return zt=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},zt.apply(this,arguments)},Ht=function(Ve,Ot){var wn={};for(var Wt in Ve)Object.prototype.hasOwnProperty.call(Ve,Wt)&&Ot.indexOf(Wt)<0&&(wn[Wt]=Ve[Wt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Wt=Object.getOwnPropertySymbols(Ve);Yt<Wt.length;Yt++)Ot.indexOf(Wt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Wt[Yt])&&(wn[Wt[Yt]]=Ve[Wt[Yt]]);return wn};function Fn(Ve){if(Ve)for(var Ot=0,wn=Object.entries(ct);Ot<wn.length;Ot++){var Wt=wn[Ot],Yt=Wt[0],zn=Wt[1];if(zn.includes(Ve))return Yt}return We.ISO_8601}var Cn=function(Ot){var wn=Ot.activeStartDate,Wt=Ot.locale,Yt=Ot.onMouseLeave,zn=Ot.showFixedNumberOfWeeks,Nr=Ot.calendarType,si=Nr===void 0?Fn(Wt):Nr,Ki=Ot.formatShortWeekday,Bi=Ot.formatWeekday,Xi=Ot.onClickWeekNumber,vo=Ot.showWeekNumbers,ea=Ht(Ot,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function la(){return i.createElement(Pe,{calendarType:si,formatShortWeekday:Ki,formatWeekday:Bi,locale:Wt,onMouseLeave:Yt})}function ss(){return vo?i.createElement(ut,{activeStartDate:wn,calendarType:si,onClickWeekNumber:Xi,onMouseLeave:Yt,showFixedNumberOfWeeks:zn}):null}function Rs(){return i.createElement(se,zt({calendarType:si},ea))}var Ds="react-calendar__month-view";return i.createElement("div",{className:u(Ds,vo?"".concat(Ds,"--weekNumbers"):"")},i.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},ss(),i.createElement("div",{style:{flexGrow:1,width:"100%"}},la(),Rs())))};Cn.propTypes=zt(zt({},ro),{calendarType:Vi,formatDay:l.func,formatLongDate:l.func,formatShortWeekday:l.func,formatWeekday:l.func,onClickWeekNumber:l.func,onMouseLeave:l.func,showFixedNumberOfWeeks:l.bool,showNeighboringMonth:l.bool,showWeekNumbers:l.bool});const tr=Cn;var Jn=function(){return Jn=Object.assign||function(Ve){for(var Ot,wn=1,Wt=arguments.length;wn<Wt;wn++){Ot=arguments[wn];for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Ve[Yt]=Ot[Yt])}return Ve},Jn.apply(this,arguments)},ei="react-calendar",Ci=["century","decade","year","month"],zi=["decade","year","month","day"],co=new Date;co.setFullYear(1,0,1),co.setHours(0,0,0,0);var Xo=new Date(864e13);function Eo(Ve){return Ve instanceof Date?Ve:new Date(Ve)}function Yo(Ve,Ot){return Ci.slice(Ci.indexOf(Ve),Ci.indexOf(Ot)+1)}function Xn(Ve,Ot,wn){var Wt=Yo(Ot,wn);return Wt.indexOf(Ve)!==-1}function fr(Ve,Ot,wn){return Ve&&Xn(Ve,Ot,wn)?Ve:wn}function mr(Ve){var Ot=Ci.indexOf(Ve);return zi[Ot]}function yr(Ve,Ot){var wn=Array.isArray(Ve)?Ve[Ot]:Ve;if(!wn)return null;var Wt=Eo(wn);if(isNaN(Wt.getTime()))throw new Error("Invalid date: ".concat(Ve));return Wt}function Rr(Ve,Ot){var wn=Ve.value,Wt=Ve.minDate,Yt=Ve.maxDate,zn=Ve.maxDetail,Nr=yr(wn,Ot);if(!Nr)return null;var si=mr(zn),Ki=function(){switch(Ot){case 0:return Gn(si,Nr);case 1:return jr(si,Nr);default:throw new Error("Invalid index value: ".concat(Ot))}}();return An(Ki,Wt,Yt)}var ai=function(Ve){return Rr(Ve,0)},jt=function(Ve){return Rr(Ve,1)},Pn=function(Ve){return[ai,jt].map(function(Ot){return Ot(Ve)})};function nr(Ve){var Ot=Ve.maxDate,wn=Ve.maxDetail,Wt=Ve.minDate,Yt=Ve.minDetail,zn=Ve.value,Nr=Ve.view,si=fr(Nr,Yt,wn),Ki=ai({value:zn,minDate:Wt,maxDate:Ot,maxDetail:wn})||new Date;return Gn(si,Ki)}function Ir(Ve){var Ot=Ve.activeStartDate,wn=Ve.defaultActiveStartDate,Wt=Ve.defaultValue,Yt=Ve.defaultView,zn=Ve.maxDate,Nr=Ve.maxDetail,si=Ve.minDate,Ki=Ve.minDetail,Bi=Ve.value,Xi=Ve.view,vo=fr(Xi,Ki,Nr),ea=Ot||wn;return ea?Gn(vo,ea):nr({maxDate:zn,maxDetail:Nr,minDate:si,minDetail:Ki,value:Bi||Wt,view:Xi||Yt})}function fi(Ve){return Ve&&(!Array.isArray(Ve)||Ve.length===1)}function Ti(Ve,Ot){return Ve instanceof Date&&Ot instanceof Date&&Ve.getTime()===Ot.getTime()}var Oe=(0,i.forwardRef)(function(Ot,wn){var Wt=Ot.activeStartDate,Yt=Ot.allowPartialRange,zn=Ot.calendarType,Nr=Ot.className,si=Ot.defaultActiveStartDate,Ki=Ot.defaultValue,Bi=Ot.defaultView,Xi=Ot.formatDay,vo=Ot.formatLongDate,ea=Ot.formatMonth,la=Ot.formatMonthYear,ss=Ot.formatShortWeekday,Rs=Ot.formatWeekday,Ds=Ot.formatYear,Is=Ot.goToRangeStartOnSelect,nu=Is===void 0?!0:Is,Ls=Ot.inputRef,gu=Ot.locale,Us=Ot.maxDate,Iu=Us===void 0?Xo:Us,Wu=Ot.maxDetail,rl=Wu===void 0?"month":Wu,Hu=Ot.minDate,Ts=Hu===void 0?co:Hu,Al=Ot.minDetail,fl=Al===void 0?"century":Al,Rl=Ot.navigationAriaLabel,Bu=Ot.navigationAriaLive,Mn=Ot.navigationLabel,en=Ot.next2AriaLabel,sn=Ot.next2Label,qt=Ot.nextAriaLabel,In=Ot.nextLabel,Kn=Ot.onActiveStartDateChange,Fr=Ot.onChange,ci=Ot.onClickDay,Le=Ot.onClickDecade,te=Ot.onClickMonth,Ue=Ot.onClickWeekNumber,rt=Ot.onClickYear,ht=Ot.onDrillDown,Gt=Ot.onDrillUp,xn=Ot.onViewChange,Hn=Ot.prev2AriaLabel,wr=Ot.prev2Label,Wr=Ot.prevAriaLabel,vt=Ot.prevLabel,Vt=Ot.returnValue,dn=Vt===void 0?"start":Vt,yn=Ot.selectRange,ar=Ot.showDoubleView,wi=Ot.showFixedNumberOfWeeks,mi=Ot.showNavigation,ho=mi===void 0?!0:mi,Ao=Ot.showNeighboringCentury,Mo=Ot.showNeighboringDecade,bo=Ot.showNeighboringMonth,ca=bo===void 0?!0:bo,sa=Ot.showWeekNumbers,Da=Ot.tileClassName,La=Ot.tileContent,Ja=Ot.tileDisabled,Ya=Ot.value,Aa=Ot.view,ba=(0,i.useState)(si),Ka=ba[0],us=ba[1],ii=(0,i.useState)(null),Wo=ii[0],Ra=ii[1],_a=(0,i.useState)(Array.isArray(Ki)?Ki.map(function(va){return va!==null?Eo(va):null}):Ki!=null?Eo(Ki):null),Wa=_a[0],eu=_a[1],Ws=(0,i.useState)(Bi),Ne=Ws[0],kt=Ws[1],Rn=Wt||Ka||Ir({activeStartDate:Wt,defaultActiveStartDate:si,defaultValue:Ki,defaultView:Bi,maxDate:Iu,maxDetail:rl,minDate:Ts,minDetail:fl,value:Ya,view:Aa}),jn=function(){var va=function(){return yn&&fi(Wa)?Wa:Ya!==void 0?Ya:Wa}();return va?Array.isArray(va)?va.map(function(Pa){return Pa!==null?Eo(Pa):null}):va!==null?Eo(va):null:null}(),_r=mr(rl),xr=fr(Aa||Ne,fl,rl),oi=Yo(fl,rl),ti=yn?Wo:null,Ri=oi.indexOf(xr)<oi.length-1,Fi=oi.indexOf(xr)>0,Gi=(0,i.useCallback)(function(va){var Pa=function(){switch(dn){case"start":return ai;case"end":return jt;case"range":return Pn;default:throw new Error("Invalid returnValue.")}}();return Pa({maxDate:Iu,maxDetail:rl,minDate:Ts,value:va})},[Iu,rl,Ts,dn]),yo=(0,i.useCallback)(function(va,Pa){us(va);var Na={action:Pa,activeStartDate:va,value:jn,view:xr};Kn&&!Ti(Rn,va)&&Kn(Na)},[Rn,Kn,jn,xr]),Do=(0,i.useCallback)(function(va,Pa){var Na=function(){switch(xr){case"century":return Le;case"decade":return rt;case"year":return te;case"month":return ci;default:throw new Error("Invalid view: ".concat(xr,"."))}}();Na&&Na(va,Pa)},[ci,Le,te,rt,xr]),po=(0,i.useCallback)(function(va,Pa){if(Ri){Do(va,Pa);var Na=oi[oi.indexOf(xr)+1];if(!Na)throw new Error("Attempted to drill down from the lowest view.");us(va),kt(Na);var Xa={action:"drillDown",activeStartDate:va,value:jn,view:Na};Kn&&!Ti(Rn,va)&&Kn(Xa),xn&&xr!==Na&&xn(Xa),ht&&ht(Xa)}},[Rn,Ri,Kn,Do,ht,xn,jn,xr,oi]),Ji=(0,i.useCallback)(function(){if(Fi){var va=oi[oi.indexOf(xr)-1];if(!va)throw new Error("Attempted to drill up from the highest view.");var Pa=Gn(va,Rn);us(Pa),kt(va);var Na={action:"drillUp",activeStartDate:Pa,value:jn,view:va};Kn&&!Ti(Rn,Pa)&&Kn(Na),xn&&xr!==va&&xn(Na),Gt&&Gt(Na)}},[Rn,Fi,Kn,Gt,xn,jn,xr,oi]),Uo=(0,i.useCallback)(function(va,Pa){var Na=jn;Do(va,Pa);var Xa=yn&&!fi(Na),wa;if(yn)if(Xa)wa=Gn(_r,va);else{if(!Na)throw new Error("previousValue is required");if(Array.isArray(Na))throw new Error("previousValue must not be an array");wa=hi(_r,Na,va)}else wa=Gi(va);var Ga=!yn||Xa||nu?nr({maxDate:Iu,maxDetail:rl,minDate:Ts,minDetail:fl,value:wa,view:xr}):null;Pa.persist(),us(Ga),eu(wa);var vs={action:"onChange",activeStartDate:Ga,value:wa,view:xr};if(Kn&&!Ti(Rn,Ga)&&Kn(vs),Fr)if(yn){var Za=fi(wa);if(!Za)Fr(wa||null,Pa);else if(Yt){if(Array.isArray(wa))throw new Error("value must not be an array");Fr([wa||null,null],Pa)}}else Fr(wa||null,Pa)},[Rn,Yt,Gi,nu,Iu,rl,Ts,fl,Kn,Fr,Do,yn,jn,_r,xr]);function Ia(va){Ra(va)}function za(){Ra(null)}(0,i.useImperativeHandle)(wn,function(){return{activeStartDate:Rn,drillDown:po,drillUp:Ji,onChange:Uo,setActiveStartDate:yo,value:jn,view:xr}},[Rn,po,Ji,Uo,yo,jn,xr]);function Ma(va){var Pa=va?sr(xr,Rn):Gn(xr,Rn),Na=Ri?po:Uo,Xa={activeStartDate:Pa,hover:ti,locale:gu,maxDate:Iu,minDate:Ts,onClick:Na,onMouseOver:yn?Ia:void 0,tileClassName:Da,tileContent:La,tileDisabled:Ja,value:jn,valueType:_r};switch(xr){case"century":return i.createElement(Lr,Jn({formatYear:Ds,showNeighboringCentury:Ao},Xa));case"decade":return i.createElement(_n,Jn({formatYear:Ds,showNeighboringDecade:Mo},Xa));case"year":return i.createElement(Qi,Jn({formatMonth:ea,formatMonthYear:la},Xa));case"month":return i.createElement(tr,Jn({calendarType:zn,formatDay:Xi,formatLongDate:vo,formatShortWeekday:ss,formatWeekday:Rs,onClickWeekNumber:Ue,onMouseLeave:yn?za:void 0,showFixedNumberOfWeeks:typeof wi<"u"?wi:ar,showNeighboringMonth:ca,showWeekNumbers:sa},Xa));default:throw new Error("Invalid view: ".concat(xr,"."))}}function xo(){return ho?i.createElement(lo,{activeStartDate:Rn,drillUp:Ji,formatMonthYear:la,formatYear:Ds,locale:gu,maxDate:Iu,minDate:Ts,navigationAriaLabel:Rl,navigationAriaLive:Bu,navigationLabel:Mn,next2AriaLabel:en,next2Label:sn,nextAriaLabel:qt,nextLabel:In,prev2AriaLabel:Hn,prev2Label:wr,prevAriaLabel:Wr,prevLabel:vt,setActiveStartDate:yo,showDoubleView:ar,view:xr,views:oi}):null}var xs=Array.isArray(jn)?jn:[jn];return i.createElement("div",{className:u(ei,yn&&xs.length===1&&"".concat(ei,"--selectRange"),ar&&"".concat(ei,"--doubleView"),Nr),ref:Ls},xo(),i.createElement("div",{className:"".concat(ei,"__viewContainer"),onBlur:yn?za:void 0,onMouseLeave:yn?za:void 0},Ma(),ar?Ma(!0):null))}),pn=l.instanceOf(Date),Qn=l.oneOfType([l.string,l.instanceOf(Date)]),Sr=l.oneOfType([Qn,hs(Qn)]);Oe.propTypes={activeStartDate:pn,allowPartialRange:l.bool,calendarType:Vi,className:Ro,defaultActiveStartDate:pn,defaultValue:Sr,defaultView:ja,formatDay:l.func,formatLongDate:l.func,formatMonth:l.func,formatMonthYear:l.func,formatShortWeekday:l.func,formatWeekday:l.func,formatYear:l.func,goToRangeStartOnSelect:l.bool,inputRef:aa,locale:l.string,maxDate:ta,maxDetail:l.oneOf(Ci),minDate:na,minDetail:l.oneOf(Ci),navigationAriaLabel:l.string,navigationAriaLive:l.oneOf(["off","polite","assertive"]),navigationLabel:l.func,next2AriaLabel:l.string,next2Label:l.node,nextAriaLabel:l.string,nextLabel:l.node,onActiveStartDateChange:l.func,onChange:l.func,onClickDay:l.func,onClickDecade:l.func,onClickMonth:l.func,onClickWeekNumber:l.func,onClickYear:l.func,onDrillDown:l.func,onDrillUp:l.func,onViewChange:l.func,prev2AriaLabel:l.string,prev2Label:l.node,prevAriaLabel:l.string,prevLabel:l.node,returnValue:l.oneOf(["start","end","range"]),selectRange:l.bool,showDoubleView:l.bool,showFixedNumberOfWeeks:l.bool,showNavigation:l.bool,showNeighboringCentury:l.bool,showNeighboringDecade:l.bool,showNeighboringMonth:l.bool,showWeekNumbers:l.bool,tileClassName:l.oneOfType([l.func,Ro]),tileContent:l.oneOfType([l.func,l.node]),tileDisabled:l.func,value:Sr,view:ja};const kr=Oe},7612:(J,g,t)=>{"use strict";t.d(g,{p9:()=>qe});var i=t(96540);function l(){return(l=Object.assign||function(z){for(var be=1;be<arguments.length;be++){var Qe=arguments[be];for(var Bt in Qe)Object.prototype.hasOwnProperty.call(Qe,Bt)&&(z[Bt]=Qe[Bt])}return z}).apply(this,arguments)}function s(z,be){if(z==null)return{};var Qe,Bt,nn={},bt=Object.keys(z);for(Bt=0;Bt<bt.length;Bt++)be.indexOf(Qe=bt[Bt])>=0||(nn[Qe]=z[Qe]);return nn}function m(z){var be=(0,i.useRef)(z),Qe=(0,i.useRef)(function(Bt){be.current&&be.current(Bt)});return be.current=z,Qe.current}var u=function(z,be,Qe){return be===void 0&&(be=0),Qe===void 0&&(Qe=1),z>Qe?Qe:z<be?be:z},f=function(z){return"touches"in z},p=function(z){return z&&z.ownerDocument.defaultView||self},v=function(z,be,Qe){var Bt=z.getBoundingClientRect(),nn=f(be)?function(bt,at){for(var $t=0;$t<bt.length;$t++)if(bt[$t].identifier===at)return bt[$t];return bt[0]}(be.touches,Qe):be;return{left:u((nn.pageX-(Bt.left+p(z).pageXOffset))/Bt.width),top:u((nn.pageY-(Bt.top+p(z).pageYOffset))/Bt.height)}},h=function(z){!f(z)&&z.preventDefault()},d=i.memo(function(z){var be=z.onMove,Qe=z.onKey,Bt=s(z,["onMove","onKey"]),nn=(0,i.useRef)(null),bt=m(be),at=m(Qe),$t=(0,i.useRef)(null),On=(0,i.useRef)(!1),Ct=(0,i.useMemo)(function(){var xt=function(Qt){h(Qt),(f(Qt)?Qt.touches.length>0:Qt.buttons>0)&&nn.current?bt(v(nn.current,Qt,$t.current)):gn(!1)},Xe=function(){return gn(!1)};function gn(Qt){var Dt=On.current,hn=p(nn.current),cn=Qt?hn.addEventListener:hn.removeEventListener;cn(Dt?"touchmove":"mousemove",xt),cn(Dt?"touchend":"mouseup",Xe)}return[function(Qt){var Dt=Qt.nativeEvent,hn=nn.current;if(hn&&(h(Dt),!function(an,Or){return Or&&!f(an)}(Dt,On.current)&&hn)){if(f(Dt)){On.current=!0;var cn=Dt.changedTouches||[];cn.length&&($t.current=cn[0].identifier)}hn.focus(),bt(v(hn,Dt,$t.current)),gn(!0)}},function(Qt){var Dt=Qt.which||Qt.keyCode;Dt<37||Dt>40||(Qt.preventDefault(),at({left:Dt===39?.05:Dt===37?-.05:0,top:Dt===40?.05:Dt===38?-.05:0}))},gn]},[at,bt]),Zt=Ct[0],Wn=Ct[1],Zn=Ct[2];return(0,i.useEffect)(function(){return Zn},[Zn]),i.createElement("div",l({},Bt,{onTouchStart:Zt,onMouseDown:Zt,className:"react-colorful__interactive",ref:nn,onKeyDown:Wn,tabIndex:0,role:"slider"}))}),b=function(z){return z.filter(Boolean).join(" ")},y=function(z){var be=z.color,Qe=z.left,Bt=z.top,nn=Bt===void 0?.5:Bt,bt=b(["react-colorful__pointer",z.className]);return i.createElement("div",{className:bt,style:{top:100*nn+"%",left:100*Qe+"%"}},i.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:be}}))},w=function(z,be,Qe){return be===void 0&&(be=0),Qe===void 0&&(Qe=Math.pow(10,be)),Math.round(Qe*z)/Qe},S={grad:.9,turn:360,rad:360/(2*Math.PI)},O=function(z){return oe(R(z))},R=function(z){return z[0]==="#"&&(z=z.substring(1)),z.length<6?{r:parseInt(z[0]+z[0],16),g:parseInt(z[1]+z[1],16),b:parseInt(z[2]+z[2],16),a:z.length===4?w(parseInt(z[3]+z[3],16)/255,2):1}:{r:parseInt(z.substring(0,2),16),g:parseInt(z.substring(2,4),16),b:parseInt(z.substring(4,6),16),a:z.length===8?w(parseInt(z.substring(6,8),16)/255,2):1}},M=function(z,be){return be===void 0&&(be="deg"),Number(z)*(S[be]||1)},D=function(z){var be=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(z);return be?T({h:M(be[1],be[2]),s:Number(be[3]),l:Number(be[4]),a:be[5]===void 0?1:Number(be[5])/(be[6]?100:1)}):{h:0,s:0,v:0,a:1}},P=D,T=function(z){var be=z.s,Qe=z.l;return{h:z.h,s:(be*=(Qe<50?Qe:100-Qe)/100)>0?2*be/(Qe+be)*100:0,v:Qe+be,a:z.a}},A=function(z){return ce(N(z))},j=function(z){var be=z.s,Qe=z.v,Bt=z.a,nn=(200-be)*Qe/100;return{h:w(z.h),s:w(nn>0&&nn<200?be*Qe/100/(nn<=100?nn:200-nn)*100:0),l:w(nn/2),a:w(Bt,2)}},ae=function(z){var be=j(z);return"hsl("+be.h+", "+be.s+"%, "+be.l+"%)"},_=function(z){var be=j(z);return"hsla("+be.h+", "+be.s+"%, "+be.l+"%, "+be.a+")"},N=function(z){var be=z.h,Qe=z.s,Bt=z.v,nn=z.a;be=be/360*6,Qe/=100,Bt/=100;var bt=Math.floor(be),at=Bt*(1-Qe),$t=Bt*(1-(be-bt)*Qe),On=Bt*(1-(1-be+bt)*Qe),Ct=bt%6;return{r:w(255*[Bt,$t,at,at,On,Bt][Ct]),g:w(255*[On,Bt,Bt,$t,at,at][Ct]),b:w(255*[at,at,On,Bt,Bt,$t][Ct]),a:w(nn,2)}},W=function(z){var be=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(z);return be?re({h:M(be[1],be[2]),s:Number(be[3]),v:Number(be[4]),a:be[5]===void 0?1:Number(be[5])/(be[6]?100:1)}):{h:0,s:0,v:0,a:1}},he=W,me=function(z){var be=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(z);return be?oe({r:Number(be[1])/(be[2]?100/255:1),g:Number(be[3])/(be[4]?100/255:1),b:Number(be[5])/(be[6]?100/255:1),a:be[7]===void 0?1:Number(be[7])/(be[8]?100:1)}):{h:0,s:0,v:0,a:1}},fe=me,ve=function(z){var be=z.toString(16);return be.length<2?"0"+be:be},ce=function(z){var be=z.r,Qe=z.g,Bt=z.b,nn=z.a,bt=nn<1?ve(w(255*nn)):"";return"#"+ve(be)+ve(Qe)+ve(Bt)+bt},oe=function(z){var be=z.r,Qe=z.g,Bt=z.b,nn=z.a,bt=Math.max(be,Qe,Bt),at=bt-Math.min(be,Qe,Bt),$t=at?bt===be?(Qe-Bt)/at:bt===Qe?2+(Bt-be)/at:4+(be-Qe)/at:0;return{h:w(60*($t<0?$t+6:$t)),s:w(bt?at/bt*100:0),v:w(bt/255*100),a:nn}},re=function(z){return{h:w(z.h),s:w(z.s),v:w(z.v),a:w(z.a,2)}},H=i.memo(function(z){var be=z.hue,Qe=z.onChange,Bt=b(["react-colorful__hue",z.className]);return i.createElement("div",{className:Bt},i.createElement(d,{onMove:function(nn){Qe({h:360*nn.left})},onKey:function(nn){Qe({h:u(be+360*nn.left,0,360)})},"aria-label":"Hue","aria-valuenow":w(be),"aria-valuemax":"360","aria-valuemin":"0"},i.createElement(y,{className:"react-colorful__hue-pointer",left:be/360,color:ae({h:be,s:100,v:100,a:1})})))}),V=i.memo(function(z){var be=z.hsva,Qe=z.onChange,Bt={backgroundColor:ae({h:be.h,s:100,v:100,a:1})};return i.createElement("div",{className:"react-colorful__saturation",style:Bt},i.createElement(d,{onMove:function(nn){Qe({s:100*nn.left,v:100-100*nn.top})},onKey:function(nn){Qe({s:u(be.s+100*nn.left,0,100),v:u(be.v-100*nn.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+w(be.s)+"%, Brightness "+w(be.v)+"%"},i.createElement(y,{className:"react-colorful__saturation-pointer",top:1-be.v/100,left:be.s/100,color:ae(be)})))}),Q=function(z,be){if(z===be)return!0;for(var Qe in z)if(z[Qe]!==be[Qe])return!1;return!0},Te=function(z,be){return z.replace(/\s/g,"")===be.replace(/\s/g,"")},Re=function(z,be){return z.toLowerCase()===be.toLowerCase()||Q(R(z),R(be))};function ne(z,be,Qe){var Bt=m(Qe),nn=(0,i.useState)(function(){return z.toHsva(be)}),bt=nn[0],at=nn[1],$t=(0,i.useRef)({color:be,hsva:bt});(0,i.useEffect)(function(){if(!z.equal(be,$t.current.color)){var Ct=z.toHsva(be);$t.current={hsva:Ct,color:be},at(Ct)}},[be,z]),(0,i.useEffect)(function(){var Ct;Q(bt,$t.current.hsva)||z.equal(Ct=z.fromHsva(bt),$t.current.color)||($t.current={hsva:bt,color:Ct},Bt(Ct))},[bt,z,Bt]);var On=(0,i.useCallback)(function(Ct){at(function(Zt){return Object.assign({},Zt,Ct)})},[]);return[bt,On]}var pe,ye=typeof window<"u"?i.useLayoutEffect:i.useEffect,Se=function(){return pe||t.nc},Ae=function(z){pe=z},Ee=new Map,xe=function(z){ye(function(){var be=z.current?z.current.ownerDocument:document;if(be!==void 0&&!Ee.has(be)){var Qe=be.createElement("style");Qe.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Ee.set(be,Qe);var Bt=Se();Bt&&Qe.setAttribute("nonce",Bt),be.head.appendChild(Qe)}},[])},nt=function(z){var be=z.className,Qe=z.colorModel,Bt=z.color,nn=Bt===void 0?Qe.defaultColor:Bt,bt=z.onChange,at=s(z,["className","colorModel","color","onChange"]),$t=r(null);xe($t);var On=ne(Qe,nn,bt),Ct=On[0],Zt=On[1],Wn=b(["react-colorful",be]);return e.createElement("div",l({},at,{ref:$t,className:Wn}),e.createElement(V,{hsva:Ct,onChange:Zt}),e.createElement(H,{hue:Ct.h,onChange:Zt,className:"react-colorful__last-control"}))},Tt={defaultColor:"000",toHsva:O,fromHsva:function(z){return A({h:z.h,s:z.s,v:z.v,a:1})},equal:Re},pt=function(z){return e.createElement(nt,l({},z,{colorModel:Tt}))},Rt=function(z){var be=z.className,Qe=z.hsva,Bt=z.onChange,nn={backgroundImage:"linear-gradient(90deg, "+_(Object.assign({},Qe,{a:0}))+", "+_(Object.assign({},Qe,{a:1}))+")"},bt=b(["react-colorful__alpha",be]),at=w(100*Qe.a);return i.createElement("div",{className:bt},i.createElement("div",{className:"react-colorful__alpha-gradient",style:nn}),i.createElement(d,{onMove:function($t){Bt({a:$t.left})},onKey:function($t){Bt({a:u(Qe.a+$t.left)})},"aria-label":"Alpha","aria-valuetext":at+"%","aria-valuenow":at,"aria-valuemin":"0","aria-valuemax":"100"},i.createElement(y,{className:"react-colorful__alpha-pointer",left:Qe.a,color:_(Qe)})))},tt=function(z){var be=z.className,Qe=z.colorModel,Bt=z.color,nn=Bt===void 0?Qe.defaultColor:Bt,bt=z.onChange,at=s(z,["className","colorModel","color","onChange"]),$t=(0,i.useRef)(null);xe($t);var On=ne(Qe,nn,bt),Ct=On[0],Zt=On[1],Wn=b(["react-colorful",be]);return i.createElement("div",l({},at,{ref:$t,className:Wn}),i.createElement(V,{hsva:Ct,onChange:Zt}),i.createElement(H,{hue:Ct.h,onChange:Zt}),i.createElement(Rt,{hsva:Ct,onChange:Zt,className:"react-colorful__last-control"}))},U={defaultColor:"0001",toHsva:O,fromHsva:A,equal:Re},F=function(z){return e.createElement(tt,l({},z,{colorModel:U}))},Y={defaultColor:{h:0,s:0,l:0,a:1},toHsva:T,fromHsva:j,equal:Q},le=function(z){return e.createElement(tt,l({},z,{colorModel:Y}))},ke={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:D,fromHsva:_,equal:Te},Ye=function(z){return e.createElement(tt,l({},z,{colorModel:ke}))},ft={defaultColor:{h:0,s:0,l:0},toHsva:function(z){return T({h:z.h,s:z.s,l:z.l,a:1})},fromHsva:function(z){return{h:(be=j(z)).h,s:be.s,l:be.l};var be},equal:Q},wt=function(z){return e.createElement(nt,l({},z,{colorModel:ft}))},Ut={defaultColor:"hsl(0, 0%, 0%)",toHsva:P,fromHsva:ae,equal:Te},Ke=function(z){return e.createElement(nt,l({},z,{colorModel:Ut}))},it={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(z){return z},fromHsva:re,equal:Q},At=function(z){return e.createElement(tt,l({},z,{colorModel:it}))},et={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:W,fromHsva:function(z){var be=re(z);return"hsva("+be.h+", "+be.s+"%, "+be.v+"%, "+be.a+")"},equal:Te},ee=function(z){return e.createElement(tt,l({},z,{colorModel:et}))},I={defaultColor:{h:0,s:0,v:0},toHsva:function(z){return{h:z.h,s:z.s,v:z.v,a:1}},fromHsva:function(z){var be=re(z);return{h:be.h,s:be.s,v:be.v}},equal:Q},K=function(z){return e.createElement(nt,l({},z,{colorModel:I}))},ue={defaultColor:"hsv(0, 0%, 0%)",toHsva:he,fromHsva:function(z){var be=re(z);return"hsv("+be.h+", "+be.s+"%, "+be.v+"%)"},equal:Te},De=function(z){return e.createElement(nt,l({},z,{colorModel:ue}))},He={defaultColor:{r:0,g:0,b:0,a:1},toHsva:oe,fromHsva:N,equal:Q},Fe=function(z){return e.createElement(tt,l({},z,{colorModel:He}))},ze={defaultColor:"rgba(0, 0, 0, 1)",toHsva:me,fromHsva:function(z){var be=N(z);return"rgba("+be.r+", "+be.g+", "+be.b+", "+be.a+")"},equal:Te},qe=function(z){return i.createElement(tt,l({},z,{colorModel:ze}))},We={defaultColor:{r:0,g:0,b:0},toHsva:function(z){return oe({r:z.r,g:z.g,b:z.b,a:1})},fromHsva:function(z){return{r:(be=N(z)).r,g:be.g,b:be.b};var be},equal:Q},_t=function(z){return e.createElement(nt,l({},z,{colorModel:We}))},ct={defaultColor:"rgb(0, 0, 0)",toHsva:fe,fromHsva:function(z){var be=N(z);return"rgb("+be.r+", "+be.g+", "+be.b+")"},equal:Te},Ge=function(z){return e.createElement(nt,l({},z,{colorModel:ct}))},st=/^#?([0-9A-F]{3,8})$/i,Me=function(z){var be=z.color,Qe=be===void 0?"":be,Bt=z.onChange,nn=z.onBlur,bt=z.escape,at=z.validate,$t=z.format,On=z.process,Ct=s(z,["color","onChange","onBlur","escape","validate","format","process"]),Zt=o(function(){return bt(Qe)}),Wn=Zt[0],Zn=Zt[1],xt=m(Bt),Xe=m(nn),gn=a(function(Dt){var hn=bt(Dt.target.value);Zn(hn),at(hn)&&xt(On?On(hn):hn)},[bt,On,at,xt]),Qt=a(function(Dt){at(Dt.target.value)||Zn(bt(Qe)),Xe(Dt)},[Qe,bt,at,Xe]);return n(function(){Zn(bt(Qe))},[Qe,bt]),e.createElement("input",l({},Ct,{value:$t?$t(Wn):Wn,spellCheck:"false",onChange:gn,onBlur:Qt}))},ie=function(z){return"#"+z},ge=function(z){var be=z.prefixed,Qe=z.alpha,Bt=s(z,["prefixed","alpha"]),nn=a(function(at){return at.replace(/([^0-9A-F]+)/gi,"").substring(0,Qe?8:6)},[Qe]),bt=a(function(at){return function($t,On){var Ct=st.exec($t),Zt=Ct?Ct[1].length:0;return Zt===3||Zt===6||!!On&&Zt===4||!!On&&Zt===8}(at,Qe)},[Qe]);return e.createElement(Me,l({},Bt,{escape:nn,format:be?ie:void 0,process:ie,validate:bt}))}},49785:(J,g,t)=>{"use strict";t.d(g,{FH:()=>oe,Op:()=>j,as:()=>Q,jz:()=>We,mN:()=>xt,xI:()=>Te,xW:()=>A});var i=t(96540),l=Xe=>Xe.type==="checkbox",s=Xe=>Xe instanceof Date,m=Xe=>Xe==null;const u=Xe=>typeof Xe=="object";var f=Xe=>!m(Xe)&&!Array.isArray(Xe)&&u(Xe)&&!s(Xe),p=Xe=>f(Xe)&&Xe.target?l(Xe.target)?Xe.target.checked:Xe.target.value:Xe,v=Xe=>Xe.substring(0,Xe.search(/\.\d+(\.|$)/))||Xe,h=(Xe,gn)=>Xe.has(v(gn)),d=Xe=>{const gn=Xe.constructor&&Xe.constructor.prototype;return f(gn)&&gn.hasOwnProperty("isPrototypeOf")},b=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function y(Xe){let gn;const Qt=Array.isArray(Xe);if(Xe instanceof Date)gn=new Date(Xe);else if(Xe instanceof Set)gn=new Set(Xe);else if(!(b&&(Xe instanceof Blob||Xe instanceof FileList))&&(Qt||f(Xe)))if(gn=Qt?[]:{},!Qt&&!d(Xe))gn=Xe;else for(const Dt in Xe)Xe.hasOwnProperty(Dt)&&(gn[Dt]=y(Xe[Dt]));else return Xe;return gn}var w=Xe=>Array.isArray(Xe)?Xe.filter(Boolean):[],S=Xe=>Xe===void 0,O=(Xe,gn,Qt)=>{if(!gn||!f(Xe))return Qt;const Dt=w(gn.split(/[,[\].]+?/)).reduce((hn,cn)=>m(hn)?hn:hn[cn],Xe);return S(Dt)||Dt===Xe?S(Xe[gn])?Qt:Xe[gn]:Dt},R=Xe=>typeof Xe=="boolean";const M={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},D={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},P={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},T=i.createContext(null),A=()=>i.useContext(T),j=Xe=>{const{children:gn,...Qt}=Xe;return i.createElement(T.Provider,{value:Qt},gn)};var ae=(Xe,gn,Qt,Dt=!0)=>{const hn={defaultValues:gn._defaultValues};for(const cn in Xe)Object.defineProperty(hn,cn,{get:()=>{const an=cn;return gn._proxyFormState[an]!==D.all&&(gn._proxyFormState[an]=!Dt||D.all),Qt&&(Qt[an]=!0),Xe[an]}});return hn},_=Xe=>f(Xe)&&!Object.keys(Xe).length,N=(Xe,gn,Qt,Dt)=>{Qt(Xe);const{name:hn,...cn}=Xe;return _(cn)||Object.keys(cn).length>=Object.keys(gn).length||Object.keys(cn).find(an=>gn[an]===(!Dt||D.all))},W=Xe=>Array.isArray(Xe)?Xe:[Xe],he=(Xe,gn,Qt)=>!Xe||!gn||Xe===gn||W(Xe).some(Dt=>Dt&&(Qt?Dt===gn:Dt.startsWith(gn)||gn.startsWith(Dt)));function me(Xe){const gn=i.useRef(Xe);gn.current=Xe,i.useEffect(()=>{const Qt=!Xe.disabled&&gn.current.subject&&gn.current.subject.subscribe({next:gn.current.next});return()=>{Qt&&Qt.unsubscribe()}},[Xe.disabled])}function fe(Xe){const gn=A(),{control:Qt=gn.control,disabled:Dt,name:hn,exact:cn}=Xe||{},[an,Or]=i.useState(Qt._formState),Ln=i.useRef(!0),En=i.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),Gn=i.useRef(hn);return Gn.current=hn,me({disabled:Dt,next:rr=>Ln.current&&he(Gn.current,rr.name,cn)&&N(rr,En.current,Qt._updateFormState)&&Or({...Qt._formState,...rr}),subject:Qt._subjects.state}),i.useEffect(()=>(Ln.current=!0,En.current.isValid&&Qt._updateValid(!0),()=>{Ln.current=!1}),[Qt]),ae(an,Qt,En.current,!1)}var ve=Xe=>typeof Xe=="string",ce=(Xe,gn,Qt,Dt,hn)=>ve(Xe)?(Dt&&gn.watch.add(Xe),O(Qt,Xe,hn)):Array.isArray(Xe)?Xe.map(cn=>(Dt&&gn.watch.add(cn),O(Qt,cn))):(Dt&&(gn.watchAll=!0),Qt);function oe(Xe){const gn=A(),{control:Qt=gn.control,name:Dt,defaultValue:hn,disabled:cn,exact:an}=Xe||{},Or=i.useRef(Dt);Or.current=Dt,me({disabled:cn,subject:Qt._subjects.values,next:Gn=>{he(Or.current,Gn.name,an)&&En(y(ce(Or.current,Qt._names,Gn.values||Qt._formValues,!1,hn)))}});const[Ln,En]=i.useState(Qt._getWatch(Dt,hn));return i.useEffect(()=>Qt._removeUnmounted()),Ln}var re=Xe=>/^\w*$/.test(Xe),H=Xe=>w(Xe.replace(/["|']|\]/g,"").split(/\.|\[/)),V=(Xe,gn,Qt)=>{let Dt=-1;const hn=re(gn)?[gn]:H(gn),cn=hn.length,an=cn-1;for(;++Dt<cn;){const Or=hn[Dt];let Ln=Qt;if(Dt!==an){const En=Xe[Or];Ln=f(En)||Array.isArray(En)?En:isNaN(+hn[Dt+1])?{}:[]}Xe[Or]=Ln,Xe=Xe[Or]}return Xe};function Q(Xe){const gn=A(),{name:Qt,disabled:Dt,control:hn=gn.control,shouldUnregister:cn}=Xe,an=h(hn._names.array,Qt),Or=oe({control:hn,name:Qt,defaultValue:O(hn._formValues,Qt,O(hn._defaultValues,Qt,Xe.defaultValue)),exact:!0}),Ln=fe({control:hn,name:Qt}),En=i.useRef(hn.register(Qt,{...Xe.rules,value:Or,...R(Xe.disabled)?{disabled:Xe.disabled}:{}}));return i.useEffect(()=>{const Gn=hn._options.shouldUnregister||cn,rr=(sr,pi)=>{const yi=O(hn._fields,sr);yi&&(yi._f.mount=pi)};if(rr(Qt,!0),Gn){const sr=y(O(hn._options.defaultValues,Qt));V(hn._defaultValues,Qt,sr),S(O(hn._formValues,Qt))&&V(hn._formValues,Qt,sr)}return()=>{(an?Gn&&!hn._state.action:Gn)?hn.unregister(Qt):rr(Qt,!1)}},[Qt,hn,an,cn]),i.useEffect(()=>{O(hn._fields,Qt)&&hn._updateDisabledField({disabled:Dt,fields:hn._fields,name:Qt,value:O(hn._fields,Qt)._f.value})},[Dt,Qt,hn]),{field:{name:Qt,value:Or,...R(Dt)||Ln.disabled?{disabled:Ln.disabled||Dt}:{},onChange:i.useCallback(Gn=>En.current.onChange({target:{value:p(Gn),name:Qt},type:M.CHANGE}),[Qt]),onBlur:i.useCallback(()=>En.current.onBlur({target:{value:O(hn._formValues,Qt),name:Qt},type:M.BLUR}),[Qt,hn]),ref:Gn=>{const rr=O(hn._fields,Qt);rr&&Gn&&(rr._f.ref={focus:()=>Gn.focus(),select:()=>Gn.select(),setCustomValidity:sr=>Gn.setCustomValidity(sr),reportValidity:()=>Gn.reportValidity()})}},formState:Ln,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O(Ln.errors,Qt)},isDirty:{enumerable:!0,get:()=>!!O(Ln.dirtyFields,Qt)},isTouched:{enumerable:!0,get:()=>!!O(Ln.touchedFields,Qt)},error:{enumerable:!0,get:()=>O(Ln.errors,Qt)}})}}const Te=Xe=>Xe.render(Q(Xe)),Re="post";function ne(Xe){const gn=A(),[Qt,Dt]=React.useState(!1),{control:hn=gn.control,onSubmit:cn,children:an,action:Or,method:Ln=Re,headers:En,encType:Gn,onError:rr,render:sr,onSuccess:pi,validateStatus:yi,...jr}=Xe,ui=async bi=>{let ri=!1,hi="";await hn.handleSubmit(async Si=>{const Kr=new FormData;let xi="";try{xi=JSON.stringify(Si)}catch{}for(const Ai of hn._names.mount)Kr.append(Ai,O(Si,Ai));if(cn&&await cn({data:Si,event:bi,method:Ln,formData:Kr,formDataJson:xi}),Or)try{const Ai=[En&&En["Content-Type"],Gn].some(io=>io&&io.includes("json")),Pi=await fetch(Or,{method:Ln,headers:{...En,...Gn?{"Content-Type":Gn}:{}},body:Ai?xi:Kr});Pi&&(yi?!yi(Pi.status):Pi.status<200||Pi.status>=300)?(ri=!0,rr&&rr({response:Pi}),hi=String(Pi.status)):pi&&pi({response:Pi})}catch(Ai){ri=!0,rr&&rr({error:Ai})}})(bi),ri&&Xe.control&&(Xe.control._subjects.state.next({isSubmitSuccessful:!1}),Xe.control.setError("root.server",{type:hi}))};return React.useEffect(()=>{Dt(!0)},[]),sr?React.createElement(React.Fragment,null,sr({submit:ui})):React.createElement("form",{noValidate:Qt,action:Or,method:Ln,encType:Gn,onSubmit:ui,...jr},an)}var pe=(Xe,gn,Qt,Dt,hn)=>gn?{...Qt[Xe],types:{...Qt[Xe]&&Qt[Xe].types?Qt[Xe].types:{},[Dt]:hn||!0}}:{},ye=()=>{const Xe=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,gn=>{const Qt=(Math.random()*16+Xe)%16|0;return(gn=="x"?Qt:Qt&3|8).toString(16)})},Se=(Xe,gn,Qt={})=>Qt.shouldFocus||S(Qt.shouldFocus)?Qt.focusName||`${Xe}.${S(Qt.focusIndex)?gn:Qt.focusIndex}.`:"",Ae=Xe=>({isOnSubmit:!Xe||Xe===D.onSubmit,isOnBlur:Xe===D.onBlur,isOnChange:Xe===D.onChange,isOnAll:Xe===D.all,isOnTouch:Xe===D.onTouched}),Ee=(Xe,gn,Qt)=>!Qt&&(gn.watchAll||gn.watch.has(Xe)||[...gn.watch].some(Dt=>Xe.startsWith(Dt)&&/^\.\w+/.test(Xe.slice(Dt.length))));const xe=(Xe,gn,Qt,Dt)=>{for(const hn of Qt||Object.keys(Xe)){const cn=O(Xe,hn);if(cn){const{_f:an,...Or}=cn;if(an){if(an.refs&&an.refs[0]&&gn(an.refs[0],hn)&&!Dt)break;if(an.ref&&gn(an.ref,an.name)&&!Dt)break;xe(Or,gn)}else f(Or)&&xe(Or,gn)}}};var nt=(Xe,gn,Qt)=>{const Dt=w(O(Xe,Qt));return V(Dt,"root",gn[Qt]),V(Xe,Qt,Dt),Xe},Tt=Xe=>Xe.type==="file",pt=Xe=>typeof Xe=="function",Rt=Xe=>{if(!b)return!1;const gn=Xe?Xe.ownerDocument:0;return Xe instanceof(gn&&gn.defaultView?gn.defaultView.HTMLElement:HTMLElement)},tt=Xe=>ve(Xe),U=Xe=>Xe.type==="radio",F=Xe=>Xe instanceof RegExp;const Y={value:!1,isValid:!1},le={value:!0,isValid:!0};var ke=Xe=>{if(Array.isArray(Xe)){if(Xe.length>1){const gn=Xe.filter(Qt=>Qt&&Qt.checked&&!Qt.disabled).map(Qt=>Qt.value);return{value:gn,isValid:!!gn.length}}return Xe[0].checked&&!Xe[0].disabled?Xe[0].attributes&&!S(Xe[0].attributes.value)?S(Xe[0].value)||Xe[0].value===""?le:{value:Xe[0].value,isValid:!0}:le:Y}return Y};const Ye={isValid:!1,value:null};var ft=Xe=>Array.isArray(Xe)?Xe.reduce((gn,Qt)=>Qt&&Qt.checked&&!Qt.disabled?{isValid:!0,value:Qt.value}:gn,Ye):Ye;function wt(Xe,gn,Qt="validate"){if(tt(Xe)||Array.isArray(Xe)&&Xe.every(tt)||R(Xe)&&!Xe)return{type:Qt,message:tt(Xe)?Xe:"",ref:gn}}var Ut=Xe=>f(Xe)&&!F(Xe)?Xe:{value:Xe,message:""},Ke=async(Xe,gn,Qt,Dt,hn)=>{const{ref:cn,refs:an,required:Or,maxLength:Ln,minLength:En,min:Gn,max:rr,pattern:sr,validate:pi,name:yi,valueAsNumber:jr,mount:ui,disabled:bi}=Xe._f,ri=O(gn,yi);if(!ui||bi)return{};const hi=an?an[0]:cn,Si=un=>{Dt&&hi.reportValidity&&(hi.setCustomValidity(R(un)?"":un||""),hi.reportValidity())},Kr={},xi=U(cn),Ai=l(cn),Pi=xi||Ai,io=(jr||Tt(cn))&&S(cn.value)&&S(ri)||Rt(cn)&&cn.value===""||ri===""||Array.isArray(ri)&&!ri.length,lo=pe.bind(null,yi,Qt,Kr),Gr=(un,qn,kn,St=P.maxLength,ln=P.minLength)=>{const An=un?qn:kn;Kr[yi]={type:un?St:ln,message:An,ref:cn,...lo(un?St:ln,An)}};if(hn?!Array.isArray(ri)||!ri.length:Or&&(!Pi&&(io||m(ri))||R(ri)&&!ri||Ai&&!ke(an).isValid||xi&&!ft(an).isValid)){const{value:un,message:qn}=tt(Or)?{value:!!Or,message:Or}:Ut(Or);if(un&&(Kr[yi]={type:P.required,message:qn,ref:hi,...lo(P.required,qn)},!Qt))return Si(qn),Kr}if(!io&&(!m(Gn)||!m(rr))){let un,qn;const kn=Ut(rr),St=Ut(Gn);if(!m(ri)&&!isNaN(ri)){const ln=cn.valueAsNumber||ri&&+ri;m(kn.value)||(un=ln>kn.value),m(St.value)||(qn=ln<St.value)}else{const ln=cn.valueAsDate||new Date(ri),An=Sn=>new Date(new Date().toDateString()+" "+Sn),Cr=cn.type=="time",_i=cn.type=="week";ve(kn.value)&&ri&&(un=Cr?An(ri)>An(kn.value):_i?ri>kn.value:ln>new Date(kn.value)),ve(St.value)&&ri&&(qn=Cr?An(ri)<An(St.value):_i?ri<St.value:ln<new Date(St.value))}if((un||qn)&&(Gr(!!un,kn.message,St.message,P.max,P.min),!Qt))return Si(Kr[yi].message),Kr}if((Ln||En)&&!io&&(ve(ri)||hn&&Array.isArray(ri))){const un=Ut(Ln),qn=Ut(En),kn=!m(un.value)&&ri.length>+un.value,St=!m(qn.value)&&ri.length<+qn.value;if((kn||St)&&(Gr(kn,un.message,qn.message),!Qt))return Si(Kr[yi].message),Kr}if(sr&&!io&&ve(ri)){const{value:un,message:qn}=Ut(sr);if(F(un)&&!ri.match(un)&&(Kr[yi]={type:P.pattern,message:qn,ref:cn,...lo(P.pattern,qn)},!Qt))return Si(qn),Kr}if(pi){if(pt(pi)){const un=await pi(ri,gn),qn=wt(un,hi);if(qn&&(Kr[yi]={...qn,...lo(P.validate,qn.message)},!Qt))return Si(qn.message),Kr}else if(f(pi)){let un={};for(const qn in pi){if(!_(un)&&!Qt)break;const kn=wt(await pi[qn](ri,gn),hi,qn);kn&&(un={...kn,...lo(qn,kn.message)},Si(kn.message),Qt&&(Kr[yi]=un))}if(!_(un)&&(Kr[yi]={ref:hi,...un},!Qt))return Kr}}return Si(!0),Kr},it=(Xe,gn)=>[...Xe,...W(gn)],At=Xe=>Array.isArray(Xe)?Xe.map(()=>{}):void 0;function et(Xe,gn,Qt){return[...Xe.slice(0,gn),...W(Qt),...Xe.slice(gn)]}var ee=(Xe,gn,Qt)=>Array.isArray(Xe)?(S(Xe[Qt])&&(Xe[Qt]=void 0),Xe.splice(Qt,0,Xe.splice(gn,1)[0]),Xe):[],I=(Xe,gn)=>[...W(gn),...W(Xe)];function K(Xe,gn){let Qt=0;const Dt=[...Xe];for(const hn of gn)Dt.splice(hn-Qt,1),Qt++;return w(Dt).length?Dt:[]}var ue=(Xe,gn)=>S(gn)?[]:K(Xe,W(gn).sort((Qt,Dt)=>Qt-Dt)),De=(Xe,gn,Qt)=>{[Xe[gn],Xe[Qt]]=[Xe[Qt],Xe[gn]]};function He(Xe,gn){const Qt=gn.slice(0,-1).length;let Dt=0;for(;Dt<Qt;)Xe=S(Xe)?Dt++:Xe[gn[Dt++]];return Xe}function Fe(Xe){for(const gn in Xe)if(Xe.hasOwnProperty(gn)&&!S(Xe[gn]))return!1;return!0}function ze(Xe,gn){const Qt=Array.isArray(gn)?gn:re(gn)?[gn]:H(gn),Dt=Qt.length===1?Xe:He(Xe,Qt),hn=Qt.length-1,cn=Qt[hn];return Dt&&delete Dt[cn],hn!==0&&(f(Dt)&&_(Dt)||Array.isArray(Dt)&&Fe(Dt))&&ze(Xe,Qt.slice(0,-1)),Xe}var qe=(Xe,gn,Qt)=>(Xe[gn]=Qt,Xe);function We(Xe){const gn=A(),{control:Qt=gn.control,name:Dt,keyName:hn="id",shouldUnregister:cn}=Xe,[an,Or]=i.useState(Qt._getFieldArray(Dt)),Ln=i.useRef(Qt._getFieldArray(Dt).map(ye)),En=i.useRef(an),Gn=i.useRef(Dt),rr=i.useRef(!1);Gn.current=Dt,En.current=an,Qt._names.array.add(Dt),Xe.rules&&Qt.register(Dt,Xe.rules),me({next:({values:Kr,name:xi})=>{if(xi===Gn.current||!xi){const Ai=O(Kr,Gn.current);Array.isArray(Ai)&&(Or(Ai),Ln.current=Ai.map(ye))}},subject:Qt._subjects.array});const sr=i.useCallback(Kr=>{rr.current=!0,Qt._updateFieldArray(Dt,Kr)},[Qt,Dt]),pi=(Kr,xi)=>{const Ai=W(y(Kr)),Pi=it(Qt._getFieldArray(Dt),Ai);Qt._names.focus=Se(Dt,Pi.length-1,xi),Ln.current=it(Ln.current,Ai.map(ye)),sr(Pi),Or(Pi),Qt._updateFieldArray(Dt,Pi,it,{argA:At(Kr)})},yi=(Kr,xi)=>{const Ai=W(y(Kr)),Pi=I(Qt._getFieldArray(Dt),Ai);Qt._names.focus=Se(Dt,0,xi),Ln.current=I(Ln.current,Ai.map(ye)),sr(Pi),Or(Pi),Qt._updateFieldArray(Dt,Pi,I,{argA:At(Kr)})},jr=Kr=>{const xi=ue(Qt._getFieldArray(Dt),Kr);Ln.current=ue(Ln.current,Kr),sr(xi),Or(xi),Qt._updateFieldArray(Dt,xi,ue,{argA:Kr})},ui=(Kr,xi,Ai)=>{const Pi=W(y(xi)),io=et(Qt._getFieldArray(Dt),Kr,Pi);Qt._names.focus=Se(Dt,Kr,Ai),Ln.current=et(Ln.current,Kr,Pi.map(ye)),sr(io),Or(io),Qt._updateFieldArray(Dt,io,et,{argA:Kr,argB:At(xi)})},bi=(Kr,xi)=>{const Ai=Qt._getFieldArray(Dt);De(Ai,Kr,xi),De(Ln.current,Kr,xi),sr(Ai),Or(Ai),Qt._updateFieldArray(Dt,Ai,De,{argA:Kr,argB:xi},!1)},ri=(Kr,xi)=>{const Ai=Qt._getFieldArray(Dt);ee(Ai,Kr,xi),ee(Ln.current,Kr,xi),sr(Ai),Or(Ai),Qt._updateFieldArray(Dt,Ai,ee,{argA:Kr,argB:xi},!1)},hi=(Kr,xi)=>{const Ai=y(xi),Pi=qe(Qt._getFieldArray(Dt),Kr,Ai);Ln.current=[...Pi].map((io,lo)=>!io||lo===Kr?ye():Ln.current[lo]),sr(Pi),Or([...Pi]),Qt._updateFieldArray(Dt,Pi,qe,{argA:Kr,argB:Ai},!0,!1)},Si=Kr=>{const xi=W(y(Kr));Ln.current=xi.map(ye),sr([...xi]),Or([...xi]),Qt._updateFieldArray(Dt,[...xi],Ai=>Ai,{},!0,!1)};return i.useEffect(()=>{if(Qt._state.action=!1,Ee(Dt,Qt._names)&&Qt._subjects.state.next({...Qt._formState}),rr.current&&(!Ae(Qt._options.mode).isOnSubmit||Qt._formState.isSubmitted))if(Qt._options.resolver)Qt._executeSchema([Dt]).then(Kr=>{const xi=O(Kr.errors,Dt),Ai=O(Qt._formState.errors,Dt);(Ai?!xi&&Ai.type||xi&&(Ai.type!==xi.type||Ai.message!==xi.message):xi&&xi.type)&&(xi?V(Qt._formState.errors,Dt,xi):ze(Qt._formState.errors,Dt),Qt._subjects.state.next({errors:Qt._formState.errors}))});else{const Kr=O(Qt._fields,Dt);Kr&&Kr._f&&!(Ae(Qt._options.reValidateMode).isOnSubmit&&Ae(Qt._options.mode).isOnSubmit)&&Ke(Kr,Qt._formValues,Qt._options.criteriaMode===D.all,Qt._options.shouldUseNativeValidation,!0).then(xi=>!_(xi)&&Qt._subjects.state.next({errors:nt(Qt._formState.errors,xi,Dt)}))}Qt._subjects.values.next({name:Dt,values:{...Qt._formValues}}),Qt._names.focus&&xe(Qt._fields,(Kr,xi)=>{if(Qt._names.focus&&xi.startsWith(Qt._names.focus)&&Kr.focus)return Kr.focus(),1}),Qt._names.focus="",Qt._updateValid(),rr.current=!1},[an,Dt,Qt]),i.useEffect(()=>(!O(Qt._formValues,Dt)&&Qt._updateFieldArray(Dt),()=>{(Qt._options.shouldUnregister||cn)&&Qt.unregister(Dt)}),[Dt,Qt,hn,cn]),{swap:i.useCallback(bi,[sr,Dt,Qt]),move:i.useCallback(ri,[sr,Dt,Qt]),prepend:i.useCallback(yi,[sr,Dt,Qt]),append:i.useCallback(pi,[sr,Dt,Qt]),remove:i.useCallback(jr,[sr,Dt,Qt]),insert:i.useCallback(ui,[sr,Dt,Qt]),update:i.useCallback(hi,[sr,Dt,Qt]),replace:i.useCallback(Si,[sr,Dt,Qt]),fields:i.useMemo(()=>an.map((Kr,xi)=>({...Kr,[hn]:Ln.current[xi]||ye()})),[an,hn])}}var _t=()=>{let Xe=[];return{get observers(){return Xe},next:hn=>{for(const cn of Xe)cn.next&&cn.next(hn)},subscribe:hn=>(Xe.push(hn),{unsubscribe:()=>{Xe=Xe.filter(cn=>cn!==hn)}}),unsubscribe:()=>{Xe=[]}}},ct=Xe=>m(Xe)||!u(Xe);function Ge(Xe,gn){if(ct(Xe)||ct(gn))return Xe===gn;if(s(Xe)&&s(gn))return Xe.getTime()===gn.getTime();const Qt=Object.keys(Xe),Dt=Object.keys(gn);if(Qt.length!==Dt.length)return!1;for(const hn of Qt){const cn=Xe[hn];if(!Dt.includes(hn))return!1;if(hn!=="ref"){const an=gn[hn];if(s(cn)&&s(an)||f(cn)&&f(an)||Array.isArray(cn)&&Array.isArray(an)?!Ge(cn,an):cn!==an)return!1}}return!0}var st=Xe=>Xe.type==="select-multiple",Me=Xe=>U(Xe)||l(Xe),ie=Xe=>Rt(Xe)&&Xe.isConnected,ge=Xe=>{for(const gn in Xe)if(pt(Xe[gn]))return!0;return!1};function z(Xe,gn={}){const Qt=Array.isArray(Xe);if(f(Xe)||Qt)for(const Dt in Xe)Array.isArray(Xe[Dt])||f(Xe[Dt])&&!ge(Xe[Dt])?(gn[Dt]=Array.isArray(Xe[Dt])?[]:{},z(Xe[Dt],gn[Dt])):m(Xe[Dt])||(gn[Dt]=!0);return gn}function be(Xe,gn,Qt){const Dt=Array.isArray(Xe);if(f(Xe)||Dt)for(const hn in Xe)Array.isArray(Xe[hn])||f(Xe[hn])&&!ge(Xe[hn])?S(gn)||ct(Qt[hn])?Qt[hn]=Array.isArray(Xe[hn])?z(Xe[hn],[]):{...z(Xe[hn])}:be(Xe[hn],m(gn)?{}:gn[hn],Qt[hn]):Qt[hn]=!Ge(Xe[hn],gn[hn]);return Qt}var Qe=(Xe,gn)=>be(Xe,gn,z(gn)),Bt=(Xe,{valueAsNumber:gn,valueAsDate:Qt,setValueAs:Dt})=>S(Xe)?Xe:gn?Xe===""?NaN:Xe&&+Xe:Qt&&ve(Xe)?new Date(Xe):Dt?Dt(Xe):Xe;function nn(Xe){const gn=Xe.ref;if(!(Xe.refs?Xe.refs.every(Qt=>Qt.disabled):gn.disabled))return Tt(gn)?gn.files:U(gn)?ft(Xe.refs).value:st(gn)?[...gn.selectedOptions].map(({value:Qt})=>Qt):l(gn)?ke(Xe.refs).value:Bt(S(gn.value)?Xe.ref.value:gn.value,Xe)}var bt=(Xe,gn,Qt,Dt)=>{const hn={};for(const cn of Xe){const an=O(gn,cn);an&&V(hn,cn,an._f)}return{criteriaMode:Qt,names:[...Xe],fields:hn,shouldUseNativeValidation:Dt}},at=Xe=>S(Xe)?Xe:F(Xe)?Xe.source:f(Xe)?F(Xe.value)?Xe.value.source:Xe.value:Xe,$t=Xe=>Xe.mount&&(Xe.required||Xe.min||Xe.max||Xe.maxLength||Xe.minLength||Xe.pattern||Xe.validate);function On(Xe,gn,Qt){const Dt=O(Xe,Qt);if(Dt||re(Qt))return{error:Dt,name:Qt};const hn=Qt.split(".");for(;hn.length;){const cn=hn.join("."),an=O(gn,cn),Or=O(Xe,cn);if(an&&!Array.isArray(an)&&Qt!==cn)return{name:Qt};if(Or&&Or.type)return{name:cn,error:Or};hn.pop()}return{name:Qt}}var Ct=(Xe,gn,Qt,Dt,hn)=>hn.isOnAll?!1:!Qt&&hn.isOnTouch?!(gn||Xe):(Qt?Dt.isOnBlur:hn.isOnBlur)?!Xe:(Qt?Dt.isOnChange:hn.isOnChange)?Xe:!0,Zt=(Xe,gn)=>!w(O(Xe,gn)).length&&ze(Xe,gn);const Wn={mode:D.onSubmit,reValidateMode:D.onChange,shouldFocusError:!0};function Zn(Xe={},gn){let Qt={...Wn,...Xe},Dt={submitCount:0,isDirty:!1,isLoading:pt(Qt.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:Qt.errors||{},disabled:Qt.disabled||!1},hn={},cn=f(Qt.values)||f(Qt.defaultValues)?y(Qt.values||Qt.defaultValues)||{}:{},an=Qt.shouldUnregister?{}:y(cn),Or={action:!1,mount:!1,watch:!1},Ln={mount:new Set,unMount:new Set,array:new Set,watch:new Set},En,Gn=0;const rr={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},sr={values:_t(),array:_t(),state:_t()},pi=Ae(Qt.mode),yi=Ae(Qt.reValidateMode),jr=Qt.criteriaMode===D.all,ui=gr=>di=>{clearTimeout(Gn),Gn=setTimeout(gr,di)},bi=async gr=>{if(rr.isValid||gr){const di=Qt.resolver?_((await io()).errors):await Gr(hn,!0);di!==Dt.isValid&&sr.state.next({isValid:di})}},ri=gr=>rr.isValidating&&sr.state.next({isValidating:gr}),hi=(gr,di=[],Vi,Ro,na=!0,ta=!0)=>{if(Ro&&Vi){if(Or.action=!0,ta&&Array.isArray(O(hn,gr))){const aa=Vi(O(hn,gr),Ro.argA,Ro.argB);na&&V(hn,gr,aa)}if(ta&&Array.isArray(O(Dt.errors,gr))){const aa=Vi(O(Dt.errors,gr),Ro.argA,Ro.argB);na&&V(Dt.errors,gr,aa),Zt(Dt.errors,gr)}if(rr.touchedFields&&ta&&Array.isArray(O(Dt.touchedFields,gr))){const aa=Vi(O(Dt.touchedFields,gr),Ro.argA,Ro.argB);na&&V(Dt.touchedFields,gr,aa)}rr.dirtyFields&&(Dt.dirtyFields=Qe(cn,an)),sr.state.next({name:gr,isDirty:qn(gr,di),dirtyFields:Dt.dirtyFields,errors:Dt.errors,isValid:Dt.isValid})}else V(an,gr,di)},Si=(gr,di)=>{V(Dt.errors,gr,di),sr.state.next({errors:Dt.errors})},Kr=gr=>{Dt.errors=gr,sr.state.next({errors:Dt.errors,isValid:!1})},xi=(gr,di,Vi,Ro)=>{const na=O(hn,gr);if(na){const ta=O(an,gr,S(Vi)?O(cn,gr):Vi);S(ta)||Ro&&Ro.defaultChecked||di?V(an,gr,di?ta:nn(na._f)):ln(gr,ta),Or.mount&&bi()}},Ai=(gr,di,Vi,Ro,na)=>{let ta=!1,aa=!1;const vi={name:gr},to=!!(O(hn,gr)&&O(hn,gr)._f.disabled);if(!Vi||Ro){rr.isDirty&&(aa=Dt.isDirty,Dt.isDirty=vi.isDirty=qn(),ta=aa!==vi.isDirty);const $o=to||Ge(O(cn,gr),di);aa=!!(!to&&O(Dt.dirtyFields,gr)),$o||to?ze(Dt.dirtyFields,gr):V(Dt.dirtyFields,gr,!0),vi.dirtyFields=Dt.dirtyFields,ta=ta||rr.dirtyFields&&aa!==!$o}if(Vi){const $o=O(Dt.touchedFields,gr);$o||(V(Dt.touchedFields,gr,Vi),vi.touchedFields=Dt.touchedFields,ta=ta||rr.touchedFields&&$o!==Vi)}return ta&&na&&sr.state.next(vi),ta?vi:{}},Pi=(gr,di,Vi,Ro)=>{const na=O(Dt.errors,gr),ta=rr.isValid&&R(di)&&Dt.isValid!==di;if(Xe.delayError&&Vi?(En=ui(()=>Si(gr,Vi)),En(Xe.delayError)):(clearTimeout(Gn),En=null,Vi?V(Dt.errors,gr,Vi):ze(Dt.errors,gr)),(Vi?!Ge(na,Vi):na)||!_(Ro)||ta){const aa={...Ro,...ta&&R(di)?{isValid:di}:{},errors:Dt.errors,name:gr};Dt={...Dt,...aa},sr.state.next(aa)}ri(!1)},io=async gr=>Qt.resolver(an,Qt.context,bt(gr||Ln.mount,hn,Qt.criteriaMode,Qt.shouldUseNativeValidation)),lo=async gr=>{const{errors:di}=await io(gr);if(gr)for(const Vi of gr){const Ro=O(di,Vi);Ro?V(Dt.errors,Vi,Ro):ze(Dt.errors,Vi)}else Dt.errors=di;return di},Gr=async(gr,di,Vi={valid:!0})=>{for(const Ro in gr){const na=gr[Ro];if(na){const{_f:ta,...aa}=na;if(ta){const vi=Ln.array.has(ta.name),to=await Ke(na,an,jr,Qt.shouldUseNativeValidation&&!di,vi);if(to[ta.name]&&(Vi.valid=!1,di))break;!di&&(O(to,ta.name)?vi?nt(Dt.errors,to,ta.name):V(Dt.errors,ta.name,to[ta.name]):ze(Dt.errors,ta.name))}aa&&await Gr(aa,di,Vi)}}return Vi.valid},un=()=>{for(const gr of Ln.unMount){const di=O(hn,gr);di&&(di._f.refs?di._f.refs.every(Vi=>!ie(Vi)):!ie(di._f.ref))&&Ur(gr)}Ln.unMount=new Set},qn=(gr,di)=>(gr&&di&&V(an,gr,di),!Ge(mt(),cn)),kn=(gr,di,Vi)=>ce(gr,Ln,{...Or.mount?an:S(di)?cn:ve(gr)?{[gr]:di}:di},Vi,di),St=gr=>w(O(Or.mount?an:cn,gr,Xe.shouldUnregister?O(cn,gr,[]):[])),ln=(gr,di,Vi={})=>{const Ro=O(hn,gr);let na=di;if(Ro){const ta=Ro._f;ta&&(!ta.disabled&&V(an,gr,Bt(di,ta)),na=Rt(ta.ref)&&m(di)?"":di,st(ta.ref)?[...ta.ref.options].forEach(aa=>aa.selected=na.includes(aa.value)):ta.refs?l(ta.ref)?ta.refs.length>1?ta.refs.forEach(aa=>(!aa.defaultChecked||!aa.disabled)&&(aa.checked=Array.isArray(na)?!!na.find(vi=>vi===aa.value):na===aa.value)):ta.refs[0]&&(ta.refs[0].checked=!!na):ta.refs.forEach(aa=>aa.checked=aa.value===na):Tt(ta.ref)?ta.ref.value="":(ta.ref.value=na,ta.ref.type||sr.values.next({name:gr,values:{...an}})))}(Vi.shouldDirty||Vi.shouldTouch)&&Ai(gr,na,Vi.shouldTouch,Vi.shouldDirty,!0),Vi.shouldValidate&&ir(gr)},An=(gr,di,Vi)=>{for(const Ro in di){const na=di[Ro],ta=`${gr}.${Ro}`,aa=O(hn,ta);(Ln.array.has(gr)||!ct(na)||aa&&!aa._f)&&!s(na)?An(ta,na,Vi):ln(ta,na,Vi)}},Cr=(gr,di,Vi={})=>{const Ro=O(hn,gr),na=Ln.array.has(gr),ta=y(di);V(an,gr,ta),na?(sr.array.next({name:gr,values:{...an}}),(rr.isDirty||rr.dirtyFields)&&Vi.shouldDirty&&sr.state.next({name:gr,dirtyFields:Qe(cn,an),isDirty:qn(gr,ta)})):Ro&&!Ro._f&&!m(ta)?An(gr,ta,Vi):ln(gr,ta,Vi),Ee(gr,Ln)&&sr.state.next({...Dt}),sr.values.next({name:gr,values:{...an}}),!Or.mount&&gn()},_i=async gr=>{const di=gr.target;let Vi=di.name,Ro=!0;const na=O(hn,Vi),ta=()=>di.type?nn(na._f):p(gr),aa=vi=>{Ro=Number.isNaN(vi)||vi===O(an,Vi,vi)};if(na){let vi,to;const $o=ta(),ja=gr.type===M.BLUR||gr.type===M.FOCUS_OUT,hs=!$t(na._f)&&!Qt.resolver&&!O(Dt.errors,Vi)&&!na._f.deps||Ct(ja,O(Dt.touchedFields,Vi),Dt.isSubmitted,yi,pi),ro=Ee(Vi,Ln,ja);V(an,Vi,$o),ja?(na._f.onBlur&&na._f.onBlur(gr),En&&En(0)):na._f.onChange&&na._f.onChange(gr);const as=Ai(Vi,$o,ja,!1),rn=!_(as)||ro;if(!ja&&sr.values.next({name:Vi,type:gr.type,values:{...an}}),hs)return rr.isValid&&bi(),rn&&sr.state.next({name:Vi,...ro?{}:as});if(!ja&&ro&&sr.state.next({...Dt}),ri(!0),Qt.resolver){const{errors:Dr}=await io([Vi]);if(aa($o),Ro){const Lr=On(Dt.errors,hn,Vi),li=On(Dr,hn,Lr.name||Vi);vi=li.error,Vi=li.name,to=_(Dr)}}else vi=(await Ke(na,an,jr,Qt.shouldUseNativeValidation))[Vi],aa($o),Ro&&(vi?to=!1:rr.isValid&&(to=await Gr(hn,!0)));Ro&&(na._f.deps&&ir(na._f.deps),Pi(Vi,to,vi,as))}},Sn=(gr,di)=>{if(O(Dt.errors,di)&&gr.focus)return gr.focus(),1},ir=async(gr,di={})=>{let Vi,Ro;const na=W(gr);if(ri(!0),Qt.resolver){const ta=await lo(S(gr)?gr:na);Vi=_(ta),Ro=gr?!na.some(aa=>O(ta,aa)):Vi}else gr?(Ro=(await Promise.all(na.map(async ta=>{const aa=O(hn,ta);return await Gr(aa&&aa._f?{[ta]:aa}:aa)}))).every(Boolean),!(!Ro&&!Dt.isValid)&&bi()):Ro=Vi=await Gr(hn);return sr.state.next({...!ve(gr)||rr.isValid&&Vi!==Dt.isValid?{}:{name:gr},...Qt.resolver||!gr?{isValid:Vi}:{},errors:Dt.errors,isValidating:!1}),di.shouldFocus&&!Ro&&xe(hn,Sn,gr?na:Ln.mount),Ro},mt=gr=>{const di={...cn,...Or.mount?an:{}};return S(gr)?di:ve(gr)?O(di,gr):gr.map(Vi=>O(di,Vi))},fn=(gr,di)=>({invalid:!!O((di||Dt).errors,gr),isDirty:!!O((di||Dt).dirtyFields,gr),isTouched:!!O((di||Dt).touchedFields,gr),error:O((di||Dt).errors,gr)}),gt=gr=>{gr&&W(gr).forEach(di=>ze(Dt.errors,di)),sr.state.next({errors:gr?Dt.errors:{}})},tn=(gr,di,Vi)=>{const Ro=(O(hn,gr,{_f:{}})._f||{}).ref;V(Dt.errors,gr,{...di,ref:Ro}),sr.state.next({name:gr,errors:Dt.errors,isValid:!1}),Vi&&Vi.shouldFocus&&Ro&&Ro.focus&&Ro.focus()},Vn=(gr,di)=>pt(gr)?sr.values.subscribe({next:Vi=>gr(kn(void 0,di),Vi)}):kn(gr,di,!0),Ur=(gr,di={})=>{for(const Vi of gr?W(gr):Ln.mount)Ln.mount.delete(Vi),Ln.array.delete(Vi),di.keepValue||(ze(hn,Vi),ze(an,Vi)),!di.keepError&&ze(Dt.errors,Vi),!di.keepDirty&&ze(Dt.dirtyFields,Vi),!di.keepTouched&&ze(Dt.touchedFields,Vi),!Qt.shouldUnregister&&!di.keepDefaultValue&&ze(cn,Vi);sr.values.next({values:{...an}}),sr.state.next({...Dt,...di.keepDirty?{isDirty:qn()}:{}}),!di.keepIsValid&&bi()},$r=({disabled:gr,name:di,field:Vi,fields:Ro,value:na})=>{if(R(gr)){const ta=gr?void 0:S(na)?nn(Vi?Vi._f:O(Ro,di)._f):na;V(an,di,ta),Ai(di,ta,!1,!1,!0)}},Pr=(gr,di={})=>{let Vi=O(hn,gr);const Ro=R(di.disabled);return V(hn,gr,{...Vi||{},_f:{...Vi&&Vi._f?Vi._f:{ref:{name:gr}},name:gr,mount:!0,...di}}),Ln.mount.add(gr),Vi?$r({field:Vi,disabled:di.disabled,name:gr,value:di.value}):xi(gr,!0,di.value),{...Ro?{disabled:di.disabled}:{},...Qt.progressive?{required:!!di.required,min:at(di.min),max:at(di.max),minLength:at(di.minLength),maxLength:at(di.maxLength),pattern:at(di.pattern)}:{},name:gr,onChange:_i,onBlur:_i,ref:na=>{if(na){Pr(gr,di),Vi=O(hn,gr);const ta=S(na.value)&&na.querySelectorAll&&na.querySelectorAll("input,select,textarea")[0]||na,aa=Me(ta),vi=Vi._f.refs||[];if(aa?vi.find(to=>to===ta):ta===Vi._f.ref)return;V(hn,gr,{_f:{...Vi._f,...aa?{refs:[...vi.filter(ie),ta,...Array.isArray(O(cn,gr))?[{}]:[]],ref:{type:ta.type,name:gr}}:{ref:ta}}}),xi(gr,!1,void 0,ta)}else Vi=O(hn,gr,{}),Vi._f&&(Vi._f.mount=!1),(Qt.shouldUnregister||di.shouldUnregister)&&!(h(Ln.array,gr)&&Or.action)&&Ln.unMount.add(gr)}}},zr=()=>Qt.shouldFocusError&&xe(hn,Sn,Ln.mount),gi=gr=>{R(gr)&&(sr.state.next({disabled:gr}),xe(hn,(di,Vi)=>{let Ro=gr;const na=O(hn,Vi);na&&R(na._f.disabled)&&(Ro||(Ro=na._f.disabled)),di.disabled=Ro},0,!1))},$i=(gr,di)=>async Vi=>{let Ro;Vi&&(Vi.preventDefault&&Vi.preventDefault(),Vi.persist&&Vi.persist());let na=y(an);if(sr.state.next({isSubmitting:!0}),Qt.resolver){const{errors:ta,values:aa}=await io();Dt.errors=ta,na=aa}else await Gr(hn);if(ze(Dt.errors,"root"),_(Dt.errors)){sr.state.next({errors:{}});try{await gr(na,Vi)}catch(ta){Ro=ta}}else di&&await di({...Dt.errors},Vi),zr(),setTimeout(zr);if(sr.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_(Dt.errors)&&!Ro,submitCount:Dt.submitCount+1,errors:Dt.errors}),Ro)throw Ro},eo=(gr,di={})=>{O(hn,gr)&&(S(di.defaultValue)?Cr(gr,y(O(cn,gr))):(Cr(gr,di.defaultValue),V(cn,gr,y(di.defaultValue))),di.keepTouched||ze(Dt.touchedFields,gr),di.keepDirty||(ze(Dt.dirtyFields,gr),Dt.isDirty=di.defaultValue?qn(gr,y(O(cn,gr))):qn()),di.keepError||(ze(Dt.errors,gr),rr.isValid&&bi()),sr.state.next({...Dt}))},ki=(gr,di={})=>{const Vi=gr?y(gr):cn,Ro=y(Vi),na=gr&&!_(gr)?Ro:cn;if(di.keepDefaultValues||(cn=Vi),!di.keepValues){if(di.keepDirtyValues)for(const ta of Ln.mount)O(Dt.dirtyFields,ta)?V(na,ta,O(an,ta)):Cr(ta,O(na,ta));else{if(b&&S(gr))for(const ta of Ln.mount){const aa=O(hn,ta);if(aa&&aa._f){const vi=Array.isArray(aa._f.refs)?aa._f.refs[0]:aa._f.ref;if(Rt(vi)){const to=vi.closest("form");if(to){to.reset();break}}}}hn={}}an=Xe.shouldUnregister?di.keepDefaultValues?y(cn):{}:y(na),sr.array.next({values:{...na}}),sr.values.next({values:{...na}})}Ln={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!Or.mount&&gn(),Or.mount=!rr.isValid||!!di.keepIsValid||!!di.keepDirtyValues,Or.watch=!!Xe.shouldUnregister,sr.state.next({submitCount:di.keepSubmitCount?Dt.submitCount:0,isDirty:di.keepDirty?Dt.isDirty:!!(di.keepDefaultValues&&!Ge(gr,cn)),isSubmitted:di.keepIsSubmitted?Dt.isSubmitted:!1,dirtyFields:di.keepDirtyValues?di.keepDefaultValues&&an?Qe(cn,an):Dt.dirtyFields:di.keepDefaultValues&&gr?Qe(cn,gr):{},touchedFields:di.keepTouched?Dt.touchedFields:{},errors:di.keepErrors?Dt.errors:{},isSubmitSuccessful:di.keepIsSubmitSuccessful?Dt.isSubmitSuccessful:!1,isSubmitting:!1})},so=(gr,di)=>ki(pt(gr)?gr(an):gr,di);return{control:{register:Pr,unregister:Ur,getFieldState:fn,handleSubmit:$i,setError:tn,_executeSchema:io,_getWatch:kn,_getDirty:qn,_updateValid:bi,_removeUnmounted:un,_updateFieldArray:hi,_updateDisabledField:$r,_getFieldArray:St,_reset:ki,_resetDefaultValues:()=>pt(Qt.defaultValues)&&Qt.defaultValues().then(gr=>{so(gr,Qt.resetOptions),sr.state.next({isLoading:!1})}),_updateFormState:gr=>{Dt={...Dt,...gr}},_disableForm:gi,_subjects:sr,_proxyFormState:rr,_setErrors:Kr,get _fields(){return hn},get _formValues(){return an},get _state(){return Or},set _state(gr){Or=gr},get _defaultValues(){return cn},get _names(){return Ln},set _names(gr){Ln=gr},get _formState(){return Dt},set _formState(gr){Dt=gr},get _options(){return Qt},set _options(gr){Qt={...Qt,...gr}}},trigger:ir,register:Pr,handleSubmit:$i,watch:Vn,setValue:Cr,getValues:mt,reset:so,resetField:eo,clearErrors:gt,unregister:Ur,setError:tn,setFocus:(gr,di={})=>{const Vi=O(hn,gr),Ro=Vi&&Vi._f;if(Ro){const na=Ro.refs?Ro.refs[0]:Ro.ref;na.focus&&(na.focus(),di.shouldSelect&&na.select())}},getFieldState:fn}}function xt(Xe={}){const gn=i.useRef(),Qt=i.useRef(),[Dt,hn]=i.useState({isDirty:!1,isValidating:!1,isLoading:pt(Xe.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:Xe.errors||{},disabled:Xe.disabled||!1,defaultValues:pt(Xe.defaultValues)?void 0:Xe.defaultValues});gn.current||(gn.current={...Zn(Xe,()=>hn(an=>({...an}))),formState:Dt});const cn=gn.current.control;return cn._options=Xe,me({subject:cn._subjects.state,next:an=>{N(an,cn._proxyFormState,cn._updateFormState,!0)&&hn({...cn._formState})}}),i.useEffect(()=>cn._disableForm(Xe.disabled),[cn,Xe.disabled]),i.useEffect(()=>{if(cn._proxyFormState.isDirty){const an=cn._getDirty();an!==Dt.isDirty&&cn._subjects.state.next({isDirty:an})}},[cn,Dt.isDirty]),i.useEffect(()=>{Xe.values&&!Ge(Xe.values,Qt.current)?(cn._reset(Xe.values,cn._options.resetOptions),Qt.current=Xe.values,hn(an=>({...an}))):cn._resetDefaultValues()},[Xe.values,cn]),i.useEffect(()=>{Xe.errors&&cn._setErrors(Xe.errors)},[Xe.errors,cn]),i.useEffect(()=>{cn._state.mount||(cn._updateValid(),cn._state.mount=!0),cn._state.watch&&(cn._state.watch=!1,cn._subjects.state.next({...cn._formState})),cn._removeUnmounted()}),i.useEffect(()=>{Xe.shouldUnregister&&cn._subjects.values.next({values:cn._getWatch()})},[Xe.shouldUnregister,cn]),gn.current.formState=ae(Dt,cn),gn.current}},70255:(J,g,t)=>{"use strict";t.d(g,{A:()=>u,z:()=>f});var i=t(96540);const l=i.createContext({}),s=!0;function m({baseColor:p,highlightColor:v,width:h,height:d,borderRadius:b,circle:y,direction:w,duration:S,enableAnimation:O=s}){const R={};return w==="rtl"&&(R["--animation-direction"]="reverse"),typeof S=="number"&&(R["--animation-duration"]=`${S}s`),O||(R["--pseudo-element-display"]="none"),(typeof h=="string"||typeof h=="number")&&(R.width=h),(typeof d=="string"||typeof d=="number")&&(R.height=d),(typeof b=="string"||typeof b=="number")&&(R.borderRadius=b),y&&(R.borderRadius="50%"),typeof p<"u"&&(R["--base-color"]=p),typeof v<"u"&&(R["--highlight-color"]=v),R}function u({count:p=1,wrapper:v,className:h,containerClassName:d,containerTestId:b,circle:y=!1,style:w,...S}){var O,R,M;const D=i.useContext(l),P={...S};for(const[W,he]of Object.entries(S))typeof he>"u"&&delete P[W];const T={...D,...P,circle:y},A={...w,...m(T)};let j="react-loading-skeleton";h&&(j+=` ${h}`);const ae=(O=T.inline)!==null&&O!==void 0?O:!1,_=[],N=Math.ceil(p);for(let W=0;W<N;W++){let he=A;if(N>p&&W===N-1){const fe=(R=he.width)!==null&&R!==void 0?R:"100%",ve=p%1,ce=typeof fe=="number"?fe*ve:`calc(${fe} * ${ve})`;he={...he,width:ce}}const me=i.createElement("span",{className:j,style:he,key:W},"\u200C");ae?_.push(me):_.push(i.createElement(i.Fragment,{key:W},me,i.createElement("br",null)))}return i.createElement("span",{className:d,"data-testid":b,"aria-live":"polite","aria-busy":(M=T.enableAnimation)!==null&&M!==void 0?M:s},v?_.map((W,he)=>i.createElement(v,{key:he},W)):_)}function f({children:p,...v}){return i.createElement(l.Provider,{value:v},p)}},35822:(J,g,t)=>{"use strict";t.r(g),t.d(g,{defaultRangeExtractor:()=>R,useVirtual:()=>M});var i=t(96540);function l(){return l=Object.assign||function(T){for(var A=1;A<arguments.length;A++){var j=arguments[A];for(var ae in j)Object.prototype.hasOwnProperty.call(j,ae)&&(T[ae]=j[ae])}return T},l.apply(this,arguments)}function s(T,A){if(T==null)return{};var j={},ae=Object.keys(T),_,N;for(N=0;N<ae.length;N++)_=ae[N],!(A.indexOf(_)>=0)&&(j[_]=T[_]);return j}var m=["bottom","height","left","right","top","width"],u=function(A,j){return A===void 0&&(A={}),j===void 0&&(j={}),m.some(function(ae){return A[ae]!==j[ae]})},f=new Map,p,v=function T(){var A=[];f.forEach(function(j,ae){var _=ae.getBoundingClientRect();u(_,j.rect)&&(j.rect=_,A.push(j))}),A.forEach(function(j){j.callbacks.forEach(function(ae){return ae(j.rect)})}),p=window.requestAnimationFrame(T)};function h(T,A){return{observe:function(){var ae=f.size===0;f.has(T)?f.get(T).callbacks.push(A):f.set(T,{rect:void 0,hasRectChanged:!1,callbacks:[A]}),ae&&v()},unobserve:function(){var ae=f.get(T);if(ae){var _=ae.callbacks.indexOf(A);_>=0&&ae.callbacks.splice(_,1),ae.callbacks.length||f.delete(T),f.size||cancelAnimationFrame(p)}}}}var d=typeof window<"u"?i.useLayoutEffect:i.useEffect;function b(T,A){A===void 0&&(A={width:0,height:0});var j=i.useState(T.current),ae=j[0],_=j[1],N=i.useReducer(y,A),W=N[0],he=N[1],me=i.useRef(!1);return d(function(){T.current!==ae&&_(T.current)}),d(function(){if(ae&&!me.current){me.current=!0;var fe=ae.getBoundingClientRect();he({rect:fe})}},[ae]),i.useEffect(function(){if(ae){var fe=h(ae,function(ve){he({rect:ve})});return fe.observe(),function(){fe.unobserve()}}},[ae]),W}function y(T,A){var j=A.rect;return T.height!==j.height||T.width!==j.width?j:T}var w=function(){return 50},S=function(A){return A},O=function(A,j){var ae=j?"offsetWidth":"offsetHeight";return A[ae]},R=function(A){for(var j=Math.max(A.start-A.overscan,0),ae=Math.min(A.end+A.overscan,A.size-1),_=[],N=j;N<=ae;N++)_.push(N);return _};function M(T){var A,j=T.size,ae=j===void 0?0:j,_=T.estimateSize,N=_===void 0?w:_,W=T.overscan,he=W===void 0?1:W,me=T.paddingStart,fe=me===void 0?0:me,ve=T.paddingEnd,ce=ve===void 0?0:ve,oe=T.parentRef,re=T.horizontal,H=T.scrollToFn,V=T.useObserver,Q=T.initialRect,Te=T.onScrollElement,Re=T.scrollOffsetFn,ne=T.keyExtractor,pe=ne===void 0?S:ne,ye=T.measureSize,Se=ye===void 0?O:ye,Ae=T.rangeExtractor,Ee=Ae===void 0?R:Ae,xe=re?"width":"height",nt=re?"scrollLeft":"scrollTop",Tt=i.useRef({scrollOffset:0,measurements:[]}),pt=i.useState(0),Rt=pt[0],tt=pt[1];Tt.current.scrollOffset=Rt;var U=V||b,F=U(oe,Q),Y=F[xe];Tt.current.outerSize=Y;var le=i.useCallback(function(ct){oe.current&&(oe.current[nt]=ct)},[oe,nt]),ke=H||le;H=i.useCallback(function(ct){ke(ct,le)},[le,ke]);var Ye=i.useState({}),ft=Ye[0],wt=Ye[1],Ut=i.useCallback(function(){return wt({})},[]),Ke=i.useRef([]),it=i.useMemo(function(){var ct=Ke.current.length>0?Math.min.apply(Math,Ke.current):0;Ke.current=[];for(var Ge=Tt.current.measurements.slice(0,ct),st=ct;st<ae;st++){var Me=pe(st),ie=ft[Me],ge=Ge[st-1]?Ge[st-1].end:fe,z=typeof ie=="number"?ie:N(st),be=ge+z;Ge[st]={index:st,start:ge,size:z,end:be,key:Me}}return Ge},[N,ft,fe,ae,pe]),At=(((A=it[ae-1])==null?void 0:A.end)||fe)+ce;Tt.current.measurements=it,Tt.current.totalSize=At;var et=Te?Te.current:oe.current,ee=i.useRef(Re);ee.current=Re,d(function(){if(!et){tt(0);return}var ct=function(st){var Me=ee.current?ee.current(st):et[nt];tt(Me)};return ct(),et.addEventListener("scroll",ct,{capture:!1,passive:!0}),function(){et.removeEventListener("scroll",ct)}},[et,nt]);var I=P(Tt.current),K=I.start,ue=I.end,De=i.useMemo(function(){return Ee({start:K,end:ue,overscan:he,size:it.length})},[K,ue,he,it.length,Ee]),He=i.useRef(Se);He.current=Se;var Fe=i.useMemo(function(){for(var ct=[],Ge=function(ge,z){var be=De[ge],Qe=it[be],Bt=l(l({},Qe),{},{measureRef:function(bt){if(bt){var at=He.current(bt,re);if(at!==Bt.size){var $t=Tt.current.scrollOffset;Bt.start<$t&&le($t+(at-Bt.size)),Ke.current.push(be),wt(function(On){var Ct;return l(l({},On),{},(Ct={},Ct[Bt.key]=at,Ct))})}}}});ct.push(Bt)},st=0,Me=De.length;st<Me;st++)Ge(st);return ct},[De,le,re,it]),ze=i.useRef(!1);d(function(){ze.current&&wt({}),ze.current=!0},[N]);var qe=i.useCallback(function(ct,Ge){var st=Ge===void 0?{}:Ge,Me=st.align,ie=Me===void 0?"start":Me,ge=Tt.current,z=ge.scrollOffset,be=ge.outerSize;ie==="auto"&&(ct<=z?ie="start":ct>=z+be?ie="end":ie="start"),ie==="start"?H(ct):ie==="end"?H(ct-be):ie==="center"&&H(ct-be/2)},[H]),We=i.useCallback(function(ct,Ge){var st=Ge===void 0?{}:Ge,Me=st.align,ie=Me===void 0?"auto":Me,ge=s(st,["align"]),z=Tt.current,be=z.measurements,Qe=z.scrollOffset,Bt=z.outerSize,nn=be[Math.max(0,Math.min(ct,ae-1))];if(nn){if(ie==="auto")if(nn.end>=Qe+Bt)ie="end";else if(nn.start<=Qe)ie="start";else return;var bt=ie==="center"?nn.start+nn.size/2:ie==="end"?nn.end:nn.start;qe(bt,l({align:ie},ge))}},[qe,ae]),_t=i.useCallback(function(){for(var ct=arguments.length,Ge=new Array(ct),st=0;st<ct;st++)Ge[st]=arguments[st];We.apply(void 0,Ge),requestAnimationFrame(function(){We.apply(void 0,Ge)})},[We]);return{virtualItems:Fe,totalSize:At,scrollToOffset:qe,scrollToIndex:_t,measure:Ut}}var D=function(A,j,ae,_){for(;A<=j;){var N=(A+j)/2|0,W=ae(N);if(W<_)A=N+1;else if(W>_)j=N-1;else return N}return A>0?A-1:0};function P(T){for(var A=T.measurements,j=T.outerSize,ae=T.scrollOffset,_=A.length-1,N=function(fe){return A[fe].start},W=D(0,_,N,ae),he=W;he<_&&A[he].end<ae+j;)he++;return{start:W,end:he}}},11561:(J,g,t)=>{"use strict";t.d(g,{A:()=>s});var i=!0,l="Invariant failed";function s(m,u){if(!m){if(i)throw new Error(l);var f=typeof u=="function"?u():u,p=f?"".concat(l,": ").concat(f):l;throw new Error(p)}}},84140:(J,g,t)=>{"use strict";t.d(g,{A:()=>m});function i(Ae){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},i(Ae)}var l=/^\s+/,s=/\s+$/;function m(Ae,Ee){if(Ae=Ae||"",Ee=Ee||{},Ae instanceof m)return Ae;if(!(this instanceof m))return new m(Ae,Ee);var xe=u(Ae);this._originalInput=Ae,this._r=xe.r,this._g=xe.g,this._b=xe.b,this._a=xe.a,this._roundA=Math.round(100*this._a)/100,this._format=Ee.format||xe.format,this._gradientType=Ee.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=xe.ok}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ee=this.toRgb();return(Ee.r*299+Ee.g*587+Ee.b*114)/1e3},getLuminance:function(){var Ee=this.toRgb(),xe,nt,Tt,pt,Rt,tt;return xe=Ee.r/255,nt=Ee.g/255,Tt=Ee.b/255,xe<=.03928?pt=xe/12.92:pt=Math.pow((xe+.055)/1.055,2.4),nt<=.03928?Rt=nt/12.92:Rt=Math.pow((nt+.055)/1.055,2.4),Tt<=.03928?tt=Tt/12.92:tt=Math.pow((Tt+.055)/1.055,2.4),.2126*pt+.7152*Rt+.0722*tt},setAlpha:function(Ee){return this._a=fe(Ee),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ee=h(this._r,this._g,this._b);return{h:Ee.h*360,s:Ee.s,v:Ee.v,a:this._a}},toHsvString:function(){var Ee=h(this._r,this._g,this._b),xe=Math.round(Ee.h*360),nt=Math.round(Ee.s*100),Tt=Math.round(Ee.v*100);return this._a==1?"hsv("+xe+", "+nt+"%, "+Tt+"%)":"hsva("+xe+", "+nt+"%, "+Tt+"%, "+this._roundA+")"},toHsl:function(){var Ee=p(this._r,this._g,this._b);return{h:Ee.h*360,s:Ee.s,l:Ee.l,a:this._a}},toHslString:function(){var Ee=p(this._r,this._g,this._b),xe=Math.round(Ee.h*360),nt=Math.round(Ee.s*100),Tt=Math.round(Ee.l*100);return this._a==1?"hsl("+xe+", "+nt+"%, "+Tt+"%)":"hsla("+xe+", "+nt+"%, "+Tt+"%, "+this._roundA+")"},toHex:function(Ee){return b(this._r,this._g,this._b,Ee)},toHexString:function(Ee){return"#"+this.toHex(Ee)},toHex8:function(Ee){return y(this._r,this._g,this._b,this._a,Ee)},toHex8String:function(Ee){return"#"+this.toHex8(Ee)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ve(this._r,255)*100)+"%",g:Math.round(ve(this._g,255)*100)+"%",b:Math.round(ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%)":"rgba("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:he[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ee){var xe="#"+w(this._r,this._g,this._b,this._a),nt=xe,Tt=this._gradientType?"GradientType = 1, ":"";if(Ee){var pt=m(Ee);nt="#"+w(pt._r,pt._g,pt._b,pt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Tt+"startColorstr="+xe+",endColorstr="+nt+")"},toString:function(Ee){var xe=!!Ee;Ee=Ee||this._format;var nt=!1,Tt=this._a<1&&this._a>=0,pt=!xe&&Tt&&(Ee==="hex"||Ee==="hex6"||Ee==="hex3"||Ee==="hex4"||Ee==="hex8"||Ee==="name");return pt?Ee==="name"&&this._a===0?this.toName():this.toRgbString():(Ee==="rgb"&&(nt=this.toRgbString()),Ee==="prgb"&&(nt=this.toPercentageRgbString()),(Ee==="hex"||Ee==="hex6")&&(nt=this.toHexString()),Ee==="hex3"&&(nt=this.toHexString(!0)),Ee==="hex4"&&(nt=this.toHex8String(!0)),Ee==="hex8"&&(nt=this.toHex8String()),Ee==="name"&&(nt=this.toName()),Ee==="hsl"&&(nt=this.toHslString()),Ee==="hsv"&&(nt=this.toHsvString()),nt||this.toHexString())},clone:function(){return m(this.toString())},_applyModification:function(Ee,xe){var nt=Ee.apply(null,[this].concat([].slice.call(xe)));return this._r=nt._r,this._g=nt._g,this._b=nt._b,this.setAlpha(nt._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(D,arguments)},darken:function(){return this._applyModification(P,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(Ee,xe){return Ee.apply(null,[this].concat([].slice.call(xe)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(ae,arguments)},triad:function(){return this._applyCombination(j,[3])},tetrad:function(){return this._applyCombination(j,[4])}},m.fromRatio=function(Ae,Ee){if(i(Ae)=="object"){var xe={};for(var nt in Ae)Ae.hasOwnProperty(nt)&&(nt==="a"?xe[nt]=Ae[nt]:xe[nt]=Q(Ae[nt]));Ae=xe}return m(Ae,Ee)};function u(Ae){var Ee={r:0,g:0,b:0},xe=1,nt=null,Tt=null,pt=null,Rt=!1,tt=!1;return typeof Ae=="string"&&(Ae=ye(Ae)),i(Ae)=="object"&&(pe(Ae.r)&&pe(Ae.g)&&pe(Ae.b)?(Ee=f(Ae.r,Ae.g,Ae.b),Rt=!0,tt=String(Ae.r).substr(-1)==="%"?"prgb":"rgb"):pe(Ae.h)&&pe(Ae.s)&&pe(Ae.v)?(nt=Q(Ae.s),Tt=Q(Ae.v),Ee=d(Ae.h,nt,Tt),Rt=!0,tt="hsv"):pe(Ae.h)&&pe(Ae.s)&&pe(Ae.l)&&(nt=Q(Ae.s),pt=Q(Ae.l),Ee=v(Ae.h,nt,pt),Rt=!0,tt="hsl"),Ae.hasOwnProperty("a")&&(xe=Ae.a)),xe=fe(xe),{ok:Rt,format:Ae.format||tt,r:Math.min(255,Math.max(Ee.r,0)),g:Math.min(255,Math.max(Ee.g,0)),b:Math.min(255,Math.max(Ee.b,0)),a:xe}}function f(Ae,Ee,xe){return{r:ve(Ae,255)*255,g:ve(Ee,255)*255,b:ve(xe,255)*255}}function p(Ae,Ee,xe){Ae=ve(Ae,255),Ee=ve(Ee,255),xe=ve(xe,255);var nt=Math.max(Ae,Ee,xe),Tt=Math.min(Ae,Ee,xe),pt,Rt,tt=(nt+Tt)/2;if(nt==Tt)pt=Rt=0;else{var U=nt-Tt;switch(Rt=tt>.5?U/(2-nt-Tt):U/(nt+Tt),nt){case Ae:pt=(Ee-xe)/U+(Ee<xe?6:0);break;case Ee:pt=(xe-Ae)/U+2;break;case xe:pt=(Ae-Ee)/U+4;break}pt/=6}return{h:pt,s:Rt,l:tt}}function v(Ae,Ee,xe){var nt,Tt,pt;Ae=ve(Ae,360),Ee=ve(Ee,100),xe=ve(xe,100);function Rt(F,Y,le){return le<0&&(le+=1),le>1&&(le-=1),le<1/6?F+(Y-F)*6*le:le<1/2?Y:le<2/3?F+(Y-F)*(2/3-le)*6:F}if(Ee===0)nt=Tt=pt=xe;else{var tt=xe<.5?xe*(1+Ee):xe+Ee-xe*Ee,U=2*xe-tt;nt=Rt(U,tt,Ae+1/3),Tt=Rt(U,tt,Ae),pt=Rt(U,tt,Ae-1/3)}return{r:nt*255,g:Tt*255,b:pt*255}}function h(Ae,Ee,xe){Ae=ve(Ae,255),Ee=ve(Ee,255),xe=ve(xe,255);var nt=Math.max(Ae,Ee,xe),Tt=Math.min(Ae,Ee,xe),pt,Rt,tt=nt,U=nt-Tt;if(Rt=nt===0?0:U/nt,nt==Tt)pt=0;else{switch(nt){case Ae:pt=(Ee-xe)/U+(Ee<xe?6:0);break;case Ee:pt=(xe-Ae)/U+2;break;case xe:pt=(Ae-Ee)/U+4;break}pt/=6}return{h:pt,s:Rt,v:tt}}function d(Ae,Ee,xe){Ae=ve(Ae,360)*6,Ee=ve(Ee,100),xe=ve(xe,100);var nt=Math.floor(Ae),Tt=Ae-nt,pt=xe*(1-Ee),Rt=xe*(1-Tt*Ee),tt=xe*(1-(1-Tt)*Ee),U=nt%6,F=[xe,Rt,pt,pt,tt,xe][U],Y=[tt,xe,xe,Rt,pt,pt][U],le=[pt,pt,tt,xe,xe,Rt][U];return{r:F*255,g:Y*255,b:le*255}}function b(Ae,Ee,xe,nt){var Tt=[V(Math.round(Ae).toString(16)),V(Math.round(Ee).toString(16)),V(Math.round(xe).toString(16))];return nt&&Tt[0].charAt(0)==Tt[0].charAt(1)&&Tt[1].charAt(0)==Tt[1].charAt(1)&&Tt[2].charAt(0)==Tt[2].charAt(1)?Tt[0].charAt(0)+Tt[1].charAt(0)+Tt[2].charAt(0):Tt.join("")}function y(Ae,Ee,xe,nt,Tt){var pt=[V(Math.round(Ae).toString(16)),V(Math.round(Ee).toString(16)),V(Math.round(xe).toString(16)),V(Te(nt))];return Tt&&pt[0].charAt(0)==pt[0].charAt(1)&&pt[1].charAt(0)==pt[1].charAt(1)&&pt[2].charAt(0)==pt[2].charAt(1)&&pt[3].charAt(0)==pt[3].charAt(1)?pt[0].charAt(0)+pt[1].charAt(0)+pt[2].charAt(0)+pt[3].charAt(0):pt.join("")}function w(Ae,Ee,xe,nt){var Tt=[V(Te(nt)),V(Math.round(Ae).toString(16)),V(Math.round(Ee).toString(16)),V(Math.round(xe).toString(16))];return Tt.join("")}m.equals=function(Ae,Ee){return!Ae||!Ee?!1:m(Ae).toRgbString()==m(Ee).toRgbString()},m.random=function(){return m.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function S(Ae,Ee){Ee=Ee===0?0:Ee||10;var xe=m(Ae).toHsl();return xe.s-=Ee/100,xe.s=ce(xe.s),m(xe)}function O(Ae,Ee){Ee=Ee===0?0:Ee||10;var xe=m(Ae).toHsl();return xe.s+=Ee/100,xe.s=ce(xe.s),m(xe)}function R(Ae){return m(Ae).desaturate(100)}function M(Ae,Ee){Ee=Ee===0?0:Ee||10;var xe=m(Ae).toHsl();return xe.l+=Ee/100,xe.l=ce(xe.l),m(xe)}function D(Ae,Ee){Ee=Ee===0?0:Ee||10;var xe=m(Ae).toRgb();return xe.r=Math.max(0,Math.min(255,xe.r-Math.round(255*-(Ee/100)))),xe.g=Math.max(0,Math.min(255,xe.g-Math.round(255*-(Ee/100)))),xe.b=Math.max(0,Math.min(255,xe.b-Math.round(255*-(Ee/100)))),m(xe)}function P(Ae,Ee){Ee=Ee===0?0:Ee||10;var xe=m(Ae).toHsl();return xe.l-=Ee/100,xe.l=ce(xe.l),m(xe)}function T(Ae,Ee){var xe=m(Ae).toHsl(),nt=(xe.h+Ee)%360;return xe.h=nt<0?360+nt:nt,m(xe)}function A(Ae){var Ee=m(Ae).toHsl();return Ee.h=(Ee.h+180)%360,m(Ee)}function j(Ae,Ee){if(isNaN(Ee)||Ee<=0)throw new Error("Argument to polyad must be a positive number");for(var xe=m(Ae).toHsl(),nt=[m(Ae)],Tt=360/Ee,pt=1;pt<Ee;pt++)nt.push(m({h:(xe.h+pt*Tt)%360,s:xe.s,l:xe.l}));return nt}function ae(Ae){var Ee=m(Ae).toHsl(),xe=Ee.h;return[m(Ae),m({h:(xe+72)%360,s:Ee.s,l:Ee.l}),m({h:(xe+216)%360,s:Ee.s,l:Ee.l})]}function _(Ae,Ee,xe){Ee=Ee||6,xe=xe||30;var nt=m(Ae).toHsl(),Tt=360/xe,pt=[m(Ae)];for(nt.h=(nt.h-(Tt*Ee>>1)+720)%360;--Ee;)nt.h=(nt.h+Tt)%360,pt.push(m(nt));return pt}function N(Ae,Ee){Ee=Ee||6;for(var xe=m(Ae).toHsv(),nt=xe.h,Tt=xe.s,pt=xe.v,Rt=[],tt=1/Ee;Ee--;)Rt.push(m({h:nt,s:Tt,v:pt})),pt=(pt+tt)%1;return Rt}m.mix=function(Ae,Ee,xe){xe=xe===0?0:xe||50;var nt=m(Ae).toRgb(),Tt=m(Ee).toRgb(),pt=xe/100,Rt={r:(Tt.r-nt.r)*pt+nt.r,g:(Tt.g-nt.g)*pt+nt.g,b:(Tt.b-nt.b)*pt+nt.b,a:(Tt.a-nt.a)*pt+nt.a};return m(Rt)},m.readability=function(Ae,Ee){var xe=m(Ae),nt=m(Ee);return(Math.max(xe.getLuminance(),nt.getLuminance())+.05)/(Math.min(xe.getLuminance(),nt.getLuminance())+.05)},m.isReadable=function(Ae,Ee,xe){var nt=m.readability(Ae,Ee),Tt,pt;switch(pt=!1,Tt=Se(xe),Tt.level+Tt.size){case"AAsmall":case"AAAlarge":pt=nt>=4.5;break;case"AAlarge":pt=nt>=3;break;case"AAAsmall":pt=nt>=7;break}return pt},m.mostReadable=function(Ae,Ee,xe){var nt=null,Tt=0,pt,Rt,tt,U;xe=xe||{},Rt=xe.includeFallbackColors,tt=xe.level,U=xe.size;for(var F=0;F<Ee.length;F++)pt=m.readability(Ae,Ee[F]),pt>Tt&&(Tt=pt,nt=m(Ee[F]));return m.isReadable(Ae,nt,{level:tt,size:U})||!Rt?nt:(xe.includeFallbackColors=!1,m.mostReadable(Ae,["#fff","#000"],xe))};var W=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},he=m.hexNames=me(W);function me(Ae){var Ee={};for(var xe in Ae)Ae.hasOwnProperty(xe)&&(Ee[Ae[xe]]=xe);return Ee}function fe(Ae){return Ae=parseFloat(Ae),(isNaN(Ae)||Ae<0||Ae>1)&&(Ae=1),Ae}function ve(Ae,Ee){re(Ae)&&(Ae="100%");var xe=H(Ae);return Ae=Math.min(Ee,Math.max(0,parseFloat(Ae))),xe&&(Ae=parseInt(Ae*Ee,10)/100),Math.abs(Ae-Ee)<1e-6?1:Ae%Ee/parseFloat(Ee)}function ce(Ae){return Math.min(1,Math.max(0,Ae))}function oe(Ae){return parseInt(Ae,16)}function re(Ae){return typeof Ae=="string"&&Ae.indexOf(".")!=-1&&parseFloat(Ae)===1}function H(Ae){return typeof Ae=="string"&&Ae.indexOf("%")!=-1}function V(Ae){return Ae.length==1?"0"+Ae:""+Ae}function Q(Ae){return Ae<=1&&(Ae=Ae*100+"%"),Ae}function Te(Ae){return Math.round(parseFloat(Ae)*255).toString(16)}function Re(Ae){return oe(Ae)/255}var ne=function(){var Ae="[-\\+]?\\d+%?",Ee="[-\\+]?\\d*\\.\\d+%?",xe="(?:"+Ee+")|(?:"+Ae+")",nt="[\\s|\\(]+("+xe+")[,|\\s]+("+xe+")[,|\\s]+("+xe+")\\s*\\)?",Tt="[\\s|\\(]+("+xe+")[,|\\s]+("+xe+")[,|\\s]+("+xe+")[,|\\s]+("+xe+")\\s*\\)?";return{CSS_UNIT:new RegExp(xe),rgb:new RegExp("rgb"+nt),rgba:new RegExp("rgba"+Tt),hsl:new RegExp("hsl"+nt),hsla:new RegExp("hsla"+Tt),hsv:new RegExp("hsv"+nt),hsva:new RegExp("hsva"+Tt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pe(Ae){return!!ne.CSS_UNIT.exec(Ae)}function ye(Ae){Ae=Ae.replace(l,"").replace(s,"").toLowerCase();var Ee=!1;if(W[Ae])Ae=W[Ae],Ee=!0;else if(Ae=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var xe;return(xe=ne.rgb.exec(Ae))?{r:xe[1],g:xe[2],b:xe[3]}:(xe=ne.rgba.exec(Ae))?{r:xe[1],g:xe[2],b:xe[3],a:xe[4]}:(xe=ne.hsl.exec(Ae))?{h:xe[1],s:xe[2],l:xe[3]}:(xe=ne.hsla.exec(Ae))?{h:xe[1],s:xe[2],l:xe[3],a:xe[4]}:(xe=ne.hsv.exec(Ae))?{h:xe[1],s:xe[2],v:xe[3]}:(xe=ne.hsva.exec(Ae))?{h:xe[1],s:xe[2],v:xe[3],a:xe[4]}:(xe=ne.hex8.exec(Ae))?{r:oe(xe[1]),g:oe(xe[2]),b:oe(xe[3]),a:Re(xe[4]),format:Ee?"name":"hex8"}:(xe=ne.hex6.exec(Ae))?{r:oe(xe[1]),g:oe(xe[2]),b:oe(xe[3]),format:Ee?"name":"hex"}:(xe=ne.hex4.exec(Ae))?{r:oe(xe[1]+""+xe[1]),g:oe(xe[2]+""+xe[2]),b:oe(xe[3]+""+xe[3]),a:Re(xe[4]+""+xe[4]),format:Ee?"name":"hex8"}:(xe=ne.hex3.exec(Ae))?{r:oe(xe[1]+""+xe[1]),g:oe(xe[2]+""+xe[2]),b:oe(xe[3]+""+xe[3]),format:Ee?"name":"hex"}:!1}function Se(Ae){var Ee,xe;return Ae=Ae||{level:"AA",size:"small"},Ee=(Ae.level||"AA").toUpperCase(),xe=(Ae.size||"small").toLowerCase(),Ee!=="AA"&&Ee!=="AAA"&&(Ee="AA"),xe!=="small"&&xe!=="large"&&(xe="small"),{level:Ee,size:xe}}},31635:(J,g,t)=>{"use strict";t.r(g),t.d(g,{__addDisposableResource:()=>oe,__assign:()=>s,__asyncDelegator:()=>ae,__asyncGenerator:()=>j,__asyncValues:()=>_,__await:()=>A,__awaiter:()=>y,__classPrivateFieldGet:()=>fe,__classPrivateFieldIn:()=>ce,__classPrivateFieldSet:()=>ve,__createBinding:()=>S,__decorate:()=>u,__disposeResources:()=>H,__esDecorate:()=>p,__exportStar:()=>O,__extends:()=>l,__generator:()=>w,__importDefault:()=>me,__importStar:()=>he,__makeTemplateObject:()=>N,__metadata:()=>b,__param:()=>f,__propKey:()=>h,__read:()=>M,__rest:()=>m,__runInitializers:()=>v,__setFunctionName:()=>d,__spread:()=>D,__spreadArray:()=>T,__spreadArrays:()=>P,__values:()=>R,default:()=>V});var i=function(Q,Te){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Re,ne){Re.__proto__=ne}||function(Re,ne){for(var pe in ne)Object.prototype.hasOwnProperty.call(ne,pe)&&(Re[pe]=ne[pe])},i(Q,Te)};function l(Q,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Class extends value "+String(Te)+" is not a constructor or null");i(Q,Te);function Re(){this.constructor=Q}Q.prototype=Te===null?Object.create(Te):(Re.prototype=Te.prototype,new Re)}var s=function(){return s=Object.assign||function(Te){for(var Re,ne=1,pe=arguments.length;ne<pe;ne++){Re=arguments[ne];for(var ye in Re)Object.prototype.hasOwnProperty.call(Re,ye)&&(Te[ye]=Re[ye])}return Te},s.apply(this,arguments)};function m(Q,Te){var Re={};for(var ne in Q)Object.prototype.hasOwnProperty.call(Q,ne)&&Te.indexOf(ne)<0&&(Re[ne]=Q[ne]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ne=Object.getOwnPropertySymbols(Q);pe<ne.length;pe++)Te.indexOf(ne[pe])<0&&Object.prototype.propertyIsEnumerable.call(Q,ne[pe])&&(Re[ne[pe]]=Q[ne[pe]]);return Re}function u(Q,Te,Re,ne){var pe=arguments.length,ye=pe<3?Te:ne===null?ne=Object.getOwnPropertyDescriptor(Te,Re):ne,Se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(Q,Te,Re,ne);else for(var Ae=Q.length-1;Ae>=0;Ae--)(Se=Q[Ae])&&(ye=(pe<3?Se(ye):pe>3?Se(Te,Re,ye):Se(Te,Re))||ye);return pe>3&&ye&&Object.defineProperty(Te,Re,ye),ye}function f(Q,Te){return function(Re,ne){Te(Re,ne,Q)}}function p(Q,Te,Re,ne,pe,ye){function Se(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var Ae=ne.kind,Ee=Ae==="getter"?"get":Ae==="setter"?"set":"value",xe=!Te&&Q?ne.static?Q:Q.prototype:null,nt=Te||(xe?Object.getOwnPropertyDescriptor(xe,ne.name):{}),Tt,pt=!1,Rt=Re.length-1;Rt>=0;Rt--){var tt={};for(var U in ne)tt[U]=U==="access"?{}:ne[U];for(var U in ne.access)tt.access[U]=ne.access[U];tt.addInitializer=function(Y){if(pt)throw new TypeError("Cannot add initializers after decoration has completed");ye.push(Se(Y||null))};var F=(0,Re[Rt])(Ae==="accessor"?{get:nt.get,set:nt.set}:nt[Ee],tt);if(Ae==="accessor"){if(F===void 0)continue;if(F===null||typeof F!="object")throw new TypeError("Object expected");(Tt=Se(F.get))&&(nt.get=Tt),(Tt=Se(F.set))&&(nt.set=Tt),(Tt=Se(F.init))&&pe.unshift(Tt)}else(Tt=Se(F))&&(Ae==="field"?pe.unshift(Tt):nt[Ee]=Tt)}xe&&Object.defineProperty(xe,ne.name,nt),pt=!0}function v(Q,Te,Re){for(var ne=arguments.length>2,pe=0;pe<Te.length;pe++)Re=ne?Te[pe].call(Q,Re):Te[pe].call(Q);return ne?Re:void 0}function h(Q){return typeof Q=="symbol"?Q:"".concat(Q)}function d(Q,Te,Re){return typeof Te=="symbol"&&(Te=Te.description?"[".concat(Te.description,"]"):""),Object.defineProperty(Q,"name",{configurable:!0,value:Re?"".concat(Re," ",Te):Te})}function b(Q,Te){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Q,Te)}function y(Q,Te,Re,ne){function pe(ye){return ye instanceof Re?ye:new Re(function(Se){Se(ye)})}return new(Re||(Re=Promise))(function(ye,Se){function Ae(nt){try{xe(ne.next(nt))}catch(Tt){Se(Tt)}}function Ee(nt){try{xe(ne.throw(nt))}catch(Tt){Se(Tt)}}function xe(nt){nt.done?ye(nt.value):pe(nt.value).then(Ae,Ee)}xe((ne=ne.apply(Q,Te||[])).next())})}function w(Q,Te){var Re={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},ne,pe,ye,Se;return Se={next:Ae(0),throw:Ae(1),return:Ae(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function Ae(xe){return function(nt){return Ee([xe,nt])}}function Ee(xe){if(ne)throw new TypeError("Generator is already executing.");for(;Se&&(Se=0,xe[0]&&(Re=0)),Re;)try{if(ne=1,pe&&(ye=xe[0]&2?pe.return:xe[0]?pe.throw||((ye=pe.return)&&ye.call(pe),0):pe.next)&&!(ye=ye.call(pe,xe[1])).done)return ye;switch(pe=0,ye&&(xe=[xe[0]&2,ye.value]),xe[0]){case 0:case 1:ye=xe;break;case 4:return Re.label++,{value:xe[1],done:!1};case 5:Re.label++,pe=xe[1],xe=[0];continue;case 7:xe=Re.ops.pop(),Re.trys.pop();continue;default:if(ye=Re.trys,!(ye=ye.length>0&&ye[ye.length-1])&&(xe[0]===6||xe[0]===2)){Re=0;continue}if(xe[0]===3&&(!ye||xe[1]>ye[0]&&xe[1]<ye[3])){Re.label=xe[1];break}if(xe[0]===6&&Re.label<ye[1]){Re.label=ye[1],ye=xe;break}if(ye&&Re.label<ye[2]){Re.label=ye[2],Re.ops.push(xe);break}ye[2]&&Re.ops.pop(),Re.trys.pop();continue}xe=Te.call(Q,Re)}catch(nt){xe=[6,nt],pe=0}finally{ne=ye=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}}var S=Object.create?function(Q,Te,Re,ne){ne===void 0&&(ne=Re);var pe=Object.getOwnPropertyDescriptor(Te,Re);(!pe||("get"in pe?!Te.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return Te[Re]}}),Object.defineProperty(Q,ne,pe)}:function(Q,Te,Re,ne){ne===void 0&&(ne=Re),Q[ne]=Te[Re]};function O(Q,Te){for(var Re in Q)Re!=="default"&&!Object.prototype.hasOwnProperty.call(Te,Re)&&S(Te,Q,Re)}function R(Q){var Te=typeof Symbol=="function"&&Symbol.iterator,Re=Te&&Q[Te],ne=0;if(Re)return Re.call(Q);if(Q&&typeof Q.length=="number")return{next:function(){return Q&&ne>=Q.length&&(Q=void 0),{value:Q&&Q[ne++],done:!Q}}};throw new TypeError(Te?"Object is not iterable.":"Symbol.iterator is not defined.")}function M(Q,Te){var Re=typeof Symbol=="function"&&Q[Symbol.iterator];if(!Re)return Q;var ne=Re.call(Q),pe,ye=[],Se;try{for(;(Te===void 0||Te-- >0)&&!(pe=ne.next()).done;)ye.push(pe.value)}catch(Ae){Se={error:Ae}}finally{try{pe&&!pe.done&&(Re=ne.return)&&Re.call(ne)}finally{if(Se)throw Se.error}}return ye}function D(){for(var Q=[],Te=0;Te<arguments.length;Te++)Q=Q.concat(M(arguments[Te]));return Q}function P(){for(var Q=0,Te=0,Re=arguments.length;Te<Re;Te++)Q+=arguments[Te].length;for(var ne=Array(Q),pe=0,Te=0;Te<Re;Te++)for(var ye=arguments[Te],Se=0,Ae=ye.length;Se<Ae;Se++,pe++)ne[pe]=ye[Se];return ne}function T(Q,Te,Re){if(Re||arguments.length===2)for(var ne=0,pe=Te.length,ye;ne<pe;ne++)(ye||!(ne in Te))&&(ye||(ye=Array.prototype.slice.call(Te,0,ne)),ye[ne]=Te[ne]);return Q.concat(ye||Array.prototype.slice.call(Te))}function A(Q){return this instanceof A?(this.v=Q,this):new A(Q)}function j(Q,Te,Re){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ne=Re.apply(Q,Te||[]),pe,ye=[];return pe={},Se("next"),Se("throw"),Se("return"),pe[Symbol.asyncIterator]=function(){return this},pe;function Se(pt){ne[pt]&&(pe[pt]=function(Rt){return new Promise(function(tt,U){ye.push([pt,Rt,tt,U])>1||Ae(pt,Rt)})})}function Ae(pt,Rt){try{Ee(ne[pt](Rt))}catch(tt){Tt(ye[0][3],tt)}}function Ee(pt){pt.value instanceof A?Promise.resolve(pt.value.v).then(xe,nt):Tt(ye[0][2],pt)}function xe(pt){Ae("next",pt)}function nt(pt){Ae("throw",pt)}function Tt(pt,Rt){pt(Rt),ye.shift(),ye.length&&Ae(ye[0][0],ye[0][1])}}function ae(Q){var Te,Re;return Te={},ne("next"),ne("throw",function(pe){throw pe}),ne("return"),Te[Symbol.iterator]=function(){return this},Te;function ne(pe,ye){Te[pe]=Q[pe]?function(Se){return(Re=!Re)?{value:A(Q[pe](Se)),done:!1}:ye?ye(Se):Se}:ye}}function _(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te=Q[Symbol.asyncIterator],Re;return Te?Te.call(Q):(Q=typeof R=="function"?R(Q):Q[Symbol.iterator](),Re={},ne("next"),ne("throw"),ne("return"),Re[Symbol.asyncIterator]=function(){return this},Re);function ne(ye){Re[ye]=Q[ye]&&function(Se){return new Promise(function(Ae,Ee){Se=Q[ye](Se),pe(Ae,Ee,Se.done,Se.value)})}}function pe(ye,Se,Ae,Ee){Promise.resolve(Ee).then(function(xe){ye({value:xe,done:Ae})},Se)}}function N(Q,Te){return Object.defineProperty?Object.defineProperty(Q,"raw",{value:Te}):Q.raw=Te,Q}var W=Object.create?function(Q,Te){Object.defineProperty(Q,"default",{enumerable:!0,value:Te})}:function(Q,Te){Q.default=Te};function he(Q){if(Q&&Q.__esModule)return Q;var Te={};if(Q!=null)for(var Re in Q)Re!=="default"&&Object.prototype.hasOwnProperty.call(Q,Re)&&S(Te,Q,Re);return W(Te,Q),Te}function me(Q){return Q&&Q.__esModule?Q:{default:Q}}function fe(Q,Te,Re,ne){if(Re==="a"&&!ne)throw new TypeError("Private accessor was defined without a getter");if(typeof Te=="function"?Q!==Te||!ne:!Te.has(Q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Re==="m"?ne:Re==="a"?ne.call(Q):ne?ne.value:Te.get(Q)}function ve(Q,Te,Re,ne,pe){if(ne==="m")throw new TypeError("Private method is not writable");if(ne==="a"&&!pe)throw new TypeError("Private accessor was defined without a setter");if(typeof Te=="function"?Q!==Te||!pe:!Te.has(Q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ne==="a"?pe.call(Q,Re):pe?pe.value=Re:Te.set(Q,Re),Re}function ce(Q,Te){if(Te===null||typeof Te!="object"&&typeof Te!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Q=="function"?Te===Q:Q.has(Te)}function oe(Q,Te,Re){if(Te!=null){if(typeof Te!="object"&&typeof Te!="function")throw new TypeError("Object expected.");var ne;if(Re){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");ne=Te[Symbol.asyncDispose]}if(ne===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");ne=Te[Symbol.dispose]}if(typeof ne!="function")throw new TypeError("Object not disposable.");Q.stack.push({value:Te,dispose:ne,async:Re})}else Re&&Q.stack.push({async:!0});return Te}var re=typeof SuppressedError=="function"?SuppressedError:function(Q,Te,Re){var ne=new Error(Re);return ne.name="SuppressedError",ne.error=Q,ne.suppressed=Te,ne};function H(Q){function Te(ne){Q.error=Q.hasError?new re(ne,Q.error,"An error was suppressed during disposal."):ne,Q.hasError=!0}function Re(){for(;Q.stack.length;){var ne=Q.stack.pop();try{var pe=ne.dispose&&ne.dispose.call(ne.value);if(ne.async)return Promise.resolve(pe).then(Re,function(ye){return Te(ye),Re()})}catch(ye){Te(ye)}}if(Q.hasError)throw Q.error}return Re()}const V={__extends:l,__assign:s,__rest:m,__decorate:u,__param:f,__metadata:b,__awaiter:y,__generator:w,__createBinding:S,__exportStar:O,__values:R,__read:M,__spread:D,__spreadArrays:P,__spreadArray:T,__await:A,__asyncGenerator:j,__asyncDelegator:ae,__asyncValues:_,__makeTemplateObject:N,__importStar:he,__importDefault:me,__classPrivateFieldGet:fe,__classPrivateFieldSet:ve,__classPrivateFieldIn:ce,__addDisposableResource:oe,__disposeResources:H}}}]); //# sourceMappingURL=5950.30ec6aaa9dcece6c3b3c.js.map
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
static
---
0755
0.c88fc16b6533c8976681.js
11857 bytes
0644
0.c88fc16b6533c8976681.js.map
46011 bytes
0644
1118.6d1cbbd2070e00a7483d.js
9459 bytes
0644
1118.6d1cbbd2070e00a7483d.js.map
22012 bytes
0644
1121.6c31bf81768d3312b0d4.js
11557 bytes
0644
1121.6c31bf81768d3312b0d4.js.map
40274 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js
4310 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js.map
9301 bytes
0644
1133.cd705902767ed2e9bf55.js
107191 bytes
0644
1133.cd705902767ed2e9bf55.js.map
459177 bytes
0644
1216.ddb58ad09e0c4e3f4079.js
12860 bytes
0644
1216.ddb58ad09e0c4e3f4079.js.map
47906 bytes
0644
1282.2347f27d5b3a18a42a1e.js
2965 bytes
0644
1282.2347f27d5b3a18a42a1e.js.map
6699 bytes
0644
1345.8570fef914aafab94513.js
2223 bytes
0644
1345.8570fef914aafab94513.js.map
5201 bytes
0644
1347.8ad23b870a6e21306189.js
32035 bytes
0644
1347.8ad23b870a6e21306189.js.map
89851 bytes
0644
1420.f2553cafc235b7c32261.js
14576 bytes
0644
1420.f2553cafc235b7c32261.js.map
32839 bytes
0644
1438.897db349b7f48a15b9eb.js
2830 bytes
0644
1438.897db349b7f48a15b9eb.js.map
6911 bytes
0644
1446.babd36e7134aac1046c4.js
1832 bytes
0644
1446.babd36e7134aac1046c4.js.map
3282 bytes
0644
1488.ff35935a06f41b02b6cc.js
316 bytes
0644
1488.ff35935a06f41b02b6cc.js.map
1206 bytes
0644
1560.30962127c91e5eae9982.js
8916 bytes
0644
1560.30962127c91e5eae9982.js.map
20515 bytes
0644
1660.e1f66118fb028d12074f.js
21866 bytes
0644
1660.e1f66118fb028d12074f.js.map
71039 bytes
0644
1698.68ff1ef08e94a87836b3.js
12570 bytes
0644
1698.68ff1ef08e94a87836b3.js.map
46006 bytes
0644
1708.f42a783c0f6c7a317d49.js
2249 bytes
0644
1708.f42a783c0f6c7a317d49.js.map
2954 bytes
0644
1710.d96221051fceaf8c89dd.js
10172 bytes
0644
1710.d96221051fceaf8c89dd.js.map
22097 bytes
0644
1740.e57d920c47a11759ade4.js
6204 bytes
0644
1740.e57d920c47a11759ade4.js.map
13740 bytes
0644
1888.0ede69d3190c536744b9.js
6822 bytes
0644
1888.0ede69d3190c536744b9.js.map
15421 bytes
0644
1914.58113477b565d57e8bfe.js
10710 bytes
0644
1914.58113477b565d57e8bfe.js.map
23555 bytes
0644
198.b84c0e4f5759344ae05a.js
8267 bytes
0644
198.b84c0e4f5759344ae05a.js.map
19446 bytes
0644
205.6c51b5e35c8147226738.js
3542 bytes
0644
205.6c51b5e35c8147226738.js.map
8376 bytes
0644
2058.0e5df44647184aaf02e2.js
1252 bytes
0644
2058.0e5df44647184aaf02e2.js.map
4744 bytes
0644
2077.12b2df3682085a92a810.js
34133 bytes
0644
2077.12b2df3682085a92a810.js.map
122011 bytes
0644
2094.259625d8acf28b9c7361.js
16518 bytes
0644
2094.259625d8acf28b9c7361.js.map
41269 bytes
0644
21.afca69f2d336e287a655.js
6172 bytes
0644
21.afca69f2d336e287a655.js.map
17305 bytes
0644
2136.9c8dcd43d3af327f51f5.js
498667 bytes
0644
2136.9c8dcd43d3af327f51f5.js.map
1908011 bytes
0644
2228.cf629cf4a83c5b6c2671.js
269 bytes
0644
2228.cf629cf4a83c5b6c2671.js.map
457 bytes
0644
2244.9324c28eca7d2ffb7568.js
3396 bytes
0644
2244.9324c28eca7d2ffb7568.js.map
7683 bytes
0644
2261.ac6a26854d5acee00776.js
106373 bytes
0644
2261.ac6a26854d5acee00776.js.map
478562 bytes
0644
2278.bdd73b14b6337c6b14e4.js
5754 bytes
0644
2278.bdd73b14b6337c6b14e4.js.map
13399 bytes
0644
2398.3de0e7aa3057b7dcf9da.js
8016 bytes
0644
2398.3de0e7aa3057b7dcf9da.js.map
18383 bytes
0644
2514.c86950e9813e27962050.js
1983 bytes
0644
2514.c86950e9813e27962050.js.map
4863 bytes
0644
2571.345ecfd2b82551018f2e.js
162139 bytes
0644
2571.345ecfd2b82551018f2e.js.map
2046 bytes
0644
2586.972e9a7d564398afee76.js
6385 bytes
0644
2586.972e9a7d564398afee76.js.map
14676 bytes
0644
2658.f4100815829c4d37d35c.js
5432 bytes
0644
2658.f4100815829c4d37d35c.js.map
13650 bytes
0644
2686.2fbaa7db9c01d59cad8d.js
2815 bytes
0644
2686.2fbaa7db9c01d59cad8d.js.map
6564 bytes
0644
2692.20098ad0182743d98d62.js
2282 bytes
0644
2692.20098ad0182743d98d62.js.map
5680 bytes
0644
2694.a31d749361a36eb167da.js
2726 bytes
0644
2694.a31d749361a36eb167da.js.map
3618 bytes
0644
2745.2e5ec1fdf377d2940fb4.js
33584 bytes
0644
2745.2e5ec1fdf377d2940fb4.js.map
120277 bytes
0644
2962.4c3147d8ee365fe296ef.js
7640 bytes
0644
2962.4c3147d8ee365fe296ef.js.map
17621 bytes
0644
3042.248a4194805a8500fd28.js
19010 bytes
0644
3042.248a4194805a8500fd28.js.map
38148 bytes
0644
3062.4e9a427c2a59d53f902e.js
4663 bytes
0644
3062.4e9a427c2a59d53f902e.js.map
10650 bytes
0644
3082.c09cff56c35d736ee8b6.js
52872 bytes
0644
3082.c09cff56c35d736ee8b6.js.map
56822 bytes
0644
3096.8d41728a4f5010bc56a2.js
4378 bytes
0644
3096.8d41728a4f5010bc56a2.js.map
10739 bytes
0644
3098.f22ad6dab13d06477be0.js
31462 bytes
0644
3098.f22ad6dab13d06477be0.js.map
85588 bytes
0644
3182.1d531f28507c00e391fc.js
13817 bytes
0644
3182.1d531f28507c00e391fc.js.map
26653 bytes
0644
3407.666eb88a718e66b93f72.js
34425 bytes
0644
3407.666eb88a718e66b93f72.js.map
103716 bytes
0644
3418.d31d882b87bd5a2ef66f.js
33061 bytes
0644
3418.d31d882b87bd5a2ef66f.js.map
114234 bytes
0644
3541.8d063e3d43d55745d89b.js
20582 bytes
0644
3541.8d063e3d43d55745d89b.js.map
67154 bytes
0644
3543.eecef49ce94da5ee0418.js
136752 bytes
0644
3543.eecef49ce94da5ee0418.js.map
446118 bytes
0644
3622.976b1aef94b333e450b9.js
1260 bytes
0644
3622.976b1aef94b333e450b9.js.map
2819 bytes
0644
3686.102abfc00452299017bb.js
87 bytes
0644
3718.3993946b7a0eb8f64b4d.js
23620 bytes
0644
3718.3993946b7a0eb8f64b4d.js.map
92024 bytes
0644
3726.3adfe210678d2cd26969.js
31765 bytes
0644
3726.3adfe210678d2cd26969.js.map
118227 bytes
0644
398.4e93ffb675609ea7a9c6.js
2990 bytes
0644
398.4e93ffb675609ea7a9c6.js.map
7145 bytes
0644
4114.953b39a9ce57caa0e87a.js
2536 bytes
0644
4114.953b39a9ce57caa0e87a.js.map
6028 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js
3229 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js.map
7533 bytes
0644
4209.c7060d489834063658f5.js
17352 bytes
0644
4209.c7060d489834063658f5.js.map
30980 bytes
0644
4254.c5f4a5512b252e3a5796.js
71716 bytes
0644
4254.c5f4a5512b252e3a5796.js.map
237783 bytes
0644
4289.d5662b0904798ff437e9.js
16496 bytes
0644
4289.d5662b0904798ff437e9.js.map
32015 bytes
0644
4334.bc078c368a20ed3257b6.js
2598 bytes
0644
4334.bc078c368a20ed3257b6.js.map
6308 bytes
0644
4630.b604ea691184ba563d59.js
5585 bytes
0644
4630.b604ea691184ba563d59.js.map
11866 bytes
0644
4680.358dfdd92851f69ecc97.js
4573 bytes
0644
4680.358dfdd92851f69ecc97.js.map
10841 bytes
0644
4698.696713071ff5d9929a11.js
3682 bytes
0644
4698.696713071ff5d9929a11.js.map
8967 bytes
0644
4787.bd938ea7cb58d64ee246.js
738 bytes
0644
4787.bd938ea7cb58d64ee246.js.map
2168 bytes
0644
4839.17a10e0ceca3eb8954b4.js
39585 bytes
0644
4839.17a10e0ceca3eb8954b4.js.map
145699 bytes
0644
494.8cf705bc1ea509187c88.js
3796 bytes
0644
494.8cf705bc1ea509187c88.js.map
8987 bytes
0644
4958.cd447d877778fc5af081.js
4923 bytes
0644
4958.cd447d877778fc5af081.js.map
11000 bytes
0644
4962.0da526ad79f816a15985.js
2242 bytes
0644
4962.0da526ad79f816a15985.js.map
4978 bytes
0644
50.7b1e44d5b9dbbed566be.js
617497 bytes
0644
50.7b1e44d5b9dbbed566be.js.map
2271464 bytes
0644
5017.003cacead1bba1cba035.js
3567142 bytes
0644
5017.003cacead1bba1cba035.js.map
13214665 bytes
0644
5130.4d31108de97088a3b014.js
2850 bytes
0644
5130.4d31108de97088a3b014.js.map
6536 bytes
0644
5196.064b914693b6a5591a48.js
4035 bytes
0644
5196.064b914693b6a5591a48.js.map
10273 bytes
0644
5240.eceb5f73f807ac22d800.js
704 bytes
0644
5240.eceb5f73f807ac22d800.js.map
2618 bytes
0644
5277.ce6608b6f47246e32767.js
269 bytes
0644
5277.ce6608b6f47246e32767.js.map
457 bytes
0644
5280.4348c762594edebf7d0e.js
16657 bytes
0644
5280.4348c762594edebf7d0e.js.map
89146 bytes
0644
5356.eabc0dc2021a3814a65f.js
10156 bytes
0644
5356.eabc0dc2021a3814a65f.js.map
25249 bytes
0644
5358.7c5e9e1b192582f3082d.js
6173 bytes
0644
5358.7c5e9e1b192582f3082d.js.map
19652 bytes
0644
5364.ac21c32fd45a27bc998a.js
3070 bytes
0644
5364.ac21c32fd45a27bc998a.js.map
7368 bytes
0644
5398.d0c11aa7c1232f4afe44.js
81872 bytes
0644
5398.d0c11aa7c1232f4afe44.js.map
769414 bytes
0644
5428.e85b0800b30feca9d7dc.js
330175 bytes
0644
5428.e85b0800b30feca9d7dc.js.map
530929 bytes
0644
5511.93023985e5c5efe49ae2.js
21275 bytes
0644
5511.93023985e5c5efe49ae2.js.map
93188 bytes
0644
5550.9284e42acc3f2bbdfc9d.js
7039 bytes
0644
5550.9284e42acc3f2bbdfc9d.js.map
16382 bytes
0644
558.701e8b4db7b852c4a10d.js
12211 bytes
0644
558.701e8b4db7b852c4a10d.js.map
24505 bytes
0644
5618.638c32d58d896f3f7261.js
3348 bytes
0644
5618.638c32d58d896f3f7261.js.map
8181 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js
57392 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js.map
60585 bytes
0644
5786.db7abc3b8e4f474a8f7b.js
5325 bytes
0644
5786.db7abc3b8e4f474a8f7b.js.map
11885 bytes
0644
5807.f05d997ece5811bbc849.js
2922915 bytes
0644
5807.f05d997ece5811bbc849.js.map
10524334 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js
4616249 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js.map
19277501 bytes
0644
6018.f4de7ac19ac8f0c774e6.js
5861 bytes
0644
6018.f4de7ac19ac8f0c774e6.js.map
13314 bytes
0644
6029.0549a3fcb50e73c4b256.js
409895 bytes
0644
6029.0549a3fcb50e73c4b256.js.map
998408 bytes
0644
6185.883629fcc773b4968b24.js
2258 bytes
0644
6185.883629fcc773b4968b24.js.map
4788 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js
54594 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js.map
242030 bytes
0644
6302.257b2eb06c25ee74090e.js
8440 bytes
0644
6302.257b2eb06c25ee74090e.js.map
19322 bytes
0644
6359.f824c85233ec703f8cea.js
11411 bytes
0644
6359.f824c85233ec703f8cea.js.map
41881 bytes
0644
6377.45d36c143a694fc45bd3.js
20571 bytes
0644
6377.45d36c143a694fc45bd3.js.map
79590 bytes
0644
6378.27b1e6d863a0a3b85962.js
977993 bytes
0644
6378.27b1e6d863a0a3b85962.js.map
3865587 bytes
0644
6414.192cf271de6ecbbbcb11.js
3984 bytes
0644
6414.192cf271de6ecbbbcb11.js.map
9134 bytes
0644
6446.b4b93ee91aa1bb57ea93.js
7731 bytes
0644
6446.b4b93ee91aa1bb57ea93.js.map
17485 bytes
0644
6464.f379e014f9909e621de6.js
34429 bytes
0644
6464.f379e014f9909e621de6.js.map
113303 bytes
0644
6499.9f52e0855fd4782a8b45.js
78297 bytes
0644
6499.9f52e0855fd4782a8b45.js.map
273155 bytes
0644
6587.bfb1ca0c32c6f325b0df.js
135004 bytes
0644
6587.bfb1ca0c32c6f325b0df.js.map
541974 bytes
0644
660.838743295c2108f3492d.js
43101 bytes
0644
660.838743295c2108f3492d.js.map
100340 bytes
0644
6678.a615dbe07b8a3e591e66.js
14725 bytes
0644
6678.a615dbe07b8a3e591e66.js.map
51145 bytes
0644
680.1a328432fae403eacab3.js
53846 bytes
0644
680.1a328432fae403eacab3.js.map
57615 bytes
0644
6830.0c200fec1efc2be388e2.js
5811 bytes
0644
6830.0c200fec1efc2be388e2.js.map
13972 bytes
0644
6934.fa19d392db34411fb300.js
168944 bytes
0644
6934.fa19d392db34411fb300.js.map
540337 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js
3408 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js.map
8039 bytes
0644
6969.f8f153735314f9426000.js
1119 bytes
0644
6969.f8f153735314f9426000.js.map
4230 bytes
0644
6990.cc2f5674128929a3f870.js
4418 bytes
0644
6990.cc2f5674128929a3f870.js.map
10503 bytes
0644
7048.117de444b1e1cb5a1360.js
4365 bytes
0644
7048.117de444b1e1cb5a1360.js.map
10316 bytes
0644
7166.480da6892ee84ee8bb53.js
593985 bytes
0644
7166.480da6892ee84ee8bb53.js.map
2430098 bytes
0644
7200.dc60128b9d612fc7b5b0.js
3634 bytes
0644
7200.dc60128b9d612fc7b5b0.js.map
8184 bytes
0644
7246.3adf293a34fa2043387b.js
4306 bytes
0644
7246.3adf293a34fa2043387b.js.map
9084 bytes
0644
7400.024c96bd5b99b8b47a63.js
14112 bytes
0644
7400.024c96bd5b99b8b47a63.js.map
64001 bytes
0644
7409.24316c87d08c1053c46a.js
3287 bytes
0644
7409.24316c87d08c1053c46a.js.map
11649 bytes
0644
7455.845968885abe369e6479.js
19801 bytes
0644
7455.845968885abe369e6479.js.map
77213 bytes
0644
7466.09e6e197d2507f62097d.js
11670 bytes
0644
7466.09e6e197d2507f62097d.js.map
24830 bytes
0644
7515.95323f0dfbd0de010e5c.js
1083 bytes
0644
7515.95323f0dfbd0de010e5c.js.map
1321 bytes
0644
7613.6334cff4df12cc157522.js
808779 bytes
0644
7613.6334cff4df12cc157522.js.map
991378 bytes
0644
7836.6a7e4207e70fc2dc235f.js
7192 bytes
0644
7836.6a7e4207e70fc2dc235f.js.map
17613 bytes
0644
7882.1a3cc418752c83396970.js
3743 bytes
0644
7882.1a3cc418752c83396970.js.map
14950 bytes
0644
7886.485c46f14540aa23cf70.js
8668 bytes
0644
7886.485c46f14540aa23cf70.js.map
20124 bytes
0644
7914.2b1a06c504df18e20fe4.js
2390 bytes
0644
7914.2b1a06c504df18e20fe4.js.map
6418 bytes
0644
7982.6761217193d3060dbf0e.js
188973 bytes
0644
7982.6761217193d3060dbf0e.js.map
1737667 bytes
0644
8054.094788468423bb88ee68.js
38124 bytes
0644
8054.094788468423bb88ee68.js.map
132296 bytes
0644
8107.92bd414247a1d05c014f.js
5144 bytes
0644
8107.92bd414247a1d05c014f.js.map
15320 bytes
0644
8230.2eedae6021a4715c6dea.js
2413 bytes
0644
8230.2eedae6021a4715c6dea.js.map
5812 bytes
0644
8332.f4b05d2f028641445650.js
3177 bytes
0644
8332.f4b05d2f028641445650.js.map
7186 bytes
0644
8334.c95ec0eb6900c0cf7e89.js
7803 bytes
0644
8334.c95ec0eb6900c0cf7e89.js.map
17714 bytes
0644
8390.1fd9505094c8cf8830ab.js
2096 bytes
0644
8390.1fd9505094c8cf8830ab.js.map
5157 bytes
0644
84.a6f8658e6a033d642231.js
30608 bytes
0644
84.a6f8658e6a033d642231.js.map
142543 bytes
0644
8494.4470c87b7093ddf70db7.js
2180 bytes
0644
8494.4470c87b7093ddf70db7.js.map
4863 bytes
0644
8542.1391ab96a455b01963a7.js
1514 bytes
0644
8542.1391ab96a455b01963a7.js.map
3249 bytes
0644
8566.e05562713181c6ca30fe.js
3852 bytes
0644
8566.e05562713181c6ca30fe.js.map
8781 bytes
0644
8730.3dcdd8cbf22c63b45d78.js
2109 bytes
0644
8730.3dcdd8cbf22c63b45d78.js.map
2893 bytes
0644
8786.1b0e43b80c82c73e2096.js
1535 bytes
0644
8786.1b0e43b80c82c73e2096.js.map
4055 bytes
0644
8902.37d0b14aa6ef24687b7b.js
2673 bytes
0644
8902.37d0b14aa6ef24687b7b.js.map
5993 bytes
0644
8990.5a822b8788ebf0bdba81.js
3969 bytes
0644
8990.5a822b8788ebf0bdba81.js.map
9161 bytes
0644
9034.200fc7a09b466256c9a9.js
3486 bytes
0644
9034.200fc7a09b466256c9a9.js.map
8180 bytes
0644
9038.7ae2448b9cc5c423aeca.js
4937 bytes
0644
9038.7ae2448b9cc5c423aeca.js.map
11973 bytes
0644
9118.3121c6b96ec7dc211973.js
48311 bytes
0644
9118.3121c6b96ec7dc211973.js.map
62149 bytes
0644
9150.9eb62d45f9b21cb38850.js
10056 bytes
0644
9150.9eb62d45f9b21cb38850.js.map
21143 bytes
0644
9199.9897e268d6d13e834d4c.js
2307 bytes
0644
9199.9897e268d6d13e834d4c.js.map
8853 bytes
0644
9320.c403e78b78aa6df1d0bd.js
336139 bytes
0644
9320.c403e78b78aa6df1d0bd.js.map
1624993 bytes
0644
9355.421530b20c759bb75633.js
22098 bytes
0644
9355.421530b20c759bb75633.js.map
66961 bytes
0644
9384.a0d5fc49f1b15b3e311e.js
2855 bytes
0644
9384.a0d5fc49f1b15b3e311e.js.map
3717 bytes
0644
9390.fa2af7f3d3d9600c08ee.js
4201 bytes
0644
9390.fa2af7f3d3d9600c08ee.js.map
9682 bytes
0644
946.f2494c0c39a9590349b9.js
9194 bytes
0644
946.f2494c0c39a9590349b9.js.map
22193 bytes
0644
9510.4cfa85a51931dc20573a.js
2949 bytes
0644
9510.4cfa85a51931dc20573a.js.map
6939 bytes
0644
9521.de2a74ca5eb365810ca5.js
46306 bytes
0644
9521.de2a74ca5eb365810ca5.js.map
51040 bytes
0644
9538.996ade7a03ccdb01942d.js
64493 bytes
0644
9538.996ade7a03ccdb01942d.js.map
49212 bytes
0644
9569.a8d60b39654a160cb917.js
27965 bytes
0644
9569.a8d60b39654a160cb917.js.map
99160 bytes
0644
9643.b408884004ca73c102bc.js
627 bytes
0644
9643.b408884004ca73c102bc.js.map
2195 bytes
0644
968.22e079d28acb4131d34c.js
4001 bytes
0644
968.22e079d28acb4131d34c.js.map
9740 bytes
0644
970.a61e37b9b897c8098261.js
5239 bytes
0644
970.a61e37b9b897c8098261.js.map
13858 bytes
0644
9711.d6e977bd60f0e5ba673d.js
13555 bytes
0644
9711.d6e977bd60f0e5ba673d.js.map
43973 bytes
0644
9737.3340c89ea96d33307cc7.js
1001 bytes
0644
9737.3340c89ea96d33307cc7.js.map
3504 bytes
0644
9739.5a801055fcf72bf4d06f.js
1147 bytes
0644
9739.5a801055fcf72bf4d06f.js.map
4390 bytes
0644
9772.49e918c9331237552c0b.js
141 bytes
0644
9772.49e918c9331237552c0b.js.map
416 bytes
0644
9838.b8f01dc360f0c2151291.js
4003 bytes
0644
9838.b8f01dc360f0c2151291.js.map
8118 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js
22504 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js.map
67352 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js
6369 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js.map
20602 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js
4939 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js.map
16531 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js
2702 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js.map
7735 bytes
0644
AdminSettings.845c6def917892a0c1f9.js
1903 bytes
0644
AdminSettings.845c6def917892a0c1f9.js.map
5580 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js
54554 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js.map
208792 bytes
0644
AlertGroups.efd523dc41621f9f7935.js
10088 bytes
0644
AlertGroups.efd523dc41621f9f7935.js.map
39108 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js
44623 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js.map
156842 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js
6270 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js.map
18086 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js
24687 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js.map
83377 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js
9844 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js.map
27934 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js
10523 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js.map
37393 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js
672 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js.map
1220 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js
33492 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js.map
106868 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js
3648 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js.map
10875 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js
79931 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js.map
292923 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js
31333 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js.map
98330 bytes
0644
AngularApp.7e72879caebef22a5217.js
72809 bytes
0644
AngularApp.7e72879caebef22a5217.js.map
102853 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js
8422 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js.map
23375 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js
2941 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js.map
9749 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js
470 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js.map
1195 bytes
0644
Connections.b53c715b9b9a782d8647.js
32448 bytes
0644
Connections.b53c715b9b9a782d8647.js.map
112998 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js
674 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js.map
1149 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js
22725 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js.map
69262 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js
3046 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js.map
9594 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js
18153 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js.map
58242 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js
30967 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js.map
108517 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js
2786 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js.map
8754 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js
65136 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js.map
226791 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js
331 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js.map
582 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js
10507 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js.map
37444 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js
1768 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js.map
5917 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js
9633 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js.map
29985 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js
8599 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js.map
25919 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js
2704 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js.map
7623 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js
4713 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js.map
14309 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js
20855 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js.map
58932 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js
9785 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js.map
32951 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js
1325 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js.map
3158 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js
2547 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js.map
6671 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js
1620 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js.map
3378 bytes
0644
NotificationsPage.d26b90d7348139106351.js
4646 bytes
0644
NotificationsPage.d26b90d7348139106351.js.map
25381 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js
6742 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js.map
17850 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js
6892 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js.map
19989 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js
6583 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js.map
19084 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js
7895 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js.map
25502 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js
275 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js.map
698 bytes
0644
PluginListPage.815b65d32380d0a800f7.js
12167 bytes
0644
PluginListPage.815b65d32380d0a800f7.js.map
43537 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js
314 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js.map
668 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js
552 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js.map
1012 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js
4295 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js.map
14393 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js
1124 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js.map
2993 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js
1736 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js.map
4350 bytes
0644
ServerStats.3fbd2493deb8f4598755.js
3863 bytes
0644
ServerStats.3fbd2493deb8f4598755.js.map
11534 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js
2440 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js.map
7939 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js
14806 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js.map
51593 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js
14565 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js.map
46399 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js
2360 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js.map
6096 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js
3061 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js.map
9043 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js
3229 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js.map
12316 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js
1727 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js.map
5509 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js
14081 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js.map
48740 bytes
0644
SupportBundles.567d512b3f919b8112e4.js
3058 bytes
0644
SupportBundles.567d512b3f919b8112e4.js.map
8751 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js
2779 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js.map
8882 bytes
0644
TeamList.2e23d37c91734f608f09.js
9019 bytes
0644
TeamList.2e23d37c91734f608f09.js.map
30348 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js
22839 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js.map
66001 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js
2654 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js.map
8058 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js
1470 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js.map
3788 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js
2576 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js.map
6594 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js
25463 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js.map
79671 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js
14593 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js.map
42901 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js
8800 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js.map
30059 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js
957 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js.map
3199 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js
1429 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js.map
4041 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js
3810 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js.map
10753 bytes
0644
app.b11fde05d43f9632a473.js
920821 bytes
0644
app.b11fde05d43f9632a473.js.map
69088 bytes
0644
assets-manifest.json
280835 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js
232 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js.map
600 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js
371235 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js.map
1132097 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js
485254 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js.map
2136916 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js
198 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js.map
555 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js
192 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
544 bytes
0644
dark.7fa24d1908c1c96e6fcc.js
134 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js
214 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js.map
583 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js
612 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js.map
1280 bytes
0644
explore.476912733278e2a99729.js
165810 bytes
0644
explore.476912733278e2a99729.js.map
579148 bytes
0644
geomapPanel.14b9605971a38c51d262.js
417078 bytes
0644
geomapPanel.14b9605971a38c51d262.js.map
540371 bytes
0644
grafana.dark.8c716fbcf630eae84ced.css
209089 bytes
0644
grafana.light.b8b3904788f25480f4a1.css
209047 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js
8654 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js.map
28174 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js
70277 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js.map
243430 bytes
0644
graphitePlugin.d59175976346917781fe.js
75305 bytes
0644
graphitePlugin.d59175976346917781fe.js.map
272016 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js
37545 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js.map
158066 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js
68843 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js.map
265085 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js
19727 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js.map
65603 bytes
0644
light.af65e5ce03b9ed0aa2b1.js
134 bytes
0644
loki-query-field.a588d587d9d762b18f22.js
191 bytes
0644
loki-query-field.a588d587d9d762b18f22.js.map
548 bytes
0644
lokiPlugin.77364509de280321b6f8.js
185 bytes
0644
lokiPlugin.77364509de280321b6f8.js.map
536 bytes
0644
mixedPlugin.f36bd557a883d9a67538.js
180 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js
20457 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js.map
61420 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js
17323 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js.map
45415 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js
2107 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js.map
7132 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js
22866 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js.map
82180 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js
11184 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js.map
42340 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js
18902 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js.map
54304 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js
14104 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js.map
76811 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js
224 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js.map
699 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js
22269 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js.map
86896 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js
15759 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js.map
51544 bytes
0644
runtime.4b7e1b5735d2ed64b824.js
13640 bytes
0644
runtime.4b7e1b5735d2ed64b824.js.map
35122 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js
25242 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js.map
80497 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js
182 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js.map
529 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js
120550 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js.map
303302 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js
459653 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js.map
1951742 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js
13172 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js.map
46861 bytes
0644
N4ST4R_ID | Naxtarrr