conductor-remote 1.102.0 → 1.103.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,52 @@
1
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function a(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=a(l);fetch(l.href,o)}})();function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mx={exports:{}},vl={};var gm;function Oy(){if(gm)return vl;gm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(i,l,o){var u=null;if(o!==void 0&&(u=""+o),l.key!==void 0&&(u=""+l.key),"key"in l){o={};for(var d in l)d!=="key"&&(o[d]=l[d])}else o=l;return l=o.ref,{$$typeof:e,type:i,key:u,ref:l!==void 0?l:null,props:o}}return vl.Fragment=n,vl.jsx=a,vl.jsxs=a,vl}var Em;function zy(){return Em||(Em=1,mx.exports=Oy()),mx.exports}var x=zy(),Wl=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(){}},Ly=class extends Wl{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Od=new Ly,Py={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},Iy=class{#e=Py;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},ki=new Iy;function Uy(e){setTimeout(e,0)}var Hy=typeof window>"u"||"Deno"in globalThis;function Kn(){}function $y(e,n){return typeof e=="function"?e(n):e}function ed(e){return typeof e=="number"&&e>=0&&e!==1/0}function L2(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Za(e,n){return typeof e=="function"?e(n):e}function or(e,n){return typeof e=="function"?e(n):e}function ym(e,n){const{type:a="all",exact:i,fetchStatus:l,predicate:o,queryKey:u,stale:d}=e;if(u){if(i){if(n.queryHash!==zd(u,n.options))return!1}else if(!Il(n.queryKey,u))return!1}if(a!=="all"){const f=n.isActive();if(a==="active"&&!f||a==="inactive"&&f)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||l&&l!==n.state.fetchStatus||o&&!o(n))}function bm(e,n){const{exact:a,status:i,predicate:l,mutationKey:o}=e;if(o){if(!n.options.mutationKey)return!1;if(a){if(Pl(n.options.mutationKey)!==Pl(o))return!1}else if(!Il(n.options.mutationKey,o))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function zd(e,n){return(n?.queryKeyHashFn||Pl)(e)}function Pl(e){return JSON.stringify(e,(n,a)=>nd(a)?Object.keys(a).sort().reduce((i,l)=>(i[l]=a[l],i),{}):a)}function Il(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>Il(e[a],n[a])):!1}var qy=Object.prototype.hasOwnProperty;function P2(e,n,a=0){if(e===n)return e;if(a>500)return n;const i=Cm(e)&&Cm(n);if(!i&&!(nd(e)&&nd(n)))return n;const o=(i?e:Object.keys(e)).length,u=i?n:Object.keys(n),d=u.length,f=i?new Array(d):{};let h=0;for(let g=0;g<d;g++){const p=i?g:u[g],y=e[p],b=n[p];if(y===b){f[p]=y,(i?g<o:qy.call(e,p))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[p]=b;continue}const C=P2(y,b,a+1);f[p]=C,C===y&&h++}return o===d&&h===o?e:f}function td(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function Cm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nd(e){if(!vm(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!vm(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Gy(e){return new Promise(n=>{ki.setTimeout(n,e)})}function rd(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?P2(e,n):n}function Vy(e){return e}function Qy(e,n,a=0){const i=[...e,n];return a&&i.length>a?i.slice(1):i}function Yy(e,n,a=0){const i=[n,...e];return a&&i.length>a?i.slice(0,-1):i}var Ld=Symbol();function I2(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Ld?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U2(e,n){return typeof e=="function"?e(...n):!!e}function Ky(e,n,a){let i=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=n(),i||(i=!0,l.aborted?a():l.addEventListener("abort",a,{once:!0})),l)}),e}var Ul=(()=>{let e=()=>Hy;return{isServer(){return e()},setIsServer(n){e=n}}})();function ad(){let e,n;const a=new Promise((l,o)=>{e=l,n=o});a.status="pending",a.catch(()=>{});function i(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},a.reject=l=>{i({status:"rejected",reason:l}),n(l)},a}var Xy=Uy;function Zy(){let e=[],n=0,a=d=>{d()},i=d=>{d()},l=Xy;const o=d=>{n?e.push(d):l(()=>{a(d)})},u=()=>{const d=e;e=[],d.length&&l(()=>{i(()=>{d.forEach(f=>{a(f)})})})};return{batch:d=>{let f;n++;try{f=d()}finally{n--,n||u()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{l=d}}}var Sn=Zy(),Wy=class extends Wl{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#e}},V0=new Wy;function Jy(e){return Math.min(1e3*2**e,3e4)}function H2(e){return(e??"online")==="online"?V0.isOnline():!0}var id=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function $2(e){let n=!1,a=0,i;const l=ad(),o=()=>l.status!=="pending",u=v=>{if(!o()){const k=new id(v);y(k),e.onCancel?.(k)}},d=()=>{n=!0},f=()=>{n=!1},h=()=>Od.isFocused()&&(e.networkMode==="always"||V0.isOnline())&&e.canRun(),g=()=>H2(e.networkMode)&&e.canRun(),p=v=>{o()||(i?.(),l.resolve(v))},y=v=>{o()||(i?.(),l.reject(v))},b=()=>new Promise(v=>{i=k=>{(o()||h())&&v(k)},e.onPause?.()}).then(()=>{i=void 0,o()||e.onContinue?.()}),C=()=>{if(o())return;let v;const k=a===0?e.initialPromise:void 0;try{v=k??e.fn()}catch(B){v=Promise.reject(B)}Promise.resolve(v).then(p).catch(B=>{if(o())return;const j=e.retry??(Ul.isServer()?0:3),S=e.retryDelay??Jy,_=typeof S=="function"?S(a,B):S,T=j===!0||typeof j=="number"&&a<j||typeof j=="function"&&j(a,B);if(n||!T){y(B);return}a++,e.onFail?.(a,B),Gy(_).then(()=>h()?void 0:b()).then(()=>{n?y(B):C()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(i?.(),l),cancelRetry:d,continueRetry:f,canStart:g,start:()=>(g()?C():b().then(C),l)}}var q2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ed(this.gcTime)&&(this.#e=ki.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ul.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ki.clearTimeout(this.#e),this.#e=void 0)}};function e4(e){return{onFetch:(n,a)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,o=n.state.data?.pages||[],u=n.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let g=!1;const p=C=>{Ky(C,()=>n.signal,()=>g=!0)},y=I2(n.options,n.fetchOptions),b=async(C,v,k)=>{if(g)return Promise.reject(n.signal.reason);if(v==null&&C.pages.length)return Promise.resolve(C);const j=(()=>{const F={client:n.client,queryKey:n.queryKey,pageParam:v,direction:k?"backward":"forward",meta:n.options.meta};return p(F),F})(),S=await y(j),{maxPages:_}=n.options,T=k?Yy:Qy;return{pages:T(C.pages,S,_),pageParams:T(C.pageParams,v,_)}};if(l&&o.length){const C=l==="backward",v=C?t4:Am,k={pages:o,pageParams:u},B=v(i,k);d=await b(k,B,C)}else{const C=e??o.length;do{const v=f===0?u[0]??i.initialPageParam:Am(i,d);if(f>0&&v==null)break;d=await b(d,v),f++}while(f<C)}return d};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=h}}}function Am(e,{pages:n,pageParams:a}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,a[i],a):void 0}function t4(e,{pages:n,pageParams:a}){return n.length>0?e.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var n4=class extends q2{#e;#t;#n;#r;#i;#a;#l;#s;constructor(e){super(),this.#s=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Bm(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#l,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Bm(this.options);n.data!==void 0&&(this.setState(km(n.data,n.dataUpdatedAt)),this.#t=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,n){const a=rd(this.state.data,e,this.options);return this.#o({data:a,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),a}setState(e){this.#o({type:"setState",state:e})}cancel(e){const n=this.#a?.promise;return this.#a?.cancel(e),n?n.then(Kn).catch(Kn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>or(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ld||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Za(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:!L2(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.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(n=>n!==e),this.observers.length||(this.#a&&(this.#s||this.#u()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const a=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},l=()=>{const f=I2(this.options,n),g=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#s=!1,this.options.persister?this.options.persister(f,g,this):f(g)},u=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return i(f),f})();(this.#e==="infinite"?e4(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=$2({initialPromise:n?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof id&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(f,h)=>{this.#o({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#a.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof id){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...G2(a.data,this.options),fetchMeta:e.meta??null};case"success":const i={...a,...km(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?i:void 0,i;case"error":const l=e.error;return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),Sn.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function G2(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H2(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function km(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Bm(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,i=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var r4=class extends Wl{constructor(e,n){super(),this.options=n,this.#e=e,this.#s=null,this.#l=ad(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#l;#s;#u;#o;#h;#x;#d;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Dm(this.#t,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sd(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sd(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#C(),this.#t.removeObserver(this)}setOptions(e){const n=this.options,a=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 or(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),n._defaulted&&!td(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&wm(this.#t,a,this.options,n)&&this.#f(),this.updateResult(),i&&(this.#t!==a||or(this.options.enabled,this.#t)!==or(n.enabled,this.#t)||Za(this.options.staleTime,this.#t)!==Za(n.staleTime,this.#t))&&this.#m();const l=this.#g();i&&(this.#t!==a||or(this.options.enabled,this.#t)!==or(n.enabled,this.#t)||l!==this.#c)&&this.#E(l)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return i4(this,a)&&(this.#r=a,this.#a=this.options,this.#i=this.#t.state),a}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(a,i)=>(this.trackProp(i),n?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,n);return a.fetch().then(()=>this.createResult(a,n))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#v();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(Kn)),n}#m(){this.#b();const e=Za(this.options.staleTime,this.#t);if(Ul.isServer()||this.#r.isStale||!ed(e))return;const a=L2(this.#r.dataUpdatedAt,e)+1;this.#x=ki.setTimeout(()=>{this.#r.isStale||this.updateResult()},a)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#E(e){this.#C(),this.#c=e,!(Ul.isServer()||or(this.options.enabled,this.#t)===!1||!ed(this.#c)||this.#c===0)&&(this.#d=ki.setInterval(()=>{(this.options.refetchIntervalInBackground||Od.isFocused())&&this.#f()},this.#c))}#y(){this.#m(),this.#E(this.#g())}#b(){this.#x!==void 0&&(ki.clearTimeout(this.#x),this.#x=void 0)}#C(){this.#d!==void 0&&(ki.clearInterval(this.#d),this.#d=void 0)}createResult(e,n){const a=this.#t,i=this.options,l=this.#r,o=this.#i,u=this.#a,f=e!==a?e.state:this.#n,{state:h}=e;let g={...h},p=!1,y;if(n._optimisticResults){const L=this.hasListeners(),I=!L&&Dm(e,n),O=L&&wm(e,a,n,i);(I||O)&&(g={...g,...G2(h.data,e.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:C,status:v}=g;y=g.data;let k=!1;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let L;l?.isPlaceholderData&&n.placeholderData===u?.placeholderData?(L=l.data,k=!0):L=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,L!==void 0&&(v="success",y=rd(l?.data,L,n),p=!0)}if(n.select&&y!==void 0&&!k)if(l&&y===o?.data&&n.select===this.#u)y=this.#o;else try{this.#u=n.select,y=n.select(y),y=rd(l?.data,y,n),this.#o=y,this.#s=null}catch(L){this.#s=L}this.#s&&(b=this.#s,y=this.#o,C=Date.now(),v="error");const B=g.fetchStatus==="fetching",j=v==="pending",S=v==="error",_=j&&B,T=y!==void 0,R={status:v,fetchStatus:g.fetchStatus,isPending:j,isSuccess:v==="success",isError:S,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:C,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:B,isRefetching:B&&!j,isLoadingError:S&&!T,isPaused:g.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&T,isStale:Pd(e,n),refetch:this.refetch,promise:this.#l,isEnabled:or(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=R.data!==void 0,I=R.status==="error"&&!L,O=oe=>{I?oe.reject(R.error):L&&oe.resolve(R.data)},$=()=>{const oe=this.#l=R.promise=ad();O(oe)},V=this.#l;switch(V.status){case"pending":e.queryHash===a.queryHash&&O(V);break;case"fulfilled":(I||R.data!==V.value)&&$();break;case"rejected":(!I||R.error!==V.reason)&&$();break}}return R}updateResult(){const e=this.#r,n=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#h=this.#t),td(n,e))return;this.#r=n;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#p.size)return!0;const o=new Set(l??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(u=>{const d=u;return this.#r[d]!==e[d]&&o.has(d)})};this.#A({listeners:a()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#A(e){Sn.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function a4(e,n){return or(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&or(n.retryOnMount,e)===!1)}function Dm(e,n){return a4(e,n)||e.state.data!==void 0&&sd(e,n,n.refetchOnMount)}function sd(e,n,a){if(or(n.enabled,e)!==!1&&Za(n.staleTime,e)!=="static"){const i=typeof a=="function"?a(e):a;return i==="always"||i!==!1&&Pd(e,n)}return!1}function wm(e,n,a,i){return(e!==n||or(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&Pd(e,a)}function Pd(e,n){return or(n.enabled,e)!==!1&&e.isStaleByTime(Za(n.staleTime,e))}function i4(e,n){return!td(e.getCurrentResult(),n)}var s4=class extends q2{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||l4(),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.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(n=>n!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#i({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=$2({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(o,u)=>{this.#i({type:"failed",failureCount:o,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#r.canStart();try{if(i)n();else{this.#i({type:"pending",variables:e,isPaused:l}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,a);const u=await this.options.onMutate?.(e,a);u!==this.state.context&&this.#i({type:"pending",context:u,variables:e,isPaused:l})}const o=await this.#r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,a),await this.options.onSuccess?.(o,e,this.state.context,a),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(o,null,e,this.state.context,a),this.#i({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,a)}catch(u){Promise.reject(u)}try{await this.options.onError?.(o,e,this.state.context,a)}catch(u){Promise.reject(u)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,a)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,a)}catch(u){Promise.reject(u)}throw this.#i({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#i(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Sn.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function l4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var o4=class extends Wl{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,a){const i=new s4({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:a});return this.add(i),i}add(e){this.#e.add(e);const n=A0(e);if(typeof n=="string"){const a=this.#t.get(n);a?a.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=A0(e);if(typeof n=="string"){const a=this.#t.get(n);if(a)if(a.length>1){const i=a.indexOf(e);i!==-1&&a.splice(i,1)}else a[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=A0(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=A0(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Sn.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){const n={exact:!0,...e};return this.getAll().find(a=>bm(n,a))}findAll(e={}){return this.getAll().filter(n=>bm(e,n))}notify(e){Sn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Sn.batch(()=>Promise.all(e.map(n=>n.continue().catch(Kn))))}};function A0(e){return e.options.scope?.id}var c4=class extends Wl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,a){const i=n.queryKey,l=n.queryHash??zd(i,n);let o=this.get(l);return o||(o=new n4({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Sn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(a=>ym(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>ym(e,a)):n}notify(e){Sn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Sn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Sn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u4=class{#e;#t;#n;#r;#i;#a;#l;#s;constructor(e={}){this.#e=e.queryCache||new c4,this.#t=e.mutationCache||new o4,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#l=Od.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=V0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=this.#e.build(this,n),i=a.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Za(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:a})=>{const i=a.data;return[n,i]})}setQueryData(e,n,a){const i=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(i.queryHash)?.state.data,u=$y(n,o);if(u!==void 0)return this.#e.build(this,i).setData(u,{...a,manual:!0})}setQueriesData(e,n,a){return Sn.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,a)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Sn.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=this.#e;return Sn.batch(()=>(a.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},i=Sn.batch(()=>this.#e.findAll(e).map(l=>l.cancel(a)));return Promise.all(i).then(Kn).catch(Kn)}invalidateQueries(e,n={}){return Sn.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},i=Sn.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let o=l.fetch(void 0,a);return a.throwOnError||(o=o.catch(Kn)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Kn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=this.#e.build(this,n);return a.isStaleByTime(Za(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kn).catch(Kn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kn).catch(Kn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return V0.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(Pl(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],a={};return n.forEach(i=>{Il(e,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,n){this.#i.set(Pl(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],a={};return n.forEach(i=>{Il(e,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=zd(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Ld&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},gx={exports:{}},Ze={};var Fm;function x4(){if(Fm)return Ze;Fm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,k={};function B(z,X,w){this.props=z,this.context=X,this.refs=k,this.updater=w||C}B.prototype.isReactComponent={},B.prototype.setState=function(z,X){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,X,"setState")},B.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=B.prototype;function S(z,X,w){this.props=z,this.context=X,this.refs=k,this.updater=w||C}var _=S.prototype=new j;_.constructor=S,v(_,B.prototype),_.isPureReactComponent=!0;var T=Array.isArray;function F(){}var R={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function I(z,X,w){var W=w.ref;return{$$typeof:e,type:z,key:X,ref:W!==void 0?W:null,props:w}}function O(z,X){return I(z.type,X,z.props)}function $(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function V(z){var X={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(w){return X[w]})}var oe=/\/+/g;function te(z,X){return typeof z=="object"&&z!==null&&z.key!=null?V(""+z.key):X.toString(36)}function Y(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(F,F):(z.status="pending",z.then(function(X){z.status==="pending"&&(z.status="fulfilled",z.value=X)},function(X){z.status==="pending"&&(z.status="rejected",z.reason=X)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function P(z,X,w,W,he){var re=typeof z;(re==="undefined"||re==="boolean")&&(z=null);var De=!1;if(z===null)De=!0;else switch(re){case"bigint":case"string":case"number":De=!0;break;case"object":switch(z.$$typeof){case e:case n:De=!0;break;case g:return De=z._init,P(De(z._payload),X,w,W,he)}}if(De)return he=he(z),De=W===""?"."+te(z,0):W,T(he)?(w="",De!=null&&(w=De.replace(oe,"$&/")+"/"),P(he,X,w,"",function(st){return st})):he!=null&&($(he)&&(he=O(he,w+(he.key==null||z&&z.key===he.key?"":(""+he.key).replace(oe,"$&/")+"/")+De)),X.push(he)),1;De=0;var Ge=W===""?".":W+":";if(T(z))for(var we=0;we<z.length;we++)W=z[we],re=Ge+te(W,we),De+=P(W,X,w,re,he);else if(we=b(z),typeof we=="function")for(z=we.call(z),we=0;!(W=z.next()).done;)W=W.value,re=Ge+te(W,we++),De+=P(W,X,w,re,he);else if(re==="object"){if(typeof z.then=="function")return P(Y(z),X,w,W,he);throw X=String(z),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return De}function Q(z,X,w){if(z==null)return z;var W=[],he=0;return P(z,W,"","",function(re){return X.call(w,re,he++)}),W}function Z(z){if(z._status===-1){var X=z._result;X=X(),X.then(function(w){(z._status===0||z._status===-1)&&(z._status=1,z._result=w)},function(w){(z._status===0||z._status===-1)&&(z._status=2,z._result=w)}),z._status===-1&&(z._status=0,z._result=X)}if(z._status===1)return z._result.default;throw z._result}var de=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},M={map:Q,forEach:function(z,X,w){Q(z,function(){X.apply(this,arguments)},w)},count:function(z){var X=0;return Q(z,function(){X++}),X},toArray:function(z){return Q(z,function(X){return X})||[]},only:function(z){if(!$(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ze.Activity=p,Ze.Children=M,Ze.Component=B,Ze.Fragment=a,Ze.Profiler=l,Ze.PureComponent=S,Ze.StrictMode=i,Ze.Suspense=f,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(z){return R.H.useMemoCache(z)}},Ze.cache=function(z){return function(){return z.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cloneElement=function(z,X,w){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var W=v({},z.props),he=z.key;if(X!=null)for(re in X.key!==void 0&&(he=""+X.key),X)!L.call(X,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&X.ref===void 0||(W[re]=X[re]);var re=arguments.length-2;if(re===1)W.children=w;else if(1<re){for(var De=Array(re),Ge=0;Ge<re;Ge++)De[Ge]=arguments[Ge+2];W.children=De}return I(z.type,he,W)},Ze.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},Ze.createElement=function(z,X,w){var W,he={},re=null;if(X!=null)for(W in X.key!==void 0&&(re=""+X.key),X)L.call(X,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(he[W]=X[W]);var De=arguments.length-2;if(De===1)he.children=w;else if(1<De){for(var Ge=Array(De),we=0;we<De;we++)Ge[we]=arguments[we+2];he.children=Ge}if(z&&z.defaultProps)for(W in De=z.defaultProps,De)he[W]===void 0&&(he[W]=De[W]);return I(z,re,he)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(z){return{$$typeof:d,render:z}},Ze.isValidElement=$,Ze.lazy=function(z){return{$$typeof:g,_payload:{_status:-1,_result:z},_init:Z}},Ze.memo=function(z,X){return{$$typeof:h,type:z,compare:X===void 0?null:X}},Ze.startTransition=function(z){var X=R.T,w={};R.T=w;try{var W=z(),he=R.S;he!==null&&he(w,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(F,de)}catch(re){de(re)}finally{X!==null&&w.types!==null&&(X.types=w.types),R.T=X}},Ze.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ze.use=function(z){return R.H.use(z)},Ze.useActionState=function(z,X,w){return R.H.useActionState(z,X,w)},Ze.useCallback=function(z,X){return R.H.useCallback(z,X)},Ze.useContext=function(z){return R.H.useContext(z)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(z,X){return R.H.useDeferredValue(z,X)},Ze.useEffect=function(z,X){return R.H.useEffect(z,X)},Ze.useEffectEvent=function(z){return R.H.useEffectEvent(z)},Ze.useId=function(){return R.H.useId()},Ze.useImperativeHandle=function(z,X,w){return R.H.useImperativeHandle(z,X,w)},Ze.useInsertionEffect=function(z,X){return R.H.useInsertionEffect(z,X)},Ze.useLayoutEffect=function(z,X){return R.H.useLayoutEffect(z,X)},Ze.useMemo=function(z,X){return R.H.useMemo(z,X)},Ze.useOptimistic=function(z,X){return R.H.useOptimistic(z,X)},Ze.useReducer=function(z,X,w){return R.H.useReducer(z,X,w)},Ze.useRef=function(z){return R.H.useRef(z)},Ze.useState=function(z){return R.H.useState(z)},Ze.useSyncExternalStore=function(z,X,w){return R.H.useSyncExternalStore(z,X,w)},Ze.useTransition=function(){return R.H.useTransition()},Ze.version="19.2.7",Ze}var Sm;function Id(){return Sm||(Sm=1,gx.exports=x4()),gx.exports}var D=Id();const k0=Zl(D);var V2=D.createContext(void 0),ur=e=>{const n=D.useContext(V2);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},d4=({client:e,children:n})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(V2.Provider,{value:e,children:n})),Q2=D.createContext(!1),f4=()=>D.useContext(Q2);Q2.Provider;function h4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var p4=D.createContext(h4()),m4=()=>D.useContext(p4),g4=(e,n,a)=>{const i=a?.state.error&&typeof e.throwOnError=="function"?U2(e.throwOnError,[a.state.error,a]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(n.isReset()||(e.retryOnMount=!1))},E4=e=>{D.useEffect(()=>{e.clearReset()},[e])},y4=({result:e,errorResetBoundary:n,throwOnError:a,query:i,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||U2(a,[e.error,i])),b4=e=>{if(e.suspense){const a=l=>l==="static"?l:Math.max(l??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...l)=>a(i(...l)):a(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},C4=(e,n)=>e.isLoading&&e.isFetching&&!n,v4=(e,n)=>e?.suspense&&n.isPending,Nm=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function A4(e,n,a){const i=f4(),l=m4(),o=ur(),u=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(u);const d=o.getQueryCache().get(u.queryHash),f=e.subscribed!==!1;u._optimisticResults=i?"isRestoring":f?"optimistic":void 0,b4(u),g4(u,l,d),E4(l);const h=!o.getQueryCache().get(u.queryHash),[g]=D.useState(()=>new n(o,u)),p=g.getOptimisticResult(u),y=!i&&f;if(D.useSyncExternalStore(D.useCallback(b=>{const C=y?g.subscribe(Sn.batchCalls(b)):Kn;return g.updateResult(),C},[g,y]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),D.useEffect(()=>{g.setOptions(u)},[u,g]),v4(u,p))throw Nm(u,g,l);if(y4({result:p,errorResetBoundary:l,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw p.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!Ul.isServer()&&C4(p,i)&&(h?Nm(u,g,l):d?.promise)?.catch(Kn).finally(()=>{g.updateResult()}),u.notifyOnChangeProps?p:g.trackResult(p)}function An(e,n){return A4(e,r4)}var Ex={exports:{}},Al={},yx={exports:{}},bx={};var _m;function k4(){return _m||(_m=1,(function(e){function n(P,Q){var Z=P.length;P.push(Q);e:for(;0<Z;){var de=Z-1>>>1,M=P[de];if(0<l(M,Q))P[de]=Q,P[Z]=M,Z=de;else break e}}function a(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var Q=P[0],Z=P.pop();if(Z!==Q){P[0]=Z;e:for(var de=0,M=P.length,z=M>>>1;de<z;){var X=2*(de+1)-1,w=P[X],W=X+1,he=P[W];if(0>l(w,Z))W<M&&0>l(he,w)?(P[de]=he,P[W]=Z,de=W):(P[de]=w,P[X]=Z,de=X);else if(W<M&&0>l(he,Z))P[de]=he,P[W]=Z,de=W;else break e}}return Q}function l(P,Q){var Z=P.sortIndex-Q.sortIndex;return Z!==0?Z:P.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],h=[],g=1,p=null,y=3,b=!1,C=!1,v=!1,k=!1,B=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function _(P){for(var Q=a(h);Q!==null;){if(Q.callback===null)i(h);else if(Q.startTime<=P)i(h),Q.sortIndex=Q.expirationTime,n(f,Q);else break;Q=a(h)}}function T(P){if(v=!1,_(P),!C)if(a(f)!==null)C=!0,F||(F=!0,V());else{var Q=a(h);Q!==null&&Y(T,Q.startTime-P)}}var F=!1,R=-1,L=5,I=-1;function O(){return k?!0:!(e.unstable_now()-I<L)}function $(){if(k=!1,F){var P=e.unstable_now();I=P;var Q=!0;try{e:{C=!1,v&&(v=!1,j(R),R=-1),b=!0;var Z=y;try{t:{for(_(P),p=a(f);p!==null&&!(p.expirationTime>P&&O());){var de=p.callback;if(typeof de=="function"){p.callback=null,y=p.priorityLevel;var M=de(p.expirationTime<=P);if(P=e.unstable_now(),typeof M=="function"){p.callback=M,_(P),Q=!0;break t}p===a(f)&&i(f),_(P)}else i(f);p=a(f)}if(p!==null)Q=!0;else{var z=a(h);z!==null&&Y(T,z.startTime-P),Q=!1}}break e}finally{p=null,y=Z,b=!1}Q=void 0}}finally{Q?V():F=!1}}}var V;if(typeof S=="function")V=function(){S($)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,te=oe.port2;oe.port1.onmessage=$,V=function(){te.postMessage(null)}}else V=function(){B($,0)};function Y(P,Q){R=B(function(){P(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(P){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var Z=y;y=Q;try{return P()}finally{y=Z}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(P,Q){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var Z=y;y=P;try{return Q()}finally{y=Z}},e.unstable_scheduleCallback=function(P,Q,Z){var de=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?de+Z:de):Z=de,P){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=Z+M,P={id:g++,callback:Q,priorityLevel:P,startTime:Z,expirationTime:M,sortIndex:-1},Z>de?(P.sortIndex=Z,n(h,P),a(f)===null&&P===a(h)&&(v?(j(R),R=-1):v=!0,Y(T,Z-de))):(P.sortIndex=M,n(f,P),C||b||(C=!0,F||(F=!0,V()))),P},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(P){var Q=y;return function(){var Z=y;y=Q;try{return P.apply(this,arguments)}finally{y=Z}}}})(bx)),bx}var Mm;function B4(){return Mm||(Mm=1,yx.exports=k4()),yx.exports}var Cx={exports:{}},Mn={};var jm;function D4(){if(jm)return Mn;jm=1;var e=Id();function n(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(f,h,g){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:p==null?null:""+p,children:f,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mn.createPortal=function(f,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return o(f,h,null,g)},Mn.flushSync=function(f){var h=u.T,g=i.p;try{if(u.T=null,i.p=2,f)return f()}finally{u.T=h,i.p=g,i.d.f()}},Mn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},Mn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Mn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var g=h.as,p=d(g,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:b}):g==="script"&&i.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Mn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},Mn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,p=d(g,h.crossOrigin);i.d.L(f,g,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Mn.preloadModule=function(f,h){if(typeof f=="string")if(h){var g=d(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},Mn.requestFormReset=function(f){i.d.r(f)},Mn.unstable_batchedUpdates=function(f,h){return f(h)},Mn.useFormState=function(f,h,g){return u.H.useFormState(f,h,g)},Mn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mn.version="19.2.7",Mn}var Tm;function Y2(){if(Tm)return Cx.exports;Tm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Cx.exports=D4(),Cx.exports}var Rm;function w4(){if(Rm)return Al;Rm=1;var e=B4(),n=Id(),a=Y2();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function o(t){var r=t,s=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(s=r.return),t=r.return;while(t)}return r.tag===3?s:null}function u(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function d(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(o(t)!==t)throw Error(i(188))}function h(t){var r=t.alternate;if(!r){if(r=o(t),r===null)throw Error(i(188));return r!==t?null:t}for(var s=t,c=r;;){var m=s.return;if(m===null)break;var E=m.alternate;if(E===null){if(c=m.return,c!==null){s=c;continue}break}if(m.child===E.child){for(E=m.child;E;){if(E===s)return f(m),t;if(E===c)return f(m),r;E=E.sibling}throw Error(i(188))}if(s.return!==c.return)s=m,c=E;else{for(var A=!1,N=m.child;N;){if(N===s){A=!0,s=m,c=E;break}if(N===c){A=!0,c=m,s=E;break}N=N.sibling}if(!A){for(N=E.child;N;){if(N===s){A=!0,s=E,c=m;break}if(N===c){A=!0,c=E,s=m;break}N=N.sibling}if(!A)throw Error(i(189))}}if(s.alternate!==c)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),S=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function V(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var oe=Symbol.for("react.client.reference");function te(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===oe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case B:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case F:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case S:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case _:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case R:return r=t.displayName||null,r!==null?r:te(t.type)||"Memo";case L:r=t._payload,t=t._init;try{return te(t(r))}catch{}}return null}var Y=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},de=[],M=-1;function z(t){return{current:t}}function X(t){0>M||(t.current=de[M],de[M]=null,M--)}function w(t,r){M++,de[M]=t.current,t.current=r}var W=z(null),he=z(null),re=z(null),De=z(null);function Ge(t,r){switch(w(re,r),w(he,t),w(W,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Ip(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Ip(r),t=Up(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(W),w(W,t)}function we(){X(W),X(he),X(re)}function st(t){t.memoizedState!==null&&w(De,t);var r=W.current,s=Up(r,t.type);r!==s&&(w(he,t),w(W,s))}function ut(t){he.current===t&&(X(W),X(he)),De.current===t&&(X(De),El._currentValue=Z)}var Lt,Ct;function Ce(t){if(Lt===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);Lt=r&&r[1]||"",Ct=-1<s.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Lt+t+Ct}var Ae=!1;function Oe(t,r){if(!t||Ae)return"";Ae=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(r){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(se){var ne=se}Reflect.construct(t,[],fe)}else{try{fe.call()}catch(se){ne=se}t.call(fe.prototype)}}else{try{throw Error()}catch(se){ne=se}(fe=t())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(se){if(se&&ne&&typeof se.stack=="string")return[se.stack,ne.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=c.DetermineComponentFrameRoot(),A=E[0],N=E[1];if(A&&N){var H=A.split(`
4
+ `),ee=N.split(`
5
+ `);for(m=c=0;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;for(;m<ee.length&&!ee[m].includes("DetermineComponentFrameRoot");)m++;if(c===H.length||m===ee.length)for(c=H.length-1,m=ee.length-1;1<=c&&0<=m&&H[c]!==ee[m];)m--;for(;1<=c&&0<=m;c--,m--)if(H[c]!==ee[m]){if(c!==1||m!==1)do if(c--,m--,0>m||H[c]!==ee[m]){var ce=`
6
+ `+H[c].replace(" at new "," at ");return t.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",t.displayName)),ce}while(1<=c&&0<=m);break}}}finally{Ae=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?Ce(s):""}function Ye(t,r){switch(t.tag){case 26:case 27:case 5:return Ce(t.type);case 16:return Ce("Lazy");case 13:return t.child!==r&&r!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return Oe(t.type,!1);case 11:return Oe(t.type.render,!1);case 1:return Oe(t.type,!0);case 31:return Ce("Activity");default:return""}}function kt(t){try{var r="",s=null;do r+=Ye(t,s),s=t,t=t.return;while(t);return r}catch(c){return`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}}var ht=Object.prototype.hasOwnProperty,Zt=e.unstable_scheduleCallback,vt=e.unstable_cancelCallback,ln=e.unstable_shouldYield,On=e.unstable_requestPaint,We=e.unstable_now,Cn=e.unstable_getCurrentPriorityLevel,le=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,_e=e.unstable_NormalPriority,Ke=e.unstable_LowPriority,nt=e.unstable_IdlePriority,jt=e.log,Wt=e.unstable_setDisableYieldValue,Vt=null,Bt=null;function Ut(t){if(typeof jt=="function"&&Wt(t),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Vt,t)}catch{}}var ie=Math.clz32?Math.clz32:ae,pt=Math.log,me=Math.LN2;function ae(t){return t>>>=0,t===0?32:31-(pt(t)/me|0)|0}var rt=256,Qe=262144,Kt=4194304;function on(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function U(t,r,s){var c=t.pendingLanes;if(c===0)return 0;var m=0,E=t.suspendedLanes,A=t.pingedLanes;t=t.warmLanes;var N=c&134217727;return N!==0?(c=N&~E,c!==0?m=on(c):(A&=N,A!==0?m=on(A):s||(s=N&~t,s!==0&&(m=on(s))))):(N=c&~E,N!==0?m=on(N):A!==0?m=on(A):s||(s=c&~t,s!==0&&(m=on(s)))),m===0?0:r!==0&&r!==m&&(r&E)===0&&(E=m&-m,s=r&-r,E>=s||E===32&&(s&4194048)!==0)?r:m}function ue(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function ke(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 Ve(){var t=Kt;return Kt<<=1,(Kt&62914560)===0&&(Kt=4194304),t}function Ht(t){for(var r=[],s=0;31>s;s++)r.push(t);return r}function Tt(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Te(t,r,s,c,m,E){var A=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var N=t.entanglements,H=t.expirationTimes,ee=t.hiddenUpdates;for(s=A&~s;0<s;){var ce=31-ie(s),fe=1<<ce;N[ce]=0,H[ce]=-1;var ne=ee[ce];if(ne!==null)for(ee[ce]=null,ce=0;ce<ne.length;ce++){var se=ne[ce];se!==null&&(se.lane&=-536870913)}s&=~fe}c!==0&&Fe(t,c,0),E!==0&&m===0&&t.tag!==0&&(t.suspendedLanes|=E&~(A&~r))}function Fe(t,r,s){t.pendingLanes|=r,t.suspendedLanes&=~r;var c=31-ie(r);t.entangledLanes|=r,t.entanglements[c]=t.entanglements[c]|1073741824|s&261930}function qe(t,r){var s=t.entangledLanes|=r;for(t=t.entanglements;s;){var c=31-ie(s),m=1<<c;m&r|t[c]&r&&(t[c]|=r),s&=~m}}function tn(t,r){var s=r&-r;return s=(s&42)!==0?1:Qt(s),(s&(t.suspendedLanes|r))!==0?0:s}function Qt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Qr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ti(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:um(t.type))}function Ri(t,r){var s=Q.p;try{return Q.p=t,r()}finally{Q.p=s}}var Or=Math.random().toString(36).slice(2),nn="__reactFiber$"+Or,Nn="__reactProps$"+Or,ba="__reactContainer$"+Or,Ss="__reactEvents$"+Or,lo="__reactListeners$"+Or,Oi="__reactHandles$"+Or,oo="__reactResources$"+Or,ti="__reactMarker$"+Or;function Ns(t){delete t[nn],delete t[Nn],delete t[Ss],delete t[lo],delete t[Oi]}function zn(t){var r=t[nn];if(r)return r;for(var s=t.parentNode;s;){if(r=s[ba]||s[nn]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(t=Yp(t);t!==null;){if(s=t[nn])return s;t=Yp(t)}return r}t=s,s=t.parentNode}return null}function Yr(t){if(t=t[nn]||t[ba]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function Ca(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function va(t){var r=t[oo];return r||(r=t[oo]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function cn(t){t[ti]=!0}var co=new Set,ni={};function Kr(t,r){ge(t,r),ge(t+"Capture",r)}function ge(t,r){for(ni[t]=r,t=0;t<r.length;t++)co.add(r[t])}var Le=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),it={},Dt={};function rn(t){return ht.call(Dt,t)?!0:ht.call(it,t)?!1:Le.test(t)?Dt[t]=!0:(it[t]=!0,!1)}function _n(t,r,s){if(rn(r))if(s===null)t.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var c=r.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+s)}}function Wn(t,r,s){if(s===null)t.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+s)}}function In(t,r,s,c){if(c===null)t.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(r,s,""+c)}}function Pt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jn(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function uo(t,r,s){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,E=c.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return m.call(this)},set:function(A){s=""+A,E.call(this,A)}}),Object.defineProperty(t,r,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(A){s=""+A},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function zi(t){if(!t._valueTracker){var r=Jn(t)?"checked":"value";t._valueTracker=uo(t,r,""+t[r])}}function _s(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var s=r.getValue(),c="";return t&&(c=Jn(t)?t.checked?"true":"false":t.value),t=c,t!==s?(r.setValue(t),!0):!1}function Li(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var pc=/[\n"\\]/g;function Un(t){return t.replace(pc,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ms(t,r,s,c,m,E,A,N){t.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.type=A:t.removeAttribute("type"),r!=null?A==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Pt(r)):t.value!==""+Pt(r)&&(t.value=""+Pt(r)):A!=="submit"&&A!=="reset"||t.removeAttribute("value"),r!=null?Pi(t,A,Pt(r)):s!=null?Pi(t,A,Pt(s)):c!=null&&t.removeAttribute("value"),m==null&&E!=null&&(t.defaultChecked=!!E),m!=null&&(t.checked=m&&typeof m!="function"&&typeof m!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?t.name=""+Pt(N):t.removeAttribute("name")}function ri(t,r,s,c,m,E,A,N){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(t.type=E),r!=null||s!=null){if(!(E!=="submit"&&E!=="reset"||r!=null)){zi(t);return}s=s!=null?""+Pt(s):"",r=r!=null?""+Pt(r):s,N||r===t.value||(t.value=r),t.defaultValue=r}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=N?t.checked:!!c,t.defaultChecked=!!c,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(t.name=A),zi(t)}function Pi(t,r,s){r==="number"&&Li(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function kn(t,r,s,c){if(t=t.options,r){r={};for(var m=0;m<s.length;m++)r["$"+s[m]]=!0;for(s=0;s<t.length;s++)m=r.hasOwnProperty("$"+t[s].value),t[s].selected!==m&&(t[s].selected=m),m&&c&&(t[s].defaultSelected=!0)}else{for(s=""+Pt(s),r=null,m=0;m<t.length;m++){if(t[m].value===s){t[m].selected=!0,c&&(t[m].defaultSelected=!0);return}r!==null||t[m].disabled||(r=t[m])}r!==null&&(r.selected=!0)}}function xo(t,r,s){if(r!=null&&(r=""+Pt(r),r!==t.value&&(t.value=r),s==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=s!=null?""+Pt(s):""}function Ii(t,r,s,c){if(r==null){if(c!=null){if(s!=null)throw Error(i(92));if(Y(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),r=s}s=Pt(r),t.defaultValue=s,c=t.textContent,c===s&&c!==""&&c!==null&&(t.value=c),zi(t)}function $e(t,r){if(r){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=r;return}}t.textContent=r}var fo=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function un(t,r,s){var c=r.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":c?t.setProperty(r,s):typeof s!="number"||s===0||fo.has(r)?r==="float"?t.cssFloat=s:t[r]=(""+s).trim():t[r]=s+"px"}function wt(t,r,s){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||r!=null&&r.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var m in r)c=r[m],r.hasOwnProperty(m)&&s[m]!==c&&un(t,m,c)}else for(var E in r)r.hasOwnProperty(E)&&un(t,E,r[E])}function Aa(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xr=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),js=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ka(t){return js.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ve(){}var Re=null;function Je(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xt=null,Xt=null;function dr(t){var r=Yr(t);if(r&&(t=r.stateNode)){var s=t[Nn]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ms(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),r=s.name,s.type==="radio"&&r!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Un(""+r)+'"][type="radio"]'),r=0;r<s.length;r++){var c=s[r];if(c!==t&&c.form===t.form){var m=c[Nn]||null;if(!m)throw Error(i(90));Ms(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(r=0;r<s.length;r++)c=s[r],c.form===t.form&&_s(c)}break e;case"textarea":xo(t,s.value,s.defaultValue);break e;case"select":r=s.value,r!=null&&kn(t,!!s.multiple,r,!1)}}}var Ts=!1;function ho(t,r,s){if(Ts)return t(r,s);Ts=!0;try{var c=t(r);return c}finally{if(Ts=!1,(xt!==null||Xt!==null)&&(t0(),xt&&(r=xt,t=Xt,Xt=xt=null,dr(r),t)))for(r=0;r<t.length;r++)dr(t[r])}}function Rs(t,r){var s=t.stateNode;if(s===null)return null;var c=s[Nn]||null;if(c===null)return null;s=c[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(i(231,r,typeof s));return s}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Zr)try{var Os={};Object.defineProperty(Os,"passive",{get:function(){mc=!0}}),window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{mc=!1}var Ba=null,gc=null,po=null;function Uf(){if(po)return po;var t,r=gc,s=r.length,c,m="value"in Ba?Ba.value:Ba.textContent,E=m.length;for(t=0;t<s&&r[t]===m[t];t++);var A=s-t;for(c=1;c<=A&&r[s-c]===m[E-c];c++);return po=m.slice(t,1<c?1-c:void 0)}function mo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function go(){return!0}function Hf(){return!1}function Hn(t){function r(s,c,m,E,A){this._reactName=s,this._targetInst=m,this.type=c,this.nativeEvent=E,this.target=A,this.currentTarget=null;for(var N in t)t.hasOwnProperty(N)&&(s=t[N],this[N]=s?s(E):E[N]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?go:Hf,this.isPropagationStopped=Hf,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=go)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=go)},persist:function(){},isPersistent:go}),r}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eo=Hn(ai),zs=p({},ai,{view:0,detail:0}),T5=Hn(zs),Ec,yc,Ls,yo=p({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ls&&(Ls&&t.type==="mousemove"?(Ec=t.screenX-Ls.screenX,yc=t.screenY-Ls.screenY):yc=Ec=0,Ls=t),Ec)},movementY:function(t){return"movementY"in t?t.movementY:yc}}),$f=Hn(yo),R5=p({},yo,{dataTransfer:0}),O5=Hn(R5),z5=p({},zs,{relatedTarget:0}),bc=Hn(z5),L5=p({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),P5=Hn(L5),I5=p({},ai,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),U5=Hn(I5),H5=p({},ai,{data:0}),qf=Hn(H5),$5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q5={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},G5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V5(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=G5[t])?!!r[t]:!1}function Cc(){return V5}var Q5=p({},zs,{key:function(t){if(t.key){var r=$5[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=mo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?q5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cc,charCode:function(t){return t.type==="keypress"?mo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Y5=Hn(Q5),K5=p({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gf=Hn(K5),X5=p({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cc}),Z5=Hn(X5),W5=p({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),J5=Hn(W5),e6=p({},yo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),t6=Hn(e6),n6=p({},ai,{newState:0,oldState:0}),r6=Hn(n6),a6=[9,13,27,32],vc=Zr&&"CompositionEvent"in window,Ps=null;Zr&&"documentMode"in document&&(Ps=document.documentMode);var i6=Zr&&"TextEvent"in window&&!Ps,Vf=Zr&&(!vc||Ps&&8<Ps&&11>=Ps),Qf=" ",Yf=!1;function Kf(t,r){switch(t){case"keyup":return a6.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ui=!1;function s6(t,r){switch(t){case"compositionend":return Xf(r);case"keypress":return r.which!==32?null:(Yf=!0,Qf);case"textInput":return t=r.data,t===Qf&&Yf?null:t;default:return null}}function l6(t,r){if(Ui)return t==="compositionend"||!vc&&Kf(t,r)?(t=Uf(),po=gc=Ba=null,Ui=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Vf&&r.locale!=="ko"?null:r.data;default:return null}}var o6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!o6[t.type]:r==="textarea"}function Wf(t,r,s,c){xt?Xt?Xt.push(c):Xt=[c]:xt=c,r=o0(r,"onChange"),0<r.length&&(s=new Eo("onChange","change",null,s,c),t.push({event:s,listeners:r}))}var Is=null,Us=null;function c6(t){Tp(t,0)}function bo(t){var r=Ca(t);if(_s(r))return t}function Jf(t,r){if(t==="change")return r}var eh=!1;if(Zr){var Ac;if(Zr){var kc="oninput"in document;if(!kc){var th=document.createElement("div");th.setAttribute("oninput","return;"),kc=typeof th.oninput=="function"}Ac=kc}else Ac=!1;eh=Ac&&(!document.documentMode||9<document.documentMode)}function nh(){Is&&(Is.detachEvent("onpropertychange",rh),Us=Is=null)}function rh(t){if(t.propertyName==="value"&&bo(Us)){var r=[];Wf(r,Us,t,Je(t)),ho(c6,r)}}function u6(t,r,s){t==="focusin"?(nh(),Is=r,Us=s,Is.attachEvent("onpropertychange",rh)):t==="focusout"&&nh()}function x6(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return bo(Us)}function d6(t,r){if(t==="click")return bo(r)}function f6(t,r){if(t==="input"||t==="change")return bo(r)}function h6(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var er=typeof Object.is=="function"?Object.is:h6;function Hs(t,r){if(er(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var s=Object.keys(t),c=Object.keys(r);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var m=s[c];if(!ht.call(r,m)||!er(t[m],r[m]))return!1}return!0}function ah(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ih(t,r){var s=ah(t);t=0;for(var c;s;){if(s.nodeType===3){if(c=t+s.textContent.length,t<=r&&c>=r)return{node:s,offset:r-t};t=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ah(s)}}function sh(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?sh(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function lh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Li(t.document);r instanceof t.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)t=r.contentWindow;else break;r=Li(t.document)}return r}function Bc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var p6=Zr&&"documentMode"in document&&11>=document.documentMode,Hi=null,Dc=null,$s=null,wc=!1;function oh(t,r,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;wc||Hi==null||Hi!==Li(c)||(c=Hi,"selectionStart"in c&&Bc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),$s&&Hs($s,c)||($s=c,c=o0(Dc,"onSelect"),0<c.length&&(r=new Eo("onSelect","select",null,r,s),t.push({event:r,listeners:c}),r.target=Hi)))}function ii(t,r){var s={};return s[t.toLowerCase()]=r.toLowerCase(),s["Webkit"+t]="webkit"+r,s["Moz"+t]="moz"+r,s}var $i={animationend:ii("Animation","AnimationEnd"),animationiteration:ii("Animation","AnimationIteration"),animationstart:ii("Animation","AnimationStart"),transitionrun:ii("Transition","TransitionRun"),transitionstart:ii("Transition","TransitionStart"),transitioncancel:ii("Transition","TransitionCancel"),transitionend:ii("Transition","TransitionEnd")},Fc={},ch={};Zr&&(ch=document.createElement("div").style,"AnimationEvent"in window||(delete $i.animationend.animation,delete $i.animationiteration.animation,delete $i.animationstart.animation),"TransitionEvent"in window||delete $i.transitionend.transition);function si(t){if(Fc[t])return Fc[t];if(!$i[t])return t;var r=$i[t],s;for(s in r)if(r.hasOwnProperty(s)&&s in ch)return Fc[t]=r[s];return t}var uh=si("animationend"),xh=si("animationiteration"),dh=si("animationstart"),m6=si("transitionrun"),g6=si("transitionstart"),E6=si("transitioncancel"),fh=si("transitionend"),hh=new Map,Sc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Sc.push("scrollEnd");function Sr(t,r){hh.set(t,r),Kr(r,[t])}var Co=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fr=[],qi=0,Nc=0;function vo(){for(var t=qi,r=Nc=qi=0;r<t;){var s=fr[r];fr[r++]=null;var c=fr[r];fr[r++]=null;var m=fr[r];fr[r++]=null;var E=fr[r];if(fr[r++]=null,c!==null&&m!==null){var A=c.pending;A===null?m.next=m:(m.next=A.next,A.next=m),c.pending=m}E!==0&&ph(s,m,E)}}function Ao(t,r,s,c){fr[qi++]=t,fr[qi++]=r,fr[qi++]=s,fr[qi++]=c,Nc|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function _c(t,r,s,c){return Ao(t,r,s,c),ko(t)}function li(t,r){return Ao(t,null,null,r),ko(t)}function ph(t,r,s){t.lanes|=s;var c=t.alternate;c!==null&&(c.lanes|=s);for(var m=!1,E=t.return;E!==null;)E.childLanes|=s,c=E.alternate,c!==null&&(c.childLanes|=s),E.tag===22&&(t=E.stateNode,t===null||t._visibility&1||(m=!0)),t=E,E=E.return;return t.tag===3?(E=t.stateNode,m&&r!==null&&(m=31-ie(s),t=E.hiddenUpdates,c=t[m],c===null?t[m]=[r]:c.push(r),r.lane=s|536870912),E):null}function ko(t){if(50<xl)throw xl=0,Iu=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Gi={};function y6(t,r,s,c){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tr(t,r,s,c){return new y6(t,r,s,c)}function Mc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Wr(t,r){var s=t.alternate;return s===null?(s=tr(t.tag,r,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=r,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,r=t.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function mh(t,r){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,r=s.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Bo(t,r,s,c,m,E){var A=0;if(c=t,typeof t=="function")Mc(t)&&(A=1);else if(typeof t=="string")A=ky(t,s,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case I:return t=tr(31,s,r,m),t.elementType=I,t.lanes=E,t;case v:return oi(s.children,m,E,r);case k:A=8,m|=24;break;case B:return t=tr(12,s,r,m|2),t.elementType=B,t.lanes=E,t;case T:return t=tr(13,s,r,m),t.elementType=T,t.lanes=E,t;case F:return t=tr(19,s,r,m),t.elementType=F,t.lanes=E,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case S:A=10;break e;case j:A=9;break e;case _:A=11;break e;case R:A=14;break e;case L:A=16,c=null;break e}A=29,s=Error(i(130,t===null?"null":typeof t,"")),c=null}return r=tr(A,s,r,m),r.elementType=t,r.type=c,r.lanes=E,r}function oi(t,r,s,c){return t=tr(7,t,c,r),t.lanes=s,t}function jc(t,r,s){return t=tr(6,t,null,r),t.lanes=s,t}function gh(t){var r=tr(18,null,null,0);return r.stateNode=t,r}function Tc(t,r,s){return r=tr(4,t.children!==null?t.children:[],t.key,r),r.lanes=s,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Eh=new WeakMap;function hr(t,r){if(typeof t=="object"&&t!==null){var s=Eh.get(t);return s!==void 0?s:(r={value:t,source:r,stack:kt(r)},Eh.set(t,r),r)}return{value:t,source:r,stack:kt(r)}}var Vi=[],Qi=0,Do=null,qs=0,pr=[],mr=0,Da=null,zr=1,Lr="";function Jr(t,r){Vi[Qi++]=qs,Vi[Qi++]=Do,Do=t,qs=r}function yh(t,r,s){pr[mr++]=zr,pr[mr++]=Lr,pr[mr++]=Da,Da=t;var c=zr;t=Lr;var m=32-ie(c)-1;c&=~(1<<m),s+=1;var E=32-ie(r)+m;if(30<E){var A=m-m%5;E=(c&(1<<A)-1).toString(32),c>>=A,m-=A,zr=1<<32-ie(r)+m|s<<m|c,Lr=E+t}else zr=1<<E|s<<m|c,Lr=t}function Rc(t){t.return!==null&&(Jr(t,1),yh(t,1,0))}function Oc(t){for(;t===Do;)Do=Vi[--Qi],Vi[Qi]=null,qs=Vi[--Qi],Vi[Qi]=null;for(;t===Da;)Da=pr[--mr],pr[mr]=null,Lr=pr[--mr],pr[mr]=null,zr=pr[--mr],pr[mr]=null}function bh(t,r){pr[mr++]=zr,pr[mr++]=Lr,pr[mr++]=Da,zr=r.id,Lr=r.overflow,Da=t}var Bn=null,$t=null,mt=!1,wa=null,gr=!1,zc=Error(i(519));function Fa(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gs(hr(r,t)),zc}function Ch(t){var r=t.stateNode,s=t.type,c=t.memoizedProps;switch(r[nn]=t,r[Nn]=c,s){case"dialog":ot("cancel",r),ot("close",r);break;case"iframe":case"object":case"embed":ot("load",r);break;case"video":case"audio":for(s=0;s<fl.length;s++)ot(fl[s],r);break;case"source":ot("error",r);break;case"img":case"image":case"link":ot("error",r),ot("load",r);break;case"details":ot("toggle",r);break;case"input":ot("invalid",r),ri(r,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ot("invalid",r);break;case"textarea":ot("invalid",r),Ii(r,c.value,c.defaultValue,c.children)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||r.textContent===""+s||c.suppressHydrationWarning===!0||Lp(r.textContent,s)?(c.popover!=null&&(ot("beforetoggle",r),ot("toggle",r)),c.onScroll!=null&&ot("scroll",r),c.onScrollEnd!=null&&ot("scrollend",r),c.onClick!=null&&(r.onclick=ve),r=!0):r=!1,r||Fa(t,!0)}function vh(t){for(Bn=t.return;Bn;)switch(Bn.tag){case 5:case 31:case 13:gr=!1;return;case 27:case 3:gr=!0;return;default:Bn=Bn.return}}function Yi(t){if(t!==Bn)return!1;if(!mt)return vh(t),mt=!0,!1;var r=t.tag,s;if((s=r!==3&&r!==27)&&((s=r===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||tx(t.type,t.memoizedProps)),s=!s),s&&$t&&Fa(t),vh(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));$t=Qp(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));$t=Qp(t)}else r===27?(r=$t,Ha(t.type)?(t=sx,sx=null,$t=t):$t=r):$t=Bn?yr(t.stateNode.nextSibling):null;return!0}function ci(){$t=Bn=null,mt=!1}function Lc(){var t=wa;return t!==null&&(Vn===null?Vn=t:Vn.push.apply(Vn,t),wa=null),t}function Gs(t){wa===null?wa=[t]:wa.push(t)}var Pc=z(null),ui=null,ea=null;function Sa(t,r,s){w(Pc,r._currentValue),r._currentValue=s}function ta(t){t._currentValue=Pc.current,X(Pc)}function Ic(t,r,s){for(;t!==null;){var c=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,c!==null&&(c.childLanes|=r)):c!==null&&(c.childLanes&r)!==r&&(c.childLanes|=r),t===s)break;t=t.return}}function Uc(t,r,s,c){var m=t.child;for(m!==null&&(m.return=t);m!==null;){var E=m.dependencies;if(E!==null){var A=m.child;E=E.firstContext;e:for(;E!==null;){var N=E;E=m;for(var H=0;H<r.length;H++)if(N.context===r[H]){E.lanes|=s,N=E.alternate,N!==null&&(N.lanes|=s),Ic(E.return,s,t),c||(A=null);break e}E=N.next}}else if(m.tag===18){if(A=m.return,A===null)throw Error(i(341));A.lanes|=s,E=A.alternate,E!==null&&(E.lanes|=s),Ic(A,s,t),A=null}else A=m.child;if(A!==null)A.return=m;else for(A=m;A!==null;){if(A===t){A=null;break}if(m=A.sibling,m!==null){m.return=A.return,A=m;break}A=A.return}m=A}}function Ki(t,r,s,c){t=null;for(var m=r,E=!1;m!==null;){if(!E){if((m.flags&524288)!==0)E=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var A=m.alternate;if(A===null)throw Error(i(387));if(A=A.memoizedProps,A!==null){var N=m.type;er(m.pendingProps.value,A.value)||(t!==null?t.push(N):t=[N])}}else if(m===De.current){if(A=m.alternate,A===null)throw Error(i(387));A.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(t!==null?t.push(El):t=[El])}m=m.return}t!==null&&Uc(r,t,s,c),r.flags|=262144}function wo(t){for(t=t.firstContext;t!==null;){if(!er(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xi(t){ui=t,ea=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Dn(t){return Ah(ui,t)}function Fo(t,r){return ui===null&&xi(t),Ah(t,r)}function Ah(t,r){var s=r._currentValue;if(r={context:r,memoizedValue:s,next:null},ea===null){if(t===null)throw Error(i(308));ea=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else ea=ea.next=r;return s}var b6=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(s,c){t.push(c)}};this.abort=function(){r.aborted=!0,t.forEach(function(s){return s()})}},C6=e.unstable_scheduleCallback,v6=e.unstable_NormalPriority,xn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new b6,data:new Map,refCount:0}}function Vs(t){t.refCount--,t.refCount===0&&C6(v6,function(){t.controller.abort()})}var Qs=null,$c=0,Xi=0,Zi=null;function A6(t,r){if(Qs===null){var s=Qs=[];$c=0,Xi=Vu(),Zi={status:"pending",value:void 0,then:function(c){s.push(c)}}}return $c++,r.then(kh,kh),r}function kh(){if(--$c===0&&Qs!==null){Zi!==null&&(Zi.status="fulfilled");var t=Qs;Qs=null,Xi=0,Zi=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function k6(t,r){var s=[],c={status:"pending",value:null,reason:null,then:function(m){s.push(m)}};return t.then(function(){c.status="fulfilled",c.value=r;for(var m=0;m<s.length;m++)(0,s[m])(r)},function(m){for(c.status="rejected",c.reason=m,m=0;m<s.length;m++)(0,s[m])(void 0)}),c}var Bh=P.S;P.S=function(t,r){op=We(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&A6(t,r),Bh!==null&&Bh(t,r)};var di=z(null);function qc(){var t=di.current;return t!==null?t:Rt.pooledCache}function So(t,r){r===null?w(di,di.current):w(di,r.pool)}function Dh(){var t=qc();return t===null?null:{parent:xn._currentValue,pool:t}}var Wi=Error(i(460)),Gc=Error(i(474)),No=Error(i(542)),_o={then:function(){}};function wh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fh(t,r,s){switch(s=t[s],s===void 0?t.push(r):s!==r&&(r.then(ve,ve),r=s),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Nh(t),t;default:if(typeof r.status=="string")r.then(ve,ve);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(c){if(r.status==="pending"){var m=r;m.status="fulfilled",m.value=c}},function(c){if(r.status==="pending"){var m=r;m.status="rejected",m.reason=c}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Nh(t),t}throw hi=r,Wi}}function fi(t){try{var r=t._init;return r(t._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(hi=s,Wi):s}}var hi=null;function Sh(){if(hi===null)throw Error(i(459));var t=hi;return hi=null,t}function Nh(t){if(t===Wi||t===No)throw Error(i(483))}var Ji=null,Ys=0;function Mo(t){var r=Ys;return Ys+=1,Ji===null&&(Ji=[]),Fh(Ji,t,r)}function Ks(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function jo(t,r){throw r.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function _h(t){function r(K,G){if(t){var J=K.deletions;J===null?(K.deletions=[G],K.flags|=16):J.push(G)}}function s(K,G){if(!t)return null;for(;G!==null;)r(K,G),G=G.sibling;return null}function c(K){for(var G=new Map;K!==null;)K.key!==null?G.set(K.key,K):G.set(K.index,K),K=K.sibling;return G}function m(K,G){return K=Wr(K,G),K.index=0,K.sibling=null,K}function E(K,G,J){return K.index=J,t?(J=K.alternate,J!==null?(J=J.index,J<G?(K.flags|=67108866,G):J):(K.flags|=67108866,G)):(K.flags|=1048576,G)}function A(K){return t&&K.alternate===null&&(K.flags|=67108866),K}function N(K,G,J,xe){return G===null||G.tag!==6?(G=jc(J,K.mode,xe),G.return=K,G):(G=m(G,J),G.return=K,G)}function H(K,G,J,xe){var Pe=J.type;return Pe===v?ce(K,G,J.props.children,xe,J.key):G!==null&&(G.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===L&&fi(Pe)===G.type)?(G=m(G,J.props),Ks(G,J),G.return=K,G):(G=Bo(J.type,J.key,J.props,null,K.mode,xe),Ks(G,J),G.return=K,G)}function ee(K,G,J,xe){return G===null||G.tag!==4||G.stateNode.containerInfo!==J.containerInfo||G.stateNode.implementation!==J.implementation?(G=Tc(J,K.mode,xe),G.return=K,G):(G=m(G,J.children||[]),G.return=K,G)}function ce(K,G,J,xe,Pe){return G===null||G.tag!==7?(G=oi(J,K.mode,xe,Pe),G.return=K,G):(G=m(G,J),G.return=K,G)}function fe(K,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=jc(""+G,K.mode,J),G.return=K,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case b:return J=Bo(G.type,G.key,G.props,null,K.mode,J),Ks(J,G),J.return=K,J;case C:return G=Tc(G,K.mode,J),G.return=K,G;case L:return G=fi(G),fe(K,G,J)}if(Y(G)||V(G))return G=oi(G,K.mode,J,null),G.return=K,G;if(typeof G.then=="function")return fe(K,Mo(G),J);if(G.$$typeof===S)return fe(K,Fo(K,G),J);jo(K,G)}return null}function ne(K,G,J,xe){var Pe=G!==null?G.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Pe!==null?null:N(K,G,""+J,xe);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return J.key===Pe?H(K,G,J,xe):null;case C:return J.key===Pe?ee(K,G,J,xe):null;case L:return J=fi(J),ne(K,G,J,xe)}if(Y(J)||V(J))return Pe!==null?null:ce(K,G,J,xe,null);if(typeof J.then=="function")return ne(K,G,Mo(J),xe);if(J.$$typeof===S)return ne(K,G,Fo(K,J),xe);jo(K,J)}return null}function se(K,G,J,xe,Pe){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return K=K.get(J)||null,N(G,K,""+xe,Pe);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case b:return K=K.get(xe.key===null?J:xe.key)||null,H(G,K,xe,Pe);case C:return K=K.get(xe.key===null?J:xe.key)||null,ee(G,K,xe,Pe);case L:return xe=fi(xe),se(K,G,J,xe,Pe)}if(Y(xe)||V(xe))return K=K.get(J)||null,ce(G,K,xe,Pe,null);if(typeof xe.then=="function")return se(K,G,J,Mo(xe),Pe);if(xe.$$typeof===S)return se(K,G,J,Fo(G,xe),Pe);jo(G,xe)}return null}function Me(K,G,J,xe){for(var Pe=null,yt=null,ze=G,tt=G=0,ft=null;ze!==null&&tt<J.length;tt++){ze.index>tt?(ft=ze,ze=null):ft=ze.sibling;var bt=ne(K,ze,J[tt],xe);if(bt===null){ze===null&&(ze=ft);break}t&&ze&&bt.alternate===null&&r(K,ze),G=E(bt,G,tt),yt===null?Pe=bt:yt.sibling=bt,yt=bt,ze=ft}if(tt===J.length)return s(K,ze),mt&&Jr(K,tt),Pe;if(ze===null){for(;tt<J.length;tt++)ze=fe(K,J[tt],xe),ze!==null&&(G=E(ze,G,tt),yt===null?Pe=ze:yt.sibling=ze,yt=ze);return mt&&Jr(K,tt),Pe}for(ze=c(ze);tt<J.length;tt++)ft=se(ze,K,tt,J[tt],xe),ft!==null&&(t&&ft.alternate!==null&&ze.delete(ft.key===null?tt:ft.key),G=E(ft,G,tt),yt===null?Pe=ft:yt.sibling=ft,yt=ft);return t&&ze.forEach(function(Qa){return r(K,Qa)}),mt&&Jr(K,tt),Pe}function He(K,G,J,xe){if(J==null)throw Error(i(151));for(var Pe=null,yt=null,ze=G,tt=G=0,ft=null,bt=J.next();ze!==null&&!bt.done;tt++,bt=J.next()){ze.index>tt?(ft=ze,ze=null):ft=ze.sibling;var Qa=ne(K,ze,bt.value,xe);if(Qa===null){ze===null&&(ze=ft);break}t&&ze&&Qa.alternate===null&&r(K,ze),G=E(Qa,G,tt),yt===null?Pe=Qa:yt.sibling=Qa,yt=Qa,ze=ft}if(bt.done)return s(K,ze),mt&&Jr(K,tt),Pe;if(ze===null){for(;!bt.done;tt++,bt=J.next())bt=fe(K,bt.value,xe),bt!==null&&(G=E(bt,G,tt),yt===null?Pe=bt:yt.sibling=bt,yt=bt);return mt&&Jr(K,tt),Pe}for(ze=c(ze);!bt.done;tt++,bt=J.next())bt=se(ze,K,tt,bt.value,xe),bt!==null&&(t&&bt.alternate!==null&&ze.delete(bt.key===null?tt:bt.key),G=E(bt,G,tt),yt===null?Pe=bt:yt.sibling=bt,yt=bt);return t&&ze.forEach(function(Ry){return r(K,Ry)}),mt&&Jr(K,tt),Pe}function Mt(K,G,J,xe){if(typeof J=="object"&&J!==null&&J.type===v&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case b:e:{for(var Pe=J.key;G!==null;){if(G.key===Pe){if(Pe=J.type,Pe===v){if(G.tag===7){s(K,G.sibling),xe=m(G,J.props.children),xe.return=K,K=xe;break e}}else if(G.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===L&&fi(Pe)===G.type){s(K,G.sibling),xe=m(G,J.props),Ks(xe,J),xe.return=K,K=xe;break e}s(K,G);break}else r(K,G);G=G.sibling}J.type===v?(xe=oi(J.props.children,K.mode,xe,J.key),xe.return=K,K=xe):(xe=Bo(J.type,J.key,J.props,null,K.mode,xe),Ks(xe,J),xe.return=K,K=xe)}return A(K);case C:e:{for(Pe=J.key;G!==null;){if(G.key===Pe)if(G.tag===4&&G.stateNode.containerInfo===J.containerInfo&&G.stateNode.implementation===J.implementation){s(K,G.sibling),xe=m(G,J.children||[]),xe.return=K,K=xe;break e}else{s(K,G);break}else r(K,G);G=G.sibling}xe=Tc(J,K.mode,xe),xe.return=K,K=xe}return A(K);case L:return J=fi(J),Mt(K,G,J,xe)}if(Y(J))return Me(K,G,J,xe);if(V(J)){if(Pe=V(J),typeof Pe!="function")throw Error(i(150));return J=Pe.call(J),He(K,G,J,xe)}if(typeof J.then=="function")return Mt(K,G,Mo(J),xe);if(J.$$typeof===S)return Mt(K,G,Fo(K,J),xe);jo(K,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,G!==null&&G.tag===6?(s(K,G.sibling),xe=m(G,J),xe.return=K,K=xe):(s(K,G),xe=jc(J,K.mode,xe),xe.return=K,K=xe),A(K)):s(K,G)}return function(K,G,J,xe){try{Ys=0;var Pe=Mt(K,G,J,xe);return Ji=null,Pe}catch(ze){if(ze===Wi||ze===No)throw ze;var yt=tr(29,ze,null,K.mode);return yt.lanes=xe,yt.return=K,yt}}}var pi=_h(!0),Mh=_h(!1),Na=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _a(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(t,r,s){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(At&2)!==0){var m=c.pending;return m===null?r.next=r:(r.next=m.next,m.next=r),c.pending=r,r=ko(t),ph(t,null,s),r}return Ao(t,c,r,s),ko(t)}function Xs(t,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194048)!==0)){var c=r.lanes;c&=t.pendingLanes,s|=c,r.lanes=s,qe(t,s)}}function Yc(t,r){var s=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var m=null,E=null;if(s=s.firstBaseUpdate,s!==null){do{var A={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};E===null?m=E=A:E=E.next=A,s=s.next}while(s!==null);E===null?m=E=r:E=E.next=r}else m=E=r;s={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:E,shared:c.shared,callbacks:c.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=r:t.next=r,s.lastBaseUpdate=r}var Kc=!1;function Zs(){if(Kc){var t=Zi;if(t!==null)throw t}}function Ws(t,r,s,c){Kc=!1;var m=t.updateQueue;Na=!1;var E=m.firstBaseUpdate,A=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var H=N,ee=H.next;H.next=null,A===null?E=ee:A.next=ee,A=H;var ce=t.alternate;ce!==null&&(ce=ce.updateQueue,N=ce.lastBaseUpdate,N!==A&&(N===null?ce.firstBaseUpdate=ee:N.next=ee,ce.lastBaseUpdate=H))}if(E!==null){var fe=m.baseState;A=0,ce=ee=H=null,N=E;do{var ne=N.lane&-536870913,se=ne!==N.lane;if(se?(dt&ne)===ne:(c&ne)===ne){ne!==0&&ne===Xi&&(Kc=!0),ce!==null&&(ce=ce.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Me=t,He=N;ne=r;var Mt=s;switch(He.tag){case 1:if(Me=He.payload,typeof Me=="function"){fe=Me.call(Mt,fe,ne);break e}fe=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=He.payload,ne=typeof Me=="function"?Me.call(Mt,fe,ne):Me,ne==null)break e;fe=p({},fe,ne);break e;case 2:Na=!0}}ne=N.callback,ne!==null&&(t.flags|=64,se&&(t.flags|=8192),se=m.callbacks,se===null?m.callbacks=[ne]:se.push(ne))}else se={lane:ne,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ce===null?(ee=ce=se,H=fe):ce=ce.next=se,A|=ne;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;se=N,N=se.next,se.next=null,m.lastBaseUpdate=se,m.shared.pending=null}}while(!0);ce===null&&(H=fe),m.baseState=H,m.firstBaseUpdate=ee,m.lastBaseUpdate=ce,E===null&&(m.shared.lanes=0),za|=A,t.lanes=A,t.memoizedState=fe}}function jh(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function Th(t,r){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)jh(s[t],r)}var es=z(null),To=z(0);function Rh(t,r){t=ua,w(To,t),w(es,r),ua=t|r.baseLanes}function Xc(){w(To,ua),w(es,es.current)}function Zc(){ua=To.current,X(es),X(To)}var nr=z(null),Er=null;function ja(t){var r=t.alternate;w(an,an.current&1),w(nr,t),Er===null&&(r===null||es.current!==null||r.memoizedState!==null)&&(Er=t)}function Wc(t){w(an,an.current),w(nr,t),Er===null&&(Er=t)}function Oh(t){t.tag===22?(w(an,an.current),w(nr,t),Er===null&&(Er=t)):Ta()}function Ta(){w(an,an.current),w(nr,nr.current)}function rr(t){X(nr),Er===t&&(Er=null),X(an)}var an=z(0);function Ro(t){for(var r=t;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ax(s)||ix(s)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var na=0,et=null,Nt=null,dn=null,Oo=!1,ts=!1,mi=!1,zo=0,Js=0,ns=null,B6=0;function Jt(){throw Error(i(321))}function Jc(t,r){if(r===null)return!1;for(var s=0;s<r.length&&s<t.length;s++)if(!er(t[s],r[s]))return!1;return!0}function eu(t,r,s,c,m,E){return na=E,et=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,P.H=t===null||t.memoizedState===null?y1:pu,mi=!1,E=s(c,m),mi=!1,ts&&(E=Lh(r,s,c,m)),zh(t),E}function zh(t){P.H=nl;var r=Nt!==null&&Nt.next!==null;if(na=0,dn=Nt=et=null,Oo=!1,Js=0,ns=null,r)throw Error(i(300));t===null||fn||(t=t.dependencies,t!==null&&wo(t)&&(fn=!0))}function Lh(t,r,s,c){et=t;var m=0;do{if(ts&&(ns=null),Js=0,ts=!1,25<=m)throw Error(i(301));if(m+=1,dn=Nt=null,t.updateQueue!=null){var E=t.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}P.H=b1,E=r(s,c)}while(ts);return E}function D6(){var t=P.H,r=t.useState()[0];return r=typeof r.then=="function"?el(r):r,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(et.flags|=1024),r}function tu(){var t=zo!==0;return zo=0,t}function nu(t,r,s){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~s}function ru(t){if(Oo){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Oo=!1}na=0,dn=Nt=et=null,ts=!1,Js=zo=0,ns=null}function Ln(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dn===null?et.memoizedState=dn=t:dn=dn.next=t,dn}function sn(){if(Nt===null){var t=et.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var r=dn===null?et.memoizedState:dn.next;if(r!==null)dn=r,Nt=t;else{if(t===null)throw et.alternate===null?Error(i(467)):Error(i(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},dn===null?et.memoizedState=dn=t:dn=dn.next=t}return dn}function Lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function el(t){var r=Js;return Js+=1,ns===null&&(ns=[]),t=Fh(ns,t,r),r=et,(dn===null?r.memoizedState:dn.next)===null&&(r=r.alternate,P.H=r===null||r.memoizedState===null?y1:pu),t}function Po(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return el(t);if(t.$$typeof===S)return Dn(t)}throw Error(i(438,String(t)))}function au(t){var r=null,s=et.updateQueue;if(s!==null&&(r=s.memoCache),r==null){var c=et.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(r={data:c.data.map(function(m){return m.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),s===null&&(s=Lo(),et.updateQueue=s),s.memoCache=r,s=r.data[r.index],s===void 0)for(s=r.data[r.index]=Array(t),c=0;c<t;c++)s[c]=O;return r.index++,s}function ra(t,r){return typeof r=="function"?r(t):r}function Io(t){var r=sn();return iu(r,Nt,t)}function iu(t,r,s){var c=t.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var m=t.baseQueue,E=c.pending;if(E!==null){if(m!==null){var A=m.next;m.next=E.next,E.next=A}r.baseQueue=m=E,c.pending=null}if(E=t.baseState,m===null)t.memoizedState=E;else{r=m.next;var N=A=null,H=null,ee=r,ce=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(dt&fe)===fe:(na&fe)===fe){var ne=ee.revertLane;if(ne===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===Xi&&(ce=!0);else if((na&ne)===ne){ee=ee.next,ne===Xi&&(ce=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(N=H=fe,A=E):H=H.next=fe,et.lanes|=ne,za|=ne;fe=ee.action,mi&&s(E,fe),E=ee.hasEagerState?ee.eagerState:s(E,fe)}else ne={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(N=H=ne,A=E):H=H.next=ne,et.lanes|=fe,za|=fe;ee=ee.next}while(ee!==null&&ee!==r);if(H===null?A=E:H.next=N,!er(E,t.memoizedState)&&(fn=!0,ce&&(s=Zi,s!==null)))throw s;t.memoizedState=E,t.baseState=A,t.baseQueue=H,c.lastRenderedState=E}return m===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function su(t){var r=sn(),s=r.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=t;var c=s.dispatch,m=s.pending,E=r.memoizedState;if(m!==null){s.pending=null;var A=m=m.next;do E=t(E,A.action),A=A.next;while(A!==m);er(E,r.memoizedState)||(fn=!0),r.memoizedState=E,r.baseQueue===null&&(r.baseState=E),s.lastRenderedState=E}return[E,c]}function Ph(t,r,s){var c=et,m=sn(),E=mt;if(E){if(s===void 0)throw Error(i(407));s=s()}else s=r();var A=!er((Nt||m).memoizedState,s);if(A&&(m.memoizedState=s,fn=!0),m=m.queue,cu(Hh.bind(null,c,m,t),[t]),m.getSnapshot!==r||A||dn!==null&&dn.memoizedState.tag&1){if(c.flags|=2048,rs(9,{destroy:void 0},Uh.bind(null,c,m,s,r),null),Rt===null)throw Error(i(349));E||(na&127)!==0||Ih(c,r,s)}return s}function Ih(t,r,s){t.flags|=16384,t={getSnapshot:r,value:s},r=et.updateQueue,r===null?(r=Lo(),et.updateQueue=r,r.stores=[t]):(s=r.stores,s===null?r.stores=[t]:s.push(t))}function Uh(t,r,s,c){r.value=s,r.getSnapshot=c,$h(r)&&qh(t)}function Hh(t,r,s){return s(function(){$h(r)&&qh(t)})}function $h(t){var r=t.getSnapshot;t=t.value;try{var s=r();return!er(t,s)}catch{return!0}}function qh(t){var r=li(t,2);r!==null&&Qn(r,t,2)}function lu(t){var r=Ln();if(typeof t=="function"){var s=t;if(t=s(),mi){Ut(!0);try{s()}finally{Ut(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:t},r}function Gh(t,r,s,c){return t.baseState=s,iu(t,Nt,typeof c=="function"?c:ra)}function w6(t,r,s,c,m){if($o(t))throw Error(i(485));if(t=r.action,t!==null){var E={payload:m,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){E.listeners.push(A)}};P.T!==null?s(!0):E.isTransition=!1,c(E),s=r.pending,s===null?(E.next=r.pending=E,Vh(r,E)):(E.next=s.next,r.pending=s.next=E)}}function Vh(t,r){var s=r.action,c=r.payload,m=t.state;if(r.isTransition){var E=P.T,A={};P.T=A;try{var N=s(m,c),H=P.S;H!==null&&H(A,N),Qh(t,r,N)}catch(ee){ou(t,r,ee)}finally{E!==null&&A.types!==null&&(E.types=A.types),P.T=E}}else try{E=s(m,c),Qh(t,r,E)}catch(ee){ou(t,r,ee)}}function Qh(t,r,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){Yh(t,r,c)},function(c){return ou(t,r,c)}):Yh(t,r,s)}function Yh(t,r,s){r.status="fulfilled",r.value=s,Kh(r),t.state=s,r=t.pending,r!==null&&(s=r.next,s===r?t.pending=null:(s=s.next,r.next=s,Vh(t,s)))}function ou(t,r,s){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do r.status="rejected",r.reason=s,Kh(r),r=r.next;while(r!==c)}t.action=null}function Kh(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Xh(t,r){return r}function Zh(t,r){if(mt){var s=Rt.formState;if(s!==null){e:{var c=et;if(mt){if($t){t:{for(var m=$t,E=gr;m.nodeType!==8;){if(!E){m=null;break t}if(m=yr(m.nextSibling),m===null){m=null;break t}}E=m.data,m=E==="F!"||E==="F"?m:null}if(m){$t=yr(m.nextSibling),c=m.data==="F!";break e}}Fa(c)}c=!1}c&&(r=s[0])}}return s=Ln(),s.memoizedState=s.baseState=r,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xh,lastRenderedState:r},s.queue=c,s=m1.bind(null,et,c),c.dispatch=s,c=lu(!1),E=hu.bind(null,et,!1,c.queue),c=Ln(),m={state:r,dispatch:null,action:t,pending:null},c.queue=m,s=w6.bind(null,et,m,E,s),m.dispatch=s,c.memoizedState=t,[r,s,!1]}function Wh(t){var r=sn();return Jh(r,Nt,t)}function Jh(t,r,s){if(r=iu(t,r,Xh)[0],t=Io(ra)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var c=el(r)}catch(A){throw A===Wi?No:A}else c=r;r=sn();var m=r.queue,E=m.dispatch;return s!==r.memoizedState&&(et.flags|=2048,rs(9,{destroy:void 0},F6.bind(null,m,s),null)),[c,E,t]}function F6(t,r){t.action=r}function e1(t){var r=sn(),s=Nt;if(s!==null)return Jh(r,s,t);sn(),r=r.memoizedState,s=sn();var c=s.queue.dispatch;return s.memoizedState=t,[r,c,!1]}function rs(t,r,s,c){return t={tag:t,create:s,deps:c,inst:r,next:null},r=et.updateQueue,r===null&&(r=Lo(),et.updateQueue=r),s=r.lastEffect,s===null?r.lastEffect=t.next=t:(c=s.next,s.next=t,t.next=c,r.lastEffect=t),t}function t1(){return sn().memoizedState}function Uo(t,r,s,c){var m=Ln();et.flags|=t,m.memoizedState=rs(1|r,{destroy:void 0},s,c===void 0?null:c)}function Ho(t,r,s,c){var m=sn();c=c===void 0?null:c;var E=m.memoizedState.inst;Nt!==null&&c!==null&&Jc(c,Nt.memoizedState.deps)?m.memoizedState=rs(r,E,s,c):(et.flags|=t,m.memoizedState=rs(1|r,E,s,c))}function n1(t,r){Uo(8390656,8,t,r)}function cu(t,r){Ho(2048,8,t,r)}function S6(t){et.flags|=4;var r=et.updateQueue;if(r===null)r=Lo(),et.updateQueue=r,r.events=[t];else{var s=r.events;s===null?r.events=[t]:s.push(t)}}function r1(t){var r=sn().memoizedState;return S6({ref:r,nextImpl:t}),function(){if((At&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function a1(t,r){return Ho(4,2,t,r)}function i1(t,r){return Ho(4,4,t,r)}function s1(t,r){if(typeof r=="function"){t=t();var s=r(t);return function(){typeof s=="function"?s():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function l1(t,r,s){s=s!=null?s.concat([t]):null,Ho(4,4,s1.bind(null,r,t),s)}function uu(){}function o1(t,r){var s=sn();r=r===void 0?null:r;var c=s.memoizedState;return r!==null&&Jc(r,c[1])?c[0]:(s.memoizedState=[t,r],t)}function c1(t,r){var s=sn();r=r===void 0?null:r;var c=s.memoizedState;if(r!==null&&Jc(r,c[1]))return c[0];if(c=t(),mi){Ut(!0);try{t()}finally{Ut(!1)}}return s.memoizedState=[c,r],c}function xu(t,r,s){return s===void 0||(na&1073741824)!==0&&(dt&261930)===0?t.memoizedState=r:(t.memoizedState=s,t=up(),et.lanes|=t,za|=t,s)}function u1(t,r,s,c){return er(s,r)?s:es.current!==null?(t=xu(t,s,c),er(t,r)||(fn=!0),t):(na&42)===0||(na&1073741824)!==0&&(dt&261930)===0?(fn=!0,t.memoizedState=s):(t=up(),et.lanes|=t,za|=t,r)}function x1(t,r,s,c,m){var E=Q.p;Q.p=E!==0&&8>E?E:8;var A=P.T,N={};P.T=N,hu(t,!1,r,s);try{var H=m(),ee=P.S;if(ee!==null&&ee(N,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var ce=k6(H,c);tl(t,r,ce,sr(t))}else tl(t,r,c,sr(t))}catch(fe){tl(t,r,{then:function(){},status:"rejected",reason:fe},sr())}finally{Q.p=E,A!==null&&N.types!==null&&(A.types=N.types),P.T=A}}function N6(){}function du(t,r,s,c){if(t.tag!==5)throw Error(i(476));var m=d1(t).queue;x1(t,m,r,Z,s===null?N6:function(){return f1(t),s(c)})}function d1(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:Z},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:s},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function f1(t){var r=d1(t);r.next===null&&(r=t.alternate.memoizedState),tl(t,r.next.queue,{},sr())}function fu(){return Dn(El)}function h1(){return sn().memoizedState}function p1(){return sn().memoizedState}function _6(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var s=sr();t=_a(s);var c=Ma(r,t,s);c!==null&&(Qn(c,r,s),Xs(c,r,s)),r={cache:Hc()},t.payload=r;return}r=r.return}}function M6(t,r,s){var c=sr();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},$o(t)?g1(r,s):(s=_c(t,r,s,c),s!==null&&(Qn(s,t,c),E1(s,r,c)))}function m1(t,r,s){var c=sr();tl(t,r,s,c)}function tl(t,r,s,c){var m={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if($o(t))g1(r,m);else{var E=t.alternate;if(t.lanes===0&&(E===null||E.lanes===0)&&(E=r.lastRenderedReducer,E!==null))try{var A=r.lastRenderedState,N=E(A,s);if(m.hasEagerState=!0,m.eagerState=N,er(N,A))return Ao(t,r,m,0),Rt===null&&vo(),!1}catch{}if(s=_c(t,r,m,c),s!==null)return Qn(s,t,c),E1(s,r,c),!0}return!1}function hu(t,r,s,c){if(c={lane:2,revertLane:Vu(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},$o(t)){if(r)throw Error(i(479))}else r=_c(t,s,c,2),r!==null&&Qn(r,t,2)}function $o(t){var r=t.alternate;return t===et||r!==null&&r===et}function g1(t,r){ts=Oo=!0;var s=t.pending;s===null?r.next=r:(r.next=s.next,s.next=r),t.pending=r}function E1(t,r,s){if((s&4194048)!==0){var c=r.lanes;c&=t.pendingLanes,s|=c,r.lanes=s,qe(t,s)}}var nl={readContext:Dn,use:Po,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};nl.useEffectEvent=Jt;var y1={readContext:Dn,use:Po,useCallback:function(t,r){return Ln().memoizedState=[t,r===void 0?null:r],t},useContext:Dn,useEffect:n1,useImperativeHandle:function(t,r,s){s=s!=null?s.concat([t]):null,Uo(4194308,4,s1.bind(null,r,t),s)},useLayoutEffect:function(t,r){return Uo(4194308,4,t,r)},useInsertionEffect:function(t,r){Uo(4,2,t,r)},useMemo:function(t,r){var s=Ln();r=r===void 0?null:r;var c=t();if(mi){Ut(!0);try{t()}finally{Ut(!1)}}return s.memoizedState=[c,r],c},useReducer:function(t,r,s){var c=Ln();if(s!==void 0){var m=s(r);if(mi){Ut(!0);try{s(r)}finally{Ut(!1)}}}else m=r;return c.memoizedState=c.baseState=m,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:m},c.queue=t,t=t.dispatch=M6.bind(null,et,t),[c.memoizedState,t]},useRef:function(t){var r=Ln();return t={current:t},r.memoizedState=t},useState:function(t){t=lu(t);var r=t.queue,s=m1.bind(null,et,r);return r.dispatch=s,[t.memoizedState,s]},useDebugValue:uu,useDeferredValue:function(t,r){var s=Ln();return xu(s,t,r)},useTransition:function(){var t=lu(!1);return t=x1.bind(null,et,t.queue,!0,!1),Ln().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,s){var c=et,m=Ln();if(mt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=r(),Rt===null)throw Error(i(349));(dt&127)!==0||Ih(c,r,s)}m.memoizedState=s;var E={value:s,getSnapshot:r};return m.queue=E,n1(Hh.bind(null,c,E,t),[t]),c.flags|=2048,rs(9,{destroy:void 0},Uh.bind(null,c,E,s,r),null),s},useId:function(){var t=Ln(),r=Rt.identifierPrefix;if(mt){var s=Lr,c=zr;s=(c&~(1<<32-ie(c)-1)).toString(32)+s,r="_"+r+"R_"+s,s=zo++,0<s&&(r+="H"+s.toString(32)),r+="_"}else s=B6++,r="_"+r+"r_"+s.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:fu,useFormState:Zh,useActionState:Zh,useOptimistic:function(t){var r=Ln();r.memoizedState=r.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=s,r=hu.bind(null,et,!0,s),s.dispatch=r,[t,r]},useMemoCache:au,useCacheRefresh:function(){return Ln().memoizedState=_6.bind(null,et)},useEffectEvent:function(t){var r=Ln(),s={impl:t};return r.memoizedState=s,function(){if((At&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},pu={readContext:Dn,use:Po,useCallback:o1,useContext:Dn,useEffect:cu,useImperativeHandle:l1,useInsertionEffect:a1,useLayoutEffect:i1,useMemo:c1,useReducer:Io,useRef:t1,useState:function(){return Io(ra)},useDebugValue:uu,useDeferredValue:function(t,r){var s=sn();return u1(s,Nt.memoizedState,t,r)},useTransition:function(){var t=Io(ra)[0],r=sn().memoizedState;return[typeof t=="boolean"?t:el(t),r]},useSyncExternalStore:Ph,useId:h1,useHostTransitionStatus:fu,useFormState:Wh,useActionState:Wh,useOptimistic:function(t,r){var s=sn();return Gh(s,Nt,t,r)},useMemoCache:au,useCacheRefresh:p1};pu.useEffectEvent=r1;var b1={readContext:Dn,use:Po,useCallback:o1,useContext:Dn,useEffect:cu,useImperativeHandle:l1,useInsertionEffect:a1,useLayoutEffect:i1,useMemo:c1,useReducer:su,useRef:t1,useState:function(){return su(ra)},useDebugValue:uu,useDeferredValue:function(t,r){var s=sn();return Nt===null?xu(s,t,r):u1(s,Nt.memoizedState,t,r)},useTransition:function(){var t=su(ra)[0],r=sn().memoizedState;return[typeof t=="boolean"?t:el(t),r]},useSyncExternalStore:Ph,useId:h1,useHostTransitionStatus:fu,useFormState:e1,useActionState:e1,useOptimistic:function(t,r){var s=sn();return Nt!==null?Gh(s,Nt,t,r):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:au,useCacheRefresh:p1};b1.useEffectEvent=r1;function mu(t,r,s,c){r=t.memoizedState,s=s(c,r),s=s==null?r:p({},r,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var gu={enqueueSetState:function(t,r,s){t=t._reactInternals;var c=sr(),m=_a(c);m.payload=r,s!=null&&(m.callback=s),r=Ma(t,m,c),r!==null&&(Qn(r,t,c),Xs(r,t,c))},enqueueReplaceState:function(t,r,s){t=t._reactInternals;var c=sr(),m=_a(c);m.tag=1,m.payload=r,s!=null&&(m.callback=s),r=Ma(t,m,c),r!==null&&(Qn(r,t,c),Xs(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var s=sr(),c=_a(s);c.tag=2,r!=null&&(c.callback=r),r=Ma(t,c,s),r!==null&&(Qn(r,t,s),Xs(r,t,s))}};function C1(t,r,s,c,m,E,A){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,E,A):r.prototype&&r.prototype.isPureReactComponent?!Hs(s,c)||!Hs(m,E):!0}function v1(t,r,s,c){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,c),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,c),r.state!==t&&gu.enqueueReplaceState(r,r.state,null)}function gi(t,r){var s=r;if("ref"in r){s={};for(var c in r)c!=="ref"&&(s[c]=r[c])}if(t=t.defaultProps){s===r&&(s=p({},s));for(var m in t)s[m]===void 0&&(s[m]=t[m])}return s}function A1(t){Co(t)}function k1(t){console.error(t)}function B1(t){Co(t)}function qo(t,r){try{var s=t.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(c){setTimeout(function(){throw c})}}function D1(t,r,s){try{var c=t.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Eu(t,r,s){return s=_a(s),s.tag=3,s.payload={element:null},s.callback=function(){qo(t,r)},s}function w1(t){return t=_a(t),t.tag=3,t}function F1(t,r,s,c){var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var E=c.value;t.payload=function(){return m(E)},t.callback=function(){D1(r,s,c)}}var A=s.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(t.callback=function(){D1(r,s,c),typeof m!="function"&&(La===null?La=new Set([this]):La.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})})}function j6(t,r,s,c,m){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(r=s.alternate,r!==null&&Ki(r,s,m,!0),s=nr.current,s!==null){switch(s.tag){case 31:case 13:return Er===null?n0():s.alternate===null&&en===0&&(en=3),s.flags&=-257,s.flags|=65536,s.lanes=m,c===_o?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([c]):r.add(c),$u(t,c,m)),!1;case 22:return s.flags|=65536,c===_o?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([c]):s.add(c)),$u(t,c,m)),!1}throw Error(i(435,s.tag))}return $u(t,c,m),n0(),!1}if(mt)return r=nr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=m,c!==zc&&(t=Error(i(422),{cause:c}),Gs(hr(t,s)))):(c!==zc&&(r=Error(i(423),{cause:c}),Gs(hr(r,s))),t=t.current.alternate,t.flags|=65536,m&=-m,t.lanes|=m,c=hr(c,s),m=Eu(t.stateNode,c,m),Yc(t,m),en!==4&&(en=2)),!1;var E=Error(i(520),{cause:c});if(E=hr(E,s),ul===null?ul=[E]:ul.push(E),en!==4&&(en=2),r===null)return!0;c=hr(c,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,t=m&-m,s.lanes|=t,t=Eu(s.stateNode,c,t),Yc(s,t),!1;case 1:if(r=s.type,E=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(La===null||!La.has(E))))return s.flags|=65536,m&=-m,s.lanes|=m,m=w1(m),F1(m,t,s,c),Yc(s,m),!1}s=s.return}while(s!==null);return!1}var yu=Error(i(461)),fn=!1;function wn(t,r,s,c){r.child=t===null?Mh(r,null,s,c):pi(r,t.child,s,c)}function S1(t,r,s,c,m){s=s.render;var E=r.ref;if("ref"in c){var A={};for(var N in c)N!=="ref"&&(A[N]=c[N])}else A=c;return xi(r),c=eu(t,r,s,A,E,m),N=tu(),t!==null&&!fn?(nu(t,r,m),aa(t,r,m)):(mt&&N&&Rc(r),r.flags|=1,wn(t,r,c,m),r.child)}function N1(t,r,s,c,m){if(t===null){var E=s.type;return typeof E=="function"&&!Mc(E)&&E.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=E,_1(t,r,E,c,m)):(t=Bo(s.type,null,c,r,r.mode,m),t.ref=r.ref,t.return=r,r.child=t)}if(E=t.child,!wu(t,m)){var A=E.memoizedProps;if(s=s.compare,s=s!==null?s:Hs,s(A,c)&&t.ref===r.ref)return aa(t,r,m)}return r.flags|=1,t=Wr(E,c),t.ref=r.ref,t.return=r,r.child=t}function _1(t,r,s,c,m){if(t!==null){var E=t.memoizedProps;if(Hs(E,c)&&t.ref===r.ref)if(fn=!1,r.pendingProps=c=E,wu(t,m))(t.flags&131072)!==0&&(fn=!0);else return r.lanes=t.lanes,aa(t,r,m)}return bu(t,r,s,c,m)}function M1(t,r,s,c){var m=c.children,E=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((r.flags&128)!==0){if(E=E!==null?E.baseLanes|s:s,t!==null){for(c=r.child=t.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~E}else c=0,r.child=null;return j1(t,r,E,s,c)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&So(r,E!==null?E.cachePool:null),E!==null?Rh(r,E):Xc(),Oh(r);else return c=r.lanes=536870912,j1(t,r,E!==null?E.baseLanes|s:s,s,c)}else E!==null?(So(r,E.cachePool),Rh(r,E),Ta(),r.memoizedState=null):(t!==null&&So(r,null),Xc(),Ta());return wn(t,r,m,s),r.child}function rl(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function j1(t,r,s,c,m){var E=qc();return E=E===null?null:{parent:xn._currentValue,pool:E},r.memoizedState={baseLanes:s,cachePool:E},t!==null&&So(r,null),Xc(),Oh(r),t!==null&&Ki(t,r,c,!0),r.childLanes=m,null}function Go(t,r){return r=Qo({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function T1(t,r,s){return pi(r,t.child,null,s),t=Go(r,r.pendingProps),t.flags|=2,rr(r),r.memoizedState=null,t}function T6(t,r,s){var c=r.pendingProps,m=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(mt){if(c.mode==="hidden")return t=Go(r,c),r.lanes=536870912,rl(null,t);if(Wc(r),(t=$t)?(t=Vp(t,gr),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Da!==null?{id:zr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},s=gh(t),s.return=r,r.child=s,Bn=r,$t=null)):t=null,t===null)throw Fa(r);return r.lanes=536870912,null}return Go(r,c)}var E=t.memoizedState;if(E!==null){var A=E.dehydrated;if(Wc(r),m)if(r.flags&256)r.flags&=-257,r=T1(t,r,s);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(fn||Ki(t,r,s,!1),m=(s&t.childLanes)!==0,fn||m){if(c=Rt,c!==null&&(A=tn(c,s),A!==0&&A!==E.retryLane))throw E.retryLane=A,li(t,A),Qn(c,t,A),yu;n0(),r=T1(t,r,s)}else t=E.treeContext,$t=yr(A.nextSibling),Bn=r,mt=!0,wa=null,gr=!1,t!==null&&bh(r,t),r=Go(r,c),r.flags|=4096;return r}return t=Wr(t.child,{mode:c.mode,children:c.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Vo(t,r){var s=r.ref;if(s===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(t===null||t.ref!==s)&&(r.flags|=4194816)}}function bu(t,r,s,c,m){return xi(r),s=eu(t,r,s,c,void 0,m),c=tu(),t!==null&&!fn?(nu(t,r,m),aa(t,r,m)):(mt&&c&&Rc(r),r.flags|=1,wn(t,r,s,m),r.child)}function R1(t,r,s,c,m,E){return xi(r),r.updateQueue=null,s=Lh(r,c,s,m),zh(t),c=tu(),t!==null&&!fn?(nu(t,r,E),aa(t,r,E)):(mt&&c&&Rc(r),r.flags|=1,wn(t,r,s,E),r.child)}function O1(t,r,s,c,m){if(xi(r),r.stateNode===null){var E=Gi,A=s.contextType;typeof A=="object"&&A!==null&&(E=Dn(A)),E=new s(c,E),r.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=gu,r.stateNode=E,E._reactInternals=r,E=r.stateNode,E.props=c,E.state=r.memoizedState,E.refs={},Vc(r),A=s.contextType,E.context=typeof A=="object"&&A!==null?Dn(A):Gi,E.state=r.memoizedState,A=s.getDerivedStateFromProps,typeof A=="function"&&(mu(r,s,A,c),E.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(A=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),A!==E.state&&gu.enqueueReplaceState(E,E.state,null),Ws(r,c,E,m),Zs(),E.state=r.memoizedState),typeof E.componentDidMount=="function"&&(r.flags|=4194308),c=!0}else if(t===null){E=r.stateNode;var N=r.memoizedProps,H=gi(s,N);E.props=H;var ee=E.context,ce=s.contextType;A=Gi,typeof ce=="object"&&ce!==null&&(A=Dn(ce));var fe=s.getDerivedStateFromProps;ce=typeof fe=="function"||typeof E.getSnapshotBeforeUpdate=="function",N=r.pendingProps!==N,ce||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(N||ee!==A)&&v1(r,E,c,A),Na=!1;var ne=r.memoizedState;E.state=ne,Ws(r,c,E,m),Zs(),ee=r.memoizedState,N||ne!==ee||Na?(typeof fe=="function"&&(mu(r,s,fe,c),ee=r.memoizedState),(H=Na||C1(r,s,H,c,ne,ee,A))?(ce||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(r.flags|=4194308)):(typeof E.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=c,r.memoizedState=ee),E.props=c,E.state=ee,E.context=A,c=H):(typeof E.componentDidMount=="function"&&(r.flags|=4194308),c=!1)}else{E=r.stateNode,Qc(t,r),A=r.memoizedProps,ce=gi(s,A),E.props=ce,fe=r.pendingProps,ne=E.context,ee=s.contextType,H=Gi,typeof ee=="object"&&ee!==null&&(H=Dn(ee)),N=s.getDerivedStateFromProps,(ee=typeof N=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==fe||ne!==H)&&v1(r,E,c,H),Na=!1,ne=r.memoizedState,E.state=ne,Ws(r,c,E,m),Zs();var se=r.memoizedState;A!==fe||ne!==se||Na||t!==null&&t.dependencies!==null&&wo(t.dependencies)?(typeof N=="function"&&(mu(r,s,N,c),se=r.memoizedState),(ce=Na||C1(r,s,ce,c,ne,se,H)||t!==null&&t.dependencies!==null&&wo(t.dependencies))?(ee||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(c,se,H),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(c,se,H)),typeof E.componentDidUpdate=="function"&&(r.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof E.componentDidUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),r.memoizedProps=c,r.memoizedState=se),E.props=c,E.state=se,E.context=H,c=ce):(typeof E.componentDidUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),c=!1)}return E=c,Vo(t,r),c=(r.flags&128)!==0,E||c?(E=r.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:E.render(),r.flags|=1,t!==null&&c?(r.child=pi(r,t.child,null,m),r.child=pi(r,null,s,m)):wn(t,r,s,m),r.memoizedState=E.state,t=r.child):t=aa(t,r,m),t}function z1(t,r,s,c){return ci(),r.flags|=256,wn(t,r,s,c),r.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vu(t){return{baseLanes:t,cachePool:Dh()}}function Au(t,r,s){return t=t!==null?t.childLanes&~s:0,r&&(t|=ir),t}function L1(t,r,s){var c=r.pendingProps,m=!1,E=(r.flags&128)!==0,A;if((A=E)||(A=t!==null&&t.memoizedState===null?!1:(an.current&2)!==0),A&&(m=!0,r.flags&=-129),A=(r.flags&32)!==0,r.flags&=-33,t===null){if(mt){if(m?ja(r):Ta(),(t=$t)?(t=Vp(t,gr),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Da!==null?{id:zr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},s=gh(t),s.return=r,r.child=s,Bn=r,$t=null)):t=null,t===null)throw Fa(r);return ix(t)?r.lanes=32:r.lanes=536870912,null}var N=c.children;return c=c.fallback,m?(Ta(),m=r.mode,N=Qo({mode:"hidden",children:N},m),c=oi(c,m,s,null),N.return=r,c.return=r,N.sibling=c,r.child=N,c=r.child,c.memoizedState=vu(s),c.childLanes=Au(t,A,s),r.memoizedState=Cu,rl(null,c)):(ja(r),ku(r,N))}var H=t.memoizedState;if(H!==null&&(N=H.dehydrated,N!==null)){if(E)r.flags&256?(ja(r),r.flags&=-257,r=Bu(t,r,s)):r.memoizedState!==null?(Ta(),r.child=t.child,r.flags|=128,r=null):(Ta(),N=c.fallback,m=r.mode,c=Qo({mode:"visible",children:c.children},m),N=oi(N,m,s,null),N.flags|=2,c.return=r,N.return=r,c.sibling=N,r.child=c,pi(r,t.child,null,s),c=r.child,c.memoizedState=vu(s),c.childLanes=Au(t,A,s),r.memoizedState=Cu,r=rl(null,c));else if(ja(r),ix(N)){if(A=N.nextSibling&&N.nextSibling.dataset,A)var ee=A.dgst;A=ee,c=Error(i(419)),c.stack="",c.digest=A,Gs({value:c,source:null,stack:null}),r=Bu(t,r,s)}else if(fn||Ki(t,r,s,!1),A=(s&t.childLanes)!==0,fn||A){if(A=Rt,A!==null&&(c=tn(A,s),c!==0&&c!==H.retryLane))throw H.retryLane=c,li(t,c),Qn(A,t,c),yu;ax(N)||n0(),r=Bu(t,r,s)}else ax(N)?(r.flags|=192,r.child=t.child,r=null):(t=H.treeContext,$t=yr(N.nextSibling),Bn=r,mt=!0,wa=null,gr=!1,t!==null&&bh(r,t),r=ku(r,c.children),r.flags|=4096);return r}return m?(Ta(),N=c.fallback,m=r.mode,H=t.child,ee=H.sibling,c=Wr(H,{mode:"hidden",children:c.children}),c.subtreeFlags=H.subtreeFlags&65011712,ee!==null?N=Wr(ee,N):(N=oi(N,m,s,null),N.flags|=2),N.return=r,c.return=r,c.sibling=N,r.child=c,rl(null,c),c=r.child,N=t.child.memoizedState,N===null?N=vu(s):(m=N.cachePool,m!==null?(H=xn._currentValue,m=m.parent!==H?{parent:H,pool:H}:m):m=Dh(),N={baseLanes:N.baseLanes|s,cachePool:m}),c.memoizedState=N,c.childLanes=Au(t,A,s),r.memoizedState=Cu,rl(t.child,c)):(ja(r),s=t.child,t=s.sibling,s=Wr(s,{mode:"visible",children:c.children}),s.return=r,s.sibling=null,t!==null&&(A=r.deletions,A===null?(r.deletions=[t],r.flags|=16):A.push(t)),r.child=s,r.memoizedState=null,s)}function ku(t,r){return r=Qo({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Qo(t,r){return t=tr(22,t,null,r),t.lanes=0,t}function Bu(t,r,s){return pi(r,t.child,null,s),t=ku(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function P1(t,r,s){t.lanes|=r;var c=t.alternate;c!==null&&(c.lanes|=r),Ic(t.return,r,s)}function Du(t,r,s,c,m,E){var A=t.memoizedState;A===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:m,treeForkCount:E}:(A.isBackwards=r,A.rendering=null,A.renderingStartTime=0,A.last=c,A.tail=s,A.tailMode=m,A.treeForkCount=E)}function I1(t,r,s){var c=r.pendingProps,m=c.revealOrder,E=c.tail;c=c.children;var A=an.current,N=(A&2)!==0;if(N?(A=A&1|2,r.flags|=128):A&=1,w(an,A),wn(t,r,c,s),c=mt?qs:0,!N&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&P1(t,s,r);else if(t.tag===19)P1(t,s,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(m){case"forwards":for(s=r.child,m=null;s!==null;)t=s.alternate,t!==null&&Ro(t)===null&&(m=s),s=s.sibling;s=m,s===null?(m=r.child,r.child=null):(m=s.sibling,s.sibling=null),Du(r,!1,m,s,E,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,m=r.child,r.child=null;m!==null;){if(t=m.alternate,t!==null&&Ro(t)===null){r.child=m;break}t=m.sibling,m.sibling=s,s=m,m=t}Du(r,!0,s,null,E,c);break;case"together":Du(r,!1,null,null,void 0,c);break;default:r.memoizedState=null}return r.child}function aa(t,r,s){if(t!==null&&(r.dependencies=t.dependencies),za|=r.lanes,(s&r.childLanes)===0)if(t!==null){if(Ki(t,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,s=Wr(t,t.pendingProps),r.child=s,s.return=r;t.sibling!==null;)t=t.sibling,s=s.sibling=Wr(t,t.pendingProps),s.return=r;s.sibling=null}return r.child}function wu(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&wo(t)))}function R6(t,r,s){switch(r.tag){case 3:Ge(r,r.stateNode.containerInfo),Sa(r,xn,t.memoizedState.cache),ci();break;case 27:case 5:st(r);break;case 4:Ge(r,r.stateNode.containerInfo);break;case 10:Sa(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Wc(r),null;break;case 13:var c=r.memoizedState;if(c!==null)return c.dehydrated!==null?(ja(r),r.flags|=128,null):(s&r.child.childLanes)!==0?L1(t,r,s):(ja(r),t=aa(t,r,s),t!==null?t.sibling:null);ja(r);break;case 19:var m=(t.flags&128)!==0;if(c=(s&r.childLanes)!==0,c||(Ki(t,r,s,!1),c=(s&r.childLanes)!==0),m){if(c)return I1(t,r,s);r.flags|=128}if(m=r.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),w(an,an.current),c)break;return null;case 22:return r.lanes=0,M1(t,r,s,r.pendingProps);case 24:Sa(r,xn,t.memoizedState.cache)}return aa(t,r,s)}function U1(t,r,s){if(t!==null)if(t.memoizedProps!==r.pendingProps)fn=!0;else{if(!wu(t,s)&&(r.flags&128)===0)return fn=!1,R6(t,r,s);fn=(t.flags&131072)!==0}else fn=!1,mt&&(r.flags&1048576)!==0&&yh(r,qs,r.index);switch(r.lanes=0,r.tag){case 16:e:{var c=r.pendingProps;if(t=fi(r.elementType),r.type=t,typeof t=="function")Mc(t)?(c=gi(t,c),r.tag=1,r=O1(null,r,t,c,s)):(r.tag=0,r=bu(null,r,t,c,s));else{if(t!=null){var m=t.$$typeof;if(m===_){r.tag=11,r=S1(null,r,t,c,s);break e}else if(m===R){r.tag=14,r=N1(null,r,t,c,s);break e}}throw r=te(t)||t,Error(i(306,r,""))}}return r;case 0:return bu(t,r,r.type,r.pendingProps,s);case 1:return c=r.type,m=gi(c,r.pendingProps),O1(t,r,c,m,s);case 3:e:{if(Ge(r,r.stateNode.containerInfo),t===null)throw Error(i(387));c=r.pendingProps;var E=r.memoizedState;m=E.element,Qc(t,r),Ws(r,c,null,s);var A=r.memoizedState;if(c=A.cache,Sa(r,xn,c),c!==E.cache&&Uc(r,[xn],s,!0),Zs(),c=A.element,E.isDehydrated)if(E={element:c,isDehydrated:!1,cache:A.cache},r.updateQueue.baseState=E,r.memoizedState=E,r.flags&256){r=z1(t,r,c,s);break e}else if(c!==m){m=hr(Error(i(424)),r),Gs(m),r=z1(t,r,c,s);break e}else for(t=r.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,$t=yr(t.firstChild),Bn=r,mt=!0,wa=null,gr=!0,s=Mh(r,null,c,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ci(),c===m){r=aa(t,r,s);break e}wn(t,r,c,s)}r=r.child}return r;case 26:return Vo(t,r),t===null?(s=Wp(r.type,null,r.pendingProps,null))?r.memoizedState=s:mt||(s=r.type,t=r.pendingProps,c=c0(re.current).createElement(s),c[nn]=r,c[Nn]=t,Fn(c,s,t),cn(c),r.stateNode=c):r.memoizedState=Wp(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return st(r),t===null&&mt&&(c=r.stateNode=Kp(r.type,r.pendingProps,re.current),Bn=r,gr=!0,m=$t,Ha(r.type)?(sx=m,$t=yr(c.firstChild)):$t=m),wn(t,r,r.pendingProps.children,s),Vo(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&mt&&((m=c=$t)&&(c=xy(c,r.type,r.pendingProps,gr),c!==null?(r.stateNode=c,Bn=r,$t=yr(c.firstChild),gr=!1,m=!0):m=!1),m||Fa(r)),st(r),m=r.type,E=r.pendingProps,A=t!==null?t.memoizedProps:null,c=E.children,tx(m,E)?c=null:A!==null&&tx(m,A)&&(r.flags|=32),r.memoizedState!==null&&(m=eu(t,r,D6,null,null,s),El._currentValue=m),Vo(t,r),wn(t,r,c,s),r.child;case 6:return t===null&&mt&&((t=s=$t)&&(s=dy(s,r.pendingProps,gr),s!==null?(r.stateNode=s,Bn=r,$t=null,t=!0):t=!1),t||Fa(r)),null;case 13:return L1(t,r,s);case 4:return Ge(r,r.stateNode.containerInfo),c=r.pendingProps,t===null?r.child=pi(r,null,c,s):wn(t,r,c,s),r.child;case 11:return S1(t,r,r.type,r.pendingProps,s);case 7:return wn(t,r,r.pendingProps,s),r.child;case 8:return wn(t,r,r.pendingProps.children,s),r.child;case 12:return wn(t,r,r.pendingProps.children,s),r.child;case 10:return c=r.pendingProps,Sa(r,r.type,c.value),wn(t,r,c.children,s),r.child;case 9:return m=r.type._context,c=r.pendingProps.children,xi(r),m=Dn(m),c=c(m),r.flags|=1,wn(t,r,c,s),r.child;case 14:return N1(t,r,r.type,r.pendingProps,s);case 15:return _1(t,r,r.type,r.pendingProps,s);case 19:return I1(t,r,s);case 31:return T6(t,r,s);case 22:return M1(t,r,s,r.pendingProps);case 24:return xi(r),c=Dn(xn),t===null?(m=qc(),m===null&&(m=Rt,E=Hc(),m.pooledCache=E,E.refCount++,E!==null&&(m.pooledCacheLanes|=s),m=E),r.memoizedState={parent:c,cache:m},Vc(r),Sa(r,xn,m)):((t.lanes&s)!==0&&(Qc(t,r),Ws(r,null,null,s),Zs()),m=t.memoizedState,E=r.memoizedState,m.parent!==c?(m={parent:c,cache:c},r.memoizedState=m,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=m),Sa(r,xn,c)):(c=E.cache,Sa(r,xn,c),c!==m.cache&&Uc(r,[xn],s,!0))),wn(t,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function ia(t){t.flags|=4}function Fu(t,r,s,c,m){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(m&335544128)===m)if(t.stateNode.complete)t.flags|=8192;else if(hp())t.flags|=8192;else throw hi=_o,Gc}else t.flags&=-16777217}function H1(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!rm(r))if(hp())t.flags|=8192;else throw hi=_o,Gc}function Yo(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Ve():536870912,t.lanes|=r,ls|=r)}function al(t,r){if(!mt)switch(t.tailMode){case"hidden":r=t.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function qt(t){var r=t.alternate!==null&&t.alternate.child===t.child,s=0,c=0;if(r)for(var m=t.child;m!==null;)s|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=t,m=m.sibling;else for(m=t.child;m!==null;)s|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=t,m=m.sibling;return t.subtreeFlags|=c,t.childLanes=s,r}function O6(t,r,s){var c=r.pendingProps;switch(Oc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(r),null;case 1:return qt(r),null;case 3:return s=r.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),r.memoizedState.cache!==c&&(r.flags|=2048),ta(xn),we(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Yi(r)?ia(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Lc())),qt(r),null;case 26:var m=r.type,E=r.memoizedState;return t===null?(ia(r),E!==null?(qt(r),H1(r,E)):(qt(r),Fu(r,m,null,c,s))):E?E!==t.memoizedState?(ia(r),qt(r),H1(r,E)):(qt(r),r.flags&=-16777217):(t=t.memoizedProps,t!==c&&ia(r),qt(r),Fu(r,m,t,c,s)),null;case 27:if(ut(r),s=re.current,m=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==c&&ia(r);else{if(!c){if(r.stateNode===null)throw Error(i(166));return qt(r),null}t=W.current,Yi(r)?Ch(r):(t=Kp(m,c,s),r.stateNode=t,ia(r))}return qt(r),null;case 5:if(ut(r),m=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==c&&ia(r);else{if(!c){if(r.stateNode===null)throw Error(i(166));return qt(r),null}if(E=W.current,Yi(r))Ch(r);else{var A=c0(re.current);switch(E){case 1:E=A.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:E=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":E=A.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":E=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":E=A.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof c.is=="string"?A.createElement("select",{is:c.is}):A.createElement("select"),c.multiple?E.multiple=!0:c.size&&(E.size=c.size);break;default:E=typeof c.is=="string"?A.createElement(m,{is:c.is}):A.createElement(m)}}E[nn]=r,E[Nn]=c;e:for(A=r.child;A!==null;){if(A.tag===5||A.tag===6)E.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===r)break e;for(;A.sibling===null;){if(A.return===null||A.return===r)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}r.stateNode=E;e:switch(Fn(E,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ia(r)}}return qt(r),Fu(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,s),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==c&&ia(r);else{if(typeof c!="string"&&r.stateNode===null)throw Error(i(166));if(t=re.current,Yi(r)){if(t=r.stateNode,s=r.memoizedProps,c=null,m=Bn,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}t[nn]=r,t=!!(t.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||Lp(t.nodeValue,s)),t||Fa(r,!0)}else t=c0(t).createTextNode(c),t[nn]=r,r.stateNode=t}return qt(r),null;case 31:if(s=r.memoizedState,t===null||t.memoizedState!==null){if(c=Yi(r),s!==null){if(t===null){if(!c)throw Error(i(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[nn]=r}else ci(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;qt(r),t=!1}else s=Lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return r.flags&256?(rr(r),r):(rr(r),null);if((r.flags&128)!==0)throw Error(i(558))}return qt(r),null;case 13:if(c=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(m=Yi(r),c!==null&&c.dehydrated!==null){if(t===null){if(!m)throw Error(i(318));if(m=r.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[nn]=r}else ci(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;qt(r),m=!1}else m=Lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=m),m=!0;if(!m)return r.flags&256?(rr(r),r):(rr(r),null)}return rr(r),(r.flags&128)!==0?(r.lanes=s,r):(s=c!==null,t=t!==null&&t.memoizedState!==null,s&&(c=r.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),E=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(E=c.memoizedState.cachePool.pool),E!==m&&(c.flags|=2048)),s!==t&&s&&(r.child.flags|=8192),Yo(r,r.updateQueue),qt(r),null);case 4:return we(),t===null&&Xu(r.stateNode.containerInfo),qt(r),null;case 10:return ta(r.type),qt(r),null;case 19:if(X(an),c=r.memoizedState,c===null)return qt(r),null;if(m=(r.flags&128)!==0,E=c.rendering,E===null)if(m)al(c,!1);else{if(en!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(E=Ro(t),E!==null){for(r.flags|=128,al(c,!1),t=E.updateQueue,r.updateQueue=t,Yo(r,t),r.subtreeFlags=0,t=s,s=r.child;s!==null;)mh(s,t),s=s.sibling;return w(an,an.current&1|2),mt&&Jr(r,c.treeForkCount),r.child}t=t.sibling}c.tail!==null&&We()>Jo&&(r.flags|=128,m=!0,al(c,!1),r.lanes=4194304)}else{if(!m)if(t=Ro(E),t!==null){if(r.flags|=128,m=!0,t=t.updateQueue,r.updateQueue=t,Yo(r,t),al(c,!0),c.tail===null&&c.tailMode==="hidden"&&!E.alternate&&!mt)return qt(r),null}else 2*We()-c.renderingStartTime>Jo&&s!==536870912&&(r.flags|=128,m=!0,al(c,!1),r.lanes=4194304);c.isBackwards?(E.sibling=r.child,r.child=E):(t=c.last,t!==null?t.sibling=E:r.child=E,c.last=E)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=We(),t.sibling=null,s=an.current,w(an,m?s&1|2:s&1),mt&&Jr(r,c.treeForkCount),t):(qt(r),null);case 22:case 23:return rr(r),Zc(),c=r.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(r.flags|=8192):c&&(r.flags|=8192),c?(s&536870912)!==0&&(r.flags&128)===0&&(qt(r),r.subtreeFlags&6&&(r.flags|=8192)):qt(r),s=r.updateQueue,s!==null&&Yo(r,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==s&&(r.flags|=2048),t!==null&&X(di),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),ta(xn),qt(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function z6(t,r){switch(Oc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ta(xn),we(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return ut(r),null;case 31:if(r.memoizedState!==null){if(rr(r),r.alternate===null)throw Error(i(340));ci()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(rr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));ci()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return X(an),null;case 4:return we(),null;case 10:return ta(r.type),null;case 22:case 23:return rr(r),Zc(),t!==null&&X(di),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return ta(xn),null;case 25:return null;default:return null}}function $1(t,r){switch(Oc(r),r.tag){case 3:ta(xn),we();break;case 26:case 27:case 5:ut(r);break;case 4:we();break;case 31:r.memoizedState!==null&&rr(r);break;case 13:rr(r);break;case 19:X(an);break;case 10:ta(r.type);break;case 22:case 23:rr(r),Zc(),t!==null&&X(di);break;case 24:ta(xn)}}function il(t,r){try{var s=r.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var m=c.next;s=m;do{if((s.tag&t)===t){c=void 0;var E=s.create,A=s.inst;c=E(),A.destroy=c}s=s.next}while(s!==m)}}catch(N){St(r,r.return,N)}}function Ra(t,r,s){try{var c=r.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var E=m.next;c=E;do{if((c.tag&t)===t){var A=c.inst,N=A.destroy;if(N!==void 0){A.destroy=void 0,m=r;var H=s,ee=N;try{ee()}catch(ce){St(m,H,ce)}}}c=c.next}while(c!==E)}}catch(ce){St(r,r.return,ce)}}function q1(t){var r=t.updateQueue;if(r!==null){var s=t.stateNode;try{Th(r,s)}catch(c){St(t,t.return,c)}}}function G1(t,r,s){s.props=gi(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(c){St(t,r,c)}}function sl(t,r){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof s=="function"?t.refCleanup=s(c):s.current=c}}catch(m){St(t,r,m)}}function Pr(t,r){var s=t.ref,c=t.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(m){St(t,r,m)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(m){St(t,r,m)}else s.current=null}function V1(t){var r=t.type,s=t.memoizedProps,c=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(m){St(t,t.return,m)}}function Su(t,r,s){try{var c=t.stateNode;iy(c,t.type,s,r),c[Nn]=r}catch(m){St(t,t.return,m)}}function Q1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ha(t.type)||t.tag===4}function Nu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Q1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ha(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function _u(t,r,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,r):(r=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,r.appendChild(t),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=ve));else if(c!==4&&(c===27&&Ha(t.type)&&(s=t.stateNode,r=null),t=t.child,t!==null))for(_u(t,r,s),t=t.sibling;t!==null;)_u(t,r,s),t=t.sibling}function Ko(t,r,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?s.insertBefore(t,r):s.appendChild(t);else if(c!==4&&(c===27&&Ha(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Ko(t,r,s),t=t.sibling;t!==null;)Ko(t,r,s),t=t.sibling}function Y1(t){var r=t.stateNode,s=t.memoizedProps;try{for(var c=t.type,m=r.attributes;m.length;)r.removeAttributeNode(m[0]);Fn(r,c,s),r[nn]=t,r[Nn]=s}catch(E){St(t,t.return,E)}}var sa=!1,hn=!1,Mu=!1,K1=typeof WeakSet=="function"?WeakSet:Set,vn=null;function L6(t,r){if(t=t.containerInfo,Ju=m0,t=lh(t),Bc(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var m=c.anchorOffset,E=c.focusNode;c=c.focusOffset;try{s.nodeType,E.nodeType}catch{s=null;break e}var A=0,N=-1,H=-1,ee=0,ce=0,fe=t,ne=null;t:for(;;){for(var se;fe!==s||m!==0&&fe.nodeType!==3||(N=A+m),fe!==E||c!==0&&fe.nodeType!==3||(H=A+c),fe.nodeType===3&&(A+=fe.nodeValue.length),(se=fe.firstChild)!==null;)ne=fe,fe=se;for(;;){if(fe===t)break t;if(ne===s&&++ee===m&&(N=A),ne===E&&++ce===c&&(H=A),(se=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=se}s=N===-1||H===-1?null:{start:N,end:H}}else s=null}s=s||{start:0,end:0}}else s=null;for(ex={focusedElem:t,selectionRange:s},m0=!1,vn=r;vn!==null;)if(r=vn,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,vn=t;else for(;vn!==null;){switch(r=vn,E=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s<t.length;s++)m=t[s],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&E!==null){t=void 0,s=r,m=E.memoizedProps,E=E.memoizedState,c=s.stateNode;try{var Me=gi(s.type,m);t=c.getSnapshotBeforeUpdate(Me,E),c.__reactInternalSnapshotBeforeUpdate=t}catch(He){St(s,s.return,He)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,s=t.nodeType,s===9)rx(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rx(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,vn=t;break}vn=r.return}}function X1(t,r,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:oa(t,s),c&4&&il(5,s);break;case 1:if(oa(t,s),c&4)if(t=s.stateNode,r===null)try{t.componentDidMount()}catch(A){St(s,s.return,A)}else{var m=gi(s.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(m,r,t.__reactInternalSnapshotBeforeUpdate)}catch(A){St(s,s.return,A)}}c&64&&q1(s),c&512&&sl(s,s.return);break;case 3:if(oa(t,s),c&64&&(t=s.updateQueue,t!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{Th(t,r)}catch(A){St(s,s.return,A)}}break;case 27:r===null&&c&4&&Y1(s);case 26:case 5:oa(t,s),r===null&&c&4&&V1(s),c&512&&sl(s,s.return);break;case 12:oa(t,s);break;case 31:oa(t,s),c&4&&J1(t,s);break;case 13:oa(t,s),c&4&&ep(t,s),c&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=Q6.bind(null,s),fy(t,s))));break;case 22:if(c=s.memoizedState!==null||sa,!c){r=r!==null&&r.memoizedState!==null||hn,m=sa;var E=hn;sa=c,(hn=r)&&!E?ca(t,s,(s.subtreeFlags&8772)!==0):oa(t,s),sa=m,hn=E}break;case 30:break;default:oa(t,s)}}function Z1(t){var r=t.alternate;r!==null&&(t.alternate=null,Z1(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Ns(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Yt=null,$n=!1;function la(t,r,s){for(s=s.child;s!==null;)W1(t,r,s),s=s.sibling}function W1(t,r,s){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Vt,s)}catch{}switch(s.tag){case 26:hn||Pr(s,r),la(t,r,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:hn||Pr(s,r);var c=Yt,m=$n;Ha(s.type)&&(Yt=s.stateNode,$n=!1),la(t,r,s),pl(s.stateNode),Yt=c,$n=m;break;case 5:hn||Pr(s,r);case 6:if(c=Yt,m=$n,Yt=null,la(t,r,s),Yt=c,$n=m,Yt!==null)if($n)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(s.stateNode)}catch(E){St(s,r,E)}else try{Yt.removeChild(s.stateNode)}catch(E){St(s,r,E)}break;case 18:Yt!==null&&($n?(t=Yt,qp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),ps(t)):qp(Yt,s.stateNode));break;case 4:c=Yt,m=$n,Yt=s.stateNode.containerInfo,$n=!0,la(t,r,s),Yt=c,$n=m;break;case 0:case 11:case 14:case 15:Ra(2,s,r),hn||Ra(4,s,r),la(t,r,s);break;case 1:hn||(Pr(s,r),c=s.stateNode,typeof c.componentWillUnmount=="function"&&G1(s,r,c)),la(t,r,s);break;case 21:la(t,r,s);break;case 22:hn=(c=hn)||s.memoizedState!==null,la(t,r,s),hn=c;break;default:la(t,r,s)}}function J1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ps(t)}catch(s){St(r,r.return,s)}}}function ep(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ps(t)}catch(s){St(r,r.return,s)}}function P6(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new K1),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new K1),r;default:throw Error(i(435,t.tag))}}function Xo(t,r){var s=P6(t);r.forEach(function(c){if(!s.has(c)){s.add(c);var m=Y6.bind(null,t,c);c.then(m,m)}})}function qn(t,r){var s=r.deletions;if(s!==null)for(var c=0;c<s.length;c++){var m=s[c],E=t,A=r,N=A;e:for(;N!==null;){switch(N.tag){case 27:if(Ha(N.type)){Yt=N.stateNode,$n=!1;break e}break;case 5:Yt=N.stateNode,$n=!1;break e;case 3:case 4:Yt=N.stateNode.containerInfo,$n=!0;break e}N=N.return}if(Yt===null)throw Error(i(160));W1(E,A,m),Yt=null,$n=!1,E=m.alternate,E!==null&&(E.return=null),m.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)tp(r,t),r=r.sibling}var Nr=null;function tp(t,r){var s=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:qn(r,t),Gn(t),c&4&&(Ra(3,t,t.return),il(3,t),Ra(5,t,t.return));break;case 1:qn(r,t),Gn(t),c&512&&(hn||s===null||Pr(s,s.return)),c&64&&sa&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var m=Nr;if(qn(r,t),Gn(t),c&512&&(hn||s===null||Pr(s,s.return)),c&4){var E=s!==null?s.memoizedState:null;if(c=t.memoizedState,s===null)if(c===null)if(t.stateNode===null){e:{c=t.type,s=t.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":E=m.getElementsByTagName("title")[0],(!E||E[ti]||E[nn]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=m.createElement(c),m.head.insertBefore(E,m.querySelector("head > title"))),Fn(E,c,s),E[nn]=t,cn(E),c=E;break e;case"link":var A=tm("link","href",m).get(c+(s.href||""));if(A){for(var N=0;N<A.length;N++)if(E=A[N],E.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&E.getAttribute("rel")===(s.rel==null?null:s.rel)&&E.getAttribute("title")===(s.title==null?null:s.title)&&E.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(N,1);break t}}E=m.createElement(c),Fn(E,c,s),m.head.appendChild(E);break;case"meta":if(A=tm("meta","content",m).get(c+(s.content||""))){for(N=0;N<A.length;N++)if(E=A[N],E.getAttribute("content")===(s.content==null?null:""+s.content)&&E.getAttribute("name")===(s.name==null?null:s.name)&&E.getAttribute("property")===(s.property==null?null:s.property)&&E.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&E.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(N,1);break t}}E=m.createElement(c),Fn(E,c,s),m.head.appendChild(E);break;default:throw Error(i(468,c))}E[nn]=t,cn(E),c=E}t.stateNode=c}else nm(m,t.type,t.stateNode);else t.stateNode=em(m,c,t.memoizedProps);else E!==c?(E===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):E.count--,c===null?nm(m,t.type,t.stateNode):em(m,c,t.memoizedProps)):c===null&&t.stateNode!==null&&Su(t,t.memoizedProps,s.memoizedProps)}break;case 27:qn(r,t),Gn(t),c&512&&(hn||s===null||Pr(s,s.return)),s!==null&&c&4&&Su(t,t.memoizedProps,s.memoizedProps);break;case 5:if(qn(r,t),Gn(t),c&512&&(hn||s===null||Pr(s,s.return)),t.flags&32){m=t.stateNode;try{$e(m,"")}catch(Me){St(t,t.return,Me)}}c&4&&t.stateNode!=null&&(m=t.memoizedProps,Su(t,m,s!==null?s.memoizedProps:m)),c&1024&&(Mu=!0);break;case 6:if(qn(r,t),Gn(t),c&4){if(t.stateNode===null)throw Error(i(162));c=t.memoizedProps,s=t.stateNode;try{s.nodeValue=c}catch(Me){St(t,t.return,Me)}}break;case 3:if(d0=null,m=Nr,Nr=u0(r.containerInfo),qn(r,t),Nr=m,Gn(t),c&4&&s!==null&&s.memoizedState.isDehydrated)try{ps(r.containerInfo)}catch(Me){St(t,t.return,Me)}Mu&&(Mu=!1,np(t));break;case 4:c=Nr,Nr=u0(t.stateNode.containerInfo),qn(r,t),Gn(t),Nr=c;break;case 12:qn(r,t),Gn(t);break;case 31:qn(r,t),Gn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Xo(t,c)));break;case 13:qn(r,t),Gn(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Wo=We()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Xo(t,c)));break;case 22:m=t.memoizedState!==null;var H=s!==null&&s.memoizedState!==null,ee=sa,ce=hn;if(sa=ee||m,hn=ce||H,qn(r,t),hn=ce,sa=ee,Gn(t),c&8192)e:for(r=t.stateNode,r._visibility=m?r._visibility&-2:r._visibility|1,m&&(s===null||H||sa||hn||Ei(t)),s=null,r=t;;){if(r.tag===5||r.tag===26){if(s===null){H=s=r;try{if(E=H.stateNode,m)A=E.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{N=H.stateNode;var fe=H.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;N.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Me){St(H,H.return,Me)}}}else if(r.tag===6){if(s===null){H=r;try{H.stateNode.nodeValue=m?"":H.memoizedProps}catch(Me){St(H,H.return,Me)}}}else if(r.tag===18){if(s===null){H=r;try{var se=H.stateNode;m?Gp(se,!0):Gp(H.stateNode,!1)}catch(Me){St(H,H.return,Me)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;s===r&&(s=null),r=r.return}s===r&&(s=null),r.sibling.return=r.return,r=r.sibling}c&4&&(c=t.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,Xo(t,s))));break;case 19:qn(r,t),Gn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Xo(t,c)));break;case 30:break;case 21:break;default:qn(r,t),Gn(t)}}function Gn(t){var r=t.flags;if(r&2){try{for(var s,c=t.return;c!==null;){if(Q1(c)){s=c;break}c=c.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var m=s.stateNode,E=Nu(t);Ko(t,E,m);break;case 5:var A=s.stateNode;s.flags&32&&($e(A,""),s.flags&=-33);var N=Nu(t);Ko(t,N,A);break;case 3:case 4:var H=s.stateNode.containerInfo,ee=Nu(t);_u(t,ee,H);break;default:throw Error(i(161))}}catch(ce){St(t,t.return,ce)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function np(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;np(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function oa(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)X1(t,r.alternate,r),r=r.sibling}function Ei(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Ra(4,r,r.return),Ei(r);break;case 1:Pr(r,r.return);var s=r.stateNode;typeof s.componentWillUnmount=="function"&&G1(r,r.return,s),Ei(r);break;case 27:pl(r.stateNode);case 26:case 5:Pr(r,r.return),Ei(r);break;case 22:r.memoizedState===null&&Ei(r);break;case 30:Ei(r);break;default:Ei(r)}t=t.sibling}}function ca(t,r,s){for(s=s&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var c=r.alternate,m=t,E=r,A=E.flags;switch(E.tag){case 0:case 11:case 15:ca(m,E,s),il(4,E);break;case 1:if(ca(m,E,s),c=E,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(ee){St(c,c.return,ee)}if(c=E,m=c.updateQueue,m!==null){var N=c.stateNode;try{var H=m.shared.hiddenCallbacks;if(H!==null)for(m.shared.hiddenCallbacks=null,m=0;m<H.length;m++)jh(H[m],N)}catch(ee){St(c,c.return,ee)}}s&&A&64&&q1(E),sl(E,E.return);break;case 27:Y1(E);case 26:case 5:ca(m,E,s),s&&c===null&&A&4&&V1(E),sl(E,E.return);break;case 12:ca(m,E,s);break;case 31:ca(m,E,s),s&&A&4&&J1(m,E);break;case 13:ca(m,E,s),s&&A&4&&ep(m,E);break;case 22:E.memoizedState===null&&ca(m,E,s),sl(E,E.return);break;case 30:break;default:ca(m,E,s)}r=r.sibling}}function ju(t,r){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&Vs(s))}function Tu(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Vs(t))}function _r(t,r,s,c){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)rp(t,r,s,c),r=r.sibling}function rp(t,r,s,c){var m=r.flags;switch(r.tag){case 0:case 11:case 15:_r(t,r,s,c),m&2048&&il(9,r);break;case 1:_r(t,r,s,c);break;case 3:_r(t,r,s,c),m&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Vs(t)));break;case 12:if(m&2048){_r(t,r,s,c),t=r.stateNode;try{var E=r.memoizedProps,A=E.id,N=E.onPostCommit;typeof N=="function"&&N(A,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(H){St(r,r.return,H)}}else _r(t,r,s,c);break;case 31:_r(t,r,s,c);break;case 13:_r(t,r,s,c);break;case 23:break;case 22:E=r.stateNode,A=r.alternate,r.memoizedState!==null?E._visibility&2?_r(t,r,s,c):ll(t,r):E._visibility&2?_r(t,r,s,c):(E._visibility|=2,as(t,r,s,c,(r.subtreeFlags&10256)!==0||!1)),m&2048&&ju(A,r);break;case 24:_r(t,r,s,c),m&2048&&Tu(r.alternate,r);break;default:_r(t,r,s,c)}}function as(t,r,s,c,m){for(m=m&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var E=t,A=r,N=s,H=c,ee=A.flags;switch(A.tag){case 0:case 11:case 15:as(E,A,N,H,m),il(8,A);break;case 23:break;case 22:var ce=A.stateNode;A.memoizedState!==null?ce._visibility&2?as(E,A,N,H,m):ll(E,A):(ce._visibility|=2,as(E,A,N,H,m)),m&&ee&2048&&ju(A.alternate,A);break;case 24:as(E,A,N,H,m),m&&ee&2048&&Tu(A.alternate,A);break;default:as(E,A,N,H,m)}r=r.sibling}}function ll(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var s=t,c=r,m=c.flags;switch(c.tag){case 22:ll(s,c),m&2048&&ju(c.alternate,c);break;case 24:ll(s,c),m&2048&&Tu(c.alternate,c);break;default:ll(s,c)}r=r.sibling}}var ol=8192;function is(t,r,s){if(t.subtreeFlags&ol)for(t=t.child;t!==null;)ap(t,r,s),t=t.sibling}function ap(t,r,s){switch(t.tag){case 26:is(t,r,s),t.flags&ol&&t.memoizedState!==null&&By(s,Nr,t.memoizedState,t.memoizedProps);break;case 5:is(t,r,s);break;case 3:case 4:var c=Nr;Nr=u0(t.stateNode.containerInfo),is(t,r,s),Nr=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=ol,ol=16777216,is(t,r,s),ol=c):is(t,r,s));break;default:is(t,r,s)}}function ip(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function cl(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var c=r[s];vn=c,lp(c,t)}ip(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sp(t),t=t.sibling}function sp(t){switch(t.tag){case 0:case 11:case 15:cl(t),t.flags&2048&&Ra(9,t,t.return);break;case 3:cl(t);break;case 12:cl(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Zo(t)):cl(t);break;default:cl(t)}}function Zo(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var c=r[s];vn=c,lp(c,t)}ip(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Ra(8,r,r.return),Zo(r);break;case 22:s=r.stateNode,s._visibility&2&&(s._visibility&=-3,Zo(r));break;default:Zo(r)}t=t.sibling}}function lp(t,r){for(;vn!==null;){var s=vn;switch(s.tag){case 0:case 11:case 15:Ra(8,s,r);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Vs(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,vn=c;else e:for(s=t;vn!==null;){c=vn;var m=c.sibling,E=c.return;if(Z1(c),c===s){vn=null;break e}if(m!==null){m.return=E,vn=m;break e}vn=E}}}var I6={getCacheForType:function(t){var r=Dn(xn),s=r.data.get(t);return s===void 0&&(s=t(),r.data.set(t,s)),s},cacheSignal:function(){return Dn(xn).controller.signal}},U6=typeof WeakMap=="function"?WeakMap:Map,At=0,Rt=null,lt=null,dt=0,Ft=0,ar=null,Oa=!1,ss=!1,Ru=!1,ua=0,en=0,za=0,yi=0,Ou=0,ir=0,ls=0,ul=null,Vn=null,zu=!1,Wo=0,op=0,Jo=1/0,e0=null,La=null,mn=0,Pa=null,os=null,xa=0,Lu=0,Pu=null,cp=null,xl=0,Iu=null;function sr(){return(At&2)!==0&&dt!==0?dt&-dt:P.T!==null?Vu():Ti()}function up(){if(ir===0)if((dt&536870912)===0||mt){var t=Qe;Qe<<=1,(Qe&3932160)===0&&(Qe=262144),ir=t}else ir=536870912;return t=nr.current,t!==null&&(t.flags|=32),ir}function Qn(t,r,s){(t===Rt&&(Ft===2||Ft===9)||t.cancelPendingCommit!==null)&&(cs(t,0),Ia(t,dt,ir,!1)),Tt(t,s),((At&2)===0||t!==Rt)&&(t===Rt&&((At&2)===0&&(yi|=s),en===4&&Ia(t,dt,ir,!1)),Ir(t))}function xp(t,r,s){if((At&6)!==0)throw Error(i(327));var c=!s&&(r&127)===0&&(r&t.expiredLanes)===0||ue(t,r),m=c?q6(t,r):Hu(t,r,!0),E=c;do{if(m===0){ss&&!c&&Ia(t,r,0,!1);break}else{if(s=t.current.alternate,E&&!H6(s)){m=Hu(t,r,!1),E=!1;continue}if(m===2){if(E=r,t.errorRecoveryDisabledLanes&E)var A=0;else A=t.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){r=A;e:{var N=t;m=ul;var H=N.current.memoizedState.isDehydrated;if(H&&(cs(N,A).flags|=256),A=Hu(N,A,!1),A!==2){if(Ru&&!H){N.errorRecoveryDisabledLanes|=E,yi|=E,m=4;break e}E=Vn,Vn=m,E!==null&&(Vn===null?Vn=E:Vn.push.apply(Vn,E))}m=A}if(E=!1,m!==2)continue}}if(m===1){cs(t,0),Ia(t,r,0,!0);break}e:{switch(c=t,E=m,E){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:Ia(c,r,ir,!Oa);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(m=Wo+300-We(),10<m)){if(Ia(c,r,ir,!Oa),U(c,0,!0)!==0)break e;xa=r,c.timeoutHandle=Hp(dp.bind(null,c,s,Vn,e0,zu,r,ir,yi,ls,Oa,E,"Throttled",-0,0),m);break e}dp(c,s,Vn,e0,zu,r,ir,yi,ls,Oa,E,null,-0,0)}}break}while(!0);Ir(t)}function dp(t,r,s,c,m,E,A,N,H,ee,ce,fe,ne,se){if(t.timeoutHandle=-1,fe=r.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ve},ap(r,E,fe);var Me=(E&62914560)===E?Wo-We():(E&4194048)===E?op-We():0;if(Me=Dy(fe,Me),Me!==null){xa=E,t.cancelPendingCommit=Me(bp.bind(null,t,r,E,s,c,m,A,N,H,ce,fe,null,ne,se)),Ia(t,E,A,!ee);return}}bp(t,r,E,s,c,m,A,N,H)}function H6(t){for(var r=t;;){var s=r.tag;if((s===0||s===11||s===15)&&r.flags&16384&&(s=r.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var m=s[c],E=m.getSnapshot;m=m.value;try{if(!er(E(),m))return!1}catch{return!1}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ia(t,r,s,c){r&=~Ou,r&=~yi,t.suspendedLanes|=r,t.pingedLanes&=~r,c&&(t.warmLanes|=r),c=t.expirationTimes;for(var m=r;0<m;){var E=31-ie(m),A=1<<E;c[E]=-1,m&=~A}s!==0&&Fe(t,s,r)}function t0(){return(At&6)===0?(dl(0),!1):!0}function Uu(){if(lt!==null){if(Ft===0)var t=lt.return;else t=lt,ea=ui=null,ru(t),Ji=null,Ys=0,t=lt;for(;t!==null;)$1(t.alternate,t),t=t.return;lt=null}}function cs(t,r){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,oy(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),xa=0,Uu(),Rt=t,lt=s=Wr(t.current,null),dt=r,Ft=0,ar=null,Oa=!1,ss=ue(t,r),Ru=!1,ls=ir=Ou=yi=za=en=0,Vn=ul=null,zu=!1,(r&8)!==0&&(r|=r&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=r;0<c;){var m=31-ie(c),E=1<<m;r|=t[m],c&=~E}return ua=r,vo(),s}function fp(t,r){et=null,P.H=nl,r===Wi||r===No?(r=Sh(),Ft=3):r===Gc?(r=Sh(),Ft=4):Ft=r===yu?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,ar=r,lt===null&&(en=1,qo(t,hr(r,t.current)))}function hp(){var t=nr.current;return t===null?!0:(dt&4194048)===dt?Er===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Er:!1}function pp(){var t=P.H;return P.H=nl,t===null?nl:t}function mp(){var t=P.A;return P.A=I6,t}function n0(){en=4,Oa||(dt&4194048)!==dt&&nr.current!==null||(ss=!0),(za&134217727)===0&&(yi&134217727)===0||Rt===null||Ia(Rt,dt,ir,!1)}function Hu(t,r,s){var c=At;At|=2;var m=pp(),E=mp();(Rt!==t||dt!==r)&&(e0=null,cs(t,r)),r=!1;var A=en;e:do try{if(Ft!==0&&lt!==null){var N=lt,H=ar;switch(Ft){case 8:Uu(),A=6;break e;case 3:case 2:case 9:case 6:nr.current===null&&(r=!0);var ee=Ft;if(Ft=0,ar=null,us(t,N,H,ee),s&&ss){A=0;break e}break;default:ee=Ft,Ft=0,ar=null,us(t,N,H,ee)}}$6(),A=en;break}catch(ce){fp(t,ce)}while(!0);return r&&t.shellSuspendCounter++,ea=ui=null,At=c,P.H=m,P.A=E,lt===null&&(Rt=null,dt=0,vo()),A}function $6(){for(;lt!==null;)gp(lt)}function q6(t,r){var s=At;At|=2;var c=pp(),m=mp();Rt!==t||dt!==r?(e0=null,Jo=We()+500,cs(t,r)):ss=ue(t,r);e:do try{if(Ft!==0&&lt!==null){r=lt;var E=ar;t:switch(Ft){case 1:Ft=0,ar=null,us(t,r,E,1);break;case 2:case 9:if(wh(E)){Ft=0,ar=null,Ep(r);break}r=function(){Ft!==2&&Ft!==9||Rt!==t||(Ft=7),Ir(t)},E.then(r,r);break e;case 3:Ft=7;break e;case 4:Ft=5;break e;case 7:wh(E)?(Ft=0,ar=null,Ep(r)):(Ft=0,ar=null,us(t,r,E,7));break;case 5:var A=null;switch(lt.tag){case 26:A=lt.memoizedState;case 5:case 27:var N=lt;if(A?rm(A):N.stateNode.complete){Ft=0,ar=null;var H=N.sibling;if(H!==null)lt=H;else{var ee=N.return;ee!==null?(lt=ee,r0(ee)):lt=null}break t}}Ft=0,ar=null,us(t,r,E,5);break;case 6:Ft=0,ar=null,us(t,r,E,6);break;case 8:Uu(),en=6;break e;default:throw Error(i(462))}}G6();break}catch(ce){fp(t,ce)}while(!0);return ea=ui=null,P.H=c,P.A=m,At=s,lt!==null?0:(Rt=null,dt=0,vo(),en)}function G6(){for(;lt!==null&&!ln();)gp(lt)}function gp(t){var r=U1(t.alternate,t,ua);t.memoizedProps=t.pendingProps,r===null?r0(t):lt=r}function Ep(t){var r=t,s=r.alternate;switch(r.tag){case 15:case 0:r=R1(s,r,r.pendingProps,r.type,void 0,dt);break;case 11:r=R1(s,r,r.pendingProps,r.type.render,r.ref,dt);break;case 5:ru(r);default:$1(s,r),r=lt=mh(r,ua),r=U1(s,r,ua)}t.memoizedProps=t.pendingProps,r===null?r0(t):lt=r}function us(t,r,s,c){ea=ui=null,ru(r),Ji=null,Ys=0;var m=r.return;try{if(j6(t,m,r,s,dt)){en=1,qo(t,hr(s,t.current)),lt=null;return}}catch(E){if(m!==null)throw lt=m,E;en=1,qo(t,hr(s,t.current)),lt=null;return}r.flags&32768?(mt||c===1?t=!0:ss||(dt&536870912)!==0?t=!1:(Oa=t=!0,(c===2||c===9||c===3||c===6)&&(c=nr.current,c!==null&&c.tag===13&&(c.flags|=16384))),yp(r,t)):r0(r)}function r0(t){var r=t;do{if((r.flags&32768)!==0){yp(r,Oa);return}t=r.return;var s=O6(r.alternate,r,ua);if(s!==null){lt=s;return}if(r=r.sibling,r!==null){lt=r;return}lt=r=t}while(r!==null);en===0&&(en=5)}function yp(t,r){do{var s=z6(t.alternate,t);if(s!==null){s.flags&=32767,lt=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!r&&(t=t.sibling,t!==null)){lt=t;return}lt=t=s}while(t!==null);en=6,lt=null}function bp(t,r,s,c,m,E,A,N,H){t.cancelPendingCommit=null;do a0();while(mn!==0);if((At&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(E=r.lanes|r.childLanes,E|=Nc,Te(t,s,E,A,N,H),t===Rt&&(lt=Rt=null,dt=0),os=r,Pa=t,xa=s,Lu=E,Pu=m,cp=c,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,K6(_e,function(){return Bp(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||c){c=P.T,P.T=null,m=Q.p,Q.p=2,A=At,At|=4;try{L6(t,r,s)}finally{At=A,Q.p=m,P.T=c}}mn=1,Cp(),vp(),Ap()}}function Cp(){if(mn===1){mn=0;var t=Pa,r=os,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var c=Q.p;Q.p=2;var m=At;At|=4;try{tp(r,t);var E=ex,A=lh(t.containerInfo),N=E.focusedElem,H=E.selectionRange;if(A!==N&&N&&N.ownerDocument&&sh(N.ownerDocument.documentElement,N)){if(H!==null&&Bc(N)){var ee=H.start,ce=H.end;if(ce===void 0&&(ce=ee),"selectionStart"in N)N.selectionStart=ee,N.selectionEnd=Math.min(ce,N.value.length);else{var fe=N.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var se=ne.getSelection(),Me=N.textContent.length,He=Math.min(H.start,Me),Mt=H.end===void 0?He:Math.min(H.end,Me);!se.extend&&He>Mt&&(A=Mt,Mt=He,He=A);var K=ih(N,He),G=ih(N,Mt);if(K&&G&&(se.rangeCount!==1||se.anchorNode!==K.node||se.anchorOffset!==K.offset||se.focusNode!==G.node||se.focusOffset!==G.offset)){var J=fe.createRange();J.setStart(K.node,K.offset),se.removeAllRanges(),He>Mt?(se.addRange(J),se.extend(G.node,G.offset)):(J.setEnd(G.node,G.offset),se.addRange(J))}}}}for(fe=[],se=N;se=se.parentNode;)se.nodeType===1&&fe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<fe.length;N++){var xe=fe[N];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}m0=!!Ju,ex=Ju=null}finally{At=m,Q.p=c,P.T=s}}t.current=r,mn=2}}function vp(){if(mn===2){mn=0;var t=Pa,r=os,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var c=Q.p;Q.p=2;var m=At;At|=4;try{X1(t,r.alternate,r)}finally{At=m,Q.p=c,P.T=s}}mn=3}}function Ap(){if(mn===4||mn===3){mn=0,On();var t=Pa,r=os,s=xa,c=cp;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?mn=5:(mn=0,os=Pa=null,kp(t,t.pendingLanes));var m=t.pendingLanes;if(m===0&&(La=null),Qr(s),r=r.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Vt,r,void 0,(r.current.flags&128)===128)}catch{}if(c!==null){r=P.T,m=Q.p,Q.p=2,P.T=null;try{for(var E=t.onRecoverableError,A=0;A<c.length;A++){var N=c[A];E(N.value,{componentStack:N.stack})}}finally{P.T=r,Q.p=m}}(xa&3)!==0&&a0(),Ir(t),m=t.pendingLanes,(s&261930)!==0&&(m&42)!==0?t===Iu?xl++:(xl=0,Iu=t):xl=0,dl(0)}}function kp(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Vs(r)))}function a0(){return Cp(),vp(),Ap(),Bp()}function Bp(){if(mn!==5)return!1;var t=Pa,r=Lu;Lu=0;var s=Qr(xa),c=P.T,m=Q.p;try{Q.p=32>s?32:s,P.T=null,s=Pu,Pu=null;var E=Pa,A=xa;if(mn=0,os=Pa=null,xa=0,(At&6)!==0)throw Error(i(331));var N=At;if(At|=4,sp(E.current),rp(E,E.current,A,s),At=N,dl(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Vt,E)}catch{}return!0}finally{Q.p=m,P.T=c,kp(t,r)}}function Dp(t,r,s){r=hr(s,r),r=Eu(t.stateNode,r,2),t=Ma(t,r,2),t!==null&&(Tt(t,2),Ir(t))}function St(t,r,s){if(t.tag===3)Dp(t,t,s);else for(;r!==null;){if(r.tag===3){Dp(r,t,s);break}else if(r.tag===1){var c=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(La===null||!La.has(c))){t=hr(s,t),s=w1(2),c=Ma(r,s,2),c!==null&&(F1(s,c,r,t),Tt(c,2),Ir(c));break}}r=r.return}}function $u(t,r,s){var c=t.pingCache;if(c===null){c=t.pingCache=new U6;var m=new Set;c.set(r,m)}else m=c.get(r),m===void 0&&(m=new Set,c.set(r,m));m.has(s)||(Ru=!0,m.add(s),t=V6.bind(null,t,r,s),r.then(t,t))}function V6(t,r,s){var c=t.pingCache;c!==null&&c.delete(r),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,Rt===t&&(dt&s)===s&&(en===4||en===3&&(dt&62914560)===dt&&300>We()-Wo?(At&2)===0&&cs(t,0):Ou|=s,ls===dt&&(ls=0)),Ir(t)}function wp(t,r){r===0&&(r=Ve()),t=li(t,r),t!==null&&(Tt(t,r),Ir(t))}function Q6(t){var r=t.memoizedState,s=0;r!==null&&(s=r.retryLane),wp(t,s)}function Y6(t,r){var s=0;switch(t.tag){case 31:case 13:var c=t.stateNode,m=t.memoizedState;m!==null&&(s=m.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(r),wp(t,s)}function K6(t,r){return Zt(t,r)}var i0=null,xs=null,qu=!1,s0=!1,Gu=!1,Ua=0;function Ir(t){t!==xs&&t.next===null&&(xs===null?i0=xs=t:xs=xs.next=t),s0=!0,qu||(qu=!0,Z6())}function dl(t,r){if(!Gu&&s0){Gu=!0;do for(var s=!1,c=i0;c!==null;){if(t!==0){var m=c.pendingLanes;if(m===0)var E=0;else{var A=c.suspendedLanes,N=c.pingedLanes;E=(1<<31-ie(42|t)+1)-1,E&=m&~(A&~N),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(s=!0,_p(c,E))}else E=dt,E=U(c,c===Rt?E:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(E&3)===0||ue(c,E)||(s=!0,_p(c,E));c=c.next}while(s);Gu=!1}}function X6(){Fp()}function Fp(){s0=qu=!1;var t=0;Ua!==0&&ly()&&(t=Ua);for(var r=We(),s=null,c=i0;c!==null;){var m=c.next,E=Sp(c,r);E===0?(c.next=null,s===null?i0=m:s.next=m,m===null&&(xs=s)):(s=c,(t!==0||(E&3)!==0)&&(s0=!0)),c=m}mn!==0&&mn!==5||dl(t),Ua!==0&&(Ua=0)}function Sp(t,r){for(var s=t.suspendedLanes,c=t.pingedLanes,m=t.expirationTimes,E=t.pendingLanes&-62914561;0<E;){var A=31-ie(E),N=1<<A,H=m[A];H===-1?((N&s)===0||(N&c)!==0)&&(m[A]=ke(N,r)):H<=r&&(t.expiredLanes|=N),E&=~N}if(r=Rt,s=dt,s=U(t,t===r?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,s===0||t===r&&(Ft===2||Ft===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&vt(c),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||ue(t,s)){if(r=s&-s,r===t.callbackPriority)return r;switch(c!==null&&vt(c),Qr(s)){case 2:case 8:s=Ee;break;case 32:s=_e;break;case 268435456:s=nt;break;default:s=_e}return c=Np.bind(null,t),s=Zt(s,c),t.callbackPriority=r,t.callbackNode=s,r}return c!==null&&c!==null&&vt(c),t.callbackPriority=2,t.callbackNode=null,2}function Np(t,r){if(mn!==0&&mn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(a0()&&t.callbackNode!==s)return null;var c=dt;return c=U(t,t===Rt?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(xp(t,c,r),Sp(t,We()),t.callbackNode!=null&&t.callbackNode===s?Np.bind(null,t):null)}function _p(t,r){if(a0())return null;xp(t,r,!0)}function Z6(){cy(function(){(At&6)!==0?Zt(le,X6):Fp()})}function Vu(){if(Ua===0){var t=Xi;t===0&&(t=rt,rt<<=1,(rt&261888)===0&&(rt=256)),Ua=t}return Ua}function Mp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ka(""+t)}function jp(t,r){var s=r.ownerDocument.createElement("input");return s.name=r.name,s.value=r.value,t.id&&s.setAttribute("form",t.id),r.parentNode.insertBefore(s,r),t=new FormData(t),s.parentNode.removeChild(s),t}function W6(t,r,s,c,m){if(r==="submit"&&s&&s.stateNode===m){var E=Mp((m[Nn]||null).action),A=c.submitter;A&&(r=(r=A[Nn]||null)?Mp(r.formAction):A.getAttribute("formAction"),r!==null&&(E=r,A=null));var N=new Eo("action","action",null,c,m);t.push({event:N,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ua!==0){var H=A?jp(m,A):new FormData(m);du(s,{pending:!0,data:H,method:m.method,action:E},null,H)}}else typeof E=="function"&&(N.preventDefault(),H=A?jp(m,A):new FormData(m),du(s,{pending:!0,data:H,method:m.method,action:E},E,H))},currentTarget:m}]})}}for(var Qu=0;Qu<Sc.length;Qu++){var Yu=Sc[Qu],J6=Yu.toLowerCase(),ey=Yu[0].toUpperCase()+Yu.slice(1);Sr(J6,"on"+ey)}Sr(uh,"onAnimationEnd"),Sr(xh,"onAnimationIteration"),Sr(dh,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(m6,"onTransitionRun"),Sr(g6,"onTransitionStart"),Sr(E6,"onTransitionCancel"),Sr(fh,"onTransitionEnd"),ge("onMouseEnter",["mouseout","mouseover"]),ge("onMouseLeave",["mouseout","mouseover"]),ge("onPointerEnter",["pointerout","pointerover"]),ge("onPointerLeave",["pointerout","pointerover"]),Kr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ty=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fl));function Tp(t,r){r=(r&4)!==0;for(var s=0;s<t.length;s++){var c=t[s],m=c.event;c=c.listeners;e:{var E=void 0;if(r)for(var A=c.length-1;0<=A;A--){var N=c[A],H=N.instance,ee=N.currentTarget;if(N=N.listener,H!==E&&m.isPropagationStopped())break e;E=N,m.currentTarget=ee;try{E(m)}catch(ce){Co(ce)}m.currentTarget=null,E=H}else for(A=0;A<c.length;A++){if(N=c[A],H=N.instance,ee=N.currentTarget,N=N.listener,H!==E&&m.isPropagationStopped())break e;E=N,m.currentTarget=ee;try{E(m)}catch(ce){Co(ce)}m.currentTarget=null,E=H}}}}function ot(t,r){var s=r[Ss];s===void 0&&(s=r[Ss]=new Set);var c=t+"__bubble";s.has(c)||(Rp(r,t,2,!1),s.add(c))}function Ku(t,r,s){var c=0;r&&(c|=4),Rp(s,t,c,r)}var l0="_reactListening"+Math.random().toString(36).slice(2);function Xu(t){if(!t[l0]){t[l0]=!0,co.forEach(function(s){s!=="selectionchange"&&(ty.has(s)||Ku(s,!1,t),Ku(s,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[l0]||(r[l0]=!0,Ku("selectionchange",!1,r))}}function Rp(t,r,s,c){switch(um(r)){case 2:var m=Sy;break;case 8:m=Ny;break;default:m=xx}s=m.bind(null,r,s,t),m=void 0,!mc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(m=!0),c?m!==void 0?t.addEventListener(r,s,{capture:!0,passive:m}):t.addEventListener(r,s,!0):m!==void 0?t.addEventListener(r,s,{passive:m}):t.addEventListener(r,s,!1)}function Zu(t,r,s,c,m){var E=c;if((r&1)===0&&(r&2)===0&&c!==null)e:for(;;){if(c===null)return;var A=c.tag;if(A===3||A===4){var N=c.stateNode.containerInfo;if(N===m)break;if(A===4)for(A=c.return;A!==null;){var H=A.tag;if((H===3||H===4)&&A.stateNode.containerInfo===m)return;A=A.return}for(;N!==null;){if(A=zn(N),A===null)return;if(H=A.tag,H===5||H===6||H===26||H===27){c=E=A;continue e}N=N.parentNode}}c=c.return}ho(function(){var ee=E,ce=Je(s),fe=[];e:{var ne=hh.get(t);if(ne!==void 0){var se=Eo,Me=t;switch(t){case"keypress":if(mo(s)===0)break e;case"keydown":case"keyup":se=Y5;break;case"focusin":Me="focus",se=bc;break;case"focusout":Me="blur",se=bc;break;case"beforeblur":case"afterblur":se=bc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=$f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=O5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=Z5;break;case uh:case xh:case dh:se=P5;break;case fh:se=J5;break;case"scroll":case"scrollend":se=T5;break;case"wheel":se=t6;break;case"copy":case"cut":case"paste":se=U5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=Gf;break;case"toggle":case"beforetoggle":se=r6}var He=(r&4)!==0,Mt=!He&&(t==="scroll"||t==="scrollend"),K=He?ne!==null?ne+"Capture":null:ne;He=[];for(var G=ee,J;G!==null;){var xe=G;if(J=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||J===null||K===null||(xe=Rs(G,K),xe!=null&&He.push(hl(G,xe,J))),Mt)break;G=G.return}0<He.length&&(ne=new se(ne,Me,null,s,ce),fe.push({event:ne,listeners:He}))}}if((r&7)===0){e:{if(ne=t==="mouseover"||t==="pointerover",se=t==="mouseout"||t==="pointerout",ne&&s!==Re&&(Me=s.relatedTarget||s.fromElement)&&(zn(Me)||Me[ba]))break e;if((se||ne)&&(ne=ce.window===ce?ce:(ne=ce.ownerDocument)?ne.defaultView||ne.parentWindow:window,se?(Me=s.relatedTarget||s.toElement,se=ee,Me=Me?zn(Me):null,Me!==null&&(Mt=o(Me),He=Me.tag,Me!==Mt||He!==5&&He!==27&&He!==6)&&(Me=null)):(se=null,Me=ee),se!==Me)){if(He=$f,xe="onMouseLeave",K="onMouseEnter",G="mouse",(t==="pointerout"||t==="pointerover")&&(He=Gf,xe="onPointerLeave",K="onPointerEnter",G="pointer"),Mt=se==null?ne:Ca(se),J=Me==null?ne:Ca(Me),ne=new He(xe,G+"leave",se,s,ce),ne.target=Mt,ne.relatedTarget=J,xe=null,zn(ce)===ee&&(He=new He(K,G+"enter",Me,s,ce),He.target=J,He.relatedTarget=Mt,xe=He),Mt=xe,se&&Me)t:{for(He=ny,K=se,G=Me,J=0,xe=K;xe;xe=He(xe))J++;xe=0;for(var Pe=G;Pe;Pe=He(Pe))xe++;for(;0<J-xe;)K=He(K),J--;for(;0<xe-J;)G=He(G),xe--;for(;J--;){if(K===G||G!==null&&K===G.alternate){He=K;break t}K=He(K),G=He(G)}He=null}else He=null;se!==null&&Op(fe,ne,se,He,!1),Me!==null&&Mt!==null&&Op(fe,Mt,Me,He,!0)}}e:{if(ne=ee?Ca(ee):window,se=ne.nodeName&&ne.nodeName.toLowerCase(),se==="select"||se==="input"&&ne.type==="file")var yt=Jf;else if(Zf(ne))if(eh)yt=f6;else{yt=x6;var ze=u6}else se=ne.nodeName,!se||se.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Aa(ee.elementType)&&(yt=Jf):yt=d6;if(yt&&(yt=yt(t,ee))){Wf(fe,yt,s,ce);break e}ze&&ze(t,ne,ee),t==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&Pi(ne,"number",ne.value)}switch(ze=ee?Ca(ee):window,t){case"focusin":(Zf(ze)||ze.contentEditable==="true")&&(Hi=ze,Dc=ee,$s=null);break;case"focusout":$s=Dc=Hi=null;break;case"mousedown":wc=!0;break;case"contextmenu":case"mouseup":case"dragend":wc=!1,oh(fe,s,ce);break;case"selectionchange":if(p6)break;case"keydown":case"keyup":oh(fe,s,ce)}var tt;if(vc)e:{switch(t){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Ui?Kf(t,s)&&(ft="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(ft="onCompositionStart");ft&&(Vf&&s.locale!=="ko"&&(Ui||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Ui&&(tt=Uf()):(Ba=ce,gc="value"in Ba?Ba.value:Ba.textContent,Ui=!0)),ze=o0(ee,ft),0<ze.length&&(ft=new qf(ft,t,null,s,ce),fe.push({event:ft,listeners:ze}),tt?ft.data=tt:(tt=Xf(s),tt!==null&&(ft.data=tt)))),(tt=i6?s6(t,s):l6(t,s))&&(ft=o0(ee,"onBeforeInput"),0<ft.length&&(ze=new qf("onBeforeInput","beforeinput",null,s,ce),fe.push({event:ze,listeners:ft}),ze.data=tt)),W6(fe,t,ee,s,ce)}Tp(fe,r)})}function hl(t,r,s){return{instance:t,listener:r,currentTarget:s}}function o0(t,r){for(var s=r+"Capture",c=[];t!==null;){var m=t,E=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||E===null||(m=Rs(t,s),m!=null&&c.unshift(hl(t,m,E)),m=Rs(t,r),m!=null&&c.push(hl(t,m,E))),t.tag===3)return c;t=t.return}return[]}function ny(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Op(t,r,s,c,m){for(var E=r._reactName,A=[];s!==null&&s!==c;){var N=s,H=N.alternate,ee=N.stateNode;if(N=N.tag,H!==null&&H===c)break;N!==5&&N!==26&&N!==27||ee===null||(H=ee,m?(ee=Rs(s,E),ee!=null&&A.unshift(hl(s,ee,H))):m||(ee=Rs(s,E),ee!=null&&A.push(hl(s,ee,H)))),s=s.return}A.length!==0&&t.push({event:r,listeners:A})}var ry=/\r\n?/g,ay=/\u0000|\uFFFD/g;function zp(t){return(typeof t=="string"?t:""+t).replace(ry,`
9
+ `).replace(ay,"")}function Lp(t,r){return r=zp(r),zp(t)===r}function _t(t,r,s,c,m,E){switch(s){case"children":typeof c=="string"?r==="body"||r==="textarea"&&c===""||$e(t,c):(typeof c=="number"||typeof c=="bigint")&&r!=="body"&&$e(t,""+c);break;case"className":Wn(t,"class",c);break;case"tabIndex":Wn(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(t,s,c);break;case"style":wt(t,c,E);break;case"data":if(r!=="object"){Wn(t,"data",c);break}case"src":case"href":if(c===""&&(r!=="a"||s!=="href")){t.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(s);break}c=ka(""+c),t.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(s==="formAction"?(r!=="input"&&_t(t,r,"name",m.name,m,null),_t(t,r,"formEncType",m.formEncType,m,null),_t(t,r,"formMethod",m.formMethod,m,null),_t(t,r,"formTarget",m.formTarget,m,null)):(_t(t,r,"encType",m.encType,m,null),_t(t,r,"method",m.method,m,null),_t(t,r,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(s);break}c=ka(""+c),t.setAttribute(s,c);break;case"onClick":c!=null&&(t.onclick=ve);break;case"onScroll":c!=null&&ot("scroll",t);break;case"onScrollEnd":c!=null&&ot("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(m.children!=null)throw Error(i(60));t.innerHTML=s}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}s=ka(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(s,""+c):t.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":c===!0?t.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(s,c):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(s,c):t.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(s):t.setAttribute(s,c);break;case"popover":ot("beforetoggle",t),ot("toggle",t),_n(t,"popover",c);break;case"xlinkActuate":In(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":In(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":In(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":In(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":In(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":In(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":In(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":In(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":In(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":_n(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Xr.get(s)||s,_n(t,s,c))}}function Wu(t,r,s,c,m,E){switch(s){case"style":wt(t,c,E);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(m.children!=null)throw Error(i(60));t.innerHTML=s}}break;case"children":typeof c=="string"?$e(t,c):(typeof c=="number"||typeof c=="bigint")&&$e(t,""+c);break;case"onScroll":c!=null&&ot("scroll",t);break;case"onScrollEnd":c!=null&&ot("scrollend",t);break;case"onClick":c!=null&&(t.onclick=ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ni.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(m=s.endsWith("Capture"),r=s.slice(2,m?s.length-7:void 0),E=t[Nn]||null,E=E!=null?E[s]:null,typeof E=="function"&&t.removeEventListener(r,E,m),typeof c=="function")){typeof E!="function"&&E!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(r,c,m);break e}s in t?t[s]=c:c===!0?t.setAttribute(s,""):_n(t,s,c)}}}function Fn(t,r,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",t),ot("load",t);var c=!1,m=!1,E;for(E in s)if(s.hasOwnProperty(E)){var A=s[E];if(A!=null)switch(E){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:_t(t,r,E,A,s,null)}}m&&_t(t,r,"srcSet",s.srcSet,s,null),c&&_t(t,r,"src",s.src,s,null);return;case"input":ot("invalid",t);var N=E=A=m=null,H=null,ee=null;for(c in s)if(s.hasOwnProperty(c)){var ce=s[c];if(ce!=null)switch(c){case"name":m=ce;break;case"type":A=ce;break;case"checked":H=ce;break;case"defaultChecked":ee=ce;break;case"value":E=ce;break;case"defaultValue":N=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(i(137,r));break;default:_t(t,r,c,ce,s,null)}}ri(t,E,N,H,ee,A,m,!1);return;case"select":ot("invalid",t),c=A=E=null;for(m in s)if(s.hasOwnProperty(m)&&(N=s[m],N!=null))switch(m){case"value":E=N;break;case"defaultValue":A=N;break;case"multiple":c=N;default:_t(t,r,m,N,s,null)}r=E,s=A,t.multiple=!!c,r!=null?kn(t,!!c,r,!1):s!=null&&kn(t,!!c,s,!0);return;case"textarea":ot("invalid",t),E=m=c=null;for(A in s)if(s.hasOwnProperty(A)&&(N=s[A],N!=null))switch(A){case"value":c=N;break;case"defaultValue":m=N;break;case"children":E=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:_t(t,r,A,N,s,null)}Ii(t,c,m,E);return;case"option":for(H in s)s.hasOwnProperty(H)&&(c=s[H],c!=null)&&(H==="selected"?t.selected=c&&typeof c!="function"&&typeof c!="symbol":_t(t,r,H,c,s,null));return;case"dialog":ot("beforetoggle",t),ot("toggle",t),ot("cancel",t),ot("close",t);break;case"iframe":case"object":ot("load",t);break;case"video":case"audio":for(c=0;c<fl.length;c++)ot(fl[c],t);break;case"image":ot("error",t),ot("load",t);break;case"details":ot("toggle",t);break;case"embed":case"source":case"link":ot("error",t),ot("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in s)if(s.hasOwnProperty(ee)&&(c=s[ee],c!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:_t(t,r,ee,c,s,null)}return;default:if(Aa(r)){for(ce in s)s.hasOwnProperty(ce)&&(c=s[ce],c!==void 0&&Wu(t,r,ce,c,s,void 0));return}}for(N in s)s.hasOwnProperty(N)&&(c=s[N],c!=null&&_t(t,r,N,c,s,null))}function iy(t,r,s,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,E=null,A=null,N=null,H=null,ee=null,ce=null;for(se in s){var fe=s[se];if(s.hasOwnProperty(se)&&fe!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":H=fe;default:c.hasOwnProperty(se)||_t(t,r,se,null,c,fe)}}for(var ne in c){var se=c[ne];if(fe=s[ne],c.hasOwnProperty(ne)&&(se!=null||fe!=null))switch(ne){case"type":E=se;break;case"name":m=se;break;case"checked":ee=se;break;case"defaultChecked":ce=se;break;case"value":A=se;break;case"defaultValue":N=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,r));break;default:se!==fe&&_t(t,r,ne,se,c,fe)}}Ms(t,A,N,H,ee,ce,E,m);return;case"select":se=A=N=ne=null;for(E in s)if(H=s[E],s.hasOwnProperty(E)&&H!=null)switch(E){case"value":break;case"multiple":se=H;default:c.hasOwnProperty(E)||_t(t,r,E,null,c,H)}for(m in c)if(E=c[m],H=s[m],c.hasOwnProperty(m)&&(E!=null||H!=null))switch(m){case"value":ne=E;break;case"defaultValue":N=E;break;case"multiple":A=E;default:E!==H&&_t(t,r,m,E,c,H)}r=N,s=A,c=se,ne!=null?kn(t,!!s,ne,!1):!!c!=!!s&&(r!=null?kn(t,!!s,r,!0):kn(t,!!s,s?[]:"",!1));return;case"textarea":se=ne=null;for(N in s)if(m=s[N],s.hasOwnProperty(N)&&m!=null&&!c.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:_t(t,r,N,null,c,m)}for(A in c)if(m=c[A],E=s[A],c.hasOwnProperty(A)&&(m!=null||E!=null))switch(A){case"value":ne=m;break;case"defaultValue":se=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==E&&_t(t,r,A,m,c,E)}xo(t,ne,se);return;case"option":for(var Me in s)ne=s[Me],s.hasOwnProperty(Me)&&ne!=null&&!c.hasOwnProperty(Me)&&(Me==="selected"?t.selected=!1:_t(t,r,Me,null,c,ne));for(H in c)ne=c[H],se=s[H],c.hasOwnProperty(H)&&ne!==se&&(ne!=null||se!=null)&&(H==="selected"?t.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":_t(t,r,H,ne,c,se));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in s)ne=s[He],s.hasOwnProperty(He)&&ne!=null&&!c.hasOwnProperty(He)&&_t(t,r,He,null,c,ne);for(ee in c)if(ne=c[ee],se=s[ee],c.hasOwnProperty(ee)&&ne!==se&&(ne!=null||se!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,r));break;default:_t(t,r,ee,ne,c,se)}return;default:if(Aa(r)){for(var Mt in s)ne=s[Mt],s.hasOwnProperty(Mt)&&ne!==void 0&&!c.hasOwnProperty(Mt)&&Wu(t,r,Mt,void 0,c,ne);for(ce in c)ne=c[ce],se=s[ce],!c.hasOwnProperty(ce)||ne===se||ne===void 0&&se===void 0||Wu(t,r,ce,ne,c,se);return}}for(var K in s)ne=s[K],s.hasOwnProperty(K)&&ne!=null&&!c.hasOwnProperty(K)&&_t(t,r,K,null,c,ne);for(fe in c)ne=c[fe],se=s[fe],!c.hasOwnProperty(fe)||ne===se||ne==null&&se==null||_t(t,r,fe,ne,c,se)}function Pp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var m=s[c],E=m.transferSize,A=m.initiatorType,N=m.duration;if(E&&N&&Pp(A)){for(A=0,N=m.responseEnd,c+=1;c<s.length;c++){var H=s[c],ee=H.startTime;if(ee>N)break;var ce=H.transferSize,fe=H.initiatorType;ce&&Pp(fe)&&(H=H.responseEnd,A+=ce*(H<N?1:(N-ee)/(H-ee)))}if(--c,r+=8*(E+A)/(m.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ju=null,ex=null;function c0(t){return t.nodeType===9?t:t.ownerDocument}function Ip(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Up(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function tx(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var nx=null;function ly(){var t=window.event;return t&&t.type==="popstate"?t===nx?!1:(nx=t,!0):(nx=null,!1)}var Hp=typeof setTimeout=="function"?setTimeout:void 0,oy=typeof clearTimeout=="function"?clearTimeout:void 0,$p=typeof Promise=="function"?Promise:void 0,cy=typeof queueMicrotask=="function"?queueMicrotask:typeof $p<"u"?function(t){return $p.resolve(null).then(t).catch(uy)}:Hp;function uy(t){setTimeout(function(){throw t})}function Ha(t){return t==="head"}function qp(t,r){var s=r,c=0;do{var m=s.nextSibling;if(t.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"||s==="/&"){if(c===0){t.removeChild(m),ps(r);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")pl(t.ownerDocument.documentElement);else if(s==="head"){s=t.ownerDocument.head,pl(s);for(var E=s.firstChild;E;){var A=E.nextSibling,N=E.nodeName;E[ti]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&E.rel.toLowerCase()==="stylesheet"||s.removeChild(E),E=A}}else s==="body"&&pl(t.ownerDocument.body);s=m}while(s);ps(r)}function Gp(t,r){var s=t;t=0;do{var c=s.nextSibling;if(s.nodeType===1?r?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(r?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(t===0)break;t--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||t++;s=c}while(s)}function rx(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var s=r;switch(r=r.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":rx(s),Ns(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function xy(t,r,s,c){for(;t.nodeType===1;){var m=s;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[ti])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(E=t.getAttribute("rel"),E==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(E!==m.rel||t.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||t.getAttribute("title")!==(m.title==null?null:m.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(E=t.getAttribute("src"),(E!==(m.src==null?null:m.src)||t.getAttribute("type")!==(m.type==null?null:m.type)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&E&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var E=m.name==null?null:""+m.name;if(m.type==="hidden"&&t.getAttribute("name")===E)return t}else return t;if(t=yr(t.nextSibling),t===null)break}return null}function dy(t,r,s){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=yr(t.nextSibling),t===null))return null;return t}function Vp(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=yr(t.nextSibling),t===null))return null;return t}function ax(t){return t.data==="$?"||t.data==="$~"}function ix(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function fy(t,r){var s=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||s.readyState!=="loading")r();else{var c=function(){r(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function yr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var sx=null;function Qp(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"||s==="/&"){if(r===0)return yr(t.nextSibling);r--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||r++}t=t.nextSibling}return null}function Yp(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(r===0)return t;r--}else s!=="/$"&&s!=="/&"||r++}t=t.previousSibling}return null}function Kp(t,r,s){switch(r=c0(s),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function pl(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Ns(t)}var br=new Map,Xp=new Set;function u0(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var da=Q.d;Q.d={f:hy,r:py,D:my,C:gy,L:Ey,m:yy,X:Cy,S:by,M:vy};function hy(){var t=da.f(),r=t0();return t||r}function py(t){var r=Yr(t);r!==null&&r.tag===5&&r.type==="form"?f1(r):da.r(t)}var ds=typeof document>"u"?null:document;function Zp(t,r,s){var c=ds;if(c&&typeof r=="string"&&r){var m=Un(r);m='link[rel="'+t+'"][href="'+m+'"]',typeof s=="string"&&(m+='[crossorigin="'+s+'"]'),Xp.has(m)||(Xp.add(m),t={rel:t,crossOrigin:s,href:r},c.querySelector(m)===null&&(r=c.createElement("link"),Fn(r,"link",t),cn(r),c.head.appendChild(r)))}}function my(t){da.D(t),Zp("dns-prefetch",t,null)}function gy(t,r){da.C(t,r),Zp("preconnect",t,r)}function Ey(t,r,s){da.L(t,r,s);var c=ds;if(c&&t&&r){var m='link[rel="preload"][as="'+Un(r)+'"]';r==="image"&&s&&s.imageSrcSet?(m+='[imagesrcset="'+Un(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(m+='[imagesizes="'+Un(s.imageSizes)+'"]')):m+='[href="'+Un(t)+'"]';var E=m;switch(r){case"style":E=fs(t);break;case"script":E=hs(t)}br.has(E)||(t=p({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:t,as:r},s),br.set(E,t),c.querySelector(m)!==null||r==="style"&&c.querySelector(ml(E))||r==="script"&&c.querySelector(gl(E))||(r=c.createElement("link"),Fn(r,"link",t),cn(r),c.head.appendChild(r)))}}function yy(t,r){da.m(t,r);var s=ds;if(s&&t){var c=r&&typeof r.as=="string"?r.as:"script",m='link[rel="modulepreload"][as="'+Un(c)+'"][href="'+Un(t)+'"]',E=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=hs(t)}if(!br.has(E)&&(t=p({rel:"modulepreload",href:t},r),br.set(E,t),s.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(gl(E)))return}c=s.createElement("link"),Fn(c,"link",t),cn(c),s.head.appendChild(c)}}}function by(t,r,s){da.S(t,r,s);var c=ds;if(c&&t){var m=va(c).hoistableStyles,E=fs(t);r=r||"default";var A=m.get(E);if(!A){var N={loading:0,preload:null};if(A=c.querySelector(ml(E)))N.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":r},s),(s=br.get(E))&&lx(t,s);var H=A=c.createElement("link");cn(H),Fn(H,"link",t),H._p=new Promise(function(ee,ce){H.onload=ee,H.onerror=ce}),H.addEventListener("load",function(){N.loading|=1}),H.addEventListener("error",function(){N.loading|=2}),N.loading|=4,x0(A,r,c)}A={type:"stylesheet",instance:A,count:1,state:N},m.set(E,A)}}}function Cy(t,r){da.X(t,r);var s=ds;if(s&&t){var c=va(s).hoistableScripts,m=hs(t),E=c.get(m);E||(E=s.querySelector(gl(m)),E||(t=p({src:t,async:!0},r),(r=br.get(m))&&ox(t,r),E=s.createElement("script"),cn(E),Fn(E,"link",t),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},c.set(m,E))}}function vy(t,r){da.M(t,r);var s=ds;if(s&&t){var c=va(s).hoistableScripts,m=hs(t),E=c.get(m);E||(E=s.querySelector(gl(m)),E||(t=p({src:t,async:!0,type:"module"},r),(r=br.get(m))&&ox(t,r),E=s.createElement("script"),cn(E),Fn(E,"link",t),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},c.set(m,E))}}function Wp(t,r,s,c){var m=(m=re.current)?u0(m):null;if(!m)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=fs(s.href),s=va(m).hoistableStyles,c=s.get(r),c||(c={type:"style",instance:null,count:0,state:null},s.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=fs(s.href);var E=va(m).hoistableStyles,A=E.get(t);if(A||(m=m.ownerDocument||m,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(t,A),(E=m.querySelector(ml(t)))&&!E._p&&(A.instance=E,A.state.loading=5),br.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},br.set(t,s),E||Ay(m,t,s,A.state))),r&&c===null)throw Error(i(528,""));return A}if(r&&c!==null)throw Error(i(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=hs(s),s=va(m).hoistableScripts,c=s.get(r),c||(c={type:"script",instance:null,count:0,state:null},s.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function fs(t){return'href="'+Un(t)+'"'}function ml(t){return'link[rel="stylesheet"]['+t+"]"}function Jp(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function Ay(t,r,s,c){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?c.loading=1:(r=t.createElement("link"),c.preload=r,r.addEventListener("load",function(){return c.loading|=1}),r.addEventListener("error",function(){return c.loading|=2}),Fn(r,"link",s),cn(r),t.head.appendChild(r))}function hs(t){return'[src="'+Un(t)+'"]'}function gl(t){return"script[async]"+t}function em(t,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var c=t.querySelector('style[data-href~="'+Un(s.href)+'"]');if(c)return r.instance=c,cn(c),c;var m=p({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),cn(c),Fn(c,"style",m),x0(c,s.precedence,t),r.instance=c;case"stylesheet":m=fs(s.href);var E=t.querySelector(ml(m));if(E)return r.state.loading|=4,r.instance=E,cn(E),E;c=Jp(s),(m=br.get(m))&&lx(c,m),E=(t.ownerDocument||t).createElement("link"),cn(E);var A=E;return A._p=new Promise(function(N,H){A.onload=N,A.onerror=H}),Fn(E,"link",c),r.state.loading|=4,x0(E,s.precedence,t),r.instance=E;case"script":return E=hs(s.src),(m=t.querySelector(gl(E)))?(r.instance=m,cn(m),m):(c=s,(m=br.get(E))&&(c=p({},s),ox(c,m)),t=t.ownerDocument||t,m=t.createElement("script"),cn(m),Fn(m,"link",c),t.head.appendChild(m),r.instance=m);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(c=r.instance,r.state.loading|=4,x0(c,s.precedence,t));return r.instance}function x0(t,r,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,E=m,A=0;A<c.length;A++){var N=c[A];if(N.dataset.precedence===r)E=N;else if(E!==m)break}E?E.parentNode.insertBefore(t,E.nextSibling):(r=s.nodeType===9?s.head:s,r.insertBefore(t,r.firstChild))}function lx(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function ox(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var d0=null;function tm(t,r,s){if(d0===null){var c=new Map,m=d0=new Map;m.set(s,c)}else m=d0,c=m.get(s),c||(c=new Map,m.set(s,c));if(c.has(t))return c;for(c.set(t,null),s=s.getElementsByTagName(t),m=0;m<s.length;m++){var E=s[m];if(!(E[ti]||E[nn]||t==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var A=E.getAttribute(r)||"";A=t+A;var N=c.get(A);N?N.push(E):c.set(A,[E])}}return c}function nm(t,r,s){t=t.ownerDocument||t,t.head.insertBefore(s,r==="title"?t.querySelector("head > title"):null)}function ky(t,r,s){if(s===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function rm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function By(t,r,s,c){if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var m=fs(c.href),E=r.querySelector(ml(m));if(E){r=E._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=f0.bind(t),r.then(t,t)),s.state.loading|=4,s.instance=E,cn(E);return}E=r.ownerDocument||r,c=Jp(c),(m=br.get(m))&&lx(c,m),E=E.createElement("link"),cn(E);var A=E;A._p=new Promise(function(N,H){A.onload=N,A.onerror=H}),Fn(E,"link",c),s.instance=E}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,r),(r=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=f0.bind(t),r.addEventListener("load",s),r.addEventListener("error",s))}}var cx=0;function Dy(t,r){return t.stylesheets&&t.count===0&&p0(t,t.stylesheets),0<t.count||0<t.imgCount?function(s){var c=setTimeout(function(){if(t.stylesheets&&p0(t,t.stylesheets),t.unsuspend){var E=t.unsuspend;t.unsuspend=null,E()}},6e4+r);0<t.imgBytes&&cx===0&&(cx=62500*sy());var m=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&p0(t,t.stylesheets),t.unsuspend)){var E=t.unsuspend;t.unsuspend=null,E()}},(t.imgBytes>cx?50:800)+r);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function f0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)p0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var h0=null;function p0(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,h0=new Map,r.forEach(wy,t),h0=null,f0.call(t))}function wy(t,r){if(!(r.state.loading&4)){var s=h0.get(t);if(s)var c=s.get(null);else{s=new Map,h0.set(t,s);for(var m=t.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<m.length;E++){var A=m[E];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(s.set(A.dataset.precedence,A),c=A)}c&&s.set(null,c)}m=r.instance,A=m.getAttribute("data-precedence"),E=s.get(A)||c,E===c&&s.set(null,m),s.set(A,m),this.count++,c=f0.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),E?E.parentNode.insertBefore(m,E.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(m,t.firstChild)),r.state.loading|=4}}var El={$$typeof:S,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Fy(t,r,s,c,m,E,A,N,H){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ht(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.hiddenUpdates=Ht(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=E,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function am(t,r,s,c,m,E,A,N,H,ee,ce,fe){return t=new Fy(t,r,s,A,H,ee,ce,fe,N),r=1,E===!0&&(r|=24),E=tr(3,null,null,r),t.current=E,E.stateNode=t,r=Hc(),r.refCount++,t.pooledCache=r,r.refCount++,E.memoizedState={element:c,isDehydrated:s,cache:r},Vc(E),t}function im(t){return t?(t=Gi,t):Gi}function sm(t,r,s,c,m,E){m=im(m),c.context===null?c.context=m:c.pendingContext=m,c=_a(r),c.payload={element:s},E=E===void 0?null:E,E!==null&&(c.callback=E),s=Ma(t,c,r),s!==null&&(Qn(s,t,r),Xs(s,t,r))}function lm(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<r?s:r}}function ux(t,r){lm(t,r),(t=t.alternate)&&lm(t,r)}function om(t){if(t.tag===13||t.tag===31){var r=li(t,67108864);r!==null&&Qn(r,t,67108864),ux(t,67108864)}}function cm(t){if(t.tag===13||t.tag===31){var r=sr();r=Qt(r);var s=li(t,r);s!==null&&Qn(s,t,r),ux(t,r)}}var m0=!0;function Sy(t,r,s,c){var m=P.T;P.T=null;var E=Q.p;try{Q.p=2,xx(t,r,s,c)}finally{Q.p=E,P.T=m}}function Ny(t,r,s,c){var m=P.T;P.T=null;var E=Q.p;try{Q.p=8,xx(t,r,s,c)}finally{Q.p=E,P.T=m}}function xx(t,r,s,c){if(m0){var m=dx(c);if(m===null)Zu(t,r,c,g0,s),xm(t,c);else if(My(m,t,r,s,c))c.stopPropagation();else if(xm(t,c),r&4&&-1<_y.indexOf(t)){for(;m!==null;){var E=Yr(m);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var A=on(E.pendingLanes);if(A!==0){var N=E;for(N.pendingLanes|=2,N.entangledLanes|=2;A;){var H=1<<31-ie(A);N.entanglements[1]|=H,A&=~H}Ir(E),(At&6)===0&&(Jo=We()+500,dl(0))}}break;case 31:case 13:N=li(E,2),N!==null&&Qn(N,E,2),t0(),ux(E,2)}if(E=dx(c),E===null&&Zu(t,r,c,g0,s),E===m)break;m=E}m!==null&&c.stopPropagation()}else Zu(t,r,c,null,s)}}function dx(t){return t=Je(t),fx(t)}var g0=null;function fx(t){if(g0=null,t=zn(t),t!==null){var r=o(t);if(r===null)t=null;else{var s=r.tag;if(s===13){if(t=u(r),t!==null)return t;t=null}else if(s===31){if(t=d(r),t!==null)return t;t=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return g0=t,null}function um(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Cn()){case le:return 2;case Ee:return 8;case _e:case Ke:return 32;case nt:return 268435456;default:return 32}default:return 32}}var hx=!1,$a=null,qa=null,Ga=null,yl=new Map,bl=new Map,Va=[],_y="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function xm(t,r){switch(t){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":yl.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":bl.delete(r.pointerId)}}function Cl(t,r,s,c,m,E){return t===null||t.nativeEvent!==E?(t={blockedOn:r,domEventName:s,eventSystemFlags:c,nativeEvent:E,targetContainers:[m]},r!==null&&(r=Yr(r),r!==null&&om(r)),t):(t.eventSystemFlags|=c,r=t.targetContainers,m!==null&&r.indexOf(m)===-1&&r.push(m),t)}function My(t,r,s,c,m){switch(r){case"focusin":return $a=Cl($a,t,r,s,c,m),!0;case"dragenter":return qa=Cl(qa,t,r,s,c,m),!0;case"mouseover":return Ga=Cl(Ga,t,r,s,c,m),!0;case"pointerover":var E=m.pointerId;return yl.set(E,Cl(yl.get(E)||null,t,r,s,c,m)),!0;case"gotpointercapture":return E=m.pointerId,bl.set(E,Cl(bl.get(E)||null,t,r,s,c,m)),!0}return!1}function dm(t){var r=zn(t.target);if(r!==null){var s=o(r);if(s!==null){if(r=s.tag,r===13){if(r=u(s),r!==null){t.blockedOn=r,Ri(t.priority,function(){cm(s)});return}}else if(r===31){if(r=d(s),r!==null){t.blockedOn=r,Ri(t.priority,function(){cm(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function E0(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var s=dx(t.nativeEvent);if(s===null){s=t.nativeEvent;var c=new s.constructor(s.type,s);Re=c,s.target.dispatchEvent(c),Re=null}else return r=Yr(s),r!==null&&om(r),t.blockedOn=s,!1;r.shift()}return!0}function fm(t,r,s){E0(t)&&s.delete(r)}function jy(){hx=!1,$a!==null&&E0($a)&&($a=null),qa!==null&&E0(qa)&&(qa=null),Ga!==null&&E0(Ga)&&(Ga=null),yl.forEach(fm),bl.forEach(fm)}function y0(t,r){t.blockedOn===r&&(t.blockedOn=null,hx||(hx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,jy)))}var b0=null;function hm(t){b0!==t&&(b0=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){b0===t&&(b0=null);for(var r=0;r<t.length;r+=3){var s=t[r],c=t[r+1],m=t[r+2];if(typeof c!="function"){if(fx(c||s)===null)continue;break}var E=Yr(s);E!==null&&(t.splice(r,3),r-=3,du(E,{pending:!0,data:m,method:s.method,action:c},c,m))}}))}function ps(t){function r(H){return y0(H,t)}$a!==null&&y0($a,t),qa!==null&&y0(qa,t),Ga!==null&&y0(Ga,t),yl.forEach(r),bl.forEach(r);for(var s=0;s<Va.length;s++){var c=Va[s];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Va.length&&(s=Va[0],s.blockedOn===null);)dm(s),s.blockedOn===null&&Va.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var m=s[c],E=s[c+1],A=m[Nn]||null;if(typeof E=="function")A||hm(s);else if(A){var N=null;if(E&&E.hasAttribute("formAction")){if(m=E,A=E[Nn]||null)N=A.formAction;else if(fx(m)!==null)continue}else N=A.action;typeof N=="function"?s[c+1]=N:(s.splice(c,3),c-=3),hm(s)}}}function pm(){function t(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(A){return m=A})},focusReset:"manual",scroll:"manual"})}function r(){m!==null&&(m(),m=null),c||setTimeout(s,20)}function s(){if(!c&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),m!==null&&(m(),m=null)}}}function px(t){this._internalRoot=t}C0.prototype.render=px.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var s=r.current,c=sr();sm(s,c,t,r,null,null)},C0.prototype.unmount=px.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;sm(t.current,2,null,t,null,null),t0(),r[ba]=null}};function C0(t){this._internalRoot=t}C0.prototype.unstable_scheduleHydration=function(t){if(t){var r=Ti();t={blockedOn:null,target:t,priority:r};for(var s=0;s<Va.length&&r!==0&&r<Va[s].priority;s++);Va.splice(s,0,t),s===0&&dm(t)}};var mm=n.version;if(mm!=="19.2.7")throw Error(i(527,mm,"19.2.7"));Q.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=h(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var Ty={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var v0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!v0.isDisabled&&v0.supportsFiber)try{Vt=v0.inject(Ty),Bt=v0}catch{}}return Al.createRoot=function(t,r){if(!l(t))throw Error(i(299));var s=!1,c="",m=A1,E=k1,A=B1;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(E=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError)),r=am(t,1,!1,null,null,s,c,null,m,E,A,pm),t[ba]=r.current,Xu(t),new px(r)},Al.hydrateRoot=function(t,r,s){if(!l(t))throw Error(i(299));var c=!1,m="",E=A1,A=k1,N=B1,H=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(E=s.onUncaughtError),s.onCaughtError!==void 0&&(A=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError),s.formState!==void 0&&(H=s.formState)),r=am(t,1,!0,r,s??null,c,m,H,E,A,N,pm),r.context=im(null),s=r.current,c=sr(),c=Qt(c),m=_a(c),m.callback=null,Ma(s,m,c),s=c,r.current.lanes=s,Tt(r,s),Ir(r),t[ba]=r.current,Xu(t),new C0(r)},Al.version="19.2.7",Al}var Om;function F4(){if(Om)return Ex.exports;Om=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Ex.exports=w4(),Ex.exports}var S4=F4();var Ud=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,K2=/^[\\/]{2}/;function N4(e,n){return n+e.replace(/\\/g,"/")}var zm="popstate";function Lm(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function _4(e={}){function n(i,l){let o=l.state?.masked,{pathname:u,search:d,hash:f}=o||i.location;return ld("",{pathname:u,search:d,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default",o?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function a(i,l){return typeof l=="string"?l:Hl(l)}return j4(n,a,null,e)}function Gt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function kr(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function M4(){return Math.random().toString(36).substring(2,10)}function Pm(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ld(e,n,a=null,i,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?As(n):n,state:a,key:n&&n.key||i||M4(),mask:l}}function Hl({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function As(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function j4(e,n,a,i={}){let{window:l=document.defaultView,v5Compat:o=!1}=i,u=l.history,d="POP",f=null,h=g();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function g(){return(u.state||{idx:null}).idx}function p(){d="POP";let k=g(),B=k==null?null:k-h;h=k,f&&f({action:d,location:v.location,delta:B})}function y(k,B){d="PUSH";let j=Lm(k)?k:ld(v.location,k,B);h=g()+1;let S=Pm(j,h),_=v.createHref(j.mask||j);try{u.pushState(S,"",_)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(_)}o&&f&&f({action:d,location:v.location,delta:1})}function b(k,B){d="REPLACE";let j=Lm(k)?k:ld(v.location,k,B);h=g();let S=Pm(j,h),_=v.createHref(j.mask||j);u.replaceState(S,"",_),o&&f&&f({action:d,location:v.location,delta:0})}function C(k){return T4(l,k)}let v={get action(){return d},get location(){return e(l,u)},listen(k){if(f)throw new Error("A history only accepts one active listener");return l.addEventListener(zm,p),f=k,()=>{l.removeEventListener(zm,p),f=null}},createHref(k){return n(l,k)},createURL:C,encodeLocation(k){let B=C(k);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:y,replace:b,go(k){return u.go(k)}};return v}function T4(e,n,a=!1){let i="http://localhost";e&&(i=e.location.origin!=="null"?e.location.origin:e.location.href),Gt(i,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:Hl(n);return l=l.replace(/ $/,"%20"),!a&&K2.test(l)&&(l=i+l),new URL(l,i)}function X2(e,n,a="/"){return R4(e,n,a,!1)}function R4(e,n,a,i,l){let o=typeof n=="string"?As(n):n,u=ma(o.pathname||"/",a);if(u==null)return null;let d=O4(e),f=null,h=t8(u);for(let g=0;f==null&&g<d.length;++g)f=V4(d[g],h,i);return f}function O4(e){let n=Z2(e);return z4(n),n}function Z2(e,n=[],a=[],i="",l=!1){let o=(u,d,f=l,h)=>{let g={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&f)return;Gt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let p=jr([i,g.relativePath]),y=a.concat(g);u.children&&u.children.length>0&&(Gt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Z2(u.children,n,y,p,f)),!(u.path==null&&!u.index)&&n.push({path:p,score:q4(p,u.index),routesMeta:y.map((b,C)=>{let[v,k]=e8(b.relativePath,b.caseSensitive,C===y.length-1);return{...b,matcher:v,compiledParams:k}})})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))o(u,d);else for(let f of W2(u.path))o(u,d,!0,f)}),n}function W2(e){let n=e.split("/");if(n.length===0)return[];let[a,...i]=n,l=a.endsWith("?"),o=a.replace(/\?$/,"");if(i.length===0)return l?[o,""]:[o];let u=W2(i.join("/")),d=[];return d.push(...u.map(f=>f===""?o:[o,f].join("/"))),l&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function z4(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:G4(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var L4=/^:[\w-]+$/,P4=3,I4=2,U4=1,H4=10,$4=-2,Im=e=>e==="*";function q4(e,n){let a=e.split("/"),i=a.length;return a.some(Im)&&(i+=$4),n&&(i+=I4),a.filter(l=>!Im(l)).reduce((l,o)=>l+(L4.test(o)?P4:o===""?U4:H4),i)}function G4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,l)=>i===n[l])?e[e.length-1]-n[n.length-1]:0}function V4(e,n,a=!1){let{routesMeta:i}=e,l={},o="/",u=[];for(let d=0;d<i.length;++d){let f=i[d],h=d===i.length-1,g=o==="/"?n:n.slice(o.length)||"/",p={path:f.relativePath,caseSensitive:f.caseSensitive,end:h},y=f.matcher&&f.compiledParams?J2(p,g,f.matcher,f.compiledParams):$l(p,g),b=f.route;if(!y&&h&&a&&!i[i.length-1].route.index&&(y=$l({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},g)),!y)return null;Object.assign(l,y.params),u.push({params:l,pathname:jr([o,y.pathname]),pathnameBase:K4(jr([o,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(o=jr([o,y.pathnameBase]))}return u}function $l(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=e8(e.path,e.caseSensitive,e.end);return J2(e,n,a,i)}function J2(e,n,a,i){let l=n.match(a);if(!l)return null;let o=l[0],u=o.replace(/(.)\/+$/,"$1"),d=l.slice(1);return{params:i.reduce((h,{paramName:g,isOptional:p},y)=>{if(g==="*"){let C=d[y]||"";u=o.slice(0,o.length-C.length).replace(/(.)\/+$/,"$1")}const b=d[y];return p&&!b?h[g]=void 0:h[g]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:e}}function e8(e,n=!1,a=!0){kr(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 i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f,h,g)=>{if(i.push({paramName:d,isOptional:f!=null}),f){let p=g.charAt(h+u.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),i]}function t8(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return kr(!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 (${n}).`),e}}function ma(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}function Q4(e,n="/"){let{pathname:a,search:i="",hash:l=""}=typeof e=="string"?As(e):e,o;return a?(a=n8(a),a.startsWith("/")?o=Um(a.substring(1),"/"):o=Um(a,n)):o=n,{pathname:o,search:X4(i),hash:Z4(l)}}function Um(e,n){let a=Q0(n).split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function vx(e,n,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Y4(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function Hd(e){let n=Y4(e);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function tc(e,n,a,i=!1){let l;typeof e=="string"?l=As(e):(l={...e},Gt(!l.pathname||!l.pathname.includes("?"),vx("?","pathname","search",l)),Gt(!l.pathname||!l.pathname.includes("#"),vx("#","pathname","hash",l)),Gt(!l.search||!l.search.includes("#"),vx("#","search","hash",l)));let o=e===""||l.pathname==="",u=o?"/":l.pathname,d;if(u==null)d=a;else{let p=n.length-1;if(!i&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),p-=1;l.pathname=y.join("/")}d=p>=0?n[p]:"/"}let f=Q4(l,d),h=u&&u!=="/"&&u.endsWith("/"),g=(o||u===".")&&a.endsWith("/");return!f.pathname.endsWith("/")&&(h||g)&&(f.pathname+="/"),f}var n8=e=>e.replace(/[\\/]{2,}/g,"/"),jr=e=>n8(e.join("/")),Q0=e=>e.replace(/\/+$/,""),K4=e=>Q0(e).replace(/^\/*/,"/"),X4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,W4=class{constructor(e,n,a,i=!1){this.status=e,this.statusText=n||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function J4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function eb(e){let n=e.map(a=>a.route.path).filter(Boolean);return jr(n)||"/"}var r8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function a8(e,n){let a=e;if(typeof a!="string"||!Ud.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,l=!1;if(r8)try{let o=new URL(window.location.href),u=K2.test(a)?new URL(N4(a,o.protocol)):new URL(a),d=ma(u.pathname,n);u.origin===o.origin&&d!=null?a=d+u.search+u.hash:l=!0}catch{kr(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i8=["POST","PUT","PATCH","DELETE"];new Set(i8);var tb=["GET",...i8];new Set(tb);var nb=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function rb(e){try{return nb.includes(new URL(e).protocol)}catch{return!1}}var ks=D.createContext(null);ks.displayName="DataRouter";var nc=D.createContext(null);nc.displayName="DataRouterState";var s8=D.createContext(!1);function ab(){return D.useContext(s8)}var l8=D.createContext({isTransitioning:!1});l8.displayName="ViewTransition";var ib=D.createContext(new Map);ib.displayName="Fetchers";var sb=D.createContext(null);sb.displayName="Await";var xr=D.createContext(null);xr.displayName="Navigation";var Jl=D.createContext(null);Jl.displayName="Location";var Dr=D.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var $d=D.createContext(null);$d.displayName="RouteError";var o8="REACT_ROUTER_ERROR",lb="REDIRECT",ob="ROUTE_ERROR_RESPONSE";function cb(e){if(e.startsWith(`${o8}:${lb}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function ub(e){if(e.startsWith(`${o8}:${ob}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new W4(n.status,n.statusText,n.data)}catch{}}function xb(e,{relative:n}={}){Gt(Ni(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=D.useContext(xr),{hash:l,pathname:o,search:u}=eo(e,{relative:n}),d=o;return a!=="/"&&(d=o==="/"?a:jr([a,o])),i.createHref({pathname:d,search:u,hash:l})}function Ni(){return D.useContext(Jl)!=null}function wr(){return Gt(Ni(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(Jl).location}function db(e){Gt(Ni(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=wr();return D.useMemo(()=>$l(e,t8(n)),[n,e])}var c8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function u8(e){D.useContext(xr).static||D.useLayoutEffect(e)}function _i(){let{isDataRoute:e}=D.useContext(Dr);return e?Fb():fb()}function fb(){Gt(Ni(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(ks),{basename:n,navigator:a}=D.useContext(xr),{matches:i}=D.useContext(Dr),{pathname:l}=wr(),o=JSON.stringify(Hd(i)),u=D.useRef(!1);return u8(()=>{u.current=!0}),D.useCallback((f,h={})=>{if(kr(u.current,c8),!u.current)return;if(typeof f=="number"){a.go(f);return}let g=tc(f,JSON.parse(o),l,h.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:jr([n,g.pathname])),(h.replace?a.replace:a.push)(g,h.state,h)},[n,a,o,l,e])}var hb=D.createContext(null);function pb(e){let n=D.useContext(Dr).outlet;return D.useMemo(()=>n&&D.createElement(hb.Provider,{value:e},n),[n,e])}function mb(){let{matches:e}=D.useContext(Dr);return e[e.length-1]?.params??{}}function eo(e,{relative:n}={}){let{matches:a}=D.useContext(Dr),{pathname:i}=wr(),l=JSON.stringify(Hd(a));return D.useMemo(()=>tc(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function gb(e,n){return x8(e,n)}function x8(e,n,a){Gt(Ni(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=D.useContext(xr),{matches:l}=D.useContext(Dr),o=l[l.length-1],u=o?o.params:{},d=o?o.pathname:"/",f=o?o.pathnameBase:"/",h=o&&o.route;{let k=h&&h.path||"";f8(d,!h||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${k}">) 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.
10
+
11
+ Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let g=wr(),p;if(n){let k=typeof n=="string"?As(n):n;Gt(f==="/"||k.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` 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 "${f}" but pathname "${k.pathname}" was given in the \`location\` prop.`),p=k}else p=g;let y=p.pathname||"/",b=y;if(f!=="/"){let k=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(k.length).join("/")}let C=a&&a.state.matches.length?a.state.matches.map(k=>Object.assign(k,{route:a.manifest[k.route.id]||k.route})):X2(e,{pathname:b});kr(h||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),kr(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=vb(C&&C.map(k=>Object.assign({},k,{params:Object.assign({},u,k.params),pathname:jr([f,i.encodeLocation?i.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:jr([f,i.encodeLocation?i.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),l,a);return n&&v?D.createElement(Jl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},v):v}function Eb(){let e=wb(),n=J4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:o},"ErrorBoundary")," or"," ",D.createElement("code",{style:o},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},n),a?D.createElement("pre",{style:l},a):null,u)}var yb=D.createElement(Eb,null),d8=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=ub(e.digest);a&&(e=a)}let n=e!==void 0?D.createElement(Dr.Provider,{value:this.props.routeContext},D.createElement($d.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?D.createElement(bb,{error:e},n):n}};d8.contextType=s8;var Ax=new WeakMap;function bb({children:e,error:n}){let{basename:a}=D.useContext(xr);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=cb(n.digest);if(i){let l=Ax.get(n);if(l)throw l;let o=a8(i.location,a),u=o.absoluteURL||o.to;if(rb(u))throw new Error("Invalid redirect location");if(r8&&!Ax.get(n))if(o.isExternal||i.reloadDocument)window.location.href=u;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw Ax.set(n,d),d}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}function Cb({routeContext:e,match:n,children:a}){let i=D.useContext(ks);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(Dr.Provider,{value:e},a)}function vb(e,n=[],a){let i=a?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let l=e,o=i?.errors;if(o!=null){let g=l.findIndex(p=>p.route.id&&o?.[p.route.id]!==void 0);Gt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let u=!1,d=-1;if(a&&i){u=i.renderFallback;for(let g=0;g<l.length;g++){let p=l[g];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=g),p.route.id){let{loaderData:y,errors:b}=i,C=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||C){a.isStatic&&(u=!0),d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}}let f=a?.onError,h=i&&f?(g,p)=>{f(g,{location:i.location,params:i.matches?.[0]?.params??{},pattern:eb(i.matches),errorInfo:p})}:void 0;return l.reduceRight((g,p,y)=>{let b,C=!1,v=null,k=null;i&&(b=o&&p.route.id?o[p.route.id]:void 0,v=p.route.errorElement||yb,u&&(d<0&&y===0?(f8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,k=null):d===y&&(C=!0,k=p.route.hydrateFallbackElement||null)));let B=n.concat(l.slice(0,y+1)),j=()=>{let S;return b?S=v:C?S=k:p.route.Component?S=D.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=g,D.createElement(Cb,{match:p,routeContext:{outlet:g,matches:B,isDataRoute:i!=null},children:S})};return i&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?D.createElement(d8,{location:i.location,revalidation:i.revalidation,component:v,error:b,children:j(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:h}):j()},null)}function qd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ab(e){let n=D.useContext(ks);return Gt(n,qd(e)),n}function kb(e){let n=D.useContext(nc);return Gt(n,qd(e)),n}function Bb(e){let n=D.useContext(Dr);return Gt(n,qd(e)),n}function Gd(e){let n=Bb(e),a=n.matches[n.matches.length-1];return Gt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function Db(){return Gd("useRouteId")}function wb(){let e=D.useContext($d),n=kb("useRouteError"),a=Gd("useRouteError");return e!==void 0?e:n.errors?.[a]}function Fb(){let{router:e}=Ab("useNavigate"),n=Gd("useNavigate"),a=D.useRef(!1);return u8(()=>{a.current=!0}),D.useCallback(async(l,o={})=>{kr(a.current,c8),a.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:n,...o}))},[e,n])}var Hm={};function f8(e,n,a){!n&&!Hm[e]&&(Hm[e]=!0,kr(!1,a))}D.memo(Sb);function Sb({routes:e,manifest:n,future:a,state:i,isStatic:l,onError:o}){return x8(e,void 0,{manifest:n,state:i,isStatic:l,onError:o})}function Nb({to:e,replace:n,state:a,relative:i}){Gt(Ni(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=D.useContext(xr);kr(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=D.useContext(Dr),{pathname:u}=wr(),d=_i(),f=tc(e,Hd(o),u,i==="path"),h=JSON.stringify(f);return D.useEffect(()=>{d(JSON.parse(h),{replace:n,state:a,relative:i})},[d,h,i,n,a]),null}function _b(e){return pb(e.context)}function Tl(e){Gt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Mb({basename:e="/",children:n=null,location:a,navigationType:i="POP",navigator:l,static:o=!1,useTransitions:u}){Gt(!Ni(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:d,navigator:l,static:o,useTransitions:u,future:{}}),[d,l,o,u]);typeof a=="string"&&(a=As(a));let{pathname:h="/",search:g="",hash:p="",state:y=null,key:b="default",mask:C}=a,v=D.useMemo(()=>{let k=ma(h,d);return k==null?null:{location:{pathname:k,search:g,hash:p,state:y,key:b,mask:C},navigationType:i}},[d,h,g,p,y,b,i,C]);return kr(v!=null,`<Router basename="${d}"> is not able to match the URL "${h}${g}${p}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:D.createElement(xr.Provider,{value:f},D.createElement(Jl.Provider,{children:n,value:v}))}function jb({children:e,location:n}){return gb(od(e),n)}function od(e,n=[]){let a=[];return D.Children.forEach(e,(i,l)=>{if(!D.isValidElement(i))return;let o=[...n,l];if(i.type===D.Fragment){a.push.apply(a,od(i.props.children,o));return}Gt(i.type===Tl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Gt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=od(i.props.children,o)),a.push(u)}),a}var P0="get",I0="application/x-www-form-urlencoded";function rc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Tb(e){return rc(e)&&e.tagName.toLowerCase()==="button"}function Rb(e){return rc(e)&&e.tagName.toLowerCase()==="form"}function Ob(e){return rc(e)&&e.tagName.toLowerCase()==="input"}function zb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Lb(e,n){return e.button===0&&(!n||n==="_self")&&!zb(e)}function cd(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let i=e[a];return n.concat(Array.isArray(i)?i.map(l=>[a,l]):[[a,i]])},[]))}function Pb(e,n){let a=cd(e);return n&&n.forEach((i,l)=>{a.has(l)||n.getAll(l).forEach(o=>{a.append(l,o)})}),a}var B0=null;function Ib(){if(B0===null)try{new FormData(document.createElement("form"),0),B0=!1}catch{B0=!0}return B0}var Ub=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kx(e){return e!=null&&!Ub.has(e)?(kr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${I0}"`),null):e}function Hb(e,n){let a,i,l,o,u;if(Rb(e)){let d=e.getAttribute("action");i=d?ma(d,n):null,a=e.getAttribute("method")||P0,l=kx(e.getAttribute("enctype"))||I0,o=new FormData(e)}else if(Tb(e)||Ob(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(i=f?ma(f,n):null,a=e.getAttribute("formmethod")||d.getAttribute("method")||P0,l=kx(e.getAttribute("formenctype"))||kx(d.getAttribute("enctype"))||I0,o=new FormData(d,e),!Ib()){let{name:h,type:g,value:p}=e;if(g==="image"){let y=h?`${h}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else h&&o.append(h,p)}}else{if(rc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=P0,i=null,l=I0,u=e}return o&&l==="text/plain"&&(u=o,o=void 0),{action:i,method:a.toLowerCase(),encType:l,formData:o,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vd(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function h8(e,n,a,i){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${i}`:l.pathname=`${l.pathname}.${i}`:l.pathname==="/"?l.pathname=`_root.${i}`:n&&ma(l.pathname,n)==="/"?l.pathname=`${Q0(n)}/_root.${i}`:l.pathname=`${Q0(l.pathname)}.${i}`,l}async function $b(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function qb(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Gb(e,n,a){let i=await Promise.all(e.map(async l=>{let o=n.routes[l.route.id];if(o){let u=await $b(o,a);return u.links?u.links():[]}return[]}));return Kb(i.flat(1).filter(qb).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function $m(e,n,a,i,l,o){let u=(f,h)=>a[h]?f.route.id!==a[h].route.id:!0,d=(f,h)=>a[h].pathname!==f.pathname||a[h].route.path?.endsWith("*")&&a[h].params["*"]!==f.params["*"];return o==="assets"?n.filter((f,h)=>u(f,h)||d(f,h)):o==="data"?n.filter((f,h)=>{let g=i.routes[f.route.id];if(!g||!g.hasLoader)return!1;if(u(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let p=f.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Vb(e,n,{includeHydrateFallback:a}={}){return Qb(e.map(i=>{let l=n.routes[i.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function Qb(e){return[...new Set(e)]}function Yb(e){let n={},a=Object.keys(e).sort();for(let i of a)n[i]=e[i];return n}function Kb(e,n){let a=new Set;return new Set(n),e.reduce((i,l)=>{let o=JSON.stringify(Yb(l));return a.has(o)||(a.add(o),i.push({key:o,link:l})),i},[])}function Qd(){let e=D.useContext(ks);return Vd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Xb(){let e=D.useContext(nc);return Vd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yd=D.createContext(void 0);Yd.displayName="FrameworkContext";function ac(){let e=D.useContext(Yd);return Vd(e,"You must render this element inside a <HydratedRouter> element"),e}function Zb(e,n){let a=D.useContext(Yd),[i,l]=D.useState(!1),[o,u]=D.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:g,onTouchStart:p}=n,y=D.useRef(null);D.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let v=B=>{B.forEach(j=>{u(j.isIntersecting)})},k=new IntersectionObserver(v,{threshold:.5});return y.current&&k.observe(y.current),()=>{k.disconnect()}}},[e]),D.useEffect(()=>{if(i){let v=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(v)}}},[i]);let b=()=>{l(!0)},C=()=>{l(!1),u(!1)};return a?e!=="intent"?[o,y,{}]:[o,y,{onFocus:kl(d,b),onBlur:kl(f,C),onMouseEnter:kl(h,b),onMouseLeave:kl(g,C),onTouchStart:kl(p,b)}]:[!1,y,{}]}function kl(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function Wb({page:e,...n}){let a=ab(),{nonce:i}=ac(),{router:l}=Qd(),o=D.useMemo(()=>X2(l.routes,e,l.basename),[l.routes,e,l.basename]);return o?(n.nonce==null&&i&&(n={...n,nonce:i}),a?D.createElement(e7,{page:e,matches:o,...n}):D.createElement(t7,{page:e,matches:o,...n})):null}function Jb(e){let{manifest:n,routeModules:a}=ac(),[i,l]=D.useState([]);return D.useEffect(()=>{let o=!1;return Gb(e,n,a).then(u=>{o||l(u)}),()=>{o=!0}},[e,n,a]),i}function e7({page:e,matches:n,...a}){let i=wr(),{future:l}=ac(),{basename:o}=Qd(),u=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let d=h8(e,o,l.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,h=[];for(let g of n)typeof g.route.shouldRevalidate=="function"?f=!0:h.push(g.route.id);return f&&h.length>0&&d.searchParams.set("_routes",h.join(",")),[d.pathname+d.search]},[o,l.v8_trailingSlashAwareDataRequests,e,i,n]);return D.createElement(D.Fragment,null,u.map(d=>D.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...a})))}function t7({page:e,matches:n,...a}){let i=wr(),{future:l,manifest:o,routeModules:u}=ac(),{basename:d}=Qd(),{loaderData:f,matches:h}=Xb(),g=D.useMemo(()=>$m(e,n,h,o,i,"data"),[e,n,h,o,i]),p=D.useMemo(()=>$m(e,n,h,o,i,"assets"),[e,n,h,o,i]),y=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let v=new Set,k=!1;if(n.forEach(j=>{let S=o.routes[j.route.id];!S||!S.hasLoader||(!g.some(_=>_.route.id===j.route.id)&&j.route.id in f&&u[j.route.id]?.shouldRevalidate||S.hasClientLoader?k=!0:v.add(j.route.id))}),v.size===0)return[];let B=h8(e,d,l.v8_trailingSlashAwareDataRequests,"data");return k&&v.size>0&&B.searchParams.set("_routes",n.filter(j=>v.has(j.route.id)).map(j=>j.route.id).join(",")),[B.pathname+B.search]},[d,l.v8_trailingSlashAwareDataRequests,f,i,o,g,n,e,u]),b=D.useMemo(()=>Vb(p,o),[p,o]),C=Jb(p);return D.createElement(D.Fragment,null,y.map(v=>D.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...a})),b.map(v=>D.createElement("link",{key:v,rel:"modulepreload",href:v,...a})),C.map(({key:v,link:k})=>D.createElement("link",{key:v,nonce:a.nonce,...k,crossOrigin:k.crossOrigin??a.crossOrigin})))}function n7(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var r7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{r7&&(window.__reactRouterVersion="7.18.1")}catch{}function a7({basename:e,children:n,useTransitions:a,window:i}){let l=D.useRef();l.current==null&&(l.current=_4({window:i,v5Compat:!0}));let o=l.current,[u,d]=D.useState({action:o.action,location:o.location}),f=D.useCallback(h=>{a===!1?d(h):D.startTransition(()=>d(h))},[a]);return D.useLayoutEffect(()=>o.listen(f),[o,f]),D.createElement(Mb,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:o,useTransitions:a})}var p8=D.forwardRef(function({onClick:n,discover:a="render",prefetch:i="none",relative:l,reloadDocument:o,replace:u,mask:d,state:f,target:h,to:g,preventScrollReset:p,viewTransition:y,defaultShouldRevalidate:b,...C},v){let{basename:k,navigator:B,useTransitions:j}=D.useContext(xr),S=typeof g=="string"&&Ud.test(g),_=a8(g,k);g=_.to;let T=xb(g,{relative:l}),F=wr(),R=null;if(d){let Y=tc(d,[],F.mask?F.mask.pathname:"/",!0);k!=="/"&&(Y.pathname=Y.pathname==="/"?k:jr([k,Y.pathname])),R=B.createHref(Y)}let[L,I,O]=Zb(i,C),$=o7(g,{replace:u,mask:d,state:f,target:h,preventScrollReset:p,relative:l,viewTransition:y,defaultShouldRevalidate:b,useTransitions:j});function V(Y){n&&n(Y),Y.defaultPrevented||$(Y)}let oe=!(_.isExternal||o),te=D.createElement("a",{...C,...O,href:(oe?R:void 0)||_.absoluteURL||T,onClick:oe?V:n,ref:n7(v,I),target:h,"data-discover":!S&&a==="render"?"true":void 0});return L&&!S?D.createElement(D.Fragment,null,te,D.createElement(Wb,{page:T})):te});p8.displayName="Link";var i7=D.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:d,children:f,...h},g){let p=eo(u,{relative:h.relative}),y=wr(),b=D.useContext(nc),{navigator:C,basename:v}=D.useContext(xr),k=b!=null&&f7(p)&&d===!0,B=C.encodeLocation?C.encodeLocation(p).pathname:p.pathname,j=y.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(j=j.toLowerCase(),S=S?S.toLowerCase():null,B=B.toLowerCase()),S&&v&&(S=ma(S,v)||S);const _=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let T=j===B||!l&&j.startsWith(B)&&j.charAt(_)==="/",F=S!=null&&(S===B||!l&&S.startsWith(B)&&S.charAt(B.length)==="/"),R={isActive:T,isPending:F,isTransitioning:k},L=T?n:void 0,I;typeof i=="function"?I=i(R):I=[i,T?"active":null,F?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let O=typeof o=="function"?o(R):o;return D.createElement(p8,{...h,"aria-current":L,className:I,ref:g,style:O,to:u,viewTransition:d},typeof f=="function"?f(R):f)});i7.displayName="NavLink";var s7=D.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:i,replace:l,state:o,method:u=P0,action:d,onSubmit:f,relative:h,preventScrollReset:g,viewTransition:p,defaultShouldRevalidate:y,...b},C)=>{let{useTransitions:v}=D.useContext(xr),k=x7(),B=d7(d,{relative:h}),j=u.toLowerCase()==="get"?"get":"post",S=typeof d=="string"&&Ud.test(d),_=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let F=T.nativeEvent.submitter,R=F?.getAttribute("formmethod")||u,L=()=>k(F||T.currentTarget,{fetcherKey:n,method:R,navigate:a,replace:l,state:o,relative:h,preventScrollReset:g,viewTransition:p,defaultShouldRevalidate:y});v&&a!==!1?D.startTransition(()=>L()):L()};return D.createElement("form",{ref:C,method:j,action:B,onSubmit:i?f:_,...b,"data-discover":!S&&e==="render"?"true":void 0})});s7.displayName="Form";function l7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function m8(e){let n=D.useContext(ks);return Gt(n,l7(e)),n}function o7(e,{target:n,replace:a,mask:i,state:l,preventScrollReset:o,relative:u,viewTransition:d,defaultShouldRevalidate:f,useTransitions:h}={}){let g=_i(),p=wr(),y=eo(e,{relative:u});return D.useCallback(b=>{if(Lb(b,n)){b.preventDefault();let C=a!==void 0?a:Hl(p)===Hl(y),v=()=>g(e,{replace:C,mask:i,state:l,preventScrollReset:o,relative:u,viewTransition:d,defaultShouldRevalidate:f});h?D.startTransition(()=>v()):v()}},[p,g,y,a,i,l,n,e,o,u,d,f,h])}function g8(e){kr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=D.useRef(cd(e)),a=D.useRef(!1),i=wr(),l=D.useMemo(()=>Pb(i.search,a.current?null:n.current),[i.search]),o=_i(),u=D.useCallback((d,f)=>{const h=cd(typeof d=="function"?d(new URLSearchParams(l)):d);a.current=!0,o("?"+h,f)},[o,l]);return[l,u]}var c7=0,u7=()=>`__${String(++c7)}__`;function x7(){let{router:e}=m8("useSubmit"),{basename:n}=D.useContext(xr),a=Db(),i=e.fetch,l=e.navigate;return D.useCallback(async(o,u={})=>{let{action:d,method:f,encType:h,formData:g,body:p}=Hb(o,n);if(u.navigate===!1){let y=u.fetcherKey||u7();await i(y,a,u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:p,formMethod:u.method||f,formEncType:u.encType||h,flushSync:u.flushSync})}else await l(u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:p,formMethod:u.method||f,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:a,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,l,n,a])}function d7(e,{relative:n}={}){let{basename:a}=D.useContext(xr),i=D.useContext(Dr);Gt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),o={...eo(e||".",{relative:n})},u=wr();if(e==null){o.search=u.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(g=>g==="")){d.delete("index"),f.filter(p=>p).forEach(p=>d.append("index",p));let g=d.toString();o.search=g?`?${g}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(o.pathname=o.pathname==="/"?a:jr([a,o.pathname])),Hl(o)}function f7(e,{relative:n}={}){let a=D.useContext(l8);Gt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=m8("useViewTransitionState"),l=eo(e,{relative:n});if(!a.isTransitioning)return!1;let o=ma(a.currentLocation.pathname,i)||a.currentLocation.pathname,u=ma(a.nextLocation.pathname,i)||a.nextLocation.pathname;return $l(l.pathname,u)!=null||$l(l.pathname,o)!=null}const h7="modulepreload",p7=function(e){return"/"+e},qm={},m7=function(n,a,i){let l=Promise.resolve();if(a&&a.length>0){let h=function(g){return Promise.all(g.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var u=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");l=h(a.map(g=>{if(g=p7(g),g in qm)return;qm[g]=!0;const p=g.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":h7,p||(b.as="script"),b.crossOrigin="",b.href=g,f&&b.setAttribute("nonce",f),document.head.appendChild(b),p)return new Promise((C,v)=>{b.addEventListener("load",C),b.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${g}`)))})}))}function o(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return l.then(d=>{for(const f of d||[])f.status==="rejected"&&o(f.reason);return n().catch(o)})};function g7(e={}){const{immediate:n=!1,onNeedReload:a,onNeedRefresh:i,onOfflineReady:l,onRegistered:o,onRegisteredSW:u,onRegisterError:d}=e;let f,h,g;const p=async(b=!0)=>{await h,g?.()};async function y(){if("serviceWorker"in navigator){if(f=await m7(async()=>{const{Workbox:b}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:b}},[]).then(({Workbox:b})=>new b("/sw.js",{scope:"/",type:"classic"})).catch(b=>{d?.(b)}),!f)return;g=()=>{f?.messageSkipWaiting()};{let b=!1;const C=()=>{b=!0,f?.addEventListener("controlling",v=>{v.isUpdate&&(a?a():window.location.reload())}),i?.()};f.addEventListener("installed",v=>{typeof v.isUpdate>"u"?typeof v.isExternal<"u"&&v.isExternal?C():!b&&l?.():v.isUpdate||l?.()}),f.addEventListener("waiting",C)}f.register({immediate:n}).then(b=>{u?u("/sw.js",b):o?.(b)}).catch(b=>{d?.(b)})}}return h=y(),p}function E7(e={}){const{immediate:n=!0,onNeedReload:a,onNeedRefresh:i,onOfflineReady:l,onRegistered:o,onRegisteredSW:u,onRegisterError:d}=e,[f,h]=D.useState(!1),[g,p]=D.useState(!1),[y]=D.useState(()=>g7({immediate:n,onNeedReload:a,onOfflineReady(){p(!0),l?.()},onNeedRefresh(){h(!0),i?.()},onRegistered:o,onRegisteredSW:u,onRegisterError:d}));return{needRefresh:[f,h],offlineReady:[g,p],updateServiceWorker:y}}const E8=(...e)=>e.filter((n,a,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===a).join(" ").trim();const y7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const b7=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,i)=>i?i.toUpperCase():a.toLowerCase());const Gm=e=>{const n=b7(e);return n.charAt(0).toUpperCase()+n.slice(1)};var C7={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const v7=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const A7=D.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:u,...d},f)=>D.createElement("svg",{ref:f,...C7,width:n,height:n,stroke:e,strokeWidth:i?Number(a)*24/Number(n):a,className:E8("lucide",l),...!o&&!v7(d)&&{"aria-hidden":"true"},...d},[...u.map(([h,g])=>D.createElement(h,g)),...Array.isArray(o)?o:[o]]));const q=(e,n)=>{const a=D.forwardRef(({className:i,...l},o)=>D.createElement(A7,{ref:o,iconNode:n,className:E8(`lucide-${y7(Gm(e))}`,`lucide-${e}`,i),...l}));return a.displayName=Gm(e),a};const k7=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],B7=q("activity",k7);const D7=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],w7=q("anchor",D7);const F7=[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]],S7=q("apple",F7);const N7=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"m9.5 17 5-5",key:"nakeu6"}],["path",{d:"m9.5 12 5 5",key:"1hccrj"}]],_7=q("archive-x",N7);const M7=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Kd=q("archive",M7);const j7=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],T7=q("arrow-right",j7);const R7=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],O7=q("arrow-up-right",R7);const z7=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],L7=q("arrow-up",z7);const P7=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]],I7=q("atom",P7);const U7=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],H7=q("award",U7);const $7=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]],q7=q("banknote",$7);const G7=[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],V7=q("battery",G7);const Q7=[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]],Y7=q("beer",Q7);const K7=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],y8=q("bell",K7);const X7=[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]],Z7=q("bike",X7);const W7=[["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20",key:"oj1oa8"}],["path",{d:"m20 7 2 .5-2 .5",key:"12nv4d"}],["path",{d:"M10 18v3",key:"1yea0a"}],["path",{d:"M14 17.75V21",key:"1pymcb"}],["path",{d:"M7 18a6 6 0 0 0 3.84-10.61",key:"1npnn0"}]],J7=q("bird",W7);const e3=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]],t3=q("bluetooth",e3);const n3=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],r3=q("book-open",n3);const a3=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],i3=q("book",a3);const s3=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],l3=q("bookmark",s3);const o3=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],b8=q("bot",o3);const c3=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],u3=q("box",c3);const x3=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],d3=q("brain",x3);const f3=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],h3=q("briefcase",f3);const p3=[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]],m3=q("brush",p3);const g3=[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],E3=q("bug-play",g3);const y3=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],b3=q("bug",y3);const C3=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],v3=q("building-2",C3);const A3=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],k3=q("building",A3);const B3=[["path",{d:"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8",key:"1w3rig"}],["path",{d:"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1",key:"n2jgmb"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M7 8v3",key:"1qtyvj"}],["path",{d:"M12 8v3",key:"hwp4zt"}],["path",{d:"M17 8v3",key:"1i6e5u"}],["path",{d:"M7 4h.01",key:"1bh4kh"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M17 4h.01",key:"1upcoc"}]],D3=q("cake",B3);const w3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],F3=q("calendar",w3);const S3=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],N3=q("camera",S3);const _3=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],M3=q("car",_3);const j3=[["path",{d:"M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46",key:"rfqxbe"}],["path",{d:"M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z",key:"6b25w4"}],["path",{d:"M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z",key:"fn65lo"}]],T3=q("carrot",j3);const R3=[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]],O3=q("cat",R3);const z3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]],L3=q("chart-bar",z3);const P3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],I3=q("chart-line",P3);const U3=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],H3=q("chart-pie",U3);const $3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qr=q("check",$3);const q3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ea=q("chevron-down",q3);const G3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],V3=q("chevron-left",G3);const Q3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Y3=q("chevron-right",Q3);const K3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],X3=q("chevron-up",K3);const Z3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],W3=q("circle-x",Z3);const J3=[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]],eC=q("clapperboard",J3);const tC=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],C8=q("clock",tC);const nC=[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],rC=q("cloud-off",nC);const aC=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],iC=q("cloud-upload",aC);const sC=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],lC=q("cloud",sC);const oC=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],cC=q("code-xml",oC);const uC=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],xC=q("code",uC);const dC=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],fC=q("coffee",dC);const hC=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],pC=q("cog",hC);const mC=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],gC=q("compass",mC);const EC=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Xd=q("copy",EC);const yC=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],bC=q("cpu",yC);const CC=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],vC=q("credit-card",CC);const AC=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],kC=q("crown",AC);const BC=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],DC=q("database",BC);const wC=[["path",{d:"m10 16 1.5 1.5",key:"11lckj"}],["path",{d:"m14 8-1.5-1.5",key:"1ohn8i"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}]],FC=q("dna",wC);const SC=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],NC=q("dog",SC);const _C=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],MC=q("dollar-sign",_C);const jC=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],TC=q("dumbbell",jC);const RC=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],OC=q("earth",RC);const zC=[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]],LC=q("egg",zC);const PC=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],IC=q("external-link",PC);const UC=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],HC=q("factory",UC);const $C=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],qC=q("feather",$C);const GC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],VC=q("file-code",GC);const QC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],v8=q("file-diff",QC);const YC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],KC=q("file",YC);const XC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],ZC=q("film",XC);const WC=[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]],JC=q("fish",WC);const ev=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],tv=q("flag",ev);const nv=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],rv=q("flame",nv);const av=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],iv=q("flask-conical",av);const sv=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],lv=q("folder",sv);const ov=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],cv=q("funnel",ov);const uv=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],xv=q("gamepad-2",uv);const dv=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],fv=q("gauge",dv);const hv=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],pv=q("gem",hv);const mv=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],gv=q("gift",mv);const Ev=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],yv=q("git-branch-plus",Ev);const bv=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Cv=q("git-branch",bv);const vv=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],A8=q("git-fork",vv);const Av=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],k8=q("git-merge",Av);const kv=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Bv=q("github",kv);const Dv=[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]],wv=q("glasses",Dv);const Fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Sv=q("globe",Fv);const Nv=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],_v=q("graduation-cap",Nv);const Mv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],jv=q("grid-3x3",Mv);const Tv=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],Rv=q("hammer",Tv);const Ov=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],zv=q("headphones",Ov);const Lv=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Pv=q("heart-pulse",Lv);const Iv=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Uv=q("heart",Iv);const Hv=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],Zd=q("hourglass",Hv);const $v=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],qv=q("house",$v);const Gv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Vv=q("image",Gv);const Qv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yv=q("info",Qv);const Kv=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Xv=q("key",Kv);const Zv=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Wv=q("laptop",Zv);const Jv=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],eA=q("layers",Jv);const tA=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],nA=q("layout-grid",tA);const rA=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],aA=q("leaf",rA);const iA=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],sA=q("lightbulb",iA);const lA=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],oA=q("link",lA);const cA=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],B8=q("list",cA);const uA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Tn=q("loader-circle",uA);const xA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],dA=q("lock",xA);const fA=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],hA=q("log-out",fA);const pA=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],mA=q("mail",pA);const gA=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],EA=q("map-pin",gA);const yA=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],D8=q("map",yA);const bA=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]],CA=q("martini",bA);const vA=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],AA=q("medal",vA);const kA=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],BA=q("message-circle",kA);const DA=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],wA=q("message-square",DA);const FA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],SA=q("mic-off",FA);const NA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],w8=q("mic",NA);const _A=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],MA=q("microscope",_A);const jA=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],TA=q("monitor",jA);const RA=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],OA=q("moon",RA);const zA=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],LA=q("music",zA);const PA=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],IA=q("orbit",PA);const UA=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],HA=q("package",UA);const $A=[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]],qA=q("paintbrush",$A);const GA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],VA=q("panel-left",GA);const QA=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],ic=q("paperclip",QA);const YA=[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]],KA=q("paw-print",YA);const XA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],ZA=q("pen",XA);const WA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],JA=q("pencil",WA);const ek=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],U0=q("phone-call",ek);const tk=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],nk=q("phone-off",tk);const rk=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],ak=q("phone",rk);const ik=[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]],sk=q("pill",ik);const lk=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],ok=q("pipette",lk);const ck=[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]],uk=q("pizza",ck);const xk=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],dk=q("plane",xk);const fk=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ud=q("play",fk);const hk=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],pk=q("plug",hk);const mk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Wd=q("plus",mk);const gk=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Ek=q("power",gk);const yk=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],bk=q("puzzle",yk);const Ck=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],F8=q("qr-code",Ck);const vk=[["path",{d:"M13 16a3 3 0 0 1 2.24 5",key:"1epib5"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3",key:"ue9ozu"}],["path",{d:"M20 8.54V4a2 2 0 1 0-4 0v3",key:"49iql8"}],["path",{d:"M7.612 12.524a3 3 0 1 0-1.6 4.3",key:"1e33i0"}]],Ak=q("rabbit",vk);const kk=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Bk=q("radio",kk);const Dk=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],to=q("refresh-cw",Dk);const wk=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Fk=q("rocket",wk);const Sk=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Nk=q("rotate-ccw",Sk);const _k=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Mk=q("salad",_k);const jk=[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]],Tk=q("ruler",jk);const Rk=[["path",{d:"m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5",key:"dzhfyz"}],["path",{d:"M16.5 7.5 19 5",key:"1ltcjm"}],["path",{d:"m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5",key:"nfoymv"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}],["path",{d:"M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z",key:"nv9zqy"}]],Ok=q("satellite",Rk);const zk=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Lk=q("save",zk);const Pk=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Ik=q("scissors",Pk);const Uk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],S8=q("search",Uk);const Hk=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],$k=q("send",Hk);const qk=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Gk=q("server",qk);const Vk=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Qk=q("settings",Vk);const Yk=[["path",{d:"M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44",key:"1cn552"}]],Kk=q("shell",Yk);const Xk=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Zk=q("shield",Xk);const Wk=[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]],Jk=q("ship",Wk);const eB=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],tB=q("shopping-bag",eB);const nB=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],rB=q("shopping-cart",nB);const aB=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],iB=q("sliders-horizontal",aB);const sB=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],lB=q("smartphone",sB);const oB=[["path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0",key:"hneq2s"}],["circle",{cx:"10",cy:"13",r:"8",key:"194lz3"}],["path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6",key:"ixqyt7"}],["path",{d:"M18 3 19.1 5.2",key:"9tjm43"}],["path",{d:"M22 3 20.9 5.2",key:"j3odrs"}]],cB=q("snail",oB);const uB=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],xB=q("snowflake",uB);const dB=[["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M19.5 12 22 6",key:"shfsr5"}],["path",{d:"M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62",key:"rpc6vp"}],["path",{d:"M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62",key:"1lf63m"}],["path",{d:"M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62",key:"97tijn"}]],fB=q("soup",dB);const hB=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],pB=q("sparkles",hB);const mB=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],gB=q("sprout",mB);const EB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],N8=q("square",EB);const yB=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],xd=q("star",yB);const bB=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],CB=q("stethoscope",bB);const vB=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],AB=q("store",vB);const kB=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]],BB=q("sun-moon",kB);const DB=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],_8=q("sun",DB);const wB=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],FB=q("tag",wB);const SB=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],NB=q("tags",SB);const _B=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],MB=q("target",_B);const jB=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],TB=q("telescope",jB);const RB=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],OB=q("terminal",RB);const zB=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],LB=q("ticket",zB);const PB=[["path",{d:"M8 3.1V7a4 4 0 0 0 8 0V3.1",key:"1v71zp"}],["path",{d:"m9 15-1-1",key:"1yrq24"}],["path",{d:"m15 15 1-1",key:"1t0d6s"}],["path",{d:"M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z",key:"1p0hjs"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m16 19 2 3",key:"xo31yx"}]],IB=q("train-front",PB);const UB=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],HB=q("trash-2",UB);const $B=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],qB=q("tree-pine",$B);const GB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],VB=q("trending-up",GB);const QB=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],sc=q("triangle-alert",QB);const YB=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],KB=q("trophy",YB);const XB=[["path",{d:"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z",key:"1lbbv7"}],["path",{d:"M4.82 7.9 8 10",key:"m9wose"}],["path",{d:"M15.18 7.9 12 10",key:"p8dp2u"}],["path",{d:"M16.93 10H20a2 2 0 0 1 0 4H2",key:"12nsm7"}]],ZB=q("turtle",XB);const WB=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],JB=q("user",WB);const eD=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],tD=q("users",eD);const nD=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],rD=q("utensils",nD);const aD=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],iD=q("video",aD);const sD=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],lD=q("wallet",sD);const oD=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Vm=q("wand-sparkles",oD);const cD=[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]],uD=q("warehouse",cD);const xD=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],dD=q("waypoints",xD);const fD=[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]],hD=q("wheat",fD);const pD=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Jd=q("wifi-off",pD);const mD=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],M8=q("wifi",mD);const gD=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]],ED=q("wine",gD);const yD=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],lc=q("workflow",yD);const bD=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],CD=q("wrench",bD);const vD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bn=q("x",vD);const AD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ef=q("zap",AD);function Qm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function It(e,n){return{method:e,pattern:n,path:()=>n}}function Et(e,n){const[a,i]=n.split(/:[a-zA-Z]+/);if(i===void 0)throw new Error(`route ${n} declares no :param`);return{method:e,pattern:n,path:l=>`${a}${encodeURIComponent(l)}${i}`,re:new RegExp(`^${Qm(a)}([^/]+)${Qm(i)}$`)}}const ye={state:It("GET","/api/state"),search:It("GET","/api/search"),repos:It("GET","/api/repos"),modelCatalog:It("GET","/api/models"),modelDefaults:It("GET","/api/models/defaults"),updateModelDefaults:It("PATCH","/api/models/defaults"),planUsage:It("GET","/api/usage"),voiceTicket:It("POST","/api/voice/ticket"),voiceCall:It("POST","/api/voice/calls"),voiceCallReady:Et("POST","/api/voice/calls/:callId/ready"),voiceCallEnd:Et("DELETE","/api/voice/calls/:callId"),repoIcon:Et("GET","/api/repos/:repo/icon"),localImage:Et("GET","/api/local-images/:path"),filePreview:Et("GET","/api/files/:reference"),toolImage:Et("GET","/api/tool-images/:reference"),stageAttachment:It("POST","/api/attachments"),discardStagedAttachment:Et("DELETE","/api/attachments/:attachmentId"),logs:It("GET","/api/logs"),restartConductor:It("POST","/api/conductor/restart"),settings:It("GET","/api/settings"),updateSettings:It("PATCH","/api/settings"),prefs:It("GET","/api/prefs"),updatePrefs:It("PATCH","/api/prefs"),armNoSleep:It("POST","/api/nosleep"),disarmNoSleep:It("DELETE","/api/nosleep"),push:It("GET","/api/push"),pushSubscribe:It("POST","/api/push/subscribe"),pushUnsubscribe:It("POST","/api/push/unsubscribe"),pushTest:It("POST","/api/push/test"),roles:It("GET","/api/roles"),updateRoles:It("PATCH","/api/roles"),delegations:It("GET","/api/delegations"),dismissDelegation:Et("DELETE","/api/delegations/:delegationId"),createWorkspace:It("POST","/api/workspaces"),workspace:Et("GET","/api/workspaces/:workspaceId"),sessions:Et("GET","/api/workspaces/:workspaceId/sessions"),newChat:Et("POST","/api/workspaces/:workspaceId/sessions"),diff:Et("GET","/api/workspaces/:workspaceId/diff"),workspaceFiles:Et("GET","/api/workspaces/:workspaceId/files"),merge:Et("POST","/api/workspaces/:workspaceId/merge"),continueWorkspace:Et("POST","/api/workspaces/:workspaceId/continue"),workspaceStatus:Et("POST","/api/workspaces/:workspaceId/status"),archiveWorkspace:Et("POST","/api/workspaces/:workspaceId/archive"),devServer:Et("GET","/api/workspaces/:workspaceId/dev-server"),startDevServer:Et("POST","/api/workspaces/:workspaceId/dev-server"),stopDevServer:Et("DELETE","/api/workspaces/:workspaceId/dev-server"),dismissFirstPrompt:Et("DELETE","/api/workspaces/:workspaceId/prompt"),messages:Et("GET","/api/sessions/:sessionId/messages"),context:Et("GET","/api/sessions/:sessionId/context"),models:Et("GET","/api/sessions/:sessionId/models"),defaultModel:Et("POST","/api/sessions/:sessionId/default-model"),agent:Et("POST","/api/sessions/:sessionId/agent"),stop:Et("POST","/api/sessions/:sessionId/stop"),closeChat:Et("DELETE","/api/sessions/:sessionId"),sendPrompt:Et("POST","/api/sessions/:sessionId/prompt"),uploadAttachment:Et("POST","/api/sessions/:sessionId/attachments"),splitChat:Et("POST","/api/sessions/:sessionId/split"),delegateTask:Et("POST","/api/sessions/:sessionId/delegate"),dismissParkedPrompt:Et("DELETE","/api/sessions/:sessionId/prompt")},kD="## Workflow objective";function BD(e){const n=/^(\d+)(s|m|h)?$/.exec(e.trim());if(!n)return null;const a=Number(n[1]),i=n[2]??"s",l=a*(i==="h"?3600:i==="m"?60:1);return Number.isSafeInteger(l)?l:null}function DD(e){const n=e??"",i=(n.includes("/")?n.slice(n.indexOf("/")+1):n).replace(/[-_]/g," ").trim();return i?i[0].toUpperCase()+i.slice(1):""}function $r(e){return e.workspace_name||e.pr_title||DD(e.branch)||e.directory_name||e.id.slice(0,8)}function wD(e){return e.toLowerCase().match(/[\p{L}\p{N}_]+/gu)??[]}function Xn(e){const n=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)?$/.test(e);return Date.parse(n?`${e.replace(" ","T")}Z`:e)}function ql(e){return e.endsWith(" NEW")?e.slice(0,-4):e}function dd(e){return ql(e).replace(/^opencode-/i,"")}function j8(e){return e?e.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}const fd=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),Ym=e=>fd(e.replace(/[\s\-_]\d+[mk]$/i,""));function FD(e){const n=[];for(const a of e){const i=n[n.length-1];i!==void 0&&/^\d+$/.test(a)&&/^\d[\d.]*$/.test(i)?n[n.length-1]=`${i}.${a}`:n.push(a)}return n}function SD(e){const n=FD(e.split("-")),a=i=>i?i.toLowerCase()==="1m"?"1M":i[0].toUpperCase()+i.slice(1):"";return n[0]==="gpt"&&n[1]?[n[1],...n.slice(2).map(a)].join(" "):/^(opus|sonnet|haiku|fable)$/.test(n[0]??"")?n.map(a).join(" "):e}function T8(e,n=[]){const a=j8(e);if(!a)return"";const i=a.split("/").pop()??a,l=i.split(":").pop()??i,o=fd(l);if(o){const u=n.find(f=>fd(f)===o);if(u)return u;const d=n.filter(f=>Ym(f)===Ym(l));if(d.length===1)return d[0]}return SD(l)}function R8(e){const n=ql(e).trim().toLowerCase();if(n.startsWith("anthropic/"))return"Anthropic";if(n.startsWith("openai/"))return"OpenAI";if(n.startsWith("cursor/"))return"Cursor";if(/^(claude|fable|haiku|opus|sonnet)(?:[\s-]|$)/.test(n))return"Anthropic";if(/^(?:auto|gpt|o[1-9]|\d)(?:[\s.-]|$)/.test(n))return"OpenAI";if(/^(composer|grok)(?:[\s-]|$)/.test(n))return"Cursor";if(/^opencode(?:-go)?\//.test(n))return"OpenCode";const a=n.indexOf("/");return a>0?n.slice(0,a):"Other"}function Bs(e){const n=R8(e);if(n==="Anthropic")return"claude";if(n==="OpenAI")return"codex";if(n==="Cursor")return"cursor";if(n==="OpenCode")return"acp"}function tf(e){return e==="claude"||e==="codex"}function nf(e){return e==="claude"||e==="codex"}function O8(e,n){const a=ql(e);return n.some(i=>i.models.some(l=>ql(l)===a))}function ND(e){const n=new Map;for(const a of e){const i=ql(a).trim();if(!i)continue;const l=R8(i),o=n.get(l)??[];o.includes(i)||o.push(i),n.set(l,o)}return[...n].map(([a,i])=>({label:a,models:i.sort((l,o)=>l.localeCompare(o))})).sort((a,i)=>a.label.localeCompare(i.label))}function z8(e,n){if(typeof e=="string"&&e.trim())return e;if(e&&typeof e=="object"){const a=e.message;if(typeof a=="string"&&a.trim())return a}return n}const _D="",MD="",L8=["marin","cedar","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],jD=["auto","no","en"];function TD(e){return typeof e=="string"&&L8.includes(e)}function RD(e){return typeof e=="string"&&jD.includes(e)}const Km=".context/attachments/";function OD(e){const n=[];let a=0;for(;a<e.length;){const i=e.indexOf("@⟦",a);if(i<0)break;const l=e.indexOf("⟧(",i+2);if(l<0||/[\r\n]/.test(e.slice(i,l))){a=i+2;continue}const o=e.slice(i+2,l),u=l+2;let d=u,f=!1;for(;!f&&(d=e.indexOf(")",d),!(d<0));){const h=e.slice(u,d);try{const g=decodeURIComponent(h),p=g.startsWith(Km)?g.slice(Km.length):"",y=p.indexOf("/"),b=y<0?"":p.slice(0,y),C=y<0?"":p.slice(y+1);if(/^[A-Za-z0-9]{6}$/.test(b)&&C===o&&!C.includes("/")){n.push({start:i,end:d+1,name:o,path:g}),a=d+1,f=!0;continue}}catch{}d+=1}f||(a=i+2)}return n}const zD=new Set([".bash",".c",".cc",".cpp",".css",".go",".h",".hpp",".html",".java",".js",".json",".jsx",".md",".mjs",".mts",".php",".py",".rb",".rs",".scss",".sh",".sql",".svg",".swift",".toml",".ts",".tsx",".txt",".yaml",".yml"]),LD=new Set([".avif",".gif",".jpeg",".jpg",".png",".webp"]);function P8(e){const n=e.slice(e.lastIndexOf("/")+1),a=n.lastIndexOf(".");return a===-1?null:n.slice(a).toLowerCase()}function rf(e){const n=P8(e);return n!==null&&zD.has(n)}function I8(e){const n=P8(e);return n!==null&&LD.has(n)}function Xm(e){return e.role==="tool"&&!e.tool&&e.output!==void 0}const PD="The Mac is locked";function Fi(e){return(e??"").includes(PD)}const ID="x-relay-device",Gl="conductor-remote-token";function UD(){const n=new URLSearchParams(location.hash.slice(1)).get("token");return n&&(localStorage.setItem(Gl,n),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(Gl)}function af(){return localStorage.getItem(Gl)}function HD(){localStorage.removeItem(Gl)}function $D(e){localStorage.setItem(Gl,e)}function qD(e){const n=e.trim();if(!n)return null;const a=n.match(/token=([^&\s]+)/);return a?decodeURIComponent(a[1]):/\s/.test(n)?null:n}class Br extends Error{constructor(n,a){super(n),this.status=a}status}const U8=6e3,En=45e3,GD=75e3,VD=75e3,Zm=75e3,QD=75e3;async function Ie(e,n={},a=U8){const i=af();let l;try{l=await fetch(e,{...n,signal:AbortSignal.timeout(a),headers:{authorization:`Bearer ${i??""}`,"content-type":"application/json","x-client-timeout-ms":String(a),...n.headers}})}catch(o){throw o instanceof DOMException&&o.name==="TimeoutError"?new Br("Request timed out",0):o}if(!l.ok){const o=await l.json().catch(()=>({}));throw new Br(z8(o.error,`HTTP ${l.status}`),l.status)}return l.json()}async function Wm(e,n){const a=af();let i;try{i=await fetch(e,{method:"POST",body:n,signal:AbortSignal.timeout(En),headers:{authorization:`Bearer ${a??""}`,"content-type":n.type||"application/octet-stream","x-attachment-name":encodeURIComponent(n.name),"x-client-timeout-ms":String(En)}})}catch(l){throw l instanceof DOMException&&l.name==="TimeoutError"?new Br("Upload timed out",0):l}if(!i.ok){const l=await i.json().catch(()=>({}));throw new Br(z8(l.error,`HTTP ${i.status}`),i.status)}return i.json()}const Bx=new Map;async function YD(e){const n=af(),a=await fetch(e,{headers:{authorization:`Bearer ${n??""}`},signal:AbortSignal.timeout(U8)});if(!a.ok)throw new Br(`HTTP ${a.status}`,a.status);return URL.createObjectURL(await a.blob())}function Dx(e){let n=Bx.get(e);return n||(n=YD(e),n.catch(()=>Bx.delete(e)),Bx.set(e,n)),n}const je={state:()=>Ie(ye.state.path()),voiceTicket:()=>Ie(ye.voiceTicket.path(),{method:ye.voiceTicket.method}),voiceCall:(e,n,a)=>Ie(ye.voiceCall.path(),{method:ye.voiceCall.method,body:JSON.stringify({sdp:e,voice:n,language:a})},En),voiceCallReady:e=>Ie(ye.voiceCallReady.path(e),{method:ye.voiceCallReady.method},En),voiceCallEnd:e=>Ie(ye.voiceCallEnd.path(e),{method:ye.voiceCallEnd.method},En),repoIcon:e=>Dx(ye.repoIcon.path(e)),localImage:e=>Dx(ye.localImage.path(e)),toolImage:e=>Dx(ye.toolImage.path(e)),filePreview:e=>Ie(ye.filePreview.path(e)),stageAttachment:e=>Wm(ye.stageAttachment.path(),e),discardStagedAttachment:e=>Ie(ye.discardStagedAttachment.path(e),{method:ye.discardStagedAttachment.method}),workspace:e=>Ie(ye.workspace.path(e)),sessions:e=>Ie(ye.sessions.path(e)),messages:(e,n,a)=>Ie(`${ye.messages.path(e)}?after=${n}`,{headers:a?{[ID]:a}:{}}),contextBreakdown:e=>Ie(ye.context.path(e)),uploadAttachment:(e,n,a)=>Wm(`${ye.uploadAttachment.path(e)}?workspaceId=${encodeURIComponent(n)}`,a),diff:e=>Ie(ye.diff.path(e)),workspaceFiles:e=>Ie(ye.workspaceFiles.path(e)),sendPrompt:(e,n,a,i,l,o,u)=>Ie(ye.sendPrompt.path(e),{method:ye.sendPrompt.method,body:JSON.stringify({text:n,workspaceId:a,agent:i,clientId:l,queue:o,workflow:u})},VD),stop:(e,n)=>Ie(ye.stop.path(e),{method:ye.stop.method,body:JSON.stringify({workspaceId:n})},En),closeChat:(e,n,a=!1)=>Ie(ye.closeChat.path(e),{method:ye.closeChat.method,body:JSON.stringify({workspaceId:n,closeRunning:a})},En),newChat:e=>Ie(ye.newChat.path(e),{method:ye.newChat.method},En),splitChat:(e,n,a,i,l,o,u="chat")=>Ie(ye.splitChat.path(e),{method:ye.splitChat.method,body:JSON.stringify({workspaceId:n,includeThinking:a,includeTools:i,throughRowid:l,onlyRowid:o,destination:u})},En),repos:()=>Ie(ye.repos.path()),modelCatalog:()=>Ie(ye.modelCatalog.path()),modelDefaults:()=>Ie(ye.modelDefaults.path()),patchModelDefaults:e=>Ie(ye.updateModelDefaults.path(),{method:ye.updateModelDefaults.method,body:JSON.stringify(e)}),planUsage:(e=!1)=>Ie(`${ye.planUsage.path()}${e?"?refresh=1":""}`,{},15e3),roles:()=>Ie(ye.roles.path()),updateRoles:e=>Ie(ye.updateRoles.path(),{method:ye.updateRoles.method,body:JSON.stringify(e)}),delegations:e=>Ie(`${ye.delegations.path()}${e?`?workspaceId=${encodeURIComponent(e)}`:""}`),delegateTask:(e,n)=>Ie(ye.delegateTask.path(e),{method:ye.delegateTask.method,body:JSON.stringify(n)}),dismissDelegation:e=>Ie(ye.dismissDelegation.path(e),{method:ye.dismissDelegation.method}),search:(e,n=[],a=!0)=>{const i=new URLSearchParams({q:e});for(const l of n)i.append("repo",l);return a||i.set("archived","0"),Ie(`${ye.search.path()}?${i}`)},dismissPrompt:e=>Ie(ye.dismissFirstPrompt.path(e),{method:ye.dismissFirstPrompt.method}),dismissParked:e=>Ie(ye.dismissParkedPrompt.path(e),{method:ye.dismissParkedPrompt.method}),createWorkspace:e=>Ie(ye.createWorkspace.path(),{method:ye.createWorkspace.method,body:JSON.stringify(e)},En),setAgent:(e,n,a)=>Ie(ye.agent.path(e),{method:ye.agent.method,body:JSON.stringify({...n,workspaceId:a})},En),models:(e,n)=>Ie(`${ye.models.path(e)}?workspaceId=${encodeURIComponent(n)}`,{},En),setDefaultModel:(e,n,a)=>Ie(ye.defaultModel.path(e),{method:ye.defaultModel.method,body:JSON.stringify({model:n,workspaceId:a})},En),logs:(e,n=300)=>Ie(`${ye.logs.path()}?limit=${n}${e?`&file=${encodeURIComponent(e)}`:""}`),push:()=>Ie(ye.push.path()),pushSubscribe:(e,n)=>Ie(ye.pushSubscribe.path(),{method:ye.pushSubscribe.method,body:JSON.stringify({subscription:e,label:n})}),pushUnsubscribe:e=>Ie(ye.pushUnsubscribe.path(),{method:ye.pushUnsubscribe.method,body:JSON.stringify({endpoint:e})}),pushTest:e=>Ie(ye.pushTest.path(),{method:ye.pushTest.method,body:JSON.stringify({id:e})},En),merge:e=>Ie(ye.merge.path(e),{method:ye.merge.method},En),continueWorkspace:(e,n)=>Ie(ye.continueWorkspace.path(e),{method:ye.continueWorkspace.method,body:JSON.stringify({sessionId:n})},GD),setStatus:(e,n)=>Ie(ye.workspaceStatus.path(e),{method:ye.workspaceStatus.method,body:JSON.stringify({status:n})},En),archive:(e,n=!1)=>Ie(ye.archiveWorkspace.path(e),{method:ye.archiveWorkspace.method,body:JSON.stringify({stopAgents:n})},En),devServer:e=>Ie(ye.devServer.path(e)),startDevServer:(e,n)=>Ie(ye.startDevServer.path(e),{method:ye.startDevServer.method,body:n?JSON.stringify({runConfigId:n}):void 0},Zm),stopDevServer:e=>Ie(ye.stopDevServer.path(e),{method:ye.stopDevServer.method},Zm),settings:()=>Ie(ye.settings.path()),patchSettings:e=>Ie(ye.updateSettings.path(),{method:ye.updateSettings.method,body:JSON.stringify(e)}),prefs:()=>Ie(ye.prefs.path()),patchPrefs:(e,n=!1)=>Ie(ye.updatePrefs.path(),{method:ye.updatePrefs.method,body:JSON.stringify(e),keepalive:n}),armNoSleep:e=>Ie(ye.armNoSleep.path(),{method:ye.armNoSleep.method,body:JSON.stringify({seconds:e})},En),disarmNoSleep:()=>Ie(ye.disarmNoSleep.path(),{method:ye.disarmNoSleep.method},En),restartConductor:(e=!1)=>Ie(ye.restartConductor.path(),{method:ye.restartConductor.method,body:JSON.stringify({stopAgents:e})},QD)},Jm=e=>{let n;const a=new Set,i=(h,g)=>{const p=typeof h=="function"?h(n):h;if(!Object.is(p,n)){const y=n;n=g??(typeof p!="object"||p===null)?p:Object.assign({},n,p),a.forEach(b=>b(n,y))}},l=()=>n,d={setState:i,getState:l,getInitialState:()=>f,subscribe:h=>(a.add(h),()=>a.delete(h))},f=n=e(i,l,d);return d},KD=(e=>e?Jm(e):Jm),XD=e=>e;function ZD(e,n=XD){const a=k0.useSyncExternalStore(e.subscribe,k0.useCallback(()=>n(e.getState()),[e,n]),k0.useCallback(()=>n(e.getInitialState()),[e,n]));return k0.useDebugValue(a),a}const e9=e=>{const n=KD(e),a=i=>ZD(n,i);return Object.assign(a,n),a},WD=(e=>e?e9(e):e9),JD=1e4;function ew(e,n=Date.now()){return Math.max(0,(e??n)+JD-n)}const hd="conductor-remote-pending",H8=20,tw=1440*60*1e3;function $8(e,n=[],a=!1){let i=a;const l=new Set;for(const o of e){if(l.add(o.text.trim()),o.status==="error")return"failed";o.status==="sending"&&(i=!0)}for(const o of n)if(!l.has(o.text.trim())){if(o.status==="failed")return"failed";o.status==="waiting"&&(i=!0)}return i?"sending":null}const t9=e=>e.status==="sending"||!!e.interrupted;function n9(e,n){const a=e.text.trim(),i=n.trim();return e.workflow?i.endsWith(`${kD}
12
+
13
+ ${a}`):i===a}function nw(e){const n=e;return!!n&&typeof n.id=="string"&&typeof n.sessionId=="string"&&typeof n.workspaceId=="string"&&typeof n.text=="string"&&typeof n.createdAt=="number"&&(n.workflow===void 0||typeof n.workflow=="boolean")&&(n.status==="sending"||n.status==="error")}const rw=e=>e.status==="sending"?{...e,status:"error",interrupted:!0,error:"Never confirmed — the app reloaded"}:e;function aw(){try{const e=JSON.parse(localStorage.getItem(hd)??"[]");if(!Array.isArray(e))return[];const n=Date.now()-tw;return e.filter(nw).filter(a=>a.createdAt>n).slice(-H8).map(rw)}catch{return[]}}function iw(e){try{const n=e.slice(-H8);n.length?localStorage.setItem(hd,JSON.stringify(n)):localStorage.removeItem(hd)}catch{}}const D0="conductor-remote-agent:",w0="conductor-remote-draft:",fa="new-workspace",r9="conductor-remote-read",q8=(e,n,a)=>(e[n]??"")<a;function sw(e,n){return(e.unread_sessions??[]).filter(a=>q8(n,a.id,a.at)).length}function lw(e,n){return!!e.unread_count&&q8(n,e.id,e.updated_at)}const a9="conductor-remote-prefs-v1";function vr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function pd(e){const n=vr(e);if(!n)return{};const a={};return typeof n.model=="string"&&(a.model=n.model),typeof n.effort=="string"&&(a.effort=n.effort),typeof n.plan=="boolean"&&(a.plan=n.plan),typeof n.fast=="boolean"&&(a.fast=n.fast),a}function ys(e){return Object.keys(e).length>0}function ow(e){const n=vr(e);return!n||typeof n.name!="string"||typeof n.path!="string"||typeof n.token!="string"||!Number.isSafeInteger(Number(n.bytes))||Number(n.bytes)<0||n.stageId!==void 0&&typeof n.stageId!="string"?null:{name:n.name,path:n.path,bytes:Number(n.bytes),token:n.token,...n.stageId?{stageId:n.stageId}:{}}}function G8(e){if(!Array.isArray(e))return[];const n=new Set;return e.flatMap(a=>{const i=ow(a);return!i||n.has(i.path)?[]:(n.add(i.path),[i])})}function i9(e){const n=vr(e);if(!n)return null;const a=Number(n.updatedAt);return!Number.isSafeInteger(a)||a<0?null:n.deleted===!0?{text:"",agent:{},attachments:[],updatedAt:a,deleted:!0}:typeof n.text!="string"?null:{text:n.text,agent:pd(n.agent),attachments:G8(n.attachments),updatedAt:a,deleted:!1}}function V8(e,n){return e.model===n.model&&e.effort===n.effort&&e.plan===n.plan&&e.fast===n.fast}function cw(e,n){return e.text===n.text&&e.updatedAt===n.updatedAt&&e.deleted===n.deleted&&V8(e.agent,n.agent)&&e.attachments.length===n.attachments.length&&e.attachments.every((a,i)=>{const l=n.attachments[i];return a.name===l?.name&&a.path===l.path&&a.bytes===l.bytes&&a.token===l.token&&a.stageId===l.stageId})}function ms(e,n,a,i){return e||ys(n)||a.length?{text:e,agent:{...n},attachments:G8(a),updatedAt:i,deleted:!1}:{text:"",agent:{},attachments:[],updatedAt:i,deleted:!0}}class uw{storage;prefs;clock;generation=0;touched=new Set;listeners=new Set;constructor(n){this.storage=n;const a=this.readRawDrafts(),i=this.readRawAgents(),l=this.readMetadata(),o=l?.drafts??{};if(this.clock=Math.max(Date.now(),...Object.values(o).map(u=>u.updatedAt)),l){const u={...o};for(const d of new Set([...Object.keys(o),...Object.keys(a),...Object.keys(i)])){const f=ms(a[d]??"",i[d]??{},[],o[d]?.updatedAt??0),h=o[d];!(h&&!h.deleted&&h.attachments.length>0&&!h.text&&!ys(h.agent)&&f.deleted)&&(!h||h.text!==f.text||h.deleted!==f.deleted||!V8(h.agent,f.agent))&&(u[d]=ms(f.text,f.agent,[],this.tick()),this.touched.add(d))}this.prefs={readMarks:this.readRawMarks(),drafts:u}}else{const u={};for(const d of new Set([...Object.keys(a),...Object.keys(i)]))u[d]=ms(a[d]??"",i[d]??{},[],0);this.prefs={readMarks:this.readRawMarks(),drafts:u}}this.persistAll()}snapshot(){return{readMarks:{...this.prefs.readMarks},drafts:Object.fromEntries(Object.entries(this.prefs.drafts).map(([n,a])=>[n,{...a,agent:{...a.agent},attachments:a.attachments.map(i=>({...i}))}]))}}project(){const n={},a={},i={};for(const[l,o]of Object.entries(this.prefs.drafts))o.deleted||(n[l]=o.text,ys(o.agent)&&(a[l]={...o.agent}),o.attachments.length&&(i[l]=o.attachments.map(u=>({...u}))));return{drafts:n,agentDrafts:a,draftAttachments:i,readMarks:{...this.prefs.readMarks}}}currentGeneration(){return this.generation}setDraft(n,a,i){return this.setLocal(n,a,i,this.prefs.drafts[n]?.attachments??[]),this.project()}setAgent(n,a,i){return this.setLocal(n,i,a,this.prefs.drafts[n]?.attachments??[]),this.project()}setAttachments(n,a,i,l){return this.setLocal(n,i,l,a),this.project()}setContent(n,a,i,l){return this.setLocal(n,a,i,l),this.project()}moveDraft(n,a){const i=this.prefs.drafts[n],l=this.prefs.drafts[a];return!i||i.deleted||n===a||l&&!l.deleted?this.project():(this.prefs.drafts[n]=ms("",{},[],this.tick()),this.prefs.drafts[a]=ms(i.text,i.agent,i.attachments,this.tick()),this.touched.add(n),this.touched.add(a),this.changed(),this.project())}markRead(n,a){return(this.prefs.readMarks[n]??"")>=a?this.project():(this.prefs.readMarks[n]=a,this.changed(),this.project())}merge(n,a){const i=vr(vr(n)?.drafts),l=this.cleanPrefs(n);for(const d of Object.values(l.drafts))this.clock=Math.max(this.clock,d.updatedAt);let o=!1,u=!1;for(const[d,f]of Object.entries(l.readMarks))(this.prefs.readMarks[d]??"")>=f||(this.prefs.readMarks[d]=f,o=!0);for(const[d,f]of Object.entries(this.prefs.readMarks))(l.readMarks[d]??"")<f&&(u=!0);for(const d of new Set([...Object.keys(this.prefs.drafts),...Object.keys(l.drafts)])){const f=this.prefs.drafts[d],h=l.drafts[d],g=vr(i?.[d]);if(f&&h&&!h.deleted&&g&&!Object.hasOwn(g,"attachments")&&(h.attachments=f.attachments.map(b=>({...b}))),!f&&h){this.prefs.drafts[d]=h,o=!0;continue}if(f&&!h){u=!0;continue}if(!(f&&h)||cw(f,h))continue;const p=a===d&&(this.touched.has(d)||!f.deleted&&(f.text.length>0||ys(f.agent)||f.attachments.length>0)),y=h.updatedAt>f.updatedAt||h.updatedAt===f.updatedAt&&(h.deleted||!f.deleted);if(y&&!p){this.prefs.drafts[d]=h,o=!0;continue}y&&(f.updatedAt=this.tick(h.updatedAt),o=!0),u=!0}return o&&this.persistAll(),{state:this.project(),needsUpload:u}}subscribe(n){return this.listeners.add(n),()=>this.listeners.delete(n)}requestFlush(){for(const n of this.listeners)n(!0)}setLocal(n,a,i,l){this.prefs.drafts[n]=ms(a,pd(i),l,this.tick()),this.touched.add(n),this.changed()}changed(){this.generation+=1,this.persistAll();for(const n of this.listeners)n(!1)}tick(n=0){return this.clock=Math.max(Date.now(),this.clock+1,n+1),this.clock}cleanPrefs(n){const a=vr(n),i={};for(const[o,u]of Object.entries(vr(a?.readMarks)??{}))typeof u=="string"&&(i[o]=u);const l={};for(const[o,u]of Object.entries(vr(a?.drafts)??{})){const d=i9(u);d&&(l[o]=d)}return{readMarks:i,drafts:l}}readMetadata(){try{const n=vr(JSON.parse(this.storage.getItem(a9)??"null"));if(n?.version!==1)return null;const a={};for(const[i,l]of Object.entries(vr(n.drafts)??{})){const o=i9(l);o&&(a[i]=o)}return{drafts:a}}catch{return null}}readRawDrafts(){const n={};try{for(let a=0;a<this.storage.length;a++){const i=this.storage.key(a);if(!i?.startsWith(w0))continue;const l=this.storage.getItem(i);l&&(n[i.slice(w0.length)]=l)}}catch{}return n}readRawAgents(){const n={};try{for(let a=0;a<this.storage.length;a++){const i=this.storage.key(a);if(!i?.startsWith(D0))continue;const l=this.storage.getItem(i);if(!l)continue;const o=pd(JSON.parse(l));ys(o)&&(n[i.slice(D0.length)]=o)}}catch{}return n}readRawMarks(){try{const n=vr(JSON.parse(this.storage.getItem(r9)??"{}"));return n?Object.fromEntries(Object.entries(n).filter(a=>typeof a[1]=="string")):{}}catch{return{}}}persistAll(){try{for(const[n,a]of Object.entries(this.prefs.drafts))!a.deleted&&a.text?this.storage.setItem(w0+n,a.text):this.storage.removeItem(w0+n),!a.deleted&&ys(a.agent)?this.storage.setItem(D0+n,JSON.stringify(a.agent)):this.storage.removeItem(D0+n);this.storage.setItem(r9,JSON.stringify(this.prefs.readMarks)),this.storage.setItem(a9,JSON.stringify({version:1,drafts:this.prefs.drafts}))}catch{}}}let wx=null;function Fr(){return wx||(wx=new uw(localStorage)),wx}const xw=()=>Fr().project(),dw=()=>Fr().snapshot(),s9=()=>Fr().currentGeneration(),fw=(e,n,a)=>Fr().setDraft(e,n,a),l9=(e,n,a)=>Fr().setAgent(e,n,a),o9=(e,n,a,i)=>Fr().setAttachments(e,n,a,i),hw=(e,n,a,i)=>Fr().setContent(e,n,a,i),pw=(e,n)=>Fr().moveDraft(e,n),mw=(e,n)=>Fr().markRead(e,n),gw=(e,n)=>Fr().merge(e,n),Ew=e=>Fr().subscribe(e),md=()=>Fr().requestFlush();let gs=null;const F0=xw(),gd=15e3,Q8="conductor-remote-view",Y8="conductor-remote-last-new-workspace-repo",c9={groupBy:"status",repos:[],sortBy:"updated",showDiffs:!0,hideMerged:!1,hideDone:!1,collapsed:[]};function u9(e){const n={};return e.model!==void 0&&(n.model=e.model),e.effort!==void 0&&(n.effort=e.effort),e.plan!==void 0&&(n.plan=e.plan),e.fast!==void 0&&(n.fast=e.fast),n}function yw(){try{const{repo:e,...n}=JSON.parse(localStorage.getItem(Q8)??"{}"),a=Array.isArray(n.repos)?n.repos.filter(i=>typeof i=="string"):typeof e=="string"?[e]:[];return{...c9,...n,repos:a}}catch{return c9}}function bw(){try{return localStorage.getItem(Y8)??""}catch{return""}}const Be=WD((e,n)=>{const a=l=>{localStorage.setItem(Q8,JSON.stringify(l)),e({view:l})},i=l=>{iw(l),e({pending:l})};return{token:UD(),online:!0,lastSyncAt:null,update:null,workingHints:{},pending:aw(),drafts:F0.drafts,draftAttachments:F0.draftAttachments,agentDrafts:F0.agentDrafts,readMarks:F0.readMarks,focusedDraft:null,push:{deviceId:null,devices:0},sidebarOpen:!location.pathname.startsWith("/w/"),lastNewWorkspaceRepo:bw(),view:yw(),setToken:l=>{l?$D(l):HD(),e({token:l})},setOnline:l=>{if(l){gs&&clearTimeout(gs),gs=null,e({online:l,lastSyncAt:Date.now()});return}if(!n().online||gs)return;const o=ew(n().lastSyncAt);if(o===0){e({online:!1});return}gs=setTimeout(()=>{gs=null,e({online:!1})},o)},setUpdate:l=>e({update:l}),markWorking:l=>e({workingHints:{...n().workingHints,[l]:Date.now()}}),clearWorking:l=>{const{[l]:o,...u}=n().workingHints;e({workingHints:u})},addPending:l=>i([...n().pending.filter(o=>o.id!==l.id),{...l,status:"sending",error:void 0,createdAt:Date.now()}]),failPending:(l,o)=>i(n().pending.map(u=>u.id===l?{...u,status:"error",error:o}:u)),removePending:l=>i(n().pending.filter(o=>o.id!==l)),setDraft:(l,o)=>{const u=fw(l,o,n().agentDrafts[l]??{});e({drafts:u.drafts,agentDrafts:u.agentDrafts,draftAttachments:u.draftAttachments})},addDraftAttachment:(l,o)=>{const u=n().draftAttachments[l]??[];if(u.some(f=>f.path===o.path))return;const d=o9(l,[...u,o],n().drafts[l]??"",n().agentDrafts[l]??{});e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},removeDraftAttachment:(l,o)=>{const u=n().draftAttachments[l]??[],d=u.filter(h=>h.path!==o);if(d.length===u.length)return;const f=o9(l,d,n().drafts[l]??"",n().agentDrafts[l]??{});e({drafts:f.drafts,agentDrafts:f.agentDrafts,draftAttachments:f.draftAttachments})},clearDraftContent:l=>{const o=hw(l,"",n().agentDrafts[l]??{},[]);e({drafts:o.drafts,agentDrafts:o.agentDrafts,draftAttachments:o.draftAttachments})},moveDraft:(l,o)=>{const u=n().drafts,f=u[l]!==void 0||n().agentDrafts[l]!==void 0||n().draftAttachments[l]!==void 0,h=u[o]!==void 0||n().agentDrafts[o]!==void 0||n().draftAttachments[o]!==void 0;if(!f||l===o||h)return;const g=pw(l,o);e({drafts:g.drafts,agentDrafts:g.agentDrafts,draftAttachments:g.draftAttachments})},markRead:(l,o)=>{(n().readMarks[l]??"")>=o||e({readMarks:mw(l,o).readMarks})},stageAgent:(l,o)=>{const u=u9({...n().agentDrafts[l],...o}),d=l9(l,u,n().drafts[l]??"");e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},clearAgentDraft:(l,o)=>{const u=n().agentDrafts[l];if(!u)return;const d=u9({model:u.model===o.model?void 0:u.model,effort:u.effort===o.effort?void 0:u.effort,plan:u.plan===o.plan?void 0:u.plan,fast:u.fast===o.fast?void 0:u.fast}),f=l9(l,d,n().drafts[l]??"");e({drafts:f.drafts,agentDrafts:f.agentDrafts,draftAttachments:f.draftAttachments})},applySyncedPrefs:l=>e({drafts:l.drafts,agentDrafts:l.agentDrafts,draftAttachments:l.draftAttachments,readMarks:l.readMarks}),setFocusedDraft:l=>e({focusedDraft:l}),setPush:l=>e({push:l}),setSidebarOpen:l=>e({sidebarOpen:l}),setLastNewWorkspaceRepo:l=>{try{localStorage.setItem(Y8,l)}catch{}e({lastNewWorkspaceRepo:l})},setView:l=>a({...n().view,...l}),toggleGroup:l=>{const{collapsed:o}=n().view;a({...n().view,collapsed:o.includes(l)?o.filter(u=>u!==l):[...o,l]})}}}),x9=6e4,Cw=1e4,Fx="pwa-update-attempted-at",vw=2500,Aw=30*6e4,Bl="pwa-update-snoozed-until";async function kw(){try{if("serviceWorker"in navigator){const n=await navigator.serviceWorker.getRegistrations();await Promise.all(n.map(a=>a.unregister()))}if("caches"in window){const n=await caches.keys();await Promise.all(n.map(a=>caches.delete(a)))}}catch{}const e=location.search?"&":"?";location.replace(`${location.pathname}${location.search}${e}_v=${Date.now()}`)}function Bw(){const e=Be(p=>p.token),n=D.useRef(null),a=D.useRef(!1),{needRefresh:[i,l],updateServiceWorker:o}=E7({onRegisteredSW(p,y){y&&(n.current=y,setInterval(()=>{y.update().catch(()=>{})},x9))}}),{data:u}=An({queryKey:["state"],queryFn:()=>je.state(),enabled:!!e,refetchInterval:!1}),d=u?.version,f=D.useRef(null);if(D.useEffect(()=>{!d||d==="1.103.1"||f.current===d||(f.current=d,n.current?.update().catch(()=>{}))},[d]),D.useEffect(()=>{if(!i)return;const p=Number(sessionStorage.getItem(Fx));if(sessionStorage.removeItem(Fx),p&&Date.now()-p<Cw){l(!1);return}const y=Number(sessionStorage.getItem(Bl));y&&Date.now()<y&&l(!1)},[i,l]),D.useEffect(()=>{if(i)return;const p=()=>{const b=Number(sessionStorage.getItem(Bl));!b||Date.now()<b||n.current?.waiting&&(sessionStorage.removeItem(Bl),l(!0))},y=window.setInterval(p,x9);return document.addEventListener("visibilitychange",p),()=>{window.clearInterval(y),document.removeEventListener("visibilitychange",p)}},[i,l]),!i)return null;const h=()=>{sessionStorage.setItem(Bl,String(Date.now()+Aw)),l(!1)},g=()=>{sessionStorage.removeItem(Bl),sessionStorage.setItem(Fx,String(Date.now()));const p=()=>{a.current||(a.current=!0,window.location.reload())},y=n.current?.waiting;y?(navigator.serviceWorker?.addEventListener("controllerchange",p,{once:!0}),y.addEventListener("statechange",()=>{y.state==="activated"&&p()}),y.postMessage({type:"SKIP_WAITING"})):o(!0),window.setTimeout(()=>{a.current||(a.current=!0,kw())},vw)};return x.jsxs("div",{className:"pb-safe fade-in fixed inset-x-0 bottom-0 z-40 mx-auto flex max-w-sm items-center gap-3 rounded-t-2xl border border-border-soft bg-surface px-4 py-3 shadow-xl",children:[x.jsx(to,{size:15,className:"shrink-0 text-accent"}),x.jsx("span",{className:"flex-1 text-sm",children:"New version ready"}),x.jsx("button",{type:"button",onClick:h,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Later"}),x.jsx("button",{type:"button",onClick:g,className:"rounded-lg bg-accent px-3 py-1 text-xs font-semibold text-on-solid transition active:scale-95",children:"Update"})]})}function Dw(){return/iP(hone|ad|od)/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function K8(){return window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0}function X8(){return window.isSecureContext?"serviceWorker"in navigator?!("PushManager"in window)||!("Notification"in window)?Dw()&&!K8()?"needs-install":"unsupported":"ok":"unsupported":"insecure"}function Z8(){const e=navigator.userAgent,n=/iPhone/.test(e)?"iPhone":/iPad/.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1?"iPad":/Android/.test(e)?"Android":/Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":"Browser";return K8()?n:`${n} (browser)`}function ww(e){const n=e+"=".repeat((4-e.length%4)%4),a=atob(n.replace(/-/g,"+").replace(/_/g,"/")),i=new Uint8Array(a.length);for(let l=0;l<a.length;l++)i[l]=a.charCodeAt(l);return i}function Fw(e){let n="";for(const a of new Uint8Array(e))n+=String.fromCharCode(a);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function sf(){if(!("serviceWorker"in navigator))return null;const e=await navigator.serviceWorker.getRegistration();return e||Promise.race([navigator.serviceWorker.ready,new Promise(n=>setTimeout(()=>n(null),5e3))])}async function Sw(e){const n=await sf();if(typeof n?.getNotifications=="function")try{for(const a of await n.getNotifications({tag:e}))a.close()}catch{}}async function W8(){return await(await sf())?.pushManager.getSubscription()??null}function Nw(e,n){const a=e.options.applicationServerKey;return!!a&&Fw(a)===n}async function J8(e){const n=await sf();if(!n)throw new Error("the app’s service worker isn’t running yet — reload and try again");return n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:ww(e)})}function eg(e){const n=e.toJSON(),a=n.keys??{};if(!n.endpoint||!a.p256dh||!a.auth)throw new Error("the browser returned an incomplete subscription");return{endpoint:n.endpoint,keys:{p256dh:a.p256dh,auth:a.auth}}}async function _w(e){let n=await W8();if(n&&!Nw(n,e)&&(await n.unsubscribe().catch(()=>{}),n=Notification.permission==="granted"?await J8(e):null),!n)return null;const a=await je.pushSubscribe(eg(n),Z8());return{id:a.id??null,devices:a.devices.length}}function Y0(){const e=window.getSelection();return!!e&&!e.isCollapsed&&e.toString().length>0}const S0=28;function Mw(e,n){const a=window.getSelection();if(!a||a.isCollapsed||!a.rangeCount)return!1;for(const i of a.getRangeAt(0).getClientRects())if(e>=i.left-S0&&e<=i.right+S0&&n>=i.top-S0&&n<=i.bottom+S0)return!0;return!1}function jw(e,n){const a=n.filter(o=>Xm(o)&&o.toolUseId);if(!a.length)return[...e,...n];const i=[...e,...n.filter(o=>!Xm(o))],l=new Map;i.forEach((o,u)=>{o.tool&&o.toolUseId&&!l.has(o.toolUseId)&&l.set(o.toolUseId,u)});for(const o of a){const u=o.toolUseId?l.get(o.toolUseId):void 0;if(u===void 0){o.error&&i.push(o);continue}const d=i[u];i[u]={...d,output:o.output,diff:o.diff,images:o.images,error:o.error??d.error}}return i}function Tw(e,n){if(!n.length)return[...e];const a=new Set(e.map(i=>i.id));return[...e,...n.filter(i=>!a.has(i.id))]}function Rw(e){const n=Be(l=>l.setSidebarOpen),a=Be(l=>l.sidebarOpen),i=D.useRef(a);i.current=a,D.useEffect(()=>{const l=e.current;l&&(l.style.transition="",l.style.transform="")},[a,e]),D.useEffect(()=>{const u=window.matchMedia("(min-width: 768px)"),d=()=>e.current;let f=!1,h=!1,g=!1,p=!1,y=0,b=0,C=0,v=0;const k=R=>{const L=d();L&&(L.style.transition="none",L.style.transform=`translateX(${R}px)`,v=R)},B=()=>{const R=d();R&&(R.style.transition="",R.style.transform="")},j=R=>{for(let L=R;L;L=L.parentElement)if(L.scrollLeft>0)return!0;return!1},S=()=>{f&&(f=!1,B())},_=R=>{if(S(),u.matches||R.touches.length!==1)return;const L=R.touches[0];if(i.current){const I=d()?.getBoundingClientRect().right??0;if(L.clientX>I)return}else if(L.clientX>44||j(R.target))return;Mw(L.clientX,L.clientY)||(f=!0,h=!1,g=!1,p=Y0(),y=L.clientX,b=L.clientY,C=d()?.offsetWidth??0)},T=R=>{if(!f||g)return;if(!p&&Y0()){g=!0;return}const L=R.touches[0],I=L.clientX-y,O=L.clientY-b;if(!h){if(Math.abs(O)>Math.abs(I)&&Math.abs(O)>8){g=!0;return}if(Math.abs(I)<6)return;h=!0}R.preventDefault();const $=i.current?0:-C;k(Math.max(-C,Math.min(0,$+I)))},F=()=>{if(!f)return;if(f=!1,!h||g)return B();const R=C?(v+C)/C:0;B(),n(R>.4)};return window.addEventListener("touchstart",_,{passive:!0}),window.addEventListener("touchmove",T,{passive:!1}),window.addEventListener("touchend",F),window.addEventListener("touchcancel",F),document.addEventListener("visibilitychange",S),()=>{window.removeEventListener("touchstart",_),window.removeEventListener("touchmove",T),window.removeEventListener("touchend",F),window.removeEventListener("touchcancel",F),document.removeEventListener("visibilitychange",S)}},[e,n])}const d9='input, textarea, [contenteditable]:not([contenteditable="false"])';function Ow(){D.useEffect(()=>{const e=window.visualViewport;if(!e)return;const n=document.documentElement;(matchMedia("(display-mode: standalone)").matches||navigator.standalone)&&n.setAttribute("data-standalone","");let a=0,i;const l=()=>{n.style.removeProperty("--app-height"),n.removeAttribute("data-keyboard")},o=g=>{g&&!i?i=setInterval(u,300):!g&&i&&(clearInterval(i),i=void 0)},u=()=>{const g=document.activeElement,p=g instanceof HTMLElement&&g.matches(d9),y=e.scale>1.01;!p||y?(!y&&window.innerHeight-e.height<120&&(a=e.height),l()):(a||window.innerHeight)-e.height>40?(n.style.setProperty("--app-height",`${Math.round(e.height+e.offsetTop)}px`),n.setAttribute("data-keyboard","")):l(),o(p||n.hasAttribute("data-keyboard")),window.scrollY!==0&&window.scrollTo(0,0)};let d;const f=()=>{u(),clearTimeout(d),d=setTimeout(u,350)},h=()=>{if(document.visibilityState==="hidden"){const g=document.activeElement;g instanceof HTMLElement&&g.matches(d9)&&g.blur(),l(),o(!1)}else f()};return u(),e.addEventListener("resize",u),e.addEventListener("scroll",u),window.addEventListener("pageshow",f),document.addEventListener("visibilitychange",h),document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{clearTimeout(d),o(!1),e.removeEventListener("resize",u),e.removeEventListener("scroll",u),window.removeEventListener("pageshow",f),document.removeEventListener("visibilitychange",h),document.removeEventListener("focusin",f),document.removeEventListener("focusout",f),l()}},[])}function Ds(){const e=Be(a=>a.setOnline),n=Be(a=>a.setToken);return D.useCallback((a,i)=>{e(a),i instanceof Br&&i.status===401&&n(null)},[e,n])}function tg(){const e=Ds(),n=Be(i=>i.setUpdate),a=An({queryKey:["state"],queryFn:()=>je.state(),refetchInterval:2500});return D.useEffect(()=>{a.isSuccess&&(e(!0),n(a.data.update??null)),a.isError&&e(!1,a.error)},[a.isSuccess,a.isError,a.error,a.data,e,n]),a}function zw(){const e=Ds();D.useEffect(()=>{let i=!0,l=!1,o=!1,u=!1,d=null;const f=v=>{const k=gw(v,Be.getState().focusedDraft);Be.getState().applySyncedPrefs(k.state),k.needsUpload&&g(!1)},h=async(v,k=!1)=>{if(!i)return;if(l){o||=v,u||=k;return}l=!0;const B=s9();try{const j=v?await je.patchPrefs(dw(),k):await je.prefs();if(!i)return;e(!0),f(j.prefs),s9()!==B&&g(!1)}catch(j){if(!i)return;j instanceof Br&&j.status===404||e(!1,j)}finally{if(l=!1,i&&o){const j=u;o=!1,u=!1,h(!0,j)}}};function g(v,k=!1){d&&clearTimeout(d),d=null,v?h(!0,k):d=setTimeout(()=>{h(!0)},700)}const p=Ew(v=>g(v)),y=setInterval(()=>{h(!1)},15e3),b=()=>{document.visibilityState==="hidden"?g(!0,!0):h(!1)},C=()=>g(!0);return document.addEventListener("visibilitychange",b),window.addEventListener("online",C),h(!0),()=>{i=!1,d&&clearTimeout(d),clearInterval(y),p(),document.removeEventListener("visibilitychange",b),window.removeEventListener("online",C)}},[e])}function ng(){return An({queryKey:["repos"],queryFn:()=>je.repos(),staleTime:6e4})}function Lw(e,n){const[a,i]=D.useState(e);return D.useEffect(()=>{const l=setTimeout(()=>i(e),n);return()=>clearTimeout(l)},[e,n]),a}function Pw(e,n=[],a=!0){const i=e.trim();return An({queryKey:["search",i,n,a],queryFn:()=>je.search(i,n,a),enabled:i.length>=2,staleTime:3e4,placeholderData:Vy})}function Iw(e,n){const a=Ds(),i=An({queryKey:["workspace",e],queryFn:()=>je.workspace(e),enabled:n&&!!e,staleTime:Number.POSITIVE_INFINITY,retry:(l,o)=>!(o instanceof Br&&o.status===404)&&l<1});return D.useEffect(()=>{i.isError&&!(i.error instanceof Br&&i.error.status===404)&&a(!1,i.error)},[i.isError,i.error,a]),i}function rg(e,n=!0){const a=Ds(),i=An({queryKey:["sessions",e],queryFn:()=>je.sessions(e),enabled:!!e,refetchInterval:n?2e3:!1});return D.useEffect(()=>{i.isError&&a(!1,i.error)},[i.isError,i.error,a]),i}function Uw(e,n){return An({queryKey:["workspaceFiles",e],queryFn:()=>je.workspaceFiles(e),enabled:n&&!!e,staleTime:12e4,retry:!1})}function Hw(e){return An({queryKey:["dev-server",e],queryFn:()=>je.devServer(e),enabled:!!e,refetchInterval:2500})}function $w(e,n){const a=Ds(),i=An({queryKey:["diff",e],queryFn:()=>je.diff(e),enabled:n&&!!e,refetchInterval:5e3});return D.useEffect(()=>{i.isError&&a(!1,i.error)},[i.isError,i.error,a]),i}function qw(e){return An({queryKey:["repoIcon",e],queryFn:()=>je.repoIcon(e),enabled:!!e,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Gw(e,n){return An({queryKey:["logs",e],queryFn:()=>je.logs(e),enabled:n,refetchInterval:3e3,retry:!1})}function oc(){return An({queryKey:["model-catalog"],queryFn:je.modelCatalog,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function ag(){return An({queryKey:["model-defaults"],queryFn:je.modelDefaults,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Vw(e){return An({queryKey:["plan-usage"],queryFn:()=>je.planUsage(),enabled:e,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function ig(e,n=!0,a){return An({queryKey:["context-breakdown",e,a??null],queryFn:()=>je.contextBreakdown(e),enabled:n&&!!e,staleTime:0,retry:!1})}function lf(e=!0){return An({queryKey:["roles"],queryFn:je.roles,enabled:e,staleTime:3e4,retry:!1})}function Qw(e,n,a){const i=e?.agent_type??"claude",l=ur();return An({queryKey:["models",i],queryFn:async()=>{const o=await je.models(e.id,n);if(!o.ok||!o.models?.length)throw new Error(o.error??"could not read the model list");return await l.invalidateQueries({queryKey:["model-catalog"]}),o},enabled:a&&!!e,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}const Yw=(e,n)=>e.length===n.length&&e.every((a,i)=>a.id===n[i].id&&a.text===n[i].text);function Kw(e,n=!0){const a=Ds(),[i,l]=D.useState({entries:[],queued:[],loading:!0,error:null}),o=D.useRef(0),u=Be(h=>h.push.deviceId),d=D.useRef(u);return d.current=u,D.useEffect(()=>{if(!e){l({entries:[],queued:[],loading:!1,error:null});return}o.current=0,l({entries:[],queued:[],loading:!0,error:null});let h=!0,g=!1;const p=async()=>{if(!g){g=!0;try{const b=document.visibilityState==="visible"?d.current:null,{entries:C,queued:v=[],cursor:k}=await je.messages(e,o.current,b);if(!h)return;a(!0),o.current=k,l(B=>{const j=C.length?jw(B.entries,C):B.entries,S=Yw(B.queued,v);return j===B.entries&&S&&!B.loading&&!B.error?B:{entries:j,queued:S?B.queued:v,loading:!1,error:null}})}catch(b){if(!h)return;a(!1,b),l(C=>({...C,loading:!1,error:b instanceof Error?b.message:String(b)}))}finally{g=!1}}};p();const y=n?setInterval(p,1e3):void 0;return()=>{h=!1,y&&clearInterval(y)}},[e,n,a]),{entries:D.useMemo(()=>Tw(i.entries,i.queued),[i.entries,i.queued]),loading:i.loading,error:i.error}}function sg(){const e=ur(),n=Be(u=>u.addPending),a=Be(u=>u.failPending),i=Be(u=>u.removePending),l=Be(u=>u.markWorking),o=Be(u=>u.clearAgentDraft);return D.useCallback(async u=>{const d=u.text.trim();if(!d)return!1;const f=u.id??crypto.randomUUID(),{sessionId:h,workspaceId:g}=u;n({id:f,sessionId:h,workspaceId:g,text:d,queue:u.queue,workflow:u.workflow});try{const p=Be.getState().agentDrafts[h],y=!u.workflow&&p&&Object.keys(p).length?p:void 0,b=await je.sendPrompt(h,d,g,y,f,u.queue,u.workflow);if(b.ok||b.parked){const C=u.workflow?p:y;return C&&(o(h,C),e.invalidateQueries({queryKey:["sessions",g]})),b.ok&&l(h),e.invalidateQueries({queryKey:["state"]}),setTimeout(()=>i(f),4e3),!0}a(f,b.error||"Send failed")}catch(p){a(f,p instanceof Error?p.message:String(p))}return!1},[n,a,i,l,o,e])}function lg(e){return An({queryKey:["push"],queryFn:()=>je.push(),enabled:e,staleTime:3e4})}function Xw(){const[e]=D.useState(X8),n=Be(l=>l.setPush),{data:a}=lg(e==="ok"),i=a?.publicKey;D.useEffect(()=>{if(e!=="ok"||!i)return;let l=!0;return _w(i).then(o=>{l&&n({deviceId:o?.id??null,devices:o?.devices??0})}).catch(()=>{}),()=>{l=!1}},[e,i,n])}function Zw(){const[e]=D.useState(X8),[n,a]=D.useState(()=>"Notification"in window?Notification.permission:"unsupported"),[i,l]=D.useState(!1),[o,u]=D.useState(null),{deviceId:d,devices:f}=Be(v=>v.push),h=Be(v=>v.setPush),g=lg(e==="ok"),p=g.data?.publicKey,y=D.useCallback(async()=>{l(!0),u(null);try{const v=await Notification.requestPermission();if(a(v),v!=="granted"){u(v==="denied"?"Notifications are blocked for this app — allow them in your device settings, then try again.":"Notification permission wasn’t granted.");return}const k=p??(await je.push()).publicKey,B=await J8(k),j=await je.pushSubscribe(eg(B),Z8());h({deviceId:j.id??null,devices:j.devices.length})}catch(v){u(v instanceof Error?v.message:String(v))}finally{l(!1)}},[p,h]),b=D.useCallback(async()=>{l(!0),u(null);try{const v=await W8();let k=0;v&&(k=(await je.pushUnsubscribe(v.endpoint).catch(()=>null))?.devices.length??0,await v.unsubscribe()),h({deviceId:null,devices:k})}catch(v){u(v instanceof Error?v.message:String(v))}finally{l(!1)}},[h]),C=D.useCallback(async()=>{if(d){l(!0),u(null);try{const v=await je.pushTest(d);v.ok||u(v.error??"The push service rejected it.")}catch(v){u(v instanceof Error?v.message:String(v))}finally{l(!1)}}},[d]);return{support:e,permission:n,enabled:!!d,relayDisabled:g.data?.enabled===!1,busy:i,error:o,devices:f,enable:y,disable:b,test:C}}const Ww="push-route",f9="/__push-route",Jw=12e4;async function h9(){if(!("caches"in window))return null;try{const e=await caches.open(Ww),n=await e.match(f9);if(!n)return null;await e.delete(f9);const{url:a,ts:i}=await n.json();return typeof a!="string"||!a.startsWith("/")||typeof i!="number"||Date.now()-i>Jw?null:a}catch{return null}}function eF(){const e=_i();D.useEffect(()=>{let n=!0;const a=()=>{h9().then(o=>{n&&o&&e(o)})},i=o=>{const u=o.data;u?.type==="push-navigate"&&typeof u.url=="string"&&u.url.startsWith("/")&&(h9(),e(u.url))},l=()=>{document.visibilityState==="visible"&&a()};return"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",i),document.addEventListener("visibilitychange",l),a(),()=>{n=!1,"serviceWorker"in navigator&&navigator.serviceWorker.removeEventListener("message",i),document.removeEventListener("visibilitychange",l)}},[e])}function tF(e,n){D.useEffect(()=>{if(!e)return;const a=()=>{document.visibilityState==="visible"&&Sw(e)};return a(),document.addEventListener("visibilitychange",a),()=>document.removeEventListener("visibilitychange",a)},[e,n])}function og(e){var n,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(a=og(e[n]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function nF(){for(var e,n,a=0,i="",l=arguments.length;a<l;a++)(e=arguments[a])&&(n=og(e))&&(i&&(i+=" "),i+=n);return i}const rF=(e,n)=>{const a=new Array(e.length+n.length);for(let i=0;i<e.length;i++)a[i]=e[i];for(let i=0;i<n.length;i++)a[e.length+i]=n[i];return a},aF=(e,n)=>({classGroupId:e,validator:n}),cg=(e=new Map,n=null,a)=>({nextPart:e,validators:n,classGroupId:a}),K0="-",p9=[],iF="arbitrary..",sF=e=>{const n=oF(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return lF(u);const d=u.split(K0),f=d[0]===""&&d.length>1?1:0;return ug(d,f,n)},getConflictingClassGroupIds:(u,d)=>{if(d){const f=i[u],h=a[u];return f?h?rF(h,f):f:h||p9}return a[u]||p9}}},ug=(e,n,a)=>{if(e.length-n===0)return a.classGroupId;const l=e[n],o=a.nextPart.get(l);if(o){const h=ug(e,n+1,o);if(h)return h}const u=a.validators;if(u===null)return;const d=n===0?e.join(K0):e.slice(n).join(K0),f=u.length;for(let h=0;h<f;h++){const g=u[h];if(g.validator(d))return g.classGroupId}},lF=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),a=n.indexOf(":"),i=n.slice(0,a);return i?iF+i:void 0})(),oF=e=>{const{theme:n,classGroups:a}=e;return cF(a,n)},cF=(e,n)=>{const a=cg();for(const i in e){const l=e[i];of(l,a,i,n)}return a},of=(e,n,a,i)=>{const l=e.length;for(let o=0;o<l;o++){const u=e[o];uF(u,n,a,i)}},uF=(e,n,a,i)=>{if(typeof e=="string"){xF(e,n,a);return}if(typeof e=="function"){dF(e,n,a,i);return}fF(e,n,a,i)},xF=(e,n,a)=>{const i=e===""?n:xg(n,e);i.classGroupId=a},dF=(e,n,a,i)=>{if(hF(e)){of(e(i),n,a,i);return}n.validators===null&&(n.validators=[]),n.validators.push(aF(a,e))},fF=(e,n,a,i)=>{const l=Object.entries(e),o=l.length;for(let u=0;u<o;u++){const[d,f]=l[u];of(f,xg(n,d),a,i)}},xg=(e,n)=>{let a=e;const i=n.split(K0),l=i.length;for(let o=0;o<l;o++){const u=i[o];let d=a.nextPart.get(u);d||(d=cg(),a.nextPart.set(u,d)),a=d}return a},hF=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=Object.create(null),i=Object.create(null);const l=(o,u)=>{a[o]=u,n++,n>e&&(n=0,i=a,a=Object.create(null))};return{get(o){let u=a[o];if(u!==void 0)return u;if((u=i[o])!==void 0)return l(o,u),u},set(o,u){o in a?a[o]=u:l(o,u)}}},Ed="!",m9=":",mF=[],g9=(e,n,a,i,l)=>({modifiers:e,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:i,isExternal:l}),gF=e=>{const{prefix:n,experimentalParseClassName:a}=e;let i=l=>{const o=[];let u=0,d=0,f=0,h;const g=l.length;for(let v=0;v<g;v++){const k=l[v];if(u===0&&d===0){if(k===m9){o.push(l.slice(f,v)),f=v+1;continue}if(k==="/"){h=v;continue}}k==="["?u++:k==="]"?u--:k==="("?d++:k===")"&&d--}const p=o.length===0?l:l.slice(f);let y=p,b=!1;p.endsWith(Ed)?(y=p.slice(0,-1),b=!0):p.startsWith(Ed)&&(y=p.slice(1),b=!0);const C=h&&h>f?h-f:void 0;return g9(o,b,y,C)};if(n){const l=n+m9,o=i;i=u=>u.startsWith(l)?o(u.slice(l.length)):g9(mF,!1,u,void 0,!0)}if(a){const l=i;i=o=>a({className:o,parseClassName:l})}return i},EF=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((a,i)=>{n.set(a,1e6+i)}),a=>{const i=[];let l=[];for(let o=0;o<a.length;o++){const u=a[o],d=u[0]==="[",f=n.has(u);d||f?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(u)):l.push(u)}return l.length>0&&(l.sort(),i.push(...l)),i}},yF=e=>({cache:pF(e.cacheSize),parseClassName:gF(e),sortModifiers:EF(e),postfixLookupClassGroupIds:bF(e),...sF(e)}),bF=e=>{const n=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let i=0;i<a.length;i++)n[a[i]]=!0;return n},CF=/\s+/,vF=(e,n)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:o,postfixLookupClassGroupIds:u}=n,d=[],f=e.trim().split(CF);let h="";for(let g=f.length-1;g>=0;g-=1){const p=f[g],{isExternal:y,modifiers:b,hasImportantModifier:C,baseClassName:v,maybePostfixModifierPosition:k}=a(p);if(y){h=p+(h.length>0?" "+h:h);continue}let B=!!k,j;if(B){const R=v.substring(0,k);j=i(R);const L=j&&u[j]?i(v):void 0;L&&L!==j&&(j=L,B=!1)}else j=i(v);if(!j){if(!B){h=p+(h.length>0?" "+h:h);continue}if(j=i(v),!j){h=p+(h.length>0?" "+h:h);continue}B=!1}const S=b.length===0?"":b.length===1?b[0]:o(b).join(":"),_=C?S+Ed:S,T=_+j;if(d.indexOf(T)>-1)continue;d.push(T);const F=l(j,B);for(let R=0;R<F.length;++R){const L=F[R];d.push(_+L)}h=p+(h.length>0?" "+h:h)}return h},AF=(...e)=>{let n=0,a,i,l="";for(;n<e.length;)(a=e[n++])&&(i=dg(a))&&(l&&(l+=" "),l+=i);return l},dg=e=>{if(typeof e=="string")return e;let n,a="";for(let i=0;i<e.length;i++)e[i]&&(n=dg(e[i]))&&(a&&(a+=" "),a+=n);return a},kF=(e,...n)=>{let a,i,l,o;const u=f=>{const h=n.reduce((g,p)=>p(g),e());return a=yF(h),i=a.cache.get,l=a.cache.set,o=d,d(f)},d=f=>{const h=i(f);if(h)return h;const g=vF(f,a);return l(f,g),g};return o=u,(...f)=>o(AF(...f))},BF=[],gn=e=>{const n=a=>a[e]||BF;return n.isThemeGetter=!0,n},fg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,DF=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FF=/\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$/,SF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,NF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_F=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=e=>DF.test(e),at=e=>!!e&&!Number.isNaN(Number(e)),Ur=e=>!!e&&Number.isInteger(Number(e)),Sx=e=>e.endsWith("%")&&at(e.slice(0,-1)),ha=e=>wF.test(e),pg=()=>!0,MF=e=>FF.test(e)&&!SF.test(e),cf=()=>!1,jF=e=>NF.test(e),TF=e=>_F.test(e),RF=e=>!Se(e)&&!Ne(e),OF=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),zF=e=>Ja(e,Eg,cf),Se=e=>fg.test(e),bi=e=>Ja(e,yg,MF),E9=e=>Ja(e,GF,at),LF=e=>Ja(e,Cg,pg),PF=e=>Ja(e,bg,cf),y9=e=>Ja(e,mg,cf),IF=e=>Ja(e,gg,TF),N0=e=>Ja(e,vg,jF),Ne=e=>hg.test(e),Dl=e=>Mi(e,yg),UF=e=>Mi(e,bg),b9=e=>Mi(e,mg),HF=e=>Mi(e,Eg),$F=e=>Mi(e,gg),_0=e=>Mi(e,vg,!0),qF=e=>Mi(e,Cg,!0),Ja=(e,n,a)=>{const i=fg.exec(e);return i?i[1]?n(i[1]):a(i[2]):!1},Mi=(e,n,a=!1)=>{const i=hg.exec(e);return i?i[1]?n(i[1]):a:!1},mg=e=>e==="position"||e==="percentage",gg=e=>e==="image"||e==="url",Eg=e=>e==="length"||e==="size"||e==="bg-size",yg=e=>e==="length",GF=e=>e==="number",bg=e=>e==="family-name",Cg=e=>e==="number"||e==="weight",vg=e=>e==="shadow",VF=()=>{const e=gn("color"),n=gn("font"),a=gn("text"),i=gn("font-weight"),l=gn("tracking"),o=gn("leading"),u=gn("breakpoint"),d=gn("container"),f=gn("spacing"),h=gn("radius"),g=gn("shadow"),p=gn("inset-shadow"),y=gn("text-shadow"),b=gn("drop-shadow"),C=gn("blur"),v=gn("perspective"),k=gn("aspect"),B=gn("ease"),j=gn("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[..._(),Ne,Se],F=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],L=()=>[Ne,Se,f],I=()=>[Ya,"full","auto",...L()],O=()=>[Ur,"none","subgrid",Ne,Se],$=()=>["auto",{span:["full",Ur,Ne,Se]},Ur,Ne,Se],V=()=>[Ur,"auto",Ne,Se],oe=()=>["auto","min","max","fr",Ne,Se],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...L()],Q=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Z=()=>[Ya,"screen","full","dvw","lvw","svw","min","max","fit",...L()],de=()=>[Ya,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],M=()=>[e,Ne,Se],z=()=>[..._(),b9,y9,{position:[Ne,Se]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",HF,zF,{size:[Ne,Se]}],W=()=>[Sx,Dl,bi],he=()=>["","none","full",h,Ne,Se],re=()=>["",at,Dl,bi],De=()=>["solid","dashed","dotted","double"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[at,Sx,b9,y9],st=()=>["","none",C,Ne,Se],ut=()=>["none",at,Ne,Se],Lt=()=>["none",at,Ne,Se],Ct=()=>[at,Ne,Se],Ce=()=>[Ya,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[pg],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[RF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ha],shadow:[ha],spacing:["px",at],text:[ha],"text-shadow":[ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,Se,Ne,k]}],container:["container"],"container-type":[{"@container":["","normal","size",Ne,Se]}],"container-named":[OF],columns:[{columns:[at,Se,Ne,d]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:T()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ur,"auto",Ne,Se]}],basis:[{basis:[Ya,"full","auto",d,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,Ya,"auto","initial","none",Se]}],grow:[{grow:["",at,Ne,Se]}],shrink:[{shrink:["",at,Ne,Se]}],order:[{order:[Ur,"first","last","none",Ne,Se]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[d,"screen",...Q()]}],"min-w":[{"min-w":[d,"screen","none",...Q()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",a,Dl,bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,qF,LF]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sx,Se]}],"font-family":[{font:[UF,PF,n]}],"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:[l,Ne,Se]}],"line-clamp":[{"line-clamp":[at,"none",Ne,E9]}],leading:[{leading:[o,...L()]}],"list-image":[{"list-image":["none",Ne,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ne,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",Ne,bi]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[at,"auto",Ne,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Ur,Ne,Se]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ne,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",Ne,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:z()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ur,Ne,Se],radial:["",Ne,Se],conic:[Ur,Ne,Se]},$F,IF]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,Ne,Se]}],"outline-w":[{outline:["",at,Dl,bi]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",g,_0,N0]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",p,_0,N0]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[at,bi]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",y,_0,N0]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[at,Ne,Se]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ge()}],"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":[at]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Ne,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[at]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ne,Se]}],filter:[{filter:["","none",Ne,Se]}],blur:[{blur:st()}],brightness:[{brightness:[at,Ne,Se]}],contrast:[{contrast:[at,Ne,Se]}],"drop-shadow":[{"drop-shadow":["","none",b,_0,N0]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",at,Ne,Se]}],"hue-rotate":[{"hue-rotate":[at,Ne,Se]}],invert:[{invert:["",at,Ne,Se]}],saturate:[{saturate:[at,Ne,Se]}],sepia:[{sepia:["",at,Ne,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Ne,Se]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[at,Ne,Se]}],"backdrop-contrast":[{"backdrop-contrast":[at,Ne,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,Ne,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,Ne,Se]}],"backdrop-invert":[{"backdrop-invert":["",at,Ne,Se]}],"backdrop-opacity":[{"backdrop-opacity":[at,Ne,Se]}],"backdrop-saturate":[{"backdrop-saturate":[at,Ne,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",at,Ne,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ne,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",Ne,Se]}],ease:[{ease:["linear","initial",B,Ne,Se]}],delay:[{delay:[at,Ne,Se]}],animate:[{animate:["none",j,Ne,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Ne,Se]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ut()}],"rotate-x":[{"rotate-x":ut()}],"rotate-y":[{"rotate-y":ut()}],"rotate-z":[{"rotate-z":ut()}],scale:[{scale:Lt()}],"scale-x":[{"scale-x":Lt()}],"scale-y":[{"scale-y":Lt()}],"scale-z":[{"scale-z":Lt()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[Ne,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],zoom:[{zoom:[Ur,Ne,Se]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",Ne,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",Ne,Se]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[at,Dl,bi,E9]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QF=kF(VF);function pe(...e){return QF(nF(e))}const YF=200,Ag=1e3;function KF(e,n){if(!e||e.length>Ag)return null;let a;try{a=decodeURIComponent(e)}catch{return null}if(!I8(a)||a.includes("\0")||/^[a-z][a-z\d+.-]*:/i.test(a)||a.startsWith("//")||a.split("/").includes(".."))return null;if(a.startsWith("/")||a.startsWith("~/"))return a;const i=a.replace(/^(?:\.\/)+/,"");return i?n?`${n}/${i}`:i:null}function XF(e,n){if(!e||e.length>Ag||e.includes("\0")||!/^\.context\/attachments\/[A-Za-z0-9]{6}\/[^/]+$/.test(e))return null;const a=I8(e)?"image":rf(e)?"source":null;return a?{reference:n?`${n}/${e}`:e,kind:a}:null}function kg(e,n){const a=new Map;for(const i of n??[]){const l=i.slice(i.lastIndexOf("/")+1),o=a.get(l);o?o.push(i):a.set(l,[i])}return i=>{const l=ZF(i);if(!l)return null;const{path:o,location:u}=l;if(o.startsWith("/")||o.startsWith("~/"))return o+u;if(!e)return null;const d=WF(a,o);return d?`${e}/${d}${u}`:null}}function ZF(e){if(!e||e.length>YF||/\s/.test(e)||e.includes("://"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/),a=n?n[0]:"",i=n?e.slice(0,-a.length):e;return i.startsWith("../")||i.includes("/../")?null:rf(i)?{path:i.startsWith("./")?i.slice(2):i,location:a}:null}function WF(e,n){const a=n.slice(n.lastIndexOf("/")+1),i=e.get(a);if(!i)return null;const l=i.filter(o=>o===n||o.endsWith(`/${n}`));return l.length===1?l[0]:null}const cc=D.createContext(null),JF=cc.Provider,eS=kg(null,void 0);function Bg(e){const n=D.useContext(cc)?.resolveMention??eS;return e===null?null:n(e)}function Dg(e){return KF(e,D.useContext(cc)?.worktree??null)}function tS(e){return XF(e,D.useContext(cc)?.worktree??null)}function C9(e){return e.endsWith(".0")?e.slice(0,-2):e}function H0(e){return e>=1e6?`${C9((e/1e6).toFixed(e<1e7?1:0))}M`:e>=1e3?`${C9((e/1e3).toFixed(e<1e5?1:0))}k`:String(e)}function v9(e,n){if(e<=0||n<=0)return"0%";const a=e/n*100;return a<1?"<1%":`${Math.round(a)}%`}function nS(e){const n=[],a=e.split(_D);for(let i=0;i<a.length;i++){const l=a[i];if(i===0){l&&n.push({text:l,hit:!1});continue}const o=l.indexOf(MD);if(o<0){l&&n.push({text:l,hit:!0});continue}const u=l.slice(0,o),d=l.slice(o+1);u&&n.push({text:u,hit:!0}),d&&n.push({text:d,hit:!1})}return n}function wg(e){return e.state==="setting_up"}const rS={merged:"var(--color-pr-merged)",draft:"var(--color-pr-draft)",conflicts:"var(--color-pr-attention)",checks_failed:"var(--color-pr-attention)",checks_pending:"var(--color-working)",mergeable:"var(--color-pr-mergeable)"};function aS(e){return wg(e)?{color:"var(--color-muted)",spinning:!0}:{color:e.pr_status&&rS[e.pr_status]||"var(--color-done)",spinning:e.session_status==="working"||e.pr_status==="checks_pending"}}function iS(e){return e.pr_status==="merged"}function sS(e){return uf(e)==="done"}function uf(e){return wg(e)?"setting-up":e.manual_status||e.derived_status||"in-progress"}const A9=["done","in-review","in-progress","setting-up","backlog","canceled"],lS=["backlog","in-progress","in-review","done","canceled"];function yd(e){return{done:"Done","in-review":"In review","in-progress":"In progress","setting-up":"Setting up",backlog:"Backlog",canceled:"Canceled"}[e]??e}const oS=["today","yesterday","week","month","older"];function cS(e){return{today:"Today",yesterday:"Yesterday",week:"Past week",month:"Past month",older:"Older"}[e]}function k9(e){const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()}function uS(e,n=new Date){const a=new Date(Xn(e));if(!Number.isFinite(a.getTime()))return"older";const i=Math.round((k9(n)-k9(a))/864e5);return i<=0?"today":i===1?"yesterday":i<7?"week":i<30?"month":"older"}const xf={done:"var(--color-pr-merged)","in-review":"var(--color-pr-mergeable)","in-progress":"var(--color-done)","setting-up":"var(--color-muted)"};function df(e,n=120){const i=(e.split(`
14
+ `).find(l=>l.trim())??"").replace(/^[\s>#*\-+]+/,"").replace(/`/g,"").replace(/\s+/g," ").trim();return i.length>n?`${i.slice(0,n-1)}…`:i}function ff(e){const n=Math.max(0,Math.floor(e/1e3)),a=n%60,i=Math.floor(n/60)%60,l=Math.floor(n/3600),o=u=>String(u).padStart(2,"0");return l?`${l}h ${o(i)}m ${o(a)}s`:i?`${i}m ${o(a)}s`:`${a}s`}const xS=6e4,dS=60*xS,fS=24*dS,hS=7*fS;function Fg(e){return e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Sg(e,n){return`${e.toLocaleDateString(void 0,{month:"short",day:"numeric",...e.getFullYear()===n.getFullYear()?{}:{year:"numeric"}})}, ${Fg(e)}`}function pS(e){const n=new Date(Xn(e));if(!Number.isFinite(n.getTime()))return"";const a=new Date;return n.toDateString()===a.toDateString()?Fg(n):Sg(n,a)}function mS(e,n=Date.now()){const a=new Date(Xn(e)),i=n-a.getTime();return Number.isFinite(i)?i>=hS?Sg(a,new Date(n)):_g(e,n):""}function Ng(e){const n=Xn(e);if(!Number.isFinite(n))return"";const a=Math.round((Date.now()-n)/1e3);if(a<45)return"now";if(a<90)return"1m";const i=Math.round(a/60);if(i<60)return`${i}m`;const l=Math.round(i/60);return l<24?`${l}h`:`${Math.round(l/24)}d`}let Ci;function _g(e,n=Date.now()){const a=Xn(e);if(!Number.isFinite(a))return"";const i=Math.round((n-a)/1e3);if(i<45)return"now";if(Ci??=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),i<90)return Ci.format(-1,"minute");const l=Math.round(i/60);if(l<60)return Ci.format(-l,"minute");const o=Math.round(l/60);if(o<24)return Ci.format(-o,"hour");const u=Math.round(o/24);if(u<30)return Ci.format(-u,"day");const d=Math.round(u/30.4);return d<12?Ci.format(-d,"month"):Ci.format(-Math.round(u/365),"year")}function gS(){const e=location.hostname;return!e||e==="localhost"||e.startsWith("127.")?null:`vnc://${e}`}async function ES(e){if(navigator.clipboard?.writeText)return navigator.clipboard.writeText(e);const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;opacity:0",document.body.append(n),n.select();const a=document.execCommand("copy");if(n.remove(),!a)throw new Error("Clipboard unavailable")}const yS={activity:B7,anchor:w7,apple:S7,atom:I7,award:H7,banknote:q7,battery:V7,beer:Y7,bell:y8,bike:Z7,bird:J7,bluetooth:t3,book:i3,"book-open":r3,bookmark:l3,bot:b8,box:u3,brain:d3,briefcase:h3,brush:m3,bug:b3,"bug-play":E3,building:k3,"building-2":v3,cake:D3,calendar:F3,camera:N3,car:M3,carrot:T3,cat:O3,"chart-bar":L3,"chart-line":I3,"chart-pie":H3,clapperboard:eC,clock:C8,cloud:lC,code:xC,"code-xml":cC,coffee:fC,cog:pC,compass:gC,cpu:bC,"credit-card":vC,crown:kC,database:DC,dna:FC,dog:NC,"dollar-sign":MC,dumbbell:TC,egg:LC,factory:HC,feather:qC,file:KC,"file-code":VC,film:ZC,fish:JC,flag:tv,flame:rv,"flask-conical":iv,folder:lv,"gamepad-2":xv,gem:pv,gift:gv,"git-branch":Cv,github:Bv,glasses:wv,globe:Sv,"graduation-cap":_v,"grid-3x3":jv,hammer:Rv,headphones:zv,heart:Uv,"heart-pulse":Pv,house:qv,image:Vv,key:Xv,laptop:Wv,"layout-grid":nA,layers:eA,leaf:aA,lightbulb:sA,link:oA,lock:dA,mail:mA,map:D8,"map-pin":EA,martini:CA,medal:AA,"message-circle":BA,"message-square":wA,mic:w8,microscope:MA,monitor:TA,moon:OA,music:LA,orbit:IA,package:HA,paintbrush:qA,paperclip:ic,"paw-print":KA,pen:ZA,pencil:JA,phone:ak,pill:sk,pipette:ok,pizza:uk,plane:dk,plug:pk,power:Ek,puzzle:bk,rabbit:Ak,radio:Bk,rocket:Fk,ruler:Tk,salad:Mk,satellite:Ok,scissors:Ik,server:Gk,settings:Qk,shell:Kk,shield:Zk,ship:Jk,"shopping-bag":tB,"shopping-cart":rB,smartphone:lB,snail:cB,soup:fB,sparkles:pB,sprout:gB,star:xd,stethoscope:CB,store:AB,sun:_8,tag:FB,tags:NB,target:MB,telescope:TB,terminal:OB,ticket:LB,"train-front":IB,"tree-pine":qB,"trending-up":VB,trophy:KB,turtle:ZB,user:JB,users:tD,utensils:rD,video:iD,wallet:lD,"wand-2":Vm,"wand-sparkles":Vm,warehouse:uD,wheat:hD,wifi:M8,wine:ED,wrench:CD,zap:ef};function Mg({state:e,color:n="var(--color-working)",className:a}){return e==="failed"?x.jsx("span",{className:pe("dot-error",a),role:"img","aria-label":"Send failed","data-prompt-state":"failed",children:x.jsx(bn,{size:8,strokeWidth:3,"aria-hidden":!0})}):x.jsx("span",{className:pe("dot-spinner",a),style:{"--spin-color":n},role:"img","aria-label":"Prompt pending","data-prompt-state":"sending"})}function bS({w:e,promptState:n,className:a}){const{color:i,spinning:l}=aS(e);return n?x.jsx(Mg,{state:n,color:i,className:a}):l?x.jsx("span",{className:pe("dot-spinner",a),style:{"--spin-color":i}}):x.jsx("span",{className:pe("dot",a),style:{background:i}})}function CS({className:e}){return x.jsx("span",{className:pe("flex size-3 items-center justify-center rounded-full bg-surface text-add ring-2 ring-surface",e),role:"img","aria-label":"Run active",children:x.jsx(ud,{size:7,strokeWidth:0,fill:"currentColor","aria-hidden":!0})})}function vS(e){const n=Math.max(0,Math.round(e/1e3));if(n<90)return`${n}s`;const a=Math.round(n/60);return a<60?`${a}m`:`${Math.round(a/60)}h`}function AS(){const e=Be(u=>u.online),n=Be(u=>u.lastSyncAt),a=Be(u=>u.update),i=a?.mode==="auto"&&a.available,[l,o]=D.useState(()=>Date.now());return D.useEffect(()=>{if(e)return;const u=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(u)},[e]),i?x.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-accent/10 px-3 py-1.5 text-xs text-accent",children:[x.jsx(to,{size:13,className:"animate-spin"}),x.jsxs("span",{children:["Updating relay to ",a?.latest??"latest","… reconnecting"]})]}):e?null:x.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-del/10 px-3 py-1.5 text-xs text-del",children:[x.jsx(Jd,{size:13}),x.jsxs("span",{children:["Offline — retrying…",n?` last synced ${vS(l-n)} ago`:""]})]})}function ga({className:e}){const n=gS();return n?x.jsx("a",{href:n,className:pe("font-semibold text-accent underline underline-offset-2",e),children:"Unlock the Mac"}):null}function jg({text:e,label:n,className:a,size:i=14}){const[l,o]=D.useState(!1),u=async()=>{try{await ES(e),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}};return x.jsx("button",{type:"button",onClick:()=>{u()},"aria-label":l?`Copied ${n}`:`Copy ${n}`,className:pe("flex items-center justify-center text-muted transition active:bg-surface-2",a),children:l?x.jsx(qr,{size:i,className:"text-accent"}):x.jsx(Xd,{size:i})})}function B9({children:e,className:n}){return x.jsx("span",{className:pe("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",n),children:e})}function kS({children:e}){return x.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-on-solid",children:e})}function BS({error:e}){const n=typeof navigator<"u"&&navigator.onLine===!1,a=e instanceof Error?e.message:String(e??"request failed"),i=!(e instanceof Br)||e.status===0;return n?x.jsxs(yn,{children:[x.jsx(Jd,{size:20,className:"mx-auto mb-3 text-muted"}),x.jsx("div",{className:"font-medium text-text",children:"This phone is offline"}),x.jsx("div",{className:"mt-1",children:"Check Wi-Fi or cellular. The list comes back on its own."})]}):x.jsxs(yn,{children:[x.jsx(rC,{size:20,className:"mx-auto mb-3 text-del"}),x.jsx("div",{className:"font-medium text-text",children:i?"Can’t reach the relay":"The relay answered with an error"}),x.jsx("div",{className:"mt-1 break-words font-mono text-[11px] text-muted",children:a}),i?x.jsxs("ul",{className:"mt-4 space-y-2 text-left",children:[x.jsx("li",{children:"Is the Mac awake and online?"}),x.jsxs("li",{children:["If the relay is tailnet-only: Tailscale connected on this phone, and"," ",x.jsx("span",{className:"text-text",children:"iCloud Private Relay off"}),". Private Relay routes around the VPN, so the app stays stuck even while Tailscale says Connected."]}),x.jsx("li",{children:"Otherwise the Funnel may be stale after a network change — re-deploy on the Mac."})]}):null]})}function yn({children:e}){return x.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:e})}function Rr({label:e}){return x.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[x.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),e]})}const $0="grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 font-semibold text-muted";function Vl({icon:e,name:n,artwork:a}){const i=x.jsx("div",{className:pe($0,"text-xs"),children:(n.trim()[0]??"?").toUpperCase()});if(!e)return i;if(e.kind==="emoji")return x.jsx("div",{className:pe($0,"text-lg leading-none"),children:e.value});if(e.kind==="named"){const l=yS[e.value];return l?x.jsx("div",{className:$0,children:x.jsx(l,{size:18,className:"text-muted"})}):i}return e.kind==="github"?x.jsx(Tg,{src:`https://github.com/${encodeURIComponent(e.owner)}.png?size=64`,fit:"cover",artwork:a,fallback:i}):x.jsx(DS,{repoName:n,artwork:a,fallback:i})}function Tg({src:e,fit:n,artwork:a,fallback:i}){const[l,o]=D.useState(!1);return l?x.jsx(x.Fragment,{children:i}):x.jsx("div",{className:pe($0,a==="inset"&&"p-1.5"),children:x.jsx("img",{src:e,alt:"",loading:"lazy",className:pe("size-full",a==="full-bleed"?"rounded-[inherit]":"rounded-sm",n==="cover"?"object-cover":"object-contain"),onError:()=>o(!0)})})}function DS({repoName:e,artwork:n,fallback:a}){const{data:i,isError:l}=qw(e);return!e||l||!i?x.jsx(x.Fragment,{children:a}):x.jsx(Tg,{src:i,fit:"contain",artwork:n,fallback:a})}function Rg({children:e}){return x.jsxs("header",{className:"pt-safe sticky top-0 z-10 border-b border-border-soft bg-bg/80 backdrop-blur-xl",children:[e,x.jsx(AS,{})]})}function bd({title:e,subtitle:n,menu:a,right:i}){const l=Be(o=>o.setSidebarOpen);return x.jsx(Rg,{children:x.jsxs("div",{className:"flex items-center gap-2 px-3 pb-2.5",children:[a?x.jsx("button",{type:"button",onClick:()=>l(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:x.jsx(VA,{size:20})}):x.jsx("span",{className:"w-1"}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:e}),n?x.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:n}):null]}),i]})})}function wS(e){const n=e.regex,a={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const l={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,l]};l.contains.push(d);const f={match:/\\"/},h={className:"string",begin:/'/,end:/'/},g={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],b=e.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],k=["true","false"],B={match:/(\/[a-z._-]+)+/},j=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:v,literal:k,built_in:[...j,...S,"set","shopt",..._,...T]},contains:[b,e.SHEBANG(),C,p,o,u,B,d,f,h,g,a]}}const FS=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,4}(-[0-9A-Fa-f][0-9A-Fa-f]{0,4})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),SS=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],NS=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],_S=[...SS,...NS],MS=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),jS=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),TS=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),RS=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function OS(e){const n=e.regex,a=FS(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},l="and or not only",o=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[a.BLOCK_COMMENT,i,a.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+jS.join("|")+")"},{begin:":(:)?("+TS.join("|")+")"}]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+RS.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[a.BLOCK_COMMENT,a.HEXCOLOR,a.IMPORTANT,a.CSS_NUMBER_MODE,a.UNICODE_RANGE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},a.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:MS.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,a.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_S.join("|")+")\\b"}]}}function zS(e){const n=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const l={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[i,o,l,u,a,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,g=/'[^']*'/,p=n.either(f,h,g),y=n.concat(p,"(\\s*\\.\\s*",p,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[i,d,o,l,u,a]}}]}}const D9="[A-Za-z$_][0-9A-Za-z$_]*",LS=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],PS=["true","false","null","undefined","NaN","Infinity"],Og=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],zg=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Lg=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],IS=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],US=[].concat(Lg,Og,zg);function HS(e){const n=e.regex,a=(Z,{after:de})=>{const M="</"+Z[0].slice(1);return Z.input.indexOf(M,de)!==-1},i=D9,l={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,de)=>{const M=Z[0].length+Z.index,z=Z.input[M];if(z==="<"||z===","){de.ignoreMatch();return}z===">"&&(a(Z,{after:M})||de.ignoreMatch());let X;const w=Z.input.substring(M);if(X=w.match(/^\s*=/)){de.ignoreMatch();return}if((X=w.match(/^\s+extends\s+/))&&X.index===0){de.ignoreMatch();return}}},d={$pattern:D9,keyword:LS,literal:PS,built_in:US,"variable.language":IS},f="[0-9](_?[0-9])*",h=`\\.(${f})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${g})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${g})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},k={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},j={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,k,{match:/\$\d+/},p];y.contains=S.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(S)});const _=[].concat(j,y.contains),T=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(_)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:T},R={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,n.concat(i,"(",n.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Og,...zg]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function V(Z){return n.concat("(?!",Z.join("|"),")")}const oe={match:n.concat(/\b/,V([...Lg,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),i,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:n.concat(/\./,n.lookahead(n.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:L},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,k,j,{match:/\$\d+/},p,L,{scope:"attr",match:i+n.lookahead(":"),relevance:0},Q,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[j,e.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:l.begin,end:l.end},{match:o},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},oe,$,R,Y,{match:/\$[(.]/}]}}const $S="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",qS={scope:"number",match:$S,relevance:0};function GS(e){const n={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],l={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:i},contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,qS,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function VS(e){const n=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},l={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(h,{contains:[]}),y=e.inherit(g,{contains:[]});h.contains.push(y),g.contains.push(p);let b=[a,f];return[h,g,p,y].forEach(B=>{B.contains=B.contains.concat(b)}),b=b.concat(h,g),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},a,o,h,g,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},l,i,f,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function QS(e){const n=e.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},g={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f,g,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f,g,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,g,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,g,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",b=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,C=`\\b|${i.join("|")}`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${b}))[eE][+-]?(${y})[jJ]?(?=${C})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${y})[jJ](?=${C})`}]},k={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},B={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",f,v,p,e.HASH_COMMENT_MODE]}]};return h.contains=[p,v,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[f,v,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,k,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[B]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,B,p]}]}}function YS(e){const n=e.regex,a=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},l={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],g=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],y=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=g,C=[...h,...f].filter(T=>!g.includes(T)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},k={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},B={match:n.concat(/\b/,n.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function j(T){return n.concat(/\b/,n.either(...T.map(F=>F.replace(/\s+/,"\\s+"))),/\b/)}const S={scope:"keyword",match:j(y),relevance:0};function _(T,{exceptions:F,when:R}={}){const L=R;return F=F||[],T.map(I=>I.match(/\|\d+$/)||F.includes(I)?I:L(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:_(C,{when:T=>T.length<3}),literal:o,type:d,built_in:p},contains:[{scope:"type",match:j(u)},S,B,v,i,l,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,k]}}const X0="[A-Za-z$_][0-9A-Za-z$_]*",Pg=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ig=["true","false","null","undefined","NaN","Infinity"],Ug=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Hg=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$g=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qg=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Gg=[].concat($g,Ug,Hg);function KS(e){const n=e.regex,a=(Z,{after:de})=>{const M="</"+Z[0].slice(1);return Z.input.indexOf(M,de)!==-1},i=X0,l={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,de)=>{const M=Z[0].length+Z.index,z=Z.input[M];if(z==="<"||z===","){de.ignoreMatch();return}z===">"&&(a(Z,{after:M})||de.ignoreMatch());let X;const w=Z.input.substring(M);if(X=w.match(/^\s*=/)){de.ignoreMatch();return}if((X=w.match(/^\s+extends\s+/))&&X.index===0){de.ignoreMatch();return}}},d={$pattern:X0,keyword:Pg,literal:Ig,built_in:Gg,"variable.language":qg},f="[0-9](_?[0-9])*",h=`\\.(${f})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${g})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${g})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},k={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},j={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,k,{match:/\$\d+/},p];y.contains=S.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(S)});const _=[].concat(j,y.contains),T=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(_)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:T},R={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,n.concat(i,"(",n.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ug,...Hg]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function V(Z){return n.concat("(?!",Z.join("|"),")")}const oe={match:n.concat(/\b/,V([...$g,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),i,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:n.concat(/\./,n.lookahead(n.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:L},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,k,j,{match:/\$\d+/},p,L,{scope:"attr",match:i+n.lookahead(":"),relevance:0},Q,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[j,e.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:l.begin,end:l.end},{match:o},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},oe,$,R,Y,{match:/\$[(.]/}]}}function XS(e){const n=e.regex,a=KS(e),i=X0,l=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:l},contains:[a.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:X0,keyword:Pg.concat(f),literal:Ig,built_in:Gg.concat(l),"variable.language":qg},g={className:"meta",begin:"@"+i},p=(v,k,B)=>{const j=v.contains.findIndex(S=>S.label===k);if(j===-1)throw new Error("can not find mode to replace");v.contains.splice(j,1,B)};Object.assign(a.keywords,h),a.exports.PARAMS_CONTAINS.push(g);const y=a.contains.find(v=>v.scope==="attr"),b=Object.assign({},y,{match:n.concat(i,n.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,y,b]),a.contains=a.contains.concat([g,o,u,b]),p(a,"shebang",e.SHEBANG()),p(a,"use_strict",d);const C=a.contains.find(v=>v.label==="func.def");return C.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}function ZS(e){const n=e.regex,a=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(o,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,f,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,u,f,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(a,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:h}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function WS(e){const n="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},l={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,l]},d=e.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},b={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},C={begin:/\{/,end:/\}/,contains:[b],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[b],illegal:"\\n",relevance:0},k=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},y,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},C,v,o,u],B=[...k];return B.pop(),B.push(d),b.contains=B,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:k}}var Nx,w9;function JS(){if(w9)return Nx;w9=1;function e(U){return U instanceof Map?U.clear=U.delete=U.set=function(){throw new Error("map is read-only")}:U instanceof Set&&(U.add=U.clear=U.delete=function(){throw new Error("set is read-only")}),Object.freeze(U),Object.getOwnPropertyNames(U).forEach(ue=>{const ke=U[ue],Ve=typeof ke;(Ve==="object"||Ve==="function")&&!Object.isFrozen(ke)&&e(ke)}),U}class n{constructor(ue){ue.data===void 0&&(ue.data={}),this.data=ue.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(U){return U.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(U,...ue){const ke=Object.create(null);for(const Ve in U)ke[Ve]=U[Ve];return ue.forEach(function(Ve){for(const Ht in Ve)ke[Ht]=Ve[Ht]}),ke}const l="</span>",o=U=>!!U.scope,u=(U,{prefix:ue})=>{if(U.startsWith("language:"))return U.replace("language:","language-");if(U.includes(".")){const ke=U.split(".");return[`${ue}${ke.shift()}`,...ke.map((Ve,Ht)=>`${Ve}${"_".repeat(Ht+1)}`)].join(" ")}return`${ue}${U}`};class d{constructor(ue,ke){this.buffer="",this.classPrefix=ke.classPrefix,ue.walk(this)}addText(ue){this.buffer+=a(ue)}openNode(ue){if(!o(ue))return;const ke=u(ue.scope,{prefix:this.classPrefix});this.span(ke)}closeNode(ue){o(ue)&&(this.buffer+=l)}value(){return this.buffer}span(ue){this.buffer+=`<span class="${ue}">`}}const f=(U={})=>{const ue={children:[]};return Object.assign(ue,U),ue};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ue){this.top.children.push(ue)}openNode(ue){const ke=f({scope:ue});this.add(ke),this.stack.push(ke)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ue){return this.constructor._walk(ue,this.rootNode)}static _walk(ue,ke){return typeof ke=="string"?ue.addText(ke):ke.children&&(ue.openNode(ke),ke.children.forEach(Ve=>this._walk(ue,Ve)),ue.closeNode(ke)),ue}static _collapse(ue){typeof ue!="string"&&ue.children&&(ue.children.every(ke=>typeof ke=="string")?ue.children=[ue.children.join("")]:ue.children.forEach(ke=>{h._collapse(ke)}))}}class g extends h{constructor(ue){super(),this.options=ue}addText(ue){ue!==""&&this.add(ue)}startScope(ue){this.openNode(ue)}endScope(){this.closeNode()}__addSublanguage(ue,ke){const Ve=ue.root;ke&&(Ve.scope=`language:${ke}`),this.add(Ve)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(U){return U?typeof U=="string"?U:U.source:null}function y(U){return v("(?=",U,")")}function b(U){return v("(?:",U,")*")}function C(U){return v("(?:",U,")?")}function v(...U){return U.map(ke=>p(ke)).join("")}function k(U){const ue=U[U.length-1];return typeof ue=="object"&&ue.constructor===Object?(U.splice(U.length-1,1),ue):{}}function B(...U){return"("+(k(U).capture?"":"?:")+U.map(Ve=>p(Ve)).join("|")+")"}function j(U){return new RegExp(U.toString()+"|").exec("").length-1}function S(U,ue){const ke=U&&U.exec(ue);return ke&&ke.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function T(U,{joinWith:ue}){let ke=0;return U.map(Ve=>{ke+=1;const Ht=ke;let Tt=p(Ve),Te="";for(;Tt.length>0;){const Fe=_.exec(Tt);if(!Fe){Te+=Tt;break}Te+=Tt.substring(0,Fe.index),Tt=Tt.substring(Fe.index+Fe[0].length),Fe[0][0]==="\\"&&Fe[1]?Te+="\\"+String(Number(Fe[1])+Ht):(Te+=Fe[0],Fe[0]==="("&&ke++)}return Te}).map(Ve=>`(${Ve})`).join(ue)}const F=/\b\B/,R="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",I="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",oe=(U={})=>{const ue=/^#![ ]*\//;return U.binary&&(U.begin=v(ue,/.*\b/,U.binary,/\b.*/)),i({scope:"meta",begin:ue,end:/$/,relevance:0,"on:begin":(ke,Ve)=>{ke.index!==0&&Ve.ignoreMatch()}},U)},te={begin:"\\\\[\\s\\S]",relevance:0},Y={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[te]},P={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[te]},Q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Z=function(U,ue,ke={}){const Ve=i({scope:"comment",begin:U,end:ue,contains:[]},ke);Ve.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ht=B("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ve.contains.push({begin:v(/[ ]+/,"(",Ht,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ve},de=Z("//","$"),M=Z("/\\*","\\*/"),z=Z("#","$"),X={scope:"number",begin:I,relevance:0},w={scope:"number",begin:O,relevance:0},W={scope:"number",begin:$,relevance:0},he={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[te,{begin:/\[/,end:/\]/,relevance:0,contains:[te]}]},re={scope:"title",begin:R,relevance:0},De={scope:"title",begin:L,relevance:0},Ge={begin:"\\.\\s*"+L,relevance:0};var st=Object.freeze({__proto__:null,APOS_STRING_MODE:Y,BACKSLASH_ESCAPE:te,BINARY_NUMBER_MODE:W,BINARY_NUMBER_RE:$,COMMENT:Z,C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:de,C_NUMBER_MODE:w,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(U){return Object.assign(U,{"on:begin":(ue,ke)=>{ke.data._beginMatch=ue[1]},"on:end":(ue,ke)=>{ke.data._beginMatch!==ue[1]&&ke.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:R,MATCH_NOTHING_RE:F,METHOD_GUARD:Ge,NUMBER_MODE:X,NUMBER_RE:I,PHRASAL_WORDS_MODE:Q,QUOTE_STRING_MODE:P,REGEXP_MODE:he,RE_STARTERS_RE:V,SHEBANG:oe,TITLE_MODE:re,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:De});function ut(U,ue){U.input[U.index-1]==="."&&ue.ignoreMatch()}function Lt(U,ue){U.className!==void 0&&(U.scope=U.className,delete U.className)}function Ct(U,ue){ue&&U.beginKeywords&&(U.begin="\\b("+U.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",U.__beforeBegin=ut,U.keywords=U.keywords||U.beginKeywords,delete U.beginKeywords,U.relevance===void 0&&(U.relevance=0))}function Ce(U,ue){Array.isArray(U.illegal)&&(U.illegal=B(...U.illegal))}function Ae(U,ue){if(U.match){if(U.begin||U.end)throw new Error("begin & end are not supported with match");U.begin=U.match,delete U.match}}function Oe(U,ue){U.relevance===void 0&&(U.relevance=1)}const Ye=(U,ue)=>{if(!U.beforeMatch)return;if(U.starts)throw new Error("beforeMatch cannot be used with starts");const ke=Object.assign({},U);Object.keys(U).forEach(Ve=>{delete U[Ve]}),U.keywords=ke.keywords,U.begin=v(ke.beforeMatch,y(ke.begin)),U.starts={relevance:0,contains:[Object.assign(ke,{endsParent:!0})]},U.relevance=0,delete ke.beforeMatch},kt=["of","and","for","in","not","or","if","then","parent","list","value"],ht="keyword";function Zt(U,ue,ke=ht){const Ve=Object.create(null);return typeof U=="string"?Ht(ke,U.split(" ")):Array.isArray(U)?Ht(ke,U):Object.keys(U).forEach(function(Tt){Object.assign(Ve,Zt(U[Tt],ue,Tt))}),Ve;function Ht(Tt,Te){ue&&(Te=Te.map(Fe=>Fe.toLowerCase())),Te.forEach(function(Fe){const qe=Fe.split("|");Ve[qe[0]]=[Tt,vt(qe[0],qe[1])]})}}function vt(U,ue){return ue?Number(ue):ln(U)?0:1}function ln(U){return kt.includes(U.toLowerCase())}const On={},We=U=>{console.error(U)},Cn=(U,...ue)=>{console.log(`WARN: ${U}`,...ue)},le=(U,ue)=>{On[`${U}/${ue}`]||(console.log(`Deprecated as of ${U}. ${ue}`),On[`${U}/${ue}`]=!0)},Ee=new Error;function _e(U,ue,{key:ke}){let Ve=0;const Ht=U[ke],Tt={},Te={};for(let Fe=1;Fe<=ue.length;Fe++)Te[Fe+Ve]=Ht[Fe],Tt[Fe+Ve]=!0,Ve+=j(ue[Fe-1]);U[ke]=Te,U[ke]._emit=Tt,U[ke]._multi=!0}function Ke(U){if(Array.isArray(U.begin)){if(U.skip||U.excludeBegin||U.returnBegin)throw We("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ee;if(typeof U.beginScope!="object"||U.beginScope===null)throw We("beginScope must be object"),Ee;_e(U,U.begin,{key:"beginScope"}),U.begin=T(U.begin,{joinWith:""})}}function nt(U){if(Array.isArray(U.end)){if(U.skip||U.excludeEnd||U.returnEnd)throw We("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ee;if(typeof U.endScope!="object"||U.endScope===null)throw We("endScope must be object"),Ee;_e(U,U.end,{key:"endScope"}),U.end=T(U.end,{joinWith:""})}}function jt(U){U.scope&&typeof U.scope=="object"&&U.scope!==null&&(U.beginScope=U.scope,delete U.scope)}function Wt(U){jt(U),typeof U.beginScope=="string"&&(U.beginScope={_wrap:U.beginScope}),typeof U.endScope=="string"&&(U.endScope={_wrap:U.endScope}),Ke(U),nt(U)}function Vt(U){function ue(Te,Fe){return new RegExp(p(Te),"m"+(U.case_insensitive?"i":"")+(U.unicodeRegex?"u":"")+(Fe?"g":""))}class ke{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Fe,qe){qe.position=this.position++,this.matchIndexes[this.matchAt]=qe,this.regexes.push([qe,Fe]),this.matchAt+=j(Fe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Fe=this.regexes.map(qe=>qe[1]);this.matcherRe=ue(T(Fe,{joinWith:"|"}),!0),this.lastIndex=0}exec(Fe){this.matcherRe.lastIndex=this.lastIndex;const qe=this.matcherRe.exec(Fe);if(!qe)return null;const tn=qe.findIndex((Qr,Ti)=>Ti>0&&Qr!==void 0),Qt=this.matchIndexes[tn];return qe.splice(0,tn),Object.assign(qe,Qt)}}class Ve{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Fe){if(this.multiRegexes[Fe])return this.multiRegexes[Fe];const qe=new ke;return this.rules.slice(Fe).forEach(([tn,Qt])=>qe.addRule(tn,Qt)),qe.compile(),this.multiRegexes[Fe]=qe,qe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Fe,qe){this.rules.push([Fe,qe]),qe.type==="begin"&&this.count++}exec(Fe){const qe=this.getMatcher(this.regexIndex);qe.lastIndex=this.lastIndex;let tn=qe.exec(Fe);if(this.resumingScanAtSamePosition()&&!(tn&&tn.index===this.lastIndex)){const Qt=this.getMatcher(0);Qt.lastIndex=this.lastIndex+1,tn=Qt.exec(Fe)}return tn&&(this.regexIndex+=tn.position+1,this.regexIndex===this.count&&this.considerAll()),tn}}function Ht(Te){const Fe=new Ve;return Te.contains.forEach(qe=>Fe.addRule(qe.begin,{rule:qe,type:"begin"})),Te.terminatorEnd&&Fe.addRule(Te.terminatorEnd,{type:"end"}),Te.illegal&&Fe.addRule(Te.illegal,{type:"illegal"}),Fe}function Tt(Te,Fe){const qe=Te;if(Te.isCompiled)return qe;[Lt,Ae,Wt,Ye].forEach(Qt=>Qt(Te,Fe)),U.compilerExtensions.forEach(Qt=>Qt(Te,Fe)),Te.__beforeBegin=null,[Ct,Ce,Oe].forEach(Qt=>Qt(Te,Fe)),Te.isCompiled=!0;let tn=null;return typeof Te.keywords=="object"&&Te.keywords.$pattern&&(Te.keywords=Object.assign({},Te.keywords),tn=Te.keywords.$pattern,delete Te.keywords.$pattern),tn=tn||/\w+/,Te.keywords&&(Te.keywords=Zt(Te.keywords,U.case_insensitive)),qe.keywordPatternRe=ue(tn,!0),Fe&&(Te.begin||(Te.begin=/\B|\b/),qe.beginRe=ue(qe.begin),!Te.end&&!Te.endsWithParent&&(Te.end=/\B|\b/),Te.end&&(qe.endRe=ue(qe.end)),qe.terminatorEnd=p(qe.end)||"",Te.endsWithParent&&Fe.terminatorEnd&&(qe.terminatorEnd+=(Te.end?"|":"")+Fe.terminatorEnd)),Te.illegal&&(qe.illegalRe=ue(Te.illegal)),Te.contains||(Te.contains=[]),Te.contains=[].concat(...Te.contains.map(function(Qt){return Ut(Qt==="self"?Te:Qt)})),Te.contains.forEach(function(Qt){Tt(Qt,qe)}),Te.starts&&Tt(Te.starts,Fe),qe.matcher=Ht(qe),qe}if(U.compilerExtensions||(U.compilerExtensions=[]),U.contains&&U.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return U.classNameAliases=i(U.classNameAliases||{}),Tt(U)}function Bt(U){return U?U.endsWithParent||Bt(U.starts):!1}function Ut(U){return U.variants&&!U.cachedVariants&&(U.cachedVariants=U.variants.map(function(ue){return i(U,{variants:null},ue)})),U.cachedVariants?U.cachedVariants:Bt(U)?i(U,{starts:U.starts?i(U.starts):null}):Object.isFrozen(U)?i(U):U}var ie="11.11.2";class pt extends Error{constructor(ue,ke){super(ue),this.name="HTMLInjectionError",this.html=ke}}const me=a,ae=i,rt=Symbol("nomatch"),Qe=7,Kt=function(U){const ue=Object.create(null),ke=Object.create(null),Ve=[];let Ht=!0;const Tt="Could not find the language '{}', did you forget to load/include a language module?",Te={disableAutodetect:!0,name:"Plain text",contains:[]};let Fe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:g};function qe(ge){return Fe.noHighlightRe.test(ge)}function tn(ge){let Le=ge.className+" ";Le+=ge.parentNode?ge.parentNode.className:"";const it=Fe.languageDetectRe.exec(Le);if(it){const Dt=zn(it[1]);return Dt||(Cn(Tt.replace("{}",it[1])),Cn("Falling back to no-highlight mode for this block.",ge)),Dt?it[1]:"no-highlight"}return Le.split(/\s+/).find(Dt=>qe(Dt)||zn(Dt))}function Qt(ge,Le,it){let Dt="",rn="";typeof Le=="object"?(Dt=ge,it=Le.ignoreIllegals,rn=Le.language):(le("10.7.0","highlight(lang, code, ...args) has been deprecated."),le("10.7.0",`Please use highlight(code, options) instead.
15
+ https://github.com/highlightjs/highlight.js/issues/2277`),rn=ge,Dt=Le),it===void 0&&(it=!0);const _n={code:Dt,language:rn};ni("before:highlight",_n);const Wn=_n.result?_n.result:Qr(_n.language,_n.code,it);return Wn.code=_n.code,ni("after:highlight",Wn),Wn}function Qr(ge,Le,it,Dt){const rn=Object.create(null);function _n(ve,Re){return ve.keywords[Re]}function Wn(){if(!$e.keywords){un.addText(wt);return}let ve=0;$e.keywordPatternRe.lastIndex=0;let Re=$e.keywordPatternRe.exec(wt),Je="";for(;Re;){Je+=wt.substring(ve,Re.index);const xt=kn.case_insensitive?Re[0].toLowerCase():Re[0],Xt=_n($e,xt);if(Xt){const[dr,Ts]=Xt;if(un.addText(Je),Je="",rn[xt]=(rn[xt]||0)+1,rn[xt]<=Qe&&(Aa+=Ts),dr.startsWith("_"))Je+=Re[0];else{const ho=kn.classNameAliases[dr]||dr;Jn(Re[0],ho)}}else Je+=Re[0];ve=$e.keywordPatternRe.lastIndex,Re=$e.keywordPatternRe.exec(wt)}Je+=wt.substring(ve),un.addText(Je)}function In(){if(wt==="")return;let ve=null;if(typeof $e.subLanguage=="string"){if(!ue[$e.subLanguage]){un.addText(wt);return}ve=Qr($e.subLanguage,wt,!0,fo[$e.subLanguage]),fo[$e.subLanguage]=ve._top}else ve=Ri(wt,$e.subLanguage.length?$e.subLanguage:null);$e.relevance>0&&(Aa+=ve.relevance),un.__addSublanguage(ve._emitter,ve.language)}function Pt(){$e.subLanguage!=null?In():Wn(),wt=""}function Jn(ve,Re){ve!==""&&(un.startScope(Re),un.addText(ve),un.endScope())}function uo(ve,Re){let Je=1;const xt=Re.length-1;for(;Je<=xt;){if(!ve._emit[Je]){Je++;continue}const Xt=kn.classNameAliases[ve[Je]]||ve[Je],dr=Re[Je];Xt?Jn(dr,Xt):(wt=dr,Wn(),wt=""),Je++}}function zi(ve,Re){return ve.scope&&typeof ve.scope=="string"&&un.openNode(kn.classNameAliases[ve.scope]||ve.scope),ve.beginScope&&(ve.beginScope._wrap?(Jn(wt,kn.classNameAliases[ve.beginScope._wrap]||ve.beginScope._wrap),wt=""):ve.beginScope._multi&&(uo(ve.beginScope,Re),wt="")),$e=Object.create(ve,{parent:{value:$e}}),$e}function _s(ve,Re,Je){let xt=S(ve.endRe,Je);if(xt){if(ve["on:end"]){const Xt=new n(ve);ve["on:end"](Re,Xt),Xt.isMatchIgnored&&(xt=!1)}if(xt){for(;ve.endsParent&&ve.parent;)ve=ve.parent;return ve}}if(ve.endsWithParent)return _s(ve.parent,Re,Je)}function Li(ve){return $e.matcher.regexIndex===0?(wt+=ve[0],1):(ka=!0,0)}function pc(ve){const Re=ve[0],Je=ve.rule,xt=new n(Je),Xt=[Je.__beforeBegin,Je["on:begin"]];for(const dr of Xt)if(dr&&(dr(ve,xt),xt.isMatchIgnored))return Li(Re);return Je.skip?wt+=Re:(Je.excludeBegin&&(wt+=Re),Pt(),!Je.returnBegin&&!Je.excludeBegin&&(wt=Re)),zi(Je,ve),Je.returnBegin?0:Re.length}function Un(ve){const Re=ve[0],Je=Le.substring(ve.index),xt=_s($e,ve,Je);if(!xt)return rt;const Xt=$e;$e.endScope&&$e.endScope._wrap?(Pt(),Jn(Re,$e.endScope._wrap)):$e.endScope&&$e.endScope._multi?(Pt(),uo($e.endScope,ve)):Xt.skip?wt+=Re:(Xt.returnEnd||Xt.excludeEnd||(wt+=Re),Pt(),Xt.excludeEnd&&(wt=Re));do $e.scope&&un.closeNode(),!$e.skip&&!$e.subLanguage&&(Aa+=$e.relevance),$e=$e.parent;while($e!==xt.parent);return xt.starts&&zi(xt.starts,ve),Xt.returnEnd?0:Re.length}function Ms(){const ve=[];for(let Re=$e;Re!==kn;Re=Re.parent)Re.scope&&ve.unshift(Re.scope);ve.forEach(Re=>un.openNode(Re))}let ri={};function Pi(ve,Re){const Je=Re&&Re[0];if(wt+=ve,Je==null)return Pt(),0;if(ri.type==="begin"&&Re.type==="end"&&ri.index===Re.index&&Je===""){if(wt+=Le.slice(Re.index,Re.index+1),!Ht){const xt=new Error(`0 width match regex (${ge})`);throw xt.languageName=ge,xt.badRule=ri.rule,xt}return 1}if(ri=Re,Re.type==="begin")return pc(Re);if(Re.type==="illegal"&&!it){const xt=new Error('Illegal lexeme "'+Je+'" for mode "'+($e.scope||"<unnamed>")+'"');throw xt.mode=$e,xt}else if(Re.type==="end"){const xt=Un(Re);if(xt!==rt)return xt}if(Re.type==="illegal"&&Je==="")return Re.index===Le.length||(wt+=`
16
+ `),1;if(js>1e5&&js>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return wt+=Je,Je.length}const kn=zn(ge);if(!kn)throw We(Tt.replace("{}",ge)),new Error('Unknown language: "'+ge+'"');const xo=Vt(kn);let Ii="",$e=Dt||xo;const fo={},un=new Fe.__emitter(Fe);Ms();let wt="",Aa=0,Xr=0,js=0,ka=!1;try{if(kn.__emitTokens)kn.__emitTokens(Le,un);else{for($e.matcher.considerAll();;){js++,ka?ka=!1:$e.matcher.considerAll(),$e.matcher.lastIndex=Xr;const ve=$e.matcher.exec(Le);if(!ve)break;const Re=Le.substring(Xr,ve.index),Je=Pi(Re,ve);Xr=ve.index+Je}Pi(Le.substring(Xr))}return un.finalize(),Ii=un.toHTML(),{language:ge,value:Ii,relevance:Aa,illegal:!1,_emitter:un,_top:$e}}catch(ve){if(ve.message&&ve.message.includes("Illegal"))return{language:ge,value:me(Le),illegal:!0,relevance:0,_illegalBy:{message:ve.message,index:Xr,context:Le.slice(Xr-100,Xr+100),mode:ve.mode,resultSoFar:Ii},_emitter:un};if(Ht)return{language:ge,value:me(Le),illegal:!1,relevance:0,errorRaised:ve,_emitter:un,_top:$e};throw ve}}function Ti(ge){const Le={value:me(ge),illegal:!1,relevance:0,_top:Te,_emitter:new Fe.__emitter(Fe)};return Le._emitter.addText(ge),Le}function Ri(ge,Le){Le=Le||Fe.languages||Object.keys(ue);const it=Ti(ge),Dt=Le.filter(zn).filter(Ca).map(Pt=>Qr(Pt,ge,!1));Dt.unshift(it);const rn=Dt.sort((Pt,Jn)=>{if(Pt.relevance!==Jn.relevance)return Jn.relevance-Pt.relevance;if(Pt.language&&Jn.language){if(zn(Pt.language).supersetOf===Jn.language)return 1;if(zn(Jn.language).supersetOf===Pt.language)return-1}return 0}),[_n,Wn]=rn,In=_n;return In.secondBest=Wn,In}function Or(ge,Le,it){const Dt=Le&&ke[Le]||it;ge.classList.add("hljs"),ge.classList.add(`language-${Dt}`)}function nn(ge){let Le=null;const it=tn(ge);if(qe(it))return;if(ni("before:highlightElement",{el:ge,language:it}),ge.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ge);return}if(ge.children.length>0&&(Fe.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ge)),Fe.throwUnescapedHTML))throw new pt("One of your code blocks includes unescaped HTML.",ge.innerHTML);Le=ge;const Dt=Le.textContent,rn=it?Qt(Dt,{language:it,ignoreIllegals:!0}):Ri(Dt);ge.innerHTML=rn.value,ge.dataset.highlighted="yes",Or(ge,it,rn.language),ge.result={language:rn.language,re:rn.relevance,relevance:rn.relevance},rn.secondBest&&(ge.secondBest={language:rn.secondBest.language,relevance:rn.secondBest.relevance}),ni("after:highlightElement",{el:ge,result:rn,text:Dt})}function Nn(ge){Fe=ae(Fe,ge)}const ba=()=>{Oi(),le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ss(){Oi(),le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let lo=!1;function Oi(){function ge(){Oi()}if(document.readyState==="loading"){lo||window.addEventListener("DOMContentLoaded",ge,!1),lo=!0;return}document.querySelectorAll(Fe.cssSelector).forEach(nn)}function oo(ge,Le){let it=null;try{it=Le(U)}catch(Dt){if(We("Language definition for '{}' could not be registered.".replace("{}",ge)),Ht)We(Dt);else throw Dt;it=Te}it.name||(it.name=ge),ue[ge]=it,it.rawDefinition=Le.bind(null,U),it.aliases&&Yr(it.aliases,{languageName:ge})}function ti(ge){delete ue[ge];for(const Le of Object.keys(ke))ke[Le]===ge&&delete ke[Le]}function Ns(){return Object.keys(ue)}function zn(ge){return ge=(ge||"").toLowerCase(),ue[ge]||ue[ke[ge]]}function Yr(ge,{languageName:Le}){typeof ge=="string"&&(ge=[ge]),ge.forEach(it=>{ke[it.toLowerCase()]=Le})}function Ca(ge){const Le=zn(ge);return Le&&!Le.disableAutodetect}function va(ge){ge["before:highlightBlock"]&&!ge["before:highlightElement"]&&(ge["before:highlightElement"]=Le=>{ge["before:highlightBlock"](Object.assign({block:Le.el},Le))}),ge["after:highlightBlock"]&&!ge["after:highlightElement"]&&(ge["after:highlightElement"]=Le=>{ge["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function cn(ge){va(ge),Ve.push(ge)}function co(ge){const Le=Ve.indexOf(ge);Le!==-1&&Ve.splice(Le,1)}function ni(ge,Le){const it=ge;Ve.forEach(function(Dt){Dt[it]&&Dt[it](Le)})}function Kr(ge){return le("10.7.0","highlightBlock will be removed entirely in v12.0"),le("10.7.0","Please use highlightElement now."),nn(ge)}Object.assign(U,{highlight:Qt,highlightAuto:Ri,highlightAll:Oi,highlightElement:nn,highlightBlock:Kr,configure:Nn,initHighlighting:ba,initHighlightingOnLoad:Ss,registerLanguage:oo,unregisterLanguage:ti,listLanguages:Ns,getLanguage:zn,registerAliases:Yr,autoDetection:Ca,inherit:ae,addPlugin:cn,removePlugin:co}),U.debugMode=function(){Ht=!1},U.safeMode=function(){Ht=!0},U.versionString=ie,U.regex={concat:v,lookahead:y,either:B,optional:C,anyNumberOfTimes:b};for(const ge in st)typeof st[ge]=="object"&&e(st[ge]);return Object.assign(U,st),U},on=Kt({});return on.newInstance=()=>Kt({}),Nx=on,on.HighlightJS=on,on.default=on,Nx}var eN=JS();const tN=Zl(eN),F9={},nN="hljs-";function rN(e){const n=tN.newInstance();return e&&o(e),{highlight:a,highlightAuto:i,listLanguages:l,register:o,registerAlias:u,registered:d};function a(f,h,g){const p=g||F9,y=typeof p.prefix=="string"?p.prefix:nN;if(!n.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");n.configure({__emitter:aN,classPrefix:y});const b=n.highlight(h,{ignoreIllegals:!0,language:f});if(b.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:b.errorRaised});const C=b._emitter.root,v=C.data;return v.language=b.language,v.relevance=b.relevance,C}function i(f,h){const p=(h||F9).subset||l();let y=-1,b=0,C;for(;++y<p.length;){const v=p[y];if(!n.getLanguage(v))continue;const k=a(v,f,h);k.data&&k.data.relevance!==void 0&&k.data.relevance>b&&(b=k.data.relevance,C=k)}return C||{type:"root",children:[],data:{language:void 0,relevance:b}}}function l(){return n.listLanguages()}function o(f,h){if(typeof f=="string")n.registerLanguage(f,h);else{let g;for(g in f)Object.hasOwn(f,g)&&n.registerLanguage(g,f[g])}}function u(f,h){if(typeof f=="string")n.registerAliases(typeof h=="string"?h:[...h],{languageName:f});else{let g;for(g in f)if(Object.hasOwn(f,g)){const p=f[g];n.registerAliases(typeof p=="string"?p:[...p],{languageName:g})}}}function d(f){return!!n.getLanguage(f)}}class aN{constructor(n){this.options=n,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(n){if(n==="")return;const a=this.stack[this.stack.length-1],i=a.children[a.children.length-1];i&&i.type==="text"?i.value+=n:a.children.push({type:"text",value:n})}startScope(n){this.openNode(String(n))}endScope(){this.closeNode()}__addSublanguage(n,a){const i=this.stack[this.stack.length-1],l=n.root.children;a?i.children.push({type:"element",tagName:"span",properties:{className:[a]},children:l}):i.children.push(...l)}openNode(n){const a=this,i=n.split(".").map(function(u,d){return d?u+"_".repeat(d):a.options.classPrefix+u}),l=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:i},children:[]};l.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const S9=rN({bash:wS,css:OS,ini:zS,javascript:HS,json:GS,markdown:VS,python:QS,sql:YS,typescript:XS,xml:ZS,yaml:WS}),Vg={bash:"bash",sh:"bash",zsh:"bash",css:"css",scss:"css",toml:"ini",ini:"ini",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",json:"json",jsonc:"json",md:"markdown",markdown:"markdown",py:"python",sql:"sql",ts:"typescript",tsx:"typescript",mts:"typescript",cts:"typescript",html:"xml",svg:"xml",xml:"xml",yaml:"yaml",yml:"yaml"},iN={...Vg,shell:"bash",console:"bash",javascript:"javascript",typescript:"typescript",python:"python",yaml:"yaml",json:"json",sql:"sql"},sN={Bash:"bash"};function lN(e){return(e&&sN[e])??null}function Qg(e){const n=e.slice(e.lastIndexOf("/")+1),a=n.lastIndexOf(".");return a<1?null:Vg[n.slice(a+1).toLowerCase()]??null}function oN(e,n){return e==="Read"&&n?Qg(n):null}function cN(e){const n=e?.match(/(?:^|\s)language-([\w+-]+)/)?.[1];return n?iN[n.toLowerCase()]??null:null}function Yg(e,n){return!n||!S9.registered(n)?null:S9.highlight(n,e).children.filter(uN)}function uN(e){return e.type==="element"||e.type==="text"}function xN(e,n){const a=Yg(e,n);return a?Kg(a):null}function Kg(e){const n=[[]];for(const a of e){const i=dN(a);n[n.length-1].push(...i[0]);for(let l=1;l<i.length;l++)n.push(i[l])}return n}function dN(e){if(e.type==="text")return e.value.split(`
17
+ `).map(a=>a?[{type:"text",value:a}]:[]);if(e.type!=="element")return[[e]];const n=e;return Kg(n.children).map(a=>a.length?[{...n,children:a}]:[])}function fN(e){for(let n=e.length-1;n>=0;n--){const a=e[n];if(a.role==="assistant")return a;if(a.role==="user")return null}return null}function N9(e){const n=[];let a=null;for(const i of e)i.role==="assistant"?a=i:i.role==="user"&&(a&&n.push(a),a=null);return a&&n.push(a),n}function hN(e,n,a){const i=Xn(n.ts);if(a&&Xn(a)<i)return a;const l=e.lastIndexOf(n);for(let o=(l<0?e.length:l)-1;o>=0;o--)if(e[o].role==="user")return e[o].ts;return null}function pN(e){const n=new Map;for(const o of e)o.subagentLabel&&o.toolUseId&&!n.has(o.toolUseId)&&n.set(o.toolUseId,o);const a=new Map,i=new Set;for(const o of e){const u=o.parentToolUseId,d=u?n.get(u):void 0;if(!d||d===o)continue;const f=a.get(u)??[];f.push(o),a.set(u,f),i.add(o)}const l=(o,u)=>{const d=o.toolUseId;if(!d||u.has(d))return{e:o,children:[]};const f=new Set(u);return f.add(d),{e:o,children:(a.get(d)??[]).map(h=>l(h,f))}};return e.filter(o=>!i.has(o)).map(o=>l(o,new Set))}function hf({nodes:e}){return x.jsx(x.Fragment,{children:e.map((n,a)=>{if(n.type==="text")return n.value;if(n.type!=="element")return null;const i=n.properties?.className;return x.jsx("span",{className:Array.isArray(i)?i.join(" "):void 0,children:x.jsx(hf,{nodes:n.children})},a)})})}const Xg=D.memo(function({text:n,language:a}){const i=D.useMemo(()=>Yg(n,a),[n,a]);return i?x.jsx(hf,{nodes:i}):n}),mN="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%3c/title%3e%3cpath%20d='M4.709%2015.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0%2011.784l.055-.352.48-.321.686.06%201.52.103%202.278.158%201.652.097%202.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686%201.908%201.476%202.491%201.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97%202.97%200%2001-.104-.729L6.283.134%206.696%200l.996.134.42.364.62%201.414%201.002%202.229%201.555%203.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286%201.851-.559%202.903-.364%201.942h.212l.243-.242.985-1.306%201.652-2.064.73-.82.85-.904.547-.431h1.033l.76%201.129-.34%201.166-1.064%201.347-.881%201.142-1.264%201.7-.79%201.36.073.11.188-.02%202.856-.606%201.543-.28%201.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061%201.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093%201.068%202.006%201.81%202.509%202.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649%202.345%203.521.122%201.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674%207.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434%201.967-2.18%202.945-1.726%201.845-.414.164-.717-.37.067-.662.401-.589%202.388-3.036%201.44-1.882.93-1.086-.006-.158h-.055L4.132%2018.56l-1.13.146-.487-.456.061-.746.231-.243%201.908-1.312-.006.006z'%3e%3c/path%3e%3c/svg%3e",gN="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCursor%3c/title%3e%3cpath%20d='M22.106%205.68L12.5.135a.998.998%200%2000-.998%200L1.893%205.68a.84.84%200%2000-.419.726v11.186c0%20.3.16.577.42.727l9.607%205.547a.999.999%200%2000.998%200l9.608-5.547a.84.84%200%2000.42-.727V6.407a.84.84%200%2000-.42-.726zm-.603%201.176L12.228%2022.92c-.063.108-.228.064-.228-.061V12.34a.59.59%200%2000-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264%200%20.428.286.296.514z'%3e%3c/path%3e%3c/svg%3e",EN="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M9.205%208.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357%201.356-.523%202.117-.523%202.854%200%204.662%202.212%204.662%204.566%200%20.167%200%20.357-.024.547l-4.71-2.759a.797.797%200%2000-.856%200l-5.97%203.473zm10.609%208.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473%201.95-1.118a.433.433%200%2001.476%200l4.543%202.617c1.309.76%202.189%202.378%202.189%203.948%200%201.808-1.07%203.473-2.76%204.163zM7.802%2012.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545%201.95-4.472%204.591-4.472%201%200%201.927.333%202.712.928L8.23%205.067c-.285.166-.428.404-.428.737v6.898zM12%2015.128l-2.795-1.57v-3.33L12%208.658l2.795%201.57v3.33L12%2015.128zm1.796%207.23c-1%200-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974%201.142c.167.095.238.238.238.428v5.233c0%202.545-1.974%204.472-4.614%204.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482%204.482%200%20014.21%206.327v5.423c0%20.333.143.571.428.738l5.947%203.449-1.95%201.118a.432.432%200%2001-.476%200zm-.262%203.9c-2.688%200-4.662-2.021-4.662-4.519%200-.19.024-.38.047-.57l4.686%202.71c.286.167.571.167.856%200l5.97-3.448v2.26c0%20.19-.07.333-.237.428l-4.543%202.616c-.619.357-1.356.523-2.117.523zm5.899%202.83a5.947%205.947%200%20005.827-4.756C22.287%2018.339%2024%2015.84%2024%2013.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498%200-3.401-2.759-5.947-5.946-5.947-.642%200-1.26.095-1.88.31A5.962%205.962%200%200010.205%200a5.947%205.947%200%2000-5.827%204.757C1.713%205.447%200%207.945%200%2010.49c0%201.666.713%203.283%201.998%204.448-.119.5-.19%201-.19%201.499%200%203.401%202.759%205.946%205.946%205.946.642%200%201.26-.095%201.88-.309a5.96%205.96%200%20004.162%201.713z'%3e%3c/path%3e%3c/svg%3e",yN="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eopencode%3c/title%3e%3cpath%20d='M16%206H8v12h8V6zm4%2016H4V2h16v20z'%3e%3c/path%3e%3c/svg%3e",Ql={none:"None",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultracode:"Ultracode"},Bi=["low","medium","high","xhigh","max","ultracode"];function Zg(e){return Bi[(Bi.indexOf(e??"")+1)%Bi.length]}function no(e,n){const a=n?.toLowerCase()??"";if(/^(?:anthropic\/|claude|fable|haiku|opus|sonnet)/.test(a))return"claude";if(/^(?:openai\/|gpt|o[1-9]|\d)/.test(a))return"openai";if(/^(?:cursor\/|composer|grok)/.test(a))return"cursor";if(/^opencode(?:-go)?\//.test(a))return"opencode";const i=e?.toLowerCase();if(i==="claude"||i==="anthropic")return"claude";if(i==="codex"||i==="openai")return"openai";if(i==="cursor")return"cursor";if(i==="acp"||i==="opencode")return"opencode"}function pf(e,n){return no(e,n)==="claude"}function mf(e,n){const a=no(e,n);return a==="claude"||a==="openai"}function gf(e,n){const a=no(e,n);return a==="claude"||a==="openai"}function bN(e,n){const a=no(null,e),i=a==="claude"?n?.claude:a==="openai"?n?.codex:void 0;return i&&Bi.includes(i)?i:void 0}function CN(e,n){const a=Zg(e);if(!(a===n||!n&&e===Bi.at(-1)))return a}const vN={claude:mN,cursor:gN,openai:EN,opencode:yN},AN={claude:"#D97757",openai:"var(--color-provider-openai)"};function ro({agentType:e,model:n,className:a}){const i=no(e,n);if(!i)return x.jsx(b8,{"aria-hidden":"true",className:a});const l=vN[i];return x.jsx("span",{"aria-hidden":"true",className:pe("inline-block shrink-0 bg-current",a),style:{color:AN[i],WebkitMaskImage:`url("${l}")`,maskImage:`url("${l}")`,WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}const kN=[5,7,9,11,13,15],BN={low:1,medium:2,high:3,xhigh:4,max:5,ultracode:6};function Wg({effort:e,className:n}){const a=BN[e]??0;return x.jsx("span",{"aria-hidden":"true",className:pe("flex h-[15px] shrink-0 items-end gap-[1.5px]",n),children:kN.map((i,l)=>x.jsx("span",{className:pe("w-0.5 rounded-full bg-current transition-opacity",l<a?"opacity-100":"opacity-20"),style:{height:i}},i))})}var Gr=Y2();function DN(e,n){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const wN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SN={};function _9(e,n){return(SN.jsx?FN:wN).test(e)}const NN=/[ \t\n\f\r]/g;function _N(e){return typeof e=="object"?e.type==="text"?M9(e.value):!1:M9(e)}function M9(e){return e.replace(NN,"")===""}class ao{constructor(n,a,i){this.normal=a,this.property=n,i&&(this.space=i)}}ao.prototype.normal={};ao.prototype.property={};ao.prototype.space=void 0;function Jg(e,n){const a={},i={};for(const l of e)Object.assign(a,l.property),Object.assign(i,l.normal);return new ao(a,i,n)}function Cd(e){return e.toLowerCase()}class Zn{constructor(n,a){this.attribute=a,this.property=n}}Zn.prototype.attribute="";Zn.prototype.booleanish=!1;Zn.prototype.boolean=!1;Zn.prototype.commaOrSpaceSeparated=!1;Zn.prototype.commaSeparated=!1;Zn.prototype.defined=!1;Zn.prototype.mustUseProperty=!1;Zn.prototype.number=!1;Zn.prototype.overloadedBoolean=!1;Zn.prototype.property="";Zn.prototype.spaceSeparated=!1;Zn.prototype.space=void 0;let MN=0;const Xe=ji(),pn=ji(),vd=ji(),be=ji(),Ot=ji(),Di=ji(),lr=ji();function ji(){return 2**++MN}const Ad=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xe,booleanish:pn,commaOrSpaceSeparated:lr,commaSeparated:Di,number:be,overloadedBoolean:vd,spaceSeparated:Ot},Symbol.toStringTag,{value:"Module"})),_x=Object.keys(Ad);class Ef extends Zn{constructor(n,a,i,l){let o=-1;if(super(n,a),j9(this,"space",l),typeof i=="number")for(;++o<_x.length;){const u=_x[o];j9(this,_x[o],(i&Ad[u])===Ad[u])}}}Ef.prototype.defined=!0;function j9(e,n,a){a&&(e[n]=a)}function ws(e){const n={},a={};for(const[i,l]of Object.entries(e.properties)){const o=new Ef(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),n[i]=o,a[Cd(i)]=i,a[Cd(o.attribute)]=i}return new ao(n,a,e.space)}const eE=ws({properties:{ariaActiveDescendant:null,ariaAtomic:pn,ariaAutoComplete:null,ariaBusy:pn,ariaChecked:pn,ariaColCount:be,ariaColIndex:be,ariaColSpan:be,ariaControls:Ot,ariaCurrent:null,ariaDescribedBy:Ot,ariaDetails:null,ariaDisabled:pn,ariaDropEffect:Ot,ariaErrorMessage:null,ariaExpanded:pn,ariaFlowTo:Ot,ariaGrabbed:pn,ariaHasPopup:null,ariaHidden:pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ot,ariaLevel:be,ariaLive:null,ariaModal:pn,ariaMultiLine:pn,ariaMultiSelectable:pn,ariaOrientation:null,ariaOwns:Ot,ariaPlaceholder:null,ariaPosInSet:be,ariaPressed:pn,ariaReadOnly:pn,ariaRelevant:null,ariaRequired:pn,ariaRoleDescription:Ot,ariaRowCount:be,ariaRowIndex:be,ariaRowSpan:be,ariaSelected:pn,ariaSetSize:be,ariaSort:null,ariaValueMax:be,ariaValueMin:be,ariaValueNow:be,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function tE(e,n){return n in e?e[n]:n}function nE(e,n){return tE(e,n.toLowerCase())}const jN=ws({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Di,acceptCharset:Ot,accessKey:Ot,action:null,allow:null,allowFullScreen:Xe,allowPaymentRequest:Xe,allowUserMedia:Xe,alpha:Xe,alt:null,as:null,async:Xe,autoCapitalize:null,autoComplete:Ot,autoFocus:Xe,autoPlay:Xe,blocking:Ot,capture:null,charSet:null,checked:Xe,cite:null,className:Ot,closedBy:null,colorSpace:null,cols:be,colSpan:be,command:null,commandFor:null,content:null,contentEditable:pn,controls:Xe,controlsList:Ot,coords:be|Di,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xe,defer:Xe,dir:null,dirName:null,disabled:Xe,download:vd,draggable:pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xe,formTarget:null,headers:Ot,height:be,hidden:vd,high:be,href:null,hrefLang:null,htmlFor:Ot,httpEquiv:Ot,id:null,imageSizes:null,imageSrcSet:null,inert:Xe,inputMode:null,integrity:null,is:null,isMap:Xe,itemId:null,itemProp:Ot,itemRef:Ot,itemScope:Xe,itemType:Ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xe,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:Xe,muted:Xe,name:null,nonce:null,noModule:Xe,noValidate:Xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xe,optimum:be,pattern:null,ping:Ot,placeholder:null,playsInline:Xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xe,referrerPolicy:null,rel:Ot,required:Xe,reversed:Xe,rows:be,rowSpan:be,sandbox:Ot,scope:null,scoped:Xe,seamless:Xe,selected:Xe,shadowRootClonable:Xe,shadowRootCustomElementRegistry:Xe,shadowRootDelegatesFocus:Xe,shadowRootMode:null,shadowRootSerializable:Xe,shape:null,size:be,sizes:null,slot:null,span:be,spellCheck:pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:be,step:null,style:null,tabIndex:be,target:null,title:null,translate:null,type:null,typeMustMatch:Xe,useMap:null,value:pn,width:be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ot,axis:null,background:null,bgColor:null,border:be,borderColor:null,bottomMargin:be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xe,declare:Xe,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:Xe,noHref:Xe,noShade:Xe,noWrap:Xe,object:null,profile:null,prompt:null,rev:null,rightMargin:be,rules:null,scheme:null,scrolling:pn,standby:null,summary:null,text:null,topMargin:be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:be,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Xe,disablePictureInPicture:Xe,disableRemotePlayback:Xe,exportParts:Di,part:Ot,prefix:null,property:null,results:be,security:null,unselectable:null},space:"html",transform:nE}),TN=ws({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:lr,accentHeight:be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:be,amplitude:be,arabicForm:null,ascent:be,attributeName:null,attributeType:null,azimuth:be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:be,by:null,calcMode:null,capHeight:be,className:Ot,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:be,diffuseConstant:be,direction:null,display:null,dur:null,divisor:be,dominantBaseline:null,download:Xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:be,enableBackground:null,end:null,event:null,exponent:be,externalResourcesRequired:null,fill:null,fillOpacity:be,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Di,g2:Di,glyphName:Di,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:be,horizOriginX:be,horizOriginY:be,id:null,ideographic:be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:be,k:be,k1:be,k2:be,k3:be,k4:be,kernelMatrix:lr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:be,overlineThickness:be,paintOrder:null,panose1:null,path:null,pathLength:be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:be,pointsAtY:be,pointsAtZ:be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lr,rev:lr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lr,requiredFeatures:lr,requiredFonts:lr,requiredFormats:lr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:be,specularExponent:be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:be,strikethroughThickness:be,string:null,stroke:null,strokeDashArray:lr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:be,strokeOpacity:be,strokeWidth:null,style:null,surfaceScale:be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:lr,tabIndex:be,tableValues:null,target:null,targetX:be,targetY:be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:lr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:be,underlineThickness:be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:be,values:null,vAlphabetic:be,vMathematical:be,vectorEffect:null,vHanging:be,vIdeographic:be,version:null,vertAdvY:be,vertOriginX:be,vertOriginY:be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tE}),rE=ws({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),aE=ws({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nE}),iE=ws({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),RN={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ON=/[A-Z]/g,T9=/-[a-z]/g,zN=/^data[-\w.:]+$/i;function LN(e,n){const a=Cd(n);let i=n,l=Zn;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&zN.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(T9,IN);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!T9.test(o)){let u=o.replace(ON,PN);u.charAt(0)!=="-"&&(u="-"+u),n="data"+u}}l=Ef}return new l(i,n)}function PN(e){return"-"+e.toLowerCase()}function IN(e){return e.charAt(1).toUpperCase()}const UN=Jg([eE,jN,rE,aE,iE],"html"),yf=Jg([eE,TN,rE,aE,iE],"svg");function HN(e){return e.join(" ").trim()}var Es={},Mx,R9;function $N(){if(R9)return Mx;R9=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
18
+ `,h="/",g="*",p="",y="comment",b="declaration";function C(k,B){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];B=B||{};var j=1,S=1;function _(te){var Y=te.match(n);Y&&(j+=Y.length);var P=te.lastIndexOf(f);S=~P?te.length-P:S+te.length}function T(){var te={line:j,column:S};return function(Y){return Y.position=new F(te),I(),Y}}function F(te){this.start=te,this.end={line:j,column:S},this.source=B.source}F.prototype.content=k;function R(te){var Y=new Error(B.source+":"+j+":"+S+": "+te);if(Y.reason=te,Y.filename=B.source,Y.line=j,Y.column=S,Y.source=k,!B.silent)throw Y}function L(te){var Y=te.exec(k);if(Y){var P=Y[0];return _(P),k=k.slice(P.length),Y}}function I(){L(a)}function O(te){var Y;for(te=te||[];Y=$();)Y!==!1&&te.push(Y);return te}function $(){var te=T();if(!(h!=k.charAt(0)||g!=k.charAt(1))){for(var Y=2;p!=k.charAt(Y)&&(g!=k.charAt(Y)||h!=k.charAt(Y+1));)++Y;if(Y+=2,p===k.charAt(Y-1))return R("End of comment missing");var P=k.slice(2,Y-2);return S+=2,_(P),k=k.slice(Y),S+=2,te({type:y,comment:P})}}function V(){var te=T(),Y=L(i);if(Y){if($(),!L(l))return R("property missing ':'");var P=L(o),Q=te({type:b,property:v(Y[0].replace(e,p)),value:P?v(P[0].replace(e,p)):p});return L(u),Q}}function oe(){var te=[];O(te);for(var Y;Y=V();)Y!==!1&&(te.push(Y),O(te));return te}return I(),oe()}function v(k){return k?k.replace(d,p):p}return Mx=C,Mx}var O9;function qN(){if(O9)return Es;O9=1;var e=Es&&Es.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=a;const n=e($N());function a(i,l){let o=null;if(!i||typeof i!="string")return o;const u=(0,n.default)(i),d=typeof l=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:g}=f;d?l(h,g,f):g&&(o=o||{},o[h]=g)}),o}return Es}var wl={},z9;function GN(){if(z9)return wl;z9=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,o=function(h){return!h||a.test(h)||e.test(h)},u=function(h,g){return g.toUpperCase()},d=function(h,g){return"".concat(g,"-")},f=function(h,g){return g===void 0&&(g={}),o(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(l,d):h=h.replace(i,d),h.replace(n,u))};return wl.camelCase=f,wl}var Fl,L9;function VN(){if(L9)return Fl;L9=1;var e=Fl&&Fl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(qN()),a=GN();function i(l,o){var u={};return!l||typeof l!="string"||(0,n.default)(l,function(d,f){d&&f&&(u[(0,a.camelCase)(d,o)]=f)}),u}return i.default=i,Fl=i,Fl}var QN=VN();const YN=Zl(QN),sE=lE("end"),bf=lE("start");function lE(e){return n;function n(a){const i=a&&a.position&&a.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function KN(e){const n=bf(e),a=sE(e);if(n&&a)return{start:n,end:a}}function Ol(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?P9(e.position):"start"in e||"end"in e?P9(e):"line"in e||"column"in e?kd(e):""}function kd(e){return I9(e&&e.line)+":"+I9(e&&e.column)}function P9(e){return kd(e&&e.start)+"-"+kd(e&&e.end)}function I9(e){return e&&typeof e=="number"?e:1}class Rn extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let l="",o={},u=!1;if(a&&("line"in a&&"column"in a?o={place:a}:"start"in a&&"end"in a?o={place:a}:"type"in a?o={ancestors:[a],place:a.position}:o={...a}),typeof n=="string"?l=n:!o.cause&&n&&(u=!0,l=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?o.ruleId=i:(o.source=i.slice(0,f),o.ruleId=i.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){const f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=Ol(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Rn.prototype.file="";Rn.prototype.name="";Rn.prototype.reason="";Rn.prototype.message="";Rn.prototype.stack="";Rn.prototype.column=void 0;Rn.prototype.line=void 0;Rn.prototype.ancestors=void 0;Rn.prototype.cause=void 0;Rn.prototype.fatal=void 0;Rn.prototype.place=void 0;Rn.prototype.ruleId=void 0;Rn.prototype.source=void 0;const Cf={}.hasOwnProperty,XN=new Map,ZN=/[A-Z]/g,WN=new Set(["table","tbody","thead","tfoot","tr"]),JN=new Set(["td","th"]),oE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function e_(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=o_(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=l_(a,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?yf:UN,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=cE(l,e,void 0);return o&&typeof o!="string"?o:l.create(e,l.Fragment,{children:o||void 0},void 0)}function cE(e,n,a){if(n.type==="element")return t_(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return n_(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return a_(e,n,a);if(n.type==="mdxjsEsm")return r_(e,n);if(n.type==="root")return i_(e,n,a);if(n.type==="text")return s_(e,n)}function t_(e,n,a){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=yf,e.schema=l),e.ancestors.push(n);const o=xE(e,n.tagName,!1),u=c_(e,n);let d=Af(e,n);return WN.has(n.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!_N(f):!0})),uE(e,u,o,n),vf(u,d),e.ancestors.pop(),e.schema=i,e.create(n,o,u,a)}function n_(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Yl(e,n.position)}function r_(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Yl(e,n.position)}function a_(e,n,a){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=yf,e.schema=l),e.ancestors.push(n);const o=n.name===null?e.Fragment:xE(e,n.name,!0),u=u_(e,n),d=Af(e,n);return uE(e,u,o,n),vf(u,d),e.ancestors.pop(),e.schema=i,e.create(n,o,u,a)}function i_(e,n,a){const i={};return vf(i,Af(e,n)),e.create(n,e.Fragment,i,a)}function s_(e,n){return n.value}function uE(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function vf(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function l_(e,n,a){return i;function i(l,o,u,d){const h=Array.isArray(u.children)?a:n;return d?h(o,u,d):h(o,u)}}function o_(e,n){return a;function a(i,l,o,u){const d=Array.isArray(o.children),f=bf(i);return n(l,o,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function c_(e,n){const a={};let i,l;for(l in n.properties)if(l!=="children"&&Cf.call(n.properties,l)){const o=x_(e,l,n.properties[l]);if(o){const[u,d]=o;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&JN.has(n.tagName)?i=d:a[u]=d}}if(i){const o=a.style||(a.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function u_(e,n){const a={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const d=u.properties[0];d.type,Object.assign(a,e.evaluater.evaluateExpression(d.argument))}else Yl(e,n.position);else{const l=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else Yl(e,n.position);else o=i.value===null?!0:i.value;a[l]=o}return a}function Af(e,n){const a=[];let i=-1;const l=e.passKeys?new Map:XN;for(;++i<n.children.length;){const o=n.children[i];let u;if(e.passKeys){const f=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(f){const h=l.get(f)||0;u=f+"-"+h,l.set(f,h+1)}}const d=cE(e,o,u);d!==void 0&&a.push(d)}return a}function x_(e,n,a){const i=LN(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?DN(a):HN(a)),i.property==="style"){let l=typeof a=="object"?a:d_(e,String(a));return e.stylePropertyNameCase==="css"&&(l=f_(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?RN[i.property]||i.property:i.attribute,a]}}function d_(e,n){try{return YN(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const i=a,l=new Rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=oE+"#cannot-parse-style-attribute",l}}function xE(e,n,a){let i;if(!a)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let o=-1,u;for(;++o<l.length;){const d=_9(l[o])?{type:"Identifier",name:l[o]}:{type:"Literal",value:l[o]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}i=u}else i=_9(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return Cf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Yl(e)}function Yl(e,n){const a=new Rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=oE+"#cannot-handle-mdx-estrees-without-createevaluater",a}function f_(e){const n={};let a;for(a in e)Cf.call(e,a)&&(n[h_(a)]=e[a]);return n}function h_(e){let n=e.replace(ZN,p_);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function p_(e){return"-"+e.toLowerCase()}const jx={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},m_={};function kf(e,n){const a=m_,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,l=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return dE(e,i,l)}function dE(e,n,a){if(g_(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return U9(e.children,n,a)}return Array.isArray(e)?U9(e,n,a):""}function U9(e,n,a){const i=[];let l=-1;for(;++l<e.length;)i[l]=dE(e[l],n,a);return i.join("")}function g_(e){return!!(e&&typeof e=="object")}const H9=document.createElement("i");function Bf(e){const n="&"+e+";";H9.innerHTML=n;const a=H9.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function cr(e,n,a,i){const l=e.length;let o=0,u;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,a=a>0?a:0,i.length<1e4)u=Array.from(i),u.unshift(n,a),e.splice(...u);else for(a&&e.splice(n,a);o<i.length;)u=i.slice(o,o+1e4),u.unshift(n,0),e.splice(...u),o+=1e4,n+=1e4}function Ar(e,n){return e.length>0?(cr(e,e.length,0,n),e):n}const $9={}.hasOwnProperty;function fE(e){const n={};let a=-1;for(;++a<e.length;)E_(n,e[a]);return n}function E_(e,n){let a;for(a in n){const l=($9.call(e,a)?e[a]:void 0)||(e[a]={}),o=n[a];let u;if(o)for(u in o){$9.call(l,u)||(l[u]=[]);const d=o[u];y_(l[u],Array.isArray(d)?d:d?[d]:[])}}}function y_(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);cr(e,0,0,i)}function hE(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pn=ei(/[A-Za-z]/),jn=ei(/[\dA-Za-z]/),b_=ei(/[#-'*+\--9=?A-Z^-~]/);function Z0(e){return e!==null&&(e<32||e===127)}const Bd=ei(/\d/),C_=ei(/[\dA-Fa-f]/),v_=ei(/[!-/:-@[-`{-~]/);function Ue(e){return e!==null&&e<-2}function zt(e){return e!==null&&(e<0||e===32)}function ct(e){return e===-2||e===-1||e===32}const uc=ei(new RegExp("\\p{P}|\\p{S}","u")),Si=ei(/\s/);function ei(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Fs(e){const n=[];let a=-1,i=0,l=0;for(;++a<e.length;){const o=e.charCodeAt(a);let u="";if(o===37&&jn(e.charCodeAt(a+1))&&jn(e.charCodeAt(a+2)))l=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const d=e.charCodeAt(a+1);o<56320&&d>56319&&d<57344?(u=String.fromCharCode(o,d),l=1):u="�"}else u=String.fromCharCode(o);u&&(n.push(e.slice(i,a),encodeURIComponent(u)),i=a+l+1,u=""),l&&(a+=l,l=0)}return n.join("")+e.slice(i)}function gt(e,n,a,i){const l=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(f){return ct(f)?(e.enter(a),d(f)):n(f)}function d(f){return ct(f)&&o++<l?(e.consume(f),d):(e.exit(a),n(f))}}const A_={tokenize:k_};function k_(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let a;return n;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),gt(e,n,"linePrefix")}function l(d){return e.enter("paragraph"),o(d)}function o(d){const f=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=f),a=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ue(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),u)}}const B_={tokenize:D_},q9={tokenize:w_};function D_(e){const n=this,a=[];let i=0,l,o,u;return d;function d(S){if(i<a.length){const _=a[i];return n.containerState=_[1],e.attempt(_[0].continuation,f,h)(S)}return h(S)}function f(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&j();const _=n.events.length;let T=_,F;for(;T--;)if(n.events[T][0]==="exit"&&n.events[T][1].type==="chunkFlow"){F=n.events[T][1].end;break}B(i);let R=_;for(;R<n.events.length;)n.events[R][1].end={...F},R++;return cr(n.events,T+1,0,n.events.slice(_)),n.events.length=R,h(S)}return d(S)}function h(S){if(i===a.length){if(!l)return y(S);if(l.currentConstruct&&l.currentConstruct.concrete)return C(S);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(q9,g,p)(S)}function g(S){return l&&j(),B(i),y(S)}function p(S){return n.parser.lazy[n.now().line]=i!==a.length,u=n.now().offset,C(S)}function y(S){return n.containerState={},e.attempt(q9,b,C)(S)}function b(S){return i++,a.push([n.currentConstruct,n.containerState]),y(S)}function C(S){if(S===null){l&&j(),B(0),e.consume(S);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:o}),v(S)}function v(S){if(S===null){k(e.exit("chunkFlow"),!0),B(0),e.consume(S);return}return Ue(S)?(e.consume(S),k(e.exit("chunkFlow")),i=0,n.interrupt=void 0,d):(e.consume(S),v)}function k(S,_){const T=n.sliceStream(S);if(_&&T.push(null),S.previous=o,o&&(o.next=S),o=S,l.defineSkip(S.start),l.write(T),n.parser.lazy[S.start.line]){let F=l.events.length;for(;F--;)if(l.events[F][1].start.offset<u&&(!l.events[F][1].end||l.events[F][1].end.offset>u))return;const R=n.events.length;let L=R,I,O;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if(I){O=n.events[L][1].end;break}I=!0}for(B(i),F=R;F<n.events.length;)n.events[F][1].end={...O},F++;cr(n.events,L+1,0,n.events.slice(R)),n.events.length=F}}function B(S){let _=a.length;for(;_-- >S;){const T=a[_];n.containerState=T[1],T[0].exit.call(n,e)}a.length=S}function j(){l.write([null]),o=void 0,l=void 0,n.containerState._closeFlow=void 0}}function w_(e,n,a){return gt(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vs(e){if(e===null||zt(e)||Si(e))return 1;if(uc(e))return 2}function xc(e,n,a){const i=[];let l=-1;for(;++l<e.length;){const o=e[l].resolveAll;o&&!i.includes(o)&&(n=o(n,a),i.push(o))}return n}const Dd={name:"attention",resolveAll:F_,tokenize:S_};function F_(e,n){let a=-1,i,l,o,u,d,f,h,g;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(i=a;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const p={...e[i][1].end},y={...e[a][1].start};G9(p,-f),G9(y,f),u={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:y},o={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[i][1].end={...u.start},e[a][1].start={...d.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Ar(h,[["enter",e[i][1],n],["exit",e[i][1],n]])),h=Ar(h,[["enter",l,n],["enter",u,n],["exit",u,n],["enter",o,n]]),h=Ar(h,xc(n.parser.constructs.insideSpan.null,e.slice(i+1,a),n)),h=Ar(h,[["exit",o,n],["enter",d,n],["exit",d,n],["exit",l,n]]),e[a][1].end.offset-e[a][1].start.offset?(g=2,h=Ar(h,[["enter",e[a][1],n],["exit",e[a][1],n]])):g=0,cr(e,i-1,a-i+3,h),a=i+h.length-g-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function S_(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,l=vs(i);let o;return u;function u(f){return o=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===o)return e.consume(f),d;const h=e.exit("attentionSequence"),g=vs(f),p=!g||g===2&&l||a.includes(f),y=!l||l===2&&g||a.includes(i);return h._open=!!(o===42?p:p&&(l||!y)),h._close=!!(o===42?y:y&&(g||!p)),n(f)}}function G9(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const N_={name:"autolink",tokenize:__};function __(e,n,a){let i=0;return l;function l(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(b){return Pn(b)?(e.consume(b),u):b===64?a(b):h(b)}function u(b){return b===43||b===45||b===46||jn(b)?(i=1,d(b)):h(b)}function d(b){return b===58?(e.consume(b),i=0,f):(b===43||b===45||b===46||jn(b))&&i++<32?(e.consume(b),d):(i=0,h(b))}function f(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||Z0(b)?a(b):(e.consume(b),f)}function h(b){return b===64?(e.consume(b),g):b_(b)?(e.consume(b),h):a(b)}function g(b){return jn(b)?p(b):a(b)}function p(b){return b===46?(e.consume(b),i=0,g):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):y(b)}function y(b){if((b===45||jn(b))&&i++<63){const C=b===45?y:p;return e.consume(b),C}return a(b)}}const io={partial:!0,tokenize:M_};function M_(e,n,a){return i;function i(o){return ct(o)?gt(e,l,"linePrefix")(o):l(o)}function l(o){return o===null||Ue(o)?n(o):a(o)}}const pE={continuation:{tokenize:T_},exit:R_,name:"blockQuote",tokenize:j_};function j_(e,n,a){const i=this;return l;function l(u){if(u===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return a(u)}function o(u){return ct(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}function T_(e,n,a){const i=this;return l;function l(u){return ct(u)?gt(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(pE,n,a)(u)}}function R_(e){e.exit("blockQuote")}const mE={name:"characterEscape",tokenize:O_};function O_(e,n,a){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),l}function l(o){return v_(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(o)}}const gE={name:"characterReference",tokenize:z_};function z_(e,n,a){const i=this;let l=0,o,u;return d;function d(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),f}function f(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,u=jn,g(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=C_,g):(e.enter("characterReferenceValue"),o=7,u=Bd,g(p))}function g(p){if(p===59&&l){const y=e.exit("characterReferenceValue");return u===jn&&!Bf(i.sliceSerialize(y))?a(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return u(p)&&l++<o?(e.consume(p),g):a(p)}}const V9={partial:!0,tokenize:P_},Q9={concrete:!0,name:"codeFenced",tokenize:L_};function L_(e,n,a){const i=this,l={partial:!0,tokenize:T};let o=0,u=0,d;return f;function f(F){return h(F)}function h(F){const R=i.events[i.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,d=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(F)}function g(F){return F===d?(u++,e.consume(F),g):u<3?a(F):(e.exit("codeFencedFenceSequence"),ct(F)?gt(e,p,"whitespace")(F):p(F))}function p(F){return F===null||Ue(F)?(e.exit("codeFencedFence"),i.interrupt?n(F):e.check(V9,v,_)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(F))}function y(F){return F===null||Ue(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(F)):ct(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),gt(e,b,"whitespace")(F)):F===96&&F===d?a(F):(e.consume(F),y)}function b(F){return F===null||Ue(F)?p(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(F))}function C(F){return F===null||Ue(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(F)):F===96&&F===d?a(F):(e.consume(F),C)}function v(F){return e.attempt(l,_,k)(F)}function k(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),B}function B(F){return o>0&&ct(F)?gt(e,j,"linePrefix",o+1)(F):j(F)}function j(F){return F===null||Ue(F)?e.check(V9,v,_)(F):(e.enter("codeFlowValue"),S(F))}function S(F){return F===null||Ue(F)?(e.exit("codeFlowValue"),j(F)):(e.consume(F),S)}function _(F){return e.exit("codeFenced"),n(F)}function T(F,R,L){let I=0;return O;function O(Y){return F.enter("lineEnding"),F.consume(Y),F.exit("lineEnding"),$}function $(Y){return F.enter("codeFencedFence"),ct(Y)?gt(F,V,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):V(Y)}function V(Y){return Y===d?(F.enter("codeFencedFenceSequence"),oe(Y)):L(Y)}function oe(Y){return Y===d?(I++,F.consume(Y),oe):I>=u?(F.exit("codeFencedFenceSequence"),ct(Y)?gt(F,te,"whitespace")(Y):te(Y)):L(Y)}function te(Y){return Y===null||Ue(Y)?(F.exit("codeFencedFence"),R(Y)):L(Y)}}}function P_(e,n,a){const i=this;return l;function l(u){return u===null?a(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?a(u):n(u)}}const Tx={name:"codeIndented",tokenize:U_},I_={partial:!0,tokenize:H_};function U_(e,n,a){const i=this;return l;function l(h){return e.enter("codeIndented"),gt(e,o,"linePrefix",5)(h)}function o(h){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?u(h):a(h)}function u(h){return h===null?f(h):Ue(h)?e.attempt(I_,u,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ue(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),n(h)}}function H_(e,n,a){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?a(u):Ue(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):gt(e,o,"linePrefix",5)(u)}function o(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):Ue(u)?l(u):a(u)}}const $_={name:"codeText",previous:G_,resolve:q_,tokenize:V_};function q_(e){let n=e.length-4,a=3,i,l;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=a;++i<n;)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}}for(i=a-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function G_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function V_(e,n,a){let i=0,l,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),d(p)}function d(p){return p===96?(e.consume(p),i++,d):(e.exit("codeTextSequence"),f(p))}function f(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),f):p===96?(o=e.enter("codeTextSequence"),l=0,g(p)):Ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Ue(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),h)}function g(p){return p===96?(e.consume(p),l++,g):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(o.type="codeTextData",h(p))}}class Q_{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,a,i){const l=a||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&Sl(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Sl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Sl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);Sl(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Sl(this.left,a.reverse())}}}function Sl(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function EE(e){const n={};let a=-1,i,l,o,u,d,f,h;const g=new Q_(e);for(;++a<g.length;){for(;a in n;)a=n[a];if(i=g.get(a),a&&i[1].type==="chunkFlow"&&g.get(a-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,Y_(g,a)),a=n[a],h=!0);else if(i[1]._container){for(o=a,l=void 0;o--;)if(u=g.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(g.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(i[1].end={...g.get(l)[1].start},d=g.slice(l,a),d.unshift(i),g.splice(l,a-l+1,d))}}return cr(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function Y_(e,n){const a=e.get(n)[1],i=e.get(n)[2];let l=n-1;const o=[];let u=a._tokenizer;u||(u=i.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],h={};let g,p,y=-1,b=a,C=0,v=0;const k=[v];for(;b;){for(;e.get(++l)[1]!==b;);o.push(l),b._tokenizer||(g=i.sliceStream(b),b.next||g.push(null),p&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(g),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=b,b=b.next}for(b=a;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(v=y+1,k.push(v),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):k.pop(),y=k.length;y--;){const B=d.slice(k[y],k[y+1]),j=o.pop();f.push([j,j+B.length-1]),e.splice(j,2,B)}for(f.reverse(),y=-1;++y<f.length;)h[C+f[y][0]]=C+f[y][1],C+=f[y][1]-f[y][0]-1;return h}const K_={resolve:Z_,tokenize:W_},X_={partial:!0,tokenize:J_};function Z_(e){return EE(e),e}function W_(e,n){let a;return i;function i(d){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?o(d):Ue(d)?e.check(X_,u,o)(d):(e.consume(d),l)}function o(d){return e.exit("chunkContent"),e.exit("content"),n(d)}function u(d){return e.consume(d),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,l}}function J_(e,n,a){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),gt(e,o,"linePrefix")}function o(u){if(u===null||Ue(u))return a(u);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):e.interrupt(i.parser.constructs.flow,a,n)(u)}}function yE(e,n,a,i,l,o,u,d,f){const h=f||Number.POSITIVE_INFINITY;let g=0;return p;function p(B){return B===60?(e.enter(i),e.enter(l),e.enter(o),e.consume(B),e.exit(o),y):B===null||B===32||B===41||Z0(B)?a(B):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),v(B))}function y(B){return B===62?(e.enter(o),e.consume(B),e.exit(o),e.exit(l),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),b(B))}function b(B){return B===62?(e.exit("chunkString"),e.exit(d),y(B)):B===null||B===60||Ue(B)?a(B):(e.consume(B),B===92?C:b)}function C(B){return B===60||B===62||B===92?(e.consume(B),b):b(B)}function v(B){return!g&&(B===null||B===41||zt(B))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),n(B)):g<h&&B===40?(e.consume(B),g++,v):B===41?(e.consume(B),g--,v):B===null||B===32||B===40||Z0(B)?a(B):(e.consume(B),B===92?k:v)}function k(B){return B===40||B===41||B===92?(e.consume(B),v):v(B)}}function bE(e,n,a,i,l,o){const u=this;let d=0,f;return h;function h(b){return e.enter(i),e.enter(l),e.consume(b),e.exit(l),e.enter(o),g}function g(b){return d>999||b===null||b===91||b===93&&!f||b===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?a(b):b===93?(e.exit(o),e.enter(l),e.consume(b),e.exit(l),e.exit(i),n):Ue(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||b===91||b===93||Ue(b)||d++>999?(e.exit("chunkString"),g(b)):(e.consume(b),f||(f=!ct(b)),b===92?y:p)}function y(b){return b===91||b===92||b===93?(e.consume(b),d++,p):p(b)}}function CE(e,n,a,i,l,o){let u;return d;function d(y){return y===34||y===39||y===40?(e.enter(i),e.enter(l),e.consume(y),e.exit(l),u=y===40?41:y,f):a(y)}function f(y){return y===u?(e.enter(l),e.consume(y),e.exit(l),e.exit(i),n):(e.enter(o),h(y))}function h(y){return y===u?(e.exit(o),f(u)):y===null?a(y):Ue(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),gt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===u||y===null||Ue(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:g)}function p(y){return y===u||y===92?(e.consume(y),g):g(y)}}function zl(e,n){let a;return i;function i(l){return Ue(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a=!0,i):ct(l)?gt(e,i,a?"linePrefix":"lineSuffix")(l):n(l)}}const eM={name:"definition",tokenize:nM},tM={partial:!0,tokenize:rM};function nM(e,n,a){const i=this;let l;return o;function o(b){return e.enter("definition"),u(b)}function u(b){return bE.call(i,e,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return l=Tr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),f):a(b)}function f(b){return zt(b)?zl(e,h)(b):h(b)}function h(b){return yE(e,g,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return e.attempt(tM,p,p)(b)}function p(b){return ct(b)?gt(e,y,"whitespace")(b):y(b)}function y(b){return b===null||Ue(b)?(e.exit("definition"),i.parser.defined.push(l),n(b)):a(b)}}function rM(e,n,a){return i;function i(d){return zt(d)?zl(e,l)(d):a(d)}function l(d){return CE(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return ct(d)?gt(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Ue(d)?n(d):a(d)}}const aM={name:"hardBreakEscape",tokenize:iM};function iM(e,n,a){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),l}function l(o){return Ue(o)?(e.exit("hardBreakEscape"),n(o)):a(o)}}const sM={name:"headingAtx",resolve:lM,tokenize:oM};function lM(e,n){let a=e.length-2,i=3,l,o;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},o={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},cr(e,i,a-i+1,[["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n]])),e}function oM(e,n,a){let i=0;return l;function l(g){return e.enter("atxHeading"),o(g)}function o(g){return e.enter("atxHeadingSequence"),u(g)}function u(g){return g===35&&i++<6?(e.consume(g),u):g===null||zt(g)?(e.exit("atxHeadingSequence"),d(g)):a(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),f(g)):g===null||Ue(g)?(e.exit("atxHeading"),n(g)):ct(g)?gt(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function f(g){return g===35?(e.consume(g),f):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||zt(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const cM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Y9=["pre","script","style","textarea"],uM={concrete:!0,name:"htmlFlow",resolveTo:fM,tokenize:hM},xM={partial:!0,tokenize:mM},dM={partial:!0,tokenize:pM};function fM(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function hM(e,n,a){const i=this;let l,o,u,d,f;return h;function h(w){return g(w)}function g(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),p}function p(w){return w===33?(e.consume(w),y):w===47?(e.consume(w),o=!0,v):w===63?(e.consume(w),l=3,i.interrupt?n:M):Pn(w)?(e.consume(w),u=String.fromCharCode(w),k):a(w)}function y(w){return w===45?(e.consume(w),l=2,b):w===91?(e.consume(w),l=5,d=0,C):Pn(w)?(e.consume(w),l=4,i.interrupt?n:M):a(w)}function b(w){return w===45?(e.consume(w),i.interrupt?n:M):a(w)}function C(w){const W="CDATA[";return w===W.charCodeAt(d++)?(e.consume(w),d===W.length?i.interrupt?n:V:C):a(w)}function v(w){return Pn(w)?(e.consume(w),u=String.fromCharCode(w),k):a(w)}function k(w){if(w===null||w===47||w===62||zt(w)){const W=w===47,he=u.toLowerCase();return!W&&!o&&Y9.includes(he)?(l=1,i.interrupt?n(w):V(w)):cM.includes(u.toLowerCase())?(l=6,W?(e.consume(w),B):i.interrupt?n(w):V(w)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(w):o?j(w):S(w))}return w===45||jn(w)?(e.consume(w),u+=String.fromCharCode(w),k):a(w)}function B(w){return w===62?(e.consume(w),i.interrupt?n:V):a(w)}function j(w){return ct(w)?(e.consume(w),j):O(w)}function S(w){return w===47?(e.consume(w),O):w===58||w===95||Pn(w)?(e.consume(w),_):ct(w)?(e.consume(w),S):O(w)}function _(w){return w===45||w===46||w===58||w===95||jn(w)?(e.consume(w),_):T(w)}function T(w){return w===61?(e.consume(w),F):ct(w)?(e.consume(w),T):S(w)}function F(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),f=w,R):ct(w)?(e.consume(w),F):L(w)}function R(w){return w===f?(e.consume(w),f=null,I):w===null||Ue(w)?a(w):(e.consume(w),R)}function L(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||zt(w)?T(w):(e.consume(w),L)}function I(w){return w===47||w===62||ct(w)?S(w):a(w)}function O(w){return w===62?(e.consume(w),$):a(w)}function $(w){return w===null||Ue(w)?V(w):ct(w)?(e.consume(w),$):a(w)}function V(w){return w===45&&l===2?(e.consume(w),P):w===60&&l===1?(e.consume(w),Q):w===62&&l===4?(e.consume(w),z):w===63&&l===3?(e.consume(w),M):w===93&&l===5?(e.consume(w),de):Ue(w)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(xM,X,oe)(w)):w===null||Ue(w)?(e.exit("htmlFlowData"),oe(w)):(e.consume(w),V)}function oe(w){return e.check(dM,te,X)(w)}function te(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),Y}function Y(w){return w===null||Ue(w)?oe(w):(e.enter("htmlFlowData"),V(w))}function P(w){return w===45?(e.consume(w),M):V(w)}function Q(w){return w===47?(e.consume(w),u="",Z):V(w)}function Z(w){if(w===62){const W=u.toLowerCase();return Y9.includes(W)?(e.consume(w),z):V(w)}return Pn(w)&&u.length<8?(e.consume(w),u+=String.fromCharCode(w),Z):V(w)}function de(w){return w===93?(e.consume(w),M):V(w)}function M(w){return w===62?(e.consume(w),z):w===45&&l===2?(e.consume(w),M):V(w)}function z(w){return w===null||Ue(w)?(e.exit("htmlFlowData"),X(w)):(e.consume(w),z)}function X(w){return e.exit("htmlFlow"),n(w)}}function pM(e,n,a){const i=this;return l;function l(u){return Ue(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):a(u)}function o(u){return i.parser.lazy[i.now().line]?a(u):n(u)}}function mM(e,n,a){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(io,n,a)}}const gM={name:"htmlText",tokenize:EM};function EM(e,n,a){const i=this;let l,o,u;return d;function d(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),f}function f(M){return M===33?(e.consume(M),h):M===47?(e.consume(M),T):M===63?(e.consume(M),S):Pn(M)?(e.consume(M),L):a(M)}function h(M){return M===45?(e.consume(M),g):M===91?(e.consume(M),o=0,C):Pn(M)?(e.consume(M),j):a(M)}function g(M){return M===45?(e.consume(M),b):a(M)}function p(M){return M===null?a(M):M===45?(e.consume(M),y):Ue(M)?(u=p,Q(M)):(e.consume(M),p)}function y(M){return M===45?(e.consume(M),b):p(M)}function b(M){return M===62?P(M):M===45?y(M):p(M)}function C(M){const z="CDATA[";return M===z.charCodeAt(o++)?(e.consume(M),o===z.length?v:C):a(M)}function v(M){return M===null?a(M):M===93?(e.consume(M),k):Ue(M)?(u=v,Q(M)):(e.consume(M),v)}function k(M){return M===93?(e.consume(M),B):v(M)}function B(M){return M===62?P(M):M===93?(e.consume(M),B):v(M)}function j(M){return M===null||M===62?P(M):Ue(M)?(u=j,Q(M)):(e.consume(M),j)}function S(M){return M===null?a(M):M===63?(e.consume(M),_):Ue(M)?(u=S,Q(M)):(e.consume(M),S)}function _(M){return M===62?P(M):S(M)}function T(M){return Pn(M)?(e.consume(M),F):a(M)}function F(M){return M===45||jn(M)?(e.consume(M),F):R(M)}function R(M){return Ue(M)?(u=R,Q(M)):ct(M)?(e.consume(M),R):P(M)}function L(M){return M===45||jn(M)?(e.consume(M),L):M===47||M===62||zt(M)?I(M):a(M)}function I(M){return M===47?(e.consume(M),P):M===58||M===95||Pn(M)?(e.consume(M),O):Ue(M)?(u=I,Q(M)):ct(M)?(e.consume(M),I):P(M)}function O(M){return M===45||M===46||M===58||M===95||jn(M)?(e.consume(M),O):$(M)}function $(M){return M===61?(e.consume(M),V):Ue(M)?(u=$,Q(M)):ct(M)?(e.consume(M),$):I(M)}function V(M){return M===null||M===60||M===61||M===62||M===96?a(M):M===34||M===39?(e.consume(M),l=M,oe):Ue(M)?(u=V,Q(M)):ct(M)?(e.consume(M),V):(e.consume(M),te)}function oe(M){return M===l?(e.consume(M),l=void 0,Y):M===null?a(M):Ue(M)?(u=oe,Q(M)):(e.consume(M),oe)}function te(M){return M===null||M===34||M===39||M===60||M===61||M===96?a(M):M===47||M===62||zt(M)?I(M):(e.consume(M),te)}function Y(M){return M===47||M===62||zt(M)?I(M):a(M)}function P(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),n):a(M)}function Q(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Z}function Z(M){return ct(M)?gt(e,de,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):de(M)}function de(M){return e.enter("htmlTextData"),u(M)}}const Df={name:"labelEnd",resolveAll:vM,resolveTo:AM,tokenize:kM},yM={tokenize:BM},bM={tokenize:DM},CM={tokenize:wM};function vM(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==a.length&&cr(e,0,e.length,a),e}function AM(e,n){let a=e.length,i=0,l,o,u,d;for(;a--;)if(l=e[a][1],o){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[a][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[a][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(o=a,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(u=a);const f={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},g={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,n],["enter",h,n]],d=Ar(d,e.slice(o+1,o+i+3)),d=Ar(d,[["enter",g,n]]),d=Ar(d,xc(n.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),n)),d=Ar(d,[["exit",g,n],e[u-2],e[u-1],["exit",h,n]]),d=Ar(d,e.slice(u+1)),d=Ar(d,[["exit",f,n]]),cr(e,o,e.length,d),e}function kM(e,n,a){const i=this;let l=i.events.length,o,u;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){o=i.events[l][1];break}return d;function d(y){return o?o._inactive?p(y):(u=i.parser.defined.includes(Tr(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):a(y)}function f(y){return y===40?e.attempt(yM,g,u?g:p)(y):y===91?e.attempt(bM,g,u?h:p)(y):u?g(y):p(y)}function h(y){return e.attempt(CM,g,p)(y)}function g(y){return n(y)}function p(y){return o._balanced=!0,a(y)}}function BM(e,n,a){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),l}function l(p){return zt(p)?zl(e,o)(p):o(p)}function o(p){return p===41?g(p):yE(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return zt(p)?zl(e,f)(p):g(p)}function d(p){return a(p)}function f(p){return p===34||p===39||p===40?CE(e,h,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):g(p)}function h(p){return zt(p)?zl(e,g)(p):g(p)}function g(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):a(p)}}function DM(e,n,a){const i=this;return l;function l(d){return bE.call(i,e,o,u,"reference","referenceMarker","referenceString")(d)}function o(d){return i.parser.defined.includes(Tr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(d):a(d)}function u(d){return a(d)}}function wM(e,n,a){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),l}function l(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):a(o)}}const FM={name:"labelStartImage",resolveAll:Df.resolveAll,tokenize:SM};function SM(e,n,a){const i=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),o}function o(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):a(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(d):n(d)}}const NM={name:"labelStartLink",resolveAll:Df.resolveAll,tokenize:_M};function _M(e,n,a){const i=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(u):n(u)}}const Rx={name:"lineEnding",tokenize:MM};function MM(e,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),gt(e,n,"linePrefix")}}const q0={name:"thematicBreak",tokenize:jM};function jM(e,n,a){let i=0,l;return o;function o(h){return e.enter("thematicBreak"),u(h)}function u(h){return l=h,d(h)}function d(h){return h===l?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Ue(h))?(e.exit("thematicBreak"),n(h)):a(h)}function f(h){return h===l?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),ct(h)?gt(e,d,"whitespace")(h):d(h))}}const Yn={continuation:{tokenize:zM},exit:PM,name:"list",tokenize:OM},TM={partial:!0,tokenize:IM},RM={partial:!0,tokenize:LM};function OM(e,n,a){const i=this,l=i.events[i.events.length-1];let o=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(b){const C=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:Bd(b)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(q0,a,h)(b):h(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(b)}return a(b)}function f(b){return Bd(b)&&++u<10?(e.consume(b),f):(!i.interrupt||u<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):a(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(io,i.interrupt?a:g,e.attempt(TM,y,p))}function g(b){return i.containerState.initialBlankLine=!0,o++,y(b)}function p(b){return ct(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):a(b)}function y(b){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function zM(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(io,l,o);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,gt(e,n,"listItemIndent",i.containerState.size+1)(d)}function o(d){return i.containerState.furtherBlankLines||!ct(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(RM,n,u)(d))}function u(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,gt(e,e.attempt(Yn,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function LM(e,n,a){const i=this;return gt(e,l,"listItemIndent",i.containerState.size+1);function l(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?n(o):a(o)}}function PM(e){e.exit(this.containerState.type)}function IM(e,n,a){const i=this;return gt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(o){const u=i.events[i.events.length-1];return!ct(o)&&u&&u[1].type==="listItemPrefixWhitespace"?n(o):a(o)}}const K9={name:"setextUnderline",resolveTo:UM,tokenize:HM};function UM(e,n){let a=e.length,i,l,o;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(l=a)}else e[a][1].type==="content"&&e.splice(a,1),!o&&e[a][1].type==="definition"&&(o=a);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",o?(e.splice(l,0,["enter",u,n]),e.splice(o+1,0,["exit",e[i][1],n]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,n]),e}function HM(e,n,a){const i=this;let l;return o;function o(h){let g=i.events.length,p;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){p=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),l=h,u(h)):a(h)}function u(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===l?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),ct(h)?gt(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ue(h)?(e.exit("setextHeadingLine"),n(h)):a(h)}}const $M={tokenize:qM};function qM(e){const n=this,a=e.attempt(io,i,e.attempt(this.parser.constructs.flowInitial,l,gt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(K_,l)),"linePrefix")));return a;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a}function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,a}}const GM={resolveAll:AE()},VM=vE("string"),QM=vE("text");function vE(e){return{resolveAll:AE(e==="text"?YM:void 0),tokenize:n};function n(a){const i=this,l=this.parser.constructs[e],o=a.attempt(l,u,d);return u;function u(g){return h(g)?o(g):d(g)}function d(g){if(g===null){a.consume(g);return}return a.enter("data"),a.consume(g),f}function f(g){return h(g)?(a.exit("data"),o(g)):(a.consume(g),f)}function h(g){if(g===null)return!0;const p=l[g];let y=-1;if(p)for(;++y<p.length;){const b=p[y];if(!b.previous||b.previous.call(i,i.previous))return!0}return!1}}}function AE(e){return n;function n(a,i){let l=-1,o;for(;++l<=a.length;)o===void 0?a[l]&&a[l][1].type==="data"&&(o=l,l++):(!a[l]||a[l][1].type!=="data")&&(l!==o+2&&(a[o][1].end=a[l-1][1].end,a.splice(o+2,l-o-2),l=o+2),o=void 0);return e?e(a,i):a}}function YM(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],l=n.sliceStream(i);let o=l.length,u=-1,d=0,f;for(;o--;){const h=l[o];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(h===-2)f=!0,d++;else if(h!==-1){o++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(d=0),d){const h={type:a===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:i.start._bufferIndex+u,_index:i.start._index+o,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(a,0,["enter",h,n],["exit",h,n]),a+=2)}a++}return e}const KM={42:Yn,43:Yn,45:Yn,48:Yn,49:Yn,50:Yn,51:Yn,52:Yn,53:Yn,54:Yn,55:Yn,56:Yn,57:Yn,62:pE},XM={91:eM},ZM={[-2]:Tx,[-1]:Tx,32:Tx},WM={35:sM,42:q0,45:[K9,q0],60:uM,61:K9,95:q0,96:Q9,126:Q9},JM={38:gE,92:mE},ej={[-5]:Rx,[-4]:Rx,[-3]:Rx,33:FM,38:gE,42:Dd,60:[N_,gM],91:NM,92:[aM,mE],93:Df,95:Dd,96:$_},tj={null:[Dd,GM]},nj={null:[42,95]},rj={null:[]},aj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:nj,contentInitial:XM,disable:rj,document:KM,flow:WM,flowInitial:ZM,insideSpan:tj,string:JM,text:ej},Symbol.toStringTag,{value:"Module"}));function ij(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const l={},o=[];let u=[],d=[];const f={attempt:R(T),check:R(F),consume:j,enter:S,exit:_,interrupt:R(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:C,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:p};let g=n.tokenize.call(h,f);return n.resolveAll&&o.push(n),h;function p($){return u=Ar(u,$),k(),u[u.length-1]!==null?[]:(L(n,0),h.events=xc(o,h.events,h),h.events)}function y($,V){return lj(b($),V)}function b($){return sj(u,$)}function C(){const{_bufferIndex:$,_index:V,line:oe,column:te,offset:Y}=i;return{_bufferIndex:$,_index:V,line:oe,column:te,offset:Y}}function v($){l[$.line]=$.column,O()}function k(){let $;for(;i._index<u.length;){const V=u[i._index];if(typeof V=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<V.length;)B(V.charCodeAt(i._bufferIndex));else B(V)}}function B($){g=g($)}function j($){Ue($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,O()):$!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=$}function S($,V){const oe=V||{};return oe.type=$,oe.start=C(),h.events.push(["enter",oe,h]),d.push(oe),oe}function _($){const V=d.pop();return V.end=C(),h.events.push(["exit",V,h]),V}function T($,V){L($,V.from)}function F($,V){V.restore()}function R($,V){return oe;function oe(te,Y,P){let Q,Z,de,M;return Array.isArray(te)?X(te):"tokenize"in te?X([te]):z(te);function z(re){return De;function De(Ge){const we=Ge!==null&&re[Ge],st=Ge!==null&&re.null,ut=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(st)?st:st?[st]:[]];return X(ut)(Ge)}}function X(re){return Q=re,Z=0,re.length===0?P:w(re[Z])}function w(re){return De;function De(Ge){return M=I(),de=re,re.partial||(h.currentConstruct=re),re.name&&h.parser.constructs.disable.null.includes(re.name)?he():re.tokenize.call(V?Object.assign(Object.create(h),V):h,f,W,he)(Ge)}}function W(re){return $(de,M),Y}function he(re){return M.restore(),++Z<Q.length?w(Q[Z]):P}}}function L($,V){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&cr(h.events,V,h.events.length-V,$.resolve(h.events.slice(V),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function I(){const $=C(),V=h.previous,oe=h.currentConstruct,te=h.events.length,Y=Array.from(d);return{from:te,restore:P};function P(){i=$,h.previous=V,h.currentConstruct=oe,h.events.length=te,d=Y,O()}}function O(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function sj(e,n){const a=n.start._index,i=n.start._bufferIndex,l=n.end._index,o=n.end._bufferIndex;let u;if(a===l)u=[e[a].slice(i,o)];else{if(u=e.slice(a,l),i>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(i):u.shift()}o>0&&u.push(e[l].slice(0,o))}return u}function lj(e,n){let a=-1;const i=[];let l;for(;++a<e.length;){const o=e[a];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
19
+ `;break}case-3:{u=`\r
20
+ `;break}case-2:{u=n?" ":" ";break}case-1:{if(!n&&l)continue;u=" ";break}default:u=String.fromCharCode(o)}l=o===-2,i.push(u)}return i.join("")}function oj(e){const i={constructs:fE([aj,...(e||{}).extensions||[]]),content:l(A_),defined:[],document:l(B_),flow:l($M),lazy:{},string:l(VM),text:l(QM)};return i;function l(o){return u;function u(d){return ij(i,o,d)}}}function cj(e){for(;!EE(e););return e}const X9=/[\0\t\n\r]/g;function uj(){let e=1,n="",a=!0,i;return l;function l(o,u,d){const f=[];let h,g,p,y,b;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,n="",a&&(o.charCodeAt(0)===65279&&p++,a=void 0);p<o.length;){if(X9.lastIndex=p,h=X9.exec(o),y=h&&h.index!==void 0?h.index:o.length,b=o.charCodeAt(y),!h){n=o.slice(p);break}if(b===10&&p===y&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),p<y&&(f.push(o.slice(p,y)),e+=y-p),b){case 0:{f.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,f.push(-2);e++<g;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}p=y+1}return d&&(i&&f.push(-5),n&&f.push(n),f.push(null)),f}}const xj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dj(e){return e.replace(xj,fj)}function fj(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const l=a.charCodeAt(1),o=l===120||l===88;return hE(a.slice(o?2:1),o?16:10)}return Bf(a)||e}const kE={}.hasOwnProperty;function hj(e,n,a){return n&&typeof n=="object"&&(a=n,n=void 0),pj(a)(cj(oj(a).document().write(uj()(e,n,!0))))}function pj(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ht),autolinkProtocol:I,autolinkEmail:I,atxHeading:o(Ae),blockQuote:o(st),characterEscape:I,characterReference:I,codeFenced:o(ut),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(ut,u),codeText:o(Lt,u),codeTextData:I,data:I,codeFlowValue:I,definition:o(Ct),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(Ce),hardBreakEscape:o(Oe),hardBreakTrailing:o(Oe),htmlFlow:o(Ye,u),htmlFlowData:I,htmlText:o(Ye,u),htmlTextData:I,image:o(kt),label:u,link:o(ht),listItem:o(vt),listItemValue:y,listOrdered:o(Zt,p),listUnordered:o(Zt),paragraph:o(ln),reference:w,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(Ae),strong:o(On),thematicBreak:o(Cn)},exit:{atxHeading:f(),atxHeadingSequence:T,autolink:f(),autolinkEmail:we,autolinkProtocol:Ge,blockQuote:f(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:re,characterReference:De,codeFenced:f(k),codeFencedFence:v,codeFencedFenceInfo:b,codeFencedFenceMeta:C,codeFlowValue:O,codeIndented:f(B),codeText:f(Y),codeTextData:O,data:O,definition:f(),definitionDestinationString:_,definitionLabelString:j,definitionTitleString:S,emphasis:f(),hardBreakEscape:f(V),hardBreakTrailing:f(V),htmlFlow:f(oe),htmlFlowData:O,htmlText:f(te),htmlTextData:O,image:f(Q),label:de,labelText:Z,lineEnding:$,link:f(P),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:W,resourceDestinationString:M,resourceTitleString:z,resource:X,setextHeading:f(L),setextHeadingLineSequence:R,setextHeadingText:F,strong:f(),thematicBreak:f()}};BE(n,(e||{}).mdastExtensions||[]);const a={};return i;function i(le){let Ee={type:"root",children:[]};const _e={stack:[Ee],tokenStack:[],config:n,enter:d,exit:h,buffer:u,resume:g,data:a},Ke=[];let nt=-1;for(;++nt<le.length;)if(le[nt][1].type==="listOrdered"||le[nt][1].type==="listUnordered")if(le[nt][0]==="enter")Ke.push(nt);else{const jt=Ke.pop();nt=l(le,jt,nt)}for(nt=-1;++nt<le.length;){const jt=n[le[nt][0]];kE.call(jt,le[nt][1].type)&&jt[le[nt][1].type].call(Object.assign({sliceSerialize:le[nt][2].sliceSerialize},_e),le[nt][1])}if(_e.tokenStack.length>0){const jt=_e.tokenStack[_e.tokenStack.length-1];(jt[1]||Z9).call(_e,void 0,jt[0])}for(Ee.position={start:Ka(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:Ka(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<n.transforms.length;)Ee=n.transforms[nt](Ee)||Ee;return Ee}function l(le,Ee,_e){let Ke=Ee-1,nt=-1,jt=!1,Wt,Vt,Bt,Ut;for(;++Ke<=_e;){const ie=le[Ke];switch(ie[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ie[0]==="enter"?nt++:nt--,Ut=void 0;break}case"lineEndingBlank":{ie[0]==="enter"&&(Wt&&!Ut&&!nt&&!Bt&&(Bt=Ke),Ut=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ut=void 0}if(!nt&&ie[0]==="enter"&&ie[1].type==="listItemPrefix"||nt===-1&&ie[0]==="exit"&&(ie[1].type==="listUnordered"||ie[1].type==="listOrdered")){if(Wt){let pt=Ke;for(Vt=void 0;pt--;){const me=le[pt];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;Vt&&(le[Vt][1].type="lineEndingBlank",jt=!0),me[1].type="lineEnding",Vt=pt}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Bt&&(!Vt||Bt<Vt)&&(Wt._spread=!0),Wt.end=Object.assign({},Vt?le[Vt][1].start:ie[1].end),le.splice(Vt||Ke,0,["exit",Wt,ie[2]]),Ke++,_e++}if(ie[1].type==="listItemPrefix"){const pt={type:"listItem",_spread:!1,start:Object.assign({},ie[1].start),end:void 0};Wt=pt,le.splice(Ke,0,["enter",pt,ie[2]]),Ke++,_e++,Bt=void 0,Ut=!0}}}return le[Ee][1]._spread=jt,_e}function o(le,Ee){return _e;function _e(Ke){d.call(this,le(Ke),Ke),Ee&&Ee.call(this,Ke)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(le,Ee,_e){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([Ee,_e||void 0]),le.position={start:Ka(Ee.start),end:void 0}}function f(le){return Ee;function Ee(_e){le&&le.call(this,_e),h.call(this,_e)}}function h(le,Ee){const _e=this.stack.pop(),Ke=this.tokenStack.pop();if(Ke)Ke[0].type!==le.type&&(Ee?Ee.call(this,le,Ke[0]):(Ke[1]||Z9).call(this,le,Ke[0]));else throw new Error("Cannot close `"+le.type+"` ("+Ol({start:le.start,end:le.end})+"): it’s not open");_e.position.end=Ka(le.end)}function g(){return kf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(le){if(this.data.expectingFirstListItemValue){const Ee=this.stack[this.stack.length-2];Ee.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function b(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.lang=le}function C(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.meta=le}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function B(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=le.replace(/(\r?\n|\r)$/g,"")}function j(le){const Ee=this.resume(),_e=this.stack[this.stack.length-1];_e.label=Ee,_e.identifier=Tr(this.sliceSerialize(le)).toLowerCase()}function S(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=le}function _(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=le}function T(le){const Ee=this.stack[this.stack.length-1];if(!Ee.depth){const _e=this.sliceSerialize(le).length;Ee.depth=_e}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function R(le){const Ee=this.stack[this.stack.length-1];Ee.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function I(le){const _e=this.stack[this.stack.length-1].children;let Ke=_e[_e.length-1];(!Ke||Ke.type!=="text")&&(Ke=We(),Ke.position={start:Ka(le.start),end:void 0},_e.push(Ke)),this.stack.push(Ke)}function O(le){const Ee=this.stack.pop();Ee.value+=this.sliceSerialize(le),Ee.position.end=Ka(le.end)}function $(le){const Ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _e=Ee.children[Ee.children.length-1];_e.position.end=Ka(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(Ee.type)&&(I.call(this,le),O.call(this,le))}function V(){this.data.atHardBreak=!0}function oe(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=le}function te(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=le}function Y(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=le}function P(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=Ee,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function Q(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=Ee,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function Z(le){const Ee=this.sliceSerialize(le),_e=this.stack[this.stack.length-2];_e.label=dj(Ee),_e.identifier=Tr(Ee).toLowerCase()}function de(){const le=this.stack[this.stack.length-1],Ee=this.resume(),_e=this.stack[this.stack.length-1];if(this.data.inReference=!0,_e.type==="link"){const Ke=le.children;_e.children=Ke}else _e.alt=Ee}function M(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=le}function z(){const le=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=le}function X(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function W(le){const Ee=this.resume(),_e=this.stack[this.stack.length-1];_e.label=Ee,_e.identifier=Tr(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function he(le){this.data.characterReferenceType=le.type}function re(le){const Ee=this.sliceSerialize(le),_e=this.data.characterReferenceType;let Ke;_e?(Ke=hE(Ee,_e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ke=Bf(Ee);const nt=this.stack[this.stack.length-1];nt.value+=Ke}function De(le){const Ee=this.stack.pop();Ee.position.end=Ka(le.end)}function Ge(le){O.call(this,le);const Ee=this.stack[this.stack.length-1];Ee.url=this.sliceSerialize(le)}function we(le){O.call(this,le);const Ee=this.stack[this.stack.length-1];Ee.url="mailto:"+this.sliceSerialize(le)}function st(){return{type:"blockquote",children:[]}}function ut(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function Ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function Ae(){return{type:"heading",depth:0,children:[]}}function Oe(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function kt(){return{type:"image",title:null,url:"",alt:null}}function ht(){return{type:"link",title:null,url:"",children:[]}}function Zt(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function vt(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function ln(){return{type:"paragraph",children:[]}}function On(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function Cn(){return{type:"thematicBreak"}}}function Ka(e){return{line:e.line,column:e.column,offset:e.offset}}function BE(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?BE(e,i):mj(e,i)}}function mj(e,n){let a;for(a in n)if(kE.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function Z9(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ol({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ol({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ol({start:n.start,end:n.end})+") is still open")}function gj(e){const n=this;n.parser=a;function a(i){return hj(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ej(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)}function yj(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
21
+ `}]}function bj(e,n){const a=n.value?n.value+`
22
+ `:"",i={},l=n.lang?n.lang.split(/\s+/):[];l.length>0&&(i.className=["language-"+l[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Cj(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function vj(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Aj(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),l=Fs(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,d+=1,e.footnoteCounts.set(i,d);const f={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+l,id:a+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,h),e.applyData(n,h)}function kj(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Bj(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}}function DE(e,n){const a=n.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const l=e.all(n),o=l[0];o&&o.type==="text"?o.value="["+o.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=i:l.push({type:"text",value:i}),l}function Dj(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return DE(e,n);const l={src:Fs(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,o),e.applyData(n,o)}function wj(e,n){const a={src:Fs(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,i),e.applyData(n,i)}function Fj(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,i),e.applyData(n,i)}function Sj(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return DE(e,n);const l={href:Fs(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Nj(e,n){const a={href:Fs(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function _j(e,n,a){const i=e.all(n),l=a?Mj(a):wE(n),o={},u=[];if(typeof n.checked=="boolean"){const g=i[0];let p;g&&g.type==="element"&&g.tagName==="p"?p=g:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const g=i[d];(l||d!==0||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:`
23
+ `}),g.type==="element"&&g.tagName==="p"&&!l?u.push(...g.children):u.push(g)}const f=i[i.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
24
+ `});const h={type:"element",tagName:"li",properties:o,children:u};return e.patch(n,h),e.applyData(n,h)}function Mj(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const a=e.children;let i=-1;for(;!n&&++i<a.length;)n=wE(a[i])}return n}function wE(e){const n=e.spread;return n??e.children.length>1}function jj(e,n){const a={},i=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++l<i.length;){const u=i[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Tj(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Rj(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)}function Oj(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function zj(e,n){const a=e.all(n),i=a.shift(),l=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],u),l.push(u)}if(a.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=bf(n.children[1]),f=sE(n.children[n.children.length-1]);d&&f&&(u.position={start:d,end:f}),l.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,o),e.applyData(n,o)}function Lj(e,n,a){const i=a?a.children:void 0,o=(i?i.indexOf(n):1)===0?"th":"td",u=a&&a.type==="table"?a.align:void 0,d=u?u.length:n.children.length;let f=-1;const h=[];for(;++f<d;){const p=n.children[f],y={},b=u?u[f]:void 0;b&&(y.align=b);let C={type:"element",tagName:o,properties:y,children:[]};p&&(C.children=e.all(p),e.patch(p,C),C=e.applyData(p,C)),h.push(C)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,g),e.applyData(n,g)}function Pj(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}const W9=9,J9=32;function Ij(e){const n=String(e),a=/\r?\n|\r/g;let i=a.exec(n),l=0;const o=[];for(;i;)o.push(e2(n.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=a.exec(n);return o.push(e2(n.slice(l),l>0,!1)),o.join("")}function e2(e,n,a){let i=0,l=e.length;if(n){let o=e.codePointAt(i);for(;o===W9||o===J9;)i++,o=e.codePointAt(i)}if(a){let o=e.codePointAt(l-1);for(;o===W9||o===J9;)l--,o=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function Uj(e,n){const a={type:"text",value:Ij(String(n.value))};return e.patch(n,a),e.applyData(n,a)}function Hj(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)}const $j={blockquote:Ej,break:yj,code:bj,delete:Cj,emphasis:vj,footnoteReference:Aj,heading:kj,html:Bj,imageReference:Dj,image:wj,inlineCode:Fj,linkReference:Sj,link:Nj,listItem:_j,list:jj,paragraph:Tj,root:Rj,strong:Oj,table:zj,tableCell:Pj,tableRow:Lj,text:Uj,thematicBreak:Hj,toml:M0,yaml:M0,definition:M0,footnoteDefinition:M0};function M0(){}const FE=-1,dc=0,Ll=1,W0=2,wf=3,Ff=4,Sf=5,Nf=6,SE=7,NE=8,_E=typeof self=="object"?self:globalThis,t2=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new _E[e](n)},qj=(e,n)=>{const a=(l,o)=>(e.set(o,l),l),i=l=>{if(e.has(l))return e.get(l);const[o,u]=n[l];switch(o){case dc:case FE:return a(u,l);case Ll:{const d=a([],l);for(const f of u)d.push(i(f));return d}case W0:{const d=a({},l);for(const[f,h]of u)d[i(f)]=i(h);return d}case wf:return a(new Date(u),l);case Ff:{const{source:d,flags:f}=u;return a(new RegExp(d,f),l)}case Sf:{const d=a(new Map,l);for(const[f,h]of u)d.set(i(f),i(h));return d}case Nf:{const d=a(new Set,l);for(const f of u)d.add(i(f));return d}case SE:{const{name:d,message:f}=u;return a(typeof _E[d]=="function"?t2(d,f):new Error(f),l)}case NE:return a(BigInt(u),l);case"BigInt":return a(Object(BigInt(u)),l);case"ArrayBuffer":return a(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return a(new DataView(d),u)}}return a(t2(o,u),l)};return i},n2=e=>qj(new Map,e)(0),Ai="",{toString:Gj}={},{keys:Vj}=Object,Nl=e=>{const n=typeof e;if(n!=="object"||!e)return[dc,n];const a=Gj.call(e).slice(8,-1);switch(a){case"Array":return[Ll,Ai];case"Object":return[W0,Ai];case"Date":return[wf,Ai];case"RegExp":return[Ff,Ai];case"Map":return[Sf,Ai];case"Set":return[Nf,Ai];case"DataView":return[Ll,a]}return a.includes("Array")?[Ll,a]:e instanceof Error?[SE,e.name||"Error"]:[W0,a]},j0=([e,n])=>e===dc&&(n==="function"||n==="symbol"),Qj=(e,n,a,i)=>{const l=(u,d)=>{const f=i.push(u)-1;return a.set(d,f),f},o=u=>{if(a.has(u))return a.get(u);let[d,f]=Nl(u);switch(d){case dc:{let g=u;switch(f){case"bigint":d=NE,g=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);g=null;break;case"undefined":return l([FE],u)}return l([d,g],u)}case Ll:{if(f){let y=u;return f==="DataView"?y=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(u)),l([f,[...y]],u)}const g=[],p=l([d,g],u);for(const y of u)g.push(o(y));return p}case W0:{if(f)switch(f){case"BigInt":return l([f,u.toString()],u);case"Boolean":case"Number":case"String":return l([f,u.valueOf()],u)}if(n&&"toJSON"in u)return o(u.toJSON());const g=[],p=l([d,g],u);for(const y of Vj(u))(e||!j0(Nl(u[y])))&&g.push([o(y),o(u[y])]);return p}case wf:return l([d,isNaN(u.getTime())?Ai:u.toISOString()],u);case Ff:{const{source:g,flags:p}=u;return l([d,{source:g,flags:p}],u)}case Sf:{const g=[],p=l([d,g],u);for(const[y,b]of u)(e||!(j0(Nl(y))||j0(Nl(b))))&&g.push([o(y),o(b)]);return p}case Nf:{const g=[],p=l([d,g],u);for(const y of u)(e||!j0(Nl(y)))&&g.push(o(y));return p}}const{message:h}=u;return l([d,{name:f,message:h}],u)};return o},r2=(e,{json:n,lossy:a}={})=>{const i=[];return Qj(!(n||a),!!n,new Map,i)(e),i},J0=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?n2(r2(e,n)):structuredClone(e):(e,n)=>n2(r2(e,n));function Yj(e,n){const a=[{type:"text",value:"↩"}];return n>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),a}function Kj(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Xj(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||Yj,i=e.options.footnoteBackLabel||Kj,l=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const g=e.all(h),p=String(h.identifier).toUpperCase(),y=Fs(p.toLowerCase());let b=0;const C=[],v=e.footnoteCounts.get(p);for(;v!==void 0&&++b<=v;){C.length>0&&C.push({type:"text",value:" "});let j=typeof a=="string"?a:a(f,b);typeof j=="string"&&(j={type:"text",value:j}),C.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,b),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const k=g[g.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const j=k.children[k.children.length-1];j&&j.type==="text"?j.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...C)}else g.push(...C);const B={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(g,!0)};e.patch(h,B),d.push(B)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...J0(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
25
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
26
+ `}]}}const fc=(function(e){if(e==null)return eT;if(typeof e=="function")return hc(e);if(typeof e=="object")return Array.isArray(e)?Zj(e):Wj(e);if(typeof e=="string")return Jj(e);throw new Error("Expected function, string, or object as test")});function Zj(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=fc(e[a]);return hc(i);function i(...l){let o=-1;for(;++o<n.length;)if(n[o].apply(this,l))return!0;return!1}}function Wj(e){const n=e;return hc(a);function a(i){const l=i;let o;for(o in e)if(l[o]!==n[o])return!1;return!0}}function Jj(e){return hc(n);function n(a){return a&&a.type===e}}function hc(e){return n;function n(a,i,l){return!!(tT(a)&&e.call(this,a,typeof i=="number"?i:void 0,l||void 0))}}function eT(){return!0}function tT(e){return e!==null&&typeof e=="object"&&"type"in e}const ME=[],nT=!0,wd=!1,rT="skip";function jE(e,n,a,i){let l;typeof n=="function"&&typeof a!="function"?(i=a,a=n):l=n;const o=fc(l),u=i?-1:1;d(e,void 0,[])();function d(f,h,g){const p=f&&typeof f=="object"?f:{};if(typeof p.type=="string"){const b=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(b?"<"+b+">":""))+")"})}return y;function y(){let b=ME,C,v,k;if((!n||o(f,h,g[g.length-1]||void 0))&&(b=aT(a(f,g)),b[0]===wd))return b;if("children"in f&&f.children){const B=f;if(B.children&&b[0]!==rT)for(v=(i?B.children.length:-1)+u,k=g.concat(B);v>-1&&v<B.children.length;){const j=B.children[v];if(C=d(j,v,k)(),C[0]===wd)return C;v=typeof C[1]=="number"?C[1]:v+u}}return b}}}function aT(e){return Array.isArray(e)?e:typeof e=="number"?[nT,e]:e==null?ME:[e]}function _f(e,n,a,i){let l,o,u;typeof n=="function"&&typeof a!="function"?(o=void 0,u=n,l=a):(o=n,u=a,l=i),jE(e,o,d,l);function d(f,h){const g=h[h.length-1],p=g?g.children.indexOf(f):void 0;return u(f,p,g)}}const Fd={}.hasOwnProperty,iT={};function sT(e,n){const a=n||iT,i=new Map,l=new Map,o=new Map,u={...$j,...a.handlers},d={all:h,applyData:oT,definitionById:i,footnoteById:l,footnoteCounts:o,footnoteOrder:[],handlers:u,one:f,options:a,patch:lT,wrap:uT};return _f(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const p=g.type==="definition"?i:l,y=String(g.identifier).toUpperCase();p.has(y)||p.set(y,g)}}),d;function f(g,p){const y=g.type,b=d.handlers[y];if(Fd.call(d.handlers,y)&&b)return b(d,g,p);if(d.options.passThrough&&d.options.passThrough.includes(y)){if("children"in g){const{children:v,...k}=g,B=J0(k);return B.children=d.all(g),B}return J0(g)}return(d.options.unknownHandler||cT)(d,g,p)}function h(g){const p=[];if("children"in g){const y=g.children;let b=-1;for(;++b<y.length;){const C=d.one(y[b],g);if(C){if(b&&y[b-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=a2(C.value)),!Array.isArray(C)&&C.type==="element")){const v=C.children[0];v&&v.type==="text"&&(v.value=a2(v.value))}Array.isArray(C)?p.push(...C):p.push(C)}}}return p}}function lT(e,n){e.position&&(n.position=KN(e))}function oT(e,n){let a=n;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(a.type==="element")a.tagName=i;else{const u="children"in a?a.children:[a];a={type:"element",tagName:i,properties:{},children:u}}a.type==="element"&&o&&Object.assign(a.properties,J0(o)),"children"in a&&a.children&&l!==null&&l!==void 0&&(a.children=l)}return a}function cT(e,n){const a=n.data||{},i="value"in n&&!(Fd.call(a,"hProperties")||Fd.call(a,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function uT(e,n){const a=[];let i=-1;for(n&&a.push({type:"text",value:`
27
+ `});++i<e.length;)i&&a.push({type:"text",value:`
28
+ `}),a.push(e[i]);return n&&e.length>0&&a.push({type:"text",value:`
29
+ `}),a}function a2(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function i2(e,n){const a=sT(e,n),i=a.one(e,void 0),l=Xj(a),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&o.children.push({type:"text",value:`
30
+ `},l),o}function xT(e,n){return e&&"run"in e?async function(a,i){const l=i2(a,{file:i,...n});await e.run(l,i)}:function(a,i){return i2(a,{file:i,...e||n})}}function s2(e){if(e)throw e}var Ox,l2;function dT(){if(l2)return Ox;l2=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},o=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!p)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},u=function(h,g){a&&g.name==="__proto__"?a(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(i)return i(h,g).value}else return;return h[g]};return Ox=function f(){var h,g,p,y,b,C,v=arguments[0],k=1,B=arguments.length,j=!1;for(typeof v=="boolean"&&(j=v,v=arguments[1]||{},k=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});k<B;++k)if(h=arguments[k],h!=null)for(g in h)p=d(v,g),y=d(h,g),v!==y&&(j&&y&&(o(y)||(b=l(y)))?(b?(b=!1,C=p&&l(p)?p:[]):C=p&&o(p)?p:{},u(v,{name:g,newValue:f(j,C,y)})):typeof y<"u"&&u(v,{name:g,newValue:y}));return v},Ox}var fT=dT();const zx=Zl(fT);function Sd(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hT(){const e=[],n={run:a,use:i};return n;function a(...l){let o=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...h){const g=e[++o];let p=-1;if(f){u(f);return}for(;++p<l.length;)(h[p]===null||h[p]===void 0)&&(h[p]=l[p]);l=h,g?pT(g,d)(...h):u(null,...h)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function pT(e,n){let a;return i;function i(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(h){const g=h;if(d&&a)throw g;return l(g)}d||(f&&f.then&&typeof f.then=="function"?f.then(o,l):f instanceof Error?l(f):o(f))}function l(u,...d){a||(a=!0,n(u,...d))}function o(u){l(null,u)}}const Hr={basename:mT,dirname:gT,extname:ET,join:yT,sep:"/"};function mT(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');so(e);let a=0,i=-1,l=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(o){a=l+1;break}}else i<0&&(o=!0,i=l+1);return i<0?"":e.slice(a,i)}if(n===e)return"";let u=-1,d=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(o){a=l+1;break}}else u<0&&(o=!0,u=l+1),d>-1&&(e.codePointAt(l)===n.codePointAt(d--)?d<0&&(i=l):(d=-1,i=u));return a===i?i=u:i<0&&(i=e.length),e.slice(a,i)}function gT(e){if(so(e),e.length===0)return".";let n=-1,a=e.length,i;for(;--a;)if(e.codePointAt(a)===47){if(i){n=a;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function ET(e){so(e);let n=e.length,a=-1,i=0,l=-1,o=0,u;for(;n--;){const d=e.codePointAt(n);if(d===47){if(u){i=n+1;break}continue}a<0&&(u=!0,a=n+1),d===46?l<0?l=n:o!==1&&(o=1):l>-1&&(o=-1)}return l<0||a<0||o===0||o===1&&l===a-1&&l===i+1?"":e.slice(l,a)}function yT(...e){let n=-1,a;for(;++n<e.length;)so(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":bT(a)}function bT(e){so(e);const n=e.codePointAt(0)===47;let a=CT(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function CT(e,n){let a="",i=0,l=-1,o=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||o===1))if(l!==u-1&&o===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(f=a.lastIndexOf("/"),f!==a.length-1){f<0?(a="",i=0):(a=a.slice(0,f),i=a.length-1-a.lastIndexOf("/")),l=u,o=0;continue}}else if(a.length>0){a="",i=0,l=u,o=0;continue}}n&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(l+1,u):a=e.slice(l+1,u),i=u-l-1;l=u,o=0}else d===46&&o>-1?o++:o=-1}return a}function so(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vT={cwd:AT};function AT(){return"/"}function Nd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kT(e){if(typeof e=="string")e=new URL(e);else if(!Nd(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return BT(e)}function BT(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const i=n.codePointAt(a+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const Lx=["history","path","basename","stem","extname","dirname"];class TE{constructor(n){let a;n?Nd(n)?a={path:n}:typeof n=="string"||DT(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":vT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Lx.length;){const o=Lx[i];o in a&&a[o]!==void 0&&a[o]!==null&&(this[o]=o==="history"?[...a[o]]:a[o])}let l;for(l in a)Lx.includes(l)||(this[l]=a[l])}get basename(){return typeof this.path=="string"?Hr.basename(this.path):void 0}set basename(n){Ix(n,"basename"),Px(n,"basename"),this.path=Hr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Hr.dirname(this.path):void 0}set dirname(n){o2(this.basename,"dirname"),this.path=Hr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Hr.extname(this.path):void 0}set extname(n){if(Px(n,"extname"),o2(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Hr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Nd(n)&&(n=kT(n)),Ix(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Hr.basename(this.path,this.extname):void 0}set stem(n){Ix(n,"stem"),Px(n,"stem"),this.path=Hr.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const l=this.message(n,a,i);throw l.fatal=!0,l}info(n,a,i){const l=this.message(n,a,i);return l.fatal=void 0,l}message(n,a,i){const l=new Rn(n,a,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Px(e,n){if(e&&e.includes(Hr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Hr.sep+"`")}function Ix(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function o2(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function DT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wT=(function(e){const i=this.constructor.prototype,l=i[e],o=function(){return l.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),FT={}.hasOwnProperty;class Mf extends wT{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=hT()}copy(){const n=new Mf;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(zx(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?($x("data",this.frozen),this.namespace[n]=a,this):FT.call(this.namespace,n)&&this.namespace[n]||void 0:n?($x("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=a.call(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=T0(n),i=this.parser||this.Parser;return Ux("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Ux("process",this.parser||this.Parser),Hx("process",this.compiler||this.Compiler),a?l(void 0,a):new Promise(l);function l(o,u){const d=T0(n),f=i.parse(d);i.run(f,d,function(g,p,y){if(g||!p||!y)return h(g);const b=p,C=i.stringify(b,y);_T(C)?y.value=C:y.result=C,h(g,y)});function h(g,p){g||!p?u(g):o?o(p):a(void 0,p)}}}processSync(n){let a=!1,i;return this.freeze(),Ux("processSync",this.parser||this.Parser),Hx("processSync",this.compiler||this.Compiler),this.process(n,l),u2("processSync","process",a),i;function l(o,u){a=!0,s2(o),i=u}}run(n,a,i){c2(n),this.freeze();const l=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?o(void 0,i):new Promise(o);function o(u,d){const f=T0(a);l.run(n,f,h);function h(g,p,y){const b=p||n;g?d(g):u?u(b):i(void 0,b,y)}}}runSync(n,a){let i=!1,l;return this.run(n,a,o),u2("runSync","run",i),l;function o(u,d){s2(u),l=d,i=!0}}stringify(n,a){this.freeze();const i=T0(a),l=this.compiler||this.Compiler;return Hx("stringify",l),c2(n),l(n,i)}use(n,...a){const i=this.attachers,l=this.namespace;if($x("use",this.frozen),n!=null)if(typeof n=="function")f(n,a);else if(typeof n=="object")Array.isArray(n)?d(n):u(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...p]=h;f(g,p)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(l.settings=zx(!0,l.settings,h.settings))}function d(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const p=h[g];o(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,g){let p=-1,y=-1;for(;++p<i.length;)if(i[p][0]===h){y=p;break}if(y===-1)i.push([h,...g]);else if(g.length>0){let[b,...C]=g;const v=i[y][1];Sd(v)&&Sd(b)&&(b=zx(!0,v,b)),i[y]=[h,b,...C]}}}}const ST=new Mf().freeze();function Ux(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hx(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $x(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function c2(e){if(!Sd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function u2(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function T0(e){return NT(e)?e:new TE(e)}function NT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _T(e){return typeof e=="string"||MT(e)}function MT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",x2=[],d2={allowDangerousHtml:!0},TT=/^(https?|ircs?|mailto|xmpp)$/i,RT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function OT(e){const n=zT(e),a=LT(e);return PT(n.runSync(n.parse(a),a),e)}function zT(e){const n=e.rehypePlugins||x2,a=e.remarkPlugins||x2,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...d2}:d2;return ST().use(gj).use(a).use(xT,i).use(n)}function LT(e){const n=e.children||"",a=new TE;return typeof n=="string"&&(a.value=n),a}function PT(e,n){const a=n.allowedElements,i=n.allowElement,l=n.components,o=n.disallowedElements,u=n.skipHtml,d=n.unwrapDisallowed,f=n.urlTransform||IT;for(const g of RT)Object.hasOwn(n,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+jT+g.id,void 0);return _f(e,h),e_(e,{Fragment:x.Fragment,components:l,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function h(g,p,y){if(g.type==="raw"&&y&&typeof p=="number")return u?y.children.splice(p,1):y.children[p]={type:"text",value:g.value},p;if(g.type==="element"){let b;for(b in jx)if(Object.hasOwn(jx,b)&&Object.hasOwn(g.properties,b)){const C=g.properties[b],v=jx[b];(v===null||v.includes(g.tagName))&&(g.properties[b]=f(String(C||""),b,g))}}if(g.type==="element"){let b=a?!a.includes(g.tagName):o?o.includes(g.tagName):!1;if(!b&&i&&typeof p=="number"&&(b=!i(g,p,y)),b&&y&&typeof p=="number")return d&&g.children?y.children.splice(p,1,...g.children):y.children.splice(p,1),p}}}function IT(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||a!==-1&&n>a||i!==-1&&n>i||TT.test(e.slice(0,n))?e:""}function UT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function RE(e,n,a){const l=fc((a||{}).ignore||[]),o=HT(n);let u=-1;for(;++u<o.length;)jE(e,"text",d);function d(h,g){let p=-1,y;for(;++p<g.length;){const b=g[p],C=y?y.children:void 0;if(l(b,C?C.indexOf(b):void 0,y))return;y=b}if(y)return f(h,g)}function f(h,g){const p=g[g.length-1],y=o[u][0],b=o[u][1];let C=0;const k=p.children.indexOf(h);let B=!1,j=[];y.lastIndex=0;let S=y.exec(h.value);for(;S;){const _=S.index,T={index:S.index,input:S.input,stack:[...g,h]};let F=b(...S,T);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?y.lastIndex=_+1:(C!==_&&j.push({type:"text",value:h.value.slice(C,_)}),Array.isArray(F)?j.push(...F):F&&j.push(F),C=_+S[0].length,B=!0),!y.global)break;S=y.exec(h.value)}return B?(C<h.value.length&&j.push({type:"text",value:h.value.slice(C)}),p.children.splice(k,1,...j)):j=[h],k+j.length}}function HT(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<a.length;){const l=a[i];n.push([$T(l[0]),qT(l[1])])}return n}function $T(e){return typeof e=="string"?new RegExp(UT(e),"g"):e}function qT(e){return typeof e=="function"?e:function(){return e}}function GT(e){RE(e,[/\r?\n|\r/g,VT])}function VT(){return{type:"break"}}function QT(){return function(e){GT(e)}}function f2(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=a.indexOf(n);for(;l!==-1;)i++,l=a.indexOf(n,l+n.length);return i}const qx="phrasing",Gx=["autolink","link","image","label"];function YT(){return{transforms:[tR],enter:{literalAutolink:XT,literalAutolinkEmail:Vx,literalAutolinkHttp:Vx,literalAutolinkWww:Vx},exit:{literalAutolink:eR,literalAutolinkEmail:JT,literalAutolinkHttp:ZT,literalAutolinkWww:WT}}}function KT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qx,notInConstruct:Gx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qx,notInConstruct:Gx},{character:":",before:"[ps]",after:"\\/",inConstruct:qx,notInConstruct:Gx}]}}function XT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vx(e){this.config.enter.autolinkProtocol.call(this,e)}function ZT(e){this.config.exit.autolinkProtocol.call(this,e)}function WT(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function JT(e){this.config.exit.autolinkEmail.call(this,e)}function eR(e){this.exit(e)}function tR(e){RE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nR],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),rR]],{ignore:["link","linkReference"]})}function nR(e,n,a,i,l){let o="";if(!OE(l)||(/^w/i.test(n)&&(a=n+a,n="",o="http://"),!aR(a)))return!1;const u=iR(a+i);if(!u[0])return!1;const d={type:"link",title:null,url:o+n+u[0],children:[{type:"text",value:n+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function rR(e,n,a,i){return!OE(i,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function aR(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function iR(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],i=a.indexOf(")");const l=f2(e,"(");let o=f2(e,")");for(;i!==-1&&l>o;)e+=a.slice(0,i+1),a=a.slice(i+1),i=a.indexOf(")"),o++;return[e,a]}function OE(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||Si(a)||uc(a))&&(!n||a!==47)}zE.peek=hR;function sR(){this.buffer()}function lR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function oR(){this.buffer()}function cR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function uR(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Tr(this.sliceSerialize(e)).toLowerCase(),a.label=n}function xR(e){this.exit(e)}function dR(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Tr(this.sliceSerialize(e)).toLowerCase(),a.label=n}function fR(e){this.exit(e)}function hR(){return"["}function zE(e,n,a,i){const l=a.createTracker(i);let o=l.move("[^");const u=a.enter("footnoteReference"),d=a.enter("reference");return o+=l.move(a.safe(a.associationId(e),{after:"]",before:o})),d(),u(),o+=l.move("]"),o}function pR(){return{enter:{gfmFootnoteCallString:sR,gfmFootnoteCall:lR,gfmFootnoteDefinitionLabelString:oR,gfmFootnoteDefinition:cR},exit:{gfmFootnoteCallString:uR,gfmFootnoteCall:xR,gfmFootnoteDefinitionLabelString:dR,gfmFootnoteDefinition:fR}}}function mR(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:zE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(i,l,o,u){const d=o.createTracker(u);let f=d.move("[^");const h=o.enter("footnoteDefinition"),g=o.enter("label");return f+=d.move(o.safe(o.associationId(i),{before:f,after:"]"})),g(),f+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),f+=d.move((n?`
31
+ `:" ")+o.indentLines(o.containerFlow(i,d.current()),n?LE:gR))),h(),f}}function gR(e,n,a){return n===0?e:LE(e,n,a)}function LE(e,n,a){return(a?"":" ")+e}const ER=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];PE.peek=AR;function yR(){return{canContainEols:["delete"],enter:{strikethrough:CR},exit:{strikethrough:vR}}}function bR(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ER}],handlers:{delete:PE}}}function CR(e){this.enter({type:"delete",children:[]},e)}function vR(e){this.exit(e)}function PE(e,n,a,i){const l=a.createTracker(i),o=a.enter("strikethrough");let u=l.move("~~");return u+=a.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),o(),u}function AR(){return"~"}function kR(e){return e.length}function BR(e,n){const a=n||{},i=(a.align||[]).concat(),l=a.stringLength||kR,o=[],u=[],d=[],f=[];let h=0,g=-1;for(;++g<e.length;){const v=[],k=[];let B=-1;for(e[g].length>h&&(h=e[g].length);++B<e[g].length;){const j=DR(e[g][B]);if(a.alignDelimiters!==!1){const S=l(j);k[B]=S,(f[B]===void 0||S>f[B])&&(f[B]=S)}v.push(j)}u[g]=v,d[g]=k}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)o[p]=h2(i[p]);else{const v=h2(i);for(;++p<h;)o[p]=v}p=-1;const y=[],b=[];for(;++p<h;){const v=o[p];let k="",B="";v===99?(k=":",B=":"):v===108?k=":":v===114&&(B=":");let j=a.alignDelimiters===!1?1:Math.max(1,f[p]-k.length-B.length);const S=k+"-".repeat(j)+B;a.alignDelimiters!==!1&&(j=k.length+j+B.length,j>f[p]&&(f[p]=j),b[p]=j),y[p]=S}u.splice(1,0,y),d.splice(1,0,b),g=-1;const C=[];for(;++g<u.length;){const v=u[g],k=d[g];p=-1;const B=[];for(;++p<h;){const j=v[p]||"";let S="",_="";if(a.alignDelimiters!==!1){const T=f[p]-(k[p]||0),F=o[p];F===114?S=" ".repeat(T):F===99?T%2?(S=" ".repeat(T/2+.5),_=" ".repeat(T/2-.5)):(S=" ".repeat(T/2),_=S):_=" ".repeat(T)}a.delimiterStart!==!1&&!p&&B.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&j==="")&&(a.delimiterStart!==!1||p)&&B.push(" "),a.alignDelimiters!==!1&&B.push(S),B.push(j),a.alignDelimiters!==!1&&B.push(_),a.padding!==!1&&B.push(" "),(a.delimiterEnd!==!1||p!==h-1)&&B.push("|")}C.push(a.delimiterEnd===!1?B.join("").replace(/ +$/,""):B.join(""))}return C.join(`
32
+ `)}function DR(e){return e==null?"":String(e)}function h2(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function wR(e,n,a,i){const l=a.enter("blockquote"),o=a.createTracker(i);o.move("> "),o.shift(2);const u=a.indentLines(a.containerFlow(e,o.current()),FR);return l(),u}function FR(e,n,a){return">"+(a?"":" ")+e}function SR(e,n){return p2(e,n.inConstruct,!0)&&!p2(e,n.notInConstruct,!1)}function p2(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function m2(e,n,a,i){let l=-1;for(;++l<a.unsafe.length;)if(a.unsafe[l].character===`
33
+ `&&SR(a.stack,a.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
34
+ `}function NR(e,n){const a=String(e);let i=a.indexOf(n),l=i,o=0,u=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++o>u&&(u=o):o=1,l=i+n.length,i=a.indexOf(n,l);return u}function _R(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function MR(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function jR(e,n,a,i){const l=MR(a),o=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(_R(e,a)){const p=a.enter("codeIndented"),y=a.indentLines(o,TR);return p(),y}const d=a.createTracker(i),f=l.repeat(Math.max(NR(o,l)+1,3)),h=a.enter("codeFenced");let g=d.move(f);if(e.lang){const p=a.enter(`codeFencedLang${u}`);g+=d.move(a.safe(e.lang,{before:g,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=a.enter(`codeFencedMeta${u}`);g+=d.move(" "),g+=d.move(a.safe(e.meta,{before:g,after:`
35
+ `,encode:["`"],...d.current()})),p()}return g+=d.move(`
36
+ `),o&&(g+=d.move(o+`
37
+ `)),g+=d.move(f),h(),g}function TR(e,n,a){return(a?"":" ")+e}function jf(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function RR(e,n,a,i){const l=jf(a),o=l==='"'?"Quote":"Apostrophe",u=a.enter("definition");let d=a.enter("label");const f=a.createTracker(i);let h=f.move("[");return h+=f.move(a.safe(a.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=a.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(a.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=a.enter("destinationRaw"),h+=f.move(a.safe(e.url,{before:h,after:e.title?" ":`
38
+ `,...f.current()}))),d(),e.title&&(d=a.enter(`title${o}`),h+=f.move(" "+l),h+=f.move(a.safe(e.title,{before:h,after:l,...f.current()})),h+=f.move(l),d()),u(),h}function OR(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Kl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ec(e,n,a){const i=vs(e),l=vs(n);return i===void 0?l===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}IE.peek=zR;function IE(e,n,a,i){const l=OR(a),o=a.enter("emphasis"),u=a.createTracker(i),d=u.move(l);let f=u.move(a.containerPhrasing(e,{after:l,before:d,...u.current()}));const h=f.charCodeAt(0),g=ec(i.before.charCodeAt(i.before.length-1),h,l);g.inside&&(f=Kl(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ec(i.after.charCodeAt(0),p,l);y.inside&&(f=f.slice(0,-1)+Kl(p));const b=u.move(l);return o(),a.attentionEncodeSurroundingInfo={after:y.outside,before:g.outside},d+f+b}function zR(e,n,a){return a.options.emphasis||"*"}function LR(e,n){let a=!1;return _f(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return a=!0,wd}),!!((!e.depth||e.depth<3)&&kf(e)&&(n.options.setext||a))}function PR(e,n,a,i){const l=Math.max(Math.min(6,e.depth||1),1),o=a.createTracker(i);if(LR(e,a)){const g=a.enter("headingSetext"),p=a.enter("phrasing"),y=a.containerPhrasing(e,{...o.current(),before:`
39
+ `,after:`
40
+ `});return p(),g(),y+`
41
+ `+(l===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
42
+ `))+1))}const u="#".repeat(l),d=a.enter("headingAtx"),f=a.enter("phrasing");o.move(u+" ");let h=a.containerPhrasing(e,{before:"# ",after:`
43
+ `,...o.current()});return/^[\t ]/.test(h)&&(h=Kl(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,a.options.closeAtx&&(h+=" "+u),f(),d(),h}UE.peek=IR;function UE(e){return e.value||""}function IR(){return"<"}HE.peek=UR;function HE(e,n,a,i){const l=jf(a),o=l==='"'?"Quote":"Apostrophe",u=a.enter("image");let d=a.enter("label");const f=a.createTracker(i);let h=f.move("![");return h+=f.move(a.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=a.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(a.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=a.enter("destinationRaw"),h+=f.move(a.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=a.enter(`title${o}`),h+=f.move(" "+l),h+=f.move(a.safe(e.title,{before:h,after:l,...f.current()})),h+=f.move(l),d()),h+=f.move(")"),u(),h}function UR(){return"!"}$E.peek=HR;function $E(e,n,a,i){const l=e.referenceType,o=a.enter("imageReference");let u=a.enter("label");const d=a.createTracker(i);let f=d.move("![");const h=a.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),u();const g=a.stack;a.stack=[],u=a.enter("reference");const p=a.safe(a.associationId(e),{before:f,after:"]",...d.current()});return u(),a.stack=g,o(),l==="full"||!h||h!==p?f+=d.move(p+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function HR(){return"!"}qE.peek=$R;function qE(e,n,a){let i=e.value||"",l="`",o=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<a.unsafe.length;){const u=a.unsafe[o],d=a.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(i);){let h=f.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(f.index+1)}}return l+i+l}function $R(){return"`"}function GE(e,n){const a=kf(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}VE.peek=qR;function VE(e,n,a,i){const l=jf(a),o=l==='"'?"Quote":"Apostrophe",u=a.createTracker(i);let d,f;if(GE(e,a)){const g=a.stack;a.stack=[],d=a.enter("autolink");let p=u.move("<");return p+=u.move(a.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),d(),a.stack=g,p}d=a.enter("link"),f=a.enter("label");let h=u.move("[");return h+=u.move(a.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(a.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(f=a.enter("destinationRaw"),h+=u.move(a.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=a.enter(`title${o}`),h+=u.move(" "+l),h+=u.move(a.safe(e.title,{before:h,after:l,...u.current()})),h+=u.move(l),f()),h+=u.move(")"),d(),h}function qR(e,n,a){return GE(e,a)?"<":"["}QE.peek=GR;function QE(e,n,a,i){const l=e.referenceType,o=a.enter("linkReference");let u=a.enter("label");const d=a.createTracker(i);let f=d.move("[");const h=a.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),u();const g=a.stack;a.stack=[],u=a.enter("reference");const p=a.safe(a.associationId(e),{before:f,after:"]",...d.current()});return u(),a.stack=g,o(),l==="full"||!h||h!==p?f+=d.move(p+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function GR(){return"["}function Tf(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function VR(e){const n=Tf(e),a=e.options.bulletOther;if(!a)return n==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+a+"`) to be different");return a}function QR(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function YE(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function YR(e,n,a,i){const l=a.enter("list"),o=a.bulletCurrent;let u=e.ordered?QR(a):Tf(a);const d=e.ordered?u==="."?")":".":VR(a);let f=n&&a.bulletLastUsed?u===a.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&g&&(!g.children||!g.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(f=!0),YE(a)===u&&g){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),a.bulletCurrent=u;const h=a.containerFlow(e,i);return a.bulletLastUsed=u,a.bulletCurrent=o,l(),h}function KR(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function XR(e,n,a,i){const l=KR(a);let o=a.bulletCurrent||Tf(a);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(a.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let u=o.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=a.createTracker(i);d.move(o+" ".repeat(u-o.length)),d.shift(u);const f=a.enter("listItem"),h=a.indentLines(a.containerFlow(e,d.current()),g);return f(),h;function g(p,y,b){return y?(b?"":" ".repeat(u))+p:(b?o:o+" ".repeat(u-o.length))+p}}function ZR(e,n,a,i){const l=a.enter("paragraph"),o=a.enter("phrasing"),u=a.containerPhrasing(e,i);return o(),l(),u}const WR=fc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function JR(e,n,a,i){return(e.children.some(function(u){return WR(u)})?a.containerPhrasing:a.containerFlow).call(a,e,i)}function eO(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}KE.peek=tO;function KE(e,n,a,i){const l=eO(a),o=a.enter("strong"),u=a.createTracker(i),d=u.move(l+l);let f=u.move(a.containerPhrasing(e,{after:l,before:d,...u.current()}));const h=f.charCodeAt(0),g=ec(i.before.charCodeAt(i.before.length-1),h,l);g.inside&&(f=Kl(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ec(i.after.charCodeAt(0),p,l);y.inside&&(f=f.slice(0,-1)+Kl(p));const b=u.move(l+l);return o(),a.attentionEncodeSurroundingInfo={after:y.outside,before:g.outside},d+f+b}function tO(e,n,a){return a.options.strong||"*"}function nO(e,n,a,i){return a.safe(e.value,i)}function rO(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function aO(e,n,a){const i=(YE(a)+(a.options.ruleSpaces?" ":"")).repeat(rO(a));return a.options.ruleSpaces?i.slice(0,-1):i}const XE={blockquote:wR,break:m2,code:jR,definition:RR,emphasis:IE,hardBreak:m2,heading:PR,html:UE,image:HE,imageReference:$E,inlineCode:qE,link:VE,linkReference:QE,list:YR,listItem:XR,paragraph:ZR,root:JR,strong:KE,text:nO,thematicBreak:aO};function iO(){return{enter:{table:sO,tableData:g2,tableHeader:g2,tableRow:oO},exit:{codeText:cO,table:lO,tableData:Qx,tableHeader:Qx,tableRow:Qx}}}function sO(e){const n=e._align;this.enter({type:"table",align:n.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function lO(e){this.exit(e),this.data.inTable=void 0}function oO(e){this.enter({type:"tableRow",children:[]},e)}function Qx(e){this.exit(e)}function g2(e){this.enter({type:"tableCell",children:[]},e)}function cO(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,uO));const a=this.stack[this.stack.length-1];a.type,a.value=n,this.exit(e)}function uO(e,n){return n==="|"?n:e}function xO(e){const n=e||{},a=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,o=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
44
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:u,tableCell:f,tableRow:d}};function u(b,C,v,k){return h(g(b,v,k),b.align)}function d(b,C,v,k){const B=p(b,v,k),j=h([B]);return j.slice(0,j.indexOf(`
45
+ `))}function f(b,C,v,k){const B=v.enter("tableCell"),j=v.enter("phrasing"),S=v.containerPhrasing(b,{...k,before:o,after:o});return j(),B(),S}function h(b,C){return BR(b,{align:C,alignDelimiters:i,padding:a,stringLength:l})}function g(b,C,v){const k=b.children;let B=-1;const j=[],S=C.enter("table");for(;++B<k.length;)j[B]=p(k[B],C,v);return S(),j}function p(b,C,v){const k=b.children;let B=-1;const j=[],S=C.enter("tableRow");for(;++B<k.length;)j[B]=f(k[B],b,C,v);return S(),j}function y(b,C,v){let k=XE.inlineCode(b,C,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function dO(){return{exit:{taskListCheckValueChecked:E2,taskListCheckValueUnchecked:E2,paragraph:hO}}}function fO(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pO}}}function E2(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function hO(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const i=a.children[0];if(i&&i.type==="text"){const l=n.children;let o=-1,u;for(;++o<l.length;){const d=l[o];if(d.type==="paragraph"){u=d;break}}u===a&&(i.value=i.value.slice(1),i.value.length===0?a.children.shift():a.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,a.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function pO(e,n,a,i){const l=e.children[0],o=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=a.createTracker(i);o&&d.move(u);let f=XE.listItem(e,n,a,{...i,...d.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(g){return g+u}}function mO(){return[YT(),pR(),yR(),iO(),dO()]}function gO(e){return{extensions:[KT(),mR(e),bR(),xO(e),fO()]}}const EO={tokenize:kO,partial:!0},ZE={tokenize:BO,partial:!0},WE={tokenize:DO,partial:!0},JE={tokenize:wO,partial:!0},yO={tokenize:FO,partial:!0},e5={name:"wwwAutolink",tokenize:vO,previous:n5},t5={name:"protocolAutolink",tokenize:AO,previous:r5},ya={name:"emailAutolink",tokenize:CO,previous:a5},Vr={};function bO(){return{text:Vr}}let vi=48;for(;vi<123;)Vr[vi]=ya,vi++,vi===58?vi=65:vi===91&&(vi=97);Vr[43]=ya;Vr[45]=ya;Vr[46]=ya;Vr[95]=ya;Vr[72]=[ya,t5];Vr[104]=[ya,t5];Vr[87]=[ya,e5];Vr[119]=[ya,e5];function CO(e,n,a){const i=this;let l,o;return u;function u(p){return!_d(p)||!a5.call(i,i.previous)||Rf(i.events)?a(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(p))}function d(p){return _d(p)?(e.consume(p),d):p===64?(e.consume(p),f):a(p)}function f(p){return p===46?e.check(yO,g,h)(p):p===45||p===95||jn(p)?(o=!0,e.consume(p),f):g(p)}function h(p){return e.consume(p),l=!0,f}function g(p){return o&&l&&Pn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(p)):a(p)}}function vO(e,n,a){const i=this;return l;function l(u){return u!==87&&u!==119||!n5.call(i,i.previous)||Rf(i.events)?a(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(EO,e.attempt(ZE,e.attempt(WE,o),a),a)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(u)}}function AO(e,n,a){const i=this;let l="",o=!1;return u;function u(p){return(p===72||p===104)&&r5.call(i,i.previous)&&!Rf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(p),e.consume(p),d):a(p)}function d(p){if(Pn(p)&&l.length<5)return l+=String.fromCodePoint(p),e.consume(p),d;if(p===58){const y=l.toLowerCase();if(y==="http"||y==="https")return e.consume(p),f}return a(p)}function f(p){return p===47?(e.consume(p),o?h:(o=!0,f)):a(p)}function h(p){return p===null||Z0(p)||zt(p)||Si(p)||uc(p)?a(p):e.attempt(ZE,e.attempt(WE,g),a)(p)}function g(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(p)}}function kO(e,n,a){let i=0;return l;function l(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),l):u===46&&i===3?(e.consume(u),o):a(u)}function o(u){return u===null?a(u):n(u)}}function BO(e,n,a){let i,l,o;return u;function u(h){return h===46||h===95?e.check(JE,f,d)(h):h===null||zt(h)||Si(h)||h!==45&&uc(h)?f(h):(o=!0,e.consume(h),u)}function d(h){return h===95?i=!0:(l=i,i=void 0),e.consume(h),u}function f(h){return l||i||!o?a(h):n(h)}}function DO(e,n){let a=0,i=0;return l;function l(u){return u===40?(a++,e.consume(u),l):u===41&&i<a?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(JE,n,o)(u):u===null||zt(u)||Si(u)?n(u):(e.consume(u),l)}function o(u){return u===41&&i++,e.consume(u),l}}function wO(e,n,a){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),i):d===38?(e.consume(d),o):d===93?(e.consume(d),l):d===60||d===null||zt(d)||Si(d)?n(d):a(d)}function l(d){return d===null||d===40||d===91||zt(d)||Si(d)?n(d):i(d)}function o(d){return Pn(d)?u(d):a(d)}function u(d){return d===59?(e.consume(d),i):Pn(d)?(e.consume(d),u):a(d)}}function FO(e,n,a){return i;function i(o){return e.consume(o),l}function l(o){return jn(o)?a(o):n(o)}}function n5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zt(e)}function r5(e){return!Pn(e)}function a5(e){return!(e===47||_d(e))}function _d(e){return e===43||e===45||e===46||e===95||jn(e)}function Rf(e){let n=e.length,a=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){a=!0;break}if(i._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const SO={tokenize:zO,partial:!0};function NO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:TO,continuation:{tokenize:RO},exit:OO}},text:{91:{name:"gfmFootnoteCall",tokenize:jO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_O,resolveTo:MO}}}}function _O(e,n,a){const i=this;let l=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;l--;){const f=i.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return a(f);const h=Tr(i.sliceSerialize({start:u.end,end:i.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?a(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),n(f))}}function MO(e,n){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[a+1],e[a+2],["enter",i,n],e[a+3],e[a+4],["enter",l,n],["exit",l,n],["enter",o,n],["enter",u,n],["exit",u,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(a,e.length-a+1,...d),e}function jO(e,n,a){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,u;return d;function d(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),f}function f(p){return p!==94?a(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(o>999||p===93&&!u||p===null||p===91||zt(p))return a(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return l.includes(Tr(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(p)}return zt(p)||(u=!0),o++,e.consume(p),p===92?g:h}function g(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function TO(e,n,a){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,u=0,d;return f;function f(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):a(C)}function g(C){if(u>999||C===93&&!d||C===null||C===91||zt(C))return a(C);if(C===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Tr(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return zt(C)||(d=!0),u++,e.consume(C),C===92?p:g}function p(C){return C===91||C===92||C===93?(e.consume(C),u++,g):g(C)}function y(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),l.includes(o)||l.push(o),gt(e,b,"gfmFootnoteDefinitionWhitespace")):a(C)}function b(C){return n(C)}}function RO(e,n,a){return e.check(io,n,e.attempt(SO,n,a))}function OO(e){e.exit("gfmFootnoteDefinition")}function zO(e,n,a){const i=this;return gt(e,l,"gfmFootnoteDefinitionIndent",5);function l(o){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?n(o):a(o)}}function LO(e){let a=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:l};return a==null&&(a=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let h=f;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[f][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[f][1].end)},p={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[f][1].start)},y=[["enter",g,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",p,d]],b=d.parser.constructs.insideSpan.null;b&&cr(y,y.length,0,xc(b,u.slice(h+1,f),d)),cr(y,y.length,0,[["exit",p,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",g,d]]),cr(u,h-1,f-h+3,y),f=h+y.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function o(u,d,f){const h=this.previous,g=this.events;let p=0;return y;function y(C){return h===126&&g[g.length-1][1].type!=="characterEscape"?f(C):(u.enter("strikethroughSequenceTemporary"),b(C))}function b(C){const v=vs(h);if(C===126)return p>1?f(C):(u.consume(C),p++,b);if(p<2&&!a)return f(C);const k=u.exit("strikethroughSequenceTemporary"),B=vs(C);return k._open=!B||B===2&&!!v,k._close=!v||v===2&&!!B,d(C)}}}class PO{constructor(){this.map=[]}add(n,a,i){IO(this,n,a,i)}consume(n){if(this.map.sort(function(o,u){return o[0]-u[0]}),this.map.length===0)return;let a=this.map.length;const i=[];for(;a>0;)a-=1,i.push(n.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),n.length=this.map[a][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const o of l)n.push(o);l=i.pop()}this.map.length=0}}function IO(e,n,a,i){let l=0;if(!(a===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=a,e.map[l][2].push(...i);return}l+=1}e.map.push([n,a,i])}}function UO(e,n){let a=!1;const i=[];for(;n<e.length;){const l=e[n];if(a){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(a=!0);n+=1}return i}function HO(){return{flow:{null:{name:"table",tokenize:$O,resolveAll:qO}}}}function $O(e,n,a){const i=this;let l=0,o=0,u;return d;function d(O){let $=i.events.length-1;for(;$>-1;){const te=i.events[$][1].type;if(te==="lineEnding"||te==="linePrefix")$--;else break}const V=$>-1?i.events[$][1].type:null,oe=V==="tableHead"||V==="tableRow"?F:f;return oe===F&&i.parser.lazy[i.now().line]?a(O):oe(O)}function f(O){return e.enter("tableHead"),e.enter("tableRow"),h(O)}function h(O){return O===124||(u=!0,o+=1),g(O)}function g(O){return O===null?a(O):Ue(O)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),b):a(O):ct(O)?gt(e,g,"whitespace")(O):(o+=1,u&&(u=!1,l+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),u=!0,g):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||zt(O)?(e.exit("data"),g(O)):(e.consume(O),O===92?y:p)}function y(O){return O===92||O===124?(e.consume(O),p):p(O)}function b(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?a(O):(e.enter("tableDelimiterRow"),u=!1,ct(O)?gt(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):C(O))}function C(O){return O===45||O===58?k(O):O===124?(u=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),v):T(O)}function v(O){return ct(O)?gt(e,k,"whitespace")(O):k(O)}function k(O){return O===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),B):O===45?(o+=1,B(O)):O===null||Ue(O)?_(O):T(O)}function B(O){return O===45?(e.enter("tableDelimiterFiller"),j(O)):T(O)}function j(O){return O===45?(e.consume(O),j):O===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(O))}function S(O){return ct(O)?gt(e,_,"whitespace")(O):_(O)}function _(O){return O===124?C(O):O===null||Ue(O)?!u||l!==o?T(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(O)):T(O)}function T(O){return a(O)}function F(O){return e.enter("tableRow"),R(O)}function R(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),R):O===null||Ue(O)?(e.exit("tableRow"),n(O)):ct(O)?gt(e,R,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||zt(O)?(e.exit("data"),R(O)):(e.consume(O),O===92?I:L)}function I(O){return O===92||O===124?(e.consume(O),L):L(O)}}function qO(e,n){let a=-1,i=!0,l=0,o=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,h,g,p;const y=new PO;for(;++a<e.length;){const b=e[a],C=b[1];b[0]==="enter"?C.type==="tableHead"?(d=!1,f!==0&&(y2(y,n,f,h,g),g=void 0,f=0),h={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(a,0,[["enter",h,n]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,p=void 0,o=[0,0,0,0],u=[0,a+1,0,0],d&&(d=!1,g={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(a,0,[["enter",g,n]])),l=C.type==="tableDelimiterRow"?2:g?3:1):l&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=R0(y,n,o,l,void 0,p),o=[0,0,0,0]),u[2]=a)):C.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(u[0]=u[1],p=R0(y,n,o,l,void 0,p)),o=u,u=[o[1],a,0,0])):C.type==="tableHead"?(d=!0,f=a):C.type==="tableRow"||C.type==="tableDelimiterRow"?(f=a,o[1]!==0?(u[0]=u[1],p=R0(y,n,o,l,a,p)):u[1]!==0&&(p=R0(y,n,u,l,a,p)),l=0):l&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(u[3]=a)}for(f!==0&&y2(y,n,f,h,g),y.consume(n.events),a=-1;++a<n.events.length;){const b=n.events[a];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=UO(n.events,a))}return e}function R0(e,n,a,i,l,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";a[0]!==0&&(o.end=Object.assign({},bs(n.events,a[0])),e.add(a[0],0,[["exit",o,n]]));const f=bs(n.events,a[1]);if(o={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(a[1],0,[["enter",o,n]]),a[2]!==0){const h=bs(n.events,a[2]),g=bs(n.events,a[3]),p={type:d,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(a[2],0,[["enter",p,n]]),i!==2){const y=n.events[a[2]],b=n.events[a[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",a[3]>a[2]+1){const C=a[2]+1,v=a[3]-a[2]-1;e.add(C,v,[])}}e.add(a[3]+1,0,[["exit",p,n]])}return l!==void 0&&(o.end=Object.assign({},bs(n.events,l)),e.add(l,0,[["exit",o,n]]),o=void 0),o}function y2(e,n,a,i,l){const o=[],u=bs(n.events,a);l&&(l.end=Object.assign({},u),o.push(["exit",l,n])),i.end=Object.assign({},u),o.push(["exit",i,n]),e.add(a+1,0,o)}function bs(e,n){const a=e[n],i=a[0]==="enter"?"start":"end";return a[1][i]}const GO={name:"tasklistCheck",tokenize:QO};function VO(){return{text:{91:GO}}}function QO(e,n,a){const i=this;return l;function l(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?a(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),o)}function o(f){return zt(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):a(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):a(f)}function d(f){return Ue(f)?n(f):ct(f)?e.check({tokenize:YO},n,a)(f):a(f)}}function YO(e,n,a){return gt(e,i,"whitespace");function i(l){return l===null?a(l):n(l)}}function KO(e){return fE([bO(),NO(),LO(e),HO(),VO()])}const XO={};function ZO(e){const n=this,a=e||XO,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(KO(a)),o.push(mO()),u.push(gO(a))}function Of({title:e,subtitle:n,actions:a,onClose:i,closeLabel:l}){return x.jsxs("header",{className:"flex shrink-0 items-center gap-3 border-b border-border-soft bg-bg px-4 py-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("h2",{className:"text-base font-semibold",children:e}),n?x.jsx("p",{className:"truncate font-mono text-xs text-muted",children:n}):null]}),a,x.jsx("button",{type:"button",onClick:i,"aria-label":l,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted transition hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent active:bg-surface-2",children:x.jsx(bn,{size:18})})]})}const WO=[ZO,QT],i5="conductor-attachment.invalid";function JO(e){const n=OD(e);if(!n.length)return e;let a="",i=0;for(const l of n){const o=l.name.replace(/[\\`*_[\]<>]/g,"\\$&");a+=`${e.slice(i,l.start)}[${o}](https://${i5}/?path=${encodeURIComponent(l.path)})`,i=l.end}return a+e.slice(i)}function ez(e){if(!e)return null;try{const n=new URL(e);return n.hostname===i5?n.searchParams.get("path"):null}catch{return null}}function s5(e){const[n,a]=D.useState(null),[i,l]=D.useState(null);return D.useEffect(()=>{if(a(null),l(null),!e)return;let o=!1;return je.localImage(e).then(u=>{o||a(u)},u=>{o||l(u instanceof Error?u.message:"Image unavailable")}),()=>{o=!0}},[e]),{objectUrl:n,error:i}}function tz({src:e,alt:n,...a}){const i=Dg(typeof e=="string"?e:null),{objectUrl:l,error:o}=s5(i);return i?o?x.jsxs("span",{className:"my-2 block rounded-lg border border-del/30 px-3 py-2 text-xs text-del",children:[n||"Image"," unavailable: ",o]}):l?x.jsx("img",{src:l,alt:n??"",...a}):null:x.jsx("img",{src:e,alt:n??"",...a})}function l5(e){if(!e?.startsWith("/"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/);return rf(n?e.slice(0,-n[0].length):e)?e:null}function Md({href:e,children:n,onClick:a,...i}){const l=ez(e),o=tS(l),u=Dg(e??null),d=o?.kind==="image"?o.reference:u,f=Bg(e??null),h=o?.kind==="source"?o.reference:l5(e)??f,g=d??h,[p,y]=D.useState(!1),b=d&&p?x.jsx(nz,{reference:d,onClose:()=>y(!1)}):h&&p?x.jsx(o5,{reference:h,onClose:()=>y(!1)}):null;return e?l?x.jsxs(x.Fragment,{children:[x.jsxs("button",{type:"button",title:d?`Open image ${d}`:h?`Open ${h}`:l,disabled:!g,onClick:()=>y(!0),className:"inline-flex max-w-full items-center gap-1 rounded-md bg-surface-2 px-1.5 py-0.5 align-baseline text-[0.9em] font-medium text-muted transition hover:text-text focus-visible:outline-2 focus-visible:outline-accent active:bg-surface disabled:cursor-default",children:[x.jsx(ic,{size:12,className:"shrink-0"}),x.jsx("span",{className:"truncate",children:n})]}),b]}):x.jsxs(x.Fragment,{children:[x.jsx("a",{href:e,...i,title:d?`Open image ${d}`:i.title,onClick:C=>{a?.(C),!(!g||C.defaultPrevented||C.button!==0||C.metaKey||C.ctrlKey||C.shiftKey||C.altKey)&&(C.preventDefault(),y(!0))},children:n}),b]}):x.jsx("span",{title:i.title,children:n})}function nz({reference:e,onClose:n}){const{objectUrl:a,error:i}=s5(e);return D.useEffect(()=>{const l=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]),Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Image preview",className:"fade-in pt-safe pb-safe fixed inset-0 z-[60] mx-auto flex flex-col bg-bg md:inset-6 md:rounded-3xl md:border md:border-border-soft",children:[x.jsx(Of,{title:"Image",subtitle:e,onClose:n,closeLabel:"Close image preview"}),x.jsxs("div",{className:"flex min-h-0 flex-1 items-center justify-center overflow-auto bg-black/15 p-3",children:[!a&&!i?x.jsx(Rr,{label:"Loading image…"}):null,i?x.jsxs("p",{className:"max-w-xs text-center text-sm text-muted",children:["Image unavailable: ",i]}):null,a?x.jsx("img",{src:a,alt:"",className:"max-h-full max-w-full rounded-lg object-contain shadow-2xl"}):null]})]})]}),document.body)}function o5({reference:e,onClose:n}){const[a,i]=D.useState(null),[l,o]=D.useState(null),u=D.useRef(null);return D.useEffect(()=>{let d=!1;return i(null),o(null),je.filePreview(e).then(f=>{d||i(f)},f=>{d||o(f instanceof Error?f.message:"Could not read source file")}),()=>{d=!0}},[e]),D.useEffect(()=>{a?.line&&u.current?.scrollIntoView({block:"center"})},[a?.line]),D.useEffect(()=>{const d=f=>{f.key==="Escape"&&n()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[n]),Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Source file",className:"fade-in pt-safe pb-safe fixed inset-0 z-[60] mx-auto flex flex-col bg-bg md:inset-6 md:rounded-3xl md:border md:border-border-soft",children:[x.jsx(Of,{title:"Source",subtitle:a?.path??e,onClose:n,closeLabel:"Close source preview"}),x.jsxs("div",{className:"min-h-0 flex-1 overflow-auto",children:[!a&&!l?x.jsx(Rr,{label:"Reading source…"}):null,l?x.jsx("p",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:l}):null,a?rz(a.path)?x.jsx(az,{preview:a}):x.jsx(iz,{preview:a,lineRef:u}):null]})]})]}),document.body)}function rz(e){return e.toLowerCase().endsWith(".md")}function az({preview:e}){return x.jsxs("div",{className:"p-4 text-sm leading-6 text-text",children:[x.jsx(Wa,{children:e.content}),x.jsx(c5,{preview:e})]})}function iz({preview:e,lineRef:n}){const a=Qg(e.path),{text:i,tokens:l}=D.useMemo(()=>{const o=e.content.split(`
46
+ `),u=xN(e.content,a);return{text:o,tokens:u?.length===o.length?u:null}},[e.content,a]);return x.jsxs(x.Fragment,{children:[x.jsx("pre",{className:"min-w-max p-3 font-mono text-[11.5px] leading-[1.5] text-muted",children:i.map((o,u)=>{const d=e.lineStart+u,f=d===e.line,h=l?.[u];return x.jsxs("div",{ref:f?n:void 0,className:pe("grid grid-cols-[auto_1fr] gap-3 whitespace-pre",f&&"rounded bg-accent-soft text-text"),children:[x.jsx("span",{className:"select-none text-right text-faint",children:d}),x.jsx("code",{children:h?.length?x.jsx(hf,{nodes:h}):o||" "})]},d)})}),x.jsx(c5,{preview:e})]})}function c5({preview:e}){return e.truncated?x.jsxs("p",{className:"border-t border-border-soft px-4 py-2 text-xs text-faint",children:["Showing lines ",e.lineStart,"–",e.lineEnd," of ",e.totalLines,"."]}):null}function sz({className:e,children:n,node:a,...i}){const l=cN(e),o=oz(n),u=Bg(e?null:o);return u?x.jsx(lz,{reference:u,...i,children:n}):x.jsx("code",{className:e,...i,children:l&&o!==null?x.jsx(Xg,{text:o,language:l}):n})}function lz({reference:e,children:n,...a}){const[i,l]=D.useState(!1);return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",title:`Open ${e}`,onClick:()=>l(!0),className:"max-w-full align-baseline text-left",children:x.jsx("code",{...a,className:"text-accent underline decoration-dotted underline-offset-2",children:n})}),i?x.jsx(o5,{reference:e,onClose:()=>l(!1)}):null]})}function oz(e){return typeof e=="string"?e:Array.isArray(e)&&e.every(n=>typeof n=="string")?e.join(""):null}function cz({node:e,children:n,...a}){const i=e?uz(e):"";return x.jsxs("div",{className:"relative",children:[x.jsx("pre",{...a,children:n}),i?x.jsx(jg,{text:i,label:"code",size:12,className:"absolute right-1.5 top-1.5 size-6 rounded-md border border-border-soft bg-bg/90"}):null]})}function uz(e){let n="";const a=i=>{for(const l of i)l.type==="text"?n+=l.value:l.type==="element"&&a(l.children)};return a(e.children),n.replace(/\n$/,"")}const xz={a:Md,code:sz,img:tz,pre:cz},Wa=D.memo(function({children:n}){return x.jsx("div",{className:"md",children:x.jsx(OT,{remarkPlugins:WO,components:xz,children:JO(n)})})});function zf({state:e,label:n,meta:a,actions:i=[],align:l="right",children:o,className:u,dataUserMessage:d,dataMessageState:f}){const h=e==="failed";return x.jsxs("div",{className:pe("flex min-w-0 flex-col gap-1",l==="right"&&"items-end",l==="left"&&"items-start",l==="wide"&&"items-stretch"),...d?{"data-user-msg":d}:{},...f?{"data-msg-state":f}:{},children:[x.jsxs("div",{className:pe("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l==="wide"?"w-full":"max-w-[85%]",l==="right"?"bg-accent-soft text-text":"bg-surface/60 text-text",h?"border border-del/40":"opacity-60",u),children:[n?x.jsx("div",{className:pe("mb-1 text-[10px] font-semibold uppercase tracking-wide",h?"text-del":"text-faint"),children:n}):null,o]}),h?x.jsxs("div",{className:pe("flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-[11px] text-del",l==="right"&&"justify-end"),children:[x.jsx(sc,{size:11,className:"shrink-0"}),a?x.jsx("span",{className:"min-w-0 max-w-[70vw] truncate",children:a}):x.jsx("span",{children:"Didn’t finish"}),i.map(g=>x.jsx("button",{type:"button",onClick:g.onClick,className:pe("underline underline-offset-2",g.primary?"font-semibold text-del":"text-faint"),children:g.label},g.label))]}):x.jsxs("div",{className:pe("flex min-w-0 items-center gap-1 px-1 text-[11px] text-faint",l==="right"&&"justify-end"),children:[x.jsx(Tn,{size:11,className:"shrink-0 animate-spin"}),x.jsx("span",{className:"min-w-0 truncate",children:a??"Queued"}),i.map(g=>x.jsx("button",{type:"button",onClick:g.onClick,className:pe("ml-1 underline underline-offset-2",g.primary&&"font-semibold text-accent"),children:g.label},g.label))]})]})}const u5={queued:"Queued",opening:"Opening",configuring:"Configuring",sending:"Sending",running:"Running",returning:"Returning",returned:"Returned",failed:"Failed"};function dz(e,n,a){const i=n.flatMap(d=>{const f=a[d.id],h=f?.delegationId;return h?[{session:d,assignment:f,delegationId:h}]:[]}),l=new Map(i.map(d=>[d.delegationId,d])),o=new Set(e.map(d=>d.id)),u=e.map(d=>({key:`job:${d.id}`,order:d.createdAt,role:d.role,model:d.resolvedRole.model,agentType:d.resolvedRole.agentType,childSessionId:d.childSessionId??l.get(d.id)?.session.id,status:u5[d.status],state:d.status==="failed"?"failed":"busy"}));for(const{session:d,assignment:f,delegationId:h}of i){if(o.has(h))continue;const g=!!d.background_tasks.length,p=d.status==="working";u.push({key:`session:${d.id}`,order:f.assignedAt,role:f.role,model:d.model,agentType:d.agent_type,childSessionId:d.id,...p?{status:"Running",state:"busy"}:g?{status:"Waiting",state:"waiting"}:{}})}return u.sort((d,f)=>d.order-f.order||d.key.localeCompare(f.key))}function fz({jobs:e,sessions:n=[],roles:a={},activeSessionId:i,onSelectSession:l}){const o=dz(e,n,a);return o.length?x.jsx("nav",{"aria-label":"Delegated work",className:"flex shrink-0 items-center gap-1.5 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:o.map((u,d)=>{const f=u.state==="failed",h=!!u.childSessionId&&u.childSessionId===i,g=x.jsxs(x.Fragment,{children:[x.jsx(ro,{agentType:u.agentType,model:u.model,className:"size-3.5"}),x.jsx("span",{className:"max-w-24 truncate font-medium",children:u.role}),u.model?x.jsx("span",{className:"max-w-28 truncate text-faint",children:u.model}):null,u.status?x.jsxs("span",{className:pe("flex shrink-0 items-center gap-1",f?"text-del":"text-muted"),children:[u.state==="failed"?x.jsx(sc,{size:10}):u.state==="waiting"?x.jsx(Zd,{size:10}):x.jsx(Tn,{size:10,className:"animate-spin"}),u.status]}):null]}),p=u.childSessionId;return x.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[d?x.jsx(T7,{size:11,className:"shrink-0 text-faint"}):null,p?x.jsx("button",{type:"button",onClick:()=>l(p),className:pe("flex h-7 shrink-0 items-center gap-1.5 rounded-lg border border-border-soft px-2 text-[11px] active:bg-surface-2",h&&"border-accent/50 bg-surface-2",f&&"border-del/40"),children:g}):x.jsx("div",{className:pe("flex h-7 shrink-0 items-center gap-1.5 rounded-lg border border-border-soft px-2 text-[11px]",f&&"border-del/40"),children:g})]},u.key)})}):null}function hz(e){return u5[e]}function pz({jobs:e,sessionId:n,onSelectSession:a,onDismiss:i,onOpenRoles:l}){if(!n)return null;const o=e.filter(u=>u.parentSessionId===n||u.childSessionId===n);return o.length?x.jsx(x.Fragment,{children:o.map(u=>{const d=u.parentSessionId===n,f=u.status==="failed",h=d?u.childSessionId:u.parentSessionId,g=[];return h&&g.push({label:d?"Open worker":"Open parent",onClick:()=>a(h)}),f&&(g.push({label:"Edit roles",onClick:l,primary:!0}),g.push({label:"Dismiss delegation",onClick:()=>i(u.id)})),x.jsx(zf,{state:f?"failed":"pending",align:"wide",label:`${d?"Delegated":"Assigned"} · ${u.role} · ${u.resolvedRole.model}${u.resolvedRole.effort?` · ${u.resolvedRole.effort}`:""}`,meta:f?`${u.failure?.code??"failed"}: ${u.failure?.message??"The delegated job failed."}`:`${hz(u.status)}${u.attempts?` · attempt ${u.attempts+1}`:""}`,actions:g,dataMessageState:`delegation-${u.status}`,children:x.jsx(Wa,{children:u.prompt})},u.id)})}):null}const mz=1500,gz=400,x5=12,Ez=2,yz=x5+8,bz=2,Cz=1.1,vz=200,Az=420,kz=.6,d5=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,Yx=(e,n,a)=>Math.min(a,Math.max(n,e)),Bz=e=>e.scrollHeight-e.clientHeight-e.scrollTop<=bz?e.scrollTop+e.clientHeight:e.scrollTop+yz,Dz=(e,n)=>e.length===n.length&&e.every((a,i)=>a.top===n[i].top&&a.preview===n[i].preview);function wz(e,n,a){const i=Yx(n,0,e.scrollHeight-e.clientHeight);if(d5())return e.scrollTop=i,a(),()=>{};const l=e.clientHeight*Cz;Math.abs(i-e.scrollTop)>l&&(e.scrollTop=Yx(i+Math.sign(e.scrollTop-i)*l,0,e.scrollHeight-e.clientHeight));const o=e.scrollTop,u=i-o;if(!u)return a(),()=>{};const d=Yx(Math.abs(u)*kz,vz,Az),f=performance.now();let h=0,g=!1;const p=()=>{g||(g=!0,cancelAnimationFrame(h),e.removeEventListener("touchstart",p),e.removeEventListener("wheel",p))};e.addEventListener("touchstart",p,{passive:!0}),e.addEventListener("wheel",p,{passive:!0});const y=b=>{const C=Math.min(1,(b-f)/d);if(e.scrollTop=o+u*(1-(1-C)**5),C<1){h=requestAnimationFrame(y);return}p(),a()};return h=requestAnimationFrame(y),p}function Fz({scroller:e}){const[n,a]=D.useState([]),[i,l]=D.useState(0),[o,u]=D.useState(!1),[d,f]=D.useState(!1),h=D.useRef([]),g=D.useRef(!1),p=D.useRef(!1),y=D.useRef(0),b=D.useRef(0),C=D.useRef(0),v=D.useRef(()=>{}),k=D.useCallback(()=>{p.current||(clearTimeout(y.current),g.current=!1,u(!1))},[]),B=D.useCallback(()=>{g.current=!0,u(!0),clearTimeout(y.current),y.current=window.setTimeout(k,mz)},[k]),j=D.useCallback(()=>{const O=e.current;if(!O)return;const $=O.getBoundingClientRect().top-O.scrollTop,V=Array.from(O.querySelectorAll("[data-user-msg]"),oe=>({top:oe.getBoundingClientRect().top-$,preview:oe.dataset.userMsg??"",ts:oe.dataset.msgTs??null,state:oe.dataset.msgState??null,node:oe}));h.current=Dz(h.current,V)?h.current:V,a(h.current),l(Bz(O))},[e]),S=D.useCallback(()=>{C.current||(C.current=requestAnimationFrame(()=>{C.current=0,j()}))},[j]);D.useEffect(()=>{const O=e.current;if(!O)return;const $=()=>{b.current=performance.now()},V=()=>{!g.current&&performance.now()-b.current>gz||Y0()||(B(),S())},oe=()=>{Y0()&&k()};O.addEventListener("touchmove",$,{passive:!0}),O.addEventListener("wheel",$,{passive:!0}),O.addEventListener("scroll",V,{passive:!0}),document.addEventListener("selectionchange",oe);const te=()=>{g.current&&S()},Y=new ResizeObserver(te);Y.observe(O);const P=new MutationObserver(te);return P.observe(O,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>{O.removeEventListener("touchmove",$),O.removeEventListener("wheel",$),O.removeEventListener("scroll",V),document.removeEventListener("selectionchange",oe),Y.disconnect(),P.disconnect(),v.current(),C.current&&cancelAnimationFrame(C.current),clearTimeout(y.current)}},[e,B,k,S]);const _=O=>{const $=e.current,V=h.current[O];$&&V&&(v.current(),v.current=wz($,V.top-x5,()=>{d5()||V.node.firstElementChild?.animate([{boxShadow:"0 0 0 2px var(--color-accent)"},{boxShadow:"0 0 0 2px transparent"}],{duration:700,easing:"ease-out"})}),B())},T=D.useCallback(()=>{p.current=!1,f(!1),B()},[B]);if(n.length<Ez)return null;let F=-1;for(let O=0;O<n.length;O++)n[O].top<=i&&(F=O);const R=F>0?F-1:null,L=F+1<n.length?F+1:null,I=o||d;return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:pe("pointer-events-none absolute inset-x-0 bottom-0 z-20 flex justify-center pb-3 transition duration-200 ease-out motion-reduce:transition-none",I?"translate-y-0 opacity-100":"translate-y-3 opacity-0"),children:x.jsxs("nav",{"aria-label":"Jump to your messages",onFocus:B,className:pe("flex h-12 items-stretch overflow-hidden rounded-full border border-border bg-surface-2 shadow-lg shadow-black/60",I?"pointer-events-auto":"pointer-events-none"),children:[x.jsx(b2,{dir:"up",onClick:()=>R!==null&&_(R),disabled:R===null}),x.jsxs("button",{type:"button",onClick:()=>{j(),p.current=!0,f(!0),B()},"aria-haspopup":"dialog","aria-expanded":d,"aria-label":`Your messages — ${n.length} in this chat`,className:"flex items-center gap-1.5 border-border-soft border-x px-3.5 text-muted transition active:bg-surface active:text-text focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",children:[x.jsx(B8,{size:16,className:"shrink-0"}),x.jsxs("span",{className:"font-mono text-[13px] tabular-nums",children:[x.jsx("span",{className:"text-text",children:F+1||"–"}),x.jsxs("span",{className:"text-muted",children:["/",n.length]})]})]}),x.jsx(b2,{dir:"down",onClick:()=>L!==null&&_(L),disabled:L===null})]})}),d?x.jsx(Nz,{marks:n,current:F,onPick:O=>{T(),_(O)},onClose:T}):null]})}function Sz({mark:e}){if(e.state==="failed")return x.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"didn’t send"});const n=e.state==="sending"?"sending…":e.state==="queued"?"queued":e.ts&&Ng(e.ts);return n?x.jsx("span",{className:"shrink-0 text-[11px] text-muted tabular-nums",children:n}):null}function b2({dir:e,onClick:n,disabled:a}){const i=e==="up"?X3:Ea;return x.jsx("button",{type:"button",onClick:n,disabled:a,"aria-label":e==="up"?"Jump to your previous message":"Jump to your next message",className:"flex w-12 items-center justify-center text-muted transition active:bg-surface active:text-text disabled:text-faint/40 focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",children:x.jsx(i,{size:19})})}function Nz({marks:e,current:n,onPick:a,onClose:i}){const l=D.useRef(null),o=D.useRef(null);return D.useEffect(()=>{l.current?.focus({preventScroll:!0}),o.current?.scrollIntoView({block:"center"})},[]),x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:i,"aria-hidden":!0}),x.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":"Your messages",tabIndex:-1,onKeyDown:u=>u.key==="Escape"&&i(),className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[70%] max-w-md flex-col rounded-t-3xl border border-border-soft bg-surface shadow-xl outline-none md:mb-6 md:rounded-3xl",children:[x.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-2.5",children:[x.jsx("h2",{className:"flex-1 text-[15px] font-semibold",children:"Your messages"}),x.jsx("span",{className:"font-mono text-[12px] text-faint tabular-nums",children:e.length}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"-mr-2 flex size-11 items-center justify-center rounded-full text-muted transition active:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",children:x.jsx(bn,{size:19})})]}),x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain py-1",children:e.map((u,d)=>x.jsxs("button",{ref:d===n?o:void 0,type:"button",onClick:()=>a(d),"aria-current":d===n?"true":void 0,className:pe("flex min-h-14 w-full items-center gap-3 px-4 py-2.5 text-left transition active:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",d===n&&"bg-surface-2/60"),children:[x.jsx("span",{className:pe("w-5 shrink-0 text-right font-mono text-[11px] tabular-nums",d===n?"text-accent":"text-muted"),children:d+1}),x.jsx("span",{className:"line-clamp-2 min-w-0 flex-1 text-[13.5px] leading-snug text-text [overflow-wrap:anywhere]",children:u.preview||"Empty message"}),x.jsx(Sz,{mark:u})]},u.top))})]})]})}function f5({patch:e,truncated:n,className:a}){const i=D.useMemo(()=>e.split(`
47
+ `),[e]);return x.jsxs("pre",{className:pe("overflow-x-auto font-mono text-[11.5px] leading-[1.5]",a),children:[i.map((l,o)=>x.jsx("div",{className:pe("whitespace-pre",_z(l)),children:l||" "},o)),n?x.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function _z(e){return e.startsWith("+")&&!e.startsWith("+++")?"text-add":e.startsWith("-")&&!e.startsWith("---")?"text-del":e.startsWith("@@")?"text-accent":e.startsWith("diff ")||e.startsWith("index ")||e.startsWith("+++")||e.startsWith("---")?"text-faint":"text-muted"}function h5({sessionId:e,workspaceId:n,working:a,workingSince:i,turnStartedAt:l,queued:o,waiting:u,delegations:d=[],poll:f,onFork:h,onSelectSession:g,onDismissDelegation:p,onOpenRoles:y}){const{entries:b,loading:C,error:v}=Kw(e,f??!0),k=Be(w=>w.pending),B=Be(w=>w.removePending),j=sg(),S=ur(),_=D.useRef(null),T=D.useRef(!0),F=D.useMemo(()=>pN(b),[b]),R=D.useMemo(()=>F.map(w=>w.e),[F]),L=D.useMemo(()=>jz(F),[F]),I=D.useMemo(()=>fN(R),[R]),O=D.useMemo(()=>{const w=N9(R).filter(W=>W!==I);return new Set(w.map(wi))},[R,I]),$=D.useMemo(()=>new Map(N9(R).map(w=>[w,hN(R,w,l)])),[R,l]),V=async w=>{await(w.sessionId?je.dismissParked(w.sessionId):je.dismissPrompt(w.workspaceId)).catch(()=>{}),S.invalidateQueries({queryKey:["state"]})},oe=new Set(b.filter(w=>w.role==="user").map(w=>w.text.trim())),te=[...oe],Y=k.filter(w=>w.sessionId===e),P=Y.filter(w=>!(t9(w)&&te.some(W=>n9(w,W)))),Q=o?.text.trim()||null,Z=Q&&!oe.has(Q)&&!Y.some(w=>w.text.trim()===Q)?o:null,de=!!e&&d.some(w=>w.parentSessionId===e||w.childSessionId===e);D.useEffect(()=>{const w=b.filter(W=>W.role==="user").map(W=>W.text.trim());for(const W of k)W.sessionId===e&&t9(W)&&w.some(he=>n9(W,he))&&B(W.id)},[b,k,e,B]);const M=()=>{const w=_.current;w&&(T.current=w.scrollHeight-w.scrollTop-w.clientHeight<120)},z=u?.length??0;if(D.useLayoutEffect(()=>{const w=_.current;w&&T.current&&(w.scrollTop=w.scrollHeight)},[b,P.length,a,z]),D.useEffect(()=>{T.current=!0},[e]),D.useEffect(()=>{const w=_.current;if(!w)return;const W=new ResizeObserver(()=>{T.current&&(w.scrollTop=w.scrollHeight)});return W.observe(w),()=>W.disconnect()},[]),!e&&!Z)return x.jsx(yn,{children:"No active session in this workspace."});const X=b.length===0&&P.length===0&&!Z&&!de;return x.jsxs("div",{className:"relative flex min-h-0 min-w-0 flex-1",children:[x.jsx("div",{ref:_,onScroll:M,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:C&&X?x.jsx(Rr,{label:"Loading transcript…"}):v&&X?x.jsx(yn,{children:v}):X&&!a?x.jsx(yn,{children:"No messages yet."}):x.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[L.map(w=>w.kind==="steps"?x.jsx(Tz,{nodes:w.nodes},w.key):x.jsxs(D.Fragment,{children:[x.jsx(Lf,{node:w.node}),O.has(wi(w.node.e))?x.jsx(C2,{text:w.node.e.text,at:w.node.e.ts,startedAt:$.get(w.node.e),rowid:w.node.e.rowid,through:w.node.e.rowid,onFork:h}):null]},w.key)),I?x.jsx(C2,{text:I.text,at:I.ts,startedAt:$.get(I),rowid:I.rowid,working:a,onFork:h}):null,d.length&&g&&p&&y?x.jsx(pz,{jobs:d,sessionId:e,onSelectSession:g,onDismiss:p,onOpenRoles:y}):null,P.map(w=>x.jsx(zz,{p:w,onRetry:()=>j({id:w.id,sessionId:w.sessionId,workspaceId:w.workspaceId,text:w.text,queue:w.queue,workflow:w.workflow}),onDismiss:()=>B(w.id)},w.id)),Z?x.jsx(Oz,{queued:Z,onRetry:e?()=>j({id:`queued:${Z.sessionId??Z.workspaceId}:${Z.createdAt}`,sessionId:e,workspaceId:n,text:Z.text}):void 0,onDismiss:()=>V(Z)}):null,u?.map(w=>x.jsx(Iz,{task:w},w.taskId)),a?x.jsx(Pz,{since:i}):null]})}),x.jsx(Fz,{scroller:_})]})}const wi=e=>`${e.rowid}-${e.id}`,Mz=(e,n)=>e.nodes.length===n.nodes.length&&e.nodes.every((a,i)=>a.e===n.nodes[i]?.e);function jz(e){const n=[];let a=[];const i=()=>{if(a.length>1)n.push({kind:"steps",key:`steps-${wi(a[0].e)}`,nodes:a});else for(const l of a)n.push({kind:"entry",key:wi(l.e),node:l});a=[]};for(const l of e){if(!l.e.subagentLabel&&(l.e.role==="tool"||l.e.role==="thinking")){a.push(l);continue}i(),n.push({kind:"entry",key:wi(l.e),node:l})}return i(),n}const Tz=D.memo(function({nodes:n}){const a=n.filter(o=>o.e.error).length,i=n[n.length-1].e,l=i.role==="thinking"?"Thinking":i.text;return x.jsxs("details",{className:"group/steps min-w-0 overflow-hidden rounded-xl border border-border-soft bg-surface/40",children:[x.jsxs("summary",{className:"flex cursor-pointer select-none list-none items-baseline gap-2 overflow-hidden whitespace-nowrap px-3 py-1.5 [&::-webkit-details-marker]:hidden",children:[x.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/steps:rotate-90",children:"▸"}),x.jsxs("span",{className:"shrink-0 text-[12.5px] text-muted",children:[n.length," steps"]}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] text-faint group-open/steps:invisible",children:l}),a?x.jsxs("span",{className:"shrink-0 text-[11px] text-del",children:[a," failed"]}):null]}),x.jsx("div",{className:"flex min-w-0 flex-col gap-2.5 border-t border-border-soft px-2 py-2.5",children:n.map(o=>x.jsx(Lf,{node:o},wi(o.e)))})]})},Mz);function Lf({node:e}){return e.e.subagentLabel?x.jsx(Rz,{node:e}):x.jsx(Lz,{e:e.e})}function Rz({node:e}){const{e:n,children:a}=e,i=n.output&&(n.error||n.tool==="Agent"||n.tool==="Task")?n.output:null,l=a.length>0||!!i;return x.jsxs("section",{className:"min-w-0 px-0.5","data-subagent":n.subagentLabel,children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 py-1 text-[12.5px]",children:[x.jsx(dD,{size:14,strokeWidth:1.7,className:"shrink-0 text-faint","aria-hidden":!0}),x.jsx("span",{className:"shrink-0 font-medium text-text",children:"Agent"}),x.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11.5px] text-muted",children:n.subagentLabel}),n.error?x.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"failed"}):null]}),l?x.jsx("div",{className:"ml-[7px] min-w-0 border-l border-border pl-4 pb-1 pt-1",children:x.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[a.map(o=>x.jsx(Lf,{node:o},wi(o.e))),i?x.jsx("div",{className:"flex flex-col items-start","data-subagent-result":!0,children:x.jsx(jd,{className:pe("max-w-[92%] px-0.5",n.error&&"text-del/80"),children:x.jsx(Wa,{children:i})})}):null]})}):null]})}function Oz({queued:e,onRetry:n,onDismiss:a}){const i=e.status==="failed",l=!i&&!!e.sessionId;return x.jsx(zf,{state:i?"failed":"pending",meta:i?e.error||"Didn’t send":x.jsxs(x.Fragment,{children:[e.reason??"The relay is sending this",l?x.jsx(ga,{className:"ml-1"}):null]}),actions:i?[...n?[{label:"Retry",onClick:n,primary:!0}]:[],{label:"Dismiss prompt",onClick:a}]:[],dataUserMessage:df(e.text),dataMessageState:"queued",children:x.jsx("div",{children:x.jsx(Wa,{children:e.text})})})}function zz({p:e,onRetry:n,onDismiss:a}){const i=e.status==="error";return x.jsx(zf,{state:i?"failed":"pending",meta:i?e.error||"Didn’t send":"Sending…",actions:i?[{label:"Retry",onClick:n,primary:!0},{label:"Dismiss message",onClick:a}]:[],dataUserMessage:df(e.text),dataMessageState:i?"failed":"sending",children:x.jsx("div",{children:x.jsx(Wa,{children:e.text})})})}const Lz=D.memo(function({e:n}){return n.role==="user"?x.jsxs("div",{className:"flex flex-col items-end gap-0.5","data-user-msg":df(n.text),"data-msg-ts":n.ts,"data-msg-state":n.queued?"queued":void 0,children:[x.jsxs(jd,{className:pe("max-w-[85%] bg-accent-soft text-text",n.queued&&"opacity-60"),children:[n.queued?x.jsx(Td,{children:"queued"}):null,x.jsx(Wa,{children:n.text})]}),x.jsx("span",{className:"pr-1 text-[11px] text-faint",children:pS(n.ts)})]}):n.role==="tool"?x.jsx(Uz,{e:n}):n.role==="thinking"?x.jsxs("details",{className:"group/think px-1",children:[x.jsxs("summary",{className:"cursor-pointer select-none list-none text-[11px] font-semibold uppercase tracking-wide text-faint [&::-webkit-details-marker]:hidden",children:[x.jsx("span",{className:"mr-1 inline-block transition-transform group-open/think:rotate-90",children:"▸"}),"Thinking"]}),x.jsx("div",{className:"mt-1 border-l-2 border-border-soft pl-3 text-[13px] italic leading-relaxed text-muted",children:x.jsx(Wa,{children:n.text})})]}):n.role==="system"?x.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:n.text}):x.jsx("div",{className:"flex flex-col items-start",children:x.jsx(jd,{className:"max-w-[92%] px-0.5",children:x.jsx(Wa,{children:n.text})})})});function C2({text:e,at:n,startedAt:a,working:i,rowid:l,through:o,onFork:u}){const[d,f]=D.useState(!1),[h,g]=D.useState(!1),[p,y]=D.useState(null),[b,C]=D.useState("chat"),[v,k]=D.useState(()=>Date.now());D.useEffect(()=>{const _=setInterval(()=>k(Date.now()),6e4);return()=>clearInterval(_)},[]);const B=a?Xn(n)-Xn(a):Number.NaN,j=[B>0?ff(B):null,mS(n,v)].filter(Boolean).join(" · "),S=async _=>{if(!(!u||h)){g(!0),y(null),f(!1);try{await u({thinking:_.thinking,tools:_.tools,destination:b,through:_.only?void 0:o,only:_.only?l:void 0})}catch(T){y(T instanceof Error?T.message:"Could not fork this chat")}finally{g(!1)}}};return x.jsxs("div",{className:"flex max-w-full flex-col items-start gap-1",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[!i&&j?x.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:j}):null,x.jsx(jg,{text:e,label:"response",className:"size-7 rounded-lg border border-border-soft bg-surface/70"}),u?x.jsxs("div",{className:"relative",children:[x.jsxs("div",{className:"flex items-center overflow-hidden rounded-lg border border-border-soft bg-surface/70 text-muted",children:[x.jsxs("button",{type:"button",onClick:()=>{S({thinking:!0,tools:!1})},disabled:h,"aria-label":b==="workspace"?"Fork to a new workspace with reasoning":o?"Fork chat from this response":"Fork chat with reasoning",title:b==="workspace"?"New workspace with current code":"New chat, same files",className:"flex h-7 items-center gap-1 whitespace-nowrap px-2 text-[11px] font-medium transition active:bg-surface-2 disabled:opacity-50",children:[h?x.jsx(Tn,{size:13,className:"animate-spin"}):x.jsx(A8,{size:13}),b==="workspace"?"Fork workspace":"Fork"]}),x.jsx("button",{type:"button",onClick:()=>f(_=>!_),disabled:h,"aria-label":"Choose fork options","aria-haspopup":"menu","aria-expanded":d,className:"flex size-7 items-center justify-center border-l border-border-soft transition active:bg-surface-2 disabled:opacity-50",children:x.jsx(Ea,{size:14,className:pe("transition-transform",d&&"rotate-180")})})]}),d?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-20",onClick:()=>f(!1),"aria-hidden":!0}),x.jsxs("div",{role:"menu","aria-label":"Fork options",className:"absolute bottom-full left-0 z-30 mb-1 w-60 overflow-hidden rounded-xl border border-border bg-surface py-1 shadow-xl",children:[x.jsxs("button",{type:"button",role:"menuitemcheckbox","aria-checked":b==="workspace",onClick:()=>C(_=>_==="chat"?"workspace":"chat"),className:"flex w-full items-center gap-3 border-b border-border-soft px-3 py-2 text-left active:bg-surface-2",children:[x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-[12px] font-medium text-text",children:"To new workspace"}),x.jsx("span",{className:"block text-[11px] text-faint",children:"Carry the current code into its own worktree"})]}),x.jsx("span",{"aria-hidden":!0,className:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",b==="workspace"?"bg-accent":"border border-border bg-surface-2"),children:x.jsx("span",{className:pe("absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow-sm transition-transform",b==="workspace"?"translate-x-5":"translate-x-0")})})]}),x.jsx(O0,{label:"Last message only",detail:"This response, without history",onClick:()=>{S({thinking:!1,tools:!1,only:!0})}}),x.jsx(O0,{label:"Concise",detail:"Messages only",onClick:()=>{S({thinking:!1,tools:!1})}}),x.jsx(O0,{label:"With reasoning",detail:"Messages and reasoning",onClick:()=>{S({thinking:!0,tools:!1})}}),x.jsx(O0,{label:"Full transcript",detail:"Messages, reasoning, and tools",onClick:()=>{S({thinking:!0,tools:!0})}})]})]}):null]}):null]}),p?x.jsxs("span",{className:"max-w-[85vw] text-[11px] text-del",children:[p,Fi(p)?x.jsx(ga,{className:"ml-1"}):null]}):null]})}function O0({label:e,detail:n,onClick:a}){return x.jsxs("button",{type:"button",role:"menuitem",onClick:a,className:"flex w-full flex-col px-3 py-2 text-left active:bg-surface-2",children:[x.jsx("span",{className:"text-[12px] font-medium text-text",children:e}),x.jsx("span",{className:"text-[11px] text-faint",children:n})]})}function Pz({since:e}){const[n,a]=D.useState(()=>Date.now());return D.useEffect(()=>{if(!e)return;a(Date.now());const i=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(i)},[e]),x.jsxs("div",{className:"fade-in flex items-center justify-start gap-2",children:[x.jsxs("div",{className:"flex items-center gap-1 px-0.5 py-3",children:[x.jsx("span",{className:"typing-dot"}),x.jsx("span",{className:"typing-dot"}),x.jsx("span",{className:"typing-dot"})]}),e?x.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:ff(n-e)}):null]})}function Iz({task:e}){const n=Xn(e.since),[a,i]=D.useState(()=>Date.now());return D.useEffect(()=>{i(Date.now());const l=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(l)},[]),x.jsxs("div",{className:"fade-in flex min-w-0 items-center gap-2 px-0.5 py-1.5 text-[12.5px] text-muted",children:[x.jsx(Zd,{size:13,className:"shrink-0 text-faint"}),x.jsx("span",{className:"shrink-0 text-faint",children:"Waiting for task"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.description}),Number.isNaN(n)?null:x.jsx("span",{className:"shrink-0 text-[11px] tabular-nums text-faint",children:ff(a-n)})]})}const Uz=D.memo(function({e:n}){const[a,i]=D.useState(!1);if(n.error&&!n.tool)return x.jsx("div",{className:"overflow-hidden rounded-xl border border-del/30 bg-del/5 px-3 py-2",children:x.jsx(Kx,{text:n.text,className:"line-clamp-4 text-del/80"})});const l=l5(n.detail),o=n.images??[];return!n.detail&&!n.output&&!o.length?x.jsxs("div",{className:"flex min-w-0 items-baseline gap-2 overflow-hidden whitespace-nowrap rounded-xl border border-border-soft bg-surface/60 px-3 py-1.5",children:[x.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint",children:"·"}),x.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:n.text})]}):x.jsxs("details",{open:a,onToggle:u=>i(u.currentTarget.open),className:pe("group/tool min-w-0 overflow-hidden rounded-xl border",n.error?"border-del/30 bg-del/5":"border-border-soft bg-surface/60"),children:[x.jsxs("summary",{className:"flex cursor-pointer select-none list-none items-baseline gap-2 overflow-hidden whitespace-nowrap px-3 py-1.5 [&::-webkit-details-marker]:hidden",children:[x.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/tool:rotate-90",children:"▸"}),x.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:n.text}),n.detail?l?x.jsx(Md,{href:l,title:`Open ${n.detail}`,onClick:u=>u.stopPropagation(),className:"min-w-0 flex-1 truncate font-mono text-[11px] text-accent underline underline-offset-2 group-open/tool:invisible",children:n.detail}):x.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-faint group-open/tool:invisible",children:n.detail}):null,n.error?x.jsx("span",{className:"ml-auto shrink-0 text-[11px] text-del",children:"failed"}):null]}),x.jsxs("div",{className:"flex min-w-0 flex-col gap-2 border-t border-border-soft px-3 py-2",children:[n.detail?l?x.jsx(Md,{href:l,title:`Open ${n.detail}`,className:"block whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed text-accent underline underline-offset-2 [overflow-wrap:anywhere]",children:n.detail}):x.jsx(Kx,{text:n.detail,className:"text-muted",language:lN(n.tool)}):null,n.output?x.jsxs("div",{className:pe("min-w-0",n.detail&&"border-t border-border-soft pt-2"),children:[x.jsx(Td,{children:n.error?"error":n.diff?"changes":"output"}),n.diff?x.jsx(f5,{patch:n.output}):x.jsx(Kx,{text:n.output,className:n.error?"text-del/80":"text-muted",language:n.error?null:oN(n.tool,n.detail)})]}):null,a&&o.length?x.jsxs("div",{className:pe("flex min-w-0 flex-col gap-2",(n.detail||n.output)&&"border-t border-border-soft pt-2"),children:[x.jsx(Td,{children:qz(o.length,"image")}),o.map(u=>x.jsx($z,{reference:u},u))]}):null]})]})}),Hz="whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed [overflow-wrap:anywhere]";function Kx({text:e,className:n,language:a}){return x.jsx("pre",{className:pe(Hz,n),children:a?x.jsx(Xg,{text:e,language:a}):e})}function $z({reference:e}){const[n,a]=D.useState(null),[i,l]=D.useState(!1);return D.useEffect(()=>{let o=!1;return je.toolImage(e).then(u=>!o&&a(u)).catch(()=>!o&&l(!0)),()=>{o=!0}},[e]),i?x.jsx("span",{className:"text-[11px] text-faint",children:"Image unavailable."}):n?x.jsx("img",{src:n,alt:"Tool output",className:"max-w-full rounded-lg border border-border-soft"}):x.jsx(Rr,{label:"Loading image…"})}const qz=(e,n)=>`${e} ${n}${e===1?"":"s"}`;function jd({children:e,className:n}){return x.jsx("div",{className:pe("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",n),children:e})}function Td({children:e}){return x.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:e})}function Gz({workspace:e}){const[n,a]=g8(),i=n.get("session"),{data:l,isLoading:o}=rg(e.id,!1),u=l?.sessions??[],d=(i&&u.some(h=>h.id===i)?i:null)??u[0]?.id??null,f=[e.repo_name,e.branch].filter(Boolean).join(" · ");return x.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[x.jsx(bd,{title:$r(e),subtitle:f,menu:!0,right:x.jsxs("span",{className:"flex shrink-0 items-center gap-1 rounded-md bg-surface-2 px-2 py-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:[x.jsx(Kd,{size:12}),"Archived"]})}),u.length>1?x.jsx("nav",{className:"flex shrink-0 items-center gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:u.map(h=>x.jsx("button",{type:"button",onClick:()=>a({session:h.id},{replace:!0}),className:pe("pill shrink-0",h.id===d&&"pill-active"),children:x.jsx("span",{className:"max-w-36 truncate",children:h.title||"Untitled"})},h.id))}):null,!o&&!d?x.jsx(yn,{children:"This workspace was archived with no chat in it."}):x.jsx(h5,{sessionId:d,workspaceId:e.id,turnStartedAt:u.find(h=>h.id===d)?.turn_started_at,poll:!1}),x.jsx("div",{className:"pb-safe shrink-0 border-t border-border-soft px-4 py-3 text-center text-xs text-faint",children:"Read-only — unarchive it in Conductor to reply."})]})}const p5=[{key:"initial",label:"Initial context",barClass:"bg-context-initial",ringClass:"stroke-context-initial"},{key:"chat",label:"Chat",barClass:"bg-context-chat",ringClass:"stroke-context-chat"},{key:"thinking",label:"Thinking",barClass:"bg-working",ringClass:"stroke-working"},{key:"tools",label:"Tool calls",barClass:"bg-context-tools",ringClass:"stroke-context-tools"}];function Vz(e,n){if(!n||n.totalTokens<=0)return[];const a=Math.min(100,Math.max(0,e));let i=0;return p5.flatMap(l=>{const o=Math.max(0,n.categories[l.key]),u=Math.min(100-i,o/n.totalTokens*a);if(u<=0)return[];const d={key:l.key,label:l.label,ringClass:l.ringClass,length:u,offset:i};return i+=u,[d]})}const Qz=()=>typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches;function m5(e,n=Qz()){return e.key!=="Enter"||e.nativeEvent.isComposing||e.shiftKey?!1:e.metaKey||e.ctrlKey?!0:!n}const Mr=6e4,Yz=e=>/(?:^|[:/])(claude|fable|haiku|opus|sonnet)|^(claude|fable|haiku|opus|sonnet)/.test(e),v2=e=>/(?:^|[:/])(openai|gpt|o[1-9])|^(openai|gpt|o[1-9]|\d)/.test(e);function Kz(e){const n=e.agent_type?.trim().toLowerCase()??"",a=e.model?.trim().toLowerCase()??"";return(n==="claude"||n==="anthropic")&&e.prompt_cache_ttl_ms&&e.prompt_cache_ttl_ms>0?pa(e.prompt_cache_ttl_ms,!0):n==="claude"||n==="anthropic"?pa(60*Mr,!1):n==="codex"||n==="openai"?pa(30*Mr,!1):n==="cursor"?Yz(a)?pa(5*Mr,!1):(v2(a),pa(30*Mr,!1)):(n==="acp"||n==="opencode")&&v2(a)?pa(30*Mr,!1):pa(5*Mr,!1)}function Xz(e,n=Date.now()){if(!e.last_user_message_at)return null;const a=Xn(e.updated_at);if(!Number.isFinite(a))return null;const i=Kz(e);return n-a>=i.ttlMs?i:null}function pa(e,n){return{ttlMs:e,ttlLabel:e>=60*Mr?`${e/(60*Mr)}h`:`${e/Mr}m`,observed:n}}function g5({value:e,models:n,onSelect:a,defaultModel:i,onSetDefault:l,settingDefault:o,open:u,onOpenChange:d,isFetching:f=!1,isError:h=!1,empty:g="No models are cached yet. Open a model picker in a chat first.",placement:p="above",className:y,beforeOptions:b,renderTrigger:C}){const[v,k]=D.useState(!1),B=u??v,j=_=>{const T=typeof _=="function"?_(B):_;u===void 0&&k(T),d?.(T)},S=ND(n);return x.jsxs("div",{className:"relative",children:[C?C({picking:B,toggle:()=>j(_=>!_)}):x.jsxs("button",{type:"button",onClick:()=>j(_=>!_),"aria-haspopup":"menu","aria-expanded":B,className:pe("ctl flex max-w-40 items-center gap-1",e&&"ctl-staged",y),children:[x.jsx("span",{className:"truncate",children:e?dd(e):"Model"}),x.jsx(Ea,{size:13,className:"shrink-0"})]}),B?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","aria-label":"Close model picker",onClick:()=>j(!1),className:"fixed inset-0 z-30 cursor-default"}),x.jsxs("div",{className:pe("absolute left-0 z-40 max-h-64 w-64 overflow-y-auto rounded-xl border border-border bg-surface-2 py-1 shadow-xl shadow-black/40",p==="below"?"top-full mt-2":"bottom-full mb-2"),children:[b,f?x.jsx(to,{size:10,className:"mx-3 my-1.5 animate-spin text-faint"}):null,S.length?S.map(_=>x.jsxs("fieldset",{className:"m-0 min-w-0 border-0 p-0",children:[x.jsx("legend",{className:"px-3 pb-0.5 pt-1.5 text-[11px] font-medium text-faint",children:_.label}),_.models.map(T=>{const F=i===T;return x.jsxs("div",{className:"flex items-stretch active:bg-surface",children:[x.jsxs("button",{type:"button",onClick:()=>{j(!1),a(T)},className:"flex min-w-0 flex-1 items-center gap-2 py-2 pl-3 pr-1 text-left text-sm",children:[x.jsx("span",{className:"min-w-0 flex-1 truncate",children:dd(T)}),x.jsx(qr,{size:13,className:pe("shrink-0 text-accent",e!==T&&"invisible")})]}),l?x.jsx("button",{type:"button",disabled:F||o!==void 0,onClick:()=>{j(!1),l(T)},"aria-label":F?`${T} is the default model`:`Set ${T} as default and select`,"aria-pressed":F,className:pe("flex w-9 shrink-0 items-center justify-center text-faint disabled:opacity-60",F&&"text-accent"),children:o===T?x.jsx(Tn,{size:14,className:"animate-spin"}):x.jsx(xd,{size:14,fill:F?"currentColor":"none"})}):F?x.jsx(xd,{size:14,fill:"currentColor","aria-label":`${T} is the default model`,className:"mx-3 self-center text-accent"}):null]},T)})]},_.label)):x.jsx("div",{className:"px-3 py-2 text-sm text-muted",children:f?"Reading Conductor’s model list…":g}),h?x.jsx("div",{className:"px-3 py-1.5 text-[11px] text-del",children:n.length?"Couldn’t refresh. Showing saved models.":"Couldn’t read the model list."}):null]})]}):null]})}function E5({model:e,providerModel:n,agentType:a,models:i,modelPickerOpen:l,onModelPickerOpenChange:o,modelsFetching:u=!1,modelsError:d=!1,defaultModel:f,onSetDefaultModel:h,settingDefaultModel:g,fast:p,effort:y,plan:b,showEmptyEffort:C=!1,modelStaged:v=!1,fastStaged:k=!1,effortStaged:B=!1,planStaged:j=!1,onModelChange:S,onFastChange:_,onEffortChange:T,onPlanChange:F,disabled:R=!1,hidePlan:L=!1,beforeModel:I,status:O}){const $=pf(a,n),V=mf(a,n),oe=gf(a,n);return x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-0.5",children:[I,x.jsx("div",{className:"min-w-0",children:x.jsx(g5,{value:e,models:i,open:l,onOpenChange:o,isFetching:u,isError:d,defaultModel:f,onSetDefault:h,settingDefault:g,onSelect:S,renderTrigger:({picking:te,toggle:Y})=>x.jsxs("button",{type:"button",disabled:R,onClick:Y,"aria-label":`Change model, currently ${e}`,"aria-haspopup":"menu","aria-expanded":te,className:pe("flex h-8 max-w-full min-w-0 items-center gap-1 rounded-md px-1 text-[13px] font-medium text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",v&&"text-accent"),children:[x.jsx(ro,{agentType:a,model:n,className:"size-[15px]"}),x.jsx("span",{className:"truncate",children:dd(e)})]})})}),oe?x.jsx("button",{type:"button",disabled:R,onClick:_,"aria-label":`Fast mode ${p===void 0?"default":p?"on":"off"}`,"aria-pressed":p===!0,className:pe("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",p&&"text-text",k&&"text-accent"),children:x.jsx(ef,{size:17})}):null,V&&(y||C)?x.jsxs("button",{type:"button",disabled:R,onClick:T,"aria-label":`Reasoning effort: ${y?Ql[y]:"default"}`,className:pe("flex h-8 shrink-0 items-center gap-1 rounded-md px-1 text-[13px] font-medium text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",B&&"text-accent"),children:[x.jsx(Wg,{effort:y??""}),x.jsx("span",{className:"max-[340px]:hidden",children:y?Ql[y]:"Effort"})]}):null,$&&!L?x.jsx("button",{type:"button",disabled:R,onClick:F,"aria-label":`Plan mode ${b===void 0?"default":b?"on":"off"}`,"aria-pressed":b===!0,className:pe("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",b&&"text-text",j&&"text-accent"),children:x.jsx(D8,{size:17})}):null]}),O?x.jsx("div",{className:"px-2 pt-0.5 text-[11px] text-faint",children:O}):null]})}function Pf({className:e}){return x.jsx("span",{className:pe("inline-flex h-4 shrink-0 items-center rounded bg-accent/10 px-1.5 font-mono text-[9px] font-semibold uppercase tracking-wide text-accent",e),children:"Beta"})}function y5({active:e,onChange:n}){return x.jsxs("button",{type:"button",onClick:()=>n(!e),title:"Run this task through your configured delegated roles","aria-label":`Workflow mode ${e?"on":"off"}`,"aria-pressed":e,className:pe("flex h-8 shrink-0 items-center gap-1 rounded-md px-1.5 text-[13px] font-medium text-muted transition active:bg-surface-2 active:text-text",e&&"bg-accent/10 text-accent"),children:[x.jsx(lc,{size:15}),x.jsx("span",{children:"Workflow"}),x.jsx(Pf,{className:"-mr-0.5"})]})}const Zz=600*1e3,Wz={};function z0(e,n){return e===n?void 0:e}function Jz({session:e,workspaceId:n,workflow:a}){const[i,l]=D.useState(!1),[o,u]=D.useState(),[d,f]=D.useState(),h=Be(Z=>Z.agentDrafts[e.id])??Wz,g=Be(Z=>Z.stageAgent),p=ur(),y=Be(Z=>Z.pending.some(de=>de.sessionId===e.id&&de.status==="sending")),b=oc(),C=b.data?.groups.find(Z=>Z.agentType===(e.agent_type??"unknown")),v=!!C?.defaultModel&&Date.now()-C.updatedAt<Zz,k=Qw(e,n,i&&!a?.active&&!v),B=k.data?.models??C?.models??[],j=k.data?.defaultModel??b.data?.defaultModel??C?.defaultModel,S=Z=>g(e.id,Z),_=e.claude_effort_level??void 0,T=e.permission_mode==="plan",F=!!e.fast_mode,R=h.effort??_,L=h.plan??T,I=h.fast??F,O=Object.keys(h).length>0,$=h.model??(T8(e.model,B)||"Model"),V=h.model??e.model,oe=pf(e.agent_type,V),te=mf(e.agent_type,V),Y=gf(e.agent_type,V),P=a?.role?.model??"Planning role";D.useEffect(()=>{!oe&&h.plan!==void 0&&g(e.id,{plan:void 0})},[oe,e.id,h.plan,g]),D.useEffect(()=>{!te&&h.effort!==void 0&&g(e.id,{effort:void 0}),!Y&&h.fast!==void 0&&g(e.id,{fast:void 0})},[te,Y,e.id,h.effort,h.fast,g]);const Q=async Z=>{if(!o){u(Z),f(void 0);try{const de=await je.setDefaultModel(e.id,Z,n);if(!de.ok)throw new Error(de.error??"could not set the default model");g(e.id,{model:void 0}),await Promise.all([p.invalidateQueries({queryKey:["model-catalog"]}),p.invalidateQueries({queryKey:["sessions",n]}),p.invalidateQueries({queryKey:["state"]})])}catch(de){f(de instanceof Error?de.message:"could not set the default model")}finally{u(void 0)}}};return x.jsx(E5,{model:a?.active?P:$,providerModel:a?.active?a.role?.model??null:V,agentType:a?.active&&a.role?Bs(a.role.model)??null:e.agent_type,models:B,modelPickerOpen:i,onModelPickerOpenChange:l,modelsFetching:k.isFetching||b.isFetching,modelsError:k.isError,defaultModel:j,onSetDefaultModel:Z=>{Q(Z)},settingDefaultModel:o,fast:a?.active?a.role?.fast:I,effort:a?.active?a.role?.effort:R,plan:a?.active?void 0:L,showEmptyEffort:a?.active,modelStaged:!a?.active&&h.model!==void 0,fastStaged:!a?.active&&h.fast!==void 0,effortStaged:!a?.active&&h.effort!==void 0,planStaged:!a?.active&&h.plan!==void 0,onModelChange:Z=>S({model:z0(Z,h.model)}),onFastChange:()=>S({fast:z0(!I,F)}),onEffortChange:()=>S({effort:z0(Zg(R),_)}),onPlanChange:()=>S({plan:z0(!L,T)}),disabled:a?.active,hidePlan:a?.active,beforeModel:a?x.jsx(y5,{active:a.active,onChange:Z=>{l(!1),a.onChange(Z)}}):void 0,status:a?.active?a.problem?x.jsx("span",{className:"text-del",children:a.problem}):a.loading?"Loading the planning role…":"Planning root · starts tracked sibling-chat delegation":d?x.jsxs("span",{className:"text-del",children:[d,Fi(d)?x.jsx(ga,{className:"ml-1"}):null]}):o?"Setting default and selecting…":O?y?"Applying…":"Applies when you send":void 0})}const eL=[];function tL({session:e,sessionId:n,workspaceId:a,working:i,actuator:l,onFork:o,onContext:u,workflowStarted:d=!1,focusDraft:f=!1,onDraftFocused:h}){const g=n??a,p=Be(ie=>ie.drafts[g]??""),y=Be(ie=>ie.draftAttachments[g]??eL),b=Be(ie=>ie.setDraft),C=Be(ie=>ie.addDraftAttachment),v=Be(ie=>ie.removeDraftAttachment),k=Be(ie=>ie.clearDraftContent),B=Be(ie=>ie.moveDraft),j=Be(ie=>ie.setFocusedDraft),S=Be(ie=>ie.online),_=Be(ie=>ie.clearWorking),T=sg(),F=ur(),[R,L]=D.useState(!1),[I,O]=D.useState(null),[$,V]=D.useState(!1),[oe,te]=D.useState(null),[Y,P]=D.useState({sessionId:null,active:!1}),Q=Y.sessionId===n&&Y.active,Z=ie=>P({sessionId:n,active:ie}),de=D.useRef(null),M=D.useRef(null),z=D.useRef(new Set),X=D.useRef(0),[w,W]=D.useState([]),[he,re]=D.useState(!1),De=w.filter(ie=>ie.sessionId===n),Ge=[...y.map(ie=>({...ie,id:ie.path,status:"ready"})),...De],we=De.some(ie=>ie.status==="uploading"),st=[...y.map(ie=>ie.token),p.trim()].filter(Boolean).join(`
48
+ `),ut=Be(ie=>ie.pending.some(pt=>pt.sessionId===n&&!!pt.workflow)),Lt=!!e&&!e.last_user_message_at&&!i&&!d&&!ut,Ct=Q||Lt,Ce=lf(Ct),Ae=Ce.data?.roles.planning,Oe=Ce.data?.issues.find(ie=>ie.role==="planning"),Ye=e?.permission_mode==="plan"?"Workflow needs ordinary chat mode. Turn Plan off first.":Ce.isError?"Could not load delegated roles.":Ce.data?.warning?Ce.data.warning:Ce.data&&!Ae?"Workflow mode needs a configured planning role.":Oe?.error.message,kt=!!Ae&&!Ye;D.useEffect(()=>{n&&B(a,n)},[a,n,B]),D.useEffect(()=>(document.activeElement===de.current&&j(g),()=>{Be.getState().focusedDraft===g&&j(null)}),[g,j]);const ht=()=>{const ie=de.current;ie&&(ie.style.height="auto",ie.style.height=`${Math.min(ie.scrollHeight,160)}px`)};D.useEffect(ht,[p]),D.useEffect(()=>{if(!f)return;const ie=de.current;ie&&(ie.focus({preventScroll:!0}),ie.setSelectionRange(ie.value.length,ie.value.length),h?.())},[f,h]);const Zt=(ie=!1)=>{if(!st||we||$||!n||!S||ut||Q&&!kt)return;const pt=Q;T({sessionId:n,workspaceId:a,text:st,queue:pt?!1:ie,workflow:pt}).then(me=>{me&&pt&&P(ae=>ae.sessionId===n?{...ae,active:!1}:ae)}),k(g),W(me=>me.filter(ae=>ae.sessionId!==n))},vt=async()=>{if(!(!(o&&st)||we||$||!S)){V(!0),te(null);try{await o(st),k(g),W(ie=>ie.filter(pt=>pt.sessionId!==n))}catch(ie){te(ie instanceof Error?ie.message:"Could not fork this chat")}finally{V(!1)}}},ln=ie=>{if(y.some(pt=>pt.path===ie)){v(g,ie);return}z.current.add(ie),W(pt=>pt.filter(me=>me.id!==ie))},On=async ie=>{if(!(!n||!S))for(const pt of Array.from(ie)){const me=crypto.randomUUID();W(ae=>[...ae,{id:me,sessionId:n,name:pt.name||"attachment",status:"uploading"}]);try{const ae=await je.uploadAttachment(n,a,pt);if(z.current.delete(me))continue;C(n,ae.attachment),W(rt=>rt.filter(Qe=>Qe.id!==me))}catch(ae){if(z.current.delete(me))continue;W(rt=>rt.map(Qe=>Qe.id===me?{...Qe,status:"error",error:ae instanceof Error?ae.message:"Upload failed"}:Qe))}}},We=ie=>{ie?.length&&On(ie)},Cn=ie=>Array.from(ie.dataTransfer.types).includes("Files"),le=ie=>{Cn(ie)&&(ie.preventDefault(),X.current+=1,re(!0))},Ee=ie=>{Cn(ie)&&(X.current-=1,X.current<=0&&(X.current=0,re(!1)))},_e=ie=>{Cn(ie)&&(ie.preventDefault(),ie.dataTransfer.dropEffect="copy")},Ke=ie=>{Cn(ie)&&(ie.preventDefault(),X.current=0,re(!1),We(ie.dataTransfer.files))},nt=async()=>{if(!(!n||R||!S)){L(!0),O(null);try{const ie=await je.stop(n,a);ie.ok?(_(n),await F.invalidateQueries({queryKey:["sessions",a]}),F.invalidateQueries({queryKey:["state"]})):O(ie.error||"Stop failed")}catch(ie){O(ie instanceof Error?ie.message:"Stop failed")}finally{L(!1)}}},jt=!n,Wt=l?.precise&&l.available,Vt=i&&!!n,Bt=(!!p.trim()||y.length>0)&&!we&&!ut&&(!Q||kt),Ut=!i&&Bt&&e&&o?Xz(e):null;return x.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[S?!Wt&&x.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[x.jsx(Yv,{size:12}),l?.caveat||"Sends to the focused session"]}):x.jsxs("div",{className:"mb-2 flex items-center gap-1.5 rounded-lg bg-del/10 px-3 py-1.5 text-xs text-del",children:[x.jsx(Jd,{size:12}),"Offline — drafts are saved, sending resumes when the relay is back"]}),I?x.jsxs("div",{className:"mb-2 rounded-lg border border-del/40 bg-del/10 px-3 py-1.5 text-xs text-del",children:[x.jsx("button",{type:"button",onClick:()=>O(null),className:"block w-full text-left",children:I}),Fi(I)?x.jsx(ga,{className:"mt-1 inline-block"}):null]}):null,Ut?x.jsxs("div",{className:"mb-2 flex items-center gap-2 rounded-xl border border-cold-cache/20 bg-cold-cache/8 px-2.5 py-2 text-cold-cache",children:[x.jsx(xB,{size:14,className:"shrink-0"}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("div",{className:"text-xs font-medium",children:"Prompt cache may be cold"}),x.jsxs("div",{className:"text-[11px] text-muted",children:["Idle past its ",Ut.ttlLabel," window"]}),oe?x.jsxs("div",{className:"mt-0.5 text-[11px] text-del",role:"alert",children:[oe,Fi(oe)?x.jsx(ga,{className:"ml-1"}):null]}):null]}),x.jsxs("button",{type:"button",onClick:()=>{vt()},disabled:$||!S,title:"Start a fresh chat with this transcript attached and keep the draft",className:"flex h-8 shrink-0 items-center gap-1.5 rounded-lg bg-cold-cache/12 px-2.5 text-xs font-semibold transition active:scale-[0.97] active:bg-cold-cache/20 disabled:opacity-50",children:[$?x.jsx(Tn,{size:13,className:"animate-spin"}):x.jsx(A8,{size:13}),"Fork draft"]})]}):null,x.jsxs("fieldset",{"aria-label":"Message composer",onDragEnter:le,onDragLeave:Ee,onDragOver:_e,onDrop:Ke,className:`m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60 ${he?"border-accent bg-accent-soft":""}`,children:[x.jsx("input",{ref:M,type:"file",multiple:!0,className:"hidden",onChange:ie=>{We(ie.target.files),ie.target.value=""}}),Ge.length?x.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:Ge.map(ie=>x.jsxs("div",{title:ie.error??ie.name,className:"flex max-w-full items-center gap-1 rounded-lg bg-surface-2 py-1 pl-2 pr-1 text-xs text-muted",children:[ie.status==="uploading"?x.jsx(Tn,{size:12,className:"shrink-0 animate-spin"}):null,x.jsx("span",{className:"truncate",children:ie.status==="error"?`${ie.name}: ${ie.error}`:ie.name}),x.jsx("button",{type:"button",onClick:()=>ln(ie.id),"aria-label":`Remove ${ie.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:x.jsx(bn,{size:13})})]},ie.id))}):null,he?x.jsx("div",{className:"pointer-events-none absolute inset-1 z-10 flex items-center justify-center rounded-xl border border-dashed border-accent bg-accent-soft/90 text-sm font-medium text-accent",children:"Drop files to attach"}):null,x.jsx("textarea",{ref:de,rows:1,value:p,disabled:jt||$,placeholder:jt?"No active session":Q?"What should the workflow accomplish?":"Send a prompt…",className:"block max-h-40 w-full resize-none bg-transparent px-2 py-1 text-base outline-none placeholder:text-faint disabled:opacity-50",onChange:ie=>b(g,ie.target.value),onFocus:()=>j(g),onBlur:()=>{Be.getState().focusedDraft===g&&j(null),md()},onPaste:ie=>{const pt=ie.clipboardData.files;pt.length&&(ie.preventDefault(),We(pt))},onKeyDown:ie=>{m5(ie)&&(ie.preventDefault(),Zt(ie.metaKey||ie.ctrlKey))}}),x.jsxs("div",{className:"mt-1 flex items-start gap-1",children:[e?x.jsx(Jz,{session:e,workspaceId:a,workflow:Ct?{active:Q,role:Ae,loading:Ce.isLoading,problem:Ye,onChange:Z}:void 0}):x.jsx("span",{className:"flex-1"}),e&&u?x.jsx(nL,{session:e,onOpen:u}):null,x.jsx("button",{type:"button",onClick:()=>M.current?.click(),disabled:jt||$||!S,"aria-label":"Attach files",className:"flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:text-faint",children:x.jsx(ic,{size:17})}),Vt?x.jsx("button",{type:"button",onClick:nt,disabled:R||!S,"aria-label":"Stop the agent",className:"flex size-8 shrink-0 items-center justify-center rounded-lg border border-border text-text transition active:bg-surface-2 disabled:text-faint",children:R?x.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-text"}):x.jsx(N8,{size:14,fill:"currentColor"})}):null,Vt&&!Bt?null:x.jsx("button",{type:"button",onClick:()=>Zt(),disabled:jt||!Bt||$||!S,"aria-label":"Send",className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent text-on-solid transition active:scale-95 disabled:bg-surface-2 disabled:text-faint",children:x.jsx(L7,{size:18})})]})]})]})}function nL({session:e,onOpen:n}){const a=e.context_used_percent,i=ig(e.id,typeof a=="number"&&a>0,e.updated_at);if(typeof a!="number"||a<=0)return null;const l=Math.min(100,Math.max(0,a)),o=Math.round(a),u=Vz(l,i.data);return x.jsx("button",{type:"button",onClick:n,"aria-label":`Context for ${e.title||"Untitled"}: ${o}% used`,"aria-haspopup":"dialog",title:`Context: ${o}% used`,className:"flex size-8 shrink-0 items-center justify-center rounded-md transition active:bg-surface-2",children:x.jsxs("svg",{viewBox:"0 0 18 18","aria-hidden":"true",className:"size-[18px] -rotate-90",children:[x.jsx("circle",{cx:"9",cy:"9",r:"6.5",fill:"none",strokeWidth:"3",className:"stroke-border"}),u.length?u.map(d=>x.jsx("circle",{cx:"9",cy:"9",r:"6.5",fill:"none",strokeWidth:"3",pathLength:"100",strokeDasharray:`${d.length} ${100-d.length}`,strokeDashoffset:-d.offset,"data-context-segment":d.key,className:d.ringClass},d.key)):x.jsx("circle",{cx:"9",cy:"9",r:"6.5",fill:"none",strokeWidth:"3",pathLength:"100",strokeDasharray:`${l} ${100-l}`,strokeLinecap:"round",className:a>=80?"stroke-working":"stroke-accent"})]})})}function Xx(e,n,a){let i=e;const l=Math.min(i,n);i-=l;const o=Math.min(i,Math.max(0,a-n));return i-=o,[{key:"chat",tokens:l,color:"bg-context-chat"},{key:"thinking",tokens:o,color:"bg-working"},{key:"tools",tokens:i,color:"bg-context-tools"}]}function rL({label:e,layers:n,scale:a}){return x.jsx("div",{role:"img","aria-label":`${e}: ${H0(n.reduce((i,l)=>i+l.tokens,0))} estimated tokens`,className:"flex h-1.5 overflow-hidden rounded-full bg-surface-2",children:n.map(i=>i.tokens>0?x.jsx("span",{className:i.color,style:{width:`${i.tokens/a*100}%`}},i.key):null)})}function aL({data:e}){const n=typeof e.usedPercent=="number"?`${Math.round(e.usedPercent)}% used`:null,a=p5.map(o=>({...o,color:o.barClass,tokens:e.categories[o.key]})),i=Math.max(e.forkTokens.concise,e.forkTokens.reasoning,e.forkTokens.full,1),l=[{label:"Concise",detail:"Messages only",tokens:e.forkTokens.concise,layers:Xx(e.forkTokens.concise,e.forkTokens.concise,e.forkTokens.reasoning)},{label:"With reasoning",detail:"Messages and reasoning",tokens:e.forkTokens.reasoning,layers:Xx(e.forkTokens.reasoning,e.forkTokens.concise,e.forkTokens.reasoning)},{label:"Full transcript",detail:"Messages, reasoning, and tools",tokens:e.forkTokens.full,layers:Xx(e.forkTokens.full,e.forkTokens.concise,e.forkTokens.reasoning)}];return x.jsxs("div",{className:"space-y-5",children:[x.jsxs("section",{"aria-labelledby":"context-composition-heading",children:[x.jsxs("div",{className:"mb-3 flex items-baseline gap-2",children:[x.jsx("h3",{id:"context-composition-heading",className:"min-w-0 flex-1 text-sm font-semibold",children:"Inside this context"}),x.jsxs("span",{className:"text-sm font-semibold tabular-nums",children:[H0(e.totalTokens)," tokens"]}),n?x.jsx("span",{className:"text-xs tabular-nums text-muted",children:n}):null]}),x.jsx("div",{role:"img","aria-label":a.map(o=>`${o.label} ${v9(o.tokens,e.totalTokens)}`).join(", "),className:"flex h-2.5 overflow-hidden rounded-full bg-surface-2",children:a.map(o=>o.tokens>0&&e.totalTokens>0?x.jsx("span",{className:o.color,style:{width:`${o.tokens/e.totalTokens*100}%`}},o.key):null)}),x.jsx("div",{className:"mt-3 grid grid-cols-2 gap-x-5 gap-y-2.5",children:a.map(o=>{const u=v9(o.tokens,e.totalTokens);return x.jsxs("div",{className:"min-w-0 text-xs",children:[x.jsxs("div",{className:"flex items-center gap-2 text-muted",children:[x.jsx("span",{className:`size-2 shrink-0 rounded-full ${o.color}`}),x.jsx("span",{children:o.label})]}),x.jsxs("div",{className:"mt-0.5 pl-4 tabular-nums",children:[o.tokens?"≈":"",H0(o.tokens)," · ",u]})]},o.key)})}),x.jsxs("p",{className:"mt-3 text-[11px] leading-relaxed text-faint",children:["Categories are estimated from the last completed turn. Chat is user prompts and visible replies. Initial context is the remainder: system and developer prompts, project instructions, skills, tool definitions, attachments, ",e.compacted?"compacted summaries, ":"","and provider overhead."]})]}),x.jsxs("section",{"aria-labelledby":"fork-size-heading",className:"border-t border-border-soft pt-4",children:[x.jsx("h3",{id:"fork-size-heading",className:"mb-2 text-sm font-semibold",children:"Estimated fork payload"}),x.jsxs("div",{className:"divide-y divide-border-soft overflow-hidden rounded-xl border border-border-soft",children:[x.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-xs font-medium",children:"Last message only"}),x.jsx("span",{className:"block text-[11px] text-faint",children:"This response, without history"})]}),x.jsx("span",{className:"text-[11px] text-faint",children:"Depends on message"})]}),l.map(o=>x.jsxs("div",{className:"space-y-2 px-3 py-2.5",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-xs font-medium",children:o.label}),x.jsx("span",{className:"block text-[11px] text-faint",children:o.detail})]}),x.jsxs("span",{className:"shrink-0 text-xs font-medium tabular-nums",children:["≈",H0(o.tokens)]})]}),x.jsx(rL,{label:o.label,layers:o.layers,scale:i})]},o.label))]}),e.forkTokens.reasoning===e.forkTokens.concise?x.jsx("p",{className:"mt-2 text-[11px] leading-relaxed text-muted",children:"No saved reasoning is available to copy, so Concise and With reasoning are the same size."}):null,x.jsxs("p",{className:"mt-2 text-[11px] leading-relaxed text-faint",children:["The bars reuse the context colors; the source's initial context is not copied. Fork sizes use the full saved transcript",e.compacted?", including history before compaction":"","."]})]})]})}function iL({sessionId:e,title:n,revision:a,onClose:i}){const l=ig(e,!0,a);return Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:i,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Context breakdown",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[85dvh] max-w-md flex-col rounded-t-3xl border border-border-soft bg-surface shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Context"}),x.jsx("p",{className:"truncate text-xs text-muted",children:n||"Untitled"})]}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Close context breakdown",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:18})})]}),x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain p-4",children:l.data?x.jsx(aL,{data:l.data}):l.isError?x.jsxs("div",{className:"flex flex-col items-center gap-3 py-8 text-center",children:[x.jsx("p",{className:"text-sm text-del",children:l.error instanceof Error?l.error.message:"Could not read this context."}),x.jsx("button",{type:"button",onClick:()=>{l.refetch()},className:"rounded-full border border-border px-3 py-1.5 text-xs font-medium active:bg-surface-2",children:"Try again"})]}):x.jsxs("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-muted",children:[x.jsx(Tn,{size:16,className:"animate-spin"}),"Reading context…"]})})]})]}),document.body)}function sL(e){document.visibilityState==="visible"&&window.open(e,"_blank","noopener,noreferrer")}const Zx="flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40";function lL({workspaceId:e}){const n=Hw(e),a=ur(),i=Be(_=>_.online),[l,o]=D.useState(null),[u,d]=D.useState(null),[f,h]=D.useState(!1),[g,p]=D.useState(!1),y=D.useRef(null),b=D.useRef(null),C=n.data,v=(C?.runConfigs?.length??0)>1,k=C?.forwards?.filter(_=>_.forwarded&&_.url)??(C?.forwarded&&C.url?[{name:C.port?`Port ${C.port}`:"Dev server",port:C.port??0,url:C.url}]:[]);D.useEffect(()=>{if(!f&&!g)return;const _=g?b:y,T=R=>{R.target instanceof Node&&_.current?.contains(R.target)||(h(!1),p(!1))},F=R=>{R.key==="Escape"&&(R.preventDefault(),h(!1),p(!1),_.current?.querySelector("button")?.focus())};return document.addEventListener("pointerdown",T),document.addEventListener("keydown",F),()=>{document.removeEventListener("pointerdown",T),document.removeEventListener("keydown",F)}},[f,g]);const B=async(_,T)=>{if(!l){o(_?"start":"stop"),d(null);try{const F=_?await je.startDevServer(e,T):await je.stopDevServer(e);a.setQueryData(["dev-server",e],F),F.ok?_&&F.url&&sL(F.url):d(F.error??`Could not ${_?"start":"stop"} the dev server`)}catch(F){d(F instanceof Error?F.message:`Could not ${_?"start":"stop"} the dev server`)}finally{o(null),a.invalidateQueries({queryKey:["dev-server",e]})}}},j=v?"Choose Run config":C?.running?"Forward dev server to tailnet":"Start and forward dev server",S=C&&!C.available;return x.jsxs(x.Fragment,{children:[k.length&&k[0]?.url?x.jsxs("div",{ref:y,className:"relative flex shrink-0 items-center",children:[x.jsx("a",{href:k[0].url,target:"_blank",rel:"noreferrer","aria-label":`Open ${k[0].name} on port ${k[0].port}`,title:k[0].url,className:Zx,children:x.jsx(IC,{size:18})}),k.length>1?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",onClick:()=>h(_=>!_),"aria-label":"Choose forwarded dev server","aria-haspopup":"menu","aria-expanded":f,className:"flex h-9 w-6 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(Ea,{size:14,className:f?"rotate-180":void 0})}),f?x.jsx("div",{role:"menu","aria-label":"Forwarded dev servers",className:"fade-in absolute right-0 top-full z-30 mt-1 max-h-[calc(100dvh-4rem)] min-w-52 overflow-y-auto rounded-xl border border-border bg-surface py-1 shadow-xl",children:k.map(_=>x.jsxs("a",{href:_.url??void 0,target:"_blank",rel:"noreferrer",onClick:()=>h(!1),role:"menuitem",className:"flex items-center gap-3 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx("span",{className:"min-w-0 flex-1 truncate",children:_.name}),x.jsxs("span",{className:"font-mono text-xs text-faint",children:[":",_.port]})]},`${_.port}:${_.url}`))}):null]}):null]}):x.jsxs("div",{ref:b,className:"relative shrink-0",children:[x.jsx("button",{type:"button",onClick:()=>{v?p(_=>!_):B(!0)},disabled:!i||!!l||!!S||n.isLoading,"aria-label":j,"aria-haspopup":v?"menu":void 0,"aria-expanded":v?g:void 0,title:S?C.error:j,className:Zx,children:l==="start"||n.isLoading?x.jsx(Tn,{size:18,className:"animate-spin"}):C?.running?x.jsx(OC,{size:18}):x.jsx(ud,{size:18,fill:"currentColor"})}),g&&v?x.jsx("div",{role:"menu","aria-label":"Run configs",className:"fade-in absolute right-0 top-full z-30 mt-1 max-h-[calc(100dvh-4rem)] min-w-44 overflow-y-auto rounded-xl border border-border bg-surface py-1 shadow-xl",children:C?.runConfigs.map(_=>x.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{p(!1),B(!0,_.id)},className:"flex w-full items-center gap-3 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx(ud,{size:14,className:"shrink-0 text-muted"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:_.name})]},_.id))}):null]}),C?.running||C?.forwarded?x.jsx("button",{type:"button",onClick:()=>{B(!1)},disabled:!i||!!l,"aria-label":"Stop dev server",className:Zx,children:l==="stop"?x.jsx(Tn,{size:18,className:"animate-spin"}):x.jsx(N8,{size:15,fill:"currentColor"})}):null,u?x.jsx("button",{type:"button",onClick:()=>d(null),className:"absolute right-2 top-full z-30 max-w-72 rounded-lg border border-del/40 bg-surface px-3 py-2 text-left text-xs text-del shadow-xl",children:u}):null]})}function oL(e){if(!e)return[];const n=e.split(`
49
+ `),a=[];for(const[i,l]of n.entries())l.startsWith("diff --git ")&&a.push(i);return a.length?a.map((i,l)=>n.slice(i,a[l+1]??n.length).join(`
50
+ `)):[e]}function cL(e,n,a){const i=n.findIndex(l=>l.path===a);return i<0?null:oL(e)[i]??null}function uL(e,n){if(e.pr_status==="merged")return"merged";if(n&&(n.dirty||n.unpushed))return"push";switch(e.pr_status){case"conflicts":return"resolve";case"checks_failed":return"failed";case"checks_pending":return"checks";case"mergeable":return"merge";case"draft":return"draft";default:return null}}const xL={push:{label:"Uncommitted changes",tone:"text-working",icon:x.jsx(iC,{size:14})},resolve:{label:"Merge conflicts",tone:"text-muted",icon:x.jsx(sc,{size:14})},merge:{label:"Ready to merge",tone:"text-add"},checks:{label:"Checks running",tone:"text-working",icon:x.jsx(Tn,{size:14,className:"animate-spin"})},failed:{label:"Checks failed",tone:"text-del",icon:x.jsx(W3,{size:14})},draft:{label:"Draft",tone:"text-muted"},merged:{label:"Merged",tone:"text-pr-merged",icon:x.jsx(k8,{size:14})}},dL={push:"Commit all outstanding changes with a clear message and push the branch to the remote.",resolve:"This branch has merge conflicts with its base branch. Merge the base branch in, resolve the conflicts, then commit and push."};function fL({ws:e,local:n,sessionId:a}){return x.jsx(hL,{ws:e,local:n,sessionId:a},e.id)}function hL({ws:e,local:n,sessionId:a}){const i=ur(),[l,o]=D.useState(!1),[u,d]=D.useState(!1),[f,h]=D.useState(null);if(f?.ok&&(f.continued||e.pr_status!=="merged"))return x.jsxs(A2,{children:[x.jsx(qr,{size:15,className:"shrink-0 text-add"}),x.jsx("span",{className:"truncate font-medium text-add",children:f.msg})]});const g=uL(e,n);if(!g)return null;const{label:p,tone:y,icon:b}=xL[g],C=async()=>{d(!0),h(null);try{const B=await je.merge(e.id);B.ok?(h({ok:!0,msg:`Merged${B.method?` (${B.method})`:""}`}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):(h({ok:!1,msg:B.error||"Merge failed"}),o(!1))}catch(B){h({ok:!1,msg:B instanceof Error?B.message:String(B)}),o(!1)}finally{d(!1)}},v=async()=>{d(!0),h(null);try{const B=await je.continueWorkspace(e.id,a);B.ok?(h({ok:!0,msg:B.workspace?.branch?`Continued on ${B.workspace.branch}`:"Continued on a new branch",continued:!0}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):h({ok:!1,msg:B.error||"Could not continue this workspace"})}catch(B){h({ok:!1,msg:B instanceof Error?B.message:String(B)})}finally{d(!1)}},k=async B=>{if(!e.active_session_id)return h({ok:!1,msg:"No active session to message"});d(!0),h(null);try{const j=await je.sendPrompt(e.active_session_id,dL[B],e.id);h(j.ok?{ok:!0,msg:"Asked the agent"}:{ok:!1,msg:j.error||"Send failed"})}catch(j){h({ok:!1,msg:j instanceof Error?j.message:String(j)})}finally{d(!1)}};return x.jsxs(A2,{tint:g==="merge"?"add":g==="merged"?"merged":void 0,children:[e.pr_number?x.jsxs("a",{href:e.pr_url??void 0,target:"_blank",rel:"noreferrer",className:pe("flex shrink-0 items-center gap-0.5 rounded-md px-1.5 py-0.5 font-mono text-[11px] active:bg-surface",g==="merged"?"bg-pr-merged/15 text-pr-merged":"bg-surface-2 text-muted"),children:["#",e.pr_number,x.jsx(O7,{size:12})]}):null,x.jsxs("span",{className:pe("flex items-center gap-1 truncate font-medium",y),children:[b,p]}),x.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[f&&!f.ok?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"max-w-36 truncate text-[11px] text-del",children:f.msg}),Fi(f.msg)?x.jsx(ga,{className:"shrink-0 text-[11px]"}):null]}):null,g==="merge"||g==="checks"?l?x.jsxs(x.Fragment,{children:[x.jsx(pL,{onClick:()=>o(!1)}),x.jsx(_l,{onClick:C,busy:u,className:g==="merge"?"bg-add text-on-solid":"bg-working text-on-solid",children:"Confirm"})]}):x.jsxs(_l,{onClick:()=>o(!0),className:g==="merge"?"bg-add text-on-solid":"border border-border bg-surface-2 text-text",children:[x.jsx(k8,{size:13}),"Merge"]}):g==="push"?x.jsx(_l,{onClick:()=>k("push"),busy:u,className:"bg-working text-on-solid",children:"Commit & push"}):g==="resolve"?x.jsx(_l,{onClick:()=>k("resolve"),busy:u,className:"border border-border bg-surface-2 text-text",children:"Resolve"}):g==="merged"?x.jsxs(_l,{onClick:v,busy:u,title:"Continue on a new branch with the same chats",className:"border border-pr-merged/30 bg-surface-2 text-pr-merged",children:[x.jsx(yv,{size:13}),"Continue"]}):null]})]})}function _l({onClick:e,busy:n,title:a,className:i,children:l}){return x.jsxs("button",{type:"button",onClick:e,disabled:n,title:a,className:pe("flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-semibold transition active:scale-95 disabled:opacity-60",i),children:[n?x.jsx(Tn,{size:13,className:"animate-spin"}):null,l]})}function pL({onClick:e}){return x.jsx("button",{type:"button",onClick:e,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Cancel"})}const mL={add:"bg-add/10",merged:"bg-pr-merged/10"};function A2({tint:e,children:n}){return x.jsx("div",{className:pe("sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft px-3 py-2 backdrop-blur",e?mL[e]:"bg-surface/95"),children:n})}function b5({review:e,sessionId:n,selectedFile:a,onSelectFile:i}){const{workspace:l,query:o}=e,{data:u,isLoading:d,isError:f,error:h}=o,g=u?{dirty:u.dirty,unpushed:u.unpushed}:void 0;return x.jsxs("div",{className:"min-h-0 flex flex-1 flex-col",children:[x.jsx(fL,{ws:l,local:g,sessionId:n}),d&&!u?x.jsx(Rr,{label:"Computing diff…"}):null,f?x.jsx(yn,{children:h?.message}):null,!d&&!f&&!u?x.jsx(yn,{children:"No diff."}):null,u?.files.length===0?x.jsxs(yn,{children:["No changes vs ",x.jsx("span",{className:"font-mono",children:u.base}),"."]}):null,u&&u.files.length>0?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"shrink-0 border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",x.jsx("span",{className:"font-mono text-faint",children:u.base})," · ",u.files.length," file",u.files.length===1?"":"s"]}),x.jsx(gL,{files:u.files,selectedFile:a,onSelectFile:i})]}):null]})}function gL({files:e,selectedFile:n,onSelectFile:a}){return x.jsx("ul",{className:"grid min-h-0 flex-1 auto-rows-min grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-x-2 gap-y-1 overflow-y-auto overscroll-contain px-2 py-2 font-mono text-[12px]",children:e.map(i=>{const l=i.path===n;return x.jsx("li",{className:"col-span-3 grid grid-cols-subgrid items-center",children:x.jsxs("button",{type:"button",title:i.path,onClick:()=>a(i.path),"aria-pressed":l,className:pe("col-span-3 grid min-w-0 grid-cols-subgrid items-center rounded-md px-2 py-1.5 text-left transition hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent active:bg-surface-2",l&&"bg-accent-soft"),children:[x.jsx("span",{className:pe("truncate",l?"text-text":"text-muted"),children:i.path}),x.jsx("span",{className:"text-right text-add",children:i.added?`+${i.added}`:null}),x.jsx("span",{className:"text-right text-del",children:i.removed?`−${i.removed}`:null})]})},i.path)})})}function EL({review:e,filePath:n,onSelectFile:a,onShowFiles:i,onClose:l}){const{query:o}=e,{data:u,isLoading:d,isError:f,error:h}=o,g=u?.files.findIndex(v=>v.path===n)??-1,p=g>=0?u?.files[g]:void 0,y=D.useMemo(()=>u?cL(u.patch,u.files,n):null,[u,n]),b=g>0?u?.files[g-1]:void 0,C=u&&g>=0&&g<u.files.length-1?u.files[g+1]:void 0;return x.jsxs("section",{className:"min-h-0 flex flex-1 flex-col bg-bg","aria-label":`Changes in ${n}`,children:[x.jsx(Of,{title:x.jsxs("span",{className:"flex items-baseline gap-2",children:[x.jsx("span",{children:"Changes"}),p?.added?x.jsxs("span",{className:"text-xs font-normal text-add",children:["+",p.added]}):null,p?.removed?x.jsxs("span",{className:"text-xs font-normal text-del",children:["−",p.removed]}):null]}),subtitle:p?.path??n,actions:x.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 lg:hidden",children:[x.jsx("button",{type:"button",onClick:()=>b&&a(b.path),disabled:!b,"aria-label":"Previous changed file",className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-25",children:x.jsx(V3,{size:17})}),x.jsx("span",{className:"min-w-9 text-center text-[11px] tabular-nums text-faint",children:g>=0&&u?`${g+1}/${u.files.length}`:"—"}),x.jsx("button",{type:"button",onClick:()=>C&&a(C.path),disabled:!C,"aria-label":"Next changed file",className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-25",children:x.jsx(Y3,{size:17})}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Show changed files",className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2",children:x.jsx(B8,{size:17})})]}),onClose:l,closeLabel:"Close diff viewer"}),x.jsxs("div",{className:"min-h-0 flex-1 overflow-auto overscroll-contain",children:[d&&!u?x.jsx(Rr,{label:"Loading changes…"}):null,f?x.jsx(yn,{children:h?.message}):null,u&&g<0?x.jsx(yn,{children:"This file is no longer changed."}):null,u&&g>=0&&y===null?x.jsx(yn,{children:u.truncated?"This file falls beyond the workspace diff preview.":"No textual patch is available for this file."}):null,y!==null?x.jsx(f5,{patch:y,className:"min-w-max p-4"}):null]})]})}const yL=/^[a-z][a-z0-9_-]{0,63}$/,k2=["none","low","medium","high","xhigh","max","ultracode"],B2=e=>({version:1,roles:Object.fromEntries(Object.entries(e.roles).map(([n,a])=>[n,{...a}]))}),bL=e=>`You are the ${e} agent for this workspace. End your final answer with a \`## Baton\` section: Decision, Evidence, Files changed, Risks, Suggested next role.`;function CL(e,n){const i=[void 0,...n==="codex"?k2:k2.filter(o=>o!=="none")],l=i.indexOf(e);return i[(l+1)%i.length]}function vL(e,n){const a={...e};return n===void 0?delete a.effort:a.effort=n,a}function AL(e,n){const a={...e,model:n},i=Bs(n);return tf(i)||delete a.effort,nf(i)||delete a.fast,a}function kL(e,n){if(!O8(e.model,n))return"Choose an exact model from Conductor’s picker.";const a=Bs(e.model);return a?e.effort!==void 0&&!tf(a)?"Conductor does not expose a reasoning control for this provider. Select its model again to clear Effort.":e.effort==="none"&&a!=="codex"?"None effort is available only for Codex.":e.fast!==void 0&&!nf(a)?"Conductor does not expose a Fast control for this provider. Select its model again to clear Fast.":null:"This model label does not identify a supported provider."}function BL(e,n){return O8(e.model,n)?Bs(e.model)??null:null}function D2(e,n,a,i){return e&&!n&&a!==void 0&&i===0}function C5({name:e}){return x.jsx("span",{className:"max-w-20 shrink-0 truncate rounded bg-accent/10 px-1 py-0.5 font-mono text-[9px] uppercase tracking-wide text-accent",children:e})}function DL({name:e,role:n,models:a,agentType:i=null,invalid:l,onChange:o,onRemove:u,canRemove:d}){const f=i??Bs(n.model)??null,h=tf(f),g=nf(f);return x.jsxs("section",{className:pe("rounded-2xl border bg-surface p-3",l?"border-del/50":"border-border"),children:[x.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[x.jsx(C5,{name:e}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:e}),x.jsx("button",{type:"button",disabled:!d,onClick:u,"aria-label":`Remove ${e} role`,className:"flex size-7 shrink-0 items-center justify-center rounded-lg text-faint active:bg-surface-2 disabled:invisible",children:x.jsx(HB,{size:14})})]}),x.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[x.jsx(g5,{value:n.model,models:a,placement:"below",empty:"No picker models are cached yet.",onSelect:p=>o(AL(n,p)),renderTrigger:({picking:p,toggle:y})=>x.jsxs("button",{type:"button",onClick:y,"aria-label":`Choose model for ${e}, currently ${n.model}`,"aria-haspopup":"menu","aria-expanded":p,className:pe("flex h-8 max-w-56 min-w-0 items-center gap-1.5 rounded-lg border px-2 text-xs active:bg-surface-2",l?"border-del text-del":"border-border text-muted"),children:[x.jsx(ro,{agentType:i,model:n.model,className:"size-3.5"}),x.jsx("span",{className:"truncate",children:n.model})]})}),h?x.jsxs("button",{type:"button",onClick:()=>o(vL(n,CL(n.effort,f))),"aria-label":`Reasoning effort for ${e}: ${n.effort?Ql[n.effort]:"default"}`,className:"flex h-8 items-center gap-1.5 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2",children:[x.jsx(Wg,{effort:n.effort??""}),n.effort?Ql[n.effort]:"Effort"]}):null,g?x.jsxs("button",{type:"button",onClick:()=>o({...n,fast:!n.fast}),"aria-label":`Fast mode for ${e} ${n.fast?"on":"off"}`,"aria-pressed":n.fast===!0,className:pe("flex h-8 items-center gap-1 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2",n.fast&&"bg-surface-2 text-text"),children:[x.jsx(ef,{size:13})," Fast"]}):null]}),l?x.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-del",children:[x.jsx(sc,{size:13,className:"mt-0.5 shrink-0"}),x.jsx("span",{children:l})]}):null,x.jsxs("details",{className:"mt-2",children:[x.jsx("summary",{className:"cursor-pointer select-none text-[11px] text-faint",children:"Role preamble"}),x.jsx("textarea",{value:n.preamble??"",onChange:p=>o({...n,preamble:p.target.value}),rows:4,"aria-label":`${e} role preamble`,className:"mt-1.5 block w-full resize-y rounded-xl border border-border bg-bg px-2.5 py-2 text-base leading-relaxed outline-none focus:border-accent/60"})]})]})}function v5({onClose:e}){const n=ur(),a=lf(),i=oc(),[l,o]=D.useState(null),[u,d]=D.useState(!1),[f,h]=D.useState(!1),[g,p]=D.useState(null),[y,b]=D.useState("");D.useEffect(()=>{a.data&&!u&&o(B2(a.data))},[a.data,u]);const C=i.data?.groups,v=D.useMemo(()=>C?.flatMap(I=>I.models)??[],[C]),k=new Map(a.data?.issues.map(I=>[I.role,I.error.message])??[]),B=l,j=new Map;if(B)for(const[I,O]of Object.entries(B.roles)){const $=C?kL(O,C):k.get(I);$&&j.set(I,$)}const S=(I,O)=>{B&&(o({version:1,roles:{...B.roles,[I]:O}}),d(!0),p(null))},_=I=>{if(!B||Object.keys(B.roles).length<=1)return;const{[I]:O,...$}=B.roles;o({version:1,roles:$}),d(!0)},T=y.trim().toLowerCase().replace(/\s+/g,"-"),F=y&&!yL.test(T)?"Use lowercase letters, numbers, dashes, or underscores.":T&&B?.roles[T]?"That role already exists.":null,R=()=>{!B||!T||F||(o({version:1,roles:{...B.roles,[T]:{model:"Choose a model",fast:!1,preamble:bL(T)}}}),b(""),d(!0))},L=async()=>{if(!(!B||!D2(u,f,C,j.size))){h(!0),p(null);try{const I=await je.updateRoles(B);if(!I.ok){p(I.error.message);return}o(B2(I.config)),d(!1),await n.invalidateQueries({queryKey:["roles"]})}catch(I){p(I instanceof Error?I.message:String(I))}finally{h(!1)}}};return Gr.createPortal(x.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col bg-bg",role:"dialog","aria-modal":"true","aria-label":"Roles settings",children:[x.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx("h2",{className:"text-[15px] font-semibold",children:"Roles"}),x.jsx(Pf,{})]}),x.jsx("p",{className:"text-[11px] text-faint",children:"Cross-provider delegated chats"})]}),x.jsxs("button",{type:"button",disabled:!D2(u,f,C,j.size),onClick:()=>{L()},className:"flex h-9 items-center gap-1.5 rounded-xl bg-accent px-3 text-sm font-semibold text-white disabled:opacity-35",children:[f?x.jsx(Tn,{size:15,className:"animate-spin"}):x.jsx(Lk,{size:15}),"Save"]}),x.jsx("button",{type:"button",onClick:e,"aria-label":"Close roles settings",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:20})})]}),x.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto p-3",children:a.isLoading&&!B?x.jsx(Rr,{label:"Loading roles…"}):a.isError&&!B?x.jsx("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-sm text-del",children:a.error instanceof Error?a.error.message:"Could not load roles."}):B?x.jsxs("div",{className:"mx-auto flex max-w-xl flex-col gap-2.5",children:[i.isError?x.jsxs("div",{className:"flex items-center gap-2 rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:[x.jsx("span",{className:"min-w-0 flex-1",children:"Could not load the saved Conductor model catalog."}),x.jsx("button",{type:"button",onClick:()=>{i.refetch()},className:"shrink-0 rounded-lg border border-del/40 px-2 py-1 font-semibold",children:"Retry"})]}):null,a.data?.warning?x.jsxs("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:[a.data.warning," The file was preserved; saving replaces it only after validation."]}):null,Object.entries(B.roles).map(([I,O])=>x.jsx(DL,{name:I,role:O,models:v,agentType:C?BL(O,C):null,invalid:j.get(I),onChange:$=>S(I,$),onRemove:()=>_(I),canRemove:Object.keys(B.roles).length>1},I)),x.jsxs("div",{className:"rounded-2xl border border-dashed border-border p-2.5",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("input",{value:y,onChange:I=>b(I.target.value),onKeyDown:I=>{I.key==="Enter"&&R()},placeholder:"Add a role","aria-label":"New role name",className:"min-w-0 flex-1 bg-transparent px-1 text-base outline-none placeholder:text-faint"}),x.jsxs("button",{type:"button",disabled:!T||!!F,onClick:R,className:"flex h-8 items-center gap-1 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2 disabled:opacity-35",children:[x.jsx(Wd,{size:14})," Add"]})]}),F?x.jsx("p",{className:"mt-1.5 px-1 text-xs text-del",children:F}):null]}),j.size?x.jsx("p",{className:"text-xs text-del",children:"Choose the missing picker models before saving or delegating."}):null,g?x.jsx("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:g}):null,x.jsx("p",{className:"px-1 text-[11px] leading-relaxed text-faint",children:"Roles configure ordinary chats. Changes apply only to future jobs; accepted jobs keep their frozen model and effort."})]}):null})]}),document.body)}function wL({workspace:e,agentsRunning:n}){const[a,i]=D.useState(!1),[l,o]=D.useState(!1),[u,d]=D.useState(null),[f,h]=D.useState(null),g=Be(j=>j.online),p=ur(),y=uf(e),b=()=>{i(!1),o(!1)},C=async j=>{if(!u&&(b(),j!==y)){d(j),h(null);try{const S=await je.setStatus(e.id,j);S.ok||h(S.error??"status change failed"),await p.invalidateQueries({queryKey:["state"]})}catch(S){h(S instanceof Error?S.message:"status change failed")}finally{d(null)}}},v=async()=>{if(!u){b(),d("archive"),h(null);try{const j=await je.archive(e.id,n>0);j.ok||h(j.error??"archiving failed"),await p.invalidateQueries({queryKey:["state"]}),await p.invalidateQueries({queryKey:["workspace",e.id]})}catch(j){h(j instanceof Error?j.message:"archiving failed")}finally{d(null)}}},B=u==="archive"?y:u??y;return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",onClick:()=>a?b():i(!0),disabled:!g||u!==null,"aria-label":`Workspace menu: ${yd(y)}`,"aria-expanded":a,className:pe("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",a&&"bg-surface-2 text-text"),children:u?x.jsx("span",{className:"dot-spinner size-4",style:{"--spin-color":FL(B)}}):x.jsx(w2,{status:B})}),a?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","aria-label":"Close workspace menu",className:"fixed inset-0 z-20 cursor-default",onClick:b}),x.jsx("div",{className:"fade-in absolute right-2 top-full z-30 w-60 overflow-hidden rounded-xl border border-border bg-surface shadow-xl",children:l?x.jsxs("div",{className:"p-3",children:[x.jsx("div",{className:"text-sm font-semibold",children:"Archive workspace?"}),x.jsx("p",{className:"mt-1 text-xs leading-snug text-muted",children:n>0?"Agents are still running in this workspace. Archiving will stop them and end any in-progress work.":"Its worktree is deleted. The chat stays readable and searchable."}),x.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[x.jsx("button",{type:"button",onClick:()=>o(!1),className:"rounded-lg border border-border px-2.5 py-1 text-xs font-semibold active:bg-surface-2",children:"Cancel"}),x.jsx("button",{type:"button",onClick:v,className:"rounded-lg bg-del px-2.5 py-1 text-xs font-semibold text-on-solid active:scale-95",children:n>0?"Stop agents and archive":"Archive"})]})]}):x.jsxs(x.Fragment,{children:[lS.map(j=>x.jsxs("button",{type:"button",onClick:()=>C(j),className:"flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx(w2,{status:j}),x.jsx("span",{className:"flex-1",children:yd(j)}),j===y?x.jsx(qr,{size:15,className:"text-accent"}):null]},j)),x.jsxs("button",{type:"button",onClick:()=>o(!0),className:"flex w-full items-center gap-2 border-t border-border px-3 py-2.5 text-left text-sm text-del active:bg-surface-2",children:[x.jsx(Kd,{size:15}),x.jsx("span",{className:"flex-1",children:"Archive workspace"})]})]})})]}):null,f?x.jsx("button",{type:"button",onClick:()=>h(null),className:"absolute right-2 top-full z-30 max-w-64 rounded-lg border border-del/40 bg-surface px-3 py-2 text-left text-xs text-del shadow-xl",children:f}):null]})}function FL(e){return xf[e]??"var(--color-faint)"}function w2({status:e}){const n=xf[e];return n?x.jsx("span",{className:"dot size-2.5",style:{background:n}}):x.jsx("span",{className:"dot size-2.5 border border-faint bg-transparent"})}function SL(){const{workspaceId:e}=mb(),[n,a]=g8(),i=n.get("session"),l=me=>a({session:me},{replace:!0}),[o,u]=D.useState(!1),[d,f]=D.useState(null),[h,g]=D.useState(!1),p=d&&d.workspaceId===e?d.path:null,[y,b]=D.useState(!1),[C,v]=D.useState(null),[k,B]=D.useState(!1),[j,S]=D.useState(null),[_,T]=D.useState(null),[F,R]=D.useState(null),[L,I]=D.useState(null),[O,$]=D.useState(null),V=ur(),oe=_i(),{data:te,isLoading:Y}=tg(),P=te?.workspaces.find(me=>me.id===e),Q=$w(e,o&&!!P),Z=!!te&&!P,{data:de}=rg(e,!Z),M=Be(me=>me.workingHints),z=Be(me=>me.pending),X=Be(me=>me.readMarks),w=Be(me=>me.markRead),W=Be(me=>me.setDraft),he=Be(me=>me.online),re=P,De=te?.actuator,{data:Ge,isLoading:we}=Iw(e,Z),{data:st}=Uw(e,!!P?.worktree),ut=P?.worktree??null,Lt=st?.files,Ct=D.useMemo(()=>({resolveMention:kg(ut,Lt),worktree:ut}),[ut,Lt]),Ce=de?.sessions??[],Ae=re?.active_session_id&&Ce.some(me=>me.id===re.active_session_id)?re.active_session_id:null,Oe=(i&&Ce.some(me=>me.id===i)?i:null)??Ae??Ce[0]?.id??null,Ye=Ce.find(me=>me.id===Oe),kt={...de?.session_roles??{},...re?.session_roles??{}},ht=re?.delegations??[],Zt=D.useMemo(()=>new Set(ht.flatMap(me=>me.childSessionId?[me.childSessionId]:[])),[ht]),vt=Ye?.updated_at;if(D.useEffect(()=>{re&&Oe&&vt&&document.visibilityState==="visible"&&w(Oe,vt)},[re,Oe,vt,w]),tF(Oe,vt),!re)return Ge?x.jsx(Gz,{workspace:Ge.workspace}):x.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[x.jsx(bd,{title:"Session",menu:!0}),Y||Z&&we?x.jsx(Rr,{}):x.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const ln=Oe?M[Oe]:void 0,On=Ye?.status==="working"||ln!==void 0&&Date.now()-ln<gd,We=Ye?.turn_started_at?Xn(Ye.turn_started_at):null,Cn=(Ye?.status==="working"?We??ln:ln??We)??null,le=Date.now(),Ee=Object.fromEntries(Ce.map(me=>{const ae=M[me.id],rt=[...me.id===Oe&&re.pending_prompt?[re.pending_prompt]:[],...(re.parked_prompts??[]).filter(Qe=>Qe.sessionId===me.id)];return[me.id,$8(z.filter(Qe=>Qe.sessionId===me.id),rt,ae!==void 0&&le-ae<gd)]})),_e=[re.repo_name,re.branch,j8(re.model)].filter(Boolean).join(" · "),Ke=async()=>{if(!k){B(!0);try{const me=await je.newChat(re.id);me.ok&&(await V.invalidateQueries({queryKey:["sessions",re.id]}),me.sessionId&&l(me.sessionId))}finally{B(!1)}}},nt=async(me,ae=!1)=>{if(j||!he)return;const rt=Ce.find(Qe=>Qe.id===me);if((rt?.status==="working"||rt?.background_tasks.length)&&!ae){T(me),R(null);return}S(me),T(null),R(null);try{const Qe=await je.closeChat(me,re.id,ae);if(!Qe.ok)throw new Error(Qe.error??"Could not close this chat");Oe===me&&(Qe.activeSessionId?l(Qe.activeSessionId):a({},{replace:!0})),await Promise.all([V.invalidateQueries({queryKey:["sessions",re.id]}),V.invalidateQueries({queryKey:["state"]})])}catch(Qe){Qe instanceof Br&&Qe.status===409&&/still working/i.test(Qe.message)?T(me):R(Qe instanceof Error?Qe.message:"Could not close this chat")}finally{S(null)}},jt=async({thinking:me,tools:ae,through:rt,only:Qe,destination:Kt="chat"},on)=>{if(!Oe)return;const U=await je.splitChat(Oe,re.id,me,ae,rt,Qe,Kt);if(!U.ok)throw new Error(U.error??"Could not fork this chat");const ue=U.sessionId??(Kt==="workspace"?U.workspaceId:null);if(!ue)throw new Error("The new chat opened, but its id was not available");if(W(ue,[U.text,on?.trim()].filter(Boolean).join(`
51
+ `)),U.sessionId&&I(U.sessionId),Kt==="workspace"){await V.invalidateQueries({queryKey:["state"]}),oe(U.sessionId?`/w/${U.workspaceId}?session=${encodeURIComponent(U.sessionId)}`:`/w/${U.workspaceId}`);return}await V.invalidateQueries({queryKey:["sessions",re.id]}),U.sessionId&&l(U.sessionId)},Wt=()=>{u(!1),f(null),g(!1)},Vt=()=>{f(null),g(!0)},Bt=()=>{o?Wt():(u(!0),g(!0))},Ut=me=>{f({workspaceId:re.id,path:me}),g(!1)},ie={workspace:re,query:Q},pt=async me=>{v(null);try{const ae=await je.dismissDelegation(me);if(!ae.ok)throw new Error(ae.error.message);await V.invalidateQueries({queryKey:["state"]})}catch(ae){v(ae instanceof Error?ae.message:String(ae))}};return x.jsx(JF,{value:Ct,children:x.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[x.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[x.jsx(bd,{title:$r(re),subtitle:_e,menu:!0,right:x.jsxs(x.Fragment,{children:[x.jsx(lL,{workspaceId:re.id}),x.jsx("button",{type:"button",onClick:()=>b(!0),"aria-label":"Open delegated roles",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",children:x.jsx(lc,{size:18})}),x.jsx(wL,{workspace:re,agentsRunning:Ce.filter(me=>me.status==="working").length}),x.jsx(NL,{stats:re.change_stats,open:o,onToggle:Bt})]})}),Ce.length>0||re.state==="ready"?x.jsx(_L,{sessions:Ce,activeId:Oe,readMarks:X,promptStates:Ee,roles:kt,subtabSessionIds:Zt,onSelect:l,onContext:me=>$({workspaceId:re.id,id:me.id,title:me.title}),onNewChat:Ke,onClose:me=>{nt(me)},creating:k,closingId:j,online:he}):null,_?x.jsx(ML,{title:Ce.find(me=>me.id===_)?.title??"Untitled",busy:j===_,onCancel:()=>T(null),onConfirm:()=>{nt(_,!0)}}):F?x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-del/30 bg-del/5 px-3 py-2 text-xs text-del",children:[x.jsx("span",{className:"min-w-0 flex-1",children:F}),Fi(F)?x.jsx(ga,{}):null,x.jsx("button",{type:"button",onClick:()=>R(null),"aria-label":"Dismiss close error",className:"p-1",children:x.jsx(bn,{size:14})})]}):null,x.jsx(fz,{jobs:ht,sessions:Ce,roles:kt,activeSessionId:Oe,onSelectSession:l}),re.delegation_warning||C?x.jsx("div",{className:"shrink-0 border-b border-del/30 bg-del/5 px-3 py-1.5 text-xs text-del",children:C??re.delegation_warning}):null,x.jsxs("div",{className:"relative min-h-0 flex flex-1 flex-col",children:[p?x.jsx(EL,{review:ie,filePath:p,onSelectFile:Ut,onShowFiles:()=>g(!0),onClose:Vt},p):x.jsx(h5,{sessionId:Oe,workspaceId:re.id,working:On,workingSince:Cn,turnStartedAt:Ye?.turn_started_at,waiting:Ye?.background_tasks,delegations:ht,queued:re.parked_prompts?.find(me=>me.sessionId===Oe)??re.pending_prompt,onFork:jt,onSelectSession:l,onDismissDelegation:me=>{pt(me)},onOpenRoles:()=>b(!0)}),o&&(h||!p)?x.jsx(RL,{review:ie,sessionId:Oe,selectedFile:p,onSelectFile:Ut,onClose:Wt}):null]}),x.jsx(tL,{session:Ye,sessionId:Oe,workspaceId:re.id,working:On,actuator:De,onFork:me=>jt({thinking:!0,tools:!1},me),onContext:Ye?()=>$({workspaceId:re.id,id:Ye.id,title:Ye.title}):void 0,workflowStarted:!!(Oe&&kt[Oe])||!!(re.pending_prompt&&Oe===re.active_session_id),focusDraft:Oe===L,onDraftFocused:()=>I(null)},re.id)]}),o?x.jsx(TL,{review:ie,sessionId:Oe,selectedFile:p,onSelectFile:Ut,onClose:Wt}):null,y?x.jsx(v5,{onClose:()=>b(!1)}):null,O&&O.workspaceId===e?x.jsx(iL,{sessionId:O.id,title:O.title,revision:Ce.find(me=>me.id===O.id)?.updated_at,onClose:()=>$(null)}):null]})})}function NL({stats:e,open:n,onToggle:a}){const i=!!e&&(e.added>0||e.removed>0);return x.jsxs("button",{type:"button",onClick:a,"aria-label":i?"Toggle diff panel, changes available":"Toggle diff panel","aria-pressed":n,className:pe("relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",n&&"bg-surface-2 text-text"),children:[x.jsx(v8,{size:19}),i?x.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent","aria-hidden":"true"}):null]})}function _L({sessions:e,activeId:n,readMarks:a,promptStates:i,roles:l={},subtabSessionIds:o,onSelect:u,onContext:d,onNewChat:f,onClose:h,creating:g,closingId:p,online:y}){const b=D.useRef(null),C=e.filter(k=>!l[k.id]?.delegationId&&!o?.has(k.id)),v=C.some(k=>k.id===n);return D.useLayoutEffect(()=>{n&&v&&b.current?.scrollIntoView({block:"nearest",inline:"nearest"})},[n,v]),x.jsxs("nav",{className:"flex shrink-0 items-center gap-1 border-b border-border-soft bg-bg px-3 py-2",children:[x.jsx("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto",children:C.map(k=>{const B=i[k.id],j=typeof k.context_used_percent=="number"&&k.context_used_percent>0;return x.jsxs("div",{ref:k.id===n?b:void 0,className:pe("flex shrink-0 items-center rounded-full text-sm font-medium text-muted transition",k.id===n&&"bg-surface-2 text-text"),children:[x.jsxs("button",{type:"button",onClick:()=>u(k.id),className:pe("flex min-w-0 items-center gap-1.5 py-1.5 pl-3.5",e.length>1||j?"pr-1":"pr-3.5"),children:[B?x.jsx(Mg,{state:B,className:"size-3"}):k.status==="working"?x.jsx("span",{className:"dot-spinner size-3"}):k.background_tasks?.length?x.jsx(Zd,{size:11,className:"shrink-0 text-faint","aria-label":"Waiting for a background task"}):null,x.jsx("span",{className:"max-w-36 truncate",children:k.title||"Untitled"}),l[k.id]?x.jsx(C5,{name:l[k.id].role}):null,lw(k,a)?x.jsx("span",{className:"dot size-1.5 bg-accent"}):null]}),x.jsx(jL,{session:k,onOpen:()=>d(k)}),e.length>1?x.jsx("button",{type:"button",onClick:()=>h(k.id),disabled:!y||p!==null,"aria-label":`Close ${k.title||"Untitled"} chat`,className:"mr-1 flex size-6 shrink-0 items-center justify-center rounded-full text-faint transition active:bg-bg/70 active:text-text disabled:opacity-40",children:p===k.id?x.jsx(Tn,{size:12,className:"animate-spin"}):x.jsx(bn,{size:12})}):null]},k.id)})}),x.jsx("button",{type:"button",onClick:f,disabled:g,"aria-label":"New chat, same files",className:"flex size-7 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",children:x.jsx(Wd,{size:18})})]})}function ML({title:e,busy:n,onCancel:a,onConfirm:i}){return x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-working/30 bg-working/5 px-3 py-2 text-xs",children:[x.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[x.jsx("span",{className:"font-semibold",children:e})," is still working. Close the tab anyway?"]}),x.jsx("button",{type:"button",onClick:a,disabled:n,className:"rounded-lg px-2 py-1 text-muted active:bg-surface-2",children:"Cancel"}),x.jsxs("button",{type:"button",onClick:i,disabled:n,className:"flex items-center gap-1 rounded-lg bg-del px-2 py-1 font-semibold text-black active:scale-95 disabled:opacity-50",children:[n?x.jsx(Tn,{size:12,className:"animate-spin"}):null,"Close anyway"]})]})}function jL({session:e,onOpen:n}){const a=e.context_used_percent;return typeof a!="number"||a<=0?null:x.jsxs("button",{type:"button",onClick:n,"aria-label":`Context for ${e.title||"Untitled"}: ${Math.round(a)}% used`,"aria-haspopup":"dialog",className:pe("mr-1 flex h-7 min-w-10 shrink-0 items-center justify-center rounded-full px-2 text-[11px] tabular-nums transition active:bg-bg/70",a>=80?"text-working":"text-faint"),children:[Math.round(a),"%"]})}function TL({review:e,sessionId:n,selectedFile:a,onSelectFile:i,onClose:l}){return x.jsxs("aside",{className:"hidden flex-col bg-bg lg:flex lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[x.jsxs("header",{className:"flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[x.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Changed files"}),x.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:20})})]}),x.jsx(b5,{review:e,sessionId:n,selectedFile:a,onSelectFile:i})]})}function RL({review:e,sessionId:n,selectedFile:a,onSelectFile:i,onClose:l}){return x.jsxs("section",{className:"absolute inset-0 z-20 flex flex-col bg-bg lg:hidden","aria-label":"Changed files",children:[x.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[x.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Changed files"}),x.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:20})})]}),x.jsx(b5,{review:e,sessionId:n,selectedFile:a,onSelectFile:i})]})}var G0={exports:{}},OL=G0.exports,F2;function zL(){return F2||(F2=1,(function(e,n){(function(i,l){e.exports=l()})(typeof self<"u"?self:OL,function(){return(function(a){var i={};function l(o){if(i[o])return i[o].exports;var u=i[o]={i:o,l:!1,exports:{}};return a[o].call(u.exports,u,u.exports,l),u.l=!0,u.exports}return l.m=a,l.c=i,l.d=function(o,u,d){l.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:d})},l.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return l.d(u,"a",u),u},l.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},l.p="",l(l.s=3)})([(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function u(d,f){this.width=f,this.height=d.length/f,this.data=d}return u.createEmpty=function(d,f){return new u(new Uint8ClampedArray(d*f),d)},u.prototype.get=function(d,f){return d<0||d>=this.width||f<0||f>=this.height?!1:!!this.data[f*this.width+d]},u.prototype.set=function(d,f,h){this.data[f*this.width+d]=h?1:0},u.prototype.setRegion=function(d,f,h,g,p){for(var y=f;y<f+g;y++)for(var b=d;b<d+h;b++)this.set(b,y,!!p)},u})();i.BitMatrix=o}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(2);function u(f,h){return f^h}i.addOrSubtractGF=u;var d=(function(){function f(h,g,p){this.primitive=h,this.size=g,this.generatorBase=p,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var y=1,b=0;b<this.size;b++)this.expTable[b]=y,y=y*2,y>=this.size&&(y=(y^this.primitive)&this.size-1);for(var b=0;b<this.size-1;b++)this.logTable[this.expTable[b]]=b;this.zero=new o.default(this,Uint8ClampedArray.from([0])),this.one=new o.default(this,Uint8ClampedArray.from([1]))}return f.prototype.multiply=function(h,g){return h===0||g===0?0:this.expTable[(this.logTable[h]+this.logTable[g])%(this.size-1)]},f.prototype.inverse=function(h){if(h===0)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[h]-1]},f.prototype.buildMonomial=function(h,g){if(h<0)throw new Error("Invalid monomial degree less than 0");if(g===0)return this.zero;var p=new Uint8ClampedArray(h+1);return p[0]=g,new o.default(this,p)},f.prototype.log=function(h){if(h===0)throw new Error("Can't take log(0)");return this.logTable[h]},f.prototype.exp=function(h){return this.expTable[h]},f})();i.default=d}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(1),u=(function(){function d(f,h){if(h.length===0)throw new Error("No coefficients.");this.field=f;var g=h.length;if(g>1&&h[0]===0){for(var p=1;p<g&&h[p]===0;)p++;if(p===g)this.coefficients=f.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(g-p);for(var y=0;y<this.coefficients.length;y++)this.coefficients[y]=h[p+y]}}else this.coefficients=h}return d.prototype.degree=function(){return this.coefficients.length-1},d.prototype.isZero=function(){return this.coefficients[0]===0},d.prototype.getCoefficient=function(f){return this.coefficients[this.coefficients.length-1-f]},d.prototype.addOrSubtract=function(f){var h;if(this.isZero())return f;if(f.isZero())return this;var g=this.coefficients,p=f.coefficients;g.length>p.length&&(h=[p,g],g=h[0],p=h[1]);for(var y=new Uint8ClampedArray(p.length),b=p.length-g.length,C=0;C<b;C++)y[C]=p[C];for(var C=b;C<p.length;C++)y[C]=o.addOrSubtractGF(g[C-b],p[C]);return new d(this.field,y)},d.prototype.multiply=function(f){if(f===0)return this.field.zero;if(f===1)return this;for(var h=this.coefficients.length,g=new Uint8ClampedArray(h),p=0;p<h;p++)g[p]=this.field.multiply(this.coefficients[p],f);return new d(this.field,g)},d.prototype.multiplyPoly=function(f){if(this.isZero()||f.isZero())return this.field.zero;for(var h=this.coefficients,g=h.length,p=f.coefficients,y=p.length,b=new Uint8ClampedArray(g+y-1),C=0;C<g;C++)for(var v=h[C],k=0;k<y;k++)b[C+k]=o.addOrSubtractGF(b[C+k],this.field.multiply(v,p[k]));return new d(this.field,b)},d.prototype.multiplyByMonomial=function(f,h){if(f<0)throw new Error("Invalid degree less than 0");if(h===0)return this.field.zero;for(var g=this.coefficients.length,p=new Uint8ClampedArray(g+f),y=0;y<g;y++)p[y]=this.field.multiply(this.coefficients[y],h);return new d(this.field,p)},d.prototype.evaluateAt=function(f){var h=0;if(f===0)return this.getCoefficient(0);var g=this.coefficients.length;if(f===1)return this.coefficients.forEach(function(y){h=o.addOrSubtractGF(h,y)}),h;h=this.coefficients[0];for(var p=1;p<g;p++)h=o.addOrSubtractGF(this.field.multiply(f,h),this.coefficients[p]);return h},d})();i.default=u}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(4),u=l(5),d=l(11),f=l(12);function h(y){var b=f.locate(y);if(!b)return null;for(var C=0,v=b;C<v.length;C++){var k=v[C],B=d.extract(y,k),j=u.decode(B.matrix);if(j)return{binaryData:j.bytes,data:j.text,chunks:j.chunks,version:j.version,location:{topRightCorner:B.mappingFunction(k.dimension,0),topLeftCorner:B.mappingFunction(0,0),bottomRightCorner:B.mappingFunction(k.dimension,k.dimension),bottomLeftCorner:B.mappingFunction(0,k.dimension),topRightFinderPattern:k.topRight,topLeftFinderPattern:k.topLeft,bottomLeftFinderPattern:k.bottomLeft,bottomRightAlignmentPattern:k.alignmentPattern}}}return null}var g={inversionAttempts:"attemptBoth"};function p(y,b,C,v){v===void 0&&(v={});var k=g;Object.keys(k||{}).forEach(function(R){k[R]=v[R]||k[R]});var B=k.inversionAttempts==="attemptBoth"||k.inversionAttempts==="invertFirst",j=k.inversionAttempts==="onlyInvert"||k.inversionAttempts==="invertFirst",S=o.binarize(y,b,C,B),_=S.binarized,T=S.inverted,F=h(j?T:_);return!F&&(k.inversionAttempts==="attemptBoth"||k.inversionAttempts==="invertFirst")&&(F=h(j?_:T)),F}p.default=p,i.default=p}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(0),u=8,d=24;function f(p,y,b){return p<y?y:p>b?b:p}var h=(function(){function p(y,b){this.width=y,this.data=new Uint8ClampedArray(y*b)}return p.prototype.get=function(y,b){return this.data[b*this.width+y]},p.prototype.set=function(y,b,C){this.data[b*this.width+y]=C},p})();function g(p,y,b,C){if(p.length!==y*b*4)throw new Error("Malformed data passed to binarizer.");for(var v=new h(y,b),k=0;k<y;k++)for(var B=0;B<b;B++){var j=p[(B*y+k)*4+0],S=p[(B*y+k)*4+1],_=p[(B*y+k)*4+2];v.set(k,B,.2126*j+.7152*S+.0722*_)}for(var T=Math.ceil(y/u),F=Math.ceil(b/u),R=new h(T,F),L=0;L<F;L++)for(var I=0;I<T;I++){for(var O=0,$=1/0,V=0,B=0;B<u;B++)for(var k=0;k<u;k++){var oe=v.get(I*u+k,L*u+B);O+=oe,$=Math.min($,oe),V=Math.max(V,oe)}var te=O/Math.pow(u,2);if(V-$<=d&&(te=$/2,L>0&&I>0)){var Y=(R.get(I,L-1)+2*R.get(I-1,L)+R.get(I-1,L-1))/4;$<Y&&(te=Y)}R.set(I,L,te)}var P=o.BitMatrix.createEmpty(y,b),Q=null;C&&(Q=o.BitMatrix.createEmpty(y,b));for(var L=0;L<F;L++)for(var I=0;I<T;I++){for(var Z=f(I,2,T-3),de=f(L,2,F-3),O=0,M=-2;M<=2;M++)for(var z=-2;z<=2;z++)O+=R.get(Z+M,de+z);for(var X=O/25,M=0;M<u;M++)for(var z=0;z<u;z++){var k=I*u+M,B=L*u+z,w=v.get(k,B);P.set(k,B,w<=X),C&&Q.set(k,B,!(w<=X))}}return C?{binarized:P,inverted:Q}:{binarized:P}}i.binarize=g}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(0),u=l(6),d=l(9),f=l(10);function h(_,T){for(var F=_^T,R=0;F;)R++,F&=F-1;return R}function g(_,T){return T<<1|_}var p=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],y=[function(_){return(_.y+_.x)%2===0},function(_){return _.y%2===0},function(_){return _.x%3===0},function(_){return(_.y+_.x)%3===0},function(_){return(Math.floor(_.y/2)+Math.floor(_.x/3))%2===0},function(_){return _.x*_.y%2+_.x*_.y%3===0},function(_){return(_.y*_.x%2+_.y*_.x%3)%2===0},function(_){return((_.y+_.x)%2+_.y*_.x%3)%2===0}];function b(_){var T=17+4*_.versionNumber,F=o.BitMatrix.createEmpty(T,T);F.setRegion(0,0,9,9,!0),F.setRegion(T-8,0,8,9,!0),F.setRegion(0,T-8,9,8,!0);for(var R=0,L=_.alignmentPatternCenters;R<L.length;R++)for(var I=L[R],O=0,$=_.alignmentPatternCenters;O<$.length;O++){var V=$[O];I===6&&V===6||I===6&&V===T-7||I===T-7&&V===6||F.setRegion(I-2,V-2,5,5,!0)}return F.setRegion(6,9,1,T-17,!0),F.setRegion(9,6,T-17,1,!0),_.versionNumber>6&&(F.setRegion(T-11,0,3,6,!0),F.setRegion(0,T-11,6,3,!0)),F}function C(_,T,F){for(var R=y[F.dataMask],L=_.height,I=b(T),O=[],$=0,V=0,oe=!0,te=L-1;te>0;te-=2){te===6&&te--;for(var Y=0;Y<L;Y++)for(var P=oe?L-1-Y:Y,Q=0;Q<2;Q++){var Z=te-Q;if(!I.get(Z,P)){V++;var de=_.get(Z,P);R({y:P,x:Z})&&(de=!de),$=g(de,$),V===8&&(O.push($),V=0,$=0)}}oe=!oe}return O}function v(_){var T=_.height,F=Math.floor((T-17)/4);if(F<=6)return f.VERSIONS[F-1];for(var R=0,L=5;L>=0;L--)for(var I=T-9;I>=T-11;I--)R=g(_.get(I,L),R);for(var O=0,I=5;I>=0;I--)for(var L=T-9;L>=T-11;L--)O=g(_.get(I,L),O);for(var $=1/0,V,oe=0,te=f.VERSIONS;oe<te.length;oe++){var Y=te[oe];if(Y.infoBits===R||Y.infoBits===O)return Y;var P=h(R,Y.infoBits);P<$&&(V=Y,$=P),P=h(O,Y.infoBits),P<$&&(V=Y,$=P)}if($<=3)return V}function k(_){for(var T=0,F=0;F<=8;F++)F!==6&&(T=g(_.get(F,8),T));for(var R=7;R>=0;R--)R!==6&&(T=g(_.get(8,R),T));for(var L=_.height,I=0,R=L-1;R>=L-7;R--)I=g(_.get(8,R),I);for(var F=L-8;F<L;F++)I=g(_.get(F,8),I);for(var O=1/0,$=null,V=0,oe=p;V<oe.length;V++){var te=oe[V],Y=te.bits,P=te.formatInfo;if(Y===T||Y===I)return P;var Q=h(T,Y);Q<O&&($=P,O=Q),T!==I&&(Q=h(I,Y),Q<O&&($=P,O=Q))}return O<=3?$:null}function B(_,T,F){var R=T.errorCorrectionLevels[F],L=[],I=0;if(R.ecBlocks.forEach(function(de){for(var M=0;M<de.numBlocks;M++)L.push({numDataCodewords:de.dataCodewordsPerBlock,codewords:[]}),I+=de.dataCodewordsPerBlock+R.ecCodewordsPerBlock}),_.length<I)return null;_=_.slice(0,I);for(var O=R.ecBlocks[0].dataCodewordsPerBlock,$=0;$<O;$++)for(var V=0,oe=L;V<oe.length;V++){var te=oe[V];te.codewords.push(_.shift())}if(R.ecBlocks.length>1)for(var Y=R.ecBlocks[0].numBlocks,P=R.ecBlocks[1].numBlocks,$=0;$<P;$++)L[Y+$].codewords.push(_.shift());for(;_.length>0;)for(var Q=0,Z=L;Q<Z.length;Q++){var te=Z[Q];te.codewords.push(_.shift())}return L}function j(_){var T=v(_);if(!T)return null;var F=k(_);if(!F)return null;var R=C(_,T,F),L=B(R,T,F.errorCorrectionLevel);if(!L)return null;for(var I=L.reduce(function(Q,Z){return Q+Z.numDataCodewords},0),O=new Uint8ClampedArray(I),$=0,V=0,oe=L;V<oe.length;V++){var te=oe[V],Y=d.decode(te.codewords,te.codewords.length-te.numDataCodewords);if(!Y)return null;for(var P=0;P<te.numDataCodewords;P++)O[$++]=Y[P]}try{return u.decode(O,T.versionNumber)}catch{return null}}function S(_){if(_==null)return null;var T=j(_);if(T)return T;for(var F=0;F<_.width;F++)for(var R=F+1;R<_.height;R++)_.get(F,R)!==_.get(R,F)&&(_.set(F,R,!_.get(F,R)),_.set(R,F,!_.get(R,F)));return j(_)}i.decode=S}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(7),u=l(8),d;(function(v){v.Numeric="numeric",v.Alphanumeric="alphanumeric",v.Byte="byte",v.Kanji="kanji",v.ECI="eci"})(d=i.Mode||(i.Mode={}));var f;(function(v){v[v.Terminator=0]="Terminator",v[v.Numeric=1]="Numeric",v[v.Alphanumeric=2]="Alphanumeric",v[v.Byte=4]="Byte",v[v.Kanji=8]="Kanji",v[v.ECI=7]="ECI"})(f||(f={}));function h(v,k){for(var B=[],j="",S=[10,12,14][k],_=v.readBits(S);_>=3;){var T=v.readBits(10);if(T>=1e3)throw new Error("Invalid numeric value above 999");var F=Math.floor(T/100),R=Math.floor(T/10)%10,L=T%10;B.push(48+F,48+R,48+L),j+=F.toString()+R.toString()+L.toString(),_-=3}if(_===2){var T=v.readBits(7);if(T>=100)throw new Error("Invalid numeric value above 99");var F=Math.floor(T/10),R=T%10;B.push(48+F,48+R),j+=F.toString()+R.toString()}else if(_===1){var T=v.readBits(4);if(T>=10)throw new Error("Invalid numeric value above 9");B.push(48+T),j+=T.toString()}return{bytes:B,text:j}}var g=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function p(v,k){for(var B=[],j="",S=[9,11,13][k],_=v.readBits(S);_>=2;){var T=v.readBits(11),F=Math.floor(T/45),R=T%45;B.push(g[F].charCodeAt(0),g[R].charCodeAt(0)),j+=g[F]+g[R],_-=2}if(_===1){var F=v.readBits(6);B.push(g[F].charCodeAt(0)),j+=g[F]}return{bytes:B,text:j}}function y(v,k){for(var B=[],j="",S=[8,16,16][k],_=v.readBits(S),T=0;T<_;T++){var F=v.readBits(8);B.push(F)}try{j+=decodeURIComponent(B.map(function(R){return"%"+("0"+R.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:B,text:j}}function b(v,k){for(var B=[],j="",S=[8,10,12][k],_=v.readBits(S),T=0;T<_;T++){var F=v.readBits(13),R=Math.floor(F/192)<<8|F%192;R<7936?R+=33088:R+=49472,B.push(R>>8,R&255),j+=String.fromCharCode(u.shiftJISTable[R])}return{bytes:B,text:j}}function C(v,k){for(var B,j,S,_,T=new o.BitStream(v),F=k<=9?0:k<=26?1:2,R={text:"",bytes:[],chunks:[],version:k};T.available()>=4;){var L=T.readBits(4);if(L===f.Terminator)return R;if(L===f.ECI)T.readBits(1)===0?R.chunks.push({type:d.ECI,assignmentNumber:T.readBits(7)}):T.readBits(1)===0?R.chunks.push({type:d.ECI,assignmentNumber:T.readBits(14)}):T.readBits(1)===0?R.chunks.push({type:d.ECI,assignmentNumber:T.readBits(21)}):R.chunks.push({type:d.ECI,assignmentNumber:-1});else if(L===f.Numeric){var I=h(T,F);R.text+=I.text,(B=R.bytes).push.apply(B,I.bytes),R.chunks.push({type:d.Numeric,text:I.text})}else if(L===f.Alphanumeric){var O=p(T,F);R.text+=O.text,(j=R.bytes).push.apply(j,O.bytes),R.chunks.push({type:d.Alphanumeric,text:O.text})}else if(L===f.Byte){var $=y(T,F);R.text+=$.text,(S=R.bytes).push.apply(S,$.bytes),R.chunks.push({type:d.Byte,bytes:$.bytes,text:$.text})}else if(L===f.Kanji){var V=b(T,F);R.text+=V.text,(_=R.bytes).push.apply(_,V.bytes),R.chunks.push({type:d.Kanji,bytes:V.bytes,text:V.text})}}if(T.available()===0||T.readBits(T.available())===0)return R}i.decode=C}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function u(d){this.byteOffset=0,this.bitOffset=0,this.bytes=d}return u.prototype.readBits=function(d){if(d<1||d>32||d>this.available())throw new Error("Cannot read "+d.toString()+" bits");var f=0;if(this.bitOffset>0){var h=8-this.bitOffset,g=d<h?d:h,p=h-g,y=255>>8-g<<p;f=(this.bytes[this.byteOffset]&y)>>p,d-=g,this.bitOffset+=g,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(d>0){for(;d>=8;)f=f<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,d-=8;if(d>0){var p=8-d,y=255>>p<<p;f=f<<d|(this.bytes[this.byteOffset]&y)>>p,this.bitOffset+=d}}return f},u.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},u})();i.BitStream=o}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(1),u=l(2);function d(p,y,b,C){var v;y.degree()<b.degree()&&(v=[b,y],y=v[0],b=v[1]);for(var k=y,B=b,j=p.zero,S=p.one;B.degree()>=C/2;){var _=k,T=j;if(k=B,j=S,k.isZero())return null;B=_;for(var F=p.zero,R=k.getCoefficient(k.degree()),L=p.inverse(R);B.degree()>=k.degree()&&!B.isZero();){var I=B.degree()-k.degree(),O=p.multiply(B.getCoefficient(B.degree()),L);F=F.addOrSubtract(p.buildMonomial(I,O)),B=B.addOrSubtract(k.multiplyByMonomial(I,O))}if(S=F.multiplyPoly(j).addOrSubtract(T),B.degree()>=k.degree())return null}var $=S.getCoefficient(0);if($===0)return null;var V=p.inverse($);return[S.multiply(V),B.multiply(V)]}function f(p,y){var b=y.degree();if(b===1)return[y.getCoefficient(1)];for(var C=new Array(b),v=0,k=1;k<p.size&&v<b;k++)y.evaluateAt(k)===0&&(C[v]=p.inverse(k),v++);return v!==b?null:C}function h(p,y,b){for(var C=b.length,v=new Array(C),k=0;k<C;k++){for(var B=p.inverse(b[k]),j=1,S=0;S<C;S++)k!==S&&(j=p.multiply(j,o.addOrSubtractGF(1,p.multiply(b[S],B))));v[k]=p.multiply(y.evaluateAt(B),p.inverse(j)),p.generatorBase!==0&&(v[k]=p.multiply(v[k],B))}return v}function g(p,y){var b=new Uint8ClampedArray(p.length);b.set(p);for(var C=new o.default(285,256,0),v=new u.default(C,b),k=new Uint8ClampedArray(y),B=!1,j=0;j<y;j++){var S=v.evaluateAt(C.exp(j+C.generatorBase));k[k.length-1-j]=S,S!==0&&(B=!0)}if(!B)return b;var _=new u.default(C,k),T=d(C,C.buildMonomial(y,1),_,y);if(T===null)return null;var F=f(C,T[0]);if(F==null)return null;for(var R=h(C,T[1],F),L=0;L<F.length;L++){var I=b.length-1-C.log(F[L]);if(I<0)return null;b[I]=o.addOrSubtractGF(b[I],R[L])}return b}i.decode=g}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(0);function u(g,p,y,b){var C=g.x-p.x+y.x-b.x,v=g.y-p.y+y.y-b.y;if(C===0&&v===0)return{a11:p.x-g.x,a12:p.y-g.y,a13:0,a21:y.x-p.x,a22:y.y-p.y,a23:0,a31:g.x,a32:g.y,a33:1};var k=p.x-y.x,B=b.x-y.x,j=p.y-y.y,S=b.y-y.y,_=k*S-B*j,T=(C*S-B*v)/_,F=(k*v-C*j)/_;return{a11:p.x-g.x+T*p.x,a12:p.y-g.y+T*p.y,a13:T,a21:b.x-g.x+F*b.x,a22:b.y-g.y+F*b.y,a23:F,a31:g.x,a32:g.y,a33:1}}function d(g,p,y,b){var C=u(g,p,y,b);return{a11:C.a22*C.a33-C.a23*C.a32,a12:C.a13*C.a32-C.a12*C.a33,a13:C.a12*C.a23-C.a13*C.a22,a21:C.a23*C.a31-C.a21*C.a33,a22:C.a11*C.a33-C.a13*C.a31,a23:C.a13*C.a21-C.a11*C.a23,a31:C.a21*C.a32-C.a22*C.a31,a32:C.a12*C.a31-C.a11*C.a32,a33:C.a11*C.a22-C.a12*C.a21}}function f(g,p){return{a11:g.a11*p.a11+g.a21*p.a12+g.a31*p.a13,a12:g.a12*p.a11+g.a22*p.a12+g.a32*p.a13,a13:g.a13*p.a11+g.a23*p.a12+g.a33*p.a13,a21:g.a11*p.a21+g.a21*p.a22+g.a31*p.a23,a22:g.a12*p.a21+g.a22*p.a22+g.a32*p.a23,a23:g.a13*p.a21+g.a23*p.a22+g.a33*p.a23,a31:g.a11*p.a31+g.a21*p.a32+g.a31*p.a33,a32:g.a12*p.a31+g.a22*p.a32+g.a32*p.a33,a33:g.a13*p.a31+g.a23*p.a32+g.a33*p.a33}}function h(g,p){for(var y=d({x:3.5,y:3.5},{x:p.dimension-3.5,y:3.5},{x:p.dimension-6.5,y:p.dimension-6.5},{x:3.5,y:p.dimension-3.5}),b=u(p.topLeft,p.topRight,p.alignmentPattern,p.bottomLeft),C=f(b,y),v=o.BitMatrix.createEmpty(p.dimension,p.dimension),k=function(F,R){var L=C.a13*F+C.a23*R+C.a33;return{x:(C.a11*F+C.a21*R+C.a31)/L,y:(C.a12*F+C.a22*R+C.a32)/L}},B=0;B<p.dimension;B++)for(var j=0;j<p.dimension;j++){var S=j+.5,_=B+.5,T=k(S,_);v.set(j,B,g.get(Math.floor(T.x),Math.floor(T.y)))}return{matrix:v,mappingFunction:k}}i.extract=h}),(function(a,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=4,u=.5,d=1.5,f=function(S,_){return Math.sqrt(Math.pow(_.x-S.x,2)+Math.pow(_.y-S.y,2))};function h(S){return S.reduce(function(_,T){return _+T})}function g(S,_,T){var F,R,L,I,O=f(S,_),$=f(_,T),V=f(S,T),oe,te,Y;return $>=O&&$>=V?(F=[_,S,T],oe=F[0],te=F[1],Y=F[2]):V>=$&&V>=O?(R=[S,_,T],oe=R[0],te=R[1],Y=R[2]):(L=[S,T,_],oe=L[0],te=L[1],Y=L[2]),(Y.x-te.x)*(oe.y-te.y)-(Y.y-te.y)*(oe.x-te.x)<0&&(I=[Y,oe],oe=I[0],Y=I[1]),{bottomLeft:oe,topLeft:te,topRight:Y}}function p(S,_,T,F){var R=(h(b(S,T,F,5))/7+h(b(S,_,F,5))/7+h(b(T,S,F,5))/7+h(b(_,S,F,5))/7)/4;if(R<1)throw new Error("Invalid module size");var L=Math.round(f(S,_)/R),I=Math.round(f(S,T)/R),O=Math.floor((L+I)/2)+7;switch(O%4){case 0:O++;break;case 2:O--;break}return{dimension:O,moduleSize:R}}function y(S,_,T,F){var R=[{x:Math.floor(S.x),y:Math.floor(S.y)}],L=Math.abs(_.y-S.y)>Math.abs(_.x-S.x),I,O,$,V;L?(I=Math.floor(S.y),O=Math.floor(S.x),$=Math.floor(_.y),V=Math.floor(_.x)):(I=Math.floor(S.x),O=Math.floor(S.y),$=Math.floor(_.x),V=Math.floor(_.y));for(var oe=Math.abs($-I),te=Math.abs(V-O),Y=Math.floor(-oe/2),P=I<$?1:-1,Q=O<V?1:-1,Z=!0,de=I,M=O;de!==$+P;de+=P){var z=L?M:de,X=L?de:M;if(T.get(z,X)!==Z&&(Z=!Z,R.push({x:z,y:X}),R.length===F+1))break;if(Y+=te,Y>0){if(M===V)break;M+=Q,Y-=oe}}for(var w=[],W=0;W<F;W++)R[W]&&R[W+1]?w.push(f(R[W],R[W+1])):w.push(0);return w}function b(S,_,T,F){var R,L=_.y-S.y,I=_.x-S.x,O=y(S,_,T,Math.ceil(F/2)),$=y(S,{x:S.x-I,y:S.y-L},T,Math.ceil(F/2)),V=O.shift()+$.shift()-1;return(R=$.concat(V)).concat.apply(R,O)}function C(S,_){var T=h(S)/h(_),F=0;return _.forEach(function(R,L){F+=Math.pow(S[L]-R*T,2)}),{averageSize:T,error:F}}function v(S,_,T){try{var F=b(S,{x:-1,y:S.y},T,_.length),R=b(S,{x:S.x,y:-1},T,_.length),L={x:Math.max(0,S.x-S.y)-1,y:Math.max(0,S.y-S.x)-1},I=b(S,L,T,_.length),O={x:Math.min(T.width,S.x+S.y)+1,y:Math.min(T.height,S.y+S.x)+1},$=b(S,O,T,_.length),V=C(F,_),oe=C(R,_),te=C(I,_),Y=C($,_),P=Math.sqrt(V.error*V.error+oe.error*oe.error+te.error*te.error+Y.error*Y.error),Q=(V.averageSize+oe.averageSize+te.averageSize+Y.averageSize)/4,Z=(Math.pow(V.averageSize-Q,2)+Math.pow(oe.averageSize-Q,2)+Math.pow(te.averageSize-Q,2)+Math.pow(Y.averageSize-Q,2))/Q;return P+Z}catch{return 1/0}}function k(S,_){for(var T=Math.round(_.x);S.get(T,Math.round(_.y));)T--;for(var F=Math.round(_.x);S.get(F,Math.round(_.y));)F++;for(var R=(T+F)/2,L=Math.round(_.y);S.get(Math.round(R),L);)L--;for(var I=Math.round(_.y);S.get(Math.round(R),I);)I++;var O=(L+I)/2;return{x:R,y:O}}function B(S){for(var _=[],T=[],F=[],R=[],L=function(z){for(var X=0,w=!1,W=[0,0,0,0,0],he=function(De){var Ge=S.get(De,z);if(Ge===w)X++;else{W=[W[1],W[2],W[3],W[4],X],X=1,w=Ge;var we=h(W)/7,st=Math.abs(W[0]-we)<we&&Math.abs(W[1]-we)<we&&Math.abs(W[2]-3*we)<3*we&&Math.abs(W[3]-we)<we&&Math.abs(W[4]-we)<we&&!Ge,ut=h(W.slice(-3))/3,Lt=Math.abs(W[2]-ut)<ut&&Math.abs(W[3]-ut)<ut&&Math.abs(W[4]-ut)<ut&&Ge;if(st){var Ct=De-W[3]-W[4],Ce=Ct-W[2],Ae={startX:Ce,endX:Ct,y:z},Oe=T.filter(function(ht){return Ce>=ht.bottom.startX&&Ce<=ht.bottom.endX||Ct>=ht.bottom.startX&&Ce<=ht.bottom.endX||Ce<=ht.bottom.startX&&Ct>=ht.bottom.endX&&W[2]/(ht.bottom.endX-ht.bottom.startX)<d&&W[2]/(ht.bottom.endX-ht.bottom.startX)>u});Oe.length>0?Oe[0].bottom=Ae:T.push({top:Ae,bottom:Ae})}if(Lt){var Ye=De-W[4],kt=Ye-W[3],Ae={startX:kt,y:z,endX:Ye},Oe=R.filter(function(vt){return kt>=vt.bottom.startX&&kt<=vt.bottom.endX||Ye>=vt.bottom.startX&&kt<=vt.bottom.endX||kt<=vt.bottom.startX&&Ye>=vt.bottom.endX&&W[2]/(vt.bottom.endX-vt.bottom.startX)<d&&W[2]/(vt.bottom.endX-vt.bottom.startX)>u});Oe.length>0?Oe[0].bottom=Ae:R.push({top:Ae,bottom:Ae})}}},re=-1;re<=S.width;re++)he(re);_.push.apply(_,T.filter(function(De){return De.bottom.y!==z&&De.bottom.y-De.top.y>=2})),T=T.filter(function(De){return De.bottom.y===z}),F.push.apply(F,R.filter(function(De){return De.bottom.y!==z})),R=R.filter(function(De){return De.bottom.y===z})},I=0;I<=S.height;I++)L(I);_.push.apply(_,T.filter(function(z){return z.bottom.y-z.top.y>=2})),F.push.apply(F,R);var O=_.filter(function(z){return z.bottom.y-z.top.y>=2}).map(function(z){var X=(z.top.startX+z.top.endX+z.bottom.startX+z.bottom.endX)/4,w=(z.top.y+z.bottom.y+1)/2;if(S.get(Math.round(X),Math.round(w))){var W=[z.top.endX-z.top.startX,z.bottom.endX-z.bottom.startX,z.bottom.y-z.top.y+1],he=h(W)/W.length,re=v({x:Math.round(X),y:Math.round(w)},[1,1,3,1,1],S);return{score:re,x:X,y:w,size:he}}}).filter(function(z){return!!z}).sort(function(z,X){return z.score-X.score}).map(function(z,X,w){if(X>o)return null;var W=w.filter(function(re,De){return X!==De}).map(function(re){return{x:re.x,y:re.y,score:re.score+Math.pow(re.size-z.size,2)/z.size,size:re.size}}).sort(function(re,De){return re.score-De.score});if(W.length<2)return null;var he=z.score+W[0].score+W[1].score;return{points:[z].concat(W.slice(0,2)),score:he}}).filter(function(z){return!!z}).sort(function(z,X){return z.score-X.score});if(O.length===0)return null;var $=g(O[0].points[0],O[0].points[1],O[0].points[2]),V=$.topRight,oe=$.topLeft,te=$.bottomLeft,Y=j(S,F,V,oe,te),P=[];Y&&P.push({alignmentPattern:{x:Y.alignmentPattern.x,y:Y.alignmentPattern.y},bottomLeft:{x:te.x,y:te.y},dimension:Y.dimension,topLeft:{x:oe.x,y:oe.y},topRight:{x:V.x,y:V.y}});var Q=k(S,V),Z=k(S,oe),de=k(S,te),M=j(S,F,Q,Z,de);return M&&P.push({alignmentPattern:{x:M.alignmentPattern.x,y:M.alignmentPattern.y},bottomLeft:{x:de.x,y:de.y},topLeft:{x:Z.x,y:Z.y},topRight:{x:Q.x,y:Q.y},dimension:M.dimension}),P.length===0?null:P}i.locate=B;function j(S,_,T,F,R){var L,I,O;try{L=p(F,T,R,S),I=L.dimension,O=L.moduleSize}catch{return null}var $={x:T.x-F.x+R.x,y:T.y-F.y+R.y},V=(f(F,R)+f(F,T))/2/O,oe=1-3/V,te={x:F.x+oe*($.x-F.x),y:F.y+oe*($.y-F.y)},Y=_.map(function(Q){var Z=(Q.top.startX+Q.top.endX+Q.bottom.startX+Q.bottom.endX)/4,de=(Q.top.y+Q.bottom.y+1)/2;if(S.get(Math.floor(Z),Math.floor(de))){var M=[Q.top.endX-Q.top.startX,Q.bottom.endX-Q.bottom.startX,Q.bottom.y-Q.top.y+1];h(M)/M.length;var z=v({x:Math.floor(Z),y:Math.floor(de)},[1,1,1],S),X=z+f({x:Z,y:de},te);return{x:Z,y:de,score:X}}}).filter(function(Q){return!!Q}).sort(function(Q,Z){return Q.score-Z.score}),P=V>=15&&Y.length?Y[0]:te;return{alignmentPattern:P,dimension:I}}})]).default})})(G0)),G0.exports}var LL=zL();const PL=Zl(LL);function IL({onResult:e,onClose:n}){const a=D.useRef(null),[i,l]=D.useState(null);return D.useEffect(()=>{let o=null,u=0,d=!1;const f=document.createElement("canvas"),h=f.getContext("2d",{willReadFrequently:!0}),g=()=>{const p=a.current;if(!(d||!p||!h)){if(p.readyState>=p.HAVE_ENOUGH_DATA&&p.videoWidth){f.width=p.videoWidth,f.height=p.videoHeight,h.drawImage(p,0,0,f.width,f.height);const{data:y,width:b,height:C}=h.getImageData(0,0,f.width,f.height),v=PL(y,b,C,{inversionAttempts:"dontInvert"});if(v?.data){d=!0,e(v.data);return}}u=requestAnimationFrame(g)}};return navigator.mediaDevices?.getUserMedia({video:{facingMode:"environment"}}).then(p=>{if(d){for(const b of p.getTracks())b.stop();return}o=p;const y=a.current;y&&(y.srcObject=p,y.play(),u=requestAnimationFrame(g))}).catch(p=>l(UL(p))),()=>{if(d=!0,cancelAnimationFrame(u),o)for(const p of o.getTracks())p.stop()}},[e]),x.jsxs("div",{className:"fixed inset-0 z-[60] bg-black",children:[x.jsx("video",{ref:a,muted:!0,playsInline:!0,className:"h-full w-full object-cover"}),x.jsx("div",{className:"pointer-events-none absolute inset-0 grid place-items-center",children:x.jsx("div",{className:"size-60 max-w-[70vw] rounded-3xl border-2 border-white/80 shadow-[0_0_0_100vmax_rgba(0,0,0,0.5)]"})}),x.jsxs("div",{className:"pt-safe absolute inset-x-0 top-0 flex items-center justify-between p-4",children:[x.jsx("span",{className:"rounded-full bg-black/50 px-3 py-1 text-sm text-white",children:"Point at the relay QR"}),x.jsx("button",{type:"button",onClick:n,"aria-label":"Cancel scan",className:"flex size-9 items-center justify-center rounded-full bg-black/50 text-white active:bg-black/70",children:x.jsx(bn,{size:20})})]}),i?x.jsx("div",{className:"pb-safe absolute inset-x-0 bottom-0 bg-black/75 p-4 text-center text-sm leading-relaxed text-white",children:i}):null]})}function UL(e){const n=e instanceof DOMException?e.name:"";return n==="NotAllowedError"?"Camera permission denied. Allow camera access, or paste the token instead.":n==="NotFoundError"||n==="OverconstrainedError"?"No camera found — paste the token instead.":window.isSecureContext?`Camera unavailable (${e instanceof Error?e.message:String(e)}). Paste the token instead.`:"The camera needs HTTPS. Open the relay’s https:// URL, or paste the token."}function HL(){const e=Be(h=>h.setToken),[n,a]=D.useState(""),[i,l]=D.useState(!1),[o,u]=D.useState(!1),d=h=>{const g=qD(h);u(!1),g?e(g):l(!0)},f=h=>{h.preventDefault(),d(n)};return o?x.jsx(IL,{onResult:d,onClose:()=>u(!1)}):x.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 overflow-y-auto px-8 text-center",children:[x.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),x.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),x.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token (",x.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",x.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]}),x.jsxs("form",{onSubmit:f,className:"flex w-full max-w-xs flex-col gap-2",children:[x.jsx("input",{type:"text",inputMode:"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:n,onChange:h=>{a(h.target.value),l(!1)},placeholder:"Paste token or URL","aria-label":"Access token or URL",className:"rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-center font-mono text-base text-text placeholder:font-sans placeholder:text-faint"}),x.jsx("button",{type:"submit",className:"pill pill-active justify-center py-2.5",children:"Connect"}),x.jsxs("button",{type:"button",onClick:()=>{l(!1),u(!0)},className:"pill justify-center gap-2 py-2.5",children:[x.jsx(F8,{size:16}),"Scan QR"]}),i?x.jsx("p",{className:"text-xs",style:{color:"var(--color-del)"},children:"Couldn’t find a token in that — paste the token or the full URL, or scan the QR."}):null]}),x.jsxs("p",{className:"max-w-xs text-xs leading-relaxed text-faint",children:["Lost it? Run ",x.jsx("span",{className:"font-mono",children:"yarn service status"})," on your Mac to reprint the QR, then scan it above — no need to retype anything."]})]})}const Wx={voice:"marin",language:"auto"},A5="conductor-remote-voice";function $L(e=localStorage){try{const n=JSON.parse(e.getItem(A5)??"{}");return{voice:TD(n.voice)?n.voice:Wx.voice,language:RD(n.language)?n.language:Wx.language}}catch{return Wx}}function qL(e,n=localStorage){try{n.setItem(A5,JSON.stringify(e))}catch{}}function Cr(e,n){return typeof e[n]=="string"?e[n]:null}function GL(e){let n=e;if(typeof n=="string")try{n=JSON.parse(n)}catch{return null}if(!n||typeof n!="object")return null;const a=n,i=Cr(a,"type"),l=Cr(a,"item_id")??Cr(a,"call_id")??"voice-item";if(i==="conversation.item.input_audio_transcription.delta"){const o=Cr(a,"delta");return o===null?null:{kind:"input-delta",itemId:l,text:o}}if(i==="conversation.item.input_audio_transcription.completed"){const o=Cr(a,"transcript");return o===null?null:{kind:"input-done",itemId:l,text:o}}if(i==="response.output_audio_transcript.delta"||i==="response.audio_transcript.delta"){const o=Cr(a,"delta");return o===null?null:{kind:"output-delta",itemId:l,text:o}}if(i==="response.output_audio_transcript.done"||i==="response.audio_transcript.done"){const o=Cr(a,"transcript");return o===null?null:{kind:"output-done",itemId:l,text:o}}if(i==="response.output_text.delta"){const o=Cr(a,"delta");return o===null?null:{kind:"output-delta",itemId:l,text:o}}if(i==="response.output_text.done"){const o=Cr(a,"text");return o===null?null:{kind:"output-done",itemId:l,text:o}}if(i==="response.function_call_arguments.done"){const o=Cr(a,"name");return o===null?null:{kind:"tool",itemId:l,name:o}}if(i==="input_audio_buffer.speech_started")return{kind:"speech-started"};if(i==="response.created")return{kind:"response-started"};if(i==="response.done"){const o=a.response&&typeof a.response=="object"?a.response:null,u=o?.error&&typeof o.error=="object"?o.error:null,d=u?Cr(u,"message"):null;return d?{kind:"response-done",error:d}:{kind:"response-done"}}if(i==="error"){const o=a.error&&typeof a.error=="object"?a.error:null;return{kind:"error",text:o&&Cr(o,"message")||"Voice call failed"}}return null}function VL(e){switch(e){case"voice_roll_call":return"Checking the fleet";case"voice_workspace_overview":return"Refreshing workspace overview";case"voice_next_decision":return"Opening the next decision";case"voice_send_preview":return"Preparing a guarded send";case"voice_send":return"Queueing the approved prompt";default:return"Working with the relay"}}const k5=D.createContext(null);function L0(e){return[...e.values()].join(" ").trimStart()}function QL(e){return e instanceof DOMException&&(e.name==="NotAllowedError"||e.name==="SecurityError")}function YL({children:e}){const[n,a]=D.useState(!1),[i,l]=D.useState("idle"),[o,u]=D.useState(!1),[d,f]=D.useState(null),[h,g]=D.useState([]),[p,y]=D.useState(""),[b,C]=D.useState(""),[v,k]=D.useState($L),B=D.useRef("idle"),j=D.useRef(v),S=D.useRef(0),_=D.useRef(null),T=D.useRef(null),F=D.useRef(null),R=D.useRef(null),L=D.useRef(null),I=D.useRef(null),O=D.useRef(new Map),$=D.useRef(new Map),V=D.useRef(new Set),oe=D.useRef(new Set),te=D.useRef(new Set),Y=D.useRef(null);j.current=v;const P=D.useCallback(Ce=>{B.current=Ce,l(Ce)},[]),Q=D.useCallback(Ce=>{g(Ae=>Ae.some(Oe=>Oe.id===Ce.id)?Ae:[...Ae,Ce])},[]),Z=D.useCallback(()=>{O.current.clear(),$.current.clear(),y(""),C("")},[]),de=D.useCallback(()=>{S.current+=1,Y.current&&clearTimeout(Y.current),Y.current=null;try{T.current?.close()}catch{}try{_.current?.close()}catch{}for(const Ce of F.current?.getTracks()??[])Ce.stop();L.current&&(L.current.srcObject=null),_.current=null,T.current=null,F.current=null,R.current=null,L.current=null,I.current=null,Z()},[Z]),M=D.useCallback(Ce=>{const Ae=I.current;de(),u(!1),P("idle"),f(Ce),Ae&&je.voiceCallEnd(Ae).catch(()=>{})},[de,P]),z=D.useCallback(Ce=>{const Ae=GL(Ce);if(Ae)switch(Ae.kind){case"input-delta":O.current.set(Ae.itemId,(O.current.get(Ae.itemId)??"")+Ae.text),y(L0(O.current));return;case"input-done":{O.current.delete(Ae.itemId),y(L0(O.current)),!V.current.has(Ae.itemId)&&Ae.text.trim()&&(V.current.add(Ae.itemId),Q({id:`user:${Ae.itemId}`,role:"user",text:Ae.text.trim()})),B.current!=="speaking"&&P("thinking");return}case"output-delta":$.current.set(Ae.itemId,($.current.get(Ae.itemId)??"")+Ae.text),C(L0($.current)),P("speaking");return;case"output-done":{const Oe=(Ae.text||$.current.get(Ae.itemId)||"").trim();$.current.delete(Ae.itemId),C(L0($.current)),!oe.current.has(Ae.itemId)&&Oe&&(oe.current.add(Ae.itemId),Q({id:`assistant:${Ae.itemId}`,role:"assistant",text:Oe}));return}case"tool":te.current.has(Ae.itemId)||(te.current.add(Ae.itemId),Q({id:`tool:${Ae.itemId}`,role:"activity",text:VL(Ae.name)})),P("thinking");return;case"speech-started":P("listening");return;case"response-started":P("thinking");return;case"response-done":Ae.error&&f(Ae.error),P("connected");return;case"error":f(Ae.text),B.current!=="idle"&&P("connected")}},[Q,P]),X=D.useCallback(async()=>{if(B.current!=="idle")return;if(typeof RTCPeerConnection>"u"||!navigator.mediaDevices?.getUserMedia){f("This browser does not support WebRTC calling");return}a(!0),f(null),g([]),Z(),V.current.clear(),oe.current.clear(),te.current.clear(),u(!1),P("connecting");const Ce=++S.current;try{const Ae=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});if(Ce!==S.current){for(const We of Ae.getTracks())We.stop();return}const Oe=Ae.getAudioTracks()[0];if(!Oe)throw new Error("No microphone was available");Oe.enabled=!1,F.current=Ae,R.current=Oe;const Ye=new RTCPeerConnection,kt=Ye.createDataChannel("oai-events"),ht=document.createElement("audio");ht.autoplay=!0,ht.setAttribute("playsinline",""),_.current=Ye,T.current=kt,L.current=ht,Ye.addTrack(Oe,Ae),Ye.addEventListener("track",We=>{Ce===S.current&&(ht.srcObject=We.streams[0]??new MediaStream([We.track]),ht.play().catch(()=>f("Tap the audio notice to hear this call")))}),kt.addEventListener("message",We=>{Ce===S.current&&z(We.data)}),kt.addEventListener("close",()=>{Ce===S.current&&B.current!=="idle"&&M("The control-room call closed")}),Ye.addEventListener("connectionstatechange",()=>{if(Ce===S.current){if(Ye.connectionState==="connected"&&Y.current&&(clearTimeout(Y.current),Y.current=null),Ye.connectionState==="failed"||Ye.connectionState==="closed")return M("The control-room connection failed");Ye.connectionState==="disconnected"&&!Y.current&&(Y.current=setTimeout(()=>{Y.current=null,Ce===S.current&&Ye.connectionState==="disconnected"&&M("The control-room connection was lost")},4e3))}});const Zt=await Ye.createOffer();await Ye.setLocalDescription(Zt);const vt=Ye.localDescription?.sdp;if(!vt)throw new Error("The browser did not create a WebRTC offer");const ln=await je.voiceCall(vt,j.current.voice,j.current.language);if(Ce!==S.current){je.voiceCallEnd(ln.callId).catch(()=>{});return}if(I.current=ln.callId,await Ye.setRemoteDescription({type:"answer",sdp:ln.sdp}),await new Promise((We,Cn)=>{if(kt.readyState==="open")return We();const le=setTimeout(()=>Cn(new Error("Voice event channel did not open")),8e3);kt.addEventListener("open",()=>{clearTimeout(le),We()},{once:!0})}),await je.voiceCallReady(ln.callId),Ce!==S.current)return;Oe.enabled=!0,B.current==="connecting"&&P("connected")}catch(Ae){if(Ce!==S.current)return;M(QL(Ae)?"Microphone access was denied — allow it in this site’s settings and try again":Ae instanceof Error?Ae.message:String(Ae))}},[Z,M,z,P]),w=D.useCallback(()=>{const Ce=I.current;de(),u(!1),P("idle"),f(null),Ce&&je.voiceCallEnd(Ce).catch(()=>{})},[de,P]),W=D.useCallback(()=>{B.current==="idle"||B.current==="connecting"||u(Ce=>{const Ae=!Ce;return R.current&&(R.current.enabled=!Ae),Ae})},[]),he=D.useCallback(Ce=>{const Ae=Ce.trim(),Oe=T.current;if(!Ae||Oe?.readyState!=="open"||B.current!=="connected")return!1;const Ye=crypto.randomUUID();return Q({id:`typed:${Ye}`,role:"user",text:Ae}),Oe.send(JSON.stringify({type:"conversation.item.create",item:{type:"message",role:"user",content:[{type:"input_text",text:Ae}]}})),Oe.send(JSON.stringify({type:"response.create"})),P("thinking"),!0},[Q,P]),re=D.useCallback(Ce=>{B.current==="idle"&&k(Ae=>{const Oe={...Ae,...Ce};return j.current=Oe,qL(Oe),Oe})},[]),De=D.useCallback(()=>{L.current?.play().then(()=>f(null)).catch(()=>f("This browser is still blocking call audio"))},[]),Ge=D.useCallback(()=>a(!0),[]),we=D.useCallback(()=>a(!1),[]),st=D.useCallback(()=>f(null),[]),ut=D.useCallback(Ce=>re({voice:Ce}),[re]),Lt=D.useCallback(Ce=>re({language:Ce}),[re]);D.useEffect(()=>()=>{const Ce=I.current;de(),Ce&&je.voiceCallEnd(Ce).catch(()=>{})},[de]);const Ct=D.useMemo(()=>({panelOpen:n,status:i,muted:o,error:d,entries:h,inputPartial:p,outputPartial:b,preferences:v,openPanel:Ge,closePanel:we,startCall:X,endCall:w,toggleMute:W,sendText:he,dismissError:st,enableAudio:De,setVoice:ut,setLanguage:Lt}),[n,i,o,d,h,p,b,v,Ge,we,X,w,W,he,st,De,ut,Lt]);return x.jsx(k5.Provider,{value:Ct,children:e})}function B5(){const e=D.useContext(k5);if(!e)throw new Error("useVoiceCall must be used inside VoiceCallProvider");return e}const KL=[["auto","Auto detect"],["no","Norsk"],["en","English"]];function XL(e){return e[0].toUpperCase()+e.slice(1)}function S2(e,n){return e==="idle"?"Not connected":e==="connecting"?"Connecting…":e==="listening"?n?"Microphone muted":"Listening":e==="thinking"?"Checking the fleet…":e==="speaking"?"Orchestrator speaking":n?"Microphone muted":"Connected"}function ZL(){const e=B5(),n=Be(g=>g.online),[a,i]=D.useState(""),l=D.useRef(null),o=e.status!=="idle",u=e.status==="connected",d=`${e.entries.length}:${e.inputPartial}:${e.outputPartial}`;if(D.useEffect(()=>{if(!e.panelOpen)return;const g=p=>{p.key==="Escape"&&e.closePanel()};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[e.panelOpen,e.closePanel]),D.useEffect(()=>{if(!e.panelOpen||!d)return;const g=l.current;g&&(g.scrollTop=g.scrollHeight)},[e.panelOpen,d]),!e.panelOpen)return null;const f=g=>{g.preventDefault(),e.sendText(a)&&i("")},h=e.error?.toLowerCase().includes("audio")??!1;return Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/65 md:block",onClick:e.closePanel,"aria-hidden":!0}),x.jsxs("section",{role:"dialog","aria-modal":"true","aria-label":"Control room call",className:"app-height fade-in pt-safe pb-safe fixed inset-0 z-[60] flex flex-col bg-bg md:inset-x-auto md:inset-y-8 md:left-1/2 md:w-[32rem] md:-translate-x-1/2 md:rounded-3xl md:border md:border-border-soft md:shadow-2xl",children:[x.jsxs("header",{className:"flex shrink-0 items-center gap-3 border-b border-border-soft px-4 py-3",children:[x.jsx("div",{className:pe("grid size-9 shrink-0 place-items-center rounded-full bg-surface-2 text-muted",o&&"bg-voice-soft text-voice"),children:x.jsx(U0,{size:18})}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx("h2",{className:"text-[15px] font-semibold",children:"Control room"}),x.jsx(Pf,{})]}),x.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-muted",children:[o?x.jsx("span",{className:pe("size-1.5 rounded-full bg-voice",(e.status==="listening"||e.status==="speaking")&&"animate-pulse")}):null,x.jsxs("span",{className:"truncate",children:["All workspaces · ",S2(e.status,e.muted)]})]})]}),x.jsx("button",{type:"button",onClick:e.closePanel,"aria-label":o?"Hide call controls":"Close",className:"grid size-9 shrink-0 place-items-center rounded-full text-muted active:bg-surface-2 active:text-text",children:x.jsx(bn,{size:19})})]}),o?x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l,className:"min-h-0 flex-1 overflow-y-auto px-4 py-5",children:x.jsxs("div",{className:"mx-auto flex max-w-xl flex-col gap-3",children:[e.entries.length===0&&!e.inputPartial&&!e.outputPartial?x.jsx("div",{className:"grid min-h-48 place-items-center text-center",children:x.jsxs("div",{children:[x.jsx(Tn,{size:22,className:"mx-auto mb-3 animate-spin text-voice"}),x.jsx("p",{className:"text-sm text-muted",children:"Opening the fleet channel…"})]})}):null,e.entries.map(g=>g.role==="activity"?x.jsxs("div",{className:"flex items-center justify-center gap-2 py-1 text-xs text-voice",children:[x.jsx("span",{className:"size-1.5 rounded-full bg-voice"}),g.text]},g.id):x.jsx("div",{className:pe("max-w-[88%] rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed",g.role==="user"?"ml-auto rounded-br-md bg-voice-soft text-text":"mr-auto rounded-bl-md bg-surface-2 text-text"),children:g.text},g.id)),e.inputPartial?x.jsx("div",{className:"ml-auto max-w-[88%] rounded-2xl rounded-br-md border border-voice/25 bg-voice-soft/60 px-3.5 py-2.5 text-sm leading-relaxed text-muted",children:e.inputPartial}):null,e.outputPartial?x.jsxs("div",{className:"mr-auto max-w-[88%] rounded-2xl rounded-bl-md bg-surface-2 px-3.5 py-2.5 text-sm leading-relaxed text-text",children:[e.outputPartial,x.jsx("span",{className:"ml-1 inline-block size-1.5 animate-pulse rounded-full bg-voice align-middle"})]}):null]})}),x.jsxs("div",{className:"shrink-0 border-t border-border-soft bg-surface/80 px-4 pb-3 pt-3 backdrop-blur-xl",children:[e.error?x.jsx("button",{type:"button",onClick:h?e.enableAudio:e.dismissError,className:"mb-2 block w-full rounded-xl bg-del/10 px-3 py-2 text-left text-xs leading-snug text-del",children:e.error}):null,x.jsxs("form",{onSubmit:f,className:"flex items-center gap-2",children:[x.jsx("input",{value:a,onChange:g=>i(g.target.value),disabled:!u,placeholder:u?"Type to the orchestrator…":S2(e.status,e.muted),"aria-label":"Message the orchestrator",className:"h-11 min-w-0 flex-1 rounded-xl border border-border bg-bg px-3 text-sm text-text outline-none placeholder:text-faint focus:border-voice/60 disabled:opacity-60"}),x.jsx("button",{type:"submit",disabled:!u||!a.trim(),"aria-label":"Send to orchestrator",className:"grid size-11 shrink-0 place-items-center rounded-xl bg-voice text-white active:opacity-80 disabled:bg-surface-2 disabled:text-faint",children:x.jsx($k,{size:18})})]}),x.jsxs("div",{className:"mt-3 flex items-center justify-center gap-5",children:[x.jsx("button",{type:"button",onClick:e.toggleMute,disabled:e.status==="connecting","aria-label":e.muted?"Unmute microphone":"Mute microphone","aria-pressed":e.muted,className:pe("grid size-12 place-items-center rounded-full bg-surface-2 text-text active:opacity-75 disabled:text-faint",e.muted&&"bg-voice-soft text-voice"),children:e.muted?x.jsx(SA,{size:20}):x.jsx(w8,{size:20})}),x.jsx("button",{type:"button",onClick:e.endCall,"aria-label":"End call",className:"grid size-12 place-items-center rounded-full bg-del text-white active:opacity-75",children:x.jsx(nk,{size:20})})]})]})]}):x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-7",children:x.jsxs("div",{className:"mx-auto flex max-w-sm flex-col items-center text-center",children:[x.jsx("div",{className:"mb-5 grid size-16 place-items-center rounded-full bg-voice-soft text-voice",children:x.jsx(U0,{size:27})}),x.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Call your fleet"}),x.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:"One orchestrator checks every workspace, brings you one decision at a time, and can queue an exact prompt only after reading it back for confirmation."}),x.jsxs("div",{className:"mt-7 grid w-full grid-cols-2 gap-3 text-left",children:[x.jsxs("label",{className:"text-xs font-medium text-muted",children:["Voice",x.jsx("select",{value:e.preferences.voice,onChange:g=>e.setVoice(g.target.value),className:"mt-1.5 block h-11 w-full rounded-xl border border-border bg-surface-2 px-3 text-sm text-text [color-scheme:dark]",children:L8.map(g=>x.jsx("option",{value:g,children:XL(g)},g))})]}),x.jsxs("label",{className:"text-xs font-medium text-muted",children:["Language",x.jsx("select",{value:e.preferences.language,onChange:g=>e.setLanguage(g.target.value),className:"mt-1.5 block h-11 w-full rounded-xl border border-border bg-surface-2 px-3 text-sm text-text [color-scheme:dark]",children:KL.map(([g,p])=>x.jsx("option",{value:g,children:p},g))})]})]}),e.error?x.jsx("button",{type:"button",onClick:e.dismissError,className:"mt-4 block w-full rounded-xl bg-del/10 px-3 py-2 text-left text-xs leading-snug text-del",children:e.error}):null,x.jsxs("button",{type:"button",onClick:()=>{e.startCall()},disabled:!n,className:"mt-6 flex h-12 w-full items-center justify-center gap-2 rounded-xl bg-voice px-4 text-sm font-semibold text-white active:opacity-80 disabled:bg-surface-2 disabled:text-faint",children:[x.jsx(U0,{size:18}),n?"Start fleet call":"Relay offline"]}),x.jsx("p",{className:"mt-3 text-[11px] leading-snug text-faint",children:"AI-generated voice. Microphone audio is sent to OpenAI for this live call."})]})})]})]}),document.body)}function WL({total:e,shown:n,hidden:a,repoFiltered:i}){if(e)return!i&&!a?`${e} active`:[`${n} of ${e}`,a?`${a} hidden`:null].filter(Boolean).join(" · ")}function JL(e,n,a){const i=n.includes(a)?n.filter(l=>l!==a):[...n,a];return e.length>0&&e.every(l=>i.includes(l))?[]:i}const eP=new Intl.NumberFormat("en",{notation:"compact"});function N2(e){return eP.format(Math.max(0,e)).toLowerCase()}function _2(e,n){return`${e.toLocaleString("en")} ${e===1?"line":"lines"} ${n}`}function tP({stats:e,className:n}){if(!e||e.added<=0&&e.removed<=0)return null;const a=[e.added>0?_2(e.added,"added"):null,e.removed>0?_2(e.removed,"removed"):null].filter(Boolean).join(", ");return x.jsxs("span",{className:pe("flex shrink-0 items-center gap-1 font-mono text-[10px] font-medium leading-none tabular-nums",n),title:a,children:[x.jsx("span",{className:"sr-only",children:a}),e.added>0?x.jsxs("span",{className:"text-add","aria-hidden":"true",children:["+",N2(e.added)]}):null,e.removed>0?x.jsxs("span",{className:"text-del","aria-hidden":"true",children:["-",N2(e.removed)]}):null]})}const D5="conductor-remote-theme",nP={light:"#f5f6f8",dark:"#0a0b0e"};function rP(e){return e==="light"||e==="dark"||e==="system"?e:"system"}function w5(e){try{return rP((e??localStorage).getItem(D5))}catch{return"system"}}function aP(e,n){return e==="system"?n?"dark":"light":e}function iP(){return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches}function F5(e,n=iP()){if(typeof document>"u")return;e==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=e;const a=aP(e,n);document.querySelector('meta[name="theme-color"]')?.setAttribute("content",nP[a])}function sP(e,n){try{(n??localStorage).setItem(D5,e)}catch{}F5(e)}function lP(){if(typeof window>"u")return()=>{};const e=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>F5(w5(),e.matches);return e.addEventListener("change",n),n(),()=>e.removeEventListener("change",n)}const Xl=new Uint8Array(512),Rd=new Uint8Array(256);let Ml=1;for(let e=0;e<255;e++)Xl[e]=Ml,Rd[Ml]=e,Ml<<=1,Ml&256&&(Ml^=285);for(let e=255;e<512;e++)Xl[e]=Xl[e-255];function S5(e,n){return e===0||n===0?0:Xl[Rd[e]+Rd[n]]}function oP(e){let n=[1];for(let a=0;a<e;a++){const i=new Array(n.length+1).fill(0);for(let l=0;l<n.length;l++)i[l]^=n[l],i[l+1]^=S5(n[l],Xl[a]);n=i}return n}function cP(e,n){const a=oP(n),i=new Array(n).fill(0);for(const l of e){const o=l^i[0];if(i.shift(),i.push(0),o!==0)for(let u=0;u<n;u++)i[u]^=S5(a[u+1],o)}return i}const If={1:{align:[],ec:10,groups:[[1,16]]},2:{align:[6,18],ec:16,groups:[[1,28]]},3:{align:[6,22],ec:26,groups:[[1,44]]},4:{align:[6,26],ec:18,groups:[[2,32]]},5:{align:[6,30],ec:24,groups:[[2,43]]},6:{align:[6,34],ec:16,groups:[[4,27]]},7:{align:[6,22,38],ec:18,groups:[[4,31]]},8:{align:[6,24,42],ec:22,groups:[[2,38],[2,39]]},9:{align:[6,26,46],ec:22,groups:[[3,36],[2,37]]},10:{align:[6,28,50],ec:26,groups:[[4,43],[1,44]]}};function M2(e){return If[e].groups.reduce((n,[a,i])=>n+a*i,0)}function j2(e){return e<=9?8:16}function jl(e,n,a){for(let i=a-1;i>=0;i--)e.push(n>>i&1)}function uP(e){const n=Array.from(new TextEncoder().encode(e));let a=0;for(let C=1;C<=10;C++)if(4+j2(C)+8*n.length<=M2(C)*8){a=C;break}if(a===0)throw new Error(`data too long for a v1–10 QR (${n.length} bytes)`);const i=M2(a)*8,l=[];jl(l,4,4),jl(l,n.length,j2(a));for(const C of n)jl(l,C,8);for(let C=0,v=Math.min(4,i-l.length);C<v;C++)l.push(0);for(;l.length%8!==0;)l.push(0);const o=[236,17];for(let C=0;l.length<i;C++)jl(l,o[C%2],8);const u=[];for(let C=0;C<l.length;C+=8){let v=0;for(let k=0;k<8;k++)v=v<<1|l[C+k];u.push(v)}const{ec:d,groups:f}=If[a],h=[];let g=0;for(const[C,v]of f)for(let k=0;k<C;k++){const B=u.slice(g,g+v);g+=v,h.push({data:B,ec:cP(B,d)})}const p=[],y=Math.max(...h.map(C=>C.data.length));for(let C=0;C<y;C++)for(const v of h)C<v.data.length&&p.push(v.data[C]);for(let C=0;C<d;C++)for(const v of h)p.push(v.ec[C]);const b=[];for(const C of p)jl(b,C,8);return{version:a,bits:b}}function xP(e,n){const a=e*4+17,i=Array.from({length:a},()=>new Array(a).fill(!1)),l=Array.from({length:a},()=>new Array(a).fill(!1)),o=(p,y)=>{for(let b=-1;b<=7;b++)for(let C=-1;C<=7;C++){const v=p+b,k=y+C;if(v<0||v>=a||k<0||k>=a)continue;const B=b>=0&&b<=6&&(C===0||C===6)||C>=0&&C<=6&&(b===0||b===6),j=b>=2&&b<=4&&C>=2&&C<=4;i[v][k]=B||j,l[v][k]=!0}};o(0,0),o(0,a-7),o(a-7,0);for(let p=8;p<a-8;p++){const y=p%2===0;l[6][p]||(i[6][p]=y,l[6][p]=!0),l[p][6]||(i[p][6]=y,l[p][6]=!0)}const u=If[e].align;for(let p=0;p<u.length;p++)for(let y=0;y<u.length;y++){if(p===0&&y===0||p===0&&y===u.length-1||p===u.length-1&&y===0)continue;const C=u[p],v=u[y];for(let k=-2;k<=2;k++)for(let B=-2;B<=2;B++)i[C+k][v+B]=Math.max(Math.abs(k),Math.abs(B))!==1,l[C+k][v+B]=!0}for(let p=0;p<=8;p++)p!==6&&(l[8][p]=!0,l[p][8]=!0);for(let p=0;p<8;p++)l[8][a-1-p]=!0,l[a-1-p][8]=!0;if(l[a-8][8]=!0,e>=7)for(let p=0;p<18;p++){const y=a-11+p%3,b=Math.floor(p/3);l[b][y]=!0,l[y][b]=!0}let d=0,f=!0;for(let p=a-1;p>0;p-=2){p===6&&p--;for(let y=0;y<a;y++){const b=f?a-1-y:y;for(let C=0;C<2;C++){const v=p-C;l[b][v]||(i[b][v]=d<n.length?n[d]===1:!1,d++)}}f=!f}e>=7&&hP(i,e,a);let h=null,g=Number.POSITIVE_INFINITY;for(let p=0;p<8;p++){const y=i.map(C=>C.slice());for(let C=0;C<a;C++)for(let v=0;v<a;v++)!l[C][v]&&dP(p,C,v)&&(y[C][v]=!y[C][v]);fP(y,p,a);const b=pP(y);b<g&&(g=b,h=y)}return h}function dP(e,n,a){switch(e){case 0:return(n+a)%2===0;case 1:return n%2===0;case 2:return a%3===0;case 3:return(n+a)%3===0;case 4:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case 5:return n*a%2+n*a%3===0;case 6:return(n*a%2+n*a%3)%2===0;default:return((n+a)%2+n*a%3)%2===0}}function fP(e,n,a){const i=0|n;let l=i;for(let d=0;d<10;d++)l=l<<1^(l>>9&1?1335:0);const o=((i<<10|l&1023)^21522)&32767,u=d=>(o>>d&1)===1;for(let d=0;d<=5;d++)e[d][8]=u(d);e[7][8]=u(6),e[8][8]=u(7),e[8][7]=u(8);for(let d=9;d<15;d++)e[8][14-d]=u(d);for(let d=0;d<8;d++)e[8][a-1-d]=u(d);for(let d=8;d<15;d++)e[a-15+d][8]=u(d);e[a-8][8]=!0}function hP(e,n,a){let i=n;for(let o=0;o<12;o++)i=i<<1^(i>>11&1?7973:0);const l=n<<12|i&4095;for(let o=0;o<18;o++){const u=(l>>o&1)===1,d=a-11+o%3,f=Math.floor(o/3);e[f][d]=u,e[d][f]=u}}function pP(e){const n=e.length;let a=0;const i=f=>{let h=f(0),g=1;for(let p=1;p<n;p++)f(p)===h?g++:(g>=5&&(a+=g-2),h=f(p),g=1);g>=5&&(a+=g-2)};for(let f=0;f<n;f++)i(h=>e[f][h]);for(let f=0;f<n;f++)i(h=>e[h][f]);for(let f=0;f<n-1;f++)for(let h=0;h<n-1;h++){const g=e[f][h];g===e[f][h+1]&&g===e[f+1][h]&&g===e[f+1][h+1]&&(a+=3)}const l=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],o=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0],u=(f,h,g)=>{for(let p=0;p<11;p++)if(f(h+p)!==g[p])return!1;return!0};for(let f=0;f<n;f++)for(let h=0;h<=n-11;h++)(u(g=>e[f][g],h,l)||u(g=>e[f][g],h,o))&&(a+=40);for(let f=0;f<n;f++)for(let h=0;h<=n-11;h++)(u(g=>e[g][f],h,l)||u(g=>e[g][f],h,o))&&(a+=40);let d=0;for(let f=0;f<n;f++)for(let h=0;h<n;h++)e[f][h]&&d++;return a+=Math.floor(Math.abs(d/(n*n)*100-50)/5)*10,a}function mP(e){const{version:n,bits:a}=uP(e);return xP(n,a)}function gP({text:e,size:n=220,className:a}){const i=mP(e),l=i.length,o=4,u=l+o*2;let d="";for(let f=0;f<l;f++)for(let h=0;h<l;h++)i[f][h]&&(d+=`M${h+o} ${f+o}h1v1h-1z`);return x.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${u} ${u}`,shapeRendering:"crispEdges",className:a,role:"img","aria-label":"QR code",children:[x.jsx("title",{children:"QR code"}),x.jsx("rect",{width:u,height:u,fill:"#fff"}),x.jsx("path",{d,fill:"#000"})]})}function EP({version:e,onLogs:n,onClose:a}){const i=Be(y=>y.token),l=Be(y=>y.setToken),[o,u]=D.useState(!1),[d,f]=D.useState(!1),h=i?`${location.origin}/#token=${i}`:location.origin,g=!!e&&e!=="1.103.1",p=async()=>{try{await navigator.clipboard.writeText(h),u(!0),setTimeout(()=>u(!1),1500)}catch{}};return Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:a,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Connect a device",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[85dvh] max-w-sm flex-col items-center gap-4 rounded-t-3xl border border-border-soft bg-surface p-5 shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[x.jsxs("div",{className:"flex w-full shrink-0 items-center justify-between",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Connect a device"}),x.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[x.jsx("button",{type:"button",onClick:()=>f(y=>!y),"aria-label":"Disconnect","aria-expanded":d,title:"Disconnect",className:pe("flex size-8 items-center justify-center rounded-full active:bg-surface-2",d?"bg-del/15 text-del":"text-del/80"),children:x.jsx(hA,{size:17})}),x.jsx("button",{type:"button",onClick:a,"aria-label":"Close",className:"flex size-8 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:18})})]})]}),d?x.jsxs("div",{className:"fade-in w-full shrink-0 rounded-xl border border-del/40 bg-del/10 px-3 py-2.5 text-left",children:[x.jsx("p",{className:"text-sm font-medium",children:"Disconnect this device?"}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:"This forgets your access token. To get back in you’ll need the link or QR from the Mac running the relay — this screen can’t show it to you again."}),x.jsxs("div",{className:"mt-2.5 flex gap-2",children:[x.jsx("button",{type:"button",onClick:()=>f(!1),className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),x.jsx("button",{type:"button",onClick:()=>l(null),className:"flex-1 rounded-lg bg-del px-3 py-2 text-sm font-semibold text-on-solid active:opacity-80",children:"Disconnect"})]})]}):null,x.jsxs("div",{className:"flex w-full min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto overscroll-contain",children:[x.jsx("p",{className:"text-center text-sm text-muted",children:"Scan on another phone, or re-add this to your home screen. The link carries your access token."}),x.jsx("div",{className:"shrink-0 rounded-2xl bg-white p-3",children:x.jsx(gP,{text:h,size:216})}),x.jsxs("button",{type:"button",onClick:p,className:"flex w-full shrink-0 items-center justify-center gap-2 rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-sm active:bg-surface",children:[o?x.jsx(qr,{size:16}):x.jsx(Xd,{size:16}),o?"Copied":"Copy link"]}),x.jsx(bP,{}),x.jsx(CP,{}),x.jsx(AP,{}),x.jsxs("div",{className:"flex w-full items-center justify-between text-xs text-faint",children:[x.jsxs("span",{className:"font-mono",children:[e?`relay v${e}`:"relay v?"," · ",x.jsxs("span",{className:g?"text-working":void 0,children:["app v","1.103.1"]}),g?" · update pending":""]}),x.jsx("button",{type:"button",onClick:n,className:"shrink-0 text-muted underline-offset-2 hover:underline",children:"Logs"})]})]})]})]}),document.body)}const yP=[["system","System"],["light","Light"],["dark","Dark"]];function bP(){const[e,n]=D.useState(w5),a=Be(o=>o.view.showDiffs),i=Be(o=>o.setView),l=o=>{n(o),sP(o)};return x.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[x.jsxs("fieldset",{className:"flex w-full items-center justify-between gap-3 border-0 p-0",children:[x.jsx("legend",{className:"sr-only",children:"Theme"}),x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(BB,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Theme"})]}),x.jsx("div",{className:"flex shrink-0 rounded-lg border border-border bg-surface p-0.5",children:yP.map(([o,u])=>x.jsx("button",{type:"button","aria-pressed":e===o,onClick:()=>l(o),className:pe("rounded-md px-2 py-1 text-xs transition focus-visible:outline-2 focus-visible:outline-accent",e===o?"bg-accent-soft text-accent":"text-muted active:bg-surface-2"),children:u},o))})]}),x.jsxs("div",{className:"mt-2.5 flex items-center justify-between gap-3 border-t border-border pt-2.5",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(v8,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Sidebar diffs"})]}),x.jsx("button",{type:"button",role:"switch","aria-checked":a,"aria-label":"Show line changes in workspace rows",onClick:()=>i({showDiffs:!a}),className:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",a?"bg-accent":"border border-border bg-surface"),children:x.jsx("span",{className:pe("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",a?"translate-x-5":"translate-x-0")})})]}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:"Show line additions and deletions in workspace rows."})]})}function CP(){const e=Zw(),n=e.permission==="denied",a=e.support!=="ok"||e.relayDisabled,i=e.relayDisabled?"Turned off on the relay (PUSH_NOTIFY=off).":e.support==="needs-install"?"Add this to your Home Screen first — iOS only allows notifications for installed apps.":e.support==="insecure"?"Needs a secure connection — open the app on its https:// Tailscale URL.":e.support==="unsupported"?"This browser can’t receive push notifications.":n?"Blocked for this app — allow notifications in your device settings, then come back.":e.enabled?`On for this device${e.devices>1?` · ${e.devices} devices subscribed`:""}.`:"Get a ping when an agent finishes its turn or hits an error.";return x.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(y8,{size:16,className:pe("shrink-0",e.enabled?"text-accent":"text-muted")}),x.jsx("span",{children:"Notifications"})]}),x.jsx("button",{type:"button",role:"switch","aria-checked":e.enabled,"aria-label":"Notifications on this device",disabled:a||n||e.busy,onClick:()=>{e.enabled?e.disable():e.enable()},className:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",e.enabled?"bg-accent":"border border-border bg-surface",(a||n||e.busy)&&"opacity-40"),children:x.jsx("span",{className:pe("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",e.enabled?"translate-x-5":"translate-x-0")})})]}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:i}),e.error?x.jsx("p",{className:"mt-1 text-xs text-del",children:e.error}):null,e.enabled?x.jsx("button",{type:"button",onClick:()=>{e.test()},disabled:e.busy,className:"mt-1.5 text-xs text-muted underline-offset-2 hover:underline disabled:opacity-50",children:"Send a test notification"}):null]})}const vP=[{label:"1h",seconds:3600},{label:"4h",seconds:4*3600,className:"hidden min-[400px]:block"},{label:"10h",seconds:10*3600}];function Jx(e){if(!e)return"until you turn it off";const n=new Date(e),a=n.toDateString()===new Date().toDateString(),i=n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return a?`until ${i}`:`until ${n.toLocaleDateString([],{weekday:"short"})} ${i}`}function AP(){const[e,n]=D.useState(null),[a,i]=D.useState(!1),[l,o]=D.useState(null),[u,d]=D.useState(!1),[f,h]=D.useState(!1),[g,p]=D.useState(""),[y,b]=D.useState(null),[C,v]=D.useState("idle"),[k,B]=D.useState(null),j=D.useCallback(async()=>{try{n(await je.settings()),o(null)}catch(O){o(O instanceof Error?O.message:String(O))}},[]);D.useEffect(()=>{j()},[j]);const S=async O=>{i(!0),o(null);try{return await O(),await j(),!0}catch($){return o($ instanceof Error?$.message:String($)),!1}finally{i(!1)}},_=async O=>{i(!0),o(null);try{const $=await je.restartConductor(O);B($.ms??0),v("idle"),await j()}catch($){$ instanceof Br&&$.status===409&&v("agents"),o($ instanceof Error?$.message:String($))}finally{i(!1)}},T=async O=>{O.preventDefault();const $=BD(g);if($===null){b("Use a duration like 80h, 90m, or a number of seconds.");return}if($<1){b("Choose a duration longer than zero.");return}const V=e?.nosleep.maxSeconds??168*3600;if($>V){b(`Choose a duration up to ${Math.round(V/3600)}h.`);return}b(null),d(!1),await S(()=>je.armNoSleep($))&&h(!1)},F=e?.nosleep,R=e?.screenLocked===!0,L=e?.wifi.known??[],I=e?.settings.fallbackSsids[0]??"";return x.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-2.5 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(_8,{size:16,className:pe("shrink-0",F?.armed?"text-accent":"text-muted")}),x.jsx("span",{children:"Keep the Mac awake"})]}),F?.armed?x.jsx("button",{type:"button",disabled:a,onClick:()=>{S(async()=>{const O=await je.disarmNoSleep();d(O.willSleep===!0)})},className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-50",children:"Let it sleep"}):x.jsxs("div",{className:"flex shrink-0 gap-1",children:[vP.map(O=>x.jsx("button",{type:"button",disabled:a||!F?.available,onClick:()=>{S(()=>(h(!1),b(null),d(!1),je.armNoSleep(O.seconds)))},className:pe("rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-40",O.className),children:O.label},O.seconds)),x.jsx("button",{type:"button",disabled:a||!F?.available,"aria-label":"Choose a custom keep-awake duration","aria-expanded":f,onClick:()=>{b(null),h(O=>!O)},className:pe("grid size-[30px] place-items-center rounded-lg border border-border active:bg-surface disabled:opacity-40",f&&"bg-surface text-accent"),children:x.jsx(C8,{size:14})})]})]}),!F?.armed&&f?x.jsxs("form",{onSubmit:T,className:"fade-in flex items-center justify-end gap-1.5",children:[x.jsx("label",{htmlFor:"awake-duration",className:"text-xs text-muted",children:"Keep awake for"}),x.jsx("input",{id:"awake-duration",type:"text",required:!0,value:g,disabled:a,placeholder:"e.g. 80h",autoCapitalize:"none",autoCorrect:"off",onChange:O=>{p(O.target.value),b(null)},className:"h-[30px] w-[6.5rem] rounded-lg border border-border bg-surface px-2 text-xs text-text disabled:opacity-40"}),x.jsx("button",{type:"submit",disabled:a||!g.trim(),className:"h-[30px] rounded-lg bg-accent px-2.5 text-xs font-medium text-on-solid active:opacity-80 disabled:opacity-40",children:a?"Setting…":"Set"})]}):null,y?x.jsx("p",{className:"text-right text-xs text-del",children:y}):null,x.jsx("p",{className:"text-xs text-muted",children:e?F?.available?F.armed?F.preventsScreenLock?R?`Awake ${Jx(F.until)}, lid closed. It blocks the idle screen lock from starting; it can’t lift one already up.`:`Awake ${Jx(F.until)}, lid closed. The idle screen lock is off; anyone at the Mac can use it.`:`Awake ${Jx(F.until)}, lid closed. Sends park if macOS locks.`:u?"The lid is shut, so the Mac is going to sleep now — this app will be unreachable until you wake it.":"Stops system sleep. Screen-lock behavior follows the Mac CLI configuration.":"Run `conductor-remote nosleep setup` on the Mac to install or refresh the helper.":"Checking…"}),R?x.jsxs("p",{className:"text-xs text-del",children:["The Mac is locked right now, so writes park until it’s unlocked. ",x.jsx(ga,{})]}):null,x.jsxs("div",{className:"border-t border-border pt-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(M8,{size:16,className:pe("shrink-0",e?.settings.autoRejoin?"text-accent":"text-muted")}),x.jsx("span",{children:"Fallback network"})]}),I?x.jsx("button",{type:"button",disabled:a,onClick:()=>{S(()=>je.patchSettings({fallbackSsids:[],autoRejoin:!1}))},className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-50",children:"Turn off"}):null]}),I?x.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Auto-joins ",x.jsx("span",{className:"text-fg",children:I})," when the primary network drops."]}):x.jsx(kP,{known:L,hotspots:e?.wifi.likelyHotspots??[],busy:a,onPick:O=>{S(()=>je.patchSettings({fallbackSsids:[O],autoRejoin:!0}))}}),e?.wifi.autoJoinHotspot==="Never"?x.jsx("p",{className:"mt-1 text-xs text-faint",children:"Auto-join Hotspot is off on this Mac (System Settings ▸ Wi-Fi). Your hotspot has to be on and broadcasting before the Mac can join it."}):null]}),x.jsxs("div",{className:"border-t border-border pt-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(Nk,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Restart Conductor"})]}),C==="idle"?x.jsx("button",{type:"button",disabled:a,onClick:()=>{B(null),o(null),v("confirm")},className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-50",children:"Restart"}):null]}),k!==null?x.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Quit and reopened in ",(k/1e3).toFixed(1),"s. Send a prompt to check an agent answers."]}):null,C!=="idle"?x.jsxs("div",{className:"fade-in mt-2 rounded-xl border border-del/40 bg-del/10 px-3 py-2.5 text-left",children:[x.jsx("p",{className:"text-sm font-medium",children:C==="agents"?"Agents are still working":"Restart Conductor?"}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:C==="agents"?"Restarting ends their turns. Everything they have already written stays in the chat.":"The app closes and opens again, which takes about ten seconds. Anything mid-turn stops."}),x.jsxs("div",{className:"mt-2.5 flex gap-2",children:[x.jsx("button",{type:"button",onClick:()=>{v("idle"),o(null)},className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),x.jsx("button",{type:"button",disabled:a,onClick:()=>{_(C==="agents")},className:"flex-1 rounded-lg bg-del px-3 py-2 text-sm font-semibold text-on-solid active:opacity-80 disabled:opacity-50",children:a?"Restarting…":C==="agents"?"Stop agents and restart":"Restart"})]})]}):null]}),l?x.jsxs("p",{className:"text-xs text-del",children:[l," ",Fi(l)?x.jsx(ga,{}):null]}):null]})}function kP({known:e,hotspots:n,busy:a,onPick:i}){const[l,o]=D.useState("");if(e.length===0)return x.jsx("p",{className:"mt-1 text-xs text-muted",children:"No saved Wi-Fi networks to offer."});const u=new Set(n),d=l.trim().toLowerCase(),f=e.filter(p=>!d||p.toLowerCase().includes(d)),h=f.find(p=>u.has(p)),g=(h?[h,...f.filter(p=>p!==h)]:f).slice(0,6);return x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"mt-1 text-xs text-muted",children:"Turn your hotspot on before you leave, and the Mac can move to it if the office Wi-Fi drops."}),x.jsx("input",{type:"search",value:l,disabled:a,onChange:p=>o(p.target.value),placeholder:`Search ${e.length} saved networks`,className:"mt-2 w-full rounded-lg border border-border bg-surface px-2 py-1.5 text-xs disabled:opacity-40"}),x.jsxs("div",{className:"mt-1.5 flex flex-col gap-1",children:[g.map(p=>x.jsxs("button",{type:"button",disabled:a,onClick:()=>i(p),className:"flex items-center justify-between gap-2 rounded-lg border border-border px-2.5 py-1.5 text-left text-xs active:bg-surface disabled:opacity-50",children:[x.jsx("span",{className:"truncate",children:p}),u.has(p)?x.jsx("span",{className:"shrink-0 text-faint",children:"likely hotspot"}):null]},p)),g.length===0?x.jsxs("p",{className:"text-xs text-faint",children:["Nothing matches “",l,"”."]}):null]}),!d&&e.length>g.length?x.jsxs("p",{className:"mt-1 text-xs text-faint",children:["Most recently joined. Search to reach the other ",e.length-g.length,"."]}):null]})}const BP={info:"text-muted",warn:"text-working",error:"text-del"};function Xa(e){return String(e).padStart(2,"0")}function DP(e){if(e==null)return"·";const n=new Date(e);return`${Xa(n.getHours())}:${Xa(n.getMinutes())}:${Xa(n.getSeconds())}`}function T2(e){if(e==null)return" ";const n=new Date(e);return`${n.getFullYear()}-${Xa(n.getMonth()+1)}-${Xa(n.getDate())} ${Xa(n.getHours())}:${Xa(n.getMinutes())}:${Xa(n.getSeconds())}`}function wP(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function R2(e){const n=Math.max(0,Math.round(e/1e3));if(n<90)return`${n}s ago`;const a=Math.round(n/60);if(a<60)return`${a}m ago`;const i=Math.round(a/60);return i<48?`${i}h ago`:`${Math.round(i/24)}d ago`}function FP({onClose:e}){const[n,a]=D.useState(null),[i,l]=D.useState(!1),[o,u]=D.useState(null),{data:d,isLoading:f,isError:h,error:g}=Gw(n,!0),p=D.useRef(null),y=D.useRef(!0),b=D.useMemo(()=>(d?.entries??[]).filter(k=>!i||k.level!=="info"),[d,i]);D.useEffect(()=>{const k=p.current;k&&y.current&&b.length&&(k.scrollTop=k.scrollHeight)},[b]);const C=async()=>{const k=`# conductor-remote ${n??"live"} log · app v1.103.1 · copied ${T2(Date.now())}`,B=b.map(j=>`${T2(j.t)} ${j.level==="info"?"":j.level.toUpperCase()} ${j.text}`);try{await navigator.clipboard.writeText([k,...B].join(`
52
+ `)),u("ok")}catch{u("failed")}setTimeout(()=>u(null),2e3)},v=[{key:null,label:"Live",hint:d?`since ${R2(d.now-d.startedAt)}`:void 0},...(d?.files??[]).map(k=>({key:k.name,label:k.name,hint:wP(k.size)}))];return Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Relay logs",className:"fade-in pt-safe pb-safe fixed inset-0 z-50 mx-auto flex flex-col bg-bg md:inset-6 md:rounded-3xl md:border md:border-border-soft",children:[x.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-border-soft px-4 py-3",children:[x.jsxs("div",{className:"min-w-0",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Relay logs"}),x.jsx("p",{className:"truncate text-xs text-muted",children:d?`${b.length} line${b.length===1?"":"s"} · relay started ${R2(d.now-d.startedAt)}`:"Loading…"})]}),x.jsx("button",{type:"button",onClick:e,"aria-label":"Close",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:18})})]}),x.jsx("div",{className:"flex gap-1.5 overflow-x-auto border-b border-border-soft px-3 py-2",children:v.map(k=>x.jsxs("button",{type:"button",onClick:()=>{y.current=!0,a(k.key)},className:pe("pill shrink-0 whitespace-nowrap",k.key===n&&"pill-active"),children:[k.label,k.hint?x.jsx("span",{className:"ml-1.5 text-[11px] text-faint",children:k.hint}):null]},k.key??"live"))}),n&&d&&!d.managed?x.jsx("p",{className:"border-b border-border-soft bg-working/10 px-4 py-2 text-xs text-working",children:"This file belongs to the installed daemon — this relay isn’t the one writing it. Its own output is under Live."}):null,x.jsx("div",{ref:p,onScroll:k=>{const B=k.currentTarget;y.current=B.scrollHeight-B.scrollTop-B.clientHeight<40},className:"min-h-0 flex-1 overflow-y-auto px-3 py-2 font-mono text-[11px] leading-relaxed",children:f&&!d?x.jsx(Rr,{label:"Reading logs…"}):h?x.jsx(yn,{children:g?.message}):b.length===0?x.jsx(yn,{children:i?"No warnings or errors logged.":"Nothing logged yet — the relay has been quiet."}):b.map((k,B)=>x.jsxs("div",{className:"flex gap-2 whitespace-pre-wrap break-words py-px",children:[x.jsx("span",{className:"shrink-0 text-faint",children:DP(k.t)}),x.jsx("span",{className:pe("min-w-0 flex-1",BP[k.level]),children:k.text})]},B))}),x.jsxs("div",{className:"flex items-center gap-2 border-t border-border-soft px-3 py-2.5",children:[x.jsx("button",{type:"button",onClick:()=>l(k=>!k),className:pe("pill shrink-0",i&&"pill-active"),children:"Problems only"}),x.jsxs("button",{type:"button",onClick:C,className:"ml-auto flex items-center justify-center gap-2 rounded-xl border border-border bg-surface-2 px-4 py-2.5 text-sm active:bg-surface",children:[o==="ok"?x.jsx(qr,{size:16}):x.jsx(Xd,{size:16}),o==="ok"?"Copied":o==="failed"?"Copy blocked — select by hand":"Copy"]})]})]})]}),document.body)}function SP(e){return e.online?e.repoStatus==="loading"?"Loading repositories…":e.repoStatus==="error"?"Couldn’t load repositories.":e.repoStatus==="empty"?"No Conductor repositories are available.":e.repoStatus==="required"?"Choose a repository to continue.":e.uploading?"Wait for attachments to finish uploading.":e.attachmentError?"Remove failed attachments to continue.":e.workflowMode?e.hasInitialPrompt?e.workflowLoading?"Loading the planning role…":e.workflowReady?null:e.workflowProblem??"The planning role is unavailable.":"Describe what the workflow should accomplish.":null:"Reconnect to the relay to continue."}const N5="conductor-remote-send-immediately",NP=[];function _P(){try{return localStorage.getItem(N5)!=="off"}catch{return!0}}function MP(e){try{localStorage.setItem(N5,e?"on":"off")}catch{}}function jP(e){e&&je.discardStagedAttachment(e).catch(()=>{})}function TP({onClose:e}){const n=ng(),{data:a}=n,i=oc(),l=ag(),o=lf(),u=Be(ae=>ae.lastNewWorkspaceRepo),d=Be(ae=>ae.setLastNewWorkspaceRepo),[f,h]=D.useState(u),g=Be(ae=>ae.drafts[fa]??""),p=Be(ae=>ae.draftAttachments[fa]??NP),y=D.useMemo(()=>p.filter(ae=>!!ae.stageId),[p]),b=Be(ae=>ae.setDraft),C=Be(ae=>ae.addDraftAttachment),v=Be(ae=>ae.removeDraftAttachment),k=Be(ae=>ae.clearDraftContent),B=Be(ae=>ae.setFocusedDraft),j=ae=>b(fa,ae),[S,_]=D.useState({}),[T,F]=D.useState(!1),[R,L]=D.useState(!1),[I,O]=D.useState(_P),[$,V]=D.useState(!1),[oe,te]=D.useState(null),Y=D.useRef(null),P=D.useRef(new Set),Q=D.useRef(0),[Z,de]=D.useState([]),[M,z]=D.useState(!1),X=_i(),w=ur(),W=Be(ae=>ae.online);D.useEffect(()=>()=>{Be.getState().focusedDraft===fa&&B(null),md()},[B]);const he=a?.repos??[],re=he.find(ae=>ae.name===f);D.useEffect(()=>{he.length&&!he.some(ae=>ae.name===f)&&h(he[0].name)},[f,he]);const De=[...y.map(ae=>({...ae,id:ae.path,status:"ready"})),...Z],Ge=Z.some(ae=>ae.status==="uploading"),we=Z.some(ae=>ae.status==="error"),st=!!g.trim()||y.length>0,ut=i.data?.groups.flatMap(ae=>ae.models)??[],Lt=i.data?.defaultModel,Ct=o.data?.roles.planning,Ce=o.data?.issues.find(ae=>ae.role==="planning"),Ae=o.isError?"Could not load delegated roles.":o.data?.warning?o.data.warning:o.data&&!Ct?"Workflow mode needs a configured planning role.":Ce?.error.message,Oe=!!Ct&&!Ae,Ye=re?"selected":n.isLoading?"loading":n.isError?"error":he.length===0?"empty":"required",kt=SP({online:W,repoStatus:Ye,uploading:Ge,attachmentError:we,workflowMode:T,hasInitialPrompt:st,workflowReady:Oe,workflowLoading:o.isLoading,workflowProblem:Ae}),ht=$||kt!==null,Zt=S.model??Lt??null,vt=T?Ct?.model??"Planning role":Zt,ln=pf(null,Zt),On=mf(null,Zt),We=gf(null,Zt),Cn=bN(Zt,l.data?.defaultEfforts),le=T?Ct?.effort:S.effort??Cn,Ee=Object.keys(S).length>0,_e=D.useCallback(ae=>_(rt=>{const Qe={...rt,...ae};return Object.fromEntries(Object.entries(Qe).filter(([,Kt])=>Kt!==void 0))}),[]);D.useEffect(()=>{!ln&&S.plan!==void 0&&_e({plan:void 0})},[ln,S.plan,_e]),D.useEffect(()=>{!On&&S.effort!==void 0&&_e({effort:void 0}),!We&&S.fast!==void 0&&_e({fast:void 0})},[S.effort,S.fast,On,We,_e]);const Ke=ae=>{const rt=y.find(Qe=>Qe.path===ae);if(rt){v(fa,rt.path);return}P.current.add(ae),de(Qe=>Qe.filter(Kt=>Kt.id!==ae))},nt=async ae=>{if(W)for(const rt of Array.from(ae)){const Qe=crypto.randomUUID();de(Kt=>[...Kt,{id:Qe,name:rt.name||"attachment",status:"uploading"}]);try{const Kt=await je.stageAttachment(rt);if(P.current.delete(Qe)){jP(Kt.attachment.stageId);continue}C(fa,Kt.attachment),de(on=>on.filter(U=>U.id!==Qe))}catch(Kt){if(P.current.delete(Qe))continue;de(on=>on.map(U=>U.id===Qe?{...U,status:"error",error:Kt instanceof Error?Kt.message:"Upload failed"}:U))}}},jt=ae=>{ae?.length&&nt(ae)},Wt=ae=>Array.from(ae.dataTransfer.types).includes("Files"),Vt=ae=>{Wt(ae)&&(ae.preventDefault(),Q.current+=1,z(!0))},Bt=ae=>{Wt(ae)&&(Q.current-=1,Q.current<=0&&(Q.current=0,z(!1)))},Ut=ae=>{Wt(ae)&&(ae.preventDefault(),ae.dataTransfer.dropEffect="copy")},ie=ae=>{Wt(ae)&&(ae.preventDefault(),Q.current=0,z(!1),jt(ae.dataTransfer.files))},pt=D.useCallback(()=>{for(const ae of Z)P.current.add(ae.id);e()},[Z,e]),me=async()=>{const ae=g.trim();if(!ht){V(!0),te(null);try{const rt=await je.createWorkspace({repo:f,prompt:ae,sendImmediately:I,attachmentIds:y.flatMap(Qe=>Qe.stageId?[Qe.stageId]:[]),...T?{workflow:!0}:S});if(!rt.ok||!rt.workspaceId){te(rt.error??"could not create the workspace");return}await w.invalidateQueries({queryKey:["state"]}),k(fa),e(),X(`/w/${rt.workspaceId}`)}catch(rt){te(rt instanceof Error?rt.message:"could not create the workspace")}finally{V(!1)}}};return D.useEffect(()=>{const ae=rt=>{rt.key==="Escape"&&(R?L(!1):pt())};return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[pt,R]),Gr.createPortal(x.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col bg-bg",children:[x.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[x.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"New workspace"}),x.jsx("button",{type:"button",onClick:pt,"aria-label":"Close",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:20})})]}),x.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-3",children:[x.jsxs("div",{className:"relative",children:[x.jsxs("button",{type:"button",onClick:()=>L(ae=>!ae),"aria-haspopup":"menu","aria-expanded":R,className:"flex w-full items-center gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 text-left transition active:bg-surface-2",children:[re?x.jsx(Vl,{icon:re.icon,name:re.name,artwork:"inset"}):null,x.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",children:re?.name??"Choose a repo"}),x.jsx(Ea,{size:18,className:pe("shrink-0 text-muted transition",R&&"rotate-180")})]}),R?x.jsx("ul",{className:"absolute inset-x-0 top-full z-10 mt-1 max-h-72 overflow-y-auto rounded-2xl border border-border bg-surface py-1 shadow-xl",children:he.map(ae=>x.jsx("li",{children:x.jsxs("button",{type:"button",onClick:()=>{h(ae.name),d(ae.name),L(!1)},className:"flex w-full items-center gap-3 px-3 py-2 text-left active:bg-surface-2",children:[x.jsx(Vl,{icon:ae.icon,name:ae.name,artwork:"inset"}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px]",children:ae.name}),ae.name===f?x.jsx(qr,{size:16,className:"shrink-0 text-accent"}):null]})},ae.name))}):null]}),x.jsxs("fieldset",{"aria-label":"First message",onDragEnter:Vt,onDragLeave:Bt,onDragOver:Ut,onDrop:ie,className:pe("relative m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60",M&&"border-accent bg-accent-soft"),children:[x.jsx("input",{ref:Y,type:"file",multiple:!0,className:"hidden",onChange:ae=>{jt(ae.target.files),ae.target.value=""}}),De.length?x.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:De.map(ae=>x.jsxs("div",{title:ae.error??ae.name,className:"flex max-w-full items-center gap-1 rounded-lg bg-surface-2 py-1 pl-2 pr-1 text-xs text-muted",children:[ae.status==="uploading"?x.jsx(Tn,{size:12,className:"shrink-0 animate-spin"}):null,x.jsx("span",{className:"truncate",children:ae.status==="error"?`${ae.name}: ${ae.error}`:ae.name}),x.jsx("button",{type:"button",onClick:()=>Ke(ae.id),"aria-label":`Remove ${ae.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:x.jsx(bn,{size:13})})]},ae.id))}):null,x.jsx("textarea",{value:g,onChange:ae=>j(ae.target.value),onFocus:()=>B(fa),onBlur:()=>{Be.getState().focusedDraft===fa&&B(null),md()},placeholder:T?"What should the workflow accomplish?":"What should the agent do? (optional)",rows:6,autoFocus:!0,className:"block w-full resize-none bg-transparent px-2 py-1 text-base outline-none placeholder:text-faint",onPaste:ae=>{const rt=ae.clipboardData.files;rt.length&&(ae.preventDefault(),jt(rt))},onKeyDown:ae=>{m5(ae)&&(ae.preventDefault(),me())}}),x.jsxs("div",{className:"mt-1 flex items-start gap-1 px-1",children:[x.jsx(E5,{model:vt??"Model",providerModel:T?Ct?.model??null:vt,agentType:T&&Ct?Bs(Ct.model)??null:null,models:ut,modelsFetching:i.isFetching,modelsError:i.isError,defaultModel:Lt,fast:T?Ct?.fast:S.fast,effort:le,plan:T?void 0:S.plan,showEmptyEffort:!0,modelStaged:!T&&S.model!==void 0,fastStaged:!T&&S.fast!==void 0,effortStaged:!T&&S.effort!==void 0,planStaged:!T&&S.plan!==void 0,onModelChange:ae=>_e({model:ae===(S.model??Lt)?void 0:ae}),onFastChange:()=>_e({fast:S.fast===void 0?!0:S.fast?!1:void 0}),onEffortChange:()=>_e({effort:CN(le,Cn)}),onPlanChange:()=>_e({plan:S.plan===void 0?!0:S.plan?!1:void 0}),disabled:T,hidePlan:T,beforeModel:x.jsx(y5,{active:T,onChange:ae=>{F(ae),te(null)}}),status:T?Oe?"Planning root · delegates configured roles into sibling chats":o.isLoading?"Loading the planning role…":void 0:Ee?"Applies when the workspace opens":void 0}),x.jsx("button",{type:"button",onClick:()=>Y.current?.click(),disabled:!W,"aria-label":"Attach files",className:"flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:text-faint",children:x.jsx(ic,{size:17})})]}),T&&Ae?x.jsx("div",{className:"px-2 pb-1 text-xs text-del",children:Ae}):null,M?x.jsx("div",{className:"pointer-events-none absolute inset-1 z-10 flex items-center justify-center rounded-xl border border-dashed border-accent bg-accent-soft/90 text-sm font-medium text-accent",children:"Drop files to attach"}):null]}),x.jsxs("label",{className:pe("flex items-start gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 transition active:bg-surface-2",!st&&"opacity-40"),children:[x.jsx("input",{type:"checkbox",checked:I,disabled:!st,onChange:ae=>{O(ae.target.checked),MP(ae.target.checked)},className:"sr-only"}),x.jsx("span",{className:pe("mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-md border transition",I?"border-accent bg-accent text-bg":"border-border"),children:I?x.jsx(qr,{size:13,strokeWidth:3}):null}),x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-[15px] font-medium",children:"Send immediately"}),x.jsx("span",{className:"block text-xs text-muted",children:I?"The prompt goes as soon as the chat and attached files are ready, without waiting for setup.":"The prompt waits until the worktree has finished setting up."})]})]}),oe?x.jsx("div",{className:"text-xs text-del",children:oe}):null]}),x.jsxs("div",{className:"pb-safe border-t border-border-soft p-3",children:[x.jsx("div",{className:"mb-2 min-h-4 text-center text-xs leading-4 text-muted","aria-live":"polite",children:kt?x.jsx("span",{id:"new-workspace-create-reason",children:kt}):null}),x.jsx("button",{type:"button",onClick:me,disabled:ht,"aria-describedby":kt?"new-workspace-create-reason":void 0,className:"w-full rounded-2xl bg-accent px-4 py-3 text-[15px] font-semibold text-bg transition active:scale-[0.985] disabled:opacity-40",children:$?T?"Starting workflow…":"Creating…":T?"Start workflow":st?"Create & start":"Create empty workspace"})]})]}),document.body)}function RP(e){return e.replaceAll("_"," ").replace(/\b\w/g,n=>n.toUpperCase())}function OP(e){return{free:"Free",go:"Go",plus:"Plus",pro:"Pro",prolite:"Pro Lite",max:"Max",team:"Team",business:"Business",enterprise:"Enterprise",edu:"Education",self_serve_business_usage_based:"Business",enterprise_cbp_usage_based:"Enterprise"}[e]??RP(e)}function zP(e,n=Date.now()){if(e===null)return"Reset time unavailable";const a=e-n;return a>0&&a<3600*1e3?`Resets in ${Math.max(1,Math.round(a/6e4))}m`:a>0&&a<1440*60*1e3?`Resets in ${Math.max(1,Math.round(a/36e5))}h`:`Resets ${new Date(e).toLocaleString([],{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}`}function LP({window:e}){const n=Math.round(e.usedPercent);return x.jsxs("div",{children:[x.jsxs("div",{className:"mb-1 flex items-baseline gap-2 text-xs",children:[x.jsxs("span",{className:"min-w-0 flex-1 truncate text-muted",children:[e.active?x.jsx("span",{className:"mr-1.5 inline-block size-1.5 rounded-full bg-working"}):null,e.label]}),x.jsxs("span",{className:"font-medium tabular-nums text-text",children:[n,"%"]})]}),x.jsx("div",{role:"progressbar","aria-label":`${e.label}: ${n}% used`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,className:"h-1.5 overflow-hidden rounded-full bg-surface",children:x.jsx("div",{className:pe("h-full rounded-full transition-[width]",n>=95?"bg-del":n>=80?"bg-working":"bg-accent"),style:{width:`${e.usedPercent}%`}})}),x.jsx("div",{className:"mt-1 text-[11px] text-faint",children:zP(e.resetsAt)})]})}const PP=[{provider:"claude",label:"Claude Code"},{provider:"codex",label:"Codex"},{provider:"cursor",label:"Cursor Agent"},{provider:"opencode",label:"OpenCode"}];function _5(e){return e==="claude"||e==="codex"?e:null}function IP({usage:e,defaultEffort:n,defaultsLoading:a=!1,savingDefault:i=!1,onDefaultEffortChange:l}){const o=_5(e.provider),u=n&&!Bi.includes(n)?n:null,d=e.buckets.filter(f=>f.label!=="GPT-5.3-Codex-Spark"||f.windows.some(h=>h.usedPercent!==0));return x.jsxs("section",{className:"rounded-2xl border border-border bg-surface-2 p-3.5",children:[x.jsxs("div",{className:pe("flex items-center gap-2",(o||d.length)&&"mb-3"),children:[x.jsx(ro,{agentType:e.provider,model:null,className:"size-5"}),x.jsx("h3",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:e.label}),e.plan?x.jsx("span",{className:"pill shrink-0 text-[11px]",children:OP(e.plan)}):null]}),o?x.jsxs("label",{className:"mb-3 flex items-center justify-between gap-3 rounded-xl border border-border-soft bg-surface px-3 py-2",children:[x.jsxs("span",{className:"min-w-0",children:[x.jsx("span",{className:"block text-xs font-medium",children:"Default effort"}),x.jsx("span",{className:"block text-[11px] text-faint",children:"New chats"})]}),x.jsxs("span",{className:"relative shrink-0",children:[x.jsxs("select",{"aria-label":`${e.label} default effort`,value:n??"",disabled:a||i||!l,onChange:f=>l?.(f.target.value),className:"h-8 min-w-28 appearance-none rounded-lg border border-border bg-surface-2 py-1 pl-2.5 pr-7 text-xs text-text outline-none disabled:opacity-50",children:[x.jsx("option",{value:"",disabled:!0,children:a?"Reading…":"Choose effort"}),u?x.jsx("option",{value:u,children:u}):null,Bi.map(f=>x.jsx("option",{value:f,children:Ql[f]},f))]}),x.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-faint",children:i?x.jsx(to,{size:12,className:"animate-spin"}):x.jsx(Ea,{size:12})})]})]}):null,d.length?x.jsx("div",{className:"space-y-4",children:d.map(f=>x.jsxs("div",{className:"space-y-3",children:[d.length>1||f.label!==e.label?x.jsx("div",{className:"text-xs font-medium text-muted",children:f.label}):null,f.windows.map(h=>x.jsx(LP,{window:h},h.id))]},f.id))}):e.status==="error"&&o?x.jsx("p",{className:"text-xs text-del",children:e.message??"Could not read plan usage."}):null]})}function UP(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function HP({onClose:e}){const n=Vw(!0),a=ag(),i=ur(),[l,o]=D.useState(!1),[u,d]=D.useState(),[f,h]=D.useState(),[g,p]=D.useState(),y=PP.map(v=>n.data?.providers.find(k=>k.provider===v.provider)??{...v,status:"unavailable",plan:null,buckets:[]}),b=async()=>{if(!l){o(!0),d(void 0);try{const v=await je.planUsage(!0);i.setQueryData(["plan-usage"],v)}catch(v){d(v instanceof Error?v.message:"Could not refresh plan usage.")}finally{o(!1)}}},C=async(v,k)=>{if(f)return;h(v),p(void 0);const B=a.data;B&&i.setQueryData(["model-defaults"],{defaultEfforts:{...B.defaultEfforts,[v]:k}});try{const j=await je.patchModelDefaults({[v]:k});i.setQueryData(["model-defaults"],j)}catch(j){B&&i.setQueryData(["model-defaults"],B),p(j instanceof Error?j.message:"Could not save the default effort.")}finally{h(void 0)}};return Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Models",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[85dvh] max-w-md flex-col rounded-t-3xl border border-border-soft bg-surface shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Models"}),x.jsx("p",{className:"truncate text-xs text-muted",children:"Defaults and plan usage"})]}),x.jsx("button",{type:"button",onClick:()=>{b()},disabled:l||!n.data&&n.isLoading,"aria-label":"Refresh plan usage",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 disabled:opacity-40",children:x.jsx(to,{size:17,className:l?"animate-spin":void 0})}),x.jsx("button",{type:"button",onClick:e,"aria-label":"Close",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:18})})]}),x.jsxs("div",{className:"min-h-0 flex-1 space-y-3 overflow-y-auto overscroll-contain p-4",children:[y.map(v=>{const k=_5(v.provider);return x.jsx(IP,{usage:v,defaultEffort:k?a.data?.defaultEfforts[k]:void 0,defaultsLoading:a.isLoading||f!==void 0,savingDefault:f===k,onDefaultEffortChange:k?B=>{C(k,B)}:void 0},v.provider)}),n.isLoading&&!n.data?x.jsx("p",{className:"text-center text-xs text-faint",children:"Reading plan usage…"}):n.isError&&!n.data?x.jsx(yn,{children:n.error?.message??"Could not read plan usage."}):null,u?x.jsx("p",{className:"text-xs text-del",children:u}):null,g?x.jsx("p",{className:"text-xs text-del",children:g}):null,a.isError?x.jsx("p",{className:"text-xs text-del",children:a.error?.message??"Could not read model defaults."}):null]}),n.data?x.jsxs("div",{className:"shrink-0 border-t border-border-soft px-4 py-2.5 text-[11px] text-faint",children:["Updated ",UP(n.data.fetchedAt)," · cached for one minute"]}):null]})]}),document.body)}function Cs(e){return e.length?e.length===1?e[0]:`${e.length} repos`:"All repos"}function M5({repos:e,selected:n,onChange:a}){const i=e.filter(u=>n.includes(u.name)).length,l=n.length===0,o=u=>{a(JL(e.map(d=>d.name),n,u))};return x.jsxs(x.Fragment,{children:[l?x.jsxs("div",{className:"sticky top-0 z-[1] mb-0.5 flex min-h-8 items-center justify-between gap-3 border-b border-border-soft bg-inherit px-2 text-xs",children:[x.jsx("span",{className:"min-w-0 truncate text-faint",children:e.length?`All ${e.length} ${e.length===1?"repo":"repos"}`:"No repos"}),e.length?x.jsxs("span",{className:"flex shrink-0 items-center gap-1 font-medium text-muted",children:[x.jsx(qr,{size:12,strokeWidth:2.5,"aria-hidden":!0}),"Showing all"]}):null]}):x.jsxs("button",{type:"button",onClick:()=>a([]),"aria-label":"Show all repos",className:"sticky top-0 z-[1] mb-0.5 flex min-h-8 w-full items-center justify-between gap-3 border-b border-border-soft bg-inherit px-2 text-xs active:bg-surface",children:[x.jsxs("span",{className:"min-w-0 truncate text-faint",children:[i," of ",e.length," repos"]}),x.jsx("span",{className:"shrink-0 font-semibold text-accent",children:"Show all"})]}),e.map(u=>x.jsx($P,{checked:n.includes(u.name),label:u.name,icon:x.jsx(Vl,{icon:u.icon,name:u.name,artwork:"inset"}),onChange:()=>o(u.name)},u.name))]})}function $P({checked:e,label:n,icon:a,onChange:i}){return x.jsxs("label",{className:"flex min-w-0 cursor-pointer items-center gap-2 px-2 py-0.5 text-left text-sm text-text active:bg-surface",children:[x.jsx("input",{type:"checkbox",checked:e,onChange:i,className:"peer sr-only"}),a??x.jsx("span",{className:"size-8 shrink-0"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:n}),x.jsx("span",{className:pe("flex size-4 shrink-0 items-center justify-center rounded border peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-accent",e?"border-accent bg-accent text-on-solid":"border-faint bg-surface"),children:e?x.jsx(qr,{size:12,strokeWidth:3}):null})]})}function qP({query:e,repos:n,includeArchived:a,live:i,selectedId:l,onOpen:o}){const u=Lw(e.trim(),250),{data:d,isError:f,error:h,isFetching:g}=Pw(u,n,a),p=D.useMemo(()=>wD(e),[e]),y=D.useMemo(()=>{const C=new Map;if(p.length)for(const v of i){if(n.length&&!(v.repo_name&&n.includes(v.repo_name)))continue;const k=[$r(v),v.branch,v.repo_name,v.directory_name,v.session_title].filter(Boolean).join(" ").toLowerCase();p.every(B=>k.includes(B))&&C.set(v.id,{workspace:v,archived:!1,sessionId:null,snippets:[],hits:0})}for(const v of d?.results??[]){if(!a&&v.workspace.archived)continue;const k=C.get(v.workspace.id);if(k){k.sessionId=v.sessionId,k.snippets=v.snippets,k.hits=v.hits;continue}C.set(v.workspace.id,{workspace:v.workspace,archived:v.workspace.archived,sessionId:v.sessionId,snippets:v.snippets,hits:v.hits})}return[...C.values()]},[i,d,p,n,a]),b=d?.index;return x.jsxs(x.Fragment,{children:[b&&!b.ready?x.jsxs("p",{className:"px-1 pb-2 text-xs text-faint",children:["Indexing chats… ",Math.round(b.progress*100),"% — older conversations aren’t searchable yet."]}):null,b?.error?x.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat index unavailable (",b.error,") — searching names only."]}):null,f?x.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat search unavailable (",h?.message,") — showing name matches only."]}):null,y.length===0?g||u!==e.trim()?x.jsx(Rr,{}):f?null:x.jsxs(yn,{children:["Nothing matches “",e.trim(),"”",n.length?` in ${Cs(n)}`:"","."]}):x.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:y.map(C=>x.jsx("li",{className:"fade-in",children:x.jsx(VP,{row:C,tokens:p,selected:C.workspace.id===l,onOpen:o})},C.workspace.id))})]})}const GP="card w-full flex-col items-stretch gap-0";function VP({row:e,tokens:n,selected:a,onOpen:i}){const l=e.workspace,o=l.directory_name?.toLowerCase(),u=`${$r(l)} ${l.branch??""} ${l.repo_name??""}`.toLowerCase(),d=!!o&&n.some(h=>o.includes(h)&&!u.includes(h)),f=x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex items-start gap-3",children:[x.jsx(Vl,{icon:l.icon,name:l.repo_name||$r(l),artwork:"inset"}),x.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-text",children:$r(l)}),e.archived?x.jsx("span",{className:"shrink-0 rounded-md bg-surface-2 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-faint",children:"Archived"}):null]}),x.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[l.repo_name?x.jsx("span",{className:"shrink-0 font-mono text-faint",children:l.repo_name}):null,l.branch?x.jsx(B9,{className:"min-w-0 flex-1 truncate",children:l.branch}):null,d?x.jsxs(B9,{className:"shrink-0 text-faint",children:["dir ",l.directory_name]}):null,x.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:Ng(l.updated_at)})]})]})]}),e.snippets.length?x.jsxs("div",{className:"mt-2 flex flex-col gap-1.5 border-l-2 border-border-soft pl-2.5",children:[e.snippets.map(h=>x.jsx(YP,{snippet:h},`${h.sessionId}:${h.at}:${h.text.slice(0,24)}`)),e.hits>e.snippets.length?x.jsxs("span",{className:"text-[11px] text-faint",children:["+",e.hits-e.snippets.length," more messages"]}):null]}):null]});return x.jsx("button",{type:"button",className:pe(GP,a&&"border-accent/50 bg-surface-2"),onClick:()=>i(l.id,e.sessionId),children:f})}const QP={user:"you",assistant:"agent",thinking:"thought"};function YP({snippet:e}){return x.jsxs("p",{className:"line-clamp-2 text-left text-xs leading-snug text-muted",children:[x.jsx("span",{className:`mr-1.5 text-[10px] uppercase tracking-wide ${e.role==="thinking"?"text-faint italic":"text-faint"}`,children:QP[e.role]}),nS(e.text).map((n,a)=>n.hit?x.jsx("mark",{className:"rounded bg-accent/25 px-0.5 text-text",children:n.text},a):x.jsx("span",{children:n.text},a))]})}function KP({live:e,selectedId:n,onOpen:a,onClose:i}){const[l,o]=D.useState(""),[u,d]=D.useState([]),[f,h]=D.useState(!0),[g,p]=D.useState(!1),y=D.useRef(null),C=(ng().data?.repos??[]).map(k=>({name:k.name,icon:k.icon}));for(const k of e)k.repo_name&&!C.some(B=>B.name===k.repo_name)&&C.push({name:k.repo_name,icon:k.icon});D.useEffect(()=>y.current?.focus(),[]),D.useEffect(()=>{const k=B=>{B.key==="Escape"&&(g?p(!1):i())};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[i,g]);const v=u.length>0;return Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/50",onClick:i,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Search workspaces and chats",className:"app-height fade-in pt-safe fixed inset-x-0 top-0 z-50 flex flex-col bg-bg md:inset-x-auto md:left-1/2 md:top-16 md:max-h-[70vh] md:w-[36rem] md:max-w-[92vw] md:-translate-x-1/2 md:rounded-2xl md:border md:border-border md:shadow-2xl",children:[x.jsxs("div",{className:"relative flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[x.jsxs("div",{className:"relative min-w-0 flex-1",children:[x.jsx(S8,{size:15,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-faint"}),x.jsx("input",{ref:y,type:"text",inputMode:"search",enterKeyHint:"search",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:l,onChange:k=>o(k.target.value),placeholder:"Search workspaces and chats","aria-label":"Search workspaces and chats",className:"w-full rounded-xl border border-border bg-surface py-2 pl-8 pr-9 text-sm text-text placeholder:text-faint focus:border-accent/50 focus:outline-none"}),l?x.jsx("button",{type:"button",onClick:()=>{o(""),y.current?.focus()},"aria-label":"Clear search",className:"absolute right-1 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:15})}):null]}),x.jsx("button",{type:"button",onClick:()=>h(k=>!k),"aria-label":"Include archived workspaces","aria-pressed":f,title:f?"Search archived workspaces":"Archived workspaces excluded",className:pe("flex size-9 shrink-0 items-center justify-center rounded-full active:bg-surface-2",f?"border border-accent/50 bg-accent/10 text-text":"text-muted"),children:f?x.jsx(Kd,{size:18}):x.jsx(_7,{size:18})}),x.jsxs("button",{type:"button",onClick:()=>p(k=>!k),"aria-label":v?`Repo filter: ${Cs(u)}`:"Filter by repo","aria-haspopup":"menu","aria-expanded":g,className:pe("flex h-9 shrink-0 items-center justify-center gap-1 rounded-full text-sm active:bg-surface-2",v?"max-w-36 border border-accent/50 bg-accent/10 px-2.5 text-text":"size-9 text-muted"),children:[x.jsx(cv,{size:v?14:18,className:"shrink-0"}),v?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"min-w-0 truncate",children:Cs(u)}),x.jsx(Ea,{size:14,className:pe("shrink-0 text-faint transition-transform",g&&"rotate-180")})]}):null]}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Close search",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(bn,{size:20})}),g?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>p(!1),"aria-hidden":!0}),x.jsx("div",{role:"menu","aria-label":"Repos to search",className:"fade-in absolute right-3 top-full z-20 mt-1 flex max-h-72 w-64 flex-col overflow-y-auto rounded-2xl border border-border bg-surface py-1 shadow-xl",children:x.jsx(M5,{repos:C,selected:u,onChange:d})})]}):null]}),x.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:l.trim()?x.jsx(qP,{query:l,repos:u,includeArchived:f,live:e,selectedId:n,onOpen:a}):x.jsxs(yn,{children:[v?`Workspaces and chats in ${Cs(u)}`:"Every workspace on this Mac",f?", archived included":", excluding archived"," — by name, or by something said in the chat. Quote a “phrase” to require it word for word."]})})]})]}),document.body)}function XP(e){return!!(e.pending_prompt?.sessionRole||e.delegations?.length||Object.keys(e.session_roles??{}).length)}function ZP(e,n){return e?.length?e.find(i=>i.agentType===(n??"unknown"))?.models??[...new Set(e.flatMap(i=>i.models))]:[]}function WP({workspace:e,modelGroups:n}){if(XP(e))return x.jsxs("span",{title:"Delegated workflow",className:"ml-auto flex min-w-0 items-center gap-1 text-[11px] text-accent",children:[x.jsx(lc,{size:13,"aria-hidden":"true"}),x.jsx("span",{className:"truncate",children:"Workflow"})]});const a=T8(e.model,ZP(n,e.agent_type));return a?x.jsxs("span",{className:"ml-auto flex min-w-0 items-center gap-1 text-[11px]",children:[x.jsx(ro,{agentType:e.agent_type,model:e.model,className:"size-3"}),x.jsx("span",{className:"truncate",children:a})]}):null}function JP(e,n){return[...e].sort((a,i)=>{const l=+!!i.pinned_at-+!!a.pinned_at;if(l)return l;if(n==="name")return $r(a).localeCompare($r(i));const o=n==="created"?a.created_at:a.updated_at,u=n==="created"?i.created_at:i.updated_at,d=Xn(u)-Xn(o);return Number.isFinite(d)?d:u.localeCompare(o)})}function eI(e,n){return n==="status"?uf(e):n==="recent"?uS(e.updated_at):e.repo_name??""}function tI(e,n){if(n==="none")return[{key:"all",label:"",items:e}];const a=new Map;for(const i of e){const l=eI(i,n),o=a.get(l);o?o.push(i):a.set(l,[i])}return n==="status"?[...A9,...[...a.keys()].filter(l=>!A9.includes(l))].filter(l=>a.has(l)).map(l=>({key:`status:${l}`,label:yd(l),status:l,items:a.get(l)??[]})):n==="recent"?oS.filter(i=>a.has(i)).map(i=>({key:`recent:${i}`,label:cS(i),items:a.get(i)??[]})):[...a.keys()].sort((i,l)=>i.localeCompare(l)).map(i=>({key:`repo:${i}`,label:i||"No repo",items:a.get(i)??[]}))}function nI({selectedId:e}){const n=_i(),a=B5(),i=Be(w=>w.setSidebarOpen),l=Be(w=>w.view),o=Be(w=>w.readMarks),u=Be(w=>w.pending),d=Be(w=>w.workingHints),f=Be(w=>w.toggleGroup),[h,g]=D.useState(!1),[p,y]=D.useState(!1),[b,C]=D.useState(!1),[v,k]=D.useState(!1),[B,j]=D.useState(!1),[S,_]=D.useState(!1),[T,F]=D.useState(!1),{data:R,isLoading:L,isError:I,error:O}=tg(),$=R?.workspaces??[],V=oc().data?.groups;D.useEffect(()=>{const w=W=>{(W.metaKey||W.ctrlKey)&&!W.shiftKey&&!W.altKey&&W.key.toLowerCase()==="k"&&(W.preventDefault(),F(he=>!he))};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[]);const oe=new Map($.map(w=>[w.repo_name,w.icon])),te=[...new Set([...$.map(w=>w.repo_name).filter(w=>!!w),...l.repos])].sort().map(w=>({name:w,icon:oe.get(w)??null})),Y=l.repos.length?$.filter(w=>!!w.repo_name&&l.repos.includes(w.repo_name)):$,P=Y.filter(w=>w.id===e||!(l.hideMerged&&iS(w)||l.hideDone&&sS(w))),Q=Y.length-P.length,Z=tI(JP(P,l.sortBy),l.groupBy),de=(w,W=null)=>{n(W?`/w/${w}?session=${encodeURIComponent(W)}`:`/w/${w}`),i(!1)},M=l.repos.length>0||l.hideMerged||l.hideDone,z=Cs(l.repos),X=WL({total:$.length,shown:P.length,hidden:Q,repoFiltered:l.repos.length>0});return x.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[x.jsxs("div",{className:"relative",children:[x.jsx(Rg,{children:x.jsxs("div",{role:"toolbar","aria-label":"Workspace controls",className:"flex w-full items-center justify-between px-3 pb-2.5",children:[x.jsx("button",{type:"button",onClick:()=>F(!0),"aria-label":"Search workspaces and chats",title:"Search (⌘K)",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(S8,{size:18})}),x.jsx("button",{type:"button",onClick:()=>j(!0),"aria-label":"Models",title:"Models",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(fv,{size:18})}),x.jsxs("button",{type:"button",onClick:()=>g(w=>!w),"aria-label":"View options",className:"relative flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:[x.jsx(iB,{size:18}),M?x.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),x.jsx("button",{type:"button",onClick:()=>y(!0),"aria-label":"Connect a device",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(F8,{size:18})}),x.jsx("button",{type:"button",onClick:()=>_(!0),"aria-label":"Open delegated roles",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(lc,{size:18})}),x.jsxs("button",{type:"button",onClick:a.openPanel,"aria-label":a.status==="idle"?"Call fleet orchestrator":"Open active call",title:"Control room",className:pe("relative flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",a.status!=="idle"&&"bg-voice-soft text-voice"),children:[x.jsx(U0,{size:18}),a.status!=="idle"?x.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-voice"}):null]}),x.jsx("button",{type:"button",onClick:()=>C(!0),"aria-label":"New workspace",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-text active:bg-surface-2 min-[360px]:size-9",children:x.jsx(Wd,{size:20})})]})}),h?x.jsx(aI,{repos:te,view:l,summary:X,onClose:()=>g(!1)}):null]}),x.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:L&&!R?x.jsx(Rr,{label:"Loading workspaces…"}):I?x.jsx(BS,{error:O}):$.length===0?x.jsx(yn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):P.length===0?x.jsxs(yn,{children:[l.repos.length?`No workspaces in ${z}`:"No workspaces",Q?` — ${Q} ${Q===1?"one is":"ones are"} hidden.`:"."]}):Z.map(w=>{const W=!!w.label&&l.collapsed.includes(w.key);return x.jsxs("section",{children:[w.label?x.jsxs("button",{type:"button",onClick:()=>f(w.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[x.jsx(rI,{status:w.status}),x.jsx("span",{className:"truncate",children:w.label}),W?x.jsx("span",{className:"font-normal text-muted text-xs",children:w.items.length}):null,x.jsx(Ea,{size:14,className:pe("ml-auto shrink-0 text-faint transition-transform",W&&"-rotate-90")})]}):null,W?null:x.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:w.items.map(he=>{const re=sw(he,o),De=he.active_session_id?d[he.active_session_id]:void 0,Ge=$8(u.filter(we=>we.workspaceId===he.id),[...he.pending_prompt?[he.pending_prompt]:[],...he.parked_prompts??[]],De!==void 0&&Date.now()-De<gd);return x.jsx("li",{className:"fade-in",children:x.jsx("button",{type:"button",className:pe("card w-full px-3 py-2.5",he.id===e?"border-accent/50 bg-surface-2":re&&"border-l-accent"),onClick:()=>de(he.id),children:x.jsx(sI,{w:he,unread:re,selected:he.id===e,modelGroups:V,promptState:Ge,showDiffs:l.showDiffs})})},he.id)})})]},w.key)})}),p?x.jsx(EP,{version:R?.version,onLogs:()=>{y(!1),k(!0)},onClose:()=>y(!1)}):null,b?x.jsx(TP,{onClose:()=>C(!1)}):null,T?x.jsx(KP,{live:$,selectedId:e,onOpen:(w,W)=>{F(!1),de(w,W)},onClose:()=>F(!1)}):null,v?x.jsx(FP,{onClose:()=>k(!1)}):null,B?x.jsx(HP,{onClose:()=>j(!1)}):null,S?x.jsx(v5,{onClose:()=>_(!1)}):null]})}function rI({status:e}){if(!e)return null;const n=xf[e];return n?x.jsx("span",{className:"dot size-2",style:{background:n}}):x.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function aI({repos:e,view:n,summary:a,onClose:i}){const l=Be(o=>o.setView);return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-20",onClick:i,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-labelledby":"workspace-filters-title","aria-describedby":a?"workspace-filters-summary":void 0,className:"fade-in absolute right-2 top-full z-30 mt-1 flex w-64 flex-col gap-2.5 rounded-2xl border border-border bg-surface p-3 shadow-xl",children:[x.jsxs("div",{className:"border-b border-border-soft pb-2",children:[x.jsx("h2",{id:"workspace-filters-title",className:"text-sm font-semibold text-text",children:"Workspace filters"}),a?x.jsx("p",{id:"workspace-filters-summary",className:"mt-0.5 text-xs text-muted",children:a}):null]}),x.jsx(Rl,{id:"view-group",label:"Group by",children:x.jsx(z2,{id:"view-group",value:n.groupBy,onChange:o=>l({groupBy:o}),options:[["status","Status"],["recent","Recent"],["repo","Repo"],["none","None"]]})}),x.jsx(iI,{repos:e,selected:n.repos,onChange:o=>l({repos:o})}),x.jsx(Rl,{id:"view-sort",label:"Sort by",children:x.jsx(z2,{id:"view-sort",value:n.sortBy,onChange:o=>l({sortBy:o}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})}),x.jsx(Rl,{id:"view-hide-merged",label:"Hide merged",children:x.jsx(O2,{id:"view-hide-merged",checked:n.hideMerged,label:"Hide workspaces whose PR has merged",onChange:o=>l({hideMerged:o})})}),x.jsx(Rl,{id:"view-hide-done",label:"Hide done",children:x.jsx(O2,{id:"view-hide-done",checked:n.hideDone,label:"Hide workspaces marked Done",onChange:o=>l({hideDone:o})})})]})]})}function iI({repos:e,selected:n,onChange:a}){const[i,l]=D.useState(!1);return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsx(Rl,{id:"view-repo",label:"Repo",children:x.jsxs("button",{id:"view-repo",type:"button",onClick:()=>l(o=>!o),"aria-expanded":i,"aria-controls":"view-repo-options",className:"flex max-w-36 items-center gap-1 rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text",children:[x.jsx("span",{className:"truncate",children:Cs(n)}),x.jsx(Ea,{size:14,className:pe("shrink-0 text-faint transition-transform",i&&"rotate-180")})]})}),i?x.jsx("div",{id:"view-repo-options",className:"flex max-h-48 flex-col overflow-y-auto rounded-lg border border-border bg-surface-2 py-0.5",children:x.jsx(M5,{repos:e,selected:n,onChange:a})}):null]})}function O2({id:e,checked:n,label:a,onChange:i}){return x.jsx("button",{id:e,type:"button",role:"switch","aria-checked":n,"aria-label":a,onClick:()=>i(!n),className:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",n?"bg-accent":"border border-border bg-surface-2"),children:x.jsx("span",{className:pe("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",n?"translate-x-5":"translate-x-0")})})}function Rl({id:e,label:n,children:a}){return x.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[x.jsx("label",{htmlFor:e,children:n}),a]})}function z2({id:e,value:n,options:a,onChange:i}){return x.jsx("select",{id:e,value:n,onChange:l=>i(l.target.value),className:"max-w-36 truncate rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text",children:a.map(([l,o])=>x.jsx("option",{value:l,children:o},l))})}function sI({w:e,unread:n,selected:a,modelGroups:i,promptState:l,showDiffs:o}){return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"relative shrink-0",children:[x.jsx(Vl,{icon:e.icon,name:e.repo_name||$r(e),artwork:"full-bleed"}),x.jsx(bS,{w:e,promptState:l,className:"absolute -right-0.5 -bottom-0.5 bg-surface ring-2 ring-surface"}),e.run_active?x.jsx(CS,{className:"absolute -top-0.5 -left-0.5"}):null]}),x.jsxs("div",{className:"min-w-0 flex-1 space-y-1.25 overflow-hidden",children:[x.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[x.jsx("span",{className:pe("min-w-0 truncate text-sm leading-none",n?"font-bold":"font-medium",n||a?"text-text":"text-muted"),children:$r(e)}),e.pinned_at?x.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,n>1?x.jsx(kS,{children:n}):n?x.jsx("span",{className:"dot size-2 bg-accent"}):null]}),o?x.jsx(tP,{stats:e.change_stats}):null]}),x.jsxs("div",{className:"flex min-w-0 items-end gap-2 text-xs text-muted",children:[x.jsx("span",{className:"shrink-0 text-[11px] text-faint",children:_g(e.updated_at)}),x.jsx(WP,{workspace:e,modelGroups:i})]})]})]})}function lI(){Ow();const e=Be(n=>n.token);return x.jsxs(x.Fragment,{children:[x.jsx(Bw,{}),e?x.jsxs(jb,{children:[x.jsxs(Tl,{element:x.jsx(oI,{}),children:[x.jsx(Tl,{index:!0,element:x.jsx(cI,{})}),x.jsx(Tl,{path:"/w/:workspaceId",element:x.jsx(SL,{})})]}),x.jsx(Tl,{path:"*",element:x.jsx(Nb,{to:"/",replace:!0})})]}):x.jsx(HL,{})]})}function oI(){const e=db("/w/:workspaceId"),n=Be(l=>l.sidebarOpen),a=Be(l=>l.setSidebarOpen),i=D.useRef(null);return Rw(i),eF(),Xw(),zw(),x.jsxs(YL,{children:[x.jsxs("div",{className:"flex h-full overflow-hidden",children:[n?x.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>a(!1),"aria-hidden":!0}):null,x.jsx("aside",{ref:i,className:pe("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",n?"translate-x-0":"-translate-x-full"),children:x.jsx(nI,{selectedId:e?.params.workspaceId})}),x.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:x.jsx(_b,{})})]}),x.jsx(ZL,{})]})}function cI(){const e=Be(n=>n.setSidebarOpen);return x.jsxs("div",{className:"grid h-full place-items-center",children:[x.jsx("button",{type:"button",onClick:()=>e(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),x.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}navigator.storage?.persist&&navigator.storage.persist().catch(()=>{});lP();const uI=new u4({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),j5=document.getElementById("root");if(!j5)throw new Error("#root missing");S4.createRoot(j5).render(x.jsx(D.StrictMode,{children:x.jsx(d4,{client:uI,children:x.jsx(a7,{children:x.jsx(lI,{})})})}));