diff --git a/apps/desktop/dist/assets/index-BfOOoQLP.js b/apps/desktop/dist/assets/index-BfOOoQLP.js new file mode 100644 index 0000000..a5fb4d0 --- /dev/null +++ b/apps/desktop/dist/assets/index-BfOOoQLP.js @@ -0,0 +1,9 @@ +(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const D of document.querySelectorAll('link[rel="modulepreload"]'))o(D);new MutationObserver(D=>{for(const j of D)if(j.type==="childList")for(const x of j.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&o(x)}).observe(document,{childList:!0,subtree:!0});function S(D){const j={};return D.integrity&&(j.integrity=D.integrity),D.referrerPolicy&&(j.referrerPolicy=D.referrerPolicy),D.crossOrigin==="use-credentials"?j.credentials="include":D.crossOrigin==="anonymous"?j.credentials="omit":j.credentials="same-origin",j}function o(D){if(D.ep)return;D.ep=!0;const j=S(D);fetch(D.href,j)}})();var _f={exports:{}},Ou={};var Yr;function Nm(){if(Yr)return Ou;Yr=1;var s=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function S(o,D,j){var x=null;if(j!==void 0&&(x=""+j),D.key!==void 0&&(x=""+D.key),"key"in D){j={};for(var k in D)k!=="key"&&(j[k]=D[k])}else j=D;return D=j.ref,{$$typeof:s,type:o,key:x,ref:D!==void 0?D:null,props:j}}return Ou.Fragment=f,Ou.jsx=S,Ou.jsxs=S,Ou}var xr;function Um(){return xr||(xr=1,_f.exports=Nm()),_f.exports}var q=Um();function Rm(s,f,S,o){if(typeof f=="function"?s!==f||!o:!f.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return S==="m"?o:S==="a"?o.call(s):o?o.value:f.get(s)}function Cm(s,f,S,o,D){if(typeof f=="function"?s!==f||!0:!f.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f.set(s,S),S}var Fn;const _t="__TAURI_TO_IPC_KEY__";function Hm(s,f=!1){return window.__TAURI_INTERNALS__.transformCallback(s,f)}async function O(s,f={},S){return window.__TAURI_INTERNALS__.invoke(s,f,S)}class Bm{get rid(){return Rm(this,Fn,"f")}constructor(f){Fn.set(this,void 0),Cm(this,Fn,f)}async close(){return O("plugin:resources|close",{rid:this.rid})}}Fn=new WeakMap;function li(){return!!(globalThis||window).isTauri}class Ir{constructor(...f){this.type="Logical",f.length===1?"Logical"in f[0]?(this.width=f[0].Logical.width,this.height=f[0].Logical.height):(this.width=f[0].width,this.height=f[0].height):(this.width=f[0],this.height=f[1])}toPhysical(f){return new Mu(this.width*f,this.height*f)}[_t](){return{width:this.width,height:this.height}}toJSON(){return this[_t]()}}class Mu{constructor(...f){this.type="Physical",f.length===1?"Physical"in f[0]?(this.width=f[0].Physical.width,this.height=f[0].Physical.height):(this.width=f[0].width,this.height=f[0].height):(this.width=f[0],this.height=f[1])}toLogical(f){return new Ir(this.width/f,this.height/f)}[_t](){return{width:this.width,height:this.height}}toJSON(){return this[_t]()}}class Ue{constructor(f){this.size=f}toLogical(f){return this.size instanceof Ir?this.size:this.size.toLogical(f)}toPhysical(f){return this.size instanceof Mu?this.size:this.size.toPhysical(f)}[_t](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[_t]()}}class Pr{constructor(...f){this.type="Logical",f.length===1?"Logical"in f[0]?(this.x=f[0].Logical.x,this.y=f[0].Logical.y):(this.x=f[0].x,this.y=f[0].y):(this.x=f[0],this.y=f[1])}toPhysical(f){return new Ta(this.x*f,this.y*f)}[_t](){return{x:this.x,y:this.y}}toJSON(){return this[_t]()}}class Ta{constructor(...f){this.type="Physical",f.length===1?"Physical"in f[0]?(this.x=f[0].Physical.x,this.y=f[0].Physical.y):(this.x=f[0].x,this.y=f[0].y):(this.x=f[0],this.y=f[1])}toLogical(f){return new Pr(this.x/f,this.y/f)}[_t](){return{x:this.x,y:this.y}}toJSON(){return this[_t]()}}class kn{constructor(f){this.position=f}toLogical(f){return this.position instanceof Pr?this.position:this.position.toLogical(f)}toPhysical(f){return this.position instanceof Ta?this.position:this.position.toPhysical(f)}[_t](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[_t]()}}var ct;(function(s){s.WINDOW_RESIZED="tauri://resize",s.WINDOW_MOVED="tauri://move",s.WINDOW_CLOSE_REQUESTED="tauri://close-requested",s.WINDOW_DESTROYED="tauri://destroyed",s.WINDOW_FOCUS="tauri://focus",s.WINDOW_BLUR="tauri://blur",s.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",s.WINDOW_THEME_CHANGED="tauri://theme-changed",s.WINDOW_CREATED="tauri://window-created",s.WINDOW_SUSPENDED="tauri://suspended",s.WINDOW_RESUMED="tauri://resumed",s.WEBVIEW_CREATED="tauri://webview-created",s.DRAG_ENTER="tauri://drag-enter",s.DRAG_OVER="tauri://drag-over",s.DRAG_DROP="tauri://drag-drop",s.DRAG_LEAVE="tauri://drag-leave"})(ct||(ct={}));async function lh(s,f){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(s,f),await O("plugin:event|unlisten",{event:s,eventId:f})}async function Rf(s,f,S){var o;const D=typeof S?.target=="string"?{kind:"AnyLabel",label:S.target}:(o=S?.target)!==null&&o!==void 0?o:{kind:"Any"};return O("plugin:event|listen",{event:s,target:D,handler:Hm(f)}).then(j=>async()=>lh(s,j))}async function qm(s,f,S){return Rf(s,o=>{lh(s,o.id),f(o)},S)}async function jm(s,f){await O("plugin:event|emit",{event:s,payload:f})}async function Ym(s,f,S){await O("plugin:event|emit_to",{target:typeof s=="string"?{kind:"AnyLabel",label:s}:s,event:f,payload:S})}class Nu extends Bm{constructor(f){super(f)}static async new(f,S,o){return O("plugin:image|new",{rgba:In(f),width:S,height:o}).then(D=>new Nu(D))}static async fromBytes(f){return O("plugin:image|from_bytes",{bytes:In(f)}).then(S=>new Nu(S))}static async fromPath(f){return O("plugin:image|from_path",{path:f}).then(S=>new Nu(S))}async rgba(){return O("plugin:image|rgba",{rid:this.rid}).then(f=>new Uint8Array(f))}async size(){return O("plugin:image|size",{rid:this.rid})}}function In(s){return s==null?null:typeof s=="string"?s:s instanceof Nu?s.rid:s}var Uf;(function(s){s[s.Critical=1]="Critical",s[s.Informational=2]="Informational"})(Uf||(Uf={}));class xm{constructor(f){this._preventDefault=!1,this.event=f.event,this.id=f.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var wr;(function(s){s.None="none",s.Normal="normal",s.Indeterminate="indeterminate",s.Paused="paused",s.Error="error"})(wr||(wr={}));function Cf(){return new th(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function pf(){return O("plugin:window|get_all_windows").then(s=>s.map(f=>new th(f,{skip:!0})))}const zf=["tauri://created","tauri://error"];class th{constructor(f,S={}){var o;this.label=f,this.listeners=Object.create(null),S?.skip||O("plugin:window|create",{options:{...S,parent:typeof S.parent=="string"?S.parent:(o=S.parent)===null||o===void 0?void 0:o.label,label:f}}).then(async()=>this.emit("tauri://created")).catch(async D=>this.emit("tauri://error",D))}static async getByLabel(f){var S;return(S=(await pf()).find(o=>o.label===f))!==null&&S!==void 0?S:null}static getCurrent(){return Cf()}static async getAll(){return pf()}static async getFocusedWindow(){for(const f of await pf())if(await f.isFocused())return f;return null}async listen(f,S){return this._handleTauriEvent(f,S)?()=>{const o=this.listeners[f];o.splice(o.indexOf(S),1)}:Rf(f,S,{target:{kind:"Window",label:this.label}})}async once(f,S){return this._handleTauriEvent(f,S)?()=>{const o=this.listeners[f];o.splice(o.indexOf(S),1)}:qm(f,S,{target:{kind:"Window",label:this.label}})}async emit(f,S){if(zf.includes(f)){for(const o of this.listeners[f]||[])o({event:f,id:-1,payload:S});return}return jm(f,S)}async emitTo(f,S,o){if(zf.includes(S)){for(const D of this.listeners[S]||[])D({event:S,id:-1,payload:o});return}return Ym(f,S,o)}_handleTauriEvent(f,S){return zf.includes(f)?(f in this.listeners?this.listeners[f].push(S):this.listeners[f]=[S],!0):!1}async scaleFactor(){return O("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return O("plugin:window|inner_position",{label:this.label}).then(f=>new Ta(f))}async outerPosition(){return O("plugin:window|outer_position",{label:this.label}).then(f=>new Ta(f))}async innerSize(){return O("plugin:window|inner_size",{label:this.label}).then(f=>new Mu(f))}async outerSize(){return O("plugin:window|outer_size",{label:this.label}).then(f=>new Mu(f))}async isFullscreen(){return O("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return O("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return O("plugin:window|is_maximized",{label:this.label})}async isFocused(){return O("plugin:window|is_focused",{label:this.label})}async isDecorated(){return O("plugin:window|is_decorated",{label:this.label})}async isResizable(){return O("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return O("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return O("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return O("plugin:window|is_closable",{label:this.label})}async isVisible(){return O("plugin:window|is_visible",{label:this.label})}async title(){return O("plugin:window|title",{label:this.label})}async theme(){return O("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return O("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return O("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return O("plugin:window|scene_identifier",{label:this.label})}async center(){return O("plugin:window|center",{label:this.label})}async requestUserAttention(f){let S=null;return f&&(f===Uf.Critical?S={type:"Critical"}:S={type:"Informational"}),O("plugin:window|request_user_attention",{label:this.label,value:S})}async setResizable(f){return O("plugin:window|set_resizable",{label:this.label,value:f})}async setEnabled(f){return O("plugin:window|set_enabled",{label:this.label,value:f})}async isEnabled(){return O("plugin:window|is_enabled",{label:this.label})}async setMaximizable(f){return O("plugin:window|set_maximizable",{label:this.label,value:f})}async setMinimizable(f){return O("plugin:window|set_minimizable",{label:this.label,value:f})}async setClosable(f){return O("plugin:window|set_closable",{label:this.label,value:f})}async setTitle(f){return O("plugin:window|set_title",{label:this.label,value:f})}async maximize(){return O("plugin:window|maximize",{label:this.label})}async unmaximize(){return O("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return O("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return O("plugin:window|minimize",{label:this.label})}async unminimize(){return O("plugin:window|unminimize",{label:this.label})}async show(){return O("plugin:window|show",{label:this.label})}async hide(){return O("plugin:window|hide",{label:this.label})}async close(){return O("plugin:window|close",{label:this.label})}async destroy(){return O("plugin:window|destroy",{label:this.label})}async setDecorations(f){return O("plugin:window|set_decorations",{label:this.label,value:f})}async setShadow(f){return O("plugin:window|set_shadow",{label:this.label,value:f})}async setEffects(f){return O("plugin:window|set_effects",{label:this.label,value:f})}async clearEffects(){return O("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(f){return O("plugin:window|set_always_on_top",{label:this.label,value:f})}async setAlwaysOnBottom(f){return O("plugin:window|set_always_on_bottom",{label:this.label,value:f})}async setContentProtected(f){return O("plugin:window|set_content_protected",{label:this.label,value:f})}async setSize(f){return O("plugin:window|set_size",{label:this.label,value:f instanceof Ue?f:new Ue(f)})}async setMinSize(f){return O("plugin:window|set_min_size",{label:this.label,value:f instanceof Ue?f:f?new Ue(f):null})}async setMaxSize(f){return O("plugin:window|set_max_size",{label:this.label,value:f instanceof Ue?f:f?new Ue(f):null})}async setSizeConstraints(f){function S(o){return o?{Logical:o}:null}return O("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:S(f?.minWidth),minHeight:S(f?.minHeight),maxWidth:S(f?.maxWidth),maxHeight:S(f?.maxHeight)}})}async setPosition(f){return O("plugin:window|set_position",{label:this.label,value:f instanceof kn?f:new kn(f)})}async setFullscreen(f){return O("plugin:window|set_fullscreen",{label:this.label,value:f})}async setSimpleFullscreen(f){return O("plugin:window|set_simple_fullscreen",{label:this.label,value:f})}async setFocus(){return O("plugin:window|set_focus",{label:this.label})}async setFocusable(f){return O("plugin:window|set_focusable",{label:this.label,value:f})}async setIcon(f){return O("plugin:window|set_icon",{label:this.label,value:In(f)})}async setSkipTaskbar(f){return O("plugin:window|set_skip_taskbar",{label:this.label,value:f})}async setCursorGrab(f){return O("plugin:window|set_cursor_grab",{label:this.label,value:f})}async setCursorVisible(f){return O("plugin:window|set_cursor_visible",{label:this.label,value:f})}async setCursorIcon(f){return O("plugin:window|set_cursor_icon",{label:this.label,value:f})}async setBackgroundColor(f){return O("plugin:window|set_background_color",{color:f})}async setCursorPosition(f){return O("plugin:window|set_cursor_position",{label:this.label,value:f instanceof kn?f:new kn(f)})}async setIgnoreCursorEvents(f){return O("plugin:window|set_ignore_cursor_events",{label:this.label,value:f})}async startDragging(){return O("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(f){return O("plugin:window|start_resize_dragging",{label:this.label,value:f})}async setBadgeCount(f){return O("plugin:window|set_badge_count",{label:this.label,value:f})}async setBadgeLabel(f){return O("plugin:window|set_badge_label",{label:this.label,value:f})}async setOverlayIcon(f){return O("plugin:window|set_overlay_icon",{label:this.label,value:f?In(f):void 0})}async setProgressBar(f){return O("plugin:window|set_progress_bar",{label:this.label,value:f})}async setVisibleOnAllWorkspaces(f){return O("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:f})}async setTitleBarStyle(f){return O("plugin:window|set_title_bar_style",{label:this.label,value:f})}async setTheme(f){return O("plugin:window|set_theme",{label:this.label,value:f})}async onResized(f){return this.listen(ct.WINDOW_RESIZED,S=>{S.payload=new Mu(S.payload),f(S)})}async onMoved(f){return this.listen(ct.WINDOW_MOVED,S=>{S.payload=new Ta(S.payload),f(S)})}async onCloseRequested(f){return this.listen(ct.WINDOW_CLOSE_REQUESTED,async S=>{const o=new xm(S);await f(o),o.isPreventDefault()||await this.destroy()})}async onDragDropEvent(f){const S=await this.listen(ct.DRAG_ENTER,x=>{f({...x,payload:{type:"enter",paths:x.payload.paths,position:new Ta(x.payload.position)}})}),o=await this.listen(ct.DRAG_OVER,x=>{f({...x,payload:{type:"over",position:new Ta(x.payload.position)}})}),D=await this.listen(ct.DRAG_DROP,x=>{f({...x,payload:{type:"drop",paths:x.payload.paths,position:new Ta(x.payload.position)}})}),j=await this.listen(ct.DRAG_LEAVE,x=>{f({...x,payload:{type:"leave"}})});return()=>{S(),D(),o(),j()}}async onFocusChanged(f){const S=await this.listen(ct.WINDOW_FOCUS,D=>{f({...D,payload:!0})}),o=await this.listen(ct.WINDOW_BLUR,D=>{f({...D,payload:!1})});return()=>{S(),o()}}async onScaleChanged(f){return this.listen(ct.WINDOW_SCALE_FACTOR_CHANGED,f)}async onThemeChanged(f){return this.listen(ct.WINDOW_THEME_CHANGED,f)}}var Gr;(function(s){s.Disabled="disabled",s.Throttle="throttle",s.Suspend="suspend"})(Gr||(Gr={}));var Qr;(function(s){s.Default="default",s.FluentOverlay="fluentOverlay"})(Qr||(Qr={}));var Xr;(function(s){s.AppearanceBased="appearanceBased",s.Light="light",s.Dark="dark",s.MediumLight="mediumLight",s.UltraDark="ultraDark",s.Titlebar="titlebar",s.Selection="selection",s.Menu="menu",s.Popover="popover",s.Sidebar="sidebar",s.HeaderView="headerView",s.Sheet="sheet",s.WindowBackground="windowBackground",s.HudWindow="hudWindow",s.FullScreenUI="fullScreenUI",s.Tooltip="tooltip",s.ContentBackground="contentBackground",s.UnderWindowBackground="underWindowBackground",s.UnderPageBackground="underPageBackground",s.Mica="mica",s.Blur="blur",s.Acrylic="acrylic",s.Tabbed="tabbed",s.TabbedDark="tabbedDark",s.TabbedLight="tabbedLight"})(Xr||(Xr={}));var Lr;(function(s){s.FollowsWindowActiveState="followsWindowActiveState",s.Active="active",s.Inactive="inactive"})(Lr||(Lr={}));var Ef={exports:{}},Q={};var Zr;function wm(){if(Zr)return Q;Zr=1;var s=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),x=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),K=Symbol.iterator;function tl(h){return h===null||typeof h!="object"?null:(h=K&&h[K]||h["@@iterator"],typeof h=="function"?h:null)}var Dl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zl=Object.assign,pt={};function kl(h,T,N){this.props=h,this.context=T,this.refs=pt,this.updater=N||Dl}kl.prototype.isReactComponent={},kl.prototype.setState=function(h,T){if(typeof h!="object"&&typeof h!="function"&&h!=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,h,T,"setState")},kl.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function It(){}It.prototype=kl.prototype;function jl(h,T,N){this.props=h,this.context=T,this.refs=pt,this.updater=N||Dl}var st=jl.prototype=new It;st.constructor=jl,zl(st,kl.prototype),st.isPureReactComponent=!0;var Ot=Array.isArray;function Gl(){}var P={H:null,A:null,T:null,S:null},Ql=Object.prototype.hasOwnProperty;function Dt(h,T,N){var H=N.ref;return{$$typeof:s,type:h,key:T,ref:H!==void 0?H:null,props:N}}function Va(h,T){return Dt(h.type,T,h.props)}function Mt(h){return typeof h=="object"&&h!==null&&h.$$typeof===s}function Xl(h){var T={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(N){return T[N]})}var Aa=/\/+/g;function Ht(h,T){return typeof h=="object"&&h!==null&&h.key!=null?Xl(""+h.key):T.toString(36)}function zt(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(Gl,Gl):(h.status="pending",h.then(function(T){h.status==="pending"&&(h.status="fulfilled",h.value=T)},function(T){h.status==="pending"&&(h.status="rejected",h.reason=T)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function p(h,T,N,H,X){var J=typeof h;(J==="undefined"||J==="boolean")&&(h=null);var nl=!1;if(h===null)nl=!0;else switch(J){case"bigint":case"string":case"number":nl=!0;break;case"object":switch(h.$$typeof){case s:case f:nl=!0;break;case V:return nl=h._init,p(nl(h._payload),T,N,H,X)}}if(nl)return X=X(h),nl=H===""?"."+Ht(h,0):H,Ot(X)?(N="",nl!=null&&(N=nl.replace(Aa,"$&/")+"/"),p(X,T,N,"",function(He){return He})):X!=null&&(Mt(X)&&(X=Va(X,N+(X.key==null||h&&h.key===X.key?"":(""+X.key).replace(Aa,"$&/")+"/")+nl)),T.push(X)),1;nl=0;var xl=H===""?".":H+":";if(Ot(h))for(var Sl=0;Sl>>1,rl=p[fl];if(0>>1;flD(N,G))HD(X,N)?(p[fl]=X,p[H]=G,fl=H):(p[fl]=N,p[T]=G,fl=T);else if(HD(X,G))p[fl]=X,p[H]=G,fl=H;else break l}}return M}function D(p,M){var G=p.sortIndex-M.sortIndex;return G!==0?G:p.id-M.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var j=performance;s.unstable_now=function(){return j.now()}}else{var x=Date,k=x.now();s.unstable_now=function(){return x.now()-k}}var U=[],A=[],V=1,R=null,K=3,tl=!1,Dl=!1,zl=!1,pt=!1,kl=typeof setTimeout=="function"?setTimeout:null,It=typeof clearTimeout=="function"?clearTimeout:null,jl=typeof setImmediate<"u"?setImmediate:null;function st(p){for(var M=S(A);M!==null;){if(M.callback===null)o(A);else if(M.startTime<=p)o(A),M.sortIndex=M.expirationTime,f(U,M);else break;M=S(A)}}function Ot(p){if(zl=!1,st(p),!Dl)if(S(U)!==null)Dl=!0,Gl||(Gl=!0,Xl());else{var M=S(A);M!==null&&zt(Ot,M.startTime-p)}}var Gl=!1,P=-1,Ql=5,Dt=-1;function Va(){return pt?!0:!(s.unstable_now()-Dtp&&Va());){var fl=R.callback;if(typeof fl=="function"){R.callback=null,K=R.priorityLevel;var rl=fl(R.expirationTime<=p);if(p=s.unstable_now(),typeof rl=="function"){R.callback=rl,st(p),M=!0;break t}R===S(U)&&o(U),st(p)}else o(U);R=S(U)}if(R!==null)M=!0;else{var h=S(A);h!==null&&zt(Ot,h.startTime-p),M=!1}}break l}finally{R=null,K=G,tl=!1}M=void 0}}finally{M?Xl():Gl=!1}}}var Xl;if(typeof jl=="function")Xl=function(){jl(Mt)};else if(typeof MessageChannel<"u"){var Aa=new MessageChannel,Ht=Aa.port2;Aa.port1.onmessage=Mt,Xl=function(){Ht.postMessage(null)}}else Xl=function(){kl(Mt,0)};function zt(p,M){P=kl(function(){p(s.unstable_now())},M)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(p){p.callback=null},s.unstable_forceFrameRate=function(p){0>p||125fl?(p.sortIndex=G,f(A,p),S(U)===null&&p===S(A)&&(zl?(It(P),P=-1):zl=!0,zt(Ot,G-fl))):(p.sortIndex=rl,f(U,p),Dl||tl||(Dl=!0,Gl||(Gl=!0,Xl()))),p},s.unstable_shouldYield=Va,s.unstable_wrapCallback=function(p){var M=K;return function(){var G=K;K=M;try{return p.apply(this,arguments)}finally{K=G}}}})(Of)),Of}var Jr;function Qm(){return Jr||(Jr=1,Af.exports=Gm()),Af.exports}var Df={exports:{}},Yl={};var Wr;function Xm(){if(Wr)return Yl;Wr=1;var s=Hf();function f(U){var A="https://react.dev/errors/"+U;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}return s(),Df.exports=Xm(),Df.exports}var kr;function Zm(){if(kr)return Du;kr=1;var s=Qm(),f=Hf(),S=Lm();function o(l){var t="https://react.dev/errors/"+l;if(1rl||(l.current=fl[rl],fl[rl]=null,rl--)}function N(l,t){rl++,fl[rl]=l.current,l.current=t}var H=h(null),X=h(null),J=h(null),nl=h(null);function xl(l,t){switch(N(J,t),N(X,l),N(H,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?ir(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=ir(t),l=cr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}T(H),N(H,l)}function Sl(){T(H),T(X),T(J)}function He(l){l.memoizedState!==null&&N(nl,l);var t=H.current,a=cr(t,l.type);t!==a&&(N(X,l),N(H,a))}function Ru(l){X.current===l&&(T(H),T(X)),nl.current===l&&(T(nl),zu._currentValue=G)}var ti,qf;function Oa(l){if(ti===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ti=t&&t[1]||"",qf=-1)":-1u||d[e]!==v[u]){var _=` +`+d[e].replace(" at new "," at ");return l.displayName&&_.includes("")&&(_=_.replace("",l.displayName)),_}while(1<=e&&0<=u);break}}}finally{ai=!1,Error.prepareStackTrace=a}return(a=l?l.displayName||l.name:"")?Oa(a):""}function ih(l,t){switch(l.tag){case 26:case 27:case 5:return Oa(l.type);case 16:return Oa("Lazy");case 13:return l.child!==t&&t!==null?Oa("Suspense Fallback"):Oa("Suspense");case 19:return Oa("SuspenseList");case 0:case 15:return ei(l.type,!1);case 11:return ei(l.type.render,!1);case 1:return ei(l.type,!0);case 31:return Oa("Activity");default:return""}}function jf(l){try{var t="",a=null;do t+=ih(l,a),a=l,l=l.return;while(l);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var ui=Object.prototype.hasOwnProperty,ni=s.unstable_scheduleCallback,ii=s.unstable_cancelCallback,ch=s.unstable_shouldYield,fh=s.unstable_requestPaint,Fl=s.unstable_now,sh=s.unstable_getCurrentPriorityLevel,Yf=s.unstable_ImmediatePriority,xf=s.unstable_UserBlockingPriority,Cu=s.unstable_NormalPriority,oh=s.unstable_LowPriority,wf=s.unstable_IdlePriority,dh=s.log,rh=s.unstable_setDisableYieldValue,Be=null,Il=null;function Pt(l){if(typeof dh=="function"&&rh(l),Il&&typeof Il.setStrictMode=="function")try{Il.setStrictMode(Be,l)}catch{}}var Pl=Math.clz32?Math.clz32:mh,hh=Math.log,yh=Math.LN2;function mh(l){return l>>>=0,l===0?32:31-(hh(l)/yh|0)|0}var Hu=256,Bu=262144,qu=4194304;function Da(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function ju(l,t,a){var e=l.pendingLanes;if(e===0)return 0;var u=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=e&134217727;return c!==0?(e=c&~n,e!==0?u=Da(e):(i&=c,i!==0?u=Da(i):a||(a=c&~l,a!==0&&(u=Da(a))))):(c=e&~n,c!==0?u=Da(c):i!==0?u=Da(i):a||(a=e&~l,a!==0&&(u=Da(a)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:u}function qe(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function vh(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gf(){var l=qu;return qu<<=1,(qu&62914560)===0&&(qu=4194304),l}function ci(l){for(var t=[],a=0;31>a;a++)t.push(l);return t}function je(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function gh(l,t,a,e,u,n){var i=l.pendingLanes;l.pendingLanes=a,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=a,l.entangledLanes&=a,l.errorRecoveryDisabledLanes&=a,l.shellSuspendCounter=0;var c=l.entanglements,d=l.expirationTimes,v=l.hiddenUpdates;for(a=i&~a;0"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Eh=/[\n"\\]/g;function dt(l){return l.replace(Eh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hi(l,t,a,e,u,n,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+ot(t)):l.value!==""+ot(t)&&(l.value=""+ot(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?yi(l,i,ot(t)):a!=null?yi(l,i,ot(a)):e!=null&&l.removeAttribute("value"),u==null&&n!=null&&(l.defaultChecked=!!n),u!=null&&(l.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+ot(c):l.removeAttribute("name")}function Pf(l,t,a,e,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){ri(l);return}a=a!=null?""+ot(a):"",t=t!=null?""+ot(t):a,c||t===l.value||(l.value=t),l.defaultValue=t}e=e??u,e=typeof e!="function"&&typeof e!="symbol"&&!!e,l.checked=c?l.checked:!!e,l.defaultChecked=!!e,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),ri(l)}function yi(l,t,a){t==="number"&&wu(l.ownerDocument)===l||l.defaultValue===""+a||(l.defaultValue=""+a)}function Fa(l,t,a,e){if(l=l.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Si=!1;if(jt)try{var Ge={};Object.defineProperty(Ge,"passive",{get:function(){Si=!0}}),window.addEventListener("test",Ge,Ge),window.removeEventListener("test",Ge,Ge)}catch{Si=!1}var ta=null,_i=null,Qu=null;function is(){if(Qu)return Qu;var l,t=_i,a=t.length,e,u="value"in ta?ta.value:ta.textContent,n=u.length;for(l=0;l=Le),rs=" ",hs=!1;function ys(l,t){switch(l){case"keyup":return Fh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ms(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var te=!1;function Ph(l,t){switch(l){case"compositionend":return ms(t);case"keypress":return t.which!==32?null:(hs=!0,rs);case"textInput":return l=t.data,l===rs&&hs?null:l;default:return null}}function ly(l,t){if(te)return l==="compositionend"||!Ai&&ys(l,t)?(l=is(),Qu=_i=ta=null,te=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-l};l=e}l:{for(;a;){if(a.nextSibling){a=a.nextSibling;break l}a=a.parentNode}a=void 0}a=Es(a)}}function As(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?As(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function Os(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=wu(l.document);t instanceof l.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)l=t.contentWindow;else break;t=wu(l.document)}return t}function Mi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var fy=jt&&"documentMode"in document&&11>=document.documentMode,ae=null,Ni=null,Je=null,Ui=!1;function Ds(l,t,a){var e=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ui||ae==null||ae!==wu(e)||(e=ae,"selectionStart"in e&&Mi(e)?e={start:e.selectionStart,end:e.selectionEnd}:(e=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection(),e={anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}),Je&&Ke(Je,e)||(Je=e,e=qn(Ni,"onSelect"),0>=i,u-=i,Nt=1<<32-Pl(t)+u|a<Z?(I=B,B=null):I=B.sibling;var el=g(y,B,m[Z],z);if(el===null){B===null&&(B=I);break}l&&B&&el.alternate===null&&t(y,B),r=n(el,r,Z),al===null?Y=el:al.sibling=el,al=el,B=I}if(Z===m.length)return a(y,B),ll&&xt(y,Z),Y;if(B===null){for(;ZZ?(I=B,B=null):I=B.sibling;var Ea=g(y,B,el.value,z);if(Ea===null){B===null&&(B=I);break}l&&B&&Ea.alternate===null&&t(y,B),r=n(Ea,r,Z),al===null?Y=Ea:al.sibling=Ea,al=Ea,B=I}if(el.done)return a(y,B),ll&&xt(y,Z),Y;if(B===null){for(;!el.done;Z++,el=m.next())el=E(y,el.value,z),el!==null&&(r=n(el,r,Z),al===null?Y=el:al.sibling=el,al=el);return ll&&xt(y,Z),Y}for(B=e(B);!el.done;Z++,el=m.next())el=b(B,y,Z,el.value,z),el!==null&&(l&&el.alternate!==null&&B.delete(el.key===null?Z:el.key),r=n(el,r,Z),al===null?Y=el:al.sibling=el,al=el);return l&&B.forEach(function(Mm){return t(y,Mm)}),ll&&xt(y,Z),Y}function dl(y,r,m,z){if(typeof m=="object"&&m!==null&&m.type===zl&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case tl:l:{for(var Y=m.key;r!==null;){if(r.key===Y){if(Y=m.type,Y===zl){if(r.tag===7){a(y,r.sibling),z=u(r,m.props.children),z.return=y,y=z;break l}}else if(r.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Ql&&xa(Y)===r.type){a(y,r.sibling),z=u(r,m.props),Pe(z,m),z.return=y,y=z;break l}a(y,r);break}else t(y,r);r=r.sibling}m.type===zl?(z=Ha(m.props.children,y.mode,z,m.key),z.return=y,y=z):(z=Fu(m.type,m.key,m.props,null,y.mode,z),Pe(z,m),z.return=y,y=z)}return i(y);case Dl:l:{for(Y=m.key;r!==null;){if(r.key===Y)if(r.tag===4&&r.stateNode.containerInfo===m.containerInfo&&r.stateNode.implementation===m.implementation){a(y,r.sibling),z=u(r,m.children||[]),z.return=y,y=z;break l}else{a(y,r);break}else t(y,r);r=r.sibling}z=Yi(m,y.mode,z),z.return=y,y=z}return i(y);case Ql:return m=xa(m),dl(y,r,m,z)}if(zt(m))return C(y,r,m,z);if(Xl(m)){if(Y=Xl(m),typeof Y!="function")throw Error(o(150));return m=Y.call(m),w(y,r,m,z)}if(typeof m.then=="function")return dl(y,r,un(m),z);if(m.$$typeof===jl)return dl(y,r,ln(y,m),z);nn(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,r!==null&&r.tag===6?(a(y,r.sibling),z=u(r,m),z.return=y,y=z):(a(y,r),z=ji(m,y.mode,z),z.return=y,y=z),i(y)):a(y,r)}return function(y,r,m,z){try{Ie=0;var Y=dl(y,r,m,z);return he=null,Y}catch(B){if(B===re||B===an)throw B;var al=tt(29,B,null,y.mode);return al.lanes=z,al.return=y,al}}}var Ga=ks(!0),Fs=ks(!1),ia=!1;function $i(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ki(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ca(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function fa(l,t,a){var e=l.updateQueue;if(e===null)return null;if(e=e.shared,(ul&2)!==0){var u=e.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),e.pending=t,t=ku(l),Bs(l,null,a),t}return $u(l,e,t,a),ku(l)}function lu(l,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,Xf(l,a)}}function Fi(l,t){var a=l.updateQueue,e=l.alternate;if(e!==null&&(e=e.updateQueue,a===e)){var u=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?u=n=t:n=n.next=t}else u=n=t;a={baseState:e.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:e.shared,callbacks:e.callbacks},l.updateQueue=a;return}l=a.lastBaseUpdate,l===null?a.firstBaseUpdate=t:l.next=t,a.lastBaseUpdate=t}var Ii=!1;function tu(){if(Ii){var l=de;if(l!==null)throw l}}function au(l,t,a,e){Ii=!1;var u=l.updateQueue;ia=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var d=c,v=d.next;d.next=null,i===null?n=v:i.next=v,i=d;var _=l.alternate;_!==null&&(_=_.updateQueue,c=_.lastBaseUpdate,c!==i&&(c===null?_.firstBaseUpdate=v:c.next=v,_.lastBaseUpdate=d))}if(n!==null){var E=u.baseState;i=0,_=v=d=null,c=n;do{var g=c.lane&-536870913,b=g!==c.lane;if(b?(F&g)===g:(e&g)===g){g!==0&&g===oe&&(Ii=!0),_!==null&&(_=_.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var C=l,w=c;g=t;var dl=a;switch(w.tag){case 1:if(C=w.payload,typeof C=="function"){E=C.call(dl,E,g);break l}E=C;break l;case 3:C.flags=C.flags&-65537|128;case 0:if(C=w.payload,g=typeof C=="function"?C.call(dl,E,g):C,g==null)break l;E=R({},E,g);break l;case 2:ia=!0}}g=c.callback,g!==null&&(l.flags|=64,b&&(l.flags|=8192),b=u.callbacks,b===null?u.callbacks=[g]:b.push(g))}else b={lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},_===null?(v=_=b,d=E):_=_.next=b,i|=g;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;b=c,c=b.next,b.next=null,u.lastBaseUpdate=b,u.shared.pending=null}}while(!0);_===null&&(d=E),u.baseState=d,u.firstBaseUpdate=v,u.lastBaseUpdate=_,n===null&&(u.shared.lanes=0),ha|=i,l.lanes=i,l.memoizedState=E}}function Is(l,t){if(typeof l!="function")throw Error(o(191,l));l.call(t)}function Ps(l,t){var a=l.callbacks;if(a!==null)for(l.callbacks=null,l=0;ln?n:8;var i=p.T,c={};p.T=c,gc(l,!1,t,a);try{var d=u(),v=p.S;if(v!==null&&v(c,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var _=gy(d,e);nu(l,t,_,it(l))}else nu(l,t,e,it(l))}catch(E){nu(l,t,{then:function(){},status:"rejected",reason:E},it())}finally{M.p=n,i!==null&&c.types!==null&&(i.types=c.types),p.T=i}}function Ey(){}function mc(l,t,a,e){if(l.tag!==5)throw Error(o(476));var u=Co(l).queue;Ro(l,u,t,G,a===null?Ey:function(){return Ho(l),a(e)})}function Co(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:G},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:a},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Ho(l){var t=Co(l);t.next===null&&(t=l.alternate.memoizedState),nu(l,t.next.queue,{},it())}function vc(){return Hl(zu)}function Bo(){return pl().memoizedState}function qo(){return pl().memoizedState}function Ty(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var a=it();l=ca(a);var e=fa(t,l,a);e!==null&&($l(e,t,a),lu(e,t,a)),t={cache:Vi()},l.payload=t;return}t=t.return}}function Ay(l,t,a){var e=it();a={lane:e,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vn(l)?Yo(t,a):(a=Bi(l,t,a,e),a!==null&&($l(a,l,e),xo(a,t,e)))}function jo(l,t,a){var e=it();nu(l,t,a,e)}function nu(l,t,a,e){var u={lane:e,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(vn(l))Yo(t,u);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,a);if(u.hasEagerState=!0,u.eagerState=c,lt(c,i))return $u(l,t,u,0),hl===null&&Wu(),!1}catch{}if(a=Bi(l,t,u,e),a!==null)return $l(a,l,e),xo(a,t,e),!0}return!1}function gc(l,t,a,e){if(e={lane:2,revertLane:$c(),gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},vn(l)){if(t)throw Error(o(479))}else t=Bi(l,a,e,2),t!==null&&$l(t,l,2)}function vn(l){var t=l.alternate;return l===L||t!==null&&t===L}function Yo(l,t){me=sn=!0;var a=l.pending;a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t}function xo(l,t,a){if((a&4194048)!==0){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,Xf(l,a)}}var iu={readContext:Hl,use:rn,useCallback:gl,useContext:gl,useEffect:gl,useImperativeHandle:gl,useLayoutEffect:gl,useInsertionEffect:gl,useMemo:gl,useReducer:gl,useRef:gl,useState:gl,useDebugValue:gl,useDeferredValue:gl,useTransition:gl,useSyncExternalStore:gl,useId:gl,useHostTransitionStatus:gl,useFormState:gl,useActionState:gl,useOptimistic:gl,useMemoCache:gl,useCacheRefresh:gl};iu.useEffectEvent=gl;var wo={readContext:Hl,use:rn,useCallback:function(l,t){return wl().memoizedState=[l,t===void 0?null:t],l},useContext:Hl,useEffect:zo,useImperativeHandle:function(l,t,a){a=a!=null?a.concat([l]):null,yn(4194308,4,Oo.bind(null,t,l),a)},useLayoutEffect:function(l,t){return yn(4194308,4,l,t)},useInsertionEffect:function(l,t){yn(4,2,l,t)},useMemo:function(l,t){var a=wl();t=t===void 0?null:t;var e=l();if(Qa){Pt(!0);try{l()}finally{Pt(!1)}}return a.memoizedState=[e,t],e},useReducer:function(l,t,a){var e=wl();if(a!==void 0){var u=a(t);if(Qa){Pt(!0);try{a(t)}finally{Pt(!1)}}}else u=t;return e.memoizedState=e.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},e.queue=l,l=l.dispatch=Ay.bind(null,L,l),[e.memoizedState,l]},useRef:function(l){var t=wl();return l={current:l},t.memoizedState=l},useState:function(l){l=oc(l);var t=l.queue,a=jo.bind(null,L,t);return t.dispatch=a,[l.memoizedState,a]},useDebugValue:hc,useDeferredValue:function(l,t){var a=wl();return yc(a,l,t)},useTransition:function(){var l=oc(!1);return l=Ro.bind(null,L,l.queue,!0,!1),wl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,a){var e=L,u=wl();if(ll){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),hl===null)throw Error(o(349));(F&127)!==0||no(e,t,a)}u.memoizedState=a;var n={value:a,getSnapshot:t};return u.queue=n,zo(co.bind(null,e,n,l),[l]),e.flags|=2048,ge(9,{destroy:void 0},io.bind(null,e,n,a,t),null),a},useId:function(){var l=wl(),t=hl.identifierPrefix;if(ll){var a=Ut,e=Nt;a=(e&~(1<<32-Pl(e)-1)).toString(32)+a,t="_"+t+"R_"+a,a=on++,0<\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof e.is=="string"?i.createElement("select",{is:e.is}):i.createElement("select"),e.multiple?n.multiple=!0:e.size&&(n.size=e.size);break;default:n=typeof e.is=="string"?i.createElement(u,{is:e.is}):i.createElement(u)}}n[Rl]=t,n[Ll]=e;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;l:switch(ql(n,u,e),u){case"button":case"input":case"select":case"textarea":e=!!e.autoFocus;break l;case"img":e=!0;break l;default:e=!1}e&&Zt(t)}}return ml(t),Rc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,a),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==e&&Zt(t);else{if(typeof e!="string"&&t.stateNode===null)throw Error(o(166));if(l=J.current,fe(t)){if(l=t.stateNode,a=t.memoizedProps,e=null,u=Cl,u!==null)switch(u.tag){case 27:case 5:e=u.memoizedProps}l[Rl]=t,l=!!(l.nodeValue===a||e!==null&&e.suppressHydrationWarning===!0||ur(l.nodeValue,a)),l||ua(t,!0)}else l=jn(l).createTextNode(e),l[Rl]=t,t.stateNode=l}return ml(t),null;case 31:if(a=t.memoizedState,l===null||l.memoizedState!==null){if(e=fe(t),a!==null){if(l===null){if(!e)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(557));l[Rl]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ml(t),l=!1}else a=Qi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=a),l=!0;if(!l)return t.flags&256?(et(t),t):(et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ml(t),null;case 13:if(e=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(u=fe(t),e!==null&&e.dehydrated!==null){if(l===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Rl]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ml(t),u=!1}else u=Qi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(et(t),t):(et(t),null)}return et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=e!==null,l=l!==null&&l.memoizedState!==null,a&&(e=t.child,u=null,e.alternate!==null&&e.alternate.memoizedState!==null&&e.alternate.memoizedState.cachePool!==null&&(u=e.alternate.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==u&&(e.flags|=2048)),a!==l&&a&&(t.child.flags|=8192),pn(t,t.updateQueue),ml(t),null);case 4:return Sl(),l===null&&Pc(t.stateNode.containerInfo),ml(t),null;case 10:return Gt(t.type),ml(t),null;case 19:if(T(_l),e=t.memoizedState,e===null)return ml(t),null;if(u=(t.flags&128)!==0,n=e.rendering,n===null)if(u)fu(e,!1);else{if(bl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=fn(l),n!==null){for(t.flags|=128,fu(e,!1),l=n.updateQueue,t.updateQueue=l,pn(t,l),t.subtreeFlags=0,l=a,a=t.child;a!==null;)qs(a,l),a=a.sibling;return N(_l,_l.current&1|2),ll&&xt(t,e.treeForkCount),t.child}l=l.sibling}e.tail!==null&&Fl()>On&&(t.flags|=128,u=!0,fu(e,!1),t.lanes=4194304)}else{if(!u)if(l=fn(n),l!==null){if(t.flags|=128,u=!0,l=l.updateQueue,t.updateQueue=l,pn(t,l),fu(e,!0),e.tail===null&&e.tailMode==="hidden"&&!n.alternate&&!ll)return ml(t),null}else 2*Fl()-e.renderingStartTime>On&&a!==536870912&&(t.flags|=128,u=!0,fu(e,!1),t.lanes=4194304);e.isBackwards?(n.sibling=t.child,t.child=n):(l=e.last,l!==null?l.sibling=n:t.child=n,e.last=n)}return e.tail!==null?(l=e.tail,e.rendering=l,e.tail=l.sibling,e.renderingStartTime=Fl(),l.sibling=null,a=_l.current,N(_l,u?a&1|2:a&1),ll&&xt(t,e.treeForkCount),l):(ml(t),null);case 22:case 23:return et(t),lc(),e=t.memoizedState!==null,l!==null?l.memoizedState!==null!==e&&(t.flags|=8192):e&&(t.flags|=8192),e?(a&536870912)!==0&&(t.flags&128)===0&&(ml(t),t.subtreeFlags&6&&(t.flags|=8192)):ml(t),a=t.updateQueue,a!==null&&pn(t,a.retryQueue),a=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(t.flags|=2048),l!==null&&T(Ya),null;case 24:return a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Gt(El),ml(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Uy(l,t){switch(wi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Gt(El),Sl(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Ru(t),null;case 31:if(t.memoizedState!==null){if(et(t),t.alternate===null)throw Error(o(340));Ba()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(et(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ba()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return T(_l),null;case 4:return Sl(),null;case 10:return Gt(t.type),null;case 22:case 23:return et(t),lc(),l!==null&&T(Ya),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Gt(El),null;case 25:return null;default:return null}}function sd(l,t){switch(wi(t),t.tag){case 3:Gt(El),Sl();break;case 26:case 27:case 5:Ru(t);break;case 4:Sl();break;case 31:t.memoizedState!==null&&et(t);break;case 13:et(t);break;case 19:T(_l);break;case 10:Gt(t.type);break;case 22:case 23:et(t),lc(),l!==null&&T(Ya);break;case 24:Gt(El)}}function su(l,t){try{var a=t.updateQueue,e=a!==null?a.lastEffect:null;if(e!==null){var u=e.next;a=u;do{if((a.tag&l)===l){e=void 0;var n=a.create,i=a.inst;e=n(),i.destroy=e}a=a.next}while(a!==u)}}catch(c){cl(t,t.return,c)}}function da(l,t,a){try{var e=t.updateQueue,u=e!==null?e.lastEffect:null;if(u!==null){var n=u.next;e=n;do{if((e.tag&l)===l){var i=e.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=t;var d=a,v=c;try{v()}catch(_){cl(u,d,_)}}}e=e.next}while(e!==n)}}catch(_){cl(t,t.return,_)}}function od(l){var t=l.updateQueue;if(t!==null){var a=l.stateNode;try{Ps(t,a)}catch(e){cl(l,l.return,e)}}}function dd(l,t,a){a.props=Xa(l.type,l.memoizedProps),a.state=l.memoizedState;try{a.componentWillUnmount()}catch(e){cl(l,t,e)}}function ou(l,t){try{var a=l.ref;if(a!==null){switch(l.tag){case 26:case 27:case 5:var e=l.stateNode;break;case 30:e=l.stateNode;break;default:e=l.stateNode}typeof a=="function"?l.refCleanup=a(e):a.current=e}}catch(u){cl(l,t,u)}}function Rt(l,t){var a=l.ref,e=l.refCleanup;if(a!==null)if(typeof e=="function")try{e()}catch(u){cl(l,t,u)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){cl(l,t,u)}else a.current=null}function rd(l){var t=l.type,a=l.memoizedProps,e=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break l;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}catch(u){cl(l,l.return,u)}}function Cc(l,t,a){try{var e=l.stateNode;Iy(e,l.type,a,t),e[Ll]=t}catch(u){cl(l,l.return,u)}}function hd(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&ba(l.type)||l.tag===4}function Hc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||hd(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&ba(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Bc(l,t,a){var e=l.tag;if(e===5||e===6)l=l.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(l,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(l),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=qt));else if(e!==4&&(e===27&&ba(l.type)&&(a=l.stateNode,t=null),l=l.child,l!==null))for(Bc(l,t,a),l=l.sibling;l!==null;)Bc(l,t,a),l=l.sibling}function zn(l,t,a){var e=l.tag;if(e===5||e===6)l=l.stateNode,t?a.insertBefore(l,t):a.appendChild(l);else if(e!==4&&(e===27&&ba(l.type)&&(a=l.stateNode),l=l.child,l!==null))for(zn(l,t,a),l=l.sibling;l!==null;)zn(l,t,a),l=l.sibling}function yd(l){var t=l.stateNode,a=l.memoizedProps;try{for(var e=l.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ql(t,e,a),t[Rl]=l,t[Ll]=a}catch(n){cl(l,l.return,n)}}var Vt=!1,Ol=!1,qc=!1,md=typeof WeakSet=="function"?WeakSet:Set,Ul=null;function Ry(l,t){if(l=l.containerInfo,af=Ln,l=Os(l),Mi(l)){if("selectionStart"in l)var a={start:l.selectionStart,end:l.selectionEnd};else l:{a=(a=l.ownerDocument)&&a.defaultView||window;var e=a.getSelection&&a.getSelection();if(e&&e.rangeCount!==0){a=e.anchorNode;var u=e.anchorOffset,n=e.focusNode;e=e.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break l}var i=0,c=-1,d=-1,v=0,_=0,E=l,g=null;t:for(;;){for(var b;E!==a||u!==0&&E.nodeType!==3||(c=i+u),E!==n||e!==0&&E.nodeType!==3||(d=i+e),E.nodeType===3&&(i+=E.nodeValue.length),(b=E.firstChild)!==null;)g=E,E=b;for(;;){if(E===l)break t;if(g===a&&++v===u&&(c=i),g===n&&++_===e&&(d=i),(b=E.nextSibling)!==null)break;E=g,g=E.parentNode}E=b}a=c===-1||d===-1?null:{start:c,end:d}}else a=null}a=a||{start:0,end:0}}else a=null;for(ef={focusedElem:l,selectionRange:a},Ln=!1,Ul=t;Ul!==null;)if(t=Ul,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Ul=l;else for(;Ul!==null;){switch(t=Ul,n=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(a=0;a title"))),ql(n,e,a),n[Rl]=l,Nl(n),e=n;break l;case"link":var i=pr("link","href",u).get(e+(a.href||""));if(i){for(var c=0;cdl&&(i=dl,dl=w,w=i);var y=Ts(c,w),r=Ts(c,dl);if(y&&r&&(b.rangeCount!==1||b.anchorNode!==y.node||b.anchorOffset!==y.offset||b.focusNode!==r.node||b.focusOffset!==r.offset)){var m=E.createRange();m.setStart(y.node,y.offset),b.removeAllRanges(),w>dl?(b.addRange(m),b.extend(r.node,r.offset)):(m.setEnd(r.node,r.offset),b.addRange(m))}}}}for(E=[],b=c;b=b.parentNode;)b.nodeType===1&&E.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;ca?32:a,p.T=null,a=Xc,Xc=null;var n=ma,i=kt;if(Ml=0,ze=ma=null,kt=0,(ul&6)!==0)throw Error(o(331));var c=ul;if(ul|=4,Od(n.current),Ed(n,n.current,i,a),ul=c,vu(0,!1),Il&&typeof Il.onPostCommitFiberRoot=="function")try{Il.onPostCommitFiberRoot(Be,n)}catch{}return!0}finally{M.p=u,p.T=e,Zd(l,t)}}function Kd(l,t,a){t=ht(a,t),t=pc(l.stateNode,t,2),l=fa(l,t,2),l!==null&&(je(l,2),Ct(l))}function cl(l,t,a){if(l.tag===3)Kd(l,l,a);else for(;t!==null;){if(t.tag===3){Kd(t,l,a);break}else if(t.tag===1){var e=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof e.componentDidCatch=="function"&&(ya===null||!ya.has(e))){l=ht(a,l),a=Jo(2),e=fa(t,a,2),e!==null&&(Wo(a,e,t,l),je(e,2),Ct(e));break}}t=t.return}}function Kc(l,t,a){var e=l.pingCache;if(e===null){e=l.pingCache=new By;var u=new Set;e.set(t,u)}else u=e.get(t),u===void 0&&(u=new Set,e.set(t,u));u.has(a)||(xc=!0,u.add(a),l=wy.bind(null,l,t,a),t.then(l,l))}function wy(l,t,a){var e=l.pingCache;e!==null&&e.delete(t),l.pingedLanes|=l.suspendedLanes&a,l.warmLanes&=~a,hl===l&&(F&a)===a&&(bl===4||bl===3&&(F&62914560)===F&&300>Fl()-An?(ul&2)===0&&Ee(l,0):wc|=a,pe===F&&(pe=0)),Ct(l)}function Jd(l,t){t===0&&(t=Gf()),l=Ca(l,t),l!==null&&(je(l,t),Ct(l))}function Gy(l){var t=l.memoizedState,a=0;t!==null&&(a=t.retryLane),Jd(l,a)}function Qy(l,t){var a=0;switch(l.tag){case 31:case 13:var e=l.stateNode,u=l.memoizedState;u!==null&&(a=u.retryLane);break;case 19:e=l.stateNode;break;case 22:e=l.stateNode._retryCache;break;default:throw Error(o(314))}e!==null&&e.delete(t),Jd(l,a)}function Xy(l,t){return ni(l,t)}var Cn=null,Ae=null,Jc=!1,Hn=!1,Wc=!1,ga=0;function Ct(l){l!==Ae&&l.next===null&&(Ae===null?Cn=Ae=l:Ae=Ae.next=l),Hn=!0,Jc||(Jc=!0,Zy())}function vu(l,t){if(!Wc&&Hn){Wc=!0;do for(var a=!1,e=Cn;e!==null;){if(l!==0){var u=e.pendingLanes;if(u===0)var n=0;else{var i=e.suspendedLanes,c=e.pingedLanes;n=(1<<31-Pl(42|l)+1)-1,n&=u&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,Fd(e,n))}else n=F,n=ju(e,e===hl?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),(n&3)===0||qe(e,n)||(a=!0,Fd(e,n));e=e.next}while(a);Wc=!1}}function Ly(){Wd()}function Wd(){Hn=Jc=!1;var l=0;ga!==0&&lm()&&(l=ga);for(var t=Fl(),a=null,e=Cn;e!==null;){var u=e.next,n=$d(e,t);n===0?(e.next=null,a===null?Cn=u:a.next=u,u===null&&(Ae=a)):(a=e,(l!==0||(n&3)!==0)&&(Hn=!0)),e=u}Ml!==0&&Ml!==5||vu(l),ga!==0&&(ga=0)}function $d(l,t){for(var a=l.suspendedLanes,e=l.pingedLanes,u=l.expirationTimes,n=l.pendingLanes&-62914561;0c)break;var _=d.transferSize,E=d.initiatorType;_&&nr(E)&&(d=d.responseEnd,i+=_*(d"u"?null:document;function gr(l,t,a){var e=Oe;if(e&&typeof t=="string"&&t){var u=dt(t);u='link[rel="'+l+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),vr.has(u)||(vr.add(u),l={rel:l,crossOrigin:a,href:t},e.querySelector(u)===null&&(t=e.createElement("link"),ql(t,"link",l),Nl(t),e.head.appendChild(t)))}}function sm(l){Ft.D(l),gr("dns-prefetch",l,null)}function om(l,t){Ft.C(l,t),gr("preconnect",l,t)}function dm(l,t,a){Ft.L(l,t,a);var e=Oe;if(e&&l&&t){var u='link[rel="preload"][as="'+dt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+dt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+dt(a.imageSizes)+'"]')):u+='[href="'+dt(l)+'"]';var n=u;switch(t){case"style":n=De(l);break;case"script":n=Me(l)}St.has(n)||(l=R({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:l,as:t},a),St.set(n,l),e.querySelector(u)!==null||t==="style"&&e.querySelector(_u(n))||t==="script"&&e.querySelector(pu(n))||(t=e.createElement("link"),ql(t,"link",l),Nl(t),e.head.appendChild(t)))}}function rm(l,t){Ft.m(l,t);var a=Oe;if(a&&l){var e=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+dt(e)+'"][href="'+dt(l)+'"]',n=u;switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Me(l)}if(!St.has(n)&&(l=R({rel:"modulepreload",href:l},t),St.set(n,l),a.querySelector(u)===null)){switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(pu(n)))return}e=a.createElement("link"),ql(e,"link",l),Nl(e),a.head.appendChild(e)}}}function hm(l,t,a){Ft.S(l,t,a);var e=Oe;if(e&&l){var u=$a(e).hoistableStyles,n=De(l);t=t||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(_u(n)))c.loading=5;else{l=R({rel:"stylesheet",href:l,"data-precedence":t},a),(a=St.get(n))&&df(l,a);var d=i=e.createElement("link");Nl(d),ql(d,"link",l),d._p=new Promise(function(v,_){d.onload=v,d.onerror=_}),d.addEventListener("load",function(){c.loading|=1}),d.addEventListener("error",function(){c.loading|=2}),c.loading|=4,xn(i,t,e)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function ym(l,t){Ft.X(l,t);var a=Oe;if(a&&l){var e=$a(a).hoistableScripts,u=Me(l),n=e.get(u);n||(n=a.querySelector(pu(u)),n||(l=R({src:l,async:!0},t),(t=St.get(u))&&rf(l,t),n=a.createElement("script"),Nl(n),ql(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function mm(l,t){Ft.M(l,t);var a=Oe;if(a&&l){var e=$a(a).hoistableScripts,u=Me(l),n=e.get(u);n||(n=a.querySelector(pu(u)),n||(l=R({src:l,async:!0,type:"module"},t),(t=St.get(u))&&rf(l,t),n=a.createElement("script"),Nl(n),ql(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function br(l,t,a,e){var u=(u=J.current)?Yn(u):null;if(!u)throw Error(o(446));switch(l){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=De(a.href),a=$a(u).hoistableStyles,e=a.get(t),e||(e={type:"style",instance:null,count:0,state:null},a.set(t,e)),e):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){l=De(a.href);var n=$a(u).hoistableStyles,i=n.get(l);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=u.querySelector(_u(l)))&&!n._p&&(i.instance=n,i.state.loading=5),St.has(l)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},St.set(l,a),n||vm(u,l,a,i.state))),t&&e===null)throw Error(o(528,""));return i}if(t&&e!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Me(a),a=$a(u).hoistableScripts,e=a.get(t),e||(e={type:"script",instance:null,count:0,state:null},a.set(t,e)),e):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,l))}}function De(l){return'href="'+dt(l)+'"'}function _u(l){return'link[rel="stylesheet"]['+l+"]"}function Sr(l){return R({},l,{"data-precedence":l.precedence,precedence:null})}function vm(l,t,a,e){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?e.loading=1:(t=l.createElement("link"),e.preload=t,t.addEventListener("load",function(){return e.loading|=1}),t.addEventListener("error",function(){return e.loading|=2}),ql(t,"link",a),Nl(t),l.head.appendChild(t))}function Me(l){return'[src="'+dt(l)+'"]'}function pu(l){return"script[async]"+l}function _r(l,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var e=l.querySelector('style[data-href~="'+dt(a.href)+'"]');if(e)return t.instance=e,Nl(e),e;var u=R({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return e=(l.ownerDocument||l).createElement("style"),Nl(e),ql(e,"style",u),xn(e,a.precedence,l),t.instance=e;case"stylesheet":u=De(a.href);var n=l.querySelector(_u(u));if(n)return t.state.loading|=4,t.instance=n,Nl(n),n;e=Sr(a),(u=St.get(u))&&df(e,u),n=(l.ownerDocument||l).createElement("link"),Nl(n);var i=n;return i._p=new Promise(function(c,d){i.onload=c,i.onerror=d}),ql(n,"link",e),t.state.loading|=4,xn(n,a.precedence,l),t.instance=n;case"script":return n=Me(a.src),(u=l.querySelector(pu(n)))?(t.instance=u,Nl(u),u):(e=a,(u=St.get(n))&&(e=R({},a),rf(e,u)),l=l.ownerDocument||l,u=l.createElement("script"),Nl(u),ql(u,"link",e),l.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(e=t.instance,t.state.loading|=4,xn(e,a.precedence,l));return t.instance}function xn(l,t,a){for(var e=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=e.length?e[e.length-1]:null,n=u,i=0;i title"):null)}function gm(l,t,a){if(a===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(l=t.disabled,typeof t.precedence=="string"&&l==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Er(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function bm(l,t,a,e){if(a.type==="stylesheet"&&(typeof e.media!="string"||matchMedia(e.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=De(e.href),n=t.querySelector(_u(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Gn.bind(l),t.then(l,l)),a.state.loading|=4,a.instance=n,Nl(n);return}n=t.ownerDocument||t,e=Sr(e),(u=St.get(u))&&df(e,u),n=n.createElement("link"),Nl(n);var i=n;i._p=new Promise(function(c,d){i.onload=c,i.onerror=d}),ql(n,"link",e),a.instance=n}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=Gn.bind(l),t.addEventListener("load",a),t.addEventListener("error",a))}}var hf=0;function Sm(l,t){return l.stylesheets&&l.count===0&&Xn(l,l.stylesheets),0hf?50:800)+t);return l.unsuspend=a,function(){l.unsuspend=null,clearTimeout(e),clearTimeout(u)}}:null}function Gn(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xn(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Qn=null;function Xn(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Qn=new Map,t.forEach(_m,l),Qn=null,Gn.call(l))}function _m(l,t){if(!(t.state.loading&4)){var a=Qn.get(l);if(a)var e=a.get(null);else{a=new Map,Qn.set(l,a);for(var u=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}return s(),Tf.exports=Zm(),Tf.exports}var Km=Vm();function Jm(){return{currentState(){return O("current_state")},setPin(s){return O("set_pin",{pin:s})},acceptStay(){return O("accept_stay")},dismissCandidate(){return O("dismiss_candidate")},stopGuarding(){return O("stop_guarding")},submitPin(s){return O("submit_pin",{pin:s})},async subscribe(s){const f=await Rf("stay-state-changed",S=>{s(S.payload.view)});return()=>{f()}}}}function Mf(s){return s instanceof Error?s.message:typeof s=="string"?s:"Stay could not complete that action."}function ah(s){return{zoom:"Zoom",google_meet:"Google Meet",microsoft_teams:"Microsoft Teams",facetime:"FaceTime",webex:"Webex",slack_huddle:"Slack huddle"}[s]}function Bf(s){return s.title||s.app_name}function Wm({meeting:s,error:f,onStop:S}){return q.jsxs("section",{className:"mode-panel mode-panel-active",children:[q.jsx("p",{className:"kicker",children:"Stay is on"}),q.jsx("h2",{children:Bf(s.window)||`${ah(s.app)} is protected.`}),q.jsx("p",{className:"muted",children:"Keep the hour you agreed to."}),q.jsx("div",{className:"action-row",children:q.jsx("button",{type:"button",className:"ghost strong-ghost",onClick:S,children:"Stop"})}),q.jsx("p",{className:"error-line",role:"status",children:f})]})}const Uu=4;function $m(s){return s.replace(/\D/g,"").slice(0,Uu)}function Pn(s){return s.length===Uu}function eh({id:s,label:f,ariaLabel:S,value:o,error:D,errorId:j,onChange:x}){const k=ft.useId(),U=ft.useRef(null),A=s??k,V=Array.from({length:Uu},(Dl,zl)=>o[zl]??""),R=Math.min(o.length,Uu-1);function K(Dl){x($m(Dl.currentTarget.value))}function tl(){U.current?.focus()}return q.jsxs("div",{className:"pin-code-field",children:[f?q.jsx("label",{htmlFor:A,children:f}):null,q.jsxs("div",{className:"pin-code-input","data-invalid":!!D,onClick:tl,children:[q.jsx("input",{ref:U,id:A,className:"pin-code-control","aria-label":S,inputMode:"numeric",maxLength:Uu,pattern:"[0-9]{4}",autoComplete:"off",value:o,"aria-invalid":!!D,"aria-describedby":D?j:void 0,onChange:K}),q.jsx("div",{className:"pin-code-slots","aria-hidden":"true",children:V.map((Dl,zl)=>{const pt=["pin-code-slot",Dl?"pin-code-slot-filled":null,zl===R?"pin-code-slot-active":null].filter(Boolean).join(" ");return q.jsx("span",{className:pt},zl)})})]})]})}function km({view:s,error:f,onSubmit:S}){const[o,D]=ft.useState(""),j=f||s.last_error;async function x(k){if(k.preventDefault(),!Pn(o))return;await S(o)&&D("")}return q.jsxs("section",{className:"mode-panel mode-panel-active",children:[q.jsx("p",{className:"kicker",children:"Stay with the call"}),q.jsx("h2",{children:"Enter your PIN."}),q.jsxs("p",{className:"muted",children:[s.focused.app_name,s.focused.title?`: ${Bf(s.focused)}`:""]}),q.jsx("form",{className:"unlock-form",noValidate:!0,onSubmit:x,children:q.jsxs("div",{className:"control-row pin-entry-row",children:[q.jsx(eh,{ariaLabel:"Unlock PIN",value:o,error:j,errorId:"unlock-error",onChange:D}),q.jsx("button",{type:"submit",disabled:!Pn(o),children:"Open"})]})}),q.jsx("p",{id:"unlock-error",className:"error-line",role:"status",children:j})]})}function Fm({candidate:s,canAccept:f,error:S,onAccept:o,onDismiss:D}){return q.jsxs("section",{className:"mode-panel mode-panel-active",children:[q.jsx("p",{className:"kicker",children:ah(s.app)}),q.jsx("h2",{children:"Stay with this meeting?"}),q.jsx("p",{className:"muted",children:Bf(s.window)||s.reason}),q.jsxs("div",{className:"action-row",children:[q.jsx("button",{type:"button",disabled:!f,onClick:o,children:"Stay"}),q.jsx("button",{type:"button",className:"ghost",onClick:D,children:"Not now"})]}),q.jsx("p",{className:"error-line",role:"status",children:S})]})}function Im({error:s,onSave:f}){const[S,o]=ft.useState("");async function D(j){if(j.preventDefault(),!Pn(S))return;await f(S)&&o("")}return q.jsxs("form",{className:"pin-setup mode-panel",noValidate:!0,onSubmit:D,children:[q.jsxs("div",{className:"control-row pin-entry-row",children:[q.jsx(eh,{id:"setup-pin",label:"Set a four digit PIN",value:S,error:s,errorId:"setup-error",onChange:o}),q.jsx("button",{type:"submit",disabled:!Pn(S),children:"Keep"})]}),q.jsx("p",{id:"setup-error",className:"error-line",role:"status",children:s})]})}function Pm({mode:s,children:f,status:S}){const o=s==="guarding",[D,j]=ft.useState(!1),x=ft.useRef(void 0);ft.useEffect(()=>(o||j(!1),()=>{Nf(x.current)}),[o]);function k(){Nf(x.current),x.current=void 0,A(!0)}function U(){Nf(x.current),x.current=window.setTimeout(()=>{x.current=void 0,A(!1)},180)}function A(K){j(K),li()&&O("set_guarding_panel_expanded",{expanded:K}).catch(()=>{})}function V(K){K.currentTarget.contains(K.relatedTarget)||U()}const R=["stay-shell",`stay-shell-${s}`,o?D?"stay-shell-revealed":"stay-shell-collapsed":null].filter(Boolean).join(" ");return q.jsxs("main",{className:R,"aria-live":"polite",tabIndex:o?0:void 0,onMouseEnter:o?k:void 0,onMouseLeave:o?U:void 0,onFocusCapture:o?k:void 0,onBlurCapture:o?V:void 0,children:[q.jsxs("header",{className:"brand-strip","data-tauri-drag-region":!0,children:[q.jsxs("div",{className:"brand-label","data-tauri-drag-region":!0,children:[q.jsx("p",{className:"eyebrow","data-tauri-drag-region":!0,children:"Stay"}),q.jsx("h1",{"data-tauri-drag-region":!0,children:"Stay focused."})]}),q.jsxs("div",{className:"brand-controls",children:[S?q.jsx("span",{className:"status-pill",children:S}):null,q.jsx("button",{type:"button",className:"window-close","aria-label":"Hide Stay window",onClick:l0,children:q.jsx("svg",{viewBox:"0 0 12 12",width:"11",height:"11","aria-hidden":"true",children:q.jsx("path",{d:"M2 2L10 10M10 2L2 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})]}),f]})}function l0(){li()&&Cf().hide().catch(()=>{})}function Nf(s){s!==void 0&&window.clearTimeout(s)}const t0={mode:"idle",pin_configured:!1};function a0({client:s}){const[f,S]=ft.useState(t0),[o,D]=ft.useState(!0),[j,x]=ft.useState(null);ft.useEffect(()=>{let R=!0,K;return s.currentState().then(tl=>{R&&S(tl)}).catch(tl=>{R&&x({target:"mode",message:Mf(tl)})}).finally(()=>{R&&D(!1)}),s.subscribe(tl=>{S(tl),x(null)}).then(tl=>{R?K=tl:tl()}).catch(tl=>{R&&x({target:"mode",message:Mf(tl)})}),()=>{R=!1,K?.()}},[s]);const k=ft.useMemo(()=>e0(f,o),[o,f]);async function U(R,K="mode"){x(null);try{const tl=await R();return S(tl.view),tl.view.mode!=="locked"||tl.view.last_error===null}catch(tl){return x({target:K,message:Mf(tl)}),!1}}const A=j?.target==="setup"?j.message:null,V=j?.target==="mode"?j.message:null;return q.jsxs(Pm,{mode:f.mode,status:k,children:[o?q.jsxs("section",{className:"mode-panel quiet-state",children:[q.jsx("p",{className:"kicker",children:"Opening"}),q.jsx("h2",{children:"Stay is opening."})]}):null,!o&&!f.pin_configured?q.jsx(Im,{error:A,onSave:R=>U(()=>s.setPin(R),"setup")}):null,!o&&f.mode==="idle"&&f.pin_configured?q.jsxs("section",{className:"mode-panel quiet-state",children:[q.jsx("p",{className:"kicker",children:"Ready"}),q.jsx("h2",{children:"Stay is waiting."})]}):null,!o&&f.mode==="meeting_candidate"?q.jsx(Fm,{candidate:f.candidate,canAccept:f.pin_configured,error:V,onAccept:()=>{U(()=>s.acceptStay())},onDismiss:()=>{U(()=>s.dismissCandidate())}}):null,!o&&f.mode==="guarding"?q.jsx(Wm,{meeting:f.meeting,error:V,onStop:()=>{U(()=>s.stopGuarding())}}):null,!o&&f.mode==="locked"?q.jsx(km,{view:f,error:V,onSubmit:R=>U(()=>s.submitPin(R))}):null]})}function e0(s,f){if(f)return"Opening";if(!s.pin_configured)return"PIN needed";switch(s.mode){case"idle":return"Ready";case"meeting_candidate":return"Meeting";case"guarding":return"On";case"locked":return"Locked"}}const Re={app:"zoom",window:uh("zoom.us","Weekly Team Sync"),reason:"Zoom foreground window"},Ce=uh("Safari","Quarterly planning notes");function u0(s){const f=new Set,S=[];let o=null,D=s??{mode:"idle",pin_configured:!1};function j(k,U=[]){D=k;const A={view:D,commands:U};return f.forEach(V=>V(D)),A}return{commandLog:S,async currentState(){return S.push("current_state"),D},async setPin(k){if(S.push("set_pin"),!/^\d{4}$/.test(k))throw new Error("PIN must be exactly four digits");return o=k,j({mode:"idle",pin_configured:!0})},async acceptStay(){if(S.push("accept_stay"),!o)throw new Error("set a four digit PIN before turning on Stay");return j({mode:"guarding",meeting:Re,pin_configured:!0},[{type:"begin_guarding",meeting:Re}])},async dismissCandidate(){return S.push("dismiss_candidate"),j({mode:"idle",pin_configured:!!o},[{type:"hide_prompt"}])},async stopGuarding(){return S.push("stop_guarding"),j({mode:"idle",pin_configured:!!o},[{type:"stop_guarding"}])},async submitPin(k){if(S.push("submit_pin"),D.mode!=="locked")throw new Error("Stay is not locked right now");return k===o?j({mode:"guarding",meeting:D.meeting,pin_configured:!0},[{type:"unlock"}]):j({...D,failed_attempts:D.failed_attempts+1,last_error:"That PIN did not open Stay."},[{type:"stay_locked",failed_attempts:D.failed_attempts+1}])},async subscribe(k){return f.add(k),()=>{f.delete(k)}},emitView(k){return j(k)},focusMeeting(){return j({mode:"meeting_candidate",candidate:Re,pin_configured:!!o},[{type:"show_prompt",candidate:Re}])},focusAway(){return j({mode:"locked",meeting:Re,focused:{app_name:Ce.app_name,title:Ce.title,bounds:Ce.bounds},failed_attempts:0,pin_configured:!!o,last_error:null},[{type:"show_lock",meeting:Re,focused:{app_name:Ce.app_name,title:Ce.title,bounds:Ce.bounds}}])},view(){return D}}}function uh(s,f){return{app_name:s,title:f,process_id:null,window_id:null,process_path:null,bounds:{x:96,y:88,width:680,height:420}}}const nh=document.querySelector("#root");if(!nh)throw new Error("Stay root element is missing");Km.createRoot(nh).render(q.jsx(ft.StrictMode,{children:i0()==="guard-border"?q.jsx(n0,{}):q.jsx(a0,{client:c0()})}));function n0(){return q.jsx("div",{className:"guard-border-surface","aria-hidden":"true",children:q.jsx("div",{className:"guard-border-frame"})})}function i0(){if(new URLSearchParams(window.location.search).get("surface")==="guard-border")return"guard-border";if(!li())return"main";try{return Cf().label==="guard-border"?"guard-border":"main"}catch{return"main"}}function c0(){if(window.__STAY_CLIENT__)return window.__STAY_CLIENT__;if(li()||window.__TAURI__||window.__TAURI_INTERNALS__)return Jm();const s=u0();return window.__STAY_CLIENT__=s,window.__stayMock=s,s} diff --git a/apps/desktop/dist/assets/index-BlDh6L6x.css b/apps/desktop/dist/assets/index-BlDh6L6x.css new file mode 100644 index 0000000..66420ea --- /dev/null +++ b/apps/desktop/dist/assets/index-BlDh6L6x.css @@ -0,0 +1 @@ +:root{--ink: #1a1c1f;--ink-soft: rgba(26, 28, 31, .66);--ink-muted: rgba(26, 28, 31, .44);--ink-faint: rgba(26, 28, 31, .22);--paper: rgba(252, 251, 249, .62);--paper-strong: rgba(255, 255, 255, .78);--hairline: rgba(255, 255, 255, .62);--hairline-soft: rgba(255, 255, 255, .38);--hairline-ink: rgba(26, 28, 31, .06);--accent: #176d65;--accent-deep: #0e4f48;--accent-soft: rgba(23, 109, 101, .14);--guard-border: #18b7c2;--guard-border-soft: rgba(24, 183, 194, .22);--warm: #d3a07a;--warm-soft: rgba(211, 160, 122, .22);--danger: #a83a2d;--radius-shell: 26px;--radius-panel: 20px;--radius-control: 14px;--font-ui: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;--font-display: "Instrument Serif", "New York", Georgia, serif;color:var(--ink);background:transparent;font-family:var(--font-ui);font-feature-settings:"ss01","ss02","cv11";font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden;background:transparent}body{border-radius:var(--radius-shell)}button,input{font:inherit;font-family:var(--font-ui)}button{position:relative;height:38px;padding:0 18px;-webkit-app-region:no-drag;border:.5px solid rgba(255,255,255,.28);border-radius:999px;color:#fbfefe;background:linear-gradient(180deg,#ffffff38,#fff0 52%),linear-gradient(180deg,var(--accent),var(--accent-deep));box-shadow:0 1px #ffffff57 inset,0 -1px #00000014 inset,0 6px 18px #0e4f4838,0 1px 2px #0e4f482e;font-size:13px;font-weight:550;letter-spacing:-.005em;cursor:pointer;transition:transform .16s cubic-bezier(.2,.7,.2,1),box-shadow .2s ease,filter .2s ease}button:hover{filter:brightness(1.04) saturate(1.05);box-shadow:0 1px #ffffff61 inset,0 -1px #00000014 inset,0 8px 22px #0e4f4842,0 1px 2px #0e4f4833}button:active{transform:translateY(.5px) scale(.985);filter:brightness(.98)}button:disabled{cursor:not-allowed;filter:saturate(.3);opacity:.5;box-shadow:0 1px #ffffff3d inset,0 1px 2px #0e4f4814}button:focus-visible,input:focus-visible{outline:2px solid rgba(23,109,101,.5);outline-offset:2px}button.ghost{color:var(--ink);background:linear-gradient(180deg,#fff9,#ffffff52);border-color:#ffffffb3;box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0d inset,0 4px 14px #1a1c1f0f,0 1px 2px #1a1c1f0a;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5)}button.ghost:hover{background:linear-gradient(180deg,#ffffffbd,#ffffff75);filter:none}button.strong-ghost{color:var(--accent-deep)}input{width:100%;min-width:0;height:38px;-webkit-app-region:no-drag;padding:0 14px;border:.5px solid rgba(255,255,255,.72);border-radius:var(--radius-control);color:var(--ink);background:#ffffff6b;box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0d inset,0 4px 14px #1a1c1f0d;font-size:14px;font-feature-settings:"tnum","ss01";font-variant-numeric:tabular-nums;letter-spacing:.18em;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);transition:border-color .16s ease,box-shadow .2s ease,background .2s ease}input::placeholder{color:var(--ink-faint);letter-spacing:0}input:focus{border-color:#176d656b;background:#fff9;box-shadow:0 1px #fffffff0 inset,0 0 0 3px #176d651f}input[aria-invalid=true]{border-color:#a83a2d80}.pin-code-field{display:grid;min-width:0;gap:9px}.pin-code-field label{margin-bottom:0}.pin-code-input{position:relative;width:212px;max-width:100%;height:46px;-webkit-app-region:no-drag;cursor:text}.pin-code-control{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;border-radius:var(--radius-control);color:transparent;caret-color:transparent;background:transparent;box-shadow:none;letter-spacing:0;backdrop-filter:none;-webkit-backdrop-filter:none}.pin-code-control:focus{border:0;background:transparent;box-shadow:none}.pin-code-control:focus-visible{outline:none}.pin-code-slots{display:grid;grid-template-columns:repeat(4,44px);justify-content:start;gap:12px;width:100%;height:100%}.pin-code-slot{display:grid;min-width:0;place-items:center;aspect-ratio:1;border:.5px solid rgba(26,28,31,.13);border-radius:var(--radius-control);background:linear-gradient(180deg,#ffffffb3,#ffffff52),#fff6;box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0d inset,0 7px 18px #1a1c1f14;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);transition:border-color .16s ease,background .2s ease,box-shadow .2s ease,transform .16s ease}.pin-code-slot:before{width:10px;height:10px;border-radius:999px;background:var(--accent-deep);box-shadow:0 0 0 3px #176d651f;opacity:0;transform:scale(.72);content:"";transition:opacity .14s ease,transform .16s cubic-bezier(.2,.7,.2,1)}.pin-code-slot-filled:before{opacity:1;transform:scale(1)}.pin-code-slot-filled{border-color:#176d6547;background:linear-gradient(180deg,#ffffffbd,#176d651f),#ffffff6b}.pin-code-input:focus-within .pin-code-slot{border-color:#176d653d;background:#ffffff8f}.pin-code-input:focus-within .pin-code-slot-active{border-color:#176d6580;box-shadow:0 1px #fffffff0 inset,0 0 0 3px #176d651f,0 7px 18px #1a1c1f12;transform:translateY(-1px)}.pin-code-input[data-invalid=true] .pin-code-slot{border-color:#a83a2d80}.pin-code-input[data-invalid=true] .pin-code-slot:before{background:var(--danger);box-shadow:0 0 0 3px #a83a2d1f}.stay-shell{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100vh;gap:10px;padding:20px 28px 24px;overflow:hidden;border:.5px solid var(--hairline);border-radius:var(--radius-shell);background:linear-gradient(155deg,#ffffffd6,#f8f7f480 48%,#e5eeec6b),var(--paper);box-shadow:0 32px 80px #14181c38,0 12px 28px #14181c1a,0 0 0 .5px #ffffff80,0 1px #ffffffe0 inset,0 -1px #1a1c1f0a inset;backdrop-filter:blur(40px) saturate(1.8);-webkit-backdrop-filter:blur(40px) saturate(1.8);animation:shell-in .42s cubic-bezier(.2,.7,.2,1) both;transition:border-color .18s ease,box-shadow .22s ease,background .22s ease,border-radius .22s ease,padding .22s ease}.stay-shell:before{position:absolute;inset:-40%;z-index:-2;pointer-events:none;content:"";background:radial-gradient(38% 32% at 18% 22%,rgba(23,109,101,.22),transparent 70%),radial-gradient(34% 30% at 82% 78%,rgba(211,160,122,.2),transparent 72%),radial-gradient(50% 40% at 50% 50%,rgba(255,255,255,.35),transparent 76%);filter:blur(36px);animation:ambient-drift 24s ease-in-out infinite alternate}.stay-shell:after{position:absolute;inset:0;z-index:-1;pointer-events:none;content:"";border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.5),transparent 36%),linear-gradient(90deg,rgba(255,255,255,.3),transparent 38%,rgba(220,232,230,.16)),url("data:image/svg+xml;utf8,");background-blend-mode:normal,normal,soft-light;opacity:.95}.guard-border-surface{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;background:transparent}.guard-border-frame{position:fixed;inset:6px;border:2px solid rgba(24,183,194,.78);border-radius:clamp(12px,1.2vw,22px);box-shadow:0 0 0 1px #ffffff47 inset,0 0 20px #18b7c261,0 0 44px #18b7c22e inset;opacity:.92}.guard-border-frame:before{position:absolute;top:-2px;right:18%;left:18%;height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.86),transparent);content:""}.stay-shell-guarding.stay-shell-revealed{border-color:#18b7c2a3;box-shadow:0 32px 80px #14181c33,0 12px 28px #14181c1a,0 0 0 1px #18b7c257,0 1px #ffffffe0 inset,0 -1px #1a1c1f0a inset}.stay-shell-guarding.stay-shell-collapsed{min-width:0;gap:0;align-items:center;justify-content:center;padding:5px 8px;border:1px solid rgba(24,183,194,.78);border-radius:999px;background:linear-gradient(180deg,#ffffff47,#ffffff0f),linear-gradient(180deg,#18b7c2e6,#0c7177e0);box-shadow:0 10px 26px #0c717733,0 0 0 1px #ffffff47 inset,0 0 20px #18b7c23d;cursor:default;animation:none;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5)}.stay-shell-guarding.stay-shell-collapsed:before,.stay-shell-guarding.stay-shell-collapsed:after{display:none}.stay-shell-guarding.stay-shell-collapsed .brand-strip{display:flex;align-items:center;justify-content:center;width:100%;min-height:0;padding:0}.stay-shell-guarding.stay-shell-collapsed .brand-label,.stay-shell-guarding.stay-shell-collapsed .window-close,.stay-shell-guarding.stay-shell-collapsed .mode-panel{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;opacity:0;pointer-events:none;clip:rect(0 0 0 0)}.stay-shell-guarding.stay-shell-collapsed .brand-controls{position:static}.stay-shell-guarding.stay-shell-collapsed .status-pill{height:100%;min-height:23px;padding:0 10px;border-color:#ffffff3d;color:#f7ffff;background:transparent;box-shadow:none;font-size:10.5px;backdrop-filter:none;-webkit-backdrop-filter:none}.stay-shell-guarding.stay-shell-collapsed .status-pill:before{background:#fff;box-shadow:0 0 0 2px #ffffff2e,0 0 8px #ffffffb8}.brand-strip{position:relative;z-index:2;min-height:48px;padding-right:132px;-webkit-app-region:drag}.brand-label{min-width:0;max-width:100%;-webkit-app-region:drag}.brand-controls{position:absolute;top:0;right:4px;display:inline-flex;align-items:center;gap:8px;-webkit-app-region:no-drag}.window-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;padding:0;border:.5px solid rgba(26,28,31,.12);border-radius:999px;color:#1a1c1fb3;background:linear-gradient(180deg,#ffffffdb,#fff9);box-shadow:0 1px #fffffff0 inset,0 2px 6px #1a1c1f1a;font-size:0;-webkit-app-region:no-drag;backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);transition:transform .14s ease,background .16s ease,color .16s ease}.window-close:hover{color:var(--ink);background:linear-gradient(180deg,#ffffffc7,#ffffff7a);filter:none}.window-close:active{transform:scale(.92)}.window-close svg{display:block}.eyebrow,.kicker{margin:0 0 4px;color:var(--ink-muted);font-size:10px;font-weight:500;letter-spacing:.16em;text-transform:uppercase}h1,h2{margin:0;color:var(--ink);font-family:var(--font-display);font-weight:400;letter-spacing:-.012em}h1{max-width:100%;overflow:hidden;font-size:20px;font-style:italic;line-height:1.12;text-overflow:ellipsis;white-space:nowrap}h2{overflow:hidden;font-size:24px;font-style:italic;line-height:1.1;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.stay-shell-locked h1{font-size:22px}.stay-shell-locked h2{font-size:28px;-webkit-line-clamp:3}label{display:block;margin-bottom:9px;color:var(--ink-soft);font-family:var(--font-ui);font-size:12.5px;font-weight:500;letter-spacing:-.005em}.status-pill{position:relative;display:inline-flex;align-items:center;gap:7px;min-width:0;height:26px;padding:0 12px 0 10px;border:.5px solid rgba(255,255,255,.72);border-radius:999px;color:var(--accent-deep);background:linear-gradient(180deg,#ffffffa8,#ffffff52);box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0a inset,0 4px 12px #1a1c1f0f;font-family:var(--font-ui);font-size:11px;font-weight:540;letter-spacing:.01em;line-height:1;white-space:nowrap;backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5)}.status-pill:before{width:6px;height:6px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 2px #176d6524,0 0 6px #176d658c;content:"";animation:dot-breathe 2.6s ease-in-out infinite}.stay-shell-idle .status-pill:before{background:var(--ink-muted);box-shadow:0 0 0 2px #1a1c1f0f;animation-duration:4.2s}.stay-shell-locked .status-pill:before,.stay-shell-guarding .status-pill:before{background:var(--accent);box-shadow:0 0 0 2px #176d652e,0 0 8px #176d65b3}.stay-shell-meeting_candidate .status-pill:before{background:var(--warm);box-shadow:0 0 0 2px var(--warm-soft),0 0 8px #d3a07aa6}.mode-panel{position:relative;z-index:1;flex-shrink:0;width:100%;max-width:620px;min-height:0;margin:0 auto;padding-top:12px;border-top:.5px solid rgba(255,255,255,.5)}.stay-shell>.mode-panel+.mode-panel{margin-top:0}.mode-panel:before{position:absolute;top:0;right:0;left:0;height:.5px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(26,28,31,.08),transparent);content:""}.mode-panel-active{display:grid;gap:8px;align-content:center}.pin-setup{align-self:center;width:100%;min-height:120px}.quiet-state{display:grid;gap:4px;align-content:start}.muted{min-height:18px;margin:0;color:var(--ink-soft);font-size:13px;line-height:1.4;letter-spacing:-.005em}.control-row,.action-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.control-row.pin-entry-row{grid-template-columns:auto auto;justify-content:start;align-items:end}.action-row{grid-template-columns:auto auto;justify-content:start;margin-top:6px}.unlock-form{margin-top:6px}.error-line{min-height:17px;margin:0;color:var(--danger);font-family:var(--font-ui);font-size:12px;line-height:1.4;letter-spacing:-.005em}.stay-shell-locked{position:fixed;inset:0;display:grid;grid-template-rows:1fr;width:100vw;height:100vh;place-items:center;padding:clamp(20px,4vw,32px);border:none;border-radius:24px;background:radial-gradient(60% 50% at 50% 30%,rgba(255,255,255,.22),transparent 70%),linear-gradient(155deg,#ffffff2e,#e2efed24),#f8fbfc29;box-shadow:0 18px 70px #211f1b2e,0 1px #fff6 inset;backdrop-filter:blur(34px) saturate(1.5);-webkit-backdrop-filter:blur(34px) saturate(1.5);animation:overlay-in .48s cubic-bezier(.2,.7,.2,1) both}.stay-shell-locked:before{inset:-20%;background:radial-gradient(38% 28% at 22% 18%,rgba(23,109,101,.18),transparent 72%),radial-gradient(36% 30% at 78% 82%,rgba(211,160,122,.16),transparent 72%);filter:blur(50px)}.stay-shell-locked:after{background:linear-gradient(180deg,rgba(255,255,255,.18),transparent 40%),url("data:image/svg+xml;utf8,");background-blend-mode:normal,soft-light;opacity:.85}.stay-shell-locked .brand-strip{position:absolute;top:clamp(20px,4vw,30px);right:clamp(20px,4vw,30px);left:clamp(20px,4vw,30px);min-height:auto;pointer-events:none}.stay-shell-locked .status-pill{pointer-events:auto;color:var(--accent-deep);background:linear-gradient(180deg,#ffffffb8,#ffffff61)}.stay-shell-locked .mode-panel-active{align-self:center;justify-self:center;width:min(calc(100vw - 48px),440px);max-height:calc(100vh - 120px);padding:26px 26px 22px;overflow:hidden;border:.5px solid rgba(255,255,255,.62);border-radius:22px;background:linear-gradient(155deg,#ffffffd1,#f8fbfc7a),#fff6;box-shadow:0 24px 70px #211f1b38,0 1px #ffffffdb inset,0 -.5px #1a1c1f0a inset;backdrop-filter:blur(40px) saturate(1.6);-webkit-backdrop-filter:blur(40px) saturate(1.6);animation:card-in .52s cubic-bezier(.2,.7,.2,1) 80ms both}.stay-shell-locked .error-line{color:#8f2e22}@media(max-height:380px){.stay-shell-locked .brand-strip h1{display:none}}@media(max-width:520px),(max-height:270px){.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed){gap:8px;padding:14px 18px 16px;border-radius:22px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) .brand-strip{min-height:42px;padding-right:112px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) h1{font-size:18px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) h2{font-size:21px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) .mode-panel{padding-top:9px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) .muted{min-height:16px;font-size:12.5px}button,input{height:34px}.pin-code-input{width:188px;height:42px}.pin-code-slots{grid-template-columns:repeat(4,40px);gap:9px}}@media(max-width:360px){.stay-shell{width:100vw;height:100vh;border-radius:0}.brand-strip,.control-row{grid-template-columns:1fr}.pin-code-input{width:100%}.pin-code-slots{grid-template-columns:repeat(4,minmax(0,1fr))}.status-pill{justify-self:start}}@media(prefers-color-scheme:dark){:root{--ink: #ececec;--ink-soft: rgba(236, 236, 236, .7);--ink-muted: rgba(236, 236, 236, .46);--ink-faint: rgba(236, 236, 236, .24);--paper: rgba(28, 30, 33, .6);--paper-strong: rgba(38, 40, 44, .78);--hairline: rgba(255, 255, 255, .12);--hairline-soft: rgba(255, 255, 255, .08);--hairline-ink: rgba(0, 0, 0, .4);--accent: #5fc7bc;--accent-deep: #2e8c83;--accent-soft: rgba(95, 199, 188, .18);--guard-border: #20c6d0;--guard-border-soft: rgba(32, 198, 208, .24);--warm: #e2b491;--danger: #e08074}.stay-shell{background:linear-gradient(155deg,#2e3034c7,#1e202499 50%,#16242280),var(--paper);box-shadow:0 32px 80px #00000080,0 12px 28px #00000052,0 0 0 .5px #ffffff14,0 1px #ffffff1f inset,0 -1px #0000004d inset}.stay-shell:before{background:radial-gradient(38% 32% at 18% 22%,rgba(95,199,188,.22),transparent 70%),radial-gradient(34% 30% at 82% 78%,rgba(226,180,145,.16),transparent 72%),radial-gradient(50% 40% at 50% 50%,rgba(255,255,255,.06),transparent 76%)}.stay-shell:after{background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 40%),url("data:image/svg+xml;utf8,");background-blend-mode:normal,soft-light}button{color:#06201d;background:linear-gradient(180deg,#ffffff47,#fff0 52%),linear-gradient(180deg,var(--accent),var(--accent-deep));box-shadow:0 1px #ffffff57 inset,0 6px 18px #0000006b,0 1px 2px #0000004d}button.ghost{color:var(--ink);background:linear-gradient(180deg,#ffffff1a,#ffffff0a);border-color:#ffffff24;box-shadow:0 1px #ffffff1a inset,0 4px 14px #00000052}button.ghost:hover{background:linear-gradient(180deg,#ffffff29,#ffffff0f)}button.strong-ghost{color:var(--accent)}input{border-color:#ffffff1f;color:var(--ink);background:#ffffff0d;box-shadow:0 1px #ffffff0f inset,0 4px 14px #0000004d}input:focus{border-color:#5fc7bc80;background:#ffffff14;box-shadow:0 1px #ffffff14 inset,0 0 0 3px #5fc7bc2e}.pin-code-control,.pin-code-control:focus{color:transparent;background:transparent;box-shadow:none}.pin-code-slot{border-color:#ffffff42;background:linear-gradient(180deg,#ffffff21,#ffffff0d),#ffffff0d;box-shadow:0 1px #ffffff0f inset,0 8px 18px #00000047}.pin-code-slot:before{background:#d7fffb;box-shadow:0 0 0 3px #5fc7bc2e,0 0 10px #5fc7bc73}.pin-code-slot-filled{border-color:#5fc7bc8f;background:linear-gradient(180deg,#5fc7bc38,#5fc7bc14),#ffffff0f}.pin-code-input:focus-within .pin-code-slot{border-color:#5fc7bc47;background:#ffffff14}.pin-code-input:focus-within .pin-code-slot-active{border-color:#5fc7bc80;box-shadow:0 1px #ffffff14 inset,0 0 0 3px #5fc7bc2e}.status-pill{color:var(--accent);background:linear-gradient(180deg,#ffffff14,#ffffff08);border-color:#ffffff1f;box-shadow:0 1px #ffffff14 inset,0 4px 12px #0000004d}.window-close{color:#ecececd1;background:linear-gradient(180deg,#ffffff24,#ffffff0f);border-color:#ffffff2e;box-shadow:0 1px #ffffff1f inset,0 2px 6px #0006}.window-close:hover{color:#fff;background:linear-gradient(180deg,#ffffff38,#ffffff1a)}.mode-panel{border-top-color:#ffffff14}.mode-panel:before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent)}.stay-shell-locked{background:radial-gradient(60% 50% at 50% 30%,rgba(255,255,255,.06),transparent 70%),#0e101280}.stay-shell-locked .mode-panel-active{border-color:#ffffff1a;background:linear-gradient(155deg,#2e3034c7,#1e202480),#1c1e2180;box-shadow:0 24px 70px #0000008c,0 1px #ffffff1a inset}.guard-border-frame{border-color:#20c6d0c2;box-shadow:0 0 0 1px #ffffff1f inset,0 0 22px #20c6d057,0 0 44px #20c6d029 inset}.stay-shell-guarding.stay-shell-collapsed{background:linear-gradient(180deg,#ffffff29,#ffffff0a),linear-gradient(180deg,#20c6d0d1,#0c5f66e0);box-shadow:0 12px 28px #00000057,0 0 0 1px #ffffff1f inset,0 0 22px #20c6d038}}@keyframes shell-in{0%{opacity:0;transform:translateY(6px) scale(.985);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes card-in{0%{opacity:0;transform:translateY(8px) scale(.97);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes ambient-drift{0%{transform:translate3d(-4%,-2%,0) rotate(0)}50%{transform:translate3d(3%,4%,0) rotate(8deg)}to{transform:translate3d(-2%,3%,0) rotate(-6deg)}}@keyframes dot-breathe{0%,to{opacity:.9;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}@media(prefers-reduced-motion:reduce){.stay-shell,.stay-shell-locked,.stay-shell-locked .mode-panel-active{animation:none}.stay-shell:before{animation:none}.status-pill:before{animation:none}button,input{transition:none}.pin-code-slot,.pin-code-slot:before{transition:none}} diff --git a/apps/desktop/dist/assets/index-DUjhv9cr.js b/apps/desktop/dist/assets/index-DUjhv9cr.js deleted file mode 100644 index 45a3121..0000000 --- a/apps/desktop/dist/assets/index-DUjhv9cr.js +++ /dev/null @@ -1,9 +0,0 @@ -(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const D of document.querySelectorAll('link[rel="modulepreload"]'))d(D);new MutationObserver(D=>{for(const B of D)if(B.type==="childList")for(const x of B.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&d(x)}).observe(document,{childList:!0,subtree:!0});function S(D){const B={};return D.integrity&&(B.integrity=D.integrity),D.referrerPolicy&&(B.referrerPolicy=D.referrerPolicy),D.crossOrigin==="use-credentials"?B.credentials="include":D.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function d(D){if(D.ep)return;D.ep=!0;const B=S(D);fetch(D.href,B)}})();var bf={exports:{}},Ou={};var qr;function Dm(){if(qr)return Ou;qr=1;var s=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function S(d,D,B){var x=null;if(B!==void 0&&(x=""+B),D.key!==void 0&&(x=""+D.key),"key"in D){B={};for(var $ in D)$!=="key"&&(B[$]=D[$])}else B=D;return D=B.ref,{$$typeof:s,type:d,key:x,ref:D!==void 0?D:null,props:B}}return Ou.Fragment=f,Ou.jsx=S,Ou.jsxs=S,Ou}var jr;function Mm(){return jr||(jr=1,bf.exports=Dm()),bf.exports}var j=Mm();function Nm(s,f,S,d){if(typeof f=="function"?s!==f||!d:!f.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return S==="m"?d:S==="a"?d.call(s):d?d.value:f.get(s)}function Um(s,f,S,d,D){if(typeof f=="function"?s!==f||!0:!f.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f.set(s,S),S}var kn;const St="__TAURI_TO_IPC_KEY__";function Rm(s,f=!1){return window.__TAURI_INTERNALS__.transformCallback(s,f)}async function O(s,f={},S){return window.__TAURI_INTERNALS__.invoke(s,f,S)}class Cm{get rid(){return Nm(this,kn,"f")}constructor(f){kn.set(this,void 0),Um(this,kn,f)}async close(){return O("plugin:resources|close",{rid:this.rid})}}kn=new WeakMap;function In(){return!!(globalThis||window).isTauri}class kr{constructor(...f){this.type="Logical",f.length===1?"Logical"in f[0]?(this.width=f[0].Logical.width,this.height=f[0].Logical.height):(this.width=f[0].width,this.height=f[0].height):(this.width=f[0],this.height=f[1])}toPhysical(f){return new Mu(this.width*f,this.height*f)}[St](){return{width:this.width,height:this.height}}toJSON(){return this[St]()}}class Mu{constructor(...f){this.type="Physical",f.length===1?"Physical"in f[0]?(this.width=f[0].Physical.width,this.height=f[0].Physical.height):(this.width=f[0].width,this.height=f[0].height):(this.width=f[0],this.height=f[1])}toLogical(f){return new kr(this.width/f,this.height/f)}[St](){return{width:this.width,height:this.height}}toJSON(){return this[St]()}}class Ue{constructor(f){this.size=f}toLogical(f){return this.size instanceof kr?this.size:this.size.toLogical(f)}toPhysical(f){return this.size instanceof Mu?this.size:this.size.toPhysical(f)}[St](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[St]()}}class Fr{constructor(...f){this.type="Logical",f.length===1?"Logical"in f[0]?(this.x=f[0].Logical.x,this.y=f[0].Logical.y):(this.x=f[0].x,this.y=f[0].y):(this.x=f[0],this.y=f[1])}toPhysical(f){return new Ea(this.x*f,this.y*f)}[St](){return{x:this.x,y:this.y}}toJSON(){return this[St]()}}class Ea{constructor(...f){this.type="Physical",f.length===1?"Physical"in f[0]?(this.x=f[0].Physical.x,this.y=f[0].Physical.y):(this.x=f[0].x,this.y=f[0].y):(this.x=f[0],this.y=f[1])}toLogical(f){return new Fr(this.x/f,this.y/f)}[St](){return{x:this.x,y:this.y}}toJSON(){return this[St]()}}class $n{constructor(f){this.position=f}toLogical(f){return this.position instanceof Fr?this.position:this.position.toLogical(f)}toPhysical(f){return this.position instanceof Ea?this.position:this.position.toPhysical(f)}[St](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[St]()}}var ct;(function(s){s.WINDOW_RESIZED="tauri://resize",s.WINDOW_MOVED="tauri://move",s.WINDOW_CLOSE_REQUESTED="tauri://close-requested",s.WINDOW_DESTROYED="tauri://destroyed",s.WINDOW_FOCUS="tauri://focus",s.WINDOW_BLUR="tauri://blur",s.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",s.WINDOW_THEME_CHANGED="tauri://theme-changed",s.WINDOW_CREATED="tauri://window-created",s.WINDOW_SUSPENDED="tauri://suspended",s.WINDOW_RESUMED="tauri://resumed",s.WEBVIEW_CREATED="tauri://webview-created",s.DRAG_ENTER="tauri://drag-enter",s.DRAG_OVER="tauri://drag-over",s.DRAG_DROP="tauri://drag-drop",s.DRAG_LEAVE="tauri://drag-leave"})(ct||(ct={}));async function Ir(s,f){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(s,f),await O("plugin:event|unlisten",{event:s,eventId:f})}async function Nf(s,f,S){var d;const D=typeof S?.target=="string"?{kind:"AnyLabel",label:S.target}:(d=S?.target)!==null&&d!==void 0?d:{kind:"Any"};return O("plugin:event|listen",{event:s,target:D,handler:Rm(f)}).then(B=>async()=>Ir(s,B))}async function Hm(s,f,S){return Nf(s,d=>{Ir(s,d.id),f(d)},S)}async function Bm(s,f){await O("plugin:event|emit",{event:s,payload:f})}async function qm(s,f,S){await O("plugin:event|emit_to",{target:typeof s=="string"?{kind:"AnyLabel",label:s}:s,event:f,payload:S})}class Nu extends Cm{constructor(f){super(f)}static async new(f,S,d){return O("plugin:image|new",{rgba:Fn(f),width:S,height:d}).then(D=>new Nu(D))}static async fromBytes(f){return O("plugin:image|from_bytes",{bytes:Fn(f)}).then(S=>new Nu(S))}static async fromPath(f){return O("plugin:image|from_path",{path:f}).then(S=>new Nu(S))}async rgba(){return O("plugin:image|rgba",{rid:this.rid}).then(f=>new Uint8Array(f))}async size(){return O("plugin:image|size",{rid:this.rid})}}function Fn(s){return s==null?null:typeof s=="string"?s:s instanceof Nu?s.rid:s}var Mf;(function(s){s[s.Critical=1]="Critical",s[s.Informational=2]="Informational"})(Mf||(Mf={}));class jm{constructor(f){this._preventDefault=!1,this.event=f.event,this.id=f.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var Yr;(function(s){s.None="none",s.Normal="normal",s.Indeterminate="indeterminate",s.Paused="paused",s.Error="error"})(Yr||(Yr={}));function Uf(){return new Pr(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function Sf(){return O("plugin:window|get_all_windows").then(s=>s.map(f=>new Pr(f,{skip:!0})))}const _f=["tauri://created","tauri://error"];class Pr{constructor(f,S={}){var d;this.label=f,this.listeners=Object.create(null),S?.skip||O("plugin:window|create",{options:{...S,parent:typeof S.parent=="string"?S.parent:(d=S.parent)===null||d===void 0?void 0:d.label,label:f}}).then(async()=>this.emit("tauri://created")).catch(async D=>this.emit("tauri://error",D))}static async getByLabel(f){var S;return(S=(await Sf()).find(d=>d.label===f))!==null&&S!==void 0?S:null}static getCurrent(){return Uf()}static async getAll(){return Sf()}static async getFocusedWindow(){for(const f of await Sf())if(await f.isFocused())return f;return null}async listen(f,S){return this._handleTauriEvent(f,S)?()=>{const d=this.listeners[f];d.splice(d.indexOf(S),1)}:Nf(f,S,{target:{kind:"Window",label:this.label}})}async once(f,S){return this._handleTauriEvent(f,S)?()=>{const d=this.listeners[f];d.splice(d.indexOf(S),1)}:Hm(f,S,{target:{kind:"Window",label:this.label}})}async emit(f,S){if(_f.includes(f)){for(const d of this.listeners[f]||[])d({event:f,id:-1,payload:S});return}return Bm(f,S)}async emitTo(f,S,d){if(_f.includes(S)){for(const D of this.listeners[S]||[])D({event:S,id:-1,payload:d});return}return qm(f,S,d)}_handleTauriEvent(f,S){return _f.includes(f)?(f in this.listeners?this.listeners[f].push(S):this.listeners[f]=[S],!0):!1}async scaleFactor(){return O("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return O("plugin:window|inner_position",{label:this.label}).then(f=>new Ea(f))}async outerPosition(){return O("plugin:window|outer_position",{label:this.label}).then(f=>new Ea(f))}async innerSize(){return O("plugin:window|inner_size",{label:this.label}).then(f=>new Mu(f))}async outerSize(){return O("plugin:window|outer_size",{label:this.label}).then(f=>new Mu(f))}async isFullscreen(){return O("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return O("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return O("plugin:window|is_maximized",{label:this.label})}async isFocused(){return O("plugin:window|is_focused",{label:this.label})}async isDecorated(){return O("plugin:window|is_decorated",{label:this.label})}async isResizable(){return O("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return O("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return O("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return O("plugin:window|is_closable",{label:this.label})}async isVisible(){return O("plugin:window|is_visible",{label:this.label})}async title(){return O("plugin:window|title",{label:this.label})}async theme(){return O("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return O("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return O("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return O("plugin:window|scene_identifier",{label:this.label})}async center(){return O("plugin:window|center",{label:this.label})}async requestUserAttention(f){let S=null;return f&&(f===Mf.Critical?S={type:"Critical"}:S={type:"Informational"}),O("plugin:window|request_user_attention",{label:this.label,value:S})}async setResizable(f){return O("plugin:window|set_resizable",{label:this.label,value:f})}async setEnabled(f){return O("plugin:window|set_enabled",{label:this.label,value:f})}async isEnabled(){return O("plugin:window|is_enabled",{label:this.label})}async setMaximizable(f){return O("plugin:window|set_maximizable",{label:this.label,value:f})}async setMinimizable(f){return O("plugin:window|set_minimizable",{label:this.label,value:f})}async setClosable(f){return O("plugin:window|set_closable",{label:this.label,value:f})}async setTitle(f){return O("plugin:window|set_title",{label:this.label,value:f})}async maximize(){return O("plugin:window|maximize",{label:this.label})}async unmaximize(){return O("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return O("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return O("plugin:window|minimize",{label:this.label})}async unminimize(){return O("plugin:window|unminimize",{label:this.label})}async show(){return O("plugin:window|show",{label:this.label})}async hide(){return O("plugin:window|hide",{label:this.label})}async close(){return O("plugin:window|close",{label:this.label})}async destroy(){return O("plugin:window|destroy",{label:this.label})}async setDecorations(f){return O("plugin:window|set_decorations",{label:this.label,value:f})}async setShadow(f){return O("plugin:window|set_shadow",{label:this.label,value:f})}async setEffects(f){return O("plugin:window|set_effects",{label:this.label,value:f})}async clearEffects(){return O("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(f){return O("plugin:window|set_always_on_top",{label:this.label,value:f})}async setAlwaysOnBottom(f){return O("plugin:window|set_always_on_bottom",{label:this.label,value:f})}async setContentProtected(f){return O("plugin:window|set_content_protected",{label:this.label,value:f})}async setSize(f){return O("plugin:window|set_size",{label:this.label,value:f instanceof Ue?f:new Ue(f)})}async setMinSize(f){return O("plugin:window|set_min_size",{label:this.label,value:f instanceof Ue?f:f?new Ue(f):null})}async setMaxSize(f){return O("plugin:window|set_max_size",{label:this.label,value:f instanceof Ue?f:f?new Ue(f):null})}async setSizeConstraints(f){function S(d){return d?{Logical:d}:null}return O("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:S(f?.minWidth),minHeight:S(f?.minHeight),maxWidth:S(f?.maxWidth),maxHeight:S(f?.maxHeight)}})}async setPosition(f){return O("plugin:window|set_position",{label:this.label,value:f instanceof $n?f:new $n(f)})}async setFullscreen(f){return O("plugin:window|set_fullscreen",{label:this.label,value:f})}async setSimpleFullscreen(f){return O("plugin:window|set_simple_fullscreen",{label:this.label,value:f})}async setFocus(){return O("plugin:window|set_focus",{label:this.label})}async setFocusable(f){return O("plugin:window|set_focusable",{label:this.label,value:f})}async setIcon(f){return O("plugin:window|set_icon",{label:this.label,value:Fn(f)})}async setSkipTaskbar(f){return O("plugin:window|set_skip_taskbar",{label:this.label,value:f})}async setCursorGrab(f){return O("plugin:window|set_cursor_grab",{label:this.label,value:f})}async setCursorVisible(f){return O("plugin:window|set_cursor_visible",{label:this.label,value:f})}async setCursorIcon(f){return O("plugin:window|set_cursor_icon",{label:this.label,value:f})}async setBackgroundColor(f){return O("plugin:window|set_background_color",{color:f})}async setCursorPosition(f){return O("plugin:window|set_cursor_position",{label:this.label,value:f instanceof $n?f:new $n(f)})}async setIgnoreCursorEvents(f){return O("plugin:window|set_ignore_cursor_events",{label:this.label,value:f})}async startDragging(){return O("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(f){return O("plugin:window|start_resize_dragging",{label:this.label,value:f})}async setBadgeCount(f){return O("plugin:window|set_badge_count",{label:this.label,value:f})}async setBadgeLabel(f){return O("plugin:window|set_badge_label",{label:this.label,value:f})}async setOverlayIcon(f){return O("plugin:window|set_overlay_icon",{label:this.label,value:f?Fn(f):void 0})}async setProgressBar(f){return O("plugin:window|set_progress_bar",{label:this.label,value:f})}async setVisibleOnAllWorkspaces(f){return O("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:f})}async setTitleBarStyle(f){return O("plugin:window|set_title_bar_style",{label:this.label,value:f})}async setTheme(f){return O("plugin:window|set_theme",{label:this.label,value:f})}async onResized(f){return this.listen(ct.WINDOW_RESIZED,S=>{S.payload=new Mu(S.payload),f(S)})}async onMoved(f){return this.listen(ct.WINDOW_MOVED,S=>{S.payload=new Ea(S.payload),f(S)})}async onCloseRequested(f){return this.listen(ct.WINDOW_CLOSE_REQUESTED,async S=>{const d=new jm(S);await f(d),d.isPreventDefault()||await this.destroy()})}async onDragDropEvent(f){const S=await this.listen(ct.DRAG_ENTER,x=>{f({...x,payload:{type:"enter",paths:x.payload.paths,position:new Ea(x.payload.position)}})}),d=await this.listen(ct.DRAG_OVER,x=>{f({...x,payload:{type:"over",position:new Ea(x.payload.position)}})}),D=await this.listen(ct.DRAG_DROP,x=>{f({...x,payload:{type:"drop",paths:x.payload.paths,position:new Ea(x.payload.position)}})}),B=await this.listen(ct.DRAG_LEAVE,x=>{f({...x,payload:{type:"leave"}})});return()=>{S(),D(),d(),B()}}async onFocusChanged(f){const S=await this.listen(ct.WINDOW_FOCUS,D=>{f({...D,payload:!0})}),d=await this.listen(ct.WINDOW_BLUR,D=>{f({...D,payload:!1})});return()=>{S(),d()}}async onScaleChanged(f){return this.listen(ct.WINDOW_SCALE_FACTOR_CHANGED,f)}async onThemeChanged(f){return this.listen(ct.WINDOW_THEME_CHANGED,f)}}var xr;(function(s){s.Disabled="disabled",s.Throttle="throttle",s.Suspend="suspend"})(xr||(xr={}));var Gr;(function(s){s.Default="default",s.FluentOverlay="fluentOverlay"})(Gr||(Gr={}));var wr;(function(s){s.AppearanceBased="appearanceBased",s.Light="light",s.Dark="dark",s.MediumLight="mediumLight",s.UltraDark="ultraDark",s.Titlebar="titlebar",s.Selection="selection",s.Menu="menu",s.Popover="popover",s.Sidebar="sidebar",s.HeaderView="headerView",s.Sheet="sheet",s.WindowBackground="windowBackground",s.HudWindow="hudWindow",s.FullScreenUI="fullScreenUI",s.Tooltip="tooltip",s.ContentBackground="contentBackground",s.UnderWindowBackground="underWindowBackground",s.UnderPageBackground="underPageBackground",s.Mica="mica",s.Blur="blur",s.Acrylic="acrylic",s.Tabbed="tabbed",s.TabbedDark="tabbedDark",s.TabbedLight="tabbedLight"})(wr||(wr={}));var Qr;(function(s){s.FollowsWindowActiveState="followsWindowActiveState",s.Active="active",s.Inactive="inactive"})(Qr||(Qr={}));var pf={exports:{}},Q={};var Xr;function Ym(){if(Xr)return Q;Xr=1;var s=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),x=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),I=Symbol.iterator;function ul(y){return y===null||typeof y!="object"?null:(y=I&&y[I]||y["@@iterator"],typeof y=="function"?y:null)}var Gl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jl=Object.assign,Ct={};function kl(y,E,N){this.props=y,this.context=E,this.refs=Ct,this.updater=N||Gl}kl.prototype.isReactComponent={},kl.prototype.setState=function(y,E){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,E,"setState")},kl.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function It(){}It.prototype=kl.prototype;function Bl(y,E,N){this.props=y,this.context=E,this.refs=Ct,this.updater=N||Gl}var ft=Bl.prototype=new It;ft.constructor=Bl,jl(ft,kl.prototype),ft.isPureReactComponent=!0;var At=Array.isArray;function wl(){}var P={H:null,A:null,T:null,S:null},Ql=Object.prototype.hasOwnProperty;function Ot(y,E,N){var H=N.ref;return{$$typeof:s,type:y,key:E,ref:H!==void 0?H:null,props:N}}function Va(y,E){return Ot(y.type,E,y.props)}function Dt(y){return typeof y=="object"&&y!==null&&y.$$typeof===s}function Xl(y){var E={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(N){return E[N]})}var Aa=/\/+/g;function Ht(y,E){return typeof y=="object"&&y!==null&&y.key!=null?Xl(""+y.key):E.toString(36)}function _t(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(wl,wl):(y.status="pending",y.then(function(E){y.status==="pending"&&(y.status="fulfilled",y.value=E)},function(E){y.status==="pending"&&(y.status="rejected",y.reason=E)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function p(y,E,N,H,X){var K=typeof y;(K==="undefined"||K==="boolean")&&(y=null);var nl=!1;if(y===null)nl=!0;else switch(K){case"bigint":case"string":case"number":nl=!0;break;case"object":switch(y.$$typeof){case s:case f:nl=!0;break;case V:return nl=y._init,p(nl(y._payload),E,N,H,X)}}if(nl)return X=X(y),nl=H===""?"."+Ht(y,0):H,At(X)?(N="",nl!=null&&(N=nl.replace(Aa,"$&/")+"/"),p(X,E,N,"",function(He){return He})):X!=null&&(Dt(X)&&(X=Va(X,N+(X.key==null||y&&y.key===X.key?"":(""+X.key).replace(Aa,"$&/")+"/")+nl)),E.push(X)),1;nl=0;var Yl=H===""?".":H+":";if(At(y))for(var Sl=0;Sl>>1,rl=p[fl];if(0>>1;flD(N,w))HD(X,N)?(p[fl]=X,p[H]=w,fl=H):(p[fl]=N,p[E]=w,fl=E);else if(HD(X,w))p[fl]=X,p[H]=w,fl=H;else break l}}return M}function D(p,M){var w=p.sortIndex-M.sortIndex;return w!==0?w:p.id-M.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var B=performance;s.unstable_now=function(){return B.now()}}else{var x=Date,$=x.now();s.unstable_now=function(){return x.now()-$}}var U=[],A=[],V=1,C=null,I=3,ul=!1,Gl=!1,jl=!1,Ct=!1,kl=typeof setTimeout=="function"?setTimeout:null,It=typeof clearTimeout=="function"?clearTimeout:null,Bl=typeof setImmediate<"u"?setImmediate:null;function ft(p){for(var M=S(A);M!==null;){if(M.callback===null)d(A);else if(M.startTime<=p)d(A),M.sortIndex=M.expirationTime,f(U,M);else break;M=S(A)}}function At(p){if(jl=!1,ft(p),!Gl)if(S(U)!==null)Gl=!0,wl||(wl=!0,Xl());else{var M=S(A);M!==null&&_t(At,M.startTime-p)}}var wl=!1,P=-1,Ql=5,Ot=-1;function Va(){return Ct?!0:!(s.unstable_now()-Otp&&Va());){var fl=C.callback;if(typeof fl=="function"){C.callback=null,I=C.priorityLevel;var rl=fl(C.expirationTime<=p);if(p=s.unstable_now(),typeof rl=="function"){C.callback=rl,ft(p),M=!0;break t}C===S(U)&&d(U),ft(p)}else d(U);C=S(U)}if(C!==null)M=!0;else{var y=S(A);y!==null&&_t(At,y.startTime-p),M=!1}}break l}finally{C=null,I=w,ul=!1}M=void 0}}finally{M?Xl():wl=!1}}}var Xl;if(typeof Bl=="function")Xl=function(){Bl(Dt)};else if(typeof MessageChannel<"u"){var Aa=new MessageChannel,Ht=Aa.port2;Aa.port1.onmessage=Dt,Xl=function(){Ht.postMessage(null)}}else Xl=function(){kl(Dt,0)};function _t(p,M){P=kl(function(){p(s.unstable_now())},M)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(p){p.callback=null},s.unstable_forceFrameRate=function(p){0>p||125fl?(p.sortIndex=w,f(A,p),S(U)===null&&p===S(A)&&(jl?(It(P),P=-1):jl=!0,_t(At,w-fl))):(p.sortIndex=rl,f(U,p),Gl||ul||(Gl=!0,wl||(wl=!0,Xl()))),p},s.unstable_shouldYield=Va,s.unstable_wrapCallback=function(p){var M=I;return function(){var w=I;I=M;try{return p.apply(this,arguments)}finally{I=w}}}})(Ef)),Ef}var Vr;function Gm(){return Vr||(Vr=1,Tf.exports=xm()),Tf.exports}var Af={exports:{}},ql={};var Kr;function wm(){if(Kr)return ql;Kr=1;var s=Rf();function f(U){var A="https://react.dev/errors/"+U;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}return s(),Af.exports=wm(),Af.exports}var Wr;function Xm(){if(Wr)return Du;Wr=1;var s=Gm(),f=Rf(),S=Qm();function d(l){var t="https://react.dev/errors/"+l;if(1rl||(l.current=fl[rl],fl[rl]=null,rl--)}function N(l,t){rl++,fl[rl]=l.current,l.current=t}var H=y(null),X=y(null),K=y(null),nl=y(null);function Yl(l,t){switch(N(K,t),N(X,l),N(H,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?ur(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=ur(t),l=nr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}E(H),N(H,l)}function Sl(){E(H),E(X),E(K)}function He(l){l.memoizedState!==null&&N(nl,l);var t=H.current,a=nr(t,l.type);t!==a&&(N(X,l),N(H,a))}function Uu(l){X.current===l&&(E(H),E(X)),nl.current===l&&(E(nl),zu._currentValue=w)}var Pn,Hf;function Oa(l){if(Pn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pn=t&&t[1]||"",Hf=-1)":-1u||o[e]!==v[u]){var _=` -`+o[e].replace(" at new "," at ");return l.displayName&&_.includes("")&&(_=_.replace("",l.displayName)),_}while(1<=e&&0<=u);break}}}finally{li=!1,Error.prepareStackTrace=a}return(a=l?l.displayName||l.name:"")?Oa(a):""}function uy(l,t){switch(l.tag){case 26:case 27:case 5:return Oa(l.type);case 16:return Oa("Lazy");case 13:return l.child!==t&&t!==null?Oa("Suspense Fallback"):Oa("Suspense");case 19:return Oa("SuspenseList");case 0:case 15:return ti(l.type,!1);case 11:return ti(l.type.render,!1);case 1:return ti(l.type,!0);case 31:return Oa("Activity");default:return""}}function Bf(l){try{var t="",a=null;do t+=uy(l,a),a=l,l=l.return;while(l);return t}catch(e){return` -Error generating stack: `+e.message+` -`+e.stack}}var ai=Object.prototype.hasOwnProperty,ei=s.unstable_scheduleCallback,ui=s.unstable_cancelCallback,ny=s.unstable_shouldYield,iy=s.unstable_requestPaint,Fl=s.unstable_now,cy=s.unstable_getCurrentPriorityLevel,qf=s.unstable_ImmediatePriority,jf=s.unstable_UserBlockingPriority,Ru=s.unstable_NormalPriority,fy=s.unstable_LowPriority,Yf=s.unstable_IdlePriority,sy=s.log,oy=s.unstable_setDisableYieldValue,Be=null,Il=null;function Pt(l){if(typeof sy=="function"&&oy(l),Il&&typeof Il.setStrictMode=="function")try{Il.setStrictMode(Be,l)}catch{}}var Pl=Math.clz32?Math.clz32:yy,dy=Math.log,ry=Math.LN2;function yy(l){return l>>>=0,l===0?32:31-(dy(l)/ry|0)|0}var Cu=256,Hu=262144,Bu=4194304;function Da(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function qu(l,t,a){var e=l.pendingLanes;if(e===0)return 0;var u=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=e&134217727;return c!==0?(e=c&~n,e!==0?u=Da(e):(i&=c,i!==0?u=Da(i):a||(a=c&~l,a!==0&&(u=Da(a))))):(c=e&~n,c!==0?u=Da(c):i!==0?u=Da(i):a||(a=e&~l,a!==0&&(u=Da(a)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:u}function qe(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function hy(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xf(){var l=Bu;return Bu<<=1,(Bu&62914560)===0&&(Bu=4194304),l}function ni(l){for(var t=[],a=0;31>a;a++)t.push(l);return t}function je(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function my(l,t,a,e,u,n){var i=l.pendingLanes;l.pendingLanes=a,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=a,l.entangledLanes&=a,l.errorRecoveryDisabledLanes&=a,l.shellSuspendCounter=0;var c=l.entanglements,o=l.expirationTimes,v=l.hiddenUpdates;for(a=i&~a;0"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var py=/[\n"\\]/g;function ot(l){return l.replace(py,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function di(l,t,a,e,u,n,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+st(t)):l.value!==""+st(t)&&(l.value=""+st(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?ri(l,i,st(t)):a!=null?ri(l,i,st(a)):e!=null&&l.removeAttribute("value"),u==null&&n!=null&&(l.defaultChecked=!!n),u!=null&&(l.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+st(c):l.removeAttribute("name")}function Ff(l,t,a,e,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){oi(l);return}a=a!=null?""+st(a):"",t=t!=null?""+st(t):a,c||t===l.value||(l.value=t),l.defaultValue=t}e=e??u,e=typeof e!="function"&&typeof e!="symbol"&&!!e,l.checked=c?l.checked:!!e,l.defaultChecked=!!e,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),oi(l)}function ri(l,t,a){t==="number"&&xu(l.ownerDocument)===l||l.defaultValue===""+a||(l.defaultValue=""+a)}function Fa(l,t,a,e){if(l=l.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gi=!1;if(jt)try{var we={};Object.defineProperty(we,"passive",{get:function(){gi=!0}}),window.addEventListener("test",we,we),window.removeEventListener("test",we,we)}catch{gi=!1}var ta=null,bi=null,wu=null;function us(){if(wu)return wu;var l,t=bi,a=t.length,e,u="value"in ta?ta.value:ta.textContent,n=u.length;for(l=0;l=Le),os=" ",ds=!1;function rs(l,t){switch(l){case"keyup":return $y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ys(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var te=!1;function Fy(l,t){switch(l){case"compositionend":return ys(t);case"keypress":return t.which!==32?null:(ds=!0,os);case"textInput":return l=t.data,l===os&&ds?null:l;default:return null}}function Iy(l,t){if(te)return l==="compositionend"||!Ti&&rs(l,t)?(l=us(),wu=bi=ta=null,te=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-l};l=e}l:{for(;a;){if(a.nextSibling){a=a.nextSibling;break l}a=a.parentNode}a=void 0}a=ps(a)}}function Ts(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?Ts(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function Es(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=xu(l.document);t instanceof l.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)l=t.contentWindow;else break;t=xu(l.document)}return t}function Oi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var ih=jt&&"documentMode"in document&&11>=document.documentMode,ae=null,Di=null,Je=null,Mi=!1;function As(l,t,a){var e=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mi||ae==null||ae!==xu(e)||(e=ae,"selectionStart"in e&&Oi(e)?e={start:e.selectionStart,end:e.selectionEnd}:(e=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection(),e={anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}),Je&&Ke(Je,e)||(Je=e,e=Bn(Di,"onSelect"),0>=i,u-=i,Mt=1<<32-Pl(t)+u|a<Z?(F=q,q=null):F=q.sibling;var al=g(h,q,m[Z],z);if(al===null){q===null&&(q=F);break}l&&q&&al.alternate===null&&t(h,q),r=n(al,r,Z),tl===null?Y=al:tl.sibling=al,tl=al,q=F}if(Z===m.length)return a(h,q),ll&&xt(h,Z),Y;if(q===null){for(;ZZ?(F=q,q=null):F=q.sibling;var Ta=g(h,q,al.value,z);if(Ta===null){q===null&&(q=F);break}l&&q&&Ta.alternate===null&&t(h,q),r=n(Ta,r,Z),tl===null?Y=Ta:tl.sibling=Ta,tl=Ta,q=F}if(al.done)return a(h,q),ll&&xt(h,Z),Y;if(q===null){for(;!al.done;Z++,al=m.next())al=T(h,al.value,z),al!==null&&(r=n(al,r,Z),tl===null?Y=al:tl.sibling=al,tl=al);return ll&&xt(h,Z),Y}for(q=e(q);!al.done;Z++,al=m.next())al=b(q,h,Z,al.value,z),al!==null&&(l&&al.alternate!==null&&q.delete(al.key===null?Z:al.key),r=n(al,r,Z),tl===null?Y=al:tl.sibling=al,tl=al);return l&&q.forEach(function(Om){return t(h,Om)}),ll&&xt(h,Z),Y}function dl(h,r,m,z){if(typeof m=="object"&&m!==null&&m.type===jl&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ul:l:{for(var Y=m.key;r!==null;){if(r.key===Y){if(Y=m.type,Y===jl){if(r.tag===7){a(h,r.sibling),z=u(r,m.props.children),z.return=h,h=z;break l}}else if(r.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Ql&&xa(Y)===r.type){a(h,r.sibling),z=u(r,m.props),Pe(z,m),z.return=h,h=z;break l}a(h,r);break}else t(h,r);r=r.sibling}m.type===jl?(z=Ha(m.props.children,h.mode,z,m.key),z.return=h,h=z):(z=ku(m.type,m.key,m.props,null,h.mode,z),Pe(z,m),z.return=h,h=z)}return i(h);case Gl:l:{for(Y=m.key;r!==null;){if(r.key===Y)if(r.tag===4&&r.stateNode.containerInfo===m.containerInfo&&r.stateNode.implementation===m.implementation){a(h,r.sibling),z=u(r,m.children||[]),z.return=h,h=z;break l}else{a(h,r);break}else t(h,r);r=r.sibling}z=qi(m,h.mode,z),z.return=h,h=z}return i(h);case Ql:return m=xa(m),dl(h,r,m,z)}if(_t(m))return R(h,r,m,z);if(Xl(m)){if(Y=Xl(m),typeof Y!="function")throw Error(d(150));return m=Y.call(m),G(h,r,m,z)}if(typeof m.then=="function")return dl(h,r,en(m),z);if(m.$$typeof===Bl)return dl(h,r,Pu(h,m),z);un(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,r!==null&&r.tag===6?(a(h,r.sibling),z=u(r,m),z.return=h,h=z):(a(h,r),z=Bi(m,h.mode,z),z.return=h,h=z),i(h)):a(h,r)}return function(h,r,m,z){try{Ie=0;var Y=dl(h,r,m,z);return ye=null,Y}catch(q){if(q===re||q===tn)throw q;var tl=tt(29,q,null,h.mode);return tl.lanes=z,tl.return=h,tl}}}var wa=Ws(!0),$s=Ws(!1),ia=!1;function Ji(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wi(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ca(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function fa(l,t,a){var e=l.updateQueue;if(e===null)return null;if(e=e.shared,(el&2)!==0){var u=e.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),e.pending=t,t=$u(l),Cs(l,null,a),t}return Wu(l,e,t,a),$u(l)}function lu(l,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,wf(l,a)}}function $i(l,t){var a=l.updateQueue,e=l.alternate;if(e!==null&&(e=e.updateQueue,a===e)){var u=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?u=n=t:n=n.next=t}else u=n=t;a={baseState:e.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:e.shared,callbacks:e.callbacks},l.updateQueue=a;return}l=a.lastBaseUpdate,l===null?a.firstBaseUpdate=t:l.next=t,a.lastBaseUpdate=t}var ki=!1;function tu(){if(ki){var l=de;if(l!==null)throw l}}function au(l,t,a,e){ki=!1;var u=l.updateQueue;ia=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var o=c,v=o.next;o.next=null,i===null?n=v:i.next=v,i=o;var _=l.alternate;_!==null&&(_=_.updateQueue,c=_.lastBaseUpdate,c!==i&&(c===null?_.firstBaseUpdate=v:c.next=v,_.lastBaseUpdate=o))}if(n!==null){var T=u.baseState;i=0,_=v=o=null,c=n;do{var g=c.lane&-536870913,b=g!==c.lane;if(b?(k&g)===g:(e&g)===g){g!==0&&g===oe&&(ki=!0),_!==null&&(_=_.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var R=l,G=c;g=t;var dl=a;switch(G.tag){case 1:if(R=G.payload,typeof R=="function"){T=R.call(dl,T,g);break l}T=R;break l;case 3:R.flags=R.flags&-65537|128;case 0:if(R=G.payload,g=typeof R=="function"?R.call(dl,T,g):R,g==null)break l;T=C({},T,g);break l;case 2:ia=!0}}g=c.callback,g!==null&&(l.flags|=64,b&&(l.flags|=8192),b=u.callbacks,b===null?u.callbacks=[g]:b.push(g))}else b={lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},_===null?(v=_=b,o=T):_=_.next=b,i|=g;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;b=c,c=b.next,b.next=null,u.lastBaseUpdate=b,u.shared.pending=null}}while(!0);_===null&&(o=T),u.baseState=o,u.firstBaseUpdate=v,u.lastBaseUpdate=_,n===null&&(u.shared.lanes=0),ya|=i,l.lanes=i,l.memoizedState=T}}function ks(l,t){if(typeof l!="function")throw Error(d(191,l));l.call(t)}function Fs(l,t){var a=l.callbacks;if(a!==null)for(l.callbacks=null,l=0;ln?n:8;var i=p.T,c={};p.T=c,mc(l,!1,t,a);try{var o=u(),v=p.S;if(v!==null&&v(c,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var _=mh(o,e);nu(l,t,_,it(l))}else nu(l,t,e,it(l))}catch(T){nu(l,t,{then:function(){},status:"rejected",reason:T},it())}finally{M.p=n,i!==null&&c.types!==null&&(i.types=c.types),p.T=i}}function ph(){}function yc(l,t,a,e){if(l.tag!==5)throw Error(d(476));var u=Uo(l).queue;No(l,u,t,w,a===null?ph:function(){return Ro(l),a(e)})}function Uo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:w},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:a},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Ro(l){var t=Uo(l);t.next===null&&(t=l.alternate.memoizedState),nu(l,t.next.queue,{},it())}function hc(){return Rl(zu)}function Co(){return pl().memoizedState}function Ho(){return pl().memoizedState}function zh(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var a=it();l=ca(a);var e=fa(t,l,a);e!==null&&($l(e,t,a),lu(e,t,a)),t={cache:Li()},l.payload=t;return}t=t.return}}function Th(l,t,a){var e=it();a={lane:e,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mn(l)?qo(t,a):(a=Ci(l,t,a,e),a!==null&&($l(a,l,e),jo(a,t,e)))}function Bo(l,t,a){var e=it();nu(l,t,a,e)}function nu(l,t,a,e){var u={lane:e,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(mn(l))qo(t,u);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,a);if(u.hasEagerState=!0,u.eagerState=c,lt(c,i))return Wu(l,t,u,0),yl===null&&Ju(),!1}catch{}if(a=Ci(l,t,u,e),a!==null)return $l(a,l,e),jo(a,t,e),!0}return!1}function mc(l,t,a,e){if(e={lane:2,revertLane:Jc(),gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},mn(l)){if(t)throw Error(d(479))}else t=Ci(l,a,e,2),t!==null&&$l(t,l,2)}function mn(l){var t=l.alternate;return l===L||t!==null&&t===L}function qo(l,t){me=fn=!0;var a=l.pending;a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t}function jo(l,t,a){if((a&4194048)!==0){var e=t.lanes;e&=l.pendingLanes,a|=e,t.lanes=a,wf(l,a)}}var iu={readContext:Rl,use:dn,useCallback:gl,useContext:gl,useEffect:gl,useImperativeHandle:gl,useLayoutEffect:gl,useInsertionEffect:gl,useMemo:gl,useReducer:gl,useRef:gl,useState:gl,useDebugValue:gl,useDeferredValue:gl,useTransition:gl,useSyncExternalStore:gl,useId:gl,useHostTransitionStatus:gl,useFormState:gl,useActionState:gl,useOptimistic:gl,useMemoCache:gl,useCacheRefresh:gl};iu.useEffectEvent=gl;var Yo={readContext:Rl,use:dn,useCallback:function(l,t){return xl().memoizedState=[l,t===void 0?null:t],l},useContext:Rl,useEffect:_o,useImperativeHandle:function(l,t,a){a=a!=null?a.concat([l]):null,yn(4194308,4,Eo.bind(null,t,l),a)},useLayoutEffect:function(l,t){return yn(4194308,4,l,t)},useInsertionEffect:function(l,t){yn(4,2,l,t)},useMemo:function(l,t){var a=xl();t=t===void 0?null:t;var e=l();if(Qa){Pt(!0);try{l()}finally{Pt(!1)}}return a.memoizedState=[e,t],e},useReducer:function(l,t,a){var e=xl();if(a!==void 0){var u=a(t);if(Qa){Pt(!0);try{a(t)}finally{Pt(!1)}}}else u=t;return e.memoizedState=e.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},e.queue=l,l=l.dispatch=Th.bind(null,L,l),[e.memoizedState,l]},useRef:function(l){var t=xl();return l={current:l},t.memoizedState=l},useState:function(l){l=fc(l);var t=l.queue,a=Bo.bind(null,L,t);return t.dispatch=a,[l.memoizedState,a]},useDebugValue:dc,useDeferredValue:function(l,t){var a=xl();return rc(a,l,t)},useTransition:function(){var l=fc(!1);return l=No.bind(null,L,l.queue,!0,!1),xl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,a){var e=L,u=xl();if(ll){if(a===void 0)throw Error(d(407));a=a()}else{if(a=t(),yl===null)throw Error(d(349));(k&127)!==0||eo(e,t,a)}u.memoizedState=a;var n={value:a,getSnapshot:t};return u.queue=n,_o(no.bind(null,e,n,l),[l]),e.flags|=2048,ge(9,{destroy:void 0},uo.bind(null,e,n,a,t),null),a},useId:function(){var l=xl(),t=yl.identifierPrefix;if(ll){var a=Nt,e=Mt;a=(e&~(1<<32-Pl(e)-1)).toString(32)+a,t="_"+t+"R_"+a,a=sn++,0<\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof e.is=="string"?i.createElement("select",{is:e.is}):i.createElement("select"),e.multiple?n.multiple=!0:e.size&&(n.size=e.size);break;default:n=typeof e.is=="string"?i.createElement(u,{is:e.is}):i.createElement(u)}}n[Nl]=t,n[Ll]=e;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;l:switch(Hl(n,u,e),u){case"button":case"input":case"select":case"textarea":e=!!e.autoFocus;break l;case"img":e=!0;break l;default:e=!1}e&&Zt(t)}}return ml(t),Nc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,a),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==e&&Zt(t);else{if(typeof e!="string"&&t.stateNode===null)throw Error(d(166));if(l=K.current,fe(t)){if(l=t.stateNode,a=t.memoizedProps,e=null,u=Ul,u!==null)switch(u.tag){case 27:case 5:e=u.memoizedProps}l[Nl]=t,l=!!(l.nodeValue===a||e!==null&&e.suppressHydrationWarning===!0||ar(l.nodeValue,a)),l||ua(t,!0)}else l=qn(l).createTextNode(e),l[Nl]=t,t.stateNode=l}return ml(t),null;case 31:if(a=t.memoizedState,l===null||l.memoizedState!==null){if(e=fe(t),a!==null){if(l===null){if(!e)throw Error(d(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(d(557));l[Nl]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ml(t),l=!1}else a=Gi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=a),l=!0;if(!l)return t.flags&256?(et(t),t):(et(t),null);if((t.flags&128)!==0)throw Error(d(558))}return ml(t),null;case 13:if(e=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(u=fe(t),e!==null&&e.dehydrated!==null){if(l===null){if(!u)throw Error(d(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(d(317));u[Nl]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ml(t),u=!1}else u=Gi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(et(t),t):(et(t),null)}return et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=e!==null,l=l!==null&&l.memoizedState!==null,a&&(e=t.child,u=null,e.alternate!==null&&e.alternate.memoizedState!==null&&e.alternate.memoizedState.cachePool!==null&&(u=e.alternate.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==u&&(e.flags|=2048)),a!==l&&a&&(t.child.flags|=8192),_n(t,t.updateQueue),ml(t),null);case 4:return Sl(),l===null&&Fc(t.stateNode.containerInfo),ml(t),null;case 10:return wt(t.type),ml(t),null;case 19:if(E(_l),e=t.memoizedState,e===null)return ml(t),null;if(u=(t.flags&128)!==0,n=e.rendering,n===null)if(u)fu(e,!1);else{if(bl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=cn(l),n!==null){for(t.flags|=128,fu(e,!1),l=n.updateQueue,t.updateQueue=l,_n(t,l),t.subtreeFlags=0,l=a,a=t.child;a!==null;)Hs(a,l),a=a.sibling;return N(_l,_l.current&1|2),ll&&xt(t,e.treeForkCount),t.child}l=l.sibling}e.tail!==null&&Fl()>An&&(t.flags|=128,u=!0,fu(e,!1),t.lanes=4194304)}else{if(!u)if(l=cn(n),l!==null){if(t.flags|=128,u=!0,l=l.updateQueue,t.updateQueue=l,_n(t,l),fu(e,!0),e.tail===null&&e.tailMode==="hidden"&&!n.alternate&&!ll)return ml(t),null}else 2*Fl()-e.renderingStartTime>An&&a!==536870912&&(t.flags|=128,u=!0,fu(e,!1),t.lanes=4194304);e.isBackwards?(n.sibling=t.child,t.child=n):(l=e.last,l!==null?l.sibling=n:t.child=n,e.last=n)}return e.tail!==null?(l=e.tail,e.rendering=l,e.tail=l.sibling,e.renderingStartTime=Fl(),l.sibling=null,a=_l.current,N(_l,u?a&1|2:a&1),ll&&xt(t,e.treeForkCount),l):(ml(t),null);case 22:case 23:return et(t),Ii(),e=t.memoizedState!==null,l!==null?l.memoizedState!==null!==e&&(t.flags|=8192):e&&(t.flags|=8192),e?(a&536870912)!==0&&(t.flags&128)===0&&(ml(t),t.subtreeFlags&6&&(t.flags|=8192)):ml(t),a=t.updateQueue,a!==null&&_n(t,a.retryQueue),a=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(t.flags|=2048),l!==null&&E(Ya),null;case 24:return a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wt(zl),ml(t),null;case 25:return null;case 30:return null}throw Error(d(156,t.tag))}function Mh(l,t){switch(Yi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return wt(zl),Sl(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Uu(t),null;case 31:if(t.memoizedState!==null){if(et(t),t.alternate===null)throw Error(d(340));Ba()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(et(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(d(340));Ba()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return E(_l),null;case 4:return Sl(),null;case 10:return wt(t.type),null;case 22:case 23:return et(t),Ii(),l!==null&&E(Ya),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return wt(zl),null;case 25:return null;default:return null}}function cd(l,t){switch(Yi(t),t.tag){case 3:wt(zl),Sl();break;case 26:case 27:case 5:Uu(t);break;case 4:Sl();break;case 31:t.memoizedState!==null&&et(t);break;case 13:et(t);break;case 19:E(_l);break;case 10:wt(t.type);break;case 22:case 23:et(t),Ii(),l!==null&&E(Ya);break;case 24:wt(zl)}}function su(l,t){try{var a=t.updateQueue,e=a!==null?a.lastEffect:null;if(e!==null){var u=e.next;a=u;do{if((a.tag&l)===l){e=void 0;var n=a.create,i=a.inst;e=n(),i.destroy=e}a=a.next}while(a!==u)}}catch(c){cl(t,t.return,c)}}function da(l,t,a){try{var e=t.updateQueue,u=e!==null?e.lastEffect:null;if(u!==null){var n=u.next;e=n;do{if((e.tag&l)===l){var i=e.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=t;var o=a,v=c;try{v()}catch(_){cl(u,o,_)}}}e=e.next}while(e!==n)}}catch(_){cl(t,t.return,_)}}function fd(l){var t=l.updateQueue;if(t!==null){var a=l.stateNode;try{Fs(t,a)}catch(e){cl(l,l.return,e)}}}function sd(l,t,a){a.props=Xa(l.type,l.memoizedProps),a.state=l.memoizedState;try{a.componentWillUnmount()}catch(e){cl(l,t,e)}}function ou(l,t){try{var a=l.ref;if(a!==null){switch(l.tag){case 26:case 27:case 5:var e=l.stateNode;break;case 30:e=l.stateNode;break;default:e=l.stateNode}typeof a=="function"?l.refCleanup=a(e):a.current=e}}catch(u){cl(l,t,u)}}function Ut(l,t){var a=l.ref,e=l.refCleanup;if(a!==null)if(typeof e=="function")try{e()}catch(u){cl(l,t,u)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){cl(l,t,u)}else a.current=null}function od(l){var t=l.type,a=l.memoizedProps,e=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break l;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}catch(u){cl(l,l.return,u)}}function Uc(l,t,a){try{var e=l.stateNode;kh(e,l.type,a,t),e[Ll]=t}catch(u){cl(l,l.return,u)}}function dd(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&ba(l.type)||l.tag===4}function Rc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||dd(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&ba(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Cc(l,t,a){var e=l.tag;if(e===5||e===6)l=l.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(l,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(l),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=qt));else if(e!==4&&(e===27&&ba(l.type)&&(a=l.stateNode,t=null),l=l.child,l!==null))for(Cc(l,t,a),l=l.sibling;l!==null;)Cc(l,t,a),l=l.sibling}function pn(l,t,a){var e=l.tag;if(e===5||e===6)l=l.stateNode,t?a.insertBefore(l,t):a.appendChild(l);else if(e!==4&&(e===27&&ba(l.type)&&(a=l.stateNode),l=l.child,l!==null))for(pn(l,t,a),l=l.sibling;l!==null;)pn(l,t,a),l=l.sibling}function rd(l){var t=l.stateNode,a=l.memoizedProps;try{for(var e=l.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Hl(t,e,a),t[Nl]=l,t[Ll]=a}catch(n){cl(l,l.return,n)}}var Vt=!1,Al=!1,Hc=!1,yd=typeof WeakSet=="function"?WeakSet:Set,Ml=null;function Nh(l,t){if(l=l.containerInfo,lf=Xn,l=Es(l),Oi(l)){if("selectionStart"in l)var a={start:l.selectionStart,end:l.selectionEnd};else l:{a=(a=l.ownerDocument)&&a.defaultView||window;var e=a.getSelection&&a.getSelection();if(e&&e.rangeCount!==0){a=e.anchorNode;var u=e.anchorOffset,n=e.focusNode;e=e.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break l}var i=0,c=-1,o=-1,v=0,_=0,T=l,g=null;t:for(;;){for(var b;T!==a||u!==0&&T.nodeType!==3||(c=i+u),T!==n||e!==0&&T.nodeType!==3||(o=i+e),T.nodeType===3&&(i+=T.nodeValue.length),(b=T.firstChild)!==null;)g=T,T=b;for(;;){if(T===l)break t;if(g===a&&++v===u&&(c=i),g===n&&++_===e&&(o=i),(b=T.nextSibling)!==null)break;T=g,g=T.parentNode}T=b}a=c===-1||o===-1?null:{start:c,end:o}}else a=null}a=a||{start:0,end:0}}else a=null;for(tf={focusedElem:l,selectionRange:a},Xn=!1,Ml=t;Ml!==null;)if(t=Ml,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Ml=l;else for(;Ml!==null;){switch(t=Ml,n=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(a=0;a title"))),Hl(n,e,a),n[Nl]=l,Dl(n),e=n;break l;case"link":var i=Sr("link","href",u).get(e+(a.href||""));if(i){for(var c=0;cdl&&(i=dl,dl=G,G=i);var h=zs(c,G),r=zs(c,dl);if(h&&r&&(b.rangeCount!==1||b.anchorNode!==h.node||b.anchorOffset!==h.offset||b.focusNode!==r.node||b.focusOffset!==r.offset)){var m=T.createRange();m.setStart(h.node,h.offset),b.removeAllRanges(),G>dl?(b.addRange(m),b.extend(r.node,r.offset)):(m.setEnd(r.node,r.offset),b.addRange(m))}}}}for(T=[],b=c;b=b.parentNode;)b.nodeType===1&&T.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;ca?32:a,p.T=null,a=wc,wc=null;var n=ma,i=kt;if(Ol=0,ze=ma=null,kt=0,(el&6)!==0)throw Error(d(331));var c=el;if(el|=4,Ed(n.current),pd(n,n.current,i,a),el=c,vu(0,!1),Il&&typeof Il.onPostCommitFiberRoot=="function")try{Il.onPostCommitFiberRoot(Be,n)}catch{}return!0}finally{M.p=u,p.T=e,Xd(l,t)}}function Zd(l,t,a){t=rt(a,t),t=Sc(l.stateNode,t,2),l=fa(l,t,2),l!==null&&(je(l,2),Rt(l))}function cl(l,t,a){if(l.tag===3)Zd(l,l,a);else for(;t!==null;){if(t.tag===3){Zd(t,l,a);break}else if(t.tag===1){var e=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof e.componentDidCatch=="function"&&(ha===null||!ha.has(e))){l=rt(a,l),a=Vo(2),e=fa(t,a,2),e!==null&&(Ko(a,e,t,l),je(e,2),Rt(e));break}}t=t.return}}function Zc(l,t,a){var e=l.pingCache;if(e===null){e=l.pingCache=new Ch;var u=new Set;e.set(t,u)}else u=e.get(t),u===void 0&&(u=new Set,e.set(t,u));u.has(a)||(jc=!0,u.add(a),l=Yh.bind(null,l,t,a),t.then(l,l))}function Yh(l,t,a){var e=l.pingCache;e!==null&&e.delete(t),l.pingedLanes|=l.suspendedLanes&a,l.warmLanes&=~a,yl===l&&(k&a)===a&&(bl===4||bl===3&&(k&62914560)===k&&300>Fl()-En?(el&2)===0&&Te(l,0):Yc|=a,pe===k&&(pe=0)),Rt(l)}function Vd(l,t){t===0&&(t=xf()),l=Ca(l,t),l!==null&&(je(l,t),Rt(l))}function xh(l){var t=l.memoizedState,a=0;t!==null&&(a=t.retryLane),Vd(l,a)}function Gh(l,t){var a=0;switch(l.tag){case 31:case 13:var e=l.stateNode,u=l.memoizedState;u!==null&&(a=u.retryLane);break;case 19:e=l.stateNode;break;case 22:e=l.stateNode._retryCache;break;default:throw Error(d(314))}e!==null&&e.delete(t),Vd(l,a)}function wh(l,t){return ei(l,t)}var Rn=null,Ae=null,Vc=!1,Cn=!1,Kc=!1,ga=0;function Rt(l){l!==Ae&&l.next===null&&(Ae===null?Rn=Ae=l:Ae=Ae.next=l),Cn=!0,Vc||(Vc=!0,Xh())}function vu(l,t){if(!Kc&&Cn){Kc=!0;do for(var a=!1,e=Rn;e!==null;){if(l!==0){var u=e.pendingLanes;if(u===0)var n=0;else{var i=e.suspendedLanes,c=e.pingedLanes;n=(1<<31-Pl(42|l)+1)-1,n&=u&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,$d(e,n))}else n=k,n=qu(e,e===yl?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),(n&3)===0||qe(e,n)||(a=!0,$d(e,n));e=e.next}while(a);Kc=!1}}function Qh(){Kd()}function Kd(){Cn=Vc=!1;var l=0;ga!==0&&Ih()&&(l=ga);for(var t=Fl(),a=null,e=Rn;e!==null;){var u=e.next,n=Jd(e,t);n===0?(e.next=null,a===null?Rn=u:a.next=u,u===null&&(Ae=a)):(a=e,(l!==0||(n&3)!==0)&&(Cn=!0)),e=u}Ol!==0&&Ol!==5||vu(l),ga!==0&&(ga=0)}function Jd(l,t){for(var a=l.suspendedLanes,e=l.pingedLanes,u=l.expirationTimes,n=l.pendingLanes&-62914561;0c)break;var _=o.transferSize,T=o.initiatorType;_&&er(T)&&(o=o.responseEnd,i+=_*(o"u"?null:document;function mr(l,t,a){var e=Oe;if(e&&typeof t=="string"&&t){var u=ot(t);u='link[rel="'+l+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),hr.has(u)||(hr.add(u),l={rel:l,crossOrigin:a,href:t},e.querySelector(u)===null&&(t=e.createElement("link"),Hl(t,"link",l),Dl(t),e.head.appendChild(t)))}}function cm(l){Ft.D(l),mr("dns-prefetch",l,null)}function fm(l,t){Ft.C(l,t),mr("preconnect",l,t)}function sm(l,t,a){Ft.L(l,t,a);var e=Oe;if(e&&l&&t){var u='link[rel="preload"][as="'+ot(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+ot(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+ot(a.imageSizes)+'"]')):u+='[href="'+ot(l)+'"]';var n=u;switch(t){case"style":n=De(l);break;case"script":n=Me(l)}bt.has(n)||(l=C({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:l,as:t},a),bt.set(n,l),e.querySelector(u)!==null||t==="style"&&e.querySelector(_u(n))||t==="script"&&e.querySelector(pu(n))||(t=e.createElement("link"),Hl(t,"link",l),Dl(t),e.head.appendChild(t)))}}function om(l,t){Ft.m(l,t);var a=Oe;if(a&&l){var e=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ot(e)+'"][href="'+ot(l)+'"]',n=u;switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Me(l)}if(!bt.has(n)&&(l=C({rel:"modulepreload",href:l},t),bt.set(n,l),a.querySelector(u)===null)){switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(pu(n)))return}e=a.createElement("link"),Hl(e,"link",l),Dl(e),a.head.appendChild(e)}}}function dm(l,t,a){Ft.S(l,t,a);var e=Oe;if(e&&l){var u=$a(e).hoistableStyles,n=De(l);t=t||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(_u(n)))c.loading=5;else{l=C({rel:"stylesheet",href:l,"data-precedence":t},a),(a=bt.get(n))&&sf(l,a);var o=i=e.createElement("link");Dl(o),Hl(o,"link",l),o._p=new Promise(function(v,_){o.onload=v,o.onerror=_}),o.addEventListener("load",function(){c.loading|=1}),o.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Yn(i,t,e)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function rm(l,t){Ft.X(l,t);var a=Oe;if(a&&l){var e=$a(a).hoistableScripts,u=Me(l),n=e.get(u);n||(n=a.querySelector(pu(u)),n||(l=C({src:l,async:!0},t),(t=bt.get(u))&&of(l,t),n=a.createElement("script"),Dl(n),Hl(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function ym(l,t){Ft.M(l,t);var a=Oe;if(a&&l){var e=$a(a).hoistableScripts,u=Me(l),n=e.get(u);n||(n=a.querySelector(pu(u)),n||(l=C({src:l,async:!0,type:"module"},t),(t=bt.get(u))&&of(l,t),n=a.createElement("script"),Dl(n),Hl(n,"link",l),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function vr(l,t,a,e){var u=(u=K.current)?jn(u):null;if(!u)throw Error(d(446));switch(l){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=De(a.href),a=$a(u).hoistableStyles,e=a.get(t),e||(e={type:"style",instance:null,count:0,state:null},a.set(t,e)),e):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){l=De(a.href);var n=$a(u).hoistableStyles,i=n.get(l);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=u.querySelector(_u(l)))&&!n._p&&(i.instance=n,i.state.loading=5),bt.has(l)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},bt.set(l,a),n||hm(u,l,a,i.state))),t&&e===null)throw Error(d(528,""));return i}if(t&&e!==null)throw Error(d(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Me(a),a=$a(u).hoistableScripts,e=a.get(t),e||(e={type:"script",instance:null,count:0,state:null},a.set(t,e)),e):{type:"void",instance:null,count:0,state:null};default:throw Error(d(444,l))}}function De(l){return'href="'+ot(l)+'"'}function _u(l){return'link[rel="stylesheet"]['+l+"]"}function gr(l){return C({},l,{"data-precedence":l.precedence,precedence:null})}function hm(l,t,a,e){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?e.loading=1:(t=l.createElement("link"),e.preload=t,t.addEventListener("load",function(){return e.loading|=1}),t.addEventListener("error",function(){return e.loading|=2}),Hl(t,"link",a),Dl(t),l.head.appendChild(t))}function Me(l){return'[src="'+ot(l)+'"]'}function pu(l){return"script[async]"+l}function br(l,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var e=l.querySelector('style[data-href~="'+ot(a.href)+'"]');if(e)return t.instance=e,Dl(e),e;var u=C({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return e=(l.ownerDocument||l).createElement("style"),Dl(e),Hl(e,"style",u),Yn(e,a.precedence,l),t.instance=e;case"stylesheet":u=De(a.href);var n=l.querySelector(_u(u));if(n)return t.state.loading|=4,t.instance=n,Dl(n),n;e=gr(a),(u=bt.get(u))&&sf(e,u),n=(l.ownerDocument||l).createElement("link"),Dl(n);var i=n;return i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Hl(n,"link",e),t.state.loading|=4,Yn(n,a.precedence,l),t.instance=n;case"script":return n=Me(a.src),(u=l.querySelector(pu(n)))?(t.instance=u,Dl(u),u):(e=a,(u=bt.get(n))&&(e=C({},a),of(e,u)),l=l.ownerDocument||l,u=l.createElement("script"),Dl(u),Hl(u,"link",e),l.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(d(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(e=t.instance,t.state.loading|=4,Yn(e,a.precedence,l));return t.instance}function Yn(l,t,a){for(var e=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=e.length?e[e.length-1]:null,n=u,i=0;i title"):null)}function mm(l,t,a){if(a===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(l=t.disabled,typeof t.precedence=="string"&&l==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pr(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function vm(l,t,a,e){if(a.type==="stylesheet"&&(typeof e.media!="string"||matchMedia(e.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=De(e.href),n=t.querySelector(_u(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Gn.bind(l),t.then(l,l)),a.state.loading|=4,a.instance=n,Dl(n);return}n=t.ownerDocument||t,e=gr(e),(u=bt.get(u))&&sf(e,u),n=n.createElement("link"),Dl(n);var i=n;i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Hl(n,"link",e),a.instance=n}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=Gn.bind(l),t.addEventListener("load",a),t.addEventListener("error",a))}}var df=0;function gm(l,t){return l.stylesheets&&l.count===0&&Qn(l,l.stylesheets),0df?50:800)+t);return l.unsuspend=a,function(){l.unsuspend=null,clearTimeout(e),clearTimeout(u)}}:null}function Gn(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qn(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var wn=null;function Qn(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,wn=new Map,t.forEach(bm,l),wn=null,Gn.call(l))}function bm(l,t){if(!(t.state.loading&4)){var a=wn.get(l);if(a)var e=a.get(null);else{a=new Map,wn.set(l,a);for(var u=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}return s(),zf.exports=Xm(),zf.exports}var Zm=Lm();function Vm(){return{currentState(){return O("current_state")},setPin(s){return O("set_pin",{pin:s})},acceptStay(){return O("accept_stay")},dismissCandidate(){return O("dismiss_candidate")},stopGuarding(){return O("stop_guarding")},submitPin(s){return O("submit_pin",{pin:s})},async subscribe(s){const f=await Nf("stay-state-changed",S=>{s(S.payload.view)});return()=>{f()}}}}function Of(s){return s instanceof Error?s.message:typeof s=="string"?s:"Stay could not complete that action."}function ly(s){return{zoom:"Zoom",google_meet:"Google Meet",microsoft_teams:"Microsoft Teams",facetime:"FaceTime",webex:"Webex",slack_huddle:"Slack huddle"}[s]}function Cf(s){return s.title||s.app_name}function Km({meeting:s,error:f,onStop:S}){return j.jsxs("section",{className:"mode-panel mode-panel-active",children:[j.jsx("p",{className:"kicker",children:"Stay is on"}),j.jsx("h2",{children:Cf(s.window)||`${ly(s.app)} is protected.`}),j.jsx("p",{className:"muted",children:"Keep the hour you agreed to."}),j.jsx("div",{className:"action-row",children:j.jsx("button",{type:"button",className:"ghost strong-ghost",onClick:S,children:"Stop"})}),j.jsx("p",{className:"error-line",role:"status",children:f})]})}function ty(s){return s.replace(/\D/g,"").slice(0,4)}function Jm({view:s,error:f,onSubmit:S}){const[d,D]=Et.useState(""),B=f||s.last_error;async function x($){$.preventDefault(),await S(d)&&D("")}return j.jsxs("section",{className:"mode-panel mode-panel-active",children:[j.jsx("p",{className:"kicker",children:"Stay with the call"}),j.jsx("h2",{children:"Enter your PIN."}),j.jsxs("p",{className:"muted",children:[s.focused.app_name,s.focused.title?`: ${Cf(s.focused)}`:""]}),j.jsx("form",{className:"unlock-form",noValidate:!0,onSubmit:x,children:j.jsxs("div",{className:"control-row",children:[j.jsx("input",{"aria-label":"Unlock PIN",inputMode:"numeric",maxLength:4,pattern:"[0-9]{4}",autoComplete:"off",value:d,"aria-invalid":!!B,"aria-describedby":B?"unlock-error":void 0,onChange:$=>D(ty($.currentTarget.value))}),j.jsx("button",{type:"submit",children:"Open"})]})}),j.jsx("p",{id:"unlock-error",className:"error-line",role:"status",children:B})]})}function Wm({candidate:s,canAccept:f,error:S,onAccept:d,onDismiss:D}){return j.jsxs("section",{className:"mode-panel mode-panel-active",children:[j.jsx("p",{className:"kicker",children:ly(s.app)}),j.jsx("h2",{children:"Stay with this meeting?"}),j.jsx("p",{className:"muted",children:Cf(s.window)||s.reason}),j.jsxs("div",{className:"action-row",children:[j.jsx("button",{type:"button",disabled:!f,onClick:d,children:"Stay"}),j.jsx("button",{type:"button",className:"ghost",onClick:D,children:"Not now"})]}),j.jsx("p",{className:"error-line",role:"status",children:S})]})}function $m({error:s,onSave:f}){const[S,d]=Et.useState("");async function D(B){B.preventDefault(),await f(S)&&d("")}return j.jsxs("form",{className:"pin-setup mode-panel",noValidate:!0,onSubmit:D,children:[j.jsx("label",{htmlFor:"setup-pin",children:"Set a four digit PIN"}),j.jsxs("div",{className:"control-row",children:[j.jsx("input",{id:"setup-pin",inputMode:"numeric",maxLength:4,pattern:"[0-9]{4}",autoComplete:"off",value:S,"aria-invalid":!!s,"aria-describedby":s?"setup-error":void 0,onChange:B=>d(ty(B.currentTarget.value))}),j.jsx("button",{type:"submit",children:"Keep"})]}),j.jsx("p",{id:"setup-error",className:"error-line",role:"status",children:s})]})}function km({mode:s,children:f,status:S}){const d=s==="guarding",[D,B]=Et.useState(!1),x=Et.useRef(void 0);Et.useEffect(()=>(d||B(!1),()=>{Df(x.current)}),[d]);function $(){Df(x.current),x.current=void 0,A(!0)}function U(){Df(x.current),x.current=window.setTimeout(()=>{x.current=void 0,A(!1)},180)}function A(I){B(I),In()&&O("set_guarding_panel_expanded",{expanded:I}).catch(()=>{})}function V(I){I.currentTarget.contains(I.relatedTarget)||U()}const C=["stay-shell",`stay-shell-${s}`,d?D?"stay-shell-revealed":"stay-shell-collapsed":null].filter(Boolean).join(" ");return j.jsxs("main",{className:C,"aria-live":"polite",tabIndex:d?0:void 0,onMouseEnter:d?$:void 0,onMouseLeave:d?U:void 0,onFocusCapture:d?$:void 0,onBlurCapture:d?V:void 0,children:[j.jsxs("header",{className:"brand-strip","data-tauri-drag-region":!0,children:[j.jsxs("div",{className:"brand-label","data-tauri-drag-region":!0,children:[j.jsx("p",{className:"eyebrow","data-tauri-drag-region":!0,children:"Stay"}),j.jsx("h1",{"data-tauri-drag-region":!0,children:"Stay focused."})]}),j.jsxs("div",{className:"brand-controls",children:[S?j.jsx("span",{className:"status-pill",children:S}):null,j.jsx("button",{type:"button",className:"window-close","aria-label":"Hide Stay window",onClick:Fm,children:j.jsx("svg",{viewBox:"0 0 12 12",width:"11",height:"11","aria-hidden":"true",children:j.jsx("path",{d:"M2 2L10 10M10 2L2 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})]}),f]})}function Fm(){In()&&Uf().hide().catch(()=>{})}function Df(s){s!==void 0&&window.clearTimeout(s)}const Im={mode:"idle",pin_configured:!1};function Pm({client:s}){const[f,S]=Et.useState(Im),[d,D]=Et.useState(!0),[B,x]=Et.useState(null);Et.useEffect(()=>{let C=!0,I;return s.currentState().then(ul=>{C&&S(ul)}).catch(ul=>{C&&x({target:"mode",message:Of(ul)})}).finally(()=>{C&&D(!1)}),s.subscribe(ul=>{S(ul),x(null)}).then(ul=>{C?I=ul:ul()}).catch(ul=>{C&&x({target:"mode",message:Of(ul)})}),()=>{C=!1,I?.()}},[s]);const $=Et.useMemo(()=>l0(f,d),[d,f]);async function U(C,I="mode"){x(null);try{const ul=await C();return S(ul.view),ul.view.mode!=="locked"||ul.view.last_error===null}catch(ul){return x({target:I,message:Of(ul)}),!1}}const A=B?.target==="setup"?B.message:null,V=B?.target==="mode"?B.message:null;return j.jsxs(km,{mode:f.mode,status:$,children:[d?j.jsxs("section",{className:"mode-panel quiet-state",children:[j.jsx("p",{className:"kicker",children:"Opening"}),j.jsx("h2",{children:"Stay is opening."})]}):null,!d&&!f.pin_configured?j.jsx($m,{error:A,onSave:C=>U(()=>s.setPin(C),"setup")}):null,!d&&f.mode==="idle"&&f.pin_configured?j.jsxs("section",{className:"mode-panel quiet-state",children:[j.jsx("p",{className:"kicker",children:"Ready"}),j.jsx("h2",{children:"Stay is waiting."})]}):null,!d&&f.mode==="meeting_candidate"?j.jsx(Wm,{candidate:f.candidate,canAccept:f.pin_configured,error:V,onAccept:()=>{U(()=>s.acceptStay())},onDismiss:()=>{U(()=>s.dismissCandidate())}}):null,!d&&f.mode==="guarding"?j.jsx(Km,{meeting:f.meeting,error:V,onStop:()=>{U(()=>s.stopGuarding())}}):null,!d&&f.mode==="locked"?j.jsx(Jm,{view:f,error:V,onSubmit:C=>U(()=>s.submitPin(C))}):null]})}function l0(s,f){if(f)return"Opening";if(!s.pin_configured)return"PIN needed";switch(s.mode){case"idle":return"Ready";case"meeting_candidate":return"Meeting";case"guarding":return"On";case"locked":return"Locked"}}const Re={app:"zoom",window:ay("zoom.us","Weekly Team Sync"),reason:"Zoom foreground window"},Ce=ay("Safari","Quarterly planning notes");function t0(s){const f=new Set,S=[];let d=null,D=s??{mode:"idle",pin_configured:!1};function B($,U=[]){D=$;const A={view:D,commands:U};return f.forEach(V=>V(D)),A}return{commandLog:S,async currentState(){return S.push("current_state"),D},async setPin($){if(S.push("set_pin"),!/^\d{4}$/.test($))throw new Error("PIN must be exactly four digits");return d=$,B({mode:"idle",pin_configured:!0})},async acceptStay(){if(S.push("accept_stay"),!d)throw new Error("set a four digit PIN before turning on Stay");return B({mode:"guarding",meeting:Re,pin_configured:!0},[{type:"begin_guarding",meeting:Re}])},async dismissCandidate(){return S.push("dismiss_candidate"),B({mode:"idle",pin_configured:!!d},[{type:"hide_prompt"}])},async stopGuarding(){return S.push("stop_guarding"),B({mode:"idle",pin_configured:!!d},[{type:"stop_guarding"}])},async submitPin($){if(S.push("submit_pin"),D.mode!=="locked")throw new Error("Stay is not locked right now");return $===d?B({mode:"guarding",meeting:D.meeting,pin_configured:!0},[{type:"unlock"}]):B({...D,failed_attempts:D.failed_attempts+1,last_error:"That PIN did not open Stay."},[{type:"stay_locked",failed_attempts:D.failed_attempts+1}])},async subscribe($){return f.add($),()=>{f.delete($)}},emitView($){return B($)},focusMeeting(){return B({mode:"meeting_candidate",candidate:Re,pin_configured:!!d},[{type:"show_prompt",candidate:Re}])},focusAway(){return B({mode:"locked",meeting:Re,focused:{app_name:Ce.app_name,title:Ce.title,bounds:Ce.bounds},failed_attempts:0,pin_configured:!!d,last_error:null},[{type:"show_lock",meeting:Re,focused:{app_name:Ce.app_name,title:Ce.title,bounds:Ce.bounds}}])},view(){return D}}}function ay(s,f){return{app_name:s,title:f,process_id:null,window_id:null,process_path:null,bounds:{x:96,y:88,width:680,height:420}}}const ey=document.querySelector("#root");if(!ey)throw new Error("Stay root element is missing");Zm.createRoot(ey).render(j.jsx(Et.StrictMode,{children:e0()==="guard-border"?j.jsx(a0,{}):j.jsx(Pm,{client:u0()})}));function a0(){return j.jsx("div",{className:"guard-border-surface","aria-hidden":"true",children:j.jsx("div",{className:"guard-border-frame"})})}function e0(){if(new URLSearchParams(window.location.search).get("surface")==="guard-border")return"guard-border";if(!In())return"main";try{return Uf().label==="guard-border"?"guard-border":"main"}catch{return"main"}}function u0(){if(window.__STAY_CLIENT__)return window.__STAY_CLIENT__;if(In()||window.__TAURI__||window.__TAURI_INTERNALS__)return Vm();const s=t0();return window.__STAY_CLIENT__=s,window.__stayMock=s,s} diff --git a/apps/desktop/dist/assets/index-hTIyNl5e.css b/apps/desktop/dist/assets/index-hTIyNl5e.css deleted file mode 100644 index f0f2144..0000000 --- a/apps/desktop/dist/assets/index-hTIyNl5e.css +++ /dev/null @@ -1 +0,0 @@ -:root{--ink: #1a1c1f;--ink-soft: rgba(26, 28, 31, .66);--ink-muted: rgba(26, 28, 31, .44);--ink-faint: rgba(26, 28, 31, .22);--paper: rgba(252, 251, 249, .62);--paper-strong: rgba(255, 255, 255, .78);--hairline: rgba(255, 255, 255, .62);--hairline-soft: rgba(255, 255, 255, .38);--hairline-ink: rgba(26, 28, 31, .06);--accent: #176d65;--accent-deep: #0e4f48;--accent-soft: rgba(23, 109, 101, .14);--guard-border: #18b7c2;--guard-border-soft: rgba(24, 183, 194, .22);--warm: #d3a07a;--warm-soft: rgba(211, 160, 122, .22);--danger: #a83a2d;--radius-shell: 26px;--radius-panel: 20px;--radius-control: 14px;--font-ui: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;--font-display: "Instrument Serif", "New York", Georgia, serif;color:var(--ink);background:transparent;font-family:var(--font-ui);font-feature-settings:"ss01","ss02","cv11";font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden;background:transparent}body{border-radius:var(--radius-shell)}button,input{font:inherit;font-family:var(--font-ui)}button{position:relative;height:38px;padding:0 18px;-webkit-app-region:no-drag;border:.5px solid rgba(255,255,255,.28);border-radius:999px;color:#fbfefe;background:linear-gradient(180deg,#ffffff38,#fff0 52%),linear-gradient(180deg,var(--accent),var(--accent-deep));box-shadow:0 1px #ffffff57 inset,0 -1px #00000014 inset,0 6px 18px #0e4f4838,0 1px 2px #0e4f482e;font-size:13px;font-weight:550;letter-spacing:-.005em;cursor:pointer;transition:transform .16s cubic-bezier(.2,.7,.2,1),box-shadow .2s ease,filter .2s ease}button:hover{filter:brightness(1.04) saturate(1.05);box-shadow:0 1px #ffffff61 inset,0 -1px #00000014 inset,0 8px 22px #0e4f4842,0 1px 2px #0e4f4833}button:active{transform:translateY(.5px) scale(.985);filter:brightness(.98)}button:disabled{cursor:not-allowed;filter:saturate(.3);opacity:.5;box-shadow:0 1px #ffffff3d inset,0 1px 2px #0e4f4814}button:focus-visible,input:focus-visible{outline:2px solid rgba(23,109,101,.5);outline-offset:2px}button.ghost{color:var(--ink);background:linear-gradient(180deg,#fff9,#ffffff52);border-color:#ffffffb3;box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0d inset,0 4px 14px #1a1c1f0f,0 1px 2px #1a1c1f0a;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5)}button.ghost:hover{background:linear-gradient(180deg,#ffffffbd,#ffffff75);filter:none}button.strong-ghost{color:var(--accent-deep)}input{width:100%;min-width:0;height:38px;-webkit-app-region:no-drag;padding:0 14px;border:.5px solid rgba(255,255,255,.72);border-radius:var(--radius-control);color:var(--ink);background:#ffffff6b;box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0d inset,0 4px 14px #1a1c1f0d;font-size:14px;font-feature-settings:"tnum","ss01";font-variant-numeric:tabular-nums;letter-spacing:.18em;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);transition:border-color .16s ease,box-shadow .2s ease,background .2s ease}input::placeholder{color:var(--ink-faint);letter-spacing:0}input:focus{border-color:#176d656b;background:#fff9;box-shadow:0 1px #fffffff0 inset,0 0 0 3px #176d651f}input[aria-invalid=true]{border-color:#a83a2d80}.stay-shell{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100vh;gap:10px;padding:20px 28px 24px;overflow:hidden;border:.5px solid var(--hairline);border-radius:var(--radius-shell);background:linear-gradient(155deg,#ffffffd6,#f8f7f480 48%,#e5eeec6b),var(--paper);box-shadow:0 32px 80px #14181c38,0 12px 28px #14181c1a,0 0 0 .5px #ffffff80,0 1px #ffffffe0 inset,0 -1px #1a1c1f0a inset;backdrop-filter:blur(40px) saturate(1.8);-webkit-backdrop-filter:blur(40px) saturate(1.8);animation:shell-in .42s cubic-bezier(.2,.7,.2,1) both;transition:border-color .18s ease,box-shadow .22s ease,background .22s ease,border-radius .22s ease,padding .22s ease}.stay-shell:before{position:absolute;inset:-40%;z-index:-2;pointer-events:none;content:"";background:radial-gradient(38% 32% at 18% 22%,rgba(23,109,101,.22),transparent 70%),radial-gradient(34% 30% at 82% 78%,rgba(211,160,122,.2),transparent 72%),radial-gradient(50% 40% at 50% 50%,rgba(255,255,255,.35),transparent 76%);filter:blur(36px);animation:ambient-drift 24s ease-in-out infinite alternate}.stay-shell:after{position:absolute;inset:0;z-index:-1;pointer-events:none;content:"";border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.5),transparent 36%),linear-gradient(90deg,rgba(255,255,255,.3),transparent 38%,rgba(220,232,230,.16)),url("data:image/svg+xml;utf8,");background-blend-mode:normal,normal,soft-light;opacity:.95}.guard-border-surface{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;background:transparent}.guard-border-frame{position:fixed;inset:6px;border:2px solid rgba(24,183,194,.78);border-radius:clamp(12px,1.2vw,22px);box-shadow:0 0 0 1px #ffffff47 inset,0 0 20px #18b7c261,0 0 44px #18b7c22e inset;opacity:.92}.guard-border-frame:before{position:absolute;top:-2px;right:18%;left:18%;height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.86),transparent);content:""}.stay-shell-guarding.stay-shell-revealed{border-color:#18b7c2a3;box-shadow:0 32px 80px #14181c33,0 12px 28px #14181c1a,0 0 0 1px #18b7c257,0 1px #ffffffe0 inset,0 -1px #1a1c1f0a inset}.stay-shell-guarding.stay-shell-collapsed{min-width:0;gap:0;align-items:center;justify-content:center;padding:5px 8px;border:1px solid rgba(24,183,194,.78);border-radius:999px;background:linear-gradient(180deg,#ffffff47,#ffffff0f),linear-gradient(180deg,#18b7c2e6,#0c7177e0);box-shadow:0 10px 26px #0c717733,0 0 0 1px #ffffff47 inset,0 0 20px #18b7c23d;cursor:default;animation:none;backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5)}.stay-shell-guarding.stay-shell-collapsed:before,.stay-shell-guarding.stay-shell-collapsed:after{display:none}.stay-shell-guarding.stay-shell-collapsed .brand-strip{display:flex;align-items:center;justify-content:center;width:100%;min-height:0;padding:0}.stay-shell-guarding.stay-shell-collapsed .brand-label,.stay-shell-guarding.stay-shell-collapsed .window-close,.stay-shell-guarding.stay-shell-collapsed .mode-panel{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;opacity:0;pointer-events:none;clip:rect(0 0 0 0)}.stay-shell-guarding.stay-shell-collapsed .brand-controls{position:static}.stay-shell-guarding.stay-shell-collapsed .status-pill{height:100%;min-height:23px;padding:0 10px;border-color:#ffffff3d;color:#f7ffff;background:transparent;box-shadow:none;font-size:10.5px;backdrop-filter:none;-webkit-backdrop-filter:none}.stay-shell-guarding.stay-shell-collapsed .status-pill:before{background:#fff;box-shadow:0 0 0 2px #ffffff2e,0 0 8px #ffffffb8}.brand-strip{position:relative;z-index:2;min-height:48px;padding-right:132px;-webkit-app-region:drag}.brand-label{min-width:0;max-width:100%;-webkit-app-region:drag}.brand-controls{position:absolute;top:0;right:4px;display:inline-flex;align-items:center;gap:8px;-webkit-app-region:no-drag}.window-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;padding:0;border:.5px solid rgba(26,28,31,.12);border-radius:999px;color:#1a1c1fb3;background:linear-gradient(180deg,#ffffffdb,#fff9);box-shadow:0 1px #fffffff0 inset,0 2px 6px #1a1c1f1a;font-size:0;-webkit-app-region:no-drag;backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);transition:transform .14s ease,background .16s ease,color .16s ease}.window-close:hover{color:var(--ink);background:linear-gradient(180deg,#ffffffc7,#ffffff7a);filter:none}.window-close:active{transform:scale(.92)}.window-close svg{display:block}.eyebrow,.kicker{margin:0 0 4px;color:var(--ink-muted);font-size:10px;font-weight:500;letter-spacing:.16em;text-transform:uppercase}h1,h2{margin:0;color:var(--ink);font-family:var(--font-display);font-weight:400;letter-spacing:-.012em}h1{max-width:100%;overflow:hidden;font-size:20px;font-style:italic;line-height:1.12;text-overflow:ellipsis;white-space:nowrap}h2{overflow:hidden;font-size:24px;font-style:italic;line-height:1.1;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.stay-shell-locked h1{font-size:22px}.stay-shell-locked h2{font-size:28px;-webkit-line-clamp:3}label{display:block;margin-bottom:9px;color:var(--ink-soft);font-family:var(--font-ui);font-size:12.5px;font-weight:500;letter-spacing:-.005em}.status-pill{position:relative;display:inline-flex;align-items:center;gap:7px;min-width:0;height:26px;padding:0 12px 0 10px;border:.5px solid rgba(255,255,255,.72);border-radius:999px;color:var(--accent-deep);background:linear-gradient(180deg,#ffffffa8,#ffffff52);box-shadow:0 1px #ffffffdb inset,0 -.5px #1a1c1f0a inset,0 4px 12px #1a1c1f0f;font-family:var(--font-ui);font-size:11px;font-weight:540;letter-spacing:.01em;line-height:1;white-space:nowrap;backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5)}.status-pill:before{width:6px;height:6px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 2px #176d6524,0 0 6px #176d658c;content:"";animation:dot-breathe 2.6s ease-in-out infinite}.stay-shell-idle .status-pill:before{background:var(--ink-muted);box-shadow:0 0 0 2px #1a1c1f0f;animation-duration:4.2s}.stay-shell-locked .status-pill:before,.stay-shell-guarding .status-pill:before{background:var(--accent);box-shadow:0 0 0 2px #176d652e,0 0 8px #176d65b3}.stay-shell-meeting_candidate .status-pill:before{background:var(--warm);box-shadow:0 0 0 2px var(--warm-soft),0 0 8px #d3a07aa6}.mode-panel{position:relative;z-index:1;flex-shrink:0;width:100%;max-width:620px;min-height:0;margin:0 auto;padding-top:12px;border-top:.5px solid rgba(255,255,255,.5)}.stay-shell>.mode-panel+.mode-panel{margin-top:0}.mode-panel:before{position:absolute;top:0;right:0;left:0;height:.5px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(26,28,31,.08),transparent);content:""}.mode-panel-active{display:grid;gap:8px;align-content:center}.pin-setup{align-self:center;width:100%;min-height:120px}.quiet-state{display:grid;gap:4px;align-content:start}.muted{min-height:18px;margin:0;color:var(--ink-soft);font-size:13px;line-height:1.4;letter-spacing:-.005em}.control-row,.action-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.action-row{grid-template-columns:auto auto;justify-content:start;margin-top:6px}.unlock-form{margin-top:6px}.error-line{min-height:17px;margin:0;color:var(--danger);font-family:var(--font-ui);font-size:12px;line-height:1.4;letter-spacing:-.005em}.stay-shell-locked{position:fixed;inset:0;display:grid;grid-template-rows:1fr;width:100vw;height:100vh;place-items:center;padding:clamp(20px,4vw,32px);border:none;border-radius:24px;background:radial-gradient(60% 50% at 50% 30%,rgba(255,255,255,.22),transparent 70%),linear-gradient(155deg,#ffffff2e,#e2efed24),#f8fbfc29;box-shadow:0 18px 70px #211f1b2e,0 1px #fff6 inset;backdrop-filter:blur(34px) saturate(1.5);-webkit-backdrop-filter:blur(34px) saturate(1.5);animation:overlay-in .48s cubic-bezier(.2,.7,.2,1) both}.stay-shell-locked:before{inset:-20%;background:radial-gradient(38% 28% at 22% 18%,rgba(23,109,101,.18),transparent 72%),radial-gradient(36% 30% at 78% 82%,rgba(211,160,122,.16),transparent 72%);filter:blur(50px)}.stay-shell-locked:after{background:linear-gradient(180deg,rgba(255,255,255,.18),transparent 40%),url("data:image/svg+xml;utf8,");background-blend-mode:normal,soft-light;opacity:.85}.stay-shell-locked .brand-strip{position:absolute;top:clamp(20px,4vw,30px);right:clamp(20px,4vw,30px);left:clamp(20px,4vw,30px);min-height:auto;pointer-events:none}.stay-shell-locked .status-pill{pointer-events:auto;color:var(--accent-deep);background:linear-gradient(180deg,#ffffffb8,#ffffff61)}.stay-shell-locked .mode-panel-active{align-self:center;justify-self:center;width:min(calc(100vw - 48px),440px);max-height:calc(100vh - 120px);padding:26px 26px 22px;overflow:hidden;border:.5px solid rgba(255,255,255,.62);border-radius:22px;background:linear-gradient(155deg,#ffffffd1,#f8fbfc7a),#fff6;box-shadow:0 24px 70px #211f1b38,0 1px #ffffffdb inset,0 -.5px #1a1c1f0a inset;backdrop-filter:blur(40px) saturate(1.6);-webkit-backdrop-filter:blur(40px) saturate(1.6);animation:card-in .52s cubic-bezier(.2,.7,.2,1) 80ms both}.stay-shell-locked .error-line{color:#8f2e22}@media(max-height:380px){.stay-shell-locked .brand-strip h1{display:none}}@media(max-width:520px),(max-height:270px){.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed){gap:8px;padding:14px 18px 16px;border-radius:22px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) .brand-strip{min-height:42px;padding-right:112px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) h1{font-size:18px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) h2{font-size:21px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) .mode-panel{padding-top:9px}.stay-shell:not(.stay-shell-locked,.stay-shell-collapsed) .muted{min-height:16px;font-size:12.5px}button,input{height:34px}}@media(max-width:360px){.stay-shell{width:100vw;height:100vh;border-radius:0}.brand-strip,.control-row{grid-template-columns:1fr}.status-pill{justify-self:start}}@media(prefers-color-scheme:dark){:root{--ink: #ececec;--ink-soft: rgba(236, 236, 236, .7);--ink-muted: rgba(236, 236, 236, .46);--ink-faint: rgba(236, 236, 236, .24);--paper: rgba(28, 30, 33, .6);--paper-strong: rgba(38, 40, 44, .78);--hairline: rgba(255, 255, 255, .12);--hairline-soft: rgba(255, 255, 255, .08);--hairline-ink: rgba(0, 0, 0, .4);--accent: #5fc7bc;--accent-deep: #2e8c83;--accent-soft: rgba(95, 199, 188, .18);--guard-border: #20c6d0;--guard-border-soft: rgba(32, 198, 208, .24);--warm: #e2b491;--danger: #e08074}.stay-shell{background:linear-gradient(155deg,#2e3034c7,#1e202499 50%,#16242280),var(--paper);box-shadow:0 32px 80px #00000080,0 12px 28px #00000052,0 0 0 .5px #ffffff14,0 1px #ffffff1f inset,0 -1px #0000004d inset}.stay-shell:before{background:radial-gradient(38% 32% at 18% 22%,rgba(95,199,188,.22),transparent 70%),radial-gradient(34% 30% at 82% 78%,rgba(226,180,145,.16),transparent 72%),radial-gradient(50% 40% at 50% 50%,rgba(255,255,255,.06),transparent 76%)}.stay-shell:after{background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 40%),url("data:image/svg+xml;utf8,");background-blend-mode:normal,soft-light}button{color:#06201d;background:linear-gradient(180deg,#ffffff47,#fff0 52%),linear-gradient(180deg,var(--accent),var(--accent-deep));box-shadow:0 1px #ffffff57 inset,0 6px 18px #0000006b,0 1px 2px #0000004d}button.ghost{color:var(--ink);background:linear-gradient(180deg,#ffffff1a,#ffffff0a);border-color:#ffffff24;box-shadow:0 1px #ffffff1a inset,0 4px 14px #00000052}button.ghost:hover{background:linear-gradient(180deg,#ffffff29,#ffffff0f)}button.strong-ghost{color:var(--accent)}input{border-color:#ffffff1f;color:var(--ink);background:#ffffff0d;box-shadow:0 1px #ffffff0f inset,0 4px 14px #0000004d}input:focus{border-color:#5fc7bc80;background:#ffffff14;box-shadow:0 1px #ffffff14 inset,0 0 0 3px #5fc7bc2e}.status-pill{color:var(--accent);background:linear-gradient(180deg,#ffffff14,#ffffff08);border-color:#ffffff1f;box-shadow:0 1px #ffffff14 inset,0 4px 12px #0000004d}.window-close{color:#ecececd1;background:linear-gradient(180deg,#ffffff24,#ffffff0f);border-color:#ffffff2e;box-shadow:0 1px #ffffff1f inset,0 2px 6px #0006}.window-close:hover{color:#fff;background:linear-gradient(180deg,#ffffff38,#ffffff1a)}.mode-panel{border-top-color:#ffffff14}.mode-panel:before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent)}.stay-shell-locked{background:radial-gradient(60% 50% at 50% 30%,rgba(255,255,255,.06),transparent 70%),#0e101280}.stay-shell-locked .mode-panel-active{border-color:#ffffff1a;background:linear-gradient(155deg,#2e3034c7,#1e202480),#1c1e2180;box-shadow:0 24px 70px #0000008c,0 1px #ffffff1a inset}.guard-border-frame{border-color:#20c6d0c2;box-shadow:0 0 0 1px #ffffff1f inset,0 0 22px #20c6d057,0 0 44px #20c6d029 inset}.stay-shell-guarding.stay-shell-collapsed{background:linear-gradient(180deg,#ffffff29,#ffffff0a),linear-gradient(180deg,#20c6d0d1,#0c5f66e0);box-shadow:0 12px 28px #00000057,0 0 0 1px #ffffff1f inset,0 0 22px #20c6d038}}@keyframes shell-in{0%{opacity:0;transform:translateY(6px) scale(.985);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes card-in{0%{opacity:0;transform:translateY(8px) scale(.97);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes ambient-drift{0%{transform:translate3d(-4%,-2%,0) rotate(0)}50%{transform:translate3d(3%,4%,0) rotate(8deg)}to{transform:translate3d(-2%,3%,0) rotate(-6deg)}}@keyframes dot-breathe{0%,to{opacity:.9;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}@media(prefers-reduced-motion:reduce){.stay-shell,.stay-shell-locked,.stay-shell-locked .mode-panel-active{animation:none}.stay-shell:before{animation:none}.status-pill:before{animation:none}button,input{transition:none}} diff --git a/apps/desktop/dist/index.html b/apps/desktop/dist/index.html index f1ab667..3a4d081 100644 --- a/apps/desktop/dist/index.html +++ b/apps/desktop/dist/index.html @@ -10,8 +10,8 @@ rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap" /> - - + +
diff --git a/apps/desktop/src/App.test.tsx b/apps/desktop/src/App.test.tsx index f0afd8e..92bd3b8 100644 --- a/apps/desktop/src/App.test.tsx +++ b/apps/desktop/src/App.test.tsx @@ -12,11 +12,17 @@ describe("Stay GUI", () => { render(); const pinInput = await screen.findByLabelText("Set a four digit PIN"); + const keepButton = screen.getByRole("button", { name: "Keep" }); + + expect(keepButton).toBeDisabled(); + expect(pinInput.closest(".pin-code-input")?.querySelectorAll(".pin-code-slot")).toHaveLength(4); + await user.type(pinInput, "12a345"); expect(pinInput).toHaveValue("1234"); + expect(keepButton).toBeEnabled(); - await user.click(screen.getByRole("button", { name: "Keep" })); + await user.click(keepButton); expect(client.view()).toMatchObject({ mode: "idle", pin_configured: true }); expect(screen.getByText("Stay is waiting.")).toBeInTheDocument(); @@ -70,8 +76,14 @@ describe("Stay GUI", () => { render(); const unlockInput = await screen.findByLabelText("Unlock PIN"); + const openButton = screen.getByRole("button", { name: "Open" }); + + expect(openButton).toBeDisabled(); + expect(unlockInput.closest(".pin-code-input")?.querySelectorAll(".pin-code-slot")).toHaveLength(4); + await user.type(unlockInput, "48x21"); expect(unlockInput).toHaveValue("4821"); + expect(openButton).toBeEnabled(); await user.keyboard("{Enter}"); @@ -94,7 +106,7 @@ describe("Stay GUI", () => { expect(await screen.findByText("Stay with this meeting?")).toBeInTheDocument(); }); - it("renders setup command errors inline without changing mode", async () => { + it("waits for a complete setup PIN instead of submitting invalid input", async () => { const user = userEvent.setup(); const client = createMockStayClient(); client.focusMeeting(); @@ -104,10 +116,15 @@ describe("Stay GUI", () => { expect(await screen.findByText("Stay with this meeting?")).toBeInTheDocument(); expect(screen.getByRole("button", { name: "Stay" })).toBeDisabled(); - await user.type(screen.getByLabelText("Set a four digit PIN"), "12"); - await user.click(screen.getByRole("button", { name: "Keep" })); + const pinInput = screen.getByLabelText("Set a four digit PIN"); + const keepButton = screen.getByRole("button", { name: "Keep" }); + + await user.type(pinInput, "12"); + expect(keepButton).toBeDisabled(); + await user.click(keepButton); - expect(await screen.findByText("PIN must be exactly four digits")).toBeInTheDocument(); + expect(client.commandLog).not.toContain("set_pin"); + expect(screen.queryByText("PIN must be exactly four digits")).not.toBeInTheDocument(); expect(screen.getByText("Stay with this meeting?")).toBeInTheDocument(); }); }); diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css index 44f8e2f..53d4d82 100644 --- a/apps/desktop/src/styles.css +++ b/apps/desktop/src/styles.css @@ -189,6 +189,134 @@ input[aria-invalid="true"] { border-color: rgba(168, 58, 45, 0.5); } +.pin-code-field { + display: grid; + min-width: 0; + gap: 9px; +} + +.pin-code-field label { + margin-bottom: 0; +} + +.pin-code-input { + position: relative; + width: 212px; + max-width: 100%; + height: 46px; + -webkit-app-region: no-drag; + cursor: text; +} + +.pin-code-control { + position: absolute; + inset: 0; + z-index: 2; + width: 100%; + height: 100%; + padding: 0; + border: 0; + border-radius: var(--radius-control); + color: transparent; + caret-color: transparent; + background: transparent; + box-shadow: none; + letter-spacing: 0; + backdrop-filter: none; + -webkit-backdrop-filter: none; +} + +.pin-code-control:focus { + border: 0; + background: transparent; + box-shadow: none; +} + +.pin-code-control:focus-visible { + outline: none; +} + +.pin-code-slots { + display: grid; + grid-template-columns: repeat(4, 44px); + justify-content: start; + gap: 12px; + width: 100%; + height: 100%; +} + +.pin-code-slot { + display: grid; + min-width: 0; + place-items: center; + aspect-ratio: 1; + border: 0.5px solid rgba(26, 28, 31, 0.13); + border-radius: var(--radius-control); + background: + linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32)), + rgba(255, 255, 255, 0.4); + box-shadow: + 0 1px 0 rgba(255, 255, 255, 0.86) inset, + 0 -0.5px 0 rgba(26, 28, 31, 0.05) inset, + 0 7px 18px rgba(26, 28, 31, 0.08); + backdrop-filter: blur(20px) saturate(1.5); + -webkit-backdrop-filter: blur(20px) saturate(1.5); + transition: + border-color 160ms ease, + background 200ms ease, + box-shadow 200ms ease, + transform 160ms ease; +} + +.pin-code-slot::before { + width: 10px; + height: 10px; + border-radius: 999px; + background: var(--accent-deep); + box-shadow: 0 0 0 3px rgba(23, 109, 101, 0.12); + opacity: 0; + transform: scale(0.72); + content: ""; + transition: + opacity 140ms ease, + transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1); +} + +.pin-code-slot-filled::before { + opacity: 1; + transform: scale(1); +} + +.pin-code-slot-filled { + border-color: rgba(23, 109, 101, 0.28); + background: + linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(23, 109, 101, 0.12)), + rgba(255, 255, 255, 0.42); +} + +.pin-code-input:focus-within .pin-code-slot { + border-color: rgba(23, 109, 101, 0.24); + background: rgba(255, 255, 255, 0.56); +} + +.pin-code-input:focus-within .pin-code-slot-active { + border-color: rgba(23, 109, 101, 0.5); + box-shadow: + 0 1px 0 rgba(255, 255, 255, 0.94) inset, + 0 0 0 3px rgba(23, 109, 101, 0.12), + 0 7px 18px rgba(26, 28, 31, 0.07); + transform: translateY(-1px); +} + +.pin-code-input[data-invalid="true"] .pin-code-slot { + border-color: rgba(168, 58, 45, 0.5); +} + +.pin-code-input[data-invalid="true"] .pin-code-slot::before { + background: var(--danger); + box-shadow: 0 0 0 3px rgba(168, 58, 45, 0.12); +} + /* ---------- Shell ---------- */ .stay-shell { @@ -631,6 +759,12 @@ label { align-items: center; } +.control-row.pin-entry-row { + grid-template-columns: auto auto; + justify-content: start; + align-items: end; +} + .action-row { grid-template-columns: auto auto; justify-content: start; @@ -774,6 +908,16 @@ label { input { height: 34px; } + + .pin-code-input { + width: 188px; + height: 42px; + } + + .pin-code-slots { + grid-template-columns: repeat(4, 40px); + gap: 9px; + } } @media (max-width: 360px) { @@ -788,6 +932,14 @@ label { grid-template-columns: 1fr; } + .pin-code-input { + width: 100%; + } + + .pin-code-slots { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + .status-pill { justify-self: start; } @@ -888,6 +1040,49 @@ label { 0 0 0 3px rgba(95, 199, 188, 0.18); } + .pin-code-control, + .pin-code-control:focus { + color: transparent; + background: transparent; + box-shadow: none; + } + + .pin-code-slot { + border-color: rgba(255, 255, 255, 0.26); + background: + linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)), + rgba(255, 255, 255, 0.05); + box-shadow: + 0 1px 0 rgba(255, 255, 255, 0.06) inset, + 0 8px 18px rgba(0, 0, 0, 0.28); + } + + .pin-code-slot::before { + background: #d7fffb; + box-shadow: + 0 0 0 3px rgba(95, 199, 188, 0.18), + 0 0 10px rgba(95, 199, 188, 0.45); + } + + .pin-code-slot-filled { + border-color: rgba(95, 199, 188, 0.56); + background: + linear-gradient(180deg, rgba(95, 199, 188, 0.22), rgba(95, 199, 188, 0.08)), + rgba(255, 255, 255, 0.06); + } + + .pin-code-input:focus-within .pin-code-slot { + border-color: rgba(95, 199, 188, 0.28); + background: rgba(255, 255, 255, 0.08); + } + + .pin-code-input:focus-within .pin-code-slot-active { + border-color: rgba(95, 199, 188, 0.5); + box-shadow: + 0 1px 0 rgba(255, 255, 255, 0.08) inset, + 0 0 0 3px rgba(95, 199, 188, 0.18); + } + .status-pill { color: var(--accent); background: @@ -1043,4 +1238,9 @@ label { input { transition: none; } + + .pin-code-slot, + .pin-code-slot::before { + transition: none; + } } diff --git a/apps/desktop/src/ui/LockScreen.tsx b/apps/desktop/src/ui/LockScreen.tsx index b141e8e..7c40e6f 100644 --- a/apps/desktop/src/ui/LockScreen.tsx +++ b/apps/desktop/src/ui/LockScreen.tsx @@ -1,7 +1,8 @@ import { FormEvent, useState } from "react"; import type { GuardView } from "../types"; import { windowLabel } from "../types"; -import { cleanPinInput } from "./pinInput"; +import { PinCodeInput } from "./PinCodeInput"; +import { isCompletePin } from "./pinInput"; type LockedView = Extract; @@ -17,6 +18,10 @@ export function LockScreen({ view, error, onSubmit }: LockScreenProps) { async function handleSubmit(event: FormEvent) { event.preventDefault(); + if (!isCompletePin(pin)) { + return; + } + const accepted = await onSubmit(pin); if (accepted) { setPin(""); @@ -32,19 +37,17 @@ export function LockScreen({ view, error, onSubmit }: LockScreenProps) { {view.focused.title ? `: ${windowLabel(view.focused)}` : ""}

-
- + setPin(cleanPinInput(event.currentTarget.value))} + error={visibleError} + errorId="unlock-error" + onChange={setPin} /> - +

diff --git a/apps/desktop/src/ui/PinCodeInput.tsx b/apps/desktop/src/ui/PinCodeInput.tsx new file mode 100644 index 0000000..22b7604 --- /dev/null +++ b/apps/desktop/src/ui/PinCodeInput.tsx @@ -0,0 +1,71 @@ +import { ChangeEvent, useId, useRef } from "react"; +import { cleanPinInput, pinLength } from "./pinInput"; + +type PinCodeInputProps = { + id?: string; + label?: string; + ariaLabel?: string; + value: string; + error: string | null; + errorId?: string; + onChange(value: string): void; +}; + +export function PinCodeInput({ + id, + label, + ariaLabel, + value, + error, + errorId, + onChange, +}: PinCodeInputProps) { + const generatedId = useId(); + const inputRef = useRef(null); + const inputId = id ?? generatedId; + const slots = Array.from({ length: pinLength }, (_, index) => value[index] ?? ""); + const activeSlotIndex = Math.min(value.length, pinLength - 1); + + function handleChange(event: ChangeEvent) { + onChange(cleanPinInput(event.currentTarget.value)); + } + + function focusInput() { + inputRef.current?.focus(); + } + + return ( +

+ {label ? : null} +
+ + +
+
+ ); +} diff --git a/apps/desktop/src/ui/PinSetup.tsx b/apps/desktop/src/ui/PinSetup.tsx index 5dad9ea..4881f14 100644 --- a/apps/desktop/src/ui/PinSetup.tsx +++ b/apps/desktop/src/ui/PinSetup.tsx @@ -1,5 +1,6 @@ import { FormEvent, useState } from "react"; -import { cleanPinInput } from "./pinInput"; +import { PinCodeInput } from "./PinCodeInput"; +import { isCompletePin } from "./pinInput"; type PinSetupProps = { error: string | null; @@ -11,6 +12,10 @@ export function PinSetup({ error, onSave }: PinSetupProps) { async function handleSubmit(event: FormEvent) { event.preventDefault(); + if (!isCompletePin(pin)) { + return; + } + const saved = await onSave(pin); if (saved) { setPin(""); @@ -19,20 +24,18 @@ export function PinSetup({ error, onSave }: PinSetupProps) { return (
- -
- + setPin(cleanPinInput(event.currentTarget.value))} + error={error} + errorId="setup-error" + onChange={setPin} /> - +

{error} diff --git a/apps/desktop/src/ui/pinInput.ts b/apps/desktop/src/ui/pinInput.ts index d2edc4e..3d547e0 100644 --- a/apps/desktop/src/ui/pinInput.ts +++ b/apps/desktop/src/ui/pinInput.ts @@ -1,3 +1,9 @@ +export const pinLength = 4; + export function cleanPinInput(value: string): string { - return value.replace(/\D/g, "").slice(0, 4); + return value.replace(/\D/g, "").slice(0, pinLength); +} + +export function isCompletePin(value: string): boolean { + return value.length === pinLength; }