@xpert-ai/plugin-spaces 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -2
- package/dist/access.d.ts +38 -0
- package/dist/access.js +96 -0
- package/dist/ai.d.ts +43 -0
- package/dist/ai.js +143 -0
- package/dist/artifacts.d.ts +9 -0
- package/dist/artifacts.js +40 -0
- package/dist/capability.d.ts +22 -0
- package/dist/capability.js +63 -0
- package/dist/content.d.ts +19 -0
- package/dist/content.js +47 -0
- package/dist/documents.d.ts +36 -0
- package/dist/documents.js +158 -0
- package/dist/domain.d.ts +95 -0
- package/dist/domain.js +23 -0
- package/dist/editors.d.ts +16 -0
- package/dist/editors.js +63 -0
- package/dist/entities.d.ts +68 -0
- package/dist/entities.js +251 -0
- package/dist/files.d.ts +79 -0
- package/dist/files.js +228 -0
- package/dist/imports.d.ts +83 -0
- package/dist/imports.js +139 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +48 -0
- package/dist/knowledge.d.ts +43 -0
- package/dist/knowledge.js +166 -0
- package/dist/middleware.d.ts +17 -0
- package/dist/middleware.js +82 -0
- package/dist/pages.d.ts +38 -0
- package/dist/pages.js +41 -0
- package/dist/proposal-id.d.ts +3 -0
- package/dist/proposal-id.js +11 -0
- package/dist/references.d.ts +22 -0
- package/dist/references.js +119 -0
- package/dist/remote/app.css +4 -0
- package/dist/remote/app.js +167 -0
- package/dist/resource-provider.d.ts +36 -0
- package/dist/resource-provider.js +144 -0
- package/dist/spaces.d.ts +95 -0
- package/dist/spaces.js +228 -0
- package/dist/subpages.d.ts +24 -0
- package/dist/subpages.js +118 -0
- package/dist/view.d.ts +97 -0
- package/dist/view.js +226 -0
- package/docs/.mintignore +7 -0
- package/docs/AGENTS.md +3 -0
- package/docs/LICENSE +21 -0
- package/docs/README.md +3 -0
- package/docs/architecture.mdx +49 -0
- package/docs/collaboration.mdx +50 -0
- package/docs/docs.json +39 -0
- package/docs/feishu-document-import.mdx +118 -0
- package/docs/index.mdx +12 -0
- package/docs/insert-menu-plan.mdx +74 -0
- package/docs/math-subpages.mdx +62 -0
- package/docs/page-resources-and-connectors.mdx +103 -0
- package/docs/quickstart.mdx +17 -0
- package/migrations/20261023-document-import-origin.sql +4 -0
- package/migrations/20261023-subpages.sql +6 -0
- package/package.json +79 -4
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";(()=>{var vk=Object.create;var ef=Object.defineProperty;var xk=Object.getOwnPropertyDescriptor;var yk=Object.getOwnPropertyNames;var wk=Object.getPrototypeOf,Ck=Object.prototype.hasOwnProperty;var Rr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}},co=(e,t)=>{for(var a in t)ef(e,a,{get:t[a],enumerable:!0})},Sk=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yk(t))!Ck.call(e,o)&&o!==a&&ef(e,o,{get:()=>t[o],enumerable:!(r=xk(t,o))||r.enumerable});return e};var N=(e,t,a)=>(a=e!=null?vk(wk(e)):{},Sk(t||!e||!e.__esModule?ef(a,"default",{value:e,enumerable:!0}):a,e));var zg=Rr(be=>{"use strict";var Ai=Symbol.for("react.element"),Lk=Symbol.for("react.portal"),Ik=Symbol.for("react.fragment"),bk=Symbol.for("react.strict_mode"),kk=Symbol.for("react.profiler"),Rk=Symbol.for("react.provider"),Pk=Symbol.for("react.context"),Tk=Symbol.for("react.forward_ref"),Mk=Symbol.for("react.suspense"),Dk=Symbol.for("react.memo"),_k=Symbol.for("react.lazy"),Rg=Symbol.iterator;function Ak(e){return e===null||typeof e!="object"?null:(e=Rg&&e[Rg]||e["@@iterator"],typeof e=="function"?e:null)}var Mg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dg=Object.assign,_g={};function ls(e,t,a){this.props=e,this.context=t,this.refs=_g,this.updater=a||Mg}ls.prototype.isReactComponent={};ls.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ls.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ag(){}Ag.prototype=ls.prototype;function af(e,t,a){this.props=e,this.context=t,this.refs=_g,this.updater=a||Mg}var rf=af.prototype=new Ag;rf.constructor=af;Dg(rf,ls.prototype);rf.isPureReactComponent=!0;var Pg=Array.isArray,Eg=Object.prototype.hasOwnProperty,of={current:null},Og={key:!0,ref:!0,__self:!0,__source:!0};function Ng(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Eg.call(t,r)&&!Og.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Ai,type:e,key:n,ref:s,props:o,_owner:of.current}}function Ek(e,t){return{$$typeof:Ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ai}function Ok(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Tg=/\/+/g;function tf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ok(""+e.key):t.toString(36)}function su(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ai:case Lk:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+tf(s,0):r,Pg(o)?(a="",e!=null&&(a=e.replace(Tg,"$&/")+"/"),su(o,t,a,"",function(u){return u})):o!=null&&(nf(o)&&(o=Ek(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Tg,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Pg(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+tf(n,i);s+=su(n,t,a,l,o)}else if(l=Ak(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+tf(n,i++),s+=su(n,t,a,l,o);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function nu(e,t,a){if(e==null)return e;var r=[],o=0;return su(e,r,"","",function(n){return t.call(a,n,o++)}),r}function Nk(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ut={current:null},iu={transition:null},Fk={ReactCurrentDispatcher:Ut,ReactCurrentBatchConfig:iu,ReactCurrentOwner:of};function Fg(){throw Error("act(...) is not supported in production builds of React.")}be.Children={map:nu,forEach:function(e,t,a){nu(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return nu(e,function(){t++}),t},toArray:function(e){return nu(e,function(t){return t})||[]},only:function(e){if(!nf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};be.Component=ls;be.Fragment=Ik;be.Profiler=kk;be.PureComponent=af;be.StrictMode=bk;be.Suspense=Mk;be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fk;be.act=Fg;be.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dg({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=of.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Eg.call(t,l)&&!Og.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:Ai,type:e.type,key:o,ref:n,props:r,_owner:s}};be.createContext=function(e){return e={$$typeof:Pk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Rk,_context:e},e.Consumer=e};be.createElement=Ng;be.createFactory=function(e){var t=Ng.bind(null,e);return t.type=e,t};be.createRef=function(){return{current:null}};be.forwardRef=function(e){return{$$typeof:Tk,render:e}};be.isValidElement=nf;be.lazy=function(e){return{$$typeof:_k,_payload:{_status:-1,_result:e},_init:Nk}};be.memo=function(e,t){return{$$typeof:Dk,type:e,compare:t===void 0?null:t}};be.startTransition=function(e){var t=iu.transition;iu.transition={};try{e()}finally{iu.transition=t}};be.unstable_act=Fg;be.useCallback=function(e,t){return Ut.current.useCallback(e,t)};be.useContext=function(e){return Ut.current.useContext(e)};be.useDebugValue=function(){};be.useDeferredValue=function(e){return Ut.current.useDeferredValue(e)};be.useEffect=function(e,t){return Ut.current.useEffect(e,t)};be.useId=function(){return Ut.current.useId()};be.useImperativeHandle=function(e,t,a){return Ut.current.useImperativeHandle(e,t,a)};be.useInsertionEffect=function(e,t){return Ut.current.useInsertionEffect(e,t)};be.useLayoutEffect=function(e,t){return Ut.current.useLayoutEffect(e,t)};be.useMemo=function(e,t){return Ut.current.useMemo(e,t)};be.useReducer=function(e,t,a){return Ut.current.useReducer(e,t,a)};be.useRef=function(e){return Ut.current.useRef(e)};be.useState=function(e){return Ut.current.useState(e)};be.useSyncExternalStore=function(e,t,a){return Ut.current.useSyncExternalStore(e,t,a)};be.useTransition=function(){return Ut.current.useTransition()};be.version="18.3.1"});var te=Rr((OO,Bg)=>{"use strict";Bg.exports=zg()});var Hg=Rr(lu=>{"use strict";var zk=te(),Bk=Symbol.for("react.element"),Uk=Symbol.for("react.fragment"),Hk=Object.prototype.hasOwnProperty,jk=zk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vk={key:!0,ref:!0,__self:!0,__source:!0};function Ug(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Hk.call(t,r)&&!Vk.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Bk,type:e,key:n,ref:s,props:o,_owner:jk.current}}lu.Fragment=Uk;lu.jsx=Ug;lu.jsxs=Ug});var ke=Rr((FO,jg)=>{"use strict";jg.exports=Hg()});var Gv=Rr(je=>{"use strict";function Pf(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<Lu(o,t))e[r]=t,e[a]=o,a=r;else break e}}function Aa(e){return e.length===0?null:e[0]}function bu(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>Lu(i,a))l<o&&0>Lu(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>Lu(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function Lu(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Fv=performance,je.unstable_now=function(){return Fv.now()}):(bf=Date,zv=bf.now(),je.unstable_now=function(){return bf.now()-zv});var Fv,bf,zv,nr=[],vo=[],xR=1,ya=null,Mt=3,ku=!1,rn=!1,Ui=!1,Hv=typeof setTimeout=="function"?setTimeout:null,jv=typeof clearTimeout=="function"?clearTimeout:null,Bv=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Tf(e){for(var t=Aa(vo);t!==null;){if(t.callback===null)bu(vo);else if(t.startTime<=e)bu(vo),t.sortIndex=t.expirationTime,Pf(nr,t);else break;t=Aa(vo)}}function Mf(e){if(Ui=!1,Tf(e),!rn)if(Aa(nr)!==null)rn=!0,_f(Df);else{var t=Aa(vo);t!==null&&Af(Mf,t.startTime-e)}}function Df(e,t){rn=!1,Ui&&(Ui=!1,jv(Hi),Hi=-1),ku=!0;var a=Mt;try{for(Tf(t),ya=Aa(nr);ya!==null&&(!(ya.expirationTime>t)||e&&!Wv());){var r=ya.callback;if(typeof r=="function"){ya.callback=null,Mt=ya.priorityLevel;var o=r(ya.expirationTime<=t);t=je.unstable_now(),typeof o=="function"?ya.callback=o:ya===Aa(nr)&&bu(nr),Tf(t)}else bu(nr);ya=Aa(nr)}if(ya!==null)var n=!0;else{var s=Aa(vo);s!==null&&Af(Mf,s.startTime-t),n=!1}return n}finally{ya=null,Mt=a,ku=!1}}var Ru=!1,Iu=null,Hi=-1,Vv=5,qv=-1;function Wv(){return!(je.unstable_now()-qv<Vv)}function kf(){if(Iu!==null){var e=je.unstable_now();qv=e;var t=!0;try{t=Iu(!0,e)}finally{t?Bi():(Ru=!1,Iu=null)}}else Ru=!1}var Bi;typeof Bv=="function"?Bi=function(){Bv(kf)}:typeof MessageChannel<"u"?(Rf=new MessageChannel,Uv=Rf.port2,Rf.port1.onmessage=kf,Bi=function(){Uv.postMessage(null)}):Bi=function(){Hv(kf,0)};var Rf,Uv;function _f(e){Iu=e,Ru||(Ru=!0,Bi())}function Af(e,t){Hi=Hv(function(){e(je.unstable_now())},t)}je.unstable_IdlePriority=5;je.unstable_ImmediatePriority=1;je.unstable_LowPriority=4;je.unstable_NormalPriority=3;je.unstable_Profiling=null;je.unstable_UserBlockingPriority=2;je.unstable_cancelCallback=function(e){e.callback=null};je.unstable_continueExecution=function(){rn||ku||(rn=!0,_f(Df))};je.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Vv=0<e?Math.floor(1e3/e):5};je.unstable_getCurrentPriorityLevel=function(){return Mt};je.unstable_getFirstCallbackNode=function(){return Aa(nr)};je.unstable_next=function(e){switch(Mt){case 1:case 2:case 3:var t=3;break;default:t=Mt}var a=Mt;Mt=t;try{return e()}finally{Mt=a}};je.unstable_pauseExecution=function(){};je.unstable_requestPaint=function(){};je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Mt;Mt=e;try{return t()}finally{Mt=a}};je.unstable_scheduleCallback=function(e,t,a){var r=je.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:xR++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,Pf(vo,e),Aa(nr)===null&&e===Aa(vo)&&(Ui?(jv(Hi),Hi=-1):Ui=!0,Af(Mf,a-r))):(e.sortIndex=o,Pf(nr,e),rn||ku||(rn=!0,_f(Df))),e};je.unstable_shouldYield=Wv;je.unstable_wrapCallback=function(e){var t=Mt;return function(){var a=Mt;Mt=t;try{return e.apply(this,arguments)}finally{Mt=a}}}});var Kv=Rr((T2,$v)=>{"use strict";$v.exports=Gv()});var Yw=Rr(ha=>{"use strict";var yR=te(),pa=Kv();function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ty=new Set,ul={};function vn(e,t){Fs(e,t),Fs(e+"Capture",t)}function Fs(e,t){for(ul[e]=t,e=0;e<t.length;e++)ty.add(t[e])}var Hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ap=Object.prototype.hasOwnProperty,wR=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xv={},Zv={};function CR(e){return ap.call(Zv,e)?!0:ap.call(Xv,e)?!1:wR.test(e)?Zv[e]=!0:(Xv[e]=!0,!1)}function SR(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LR(e,t,a,r){if(t===null||typeof t>"u"||SR(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qt(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new qt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new qt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new qt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new qt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new qt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new qt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new qt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new qt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new qt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kp=/[\-:]([a-z])/g;function Xp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Kp,Xp);Lt[t]=new qt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Kp,Xp);Lt[t]=new qt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Kp,Xp);Lt[t]=new qt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new qt(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new qt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new qt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zp(e,t,a,r){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(LR(t,a,o,r)&&(a=null),r||o===null?CR(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var Wr=yR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pu=Symbol.for("react.element"),ys=Symbol.for("react.portal"),ws=Symbol.for("react.fragment"),Qp=Symbol.for("react.strict_mode"),rp=Symbol.for("react.profiler"),ay=Symbol.for("react.provider"),ry=Symbol.for("react.context"),Yp=Symbol.for("react.forward_ref"),op=Symbol.for("react.suspense"),np=Symbol.for("react.suspense_list"),Jp=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),oy=Symbol.for("react.offscreen"),Qv=Symbol.iterator;function ji(e){return e===null||typeof e!="object"?null:(e=Qv&&e[Qv]||e["@@iterator"],typeof e=="function"?e:null)}var Qe=Object.assign,Ef;function Zi(e){if(Ef===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ef=t&&t[1]||""}return`
|
|
2
|
+
`+Ef+e}var Of=!1;function Nf(e,t){if(!e||Of)return"";Of=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
3
|
+
`),n=r.stack.split(`
|
|
4
|
+
`),s=o.length-1,i=n.length-1;1<=s&&0<=i&&o[s]!==n[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==n[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==n[i]){var l=`
|
|
5
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{Of=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Zi(e):""}function IR(e){switch(e.tag){case 5:return Zi(e.type);case 16:return Zi("Lazy");case 13:return Zi("Suspense");case 19:return Zi("SuspenseList");case 0:case 2:case 15:return e=Nf(e.type,!1),e;case 11:return e=Nf(e.type.render,!1),e;case 1:return e=Nf(e.type,!0),e;default:return""}}function sp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ws:return"Fragment";case ys:return"Portal";case rp:return"Profiler";case Qp:return"StrictMode";case op:return"Suspense";case np:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ry:return(e.displayName||"Context")+".Consumer";case ay:return(e._context.displayName||"Context")+".Provider";case Yp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jp:return t=e.displayName||null,t!==null?t:sp(e.type)||"Memo";case yo:t=e._payload,e=e._init;try{return sp(e(t))}catch{}}return null}function bR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sp(t);case 8:return t===Qp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kR(e){var t=ny(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tu(e){e._valueTracker||(e._valueTracker=kR(e))}function sy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function rd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ip(e,t){var a=t.checked;return Qe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Yv(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=Ao(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iy(e,t){t=t.checked,t!=null&&Zp(e,"checked",t,!1)}function lp(e,t){iy(e,t);var a=Ao(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?up(e,t.type,a):t.hasOwnProperty("defaultValue")&&up(e,t.type,Ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jv(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function up(e,t,a){(t!=="number"||rd(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var Qi=Array.isArray;function Ds(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Ao(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function dp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Qe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ex(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(U(92));if(Qi(a)){if(1<a.length)throw Error(U(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:Ao(a)}}function ly(e,t){var a=Ao(t.value),r=Ao(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function tx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function cp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mu,dy=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mu=Mu||document.createElement("div"),Mu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var el={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RR=["Webkit","ms","Moz","O"];Object.keys(el).forEach(function(e){RR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),el[t]=el[e]})});function cy(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||el.hasOwnProperty(e)&&el[e]?(""+t).trim():t+"px"}function fy(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=cy(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var PR=Qe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fp(e,t){if(t){if(PR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function pp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mp=null;function em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hp=null,_s=null,As=null;function ax(e){if(e=Pl(e)){if(typeof hp!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Dd(t),hp(e.stateNode,e.type,t))}}function py(e){_s?As?As.push(e):As=[e]:_s=e}function my(){if(_s){var e=_s,t=As;if(As=_s=null,ax(e),t)for(e=0;e<t.length;e++)ax(t[e])}}function hy(e,t){return e(t)}function gy(){}var Ff=!1;function vy(e,t,a){if(Ff)return e(t,a);Ff=!0;try{return hy(e,t,a)}finally{Ff=!1,(_s!==null||As!==null)&&(gy(),my())}}function cl(e,t){var a=e.stateNode;if(a===null)return null;var r=Dd(a);if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(U(231,t,typeof a));return a}var gp=!1;if(Hr)try{vs={},Object.defineProperty(vs,"passive",{get:function(){gp=!0}}),window.addEventListener("test",vs,vs),window.removeEventListener("test",vs,vs)}catch{gp=!1}var vs;function TR(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(d){this.onError(d)}}var tl=!1,od=null,nd=!1,vp=null,MR={onError:function(e){tl=!0,od=e}};function DR(e,t,a,r,o,n,s,i,l){tl=!1,od=null,TR.apply(MR,arguments)}function _R(e,t,a,r,o,n,s,i,l){if(DR.apply(this,arguments),tl){if(tl){var u=od;tl=!1,od=null}else throw Error(U(198));nd||(nd=!0,vp=u)}}function xn(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function xy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rx(e){if(xn(e)!==e)throw Error(U(188))}function AR(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(U(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return rx(o),e;if(n===r)return rx(o),t;n=n.sibling}throw Error(U(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(U(189))}}if(a.alternate!==r)throw Error(U(190))}if(a.tag!==3)throw Error(U(188));return a.stateNode.current===a?e:t}function yy(e){return e=AR(e),e!==null?wy(e):null}function wy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wy(e);if(t!==null)return t;e=e.sibling}return null}var Cy=pa.unstable_scheduleCallback,ox=pa.unstable_cancelCallback,ER=pa.unstable_shouldYield,OR=pa.unstable_requestPaint,tt=pa.unstable_now,NR=pa.unstable_getCurrentPriorityLevel,tm=pa.unstable_ImmediatePriority,Sy=pa.unstable_UserBlockingPriority,sd=pa.unstable_NormalPriority,FR=pa.unstable_LowPriority,Ly=pa.unstable_IdlePriority,Rd=null,ur=null;function zR(e){if(ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(Rd,e,void 0,(e.current.flags&128)===128)}catch{}}var za=Math.clz32?Math.clz32:HR,BR=Math.log,UR=Math.LN2;function HR(e){return e>>>=0,e===0?32:31-(BR(e)/UR|0)|0}var Du=64,_u=4194304;function Yi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function id(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=Yi(i):(n&=s,n!==0&&(r=Yi(n)))}else s=a&~o,s!==0?r=Yi(s):n!==0&&(r=Yi(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-za(t),o=1<<a,r|=e[a],t&=~o;return r}function jR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function VR(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-za(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=jR(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function xp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iy(){var e=Du;return Du<<=1,(Du&4194240)===0&&(Du=64),e}function zf(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kl(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-za(t),e[t]=a}function qR(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<a;){var o=31-za(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function am(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-za(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var ze=0;function by(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ky,rm,Ry,Py,Ty,yp=!1,Au=[],bo=null,ko=null,Ro=null,fl=new Map,pl=new Map,Co=[],WR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nx(e,t){switch(e){case"focusin":case"focusout":bo=null;break;case"dragenter":case"dragleave":ko=null;break;case"mouseover":case"mouseout":Ro=null;break;case"pointerover":case"pointerout":fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pl.delete(t.pointerId)}}function Vi(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=Pl(t),t!==null&&rm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function GR(e,t,a,r,o){switch(t){case"focusin":return bo=Vi(bo,e,t,a,r,o),!0;case"dragenter":return ko=Vi(ko,e,t,a,r,o),!0;case"mouseover":return Ro=Vi(Ro,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return fl.set(n,Vi(fl.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,pl.set(n,Vi(pl.get(n)||null,e,t,a,r,o)),!0}return!1}function My(e){var t=sn(e.target);if(t!==null){var a=xn(t);if(a!==null){if(t=a.tag,t===13){if(t=xy(a),t!==null){e.blockedOn=t,Ty(e.priority,function(){Ry(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=wp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);mp=r,a.target.dispatchEvent(r),mp=null}else return t=Pl(a),t!==null&&rm(t),e.blockedOn=a,!1;t.shift()}return!0}function sx(e,t,a){$u(e)&&a.delete(t)}function $R(){yp=!1,bo!==null&&$u(bo)&&(bo=null),ko!==null&&$u(ko)&&(ko=null),Ro!==null&&$u(Ro)&&(Ro=null),fl.forEach(sx),pl.forEach(sx)}function qi(e,t){e.blockedOn===t&&(e.blockedOn=null,yp||(yp=!0,pa.unstable_scheduleCallback(pa.unstable_NormalPriority,$R)))}function ml(e){function t(o){return qi(o,e)}if(0<Au.length){qi(Au[0],e);for(var a=1;a<Au.length;a++){var r=Au[a];r.blockedOn===e&&(r.blockedOn=null)}}for(bo!==null&&qi(bo,e),ko!==null&&qi(ko,e),Ro!==null&&qi(Ro,e),fl.forEach(t),pl.forEach(t),a=0;a<Co.length;a++)r=Co[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<Co.length&&(a=Co[0],a.blockedOn===null);)My(a),a.blockedOn===null&&Co.shift()}var Es=Wr.ReactCurrentBatchConfig,ld=!0;function KR(e,t,a,r){var o=ze,n=Es.transition;Es.transition=null;try{ze=1,om(e,t,a,r)}finally{ze=o,Es.transition=n}}function XR(e,t,a,r){var o=ze,n=Es.transition;Es.transition=null;try{ze=4,om(e,t,a,r)}finally{ze=o,Es.transition=n}}function om(e,t,a,r){if(ld){var o=wp(e,t,a,r);if(o===null)Wf(e,t,r,ud,a),nx(e,r);else if(GR(o,e,t,a,r))r.stopPropagation();else if(nx(e,r),t&4&&-1<WR.indexOf(e)){for(;o!==null;){var n=Pl(o);if(n!==null&&ky(n),n=wp(e,t,a,r),n===null&&Wf(e,t,r,ud,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Wf(e,t,r,null,a)}}var ud=null;function wp(e,t,a,r){if(ud=null,e=em(r),e=sn(e),e!==null)if(t=xn(e),t===null)e=null;else if(a=t.tag,a===13){if(e=xy(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ud=e,null}function Dy(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(NR()){case tm:return 1;case Sy:return 4;case sd:case FR:return 16;case Ly:return 536870912;default:return 16}default:return 16}}var Lo=null,nm=null,Ku=null;function _y(){if(Ku)return Ku;var e,t=nm,a=t.length,r,o="value"in Lo?Lo.value:Lo.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return Ku=o.slice(e,1<r?1-r:void 0)}function Xu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Eu(){return!0}function ix(){return!1}function ma(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Eu:ix,this.isPropagationStopped=ix,this}return Qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Eu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Eu)},persist:function(){},isPersistent:Eu}),t}var qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sm=ma(qs),Rl=Qe({},qs,{view:0,detail:0}),ZR=ma(Rl),Bf,Uf,Wi,Pd=Qe({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wi&&(Wi&&e.type==="mousemove"?(Bf=e.screenX-Wi.screenX,Uf=e.screenY-Wi.screenY):Uf=Bf=0,Wi=e),Bf)},movementY:function(e){return"movementY"in e?e.movementY:Uf}}),lx=ma(Pd),QR=Qe({},Pd,{dataTransfer:0}),YR=ma(QR),JR=Qe({},Rl,{relatedTarget:0}),Hf=ma(JR),eP=Qe({},qs,{animationName:0,elapsedTime:0,pseudoElement:0}),tP=ma(eP),aP=Qe({},qs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rP=ma(aP),oP=Qe({},qs,{data:0}),ux=ma(oP),nP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sP={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iP[e])?!!t[e]:!1}function im(){return lP}var uP=Qe({},Rl,{key:function(e){if(e.key){var t=nP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(e){return e.type==="keypress"?Xu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dP=ma(uP),cP=Qe({},Pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dx=ma(cP),fP=Qe({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),pP=ma(fP),mP=Qe({},qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),hP=ma(mP),gP=Qe({},Pd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vP=ma(gP),xP=[9,13,27,32],lm=Hr&&"CompositionEvent"in window,al=null;Hr&&"documentMode"in document&&(al=document.documentMode);var yP=Hr&&"TextEvent"in window&&!al,Ay=Hr&&(!lm||al&&8<al&&11>=al),cx=" ",fx=!1;function Ey(e,t){switch(e){case"keyup":return xP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cs=!1;function wP(e,t){switch(e){case"compositionend":return Oy(t);case"keypress":return t.which!==32?null:(fx=!0,cx);case"textInput":return e=t.data,e===cx&&fx?null:e;default:return null}}function CP(e,t){if(Cs)return e==="compositionend"||!lm&&Ey(e,t)?(e=_y(),Ku=nm=Lo=null,Cs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ay&&t.locale!=="ko"?null:t.data;default:return null}}var SP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function px(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!SP[e.type]:t==="textarea"}function Ny(e,t,a,r){py(r),t=dd(t,"onChange"),0<t.length&&(a=new sm("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var rl=null,hl=null;function LP(e){$y(e,0)}function Td(e){var t=Is(e);if(sy(t))return e}function IP(e,t){if(e==="change")return t}var Fy=!1;Hr&&(Hr?(Nu="oninput"in document,Nu||(jf=document.createElement("div"),jf.setAttribute("oninput","return;"),Nu=typeof jf.oninput=="function"),Ou=Nu):Ou=!1,Fy=Ou&&(!document.documentMode||9<document.documentMode));var Ou,Nu,jf;function mx(){rl&&(rl.detachEvent("onpropertychange",zy),hl=rl=null)}function zy(e){if(e.propertyName==="value"&&Td(hl)){var t=[];Ny(t,hl,e,em(e)),vy(LP,t)}}function bP(e,t,a){e==="focusin"?(mx(),rl=t,hl=a,rl.attachEvent("onpropertychange",zy)):e==="focusout"&&mx()}function kP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Td(hl)}function RP(e,t){if(e==="click")return Td(t)}function PP(e,t){if(e==="input"||e==="change")return Td(t)}function TP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ua=typeof Object.is=="function"?Object.is:TP;function gl(e,t){if(Ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!ap.call(t,o)||!Ua(e[o],t[o]))return!1}return!0}function hx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gx(e,t){var a=hx(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hx(a)}}function By(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?By(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uy(){for(var e=window,t=rd();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=rd(e.document)}return t}function um(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MP(e){var t=Uy(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&By(a.ownerDocument.documentElement,a)){if(r!==null&&um(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=gx(a,n);var s=gx(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var DP=Hr&&"documentMode"in document&&11>=document.documentMode,Ss=null,Cp=null,ol=null,Sp=!1;function vx(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sp||Ss==null||Ss!==rd(r)||(r=Ss,"selectionStart"in r&&um(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ol&&gl(ol,r)||(ol=r,r=dd(Cp,"onSelect"),0<r.length&&(t=new sm("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ss)))}function Fu(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ls={animationend:Fu("Animation","AnimationEnd"),animationiteration:Fu("Animation","AnimationIteration"),animationstart:Fu("Animation","AnimationStart"),transitionend:Fu("Transition","TransitionEnd")},Vf={},Hy={};Hr&&(Hy=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function Md(e){if(Vf[e])return Vf[e];if(!Ls[e])return e;var t=Ls[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Hy)return Vf[e]=t[a];return e}var jy=Md("animationend"),Vy=Md("animationiteration"),qy=Md("animationstart"),Wy=Md("transitionend"),Gy=new Map,xx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Oo(e,t){Gy.set(e,t),vn(t,[e])}for(zu=0;zu<xx.length;zu++)Bu=xx[zu],yx=Bu.toLowerCase(),wx=Bu[0].toUpperCase()+Bu.slice(1),Oo(yx,"on"+wx);var Bu,yx,wx,zu;Oo(jy,"onAnimationEnd");Oo(Vy,"onAnimationIteration");Oo(qy,"onAnimationStart");Oo("dblclick","onDoubleClick");Oo("focusin","onFocus");Oo("focusout","onBlur");Oo(Wy,"onTransitionEnd");Fs("onMouseEnter",["mouseout","mouseover"]);Fs("onMouseLeave",["mouseout","mouseover"]);Fs("onPointerEnter",["pointerout","pointerover"]);Fs("onPointerLeave",["pointerout","pointerover"]);vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_P=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ji));function Cx(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,_R(r,t,void 0,e),e.currentTarget=null}function $y(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;Cx(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;Cx(o,i,u),n=l}}}if(nd)throw e=vp,nd=!1,vp=null,e}function We(e,t){var a=t[Rp];a===void 0&&(a=t[Rp]=new Set);var r=e+"__bubble";a.has(r)||(Ky(t,e,2,!1),a.add(r))}function qf(e,t,a){var r=0;t&&(r|=4),Ky(a,e,r,t)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function vl(e){if(!e[Uu]){e[Uu]=!0,ty.forEach(function(a){a!=="selectionchange"&&(_P.has(a)||qf(a,!1,e),qf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uu]||(t[Uu]=!0,qf("selectionchange",!1,t))}}function Ky(e,t,a,r){switch(Dy(t)){case 1:var o=KR;break;case 4:o=XR;break;default:o=om}a=o.bind(null,t,a,e),o=void 0,!gp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Wf(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=sn(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}vy(function(){var u=n,d=em(a),c=[];e:{var f=Gy.get(e);if(f!==void 0){var h=sm,v=e;switch(e){case"keypress":if(Xu(a)===0)break e;case"keydown":case"keyup":h=dP;break;case"focusin":v="focus",h=Hf;break;case"focusout":v="blur",h=Hf;break;case"beforeblur":case"afterblur":h=Hf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=lx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=YR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=pP;break;case jy:case Vy:case qy:h=tP;break;case Wy:h=hP;break;case"scroll":h=ZR;break;case"wheel":h=vP;break;case"copy":case"cut":case"paste":h=rP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=dx}var x=(t&4)!==0,w=!x&&e==="scroll",p=x?f!==null?f+"Capture":null:f;x=[];for(var m=u,g;m!==null;){g=m;var y=g.stateNode;if(g.tag===5&&y!==null&&(g=y,p!==null&&(y=cl(m,p),y!=null&&x.push(xl(m,y,g)))),w)break;m=m.return}0<x.length&&(f=new h(f,v,null,a,d),c.push({event:f,listeners:x}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&a!==mp&&(v=a.relatedTarget||a.fromElement)&&(sn(v)||v[jr]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=a.relatedTarget||a.toElement,h=u,v=v?sn(v):null,v!==null&&(w=xn(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(x=lx,y="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(x=dx,y="onPointerLeave",p="onPointerEnter",m="pointer"),w=h==null?f:Is(h),g=v==null?f:Is(v),f=new x(y,m+"leave",h,a,d),f.target=w,f.relatedTarget=g,y=null,sn(d)===u&&(x=new x(p,m+"enter",v,a,d),x.target=g,x.relatedTarget=w,y=x),w=y,h&&v)t:{for(x=h,p=v,m=0,g=x;g;g=xs(g))m++;for(g=0,y=p;y;y=xs(y))g++;for(;0<m-g;)x=xs(x),m--;for(;0<g-m;)p=xs(p),g--;for(;m--;){if(x===p||p!==null&&x===p.alternate)break t;x=xs(x),p=xs(p)}x=null}else x=null;h!==null&&Sx(c,f,h,x,!1),v!==null&&w!==null&&Sx(c,w,v,x,!0)}}e:{if(f=u?Is(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=IP;else if(px(f))if(Fy)C=PP;else{C=kP;var I=bP}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=RP);if(C&&(C=C(e,u))){Ny(c,C,a,d);break e}I&&I(e,f,u),e==="focusout"&&(I=f._wrapperState)&&I.controlled&&f.type==="number"&&up(f,"number",f.value)}switch(I=u?Is(u):window,e){case"focusin":(px(I)||I.contentEditable==="true")&&(Ss=I,Cp=u,ol=null);break;case"focusout":ol=Cp=Ss=null;break;case"mousedown":Sp=!0;break;case"contextmenu":case"mouseup":case"dragend":Sp=!1,vx(c,a,d);break;case"selectionchange":if(DP)break;case"keydown":case"keyup":vx(c,a,d)}var k;if(lm)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Cs?Ey(e,a)&&(b="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(b="onCompositionStart");b&&(Ay&&a.locale!=="ko"&&(Cs||b!=="onCompositionStart"?b==="onCompositionEnd"&&Cs&&(k=_y()):(Lo=d,nm="value"in Lo?Lo.value:Lo.textContent,Cs=!0)),I=dd(u,b),0<I.length&&(b=new ux(b,e,null,a,d),c.push({event:b,listeners:I}),k?b.data=k:(k=Oy(a),k!==null&&(b.data=k)))),(k=yP?wP(e,a):CP(e,a))&&(u=dd(u,"onBeforeInput"),0<u.length&&(d=new ux("onBeforeInput","beforeinput",null,a,d),c.push({event:d,listeners:u}),d.data=k))}$y(c,t)})}function xl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function dd(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=cl(e,a),n!=null&&r.unshift(xl(e,n,o)),n=cl(e,t),n!=null&&r.push(xl(e,n,o))),e=e.return}return r}function xs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sx(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=cl(a,n),l!=null&&s.unshift(xl(a,l,i))):o||(l=cl(a,n),l!=null&&s.push(xl(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var AP=/\r\n?/g,EP=/\u0000|\uFFFD/g;function Lx(e){return(typeof e=="string"?e:""+e).replace(AP,`
|
|
6
|
+
`).replace(EP,"")}function Hu(e,t,a){if(t=Lx(t),Lx(e)!==t&&a)throw Error(U(425))}function cd(){}var Lp=null,Ip=null;function bp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kp=typeof setTimeout=="function"?setTimeout:void 0,OP=typeof clearTimeout=="function"?clearTimeout:void 0,Ix=typeof Promise=="function"?Promise:void 0,NP=typeof queueMicrotask=="function"?queueMicrotask:typeof Ix<"u"?function(e){return Ix.resolve(null).then(e).catch(FP)}:kp;function FP(e){setTimeout(function(){throw e})}function Gf(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),ml(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);ml(t)}function Po(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function bx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),lr="__reactFiber$"+Ws,yl="__reactProps$"+Ws,jr="__reactContainer$"+Ws,Rp="__reactEvents$"+Ws,zP="__reactListeners$"+Ws,BP="__reactHandles$"+Ws;function sn(e){var t=e[lr];if(t)return t;for(var a=e.parentNode;a;){if(t=a[jr]||a[lr]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=bx(e);e!==null;){if(a=e[lr])return a;e=bx(e)}return t}e=a,a=e.parentNode}return null}function Pl(e){return e=e[lr]||e[jr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Is(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Dd(e){return e[yl]||null}var Pp=[],bs=-1;function No(e){return{current:e}}function Ge(e){0>bs||(e.current=Pp[bs],Pp[bs]=null,bs--)}function Ve(e,t){bs++,Pp[bs]=e.current,e.current=t}var Eo={},Et=No(Eo),aa=No(!1),fn=Eo;function zs(e,t){var a=e.type.contextTypes;if(!a)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ra(e){return e=e.childContextTypes,e!=null}function fd(){Ge(aa),Ge(Et)}function kx(e,t,a){if(Et.current!==Eo)throw Error(U(168));Ve(Et,t),Ve(aa,a)}function Xy(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,bR(e)||"Unknown",o));return Qe({},a,r)}function pd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,fn=Et.current,Ve(Et,e),Ve(aa,aa.current),!0}function Rx(e,t,a){var r=e.stateNode;if(!r)throw Error(U(169));a?(e=Xy(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,Ge(aa),Ge(Et),Ve(Et,e)):Ge(aa),Ve(aa,a)}var Fr=null,_d=!1,$f=!1;function Zy(e){Fr===null?Fr=[e]:Fr.push(e)}function UP(e){_d=!0,Zy(e)}function Fo(){if(!$f&&Fr!==null){$f=!0;var e=0,t=ze;try{var a=Fr;for(ze=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Fr=null,_d=!1}catch(o){throw Fr!==null&&(Fr=Fr.slice(e+1)),Cy(tm,Fo),o}finally{ze=t,$f=!1}}return null}var ks=[],Rs=0,md=null,hd=0,wa=[],Ca=0,pn=null,zr=1,Br="";function on(e,t){ks[Rs++]=hd,ks[Rs++]=md,md=e,hd=t}function Qy(e,t,a){wa[Ca++]=zr,wa[Ca++]=Br,wa[Ca++]=pn,pn=e;var r=zr;e=Br;var o=32-za(r)-1;r&=~(1<<o),a+=1;var n=32-za(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,zr=1<<32-za(t)+o|a<<o|r,Br=n+e}else zr=1<<n|a<<o|r,Br=e}function dm(e){e.return!==null&&(on(e,1),Qy(e,1,0))}function cm(e){for(;e===md;)md=ks[--Rs],ks[Rs]=null,hd=ks[--Rs],ks[Rs]=null;for(;e===pn;)pn=wa[--Ca],wa[Ca]=null,Br=wa[--Ca],wa[Ca]=null,zr=wa[--Ca],wa[Ca]=null}var fa=null,ca=null,Ke=!1,Fa=null;function Yy(e,t){var a=Sa(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function Px(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,fa=e,ca=Po(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,fa=e,ca=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=pn!==null?{id:zr,overflow:Br}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Sa(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,fa=e,ca=null,!0):!1;default:return!1}}function Tp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mp(e){if(Ke){var t=ca;if(t){var a=t;if(!Px(e,t)){if(Tp(e))throw Error(U(418));t=Po(a.nextSibling);var r=fa;t&&Px(e,t)?Yy(r,a):(e.flags=e.flags&-4097|2,Ke=!1,fa=e)}}else{if(Tp(e))throw Error(U(418));e.flags=e.flags&-4097|2,Ke=!1,fa=e}}}function Tx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;fa=e}function ju(e){if(e!==fa)return!1;if(!Ke)return Tx(e),Ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bp(e.type,e.memoizedProps)),t&&(t=ca)){if(Tp(e))throw Jy(),Error(U(418));for(;t;)Yy(e,t),t=Po(t.nextSibling)}if(Tx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){ca=Po(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}ca=null}}else ca=fa?Po(e.stateNode.nextSibling):null;return!0}function Jy(){for(var e=ca;e;)e=Po(e.nextSibling)}function Bs(){ca=fa=null,Ke=!1}function fm(e){Fa===null?Fa=[e]:Fa.push(e)}var HP=Wr.ReactCurrentBatchConfig;function Gi(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(U(309));var r=a.stateNode}if(!r)throw Error(U(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(U(284));if(!a._owner)throw Error(U(290,e))}return e}function Vu(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mx(e){var t=e._init;return t(e._payload)}function ew(e){function t(p,m){if(e){var g=p.deletions;g===null?(p.deletions=[m],p.flags|=16):g.push(m)}}function a(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function r(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function o(p,m){return p=_o(p,m),p.index=0,p.sibling=null,p}function n(p,m,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<m?(p.flags|=2,m):g):(p.flags|=2,m)):(p.flags|=1048576,m)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function i(p,m,g,y){return m===null||m.tag!==6?(m=ep(g,p.mode,y),m.return=p,m):(m=o(m,g),m.return=p,m)}function l(p,m,g,y){var C=g.type;return C===ws?d(p,m,g.props.children,y,g.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===yo&&Mx(C)===m.type)?(y=o(m,g.props),y.ref=Gi(p,m,g),y.return=p,y):(y=ad(g.type,g.key,g.props,null,p.mode,y),y.ref=Gi(p,m,g),y.return=p,y)}function u(p,m,g,y){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=tp(g,p.mode,y),m.return=p,m):(m=o(m,g.children||[]),m.return=p,m)}function d(p,m,g,y,C){return m===null||m.tag!==7?(m=cn(g,p.mode,y,C),m.return=p,m):(m=o(m,g),m.return=p,m)}function c(p,m,g){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ep(""+m,p.mode,g),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Pu:return g=ad(m.type,m.key,m.props,null,p.mode,g),g.ref=Gi(p,null,m),g.return=p,g;case ys:return m=tp(m,p.mode,g),m.return=p,m;case yo:var y=m._init;return c(p,y(m._payload),g)}if(Qi(m)||ji(m))return m=cn(m,p.mode,g,null),m.return=p,m;Vu(p,m)}return null}function f(p,m,g,y){var C=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:i(p,m,""+g,y);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pu:return g.key===C?l(p,m,g,y):null;case ys:return g.key===C?u(p,m,g,y):null;case yo:return C=g._init,f(p,m,C(g._payload),y)}if(Qi(g)||ji(g))return C!==null?null:d(p,m,g,y,null);Vu(p,g)}return null}function h(p,m,g,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return p=p.get(g)||null,i(m,p,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Pu:return p=p.get(y.key===null?g:y.key)||null,l(m,p,y,C);case ys:return p=p.get(y.key===null?g:y.key)||null,u(m,p,y,C);case yo:var I=y._init;return h(p,m,g,I(y._payload),C)}if(Qi(y)||ji(y))return p=p.get(g)||null,d(m,p,y,C,null);Vu(m,y)}return null}function v(p,m,g,y){for(var C=null,I=null,k=m,b=m=0,T=null;k!==null&&b<g.length;b++){k.index>b?(T=k,k=null):T=k.sibling;var A=f(p,k,g[b],y);if(A===null){k===null&&(k=T);break}e&&k&&A.alternate===null&&t(p,k),m=n(A,m,b),I===null?C=A:I.sibling=A,I=A,k=T}if(b===g.length)return a(p,k),Ke&&on(p,b),C;if(k===null){for(;b<g.length;b++)k=c(p,g[b],y),k!==null&&(m=n(k,m,b),I===null?C=k:I.sibling=k,I=k);return Ke&&on(p,b),C}for(k=r(p,k);b<g.length;b++)T=h(k,p,b,g[b],y),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?b:T.key),m=n(T,m,b),I===null?C=T:I.sibling=T,I=T);return e&&k.forEach(function(D){return t(p,D)}),Ke&&on(p,b),C}function x(p,m,g,y){var C=ji(g);if(typeof C!="function")throw Error(U(150));if(g=C.call(g),g==null)throw Error(U(151));for(var I=C=null,k=m,b=m=0,T=null,A=g.next();k!==null&&!A.done;b++,A=g.next()){k.index>b?(T=k,k=null):T=k.sibling;var D=f(p,k,A.value,y);if(D===null){k===null&&(k=T);break}e&&k&&D.alternate===null&&t(p,k),m=n(D,m,b),I===null?C=D:I.sibling=D,I=D,k=T}if(A.done)return a(p,k),Ke&&on(p,b),C;if(k===null){for(;!A.done;b++,A=g.next())A=c(p,A.value,y),A!==null&&(m=n(A,m,b),I===null?C=A:I.sibling=A,I=A);return Ke&&on(p,b),C}for(k=r(p,k);!A.done;b++,A=g.next())A=h(k,p,b,A.value,y),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?b:A.key),m=n(A,m,b),I===null?C=A:I.sibling=A,I=A);return e&&k.forEach(function(E){return t(p,E)}),Ke&&on(p,b),C}function w(p,m,g,y){if(typeof g=="object"&&g!==null&&g.type===ws&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pu:e:{for(var C=g.key,I=m;I!==null;){if(I.key===C){if(C=g.type,C===ws){if(I.tag===7){a(p,I.sibling),m=o(I,g.props.children),m.return=p,p=m;break e}}else if(I.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===yo&&Mx(C)===I.type){a(p,I.sibling),m=o(I,g.props),m.ref=Gi(p,I,g),m.return=p,p=m;break e}a(p,I);break}else t(p,I);I=I.sibling}g.type===ws?(m=cn(g.props.children,p.mode,y,g.key),m.return=p,p=m):(y=ad(g.type,g.key,g.props,null,p.mode,y),y.ref=Gi(p,m,g),y.return=p,p=y)}return s(p);case ys:e:{for(I=g.key;m!==null;){if(m.key===I)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){a(p,m.sibling),m=o(m,g.children||[]),m.return=p,p=m;break e}else{a(p,m);break}else t(p,m);m=m.sibling}m=tp(g,p.mode,y),m.return=p,p=m}return s(p);case yo:return I=g._init,w(p,m,I(g._payload),y)}if(Qi(g))return v(p,m,g,y);if(ji(g))return x(p,m,g,y);Vu(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(a(p,m.sibling),m=o(m,g),m.return=p,p=m):(a(p,m),m=ep(g,p.mode,y),m.return=p,p=m),s(p)):a(p,m)}return w}var Us=ew(!0),tw=ew(!1),gd=No(null),vd=null,Ps=null,pm=null;function mm(){pm=Ps=vd=null}function hm(e){var t=gd.current;Ge(gd),e._currentValue=t}function Dp(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Os(e,t){vd=e,pm=Ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ta=!0),e.firstContext=null)}function Ia(e){var t=e._currentValue;if(pm!==e)if(e={context:e,memoizedValue:t,next:null},Ps===null){if(vd===null)throw Error(U(308));Ps=e,vd.dependencies={lanes:0,firstContext:e}}else Ps=Ps.next=e;return t}var ln=null;function gm(e){ln===null?ln=[e]:ln.push(e)}function aw(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,gm(t)):(a.next=o.next,o.next=a),t.interleaved=a,Vr(e,r)}function Vr(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var wo=!1;function vm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function To(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(_e&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vr(e,a)}return o=r.interleaved,o===null?(t.next=t,gm(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vr(e,a)}function Zu(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,am(e,a)}}function Dx(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function xd(e,t,a,r){var o=e.updateQueue;wo=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(n!==null){var c=o.baseState;s=0,d=u=l=null,i=n;do{var f=i.lane,h=i.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,x=i;switch(f=t,h=a,x.tag){case 1:if(v=x.payload,typeof v=="function"){c=v.call(h,c,f);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(h,c,f):v,f==null)break e;c=Qe({},c,f);break e;case 2:wo=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else h={eventTime:h,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=h,l=c):d=d.next=h,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);hn|=s,e.lanes=s,e.memoizedState=c}}function _x(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(U(191,o));o.call(r)}}}var Tl={},dr=No(Tl),wl=No(Tl),Cl=No(Tl);function un(e){if(e===Tl)throw Error(U(174));return e}function xm(e,t){switch(Ve(Cl,t),Ve(wl,e),Ve(dr,Tl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cp(t,e)}Ge(dr),Ve(dr,t)}function Hs(){Ge(dr),Ge(wl),Ge(Cl)}function ow(e){un(Cl.current);var t=un(dr.current),a=cp(t,e.type);t!==a&&(Ve(wl,e),Ve(dr,a))}function ym(e){wl.current===e&&(Ge(dr),Ge(wl))}var Xe=No(0);function yd(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kf=[];function wm(){for(var e=0;e<Kf.length;e++)Kf[e]._workInProgressVersionPrimary=null;Kf.length=0}var Qu=Wr.ReactCurrentDispatcher,Xf=Wr.ReactCurrentBatchConfig,mn=0,Ze=null,lt=null,mt=null,wd=!1,nl=!1,Sl=0,jP=0;function Dt(){throw Error(U(321))}function Cm(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ua(e[a],t[a]))return!1;return!0}function Sm(e,t,a,r,o,n){if(mn=n,Ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qu.current=e===null||e.memoizedState===null?GP:$P,e=a(r,o),nl){n=0;do{if(nl=!1,Sl=0,25<=n)throw Error(U(301));n+=1,mt=lt=null,t.updateQueue=null,Qu.current=KP,e=a(r,o)}while(nl)}if(Qu.current=Cd,t=lt!==null&<.next!==null,mn=0,mt=lt=Ze=null,wd=!1,t)throw Error(U(300));return e}function Lm(){var e=Sl!==0;return Sl=0,e}function ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Ze.memoizedState=mt=e:mt=mt.next=e,mt}function ba(){if(lt===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=lt.next;var t=mt===null?Ze.memoizedState:mt.next;if(t!==null)mt=t,lt=e;else{if(e===null)throw Error(U(310));lt=e,e={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},mt===null?Ze.memoizedState=mt=e:mt=mt.next=e}return mt}function Ll(e,t){return typeof t=="function"?t(e):t}function Zf(e){var t=ba(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=lt,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var d=u.lane;if((mn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=c,s=r):l=l.next=c,Ze.lanes|=d,hn|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,Ua(r,t.memoizedState)||(ta=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,Ze.lanes|=n,hn|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Qf(e){var t=ba(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);Ua(n,t.memoizedState)||(ta=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function nw(){}function sw(e,t){var a=Ze,r=ba(),o=t(),n=!Ua(r.memoizedState,o);if(n&&(r.memoizedState=o,ta=!0),r=r.queue,Im(uw.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||mt!==null&&mt.memoizedState.tag&1){if(a.flags|=2048,Il(9,lw.bind(null,a,r,o,t),void 0,null),ht===null)throw Error(U(349));(mn&30)!==0||iw(a,t,o)}return o}function iw(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lw(e,t,a,r){t.value=a,t.getSnapshot=r,dw(t)&&cw(e)}function uw(e,t,a){return a(function(){dw(t)&&cw(e)})}function dw(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ua(e,a)}catch{return!0}}function cw(e){var t=Vr(e,1);t!==null&&Ba(t,e,1,-1)}function Ax(e){var t=ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:e},t.queue=e,e=e.dispatch=WP.bind(null,Ze,e),[t.memoizedState,e]}function Il(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function fw(){return ba().memoizedState}function Yu(e,t,a,r){var o=ir();Ze.flags|=e,o.memoizedState=Il(1|t,a,void 0,r===void 0?null:r)}function Ad(e,t,a,r){var o=ba();r=r===void 0?null:r;var n=void 0;if(lt!==null){var s=lt.memoizedState;if(n=s.destroy,r!==null&&Cm(r,s.deps)){o.memoizedState=Il(t,a,n,r);return}}Ze.flags|=e,o.memoizedState=Il(1|t,a,n,r)}function Ex(e,t){return Yu(8390656,8,e,t)}function Im(e,t){return Ad(2048,8,e,t)}function pw(e,t){return Ad(4,2,e,t)}function mw(e,t){return Ad(4,4,e,t)}function hw(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gw(e,t,a){return a=a!=null?a.concat([e]):null,Ad(4,4,hw.bind(null,t,e),a)}function bm(){}function vw(e,t){var a=ba();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Cm(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function xw(e,t){var a=ba();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Cm(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function yw(e,t,a){return(mn&21)===0?(e.baseState&&(e.baseState=!1,ta=!0),e.memoizedState=a):(Ua(a,t)||(a=Iy(),Ze.lanes|=a,hn|=a,e.baseState=!0),t)}function VP(e,t){var a=ze;ze=a!==0&&4>a?a:4,e(!0);var r=Xf.transition;Xf.transition={};try{e(!1),t()}finally{ze=a,Xf.transition=r}}function ww(){return ba().memoizedState}function qP(e,t,a){var r=Do(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Cw(e))Sw(t,a);else if(a=aw(e,t,a,r),a!==null){var o=Vt();Ba(a,e,r,o),Lw(a,t,r)}}function WP(e,t,a){var r=Do(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cw(e))Sw(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,Ua(i,s)){var l=t.interleaved;l===null?(o.next=o,gm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=aw(e,t,o,r),a!==null&&(o=Vt(),Ba(a,e,r,o),Lw(a,t,r))}}function Cw(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function Sw(e,t){nl=wd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Lw(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,am(e,a)}}var Cd={readContext:Ia,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},GP={readContext:Ia,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:Ex,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Yu(4194308,4,hw.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Yu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yu(4,2,e,t)},useMemo:function(e,t){var a=ir();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=ir();return t=a!==void 0?a(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qP.bind(null,Ze,e),[r.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:Ax,useDebugValue:bm,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=Ax(!1),t=e[0];return e=VP.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=Ze,o=ir();if(Ke){if(a===void 0)throw Error(U(407));a=a()}else{if(a=t(),ht===null)throw Error(U(349));(mn&30)!==0||iw(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,Ex(uw.bind(null,r,n,e),[e]),r.flags|=2048,Il(9,lw.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=ir(),t=ht.identifierPrefix;if(Ke){var a=Br,r=zr;a=(r&~(1<<32-za(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Sl++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=jP++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$P={readContext:Ia,useCallback:vw,useContext:Ia,useEffect:Im,useImperativeHandle:gw,useInsertionEffect:pw,useLayoutEffect:mw,useMemo:xw,useReducer:Zf,useRef:fw,useState:function(){return Zf(Ll)},useDebugValue:bm,useDeferredValue:function(e){var t=ba();return yw(t,lt.memoizedState,e)},useTransition:function(){var e=Zf(Ll)[0],t=ba().memoizedState;return[e,t]},useMutableSource:nw,useSyncExternalStore:sw,useId:ww,unstable_isNewReconciler:!1},KP={readContext:Ia,useCallback:vw,useContext:Ia,useEffect:Im,useImperativeHandle:gw,useInsertionEffect:pw,useLayoutEffect:mw,useMemo:xw,useReducer:Qf,useRef:fw,useState:function(){return Qf(Ll)},useDebugValue:bm,useDeferredValue:function(e){var t=ba();return lt===null?t.memoizedState=e:yw(t,lt.memoizedState,e)},useTransition:function(){var e=Qf(Ll)[0],t=ba().memoizedState;return[e,t]},useMutableSource:nw,useSyncExternalStore:sw,useId:ww,unstable_isNewReconciler:!1};function Oa(e,t){if(e&&e.defaultProps){t=Qe({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function _p(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Qe({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ed={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Vt(),o=Do(e),n=Ur(r,o);n.payload=t,a!=null&&(n.callback=a),t=To(e,n,o),t!==null&&(Ba(t,e,o,r),Zu(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Vt(),o=Do(e),n=Ur(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=To(e,n,o),t!==null&&(Ba(t,e,o,r),Zu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Vt(),r=Do(e),o=Ur(a,r);o.tag=2,t!=null&&(o.callback=t),t=To(e,o,r),t!==null&&(Ba(t,e,r,a),Zu(t,e,r))}};function Ox(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!gl(a,r)||!gl(o,n):!0}function Iw(e,t,a){var r=!1,o=Eo,n=t.contextType;return typeof n=="object"&&n!==null?n=Ia(n):(o=ra(t)?fn:Et.current,r=t.contextTypes,n=(r=r!=null)?zs(e,o):Eo),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ed,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function Nx(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Ed.enqueueReplaceState(t,t.state,null)}function Ap(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},vm(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Ia(n):(n=ra(t)?fn:Et.current,o.context=zs(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(_p(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ed.enqueueReplaceState(o,o.state,null),xd(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function js(e,t){try{var a="",r=t;do a+=IR(r),r=r.return;while(r);var o=a}catch(n){o=`
|
|
7
|
+
Error generating stack: `+n.message+`
|
|
8
|
+
`+n.stack}return{value:e,source:t,stack:o,digest:null}}function Yf(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function Ep(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var XP=typeof WeakMap=="function"?WeakMap:Map;function bw(e,t,a){a=Ur(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Ld||(Ld=!0,qp=r),Ep(e,t)},a}function kw(e,t,a){a=Ur(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){Ep(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){Ep(e,t),typeof r!="function"&&(Mo===null?Mo=new Set([this]):Mo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function Fx(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new XP;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=u1.bind(null,e,t,a),t.then(e,e))}function zx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bx(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Ur(-1,1),t.tag=2,To(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ZP=Wr.ReactCurrentOwner,ta=!1;function jt(e,t,a,r){t.child=e===null?tw(t,null,a,r):Us(t,e.child,a,r)}function Ux(e,t,a,r,o){a=a.render;var n=t.ref;return Os(t,o),r=Sm(e,t,a,r,n,o),a=Lm(),e!==null&&!ta?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qr(e,t,o)):(Ke&&a&&dm(t),t.flags|=1,jt(e,t,r,o),t.child)}function Hx(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Am(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,Rw(e,t,n,r,o)):(e=ad(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:gl,a(s,r)&&e.ref===t.ref)return qr(e,t,o)}return t.flags|=1,e=_o(n,r),e.ref=t.ref,e.return=t,t.child=e}function Rw(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(gl(n,r)&&e.ref===t.ref)if(ta=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,qr(e,t,o)}return Op(e,t,a,r,o)}function Pw(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(Ms,da),da|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(Ms,da),da|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,Ve(Ms,da),da|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,Ve(Ms,da),da|=r;return jt(e,t,o,a),t.child}function Tw(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Op(e,t,a,r,o){var n=ra(a)?fn:Et.current;return n=zs(t,n),Os(t,o),a=Sm(e,t,a,r,n,o),r=Lm(),e!==null&&!ta?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qr(e,t,o)):(Ke&&r&&dm(t),t.flags|=1,jt(e,t,a,o),t.child)}function jx(e,t,a,r,o){if(ra(a)){var n=!0;pd(t)}else n=!1;if(Os(t,o),t.stateNode===null)Ju(e,t),Iw(t,a,r),Ap(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Ia(u):(u=ra(a)?fn:Et.current,u=zs(t,u));var d=a.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&Nx(t,s,r,u),wo=!1;var f=t.memoizedState;s.state=f,xd(t,r,s,o),l=t.memoizedState,i!==r||f!==l||aa.current||wo?(typeof d=="function"&&(_p(t,a,d,r),l=t.memoizedState),(i=wo||Ox(t,a,i,r,f,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,rw(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:Oa(t.type,i),s.props=u,c=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Ia(l):(l=ra(a)?fn:Et.current,l=zs(t,l));var h=a.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==c||f!==l)&&Nx(t,s,r,l),wo=!1,f=t.memoizedState,s.state=f,xd(t,r,s,o);var v=t.memoizedState;i!==c||f!==v||aa.current||wo?(typeof h=="function"&&(_p(t,a,h,r),v=t.memoizedState),(u=wo||Ox(t,a,u,r,f,v,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Np(e,t,a,r,n,o)}function Np(e,t,a,r,o,n){Tw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Rx(t,a,!1),qr(e,t,n);r=t.stateNode,ZP.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Us(t,e.child,null,n),t.child=Us(t,null,i,n)):jt(e,t,i,n),t.memoizedState=r.state,o&&Rx(t,a,!0),t.child}function Mw(e){var t=e.stateNode;t.pendingContext?kx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kx(e,t.context,!1),xm(e,t.containerInfo)}function Vx(e,t,a,r,o){return Bs(),fm(o),t.flags|=256,jt(e,t,a,r),t.child}var Fp={dehydrated:null,treeContext:null,retryLane:0};function zp(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dw(e,t,a){var r=t.pendingProps,o=Xe.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ve(Xe,o&1),e===null)return Mp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=Fd(s,r,0,null),e=cn(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=zp(a),t.memoizedState=Fp,e):km(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return QP(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=_o(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=_o(i,n):(n=cn(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?zp(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=Fp,r}return n=e.child,e=n.sibling,r=_o(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function km(e,t){return t=Fd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qu(e,t,a,r){return r!==null&&fm(r),Us(t,e.child,null,a),e=km(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QP(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=Yf(Error(U(422))),qu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=Fd({mode:"visible",children:r.children},o,0,null),n=cn(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&Us(t,e.child,null,s),t.child.memoizedState=zp(s),t.memoizedState=Fp,n);if((t.mode&1)===0)return qu(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(U(419)),r=Yf(n,r,void 0),qu(e,t,s,r)}if(i=(s&e.childLanes)!==0,ta||i){if(r=ht,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Vr(e,o),Ba(r,e,o,-1))}return _m(),r=Yf(Error(U(421))),qu(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=d1.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,ca=Po(o.nextSibling),fa=t,Ke=!0,Fa=null,e!==null&&(wa[Ca++]=zr,wa[Ca++]=Br,wa[Ca++]=pn,zr=e.id,Br=e.overflow,pn=t),t=km(t,r.children),t.flags|=4096,t)}function qx(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dp(e.return,t,a)}function Jf(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function _w(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(jt(e,t,r.children,a),r=Xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qx(e,a,t);else if(e.tag===19)qx(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ve(Xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&yd(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Jf(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&yd(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Jf(t,!0,a,null,n);break;case"together":Jf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ju(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,a=_o(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=_o(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function YP(e,t,a){switch(t.tag){case 3:Mw(t),Bs();break;case 5:ow(t);break;case 1:ra(t.type)&&pd(t);break;case 4:xm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ve(gd,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ve(Xe,Xe.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?Dw(e,t,a):(Ve(Xe,Xe.current&1),e=qr(e,t,a),e!==null?e.sibling:null);Ve(Xe,Xe.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return _w(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ve(Xe,Xe.current),r)break;return null;case 22:case 23:return t.lanes=0,Pw(e,t,a)}return qr(e,t,a)}var Aw,Bp,Ew,Ow;Aw=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};Bp=function(){};Ew=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,un(dr.current);var n=null;switch(a){case"input":o=ip(e,o),r=ip(e,r),n=[];break;case"select":o=Qe({},o,{value:void 0}),r=Qe({},r,{value:void 0}),n=[];break;case"textarea":o=dp(e,o),r=dp(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cd)}fp(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ul.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ul.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&We("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};Ow=function(e,t,a,r){a!==r&&(t.flags|=4)};function $i(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function JP(e,t,a){var r=t.pendingProps;switch(cm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return ra(t.type)&&fd(),_t(t),null;case 3:return r=t.stateNode,Hs(),Ge(aa),Ge(Et),wm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ju(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fa!==null&&($p(Fa),Fa=null))),Bp(e,t),_t(t),null;case 5:ym(t);var o=un(Cl.current);if(a=t.type,e!==null&&t.stateNode!=null)Ew(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return _t(t),null}if(e=un(dr.current),ju(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[lr]=t,r[yl]=n,e=(t.mode&1)!==0,a){case"dialog":We("cancel",r),We("close",r);break;case"iframe":case"object":case"embed":We("load",r);break;case"video":case"audio":for(o=0;o<Ji.length;o++)We(Ji[o],r);break;case"source":We("error",r);break;case"img":case"image":case"link":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"input":Yv(r,n),We("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},We("invalid",r);break;case"textarea":ex(r,n),We("invalid",r)}fp(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&Hu(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&Hu(r.textContent,i,e),o=["children",""+i]):ul.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&We("scroll",r)}switch(a){case"input":Tu(r),Jv(r,n,!0);break;case"textarea":Tu(r),tx(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=cd)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uy(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[lr]=t,e[yl]=r,Aw(e,t,!1,!1),t.stateNode=e;e:{switch(s=pp(a,r),a){case"dialog":We("cancel",e),We("close",e),o=r;break;case"iframe":case"object":case"embed":We("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ji.length;o++)We(Ji[o],e);o=r;break;case"source":We("error",e),o=r;break;case"img":case"image":case"link":We("error",e),We("load",e),o=r;break;case"details":We("toggle",e),o=r;break;case"input":Yv(e,r),o=ip(e,r),We("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Qe({},r,{value:void 0}),We("invalid",e);break;case"textarea":ex(e,r),o=dp(e,r),We("invalid",e);break;default:o=r}fp(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?fy(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dy(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&dl(e,l):typeof l=="number"&&dl(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(ul.hasOwnProperty(n)?l!=null&&n==="onScroll"&&We("scroll",e):l!=null&&Zp(e,n,l,s))}switch(a){case"input":Tu(e),Jv(e,r,!1);break;case"textarea":Tu(e),tx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ao(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Ds(e,!!r.multiple,n,!1):r.defaultValue!=null&&Ds(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=cd)}switch(a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _t(t),null;case 6:if(e&&t.stateNode!=null)Ow(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(a=un(Cl.current),un(dr.current),ju(t)){if(r=t.stateNode,a=t.memoizedProps,r[lr]=t,(n=r.nodeValue!==a)&&(e=fa,e!==null))switch(e.tag){case 3:Hu(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hu(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[lr]=t,t.stateNode=r}return _t(t),null;case 13:if(Ge(Xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ke&&ca!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Jy(),Bs(),t.flags|=98560,n=!1;else if(n=ju(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(U(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(U(317));n[lr]=t}else Bs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_t(t),n=!1}else Fa!==null&&($p(Fa),Fa=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Xe.current&1)!==0?ut===0&&(ut=3):_m())),t.updateQueue!==null&&(t.flags|=4),_t(t),null);case 4:return Hs(),Bp(e,t),e===null&&vl(t.stateNode.containerInfo),_t(t),null;case 10:return hm(t.type._context),_t(t),null;case 17:return ra(t.type)&&fd(),_t(t),null;case 19:if(Ge(Xe),n=t.memoizedState,n===null)return _t(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)$i(n,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=yd(e),s!==null){for(t.flags|=128,$i(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return Ve(Xe,Xe.current&1|2),t.child}e=e.sibling}n.tail!==null&&tt()>Vs&&(t.flags|=128,r=!0,$i(n,!1),t.lanes=4194304)}else{if(!r)if(e=yd(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),$i(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Ke)return _t(t),null}else 2*tt()-n.renderingStartTime>Vs&&a!==1073741824&&(t.flags|=128,r=!0,$i(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=tt(),t.sibling=null,a=Xe.current,Ve(Xe,r?a&1|2:a&1),t):(_t(t),null);case 22:case 23:return Dm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(da&1073741824)!==0&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function e1(e,t){switch(cm(t),t.tag){case 1:return ra(t.type)&&fd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hs(),Ge(aa),Ge(Et),wm(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ym(t),null;case 13:if(Ge(Xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Bs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(Xe),null;case 4:return Hs(),null;case 10:return hm(t.type._context),null;case 22:case 23:return Dm(),null;case 24:return null;default:return null}}var Wu=!1,At=!1,t1=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Ts(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){et(e,t,r)}else a.current=null}function Up(e,t,a){try{a()}catch(r){et(e,t,r)}}var Wx=!1;function a1(e,t){if(Lp=ld,e=Uy(),um(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var h;c!==a||o!==0&&c.nodeType!==3||(i=s+o),c!==n||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(h=c.firstChild)!==null;)f=c,c=h;for(;;){if(c===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++d===r&&(l=s),(h=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=h}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ip={focusedElem:e,selectionRange:a},ld=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,w=v.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Oa(t.type,x),w);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(y){et(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return v=Wx,Wx=!1,v}function sl(e,t,a){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&Up(t,a,n)}o=o.next}while(o!==r)}}function Od(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function Hp(e){var t=e.ref;if(t!==null){var a=e.stateNode;e.tag,e=a,typeof t=="function"?t(e):t.current=e}}function Nw(e){var t=e.alternate;t!==null&&(e.alternate=null,Nw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lr],delete t[yl],delete t[Rp],delete t[zP],delete t[BP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fw(e){return e.tag===5||e.tag===3||e.tag===4}function Gx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jp(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=cd));else if(r!==4&&(e=e.child,e!==null))for(jp(e,t,a),e=e.sibling;e!==null;)jp(e,t,a),e=e.sibling}function Vp(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Vp(e,t,a),e=e.sibling;e!==null;)Vp(e,t,a),e=e.sibling}var Ct=null,Na=!1;function xo(e,t,a){for(a=a.child;a!==null;)zw(e,t,a),a=a.sibling}function zw(e,t,a){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(Rd,a)}catch{}switch(a.tag){case 5:At||Ts(a,t);case 6:var r=Ct,o=Na;Ct=null,xo(e,t,a),Ct=r,Na=o,Ct!==null&&(Na?(e=Ct,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Ct.removeChild(a.stateNode));break;case 18:Ct!==null&&(Na?(e=Ct,a=a.stateNode,e.nodeType===8?Gf(e.parentNode,a):e.nodeType===1&&Gf(e,a),ml(e)):Gf(Ct,a.stateNode));break;case 4:r=Ct,o=Na,Ct=a.stateNode.containerInfo,Na=!0,xo(e,t,a),Ct=r,Na=o;break;case 0:case 11:case 14:case 15:if(!At&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&Up(a,t,s),o=o.next}while(o!==r)}xo(e,t,a);break;case 1:if(!At&&(Ts(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){et(a,t,i)}xo(e,t,a);break;case 21:xo(e,t,a);break;case 22:a.mode&1?(At=(r=At)||a.memoizedState!==null,xo(e,t,a),At=r):xo(e,t,a);break;default:xo(e,t,a)}}function $x(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new t1),t.forEach(function(r){var o=c1.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function Ea(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:Ct=i.stateNode,Na=!1;break e;case 3:Ct=i.stateNode.containerInfo,Na=!0;break e;case 4:Ct=i.stateNode.containerInfo,Na=!0;break e}i=i.return}if(Ct===null)throw Error(U(160));zw(n,s,o),Ct=null,Na=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){et(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bw(t,e),t=t.sibling}function Bw(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ea(t,e),sr(e),r&4){try{sl(3,e,e.return),Od(3,e)}catch(x){et(e,e.return,x)}try{sl(5,e,e.return)}catch(x){et(e,e.return,x)}}break;case 1:Ea(t,e),sr(e),r&512&&a!==null&&Ts(a,a.return);break;case 5:if(Ea(t,e),sr(e),r&512&&a!==null&&Ts(a,a.return),e.flags&32){var o=e.stateNode;try{dl(o,"")}catch(x){et(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&iy(o,n),pp(i,s);var u=pp(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?fy(o,c):d==="dangerouslySetInnerHTML"?dy(o,c):d==="children"?dl(o,c):Zp(o,d,c,u)}switch(i){case"input":lp(o,n);break;case"textarea":ly(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var h=n.value;h!=null?Ds(o,!!n.multiple,h,!1):f!==!!n.multiple&&(n.defaultValue!=null?Ds(o,!!n.multiple,n.defaultValue,!0):Ds(o,!!n.multiple,n.multiple?[]:"",!1))}o[yl]=n}catch(x){et(e,e.return,x)}}break;case 6:if(Ea(t,e),sr(e),r&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(x){et(e,e.return,x)}}break;case 3:if(Ea(t,e),sr(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{ml(t.containerInfo)}catch(x){et(e,e.return,x)}break;case 4:Ea(t,e),sr(e);break;case 13:Ea(t,e),sr(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(Tm=tt())),r&4&&$x(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(At=(u=At)||d,Ea(t,e),At=u):Ea(t,e),sr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(Q=e,d=e.child;d!==null;){for(c=Q=d;Q!==null;){switch(f=Q,h=f.child,f.tag){case 0:case 11:case 14:case 15:sl(4,f,f.return);break;case 1:Ts(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){et(r,a,x)}}break;case 5:Ts(f,f.return);break;case 22:if(f.memoizedState!==null){Xx(c);continue}}h!==null?(h.return=f,Q=h):Xx(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=cy("display",s))}catch(x){et(e,e.return,x)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(x){et(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Ea(t,e),sr(e),r&4&&$x(e);break;case 21:break;default:Ea(t,e),sr(e)}}function sr(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(Fw(a)){var r=a;break e}a=a.return}throw Error(U(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(dl(o,""),r.flags&=-33);var n=Gx(e);Vp(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Gx(e);jp(e,i,s);break;default:throw Error(U(161))}}catch(l){et(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r1(e,t,a){Q=e,Uw(e,t,a)}function Uw(e,t,a){for(var r=(e.mode&1)!==0;Q!==null;){var o=Q,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Wu;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||At;i=Wu;var u=At;if(Wu=s,(At=l)&&!u)for(Q=o;Q!==null;)s=Q,l=s.child,s.tag===22&&s.memoizedState!==null?Zx(o):l!==null?(l.return=s,Q=l):Zx(o);for(;n!==null;)Q=n,Uw(n,t,a),n=n.sibling;Q=o,Wu=i,At=u}Kx(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,Q=n):Kx(e,t,a)}}function Kx(e){for(;Q!==null;){var t=Q;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:At||Od(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!At)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:Oa(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&_x(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}_x(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&ml(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}At||t.flags&512&&Hp(t)}catch(f){et(t,t.return,f)}}if(t===e){Q=null;break}if(a=t.sibling,a!==null){a.return=t.return,Q=a;break}Q=t.return}}function Xx(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Q=a;break}Q=t.return}}function Zx(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{Od(4,t)}catch(l){et(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){et(t,o,l)}}var n=t.return;try{Hp(t)}catch(l){et(t,n,l)}break;case 5:var s=t.return;try{Hp(t)}catch(l){et(t,s,l)}}}catch(l){et(t,t.return,l)}if(t===e){Q=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Q=i;break}Q=t.return}}var o1=Math.ceil,Sd=Wr.ReactCurrentDispatcher,Rm=Wr.ReactCurrentOwner,La=Wr.ReactCurrentBatchConfig,_e=0,ht=null,rt=null,St=0,da=0,Ms=No(0),ut=0,bl=null,hn=0,Nd=0,Pm=0,il=null,ea=null,Tm=0,Vs=1/0,Nr=null,Ld=!1,qp=null,Mo=null,Gu=!1,Io=null,Id=0,ll=0,Wp=null,ed=-1,td=0;function Vt(){return(_e&6)!==0?tt():ed!==-1?ed:ed=tt()}function Do(e){return(e.mode&1)===0?1:(_e&2)!==0&&St!==0?St&-St:HP.transition!==null?(td===0&&(td=Iy()),td):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Dy(e.type)),e)}function Ba(e,t,a,r){if(50<ll)throw ll=0,Wp=null,Error(U(185));kl(e,a,r),((_e&2)===0||e!==ht)&&(e===ht&&((_e&2)===0&&(Nd|=a),ut===4&&So(e,St)),oa(e,r),a===1&&_e===0&&(t.mode&1)===0&&(Vs=tt()+500,_d&&Fo()))}function oa(e,t){var a=e.callbackNode;VR(e,t);var r=id(e,e===ht?St:0);if(r===0)a!==null&&ox(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&ox(a),t===1)e.tag===0?UP(Qx.bind(null,e)):Zy(Qx.bind(null,e)),NP(function(){(_e&6)===0&&Fo()}),a=null;else{switch(by(r)){case 1:a=tm;break;case 4:a=Sy;break;case 16:a=sd;break;case 536870912:a=Ly;break;default:a=sd}a=Kw(a,Hw.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function Hw(e,t){if(ed=-1,td=0,(_e&6)!==0)throw Error(U(327));var a=e.callbackNode;if(Ns()&&e.callbackNode!==a)return null;var r=id(e,e===ht?St:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=bd(e,r);else{t=r;var o=_e;_e|=2;var n=Vw();(ht!==e||St!==t)&&(Nr=null,Vs=tt()+500,dn(e,t));do try{i1();break}catch(i){jw(e,i)}while(!0);mm(),Sd.current=n,_e=o,rt!==null?t=0:(ht=null,St=0,t=ut)}if(t!==0){if(t===2&&(o=xp(e),o!==0&&(r=o,t=Gp(e,o))),t===1)throw a=bl,dn(e,0),So(e,r),oa(e,tt()),a;if(t===6)So(e,r);else{if(o=e.current.alternate,(r&30)===0&&!n1(o)&&(t=bd(e,r),t===2&&(n=xp(e),n!==0&&(r=n,t=Gp(e,n))),t===1))throw a=bl,dn(e,0),So(e,r),oa(e,tt()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:nn(e,ea,Nr);break;case 3:if(So(e,r),(r&130023424)===r&&(t=Tm+500-tt(),10<t)){if(id(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Vt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=kp(nn.bind(null,e,ea,Nr),t);break}nn(e,ea,Nr);break;case 4:if(So(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-za(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o1(r/1960))-r,10<r){e.timeoutHandle=kp(nn.bind(null,e,ea,Nr),r);break}nn(e,ea,Nr);break;case 5:nn(e,ea,Nr);break;default:throw Error(U(329))}}}return oa(e,tt()),e.callbackNode===a?Hw.bind(null,e):null}function Gp(e,t){var a=il;return e.current.memoizedState.isDehydrated&&(dn(e,t).flags|=256),e=bd(e,t),e!==2&&(t=ea,ea=a,t!==null&&$p(t)),e}function $p(e){ea===null?ea=e:ea.push.apply(ea,e)}function n1(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!Ua(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function So(e,t){for(t&=~Pm,t&=~Nd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-za(t),r=1<<a;e[a]=-1,t&=~r}}function Qx(e){if((_e&6)!==0)throw Error(U(327));Ns();var t=id(e,0);if((t&1)===0)return oa(e,tt()),null;var a=bd(e,t);if(e.tag!==0&&a===2){var r=xp(e);r!==0&&(t=r,a=Gp(e,r))}if(a===1)throw a=bl,dn(e,0),So(e,t),oa(e,tt()),a;if(a===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,ea,Nr),oa(e,tt()),null}function Mm(e,t){var a=_e;_e|=1;try{return e(t)}finally{_e=a,_e===0&&(Vs=tt()+500,_d&&Fo())}}function gn(e){Io!==null&&Io.tag===0&&(_e&6)===0&&Ns();var t=_e;_e|=1;var a=La.transition,r=ze;try{if(La.transition=null,ze=1,e)return e()}finally{ze=r,La.transition=a,_e=t,(_e&6)===0&&Fo()}}function Dm(){da=Ms.current,Ge(Ms)}function dn(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,OP(a)),rt!==null)for(a=rt.return;a!==null;){var r=a;switch(cm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fd();break;case 3:Hs(),Ge(aa),Ge(Et),wm();break;case 5:ym(r);break;case 4:Hs();break;case 13:Ge(Xe);break;case 19:Ge(Xe);break;case 10:hm(r.type._context);break;case 22:case 23:Dm()}a=a.return}if(ht=e,rt=e=_o(e.current,null),St=da=t,ut=0,bl=null,Pm=Nd=hn=0,ea=il=null,ln!==null){for(t=0;t<ln.length;t++)if(a=ln[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}ln=null}return e}function jw(e,t){do{var a=rt;try{if(mm(),Qu.current=Cd,wd){for(var r=Ze.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}wd=!1}if(mn=0,mt=lt=Ze=null,nl=!1,Sl=0,Rm.current=null,a===null||a.return===null){ut=1,bl=t,rt=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=St,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,c=d.tag;if((d.mode&1)===0&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=zx(s);if(h!==null){h.flags&=-257,Bx(h,s,i,n,t),h.mode&1&&Fx(n,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(l),t.updateQueue=x}else v.add(l);break e}else{if((t&1)===0){Fx(n,u,t),_m();break e}l=Error(U(426))}}else if(Ke&&i.mode&1){var w=zx(s);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),Bx(w,s,i,n,t),fm(js(l,i));break e}}n=l=js(l,i),ut!==4&&(ut=2),il===null?il=[n]:il.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var p=bw(n,l,t);Dx(n,p);break e;case 1:i=l;var m=n.type,g=n.stateNode;if((n.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Mo===null||!Mo.has(g)))){n.flags|=65536,t&=-t,n.lanes|=t;var y=kw(n,i,t);Dx(n,y);break e}}n=n.return}while(n!==null)}Ww(a)}catch(C){t=C,rt===a&&a!==null&&(rt=a=a.return);continue}break}while(!0)}function Vw(){var e=Sd.current;return Sd.current=Cd,e===null?Cd:e}function _m(){(ut===0||ut===3||ut===2)&&(ut=4),ht===null||(hn&268435455)===0&&(Nd&268435455)===0||So(ht,St)}function bd(e,t){var a=_e;_e|=2;var r=Vw();(ht!==e||St!==t)&&(Nr=null,dn(e,t));do try{s1();break}catch(o){jw(e,o)}while(!0);if(mm(),_e=a,Sd.current=r,rt!==null)throw Error(U(261));return ht=null,St=0,ut}function s1(){for(;rt!==null;)qw(rt)}function i1(){for(;rt!==null&&!ER();)qw(rt)}function qw(e){var t=$w(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Ww(e):rt=t,Rm.current=null}function Ww(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=JP(a,t,da),a!==null){rt=a;return}}else{if(a=e1(a,t),a!==null){a.flags&=32767,rt=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,rt=null;return}}if(t=t.sibling,t!==null){rt=t;return}rt=t=e}while(t!==null);ut===0&&(ut=5)}function nn(e,t,a){var r=ze,o=La.transition;try{La.transition=null,ze=1,l1(e,t,a,r)}finally{La.transition=o,ze=r}return null}function l1(e,t,a,r){do Ns();while(Io!==null);if((_e&6)!==0)throw Error(U(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(qR(e,n),e===ht&&(rt=ht=null,St=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Gu||(Gu=!0,Kw(sd,function(){return Ns(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=La.transition,La.transition=null;var s=ze;ze=1;var i=_e;_e|=4,Rm.current=null,a1(e,a),Bw(a,e),MP(Ip),ld=!!Lp,Ip=Lp=null,e.current=a,r1(a,e,o),OR(),_e=i,ze=s,La.transition=n}else e.current=a;if(Gu&&(Gu=!1,Io=e,Id=o),n=e.pendingLanes,n===0&&(Mo=null),zR(a.stateNode,r),oa(e,tt()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ld)throw Ld=!1,e=qp,qp=null,e;return(Id&1)!==0&&e.tag!==0&&Ns(),n=e.pendingLanes,(n&1)!==0?e===Wp?ll++:(ll=0,Wp=e):ll=0,Fo(),null}function Ns(){if(Io!==null){var e=by(Id),t=La.transition,a=ze;try{if(La.transition=null,ze=16>e?16:e,Io===null)var r=!1;else{if(e=Io,Io=null,Id=0,(_e&6)!==0)throw Error(U(331));var o=_e;for(_e|=4,Q=e.current;Q!==null;){var n=Q,s=n.child;if((Q.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(Q=u;Q!==null;){var d=Q;switch(d.tag){case 0:case 11:case 15:sl(8,d,n)}var c=d.child;if(c!==null)c.return=d,Q=c;else for(;Q!==null;){d=Q;var f=d.sibling,h=d.return;if(Nw(d),d===u){Q=null;break}if(f!==null){f.return=h,Q=f;break}Q=h}}}var v=n.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}Q=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,Q=s;else e:for(;Q!==null;){if(n=Q,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:sl(9,n,n.return)}var p=n.sibling;if(p!==null){p.return=n.return,Q=p;break e}Q=n.return}}var m=e.current;for(Q=m;Q!==null;){s=Q;var g=s.child;if((s.subtreeFlags&2064)!==0&&g!==null)g.return=s,Q=g;else e:for(s=m;Q!==null;){if(i=Q,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:Od(9,i)}}catch(C){et(i,i.return,C)}if(i===s){Q=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,Q=y;break e}Q=i.return}}if(_e=o,Fo(),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(Rd,e)}catch{}r=!0}return r}finally{ze=a,La.transition=t}}return!1}function Yx(e,t,a){t=js(a,t),t=bw(e,t,1),e=To(e,t,1),t=Vt(),e!==null&&(kl(e,1,t),oa(e,t))}function et(e,t,a){if(e.tag===3)Yx(e,e,a);else for(;t!==null;){if(t.tag===3){Yx(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mo===null||!Mo.has(r))){e=js(a,e),e=kw(t,e,1),t=To(t,e,1),e=Vt(),t!==null&&(kl(t,1,e),oa(t,e));break}}t=t.return}}function u1(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=Vt(),e.pingedLanes|=e.suspendedLanes&a,ht===e&&(St&a)===a&&(ut===4||ut===3&&(St&130023424)===St&&500>tt()-Tm?dn(e,0):Pm|=a),oa(e,t)}function Gw(e,t){t===0&&((e.mode&1)===0?t=1:(t=_u,_u<<=1,(_u&130023424)===0&&(_u=4194304)));var a=Vt();e=Vr(e,t),e!==null&&(kl(e,t,a),oa(e,a))}function d1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Gw(e,a)}function c1(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Gw(e,a)}var $w;$w=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||aa.current)ta=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return ta=!1,YP(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,Ke&&(t.flags&1048576)!==0&&Qy(t,hd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ju(e,t),e=t.pendingProps;var o=zs(t,Et.current);Os(t,a),o=Sm(null,t,r,e,o,a);var n=Lm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ra(r)?(n=!0,pd(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vm(t),o.updater=Ed,t.stateNode=o,o._reactInternals=t,Ap(t,r,e,a),t=Np(null,t,r,!0,n,a)):(t.tag=0,Ke&&n&&dm(t),jt(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Ju(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=p1(r),e=Oa(r,e),o){case 0:t=Op(null,t,r,e,a);break e;case 1:t=jx(null,t,r,e,a);break e;case 11:t=Ux(null,t,r,e,a);break e;case 14:t=Hx(null,t,r,Oa(r.type,e),a);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),Op(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),jx(e,t,r,o,a);case 3:e:{if(Mw(t),e===null)throw Error(U(387));r=t.pendingProps,n=t.memoizedState,o=n.element,rw(e,t),xd(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=js(Error(U(423)),t),t=Vx(e,t,r,a,o);break e}else if(r!==o){o=js(Error(U(424)),t),t=Vx(e,t,r,a,o);break e}else for(ca=Po(t.stateNode.containerInfo.firstChild),fa=t,Ke=!0,Fa=null,a=tw(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Bs(),r===o){t=qr(e,t,a);break e}jt(e,t,r,a)}t=t.child}return t;case 5:return ow(t),e===null&&Mp(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,bp(r,o)?s=null:n!==null&&bp(r,n)&&(t.flags|=32),Tw(e,t),jt(e,t,s,a),t.child;case 6:return e===null&&Mp(t),null;case 13:return Dw(e,t,a);case 4:return xm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,a):jt(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),Ux(e,t,r,o,a);case 7:return jt(e,t,t.pendingProps,a),t.child;case 8:return jt(e,t,t.pendingProps.children,a),t.child;case 12:return jt(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,Ve(gd,r._currentValue),r._currentValue=s,n!==null)if(Ua(n.value,s)){if(n.children===o.children&&!aa.current){t=qr(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=Ur(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),Dp(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(U(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),Dp(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}jt(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Os(t,a),o=Ia(o),r=r(o),t.flags|=1,jt(e,t,r,a),t.child;case 14:return r=t.type,o=Oa(r,t.pendingProps),o=Oa(r.type,o),Hx(e,t,r,o,a);case 15:return Rw(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Oa(r,o),Ju(e,t),t.tag=1,ra(r)?(e=!0,pd(t)):e=!1,Os(t,a),Iw(t,r,o),Ap(t,r,o,a),Np(null,t,r,!0,e,a);case 19:return _w(e,t,a);case 22:return Pw(e,t,a)}throw Error(U(156,t.tag))};function Kw(e,t){return Cy(e,t)}function f1(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sa(e,t,a,r){return new f1(e,t,a,r)}function Am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p1(e){if(typeof e=="function")return Am(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yp)return 11;if(e===Jp)return 14}return 2}function _o(e,t){var a=e.alternate;return a===null?(a=Sa(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function ad(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Am(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ws:return cn(a.children,o,n,t);case Qp:s=8,o|=8;break;case rp:return e=Sa(12,a,t,o|2),e.elementType=rp,e.lanes=n,e;case op:return e=Sa(13,a,t,o),e.elementType=op,e.lanes=n,e;case np:return e=Sa(19,a,t,o),e.elementType=np,e.lanes=n,e;case oy:return Fd(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ay:s=10;break e;case ry:s=9;break e;case Yp:s=11;break e;case Jp:s=14;break e;case yo:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Sa(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function cn(e,t,a,r){return e=Sa(7,e,r,t),e.lanes=a,e}function Fd(e,t,a,r){return e=Sa(22,e,r,t),e.elementType=oy,e.lanes=a,e.stateNode={isHidden:!1},e}function ep(e,t,a){return e=Sa(6,e,null,t),e.lanes=a,e}function tp(e,t,a){return t=Sa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m1(e,t,a,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zf(0),this.expirationTimes=zf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Em(e,t,a,r,o,n,s,i,l){return e=new m1(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Sa(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},vm(n),e}function h1(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ys,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function Xw(e){if(!e)return Eo;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ra(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var a=e.type;if(ra(a))return Xy(e,a,t)}return t}function Zw(e,t,a,r,o,n,s,i,l){return e=Em(a,r,!0,e,o,n,s,i,l),e.context=Xw(null),a=e.current,r=Vt(),o=Do(a),n=Ur(r,o),n.callback=t??null,To(a,n,o),e.current.lanes=o,kl(e,o,r),oa(e,r),e}function zd(e,t,a,r){var o=t.current,n=Vt(),s=Do(o);return a=Xw(a),t.context===null?t.context=a:t.pendingContext=a,t=Ur(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=To(o,t,s),e!==null&&(Ba(e,o,s,n),Zu(e,o,s)),s}function kd(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Jx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Om(e,t){Jx(e,t),(e=e.alternate)&&Jx(e,t)}function g1(){return null}var Qw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nm(e){this._internalRoot=e}Bd.prototype.render=Nm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));zd(e,t,null,null)};Bd.prototype.unmount=Nm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){zd(null,e,null,null)}),t[jr]=null}};function Bd(e){this._internalRoot=e}Bd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Py();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Co.length&&t!==0&&t<Co[a].priority;a++);Co.splice(a,0,e),a===0&&My(e)}};function Fm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ud(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ey(){}function v1(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=kd(s);n.call(u)}}var s=Zw(t,r,e,0,null,!1,!1,"",ey);return e._reactRootContainer=s,e[jr]=s.current,vl(e.nodeType===8?e.parentNode:e),gn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=kd(l);i.call(u)}}var l=Em(e,0,!1,null,null,!1,!1,"",ey);return e._reactRootContainer=l,e[jr]=l.current,vl(e.nodeType===8?e.parentNode:e),gn(function(){zd(t,l,a,r)}),l}function Hd(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=kd(s);i.call(l)}}zd(t,s,e,o)}else s=v1(a,t,e,o,r);return kd(s)}ky=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Yi(t.pendingLanes);a!==0&&(am(t,a|1),oa(t,tt()),(_e&6)===0&&(Vs=tt()+500,Fo()))}break;case 13:gn(function(){var r=Vr(e,1);if(r!==null){var o=Vt();Ba(r,e,1,o)}}),Om(e,1)}};rm=function(e){if(e.tag===13){var t=Vr(e,134217728);if(t!==null){var a=Vt();Ba(t,e,134217728,a)}Om(e,134217728)}};Ry=function(e){if(e.tag===13){var t=Do(e),a=Vr(e,t);if(a!==null){var r=Vt();Ba(a,e,t,r)}Om(e,t)}};Py=function(){return ze};Ty=function(e,t){var a=ze;try{return ze=e,t()}finally{ze=a}};hp=function(e,t,a){switch(t){case"input":if(lp(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=Dd(r);if(!o)throw Error(U(90));sy(r),lp(r,o)}}}break;case"textarea":ly(e,a);break;case"select":t=a.value,t!=null&&Ds(e,!!a.multiple,t,!1)}};hy=Mm;gy=gn;var x1={usingClientEntryPoint:!1,Events:[Pl,Is,Dd,py,my,Mm]},Ki={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y1={bundleType:Ki.bundleType,version:Ki.version,rendererPackageName:Ki.rendererPackageName,rendererConfig:Ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yy(e),e===null?null:e.stateNode},findFiberByHostInstance:Ki.findFiberByHostInstance||g1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Xi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Xi.isDisabled&&Xi.supportsFiber))try{Rd=Xi.inject(y1),ur=Xi}catch{}var Xi;ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x1;ha.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fm(t))throw Error(U(200));return h1(e,t,null,a)};ha.createRoot=function(e,t){if(!Fm(e))throw Error(U(299));var a=!1,r="",o=Qw;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Em(e,1,!1,null,null,a,!1,r,o),e[jr]=t.current,vl(e.nodeType===8?e.parentNode:e),new Nm(t)};ha.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=yy(t),e=e===null?null:e.stateNode,e};ha.flushSync=function(e){return gn(e)};ha.hydrate=function(e,t,a){if(!Ud(t))throw Error(U(200));return Hd(null,e,t,!0,a)};ha.hydrateRoot=function(e,t,a){if(!Fm(e))throw Error(U(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=Qw;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=Zw(t,null,e,1,a??null,o,!1,n,s),e[jr]=t.current,vl(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new Bd(t)};ha.render=function(e,t,a){if(!Ud(t))throw Error(U(200));return Hd(null,e,t,!1,a)};ha.unmountComponentAtNode=function(e){if(!Ud(e))throw Error(U(40));return e._reactRootContainer?(gn(function(){Hd(null,null,e,!1,function(){e._reactRootContainer=null,e[jr]=null})}),!0):!1};ha.unstable_batchedUpdates=Mm;ha.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!Ud(a))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return Hd(e,t,a,!1,r)};ha.version="18.3.1-next-f1338f8080-20240426"});var Gs=Rr((D2,eC)=>{"use strict";function Jw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jw)}catch(e){console.error(e)}}Jw(),eC.exports=Yw()});var dk=Rr(Ig=>{"use strict";var uk=Gs();Ig.createRoot=uk.createRoot,Ig.hydrateRoot=uk.hydrateRoot;var sV});var nv=N(ke(),1);var me=e=>typeof e=="string",Ei=()=>{let e,t,a=new Promise((r,o)=>{e=r,t=o});return a.resolve=e,a.reject=t,a},Vg=e=>e==null?"":""+e,qk=(e,t,a)=>{e.forEach(r=>{t[r]&&(a[r]=t[r])})},Wk=/###/g,qg=e=>e&&e.indexOf("###")>-1?e.replace(Wk,"."):e,Wg=e=>!e||me(e),Oi=(e,t,a)=>{let r=me(t)?t.split("."):t,o=0;for(;o<r.length-1;){if(Wg(e))return{};let n=qg(r[o]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++o}return Wg(e)?{}:{obj:e,k:qg(r[o])}},Gg=(e,t,a)=>{let{obj:r,k:o}=Oi(e,t,Object);if(r!==void 0||t.length===1){r[o]=a;return}let n=t[t.length-1],s=t.slice(0,t.length-1),i=Oi(e,s,Object);for(;i.obj===void 0&&s.length;)n=`${s[s.length-1]}.${n}`,s=s.slice(0,s.length-1),i=Oi(e,s,Object),i?.obj&&typeof i.obj[`${i.k}.${n}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${n}`]=a},Gk=(e,t,a,r)=>{let{obj:o,k:n}=Oi(e,t,Object);o[n]=o[n]||[],o[n].push(a)},du=(e,t)=>{let{obj:a,k:r}=Oi(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},$k=(e,t,a)=>{let r=du(e,a);return r!==void 0?r:du(t,a)},ev=(e,t,a)=>{for(let r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?me(e[r])||e[r]instanceof String||me(t[r])||t[r]instanceof String?a&&(e[r]=t[r]):ev(e[r],t[r],a):e[r]=t[r]);return e},us=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Kk={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Xk=e=>me(e)?e.replace(/[&<>"'\/]/g,t=>Kk[t]):e,uf=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let a=this.regExpMap.get(t);if(a!==void 0)return a;let r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}},Zk=[" ",",","?","!",";"],Qk=new uf(20),Yk=(e,t,a)=>{t=t||"",a=a||"";let r=Zk.filter(s=>t.indexOf(s)<0&&a.indexOf(s)<0);if(r.length===0)return!0;let o=Qk.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`),n=!o.test(e);if(!n){let s=e.indexOf(a);s>0&&!o.test(e.substring(0,s))&&(n=!0)}return n},df=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(a),o=e;for(let n=0;n<r.length;){if(!o||typeof o!="object")return;let s,i="";for(let l=n;l<r.length;++l)if(l!==n&&(i+=a),i+=r[l],s=o[i],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;n+=l-n+1;break}o=s}return o},Ni=e=>e?.replace("_","-"),Jk={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},cf=class e{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||Jk,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,r,o){return o&&!this.debug?null:(me(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},tr=new cf,ds=class{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);let o=this.observers[r].get(a)||0;this.observers[r].set(a,o+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o.apply(o,[t,...a])})}},cu=class extends ds{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,r,o={}){let n=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,i;t.indexOf(".")>-1?i=t.split("."):(i=[t,a],r&&(Array.isArray(r)?i.push(...r):me(r)&&n?i.push(...r.split(n)):i.push(r)));let l=du(this.data,i);return!l&&!a&&!r&&t.indexOf(".")>-1&&(t=i[0],a=i[1],r=i.slice(2).join(".")),l||!s||!me(r)?l:df(this.data?.[t]?.[a],r,n)}addResource(t,a,r,o,n={silent:!1}){let s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=[t,a];r&&(i=i.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=t.split("."),o=a,a=i[1]),this.addNamespaces(a),Gg(this.data,i,o),n.silent||this.emit("added",t,a,r,o)}addResources(t,a,r,o={silent:!1}){for(let n in r)(me(r[n])||Array.isArray(r[n]))&&this.addResource(t,a,n,r[n],{silent:!0});o.silent||this.emit("added",t,a,r)}addResourceBundle(t,a,r,o,n,s={silent:!1,skipCopy:!1}){let i=[t,a];t.indexOf(".")>-1&&(i=t.split("."),o=r,r=a,a=i[1]),this.addNamespaces(a);let l=du(this.data,i)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?ev(l,r,n):l={...l,...r},Gg(this.data,i,l),s.silent||this.emit("added",t,a,r)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(o=>a[o]&&Object.keys(a[o]).length>0)}toJSON(){return this.data}},tv={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,r,o){return e.forEach(n=>{t=this.processors[n]?.process(t,a,r,o)??t}),t}},av=Symbol("i18next/PATH_KEY");function e0(){let e=[],t=Object.create(null),a;return t.get=(r,o)=>(a?.revoke?.(),o===av?e:(e.push(o),a=Proxy.revocable(r,t),a.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ff(e,t){let{[av]:a}=e(e0());return a.join(t?.keySeparator??".")}var $g={},sf=e=>!me(e)&&typeof e!="boolean"&&typeof e!="number",fu=class e extends ds{constructor(t,a={}){super(),qk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=tr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){let r={...a};if(t==null)return!1;let o=this.resolve(t,r);if(o?.res===void 0)return!1;let n=sf(o.res);return!(r.returnObjects===!1&&n)}extractFromKey(t,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");let o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,n=a.ns||this.options.defaultNS||[],s=r&&t.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Yk(t,r,o);if(s&&!i){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:me(n)?[n]:n};let u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),t=u.join(o)}return{key:t,namespaces:me(n)?[n]:n}}translate(t,a,r){let o=typeof a=="object"?{...a}:a;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=ff(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);let n=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],o),u=l[l.length-1],d=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");let c=o.lng||this.language,f=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return f?n?{res:`${u}${d}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:`${u}${d}${i}`:n?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:i;let h=this.resolve(t,o),v=h?.res,x=h?.usedKey||i,w=h?.exactUsedKey||i,p=["[object Number]","[object Function]","[object RegExp]"],m=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y=o.count!==void 0&&!me(o.count),C=e.hasDefaultValue(o),I=y?this.pluralResolver.getSuffix(c,o.count,o):"",k=o.ordinal&&y?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",b=y&&!o.ordinal&&o.count===0,T=b&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${I}`]||o[`defaultValue${k}`]||o.defaultValue,A=v;g&&!v&&C&&(A=T);let D=sf(A),E=Object.prototype.toString.apply(A);if(g&&A&&D&&p.indexOf(E)<0&&!(me(m)&&Array.isArray(A))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,A,{...o,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(h.res=z,h.usedParams=this.getUsedParamsDetails(o),h):z}if(s){let z=Array.isArray(A),O=z?[]:{},_=z?w:x;for(let B in A)if(Object.prototype.hasOwnProperty.call(A,B)){let j=`${_}${s}${B}`;C&&!v?O[B]=this.translate(j,{...o,defaultValue:sf(T)?T[B]:void 0,joinArrays:!1,ns:l}):O[B]=this.translate(j,{...o,joinArrays:!1,ns:l}),O[B]===j&&(O[B]=A[B])}v=O}}else if(g&&me(m)&&Array.isArray(v))v=v.join(m),v&&(v=this.extendTranslation(v,t,o,r));else{let z=!1,O=!1;!this.isValidLookup(v)&&C&&(z=!0,v=T),this.isValidLookup(v)||(O=!0,v=i);let B=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:v,j=C&&T!==v&&this.options.updateMissing;if(O||z||j){if(this.logger.log(j?"updateKey":"missingKey",c,u,i,j?T:v),s){let se=this.resolve(i,{...o,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[],ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ee&&ee[0])for(let se=0;se<ee.length;se++)W.push(ee[se]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(o.lng||this.language):W.push(o.lng||this.language);let P=(se,ie,H)=>{let ve=C&&H!==v?H:B;this.options.missingKeyHandler?this.options.missingKeyHandler(se,u,ie,ve,j,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(se,u,ie,ve,j,o),this.emit("missingKey",se,u,ie,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?W.forEach(se=>{let ie=this.pluralResolver.getSuffixes(se,o);b&&o[`defaultValue${this.options.pluralSeparator}zero`]&&ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&ie.push(`${this.options.pluralSeparator}zero`),ie.forEach(H=>{P([se],i+H,o[`defaultValue${H}`]||T)})}):P(W,i,T))}v=this.extendTranslation(v,t,o,h,r),O&&v===i&&this.options.appendNamespaceToMissingKey&&(v=`${u}${d}${i}`),(O||z)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${i}`:i,z?v:void 0,o))}return n?(h.res=v,h.usedParams=this.getUsedParamsDetails(o),h):v}extendTranslation(t,a,r,o,n){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l=me(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(l){let c=t.match(this.interpolator.nestingRegexp);u=c&&c.length}let d=r.replace&&!me(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||o.usedLng,r),l){let c=t.match(this.interpolator.nestingRegexp),f=c&&c.length;u<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...c)=>n?.[0]===c[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${c[0]} in key: ${a[0]}`),null):this.translate(...c,a),r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,i=me(s)?[s]:s;return t!=null&&i?.length&&r.applyPostProcessor!==!1&&(t=tv.handle(i,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,a={}){let r,o,n,s,i;return me(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;let u=this.extractFromKey(l,a),d=u.key;o=d;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let f=a.count!==void 0&&!me(a.count),h=f&&!a.ordinal&&a.count===0,v=a.context!==void 0&&(me(a.context)||typeof a.context=="number")&&a.context!=="",x=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(w=>{this.isValidLookup(r)||(i=w,!$g[`${x[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(i)&&($g[`${x[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(p=>{if(this.isValidLookup(r))return;s=p;let m=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(m,d,p,w,a);else{let y;f&&(y=this.pluralResolver.getSuffix(p,a.count,a));let C=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(a.ordinal&&y.indexOf(I)===0&&m.push(d+y.replace(I,this.options.pluralSeparator)),m.push(d+y),h&&m.push(d+C)),v){let k=`${d}${this.options.contextSeparator||"_"}${a.context}`;m.push(k),f&&(a.ordinal&&y.indexOf(I)===0&&m.push(k+y.replace(I,this.options.pluralSeparator)),m.push(k+y),h&&m.push(k+C))}}let g;for(;g=m.pop();)this.isValidLookup(r)||(n=g,r=this.getResource(p,w,g,a))}))})}),{res:r,usedKey:o,exactUsedKey:n,usedLng:s,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,r,o):this.resourceStore.getResource(t,a,r,o)}getUsedParamsDetails(t={}){let a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!me(t.replace),o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(let n of a)delete o[n]}return o}static hasDefaultValue(t){let a="defaultValue";for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&a===r.substring(0,a.length)&&t[r]!==void 0)return!0;return!1}},pu=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tr.create("languageUtils")}getScriptPartFromCode(t){if(t=Ni(t),!t||t.indexOf("-")<0)return null;let a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=Ni(t),!t||t.indexOf("-")<0)return t;let a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(me(t)&&t.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(r=>{if(a)return;let o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(a=o)}),!a&&this.options.supportedLngs&&t.forEach(r=>{if(a)return;let o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return a=o;let n=this.getLanguagePartFromCode(r);if(this.isSupportedCode(n))return a=n;a=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),me(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let r=t[a];return r||(r=t[this.getScriptPartFromCode(a)]),r||(r=t[this.formatLanguageCode(a)]),r||(r=t[this.getLanguagePartFromCode(a)]),r||(r=t.default),r||[]}toResolveHierarchy(t,a){let r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),o=[],n=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return me(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):me(t)&&n(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&n(this.formatLanguageCode(s))}),o}},Kg={zero:0,one:1,two:2,few:3,many:4,other:5},Xg={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},pf=class{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=tr.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){let r=Ni(t==="dev"?"en":t),o=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:r,type:o});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Xg;if(!t.match(/-|_/))return Xg;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,a)}return this.pluralRulesCache[n]=s,s}needsPlural(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,r={}){return this.getSuffixes(t,r).map(o=>`${a}${o}`)}getSuffixes(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((o,n)=>Kg[o]-Kg[n]).map(o=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,a,r={}){let o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,r))}},Zg=(e,t,a,r=".",o=!0)=>{let n=$k(e,t,a);return!n&&o&&me(a)&&(n=df(e,a,r),n===void 0&&(n=df(t,a,r))),n},lf=e=>e.replace(/\$/g,"$$$$"),mf=class{constructor(t={}){this.logger=tr.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:a,escapeValue:r,useRawValueToEscape:o,prefix:n,prefixEscaped:s,suffix:i,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:c,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:v,nestingSuffixEscaped:x,nestingOptionsSeparator:w,maxReplaces:p,alwaysFormat:m}=t.interpolation;this.escape=a!==void 0?a:Xk,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=n?us(n):s||"{{",this.suffix=i?us(i):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?us(f):h||us("$t("),this.nestingSuffix=v?us(v):x||us(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=p||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,a,r,o){let n,s,i,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){let p=Zg(a,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...o,...a,interpolationkey:h}):p}let v=h.split(this.formatSeparator),x=v.shift().trim(),w=v.join(this.formatSeparator).trim();return this.format(Zg(a,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...a,interpolationkey:x})};this.resetRegExp();let d=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>lf(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?lf(this.escape(h)):lf(h)}].forEach(h=>{for(i=0;n=h.regex.exec(t);){let v=n[1].trim();if(s=u(v),s===void 0)if(typeof d=="function"){let w=d(t,n,o);s=me(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))s="";else if(c){s=n[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else!me(s)&&!this.useRawValueToEscape&&(s=Vg(s));let x=h.safeValue(s);if(t=t.replace(n[0],x),c?(h.regex.lastIndex+=s.length,h.regex.lastIndex-=n[0].length):h.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,a,r={}){let o,n,s,i=(l,u)=>{let d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;let c=l.split(new RegExp(`${d}[ ]*{`)),f=`{${c[1]}`;l=c[0],f=this.interpolate(f,s);let h=f.match(/'/g),v=f.match(/"/g);((h?.length??0)%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,x),`${l}${d}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!me(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(u!==-1&&(l=o[1].slice(u).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),o[1]=o[1].slice(0,u)),n=a(i.call(this,o[1].trim(),s),s),n&&o[0]===t&&!me(n))return n;me(n)||(n=Vg(n)),n||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),n=""),l.length&&(n=l.reduce((d,c)=>this.format(d,c,r.lng,{...r,interpolationkey:o[1].trim()}),n.trim())),t=t.replace(o[0],n),this.regexp.lastIndex=0}return t}},t0=e=>{let t=e.toLowerCase().trim(),a={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?a.currency||(a.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?a.range||(a.range=o.trim()):o.split(";").forEach(s=>{if(s){let[i,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=i.trim();a[d]||(a[d]=u),u==="false"&&(a[d]=!1),u==="true"&&(a[d]=!0),isNaN(u)||(a[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:a}},Qg=e=>{let t={};return(a,r,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});let s=r+JSON.stringify(n),i=t[s];return i||(i=e(Ni(r),o),t[s]=i),i(a)}},a0=e=>(t,a,r)=>e(Ni(a),r)(t),hf=class{constructor(t={}){this.logger=tr.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";let r=a.cacheInBuiltFormats?Qg:a0;this.formats={number:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n});return i=>s.format(i)}),currency:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n,style:"currency"});return i=>s.format(i)}),datetime:r((o,n)=>{let s=new Intl.DateTimeFormat(o,{...n});return i=>s.format(i)}),relativetime:r((o,n)=>{let s=new Intl.RelativeTimeFormat(o,{...n});return i=>s.format(i,n.range||"day")}),list:r((o,n)=>{let s=new Intl.ListFormat(o,{...n});return i=>s.format(i)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Qg(a)}format(t,a,r,o={}){let n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(i=>i.indexOf(")")>-1)){let i=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,i)].join(this.formatSeparator)}return n.reduce((i,l)=>{let{formatName:u,formatOptions:d}=t0(l);if(this.formats[u]){let c=i;try{let f=o?.formatParams?.[o.interpolationkey]||{},h=f.locale||f.lng||o.locale||o.lng||r;c=this.formats[u](i,h,{...d,...o,...f})}catch(f){this.logger.warn(f)}return c}else this.logger.warn(`there was no format function for ${u}`);return i},t)}},r0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},gf=class extends ds{constructor(t,a,r,o={}){super(),this.backend=t,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=tr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,a,r,o){let n={},s={},i={},l={};return t.forEach(u=>{let d=!0;a.forEach(c=>{let f=`${u}|${c}`;!r.reload&&this.store.hasResourceBundle(u,c)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,d=!1,s[f]===void 0&&(s[f]=!0),n[f]===void 0&&(n[f]=!0),l[c]===void 0&&(l[c]=!0)))}),d||(i[u]=!0)}),(Object.keys(n).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(n),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,a,r){let o=t.split("|"),n=o[0],s=o[1];a&&this.emit("failedLoading",n,s,a),!a&&r&&this.store.addResourceBundle(n,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&r&&(this.state[t]=0);let i={};this.queue.forEach(l=>{Gk(l.loaded,[n],s),r0(l,t),a&&l.errors.push(a),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{i[u]||(i[u]={});let d=l.loaded[u];d.length&&d.forEach(c=>{i[u][c]===void 0&&(i[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,a,r,o=0,n=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:r,tried:o,wait:n,callback:s});return}this.readingCalls++;let i=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){let c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,r,o+1,n*2,s)},n);return}s(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{let u=l(t,a);u&&typeof u.then=="function"?u.then(d=>i(null,d)).catch(i):i(null,u)}catch(u){i(u)}return}return l(t,a,i)}prepareLoading(t,a,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();me(t)&&(t=this.languageUtils.toResolveHierarchy(t)),me(a)&&(a=[a]);let n=this.queueLoad(t,a,r,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(s=>{this.loadOne(s)})}load(t,a,r){this.prepareLoading(t,a,{},r)}reload(t,a,r){this.prepareLoading(t,a,{reload:!0},r)}loadOne(t,a=""){let r=t.split("|"),o=r[0],n=r[1];this.read(o,n,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${a}loading namespace ${n} for language ${o} failed`,s),!s&&i&&this.logger.log(`${a}loaded namespace ${n} for language ${o}`,i),this.loaded(t,s,i)})}saveMissing(t,a,r,o,n,s={},i=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){let l={...s,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,a,r,o,l):d=u(t,a,r,o),d&&typeof d.then=="function"?d.then(c=>i(null,c)).catch(i):i(null,d)}catch(d){i(d)}else u(t,a,r,o,i,l)}!t||!t[0]||this.store.addResource(t[0],a,r,o)}}},Yg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),me(e[1])&&(t.defaultValue=e[1]),me(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let a=e[3]||e[2];Object.keys(a).forEach(r=>{t[r]=a[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Jg=e=>(me(e.ns)&&(e.ns=[e.ns]),me(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),me(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),uu=()=>{},o0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})},mu=class e extends ds{constructor(t={},a){if(super(),this.options=Jg(t),this.services={},this.logger=tr,this.modules={external:[]},o0(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(me(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let r=Yg();this.options={...r,...this.options,...Jg(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?tr.init(o(this.modules.logger),this.options):tr.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=hf;let d=new pu(this.options);this.store=new cu(this.options.resources,this.options);let c=this.services;c.logger=tr,c.resourceStore=this.store,c.languageUtils=d,c.pluralResolver=new pf(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(c.formatter=o(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new mf(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new gf(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new fu(this.services,this.options),this.translator.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,a||(a=uu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...d)=>this.store[u](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...d)=>(this.store[u](...d),this)});let i=Ei(),l=()=>{let u=(d,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(c),a(d,c)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(t,a=uu){let r=a,o=me(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();let n=[],s=i=>{if(!i||i==="cimode")return;this.services.languageUtils.toResolveHierarchy(i).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(i=>s(i)),this.services.backendConnector.load(n,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(i)})}else r(null)}reloadResources(t,a,r){let o=Ei();return typeof t=="function"&&(r=t,t=void 0),typeof a=="function"&&(r=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),r||(r=uu),this.services.backendConnector.reload(t,a,n=>{o.resolve(),r(n)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&tv.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let a=0;a<this.languages.length;a++){let r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;let r=Ei();this.emit("languageChanging",t);let o=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},n=(i,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),a&&a(i,(...u)=>this.t(...u))},s=i=>{!t&&!i&&this.services.languageDetector&&(i=[]);let l=me(i)?i:i&&i[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(me(i)?[i]:i);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,d=>{n(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,a,r){let o=(n,s,...i)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([n,s].concat(i)):l={...s},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);let u=this.options.keySeparator||".",d;return l.keyPrefix&&Array.isArray(n)?d=n.map(c=>(typeof c=="function"&&(c=ff(c,{...this.options,...s})),`${l.keyPrefix}${u}${c}`)):(typeof n=="function"&&(n=ff(n,{...this.options,...s})),d=l.keyPrefix?`${l.keyPrefix}${u}${n}`:n),this.t(d,l)};return me(t)?o.lng=t:o.lngs=t,o.ns=a,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=a.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;let s=(i,l)=>{let u=this.services.backendConnector.state[`${i}|${l}`];return u===-1||u===0||u===2};if(a.precheck){let i=a.precheck(this,s);if(i!==void 0)return i}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(n,t)))}loadNamespaces(t,a){let r=Ei();return this.options.ns?(me(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),a&&a(o)}),r):(a&&a(),Promise.resolve())}loadLanguages(t,a){let r=Ei();me(t)&&(t=[t]);let o=this.options.preload||[],n=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return n.length?(this.options.preload=o.concat(n),this.loadResources(s=>{r.resolve(),a&&a(s)}),r):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let o=new Intl.Locale(t);if(o&&o.getTextInfo){let n=o.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new pu(Yg());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){return new e(t,a)}cloneInstance(t={},a=uu){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},n=new e(o);if((t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(i=>{n[i]=this[i]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r){let i=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((d,c)=>(d[c]={...l[u][c]},d),l[u]),l),{});n.store=new cu(i,o),n.services.resourceStore=n.store}return n.translator=new fu(n.services,o),n.translator.on("*",(i,...l)=>{n.emit(i,...l)}),n.init(o,a),n.translator.options=o,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Ht=mu.createInstance();Ht.createInstance=mu.createInstance;var rv=Ht.createInstance,zO=Ht.dir,BO=Ht.init,UO=Ht.loadResources,HO=Ht.reloadResources,jO=Ht.use,VO=Ht.changeLanguage,qO=Ht.getFixedT,WO=Ht.t,GO=Ht.exists,$O=Ht.setDefaultNamespace,KO=Ht.hasLoadedNamespace,XO=Ht.loadNamespaces,ZO=Ht.loadLanguages;var fo=N(te(),1),n0=Symbol("remote-view.message"),vf=class extends Error{constructor(t,a,r){super(),this.key=t,this.values=a,Object.defineProperty(this,"message",{configurable:!0,get:()=>r(t,a)}),this.name="ViewMessageError"}key;values},ov={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run\u2026"},"zh-Hans":{close:"\u5173\u95ED",commandTitle:"\u547D\u4EE4\u9762\u677F",commandDescription:"\u641C\u7D22\u8981\u8FD0\u884C\u7684\u547D\u4EE4\u2026"}};function hu(e){try{return new Intl.Locale((e||"en").replaceAll("_","-")).language==="zh"?"zh-Hans":"en"}catch{return"en"}}function xf(e,t=typeof navigator>"u"?"en":navigator.language){let a=rv();a.init({lng:hu(t),fallbackLng:"en",supportedLngs:["en","zh-Hans"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:e.en,ui:ov.en},"zh-Hans":{view:e["zh-Hans"],ui:ov["zh-Hans"]}}});let r=()=>hu(a.resolvedLanguage??a.language),o=s=>(a.on("languageChanged",s),()=>{a.off("languageChanged",s)}),n=(s,i)=>String(a.t(s,i));return{getLocale:r,subscribe:o,setLocale(s){s!==void 0&&a.changeLanguage(hu(s)),typeof document<"u"&&(document.documentElement.lang=r())},t:(s,i)=>n(s,i),message:(s,i)=>({[n0]:!0,key:s,values:i}),error:(s,i)=>new vf(s,i,n),format(s){return typeof s=="string"?s:s instanceof Error?s.message:n(s.key,s.values)},ui:s=>String(a.t(s,{ns:"ui"})),date(s,i={}){let l=new Date(s);return Number.isNaN(l.getTime())?"":new Intl.DateTimeFormat(r(),i).format(l)},number(s,i){return new Intl.NumberFormat(r(),i).format(s)},label(s,i=""){if(typeof s=="string")return s;let l=Object.entries(s),u=r();return l.find(([d])=>hu(d)===u&&/^(en|zh)([-_]|$)/i.test(d))?.[1]??s.en_US??s.en??s["en-US"]??i}}}var s0=xf({en:{},"zh-Hans":{}},"en"),sv=(0,fo.createContext)(s0);function iv({i18n:e,children:t}){return(0,nv.jsx)(sv.Provider,{value:e,children:t})}function gu(e){return(0,fo.useSyncExternalStore)(e.subscribe,e.getLocale,e.getLocale)}function lv(e,t=""){gu(e);let[a,r]=(0,fo.useState)(t);return[e.format(a),r]}function yf(){let e=(0,fo.useContext)(sv);return gu(e),e.ui}var uv={"bridge.contextChanged":"The space context has changed.","bridge.requestFailed":"The request failed.","bridge.closed":"The space is closed.","bridge.notConnected":"The space is not connected yet.","bridge.timeout":"The request timed out. Please try again.","common.actionFailed":"The action failed.","bridge.uploadFailed":"File upload failed.","bridge.editorUnavailable":"Unable to open the document editor.","templates.project.title":"Project brief","templates.project.description":"Align the team on the project background, goals, and key plans.","templates.project.content":`## Project goals
|
|
9
|
+
|
|
10
|
+
Describe what this project should achieve.
|
|
11
|
+
|
|
12
|
+
## Key deliverables
|
|
13
|
+
|
|
14
|
+
- First deliverable
|
|
15
|
+
- Second deliverable
|
|
16
|
+
|
|
17
|
+
## Next steps
|
|
18
|
+
|
|
19
|
+
Identify owners and the next review date.`,"templates.meeting.title":"Meeting notes","templates.meeting.description":"Capture decisions and next steps, with owners and deadlines.","templates.meeting.content":`## Discussion
|
|
20
|
+
|
|
21
|
+
Record the meeting context and conclusions.
|
|
22
|
+
|
|
23
|
+
## Action items
|
|
24
|
+
|
|
25
|
+
- Task \xB7 Owner \xB7 Due date
|
|
26
|
+
|
|
27
|
+
## Open questions
|
|
28
|
+
|
|
29
|
+
Record questions that need follow-up.`,"templates.weekly.title":"Weekly update","templates.weekly.description":"Summarize progress, blockers, and plans for next week.","templates.weekly.content":`## This week
|
|
30
|
+
|
|
31
|
+
- Completed work
|
|
32
|
+
|
|
33
|
+
## Blockers
|
|
34
|
+
|
|
35
|
+
Record risks, blockers, and support needed.
|
|
36
|
+
|
|
37
|
+
## Next week
|
|
38
|
+
|
|
39
|
+
- Next steps`,"folder.location":"Location","folder.root":"Space root","create.renameMove":"Rename and move","create.page":"New page","create.folder":"New folder","create.pageDescription":"Start with a blank page or a team template.","library.storageNote":"Content is saved in this project's file workspace.","create.startingPoint":"Page starting point","create.templates":"Page templates","create.blank":"Blank page","create.blankDescription":"Create a blank document.","create.pageName":"Page name","common.name":"Name","create.namePlaceholder":"Give this content a name","create.permissions":"Inherits project members' viewing and editing permissions","common.cancel":"Cancel","common.save":"Save","create.createPage":"Create page","common.create":"Create","download.preparing":"Preparing download\u2026","download.saveFile":"Save file","editor.connecting":"Connecting\u2026","editor.saving":"Saving\u2026","editor.fileSyncFailed":"Document edits are preserved, but file sync failed. Check file conflicts and try again.","editor.saveFailed":"Save failed. Please reopen the page.","editor.saved":"Saved","editor.offline":"Disconnected. Editing is paused and will sync when the connection returns.","editor.readOnly":"Read only","editor.externalChange":"The file has changed. Review its versions.","editor.reviewChanges":"File updated; review required","editor.reauthorize":"Disconnected. Reopen to verify access.","editor.accessFailed":"Access or sync failed. Please reopen the page.","editor.loadFailed":"Unable to load the page.","editor.label":"Page editor","editor.reviewVersions":"Review file versions","editor.blockType":"Block type","block.paragraph":"Text","block.heading":"Heading","block.list":"List","block.code":"Code","editor.headingPlaceholder":"Heading text","editor.paragraphPlaceholder":"Paragraph text","editor.addParagraph":"\uFF0B Add paragraph","conflict.title":"The file content has changed","conflict.description":"The file workspace and collaborative page have different versions. Choose which content to continue with; both versions remain in history.","conflict.fileVersion":"File workspace version","conflict.useFile":"Use file version","conflict.pageVersion":"Collaborative page version (including local edits)","conflict.keepPage":"Keep page version","conflict.loading":"Loading both versions\u2026","navigation.waitForSave":"Saving. Please wait before switching.","navigation.trash":"Trash","kind.folder":"Folder","kind.page":"Page","navigation.files":"Files and artifacts","navigation.all":"All content","common.dismiss":"Dismiss notification","common.processing":"Working\u2026","project.choose":"Choose a collaboration project","project.chooseDescription":"Create a Collaboration Space in the Workbench project picker, or choose an existing project.","project.sharing":"Project members and connected Assistants share the files and documents here.","common.reload":"Reload","navigation.label":"Space navigation","space.title":"Collaboration space","navigation.search":"Search space","common.opening":"Opening\u2026","space.sharedSuffix":"\xB7 Shared with project members","navigation.findDocument":"Find documents","knowledge.title":"Document search","navigation.back":"Back to content","document.actions":"Document actions","document.renameMove":"Rename / move","access.title":"Access","trash.restore":"Restore content","trash.move":"Move to trash","document.projectFileSuffix":"\xB7 Project file","trash.documentNotice":"This content is in the trash. Restore it to continue using it.","document.editorUnavailable":"The collaboration editor is temporarily unavailable. The original file is preserved and can be downloaded.","document.reopenEditor":"Reopen editor","document.originalFormat":"The file retains its original format and is available in the project file workspace.","document.download":"Download file","library.description":"Build, maintain, and use content with your team and AI.","library.search":"Search this space","library.new":"New","materials.title":"Add materials","source.title":"Import from a document platform","library.recent":"Recently updated","library.refresh":"Refresh list","library.loading":"Loading content\u2026","library.type":"Type","library.source":"Source","library.updated":"Updated","library.actions":"Actions","source.copyType":"External text copy","library.spacePage":"Space page","materials.assistantArtifacts":"Assistant artifacts","library.projectFile":"Project file","common.open":"Open","source.viewOrigin":"View import source","library.noResults":"No matching content","trash.empty":"Trash is empty","library.empty":"Write your first document together","library.searchHint":"Try another name or file path.","library.createHint":"Create a page or add files to start collaborating with your team and AI.","common.closePanel":"Close panel","source.originTitle":"Import source","source.copyDescription":"This document is an independent copy in this project, governed by project permissions.","source.openPlatform":"View original on source platform","common.close":"Close","access.description":"Maintain documents, files, and artifacts with your team and AI \xB7 Provided by the Spaces plugin","access.entry":"Workbench entry","access.views":"Views","access.entryDescription":"After an Assistant adds and publishes this capability, open the view in a connected collaboration project.","access.shared":"Shared with project members","access.roles":"Owners and admins manage members, Assistants, and content. Editors collaborate; other members view and download. Archived spaces are read only.","access.projectPermissions":"Manage members and Assistants in project settings. Assistant access alone does not grant access to project content.","access.capabilities":"Capabilities","access.pages":"Page collaboration","access.pagesDescription":"Independent Markdown editor with real-time collaboration and version history","access.ai":"Create with AI","access.aiDescription":"Generate, comment on, and review changes in the Assistant","access.filesDescription":"Project files, uploads, and collected artifact versions","access.searchDescription":"Search and reference space content with the project knowledge base","access.sheetDescription":"Spreadsheet editing is provided by installed editor plugins.","common.done":"Got it","common.image":"Image","materials.description":"Add files and existing artifacts to this space.","materials.source":"Material source","materials.local":"Local files","materials.chooseFiles":"Choose files to add","materials.fileLimit":"Up to 25 MiB per file","materials.editor":"Editing method","materials.keepOriginal":"Keep as original file","materials.search":"Search available artifacts","materials.loading":"Loading artifacts\u2026","materials.untitled":"Untitled artifact","materials.noFileVersion":"No file version available","materials.noVersion":"No versions","materials.empty":"No artifacts available. Generate a file in chat, then return here to add it.","common.previousPage":"Previous page","common.nextPage":"Next page","materials.versionNote":"Collect the selected version. Source updates will not overwrite the project file.","materials.add":"Add to space","error.retry":"The action failed. Please try again.","error.conflict":"Content has changed. Your content is preserved; refresh and review the files and version history.","error.denied":"You do not have permission, or your project access has been revoked.","error.timeout":"The response timed out. Please try again later.","error.model":"The model is unavailable. Check your organization's model configuration.","kind.file":"File","kind.sheet":"Spreadsheet","kind.artifact":"Artifact","panel.choosePage":"Select a page to view comments, AI suggestions, and version history.","proposal.request":"Describe the change","proposal.defaultRequest":"Make the next steps more specific","proposal.selectedOnly":"Only the selected paragraph is changed, after you accept the suggestion.","proposal.selectBlock":"Select a paragraph first.","proposal.generate":"Generate suggestion","proposal.original":"Original","proposal.suggestion":"Suggested change","proposal.accept":"Accept change","proposal.reject":"Reject","proposal.accepted":"Accepted","proposal.rejected":"Rejected","comments.resolved":"Resolved","comments.pending":"Open","comments.reopen":"Reopen","comments.resolve":"Mark resolved","comments.empty":"No comments yet. Leave a question or record a conclusion.","comments.body":"Comment","comments.placeholder":"Add a comment\u2026","comments.post":"Post comment","history.checkpointLabel":"Manual checkpoint","history.createCheckpoint":"Create checkpoint","history.current":"Current version","history.preserveNote":"The current version will be preserved before restoring.","history.restoreVersion":"Restore this version","history.confirmNext":"Review the content to restore next.","history.restoreDescription":"This content will become a new version. The current version remains in history.","history.confirmRestore":"Confirm restore","knowledge.description":"The project's built-in knowledge base indexes documents and inherits project permissions.","knowledge.enable":"Enable built-in knowledge base","knowledge.linked":"Built-in knowledge base connected \xB7 Keyword search","knowledge.sync":"Sync / retry indexing","knowledge.refresh":"Refresh status","knowledge.askTitle":"Ask this space","knowledge.accessNote":"Answers use only content you can access in this project.","knowledge.question":"Question","knowledge.placeholder":"What should this project do next?","knowledge.ask":"Ask","knowledge.noSources":"No usable sources found.","error.save":"Save failed.","error.download":"Download failed.","source.error.locator":"Paste a Feishu /docx/ or /wiki/ document link.","source.error.type":"This wiki link does not point to a new document. Only docx text copies are supported.","source.error.access":"The account authorized for this connection cannot read the document. Check the connection and document accounts, or choose an accessible document.","source.error.connection":"Unable to read the source. Check the connection, app permissions, and the authorized account's document access.","source.error.changed":"The Feishu document has changed. Preview it again before importing.","source.error.size":"The document exceeds the current 100 KB text limit.","source.description":"Copy text from an authorized source into this project to edit with project members.","source.retryConnections":"Retry loading connections","source.noConnections":"This Assistant / project has no connection that supports document reading.","source.setupHint":"Ask an administrator to install the Feishu connector and authorize a shared account in connection management. Then select Recheck.","source.recheck":"Recheck","source.provider":"Document source","source.chooseConnection":"Choose an authorized connection","source.projectScope":"Project","source.workspaceScope":"Assistant workspace","source.recheckConnections":"Recheck connections","source.searchHint":"Available documents depend on the account authorized for this shared connection. An empty query lists the drive root; keyword searches return up to 199 new documents.","source.searchLabel":"Search source documents","source.searchPlaceholder":"Search document titles","source.search":"Search / list","source.linkLabel":"Feishu document link","source.linkPlaceholder":"Paste a Feishu /docx/ or /wiki/ link","common.preview":"Preview","source.emptyPage":"No importable documents on this page. Continue to the next page or paste a document link.","common.loadMore":"Load more","source.openOriginal":"View original","source.emptyText":"(This document has no importable text.)","source.confirmation":"I have reviewed the preview and agree to share this text copy with project members. The copy is stored independently and will not be deleted automatically if remote access is revoked.","source.import":"Import text copy","library.subpage":"Subpage \xB7 {{title}}","library.moreActions":"More actions for {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 Source revision {{revision}}","source.importedAt":"Imported: {{date}}","source.id":"Source ID: {{id}}","source.previewMeta":"Source revision {{revision}} \xB7 Destination: {{destination}}","source.connectionLabel":"{{provider}} \xB7 Shared with {{scope}}","source.disconnected":"{{label}} \xB7 Not connected","materials.importWith":"Import with {{editor}}","materials.chooseArtifact":"Select {{title}}","materials.artifactVersion":"Version of {{title}}","materials.selected":"{{count}} items selected","materials.selected_one":"{{count}} item selected","materials.selected_other":"{{count}} items selected","common.pageNumber":"Page {{page}}","history.restoreTitle":"Restore \u201C{{title}}\u201D?","editor.people":"{{count}} online: {{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"Create document"};var dv={"bridge.contextChanged":"\u7A7A\u95F4\u4E0A\u4E0B\u6587\u5DF2\u5207\u6362","bridge.requestFailed":"\u8BF7\u6C42\u5931\u8D25","bridge.closed":"\u7A7A\u95F4\u5DF2\u5173\u95ED","bridge.notConnected":"\u7A7A\u95F4\u5C1A\u672A\u8FDE\u63A5","bridge.timeout":"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","common.actionFailed":"\u64CD\u4F5C\u5931\u8D25","bridge.uploadFailed":"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25","bridge.editorUnavailable":"\u65E0\u6CD5\u6253\u5F00\u6587\u6863\u7F16\u8F91\u5668","templates.project.title":"\u9879\u76EE\u7B80\u62A5","templates.project.description":"\u68B3\u7406\u9879\u76EE\u80CC\u666F\u3001\u76EE\u6807\u4E0E\u5173\u952E\u8BA1\u5212\uFF0C\u8BA9\u56E2\u961F\u5BF9\u9F50\u3002","templates.project.content":`## \u9879\u76EE\u76EE\u6807
|
|
40
|
+
|
|
41
|
+
\u63CF\u8FF0\u672C\u9879\u76EE\u5E0C\u671B\u8FBE\u6210\u7684\u76EE\u6807\u3002
|
|
42
|
+
|
|
43
|
+
## \u5173\u952E\u4EA4\u4ED8
|
|
44
|
+
|
|
45
|
+
- \u7B2C\u4E00\u9879\u4EA4\u4ED8
|
|
46
|
+
- \u7B2C\u4E8C\u9879\u4EA4\u4ED8
|
|
47
|
+
|
|
48
|
+
## \u4E0B\u4E00\u6B65
|
|
49
|
+
|
|
50
|
+
\u660E\u786E\u8D1F\u8D23\u4EBA\u548C\u4E0B\u4E00\u6B21\u68C0\u67E5\u65F6\u95F4\u3002`,"templates.meeting.title":"\u4F1A\u8BAE\u7EAA\u8981","templates.meeting.description":"\u8BB0\u5F55\u8BA8\u8BBA\u8981\u70B9\u4E0E\u540E\u7EED\u884C\u52A8\uFF0C\u660E\u786E\u8D23\u4EFB\u4E0E\u65F6\u95F4\u3002","templates.meeting.content":`## \u8BA8\u8BBA\u8981\u70B9
|
|
51
|
+
|
|
52
|
+
\u8BB0\u5F55\u4F1A\u8BAE\u80CC\u666F\u4E0E\u8BA8\u8BBA\u7ED3\u8BBA\u3002
|
|
53
|
+
|
|
54
|
+
## \u884C\u52A8\u4E8B\u9879
|
|
55
|
+
|
|
56
|
+
- \u5F85\u529E\u4E8B\u9879 \xB7 \u8D1F\u8D23\u4EBA \xB7 \u622A\u6B62\u65E5\u671F
|
|
57
|
+
|
|
58
|
+
## \u5F85\u786E\u8BA4
|
|
59
|
+
|
|
60
|
+
\u8BB0\u5F55\u9700\u8981\u540E\u7EED\u786E\u8BA4\u7684\u95EE\u9898\u3002`,"templates.weekly.title":"\u56E2\u961F\u5468\u62A5","templates.weekly.description":"\u603B\u7ED3\u672C\u5468\u8FDB\u5C55\u3001\u5F85\u89E3\u51B3\u95EE\u9898\u4E0E\u4E0B\u5468\u5B89\u6392\u3002","templates.weekly.content":`## \u672C\u5468\u8FDB\u5C55
|
|
61
|
+
|
|
62
|
+
- \u5DF2\u5B8C\u6210\u7684\u5DE5\u4F5C
|
|
63
|
+
|
|
64
|
+
## \u5F85\u89E3\u51B3
|
|
65
|
+
|
|
66
|
+
\u8BB0\u5F55\u98CE\u9669\u3001\u963B\u788D\u4E0E\u9700\u8981\u7684\u652F\u6301\u3002
|
|
67
|
+
|
|
68
|
+
## \u4E0B\u5468\u5B89\u6392
|
|
69
|
+
|
|
70
|
+
- \u4E0B\u4E00\u6B65\u8BA1\u5212`,"folder.location":"\u5B58\u653E\u4F4D\u7F6E","folder.root":"\u7A7A\u95F4\u6839\u76EE\u5F55","create.renameMove":"\u91CD\u547D\u540D\u4E0E\u79FB\u52A8","create.page":"\u65B0\u5EFA\u9875\u9762","create.folder":"\u65B0\u5EFA\u6587\u4EF6\u5939","create.pageDescription":"\u4ECE\u7A7A\u767D\u9875\u9762\u5F00\u59CB\uFF0C\u6216\u4F7F\u7528\u56E2\u961F\u5E38\u7528\u6A21\u677F","library.storageNote":"\u5185\u5BB9\u4FDD\u5B58\u5728\u5F53\u524D\u9879\u76EE\u7684\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D","create.startingPoint":"\u9875\u9762\u8D77\u70B9","create.templates":"\u9875\u9762\u6A21\u677F","create.blank":"\u7A7A\u767D\u9875\u9762","create.blankDescription":"\u521B\u5EFA\u4E00\u4EFD\u7A7A\u767D\u6587\u6863\u3002","create.pageName":"\u9875\u9762\u540D\u79F0","common.name":"\u540D\u79F0","create.namePlaceholder":"\u4E3A\u8FD9\u4EFD\u5185\u5BB9\u547D\u540D","create.permissions":"\u7EE7\u627F\u9879\u76EE\u6210\u5458\u7684\u67E5\u770B\u4E0E\u7F16\u8F91\u6743\u9650","common.cancel":"\u53D6\u6D88","common.save":"\u4FDD\u5B58","create.createPage":"\u521B\u5EFA\u9875\u9762","common.create":"\u521B\u5EFA","download.preparing":"\u6B63\u5728\u51C6\u5907\u4E0B\u8F7D\u2026","download.saveFile":"\u4FDD\u5B58\u6587\u4EF6","editor.connecting":"\u6B63\u5728\u8FDE\u63A5\u2026","editor.saving":"\u6B63\u5728\u4FDD\u5B58\u2026","editor.fileSyncFailed":"\u6587\u6863\u4FEE\u6539\u5DF2\u4FDD\u7559\uFF0C\u4F46\u6587\u4EF6\u540C\u6B65\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u6587\u4EF6\u51B2\u7A81\u540E\u91CD\u8BD5\u3002","editor.saveFailed":"\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.saved":"\u5DF2\u4FDD\u5B58","editor.offline":"\u7F51\u7EDC\u5DF2\u65AD\u5F00\uFF0C\u7F16\u8F91\u5DF2\u6682\u505C\uFF1B\u8FDE\u63A5\u6062\u590D\u540E\u81EA\u52A8\u540C\u6B65","editor.readOnly":"\u53EA\u8BFB","editor.externalChange":"\u6587\u4EF6\u5DF2\u88AB\u4FEE\u6539\uFF0C\u7B49\u5F85\u6838\u5BF9\u7248\u672C","editor.reviewChanges":"\u6587\u4EF6\u6709\u66F4\u65B0\uFF0C\u5F85\u6838\u5BF9","editor.reauthorize":"\u8FDE\u63A5\u5DF2\u65AD\u5F00\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u4EE5\u9A8C\u8BC1\u8BBF\u95EE\u6743\u9650","editor.accessFailed":"\u8BBF\u95EE\u6216\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.loadFailed":"\u9875\u9762\u52A0\u8F7D\u5931\u8D25","editor.label":"\u9875\u9762\u7F16\u8F91\u5668","editor.reviewVersions":"\u6838\u5BF9\u6587\u4EF6\u7248\u672C","editor.blockType":"\u6BB5\u843D\u7C7B\u578B","block.paragraph":"\u6B63\u6587","block.heading":"\u6807\u9898","block.list":"\u5217\u8868","block.code":"\u4EE3\u7801","editor.headingPlaceholder":"\u6807\u9898\u5185\u5BB9","editor.paragraphPlaceholder":"\u6BB5\u843D\u5185\u5BB9","editor.addParagraph":"\uFF0B \u6DFB\u52A0\u6BB5\u843D","conflict.title":"\u6587\u4EF6\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316","conflict.description":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u548C\u534F\u4F5C\u9875\u9762\u6709\u4E0D\u540C\u7248\u672C\u3002\u9009\u62E9\u8981\u7EE7\u7EED\u4F7F\u7528\u7684\u5185\u5BB9\uFF1B\u4E24\u4EFD\u5185\u5BB9\u90FD\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","conflict.fileVersion":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u7248\u672C","conflict.useFile":"\u91C7\u7528\u6587\u4EF6\u7248\u672C","conflict.pageVersion":"\u534F\u4F5C\u9875\u9762\u7248\u672C\uFF08\u542B\u672C\u5730\u4FEE\u6539\uFF09","conflict.keepPage":"\u4FDD\u7559\u9875\u9762\u7248\u672C","conflict.loading":"\u6B63\u5728\u8BFB\u53D6\u4E24\u4E2A\u7248\u672C\u2026","navigation.waitForSave":"\u6B63\u5728\u4FDD\u5B58\uFF0C\u8BF7\u7B49\u5F85\u5B8C\u6210\u540E\u518D\u5207\u6362\u3002","navigation.trash":"\u56DE\u6536\u7AD9","kind.folder":"\u6587\u4EF6\u5939","kind.page":"\u9875\u9762","navigation.files":"\u6587\u4EF6\u4E0E\u6210\u679C","navigation.all":"\u5168\u90E8\u5185\u5BB9","common.dismiss":"\u5173\u95ED\u63D0\u793A","common.processing":"\u6B63\u5728\u5904\u7406\u2026","project.choose":"\u9009\u62E9\u4E00\u4E2A\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE","project.chooseDescription":"\u5728 Workbench \u7684\u9879\u76EE\u9009\u62E9\u5668\u4E2D\u521B\u5EFA\u201C\u534F\u4F5C\u7A7A\u95F4\u201D\uFF0C\u6216\u9009\u62E9\u5DF2\u6709\u9879\u76EE\u3002","project.sharing":"\u9879\u76EE\u6210\u5458\u548C\u7ED1\u5B9A\u7684\u591A\u4E2A Assistant \u5C06\u5171\u540C\u4F7F\u7528\u8FD9\u91CC\u7684\u6587\u4EF6\u4E0E\u6587\u6863\u3002","common.reload":"\u91CD\u65B0\u52A0\u8F7D","navigation.label":"\u7A7A\u95F4\u5BFC\u822A","space.title":"\u534F\u4F5C\u7A7A\u95F4","navigation.search":"\u641C\u7D22\u7A7A\u95F4","common.opening":"\u6B63\u5728\u6253\u5F00\u2026","space.sharedSuffix":"\xB7 \u9879\u76EE\u6210\u5458\u5171\u4EAB","navigation.findDocument":"\u67E5\u627E\u6587\u6863","knowledge.title":"\u6587\u6863\u68C0\u7D22","navigation.back":"\u8FD4\u56DE\u5185\u5BB9\u5217\u8868","document.actions":"\u6587\u6863\u64CD\u4F5C","document.renameMove":"\u91CD\u547D\u540D / \u79FB\u52A8","access.title":"\u8BBF\u95EE\u8303\u56F4","trash.restore":"\u6062\u590D\u5185\u5BB9","trash.move":"\u79FB\u5165\u56DE\u6536\u7AD9","document.projectFileSuffix":"\xB7 \u9879\u76EE\u6587\u4EF6","trash.documentNotice":"\u6B64\u5185\u5BB9\u5DF2\u79FB\u5165\u56DE\u6536\u7AD9\uFF0C\u6062\u590D\u540E\u53EF\u7EE7\u7EED\u4F7F\u7528\u3002","document.editorUnavailable":"\u6B64\u6587\u6863\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u534F\u4F5C\u7F16\u8F91\u5668\u6253\u5F00\u3002\u539F\u59CB\u6587\u4EF6\u4FDD\u7559\uFF0C\u53EF\u4E0B\u8F7D\u67E5\u770B\u3002","document.reopenEditor":"\u91CD\u65B0\u6253\u5F00\u7F16\u8F91\u5668","document.originalFormat":"\u6587\u4EF6\u4FDD\u7559\u539F\u59CB\u683C\u5F0F\uFF0C\u53EF\u5728\u9879\u76EE\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D\u7EE7\u7EED\u4F7F\u7528\u3002","document.download":"\u4E0B\u8F7D\u6587\u4EF6","library.description":"\u4E0E\u56E2\u961F\u548C AI \u4E00\u8D77\u79EF\u7D2F\u3001\u7EF4\u62A4\u548C\u4F7F\u7528\u5185\u5BB9","library.search":"\u641C\u7D22\u5F53\u524D\u7A7A\u95F4","library.new":"\u65B0\u5EFA","materials.title":"\u6DFB\u52A0\u8D44\u6599","source.title":"\u4ECE\u6587\u6863\u5E73\u53F0\u5BFC\u5165","library.recent":"\u6700\u8FD1\u66F4\u65B0","library.refresh":"\u5237\u65B0\u5217\u8868","library.loading":"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\u2026","library.type":"\u7C7B\u578B","library.source":"\u6765\u6E90","library.updated":"\u66F4\u65B0\u65F6\u95F4","library.actions":"\u64CD\u4F5C","source.copyType":"\u5916\u90E8\u6587\u672C\u526F\u672C","library.spacePage":"\u7A7A\u95F4\u9875\u9762","materials.assistantArtifacts":"Assistant \u6210\u679C","library.projectFile":"\u9879\u76EE\u6587\u4EF6","common.open":"\u6253\u5F00","source.viewOrigin":"\u67E5\u770B\u5BFC\u5165\u6765\u6E90","library.noResults":"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u5185\u5BB9","trash.empty":"\u56DE\u6536\u7AD9\u4E3A\u7A7A","library.empty":"\u4E00\u8D77\u5199\u4E0B\u7B2C\u4E00\u7BC7\u6587\u6863","library.searchHint":"\u8BD5\u8BD5\u5176\u4ED6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\u3002","library.createHint":"\u521B\u5EFA\u9875\u9762\uFF0C\u6216\u6DFB\u52A0\u5DF2\u6709\u6587\u4EF6\uFF0C\u5F00\u59CB\u4E0E\u56E2\u961F\u548C AI \u534F\u4F5C\u3002","common.closePanel":"\u5173\u95ED\u4FA7\u680F","source.originTitle":"\u5BFC\u5165\u6765\u6E90","source.copyDescription":"\u6B64\u6587\u6863\u662F\u5F53\u524D\u9879\u76EE\u4E2D\u7684\u72EC\u7ACB\u526F\u672C\uFF0C\u7531\u9879\u76EE\u6743\u9650\u7BA1\u7406\u3002","source.openPlatform":"\u5728\u6765\u6E90\u5E73\u53F0\u67E5\u770B\u539F\u6587","common.close":"\u5173\u95ED","access.description":"\u4E0E\u56E2\u961F\u548C AI \u5171\u540C\u7EF4\u62A4\u6587\u6863\u3001\u6587\u4EF6\u548C\u6210\u679C \xB7 \u7531 Spaces \u63D2\u4EF6\u63D0\u4F9B","access.entry":"\u5DE5\u4F5C\u53F0\u5165\u53E3","access.views":"\u89C6\u56FE","access.entryDescription":"Assistant \u6DFB\u52A0\u5E76\u53D1\u5E03\u6B64\u80FD\u529B\u540E\uFF0C\u53EF\u5728\u5DF2\u7ED1\u5B9A\u7684\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE\u4E2D\u6253\u5F00\u89C6\u56FE\u3002","access.shared":"\u9879\u76EE\u6210\u5458\u5171\u4EAB","access.roles":"\u6240\u6709\u8005\u548C\u7BA1\u7406\u5458\u7BA1\u7406\u6210\u5458\u3001Assistant \u4E0E\u5185\u5BB9\uFF1B\u7F16\u8F91\u8005\u5171\u540C\u7F16\u8F91\uFF0C\u666E\u901A\u6210\u5458\u67E5\u770B\u548C\u4E0B\u8F7D\u3002\u5F52\u6863\u540E\u7A7A\u95F4\u53EA\u8BFB\u3002","access.projectPermissions":"\u5728\u9879\u76EE\u8BBE\u7F6E\u4E2D\u7BA1\u7406\u6210\u5458\u4E0E\u591A\u4E2A Assistant\u3002\u4EC5\u62E5\u6709 Assistant \u6743\u9650\u4E0D\u4F1A\u83B7\u5F97\u8BE5\u9879\u76EE\u7684\u5185\u5BB9\u3002","access.capabilities":"\u5305\u542B\u7684\u80FD\u529B","access.pages":"\u9875\u9762\u534F\u4F5C","access.pagesDescription":"\u72EC\u7ACB Markdown \u7F16\u8F91\u5668\uFF0C\u5B9E\u65F6\u534F\u4F5C\u4E0E\u7248\u672C\u5386\u53F2","access.ai":"AI \u5171\u521B","access.aiDescription":"\u5728 Assistant \u4E2D\u751F\u6210\u3001\u8BC4\u8BBA\u4E0E\u5BA1\u9605\u4FEE\u6539","access.filesDescription":"\u9879\u76EE\u6587\u4EF6\u3001\u4E0A\u4F20\u4E0E\u56FA\u5B9A\u7248\u672C\u5F52\u96C6","access.searchDescription":"\u7ED1\u5B9A\u9879\u76EE\u77E5\u8BC6\u5E93\uFF0C\u68C0\u7D22\u4E0E\u5F15\u7528\u7A7A\u95F4\u5185\u5BB9","access.sheetDescription":"\u8868\u683C\u7F16\u8F91\u7531\u5DF2\u5B89\u88C5\u7684\u7F16\u8F91\u5668\u63D2\u4EF6\u63D0\u4F9B\u3002","common.done":"\u77E5\u9053\u4E86","common.image":"\u56FE\u7247","materials.description":"\u5C06\u6587\u4EF6\u4E0E\u5DF2\u6709\u6210\u679C\u653E\u8FDB\u5F53\u524D\u7A7A\u95F4","materials.source":"\u8D44\u6599\u6765\u6E90","materials.local":"\u672C\u5730\u6587\u4EF6","materials.chooseFiles":"\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u6587\u4EF6","materials.fileLimit":"\u6BCF\u4E2A\u6587\u4EF6\u6700\u591A 25 MiB","materials.editor":"\u7F16\u8F91\u65B9\u5F0F","materials.keepOriginal":"\u4FDD\u7559\u4E3A\u539F\u59CB\u6587\u4EF6","materials.search":"\u641C\u7D22\u53EF\u5F52\u96C6\u7684\u6210\u679C","materials.loading":"\u6B63\u5728\u52A0\u8F7D\u6210\u679C\u2026","materials.untitled":"\u672A\u547D\u540D\u6210\u679C","materials.noFileVersion":"\u6682\u65E0\u6587\u4EF6\u7248\u672C","materials.noVersion":"\u6682\u65E0\u7248\u672C","materials.empty":"\u6682\u65E0\u53EF\u5F52\u96C6\u7684\u6210\u679C\u3002\u5728\u804A\u5929\u4E2D\u751F\u6210\u6587\u4EF6\u540E\uFF0C\u53EF\u56DE\u5230\u8FD9\u91CC\u6DFB\u52A0\u3002","common.previousPage":"\u4E0A\u4E00\u9875","common.nextPage":"\u4E0B\u4E00\u9875","materials.versionNote":"\u5F52\u96C6\u6240\u9009\u7248\u672C\uFF0C\u6765\u6E90\u66F4\u65B0\u4E0D\u4F1A\u81EA\u52A8\u8986\u76D6\u5F53\u524D\u9879\u76EE\u6587\u4EF6\u3002","materials.add":"\u6DFB\u52A0\u5230\u7A7A\u95F4","error.retry":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5","error.conflict":"\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316\u3002\u5DF2\u4FDD\u7559\u5F53\u524D\u5185\u5BB9\uFF0C\u8BF7\u5237\u65B0\u540E\u68C0\u67E5\u6587\u4EF6\u548C\u7248\u672C\u8BB0\u5F55\u3002","error.denied":"\u6CA1\u6709\u6267\u884C\u6B64\u64CD\u4F5C\u7684\u6743\u9650\uFF0C\u6216\u9879\u76EE\u8BBF\u95EE\u6743\u9650\u5DF2\u88AB\u64A4\u9500\u3002","error.timeout":"\u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002","error.model":"\u6A21\u578B\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u7EC4\u7EC7\u7684\u6A21\u578B\u914D\u7F6E\u3002","kind.file":"\u6587\u4EF6","kind.sheet":"\u8868\u683C","kind.artifact":"\u6210\u679C","panel.choosePage":"\u9009\u62E9\u9875\u9762\u4EE5\u67E5\u770B\u8BC4\u8BBA\u3001AI \u5EFA\u8BAE\u548C\u7248\u672C\u5386\u53F2\u3002","proposal.request":"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42","proposal.defaultRequest":"\u8BA9\u4E0B\u4E00\u6B65\u66F4\u5177\u4F53","proposal.selectedOnly":"\u53EA\u4FEE\u6539\u9009\u4E2D\u7684\u6BB5\u843D\uFF0C\u63A5\u53D7\u540E\u5199\u5165\u6B63\u6587\u3002","proposal.selectBlock":"\u5148\u70B9\u51FB\u6B63\u6587\u4E2D\u7684\u6BB5\u843D\u3002","proposal.generate":"\u751F\u6210\u4FEE\u6539\u5EFA\u8BAE","proposal.original":"\u539F\u6587","proposal.suggestion":"\u5EFA\u8BAE\u4FEE\u6539","proposal.accept":"\u63A5\u53D7\u4FEE\u6539","proposal.reject":"\u62D2\u7EDD","proposal.accepted":"\u5DF2\u63A5\u53D7","proposal.rejected":"\u5DF2\u62D2\u7EDD","comments.resolved":"\u5DF2\u89E3\u51B3","comments.pending":"\u5F85\u5904\u7406","comments.reopen":"\u91CD\u65B0\u6253\u5F00","comments.resolve":"\u6807\u8BB0\u89E3\u51B3","comments.empty":"\u8FD8\u6CA1\u6709\u8BC4\u8BBA\u3002\u7559\u4E0B\u95EE\u9898\u6216\u8BB0\u5F55\u8BA8\u8BBA\u7ED3\u8BBA\u3002","comments.body":"\u8BC4\u8BBA\u5185\u5BB9","comments.placeholder":"\u6DFB\u52A0\u8BC4\u8BBA\u2026","comments.post":"\u53D1\u8868\u8BC4\u8BBA","history.checkpointLabel":"\u624B\u52A8\u68C0\u67E5\u70B9","history.createCheckpoint":"\u521B\u5EFA\u68C0\u67E5\u70B9","history.current":"\u5F53\u524D\u7248\u672C","history.preserveNote":"\u6062\u590D\u524D\u4F1A\u4FDD\u7559\u5F53\u524D\u7248\u672C","history.restoreVersion":"\u6062\u590D\u6B64\u7248\u672C","history.confirmNext":"\u4E0B\u4E00\u6B65\u5C06\u786E\u8BA4\u6062\u590D\u5185\u5BB9","history.restoreDescription":"\u5C06\u4EE5\u6B64\u5185\u5BB9\u751F\u6210\u65B0\u7248\u672C\uFF0C\u5F53\u524D\u7248\u672C\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","history.confirmRestore":"\u786E\u8BA4\u6062\u590D","knowledge.description":"\u9879\u76EE\u5185\u7F6E\u77E5\u8BC6\u5E93\u7D22\u5F15\u5F53\u524D\u6587\u6863\uFF0C\u8BBF\u95EE\u6743\u9650\u59CB\u7EC8\u7EE7\u627F\u9879\u76EE\u3002","knowledge.enable":"\u542F\u7528\u5185\u7F6E\u77E5\u8BC6\u5E93","knowledge.linked":"\u5DF2\u7ED1\u5B9A\u5185\u7F6E\u77E5\u8BC6\u5E93 \xB7 \u5173\u952E\u8BCD\u68C0\u7D22","knowledge.sync":"\u540C\u6B65 / \u91CD\u8BD5\u7D22\u5F15","knowledge.refresh":"\u5237\u65B0\u72B6\u6001","knowledge.askTitle":"\u5411\u7A7A\u95F4\u63D0\u95EE","knowledge.accessNote":"\u4EC5\u6839\u636E\u5F53\u524D\u9879\u76EE\u4E2D\u4F60\u6709\u6743\u8BBF\u95EE\u7684\u5185\u5BB9\u56DE\u7B54\u3002","knowledge.question":"\u95EE\u9898","knowledge.placeholder":"\u8FD9\u4E2A\u9879\u76EE\u4E0B\u4E00\u6B65\u9700\u8981\u505A\u4EC0\u4E48\uFF1F","knowledge.ask":"\u63D0\u95EE","knowledge.noSources":"\u6CA1\u6709\u627E\u5230\u53EF\u7528\u6765\u6E90\u3002","error.save":"\u4FDD\u5B58\u5931\u8D25","error.download":"\u4E0B\u8F7D\u5931\u8D25","source.error.locator":"\u8BF7\u7C98\u8D34\u98DE\u4E66\u65B0\u7248\u6587\u6863\u7684 /docx/ \u6216 /wiki/ \u94FE\u63A5\u3002","source.error.type":"\u8BE5\u77E5\u8BC6\u5E93\u94FE\u63A5\u6307\u5411\u7684\u4E0D\u662F\u65B0\u7248\u6587\u6863\uFF0C\u5F53\u524D\u4EC5\u652F\u6301\u5BFC\u5165 docx \u6587\u672C\u526F\u672C\u3002","source.error.access":"\u5F53\u524D\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u6CA1\u6709\u8BE5\u6587\u6863\u7684\u9605\u8BFB\u6743\u9650\u3002\u8BF7\u6838\u5BF9\u8FDE\u63A5\u8D26\u53F7\u4E0E\u6587\u6863\u8D26\u53F7\uFF0C\u6216\u9009\u62E9\u8BE5\u8D26\u53F7\u53EF\u4EE5\u8BFB\u53D6\u7684\u6587\u6863\u3002","source.error.connection":"\u65E0\u6CD5\u8BFB\u53D6\u6765\u6E90\u3002\u8BF7\u68C0\u67E5\u8FDE\u63A5\u662F\u5426\u6709\u6548\u3001\u5E94\u7528\u6743\u9650\uFF0C\u4EE5\u53CA\u6388\u6743\u8D26\u6237\u662F\u5426\u80FD\u8BBF\u95EE\u8BE5\u6587\u6863\u3002","source.error.changed":"\u98DE\u4E66\u539F\u6587\u5DF2\u53D8\u5316\uFF0C\u8BF7\u91CD\u65B0\u9884\u89C8\u540E\u518D\u5BFC\u5165\u3002","source.error.size":"\u6587\u6863\u8D85\u8FC7\u672C\u6279\u652F\u6301\u7684 100 KB \u6587\u672C\u4E0A\u9650\u3002","source.description":"\u5C06\u6388\u6743\u6765\u6E90\u7684\u6587\u672C\u590D\u5236\u5230\u5F53\u524D\u9879\u76EE\uFF0C\u4E0E\u9879\u76EE\u6210\u5458\u5171\u540C\u7F16\u8F91\u3002","source.retryConnections":"\u91CD\u8BD5\u52A0\u8F7D\u8FDE\u63A5","source.noConnections":"\u5F53\u524D Assistant / \u9879\u76EE\u6CA1\u6709\u652F\u6301\u6587\u6863\u8BFB\u53D6\u7684\u8FDE\u63A5\u3002","source.setupHint":"\u8BF7\u7BA1\u7406\u5458\u5B89\u88C5\u98DE\u4E66\u8FDE\u63A5\u5668\uFF0C\u5E76\u5728\u8FDE\u63A5\u7BA1\u7406\u4E2D\u5B8C\u6210\u5171\u4EAB\u8D26\u6237\u6388\u6743\u3002\u6388\u6743\u5B8C\u6210\u540E\uFF0C\u70B9\u51FB\u201C\u91CD\u65B0\u68C0\u67E5\u201D\u3002","source.recheck":"\u91CD\u65B0\u68C0\u67E5","source.provider":"\u6587\u6863\u6765\u6E90","source.chooseConnection":"\u9009\u62E9\u5DF2\u6388\u6743\u8FDE\u63A5","source.projectScope":"\u9879\u76EE","source.workspaceScope":"Assistant \u5DE5\u4F5C\u533A","source.recheckConnections":"\u91CD\u65B0\u68C0\u67E5\u8FDE\u63A5","source.searchHint":"\u6587\u6863\u8303\u56F4\u7531\u8BE5\u5171\u4EAB\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u51B3\u5B9A\u3002\u7A7A\u67E5\u8BE2\u5217\u51FA\u4E91\u76D8\u6839\u76EE\u5F55\uFF1B\u5173\u952E\u8BCD\u641C\u7D22\u6700\u591A\u8FD4\u56DE\u524D 199 \u9879\u65B0\u7248\u6587\u6863\u3002","source.searchLabel":"\u641C\u7D22\u6765\u6E90\u6587\u6863","source.searchPlaceholder":"\u641C\u7D22\u6587\u6863\u6807\u9898","source.search":"\u641C\u7D22 / \u5217\u51FA","source.linkLabel":"\u98DE\u4E66\u6587\u6863\u94FE\u63A5","source.linkPlaceholder":"\u7C98\u8D34\u98DE\u4E66 /docx/ \u6216 /wiki/ \u94FE\u63A5","common.preview":"\u9884\u89C8","source.emptyPage":"\u672C\u9875\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u65B0\u7248\u6587\u6863\u3002\u53EF\u7EE7\u7EED\u7FFB\u9875\uFF0C\u6216\u7C98\u8D34\u6587\u6863\u94FE\u63A5\u3002","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","source.openOriginal":"\u67E5\u770B\u539F\u6587","source.emptyText":"\uFF08\u6587\u6863\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u6587\u672C\uFF09","source.confirmation":"\u6211\u5DF2\u6838\u5BF9\u9884\u89C8\uFF0C\u540C\u610F\u5C06\u6B64\u6587\u672C\u526F\u672C\u5171\u4EAB\u7ED9\u9879\u76EE\u6210\u5458\u3002\u526F\u672C\u72EC\u7ACB\u4FDD\u5B58\uFF0C\u8FDC\u7AEF\u64A4\u6743\u4E0D\u4F1A\u81EA\u52A8\u5220\u9664\u526F\u672C\u3002","source.import":"\u5BFC\u5165\u6587\u672C\u526F\u672C","library.subpage":"\u5B50\u9875\u9762 \xB7 {{title}}","library.moreActions":"\u66F4\u591A\u64CD\u4F5C {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 \u539F\u6587\u7248\u672C {{revision}}","source.importedAt":"\u5BFC\u5165\u65F6\u95F4\uFF1A{{date}}","source.id":"\u539F\u6587 ID\uFF1A{{id}}","source.previewMeta":"\u539F\u6587\u7248\u672C {{revision}} \xB7 \u76EE\u6807\uFF1A{{destination}}","source.connectionLabel":"{{provider}} \xB7 {{scope}}\u5171\u4EAB","source.disconnected":"{{label}} \xB7 \u672A\u8FDE\u63A5","materials.importWith":"\u4F7F\u7528 {{editor}} \u5BFC\u5165","materials.chooseArtifact":"\u9009\u62E9 {{title}}","materials.artifactVersion":"{{title}} \u7684\u7248\u672C","materials.selected":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_one":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_other":"\u5DF2\u9009\u62E9 {{count}} \u9879","common.pageNumber":"\u7B2C {{page}} \u9875","history.restoreTitle":"\u6062\u590D\u201C{{title}}\u201D\uFF1F","editor.people":"{{count}} \u4EBA\u5728\u7EBF\uFF1A{{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"\u521B\u5EFA\u6587\u6863"};var Fe=xf({en:uv,"zh-Hans":dv}),S=Fe.t,Yt=()=>gu(Fe),po=(e="")=>lv(Fe,e);function cv(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=cv(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function vu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=cv(e))&&(r&&(r+=" "),r+=t);return r}var u0=(e,t)=>{let a=new Array(e.length+t.length);for(let r=0;r<e.length;r++)a[r]=e[r];for(let r=0;r<t.length;r++)a[e.length+r]=t[r];return a},d0=(e,t)=>({classGroupId:e,validator:t}),vv=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var fv=[],c0="arbitrary..",f0=e=>{let t=m0(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return p0(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return xv(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=r[s],u=a[s];return l?u?u0(u,l):l:u||fv}return a[s]||fv}}},xv=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let o=e[t],n=a.nextPart.get(o);if(n){let u=xv(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let d=s[u];if(d.validator(i))return d.classGroupId}},p0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),r=t.slice(0,a);return r?c0+r:void 0})(),m0=e=>{let{theme:t,classGroups:a}=e;return h0(a,t)},h0=(e,t)=>{let a=vv();for(let r in e){let o=e[r];Cf(o,a,r,t)}return a},Cf=(e,t,a,r)=>{let o=e.length;for(let n=0;n<o;n++){let s=e[n];g0(s,t,a,r)}},g0=(e,t,a,r)=>{if(typeof e=="string"){v0(e,t,a);return}if(typeof e=="function"){x0(e,t,a,r);return}y0(e,t,a,r)},v0=(e,t,a)=>{let r=e===""?t:yv(t,e);r.classGroupId=a},x0=(e,t,a,r)=>{if(w0(e)){Cf(e(r),t,a,r);return}t.validators===null&&(t.validators=[]),t.validators.push(d0(a,e))},y0=(e,t,a,r)=>{let o=Object.entries(e),n=o.length;for(let s=0;s<n;s++){let[i,l]=o[s];Cf(l,yv(t,i),a,r)}},yv=(e,t)=>{let a=e,r=t.split("-"),o=r.length;for(let n=0;n<o;n++){let s=r[n],i=a.nextPart.get(s);i||(i=vv(),a.nextPart.set(s,i)),a=i}return a},w0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,C0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),r=Object.create(null),o=(n,s)=>{a[n]=s,t++,t>e&&(t=0,r=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=r[n])!==void 0)return o(n,s),s},set(n,s){n in a?a[n]=s:o(n,s)}}};var S0=[],pv=(e,t,a,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:r,isExternal:o}),L0=e=>{let{prefix:t,experimentalParseClassName:a}=e,r=o=>{let n=[],s=0,i=0,l=0,u,d=o.length;for(let x=0;x<d;x++){let w=o[x];if(s===0&&i===0){if(w===":"){n.push(o.slice(l,x)),l=x+1;continue}if(w==="/"){u=x;continue}}w==="["?s++:w==="]"?s--:w==="("?i++:w===")"&&i--}let c=n.length===0?o:o.slice(l),f=c,h=!1;c.endsWith("!")?(f=c.slice(0,-1),h=!0):c.startsWith("!")&&(f=c.slice(1),h=!0);let v=u&&u>l?u-l:void 0;return pv(n,h,f,v)};if(t){let o=t+":",n=r;r=s=>s.startsWith(o)?n(s.slice(o.length)):pv(S0,!1,s,void 0,!0)}if(a){let o=r;r=n=>a({className:n,parseClassName:o})}return r},I0=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,r)=>{t.set(a,1e6+r)}),a=>{let r=[],o=[];for(let n=0;n<a.length;n++){let s=a[n],i=s[0]==="[",l=t.has(s);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},b0=e=>({cache:C0(e.cacheSize),parseClassName:L0(e),sortModifiers:I0(e),postfixLookupClassGroupIds:k0(e),...f0(e)}),k0=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let r=0;r<a.length;r++)t[a[r]]=!0;return t},R0=/\s+/,P0=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(R0),u="";for(let d=l.length-1;d>=0;d-=1){let c=l[d],{isExternal:f,modifiers:h,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=a(c);if(f){u=c+(u.length>0?" "+u:u);continue}let p=!!w,m;if(p){let k=x.substring(0,w);m=r(k);let b=m&&s[m]?r(x):void 0;b&&b!==m&&(m=b,p=!1)}else m=r(x);if(!m){if(!p){u=c+(u.length>0?" "+u:u);continue}if(m=r(x),!m){u=c+(u.length>0?" "+u:u);continue}p=!1}let g=h.length===0?"":h.length===1?h[0]:n(h).join(":"),y=v?g+"!":g,C=y+m;if(i.indexOf(C)>-1)continue;i.push(C);let I=o(m,p);for(let k=0;k<I.length;++k){let b=I[k];i.push(y+b)}u=c+(u.length>0?" "+u:u)}return u},T0=(...e)=>{let t=0,a,r,o="";for(;t<e.length;)(a=e[t++])&&(r=wv(a))&&(o&&(o+=" "),o+=r);return o},wv=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=wv(e[r]))&&(a&&(a+=" "),a+=t);return a},M0=(e,...t)=>{let a,r,o,n,s=l=>{let u=t.reduce((d,c)=>c(d),e());return a=b0(u),r=a.cache.get,o=a.cache.set,n=i,i(l)},i=l=>{let u=r(l);if(u)return u;let d=P0(l,a);return o(l,d),d};return n=s,(...l)=>n(T0(...l))},D0=[],it=e=>{let t=a=>a[e]||D0;return t.isThemeGetter=!0,t},Cv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,A0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,O0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mo=e=>_0.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),wf=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Pr=e=>A0.test(e),Lv=()=>!0,z0=e=>E0.test(e)&&!O0.test(e),Sf=()=>!1,B0=e=>N0.test(e),U0=e=>F0.test(e),H0=e=>!X(e)&&!Z(e),j0=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),V0=e=>ho(e,kv,Sf),X=e=>Cv.test(e),en=e=>ho(e,Rv,z0),mv=e=>ho(e,Q0,Le),q0=e=>ho(e,Tv,Lv),W0=e=>ho(e,Pv,Sf),hv=e=>ho(e,Iv,Sf),G0=e=>ho(e,bv,U0),xu=e=>ho(e,Mv,B0),Z=e=>Sv.test(e),Fi=e=>tn(e,Rv),$0=e=>tn(e,Pv),gv=e=>tn(e,Iv),K0=e=>tn(e,kv),X0=e=>tn(e,bv),yu=e=>tn(e,Mv,!0),Z0=e=>tn(e,Tv,!0),ho=(e,t,a)=>{let r=Cv.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},tn=(e,t,a=!1)=>{let r=Sv.exec(e);return r?r[1]?t(r[1]):a:!1},Iv=e=>e==="position"||e==="percentage",bv=e=>e==="image"||e==="url",kv=e=>e==="length"||e==="size"||e==="bg-size",Rv=e=>e==="length",Q0=e=>e==="number",Pv=e=>e==="family-name",Tv=e=>e==="number"||e==="weight",Mv=e=>e==="shadow";var Y0=()=>{let e=it("color"),t=it("font"),a=it("text"),r=it("font-weight"),o=it("tracking"),n=it("leading"),s=it("breakpoint"),i=it("container"),l=it("spacing"),u=it("radius"),d=it("shadow"),c=it("inset-shadow"),f=it("text-shadow"),h=it("drop-shadow"),v=it("blur"),x=it("perspective"),w=it("aspect"),p=it("ease"),m=it("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...y(),Z,X],I=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],b=()=>[Z,X,l],T=()=>[mo,"full","auto",...b()],A=()=>[ar,"none","subgrid",Z,X],D=()=>["auto",{span:["full",ar,Z,X]},ar,Z,X],E=()=>[ar,"auto",Z,X],z=()=>["auto","min","max","fr",Z,X],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...b()],j=()=>[mo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],W=()=>[mo,"screen","full","dvw","lvw","svw","min","max","fit",...b()],ee=()=>[mo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],P=()=>[e,Z,X],se=()=>[...y(),gv,hv,{position:[Z,X]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",K0,V0,{size:[Z,X]}],ve=()=>[wf,Fi,en],Se=()=>["","none","full",u,Z,X],fe=()=>["",Le,Fi,en],Ae=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[Le,wf,gv,hv],Je=()=>["","none",v,Z,X],De=()=>["none",Le,Z,X],Oe=()=>["none",Le,Z,X],M=()=>[Le,Z,X],ye=()=>[mo,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pr],breakpoint:[Pr],color:[Lv],container:[Pr],"drop-shadow":[Pr],ease:["in","out","in-out"],font:[H0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pr],shadow:[Pr],spacing:["px",Le],text:[Pr],"text-shadow":[Pr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mo,X,Z,w]}],container:["container"],"container-type":[{"@container":["","normal","size",Z,X]}],"container-named":[j0],columns:[{columns:[Le,X,Z,i]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",Z,X]}],basis:[{basis:[mo,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,mo,"auto","initial","none",X]}],grow:[{grow:["",Le,Z,X]}],shrink:[{shrink:["",Le,Z,X]}],order:[{order:[ar,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[i,"screen",...j()]}],"min-w":[{"min-w":[i,"screen","none",...j()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",a,Fi,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Z0,q0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wf,X]}],"font-family":[{font:[$0,W0,t]}],"font-features":[{"font-features":[X]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Z,X]}],"line-clamp":[{"line-clamp":[Le,"none",Z,mv]}],leading:[{leading:[n,...b()]}],"list-image":[{"list-image":["none",Z,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",Z,en]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Le,"auto",Z,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[ar,Z,X]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,Z,X],radial:["",Z,X],conic:[ar,Z,X]},X0,G0]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,Z,X]}],"outline-w":[{outline:["",Le,Fi,en]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,yu,xu]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",c,yu,xu]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Le,en]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,yu,xu]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Le,Z,X]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:Je()}],brightness:[{brightness:[Le,Z,X]}],contrast:[{contrast:[Le,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",h,yu,xu]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Le,Z,X]}],"hue-rotate":[{"hue-rotate":[Le,Z,X]}],invert:[{invert:["",Le,Z,X]}],saturate:[{saturate:[Le,Z,X]}],sepia:[{sepia:["",Le,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[Le,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[Le,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",Le,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[Le,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[Le,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",Z,X]}],ease:[{ease:["linear","initial",p,Z,X]}],delay:[{delay:[Le,Z,X]}],animate:[{animate:["none",m,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Z,X]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],zoom:[{zoom:[ar,Z,X]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,X]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Le,Fi,en,mv]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Dv=M0(Y0);function Lf(e={}){let t=e.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;e.density==="compact"?document.documentElement.dataset.xuiDensity="compact":e.density==="default"&&delete document.documentElement.dataset.xuiDensity;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,document.head.appendChild(a)),a.textContent=`
|
|
71
|
+
:root {
|
|
72
|
+
--background: var(--xui-color-background, #ffffff);
|
|
73
|
+
--foreground: var(--xui-color-foreground, #18181b);
|
|
74
|
+
--card: var(--xui-color-card, var(--background));
|
|
75
|
+
--card-foreground: var(--xui-color-card-foreground, var(--foreground));
|
|
76
|
+
--popover: var(--xui-color-popover, var(--card));
|
|
77
|
+
--popover-foreground: var(--xui-color-popover-foreground, var(--foreground));
|
|
78
|
+
--primary: var(--xui-color-primary, #0f766e);
|
|
79
|
+
--primary-foreground: var(--xui-color-primary-foreground, #ffffff);
|
|
80
|
+
--secondary: var(--xui-color-secondary, var(--xui-color-muted, #f4f4f5));
|
|
81
|
+
--secondary-foreground: var(--xui-color-secondary-foreground, var(--foreground));
|
|
82
|
+
--muted: var(--xui-color-muted, #f4f4f5);
|
|
83
|
+
--muted-foreground: var(--xui-color-muted-foreground, #71717a);
|
|
84
|
+
--accent: var(--xui-color-accent, var(--muted));
|
|
85
|
+
--accent-foreground: var(--xui-color-accent-foreground, var(--foreground));
|
|
86
|
+
--destructive: var(--xui-color-destructive, #dc2626);
|
|
87
|
+
--destructive-foreground: var(--xui-color-destructive-foreground, #ffffff);
|
|
88
|
+
--success: var(--xui-color-success, #047857);
|
|
89
|
+
--warning: var(--xui-color-warning, #b45309);
|
|
90
|
+
--info: var(--xui-color-info, #2563eb);
|
|
91
|
+
--border: var(--xui-color-border, #e4e4e7);
|
|
92
|
+
--input: var(--xui-color-input, var(--border));
|
|
93
|
+
--ring: var(--xui-color-ring, var(--primary));
|
|
94
|
+
--chart-1: var(--xui-color-chart-1, #0f766e);
|
|
95
|
+
--chart-2: var(--xui-color-chart-2, #2563eb);
|
|
96
|
+
--chart-3: var(--xui-color-chart-3, #f59e0b);
|
|
97
|
+
--chart-4: var(--xui-color-chart-4, #dc2626);
|
|
98
|
+
--chart-5: var(--xui-color-chart-5, #7c3aed);
|
|
99
|
+
--radius: var(--xui-radius-md, 0.5rem);
|
|
100
|
+
--font-sans: var(--xui-font-family, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.dark,
|
|
104
|
+
[data-theme='dark'] {
|
|
105
|
+
--background: var(--xui-color-background, #09090b);
|
|
106
|
+
--foreground: var(--xui-color-foreground, #fafafa);
|
|
107
|
+
--card: var(--xui-color-card, #18181b);
|
|
108
|
+
--card-foreground: var(--xui-color-card-foreground, var(--foreground));
|
|
109
|
+
--popover: var(--xui-color-popover, var(--card));
|
|
110
|
+
--popover-foreground: var(--xui-color-popover-foreground, var(--foreground));
|
|
111
|
+
--secondary: var(--xui-color-secondary, #27272a);
|
|
112
|
+
--secondary-foreground: var(--xui-color-secondary-foreground, var(--foreground));
|
|
113
|
+
--muted: var(--xui-color-muted, #27272a);
|
|
114
|
+
--muted-foreground: var(--xui-color-muted-foreground, #a1a1aa);
|
|
115
|
+
--accent: var(--xui-color-accent, var(--muted));
|
|
116
|
+
--accent-foreground: var(--xui-color-accent-foreground, var(--foreground));
|
|
117
|
+
--destructive: var(--xui-color-destructive, #f87171);
|
|
118
|
+
--destructive-foreground: var(--xui-color-destructive-foreground, #ffffff);
|
|
119
|
+
--success: var(--xui-color-success, #34d399);
|
|
120
|
+
--warning: var(--xui-color-warning, #fbbf24);
|
|
121
|
+
--info: var(--xui-color-info, #60a5fa);
|
|
122
|
+
--border: var(--xui-color-border, #27272a);
|
|
123
|
+
--input: var(--xui-color-input, var(--border));
|
|
124
|
+
}
|
|
125
|
+
`}var Su=N(te(),1);var wu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();var _v=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Av=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());var If=e=>{let t=Av(e);return t.charAt(0).toUpperCase()+t.slice(1)};var zi=N(te(),1);var Cu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Ev=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var cs=N(te(),1);var J0=(0,cs.createContext)({});var Ov=()=>(0,cs.useContext)(J0);var Nv=(0,zi.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:c=!1,color:f="currentColor",className:h=""}=Ov()??{},v=r??c?Number(a??d)*24/Number(t??u):a??d;return(0,zi.createElement)("svg",{ref:l,...Cu,width:t??u??Cu.width,height:t??u??Cu.height,stroke:e??f,strokeWidth:v,className:wu("lucide",h,o),...!n&&!Ev(i)&&{"aria-hidden":"true"},...i},[...s.map(([x,w])=>(0,zi.createElement)(x,w)),...Array.isArray(n)?n:[n]])});var Te=(e,t)=>{let a=(0,Su.forwardRef)(({className:r,...o},n)=>(0,Su.createElement)(Nv,{ref:n,iconNode:t,className:wu(`lucide-${_v(If(e))}`,`lucide-${e}`,r),...o}));return a.displayName=If(e),a};var eR=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fs=Te("arrow-left",eR);var tR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Tr=Te("check",tR);var aR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mr=Te("chevron-down",aR);var rR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ps=Te("chevron-up",rR);var oR=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ms=Te("download",oR);var nR=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],rr=Te("ellipsis",nR);var sR=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Jt=Te("file-text",sR);var iR=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],an=Te("files",iR);var lR=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],or=Te("folder",lR);var uR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Dr=Te("info",uR);var dR=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],_r=Te("lock-keyhole",dR);var cR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],go=Te("plus",cR);var fR=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ar=Te("refresh-cw",fR);var pR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],xa=Te("search",pR);var mR=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hs=Te("trash-2",mR);var hR=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],gs=Te("upload",hR);var gR=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Er=Te("wand-sparkles",gR);var vR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Or=Te("x",vR);var Y=N(ke(),1);var D1=N(te(),1);var lC=N(te(),1),uC=N(Gs(),1);var Vd={};co(Vd,{Root:()=>S1,Slot:()=>S1,Slottable:()=>L1,createSlot:()=>bt,createSlottable:()=>Hm});var It=N(te(),1);var tC=N(te(),1),w1=Object.defineProperty,Bm=(e,t)=>w1(e,"name",{value:t,configurable:!0});function zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Bm(zm,"setRef");function aC(...e){return t=>{let a=!1,r=e.map(o=>{let n=zm(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():zm(e[o],null)}}}}Bm(aC,"composeRefs");function he(...e){return tC.useCallback(aC(...e),e)}Bm(he,"useComposedRefs");var C1=Object.defineProperty,Ha=(e,t)=>C1(e,"name",{value:t,configurable:!0});function bt(e){let t=It.forwardRef((a,r)=>{let{children:o,...n}=a,s=null,i=!1,l=[];Um(o)&&typeof jd=="function"&&(o=jd(o._payload)),It.Children.forEach(o,f=>{if(sC(f)){i=!0;let h=f,v="child"in h.props?h.props.child:h.props.children;Um(v)&&typeof jd=="function"&&(v=jd(v._payload)),s=I1(h,v),l.push(s?.props?.children)}else l.push(f)}),s?s=It.cloneElement(s,void 0,l):!i&&It.Children.count(o)===1&&It.isValidElement(o)&&(s=o);let u=s?nC(s):void 0,d=he(r,u);if(!s){if(o||o===0)throw new Error(i?R1(e):k1(e));return o}let c=oC(n,s.props??{});return s.type!==It.Fragment&&(c.ref=r?d:u),It.cloneElement(s,c)});return t.displayName=`${e}.Slot`,t}Ha(bt,"createSlot");var S1=bt("Slot"),rC=Symbol.for("radix.slottable");function Hm(e){let t=Ha(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=rC,t}Ha(Hm,"createSlottable");var L1=Hm("Slottable"),I1=Ha((e,t)=>{if("child"in e.props){let a=e.props.child;return It.isValidElement(a)?It.cloneElement(a,void 0,e.props.children(a.props.children)):null}return It.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function oC(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}Ha(oC,"mergeProps");function nC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}Ha(nC,"getElementRef");function sC(e){return It.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rC}Ha(sC,"isSlottable");var b1=Symbol.for("react.lazy");function Um(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===b1&&"_payload"in e&&iC(e._payload)}Ha(Um,"isLazyComponent");function iC(e){return typeof e=="object"&&e!==null&&"then"in e}Ha(iC,"isPromiseLike");var k1=Ha(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),R1=Ha(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),jd=It[" use ".trim().toString()];var dC=N(ke(),1),P1=Object.defineProperty,T1=(e,t)=>P1(e,"name",{value:t,configurable:!0}),M1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=M1.reduce((e,t)=>{let a=bt(`Primitive.${t}`),r=lC.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,dC.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ml(e,t){e&&uC.flushSync(()=>e.dispatchEvent(t))}T1(Ml,"dispatchDiscreteCustomEvent");var _1=N(ke(),1);var cC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});var Ra=N(te(),1),jm=N(ke(),1),A1=Object.defineProperty,ka=(e,t)=>A1(e,"name",{value:t,configurable:!0});function E1(e,t){let a=Ra.createContext(t);a.displayName=e+"Context";let r=ka(n=>{let{children:s,...i}=n,l=Ra.useMemo(()=>i,Object.values(i));return(0,jm.jsx)(a.Provider,{value:l,children:s})},"Provider");r.displayName=e+"Provider";function o(n,s={}){let{optional:i=!1}=s,l=Ra.useContext(a);if(l)return l;if(t!==void 0)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return ka(o,"useContext"),[r,o]}ka(E1,"createContext");function at(e,t=[]){let a=[];function r(n,s){let i=Ra.createContext(s);i.displayName=n+"Context";let l=a.length;a=[...a,s];let u=ka(c=>{let{scope:f,children:h,...v}=c,x=f?.[e]?.[l]||i,w=Ra.useMemo(()=>v,Object.values(v));return(0,jm.jsx)(x.Provider,{value:w,children:h})},"Provider");u.displayName=n+"Provider";function d(c,f,h={}){let{optional:v=!1}=h,x=f?.[e]?.[l]||i,w=Ra.useContext(x);if(w)return w;if(s!==void 0)return s;if(!v)throw new Error(`\`${c}\` must be used within \`${n}\``)}return ka(d,"useContext"),[u,d]}ka(r,"createContext");let o=ka(()=>{let n=a.map(s=>Ra.createContext(s));return ka(function(i){let l=i?.[e]||n;return Ra.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[r,fC(o,...t)]}ka(at,"createContextScope");function fC(...e){let t=e[0];if(e.length===1)return t;let a=ka(()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return ka(function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let c=l(n)[`__scope${u}`];return{...i,...c}},{});return Ra.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}ka(fC,"composeContextScopes");var ja=N(te(),1);var qd=N(ke(),1),na=N(te(),1);var yn=N(ke(),1),O1=Object.defineProperty,gt=(e,t)=>O1(e,"name",{value:t,configurable:!0});function wn(e){let t=e+"CollectionProvider",[a,r]=at(t),[o,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=gt(x=>{let{scope:w,children:p}=x,m=ja.useRef(null),g=ja.useRef(new Map).current;return(0,qd.jsx)(o,{scope:w,itemMap:g,collectionRef:m,children:p})},"CollectionProvider");s.displayName=t;let i=e+"CollectionSlot",l=bt(i),u=ja.forwardRef((x,w)=>{let{scope:p,children:m}=x,g=n(i,p),y=he(w,g.collectionRef);return(0,qd.jsx)(l,{ref:y,children:m})});u.displayName=i;let d=e+"CollectionItemSlot",c="data-radix-collection-item",f=bt(d),h=ja.forwardRef((x,w)=>{let{scope:p,children:m,...g}=x,y=ja.useRef(null),C=he(w,y),I=n(d,p);return ja.useEffect(()=>(I.itemMap.set(y,{ref:y,...g}),()=>{I.itemMap.delete(y)})),(0,qd.jsx)(f,{[c]:"",ref:C,children:m})});h.displayName=d;function v(x){let w=n(e+"CollectionConsumer",x);return ja.useCallback(()=>{let m=w.collectionRef.current;if(!m)return[];let g=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(w.itemMap.values()).sort((I,k)=>g.indexOf(I.ref.current)-g.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return gt(v,"useCollection"),[{Provider:s,Slot:u,ItemSlot:h},v,r]}gt(wn,"createCollection");var pC=new WeakMap,Vm=class zo extends Map{static{gt(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],pC.set(this,!0)}set(t,a){return pC.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,a),this}insert(t,a,r){let o=this.has(a),n=this.#e.length,s=Wm(t),i=s>=0?s:n+s,l=i<0||i>=n?-1:i;if(l===this.size||o&&l===this.size-1||l===-1)return this.set(a,r),this;let u=this.size+(o?0:1);s<0&&i++;let d=[...this.#e],c,f=!1;for(let h=i;h<u;h++)if(i===h){let v=d[h];d[h]===a&&(v=d[h+1]),o&&this.delete(a),c=this.get(v),this.set(a,r)}else{!f&&d[h-1]===a&&(f=!0);let v=d[f?h:h-1],x=c;c=this.get(v),this.delete(v),this.set(v,x)}return this}with(t,a,r){let o=new zo(this);return o.insert(t,a,r),o}before(t){let a=this.#e.indexOf(t)-1;if(!(a<0))return this.entryAt(a)}setBefore(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o,a,r)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o+1,a,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);return a&&this.#e.splice(this.#e.indexOf(t),1),a}deleteAt(t){let a=this.keyAt(t);return a!==void 0?this.delete(a):!1}at(t){let a=Wd(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=Wd(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return Wd(this.#e,t)}from(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return o;r++}}findIndex(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return r;r++}return-1}filter(t,a){let r=[],o=0;for(let n of this)Reflect.apply(t,a,[n,o,this])&&r.push(n),o++;return new zo(r)}map(t,a){let r=[],o=0;for(let n of this)r.push([n[0],Reflect.apply(t,a,[n,o,this])]),o++;return new zo(r)}reduce(...t){let[a,r]=t,o=0,n=r??this.at(0);for(let s of this)o===0&&t.length===1?n=s:n=Reflect.apply(a,this,[n,s,o,this]),o++;return n}reduceRight(...t){let[a,r]=t,o=r??this.at(-1);for(let n=this.size-1;n>=0;n--){let s=this.at(n);n===this.size-1&&t.length===1?o=s:o=Reflect.apply(a,this,[o,s,n,this])}return o}toSorted(t){let a=[...this.entries()].sort(t);return new zo(a)}toReversed(){let t=new zo;for(let a=this.size-1;a>=0;a--){let r=this.keyAt(a),o=this.get(r);t.set(r,o)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new zo(a)}slice(t,a){let r=new zo,o=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),a!==void 0&&a>0&&(o=a-1);for(let n=t;n<=o;n++){let s=this.keyAt(n),i=this.get(s);r.set(s,i)}return r}every(t,a){let r=0;for(let o of this){if(!Reflect.apply(t,a,[o,r,this]))return!1;r++}return!0}some(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return!0;r++}return!1}};function Wd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=mC(e,t);return a===-1?void 0:e[a]}gt(Wd,"at");function mC(e,t){let a=e.length,r=Wm(t),o=r>=0?r:a+r;return o<0||o>=a?-1:o}gt(mC,"toSafeIndex");function Wm(e){return e!==e||e===0?0:Math.trunc(e)}gt(Wm,"toSafeInteger");function N1(e){let t=e+"CollectionProvider",[a,r]=at(t),[o,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Vm,setItemMap:gt(()=>{},"setItemMap")}),s=gt(({state:g,...y})=>g?(0,yn.jsx)(l,{...y,state:g}):(0,yn.jsx)(i,{...y}),"CollectionProvider");s.displayName=t;let i=gt(g=>{let y=w();return(0,yn.jsx)(l,{...g,state:y})},"CollectionInit");i.displayName=t+"Init";let l=gt(g=>{let{scope:y,children:C,state:I}=g,k=na.useRef(null),[b,T]=na.useState(null),A=he(k,T),[D,E]=I;return na.useEffect(()=>{if(!b)return;let z=vC(()=>{});return z.observe(b,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[b]),(0,yn.jsx)(o,{scope:y,itemMap:D,setItemMap:E,collectionRef:A,collectionRefObject:k,collectionElement:b,children:C})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",d=bt(u),c=na.forwardRef((g,y)=>{let{scope:C,children:I}=g,k=n(u,C),b=he(y,k.collectionRef);return(0,yn.jsx)(d,{ref:b,children:I})});c.displayName=u;let f=e+"CollectionItemSlot",h="data-radix-collection-item",v=bt(f),x=na.forwardRef((g,y)=>{let{scope:C,children:I,...k}=g,b=na.useRef(null),[T,A]=na.useState(null),D=he(y,b,A),E=n(f,C),{setItemMap:z}=E,O=na.useRef(k);hC(O.current,k)||(O.current=k);let _=O.current;return na.useEffect(()=>{let B=_;return z(j=>T?j.has(T)?j.set(T,{...B,element:T}).toSorted(qm):(j.set(T,{...B,element:T}),j.toSorted(qm)):j),()=>{z(j=>!T||!j.has(T)?j:(j.delete(T),new Vm(j)))}},[T,_,z]),(0,yn.jsx)(v,{[h]:"",ref:D,children:I})});x.displayName=f;function w(){return na.useState(new Vm)}gt(w,"useInitCollection");function p(g){let{itemMap:y}=n(e+"CollectionConsumer",g);return y}return gt(p,"useCollection"),[{Provider:s,Slot:c,ItemSlot:x},{createCollectionScope:r,useCollection:p,useInitCollection:w}]}gt(N1,"createCollection");function hC(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}gt(hC,"shallowEqual");function gC(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}gt(gC,"isElementPreceding");function qm(e,t){return!e[1].element||!t[1].element?0:gC(e[1].element,t[1].element)?-1:1}gt(qm,"sortByDocumentPosition");function vC(e){return new MutationObserver(a=>{for(let r of a)if(r.type==="childList"){e();return}})}gt(vC,"getChildListObserver");var F1=Object.defineProperty,$s=(e,t)=>F1(e,"name",{value:t,configurable:!0}),xC=!!(typeof window<"u"&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:a=!0}={}){return $s(function(o){if(e?.(o),a===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}$s(G,"composeEventHandlers");function z1(e){if(!xC)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}$s(z1,"getOwnerWindow");function Gm(e){if(!xC)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}$s(Gm,"getOwnerDocument");function yC(e,t=!1){let{activeElement:a}=Gm(e);if(!a?.nodeName)return null;if(wC(a)&&a.contentDocument)return yC(a.contentDocument.body,t);if(t){let r=a.getAttribute("aria-activedescendant");if(r){let o=Gm(a).getElementById(r);if(o)return o}}return a}$s(yC,"getActiveElement");function wC(e){return e.tagName==="IFRAME"}$s(wC,"isFrame");var Pa=N(te(),1);var Gd=!1;var CC=N(te(),1),Ne=globalThis?.document?CC.useLayoutEffect:()=>{};var Va=N(te(),1);var Ks=N(te(),1),B1=Object.defineProperty,U1=(e,t)=>B1(e,"name",{value:t,configurable:!0}),SC=Ks[" useEffectEvent ".trim().toString()],LC=Ks[" useInsertionEffect ".trim().toString()];function $m(e){if(typeof SC=="function")return SC(e);let t=Ks.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof LC=="function"?LC(()=>{t.current=e}):Ne(()=>{t.current=e}),Ks.useMemo(()=>((...a)=>t.current?.(...a)),[])}U1($m,"useEffectEvent");var H1=Object.defineProperty,Dl=(e,t)=>H1(e,"name",{value:t,configurable:!0}),j1=Pa[" useInsertionEffect ".trim().toString()]||Ne;function Wt({prop:e,defaultProp:t,onChange:a=Dl(()=>{},"onChange"),caller:r}){let[o,n,s]=bC({defaultProp:t,onChange:a}),i=e!==void 0,l=i?e:o;if(Gd){let d=Pa.useRef(e!==void 0);Pa.useEffect(()=>{let c=d.current;c!==i&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}let u=Pa.useCallback(d=>{if(i){let c=kC(d)?d(e):d;c!==e&&s.current?.(c)}else n(d)},[i,e,n,s]);return[l,u]}Dl(Wt,"useControllableState");function bC({defaultProp:e,onChange:t}){let[a,r]=Pa.useState(e),o=Pa.useRef(a),n=Pa.useRef(t);return j1(()=>{n.current=t},[t]),Pa.useEffect(()=>{o.current!==a&&(n.current?.(a),o.current=a)},[a,o]),[a,r,n]}Dl(bC,"useUncontrolledState");function kC(e){return typeof e=="function"}Dl(kC,"isFunction");var IC=Symbol("RADIX:SYNC_STATE");function V1(e,t,a,r){let{prop:o,defaultProp:n,onChange:s,caller:i}=t,l=o!==void 0,u=$m(s);if(Gd){let w=Va.useRef(o!==void 0);Va.useEffect(()=>{let p=w.current;p!==l&&console.warn(`${i} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=l},[l,i])}let d=[{...a,state:n}];r&&d.push(r);let[c,f]=Va.useReducer((w,p)=>{if(p.type===IC)return{...w,state:p.state};let m=e(w,p);return l&&!Object.is(m.state,w.state)&&u(m.state),m},...d),h=c.state,v=Va.useRef(h);Va.useEffect(()=>{v.current!==h&&(v.current=h,l||u(h))},[h,v,l]);let x=Va.useMemo(()=>o!==void 0?{...c,state:o}:c,[c,o]);return Va.useEffect(()=>{l&&!Object.is(o,c.state)&&f({type:IC,state:o})},[o,c.state,l]),[x,f]}Dl(V1,"useControllableStateReducer");var kt=N(te(),1);var RC=N(te(),1),q1=Object.defineProperty,Gr=(e,t)=>q1(e,"name",{value:t,configurable:!0});function PC(e,t){return RC.useReducer((a,r)=>t[a][r]??a,e)}Gr(PC,"useStateMachine");var Gt=Gr(e=>{let{present:t,children:a}=e,r=TC(t),o=typeof a=="function"?a({present:r.isPresent}):kt.Children.only(a),n=MC(r.ref,DC(o));return typeof a=="function"||r.isPresent?kt.cloneElement(o,{ref:n}):null},"Presence");function TC(e){let[t,a]=kt.useState(),r=kt.useRef(null),o=kt.useRef(e),n=kt.useRef("none"),s=kt.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=PC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return kt.useEffect(()=>{l==="mounted"?(n.current=s.current??Xs(r.current),s.current=void 0):n.current="none"},[l]),Ne(()=>{let d=r.current,c=o.current;if(c!==e){let h=n.current,v=Xs(d);e?(s.current=v,u("MOUNT")):v==="none"||d?.display==="none"?u("UNMOUNT"):u(c&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ne(()=>{if(t){let d,c=t.ownerDocument.defaultView??window,f=Gr(v=>{let w=Xs(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&w&&(u("ANIMATION_END"),!o.current)){let p=t.style.animationFillMode;t.style.animationFillMode="forwards",d=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},"handleAnimationEnd"),h=Gr(v=>{v.target===t&&(n.current=Xs(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:kt.useCallback(d=>{if(d){let c=getComputedStyle(d);r.current=c,s.current=Xs(c)}else r.current=null;a(d)},[])}}Gr(TC,"usePresence");function Km(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Gr(Km,"setRef");function MC(...e){let t=kt.useRef(e);return t.current=e,kt.useCallback(a=>{let r=t.current,o=!1,n=r.map(s=>{let i=Km(s,a);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let s=0;s<n.length;s++){let i=n[s];typeof i=="function"?i():Km(r[s],null)}}},[])}Gr(MC,"useStableComposedRefs");function Xs(e){return e?.animationName||"none"}Gr(Xs,"getAnimationName");function DC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}Gr(DC,"getElementRef");var Xm=N(te(),1);var W1=Object.defineProperty,G1=(e,t)=>W1(e,"name",{value:t,configurable:!0}),$1=Xm[" useId ".trim().toString()]||(()=>{}),K1=0;function dt(e){let[t,a]=Xm.useState($1());return Ne(()=>{e||a(r=>r??String(K1++))},[e]),e||(t?`radix-${t}`:"")}G1(dt,"useId");var $d=N(te(),1),Q1=N(ke(),1),X1=Object.defineProperty,Z1=(e,t)=>X1(e,"name",{value:t,configurable:!0}),Y1=$d.createContext(void 0);function $r(e){let t=$d.useContext(Y1);return e||t||"ltr"}Z1($r,"useDirection");var Wa={};co(Wa,{Close:()=>JT,Content:()=>WT,Description:()=>QT,Dialog:()=>FT,DialogClose:()=>JT,DialogContent:()=>WT,DialogDescription:()=>QT,DialogOverlay:()=>jT,DialogPortal:()=>HT,DialogTitle:()=>XT,DialogTrigger:()=>BT,Overlay:()=>jT,Portal:()=>HT,Root:()=>FT,Title:()=>XT,Trigger:()=>BT,WarningProvider:()=>eM,createDialogScope:()=>OT});var qe=N(te(),1);var Be=N(te(),1);var Zs=N(te(),1),J1=Object.defineProperty,eT=(e,t)=>J1(e,"name",{value:t,configurable:!0});function ot(e){let t=Zs.useRef(e);return Zs.useEffect(()=>{t.current=e}),Zs.useMemo(()=>((...a)=>t.current?.(...a)),[])}eT(ot,"useCallbackRef");var AC=N(ke(),1),tT=Object.defineProperty,vt=(e,t)=>tT(e,"name",{value:t,configurable:!0}),Zm="dismissableLayer.update",aT="dismissableLayer.pointerDownOutside",rT="dismissableLayer.focusOutside",_C,EC=Be.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qs=Be.forwardRef(vt(function(t,a){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...d}=t,c=Be.useContext(EC),[f,h]=Be.useState(null),v=f?.ownerDocument??globalThis?.document,[,x]=Be.useState({}),w=he(a,h),p=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m?p.indexOf(m):-1,y=f?p.indexOf(f):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,I=y>=g,k=Be.useRef(!1),b=OC(E=>{s?.(E),l?.(E),E.defaultPrevented||u?.()},{ownerDocument:v,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:Be.useCallback(E=>{if(!(E instanceof Node))return!1;let z=[...c.branches].some(O=>O.contains(E));return I&&!z},[c.branches,I])}),T=NC(E=>{if(o&&k.current)return;let z=E.target;[...c.branches].some(_=>_.contains(z))||(i?.(E),l?.(E),E.defaultPrevented||u?.())},v),A=f?y===p.length-1:!1,D=ot(E=>{E.key==="Escape"&&(n?.(E),!E.defaultPrevented&&u&&(E.preventDefault(),u()))});return Be.useEffect(()=>{if(A)return v.addEventListener("keydown",D,{capture:!0}),()=>v.removeEventListener("keydown",D,{capture:!0})},[v,A,D]),Be.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_C=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Qm(),()=>{r&&(c.layersWithOutsidePointerEventsDisabled.delete(f),c.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=_C))}},[f,v,r,c]),Be.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Qm())},[f,c]),Be.useEffect(()=>{let E=vt(()=>x({}),"handleUpdate");return document.addEventListener(Zm,E),()=>document.removeEventListener(Zm,E)},[]),(0,AC.jsx)(le.div,{...d,ref:w,style:{pointerEvents:C?I?"auto":"none":void 0,...t.style},onFocusCapture:G(t.onFocusCapture,T.onFocusCapture),onBlurCapture:G(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:G(t.onPointerDownCapture,b.onPointerDownCapture)})},"DismissableLayer"));function Ym(){let e=Be.useContext(EC),[t,a]=Be.useState(null);return Be.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}vt(Ym,"useDismissableLayerSurface");var oT=vt(()=>!0,"IS_TRUE");function OC(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:n,shouldHandlePointerDownOutside:s=oT}=t,i=ot(e),l=Be.useRef(!1),u=Be.useRef(!1),d=Be.useRef(new Map),c=Be.useRef(()=>{});return Be.useEffect(()=>{function f(){u.current=!1,o.current=!1,d.current.clear()}vt(f,"resetOutsideInteraction");function h(){return Array.from(d.current.values()).some(Boolean)}vt(h,"isOutsideInteractionIntercepted");function v(g){if(!u.current)return;let y=g.target;y instanceof Node&&[...n].some(I=>I.contains(y))||d.current.set(g.type,!0),g.type==="click"&&window.setTimeout(()=>{u.current&&c.current()},0)}vt(v,"handleInteractionCapture");function x(g){u.current&&d.current.set(g.type,!1)}vt(x,"handleInteractionBubble");let w=vt(g=>{if(g.target&&!l.current){let C=function(){a.removeEventListener("click",c.current);let k=h();f(),k||Jm(aT,i,I,{discrete:!0})};var y=C;if(vt(C,"handleAndDispatchPointerDownOutsideEvent"),!s(g.target)){a.removeEventListener("click",c.current),f(),l.current=!1;return}let I={originalEvent:g};u.current=!0,o.current=r&&g.button===0,d.current.clear(),!r||g.button!==0?C():(a.removeEventListener("click",c.current),c.current=C,a.addEventListener("click",c.current,{once:!0}))}else a.removeEventListener("click",c.current),f();l.current=!1},"handlePointerDown"),p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let g of p)a.addEventListener(g,v,!0),a.addEventListener(g,x);let m=window.setTimeout(()=>{a.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(m),a.removeEventListener("pointerdown",w),a.removeEventListener("click",c.current);for(let g of p)a.removeEventListener(g,v,!0),a.removeEventListener(g,x)}},[a,i,r,o,n,s]),{onPointerDownCapture:vt(()=>l.current=!0,"onPointerDownCapture")}}vt(OC,"usePointerDownOutside");function NC(e,t=globalThis?.document){let a=ot(e),r=Be.useRef(!1);return Be.useEffect(()=>{let o=vt(n=>{n.target&&!r.current&&Jm(rT,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:vt(()=>r.current=!0,"onFocusCapture"),onBlurCapture:vt(()=>r.current=!1,"onBlurCapture")}}vt(NC,"useFocusOutside");function Qm(){let e=new CustomEvent(Zm);document.dispatchEvent(e)}vt(Qm,"dispatchUpdate");function Jm(e,t,a,{discrete:r}){let o=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?Ml(o,n):o.dispatchEvent(n)}vt(Jm,"handleAndDispatchCustomEvent");var Ta=N(te(),1);var BC=N(ke(),1),nT=Object.defineProperty,$t=(e,t)=>nT(e,"name",{value:t,configurable:!0}),eh="focusScope.autoFocusOnMount",th="focusScope.autoFocusOnUnmount",FC={bubbles:!1,cancelable:!0},Ys=Ta.forwardRef($t(function(t,a){let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...i}=t,[l,u]=Ta.useState(null),d=ot(n),c=ot(s),f=Ta.useRef(null),h=he(a,u),v=Ta.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ta.useEffect(()=>{if(o){let g=function(k){if(v.paused||!l)return;let b=k.target;l.contains(b)?f.current=b:Kr(f.current,{select:!0})},y=function(k){if(v.paused||!l)return;let b=k.relatedTarget;b!==null&&(l.contains(b)||Kr(f.current,{select:!0}))},C=function(k){if(document.activeElement===document.body)for(let T of k)T.removedNodes.length>0&&Kr(l)};var w=g,p=y,m=C;$t(g,"handleFocusIn"),$t(y,"handleFocusOut"),$t(C,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",y);let I=new MutationObserver(C);return l&&I.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),I.disconnect()}}},[o,l,v.paused]),Ta.useEffect(()=>{if(l){zC.add(v);let w=document.activeElement;if(!l.contains(w)){let m=new CustomEvent(eh,FC);l.addEventListener(eh,d),l.dispatchEvent(m),m.defaultPrevented||(UC(WC(oh(l)),{select:!0}),document.activeElement===w&&Kr(l))}return()=>{l.removeEventListener(eh,d),setTimeout(()=>{let m=new CustomEvent(th,FC);l.addEventListener(th,c),l.dispatchEvent(m),m.defaultPrevented||Kr(w??document.body,{select:!0}),l.removeEventListener(th,c),zC.remove(v)},0)}}},[l,d,c,v]);let x=Ta.useCallback(w=>{if(!r&&!o||v.paused)return;let p=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,m=document.activeElement;if(p&&m){let g=w.currentTarget,[y,C]=HC(g);y&&C?!w.shiftKey&&m===C?(w.preventDefault(),r&&Kr(y,{select:!0})):w.shiftKey&&m===y&&(w.preventDefault(),r&&Kr(C,{select:!0})):m===g&&w.preventDefault()}},[r,o,v.paused]);return(0,BC.jsx)(le.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})},"FocusScope"));function UC(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(Kr(r,{select:t}),document.activeElement!==a)return}$t(UC,"focusFirst");function HC(e){let t=oh(e),a=ah(t,e),r=ah(t.reverse(),e);return[a,r]}$t(HC,"getTabbableEdges");function oh(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:$t(r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}$t(oh,"getTabbableCandidates");function ah(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(a?!r.checkVisibility({checkVisibilityCSS:!0}):jC(r,{upTo:t})))return r}$t(ah,"findVisible");function jC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}$t(jC,"isHidden");function VC(e){return e instanceof HTMLInputElement&&"select"in e}$t(VC,"isSelectableInput");function Kr(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&VC(e)&&t&&e.select()}}$t(Kr,"focus");var zC=qC();function qC(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=rh(e,t),e.unshift(t)},remove(t){e=rh(e,t),e[0]?.resume()}}}$t(qC,"createFocusScopesStack");function rh(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}$t(rh,"arrayRemove");function WC(e){return e.filter(t=>t.tagName!=="A")}$t(WC,"removeLinks");var Kd=N(te(),1),GC=N(Gs(),1);var $C=N(ke(),1),sT=Object.defineProperty,iT=(e,t)=>sT(e,"name",{value:t,configurable:!0}),Js=Kd.forwardRef(iT(function(t,a){let{container:r,...o}=t,[n,s]=Kd.useState(!1);Ne(()=>s(!0),[]);let i=r||n&&globalThis?.document?.body;return i?GC.createPortal((0,$C.jsx)(le.div,{...o,ref:a}),i):null},"Portal"));var KC=N(te(),1),lT=Object.defineProperty,sh=(e,t)=>lT(e,"name",{value:t,configurable:!0}),Xd=0,ei=null;function uT(e){return Bo(),e.children}sh(uT,"FocusGuards");function Bo(){KC.useEffect(()=>{ei||(ei={start:nh(),end:nh()});let{start:e,end:t}=ei;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Xd++,()=>{Xd===1&&(ei?.start.remove(),ei?.end.remove(),ei=null),Xd=Math.max(0,Xd-1)}},[])}sh(Bo,"useFocusGuards");function nh(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}sh(nh,"createFocusGuard");var sa=function(){return sa=Object.assign||function(t){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},sa.apply(this,arguments)};function Zd(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]]);return a}function XC(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,n;r<o;r++)(n||!(r in t))&&(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var tc=N(te());var Ot=N(te());var Cn="right-scroll-bar-position",Sn="width-before-scroll-bar",ih="with-scroll-bars-hidden",lh="--removed-body-scroll-bar-size";function Qd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var ZC=N(te());function QC(e,t){var a=(0,ZC.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var o=a.value;o!==r&&(a.value=r,a.callback(r,o))}}}})[0];return a.callback=t,a.facade}var Yd=N(te());var dT=typeof window<"u"?Yd.useLayoutEffect:Yd.useEffect,YC=new WeakMap;function uh(e,t){var a=QC(t||null,function(r){return e.forEach(function(o){return Qd(o,r)})});return dT(function(){var r=YC.get(a);if(r){var o=new Set(r),n=new Set(e),s=a.current;o.forEach(function(i){n.has(i)||Qd(i,null)}),n.forEach(function(i){o.has(i)||Qd(i,s)})}YC.set(a,e)},[e]),a}function cT(e){return e}function fT(e,t){t===void 0&&(t=cT);var a=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var s=t(n,r);return a.push(s),function(){a=a.filter(function(i){return i!==s})}},assignSyncMedium:function(n){for(r=!0;a.length;){var s=a;a=[],s.forEach(n)}a={push:function(i){return n(i)},filter:function(){return a}}},assignMedium:function(n){r=!0;var s=[];if(a.length){var i=a;a=[],i.forEach(n),s=a}var l=function(){var d=s;s=[],d.forEach(n)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),a}}}};return o}function dh(e){e===void 0&&(e={});var t=fT(null);return t.options=sa({async:!0,ssr:!1},e),t}var JC=N(te()),eS=function(e){var t=e.sideCar,a=Zd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return JC.createElement(r,sa({},a))};eS.isSideCarExport=!0;function ch(e,t){return e.useMedium(t),eS}var Jd=dh();var fh=function(){},_l=Ot.forwardRef(function(e,t){var a=Ot.useRef(null),r=Ot.useState({onScrollCapture:fh,onWheelCapture:fh,onTouchMoveCapture:fh}),o=r[0],n=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,f=e.sideCar,h=e.noRelative,v=e.noIsolation,x=e.inert,w=e.allowPinchZoom,p=e.as,m=p===void 0?"div":p,g=e.gapMode,y=Zd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,I=uh([a,t]),k=sa(sa({},y),o);return Ot.createElement(Ot.Fragment,null,d&&Ot.createElement(C,{sideCar:Jd,removeScrollBar:u,shards:c,noRelative:h,noIsolation:v,inert:x,setCallbacks:n,allowPinchZoom:!!w,lockRef:a,gapMode:g}),s?Ot.cloneElement(Ot.Children.only(i),sa(sa({},k),{ref:I})):Ot.createElement(m,sa({},k,{className:l,ref:I}),i))});_l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_l.classNames={fullWidth:Sn,zeroRight:Cn};var $e=N(te());var ai=N(te());var rS=N(te());var tS;var aS=function(){if(tS)return tS;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=aS();return t&&e.setAttribute("nonce",t),e}function mT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ph=function(){var e=0,t=null;return{add:function(a){e==0&&(t=pT())&&(mT(t,a),hT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var mh=function(){var e=ph();return function(t,a){rS.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Al=function(){var e=mh(),t=function(a){var r=a.styles,o=a.dynamic;return e(r,o),null};return t};var gT={left:0,top:0,right:0,gap:0},hh=function(e){return parseInt(e||"",10)||0},vT=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[hh(a),hh(r),hh(o)]},gh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gT;var t=vT(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var xT=Al(),ti="data-scroll-locked",yT=function(e,t,a,r){var o=e.left,n=e.top,s=e.right,i=e.gap;return a===void 0&&(a="margin"),`
|
|
126
|
+
.`.concat(ih,` {
|
|
127
|
+
overflow: hidden `).concat(r,`;
|
|
128
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
129
|
+
}
|
|
130
|
+
body[`).concat(ti,`] {
|
|
131
|
+
overflow: hidden `).concat(r,`;
|
|
132
|
+
overscroll-behavior: contain;
|
|
133
|
+
`).concat([t&&"position: relative ".concat(r,";"),a==="margin"&&`
|
|
134
|
+
padding-left: `.concat(o,`px;
|
|
135
|
+
padding-top: `).concat(n,`px;
|
|
136
|
+
padding-right: `).concat(s,`px;
|
|
137
|
+
margin-left:0;
|
|
138
|
+
margin-top:0;
|
|
139
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
140
|
+
`),a==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.`).concat(Cn,` {
|
|
144
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.`).concat(Sn,` {
|
|
148
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.`).concat(Cn," .").concat(Cn,` {
|
|
152
|
+
right: 0 `).concat(r,`;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.`).concat(Sn," .").concat(Sn,` {
|
|
156
|
+
margin-right: 0 `).concat(r,`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
body[`).concat(ti,`] {
|
|
160
|
+
`).concat(lh,": ").concat(i,`px;
|
|
161
|
+
}
|
|
162
|
+
`)},oS=function(){var e=parseInt(document.body.getAttribute(ti)||"0",10);return isFinite(e)?e:0},wT=function(){ai.useEffect(function(){return document.body.setAttribute(ti,(oS()+1).toString()),function(){var e=oS()-1;e<=0?document.body.removeAttribute(ti):document.body.setAttribute(ti,e.toString())}},[])},vh=function(e){var t=e.noRelative,a=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;wT();var n=ai.useMemo(function(){return gh(o)},[o]);return ai.createElement(xT,{styles:yT(n,!t,o,a?"":"!important")})};var xh=!1;if(typeof window<"u")try{El=Object.defineProperty({},"passive",{get:function(){return xh=!0,!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{xh=!1}var El,Ln=xh?{passive:!1}:!1;var CT=function(e){return e.tagName==="TEXTAREA"},nS=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!CT(e)&&a[t]==="visible")},ST=function(e){return nS(e,"overflowY")},LT=function(e){return nS(e,"overflowX")},yh=function(e,t){var a=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=sS(e,r);if(o){var n=iS(e,r),s=n[1],i=n[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},IT=function(e){var t=e.scrollTop,a=e.scrollHeight,r=e.clientHeight;return[t,a,r]},bT=function(e){var t=e.scrollLeft,a=e.scrollWidth,r=e.clientWidth;return[t,a,r]},sS=function(e,t){return e==="v"?ST(t):LT(t)},iS=function(e,t){return e==="v"?IT(t):bT(t)},kT=function(e,t){return e==="h"&&t==="rtl"?-1:1},lS=function(e,t,a,r,o){var n=kT(e,window.getComputedStyle(t).direction),s=n*r,i=a.target,l=t.contains(i),u=!1,d=s>0,c=0,f=0;do{if(!i)break;var h=iS(e,i),v=h[0],x=h[1],w=h[2],p=x-w-n*v;(v||p)&&sS(e,i)&&(c+=p,f+=v);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(d&&(o&&Math.abs(c)<1||!o&&s>c)||!d&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u};var ec=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uS=function(e){return[e.deltaX,e.deltaY]},dS=function(e){return e&&"current"in e?e.current:e},RT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PT=function(e){return`
|
|
163
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
164
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
165
|
+
`)},TT=0,ri=[];function cS(e){var t=$e.useRef([]),a=$e.useRef([0,0]),r=$e.useRef(),o=$e.useState(TT++)[0],n=$e.useState(Al)[0],s=$e.useRef(e);$e.useEffect(function(){s.current=e},[e]),$e.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=XC([e.lockRef.current],(e.shards||[]).map(dS),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=$e.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var p=ec(x),m=a.current,g="deltaX"in x?x.deltaX:m[0]-p[0],y="deltaY"in x?x.deltaY:m[1]-p[1],C,I=x.target,k=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in x&&k==="h"&&I.type==="range")return!1;var b=window.getSelection(),T=b&&b.anchorNode,A=T?T===I||T.contains(I):!1;if(A)return!1;var D=yh(k,I);if(!D)return!0;if(D?C=k:(C=k==="v"?"h":"v",D=yh(k,I)),!D)return!1;if(!r.current&&"changedTouches"in x&&(g||y)&&(r.current=C),!C)return!0;var E=r.current||C;return lS(E,w,x,E==="h"?g:y,!0)},[]),l=$e.useCallback(function(x){var w=x;if(!(!ri.length||ri[ri.length-1]!==n)){var p="deltaY"in w?uS(w):ec(w),m=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&RT(C.delta,p)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var g=(s.current.shards||[]).map(dS).filter(Boolean).filter(function(C){return C.contains(w.target)}),y=g.length>0?i(w,g[0]):!s.current.noIsolation;y&&w.cancelable&&w.preventDefault()}}},[]),u=$e.useCallback(function(x,w,p,m){var g={name:x,delta:w,target:p,should:m,shadowParent:MT(p)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),d=$e.useCallback(function(x){a.current=ec(x),r.current=void 0},[]),c=$e.useCallback(function(x){u(x.type,uS(x),x.target,i(x,e.lockRef.current))},[]),f=$e.useCallback(function(x){u(x.type,ec(x),x.target,i(x,e.lockRef.current))},[]);$e.useEffect(function(){return ri.push(n),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ln),document.addEventListener("touchmove",l,Ln),document.addEventListener("touchstart",d,Ln),function(){ri=ri.filter(function(x){return x!==n}),document.removeEventListener("wheel",l,Ln),document.removeEventListener("touchmove",l,Ln),document.removeEventListener("touchstart",d,Ln)}},[]);var h=e.removeScrollBar,v=e.inert;return $e.createElement($e.Fragment,null,v?$e.createElement(n,{styles:PT(o)}):null,h?$e.createElement(vh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var fS=ch(Jd,cS);var pS=tc.forwardRef(function(e,t){return tc.createElement(_l,sa({},e,{ref:t,sideCar:fS}))});pS.classNames=_l.classNames;var In=pS;var DT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oi=new WeakMap,ac=new WeakMap,rc={},wh=0,mS=function(e){return e&&(e.host||mS(e.parentNode))},_T=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=mS(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},AT=function(e,t,a,r){var o=_T(t,Array.isArray(e)?e:[e]);rc[a]||(rc[a]=new WeakMap);var n=rc[a],s=[],i=new Set,l=new Set(o),u=function(c){!c||i.has(c)||(i.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(i.has(f))d(f);else try{var h=f.getAttribute(r),v=h!==null&&h!=="false",x=(oi.get(f)||0)+1,w=(n.get(f)||0)+1;oi.set(f,x),n.set(f,w),s.push(f),x===1&&v&&ac.set(f,!0),w===1&&f.setAttribute(a,"true"),v||f.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",f,p)}})};return d(t),i.clear(),wh++,function(){s.forEach(function(c){var f=oi.get(c)-1,h=n.get(c)-1;oi.set(c,f),n.set(c,h),f||(ac.has(c)||c.removeAttribute(r),ac.delete(c)),h||c.removeAttribute(a)}),wh--,wh||(oi=new WeakMap,oi=new WeakMap,ac=new WeakMap,rc={})}},ni=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||DT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),AT(r,o,a,"aria-hidden")):function(){return null}};var Ye=N(ke(),1),ET=Object.defineProperty,ia=(e,t)=>ET(e,"name",{value:t,configurable:!0}),Sh="Dialog",[hS,OT]=at(Sh),[NT,qa]=hS(Sh),FT=ia(e=>{let{__scopeDialog:t,children:a,open:r,defaultOpen:o,onOpenChange:n,modal:s=!0}=e,i=qe.useRef(null),l=qe.useRef(null),[u,d]=Wt({prop:r,defaultProp:o??!1,onChange:n,caller:Sh}),[c,f]=qe.useState(0),[h,v]=qe.useState(0);return(0,Ye.jsx)(NT,{scope:t,triggerRef:i,contentRef:l,contentId:dt(),titleId:dt(),descriptionId:dt(),titlePresent:c>0,descriptionPresent:h>0,setTitleCount:f,setDescriptionCount:v,open:u,onOpenChange:d,onOpenToggle:qe.useCallback(()=>d(x=>!x),[d]),modal:s,children:a})},"Dialog"),zT="DialogTrigger",BT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(zT,r),s=he(a,n.triggerRef);return(0,Ye.jsx)(le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":oc(n.open),...o,ref:s,onClick:G(t.onClick,n.onOpenToggle)})},"DialogTrigger")),gS="DialogPortal",[UT,vS]=hS(gS,{forceMount:void 0}),HT=ia(e=>{let{__scopeDialog:t,forceMount:a,children:r,container:o}=e,n=qa(gS,t);return(0,Ye.jsx)(UT,{scope:t,forceMount:a,children:qe.Children.map(r,s=>(0,Ye.jsx)(Gt,{present:a||n.open,children:(0,Ye.jsx)(Js,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Ch="DialogOverlay",jT=qe.forwardRef(ia(function(t,a){let r=vS(Ch,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=qa(Ch,t.__scopeDialog);return s.modal?(0,Ye.jsx)(Gt,{present:o||s.open,children:(0,Ye.jsx)(qT,{...n,ref:a})}):null},"DialogOverlay")),VT=bt("DialogOverlay.RemoveScroll"),qT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(Ch,r),s=Ym(),i=he(a,s);return(0,Ye.jsx)(In,{as:VT,allowPinchZoom:!0,shards:[n.contentRef],children:(0,Ye.jsx)(le.div,{"data-state":oc(n.open),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Ol="DialogContent",WT=qe.forwardRef(ia(function(t,a){let r=vS(Ol,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=qa(Ol,t.__scopeDialog);return(0,Ye.jsx)(Gt,{present:o||s.open,children:s.modal?(0,Ye.jsx)(GT,{...n,ref:a}):(0,Ye.jsx)($T,{...n,ref:a})})},"DialogContent")),GT=qe.forwardRef(ia(function(t,a){let r=qa(Ol,t.__scopeDialog),o=qe.useRef(null),n=he(a,r.contentRef,o);return qe.useEffect(()=>{let s=o.current;if(s)return ni(s)},[]),(0,Ye.jsx)(xS,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:G(t.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:G(t.onPointerDownOutside,s=>{let i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:G(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),$T=qe.forwardRef(ia(function(t,a){let r=qa(Ol,t.__scopeDialog),o=qe.useRef(!1),n=qe.useRef(!1);return(0,Ye.jsx)(xS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=s.target;r.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})},"DialogContentNonModal")),xS=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,...i}=t,l=qa(Ol,r);return Bo(),(0,Ye.jsx)(Ye.Fragment,{children:(0,Ye.jsx)(Ys,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:s,children:(0,Ye.jsx)(Qs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":oc(l.open),...i,ref:a,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),KT="DialogTitle",XT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(KT,r),{setTitleCount:s}=n;return Ne(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,Ye.jsx)(le.h2,{id:n.titleId,...o,ref:a})},"DialogTitle")),ZT="DialogDescription",QT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(ZT,r),{setDescriptionCount:s}=n;return Ne(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,Ye.jsx)(le.p,{id:n.descriptionId,...o,ref:a})},"DialogDescription")),YT="DialogClose",JT=qe.forwardRef(ia(function(t,a){let{__scopeDialog:r,...o}=t,n=qa(YT,r);return(0,Ye.jsx)(le.button,{type:"button",...o,ref:a,onClick:G(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose")),eM=ia(e=>e.children,"WarningProvider");function oc(e){return e?"open":"closed"}ia(oc,"getState");var Fl={};co(Fl,{Checkbox:()=>lM,CheckboxIndicator:()=>dM,Indicator:()=>dM,Root:()=>lM,createCheckboxScope:()=>nM,unstable_BubbleInput:()=>CS,unstable_CheckboxBubbleInput:()=>CS,unstable_CheckboxProvider:()=>bh,unstable_CheckboxTrigger:()=>wS,unstable_Provider:()=>bh,unstable_Trigger:()=>wS});var nt=N(te(),1);var yS=N(te(),1);var tM=Object.defineProperty,aM=(e,t)=>tM(e,"name",{value:t,configurable:!0});function Nl(e){let[t,a]=yS.useState(void 0);return Ne(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let n=o[0],s,i;if("borderBoxSize"in n){let l=n.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;a({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}aM(Nl,"useSize");var ga=N(ke(),1),rM=Object.defineProperty,Zr=(e,t)=>rM(e,"name",{value:t,configurable:!0}),Lh="Checkbox",[oM,nM]=at(Lh),[sM,Ih]=oM(Lh);function bh(e){let{__scopeCheckbox:t,checked:a,children:r,defaultChecked:o,disabled:n,form:s,name:i,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:c}=e,[f,h]=Wt({prop:a,defaultProp:o??!1,onChange:l,caller:Lh}),[v,x]=nt.useState(null),[w,p]=nt.useState(null),m=nt.useRef(!1),[g,y]=nt.useReducer(k=>k+1,0),C=v?!!s||!!v.closest("form"):!0,I={checked:f,disabled:n,setChecked:h,control:v,setControl:x,name:i,form:s,value:d,hasConsumerStoppedPropagationRef:m,userInteractionCount:g,onUserInteraction:y,required:u,defaultChecked:Xr(o)?!1:o,isFormControl:C,bubbleInput:w,setBubbleInput:p};return(0,ga.jsx)(sM,{scope:t,...I,children:SS(c)?c(I):r})}Zr(bh,"CheckboxProvider");var iM="CheckboxTrigger",wS=nt.forwardRef(Zr(function({__scopeCheckbox:t,onKeyDown:a,onClick:r,...o},n){let{control:s,value:i,disabled:l,checked:u,required:d,setControl:c,setChecked:f,hasConsumerStoppedPropagationRef:h,onUserInteraction:v,isFormControl:x,bubbleInput:w}=Ih(iM,t),p=he(n,c),m=nt.useRef(u);return nt.useEffect(()=>{let g=s?.form;if(g){let y=Zr(()=>f(m.current),"reset");return g.addEventListener("reset",y),()=>g.removeEventListener("reset",y)}},[s,f]),(0,ga.jsx)(le.button,{type:"button",role:"checkbox","aria-checked":Xr(u)?"mixed":u,"aria-required":d,"data-state":kh(u),"data-disabled":l?"":void 0,disabled:l,value:i,...o,ref:p,onKeyDown:G(a,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:G(r,g=>{v(),f(y=>Xr(y)?!0:!y),w&&x&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})},"CheckboxTrigger")),lM=nt.forwardRef(Zr(function(t,a){let{__scopeCheckbox:r,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:u,onCheckedChange:d,form:c,...f}=t;return(0,ga.jsx)(bh,{__scopeCheckbox:r,checked:n,defaultChecked:s,disabled:l,required:i,onCheckedChange:d,name:o,form:c,value:u,internal_do_not_use_render:({isFormControl:h})=>(0,ga.jsxs)(ga.Fragment,{children:[(0,ga.jsx)(wS,{...f,ref:a,__scopeCheckbox:r}),h&&(0,ga.jsx)(CS,{__scopeCheckbox:r})]})})},"Checkbox")),uM="CheckboxIndicator",dM=nt.forwardRef(Zr(function(t,a){let{__scopeCheckbox:r,forceMount:o,...n}=t,s=Ih(uM,r);return(0,ga.jsx)(Gt,{present:o||Xr(s.checked)||s.checked===!0,children:(0,ga.jsx)(le.span,{"data-state":kh(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),cM="CheckboxBubbleInput",CS=nt.forwardRef(Zr(function({__scopeCheckbox:t,onClick:a,...r},o){let{control:n,hasConsumerStoppedPropagationRef:s,userInteractionCount:i,checked:l,defaultChecked:u,required:d,disabled:c,name:f,value:h,form:v,bubbleInput:x,setBubbleInput:w}=Ih(cM,t),p=he(o,w),m=Nl(n),g=nt.useRef(!1),y=nt.useRef(l),C=nt.useRef(i);nt.useEffect(()=>{let k=x;if(!k)return;let b=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(b,"checked").set,D=i!==C.current;C.current=i;let E=y.current!==l;y.current=l;let z=!(D&&s.current);if(E&&A){g.current=!D;let O=new Event("click",{bubbles:z});k.indeterminate=Xr(l),A.call(k,Xr(l)?!1:l),k.dispatchEvent(O),g.current=!1}},[x,l,s,i]);let I=nt.useRef(Xr(l)?!1:l);return(0,ga.jsx)(le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??I.current,required:d,disabled:c,name:f,value:h,form:v,...r,tabIndex:-1,ref:p,onClick:G(a,k=>{g.current&&k.stopPropagation()}),style:{...r.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function SS(e){return typeof e=="function"}Zr(SS,"isFunction");function Xr(e){return e==="indeterminate"}Zr(Xr,"isIndeterminate");function kh(e){return Xr(e)?"indeterminate":e?"checked":"unchecked"}Zr(kh,"getState");var ae=N(te(),1);var Rt=N(te(),1);var bS=["top","right","bottom","left"];var cr=Math.min,Ga=Math.max,Bl=Math.round,Ul=Math.floor,fr=e=>({x:e,y:e}),fM={left:"right",right:"left",bottom:"top",top:"bottom"};function Rh(e,t,a){return Ga(e,cr(t,a))}function pr(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function sc(e){return e==="x"?"y":"x"}function ic(e){return e==="y"?"height":"width"}function $a(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function lc(e){return sc($a(e))}function kS(e,t,a){a===void 0&&(a=!1);let r=bn(e),o=lc(e),n=ic(o),s=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=zl(s)),[s,zl(s)]}function RS(e){let t=zl(e);return[nc(e),t,nc(t)]}function nc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var LS=["left","right"],IS=["right","left"],pM=["top","bottom"],mM=["bottom","top"];function hM(e,t,a){switch(e){case"top":case"bottom":return a?t?IS:LS:t?LS:IS;case"left":case"right":return t?pM:mM;default:return[]}}function PS(e,t,a,r){let o=bn(e),n=hM(Qr(e),a==="start",r);return o&&(n=n.map(s=>s+"-"+o),t&&(n=n.concat(n.map(nc)))),n}function zl(e){let t=Qr(e);return fM[t]+e.slice(t.length)}function gM(e){var t,a,r,o;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Ph(e){return typeof e!="number"?gM(e):{top:e,right:e,bottom:e,left:e}}function kn(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function TS(e,t,a){let{reference:r,floating:o}=e,n=$a(t),s=lc(t),i=ic(s),l=Qr(t),u=n==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2,h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}let v=bn(t);return v&&(h[s]+=f*(v==="end"?1:-1)*(a&&u?-1:1)),h}async function _S(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:h=0}=pr(t,e),v=Ph(h),w=i[f?c==="floating"?"reference":"floating":c],p=kn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(w)))==null||a?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),m=c==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),y=await(n.isElement==null?void 0:n.isElement(g))&&await(n.getScale==null?void 0:n.getScale(g))||{x:1,y:1},C=kn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:m,offsetParent:g,strategy:l}):m);return{top:(p.top-C.top+v.top)/y.y,bottom:(C.bottom-p.bottom+v.bottom)/y.y,left:(p.left-C.left+v.left)/y.x,right:(C.right-p.right+v.right)/y.x}}var vM=50,AS=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:n=[],platform:s}=a,i=s.detectOverflow?s:{...s,detectOverflow:_S},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=TS(u,r,l),f=r,h=0,v={};for(let x=0;x<n.length;x++){let w=n[x];if(!w)continue;let{name:p,fn:m}=w,{x:g,y,data:C,reset:I}=await m({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});d=g??d,c=y??c,v[p]={...v[p],...C},I&&h<vM&&(h++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:d,y:c}=TS(u,f,l)),x=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:v}},ES=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=pr(e,t)||{};if(u==null)return{};let c=Ph(d),f={x:a,y:r},h=lc(o),v=ic(h),x=await s.getDimensions(u),w=h==="y",p=w?"top":"left",m=w?"bottom":"right",g=w?"clientHeight":"clientWidth",y=n.reference[v]+n.reference[h]-f[h]-n.floating[v],C=f[h]-n.reference[h],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),k=I?I[g]:0;(!k||!await(s.isElement==null?void 0:s.isElement(I)))&&(k=i.floating[g]||n.floating[v]);let b=y/2-C/2,T=k/2-x[v]/2-1,A=cr(c[p],T),D=cr(c[m],T),E=k-x[v]-D,z=k/2-x[v]/2+b,O=Rh(A,z,E),_=!l.arrow&&bn(o)!=null&&z!==O&&n.reference[v]/2-(z<A?A:D)-x[v]/2<0,B=_?z<A?z-A:z-E:0;return{[h]:f[h]+B,data:{[h]:O,centerOffset:z-O-B,..._&&{alignmentOffset:B}},reset:_}}});var OS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:o,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...w}=pr(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let p=Qr(o),m=$a(i),g=Qr(i)===i,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(g||!x?[zl(i)]:RS(i)),I=v!=="none";!f&&I&&C.push(...PS(i,x,v,y));let k=[i,...C],b=await l.detectOverflow(t,w),T=[],A=((r=n.flip)==null?void 0:r.overflows)||[];if(d&&T.push(b[p]),c){let O=kS(o,s,y);T.push(b[O[0]],b[O[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(O=>O<=0)){var D,E;let O=(((D=n.flip)==null?void 0:D.index)||0)+1,_=k[O];if(_&&(!(c==="alignment"?m!==$a(_):!1)||A.every(W=>$a(W.placement)===m?W.overflows[0]>0:!0)))return{data:{index:O,overflows:A},reset:{placement:_}};let B=(E=A.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(h){case"bestFit":{var z;let j=(z=A.filter(W=>{if(I){let ee=$a(W.placement);return ee===m||ee==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(ee=>ee>0).reduce((ee,P)=>ee+P,0)]).sort((W,ee)=>W[1]-ee[1])[0])==null?void 0:z[0];j&&(B=j);break}case"initialPlacement":B=i;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function MS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function DS(e){return bS.some(t=>e[t]>=0)}var NS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:r}=t,{strategy:o="referenceHidden",...n}=pr(e,t);switch(o){case"referenceHidden":{let s=await r.detectOverflow(t,{...n,elementContext:"reference"}),i=MS(s,a.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:DS(i)}}}case"escaped":{let s=await r.detectOverflow(t,{...n,altBoundary:!0}),i=MS(s,a.floating);return{data:{escapedOffsets:i,escaped:DS(i)}}}default:return{}}}}};var FS=new Set(["left","top"]);async function xM(e,t){let{placement:a,platform:r,elements:o}=e,n=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Qr(a),i=bn(a),l=$a(a)==="y",u=FS.has(s)?-1:1,d=n&&l?-1:1,c=pr(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),l?{x:h*d,y:f*u}:{x:f*u,y:h*d}}var zS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:n,placement:s,middlewareData:i}=t,l=await xM(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:n+l.y,data:{...l,placement:s}}}}},BS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o,platform:n}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...u}=pr(e,t),d={x:a,y:r},c=await n.detectOverflow(t,u),f=$a(o),h=sc(f),v=d[h],x=d[f],w=(m,g)=>Rh(g+c[m==="y"?"top":"left"],g,g-c[m==="y"?"bottom":"right"]);s&&(v=w(h,v)),i&&(x=w(f,x));let p=l.fn({...t,[h]:v,[f]:x});return{...p,data:{x:p.x-a,y:p.y-r,enabled:{[h]:s,[f]:i}}}}}},US=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,r;let{x:o,y:n,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:c=!0}=pr(e,t),f={x:o,y:n},h=$a(s),v=sc(h),x=f[v],w=f[h],p=pr(u,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:(a=p.mainAxis)!=null?a:0,crossAxis:(r=p.crossAxis)!=null?r:0};if(d){let C=v==="y"?"height":"width",I=i.reference[v]-i.floating[C]+m.mainAxis,k=i.reference[v]+i.reference[C]-m.mainAxis;x<I?x=I:x>k&&(x=k)}if(c){var g,y;let C=v==="y"?"width":"height",I=FS.has(Qr(s)),k=i.reference[h]-i.floating[C]+(I&&((g=l.offset)==null?void 0:g[h])||0)+(I?0:m.crossAxis),b=i.reference[h]+i.reference[C]+(I?0:((y=l.offset)==null?void 0:y[h])||0)-(I?m.crossAxis:0);w<k?w=k:w>b&&(w=b)}return{[v]:x,[h]:w}}}},HS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:r,platform:o,elements:n}=t,{apply:s=()=>{},...i}=pr(e,t),l=await o.detectOverflow(t,i),u=Qr(a),d=bn(a),c=$a(a)==="y",{width:f,height:h}=r.floating,v,x;u==="top"||u==="bottom"?(v=u,x=d===(await(o.isRTL==null?void 0:o.isRTL(n.floating))?"start":"end")?"left":"right"):(x=u,v=d==="end"?"top":"bottom");let w=h-l.top-l.bottom,p=f-l.left-l.right,m=cr(h-l[v],w),g=cr(f-l[x],p),y=t.middlewareData.shift,C=!y,I=m,k=g;y!=null&&y.enabled.x&&(k=p),y!=null&&y.enabled.y&&(I=w),C&&!d&&(c?k=f-2*Ga(l.left,l.right):I=h-2*Ga(l.top,l.bottom)),await s({...t,availableWidth:k,availableHeight:I});let b=await o.getDimensions(n.floating);return f!==b.width||h!==b.height?{reset:{rects:!0}}:{}}}};function uc(){return typeof window<"u"}function Tn(e){return VS(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mr(e){var t;return(t=(VS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VS(e){return uc()?e instanceof Node||e instanceof Kt(e).Node:!1}function Ka(e){return uc()?e instanceof Element||e instanceof Kt(e).Element:!1}function Yr(e){return uc()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function jS(e){return!uc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}function Hl(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=Xa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&o!=="inline"&&o!=="contents"}function qS(e){return/^(table|td|th)$/.test(Tn(e))}function jl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var yM=/transform|translate|scale|rotate|perspective|filter/,wM=/paint|layout|strict|content/,Rn=e=>!!e&&e!=="none",Th;function dc(e){let t=Ka(e)?Xa(e):e;return Rn(t.transform)||Rn(t.translate)||Rn(t.scale)||Rn(t.rotate)||Rn(t.perspective)||!cc()&&(Rn(t.backdropFilter)||Rn(t.filter))||yM.test(t.willChange||"")||wM.test(t.contain||"")}function WS(e){let t=Uo(e);for(;Yr(t)&&!si(t);){if(dc(t))return t;if(jl(t))return null;t=Uo(t)}return null}function cc(){return Th==null&&(Th=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Th}function si(e){return/^(html|body|#document)$/.test(Tn(e))}function Xa(e){return Kt(e).getComputedStyle(e)}function Vl(e){return Ka(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uo(e){if(Tn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||jS(e)&&e.host||mr(e);return jS(t)?t.host:t}function GS(e){let t=Uo(e);return si(t)?(e.ownerDocument||e).body:Yr(t)&&Hl(t)?t:GS(t)}function Pn(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=GS(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=Kt(o);if(n){let i=fc(s);return t.concat(s,s.visualViewport||[],Hl(o)?o:[],i&&a?Pn(i):[])}else return t.concat(o,Pn(o,[],a))}function fc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function XS(e){let t=Xa(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Yr(e),n=o?e.offsetWidth:a,s=o?e.offsetHeight:r,i=Bl(a)!==n||Bl(r)!==s;return i&&(a=n,r=s),{width:a,height:r,$:i}}function Dh(e){return Ka(e)?e:e.contextElement}function ii(e){let t=Dh(e);if(!Yr(t))return fr(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:n}=XS(t),s=(n?Bl(a.width):a.width)/r,i=(n?Bl(a.height):a.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var CM=fr(0);function ZS(e){let t=Kt(e);return!cc()||!t.visualViewport?CM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SM(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===Kt(e)}function Mn(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),n=Dh(e),s=fr(1);t&&(r?Ka(r)&&(s=ii(r)):s=ii(e));let i=SM(n,a,r)?ZS(n):fr(0),l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,d=o.width/s.x,c=o.height/s.y;if(n&&r){let f=Kt(n),h=Ka(r)?Kt(r):r,v=f,x=fc(v);for(;x&&h!==v;){let w=ii(x),p=x.getBoundingClientRect(),m=Xa(x),g=p.left+(x.clientLeft+parseFloat(m.paddingLeft))*w.x,y=p.top+(x.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=g,u+=y,v=Kt(x),x=fc(v)}}return kn({width:d,height:c,x:l,y:u})}function pc(e,t){let a=Vl(e).scrollLeft;return t?t.left+a:Mn(mr(e)).left+a}function QS(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-pc(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function LM(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,n=o==="fixed",s=mr(r),i=t?jl(t.floating):!1;if(r===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=fr(1),d=fr(0),c=Yr(r);if((c||!n)&&((Tn(r)!=="body"||Hl(s))&&(l=Vl(r)),c)){let h=Mn(r);u=ii(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}let f=s&&!c&&!n?QS(s,l):fr(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:a.y*u.y-l.scrollTop*u.y+d.y+f.y}}function IM(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function bM(e){let t=Vl(e),a=e.ownerDocument.body,r=Ga(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),o=Ga(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+pc(e),s=-t.scrollTop;return Xa(a).direction==="rtl"&&(n+=Ga(e.clientWidth,a.clientWidth)-r),{width:r,height:o,x:n,y:s}}var kM=25;function RM(e,t,a){a===void 0&&(a="viewport");let r=a==="layoutViewport",o=Kt(e),n=mr(e),s=o.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,d=0;if(s){let f=!cc()||t==="fixed";r?f||(u=-s.offsetLeft,d=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,d=s.offsetTop))}if(pc(n)<=0){let f=n.ownerDocument,h=f.body,v=getComputedStyle(h),x=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(n.clientWidth-h.clientWidth-x),p=getComputedStyle(n).scrollbarGutter==="stable both-edges"?w/2:w;p<=kM&&(i-=p)}return{width:i,height:l,x:u,y:d}}function PM(e,t){let a=Mn(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,n=ii(e),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=o*n.x,u=r*n.y;return{width:s,height:i,x:l,y:u}}function $S(e,t,a){let r;if(t==="viewport"||t==="layoutViewport")r=RM(e,a,t);else if(t==="document")r=bM(mr(e));else if(Ka(t))r=PM(t,a);else{let o=ZS(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kn(r)}function TM(e,t){let a=t.get(e);if(a)return a;let r=Pn(e,[],!1).filter(i=>Ka(i)&&Tn(i)!=="body"),o=null,n=Xa(e).position==="fixed",s=n?Uo(e):e;for(;Ka(s)&&!si(s);){let i=Xa(s),l=dc(s),u=o?o.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?r=r.filter(c=>c!==s):o=i,s=Uo(s)}return t.set(e,r),r}function MM(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,s=[...a==="clippingAncestors"?jl(t)?[]:TM(t,this._c):[].concat(a),r],i=$S(t,s[0],o),l=i.top,u=i.right,d=i.bottom,c=i.left;for(let f=1;f<s.length;f++){let h=$S(t,s[f],o);l=Ga(h.top,l),u=cr(h.right,u),d=cr(h.bottom,d),c=Ga(h.left,c)}return{width:u-c,height:d-l,x:c,y:l}}function DM(e){let{width:t,height:a}=XS(e);return{width:t,height:a}}function _M(e,t,a){let r=Yr(t),o=mr(t),n=a==="fixed",s=Mn(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=fr(0);if((r||!n)&&((Tn(t)!=="body"||Hl(o))&&(i=Vl(t)),r)){let f=Mn(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&o&&(l.x=pc(o));let u=o&&!r&&!n?QS(o,i):fr(0),d=s.left+i.scrollLeft-l.x-u.x,c=s.top+i.scrollTop-l.y-u.y;return{x:d,y:c,width:s.width,height:s.height}}function Mh(e){return Xa(e).position==="static"}function KS(e,t){if(!Yr(e)||Xa(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return mr(e)===a&&(a=a.ownerDocument.body),a}function YS(e,t){let a=Kt(e);if(jl(e))return a;if(!Yr(e)){let o=Uo(e);for(;o&&!si(o);){if(Ka(o)&&!Mh(o))return o;o=Uo(o)}return a}let r=KS(e,t);for(;r&&qS(r)&&Mh(r);)r=KS(r,t);return r&&si(r)&&Mh(r)&&!dc(r)?a:r||WS(e)||a}var AM=async function(e){let t=this.getOffsetParent||YS,a=this.getDimensions,r=await a(e.floating);return{reference:_M(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EM(e){return Xa(e).direction==="rtl"}var JS={convertOffsetParentRelativeRectToViewportRelativeRect:LM,getDocumentElement:mr,getClippingRect:MM,getOffsetParent:YS,getElementRects:AM,getClientRects:IM,getDimensions:DM,getScale:ii,isElement:Ka,isRTL:EM};function eL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OM(e,t,a){let r=null,o,n=mr(e);function s(){var d;clearTimeout(o),(d=r)==null||d.disconnect(),r=null}function i(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),s();let f=e.getBoundingClientRect(),{left:h,top:v,width:x,height:w}=f;if(d||t(),!x||!w)return;let p=Ul(v),m=Ul(n.clientWidth-(h+x)),g=Ul(n.clientHeight-(v+w)),y=Ul(h),I={rootMargin:-p+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Ga(0,cr(1,c))||1},k=!0;function b(T){let A=T[0].intersectionRatio;if(!eL(f,e.getBoundingClientRect()))return i();if(A!==c){if(!k)return i();A?i(!1,A):o=setTimeout(()=>{i(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(b,{...I,root:n.ownerDocument})}catch{r=new IntersectionObserver(b,I)}r.observe(e)}let l=Kt(e),u=()=>i(a);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function _h(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Dh(e),d=o||n?[...u?Pn(u):[],...t?Pn(t):[]]:[];d.forEach(p=>{o&&p.addEventListener("scroll",a),n&&p.addEventListener("resize",a)});let c=u&&i?OM(u,a,n):null,f=-1,h=null;s&&(h=new ResizeObserver(p=>{let[m]=p;m&&m.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),a()}),u&&!l&&h.observe(u),t&&h.observe(t));let v,x=l?Mn(e):null;l&&w();function w(){let p=Mn(e);x&&!eL(x,p)&&a(),x=p,v=requestAnimationFrame(w)}return a(),()=>{var p;d.forEach(m=>{o&&m.removeEventListener("scroll",a),n&&m.removeEventListener("resize",a)}),c?.(),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(v)}}var tL=zS;var aL=BS,rL=OS,oL=HS,nL=NS,Ah=ES;var sL=US,Eh=(e,t,a)=>{let r=new Map,o=a??{},n={...JS,...o.platform,_c:r};return AS(e,t,{...o,platform:n})};var st=N(te(),1),lL=N(te(),1),uL=N(Gs(),1),NM=typeof document<"u",FM=function(){},mc=NM?lL.useLayoutEffect:FM;function hc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!hc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let n=o[r];if(!(n==="_owner"&&e.$$typeof)&&!hc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function dL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iL(e,t){let a=dL(e);return Math.round(t*a)/a}function Oh(e){let t=st.useRef(e);return mc(()=>{t.current=e}),t}function cL(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[d,c]=st.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=st.useState(r);hc(f,r)||h(r);let[v,x]=st.useState(null),[w,p]=st.useState(null),m=st.useCallback(W=>{W!==I.current&&(I.current=W,x(W))},[]),g=st.useCallback(W=>{W!==k.current&&(k.current=W,p(W))},[]),y=n||v,C=s||w,I=st.useRef(null),k=st.useRef(null),b=st.useRef(d),T=l!=null,A=Oh(l),D=Oh(o),E=Oh(u),z=st.useCallback(()=>{if(!I.current||!k.current)return;let W={placement:t,strategy:a,middleware:f};D.current&&(W.platform=D.current),Eh(I.current,k.current,W).then(ee=>{let P={...ee,isPositioned:E.current!==!1};O.current&&!hc(b.current,P)&&(b.current=P,uL.flushSync(()=>{c(P)}))})},[f,t,a,D,E]);mc(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(W=>({...W,isPositioned:!1})))},[u]);let O=st.useRef(!1);mc(()=>(O.current=!0,()=>{O.current=!1}),[]),mc(()=>{if(y&&(I.current=y),C&&(k.current=C),y&&C){if(A.current)return A.current(y,C,z);z()}},[y,C,z,A,T]);let _=st.useMemo(()=>({reference:I,floating:k,setReference:m,setFloating:g}),[m,g]),B=st.useMemo(()=>({reference:y,floating:C}),[y,C]),j=st.useMemo(()=>{let W={position:a,left:0,top:0};if(!B.floating)return W;let ee=iL(B.floating,d.x),P=iL(B.floating,d.y);return i?{...W,transform:"translate("+ee+"px, "+P+"px)",...dL(B.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ee,top:P}},[a,i,B.floating,d.x,d.y]);return st.useMemo(()=>({...d,update:z,refs:_,elements:B,floatingStyles:j}),[d,z,_,B,j])}var zM=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?Ah({element:r.current,padding:o}).fn(a):{}:r?Ah({element:r,padding:o}).fn(a):{}}}},fL=(e,t)=>{let a=tL(e);return{name:a.name,fn:a.fn,options:[e,t]}},pL=(e,t)=>{let a=aL(e);return{name:a.name,fn:a.fn,options:[e,t]}},mL=(e,t)=>({fn:sL(e).fn,options:[e,t]}),hL=(e,t)=>{let a=rL(e);return{name:a.name,fn:a.fn,options:[e,t]}},gL=(e,t)=>{let a=oL(e);return{name:a.name,fn:a.fn,options:[e,t]}};var vL=(e,t)=>{let a=nL(e);return{name:a.name,fn:a.fn,options:[e,t]}};var xL=(e,t)=>{let a=zM(e);return{name:a.name,fn:a.fn,options:[e,t]}};var yL=N(te(),1);var Nh=N(ke(),1),BM=Object.defineProperty,UM=(e,t)=>BM(e,"name",{value:t,configurable:!0}),HM=yL.forwardRef(UM(function(t,a){let{children:r,width:o=10,height:n=5,...s}=t;return(0,Nh.jsx)(le.svg,{...s,ref:a,width:o,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,Nh.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),wL=HM;var Ho=N(ke(),1),VM=Object.defineProperty,Jr=(e,t)=>VM(e,"name",{value:t,configurable:!0});var CL="Popper",[SL,li]=at(CL),[qM,LL]=SL(CL),WM=Jr(e=>{let{__scopePopper:t,children:a}=e,[r,o]=Rt.useState(null),[n,s]=Rt.useState(void 0);return(0,Ho.jsx)(qM,{scope:t,anchor:r,onAnchorChange:o,placementState:n,setPlacementState:s,children:a})},"Popper"),GM="PopperAnchor",$M=Rt.forwardRef(Jr(function(t,a){let{__scopePopper:r,virtualRef:o,...n}=t,s=LL(GM,r),i=Rt.useRef(null),l=s.onAnchorChange,u=Rt.useCallback(x=>{i.current=x,x&&l(x)},[l]),d=he(a,u),c=Rt.useRef(null);Rt.useEffect(()=>{if(!o)return;let x=c.current;c.current=o.current,x!==c.current&&l(c.current)});let f=s.placementState&&gc(s.placementState),h=f?.[0],v=f?.[1];return o?null:(0,Ho.jsx)(le.div,{"data-radix-popper-side":h,"data-radix-popper-align":v,...n,ref:d})},"PopperAnchor")),IL="PopperContent",[KM,XM]=SL(IL),ZM=Rt.forwardRef(Jr(function(t,a){let{__scopePopper:r,side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:x,...w}=t,p=LL(IL,r),[m,g]=Rt.useState(null),y=he(a,g),[C,I]=Rt.useState(null),k=Nl(C),b=k?.width??0,T=k?.height??0,A=o+(s!=="center"?"-"+s:""),D=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(d)?d:[d],z=E.length>0,O={padding:D,boundary:E.filter(bL),altBoundary:z},{refs:_,floatingStyles:B,placement:j,isPositioned:W,middlewareData:ee}=cL({strategy:"fixed",placement:A,whileElementsMounted:Jr((...oe)=>_h(...oe,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:p.anchor},middleware:[fL({mainAxis:n+T,alignmentAxis:i}),u&&pL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?mL():void 0,...O}),u&&hL({...O}),gL({...O,apply:Jr(({elements:oe,rects:Je,availableWidth:De,availableHeight:Oe})=>{let{width:M,height:ye}=Je.reference,Tt=oe.floating.style;Tt.setProperty("--radix-popper-available-width",`${De}px`),Tt.setProperty("--radix-popper-available-height",`${Oe}px`),Tt.setProperty("--radix-popper-anchor-width",`${M}px`),Tt.setProperty("--radix-popper-anchor-height",`${ye}px`)},"apply")}),C&&xL({element:C,padding:l}),eD({arrowWidth:b,arrowHeight:T}),h&&vL({strategy:"referenceHidden",...O,boundary:z?O.boundary:void 0})]}),P=p.setPlacementState;Ne(()=>(P(j),()=>{P(void 0)}),[j,P]);let[se,ie]=gc(j),H=ot(x);Ne(()=>{W&&H?.()},[W,H]);let ve=ee.arrow?.x,Se=ee.arrow?.y,fe=ee.arrow?.centerOffset!==0,[Ae,K]=Rt.useState();return Ne(()=>{m&&K(window.getComputedStyle(m).zIndex)},[m]),(0,Ho.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:W?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,Ho.jsx)(KM,{scope:r,placedSide:se,placedAlign:ie,onArrowChange:I,arrowX:ve,arrowY:Se,shouldHideArrow:fe,children:(0,Ho.jsx)(le.div,{"data-side":se,"data-align":ie,...w,ref:y,style:{...w.style,animation:W?w.style?.animation:"none"}})})})},"PopperContent")),QM="PopperArrow",YM={top:"bottom",right:"left",bottom:"top",left:"right"},JM=Rt.forwardRef(Jr(function(t,a){let{__scopePopper:r,...o}=t,n=XM(QM,r),s=YM[n.placedSide];return(0,Ho.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,Ho.jsx)(wL,{...o,ref:a,style:{...o.style,display:"block"}})})},"PopperArrow"));function bL(e){return e!==null}Jr(bL,"isNotNull");var eD=Jr(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=gc(a),c={start:"0%",center:"50%",end:"100%"}[d],f=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2,v="",x="";return u==="bottom"?(v=s?c:`${f}px`,x=`${-l}px`):u==="top"?(v=s?c:`${f}px`,x=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,x=s?c:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,x=s?c:`${h}px`),{data:{x:v,y:x}}}}),"transformOrigin");function gc(e){let[t,a="center"]=e.split("-");return[t,a]}Jr(gc,"getSideAndAlignFromPlacement");var ql=WM,vc=$M,xc=ZM,yc=JM;var xt=N(te(),1);var aD=N(te(),1),wc=N(te(),1),tD=Object.defineProperty,zh=(e,t)=>tD(e,"name",{value:t,configurable:!0}),Fh=!1;function RL(){let[e,t]=wc.useState(Fh);return wc.useEffect(()=>{Fh||(Fh=!0,t(!0))},[]),e}zh(RL,"useIsHydrated");var PL=aD[" useSyncExternalStore ".trim().toString()];function TL(){return()=>{}}zh(TL,"subscribe");function ML(){return PL(TL,()=>!0,()=>!1)}zh(ML,"useIsHydratedModern");var DL=typeof PL=="function"?ML:RL;var jo=N(ke(),1),rD=Object.defineProperty,Dn=(e,t)=>rD(e,"name",{value:t,configurable:!0}),Bh="rovingFocusGroup.onEntryFocus",oD={bubbles:!1,cancelable:!0},Cc="RovingFocusGroup",[Uh,_L,nD]=wn(Cc),[sD,ui]=at(Cc,[nD]),[iD,lD]=sD(Cc),uD=xt.forwardRef(Dn(function(t,a){return(0,jo.jsx)(Uh.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,jo.jsx)(Uh.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,jo.jsx)(dD,{...t,ref:a})})})},"RovingFocusGroup")),dD=xt.forwardRef(Dn(function(t,a){let{__scopeRovingFocusGroup:r,orientation:o,loop:n=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:c=!1,...f}=t,h=xt.useRef(null),v=he(a,h),x=$r(s),[w,p]=Wt({prop:i,defaultProp:l??null,onChange:u,caller:Cc}),[m,g]=xt.useState(!1),y=ot(d),C=_L(r),I=xt.useRef(!1),[k,b]=xt.useState(0);return xt.useEffect(()=>{let T=h.current;if(T)return T.addEventListener(Bh,y),()=>T.removeEventListener(Bh,y)},[y]),(0,jo.jsx)(iD,{scope:r,orientation:o,dir:x,loop:n,currentTabStopId:w,onItemFocus:xt.useCallback(T=>p(T),[p]),onItemShiftTab:xt.useCallback(()=>g(!0),[]),onFocusableItemAdd:xt.useCallback(()=>b(T=>T+1),[]),onFocusableItemRemove:xt.useCallback(()=>b(T=>T-1),[]),children:(0,jo.jsx)(le.div,{tabIndex:m||k===0?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:G(t.onMouseDown,()=>{I.current=!0}),onFocus:G(t.onFocus,T=>{let A=!I.current;if(T.target===T.currentTarget&&A&&!m){let D=new CustomEvent(Bh,oD);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){let E=C().filter(j=>j.focusable),z=E.find(j=>j.active),O=E.find(j=>j.id===w),B=[z,O,...E].filter(Boolean).map(j=>j.ref.current);Hh(B,c)}}I.current=!1}),onBlur:G(t.onBlur,()=>g(!1))})})},"RovingFocusGroupImpl")),cD="RovingFocusGroupItem",fD=xt.forwardRef(Dn(function(t,a){let{__scopeRovingFocusGroup:r,focusable:o=!0,active:n=!1,tabStopId:s,children:i,...l}=t,u=dt(),d=s||u,c=lD(cD,r),f=c.currentTabStopId===d,h=_L(r),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:w}=c,p=DL();return Ne(()=>{if(!(!p||!o))return v(),()=>x()},[p,o,v,x]),xt.useEffect(()=>{if(!(p||!o))return v(),()=>x()},[p,o,v,x]),(0,jo.jsx)(Uh.ItemSlot,{scope:r,id:d,focusable:o,active:n,children:(0,jo.jsx)(le.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...l,ref:a,onMouseDown:G(t.onMouseDown,m=>{o?c.onItemFocus(d):m.preventDefault()}),onFocus:G(t.onFocus,()=>c.onItemFocus(d)),onKeyDown:G(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;let g=EL(m,c.orientation,c.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let C=h().filter(I=>I.focusable).map(I=>I.ref.current);if(g==="last")C.reverse();else if(g==="prev"||g==="next"){g==="prev"&&C.reverse();let I=C.indexOf(m.currentTarget);C=c.loop?OL(C,I+1):C.slice(I+1)}setTimeout(()=>Hh(C))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:w!=null}):i})})},"RovingFocusGroupItem")),pD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function AL(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Dn(AL,"getDirectionAwareKey");function EL(e,t,a){let r=AL(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pD[r]}Dn(EL,"getFocusIntent");function Hh(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}Dn(Hh,"focusFirst");function OL(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Dn(OL,"wrapArray");var Sc=uD,Lc=fD;var ge=N(ke(),1),mD=Object.defineProperty,Me=(e,t)=>mD(e,"name",{value:t,configurable:!0}),jh=["Enter"," "],hD=["ArrowDown","PageUp","Home"],zL=["ArrowUp","PageDown","End"],gD=[...hD,...zL],vD={ltr:[...jh,"ArrowRight"],rtl:[...jh,"ArrowLeft"]},xD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bc="Menu",[Wl,yD,wD]=wn(bc),[_n,qh]=at(bc,[wD,li,ui]),$l=li(),BL=ui(),[UL,Vo]=_n(bc),[CD,Kl]=_n(bc),SD=Me(e=>{let{__scopeMenu:t,open:a=!1,children:r,dir:o,onOpenChange:n,modal:s=!0}=e,i=$l(t),[l,u]=ae.useState(null),d=ae.useRef(!1),c=ot(n),f=$r(o);return ae.useEffect(()=>{let h=Me(()=>{d.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},"handleKeyDown"),v=Me(()=>d.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),ae.useEffect(()=>{if(!a)return;let h=Me(()=>c(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[a,c]),(0,ge.jsx)(ql,{...i,children:(0,ge.jsx)(UL,{scope:t,open:a,onOpenChange:c,content:l,onContentChange:u,children:(0,ge.jsx)(CD,{scope:t,onClose:ae.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:f,modal:s,children:r})})})},"Menu"),HL=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t,n=$l(r);return(0,ge.jsx)(vc,{...n,...o,ref:a})},"MenuAnchor")),jL="MenuPortal",[LD,VL]=_n(jL,{forceMount:void 0}),ID=Me(e=>{let{__scopeMenu:t,forceMount:a,children:r,container:o}=e,n=Vo(jL,t);return(0,ge.jsx)(LD,{scope:t,forceMount:a,children:(0,ge.jsx)(Gt,{present:a||n.open,children:(0,ge.jsx)(Js,{asChild:!0,container:o,children:r})})})},"MenuPortal"),Za="MenuContent",[bD,Wh]=_n(Za),kD=ae.forwardRef(Me(function(t,a){let r=VL(Za,t.__scopeMenu),{forceMount:o=r.forceMount,...n}=t,s=Vo(Za,t.__scopeMenu),i=Kl(Za,t.__scopeMenu);return(0,ge.jsx)(Wl.Provider,{scope:t.__scopeMenu,children:(0,ge.jsx)(Gt,{present:o||s.open,children:(0,ge.jsx)(Wl.Slot,{scope:t.__scopeMenu,children:i.modal?(0,ge.jsx)(RD,{...n,ref:a}):(0,ge.jsx)(PD,{...n,ref:a})})})})},"MenuContent")),RD=ae.forwardRef(Me(function(t,a){let r=Vo(Za,t.__scopeMenu),o=ae.useRef(null),n=he(a,o);return ae.useEffect(()=>{let s=o.current;if(s)return ni(s)},[]),(0,ge.jsx)(Gh,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:G(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),PD=ae.forwardRef(Me(function(t,a){let r=Vo(Za,t.__scopeMenu);return(0,ge.jsx)(Gh,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),TD=bt("MenuContent.ScrollLock"),Gh=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,loop:o=!1,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,disableOutsideScroll:x,...w}=t,p=Vo(Za,r),m=Kl(Za,r),g=$l(r),y=BL(r),C=yD(r),[I,k]=ae.useState(null),b=ae.useRef(null),T=he(a,b,p.onContentChange),A=ae.useRef(0),D=ae.useRef(""),E=ae.useRef(0),z=ae.useRef(null),O=ae.useRef("right"),_=ae.useRef(0),B=x?In:ae.Fragment,j=x?{as:TD,allowPinchZoom:!0}:void 0,W=Me(P=>{let se=D.current+P,ie=C().filter(K=>!K.disabled),H=document.activeElement,ve=ie.find(K=>K.ref.current===H)?.textValue,Se=ie.map(K=>K.textValue),fe=YL(Se,se,ve),Ae=ie.find(K=>K.textValue===fe)?.ref.current;Me((function K(oe){D.current=oe,window.clearTimeout(A.current),oe!==""&&(A.current=window.setTimeout(()=>K(""),1e3))}),"updateSearch")(se),Ae&&setTimeout(()=>Ae.focus())},"handleTypeaheadSearch");ae.useEffect(()=>()=>window.clearTimeout(A.current),[]),Bo();let ee=ae.useCallback(P=>O.current===z.current?.side&&eI(P,z.current?.area),[]);return(0,ge.jsx)(bD,{scope:r,searchRef:D,onItemEnter:ae.useCallback(P=>{ee(P)&&P.preventDefault()},[ee]),onItemLeave:ae.useCallback(P=>{ee(P)||(b.current?.focus(),k(null))},[ee]),onTriggerLeave:ae.useCallback(P=>{ee(P)&&P.preventDefault()},[ee]),pointerGraceTimerRef:E,onPointerGraceIntentChange:ae.useCallback(P=>{z.current=P},[]),children:(0,ge.jsx)(B,{...j,children:(0,ge.jsx)(Ys,{asChild:!0,trapped:n,onMountAutoFocus:G(s,P=>{P.preventDefault(),b.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,ge.jsx)(Qs,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:v,children:(0,ge.jsx)(Sc,{asChild:!0,...y,dir:m.dir,orientation:"vertical",loop:o,currentTabStopId:I,onCurrentTabStopIdChange:k,onEntryFocus:G(u,P=>{m.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,ge.jsx)(xc,{role:"menu","aria-orientation":"vertical","data-state":Kh(p.open),"data-radix-menu-content":"",dir:m.dir,...g,...w,ref:T,style:{outline:"none",...w.style},onKeyDown:G(w.onKeyDown,P=>{let ie=P.target.closest("[data-radix-menu-content]")===P.currentTarget,H=P.ctrlKey||P.altKey||P.metaKey,ve=P.key.length===1;ie&&(P.key==="Tab"&&P.preventDefault(),!H&&ve&&W(P.key));let Se=b.current;if(P.target!==Se||!gD.includes(P.key))return;P.preventDefault();let Ae=C().filter(K=>!K.disabled).map(K=>K.ref.current);zL.includes(P.key)&&Ae.reverse(),ZL(Ae)}),onBlur:G(t.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(A.current),D.current="")}),onPointerMove:G(t.onPointerMove,di(P=>{let se=P.target,ie=_.current!==P.clientX;if(P.currentTarget.contains(se)&&ie){let H=P.clientX>_.current?"right":"left";O.current=H,_.current=P.clientX}}))})})})})})})},"MenuContentImpl")),qL=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t;return(0,ge.jsx)(le.div,{role:"group",...o,ref:a})},"MenuGroup")),MD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t;return(0,ge.jsx)(le.div,{...o,ref:a})},"MenuLabel")),Vh="MenuItem",FL="menu.itemSelect",$h=ae.forwardRef(Me(function(t,a){let{disabled:r=!1,onSelect:o,...n}=t,s=ae.useRef(null),i=Kl(Vh,t.__scopeMenu),l=Wh(Vh,t.__scopeMenu),u=he(a,s),d=ae.useRef(!1),c=Me(()=>{let f=s.current;if(!r&&f){let h=new CustomEvent(FL,{bubbles:!0,cancelable:!0});f.addEventListener(FL,v=>o?.(v),{once:!0}),Ml(f,h),h.defaultPrevented?d.current=!1:i.onClose()}},"handleSelect");return(0,ge.jsx)(WL,{...n,ref:u,disabled:r,onClick:G(t.onClick,c),onPointerDown:f=>{t.onPointerDown?.(f),d.current=!0},onPointerUp:G(t.onPointerUp,f=>{d.current||f.currentTarget?.click()}),onKeyDown:G(t.onKeyDown,f=>{r||f.target!==f.currentTarget||l.searchRef.current!==""&&f.key===" "||jh.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),WL=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,disabled:o=!1,textValue:n,...s}=t,i=Wh(Vh,r),l=BL(r),u=ae.useRef(null),d=he(a,u),[c,f]=ae.useState(!1),[h,v]=ae.useState("");return ae.useEffect(()=>{let x=u.current;x&&v((x.textContent??"").trim())},[s.children]),(0,ge.jsx)(Wl.ItemSlot,{scope:r,disabled:o,textValue:n??h,children:(0,ge.jsx)(Lc,{asChild:!0,...l,focusable:!o,children:(0,ge.jsx)(le.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:G(t.onPointerMove,di(x=>{o?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(t.onPointerLeave,di(x=>i.onItemLeave(x))),onFocus:G(t.onFocus,()=>f(!0)),onBlur:G(t.onBlur,()=>f(!1))})})})},"MenuItemImpl")),DD=ae.forwardRef(Me(function(t,a){let{checked:r=!1,onCheckedChange:o,...n}=t;return(0,ge.jsx)($L,{scope:t.__scopeMenu,checked:r,children:(0,ge.jsx)($h,{role:"menuitemcheckbox","aria-checked":Gl(r)?"mixed":r,...n,ref:a,"data-state":kc(r),onSelect:G(n.onSelect,()=>o?.(Gl(r)?!0:!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),_D="MenuRadioGroup",[AD,ED]=_n(_D,{value:void 0,onValueChange:Me(()=>{},"onValueChange")}),OD=ae.forwardRef(Me(function(t,a){let{value:r,onValueChange:o,...n}=t,s=ot(o);return(0,ge.jsx)(AD,{scope:t.__scopeMenu,value:r,onValueChange:s,children:(0,ge.jsx)(qL,{...n,ref:a})})},"MenuRadioGroup")),ND="MenuRadioItem",FD=ae.forwardRef(Me(function(t,a){let{value:r,...o}=t,n=ED(ND,t.__scopeMenu),s=r===n.value;return(0,ge.jsx)($L,{scope:t.__scopeMenu,checked:s,children:(0,ge.jsx)($h,{role:"menuitemradio","aria-checked":s,...o,ref:a,"data-state":kc(s),onSelect:G(o.onSelect,()=>n.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),GL="MenuItemIndicator",[$L,zD]=_n(GL,{checked:!1}),BD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,forceMount:o,...n}=t,s=zD(GL,r);return(0,ge.jsx)(Gt,{present:o||Gl(s.checked)||s.checked===!0,children:(0,ge.jsx)(le.span,{...n,ref:a,"data-state":kc(s.checked)})})},"MenuItemIndicator")),UD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t;return(0,ge.jsx)(le.div,{role:"separator","aria-orientation":"horizontal",...o,ref:a})},"MenuSeparator")),HD=ae.forwardRef(Me(function(t,a){let{__scopeMenu:r,...o}=t,n=$l(r);return(0,ge.jsx)(yc,{...n,...o,ref:a})},"MenuArrow")),KL="MenuSub",[jD,XL]=_n(KL),VD=Me(e=>{let{__scopeMenu:t,children:a,open:r=!1,onOpenChange:o}=e,n=Vo(KL,t),s=$l(t),[i,l]=ae.useState(null),[u,d]=ae.useState(null),c=ot(o);return ae.useEffect(()=>(n.open===!1&&c(!1),()=>c(!1)),[n.open,c]),(0,ge.jsx)(ql,{...s,children:(0,ge.jsx)(UL,{scope:t,open:r,onOpenChange:c,content:u,onContentChange:d,children:(0,ge.jsx)(jD,{scope:t,contentId:dt(),triggerId:dt(),trigger:i,onTriggerChange:l,children:a})})})},"MenuSub"),Ic="MenuSubTrigger",qD=ae.forwardRef(Me(function(t,a){let r=Vo(Ic,t.__scopeMenu),o=Kl(Ic,t.__scopeMenu),n=XL(Ic,t.__scopeMenu),s=Wh(Ic,t.__scopeMenu),i=ae.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:t.__scopeMenu},c=ae.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);ae.useEffect(()=>c,[c]),ae.useEffect(()=>{let h=l.current;return()=>{window.clearTimeout(h),u(null)}},[l,u]);let f=he(a,n.onTriggerChange);return(0,ge.jsx)(HL,{asChild:!0,...d,children:(0,ge.jsx)(WL,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?n.contentId:void 0,"data-state":Kh(r.open),...t,ref:f,onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:G(t.onPointerMove,di(h=>{s.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!r.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100))})),onPointerLeave:G(t.onPointerLeave,di(h=>{c();let v=r.content?.getBoundingClientRect();if(v){let x=r.content?.dataset.side,w=x==="right",p=w?-5:5,m=v[w?"left":"right"],g=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+p,y:h.clientY},{x:m,y:v.top},{x:g,y:v.top},{x:g,y:v.bottom},{x:m,y:v.bottom}],side:x}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:G(t.onKeyDown,h=>{t.disabled||h.target!==h.currentTarget||s.searchRef.current!==""&&h.key===" "||vD[o.dir].includes(h.key)&&(r.onOpenChange(!0),r.content?.focus(),h.preventDefault())})})})},"MenuSubTrigger")),WD="MenuSubContent",GD=ae.forwardRef(Me(function(t,a){let r=VL(Za,t.__scopeMenu),{forceMount:o=r.forceMount,align:n="start",...s}=t,i=Vo(Za,t.__scopeMenu),l=Kl(Za,t.__scopeMenu),u=XL(WD,t.__scopeMenu),d=ae.useRef(null),c=he(a,d);return(0,ge.jsx)(Wl.Provider,{scope:t.__scopeMenu,children:(0,ge.jsx)(Gt,{present:o||i.open,children:(0,ge.jsx)(Wl.Slot,{scope:t.__scopeMenu,children:(0,ge.jsx)(Gh,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:c,align:n,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{l.isUsingKeyboardRef.current&&d.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:G(t.onFocusOutside,f=>{f.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:G(t.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:G(t.onKeyDown,f=>{let h=f.currentTarget.contains(f.target),v=xD[l.dir].includes(f.key);h&&v&&(i.onOpenChange(!1),u.trigger?.focus(),f.preventDefault())})})})})})},"MenuSubContent"));function Kh(e){return e?"open":"closed"}Me(Kh,"getOpenState");function Gl(e){return e==="indeterminate"}Me(Gl,"isIndeterminate");function kc(e){return Gl(e)?"indeterminate":e?"checked":"unchecked"}Me(kc,"getCheckedState");function ZL(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}Me(ZL,"focusFirst");function QL(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Me(QL,"wrapArray");function YL(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=QL(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Me(YL,"getNextMatch");function JL(e,t){let{x:a,y:r}=e,o=!1;for(let n=0,s=t.length-1;n<t.length;s=n++){let i=t[n],l=t[s],u=i.x,d=i.y,c=l.x,f=l.y;d>r!=f>r&&a<(c-u)*(r-d)/(f-d)+u&&(o=!o)}return o}Me(JL,"isPointInPolygon");function eI(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return JL(a,t)}Me(eI,"isPointerInGraceArea");function di(e){return t=>t.pointerType==="mouse"?e(t):void 0}Me(di,"whenMouse");var tI=SD,aI=HL,rI=ID,oI=kD,nI=qL,sI=MD,iI=$h,lI=DD,uI=OD,dI=FD,cI=BD,fI=UD,pI=HD,mI=VD,hI=qD,gI=GD;var eo={};co(eo,{Arrow:()=>f_,CheckboxItem:()=>i_,Content:()=>r_,DropdownMenu:()=>xI,DropdownMenuArrow:()=>MI,DropdownMenuCheckboxItem:()=>bI,DropdownMenuContent:()=>CI,DropdownMenuGroup:()=>SI,DropdownMenuItem:()=>II,DropdownMenuItemIndicator:()=>PI,DropdownMenuLabel:()=>LI,DropdownMenuPortal:()=>wI,DropdownMenuRadioGroup:()=>kI,DropdownMenuRadioItem:()=>RI,DropdownMenuSeparator:()=>TI,DropdownMenuSub:()=>DI,DropdownMenuSubContent:()=>AI,DropdownMenuSubTrigger:()=>_I,DropdownMenuTrigger:()=>yI,Group:()=>o_,Item:()=>s_,ItemIndicator:()=>d_,Label:()=>n_,Portal:()=>a_,RadioGroup:()=>l_,RadioItem:()=>u_,Root:()=>e_,Separator:()=>c_,Sub:()=>p_,SubContent:()=>h_,SubTrigger:()=>m_,Trigger:()=>t_,createDropdownMenuScope:()=>ZD});var ft=N(te(),1);var ct=N(ke(),1),KD=Object.defineProperty,Nt=(e,t)=>KD(e,"name",{value:t,configurable:!0}),Xh="DropdownMenu",[XD,ZD]=at(Xh,[qh]),Ft=qh(),[QD,vI]=XD(Xh),xI=Nt(e=>{let{__scopeDropdownMenu:t,children:a,dir:r,open:o,defaultOpen:n,onOpenChange:s,modal:i=!0}=e,l=Ft(t),u=ft.useRef(null),[d,c]=Wt({prop:o,defaultProp:n??!1,onChange:s,caller:Xh});return(0,ct.jsx)(QD,{scope:t,triggerId:dt(),triggerRef:u,contentId:dt(),open:d,onOpenChange:c,onOpenToggle:ft.useCallback(()=>c(f=>!f),[c]),modal:i,children:(0,ct.jsx)(tI,{...l,open:d,onOpenChange:c,dir:r,modal:i,children:a})})},"DropdownMenu"),YD="DropdownMenuTrigger",yI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,disabled:o=!1,...n}=t,s=vI(YD,r),i=Ft(r),l=he(a,s.triggerRef);return(0,ct.jsx)(aI,{asChild:!0,...i,children:(0,ct.jsx)(le.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...n,ref:l,onPointerDown:G(t.onPointerDown,u=>{!o&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:G(t.onKeyDown,u=>{o||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),wI=Nt(e=>{let{__scopeDropdownMenu:t,...a}=e,r=Ft(t);return(0,ct.jsx)(rI,{...r,...a})},"DropdownMenuPortal"),JD="DropdownMenuContent",CI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=vI(JD,r),s=Ft(r),i=ft.useRef(!1);return(0,ct.jsx)(oI,{id:n.contentId,"aria-labelledby":n.triggerId,...s,...o,ref:a,onCloseAutoFocus:G(t.onCloseAutoFocus,l=>{i.current||n.triggerRef.current?.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:G(t.onInteractOutside,l=>{let u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,c=u.button===2||d;(!n.modal||c)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),SI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(nI,{...n,...o,ref:a})},"DropdownMenuGroup")),LI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(sI,{...n,...o,ref:a})},"DropdownMenuLabel")),II=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(iI,{...n,...o,ref:a})},"DropdownMenuItem")),bI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(lI,{...n,...o,ref:a})},"DropdownMenuCheckboxItem")),kI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(uI,{...n,...o,ref:a})},"DropdownMenuRadioGroup")),RI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(dI,{...n,...o,ref:a})},"DropdownMenuRadioItem")),PI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(cI,{...n,...o,ref:a})},"DropdownMenuItemIndicator")),TI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(fI,{...n,...o,ref:a})},"DropdownMenuSeparator")),MI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(pI,{...n,...o,ref:a})},"DropdownMenuArrow")),DI=Nt(e=>{let{__scopeDropdownMenu:t,children:a,open:r,onOpenChange:o,defaultOpen:n}=e,s=Ft(t),[i,l]=Wt({prop:r,defaultProp:n??!1,onChange:o,caller:"DropdownMenuSub"});return(0,ct.jsx)(mI,{...s,open:i,onOpenChange:l,children:a})},"DropdownMenuSub"),_I=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(hI,{...n,...o,ref:a})},"DropdownMenuSubTrigger")),AI=ft.forwardRef(Nt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Ft(r);return(0,ct.jsx)(gI,{...n,...o,ref:a,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),e_=xI,t_=yI,a_=wI,r_=CI,o_=SI,n_=LI,s_=II,i_=bI,l_=kI,u_=RI,d_=PI,c_=TI,f_=MI,p_=DI,m_=_I,h_=AI;var Rc={};co(Rc,{Label:()=>NI,Root:()=>x_});var EI=N(te(),1);var OI=N(ke(),1),g_=Object.defineProperty,v_=(e,t)=>g_(e,"name",{value:t,configurable:!0}),NI=EI.forwardRef(v_(function(t,a){return(0,OI.jsx)(le.label,{...t,ref:a,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),x_=NI;var Pc=N(te(),1),y_=Object.defineProperty,w_=(e,t)=>y_(e,"name",{value:t,configurable:!0});function Zh(e){let t=Pc.useRef({value:e,previous:e});return Pc.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}w_(Zh,"usePrevious");var C_=Object.defineProperty,S_=(e,t)=>C_(e,"name",{value:t,configurable:!0});function Tc(e,[t,a]){return Math.min(a,Math.max(t,e))}S_(Tc,"clamp");var Xt={};co(Xt,{Arrow:()=>uA,Content:()=>H_,Group:()=>Q_,Icon:()=>N_,Item:()=>tA,ItemIndicator:()=>oA,ItemText:()=>aA,Label:()=>J_,Portal:()=>U_,Root:()=>D_,ScrollDownButton:()=>sA,ScrollUpButton:()=>nA,Select:()=>D_,SelectArrow:()=>uA,SelectContent:()=>H_,SelectGroup:()=>Q_,SelectIcon:()=>N_,SelectItem:()=>tA,SelectItemIndicator:()=>oA,SelectItemText:()=>aA,SelectLabel:()=>J_,SelectPortal:()=>U_,SelectScrollDownButton:()=>sA,SelectScrollUpButton:()=>nA,SelectSeparator:()=>iA,SelectTrigger:()=>A_,SelectValue:()=>O_,SelectViewport:()=>$_,Separator:()=>iA,Trigger:()=>A_,Value:()=>O_,Viewport:()=>$_,createSelectScope:()=>R_,unstable_BubbleInput:()=>qI,unstable_Provider:()=>Jh,unstable_SelectBubbleInput:()=>qI,unstable_SelectProvider:()=>Jh});var V=N(te(),1),Yh=N(Gs(),1);var ne=N(ke(),1),L_=Object.defineProperty,Re=(e,t)=>L_(e,"name",{value:t,configurable:!0}),I_=[" ","Enter","ArrowUp","ArrowDown"],b_=[" ","Enter"],ci="Select",[Dc,_c,k_]=wn(ci),[En,R_]=at(ci,[k_,li]),Ac=li(),[P_,qo]=En(ci),[T_,M_]=En(ci);function Jh(e){let{__scopeSelect:t,children:a,open:r,defaultOpen:o,onOpenChange:n,value:s,defaultValue:i,onValueChange:l,dir:u,name:d,autoComplete:c,disabled:f,required:h,form:v,internal_do_not_use_render:x}=e,w=Ac(t),[p,m]=V.useState(null),[g,y]=V.useState(null),[C,I]=V.useState(!1),k=$r(u),[b,T]=Wt({prop:r,defaultProp:o??!1,onChange:n,caller:ci}),[A,D]=Wt({prop:s,defaultProp:i,onChange:l,caller:ci}),E=V.useRef(null),z=V.useRef(A);V.useEffect(()=>{let ie=v?p?.ownerDocument.getElementById(v):p?.form;if(ie instanceof HTMLFormElement){let H=Re(()=>D(z.current),"reset");return ie.addEventListener("reset",H),()=>ie.removeEventListener("reset",H)}},[v,p,D]);let O=p?!!v||!!p.closest("form"):!0,[_,B]=V.useState(new Set),j=dt(),W=Array.from(_).map(ie=>ie.props.value).join(";"),ee=V.useCallback(ie=>{B(H=>new Set(H).add(ie))},[]),P=V.useCallback(ie=>{B(H=>{let ve=new Set(H);return ve.delete(ie),ve})},[]),se={required:h,trigger:p,onTriggerChange:m,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:I,contentId:j,value:A,onValueChange:D,open:b,onOpenChange:T,dir:k,triggerPointerDownPosRef:E,disabled:f,name:d,autoComplete:c,form:v,nativeOptions:_,nativeSelectKey:W,isFormControl:O};return(0,ne.jsx)(ql,{...w,children:(0,ne.jsx)(P_,{scope:t,...se,children:(0,ne.jsx)(Dc.Provider,{scope:t,children:(0,ne.jsx)(T_,{scope:t,onNativeOptionAdd:ee,onNativeOptionRemove:P,children:WI(x)?x(se):a})})})})}Re(Jh,"SelectProvider");var D_=Re(e=>{let{__scopeSelect:t,children:a,...r}=e;return(0,ne.jsx)(Jh,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:o})=>(0,ne.jsxs)(ne.Fragment,{children:[a,o?(0,ne.jsx)(qI,{__scopeSelect:t}):null]})})},"Select"),__="SelectTrigger",A_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,disabled:o=!1,...n}=t,s=Ac(r),i=qo(__,r),l=i.disabled||o,u=he(a,i.onTriggerChange),d=_c(r),c=V.useRef("touch"),[f,h,v]=tg(w=>{let p=d().filter(y=>!y.disabled),m=p.find(y=>y.value===i.value),g=ag(p,w,m);g!==void 0&&i.onValueChange(g.value)}),x=Re(w=>{l||(i.onOpenChange(!0),v()),w&&(i.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return(0,ne.jsx)(vc,{asChild:!0,...s,children:(0,ne.jsx)(le.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Xl(i.value)?"":void 0,...n,ref:u,onClick:G(n.onClick,w=>{w.currentTarget.focus(),c.current!=="mouse"&&x(w)}),onPointerDown:G(n.onPointerDown,w=>{c.current=w.pointerType;let p=w.target;p.hasPointerCapture(w.pointerId)&&p.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:G(n.onKeyDown,w=>{let p=f.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(p&&w.key===" ")&&I_.includes(w.key)&&(x(),w.preventDefault())})})})},"SelectTrigger")),E_="SelectValue",O_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,className:o,style:n,children:s,placeholder:i="",...l}=t,u=qo(E_,r),{onValueNodeHasChildrenChange:d}=u,c=s!==void 0,f=he(a,u.onValueNodeChange);Ne(()=>{d(c)},[d,c]);let h=Xl(u.value);return(0,ne.jsx)(le.span,{...l,asChild:h?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:(0,ne.jsx)(V.Fragment,{children:h?i:s},h?"placeholder":"value")})},"SelectValue")),N_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,children:o,...n}=t;return(0,ne.jsx)(le.span,{"aria-hidden":!0,...n,ref:a,children:o||"\u25BC"})},"SelectIcon")),F_="SelectPortal",[z_,B_]=En(F_,{forceMount:void 0}),U_=Re(e=>{let{__scopeSelect:t,forceMount:a,...r}=e;return(0,ne.jsx)(z_,{scope:e.__scopeSelect,forceMount:a,children:(0,ne.jsx)(Js,{asChild:!0,...r})})},"SelectPortal"),An="SelectContent",H_=V.forwardRef(Re(function(t,a){let r=B_(An,t.__scopeSelect),{forceMount:o=r.forceMount,...n}=t,s=qo(An,t.__scopeSelect),[i,l]=V.useState();return Ne(()=>{l(new DocumentFragment)},[]),(0,ne.jsx)(Gt,{present:o||s.open,children:({present:u})=>u?(0,ne.jsx)(q_,{...n,ref:a}):(0,ne.jsx)(j_,{...n,fragment:i})})},"SelectContent")),j_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,children:o,fragment:n}=t;return n?Yh.createPortal((0,ne.jsx)(HI,{scope:r,children:(0,ne.jsx)(Dc.Slot,{scope:r,children:(0,ne.jsx)("div",{ref:a,children:o})})}),n):null},"SelectContentFragment")),Qa=10,[HI,Wo]=En(An),V_=bt("SelectContent.RemoveScroll"),q_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r}=t,{position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:u,align:d,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:p,...m}=t,g=qo(An,r),[y,C]=V.useState(null),[I,k]=V.useState(null),b=he(a,C),[T,A]=V.useState(null),[D,E]=V.useState(null),z=_c(r),[O,_]=V.useState(!1),B=V.useRef(!1);V.useEffect(()=>{if(y)return ni(y)},[y]),Bo();let j=V.useCallback(K=>{let[oe,...Je]=z().map(M=>M.ref.current),[De]=Je.slice(-1),Oe=document.activeElement;for(let M of K)if(M===Oe||(M?.scrollIntoView({block:"nearest"}),M===oe&&I&&(I.scrollTop=0),M===De&&I&&(I.scrollTop=I.scrollHeight),M?.focus(),document.activeElement!==Oe))return},[z,I]),W=V.useCallback(()=>j([T,y]),[j,T,y]);V.useEffect(()=>{O&&W()},[O,W]);let{onOpenChange:ee,triggerPointerDownPosRef:P}=g;V.useEffect(()=>{if(y){let K={x:0,y:0},oe=Re(De=>{K={x:Math.abs(Math.round(De.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(De.pageY)-(P.current?.y??0))}},"handlePointerMove"),Je=Re(De=>{K.x<=10&&K.y<=10?De.preventDefault():De.composedPath().includes(y)||ee(!1),document.removeEventListener("pointermove",oe),P.current=null},"handlePointerUp");return P.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",Je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",Je,{capture:!0})}}},[y,ee,P]),V.useEffect(()=>{let K=Re(()=>ee(!1),"close");return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[ee]);let[se,ie]=tg(K=>{let oe=z().filter(Oe=>!Oe.disabled),Je=oe.find(Oe=>Oe.ref.current===document.activeElement),De=ag(oe,K,Je);De&&setTimeout(()=>De.ref.current?.focus())}),H=V.useCallback((K,oe,Je)=>{let De=!B.current&&!Je;(g.value!==void 0&&g.value===oe||De)&&(A(K),De&&(B.current=!0))},[g.value]),ve=V.useCallback(()=>y?.focus(),[y]),Se=V.useCallback((K,oe,Je)=>{let De=!B.current&&!Je;(g.value!==void 0&&g.value===oe||De)&&E(K)},[g.value]),fe=o==="popper"?FI:W_,Ae=fe===FI?{side:l,sideOffset:u,align:d,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:p}:{};return(0,ne.jsx)(HI,{scope:r,content:y,viewport:I,onViewportChange:k,itemRefCallback:H,selectedItem:T,onItemLeave:ve,itemTextRefCallback:Se,focusSelectedItem:W,selectedItemText:D,position:o,isPositioned:O,searchRef:se,children:(0,ne.jsx)(In,{as:V_,allowPinchZoom:!0,children:(0,ne.jsx)(Ys,{asChild:!0,trapped:g.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:G(n,K=>{g.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:(0,ne.jsx)(Qs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:(0,ne.jsx)(fe,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:K=>K.preventDefault(),...m,...Ae,onPlaced:()=>_(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:G(m.onKeyDown,K=>{let oe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!oe&&K.key.length===1&&ie(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let De=z().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){let Oe=K.target,M=De.indexOf(Oe);De=De.slice(M+1)}setTimeout(()=>j(De)),K.preventDefault()}})})})})})})},"SelectContentImpl")),W_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,onPlaced:o,...n}=t,s=qo(An,r),i=Wo(An,r),[l,u]=V.useState(null),[d,c]=V.useState(null),f=he(a,c),h=_c(r),v=V.useRef(!1),x=V.useRef(!0),{viewport:w,selectedItem:p,selectedItemText:m,focusSelectedItem:g}=i,y=V.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&w&&p&&m){let b=s.trigger.getBoundingClientRect(),T=d.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),D=m.getBoundingClientRect();if(s.dir!=="rtl"){let Oe=D.left-T.left,M=A.left-Oe,ye=b.left-M,Tt=b.width+ye,Qc=Math.max(Tt,T.width),Yc=window.innerWidth-Qa,Jc=Tc(M,[Qa,Math.max(Qa,Yc-Qc)]);l.style.minWidth=Tt+"px",l.style.left=Jc+"px"}else{let Oe=T.right-D.right,M=window.innerWidth-A.right-Oe,ye=window.innerWidth-b.right-M,Tt=b.width+ye,Qc=Math.max(Tt,T.width),Yc=window.innerWidth-Qa,Jc=Tc(M,[Qa,Math.max(Qa,Yc-Qc)]);l.style.minWidth=Tt+"px",l.style.right=Jc+"px"}let E=h(),z=window.innerHeight-Qa*2,O=w.scrollHeight,_=window.getComputedStyle(d),B=parseInt(_.borderTopWidth,10),j=parseInt(_.paddingTop,10),W=parseInt(_.borderBottomWidth,10),ee=parseInt(_.paddingBottom,10),P=B+j+O+ee+W,se=Math.min(p.offsetHeight*5,P),ie=window.getComputedStyle(w),H=parseInt(ie.paddingTop,10),ve=parseInt(ie.paddingBottom,10),Se=b.top+b.height/2-Qa,fe=z-Se,Ae=p.offsetHeight/2,K=p.offsetTop+Ae,oe=B+j+K,Je=P-oe;if(oe<=Se){let Oe=E.length>0&&p===E[E.length-1].ref.current;l.style.bottom="0px";let M=d.clientHeight-w.offsetTop-w.offsetHeight,ye=Math.max(fe,Ae+(Oe?ve:0)+M+W),Tt=oe+ye;l.style.height=Tt+"px"}else{let Oe=E.length>0&&p===E[0].ref.current;l.style.top="0px";let ye=Math.max(Se,B+w.offsetTop+(Oe?H:0)+Ae)+Je;l.style.height=ye+"px",w.scrollTop=oe-Se+w.offsetTop}l.style.margin=`${Qa}px 0`,l.style.minHeight=se+"px",l.style.maxHeight=z+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[h,s.trigger,s.valueNode,l,d,w,p,m,s.dir,o]);Ne(()=>y(),[y]);let[C,I]=V.useState();Ne(()=>{d&&I(window.getComputedStyle(d).zIndex)},[d]);let k=V.useCallback(b=>{b&&x.current===!0&&(y(),g?.(),x.current=!1)},[y,g]);return(0,ne.jsx)(G_,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:(0,ne.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,ne.jsx)(le.div,{...n,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),FI=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,align:o="start",collisionPadding:n=Qa,...s}=t,i=Ac(r);return(0,ne.jsx)(xc,{...i,...s,ref:a,align:o,collisionPadding:n,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[G_,eg]=En(An,{}),zI="SelectViewport",$_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,nonce:o,...n}=t,s=Wo(zI,r),i=eg(zI,r),l=he(a,s.onViewportChange),u=V.useRef(0);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ne.jsx)(Dc.Slot,{scope:r,children:(0,ne.jsx)(le.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:G(n.onScroll,d=>{let c=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h?.current&&f){let v=Math.abs(u.current-c.scrollTop);if(v>0){let x=window.innerHeight-Qa*2,w=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),m=Math.max(w,p);if(m<x){let g=m+v,y=Math.min(x,g),C=g-y;f.style.height=y+"px",f.style.bottom==="0px"&&(c.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}u.current=c.scrollTop})})})]})},"SelectViewport")),K_="SelectGroup",[X_,Z_]=En(K_),Q_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t,n=dt();return(0,ne.jsx)(X_,{scope:r,id:n,children:(0,ne.jsx)(le.div,{role:"group","aria-labelledby":n,...o,ref:a})})},"SelectGroup")),Y_="SelectLabel",J_=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t,n=Z_(Y_,r);return(0,ne.jsx)(le.div,{id:n.id,...o,ref:a})},"SelectLabel")),Qh="SelectItem",[eA,jI]=En(Qh),tA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,value:o,disabled:n=!1,textValue:s,...i}=t,l=qo(Qh,r),u=Wo(Qh,r),d=l.value===o,[c,f]=V.useState(s??""),[h,v]=V.useState(!1),x=ot(y=>u.itemRefCallback?.(y,o,n)),w=he(a,x),p=dt(),m=V.useRef("touch"),g=Re(()=>{n||(l.onValueChange(o),l.onOpenChange(!1))},"handleSelect");return(0,ne.jsx)(eA,{scope:r,value:o,disabled:n,textId:p,isSelected:d,onItemTextChange:V.useCallback(y=>{f(C=>C||(y?.textContent??"").trim())},[]),children:(0,ne.jsx)(Dc.ItemSlot,{scope:r,value:o,disabled:n,textValue:c,children:(0,ne.jsx)(le.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:w,onFocus:G(i.onFocus,()=>v(!0)),onBlur:G(i.onBlur,()=>v(!1)),onClick:G(i.onClick,()=>{m.current!=="mouse"&&g()}),onPointerUp:G(i.onPointerUp,()=>{m.current==="mouse"&&g()}),onPointerDown:G(i.onPointerDown,y=>{m.current=y.pointerType}),onPointerMove:G(i.onPointerMove,y=>{m.current=y.pointerType,n?u.onItemLeave?.():m.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:G(i.onKeyDown,y=>{n||y.target!==y.currentTarget||u.searchRef?.current!==""&&y.key===" "||(b_.includes(y.key)&&g(),y.key===" "&&y.preventDefault())})})})})},"SelectItem")),Mc="SelectItemText",aA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,className:o,style:n,...s}=t,i=qo(Mc,r),l=Wo(Mc,r),u=jI(Mc,r),d=M_(Mc,r),[c,f]=V.useState(null),h=ot(g=>l.itemTextRefCallback?.(g,u.value,u.disabled)),v=he(a,f,u.onItemTextChange,h),x=c?.textContent,w=V.useMemo(()=>(0,ne.jsx)("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:p,onNativeOptionRemove:m}=d;return Ne(()=>(p(w),()=>m(w)),[p,m,w]),(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(le.span,{id:u.textId,...s,ref:v}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!Xl(i.value)?Yh.createPortal(s.children,i.valueNode):null]})},"SelectItemText")),rA="SelectItemIndicator",oA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t;return jI(rA,r).isSelected?(0,ne.jsx)(le.span,{"aria-hidden":!0,...o,ref:a}):null},"SelectItemIndicator")),BI="SelectScrollUpButton",nA=V.forwardRef(Re(function(t,a){let r=Wo(BI,t.__scopeSelect),o=eg(BI,t.__scopeSelect),[n,s]=V.useState(!1),i=he(a,o.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let u=function(){let c=d.scrollTop>0;s(c)};var l=u;Re(u,"handleScroll");let d=r.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(VI,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),UI="SelectScrollDownButton",sA=V.forwardRef(Re(function(t,a){let r=Wo(UI,t.__scopeSelect),o=eg(UI,t.__scopeSelect),[n,s]=V.useState(!1),i=he(a,o.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let u=function(){let c=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<c;s(f)};var l=u;Re(u,"handleScroll");let d=r.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(VI,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),VI=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,onAutoScroll:o,...n}=t,s=Wo("SelectScrollButton",r),i=V.useRef(null),l=_c(r),u=V.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return V.useEffect(()=>()=>u(),[u]),Ne(()=>{l().find(c=>c.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,ne.jsx)(le.div,{"aria-hidden":!0,...n,ref:a,style:{flexShrink:0,...n.style},onPointerDown:G(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:G(n.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:G(n.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),iA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t;return(0,ne.jsx)(le.div,{"aria-hidden":!0,...o,ref:a})},"SelectSeparator")),lA="SelectArrow",uA=V.forwardRef(Re(function(t,a){let{__scopeSelect:r,...o}=t,n=Ac(r);return Wo(lA,r).position==="popper"?(0,ne.jsx)(yc,{...n,...o,ref:a}):null},"SelectArrow")),dA="SelectBubbleInput",qI=V.forwardRef(Re(function({__scopeSelect:t,...a},r){let o=qo(dA,t),{value:n,onValueChange:s,required:i,disabled:l,name:u,autoComplete:d,form:c}=o,{nativeOptions:f,nativeSelectKey:h}=o,v=V.useRef(null),x=he(r,v),w=n??"",p=Zh(w),m=Array.from(f).some(g=>(g.props.value??"")==="");return V.useEffect(()=>{let g=v.current;if(!g)return;let y=window.HTMLSelectElement.prototype,I=Object.getOwnPropertyDescriptor(y,"value").set;if(p!==w&&I){let k=new Event("change",{bubbles:!0});I.call(g,w),g.dispatchEvent(k)}},[p,w]),(0,ne.jsxs)(le.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:u,autoComplete:d,disabled:l,form:c,onChange:g=>s(g.target.value),...a,style:{...cC,...a.style},ref:x,defaultValue:w,children:[Xl(n)&&!m?(0,ne.jsx)("option",{value:""}):null,Array.from(f)]},h)},"SelectBubbleInput"));function WI(e){return typeof e=="function"}Re(WI,"isFunction");function Xl(e){return e===""||e===void 0}Re(Xl,"shouldShowPlaceholder");function tg(e){let t=ot(e),a=V.useRef(""),r=V.useRef(0),o=V.useCallback(s=>{let i=a.current+s;t(i),Re((function l(u){a.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(i)},[t]),n=V.useCallback(()=>{a.current="",window.clearTimeout(r.current)},[]);return V.useEffect(()=>()=>window.clearTimeout(r.current),[]),[a,o,n]}Re(tg,"useTypeaheadSearch");function ag(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=GI(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Re(ag,"findNextItem");function GI(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Re(GI,"wrapArray");var On={};co(On,{Content:()=>CA,List:()=>yA,Root:()=>xA,Tabs:()=>KI,TabsContent:()=>QI,TabsList:()=>XI,TabsTrigger:()=>ZI,Trigger:()=>wA,createTabsScope:()=>pA});var ao=N(te(),1);var to=N(ke(),1),cA=Object.defineProperty,fi=(e,t)=>cA(e,"name",{value:t,configurable:!0}),rg="Tabs",[fA,pA]=at(rg,[ui]),$I=ui(),[mA,og]=fA(rg),KI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,value:o,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:u="automatic",...d}=t,c=$r(l),[f,h]=Wt({prop:o,onChange:n,defaultProp:s??"",caller:rg});return(0,to.jsx)(mA,{scope:r,baseId:dt(),value:f,onValueChange:h,orientation:i,dir:c,activationMode:u,children:(0,to.jsx)(le.div,{dir:c,"data-orientation":i,...d,ref:a})})},"Tabs")),hA="TabsList",XI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,loop:o=!0,...n}=t,s=og(hA,r),i=$I(r);return(0,to.jsx)(Sc,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:(0,to.jsx)(le.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:a})})},"TabsList")),gA="TabsTrigger",ZI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,value:o,disabled:n=!1,...s}=t,i=og(gA,r),l=$I(r),u=ng(i.baseId,o),d=sg(i.baseId,o),c=o===i.value;return(0,to.jsx)(Lc,{asChild:!0,...l,focusable:!n,active:c,children:(0,to.jsx)(le.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...s,ref:a,onMouseDown:G(t.onMouseDown,f=>{!n&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:G(t.onKeyDown,f=>{n||f.target!==f.currentTarget||[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:G(t.onFocus,()=>{let f=i.activationMode!=="manual";!c&&!n&&f&&i.onValueChange(o)})})})},"TabsTrigger")),vA="TabsContent",QI=ao.forwardRef(fi(function(t,a){let{__scopeTabs:r,value:o,forceMount:n,children:s,...i}=t,l=og(vA,r),u=ng(l.baseId,o),d=sg(l.baseId,o),c=o===l.value,f=ao.useRef(c);return ao.useEffect(()=>{let h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),(0,to.jsx)(Gt,{present:n||c,children:({present:h})=>(0,to.jsx)(le.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:d,tabIndex:0,...i,ref:a,style:{...t.style,animationDuration:f.current?"0s":void 0},children:h&&s})})},"TabsContent"));function ng(e,t){return`${e}-trigger-${t}`}fi(ng,"makeTriggerId");function sg(e,t){return`${e}-content-${t}`}fi(sg,"makeContentId");var xA=KI,yA=XI,wA=ZI,CA=QI;var vr=N(te(),1);var YI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,JI=vu,Go=(e,t)=>a=>{var r;if(t?.variants==null)return JI(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let d=a?.[u],c=n?.[u];if(d===null)return null;let f=YI(d)||YI(c);return o[u][f]}),i=a&&Object.entries(a).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...h}=d;return Object.entries(h).every(v=>{let[x,w]=v;return Array.isArray(w)?w.includes({...n,...i}[x]):{...n,...i}[x]===w})?[...u,c,f]:u},[]);return JI(e,s,l,a?.class,a?.className)};var vi=N(ke(),1),Ie=N(te(),1);function SA(e,t){let a=getComputedStyle(e),r=parseFloat(a.fontSize);return t*r}function LA(e,t){let a=getComputedStyle(e.ownerDocument.documentElement),r=parseFloat(a.fontSize);return t*r}function IA(e){return e/100*window.innerHeight}function bA(e){return e/100*window.innerWidth}function kA(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Zl({groupSize:e,panelElement:t,styleProp:a}){let r,[o,n]=kA(a);switch(n){case"%":{r=o/100*e;break}case"px":{r=o;break}case"rem":{r=LA(t,o);break}case"em":{r=SA(t,o);break}case"vh":{r=IA(o);break}case"vw":{r=bA(o);break}}return r}function Zt(e){return parseFloat(e.toFixed(3))}function xi({group:e}){let{orientation:t,panels:a}=e;return a.reduce((r,o)=>(r+=t==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,r),0)}function lg(e){let{panels:t}=e,a=xi({group:e});return a===0?t.map(r=>({groupResizeBehavior:r.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:r.panelConstraints.disabled,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{let{element:o,panelConstraints:n}=r,s=0;if(n.collapsedSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.collapsedSize});s=Zt(d/a*100)}let i;if(n.defaultSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.defaultSize});i=Zt(d/a*100)}let l=0;if(n.minSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.minSize});l=Zt(d/a*100)}let u=100;if(n.maxSize!==void 0){let d=Zl({groupSize:a,panelElement:o,styleProp:n.maxSize});u=Zt(d/a*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:s,collapsible:n.collapsible===!0,defaultSize:i,disabled:n.disabled,minSize:l,maxSize:u,panelId:r.id}})}function Ue(e,t="Assertion error"){if(!e)throw Error(t)}function ug(e,t){return Array.from(t).sort(e==="horizontal"?RA:PA)}function RA(e,t){let a=e.element.offsetLeft-t.element.offsetLeft;return a!==0?a:e.element.offsetWidth-t.element.offsetWidth}function PA(e,t){let a=e.element.offsetTop-t.element.offsetTop;return a!==0?a:e.element.offsetHeight-t.element.offsetHeight}function vb(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function xb(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function TA({orientation:e,rects:t,targetRect:a}){let r={x:a.x+a.width/2,y:a.y+a.height/2},o,n=Number.MAX_VALUE;for(let s of t){let{x:i,y:l}=xb(r,s),u=e==="horizontal"?i:l;u<n&&(n=u,o=s)}return Ue(o,"No rect found"),o}var Ec;function MA(){return Ec===void 0&&(typeof matchMedia=="function"?Ec=!!matchMedia("(pointer:coarse)").matches:Ec=!1),Ec}function yb(e){let{element:t,orientation:a,panels:r,separators:o}=e,n=ug(a,Array.from(t.children).filter(vb).map(v=>({element:v}))).map(({element:v})=>v),s=[],i=!1,l=!1,u=-1,d=-1,c=0,f,h=[];{let v=-1;for(let x of n)x.hasAttribute("data-panel")&&(v++,x.hasAttribute("data-disabled")||(c++,u===-1&&(u=v),d=v))}if(c>1){let v=-1;for(let x of n)if(x.hasAttribute("data-panel")){v++;let w=r.find(p=>p.element===x);if(w){if(f){let p=f.element.getBoundingClientRect(),m=x.getBoundingClientRect(),g;if(l){let y=a==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),C=a==="horizontal"?new DOMRect(m.left,m.top,0,m.height):new DOMRect(m.left,m.top,m.width,0);switch(h.length){case 0:{g=[y,C];break}case 1:{let I=h[0],k=TA({orientation:a,rects:[p,m],targetRect:I.element.getBoundingClientRect()});g=[I,k===p?C:y];break}default:{g=h;break}}}else h.length?g=h:g=[a==="horizontal"?new DOMRect(p.right,m.top,m.left-p.right,m.height):new DOMRect(m.left,p.bottom,m.width,m.top-p.bottom)];for(let y of g){let C="width"in y?y:y.element.getBoundingClientRect(),I=MA()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(C.width<I){let b=I-C.width;C=new DOMRect(C.x-b/2,C.y,C.width+b,C.height)}if(C.height<I){let b=I-C.height;C=new DOMRect(C.x,C.y-b/2,C.width,C.height+b)}let k=v<=u||v>d;!i&&!k&&s.push({group:e,groupSize:xi({group:e}),panels:[f,w],separator:"width"in y?void 0:y,rect:C}),i=!1}}l=!1,f=w,h=[]}}else if(x.hasAttribute("data-separator")){x.ariaDisabled!==null&&(i=!0);let w=o.find(p=>p.element===x);w?h.push(w):(f=void 0,h=[])}else l=!0}return s}var Fc=class{#e={};addListener(t,a){let r=this.#e[t];return r===void 0?this.#e[t]=[a]:r.includes(a)||r.push(a),()=>{this.removeListener(t,a)}}emit(t,a){let r=this.#e[t];if(r!==void 0)if(r.length===1)r[0].call(null,a);else{let o=!1,n=null,s=Array.from(r);for(let i=0;i<s.length;i++){let l=s[i];try{l.call(null,a)}catch(u){n===null&&(o=!0,n=u)}}if(o)throw n}}removeAllListeners(){this.#e={}}removeListener(t,a){let r=this.#e[t];if(r!==void 0){let o=r.indexOf(a);o>=0&&r.splice(o,1)}}},hi={cursorFlags:0,state:"inactive"},dg=new Fc;function Fn(){return hi}function DA(e){return dg.addListener("change",e)}function _A(e){let t=hi,a={...hi};a.cursorFlags=e,hi=a,dg.emit("change",{prev:t,next:a})}function gi(e){let t=hi;hi=e,dg.emit("change",{prev:t,next:e})}var AA=e=>e,ig=()=>{},wb=1,Cb=2,Sb=4,Lb=8,eb=3,tb=12,Oc;function ab(){return Oc===void 0&&(Oc=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Oc=!0)),Oc}function EA({cursorFlags:e,groups:t,state:a}){let r=0,o=0;switch(a){case"active":case"hover":t.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{r++;break}case"vertical":{o++;break}}})}if(!(r===0&&o===0)){switch(a){case"active":{if(e&&ab()){let n=(e&wb)!==0,s=(e&Cb)!==0,i=(e&Sb)!==0,l=(e&Lb)!==0;if(n)return i?"se-resize":l?"ne-resize":"e-resize";if(s)return i?"sw-resize":l?"nw-resize":"w-resize";if(i)return"s-resize";if(l)return"n-resize"}break}}return ab()?r>0&&o>0?"move":r>0?"ew-resize":"ns-resize":r>0&&o>0?"grab":r>0?"col-resize":"row-resize"}}var rb=new WeakMap;function cg(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:a}=rb.get(e)??{};a===void 0&&(a=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]));let r=Fn();switch(r.state){case"active":case"hover":{let o=EA({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(s=>s.group),state:r.state}),n=`*, *:hover {cursor: ${o} !important; }`;if(t===n)return;t=n,o?a.cssRules.length===0?a.insertRule(n):a.replaceSync(n):a.cssRules.length===1&&a.deleteRule(0);break}case"inactive":{t=void 0,a.cssRules.length===1&&a.deleteRule(0);break}}rb.set(e,{prevStyle:t,styleSheet:a})}var gr=new Map,Ib=new Fc;function OA(e){gr=new Map(gr),gr.delete(e)}function ob(e,t){for(let[a]of gr)if(a.id===e)return a}function $o(e,t){for(let[a,r]of gr)if(a.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Un(){return gr}function fg(e,t){return Ib.addListener("groupChange",a=>{a.group.id===e&&t(a)})}function ro(e,t,a){let r=gr.get(e);gr=new Map(gr),gr.set(e,t),Ib.emit("groupChange",{group:e,isUserInteraction:a?.isUserInteraction===!0,prev:r,next:t})}function bb(e){let t=Fn(),a=!1;return t.state==="active"&&(gi({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(cg(e),a=!0,t.hitRegions.forEach(r=>{let o=$o(r.group.id,!0);ro(r.group,o,{isUserInteraction:!0})}))),a}function nb(e){e.defaultPrevented||bb(e.currentTarget)}function NA(e,t,a){let r,o={x:1/0,y:1/0};for(let n of t){let s=xb(a,n.rect);switch(e){case"horizontal":{s.x<=o.x&&(r=n,o=s);break}case"vertical":{s.y<=o.y&&(r=n,o=s);break}}}return r?{distance:o,hitRegion:r}:void 0}function FA(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function zA(e,t){if(e===t)throw new Error("Cannot compare node with itself");let a={a:lb(e),b:lb(t)},r;for(;a.a.at(-1)===a.b.at(-1);)r=a.a.pop(),a.b.pop();Ue(r,"Stacking order can only be calculated for elements with a common ancestor");let o={a:ib(sb(a.a)),b:ib(sb(a.b))};if(o.a===o.b){let n=r.childNodes,s={a:a.a.at(-1),b:a.b.at(-1)},i=n.length;for(;i--;){let l=n[i];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(o.a-o.b)}var BA=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function UA(e){let t=getComputedStyle(kb(e)??e).display;return t==="flex"||t==="inline-flex"}function HA(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||UA(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||BA.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function sb(e){let t=e.length;for(;t--;){let a=e[t];if(Ue(a,"Missing node"),HA(a))return a}return null}function ib(e){return e&&Number(getComputedStyle(e).zIndex)||0}function lb(e){let t=[];for(;e;)t.push(e),e=kb(e);return t}function kb(e){let{parentNode:t}=e;return FA(t)?t.host:t}function jA(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function VA({groupElement:e,hitRegion:t,pointerEventTarget:a}){if(!vb(a)||a.contains(e)||e.contains(a))return!0;if(zA(a,e)>0){let r=a;for(;r;){if(r.contains(e))return!0;if(jA(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function pg(e,t){let a=[];return t.forEach((r,o)=>{if(o.disabled)return;let n=yb(o),s=NA(o.orientation,n,{x:e.clientX,y:e.clientY});s&&s.distance.x<=0&&s.distance.y<=0&&VA({groupElement:o.element,hitRegion:s.hitRegion.rect,pointerEventTarget:e.target})&&a.push(s.hitRegion)}),a}function qA(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return!1;return!0}function zt(e,t,a=0){return Math.abs(Zt(e)-Zt(t))<=a}function hr(e,t){return zt(e,t)?0:e>t?1:-1}function mi({overrideDisabledPanels:e,panelConstraints:t,prevSize:a,size:r}){let{collapsedSize:o=0,collapsible:n,disabled:s,maxSize:i=100,minSize:l=0}=t;if(s&&!e)return a;if(hr(r,l)<0)if(n){let u=(o+l)/2;hr(r,u)<0?r=o:r=l}else r=l;return r=Math.min(i,r),r=Zt(r),r}function Yl({delta:e,initialLayout:t,panelConstraints:a,pivotIndices:r,prevLayout:o,trigger:n}){if(zt(e,0))return t;let s=n==="imperative-api",i=Object.values(t),l=Object.values(o),u=[...i],[d,c]=r;Ue(d!=null,"Invalid first pivot index"),Ue(c!=null,"Invalid second pivot index");let f=0;switch(n){case"keyboard":{{let x=e<0?c:d,w=a[x];Ue(w,`Panel constraints not found for index ${x}`);let{collapsedSize:p=0,collapsible:m,minSize:g=0}=w;if(m){let y=i[x];if(Ue(y!=null,`Previous layout not found for panel index ${x}`),zt(y,p)){let C=g-y;hr(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{let x=e<0?d:c,w=a[x];Ue(w,`No panel constraints found for index ${x}`);let{collapsedSize:p=0,collapsible:m,minSize:g=0}=w;if(m){let y=i[x];if(Ue(y!=null,`Previous layout not found for panel index ${x}`),zt(y,g)){let C=y-p;hr(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}break}default:{let x=e<0?c:d,w=a[x];Ue(w,`Panel constraints not found for index ${x}`);let p=i[x],{collapsible:m,collapsedSize:g,minSize:y}=w;if(m&&hr(p,y)<0)if(e>0){let C=y-g,I=C/2,k=p+e;hr(k,y)<0&&(e=hr(e,I)<=0?0:C)}else{let C=y-g,I=100-C/2,k=p-e;hr(k,y)<0&&(e=hr(100+e,I)>0?0:-C)}break}}{let x=e<0?1:-1,w=e<0?c:d,p=0;for(;;){let g=i[w];Ue(g!=null,`Previous layout not found for panel index ${w}`);let y=mi({overrideDisabledPanels:s,panelConstraints:a[w],prevSize:g,size:100})-g;if(p+=y,w+=x,w<0||w>=a.length)break}let m=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-m:m}{let x=e<0?d:c;for(;x>=0&&x<a.length;){let w=Math.abs(e)-Math.abs(f),p=i[x];Ue(p!=null,`Previous layout not found for panel index ${x}`);let m=p-w,g=mi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:p,size:m});if(!zt(p,g)&&(f+=p-g,u[x]=g,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?x--:x++}}if(qA(l,u))return o;{let x=e<0?c:d,w=i[x];Ue(w!=null,`Previous layout not found for panel index ${x}`);let p=w+f,m=mi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:w,size:p});if(u[x]=m,!zt(m,p)){let g=p-m,y=e<0?c:d;for(;y>=0&&y<a.length;){let C=u[y];Ue(C!=null,`Previous layout not found for panel index ${y}`);let I=C+g,k=mi({overrideDisabledPanels:s,panelConstraints:a[y],prevSize:C,size:I});if(zt(C,k)||(g-=k-C,u[y]=k),zt(g,0))break;e>0?y--:y++}}}let h=Object.values(u).reduce((x,w)=>w+x,0);if(!zt(h,100,.1))return o;let v=Object.keys(o);return u.reduce((x,w,p)=>(x[v[p]]=w,x),{})}function zn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t[a]===void 0||hr(e[a],t[a])!==0)return!1;return!0}function Bn({layout:e,panelConstraints:t}){let a=Object.values(e),r=[...a],o=r.reduce((i,l)=>i+l,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(i=>`${i}%`).join(", ")}`);if(!zt(o,100)&&r.length>0)for(let i=0;i<t.length;i++){let l=r[i];Ue(l!=null,`No layout data found for index ${i}`);let u=100/o*l;r[i]=u}let n=0;for(let i=0;i<t.length;i++){let l=a[i];Ue(l!=null,`No layout data found for index ${i}`);let u=r[i];Ue(u!=null,`No layout data found for index ${i}`);let d=mi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});u!=d&&(n+=u-d,r[i]=d)}if(!zt(n,0))for(let i=0;i<t.length;i++){let l=r[i];Ue(l!=null,`No layout data found for index ${i}`);let u=l+n,d=mi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});if(l!==d&&(n-=d-l,r[i]=d,zt(n,0)))break}let s=Object.keys(e);return r.reduce((i,l,u)=>(i[s[u]]=l,i),{})}function Rb({groupId:e,panelId:t}){let a=()=>{let l=Un();for(let[u,{defaultLayoutDeferred:d,derivedPanelConstraints:c,layout:f,groupSize:h,separatorToPanels:v}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:c,group:u,groupSize:h,layout:f,separatorToPanels:v};throw Error(`Group ${e} not found`)},r=()=>{let l=a().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},o=()=>{let l=a().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},n=()=>{let l=a().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:c})=>{let f=n(),h=u.findIndex(w=>w.id===t),v=h===0,x=h===u.length-1;if(x&&l<f&&(v||u.slice(0,h).every((w,p)=>{let m=c[p];return m?.collapsible&&zt(m.collapsedSize,d[m.panelId])}))){let w=u.slice(0,h).reduce((p,m)=>p+d[m.id],0);return{...d,[t]:Zt(100-w)}}return Yl({delta:x?f-l:l-f,initialLayout:d,panelConstraints:c,pivotIndices:x?[h-1,h]:[h,h+1],prevLayout:d,trigger:"imperative-api"})},i=l=>{let u=n();if(l===u)return;let{defaultLayoutDeferred:d,derivedPanelConstraints:c,group:f,groupSize:h,layout:v,separatorToPanels:x}=a(),w=s({nextSize:l,panels:f.panels,prevLayout:v,derivedPanelConstraints:c}),p=Bn({layout:w,panelConstraints:c});zn(v,p)||ro(f,{defaultLayoutDeferred:d,derivedPanelConstraints:c,groupSize:h,layout:p,separatorToPanels:x})};return{collapse:()=>{let{collapsible:l,collapsedSize:u}=r(),{mutableValues:d}=o(),c=n();l&&c!==u&&(d.expandToSize=c,i(u))},expand:()=>{let{collapsible:l,collapsedSize:u,minSize:d}=r(),{mutableValues:c}=o(),f=n();if(l&&f===u){let h=c.expandToSize??d;h===0&&(h=1),i(h)}},getSize:()=>{let{group:l}=a(),u=n(),{element:d}=o(),c=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:c}},isCollapsed:()=>{let{collapsible:l,collapsedSize:u}=r(),d=n();return l&&zt(u,d)},resize:l=>{let{group:u}=a(),{element:d}=o(),c=xi({group:u}),f=Zl({groupSize:c,panelElement:d,styleProp:l}),h=Zt(f/c*100);i(h)}}}function ub(e){if(e.defaultPrevented)return;let t=Un();pg(e,t).forEach(a=>{if(a.separator&&!a.separator.disableDoubleClick){let r=a.panels.find(o=>o.panelConstraints.defaultSize!==void 0);if(r){let o=r.panelConstraints.defaultSize,n=Rb({groupId:a.group.id,panelId:r.id});n&&o!==void 0&&(n.resize(o),e.preventDefault())}}})}function Nc(e){let t=Un();for(let[a]of t)if(a.separators.some(r=>r.element===e))return a;throw Error("Could not find parent Group for separator element")}function Pb({groupId:e}){let t=()=>{let a=Un();for(let[r,o]of a)if(r.id===e)return{group:r,...o};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:a,layout:r}=t();return a?{}:r},setLayout(a){let{defaultLayoutDeferred:r,derivedPanelConstraints:o,group:n,groupSize:s,layout:i,separatorToPanels:l}=t(),u=Bn({layout:a,panelConstraints:o});return r?i:(zn(i,u)||ro(n,{defaultLayoutDeferred:r,derivedPanelConstraints:o,groupSize:s,layout:u,separatorToPanels:l}),u)}}}function Nn(e,t){let a=Nc(e),r=$o(a.id,!0),o=a.separators.find(d=>d.element===e);Ue(o,"Matching separator not found");let n=r.separatorToPanels.get(o);Ue(n,"Matching panels not found");let s=n.map(d=>a.panels.indexOf(d)),i=Pb({groupId:a.id}).getLayout(),l=Yl({delta:t,initialLayout:i,panelConstraints:r.derivedPanelConstraints,pivotIndices:s,prevLayout:i,trigger:"keyboard"}),u=Bn({layout:l,panelConstraints:r.derivedPanelConstraints});zn(i,u)||ro(a,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:u,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function db(e){if(e.defaultPrevented)return;let t=e.currentTarget,a=Nc(t);if(!a.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),a.orientation==="vertical"&&Nn(t,5);break}case"ArrowLeft":{e.preventDefault(),a.orientation==="horizontal"&&Nn(t,-5);break}case"ArrowRight":{e.preventDefault(),a.orientation==="horizontal"&&Nn(t,5);break}case"ArrowUp":{e.preventDefault(),a.orientation==="vertical"&&Nn(t,-5);break}case"End":{e.preventDefault(),Nn(t,100);break}case"Enter":{e.preventDefault();let r=Nc(t),o=$o(r.id,!0),{derivedPanelConstraints:n,layout:s,separatorToPanels:i}=o,l=r.separators.find(f=>f.element===t);Ue(l,"Matching separator not found");let u=i.get(l);Ue(u,"Matching panels not found");let d=u[0],c=n.find(f=>f.panelId===d.id);if(Ue(c,"Panel metadata not found"),c.collapsible){let f=s[d.id],h=c.collapsedSize===f?r.mutableState.expandedPanelSizes[d.id]??c.minSize:c.collapsedSize;Nn(t,h-f)}break}case"F6":{e.preventDefault();let r=Nc(t).separators.map(s=>s.element),o=Array.from(r).findIndex(s=>s===e.currentTarget);Ue(o!==null,"Index not found");let n=e.shiftKey?o>0?o-1:r.length-1:o+1<r.length?o+1:0;r[n].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),Nn(t,-100);break}}}function cb(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;let t=Un(),a=pg(e,t),r=new Map,o=!1;a.forEach(n=>{n.separator&&(o||(o=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));let s=t.get(n.group);s&&r.set(n.group,s.layout)}),gi({cursorFlags:0,hitRegions:a,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),a.length&&e.preventDefault()}function Tb({document:e,event:t,hitRegions:a,initialLayoutMap:r,mountedGroups:o,pointerDownAtPoint:n,prevCursorFlags:s}){let i=0;a.forEach(u=>{let{group:d,groupSize:c}=u,{orientation:f,panels:h}=d,{disableCursor:v}=d.mutableState,x=0;n?f==="horizontal"?x=(t.clientX-n.x)/c*100:x=(t.clientY-n.y)/c*100:f==="horizontal"?x=t.clientX<0?-100:100:x=t.clientY<0?-100:100;let w=r.get(d),p=o.get(d);if(!w||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:g,groupSize:y,layout:C,separatorToPanels:I}=p;if(g&&C&&I){let k=Yl({delta:x,initialLayout:w,panelConstraints:g,pivotIndices:u.panels.map(b=>h.indexOf(b)),prevLayout:C,trigger:"mouse-or-touch"});if(zn(k,C)){if(x!==0&&!v)switch(f){case"horizontal":{i|=x<0?wb:Cb;break}case"vertical":{i|=x<0?Sb:Lb;break}}}else ro(u.group,{defaultLayoutDeferred:m,derivedPanelConstraints:g,groupSize:y,layout:k,separatorToPanels:I})}});let l=0;t.movementX===0?l|=s&eb:l|=i&eb,t.movementY===0?l|=s&tb:l|=i&tb,_A(l),cg(e)}function fb(e){let t=Un(),a=Fn();a.state==="active"&&Tb({document:e.currentTarget,event:e,hitRegions:a.hitRegions,initialLayoutMap:a.initialLayoutMap,mountedGroups:t,prevCursorFlags:a.cursorFlags})}function pb(e){if(e.defaultPrevented)return;let t=Fn(),a=Un();switch(t.state){case"active":{if(e.buttons===0){gi({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(r=>{let o=$o(r.group.id,!0);ro(r.group,o,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:o}=r.separator;o.hasPointerCapture?.(e.pointerId)||o.setPointerCapture?.(e.pointerId)}Tb({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:a,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{let r=pg(e,a);r.length===0?t.state!=="inactive"&&gi({cursorFlags:0,state:"inactive"}):gi({cursorFlags:0,hitRegions:r,state:"hover"}),cg(e.currentTarget);break}}}function mb(e){e.relatedTarget instanceof HTMLIFrameElement&&Fn().state==="hover"&&gi({cursorFlags:0,state:"inactive"})}function hb(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||bb(e.currentTarget)&&e.preventDefault()}function gb(e){let t=0,a=0,r={};for(let n of e)if(n.defaultSize!==void 0){t++;let s=Zt(n.defaultSize);a+=s,r[n.panelId]=s}else r[n.panelId]=void 0;let o=e.length-t;if(o!==0){let n=Zt((100-a)/o);for(let s of e)s.defaultSize===void 0&&(r[s.panelId]=n)}return r}function WA(e,t,a){if(!a[0])return;let r=e.panels.find(l=>l.element===t);if(!r||!r.onResize)return;let o=xi({group:e}),n=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,s=r.mutableValues.prevSize,i={asPercentage:Zt(n/o*100),inPixels:n};r.mutableValues.prevSize=i,r.onResize(i,r.id,s)}function GA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0}function $A({group:e,nextGroupSize:t,prevGroupSize:a,prevLayout:r}){if(a<=0||t<=0||a===t)return r;let o=0,n=0,s=!1,i=new Map,l=[];for(let c of e.panels){let f=r[c.id]??0;if(c.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){s=!0;let h=f/100*a,v=Zt(h/t*100);i.set(c.id,v),o+=v}else l.push(c.id),n+=f}if(!s||l.length===0)return r;let u=100-o,d={...r};if(i.forEach((c,f)=>{d[f]=c}),n>0)for(let c of l){let f=r[c]??0;d[c]=Zt(f/n*u)}else{let c=Zt(u/l.length);for(let f of l)d[f]=c}return d}function KA(e,t){let a=e.map(o=>o.id),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!r.includes(o))return!1;return!0}var pi=new Map;function XA(e){let t=!0;Ue(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");let a=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,o=new Set,n=new a(v=>{for(let x of v){let{borderBoxSize:w,target:p}=x;if(p===e.element){if(t){let m=xi({group:e});if(m===0)return;let g=$o(e.id);if(!g)return;let y=lg(e),C=g.defaultLayoutDeferred?gb(y):g.layout,I=$A({group:e,nextGroupSize:m,prevGroupSize:g.groupSize,prevLayout:C}),k=Bn({layout:I,panelConstraints:y});if(!g.defaultLayoutDeferred&&zn(g.layout,k)&&GA(g.derivedPanelConstraints,y)&&g.groupSize===m)return;ro(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:y,groupSize:m,layout:k,separatorToPanels:g.separatorToPanels})}}else WA(e,p,w)}});n.observe(e.element),e.panels.forEach(v=>{Ue(!r.has(v.id),`Panel ids must be unique; id "${v.id}" was used more than once`),r.add(v.id),v.onResize&&n.observe(v.element)});let s=xi({group:e}),i=lg(e),l=e.panels.map(({id:v})=>v).join(","),u=e.mutableState.defaultLayout;u&&(KA(e.panels,u)||(u=void 0));let d=e.mutableState.layouts[l]??u??gb(i),c=Bn({layout:d,panelConstraints:i}),f=e.element.ownerDocument;pi.set(f,(pi.get(f)??0)+1);let h=new Map;return yb(e).forEach(v=>{v.separator&&h.set(v.separator,v.panels)}),ro(e,{defaultLayoutDeferred:s===0,derivedPanelConstraints:i,groupSize:s,layout:c,separatorToPanels:h}),e.separators.forEach(v=>{Ue(!o.has(v.id),`Separator ids must be unique; id "${v.id}" was used more than once`),o.add(v.id),v.element.addEventListener("keydown",db)}),pi.get(f)===1&&(f.addEventListener("contextmenu",nb,!0),f.addEventListener("dblclick",ub,!0),f.addEventListener("pointerdown",cb,!0),f.addEventListener("pointerleave",fb),f.addEventListener("pointermove",pb),f.addEventListener("pointerout",mb),f.addEventListener("pointerup",hb,!0)),function(){t=!1,pi.set(f,Math.max(0,(pi.get(f)??0)-1)),OA(e),e.separators.forEach(v=>{v.element.removeEventListener("keydown",db)}),pi.get(f)||(f.removeEventListener("contextmenu",nb,!0),f.removeEventListener("dblclick",ub,!0),f.removeEventListener("pointerdown",cb,!0),f.removeEventListener("pointerleave",fb),f.removeEventListener("pointermove",pb),f.removeEventListener("pointerout",mb),f.removeEventListener("pointerup",hb,!0)),n.disconnect()}}function ZA(){let[e,t]=(0,Ie.useState)({}),a=(0,Ie.useCallback)(()=>t({}),[]);return[e,a]}function mg(e){let t=(0,Ie.useId)();return`${e??t}`}var Hn=typeof window<"u"?Ie.useLayoutEffect:Ie.useEffect;function Ql(e){let t=(0,Ie.useRef)(e);return Hn(()=>{t.current=e},[e]),(0,Ie.useCallback)((...a)=>t.current?.(...a),[t])}function hg(...e){return Ql(t=>{e.forEach(a=>{if(a)switch(typeof a){case"function":{a(t);break}case"object":{a.current=t;break}}})})}function gg(e){let t=(0,Ie.useRef)({...e});return Hn(()=>{for(let a in e)t.current[a]=e[a]},[e]),t.current}var Mb=(0,Ie.createContext)(null);function QA(e,t){let a=(0,Ie.useRef)({getLayout:()=>({}),setLayout:AA});(0,Ie.useImperativeHandle)(t,()=>a.current,[]),Hn(()=>{Object.assign(a.current,Pb({groupId:e}))})}function Db({children:e,className:t,defaultLayout:a,disableCursor:r,disabled:o,elementRef:n,groupRef:s,id:i,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:c={coarse:20,fine:10},style:f,...h}){let v=(0,Ie.useRef)({onLayoutChange:{},onLayoutChanged:{}}),x=Ql(D=>{zn(v.current.onLayoutChange,D)||(v.current.onLayoutChange=D,l?.(D))}),w=Ql((D,E)=>{zn(v.current.onLayoutChanged,D)||(v.current.onLayoutChanged=D,u?.(D,{isUserInteraction:E}))}),p=mg(i),m=(0,Ie.useRef)(null),[g,y]=ZA(),C=(0,Ie.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:c,separators:[]}),I=hg(m,n);QA(p,s);let k=Ql((D,E)=>{let z=Fn(),O=ob(D),_=$o(D);if(_){let B=!1;return z.state==="active"&&(B=z.hitRegions.some(j=>j.group===O)),{flexGrow:_.layout[E]??1,pointerEvents:B?"none":void 0}}if(a?.[E])return{flexGrow:a?.[E]}}),b=gg({defaultLayout:a,disableCursor:r}),T=(0,Ie.useMemo)(()=>({get disableCursor(){return!!b.disableCursor},getPanelStyles:k,id:p,orientation:d,registerPanel:D=>{let E=C.current;return E.panels=ug(d,[...E.panels,D]),y(),()=>{E.panels=E.panels.filter(z=>z!==D),y()}},registerSeparator:D=>{let E=C.current;return E.separators=ug(d,[...E.separators,D]),y(),()=>{E.separators=E.separators.filter(z=>z!==D),y()}},updatePanelProps:(D,{disabled:E})=>{let z=C.current.panels.find(B=>B.id===D);z&&(z.panelConstraints.disabled=E);let O=ob(p),_=$o(p);O&&_&&ro(O,{..._,derivedPanelConstraints:lg(O)})},updateSeparatorProps:(D,{disabled:E,disableDoubleClick:z})=>{let O=C.current.separators.find(_=>_.id===D);O&&(O.disabled=E,O.disableDoubleClick=z)}}),[k,p,y,d,b]),A=(0,Ie.useRef)(null);return Hn(()=>{let D=m.current;if(D===null)return;let E=C.current,z;if(b.defaultLayout!==void 0&&Object.keys(b.defaultLayout).length===E.panels.length){z={};for(let P of E.panels){let se=b.defaultLayout[P.id];se!==void 0&&(z[P.id]=se)}}let O={disabled:!!o,element:D,id:p,mutableState:{defaultLayout:z,disableCursor:!!b.disableCursor,expandedPanelSizes:C.current.lastExpandedPanelSizes,layouts:C.current.layouts},orientation:d,panels:E.panels,resizeTargetMinimumSize:E.resizeTargetMinimumSize,separators:E.separators};A.current=O;let _=XA(O),{defaultLayoutDeferred:B,derivedPanelConstraints:j,layout:W}=$o(O.id,!0);!B&&j.length>0&&(x(W),w(W,!1));let ee=fg(p,P=>{let{defaultLayoutDeferred:se,derivedPanelConstraints:ie,layout:H}=P.next;if(se||ie.length===0)return;let ve=O.panels.map(({id:fe})=>fe).join(",");O.mutableState.layouts[ve]=H,ie.forEach(fe=>{if(fe.collapsible){let{layout:Ae}=P.prev??{};if(Ae){let K=zt(fe.collapsedSize,H[fe.panelId]),oe=zt(fe.collapsedSize,Ae[fe.panelId]);K&&!oe&&(O.mutableState.expandedPanelSizes[fe.panelId]=Ae[fe.panelId])}}});let Se=Fn().state!=="active";x(H),Se&&w(H,P.isUserInteraction)});return()=>{A.current=null,_(),ee()}},[o,p,w,x,d,g,b]),(0,Ie.useEffect)(()=>{let D=A.current;D&&(D.mutableState.defaultLayout=a,D.mutableState.disableCursor=!!r)}),(0,vi.jsx)(Mb.Provider,{value:T,children:(0,vi.jsx)("div",{...h,className:t,"data-group":!0,"data-testid":p,id:p,ref:I,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Db.displayName="Group";function vg(){let e=(0,Ie.useContext)(Mb);return Ue(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function YA(e,t){let{id:a}=vg(),r=(0,Ie.useRef)({collapse:ig,expand:ig,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:ig});(0,Ie.useImperativeHandle)(t,()=>r.current,[]),Hn(()=>{Object.assign(r.current,Rb({groupId:a,panelId:e}))})}function _b({children:e,className:t,collapsedSize:a="0%",collapsible:r=!1,defaultSize:o,disabled:n,elementRef:s,groupResizeBehavior:i="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:c,panelRef:f,style:h,...v}){let x=!!l,w=mg(l),p=gg({disabled:n}),m=(0,Ie.useRef)(null),g=hg(m,s),{getPanelStyles:y,id:C,orientation:I,registerPanel:k,updatePanelProps:b}=vg(),T=c!==null,A=Ql((O,_,B)=>{c?.(O,l,B)});Hn(()=>{let O=m.current;if(O!==null){let _={element:O,id:w,idIsStable:x,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?A:void 0,panelConstraints:{groupResizeBehavior:i,collapsedSize:a,collapsible:r,defaultSize:o,disabled:p.disabled,maxSize:u,minSize:d}};return k(_)}},[i,a,r,o,T,w,x,u,d,A,k,p]),(0,Ie.useEffect)(()=>{b(w,{disabled:n})},[n,w,b]),YA(w,f);let D=()=>{let O=y(C,w);if(O)return JSON.stringify(O)},E=(0,Ie.useSyncExternalStore)(O=>fg(C,O),D,D),z;return E?z=JSON.parse(E):o!==void 0?z={flexGrow:void 0,flexShrink:void 0,flexBasis:o}:z={flexGrow:1},(0,vi.jsx)("div",{...v,"data-disabled":n||void 0,"data-panel":!0,"data-testid":w,id:w,ref:g,style:{...JA,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...z},children:(0,vi.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...h,touchAction:I==="horizontal"?"pan-y":"pan-x"},children:e})})}_b.displayName="Panel";var JA={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function eE({layout:e,panelConstraints:t,panelId:a,panelIndex:r}){let o,n,s=e[a],i=t.find(l=>l.panelId===a);if(i){let l=i.maxSize,u=i.collapsible?i.collapsedSize:i.minSize,d=[r,r+1];n=Bn({layout:Yl({delta:u-s,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[a],o=Bn({layout:Yl({delta:l-s,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[a]}return{valueControls:a,valueMax:o,valueMin:n,valueNow:s}}function Ab({children:e,className:t,disabled:a,disableDoubleClick:r,elementRef:o,id:n,style:s,...i}){let l=mg(n),u=gg({disabled:a,disableDoubleClick:r}),[d,c]=(0,Ie.useState)({}),[f,h]=(0,Ie.useState)("inactive"),[v,x]=(0,Ie.useState)(!1),w=(0,Ie.useRef)(null),p=hg(w,o),{disableCursor:m,id:g,orientation:y,registerSeparator:C,updateSeparatorProps:I}=vg(),k=y==="horizontal"?"vertical":"horizontal";Hn(()=>{let A=w.current;if(A!==null){let D={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:A,id:l},E=C(D),z=DA(_=>{h(_.next.state!=="inactive"&&_.next.hitRegions.some(B=>B.separator===D)?_.next.state:"inactive")}),O=fg(g,_=>{let{derivedPanelConstraints:B,layout:j,separatorToPanels:W}=_.next,ee=W.get(D);if(ee){let P=ee[0],se=ee.indexOf(P);c(eE({layout:j,panelConstraints:B,panelId:P.id,panelIndex:se}))}});return()=>{z(),O(),E()}}},[g,l,C,u]),(0,Ie.useEffect)(()=>{I(l,{disabled:a,disableDoubleClick:r})},[a,r,l,I]);let b;a&&!m&&(b="not-allowed");let T;return a?T="disabled":f==="active"?T="active":v?T="focus":T=f,(0,vi.jsx)("div",{...i,"aria-controls":d.valueControls,"aria-disabled":a||void 0,"aria-orientation":k,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":T,"data-testid":l,id:l,onBlur:()=>x(!1),onFocus:()=>x(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:b,...s,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:a?void 0:0})}Ab.displayName="Separator";function Ee(...e){return Dv(vu(e))}var rE=Go("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}}),de=vr.forwardRef(function({className:e,variant:t="default",size:a="default",asChild:r=!1,...o},n){let s=r?Vd.Root:"button";return(0,Y.jsx)(s,{ref:n,"data-slot":"button","data-variant":t,"data-size":a,className:Ee(rE({variant:t,size:a,className:e})),...o})});var lj=Go("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function zc({className:e,...t}){return(0,Y.jsx)(Fl.Root,{"data-slot":"checkbox",className:Ee("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...t,children:(0,Y.jsx)(Fl.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,Y.jsx)(Tr,{})})})}function xr({...e}){return(0,Y.jsx)(Wa.Root,{"data-slot":"dialog",...e})}function oE({...e}){return(0,Y.jsx)(Wa.Portal,{"data-slot":"dialog-portal",...e})}function nE({className:e,...t}){return(0,Y.jsx)(Wa.Overlay,{"data-slot":"dialog-overlay",className:Ee("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function yr({className:e,children:t,showCloseButton:a=!0,...r}){let o=yf();return(0,Y.jsxs)(oE,{children:[(0,Y.jsx)(nE,{}),(0,Y.jsxs)(Wa.Content,{"data-slot":"dialog-content",className:Ee("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,a&&(0,Y.jsx)(Wa.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,Y.jsxs)(de,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,Y.jsx)(Or,{}),(0,Y.jsx)("span",{className:"sr-only",children:o("close")})]})})]})]})}function wr({className:e,...t}){return(0,Y.jsx)("div",{"data-slot":"dialog-header",className:Ee("flex flex-col gap-2",e),...t})}function Ko({className:e,showCloseButton:t=!1,children:a,...r}){let o=yf();return(0,Y.jsxs)("div",{"data-slot":"dialog-footer",className:Ee("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[a,t&&(0,Y.jsx)(Wa.Close,{asChild:!0,children:(0,Y.jsx)(de,{variant:"outline",children:o("close")})})]})}function Cr({className:e,...t}){return(0,Y.jsx)(Wa.Title,{"data-slot":"dialog-title",className:Ee("text-base leading-none font-medium",e),...t})}function Sr({className:e,...t}){return(0,Y.jsx)(Wa.Description,{"data-slot":"dialog-description",className:Ee("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function Ya({className:e,type:t,...a}){return(0,Y.jsx)("input",{type:t,"data-slot":"input",className:Ee("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function Eb({className:e,...t}){return(0,Y.jsx)("div",{"data-slot":"input-group",role:"group",className:Ee("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}var sE=Go("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function Ob({className:e,align:t="inline-start",...a}){return(0,Y.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:Ee(sE({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var uj=Go("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Nb({className:e,...t}){return(0,Y.jsx)(Ya,{"data-slot":"input-group-control",className:Ee("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function Bc({...e}){return(0,Y.jsx)(eo.Root,{"data-slot":"dropdown-menu",...e})}function Uc({...e}){return(0,Y.jsx)(eo.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Hc({className:e,align:t="start",sideOffset:a=4,...r}){return(0,Y.jsx)(eo.Portal,{children:(0,Y.jsx)(eo.Content,{"data-slot":"dropdown-menu-content",sideOffset:a,align:t,className:Ee("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})}function va({className:e,inset:t,variant:a="default",...r}){return(0,Y.jsx)(eo.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:Ee("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}function Fb({className:e,...t}){return(0,Y.jsx)(eo.Separator,{"data-slot":"dropdown-menu-separator",className:Ee("-mx-1 my-1 h-px bg-border",e),...t})}function oo({className:e,...t}){return(0,Y.jsx)(Rc.Root,{"data-slot":"label",className:Ee("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function jn({...e}){return(0,Y.jsx)(Xt.Root,{"data-slot":"select",...e})}function Vn({...e}){return(0,Y.jsx)(Xt.Value,{"data-slot":"select-value",...e})}function qn({className:e,size:t="default",children:a,...r}){return(0,Y.jsxs)(Xt.Trigger,{"data-slot":"select-trigger","data-size":t,className:Ee("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,(0,Y.jsx)(Xt.Icon,{asChild:!0,children:(0,Y.jsx)(Mr,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Wn({className:e,children:t,position:a="item-aligned",align:r="center",...o}){return(0,Y.jsx)(Xt.Portal,{children:(0,Y.jsxs)(Xt.Content,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:Ee("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:r,...o,children:[(0,Y.jsx)(iE,{}),(0,Y.jsx)(Xt.Viewport,{"data-position":a,className:Ee("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:t}),(0,Y.jsx)(lE,{})]})})}function no({className:e,children:t,...a}){return(0,Y.jsxs)(Xt.Item,{"data-slot":"select-item",className:Ee("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,Y.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,Y.jsx)(Xt.ItemIndicator,{children:(0,Y.jsx)(Tr,{className:"pointer-events-none"})})}),(0,Y.jsx)(Xt.ItemText,{children:t})]})}function iE({className:e,...t}){return(0,Y.jsx)(Xt.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:Ee("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Y.jsx)(ps,{})})}function lE({className:e,...t}){return(0,Y.jsx)(Xt.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:Ee("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Y.jsx)(Mr,{})})}var dj=3600*24*7;var cj=vr.createContext(null);var fj=Go("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function zb({className:e,...t}){return(0,Y.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,Y.jsx)("table",{"data-slot":"table",className:Ee("w-full caption-bottom text-sm",e),...t})})}function Bb({className:e,...t}){return(0,Y.jsx)("thead",{"data-slot":"table-header",className:Ee("[&_tr]:border-b",e),...t})}function Ub({className:e,...t}){return(0,Y.jsx)("tbody",{"data-slot":"table-body",className:Ee("[&_tr:last-child]:border-0",e),...t})}function xg({className:e,...t}){return(0,Y.jsx)("tr",{"data-slot":"table-row",className:Ee("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function yi({className:e,...t}){return(0,Y.jsx)("th",{"data-slot":"table-head",className:Ee("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function wi({className:e,...t}){return(0,Y.jsx)("td",{"data-slot":"table-cell",className:Ee("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}function jc({className:e,orientation:t="horizontal",...a}){return(0,Y.jsx)(On.Root,{"data-slot":"tabs","data-orientation":t,className:Ee("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var uE=Go("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Vc({className:e,variant:t="default",...a}){return(0,Y.jsx)(On.List,{"data-slot":"tabs-list","data-variant":t,className:Ee(uE({variant:t}),e),...a})}function Ci({className:e,...t}){return(0,Y.jsx)(On.Trigger,{"data-slot":"tabs-trigger",className:Ee("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Si({className:e,...t}){return(0,Y.jsx)(On.Content,{"data-slot":"tabs-content",className:Ee("flex-1 text-sm outline-none",e),...t})}var pj=Go("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}});var mj=vr.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});var yt=N(te(),1);var R={};co(R,{BRAND:()=>OE,DIRTY:()=>Gn,EMPTY_PATH:()=>pE,INVALID:()=>ue,NEVER:()=>yO,OK:()=>Bt,ParseStatus:()=>Pt,Schema:()=>Ce,ZodAny:()=>Qo,ZodArray:()=>uo,ZodBigInt:()=>Kn,ZodBoolean:()=>Xn,ZodBranded:()=>eu,ZodCatch:()=>ss,ZodDate:()=>Zn,ZodDefault:()=>ns,ZodDiscriminatedUnion:()=>Gc,ZodEffects:()=>_a,ZodEnum:()=>rs,ZodError:()=>la,ZodFirstPartyTypeKind:()=>ce,ZodFunction:()=>Kc,ZodIntersection:()=>es,ZodIssueCode:()=>F,ZodLazy:()=>ts,ZodLiteral:()=>as,ZodMap:()=>Pi,ZodNaN:()=>Mi,ZodNativeEnum:()=>os,ZodNever:()=>Ja,ZodNull:()=>Yn,ZodNullable:()=>br,ZodNumber:()=>$n,ZodObject:()=>ua,ZodOptional:()=>Ma,ZodParsedType:()=>$,ZodPipeline:()=>tu,ZodPromise:()=>Yo,ZodReadonly:()=>is,ZodRecord:()=>$c,ZodSchema:()=>Ce,ZodSet:()=>Ti,ZodString:()=>Zo,ZodSymbol:()=>ki,ZodTransformer:()=>_a,ZodTuple:()=>Ir,ZodType:()=>Ce,ZodUndefined:()=>Qn,ZodUnion:()=>Jn,ZodUnknown:()=>lo,ZodVoid:()=>Ri,addIssueToContext:()=>q,any:()=>qE,array:()=>KE,bigint:()=>BE,boolean:()=>Qb,coerce:()=>xO,custom:()=>Kb,date:()=>UE,datetimeRegex:()=>Gb,defaultErrorMap:()=>so,discriminatedUnion:()=>YE,effect:()=>dO,enum:()=>iO,function:()=>oO,getErrorMap:()=>Li,getParsedType:()=>Lr,instanceof:()=>FE,intersection:()=>JE,isAborted:()=>qc,isAsync:()=>Ii,isDirty:()=>Wc,isValid:()=>Xo,late:()=>NE,lazy:()=>nO,literal:()=>sO,makeIssue:()=>Jl,map:()=>aO,nan:()=>zE,nativeEnum:()=>lO,never:()=>GE,null:()=>VE,nullable:()=>fO,number:()=>Zb,object:()=>XE,objectUtil:()=>yg,oboolean:()=>vO,onumber:()=>gO,optional:()=>cO,ostring:()=>hO,pipeline:()=>mO,preprocess:()=>pO,promise:()=>uO,quotelessJson:()=>dE,record:()=>tO,set:()=>rO,setErrorMap:()=>fE,strictObject:()=>ZE,string:()=>Xb,symbol:()=>HE,transformer:()=>dO,tuple:()=>eO,undefined:()=>jE,union:()=>QE,unknown:()=>WE,util:()=>Pe,void:()=>$E});var Pe;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function a(o){throw new Error}e.assertNever=a,e.arrayToEnum=o=>{let n={};for(let s of o)n[s]=s;return n},e.getValidEnumValues=o=>{let n=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),s={};for(let i of n)s[i]=o[i];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(n){return o[n]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let n=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&n.push(s);return n},e.find=(o,n)=>{for(let s of o)if(n(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,n=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(n)}e.joinValues=r,e.jsonStringifyReplacer=(o,n)=>typeof n=="bigint"?n.toString():n})(Pe||(Pe={}));var yg;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(yg||(yg={}));var $=Pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Lr=e=>{switch(typeof e){case"undefined":return $.undefined;case"string":return $.string;case"number":return Number.isNaN(e)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(e)?$.array:e===null?$.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?$.promise:typeof Map<"u"&&e instanceof Map?$.map:typeof Set<"u"&&e instanceof Set?$.set:typeof Date<"u"&&e instanceof Date?$.date:$.object;default:return $.unknown}};var F=Pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),dE=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),la=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(n){return n.message},r={_errors:[]},o=n=>{for(let s of n.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(a(s));else{let i=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(a(s))):i[u]=i[u]||{_errors:[]},i=i[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a={},r=[];for(let o of this.issues)o.path.length>0?(a[o.path[0]]=a[o.path[0]]||[],a[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}};la.create=e=>new la(e);var cE=(e,t)=>{let a;switch(e.code){case F.invalid_type:e.received===$.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Pe.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:a=`Unrecognized key(s) in object: ${Pe.joinValues(e.keys,", ")}`;break;case F.invalid_union:a="Invalid input";break;case F.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Pe.joinValues(e.options)}`;break;case F.invalid_enum_value:a=`Invalid enum value. Expected ${Pe.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:a="Invalid function arguments";break;case F.invalid_return_type:a="Invalid function return type";break;case F.invalid_date:a="Invalid date";break;case F.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:Pe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case F.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case F.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case F.custom:a="Invalid input";break;case F.invalid_intersection_types:a="Intersection results could not be merged";break;case F.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:a="Number must be finite";break;default:a=t.defaultError,Pe.assertNever(e)}return{message:a}},so=cE;var Hb=so;function fE(e){Hb=e}function Li(){return Hb}var Jl=e=>{let{data:t,path:a,errorMaps:r,issueData:o}=e,n=[...a,...o.path||[]],s={...o,path:n};if(o.message!==void 0)return{...o,path:n,message:o.message};let i="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)i=u(s,{data:t,defaultError:i}).message;return{...o,path:n,message:i}},pE=[];function q(e,t){let a=Li(),r=Jl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===so?void 0:so].filter(o=>!!o)});e.common.issues.push(r)}var Pt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let r=[];for(let o of a){if(o.status==="aborted")return ue;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,a){let r=[];for(let o of a){let n=await o.key,s=await o.value;r.push({key:n,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,a){let r={};for(let o of a){let{key:n,value:s}=o;if(n.status==="aborted"||s.status==="aborted")return ue;n.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),n.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[n.value]=s.value)}return{status:t.value,value:r}}},ue=Object.freeze({status:"aborted"}),Gn=e=>({status:"dirty",value:e}),Bt=e=>({status:"valid",value:e}),qc=e=>e.status==="aborted",Wc=e=>e.status==="dirty",Xo=e=>e.status==="valid",Ii=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(J||(J={}));var Da=class{constructor(t,a,r,o){this._cachedPath=[],this.parent=t,this.data=a,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},jb=(e,t)=>{if(Xo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new la(e.common.issues);return this._error=a,this._error}}};function xe(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:o}=e;if(t&&(a||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,i)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??r??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:l??a??i.defaultError}},description:o}}var Ce=class{get description(){return this._def.description}_getType(t){return Lr(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:Lr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pt,ctx:{common:t.parent.common,data:t.data,parsedType:Lr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(Ii(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let r=this.safeParse(t,a);if(r.success)return r.data;throw r.error}safeParse(t,a){let r={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)},o=this._parseSync({data:t,path:r.path,parent:r});return jb(r,o)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:a});return Xo(r)?{value:r.value}:{issues:a.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(r=>Xo(r)?{value:r.value}:{issues:a.common.issues})}async parseAsync(t,a){let r=await this.safeParseAsync(t,a);if(r.success)return r.data;throw r.error}async safeParseAsync(t,a){let r={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)},o=this._parse({data:t,path:r.path,parent:r}),n=await(Ii(o)?o:Promise.resolve(o));return jb(r,n)}refine(t,a){let r=o=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(o):a;return this._refinement((o,n)=>{let s=t(o),i=()=>n.addIssue({code:F.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(t,a){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof a=="function"?a(r,o):a),!1))}_refinement(t){return new _a({schema:this,typeName:ce.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Ma.create(this,this._def)}nullable(){return br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return uo.create(this)}promise(){return Yo.create(this,this._def)}or(t){return Jn.create([this,t],this._def)}and(t){return es.create(this,t,this._def)}transform(t){return new _a({...xe(this._def),schema:this,typeName:ce.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new ns({...xe(this._def),innerType:this,defaultValue:a,typeName:ce.ZodDefault})}brand(){return new eu({typeName:ce.ZodBranded,type:this,...xe(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new ss({...xe(this._def),innerType:this,catchValue:a,typeName:ce.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return tu.create(this,t)}readonly(){return is.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},mE=/^c[^\s-]{8,}$/i,hE=/^[0-9a-z]+$/,gE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,xE=/^[a-z0-9_-]{21}$/i,yE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,CE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,SE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",wg,LE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,IE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,bE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,kE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,RE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,PE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",TE=new RegExp(`^${qb}$`);function Wb(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function ME(e){return new RegExp(`^${Wb(e)}$`)}function Gb(e){let t=`${qb}T${Wb(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function DE(e,t){return!!((t==="v4"||!t)&&LE.test(e)||(t==="v6"||!t)&&bE.test(e))}function _E(e,t){if(!yE.test(e))return!1;try{let[a]=e.split("."),r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function AE(e,t){return!!((t==="v4"||!t)&&IE.test(e)||(t==="v6"||!t)&&kE.test(e))}var Zo=class e extends Ce{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==$.string){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_type,expected:$.string,received:n.parsedType}),ue}let r=new Pt,o;for(let n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){let s=t.data.length>n.value,i=t.data.length<n.value;(s||i)&&(o=this._getOrReturnCtx(t,o),s?q(o,{code:F.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&q(o,{code:F.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")CE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"email",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")wg||(wg=new RegExp(SE,"u")),wg.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"emoji",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")vE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"uuid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")xE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"nanoid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")mE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"cuid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")hE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"cuid2",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")gE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"ulid",code:F.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),q(o,{validation:"url",code:F.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"regex",code:F.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?Gb(n).test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?TE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?ME(n).test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{code:F.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?wE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"duration",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?DE(t.data,n.version)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"ip",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="jwt"?_E(t.data,n.alg)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"jwt",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="cidr"?AE(t.data,n.version)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"cidr",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?RE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"base64",code:F.invalid_string,message:n.message}),r.dirty()):n.kind==="base64url"?PE.test(t.data)||(o=this._getOrReturnCtx(t,o),q(o,{validation:"base64url",code:F.invalid_string,message:n.message}),r.dirty()):Pe.assertNever(n);return{status:r.value,value:t.data}}_regex(t,a,r){return this.refinement(o=>t.test(o),{validation:a,code:F.invalid_string,...J.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...J.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...J.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...J.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...J.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...J.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...J.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...J.errToObj(a)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Zo.create=e=>new Zo({checks:[],typeName:ce.ZodString,coerce:e?.coerce??!1,...xe(e)});function EE(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=a>r?a:r,n=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return n%s/10**o}var $n=class e extends Ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==$.number){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_type,expected:$.number,received:n.parsedType}),ue}let r,o=new Pt;for(let n of this._def.checks)n.kind==="int"?Pe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),q(r,{code:F.invalid_type,expected:"integer",received:"float",message:n.message}),o.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="multipleOf"?EE(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),q(r,{code:F.not_finite,message:n.message}),o.dirty()):Pe.assertNever(n);return{status:o.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,J.toString(a))}gt(t,a){return this.setLimit("min",t,!1,J.toString(a))}lte(t,a){return this.setLimit("max",t,!0,J.toString(a))}lt(t,a){return this.setLimit("max",t,!1,J.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Pe.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(a)&&Number.isFinite(t)}};$n.create=e=>new $n({checks:[],typeName:ce.ZodNumber,coerce:e?.coerce||!1,...xe(e)});var Kn=class e extends Ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==$.bigint)return this._getInvalidInput(t);let r,o=new Pt;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),q(r,{code:F.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):Pe.assertNever(n);return{status:o.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return q(a,{code:F.invalid_type,expected:$.bigint,received:a.parsedType}),ue}gte(t,a){return this.setLimit("min",t,!0,J.toString(a))}gt(t,a){return this.setLimit("min",t,!1,J.toString(a))}lte(t,a){return this.setLimit("max",t,!0,J.toString(a))}lt(t,a){return this.setLimit("max",t,!1,J.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Kn.create=e=>new Kn({checks:[],typeName:ce.ZodBigInt,coerce:e?.coerce??!1,...xe(e)});var Xn=class extends Ce{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==$.boolean){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.boolean,received:r.parsedType}),ue}return Bt(t.data)}};Xn.create=e=>new Xn({typeName:ce.ZodBoolean,coerce:e?.coerce||!1,...xe(e)});var Zn=class e extends Ce{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==$.date){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_type,expected:$.date,received:n.parsedType}),ue}if(Number.isNaN(t.data.getTime())){let n=this._getOrReturnCtx(t);return q(n,{code:F.invalid_date}),ue}let r=new Pt,o;for(let n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(o=this._getOrReturnCtx(t,o),q(o,{code:F.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):Pe.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};Zn.create=e=>new Zn({checks:[],coerce:e?.coerce||!1,typeName:ce.ZodDate,...xe(e)});var ki=class extends Ce{_parse(t){if(this._getType(t)!==$.symbol){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.symbol,received:r.parsedType}),ue}return Bt(t.data)}};ki.create=e=>new ki({typeName:ce.ZodSymbol,...xe(e)});var Qn=class extends Ce{_parse(t){if(this._getType(t)!==$.undefined){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.undefined,received:r.parsedType}),ue}return Bt(t.data)}};Qn.create=e=>new Qn({typeName:ce.ZodUndefined,...xe(e)});var Yn=class extends Ce{_parse(t){if(this._getType(t)!==$.null){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.null,received:r.parsedType}),ue}return Bt(t.data)}};Yn.create=e=>new Yn({typeName:ce.ZodNull,...xe(e)});var Qo=class extends Ce{constructor(){super(...arguments),this._any=!0}_parse(t){return Bt(t.data)}};Qo.create=e=>new Qo({typeName:ce.ZodAny,...xe(e)});var lo=class extends Ce{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Bt(t.data)}};lo.create=e=>new lo({typeName:ce.ZodUnknown,...xe(e)});var Ja=class extends Ce{_parse(t){let a=this._getOrReturnCtx(t);return q(a,{code:F.invalid_type,expected:$.never,received:a.parsedType}),ue}};Ja.create=e=>new Ja({typeName:ce.ZodNever,...xe(e)});var Ri=class extends Ce{_parse(t){if(this._getType(t)!==$.undefined){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.void,received:r.parsedType}),ue}return Bt(t.data)}};Ri.create=e=>new Ri({typeName:ce.ZodVoid,...xe(e)});var uo=class e extends Ce{_parse(t){let{ctx:a,status:r}=this._processInputParams(t),o=this._def;if(a.parsedType!==$.array)return q(a,{code:F.invalid_type,expected:$.array,received:a.parsedType}),ue;if(o.exactLength!==null){let s=a.data.length>o.exactLength.value,i=a.data.length<o.exactLength.value;(s||i)&&(q(a,{code:s?F.too_big:F.too_small,minimum:i?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&a.data.length<o.minLength.value&&(q(a,{code:F.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&a.data.length>o.maxLength.value&&(q(a,{code:F.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((s,i)=>o.type._parseAsync(new Da(a,s,a.path,i)))).then(s=>Pt.mergeArray(r,s));let n=[...a.data].map((s,i)=>o.type._parseSync(new Da(a,s,a.path,i)));return Pt.mergeArray(r,n)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:J.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:J.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:J.toString(a)}})}nonempty(t){return this.min(1,t)}};uo.create=(e,t)=>new uo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ce.ZodArray,...xe(t)});function bi(e){if(e instanceof ua){let t={};for(let a in e.shape){let r=e.shape[a];t[a]=Ma.create(bi(r))}return new ua({...e._def,shape:()=>t})}else return e instanceof uo?new uo({...e._def,type:bi(e.element)}):e instanceof Ma?Ma.create(bi(e.unwrap())):e instanceof br?br.create(bi(e.unwrap())):e instanceof Ir?Ir.create(e.items.map(t=>bi(t))):e}var ua=class e extends Ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=Pe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==$.object){let u=this._getOrReturnCtx(t);return q(u,{code:F.invalid_type,expected:$.object,received:u.parsedType}),ue}let{status:r,ctx:o}=this._processInputParams(t),{shape:n,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof Ja&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||i.push(u);let l=[];for(let u of s){let d=n[u],c=o.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new Da(o,c,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Ja){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of i)l.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(u==="strict")i.length>0&&(q(o,{code:F.unrecognized_keys,keys:i}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of i){let c=o.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new Da(o,c,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of l){let c=await d.key,f=await d.value;u.push({key:c,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Pt.mergeObjectSync(r,u)):Pt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,r)=>{let o=this._def.errorMap?.(a,r).message??r.defaultError;return a.code==="unrecognized_keys"?{message:J.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ce.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let r of Pe.objectKeys(t))t[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let r of Pe.objectKeys(this.shape))t[r]||(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}deepPartial(){return bi(this)}partial(t){let a={};for(let r of Pe.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?a[r]=o:a[r]=o.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let r of Pe.objectKeys(this.shape))if(t&&!t[r])a[r]=this.shape[r];else{let n=this.shape[r];for(;n instanceof Ma;)n=n._def.innerType;a[r]=n}return new e({...this._def,shape:()=>a})}keyof(){return $b(Pe.objectKeys(this.shape))}};ua.create=(e,t)=>new ua({shape:()=>e,unknownKeys:"strip",catchall:Ja.create(),typeName:ce.ZodObject,...xe(t)});ua.strictCreate=(e,t)=>new ua({shape:()=>e,unknownKeys:"strict",catchall:Ja.create(),typeName:ce.ZodObject,...xe(t)});ua.lazycreate=(e,t)=>new ua({shape:e,unknownKeys:"strip",catchall:Ja.create(),typeName:ce.ZodObject,...xe(t)});var Jn=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r=this._def.options;function o(n){for(let i of n)if(i.result.status==="valid")return i.result;for(let i of n)if(i.result.status==="dirty")return a.common.issues.push(...i.ctx.common.issues),i.result;let s=n.map(i=>new la(i.ctx.common.issues));return q(a,{code:F.invalid_union,unionErrors:s}),ue}if(a.common.async)return Promise.all(r.map(async n=>{let s={...a,common:{...a.common,issues:[]},parent:null};return{result:await n._parseAsync({data:a.data,path:a.path,parent:s}),ctx:s}})).then(o);{let n,s=[];for(let l of r){let u={...a,common:{...a.common,issues:[]},parent:null},d=l._parseSync({data:a.data,path:a.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!n&&(n={result:d,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(n)return a.common.issues.push(...n.ctx.common.issues),n.result;let i=s.map(l=>new la(l));return q(a,{code:F.invalid_union,unionErrors:i}),ue}}get options(){return this._def.options}};Jn.create=(e,t)=>new Jn({options:e,typeName:ce.ZodUnion,...xe(t)});var io=e=>e instanceof ts?io(e.schema):e instanceof _a?io(e.innerType()):e instanceof as?[e.value]:e instanceof rs?e.options:e instanceof os?Pe.objectValues(e.enum):e instanceof ns?io(e._def.innerType):e instanceof Qn?[void 0]:e instanceof Yn?[null]:e instanceof Ma?[void 0,...io(e.unwrap())]:e instanceof br?[null,...io(e.unwrap())]:e instanceof eu||e instanceof is?io(e.unwrap()):e instanceof ss?io(e._def.innerType):[],Gc=class e extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==$.object)return q(a,{code:F.invalid_type,expected:$.object,received:a.parsedType}),ue;let r=this.discriminator,o=a.data[r],n=this.optionsMap.get(o);return n?a.common.async?n._parseAsync({data:a.data,path:a.path,parent:a}):n._parseSync({data:a.data,path:a.path,parent:a}):(q(a,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ue)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,r){let o=new Map;for(let n of a){let s=io(n.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let i of s){if(o.has(i))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(i)}`);o.set(i,n)}}return new e({typeName:ce.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:o,...xe(r)})}};function Cg(e,t){let a=Lr(e),r=Lr(t);if(e===t)return{valid:!0,data:e};if(a===$.object&&r===$.object){let o=Pe.objectKeys(t),n=Pe.objectKeys(e).filter(i=>o.indexOf(i)!==-1),s={...e,...t};for(let i of n){let l=Cg(e[i],t[i]);if(!l.valid)return{valid:!1};s[i]=l.data}return{valid:!0,data:s}}else if(a===$.array&&r===$.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let n=0;n<e.length;n++){let s=e[n],i=t[n],l=Cg(s,i);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return a===$.date&&r===$.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var es=class extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=(n,s)=>{if(qc(n)||qc(s))return ue;let i=Cg(n.value,s.value);return i.valid?((Wc(n)||Wc(s))&&a.dirty(),{status:a.value,value:i.data}):(q(r,{code:F.invalid_intersection_types}),ue)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([n,s])=>o(n,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};es.create=(e,t,a)=>new es({left:e,right:t,typeName:ce.ZodIntersection,...xe(a)});var Ir=class e extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.array)return q(r,{code:F.invalid_type,expected:$.array,received:r.parsedType}),ue;if(r.data.length<this._def.items.length)return q(r,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ue;!this._def.rest&&r.data.length>this._def.items.length&&(q(r,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let n=[...r.data].map((s,i)=>{let l=this._def.items[i]||this._def.rest;return l?l._parse(new Da(r,s,r.path,i)):null}).filter(s=>!!s);return r.common.async?Promise.all(n).then(s=>Pt.mergeArray(a,s)):Pt.mergeArray(a,n)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ir.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ir({items:e,typeName:ce.ZodTuple,rest:null,...xe(t)})};var $c=class e extends Ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.object)return q(r,{code:F.invalid_type,expected:$.object,received:r.parsedType}),ue;let o=[],n=this._def.keyType,s=this._def.valueType;for(let i in r.data)o.push({key:n._parse(new Da(r,i,r.path,i)),value:s._parse(new Da(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?Pt.mergeObjectAsync(a,o):Pt.mergeObjectSync(a,o)}get element(){return this._def.valueType}static create(t,a,r){return a instanceof Ce?new e({keyType:t,valueType:a,typeName:ce.ZodRecord,...xe(r)}):new e({keyType:Zo.create(),valueType:t,typeName:ce.ZodRecord,...xe(a)})}},Pi=class extends Ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.map)return q(r,{code:F.invalid_type,expected:$.map,received:r.parsedType}),ue;let o=this._def.keyType,n=this._def.valueType,s=[...r.data.entries()].map(([i,l],u)=>({key:o._parse(new Da(r,i,r.path,[u,"key"])),value:n._parse(new Da(r,l,r.path,[u,"value"]))}));if(r.common.async){let i=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return ue;(u.status==="dirty"||d.status==="dirty")&&a.dirty(),i.set(u.value,d.value)}return{status:a.value,value:i}})}else{let i=new Map;for(let l of s){let u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return ue;(u.status==="dirty"||d.status==="dirty")&&a.dirty(),i.set(u.value,d.value)}return{status:a.value,value:i}}}};Pi.create=(e,t,a)=>new Pi({valueType:t,keyType:e,typeName:ce.ZodMap,...xe(a)});var Ti=class e extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.set)return q(r,{code:F.invalid_type,expected:$.set,received:r.parsedType}),ue;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(q(r,{code:F.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),a.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(q(r,{code:F.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),a.dirty());let n=this._def.valueType;function s(l){let u=new Set;for(let d of l){if(d.status==="aborted")return ue;d.status==="dirty"&&a.dirty(),u.add(d.value)}return{status:a.value,value:u}}let i=[...r.data.values()].map((l,u)=>n._parse(new Da(r,l,r.path,u)));return r.common.async?Promise.all(i).then(l=>s(l)):s(i)}min(t,a){return new e({...this._def,minSize:{value:t,message:J.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:J.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Ti.create=(e,t)=>new Ti({valueType:e,minSize:null,maxSize:null,typeName:ce.ZodSet,...xe(t)});var Kc=class e extends Ce{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==$.function)return q(a,{code:F.invalid_type,expected:$.function,received:a.parsedType}),ue;function r(i,l){return Jl({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Li(),so].filter(u=>!!u),issueData:{code:F.invalid_arguments,argumentsError:l}})}function o(i,l){return Jl({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Li(),so].filter(u=>!!u),issueData:{code:F.invalid_return_type,returnTypeError:l}})}let n={errorMap:a.common.contextualErrorMap},s=a.data;if(this._def.returns instanceof Yo){let i=this;return Bt(async function(...l){let u=new la([]),d=await i._def.args.parseAsync(l,n).catch(h=>{throw u.addIssue(r(l,h)),u}),c=await Reflect.apply(s,this,d);return await i._def.returns._def.type.parseAsync(c,n).catch(h=>{throw u.addIssue(o(c,h)),u})})}else{let i=this;return Bt(function(...l){let u=i._def.args.safeParse(l,n);if(!u.success)throw new la([r(l,u.error)]);let d=Reflect.apply(s,this,u.data),c=i._def.returns.safeParse(d,n);if(!c.success)throw new la([o(d,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ir.create(t).rest(lo.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,r){return new e({args:t||Ir.create([]).rest(lo.create()),returns:a||lo.create(),typeName:ce.ZodFunction,...xe(r)})}},ts=class extends Ce{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};ts.create=(e,t)=>new ts({getter:e,typeName:ce.ZodLazy,...xe(t)});var as=class extends Ce{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return q(a,{received:a.data,code:F.invalid_literal,expected:this._def.value}),ue}return{status:"valid",value:t.data}}get value(){return this._def.value}};as.create=(e,t)=>new as({value:e,typeName:ce.ZodLiteral,...xe(t)});function $b(e,t){return new rs({values:e,typeName:ce.ZodEnum,...xe(t)})}var rs=class e extends Ce{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),r=this._def.values;return q(a,{expected:Pe.joinValues(r),received:a.parsedType,code:F.invalid_type}),ue}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),r=this._def.values;return q(a,{received:a.data,code:F.invalid_enum_value,options:r}),ue}return Bt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...a})}};rs.create=$b;var os=class extends Ce{_parse(t){let a=Pe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$.string&&r.parsedType!==$.number){let o=Pe.objectValues(a);return q(r,{expected:Pe.joinValues(o),received:r.parsedType,code:F.invalid_type}),ue}if(this._cache||(this._cache=new Set(Pe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Pe.objectValues(a);return q(r,{received:r.data,code:F.invalid_enum_value,options:o}),ue}return Bt(t.data)}get enum(){return this._def.values}};os.create=(e,t)=>new os({values:e,typeName:ce.ZodNativeEnum,...xe(t)});var Yo=class extends Ce{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==$.promise&&a.common.async===!1)return q(a,{code:F.invalid_type,expected:$.promise,received:a.parsedType}),ue;let r=a.parsedType===$.promise?a.data:Promise.resolve(a.data);return Bt(r.then(o=>this._def.type.parseAsync(o,{path:a.path,errorMap:a.common.contextualErrorMap})))}};Yo.create=(e,t)=>new Yo({type:e,typeName:ce.ZodPromise,...xe(t)});var _a=class extends Ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=this._def.effect||null,n={addIssue:s=>{q(r,s),s.fatal?a.abort():a.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),o.type==="preprocess"){let s=o.transform(r.data,n);if(r.common.async)return Promise.resolve(s).then(async i=>{if(a.value==="aborted")return ue;let l=await this._def.schema._parseAsync({data:i,path:r.path,parent:r});return l.status==="aborted"?ue:l.status==="dirty"?Gn(l.value):a.value==="dirty"?Gn(l.value):l});{if(a.value==="aborted")return ue;let i=this._def.schema._parseSync({data:s,path:r.path,parent:r});return i.status==="aborted"?ue:i.status==="dirty"?Gn(i.value):a.value==="dirty"?Gn(i.value):i}}if(o.type==="refinement"){let s=i=>{let l=o.refinement(i,n);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ue:(i.status==="dirty"&&a.dirty(),s(i.value),{status:a.value,value:i.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>i.status==="aborted"?ue:(i.status==="dirty"&&a.dirty(),s(i.value).then(()=>({status:a.value,value:i.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Xo(s))return ue;let i=o.transform(s.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:i}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Xo(s)?Promise.resolve(o.transform(s.value,n)).then(i=>({status:a.value,value:i})):ue);Pe.assertNever(o)}};_a.create=(e,t,a)=>new _a({schema:e,typeName:ce.ZodEffects,effect:t,...xe(a)});_a.createWithPreprocess=(e,t,a)=>new _a({schema:t,effect:{type:"preprocess",transform:e},typeName:ce.ZodEffects,...xe(a)});var Ma=class extends Ce{_parse(t){return this._getType(t)===$.undefined?Bt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ma.create=(e,t)=>new Ma({innerType:e,typeName:ce.ZodOptional,...xe(t)});var br=class extends Ce{_parse(t){return this._getType(t)===$.null?Bt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};br.create=(e,t)=>new br({innerType:e,typeName:ce.ZodNullable,...xe(t)});var ns=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return a.parsedType===$.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};ns.create=(e,t)=>new ns({innerType:e,typeName:ce.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...xe(t)});var ss=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r={...a,common:{...a.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ii(o)?o.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new la(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new la(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};ss.create=(e,t)=>new ss({innerType:e,typeName:ce.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...xe(t)});var Mi=class extends Ce{_parse(t){if(this._getType(t)!==$.nan){let r=this._getOrReturnCtx(t);return q(r,{code:F.invalid_type,expected:$.nan,received:r.parsedType}),ue}return{status:"valid",value:t.data}}};Mi.create=e=>new Mi({typeName:ce.ZodNaN,...xe(e)});var OE=Symbol("zod_brand"),eu=class extends Ce{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return this._def.type._parse({data:r,path:a.path,parent:a})}unwrap(){return this._def.type}},tu=class e extends Ce{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return n.status==="aborted"?ue:n.status==="dirty"?(a.dirty(),Gn(n.value)):this._def.out._parseAsync({data:n.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ue:o.status==="dirty"?(a.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,a){return new e({in:t,out:a,typeName:ce.ZodPipeline})}},is=class extends Ce{_parse(t){let a=this._def.innerType._parse(t),r=o=>(Xo(o)&&(o.value=Object.freeze(o.value)),o);return Ii(a)?a.then(o=>r(o)):r(a)}unwrap(){return this._def.innerType}};is.create=(e,t)=>new is({innerType:e,typeName:ce.ZodReadonly,...xe(t)});function Vb(e,t){let a=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof a=="string"?{message:a}:a}function Kb(e,t={},a){return e?Qo.create().superRefine((r,o)=>{let n=e(r);if(n instanceof Promise)return n.then(s=>{if(!s){let i=Vb(t,r),l=i.fatal??a??!0;o.addIssue({code:"custom",...i,fatal:l})}});if(!n){let s=Vb(t,r),i=s.fatal??a??!0;o.addIssue({code:"custom",...s,fatal:i})}}):Qo.create()}var NE={object:ua.lazycreate},ce;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ce||(ce={}));var FE=(e,t={message:`Input not instance of ${e.name}`})=>Kb(a=>a instanceof e,t),Xb=Zo.create,Zb=$n.create,zE=Mi.create,BE=Kn.create,Qb=Xn.create,UE=Zn.create,HE=ki.create,jE=Qn.create,VE=Yn.create,qE=Qo.create,WE=lo.create,GE=Ja.create,$E=Ri.create,KE=uo.create,XE=ua.create,ZE=ua.strictCreate,QE=Jn.create,YE=Gc.create,JE=es.create,eO=Ir.create,tO=$c.create,aO=Pi.create,rO=Ti.create,oO=Kc.create,nO=ts.create,sO=as.create,iO=rs.create,lO=os.create,uO=Yo.create,dO=_a.create,cO=Ma.create,fO=br.create,pO=_a.createWithPreprocess,mO=tu.create,hO=()=>Xb().optional(),gO=()=>Zb().optional(),vO=()=>Qb().optional(),xO={string:(e=>Zo.create({...e,coerce:!0})),number:(e=>$n.create({...e,coerce:!0})),boolean:(e=>Xn.create({...e,coerce:!0})),bigint:(e=>Kn.create({...e,coerce:!0})),date:(e=>Zn.create({...e,coerce:!0}))};var yO=ue;var Jb="xpertai.remote_component",wO=R.object({channel:R.literal(Jb),protocolVersion:R.literal(1),type:R.string(),instanceId:R.string().optional(),scopeRevision:R.number().optional(),requestId:R.string().optional(),data:R.unknown(),result:R.unknown(),message:R.string().optional(),code:R.string().optional(),locale:R.string().optional(),theme:R.object({mode:R.enum(["light","dark"]).optional(),tokens:R.record(R.string()).optional()}).optional()}).passthrough(),er=null,CO=0,Jo=new Map;function Sg(e,t={}){window.parent.postMessage({channel:Jb,protocolVersion:1,...er,type:e,...t},"*")}function ek(e){let t,a=r=>{if(r.source!==window.parent)return;let o=wO.safeParse(r.data);if(!o.success)return;let n=o.data;if(n.type==="init"){Fe.setLocale(n.locale);let i=!er||n.instanceId!==er.instanceId||n.scopeRevision!==er.scopeRevision;if(i){for(let c of Jo.values())clearTimeout(c.timer),c.reject(new DOMException(S("bridge.contextChanged"),"AbortError"));Jo.clear(),er={instanceId:n.instanceId,scopeRevision:n.scopeRevision}}let l=n.theme?.tokens??{};document.documentElement.classList.toggle("dark",n.theme?.mode==="dark");for(let[c,f]of Object.entries(l)){let h=c.startsWith("--xui-")?c:"--xui-"+c.replace(/[A-Z]/g,v=>"-"+v.toLowerCase());document.documentElement.style.setProperty(h,f)}Lf();let u={colorBackground:"--background",colorForeground:"--foreground",colorBorder:"--border",colorMuted:"--muted",colorMutedForeground:"--muted-foreground",colorSecondary:"--secondary",colorPrimary:"--ring"};for(let[c,f]of Object.entries(u))l[c]&&document.documentElement.style.setProperty(f,l[c]);document.documentElement.style.colorScheme=n.theme?.mode??"light";let d=JSON.stringify(n.initialQuery);(i||d!==t)&&(t=d,e(n.initialQuery)),Sg("resize",{height:window.innerHeight,viewportBound:!0});return}if(n.instanceId!==er?.instanceId||n.scopeRevision!==er?.scopeRevision&&n.type!=="error"||!n.requestId)return;let s=Jo.get(n.requestId);s&&(clearTimeout(s.timer),Jo.delete(n.requestId),n.type==="error"?s.reject(new Error(n.message??n.code??S("bridge.requestFailed"))):s.resolve(n.data??n.result))};return window.addEventListener("message",a),Sg("ready"),()=>{window.removeEventListener("message",a);for(let r of Jo.values())clearTimeout(r.timer),r.reject(Fe.error("bridge.closed"));Jo.clear(),er=null}}function Di(e,t){if(!er)return Promise.reject(Fe.error("bridge.notConnected"));let a=`spaces-${++CO}`;return new Promise((r,o)=>{let n=setTimeout(()=>{Jo.delete(a),o(Fe.error("bridge.timeout"))},12e4);Jo.set(a,{resolve:r,reject:o,timer:n}),Sg(e,{requestId:a,...t})})}var tk=e=>Di("requestData",{query:e});async function pt(e,t){let a=R.object({success:R.boolean(),data:R.unknown(),message:R.string().optional()}).parse(await Di("executeAction",{actionKey:e,input:t}));if(!a.success)throw new Error(a.message??S("common.actionFailed"));return a.data}async function ak(e,t,a="file.upload"){let r=R.object({success:R.boolean(),data:R.unknown()}).parse(await Di("executeFileAction",{actionKey:a,input:e,file:{name:t.name,type:t.type,size:t.size,buffer:await t.arrayBuffer()}}));if(!r.success)throw Fe.error("bridge.uploadFailed");return r.data}async function rk(e){let t=R.object({url:R.string(),fileName:R.string()}).parse(await Di("requestFileAccess",{fileKey:e,purpose:"download"})),a=document.createElement("a");return a.href=t.url,a.download=t.fileName,a.rel="noopener",document.body.append(a),a.click(),a.remove(),t}var Lg=e=>Di("invokeClientCommand",{commandKey:"assistant.context.set",payload:e});async function ok(e,t){let a=er,r=await Yb("workbench.content.resolve",{resourceId:e,...t?{providerKey:t}:{}});if(a!==er)throw new DOMException(S("bridge.contextChanged"),"AbortError");let{navigation:o}=R.object({navigation:R.object({target:R.literal("workbench.view"),viewKey:R.string().min(1),selectionId:R.literal(e),parameters:R.record(R.unknown()).optional()})}).parse(r);return Yb("workbench.navigation.open",o)}async function Yb(e,t){let a=await Di("invokeClientCommand",{commandKey:e,payload:t}),r=R.object({success:R.boolean(),message:R.string().optional(),code:R.string().optional()}).parse(a);if(!r.success)throw new Error(r.message??r.code??S("bridge.editorUnavailable"));return a}var Xc=R.object({importOrigin:R.object({provider:R.string(),documentId:R.string(),url:R.string().nullable(),revision:R.string(),importedAt:R.string(),warnings:R.array(R.string())}).nullable().optional(),id:R.string(),spaceId:R.string().optional(),parentId:R.string().nullable().optional(),parentPageId:R.string().nullable().optional(),editorKey:R.string().nullable().optional(),title:R.string(),kind:R.string().optional(),version:R.number(),role:R.string().optional(),deleted:R.boolean().optional(),filePath:R.string().nullable().optional(),updatedAt:R.string().optional(),syncStatus:R.string().optional(),knowledgebaseId:R.string().nullable().optional()}),nk=R.object({meta:R.object({root:Xc,items:R.array(Xc),role:R.string(),canWrite:R.boolean(),canManage:R.boolean(),project:R.object({id:R.string(),title:R.string()})})}),SO=R.object({id:R.string(),status:R.string(),patch:R.object({before:R.string(),after:R.string(),reason:R.string()})}),LO=R.object({id:R.string(),body:R.string(),resolved:R.boolean()}),sk=R.object({id:R.string(),sequence:R.number(),label:R.string(),createdAt:R.string().optional()}),IO=sk.extend({markdown:R.string(),blocks:R.array(R.object({id:R.string(),kind:R.string(),text:R.string()}))}),kr=e=>{if(e instanceof Error&&e.name==="AbortError")return"";let t=e instanceof Error?e.message:S("error.retry");return/conflict|sources_changed|file.changed/iu.test(t)?Fe.message("error.conflict"):/denied|Forbidden|403/u.test(t)?Fe.message("error.denied"):/ai_timeout|aborted|timeout/iu.test(t)?Fe.message("error.timeout"):/model|copilot/iu.test(t)?Fe.message("error.model"):e instanceof Error?e:Fe.message("error.retry")},ik=e=>({page:S("kind.page"),folder:S("kind.folder"),file:S("kind.file"),artifact:S("kind.artifact")})[e??"file"]??S("kind.file"),au=e=>e?Fe.date(e,{month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"";var pe=N(ke(),1),bO=R.object({items:R.array(R.object({bindingId:R.string(),provider:R.string(),available:R.boolean(),status:R.string(),label:R.union([R.string(),R.record(R.string())]),scope:R.object({type:R.enum(["workspace","project"])})}))}),kO=R.object({items:R.array(R.object({id:R.string(),title:R.string(),url:R.string().nullable()})),nextCursor:R.string().nullable()}),RO=R.object({id:R.string(),title:R.string(),url:R.string().nullable(),revision:R.string(),contentHash:R.string(),provider:R.string(),format:R.literal("text/plain"),content:R.string(),warnings:R.array(R.string())}),Zc=e=>{let t=e instanceof Error?e.message:"";return/unsupported_locator/u.test(t)?Fe.message("source.error.locator"):/unsupported_document_type/u.test(t)?Fe.message("source.error.type"):/source_access_denied/u.test(t)?Fe.message("source.error.access"):/provider_rejected|connection_required|request_failed/u.test(t)?Fe.message("source.error.connection"):/source_changed/u.test(t)?Fe.message("source.error.changed"):/too_large/u.test(t)?Fe.message("source.error.size"):kr(e)};function lk({spaceId:e,parentId:t,destination:a,onClose:r,onDone:o,returnFocus:n}){Yt();let s=H=>{let ve=S("source.connectionLabel",{provider:Fe.label(H.label,H.provider),scope:H.scope.type==="project"?S("source.projectScope"):S("source.workspaceScope")});return H.available?ve:S("source.disconnected",{label:ve})},[i,l]=(0,yt.useState)([]),[u,d]=(0,yt.useState)(""),[c,f]=(0,yt.useState)(""),[h,v]=(0,yt.useState)(""),[x,w]=(0,yt.useState)(""),[p,m]=(0,yt.useState)([]),[g,y]=(0,yt.useState)(null),[C,I]=(0,yt.useState)(!1),[k,b]=(0,yt.useState)(null),[T,A]=(0,yt.useState)(!1),[D,E]=(0,yt.useState)(!0),[z,O]=po(""),[_,B]=(0,yt.useState)(!1),j=(0,yt.useRef)(crypto.randomUUID()),W=(0,yt.useRef)(!0);async function ee(){E(!0),O("");try{let H=bO.parse(await pt("source.list",{}));W.current&&(l(H.items),d(H.items.find(ve=>ve.available)?.bindingId??""),B(!0))}catch(H){W.current&&O(Zc(H))}finally{W.current&&E(!1)}}(0,yt.useEffect)(()=>(W.current=!0,ee(),()=>{W.current=!1}),[]);function P(){b(null),A(!1),j.current=crypto.randomUUID()}async function se(H=!1){E(!0),O(""),P();try{let ve=H?h:c,Se=kO.parse(await pt("source.search",{bindingId:u,query:ve,...H&&g?{cursor:g}:{},pageSize:25}));W.current&&(m(fe=>H?[...new Map([...fe,...Se.items].map(Ae=>[Ae.id,Ae])).values()]:Se.items),y(Se.nextCursor),v(ve),I(!0))}catch(ve){O(Zc(ve))}finally{E(!1)}}async function ie(H){w(H),P(),E(!0),O("");try{let ve=RO.parse(await pt("source.preview",{bindingId:u,locator:H}));W.current&&b(ve)}catch(ve){O(Zc(ve))}finally{E(!1)}}return(0,pe.jsx)(xr,{open:!0,onOpenChange:H=>{!H&&!D&&r()},children:(0,pe.jsxs)(yr,{className:"space-dialog max-h-[85vh] overflow-y-auto",onCloseAutoFocus:H=>{H.preventDefault(),n()},children:[(0,pe.jsxs)(wr,{children:[(0,pe.jsx)(Cr,{children:S("source.title")}),(0,pe.jsx)(Sr,{children:S("source.description")})]}),z&&(0,pe.jsx)("p",{role:"alert",children:z}),!_&&!D&&(0,pe.jsx)(de,{variant:"outline",onClick:()=>{ee()},children:S("source.retryConnections")}),_&&!i.length?(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{children:S("source.noConnections")}),(0,pe.jsx)("p",{className:"muted",children:S("source.setupHint")}),(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:()=>{ee()},children:S("source.recheck")})]}):(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("div",{className:"form-field",children:[(0,pe.jsx)(oo,{htmlFor:"document-source",children:S("source.provider")}),(0,pe.jsxs)(jn,{value:u,disabled:D,onValueChange:H=>{d(H),m([]),y(null),I(!1),w(""),P()},children:[(0,pe.jsx)(qn,{id:"document-source",className:"w-full",children:(0,pe.jsx)(Vn,{placeholder:S("source.chooseConnection")})}),(0,pe.jsx)(Wn,{position:"popper",children:i.map(H=>(0,pe.jsx)(no,{value:H.bindingId,disabled:!H.available,children:s(H)},H.bindingId))})]})]}),(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:()=>{P(),m([]),y(null),I(!1),ee()},children:S("source.recheckConnections")}),(0,pe.jsx)("p",{className:"muted text-sm",children:S("source.searchHint")}),(0,pe.jsxs)("form",{className:"flex gap-2",onSubmit:H=>{H.preventDefault(),se()},children:[(0,pe.jsx)(Ya,{"aria-label":S("source.searchLabel"),value:c,maxLength:200,onChange:H=>f(H.target.value),placeholder:S("source.searchPlaceholder"),disabled:D}),(0,pe.jsx)(de,{disabled:D||!u,children:S("source.search")})]}),(0,pe.jsxs)("div",{className:"flex gap-2",children:[(0,pe.jsx)(Ya,{"aria-label":S("source.linkLabel"),value:x,onChange:H=>{w(H.target.value),P()},placeholder:S("source.linkPlaceholder"),disabled:D}),(0,pe.jsx)(de,{variant:"outline",disabled:D||!u||!x.trim(),onClick:()=>{ie(x.trim())},children:S("common.preview")})]}),!!p.length&&(0,pe.jsx)("ul",{className:"max-h-48 overflow-y-auto",children:p.map(H=>(0,pe.jsx)("li",{children:(0,pe.jsx)(de,{className:"max-w-full justify-start truncate",variant:"ghost",disabled:D,onClick:()=>{ie(H.url??H.id)},children:H.title})},H.id))}),C&&!p.length&&(0,pe.jsx)("p",{className:"muted",children:S("source.emptyPage")}),g&&(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:()=>{se(!0)},children:S("common.loadMore")}),k&&(0,pe.jsxs)("section",{className:"space-y-3",children:[(0,pe.jsx)("h3",{children:k.title}),(0,pe.jsx)("p",{className:"muted text-sm",children:S("source.previewMeta",{revision:k.revision,destination:a})}),k.url&&(0,pe.jsx)("a",{href:k.url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:S("source.openOriginal")}),k.warnings.map(H=>(0,pe.jsx)("p",{role:"note",children:H},H)),(0,pe.jsx)("pre",{className:"max-h-56 overflow-auto whitespace-pre-wrap rounded border p-3 text-sm",children:k.content||S("source.emptyText")}),(0,pe.jsxs)("div",{className:"confirmation-field",children:[(0,pe.jsx)(zc,{id:"confirm-source-import",disabled:D,checked:T,onCheckedChange:H=>A(H===!0)}),(0,pe.jsx)(oo,{htmlFor:"confirm-source-import",children:S("source.confirmation")})]})]})]}),(0,pe.jsxs)(Ko,{children:[(0,pe.jsx)(de,{variant:"outline",disabled:D,onClick:r,children:S("common.cancel")}),(0,pe.jsx)(de,{disabled:D||!k||!T,onClick:()=>{k&&(E(!0),O(""),pt("source.import",{bindingId:u,locator:x,spaceId:e,parentId:t,requestId:j.current,expectedRevision:k.revision,expectedHash:k.contentHash,confirmed:!0}).then(async()=>{await o(),r()}).catch(H=>O(Zc(H))).finally(()=>E(!1)))},children:D?S("common.processing"):S("source.import")})]})]})})}var He=N(te(),1),gk=N(dk(),1);var bg=N(te(),1);var ru=N(ke(),1);function ck({fileKey:e,children:t,disabled:a,onError:r}){Yt();let[o,n]=(0,bg.useState)(!1),[s,i]=(0,bg.useState)(null);async function l(){n(!0);try{i({key:e,...await rk(e)})}catch(u){r(u)}finally{n(!1)}}return(0,ru.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-2",children:[(0,ru.jsx)(de,{variant:"outline",disabled:a||o,onClick:()=>{l()},children:o?S("download.preparing"):t}),s?.key===e&&(0,ru.jsx)("a",{className:"text-sm underline underline-offset-4",href:s.url,download:s.fileName,rel:"noopener",children:S("download.saveFile")})]})}var ou=N(te(),1);var we=N(ke(),1),PO=()=>[{title:S("templates.project.title"),description:S("templates.project.description"),content:S("templates.project.content")},{title:S("templates.meeting.title"),description:S("templates.meeting.description"),content:S("templates.meeting.content")},{title:S("templates.weekly.title"),description:S("templates.weekly.description"),content:S("templates.weekly.content")}];function kg({items:e,value:t,onChange:a}){return Yt(),(0,we.jsxs)("div",{className:"form-field",children:[(0,we.jsx)(oo,{htmlFor:"folder-location",children:S("folder.location")}),(0,we.jsxs)(jn,{value:t||"root",onValueChange:r=>a(r==="root"?"":r),children:[(0,we.jsx)(qn,{id:"folder-location",className:"w-full",children:(0,we.jsx)(Vn,{})}),(0,we.jsxs)(Wn,{position:"popper",children:[(0,we.jsx)(no,{value:"root",children:S("folder.root")}),e.filter(r=>r.kind==="folder"&&!r.deleted).map(r=>(0,we.jsx)(no,{value:r.id,children:r.filePath??r.title},r.id))]})]})]})}function fk({root:e,items:t,initialParent:a,kind:r,editors:o,editing:n,onClose:s,onDone:i,run:l,busy:u}){Yt();let d=PO(),[c,f]=(0,ou.useState)(0),[h,v]=(0,ou.useState)(!1),[x,w]=(0,ou.useState)(n?.title??""),[p,m]=(0,ou.useState)(n?.parentId??a),g=r==="page"&&!n;return(0,we.jsx)(xr,{open:!0,onOpenChange:y=>{y||s()},children:(0,we.jsxs)(yr,{className:g?"space-dialog template-dialog":"space-dialog",children:[(0,we.jsxs)(wr,{children:[(0,we.jsx)(Cr,{children:n?S("create.renameMove"):g?S("create.page"):r==="folder"?S("create.folder"):S("create.document")}),(0,we.jsx)(Sr,{children:g?S("create.pageDescription"):S("library.storageNote")})]}),g&&(0,we.jsxs)(jc,{value:h?"blank":"templates",onValueChange:y=>v(y==="blank"),children:[(0,we.jsxs)(Vc,{"aria-label":S("create.startingPoint"),children:[(0,we.jsx)(Ci,{value:"templates",children:S("create.templates")}),(0,we.jsx)(Ci,{value:"blank",children:S("create.blank")})]}),(0,we.jsx)(Si,{value:"templates",children:(0,we.jsx)("div",{className:"template-grid",children:d.map((y,C)=>(0,we.jsxs)(de,{type:"button",variant:c===C?"secondary":"outline",className:"template-option","aria-pressed":c===C,onClick:()=>{f(C),x||w(y.title)},children:[(0,we.jsxs)("div",{className:`template-paper ${c===C?"chosen":""}`,children:[c===C&&(0,we.jsx)(Tr,{className:"template-check"}),(0,we.jsx)("strong",{children:y.title}),y.content.split(`
|
|
166
|
+
|
|
167
|
+
`).slice(0,6).map((I,k)=>I.startsWith("## ")?(0,we.jsx)("h4",{children:I.slice(3)},k):(0,we.jsx)("p",{children:I},k))]}),(0,we.jsx)("h3",{children:y.title}),(0,we.jsx)("p",{children:y.description})]},y.title))})}),(0,we.jsx)(Si,{value:"blank",children:(0,we.jsx)("p",{className:"muted",children:S("create.blankDescription")})})]}),(0,we.jsxs)("form",{className:"create-form",onSubmit:y=>{y.preventDefault(),l(async()=>{let C=o.find(k=>k.key===r),I=n?await pt("item.edit",{itemId:n.id,expectedVersion:n.version,title:x,parentId:p||null}):await pt(C?"editor.create":"item.create",{spaceId:e.id,parentId:p||null,title:x,...C?{editorKey:C.key}:{kind:r,...g?{content:h?"":d[c].content}:{}}});await i(Xc.parse(I)),s()})},children:[(0,we.jsxs)("div",{className:"form-columns",children:[(0,we.jsxs)(oo,{children:[g?S("create.pageName"):S("common.name"),(0,we.jsx)(Ya,{required:!0,autoFocus:!0,maxLength:200,value:x,onChange:y=>w(y.target.value),placeholder:S("create.namePlaceholder")})]}),(0,we.jsx)(kg,{items:t.filter(y=>y.id!==n?.id),value:p,onChange:m})]}),(0,we.jsxs)(Ko,{children:[(0,we.jsxs)("span",{className:"muted mr-auto flex items-center gap-2",children:[(0,we.jsx)(_r,{}),S("create.permissions")]}),(0,we.jsx)(de,{type:"button",variant:"outline",onClick:s,children:S("common.cancel")}),(0,we.jsx)(de,{disabled:u,children:n?S("common.save"):g?S("create.createPage"):S("common.create")})]})]})]})})}var Qt=N(te(),1);var re=N(ke(),1),TO=R.object({items:R.array(R.object({id:R.string(),title:R.string().nullable().optional(),versions:R.array(R.object({id:R.string(),version:R.number().optional(),fileName:R.string().nullable().optional()}))})),total:R.number()});function pk({root:e,items:t,parentId:a,editors:r,onClose:o,onDone:n,run:s,busy:i}){Yt();let l=(0,Qt.useRef)(null),[u,d]=(0,Qt.useState)("local"),[c,f]=(0,Qt.useState)(a),[h,v]=(0,Qt.useState)([]),[x,w]=(0,Qt.useState)(""),[p,m]=(0,Qt.useState)([]),[g,y]=(0,Qt.useState)({}),[C,I]=(0,Qt.useState)(""),[k,b]=po(""),[T,A]=(0,Qt.useState)(1),[D,E]=(0,Qt.useState)(0),[z,O]=(0,Qt.useState)(!1);return(0,Qt.useEffect)(()=>{if(u!=="artifacts")return;let _=!0;return O(!0),b(""),pt("artifact.list",{page:T}).then(B=>{let j=TO.parse(B);_&&(m(j.items),E(j.total))}).catch(B=>_&&b(kr(B))).finally(()=>_&&O(!1)),()=>{_=!1}},[u,T]),(0,re.jsx)(xr,{open:!0,onOpenChange:_=>{_||o()},children:(0,re.jsxs)(yr,{className:"space-dialog materials-dialog",children:[(0,re.jsxs)(wr,{children:[(0,re.jsx)(Cr,{children:S("materials.title")}),(0,re.jsx)(Sr,{children:S("materials.description")})]}),(0,re.jsxs)(jc,{value:u,onValueChange:d,children:[(0,re.jsxs)(Vc,{"aria-label":S("materials.source"),children:[(0,re.jsx)(Ci,{value:"local",children:S("materials.local")}),(0,re.jsx)(Ci,{value:"artifacts",children:S("materials.assistantArtifacts")})]}),(0,re.jsxs)(Si,{value:"local",children:[(0,re.jsxs)("div",{className:"upload-area",children:[(0,re.jsx)(gs,{}),(0,re.jsx)("strong",{children:S("materials.chooseFiles")}),(0,re.jsx)("span",{children:S("materials.fileLimit")}),(0,re.jsx)(de,{variant:"outline",type:"button",onClick:()=>l.current?.click(),children:S("materials.chooseFiles")}),(0,re.jsx)(Ya,{ref:l,className:"hidden",type:"file",multiple:!0,onChange:_=>v(Array.from(_.target.files??[]))})]}),h.map(_=>(0,re.jsxs)("p",{children:[_.name," ",(0,re.jsx)("span",{className:"muted",children:S("materials.fileSize",{size:Fe.number(Math.ceil(_.size/1024))})})]},_.name)),r.length>0&&(0,re.jsxs)("div",{className:"form-field",children:[(0,re.jsx)(oo,{htmlFor:"import-editor",children:S("materials.editor")}),(0,re.jsxs)(jn,{value:x||"original",onValueChange:_=>w(_==="original"?"":_),children:[(0,re.jsx)(qn,{id:"import-editor",className:"w-full",children:(0,re.jsx)(Vn,{})}),(0,re.jsxs)(Wn,{position:"popper",children:[(0,re.jsx)(no,{value:"original",children:S("materials.keepOriginal")}),r.map(_=>(0,re.jsx)(no,{value:_.key,children:S("materials.importWith",{editor:_.title})},_.key))]})]})]})]}),(0,re.jsxs)(Si,{value:"artifacts",children:[(0,re.jsxs)("div",{className:"search-field",children:[(0,re.jsx)(xa,{}),(0,re.jsx)(Ya,{"aria-label":S("materials.search"),placeholder:S("materials.search"),value:C,onChange:_=>I(_.target.value)})]}),k&&(0,re.jsx)("p",{role:"alert",children:k}),z&&(0,re.jsx)("p",{role:"status",children:S("materials.loading")}),(0,re.jsxs)("div",{className:"artifact-list",children:[p.filter(_=>(_.title??"").toLowerCase().includes(C.toLowerCase())).map(_=>(0,re.jsxs)("div",{className:`artifact-option ${g[_.id]?"checked":""}`,children:[(0,re.jsx)(zc,{"aria-label":S("materials.chooseArtifact",{title:_.title??S("materials.untitled")}),disabled:!_.versions.length,checked:!!g[_.id],onCheckedChange:B=>y(j=>{let W={...j};return B===!0?W[_.id]=_.versions[0].id:delete W[_.id],W})}),(0,re.jsx)(Jt,{}),(0,re.jsxs)("span",{children:[(0,re.jsx)("strong",{children:_.title??S("materials.untitled")}),(0,re.jsx)("small",{children:_.versions[0]?.fileName??S("materials.noFileVersion")})]}),(0,re.jsxs)(jn,{disabled:!_.versions.length,value:g[_.id]??_.versions[0]?.id??"",onValueChange:B=>y(j=>({...j,[_.id]:B})),children:[(0,re.jsx)(qn,{"aria-label":S("materials.artifactVersion",{title:_.title??S("materials.untitled")}),children:(0,re.jsx)(Vn,{placeholder:S("materials.noVersion")})}),(0,re.jsx)(Wn,{position:"popper",children:_.versions.map((B,j)=>(0,re.jsx)(no,{value:B.id,children:S("common.version",{version:B.version??_.versions.length-j})},B.id))})]})]},_.id)),!z&&!k&&!p.length&&(0,re.jsx)("p",{className:"empty-message",children:S("materials.empty")})]}),D>40&&(0,re.jsxs)("div",{className:"row",children:[(0,re.jsx)(de,{variant:"outline",disabled:T===1,onClick:()=>A(T-1),children:S("common.previousPage")}),(0,re.jsx)("span",{children:S("common.pageNumber",{page:T})}),(0,re.jsx)(de,{variant:"outline",disabled:T*40>=D,onClick:()=>A(T+1),children:S("common.nextPage")})]}),(0,re.jsxs)("p",{className:"muted inline-note",children:[(0,re.jsx)(Dr,{}),S("materials.versionNote")]})]})]}),(0,re.jsx)(kg,{items:t,value:c,onChange:f}),(0,re.jsxs)(Ko,{children:[(0,re.jsx)("span",{className:"muted mr-auto",children:S("materials.selected",{count:u==="local"?h.length:Object.keys(g).length})}),(0,re.jsx)(de,{variant:"outline",onClick:o,children:S("common.cancel")}),(0,re.jsx)(de,{disabled:i||!(u==="local"?h.length:Object.keys(g).length),onClick:()=>{s(async()=>{if(u==="local")for(let _ of h)await ak({spaceId:e.id,parentId:c||null,...x?{editorKey:x}:{}},_,x?"editor.import":"file.upload");else for(let[_,B]of Object.entries(g))await pt("artifact.collect",{spaceId:e.id,parentId:c||null,artifactId:_,versionId:B});await n(),o()})},children:S("materials.add")})]})]})})}var _i=N(te(),1);var MO=N(ke(),1);var wt=N(ke(),1);var DO=R.object({knowledgebaseId:R.string().nullable(),items:R.array(R.object({itemId:R.string(),title:R.string(),status:R.string(),error:R.string().nullable(),document:R.object({status:R.string().nullable().optional()}).nullable()}))});function mk({root:e,canWrite:t,canManage:a,run:r,busy:o}){Yt();let[n,s]=(0,_i.useState)(null),[i,l]=po(""),u=(0,_i.useCallback)(async()=>s(DO.parse(await pt("knowledge.status",{spaceId:e.id}))),[e.id]);return(0,_i.useEffect)(()=>{u().catch(d=>l(kr(d)))},[u]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("p",{className:"muted",children:S("knowledge.description")}),i&&(0,wt.jsx)("p",{role:"alert",children:i}),n?.knowledgebaseId?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("p",{children:S("knowledge.linked")}),(0,wt.jsxs)(de,{variant:"outline",disabled:!t||o,onClick:()=>{r(async()=>{await pt("knowledge.refresh",{spaceId:e.id}),await u()})},children:[(0,wt.jsx)(Ar,{}),S("knowledge.sync")]}),(0,wt.jsx)(de,{variant:"ghost",onClick:()=>{r(u)},children:S("knowledge.refresh")})]}):(0,wt.jsx)(de,{disabled:!a||o,onClick:()=>{r(async()=>{await pt("knowledge.enable",{spaceId:e.id}),await u()})},children:S("knowledge.enable")}),n?.items.map(d=>(0,wt.jsxs)("div",{className:"index-item",children:[(0,wt.jsx)("strong",{children:d.title}),(0,wt.jsx)("small",{children:d.document?.status??d.status}),d.error&&(0,wt.jsx)("p",{role:"status",children:d.error})]},d.itemId))]})}var L=N(ke(),1),hk=({kind:e})=>e==="folder"?(0,L.jsx)(or,{}):(0,L.jsx)(Jt,{});function _O(){Yt();let e=(0,He.useRef)(null),[t,a]=(0,He.useState)(null),[r,o]=(0,He.useState)([]),[n,s]=(0,He.useState)(null),[i,l]=(0,He.useState)(!1),[u,d]=(0,He.useState)(null),[c,f]=(0,He.useState)(null),[h,v]=(0,He.useState)("all"),[x,w]=(0,He.useState)(""),[p,m]=(0,He.useState)(!1),[g,y]=(0,He.useState)({canWrite:!1,canManage:!1}),[C,I]=(0,He.useState)(!1),[k,b]=(0,He.useState)(!0),[T,A]=(0,He.useState)([]),[D,E]=(0,He.useState)(!0),[z,O]=po(""),[_,B]=(0,He.useState)(!1),[j,W]=(0,He.useState)(0),[ee,P]=(0,He.useState)(null),[se,ie]=(0,He.useState)(null),H=M=>{window.setTimeout(()=>ie(M),0)},{canWrite:ve,canManage:Se}=g,fe=async M=>{B(!0),O("");try{await M()}catch(ye){O(kr(ye))}finally{B(!1)}},Ae=(0,He.useCallback)(async(M=!1)=>{b(!0);try{let ye=await tk({selectionId:"root",parameters:{trash:M}});if(R.object({meta:R.object({requiresProject:R.literal(!0)})}).safeParse(ye).success)return I(!0),a(null),o([]),!1;let Tt=nk.parse(ye).meta;return I(!1),a(Tt.root),o(Tt.items),y(Tt),m(M),!0}finally{b(!1)}},[]),K=async()=>{await Ae(p)};(0,He.useEffect)(()=>ek(M=>{l(R.object({parameters:R.object({presentation:R.literal("navigation")})}).safeParse(M).success),d(null),E(!0),O(""),P(null),Ae().then(async ye=>{ye&&A(R.array(R.object({key:R.string(),title:R.string()})).parse(await pt("editor.list",{})))}).catch(ye=>O(kr(ye)))}),[Ae]),(0,He.useEffect)(()=>{if(t)return Lg({key:"spaces",context:{spaceId:t.id,itemId:u?.id,filePath:u?.filePath,title:u?.title,kind:u?.kind,saved:D}}).catch(()=>{}),()=>{Lg({key:"spaces",clear:!0}).catch(()=>{})}},[t?.id,u?.id,D]);function oe(M){if(!D){O(Fe.message("navigation.waitForSave"));return}if(M?.editorKey&&!M.deleted){fe(async()=>{try{await ok(M.id,"spaces")}catch(ye){throw d(M),ye}});return}M?.kind==="folder"?(f(M.id),d(null),P(null)):(d(M),W(ye=>ye+1))}function Je(M,ye=null){D&&(d(null),f(ye),v(M),P(null),p&&fe(()=>Ae(!1)))}let De=r.filter(M=>(!c||M.parentId===c)&&(h==="all"||(h==="page"?M.kind==="page":M.kind!=="page"&&M.kind!=="folder"))&&(M.title+" "+(M.filePath??"")).toLowerCase().includes(x.toLowerCase())).sort((M,ye)=>(ye.updatedAt??"").localeCompare(M.updatedAt??"")),Oe=p?S("navigation.trash"):c?r.find(M=>M.id===c)?.title??S("kind.folder"):h==="page"?S("kind.page"):h==="files"?S("navigation.files"):S("navigation.all");return(0,L.jsxs)("div",{className:`app ${i?"compact-navigation":""}`,children:[z&&(0,L.jsxs)("div",{className:"notice",role:"alert",children:[(0,L.jsx)("span",{children:z}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("common.dismiss"),onClick:()=>O(""),children:(0,L.jsx)(Or,{})})]}),_&&(0,L.jsx)("div",{className:"progress-message",role:"status",children:S("common.processing")}),C?(0,L.jsxs)("main",{className:"project-empty",children:[(0,L.jsx)(or,{}),(0,L.jsx)("h1",{children:S("project.choose")}),(0,L.jsx)("p",{children:S("project.chooseDescription")}),(0,L.jsx)("p",{className:"muted",children:S("project.sharing")}),(0,L.jsxs)(de,{variant:"outline",onClick:()=>{fe(()=>Ae())},children:[(0,L.jsx)(Ar,{}),S("common.reload")]})]}):(0,L.jsxs)("div",{className:"body",children:[(0,L.jsxs)("aside",{className:"tree","aria-label":S("navigation.label"),children:[(0,L.jsxs)("div",{className:"space-name",children:[(0,L.jsx)("h2",{children:S("space.title")}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("navigation.search"),onClick:()=>document.getElementById("space-search")?.focus(),children:(0,L.jsx)(xa,{})})]}),(0,L.jsxs)("p",{className:"space-subtitle",children:[t?.title??S("common.opening"),S("space.sharedSuffix")]}),i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ya,{"aria-label":S("navigation.findDocument"),placeholder:S("navigation.findDocument"),value:x,onChange:M=>w(M.target.value)}),(0,L.jsx)("div",{className:"compact-documents",children:De.filter(M=>M.kind==="page").map(M=>(0,L.jsxs)(de,{type:"button",variant:"ghost",className:"nav-item",title:M.filePath??M.title,onClick:()=>oe(M),children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("span",{className:"truncate",children:M.title})]},M.id))})]}),(0,L.jsx)("nav",{children:[["all",S("navigation.all")],["page",S("kind.page")],["files",S("navigation.files")]].map(([M,ye])=>(0,L.jsxs)(de,{type:"button",variant:!u&&!c&&!p&&h===M?"secondary":"ghost",className:!u&&!c&&!p&&h===M?"nav-item selected":"nav-item",onClick:()=>Je(M),disabled:!D,children:[M==="all"?(0,L.jsx)(an,{}):M==="page"?(0,L.jsx)(Jt,{}):(0,L.jsx)(or,{}),ye]},M))}),(0,L.jsx)("p",{className:"nav-label",children:S("kind.folder")}),(0,L.jsx)("div",{className:"folder-tree",children:r.filter(M=>M.kind==="folder"&&!M.deleted).sort((M,ye)=>(M.filePath??M.title).localeCompare(ye.filePath??ye.title)).map(M=>(0,L.jsxs)(He.default.Fragment,{children:[(0,L.jsxs)(de,{type:"button",variant:c===M.id&&!u?"secondary":"ghost",className:`nav-item ${c===M.id&&!u?"selected":""}`,title:M.filePath??M.title,style:{paddingLeft:`calc(var(--spacing) * ${3+Math.min(4,(M.filePath?.split("/").length??1)-1)*4.5})`},onClick:()=>Je("all",M.id),disabled:!D,children:[(0,L.jsx)(or,{}),(0,L.jsx)("span",{className:"truncate",children:M.title})]}),u&&u.parentId===M.id&&(0,L.jsxs)(de,{type:"button",variant:"secondary",className:"nav-item selected nested",onClick:()=>oe(u),children:[(0,L.jsx)(Jt,{}),u.title]})]},M.id))}),(0,L.jsxs)("div",{className:"nav-bottom",children:[(0,L.jsxs)(de,{type:"button",variant:"ghost",className:`nav-item ${ee==="knowledge"?"selected":""}`,onClick:()=>P("knowledge"),children:[(0,L.jsx)(xa,{}),S("knowledge.title")]}),Se&&(0,L.jsxs)(de,{type:"button",variant:"ghost",className:`nav-item ${p?"selected":""}`,disabled:!D,onClick:()=>{fe(async()=>{d(null),f(null),P(null),await Ae(!p)})},children:[(0,L.jsx)(hs,{}),S("navigation.trash")]})]})]}),(0,L.jsx)("main",{className:`workspace ${u?"document-workspace":""}`,children:u?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("header",{className:"document-bar",children:[(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("navigation.back"),onClick:()=>oe(null),children:(0,L.jsx)(fs,{})}),(0,L.jsx)("span",{className:"breadcrumb",children:u.filePath?.split("/").slice(0,-1).join(" / ")||S("navigation.all")}),(0,L.jsx)("span",{className:"save-state",children:D?ve?S("editor.saved"):S("editor.readOnly"):S("editor.saving")}),(0,L.jsxs)(Bc,{modal:!1,children:[(0,L.jsx)(Uc,{asChild:!0,children:(0,L.jsx)(de,{variant:"outline",size:"icon","aria-label":S("document.actions"),children:(0,L.jsx)(rr,{})})}),(0,L.jsxs)(Hc,{align:"end",children:[ve&&(0,L.jsx)(va,{disabled:!D,onSelect:()=>{s(u),H("edit")},children:S("document.renameMove")}),(0,L.jsx)(va,{onSelect:()=>H("access"),children:S("access.title")}),Se&&(0,L.jsx)(va,{disabled:!D,onSelect:()=>{fe(async()=>{await pt("item.edit",{itemId:u.id,expectedVersion:u.version,deleted:!p}),oe(null),await K()})},children:p?S("trash.restore"):S("trash.move")})]})]})]}),(0,L.jsxs)("article",{className:"document-canvas",children:[(0,L.jsx)("h1",{children:u.title}),(0,L.jsxs)("p",{className:"document-meta",children:[au(u.updatedAt),S("document.projectFileSuffix")]}),p?(0,L.jsx)("p",{className:"empty-message",children:S("trash.documentNotice")}):(0,L.jsxs)(L.Fragment,{children:[u.editorKey&&(0,L.jsxs)("div",{className:"file-preview",children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("p",{children:S("document.editorUnavailable")}),(0,L.jsx)(de,{variant:"outline",onClick:()=>oe(u),children:S("document.reopenEditor")})]}),!u.editorKey&&(0,L.jsxs)("div",{className:"file-preview",children:[(0,L.jsx)(hk,{kind:u.kind}),(0,L.jsx)("p",{children:u.filePath??u.title}),(0,L.jsx)("p",{className:"muted",children:S("document.originalFormat")})]}),(0,L.jsx)("div",{className:"document-download",children:(0,L.jsxs)(ck,{fileKey:`item:${u.id}`,onError:M=>O(kr(M)),children:[(0,L.jsx)(ms,{}),S("document.download")]})})]})]})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("header",{className:"library-header",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("h1",{children:Oe}),(0,L.jsx)("p",{children:S("library.description")})]}),(0,L.jsxs)("div",{className:"library-actions",children:[(0,L.jsxs)(Eb,{className:"library-search",children:[(0,L.jsx)(Ob,{children:(0,L.jsx)(xa,{})}),(0,L.jsx)(Nb,{id:"space-search","aria-label":S("library.search"),placeholder:S("library.search"),value:x,onChange:M=>w(M.target.value)})]}),(0,L.jsxs)(de,{variant:"outline",onClick:()=>ie("access"),children:[(0,L.jsx)(_r,{}),S("access.title")]}),ve&&!p&&(0,L.jsxs)(Bc,{modal:!1,children:[(0,L.jsx)(Uc,{asChild:!0,children:(0,L.jsxs)(de,{ref:e,children:[(0,L.jsx)(go,{}),S("library.new"),(0,L.jsx)(Mr,{})]})}),(0,L.jsxs)(Hc,{align:"end",children:[(0,L.jsx)(va,{onSelect:()=>H("page"),children:S("kind.page")}),(0,L.jsx)(va,{onSelect:()=>H("folder"),children:S("kind.folder")}),T.map(M=>(0,L.jsx)(va,{onSelect:()=>H(M.key),children:M.title},M.key)),(0,L.jsx)(Fb,{}),(0,L.jsx)(va,{onSelect:()=>H("materials"),children:S("materials.title")}),(0,L.jsx)(va,{onSelect:()=>H("source"),children:S("source.title")})]})]})]})]}),(0,L.jsxs)("div",{className:"list-toolbar",children:[(0,L.jsx)("span",{children:S("library.recent")}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("library.refresh"),disabled:_||k,onClick:()=>{fe(K)},children:(0,L.jsx)(Ar,{})})]}),k?(0,L.jsx)("div",{className:"empty-message",role:"status",children:S("library.loading")}):(0,L.jsxs)("div",{className:"table-scroll",children:[(0,L.jsxs)(zb,{className:"library-table",children:[(0,L.jsx)(Bb,{children:(0,L.jsxs)(xg,{children:[(0,L.jsx)(yi,{children:S("common.name")}),(0,L.jsx)(yi,{children:S("library.type")}),(0,L.jsx)(yi,{children:S("library.source")}),(0,L.jsx)(yi,{children:S("library.updated")}),(0,L.jsx)(yi,{children:(0,L.jsx)("span",{className:"sr-only",children:S("library.actions")})})]})}),(0,L.jsx)(Ub,{children:De.map(M=>(0,L.jsxs)(xg,{children:[(0,L.jsx)(wi,{children:(0,L.jsxs)(de,{type:"button",variant:"ghost",className:"file-title",onClick:()=>oe(M),children:[(0,L.jsx)("span",{className:`file-icon ${M.kind}`,children:(0,L.jsx)(hk,{kind:M.kind})}),(0,L.jsxs)("span",{children:[(0,L.jsx)("strong",{children:M.title}),(0,L.jsx)("small",{children:M.parentPageId&&r.some(ye=>ye.id===M.parentPageId&&!ye.deleted)?S("library.subpage",{title:r.find(ye=>ye.id===M.parentPageId)?.title??""}):M.filePath?.split("/").slice(0,-1).join(" / ")||S("folder.root")})]})]})}),(0,L.jsx)(wi,{children:ik(M.kind)}),(0,L.jsx)(wi,{children:M.importOrigin?S("source.copyType"):M.kind==="page"?S("library.spacePage"):M.kind==="artifact"?S("materials.assistantArtifacts"):S("library.projectFile")}),(0,L.jsx)(wi,{children:au(M.updatedAt)}),(0,L.jsx)(wi,{children:(0,L.jsxs)(Bc,{modal:!1,children:[(0,L.jsx)(Uc,{asChild:!0,children:(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("library.moreActions",{title:M.title}),children:(0,L.jsx)(rr,{})})}),(0,L.jsxs)(Hc,{align:"end",children:[(0,L.jsx)(va,{onSelect:()=>oe(M),children:S("common.open")}),M.importOrigin&&(0,L.jsx)(va,{onSelect:()=>{s(M),H("origin")},children:S("source.viewOrigin")}),ve&&!p&&(0,L.jsx)(va,{onSelect:()=>{s(M),H("edit")},children:S("document.renameMove")}),Se&&(0,L.jsx)(va,{onSelect:()=>{fe(async()=>{await pt("item.edit",{itemId:M.id,expectedVersion:M.version,deleted:!p}),await K()})},children:p?S("trash.restore"):S("trash.move")})]})]})})]},M.id))})]}),!De.length&&(0,L.jsxs)("div",{className:"empty-message",children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("h2",{children:x?S("library.noResults"):p?S("trash.empty"):S("library.empty")}),(0,L.jsx)("p",{children:x?S("library.searchHint"):S("library.createHint")}),ve&&!p&&!x&&(0,L.jsxs)(de,{onClick:()=>ie("page"),children:[(0,L.jsx)(go,{}),S("create.page")]})]})]}),(0,L.jsxs)("p",{className:"library-footnote",children:[(0,L.jsx)(Dr,{}),S("library.storageNote")]})]})}),ee==="knowledge"&&(0,L.jsxs)("aside",{className:"panel","aria-label":S("knowledge.title"),children:[(0,L.jsxs)("header",{children:[(0,L.jsx)("h2",{children:S("knowledge.title")}),(0,L.jsx)(de,{variant:"ghost",size:"icon","aria-label":S("common.closePanel"),onClick:()=>P(null),children:(0,L.jsx)(Or,{})})]}),t&&(0,L.jsx)(mk,{root:t,canWrite:ve,canManage:Se,run:fe,busy:_})]})]}),t&&se&&(se==="page"||se==="folder"||se==="edit"||T.some(M=>M.key===se))&&(0,L.jsx)(fk,{root:t,items:r,initialParent:c??"",kind:se,editors:T,editing:se==="edit"?n??void 0:void 0,onClose:()=>ie(null),onDone:async M=>{await K(),oe(M)},run:fe,busy:_}),t&&se==="materials"&&(0,L.jsx)(pk,{root:t,items:r,parentId:c??"",editors:T,onClose:()=>ie(null),onDone:K,run:fe,busy:_}),t&&se==="source"&&(0,L.jsx)(lk,{spaceId:t.id,parentId:c,destination:S("source.destination",{space:t.title,folder:r.find(M=>M.id===c)?.title??S("folder.root")}),onClose:()=>ie(null),onDone:K,returnFocus:()=>e.current?.focus()}),se==="origin"&&n?.importOrigin&&(0,L.jsx)(xr,{open:!0,onOpenChange:()=>ie(null),children:(0,L.jsxs)(yr,{className:"space-dialog",children:[(0,L.jsxs)(wr,{children:[(0,L.jsx)(Cr,{children:S("source.originTitle")}),(0,L.jsx)(Sr,{children:S("source.copyDescription")})]}),(0,L.jsx)("p",{children:S("source.originRevision",{provider:n.importOrigin.provider,revision:n.importOrigin.revision})}),(0,L.jsx)("p",{children:S("source.importedAt",{date:au(n.importOrigin.importedAt)})}),(0,L.jsx)("p",{className:"break-all text-sm",children:S("source.id",{id:n.importOrigin.documentId})}),n.importOrigin.warnings.map(M=>(0,L.jsx)("p",{children:M},M)),n.importOrigin.url&&(0,L.jsx)("a",{className:"underline",href:n.importOrigin.url,target:"_blank",rel:"noopener noreferrer",children:S("source.openPlatform")}),(0,L.jsx)(de,{onClick:()=>ie(null),children:S("common.close")})]})}),se==="access"&&(0,L.jsx)(xr,{open:!0,onOpenChange:()=>ie(null),children:(0,L.jsxs)(yr,{className:"space-dialog capability-dialog",children:[(0,L.jsxs)(wr,{children:[(0,L.jsx)(Cr,{children:S("space.title")}),(0,L.jsx)(Sr,{children:S("access.description")})]}),(0,L.jsxs)("section",{children:[(0,L.jsx)("h2",{children:S("access.entry")}),(0,L.jsxs)("p",{className:"row",children:[(0,L.jsx)(an,{}),S("common.workbench")," ",(0,L.jsx)("span",{className:"muted",children:"/"}),S("access.views"),(0,L.jsx)("span",{className:"muted",children:"/"}),S("space.title")]}),(0,L.jsx)("p",{className:"muted",children:S("access.entryDescription")})]}),(0,L.jsxs)("section",{children:[(0,L.jsx)("h2",{children:S("access.title")}),(0,L.jsxs)("p",{className:"row",children:[(0,L.jsx)(_r,{}),(0,L.jsx)("strong",{children:S("access.shared")})]}),(0,L.jsx)("p",{children:S("access.roles")}),(0,L.jsx)("p",{className:"muted",children:S("access.projectPermissions")})]}),(0,L.jsxs)("section",{children:[(0,L.jsx)("h2",{children:S("access.capabilities")}),(0,L.jsxs)("ul",{className:"capability-list",children:[(0,L.jsxs)("li",{children:[(0,L.jsx)(Jt,{}),(0,L.jsx)("strong",{children:S("access.pages")}),(0,L.jsx)("span",{children:S("access.pagesDescription")})]}),(0,L.jsxs)("li",{children:[(0,L.jsx)(Er,{}),(0,L.jsx)("strong",{children:S("access.ai")}),(0,L.jsx)("span",{children:S("access.aiDescription")})]}),(0,L.jsxs)("li",{children:[(0,L.jsx)(or,{}),(0,L.jsx)("strong",{children:S("navigation.files")}),(0,L.jsx)("span",{children:S("access.filesDescription")})]}),(0,L.jsxs)("li",{children:[(0,L.jsx)(xa,{}),(0,L.jsx)("strong",{children:S("knowledge.title")}),(0,L.jsx)("span",{children:S("access.searchDescription")})]})]}),(0,L.jsx)("p",{className:"muted text-sm",children:S("access.sheetDescription")})]}),(0,L.jsxs)(Ko,{children:[(0,L.jsxs)("span",{className:"muted",children:[(0,L.jsx)(Dr,{}),S("library.storageNote")]}),(0,L.jsx)(de,{onClick:()=>ie(null),children:S("common.done")})]})]})})]})}(0,gk.createRoot)(document.getElementById("root")).render((0,L.jsx)(iv,{i18n:Fe,children:(0,L.jsx)(_O,{})}));})();
|