var g6=Object.create;var v0=Object.defineProperty;var y6=Object.getOwnPropertyDescriptor;var v6=Object.getOwnPropertyNames;var b6=Object.getPrototypeOf,w6=Object.prototype.hasOwnProperty;var NI=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uu=(e,t)=>{for(var r in t)v0(e,r,{get:t[r],enumerable:!0})},x6=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of v6(t))!w6.call(e,o)&&o!==r&&v0(e,o,{get:()=>t[o],enumerable:!(a=y6(t,o))||a.enumerable});return e};var A=(e,t,r)=>(r=e!=null?g6(b6(e)):{},x6(t||!e||!e.__esModule?v0(r,"default",{value:e,enumerable:!0}):r,e));async function Ae(e,t){try{return(await fetch(`https://${C6()}/${e}`,{method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)})).json()}catch{return null}}var b0,C6,bf,ra=C(()=>{"use strict";C6=()=>(b0||(b0=GetParentResourceName()),b0);bf=(e,t)=>{let r=document.createElement("input");r.value=e,t.appendChild(r),r.select(),document.execCommand("copy"),t.removeChild(r)}});var OI=mt((Rae,x0)=>{var w0=(function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(P,D,L){P[D]=L.value},o,n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(P,D,L){return Object.defineProperty(P,D,{value:L,enumerable:!0,configurable:!0,writable:!0}),P[D]}try{c({},"")}catch{c=function(P,D,L){return P[D]=L}}function d(P,D,L,U){var ne=D&&D.prototype instanceof m?D:m,z=Object.create(ne.prototype),T=new Z(U||[]);return a(z,"_invoke",{value:F(P,L,T)}),z}e.wrap=d;function u(P,D,L){try{return{type:"normal",arg:P.call(D,L)}}catch(U){return{type:"throw",arg:U}}}var p="suspendedStart",f="suspendedYield",h="executing",g="completed",b={};function m(){}function y(){}function v(){}var x={};c(x,s,function(){return this});var S=Object.getPrototypeOf,I=S&&S(S(re([])));I&&I!==t&&r.call(I,s)&&(x=I);var _=v.prototype=m.prototype=Object.create(x);y.prototype=v,a(_,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction");function w(P){["next","throw","return"].forEach(function(D){c(P,D,function(L){return this._invoke(D,L)})})}e.isGeneratorFunction=function(P){var D=typeof P=="function"&&P.constructor;return D?D===y||(D.displayName||D.name)==="GeneratorFunction":!1},e.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,v):(P.__proto__=v,c(P,l,"GeneratorFunction")),P.prototype=Object.create(_),P},e.awrap=function(P){return{__await:P}};function B(P,D){function L(z,T,E,M){var V=u(P[z],P,T);if(V.type==="throw")M(V.arg);else{var K=V.arg,X=K.value;return X&&typeof X=="object"&&r.call(X,"__await")?D.resolve(X.__await).then(function(W){L("next",W,E,M)},function(W){L("throw",W,E,M)}):D.resolve(X).then(function(W){K.value=W,E(K)},function(W){return L("throw",W,E,M)})}}var U;function ne(z,T){function E(){return new D(function(M,V){L(z,T,M,V)})}return U=U?U.then(E,E):E()}a(this,"_invoke",{value:ne})}w(B.prototype),c(B.prototype,i,function(){return this}),e.AsyncIterator=B,e.async=function(P,D,L,U,ne){ne===void 0&&(ne=Promise);var z=new B(d(P,D,L,U),ne);return e.isGeneratorFunction(D)?z:z.next().then(function(T){return T.done?T.value:z.next()})};function F(P,D,L){var U=p;return function(ne,z){if(U===h)throw new Error("Generator is already running");if(U===g){if(ne==="throw")throw z;return Q()}for(L.method=ne,L.arg=z;;){var T=L.delegate;if(T){var E=ie(T,L);if(E){if(E===b)continue;return E}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(U===p)throw U=g,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);U=h;var M=u(P,D,L);if(M.type==="normal"){if(U=L.done?g:f,M.arg===b)continue;return{value:M.arg,done:L.done}}else M.type==="throw"&&(U=g,L.method="throw",L.arg=M.arg)}}}function ie(P,D){var L=D.method,U=P.iterator[L];if(U===o)return D.delegate=null,L==="throw"&&P.iterator.return&&(D.method="return",D.arg=o,ie(P,D),D.method==="throw")||L!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+L+"' method")),b;var ne=u(U,P.iterator,D.arg);if(ne.type==="throw")return D.method="throw",D.arg=ne.arg,D.delegate=null,b;var z=ne.arg;if(!z)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,b;if(z.done)D[P.resultName]=z.value,D.next=P.nextLoc,D.method!=="return"&&(D.method="next",D.arg=o);else return z;return D.delegate=null,b}w(_),c(_,l,"Generator"),c(_,s,function(){return this}),c(_,"toString",function(){return"[object Generator]"});function $(P){var D={tryLoc:P[0]};1 in P&&(D.catchLoc=P[1]),2 in P&&(D.finallyLoc=P[2],D.afterLoc=P[3]),this.tryEntries.push(D)}function Y(P){var D=P.completion||{};D.type="normal",delete D.arg,P.completion=D}function Z(P){this.tryEntries=[{tryLoc:"root"}],P.forEach($,this),this.reset(!0)}e.keys=function(P){var D=Object(P),L=[];for(var U in D)L.push(U);return L.reverse(),function ne(){for(;L.length;){var z=L.pop();if(z in D)return ne.value=z,ne.done=!1,ne}return ne.done=!0,ne}};function re(P){if(P){var D=P[s];if(D)return D.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var L=-1,U=function ne(){for(;++L=0;--U){var ne=this.tryEntries[U],z=ne.completion;if(ne.tryLoc==="root")return L("end");if(ne.tryLoc<=this.prev){var T=r.call(ne,"catchLoc"),E=r.call(ne,"finallyLoc");if(T&&E){if(this.prev=0;--L){var U=this.tryEntries[L];if(U.tryLoc<=this.prev&&r.call(U,"finallyLoc")&&this.prev=0;--D){var L=this.tryEntries[D];if(L.finallyLoc===P)return this.complete(L.completion,L.afterLoc),Y(L),b}},catch:function(P){for(var D=this.tryEntries.length-1;D>=0;--D){var L=this.tryEntries[D];if(L.tryLoc===P){var U=L.completion;if(U.type==="throw"){var ne=U.arg;Y(L)}return ne}}throw new Error("illegal catch attempt")},delegateYield:function(P,D,L){return this.delegate={iterator:re(P),resultName:D,nextLoc:L},this.method==="next"&&(this.arg=o),b}},e})(typeof x0=="object"?x0.exports:{});try{regeneratorRuntime=w0}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=w0:Function("r","regeneratorRuntime = r")(w0)}});var Fh=mt((Iae,FI)=>{"use strict";FI.exports=(e,t)=>`${e}-${t}-${Math.random().toString(16).slice(3,8)}`});var C0=mt((Lae,HI)=>{"use strict";var S6=Fh(),BI=0;HI.exports=({id:e,action:t,payload:r={}})=>{let a=e;return typeof a>"u"&&(a=S6("Job",BI),BI+=1),{id:a,action:t,payload:r}}});var Bh=mt(wf=>{"use strict";var S0=!1;wf.logging=S0;wf.setLogging=e=>{S0=e};wf.log=(...e)=>S0?console.log.apply(wf,e):null});var VI=mt((UI,jI)=>{"use strict";var _6=C0(),{log:Hh}=Bh(),k6=Fh(),zI=0;jI.exports=()=>{let e=k6("Scheduler",zI),t={},r={},a=[];zI+=1;let o=()=>a.length,n=()=>Object.keys(t).length,s=()=>{if(a.length!==0){let l=Object.keys(t);for(let c=0;c"u"){a[0](t[l[c]]);break}}},i=(l,c)=>new Promise((d,u)=>{let p=_6({action:l,payload:c});a.push(async f=>{a.shift(),r[f.id]=p;try{d(await f[l].apply(UI,[...c,p.id]))}catch(h){u(h)}finally{delete r[f.id],s()}}),Hh(`[${e}]: Add ${p.id} to JobQueue`),Hh(`[${e}]: JobQueue length=${a.length}`),s()});return{addWorker:l=>(t[l.id]=l,Hh(`[${e}]: Add ${l.id}`),Hh(`[${e}]: Number of workers=${n()}`),s(),l.id),addJob:async(l,...c)=>{if(n()===0)throw Error(`[${e}]: You need to have at least one worker before adding jobs`);return i(l,c)},terminate:async()=>{Object.keys(t).forEach(async l=>{await t[l].terminate()}),a=[]},getQueueLen:o,getNumWorkers:n}}});var WI=mt((Pae,qI)=>{"use strict";qI.exports=e=>{let t={};return typeof WorkerGlobalScope<"u"?t.type="webworker":typeof document=="object"?t.type="browser":typeof process=="object"&&typeof NI=="function"&&(t.type="node"),typeof e>"u"?t:t[e]}});var $I=mt((Aae,GI)=>{"use strict";var R6=WI()("type")==="browser",I6=R6?e=>new URL(e,window.location.href).href:e=>e;GI.exports=e=>{let t={...e};return["corePath","workerPath","langPath"].forEach(r=>{e[r]&&(t[r]=I6(t[r]))}),t}});var _0=mt((Dae,KI)=>{"use strict";KI.exports={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3}});var XI=mt((Mae,L6)=>{L6.exports={name:"tesseract.js",version:"7.0.0",description:"Pure Javascript Multilingual OCR",main:"src/index.js",type:"commonjs",types:"src/index.d.ts",unpkg:"dist/tesseract.min.js",jsdelivr:"dist/tesseract.min.js",scripts:{start:"node scripts/server.js",build:"rimraf dist && webpack --config scripts/webpack.config.prod.js && rollup -c scripts/rollup.esm.mjs","profile:tesseract":"webpack-bundle-analyzer dist/tesseract-stats.json","profile:worker":"webpack-bundle-analyzer dist/worker-stats.json",prepublishOnly:"npm run build",wait:"rimraf dist && wait-on http://localhost:3000/dist/tesseract.min.js",test:"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser test:node:all","test:browser":"karma start karma.conf.js","test:node":"nyc mocha --exit --bail --require ./scripts/test-helper.mjs","test:node:all":"npm run test:node -- ./tests/*.test.mjs",lint:"eslint src","lint:fix":"eslint --fix src",postinstall:"opencollective-postinstall || true"},browser:{"./src/worker/node/index.js":"./src/worker/browser/index.js"},author:"",contributors:["jeromewu"],license:"Apache-2.0",devDependencies:{"@babel/core":"^7.21.4","@babel/eslint-parser":"^7.21.3","@babel/preset-env":"^7.21.4","@rollup/plugin-commonjs":"^24.1.0",acorn:"^8.8.2","babel-loader":"^9.1.2",buffer:"^6.0.3",cors:"^2.8.5",eslint:"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-plugin-import":"^2.27.5","expect.js":"^0.3.1",express:"^4.18.2",mocha:"^10.2.0","npm-run-all":"^4.1.5",karma:"^6.4.2","karma-chrome-launcher":"^3.2.0","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0",nyc:"^15.1.0",rimraf:"^5.0.0",rollup:"^3.20.7","wait-on":"^7.0.1",webpack:"^5.79.0","webpack-bundle-analyzer":"^4.8.0","webpack-cli":"^5.0.1","webpack-dev-middleware":"^6.0.2","rollup-plugin-sourcemaps":"^0.6.3"},dependencies:{"bmp-js":"^0.1.0","idb-keyval":"^6.2.0","is-url":"^1.2.4","node-fetch":"^2.6.9","opencollective-postinstall":"^2.0.3","regenerator-runtime":"^0.13.3","tesseract.js-core":"^7.0.0","wasm-feature-detect":"^1.8.0",zlibjs:"^0.3.1"},overrides:{"@rollup/pluginutils":"^5.0.2"},repository:{type:"git",url:"https://github.com/naptha/tesseract.js.git"},bugs:{url:"https://github.com/naptha/tesseract.js/issues"},homepage:"https://github.com/naptha/tesseract.js",collective:{type:"opencollective",url:"https://opencollective.com/tesseractjs"}}});var QI=mt((Nae,YI)=>{"use strict";YI.exports={workerBlobURL:!0,logger:()=>{}}});var ZI=mt((Oae,JI)=>{"use strict";var E6=XI().version,P6=QI();JI.exports={...P6,workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${E6}/dist/worker.min.js`}});var tL=mt((Fae,eL)=>{"use strict";eL.exports=({workerPath:e,workerBlobURL:t})=>{let r;if(Blob&&URL&&t){let a=new Blob([`importScripts("${e}");`],{type:"application/javascript"});r=new Worker(URL.createObjectURL(a))}else r=new Worker(e);return r}});var aL=mt((Bae,rL)=>{"use strict";rL.exports=e=>{e.terminate()}});var nL=mt((Hae,oL)=>{"use strict";oL.exports=(e,t)=>{e.onmessage=({data:r})=>{t(r)}}});var iL=mt((zae,sL)=>{"use strict";sL.exports=async(e,t)=>{e.postMessage(t)}});var cL=mt((Uae,lL)=>{"use strict";var k0=e=>new Promise((t,r)=>{let a=new FileReader;a.onload=()=>{t(a.result)},a.onerror=({target:{error:{code:o}}})=>{r(Error(`File could not be read! Code=${o}`))},a.readAsArrayBuffer(e)}),R0=async e=>{let t=e;if(typeof e>"u")return"undefined";if(typeof e=="string")/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(e)?t=atob(e.split(",")[1]).split("").map(r=>r.charCodeAt(0)):t=await(await fetch(e)).arrayBuffer();else if(typeof HTMLElement<"u"&&e instanceof HTMLElement)e.tagName==="IMG"&&(t=await R0(e.src)),e.tagName==="VIDEO"&&(t=await R0(e.poster)),e.tagName==="CANVAS"&&await new Promise(r=>{e.toBlob(async a=>{t=await k0(a),r()})});else if(typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas){let r=await e.convertToBlob();t=await k0(r)}else(e instanceof File||e instanceof Blob)&&(t=await k0(e));return new Uint8Array(t)};lL.exports=R0});var dL=mt((jae,uL)=>{"use strict";var T6=ZI(),A6=tL(),D6=aL(),M6=nL(),N6=iL(),O6=cL();uL.exports={defaultOptions:T6,spawnWorker:A6,terminateWorker:D6,onMessage:M6,send:N6,loadImage:O6}});var I0=mt((Vae,hL)=>{"use strict";var F6=$I(),Vn=C0(),{log:fL}=Bh(),B6=Fh(),jl=_0(),{defaultOptions:H6,spawnWorker:z6,terminateWorker:U6,onMessage:j6,loadImage:pL,send:V6}=dL(),mL=0;hL.exports=async(e="eng",t=jl.LSTM_ONLY,r={},a={})=>{let o=B6("Worker",mL),{logger:n,errorHandler:s,...i}=F6({...H6,...r}),l={},c=typeof e=="string"?e.split("+"):e,d=t,u=a,p=[jl.DEFAULT,jl.LSTM_ONLY].includes(t)&&!i.legacyCore,f,h,g=new Promise((P,D)=>{h=P,f=D}),b=P=>{f(P.message)},m=z6(i);m.onerror=b,mL+=1;let y=({id:P,action:D,payload:L})=>new Promise((U,ne)=>{fL(`[${o}]: Start ${P}, action=${D}`);let z=`${D}-${P}`;l[z]={resolve:U,reject:ne},V6(m,{workerId:o,jobId:P,action:D,payload:L})}),v=()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),x=P=>y(Vn({id:P,action:"load",payload:{options:{lstmOnly:p,corePath:i.corePath,logging:i.logging}}})),S=(P,D,L)=>y(Vn({id:L,action:"FS",payload:{method:"writeFile",args:[P,D]}})),I=(P,D)=>y(Vn({id:D,action:"FS",payload:{method:"readFile",args:[P,{encoding:"utf8"}]}})),_=(P,D)=>y(Vn({id:D,action:"FS",payload:{method:"unlink",args:[P]}})),w=(P,D,L)=>y(Vn({id:L,action:"FS",payload:{method:P,args:D}})),B=(P,D)=>y(Vn({id:D,action:"loadLanguage",payload:{langs:P,options:{langPath:i.langPath,dataPath:i.dataPath,cachePath:i.cachePath,cacheMethod:i.cacheMethod,gzip:i.gzip,lstmOnly:[jl.DEFAULT,jl.LSTM_ONLY].includes(d)&&!i.legacyLang}}})),F=(P,D,L,U)=>y(Vn({id:U,action:"initialize",payload:{langs:P,oem:D,config:L}})),ie=(P="eng",D,L,U)=>{if(p&&[jl.TESSERACT_ONLY,jl.TESSERACT_LSTM_COMBINED].includes(D))throw Error("Legacy model requested but code missing.");let ne=D||d;d=ne;let z=L||u;u=z;let T=(typeof P=="string"?P.split("+"):P).filter(E=>!c.includes(E));return c.push(...T),T.length>0?B(T,U).then(()=>F(P,ne,z,U)):F(P,ne,z,U)},$=(P={},D)=>y(Vn({id:D,action:"setParameters",payload:{params:P}})),Y=async(P,D={},L={text:!0},U)=>y(Vn({id:U,action:"recognize",payload:{image:await pL(P),options:D,output:L}})),Z=async(P,D)=>{if(p)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return y(Vn({id:D,action:"detect",payload:{image:await pL(P)}}))},re=async()=>(m!==null&&(U6(m),m=null),Promise.resolve());j6(m,({workerId:P,jobId:D,status:L,action:U,data:ne})=>{let z=`${U}-${D}`;if(L==="resolve")fL(`[${P}]: Complete ${D}`),l[z].resolve({jobId:D,data:ne}),delete l[z];else if(L==="reject")if(l[z].reject(ne),delete l[z],U==="load"&&f(ne),s)s(ne);else throw Error(ne);else L==="progress"&&n({...ne,userJobId:D})});let Q={id:o,worker:m,load:v,writeText:S,readText:I,removeFile:_,FS:w,reinitialize:ie,setParameters:$,recognize:Y,detect:Z,terminate:re};return x().then(()=>B(e)).then(()=>F(e,t,a)).then(()=>h(Q)).catch(()=>{}),g}});var vL=mt((qae,yL)=>{"use strict";var gL=I0(),q6=async(e,t,r)=>{let a=await gL(t,1,r);return a.recognize(e).finally(async()=>{await a.terminate()})},W6=async(e,t)=>{let r=await gL("osd",0,t);return r.detect(e).finally(async()=>{await r.terminate()})};yL.exports={recognize:q6,detect:W6}});var wL=mt((Wae,bL)=>{"use strict";bL.exports={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"}});var CL=mt((Gae,xL)=>{"use strict";xL.exports={OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12",RAW_LINE:"13"}});var _L=mt(($ae,SL)=>{"use strict";OI();var G6=VI(),$6=I0(),K6=vL(),X6=wL(),Y6=_0(),Q6=CL(),{setLogging:J6}=Bh();SL.exports={languages:X6,OEM:Y6,PSM:Q6,createScheduler:G6,createWorker:$6,setLogging:J6,...K6}});function d8(e){let t=0;for(let o of e)t+=o.byteLength;let r=new Uint8Array(t),a=0;for(let o of e){let n=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);r.set(n,a),a+=o.byteLength}return r}function D0(e){return new T0(e).unpack()}function M0(e){let t=new A0,r=t.pack(e);return r instanceof Promise?r.then(()=>t.getBuffer()):t.getBuffer()}var P0,T0,A0,EL=C(()=>{P0=class{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){let t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){let t=[];for(let r of this._parts)t.push(r);return d8(t).buffer}};T0=class{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){let t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let r;if((r=t^160)<=15)return this.unpack_raw(r);if((r=t^176)<=15)return this.unpack_string(r);if((r=t^144)<=15)return this.unpack_array(r);if((r=t^128)<=15)return this.unpack_map(r);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return r=this.unpack_uint16(),this.unpack_string(r);case 217:return r=this.unpack_uint32(),this.unpack_string(r);case 218:return r=this.unpack_uint16(),this.unpack_raw(r);case 219:return r=this.unpack_uint32(),this.unpack_raw(r);case 220:return r=this.unpack_uint16(),this.unpack_array(r);case 221:return r=this.unpack_uint32(),this.unpack_array(r);case 222:return r=this.unpack_uint16(),this.unpack_map(r);case 223:return r=this.unpack_uint32(),this.unpack_map(r)}}unpack_uint8(){let t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){let t=this.read(2),r=(t[0]&255)*256+(t[1]&255);return this.index+=2,r}unpack_uint32(){let t=this.read(4),r=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,r}unpack_uint64(){let t=this.read(8),r=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,r}unpack_int8(){let t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){let t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){let t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){let t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,a=(t>>23&255)-127,o=t&8388607|8388608;return(r===0?1:-1)*o*2**(a-23)}unpack_double(){let t=this.unpack_uint32(),r=this.unpack_uint32(),a=t>>31,o=(t>>20&2047)-1023,s=(t&1048575|1048576)*2**(o-20)+r*2**(o-52);return(a===0?1:-1)*s}read(t){let r=this.index;if(r+t<=this.length)return this.dataView.subarray(r,r+t);throw new Error("BinaryPackFailure: read index out of range")}},A0=class{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{let r=t.constructor;if(t instanceof Array){let a=this.pack_array(t);if(a instanceof Promise)return a.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){let a=t;this.pack_bin(new Uint8Array(a.buffer,a.byteOffset,a.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(a=>{this.pack_bin(new Uint8Array(a)),this._bufferBuilder.flush()});if(r==Object||r.toString().startsWith("class")){let a=this.pack_object(t);if(a instanceof Promise)return a.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${r.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){let r=t.length;if(r<=15)this.pack_uint8(160+r);else if(r<=65535)this._bufferBuilder.append(218),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){let r=this._textEncoder.encode(t),a=r.length;if(a<=15)this.pack_uint8(176+a);else if(a<=65535)this._bufferBuilder.append(216),this.pack_uint16(a);else if(a<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(a);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(r)}pack_array(t){let r=t.length;if(r<=15)this.pack_uint8(144+r);else if(r<=65535)this._bufferBuilder.append(220),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(r);else throw new Error("Invalid length");let a=o=>{if(oa(o+1)):a(o+1)}};return a(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let r=0;t<0&&(r=1,t=-t);let a=Math.floor(Math.log(t)/Math.LN2),o=t/2**a-1,n=Math.floor(o*2**52),s=2**32,i=r<<31|a+1023<<20|n/s&1048575,l=n%s;this._bufferBuilder.append(203),this.pack_int32(i),this.pack_int32(l)}pack_object(t){let r=Object.keys(t),a=r.length;if(a<=15)this.pack_uint8(128+a);else if(a<=65535)this._bufferBuilder.append(222),this.pack_uint16(a);else if(a<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(a);else throw new Error("Invalid length");let o=n=>{if(no(n+1))}return o(n+1)}};return o(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){let r=t&4294967295;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_uint64(t){let r=t/4294967296,a=t%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((a&4278190080)>>>24),this._bufferBuilder.append((a&16711680)>>>16),this._bufferBuilder.append((a&65280)>>>8),this._bufferBuilder.append(a&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){let r=Math.floor(t/4294967296),a=t%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((a&4278190080)>>>24),this._bufferBuilder.append((a&16711680)>>>16),this._bufferBuilder.append((a&65280)>>>8),this._bufferBuilder.append(a&255)}constructor(){this._bufferBuilder=new P0,this._textEncoder=new TextEncoder}}});function Cf(e,t,r){let a=e.match(t);return a&&a.length>=r&&parseInt(a[r],10)}function qn(e,t,r){if(!e.RTCPeerConnection)return;let a=e.RTCPeerConnection.prototype,o=a.addEventListener;a.addEventListener=function(s,i){if(s!==t)return o.apply(this,arguments);let l=c=>{let d=r(c);d&&(i.handleEvent?i.handleEvent(d):i(d))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(i,l),o.apply(this,[s,l])};let n=a.removeEventListener;a.removeEventListener=function(s,i){if(s!==t||!this._eventMap||!this._eventMap[t])return n.apply(this,arguments);if(!this._eventMap[t].has(i))return n.apply(this,arguments);let l=this._eventMap[t].get(i);return this._eventMap[t].delete(i),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,n.apply(this,[s,l])},Object.defineProperty(a,"on"+t,{get(){return this["_on"+t]},set(s){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),s&&this.addEventListener(t,this["_on"+t]=s)},enumerable:!0,configurable:!0})}function DL(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(TL=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function ML(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(AL=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function jh(){if(typeof window=="object"){if(TL)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function du(e,t){AL&&console.warn(e+" is deprecated, please use "+t+" instead.")}function NL(e){let t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;let{navigator:r}=e;if(r.userAgentData&&r.userAgentData.brands){let a=r.userAgentData.brands.find(o=>o.brand==="Chromium");if(a)return{browser:"chrome",version:parseInt(a.version,10)}}if(r.mozGetUserMedia)t.browser="firefox",t.version=Cf(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=Cf(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&r.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=Cf(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function PL(e){return Object.prototype.toString.call(e)==="[object Object]"}function O0(e){return PL(e)?Object.keys(e).reduce(function(t,r){let a=PL(e[r]),o=a?O0(e[r]):e[r],n=a&&!Object.keys(o).length;return o===void 0||n?t:Object.assign(t,{[r]:o})},{}):e}function N0(e,t,r){!t||r.has(t.id)||(r.set(t.id,t),Object.keys(t).forEach(a=>{a.endsWith("Id")?N0(e,e.get(t[a]),r):a.endsWith("Ids")&&t[a].forEach(o=>{N0(e,e.get(o),r)})}))}function F0(e,t,r){let a=r?"outbound-rtp":"inbound-rtp",o=new Map;if(t===null)return o;let n=[];return e.forEach(s=>{s.type==="track"&&s.trackIdentifier===t.id&&n.push(s)}),n.forEach(s=>{e.forEach(i=>{i.type===a&&i.trackId===s.id&&N0(e,i,o)})}),o}var TL,AL,ui=C(()=>{"use strict";TL=!0,AL=!0});function Vh(e,t){let r=e&&e.navigator;if(!r.mediaDevices)return;let a=function(i){if(typeof i!="object"||i.mandatory||i.optional)return i;let l={};return Object.keys(i).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;let d=typeof i[c]=="object"?i[c]:{ideal:i[c]};d.exact!==void 0&&typeof d.exact=="number"&&(d.min=d.max=d.exact);let u=function(p,f){return p?p+f.charAt(0).toUpperCase()+f.slice(1):f==="deviceId"?"sourceId":f};if(d.ideal!==void 0){l.optional=l.optional||[];let p={};typeof d.ideal=="number"?(p[u("min",c)]=d.ideal,l.optional.push(p),p={},p[u("max",c)]=d.ideal,l.optional.push(p)):(p[u("",c)]=d.ideal,l.optional.push(p))}d.exact!==void 0&&typeof d.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[u("",c)]=d.exact):["min","max"].forEach(p=>{d[p]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[u(p,c)]=d[p])})}),i.advanced&&(l.optional=(l.optional||[]).concat(i.advanced)),l},o=function(i,l){if(t.version>=61)return l(i);if(i=JSON.parse(JSON.stringify(i)),i&&typeof i.audio=="object"){let c=function(d,u,p){u in d&&!(p in d)&&(d[p]=d[u],delete d[u])};i=JSON.parse(JSON.stringify(i)),c(i.audio,"autoGainControl","googAutoGainControl"),c(i.audio,"noiseSuppression","googNoiseSuppression"),i.audio=a(i.audio)}if(i&&typeof i.video=="object"){let c=i.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});let d=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(r.mediaDevices.getSupportedConstraints&&r.mediaDevices.getSupportedConstraints().facingMode&&!d)){delete i.video.facingMode;let u;if(c.exact==="environment"||c.ideal==="environment"?u=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(u=["front"]),u)return r.mediaDevices.enumerateDevices().then(p=>{p=p.filter(h=>h.kind==="videoinput");let f=p.find(h=>u.some(g=>h.label.toLowerCase().includes(g)));return!f&&p.length&&u.includes("back")&&(f=p[p.length-1]),f&&(i.video.deviceId=c.exact?{exact:f.deviceId}:{ideal:f.deviceId}),i.video=a(i.video),OL("chrome: "+JSON.stringify(i)),l(i)})}i.video=a(i.video)}return OL("chrome: "+JSON.stringify(i)),l(i)},n=function(i){return t.version>=64?i:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[i.name]||i.name,message:i.message,constraint:i.constraint||i.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(i,l,c){o(i,d=>{r.webkitGetUserMedia(d,l,u=>{c&&c(n(u))})})};if(r.getUserMedia=s.bind(r),r.mediaDevices.getUserMedia){let i=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(l){return o(l,c=>i(c).then(d=>{if(c.audio&&!d.getAudioTracks().length||c.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(u=>{u.stop()}),new DOMException("","NotFoundError");return d},d=>Promise.reject(n(d))))}}}var OL,FL=C(()=>{"use strict";ui();OL=jh});var Wh={};uu(Wh,{fixNegotiationNeeded:()=>V0,shimAddTrackRemoveTrack:()=>j0,shimAddTrackRemoveTrackWithNative:()=>BL,shimGetSendersWithDtmf:()=>z0,shimGetUserMedia:()=>Vh,shimMediaStream:()=>B0,shimOnTrack:()=>H0,shimPeerConnection:()=>qh,shimSenderReceiverGetStats:()=>U0});function B0(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function H0(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(r){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=r)},enumerable:!0,configurable:!0});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",a=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===a.track.id):o={track:a.track};let n=new Event("track");n.track=a.track,n.receiver=o,n.transceiver={receiver:o},n.streams=[r.stream],this.dispatchEvent(n)}),r.stream.getTracks().forEach(a=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===a.id):o={track:a};let n=new Event("track");n.track=a,n.receiver=o,n.transceiver={receiver:o},n.streams=[r.stream],this.dispatchEvent(n)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else qn(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function z0(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){let t=function(o,n){return{track:n,get dtmf(){return this._dtmf===void 0&&(n.kind==="audio"?this._dtmf=o.createDTMFSender(n):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,i){let l=o.apply(this,arguments);return l||(l=t(this,s),this._senders.push(l)),l};let n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){n.apply(this,arguments);let i=this._senders.indexOf(s);i!==-1&&this._senders.splice(i,1)}}let r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],r.apply(this,[o]),o.getTracks().forEach(n=>{this._senders.push(t(this,n))})};let a=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],a.apply(this,[o]),o.getTracks().forEach(n=>{let s=this._senders.find(i=>i.track===n);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){let r=t.apply(this,[]);return r.forEach(a=>a._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function U0(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){let r=e.RTCPeerConnection.prototype.getSenders;r&&(e.RTCPeerConnection.prototype.getSenders=function(){let o=r.apply(this,[]);return o.forEach(n=>n._pc=this),o});let a=e.RTCPeerConnection.prototype.addTrack;a&&(e.RTCPeerConnection.prototype.addTrack=function(){let o=a.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){let o=this;return this._pc.getStats().then(n=>F0(n,o.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){let r=e.RTCPeerConnection.prototype.getReceivers;r&&(e.RTCPeerConnection.prototype.getReceivers=function(){let a=r.apply(this,[]);return a.forEach(o=>o._pc=this),a}),qn(e,"track",a=>(a.receiver._pc=a.srcElement,a)),e.RTCRtpReceiver.prototype.getStats=function(){let a=this;return this._pc.getStats().then(o=>F0(o,a.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;let t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){let r=arguments[0],a,o,n;return this.getSenders().forEach(s=>{s.track===r&&(a?n=!0:a=s)}),this.getReceivers().forEach(s=>(s.track===r&&(o?n=!0:o=s),s.track===r)),n||a&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):a?a.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function BL(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(n=>this._shimmedLocalStreams[n][0])};let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(n,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let i=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(i)===-1&&this._shimmedLocalStreams[s.id].push(i):this._shimmedLocalStreams[s.id]=[s,i],i};let r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(n){this._shimmedLocalStreams=this._shimmedLocalStreams||{},n.getTracks().forEach(l=>{if(this.getSenders().find(c=>c.track===l))throw new DOMException("Track already exists.","InvalidAccessError")});let s=this.getSenders();r.apply(this,arguments);let i=this.getSenders().filter(l=>s.indexOf(l)===-1);this._shimmedLocalStreams[n.id]=[n].concat(i)};let a=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(n){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[n.id],a.apply(this,arguments)};let o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(n){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},n&&Object.keys(this._shimmedLocalStreams).forEach(s=>{let i=this._shimmedLocalStreams[s].indexOf(n);i!==-1&&this._shimmedLocalStreams[s].splice(i,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),o.apply(this,arguments)}}function j0(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return BL(e);let r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){let c=r.apply(this);return this._reverseStreams=this._reverseStreams||{},c.map(d=>this._reverseStreams[d.id])};let a=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(c){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},c.getTracks().forEach(d=>{if(this.getSenders().find(u=>u.track===d))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[c.id]){let d=new e.MediaStream(c.getTracks());this._streams[c.id]=d,this._reverseStreams[d.id]=c,c=d}a.apply(this,[c])};let o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(c){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[c.id]||c]),delete this._reverseStreams[this._streams[c.id]?this._streams[c.id].id:c.id],delete this._streams[c.id]},e.RTCPeerConnection.prototype.addTrack=function(c,d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let u=[].slice.call(arguments,1);if(u.length!==1||!u[0].getTracks().find(f=>f===c))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(f=>f.track===c))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let p=this._streams[d.id];if(p)p.addTrack(c),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let f=new e.MediaStream([c]);this._streams[d.id]=f,this._reverseStreams[f.id]=d,this.addStream(f)}return this.getSenders().find(f=>f.track===c)};function n(c,d){let u=d.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{let f=c._reverseStreams[p],h=c._streams[f.id];u=u.replace(new RegExp(h.id,"g"),f.id)}),new RTCSessionDescription({type:d.type,sdp:u})}function s(c,d){let u=d.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{let f=c._reverseStreams[p],h=c._streams[f.id];u=u.replace(new RegExp(f.id,"g"),h.id)}),new RTCSessionDescription({type:d.type,sdp:u})}["createOffer","createAnswer"].forEach(function(c){let d=e.RTCPeerConnection.prototype[c],u={[c](){let p=arguments;return arguments.length&&typeof arguments[0]=="function"?d.apply(this,[f=>{let h=n(this,f);p[0].apply(null,[h])},f=>{p[1]&&p[1].apply(null,f)},arguments[2]]):d.apply(this,arguments).then(f=>n(this,f))}};e.RTCPeerConnection.prototype[c]=u[c]});let i=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?i.apply(this,arguments):(arguments[0]=s(this,arguments[0]),i.apply(this,arguments))};let l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){let c=l.get.apply(this);return c.type===""?c:n(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(c){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!c._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(c._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let d;Object.keys(this._streams).forEach(u=>{this._streams[u].getTracks().find(p=>c.track===p)&&(d=this._streams[u])}),d&&(d.getTracks().length===1?this.removeStream(this._reverseStreams[d.id]):d.removeTrack(c.track),this.dispatchEvent(new Event("negotiationneeded")))}}function qh(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){let a=e.RTCPeerConnection.prototype[r],o={[r](){return arguments[0]=new(r==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[r]=o[r]})}function V0(e,t){qn(e,"negotiationneeded",r=>{let a=r.target;if(!((t.version<72||a.getConfiguration&&a.getConfiguration().sdpSemantics==="plan-b")&&a.signalingState!=="stable"))return r})}var HL=C(()=>{"use strict";ui();FL()});function Gh(e,t){let r=e&&e.navigator,a=e&&e.MediaStreamTrack;if(r.getUserMedia=function(o,n,s){du("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(o).then(n,s)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){let o=function(s,i,l){i in s&&!(l in s)&&(s[l]=s[i],delete s[i])},n=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(s){return typeof s=="object"&&typeof s.audio=="object"&&(s=JSON.parse(JSON.stringify(s)),o(s.audio,"autoGainControl","mozAutoGainControl"),o(s.audio,"noiseSuppression","mozNoiseSuppression")),n(s)},a&&a.prototype.getSettings){let s=a.prototype.getSettings;a.prototype.getSettings=function(){let i=s.apply(this,arguments);return o(i,"mozAutoGainControl","autoGainControl"),o(i,"mozNoiseSuppression","noiseSuppression"),i}}if(a&&a.prototype.applyConstraints){let s=a.prototype.applyConstraints;a.prototype.applyConstraints=function(i){return this.kind==="audio"&&typeof i=="object"&&(i=JSON.parse(JSON.stringify(i)),o(i,"autoGainControl","mozAutoGainControl"),o(i,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[i])}}}}var zL=C(()=>{"use strict";ui()});function UL(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){let a=new DOMException("getDisplayMedia without video constraints is undefined");return a.name="NotFoundError",a.code=8,Promise.reject(a)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}var jL=C(()=>{"use strict"});var Kh={};uu(Kh,{shimAddTransceiver:()=>X0,shimCreateAnswer:()=>J0,shimCreateOffer:()=>Q0,shimGetDisplayMedia:()=>UL,shimGetParameters:()=>Y0,shimGetUserMedia:()=>Gh,shimOnTrack:()=>q0,shimPeerConnection:()=>$h,shimRTCDataChannel:()=>K0,shimReceiverGetStats:()=>G0,shimRemoveStream:()=>$0,shimSenderGetStats:()=>W0});function q0(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function $h(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(o){let n=e.RTCPeerConnection.prototype[o],s={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=s[o]});let r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[o,n,s]=arguments;return a.apply(this,[o||null]).then(i=>{if(t.version<53&&!n)try{i.forEach(l=>{l.type=r[l.type]||l.type})}catch(l){if(l.name!=="TypeError")throw l;i.forEach((c,d)=>{i.set(d,Object.assign({},c,{type:r[c.type]||c.type}))})}return i}).then(n,s)}}function W0(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let a=t.apply(this,[]);return a.forEach(o=>o._pc=this),a});let r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){let a=r.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function G0(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let r=t.apply(this,[]);return r.forEach(a=>a._pc=this),r}),qn(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function $0(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(t){du("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&t.getTracks().includes(r.track)&&this.removeTrack(r)})})}function K0(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function X0(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];let a=r.length>0;a&&r.forEach(n=>{if("rid"in n&&!/^[a-z0-9]{0,16}$/i.test(n.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in n&&!(parseFloat(n.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in n&&!(parseFloat(n.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});let o=t.apply(this,arguments);if(a){let{sender:n}=o,s=n.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,n.sendEncodings=r,this.setParametersPromises.push(n.setParameters(s).then(()=>{delete n.sendEncodings}).catch(()=>{delete n.sendEncodings})))}return o})}function Y0(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;let t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){let r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function Q0(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function J0(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}var VL=C(()=>{"use strict";ui();zL();jL()});var Xh={};uu(Xh,{shimAudioContext:()=>sw,shimCallbacksAPI:()=>tw,shimConstraints:()=>qL,shimCreateOfferLegacy:()=>nw,shimGetUserMedia:()=>rw,shimLocalStreamsAPI:()=>Z0,shimRTCIceServerUrls:()=>aw,shimRemoteStreamsAPI:()=>ew,shimTrackEventTransceiver:()=>ow});function Z0(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(a=>t.call(this,a,r)),r.getVideoTracks().forEach(a=>t.call(this,a,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...a){return a&&a.forEach(o=>{this._localStreams?this._localStreams.includes(o)||this._localStreams.push(o):this._localStreams=[o]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(t){this._localStreams||(this._localStreams=[]);let r=this._localStreams.indexOf(t);if(r===-1)return;this._localStreams.splice(r,1);let a=t.getTracks();this.getSenders().forEach(o=>{a.includes(o.track)&&this.removeTrack(o)})})}}function ew(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(r){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=a=>{a.streams.forEach(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);let n=new Event("addstream");n.stream=o,this.dispatchEvent(n)})})}});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){let r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(a){a.streams.forEach(o=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(o)>=0)return;r._remoteStreams.push(o);let n=new Event("addstream");n.stream=o,r.dispatchEvent(n)})}),t.apply(r,arguments)}}}function tw(e){if(typeof e!="object"||!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype,r=t.createOffer,a=t.createAnswer,o=t.setLocalDescription,n=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(l,c){let d=arguments.length>=2?arguments[2]:arguments[0],u=r.apply(this,[d]);return c?(u.then(l,c),Promise.resolve()):u},t.createAnswer=function(l,c){let d=arguments.length>=2?arguments[2]:arguments[0],u=a.apply(this,[d]);return c?(u.then(l,c),Promise.resolve()):u};let i=function(l,c,d){let u=o.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u};t.setLocalDescription=i,i=function(l,c,d){let u=n.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u},t.setRemoteDescription=i,i=function(l,c,d){let u=s.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u},t.addIceCandidate=i}function rw(e){let t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){let r=t.mediaDevices,a=r.getUserMedia.bind(r);t.mediaDevices.getUserMedia=o=>a(qL(o))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(r,a,o){t.mediaDevices.getUserMedia(r).then(a,o)}.bind(t))}function qL(e){return e&&e.video!==void 0?Object.assign({},e,{video:O0(e.video)}):e}function aw(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,a){if(r&&r.iceServers){let o=[];for(let n=0;nn.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveAudio===!0&&!a&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);let o=this.getTransceivers().find(n=>n.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function sw(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var WL=C(()=>{"use strict";ui()});var lw=mt((ioe,iw)=>{"use strict";var ce={};ce.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)};ce.localCName=ce.generateIdentifier();ce.splitLines=function(e){return e.trim().split(` `).map(t=>t.trim())};ce.splitSections=function(e){return e.split(` m=`).map((t,r)=>(r>0?"m="+t:t).trim()+`\r `)};ce.getDescription=function(e){let t=ce.splitSections(e);return t&&t[0]};ce.getMediaSections=function(e){let t=ce.splitSections(e);return t.shift(),t};ce.matchPrefix=function(e,t){return ce.splitLines(e).filter(r=>r.indexOf(t)===0)};ce.parseCandidate=function(e){let t;e.indexOf("a=candidate:")===0?t=e.substring(12).split(" "):t=e.substring(10).split(" ");let r={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let a=8;a0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}};ce.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&e.direction!=="sendrecv"?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+`\r `};ce.parseFmtp=function(e){let t={},r,a=e.substring(e.indexOf(" ")+1).split(";");for(let o=0;o{e.parameters[o]!==void 0?a.push(o+"="+e.parameters[o]):a.push(o)}),t+="a=fmtp:"+r+" "+a.join(";")+`\r `}return t};ce.parseRtcpFb=function(e){let t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}};ce.writeRtcpFb=function(e){let t="",r=e.payloadType;return e.preferredPayloadType!==void 0&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(a=>{t+="a=rtcp-fb:"+r+" "+a.type+(a.parameter&&a.parameter.length?" "+a.parameter:"")+`\r `}),t};ce.parseSsrcMedia=function(e){let t=e.indexOf(" "),r={ssrc:parseInt(e.substring(7,t),10)},a=e.indexOf(":",t);return a>-1?(r.attribute=e.substring(t+1,a),r.value=e.substring(a+1)):r.attribute=e.substring(t+1),r};ce.parseSsrcGroup=function(e){let t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(r=>parseInt(r,10))}};ce.getMid=function(e){let t=ce.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)};ce.parseFingerprint=function(e){let t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}};ce.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:ce.matchPrefix(e+t,"a=fingerprint:").map(ce.parseFingerprint)}};ce.writeDtlsParameters=function(e,t){let r="a=setup:"+t+`\r `;return e.fingerprints.forEach(a=>{r+="a=fingerprint:"+a.algorithm+" "+a.value+`\r `}),r};ce.parseCryptoLine=function(e){let t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}};ce.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+(typeof e.keyParams=="object"?ce.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+`\r `};ce.parseCryptoKeyParams=function(e){if(e.indexOf("inline:")!==0)return null;let t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}};ce.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")};ce.getCryptoParameters=function(e,t){return ce.matchPrefix(e+t,"a=crypto:").map(ce.parseCryptoLine)};ce.getIceParameters=function(e,t){let r=ce.matchPrefix(e+t,"a=ice-ufrag:")[0],a=ce.matchPrefix(e+t,"a=ice-pwd:")[0];return r&&a?{usernameFragment:r.substring(12),password:a.substring(10)}:null};ce.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+`\r a=ice-pwd:`+e.password+`\r `;return e.iceLite&&(t+=`a=ice-lite\r `),t};ce.parseRtpParameters=function(e){let t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=ce.splitLines(e)[0].split(" ");t.profile=r[2];for(let o=3;o{t.headerExtensions.push(ce.parseExtmap(o))});let a=ce.matchPrefix(e,"a=rtcp-fb:* ").map(ce.parseRtcpFb);return t.codecs.forEach(o=>{a.forEach(n=>{o.rtcpFeedback.find(s=>s.type===n.type&&s.parameter===n.parameter)||o.rtcpFeedback.push(n)})}),t};ce.writeRtpDescription=function(e,t){let r="";r+="m="+e+" ",r+=t.codecs.length>0?"9":"0",r+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",r+=t.codecs.map(o=>o.preferredPayloadType!==void 0?o.preferredPayloadType:o.payloadType).join(" ")+`\r `,r+=`c=IN IP4 0.0.0.0\r `,r+=`a=rtcp:9 IN IP4 0.0.0.0\r `,t.codecs.forEach(o=>{r+=ce.writeRtpMap(o),r+=ce.writeFmtp(o),r+=ce.writeRtcpFb(o)});let a=0;return t.codecs.forEach(o=>{o.maxptime>a&&(a=o.maxptime)}),a>0&&(r+="a=maxptime:"+a+`\r `),t.headerExtensions&&t.headerExtensions.forEach(o=>{r+=ce.writeExtmap(o)}),r};ce.parseRtpEncodingParameters=function(e){let t=[],r=ce.parseRtpParameters(e),a=r.fecMechanisms.indexOf("RED")!==-1,o=r.fecMechanisms.indexOf("ULPFEC")!==-1,n=ce.matchPrefix(e,"a=ssrc:").map(d=>ce.parseSsrcMedia(d)).filter(d=>d.attribute==="cname"),s=n.length>0&&n[0].ssrc,i,l=ce.matchPrefix(e,"a=ssrc-group:FID").map(d=>d.substring(17).split(" ").map(u=>parseInt(u,10)));l.length>0&&l[0].length>1&&l[0][0]===s&&(i=l[0][1]),r.codecs.forEach(d=>{if(d.name.toUpperCase()==="RTX"&&d.parameters.apt){let u={ssrc:s,codecPayloadType:parseInt(d.parameters.apt,10)};s&&i&&(u.rtx={ssrc:i}),t.push(u),a&&(u=JSON.parse(JSON.stringify(u)),u.fec={ssrc:s,mechanism:o?"red+ulpfec":"red"},t.push(u))}}),t.length===0&&s&&t.push({ssrc:s});let c=ce.matchPrefix(e,"b=");return c.length&&(c[0].indexOf("b=TIAS:")===0?c=parseInt(c[0].substring(7),10):c[0].indexOf("b=AS:")===0?c=parseInt(c[0].substring(5),10)*1e3*.95-2e3*8:c=void 0,t.forEach(d=>{d.maxBitrate=c})),t};ce.parseRtcpParameters=function(e){let t={},r=ce.matchPrefix(e,"a=ssrc:").map(n=>ce.parseSsrcMedia(n)).filter(n=>n.attribute==="cname")[0];r&&(t.cname=r.value,t.ssrc=r.ssrc);let a=ce.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=a.length>0,t.compound=a.length===0;let o=ce.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t};ce.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+=`a=rtcp-rsize\r `),e.mux&&(t+=`a=rtcp-mux\r `),e.ssrc!==void 0&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+`\r `),t};ce.parseMsid=function(e){let t,r=ce.matchPrefix(e,"a=msid:");if(r.length===1)return t=r[0].substring(7).split(" "),{stream:t[0],track:t[1]};let a=ce.matchPrefix(e,"a=ssrc:").map(o=>ce.parseSsrcMedia(o)).filter(o=>o.attribute==="msid");if(a.length>0)return t=a[0].value.split(" "),{stream:t[0],track:t[1]}};ce.parseSctpDescription=function(e){let t=ce.parseMLine(e),r=ce.matchPrefix(e,"a=max-message-size:"),a;r.length>0&&(a=parseInt(r[0].substring(19),10)),isNaN(a)&&(a=65536);let o=ce.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:t.fmt,maxMessageSize:a};let n=ce.matchPrefix(e,"a=sctpmap:");if(n.length>0){let s=n[0].substring(10).split(" ");return{port:parseInt(s[0],10),protocol:s[1],maxMessageSize:a}}};ce.writeSctpDescription=function(e,t){let r=[];return e.protocol!=="DTLS/SCTP"?r=["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+`\r `,`c=IN IP4 0.0.0.0\r `,"a=sctp-port:"+t.port+`\r `]:r=["m="+e.kind+" 9 "+e.protocol+" "+t.port+`\r `,`c=IN IP4 0.0.0.0\r `,"a=sctpmap:"+t.port+" "+t.protocol+` 65535\r `],t.maxMessageSize!==void 0&&r.push("a=max-message-size:"+t.maxMessageSize+`\r `),r.join("")};ce.generateSessionId=function(){return Math.random().toString().substr(2,22)};ce.writeSessionBoilerplate=function(e,t,r){let a,o=t!==void 0?t:2;return e?a=e:a=ce.generateSessionId(),`v=0\r o=`+(r||"thisisadapterortc")+" "+a+" "+o+` IN IP4 127.0.0.1\r s=-\r t=0 0\r `};ce.getDirection=function(e,t){let r=ce.splitLines(e);for(let a=0;aJh,shimAddIceCandidateNullOrEmpty:()=>Rf,shimConnectionState:()=>Qh,shimMaxMessageSize:()=>_f,shimParameterlessSetLocalDescription:()=>If,shimRTCIceCandidate:()=>Sf,shimRTCIceCandidateRelayProtocol:()=>Yh,shimSendThrowTypeError:()=>kf});function Sf(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;let t=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){let a=new t(r),o=fu.default.parseCandidate(r.candidate);for(let n in o)n in a||Object.defineProperty(a,n,{value:o[n]});return a.toJSON=function(){return{candidate:a.candidate,sdpMid:a.sdpMid,sdpMLineIndex:a.sdpMLineIndex,usernameFragment:a.usernameFragment}},a}return new t(r)},e.RTCIceCandidate.prototype=t.prototype,qn(e,"icecandidate",r=>(r.candidate&&Object.defineProperty(r,"candidate",{value:new e.RTCIceCandidate(r.candidate),writable:"false"}),r))}function Yh(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||qn(e,"icecandidate",t=>{if(t.candidate){let r=fu.default.parseCandidate(t.candidate.candidate);r.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[r.priority>>24])}return t})}function _f(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});let r=function(i){if(!i||!i.sdp)return!1;let l=fu.default.splitSections(i.sdp);return l.shift(),l.some(c=>{let d=fu.default.parseMLine(c);return d&&d.kind==="application"&&d.protocol.indexOf("SCTP")!==-1})},a=function(i){let l=i.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;let c=parseInt(l[1],10);return c!==c?-1:c},o=function(i){let l=65536;return t.browser==="firefox"&&(t.version<57?i===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},n=function(i,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);let d=fu.default.matchPrefix(i.sdp,"a=max-message-size:");return d.length>0?c=parseInt(d[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){let{sdpSemantics:i}=this.getConfiguration();i==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){let i=a(arguments[0]),l=o(i),c=n(arguments[0],i),d;l===0&&c===0?d=Number.POSITIVE_INFINITY:l===0||c===0?d=Math.max(l,c):d=Math.min(l,c);let u={};Object.defineProperty(u,"maxMessageSize",{get(){return d}}),this._sctp=u}return s.apply(this,arguments)}}function kf(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(a,o){let n=a.send;a.send=function(){let s=arguments[0],i=s.length||s.size||s.byteLength;if(a.readyState==="open"&&o.sctp&&i>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return n.apply(a,arguments)}}let r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){let a=r.apply(this,arguments);return t(a,this),a},qn(e,"datachannel",a=>(t(a.channel,a.target),a))}function Qh(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;let t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(r){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),r&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=r)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(r=>{let a=t[r];t[r]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=o=>{let n=o.target;if(n._lastConnectionState!==n.connectionState){n._lastConnectionState=n.connectionState;let s=new Event("connectionstatechange",o);n.dispatchEvent(s)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),a.apply(this,arguments)}})}function Jh(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;let r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(a){if(a&&a.sdp&&a.sdp.indexOf(` a=extmap-allow-mixed`)!==-1){let o=a.sdp.split(` `).filter(n=>n.trim()!=="a=extmap-allow-mixed").join(` `);e.RTCSessionDescription&&a instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:a.type,sdp:o}):a.sdp=o}return r.apply(this,arguments)}}function Rf(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let r=e.RTCPeerConnection.prototype.addIceCandidate;!r||r.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function If(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let r=e.RTCPeerConnection.prototype.setLocalDescription;!r||r.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let a=arguments[0]||{};if(typeof a!="object"||a.type&&a.sdp)return r.apply(this,arguments);if(a={type:a.type,sdp:a.sdp},!a.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":a.type="offer";break;default:a.type="answer";break}return a.sdp||a.type!=="offer"&&a.type!=="answer"?r.apply(this,[a]):(a.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(o=>r.apply(this,[o]))})}var fu,GL=C(()=>{"use strict";fu=A(lw());ui()});function $L({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let r=jh,a=NL(e),o={browserDetails:a,commonShim:cw,extractVersion:Cf,disableLog:DL,disableWarnings:ML,sdp:f8};switch(a.browser){case"chrome":if(!Wh||!qh||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),o;if(a.version===null)return r("Chrome shim can not determine version, not shimming."),o;r("adapter.js shimming chrome."),o.browserShim=Wh,Rf(e,a),If(e,a),Vh(e,a),B0(e,a),qh(e,a),H0(e,a),j0(e,a),z0(e,a),U0(e,a),V0(e,a),Sf(e,a),Yh(e,a),Qh(e,a),_f(e,a),kf(e,a),Jh(e,a);break;case"firefox":if(!Kh||!$h||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),o;r("adapter.js shimming firefox."),o.browserShim=Kh,Rf(e,a),If(e,a),Gh(e,a),$h(e,a),q0(e,a),$0(e,a),W0(e,a),G0(e,a),K0(e,a),X0(e,a),Y0(e,a),Q0(e,a),J0(e,a),Sf(e,a),Qh(e,a),_f(e,a),kf(e,a);break;case"safari":if(!Xh||!t.shimSafari)return r("Safari shim is not included in this adapter release."),o;r("adapter.js shimming safari."),o.browserShim=Xh,Rf(e,a),If(e,a),aw(e,a),nw(e,a),tw(e,a),Z0(e,a),ew(e,a),ow(e,a),rw(e,a),sw(e,a),Sf(e,a),Yh(e,a),_f(e,a),kf(e,a),Jh(e,a);break;default:r("Unsupported browser!");break}return o}var f8,KL=C(()=>{ui();HL();VL();WL();GL();f8=A(lw())});var p8,uw,XL=C(()=>{"use strict";KL();p8=$L({window:typeof window>"u"?void 0:window}),uw=p8});function Gl(e,t,r,a){Object.defineProperty(e,t,{get:r,set:a,enumerable:!0,configurable:!0})}function m8(e){let t=0;for(let o of e)t+=o.byteLength;let r=new Uint8Array(t),a=0;for(let o of e)r.set(o,a),a+=o.byteLength;return r}function Pf(){}function v8(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function JL(e,t,r,a,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new v8(r,a||e,o),s=La?La+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],n]:e._events[s].push(n):(e._events[s]=n,e._eventsCount++),e}function Zh(e,t){--e._eventsCount===0?e._events=new Pf:delete e._events[t]}function ha(){this._events=new Pf,this._eventsCount=0}var eg,dw,Lf,h8,QL,YL,fw,Wa,g8,pw,ke,ww,y8,La,$l,fi,xr,mw,xw,sg,di,ma,ZL,hw,tg,rg,gw,ag,og,yw,ng,Tf,Ef,vw,bw,pu,Cw=C(()=>{EL();XL();eg=class{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{let r=[],a=t.byteLength,o=Math.ceil(a/this.chunkedMTU),n=0,s=0;for(;s=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return dw.browserDetails.browser}getVersion(){return dw.browserDetails.version||0}isUnifiedPlanSupported(){let e=this.getBrowser(),t=dw.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let r,a=!1;try{r=new RTCPeerConnection,r.addTransceiver("audio"),a=!0}catch{}finally{r&&r.close()}return a}toString(){return`Supports: browser:${this.getBrowser()} version:${this.getVersion()} isIOS:${this.isIOS} isWebRTCSupported:${this.isWebRTCSupported()} isBrowserSupported:${this.isBrowserSupported()} isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},h8=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),QL=()=>Math.random().toString(36).slice(2),YL={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"},fw=class extends eg{noop(){}blobToArrayBuffer(t,r){let a=new FileReader;return a.onload=function(o){o.target&&r(o.target.result)},a.readAsArrayBuffer(t),a}binaryStringToArrayBuffer(t){let r=new Uint8Array(t.length);for(let a=0;a=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...r){let a=[g8,...r];for(let o in a)a[o]instanceof Error&&(a[o]="("+a[o].name+") "+a[o].message);t>=3?console.log(...a):t>=2?console.warn("WARNING",...a):t>=1&&console.error("ERROR",...a)}constructor(){this._logLevel=0}},ke=new pw,ww={},y8=Object.prototype.hasOwnProperty,La="~";Object.create&&(Pf.prototype=Object.create(null),new Pf().__proto__||(La=!1));ha.prototype.eventNames=function(){var t=[],r,a;if(this._eventsCount===0)return t;for(a in r=this._events)y8.call(r,a)&&t.push(La?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};ha.prototype.listeners=function(t){var r=La?La+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,n=a.length,s=new Array(n);ofi);Gl($l,"PeerErrorType",()=>xr);Gl($l,"BaseConnectionErrorType",()=>mw);Gl($l,"DataConnectionErrorType",()=>xw);Gl($l,"SerializationType",()=>sg);Gl($l,"SocketEventType",()=>di);Gl($l,"ServerMessageType",()=>ma);fi=(function(e){return e.Data="data",e.Media="media",e})({}),xr=(function(e){return e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc",e})({}),mw=(function(e){return e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed",e})({}),xw=(function(e){return e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big",e})({}),sg=(function(e){return e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw",e})({}),di=(function(e){return e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close",e})({}),ma=(function(e){return e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE",e})({}),ZL="1.5.5",hw=class extends ww.EventEmitter{constructor(t,r,a,o,n,s=5e3){super(),this.pingInterval=s,this._disconnected=!0,this._messagesQueue=[];let i=t?"wss://":"ws://";this._baseUrl=i+r+":"+a+o+"peerjs?key="+n}start(t,r){this._id=t;let a=`${this._baseUrl}&id=${t}&token=${r}`;this._socket||!this._disconnected||(this._socket=new WebSocket(a+"&version="+ZL),this._disconnected=!1,this._socket.onmessage=o=>{let n;try{n=JSON.parse(o.data),ke.log("Server message received:",n)}catch{ke.log("Invalid server message",o.data);return}this.emit(di.Message,n)},this._socket.onclose=o=>{this._disconnected||(ke.log("Socket closed.",o),this._cleanup(),this._disconnected=!0,this.emit(di.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),ke.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){ke.log("Cannot send heartbeat, because socket closed");return}let t=JSON.stringify({type:ma.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){let t=[...this._messagesQueue];this._messagesQueue=[];for(let r of t)this.send(r)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(di.Error,"Invalid message");return}if(!this._wsOpen())return;let r=JSON.stringify(t);this._socket.send(r)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}},tg=class{constructor(t){this.connection=t}startConnection(t){let r=this._startPeerConnection();if(this.connection.peerConnection=r,this.connection.type===fi.Media&&t._stream&&this._addTracksToConnection(t._stream,r),t.originator){let a=this.connection,o={ordered:!!t.reliable},n=r.createDataChannel(a.label,o);a._initializeDataChannel(n),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){ke.log("Creating RTCPeerConnection.");let t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){let r=this.connection.peer,a=this.connection.connectionId,o=this.connection.type,n=this.connection.provider;ke.log("Listening for ICE candidates."),t.onicecandidate=s=>{!s.candidate||!s.candidate.candidate||(ke.log(`Received ICE candidates for ${r}:`,s.candidate),n.socket.send({type:ma.Candidate,payload:{candidate:s.candidate,type:o,connectionId:a},dst:r}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":ke.log("iceConnectionState is failed, closing connections to "+r),this.connection.emitError(mw.NegotiationFailed,"Negotiation of connection to "+r+" failed."),this.connection.close();break;case"closed":ke.log("iceConnectionState is closed, closing connections to "+r),this.connection.emitError(mw.ConnectionClosed,"Connection to "+r+" closed."),this.connection.close();break;case"disconnected":ke.log("iceConnectionState changed to disconnected on the connection with "+r);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},ke.log("Listening for data channel"),t.ondatachannel=s=>{ke.log("Received data channel");let i=s.channel;n.getConnection(r,a)._initializeDataChannel(i)},ke.log("Listening for remote stream"),t.ontrack=s=>{ke.log("Received remote stream");let i=s.streams[0],l=n.getConnection(r,a);if(l.type===fi.Media){let c=l;this._addStreamToMediaConnection(i,c)}}}cleanup(){ke.log("Cleaning up PeerConnection to "+this.connection.peer);let t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};let r=t.signalingState!=="closed",a=!1,o=this.connection.dataChannel;o&&(a=!!o.readyState&&o.readyState!=="closed"),(r||a)&&t.close()}async _makeOffer(){let t=this.connection.peerConnection,r=this.connection.provider;try{let a=await t.createOffer(this.connection.options.constraints);ke.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(a.sdp=this.connection.options.sdpTransform(a.sdp)||a.sdp);try{await t.setLocalDescription(a),ke.log("Set localDescription:",a,`for:${this.connection.peer}`);let o={sdp:a,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===fi.Data){let n=this.connection;o={...o,label:n.label,reliable:n.reliable,serialization:n.serialization}}r.socket.send({type:ma.Offer,payload:o,dst:this.connection.peer})}catch(o){o!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(r.emitError(xr.WebRTC,o),ke.log("Failed to setLocalDescription, ",o))}}catch(a){r.emitError(xr.WebRTC,a),ke.log("Failed to createOffer, ",a)}}async _makeAnswer(){let t=this.connection.peerConnection,r=this.connection.provider;try{let a=await t.createAnswer();ke.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(a.sdp=this.connection.options.sdpTransform(a.sdp)||a.sdp);try{await t.setLocalDescription(a),ke.log("Set localDescription:",a,`for:${this.connection.peer}`),r.socket.send({type:ma.Answer,payload:{sdp:a,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(o){r.emitError(xr.WebRTC,o),ke.log("Failed to setLocalDescription, ",o)}}catch(a){r.emitError(xr.WebRTC,a),ke.log("Failed to create answer, ",a)}}async handleSDP(t,r){r=new RTCSessionDescription(r);let a=this.connection.peerConnection,o=this.connection.provider;ke.log("Setting remote description",r);let n=this;try{await a.setRemoteDescription(r),ke.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await n._makeAnswer()}catch(s){o.emitError(xr.WebRTC,s),ke.log("Failed to setRemoteDescription, ",s)}}async handleCandidate(t){ke.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),ke.log(`Added ICE candidate for:${this.connection.peer}`)}catch(r){this.connection.provider.emitError(xr.WebRTC,r),ke.log("Failed to handleCandidate, ",r)}}_addTracksToConnection(t,r){if(ke.log(`add tracks from stream ${t.id} to peer connection`),!r.addTrack)return ke.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(a=>{r.addTrack(a,t)})}_addStreamToMediaConnection(t,r){ke.log(`add stream ${t.id} to media connection ${r.connectionId}`),r.addStream(t)}},rg=class extends ww.EventEmitter{emitError(t,r){ke.error("Error:",r),this.emit("error",new gw(`${t}`,r))}},gw=class extends Error{constructor(t,r){typeof r=="string"?super(r):(super(),Object.assign(this,r)),this.type=t}},ag=class extends rg{get open(){return this._open}constructor(t,r,a){super(),this.peer=t,this.provider=r,this.options=a,this._open=!1,this.metadata=a.metadata}},og=class e extends ag{static#e=this.ID_PREFIX="mc_";get type(){return fi.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,r,a){super(t,r,a),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||e.ID_PREFIX+Wa.randomToken(),this._negotiator=new tg(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{ke.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{ke.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){ke.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){let r=t.type,a=t.payload;switch(t.type){case ma.Answer:this._negotiator.handleSDP(r,a.sdp),this._open=!0;break;case ma.Candidate:this._negotiator.handleCandidate(a.candidate);break;default:ke.warn(`Unrecognized message type:${r} from peer:${this.peer}`);break}}answer(t,r={}){if(this._localStream){ke.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,r&&r.sdpTransform&&(this.options.sdpTransform=r.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});let a=this.provider._getMessages(this.connectionId);for(let o of a)this.handleMessage(o);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}},yw=class{constructor(t){this._options=t}_buildRequest(t){let r=this._options.secure?"https":"http",{host:a,port:o,path:n,key:s}=this._options,i=new URL(`${r}://${a}:${o}${n}${s}/${t}`);return i.searchParams.set("ts",`${Date.now()}${Math.random()}`),i.searchParams.set("version",ZL),fetch(i.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{let t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){ke.error("Error retrieving ID",t);let r="";throw this._options.path==="/"&&this._options.host!==Wa.CLOUD_HOST&&(r=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+r)}}async listAllPeers(){try{let t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let r="";throw this._options.host===Wa.CLOUD_HOST?r="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":r="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+r)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw ke.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}},ng=class e extends ag{static#e=this.ID_PREFIX="dc_";static#t=this.MAX_BUFFERED_AMOUNT=8388608;get type(){return fi.Data}constructor(t,r,a){super(t,r,a),this.connectionId=this.options.connectionId||e.ID_PREFIX+QL(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new tg(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{ke.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=r=>{ke.log(`DC#${this.connectionId} dc onmessage:`,r.data)},this.dataChannel.onclose=()=>{ke.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t?.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,r=!1){if(!this.open){this.emitError(xw.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,r)}async handleMessage(t){let r=t.payload;switch(t.type){case ma.Answer:await this._negotiator.handleSDP(t.type,r.sdp);break;case ma.Candidate:await this._negotiator.handleCandidate(r.candidate);break;default:ke.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}},Tf=class extends ng{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",r=>this._handleDataMessage(r))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>ng.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(r){return ke.error(`DC#:${this.connectionId} Error when sending:`,r),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;let t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t?.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}},Ef=class extends Tf{close(t){super.close(t),this._chunkedData={}}constructor(t,r,a){super(t,r,a),this.chunker=new eg,this.serialization=sg.Binary,this._chunkedData={}}_handleDataMessage({data:t}){let r=D0(t),a=r.__peerData;if(a){if(a.type==="close"){this.close();return}this._handleChunk(r);return}this.emit("data",r)}_handleChunk(t){let r=t.__peerData,a=this._chunkedData[r]||{data:[],count:0,total:t.total};if(a.data[t.n]=new Uint8Array(t.data),a.count++,this._chunkedData[r]=a,a.total===a.count){delete this._chunkedData[r];let o=m8(a.data);this._handleDataMessage({data:o})}}_send(t,r){let a=M0(t);if(a instanceof Promise)return this._send_blob(a);if(!r&&a.byteLength>this.chunker.chunkedMTU){this._sendChunks(a);return}this._bufferedSend(a)}async _send_blob(t){let r=await t;if(r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}_sendChunks(t){let r=this.chunker.chunk(t);ke.log(`DC#${this.connectionId} Try to send ${r.length} chunks...`);for(let a of r)this.send(a,!0)}},vw=class extends Tf{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,r){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=sg.None}},bw=class extends Tf{_handleDataMessage({data:t}){let r=this.parse(this.decoder.decode(t)),a=r.__peerData;if(a&&a.type==="close"){this.close();return}this.emit("data",r)}_send(t,r){let a=this.encoder.encode(this.stringify(t));if(a.byteLength>=Wa.chunkedMTU){this.emitError(xw.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(a)}constructor(...t){super(...t),this.serialization=sg.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}},pu=class e extends rg{static#e=this.DEFAULT_KEY="peerjs";get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){let t=Object.create(null);for(let[r,a]of this._connections)t[r]=a;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,r){super(),this._serializers={raw:vw,json:bw,binary:Ef,"binary-utf8":Ef,default:Ef},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let a;if(t&&t.constructor==Object?r=t:t&&(a=t.toString()),r={debug:0,host:Wa.CLOUD_HOST,port:Wa.CLOUD_PORT,path:"/",key:e.DEFAULT_KEY,token:Wa.randomToken(),config:Wa.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...r},this._options=r,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Wa.CLOUD_HOST?this._options.secure=Wa.isSecure():this._options.host==Wa.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&ke.setLogFunction(this._options.logFunction),ke.logLevel=this._options.debug||0,this._api=new yw(r),this._socket=this._createServerConnection(),!Wa.supports.audioVideo&&!Wa.supports.data){this._delayedAbort(xr.BrowserIncompatible,"The current browser does not support WebRTC");return}if(a&&!Wa.validateId(a)){this._delayedAbort(xr.InvalidID,`ID "${a}" is invalid`);return}a?this._initialize(a):this._api.retrieveId().then(o=>this._initialize(o)).catch(o=>this._abort(xr.ServerError,o))}_createServerConnection(){let t=new hw(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(di.Message,r=>{this._handleMessage(r)}),t.on(di.Error,r=>{this._abort(xr.SocketError,r)}),t.on(di.Disconnected,()=>{this.disconnected||(this.emitError(xr.Network,"Lost connection to server."),this.disconnect())}),t.on(di.Close,()=>{this.disconnected||this._abort(xr.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){let r=t.type,a=t.payload,o=t.src;switch(r){case ma.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case ma.Error:this._abort(xr.ServerError,a.msg);break;case ma.IdTaken:this._abort(xr.UnavailableID,`ID "${this.id}" is taken`);break;case ma.InvalidKey:this._abort(xr.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case ma.Leave:ke.log(`Received leave message from ${o}`),this._cleanupPeer(o),this._connections.delete(o);break;case ma.Expire:this.emitError(xr.PeerUnavailable,`Could not connect to peer ${o}`);break;case ma.Offer:{let n=a.connectionId,s=this.getConnection(o,n);if(s&&(s.close(),ke.warn(`Offer received for existing Connection ID:${n}`)),a.type===fi.Media){let l=new og(o,this,{connectionId:n,_payload:a,metadata:a.metadata});s=l,this._addConnection(o,s),this.emit("call",l)}else if(a.type===fi.Data){let l=new this._serializers[a.serialization](o,this,{connectionId:n,_payload:a,metadata:a.metadata,label:a.label,serialization:a.serialization,reliable:a.reliable});s=l,this._addConnection(o,s),this.emit("connection",l)}else{ke.warn(`Received malformed connection type:${a.type}`);return}let i=this._getMessages(n);for(let l of i)s.handleMessage(l);break}default:{if(!a){ke.warn(`You received a malformed message from ${o} of type ${r}`);return}let n=a.connectionId,s=this.getConnection(o,n);s&&s.peerConnection?s.handleMessage(t):n?this._storeMessage(n,t):ke.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,r){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(r)}_getMessages(t){let r=this._lostMessages.get(t);return r?(this._lostMessages.delete(t),r):[]}connect(t,r={}){if(r={serialization:"default",...r},this.disconnected){ke.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(xr.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}let a=new this._serializers[r.serialization](t,this,r);return this._addConnection(t,a),a}call(t,r,a={}){if(this.disconnected){ke.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(xr.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!r){ke.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}let o=new og(t,this,{...a,_stream:r});return this._addConnection(t,o),o}_addConnection(t,r){ke.log(`add connection ${r.type}:${r.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(r)}_removeConnection(t){let r=this._connections.get(t.peer);if(r){let a=r.indexOf(t);a!==-1&&r.splice(a,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,r){let a=this._connections.get(t);if(!a)return null;for(let o of a)if(o.connectionId===r)return o;return null}_delayedAbort(t,r){setTimeout(()=>{this._abort(t,r)},0)}_abort(t,r){ke.error("Aborting!"),this.emitError(t,r),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(ke.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(let t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){let r=this._connections.get(t);if(r)for(let a of r)a.close()}disconnect(){if(this.disconnected)return;let t=this.id;ke.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)ke.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)ke.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=r=>{}){this._api.listAllPeers().then(r=>t(r)).catch(r=>this._abort(xr.ServerError,r))}}});async function ig(){let e=await fetch("https://api.electron-services.com/api/anticheat/v1/webrtc/connect").catch(()=>{});return e?.ok?await e.json():{iceServers:w8,peerjsServers:b8}}var b8,w8,Sw=C(()=>{"use strict";b8=[{host:"0.peerjs.com",token:"peerjs",enabled:!0,prefix:""}],w8=[{urls:["stun:stun.l.google.com:19302","stun:stun.l.google.com:19302","stun:stun1.l.google.com:19302","stun:stun2.l.google.com:19302","stun:stun3.l.google.com:19302","stun:stun4.l.google.com:19302"]}]});var o1=mt(ug=>{"use strict";var _8=Symbol.for("react.transitional.element"),k8=Symbol.for("react.fragment");function a1(e,t,r){var a=null;if(r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),"key"in t){r={};for(var o in t)o!=="key"&&(r[o]=t[o])}else r=t;return t=r.ref,{$$typeof:_8,type:e,key:a,ref:t!==void 0?t:null,props:r}}ug.Fragment=k8;ug.jsx=a1;ug.jsxs=a1});var me=mt((_oe,n1)=>{"use strict";n1.exports=o1()});var g1=mt(tt=>{"use strict";var Rw=Symbol.for("react.transitional.element"),R8=Symbol.for("react.portal"),I8=Symbol.for("react.fragment"),L8=Symbol.for("react.strict_mode"),E8=Symbol.for("react.profiler"),P8=Symbol.for("react.consumer"),T8=Symbol.for("react.context"),A8=Symbol.for("react.forward_ref"),D8=Symbol.for("react.suspense"),M8=Symbol.for("react.memo"),u1=Symbol.for("react.lazy"),N8=Symbol.for("react.activity"),s1=Symbol.iterator;function O8(e){return e===null||typeof e!="object"?null:(e=s1&&e[s1]||e["@@iterator"],typeof e=="function"?e:null)}var d1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f1=Object.assign,p1={};function gu(e,t,r){this.props=e,this.context=t,this.refs=p1,this.updater=r||d1}gu.prototype.isReactComponent={};gu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function m1(){}m1.prototype=gu.prototype;function Iw(e,t,r){this.props=e,this.context=t,this.refs=p1,this.updater=r||d1}var Lw=Iw.prototype=new m1;Lw.constructor=Iw;f1(Lw,gu.prototype);Lw.isPureReactComponent=!0;var i1=Array.isArray;function kw(){}var qt={H:null,A:null,T:null,S:null},h1=Object.prototype.hasOwnProperty;function Ew(e,t,r){var a=r.ref;return{$$typeof:Rw,type:e,key:t,ref:a!==void 0?a:null,props:r}}function F8(e,t){return Ew(e.type,t,e.props)}function Pw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rw}function B8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var l1=/\/+/g;function _w(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B8(""+e.key):t.toString(36)}function H8(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(kw,kw):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function hu(e,t,r,a,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Rw:case R8:s=!0;break;case u1:return s=e._init,hu(s(e._payload),t,r,a,o)}}if(s)return o=o(e),s=a===""?"."+_w(e,0):a,i1(o)?(r="",s!=null&&(r=s.replace(l1,"$&/")+"/"),hu(o,t,r,"",function(c){return c})):o!=null&&(Pw(o)&&(o=F8(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(l1,"$&/")+"/")+s)),t.push(o)),1;s=0;var i=a===""?".":a+":";if(i1(e))for(var l=0;l{"use strict";y1.exports=g1()});var I1=mt(Jt=>{"use strict";function Mw(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[a];if(0>>1;afg(i,r))lfg(c,i)?(e[a]=c,e[l]=r,a=l):(e[a]=i,e[s]=r,a=s);else if(lfg(c,r))e[a]=c,e[l]=r,a=l;else break e}}return t}function fg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}Jt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(v1=performance,Jt.unstable_now=function(){return v1.now()}):(Tw=Date,b1=Tw.now(),Jt.unstable_now=function(){return Tw.now()-b1});var v1,Tw,b1,_s=[],pi=[],j8=1,Oo=null,ga=3,Nw=!1,Af=!1,Df=!1,Ow=!1,C1=typeof setTimeout=="function"?setTimeout:null,S1=typeof clearTimeout=="function"?clearTimeout:null,w1=typeof setImmediate<"u"?setImmediate:null;function pg(e){for(var t=Wn(pi);t!==null;){if(t.callback===null)mg(pi);else if(t.startTime<=e)mg(pi),t.sortIndex=t.expirationTime,Mw(_s,t);else break;t=Wn(pi)}}function Fw(e){if(Df=!1,pg(e),!Af)if(Wn(_s)!==null)Af=!0,vu||(vu=!0,yu());else{var t=Wn(pi);t!==null&&Bw(Fw,t.startTime-e)}}var vu=!1,Mf=-1,_1=5,k1=-1;function R1(){return Ow?!0:!(Jt.unstable_now()-k1<_1)}function Aw(){if(Ow=!1,vu){var e=Jt.unstable_now();k1=e;var t=!0;try{e:{Af=!1,Df&&(Df=!1,S1(Mf),Mf=-1),Nw=!0;var r=ga;try{t:{for(pg(e),Oo=Wn(_s);Oo!==null&&!(Oo.expirationTime>e&&R1());){var a=Oo.callback;if(typeof a=="function"){Oo.callback=null,ga=Oo.priorityLevel;var o=a(Oo.expirationTime<=e);if(e=Jt.unstable_now(),typeof o=="function"){Oo.callback=o,pg(e),t=!0;break t}Oo===Wn(_s)&&mg(_s),pg(e)}else mg(_s);Oo=Wn(_s)}if(Oo!==null)t=!0;else{var n=Wn(pi);n!==null&&Bw(Fw,n.startTime-e),t=!1}}break e}finally{Oo=null,ga=r,Nw=!1}t=void 0}}finally{t?yu():vu=!1}}}var yu;typeof w1=="function"?yu=function(){w1(Aw)}:typeof MessageChannel<"u"?(Dw=new MessageChannel,x1=Dw.port2,Dw.port1.onmessage=Aw,yu=function(){x1.postMessage(null)}):yu=function(){C1(Aw,0)};var Dw,x1;function Bw(e,t){Mf=C1(function(){e(Jt.unstable_now())},t)}Jt.unstable_IdlePriority=5;Jt.unstable_ImmediatePriority=1;Jt.unstable_LowPriority=4;Jt.unstable_NormalPriority=3;Jt.unstable_Profiling=null;Jt.unstable_UserBlockingPriority=2;Jt.unstable_cancelCallback=function(e){e.callback=null};Jt.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=r,Mw(pi,e),Wn(_s)===null&&e===Wn(pi)&&(Df?(S1(Mf),Mf=-1):Df=!0,Bw(Fw,r-a))):(e.sortIndex=o,Mw(_s,e),Af||Nw||(Af=!0,vu||(vu=!0,yu()))),e};Jt.unstable_shouldYield=R1;Jt.unstable_wrapCallback=function(e){var t=ga;return function(){var r=ga;ga=t;try{return e.apply(this,arguments)}finally{ga=r}}}});var E1=mt((Loe,L1)=>{"use strict";L1.exports=I1()});var T1=mt(Pa=>{"use strict";var V8=J();function P1(e){var t="https://react.dev/errors/"+e;if(1{"use strict";function A1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A1)}catch(e){console.error(e)}}A1(),D1.exports=T1()});var WA=mt(zy=>{"use strict";var Fr=E1(),nP=J(),G8=Gn();function ee(e){var t="https://react.dev/errors/"+e;if(1ku||(e.current=Sx[ku],Sx[ku]=null,ku--)}function zt(e,t){ku++,Sx[ku]=e.current,e.current=t}var Yn=Qn(null),ip=Qn(null),Ri=Qn(null),Xg=Qn(null);function Yg(e,t){switch(zt(Ri,t),zt(ip,e),zt(Yn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jE(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jE(t),e=TA(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Yr(Yn),zt(Yn,e)}function Vu(){Yr(Yn),Yr(ip),Yr(Ri)}function _x(e){e.memoizedState!==null&&zt(Xg,e);var t=Yn.current,r=TA(t,e.type);t!==r&&(zt(ip,e),zt(Yn,r))}function Qg(e){ip.current===e&&(Yr(Yn),Yr(ip)),Xg.current===e&&(Yr(Xg),vp._currentValue=ec)}var Hw,O1;function Yl(e){if(Hw===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Hw=t&&t[1]||"",O1=-1)":-1o||l[a]!==c[o]){var d=` `+l[a].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=a&&0<=o);break}}}finally{zw=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Yl(r):""}function Q8(e,t){switch(e.tag){case 26:case 27:case 5:return Yl(e.type);case 16:return Yl("Lazy");case 13:return e.child!==t&&t!==null?Yl("Suspense Fallback"):Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 15:return Uw(e.type,!1);case 11:return Uw(e.type.render,!1);case 1:return Uw(e.type,!0);case 31:return Yl("Activity");default:return""}}function F1(e){try{var t="",r=null;do t+=Q8(e,r),r=e,e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var kx=Object.prototype.hasOwnProperty,hC=Fr.unstable_scheduleCallback,jw=Fr.unstable_cancelCallback,J8=Fr.unstable_shouldYield,Z8=Fr.unstable_requestPaint,yo=Fr.unstable_now,eq=Fr.unstable_getCurrentPriorityLevel,fP=Fr.unstable_ImmediatePriority,pP=Fr.unstable_UserBlockingPriority,Jg=Fr.unstable_NormalPriority,tq=Fr.unstable_LowPriority,mP=Fr.unstable_IdlePriority,rq=Fr.log,aq=Fr.unstable_setDisableYieldValue,Cp=null,vo=null;function xi(e){if(typeof rq=="function"&&aq(e),vo&&typeof vo.setStrictMode=="function")try{vo.setStrictMode(Cp,e)}catch{}}var bo=Math.clz32?Math.clz32:sq,oq=Math.log,nq=Math.LN2;function sq(e){return e>>>=0,e===0?32:31-(oq(e)/nq|0)|0}var yg=256,vg=262144,bg=4194304;function Ql(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _y(e,t,r){var a=e.pendingLanes;if(a===0)return 0;var o=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var i=a&134217727;return i!==0?(a=i&~n,a!==0?o=Ql(a):(s&=i,s!==0?o=Ql(s):r||(r=i&~e,r!==0&&(o=Ql(r))))):(i=a&~n,i!==0?o=Ql(i):s!==0?o=Ql(s):r||(r=a&~e,r!==0&&(o=Ql(r)))),o===0?0:t!==0&&t!==o&&(t&n)===0&&(n=o&-o,r=t&-t,n>=r||n===32&&(r&4194048)!==0)?t:o}function Sp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function iq(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hP(){var e=bg;return bg<<=1,(bg&62914560)===0&&(bg=4194304),e}function Vw(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function _p(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lq(e,t,r,a,o,n){var s=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(r=s&~r;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var mq=/[\n"\\]/g;function pn(e){return e.replace(mq,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lx(e,t,r,a,o,n,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bo(t)):e.value!==""+Bo(t)&&(e.value=""+Bo(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Ex(e,s,Bo(t)):r!=null?Ex(e,s,Bo(r)):a!=null&&e.removeAttribute("value"),o==null&&n!=null&&(e.defaultChecked=!!n),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+Bo(i):e.removeAttribute("name")}function _P(e,t,r,a,o,n,s,i){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||r!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){Ix(e);return}r=r!=null?""+Bo(r):"",t=t!=null?""+Bo(t):r,i||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=i?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Ix(e)}function Ex(e,t,r){t==="number"&&Zg(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Fu(e,t,r,a){if(e=e.options,t){t={};for(var o=0;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tx=!1;if(Bs)try{bu={},Object.defineProperty(bu,"passive",{get:function(){Tx=!0}}),window.addEventListener("test",bu,bu),window.removeEventListener("test",bu,bu)}catch{Tx=!1}var bu,Ci=null,xC=null,Og=null;function EP(){if(Og)return Og;var e,t=xC,r=t.length,a,o="value"in Ci?Ci.value:Ci.textContent,n=o.length;for(e=0;e=Kf),K1=" ",X1=!1;function TP(e,t){switch(e){case"keyup":return jq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lu=!1;function qq(e,t){switch(e){case"compositionend":return AP(t);case"keypress":return t.which!==32?null:(X1=!0,K1);case"textInput":return e=t.data,e===K1&&X1?null:e;default:return null}}function Wq(e,t){if(Lu)return e==="compositionend"||!SC&&TP(e,t)?(e=EP(),Og=xC=Ci=null,Lu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Z1(r)}}function OP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?OP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FP(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zg(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Zg(e.document)}return t}function _C(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Zq=Bs&&"documentMode"in document&&11>=document.documentMode,Eu=null,Ax=null,Yf=null,Dx=!1;function tE(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Dx||Eu==null||Eu!==Zg(a)||(a=Eu,"selectionStart"in a&&_C(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Yf&&up(Yf,a)||(Yf=a,a=yy(Ax,"onSelect"),0>=s,o-=s,$n=1<<32-bo(t)+o|r<w?(B=_,_=null):B=_.sibling;var F=p(m,_,v[w],x);if(F===null){_===null&&(_=B);break}e&&_&&F.alternate===null&&t(m,_),y=n(F,y,w),I===null?S=F:I.sibling=F,I=F,_=B}if(w===v.length)return r(m,_),ht&&Ps(m,w),S;if(_===null){for(;ww?(B=_,_=null):B=_.sibling;var ie=p(m,_,F.value,x);if(ie===null){_===null&&(_=B);break}e&&_&&ie.alternate===null&&t(m,_),y=n(ie,y,w),I===null?S=ie:I.sibling=ie,I=ie,_=B}if(F.done)return r(m,_),ht&&Ps(m,w),S;if(_===null){for(;!F.done;w++,F=v.next())F=u(m,F.value,x),F!==null&&(y=n(F,y,w),I===null?S=F:I.sibling=F,I=F);return ht&&Ps(m,w),S}for(_=a(_);!F.done;w++,F=v.next())F=f(_,m,w,F.value,x),F!==null&&(e&&F.alternate!==null&&_.delete(F.key===null?w:F.key),y=n(F,y,w),I===null?S=F:I.sibling=F,I=F);return e&&_.forEach(function($){return t(m,$)}),ht&&Ps(m,w),S}function b(m,y,v,x){if(typeof v=="object"&&v!==null&&v.type===_u&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case gg:e:{for(var S=v.key;y!==null;){if(y.key===S){if(S=v.type,S===_u){if(y.tag===7){r(m,y.sibling),x=o(y,v.props.children),x.return=m,m=x;break e}}else if(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hi&&Jl(S)===y.type){r(m,y.sibling),x=o(y,v.props),Bf(x,v),x.return=m,m=x;break e}r(m,y);break}else t(m,y);y=y.sibling}v.type===_u?(x=tc(v.props.children,m.mode,x,v.key),x.return=m,m=x):(x=Bg(v.type,v.key,v.props,null,m.mode,x),Bf(x,v),x.return=m,m=x)}return s(m);case Vf:e:{for(S=v.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){r(m,y.sibling),x=o(y,v.children||[]),x.return=m,m=x;break e}else{r(m,y);break}else t(m,y);y=y.sibling}x=Qw(v,m.mode,x),x.return=m,m=x}return s(m);case hi:return v=Jl(v),b(m,y,v,x)}if(qf(v))return h(m,y,v,x);if(Of(v)){if(S=Of(v),typeof S!="function")throw Error(ee(150));return v=S.call(v),g(m,y,v,x)}if(typeof v.then=="function")return b(m,y,kg(v),x);if(v.$$typeof===As)return b(m,y,_g(m,v),x);Rg(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,y!==null&&y.tag===6?(r(m,y.sibling),x=o(y,v),x.return=m,m=x):(r(m,y),x=Yw(v,m.mode,x),x.return=m,m=x),s(m)):r(m,y)}return function(m,y,v,x){try{pp=0;var S=b(m,y,v,x);return zu=null,S}catch(_){if(_===ad||_===Py)throw _;var I=ho(29,_,null,m.mode);return I.lanes=x,I.return=m,I}}}var ic=JP(!0),ZP=JP(!1),gi=!1;function DC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Li(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ei(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(kt&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=ty(e),qP(e,null,r),t}return Ey(e,a,t,r),ty(e)}function Jf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,yP(e,r)}}function Zw(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var o=null,n=null;if(r=r.firstBaseUpdate,r!==null){do{var s={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};n===null?o=n=s:n=n.next=s,r=r.next}while(r!==null);n===null?o=n=t:n=n.next=t}else o=n=t;r={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Ux=!1;function Zf(){if(Ux){var e=Hu;if(e!==null)throw e}}function ep(e,t,r,a){Ux=!1;var o=e.updateQueue;gi=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,c=l.next;l.next=null,s===null?n=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=c:i.next=c,d.lastBaseUpdate=l))}if(n!==null){var u=o.baseState;s=0,d=c=l=null,i=n;do{var p=i.lane&-536870913,f=p!==i.lane;if(f?(pt&p)===p:(a&p)===p){p!==0&&p===Gu&&(Ux=!0),d!==null&&(d=d.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var h=e,g=i;p=t;var b=r;switch(g.tag){case 1:if(h=g.payload,typeof h=="function"){u=h.call(b,u,p);break e}u=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h=="function"?h.call(b,u,p):h,p==null)break e;u=$t({},u,p);break e;case 2:gi=!0}}p=i.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=o.callbacks,f===null?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(c=d=f,l=u):d=d.next=f,s|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);d===null&&(l=u),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,n===null&&(o.shared.lanes=0),Bi|=s,e.lanes=s,e.memoizedState=u}}function eT(e,t){if(typeof e!="function")throw Error(ee(191,e));e.call(t)}function tT(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;en?n:8;var s=Ge.T,i={};Ge.T=i,GC(e,!1,t,r);try{var l=o(),c=Ge.S;if(c!==null&&c(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=lW(l,a);tp(e,t,d,wo(e))}else tp(e,t,a,wo(e))}catch(u){tp(e,t,{then:function(){},status:"rejected",reason:u},wo())}finally{Rt.p=n,s!==null&&i.types!==null&&(s.types=i.types),Ge.T=s}}function mW(){}function Gx(e,t,r,a){if(e.tag!==5)throw Error(ee(476));var o=RT(e).queue;kT(e,o,t,ec,r===null?mW:function(){return IT(e),r(a)})}function RT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ec,baseState:ec,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:ec},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function IT(e){var t=RT(e);t.next===null&&(t=e.alternate.memoizedState),tp(e,t.next.queue,{},wo())}function WC(){return sa(vp)}function LT(){return br().memoizedState}function ET(){return br().memoizedState}function hW(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=wo();e=Li(r);var a=Ei(t,e,r);a!==null&&(Ya(a,t,r),Jf(a,t,r)),t={cache:PC()},e.payload=t;return}t=t.return}}function gW(e,t,r){var a=wo();r={lane:a,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},My(e)?TT(t,r):(r=RC(e,t,r,a),r!==null&&(Ya(r,e,a),AT(r,t,a)))}function PT(e,t,r){var a=wo();tp(e,t,r,a)}function tp(e,t,r,a){var o={lane:a,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(My(e))TT(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,r);if(o.hasEagerState=!0,o.eagerState=i,xo(i,s))return Ey(e,t,o,0),Ht===null&&Ly(),!1}catch{}if(r=RC(e,t,o,a),r!==null)return Ya(r,e,a),AT(r,t,a),!0}return!1}function GC(e,t,r,a){if(a={lane:2,revertLane:tS(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},My(e)){if(t)throw Error(ee(479))}else t=RC(e,r,a,2),t!==null&&Ya(t,e,2)}function My(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function TT(e,t){Uu=iy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function AT(e,t,r){if((r&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,yP(e,r)}}var hp={readContext:sa,use:Ay,useCallback:mr,useContext:mr,useEffect:mr,useImperativeHandle:mr,useLayoutEffect:mr,useInsertionEffect:mr,useMemo:mr,useReducer:mr,useRef:mr,useState:mr,useDebugValue:mr,useDeferredValue:mr,useTransition:mr,useSyncExternalStore:mr,useId:mr,useHostTransitionStatus:mr,useFormState:mr,useActionState:mr,useOptimistic:mr,useMemoCache:mr,useCacheRefresh:mr};hp.useEffectEvent=mr;var DT={readContext:sa,use:Ay,useCallback:function(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e},useContext:sa,useEffect:gE,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Ug(4194308,4,wT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ug(4194308,4,e,t)},useInsertionEffect:function(e,t){Ug(4,2,e,t)},useMemo:function(e,t){var r=Ta();t=t===void 0?null:t;var a=e();if(lc){xi(!0);try{e()}finally{xi(!1)}}return r.memoizedState=[a,t],a},useReducer:function(e,t,r){var a=Ta();if(r!==void 0){var o=r(t);if(lc){xi(!0);try{r(t)}finally{xi(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=gW.bind(null,rt,e),[a.memoizedState,e]},useRef:function(e){var t=Ta();return e={current:e},t.memoizedState=e},useState:function(e){e=qx(e);var t=e.queue,r=PT.bind(null,rt,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:VC,useDeferredValue:function(e,t){var r=Ta();return qC(r,e,t)},useTransition:function(){var e=qx(!1);return e=kT.bind(null,rt,e.queue,!0,!1),Ta().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var a=rt,o=Ta();if(ht){if(r===void 0)throw Error(ee(407));r=r()}else{if(r=t(),Ht===null)throw Error(ee(349));(pt&127)!==0||sT(a,t,r)}o.memoizedState=r;var n={value:r,getSnapshot:t};return o.queue=n,gE(lT.bind(null,a,n,e),[e]),a.flags|=2048,Ku(9,{destroy:void 0},iT.bind(null,a,n,r,t),null),r},useId:function(){var e=Ta(),t=Ht.identifierPrefix;if(ht){var r=Kn,a=$n;r=(a&~(1<<32-bo(a)-1)).toString(32)+r,t="_"+t+"R_"+r,r=ly++,0<\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?n.multiple=!0:a.size&&(n.size=a.size);break;default:n=typeof a.is=="string"?s.createElement(o,{is:a.is}):s.createElement(o)}}n[oa]=t,n[Qa]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch(ia(n,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Rs(t)}}return Wt(t),ix(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Rs(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(ee(166));if(e=Ri.current,wu(t)){if(e=t.stateNode,r=t.memoizedProps,a=null,o=na,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[oa]=t,e=!!(e.nodeValue===r||a!==null&&a.suppressHydrationWarning===!0||PA(e.nodeValue,r)),e||Oi(t,!0)}else e=vy(e).createTextNode(a),e[oa]=t,t.stateNode=e}return Wt(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(a=wu(t),r!==null){if(e===null){if(!a)throw Error(ee(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ee(557));e[oa]=t}else nc(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Wt(t),e=!1}else r=Jw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if((t.flags&128)!==0)throw Error(ee(558))}return Wt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=wu(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(ee(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(ee(317));o[oa]=t}else nc(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Wt(t),o=!1}else o=Jw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),(t.flags&128)!==0?(t.lanes=r,t):(r=a!==null,e=e!==null&&e.memoizedState!==null,r&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==o&&(a.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Ig(t,t.updateQueue),Wt(t),null);case 4:return Vu(),e===null&&rS(t.stateNode.containerInfo),Wt(t),null;case 10:return Os(t.type),Wt(t),null;case 19:if(Yr(vr),a=t.memoizedState,a===null)return Wt(t),null;if(o=(t.flags&128)!==0,n=a.rendering,n===null)if(o)Hf(a,!1);else{if(hr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=sy(e),n!==null){for(t.flags|=128,Hf(a,!1),e=n.updateQueue,t.updateQueue=e,Ig(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)WP(r,e),r=r.sibling;return zt(vr,vr.current&1|2),ht&&Ps(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&yo()>fy&&(t.flags|=128,o=!0,Hf(a,!1),t.lanes=4194304)}else{if(!o)if(e=sy(n),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ig(t,e),Hf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!n.alternate&&!ht)return Wt(t),null}else 2*yo()-a.renderingStartTime>fy&&r!==536870912&&(t.flags|=128,o=!0,Hf(a,!1),t.lanes=4194304);a.isBackwards?(n.sibling=t.child,t.child=n):(e=a.last,e!==null?e.sibling=n:t.child=n,a.last=n)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=yo(),e.sibling=null,r=vr.current,zt(vr,o?r&1|2:r&1),ht&&Ps(t,a.treeForkCount),e):(Wt(t),null);case 22:case 23:return mo(t),MC(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(r&536870912)!==0&&(t.flags&128)===0&&(Wt(t),t.subtreeFlags&6&&(t.flags|=8192)):Wt(t),r=t.updateQueue,r!==null&&Ig(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==r&&(t.flags|=2048),e!==null&&Yr(rc),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Os(_r),Wt(t),null;case 25:return null;case 30:return null}throw Error(ee(156,t.tag))}function xW(e,t){switch(EC(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Os(_r),Vu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qg(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(ee(340));nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yr(vr),null;case 4:return Vu(),null;case 10:return Os(t.type),null;case 22:case 23:return mo(t),MC(),e!==null&&Yr(rc),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Os(_r),null;case 25:return null;default:return null}}function WT(e,t){switch(EC(t),t.tag){case 3:Os(_r),Vu();break;case 26:case 27:case 5:Qg(t);break;case 4:Vu();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:Yr(vr);break;case 10:Os(t.type);break;case 22:case 23:mo(t),MC(),e!==null&&Yr(rc);break;case 24:Os(_r)}}function Ep(e,t){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var o=a.next;r=o;do{if((r.tag&e)===e){a=void 0;var n=r.create,s=r.inst;a=n(),s.destroy=a}r=r.next}while(r!==o)}}catch(i){Tt(t,t.return,i)}}function Fi(e,t,r){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e){var s=a.inst,i=s.destroy;if(i!==void 0){s.destroy=void 0,o=t;var l=r,c=i;try{c()}catch(d){Tt(o,l,d)}}}a=a.next}while(a!==n)}}catch(d){Tt(t,t.return,d)}}function GT(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{tT(t,r)}catch(a){Tt(e,e.return,a)}}}function $T(e,t,r){r.props=cc(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(a){Tt(e,t,a)}}function rp(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof r=="function"?e.refCleanup=r(a):r.current=a}}catch(o){Tt(e,t,o)}}function Xn(e,t){var r=e.ref,a=e.refCleanup;if(r!==null)if(typeof a=="function")try{a()}catch(o){Tt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){Tt(e,t,o)}else r.current=null}function KT(e){var t=e.type,r=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&a.focus();break e;case"img":r.src?a.src=r.src:r.srcSet&&(a.srcset=r.srcSet)}}catch(o){Tt(e,e.return,o)}}function lx(e,t,r){try{var a=e.stateNode;UW(a,e.type,r,t),a[Qa]=t}catch(o){Tt(e,e.return,o)}}function XT(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zi(e.type)||e.tag===4}function cx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qx(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ds));else if(a!==4&&(a===27&&zi(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Qx(e,t,r),e=e.sibling;e!==null;)Qx(e,t,r),e=e.sibling}function dy(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(a===27&&zi(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(dy(e,t,r),e=e.sibling;e!==null;)dy(e,t,r),e=e.sibling}function YT(e){var t=e.stateNode,r=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ia(t,a,r),t[oa]=e,t[Qa]=r}catch(n){Tt(e,e.return,n)}}var Ts=!1,Sr=!1,ux=!1,EE=typeof WeakSet=="function"?WeakSet:Set,Kr=null;function CW(e,t){if(e=e.containerInfo,oC=Cy,e=FP(e),_C(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var o=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{r.nodeType,n.nodeType}catch{r=null;break e}var s=0,i=-1,l=-1,c=0,d=0,u=e,p=null;t:for(;;){for(var f;u!==r||o!==0&&u.nodeType!==3||(i=s+o),u!==n||a!==0&&u.nodeType!==3||(l=s+a),u.nodeType===3&&(s+=u.nodeValue.length),(f=u.firstChild)!==null;)p=u,u=f;for(;;){if(u===e)break t;if(p===r&&++c===o&&(i=s),p===n&&++d===a&&(l=s),(f=u.nextSibling)!==null)break;u=p,p=u.parentNode}u=f}r=i===-1||l===-1?null:{start:i,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(nC={focusedElem:e,selectionRange:r},Cy=!1,Kr=t;Kr!==null;)if(t=Kr,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Kr=e;else for(;Kr!==null;){switch(t=Kr,n=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r title"))),ia(n,a,r),n[oa]=e,Xr(n),a=n;break e;case"link":var s=QE("link","href",o).get(a+(r.href||""));if(s){for(var i=0;ib&&(s=b,b=g,g=s);var m=eE(i,g),y=eE(i,b);if(m&&y&&(f.rangeCount!==1||f.anchorNode!==m.node||f.anchorOffset!==m.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var v=u.createRange();v.setStart(m.node,m.offset),f.removeAllRanges(),g>b?(f.addRange(v),f.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),f.addRange(v))}}}}for(u=[],f=i;f=f.parentNode;)f.nodeType===1&&u.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;ir?32:r,Ge.T=null,r=eC,eC=null;var n=Ti,s=Fs;if(Or=0,Yu=Ti=null,Fs=0,(kt&6)!==0)throw Error(ee(331));var i=kt;if(kt|=4,iA(n.current),oA(n,n.current,s,r),kt=i,Pp(0,!1),vo&&typeof vo.onPostCommitFiberRoot=="function")try{vo.onPostCommitFiberRoot(Cp,n)}catch{}return!0}finally{Rt.p=o,Ge.T=a,CA(e,t)}}function DE(e,t,r){t=Uo(r,t),t=Kx(e.stateNode,t,2),e=Ei(e,t,2),e!==null&&(_p(e,2),Jn(e))}function Tt(e,t,r){if(e.tag===3)DE(e,e,r);else for(;t!==null;){if(t.tag===3){DE(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pi===null||!Pi.has(a))){e=Uo(r,e),r=BT(2),a=Ei(t,r,2),a!==null&&(HT(r,a,t,e),_p(a,2),Jn(a));break}}t=t.return}}function fx(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new kW;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(r)||(JC=!0,o.add(r),e=PW.bind(null,e,t,r),t.then(e,e))}function PW(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ht===e&&(pt&r)===r&&(hr===4||hr===3&&(pt&62914560)===pt&&300>yo()-Ny?(kt&2)===0&&Qu(e,0):ZC|=r,Xu===pt&&(Xu=0)),Jn(e)}function _A(e,t){t===0&&(t=hP()),e=pc(e,t),e!==null&&(_p(e,t),Jn(e))}function TW(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_A(e,r)}function AW(e,t){var r=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(ee(314))}a!==null&&a.delete(t),_A(e,r)}function DW(e,t){return hC(e,t)}var hy=null,Su=null,rC=!1,gy=!1,px=!1,ki=0;function Jn(e){e!==Su&&e.next===null&&(Su===null?hy=Su=e:Su=Su.next=e),gy=!0,rC||(rC=!0,NW())}function Pp(e,t){if(!px&&gy){px=!0;do for(var r=!1,a=hy;a!==null;){if(!t)if(e!==0){var o=a.pendingLanes;if(o===0)var n=0;else{var s=a.suspendedLanes,i=a.pingedLanes;n=(1<<31-bo(42|e)+1)-1,n&=o&~(s&~i),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(r=!0,ME(a,n))}else n=pt,n=_y(a,a===Ht?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||Sp(a,n)||(r=!0,ME(a,n));a=a.next}while(r);px=!1}}function MW(){kA()}function kA(){gy=rC=!1;var e=0;ki!==0&&VW()&&(e=ki);for(var t=yo(),r=null,a=hy;a!==null;){var o=a.next,n=RA(a,t);n===0?(a.next=null,r===null?hy=o:r.next=o,o===null&&(Su=r)):(r=a,(e!==0||(n&3)!==0)&&(gy=!0)),a=o}Or!==0&&Or!==5||Pp(e,!1),ki!==0&&(ki=0)}function RA(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes&-62914561;0i)break;var d=l.transferSize,u=l.initiatorType;d&&UE(u)&&(l=l.responseEnd,s+=d*(l"u"?null:document;function NA(e,t,r){var a=nd;if(a&&typeof t=="string"&&t){var o=pn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),KE.has(o)||(KE.add(o),e={rel:e,crossOrigin:r,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),ia(t,"link",e),Xr(t),a.head.appendChild(t)))}}function JW(e){Vs.D(e),NA("dns-prefetch",e,null)}function ZW(e,t){Vs.C(e,t),NA("preconnect",e,t)}function eG(e,t,r){Vs.L(e,t,r);var a=nd;if(a&&e&&t){var o='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+pn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+pn(r.imageSizes)+'"]')):o+='[href="'+pn(e)+'"]';var n=o;switch(t){case"style":n=Ju(e);break;case"script":n=sd(e)}qo.has(n)||(e=$t({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),qo.set(n,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Tp(n))||t==="script"&&a.querySelector(Ap(n))||(t=a.createElement("link"),ia(t,"link",e),Xr(t),a.head.appendChild(t)))}}function tG(e,t){Vs.m(e,t);var r=nd;if(r&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+pn(a)+'"][href="'+pn(e)+'"]',n=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=sd(e)}if(!qo.has(n)&&(e=$t({rel:"modulepreload",href:e},t),qo.set(n,e),r.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Ap(n)))return}a=r.createElement("link"),ia(a,"link",e),Xr(a),r.head.appendChild(a)}}}function rG(e,t,r){Vs.S(e,t,r);var a=nd;if(a&&e){var o=Ou(a).hoistableStyles,n=Ju(e);t=t||"default";var s=o.get(n);if(!s){var i={loading:0,preload:null};if(s=a.querySelector(Tp(n)))i.loading=5;else{e=$t({rel:"stylesheet",href:e,"data-precedence":t},r),(r=qo.get(n))&&aS(e,r);var l=s=a.createElement("link");Xr(l),ia(l,"link",e),l._p=new Promise(function(c,d){l.onload=c,l.onerror=d}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Wg(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:i},o.set(n,s)}}}function aG(e,t){Vs.X(e,t);var r=nd;if(r&&e){var a=Ou(r).hoistableScripts,o=sd(e),n=a.get(o);n||(n=r.querySelector(Ap(o)),n||(e=$t({src:e,async:!0},t),(t=qo.get(o))&&oS(e,t),n=r.createElement("script"),Xr(n),ia(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(o,n))}}function oG(e,t){Vs.M(e,t);var r=nd;if(r&&e){var a=Ou(r).hoistableScripts,o=sd(e),n=a.get(o);n||(n=r.querySelector(Ap(o)),n||(e=$t({src:e,async:!0,type:"module"},t),(t=qo.get(o))&&oS(e,t),n=r.createElement("script"),Xr(n),ia(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(o,n))}}function XE(e,t,r,a){var o=(o=Ri.current)?by(o):null;if(!o)throw Error(ee(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Ju(r.href),r=Ou(o).hoistableStyles,a=r.get(t),a||(a={type:"style",instance:null,count:0,state:null},r.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ju(r.href);var n=Ou(o).hoistableStyles,s=n.get(e);if(s||(o=o.ownerDocument||o,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,s),(n=o.querySelector(Tp(e)))&&!n._p&&(s.instance=n,s.state.loading=5),qo.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},qo.set(e,r),n||nG(o,e,r,s.state))),t&&a===null)throw Error(ee(528,""));return s}if(t&&a!==null)throw Error(ee(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sd(r),r=Ou(o).hoistableScripts,a=r.get(t),a||(a={type:"script",instance:null,count:0,state:null},r.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(ee(444,e))}}function Ju(e){return'href="'+pn(e)+'"'}function Tp(e){return'link[rel="stylesheet"]['+e+"]"}function OA(e){return $t({},e,{"data-precedence":e.precedence,precedence:null})}function nG(e,t,r,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ia(t,"link",r),Xr(t),e.head.appendChild(t))}function sd(e){return'[src="'+pn(e)+'"]'}function Ap(e){return"script[async]"+e}function YE(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+pn(r.href)+'"]');if(a)return t.instance=a,Xr(a),a;var o=$t({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Xr(a),ia(a,"style",o),Wg(a,r.precedence,e),t.instance=a;case"stylesheet":o=Ju(r.href);var n=e.querySelector(Tp(o));if(n)return t.state.loading|=4,t.instance=n,Xr(n),n;a=OA(r),(o=qo.get(o))&&aS(a,o),n=(e.ownerDocument||e).createElement("link"),Xr(n);var s=n;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),ia(n,"link",a),t.state.loading|=4,Wg(n,r.precedence,e),t.instance=n;case"script":return n=sd(r.src),(o=e.querySelector(Ap(n)))?(t.instance=o,Xr(o),o):(a=r,(o=qo.get(n))&&(a=$t({},r),oS(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),Xr(o),ia(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(ee(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Wg(a,r.precedence,e));return t.instance}function Wg(e,t,r){for(var a=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,n=o,s=0;s title"):null)}function sG(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function FA(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function iG(e,t,r,a){if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=Ju(a.href),n=t.querySelector(Tp(o));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=wy.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=n,Xr(n);return}n=t.ownerDocument||t,a=OA(a),(o=qo.get(o))&&aS(a,o),n=n.createElement("link"),Xr(n);var s=n;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),ia(n,"link",a),r.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=wy.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var yx=0;function lG(e,t){return e.stylesheets&&e.count===0&&$g(e,e.stylesheets),0yx?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function wy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$g(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xy=null;function $g(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xy=new Map,t.forEach(cG,e),xy=null,wy.call(e))}function cG(e,t){if(!(t.state.loading&4)){var r=xy.get(e);if(r)var a=r.get(null);else{r=new Map,xy.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n{"use strict";function GA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(GA)}catch(e){console.error(e)}}GA(),$A.exports=WA()});function yG(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function Uy(e){return e.label!==void 0}function Zn(...e){return e.filter(Boolean).join(" ")}function HG(e){let[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}function YA(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function UG(e,t){let r={};return[e,t].forEach((a,o)=>{let n=o===1,s=n?"--mobile-offset":"--offset",i=n?MG:DG;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof a=="number"||typeof a=="string"?l(a):typeof a=="object"?["top","right","bottom","left"].forEach(c=>{a[c]===void 0?r[`${s}-${c}`]=i:r[`${s}-${c}`]=typeof a[c]=="number"?`${a[c]}px`:a[c]}):l(i)}),r}var pe,QA,vG,bG,wG,xG,CG,SG,_G,kG,RG,cS,uS,Za,IG,LG,EG,PG,TG,er,AG,DG,MG,XA,NG,OG,FG,BG,zG,JA,Ui=C(()=>{"use client";pe=A(J(),1),QA=A(Gn(),1);vG=e=>{switch(e){case"success":return xG;case"info":return SG;case"warning":return CG;case"error":return _G;default:return null}},bG=Array(12).fill(0),wG=({visible:e,className:t})=>pe.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},pe.default.createElement("div",{className:"sonner-spinner"},bG.map((r,a)=>pe.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),xG=pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},pe.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),CG=pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},pe.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),SG=pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},pe.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),_G=pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},pe.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),kG=pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},pe.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),pe.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),RG=()=>{let[e,t]=pe.default.useState(document.hidden);return pe.default.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},cS=1,uS=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:a,...o}=t,n=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:cS++,s=this.toasts.find(l=>l.id===n),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),s?this.toasts=this.toasts.map(l=>l.id===n?(this.publish({...l,...t,id:n,title:a}),{...l,...t,id:n,dismissible:i,title:a}):l):this.addToast({title:a,...o,dismissible:i,id:n}),n},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let o=Promise.resolve(t instanceof Function?t():t),n=a!==void 0,s,i=o.then(async c=>{if(s=["resolve",c],pe.default.isValidElement(c))n=!1,this.create({id:a,type:"default",message:c});else if(LG(c)&&!c.ok){n=!1;let u=typeof r.error=="function"?await r.error(`HTTP error! status: ${c.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${c.status}`):r.description,h=typeof u=="object"&&!pe.default.isValidElement(u)?u:{message:u};this.create({id:a,type:"error",description:p,...h})}else if(c instanceof Error){n=!1;let u=typeof r.error=="function"?await r.error(c):r.error,p=typeof r.description=="function"?await r.description(c):r.description,h=typeof u=="object"&&!pe.default.isValidElement(u)?u:{message:u};this.create({id:a,type:"error",description:p,...h})}else if(r.success!==void 0){n=!1;let u=typeof r.success=="function"?await r.success(c):r.success,p=typeof r.description=="function"?await r.description(c):r.description,h=typeof u=="object"&&!pe.default.isValidElement(u)?u:{message:u};this.create({id:a,type:"success",description:p,...h})}}).catch(async c=>{if(s=["reject",c],r.error!==void 0){n=!1;let d=typeof r.error=="function"?await r.error(c):r.error,u=typeof r.description=="function"?await r.description(c):r.description,f=typeof d=="object"&&!pe.default.isValidElement(d)?d:{message:d};this.create({id:a,type:"error",description:u,...f})}}).finally(()=>{n&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),l=()=>new Promise((c,d)=>i.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof a!="string"&&typeof a!="number"?{unwrap:l}:Object.assign(a,{unwrap:l})},this.custom=(t,r)=>{let a=r?.id||cS++;return this.create({jsx:t(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Za=new uS,IG=(e,t)=>{let r=t?.id||cS++;return Za.addToast({title:e,...t,id:r}),r},LG=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",EG=IG,PG=()=>Za.toasts,TG=()=>Za.getActiveToasts(),er=Object.assign(EG,{success:Za.success,info:Za.info,warning:Za.warning,error:Za.error,custom:Za.custom,message:Za.message,promise:Za.promise,dismiss:Za.dismiss,loading:Za.loading},{getHistory:PG,getToasts:TG});yG("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");AG=3,DG="24px",MG="16px",XA=4e3,NG=356,OG=14,FG=45,BG=200;zG=e=>{var t,r,a,o,n,s,i,l,c;let{invert:d,toast:u,unstyled:p,interacting:f,setHeights:h,visibleToasts:g,heights:b,index:m,toasts:y,expanded:v,removeToast:x,defaultRichColors:S,closeButton:I,style:_,cancelButtonStyle:w,actionButtonStyle:B,className:F="",descriptionClassName:ie="",duration:$,position:Y,gap:Z,expandByDefault:re,classNames:Q,icons:P,closeButtonAriaLabel:D="Close toast"}=e,[L,U]=pe.default.useState(null),[ne,z]=pe.default.useState(null),[T,E]=pe.default.useState(!1),[M,V]=pe.default.useState(!1),[K,X]=pe.default.useState(!1),[W,xe]=pe.default.useState(!1),[ve,Ve]=pe.default.useState(!1),[_e,xt]=pe.default.useState(0),[Qt,it]=pe.default.useState(0),_t=pe.default.useRef(u.duration||$||XA),ft=pe.default.useRef(null),st=pe.default.useRef(null),da=m===0,R=m+1<=g,N=u.type,H=u.dismissible!==!1,de=u.className||"",G=u.descriptionClassName||"",ae=pe.default.useMemo(()=>b.findIndex(et=>et.toastId===u.id)||0,[b,u.id]),he=pe.default.useMemo(()=>{var et;return(et=u.closeButton)!=null?et:I},[u.closeButton,I]),Qe=pe.default.useMemo(()=>u.duration||$||XA,[u.duration,$]),He=pe.default.useRef(0),ct=pe.default.useRef(0),Ze=pe.default.useRef(0),Je=pe.default.useRef(null),[Un,ta]=Y.split("-"),Wr=pe.default.useMemo(()=>b.reduce((et,yr,Gr)=>Gr>=ae?et:et+yr.height,0),[b,ae]),un=RG(),Bl=u.invert||d,li=N==="loading";ct.current=pe.default.useMemo(()=>ae*Z+Wr,[ae,Wr]),pe.default.useEffect(()=>{_t.current=Qe},[Qe]),pe.default.useEffect(()=>{E(!0)},[]),pe.default.useEffect(()=>{let et=st.current;if(et){let yr=et.getBoundingClientRect().height;return it(yr),h(Gr=>[{toastId:u.id,height:yr,position:u.position},...Gr]),()=>h(Gr=>Gr.filter(fa=>fa.toastId!==u.id))}},[h,u.id]),pe.default.useLayoutEffect(()=>{if(!T)return;let et=st.current,yr=et.style.height;et.style.height="auto";let Gr=et.getBoundingClientRect().height;et.style.height=yr,it(Gr),h(fa=>fa.find(fr=>fr.toastId===u.id)?fa.map(fr=>fr.toastId===u.id?{...fr,height:Gr}:fr):[{toastId:u.id,height:Gr,position:u.position},...fa])},[T,u.title,u.description,h,u.id,u.jsx,u.action,u.cancel]);let uo=pe.default.useCallback(()=>{V(!0),xt(ct.current),h(et=>et.filter(yr=>yr.toastId!==u.id)),setTimeout(()=>{x(u)},BG)},[u,x,h,ct]);pe.default.useEffect(()=>{if(u.promise&&N==="loading"||u.duration===1/0||u.type==="loading")return;let et;return v||f||un?(()=>{if(Ze.current{u.onAutoClose==null||u.onAutoClose.call(u,u),uo()},_t.current)),()=>clearTimeout(et)},[v,f,u,N,un,uo]),pe.default.useEffect(()=>{u.delete&&(uo(),u.onDismiss==null||u.onDismiss.call(u,u))},[uo,u.delete]);function Dh(){var et;if(P?.loading){var yr;return pe.default.createElement("div",{className:Zn(Q?.loader,u==null||(yr=u.classNames)==null?void 0:yr.loader,"sonner-loader"),"data-visible":N==="loading"},P.loading)}return pe.default.createElement(wG,{className:Zn(Q?.loader,u==null||(et=u.classNames)==null?void 0:et.loader),visible:N==="loading"})}let su=u.icon||P?.[N]||vG(N);var gf,iu;return pe.default.createElement("li",{tabIndex:0,ref:st,className:Zn(F,de,Q?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,Q?.default,Q?.[N],u==null||(r=u.classNames)==null?void 0:r[N]),"data-sonner-toast":"","data-rich-colors":(gf=u.richColors)!=null?gf:S,"data-styled":!(u.jsx||u.unstyled||p),"data-mounted":T,"data-promise":!!u.promise,"data-swiped":ve,"data-removed":M,"data-visible":R,"data-y-position":Un,"data-x-position":ta,"data-index":m,"data-front":da,"data-swiping":K,"data-dismissible":H,"data-type":N,"data-invert":Bl,"data-swipe-out":W,"data-swipe-direction":ne,"data-expanded":!!(v||re&&T),"data-testid":u.testId,style:{"--index":m,"--toasts-before":m,"--z-index":y.length-m,"--offset":`${M?_e:ct.current}px`,"--initial-height":re?"auto":`${Qt}px`,..._,...u.style},onDragEnd:()=>{X(!1),U(null),Je.current=null},onPointerDown:et=>{et.button!==2&&(li||!H||(ft.current=new Date,xt(ct.current),et.target.setPointerCapture(et.pointerId),et.target.tagName!=="BUTTON"&&(X(!0),Je.current={x:et.clientX,y:et.clientY})))},onPointerUp:()=>{var et,yr,Gr;if(W||!H)return;Je.current=null;let fa=Number(((et=st.current)==null?void 0:et.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cs=Number(((yr=st.current)==null?void 0:yr.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),fr=new Date().getTime()-((Gr=ft.current)==null?void 0:Gr.getTime()),Ra=L==="x"?fa:Cs,lu=Math.abs(Ra)/fr;if(Math.abs(Ra)>=FG||lu>.11){xt(ct.current),u.onDismiss==null||u.onDismiss.call(u,u),z(L==="x"?fa>0?"right":"left":Cs>0?"down":"up"),uo(),xe(!0);return}else{var fo,k;(fo=st.current)==null||fo.style.setProperty("--swipe-amount-x","0px"),(k=st.current)==null||k.style.setProperty("--swipe-amount-y","0px")}Ve(!1),X(!1),U(null)},onPointerMove:et=>{var yr,Gr,fa;if(!Je.current||!H||((yr=window.getSelection())==null?void 0:yr.toString().length)>0)return;let fr=et.clientY-Je.current.y,Ra=et.clientX-Je.current.x;var lu;let fo=(lu=e.swipeDirections)!=null?lu:HG(Y);!L&&(Math.abs(Ra)>1||Math.abs(fr)>1)&&U(Math.abs(Ra)>Math.abs(fr)?"x":"y");let k={x:0,y:0},O=j=>1/(1.5+Math.abs(j)/20);if(L==="y"){if(fo.includes("top")||fo.includes("bottom"))if(fo.includes("top")&&fr<0||fo.includes("bottom")&&fr>0)k.y=fr;else{let j=fr*O(fr);k.y=Math.abs(j)0)k.x=Ra;else{let j=Ra*O(Ra);k.x=Math.abs(j)0||Math.abs(k.y)>0)&&Ve(!0),(Gr=st.current)==null||Gr.style.setProperty("--swipe-amount-x",`${k.x}px`),(fa=st.current)==null||fa.style.setProperty("--swipe-amount-y",`${k.y}px`)}},he&&!u.jsx&&N!=="loading"?pe.default.createElement("button",{"aria-label":D,"data-disabled":li,"data-close-button":!0,onClick:li||!H?()=>{}:()=>{uo(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Zn(Q?.closeButton,u==null||(a=u.classNames)==null?void 0:a.closeButton)},(iu=P?.close)!=null?iu:kG):null,(N||u.icon||u.promise)&&u.icon!==null&&(P?.[N]!==null||u.icon)?pe.default.createElement("div",{"data-icon":"",className:Zn(Q?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||Dh():null,u.type!=="loading"?su:null):null,pe.default.createElement("div",{"data-content":"",className:Zn(Q?.content,u==null||(n=u.classNames)==null?void 0:n.content)},pe.default.createElement("div",{"data-title":"",className:Zn(Q?.title,u==null||(s=u.classNames)==null?void 0:s.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?pe.default.createElement("div",{"data-description":"",className:Zn(ie,G,Q?.description,u==null||(i=u.classNames)==null?void 0:i.description)},typeof u.description=="function"?u.description():u.description):null),pe.default.isValidElement(u.cancel)?u.cancel:u.cancel&&Uy(u.cancel)?pe.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||w,onClick:et=>{Uy(u.cancel)&&H&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,et),uo())},className:Zn(Q?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,pe.default.isValidElement(u.action)?u.action:u.action&&Uy(u.action)?pe.default.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||B,onClick:et=>{Uy(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,et),!et.defaultPrevented&&uo())},className:Zn(Q?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};JA=pe.default.forwardRef(function(t,r){let{id:a,invert:o,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:l,className:c,offset:d,mobileOffset:u,theme:p="light",richColors:f,duration:h,style:g,visibleToasts:b=AG,toastOptions:m,dir:y=YA(),gap:v=OG,icons:x,containerAriaLabel:S="Notifications"}=t,[I,_]=pe.default.useState([]),w=pe.default.useMemo(()=>a?I.filter(T=>T.toasterId===a):I.filter(T=>!T.toasterId),[I,a]),B=pe.default.useMemo(()=>Array.from(new Set([n].concat(w.filter(T=>T.position).map(T=>T.position)))),[w,n]),[F,ie]=pe.default.useState([]),[$,Y]=pe.default.useState(!1),[Z,re]=pe.default.useState(!1),[Q,P]=pe.default.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=pe.default.useRef(null),L=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=pe.default.useRef(null),ne=pe.default.useRef(!1),z=pe.default.useCallback(T=>{_(E=>{var M;return(M=E.find(V=>V.id===T.id))!=null&&M.delete||Za.dismiss(T.id),E.filter(({id:V})=>V!==T.id)})},[]);return pe.default.useEffect(()=>Za.subscribe(T=>{if(T.dismiss){requestAnimationFrame(()=>{_(E=>E.map(M=>M.id===T.id?{...M,delete:!0}:M))});return}setTimeout(()=>{QA.default.flushSync(()=>{_(E=>{let M=E.findIndex(V=>V.id===T.id);return M!==-1?[...E.slice(0,M),{...E[M],...T},...E.slice(M+1)]:[T,...E]})})})}),[I]),pe.default.useEffect(()=>{if(p!=="system"){P(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;let T=window.matchMedia("(prefers-color-scheme: dark)");try{T.addEventListener("change",({matches:E})=>{P(E?"dark":"light")})}catch{T.addListener(({matches:M})=>{try{P(M?"dark":"light")}catch(V){console.error(V)}})}},[p]),pe.default.useEffect(()=>{I.length<=1&&Y(!1)},[I]),pe.default.useEffect(()=>{let T=E=>{var M;if(s.every(X=>E[X]||E.code===X)){var K;Y(!0),(K=D.current)==null||K.focus()}E.code==="Escape"&&(document.activeElement===D.current||(M=D.current)!=null&&M.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[s]),pe.default.useEffect(()=>{if(D.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,ne.current=!1)}},[D.current]),pe.default.createElement("section",{ref:r,"aria-label":`${S} ${L}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((T,E)=>{var M;let[V,K]=T.split("-");return w.length?pe.default.createElement("ol",{key:T,dir:y==="auto"?YA():y,tabIndex:-1,ref:D,className:c,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":V,"data-x-position":K,style:{"--front-toast-height":`${((M=F[0])==null?void 0:M.height)||0}px`,"--width":`${NG}px`,"--gap":`${v}px`,...g,...UG(d,u)},onBlur:X=>{ne.current&&!X.currentTarget.contains(X.relatedTarget)&&(ne.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,U.current=X.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{Z||Y(!1)},onDragEnd:()=>Y(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},w.filter(X=>!X.position&&E===0||X.position===T).map((X,W)=>{var xe,ve;return pe.default.createElement(zG,{key:X.id,icons:x,index:W,toast:X,defaultRichColors:f,duration:(xe=m?.duration)!=null?xe:h,className:m?.className,descriptionClassName:m?.descriptionClassName,invert:o,visibleToasts:b,closeButton:(ve=m?.closeButton)!=null?ve:l,interacting:Z,position:T,style:m?.style,unstyled:m?.unstyled,classNames:m?.classNames,cancelButtonStyle:m?.cancelButtonStyle,actionButtonStyle:m?.actionButtonStyle,closeButtonAriaLabel:m?.closeButtonAriaLabel,removeToast:z,toasts:w.filter(Ve=>Ve.position==X.position),heights:F.filter(Ve=>Ve.position==X.position),setHeights:ie,expandByDefault:i,gap:v,expanded:$,swipeDirections:t.swipeDirections})})):null}))})});function ZA(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{});var e2,t2,id,qy=C(()=>{dS();e2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,t2=Vy,id=(e,t)=>r=>{var a;if(t?.variants==null)return t2(e,r?.class,r?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(c=>{let d=r?.[c],u=n?.[c];if(d===null)return null;let p=e2(d)||e2(u);return o[c][p]}),i=r&&Object.entries(r).reduce((c,d)=>{let[u,p]=d;return p===void 0||(c[u]=p),c},{}),l=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((c,d)=>{let{class:u,className:p,...f}=d;return Object.entries(f).every(h=>{let[g,b]=h;return Array.isArray(b)?b.includes({...n,...i}[g]):{...n,...i}[g]===b})?[...c,u,p]:c},[]);return t2(e,s,l,r?.class,r?.className)}});var jG,VG,i2,r2,qG,WG,l2,GG,$G,KG,pS,XG,YG,QG,JG,c2,ZG,e$,t$,a2,r$,a$,o$,n$,s$,i$,u2,l$,c$,Br,d2,f2,u$,d$,f$,p$,m$,h$,ji,lt,Vi,fS,qs,p2,g$,mS,y$,v$,b$,w$,Se,hc,o2,x$,C$,n2,S$,Wy,Re,Mp,_$,s2,k$,R$,Gy,I$,qi,gc,m2,h2,g2,y2,L$,v2,b2,w2,E$,x2,C2=C(()=>{jG=(e,t)=>{let r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),i2=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),r2=[],qG="arbitrary..",WG=e=>{let t=$G(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return GG(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return l2(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=a[s],c=r[s];return l?c?jG(c,l):l:c||r2}return r[s]||r2}}},l2=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let c=l2(e,t+1,n);if(c)return c}let s=r.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?qG+a:void 0})(),$G=e=>{let{theme:t,classGroups:r}=e;return KG(r,t)},KG=(e,t)=>{let r=i2();for(let a in e){let o=e[a];pS(o,r,a,t)}return r},pS=(e,t,r,a)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){YG(e,t,r);return}if(typeof e=="function"){QG(e,t,r,a);return}JG(e,t,r,a)},YG=(e,t,r)=>{let a=e===""?t:c2(t,e);a.classGroupId=r},QG=(e,t,r,a)=>{if(ZG(e)){pS(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(VG(r,e))},JG=(e,t,r,a)=>{let o=Object.entries(e),n=o.length;for(let s=0;s{let r=e,a=t.split("-"),o=a.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,e$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),o=(n,s)=>{r[n]=s,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(n){let s=r[n];if(s!==void 0)return s;if((s=a[n])!==void 0)return o(n,s),s},set(n,s){n in r?r[n]=s:o(n,s)}}},t$=[],a2=(e,t,r,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),r$=e=>{let{prefix:t,experimentalParseClassName:r}=e,a=o=>{let n=[],s=0,i=0,l=0,c,d=o.length;for(let g=0;gl?c-l:void 0;return a2(n,f,p,h)};if(t){let o=t+":",n=a;a=s=>s.startsWith(o)?n(s.slice(o.length)):a2(t$,!1,s,void 0,!0)}if(r){let o=a;a=n=>r({className:n,parseClassName:o})}return a},a$=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{let a=[],o=[];for(let n=0;n0&&(o.sort(),a.push(...o),o=[]),a.push(s)):o.push(s)}return o.length>0&&(o.sort(),a.push(...o)),a}},o$=e=>({cache:e$(e.cacheSize),parseClassName:r$(e),sortModifiers:a$(e),...WG(e)}),n$=/\s+/,s$=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n}=t,s=[],i=e.trim().split(n$),l="";for(let c=i.length-1;c>=0;c-=1){let d=i[c],{isExternal:u,modifiers:p,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}=r(d);if(u){l=d+(l.length>0?" "+l:l);continue}let b=!!g,m=a(b?h.substring(0,g):h);if(!m){if(!b){l=d+(l.length>0?" "+l:l);continue}if(m=a(h),!m){l=d+(l.length>0?" "+l:l);continue}b=!1}let y=p.length===0?"":p.length===1?p[0]:n(p).join(":"),v=f?y+"!":y,x=v+m;if(s.indexOf(x)>-1)continue;s.push(x);let S=o(m,b);for(let I=0;I0?" "+l:l)}return l},i$=(...e)=>{let t=0,r,a,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,o,n,s=l=>{let c=t.reduce((d,u)=>u(d),e());return r=o$(c),a=r.cache.get,o=r.cache.set,n=i,i(l)},i=l=>{let c=a(l);if(c)return c;let d=s$(l,r);return o(l,d),d};return n=s,(...l)=>n(i$(...l))},c$=[],Br=e=>{let t=r=>r[e]||c$;return t.isThemeGetter=!0,t},d2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,u$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,d$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>u$.test(e),lt=e=>!!e&&!Number.isNaN(Number(e)),Vi=e=>!!e&&Number.isInteger(Number(e)),fS=e=>e.endsWith("%")&<(e.slice(0,-1)),qs=e=>d$.test(e),p2=()=>!0,g$=e=>f$.test(e)&&!p$.test(e),mS=()=>!1,y$=e=>m$.test(e),v$=e=>h$.test(e),b$=e=>!Se(e)&&!Re(e),w$=e=>qi(e,g2,mS),Se=e=>d2.test(e),hc=e=>qi(e,y2,g$),o2=e=>qi(e,L$,lt),x$=e=>qi(e,b2,p2),C$=e=>qi(e,v2,mS),n2=e=>qi(e,m2,mS),S$=e=>qi(e,h2,v$),Wy=e=>qi(e,w2,y$),Re=e=>f2.test(e),Mp=e=>gc(e,y2),_$=e=>gc(e,v2),s2=e=>gc(e,m2),k$=e=>gc(e,g2),R$=e=>gc(e,h2),Gy=e=>gc(e,w2,!0),I$=e=>gc(e,b2,!0),qi=(e,t,r)=>{let a=d2.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},gc=(e,t,r=!1)=>{let a=f2.exec(e);return a?a[1]?t(a[1]):r:!1},m2=e=>e==="position"||e==="percentage",h2=e=>e==="image"||e==="url",g2=e=>e==="length"||e==="size"||e==="bg-size",y2=e=>e==="length",L$=e=>e==="number",v2=e=>e==="family-name",b2=e=>e==="number"||e==="weight",w2=e=>e==="shadow",E$=()=>{let e=Br("color"),t=Br("font"),r=Br("text"),a=Br("font-weight"),o=Br("tracking"),n=Br("leading"),s=Br("breakpoint"),i=Br("container"),l=Br("spacing"),c=Br("radius"),d=Br("shadow"),u=Br("inset-shadow"),p=Br("text-shadow"),f=Br("drop-shadow"),h=Br("blur"),g=Br("perspective"),b=Br("aspect"),m=Br("ease"),y=Br("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...x(),Re,Se],I=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],w=()=>[Re,Se,l],B=()=>[ji,"full","auto",...w()],F=()=>[Vi,"none","subgrid",Re,Se],ie=()=>["auto",{span:["full",Vi,Re,Se]},Vi,Re,Se],$=()=>[Vi,"auto",Re,Se],Y=()=>["auto","min","max","fr",Re,Se],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...w()],P=()=>[ji,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],D=()=>[ji,"screen","full","dvw","lvw","svw","min","max","fit",...w()],L=()=>[ji,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],U=()=>[e,Re,Se],ne=()=>[...x(),s2,n2,{position:[Re,Se]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",k$,w$,{size:[Re,Se]}],E=()=>[fS,Mp,hc],M=()=>["","none","full",c,Re,Se],V=()=>["",lt,Mp,hc],K=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[lt,fS,s2,n2],xe=()=>["","none",h,Re,Se],ve=()=>["none",lt,Re,Se],Ve=()=>["none",lt,Re,Se],_e=()=>[lt,Re,Se],xt=()=>[ji,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qs],breakpoint:[qs],color:[p2],container:[qs],"drop-shadow":[qs],ease:["in","out","in-out"],font:[b$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qs],shadow:[qs],spacing:["px",lt],text:[qs],"text-shadow":[qs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ji,Se,Re,b]}],container:["container"],columns:[{columns:[lt,Se,Re,i]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Vi,"auto",Re,Se]}],basis:[{basis:[ji,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[lt,ji,"auto","initial","none",Se]}],grow:[{grow:["",lt,Re,Se]}],shrink:[{shrink:["",lt,Re,Se]}],order:[{order:[Vi,"first","last","none",Re,Se]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...L()]}],"min-block-size":[{"min-block":["auto",...L()]}],"max-block-size":[{"max-block":["none",...L()]}],w:[{w:[i,"screen",...P()]}],"min-w":[{"min-w":[i,"screen","none",...P()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,Mp,hc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,I$,x$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fS,Se]}],"font-family":[{font:[_$,C$,t]}],"font-features":[{"font-features":[Se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Re,Se]}],"line-clamp":[{"line-clamp":[lt,"none",Re,o2]}],leading:[{leading:[n,...w()]}],"list-image":[{"list-image":["none",Re,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Re,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[lt,"from-font","auto",Re,hc]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[lt,"auto",Re,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re,Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Re,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vi,Re,Se],radial:["",Re,Se],conic:[Vi,Re,Se]},R$,S$]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:E()}],"gradient-via-pos":[{via:E()}],"gradient-to-pos":[{to:E()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-bs":[{"border-bs":U()}],"border-color-be":[{"border-be":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[lt,Re,Se]}],"outline-w":[{outline:["",lt,Mp,hc]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",d,Gy,Wy]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",u,Gy,Wy]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[lt,hc]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",p,Gy,Wy]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[lt,Re,Se]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[lt]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[Re,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[lt]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Re,Se]}],filter:[{filter:["","none",Re,Se]}],blur:[{blur:xe()}],brightness:[{brightness:[lt,Re,Se]}],contrast:[{contrast:[lt,Re,Se]}],"drop-shadow":[{"drop-shadow":["","none",f,Gy,Wy]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",lt,Re,Se]}],"hue-rotate":[{"hue-rotate":[lt,Re,Se]}],invert:[{invert:["",lt,Re,Se]}],saturate:[{saturate:[lt,Re,Se]}],sepia:[{sepia:["",lt,Re,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Re,Se]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[lt,Re,Se]}],"backdrop-contrast":[{"backdrop-contrast":[lt,Re,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",lt,Re,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[lt,Re,Se]}],"backdrop-invert":[{"backdrop-invert":["",lt,Re,Se]}],"backdrop-opacity":[{"backdrop-opacity":[lt,Re,Se]}],"backdrop-saturate":[{"backdrop-saturate":[lt,Re,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",lt,Re,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Re,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[lt,"initial",Re,Se]}],ease:[{ease:["linear","initial",m,Re,Se]}],delay:[{delay:[lt,Re,Se]}],animate:[{animate:["none",y,Re,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Re,Se]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[Re,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Re,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Re,Se]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[lt,Mp,hc,o2]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},x2=l$(E$)});function se(...e){return x2(Vy(e))}var Ot=C(()=>{"use strict";dS();C2()});var T2=mt((Yoe,P2)=>{"use strict";var T$=function(e){return A$(e)&&!D$(e)};function A$(e){return!!e&&typeof e=="object"}function D$(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||O$(e)}var M$=typeof Symbol=="function"&&Symbol.for,N$=M$?Symbol.for("react.element"):60103;function O$(e){return e.$$typeof===N$}function F$(e){return Array.isArray(e)?[]:{}}function Np(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ld(F$(e),e,t):e}function B$(e,t,r){return e.concat(t).map(function(a){return Np(a,r)})}function H$(e,t){if(!t.customMerge)return ld;var r=t.customMerge(e);return typeof r=="function"?r:ld}function z$(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function L2(e){return Object.keys(e).concat(z$(e))}function E2(e,t){try{return t in e}catch{return!1}}function U$(e,t){return E2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function j$(e,t,r){var a={};return r.isMergeableObject(e)&&L2(e).forEach(function(o){a[o]=Np(e[o],r)}),L2(t).forEach(function(o){U$(e,o)||(E2(e,o)&&r.isMergeableObject(t[o])?a[o]=H$(o,r)(e[o],t[o],r):a[o]=Np(t[o],r))}),a}function ld(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||B$,r.isMergeableObject=r.isMergeableObject||T$,r.cloneUnlessOtherwiseSpecified=Np;var a=Array.isArray(t),o=Array.isArray(e),n=a===o;return n?a?r.arrayMerge(e,t,r):j$(e,t,r):Np(t,r)}ld.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,a){return ld(r,a,t)},{})};var V$=ld;P2.exports=V$});function cd(e,t){let r=t&&t.cache?t.cache:X$,a=t&&t.serializer?t.serializer:K$;return(t&&t.strategy?t.strategy:W$)(e,{cache:r,serializer:a})}function q$(e){return e==null||typeof e=="number"||typeof e=="boolean"}function A2(e,t,r,a){let o=q$(a)?a:r(a),n=t.get(o);return typeof n>"u"&&(n=e.call(this,a),t.set(o,n)),n}function D2(e,t,r){let a=Array.prototype.slice.call(arguments,3),o=r(a),n=t.get(o);return typeof n>"u"&&(n=e.apply(this,a),t.set(o,n)),n}function gS(e,t,r,a,o){return r.bind(t,e,a,o)}function W$(e,t){let r=e.length===1?A2:D2;return gS(e,this,r,t.cache.create(),t.serializer)}function G$(e,t){return gS(e,this,D2,t.cache.create(),t.serializer)}function $$(e,t){return gS(e,this,A2,t.cache.create(),t.serializer)}var K$,hS,X$,ud,yS=C(()=>{K$=function(){return JSON.stringify(arguments)},hS=class{cache;constructor(){this.cache=Object.create(null)}get(t){return this.cache[t]}set(t,r){this.cache[t]=r}},X$={create:function(){return new hS}},ud={variadic:G$,monadic:$$}});function vS(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function bS(e,t){return cd(e,{cache:(r=t,{create:()=>({get:a=>r[a],set(a,o){r[a]=o}})}),strategy:ud.variadic});var r}function dd(e,t){return bS(((...r)=>new e(...r)),t)}function wS(e){return{getDateTimeFormat:dd(Intl.DateTimeFormat,e.dateTime),getNumberFormat:dd(Intl.NumberFormat,e.number),getPluralRules:dd(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:dd(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:dd(Intl.ListFormat,e.list),getDisplayNames:dd(Intl.DisplayNames,e.displayNames)}}var So,_o,Ky=C(()=>{yS();So=class extends Error{constructor(t,r){let a=t;r&&(a+=": "+r),super(a),this.code=t,r&&(this.originalMessage=r)}},_o=(function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e})(_o||{})});function M2(e){let t={};return e.replace(Y$,r=>{let a=r.length;switch(r[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Y$,N2=C(()=>{Y$=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g});var O2,F2=C(()=>{O2=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i});function U2(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");let t=e.split(O2).filter(a=>a.length>0),r=[];for(let a of t){let o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");let[n,...s]=o;for(let i of s)if(i.length===0)throw new Error("Invalid number skeleton");r.push({stem:n,options:s})}return r}function Q$(e){return e.replace(/^(.*?)-/,"")}function H2(e){let t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(j2,function(r,a,o){return typeof o!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):o==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof o=="string"?o.length:0)),""}),t}function q2(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Z$(e){let t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!V2.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function z2(e){let t={};return q2(e)||t}function W2(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Q$(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((n,s)=>({...n,...z2(s)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((n,s)=>({...n,...z2(s)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(J$,function(n,s,i,l,c,d){if(s)t.minimumIntegerDigits=i.length;else{if(l&&c)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(V2.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(B2.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(B2,function(s,i,l,c,d,u){return l==="*"?t.minimumFractionDigits=i.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:d&&u?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+u.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""});let n=r.options[0];n==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:n&&(t={...t,...H2(n)});continue}if(j2.test(r.stem)){t={...t,...H2(r.stem)};continue}let a=q2(r.stem);a&&(t={...t,...a});let o=Z$(r.stem);o&&(t={...t,...o})}return t}var B2,j2,J$,V2,G2=C(()=>{F2();B2=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,j2=/^(@+)?(\+|#+)?[rs]?$/g,J$=/(\*)(0+)|(#+)(0+)|(0+)/g,V2=/^(0+)$/});var xS=C(()=>{N2();G2()});function CS(e){return e.type===tr.literal}function SS(e){return e.type===tr.argument}function Fp(e){return e.type===tr.number}function Bp(e){return e.type===tr.date}function Hp(e){return e.type===tr.time}function zp(e){return e.type===tr.select}function Up(e){return e.type===tr.plural}function _S(e){return e.type===tr.pound}function jp(e){return e.type===tr.tag}function Xy(e){return!!(e&&typeof e=="object"&&e.type===Op.number)}function Vp(e){return!!(e&&typeof e=="object"&&e.type===Op.dateTime)}var tr,Op,fd=C(()=>{xS();tr=(function(e){return e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e})({}),Op=(function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e})({})});var gt,kS=C(()=>{fd();gt=(function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e})({})});var RS,$2=C(()=>{RS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/});var qp,K2=C(()=>{qp={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]}});function X2(e,t){let r="";for(let a=0;a>1),l="a",c=e9(t);for((c=="H"||c=="k")&&(i=0);i-- >0;)r+=l;for(;s-- >0;)r=c+r}else o==="J"?r+="H":r+=o}return r}function e9(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}let r=e.language,a;return r!=="root"&&(a=e.maximize().region),(qp[a||""]||qp[r||""]||qp[`${r}-001`]||qp["001"])[0]}var Y2=C(()=>{K2()});function yt(e,t){return{start:e,end:t}}function l9(e,t){return J2.lastIndex=t,J2.exec(e)[1]??""}function IS(e){return e>=97&&e<=122||e>=65&&e<=90}function c9(e){return IS(e)||e===47}function u9(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function d9(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}var t9,r9,a9,o9,n9,Q2,s9,i9,J2,Yy,Z2=C(()=>{kS();fd();$2();xS();Y2();t9=new RegExp(`^${RS.source}*`),r9=new RegExp(`${RS.source}*$`);a9=!!Object.fromEntries,o9=!!String.prototype.trimStart,n9=!!String.prototype.trimEnd,Q2=a9?Object.fromEntries:function(e){let t={};for(let[r,a]of e)t[r]=a;return t},s9=o9?function(e){return e.trimStart()}:function(e){return e.replace(t9,"")},i9=n9?function(e){return e.trimEnd()}:function(e){return e.replace(r9,"")},J2=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yy=class{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(t,r={}){this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(t,r,a){let o=[];for(;!this.isEOF();){let n=this.char();if(n===123){let s=this.parseArgument(t,a);if(s.err)return s;o.push(s.val)}else{if(n===125&&t>0)break;if(n===35&&(r==="plural"||r==="selectordinal")){let s=this.clonePosition();this.bump(),o.push({type:tr.pound,location:yt(s,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(gt.UNMATCHED_CLOSING_TAG,yt(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&IS(this.peek()||0)){let s=this.parseTag(t,r);if(s.err)return s;o.push(s.val)}else{let s=this.parseLiteral(t,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}}parseTag(t,r){let a=this.clonePosition();this.bump();let o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:tr.literal,value:`<${o}/>`,location:yt(a,this.clonePosition())},err:null};if(this.bumpIf(">")){let n=this.parseMessage(t+1,r,!0);if(n.err)return n;let s=n.val,i=this.clonePosition();if(this.bumpIf("")?{val:{type:tr.tag,value:o,children:s,location:yt(a,this.clonePosition())},err:null}:this.error(gt.INVALID_TAG,yt(i,this.clonePosition())))}else return this.error(gt.UNCLOSED_TAG,yt(a,this.clonePosition()))}else return this.error(gt.INVALID_TAG,yt(a,this.clonePosition()))}parseTagName(){let t=this.offset();for(this.bump();!this.isEOF()&&u9(this.char());)this.bump();return this.message.slice(t,this.offset())}parseLiteral(t,r){let a=this.clonePosition(),o="";for(;;){let s=this.tryParseQuote(r);if(s){o+=s;continue}let i=this.tryParseUnquoted(t,r);if(i){o+=i;continue}let l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}let n=yt(a,this.clonePosition());return{val:{type:tr.literal,value:o,location:n},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!c9(this.peek()||0))?(this.bump(),"<"):null}tryParseQuote(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();let r=[this.char()];for(this.bump();!this.isEOF();){let a=this.char();if(a===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(a);this.bump()}return String.fromCodePoint(...r)}tryParseUnquoted(t,r){if(this.isEOF())return null;let a=this.char();return a===60||a===123||a===35&&(r==="plural"||r==="selectordinal")||a===125&&t>0?null:(this.bump(),String.fromCodePoint(a))}parseArgument(t,r){let a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,yt(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(gt.EMPTY_ARGUMENT,yt(a,this.clonePosition()));let o=this.parseIdentifierIfPossible().value;if(!o)return this.error(gt.MALFORMED_ARGUMENT,yt(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,yt(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:tr.argument,value:o,location:yt(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,yt(a,this.clonePosition())):this.parseArgumentOptions(t,r,o,a);default:return this.error(gt.MALFORMED_ARGUMENT,yt(a,this.clonePosition()))}}parseIdentifierIfPossible(){let t=this.clonePosition(),r=this.offset(),a=l9(this.message,r),o=r+a.length;this.bumpTo(o);let n=this.clonePosition(),s=yt(t,n);return{value:a,location:s}}parseArgumentOptions(t,r,a,o){let n=this.clonePosition(),s=this.parseIdentifierIfPossible().value,i=this.clonePosition();switch(s){case"":return this.error(gt.EXPECT_ARGUMENT_TYPE,yt(n,i));case"number":case"date":case"time":{this.bumpSpace();let l=null;if(this.bumpIf(",")){this.bumpSpace();let u=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;let f=i9(p.val);if(f.length===0)return this.error(gt.EXPECT_ARGUMENT_STYLE,yt(this.clonePosition(),this.clonePosition()));let h=yt(u,this.clonePosition());l={style:f,styleLocation:h}}let c=this.tryParseArgumentClose(o);if(c.err)return c;let d=yt(o,this.clonePosition());if(l&&l.style.startsWith("::")){let u=s9(l.style.slice(2));if(s==="number"){let p=this.parseNumberSkeletonFromString(u,l.styleLocation);return p.err?p:{val:{type:tr.number,value:a,location:d,style:p.val},err:null}}else{if(u.length===0)return this.error(gt.EXPECT_DATE_TIME_SKELETON,d);let p=u;this.locale&&(p=X2(u,this.locale));let f={type:Op.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?M2(p):{}};return{val:{type:s==="date"?tr.date:tr.time,value:a,location:d,style:f},err:null}}}return{val:{type:s==="number"?tr.number:s==="date"?tr.date:tr.time,value:a,location:d,style:l?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(gt.EXPECT_SELECT_ARGUMENT_OPTIONS,yt(l,{...l}));this.bumpSpace();let c=this.parseIdentifierIfPossible(),d=0;if(s!=="select"&&c.value==="offset"){if(!this.bumpIf(":"))return this.error(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yt(this.clonePosition(),this.clonePosition()));this.bumpSpace();let h=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),d=h.val}let u=this.tryParsePluralOrSelectOptions(t,s,r,c);if(u.err)return u;let p=this.tryParseArgumentClose(o);if(p.err)return p;let f=yt(o,this.clonePosition());return s==="select"?{val:{type:tr.select,value:a,options:Q2(u.val),location:f},err:null}:{val:{type:tr.plural,value:a,options:Q2(u.val),offset:d,pluralType:s==="plural"?"cardinal":"ordinal",location:f},err:null}}default:return this.error(gt.INVALID_ARGUMENT_TYPE,yt(n,i))}}tryParseArgumentClose(t){return this.isEOF()||this.char()!==125?this.error(gt.EXPECT_ARGUMENT_CLOSING_BRACE,yt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let t=0,r=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,yt(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}return{val:this.message.slice(r.offset,this.offset()),err:null}}parseNumberSkeletonFromString(t,r){let a=[];try{a=U2(t)}catch{return this.error(gt.INVALID_NUMBER_SKELETON,r)}return{val:{type:Op.number,tokens:a,location:r,parsedOptions:this.shouldParseSkeletons?W2(a):{}},err:null}}tryParsePluralOrSelectOptions(t,r,a,o){let n=!1,s=[],i=new Set,{value:l,location:c}=o;for(;;){if(l.length===0){let f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){let h=this.tryParseDecimalInteger(gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,gt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=yt(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(i.has(l))return this.error(r==="select"?gt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(n=!0),this.bumpSpace();let d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?gt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,yt(this.clonePosition(),this.clonePosition()));let u=this.parseMessage(t+1,r,a);if(u.err)return u;let p=this.tryParseArgumentClose(d);if(p.err)return p;s.push([l,{value:u.val,location:yt(d,this.clonePosition())}]),i.add(l),this.bumpSpace(),{value:l,location:c}=this.parseIdentifierIfPossible()}return s.length===0?this.error(r==="select"?gt.EXPECT_SELECT_ARGUMENT_SELECTOR:gt.EXPECT_PLURAL_ARGUMENT_SELECTOR,yt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(gt.MISSING_OTHER_CLAUSE,yt(this.clonePosition(),this.clonePosition())):{val:s,err:null}}tryParseDecimalInteger(t,r){let a=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);let n=!1,s=0;for(;!this.isEOF();){let l=this.char();if(l>=48&&l<=57)n=!0,s=s*10+(l-48),this.bump();else break}let i=yt(o,this.clonePosition());return n?(s*=a,Number.isSafeInteger(s)?{val:s,err:null}:this.error(r,i)):this.error(t,i)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");let r=this.message.codePointAt(t);if(r===void 0)throw Error(`Offset ${t} is at invalid UTF-16 code unit boundary`);return r}error(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}}bump(){if(this.isEOF())return;let t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}bumpIf(t){if(this.message.startsWith(t,this.offset())){for(let r=0;r=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)}bumpTo(t){if(this.offset()>t)throw Error(`targetOffset ${t} must be greater than or equal to the current offset ${this.offset()}`);for(t=Math.min(t,this.message.length);;){let r=this.offset();if(r===t)break;if(r>t)throw Error(`targetOffset ${t} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&d9(this.char());)this.bump()}peek(){if(this.isEOF())return null;let t=this.char(),r=this.offset();return this.message.charCodeAt(r+(t>=65536?2:1))??null}}});var eD=C(()=>{fd()});function LS(e){e.forEach(t=>{if(delete t.location,zp(t)||Up(t))for(let r in t.options)delete t.options[r].location,LS(t.options[r].value);else Fp(t)&&Xy(t.style)||(Bp(t)||Hp(t))&&Vp(t.style)?delete t.style.location:jp(t)&&LS(t.children)})}function tD(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let r=new Yy(e,t).parse();if(r.err){let a=SyntaxError(gt[r.err.kind]);throw a.location=r.err.location,a.originalMessage=r.err.message,a}return t?.captureLocation||LS(r.val),r.val}var ES=C(()=>{kS();Z2();fd();fd();eD()});var Gp,yc,Wp,Qy,Jy,PS=C(()=>{Gp=(function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e})({}),yc=class extends Error{code;originalMessage;constructor(t,r,a){super(t),this.code=r,this.originalMessage=a}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},Wp=class extends yc{constructor(t,r,a,o){super(`Invalid values for "${t}": "${r}". Options are "${Object.keys(a).join('", "')}"`,Gp.INVALID_VALUE,o)}},Qy=class extends yc{constructor(t,r,a){super(`Value for "${t}" must be of type ${r}`,Gp.INVALID_VALUE,a)}},Jy=class extends yc{constructor(t,r){super(`The intl string context variable "${t}" was not provided to the string "${r}"`,Gp.MISSING_VALUE,r)}}});function f9(e){return e.length<2?e:e.reduce((t,r)=>{let a=t[t.length-1];return!a||a.type!==eo.literal||r.type!==eo.literal?t.push(r):a.value+=r.value,t},[])}function p9(e){return typeof e=="function"}function $p(e,t,r,a,o,n,s){if(e.length===1&&CS(e[0]))return[{type:eo.literal,value:e[0].value}];let i=[];for(let l of e){if(CS(l)){i.push({type:eo.literal,value:l.value});continue}if(_S(l)){typeof n=="number"&&i.push({type:eo.literal,value:r.getNumberFormat(t).format(n)});continue}let{value:c}=l;if(!(o&&c in o))throw new Jy(c,s);let d=o[c];if(SS(l)){(!d||typeof d=="string"||typeof d=="number"||typeof d=="bigint")&&(d=typeof d=="string"||typeof d=="number"||typeof d=="bigint"?String(d):""),i.push({type:typeof d=="string"?eo.literal:eo.object,value:d});continue}if(Bp(l)){let u=typeof l.style=="string"?a.date[l.style]:Vp(l.style)?l.style.parsedOptions:void 0;i.push({type:eo.literal,value:r.getDateTimeFormat(t,u).format(d)});continue}if(Hp(l)){let u=typeof l.style=="string"?a.time[l.style]:Vp(l.style)?l.style.parsedOptions:a.time.medium;i.push({type:eo.literal,value:r.getDateTimeFormat(t,u).format(d)});continue}if(Fp(l)){let u=typeof l.style=="string"?a.number[l.style]:Xy(l.style)?l.style.parsedOptions:void 0;if(u&&u.scale){let p=u.scale||1;if(typeof d=="bigint"){if(!Number.isInteger(p))throw new TypeError(`Cannot apply fractional scale ${p} to bigint value. Scale must be an integer when formatting bigint.`);d=d*BigInt(p)}else d=d*p}i.push({type:eo.literal,value:r.getNumberFormat(t,u).format(d)});continue}if(jp(l)){let{children:u,value:p}=l,f=o[p];if(!p9(f))throw new Qy(p,"function",s);let h=$p(u,t,r,a,o,n),g=f(h.map(b=>b.value));Array.isArray(g)||(g=[g]),i.push(...g.map(b=>({type:typeof b=="string"?eo.literal:eo.object,value:b})))}if(zp(l)){let u=d,p=(Object.prototype.hasOwnProperty.call(l.options,u)?l.options[u]:void 0)||l.options.other;if(!p)throw new Wp(l.value,d,Object.keys(l.options),s);i.push(...$p(p.value,t,r,a,o));continue}if(Up(l)){let u=`=${d}`,p=Object.prototype.hasOwnProperty.call(l.options,u)?l.options[u]:void 0;if(!p){if(!Intl.PluralRules)throw new yc(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" `,Gp.MISSING_INTL_API,s);let h=typeof d=="bigint"?Number(d):d,g=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));p=(Object.prototype.hasOwnProperty.call(l.options,g)?l.options[g]:void 0)||l.options.other}if(!p)throw new Wp(l.value,d,Object.keys(l.options),s);let f=typeof d=="bigint"?Number(d):d;i.push(...$p(p.value,t,r,a,o,f-(l.offset||0)));continue}}return f9(i)}var eo,TS=C(()=>{ES();PS();eo=(function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e})({})});function m9(e,t){return t?{...e,...t,...Object.keys(e).reduce((r,a)=>(r[a]={...e[a],...t[a]},r),{})}:e}function h9(e,t){return t?Object.keys(e).reduce((r,a)=>(r[a]=m9(e[a],t[a]),r),{...e}):e}function AS(e){return{create(){return{get(t){return e[t]},set(t,r){e[t]=r}}}}}function g9(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:cd((...t)=>new Intl.NumberFormat(...t),{cache:AS(e.number),strategy:ud.variadic}),getDateTimeFormat:cd((...t)=>new Intl.DateTimeFormat(...t),{cache:AS(e.dateTime),strategy:ud.variadic}),getPluralRules:cd((...t)=>new Intl.PluralRules(...t),{cache:AS(e.pluralRules),strategy:ud.variadic})}}var vc,DS=C(()=>{yS();ES();TS();vc=class e{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(t,r=e.defaultLocale,a,o){if(this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=o||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=h9(e.formats,a),this.formatters=o&&o.formatters||g9(this.formatterCache)}format=t=>{let r=this.formatToParts(t);if(r.length===1)return r[0].value;let a=r.reduce((o,n)=>(!o.length||n.type!==eo.literal||typeof o[o.length-1]!="string"?o.push(n.value):o[o.length-1]+=n.value,o),[]);return a.length<=1?a[0]||"":a};formatToParts=t=>$p(this.ast,this.locales,this.formatters,this.formats,t,void 0,this.message);resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]});getAst=()=>this.ast;static memoizedDefaultLocale=null;static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static resolveLocale=t=>{if(typeof Intl.Locale>"u")return;let r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])};static __parse=tD;static formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}});var rD=C(()=>{DS();DS();PS();TS()});function MS(...[e,t,r,a]){if(Array.isArray(t))throw new So(_o.INVALID_MESSAGE,void 0);if(typeof t=="object")throw new So(_o.INSUFFICIENT_PATH,void 0);if(typeof t=="string"){let p=(function(f,h){return h||/'[{}]/.test(f)?void 0:f})(t,r);if(p)return p}let{cache:o,formats:n,formatters:s,globalFormats:i,locale:l,timeZone:c}=a,d;s.getMessageFormat||(s.getMessageFormat=(function(p,f){return bS(((...h)=>new vc(h[0],h[1],h[2],{formatters:f,...h[3]})),p.message)})(o,s));try{d=s.getMessageFormat(t,l,(function(p,f,h){let g=vc.formats.date,b=vc.formats.time,m={...p?.dateTime,...f?.dateTime},y={date:{...g,...m},time:{...b,...m},number:{...p?.number,...f?.number}};return h&&["date","time"].forEach((v=>{let x=y[v];for(let[S,I]of Object.entries(x))x[S]={timeZone:h,...I}})),y})(i,n,c),{formatters:{...s,getDateTimeFormat:(p,f)=>s.getDateTimeFormat(p,{...f,timeZone:f?.timeZone??c})}})}catch{throw new So(_o.INVALID_MESSAGE,void 0)}let u=d.format(r);return(0,aD.isValidElement)(u)||Array.isArray(u)||typeof u=="string"?u:String(u)}var aD,oD=C(()=>{rD();aD=A(J(),1);Ky();MS.raw=!0});function NS(...e){return e.filter(Boolean).join(".")}function nD(e){return NS(e.namespace,e.key)}function y9(e){console.error(e)}function Zy(e,t,r,a){let o=NS(a,r);if(!t)throw new Error(o);let n=t;return r.split(".").forEach((s=>{let i=n[s];if(s==null||i==null)throw new Error(o+` (${e})`);n=i})),n}function sD(e){let t=(function(r,a,o){try{if(!a)throw new Error(void 0);let n=o?Zy(r,a,o):a;if(!n)throw new Error(o);return n}catch(n){return new So(_o.MISSING_MESSAGE,n.message)}})(e.locale,e.messages,e.namespace);return(function({cache:r,formats:a,formatters:o,getMessageFallback:n=nD,locale:s,messagesOrError:i,namespace:l,onError:c,timeZone:d}){let u=i instanceof So;function p(g,b,m,y){let v=new So(b,m);return c(v),y??n({error:v,key:g,namespace:l})}function f(g,b,m,y){let v=y,x;if(u){if(!v)return c(i),n({error:i,key:g,namespace:l});x=v}else{let S=i;try{x=Zy(s,S,g,l)}catch(I){if(!v)return p(g,_o.MISSING_MESSAGE,I.message,v);x=v}}try{let S=NS(l,g);return MS(S,x,b&&(function(I){let _={};return Object.keys(I).forEach((w=>{let B=0,F=I[w],ie;ie=typeof F=="function"?$=>{let Y=F($);return(0,ev.isValidElement)(Y)?(0,ev.cloneElement)(Y,{key:w+B++}):Y}:F,_[w]=ie})),_})(b),{cache:r,formatters:o,globalFormats:a,formats:m,locale:s,timeZone:d})}catch(S){let I,_;return S instanceof So?(I=S.code,_=S.originalMessage):(I=_o.FORMATTING_ERROR,_=S.message),p(g,I,_,v)}}function h(g,b,m,y){let v=f(g,b,m,y);return typeof v!="string"?p(g,_o.INVALID_MESSAGE,void 0):v}return h.rich=f,h.markup=(g,b,m,y)=>f(g,b,m,y),h.raw=g=>{if(u)return c(i),n({error:i,key:g,namespace:l});let b=i;try{return Zy(s,b,g,l)}catch(m){return p(g,_o.MISSING_MESSAGE,m.message)}},h.has=g=>{if(u)return!1;try{return Zy(s,i,g,l),!0}catch{return!1}},h})({...e,messagesOrError:t})}function iD(e,t){return e===t?void 0:e.slice((t+".").length)}function cD({formats:e,getMessageFallback:t,messages:r,onError:a,...o}){return{...o,formats:e||void 0,messages:r||void 0,onError:a||y9,getMessageFallback:t||nD}}var ev,lD,Kne,Xne,uD=C(()=>{ev=A(J(),1);oD();Ky();lD=86400,Kne=7*lD,Xne=365*lD});function OS(e,t){return e.includes(t)}var dD=C(()=>{});function BS({children:e,formats:t,getMessageFallback:r,locale:a,messages:o,now:n,onError:s,timeZone:i}){let l=(0,Wo.useContext)(FS),c=(0,Wo.useMemo)((()=>l?.cache||vS()),[a,l?.cache]),d=(0,Wo.useMemo)((()=>l?.formatters||wS(c)),[c,l?.formatters]),u=(0,Wo.useMemo)((()=>({...cD({locale:a,formats:t===void 0?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:o===void 0?l?.messages:o,now:n||l?.now,onError:s||l?.onError,timeZone:i||l?.timeZone}),formatters:d,cache:c})),[c,t,d,r,a,o,n,s,l,i]);return(0,mD.jsx)(FS.Provider,{value:u,children:e})}function fD(){let e=(0,Wo.useContext)(FS);if(!e)throw new Error(void 0);return e}function at(e){return(function(t,r,a){let{cache:o,formats:n,formatters:s,getMessageFallback:i,locale:l,onError:c,timeZone:d}=fD(),u=t[a],p=iD(r,a);return d||pD||!v9||(pD=!0,c(new So(_o.ENVIRONMENT_FALLBACK,void 0))),(0,Wo.useMemo)((()=>sD({cache:o,formatters:s,getMessageFallback:i,messages:u,namespace:p,onError:c,formats:n,locale:l,timeZone:d})),[o,s,i,u,p,c,n,l,d])})({"!":fD().messages},e?`!.${e}`:"!","!")}var Wo,mD,FS,pD,v9,hD=C(()=>{Wo=A(J(),1);Ky();uD();mD=A(me(),1),FS=(0,Wo.createContext)(void 0);pD=!1,v9=typeof window>"u"});var ko=C(()=>{dD();hD()});var yD,gD=C(()=>{yD={Navigation:{dashboard:"Dashboard",players:"Hr\xE1\u010Di",vehicles:"Vozidla",warns:"Varov\xE1n\xED",kicks:"Kicky",bans:"Bany",monitoring:"Monitorov\xE1n\xED"},Anticheat:{Dashboard:{Actions:{global:"Pokro\u010Dil\xE9",manual:"Manu\xE1ln\xED",remove:"Odstranit",identifiers:"Identifik\xE1tory",banId:"ID Banu",kickId:"ID Kicku",warnId:"ID Varov\xE1n\xED",search:"Hledat",searchBy:"Hledat podle {query}",searchOptions:"Mo\u017Enosti hled\xE1n\xED",noBans:"Nebyly nalezeny \u017E\xE1dn\xE9 bany",noKicks:"Nebyly nalezeny \u017E\xE1dn\xE9 kicky",noWarns:"Nebyla nalezena \u017E\xE1dn\xE1 varov\xE1n\xED",kick:"Kicknout",ban:"Zabanovat",info:"Info",screenshotCreated:"Screenshot vytvo\u0159en",videoCreated:"Video vytvo\u0159eno",kickPlayer:"Kicknout {player}",messagePlayer:"Zpr\xE1va pro {player}",messageConfirm:"Odeslat zpr\xE1vu tomuto hr\xE1\u010Di, kter\xE1 se zobraz\xED na jeho obrazovce.",messageTitle:"N\xE1zev zpr\xE1vy",messageDescription:"Popis zpr\xE1vy",messageTitlePlaceholder:"D\u016Fle\u017Eit\xE9 ozn\xE1men\xED",messageDescriptionPlaceholder:"Zadejte svou zpr\xE1vu zde...",sendMessage:"Odeslat zpr\xE1vu",banPlayer:"Zabanovat {player}",kickConfirm:"Jste si jisti, \u017Ee chcete kicknout tohoto hr\xE1\u010De?",banConfirm:"Jste si jisti, \u017Ee chcete zabanovat tohoto hr\xE1\u010De?",reason:"D\u016Fvod",cancel:"Zru\u0161it",continue:"Pokra\u010Dovat",playerIdentifiers:"Identifik\xE1tory hr\xE1\u010De",playerActions:"Akce hr\xE1\u010De",watch:"Sledovat",stopWatching:"P\u0159estat sledovat",copied:"Zkop\xEDrov\xE1no do schr\xE1nky!",usingProxy:"Pou\u017E\xEDv\xE1 proxy / VPN",usingHosting:"Pou\u017E\xEDv\xE1 hostovanou IP adresu. IP adresa poch\xE1z\xED z datacentra."},Vehicles:{title:"Vozidla",selectVehicle:"Vybrat vozidlo...",searchVehicles:"Hledat vozidla...",noVehicleFound:"Nebylo nalezeno \u017E\xE1dn\xE9 vozidlo.",repairVehicle:"Opravit vozidlo",boostVehicle:"Boostovat vozidlo",deleteVehicle:"Smazat vozidlo"},Players:{search:"Hledat hr\xE1\u010De...",online:"{amount} online"},Dashboard:{announcement:{title:"Ozn\xE1men\xED",titlePlaceholder:"N\xE1zev ozn\xE1men\xED",textPlaceholder:"Text ozn\xE1men\xED",send:"Odeslat ozn\xE1men\xED"},admin:{title:"Admin",deleteVehicles:"Smazat vozidla",deleteVehiclesDescription:"Smazat v\u0161echna vozidla ze serveru",successfullyDeletedVehicles:"Vozidla \xFAsp\u011B\u0161n\u011B smaz\xE1na",deletePeds:"Smazat peds",deletePedsDescription:"Smazat v\u0161echny peds ze serveru",successfullyDeletedPeds:"Peds \xFAsp\u011B\u0161n\u011B smaz\xE1ny",deleteObjects:"Smazat objekty",deleteObjectsDescription:"Smazat v\u0161echny objekty ze serveru",successfullyDeletedObjects:"Objekty \xFAsp\u011B\u0161n\u011B smaz\xE1ny",blips:"Blipy",toggledBlips:"Blipy p\u0159epnuty",esp:"ESP",toggledESP:"ESP p\u0159epnuto",passiveMode:"Pasivn\xED re\u017Eim",toggledPassiveMode:"Pasivn\xED re\u017Eim p\u0159epnut",freecam:"Voln\xE1 kamera",toggledFreecam:"Voln\xE1 kamera p\u0159epnuta",areYouSure:"Jste si jisti?",cancel:"Zru\u0161it",continue:"Pokra\u010Dovat"},entity:{title:"V\xFDb\u011Br entit",selectPed:"Vybrat ped...",searchPeds:"Hledat peds...",noPedFound:"Nebyl nalezen \u017E\xE1dn\xFD ped."},network:{title:"S\xED\u0165",routingBucket:"Routing bucket"},nameTags:{title:"Jmenovky",names:"Jm\xE9na"}},Monitoring:{actions:"Akce",noPlayersSelected:"\u017D\xE1dn\xED hr\xE1\u010Di nebyli vybr\xE1ni",viewLow:"Zobrazit n\xEDzk\xFD hern\xED \u010Das",viewLatest:"Zobrazit nejnov\u011Bj\u0161\xED",viewStaff:"Zobrazit staff",search:"Hledat hr\xE1\u010De...",noStaffViewingPermission:"Nem\xE1te opr\xE1vn\u011Bn\xED k zobrazen\xED obrazovky tohoto hr\xE1\u010De."},EntitySelector:{entityTypes:{vehicle:"Vozidlo",ped:"Postava",object:"Objekt",player:"Hr\xE1\u010D"},entityId:"ID entity",modelHash:"Hash modelu",modelHashCopied:"Hash modelu zkop\xEDrov\xE1n do schr\xE1nky",health:"Zdrav\xED",heading:"Sm\u011Br",coordinates:"Sou\u0159adnice",coordinatesCopied:"Sou\u0159adnice zkop\xEDrov\xE1ny do schr\xE1nky",networkStatus:"Stav s\xEDt\u011B",networked:"Sd\xEDleno v s\xEDti",localOnly:"Pouze lok\xE1ln\xED",synced:"Synchronizov\xE1no",local:"Lok\xE1ln\xED",netId:"Net ID",owner:"Vlastn\xEDk",playerOwner:"Hr\xE1\u010D {owner}",playerInformation:"Informace o hr\xE1\u010Di",playerId:"ID hr\xE1\u010De",serverId:"ID serveru",vehicleHealth:"Zdrav\xED vozidla",body:"Karoserie",engine:"Motor",tank:"N\xE1dr\u017E",actions:"Akce",deleteEntity:"Smazat entitu"}}}}});var bD,vD=C(()=>{bD={Navigation:{dashboard:"Dashboard",players:"Spieler",vehicles:"Fahrzeuge",warns:"Warnungen",kicks:"Kicks",bans:"Bans",monitoring:"\xDCberwachung"},Anticheat:{Dashboard:{Actions:{global:"Erweitert",manual:"Manuell",remove:"Entfernen",identifiers:"Identifikatoren",banId:"Ban ID",kickId:"Kick ID",warnId:"Warn ID",search:"Suchen",searchBy:"Suchen nach {query}",searchOptions:"Suchoptionen",noBans:"Keine Bans gefunden",noKicks:"Keine Kicks gefunden",noWarns:"Keine Warnungen gefunden",kick:"Kicken",ban:"Bannen",info:"Info",screenshotCreated:"Screenshot erstellt",videoCreated:"Video erstellt",kickPlayer:"{player} kicken",messagePlayer:"Nachricht an {player}",messageConfirm:"Sende eine Nachricht an diesen Spieler, die auf seinem Bildschirm angezeigt wird.",messageTitle:"Nachrichtentitel",messageDescription:"Nachrichtenbeschreibung",messageTitlePlaceholder:"Wichtige Ank\xFCndigung",messageDescriptionPlaceholder:"Geben Sie Ihre Nachricht hier ein...",sendMessage:"Nachricht senden",banPlayer:"{player} bannen",kickConfirm:"Sind Sie sicher, dass Sie diesen Spieler kicken m\xF6chten?",banConfirm:"Sind Sie sicher, dass Sie diesen Spieler bannen m\xF6chten?",reason:"Grund",cancel:"Abbrechen",continue:"Fortfahren",playerIdentifiers:"Spieler-Identifikatoren",playerActions:"Spieler-Aktionen",watch:"Beobachten",stopWatching:"Beobachtung stoppen",copied:"In die Zwischenablage kopiert!",usingProxy:"Benutzt Proxy / VPN",usingHosting:"Benutzt gehostete IP. Eine IP, die von einem Rechenzentrum stammt."},Vehicles:{title:"Fahrzeuge",selectVehicle:"Fahrzeug ausw\xE4hlen...",searchVehicles:"Fahrzeuge suchen...",noVehicleFound:"Kein Fahrzeug gefunden.",repairVehicle:"Fahrzeug reparieren",boostVehicle:"Fahrzeug boosten",deleteVehicle:"Fahrzeug l\xF6schen"},Players:{search:"Spieler suchen...",online:"{amount} online"},Dashboard:{announcement:{title:"Ank\xFCndigung",titlePlaceholder:"Ank\xFCndigungstitel",textPlaceholder:"Ank\xFCndigungstext",send:"Ank\xFCndigung senden"},admin:{title:"Admin",deleteVehicles:"Fahrzeuge l\xF6schen",deleteVehiclesDescription:"Alle Fahrzeuge auf dem Server l\xF6schen",successfullyDeletedVehicles:"Fahrzeuge erfolgreich gel\xF6scht",deletePeds:"Peds l\xF6schen",deletePedsDescription:"Alle Peds auf dem Server l\xF6schen",successfullyDeletedPeds:"Peds erfolgreich gel\xF6scht",deleteObjects:"Objekte l\xF6schen",deleteObjectsDescription:"Alle Objekte auf dem Server l\xF6schen",successfullyDeletedObjects:"Objekte erfolgreich gel\xF6scht",blips:"Blips",toggledBlips:"Blips umgeschaltet",esp:"ESP",toggledESP:"ESP umgeschaltet",passiveMode:"Passiver Modus",toggledPassiveMode:"Passiver Modus umgeschaltet",freecam:"Freecam",toggledFreecam:"Freecam umgeschaltet",areYouSure:"Sind Sie sicher?",cancel:"Abbrechen",continue:"Fortfahren"},entity:{title:"Entit\xE4ts-Auswahl",selectPed:"Ped ausw\xE4hlen...",searchPeds:"Peds suchen...",noPedFound:"Kein Ped gefunden."},network:{title:"Netzwerk",routingBucket:"Routing-Bucket"},nameTags:{title:"Namens-Tags",names:"Namen"}},Monitoring:{actions:"Aktionen",noPlayersSelected:"Keine Spieler ausgew\xE4hlt",viewLow:"Niedrige Spielzeit anzeigen",viewLatest:"Neueste anzeigen",viewStaff:"Team anzeigen",search:"Spieler suchen...",noStaffViewingPermission:"Du hast keine Berechtigung, den Bildschirm dieses Spielers anzusehen."},EntitySelector:{entityTypes:{vehicle:"Fahrzeug",ped:"Ped",object:"Objekt",player:"Spieler"},entityId:"Entity-ID",modelHash:"Model-Hash",modelHashCopied:"Model-Hash in die Zwischenablage kopiert",health:"Gesundheit",heading:"Richtung",coordinates:"Koordinaten",coordinatesCopied:"Koordinaten in die Zwischenablage kopiert",networkStatus:"Netzwerkstatus",networked:"Vernetzt",localOnly:"Nur Lokal",synced:"Synchronisiert",local:"Lokal",netId:"Netzwerk-ID",owner:"Besitzer",playerOwner:"Spieler {owner}",playerInformation:"Spielerinformationen",playerId:"Spieler-ID",serverId:"Server-ID",vehicleHealth:"Fahrzeug-Gesundheit",body:"Karosserie",engine:"Motor",tank:"Tank",actions:"Aktionen",deleteEntity:"Entity l\xF6schen"}}}}});var xD,wD=C(()=>{xD={Navigation:{dashboard:"Dashboard",players:"Players",vehicles:"Vehicles",warns:"Warns",kicks:"Kicks",bans:"Bans",monitoring:"Monitoring"},Anticheat:{Dashboard:{Actions:{usingProxy:"Using proxy / VPN",usingHosting:"Using hosted IP. An ip coming from a datacenter.",copied:"Copied to clipboard!",global:"Advanced",manual:"Manual",remove:"Remove",identifiers:"Identifiers",banId:"Ban ID",kickId:"Kick ID",warnId:"Warn ID",search:"Search",searchBy:"Search by {query}",searchOptions:"Search options",noBans:"No bans found",noKicks:"No kicks found",noWarns:"No warns found",kick:"Kick",ban:"Ban",info:"Info",screenshotCreated:"Screenshot created",videoCreated:"Video created",kickPlayer:"Kick {player}",messagePlayer:"Message {player}",messageConfirm:"Send a message to this player that will be displayed on their screen.",messageTitle:"Message Title",messageDescription:"Message Description",messageTitlePlaceholder:"Important announcement",messageDescriptionPlaceholder:"Enter your message here...",sendMessage:"Send Message",banPlayer:"Ban {player}",kickConfirm:"Are you sure you want to kick this player?",banConfirm:"Are you sure you want to ban this player?",reason:"Reason",cancel:"Cancel",continue:"Continue",playerIdentifiers:"Player Identifiers",playerActions:"Player Actions",watch:"Watch",stopWatching:"Stop Watching"},Vehicles:{title:"Vehicles",selectVehicle:"Select vehicle...",searchVehicles:"Search vehicles...",noVehicleFound:"No vehicle found.",repairVehicle:"Repair Vehicle",boostVehicle:"Boost Vehicle",deleteVehicle:"Delete Vehicle"},Players:{search:"Search players...",online:"{amount} online"},Dashboard:{announcement:{title:"Announcement",titlePlaceholder:"Announcement title",textPlaceholder:"Announcement text",send:"Send Announcement"},admin:{title:"Admin",deleteVehicles:"Delete Vehicles",deleteVehiclesDescription:"Delete all vehicles on the server",successfullyDeletedVehicles:"Successfully deleted vehicles",deletePeds:"Delete Peds",deletePedsDescription:"Delete all peds on the server",successfullyDeletedPeds:"Successfully deleted peds",deleteObjects:"Delete Objects",deleteObjectsDescription:"Delete all objects on the server",successfullyDeletedObjects:"Successfully deleted objects",blips:"Blips",toggledBlips:"Toggled blips",esp:"ESP",toggledESP:"Toggled ESP",passiveMode:"Passive Mode",toggledPassiveMode:"Toggled passive mode",freecam:"Freecam",toggledFreecam:"Toggled freecam",areYouSure:"Are you sure?",cancel:"Cancel",continue:"Continue"},entity:{title:"Entity Changer",selectPed:"Select ped...",searchPeds:"Search peds...",noPedFound:"No ped found."},network:{title:"Network",routingBucket:"Routing bucket"},nameTags:{title:"Name Tags",names:"Names"}},Monitoring:{actions:"Actions",noPlayersSelected:"No players selected",viewLow:"View low playtime",viewLatest:"View latest",viewStaff:"View staff",search:"Search players...",noStaffViewingPermission:"You don't have permission to view this player's screen."},EntitySelector:{entityTypes:{vehicle:"Vehicle",ped:"Ped",object:"Object",player:"Player"},entityId:"Entity ID",modelHash:"Model Hash",modelHashCopied:"Model hash copied to clipboard",health:"Health",heading:"Heading",coordinates:"Coordinates",coordinatesCopied:"Coordinates copied to clipboard",networkStatus:"Network Status",networked:"Networked",localOnly:"Local Only",synced:"Synced",local:"Local",netId:"Net ID",owner:"Owner",playerOwner:"Player {owner}",playerInformation:"Player Information",playerId:"Player ID",serverId:"Server ID",vehicleHealth:"Vehicle Health",body:"Body",engine:"Engine",tank:"Tank",actions:"Actions",deleteEntity:"Delete Entity"}}}}});var SD,CD=C(()=>{SD={Navigation:{dashboard:"Panel",players:"Jugadores",vehicles:"Veh\xEDculos",warns:"Advertencias",kicks:"Expulsiones",bans:"Prohibiciones",monitoring:"Monitoreo"},Anticheat:{Dashboard:{Actions:{global:"Avanzado",manual:"Manual",remove:"Eliminar",identifiers:"Identificadores",banId:"ID de Ban",kickId:"ID de Kick",warnId:"ID de Advertencia",search:"Buscar",searchBy:"Buscar por {query}",searchOptions:"Opciones de b\xFAsqueda",noBans:"No se encontraron prohibiciones",noKicks:"No se encontraron expulsiones",noWarns:"No se encontraron advertencias",kick:"Expulsar",ban:"Prohibir",info:"Info",screenshotCreated:"Captura de pantalla creada",videoCreated:"Video creado",kickPlayer:"Expulsar {player}",messagePlayer:"Mensaje a {player}",messageConfirm:"Enviar un mensaje a este jugador que se mostrar\xE1 en su pantalla.",messageTitle:"T\xEDtulo del mensaje",messageDescription:"Descripci\xF3n del mensaje",messageTitlePlaceholder:"Anuncio importante",messageDescriptionPlaceholder:"Escribe tu mensaje aqu\xED...",sendMessage:"Enviar mensaje",banPlayer:"Prohibir {player}",kickConfirm:"\xBFEst\xE1s seguro de que quieres expulsar a este jugador?",banConfirm:"\xBFEst\xE1s seguro de que quieres prohibir a este jugador?",reason:"Raz\xF3n",cancel:"Cancelar",continue:"Continuar",playerIdentifiers:"Identificadores del jugador",playerActions:"Acciones del jugador",watch:"Observar",stopWatching:"Dejar de observar",copied:"\xA1Copiado al portapapeles!",usingProxy:"Usando proxy / VPN",usingHosting:"Usando IP alojada. Una IP proveniente de un centro de datos."},Vehicles:{title:"Veh\xEDculos",selectVehicle:"Seleccionar veh\xEDculo...",searchVehicles:"Buscar veh\xEDculos...",noVehicleFound:"No se encontr\xF3 veh\xEDculo.",repairVehicle:"Reparar veh\xEDculo",boostVehicle:"Impulsar veh\xEDculo",deleteVehicle:"Eliminar veh\xEDculo"},Players:{search:"Buscar jugadores...",online:"{amount} en l\xEDnea"},Dashboard:{announcement:{title:"Anuncio",titlePlaceholder:"T\xEDtulo del anuncio",textPlaceholder:"Texto del anuncio",send:"Enviar anuncio"},admin:{title:"Admin",deleteVehicles:"Eliminar veh\xEDculos",deleteVehiclesDescription:"Eliminar todos los veh\xEDculos del servidor",successfullyDeletedVehicles:"Veh\xEDculos eliminados exitosamente",deletePeds:"Eliminar peds",deletePedsDescription:"Eliminar todos los peds del servidor",successfullyDeletedPeds:"Peds eliminados exitosamente",deleteObjects:"Eliminar objetos",deleteObjectsDescription:"Eliminar todos los objetos del servidor",successfullyDeletedObjects:"Objetos eliminados exitosamente",blips:"Blips",toggledBlips:"Blips alternados",esp:"ESP",toggledESP:"ESP alternado",passiveMode:"Modo pasivo",toggledPassiveMode:"Modo pasivo alternado",freecam:"C\xE1mara libre",toggledFreecam:"C\xE1mara libre alternada",areYouSure:"\xBFEst\xE1s seguro?",cancel:"Cancelar",continue:"Continuar"},entity:{title:"Selector de entidades",selectPed:"Seleccionar ped...",searchPeds:"Buscar peds...",noPedFound:"No se encontr\xF3 ped."},network:{title:"Red",routingBucket:"Bucket de enrutamiento"},nameTags:{title:"Etiquetas de nombre",names:"Nombres"}},Monitoring:{actions:"Acciones",noPlayersSelected:"No hay jugadores seleccionados",viewLow:"Ver tiempo de juego bajo",viewLatest:"Ver m\xE1s recientes",viewStaff:"Ver personal",search:"Buscar jugadores...",noStaffViewingPermission:"No tienes permiso para ver la pantalla de este jugador."},EntitySelector:{entityTypes:{vehicle:"Veh\xEDculo",ped:"Peat\xF3n",object:"Objeto",player:"Jugador"},entityId:"ID de Entidad",modelHash:"Hash del Modelo",modelHashCopied:"Hash del modelo copiado al portapapeles",health:"Salud",heading:"Direcci\xF3n",coordinates:"Coordenadas",coordinatesCopied:"Coordenadas copiadas al portapapeles",networkStatus:"Estado de la Red",networked:"En Red",localOnly:"Solo Local",synced:"Sincronizado",local:"Local",netId:"ID de Red",owner:"Propietario",playerOwner:"Jugador {owner}",playerInformation:"Informaci\xF3n del Jugador",playerId:"ID del Jugador",serverId:"ID del Servidor",vehicleHealth:"Salud del Veh\xEDculo",body:"Carrocer\xEDa",engine:"Motor",tank:"Tanque",actions:"Acciones",deleteEntity:"Eliminar Entidad"}}}}});var kD,_D=C(()=>{kD={Navigation:{dashboard:"Tableau de bord",players:"Joueurs",vehicles:"V\xE9hicules",warns:"Avertissements",kicks:"Expulsions",bans:"Bannissements",monitoring:"Surveillance"},Anticheat:{Dashboard:{Actions:{global:"Avanc\xE9",manual:"Manuel",remove:"Supprimer",identifiers:"Identifiants",banId:"ID de ban",kickId:"ID de kick",warnId:"ID d'avertissement",search:"Rechercher",searchBy:"Rechercher par {query}",searchOptions:"Options de recherche",noBans:"Aucun ban trouv\xE9",noKicks:"Aucun kick trouv\xE9",noWarns:"Aucun avertissement trouv\xE9",kick:"Expulser",ban:"Bannir",info:"Info",screenshotCreated:"Capture d'\xE9cran cr\xE9\xE9e",videoCreated:"Vid\xE9o cr\xE9\xE9e",kickPlayer:"Expulser {player}",messagePlayer:"Message \xE0 {player}",messageConfirm:"Envoyer un message \xE0 ce joueur qui sera affich\xE9 sur son \xE9cran.",messageTitle:"Titre du message",messageDescription:"Description du message",messageTitlePlaceholder:"Annonce importante",messageDescriptionPlaceholder:"Entrez votre message ici...",sendMessage:"Envoyer le message",banPlayer:"Bannir {player}",kickConfirm:"\xCAtes-vous s\xFBr de vouloir expulser ce joueur ?",banConfirm:"\xCAtes-vous s\xFBr de vouloir bannir ce joueur ?",reason:"Raison",cancel:"Annuler",continue:"Continuer",playerIdentifiers:"Identifiants du joueur",playerActions:"Actions du joueur",watch:"Observer",stopWatching:"Arr\xEAter d'observer",copied:"Copi\xE9 dans le presse-papier !",usingProxy:"Utilisation d'un proxy / VPN",usingHosting:"Utilisation d'une IP h\xE9berg\xE9e. Une IP provenant d'un centre de donn\xE9es."},Vehicles:{title:"V\xE9hicules",selectVehicle:"S\xE9lectionner un v\xE9hicule...",searchVehicles:"Rechercher des v\xE9hicules...",noVehicleFound:"Aucun v\xE9hicule trouv\xE9.",repairVehicle:"R\xE9parer le v\xE9hicule",boostVehicle:"Booster le v\xE9hicule",deleteVehicle:"Supprimer le v\xE9hicule"},Players:{search:"Rechercher des joueurs...",online:"{amount} en ligne"},Dashboard:{announcement:{title:"Annonce",titlePlaceholder:"Titre de l'annonce",textPlaceholder:"Texte de l'annonce",send:"Envoyer l'annonce"},admin:{title:"Admin",deleteVehicles:"Supprimer les v\xE9hicules",deleteVehiclesDescription:"Supprimer tous les v\xE9hicules du serveur",successfullyDeletedVehicles:"V\xE9hicules supprim\xE9s avec succ\xE8s",deletePeds:"Supprimer les peds",deletePedsDescription:"Supprimer tous les peds du serveur",successfullyDeletedPeds:"Peds supprim\xE9s avec succ\xE8s",deleteObjects:"Supprimer les objets",deleteObjectsDescription:"Supprimer tous les objets du serveur",successfullyDeletedObjects:"Objets supprim\xE9s avec succ\xE8s",blips:"Blips",toggledBlips:"Blips bascul\xE9s",esp:"ESP",toggledESP:"ESP bascul\xE9",passiveMode:"Mode passif",toggledPassiveMode:"Mode passif bascul\xE9",freecam:"Cam\xE9ra libre",toggledFreecam:"Cam\xE9ra libre bascul\xE9e",areYouSure:"\xCAtes-vous s\xFBr ?",cancel:"Annuler",continue:"Continuer"},entity:{title:"S\xE9lecteur d'entit\xE9s",selectPed:"S\xE9lectionner un ped...",searchPeds:"Rechercher des peds...",noPedFound:"Aucun ped trouv\xE9."},network:{title:"R\xE9seau",routingBucket:"Bucket de routage"},nameTags:{title:"\xC9tiquettes de nom",names:"Noms"}},Monitoring:{actions:"Actions",noPlayersSelected:"Aucun joueur s\xE9lectionn\xE9",viewLow:"Voir le temps de jeu faible",viewLatest:"Voir les plus r\xE9cents",viewStaff:"Voir le personnel",search:"Rechercher des joueurs...",noStaffViewingPermission:"Vous n'avez pas la permission de visualiser l'\xE9cran de ce joueur."},EntitySelector:{entityTypes:{vehicle:"V\xE9hicule",ped:"Pi\xE9ton",object:"Objet",player:"Joueur"},entityId:"ID de l'entit\xE9",modelHash:"Hash du mod\xE8le",modelHashCopied:"Hash du mod\xE8le copi\xE9 dans le presse-papier",health:"Sant\xE9",heading:"Direction",coordinates:"Coordonn\xE9es",coordinatesCopied:"Coordonn\xE9es copi\xE9es dans le presse-papier",networkStatus:"\xC9tat du r\xE9seau",networked:"En r\xE9seau",localOnly:"Local uniquement",synced:"Synchronis\xE9",local:"Local",netId:"ID r\xE9seau",owner:"Propri\xE9taire",playerOwner:"Joueur {owner}",playerInformation:"Informations du joueur",playerId:"ID du joueur",serverId:"ID du serveur",vehicleHealth:"Sant\xE9 du v\xE9hicule",body:"Carrosserie",engine:"Moteur",tank:"R\xE9servoir",actions:"Actions",deleteEntity:"Supprimer l'entit\xE9"}}}}});var ID,RD=C(()=>{ID={Navigation:{dashboard:"Ir\xE1ny\xEDt\xF3pult",players:"J\xE1t\xE9kosok",vehicles:"J\xE1rm\u0171vek",warns:"Figyelmeztet\xE9sek",kicks:"Kicks",bans:"Bans",monitoring:"Megfigyel\xE9s"},Anticheat:{Dashboard:{Actions:{global:"Halad\xF3",manual:"Manu\xE1lis",remove:"Elt\xE1vol\xEDt\xE1s",identifiers:"Azonos\xEDt\xF3k",banId:"Ban ID",kickId:"Kick ID",warnId:"Warn ID",search:"Keres\xE9s",searchBy:"Keres\xE9s {query} alapj\xE1n",searchOptions:"Keres\xE9si be\xE1ll\xEDt\xE1sok",noBans:"Nincsenek banok",noKicks:"Nincsenek kickek",noWarns:"Nincsenek figyelmeztet\xE9sek",kick:"Kick",ban:"Ban",info:"Info",screenshotCreated:"K\xE9perny\u0151k\xE9p k\xE9sz\xEDtve",videoCreated:"Vide\xF3 k\xE9sz\xEDtve",kickPlayer:"Kick {player}",messagePlayer:"\xDCzenet a k\xF6vetkez\u0151nek: {player}",messageConfirm:"K\xFCldj\xF6n \xFCzenetet ennek a j\xE1t\xE9kosnak, amely megjelenik a k\xE9perny\u0151j\xE9n.",messageTitle:"\xDCzenet c\xEDme",messageDescription:"\xDCzenet le\xEDr\xE1sa",messageTitlePlaceholder:"Fontos bejelent\xE9s",messageDescriptionPlaceholder:"\xCDrja be \xFCzenet\xE9t ide...",sendMessage:"\xDCzenet k\xFCld\xE9se",banPlayer:"Ban {player}",kickConfirm:"Biztosan ki akarod r\xFAgni ezt a j\xE1t\xE9kost?",banConfirm:"Biztosan be akarod tiltani ezt a j\xE1t\xE9kost?",reason:"Ok",cancel:"M\xE9gse",continue:"Folytat\xE1s",playerIdentifiers:"J\xE1t\xE9kos Azonos\xEDt\xF3k",playerActions:"J\xE1t\xE9kos M\u0171veletek",watch:"Figyel\xE9s",stopWatching:"Figyel\xE9s Le\xE1ll\xEDt\xE1sa",copied:"M\xE1solva a v\xE1g\xF3lapra!",usingProxy:"Proxy / VPN haszn\xE1lata",usingHosting:"Hosted IP haszn\xE1lata. Egy adatk\xF6zpontb\xF3l sz\xE1rmaz\xF3 IP c\xEDm."},Vehicles:{title:"J\xE1rm\u0171vek",selectVehicle:"V\xE1lassz j\xE1rm\u0171vet...",searchVehicles:"J\xE1rm\u0171vek keres\xE9se...",noVehicleFound:"Nem tal\xE1lhat\xF3 j\xE1rm\u0171.",repairVehicle:"J\xE1rm\u0171 Jav\xEDt\xE1sa",boostVehicle:"J\xE1rm\u0171 Turb\xF3z\xE1sa",deleteVehicle:"J\xE1rm\u0171 T\xF6rl\xE9se"},Players:{search:"J\xE1t\xE9kosok keres\xE9se...",online:"{amount} online"},Dashboard:{announcement:{title:"K\xF6zlem\xE9ny",titlePlaceholder:"K\xF6zlem\xE9ny c\xEDme",textPlaceholder:"K\xF6zlem\xE9ny sz\xF6vege",send:"K\xF6zlem\xE9ny K\xFCld\xE9se"},admin:{title:"Admin",deleteVehicles:"J\xE1rm\u0171vek T\xF6rl\xE9se",deleteVehiclesDescription:"Az \xF6sszes j\xE1rm\u0171 t\xF6rl\xE9se a szerveren",successfullyDeletedVehicles:"A j\xE1rm\u0171vek sikeresen t\xF6r\xF6lve",deletePeds:"NPC-k T\xF6rl\xE9se",deletePedsDescription:"Az \xF6sszes NPC t\xF6rl\xE9se a szerveren",successfullyDeletedPeds:"Az NPC-k sikeresen t\xF6r\xF6lve",deleteObjects:"Objektumok T\xF6rl\xE9se",deleteObjectsDescription:"Az \xF6sszes objektum t\xF6rl\xE9se a szerveren",successfullyDeletedObjects:"Az objektumok sikeresen t\xF6r\xF6lve",blips:"Jel\xF6l\u0151k",toggledBlips:"Jel\xF6l\u0151k \xE1tkapcsolva",esp:"ESP",toggledESP:"ESP \xE1tkapcsolva",passiveMode:"Passz\xEDv M\xF3d",toggledPassiveMode:"Passz\xEDv m\xF3d \xE1tkapcsolva",freecam:"Szabad kamera",toggledFreecam:"Szabad kamera \xE1tkapcsolva",areYouSure:"Biztos vagy benne?",cancel:"M\xE9gse",continue:"Folytat\xE1s"},entity:{title:"Entit\xE1s V\xE1lt\xF3",selectPed:"V\xE1lassz NPC-t...",searchPeds:"NPC-k keres\xE9se...",noPedFound:"Nem tal\xE1lhat\xF3 NPC."},network:{title:"H\xE1l\xF3zat",routingBucket:"Routing bucket"},nameTags:{title:"N\xE9vc\xEDmk\xE9k",names:"Nevek"}},Monitoring:{actions:"M\u0171veletek",noPlayersSelected:"Nincsenek j\xE1t\xE9kosok kiv\xE1lasztva",viewLow:"Alacsony j\xE1t\xE9kid\u0151 megtekint\xE9se",viewLatest:"Legfrissebbek megtekint\xE9se",viewStaff:"Szem\xE9lyzet megtekint\xE9se",search:"J\xE1t\xE9kosok keres\xE9se...",noStaffViewingPermission:"Nincs jogosults\xE1god megtekinteni ennek a j\xE1t\xE9kosnak a k\xE9perny\u0151j\xE9t."},EntitySelector:{entityTypes:{vehicle:"J\xE1rm\u0171",ped:"Gyalogos",object:"Objektum",player:"J\xE1t\xE9kos"},entityId:"Entit\xE1s azonos\xEDt\xF3",modelHash:"Modell Hash",modelHashCopied:"Modell hash a v\xE1g\xF3lapra m\xE1solva",health:"\xC9leter\u0151",heading:"Ir\xE1ny",coordinates:"Koordin\xE1t\xE1k",coordinatesCopied:"Koordin\xE1t\xE1k a v\xE1g\xF3lapra m\xE1solva",networkStatus:"H\xE1l\xF3zati \xE1llapot",networked:"H\xE1l\xF3zatos",localOnly:"Csak helyi",synced:"Szinkroniz\xE1lt",local:"Helyi",netId:"Net ID",owner:"Tulajdonos",playerOwner:"J\xE1t\xE9kos {owner}",playerInformation:"J\xE1t\xE9kos inform\xE1ci\xF3k",playerId:"J\xE1t\xE9kos azonos\xEDt\xF3",serverId:"Szerver azonos\xEDt\xF3",vehicleHealth:"J\xE1rm\u0171 \xE9letereje",body:"Karossz\xE9ria",engine:"Motor",tank:"\xDCzemanyagtank",actions:"M\u0171veletek",deleteEntity:"Entit\xE1s t\xF6rl\xE9se"}}}}});var ED,LD=C(()=>{ED={Navigation:{dashboard:"Dashboard",players:"Giocatori",vehicles:"Veicoli",warns:"Avvertimenti",kicks:"Espulsioni",bans:"Ban",monitoring:"Monitoraggio"},Anticheat:{Dashboard:{Actions:{global:"Avanzato",manual:"Manuale",remove:"Rimuovi",identifiers:"Identificatori",banId:"ID Ban",kickId:"ID Kick",warnId:"ID Avvertimento",search:"Cerca",searchBy:"Cerca per {query}",searchOptions:"Opzioni di ricerca",noBans:"Nessun ban trovato",noKicks:"Nessun kick trovato",noWarns:"Nessun avvertimento trovato",kick:"Espelli",ban:"Banna",info:"Info",screenshotCreated:"Screenshot creato",videoCreated:"Video creato",kickPlayer:"Espelli {player}",messagePlayer:"Messaggio a {player}",messageConfirm:"Invia un messaggio a questo giocatore che verr\xE0 visualizzato sul suo schermo.",messageTitle:"Titolo del messaggio",messageDescription:"Descrizione del messaggio",messageTitlePlaceholder:"Annuncio importante",messageDescriptionPlaceholder:"Inserisci il tuo messaggio qui...",sendMessage:"Invia messaggio",banPlayer:"Banna {player}",kickConfirm:"Sei sicuro di voler espellere questo giocatore?",banConfirm:"Sei sicuro di voler bannare questo giocatore?",reason:"Motivo",cancel:"Annulla",continue:"Continua",playerIdentifiers:"Identificatori del giocatore",playerActions:"Azioni del giocatore",watch:"Osserva",stopWatching:"Smetti di osservare",copied:"Copiato negli appunti!",usingProxy:"Utilizzo di proxy / VPN",usingHosting:"Utilizzo di IP ospitato. Un IP proveniente da un datacenter."},Vehicles:{title:"Veicoli",selectVehicle:"Seleziona veicolo...",searchVehicles:"Cerca veicoli...",noVehicleFound:"Nessun veicolo trovato.",repairVehicle:"Ripara veicolo",boostVehicle:"Potenzia veicolo",deleteVehicle:"Elimina veicolo"},Players:{search:"Cerca giocatori...",online:"{amount} online"},Dashboard:{announcement:{title:"Annuncio",titlePlaceholder:"Titolo annuncio",textPlaceholder:"Testo annuncio",send:"Invia annuncio"},admin:{title:"Admin",deleteVehicles:"Elimina veicoli",deleteVehiclesDescription:"Elimina tutti i veicoli dal server",successfullyDeletedVehicles:"Veicoli eliminati con successo",deletePeds:"Elimina peds",deletePedsDescription:"Elimina tutti i peds dal server",successfullyDeletedPeds:"Peds eliminati con successo",deleteObjects:"Elimina oggetti",deleteObjectsDescription:"Elimina tutti gli oggetti dal server",successfullyDeletedObjects:"Oggetti eliminati con successo",blips:"Blips",toggledBlips:"Blips attivati/disattivati",esp:"ESP",toggledESP:"ESP attivato/disattivato",passiveMode:"Modalit\xE0 passiva",toggledPassiveMode:"Modalit\xE0 passiva attivata/disattivata",freecam:"Camera libera",toggledFreecam:"Camera libera attivata/disattivata",areYouSure:"Sei sicuro?",cancel:"Annulla",continue:"Continua"},entity:{title:"Selettore entit\xE0",selectPed:"Seleziona ped...",searchPeds:"Cerca peds...",noPedFound:"Nessun ped trovato."},network:{title:"Rete",routingBucket:"Bucket di routing"},nameTags:{title:"Tag nome",names:"Nomi"}},Monitoring:{actions:"Azioni",noPlayersSelected:"Nessun giocatore selezionato",viewLow:"Visualizza tempo di gioco basso",viewLatest:"Visualizza ultimi",viewStaff:"Visualizza staff",search:"Cerca giocatori...",noStaffViewingPermission:"Non hai il permesso di visualizzare lo schermo di questo giocatore."},EntitySelector:{entityTypes:{vehicle:"Veicolo",ped:"Pedone",object:"Oggetto",player:"Giocatore"},entityId:"ID Entit\xE0",modelHash:"Hash Modello",modelHashCopied:"Hash del modello copiato negli appunti",health:"Salute",heading:"Direzione",coordinates:"Coordinate",coordinatesCopied:"Coordinate copiate negli appunti",networkStatus:"Stato di Rete",networked:"In Rete",localOnly:"Solo Locale",synced:"Sincronizzato",local:"Locale",netId:"Net ID",owner:"Proprietario",playerOwner:"Giocatore {owner}",playerInformation:"Informazioni Giocatore",playerId:"ID Giocatore",serverId:"ID Server",vehicleHealth:"Salute Veicolo",body:"Carrozzeria",engine:"Motore",tank:"Serbatoio",actions:"Azioni",deleteEntity:"Elimina Entit\xE0"}}}}});var TD,PD=C(()=>{TD={Navigation:{dashboard:"\uB300\uC2DC\uBCF4\uB4DC",players:"\uD50C\uB808\uC774\uC5B4",vehicles:"\uCC28\uB7C9",warns:"\uACBD\uACE0",kicks:"\uD0A5",bans:"\uBC34",monitoring:"\uBAA8\uB2C8\uD130\uB9C1"},Anticheat:{Dashboard:{Actions:{global:"\uACE0\uAE09",manual:"\uC218\uB3D9",remove:"\uC81C\uAC70",identifiers:"\uC2DD\uBCC4\uC790",banId:"\uBC34 ID",kickId:"\uD0A5 ID",warnId:"\uACBD\uACE0 ID",search:"\uAC80\uC0C9",searchBy:"{query}\uB85C \uAC80\uC0C9",searchOptions:"\uAC80\uC0C9 \uC635\uC158",noBans:"\uBC34\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",noKicks:"\uD0A5\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",noWarns:"\uACBD\uACE0\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",kick:"\uD0A5",ban:"\uBC34",info:"\uC815\uBCF4",screenshotCreated:"\uC2A4\uD06C\uB9B0\uC0F7\uC774 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",videoCreated:"\uBE44\uB514\uC624\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",kickPlayer:"{player} \uD0A5",messagePlayer:"{player}\uC5D0\uAC8C \uBA54\uC2DC\uC9C0",messageConfirm:"\uC774 \uD50C\uB808\uC774\uC5B4\uC5D0\uAC8C \uD654\uBA74\uC5D0 \uD45C\uC2DC\uB420 \uBA54\uC2DC\uC9C0\uB97C \uBCF4\uB0C5\uB2C8\uB2E4.",messageTitle:"\uBA54\uC2DC\uC9C0 \uC81C\uBAA9",messageDescription:"\uBA54\uC2DC\uC9C0 \uC124\uBA85",messageTitlePlaceholder:"\uC911\uC694\uD55C \uACF5\uC9C0",messageDescriptionPlaceholder:"\uC5EC\uAE30\uC5D0 \uBA54\uC2DC\uC9C0\uB97C \uC785\uB825\uD558\uC138\uC694...",sendMessage:"\uBA54\uC2DC\uC9C0 \uC804\uC1A1",banPlayer:"{player} \uBC34",kickConfirm:"\uC774 \uD50C\uB808\uC774\uC5B4\uB97C \uD0A5\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",banConfirm:"\uC774 \uD50C\uB808\uC774\uC5B4\uB97C \uBC34\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",reason:"\uC774\uC720",cancel:"\uCDE8\uC18C",continue:"\uACC4\uC18D",playerIdentifiers:"\uD50C\uB808\uC774\uC5B4 \uC2DD\uBCC4\uC790",playerActions:"\uD50C\uB808\uC774\uC5B4 \uC791\uC5C5",watch:"\uAD00\uCC30",stopWatching:"\uAD00\uCC30 \uC911\uC9C0",copied:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",usingProxy:"\uD504\uB85D\uC2DC / VPN \uC0AC\uC6A9",usingHosting:"\uD638\uC2A4\uD305 IP \uC0AC\uC6A9. \uB370\uC774\uD130 \uC13C\uD130\uC5D0\uC11C \uC624\uB294 IP\uC785\uB2C8\uB2E4."},Vehicles:{title:"\uCC28\uB7C9",selectVehicle:"\uCC28\uB7C9 \uC120\uD0DD...",searchVehicles:"\uCC28\uB7C9 \uAC80\uC0C9...",noVehicleFound:"\uCC28\uB7C9\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",repairVehicle:"\uCC28\uB7C9 \uC218\uB9AC",boostVehicle:"\uCC28\uB7C9 \uBD80\uC2A4\uD2B8",deleteVehicle:"\uCC28\uB7C9 \uC0AD\uC81C"},Players:{search:"\uD50C\uB808\uC774\uC5B4 \uAC80\uC0C9...",online:"{amount} \uC628\uB77C\uC778"},Dashboard:{announcement:{title:"\uACF5\uC9C0\uC0AC\uD56D",titlePlaceholder:"\uACF5\uC9C0\uC0AC\uD56D \uC81C\uBAA9",textPlaceholder:"\uACF5\uC9C0\uC0AC\uD56D \uD14D\uC2A4\uD2B8",send:"\uACF5\uC9C0\uC0AC\uD56D \uBCF4\uB0B4\uAE30"},admin:{title:"\uAD00\uB9AC\uC790",deleteVehicles:"\uCC28\uB7C9 \uC0AD\uC81C",deleteVehiclesDescription:"\uC11C\uBC84\uC758 \uBAA8\uB4E0 \uCC28\uB7C9 \uC0AD\uC81C",successfullyDeletedVehicles:"\uCC28\uB7C9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4",deletePeds:"\uD3AB \uC0AD\uC81C",deletePedsDescription:"\uC11C\uBC84\uC758 \uBAA8\uB4E0 \uD3AB \uC0AD\uC81C",successfullyDeletedPeds:"\uD3AB\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4",deleteObjects:"\uAC1D\uCCB4 \uC0AD\uC81C",deleteObjectsDescription:"\uC11C\uBC84\uC758 \uBAA8\uB4E0 \uAC1D\uCCB4 \uC0AD\uC81C",successfullyDeletedObjects:"\uAC1D\uCCB4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4",blips:"\uBE14\uB9BD",toggledBlips:"\uBE14\uB9BD \uD1A0\uAE00\uB428",esp:"ESP",toggledESP:"ESP \uD1A0\uAE00\uB428",passiveMode:"\uD328\uC2DC\uBE0C \uBAA8\uB4DC",toggledPassiveMode:"\uD328\uC2DC\uBE0C \uBAA8\uB4DC \uD1A0\uAE00\uB428",freecam:"\uD504\uB9AC\uCEA0",toggledFreecam:"\uD504\uB9AC\uCEA0 \uD1A0\uAE00\uB428",areYouSure:"\uD655\uC2E4\uD569\uB2C8\uAE4C?",cancel:"\uCDE8\uC18C",continue:"\uACC4\uC18D"},entity:{title:"\uC5D4\uD2F0\uD2F0 \uC120\uD0DD\uAE30",selectPed:"\uD3AB \uC120\uD0DD...",searchPeds:"\uD3AB \uAC80\uC0C9...",noPedFound:"\uD3AB\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},network:{title:"\uB124\uD2B8\uC6CC\uD06C",routingBucket:"\uB77C\uC6B0\uD305 \uBC84\uD0B7"},nameTags:{title:"\uC774\uB984 \uD0DC\uADF8",names:"\uC774\uB984"}},Monitoring:{actions:"\uC791\uC5C5",noPlayersSelected:"\uC120\uD0DD\uB41C \uD50C\uB808\uC774\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4",viewLow:"\uB0AE\uC740 \uD50C\uB808\uC774\uD0C0\uC784 \uBCF4\uAE30",viewLatest:"\uCD5C\uC2E0 \uBCF4\uAE30",viewStaff:"\uC2A4\uD0DC\uD504 \uBCF4\uAE30",search:"\uD50C\uB808\uC774\uC5B4 \uAC80\uC0C9...",noStaffViewingPermission:"\uD574\uB2F9 \uD50C\uB808\uC774\uC5B4\uC758 \uD654\uBA74\uC744 \uBCFC \uAD8C\uD55C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},EntitySelector:{entityTypes:{vehicle:"\uCC28\uB7C9",ped:"\uBCF4\uD589\uC790",object:"\uC624\uBE0C\uC81D\uD2B8",player:"\uD50C\uB808\uC774\uC5B4"},entityId:"\uC5D4\uD2F0\uD2F0 ID",modelHash:"\uBAA8\uB378 \uD574\uC2DC",modelHashCopied:"\uBAA8\uB378 \uD574\uC2DC\uAC00 \uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4",health:"\uCCB4\uB825",heading:"\uBC29\uD5A5",coordinates:"\uC88C\uD45C",coordinatesCopied:"\uC88C\uD45C\uAC00 \uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4",networkStatus:"\uB124\uD2B8\uC6CC\uD06C \uC0C1\uD0DC",networked:"\uB124\uD2B8\uC6CC\uD06C\uB428",localOnly:"\uB85C\uCEEC \uC804\uC6A9",synced:"\uB3D9\uAE30\uD654\uB428",local:"\uB85C\uCEEC",netId:"Net ID",owner:"\uC18C\uC720\uC790",playerOwner:"\uD50C\uB808\uC774\uC5B4 {owner}",playerInformation:"\uD50C\uB808\uC774\uC5B4 \uC815\uBCF4",playerId:"\uD50C\uB808\uC774\uC5B4 ID",serverId:"\uC11C\uBC84 ID",vehicleHealth:"\uCC28\uB7C9 \uCCB4\uB825",body:"\uCC28\uCCB4",engine:"\uC5D4\uC9C4",tank:"\uD0F1\uD06C",actions:"\uC561\uC158",deleteEntity:"\uC5D4\uD2F0\uD2F0 \uC0AD\uC81C"}}}}});var DD,AD=C(()=>{DD={Navigation:{dashboard:"Dashboard",players:"Spelers",vehicles:"Voertuigen",warns:"Waarschuwingen",kicks:"Kicks",bans:"Bans",monitoring:"Monitoring"},Anticheat:{Dashboard:{Actions:{global:"Geavanceerd",manual:"Handmatig",remove:"Verwijderen",identifiers:"Identificatoren",banId:"Ban ID",kickId:"Kick ID",warnId:"Waarschuwing ID",search:"Zoeken",searchBy:"Zoeken op {query}",searchOptions:"Zoekopties",noBans:"Geen bans gevonden",noKicks:"Geen kicks gevonden",noWarns:"Geen waarschuwingen gevonden",kick:"Kicken",ban:"Bannen",info:"Info",screenshotCreated:"Screenshot gemaakt",videoCreated:"Video gemaakt",kickPlayer:"{player} kicken",messagePlayer:"Bericht naar {player}",messageConfirm:"Stuur een bericht naar deze speler dat op hun scherm wordt weergegeven.",messageTitle:"Berichttitel",messageDescription:"Berichtbeschrijving",messageTitlePlaceholder:"Belangrijke mededeling",messageDescriptionPlaceholder:"Voer hier uw bericht in...",sendMessage:"Bericht verzenden",banPlayer:"{player} bannen",kickConfirm:"Weet je zeker dat je deze speler wilt kicken?",banConfirm:"Weet je zeker dat je deze speler wilt bannen?",reason:"Reden",cancel:"Annuleren",continue:"Doorgaan",playerIdentifiers:"Speler identificatoren",playerActions:"Speler acties",watch:"Bekijken",stopWatching:"Stoppen met bekijken",copied:"Gekopieerd naar klembord!",usingProxy:"Gebruikt proxy / VPN",usingHosting:"Gebruikt gehost IP. Een IP-adres afkomstig van een datacenter."},Vehicles:{title:"Voertuigen",selectVehicle:"Voertuig selecteren...",searchVehicles:"Voertuigen zoeken...",noVehicleFound:"Geen voertuig gevonden.",repairVehicle:"Voertuig repareren",boostVehicle:"Voertuig boosten",deleteVehicle:"Voertuig verwijderen"},Players:{search:"Spelers zoeken...",online:"{amount} online"},Dashboard:{announcement:{title:"Aankondiging",titlePlaceholder:"Aankondiging titel",textPlaceholder:"Aankondiging tekst",send:"Aankondiging versturen"},admin:{title:"Admin",deleteVehicles:"Voertuigen verwijderen",deleteVehiclesDescription:"Alle voertuigen op de server verwijderen",successfullyDeletedVehicles:"Voertuigen succesvol verwijderd",deletePeds:"Peds verwijderen",deletePedsDescription:"Alle peds op de server verwijderen",successfullyDeletedPeds:"Peds succesvol verwijderd",deleteObjects:"Objecten verwijderen",deleteObjectsDescription:"Alle objecten op de server verwijderen",successfullyDeletedObjects:"Objecten succesvol verwijderd",blips:"Blips",toggledBlips:"Blips omgeschakeld",esp:"ESP",toggledESP:"ESP omgeschakeld",passiveMode:"Passieve modus",toggledPassiveMode:"Passieve modus omgeschakeld",freecam:"Vrije camera",toggledFreecam:"Vrije camera omgeschakeld",areYouSure:"Weet je het zeker?",cancel:"Annuleren",continue:"Doorgaan"},entity:{title:"Entiteit selector",selectPed:"Ped selecteren...",searchPeds:"Peds zoeken...",noPedFound:"Geen ped gevonden."},network:{title:"Netwerk",routingBucket:"Routing bucket"},nameTags:{title:"Naam tags",names:"Namen"}},Monitoring:{actions:"Acties",noPlayersSelected:"Geen spelers geselecteerd",viewLow:"Lage speeltijd bekijken",viewLatest:"Nieuwste bekijken",viewStaff:"Staff bekijken",search:"Spelers zoeken...",noStaffViewingPermission:"Je hebt geen toestemming om het scherm van deze speler te bekijken."},EntitySelector:{entityTypes:{vehicle:"Voertuig",ped:"Ped",object:"Object",player:"Speler"},entityId:"Entity ID",modelHash:"Model Hash",modelHashCopied:"Model hash gekopieerd naar klembord",health:"Gezondheid",heading:"Richting",coordinates:"Co\xF6rdinaten",coordinatesCopied:"Co\xF6rdinaten gekopieerd naar klembord",networkStatus:"Netwerkstatus",networked:"Genetwerkt",localOnly:"Alleen Lokaal",synced:"Gesynchroniseerd",local:"Lokaal",netId:"Net ID",owner:"Eigenaar",playerOwner:"Speler {owner}",playerInformation:"Speler Informatie",playerId:"Speler ID",serverId:"Server ID",vehicleHealth:"Voertuig Gezondheid",body:"Carrosserie",engine:"Motor",tank:"Tank",actions:"Acties",deleteEntity:"Verwijder Entity"}}}}});var ND,MD=C(()=>{ND={Navigation:{dashboard:"Painel",players:"Jogadores",vehicles:"Ve\xEDculos",warns:"Avisos",kicks:"Expuls\xF5es",bans:"Banimentos",monitoring:"Monitoramento"},Anticheat:{Dashboard:{Actions:{global:"Avan\xE7ado",manual:"Manual",remove:"Remover",identifiers:"Identificadores",banId:"ID do Ban",kickId:"ID do Kick",warnId:"ID do Aviso",search:"Pesquisar",searchBy:"Pesquisar por {query}",searchOptions:"Op\xE7\xF5es de pesquisa",noBans:"Nenhum ban encontrado",noKicks:"Nenhum kick encontrado",noWarns:"Nenhum aviso encontrado",kick:"Expulsar",ban:"Banir",info:"Info",screenshotCreated:"Screenshot criado",videoCreated:"V\xEDdeo criado",kickPlayer:"Expulsar {player}",banPlayer:"Banir {player}",kickConfirm:"Tem certeza de que quer expulsar este jogador?",banConfirm:"Tem certeza de que quer banir este jogador?",reason:"Motivo",cancel:"Cancelar",continue:"Continuar",playerIdentifiers:"Identificadores do jogador",playerActions:"A\xE7\xF5es do jogador",watch:"Observar",stopWatching:"Parar de observar",copied:"Copiado para a \xE1rea de transfer\xEAncia!",usingProxy:"A usar proxy / VPN",usingHosting:"A usar IP alojado. Um IP proveniente de um datacenter."},Vehicles:{title:"Ve\xEDculos",selectVehicle:"Selecionar ve\xEDculo...",searchVehicles:"Pesquisar ve\xEDculos...",noVehicleFound:"Nenhum ve\xEDculo encontrado.",repairVehicle:"Reparar ve\xEDculo",boostVehicle:"Impulsionar ve\xEDculo",deleteVehicle:"Excluir ve\xEDculo"},Players:{search:"Pesquisar jogadores...",online:"{amount} online"},Dashboard:{announcement:{title:"An\xFAncio",titlePlaceholder:"T\xEDtulo do an\xFAncio",textPlaceholder:"Texto do an\xFAncio",send:"Enviar an\xFAncio"},admin:{title:"Admin",deleteVehicles:"Excluir ve\xEDculos",deleteVehiclesDescription:"Excluir todos os ve\xEDculos do servidor",successfullyDeletedVehicles:"Ve\xEDculos exclu\xEDdos com sucesso",deletePeds:"Excluir peds",deletePedsDescription:"Excluir todos os peds do servidor",successfullyDeletedPeds:"Peds exclu\xEDdos com sucesso",deleteObjects:"Excluir objetos",deleteObjectsDescription:"Excluir todos os objetos do servidor",successfullyDeletedObjects:"Objetos exclu\xEDdos com sucesso",blips:"Blips",toggledBlips:"Blips alternados",esp:"ESP",toggledESP:"ESP alternado",passiveMode:"Modo passivo",toggledPassiveMode:"Modo passivo alternado",freecam:"C\xE2mera livre",toggledFreecam:"C\xE2mera livre alternada",areYouSure:"Tem certeza?",cancel:"Cancelar",continue:"Continuar"},entity:{title:"Seletor de entidades",selectPed:"Selecionar ped...",searchPeds:"Pesquisar peds...",noPedFound:"Nenhum ped encontrado."},network:{title:"Rede",routingBucket:"Bucket de roteamento"},nameTags:{title:"Tags de nome",names:"Nomes"}},Monitoring:{actions:"A\xE7\xF5es",noPlayersSelected:"Nenhum jogador selecionado",viewLow:"Ver tempo de jogo baixo",viewLatest:"Ver mais recentes",viewStaff:"Ver equipe",search:"Pesquisar jogadores...",noStaffViewingPermission:"Voc\xEA n\xE3o tem permiss\xE3o para visualizar a tela deste jogador."},EntitySelector:{entityTypes:{vehicle:"Ve\xEDculo",ped:"Pedestre",object:"Objeto",player:"Jogador"},entityId:"ID da Entidade",modelHash:"Hash do Modelo",modelHashCopied:"Hash do modelo copiado para a \xE1rea de transfer\xEAncia",health:"Vida",heading:"Dire\xE7\xE3o",coordinates:"Coordenadas",coordinatesCopied:"Coordenadas copiadas para a \xE1rea de transfer\xEAncia",networkStatus:"Status da Rede",networked:"Em Rede",localOnly:"Apenas Local",synced:"Sincronizado",local:"Local",netId:"Net ID",owner:"Dono",playerOwner:"Jogador {owner}",playerInformation:"Informa\xE7\xF5es do Jogador",playerId:"ID do Jogador",serverId:"ID do Servidor",vehicleHealth:"Vida do Ve\xEDculo",body:"Carroceria",engine:"Motor",tank:"Tanque",actions:"A\xE7\xF5es",deleteEntity:"Deletar Entidade"}}}}});var HS,FD,Wi,E9,OD,zS,P9,T9,A9,BD,HD,zD,US=C(()=>{"use strict";HS=A(me(),1),FD=A(T2(),1),Wi=A(J(),1);ko();gD();vD();wD();CD();_D();RD();LD();PD();AD();MD();E9=["en","fr","de","it","pt","cs","nl","ko","es","hu"],OD={en:xD,fr:kD,de:bD,it:ED,pt:ND,cs:yD,nl:DD,ko:TD,es:SD,hu:ID},zS="en",P9=e=>{let t=OD[zS],r=OD[e];return(0,FD.default)(t,r)},T9=()=>{let e=localStorage.getItem("locale");return OS(E9,e)?e:zS},A9=e=>{localStorage.setItem("locale",e)},BD=(0,Wi.createContext)({locale:zS,setLocale:()=>{}}),HD=({children:e})=>{let[t,r]=(0,Wi.useState)(T9()),a=(0,Wi.useCallback)(o=>{A9(o),r(o)},[]);return(0,HS.jsx)(BD.Provider,{value:{locale:t,setLocale:a},children:(0,HS.jsx)(BS,{locale:t,messages:P9(t),children:e})})},zD=()=>(0,Wi.useContext)(BD)});function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var Mse,Go=C(()=>{Mse=!!(typeof window<"u"&&window.document&&window.document.createElement)});function UD(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gn(...e){return t=>{let r=!1,a=e.map(o=>{let n=UD(o,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let o=0;o{jD=A(J(),1)});function VD(e,t){let r=$o.createContext(t),a=n=>{let{children:s,...i}=n,l=$o.useMemo(()=>i,Object.values(i));return(0,jS.jsx)(r.Provider,{value:l,children:s})};a.displayName=e+"Provider";function o(n){let s=$o.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[a,o]}function rr(e,t=[]){let r=[];function a(n,s){let i=$o.createContext(s),l=r.length;r=[...r,s];let c=u=>{let{scope:p,children:f,...h}=u,g=p?.[e]?.[l]||i,b=$o.useMemo(()=>h,Object.values(h));return(0,jS.jsx)(g.Provider,{value:b,children:f})};c.displayName=n+"Provider";function d(u,p){let f=p?.[e]?.[l]||i,h=$o.useContext(f);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[c,d]}let o=()=>{let n=r.map(s=>$o.createContext(s));return function(i){let l=i?.[e]||n;return $o.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[a,D9(o,...t)]}function D9(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=a.reduce((i,{useScope:l,scopeName:c})=>{let u=l(n)[`__scope${c}`];return{...i,...u}},{});return $o.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var $o,jS,Ro=C(()=>{$o=A(J(),1),jS=A(me(),1)});var qD,ya,Gi=C(()=>{qD=A(J(),1),ya=globalThis?.document?qD.useLayoutEffect:()=>{}});function va(e){let[t,r]=VS.useState(M9());return ya(()=>{e||r(a=>a??String(N9++))},[e]),e||(t?`radix-${t}`:"")}var VS,M9,N9,bc=C(()=>{VS=A(J(),1);Gi();M9=VS[" useId ".trim().toString()]||(()=>{}),N9=0});function to({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){let[o,n,s]=F9({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o;{let d=Ko.useRef(e!==void 0);Ko.useEffect(()=>{let u=d.current;u!==i&&console.warn(`${a} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,a])}let c=Ko.useCallback(d=>{if(i){let u=B9(d)?d(e):d;u!==e&&s.current?.(u)}else n(d)},[i,e,n,s]);return[l,c]}function F9({defaultProp:e,onChange:t}){let[r,a]=Ko.useState(e),o=Ko.useRef(r),n=Ko.useRef(t);return O9(()=>{n.current=t},[t]),Ko.useEffect(()=>{o.current!==r&&(n.current?.(r),o.current=r)},[r,o]),[r,a,n]}function B9(e){return typeof e=="function"}var Ko,tv,O9,$i=C(()=>{Ko=A(J(),1);Gi();tv=A(J(),1),O9=Ko[" useInsertionEffect ".trim().toString()]||ya});function Xo(e){let t=H9(e),r=zr.forwardRef((a,o)=>{let{children:n,...s}=a,i=zr.Children.toArray(n),l=i.find(z9);if(l){let c=l.props.children,d=i.map(u=>u===l?zr.Children.count(c)>1?zr.Children.only(null):zr.isValidElement(c)?c.props.children:null:u);return(0,pd.jsx)(t,{...s,ref:o,children:zr.isValidElement(c)?zr.cloneElement(c,void 0,d):null})}return(0,pd.jsx)(t,{...s,ref:o,children:n})});return r.displayName=`${e}.Slot`,r}function H9(e){let t=zr.forwardRef((r,a)=>{let{children:o,...n}=r;if(zr.isValidElement(o)){let s=j9(o),i=U9(n,o.props);return o.type!==zr.Fragment&&(i.ref=a?gn(a,s):s),zr.cloneElement(o,i)}return zr.Children.count(o)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function rv(e){let t=({children:r})=>(0,pd.jsx)(pd.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=WD,t}function z9(e){return zr.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WD}function U9(e,t){let r={...t};for(let a in t){let o=e[a],n=t[a];/^on[A-Z]/.test(a)?o&&n?r[a]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(r[a]=o):a==="style"?r[a]={...o,...n}:a==="className"&&(r[a]=[o,n].filter(Boolean).join(" "))}return{...e,...r}}function j9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var zr,pd,md,WD,yn=C(()=>{zr=A(J(),1);Hr();pd=A(me(),1);md=Xo("Slot");WD=Symbol("radix.slottable")});function av(e,t){e&&$D.flushSync(()=>e.dispatchEvent(t))}var GD,$D,KD,V9,qe,ba=C(()=>{GD=A(J(),1),$D=A(Gn(),1);yn();KD=A(me(),1),V9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qe=V9.reduce((e,t)=>{let r=Xo(`Primitive.${t}`),a=GD.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,KD.jsx)(l,{...i,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{})});function ar(e){let t=hd.useRef(e);return hd.useEffect(()=>{t.current=e}),hd.useMemo(()=>(...r)=>t.current?.(...r),[])}var hd,Ki=C(()=>{hd=A(J(),1)});function YD(e,t=globalThis?.document){let r=ar(e);XD.useEffect(()=>{let a=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var XD,QD=C(()=>{XD=A(J(),1);Ki()});function X9(e,t=globalThis?.document){let r=ar(e),a=ir.useRef(!1),o=ir.useRef(()=>{});return ir.useEffect(()=>{let n=i=>{if(i.target&&!a.current){let c=function(){tM(W9,r,d,{discrete:!0})};var l=c;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);a.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",n),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function Y9(e,t=globalThis?.document){let r=ar(e),a=ir.useRef(!1);return ir.useEffect(()=>{let o=n=>{n.target&&!a.current&&tM(G9,r,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function ZD(){let e=new CustomEvent(qS);document.dispatchEvent(e)}function tM(e,t,r,{discrete:a}){let o=r.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),a?av(o,n):o.dispatchEvent(n)}var ir,WS,q9,qS,W9,G9,JD,eM,Ws,$9,K9,Kp=C(()=>{"use client";ir=A(J(),1);Go();ba();Hr();Ki();QD();WS=A(me(),1),q9="DismissableLayer",qS="dismissableLayer.update",W9="dismissableLayer.pointerDownOutside",G9="dismissableLayer.focusOutside",eM=ir.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ws=ir.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:n,onInteractOutside:s,onDismiss:i,...l}=e,c=ir.useContext(eM),[d,u]=ir.useState(null),p=d?.ownerDocument??globalThis?.document,[,f]=ir.useState({}),h=$e(t,_=>u(_)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(b),y=d?g.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=m,S=X9(_=>{let w=_.target,B=[...c.branches].some(F=>F.contains(w));!x||B||(o?.(_),s?.(_),_.defaultPrevented||i?.())},p),I=Y9(_=>{let w=_.target;[...c.branches].some(F=>F.contains(w))||(n?.(_),s?.(_),_.defaultPrevented||i?.())},p);return YD(_=>{y===c.layers.size-1&&(a?.(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},p),ir.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(JD=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),ZD(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=JD)}},[d,p,r,c]),ir.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),ZD())},[d,c]),ir.useEffect(()=>{let _=()=>f({});return document.addEventListener(qS,_),()=>document.removeEventListener(qS,_)},[]),(0,WS.jsx)(qe.div,{...l,ref:h,style:{pointerEvents:v?x?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,I.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)})});Ws.displayName=q9;$9="DismissableLayerBranch",K9=ir.forwardRef((e,t)=>{let r=ir.useContext(eM),a=ir.useRef(null),o=$e(t,a);return ir.useEffect(()=>{let n=a.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,WS.jsx)(qe.div,{...e,ref:o})});K9.displayName=$9});function J9(e,{select:t=!1}={}){let r=document.activeElement;for(let a of e)if(Xi(a,{select:t}),document.activeElement!==r)return}function Z9(e){let t=iM(e),r=aM(t,e),a=aM(t.reverse(),e);return[r,a]}function iM(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function aM(e,t){for(let r of e)if(!e7(r,{upTo:t}))return r}function e7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function t7(e){return e instanceof HTMLInputElement&&"select"in e}function Xi(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&t7(e)&&t&&e.select()}}function r7(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=nM(e,t),e.unshift(t)},remove(t){e=nM(e,t),e[0]?.resume()}}}function nM(e,t){let r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function a7(e){return e.filter(t=>t.tagName!=="A")}var Yo,sM,GS,$S,rM,Q9,wc,oM,ov=C(()=>{"use client";Yo=A(J(),1);Hr();ba();Ki();sM=A(me(),1),GS="focusScope.autoFocusOnMount",$S="focusScope.autoFocusOnUnmount",rM={bubbles:!1,cancelable:!0},Q9="FocusScope",wc=Yo.forwardRef((e,t)=>{let{loop:r=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:n,...s}=e,[i,l]=Yo.useState(null),c=ar(o),d=ar(n),u=Yo.useRef(null),p=$e(t,g=>l(g)),f=Yo.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Yo.useEffect(()=>{if(a){let y=function(I){if(f.paused||!i)return;let _=I.target;i.contains(_)?u.current=_:Xi(u.current,{select:!0})},v=function(I){if(f.paused||!i)return;let _=I.relatedTarget;_!==null&&(i.contains(_)||Xi(u.current,{select:!0}))},x=function(I){if(document.activeElement===document.body)for(let w of I)w.removedNodes.length>0&&Xi(i)};var g=y,b=v,m=x;document.addEventListener("focusin",y),document.addEventListener("focusout",v);let S=new MutationObserver(x);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),S.disconnect()}}},[a,i,f.paused]),Yo.useEffect(()=>{if(i){oM.add(f);let g=document.activeElement;if(!i.contains(g)){let m=new CustomEvent(GS,rM);i.addEventListener(GS,c),i.dispatchEvent(m),m.defaultPrevented||(J9(a7(iM(i)),{select:!0}),document.activeElement===g&&Xi(i))}return()=>{i.removeEventListener(GS,c),setTimeout(()=>{let m=new CustomEvent($S,rM);i.addEventListener($S,d),i.dispatchEvent(m),m.defaultPrevented||Xi(g??document.body,{select:!0}),i.removeEventListener($S,d),oM.remove(f)},0)}}},[i,c,d,f]);let h=Yo.useCallback(g=>{if(!r&&!a||f.paused)return;let b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(b&&m){let y=g.currentTarget,[v,x]=Z9(y);v&&x?!g.shiftKey&&m===x?(g.preventDefault(),r&&Xi(v,{select:!0})):g.shiftKey&&m===v&&(g.preventDefault(),r&&Xi(x,{select:!0})):m===y&&g.preventDefault()}},[r,a,f.paused]);return(0,sM.jsx)(qe.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});wc.displayName=Q9;oM=r7()});var nv,lM,cM,o7,Gs,Xp=C(()=>{"use client";nv=A(J(),1),lM=A(Gn(),1);ba();Gi();cM=A(me(),1),o7="Portal",Gs=nv.forwardRef((e,t)=>{let{container:r,...a}=e,[o,n]=nv.useState(!1);ya(()=>n(!0),[]);let s=r||o&&globalThis?.document?.body;return s?lM.default.createPortal((0,cM.jsx)(qe.div,{...a,ref:t}),s):null});Gs.displayName=o7});function n7(e,t){return uM.useReducer((r,a)=>t[r][a]??r,e)}function s7(e){let[t,r]=ro.useState(),a=ro.useRef(null),o=ro.useRef(e),n=ro.useRef("none"),s=e?"mounted":"unmounted",[i,l]=n7(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ro.useEffect(()=>{let c=sv(a.current);n.current=i==="mounted"?c:"none"},[i]),ya(()=>{let c=a.current,d=o.current;if(d!==e){let p=n.current,f=sv(c);e?l("MOUNT"):f==="none"||c?.display==="none"?l("UNMOUNT"):l(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ya(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,u=f=>{let g=sv(a.current).includes(CSS.escape(f.animationName));if(f.target===t&&g&&(l("ANIMATION_END"),!o.current)){let b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=f=>{f.target===t&&(n.current=sv(a.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:ro.useCallback(c=>{a.current=c?getComputedStyle(c):null,r(c)},[])}}function sv(e){return e?.animationName||"none"}function i7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ro,uM,lr,xc=C(()=>{"use client";ro=A(J(),1);Hr();Gi();uM=A(J(),1);lr=e=>{let{present:t,children:r}=e,a=s7(t),o=typeof r=="function"?r({present:a.isPresent}):ro.Children.only(r),n=$e(a.ref,i7(o));return typeof r=="function"||a.isPresent?ro.cloneElement(o,{ref:n}):null};lr.displayName="Presence"});function gd(){fM.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dM()),document.body.insertAdjacentElement("beforeend",e[1]??dM()),KS++,()=>{KS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),KS--}},[])}function dM(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var fM,KS,iv=C(()=>{"use client";fM=A(J(),1),KS=0});function pM(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o{es=function(){return es=Object.assign||function(t){for(var r,a=1,o=arguments.length;a{Cc="right-scroll-bar-position",Sc="width-before-scroll-bar",XS="with-scroll-bars-hidden",YS="--removed-body-scroll-bar-size"});function uv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var hM=C(()=>{});function yM(e,t){var r=(0,gM.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var o=r.value;o!==a&&(r.value=a,r.callback(a,o))}}}})[0];return r.callback=t,r.facade}var gM,vM=C(()=>{gM=A(J())});function QS(e,t){var r=yM(t||null,function(a){return e.forEach(function(o){return uv(o,a)})});return l7(function(){var a=bM.get(r);if(a){var o=new Set(a),n=new Set(e),s=r.current;o.forEach(function(i){n.has(i)||uv(i,null)}),n.forEach(function(i){o.has(i)||uv(i,s)})}bM.set(r,e)},[e]),r}var dv,l7,bM,wM=C(()=>{dv=A(J());hM();vM();l7=typeof window<"u"?dv.useLayoutEffect:dv.useEffect,bM=new WeakMap});var xM=C(()=>{wM()});function CM(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o{yd=function(){return yd=Object.assign||function(t){for(var r,a=1,o=arguments.length;a{JS()});function e_(e,t){return e.useMedium(t),kM}var _M,kM,RM=C(()=>{JS();_M=A(J()),kM=function(e){var t=e.sideCar,r=CM(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return _M.createElement(a,yd({},r))};kM.isSideCarExport=!0});var t_=C(()=>{SM();RM()});var fv,r_=C(()=>{t_();fv=ZS()});var wa,a_,Yp,IM=C(()=>{lv();wa=A(J());cv();xM();r_();a_=function(){},Yp=wa.forwardRef(function(e,t){var r=wa.useRef(null),a=wa.useState({onScrollCapture:a_,onWheelCapture:a_,onTouchMoveCapture:a_}),o=a[0],n=a[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,p=e.sideCar,f=e.noIsolation,h=e.inert,g=e.allowPinchZoom,b=e.as,m=b===void 0?"div":b,y=e.gapMode,v=pM(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,S=QS([r,t]),I=es(es({},v),o);return wa.createElement(wa.Fragment,null,d&&wa.createElement(x,{sideCar:fv,removeScrollBar:c,shards:u,noIsolation:f,inert:h,setCallbacks:n,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?wa.cloneElement(wa.Children.only(i),es(es({},I),{ref:S})):wa.createElement(m,es({},I,{className:l,ref:S}),i))});Yp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yp.classNames={fullWidth:Sc,zeroRight:Cc}});var LM,EM,PM=C(()=>{EM=function(){if(LM)return LM;if(typeof __webpack_nonce__<"u")return __webpack_nonce__}});function d7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=EM();return t&&e.setAttribute("nonce",t),e}function f7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function p7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var o_,n_=C(()=>{PM();o_=function(){var e=0,t=null;return{add:function(r){e==0&&(t=d7())&&(f7(t,r),p7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}});var TM,s_,i_=C(()=>{TM=A(J());n_();s_=function(){var e=o_();return function(t,r){TM.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}}});var Qp,AM=C(()=>{i_();Qp=function(){var e=s_(),t=function(r){var a=r.styles,o=r.dynamic;return e(a,o),null};return t}});var l_=C(()=>{AM();n_();i_()});var m7,c_,h7,u_,d_=C(()=>{m7={left:0,top:0,right:0,gap:0},c_=function(e){return parseInt(e||"",10)||0},h7=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[c_(r),c_(a),c_(o)]},u_=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return m7;var t=h7(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}}});var bd,g7,vd,y7,DM,v7,f_,MM=C(()=>{bd=A(J());l_();cv();d_();g7=Qp(),vd="data-scroll-locked",y7=function(e,t,r,a){var o=e.left,n=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),` .`.concat(XS,` { overflow: hidden `).concat(a,`; padding-right: `).concat(i,"px ").concat(a,`; } body[`).concat(vd,`] { overflow: hidden `).concat(a,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(n,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; margin-right: `).concat(i,"px ").concat(a,`; `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(a,";")].filter(Boolean).join(""),` } .`).concat(Cc,` { right: `).concat(i,"px ").concat(a,`; } .`).concat(Sc,` { margin-right: `).concat(i,"px ").concat(a,`; } .`).concat(Cc," .").concat(Cc,` { right: 0 `).concat(a,`; } .`).concat(Sc," .").concat(Sc,` { margin-right: 0 `).concat(a,`; } body[`).concat(vd,`] { `).concat(YS,": ").concat(i,`px; } `)},DM=function(){var e=parseInt(document.body.getAttribute(vd)||"0",10);return isFinite(e)?e:0},v7=function(){bd.useEffect(function(){return document.body.setAttribute(vd,(DM()+1).toString()),function(){var e=DM()-1;e<=0?document.body.removeAttribute(vd):document.body.setAttribute(vd,e.toString())}},[])},f_=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;v7();var n=bd.useMemo(function(){return u_(o)},[o]);return bd.createElement(g7,{styles:y7(n,!t,o,r?"":"!important")})}});var NM=C(()=>{MM();cv();d_()});var p_,Jp,_c,OM=C(()=>{p_=!1;if(typeof window<"u")try{Jp=Object.defineProperty({},"passive",{get:function(){return p_=!0,!0}}),window.addEventListener("test",Jp,Jp),window.removeEventListener("test",Jp,Jp)}catch{p_=!1}_c=p_?{passive:!1}:!1});var b7,FM,w7,x7,m_,C7,S7,BM,HM,_7,zM,UM=C(()=>{b7=function(e){return e.tagName==="TEXTAREA"},FM=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!b7(e)&&r[t]==="visible")},w7=function(e){return FM(e,"overflowY")},x7=function(e){return FM(e,"overflowX")},m_=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=BM(e,a);if(o){var n=HM(e,a),s=n[1],i=n[2];if(s>i)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},C7=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},S7=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},BM=function(e,t){return e==="v"?w7(t):x7(t)},HM=function(e,t){return e==="v"?C7(t):S7(t)},_7=function(e,t){return e==="h"&&t==="rtl"?-1:1},zM=function(e,t,r,a,o){var n=_7(e,window.getComputedStyle(t).direction),s=n*a,i=r.target,l=t.contains(i),c=!1,d=s>0,u=0,p=0;do{var f=HM(e,i),h=f[0],g=f[1],b=f[2],m=g-b-n*h;(h||m)&&BM(e,i)&&(u+=m,p+=h),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(d&&(o&&Math.abs(u)<1||!o&&s>u)||!d&&(o&&Math.abs(p)<1||!o&&-s>p))&&(c=!0),c}});function qM(e){var t=Kt.useRef([]),r=Kt.useRef([0,0]),a=Kt.useRef(),o=Kt.useState(I7++)[0],n=Kt.useState(Qp)[0],s=Kt.useRef(e);Kt.useEffect(function(){s.current=e},[e]),Kt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=mM([e.lockRef.current],(e.shards||[]).map(VM),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=Kt.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var m=pv(g),y=r.current,v="deltaX"in g?g.deltaX:y[0]-m[0],x="deltaY"in g?g.deltaY:y[1]-m[1],S,I=g.target,_=Math.abs(v)>Math.abs(x)?"h":"v";if("touches"in g&&_==="h"&&I.type==="range")return!1;var w=m_(_,I);if(!w)return!0;if(w?S=_:(S=_==="v"?"h":"v",w=m_(_,I)),!w)return!1;if(!a.current&&"changedTouches"in g&&(v||x)&&(a.current=S),!S)return!0;var B=a.current||S;return zM(B,b,g,B==="h"?v:x,!0)},[]),l=Kt.useCallback(function(g){var b=g;if(!(!wd.length||wd[wd.length-1]!==n)){var m="deltaY"in b?jM(b):pv(b),y=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&k7(S.delta,m)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var v=(s.current.shards||[]).map(VM).filter(Boolean).filter(function(S){return S.contains(b.target)}),x=v.length>0?i(b,v[0]):!s.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),c=Kt.useCallback(function(g,b,m,y){var v={name:g,delta:b,target:m,should:y,shadowParent:L7(m)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(x){return x!==v})},1)},[]),d=Kt.useCallback(function(g){r.current=pv(g),a.current=void 0},[]),u=Kt.useCallback(function(g){c(g.type,jM(g),g.target,i(g,e.lockRef.current))},[]),p=Kt.useCallback(function(g){c(g.type,pv(g),g.target,i(g,e.lockRef.current))},[]);Kt.useEffect(function(){return wd.push(n),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",l,_c),document.addEventListener("touchmove",l,_c),document.addEventListener("touchstart",d,_c),function(){wd=wd.filter(function(g){return g!==n}),document.removeEventListener("wheel",l,_c),document.removeEventListener("touchmove",l,_c),document.removeEventListener("touchstart",d,_c)}},[]);var f=e.removeScrollBar,h=e.inert;return Kt.createElement(Kt.Fragment,null,h?Kt.createElement(n,{styles:R7(o)}):null,f?Kt.createElement(f_,{gapMode:e.gapMode}):null)}function L7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Kt,pv,jM,VM,k7,R7,I7,wd,WM=C(()=>{lv();Kt=A(J());NM();l_();OM();UM();pv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jM=function(e){return[e.deltaX,e.deltaY]},VM=function(e){return e&&"current"in e?e.current:e},k7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},R7=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},I7=0,wd=[]});var GM,$M=C(()=>{t_();WM();r_();GM=e_(fv,qM)});var mv,KM,$s,XM=C(()=>{lv();mv=A(J());IM();$M();KM=mv.forwardRef(function(e,t){return mv.createElement(Yp,es({},e,{ref:t,sideCar:GM}))});KM.classNames=Yp.classNames;$s=KM});var Zp=C(()=>{XM()});var E7,xd,hv,gv,h_,YM,P7,T7,Yi,em=C(()=>{E7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xd=new WeakMap,hv=new WeakMap,gv={},h_=0,YM=function(e){return e&&(e.host||YM(e.parentNode))},P7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=YM(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},T7=function(e,t,r,a){var o=P7(t,Array.isArray(e)?e:[e]);gv[r]||(gv[r]=new WeakMap);var n=gv[r],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(p){if(i.has(p))d(p);else try{var f=p.getAttribute(a),h=f!==null&&f!=="false",g=(xd.get(p)||0)+1,b=(n.get(p)||0)+1;xd.set(p,g),n.set(p,b),s.push(p),g===1&&h&&hv.set(p,!0),b===1&&p.setAttribute(r,"true"),h||p.setAttribute(a,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(t),i.clear(),h_++,function(){s.forEach(function(u){var p=xd.get(u)-1,f=n.get(u)-1;xd.set(u,p),n.set(u,f),p||(hv.has(u)||u.removeAttribute(a),hv.delete(u)),f||u.removeAttribute(r)}),h_--,h_||(xd=new WeakMap,xd=new WeakMap,hv=new WeakMap,gv={})}},Yi=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),o=t||E7(e);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),T7(a,o,r,"aria-hidden")):function(){return null}}});function b_(e){return e?"open":"closed"}var Ut,Ft,vv,QM,g_,A7,vn,JM,ZM,bn,y_,D7,eN,tN,yv,rN,M7,N7,kc,aN,O7,F7,oN,v_,nN,sN,Qi,iN,lN,cN,uN,dN,B7,H7,z7,bv,w_,wv,xv,Cv,Sv,_v,tm,Ks=C(()=>{"use client";Ut=A(J(),1);Go();Hr();Ro();bc();$i();Kp();ov();Xp();xc();ba();iv();Zp();em();yn();Ft=A(me(),1),vv="Dialog",[QM,g_]=rr(vv),[A7,vn]=QM(vv),JM=e=>{let{__scopeDialog:t,children:r,open:a,defaultOpen:o,onOpenChange:n,modal:s=!0}=e,i=Ut.useRef(null),l=Ut.useRef(null),[c,d]=to({prop:a,defaultProp:o??!1,onChange:n,caller:vv});return(0,Ft.jsx)(A7,{scope:t,triggerRef:i,contentRef:l,contentId:va(),titleId:va(),descriptionId:va(),open:c,onOpenChange:d,onOpenToggle:Ut.useCallback(()=>d(u=>!u),[d]),modal:s,children:r})};JM.displayName=vv;ZM="DialogTrigger",bn=Ut.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=vn(ZM,r),n=$e(t,o.triggerRef);return(0,Ft.jsx)(qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":b_(o.open),...a,ref:n,onClick:ye(e.onClick,o.onOpenToggle)})});bn.displayName=ZM;y_="DialogPortal",[D7,eN]=QM(y_,{forceMount:void 0}),tN=e=>{let{__scopeDialog:t,forceMount:r,children:a,container:o}=e,n=vn(y_,t);return(0,Ft.jsx)(D7,{scope:t,forceMount:r,children:Ut.Children.map(a,s=>(0,Ft.jsx)(lr,{present:r||n.open,children:(0,Ft.jsx)(Gs,{asChild:!0,container:o,children:s})}))})};tN.displayName=y_;yv="DialogOverlay",rN=Ut.forwardRef((e,t)=>{let r=eN(yv,e.__scopeDialog),{forceMount:a=r.forceMount,...o}=e,n=vn(yv,e.__scopeDialog);return n.modal?(0,Ft.jsx)(lr,{present:a||n.open,children:(0,Ft.jsx)(N7,{...o,ref:t})}):null});rN.displayName=yv;M7=Xo("DialogOverlay.RemoveScroll"),N7=Ut.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=vn(yv,r);return(0,Ft.jsx)($s,{as:M7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,Ft.jsx)(qe.div,{"data-state":b_(o.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),kc="DialogContent",aN=Ut.forwardRef((e,t)=>{let r=eN(kc,e.__scopeDialog),{forceMount:a=r.forceMount,...o}=e,n=vn(kc,e.__scopeDialog);return(0,Ft.jsx)(lr,{present:a||n.open,children:n.modal?(0,Ft.jsx)(O7,{...o,ref:t}):(0,Ft.jsx)(F7,{...o,ref:t})})});aN.displayName=kc;O7=Ut.forwardRef((e,t)=>{let r=vn(kc,e.__scopeDialog),a=Ut.useRef(null),o=$e(t,r.contentRef,a);return Ut.useEffect(()=>{let n=a.current;if(n)return Yi(n)},[]),(0,Ft.jsx)(oN,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,n=>{n.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,n=>{let s=n.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&n.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,n=>n.preventDefault())})}),F7=Ut.forwardRef((e,t)=>{let r=vn(kc,e.__scopeDialog),a=Ut.useRef(!1),o=Ut.useRef(!1);return(0,Ft.jsx)(oN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(a.current||r.triggerRef.current?.focus(),n.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(a.current=!0,n.detail.originalEvent.type==="pointerdown"&&(o.current=!0));let s=n.target;r.triggerRef.current?.contains(s)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&o.current&&n.preventDefault()}})}),oN=Ut.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:n,...s}=e,i=vn(kc,r),l=Ut.useRef(null),c=$e(t,l);return gd(),(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(wc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:n,children:(0,Ft.jsx)(Ws,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":b_(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(B7,{titleId:i.titleId}),(0,Ft.jsx)(z7,{contentRef:l,descriptionId:i.descriptionId})]})]})}),v_="DialogTitle",nN=Ut.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=vn(v_,r);return(0,Ft.jsx)(qe.h2,{id:o.titleId,...a,ref:t})});nN.displayName=v_;sN="DialogDescription",Qi=Ut.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=vn(sN,r);return(0,Ft.jsx)(qe.p,{id:o.descriptionId,...a,ref:t})});Qi.displayName=sN;iN="DialogClose",lN=Ut.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=vn(iN,r);return(0,Ft.jsx)(qe.button,{type:"button",...a,ref:t,onClick:ye(e.onClick,()=>o.onOpenChange(!1))})});lN.displayName=iN;cN="DialogTitleWarning",[uN,dN]=VD(cN,{contentName:kc,titleName:v_,docsSlug:"dialog"}),B7=({titleId:e})=>{let t=dN(cN),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Ut.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},H7="DialogDescriptionWarning",z7=({contentRef:e,descriptionId:t})=>{let a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dN(H7).contentName}}.`;return Ut.useEffect(()=>{let o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},bv=JM,w_=bn,wv=tN,xv=rN,Cv=aN,Sv=nN,_v=Qi,tm=lN});var pN,mN,U7,j7,hN,Qo,Rc=C(()=>{pN=A(J(),1);ba();mN=A(me(),1),U7=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),j7="VisuallyHidden",hN=pN.forwardRef((e,t)=>(0,mN.jsx)(qe.span,{...e,ref:t,style:{...U7,...e.style}}));hN.displayName=j7;Qo=hN});var ts,Sd=C(()=>{ts=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}});var V7,_d,kv=C(()=>{Sd();V7=class extends ts{#e;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_d=new V7});function gN(e){setTimeout(e,0)}var q7,W7,rs,rm=C(()=>{q7={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},W7=class{#e=q7;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},rs=new W7});function Rr(){}function bN(e,t){return typeof e=="function"?e(t):e}function am(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wn(e,t){return typeof e=="function"?e(t):e}function ao(e,t){return typeof e=="function"?e(t):e}function Iv(e,t){let{type:r="all",exact:a,fetchStatus:o,predicate:n,queryKey:s,stale:i}=e;if(s){if(a){if(t.queryHash!==om(s,t.options))return!1}else if(!Lc(t.queryKey,s))return!1}if(r!=="all"){let l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||o&&o!==t.state.fetchStatus||n&&!n(t))}function Lv(e,t){let{exact:r,status:a,predicate:o,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(r){if(Ic(t.options.mutationKey)!==Ic(n))return!1}else if(!Lc(t.options.mutationKey,n))return!1}return!(a&&t.state.status!==a||o&&!o(t))}function om(e,t){return(t?.queryKeyHashFn||Ic)(e)}function Ic(e){return JSON.stringify(e,(t,r)=>x_(r)?Object.keys(r).sort().reduce((a,o)=>(a[o]=r[o],a),{}):r)}function Lc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Lc(e[r],t[r])):!1}function S_(e,t,r=0){if(e===t)return e;if(r>500)return t;let a=yN(e)&&yN(t);if(!a&&!(x_(e)&&x_(t)))return t;let o=(a?e:Object.keys(e)).length,n=a?t:Object.keys(t),s=n.length,i=a?new Array(s):{},l=0;for(let c=0;c{rs.setTimeout(t,e)})}function nm(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?S_(e,t):t}function xN(e,t,r=0){let a=[...e,t];return r&&a.length>r?a.slice(1):a}function CN(e,t,r=0){let a=[t,...e];return r&&a.length>r?a.slice(0,-1):a}function Pv(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===kd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Tv(e,t){return typeof e=="function"?e(...t):!!e}function SN(e,t,r){let a=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),a||(a=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}var C_,G7,kd,xn=C(()=>{rm();C_=typeof window>"u"||"Deno"in globalThis;G7=Object.prototype.hasOwnProperty;kd=Symbol()});var as,sm=C(()=>{xn();as=(()=>{let e=()=>C_;return{isServer(){return e()},setIsServer(t){e=t}}})()});function im(){let e,t,r=new Promise((o,n)=>{e=o,t=n});r.status="pending",r.catch(()=>{});function a(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{a({status:"fulfilled",value:o}),e(o)},r.reject=o=>{a({status:"rejected",reason:o}),t(o)},r}var __=C(()=>{});function $7(){let e=[],t=0,r=i=>{i()},a=i=>{i()},o=_N,n=i=>{t?e.push(i):o(()=>{r(i)})},s=()=>{let i=e;e=[],i.length&&o(()=>{a(()=>{i.forEach(l=>{r(l)})})})};return{batch:i=>{let l;t++;try{l=i()}finally{t--,t||s()}return l},batchCalls:i=>(...l)=>{n(()=>{i(...l)})},schedule:n,setNotifyFunction:i=>{r=i},setBatchNotifyFunction:i=>{a=i},setScheduler:i=>{o=i}}}var _N,Xt,Ji=C(()=>{rm();_N=gN;Xt=$7()});var K7,Rd,k_=C(()=>{Sd();K7=class extends ts{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}},Rd=new K7});function X7(e){return Math.min(1e3*2**e,3e4)}function R_(e){return(e??"online")==="online"?Rd.isOnline():!0}function Dv(e){let t=!1,r=0,a,o=im(),n=()=>o.status!=="pending",s=g=>{if(!n()){let b=new Av(g);p(b),e.onCancel?.(b)}},i=()=>{t=!0},l=()=>{t=!1},c=()=>_d.isFocused()&&(e.networkMode==="always"||Rd.isOnline())&&e.canRun(),d=()=>R_(e.networkMode)&&e.canRun(),u=g=>{n()||(a?.(),o.resolve(g))},p=g=>{n()||(a?.(),o.reject(g))},f=()=>new Promise(g=>{a=b=>{(n()||c())&&g(b)},e.onPause?.()}).then(()=>{a=void 0,n()||e.onContinue?.()}),h=()=>{if(n())return;let g,b=r===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(u).catch(m=>{if(n())return;let y=e.retry??(as.isServer()?0:3),v=e.retryDelay??X7,x=typeof v=="function"?v(r,m):v,S=y===!0||typeof y=="number"&&rc()?void 0:f()).then(()=>{t?p(m):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(a?.(),o),cancelRetry:i,continueRetry:l,canStart:d,start:()=>(d()?h():f().then(h),o)}}var Av,I_=C(()=>{kv();k_();__();sm();xn();Av=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}}});var Mv,L_=C(()=>{rm();sm();xn();Mv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),am(this.gcTime)&&(this.#e=rs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(as.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(rs.clearTimeout(this.#e),this.#e=void 0)}}});function E_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kN(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function RN(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var IN,P_=C(()=>{xn();Ji();I_();L_();IN=class extends Mv{#e;#t;#r;#o;#a;#s;#n;constructor(e){super(),this.#n=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#r=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=RN(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let t=RN(this.options);t.data!==void 0&&(this.setState(kN(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){let r=nm(this.state.data,e,this.options);return this.#l({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Rr).catch(Rr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ao(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===kd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>wn(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Rv(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#n||this.#i()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#i(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let s=this.observers.find(i=>i.options.queryFn);s&&this.setOptions(s.options)}let r=new AbortController,a=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#n=!0,r.signal)})},o=()=>{let s=Pv(this.options,t),i=(()=>{let l={client:this.#o,queryKey:this.queryKey,meta:this.meta};return a(l),l})();return this.#n=!1,this.options.persister?this.options.persister(s,i,this):s(i)},n=(()=>{let s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return a(s),s})();this.options.behavior?.onFetch(n,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==n.fetchOptions?.meta)&&this.#l({type:"fetch",meta:n.fetchOptions?.meta}),this.#a=Dv({initialPromise:t?.initialPromise,fn:n.fetchFn,onCancel:s=>{s instanceof Av&&s.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(s,i)=>{this.#l({type:"failed",failureCount:s,error:i})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:n.options.retry,retryDelay:n.options.retryDelay,networkMode:n.options.networkMode,canRun:()=>!0});try{let s=await this.#a.start();if(s===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(s),this.#r.config.onSuccess?.(s,this),this.#r.config.onSettled?.(s,this.state.error,this),s}catch(s){if(s instanceof Av){if(s.silent)return this.#a.promise;if(s.revert){if(this.state.data===void 0)throw s;return this.state.data}}throw this.#l({type:"error",error:s}),this.#r.config.onError?.(s,this),this.#r.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#l(e){let t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...E_(r.data,this.options),fetchMeta:e.meta??null};case"success":let a={...r,...kN(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":let o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}}});function Y7(e,t){return ao(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function LN(e,t){return Y7(e,t)||e.state.data!==void 0&&T_(e,t,t.refetchOnMount)}function T_(e,t,r){if(ao(t.enabled,e)!==!1&&wn(t.staleTime,e)!=="static"){let a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&D_(e,t)}return!1}function EN(e,t,r,a){return(e!==t||ao(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&D_(e,r)}function D_(e,t){return ao(t.enabled,e)!==!1&&e.isStaleByTime(wn(t.staleTime,e))}function Q7(e,t){return!Ev(e.getCurrentResult(),t)}var A_,PN=C(()=>{kv();sm();Ji();P_();Sd();__();xn();rm();A_=class extends ts{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#n=im(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#o=void 0;#a;#s;#n;#i;#l;#p;#m;#u;#d;#c;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),LN(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return T_(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return T_(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ao(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Ev(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let a=this.hasListeners();a&&EN(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),a&&(this.#t!==r||ao(this.options.enabled,this.#t)!==ao(t.enabled,this.#t)||wn(this.options.staleTime,this.#t)!==wn(t.staleTime,this.#t))&&this.#g();let o=this.#y();a&&(this.#t!==r||ao(this.options.enabled,this.#t)!==ao(t.enabled,this.#t)||o!==this.#c)&&this.#v(o)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return Q7(this,r)&&(this.#o=r,this.#s=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#n.status==="pending"&&this.#n.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#f(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Rr)),t}#g(){this.#w();let e=wn(this.options.staleTime,this.#t);if(as.isServer()||this.#o.isStale||!am(e))return;let t=Rv(this.#o.dataUpdatedAt,e)+1;this.#u=rs.setTimeout(()=>{this.#o.isStale||this.updateResult()},t)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#c=e,!(as.isServer()||ao(this.options.enabled,this.#t)===!1||!am(this.#c)||this.#c===0)&&(this.#d=rs.setInterval(()=>{(this.options.refetchIntervalInBackground||_d.isFocused())&&this.#f()},this.#c))}#b(){this.#g(),this.#v(this.#y())}#w(){this.#u&&(rs.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d&&(rs.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r=this.#t,a=this.options,o=this.#o,n=this.#a,s=this.#s,i=e!==r?e.state:this.#r,{state:l}=e,c={...l},d=!1,u;if(t._optimisticResults){let I=this.hasListeners(),_=!I&&LN(e,t),w=I&&EN(e,r,t,a);(_||w)&&(c={...c,...E_(l.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:h}=c;u=c.data;let g=!1;if(t.placeholderData!==void 0&&u===void 0&&h==="pending"){let I;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(I=o.data,g=!0):I=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,I!==void 0&&(h="success",u=nm(o?.data,I,t),d=!0)}if(t.select&&u!==void 0&&!g)if(o&&u===n?.data&&t.select===this.#l)u=this.#p;else try{this.#l=t.select,u=t.select(u),u=nm(o?.data,u,t),this.#p=u,this.#i=null}catch(I){this.#i=I}this.#i&&(p=this.#i,u=this.#p,f=Date.now(),h="error");let b=c.fetchStatus==="fetching",m=h==="pending",y=h==="error",v=m&&b,x=u!==void 0,S={status:h,fetchStatus:c.fetchStatus,isPending:m,isSuccess:h==="success",isError:y,isInitialLoading:v,isLoading:v,data:u,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:c.dataUpdateCount>i.dataUpdateCount||c.errorUpdateCount>i.errorUpdateCount,isFetching:b,isRefetching:b&&!m,isLoadingError:y&&!x,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&x,isStale:D_(e,t),refetch:this.refetch,promise:this.#n,isEnabled:ao(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let I=S.data!==void 0,_=S.status==="error"&&!I,w=ie=>{_?ie.reject(S.error):I&&ie.resolve(S.data)},B=()=>{let ie=this.#n=S.promise=im();w(ie)},F=this.#n;switch(F.status){case"pending":e.queryHash===r.queryHash&&w(F);break;case"fulfilled":(_||S.data!==F.value)&&B();break;case"rejected":(!_||S.error!==F.reason)&&B();break}}return S}updateResult(){let e=this.#o,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#m=this.#t),Ev(t,e))return;this.#o=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#h.size)return!0;let n=new Set(o??this.#h);return this.options.throwOnError&&n.add("error"),Object.keys(this.#o).some(s=>{let i=s;return this.#o[i]!==e[i]&&n.has(i)})};this.#S({listeners:r()})}#C(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(e){Xt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}}});function M_(e){return{onFetch:(t,r)=>{let a=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],s=t.state.data?.pageParams||[],i={pages:[],pageParams:[]},l=0,c=async()=>{let d=!1,u=h=>{SN(h,()=>t.signal,()=>d=!0)},p=Pv(t.options,t.fetchOptions),f=async(h,g,b)=>{if(d)return Promise.reject();if(g==null&&h.pages.length)return Promise.resolve(h);let m=(()=>{let S={client:t.client,queryKey:t.queryKey,pageParam:g,direction:b?"backward":"forward",meta:t.options.meta};return u(S),S})(),y=await p(m),{maxPages:v}=t.options,x=b?CN:xN;return{pages:x(h.pages,y,v),pageParams:x(h.pageParams,g,v)}};if(o&&n.length){let h=o==="backward",g=h?J7:TN,b={pages:n,pageParams:s},m=g(a,b);i=await f(b,m,h)}else{let h=e??n.length;do{let g=l===0?s[0]??a.initialPageParam:TN(a,i);if(l>0&&g==null)break;i=await f(i,g),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function TN(e,{pages:t,pageParams:r}){let a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,r[a],r):void 0}function J7(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var AN=C(()=>{xn()});function Z7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DN,MN=C(()=>{Ji();L_();I_();DN=class extends Mv{#e;#t;#r;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||Z7(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Dv({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(n,s)=>{this.#a({type:"failed",failureCount:n,error:s})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let a=this.state.status==="pending",o=!this.#o.canStart();try{if(a)t();else{this.#a({type:"pending",variables:e,isPaused:o}),this.#r.config.onMutate&&await this.#r.config.onMutate(e,this,r);let s=await this.options.onMutate?.(e,r);s!==this.state.context&&this.#a({type:"pending",context:s,variables:e,isPaused:o})}let n=await this.#o.start();return await this.#r.config.onSuccess?.(n,e,this.state.context,this,r),await this.options.onSuccess?.(n,e,this.state.context,r),await this.#r.config.onSettled?.(n,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(n,null,e,this.state.context,r),this.#a({type:"success",data:n}),n}catch(n){try{await this.#r.config.onError?.(n,e,this.state.context,this,r)}catch(s){Promise.reject(s)}try{await this.options.onError?.(n,e,this.state.context,r)}catch(s){Promise.reject(s)}try{await this.#r.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this,r)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,n,e,this.state.context,r)}catch(s){Promise.reject(s)}throw this.#a({type:"error",error:n}),n}finally{this.#r.runNext(this)}}#a(e){let t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Xt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}}});function Nv(e){return e.options.scope?.id}var NN,ON=C(()=>{Ji();MN();xn();Sd();NN=class extends ts{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){let a=new DN({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(a),a}add(e){this.#e.add(e);let t=Nv(e);if(typeof t=="string"){let r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let t=Nv(e);if(typeof t=="string"){let r=this.#t.get(t);if(r)if(r.length>1){let a=r.indexOf(e);a!==-1&&r.splice(a,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=Nv(e);if(typeof t=="string"){let r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){let t=Nv(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(r=>Lv(t,r))}findAll(e={}){return this.getAll().filter(t=>Lv(e,t))}notify(e){Xt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(t=>t.state.isPaused);return Xt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Rr))))}}});var FN,BN=C(()=>{xn();P_();Ji();Sd();FN=class extends ts{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let a=t.queryKey,o=t.queryHash??om(a,t),n=this.get(o);return n||(n=new IN({client:e,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a)}),this.add(n)),n}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(r=>Iv(t,r))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(r=>Iv(e,r)):t}notify(e){Xt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}});var N_,HN=C(()=>{xn();BN();ON();kv();k_();Ji();AN();N_=class{#e;#t;#r;#o;#a;#s;#n;#i;constructor(e={}){this.#e=e.queryCache||new FN,this.#t=e.mutationCache||new NN,this.#r=e.defaultOptions||{},this.#o=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#n=_d.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Rd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#n?.(),this.#n=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#e.build(this,t),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(wn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{let a=r.data;return[t,a]})}setQueryData(e,t,r){let a=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(a.queryHash)?.state.data,n=bN(t,o);if(n!==void 0)return this.#e.build(this,a).setData(n,{...r,manual:!0})}setQueriesData(e,t,r){return Xt.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Xt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){let r=this.#e;return Xt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t},a=Xt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(a).then(Rr).catch(Rr)}invalidateQueries(e,t={}){return Xt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0},a=Xt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let n=o.fetch(void 0,r);return r.throwOnError||(n=n.catch(Rr)),o.state.fetchStatus==="paused"?Promise.resolve():n}));return Promise.all(a).then(Rr)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=this.#e.build(this,t);return r.isStaleByTime(wn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Rr).catch(Rr)}fetchInfiniteQuery(e){return e.behavior=M_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Rr).catch(Rr)}ensureInfiniteQueryData(e){return e.behavior=M_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Rd.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#o.set(Ic(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],r={};return t.forEach(a=>{Lc(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,t){this.#a.set(Ic(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#a.values()],r={};return t.forEach(a=>{Lc(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=om(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===kd&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}}});var zN=C(()=>{});var lm=C(()=>{sm();Ji();HN();PN();xn();zN()});var UN=C(()=>{});var Id,jN,O_,F_,B_,H_=C(()=>{"use client";Id=A(J(),1),jN=A(me(),1),O_=Id.createContext(void 0),F_=e=>{let t=Id.useContext(O_);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},B_=({client:e,children:t})=>(Id.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,jN.jsx)(O_.Provider,{value:e,children:t}))});var Ov,VN,qN,pue,WN=C(()=>{"use client";Ov=A(J(),1),VN=Ov.createContext(!1),qN=()=>Ov.useContext(VN),pue=VN.Provider});function tK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var cm,eK,rK,GN,$N=C(()=>{"use client";cm=A(J(),1),eK=A(me(),1);rK=cm.createContext(tK()),GN=()=>cm.useContext(rK)});var KN,XN,YN,QN,JN=C(()=>{"use client";KN=A(J(),1);lm();XN=(e,t,r)=>{let a=r?.state.error&&typeof e.throwOnError=="function"?Tv(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},YN=e=>{KN.useEffect(()=>{e.clearReset()},[e])},QN=({result:e,errorResetBoundary:t,throwOnError:r,query:a,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(o&&e.data===void 0||Tv(r,[e.error,a]))});var ZN,eO,tO,z_,rO=C(()=>{ZN=e=>{if(e.suspense){let t=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>t(r(...a)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},eO=(e,t)=>e.isLoading&&e.isFetching&&!t,tO=(e,t)=>e?.suspense&&t.isPending,z_=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})});function aO(e,t,r){let a=qN(),o=GN(),n=F_(r),s=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let i=n.getQueryCache().get(s.queryHash);s._optimisticResults=a?"isRestoring":"optimistic",ZN(s),XN(s,o,i),YN(o);let l=!n.getQueryCache().get(s.queryHash),[c]=Zi.useState(()=>new t(n,s)),d=c.getOptimisticResult(s),u=!a&&e.subscribed!==!1;if(Zi.useSyncExternalStore(Zi.useCallback(p=>{let f=u?c.subscribe(Xt.batchCalls(p)):Rr;return c.updateResult(),f},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),Zi.useEffect(()=>{c.setOptions(s)},[s,c]),tO(s,d))throw z_(s,c,o);if(QN({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:i,suspense:s.suspense}))throw d.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!as.isServer()&&eO(d,a)&&(l?z_(s,c,o):i?.promise)?.catch(Rr).finally(()=>{c.updateResult()}),s.notifyOnChangeProps?d:c.trackResult(d)}var Zi,oO=C(()=>{"use client";Zi=A(J(),1);lm();H_();$N();JN();WN();rO()});function Io(e,t){return aO(e,A_,t)}var nO=C(()=>{"use client";lm();oO()});var el=C(()=>{lm();UN();nO();H_()});function sO(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function MO(e={}){let{initialEntries:t=["/"],initialIndex:r,v5Compat:a=!1}=e,o;o=t.map((f,h)=>d(f,typeof f=="string"?null:f.state,h===0?"default":void 0,typeof f=="string"?void 0:f.unstable_mask));let n=l(r??o.length-1),s="POP",i=null;function l(f){return Math.min(Math.max(f,0),o.length-1)}function c(){return o[n]}function d(f,h=null,g,b){let m=G_(o?c().pathname:"/",f,h,g,b);return cr(m.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(f)}`),m}function u(f){return typeof f=="string"?f:Sn(f)}return{get index(){return n},get action(){return s},get location(){return c()},createHref:u,createURL(f){return new URL(u(f),"http://localhost")},encodeLocation(f){let h=typeof f=="string"?Zo(f):f;return{pathname:h.pathname||"",search:h.search||"",hash:h.hash||""}},push(f,h){s="PUSH";let g=sO(f)?f:d(f,h);n+=1,o.splice(n,o.length,g),a&&i&&i({action:s,location:g,delta:1})},replace(f,h){s="REPLACE";let g=sO(f)?f:d(f,h);o[n]=g,a&&i&&i({action:s,location:g,delta:0})},go(f){s="POP";let h=l(n+f),g=o[h];n=h,i&&i({action:s,location:g,delta:f})},listen(f){return i=f,()=>{i=null}}}}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nK(){return Math.random().toString(36).substring(2,10)}function G_(e,t,r=null,a,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Zo(t):t,state:r,key:t&&t.key||a||nK(),unstable_mask:o}}function Sn({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Zo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function sK(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),nt(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Sn(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function lK(e){return iK.has(e)}function uK(e){return cK.has(e)}function dK(e){return e.index===!0}function hm(e,t,r=[],a={},o=!1){return e.map((n,s)=>{let i=[...r,String(s)],l=typeof n.id=="string"?n.id:i.join("-");if(nt(n.index!==!0||!n.children,"Cannot specify children on an index route"),nt(o||!a[l],`Found a route id collision on id "${l}". Route id's must be globally unique within Data Router usages`),dK(n)){let c={...n,id:l};return a[l]=iO(c,t(c)),c}else{let c={...n,id:l,children:void 0};return a[l]=iO(c,t(c)),n.children&&(c.children=hm(n.children,t,i,a,o)),c}})}function iO(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Ys(e,t,r="/"){return pm(e,t,r,!1)}function pm(e,t,r,a){let o=typeof t=="string"?Zo(t):t,n=Eo(o.pathname||"/",r);if(n==null)return null;let s=OO(e);fK(s);let i=null;for(let l=0;i==null&&l{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(a)&&l)return;nt(d.relativePath.startsWith(a),`Absolute route path "${d.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(a.length)}let u=Cn([a,d.relativePath]),p=r.concat(d);s.children&&s.children.length>0&&(nt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),OO(s.children,t,p,u,l)),!(s.path==null&&!s.index)&&t.push({path:u,score:bK(u,s.index),routesMeta:p})};return e.forEach((s,i)=>{if(s.path===""||!s.path?.includes("?"))n(s,i);else for(let l of FO(s.path))n(s,i,!0,l)}),t}function FO(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,o=r.endsWith("?"),n=r.replace(/\?$/,"");if(a.length===0)return o?[n,""]:[n];let s=FO(a.join("/")),i=[];return i.push(...s.map(l=>l===""?n:[n,l].join("/"))),o&&i.push(...s),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function fK(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:wK(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}function bK(e,t){let r=e.split("/"),a=r.length;return r.some(lO)&&(a+=vK),t&&(a+=hK),r.filter(o=>!lO(o)).reduce((o,n)=>o+(pK.test(n)?mK:n===""?gK:yK),a)}function wK(e,t){return e.length===t.length&&e.slice(0,-1).every((a,o)=>a===t[o])?e[e.length-1]-t[t.length-1]:0}function xK(e,t,r=!1){let{routesMeta:a}=e,o={},n="/",s=[];for(let i=0;i{if(d==="*"){let h=i[p]||"";s=n.slice(0,n.length-h.length).replace(/(.)\/+$/,"$1")}let f=i[p];return u&&!f?c[d]=void 0:c[d]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:n,pathnameBase:s,pattern:e}}function CK(e,t=!1,r=!0){cr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,l,c,d)=>{if(a.push({paramName:i,isOptional:l!=null}),l){let u=d.charAt(c+s.length);return u&&u!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),a]}function SK(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Eo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function _K({basename:e,pathname:t}){return t==="/"?e:Cn([e,t])}function HO(e,t="/"){let{pathname:r,search:a="",hash:o=""}=typeof e=="string"?Zo(e):e,n;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?n=cO(r.substring(1),"/"):n=cO(r,t)):n=t,{pathname:n,search:RK(a),hash:IK(o)}}function cO(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function j_(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function zO(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ek(e){let t=zO(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function Wv(e,t,r,a=!1){let o;typeof e=="string"?o=Zo(e):(o={...e},nt(!o.pathname||!o.pathname.includes("?"),j_("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),j_("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),j_("#","search","hash",o)));let n=e===""||o.pathname==="",s=n?"/":o.pathname,i;if(s==null)i=r;else{let u=t.length-1;if(!a&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),u-=1;o.pathname=p.join("/")}i=u>=0?t[u]:"/"}let l=HO(o,i),c=s&&s!=="/"&&s.endsWith("/"),d=(n||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}function Dd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function vm(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}function jO(e,t){let r=e;if(typeof r!="string"||!BO.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,o=!1;if(UO)try{let n=new URL(window.location.href),s=r.startsWith("//")?new URL(n.protocol+r):new URL(r),i=Eo(s.pathname,t);s.origin===n.origin&&i!=null?r=i+s.search+s.hash:o=!0}catch{cr(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:r}}function LK(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(n){let s=Object.keys(r);for(let i of s)n[i]&&r[i].push(n[i])}}));let a={};if(typeof t.lazy=="function"&&r.lazy.length>0){let o=Pd(r.lazy,t.lazy,()=>{});o&&(a.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(n=>{let s=o[n],i=r[`lazy.${n}`];if(typeof s=="function"&&i.length>0){let l=Pd(i,s,()=>{});l&&(a.lazy=Object.assign(a.lazy||{},{[n]:l}))}})}return["loader","action"].forEach(o=>{let n=t[o];if(typeof n=="function"&&r[o].length>0){let s=n[rl]??n,i=Pd(r[o],s,(...l)=>uO(l[0]));i&&(o==="loader"&&s.hydrate===!0&&(i.hydrate=!0),i[rl]=s,a[o]=i)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(a.middleware=t.middleware.map(o=>{let n=o[rl]??o,s=Pd(r.middleware,n,(...i)=>uO(i[0]));return s?(s[rl]=n,s):o})),a}function EK(e,t){let r={navigate:[],fetch:[]};if(t.forEach(a=>a({instrument(o){let n=Object.keys(o);for(let s of n)o[s]&&r[s].push(o[s])}})),r.navigate.length>0){let a=e.navigate[rl]??e.navigate,o=Pd(r.navigate,a,(...n)=>{let[s,i]=n;return{to:typeof s=="number"||typeof s=="string"?s:s?Sn(s):".",...dO(e,i??{})}});o&&(o[rl]=a,e.navigate=o)}if(r.fetch.length>0){let a=e.fetch[rl]??e.fetch,o=Pd(r.fetch,a,(...n)=>{let[s,,i,l]=n;return{href:i??".",fetcherKey:s,...dO(e,l??{})}});o&&(o[rl]=a,e.fetch=o)}return e}function Pd(e,t,r){return e.length===0?null:async(...a)=>{let o=await VO(e,r(...a),()=>t(...a),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function VO(e,t,r,a){let o=e[a],n;if(o){let s,i=async()=>(s?console.error("You cannot call instrumented handlers more than once"):s=VO(e,t,r,a-1),n=await s,nt(n,"Expected a result"),n.type==="error"&&n.value instanceof Error?{status:"error",error:n.value}:{status:"success",error:void 0});try{await o(i,t)}catch(l){console.error("An instrumentation function threw an error:",l)}s||await i(),await s}else try{n={type:"success",value:await r()}}catch(s){n={type:"error",value:s}}return n||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function uO(e){let{request:t,context:r,params:a,unstable_pattern:o}=e;return{request:PK(t),params:{...a},unstable_pattern:o,context:TK(r)}}function dO(e,t){return{currentUrl:Sn(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function PK(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function TK(e){if(DK(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}function DK(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===AK}function XO(e){let t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";nt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],o=e.mapRouteProperties||BK,n=o;if(e.unstable_instrumentations){let k=e.unstable_instrumentations;n=O=>({...o(O),...LK(k.map(j=>j.route).filter(Boolean),O)})}let s={},i=hm(e.routes,n,void 0,s),l,c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let d=e.dataStrategy||VK,u={...e.future},p=null,f=new Set,h=null,g=null,b=null,m=e.hydrationData!=null,y=Ys(i,e.history.location,c),v=!1,x=null,S,I;if(y==null&&!e.patchRoutesOnNavigation){let k=Jo(404,{pathname:e.history.location.pathname}),{matches:O,route:j}=Fv(i);S=!0,I=!S,y=O,x={[j.id]:k}}else if(y&&!e.hydrationData&&Cs(y,i,e.history.location.pathname).active&&(y=null),y)if(y.some(k=>k.route.lazy))S=!1,I=!S;else if(!y.some(k=>tk(k.route)))S=!0,I=!S;else{let k=e.hydrationData?e.hydrationData.loaderData:null,O=e.hydrationData?e.hydrationData.errors:null,j=y;if(O){let ue=y.findIndex(fe=>O[fe.route.id]!==void 0);j=j.slice(0,ue+1)}I=!1,S=j.every(ue=>{let fe=YO(ue.route,k,O);return I=I||fe.renderFallback,!fe.shouldLoad})}else{S=!1,I=!S,y=[];let k=Cs(null,i,e.history.location.pathname);k.active&&k.matches&&(v=!0,y=k.matches)}let _,w={historyAction:e.history.action,location:e.history.location,matches:y,initialized:S,renderFallback:I,navigation:Uv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},B="POP",F=null,ie=!1,$,Y=!1,Z=new Map,re=null,Q=!1,P=!1,D=new Set,L=new Map,U=0,ne=-1,z=new Map,T=new Set,E=new Map,M=new Map,V=new Set,K=new Map,X,W=null;function xe(){if(p=e.history.listen(({action:k,location:O,delta:j})=>{if(X){X(),X=void 0;return}cr(K.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ue=gf({currentLocation:w.location,nextLocation:O,historyAction:k});if(ue&&j!=null){let fe=new Promise(Me=>{X=Me});e.history.go(j*-1),su(ue,{state:"blocked",location:O,proceed(){su(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),fe.then(()=>e.history.go(j))},reset(){let Me=new Map(w.blockers);Me.set(ue,Ld),_e({blockers:Me})}}),F?.resolve(),F=null;return}return _t(k,O)}),r){iX(t,Z);let k=()=>lX(t,Z);t.addEventListener("pagehide",k),re=()=>t.removeEventListener("pagehide",k)}return w.initialized||_t("POP",w.location,{initialHydration:!0}),_}function ve(){p&&p(),re&&re(),f.clear(),$&&$.abort(),w.fetchers.forEach((k,O)=>Un(O)),w.blockers.forEach((k,O)=>Dh(O))}function Ve(k){return f.add(k),()=>f.delete(k)}function _e(k,O={}){k.matches&&(k.matches=k.matches.map(fe=>{let Me=s[fe.route.id],Ce=fe.route;return Ce.element!==Me.element||Ce.errorElement!==Me.errorElement||Ce.hydrateFallbackElement!==Me.hydrateFallbackElement?{...fe,route:Me}:fe})),w={...w,...k};let j=[],ue=[];w.fetchers.forEach((fe,Me)=>{fe.state==="idle"&&(V.has(Me)?j.push(Me):ue.push(Me))}),V.forEach(fe=>{!w.fetchers.has(fe)&&!L.has(fe)&&j.push(fe)}),[...f].forEach(fe=>fe(w,{deletedFetchers:j,newErrors:k.errors??null,viewTransitionOpts:O.viewTransitionOpts,flushSync:O.flushSync===!0})),j.forEach(fe=>Un(fe)),ue.forEach(fe=>w.fetchers.delete(fe))}function xt(k,O,{flushSync:j}={}){let ue=w.actionData!=null&&w.navigation.formMethod!=null&&xa(w.navigation.formMethod)&&w.navigation.state==="loading"&&k.state?._isRedirect!==!0,fe;O.actionData?Object.keys(O.actionData).length>0?fe=O.actionData:fe=null:ue?fe=w.actionData:fe=null;let Me=O.loaderData?xO(w.loaderData,O.loaderData,O.matches||[],O.errors):w.loaderData,Ce=w.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((Ue,Oe)=>Ce.set(Oe,Ld)));let Be=Q?!1:fa(k,O.matches||w.matches),Le=ie===!0||w.navigation.formMethod!=null&&xa(w.navigation.formMethod)&&k.state?._isRedirect!==!0;l&&(i=l,l=void 0),Q||B==="POP"||(B==="PUSH"?e.history.push(k,k.state):B==="REPLACE"&&e.history.replace(k,k.state));let ze;if(B==="POP"){let Ue=Z.get(w.location.pathname);Ue&&Ue.has(k.pathname)?ze={currentLocation:w.location,nextLocation:k}:Z.has(k.pathname)&&(ze={currentLocation:k,nextLocation:w.location})}else if(Y){let Ue=Z.get(w.location.pathname);Ue?Ue.add(k.pathname):(Ue=new Set([k.pathname]),Z.set(w.location.pathname,Ue)),ze={currentLocation:w.location,nextLocation:k}}_e({...O,actionData:fe,loaderData:Me,historyAction:B,location:k,initialized:!0,renderFallback:!1,navigation:Uv,revalidation:"idle",restoreScrollPosition:Be,preventScrollReset:Le,blockers:Ce},{viewTransitionOpts:ze,flushSync:j===!0}),B="POP",ie=!1,Y=!1,Q=!1,P=!1,F?.resolve(),F=null,W?.resolve(),W=null}async function Qt(k,O){if(F?.resolve(),F=null,typeof k=="number"){F||(F=kO());let sr=F.promise;return e.history.go(k),sr}let j=K_(w.location,w.matches,c,k,O?.fromRouteId,O?.relative),{path:ue,submission:fe,error:Me}=fO(!1,j,O),Ce;O?.unstable_mask&&(Ce={pathname:"",search:"",hash:"",...typeof O.unstable_mask=="string"?Zo(O.unstable_mask):{...w.location.unstable_mask,...O.unstable_mask}});let Be=w.location,Le=G_(Be,ue,O&&O.state,void 0,Ce);Le={...Le,...e.history.encodeLocation(Le)};let ze=O&&O.replace!=null?O.replace:void 0,Ue="PUSH";ze===!0?Ue="REPLACE":ze===!1||fe!=null&&xa(fe.formMethod)&&fe.formAction===w.location.pathname+w.location.search&&(Ue="REPLACE");let Oe=O&&"preventScrollReset"in O?O.preventScrollReset===!0:void 0,Et=(O&&O.flushSync)===!0,Ct=gf({currentLocation:Be,nextLocation:Le,historyAction:Ue});if(Ct){su(Ct,{state:"blocked",location:Le,proceed(){su(Ct,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),Qt(k,O)},reset(){let sr=new Map(w.blockers);sr.set(Ct,Ld),_e({blockers:sr})}});return}await _t(Ue,Le,{submission:fe,pendingError:Me,preventScrollReset:Oe,replace:O&&O.replace,enableViewTransition:O&&O.viewTransition,flushSync:Et,callSiteDefaultShouldRevalidate:O&&O.unstable_defaultShouldRevalidate})}function it(){W||(W=kO()),Qe(),_e({revalidation:"loading"});let k=W.promise;return w.navigation.state==="submitting"?k:w.navigation.state==="idle"?(_t(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),k):(_t(B||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:Y===!0}),k)}async function _t(k,O,j){$&&$.abort(),$=null,B=k,Q=(j&&j.startUninterruptedRevalidation)===!0,Gr(w.location,w.matches),ie=(j&&j.preventScrollReset)===!0,Y=(j&&j.enableViewTransition)===!0;let ue=l||i,fe=j&&j.overrideNavigation,Me=j?.initialHydration&&w.matches&&w.matches.length>0&&!v?w.matches:Ys(ue,O,c),Ce=(j&&j.flushSync)===!0;if(Me&&w.initialized&&!P&&QK(w.location,O)&&!(j&&j.submission&&xa(j.submission.formMethod))){xt(O,{matches:Me},{flushSync:Ce});return}let Be=Cs(Me,ue,O.pathname);if(Be.active&&Be.matches&&(Me=Be.matches),!Me){let{error:$r,notFoundMatches:Ia,route:Dt}=iu(O.pathname);xt(O,{matches:Ia,loaderData:{},errors:{[Dt.id]:$r}},{flushSync:Ce});return}$=new AbortController;let Le=Ed(e.history,O,$.signal,j&&j.submission),ze=e.getContext?await e.getContext():new $_,Ue;if(j&&j.pendingError)Ue=[tl(Me).route.id,{type:"error",error:j.pendingError}];else if(j&&j.submission&&xa(j.submission.formMethod)){let $r=await ft(Le,O,j.submission,Me,ze,Be.active,j&&j.initialHydration===!0,{replace:j.replace,flushSync:Ce});if($r.shortCircuited)return;if($r.pendingActionResult){let[Ia,Dt]=$r.pendingActionResult;if(Lo(Dt)&&Dd(Dt.error)&&Dt.error.status===404){$=null,xt(O,{matches:$r.matches,loaderData:{},errors:{[Ia]:Dt.error}});return}}Me=$r.matches||Me,Ue=$r.pendingActionResult,fe=V_(O,j.submission),Ce=!1,Be.active=!1,Le=Ed(e.history,Le.url,Le.signal)}let{shortCircuited:Oe,matches:Et,loaderData:Ct,errors:sr}=await st(Le,O,Me,ze,Be.active,fe,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,j&&j.initialHydration===!0,Ce,Ue,j&&j.callSiteDefaultShouldRevalidate);Oe||($=null,xt(O,{matches:Et||Me,...CO(Ue),loaderData:Ct,errors:sr}))}async function ft(k,O,j,ue,fe,Me,Ce,Be={}){Qe();let Le=nX(O,j);if(_e({navigation:Le},{flushSync:Be.flushSync===!0}),Me){let Oe=await fr(ue,O.pathname,k.signal);if(Oe.type==="aborted")return{shortCircuited:!0};if(Oe.type==="error"){if(Oe.partialMatches.length===0){let{matches:Ct,route:sr}=Fv(i);return{matches:Ct,pendingActionResult:[sr.id,{type:"error",error:Oe.error}]}}let Et=tl(Oe.partialMatches).route.id;return{matches:Oe.partialMatches,pendingActionResult:[Et,{type:"error",error:Oe.error}]}}else if(Oe.matches)ue=Oe.matches;else{let{notFoundMatches:Et,error:Ct,route:sr}=iu(O.pathname);return{matches:Et,pendingActionResult:[sr.id,{type:"error",error:Ct}]}}}let ze,Ue=jv(ue,O);if(!Ue.route.action&&!Ue.route.lazy)ze={type:"error",error:Jo(405,{method:k.method,pathname:O.pathname,routeId:Ue.route.id})};else{let Oe=Td(n,s,k,ue,Ue,Ce?[]:a,fe),Et=await ae(k,Oe,fe,null);if(ze=Et[Ue.route.id],!ze){for(let Ct of ue)if(Et[Ct.route.id]){ze=Et[Ct.route.id];break}}if(k.signal.aborted)return{shortCircuited:!0}}if(Ec(ze)){let Oe;return Be&&Be.replace!=null?Oe=Be.replace:Oe=vO(ze.response.headers.get("Location"),new URL(k.url),c,e.history)===w.location.pathname+w.location.search,await G(k,ze,!0,{submission:j,replace:Oe}),{shortCircuited:!0}}if(Lo(ze)){let Oe=tl(ue,Ue.route.id);return(Be&&Be.replace)!==!0&&(B="PUSH"),{matches:ue,pendingActionResult:[Oe.route.id,ze,Ue.route.id]}}return{matches:ue,pendingActionResult:[Ue.route.id,ze]}}async function st(k,O,j,ue,fe,Me,Ce,Be,Le,ze,Ue,Oe,Et){let Ct=Me||V_(O,Ce),sr=Ce||Be||_O(Ct),$r=!Q&&!ze;if(fe){if($r){let pa=da(Oe);_e({navigation:Ct,...pa!==void 0?{actionData:pa}:{}},{flushSync:Ue})}let bt=await fr(j,O.pathname,k.signal);if(bt.type==="aborted")return{shortCircuited:!0};if(bt.type==="error"){if(bt.partialMatches.length===0){let{matches:cu,route:Ul}=Fv(i);return{matches:cu,loaderData:{},errors:{[Ul.id]:bt.error}}}let pa=tl(bt.partialMatches).route.id;return{matches:bt.partialMatches,loaderData:{},errors:{[pa]:bt.error}}}else if(bt.matches)j=bt.matches;else{let{error:pa,notFoundMatches:cu,route:Ul}=iu(O.pathname);return{matches:cu,loaderData:{},errors:{[Ul.id]:pa}}}}let Ia=l||i,{dsMatches:Dt,revalidatingFetchers:No}=pO(k,ue,n,s,e.history,w,j,sr,O,ze?[]:a,ze===!0,P,D,V,E,T,Ia,c,e.patchRoutesOnNavigation!=null,Oe,Et);if(ne=++U,!e.dataStrategy&&!Dt.some(bt=>bt.shouldLoad)&&!Dt.some(bt=>bt.route.middleware&&bt.route.middleware.length>0)&&No.length===0){let bt=Bl();return xt(O,{matches:j,loaderData:{},errors:Oe&&Lo(Oe[1])?{[Oe[0]]:Oe[1].error}:null,...CO(Oe),...bt?{fetchers:new Map(w.fetchers)}:{}},{flushSync:Ue}),{shortCircuited:!0}}if($r){let bt={};if(!fe){bt.navigation=Ct;let pa=da(Oe);pa!==void 0&&(bt.actionData=pa)}No.length>0&&(bt.fetchers=R(No)),_e(bt,{flushSync:Ue})}No.forEach(bt=>{Wr(bt.key),bt.controller&&L.set(bt.key,bt.controller)});let Hl=()=>No.forEach(bt=>Wr(bt.key));$&&$.signal.addEventListener("abort",Hl);let{loaderResults:yf,fetcherResults:ci}=await he(Dt,No,k,ue);if(k.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Hl),No.forEach(bt=>L.delete(bt.key));let jn=Bv(yf);if(jn)return await G(k,jn.result,!0,{replace:Le}),{shortCircuited:!0};if(jn=Bv(ci),jn)return T.add(jn.key),await G(k,jn.result,!0,{replace:Le}),{shortCircuited:!0};let{loaderData:y0,errors:vf}=wO(w,j,yf,Oe,No,ci);ze&&w.errors&&(vf={...w.errors,...vf});let zl=Bl(),Mh=li(ne),Nh=zl||Mh||No.length>0;return{matches:j,loaderData:y0,errors:vf,...Nh?{fetchers:new Map(w.fetchers)}:{}}}function da(k){if(k&&!Lo(k[1]))return{[k[0]]:k[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function R(k){return k.forEach(O=>{let j=w.fetchers.get(O.key),ue=um(void 0,j?j.data:void 0);w.fetchers.set(O.key,ue)}),new Map(w.fetchers)}async function N(k,O,j,ue){Wr(k);let fe=(ue&&ue.flushSync)===!0,Me=l||i,Ce=K_(w.location,w.matches,c,j,O,ue?.relative),Be=Ys(Me,Ce,c),Le=Cs(Be,Me,Ce);if(Le.active&&Le.matches&&(Be=Le.matches),!Be){ct(k,O,Jo(404,{pathname:Ce}),{flushSync:fe});return}let{path:ze,submission:Ue,error:Oe}=fO(!0,Ce,ue);if(Oe){ct(k,O,Oe,{flushSync:fe});return}let Et=e.getContext?await e.getContext():new $_,Ct=(ue&&ue.preventScrollReset)===!0;if(Ue&&xa(Ue.formMethod)){await H(k,O,ze,Be,Et,Le.active,fe,Ct,Ue,ue&&ue.unstable_defaultShouldRevalidate);return}E.set(k,{routeId:O,path:ze}),await de(k,O,ze,Be,Et,Le.active,fe,Ct,Ue)}async function H(k,O,j,ue,fe,Me,Ce,Be,Le,ze){Qe(),E.delete(k);let Ue=w.fetchers.get(k);He(k,sX(Le,Ue),{flushSync:Ce});let Oe=new AbortController,Et=Ed(e.history,j,Oe.signal,Le);if(Me){let pr=await fr(ue,new URL(Et.url).pathname,Et.signal,k);if(pr.type==="aborted")return;if(pr.type==="error"){ct(k,O,pr.error,{flushSync:Ce});return}else if(pr.matches)ue=pr.matches;else{ct(k,O,Jo(404,{pathname:j}),{flushSync:Ce});return}}let Ct=jv(ue,j);if(!Ct.route.action&&!Ct.route.lazy){let pr=Jo(405,{method:Le.formMethod,pathname:j,routeId:O});ct(k,O,pr,{flushSync:Ce});return}L.set(k,Oe);let sr=U,$r=Td(n,s,Et,ue,Ct,a,fe),Ia=await ae(Et,$r,fe,k),Dt=Ia[Ct.route.id];if(!Dt){for(let pr of $r)if(Ia[pr.route.id]){Dt=Ia[pr.route.id];break}}if(Et.signal.aborted){L.get(k)===Oe&&L.delete(k);return}if(V.has(k)){if(Ec(Dt)||Lo(Dt)){He(k,Xs(void 0));return}}else{if(Ec(Dt))if(L.delete(k),ne>sr){He(k,Xs(void 0));return}else return T.add(k),He(k,um(Le)),G(Et,Dt,!1,{fetcherSubmission:Le,preventScrollReset:Be});if(Lo(Dt)){ct(k,O,Dt.error);return}}let No=w.navigation.location||w.location,Hl=Ed(e.history,No,Oe.signal),yf=l||i,ci=w.navigation.state!=="idle"?Ys(yf,w.navigation.location,c):w.matches;nt(ci,"Didn't find any matches after fetcher action");let jn=++U;z.set(k,jn);let y0=um(Le,Dt.data);w.fetchers.set(k,y0);let{dsMatches:vf,revalidatingFetchers:zl}=pO(Hl,fe,n,s,e.history,w,ci,Le,No,a,!1,P,D,V,E,T,yf,c,e.patchRoutesOnNavigation!=null,[Ct.route.id,Dt],ze);zl.filter(pr=>pr.key!==k).forEach(pr=>{let Oh=pr.key,MI=w.fetchers.get(Oh),h6=um(void 0,MI?MI.data:void 0);w.fetchers.set(Oh,h6),Wr(Oh),pr.controller&&L.set(Oh,pr.controller)}),_e({fetchers:new Map(w.fetchers)});let Mh=()=>zl.forEach(pr=>Wr(pr.key));Oe.signal.addEventListener("abort",Mh);let{loaderResults:Nh,fetcherResults:bt}=await he(vf,zl,Hl,fe);if(Oe.signal.aborted)return;if(Oe.signal.removeEventListener("abort",Mh),z.delete(k),L.delete(k),zl.forEach(pr=>L.delete(pr.key)),w.fetchers.has(k)){let pr=Xs(Dt.data);w.fetchers.set(k,pr)}let pa=Bv(Nh);if(pa)return G(Hl,pa.result,!1,{preventScrollReset:Be});if(pa=Bv(bt),pa)return T.add(pa.key),G(Hl,pa.result,!1,{preventScrollReset:Be});let{loaderData:cu,errors:Ul}=wO(w,ci,Nh,void 0,zl,bt);li(jn),w.navigation.state==="loading"&&jn>ne?(nt(B,"Expected pending action"),$&&$.abort(),xt(w.navigation.location,{matches:ci,loaderData:cu,errors:Ul,fetchers:new Map(w.fetchers)})):(_e({errors:Ul,loaderData:xO(w.loaderData,cu,ci,Ul),fetchers:new Map(w.fetchers)}),P=!1)}async function de(k,O,j,ue,fe,Me,Ce,Be,Le){let ze=w.fetchers.get(k);He(k,um(Le,ze?ze.data:void 0),{flushSync:Ce});let Ue=new AbortController,Oe=Ed(e.history,j,Ue.signal);if(Me){let Dt=await fr(ue,new URL(Oe.url).pathname,Oe.signal,k);if(Dt.type==="aborted")return;if(Dt.type==="error"){ct(k,O,Dt.error,{flushSync:Ce});return}else if(Dt.matches)ue=Dt.matches;else{ct(k,O,Jo(404,{pathname:j}),{flushSync:Ce});return}}let Et=jv(ue,j);L.set(k,Ue);let Ct=U,sr=Td(n,s,Oe,ue,Et,a,fe),Ia=(await ae(Oe,sr,fe,k))[Et.route.id];if(L.get(k)===Ue&&L.delete(k),!Oe.signal.aborted){if(V.has(k)){He(k,Xs(void 0));return}if(Ec(Ia))if(ne>Ct){He(k,Xs(void 0));return}else{T.add(k),await G(Oe,Ia,!1,{preventScrollReset:Be});return}if(Lo(Ia)){ct(k,O,Ia.error);return}He(k,Xs(Ia.data))}}async function G(k,O,j,{submission:ue,fetcherSubmission:fe,preventScrollReset:Me,replace:Ce}={}){j||(F?.resolve(),F=null),O.response.headers.has("X-Remix-Revalidate")&&(P=!0);let Be=O.response.headers.get("Location");nt(Be,"Expected a Location header on the redirect Response"),Be=vO(Be,new URL(k.url),c,e.history);let Le=G_(w.location,Be,{_isRedirect:!0});if(r){let sr=!1;if(O.response.headers.has("X-Remix-Reload-Document"))sr=!0;else if(Z_(Be)){let $r=sK(Be,!0);sr=$r.origin!==t.location.origin||Eo($r.pathname,c)==null}if(sr){Ce?t.location.replace(Be):t.location.assign(Be);return}}$=null;let ze=Ce===!0||O.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ue,formAction:Oe,formEncType:Et}=w.navigation;!ue&&!fe&&Ue&&Oe&&Et&&(ue=_O(w.navigation));let Ct=ue||fe;if(FK.has(O.response.status)&&Ct&&xa(Ct.formMethod))await _t(ze,Le,{submission:{...Ct,formAction:Be},preventScrollReset:Me||ie,enableViewTransition:j?Y:void 0});else{let sr=V_(Le,ue);await _t(ze,Le,{overrideNavigation:sr,fetcherSubmission:fe,preventScrollReset:Me||ie,enableViewTransition:j?Y:void 0})}}async function ae(k,O,j,ue){let fe,Me={};try{fe=await WK(d,k,O,ue,j,!1)}catch(Ce){return O.filter(Be=>Be.shouldLoad).forEach(Be=>{Me[Be.route.id]={type:"error",error:Ce}}),Me}if(k.signal.aborted)return Me;if(!xa(k.method))for(let Ce of O){if(fe[Ce.route.id]?.type==="error")break;!fe.hasOwnProperty(Ce.route.id)&&!w.loaderData.hasOwnProperty(Ce.route.id)&&(!w.errors||!w.errors.hasOwnProperty(Ce.route.id))&&Ce.shouldCallHandler()&&(fe[Ce.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Ce.route.id}`)})}for(let[Ce,Be]of Object.entries(fe))if(tX(Be)){let Le=Be.result;Me[Ce]={type:"redirect",response:XK(Le,k,Ce,O,c)}}else Me[Ce]=await KK(Be);return Me}async function he(k,O,j,ue){let fe=ae(j,k,ue,null),Me=Promise.all(O.map(async Le=>{if(Le.matches&&Le.match&&Le.request&&Le.controller){let Ue=(await ae(Le.request,Le.matches,ue,Le.key))[Le.match.route.id];return{[Le.key]:Ue}}else return Promise.resolve({[Le.key]:{type:"error",error:Jo(404,{pathname:Le.path})}})})),Ce=await fe,Be=(await Me).reduce((Le,ze)=>Object.assign(Le,ze),{});return{loaderResults:Ce,fetcherResults:Be}}function Qe(){P=!0,E.forEach((k,O)=>{L.has(O)&&D.add(O),Wr(O)})}function He(k,O,j={}){w.fetchers.set(k,O),_e({fetchers:new Map(w.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function ct(k,O,j,ue={}){let fe=tl(w.matches,O);Un(k),_e({errors:{[fe.route.id]:j},fetchers:new Map(w.fetchers)},{flushSync:(ue&&ue.flushSync)===!0})}function Ze(k){return M.set(k,(M.get(k)||0)+1),V.has(k)&&V.delete(k),w.fetchers.get(k)||GO}function Je(k,O){Wr(k,O?.reason),He(k,Xs(null))}function Un(k){let O=w.fetchers.get(k);L.has(k)&&!(O&&O.state==="loading"&&z.has(k))&&Wr(k),E.delete(k),z.delete(k),T.delete(k),V.delete(k),D.delete(k),w.fetchers.delete(k)}function ta(k){let O=(M.get(k)||0)-1;O<=0?(M.delete(k),V.add(k)):M.set(k,O),_e({fetchers:new Map(w.fetchers)})}function Wr(k,O){let j=L.get(k);j&&(j.abort(O),L.delete(k))}function un(k){for(let O of k){let j=Ze(O),ue=Xs(j.data);w.fetchers.set(O,ue)}}function Bl(){let k=[],O=!1;for(let j of T){let ue=w.fetchers.get(j);nt(ue,`Expected fetcher: ${j}`),ue.state==="loading"&&(T.delete(j),k.push(j),O=!0)}return un(k),O}function li(k){let O=[];for(let[j,ue]of z)if(ue0}function uo(k,O){let j=w.blockers.get(k)||Ld;return K.get(k)!==O&&K.set(k,O),j}function Dh(k){w.blockers.delete(k),K.delete(k)}function su(k,O){let j=w.blockers.get(k)||Ld;nt(j.state==="unblocked"&&O.state==="blocked"||j.state==="blocked"&&O.state==="blocked"||j.state==="blocked"&&O.state==="proceeding"||j.state==="blocked"&&O.state==="unblocked"||j.state==="proceeding"&&O.state==="unblocked",`Invalid blocker state transition: ${j.state} -> ${O.state}`);let ue=new Map(w.blockers);ue.set(k,O),_e({blockers:ue})}function gf({currentLocation:k,nextLocation:O,historyAction:j}){if(K.size===0)return;K.size>1&&cr(!1,"A router only supports one blocker at a time");let ue=Array.from(K.entries()),[fe,Me]=ue[ue.length-1],Ce=w.blockers.get(fe);if(!(Ce&&Ce.state==="proceeding")&&Me({currentLocation:k,nextLocation:O,historyAction:j}))return fe}function iu(k){let O=Jo(404,{pathname:k}),j=l||i,{matches:ue,route:fe}=Fv(j);return{notFoundMatches:ue,route:fe,error:O}}function et(k,O,j){if(h=k,b=O,g=j||null,!m&&w.navigation===Uv){m=!0;let ue=fa(w.location,w.matches);ue!=null&&_e({restoreScrollPosition:ue})}return()=>{h=null,b=null,g=null}}function yr(k,O){return g&&g(k,O.map(ue=>NO(ue,w.loaderData)))||k.key}function Gr(k,O){if(h&&b){let j=yr(k,O);h[j]=b()}}function fa(k,O){if(h){let j=yr(k,O),ue=h[j];if(typeof ue=="number")return ue}return null}function Cs(k,O,j){if(e.patchRoutesOnNavigation)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:pm(O,j,c,!0)}}else return{active:!0,matches:pm(O,j,c,!0)||[]};return{active:!1,matches:null}}async function fr(k,O,j,ue){if(!e.patchRoutesOnNavigation)return{type:"success",matches:k};let fe=k;for(;;){let Me=l==null,Ce=l||i,Be=s;try{await e.patchRoutesOnNavigation({signal:j,path:O,matches:fe,fetcherKey:ue,patch:(Ue,Oe)=>{j.aborted||mO(Ue,Oe,Ce,Be,n,!1)}})}catch(Ue){return{type:"error",error:Ue,partialMatches:fe}}finally{Me&&!j.aborted&&(i=[...i])}if(j.aborted)return{type:"aborted"};let Le=Ys(Ce,O,c),ze=null;if(Le){if(Object.keys(Le[0].params).length===0)return{type:"success",matches:Le};if(ze=pm(Ce,O,c,!0),!(ze&&fe.lengthj.route.id===O[ue].route.id)}function lu(k){s={},l=hm(k,n,void 0,s)}function fo(k,O,j=!1){let ue=l==null;mO(k,O,l||i,s,n,j),ue&&(i=[...i],_e({}))}return _={get basename(){return c},get future(){return u},get state(){return w},get routes(){return i},get window(){return t},initialize:xe,subscribe:Ve,enableScrollRestoration:et,navigate:Qt,fetch:N,revalidate:it,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:Ze,resetFetcher:Je,deleteFetcher:ta,dispose:ve,getBlocker:uo,deleteBlocker:Dh,patchRoutes:fo,_internalFetchControllers:L,_internalSetRoutes:lu,_internalSetStateDoNotUseOrYouWillBreakYourApp(k){_e(k)}},e.unstable_instrumentations&&(_=EK(_,e.unstable_instrumentations.map(k=>k.router).filter(Boolean))),_}function HK(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function K_(e,t,r,a,o,n){let s,i;if(o){s=[];for(let c of t)if(s.push(c),c.route.id===o){i=c;break}}else s=t,i=t[t.length-1];let l=Wv(a||".",ek(s),Eo(e.pathname,r)||e.pathname,n==="path");if(a==null&&(l.search=e.search,l.hash=e.hash),(a==null||a===""||a===".")&&i){let c=ak(l.search);if(i.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!i.route.index&&c){let d=new URLSearchParams(l.search),u=d.getAll("index");d.delete("index"),u.filter(f=>f).forEach(f=>d.append("index",f));let p=d.toString();l.search=p?`?${p}`:""}}return r!=="/"&&(l.pathname=_K({basename:r,pathname:l.pathname})),Sn(l)}function fO(e,t,r){if(!r||!HK(r))return{path:t};if(r.formMethod&&!oX(r.formMethod))return{path:t,error:Jo(405,{method:r.formMethod})};let a=()=>({path:t,error:Jo(400,{type:"invalid-body"})}),n=(r.formMethod||"get").toUpperCase(),s=rF(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!xa(n))return a();let u=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,[f,h])=>`${p}${f}=${h} `,""):String(r.body);return{path:t,submission:{formMethod:n,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:u}}}else if(r.formEncType==="application/json"){if(!xa(n))return a();try{let u=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:n,formAction:s,formEncType:r.formEncType,formData:void 0,json:u,text:void 0}}}catch{return a()}}}nt(typeof FormData=="function","FormData is not available in this environment");let i,l;if(r.formData)i=Y_(r.formData),l=r.formData;else if(r.body instanceof FormData)i=Y_(r.body),l=r.body;else if(r.body instanceof URLSearchParams)i=r.body,l=bO(i);else if(r.body==null)i=new URLSearchParams,l=new FormData;else try{i=new URLSearchParams(r.body),l=bO(i)}catch{return a()}let c={formMethod:n,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(xa(c.formMethod))return{path:t,submission:c};let d=Zo(t);return e&&d.search&&ak(d.search)&&i.append("index",""),d.search=`?${i}`,{path:Sn(d),submission:c}}function pO(e,t,r,a,o,n,s,i,l,c,d,u,p,f,h,g,b,m,y,v,x){let S=v?Lo(v[1])?v[1].error:v[1].data:void 0,I=o.createURL(n.location),_=o.createURL(l),w;if(d&&n.errors){let re=Object.keys(n.errors)[0];w=s.findIndex(Q=>Q.route.id===re)}else if(v&&Lo(v[1])){let re=v[0];w=s.findIndex(Q=>Q.route.id===re)-1}let B=v?v[1].statusCode:void 0,F=B&&B>=400,ie={currentUrl:I,currentParams:n.matches[0]?.params||{},nextUrl:_,nextParams:s[0].params,...i,actionResult:S,actionStatus:B},$=vm(s),Y=s.map((re,Q)=>{let{route:P}=re,D=null;if(w!=null&&Q>w)D=!1;else if(P.lazy)D=!0;else if(!tk(P))D=!1;else if(d){let{shouldLoad:z}=YO(P,n.loaderData,n.errors);D=z}else zK(n.loaderData,n.matches[Q],re)&&(D=!0);if(D!==null)return X_(r,a,e,$,re,c,t,D);let L=!1;typeof x=="boolean"?L=x:F?L=!1:(u||I.pathname+I.search===_.pathname+_.search||I.search!==_.search||UK(n.matches[Q],re))&&(L=!0);let U={...ie,defaultShouldRevalidate:L},ne=mm(re,U);return X_(r,a,e,$,re,c,t,ne,U,x)}),Z=[];return h.forEach((re,Q)=>{if(d||!s.some(E=>E.route.id===re.routeId)||f.has(Q))return;let P=n.fetchers.get(Q),D=P&&P.state!=="idle"&&P.data===void 0,L=Ys(b,re.path,m);if(!L){if(y&&D)return;Z.push({key:Q,routeId:re.routeId,path:re.path,matches:null,match:null,request:null,controller:null});return}if(g.has(Q))return;let U=jv(L,re.path),ne=new AbortController,z=Ed(o,re.path,ne.signal),T=null;if(p.has(Q))p.delete(Q),T=Td(r,a,z,L,U,c,t);else if(D)u&&(T=Td(r,a,z,L,U,c,t));else{let E;typeof x=="boolean"?E=x:F?E=!1:E=u;let M={...ie,defaultShouldRevalidate:E};mm(U,M)&&(T=Td(r,a,z,L,U,c,t,M))}T&&Z.push({key:Q,routeId:re.routeId,path:re.path,matches:T,match:U,request:z,controller:ne})}),{dsMatches:Y,revalidatingFetchers:Z}}function tk(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function YO(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!tk(e))return{shouldLoad:!1,renderFallback:!1};let a=t!=null&&e.id in t,o=r!=null&&r[e.id]!==void 0;if(!a&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!a};let n=!a&&!o;return{shouldLoad:n,renderFallback:n}}function zK(e,t,r){let a=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return a||o}function UK(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function mm(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function mO(e,t,r,a,o,n){let s;if(e){let c=a[e];nt(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),s=c.children}else s=r;let i=[],l=[];if(t.forEach(c=>{let d=s.find(u=>QO(c,u));d?l.push({existingRoute:d,newRoute:c}):i.push(c)}),i.length>0){let c=hm(i,o,[e||"_","patch",String(s?.length||"0")],a);s.push(...c)}if(n&&l.length>0)for(let c=0;ct.children?.some(o=>QO(r,o)))??!1:!1}function jK(e,t,r,a,o){let n=r[e.id];if(nt(n,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let d=gO.get(n);if(d)return{lazyRoutePromise:d,lazyHandlerPromise:d};let u=(async()=>{nt(typeof e.lazy=="function","No lazy route function found");let p=await e.lazy(),f={};for(let h in p){let g=p[h];if(g===void 0)continue;let b=uK(h),y=n[h]!==void 0&&h!=="hasErrorBoundary";b?cr(!b,"Route property "+h+" is not a supported property to be returned from a lazy route function. This property will be ignored."):y?cr(!y,`Route "${n.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`):f[h]=g}Object.assign(n,f),Object.assign(n,{...a(n),lazy:void 0})})();return gO.set(n,u),u.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:u}}let s=Object.keys(e.lazy),i=[],l;for(let d of s){if(o&&o.includes(d))continue;let u=JO({key:d,route:e,manifest:r,mapRouteProperties:a});u&&(i.push(u),d===t&&(l=u))}let c=i.length>0?Promise.all(i).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function yO(e){let t=e.matches.filter(o=>o.shouldLoad),r={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,n)=>{r[t[n].route.id]=o}),r}async function VK(e){return e.matches.some(t=>t.route.middleware)?ZO(e,()=>yO(e)):yO(e)}function ZO(e,t){return qK(e,t,a=>{if(aX(a))throw a;return a},ZK,r);function r(a,o,n){if(n)return Promise.resolve(Object.assign(n.value,{[o]:{type:"error",result:a}}));{let{matches:s}=e,i=Math.min(Math.max(s.findIndex(c=>c.route.id===o),0),Math.max(s.findIndex(c=>c.shouldCallHandler()),0)),l=tl(s,s[i].route.id).route.id;return Promise.resolve({[l]:{type:"error",result:a}})}}}async function qK(e,t,r,a,o){let{matches:n,request:s,params:i,context:l,unstable_pattern:c}=e,d=n.flatMap(p=>p.route.middleware?p.route.middleware.map(f=>[p.route.id,f]):[]);return await eF({request:s,params:i,context:l,unstable_pattern:c},d,t,r,a,o)}async function eF(e,t,r,a,o,n,s=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason??new Error(`Request aborted: ${i.method} ${i.url}`);let l=t[s];if(!l)return await r();let[c,d]=l,u,p=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");try{return u={value:await eF(e,t,r,a,o,n,s+1)},u.value}catch(f){return u={value:await n(f,c,u)},u.value}};try{let f=await d(e,p),h=f!=null?a(f):void 0;return o(h)?h:u?h??u.value:(u={value:await p()},u.value)}catch(f){return await n(f,c,u)}}function tF(e,t,r,a,o){let n=JO({key:"middleware",route:a.route,manifest:t,mapRouteProperties:e}),s=jK(a.route,xa(r.method)?"action":"loader",t,e,o);return{middleware:n,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function X_(e,t,r,a,o,n,s,i,l=null,c){let d=!1,u=tF(e,t,r,o,n);return{...o,_lazyPromises:u,shouldLoad:i,shouldRevalidateArgs:l,shouldCallHandler(p){return d=!0,l?typeof c=="boolean"?mm(o,{...l,defaultShouldRevalidate:c}):typeof p=="boolean"?mm(o,{...l,defaultShouldRevalidate:p}):mm(o,l):i},resolve(p){let{lazy:f,loader:h,middleware:g}=o.route,b=d||i||p&&!xa(r.method)&&(f||h),m=g&&g.length>0&&!h&&!f;return b&&(xa(r.method)||!m)?GK({request:r,unstable_pattern:a,match:o,lazyHandlerPromise:u?.handler,lazyRoutePromise:u?.route,handlerOverride:p,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function Td(e,t,r,a,o,n,s,i=null){return a.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:i,shouldCallHandler:()=>!1,_lazyPromises:tF(e,t,r,l,n),resolve:()=>Promise.resolve({type:"data",result:void 0})}:X_(e,t,r,vm(a),l,n,s,!0,i))}async function WK(e,t,r,a,o,n){r.some(c=>c._lazyPromises?.middleware)&&await Promise.all(r.map(c=>c._lazyPromises?.middleware));let s={request:t,unstable_pattern:vm(r),params:r[0].params,context:o,matches:r},l=await e({...s,fetcherKey:a,runClientMiddleware:n?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:c=>{let d=s;return ZO(d,()=>c({...d,fetcherKey:a,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function GK({request:e,unstable_pattern:t,match:r,lazyHandlerPromise:a,lazyRoutePromise:o,handlerOverride:n,scopedContext:s}){let i,l,c=xa(e.method),d=c?"action":"loader",u=p=>{let f,h=new Promise((m,y)=>f=y);l=()=>f(),e.signal.addEventListener("abort",l);let g=m=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):p({request:e,unstable_pattern:t,params:r.params,context:s},...m!==void 0?[m]:[]),b=(async()=>{try{return{type:"data",result:await(n?n(y=>g(y)):g())}}catch(m){return{type:"error",result:m}}})();return Promise.race([b,h])};try{let p=c?r.route.action:r.route.loader;if(a||o)if(p){let f,[h]=await Promise.all([u(p).catch(g=>{f=g}),a,o]);if(f!==void 0)throw f;i=h}else{await a;let f=c?r.route.action:r.route.loader;if(f)[i]=await Promise.all([u(f),o]);else if(d==="action"){let h=new URL(e.url),g=h.pathname+h.search;throw Jo(405,{method:e.method,pathname:g,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(p)i=await u(p);else{let f=new URL(e.url),h=f.pathname+f.search;throw Jo(404,{pathname:h})}}catch(p){return{type:"error",result:p}}finally{l&&e.signal.removeEventListener("abort",l)}return i}async function $K(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function KK(e){let{result:t,type:r}=e;if(rk(t)){let a;try{a=await $K(t)}catch(o){return{type:"error",error:o}}return r==="error"?{type:"error",error:new ym(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:"data",data:a,statusCode:t.status,headers:t.headers}}return r==="error"?SO(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:JK(t),statusCode:Dd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Dd(t)?t.status:void 0}:SO(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function XK(e,t,r,a,o){let n=e.headers.get("Location");if(nt(n,"Redirects returned/thrown from loaders/actions must have a Location header"),!Z_(n)){let s=a.slice(0,a.findIndex(i=>i.route.id===r)+1);n=K_(new URL(t.url),s,o,n),e.headers.set("Location",n)}return e}function vO(e,t,r,a){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Z_(e)){let n=e,s=n.startsWith("//")?new URL(t.protocol+n):new URL(n);if(o.includes(s.protocol))throw new Error("Invalid redirect location");let i=Eo(s.pathname,r)!=null;if(s.origin===t.origin&&i)return s.pathname+s.search+s.hash}try{let n=a.createURL(e);if(o.includes(n.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Ed(e,t,r,a){let o=e.createURL(rF(t)).toString(),n={signal:r};if(a&&xa(a.formMethod)){let{formMethod:s,formEncType:i}=a;n.method=s.toUpperCase(),i==="application/json"?(n.headers=new Headers({"Content-Type":i}),n.body=JSON.stringify(a.json)):i==="text/plain"?n.body=a.text:i==="application/x-www-form-urlencoded"&&a.formData?n.body=Y_(a.formData):n.body=a.formData}return new Request(o,n)}function Y_(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,typeof a=="string"?a:a.name);return t}function bO(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function YK(e,t,r,a=!1,o=!1){let n={},s=null,i,l=!1,c={},d=r&&Lo(r[1])?r[1].error:void 0;return e.forEach(u=>{if(!(u.route.id in t))return;let p=u.route.id,f=t[p];if(nt(!Ec(f),"Cannot handle redirect results in processLoaderData"),Lo(f)){let h=f.error;if(d!==void 0&&(h=d,d=void 0),s=s||{},o)s[p]=h;else{let g=tl(e,p);s[g.route.id]==null&&(s[g.route.id]=h)}a||(n[p]=KO),l||(l=!0,i=Dd(f.error)?f.error.status:500),f.headers&&(c[p]=f.headers)}else n[p]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(i=f.statusCode),f.headers&&(c[p]=f.headers)}),d!==void 0&&r&&(s={[r[0]]:d},r[2]&&(n[r[2]]=void 0)),{loaderData:n,errors:s,statusCode:i||200,loaderHeaders:c}}function wO(e,t,r,a,o,n){let{loaderData:s,errors:i}=YK(t,r,a);return o.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:d,controller:u}=l;if(u&&u.signal.aborted)return;let p=n[c];if(nt(p,"Did not find corresponding fetcher result"),Lo(p)){let f=tl(e.matches,d?.route.id);i&&i[f.route.id]||(i={...i,[f.route.id]:p.error}),e.fetchers.delete(c)}else if(Ec(p))nt(!1,"Unhandled fetcher revalidation redirect");else{let f=Xs(p.data);e.fetchers.set(c,f)}}),{loaderData:s,errors:i}}function xO(e,t,r,a){let o=Object.entries(t).filter(([,n])=>n!==KO).reduce((n,[s,i])=>(n[s]=i,n),{});for(let n of r){let s=n.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&n.route.loader&&(o[s]=e[s]),a&&a.hasOwnProperty(s))break}return o}function CO(e){return e?Lo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function tl(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function Fv(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Jo(e,{pathname:t,routeId:r,method:a,type:o,message:n}={}){let s="Unknown Server Error",i="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&t&&r?i=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:o==="invalid-body"&&(i="Unable to encode submission body")):e===403?(s="Forbidden",i=`Route "${r}" does not match URL "${t}"`):e===404?(s="Not Found",i=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",a&&t&&r?i=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:a&&(i=`Invalid request method "${a.toUpperCase()}"`)),new ym(e||500,s,new Error(i),!0)}function Bv(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[a,o]=t[r];if(Ec(o))return{key:a,result:o}}}function rF(e){let t=typeof e=="string"?Zo(e):e;return Sn({...t,hash:""})}function QK(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function JK(e){return new ym(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ZK(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&eX(r))}function eX(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function tX(e){return rk(e.result)&&WO.has(e.result.status)}function Lo(e){return e.type==="error"}function Ec(e){return(e&&e.type)==="redirect"}function SO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function rk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function rX(e){return WO.has(e)}function aX(e){return rk(e)&&rX(e.status)&&e.headers.has("Location")}function oX(e){return OK.has(e.toUpperCase())}function xa(e){return MK.has(e.toUpperCase())}function ak(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function jv(e,t){let r=typeof t=="string"?Zo(t).search:t.search;if(e[e.length-1].route.index&&ak(r||""))return e[e.length-1];let a=zO(e);return a[a.length-1]}function _O(e){let{formMethod:t,formAction:r,formEncType:a,text:o,formData:n,json:s}=e;if(!(!t||!r||!a)){if(o!=null)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:o};if(n!=null)return{formMethod:t,formAction:r,formEncType:a,formData:n,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:s,text:void 0}}}function V_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function nX(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function um(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function sX(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Xs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function iX(e,t){try{let r=e.sessionStorage.getItem($O);if(r){let a=JSON.parse(r);for(let[o,n]of Object.entries(a||{}))n&&Array.isArray(n)&&t.set(o,new Set(n||[]))}}catch{}}function lX(e,t){if(t.size>0){let r={};for(let[a,o]of t)r[a]=[...o];try{e.sessionStorage.setItem($O,JSON.stringify(r))}catch(a){cr(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function kO(){let e,t,r=new Promise((a,o)=>{e=async n=>{a(n);try{await r}catch{}},t=async n=>{o(n);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}function cX(){return oo.useContext(aF)}function pX(e){if(e.startsWith(`${oF}:${dX}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function mX(e){if(e.startsWith(`${oF}:${fX}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new ym(t.status,t.statusText,t.data)}catch{}}function nF(e,{relative:t}={}){nt(Nd(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:a}=Ee.useContext(Aa),{hash:o,pathname:n,search:s}=Od(e,{relative:t}),i=n;return r!=="/"&&(i=n==="/"?r:Cn([r,n])),a.createHref({pathname:i,search:s,hash:o})}function Nd(){return Ee.useContext(Md)!=null}function kn(){return nt(Nd(),"useLocation() may be used only in the context of a component."),Ee.useContext(Md).location}function iF(e){Ee.useContext(Aa).static||Ee.useLayoutEffect(e)}function lF(){let{isDataRoute:e}=Ee.useContext(_n);return e?RX():hX()}function hX(){nt(Nd(),"useNavigate() may be used only in the context of a component.");let e=Ee.useContext(al),{basename:t,navigator:r}=Ee.useContext(Aa),{matches:a}=Ee.useContext(_n),{pathname:o}=kn(),n=JSON.stringify(ek(a)),s=Ee.useRef(!1);return iF(()=>{s.current=!0}),Ee.useCallback((l,c={})=>{if(cr(s.current,sF),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=Wv(l,JSON.parse(n),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Cn([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,n,o,e])}function cF(e){let t=Ee.useContext(_n).outlet;return Ee.useMemo(()=>t&&Ee.createElement(gX.Provider,{value:e},t),[t,e])}function Od(e,{relative:t}={}){let{matches:r}=Ee.useContext(_n),{pathname:a}=kn(),o=JSON.stringify(ek(r));return Ee.useMemo(()=>Wv(e,JSON.parse(o),a,t==="path"),[e,o,a,t])}function yX(e,t,r){nt(Nd(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=Ee.useContext(Aa),{matches:o}=Ee.useContext(_n),n=o[o.length-1],s=n?n.params:{},i=n?n.pathname:"/",l=n?n.pathnameBase:"/",c=n&&n.route;if(Ad){let b=c&&c.path||"";pF(i,!c||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${i}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let d=kn(),u;if(t){let b=typeof t=="string"?Zo(t):t;nt(l==="/"||b.pathname?.startsWith(l),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${b.pathname}" was given in the \`location\` prop.`),u=b}else u=d;let p=u.pathname||"/",f=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let h=Ys(e,{pathname:f});Ad&&(cr(c||h!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),cr(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`));let g=CX(h&&h.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:Cn([l,a.encodeLocation?a.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Cn([l,a.encodeLocation?a.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),o,r);return t&&g?Ee.createElement(Md.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},g):g}function vX(){let e=fF(),t=Dd(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},n={padding:"2px 4px",backgroundColor:a},s=null;return Ad&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=Ee.createElement(Ee.Fragment,null,Ee.createElement("p",null,"\u{1F4BF} Hey developer \u{1F44B}"),Ee.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Ee.createElement("code",{style:n},"ErrorBoundary")," or"," ",Ee.createElement("code",{style:n},"errorElement")," prop on your route."))),Ee.createElement(Ee.Fragment,null,Ee.createElement("h2",null,"Unexpected Application Error!"),Ee.createElement("h3",{style:{fontStyle:"italic"}},t),r?Ee.createElement("pre",{style:o},r):null,s)}function wX({children:e,error:t}){let{basename:r}=Ee.useContext(Aa);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=pX(t.digest);if(a){let o=q_.get(t);if(o)throw o;let n=jO(a.location,r);if(UO&&!q_.get(t))if(n.isExternal||a.reloadDocument)window.location.href=n.absoluteURL||n.to;else{let s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(n.to,{replace:a.replace}));throw q_.set(t,s),s}return Ee.createElement("meta",{httpEquiv:"refresh",content:`0;url=${n.absoluteURL||n.to}`})}}return e}function xX({routeContext:e,match:t,children:r}){let a=Ee.useContext(al);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),Ee.createElement(_n.Provider,{value:e},r)}function CX(e,t=[],r){let a=r?.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,n=a?.errors;if(n!=null){let d=o.findIndex(u=>u.route.id&&n?.[u.route.id]!==void 0);nt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(n).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let s=!1,i=-1;if(r&&a){s=a.renderFallback;for(let d=0;d=0?o=o.slice(0,i+1):o=[o[0]];break}}}}let l=r?.onError,c=a&&l?(d,u)=>{l(d,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:vm(a.matches),errorInfo:u})}:void 0;return o.reduceRight((d,u,p)=>{let f,h=!1,g=null,b=null;a&&(f=n&&u.route.id?n[u.route.id]:void 0,g=u.route.errorElement||bX,s&&(i<0&&p===0?(pF("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,b=null):i===p&&(h=!0,b=u.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,p+1)),y=()=>{let v;return f?v=g:h?v=b:u.route.Component?v=Ee.createElement(u.route.Component,null):u.route.element?v=u.route.element:v=d,Ee.createElement(xX,{match:u,routeContext:{outlet:d,matches:m,isDataRoute:a!=null},children:v})};return a&&(u.route.ErrorBoundary||u.route.errorElement||p===0)?Ee.createElement(uF,{location:a.location,revalidation:a.revalidation,component:g,error:f,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):y()},null)}function sk(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function SX(e){let t=Ee.useContext(al);return nt(t,sk(e)),t}function ik(e){let t=Ee.useContext(Pc);return nt(t,sk(e)),t}function _X(e){let t=Ee.useContext(_n);return nt(t,sk(e)),t}function lk(e){let t=_X(e),r=t.matches[t.matches.length-1];return nt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function kX(){return lk("useRouteId")}function dF(){return ik("useNavigation").navigation}function ck(){let{matches:e,loaderData:t}=ik("useMatches");return Ee.useMemo(()=>e.map(r=>NO(r,t)),[e,t])}function fF(){let e=Ee.useContext(nk),t=ik("useRouteError"),r=lk("useRouteError");return e!==void 0?e:t.errors?.[r]}function RX(){let{router:e}=SX("useNavigate"),t=lk("useNavigate"),r=Ee.useRef(!1);return iF(()=>{r.current=!0}),Ee.useCallback(async(o,n={})=>{cr(r.current,sF),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...n}))},[e,t])}function pF(e,t,r){!t&&!RO[e]&&(RO[e]=!0,cr(!1,r))}function LO(e,t){!e&&!IO[t]&&(IO[t]=!0,console.warn(t))}function EX(e){return EO?EO(e):[e,LX]}function mF(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(Ad&&e.element&&cr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:We.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(Ad&&e.hydrateFallbackElement&&cr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:We.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(Ad&&e.errorElement&&cr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:We.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function uk(e,t){return XO({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:MO({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:hF,mapRouteProperties:mF,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function dk({router:e,flushSync:t,onError:r,unstable_useTransitions:a}){a=cX()||a;let[n,s]=We.useState(e.state),[i,l]=EX(n),[c,d]=We.useState(),[u,p]=We.useState({isTransitioning:!1}),[f,h]=We.useState(),[g,b]=We.useState(),[m,y]=We.useState(),v=We.useRef(new Map),x=We.useCallback((w,{deletedFetchers:B,newErrors:F,flushSync:ie,viewTransitionOpts:$})=>{F&&r&&Object.values(F).forEach(Z=>r(Z,{location:w.location,params:w.matches[0]?.params??{},unstable_pattern:vm(w.matches)})),w.fetchers.forEach((Z,re)=>{Z.data!==void 0&&v.current.set(re,Z.data)}),B.forEach(Z=>v.current.delete(Z)),LO(ie===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(LO($==null||Y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!$||!Y){t&&ie?t(()=>s(w)):a===!1?s(w):We.startTransition(()=>{a===!0&&l(Z=>PO(Z,w)),s(w)});return}if(t&&ie){t(()=>{g&&(f?.resolve(),g.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let Z=e.window.document.startViewTransition(()=>{t(()=>s(w))});Z.finished.finally(()=>{t(()=>{h(void 0),b(void 0),d(void 0),p({isTransitioning:!1})})}),t(()=>b(Z));return}g?(f?.resolve(),g.skipTransition(),y({state:w,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(d(w),p({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[e.window,t,g,f,a,l,r]);We.useLayoutEffect(()=>e.subscribe(x),[e,x]),We.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new PX)},[u]),We.useEffect(()=>{if(f&&c&&e.window){let w=c,B=f.promise,F=e.window.document.startViewTransition(async()=>{a===!1?s(w):We.startTransition(()=>{a===!0&&l(ie=>PO(ie,w)),s(w)}),await B});F.finished.finally(()=>{h(void 0),b(void 0),d(void 0),p({isTransitioning:!1})}),b(F)}},[c,f,e.window,a,l]),We.useEffect(()=>{f&&c&&i.location.key===c.location.key&&f.resolve()},[f,g,i.location,c]),We.useEffect(()=>{!u.isTransitioning&&m&&(d(m.state),p({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[u.isTransitioning,m]);let S=We.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,B,F)=>e.navigate(w,{state:B,preventScrollReset:F?.preventScrollReset}),replace:(w,B,F)=>e.navigate(w,{replace:!0,state:B,preventScrollReset:F?.preventScrollReset})}),[e]),I=e.basename||"/",_=We.useMemo(()=>({router:e,navigator:S,static:!1,basename:I,onError:r}),[e,S,I,r]);return We.createElement(We.Fragment,null,We.createElement(al.Provider,{value:_},We.createElement(Pc.Provider,{value:i},We.createElement(ok.Provider,{value:v.current},We.createElement(Gv.Provider,{value:u},We.createElement(pk,{basename:I,location:i.location,navigationType:i.historyAction,navigator:S,unstable_useTransitions:a},We.createElement(TX,{routes:e.routes,future:e.future,state:i,isStatic:!1,onError:r})))))),null)}function PO(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}function AX({routes:e,future:t,state:r,isStatic:a,onError:o}){return yX(e,void 0,{state:r,isStatic:a,onError:o,future:t})}function fk(e){return cF(e.context)}function pk({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:o,static:n=!1,unstable_useTransitions:s}){nt(!Nd(),"You cannot render a inside another . You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),l=We.useMemo(()=>({basename:i,navigator:o,static:n,unstable_useTransitions:s,future:{}}),[i,o,n,s]);typeof r=="string"&&(r=Zo(r));let{pathname:c="/",search:d="",hash:u="",state:p=null,key:f="default",unstable_mask:h}=r,g=We.useMemo(()=>{let b=Eo(c,i);return b==null?null:{location:{pathname:b,search:d,hash:u,state:p,key:f,unstable_mask:h},navigationType:a}},[i,c,d,u,p,f,a,h]);return cr(g!=null,` is not able to match the URL "${c}${d}${u}" because it does not start with the basename, so the won't render anything.`),g==null?null:We.createElement(Aa.Provider,{value:l},We.createElement(Md.Provider,{children:t,value:g}))}function $v(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function DX(e){return $v(e)&&e.tagName.toLowerCase()==="button"}function MX(e){return $v(e)&&e.tagName.toLowerCase()==="form"}function NX(e){return $v(e)&&e.tagName.toLowerCase()==="input"}function OX(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FX(e,t){return e.button===0&&(!t||t==="_self")&&!OX(e)}function BX(){if(Hv===null)try{new FormData(document.createElement("form"),0),Hv=!1}catch{Hv=!0}return Hv}function W_(e){return e!=null&&!HX.has(e)?(cr(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${qv}"`),null):e}function zX(e,t){let r,a,o,n,s;if(MX(e)){let i=e.getAttribute("action");a=i?Eo(i,t):null,r=e.getAttribute("method")||Vv,o=W_(e.getAttribute("enctype"))||qv,n=new FormData(e)}else if(DX(e)||NX(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a