locust 2.23.2.dev4__py3-none-any.whl → 2.23.2.dev7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
locust/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.23.2.dev4'
16
- __version_tuple__ = version_tuple = (2, 23, 2, 'dev4')
15
+ __version__ = version = '2.23.2.dev7'
16
+ __version_tuple__ = version_tuple = (2, 23, 2, 'dev7')
@@ -153,9 +153,9 @@ Error generating stack: `+a.message+`
153
153
  The error may be correlated with this previous error:
154
154
  ${W.current.stack}
155
155
 
156
- `),J}Qy(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,$({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:E},re):re,[M,re,E])}const b=O.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=O.forwardRef(function(T,M){return O.createElement(b,$({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,XP(C,g)}return XP(b,g)}}function rL({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=MG(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=O.useMemo(()=>e.getState(),[e]);Qy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||So;return O.createElement(l.Provider,{value:o},r)}function IG(e=So){const t=e===So?wG:LM(e);return function(){const{store:n}=t();return n}}const PG=IG();function Xle(e=So){const t=e===So?PG:IG(e);return function(){return t().dispatch}}const DG=Xle();kle(wle.useSyncExternalStoreWithSelector);Hle(xG.useSyncExternalStore);Tle(Hf.unstable_batchedUpdates);var NM={},RG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(RG);var Ou=RG.exports,KS={};const Zle=sq(yQ);var nL;function Nu(){return nL||(nL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Zle}(KS)),KS}var Kle=Ou;Object.defineProperty(NM,"__esModule",{value:!0});var LG=NM.default=void 0,Qle=Kle(Nu()),Jle=R,eue=(0,Qle.default)((0,Jle.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");LG=NM.default=eue;var zM={},tue=Ou;Object.defineProperty(zM,"__esModule",{value:!0});var EG=zM.default=void 0,rue=tue(Nu()),nue=R,iue=(0,rue.default)((0,nue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");EG=zM.default=iue;const Si={DARK:"dark",LIGHT:"light"},OG=localStorage.theme===Si.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Si.DARK:Si.LIGHT,Ys=EM,aue=DG;function ql(e){const t=aue();return O.useCallback(r=>{t(e(r))},[e,t])}const oue={isDarkMode:!1},NG=li({name:"theme",initialState:oue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),sue=NG.actions,zG=NG.reducer;function BG(){const e=Ys(({theme:{isDarkMode:n}})=>n),t=ql(sue.setIsDarkMode);O.useEffect(()=>{t(OG===Si.DARK)},[]);const r=()=>{localStorage.theme=e?Si.LIGHT:Si.DARK,t(!e)};return R.jsx(Cv,{color:"inherit",onClick:r,children:e?R.jsx(EG,{}):R.jsx(LG,{})})}const BM=e=>R2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function $G(e,t,r){return t&&(Array.isArray(t)?t.map(n=>$G(e,n,r)):typeof t=="object"?$M(t,r):t)}const $M=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:$G(e,i,t)}),{}),FG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),lue=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),jc=e=>$M(e,FG),iL=e=>$M(e,lue),VG=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),uue=e=>Object.fromEntries(new URLSearchParams(e).entries()),cue=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},{authProviders:aL,error:oL,usernamePasswordCallback:sL}=window.authArgs?jc(window.authArgs):{};function fue(){const e=EM(({theme:r})=>r.isDarkMode),t=O.useMemo(()=>BM(e?Si.DARK:Si.LIGHT),[e]);return R.jsxs(L2,{theme:t,children:[R.jsx(IM,{}),R.jsx(it,{sx:{position:"absolute",top:4,right:4},children:R.jsx(BG,{})}),R.jsxs(it,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[R.jsxs(it,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:[R.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),R.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),sL&&R.jsx("form",{action:sL,children:R.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[R.jsx(wa,{label:"Username",name:"username"}),R.jsx(wa,{label:"Password",name:"password",type:"password"}),oL&&R.jsx(Ute,{severity:"error",children:oL}),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),aL&&R.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:aL.map(({label:r,callbackUrl:n,iconUrl:i})=>R.jsxs(Cv,{href:n,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[R.jsx("img",{height:"32",src:i}),R.jsx(qe,{height:"32",variant:"button",children:r})]}))})]})]})}var XC={},lL=Hf;XC.createRoot=lL.createRoot,XC.hydrateRoot=lL.hydrateRoot;var FM={},due=Ou;Object.defineProperty(FM,"__esModule",{value:!0});var GG=FM.default=void 0,hue=due(Nu()),pue=R,vue=(0,hue.default)((0,pue.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");GG=FM.default=vue;function hx({open:e,onClose:t,children:r}){return R.jsx(HV,{onClose:t,open:e,children:R.jsxs(it,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[R.jsx(Cv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:R.jsx(GG,{})}),r]})})}function gue(){const[e,t]=O.useState(!1),r=Ys(({swarm:n})=>n.version);return R.jsxs(R.Fragment,{children:[R.jsx(it,{sx:{display:"flex",justifyContent:"flex-end"},children:R.jsx(qa,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),R.jsxs(hx,{onClose:()=>t(!1),open:e,children:[R.jsxs("div",{children:[R.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"About"}),R.jsxs(qe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the ",R.jsx(on,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),R.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and ",R.jsx(on,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",R.jsx(on,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),R.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful ",R.jsx(on,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),R.jsxs("div",{children:[R.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Version"}),R.jsx(on,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),R.jsxs("div",{children:[R.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Links"}),R.jsx(qe,{component:"p",variant:"subtitle1",children:R.jsx(on,{href:"https://github.com/locustio/locust",children:"GitHub"})}),R.jsx(qe,{component:"p",variant:"subtitle1",children:R.jsx(on,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function mue(){return R.jsx(it,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:R.jsx(jf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:R.jsx(gue,{})})})}const mi={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},La=window.templateArgs?jc(window.templateArgs):{};function yue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return R.jsxs(it,{sx:{display:"flex",columnGap:2},children:[R.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(qe,{variant:"button",children:"Host"}),R.jsx(qe,{children:r})]}),R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(qe,{variant:"button",children:"Status"}),R.jsx(qe,{variant:"button",children:t})]}),(t===mi.RUNNING||t===mi.SPAWNING)&&R.jsxs(R.Fragment,{children:[R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"Users"}),R.jsx(qe,{variant:"button",children:a})]})]}),e&&R.jsxs(R.Fragment,{children:[R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"Workers"}),R.jsx(qe,{variant:"button",children:o})]})]}),R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"RPS"}),R.jsx(qe,{variant:"button",children:n})]}),R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"Failures"}),R.jsx(qe,{variant:"button",children:`${i}%`})]})]})}const xue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Sue=Ln(xue)(yue),bue="input, select, textarea",_ue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function VM({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(bue)].reduce((o,s)=>({...o,[s.name]:_ue(s)}),{});t(a)},[t]);return R.jsx("form",{onSubmit:r,children:e})}var Jy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},e0=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},wue=Object.defineProperty,Cue=Object.defineProperties,Tue=Object.getOwnPropertyDescriptors,t0=Object.getOwnPropertySymbols,HG=Object.prototype.hasOwnProperty,WG=Object.prototype.propertyIsEnumerable,uL=function(e,t,r){return t in e?wue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ir=function(e,t){for(var r in t||(t={}))HG.call(t,r)&&uL(e,r,t[r]);if(t0)for(var n=0,i=t0(t);n<i.length;n++){var r=i[n];WG.call(t,r)&&uL(e,r,t[r])}return e},Ca=function(e,t){return Cue(e,Tue(t))},cL=function(e,t){var r={};for(var n in e)HG.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&t0)for(var i=0,a=t0(e);i<a.length;i++){var n=a[i];t.indexOf(n)<0&&WG.call(e,n)&&(r[n]=e[n])}return r},r0=function(e,t,r){return new Promise(function(n,i){var a=function(l){try{s(r.next(l))}catch(u){i(u)}},o=function(l){try{s(r.throw(l))}catch(u){i(u)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,o)};s((r=r.apply(e,t)).next())})},Ht;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(Ht||(Ht={}));function Aue(e){return{status:e,isUninitialized:e===Ht.uninitialized,isLoading:e===Ht.pending,isSuccess:e===Ht.fulfilled,isError:e===Ht.rejected}}function Mue(e){return new RegExp("(^|:)//").test(e)}var kue=function(e){return e.replace(/\/$/,"")},Iue=function(e){return e.replace(/^\//,"")};function Pue(e,t){if(!e)return t;if(!t)return e;if(Mue(t))return t;var r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=kue(e),t=Iue(t),""+e+r+t}var fL=function(e){return[].concat.apply([],e)};function Due(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function Rue(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var dL=Ps;function jG(e,t){if(e===t||!(dL(e)&&dL(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o<s.length;o++){var l=s[o];a[l]=jG(e[l],t[l]),i&&(i=e[l]===a[l])}return i?e:a}var hL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},Lue=function(e){return e.status>=200&&e.status<=299},Eue=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function pL(e){if(!Ps(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r<n.length;r++){var i=n[r],a=i[0],o=i[1];o===void 0&&delete t[a]}return t}function Oue(e){var t=this;e===void 0&&(e={});var r=e,n=r.baseUrl,i=r.prepareHeaders,a=i===void 0?function(x){return x}:i,o=r.fetchFn,s=o===void 0?hL:o,l=r.paramsSerializer,u=r.isJsonContentType,c=u===void 0?Eue:u,f=r.jsonContentType,d=f===void 0?"application/json":f,h=r.jsonReplacer,p=r.timeout,v=r.responseHandler,g=r.validateStatus,m=cL(r,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&s===hL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return r0(t,null,function(){var _,b,w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X,W,ee,te,ie,re,Q,J,de,he,Pe,Xe,Ue,ot,st,kt;return Jy(this,function($e){switch($e.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,P=k.headers,L=P===void 0?new Headers(m.headers):P,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,F=N===void 0?v??"json":N,E=k.validateStatus,G=E===void 0?g??Lue:E,j=k.timeout,B=j===void 0?p:j,U=cL(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(Ca(ir({},m),{signal:_}),U),L=new Headers(pL(L)),W=X,[4,a(L,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=$e.sent()||L,ee=function(It){return typeof It=="object"&&(Ps(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(pL(V)),I+=te+ie),I=Pue(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},de=!1,he=B&&setTimeout(function(){de=!0,S.abort()},B),$e.label=2;case 2:return $e.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=$e.sent(),[3,6];case 4:return Pe=$e.sent(),[2,{error:{status:de?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return he&&clearTimeout(he),[7];case 6:Xe=J.clone(),M.response=Xe,ot="",$e.label=7;case 7:return $e.trys.push([7,9,,10]),[4,Promise.all([y(J,F).then(function(It){return Ue=It},function(It){return st=It}),Xe.text().then(function(It){return ot=It},function(){})])];case 8:if($e.sent(),st)throw st;return[3,10];case 9:return kt=$e.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:ot,error:String(kt)},meta:M}];case 10:return[2,G(J,Ue)?{data:Ue,meta:M}:{error:{status:J.status,data:Ue},meta:M}]}})})};function y(x,S){return r0(this,null,function(){var _;return Jy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var vL=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),GM=Cn("__rtkq/focused"),UG=Cn("__rtkq/unfocused"),HM=Cn("__rtkq/online"),qG=Cn("__rtkq/offline"),Ba;(function(e){e.query="query",e.mutation="mutation"})(Ba||(Ba={}));function YG(e){return e.type===Ba.query}function Nue(e){return e.type===Ba.mutation}function XG(e,t,r,n,i,a){return zue(e)?e(t,r,n,i).map(ZC).map(a):Array.isArray(e)?e.map(ZC).map(a):[]}function zue(e){return typeof e=="function"}function ZC(e){return typeof e=="string"?{type:e}:e}function QS(e){return e!=null}var Op=Symbol("forceQueryFn"),KC=function(e){return typeof e[Op]=="function"};function Bue(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
156
+ `),J}Qy(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,$({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:E},re):re,[M,re,E])}const b=O.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=O.forwardRef(function(T,M){return O.createElement(b,$({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,XP(C,g)}return XP(b,g)}}function rL({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=MG(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=O.useMemo(()=>e.getState(),[e]);Qy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||So;return O.createElement(l.Provider,{value:o},r)}function IG(e=So){const t=e===So?wG:LM(e);return function(){const{store:n}=t();return n}}const PG=IG();function Xle(e=So){const t=e===So?PG:IG(e);return function(){return t().dispatch}}const DG=Xle();kle(wle.useSyncExternalStoreWithSelector);Hle(xG.useSyncExternalStore);Tle(Hf.unstable_batchedUpdates);var NM={},RG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(RG);var Ou=RG.exports,KS={};const Zle=sq(yQ);var nL;function Nu(){return nL||(nL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Zle}(KS)),KS}var Kle=Ou;Object.defineProperty(NM,"__esModule",{value:!0});var LG=NM.default=void 0,Qle=Kle(Nu()),Jle=R,eue=(0,Qle.default)((0,Jle.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");LG=NM.default=eue;var zM={},tue=Ou;Object.defineProperty(zM,"__esModule",{value:!0});var EG=zM.default=void 0,rue=tue(Nu()),nue=R,iue=(0,rue.default)((0,nue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");EG=zM.default=iue;const Si={DARK:"dark",LIGHT:"light"},OG=localStorage.theme===Si.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Si.DARK:Si.LIGHT,Ys=EM,aue=DG;function ql(e){const t=aue();return O.useCallback(r=>{t(e(r))},[e,t])}const oue={isDarkMode:!1},NG=li({name:"theme",initialState:oue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),sue=NG.actions,zG=NG.reducer;function BG(){const e=Ys(({theme:{isDarkMode:n}})=>n),t=ql(sue.setIsDarkMode);O.useEffect(()=>{t(OG===Si.DARK)},[]);const r=()=>{localStorage.theme=e?Si.LIGHT:Si.DARK,t(!e)};return R.jsx(Cv,{color:"inherit",onClick:r,children:e?R.jsx(EG,{}):R.jsx(LG,{})})}const BM=e=>R2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function $G(e,t,r){return t&&(Array.isArray(t)?t.map(n=>$G(e,n,r)):typeof t=="object"?$M(t,r):t)}const $M=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:$G(e,i,t)}),{}),FG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),lue=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),jc=e=>$M(e,FG),iL=e=>$M(e,lue),VG=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),uue=e=>Object.fromEntries(new URLSearchParams(e).entries()),cue=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},{authProviders:aL,error:oL,usernamePasswordCallback:sL}=window.authArgs?jc(window.authArgs):{};function fue(){const e=EM(({theme:r})=>r.isDarkMode),t=O.useMemo(()=>BM(e?Si.DARK:Si.LIGHT),[e]);return R.jsxs(L2,{theme:t,children:[R.jsx(IM,{}),R.jsx(it,{sx:{position:"absolute",top:4,right:4},children:R.jsx(BG,{})}),R.jsxs(it,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[R.jsxs(it,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:[R.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),R.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),sL&&R.jsx("form",{action:sL,children:R.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[R.jsx(wa,{label:"Username",name:"username"}),R.jsx(wa,{label:"Password",name:"password",type:"password"}),oL&&R.jsx(Ute,{severity:"error",children:oL}),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),aL&&R.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:aL.map(({label:r,callbackUrl:n,iconUrl:i})=>R.jsxs(Cv,{href:n,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[R.jsx("img",{height:"32",src:i}),R.jsx(qe,{height:"32",variant:"button",children:r})]}))})]})]})}var XC={},lL=Hf;XC.createRoot=lL.createRoot,XC.hydrateRoot=lL.hydrateRoot;var FM={},due=Ou;Object.defineProperty(FM,"__esModule",{value:!0});var GG=FM.default=void 0,hue=due(Nu()),pue=R,vue=(0,hue.default)((0,pue.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");GG=FM.default=vue;function hx({open:e,onClose:t,children:r}){return R.jsx(HV,{onClose:t,open:e,children:R.jsxs(it,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[R.jsx(Cv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:R.jsx(GG,{})}),r]})})}function gue(){const[e,t]=O.useState(!1),r=Ys(({swarm:n})=>n.version);return R.jsxs(R.Fragment,{children:[R.jsx(it,{sx:{display:"flex",justifyContent:"flex-end"},children:R.jsx(qa,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),R.jsxs(hx,{onClose:()=>t(!1),open:e,children:[R.jsxs("div",{children:[R.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"About"}),R.jsxs(qe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the ",R.jsx(on,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),R.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and ",R.jsx(on,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",R.jsx(on,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),R.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful ",R.jsx(on,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),R.jsxs("div",{children:[R.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Version"}),R.jsx(on,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),R.jsxs("div",{children:[R.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Links"}),R.jsx(qe,{component:"p",variant:"subtitle1",children:R.jsx(on,{href:"https://github.com/locustio/locust",children:"GitHub"})}),R.jsx(qe,{component:"p",variant:"subtitle1",children:R.jsx(on,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function mue(){return R.jsx(jf,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:R.jsx(gue,{})})}const mi={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},La=window.templateArgs?jc(window.templateArgs):{};function yue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return R.jsxs(it,{sx:{display:"flex",columnGap:2},children:[R.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(qe,{variant:"button",children:"Host"}),R.jsx(qe,{children:r})]}),R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[R.jsx(qe,{variant:"button",children:"Status"}),R.jsx(qe,{variant:"button",children:t})]}),(t===mi.RUNNING||t===mi.SPAWNING)&&R.jsxs(R.Fragment,{children:[R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"Users"}),R.jsx(qe,{variant:"button",children:a})]})]}),e&&R.jsxs(R.Fragment,{children:[R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"Workers"}),R.jsx(qe,{variant:"button",children:o})]})]}),R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"RPS"}),R.jsx(qe,{variant:"button",children:n})]}),R.jsx(wd,{flexItem:!0,orientation:"vertical"}),R.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[R.jsx(qe,{variant:"button",children:"Failures"}),R.jsx(qe,{variant:"button",children:`${i}%`})]})]})}const xue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Sue=Ln(xue)(yue),bue="input, select, textarea",_ue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function VM({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(bue)].reduce((o,s)=>({...o,[s.name]:_ue(s)}),{});t(a)},[t]);return R.jsx("form",{onSubmit:r,children:e})}var Jy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},e0=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},wue=Object.defineProperty,Cue=Object.defineProperties,Tue=Object.getOwnPropertyDescriptors,t0=Object.getOwnPropertySymbols,HG=Object.prototype.hasOwnProperty,WG=Object.prototype.propertyIsEnumerable,uL=function(e,t,r){return t in e?wue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ir=function(e,t){for(var r in t||(t={}))HG.call(t,r)&&uL(e,r,t[r]);if(t0)for(var n=0,i=t0(t);n<i.length;n++){var r=i[n];WG.call(t,r)&&uL(e,r,t[r])}return e},Ca=function(e,t){return Cue(e,Tue(t))},cL=function(e,t){var r={};for(var n in e)HG.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&t0)for(var i=0,a=t0(e);i<a.length;i++){var n=a[i];t.indexOf(n)<0&&WG.call(e,n)&&(r[n]=e[n])}return r},r0=function(e,t,r){return new Promise(function(n,i){var a=function(l){try{s(r.next(l))}catch(u){i(u)}},o=function(l){try{s(r.throw(l))}catch(u){i(u)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,o)};s((r=r.apply(e,t)).next())})},Ht;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(Ht||(Ht={}));function Aue(e){return{status:e,isUninitialized:e===Ht.uninitialized,isLoading:e===Ht.pending,isSuccess:e===Ht.fulfilled,isError:e===Ht.rejected}}function Mue(e){return new RegExp("(^|:)//").test(e)}var kue=function(e){return e.replace(/\/$/,"")},Iue=function(e){return e.replace(/^\//,"")};function Pue(e,t){if(!e)return t;if(!t)return e;if(Mue(t))return t;var r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=kue(e),t=Iue(t),""+e+r+t}var fL=function(e){return[].concat.apply([],e)};function Due(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function Rue(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var dL=Ps;function jG(e,t){if(e===t||!(dL(e)&&dL(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o<s.length;o++){var l=s[o];a[l]=jG(e[l],t[l]),i&&(i=e[l]===a[l])}return i?e:a}var hL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},Lue=function(e){return e.status>=200&&e.status<=299},Eue=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function pL(e){if(!Ps(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r<n.length;r++){var i=n[r],a=i[0],o=i[1];o===void 0&&delete t[a]}return t}function Oue(e){var t=this;e===void 0&&(e={});var r=e,n=r.baseUrl,i=r.prepareHeaders,a=i===void 0?function(x){return x}:i,o=r.fetchFn,s=o===void 0?hL:o,l=r.paramsSerializer,u=r.isJsonContentType,c=u===void 0?Eue:u,f=r.jsonContentType,d=f===void 0?"application/json":f,h=r.jsonReplacer,p=r.timeout,v=r.responseHandler,g=r.validateStatus,m=cL(r,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&s===hL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return r0(t,null,function(){var _,b,w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X,W,ee,te,ie,re,Q,J,de,he,Pe,Xe,Ue,ot,st,kt;return Jy(this,function($e){switch($e.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,P=k.headers,L=P===void 0?new Headers(m.headers):P,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,F=N===void 0?v??"json":N,E=k.validateStatus,G=E===void 0?g??Lue:E,j=k.timeout,B=j===void 0?p:j,U=cL(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(Ca(ir({},m),{signal:_}),U),L=new Headers(pL(L)),W=X,[4,a(L,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=$e.sent()||L,ee=function(It){return typeof It=="object"&&(Ps(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(pL(V)),I+=te+ie),I=Pue(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},de=!1,he=B&&setTimeout(function(){de=!0,S.abort()},B),$e.label=2;case 2:return $e.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=$e.sent(),[3,6];case 4:return Pe=$e.sent(),[2,{error:{status:de?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return he&&clearTimeout(he),[7];case 6:Xe=J.clone(),M.response=Xe,ot="",$e.label=7;case 7:return $e.trys.push([7,9,,10]),[4,Promise.all([y(J,F).then(function(It){return Ue=It},function(It){return st=It}),Xe.text().then(function(It){return ot=It},function(){})])];case 8:if($e.sent(),st)throw st;return[3,10];case 9:return kt=$e.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:ot,error:String(kt)},meta:M}];case 10:return[2,G(J,Ue)?{data:Ue,meta:M}:{error:{status:J.status,data:Ue},meta:M}]}})})};function y(x,S){return r0(this,null,function(){var _;return Jy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var vL=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),GM=Cn("__rtkq/focused"),UG=Cn("__rtkq/unfocused"),HM=Cn("__rtkq/online"),qG=Cn("__rtkq/offline"),Ba;(function(e){e.query="query",e.mutation="mutation"})(Ba||(Ba={}));function YG(e){return e.type===Ba.query}function Nue(e){return e.type===Ba.mutation}function XG(e,t,r,n,i,a){return zue(e)?e(t,r,n,i).map(ZC).map(a):Array.isArray(e)?e.map(ZC).map(a):[]}function zue(e){return typeof e=="function"}function ZC(e){return typeof e=="string"?{type:e}:e}function QS(e){return e!=null}var Op=Symbol("forceQueryFn"),KC=function(e){return typeof e[Op]=="function"};function Bue(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
157
157
  Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
158
- See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return e0(e0([],S(o)),S(s)).filter(QS)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(QS)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(QS)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=Op,L=A[P];return function(z,V){var N,F,E=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:E},N[Op]=L,N)),j=i.endpoints[S].select(w),B=z(G),U=j(V()),X=B.requestId,W=B.abort,ee=U.requestId!==X,te=(F=o.get(z))==null?void 0:F[E],ie=function(){return j(V())},re=Object.assign(L?B.then(ie):ee&&!te?Promise.resolve(U):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:E,abort:W,unwrap:function(){return r0(this,null,function(){var J;return Jy(this,function(de){switch(de.label){case 0:return[4,re];case 1:if(J=de.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:E,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:E,options:J}))}});if(!te&&!ee&&!L){var Q=o.get(z)||{};Q[E]=re,o.set(z,Q),re.then(function(){delete Q[E],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),L=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(j){return{data:j}}).catch(function(j){return{error:j}}),F=function(){M(c({requestId:L,fixedCacheKey:T}))},E=Object.assign(N,{arg:P.arg,requestId:L,abort:z,unwrap:V,unsubscribe:F,reset:F}),G=s.get(M)||{};return s.set(M,G),G[L]=E,E.then(function(){delete G[L],Object.keys(G).length||s.delete(M)}),T&&(G[T]=E,E.then(function(){G[T]===E&&(delete G[T],Object.keys(G).length||s.delete(M))})),E}}}}function gL(e){return e}function $ue(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Ht.uninitialized)return M;if("data"in T)if(Zi(T.data)){var k=NF(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var L=_(T.data);M.patches.push({op:"replace",path:[],value:L}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[Op]=function(){return{data:_}},w)))}},c=function(x,S){return r0(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Jy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=gL,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[Op]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(de){return n(de,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new vL(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[ih]=!0,B)])];case 8:if(N=J.sent(),F=N,!(F instanceof vL))return[3,12];E=gL,w.query&&w.transformErrorResponse&&(E=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,E(F.value,F.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(U={baseQueryMeta:F.meta},U[ih]=!0,U)])];case 11:return j=J.sent(),F=j,[3,12];case 12:throw typeof process<"u",console.error(F),F;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=zP(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ih]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return KC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||YG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=zP(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ih]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Mh(s2(x),m(S)),matchFulfilled:Mh(Du(x),m(S)),matchRejected:Mh(cp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function ZG(e,t,r,n){return XG(r[e.meta.arg.endpointName][t],Du(e)?e.payload:void 0,u1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){var n=e[t];n&&r(n)}function Np(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function mL(e,t,r){var n=e[Np(t)];n&&r(n)}var Ad={};function Fue(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Cn(t+"/resetApiState"),d=li({name:t+"/queries",initialState:Ad,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:pS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;Sg(_,C,function(T){T.data=IP(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=KC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),Sg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;Sg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!KC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,L=C.baseQueryMeta,z=C.requestId,V=pv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?jG(Xi(T.data)?Iq(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;Sg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Ht.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A<T.length;A++){var M=T[A],k=M[0],I=M[1];((I==null?void 0:I.status)===Ht.fulfilled||(I==null?void 0:I.status)===Ht.rejected)&&(b[k]=I)}})}}),h=li({name:t+"/mutations",initialState:Ad,reducers:{removeMutationResult:{reducer:function(_,b){var w=b.payload,C=Np(w);C in _&&delete _[C]},prepare:pS()}},extraReducers:function(_){_.addCase(n.pending,function(b,w){var C=w.meta,A=w.meta,T=A.requestId,M=A.arg,k=A.startedTimeStamp;M.track&&(b[Np(C)]={requestId:T,status:Ht.pending,endpointName:M.endpointName,startedTimeStamp:k})}).addCase(n.fulfilled,function(b,w){var C=w.payload,A=w.meta;A.arg.track&&mL(b,A,function(T){T.requestId===A.requestId&&(T.status=Ht.fulfilled,T.data=C,T.fulfilledTimeStamp=A.fulfilledTimeStamp)})}).addCase(n.rejected,function(b,w){var C=w.payload,A=w.error,T=w.meta;T.arg.track&&mL(b,T,function(M){M.requestId===T.requestId&&(M.status=Ht.rejected,M.error=C??A)})}).addMatcher(l,function(b,w){for(var C=s(w).mutations,A=0,T=Object.entries(C);A<T.length;A++){var M=T[A],k=M[0],I=M[1];((I==null?void 0:I.status)===Ht.fulfilled||(I==null?void 0:I.status)===Ht.rejected)&&k!==(I==null?void 0:I.requestId)&&(b[k]=I)}})}}),p=li({name:t+"/invalidation",initialState:Ad,reducers:{},extraReducers:function(_){_.addCase(d.actions.removeQueryResult,function(b,w){for(var C=w.payload.queryCacheKey,A=0,T=Object.values(b);A<T.length;A++)for(var M=T[A],k=0,I=Object.values(M);k<I.length;k++){var P=I[k],L=P.indexOf(C);L!==-1&&P.splice(L,1)}}).addMatcher(l,function(b,w){for(var C,A,T,M,k=s(w).provided,I=0,P=Object.entries(k);I<P.length;I++)for(var L=P[I],z=L[0],V=L[1],N=0,F=Object.entries(V);N<F.length;N++)for(var E=F[N],G=E[0],j=E[1],B=(M=(A=(C=b[z])!=null?C:b[z]={})[T=G||"__internal_without_id"])!=null?M:A[T]=[],U=0,X=j;U<X.length;U++){var W=X[U],ee=B.includes(W);ee||B.push(W)}}).addMatcher(Bf(Du(r),u1(r)),function(b,w){for(var C,A,T,M,k=ZG(w,"providesTags",a,u),I=w.meta.arg.queryCacheKey,P=0,L=Object.values(b);P<L.length;P++)for(var z=L[P],V=0,N=Object.values(z);V<N.length;V++){var F=N[V],E=F.indexOf(I);E!==-1&&F.splice(E,1)}for(var G=0,j=k;G<j.length;G++){var B=j[G],U=B.type,X=B.id,W=(M=(A=(C=b[U])!=null?C:b[U]={})[T=X||"__internal_without_id"])!=null?M:A[T]=[],ee=W.includes(I);ee||W.push(I)}})}}),v=li({name:t+"/subscriptions",initialState:Ad,reducers:{updateSubscriptionOptions:function(_,b){},unsubscribeQueryResult:function(_,b){},internal_probeSubscription:function(_,b){}}}),g=li({name:t+"/internalSubscriptions",initialState:Ad,reducers:{subscriptionsUpdated:{reducer:function(_,b){return IP(_,b.payload)},prepare:pS()}}}),m=li({name:t+"/config",initialState:ir({online:Due(),focused:Rue(),middlewareRegistered:!1},c),reducers:{middlewareRegistered:function(_,b){var w=b.payload;_.middlewareRegistered=_.middlewareRegistered==="conflict"||o!==w?"conflict":!0}},extraReducers:function(_){_.addCase(HM,function(b){b.online=!0}).addCase(qG,function(b){b.online=!1}).addCase(GM,function(b){b.focused=!0}).addCase(UG,function(b){b.focused=!1}).addMatcher(l,function(b){return ir({},b)})}}),y=s1({queries:d.reducer,mutations:h.reducer,provided:p.reducer,subscriptions:g.reducer,config:m.reducer}),x=function(_,b){return y(f.match(b)?void 0:_,b)},S=Ca(ir(ir(ir(ir(ir({},m.actions),d.actions),v.actions),g.actions),h.actions),{unsubscribeMutationResult:h.actions.removeMutationResult,resetApiState:f});return{reducer:x,actions:S}}var Yl=Symbol.for("RTKQ/skipToken"),KG={status:Ht.uninitialized},yL=pv(KG,function(){}),xL=pv(KG,function(){});function Vue(e){var t=e.serializeQueryArgs,r=e.reducerPath,n=function(c){return yL},i=function(c){return xL};return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u};function a(c){return ir(ir({},c),Aue(c.status))}function o(c){var f=c[r];return f}function s(c,f){return function(d){var h=t({queryArgs:d,endpointDefinition:f,endpointName:c}),p=function(g){var m,y,x;return(x=(y=(m=o(g))==null?void 0:m.queries)==null?void 0:y[h])!=null?x:yL},v=d===Yl?n:p;return Ah(v,a)}}function l(){return function(c){var f,d;typeof c=="object"?d=(f=Np(c))!=null?f:Yl:d=c;var h=function(v){var g,m,y;return(y=(m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])!=null?y:xL},p=d===Yl?i:h;return Ah(p,a)}}function u(c,f){for(var d,h=c[r],p=new Set,v=0,g=f.map(ZC);v<g.length;v++){var m=g[v],y=h.provided[m.type];if(y)for(var x=(d=m.id!==void 0?y[m.id]:fL(Object.values(y)))!=null?d:[],S=0,_=x;S<_.length;S++){var b=_[S];p.add(b)}}return fL(Array.from(p.values()).map(function(w){var C=h.queries[w];return C?[{queryCacheKey:w,endpointName:C.endpointName,originalArgs:C.originalArgs}]:[]}))}}var bg=WeakMap?new WeakMap:void 0,SL=function(e){var t=e.endpointName,r=e.queryArgs,n="",i=bg==null?void 0:bg.get(r);if(typeof i=="string")n=i;else{var a=JSON.stringify(r,function(o,s){return Ps(s)?Object.keys(s).sort().reduce(function(l,u){return l[u]=s[u],l},{}):s});Ps(r)&&(bg==null||bg.set(r,a)),n=a}return t+"("+n+")"};function Gue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){var i=Hw(function(c){var f,d;return(d=n.extractRehydrationInfo)==null?void 0:d.call(n,c,{reducerPath:(f=n.reducerPath)!=null?f:"api"})}),a=Ca(ir({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},n),{extractRehydrationInfo:i,serializeQueryArgs:function(c){var f=SL;if("serializeQueryArgs"in c.endpointDefinition){var d=c.endpointDefinition.serializeQueryArgs;f=function(h){var p=d(h);return typeof p=="string"?p:SL(Ca(ir({},h),{queryArgs:p}))}}else n.serializeQueryArgs&&(f=n.serializeQueryArgs);return f(c)},tagTypes:e0([],n.tagTypes||[])}),o={endpointDefinitions:{},batch:function(c){c()},apiUid:HF(),extractRehydrationInfo:i,hasRehydrationInfo:Hw(function(c){return i(c)!=null})},s={injectEndpoints:u,enhanceEndpoints:function(c){var f=c.addTagTypes,d=c.endpoints;if(f)for(var h=0,p=f;h<p.length;h++){var v=p[h];a.tagTypes.includes(v)||a.tagTypes.push(v)}if(d)for(var g=0,m=Object.entries(d);g<m.length;g++){var y=m[g],x=y[0],S=y[1];typeof S=="function"?S(o.endpointDefinitions[x]):Object.assign(o.endpointDefinitions[x]||{},S)}return s}},l=e.map(function(c){return c.init(s,a,o)});function u(c){for(var f=c.endpoints({query:function(S){return Ca(ir({},S),{type:Ba.query})},mutation:function(S){return Ca(ir({},S),{type:Ba.mutation})}}),d=0,h=Object.entries(f);d<h.length;d++){var p=h[d],v=p[0],g=p[1];if(!c.overrideExisting&&v in o.endpointDefinitions){typeof process<"u";continue}o.endpointDefinitions[v]=g;for(var m=0,y=l;m<y.length;m++){var x=y[m];x.injectEndpoint(v,g)}}return s}return s.injectEndpoints({endpoints:n.endpoints})}}function Hue(e){for(var t in e)return!1;return!0}var Wue=2147483647/1e3-1,jue=function(e){var t=e.reducerPath,r=e.api,n=e.context,i=e.internalState,a=r.internalActions,o=a.removeQueryResult,s=a.unsubscribeQueryResult;function l(d){var h=i.currentSubscriptions[d];return!!h&&!Hue(h)}var u={},c=function(d,h,p){var v;if(s.match(d)){var g=h.getState()[t],m=d.payload.queryCacheKey;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(r.util.resetApiState.match(d))for(var y=0,x=Object.entries(u);y<x.length;y++){var S=x[y],_=S[0],b=S[1];b&&clearTimeout(b),delete u[_]}if(n.hasRehydrationInfo(d))for(var g=h.getState()[t],w=n.extractRehydrationInfo(d).queries,C=0,A=Object.entries(w);C<A.length;C++){var T=A[C],m=T[0],M=T[1];f(m,M==null?void 0:M.endpointName,h,g.config)}};function f(d,h,p,v){var g,m=n.endpointDefinitions[h],y=(g=m==null?void 0:m.keepUnusedDataFor)!=null?g:v.keepUnusedDataFor;if(y!==1/0){var x=Math.max(0,Math.min(y,Wue));if(!l(d)){var S=u[d];S&&clearTimeout(S),u[d]=setTimeout(function(){l(d)||p.dispatch(o({queryCacheKey:d})),delete u[d]},x*1e3)}}}return c},Uue=function(e){var t=e.reducerPath,r=e.context,n=e.context.endpointDefinitions,i=e.mutationThunk,a=e.api,o=e.assertTagType,s=e.refetchQuery,l=a.internalActions.removeQueryResult,u=Bf(Du(i),u1(i)),c=function(d,h){u(d)&&f(ZG(d,"invalidatesTags",n,o),h),a.util.invalidateTags.match(d)&&f(XG(d.payload,void 0,void 0,void 0,void 0,o),h)};function f(d,h){var p=h.getState(),v=p[t],g=a.util.selectInvalidatedBy(p,d);r.batch(function(){for(var m,y=Array.from(g.values()),x=0,S=y;x<S.length;x++){var _=S[x].queryCacheKey,b=v.queries[_],w=(m=v.subscriptions[_])!=null?m:{};b&&(Object.keys(w).length===0?h.dispatch(l({queryCacheKey:_})):b.status!==Ht.uninitialized&&h.dispatch(s(b,_)))}})}return c},que=function(e){var t=e.reducerPath,r=e.queryThunk,n=e.api,i=e.refetchQuery,a=e.internalState,o={},s=function(h,p){(n.internalActions.updateSubscriptionOptions.match(h)||n.internalActions.unsubscribeQueryResult.match(h))&&u(h.payload,p),(r.pending.match(h)||r.rejected.match(h)&&h.meta.condition)&&u(h.meta.arg,p),(r.fulfilled.match(h)||r.rejected.match(h)&&!h.meta.condition)&&l(h.meta.arg,p),n.util.resetApiState.match(h)&&f()};function l(h,p){var v=h.queryCacheKey,g=p.getState()[t],m=g.queries[v],y=a.currentSubscriptions[v];if(!(!m||m.status===Ht.uninitialized)){var x=d(y);if(Number.isFinite(x)){var S=o[v];S!=null&&S.timeout&&(clearTimeout(S.timeout),S.timeout=void 0);var _=Date.now()+x,b=o[v]={nextPollTimestamp:_,pollingInterval:x,timeout:setTimeout(function(){b.timeout=void 0,p.dispatch(i(m,v))},x)}}}}function u(h,p){var v=h.queryCacheKey,g=p.getState()[t],m=g.queries[v],y=a.currentSubscriptions[v];if(!(!m||m.status===Ht.uninitialized)){var x=d(y);if(!Number.isFinite(x)){c(v);return}var S=o[v],_=Date.now()+x;(!S||_<S.nextPollTimestamp)&&l({queryCacheKey:v},p)}}function c(h){var p=o[h];p!=null&&p.timeout&&clearTimeout(p.timeout),delete o[h]}function f(){for(var h=0,p=Object.keys(o);h<p.length;h++){var v=p[h];c(v)}}function d(h){h===void 0&&(h={});var p=Number.POSITIVE_INFINITY;for(var v in h)h[v].pollingInterval&&(p=Math.min(h[v].pollingInterval,p));return p}return s},Yue=function(e){var t=e.reducerPath,r=e.context,n=e.api,i=e.refetchQuery,a=e.internalState,o=n.internalActions.removeQueryResult,s=function(u,c){GM.match(u)&&l(c,"refetchOnFocus"),HM.match(u)&&l(c,"refetchOnReconnect")};function l(u,c){var f=u.getState()[t],d=f.queries,h=a.currentSubscriptions;r.batch(function(){for(var p=0,v=Object.keys(h);p<v.length;p++){var g=v[p],m=d[g],y=h[g];if(!(!y||!m)){var x=Object.values(y).some(function(S){return S[c]===!0})||Object.values(y).every(function(S){return S[c]===void 0})&&f.config[c];x&&(Object.keys(y).length===0?u.dispatch(o({queryCacheKey:g})):m.status!==Ht.uninitialized&&u.dispatch(i(m,g)))}}})}return s},bL=new Error("Promise never resolved before cacheEntryRemoved."),Xue=function(e){var t=e.api,r=e.reducerPath,n=e.context,i=e.queryThunk,a=e.mutationThunk;e.internalState;var o=jw(i),s=jw(a),l=Du(i,a),u={},c=function(h,p,v){var g=f(h);if(i.pending.match(h)){var m=v[r].queries[g],y=p.getState()[r].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(a.pending.match(h)){var y=p.getState()[r].mutations[g];y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(l(h)){var x=u[g];x!=null&&x.valueResolved&&(x.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete x.valueResolved)}else if(t.internalActions.removeQueryResult.match(h)||t.internalActions.removeMutationResult.match(h)){var x=u[g];x&&(delete u[g],x.cacheEntryRemoved())}else if(t.util.resetApiState.match(h))for(var S=0,_=Object.entries(u);S<_.length;S++){var b=_[S],w=b[0],x=b[1];delete u[w],x.cacheEntryRemoved()}};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.requestId:t.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:t.internalActions.removeMutationResult.match(h)?Np(h.payload):""}function d(h,p,v,g,m){var y=n.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(x){var S={},_=new Promise(function(M){S.cacheEntryRemoved=M}),b=Promise.race([new Promise(function(M){S.valueResolved=M}),_.then(function(){throw bL})]);b.catch(function(){}),u[v]=S;var w=t.endpoints[h].select(y.type===Ba.query?p:v),C=g.dispatch(function(M,k,I){return I}),A=Ca(ir({},g),{getCacheEntry:function(){return w(g.getState())},requestId:m,extra:C,updateCachedData:y.type===Ba.query?function(M){return g.dispatch(t.util.updateQueryData(h,p,M))}:void 0,cacheDataLoaded:b,cacheEntryRemoved:_}),T=x(p,A);Promise.resolve(T).catch(function(M){if(M!==bL)throw M})}}return c},Zue=function(e){var t=e.api,r=e.context,n=e.queryThunk,i=e.mutationThunk,a=s2(n,i),o=cp(n,i),s=Du(n,i),l={},u=function(c,f){var d,h,p;if(a(c)){var v=c.meta,g=v.requestId,m=v.arg,y=m.endpointName,x=m.originalArgs,S=r.endpointDefinitions[y],_=S==null?void 0:S.onQueryStarted;if(_){var b={},w=new Promise(function(L,z){b.resolve=L,b.reject=z});w.catch(function(){}),l[g]=b;var C=t.endpoints[y].select(S.type===Ba.query?x:g),A=f.dispatch(function(L,z,V){return V}),T=Ca(ir({},f),{getCacheEntry:function(){return C(f.getState())},requestId:g,extra:A,updateCachedData:S.type===Ba.query?function(L){return f.dispatch(t.util.updateQueryData(y,x,L))}:void 0,queryFulfilled:w});_(x,T)}}else if(s(c)){var M=c.meta,g=M.requestId,k=M.baseQueryMeta;(d=l[g])==null||d.resolve({data:c.payload,meta:k}),delete l[g]}else if(o(c)){var I=c.meta,g=I.requestId,P=I.rejectedWithValue,k=I.baseQueryMeta;(p=l[g])==null||p.reject({error:(h=c.payload)!=null?h:c.error,isUnhandledError:!P,meta:k}),delete l[g]}};return u},Kue=function(e){var t=e.api,r=e.context.apiUid,n=e.reducerPath;return function(i,a){var o,s;t.util.resetApiState.match(i)&&a.dispatch(t.internalActions.middlewareRegistered(r)),typeof process<"u"}},_L,Que=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(_L||(_L=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Jue=function(e){var t=e.api,r=e.queryThunk,n=e.internalState,i=t.reducerPath+"/subscriptions",a=null,o=!1,s=t.internalActions,l=s.updateSubscriptionOptions,u=s.unsubscribeQueryResult,c=function(f,d){var h,p,v,g,m,y,x,S,_;if(l.match(d)){var b=d.payload,w=b.queryCacheKey,C=b.requestId,A=b.options;return(h=f==null?void 0:f[w])!=null&&h[C]&&(f[w][C]=A),!0}if(u.match(d)){var T=d.payload,w=T.queryCacheKey,C=T.requestId;return f[w]&&delete f[w][C],!0}if(t.internalActions.removeQueryResult.match(d))return delete f[d.payload.queryCacheKey],!0;if(r.pending.match(d)){var M=d.meta,k=M.arg,C=M.requestId;if(k.subscribe){var I=(v=f[p=k.queryCacheKey])!=null?v:f[p]={};return I[C]=(m=(g=k.subscriptionOptions)!=null?g:I[C])!=null?m:{},!0}}if(r.rejected.match(d)){var P=d.meta,L=P.condition,k=P.arg,C=P.requestId;if(L&&k.subscribe){var I=(x=f[y=k.queryCacheKey])!=null?x:f[y]={};return I[C]=(_=(S=k.subscriptionOptions)!=null?S:I[C])!=null?_:{},!0}}return!1};return function(f,d){var h,p;if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),t.util.resetApiState.match(f))return a=n.currentSubscriptions={},[!0,!1];if(t.internalActions.internal_probeSubscription.match(f)){var v=f.payload,g=v.queryCacheKey,m=v.requestId,y=!!((h=n.currentSubscriptions[g])!=null&&h[m]);return[!1,y]}var x=c(n.currentSubscriptions,f);if(x){o||(Que(function(){var w=JSON.parse(JSON.stringify(n.currentSubscriptions)),C=NF(a,function(){return w}),A=C[1];d.next(t.internalActions.subscriptionsUpdated(A)),a=w,o=!1}),o=!0);var S=!!((p=f.type)!=null&&p.startsWith(i)),_=r.rejected.match(f)&&f.meta.condition&&!!f.meta.arg.subscribe,b=!S&&!_;return[b,!1]}return[!0,!1]}};function ece(e){var t=e.reducerPath,r=e.queryThunk,n=e.api,i=e.context,a=i.apiUid,o={invalidateTags:Cn(t+"/invalidateTags")},s=function(f){return!!f&&typeof f.type=="string"&&f.type.startsWith(t+"/")},l=[Kue,jue,Uue,que,Xue,Zue],u=function(f){var d=!1,h={currentSubscriptions:{}},p=Ca(ir({},e),{internalState:h,refetchQuery:c}),v=l.map(function(y){return y(p)}),g=Jue(p),m=Yue(p);return function(y){return function(x){d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));var S=Ca(ir({},f),{next:y}),_=f.getState(),b=g(x,S,_),w=b[0],C=b[1],A;if(w?A=y(x):A=C,f.getState()[t]&&(m(x,S,_),s(x)||i.hasRehydrationInfo(x)))for(var T=0,M=v;T<M.length;T++){var k=M[T];k(x,S,_)}return A}}};return{middleware:u,actions:o};function c(f,d,h){return h===void 0&&(h={}),r(ir({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d},h))}}function zo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Object.assign.apply(Object,e0([e],t))}var wL=Symbol(),tce=function(){return{name:wL,init:function(e,t,r){var n=t.baseQuery,i=t.tagTypes,a=t.reducerPath,o=t.serializeQueryArgs,s=t.keepUnusedDataFor,l=t.refetchOnMountOrArgChange,u=t.refetchOnFocus,c=t.refetchOnReconnect;Eq();var f=function(B){return typeof process<"u",B};Object.assign(e,{reducerPath:a,endpoints:{},internalActions:{onOnline:HM,onOffline:qG,onFocus:GM,onFocusLost:UG},util:{}});var d=$ue({baseQuery:n,reducerPath:a,context:r,api:e,serializeQueryArgs:o}),h=d.queryThunk,p=d.mutationThunk,v=d.patchQueryData,g=d.updateQueryData,m=d.upsertQueryData,y=d.prefetch,x=d.buildMatchThunkActions,S=Fue({context:r,queryThunk:h,mutationThunk:p,reducerPath:a,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:l,keepUnusedDataFor:s,reducerPath:a}}),_=S.reducer,b=S.actions;zo(e.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:b.resetApiState}),zo(e.internalActions,b);var w=ece({reducerPath:a,context:r,queryThunk:h,mutationThunk:p,api:e,assertTagType:f}),C=w.middleware,A=w.actions;zo(e.util,A),zo(e,{reducer:_,middleware:C});var T=Vue({serializeQueryArgs:o,reducerPath:a}),M=T.buildQuerySelector,k=T.buildMutationSelector,I=T.selectInvalidatedBy;zo(e.util,{selectInvalidatedBy:I});var P=Bue({queryThunk:h,mutationThunk:p,api:e,serializeQueryArgs:o,context:r}),L=P.buildInitiateQuery,z=P.buildInitiateMutation,V=P.getRunningMutationThunk,N=P.getRunningMutationsThunk,F=P.getRunningQueriesThunk,E=P.getRunningQueryThunk,G=P.getRunningOperationPromises,j=P.removalWarning;return zo(e.util,{getRunningOperationPromises:G,getRunningOperationPromise:j,getRunningMutationThunk:V,getRunningMutationsThunk:N,getRunningQueryThunk:E,getRunningQueriesThunk:F}),{name:wL,injectEndpoint:function(B,U){var X,W,ee=e;(W=(X=ee.endpoints)[B])!=null||(X[B]={}),YG(U)?zo(ee.endpoints[B],{name:B,select:M(B,U),initiate:L(B,U)},x(h,B)):Nue(U)&&zo(ee.endpoints[B],{name:B,select:k(),initiate:z(B)},x(p,B))}}}}},rce=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},nce=Object.defineProperty,ice=Object.defineProperties,ace=Object.getOwnPropertyDescriptors,CL=Object.getOwnPropertySymbols,oce=Object.prototype.hasOwnProperty,sce=Object.prototype.propertyIsEnumerable,TL=function(e,t,r){return t in e?nce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ja=function(e,t){for(var r in t||(t={}))oce.call(t,r)&&TL(e,r,t[r]);if(CL)for(var n=0,i=CL(t);n<i.length;n++){var r=i[n];sce.call(t,r)&&TL(e,r,t[r])}return e},Um=function(e,t){return ice(e,ace(t))};function AL(e,t,r,n){var i=O.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}},[e,t,r,n]),a=O.useRef(i);return O.useEffect(function(){a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}var JS=Symbol();function eb(e){var t=O.useRef(e);return O.useEffect(function(){au(t.current,e)||(t.current=e)},[e]),au(t.current,e)?t.current:e}var _g=WeakMap?new WeakMap:void 0,lce=function(e){var t=e.endpointName,r=e.queryArgs,n="",i=_g==null?void 0:_g.get(r);if(typeof i=="string")n=i;else{var a=JSON.stringify(r,function(o,s){return Ps(s)?Object.keys(s).sort().reduce(function(l,u){return l[u]=s[u],l},{}):s});Ps(r)&&(_g==null||_g.set(r,a)),n=a}return t+"("+n+")"},uce=typeof window<"u"&&window.document&&window.document.createElement?O.useLayoutEffect:O.useEffect,cce=function(e){return e},fce=function(e){return e.isUninitialized?Um(Ja({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Ht.pending}):e};function dce(e){var t=e.api,r=e.moduleOptions,n=r.batch,i=r.useDispatch,a=r.useSelector,o=r.useStore,s=r.unstable__sideEffectsInRender,l=e.serializeQueryArgs,u=e.context,c=s?function(v){return v()}:O.useEffect;return{buildQueryHooks:h,buildMutationHook:p,usePrefetch:d};function f(v,g,m){if(g!=null&&g.endpointName&&v.isUninitialized){var y=g.endpointName,x=u.endpointDefinitions[y];l({queryArgs:g.originalArgs,endpointDefinition:x,endpointName:y})===l({queryArgs:m,endpointDefinition:x,endpointName:y})&&(g=void 0)}var S=v.isSuccess?v.data:g==null?void 0:g.data;S===void 0&&(S=v.data);var _=S!==void 0,b=v.isLoading,w=!_&&b,C=v.isSuccess||b&&_;return Um(Ja({},v),{data:S,currentData:v.data,isFetching:b,isLoading:w,isSuccess:C})}function d(v,g){var m=i(),y=eb(g);return O.useCallback(function(x,S){return m(t.util.prefetch(v,x,Ja(Ja({},y),S)))},[v,m,y])}function h(v){var g=function(x,S){var _=S===void 0?{}:S,b=_.refetchOnReconnect,w=_.refetchOnFocus,C=_.refetchOnMountOrArgChange,A=_.skip,T=A===void 0?!1:A,M=_.pollingInterval,k=M===void 0?0:M,I=t.endpoints[v].initiate,P=i(),L=AL(T?Yl:x,lce,u.endpointDefinitions[v],v),z=eb({refetchOnReconnect:b,refetchOnFocus:w,pollingInterval:k}),V=O.useRef(!1),N=O.useRef(),F=N.current||{},E=F.queryCacheKey,G=F.requestId,j=!1;if(E&&G){var B=P(t.internalActions.internal_probeSubscription({queryCacheKey:E,requestId:G}));j=!!B}var U=!j&&V.current;return c(function(){V.current=j}),c(function(){U&&(N.current=void 0)},[U]),c(function(){var X,W=N.current;if(typeof process<"u",L===Yl){W==null||W.unsubscribe(),N.current=void 0;return}var ee=(X=N.current)==null?void 0:X.subscriptionOptions;if(!W||W.arg!==L){W==null||W.unsubscribe();var te=P(I(L,{subscriptionOptions:z,forceRefetch:C}));N.current=te}else z!==ee&&W.updateSubscriptionOptions(z)},[P,I,C,L,z,U]),O.useEffect(function(){return function(){var X;(X=N.current)==null||X.unsubscribe(),N.current=void 0}},[]),O.useMemo(function(){return{refetch:function(){var X;if(!N.current)throw new Error("Cannot refetch a query that has not been started yet.");return(X=N.current)==null?void 0:X.refetch()}}},[])},m=function(x){var S=x===void 0?{}:x,_=S.refetchOnReconnect,b=S.refetchOnFocus,w=S.pollingInterval,C=w===void 0?0:w,A=t.endpoints[v].initiate,T=i(),M=O.useState(JS),k=M[0],I=M[1],P=O.useRef(),L=eb({refetchOnReconnect:_,refetchOnFocus:b,pollingInterval:C});c(function(){var N,F,E=(N=P.current)==null?void 0:N.subscriptionOptions;L!==E&&((F=P.current)==null||F.updateSubscriptionOptions(L))},[L]);var z=O.useRef(L);c(function(){z.current=L},[L]);var V=O.useCallback(function(N,F){F===void 0&&(F=!1);var E;return n(function(){var G;(G=P.current)==null||G.unsubscribe(),P.current=E=T(A(N,{subscriptionOptions:z.current,forceRefetch:!F})),I(N)}),E},[T,A]);return O.useEffect(function(){return function(){var N;(N=P==null?void 0:P.current)==null||N.unsubscribe()}},[]),O.useEffect(function(){k!==JS&&!P.current&&V(k,!0)},[k,V]),O.useMemo(function(){return[V,k]},[V,k])},y=function(x,S){var _=S===void 0?{}:S,b=_.skip,w=b===void 0?!1:b,C=_.selectFromResult,A=t.endpoints[v].select,T=AL(w?Yl:x,l,u.endpointDefinitions[v],v),M=O.useRef(),k=O.useMemo(function(){return Ah([A(T),function(V,N){return N},function(V){return T}],f)},[A,T]),I=O.useMemo(function(){return C?Ah([k],C):k},[k,C]),P=a(function(V){return I(V,M.current)},au),L=o(),z=k(L.getState(),M.current);return uce(function(){M.current=z},[z]),P};return{useQueryState:y,useQuerySubscription:g,useLazyQuerySubscription:m,useLazyQuery:function(x){var S=m(x),_=S[0],b=S[1],w=y(b,Um(Ja({},x),{skip:b===JS})),C=O.useMemo(function(){return{lastArg:b}},[b]);return O.useMemo(function(){return[_,w,C]},[_,w,C])},useQuery:function(x,S){var _=g(x,S),b=y(x,Ja({selectFromResult:x===Yl||S!=null&&S.skip?void 0:fce},S)),w=b.data,C=b.status,A=b.isLoading,T=b.isSuccess,M=b.isError,k=b.error;return O.useDebugValue({data:w,status:C,isLoading:A,isSuccess:T,isError:M,error:k}),O.useMemo(function(){return Ja(Ja({},b),_)},[b,_])}}}function p(v){return function(g){var m=g===void 0?{}:g,y=m.selectFromResult,x=y===void 0?cce:y,S=m.fixedCacheKey,_=t.endpoints[v],b=_.select,w=_.initiate,C=i(),A=O.useState(),T=A[0],M=A[1];O.useEffect(function(){return function(){T!=null&&T.arg.fixedCacheKey||T==null||T.reset()}},[T]);var k=O.useCallback(function(W){var ee=C(w(W,{fixedCacheKey:S}));return M(ee),ee},[C,w,S]),I=(T||{}).requestId,P=O.useMemo(function(){return Ah([b({fixedCacheKey:S,requestId:T==null?void 0:T.requestId})],x)},[b,T,x,S]),L=a(P,au),z=S==null?T==null?void 0:T.arg.originalArgs:void 0,V=O.useCallback(function(){n(function(){T&&M(void 0),S&&C(t.internalActions.removeMutationResult({requestId:I,fixedCacheKey:S}))})},[C,S,T,I]),N=L.endpointName,F=L.data,E=L.status,G=L.isLoading,j=L.isSuccess,B=L.isError,U=L.error;O.useDebugValue({endpointName:N,data:F,status:E,isLoading:G,isSuccess:j,isError:B,error:U});var X=O.useMemo(function(){return Um(Ja({},L),{originalArgs:z,reset:V})},[L,z,V]);return O.useMemo(function(){return[k,X]},[k,X])}}}var n0;(function(e){e.query="query",e.mutation="mutation"})(n0||(n0={}));function hce(e){return e.type===n0.query}function pce(e){return e.type===n0.mutation}function tb(e){return e.replace(e[0],e[0].toUpperCase())}function wg(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Object.assign.apply(Object,rce([e],t))}var vce=Symbol(),gce=function(e){var t=e===void 0?{}:e,r=t.batch,n=r===void 0?Hf.unstable_batchedUpdates:r,i=t.useDispatch,a=i===void 0?DG:i,o=t.useSelector,s=o===void 0?EM:o,l=t.useStore,u=l===void 0?PG:l,c=t.unstable__sideEffectsInRender,f=c===void 0?!1:c;return{name:vce,init:function(d,h,p){var v=h.serializeQueryArgs,g=d,m=dce({api:d,moduleOptions:{batch:n,useDispatch:a,useSelector:s,useStore:u,unstable__sideEffectsInRender:f},serializeQueryArgs:v,context:p}),y=m.buildQueryHooks,x=m.buildMutationHook,S=m.usePrefetch;return wg(g,{usePrefetch:S}),wg(p,{batch:n}),{injectEndpoint:function(_,b){if(hce(b)){var w=y(_),C=w.useQuery,A=w.useLazyQuery,T=w.useLazyQuerySubscription,M=w.useQueryState,k=w.useQuerySubscription;wg(g.endpoints[_],{useQuery:C,useLazyQuery:A,useLazyQuerySubscription:T,useQueryState:M,useQuerySubscription:k}),d["use"+tb(_)+"Query"]=C,d["useLazy"+tb(_)+"Query"]=A}else if(pce(b)){var I=x(_);wg(g.endpoints[_],{useMutation:I}),d["use"+tb(_)+"Mutation"]=I}}}}}},mce=Gue(tce(),gce());const Ac=e=>Array.isArray(e)?e.length:Object.keys(e).length,yce=e=>Ac(e)===0;function xce(e,t){return{...e,...t}}const Sce=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},px=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),QC=mce({baseQuery:Oue(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:jc}),getTasks:e.query({query:()=>"tasks",transformResponse:jc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:jc}),getLogs:e.query({query:()=>"logs",transformResponse:jc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Sce(iL(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:iL(t)})})})}),{useGetStatsQuery:bce,useGetTasksQuery:_ce,useGetExceptionsQuery:wce,useGetLogsQuery:Cce,useStartSwarmMutation:QG,useUpdateUserSettingsMutation:Tce}=QC;function Ace({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=QG(),i=a=>{e(),n(a)};return R.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[R.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),R.jsx(VM,{onSubmit:i,children:R.jsxs(it,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[R.jsx(wa,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),R.jsx(wa,{defaultValue:r||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Mce=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),kce=Ln(Mce)(Ace);function Ice(){const[e,t]=O.useState(!1);return R.jsxs(R.Fragment,{children:[R.jsx(qa,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),R.jsx(hx,{onClose:()=>t(!1),open:e,children:R.jsx(kce,{onSubmit:()=>t(!1)})})]})}var WM={},Pce=Ou;Object.defineProperty(WM,"__esModule",{value:!0});var jM=WM.default=void 0,Dce=Pce(Nu()),Rce=R,Lce=(0,Dce.default)((0,Rce.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");jM=WM.default=Lce;function UM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return R.jsxs(qV,{sx:a,children:[R.jsx(PM,{htmlFor:t,shrink:!0,children:e}),R.jsx(fG,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>R.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function Ece({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=VG(e),o=n?`${a} (${n})`:a;return r?R.jsx(UM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?R.jsx(XV,{control:R.jsx(UC,{defaultChecked:t}),label:o,name:e}):R.jsx(wa,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Oce({extraOptions:e}){return R.jsxs(NV,{children:[R.jsx(BV,{expandIcon:R.jsx(jM,{}),children:R.jsx(qe,{children:"Custom parameters"})}),R.jsx(zV,{children:R.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>R.jsx(Ece,{label:t,...r},`valid-parameter-${n}`))})})]})}var qM={},Nce=Ou;Object.defineProperty(qM,"__esModule",{value:!0});var JG=qM.default=void 0,zce=Nce(Nu()),Bce=R,$ce=(0,zce.default)((0,Bce.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");JG=qM.default=$ce;function Tv(e,{payload:t}){return xce(e,t)}const Fce=La,e6=li({name:"swarm",initialState:Fce,reducers:{setSwarm:Tv}}),YM=e6.actions,Vce=e6.reducer;function Gce({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return R.jsx(VM,{onSubmit:r,children:R.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[R.jsx(qe,{children:`${t.userClassName} Settings`}),R.jsx(UM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>R.jsx(wa,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:VG(a),name:a},`user-to-edit-${a}`)),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function Hce({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Tce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return R.jsxs(R.Fragment,{children:[R.jsx(it,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:R.jsxs(it,{sx:{maxHeight:"30vh",overflow:"auto"},children:[R.jsx(PM,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),R.jsx(ZV,{children:R.jsx(vG,{component:Wf,children:R.jsxs(hG,{children:[R.jsx(gG,{children:R.jsx(Ky,{children:R.jsx(zl,{colSpan:4,padding:"checkbox",children:R.jsx(UC,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),R.jsx(pG,{children:Object.entries(a).map(([g,m])=>R.jsxs(Ky,{hover:!0,children:[R.jsx(zl,{onClick:d(g),padding:"checkbox",children:R.jsx(UC,{checked:r.includes(g)})}),R.jsx(zl,{children:g}),R.jsx(zl,{children:R.jsx(qe,{variant:"subtitle2",children:m.host})}),R.jsx(zl,{align:"right",children:R.jsx(Cv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:R.jsx(JG,{})})})]},`user-class-${g}`))})]})})})]})}),R.jsx(hx,{onClose:()=>s(!1),open:o,children:l&&R.jsx(Gce,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const Wce={setSwarm:YM.setSwarm},jce=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Uce=Ln(jce,Wce)(Hce);function qce({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=QG(),[d,h]=O.useState(t),p=v=>{l({state:mi.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return R.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[R.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&R.jsx(it,{marginBottom:2,marginTop:2,children:R.jsx(Uce,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),R.jsx(VM,{onSubmit:p,children:R.jsxs(it,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&R.jsx(UM,{label:"Shape Class",name:"shapeClass",options:e}),R.jsx(wa,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),R.jsx(wa,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),R.jsx(wa,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),R.jsxs(NV,{children:[R.jsx(BV,{expandIcon:R.jsx(jM,{}),children:R.jsx(qe,{children:"Advanced options"})}),R.jsx(zV,{children:R.jsx(wa,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!yce(n)&&R.jsx(Oce,{extraOptions:n}),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Yce=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Xce={setSwarm:YM.setSwarm},t6=Ln(Yce,Xce)(qce);function Zce(){const[e,t]=O.useState(!1);return R.jsxs(R.Fragment,{children:[R.jsx(qa,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),R.jsx(hx,{onClose:()=>t(!1),open:e,children:R.jsx(t6,{})})]})}function Kce(){const e=()=>{fetch("stats/reset")};return R.jsx(qa,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Qce(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return R.jsx(qa,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Jce(){const e=Ys(({swarm:t})=>t.state);return e===mi.READY?null:e===mi.STOPPED?R.jsx(Zce,{}):R.jsxs(it,{sx:{display:"flex",columnGap:2},children:[R.jsx(Ice,{}),R.jsx(Qce,{}),R.jsx(Kce,{})]})}function efe(){return R.jsx(are,{position:"static",children:R.jsx(jf,{maxWidth:"xl",children:R.jsxs(bse,{sx:{display:"flex",justifyContent:"space-between"},children:[R.jsxs(on,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[R.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),R.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),R.jsxs(it,{sx:{display:"flex",columnGap:6},children:[R.jsx(Sue,{}),R.jsx(Jce,{}),R.jsx(BG,{})]})]})})})}function tfe({children:e}){return R.jsxs(R.Fragment,{children:[R.jsx(efe,{}),R.jsx("main",{children:e}),R.jsx(mue,{})]})}function fh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const rfe={},r6=li({name:"notification",initialState:rfe,reducers:{setNotification:Tv}}),n6=r6.actions,nfe=r6.reducer;function ife(e,{key:t,shouldNotify:r}){const n=ql(n6.setNotification),i=Ys(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{Ac(e)>0&&Ac(e)<localStorage[a]&&(localStorage[a]=Ac(e)),Ac(e)>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=Ac(e))},[e])}const afe={logs:[]},i6=li({name:"logViewer",initialState:afe,reducers:{setLogs:Tv}}),ofe=i6.actions,sfe=i6.reducer,lfe=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function ufe(){const e=Ys(({swarm:o})=>o),t=ql(ofe.setLogs),{data:r,refetch:n}=Cce(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(lfe),[i]);return fh(n,5e3,{shouldRunInterval:e.state===mi.SPAWNING||e.state==mi.RUNNING}),ife(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var XM={},cfe=Ou;Object.defineProperty(XM,"__esModule",{value:!0});var a6=XM.default=void 0,ffe=cfe(Nu()),ML=R,dfe=(0,ffe.default)([(0,ML.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,ML.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");a6=XM.default=dfe;function hfe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const pfe=/[ \t\n\f\r]/g;function vfe(e){return typeof e=="object"?e.type==="text"?kL(e.value):!1:kL(e)}function kL(e){return e.replace(pfe,"")===""}class Av{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Av.prototype.property={};Av.prototype.normal={};Av.prototype.space=null;function o6(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Av(r,n,t)}function JC(e){return e.toLowerCase()}class ki{constructor(t,r){this.property=t,this.attribute=r}}ki.prototype.space=null;ki.prototype.boolean=!1;ki.prototype.booleanish=!1;ki.prototype.overloadedBoolean=!1;ki.prototype.number=!1;ki.prototype.commaSeparated=!1;ki.prototype.spaceSeparated=!1;ki.prototype.commaOrSpaceSeparated=!1;ki.prototype.mustUseProperty=!1;ki.prototype.defined=!1;let gfe=0;const Ke=zu(),cr=zu(),s6=zu(),se=zu(),Et=zu(),of=zu(),Nn=zu();function zu(){return 2**++gfe}const eT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:cr,commaOrSpaceSeparated:Nn,commaSeparated:of,number:se,overloadedBoolean:s6,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),rb=Object.keys(eT);class ZM extends ki{constructor(t,r,n,i){let a=-1;if(super(t,r),IL(this,"space",i),typeof n=="number")for(;++a<rb.length;){const o=rb[a];IL(this,rb[a],(n&eT[o])===eT[o])}}}ZM.prototype.defined=!0;function IL(e,t,r){r&&(e[t]=r)}const mfe={}.hasOwnProperty;function Uf(e){const t={},r={};let n;for(n in e.properties)if(mfe.call(e.properties,n)){const i=e.properties[n],a=new ZM(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[JC(n)]=n,r[JC(a.attribute)]=n}return new Av(t,r,e.space)}const l6=Uf({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u6=Uf({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function c6(e,t){return t in e?e[t]:t}function f6(e,t){return c6(e,t.toLowerCase())}const d6=Uf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:f6,properties:{xmlns:null,xmlnsXLink:null}}),h6=Uf({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cr,ariaAutoComplete:null,ariaBusy:cr,ariaChecked:cr,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:cr,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:cr,ariaFlowTo:Et,ariaGrabbed:cr,ariaHasPopup:null,ariaHidden:cr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:se,ariaLive:null,ariaModal:cr,ariaMultiLine:cr,ariaMultiSelectable:cr,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:cr,ariaReadOnly:cr,ariaRelevant:null,ariaRequired:cr,ariaRoleDescription:Et,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:cr,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null}}),yfe=Uf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:f6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:of,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:Et,autoFocus:Ke,autoPlay:Ke,blocking:Et,capture:Ke,charSet:null,checked:Ke,cite:null,className:Et,cols:se,colSpan:null,content:null,contentEditable:cr,controls:Ke,controlsList:Et,coords:se|of,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:s6,draggable:cr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:Et,height:se,hidden:Ke,high:se,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:Et,itemRef:Et,itemScope:Ke,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ke,optimum:se,pattern:null,ping:Et,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:Et,required:Ke,reversed:Ke,rows:se,rowSpan:se,sandbox:Et,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:cr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:cr,width:se,wrap:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:cr,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:se,security:null,unselectable:null}}),xfe=Uf({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:c6,properties:{about:Nn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:Et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:of,g2:of,glyphName:of,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:Nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:se,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nn,rev:Nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nn,requiredFeatures:Nn,requiredFonts:Nn,requiredFormats:Nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:Nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Sfe=/^data[-\w.:]+$/i,PL=/-[a-z]/g,bfe=/[A-Z]/g;function _fe(e,t){const r=JC(t);let n=t,i=ki;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Sfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(PL,Cfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!PL.test(a)){let o=a.replace(bfe,wfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ZM}return new i(n,t)}function wfe(e){return"-"+e.toLowerCase()}function Cfe(e){return e.charAt(1).toUpperCase()}const Tfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Afe=o6([u6,l6,d6,h6,yfe],"html"),p6=o6([u6,l6,d6,h6,xfe],"svg");function Mfe(e){return e.join(" ").trim()}var KM={exports:{}},DL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kfe=/\n/g,Ife=/^\s*/,Pfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dfe=/^:\s*/,Rfe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Lfe=/^[;\s]*/,Efe=/^\s+|\s+$/g,Ofe=`
158
+ See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return e0(e0([],S(o)),S(s)).filter(QS)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(QS)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(QS)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=Op,L=A[P];return function(z,V){var N,F,E=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:E},N[Op]=L,N)),j=i.endpoints[S].select(w),B=z(G),U=j(V()),X=B.requestId,W=B.abort,ee=U.requestId!==X,te=(F=o.get(z))==null?void 0:F[E],ie=function(){return j(V())},re=Object.assign(L?B.then(ie):ee&&!te?Promise.resolve(U):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:E,abort:W,unwrap:function(){return r0(this,null,function(){var J;return Jy(this,function(de){switch(de.label){case 0:return[4,re];case 1:if(J=de.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:E,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:E,options:J}))}});if(!te&&!ee&&!L){var Q=o.get(z)||{};Q[E]=re,o.set(z,Q),re.then(function(){delete Q[E],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),L=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(j){return{data:j}}).catch(function(j){return{error:j}}),F=function(){M(c({requestId:L,fixedCacheKey:T}))},E=Object.assign(N,{arg:P.arg,requestId:L,abort:z,unwrap:V,unsubscribe:F,reset:F}),G=s.get(M)||{};return s.set(M,G),G[L]=E,E.then(function(){delete G[L],Object.keys(G).length||s.delete(M)}),T&&(G[T]=E,E.then(function(){G[T]===E&&(delete G[T],Object.keys(G).length||s.delete(M))})),E}}}}function gL(e){return e}function $ue(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Ht.uninitialized)return M;if("data"in T)if(Zi(T.data)){var k=NF(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var L=_(T.data);M.patches.push({op:"replace",path:[],value:L}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[Op]=function(){return{data:_}},w)))}},c=function(x,S){return r0(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Jy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=gL,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[Op]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(de){return n(de,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new vL(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[ih]=!0,B)])];case 8:if(N=J.sent(),F=N,!(F instanceof vL))return[3,12];E=gL,w.query&&w.transformErrorResponse&&(E=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,E(F.value,F.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(U={baseQueryMeta:F.meta},U[ih]=!0,U)])];case 11:return j=J.sent(),F=j,[3,12];case 12:throw typeof process<"u",console.error(F),F;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=zP(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ih]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return KC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||YG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=zP(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ih]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Mh(s2(x),m(S)),matchFulfilled:Mh(Du(x),m(S)),matchRejected:Mh(cp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function ZG(e,t,r,n){return XG(r[e.meta.arg.endpointName][t],Du(e)?e.payload:void 0,u1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){var n=e[t];n&&r(n)}function Np(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function mL(e,t,r){var n=e[Np(t)];n&&r(n)}var Ad={};function Fue(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Cn(t+"/resetApiState"),d=li({name:t+"/queries",initialState:Ad,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:pS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;Sg(_,C,function(T){T.data=IP(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=KC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),Sg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;Sg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!KC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,L=C.baseQueryMeta,z=C.requestId,V=pv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?jG(Xi(T.data)?Iq(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;Sg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Ht.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A<T.length;A++){var M=T[A],k=M[0],I=M[1];((I==null?void 0:I.status)===Ht.fulfilled||(I==null?void 0:I.status)===Ht.rejected)&&(b[k]=I)}})}}),h=li({name:t+"/mutations",initialState:Ad,reducers:{removeMutationResult:{reducer:function(_,b){var w=b.payload,C=Np(w);C in _&&delete _[C]},prepare:pS()}},extraReducers:function(_){_.addCase(n.pending,function(b,w){var C=w.meta,A=w.meta,T=A.requestId,M=A.arg,k=A.startedTimeStamp;M.track&&(b[Np(C)]={requestId:T,status:Ht.pending,endpointName:M.endpointName,startedTimeStamp:k})}).addCase(n.fulfilled,function(b,w){var C=w.payload,A=w.meta;A.arg.track&&mL(b,A,function(T){T.requestId===A.requestId&&(T.status=Ht.fulfilled,T.data=C,T.fulfilledTimeStamp=A.fulfilledTimeStamp)})}).addCase(n.rejected,function(b,w){var C=w.payload,A=w.error,T=w.meta;T.arg.track&&mL(b,T,function(M){M.requestId===T.requestId&&(M.status=Ht.rejected,M.error=C??A)})}).addMatcher(l,function(b,w){for(var C=s(w).mutations,A=0,T=Object.entries(C);A<T.length;A++){var M=T[A],k=M[0],I=M[1];((I==null?void 0:I.status)===Ht.fulfilled||(I==null?void 0:I.status)===Ht.rejected)&&k!==(I==null?void 0:I.requestId)&&(b[k]=I)}})}}),p=li({name:t+"/invalidation",initialState:Ad,reducers:{},extraReducers:function(_){_.addCase(d.actions.removeQueryResult,function(b,w){for(var C=w.payload.queryCacheKey,A=0,T=Object.values(b);A<T.length;A++)for(var M=T[A],k=0,I=Object.values(M);k<I.length;k++){var P=I[k],L=P.indexOf(C);L!==-1&&P.splice(L,1)}}).addMatcher(l,function(b,w){for(var C,A,T,M,k=s(w).provided,I=0,P=Object.entries(k);I<P.length;I++)for(var L=P[I],z=L[0],V=L[1],N=0,F=Object.entries(V);N<F.length;N++)for(var E=F[N],G=E[0],j=E[1],B=(M=(A=(C=b[z])!=null?C:b[z]={})[T=G||"__internal_without_id"])!=null?M:A[T]=[],U=0,X=j;U<X.length;U++){var W=X[U],ee=B.includes(W);ee||B.push(W)}}).addMatcher(Bf(Du(r),u1(r)),function(b,w){for(var C,A,T,M,k=ZG(w,"providesTags",a,u),I=w.meta.arg.queryCacheKey,P=0,L=Object.values(b);P<L.length;P++)for(var z=L[P],V=0,N=Object.values(z);V<N.length;V++){var F=N[V],E=F.indexOf(I);E!==-1&&F.splice(E,1)}for(var G=0,j=k;G<j.length;G++){var B=j[G],U=B.type,X=B.id,W=(M=(A=(C=b[U])!=null?C:b[U]={})[T=X||"__internal_without_id"])!=null?M:A[T]=[],ee=W.includes(I);ee||W.push(I)}})}}),v=li({name:t+"/subscriptions",initialState:Ad,reducers:{updateSubscriptionOptions:function(_,b){},unsubscribeQueryResult:function(_,b){},internal_probeSubscription:function(_,b){}}}),g=li({name:t+"/internalSubscriptions",initialState:Ad,reducers:{subscriptionsUpdated:{reducer:function(_,b){return IP(_,b.payload)},prepare:pS()}}}),m=li({name:t+"/config",initialState:ir({online:Due(),focused:Rue(),middlewareRegistered:!1},c),reducers:{middlewareRegistered:function(_,b){var w=b.payload;_.middlewareRegistered=_.middlewareRegistered==="conflict"||o!==w?"conflict":!0}},extraReducers:function(_){_.addCase(HM,function(b){b.online=!0}).addCase(qG,function(b){b.online=!1}).addCase(GM,function(b){b.focused=!0}).addCase(UG,function(b){b.focused=!1}).addMatcher(l,function(b){return ir({},b)})}}),y=s1({queries:d.reducer,mutations:h.reducer,provided:p.reducer,subscriptions:g.reducer,config:m.reducer}),x=function(_,b){return y(f.match(b)?void 0:_,b)},S=Ca(ir(ir(ir(ir(ir({},m.actions),d.actions),v.actions),g.actions),h.actions),{unsubscribeMutationResult:h.actions.removeMutationResult,resetApiState:f});return{reducer:x,actions:S}}var Yl=Symbol.for("RTKQ/skipToken"),KG={status:Ht.uninitialized},yL=pv(KG,function(){}),xL=pv(KG,function(){});function Vue(e){var t=e.serializeQueryArgs,r=e.reducerPath,n=function(c){return yL},i=function(c){return xL};return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u};function a(c){return ir(ir({},c),Aue(c.status))}function o(c){var f=c[r];return f}function s(c,f){return function(d){var h=t({queryArgs:d,endpointDefinition:f,endpointName:c}),p=function(g){var m,y,x;return(x=(y=(m=o(g))==null?void 0:m.queries)==null?void 0:y[h])!=null?x:yL},v=d===Yl?n:p;return Ah(v,a)}}function l(){return function(c){var f,d;typeof c=="object"?d=(f=Np(c))!=null?f:Yl:d=c;var h=function(v){var g,m,y;return(y=(m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])!=null?y:xL},p=d===Yl?i:h;return Ah(p,a)}}function u(c,f){for(var d,h=c[r],p=new Set,v=0,g=f.map(ZC);v<g.length;v++){var m=g[v],y=h.provided[m.type];if(y)for(var x=(d=m.id!==void 0?y[m.id]:fL(Object.values(y)))!=null?d:[],S=0,_=x;S<_.length;S++){var b=_[S];p.add(b)}}return fL(Array.from(p.values()).map(function(w){var C=h.queries[w];return C?[{queryCacheKey:w,endpointName:C.endpointName,originalArgs:C.originalArgs}]:[]}))}}var bg=WeakMap?new WeakMap:void 0,SL=function(e){var t=e.endpointName,r=e.queryArgs,n="",i=bg==null?void 0:bg.get(r);if(typeof i=="string")n=i;else{var a=JSON.stringify(r,function(o,s){return Ps(s)?Object.keys(s).sort().reduce(function(l,u){return l[u]=s[u],l},{}):s});Ps(r)&&(bg==null||bg.set(r,a)),n=a}return t+"("+n+")"};function Gue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){var i=Hw(function(c){var f,d;return(d=n.extractRehydrationInfo)==null?void 0:d.call(n,c,{reducerPath:(f=n.reducerPath)!=null?f:"api"})}),a=Ca(ir({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},n),{extractRehydrationInfo:i,serializeQueryArgs:function(c){var f=SL;if("serializeQueryArgs"in c.endpointDefinition){var d=c.endpointDefinition.serializeQueryArgs;f=function(h){var p=d(h);return typeof p=="string"?p:SL(Ca(ir({},h),{queryArgs:p}))}}else n.serializeQueryArgs&&(f=n.serializeQueryArgs);return f(c)},tagTypes:e0([],n.tagTypes||[])}),o={endpointDefinitions:{},batch:function(c){c()},apiUid:HF(),extractRehydrationInfo:i,hasRehydrationInfo:Hw(function(c){return i(c)!=null})},s={injectEndpoints:u,enhanceEndpoints:function(c){var f=c.addTagTypes,d=c.endpoints;if(f)for(var h=0,p=f;h<p.length;h++){var v=p[h];a.tagTypes.includes(v)||a.tagTypes.push(v)}if(d)for(var g=0,m=Object.entries(d);g<m.length;g++){var y=m[g],x=y[0],S=y[1];typeof S=="function"?S(o.endpointDefinitions[x]):Object.assign(o.endpointDefinitions[x]||{},S)}return s}},l=e.map(function(c){return c.init(s,a,o)});function u(c){for(var f=c.endpoints({query:function(S){return Ca(ir({},S),{type:Ba.query})},mutation:function(S){return Ca(ir({},S),{type:Ba.mutation})}}),d=0,h=Object.entries(f);d<h.length;d++){var p=h[d],v=p[0],g=p[1];if(!c.overrideExisting&&v in o.endpointDefinitions){typeof process<"u";continue}o.endpointDefinitions[v]=g;for(var m=0,y=l;m<y.length;m++){var x=y[m];x.injectEndpoint(v,g)}}return s}return s.injectEndpoints({endpoints:n.endpoints})}}function Hue(e){for(var t in e)return!1;return!0}var Wue=2147483647/1e3-1,jue=function(e){var t=e.reducerPath,r=e.api,n=e.context,i=e.internalState,a=r.internalActions,o=a.removeQueryResult,s=a.unsubscribeQueryResult;function l(d){var h=i.currentSubscriptions[d];return!!h&&!Hue(h)}var u={},c=function(d,h,p){var v;if(s.match(d)){var g=h.getState()[t],m=d.payload.queryCacheKey;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(r.util.resetApiState.match(d))for(var y=0,x=Object.entries(u);y<x.length;y++){var S=x[y],_=S[0],b=S[1];b&&clearTimeout(b),delete u[_]}if(n.hasRehydrationInfo(d))for(var g=h.getState()[t],w=n.extractRehydrationInfo(d).queries,C=0,A=Object.entries(w);C<A.length;C++){var T=A[C],m=T[0],M=T[1];f(m,M==null?void 0:M.endpointName,h,g.config)}};function f(d,h,p,v){var g,m=n.endpointDefinitions[h],y=(g=m==null?void 0:m.keepUnusedDataFor)!=null?g:v.keepUnusedDataFor;if(y!==1/0){var x=Math.max(0,Math.min(y,Wue));if(!l(d)){var S=u[d];S&&clearTimeout(S),u[d]=setTimeout(function(){l(d)||p.dispatch(o({queryCacheKey:d})),delete u[d]},x*1e3)}}}return c},Uue=function(e){var t=e.reducerPath,r=e.context,n=e.context.endpointDefinitions,i=e.mutationThunk,a=e.api,o=e.assertTagType,s=e.refetchQuery,l=a.internalActions.removeQueryResult,u=Bf(Du(i),u1(i)),c=function(d,h){u(d)&&f(ZG(d,"invalidatesTags",n,o),h),a.util.invalidateTags.match(d)&&f(XG(d.payload,void 0,void 0,void 0,void 0,o),h)};function f(d,h){var p=h.getState(),v=p[t],g=a.util.selectInvalidatedBy(p,d);r.batch(function(){for(var m,y=Array.from(g.values()),x=0,S=y;x<S.length;x++){var _=S[x].queryCacheKey,b=v.queries[_],w=(m=v.subscriptions[_])!=null?m:{};b&&(Object.keys(w).length===0?h.dispatch(l({queryCacheKey:_})):b.status!==Ht.uninitialized&&h.dispatch(s(b,_)))}})}return c},que=function(e){var t=e.reducerPath,r=e.queryThunk,n=e.api,i=e.refetchQuery,a=e.internalState,o={},s=function(h,p){(n.internalActions.updateSubscriptionOptions.match(h)||n.internalActions.unsubscribeQueryResult.match(h))&&u(h.payload,p),(r.pending.match(h)||r.rejected.match(h)&&h.meta.condition)&&u(h.meta.arg,p),(r.fulfilled.match(h)||r.rejected.match(h)&&!h.meta.condition)&&l(h.meta.arg,p),n.util.resetApiState.match(h)&&f()};function l(h,p){var v=h.queryCacheKey,g=p.getState()[t],m=g.queries[v],y=a.currentSubscriptions[v];if(!(!m||m.status===Ht.uninitialized)){var x=d(y);if(Number.isFinite(x)){var S=o[v];S!=null&&S.timeout&&(clearTimeout(S.timeout),S.timeout=void 0);var _=Date.now()+x,b=o[v]={nextPollTimestamp:_,pollingInterval:x,timeout:setTimeout(function(){b.timeout=void 0,p.dispatch(i(m,v))},x)}}}}function u(h,p){var v=h.queryCacheKey,g=p.getState()[t],m=g.queries[v],y=a.currentSubscriptions[v];if(!(!m||m.status===Ht.uninitialized)){var x=d(y);if(!Number.isFinite(x)){c(v);return}var S=o[v],_=Date.now()+x;(!S||_<S.nextPollTimestamp)&&l({queryCacheKey:v},p)}}function c(h){var p=o[h];p!=null&&p.timeout&&clearTimeout(p.timeout),delete o[h]}function f(){for(var h=0,p=Object.keys(o);h<p.length;h++){var v=p[h];c(v)}}function d(h){h===void 0&&(h={});var p=Number.POSITIVE_INFINITY;for(var v in h)h[v].pollingInterval&&(p=Math.min(h[v].pollingInterval,p));return p}return s},Yue=function(e){var t=e.reducerPath,r=e.context,n=e.api,i=e.refetchQuery,a=e.internalState,o=n.internalActions.removeQueryResult,s=function(u,c){GM.match(u)&&l(c,"refetchOnFocus"),HM.match(u)&&l(c,"refetchOnReconnect")};function l(u,c){var f=u.getState()[t],d=f.queries,h=a.currentSubscriptions;r.batch(function(){for(var p=0,v=Object.keys(h);p<v.length;p++){var g=v[p],m=d[g],y=h[g];if(!(!y||!m)){var x=Object.values(y).some(function(S){return S[c]===!0})||Object.values(y).every(function(S){return S[c]===void 0})&&f.config[c];x&&(Object.keys(y).length===0?u.dispatch(o({queryCacheKey:g})):m.status!==Ht.uninitialized&&u.dispatch(i(m,g)))}}})}return s},bL=new Error("Promise never resolved before cacheEntryRemoved."),Xue=function(e){var t=e.api,r=e.reducerPath,n=e.context,i=e.queryThunk,a=e.mutationThunk;e.internalState;var o=jw(i),s=jw(a),l=Du(i,a),u={},c=function(h,p,v){var g=f(h);if(i.pending.match(h)){var m=v[r].queries[g],y=p.getState()[r].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(a.pending.match(h)){var y=p.getState()[r].mutations[g];y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(l(h)){var x=u[g];x!=null&&x.valueResolved&&(x.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete x.valueResolved)}else if(t.internalActions.removeQueryResult.match(h)||t.internalActions.removeMutationResult.match(h)){var x=u[g];x&&(delete u[g],x.cacheEntryRemoved())}else if(t.util.resetApiState.match(h))for(var S=0,_=Object.entries(u);S<_.length;S++){var b=_[S],w=b[0],x=b[1];delete u[w],x.cacheEntryRemoved()}};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.requestId:t.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:t.internalActions.removeMutationResult.match(h)?Np(h.payload):""}function d(h,p,v,g,m){var y=n.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(x){var S={},_=new Promise(function(M){S.cacheEntryRemoved=M}),b=Promise.race([new Promise(function(M){S.valueResolved=M}),_.then(function(){throw bL})]);b.catch(function(){}),u[v]=S;var w=t.endpoints[h].select(y.type===Ba.query?p:v),C=g.dispatch(function(M,k,I){return I}),A=Ca(ir({},g),{getCacheEntry:function(){return w(g.getState())},requestId:m,extra:C,updateCachedData:y.type===Ba.query?function(M){return g.dispatch(t.util.updateQueryData(h,p,M))}:void 0,cacheDataLoaded:b,cacheEntryRemoved:_}),T=x(p,A);Promise.resolve(T).catch(function(M){if(M!==bL)throw M})}}return c},Zue=function(e){var t=e.api,r=e.context,n=e.queryThunk,i=e.mutationThunk,a=s2(n,i),o=cp(n,i),s=Du(n,i),l={},u=function(c,f){var d,h,p;if(a(c)){var v=c.meta,g=v.requestId,m=v.arg,y=m.endpointName,x=m.originalArgs,S=r.endpointDefinitions[y],_=S==null?void 0:S.onQueryStarted;if(_){var b={},w=new Promise(function(L,z){b.resolve=L,b.reject=z});w.catch(function(){}),l[g]=b;var C=t.endpoints[y].select(S.type===Ba.query?x:g),A=f.dispatch(function(L,z,V){return V}),T=Ca(ir({},f),{getCacheEntry:function(){return C(f.getState())},requestId:g,extra:A,updateCachedData:S.type===Ba.query?function(L){return f.dispatch(t.util.updateQueryData(y,x,L))}:void 0,queryFulfilled:w});_(x,T)}}else if(s(c)){var M=c.meta,g=M.requestId,k=M.baseQueryMeta;(d=l[g])==null||d.resolve({data:c.payload,meta:k}),delete l[g]}else if(o(c)){var I=c.meta,g=I.requestId,P=I.rejectedWithValue,k=I.baseQueryMeta;(p=l[g])==null||p.reject({error:(h=c.payload)!=null?h:c.error,isUnhandledError:!P,meta:k}),delete l[g]}};return u},Kue=function(e){var t=e.api,r=e.context.apiUid,n=e.reducerPath;return function(i,a){var o,s;t.util.resetApiState.match(i)&&a.dispatch(t.internalActions.middlewareRegistered(r)),typeof process<"u"}},_L,Que=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(_L||(_L=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Jue=function(e){var t=e.api,r=e.queryThunk,n=e.internalState,i=t.reducerPath+"/subscriptions",a=null,o=!1,s=t.internalActions,l=s.updateSubscriptionOptions,u=s.unsubscribeQueryResult,c=function(f,d){var h,p,v,g,m,y,x,S,_;if(l.match(d)){var b=d.payload,w=b.queryCacheKey,C=b.requestId,A=b.options;return(h=f==null?void 0:f[w])!=null&&h[C]&&(f[w][C]=A),!0}if(u.match(d)){var T=d.payload,w=T.queryCacheKey,C=T.requestId;return f[w]&&delete f[w][C],!0}if(t.internalActions.removeQueryResult.match(d))return delete f[d.payload.queryCacheKey],!0;if(r.pending.match(d)){var M=d.meta,k=M.arg,C=M.requestId;if(k.subscribe){var I=(v=f[p=k.queryCacheKey])!=null?v:f[p]={};return I[C]=(m=(g=k.subscriptionOptions)!=null?g:I[C])!=null?m:{},!0}}if(r.rejected.match(d)){var P=d.meta,L=P.condition,k=P.arg,C=P.requestId;if(L&&k.subscribe){var I=(x=f[y=k.queryCacheKey])!=null?x:f[y]={};return I[C]=(_=(S=k.subscriptionOptions)!=null?S:I[C])!=null?_:{},!0}}return!1};return function(f,d){var h,p;if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),t.util.resetApiState.match(f))return a=n.currentSubscriptions={},[!0,!1];if(t.internalActions.internal_probeSubscription.match(f)){var v=f.payload,g=v.queryCacheKey,m=v.requestId,y=!!((h=n.currentSubscriptions[g])!=null&&h[m]);return[!1,y]}var x=c(n.currentSubscriptions,f);if(x){o||(Que(function(){var w=JSON.parse(JSON.stringify(n.currentSubscriptions)),C=NF(a,function(){return w}),A=C[1];d.next(t.internalActions.subscriptionsUpdated(A)),a=w,o=!1}),o=!0);var S=!!((p=f.type)!=null&&p.startsWith(i)),_=r.rejected.match(f)&&f.meta.condition&&!!f.meta.arg.subscribe,b=!S&&!_;return[b,!1]}return[!0,!1]}};function ece(e){var t=e.reducerPath,r=e.queryThunk,n=e.api,i=e.context,a=i.apiUid,o={invalidateTags:Cn(t+"/invalidateTags")},s=function(f){return!!f&&typeof f.type=="string"&&f.type.startsWith(t+"/")},l=[Kue,jue,Uue,que,Xue,Zue],u=function(f){var d=!1,h={currentSubscriptions:{}},p=Ca(ir({},e),{internalState:h,refetchQuery:c}),v=l.map(function(y){return y(p)}),g=Jue(p),m=Yue(p);return function(y){return function(x){d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));var S=Ca(ir({},f),{next:y}),_=f.getState(),b=g(x,S,_),w=b[0],C=b[1],A;if(w?A=y(x):A=C,f.getState()[t]&&(m(x,S,_),s(x)||i.hasRehydrationInfo(x)))for(var T=0,M=v;T<M.length;T++){var k=M[T];k(x,S,_)}return A}}};return{middleware:u,actions:o};function c(f,d,h){return h===void 0&&(h={}),r(ir({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d},h))}}function zo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Object.assign.apply(Object,e0([e],t))}var wL=Symbol(),tce=function(){return{name:wL,init:function(e,t,r){var n=t.baseQuery,i=t.tagTypes,a=t.reducerPath,o=t.serializeQueryArgs,s=t.keepUnusedDataFor,l=t.refetchOnMountOrArgChange,u=t.refetchOnFocus,c=t.refetchOnReconnect;Eq();var f=function(B){return typeof process<"u",B};Object.assign(e,{reducerPath:a,endpoints:{},internalActions:{onOnline:HM,onOffline:qG,onFocus:GM,onFocusLost:UG},util:{}});var d=$ue({baseQuery:n,reducerPath:a,context:r,api:e,serializeQueryArgs:o}),h=d.queryThunk,p=d.mutationThunk,v=d.patchQueryData,g=d.updateQueryData,m=d.upsertQueryData,y=d.prefetch,x=d.buildMatchThunkActions,S=Fue({context:r,queryThunk:h,mutationThunk:p,reducerPath:a,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:l,keepUnusedDataFor:s,reducerPath:a}}),_=S.reducer,b=S.actions;zo(e.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:b.resetApiState}),zo(e.internalActions,b);var w=ece({reducerPath:a,context:r,queryThunk:h,mutationThunk:p,api:e,assertTagType:f}),C=w.middleware,A=w.actions;zo(e.util,A),zo(e,{reducer:_,middleware:C});var T=Vue({serializeQueryArgs:o,reducerPath:a}),M=T.buildQuerySelector,k=T.buildMutationSelector,I=T.selectInvalidatedBy;zo(e.util,{selectInvalidatedBy:I});var P=Bue({queryThunk:h,mutationThunk:p,api:e,serializeQueryArgs:o,context:r}),L=P.buildInitiateQuery,z=P.buildInitiateMutation,V=P.getRunningMutationThunk,N=P.getRunningMutationsThunk,F=P.getRunningQueriesThunk,E=P.getRunningQueryThunk,G=P.getRunningOperationPromises,j=P.removalWarning;return zo(e.util,{getRunningOperationPromises:G,getRunningOperationPromise:j,getRunningMutationThunk:V,getRunningMutationsThunk:N,getRunningQueryThunk:E,getRunningQueriesThunk:F}),{name:wL,injectEndpoint:function(B,U){var X,W,ee=e;(W=(X=ee.endpoints)[B])!=null||(X[B]={}),YG(U)?zo(ee.endpoints[B],{name:B,select:M(B,U),initiate:L(B,U)},x(h,B)):Nue(U)&&zo(ee.endpoints[B],{name:B,select:k(),initiate:z(B)},x(p,B))}}}}},rce=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},nce=Object.defineProperty,ice=Object.defineProperties,ace=Object.getOwnPropertyDescriptors,CL=Object.getOwnPropertySymbols,oce=Object.prototype.hasOwnProperty,sce=Object.prototype.propertyIsEnumerable,TL=function(e,t,r){return t in e?nce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ja=function(e,t){for(var r in t||(t={}))oce.call(t,r)&&TL(e,r,t[r]);if(CL)for(var n=0,i=CL(t);n<i.length;n++){var r=i[n];sce.call(t,r)&&TL(e,r,t[r])}return e},Um=function(e,t){return ice(e,ace(t))};function AL(e,t,r,n){var i=O.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}},[e,t,r,n]),a=O.useRef(i);return O.useEffect(function(){a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}var JS=Symbol();function eb(e){var t=O.useRef(e);return O.useEffect(function(){au(t.current,e)||(t.current=e)},[e]),au(t.current,e)?t.current:e}var _g=WeakMap?new WeakMap:void 0,lce=function(e){var t=e.endpointName,r=e.queryArgs,n="",i=_g==null?void 0:_g.get(r);if(typeof i=="string")n=i;else{var a=JSON.stringify(r,function(o,s){return Ps(s)?Object.keys(s).sort().reduce(function(l,u){return l[u]=s[u],l},{}):s});Ps(r)&&(_g==null||_g.set(r,a)),n=a}return t+"("+n+")"},uce=typeof window<"u"&&window.document&&window.document.createElement?O.useLayoutEffect:O.useEffect,cce=function(e){return e},fce=function(e){return e.isUninitialized?Um(Ja({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Ht.pending}):e};function dce(e){var t=e.api,r=e.moduleOptions,n=r.batch,i=r.useDispatch,a=r.useSelector,o=r.useStore,s=r.unstable__sideEffectsInRender,l=e.serializeQueryArgs,u=e.context,c=s?function(v){return v()}:O.useEffect;return{buildQueryHooks:h,buildMutationHook:p,usePrefetch:d};function f(v,g,m){if(g!=null&&g.endpointName&&v.isUninitialized){var y=g.endpointName,x=u.endpointDefinitions[y];l({queryArgs:g.originalArgs,endpointDefinition:x,endpointName:y})===l({queryArgs:m,endpointDefinition:x,endpointName:y})&&(g=void 0)}var S=v.isSuccess?v.data:g==null?void 0:g.data;S===void 0&&(S=v.data);var _=S!==void 0,b=v.isLoading,w=!_&&b,C=v.isSuccess||b&&_;return Um(Ja({},v),{data:S,currentData:v.data,isFetching:b,isLoading:w,isSuccess:C})}function d(v,g){var m=i(),y=eb(g);return O.useCallback(function(x,S){return m(t.util.prefetch(v,x,Ja(Ja({},y),S)))},[v,m,y])}function h(v){var g=function(x,S){var _=S===void 0?{}:S,b=_.refetchOnReconnect,w=_.refetchOnFocus,C=_.refetchOnMountOrArgChange,A=_.skip,T=A===void 0?!1:A,M=_.pollingInterval,k=M===void 0?0:M,I=t.endpoints[v].initiate,P=i(),L=AL(T?Yl:x,lce,u.endpointDefinitions[v],v),z=eb({refetchOnReconnect:b,refetchOnFocus:w,pollingInterval:k}),V=O.useRef(!1),N=O.useRef(),F=N.current||{},E=F.queryCacheKey,G=F.requestId,j=!1;if(E&&G){var B=P(t.internalActions.internal_probeSubscription({queryCacheKey:E,requestId:G}));j=!!B}var U=!j&&V.current;return c(function(){V.current=j}),c(function(){U&&(N.current=void 0)},[U]),c(function(){var X,W=N.current;if(typeof process<"u",L===Yl){W==null||W.unsubscribe(),N.current=void 0;return}var ee=(X=N.current)==null?void 0:X.subscriptionOptions;if(!W||W.arg!==L){W==null||W.unsubscribe();var te=P(I(L,{subscriptionOptions:z,forceRefetch:C}));N.current=te}else z!==ee&&W.updateSubscriptionOptions(z)},[P,I,C,L,z,U]),O.useEffect(function(){return function(){var X;(X=N.current)==null||X.unsubscribe(),N.current=void 0}},[]),O.useMemo(function(){return{refetch:function(){var X;if(!N.current)throw new Error("Cannot refetch a query that has not been started yet.");return(X=N.current)==null?void 0:X.refetch()}}},[])},m=function(x){var S=x===void 0?{}:x,_=S.refetchOnReconnect,b=S.refetchOnFocus,w=S.pollingInterval,C=w===void 0?0:w,A=t.endpoints[v].initiate,T=i(),M=O.useState(JS),k=M[0],I=M[1],P=O.useRef(),L=eb({refetchOnReconnect:_,refetchOnFocus:b,pollingInterval:C});c(function(){var N,F,E=(N=P.current)==null?void 0:N.subscriptionOptions;L!==E&&((F=P.current)==null||F.updateSubscriptionOptions(L))},[L]);var z=O.useRef(L);c(function(){z.current=L},[L]);var V=O.useCallback(function(N,F){F===void 0&&(F=!1);var E;return n(function(){var G;(G=P.current)==null||G.unsubscribe(),P.current=E=T(A(N,{subscriptionOptions:z.current,forceRefetch:!F})),I(N)}),E},[T,A]);return O.useEffect(function(){return function(){var N;(N=P==null?void 0:P.current)==null||N.unsubscribe()}},[]),O.useEffect(function(){k!==JS&&!P.current&&V(k,!0)},[k,V]),O.useMemo(function(){return[V,k]},[V,k])},y=function(x,S){var _=S===void 0?{}:S,b=_.skip,w=b===void 0?!1:b,C=_.selectFromResult,A=t.endpoints[v].select,T=AL(w?Yl:x,l,u.endpointDefinitions[v],v),M=O.useRef(),k=O.useMemo(function(){return Ah([A(T),function(V,N){return N},function(V){return T}],f)},[A,T]),I=O.useMemo(function(){return C?Ah([k],C):k},[k,C]),P=a(function(V){return I(V,M.current)},au),L=o(),z=k(L.getState(),M.current);return uce(function(){M.current=z},[z]),P};return{useQueryState:y,useQuerySubscription:g,useLazyQuerySubscription:m,useLazyQuery:function(x){var S=m(x),_=S[0],b=S[1],w=y(b,Um(Ja({},x),{skip:b===JS})),C=O.useMemo(function(){return{lastArg:b}},[b]);return O.useMemo(function(){return[_,w,C]},[_,w,C])},useQuery:function(x,S){var _=g(x,S),b=y(x,Ja({selectFromResult:x===Yl||S!=null&&S.skip?void 0:fce},S)),w=b.data,C=b.status,A=b.isLoading,T=b.isSuccess,M=b.isError,k=b.error;return O.useDebugValue({data:w,status:C,isLoading:A,isSuccess:T,isError:M,error:k}),O.useMemo(function(){return Ja(Ja({},b),_)},[b,_])}}}function p(v){return function(g){var m=g===void 0?{}:g,y=m.selectFromResult,x=y===void 0?cce:y,S=m.fixedCacheKey,_=t.endpoints[v],b=_.select,w=_.initiate,C=i(),A=O.useState(),T=A[0],M=A[1];O.useEffect(function(){return function(){T!=null&&T.arg.fixedCacheKey||T==null||T.reset()}},[T]);var k=O.useCallback(function(W){var ee=C(w(W,{fixedCacheKey:S}));return M(ee),ee},[C,w,S]),I=(T||{}).requestId,P=O.useMemo(function(){return Ah([b({fixedCacheKey:S,requestId:T==null?void 0:T.requestId})],x)},[b,T,x,S]),L=a(P,au),z=S==null?T==null?void 0:T.arg.originalArgs:void 0,V=O.useCallback(function(){n(function(){T&&M(void 0),S&&C(t.internalActions.removeMutationResult({requestId:I,fixedCacheKey:S}))})},[C,S,T,I]),N=L.endpointName,F=L.data,E=L.status,G=L.isLoading,j=L.isSuccess,B=L.isError,U=L.error;O.useDebugValue({endpointName:N,data:F,status:E,isLoading:G,isSuccess:j,isError:B,error:U});var X=O.useMemo(function(){return Um(Ja({},L),{originalArgs:z,reset:V})},[L,z,V]);return O.useMemo(function(){return[k,X]},[k,X])}}}var n0;(function(e){e.query="query",e.mutation="mutation"})(n0||(n0={}));function hce(e){return e.type===n0.query}function pce(e){return e.type===n0.mutation}function tb(e){return e.replace(e[0],e[0].toUpperCase())}function wg(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Object.assign.apply(Object,rce([e],t))}var vce=Symbol(),gce=function(e){var t=e===void 0?{}:e,r=t.batch,n=r===void 0?Hf.unstable_batchedUpdates:r,i=t.useDispatch,a=i===void 0?DG:i,o=t.useSelector,s=o===void 0?EM:o,l=t.useStore,u=l===void 0?PG:l,c=t.unstable__sideEffectsInRender,f=c===void 0?!1:c;return{name:vce,init:function(d,h,p){var v=h.serializeQueryArgs,g=d,m=dce({api:d,moduleOptions:{batch:n,useDispatch:a,useSelector:s,useStore:u,unstable__sideEffectsInRender:f},serializeQueryArgs:v,context:p}),y=m.buildQueryHooks,x=m.buildMutationHook,S=m.usePrefetch;return wg(g,{usePrefetch:S}),wg(p,{batch:n}),{injectEndpoint:function(_,b){if(hce(b)){var w=y(_),C=w.useQuery,A=w.useLazyQuery,T=w.useLazyQuerySubscription,M=w.useQueryState,k=w.useQuerySubscription;wg(g.endpoints[_],{useQuery:C,useLazyQuery:A,useLazyQuerySubscription:T,useQueryState:M,useQuerySubscription:k}),d["use"+tb(_)+"Query"]=C,d["useLazy"+tb(_)+"Query"]=A}else if(pce(b)){var I=x(_);wg(g.endpoints[_],{useMutation:I}),d["use"+tb(_)+"Mutation"]=I}}}}}},mce=Gue(tce(),gce());const Ac=e=>Array.isArray(e)?e.length:Object.keys(e).length,yce=e=>Ac(e)===0;function xce(e,t){return{...e,...t}}const Sce=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},px=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),QC=mce({baseQuery:Oue(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:jc}),getTasks:e.query({query:()=>"tasks",transformResponse:jc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:jc}),getLogs:e.query({query:()=>"logs",transformResponse:jc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Sce(iL(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:iL(t)})})})}),{useGetStatsQuery:bce,useGetTasksQuery:_ce,useGetExceptionsQuery:wce,useGetLogsQuery:Cce,useStartSwarmMutation:QG,useUpdateUserSettingsMutation:Tce}=QC;function Ace({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=QG(),i=a=>{e(),n(a)};return R.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[R.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),R.jsx(VM,{onSubmit:i,children:R.jsxs(it,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[R.jsx(wa,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),R.jsx(wa,{defaultValue:r||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Mce=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),kce=Ln(Mce)(Ace);function Ice(){const[e,t]=O.useState(!1);return R.jsxs(R.Fragment,{children:[R.jsx(qa,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),R.jsx(hx,{onClose:()=>t(!1),open:e,children:R.jsx(kce,{onSubmit:()=>t(!1)})})]})}var WM={},Pce=Ou;Object.defineProperty(WM,"__esModule",{value:!0});var jM=WM.default=void 0,Dce=Pce(Nu()),Rce=R,Lce=(0,Dce.default)((0,Rce.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");jM=WM.default=Lce;function UM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return R.jsxs(qV,{sx:a,children:[R.jsx(PM,{htmlFor:t,shrink:!0,children:e}),R.jsx(fG,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>R.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function Ece({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=VG(e),o=n?`${a} (${n})`:a;return r?R.jsx(UM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?R.jsx(XV,{control:R.jsx(UC,{defaultChecked:t}),label:o,name:e}):R.jsx(wa,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Oce({extraOptions:e}){return R.jsxs(NV,{children:[R.jsx(BV,{expandIcon:R.jsx(jM,{}),children:R.jsx(qe,{children:"Custom parameters"})}),R.jsx(zV,{children:R.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>R.jsx(Ece,{label:t,...r},`valid-parameter-${n}`))})})]})}var qM={},Nce=Ou;Object.defineProperty(qM,"__esModule",{value:!0});var JG=qM.default=void 0,zce=Nce(Nu()),Bce=R,$ce=(0,zce.default)((0,Bce.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");JG=qM.default=$ce;function Tv(e,{payload:t}){return xce(e,t)}const Fce=La,e6=li({name:"swarm",initialState:Fce,reducers:{setSwarm:Tv}}),YM=e6.actions,Vce=e6.reducer;function Gce({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return R.jsx(VM,{onSubmit:r,children:R.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[R.jsx(qe,{children:`${t.userClassName} Settings`}),R.jsx(UM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>R.jsx(wa,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:VG(a),name:a},`user-to-edit-${a}`)),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function Hce({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Tce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return R.jsxs(R.Fragment,{children:[R.jsx(it,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:R.jsxs(it,{sx:{maxHeight:"30vh",overflow:"auto"},children:[R.jsx(PM,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),R.jsx(ZV,{children:R.jsx(vG,{component:Wf,children:R.jsxs(hG,{children:[R.jsx(gG,{children:R.jsx(Ky,{children:R.jsx(zl,{colSpan:4,padding:"checkbox",children:R.jsx(UC,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),R.jsx(pG,{children:Object.entries(a).map(([g,m])=>R.jsxs(Ky,{hover:!0,children:[R.jsx(zl,{onClick:d(g),padding:"checkbox",children:R.jsx(UC,{checked:r.includes(g)})}),R.jsx(zl,{children:g}),R.jsx(zl,{children:R.jsx(qe,{variant:"subtitle2",children:m.host})}),R.jsx(zl,{align:"right",children:R.jsx(Cv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:R.jsx(JG,{})})})]},`user-class-${g}`))})]})})})]})}),R.jsx(hx,{onClose:()=>s(!1),open:o,children:l&&R.jsx(Gce,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const Wce={setSwarm:YM.setSwarm},jce=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Uce=Ln(jce,Wce)(Hce);function qce({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=QG(),[d,h]=O.useState(t),p=v=>{l({state:mi.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return R.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[R.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&R.jsx(it,{marginBottom:2,marginTop:2,children:R.jsx(Uce,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),R.jsx(VM,{onSubmit:p,children:R.jsxs(it,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&R.jsx(UM,{label:"Shape Class",name:"shapeClass",options:e}),R.jsx(wa,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),R.jsx(wa,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),R.jsx(wa,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),R.jsxs(NV,{children:[R.jsx(BV,{expandIcon:R.jsx(jM,{}),children:R.jsx(qe,{children:"Advanced options"})}),R.jsx(zV,{children:R.jsx(wa,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!yce(n)&&R.jsx(Oce,{extraOptions:n}),R.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Yce=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Xce={setSwarm:YM.setSwarm},t6=Ln(Yce,Xce)(qce);function Zce(){const[e,t]=O.useState(!1);return R.jsxs(R.Fragment,{children:[R.jsx(qa,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),R.jsx(hx,{onClose:()=>t(!1),open:e,children:R.jsx(t6,{})})]})}function Kce(){const e=()=>{fetch("stats/reset")};return R.jsx(qa,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Qce(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return R.jsx(qa,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Jce(){const e=Ys(({swarm:t})=>t.state);return e===mi.READY?null:e===mi.STOPPED?R.jsx(Zce,{}):R.jsxs(it,{sx:{display:"flex",columnGap:2},children:[R.jsx(Ice,{}),R.jsx(Qce,{}),R.jsx(Kce,{})]})}function efe(){return R.jsx(are,{position:"static",children:R.jsx(jf,{maxWidth:"xl",children:R.jsxs(bse,{sx:{display:"flex",justifyContent:"space-between"},children:[R.jsxs(on,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[R.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),R.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),R.jsxs(it,{sx:{display:"flex",columnGap:6},children:[R.jsx(Sue,{}),R.jsx(Jce,{}),R.jsx(BG,{})]})]})})})}function tfe({children:e}){return R.jsxs(R.Fragment,{children:[R.jsxs(it,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[R.jsx(efe,{}),R.jsx("main",{children:e})]}),R.jsx(mue,{})]})}function fh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const rfe={},r6=li({name:"notification",initialState:rfe,reducers:{setNotification:Tv}}),n6=r6.actions,nfe=r6.reducer;function ife(e,{key:t,shouldNotify:r}){const n=ql(n6.setNotification),i=Ys(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{Ac(e)>0&&Ac(e)<localStorage[a]&&(localStorage[a]=Ac(e)),Ac(e)>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=Ac(e))},[e])}const afe={logs:[]},i6=li({name:"logViewer",initialState:afe,reducers:{setLogs:Tv}}),ofe=i6.actions,sfe=i6.reducer,lfe=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function ufe(){const e=Ys(({swarm:o})=>o),t=ql(ofe.setLogs),{data:r,refetch:n}=Cce(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(lfe),[i]);return fh(n,5e3,{shouldRunInterval:e.state===mi.SPAWNING||e.state==mi.RUNNING}),ife(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var XM={},cfe=Ou;Object.defineProperty(XM,"__esModule",{value:!0});var a6=XM.default=void 0,ffe=cfe(Nu()),ML=R,dfe=(0,ffe.default)([(0,ML.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,ML.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");a6=XM.default=dfe;function hfe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const pfe=/[ \t\n\f\r]/g;function vfe(e){return typeof e=="object"?e.type==="text"?kL(e.value):!1:kL(e)}function kL(e){return e.replace(pfe,"")===""}class Av{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Av.prototype.property={};Av.prototype.normal={};Av.prototype.space=null;function o6(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Av(r,n,t)}function JC(e){return e.toLowerCase()}class ki{constructor(t,r){this.property=t,this.attribute=r}}ki.prototype.space=null;ki.prototype.boolean=!1;ki.prototype.booleanish=!1;ki.prototype.overloadedBoolean=!1;ki.prototype.number=!1;ki.prototype.commaSeparated=!1;ki.prototype.spaceSeparated=!1;ki.prototype.commaOrSpaceSeparated=!1;ki.prototype.mustUseProperty=!1;ki.prototype.defined=!1;let gfe=0;const Ke=zu(),cr=zu(),s6=zu(),se=zu(),Et=zu(),of=zu(),Nn=zu();function zu(){return 2**++gfe}const eT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:cr,commaOrSpaceSeparated:Nn,commaSeparated:of,number:se,overloadedBoolean:s6,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),rb=Object.keys(eT);class ZM extends ki{constructor(t,r,n,i){let a=-1;if(super(t,r),IL(this,"space",i),typeof n=="number")for(;++a<rb.length;){const o=rb[a];IL(this,rb[a],(n&eT[o])===eT[o])}}}ZM.prototype.defined=!0;function IL(e,t,r){r&&(e[t]=r)}const mfe={}.hasOwnProperty;function Uf(e){const t={},r={};let n;for(n in e.properties)if(mfe.call(e.properties,n)){const i=e.properties[n],a=new ZM(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[JC(n)]=n,r[JC(a.attribute)]=n}return new Av(t,r,e.space)}const l6=Uf({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u6=Uf({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function c6(e,t){return t in e?e[t]:t}function f6(e,t){return c6(e,t.toLowerCase())}const d6=Uf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:f6,properties:{xmlns:null,xmlnsXLink:null}}),h6=Uf({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cr,ariaAutoComplete:null,ariaBusy:cr,ariaChecked:cr,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:cr,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:cr,ariaFlowTo:Et,ariaGrabbed:cr,ariaHasPopup:null,ariaHidden:cr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:se,ariaLive:null,ariaModal:cr,ariaMultiLine:cr,ariaMultiSelectable:cr,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:cr,ariaReadOnly:cr,ariaRelevant:null,ariaRequired:cr,ariaRoleDescription:Et,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:cr,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null}}),yfe=Uf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:f6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:of,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:Et,autoFocus:Ke,autoPlay:Ke,blocking:Et,capture:Ke,charSet:null,checked:Ke,cite:null,className:Et,cols:se,colSpan:null,content:null,contentEditable:cr,controls:Ke,controlsList:Et,coords:se|of,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:s6,draggable:cr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:Et,height:se,hidden:Ke,high:se,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:Et,itemRef:Et,itemScope:Ke,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ke,optimum:se,pattern:null,ping:Et,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:Et,required:Ke,reversed:Ke,rows:se,rowSpan:se,sandbox:Et,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:cr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:cr,width:se,wrap:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:cr,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:se,security:null,unselectable:null}}),xfe=Uf({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:c6,properties:{about:Nn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:Et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:of,g2:of,glyphName:of,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:Nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:se,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nn,rev:Nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nn,requiredFeatures:Nn,requiredFonts:Nn,requiredFormats:Nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:Nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Sfe=/^data[-\w.:]+$/i,PL=/-[a-z]/g,bfe=/[A-Z]/g;function _fe(e,t){const r=JC(t);let n=t,i=ki;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Sfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(PL,Cfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!PL.test(a)){let o=a.replace(bfe,wfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ZM}return new i(n,t)}function wfe(e){return"-"+e.toLowerCase()}function Cfe(e){return e.charAt(1).toUpperCase()}const Tfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Afe=o6([u6,l6,d6,h6,yfe],"html"),p6=o6([u6,l6,d6,h6,xfe],"svg");function Mfe(e){return e.join(" ").trim()}var KM={exports:{}},DL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kfe=/\n/g,Ife=/^\s*/,Pfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dfe=/^:\s*/,Rfe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Lfe=/^[;\s]*/,Efe=/^\s+|\s+$/g,Ofe=`
159
159
  `,RL="/",LL="*",Bl="",Nfe="comment",zfe="declaration",Bfe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(kfe);v&&(r+=v.length);var g=p.lastIndexOf(Ofe);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Ife)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(RL!=e.charAt(0)||LL!=e.charAt(1))){for(var v=2;Bl!=e.charAt(v)&&(LL!=e.charAt(v)||RL!=e.charAt(v+1));)++v;if(v+=2,Bl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:Nfe,comment:g})}}function d(){var p=a(),v=l(Pfe);if(v){if(f(),!l(Dfe))return s("property missing ':'");var g=l(Rfe),m=p({type:zfe,property:EL(v[0].replace(DL,Bl)),value:g?EL(g[0].replace(DL,Bl)):Bl});return l(Lfe),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function EL(e){return e?e.replace(Efe,Bl):Bl}var $fe=Bfe;function v6(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=$fe(e),a=typeof t=="function",o,s,l=0,u=i.length;l<u;l++)n=i[l],o=n.property,s=n.value,a?t(o,s,n):s&&(r||(r={}),r[o]=s);return r}KM.exports=v6;KM.exports.default=v6;var Ffe=KM.exports;const Vfe=dv(Ffe),g6=m6("end"),QM=m6("start");function m6(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Gfe(e){const t=QM(e),r=g6(e);if(t&&r)return{start:t,end:r}}function Hh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?OL(e.position):"start"in e||"end"in e?OL(e):"line"in e||"column"in e?tT(e):""}function tT(e){return NL(e&&e.line)+":"+NL(e&&e.column)}function OL(e){return tT(e&&e.start)+"-"+tT(e&&e.end)}function NL(e){return e&&typeof e=="number"?e:1}class pn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Hh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}pn.prototype.file="";pn.prototype.name="";pn.prototype.reason="";pn.prototype.message="";pn.prototype.stack="";pn.prototype.column=void 0;pn.prototype.line=void 0;pn.prototype.ancestors=void 0;pn.prototype.cause=void 0;pn.prototype.fatal=void 0;pn.prototype.place=void 0;pn.prototype.ruleId=void 0;pn.prototype.source=void 0;const JM={}.hasOwnProperty,Hfe=new Map,Wfe=/[A-Z]/g,jfe=/-([a-z])/g,Ufe=new Set(["table","tbody","thead","tfoot","tr"]),qfe=new Set(["td","th"]);function Yfe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Zfe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Xfe(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?p6:Afe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=y6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function y6(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=p6,e.schema=i),e.ancestors.push(t);let a=Kfe(e,t);const o=Qfe(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Ufe.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!vfe(l):!0})),JM.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Xfe(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Zfe(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=QM(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Kfe(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Hfe;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=y6(e,a,o);s!==void 0&&r.push(s)}return r}function Qfe(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&JM.call(r.properties,i)){const o=Jfe(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&qfe.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function Jfe(e,t,r,n){const i=_fe(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?hfe(n):Mfe(n)),i.property==="style"){let a=typeof n=="object"?n:ede(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=tde(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Tfe[i.property]||i.property:i.attribute,n]}}function ede(e,t,r){const n={};try{Vfe(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new pn("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(jfe,nde)),n[s]=o}}function tde(e){const t={};let r;for(r in e)JM.call(e,r)&&(t[rde(r)]=e[r]);return t}function rde(e){let t=e.replace(Wfe,ide);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nde(e,t){return t.toUpperCase()}function ide(e){return"-"+e.toLowerCase()}const nb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ade=Xs(/\p{P}/u),ya=Xs(/[A-Za-z]/),Vn=Xs(/[\dA-Za-z]/),ode=Xs(/[#-'*+\--9=?A-Z^-~]/);function rT(e){return e!==null&&(e<32||e===127)}const nT=Xs(/\d/),sde=Xs(/[\dA-Fa-f]/),x6=Xs(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function In(e){return e!==null&&(e<0||e===32)}function mt(e){return e===-2||e===-1||e===32}function lde(e){return x6(e)||ade(e)}const ude=Xs(/\s/);function Xs(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}const cde={'"':"quot","&":"amp","<":"lt",">":"gt"};function fde(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+cde[r]+";"}}function dde(e,t){const r=fde(Bu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Bu(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Vn(e.charCodeAt(r+1))&&Vn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const hde={};function pde(e,t){const r=t||hde,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return S6(e,n,i)}function S6(e,t,r){if(vde(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zL(e.children,t,r)}return Array.isArray(e)?zL(e,t,r):""}function zL(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=S6(e[i],t,r);return n.join("")}function vde(e){return!!(e&&typeof e=="object")}const BL=document.createElement("i");function ek(e){const t="&"+e+";";BL.innerHTML=t;const r=BL.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function $a(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function fi(e,t){return e.length>0?($a(e,e.length,0,t),e):t}const $L={}.hasOwnProperty;function gde(e){const t={};let r=-1;for(;++r<e.length;)mde(t,e[r]);return t}function mde(e,t){let r;for(r in t){const i=($L.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){$L.call(i,o)||(i[o]=[]);const s=a[o];yde(i[o],Array.isArray(s)?s:s?[s]:[])}}}function yde(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);$a(e,0,0,n)}function b6(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function sf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return mt(l)?(e.enter(r),s(l)):t(l)}function s(l){return mt(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const xde={tokenize:Sde};function Sde(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Nt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return je(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const bde={tokenize:_de},FL={tokenize:wde};function _de(e){const t=this,r=[];let n=0,i,a,o;return s;function s(x){if(n<r.length){const S=r[n];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(x)}return u(x)}function l(x){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const S=t.events.length;let _=S,b;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){b=t.events[_][1].end;break}m(n);let w=S;for(;w<t.events.length;)t.events[w][1].end=Object.assign({},b),w++;return $a(t.events,_+1,0,t.events.slice(S)),t.events.length=w,u(x)}return s(x)}function u(x){if(n===r.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return p(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(FL,c,f)(x)}function c(x){return i&&y(),m(n),d(x)}function f(x){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(x)}function d(x){return t.containerState={},e.attempt(FL,h,p)(x)}function h(x){return n++,r.push([t.currentConstruct,t.containerState]),d(x)}function p(x){if(x===null){i&&y(),m(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(x)}function v(x){if(x===null){g(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return je(x)?(e.consume(x),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(x),v)}function g(x,S){const _=t.sliceStream(x);if(S&&_.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(_),t.parser.lazy[x.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;b<t.events.length;)t.events[b][1].end=Object.assign({},T),b++;$a(t.events,C+1,0,t.events.slice(w)),t.events.length=b}}function m(x){let S=r.length;for(;S-- >x;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wde(e,t,r){return Nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function VL(e){if(e===null||In(e)||ude(e))return 1;if(lde(e))return 2}function tk(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const iT={name:"attention",tokenize:Tde,resolveAll:Cde};function Cde(e,t){let r=-1,n,i,a,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);GL(f,-l),GL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=fi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=fi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=fi(u,tk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=fi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=fi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,$a(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Tde(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=VL(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=VL(l),f=!c||c===2&&i||r.includes(l),d=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function GL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ade={name:"autolink",tokenize:Mde};function Mde(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return ya(h)?(e.consume(h),o):u(h)}function o(h){return h===43||h===45||h===46||Vn(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Vn(h))&&n++<32?(e.consume(h),s):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||rT(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):ode(h)?(e.consume(h),u):r(h)}function c(h){return Vn(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Vn(h))&&n++<63){const p=h===45?d:f;return e.consume(h),p}return r(h)}}const vx={tokenize:kde,partial:!0};function kde(e,t,r){return n;function n(a){return mt(a)?Nt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||je(a)?t(a):r(a)}}const _6={name:"blockQuote",tokenize:Ide,continuation:{tokenize:Pde},exit:Dde};function Ide(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return mt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Pde(e,t,r){const n=this;return i;function i(o){return mt(o)?Nt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(_6,t,r)(o)}}function Dde(e){e.exit("blockQuote")}const w6={name:"characterEscape",tokenize:Rde};function Rde(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return x6(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const C6={name:"characterReference",tokenize:Lde};function Lde(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Vn,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=sde,c):(e.enter("characterReferenceValue"),a=7,o=nT,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Vn&&!ek(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const HL={tokenize:Ode,partial:!0},WL={name:"codeFenced",tokenize:Ede,concrete:!0};function Ede(e,t,r){const n=this,i={tokenize:_,partial:!0};let a=0,o=0,s;return l;function l(b){return u(b)}function u(b){const w=n.events[n.events.length-1];return a=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===s?(o++,e.consume(b),c):o<3?r(b):(e.exit("codeFencedFenceSequence"),mt(b)?Nt(e,f,"whitespace")(b):f(b))}function f(b){return b===null||je(b)?(e.exit("codeFencedFence"),n.interrupt?t(b):e.check(HL,v,S)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||je(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(b)):mt(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nt(e,h,"whitespace")(b)):b===96&&b===s?r(b):(e.consume(b),d)}function h(b){return b===null||je(b)?f(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||je(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(b)):b===96&&b===s?r(b):(e.consume(b),p)}function v(b){return e.attempt(i,S,g)(b)}function g(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return a>0&&mt(b)?Nt(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||je(b)?e.check(HL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||je(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(L){return b.enter("lineEnding"),b.consume(L),b.exit("lineEnding"),M}function M(L){return b.enter("codeFencedFence"),mt(L)?Nt(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L)}function k(L){return L===s?(b.enter("codeFencedFenceSequence"),I(L)):C(L)}function I(L){return L===s?(A++,b.consume(L),I):A>=o?(b.exit("codeFencedFenceSequence"),mt(L)?Nt(b,P,"whitespace")(L):P(L)):C(L)}function P(L){return L===null||je(L)?(b.exit("codeFencedFence"),w(L)):C(L)}}}function Ode(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const ib={name:"codeIndented",tokenize:zde},Nde={tokenize:Bde,partial:!0};function zde(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Nt(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):je(u)?e.attempt(Nde,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||je(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Bde(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):je(o)?i(o):r(o)}}const $de={name:"codeText",tokenize:Gde,resolve:Fde,previous:Vde};function Fde(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function Vde(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Gde(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):je(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||je(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function T6(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Hde(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),$a(e,i,r-i+1,s))}}return!u}function Hde(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,d=-1,h=r,p=0,v=0;const g=[v];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(v=d+1,g.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const m=s.slice(g[d],g[d+1]),y=a.pop();l.unshift([y,y+m.length-1]),$a(e,y,2,m)}for(d=-1;++d<l.length;)u[p+l[d][0]]=p+l[d][1],p+=l[d][1]-l[d][0]-1;return u}const Wde={tokenize:qde,resolve:Ude},jde={tokenize:Yde,partial:!0};function Ude(e){return T6(e),e}function qde(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):je(s)?e.check(jde,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Yde(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Nt(e,a,"linePrefix")}function a(o){if(o===null||je(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function A6(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||rT(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||je(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||In(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c<u&&m===40?(e.consume(m),c++,v):m===41?(e.consume(m),c--,v):m===null||m===32||m===40||rT(m)?r(m):(e.consume(m),m===92?g:v)}function g(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function M6(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):je(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||je(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!mt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function k6(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):je(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||je(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Wh(e,t){let r;return n;function n(i){return je(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):mt(i)?Nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Xde={name:"definition",tokenize:Kde},Zde={tokenize:Qde,partial:!0};function Kde(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return M6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=sf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return In(h)?Wh(e,u)(h):u(h)}function u(h){return A6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Zde,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||je(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Qde(e,t,r){return n;function n(s){return In(s)?Wh(e,i)(s):r(s)}function i(s){return k6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return mt(s)?Nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||je(s)?t(s):r(s)}}const Jde={name:"hardBreakEscape",tokenize:ehe};function ehe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return je(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const the={name:"headingAtx",tokenize:nhe,resolve:rhe};function rhe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},$a(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function nhe(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||In(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||je(c)?(e.exit("atxHeading"),t(c)):mt(c)?Nt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||In(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const ihe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jL=["pre","script","style","textarea"],ahe={name:"htmlFlow",tokenize:uhe,resolveTo:lhe,concrete:!0},ohe={tokenize:fhe,partial:!0},she={tokenize:che,partial:!0};function lhe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function uhe(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:E):ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):ya(B)?(e.consume(B),i=4,n.interrupt?t:E):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:E):r(B)}function p(B){const U="CDATA[";return B===U.charCodeAt(s++)?(e.consume(B),s===U.length?n.interrupt?t:k:p):r(B)}function v(B){return ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||In(B)){const U=B===47,X=o.toLowerCase();return!U&&!a&&jL.includes(X)?(i=1,n.interrupt?t(B):k(B)):ihe.includes(o.toLowerCase())?(i=6,U?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Vn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return mt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||ya(B)?(e.consume(B),S):mt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||Vn(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):mt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):mt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||je(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||In(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||mt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||je(B)?k(B):mt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),V):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),E):B===93&&i===5?(e.consume(B),F):je(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ohe,j,I)(B)):B===null||je(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(she,P,j)(B)}function P(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),L}function L(B){return B===null||je(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),E):k(B)}function V(B){return B===47?(e.consume(B),o="",N):k(B)}function N(B){if(B===62){const U=o.toLowerCase();return jL.includes(U)?(e.consume(B),G):k(B)}return ya(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):k(B)}function F(B){return B===93?(e.consume(B),E):k(B)}function E(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),E):k(B)}function G(B){return B===null||je(B)?(e.exit("htmlFlowData"),j(B)):(e.consume(B),G)}function j(B){return e.exit("htmlFlow"),t(B)}}function che(e,t,r){const n=this;return i;function i(o){return je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function fhe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(vx,t,r)}}const dhe={name:"htmlText",tokenize:hhe};function hhe(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),_):E===63?(e.consume(E),x):ya(E)?(e.consume(E),C):r(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),a=0,p):ya(E)?(e.consume(E),y):r(E)}function c(E){return E===45?(e.consume(E),h):r(E)}function f(E){return E===null?r(E):E===45?(e.consume(E),d):je(E)?(o=f,V(E)):(e.consume(E),f)}function d(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?z(E):E===45?d(E):f(E)}function p(E){const G="CDATA[";return E===G.charCodeAt(a++)?(e.consume(E),a===G.length?v:p):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),g):je(E)?(o=v,V(E)):(e.consume(E),v)}function g(E){return E===93?(e.consume(E),m):v(E)}function m(E){return E===62?z(E):E===93?(e.consume(E),m):v(E)}function y(E){return E===null||E===62?z(E):je(E)?(o=y,V(E)):(e.consume(E),y)}function x(E){return E===null?r(E):E===63?(e.consume(E),S):je(E)?(o=x,V(E)):(e.consume(E),x)}function S(E){return E===62?z(E):x(E)}function _(E){return ya(E)?(e.consume(E),b):r(E)}function b(E){return E===45||Vn(E)?(e.consume(E),b):w(E)}function w(E){return je(E)?(o=w,V(E)):mt(E)?(e.consume(E),w):z(E)}function C(E){return E===45||Vn(E)?(e.consume(E),C):E===47||E===62||In(E)?A(E):r(E)}function A(E){return E===47?(e.consume(E),z):E===58||E===95||ya(E)?(e.consume(E),T):je(E)?(o=A,V(E)):mt(E)?(e.consume(E),A):z(E)}function T(E){return E===45||E===46||E===58||E===95||Vn(E)?(e.consume(E),T):M(E)}function M(E){return E===61?(e.consume(E),k):je(E)?(o=M,V(E)):mt(E)?(e.consume(E),M):A(E)}function k(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,I):je(E)?(o=k,V(E)):mt(E)?(e.consume(E),k):(e.consume(E),P)}function I(E){return E===i?(e.consume(E),i=void 0,L):E===null?r(E):je(E)?(o=I,V(E)):(e.consume(E),I)}function P(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||In(E)?A(E):(e.consume(E),P)}function L(E){return E===47||E===62||In(E)?A(E):r(E)}function z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function V(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),N}function N(E){return mt(E)?Nt(e,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):F(E)}function F(E){return e.enter("htmlTextData"),o(E)}}const rk={name:"labelEnd",tokenize:xhe,resolveTo:yhe,resolveAll:mhe},phe={tokenize:She},vhe={tokenize:bhe},ghe={tokenize:_he};function mhe(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function yhe(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=fi(s,e.slice(a+1,a+n+3)),s=fi(s,[["enter",c,t]]),s=fi(s,tk(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=fi(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=fi(s,e.slice(o+1)),s=fi(s,[["exit",l,t]]),$a(e,a,e.length,s),e}function xhe(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?f(d):(o=n.parser.defined.includes(sf(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(phe,c,o?c:f)(d):d===91?e.attempt(vhe,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt(ghe,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function She(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return In(f)?Wh(e,a)(f):a(f)}function a(f){return f===41?c(f):A6(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return In(f)?Wh(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?k6(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return In(f)?Wh(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function bhe(e,t,r){const n=this;return i;function i(s){return M6.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(sf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function _he(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const whe={name:"labelStartImage",tokenize:Che,resolveAll:rk.resolveAll};function Che(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const The={name:"labelStartLink",tokenize:Ahe,resolveAll:rk.resolveAll};function Ahe(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const ab={name:"lineEnding",tokenize:Mhe};function Mhe(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Nt(e,t,"linePrefix")}}const qm={name:"thematicBreak",tokenize:khe};function khe(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||je(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),mt(u)?Nt(e,s,"whitespace")(u):s(u))}}const mn={name:"list",tokenize:Dhe,continuation:{tokenize:Rhe},exit:Ehe},Ihe={tokenize:Ohe,partial:!0},Phe={tokenize:Lhe,partial:!0};function Dhe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:nT(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qm,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return nT(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(vx,n.interrupt?r:c,e.attempt(Ihe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return mt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Rhe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(vx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!mt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Phe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(mn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Lhe(e,t,r){const n=this;return Nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Ehe(e){e.exit(this.containerState.type)}function Ohe(e,t,r){const n=this;return Nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!mt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const UL={name:"setextUnderline",tokenize:zhe,resolveTo:Nhe};function Nhe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function zhe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),mt(u)?Nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||je(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Bhe={tokenize:$he};function $he(e){const t=this,r=e.attempt(vx,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wde,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Fhe={resolveAll:P6()},Vhe=I6("string"),Ghe=I6("text");function I6(e){return{tokenize:t,resolveAll:P6(e==="text"?Hhe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function P6(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function Hhe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function Whe(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:y,enter:x,exit:S,attempt:w(_),check:w(b),interrupt:w(b,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:d,now:p,defineSkip:v,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(M){return o=fi(o,M),g(),o[o.length-1]!==null?[]:(C(t,0),u.events=tk(a,u.events,u),u.events)}function d(M,k){return Uhe(h(M),k)}function h(M){return jhe(o,M)}function p(){const{line:M,column:k,offset:I,_index:P,_bufferIndex:L}=n;return{line:M,column:k,offset:I,_index:P,_bufferIndex:L}}function v(M){i[M.line]=M.column,T()}function g(){let M;for(;n._index<o.length;){const k=o[n._index];if(typeof k=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<k.length;)m(k.charCodeAt(n._bufferIndex));else m(k)}}function m(M){c=c(M)}function y(M){je(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,T()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=M}function x(M,k){const I=k||{};return I.type=M,I.start=p(),u.events.push(["enter",I,u]),s.push(I),I}function S(M){const k=s.pop();return k.end=p(),u.events.push(["exit",k,u]),k}function _(M,k){C(M,k.from)}function b(M,k){k.restore()}function w(M,k){return I;function I(P,L,z){let V,N,F,E;return Array.isArray(P)?j(P):"tokenize"in P?j([P]):G(P);function G(W){return ee;function ee(te){const ie=te!==null&&W[te],re=te!==null&&W.null,Q=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(re)?re:re?[re]:[]];return j(Q)(te)}}function j(W){return V=W,N=0,W.length===0?z:B(W[N])}function B(W){return ee;function ee(te){return E=A(),F=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?X():W.tokenize.call(k?Object.assign(Object.create(u),k):u,l,U,X)(te)}}function U(W){return M(F,E),L}function X(W){return E.restore(),++N<V.length?B(V[N]):z}}}function C(M,k){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&$a(u.events,k,u.events.length-k,M.resolve(u.events.slice(k),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function A(){const M=p(),k=u.previous,I=u.currentConstruct,P=u.events.length,L=Array.from(s);return{restore:z,from:P};function z(){n=M,u.previous=k,u.currentConstruct=I,u.events.length=P,s=L,T()}}function T(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function jhe(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Uhe(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
160
160
  `;break}case-3:{o=`\r
161
161
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const qhe={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:_6},Yhe={91:Xde},Xhe={[-2]:ib,[-1]:ib,32:ib},Zhe={35:the,42:qm,45:[UL,qm],60:ahe,61:UL,95:qm,96:WL,126:WL},Khe={38:C6,92:w6},Qhe={[-5]:ab,[-4]:ab,[-3]:ab,33:whe,38:C6,42:iT,60:[Ade,dhe],91:The,92:[Jde,w6],93:rk,95:iT,96:$de},Jhe={null:[iT,Fhe]},epe={null:[42,95]},tpe={null:[]},rpe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:epe,contentInitial:Yhe,disable:tpe,document:qhe,flow:Zhe,flowInitial:Xhe,insideSpan:Jhe,string:Khe,text:Qhe},Symbol.toStringTag,{value:"Module"}));function npe(e){const r=gde([rpe,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(xde),document:i(bde),flow:i(Bhe),string:i(Vhe),text:i(Ghe)};return n;function i(a){return o;function o(s){return Whe(n,a,s)}}}function ipe(e){for(;!T6(e););return e}const qL=/[\0\t\n\r]/g;function ape(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(qL.lastIndex=f,u=qL.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const ope=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function spe(e){return e.replace(ope,lpe)}function lpe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return b6(r.slice(a?2:1),a?16:10)}return ek(r)||e}const D6={}.hasOwnProperty;function upe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),cpe(r)(ipe(npe(r).document().write(ape()(e,t,!0))))}function cpe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ot),autolinkProtocol:A,autolinkEmail:A,atxHeading:a(he),blockQuote:a(ie),characterEscape:A,characterReference:A,codeFenced:a(re),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(re,o),codeText:a(Q,o),codeTextData:A,data:A,codeFlowValue:A,definition:a(J),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(de),hardBreakEscape:a(Pe),hardBreakTrailing:a(Pe),htmlFlow:a(Xe,o),htmlFlowData:A,htmlText:a(Xe,o),htmlTextData:A,image:a(Ue),label:o,link:a(ot),listItem:a(kt),listItemValue:d,listOrdered:a(st,f),listUnordered:a(st),paragraph:a($e),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(he),strong:a(It),thematicBreak:a(Pt)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:te,autolinkProtocol:ee,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:W,codeFenced:l(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:T,codeIndented:l(m),codeText:l(L),codeTextData:T,data:T,definition:l(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(I),htmlFlowData:T,htmlText:l(P),htmlTextData:T,image:l(V),label:F,labelText:N,lineEnding:M,link:l(z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:E,resourceTitleString:G,resource:j,setextHeading:l(C),setextHeadingLineSequence:w,setextHeadingText:b,strong:l(),thematicBreak:l()}};R6(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(K){let ue={type:"root",children:[]};const Re={stack:[ue],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},Ce=[];let pe=-1;for(;++pe<K.length;)if(K[pe][1].type==="listOrdered"||K[pe][1].type==="listUnordered")if(K[pe][0]==="enter")Ce.push(pe);else{const Vt=Ce.pop();pe=i(K,Vt,pe)}for(pe=-1;++pe<K.length;){const Vt=t[K[pe][0]];D6.call(Vt,K[pe][1].type)&&Vt[K[pe][1].type].call(Object.assign({sliceSerialize:K[pe][2].sliceSerialize},Re),K[pe][1])}if(Re.tokenStack.length>0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||YL).call(Re,void 0,Vt[0])}for(ue.position={start:Bo(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Bo(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)ue=t.transforms[pe](ue)||ue;return ue}function i(K,ue,Re){let Ce=ue-1,pe=-1,Vt=!1,br,Ae,ct,Rt;for(;++Ce<=Re;){const ve=K[Ce];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ve[0]==="enter"?pe++:pe--,Rt=void 0;break}case"lineEndingBlank":{ve[0]==="enter"&&(br&&!Rt&&!pe&&!ct&&(ct=Ce),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!pe&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||pe===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(br){let De=Ce;for(Ae=void 0;De--;){const Ze=K[De];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;Ae&&(K[Ae][1].type="lineEndingBlank",Vt=!0),Ze[1].type="lineEnding",Ae=De}else if(!(Ze[1].type==="linePrefix"||Ze[1].type==="blockQuotePrefix"||Ze[1].type==="blockQuotePrefixWhitespace"||Ze[1].type==="blockQuoteMarker"||Ze[1].type==="listItemIndent"))break}ct&&(!Ae||ct<Ae)&&(br._spread=!0),br.end=Object.assign({},Ae?K[Ae][1].start:ve[1].end),K.splice(Ae||Ce,0,["exit",br,ve[2]]),Ce++,Re++}if(ve[1].type==="listItemPrefix"){const De={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};br=De,K.splice(Ce,0,["enter",De,ve[2]]),Ce++,Re++,ct=void 0,Rt=!0}}}return K[ue][1]._spread=Vt,Re}function a(K,ue){return Re;function Re(Ce){s.call(this,K(Ce),Ce),ue&&ue.call(this,Ce)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(K,ue,Re){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ue,Re]),K.position={start:Bo(ue.start),end:void 0}}function l(K){return ue;function ue(Re){K&&K.call(this,Re),u.call(this,Re)}}function u(K,ue){const Re=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==K.type&&(ue?ue.call(this,K,Ce[0]):(Ce[1]||YL).call(this,K,Ce[0]));else throw new Error("Cannot close `"+K.type+"` ("+Hh({start:K.start,end:K.end})+"): it’s not open");Re.position.end=Bo(K.end)}function c(){return pde(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(K){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function h(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=K}function p(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=K}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K.replace(/(\r?\n|\r)$/g,"")}function y(K){const ue=this.resume(),Re=this.stack[this.stack.length-1];Re.label=ue,Re.identifier=sf(this.sliceSerialize(K)).toLowerCase()}function x(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.title=K}function S(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.url=K}function _(K){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Re=this.sliceSerialize(K).length;ue.depth=Re}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function w(K){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function A(K){const Re=this.stack[this.stack.length-1].children;let Ce=Re[Re.length-1];(!Ce||Ce.type!=="text")&&(Ce=qt(),Ce.position={start:Bo(K.start),end:void 0},Re.push(Ce)),this.stack.push(Ce)}function T(K){const ue=this.stack.pop();ue.value+=this.sliceSerialize(K),ue.position.end=Bo(K.end)}function M(K){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=ue.children[ue.children.length-1];Re.position.end=Bo(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ue.type)&&(A.call(this,K),T.call(this,K))}function k(){this.data.atHardBreak=!0}function I(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function P(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function L(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ue,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function V(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ue,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function N(K){const ue=this.sliceSerialize(K),Re=this.stack[this.stack.length-2];Re.label=spe(ue),Re.identifier=sf(ue).toLowerCase()}function F(){const K=this.stack[this.stack.length-1],ue=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const Ce=K.children;Re.children=Ce}else Re.alt=ue}function E(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.url=K}function G(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.title=K}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(K){const ue=this.resume(),Re=this.stack[this.stack.length-1];Re.label=ue,Re.identifier=sf(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function X(K){this.data.characterReferenceType=K.type}function W(K){const ue=this.sliceSerialize(K),Re=this.data.characterReferenceType;let Ce;Re?(Ce=b6(ue,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=ek(ue);const pe=this.stack.pop();pe.value+=Ce,pe.position.end=Bo(K.end)}function ee(K){T.call(this,K);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(K)}function te(K){T.call(this,K);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(K)}function ie(){return{type:"blockquote",children:[]}}function re(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function de(){return{type:"emphasis",children:[]}}function he(){return{type:"heading",depth:0,children:[]}}function Pe(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function st(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function kt(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function $e(){return{type:"paragraph",children:[]}}function It(){return{type:"strong",children:[]}}function qt(){return{type:"text",value:""}}function Pt(){return{type:"thematicBreak"}}}function Bo(e){return{line:e.line,column:e.column,offset:e.offset}}function R6(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?R6(e,n):fpe(e,n)}}function fpe(e,t){let r;for(r in t)if(D6.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function YL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Hh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Hh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Hh({start:t.start,end:t.end})+") is still open")}function dpe(e){const t=this;t.parser=r;function r(n){return upe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function hpe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function ppe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
@@ -7,7 +7,7 @@
7
7
  <meta name="theme-color" content="#000000" />
8
8
 
9
9
  <title>Locust</title>
10
- <script type="module" crossorigin src="/assets/index-fcdc76c8.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-af38c28c.js"></script>
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
@@ -7,7 +7,7 @@
7
7
  <meta name="theme-color" content="#000000" />
8
8
 
9
9
  <title>Locust</title>
10
- <script type="module" crossorigin src="/assets/index-fcdc76c8.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-af38c28c.js"></script>
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.23.2.dev4
3
+ Version: 2.23.2.dev7
4
4
  Summary: Developer friendly load testing framework
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://locust.io/
@@ -1,6 +1,6 @@
1
1
  locust/__init__.py,sha256=g6oA-Ba_hs3gLWVf5MKJ1mvfltI8MFnDWG8qslqm8yg,1402
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=U5h7RZ4lrWky0kGrjRxiNreUebIbN3CEChfqgsuY1KM,426
3
+ locust/_version.py,sha256=fWSMiMyNZOxm1y8bqyM9KOWZH_z-hJA-OXtTNrwuJ4U,426
4
4
  locust/argument_parser.py,sha256=M30KidSKDFh4VYFDN4AJgEuCOYeQP-Z6xvuk1tzLtco,30762
5
5
  locust/clients.py,sha256=o3G9welWb-zhgDUM5TKnMVFMJckr_m0FI8Dxn3OtBUA,14810
6
6
  locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
@@ -89,15 +89,15 @@ locust/util/exception_handler.py,sha256=jTMyBq2a0O07fRjmqGkheyaPj58tUgnbbcjoesKG
89
89
  locust/util/load_locustfile.py,sha256=hn70KcIG8jHmZyuKv2pcEmwgWtOEu24Efeji1KRYNUE,2964
90
90
  locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
91
91
  locust/util/timespan.py,sha256=rrMk4AR5t9HA59GktWCvOsYBDhkKAwLkk0Orj-l2EGY,997
92
- locust/webui/dist/auth.html,sha256=EJ6cdmS8s3LJ8PtUpoUSWFvaoXOOKtL4cyCGeUGsCE0,499
93
- locust/webui/dist/index.html,sha256=KWfnA6CAVIzgirm2hxM1rlAjMJqvC_jaP_n9j9rf6ao,899
92
+ locust/webui/dist/auth.html,sha256=DqfEKXfaj0nYWlG16iPwbNkiXjP7FWbEiARQSGpcSNw,499
93
+ locust/webui/dist/index.html,sha256=FLEM6Muu9hUJNEJ6lHE-czIAwHS3rCuPHx6kLATc4Ok,899
94
94
  locust/webui/dist/report.html,sha256=Vyi9LIAjBNiAsvn6LVFkdAZ9R4Fa8UjHnqscjAeOFp8,512
95
95
  locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
96
- locust/webui/dist/assets/index-fcdc76c8.js,sha256=NqqejysuBUAihrMQGbby-wUZSq31RxpSnSXzo-3yoHQ,1643482
96
+ locust/webui/dist/assets/index-af38c28c.js,sha256=PlsSpy-k-HUYgAakOX_2iMhGupfJTFtskbrklV-ef4k,1643609
97
97
  locust/webui/dist/assets/logo.png,sha256=lPCYhpDsPXYY3gUMlq3bzABI5WBtdBOvtay8R9hRFv4,2943
98
- locust-2.23.2.dev4.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
99
- locust-2.23.2.dev4.dist-info/METADATA,sha256=Yp3GOLu6UZwynBjxWsv9UOAFt9JtRUb2WKjoqxCqVSo,7140
100
- locust-2.23.2.dev4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
101
- locust-2.23.2.dev4.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
102
- locust-2.23.2.dev4.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
103
- locust-2.23.2.dev4.dist-info/RECORD,,
98
+ locust-2.23.2.dev7.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
99
+ locust-2.23.2.dev7.dist-info/METADATA,sha256=TPCu00hi73wQiWSjLf6QBUsVl2bFYAgGpVqlNIqYfVM,7140
100
+ locust-2.23.2.dev7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
101
+ locust-2.23.2.dev7.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
102
+ locust-2.23.2.dev7.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
103
+ locust-2.23.2.dev7.dist-info/RECORD,,